From 05a6c09ac5d349a97258dd49d415c384343ca44a Mon Sep 17 00:00:00 2001 From: autosubmit Date: Mon, 3 Jul 2023 14:23:46 +0800 Subject: [PATCH] Auto Submit --- color.less | 32 +++---- index.html | 2 +- ...Lists__Attendance__index.253021e0.async.js | 40 ++++---- ...urseGroup__Detail__index.e5a54098.async.js | 4 +- ...se__ImitateAnswer__index.00a3bccc.async.js | 96 +++++++++---------- ...ics__StudentVideo__index.8a4fe866.async.js | 2 +- ...ing__Lists__CurseSetting.dc00353f.async.js | 20 ++-- p__Innovation__Detail.bbec5500.async.js | 38 ++++---- p__Innovation__PublicMirror.71215435.async.js | 4 +- ...l__OtherResources__index.62fc5694.async.js | 4 +- umi.0ecacd5f.js => umi.f82e3d89.js | 2 +- 11 files changed, 122 insertions(+), 122 deletions(-) rename umi.0ecacd5f.js => umi.f82e3d89.js (94%) diff --git a/color.less b/color.less index f3222b3e2f..fa3b2de046 100644 --- a/color.less +++ b/color.less @@ -88,7 +88,7 @@ html {--antd-wave-shadow-color: @primary-color;} .ant-alert-success .ant-alert-icon {color: @success-color;} .ant-alert-info {background-color: color(~`colorPalette("@{primary-color}", 1)`);border: 1px solid color(~`colorPalette("@{primary-color}", 3)`);} .ant-alert-info .ant-alert-icon {color: @primary-color;} -.ant-alert-warning {background-color: color(~`colorPalette("@{warning-color}", 1)`);border: 1px solid color(~`colorPalette("@{warning-color}", 4)`);} +.ant-alert-warning {background-color: color(~`colorPalette("@{warning-color}", 1)`);border: 1px solid color(~`colorPalette("@{warning-color}", 3)`);} .ant-alert-warning .ant-alert-icon {color: @warning-color;} .ant-alert-error {background-color: color(~`colorPalette("@{error-color}", 1)`);border: 1px solid color(~`colorPalette("@{error-color}", 3)`);} .ant-alert-error .ant-alert-icon {color: @error-color;} @@ -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(240, 209, 190, 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(200, 133, 21, 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(240, 209, 190, 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(200, 133, 21, 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(240, 209, 190, 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(200, 133, 21, 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(240, 209, 190, 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(200, 133, 21, 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(240, 209, 190, 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(200, 133, 21, 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(137, 7, 54, 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(55, 106, 179, 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(137, 7, 54, 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(55, 106, 179, 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(137, 7, 54, 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(55, 106, 179, 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(137, 7, 54, 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(55, 106, 179, 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(137, 7, 54, 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(137, 7, 54, 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(55, 106, 179, 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(55, 106, 179, 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;} @@ -955,10 +955,10 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte .ant-mentions-dropdown-menu-item-active {background-color: #f5f5f5;} .ant-menu-item-danger.ant-menu-item {color: @error-color;} .ant-menu-item-danger.ant-menu-item:hover, .ant-menu-item-danger.ant-menu-item-active {color: @error-color;} -.ant-menu-item-danger.ant-menu-item:active {background: color(~`colorPalette("@{border-color-base}", 1)`);} +.ant-menu-item-danger.ant-menu-item:active {background: #fff1f0;} .ant-menu-item-danger.ant-menu-item-selected {color: @error-color;} .ant-menu-item-danger.ant-menu-item-selected > a, .ant-menu-item-danger.ant-menu-item-selected > a:hover {color: @error-color;} -.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-danger.ant-menu-item-selected {background-color: color(~`colorPalette("@{border-color-base}", 1)`);} +.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-danger.ant-menu-item-selected {background-color: #fff1f0;} .ant-menu-inline .ant-menu-item-danger.ant-menu-item::after {border-right-color: @error-color;} .ant-menu-dark .ant-menu-item-danger.ant-menu-item, .ant-menu-dark .ant-menu-item-danger.ant-menu-item:hover, .ant-menu-dark .ant-menu-item-danger.ant-menu-item > a {color: @error-color;} .ant-menu-dark.ant-menu-dark:not(.ant-menu-horizontal) .ant-menu-item-danger.ant-menu-item-selected {color: #fff;background-color: @error-color;} @@ -1461,7 +1461,7 @@ tr.ant-table-expanded-row:hover > td {background: #fbfbfb;} .ant-tag-pink-inverse {color: #fff;background: #eb2f96;border-color: #eb2f96;} .ant-tag-magenta {color: #eb2f96;background: #fff0f6;border-color: #ffadd2;} .ant-tag-magenta-inverse {color: #fff;background: #eb2f96;border-color: #eb2f96;} -.ant-tag-red {color: #f5222d;background: color(~`colorPalette("@{border-color-base}", 1)`);border-color: #ffa39e;} +.ant-tag-red {color: #f5222d;background: #fff1f0;border-color: #ffa39e;} .ant-tag-red-inverse {color: #fff;background: #f5222d;border-color: #f5222d;} .ant-tag-volcano {color: #fa541c;background: #fff2e8;border-color: #ffbb96;} .ant-tag-volcano-inverse {color: #fff;background: #fa541c;border-color: #fa541c;} @@ -1485,7 +1485,7 @@ tr.ant-table-expanded-row:hover > td {background: #fbfbfb;} .ant-tag-purple-inverse {color: #fff;background: #722ed1;border-color: #722ed1;} .ant-tag-success {color: #52c41a;background: #f6ffed;border-color: #b7eb8f;} .ant-tag-processing {color: #1890ff;background: #e6f7ff;border-color: #91d5ff;} -.ant-tag-error {color: #f5222d;background: color(~`colorPalette("@{border-color-base}", 1)`);border-color: #ffa39e;} +.ant-tag-error {color: #f5222d;background: #fff1f0;border-color: #ffa39e;} .ant-tag-warning {color: #fa8c16;background: #fff7e6;border-color: #ffd591;} .ant-timeline {color: @text-color;} .ant-timeline-item-tail {border-left: 2px solid #f0f0f0;} diff --git a/index.html b/index.html index 30bc1affd0..903d7fcfa4 100644 --- a/index.html +++ b/index.html @@ -127,6 +127,6 @@ - + diff --git a/p__Classrooms__Lists__Attendance__index.253021e0.async.js b/p__Classrooms__Lists__Attendance__index.253021e0.async.js index e3e9c5edd4..8f5e4f62d7 100644 --- a/p__Classrooms__Lists__Attendance__index.253021e0.async.js +++ b/p__Classrooms__Lists__Attendance__index.253021e0.async.js @@ -1,23 +1,23 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[42,3,6,8,9],{"+QRC":function(ie,x,t){"use strict";var O=t("E9nw"),f={"text/plain":"Text","text/html":"Url",default:"Text"},m="Copy to clipboard: #{key}, Enter";function v(a){var r=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return a.replace(/#{\s*key\s*}/g,r)}function u(a,r){var e,s,l,i,d,g,E=!1;r||(r={}),e=r.debug||!1;try{l=O(),i=document.createRange(),d=document.getSelection(),g=document.createElement("span"),g.textContent=a,g.style.all="unset",g.style.position="fixed",g.style.top=0,g.style.clip="rect(0, 0, 0, 0)",g.style.whiteSpace="pre",g.style.webkitUserSelect="text",g.style.MozUserSelect="text",g.style.msUserSelect="text",g.style.userSelect="text",g.addEventListener("copy",function(T){if(T.stopPropagation(),r.format)if(T.preventDefault(),typeof T.clipboardData=="undefined"){e&&console.warn("unable to use e.clipboardData"),e&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var N=f[r.format]||f.default;window.clipboardData.setData(N,a)}else T.clipboardData.clearData(),T.clipboardData.setData(r.format,a);r.onCopy&&(T.preventDefault(),r.onCopy(T.clipboardData))}),document.body.appendChild(g),i.selectNodeContents(g),d.addRange(i);var y=document.execCommand("copy");if(!y)throw new Error("copy command was unsuccessful");E=!0}catch(T){e&&console.error("unable to copy using execCommand: ",T),e&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(r.format||"text",a),r.onCopy&&r.onCopy(window.clipboardData),E=!0}catch(N){e&&console.error("unable to copy using clipboardData: ",N),e&&console.error("falling back to prompt"),s=v("message"in r?r.message:m),window.prompt(s,a)}}finally{d&&(typeof d.removeRange=="function"?d.removeRange(i):d.removeAllRanges()),g&&document.body.removeChild(g),l()}return E}ie.exports=u},"/GNS":function(ie,x,t){ie.exports=t.p+"static/search1.c4136dd4.png"},"06Qe":function(ie,x,t){var O=t("ItGF"),f="urn:schemas-microsoft-com:vml",m=typeof window=="undefined"?null:window,v=!1,u=m&&m.document;function a(s){return r(s)}var r;if(u&&!O.canvasSupported)try{!u.namespaces.zrvml&&u.namespaces.add("zrvml",f),r=function(s){return u.createElement("')}}catch(s){r=function(l){return u.createElement("<"+l+' xmlns="'+f+'" class="zrvml">')}}function e(){if(v||!u)return;v=!0;var s=u.styleSheets;s.length<31?u.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):s[0].addRule(".zrvml","behavior:url(#default#VML)")}x.doc=u,x.createNode=a,x.initVML=e},"0FX9":function(ie,x,t){var O=t("Z92M"),f=t("qmMu"),m=t("QUaw"),v=t("QAZZ");function u(a,r,e,s,l){var i=[].slice.call(arguments,1),d=i.length,g=typeof i[d-1]=="function";if(!g&&!O())throw new Error("Callback required as last argument");if(g){if(d<2)throw new Error("Too few arguments provided");d===2?(l=e,e=r,r=s=void 0):d===3&&(r.getContext&&typeof l=="undefined"?(l=s,s=void 0):(l=s,s=e,e=r,r=void 0))}else{if(d<1)throw new Error("Too few arguments provided");return d===1?(e=r,r=s=void 0):d===2&&!r.getContext&&(s=e,e=r,r=void 0),new Promise(function(y,T){try{var N=f.create(e,s);y(a(N,r,s))}catch(L){T(L)}})}try{var E=f.create(e,s);l(null,a(E,r,s))}catch(y){l(y)}}x.create=f.create,x.toCanvas=u.bind(null,m.render),x.toDataURL=u.bind(null,m.renderToDataURL),x.toString=u.bind(null,function(a,r,e){return v.render(a,e)})},"0s+r":function(ie,x,t){var O=t("bYtY"),f=t("QBsz"),m=t("y23F"),v=t("H6uX"),u=t("YH21"),a=t("C0SR"),r="silent";function e(T,N,L){return{type:T,event:L,target:N.target,topTarget:N.topTarget,cancelBubble:!1,offsetX:L.zrX,offsetY:L.zrY,gestureEvent:L.gestureEvent,pinchX:L.pinchX,pinchY:L.pinchY,pinchScale:L.pinchScale,wheelDelta:L.zrDelta,zrByTouch:L.zrByTouch,which:L.which,stop:s}}function s(){u.stop(this.event)}function l(){}l.prototype.dispose=function(){};var i=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],d=function(T,N,L,p){v.call(this),this.storage=T,this.painter=N,this.painterRoot=p,L=L||new l,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,m.call(this),this.setHandlerProxy(L)};d.prototype={constructor:d,setHandlerProxy:function(T){this.proxy&&this.proxy.dispose(),T&&(O.each(i,function(N){T.on&&T.on(N,this[N],this)},this),T.handler=this),this.proxy=T},mousemove:function(T){var N=T.zrX,L=T.zrY,p=E(this,N,L),C=this._hovered,h=C.target;h&&!h.__zr&&(C=this.findHover(C.x,C.y),h=C.target);var D=this._hovered=p?{x:N,y:L}:this.findHover(N,L),B=D.target,H=this.proxy;H.setCursor&&H.setCursor(B?B.cursor:"default"),h&&B!==h&&this.dispatchToElement(C,"mouseout",T),this.dispatchToElement(D,"mousemove",T),B&&B!==h&&this.dispatchToElement(D,"mouseover",T)},mouseout:function(T){var N=T.zrEventControl,L=T.zrIsToLocalDOM;N!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",T),N!=="no_globalout"&&(!L&&this.trigger("globalout",{type:"globalout",event:T}))},resize:function(T){this._hovered={}},dispatch:function(T,N){var L=this[T];L&&L.call(this,N)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(T){var N=this.proxy;N.setCursor&&N.setCursor(T)},dispatchToElement:function(T,N,L){T=T||{};var p=T.target;if(p&&p.silent)return;for(var C="on"+N,h=e(N,T,L);p&&!(p[C]&&(h.cancelBubble=p[C].call(p,h)),p.trigger(N,h),p=p.parent,h.cancelBubble););h.cancelBubble||(this.trigger(N,h),this.painter&&this.painter.eachOtherLayer(function(D){typeof D[C]=="function"&&D[C].call(D,h),D.trigger&&D.trigger(N,h)}))},findHover:function(T,N,L){for(var p=this.storage.getDisplayList(),C={x:T,y:N},h=p.length-1;h>=0;h--){var D;if(p[h]!==L&&!p[h].ignore&&(D=g(p[h],T,N))&&(!C.topTarget&&(C.topTarget=p[h]),D!==r)){C.target=p[h];break}}return C},processGesture:function(T,N){this._gestureMgr||(this._gestureMgr=new a);var L=this._gestureMgr;N==="start"&&L.clear();var p=L.recognize(T,this.findHover(T.zrX,T.zrY,null).target,this.proxy.dom);if(N==="end"&&L.clear(),p){var C=p.type;T.gestureEvent=C,this.dispatchToElement({target:p.target},C,p.event)}}},O.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(T){d.prototype[T]=function(N){var L=N.zrX,p=N.zrY,C=E(this,L,p),h,D;if((T!=="mouseup"||!C)&&(h=this.findHover(L,p),D=h.target),T==="mousedown")this._downEl=D,this._downPoint=[N.zrX,N.zrY],this._upEl=D;else if(T==="mouseup")this._upEl=D;else if(T==="click"){if(this._downEl!==this._upEl||!this._downPoint||f.dist(this._downPoint,[N.zrX,N.zrY])>4)return;this._downPoint=null}this.dispatchToElement(h,T,N)}});function g(T,N,L){if(T[T.rectHover?"rectContain":"contain"](N,L)){for(var p=T,C;p;){if(p.clipPath&&!p.clipPath.contain(N,L))return!1;p.silent&&(C=!0),p=p.parent}return C?r:!0}return!1}function E(T,N,L){var p=T.painter;return N<0||N>p.getWidth()||L<0||L>p.getHeight()}O.mixin(d,v),O.mixin(d,m);var y=d;ie.exports=y},"1Jh7":function(ie,x,t){var O=t("y+Vt"),f=t("T6xi"),m=O.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(v,u){f.buildPath(v,u,!1)}});ie.exports=m},"1MYJ":function(ie,x,t){var O=t("y+Vt"),f=O.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var m=this.__dirtyPath,v=this.shape.paths,u=0;u=this._maxSize&&i>0){var g=e.head;e.remove(g),delete s[g.key],l=g.value,this._lastRemovedEntry=g}d?d.value=r:d=new f(r),d.key=a,e.insertEntry(d),s[a]=d}return l},v.get=function(a){var r=this._map[a],e=this._list;if(r!=null)return r!==e.tail&&(e.remove(r),e.insertEntry(r)),r.value},v.clear=function(){this._list.clear(),this._map={}};var u=m;ie.exports=u},"1bdT":function(ie,x,t){var O=t("3gBT"),f=t("H6uX"),m=t("DN4a"),v=t("vWvF"),u=t("bYtY"),a=function(e){m.call(this,e),f.call(this,e),v.call(this,e),this.id=e.id||O()};a.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(e,s){switch(this.draggable){case"horizontal":s=0;break;case"vertical":e=0;break}var l=this.transform;l||(l=this.transform=[1,0,0,1,0,0]),l[4]+=e,l[5]+=s,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(e,s){},attrKV:function(e,s){if(e==="position"||e==="scale"||e==="origin"){if(s){var l=this[e];l||(l=this[e]=[]),l[0]=s[0],l[1]=s[1]}}else this[e]=s},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(e,s){if(typeof e=="string")this.attrKV(e,s);else if(u.isObject(e))for(var l in e)e.hasOwnProperty(l)&&this.attrKV(l,e[l]);return this.dirty(!1),this},setClipPath:function(e){var s=this.__zr;s&&e.addSelfToZr(s),this.clipPath&&this.clipPath!==e&&this.removeClipPath(),this.clipPath=e,e.__zr=s,e.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var e=this.clipPath;e&&(e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(e){this.__zr=e;var s=this.animators;if(s)for(var l=0;l1&&arguments[1]!==void 0?arguments[1]:!1,ge=Ce&&typeof Ce.getBoundingClientRect=="function"&&Ce.getBoundingClientRect().width;if(ge){if(Oe){var te=getComputedStyle(Ce),le=te.marginLeft,we=te.marginRight;ge+=+le.replace("px","")+ +we.replace("px","")}ge=+ge.toFixed(6)}return ge||0},X=function(Ce,Oe,ge){Ce&&Object(L.a)(Ce.style)==="object"&&(Ce.style[Oe]=ge)},Z=function(){return G.any},se=t("KQm4"),ae=t("Ff2n"),ve=t("i8i4"),V=t("bdgK"),re=t("uciX"),I=t("8XRh"),q={adjustX:1,adjustY:1},fe={topLeft:{points:["bl","tl"],overflow:q,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:q,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:q,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:q,offset:[4,0]}},z={topLeft:{points:["bl","tl"],overflow:q,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:q,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:q,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:q,offset:[4,0]}},A=fe,S=0,K={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ee=function(Ce,Oe,ge){var te=P(Oe),le=Ce.getState();Ce.setState({defaultActiveFirst:Object(O.a)(Object(O.a)({},le.defaultActiveFirst),{},Object(i.a)({},te,ge))})},de=function(ze){Object(u.a)(Oe,ze);var Ce=Object(a.a)(Oe);function Oe(ge){var te;Object(f.a)(this,Oe),te=Ce.call(this,ge),te.onDestroy=function(Te){te.props.onDestroy(Te)},te.onKeyDown=function(Te){var Le=Te.keyCode,Fe=te.menuInstance,dt=te.props,tt=dt.isOpen,Ct=dt.store;if(Le===d.a.ENTER)return te.onTitleClick(Te),ee(Ct,te.props.eventKey,!0),!0;if(Le===d.a.RIGHT)return tt?Fe.onKeyDown(Te):(te.triggerOpenChange(!0),ee(Ct,te.props.eventKey,!0)),!0;if(Le===d.a.LEFT){var At;if(tt)At=Fe.onKeyDown(Te);else return;return At||(te.triggerOpenChange(!1),At=!0),At}return tt&&(Le===d.a.UP||Le===d.a.DOWN)?Fe.onKeyDown(Te):void 0},te.onOpenChange=function(Te){te.props.onOpenChange(Te)},te.onPopupVisibleChange=function(Te){te.triggerOpenChange(Te,Te?"mouseenter":"mouseleave")},te.onMouseEnter=function(Te){var Le=te.props,Fe=Le.eventKey,dt=Le.onMouseEnter,tt=Le.store;ee(tt,te.props.eventKey,!1),dt({key:Fe,domEvent:Te})},te.onMouseLeave=function(Te){var Le=te.props,Fe=Le.parentMenu,dt=Le.eventKey,tt=Le.onMouseLeave;Fe.subMenuInstance=Object(v.a)(te),tt({key:dt,domEvent:Te})},te.onTitleMouseEnter=function(Te){var Le=te.props,Fe=Le.eventKey,dt=Le.onItemHover,tt=Le.onTitleMouseEnter;dt({key:Fe,hover:!0}),tt({key:Fe,domEvent:Te})},te.onTitleMouseLeave=function(Te){var Le=te.props,Fe=Le.parentMenu,dt=Le.eventKey,tt=Le.onItemHover,Ct=Le.onTitleMouseLeave;Fe.subMenuInstance=Object(v.a)(te),tt({key:dt,hover:!1}),Ct({key:dt,domEvent:Te})},te.onTitleClick=function(Te){var Le=Object(v.a)(te),Fe=Le.props;if(Fe.onTitleClick({key:Fe.eventKey,domEvent:Te}),Fe.triggerSubMenuAction==="hover")return;te.triggerOpenChange(!Fe.isOpen,"click"),ee(Fe.store,te.props.eventKey,!1)},te.onSubMenuClick=function(Te){typeof te.props.onClick=="function"&&te.props.onClick(te.addKeyPath(Te))},te.onSelect=function(Te){te.props.onSelect(Te)},te.onDeselect=function(Te){te.props.onDeselect(Te)},te.getPrefixCls=function(){return"".concat(te.props.rootPrefixCls,"-submenu")},te.getActiveClassName=function(){return"".concat(te.getPrefixCls(),"-active")},te.getDisabledClassName=function(){return"".concat(te.getPrefixCls(),"-disabled")},te.getSelectedClassName=function(){return"".concat(te.getPrefixCls(),"-selected")},te.getOpenClassName=function(){return"".concat(te.props.rootPrefixCls,"-submenu-open")},te.saveMenuInstance=function(Te){te.menuInstance=Te},te.addKeyPath=function(Te){return Object(O.a)(Object(O.a)({},Te),{},{keyPath:(Te.keyPath||[]).concat(te.props.eventKey)})},te.triggerOpenChange=function(Te,Le){var Fe=te.props.eventKey,dt=function(){te.onOpenChange({key:Fe,item:Object(v.a)(te),trigger:Le,open:Te})};Le==="mouseenter"?te.mouseenterTimeout=setTimeout(function(){dt()},0):dt()},te.isChildrenSelected=function(){var Te={find:!1};return W(te.props.children,te.props.selectedKeys,Te),Te.find},te.isOpen=function(){return te.props.openKeys.indexOf(te.props.eventKey)!==-1},te.adjustWidth=function(){if(!te.subMenuTitle||!te.menuInstance)return;var Te=ve.findDOMNode(te.menuInstance);if(Te.offsetWidth>=te.subMenuTitle.offsetWidth)return;Te.style.minWidth="".concat(te.subMenuTitle.offsetWidth,"px")},te.saveSubMenuTitle=function(Te){te.subMenuTitle=Te},te.getBaseProps=function(){var Te=Object(v.a)(te),Le=Te.props;return{mode:Le.mode==="horizontal"?"vertical":Le.mode,visible:te.props.isOpen,level:Le.level+1,inlineIndent:Le.inlineIndent,focusable:!1,onClick:te.onSubMenuClick,onSelect:te.onSelect,onDeselect:te.onDeselect,onDestroy:te.onDestroy,selectedKeys:Le.selectedKeys,eventKey:"".concat(Le.eventKey,"-menu-"),openKeys:Le.openKeys,motion:Le.motion,onOpenChange:te.onOpenChange,subMenuOpenDelay:Le.subMenuOpenDelay,parentMenu:Object(v.a)(te),subMenuCloseDelay:Le.subMenuCloseDelay,forceSubMenuRender:Le.forceSubMenuRender,triggerSubMenuAction:Le.triggerSubMenuAction,builtinPlacements:Le.builtinPlacements,defaultActiveFirst:Le.store.getState().defaultActiveFirst[P(Le.eventKey)],multiple:Le.multiple,prefixCls:Le.rootPrefixCls,id:te.internalMenuId,manualRef:te.saveMenuInstance,itemIcon:Le.itemIcon,expandIcon:Le.expandIcon,direction:Le.direction}},te.getMotion=function(Te,Le){var Fe=Object(v.a)(te),dt=Fe.haveRendered,tt=te.props,Ct=tt.motion,At=tt.rootPrefixCls,Ht=Object(O.a)(Object(O.a)({},Ct),{},{leavedClassName:"".concat(At,"-hidden"),removeOnLeave:!1,motionAppear:dt||!Le||Te!=="inline"});return Ht};var le=ge.store,we=ge.eventKey,xe=le.getState(),Re=xe.defaultActiveFirst;te.isRootMenu=!1;var je=!1;return Re&&(je=Re[we]),ee(le,we,je),te}return Object(m.a)(Oe,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var te=this,le=this.props,we=le.mode,xe=le.parentMenu,Re=le.manualRef;if(Re&&Re(this),we!=="horizontal"||!xe.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return te.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var te=this.props,le=te.onDestroy,we=te.eventKey;le&&le(we),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(te){var le=this,we=this.getBaseProps(),xe=this.getMotion(we.mode,we.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||we.visible||we.forceSubMenuRender,!this.haveOpened)return r.createElement("div",null);var Re=we.direction;return r.createElement(I.default,Object.assign({visible:we.visible},xe),function(je){var Te=je.className,Le=je.style,Fe=N()("".concat(we.prefixCls,"-sub"),Te,Object(i.a)({},"".concat(we.prefixCls,"-rtl"),Re==="rtl"));return r.createElement(et,Object.assign({},we,{id:le.internalMenuId,className:Fe,style:Le}),te)})}},{key:"render",value:function(){var te,le=Object(O.a)({},this.props),we=le.isOpen,xe=this.getPrefixCls(),Re=le.mode==="inline",je=N()(xe,"".concat(xe,"-").concat(le.mode),(te={},Object(i.a)(te,le.className,!!le.className),Object(i.a)(te,this.getOpenClassName(),we),Object(i.a)(te,this.getActiveClassName(),le.active||we&&!Re),Object(i.a)(te,this.getDisabledClassName(),le.disabled),Object(i.a)(te,this.getSelectedClassName(),this.isChildrenSelected()),te));this.internalMenuId||(le.eventKey?this.internalMenuId="".concat(le.eventKey,"$Menu"):(S+=1,this.internalMenuId="$__$".concat(S,"$Menu")));var Te={},Le={},Fe={};le.disabled||(Te={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Le={onClick:this.onTitleClick},Fe={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var dt={},tt=le.direction;Re&&(tt==="rtl"?dt.paddingRight=le.inlineIndent*le.level:dt.paddingLeft=le.inlineIndent*le.level);var Ct={};this.props.isOpen&&(Ct={"aria-owns":this.internalMenuId});var At=null;le.mode!=="horizontal"&&(At=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(At=r.createElement(this.props.expandIcon,Object(O.a)({},this.props))));var Ht=r.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:dt,className:"".concat(xe,"-title"),role:"button"},Fe,Le,{"aria-expanded":we},Ct,{"aria-haspopup":"true",title:typeof le.title=="string"?le.title:void 0}),le.title,At||r.createElement("i",{className:"".concat(xe,"-arrow")})),en=this.renderChildren(le.children),Ge=le.parentMenu.isRootMenu?le.parentMenu.props.getPopupContainer:function(Ft){return Ft.parentNode},gt=K[le.mode],xt=le.popupOffset?{offset:le.popupOffset}:{},Lt=le.mode==="inline"?"":le.popupClassName;Lt+=tt==="rtl"?" ".concat(xe,"-rtl"):"";var Ot=le.disabled,Tt=le.triggerSubMenuAction,Bt=le.subMenuOpenDelay,Xt=le.forceSubMenuRender,an=le.subMenuCloseDelay,Jt=le.builtinPlacements;oe.forEach(function(Ft){return delete le[Ft]}),delete le.onClick;var _t=tt==="rtl"?Object.assign({},z,Jt):Object.assign({},fe,Jt);return delete le.direction,r.createElement("li",Object.assign({},le,Te,{className:je,role:"menuitem"}),Re&&Ht,Re&&en,!Re&&r.createElement(re.a,{prefixCls:xe,popupClassName:N()("".concat(xe,"-popup"),Lt),getPopupContainer:Ge,builtinPlacements:_t,popupPlacement:gt,popupVisible:we,popupAlign:xt,popup:en,action:Ot?[]:[Tt],mouseEnterDelay:Bt,mouseLeaveDelay:an,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Xt},Ht))}}]),Oe}(r.Component);de.defaultProps={onMouseEnter:ne,onMouseLeave:ne,onTitleMouseEnter:ne,onTitleMouseLeave:ne,onTitleClick:ne,manualRef:ne,mode:"vertical",title:""};var he=Object(e.b)(function(ze,Ce){var Oe=ze.openKeys,ge=ze.activeKey,te=ze.selectedKeys,le=Ce.eventKey,we=Ce.subMenuKey;return{isOpen:Oe.indexOf(le)>-1,active:ge[we]===le,selectedKeys:te}})(de);he.isSubMenu=!0;var Me=he,ce="menuitem-overflowed",be=.5,Ae=function(ze){Object(u.a)(Oe,ze);var Ce=Object(a.a)(Oe);function Oe(){var ge;return Object(f.a)(this,Oe),ge=Ce.apply(this,arguments),ge.resizeObserver=null,ge.mutationObserver=null,ge.originalTotalWidth=0,ge.overflowedItems=[],ge.menuItemSizes=[],ge.cancelFrameId=null,ge.state={lastVisibleIndex:void 0},ge.getMenuItemNodes=function(){var te=ge.props.prefixCls,le=ve.findDOMNode(Object(v.a)(ge));return le?[].slice.call(le.children).filter(function(we){return we.className.split(" ").indexOf("".concat(te,"-overflowed-submenu"))<0}):[]},ge.getOverflowedSubMenuItem=function(te,le,we){var xe=ge.props,Re=xe.overflowedIndicator,je=xe.level,Te=xe.mode,Le=xe.prefixCls,Fe=xe.theme;if(je!==1||Te!=="horizontal")return null;var dt=ge.props.children[0],tt=dt.props,Ct=tt.children,At=tt.title,Ht=tt.style,en=Object(ae.a)(tt,["children","title","style"]),Ge=Object(O.a)({},Ht),gt="".concat(te,"-overflowed-indicator"),xt="".concat(te,"-overflowed-indicator");le.length===0&&we!==!0?Ge=Object(O.a)(Object(O.a)({},Ge),{},{display:"none"}):we&&(Ge=Object(O.a)(Object(O.a)({},Ge),{},{visibility:"hidden",position:"absolute"}),gt="".concat(gt,"-placeholder"),xt="".concat(xt,"-placeholder"));var Lt=Fe?"".concat(Le,"-").concat(Fe):"",Ot={};return oe.forEach(function(Tt){en[Tt]!==void 0&&(Ot[Tt]=en[Tt])}),r.createElement(Me,Object.assign({title:Re,className:"".concat(Le,"-overflowed-submenu"),popupClassName:Lt},Ot,{key:gt,eventKey:xt,disabled:!1,style:Ge}),le)},ge.setChildrenWidthAndResize=function(){if(ge.props.mode!=="horizontal")return;var te=ve.findDOMNode(Object(v.a)(ge));if(!te)return;var le=te.children;if(!le||le.length===0)return;var we=te.children[le.length-1];X(we,"display","inline-block");var xe=ge.getMenuItemNodes(),Re=xe.filter(function(je){return je.className.split(" ").indexOf(ce)>=0});Re.forEach(function(je){X(je,"display","inline-block")}),ge.menuItemSizes=xe.map(function(je){return $(je,!0)}),Re.forEach(function(je){X(je,"display","none")}),ge.overflowedIndicatorWidth=$(te.children[te.children.length-1],!0),ge.originalTotalWidth=ge.menuItemSizes.reduce(function(je,Te){return je+Te},0),ge.handleResize(),X(we,"display","none")},ge.handleResize=function(){if(ge.props.mode!=="horizontal")return;var te=ve.findDOMNode(Object(v.a)(ge));if(!te)return;var le=$(te);ge.overflowedItems=[];var we=0,xe;ge.originalTotalWidth>le+be&&(xe=-1,ge.menuItemSizes.forEach(function(Re){we+=Re,we+ge.overflowedIndicatorWidth<=le&&(xe+=1)})),ge.setState({lastVisibleIndex:xe})},ge}return Object(m.a)(Oe,[{key:"componentDidMount",value:function(){var te=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var le=ve.findDOMNode(this);if(!le)return;this.resizeObserver=new V.default(function(we){we.forEach(function(){var xe=te.cancelFrameId;cancelAnimationFrame(xe),te.cancelFrameId=requestAnimationFrame(te.setChildrenWidthAndResize)})}),[].slice.call(le.children).concat(le).forEach(function(we){te.resizeObserver.observe(we)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){te.resizeObserver.disconnect(),[].slice.call(le.children).concat(le).forEach(function(we){te.resizeObserver.observe(we)}),te.setChildrenWidthAndResize()}),this.mutationObserver.observe(le,{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(te){var le=this,we=this.state.lastVisibleIndex;return(te||[]).reduce(function(xe,Re,je){var Te=Re;if(le.props.mode==="horizontal"){var Le=le.getOverflowedSubMenuItem(Re.props.eventKey,[]);we!==void 0&&le.props.className.indexOf("".concat(le.props.prefixCls,"-root"))!==-1&&(je>we&&(Te=r.cloneElement(Re,{style:{display:"none"},eventKey:"".concat(Re.props.eventKey,"-hidden"),className:"".concat(ce)})),je===we+1&&(le.overflowedItems=te.slice(we+1).map(function(dt){return r.cloneElement(dt,{key:dt.props.eventKey,mode:"vertical-left"})}),Le=le.getOverflowedSubMenuItem(Re.props.eventKey,le.overflowedItems)));var Fe=[].concat(Object(se.a)(xe),[Le,Te]);return je===te.length-1&&Fe.push(le.getOverflowedSubMenuItem(Re.props.eventKey,[],!0)),Fe}return[].concat(Object(se.a)(xe),[Te])},[])}},{key:"render",value:function(){var te=this.props,le=te.visible,we=te.prefixCls,xe=te.overflowedIndicator,Re=te.mode,je=te.level,Te=te.tag,Le=te.children,Fe=te.theme,dt=Object(ae.a)(te,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),tt=Te;return r.createElement(tt,Object.assign({},dt),this.renderChildren(Le))}}]),Oe}(r.Component);Ae.defaultProps={tag:"div",className:""};var ye=Ae;function ke(ze){return ze.length?ze.every(function(Ce){return!!Ce.props.disabled}):!0}function Se(ze,Ce,Oe){var ge=ze.getState();ze.setState({activeKey:Object(O.a)(Object(O.a)({},ge.activeKey),{},Object(i.a)({},Ce,Oe))})}function Ne(ze){return ze.eventKey||"0-menu-"}function _e(ze,Ce){var Oe=Ce,ge=ze.children,te=ze.eventKey;if(Oe){var le;if(Y(ge,function(we,xe){we&&we.props&&!we.props.disabled&&Oe===J(we,te,xe)&&(le=!0)}),le)return Oe}return Oe=null,ze.defaultActiveFirst&&Y(ge,function(we,xe){!Oe&&we&&!we.props.disabled&&(Oe=J(we,te,xe))}),Oe}function $e(ze){if(ze){var Ce=this.instanceArray.indexOf(ze);Ce!==-1?this.instanceArray[Ce]=ze:this.instanceArray.push(ze)}}var He=function(ze){Object(u.a)(Oe,ze);var Ce=Object(a.a)(Oe);function Oe(ge){var te;return Object(f.a)(this,Oe),te=Ce.call(this,ge),te.onKeyDown=function(le,we){var xe=le.keyCode,Re;if(te.getFlatInstanceArray().forEach(function(Te){Te&&Te.props.active&&Te.onKeyDown&&(Re=Te.onKeyDown(le))}),Re)return 1;var je=null;return(xe===d.a.UP||xe===d.a.DOWN)&&(je=te.step(xe===d.a.UP?-1:1)),je?(le.preventDefault(),Se(te.props.store,Ne(te.props),je.props.eventKey),typeof we=="function"&&we(je),1):void 0},te.onItemHover=function(le){var we=le.key,xe=le.hover;Se(te.props.store,Ne(te.props),xe?we:null)},te.onDeselect=function(le){te.props.onDeselect(le)},te.onSelect=function(le){te.props.onSelect(le)},te.onClick=function(le){te.props.onClick(le)},te.onOpenChange=function(le){te.props.onOpenChange(le)},te.onDestroy=function(le){te.props.onDestroy(le)},te.getFlatInstanceArray=function(){return te.instanceArray},te.step=function(le){var we=te.getFlatInstanceArray(),xe=te.props.store.getState().activeKey[Ne(te.props)],Re=we.length;if(!Re)return null;le<0&&(we=we.concat().reverse());var je=-1;if(we.every(function(dt,tt){return dt&&dt.props.eventKey===xe?(je=tt,!1):!0}),!te.props.defaultActiveFirst&&je!==-1&&ke(we.slice(je,Re-1)))return;var Te=(je+1)%Re,Le=Te;do{var Fe=we[Le];if(!Fe||Fe.props.disabled)Le=(Le+1)%Re;else return Fe}while(Le!==Te);return null},te.renderCommonMenuItem=function(le,we,xe){var Re=te.props.store.getState(),je=Object(v.a)(te),Te=je.props,Le=J(le,Te.eventKey,we),Fe=le.props;if(!Fe||typeof le.type=="string")return le;var dt=Le===Re.activeKey,tt=Object(O.a)(Object(O.a)({mode:Fe.mode||Te.mode,level:Te.level,inlineIndent:Te.inlineIndent,renderMenuItem:te.renderMenuItem,rootPrefixCls:Te.prefixCls,index:we,parentMenu:Te.parentMenu,manualRef:Fe.disabled?void 0:Object(g.a)(le.ref,$e.bind(Object(v.a)(te))),eventKey:Le,active:!Fe.disabled&&dt,multiple:Te.multiple,onClick:function(At){(Fe.onClick||ne)(At),te.onClick(At)},onItemHover:te.onItemHover,motion:Te.motion,subMenuOpenDelay:Te.subMenuOpenDelay,subMenuCloseDelay:Te.subMenuCloseDelay,forceSubMenuRender:Te.forceSubMenuRender,onOpenChange:te.onOpenChange,onDeselect:te.onDeselect,onSelect:te.onSelect,builtinPlacements:Te.builtinPlacements,itemIcon:Fe.itemIcon||te.props.itemIcon,expandIcon:Fe.expandIcon||te.props.expandIcon},xe),{},{direction:Te.direction});return(Te.mode==="inline"||Z())&&(tt.triggerSubMenuAction="click"),r.cloneElement(le,tt)},te.renderMenuItem=function(le,we,xe){if(!le)return null;var Re=te.props.store.getState(),je={openKeys:Re.openKeys,selectedKeys:Re.selectedKeys,triggerSubMenuAction:te.props.triggerSubMenuAction,subMenuKey:xe};return te.renderCommonMenuItem(le,we,je)},ge.store.setState({activeKey:Object(O.a)(Object(O.a)({},ge.store.getState().activeKey),{},Object(i.a)({},ge.eventKey,_e(ge,ge.activeKey)))}),te.instanceArray=[],te}return Object(m.a)(Oe,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(te){return this.props.visible||te.visible||this.props.className!==te.className||!y()(this.props.style,te.style)}},{key:"componentDidUpdate",value:function(te){var le=this.props,we="activeKey"in le?le.activeKey:le.store.getState().activeKey[Ne(le)],xe=_e(le,we);if(xe!==we)Se(le.store,Ne(le),xe);else if("activeKey"in te){var Re=_e(te,te.activeKey);xe!==Re&&Se(le.store,Ne(le),xe)}}},{key:"render",value:function(){var te=this,le=Object(l.a)({},this.props);this.instanceArray=[];var we=N()(le.prefixCls,le.className,"".concat(le.prefixCls,"-").concat(le.mode)),xe={className:we,role:le.role||"menu"};le.id&&(xe.id=le.id),le.focusable&&(xe.tabIndex=0,xe.onKeyDown=this.onKeyDown);var Re=le.prefixCls,je=le.eventKey,Te=le.visible,Le=le.level,Fe=le.mode,dt=le.overflowedIndicator,tt=le.theme;return oe.forEach(function(Ct){return delete le[Ct]}),delete le.onClick,r.createElement(ye,Object.assign({},le,{prefixCls:Re,mode:Fe,tag:"ul",level:Le,theme:tt,visible:Te,overflowedIndicator:dt},xe),r.Children.map(le.children,function(Ct,At){return te.renderMenuItem(Ct,At,je||"0-menu-")}))}}]),Oe}(r.Component);He.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:ne};var nt=Object(e.b)()(He),et=nt,Xe=t("Kwbf");function st(ze,Ce,Oe){var ge=ze.prefixCls,te=ze.motion,le=ze.defaultMotions,we=le===void 0?{}:le,xe=ze.openAnimation,Re=ze.openTransitionName,je=Ce.switchingModeFromInline;if(te)return te;if(Object(L.a)(xe)==="object"&&xe)Object(Xe.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof xe=="string")return{motionName:"".concat(ge,"-open-").concat(xe)};if(Re)return{motionName:Re};var Te=we[Oe];return Te||(je?null:we.other)}var ut=function(ze){Object(u.a)(Oe,ze);var Ce=Object(a.a)(Oe);function Oe(ge){var te;Object(f.a)(this,Oe),te=Ce.call(this,ge),te.inlineOpenKeys=[],te.onSelect=function(xe){var Re=Object(v.a)(te),je=Re.props;if(je.selectable){var Te=te.store.getState(),Le=Te.selectedKeys,Fe=xe.key;je.multiple?Le=Le.concat([Fe]):Le=[Fe],"selectedKeys"in je||te.store.setState({selectedKeys:Le}),je.onSelect(Object(O.a)(Object(O.a)({},xe),{},{selectedKeys:Le}))}},te.onClick=function(xe){var Re=te.getRealMenuMode(),je=Object(v.a)(te),Te=je.store,Le=je.props.onOpenChange;Re!=="inline"&&!("openKeys"in te.props)&&(Te.setState({openKeys:[]}),Le([])),te.props.onClick(xe)},te.onKeyDown=function(xe,Re){te.innerMenu.getWrappedInstance().onKeyDown(xe,Re)},te.onOpenChange=function(xe){var Re=Object(v.a)(te),je=Re.props,Te=te.store.getState().openKeys.concat(),Le=!1,Fe=function(tt){var Ct=!1;if(tt.open)Ct=Te.indexOf(tt.key)===-1,Ct&&Te.push(tt.key);else{var At=Te.indexOf(tt.key);Ct=At!==-1,Ct&&Te.splice(At,1)}Le=Le||Ct};Array.isArray(xe)?xe.forEach(Fe):Fe(xe),Le&&("openKeys"in te.props||te.store.setState({openKeys:Te}),je.onOpenChange(Te))},te.onDeselect=function(xe){var Re=Object(v.a)(te),je=Re.props;if(je.selectable){var Te=te.store.getState().selectedKeys.concat(),Le=xe.key,Fe=Te.indexOf(Le);Fe!==-1&&Te.splice(Fe,1),"selectedKeys"in je||te.store.setState({selectedKeys:Te}),je.onDeselect(Object(O.a)(Object(O.a)({},xe),{},{selectedKeys:Te}))}},te.onMouseEnter=function(xe){te.restoreModeVerticalFromInline();var Re=te.props.onMouseEnter;Re&&Re(xe)},te.onTransitionEnd=function(xe){var Re=xe.propertyName==="width"&&xe.target===xe.currentTarget,je=xe.target.className,Te=Object.prototype.toString.call(je)==="[object SVGAnimatedString]"?je.animVal:je,Le=xe.propertyName==="font-size"&&Te.indexOf("anticon")>=0;(Re||Le)&&te.restoreModeVerticalFromInline()},te.setInnerMenu=function(xe){te.innerMenu=xe},te.isRootMenu=!0;var le=ge.defaultSelectedKeys,we=ge.defaultOpenKeys;return"selectedKeys"in ge&&(le=ge.selectedKeys||[]),"openKeys"in ge&&(we=ge.openKeys||[]),te.store=Object(e.c)({selectedKeys:le,openKeys:we,activeKey:{"0-menu-":_e(ge,ge.activeKey)}}),te.state={switchingModeFromInline:!1},te}return Object(m.a)(Oe,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(te){this.updateOpentKeysWhenSwitchMode(te),this.updateMiniStore();var le=this.props,we=le.siderCollapsed,xe=le.inlineCollapsed,Re=le.onOpenChange;(!te.inlineCollapsed&&xe||!te.siderCollapsed&&we)&&Re([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(te){var le=this.props,we=this.store,xe=this.inlineOpenKeys,Re=we.getState(),je={};te.mode==="inline"&&le.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in le||((le.inlineCollapsed&&!te.inlineCollapsed||le.siderCollapsed&&!te.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=Re.openKeys.concat(),je.openKeys=[]),(!le.inlineCollapsed&&te.inlineCollapsed||!le.siderCollapsed&&te.siderCollapsed)&&(je.openKeys=xe,this.inlineOpenKeys=[])),Object.keys(je).length&&we.setState(je)}},{key:"updateMenuDisplay",value:function(){var te=this.props.collapsedWidth,le=this.store,we=this.prevOpenKeys,xe=this.getInlineCollapsed()&&(te===0||te==="0"||te==="0px");xe?(this.prevOpenKeys=le.getState().openKeys.concat(),this.store.setState({openKeys:[]})):we&&(this.store.setState({openKeys:we}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var te=this.props.mode,le=this.state.switchingModeFromInline,we=this.getInlineCollapsed();return le&&we?"inline":we?"vertical":te}},{key:"getInlineCollapsed",value:function(){var te=this.props,le=te.inlineCollapsed,we=te.siderCollapsed;return we!==void 0?we:le}},{key:"restoreModeVerticalFromInline",value:function(){var te=this.state.switchingModeFromInline;te&&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 te=Object(O.a)({},Object(s.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),le=this.getRealMenuMode();return te.className+=" ".concat(te.prefixCls,"-root"),te.direction==="rtl"&&(te.className+=" ".concat(te.prefixCls,"-rtl")),te=Object(O.a)(Object(O.a)({},te),{},{mode:le,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:st(this.props,this.state,le)}),delete te.openAnimation,delete te.openTransitionName,r.createElement(e.a,{store:this.store},r.createElement(et,Object.assign({},te,{ref:this.setInnerMenu}),this.props.children))}}]),Oe}(r.Component);ut.defaultProps={selectable:!0,onClick:ne,onSelect:ne,onOpenChange:ne,onDeselect:ne,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:r.createElement("span",null,"\xB7\xB7\xB7")};var ct=ut,Ze=function(ze){Object(u.a)(Oe,ze);var Ce=Object(a.a)(Oe);function Oe(){var ge;return Object(f.a)(this,Oe),ge=Ce.apply(this,arguments),ge.onKeyDown=function(te){var le=te.keyCode;return le===d.a.ENTER?(ge.onClick(te),!0):void 0},ge.onMouseLeave=function(te){var le=ge.props,we=le.eventKey,xe=le.onItemHover,Re=le.onMouseLeave;xe({key:we,hover:!1}),Re({key:we,domEvent:te})},ge.onMouseEnter=function(te){var le=ge.props,we=le.eventKey,xe=le.onItemHover,Re=le.onMouseEnter;xe({key:we,hover:!0}),Re({key:we,domEvent:te})},ge.onClick=function(te){var le=ge.props,we=le.eventKey,xe=le.multiple,Re=le.onClick,je=le.onSelect,Te=le.onDeselect,Le=le.isSelected,Fe={key:we,keyPath:[we],item:Object(v.a)(ge),domEvent:te};Re(Fe),xe?Le?Te(Fe):je(Fe):Le||je(Fe)},ge.saveNode=function(te){ge.node=te},ge}return Object(m.a)(Oe,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var te=this.props;te.onDestroy&&te.onDestroy(te.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 te,le=Object(O.a)({},this.props),we=N()(this.getPrefixCls(),le.className,(te={},Object(i.a)(te,this.getActiveClassName(),!le.disabled&&le.active),Object(i.a)(te,this.getSelectedClassName(),le.isSelected),Object(i.a)(te,this.getDisabledClassName(),le.disabled),te)),xe=Object(O.a)(Object(O.a)({},le.attribute),{},{title:typeof le.title=="string"?le.title:void 0,className:we,role:le.role||"menuitem","aria-disabled":le.disabled});le.role==="option"?xe=Object(O.a)(Object(O.a)({},xe),{},{role:"option","aria-selected":le.isSelected}):(le.role===null||le.role==="none")&&(xe.role="none");var Re={onClick:le.disabled?null:this.onClick,onMouseLeave:le.disabled?null:this.onMouseLeave,onMouseEnter:le.disabled?null:this.onMouseEnter},je=Object(O.a)({},le.style);le.mode==="inline"&&(le.direction==="rtl"?je.paddingRight=le.inlineIndent*le.level:je.paddingLeft=le.inlineIndent*le.level),oe.forEach(function(Le){return delete le[Le]}),delete le.direction;var Te=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(Te=r.createElement(this.props.itemIcon,this.props)),r.createElement("li",Object.assign({},Object(s.default)(le,["onClick","onMouseEnter","onMouseLeave","onSelect"]),xe,Re,{style:je,ref:this.saveNode}),le.children,Te)}}]),Oe}(r.Component);Ze.isMenuItem=!0,Ze.defaultProps={onSelect:ne,onMouseEnter:ne,onMouseLeave:ne,manualRef:ne};var bt=Object(e.b)(function(ze,Ce){var Oe=ze.activeKey,ge=ze.selectedKeys,te=Ce.eventKey,le=Ce.subMenuKey;return{active:Oe[le]===te,isSelected:ge.indexOf(te)!==-1}})(Ze),lt=bt,Et=function(ze){Object(u.a)(Oe,ze);var Ce=Object(a.a)(Oe);function Oe(){var ge;return Object(f.a)(this,Oe),ge=Ce.apply(this,arguments),ge.renderInnerMenuItem=function(te){var le=ge.props,we=le.renderMenuItem,xe=le.index;return we(te,xe,ge.props.subMenuKey)},ge}return Object(m.a)(Oe,[{key:"render",value:function(){var te=Object(l.a)({},this.props),le=te.className,we=le===void 0?"":le,xe=te.rootPrefixCls,Re="".concat(xe,"-item-group-title"),je="".concat(xe,"-item-group-list"),Te=te.title,Le=te.children;return oe.forEach(function(Fe){return delete te[Fe]}),delete te.onClick,delete te.direction,r.createElement("li",Object.assign({},te,{className:"".concat(we," ").concat(xe,"-item-group")}),r.createElement("div",{className:Re,title:typeof Te=="string"?Te:void 0},Te),r.createElement("ul",{className:je},r.Children.map(Le,this.renderInnerMenuItem)))}}]),Oe}(r.Component);Et.isMenuItemGroup=!0,Et.defaultProps={disabled:!0};var jt=Et,Qt=function(Ce){var Oe=Ce.className,ge=Ce.rootPrefixCls,te=Ce.style;return r.createElement("li",{className:"".concat(Oe," ").concat(ge,"-item-divider"),style:te})};Qt.defaultProps={disabled:!0,className:"",style:{}};var Gt=Qt,rn=x.e=ct},"1sBl":function(ie,x,t){var O=t("e/Dd").getSymbolSize;x.getRowColCoords=function(m){if(m===1)return[];for(var v=Math.floor(m/7)+2,u=O(m),a=u===145?26:Math.ceil((u-13)/(2*v-2))*2,r=[u-7],e=1;eH&&b>c&&b>n&&b>_||b1&&T(),Q=e.cubicAt(H,c,n,_,y[0]),j>1&&(G=e.cubicAt(H,c,n,_,y[1]))),j===2?JH&&_>c&&_>n||_=0&&b<=1){for(var R=0,M=e.quadraticAt(H,c,n,b),j=0;jw||_<-w)return 0;var k=Math.sqrt(w*w-_*_);E[0]=-k,E[1]=k;var b=Math.abs(c-o);if(b<1e-4)return 0;if(b%i<1e-4){c=0,o=i;var R=n?1:-1;return F>=E[0]+B&&F<=E[1]+B?R:0}if(n){var k=c;c=r(o),o=r(k)}else c=r(c),o=r(o);c>o&&(o+=i);for(var M=0,j=0;j<2;j++){var Q=E[j];if(Q+B>F){var G=Math.atan2(_,Q),R=n?1:-1;G<0&&(G=i+G),(G>=c&&G<=o||G+i>=c&&G+i<=o)&&(G>Math.PI/2&&G1&&(w||(n+=s(F,_,k,b,c,o))),R===1&&(F=B[R],_=B[R+1],k=F,b=_);switch(M){case l.M:k=B[R++],b=B[R++],F=k,_=b;break;case l.L:if(w){if(f.containStroke(F,_,B[R],B[R+1],H,c,o))return!0}else n+=s(F,_,B[R],B[R+1],c,o)||0;F=B[R++],_=B[R++];break;case l.C:if(w){if(m.containStroke(F,_,B[R++],B[R++],B[R++],B[R++],B[R],B[R+1],H,c,o))return!0}else n+=N(F,_,B[R++],B[R++],B[R++],B[R++],B[R],B[R+1],c,o)||0;F=B[R++],_=B[R++];break;case l.Q:if(w){if(v.containStroke(F,_,B[R++],B[R++],B[R],B[R+1],H,c,o))return!0}else n+=L(F,_,B[R++],B[R++],B[R],B[R+1],c,o)||0;F=B[R++],_=B[R++];break;case l.A:var j=B[R++],Q=B[R++],G=B[R++],ne=B[R++],J=B[R++],P=B[R++];R+=1;var Y=1-B[R++],W=Math.cos(J)*G+j,oe=Math.sin(J)*ne+Q;R>1?n+=s(F,_,W,oe,c,o):(k=W,b=oe);var $=(c-j)*ne/G+j;if(w){if(u.containStroke(j,Q,ne,J,J+P,Y,H,$,o))return!0}else n+=p(j,Q,ne,J,J+P,Y,$,o);F=Math.cos(J+P)*G+j,_=Math.sin(J+P)*ne+Q;break;case l.R:k=F=B[R++],b=_=B[R++];var X=B[R++],Z=B[R++],W=k+X,oe=b+Z;if(w){if(f.containStroke(k,b,W,b,H,c,o)||f.containStroke(W,b,W,oe,H,c,o)||f.containStroke(W,oe,k,oe,H,c,o)||f.containStroke(k,oe,k,b,H,c,o))return!0}else n+=s(W,b,W,oe,c,o),n+=s(k,oe,k,b,c,o);break;case l.Z:if(w){if(f.containStroke(F,_,k,b,H,c,o))return!0}else n+=s(F,_,k,b,c,o);F=k,_=b;break}}return!w&&!g(_,b)&&(n+=s(F,_,k,b,c,o)||0),n!==0}function h(B,H,w){return C(B,0,!1,H,w)}function D(B,H,w,c){return C(B,H,!0,w,c)}x.contain=h,x.containStroke=D},"2fw6":function(ie,x,t){var O=t("y+Vt"),f=O.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(m,v,u){u&&m.moveTo(v.cx+v.r,v.cy),m.arc(v.cx,v.cy,v.r,0,Math.PI*2,!0)}});ie.exports=f},"3C/r":function(ie,x){var t=function(f,m){this.image=f,this.repeat=m,this.type="pattern"};t.prototype.getCanvasPattern=function(f){return f.createPattern(this.image,this.repeat||"repeat")};var O=t;ie.exports=O},"3CBa":function(ie,x,t){var O=t("hydK"),f=O.createElement,m=t("bYtY"),v=t("SUKs"),u=t("y+Vt"),a=t("Dagg"),r=t("dqUG"),e=t("DBLp"),s=t("sW+o"),l=t("n6Mw"),i=t("vKoX"),d=t("P47w"),g=d.path,E=d.image,y=d.text;function T(o){return parseInt(o,10)}function N(o){return o instanceof u?g:o instanceof a?E:o instanceof r?y:g}function L(o,n){return n&&o&&n.parentNode!==o}function p(o,n,F){if(L(o,n)&&F){var _=F.nextSibling;_?o.insertBefore(n,_):o.appendChild(n)}}function C(o,n){if(L(o,n)){var F=o.firstChild;F?o.insertBefore(n,F):o.appendChild(n)}}function h(o,n){n&&o&&n.parentNode===o&&o.removeChild(n)}function D(o){return o.__textSvgEl}function B(o){return o.__svgEl}var H=function(o,n,F,_){this.root=o,this.storage=n,this._opts=F=m.extend({},F||{});var k=f("svg");k.setAttribute("xmlns","http://www.w3.org/2000/svg"),k.setAttribute("version","1.1"),k.setAttribute("baseProfile","full"),k.style.cssText="user-select:none;position:absolute;left:0;top:0;";var b=f("g");k.appendChild(b);var R=f("g");k.appendChild(R),this.gradientManager=new s(_,R),this.clipPathManager=new l(_,R),this.shadowManager=new i(_,R);var M=document.createElement("div");M.style.cssText="overflow:hidden;position:relative",this._svgDom=k,this._svgRoot=R,this._backgroundRoot=b,this._viewport=M,o.appendChild(M),M.appendChild(k),this.resize(F.width,F.height),this._visibleList=[]};H.prototype={constructor:H,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var o=this.getViewportRoot();if(o)return{offsetLeft:o.offsetLeft||0,offsetTop:o.offsetTop||0}},refresh:function(){var o=this.storage.getDisplayList(!0);this._paintList(o)},setBackgroundColor:function(o){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var n=f("rect");n.setAttribute("width",this.getWidth()),n.setAttribute("height",this.getHeight()),n.setAttribute("x",0),n.setAttribute("y",0),n.setAttribute("id",0),n.style.fill=o,this._backgroundRoot.appendChild(n),this._backgroundNode=n},_paintList:function(o){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var n=this._svgRoot,F=this._visibleList,_=o.length,k=[],b;for(b=0;b<_;b++){var R=o[b],M=N(R),j=B(R)||D(R);R.invisible||(R.__dirty&&(M&&M.brush(R),this.clipPathManager.update(R),R.style&&(this.gradientManager.update(R.style.fill),this.gradientManager.update(R.style.stroke),this.shadowManager.update(j,R)),R.__dirty=!1),k.push(R))}var Q=e(F,k),G;for(b=0;b=0;--R)if(b[R]===k)return!0;return!1}),F}else return null;else return F[0]},resize:function(o,n){var F=this._viewport;F.style.display="none";var _=this._opts;if(o!=null&&(_.width=o),n!=null&&(_.height=n),o=this._getSize(0),n=this._getSize(1),F.style.display="",this._width!==o||this._height!==n){this._width=o,this._height=n;var k=F.style;k.width=o+"px",k.height=n+"px";var b=this._svgDom;b.setAttribute("width",o),b.setAttribute("height",n)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",o),this._backgroundNode.setAttribute("height",n))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(o){var n=this._opts,F=["width","height"][o],_=["clientWidth","clientHeight"][o],k=["paddingLeft","paddingTop"][o],b=["paddingRight","paddingBottom"][o];if(n[F]!=null&&n[F]!=="auto")return parseFloat(n[F]);var R=this.root,M=document.defaultView.getComputedStyle(R);return(R[_]||T(M[F])||T(R.style[F]))-(T(M[k])||0)-(T(M[b])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var o=encodeURIComponent(this._svgDom.outerHTML.replace(/> -\r<`));return"data:image/svg+xml;charset=UTF-8,"+o}};function w(o){return function(){v('In SVG mode painter not support method "'+o+'"')}}m.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(o){H.prototype[o]=w(o)});var c=H;ie.exports=c},"3X7Y":function(ie,x,t){var O=t("u/Db");function f(m){this.mode=O.NUMERIC,this.data=m.toString()}f.getBitsLength=function(v){return 10*Math.floor(v/3)+(v%3?v%3*3+1:0)},f.prototype.getLength=function(){return this.data.length},f.prototype.getBitsLength=function(){return f.getBitsLength(this.data.length)},f.prototype.write=function(v){var u,a,r;for(u=0;u+3<=this.data.length;u+=3)a=this.data.substr(u,3),r=parseInt(a,10),v.put(r,10);var e=this.data.length-u;e>0&&(a=this.data.substr(u),r=parseInt(a,10),v.put(r,e*3+1))},ie.exports=f},"3e3G":function(ie,x,t){var O=t("bYtY"),f=t("QuXc"),m=function(u,a,r,e,s){this.x=u==null?.5:u,this.y=a==null?.5:a,this.r=r==null?.5:r,this.type="radial",this.global=s||!1,f.call(this,e)};m.prototype={constructor:m},O.inherits(m,f);var v=m;ie.exports=v},"3gBT":function(ie,x){var t=2311;function O(){return t++}ie.exports=O},"49sm":function(ie,x){var t={}.toString;ie.exports=Array.isArray||function(O){return t.call(O)=="[object Array]"}},"4fz+":function(ie,x,t){var O=t("bYtY"),f=t("1bdT"),m=t("mFDi"),v=function(a){a=a||{},f.call(this,a);for(var r in a)a.hasOwnProperty(r)&&(this[r]=a[r]);this._children=[],this.__storage=null,this.__dirty=!0};v.prototype={constructor:v,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(a){return this._children[a]},childOfName:function(a){for(var r=this._children,e=0;e=0&&(e.splice(s,0,a),this._doAdd(a))}return this},_doAdd:function(a){a.parent&&a.parent.remove(a),a.parent=this;var r=this.__storage,e=this.__zr;r&&r!==a.__storage&&(r.addToStorage(a),a instanceof v&&a.addChildrenToStorage(r)),e&&e.refresh()},remove:function(a){var r=this.__zr,e=this.__storage,s=this._children,l=O.indexOf(s,a);return l<0?this:(s.splice(l,1),a.parent=null,e&&(e.delFromStorage(a),a instanceof v&&a.delChildrenFromStorage(e)),r&&r.refresh(),this)},removeAll:function(){var a=this._children,r=this.__storage,e,s;for(s=0;s1e-4){w[0]=L-C,w[1]=p-h,c[0]=L+C,c[1]=p+h;return}if(e[0]=a(D)*C+L,e[1]=u(D)*h+p,s[0]=a(B)*C+L,s[1]=u(B)*h+p,o(w,e,s),n(c,e,s),D=D%r,D<0&&(D=D+r),B=B%r,B<0&&(B=B+r),D>B&&!H?B+=r:DD&&(l[0]=a(k)*C+L,l[1]=u(k)*h+p,o(w,l,w),n(c,l,c))}x.fromPoints=i,x.fromLine=d,x.fromCubic=y,x.fromQuadratic=T,x.fromArc=N},"4qgm":function(ie,x){ie.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAwCAYAAABE1blzAAAIeUlEQVRoQ72aa2wU1xXHf2dm1jYEBClJGgofIFJLU0W04AdQWgJSW0UprZRIpB/aJBTxStIShWchJvbytA2lBCKKeajhQ5s2tGpFK1G1UowqKNjYBkraJCqqiCDEDZSncezdmTnVnd2FxaztmfWaa632w9459/7v75xzz71j4R61ssM6TkrYqMon3qesPjFNLt6LoWWgB5n1ttr/GcMCLKrE5qFgPJf3gRX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20ow0F1xY4+AIdG1PpT2+ZZXi/2U3BFdBJxHIAvRNfX150/QaOn8cG6PLgI5g0BWoicj3+D2fSM7Zybljuoi4DQCmYiupdKNDEw+GeH00G5/LgKxQ+A80bVUmpLhzcVSMHbDuyO5CMQGAS/Rtf6U55Q3sNnZj2jFRgZ3FBcBSwQ83pTOG7z5EQMy11i2cyu4COQqBDxaMq8BvXPVrN3JugiEiYClC0CY/bnVXQRii0DHWkEJbYKG95ABnmSX6LFdFnc0pxEISXTPWTxaN+Ztn+US3Wng3f5ii4A50U/hydOZeT94P8rkEj22y+KO5jQCRkT3eI6T5GnPHH/ea5foTgPv9hdbBLIS/RD58t7C7C0rAyfiEj22y+KO5jQCmYm+j3yeG5m97ZvgYVyiOw28219sEfATfTd5klozZ2vAR6b8U3GJHttlcUdzGgFF9J8gbyvmb/nFrHuX6E4D7/YXWwTurLWJQnnbMGPLnlADu0SP7bK4ozmNQLe6pZn2wwGrbv8PSygpSs9Cw9cAAAAASUVORK5CYII="},"532y":function(ie,x,t){ie.exports={topStatistics:"topStatistics___1QNNN",tooltip:"tooltip___5CKvs",name:"name___1nnFB",filter:"filter___10bL9",daoke:"daoke___BNGuv",qingjia:"qingjia___xVHr-",kuangke:"kuangke___274Y9"}},"59Ip":function(ie,x,t){var O=t("Sj9i");function f(m,v,u,a,r,e,s,l,i,d,g){if(i===0)return!1;var E=i;if(g>v+E&&g>a+E&&g>e+E&&g>l+E||gm+E&&d>u+E&&d>r+E&&d>s+E||d=0||k.relatedTarget.className.indexOf("".concat(j,"-next"))>=0))return;o.setState({goInputText:""}),M(o.getValidValue())},o.go=function(k){var b=o.state.goInputText;if(b==="")return;(k.keyCode===E.ENTER||k.type==="click")&&(o.setState({goInputText:""}),o.props.quickGo(o.getValidValue()))},o}return Object(u.a)(c,[{key:"getValidValue",value:function(){var n=this.state,F=n.goInputText,_=n.current;return!F||isNaN(F)?_:Number(F)}},{key:"getPageSizeOptions",value:function(){var n=this.props,F=n.pageSize,_=n.pageSizeOptions;return _.some(function(k){return k.toString()===F.toString()})?_:_.concat([F.toString()]).sort(function(k,b){var R=isNaN(Number(k))?0:Number(k),M=isNaN(Number(b))?0:Number(b);return R-M})}},{key:"render",value:function(){var n=this,F=this.props,_=F.pageSize,k=F.locale,b=F.rootPrefixCls,R=F.changeSize,M=F.quickGo,j=F.goButton,Q=F.selectComponentClass,G=F.buildOptionText,ne=F.selectPrefixCls,J=F.disabled,P=this.state.goInputText,Y="".concat(b,"-options"),W=Q,oe=null,$=null,X=null;if(!R&&!M)return null;var Z=this.getPageSizeOptions();if(R&&W){var se=Z.map(function(ae,ve){return s.a.createElement(W.Option,{key:ve,value:ae.toString()},(G||n.buildOptionText)(ae))});oe=s.a.createElement(W,{disabled:J,prefixCls:ne,showSearch:!1,className:"".concat(Y,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(_||Z[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ve){return ve.parentNode}},se)}return M&&(j&&(X=typeof j=="boolean"?s.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:J,className:"".concat(Y,"-quick-jumper-button")},k.jump_to_confirm):s.a.createElement("span",{onClick:this.go,onKeyUp:this.go},j)),$=s.a.createElement("div",{className:"".concat(Y,"-quick-jumper")},k.jump_to,s.a.createElement("input",{disabled:J,type:"text",value:P,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),k.page,X)),s.a.createElement("li",{className:"".concat(Y)},oe,$)}}]),c}(s.a.Component);y.defaultProps={pageSizeOptions:["10","20","50","100"]};var T=y,N=t("N2Kk");function L(){}function p(H){return typeof H=="number"&&isFinite(H)&&Math.floor(H)===H}function C(H,w,c){return c}function h(H,w,c){var o=typeof H=="undefined"?w.pageSize:H;return Math.floor((c.total-1)/o)+1}var D=function(H){Object(a.a)(c,H);var w=Object(r.a)(c);function c(o){var n;Object(v.a)(this,c),n=w.call(this,o),n.getJumpPrevPage=function(){return Math.max(1,n.state.current-(n.props.showLessItems?3:5))},n.getJumpNextPage=function(){return Math.min(h(void 0,n.state,n.props),n.state.current+(n.props.showLessItems?3:5))},n.getItemIcon=function(R,M){var j=n.props.prefixCls,Q=R||s.a.createElement("button",{type:"button","aria-label":M,className:"".concat(j,"-item-link")});return typeof R=="function"&&(Q=s.a.createElement(R,Object(m.a)({},n.props))),Q},n.savePaginationNode=function(R){n.paginationNode=R},n.isValid=function(R){return p(R)&&R!==n.state.current},n.shouldDisplayQuickJumper=function(){var R=n.props,M=R.showQuickJumper,j=R.pageSize,Q=R.total;return Q<=j?!1:M},n.handleKeyDown=function(R){(R.keyCode===E.ARROW_UP||R.keyCode===E.ARROW_DOWN)&&R.preventDefault()},n.handleKeyUp=function(R){var M=n.getValidValue(R),j=n.state.currentInputValue;M!==j&&n.setState({currentInputValue:M}),R.keyCode===E.ENTER?n.handleChange(M):R.keyCode===E.ARROW_UP?n.handleChange(M-1):R.keyCode===E.ARROW_DOWN&&n.handleChange(M+1)},n.changePageSize=function(R){var M=n.state.current,j=h(R,n.state,n.props);M=M>j?j:M,j===0&&(M=n.state.current),typeof R=="number"&&("pageSize"in n.props||n.setState({pageSize:R}),"current"in n.props||n.setState({current:M,currentInputValue:M})),n.props.onShowSizeChange(M,R),"onChange"in n.props&&n.props.onChange&&n.props.onChange(M,R)},n.handleChange=function(R){var M=n.props.disabled,j=R;if(n.isValid(j)&&!M){var Q=h(void 0,n.state,n.props);j>Q?j=Q:j<1&&(j=1),"current"in n.props||n.setState({current:j,currentInputValue:j});var G=n.state.pageSize;return n.props.onChange(j,G),j}return n.state.current},n.prev=function(){n.hasPrev()&&n.handleChange(n.state.current-1)},n.next=function(){n.hasNext()&&n.handleChange(n.state.current+1)},n.jumpPrev=function(){n.handleChange(n.getJumpPrevPage())},n.jumpNext=function(){n.handleChange(n.getJumpNextPage())},n.hasPrev=function(){return n.state.current>1},n.hasNext=function(){return n.state.current2?j-2:0),G=2;G=_?b=_:b=Number(F),b}},{key:"getShowSizeChanger",value:function(){var n=this.props,F=n.showSizeChanger,_=n.total,k=n.totalBoundaryShowSizeChanger;return typeof F!="undefined"?F:_>k}},{key:"renderPrev",value:function(n){var F=this.props,_=F.prevIcon,k=F.itemRender,b=k(n,"prev",this.getItemIcon(_,"prev page")),R=!this.hasPrev();return Object(e.isValidElement)(b)?Object(e.cloneElement)(b,{disabled:R}):b}},{key:"renderNext",value:function(n){var F=this.props,_=F.nextIcon,k=F.itemRender,b=k(n,"next",this.getItemIcon(_,"next page")),R=!this.hasNext();return Object(e.isValidElement)(b)?Object(e.cloneElement)(b,{disabled:R}):b}},{key:"render",value:function(){var n=this,F=this.props,_=F.prefixCls,k=F.className,b=F.style,R=F.disabled,M=F.hideOnSinglePage,j=F.total,Q=F.locale,G=F.showQuickJumper,ne=F.showLessItems,J=F.showTitle,P=F.showTotal,Y=F.simple,W=F.itemRender,oe=F.showPrevNextJumpers,$=F.jumpPrevIcon,X=F.jumpNextIcon,Z=F.selectComponentClass,se=F.selectPrefixCls,ae=F.pageSizeOptions,ve=this.state,V=ve.current,re=ve.pageSize,I=ve.currentInputValue;if(M===!0&&j<=re)return null;var q=h(void 0,this.state,this.props),fe=[],z=null,A=null,S=null,K=null,ee=null,de=G&&G.goButton,he=ne?1:2,Me=V-1>0?V-1:0,ce=V+1=he*2&&V!==1+2&&(fe[0]=Object(e.cloneElement)(fe[0],{className:"".concat(_,"-item-after-jump-prev")}),fe.unshift(z)),q-V>=he*2&&V!==q-2&&(fe[fe.length-1]=Object(e.cloneElement)(fe[fe.length-1],{className:"".concat(_,"-item-before-jump-next")}),fe.push(A)),_e!==1&&fe.unshift(S),$e!==q&&fe.push(K)}var et=null;P&&(et=s.a.createElement("li",{className:"".concat(_,"-total-text")},P(j,[j===0?0:(V-1)*re+1,V*re>j?j:V*re])));var Xe=!this.hasPrev()||!q,st=!this.hasNext()||!q;return s.a.createElement("ul",Object(O.a)({className:i()(_,k,Object(f.a)({},"".concat(_,"-disabled"),R)),style:b,unselectable:"unselectable",ref:this.savePaginationNode},be),et,s.a.createElement("li",{title:J?Q.prev_page:null,onClick:this.prev,tabIndex:Xe?null:0,onKeyPress:this.runIfEnterPrev,className:i()("".concat(_,"-prev"),Object(f.a)({},"".concat(_,"-disabled"),Xe)),"aria-disabled":Xe},this.renderPrev(Me)),fe,s.a.createElement("li",{title:J?Q.next_page:null,onClick:this.next,tabIndex:st?null:0,onKeyPress:this.runIfEnterNext,className:i()("".concat(_,"-next"),Object(f.a)({},"".concat(_,"-disabled"),st)),"aria-disabled":st},this.renderNext(ce)),s.a.createElement(T,{disabled:R,locale:Q,rootPrefixCls:_,selectComponentClass:Z,selectPrefixCls:se,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:V,pageSize:re,pageSizeOptions:ae,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:de}))}}],[{key:"getDerivedStateFromProps",value:function(n,F){var _={};if("current"in n&&(_.current=n.current,n.current!==F.current&&(_.currentInputValue=_.current)),"pageSize"in n&&n.pageSize!==F.pageSize){var k=F.current,b=h(n.pageSize,F,n);k=k>b?b:k,"current"in n||(_.current=k,_.currentInputValue=k),_.pageSize=n.pageSize}return _}}]),c}(s.a.Component);D.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:L,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:L,locale:N.a,style:{},itemRender:C,totalBoundaryShowSizeChanger:50};var B=D},"6GrX":function(ie,x,t){var O=t("mFDi"),f=t("Xnb7"),m=t("bYtY"),v=m.getContext,u=m.extend,a=m.retrieve2,r=m.retrieve3,e=m.trim,s={},l=0,i=5e3,d=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,g="12px sans-serif",E={};function y(M,j){E[M]=j}function T(M,j){j=j||g;var Q=M+":"+j;if(s[Q])return s[Q];for(var G=(M+"").split(` -`),ne=0,J=0,P=G.length;Ji&&(l=0,s={}),l++,s[Q]=ne,ne}function N(M,j,Q,G,ne,J,P,Y){return P?p(M,j,Q,G,ne,J,P,Y):L(M,j,Q,G,ne,J,Y)}function L(M,j,Q,G,ne,J,P){var Y=_(M,j,ne,J,P),W=T(M,j);ne&&(W+=ne[1]+ne[3]);var oe=Y.outerHeight,$=C(0,W,Q),X=h(0,oe,G),Z=new O($,X,W,oe);return Z.lineHeight=Y.lineHeight,Z}function p(M,j,Q,G,ne,J,P,Y){var W=k(M,{rich:P,truncate:Y,font:j,textAlign:Q,textPadding:ne,textLineHeight:J}),oe=W.outerWidth,$=W.outerHeight,X=C(0,oe,Q),Z=h(0,$,G);return new O(X,Z,oe,$)}function C(M,j,Q){return Q==="right"?M-=j:Q==="center"&&(M-=j/2),M}function h(M,j,Q){return Q==="middle"?M-=j/2:Q==="bottom"&&(M-=j),M}function D(M,j,Q){var G=j.textPosition,ne=j.textDistance,J=Q.x,P=Q.y;ne=ne||0;var Y=Q.height,W=Q.width,oe=Y/2,$="left",X="top";switch(G){case"left":J-=ne,P+=oe,$="right",X="middle";break;case"right":J+=ne+W,P+=oe,X="middle";break;case"top":J+=W/2,P-=ne,$="center",X="bottom";break;case"bottom":J+=W/2,P+=Y+ne,$="center";break;case"inside":J+=W/2,P+=oe,$="center",X="middle";break;case"insideLeft":J+=ne,P+=oe,X="middle";break;case"insideRight":J+=W-ne,P+=oe,$="right",X="middle";break;case"insideTop":J+=W/2,P+=ne,$="center";break;case"insideBottom":J+=W/2,P+=Y-ne,$="center",X="bottom";break;case"insideTopLeft":J+=ne,P+=ne;break;case"insideTopRight":J+=W-ne,P+=ne,$="right";break;case"insideBottomLeft":J+=ne,P+=Y-ne,X="bottom";break;case"insideBottomRight":J+=W-ne,P+=Y-ne,$="right",X="bottom";break}return M=M||{},M.x=J,M.y=P,M.textAlign=$,M.textVerticalAlign=X,M}function B(M,j,Q){var G={textPosition:M,textDistance:Q};return D({},G,j)}function H(M,j,Q,G,ne){if(!j)return"";var J=(M+"").split(` +(window.webpackJsonp=window.webpackJsonp||[]).push([[42,3,6,8,9],{"+QRC":function(ie,x,t){"use strict";var O=t("E9nw"),f={"text/plain":"Text","text/html":"Url",default:"Text"},m="Copy to clipboard: #{key}, Enter";function v(a){var r=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return a.replace(/#{\s*key\s*}/g,r)}function u(a,r){var e,s,l,i,d,g,E=!1;r||(r={}),e=r.debug||!1;try{l=O(),i=document.createRange(),d=document.getSelection(),g=document.createElement("span"),g.textContent=a,g.style.all="unset",g.style.position="fixed",g.style.top=0,g.style.clip="rect(0, 0, 0, 0)",g.style.whiteSpace="pre",g.style.webkitUserSelect="text",g.style.MozUserSelect="text",g.style.msUserSelect="text",g.style.userSelect="text",g.addEventListener("copy",function(D){if(D.stopPropagation(),r.format)if(D.preventDefault(),typeof D.clipboardData=="undefined"){e&&console.warn("unable to use e.clipboardData"),e&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var N=f[r.format]||f.default;window.clipboardData.setData(N,a)}else D.clipboardData.clearData(),D.clipboardData.setData(r.format,a);r.onCopy&&(D.preventDefault(),r.onCopy(D.clipboardData))}),document.body.appendChild(g),i.selectNodeContents(g),d.addRange(i);var y=document.execCommand("copy");if(!y)throw new Error("copy command was unsuccessful");E=!0}catch(D){e&&console.error("unable to copy using execCommand: ",D),e&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(r.format||"text",a),r.onCopy&&r.onCopy(window.clipboardData),E=!0}catch(N){e&&console.error("unable to copy using clipboardData: ",N),e&&console.error("falling back to prompt"),s=v("message"in r?r.message:m),window.prompt(s,a)}}finally{d&&(typeof d.removeRange=="function"?d.removeRange(i):d.removeAllRanges()),g&&document.body.removeChild(g),l()}return E}ie.exports=u},"/GNS":function(ie,x,t){ie.exports=t.p+"static/search1.c4136dd4.png"},"06Qe":function(ie,x,t){var O=t("ItGF"),f="urn:schemas-microsoft-com:vml",m=typeof window=="undefined"?null:window,v=!1,u=m&&m.document;function a(s){return r(s)}var r;if(u&&!O.canvasSupported)try{!u.namespaces.zrvml&&u.namespaces.add("zrvml",f),r=function(s){return u.createElement("')}}catch(s){r=function(l){return u.createElement("<"+l+' xmlns="'+f+'" class="zrvml">')}}function e(){if(v||!u)return;v=!0;var s=u.styleSheets;s.length<31?u.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):s[0].addRule(".zrvml","behavior:url(#default#VML)")}x.doc=u,x.createNode=a,x.initVML=e},"0FX9":function(ie,x,t){var O=t("Z92M"),f=t("qmMu"),m=t("QUaw"),v=t("QAZZ");function u(a,r,e,s,l){var i=[].slice.call(arguments,1),d=i.length,g=typeof i[d-1]=="function";if(!g&&!O())throw new Error("Callback required as last argument");if(g){if(d<2)throw new Error("Too few arguments provided");d===2?(l=e,e=r,r=s=void 0):d===3&&(r.getContext&&typeof l=="undefined"?(l=s,s=void 0):(l=s,s=e,e=r,r=void 0))}else{if(d<1)throw new Error("Too few arguments provided");return d===1?(e=r,r=s=void 0):d===2&&!r.getContext&&(s=e,e=r,r=void 0),new Promise(function(y,D){try{var N=f.create(e,s);y(a(N,r,s))}catch(L){D(L)}})}try{var E=f.create(e,s);l(null,a(E,r,s))}catch(y){l(y)}}x.create=f.create,x.toCanvas=u.bind(null,m.render),x.toDataURL=u.bind(null,m.renderToDataURL),x.toString=u.bind(null,function(a,r,e){return v.render(a,e)})},"0s+r":function(ie,x,t){var O=t("bYtY"),f=t("QBsz"),m=t("y23F"),v=t("H6uX"),u=t("YH21"),a=t("C0SR"),r="silent";function e(D,N,L){return{type:D,event:L,target:N.target,topTarget:N.topTarget,cancelBubble:!1,offsetX:L.zrX,offsetY:L.zrY,gestureEvent:L.gestureEvent,pinchX:L.pinchX,pinchY:L.pinchY,pinchScale:L.pinchScale,wheelDelta:L.zrDelta,zrByTouch:L.zrByTouch,which:L.which,stop:s}}function s(){u.stop(this.event)}function l(){}l.prototype.dispose=function(){};var i=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],d=function(D,N,L,p){v.call(this),this.storage=D,this.painter=N,this.painterRoot=p,L=L||new l,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,m.call(this),this.setHandlerProxy(L)};d.prototype={constructor:d,setHandlerProxy:function(D){this.proxy&&this.proxy.dispose(),D&&(O.each(i,function(N){D.on&&D.on(N,this[N],this)},this),D.handler=this),this.proxy=D},mousemove:function(D){var N=D.zrX,L=D.zrY,p=E(this,N,L),C=this._hovered,h=C.target;h&&!h.__zr&&(C=this.findHover(C.x,C.y),h=C.target);var T=this._hovered=p?{x:N,y:L}:this.findHover(N,L),B=T.target,H=this.proxy;H.setCursor&&H.setCursor(B?B.cursor:"default"),h&&B!==h&&this.dispatchToElement(C,"mouseout",D),this.dispatchToElement(T,"mousemove",D),B&&B!==h&&this.dispatchToElement(T,"mouseover",D)},mouseout:function(D){var N=D.zrEventControl,L=D.zrIsToLocalDOM;N!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",D),N!=="no_globalout"&&(!L&&this.trigger("globalout",{type:"globalout",event:D}))},resize:function(D){this._hovered={}},dispatch:function(D,N){var L=this[D];L&&L.call(this,N)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(D){var N=this.proxy;N.setCursor&&N.setCursor(D)},dispatchToElement:function(D,N,L){D=D||{};var p=D.target;if(p&&p.silent)return;for(var C="on"+N,h=e(N,D,L);p&&!(p[C]&&(h.cancelBubble=p[C].call(p,h)),p.trigger(N,h),p=p.parent,h.cancelBubble););h.cancelBubble||(this.trigger(N,h),this.painter&&this.painter.eachOtherLayer(function(T){typeof T[C]=="function"&&T[C].call(T,h),T.trigger&&T.trigger(N,h)}))},findHover:function(D,N,L){for(var p=this.storage.getDisplayList(),C={x:D,y:N},h=p.length-1;h>=0;h--){var T;if(p[h]!==L&&!p[h].ignore&&(T=g(p[h],D,N))&&(!C.topTarget&&(C.topTarget=p[h]),T!==r)){C.target=p[h];break}}return C},processGesture:function(D,N){this._gestureMgr||(this._gestureMgr=new a);var L=this._gestureMgr;N==="start"&&L.clear();var p=L.recognize(D,this.findHover(D.zrX,D.zrY,null).target,this.proxy.dom);if(N==="end"&&L.clear(),p){var C=p.type;D.gestureEvent=C,this.dispatchToElement({target:p.target},C,p.event)}}},O.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(D){d.prototype[D]=function(N){var L=N.zrX,p=N.zrY,C=E(this,L,p),h,T;if((D!=="mouseup"||!C)&&(h=this.findHover(L,p),T=h.target),D==="mousedown")this._downEl=T,this._downPoint=[N.zrX,N.zrY],this._upEl=T;else if(D==="mouseup")this._upEl=T;else if(D==="click"){if(this._downEl!==this._upEl||!this._downPoint||f.dist(this._downPoint,[N.zrX,N.zrY])>4)return;this._downPoint=null}this.dispatchToElement(h,D,N)}});function g(D,N,L){if(D[D.rectHover?"rectContain":"contain"](N,L)){for(var p=D,C;p;){if(p.clipPath&&!p.clipPath.contain(N,L))return!1;p.silent&&(C=!0),p=p.parent}return C?r:!0}return!1}function E(D,N,L){var p=D.painter;return N<0||N>p.getWidth()||L<0||L>p.getHeight()}O.mixin(d,v),O.mixin(d,m);var y=d;ie.exports=y},"1Jh7":function(ie,x,t){var O=t("y+Vt"),f=t("T6xi"),m=O.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(v,u){f.buildPath(v,u,!1)}});ie.exports=m},"1MYJ":function(ie,x,t){var O=t("y+Vt"),f=O.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var m=this.__dirtyPath,v=this.shape.paths,u=0;u=this._maxSize&&i>0){var g=e.head;e.remove(g),delete s[g.key],l=g.value,this._lastRemovedEntry=g}d?d.value=r:d=new f(r),d.key=a,e.insertEntry(d),s[a]=d}return l},v.get=function(a){var r=this._map[a],e=this._list;if(r!=null)return r!==e.tail&&(e.remove(r),e.insertEntry(r)),r.value},v.clear=function(){this._list.clear(),this._map={}};var u=m;ie.exports=u},"1bdT":function(ie,x,t){var O=t("3gBT"),f=t("H6uX"),m=t("DN4a"),v=t("vWvF"),u=t("bYtY"),a=function(e){m.call(this,e),f.call(this,e),v.call(this,e),this.id=e.id||O()};a.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(e,s){switch(this.draggable){case"horizontal":s=0;break;case"vertical":e=0;break}var l=this.transform;l||(l=this.transform=[1,0,0,1,0,0]),l[4]+=e,l[5]+=s,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(e,s){},attrKV:function(e,s){if(e==="position"||e==="scale"||e==="origin"){if(s){var l=this[e];l||(l=this[e]=[]),l[0]=s[0],l[1]=s[1]}}else this[e]=s},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(e,s){if(typeof e=="string")this.attrKV(e,s);else if(u.isObject(e))for(var l in e)e.hasOwnProperty(l)&&this.attrKV(l,e[l]);return this.dirty(!1),this},setClipPath:function(e){var s=this.__zr;s&&e.addSelfToZr(s),this.clipPath&&this.clipPath!==e&&this.removeClipPath(),this.clipPath=e,e.__zr=s,e.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var e=this.clipPath;e&&(e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(e){this.__zr=e;var s=this.animators;if(s)for(var l=0;l1&&arguments[1]!==void 0?arguments[1]:!1,ge=Ce&&typeof Ce.getBoundingClientRect=="function"&&Ce.getBoundingClientRect().width;if(ge){if(Oe){var te=getComputedStyle(Ce),le=te.marginLeft,we=te.marginRight;ge+=+le.replace("px","")+ +we.replace("px","")}ge=+ge.toFixed(6)}return ge||0},X=function(Ce,Oe,ge){Ce&&Object(L.a)(Ce.style)==="object"&&(Ce.style[Oe]=ge)},Z=function(){return G.any},se=t("KQm4"),ae=t("Ff2n"),ve=t("i8i4"),V=t("bdgK"),re=t("uciX"),I=t("8XRh"),q={adjustX:1,adjustY:1},fe={topLeft:{points:["bl","tl"],overflow:q,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:q,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:q,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:q,offset:[4,0]}},z={topLeft:{points:["bl","tl"],overflow:q,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:q,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:q,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:q,offset:[4,0]}},A=fe,S=0,K={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ee=function(Ce,Oe,ge){var te=P(Oe),le=Ce.getState();Ce.setState({defaultActiveFirst:Object(O.a)(Object(O.a)({},le.defaultActiveFirst),{},Object(i.a)({},te,ge))})},de=function(ze){Object(u.a)(Oe,ze);var Ce=Object(a.a)(Oe);function Oe(ge){var te;Object(f.a)(this,Oe),te=Ce.call(this,ge),te.onDestroy=function(De){te.props.onDestroy(De)},te.onKeyDown=function(De){var Le=De.keyCode,Fe=te.menuInstance,dt=te.props,tt=dt.isOpen,Ct=dt.store;if(Le===d.a.ENTER)return te.onTitleClick(De),ee(Ct,te.props.eventKey,!0),!0;if(Le===d.a.RIGHT)return tt?Fe.onKeyDown(De):(te.triggerOpenChange(!0),ee(Ct,te.props.eventKey,!0)),!0;if(Le===d.a.LEFT){var At;if(tt)At=Fe.onKeyDown(De);else return;return At||(te.triggerOpenChange(!1),At=!0),At}return tt&&(Le===d.a.UP||Le===d.a.DOWN)?Fe.onKeyDown(De):void 0},te.onOpenChange=function(De){te.props.onOpenChange(De)},te.onPopupVisibleChange=function(De){te.triggerOpenChange(De,De?"mouseenter":"mouseleave")},te.onMouseEnter=function(De){var Le=te.props,Fe=Le.eventKey,dt=Le.onMouseEnter,tt=Le.store;ee(tt,te.props.eventKey,!1),dt({key:Fe,domEvent:De})},te.onMouseLeave=function(De){var Le=te.props,Fe=Le.parentMenu,dt=Le.eventKey,tt=Le.onMouseLeave;Fe.subMenuInstance=Object(v.a)(te),tt({key:dt,domEvent:De})},te.onTitleMouseEnter=function(De){var Le=te.props,Fe=Le.eventKey,dt=Le.onItemHover,tt=Le.onTitleMouseEnter;dt({key:Fe,hover:!0}),tt({key:Fe,domEvent:De})},te.onTitleMouseLeave=function(De){var Le=te.props,Fe=Le.parentMenu,dt=Le.eventKey,tt=Le.onItemHover,Ct=Le.onTitleMouseLeave;Fe.subMenuInstance=Object(v.a)(te),tt({key:dt,hover:!1}),Ct({key:dt,domEvent:De})},te.onTitleClick=function(De){var Le=Object(v.a)(te),Fe=Le.props;if(Fe.onTitleClick({key:Fe.eventKey,domEvent:De}),Fe.triggerSubMenuAction==="hover")return;te.triggerOpenChange(!Fe.isOpen,"click"),ee(Fe.store,te.props.eventKey,!1)},te.onSubMenuClick=function(De){typeof te.props.onClick=="function"&&te.props.onClick(te.addKeyPath(De))},te.onSelect=function(De){te.props.onSelect(De)},te.onDeselect=function(De){te.props.onDeselect(De)},te.getPrefixCls=function(){return"".concat(te.props.rootPrefixCls,"-submenu")},te.getActiveClassName=function(){return"".concat(te.getPrefixCls(),"-active")},te.getDisabledClassName=function(){return"".concat(te.getPrefixCls(),"-disabled")},te.getSelectedClassName=function(){return"".concat(te.getPrefixCls(),"-selected")},te.getOpenClassName=function(){return"".concat(te.props.rootPrefixCls,"-submenu-open")},te.saveMenuInstance=function(De){te.menuInstance=De},te.addKeyPath=function(De){return Object(O.a)(Object(O.a)({},De),{},{keyPath:(De.keyPath||[]).concat(te.props.eventKey)})},te.triggerOpenChange=function(De,Le){var Fe=te.props.eventKey,dt=function(){te.onOpenChange({key:Fe,item:Object(v.a)(te),trigger:Le,open:De})};Le==="mouseenter"?te.mouseenterTimeout=setTimeout(function(){dt()},0):dt()},te.isChildrenSelected=function(){var De={find:!1};return W(te.props.children,te.props.selectedKeys,De),De.find},te.isOpen=function(){return te.props.openKeys.indexOf(te.props.eventKey)!==-1},te.adjustWidth=function(){if(!te.subMenuTitle||!te.menuInstance)return;var De=ve.findDOMNode(te.menuInstance);if(De.offsetWidth>=te.subMenuTitle.offsetWidth)return;De.style.minWidth="".concat(te.subMenuTitle.offsetWidth,"px")},te.saveSubMenuTitle=function(De){te.subMenuTitle=De},te.getBaseProps=function(){var De=Object(v.a)(te),Le=De.props;return{mode:Le.mode==="horizontal"?"vertical":Le.mode,visible:te.props.isOpen,level:Le.level+1,inlineIndent:Le.inlineIndent,focusable:!1,onClick:te.onSubMenuClick,onSelect:te.onSelect,onDeselect:te.onDeselect,onDestroy:te.onDestroy,selectedKeys:Le.selectedKeys,eventKey:"".concat(Le.eventKey,"-menu-"),openKeys:Le.openKeys,motion:Le.motion,onOpenChange:te.onOpenChange,subMenuOpenDelay:Le.subMenuOpenDelay,parentMenu:Object(v.a)(te),subMenuCloseDelay:Le.subMenuCloseDelay,forceSubMenuRender:Le.forceSubMenuRender,triggerSubMenuAction:Le.triggerSubMenuAction,builtinPlacements:Le.builtinPlacements,defaultActiveFirst:Le.store.getState().defaultActiveFirst[P(Le.eventKey)],multiple:Le.multiple,prefixCls:Le.rootPrefixCls,id:te.internalMenuId,manualRef:te.saveMenuInstance,itemIcon:Le.itemIcon,expandIcon:Le.expandIcon,direction:Le.direction}},te.getMotion=function(De,Le){var Fe=Object(v.a)(te),dt=Fe.haveRendered,tt=te.props,Ct=tt.motion,At=tt.rootPrefixCls,Ht=Object(O.a)(Object(O.a)({},Ct),{},{leavedClassName:"".concat(At,"-hidden"),removeOnLeave:!1,motionAppear:dt||!Le||De!=="inline"});return Ht};var le=ge.store,we=ge.eventKey,xe=le.getState(),Re=xe.defaultActiveFirst;te.isRootMenu=!1;var je=!1;return Re&&(je=Re[we]),ee(le,we,je),te}return Object(m.a)(Oe,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var te=this,le=this.props,we=le.mode,xe=le.parentMenu,Re=le.manualRef;if(Re&&Re(this),we!=="horizontal"||!xe.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return te.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var te=this.props,le=te.onDestroy,we=te.eventKey;le&&le(we),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(te){var le=this,we=this.getBaseProps(),xe=this.getMotion(we.mode,we.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||we.visible||we.forceSubMenuRender,!this.haveOpened)return r.createElement("div",null);var Re=we.direction;return r.createElement(I.default,Object.assign({visible:we.visible},xe),function(je){var De=je.className,Le=je.style,Fe=N()("".concat(we.prefixCls,"-sub"),De,Object(i.a)({},"".concat(we.prefixCls,"-rtl"),Re==="rtl"));return r.createElement(et,Object.assign({},we,{id:le.internalMenuId,className:Fe,style:Le}),te)})}},{key:"render",value:function(){var te,le=Object(O.a)({},this.props),we=le.isOpen,xe=this.getPrefixCls(),Re=le.mode==="inline",je=N()(xe,"".concat(xe,"-").concat(le.mode),(te={},Object(i.a)(te,le.className,!!le.className),Object(i.a)(te,this.getOpenClassName(),we),Object(i.a)(te,this.getActiveClassName(),le.active||we&&!Re),Object(i.a)(te,this.getDisabledClassName(),le.disabled),Object(i.a)(te,this.getSelectedClassName(),this.isChildrenSelected()),te));this.internalMenuId||(le.eventKey?this.internalMenuId="".concat(le.eventKey,"$Menu"):(S+=1,this.internalMenuId="$__$".concat(S,"$Menu")));var De={},Le={},Fe={};le.disabled||(De={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Le={onClick:this.onTitleClick},Fe={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var dt={},tt=le.direction;Re&&(tt==="rtl"?dt.paddingRight=le.inlineIndent*le.level:dt.paddingLeft=le.inlineIndent*le.level);var Ct={};this.props.isOpen&&(Ct={"aria-owns":this.internalMenuId});var At=null;le.mode!=="horizontal"&&(At=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(At=r.createElement(this.props.expandIcon,Object(O.a)({},this.props))));var Ht=r.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:dt,className:"".concat(xe,"-title"),role:"button"},Fe,Le,{"aria-expanded":we},Ct,{"aria-haspopup":"true",title:typeof le.title=="string"?le.title:void 0}),le.title,At||r.createElement("i",{className:"".concat(xe,"-arrow")})),en=this.renderChildren(le.children),Ge=le.parentMenu.isRootMenu?le.parentMenu.props.getPopupContainer:function(Ft){return Ft.parentNode},gt=K[le.mode],xt=le.popupOffset?{offset:le.popupOffset}:{},Lt=le.mode==="inline"?"":le.popupClassName;Lt+=tt==="rtl"?" ".concat(xe,"-rtl"):"";var Ot=le.disabled,Dt=le.triggerSubMenuAction,Bt=le.subMenuOpenDelay,Xt=le.forceSubMenuRender,an=le.subMenuCloseDelay,Jt=le.builtinPlacements;oe.forEach(function(Ft){return delete le[Ft]}),delete le.onClick;var _t=tt==="rtl"?Object.assign({},z,Jt):Object.assign({},fe,Jt);return delete le.direction,r.createElement("li",Object.assign({},le,De,{className:je,role:"menuitem"}),Re&&Ht,Re&&en,!Re&&r.createElement(re.a,{prefixCls:xe,popupClassName:N()("".concat(xe,"-popup"),Lt),getPopupContainer:Ge,builtinPlacements:_t,popupPlacement:gt,popupVisible:we,popupAlign:xt,popup:en,action:Ot?[]:[Dt],mouseEnterDelay:Bt,mouseLeaveDelay:an,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Xt},Ht))}}]),Oe}(r.Component);de.defaultProps={onMouseEnter:ne,onMouseLeave:ne,onTitleMouseEnter:ne,onTitleMouseLeave:ne,onTitleClick:ne,manualRef:ne,mode:"vertical",title:""};var he=Object(e.b)(function(ze,Ce){var Oe=ze.openKeys,ge=ze.activeKey,te=ze.selectedKeys,le=Ce.eventKey,we=Ce.subMenuKey;return{isOpen:Oe.indexOf(le)>-1,active:ge[we]===le,selectedKeys:te}})(de);he.isSubMenu=!0;var Me=he,ce="menuitem-overflowed",be=.5,Ae=function(ze){Object(u.a)(Oe,ze);var Ce=Object(a.a)(Oe);function Oe(){var ge;return Object(f.a)(this,Oe),ge=Ce.apply(this,arguments),ge.resizeObserver=null,ge.mutationObserver=null,ge.originalTotalWidth=0,ge.overflowedItems=[],ge.menuItemSizes=[],ge.cancelFrameId=null,ge.state={lastVisibleIndex:void 0},ge.getMenuItemNodes=function(){var te=ge.props.prefixCls,le=ve.findDOMNode(Object(v.a)(ge));return le?[].slice.call(le.children).filter(function(we){return we.className.split(" ").indexOf("".concat(te,"-overflowed-submenu"))<0}):[]},ge.getOverflowedSubMenuItem=function(te,le,we){var xe=ge.props,Re=xe.overflowedIndicator,je=xe.level,De=xe.mode,Le=xe.prefixCls,Fe=xe.theme;if(je!==1||De!=="horizontal")return null;var dt=ge.props.children[0],tt=dt.props,Ct=tt.children,At=tt.title,Ht=tt.style,en=Object(ae.a)(tt,["children","title","style"]),Ge=Object(O.a)({},Ht),gt="".concat(te,"-overflowed-indicator"),xt="".concat(te,"-overflowed-indicator");le.length===0&&we!==!0?Ge=Object(O.a)(Object(O.a)({},Ge),{},{display:"none"}):we&&(Ge=Object(O.a)(Object(O.a)({},Ge),{},{visibility:"hidden",position:"absolute"}),gt="".concat(gt,"-placeholder"),xt="".concat(xt,"-placeholder"));var Lt=Fe?"".concat(Le,"-").concat(Fe):"",Ot={};return oe.forEach(function(Dt){en[Dt]!==void 0&&(Ot[Dt]=en[Dt])}),r.createElement(Me,Object.assign({title:Re,className:"".concat(Le,"-overflowed-submenu"),popupClassName:Lt},Ot,{key:gt,eventKey:xt,disabled:!1,style:Ge}),le)},ge.setChildrenWidthAndResize=function(){if(ge.props.mode!=="horizontal")return;var te=ve.findDOMNode(Object(v.a)(ge));if(!te)return;var le=te.children;if(!le||le.length===0)return;var we=te.children[le.length-1];X(we,"display","inline-block");var xe=ge.getMenuItemNodes(),Re=xe.filter(function(je){return je.className.split(" ").indexOf(ce)>=0});Re.forEach(function(je){X(je,"display","inline-block")}),ge.menuItemSizes=xe.map(function(je){return $(je,!0)}),Re.forEach(function(je){X(je,"display","none")}),ge.overflowedIndicatorWidth=$(te.children[te.children.length-1],!0),ge.originalTotalWidth=ge.menuItemSizes.reduce(function(je,De){return je+De},0),ge.handleResize(),X(we,"display","none")},ge.handleResize=function(){if(ge.props.mode!=="horizontal")return;var te=ve.findDOMNode(Object(v.a)(ge));if(!te)return;var le=$(te);ge.overflowedItems=[];var we=0,xe;ge.originalTotalWidth>le+be&&(xe=-1,ge.menuItemSizes.forEach(function(Re){we+=Re,we+ge.overflowedIndicatorWidth<=le&&(xe+=1)})),ge.setState({lastVisibleIndex:xe})},ge}return Object(m.a)(Oe,[{key:"componentDidMount",value:function(){var te=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var le=ve.findDOMNode(this);if(!le)return;this.resizeObserver=new V.default(function(we){we.forEach(function(){var xe=te.cancelFrameId;cancelAnimationFrame(xe),te.cancelFrameId=requestAnimationFrame(te.setChildrenWidthAndResize)})}),[].slice.call(le.children).concat(le).forEach(function(we){te.resizeObserver.observe(we)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){te.resizeObserver.disconnect(),[].slice.call(le.children).concat(le).forEach(function(we){te.resizeObserver.observe(we)}),te.setChildrenWidthAndResize()}),this.mutationObserver.observe(le,{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(te){var le=this,we=this.state.lastVisibleIndex;return(te||[]).reduce(function(xe,Re,je){var De=Re;if(le.props.mode==="horizontal"){var Le=le.getOverflowedSubMenuItem(Re.props.eventKey,[]);we!==void 0&&le.props.className.indexOf("".concat(le.props.prefixCls,"-root"))!==-1&&(je>we&&(De=r.cloneElement(Re,{style:{display:"none"},eventKey:"".concat(Re.props.eventKey,"-hidden"),className:"".concat(ce)})),je===we+1&&(le.overflowedItems=te.slice(we+1).map(function(dt){return r.cloneElement(dt,{key:dt.props.eventKey,mode:"vertical-left"})}),Le=le.getOverflowedSubMenuItem(Re.props.eventKey,le.overflowedItems)));var Fe=[].concat(Object(se.a)(xe),[Le,De]);return je===te.length-1&&Fe.push(le.getOverflowedSubMenuItem(Re.props.eventKey,[],!0)),Fe}return[].concat(Object(se.a)(xe),[De])},[])}},{key:"render",value:function(){var te=this.props,le=te.visible,we=te.prefixCls,xe=te.overflowedIndicator,Re=te.mode,je=te.level,De=te.tag,Le=te.children,Fe=te.theme,dt=Object(ae.a)(te,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),tt=De;return r.createElement(tt,Object.assign({},dt),this.renderChildren(Le))}}]),Oe}(r.Component);Ae.defaultProps={tag:"div",className:""};var ye=Ae;function ke(ze){return ze.length?ze.every(function(Ce){return!!Ce.props.disabled}):!0}function Se(ze,Ce,Oe){var ge=ze.getState();ze.setState({activeKey:Object(O.a)(Object(O.a)({},ge.activeKey),{},Object(i.a)({},Ce,Oe))})}function Ne(ze){return ze.eventKey||"0-menu-"}function _e(ze,Ce){var Oe=Ce,ge=ze.children,te=ze.eventKey;if(Oe){var le;if(Y(ge,function(we,xe){we&&we.props&&!we.props.disabled&&Oe===J(we,te,xe)&&(le=!0)}),le)return Oe}return Oe=null,ze.defaultActiveFirst&&Y(ge,function(we,xe){!Oe&&we&&!we.props.disabled&&(Oe=J(we,te,xe))}),Oe}function $e(ze){if(ze){var Ce=this.instanceArray.indexOf(ze);Ce!==-1?this.instanceArray[Ce]=ze:this.instanceArray.push(ze)}}var He=function(ze){Object(u.a)(Oe,ze);var Ce=Object(a.a)(Oe);function Oe(ge){var te;return Object(f.a)(this,Oe),te=Ce.call(this,ge),te.onKeyDown=function(le,we){var xe=le.keyCode,Re;if(te.getFlatInstanceArray().forEach(function(De){De&&De.props.active&&De.onKeyDown&&(Re=De.onKeyDown(le))}),Re)return 1;var je=null;return(xe===d.a.UP||xe===d.a.DOWN)&&(je=te.step(xe===d.a.UP?-1:1)),je?(le.preventDefault(),Se(te.props.store,Ne(te.props),je.props.eventKey),typeof we=="function"&&we(je),1):void 0},te.onItemHover=function(le){var we=le.key,xe=le.hover;Se(te.props.store,Ne(te.props),xe?we:null)},te.onDeselect=function(le){te.props.onDeselect(le)},te.onSelect=function(le){te.props.onSelect(le)},te.onClick=function(le){te.props.onClick(le)},te.onOpenChange=function(le){te.props.onOpenChange(le)},te.onDestroy=function(le){te.props.onDestroy(le)},te.getFlatInstanceArray=function(){return te.instanceArray},te.step=function(le){var we=te.getFlatInstanceArray(),xe=te.props.store.getState().activeKey[Ne(te.props)],Re=we.length;if(!Re)return null;le<0&&(we=we.concat().reverse());var je=-1;if(we.every(function(dt,tt){return dt&&dt.props.eventKey===xe?(je=tt,!1):!0}),!te.props.defaultActiveFirst&&je!==-1&&ke(we.slice(je,Re-1)))return;var De=(je+1)%Re,Le=De;do{var Fe=we[Le];if(!Fe||Fe.props.disabled)Le=(Le+1)%Re;else return Fe}while(Le!==De);return null},te.renderCommonMenuItem=function(le,we,xe){var Re=te.props.store.getState(),je=Object(v.a)(te),De=je.props,Le=J(le,De.eventKey,we),Fe=le.props;if(!Fe||typeof le.type=="string")return le;var dt=Le===Re.activeKey,tt=Object(O.a)(Object(O.a)({mode:Fe.mode||De.mode,level:De.level,inlineIndent:De.inlineIndent,renderMenuItem:te.renderMenuItem,rootPrefixCls:De.prefixCls,index:we,parentMenu:De.parentMenu,manualRef:Fe.disabled?void 0:Object(g.a)(le.ref,$e.bind(Object(v.a)(te))),eventKey:Le,active:!Fe.disabled&&dt,multiple:De.multiple,onClick:function(At){(Fe.onClick||ne)(At),te.onClick(At)},onItemHover:te.onItemHover,motion:De.motion,subMenuOpenDelay:De.subMenuOpenDelay,subMenuCloseDelay:De.subMenuCloseDelay,forceSubMenuRender:De.forceSubMenuRender,onOpenChange:te.onOpenChange,onDeselect:te.onDeselect,onSelect:te.onSelect,builtinPlacements:De.builtinPlacements,itemIcon:Fe.itemIcon||te.props.itemIcon,expandIcon:Fe.expandIcon||te.props.expandIcon},xe),{},{direction:De.direction});return(De.mode==="inline"||Z())&&(tt.triggerSubMenuAction="click"),r.cloneElement(le,tt)},te.renderMenuItem=function(le,we,xe){if(!le)return null;var Re=te.props.store.getState(),je={openKeys:Re.openKeys,selectedKeys:Re.selectedKeys,triggerSubMenuAction:te.props.triggerSubMenuAction,subMenuKey:xe};return te.renderCommonMenuItem(le,we,je)},ge.store.setState({activeKey:Object(O.a)(Object(O.a)({},ge.store.getState().activeKey),{},Object(i.a)({},ge.eventKey,_e(ge,ge.activeKey)))}),te.instanceArray=[],te}return Object(m.a)(Oe,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(te){return this.props.visible||te.visible||this.props.className!==te.className||!y()(this.props.style,te.style)}},{key:"componentDidUpdate",value:function(te){var le=this.props,we="activeKey"in le?le.activeKey:le.store.getState().activeKey[Ne(le)],xe=_e(le,we);if(xe!==we)Se(le.store,Ne(le),xe);else if("activeKey"in te){var Re=_e(te,te.activeKey);xe!==Re&&Se(le.store,Ne(le),xe)}}},{key:"render",value:function(){var te=this,le=Object(l.a)({},this.props);this.instanceArray=[];var we=N()(le.prefixCls,le.className,"".concat(le.prefixCls,"-").concat(le.mode)),xe={className:we,role:le.role||"menu"};le.id&&(xe.id=le.id),le.focusable&&(xe.tabIndex=0,xe.onKeyDown=this.onKeyDown);var Re=le.prefixCls,je=le.eventKey,De=le.visible,Le=le.level,Fe=le.mode,dt=le.overflowedIndicator,tt=le.theme;return oe.forEach(function(Ct){return delete le[Ct]}),delete le.onClick,r.createElement(ye,Object.assign({},le,{prefixCls:Re,mode:Fe,tag:"ul",level:Le,theme:tt,visible:De,overflowedIndicator:dt},xe),r.Children.map(le.children,function(Ct,At){return te.renderMenuItem(Ct,At,je||"0-menu-")}))}}]),Oe}(r.Component);He.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:ne};var nt=Object(e.b)()(He),et=nt,Xe=t("Kwbf");function st(ze,Ce,Oe){var ge=ze.prefixCls,te=ze.motion,le=ze.defaultMotions,we=le===void 0?{}:le,xe=ze.openAnimation,Re=ze.openTransitionName,je=Ce.switchingModeFromInline;if(te)return te;if(Object(L.a)(xe)==="object"&&xe)Object(Xe.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof xe=="string")return{motionName:"".concat(ge,"-open-").concat(xe)};if(Re)return{motionName:Re};var De=we[Oe];return De||(je?null:we.other)}var ut=function(ze){Object(u.a)(Oe,ze);var Ce=Object(a.a)(Oe);function Oe(ge){var te;Object(f.a)(this,Oe),te=Ce.call(this,ge),te.inlineOpenKeys=[],te.onSelect=function(xe){var Re=Object(v.a)(te),je=Re.props;if(je.selectable){var De=te.store.getState(),Le=De.selectedKeys,Fe=xe.key;je.multiple?Le=Le.concat([Fe]):Le=[Fe],"selectedKeys"in je||te.store.setState({selectedKeys:Le}),je.onSelect(Object(O.a)(Object(O.a)({},xe),{},{selectedKeys:Le}))}},te.onClick=function(xe){var Re=te.getRealMenuMode(),je=Object(v.a)(te),De=je.store,Le=je.props.onOpenChange;Re!=="inline"&&!("openKeys"in te.props)&&(De.setState({openKeys:[]}),Le([])),te.props.onClick(xe)},te.onKeyDown=function(xe,Re){te.innerMenu.getWrappedInstance().onKeyDown(xe,Re)},te.onOpenChange=function(xe){var Re=Object(v.a)(te),je=Re.props,De=te.store.getState().openKeys.concat(),Le=!1,Fe=function(tt){var Ct=!1;if(tt.open)Ct=De.indexOf(tt.key)===-1,Ct&&De.push(tt.key);else{var At=De.indexOf(tt.key);Ct=At!==-1,Ct&&De.splice(At,1)}Le=Le||Ct};Array.isArray(xe)?xe.forEach(Fe):Fe(xe),Le&&("openKeys"in te.props||te.store.setState({openKeys:De}),je.onOpenChange(De))},te.onDeselect=function(xe){var Re=Object(v.a)(te),je=Re.props;if(je.selectable){var De=te.store.getState().selectedKeys.concat(),Le=xe.key,Fe=De.indexOf(Le);Fe!==-1&&De.splice(Fe,1),"selectedKeys"in je||te.store.setState({selectedKeys:De}),je.onDeselect(Object(O.a)(Object(O.a)({},xe),{},{selectedKeys:De}))}},te.onMouseEnter=function(xe){te.restoreModeVerticalFromInline();var Re=te.props.onMouseEnter;Re&&Re(xe)},te.onTransitionEnd=function(xe){var Re=xe.propertyName==="width"&&xe.target===xe.currentTarget,je=xe.target.className,De=Object.prototype.toString.call(je)==="[object SVGAnimatedString]"?je.animVal:je,Le=xe.propertyName==="font-size"&&De.indexOf("anticon")>=0;(Re||Le)&&te.restoreModeVerticalFromInline()},te.setInnerMenu=function(xe){te.innerMenu=xe},te.isRootMenu=!0;var le=ge.defaultSelectedKeys,we=ge.defaultOpenKeys;return"selectedKeys"in ge&&(le=ge.selectedKeys||[]),"openKeys"in ge&&(we=ge.openKeys||[]),te.store=Object(e.c)({selectedKeys:le,openKeys:we,activeKey:{"0-menu-":_e(ge,ge.activeKey)}}),te.state={switchingModeFromInline:!1},te}return Object(m.a)(Oe,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(te){this.updateOpentKeysWhenSwitchMode(te),this.updateMiniStore();var le=this.props,we=le.siderCollapsed,xe=le.inlineCollapsed,Re=le.onOpenChange;(!te.inlineCollapsed&&xe||!te.siderCollapsed&&we)&&Re([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(te){var le=this.props,we=this.store,xe=this.inlineOpenKeys,Re=we.getState(),je={};te.mode==="inline"&&le.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in le||((le.inlineCollapsed&&!te.inlineCollapsed||le.siderCollapsed&&!te.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=Re.openKeys.concat(),je.openKeys=[]),(!le.inlineCollapsed&&te.inlineCollapsed||!le.siderCollapsed&&te.siderCollapsed)&&(je.openKeys=xe,this.inlineOpenKeys=[])),Object.keys(je).length&&we.setState(je)}},{key:"updateMenuDisplay",value:function(){var te=this.props.collapsedWidth,le=this.store,we=this.prevOpenKeys,xe=this.getInlineCollapsed()&&(te===0||te==="0"||te==="0px");xe?(this.prevOpenKeys=le.getState().openKeys.concat(),this.store.setState({openKeys:[]})):we&&(this.store.setState({openKeys:we}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var te=this.props.mode,le=this.state.switchingModeFromInline,we=this.getInlineCollapsed();return le&&we?"inline":we?"vertical":te}},{key:"getInlineCollapsed",value:function(){var te=this.props,le=te.inlineCollapsed,we=te.siderCollapsed;return we!==void 0?we:le}},{key:"restoreModeVerticalFromInline",value:function(){var te=this.state.switchingModeFromInline;te&&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 te=Object(O.a)({},Object(s.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),le=this.getRealMenuMode();return te.className+=" ".concat(te.prefixCls,"-root"),te.direction==="rtl"&&(te.className+=" ".concat(te.prefixCls,"-rtl")),te=Object(O.a)(Object(O.a)({},te),{},{mode:le,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:st(this.props,this.state,le)}),delete te.openAnimation,delete te.openTransitionName,r.createElement(e.a,{store:this.store},r.createElement(et,Object.assign({},te,{ref:this.setInnerMenu}),this.props.children))}}]),Oe}(r.Component);ut.defaultProps={selectable:!0,onClick:ne,onSelect:ne,onOpenChange:ne,onDeselect:ne,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:r.createElement("span",null,"\xB7\xB7\xB7")};var ct=ut,Ze=function(ze){Object(u.a)(Oe,ze);var Ce=Object(a.a)(Oe);function Oe(){var ge;return Object(f.a)(this,Oe),ge=Ce.apply(this,arguments),ge.onKeyDown=function(te){var le=te.keyCode;return le===d.a.ENTER?(ge.onClick(te),!0):void 0},ge.onMouseLeave=function(te){var le=ge.props,we=le.eventKey,xe=le.onItemHover,Re=le.onMouseLeave;xe({key:we,hover:!1}),Re({key:we,domEvent:te})},ge.onMouseEnter=function(te){var le=ge.props,we=le.eventKey,xe=le.onItemHover,Re=le.onMouseEnter;xe({key:we,hover:!0}),Re({key:we,domEvent:te})},ge.onClick=function(te){var le=ge.props,we=le.eventKey,xe=le.multiple,Re=le.onClick,je=le.onSelect,De=le.onDeselect,Le=le.isSelected,Fe={key:we,keyPath:[we],item:Object(v.a)(ge),domEvent:te};Re(Fe),xe?Le?De(Fe):je(Fe):Le||je(Fe)},ge.saveNode=function(te){ge.node=te},ge}return Object(m.a)(Oe,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var te=this.props;te.onDestroy&&te.onDestroy(te.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 te,le=Object(O.a)({},this.props),we=N()(this.getPrefixCls(),le.className,(te={},Object(i.a)(te,this.getActiveClassName(),!le.disabled&&le.active),Object(i.a)(te,this.getSelectedClassName(),le.isSelected),Object(i.a)(te,this.getDisabledClassName(),le.disabled),te)),xe=Object(O.a)(Object(O.a)({},le.attribute),{},{title:typeof le.title=="string"?le.title:void 0,className:we,role:le.role||"menuitem","aria-disabled":le.disabled});le.role==="option"?xe=Object(O.a)(Object(O.a)({},xe),{},{role:"option","aria-selected":le.isSelected}):(le.role===null||le.role==="none")&&(xe.role="none");var Re={onClick:le.disabled?null:this.onClick,onMouseLeave:le.disabled?null:this.onMouseLeave,onMouseEnter:le.disabled?null:this.onMouseEnter},je=Object(O.a)({},le.style);le.mode==="inline"&&(le.direction==="rtl"?je.paddingRight=le.inlineIndent*le.level:je.paddingLeft=le.inlineIndent*le.level),oe.forEach(function(Le){return delete le[Le]}),delete le.direction;var De=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(De=r.createElement(this.props.itemIcon,this.props)),r.createElement("li",Object.assign({},Object(s.default)(le,["onClick","onMouseEnter","onMouseLeave","onSelect"]),xe,Re,{style:je,ref:this.saveNode}),le.children,De)}}]),Oe}(r.Component);Ze.isMenuItem=!0,Ze.defaultProps={onSelect:ne,onMouseEnter:ne,onMouseLeave:ne,manualRef:ne};var bt=Object(e.b)(function(ze,Ce){var Oe=ze.activeKey,ge=ze.selectedKeys,te=Ce.eventKey,le=Ce.subMenuKey;return{active:Oe[le]===te,isSelected:ge.indexOf(te)!==-1}})(Ze),lt=bt,Et=function(ze){Object(u.a)(Oe,ze);var Ce=Object(a.a)(Oe);function Oe(){var ge;return Object(f.a)(this,Oe),ge=Ce.apply(this,arguments),ge.renderInnerMenuItem=function(te){var le=ge.props,we=le.renderMenuItem,xe=le.index;return we(te,xe,ge.props.subMenuKey)},ge}return Object(m.a)(Oe,[{key:"render",value:function(){var te=Object(l.a)({},this.props),le=te.className,we=le===void 0?"":le,xe=te.rootPrefixCls,Re="".concat(xe,"-item-group-title"),je="".concat(xe,"-item-group-list"),De=te.title,Le=te.children;return oe.forEach(function(Fe){return delete te[Fe]}),delete te.onClick,delete te.direction,r.createElement("li",Object.assign({},te,{className:"".concat(we," ").concat(xe,"-item-group")}),r.createElement("div",{className:Re,title:typeof De=="string"?De:void 0},De),r.createElement("ul",{className:je},r.Children.map(Le,this.renderInnerMenuItem)))}}]),Oe}(r.Component);Et.isMenuItemGroup=!0,Et.defaultProps={disabled:!0};var jt=Et,Qt=function(Ce){var Oe=Ce.className,ge=Ce.rootPrefixCls,te=Ce.style;return r.createElement("li",{className:"".concat(Oe," ").concat(ge,"-item-divider"),style:te})};Qt.defaultProps={disabled:!0,className:"",style:{}};var Gt=Qt,rn=x.e=ct},"1sBl":function(ie,x,t){var O=t("e/Dd").getSymbolSize;x.getRowColCoords=function(m){if(m===1)return[];for(var v=Math.floor(m/7)+2,u=O(m),a=u===145?26:Math.ceil((u-13)/(2*v-2))*2,r=[u-7],e=1;eH&&b>c&&b>n&&b>_||b1&&D(),Q=e.cubicAt(H,c,n,_,y[0]),j>1&&(G=e.cubicAt(H,c,n,_,y[1]))),j===2?JH&&_>c&&_>n||_=0&&b<=1){for(var R=0,M=e.quadraticAt(H,c,n,b),j=0;jw||_<-w)return 0;var k=Math.sqrt(w*w-_*_);E[0]=-k,E[1]=k;var b=Math.abs(c-o);if(b<1e-4)return 0;if(b%i<1e-4){c=0,o=i;var R=n?1:-1;return F>=E[0]+B&&F<=E[1]+B?R:0}if(n){var k=c;c=r(o),o=r(k)}else c=r(c),o=r(o);c>o&&(o+=i);for(var M=0,j=0;j<2;j++){var Q=E[j];if(Q+B>F){var G=Math.atan2(_,Q),R=n?1:-1;G<0&&(G=i+G),(G>=c&&G<=o||G+i>=c&&G+i<=o)&&(G>Math.PI/2&&G1&&(w||(n+=s(F,_,k,b,c,o))),R===1&&(F=B[R],_=B[R+1],k=F,b=_);switch(M){case l.M:k=B[R++],b=B[R++],F=k,_=b;break;case l.L:if(w){if(f.containStroke(F,_,B[R],B[R+1],H,c,o))return!0}else n+=s(F,_,B[R],B[R+1],c,o)||0;F=B[R++],_=B[R++];break;case l.C:if(w){if(m.containStroke(F,_,B[R++],B[R++],B[R++],B[R++],B[R],B[R+1],H,c,o))return!0}else n+=N(F,_,B[R++],B[R++],B[R++],B[R++],B[R],B[R+1],c,o)||0;F=B[R++],_=B[R++];break;case l.Q:if(w){if(v.containStroke(F,_,B[R++],B[R++],B[R],B[R+1],H,c,o))return!0}else n+=L(F,_,B[R++],B[R++],B[R],B[R+1],c,o)||0;F=B[R++],_=B[R++];break;case l.A:var j=B[R++],Q=B[R++],G=B[R++],ne=B[R++],J=B[R++],P=B[R++];R+=1;var Y=1-B[R++],W=Math.cos(J)*G+j,oe=Math.sin(J)*ne+Q;R>1?n+=s(F,_,W,oe,c,o):(k=W,b=oe);var $=(c-j)*ne/G+j;if(w){if(u.containStroke(j,Q,ne,J,J+P,Y,H,$,o))return!0}else n+=p(j,Q,ne,J,J+P,Y,$,o);F=Math.cos(J+P)*G+j,_=Math.sin(J+P)*ne+Q;break;case l.R:k=F=B[R++],b=_=B[R++];var X=B[R++],Z=B[R++],W=k+X,oe=b+Z;if(w){if(f.containStroke(k,b,W,b,H,c,o)||f.containStroke(W,b,W,oe,H,c,o)||f.containStroke(W,oe,k,oe,H,c,o)||f.containStroke(k,oe,k,b,H,c,o))return!0}else n+=s(W,b,W,oe,c,o),n+=s(k,oe,k,b,c,o);break;case l.Z:if(w){if(f.containStroke(F,_,k,b,H,c,o))return!0}else n+=s(F,_,k,b,c,o);F=k,_=b;break}}return!w&&!g(_,b)&&(n+=s(F,_,k,b,c,o)||0),n!==0}function h(B,H,w){return C(B,0,!1,H,w)}function T(B,H,w,c){return C(B,H,!0,w,c)}x.contain=h,x.containStroke=T},"2fw6":function(ie,x,t){var O=t("y+Vt"),f=O.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(m,v,u){u&&m.moveTo(v.cx+v.r,v.cy),m.arc(v.cx,v.cy,v.r,0,Math.PI*2,!0)}});ie.exports=f},"3C/r":function(ie,x){var t=function(f,m){this.image=f,this.repeat=m,this.type="pattern"};t.prototype.getCanvasPattern=function(f){return f.createPattern(this.image,this.repeat||"repeat")};var O=t;ie.exports=O},"3CBa":function(ie,x,t){var O=t("hydK"),f=O.createElement,m=t("bYtY"),v=t("SUKs"),u=t("y+Vt"),a=t("Dagg"),r=t("dqUG"),e=t("DBLp"),s=t("sW+o"),l=t("n6Mw"),i=t("vKoX"),d=t("P47w"),g=d.path,E=d.image,y=d.text;function D(o){return parseInt(o,10)}function N(o){return o instanceof u?g:o instanceof a?E:o instanceof r?y:g}function L(o,n){return n&&o&&n.parentNode!==o}function p(o,n,F){if(L(o,n)&&F){var _=F.nextSibling;_?o.insertBefore(n,_):o.appendChild(n)}}function C(o,n){if(L(o,n)){var F=o.firstChild;F?o.insertBefore(n,F):o.appendChild(n)}}function h(o,n){n&&o&&n.parentNode===o&&o.removeChild(n)}function T(o){return o.__textSvgEl}function B(o){return o.__svgEl}var H=function(o,n,F,_){this.root=o,this.storage=n,this._opts=F=m.extend({},F||{});var k=f("svg");k.setAttribute("xmlns","http://www.w3.org/2000/svg"),k.setAttribute("version","1.1"),k.setAttribute("baseProfile","full"),k.style.cssText="user-select:none;position:absolute;left:0;top:0;";var b=f("g");k.appendChild(b);var R=f("g");k.appendChild(R),this.gradientManager=new s(_,R),this.clipPathManager=new l(_,R),this.shadowManager=new i(_,R);var M=document.createElement("div");M.style.cssText="overflow:hidden;position:relative",this._svgDom=k,this._svgRoot=R,this._backgroundRoot=b,this._viewport=M,o.appendChild(M),M.appendChild(k),this.resize(F.width,F.height),this._visibleList=[]};H.prototype={constructor:H,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var o=this.getViewportRoot();if(o)return{offsetLeft:o.offsetLeft||0,offsetTop:o.offsetTop||0}},refresh:function(){var o=this.storage.getDisplayList(!0);this._paintList(o)},setBackgroundColor:function(o){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var n=f("rect");n.setAttribute("width",this.getWidth()),n.setAttribute("height",this.getHeight()),n.setAttribute("x",0),n.setAttribute("y",0),n.setAttribute("id",0),n.style.fill=o,this._backgroundRoot.appendChild(n),this._backgroundNode=n},_paintList:function(o){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var n=this._svgRoot,F=this._visibleList,_=o.length,k=[],b;for(b=0;b<_;b++){var R=o[b],M=N(R),j=B(R)||T(R);R.invisible||(R.__dirty&&(M&&M.brush(R),this.clipPathManager.update(R),R.style&&(this.gradientManager.update(R.style.fill),this.gradientManager.update(R.style.stroke),this.shadowManager.update(j,R)),R.__dirty=!1),k.push(R))}var Q=e(F,k),G;for(b=0;b=0;--R)if(b[R]===k)return!0;return!1}),F}else return null;else return F[0]},resize:function(o,n){var F=this._viewport;F.style.display="none";var _=this._opts;if(o!=null&&(_.width=o),n!=null&&(_.height=n),o=this._getSize(0),n=this._getSize(1),F.style.display="",this._width!==o||this._height!==n){this._width=o,this._height=n;var k=F.style;k.width=o+"px",k.height=n+"px";var b=this._svgDom;b.setAttribute("width",o),b.setAttribute("height",n)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",o),this._backgroundNode.setAttribute("height",n))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(o){var n=this._opts,F=["width","height"][o],_=["clientWidth","clientHeight"][o],k=["paddingLeft","paddingTop"][o],b=["paddingRight","paddingBottom"][o];if(n[F]!=null&&n[F]!=="auto")return parseFloat(n[F]);var R=this.root,M=document.defaultView.getComputedStyle(R);return(R[_]||D(M[F])||D(R.style[F]))-(D(M[k])||0)-(D(M[b])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var o=encodeURIComponent(this._svgDom.outerHTML.replace(/> +\r<`));return"data:image/svg+xml;charset=UTF-8,"+o}};function w(o){return function(){v('In SVG mode painter not support method "'+o+'"')}}m.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(o){H.prototype[o]=w(o)});var c=H;ie.exports=c},"3X7Y":function(ie,x,t){var O=t("u/Db");function f(m){this.mode=O.NUMERIC,this.data=m.toString()}f.getBitsLength=function(v){return 10*Math.floor(v/3)+(v%3?v%3*3+1:0)},f.prototype.getLength=function(){return this.data.length},f.prototype.getBitsLength=function(){return f.getBitsLength(this.data.length)},f.prototype.write=function(v){var u,a,r;for(u=0;u+3<=this.data.length;u+=3)a=this.data.substr(u,3),r=parseInt(a,10),v.put(r,10);var e=this.data.length-u;e>0&&(a=this.data.substr(u),r=parseInt(a,10),v.put(r,e*3+1))},ie.exports=f},"3e3G":function(ie,x,t){var O=t("bYtY"),f=t("QuXc"),m=function(u,a,r,e,s){this.x=u==null?.5:u,this.y=a==null?.5:a,this.r=r==null?.5:r,this.type="radial",this.global=s||!1,f.call(this,e)};m.prototype={constructor:m},O.inherits(m,f);var v=m;ie.exports=v},"3gBT":function(ie,x){var t=2311;function O(){return t++}ie.exports=O},"49sm":function(ie,x){var t={}.toString;ie.exports=Array.isArray||function(O){return t.call(O)=="[object Array]"}},"4fz+":function(ie,x,t){var O=t("bYtY"),f=t("1bdT"),m=t("mFDi"),v=function(a){a=a||{},f.call(this,a);for(var r in a)a.hasOwnProperty(r)&&(this[r]=a[r]);this._children=[],this.__storage=null,this.__dirty=!0};v.prototype={constructor:v,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(a){return this._children[a]},childOfName:function(a){for(var r=this._children,e=0;e=0&&(e.splice(s,0,a),this._doAdd(a))}return this},_doAdd:function(a){a.parent&&a.parent.remove(a),a.parent=this;var r=this.__storage,e=this.__zr;r&&r!==a.__storage&&(r.addToStorage(a),a instanceof v&&a.addChildrenToStorage(r)),e&&e.refresh()},remove:function(a){var r=this.__zr,e=this.__storage,s=this._children,l=O.indexOf(s,a);return l<0?this:(s.splice(l,1),a.parent=null,e&&(e.delFromStorage(a),a instanceof v&&a.delChildrenFromStorage(e)),r&&r.refresh(),this)},removeAll:function(){var a=this._children,r=this.__storage,e,s;for(s=0;s1e-4){w[0]=L-C,w[1]=p-h,c[0]=L+C,c[1]=p+h;return}if(e[0]=a(T)*C+L,e[1]=u(T)*h+p,s[0]=a(B)*C+L,s[1]=u(B)*h+p,o(w,e,s),n(c,e,s),T=T%r,T<0&&(T=T+r),B=B%r,B<0&&(B=B+r),T>B&&!H?B+=r:TT&&(l[0]=a(k)*C+L,l[1]=u(k)*h+p,o(w,l,w),n(c,l,c))}x.fromPoints=i,x.fromLine=d,x.fromCubic=y,x.fromQuadratic=D,x.fromArc=N},"4qgm":function(ie,x){ie.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAwCAYAAABE1blzAAAIeUlEQVRoQ72aa2wU1xXHf2dm1jYEBClJGgofIFJLU0W04AdQWgJSW0UprZRIpB/aJBTxStIShWchJvbytA2lBCKKeajhQ5s2tGpFK1G1UowqKNjYBkraJCqqiCDEDZSncezdmTnVnd2FxaztmfWaa632w9459/7v75xzz71j4R61ssM6TkrYqMon3qesPjFNLt6LoWWgB5n1ttr/GcMCLKrE5qFgPJf3gRXN5XJgoMcfUIFlR/QxiqgVhyfVA/MxTWKgPuZvL51UtUyTjwdK6IAI/NLbWlQylhctWC0xPuN35Zi+gFUMfpIzoqxsLpffDoTIggssb9KvqLBJYnxD3dvUepq8OIAPquxzfCobJ8v5QgotmMAxDVoyYjAvi81KcRiWk1qPKm/RPIvHqy2T5FeFElkQgeVNWq42m8TmcU0G8ZVXC2ia5vOW47Lq2BQ5m5ehrIf6JbC0WQdbsMSH5ZbNED/R3+mYDHSL5kcqVLZOZB8imq/lvAWWHdWpOGySIqYEwvKk1mtsmtl5/M72WNk4Wf6dj8jIAqce1qGJEparsgSHQVoIar3M3GRadWnDp+rb5eyJi0RaykgCy47q9DS1srDU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O5jQCmYm+j3yeG5m97ZvgYVyiOw28219sEfATfTd5klozZ2vAR6b8U3GJHttlcUdzGgFF9J8gbyvmb/nFrHuX6E4D7/YXWwTurLWJQnnbMGPLnlADu0SP7bK4ozmNQLe6pZn2wwGrbv8PSygpSs9Cw9cAAAAASUVORK5CYII="},"532y":function(ie,x,t){ie.exports={topStatistics:"topStatistics___1QNNN",tooltip:"tooltip___5CKvs",name:"name___1nnFB",filter:"filter___10bL9",daoke:"daoke___BNGuv",qingjia:"qingjia___xVHr-",kuangke:"kuangke___274Y9"}},"59Ip":function(ie,x,t){var O=t("Sj9i");function f(m,v,u,a,r,e,s,l,i,d,g){if(i===0)return!1;var E=i;if(g>v+E&&g>a+E&&g>e+E&&g>l+E||gm+E&&d>u+E&&d>r+E&&d>s+E||d=0||k.relatedTarget.className.indexOf("".concat(j,"-next"))>=0))return;o.setState({goInputText:""}),M(o.getValidValue())},o.go=function(k){var b=o.state.goInputText;if(b==="")return;(k.keyCode===E.ENTER||k.type==="click")&&(o.setState({goInputText:""}),o.props.quickGo(o.getValidValue()))},o}return Object(u.a)(c,[{key:"getValidValue",value:function(){var n=this.state,F=n.goInputText,_=n.current;return!F||isNaN(F)?_:Number(F)}},{key:"getPageSizeOptions",value:function(){var n=this.props,F=n.pageSize,_=n.pageSizeOptions;return _.some(function(k){return k.toString()===F.toString()})?_:_.concat([F.toString()]).sort(function(k,b){var R=isNaN(Number(k))?0:Number(k),M=isNaN(Number(b))?0:Number(b);return R-M})}},{key:"render",value:function(){var n=this,F=this.props,_=F.pageSize,k=F.locale,b=F.rootPrefixCls,R=F.changeSize,M=F.quickGo,j=F.goButton,Q=F.selectComponentClass,G=F.buildOptionText,ne=F.selectPrefixCls,J=F.disabled,P=this.state.goInputText,Y="".concat(b,"-options"),W=Q,oe=null,$=null,X=null;if(!R&&!M)return null;var Z=this.getPageSizeOptions();if(R&&W){var se=Z.map(function(ae,ve){return s.a.createElement(W.Option,{key:ve,value:ae.toString()},(G||n.buildOptionText)(ae))});oe=s.a.createElement(W,{disabled:J,prefixCls:ne,showSearch:!1,className:"".concat(Y,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(_||Z[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ve){return ve.parentNode}},se)}return M&&(j&&(X=typeof j=="boolean"?s.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:J,className:"".concat(Y,"-quick-jumper-button")},k.jump_to_confirm):s.a.createElement("span",{onClick:this.go,onKeyUp:this.go},j)),$=s.a.createElement("div",{className:"".concat(Y,"-quick-jumper")},k.jump_to,s.a.createElement("input",{disabled:J,type:"text",value:P,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),k.page,X)),s.a.createElement("li",{className:"".concat(Y)},oe,$)}}]),c}(s.a.Component);y.defaultProps={pageSizeOptions:["10","20","50","100"]};var D=y,N=t("N2Kk");function L(){}function p(H){return typeof H=="number"&&isFinite(H)&&Math.floor(H)===H}function C(H,w,c){return c}function h(H,w,c){var o=typeof H=="undefined"?w.pageSize:H;return Math.floor((c.total-1)/o)+1}var T=function(H){Object(a.a)(c,H);var w=Object(r.a)(c);function c(o){var n;Object(v.a)(this,c),n=w.call(this,o),n.getJumpPrevPage=function(){return Math.max(1,n.state.current-(n.props.showLessItems?3:5))},n.getJumpNextPage=function(){return Math.min(h(void 0,n.state,n.props),n.state.current+(n.props.showLessItems?3:5))},n.getItemIcon=function(R,M){var j=n.props.prefixCls,Q=R||s.a.createElement("button",{type:"button","aria-label":M,className:"".concat(j,"-item-link")});return typeof R=="function"&&(Q=s.a.createElement(R,Object(m.a)({},n.props))),Q},n.savePaginationNode=function(R){n.paginationNode=R},n.isValid=function(R){return p(R)&&R!==n.state.current},n.shouldDisplayQuickJumper=function(){var R=n.props,M=R.showQuickJumper,j=R.pageSize,Q=R.total;return Q<=j?!1:M},n.handleKeyDown=function(R){(R.keyCode===E.ARROW_UP||R.keyCode===E.ARROW_DOWN)&&R.preventDefault()},n.handleKeyUp=function(R){var M=n.getValidValue(R),j=n.state.currentInputValue;M!==j&&n.setState({currentInputValue:M}),R.keyCode===E.ENTER?n.handleChange(M):R.keyCode===E.ARROW_UP?n.handleChange(M-1):R.keyCode===E.ARROW_DOWN&&n.handleChange(M+1)},n.changePageSize=function(R){var M=n.state.current,j=h(R,n.state,n.props);M=M>j?j:M,j===0&&(M=n.state.current),typeof R=="number"&&("pageSize"in n.props||n.setState({pageSize:R}),"current"in n.props||n.setState({current:M,currentInputValue:M})),n.props.onShowSizeChange(M,R),"onChange"in n.props&&n.props.onChange&&n.props.onChange(M,R)},n.handleChange=function(R){var M=n.props.disabled,j=R;if(n.isValid(j)&&!M){var Q=h(void 0,n.state,n.props);j>Q?j=Q:j<1&&(j=1),"current"in n.props||n.setState({current:j,currentInputValue:j});var G=n.state.pageSize;return n.props.onChange(j,G),j}return n.state.current},n.prev=function(){n.hasPrev()&&n.handleChange(n.state.current-1)},n.next=function(){n.hasNext()&&n.handleChange(n.state.current+1)},n.jumpPrev=function(){n.handleChange(n.getJumpPrevPage())},n.jumpNext=function(){n.handleChange(n.getJumpNextPage())},n.hasPrev=function(){return n.state.current>1},n.hasNext=function(){return n.state.current2?j-2:0),G=2;G=_?b=_:b=Number(F),b}},{key:"getShowSizeChanger",value:function(){var n=this.props,F=n.showSizeChanger,_=n.total,k=n.totalBoundaryShowSizeChanger;return typeof F!="undefined"?F:_>k}},{key:"renderPrev",value:function(n){var F=this.props,_=F.prevIcon,k=F.itemRender,b=k(n,"prev",this.getItemIcon(_,"prev page")),R=!this.hasPrev();return Object(e.isValidElement)(b)?Object(e.cloneElement)(b,{disabled:R}):b}},{key:"renderNext",value:function(n){var F=this.props,_=F.nextIcon,k=F.itemRender,b=k(n,"next",this.getItemIcon(_,"next page")),R=!this.hasNext();return Object(e.isValidElement)(b)?Object(e.cloneElement)(b,{disabled:R}):b}},{key:"render",value:function(){var n=this,F=this.props,_=F.prefixCls,k=F.className,b=F.style,R=F.disabled,M=F.hideOnSinglePage,j=F.total,Q=F.locale,G=F.showQuickJumper,ne=F.showLessItems,J=F.showTitle,P=F.showTotal,Y=F.simple,W=F.itemRender,oe=F.showPrevNextJumpers,$=F.jumpPrevIcon,X=F.jumpNextIcon,Z=F.selectComponentClass,se=F.selectPrefixCls,ae=F.pageSizeOptions,ve=this.state,V=ve.current,re=ve.pageSize,I=ve.currentInputValue;if(M===!0&&j<=re)return null;var q=h(void 0,this.state,this.props),fe=[],z=null,A=null,S=null,K=null,ee=null,de=G&&G.goButton,he=ne?1:2,Me=V-1>0?V-1:0,ce=V+1=he*2&&V!==1+2&&(fe[0]=Object(e.cloneElement)(fe[0],{className:"".concat(_,"-item-after-jump-prev")}),fe.unshift(z)),q-V>=he*2&&V!==q-2&&(fe[fe.length-1]=Object(e.cloneElement)(fe[fe.length-1],{className:"".concat(_,"-item-before-jump-next")}),fe.push(A)),_e!==1&&fe.unshift(S),$e!==q&&fe.push(K)}var et=null;P&&(et=s.a.createElement("li",{className:"".concat(_,"-total-text")},P(j,[j===0?0:(V-1)*re+1,V*re>j?j:V*re])));var Xe=!this.hasPrev()||!q,st=!this.hasNext()||!q;return s.a.createElement("ul",Object(O.a)({className:i()(_,k,Object(f.a)({},"".concat(_,"-disabled"),R)),style:b,unselectable:"unselectable",ref:this.savePaginationNode},be),et,s.a.createElement("li",{title:J?Q.prev_page:null,onClick:this.prev,tabIndex:Xe?null:0,onKeyPress:this.runIfEnterPrev,className:i()("".concat(_,"-prev"),Object(f.a)({},"".concat(_,"-disabled"),Xe)),"aria-disabled":Xe},this.renderPrev(Me)),fe,s.a.createElement("li",{title:J?Q.next_page:null,onClick:this.next,tabIndex:st?null:0,onKeyPress:this.runIfEnterNext,className:i()("".concat(_,"-next"),Object(f.a)({},"".concat(_,"-disabled"),st)),"aria-disabled":st},this.renderNext(ce)),s.a.createElement(D,{disabled:R,locale:Q,rootPrefixCls:_,selectComponentClass:Z,selectPrefixCls:se,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:V,pageSize:re,pageSizeOptions:ae,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:de}))}}],[{key:"getDerivedStateFromProps",value:function(n,F){var _={};if("current"in n&&(_.current=n.current,n.current!==F.current&&(_.currentInputValue=_.current)),"pageSize"in n&&n.pageSize!==F.pageSize){var k=F.current,b=h(n.pageSize,F,n);k=k>b?b:k,"current"in n||(_.current=k,_.currentInputValue=k),_.pageSize=n.pageSize}return _}}]),c}(s.a.Component);T.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:L,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:L,locale:N.a,style:{},itemRender:C,totalBoundaryShowSizeChanger:50};var B=T},"6GrX":function(ie,x,t){var O=t("mFDi"),f=t("Xnb7"),m=t("bYtY"),v=m.getContext,u=m.extend,a=m.retrieve2,r=m.retrieve3,e=m.trim,s={},l=0,i=5e3,d=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,g="12px sans-serif",E={};function y(M,j){E[M]=j}function D(M,j){j=j||g;var Q=M+":"+j;if(s[Q])return s[Q];for(var G=(M+"").split(` +`),ne=0,J=0,P=G.length;Ji&&(l=0,s={}),l++,s[Q]=ne,ne}function N(M,j,Q,G,ne,J,P,Y){return P?p(M,j,Q,G,ne,J,P,Y):L(M,j,Q,G,ne,J,Y)}function L(M,j,Q,G,ne,J,P){var Y=_(M,j,ne,J,P),W=D(M,j);ne&&(W+=ne[1]+ne[3]);var oe=Y.outerHeight,$=C(0,W,Q),X=h(0,oe,G),Z=new O($,X,W,oe);return Z.lineHeight=Y.lineHeight,Z}function p(M,j,Q,G,ne,J,P,Y){var W=k(M,{rich:P,truncate:Y,font:j,textAlign:Q,textPadding:ne,textLineHeight:J}),oe=W.outerWidth,$=W.outerHeight,X=C(0,oe,Q),Z=h(0,$,G);return new O(X,Z,oe,$)}function C(M,j,Q){return Q==="right"?M-=j:Q==="center"&&(M-=j/2),M}function h(M,j,Q){return Q==="middle"?M-=j/2:Q==="bottom"&&(M-=j),M}function T(M,j,Q){var G=j.textPosition,ne=j.textDistance,J=Q.x,P=Q.y;ne=ne||0;var Y=Q.height,W=Q.width,oe=Y/2,$="left",X="top";switch(G){case"left":J-=ne,P+=oe,$="right",X="middle";break;case"right":J+=ne+W,P+=oe,X="middle";break;case"top":J+=W/2,P-=ne,$="center",X="bottom";break;case"bottom":J+=W/2,P+=Y+ne,$="center";break;case"inside":J+=W/2,P+=oe,$="center",X="middle";break;case"insideLeft":J+=ne,P+=oe,X="middle";break;case"insideRight":J+=W-ne,P+=oe,$="right",X="middle";break;case"insideTop":J+=W/2,P+=ne,$="center";break;case"insideBottom":J+=W/2,P+=Y-ne,$="center",X="bottom";break;case"insideTopLeft":J+=ne,P+=ne;break;case"insideTopRight":J+=W-ne,P+=ne,$="right";break;case"insideBottomLeft":J+=ne,P+=Y-ne,X="bottom";break;case"insideBottomRight":J+=W-ne,P+=Y-ne,$="right",X="bottom";break}return M=M||{},M.x=J,M.y=P,M.textAlign=$,M.textVerticalAlign=X,M}function B(M,j,Q){var G={textPosition:M,textDistance:Q};return T({},G,j)}function H(M,j,Q,G,ne){if(!j)return"";var J=(M+"").split(` `);ne=w(j,Q,G,ne);for(var P=0,Y=J.length;P=J;Y++)P-=J;var W=T(Q,j);return W>P&&(Q="",W=0),P=M-W,G.ellipsis=Q,G.ellipsisWidth=W,G.contentWidth=P,G.containerWidth=M,G}function c(M,j){var Q=j.containerWidth,G=j.font,ne=j.contentWidth;if(!Q)return"";var J=T(M,G);if(J<=Q)return M;for(var P=0;;P++){if(J<=ne||P>=j.maxIterations){M+=j.ellipsis;break}var Y=P===0?o(M,ne,j.ascCharWidth,j.cnCharWidth):J>0?Math.floor(M.length*ne/J):0;M=M.substr(0,Y),J=T(M,G)}return M===""&&(M=j.placeholder),M}function o(M,j,Q,G){for(var ne=0,J=0,P=M.length;J$)M="",P=[];else if(X!=null)for(var Z=w(X-(Q?Q[1]+Q[3]:0),j,ne.ellipsis,{minChar:ne.minChar,placeholder:ne.placeholder}),se=0,ae=P.length;seG&&b(Q,M.substring(G,J)),b(Q,ne[2],ne[1]),G=d.lastIndex}Gse)return{lines:[],width:0,height:0};q.textWidth=T(q.text,A);var K=fe.textWidth,ee=K==null||K==="auto";if(typeof K=="string"&&K.charAt(K.length-1)==="%")q.percentWidth=K,oe.push(q),K=0;else{if(ee){K=q.textWidth;var de=fe.textBackgroundColor,he=de&&de.image;he&&(he=f.findExistImage(he),f.isImageReady(he)&&(K=Math.max(K,he.width*S/he.height)))}var Me=z?z[1]+z[3]:0;K+=Me;var ce=Z!=null?Z-re:null;ce!=null&&ce=0&&o.splice(n,1),w.__hoverMir=null},clearHover:function(w){for(var c=this._hoverElements,o=0;o15)break}}_.__drawIndex=P,_.__drawIndex<_.__endIndex&&(k=!1),M.prevElClipPaths&&R.restore(),R.restore()}return l.wxa&&m.each(this._layers,function(oe){oe&&oe.ctx&&oe.ctx.draw&&oe.ctx.draw()}),k},_doPaintEl:function(w,c,o,n){var F=c.ctx,_=w.transform;if((c.__dirty||o)&&!w.invisible&&w.style.opacity!==0&&!(_&&!_[0]&&!_[3])&&!(w.culling&&p(w,this._width,this._height))){var k=w.__clipPaths,b=n.prevElClipPaths;(!b||C(k,b))&&(b&&(F.restore(),n.prevElClipPaths=null,n.prevEl=null),k&&(F.save(),h(k,F),n.prevElClipPaths=k)),w.beforeBrush&&w.beforeBrush(F),w.brush(F,n.prevEl||null),n.prevEl=w,w.afterBrush&&w.afterBrush(F)}},getLayer:function(w,c){this._singleCanvas&&!this._needsManuallyCompositing&&(w=d);var o=this._layers[w];return o||(o=new r("zr_"+w,this,this.dpr),o.zlevel=w,o.__builtin__=!0,this._layerConfig[w]?m.merge(o,this._layerConfig[w],!0):this._layerConfig[w-g]&&m.merge(o,this._layerConfig[w-g],!0),c&&(o.virtual=c),this.insertLayer(w,o),o.initContext()),o},insertLayer:function(w,c){var o=this._layers,n=this._zlevelList,F=n.length,_=null,k=-1,b=this._domRoot;if(o[w]){v("ZLevel "+w+" has been used already");return}if(!T(c)){v("Layer of zlevel "+w+" is not valid");return}if(F>0&&w>n[0]){for(k=0;kw);k++);_=o[n[k]]}if(n.splice(k+1,0,w),o[w]=c,!c.virtual)if(_){var R=_.dom;R.nextSibling?b.insertBefore(c.dom,R.nextSibling):b.appendChild(c.dom)}else b.firstChild?b.insertBefore(c.dom,b.firstChild):b.appendChild(c.dom)},eachLayer:function(w,c){var o=this._zlevelList,n,F;for(F=0;F0?g:0),this._needsManuallyCompositing),R.__builtin__||v("ZLevel "+b+" has been used by unkown layer "+R.id),R!==F&&(R.__used=!0,R.__startIndex!==o&&(R.__dirty=!0),R.__startIndex=o,R.incremental?R.__drawIndex=-1:R.__drawIndex=o,c(o),F=R),n.__dirty&&(R.__dirty=!0,R.incremental&&R.__drawIndex<0&&(R.__drawIndex=o))}c(o),this.eachBuiltinLayer(function(M,j){!M.__used&&M.getElementCount()>0&&(M.__dirty=!0,M.__startIndex=M.__endIndex=M.__drawIndex=0),M.__dirty&&M.__drawIndex<0&&(M.__drawIndex=M.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(w){w.clear()},setBackgroundColor:function(w){this._backgroundColor=w},configLayer:function(w,c){if(c){var o=this._layerConfig;o[w]?m.merge(o[w],c,!0):o[w]=c;for(var n=0;n0&&arguments[0]!==void 0?arguments[0]:[],T=new Map;function N(L){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(L||[]).forEach(function(C){var h=C.key,D=C.children;Object(u.a)(h!=null,"Tree node must have a certain key: [".concat(p).concat(h,"]"));var B=String(h);Object(u.a)(!T.has(B)||h===null||h===void 0,"Same 'key' exist in the Tree: ".concat(B)),T.set(B,!0),N(D,"".concat(p).concat(B," > "))})}N(y)}function s(y){function T(N){var L=Object(v.a)(N);return L.map(function(p){if(!Object(a.i)(p))return Object(u.a)(!p,"Tree/TreeNode can only accept TreeNode as children."),null;var C=p.key,h=p.props,D=h.children,B=Object(m.a)(h,["children"]),H=Object(f.a)({key:C},B),w=T(D);return w.length&&(H.children=w),H}).filter(function(p){return p})}return T(y)}function l(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],N=new Set(T===!0?[]:T),L=[];function p(C){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return C.map(function(D,B){var H=Object(a.h)(h?h.pos:"0",B),w=r(D.key,H),c=Object(f.a)(Object(f.a)({},D),{},{parent:h,pos:H,children:null,data:D,isStart:[].concat(Object(O.a)(h?h.isStart:[]),[B===0]),isEnd:[].concat(Object(O.a)(h?h.isEnd:[]),[B===C.length-1])});return L.push(c),T===!0||N.has(w)?c.children=p(D.children||[],c):c.children=[],c})}return p(y),L}function i(y,T,N){var L;N?typeof N=="string"?L=function(h){return h[N]}:typeof N=="function"&&(L=function(h){return N(h)}):L=function(h,D){return r(h.key,D)};function p(C,h,D){var B=C?C.children:y,H=C?Object(a.h)(D.pos,h):"0";if(C){var w=L(C,H),c={node:C,index:h,pos:H,key:w,parentPos:D.node?D.pos:null,level:D.level+1};T(c)}B&&B.forEach(function(o,n){p(o,n,{node:C,pos:H,level:D?D.level+1:-1})})}p(null)}function d(y){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},N=T.initWrapper,L=T.processEntity,p=T.onProcessFinished,C=arguments.length>2?arguments[2]:void 0,h={},D={},B={posEntities:h,keyEntities:D};return N&&(B=N(B)||B),i(y,function(H){var w=H.node,c=H.index,o=H.pos,n=H.key,F=H.parentPos,_=H.level,k={node:w,index:c,key:n,pos:o,level:_},b=r(n,o);h[o]=k,D[b]=k,k.parent=h[F],k.parent&&(k.parent.children=k.parent.children||[],k.parent.children.push(k)),L&&L(k,B)},C),p&&p(B),B}function g(y,T){var N=T.expandedKeys,L=T.selectedKeys,p=T.loadedKeys,C=T.loadingKeys,h=T.checkedKeys,D=T.halfCheckedKeys,B=T.dragOverNodeKey,H=T.dropPosition,w=T.keyEntities,c=w[y],o={eventKey:y,expanded:N.indexOf(y)!==-1,selected:L.indexOf(y)!==-1,loaded:p.indexOf(y)!==-1,loading:C.indexOf(y)!==-1,checked:h.indexOf(y)!==-1,halfChecked:D.indexOf(y)!==-1,pos:String(c?c.pos:""),dragOver:B===y&&H===0,dragOverGapTop:B===y&&H===-1,dragOverGapBottom:B===y&&H===1};return o}function E(y){var T=y.data,N=y.expanded,L=y.selected,p=y.checked,C=y.loaded,h=y.loading,D=y.halfChecked,B=y.dragOver,H=y.dragOverGapTop,w=y.dragOverGapBottom,c=y.pos,o=y.active,n=Object(f.a)(Object(f.a)({},T),{},{expanded:N,selected:L,checked:p,loaded:C,loading:h,halfChecked:D,dragOver:B,dragOverGapTop:H,dragOverGapBottom:w,pos:c,active:o});return"props"in n||Object.defineProperty(n,"props",{get:function(){return Object(u.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),y}}),n}},"8Jsi":function(ie,x,t){"use strict";t.d(x,"d",function(){return F}),t.d(x,"a",function(){return I}),t.d(x,"b",function(){return fe}),t.d(x,"c",function(){return q});var O=t("1OyB"),f=t("vuIU"),m=t("Ji7U"),v=t("LK+K"),u=t("KQm4"),a=t("U8pU"),r=t("ODXe"),e=t("VTBJ"),s=t("q1tI"),l=t("qNPg"),i=t("2Qr1"),d=t("815F"),g=t("NvD2"),E=t("wPlo"),y=t("6cGi"),T=t("Kwbf"),N=t("4IlW"),L=t("YrtM"),p=t("fAei"),C=s.createContext(null);function h(ce,be){if(!ce)return!0;var Ae=ce.data,ye=Ae.disabled,ke=Ae.disableCheckbox;switch(be){case"select":return ye;case"checkbox":return ye||ke}return!1}function D(ce,be){var Ae=s.useCallback(function(ke){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",Ne=arguments.length>2?arguments[2]:void 0,_e=ce.get(ke);return!Ne&&h(_e,Se)?null:_e},[ce]),ye=s.useCallback(function(ke){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",Ne=arguments.length>2?arguments[2]:void 0,_e=be.get(ke);return!Ne&&h(_e,Se)?null:_e},[be]);return[Ae,ye]}function B(ce){return s.useMemo(function(){var be=new Map,Ae=new Map;return ce.forEach(function(ye){be.set(ye.key,ye),Ae.set(ye.data.value,ye)}),[be,Ae]},[ce])}var H={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},w=function(be,Ae){var ye=be.prefixCls,ke=be.height,Se=be.itemHeight,Ne=be.virtual,_e=be.options,$e=be.flattenOptions,He=be.multiple,nt=be.searchValue,et=be.onSelect,Xe=be.onToggleOpen,st=be.open,ut=be.notFoundContent,ct=be.onMouseEnter,Ze=s.useContext(C),bt=Ze.checkable,lt=Ze.checkedKeys,Et=Ze.halfCheckedKeys,jt=Ze.treeExpandedKeys,Qt=Ze.treeDefaultExpandAll,Gt=Ze.treeDefaultExpandedKeys,rn=Ze.onTreeExpand,ze=Ze.treeIcon,Ce=Ze.showTreeIcon,Oe=Ze.switcherIcon,ge=Ze.treeLine,te=Ze.treeNodeFilterProp,le=Ze.loadData,we=Ze.treeLoadedKeys,xe=Ze.treeMotion,Re=Ze.onTreeLoad,je=s.useRef(),Te=Object(L.a)(function(){return _e},[st,_e],function(Dt,mt){return mt[0]&&Dt[1]!==mt[1]}),Le=B($e),Fe=Object(r.a)(Le,2),dt=Fe[0],tt=Fe[1],Ct=D(dt,tt),At=Object(r.a)(Ct,2),Ht=At[0],en=At[1],Ge=s.useMemo(function(){return lt.map(function(Dt){var mt=en(Dt);return mt?mt.key:null})},[lt]),gt=s.useMemo(function(){return bt?{checked:Ge,halfChecked:Et}:null},[Ge,Et,bt]);s.useEffect(function(){if(st&&!He&&Ge.length){var Dt;(Dt=je.current)===null||Dt===void 0||Dt.scrollTo({key:Ge[0]})}},[st]);var xt=String(nt).toLowerCase(),Lt=function(mt){return xt?String(mt[te]).toLowerCase().includes(xt):!1},Ot=s.useState(Gt),Tt=Object(r.a)(Ot,2),Bt=Tt[0],Xt=Tt[1],an=s.useState(null),Jt=Object(r.a)(an,2),_t=Jt[0],Ft=Jt[1],$t=s.useMemo(function(){return jt?Object(u.a)(jt):nt?_t:Bt},[Bt,_t,xt,jt]);s.useEffect(function(){nt&&Ft($e.map(function(Dt){return Dt.key}))},[nt]);var Sn=function(mt){Xt(mt),Ft(mt),rn&&rn(mt)},ir=function(mt){mt.preventDefault()},Nn=function(mt,St){var Mt=St.node.key,Yt=Ht(Mt,bt?"checkbox":"select");Yt!==null&&et(Yt.data.value,{selected:!lt.includes(Yt.data.value)}),He||Xe(!1)},Kn=s.useState(null),it=Object(r.a)(Kn,2),wt=it[0],Zt=it[1],Cn=Ht(wt);if(s.useImperativeHandle(Ae,function(){return{onKeyDown:function(mt){var St,Mt=mt.which;switch(Mt){case N.a.UP:case N.a.DOWN:case N.a.LEFT:case N.a.RIGHT:(St=je.current)===null||St===void 0||St.onKeyDown(mt);break;case N.a.ENTER:{Cn!==null&&Nn(null,{node:{key:wt},selected:!lt.includes(Cn.data.value)});break}case N.a.ESC:Xe(!1)}},onKeyUp:function(){}}}),Te.length===0)return s.createElement("div",{role:"listbox",className:"".concat(ye,"-empty"),onMouseDown:ir},ut);var zt={};return we&&(zt.loadedKeys=we),$t&&(zt.expandedKeys=$t),s.createElement("div",{onMouseDown:ir,onMouseEnter:ct},Cn&&st&&s.createElement("span",{style:H,"aria-live":"assertive"},Cn.data.value),s.createElement(p.b,Object.assign({ref:je,focusable:!1,prefixCls:"".concat(ye,"-tree"),treeData:Te,height:ke,itemHeight:Se,virtual:Ne,multiple:He,icon:ze,showIcon:Ce,switcherIcon:Oe,showLine:ge,loadData:nt?null:le,motion:xe,checkable:bt,checkStrictly:!0,checkedKeys:gt,selectedKeys:bt?[]:Ge,defaultExpandAll:Qt},zt,{onActiveChange:Zt,onSelect:Nn,onCheck:Nn,onExpand:Sn,onLoad:Re,filterTreeNode:Lt})))},c=s.forwardRef(w);c.displayName="OptionList";var o=c,n=function(){return null},F=n,_=t("Ff2n"),k=t("Zm9Q");function b(ce){return Object(k.a)(ce).map(function(be){if(!s.isValidElement(be)||!be.type)return null;var Ae=be.key,ye=be.props,ke=ye.children,Se=ye.value,Ne=Object(_.a)(ye,["children","value"]),_e=Object(e.a)({key:Ae,value:Se},Ne),$e=b(ke);return $e.length&&(_e.children=$e),_e}).filter(function(be){return be})}function R(ce){if(!ce)return ce;var be=Object(e.a)({},ce);return"props"in be||Object.defineProperty(be,"props",{get:function(){return Object(T.a)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),be}}),be}function M(ce,be,Ae,ye,ke){var Se=null,Ne=null;function _e(){function $e(He){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return He.map(function(Xe,st){var ut="".concat(nt,"-").concat(st),ct=Ae.includes(Xe.value),Ze=$e(Xe.children||[],ut,ct),bt=s.createElement(F,Object.assign({},Xe),Ze.map(function(Et){return Et.node}));if(be===Xe.value&&(Se=bt),ct){var lt={pos:ut,node:bt,children:Ze};return et||Ne.push(lt),lt}return null}).filter(function(Xe){return Xe})}Ne||(Ne=[],$e(ye),Ne.sort(function(He,nt){var et=He.node.props.value,Xe=nt.node.props.value,st=Ae.indexOf(et),ut=Ae.indexOf(Xe);return st-ut}))}Object.defineProperty(ce,"triggerNode",{get:function(){return Object(T.a)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),_e(),Se}}),Object.defineProperty(ce,"allCheckedNodes",{get:function(){return Object(T.a)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),_e(),ke?Ne:Ne.map(function(He){var nt=He.node;return nt})}})}function j(ce){return Array.isArray(ce)?ce:ce!==void 0?[ce]:[]}function Q(ce,be){var Ae=new Map;return be.forEach(function(ye){var ke=ye.data;Ae.set(ke.value,ke)}),ce.map(function(ye){return R(Ae.get(ye))})}function G(ce,be){var Ae=Q([ce],be)[0];return Ae?Ae.disabled:!1}function ne(ce){return ce.disabled||ce.disableCheckbox||ce.checkable===!1}function J(ce){for(var be=ce.parent,Ae=0,ye=be;ye;)ye=ye.parent,Ae+=1;return Ae}function P(ce){function be(ye){return(ye||[]).map(function(ke){var Se=ke.value,Ne=ke.key,_e=ke.children,$e=Object(e.a)(Object(e.a)({},ke),{},{key:"key"in ke?Ne:Se});return _e&&($e.children=be(_e)),$e})}var Ae=Object(d.d)(be(ce),!0);return Ae.map(function(ye){return{key:ye.data.key,data:ye.data,level:J(ye)}})}function Y(ce){return function(be,Ae){var ye=Ae[ce];return String(ye).toLowerCase().includes(String(be).toLowerCase())}}function W(ce,be,Ae){var ye=Ae.optionFilterProp,ke=Ae.filterOption;if(ke===!1)return be;var Se;typeof ke=="function"?Se=ke:Se=Y(ye);function Ne(_e){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return _e.map(function(He){var nt=He.children,et=$e||Se(ce,R(He)),Xe=Ne(nt||[],et);return et||Xe.length?Object(e.a)(Object(e.a)({},He),{},{children:Xe}):null}).filter(function(He){return He})}return Ne(be)}function oe(ce,be,Ae,ye){var ke=new Map;return j(be).forEach(function(Se){Se&&Object(a.a)(Se)==="object"&&"value"in Se&&ke.set(Se.value,Se)}),ce.map(function(Se){var Ne={value:Se},_e=Ae(Se,"select",!0),$e=_e?ye(_e.data):Se;if(ke.has(Se)){var He=ke.get(Se);Ne.label="label"in He?He.label:$e,"halfChecked"in He&&(Ne.halfChecked=He.halfChecked)}else Ne.label=$e;return Ne})}function $(ce,be){var Ae=new Set(ce);return Ae.add(be),Array.from(Ae)}function X(ce,be){var Ae=new Set(ce);return Ae.delete(be),Array.from(Ae)}function Z(ce){var be=ce.searchPlaceholder,Ae=ce.treeCheckStrictly,ye=ce.treeCheckable,ke=ce.labelInValue,Se=ce.value,Ne=ce.multiple;Object(T.a)(!be,"`searchPlaceholder` has been removed."),Ae&&ke===!1&&Object(T.a)(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(ke||Ae)&&Object(T.a)(j(Se).every(function(_e){return _e&&Object(a.a)(_e)==="object"&&"value"in _e}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),Ae||Ne||ye?Object(T.a)(!Se||Array.isArray(Se),"`value` should be an array when `TreeSelect` is checkable or multiple."):Object(T.a)(!Array.isArray(Se),"`value` should not be array when `TreeSelect` is single mode.")}var se=Z,ae=10;function ve(ce,be){var Ae=be.id,ye=be.pId,ke=be.rootPId,Se={},Ne=[],_e=ce.map(function($e){var He=Object(e.a)({},$e),nt=He[Ae];return Se[nt]=He,He.key=He.key||nt,He});return _e.forEach(function($e){var He=$e[ye],nt=Se[He];nt&&(nt.children=nt.children||[],nt.children.push($e)),(He===ke||!nt&&ke===null)&&Ne.push($e)}),Ne}function V(ce,be){var Ae=0,ye=new Set;function ke(Se){return(Se||[]).map(function(Ne){var _e=Ne.key,$e=Ne.value,He=Ne.children,nt=Object(_.a)(Ne,["key","value","children"]),et="value"in Ne?$e:_e,Xe=Object(e.a)(Object(e.a)({},nt),{},{key:_e!=null?_e:et,value:et,title:be(Ne)});return"children"in Ne&&(Xe.children=ke(He)),Xe})}return ke(ce)}function re(ce,be,Ae){var ye=Ae.getLabelProp,ke=Ae.simpleMode,Se=s.useRef({});return ce?(Se.current.formatTreeData=Se.current.treeData===ce?Se.current.formatTreeData:V(ke?ve(ce,Object(e.a)({id:"id",pId:"pId",rootPId:null},ke!==!0?ke:{})):ce,ye),Se.current.treeData=ce):Se.current.formatTreeData=Se.current.children===be?Se.current.formatTreeData:V(b(be),ye),Se.current.formatTreeData}var I="SHOW_ALL",q="SHOW_PARENT",fe="SHOW_CHILD";function z(ce,be,Ae){var ye=new Set(ce);return be===fe?ce.filter(function(ke){var Se=Ae[ke];return!(Se&&Se.children&&Se.children.every(function(Ne){var _e=Ne.node;return ne(_e)||ye.has(_e.key)}))}):be===q?ce.filter(function(ke){var Se=Ae[ke],Ne=Se?Se.parent:null;return!(Ne&&!ne(Ne.node)&&ye.has(Ne.node.key))}):ce}function A(ce,be){var Ae=be.value,ye=be.getEntityByValue,ke=be.getEntityByKey,Se=be.treeConduction,Ne=be.showCheckedStrategy,_e=be.conductKeyEntities,$e=be.getLabelProp;return s.useMemo(function(){var He=ce;if(Se){var nt=z(ce.map(function(et){var Xe=ye(et);return Xe?Xe.key:et}),Ne,_e);He=nt.map(function(et){var Xe=ke(et);return Xe?Xe.data.value:et})}return oe(He,Ae,ye,$e)},[ce,Ae,Se,Ne,ye])}var S=["expandedKeys","treeData","treeCheckable","showCheckedStrategy","searchPlaceholder","treeLine","treeIcon","showTreeIcon","switcherIcon","treeNodeFilterProp","filterTreeNode","dropdownPopupAlign","treeDefaultExpandAll","treeCheckStrictly","treeExpandedKeys","treeLoadedKeys","treeMotion","onTreeExpand","onTreeLoad","loadData","treeDataSimpleMode","treeNodeLabelProp","treeDefaultExpandedKeys"],K=Object(l.a)({prefixCls:"rc-tree-select",components:{optionList:o},convertChildrenToData:function(){return null},flattenOptions:P,getLabeledValue:i.e,filterOptions:W,isValueDisabled:G,findValueOption:Q,omitDOMProps:function(be){var Ae=Object(e.a)({},be);return S.forEach(function(ye){delete Ae[ye]}),Ae}});K.displayName="Select";var ee=s.forwardRef(function(ce,be){var Ae=ce.multiple,ye=ce.treeCheckable,ke=ce.treeCheckStrictly,Se=ce.showCheckedStrategy,Ne=Se===void 0?"SHOW_CHILD":Se,_e=ce.labelInValue,$e=ce.loadData,He=ce.treeLoadedKeys,nt=ce.treeNodeFilterProp,et=nt===void 0?"value":nt,Xe=ce.treeNodeLabelProp,st=ce.treeDataSimpleMode,ut=ce.treeData,ct=ce.treeExpandedKeys,Ze=ce.treeDefaultExpandedKeys,bt=ce.treeDefaultExpandAll,lt=ce.children,Et=ce.treeIcon,jt=ce.showTreeIcon,Qt=ce.switcherIcon,Gt=ce.treeLine,rn=ce.treeMotion,ze=ce.filterTreeNode,Ce=ce.dropdownPopupAlign,Oe=ce.onChange,ge=ce.onTreeExpand,te=ce.onTreeLoad,le=ce.onDropdownVisibleChange,we=ce.onSelect,xe=ce.onDeselect,Re=ye||ke,je=Ae||Re,Te=ye&&!ke,Le=ke||_e,Fe=s.useRef(null);s.useImperativeHandle(be,function(){return{focus:Fe.current.focus,blur:Fe.current.blur}});var dt=function(Mt){return ut&&Mt.label||Mt.title},tt=function(Mt){return Xe?Mt[Xe]:dt(Mt)},Ct=re(ut,lt,{getLabelProp:dt,simpleMode:st}),At=Object(s.useMemo)(function(){return P(Ct)},[Ct]),Ht=B(At),en=Object(r.a)(Ht,2),Ge=en[0],gt=en[1],xt=D(Ge,gt),Lt=Object(r.a)(xt,2),Ot=Lt[0],Tt=Lt[1],Bt=Object(s.useMemo)(function(){return Te?Object(d.a)(Ct):{keyEntities:null}},[Ct,ye,ke]),Xt=Bt.keyEntities,an=Object(y.a)(ce.defaultValue,{value:ce.value}),Jt=Object(r.a)(an,2),_t=Jt[0],Ft=Jt[1],$t=function(Mt){var Yt=[],on=[];return Mt.forEach(function(mn){Tt(mn)?on.push(mn):Yt.push(mn)}),{missingRawValues:Yt,existRawValues:on}},Sn=Object(s.useMemo)(function(){var St=[],Mt=[];if(j(_t).forEach(function(ln){if(ln&&Object(a.a)(ln)==="object"&&"value"in ln)if(ln.halfChecked&&ke){var Vn=Tt(ln.value);St.push(Vn?Vn.key:ln.value)}else Mt.push(ln.value);else Mt.push(ln)}),Te){var Yt=$t(Mt),on=Yt.missingRawValues,mn=Yt.existRawValues,qt=mn.map(function(ln){return Tt(ln).key}),On=Object(g.a)(qt,!0,Xt),sr=On.checkedKeys,lr=On.halfCheckedKeys;return[[].concat(Object(u.a)(on),Object(u.a)(sr.map(function(ln){return Ot(ln).data.value}))),lr]}return[Mt,St]},[_t,je,Le,ye,ke]),ir=Object(r.a)(Sn,2),Nn=ir[0],Kn=ir[1],it=A(Nn,{treeConduction:Te,value:_t,showCheckedStrategy:Ne,conductKeyEntities:Xt,getEntityByValue:Tt,getEntityByKey:Ot,getLabelProp:tt}),wt=function(Mt,Yt,on){if(Ft(je?Mt:Mt[0]),Oe){var mn=Mt;if(Te&&Ne!=="SHOW_ALL"){var qt=Mt.map(function(Un){var Hn=Tt(Un);return Hn?Hn.key:Un}),On=z(qt,Ne,Xt);mn=On.map(function(Un){var Hn=Ot(Un);return Hn?Hn.data.value:Un})}var sr=Yt||{triggerValue:void 0,selected:void 0},lr=sr.triggerValue,ln=sr.selected,Vn=Le?oe(mn,_t,Tt,tt):mn;if(ke){var Tr=Kn.map(function(Un){var Hn=Ot(Un);return Hn?Hn.data.value:Un}).filter(function(Un){return!mn.includes(Un)});Vn=[].concat(Object(u.a)(Vn),Object(u.a)(oe(Tr,_t,Tt,tt)))}var jn={preValue:it,triggerValue:lr},Fr=!0;(ke||on==="selection"&&!ln)&&(Fr=!1),M(jn,lr,Mt,Ct,Fr),Re?jn.checked=ln:jn.selected=ln,Oe(je?Vn:Vn[0],Le?null:mn.map(function(Un){var Hn=Tt(Un);return Hn?tt(Hn.data):null}),jn)}},Zt=function(Mt,Yt,on){var mn=Mt;if(!je)wt([Mt],{selected:!0,triggerValue:Mt},on);else{var qt=$(Nn,Mt);if(Te){var On=$t(qt),sr=On.missingRawValues,lr=On.existRawValues,ln=lr.map(function(jn){return Tt(jn).key}),Vn=Object(g.a)(ln,!0,Xt),Tr=Vn.checkedKeys;qt=[].concat(Object(u.a)(sr),Object(u.a)(Tr.map(function(jn){return Ot(jn).data.value})))}wt(qt,{selected:!0,triggerValue:Mt},on)}we&&we(mn,Yt)},Cn=function(Mt,Yt,on){var mn=Mt,qt=X(Nn,Mt);if(Te){var On=$t(qt),sr=On.missingRawValues,lr=On.existRawValues,ln=lr.map(function(jn){return Tt(jn).key}),Vn=Object(g.a)(ln,{checked:!1,halfCheckedKeys:Kn},Xt),Tr=Vn.checkedKeys;qt=[].concat(Object(u.a)(sr),Object(u.a)(Tr.map(function(jn){return Ot(jn).data.value})))}wt(qt,{selected:!1,triggerValue:Mt},on),xe&&xe(mn,Yt)},zt=function(){wt([],null,"clear")},Dt=s.useCallback(function(St){if(le){var Mt={};Object.defineProperty(Mt,"documentClickClose",{get:function(){return Object(T.a)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),le(St,Mt)}},[le]),mt={optionLabelProp:null,optionFilterProp:et,dropdownAlign:Ce,internalProps:{mark:E.a,onClear:zt,skipTriggerChange:!0,skipTriggerSelect:!0,onRawSelect:Zt,onRawDeselect:Cn}};return"filterTreeNode"in ce&&(mt.filterOption=ze),s.createElement(C.Provider,{value:{checkable:Re,loadData:$e,treeLoadedKeys:He,onTreeLoad:te,checkedKeys:Nn,halfCheckedKeys:Kn,treeDefaultExpandAll:bt,treeExpandedKeys:ct,treeDefaultExpandedKeys:Ze,onTreeExpand:ge,treeIcon:Et,treeMotion:rn,showTreeIcon:jt,switcherIcon:Qt,treeLine:Gt,treeNodeFilterProp:et}},s.createElement(K,Object.assign({ref:Fe,mode:je?"multiple":null},ce,mt,{value:it,labelInValue:!0,options:Ct,onChange:null,onSelect:null,onDeselect:null,onDropdownVisibleChange:Dt})))}),de=function(ce){Object(m.a)(Ae,ce);var be=Object(v.a)(Ae);function Ae(){var ye;return Object(O.a)(this,Ae),ye=be.apply(this,arguments),ye.selectRef=s.createRef(),ye.focus=function(){ye.selectRef.current.focus()},ye.blur=function(){ye.selectRef.current.blur()},ye}return Object(f.a)(Ae,[{key:"render",value:function(){return s.createElement(ee,Object.assign({ref:this.selectRef},this.props))}}]),Ae}(s.Component);de.TreeNode=F,de.SHOW_ALL=I,de.SHOW_PARENT=q,de.SHOW_CHILD=fe;var he=de,Me=x.e=he},"8XDt":function(ie,x,t){t("qH13");var O=t("aX58"),f=O.registerPainter,m=t("6fms");f("vml",m)},"A/g1":function(ie,x){ie.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTA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+7FH2jUzTNfUwgMMAkFiFlf5MrstviA4PU61HIuo1KQRCdkGeJCDJoCQkkkzyOFVF4mOxyv9u8x8opnU6UeBF0wAAAABJRU5ErkJggg=="},AZa5:function(ie,x,t){var O=t("Wogr"),f=t("u/Db");function m(v){this.mode=f.BYTE,this.data=O.from(v)}m.getBitsLength=function(u){return u*8},m.prototype.getLength=function(){return this.data.length},m.prototype.getBitsLength=function(){return m.getBitsLength(this.data.length)},m.prototype.write=function(v){for(var u=0,a=this.data.length;u=t;)d|=i&1,i>>=1;return i+d}function v(i,d,g,E){var y=d+1;if(y===g)return 1;if(E(i[y++],i[d])<0){for(;y=0;)y++;return y-d}function u(i,d,g){for(g--;d>>1,y(T,i[p])<0?L=p:N=p+1;var C=E-N;switch(C){case 3:i[N+3]=i[N+2];case 2:i[N+2]=i[N+1];case 1:i[N+1]=i[N];break;default:for(;C>0;)i[N+C]=i[N+C-1],C--}i[N]=T}}function r(i,d,g,E,y,T){var N=0,L=0,p=1;if(T(i,d[g+y])>0){for(L=E-y;p0;)N=p,p=(p<<1)+1,p<=0&&(p=L);p>L&&(p=L),N+=y,p+=y}else{for(L=y+1;pL&&(p=L);var C=N;N=y-p,p=y-C}for(N++;N>>1);T(i,d[g+h])>0?N=h+1:p=h}return p}function e(i,d,g,E,y,T){var N=0,L=0,p=1;if(T(i,d[g+y])<0){for(L=y+1;pL&&(p=L);var C=N;N=y-p,p=y-C}else{for(L=E-y;p=0;)N=p,p=(p<<1)+1,p<=0&&(p=L);p>L&&(p=L),N+=y,p+=y}for(N++;N>>1);T(i,d[g+h])<0?p=h:N=h+1}return p}function s(i,d){var g=O,E=0,y=f,T=0,N,L,p=0;E=i.length,E<2*f&&(y=E>>>1);var C=[];T=E<120?5:E<1542?10:E<119151?19:40,N=[],L=[];function h(o,n){N[p]=o,L[p]=n,p+=1}function D(){for(;p>1;){var o=p-2;if(o>=1&&L[o-1]<=L[o]+L[o+1]||o>=2&&L[o-2]<=L[o]+L[o-1])L[o-1]L[o+1])break;H(o)}}function B(){for(;p>1;){var o=p-2;o>0&&L[o-1]=O||G>=O);if(ne)break;j<0&&(j=0),j+=2}if(g=j,g<1&&(g=1),n===1){for(k=0;k<_;k++)i[M+k]=i[R+k];i[M+_]=C[b]}else{if(n===0)throw new Error;for(k=0;k=0;k--)i[Q+k]=i[j+k];i[M]=C[R];return}for(var G=g;;){var ne=0,J=0,P=!1;do if(d(C[R],i[b])<0){if(i[M--]=i[b--],ne++,J=0,--n===0){P=!0;break}}else if(i[M--]=C[R--],J++,ne=0,--_===1){P=!0;break}while((ne|J)=0;k--)i[Q+k]=i[j+k];if(n===0){P=!0;break}}if(i[M--]=C[R--],--_===1){P=!0;break}if(J=_-r(i[b],C,0,_,_-1,d),J!==0){for(M-=J,R-=J,_-=J,Q=M+1,j=R+1,k=0;k=O||J>=O);if(P)break;G<0&&(G=0),G+=2}if(g=G,g<1&&(g=1),_===1){for(M-=n,b-=n,Q=M+1,j=b+1,k=n-1;k>=0;k--)i[Q+k]=i[j+k];i[M]=C[R]}else{if(_===0)throw new Error;for(j=M-(_-1),k=0;k<_;k++)i[j+k]=C[k]}}this.mergeRuns=D,this.forceMergeRuns=B,this.pushRun=h}function l(i,d,g,E){g||(g=0),E||(E=i.length);var y=E-g;if(y<2)return;var T=0;if(yL&&(p=L),a(i,g,g+p,g+T,d),T=p}N.pushRun(g,T),N.mergeRuns(),y-=T,g+=T}while(y!==0);N.forceMergeRuns()}ie.exports=l},BdwD:function(ie,x,t){"use strict";var O=t("+L6B"),f=t("2/Rp"),m=t("0Owb"),v=t("k1fw"),u=t("q1tI"),a=t.n(u),r=t("FOrL"),e=t.n(r),s=function(i){var d=i.buttonProps,g=d===void 0?{}:d,E=i.styles,y=E===void 0?{}:E,T=i.customText,N=i.ButtonText,L=i.ButtonClick,p=i.Buttonclass,C=i.ButtonTwo;return a.a.createElement("section",{className:"tc animated fadeIn",style:Object(v.a)(Object(v.a)({},{color:"#999",margin:"200px auto"}),y)},a.a.createElement("img",{src:e.a}),a.a.createElement("p",{className:"mt20 font14"},T||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),N&&a.a.createElement(f.a,Object(m.a)({className:p,onClick:L},g),N),C&&C)};x.a=s},BlVb:function(ie,x,t){var O=t("hyiK"),f=1e-8;function m(u,a){return Math.abs(u-a).5?D:h}function l(h,D,B,H,w){var c=h.length;if(w===1)for(var o=0;ow;if(c)h.length=w;else for(var o=H;o=0&&!(G[K]<=S);K--);K=Math.min(K,_-2)}else{for(K=X;K<_&&!(G[K]>S);K++);K=Math.min(K-1,_-2)}X=K,Z=S;var ee=G[K+1]-G[K];if(ee===0)return;if(ae=(S-G[K])/ee,F)if(V=ne[K],ve=ne[K===0?K:K-1],re=ne[K>_-2?_-1:K+1],I=ne[K>_-3?_-1:K+2],b)g(ve,V,re,I,ae,ae*ae,ae*ae*ae,o(A,w),j);else{var de;if(R)de=g(ve,V,re,I,ae,ae*ae,ae*ae*ae,q,1),de=T(q);else{if(M)return s(V,re,ae);de=E(ve,V,re,I,ae,ae*ae,ae*ae*ae)}n(A,w,de)}else if(b)l(ne[K],ne[K+1],ae,o(A,w),j);else{var de;if(R)l(ne[K],ne[K+1],ae,q,1),de=T(q);else{if(M)return s(ne[K],ne[K+1],ae);de=e(ne[K],ne[K+1],ae)}n(A,w,de)}},z=new O({target:h._target,life:Q,loop:h._loop,delay:h._delay,onframe:fe,ondestroy:B});return D&&D!=="spline"&&(z.easing=D),z}var p=function(h,D,B,H){this._tracks={},this._target=h,this._loop=D||!1,this._getter=B||a,this._setter=H||r,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};p.prototype={when:function(h,D){var B=this._tracks;for(var H in D){if(!D.hasOwnProperty(H))continue;if(!B[H]){B[H]=[];var w=this._getter(this._target,H);if(w==null)continue;h!==0&&B[H].push({time:0,value:y(w)})}B[H].push({time:h,value:D[H]})}return this},during:function(h){return this._onframeList.push(h),this},pause:function(){for(var h=0;h1&&l&&l.length>1){var d=m(l)/m(i);!isFinite(d)&&(d=1),e.pinchScale=d;var g=v(l);return e.pinchX=g[0],e.pinchY=g[1],{type:"pinch",target:r[0].target,event:e}}}},a=f;ie.exports=a},DBLp:function(ie,x){function t(){}t.prototype={diff:function(u,a,r){r||(r=function(p,C){return p===C}),this.equals=r;var e=this;u=u.slice(),a=a.slice();var s=a.length,l=u.length,i=1,d=s+l,g=[{newPos:-1,components:[]}],E=this.extractCommon(g[0],a,u,0);if(g[0].newPos+1>=s&&E+1>=l){for(var y=[],T=0;T=s&&B+1>=l)return O(e,C.components,a,u);g[p]=C}i++}for(;i<=d;){var L=N();if(L)return L}},pushComponent:function(u,a,r){var e=u[u.length-1];e&&e.added===a&&e.removed===r?u[u.length-1]={count:e.count+1,added:a,removed:r}:u.push({count:1,added:a,removed:r})},extractCommon:function(u,a,r,e){for(var s=a.length,l=r.length,i=u.newPos,d=i-e,g=0;i+1v||d<-v}var a=function(d){d=d||{},d.position||(this.position=[0,0]),d.rotation==null&&(this.rotation=0),d.scale||(this.scale=[1,1]),this.origin=this.origin||null},r=a.prototype;r.transform=null,r.needLocalTransform=function(){return u(this.rotation)||u(this.position[0])||u(this.position[1])||u(this.scale[0]-1)||u(this.scale[1]-1)};var e=[];r.updateTransform=function(){var d=this.parent,g=d&&d.transform,E=this.needLocalTransform(),y=this.transform;if(!(E||g)){y&&m(y);return}y=y||O.create(),E?this.getLocalTransform(y):m(y),g&&(E?O.mul(y,d.transform,y):O.copy(y,d.transform)),this.transform=y;var T=this.globalScaleRatio;if(T!=null&&T!==1){this.getGlobalScale(e);var N=e[0]<0?-1:1,L=e[1]<0?-1:1,p=((e[0]-N)*T+N)/e[0]||0,C=((e[1]-L)*T+L)/e[1]||0;y[0]*=p,y[1]*=p,y[2]*=C,y[3]*=C}this.invTransform=this.invTransform||O.create(),O.invert(this.invTransform,y)},r.getLocalTransform=function(d){return a.getLocalTransform(this,d)},r.setTransform=function(d){var g=this.transform,E=d.dpr||1;g?d.setTransform(E*g[0],E*g[1],E*g[2],E*g[3],E*g[4],E*g[5]):d.setTransform(E,0,0,E,0,0)},r.restoreTransform=function(d){var g=d.dpr||1;d.setTransform(g,0,0,g,0,0)};var s=[],l=O.create();r.setLocalTransform=function(d){if(!d)return;var g=d[0]*d[0]+d[1]*d[1],E=d[2]*d[2]+d[3]*d[3],y=this.position,T=this.scale;u(g-1)&&(g=Math.sqrt(g)),u(E-1)&&(E=Math.sqrt(E)),d[0]<0&&(g=-g),d[3]<0&&(E=-E),y[0]=d[4],y[1]=d[5],T[0]=g,T[1]=E,this.rotation=Math.atan2(-d[1]/E,d[0]/g)},r.decomposeTransform=function(){if(!this.transform)return;var d=this.parent,g=this.transform;d&&d.transform&&(O.mul(s,d.invTransform,g),g=s);var E=this.origin;E&&(E[0]||E[1])&&(l[4]=E[0],l[5]=E[1],O.mul(s,g,l),s[4]-=E[0],s[5]-=E[1],g=s),this.setLocalTransform(g)},r.getGlobalScale=function(d){var g=this.transform;return d=d||[],g?(d[0]=Math.sqrt(g[0]*g[0]+g[1]*g[1]),d[1]=Math.sqrt(g[2]*g[2]+g[3]*g[3]),g[0]<0&&(d[0]=-d[0]),g[3]<0&&(d[1]=-d[1]),d):(d[0]=1,d[1]=1,d)},r.transformCoordToLocal=function(d,g){var E=[d,g],y=this.invTransform;return y&&f.applyTransform(E,E,y),E},r.transformCoordToGlobal=function(d,g){var E=[d,g],y=this.transform;return y&&f.applyTransform(E,E,y),E},a.getLocalTransform=function(d,g){g=g||[],m(g);var E=d.origin,y=d.scale||[1,1],T=d.rotation||0,N=d.position||[0,0];return E&&(g[4]-=E[0],g[5]-=E[1]),O.scale(g,g,y),T&&O.rotate(g,g,T),E&&(g[4]+=E[0],g[5]+=E[1]),g[4]+=N[0],g[5]+=N[1],g};var i=a;ie.exports=i},Dagg:function(ie,x,t){var O=t("Gev7"),f=t("mFDi"),m=t("bYtY"),v=t("Xnb7");function u(r){O.call(this,r)}u.prototype={constructor:u,type:"image",brush:function(r,e){var s=this.style,l=s.image;s.bind(r,this,e);var i=this._image=v.createOrUpdateImage(l,this._image,this,this.onload);if(!i||!v.isImageReady(i))return;var d=s.x||0,g=s.y||0,E=s.width,y=s.height,T=i.width/i.height;if(E==null&&y!=null?E=y*T:y==null&&E!=null?y=E/T:E==null&&y==null&&(E=i.width,y=i.height),this.setTransform(r),s.sWidth&&s.sHeight){var N=s.sx||0,L=s.sy||0;r.drawImage(i,N,L,s.sWidth,s.sHeight,d,g,E,y)}else if(s.sx&&s.sy){var N=s.sx,L=s.sy,p=E-N,C=y-L;r.drawImage(i,N,L,p,C,d,g,E,y)}else r.drawImage(i,d,g,E,y);s.text!=null&&(this.restoreTransform(r),this.drawRectText(r,this.getBoundingRect()))},getBoundingRect:function(){var r=this.style;return this._rect||(this._rect=new f(r.x||0,r.y||0,r.width||0,r.height||0)),this._rect}},m.inherits(u,O);var a=u;ie.exports=a},E7E6:function(ie,x){ie.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADUCAYAAADZTGx+AAAgAElEQVR4Xu2dC3BU13nHv7MrIQkQQoCEtAIEAmxig4GACxhogpM6NY7jOKZO4nimwcFot23SNNNO02napJN0JjN9TNMm5eG3x4+YSeI3ftUGjCDGQMBgG4wxb+0u4mEeQhJI2tP539WR7i77uPfuvXfvar8zs7Mr7bnn8Z3vt9/5zlMQB5aAQQmsW7fO397eHujp6Rkfi8XGExFeDX2vABHVSSlrhBDDiKhdSnlOCBGWUu4mol1lZWWv3nfffccNZueJaMITpeBCeEICjz/++LCOjo5GIpogpWwUQjT2vU/A/wCClNJvtbBCCCml3CaEeGzChAmPLF269LLVtNx6jgFxS9IeyOehhx6q7OnpmSilnEhE2gsA4L0PhjHZillRUUHl5WUUf6+giopyKi+Pv8rKyrSX3++nnp4e7XXpUgedP3+ezp37lE6ebKPe3l4tCyFEhIj+UwjxaHNz8+ls+ebrewYkX5J3IN9169YNv3DhwsRYLIbXJAWBDoZRmbKFYkPRhw4d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LuESPGnTGXUmHFHvSApGoOzLm0tbU19vb2TpVSThGCphLJKVLSVCFoYrHCAwikpCNC0MdE4qCU9LEQ4qDf7/+4trb2aN/cRGFpeI6lLUpAMslMSulva2ub2NPT0+TzyUAsJup9PgpIKQNSinohtM/1RFRo5/1cFkJEpKSwEDIihAjHYhT2+WQkFhPhkpKSQ7W1tUdwsnmOOjWoHmdALDbn+fPnR3V2dgKW0ULEqmIxUSWlHCmErJJSVAlBVVIS3kcS4X9ULoQolVKWZnpHcaSU3UKI7szv1EUkzuNSKSEI7+eFkOelFOeFEOd8Pnz24fOZioqKcFVV1VmLVS3qx/4fQLyzKIIkCJoAAAAASUVORK5CYII="},E9nw:function(ie,x){ie.exports=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var O=document.activeElement,f=[],m=0;mE)&&(a[l]=E,r.push(l,E),u[l]=s))}if(typeof v!="undefined"&&typeof a[v]=="undefined"){var N=["Could not find a path from ",m," to ",v,"."].join("");throw new Error(N)}return u},extract_shortest_path_from_predecessor_list:function(f,m){for(var v=[],u=m,a;u;)v.push(u),a=f[u],u=f[u];return v.reverse(),v},find_path:function(f,m,v){var u=O.single_source_shortest_paths(f,m,v);return O.extract_shortest_path_from_predecessor_list(u,v)},PriorityQueue:{make:function(f){var m=O.PriorityQueue,v={},u;f=f||{};for(u in m)m.hasOwnProperty(u)&&(v[u]=m[u]);return v.queue=[],v.sorter=f.sorter||m.default_sorter,v},default_sorter:function(f,m){return f.cost-m.cost},push:function(f,m){var v={value:f,cost:m};this.queue.push(v),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};ie.exports=O},FOrL:function(ie,x,t){ie.exports=t.p+"static/nodata.a6b3f948.png"},FPkq:function(ie,x,t){ie.exports=t.p+"static/qrCode.dd0fe9b2.png"},Fofx:function(ie,x){var t=typeof Float32Array=="undefined"?Array:Float32Array;function O(){var l=new t(6);return f(l),l}function f(l){return l[0]=1,l[1]=0,l[2]=0,l[3]=1,l[4]=0,l[5]=0,l}function m(l,i){return l[0]=i[0],l[1]=i[1],l[2]=i[2],l[3]=i[3],l[4]=i[4],l[5]=i[5],l}function v(l,i,d){var g=i[0]*d[0]+i[2]*d[1],E=i[1]*d[0]+i[3]*d[1],y=i[0]*d[2]+i[2]*d[3],T=i[1]*d[2]+i[3]*d[3],N=i[0]*d[4]+i[2]*d[5]+i[4],L=i[1]*d[4]+i[3]*d[5]+i[5];return l[0]=g,l[1]=E,l[2]=y,l[3]=T,l[4]=N,l[5]=L,l}function u(l,i,d){return l[0]=i[0],l[1]=i[1],l[2]=i[2],l[3]=i[3],l[4]=i[4]+d[0],l[5]=i[5]+d[1],l}function a(l,i,d){var g=i[0],E=i[2],y=i[4],T=i[1],N=i[3],L=i[5],p=Math.sin(d),C=Math.cos(d);return l[0]=g*C+T*p,l[1]=-g*p+T*C,l[2]=E*C+N*p,l[3]=-E*p+C*N,l[4]=C*y+p*L,l[5]=C*L-p*y,l}function r(l,i,d){var g=d[0],E=d[1];return l[0]=i[0]*g,l[1]=i[1]*E,l[2]=i[2]*g,l[3]=i[3]*E,l[4]=i[4]*g,l[5]=i[5]*E,l}function e(l,i){var d=i[0],g=i[2],E=i[4],y=i[1],T=i[3],N=i[5],L=d*T-y*g;return L?(L=1/L,l[0]=T*L,l[1]=-y*L,l[2]=-g*L,l[3]=d*L,l[4]=(g*N-T*E)*L,l[5]=(y*E-d*N)*L,l):null}function s(l){var i=O();return m(i,l),i}x.create=O,x.identity=f,x.copy=m,x.mul=v,x.translate=u,x.rotate=a,x.scale=r,x.invert=e,x.clone=s},FxDU:function(ie,x,t){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.createSensor=void 0;var O=t("QO+J"),f=t("j5sG"),m=typeof ResizeObserver!="undefined"?f.createSensor:O.createSensor;x.createSensor=m},GABl:function(ie,x){ie.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAKi0lEQVRoQ71ae3BU1R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XBrxlJRaM2ReW0sSi0QQTfLwZiG1P582rv876Hs+DNehpKZFvEnoWE2U7dbbrrtTrmWjhPfeqybEby0ECLjrARF8ETML9DzxD2+WikbdifqDHND2vb/PpDm5/oXcV3XRey+tsaKH1tTLhyh661H0xCsmyaQCW1dg1HTHwpMWLbmcpneBJH7Wg+QVdCwFKI/z7R/fWdHyDULaiCIL5jdScM3Y6X+m04/aXIPQGJnwJs/OCTm8yEjYSDMLSurQPkI5CrcoK2ja0vobBTpsD3l2nKU/mGe43DFiV5Ksb8SNUCj9lrlhOUl5r8JwG9evjMBhDmdjkJYBp2luLPHHrL+nq8jxv8BV2A7FHmr6w0AAAAASUVORK5CYII="},Gev7:function(ie,x,t){var O=t("bYtY"),f=t("K2GJ"),m=t("1bdT"),v=t("ni6a");function u(r){r=r||{},m.call(this,r);for(var e in r)r.hasOwnProperty(e)&&e!=="style"&&(this[e]=r[e]);this.style=new f(r.style,this),this._rect=null,this.__clipPaths=null}u.prototype={constructor:u,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(r){},afterBrush:function(r){},brush:function(r,e){},getBoundingRect:function(){},contain:function(r,e){return this.rectContain(r,e)},traverse:function(r,e){r.call(e,this)},rectContain:function(r,e){var s=this.transformCoordToLocal(r,e),l=this.getBoundingRect();return l.contain(s[0],s[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(r){return this.animate("style",r)},attrKV:function(r,e){r!=="style"?m.prototype.attrKV.call(this,r,e):this.style.set(e)},setStyle:function(r,e){return this.style.set(r,e),this.dirty(!1),this},useStyle:function(r){return this.style=new f(r,this),this.dirty(!1),this},calculateTextPosition:null},O.inherits(u,m),O.mixin(u,v);var a=u;ie.exports=a},Gytx:function(ie,x){ie.exports=function(O,f,m,v){var u=m?m.call(v,O,f):void 0;if(u!==void 0)return!!u;if(O===f)return!0;if(typeof O!="object"||!O||typeof f!="object"||!f)return!1;var a=Object.keys(O),r=Object.keys(f);if(a.length!==r.length)return!1;for(var e=Object.prototype.hasOwnProperty.bind(f),s=0;s3&&(e=t.call(e,1));for(var l=a.length,i=0;i4&&(e=t.call(e,1,e.length-1));for(var l=e[e.length-1],i=a.length,d=0;d0)throw new Error("Invalid string. Length must be a multiple of 4");var T=E.indexOf("=");T===-1&&(T=y);var N=T===y?0:4-T%4;return[T,N]}function e(E){var y=r(E),T=y[0],N=y[1];return(T+N)*3/4-N}function s(E,y,T){return(y+T)*3/4-T}function l(E){var y,T=r(E),N=T[0],L=T[1],p=new m(s(E,N,L)),C=0,h=L>0?N-4:N,D;for(D=0;D>16&255,p[C++]=y>>8&255,p[C++]=y&255;return L===2&&(y=f[E.charCodeAt(D)]<<2|f[E.charCodeAt(D+1)]>>4,p[C++]=y&255),L===1&&(y=f[E.charCodeAt(D)]<<10|f[E.charCodeAt(D+1)]<<4|f[E.charCodeAt(D+2)]>>2,p[C++]=y>>8&255,p[C++]=y&255),p}function i(E){return O[E>>18&63]+O[E>>12&63]+O[E>>6&63]+O[E&63]}function d(E,y,T){for(var N,L=[],p=y;ph?h:C+p));return N===1?(y=E[T-1],L.push(O[y>>2]+O[y<<4&63]+"==")):N===2&&(y=(E[T-2]<<8)+E[T-1],L.push(O[y>>10]+O[y>>4&63]+O[y<<2&63]+"=")),L.join("")}},HDXh:function(ie,x,t){"use strict";(function(O){/*! +`)}function w(M,j,Q,G){G=u({},G),G.font=j;var Q=a(Q,"...");G.maxIterations=a(G.maxIterations,2);var ne=G.minChar=a(G.minChar,0);G.cnCharWidth=D("\u56FD",j);var J=G.ascCharWidth=D("a",j);G.placeholder=a(G.placeholder,"");for(var P=M=Math.max(0,M-1),Y=0;Y=J;Y++)P-=J;var W=D(Q,j);return W>P&&(Q="",W=0),P=M-W,G.ellipsis=Q,G.ellipsisWidth=W,G.contentWidth=P,G.containerWidth=M,G}function c(M,j){var Q=j.containerWidth,G=j.font,ne=j.contentWidth;if(!Q)return"";var J=D(M,G);if(J<=Q)return M;for(var P=0;;P++){if(J<=ne||P>=j.maxIterations){M+=j.ellipsis;break}var Y=P===0?o(M,ne,j.ascCharWidth,j.cnCharWidth):J>0?Math.floor(M.length*ne/J):0;M=M.substr(0,Y),J=D(M,G)}return M===""&&(M=j.placeholder),M}function o(M,j,Q,G){for(var ne=0,J=0,P=M.length;J$)M="",P=[];else if(X!=null)for(var Z=w(X-(Q?Q[1]+Q[3]:0),j,ne.ellipsis,{minChar:ne.minChar,placeholder:ne.placeholder}),se=0,ae=P.length;seG&&b(Q,M.substring(G,J)),b(Q,ne[2],ne[1]),G=d.lastIndex}Gse)return{lines:[],width:0,height:0};q.textWidth=D(q.text,A);var K=fe.textWidth,ee=K==null||K==="auto";if(typeof K=="string"&&K.charAt(K.length-1)==="%")q.percentWidth=K,oe.push(q),K=0;else{if(ee){K=q.textWidth;var de=fe.textBackgroundColor,he=de&&de.image;he&&(he=f.findExistImage(he),f.isImageReady(he)&&(K=Math.max(K,he.width*S/he.height)))}var Me=z?z[1]+z[3]:0;K+=Me;var ce=Z!=null?Z-re:null;ce!=null&&ce=0&&o.splice(n,1),w.__hoverMir=null},clearHover:function(w){for(var c=this._hoverElements,o=0;o15)break}}_.__drawIndex=P,_.__drawIndex<_.__endIndex&&(k=!1),M.prevElClipPaths&&R.restore(),R.restore()}return l.wxa&&m.each(this._layers,function(oe){oe&&oe.ctx&&oe.ctx.draw&&oe.ctx.draw()}),k},_doPaintEl:function(w,c,o,n){var F=c.ctx,_=w.transform;if((c.__dirty||o)&&!w.invisible&&w.style.opacity!==0&&!(_&&!_[0]&&!_[3])&&!(w.culling&&p(w,this._width,this._height))){var k=w.__clipPaths,b=n.prevElClipPaths;(!b||C(k,b))&&(b&&(F.restore(),n.prevElClipPaths=null,n.prevEl=null),k&&(F.save(),h(k,F),n.prevElClipPaths=k)),w.beforeBrush&&w.beforeBrush(F),w.brush(F,n.prevEl||null),n.prevEl=w,w.afterBrush&&w.afterBrush(F)}},getLayer:function(w,c){this._singleCanvas&&!this._needsManuallyCompositing&&(w=d);var o=this._layers[w];return o||(o=new r("zr_"+w,this,this.dpr),o.zlevel=w,o.__builtin__=!0,this._layerConfig[w]?m.merge(o,this._layerConfig[w],!0):this._layerConfig[w-g]&&m.merge(o,this._layerConfig[w-g],!0),c&&(o.virtual=c),this.insertLayer(w,o),o.initContext()),o},insertLayer:function(w,c){var o=this._layers,n=this._zlevelList,F=n.length,_=null,k=-1,b=this._domRoot;if(o[w]){v("ZLevel "+w+" has been used already");return}if(!D(c)){v("Layer of zlevel "+w+" is not valid");return}if(F>0&&w>n[0]){for(k=0;kw);k++);_=o[n[k]]}if(n.splice(k+1,0,w),o[w]=c,!c.virtual)if(_){var R=_.dom;R.nextSibling?b.insertBefore(c.dom,R.nextSibling):b.appendChild(c.dom)}else b.firstChild?b.insertBefore(c.dom,b.firstChild):b.appendChild(c.dom)},eachLayer:function(w,c){var o=this._zlevelList,n,F;for(F=0;F0?g:0),this._needsManuallyCompositing),R.__builtin__||v("ZLevel "+b+" has been used by unkown layer "+R.id),R!==F&&(R.__used=!0,R.__startIndex!==o&&(R.__dirty=!0),R.__startIndex=o,R.incremental?R.__drawIndex=-1:R.__drawIndex=o,c(o),F=R),n.__dirty&&(R.__dirty=!0,R.incremental&&R.__drawIndex<0&&(R.__drawIndex=o))}c(o),this.eachBuiltinLayer(function(M,j){!M.__used&&M.getElementCount()>0&&(M.__dirty=!0,M.__startIndex=M.__endIndex=M.__drawIndex=0),M.__dirty&&M.__drawIndex<0&&(M.__drawIndex=M.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(w){w.clear()},setBackgroundColor:function(w){this._backgroundColor=w},configLayer:function(w,c){if(c){var o=this._layerConfig;o[w]?m.merge(o[w],c,!0):o[w]=c;for(var n=0;n0&&arguments[0]!==void 0?arguments[0]:[],D=new Map;function N(L){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(L||[]).forEach(function(C){var h=C.key,T=C.children;Object(u.a)(h!=null,"Tree node must have a certain key: [".concat(p).concat(h,"]"));var B=String(h);Object(u.a)(!D.has(B)||h===null||h===void 0,"Same 'key' exist in the Tree: ".concat(B)),D.set(B,!0),N(T,"".concat(p).concat(B," > "))})}N(y)}function s(y){function D(N){var L=Object(v.a)(N);return L.map(function(p){if(!Object(a.i)(p))return Object(u.a)(!p,"Tree/TreeNode can only accept TreeNode as children."),null;var C=p.key,h=p.props,T=h.children,B=Object(m.a)(h,["children"]),H=Object(f.a)({key:C},B),w=D(T);return w.length&&(H.children=w),H}).filter(function(p){return p})}return D(y)}function l(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],N=new Set(D===!0?[]:D),L=[];function p(C){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return C.map(function(T,B){var H=Object(a.h)(h?h.pos:"0",B),w=r(T.key,H),c=Object(f.a)(Object(f.a)({},T),{},{parent:h,pos:H,children:null,data:T,isStart:[].concat(Object(O.a)(h?h.isStart:[]),[B===0]),isEnd:[].concat(Object(O.a)(h?h.isEnd:[]),[B===C.length-1])});return L.push(c),D===!0||N.has(w)?c.children=p(T.children||[],c):c.children=[],c})}return p(y),L}function i(y,D,N){var L;N?typeof N=="string"?L=function(h){return h[N]}:typeof N=="function"&&(L=function(h){return N(h)}):L=function(h,T){return r(h.key,T)};function p(C,h,T){var B=C?C.children:y,H=C?Object(a.h)(T.pos,h):"0";if(C){var w=L(C,H),c={node:C,index:h,pos:H,key:w,parentPos:T.node?T.pos:null,level:T.level+1};D(c)}B&&B.forEach(function(o,n){p(o,n,{node:C,pos:H,level:T?T.level+1:-1})})}p(null)}function d(y){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},N=D.initWrapper,L=D.processEntity,p=D.onProcessFinished,C=arguments.length>2?arguments[2]:void 0,h={},T={},B={posEntities:h,keyEntities:T};return N&&(B=N(B)||B),i(y,function(H){var w=H.node,c=H.index,o=H.pos,n=H.key,F=H.parentPos,_=H.level,k={node:w,index:c,key:n,pos:o,level:_},b=r(n,o);h[o]=k,T[b]=k,k.parent=h[F],k.parent&&(k.parent.children=k.parent.children||[],k.parent.children.push(k)),L&&L(k,B)},C),p&&p(B),B}function g(y,D){var N=D.expandedKeys,L=D.selectedKeys,p=D.loadedKeys,C=D.loadingKeys,h=D.checkedKeys,T=D.halfCheckedKeys,B=D.dragOverNodeKey,H=D.dropPosition,w=D.keyEntities,c=w[y],o={eventKey:y,expanded:N.indexOf(y)!==-1,selected:L.indexOf(y)!==-1,loaded:p.indexOf(y)!==-1,loading:C.indexOf(y)!==-1,checked:h.indexOf(y)!==-1,halfChecked:T.indexOf(y)!==-1,pos:String(c?c.pos:""),dragOver:B===y&&H===0,dragOverGapTop:B===y&&H===-1,dragOverGapBottom:B===y&&H===1};return o}function E(y){var D=y.data,N=y.expanded,L=y.selected,p=y.checked,C=y.loaded,h=y.loading,T=y.halfChecked,B=y.dragOver,H=y.dragOverGapTop,w=y.dragOverGapBottom,c=y.pos,o=y.active,n=Object(f.a)(Object(f.a)({},D),{},{expanded:N,selected:L,checked:p,loaded:C,loading:h,halfChecked:T,dragOver:B,dragOverGapTop:H,dragOverGapBottom:w,pos:c,active:o});return"props"in n||Object.defineProperty(n,"props",{get:function(){return Object(u.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),y}}),n}},"8Jsi":function(ie,x,t){"use strict";t.d(x,"d",function(){return F}),t.d(x,"a",function(){return I}),t.d(x,"b",function(){return fe}),t.d(x,"c",function(){return q});var O=t("1OyB"),f=t("vuIU"),m=t("Ji7U"),v=t("LK+K"),u=t("KQm4"),a=t("U8pU"),r=t("ODXe"),e=t("VTBJ"),s=t("q1tI"),l=t("qNPg"),i=t("2Qr1"),d=t("815F"),g=t("NvD2"),E=t("wPlo"),y=t("6cGi"),D=t("Kwbf"),N=t("4IlW"),L=t("YrtM"),p=t("fAei"),C=s.createContext(null);function h(ce,be){if(!ce)return!0;var Ae=ce.data,ye=Ae.disabled,ke=Ae.disableCheckbox;switch(be){case"select":return ye;case"checkbox":return ye||ke}return!1}function T(ce,be){var Ae=s.useCallback(function(ke){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",Ne=arguments.length>2?arguments[2]:void 0,_e=ce.get(ke);return!Ne&&h(_e,Se)?null:_e},[ce]),ye=s.useCallback(function(ke){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",Ne=arguments.length>2?arguments[2]:void 0,_e=be.get(ke);return!Ne&&h(_e,Se)?null:_e},[be]);return[Ae,ye]}function B(ce){return s.useMemo(function(){var be=new Map,Ae=new Map;return ce.forEach(function(ye){be.set(ye.key,ye),Ae.set(ye.data.value,ye)}),[be,Ae]},[ce])}var H={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},w=function(be,Ae){var ye=be.prefixCls,ke=be.height,Se=be.itemHeight,Ne=be.virtual,_e=be.options,$e=be.flattenOptions,He=be.multiple,nt=be.searchValue,et=be.onSelect,Xe=be.onToggleOpen,st=be.open,ut=be.notFoundContent,ct=be.onMouseEnter,Ze=s.useContext(C),bt=Ze.checkable,lt=Ze.checkedKeys,Et=Ze.halfCheckedKeys,jt=Ze.treeExpandedKeys,Qt=Ze.treeDefaultExpandAll,Gt=Ze.treeDefaultExpandedKeys,rn=Ze.onTreeExpand,ze=Ze.treeIcon,Ce=Ze.showTreeIcon,Oe=Ze.switcherIcon,ge=Ze.treeLine,te=Ze.treeNodeFilterProp,le=Ze.loadData,we=Ze.treeLoadedKeys,xe=Ze.treeMotion,Re=Ze.onTreeLoad,je=s.useRef(),De=Object(L.a)(function(){return _e},[st,_e],function(Tt,mt){return mt[0]&&Tt[1]!==mt[1]}),Le=B($e),Fe=Object(r.a)(Le,2),dt=Fe[0],tt=Fe[1],Ct=T(dt,tt),At=Object(r.a)(Ct,2),Ht=At[0],en=At[1],Ge=s.useMemo(function(){return lt.map(function(Tt){var mt=en(Tt);return mt?mt.key:null})},[lt]),gt=s.useMemo(function(){return bt?{checked:Ge,halfChecked:Et}:null},[Ge,Et,bt]);s.useEffect(function(){if(st&&!He&&Ge.length){var Tt;(Tt=je.current)===null||Tt===void 0||Tt.scrollTo({key:Ge[0]})}},[st]);var xt=String(nt).toLowerCase(),Lt=function(mt){return xt?String(mt[te]).toLowerCase().includes(xt):!1},Ot=s.useState(Gt),Dt=Object(r.a)(Ot,2),Bt=Dt[0],Xt=Dt[1],an=s.useState(null),Jt=Object(r.a)(an,2),_t=Jt[0],Ft=Jt[1],$t=s.useMemo(function(){return jt?Object(u.a)(jt):nt?_t:Bt},[Bt,_t,xt,jt]);s.useEffect(function(){nt&&Ft($e.map(function(Tt){return Tt.key}))},[nt]);var Sn=function(mt){Xt(mt),Ft(mt),rn&&rn(mt)},ir=function(mt){mt.preventDefault()},Nn=function(mt,St){var Mt=St.node.key,Yt=Ht(Mt,bt?"checkbox":"select");Yt!==null&&et(Yt.data.value,{selected:!lt.includes(Yt.data.value)}),He||Xe(!1)},Kn=s.useState(null),it=Object(r.a)(Kn,2),wt=it[0],Zt=it[1],Cn=Ht(wt);if(s.useImperativeHandle(Ae,function(){return{onKeyDown:function(mt){var St,Mt=mt.which;switch(Mt){case N.a.UP:case N.a.DOWN:case N.a.LEFT:case N.a.RIGHT:(St=je.current)===null||St===void 0||St.onKeyDown(mt);break;case N.a.ENTER:{Cn!==null&&Nn(null,{node:{key:wt},selected:!lt.includes(Cn.data.value)});break}case N.a.ESC:Xe(!1)}},onKeyUp:function(){}}}),De.length===0)return s.createElement("div",{role:"listbox",className:"".concat(ye,"-empty"),onMouseDown:ir},ut);var zt={};return we&&(zt.loadedKeys=we),$t&&(zt.expandedKeys=$t),s.createElement("div",{onMouseDown:ir,onMouseEnter:ct},Cn&&st&&s.createElement("span",{style:H,"aria-live":"assertive"},Cn.data.value),s.createElement(p.b,Object.assign({ref:je,focusable:!1,prefixCls:"".concat(ye,"-tree"),treeData:De,height:ke,itemHeight:Se,virtual:Ne,multiple:He,icon:ze,showIcon:Ce,switcherIcon:Oe,showLine:ge,loadData:nt?null:le,motion:xe,checkable:bt,checkStrictly:!0,checkedKeys:gt,selectedKeys:bt?[]:Ge,defaultExpandAll:Qt},zt,{onActiveChange:Zt,onSelect:Nn,onCheck:Nn,onExpand:Sn,onLoad:Re,filterTreeNode:Lt})))},c=s.forwardRef(w);c.displayName="OptionList";var o=c,n=function(){return null},F=n,_=t("Ff2n"),k=t("Zm9Q");function b(ce){return Object(k.a)(ce).map(function(be){if(!s.isValidElement(be)||!be.type)return null;var Ae=be.key,ye=be.props,ke=ye.children,Se=ye.value,Ne=Object(_.a)(ye,["children","value"]),_e=Object(e.a)({key:Ae,value:Se},Ne),$e=b(ke);return $e.length&&(_e.children=$e),_e}).filter(function(be){return be})}function R(ce){if(!ce)return ce;var be=Object(e.a)({},ce);return"props"in be||Object.defineProperty(be,"props",{get:function(){return Object(D.a)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),be}}),be}function M(ce,be,Ae,ye,ke){var Se=null,Ne=null;function _e(){function $e(He){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return He.map(function(Xe,st){var ut="".concat(nt,"-").concat(st),ct=Ae.includes(Xe.value),Ze=$e(Xe.children||[],ut,ct),bt=s.createElement(F,Object.assign({},Xe),Ze.map(function(Et){return Et.node}));if(be===Xe.value&&(Se=bt),ct){var lt={pos:ut,node:bt,children:Ze};return et||Ne.push(lt),lt}return null}).filter(function(Xe){return Xe})}Ne||(Ne=[],$e(ye),Ne.sort(function(He,nt){var et=He.node.props.value,Xe=nt.node.props.value,st=Ae.indexOf(et),ut=Ae.indexOf(Xe);return st-ut}))}Object.defineProperty(ce,"triggerNode",{get:function(){return Object(D.a)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),_e(),Se}}),Object.defineProperty(ce,"allCheckedNodes",{get:function(){return Object(D.a)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),_e(),ke?Ne:Ne.map(function(He){var nt=He.node;return nt})}})}function j(ce){return Array.isArray(ce)?ce:ce!==void 0?[ce]:[]}function Q(ce,be){var Ae=new Map;return be.forEach(function(ye){var ke=ye.data;Ae.set(ke.value,ke)}),ce.map(function(ye){return R(Ae.get(ye))})}function G(ce,be){var Ae=Q([ce],be)[0];return Ae?Ae.disabled:!1}function ne(ce){return ce.disabled||ce.disableCheckbox||ce.checkable===!1}function J(ce){for(var be=ce.parent,Ae=0,ye=be;ye;)ye=ye.parent,Ae+=1;return Ae}function P(ce){function be(ye){return(ye||[]).map(function(ke){var Se=ke.value,Ne=ke.key,_e=ke.children,$e=Object(e.a)(Object(e.a)({},ke),{},{key:"key"in ke?Ne:Se});return _e&&($e.children=be(_e)),$e})}var Ae=Object(d.d)(be(ce),!0);return Ae.map(function(ye){return{key:ye.data.key,data:ye.data,level:J(ye)}})}function Y(ce){return function(be,Ae){var ye=Ae[ce];return String(ye).toLowerCase().includes(String(be).toLowerCase())}}function W(ce,be,Ae){var ye=Ae.optionFilterProp,ke=Ae.filterOption;if(ke===!1)return be;var Se;typeof ke=="function"?Se=ke:Se=Y(ye);function Ne(_e){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return _e.map(function(He){var nt=He.children,et=$e||Se(ce,R(He)),Xe=Ne(nt||[],et);return et||Xe.length?Object(e.a)(Object(e.a)({},He),{},{children:Xe}):null}).filter(function(He){return He})}return Ne(be)}function oe(ce,be,Ae,ye){var ke=new Map;return j(be).forEach(function(Se){Se&&Object(a.a)(Se)==="object"&&"value"in Se&&ke.set(Se.value,Se)}),ce.map(function(Se){var Ne={value:Se},_e=Ae(Se,"select",!0),$e=_e?ye(_e.data):Se;if(ke.has(Se)){var He=ke.get(Se);Ne.label="label"in He?He.label:$e,"halfChecked"in He&&(Ne.halfChecked=He.halfChecked)}else Ne.label=$e;return Ne})}function $(ce,be){var Ae=new Set(ce);return Ae.add(be),Array.from(Ae)}function X(ce,be){var Ae=new Set(ce);return Ae.delete(be),Array.from(Ae)}function Z(ce){var be=ce.searchPlaceholder,Ae=ce.treeCheckStrictly,ye=ce.treeCheckable,ke=ce.labelInValue,Se=ce.value,Ne=ce.multiple;Object(D.a)(!be,"`searchPlaceholder` has been removed."),Ae&&ke===!1&&Object(D.a)(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(ke||Ae)&&Object(D.a)(j(Se).every(function(_e){return _e&&Object(a.a)(_e)==="object"&&"value"in _e}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),Ae||Ne||ye?Object(D.a)(!Se||Array.isArray(Se),"`value` should be an array when `TreeSelect` is checkable or multiple."):Object(D.a)(!Array.isArray(Se),"`value` should not be array when `TreeSelect` is single mode.")}var se=Z,ae=10;function ve(ce,be){var Ae=be.id,ye=be.pId,ke=be.rootPId,Se={},Ne=[],_e=ce.map(function($e){var He=Object(e.a)({},$e),nt=He[Ae];return Se[nt]=He,He.key=He.key||nt,He});return _e.forEach(function($e){var He=$e[ye],nt=Se[He];nt&&(nt.children=nt.children||[],nt.children.push($e)),(He===ke||!nt&&ke===null)&&Ne.push($e)}),Ne}function V(ce,be){var Ae=0,ye=new Set;function ke(Se){return(Se||[]).map(function(Ne){var _e=Ne.key,$e=Ne.value,He=Ne.children,nt=Object(_.a)(Ne,["key","value","children"]),et="value"in Ne?$e:_e,Xe=Object(e.a)(Object(e.a)({},nt),{},{key:_e!=null?_e:et,value:et,title:be(Ne)});return"children"in Ne&&(Xe.children=ke(He)),Xe})}return ke(ce)}function re(ce,be,Ae){var ye=Ae.getLabelProp,ke=Ae.simpleMode,Se=s.useRef({});return ce?(Se.current.formatTreeData=Se.current.treeData===ce?Se.current.formatTreeData:V(ke?ve(ce,Object(e.a)({id:"id",pId:"pId",rootPId:null},ke!==!0?ke:{})):ce,ye),Se.current.treeData=ce):Se.current.formatTreeData=Se.current.children===be?Se.current.formatTreeData:V(b(be),ye),Se.current.formatTreeData}var I="SHOW_ALL",q="SHOW_PARENT",fe="SHOW_CHILD";function z(ce,be,Ae){var ye=new Set(ce);return be===fe?ce.filter(function(ke){var Se=Ae[ke];return!(Se&&Se.children&&Se.children.every(function(Ne){var _e=Ne.node;return ne(_e)||ye.has(_e.key)}))}):be===q?ce.filter(function(ke){var Se=Ae[ke],Ne=Se?Se.parent:null;return!(Ne&&!ne(Ne.node)&&ye.has(Ne.node.key))}):ce}function A(ce,be){var Ae=be.value,ye=be.getEntityByValue,ke=be.getEntityByKey,Se=be.treeConduction,Ne=be.showCheckedStrategy,_e=be.conductKeyEntities,$e=be.getLabelProp;return s.useMemo(function(){var He=ce;if(Se){var nt=z(ce.map(function(et){var Xe=ye(et);return Xe?Xe.key:et}),Ne,_e);He=nt.map(function(et){var Xe=ke(et);return Xe?Xe.data.value:et})}return oe(He,Ae,ye,$e)},[ce,Ae,Se,Ne,ye])}var S=["expandedKeys","treeData","treeCheckable","showCheckedStrategy","searchPlaceholder","treeLine","treeIcon","showTreeIcon","switcherIcon","treeNodeFilterProp","filterTreeNode","dropdownPopupAlign","treeDefaultExpandAll","treeCheckStrictly","treeExpandedKeys","treeLoadedKeys","treeMotion","onTreeExpand","onTreeLoad","loadData","treeDataSimpleMode","treeNodeLabelProp","treeDefaultExpandedKeys"],K=Object(l.a)({prefixCls:"rc-tree-select",components:{optionList:o},convertChildrenToData:function(){return null},flattenOptions:P,getLabeledValue:i.e,filterOptions:W,isValueDisabled:G,findValueOption:Q,omitDOMProps:function(be){var Ae=Object(e.a)({},be);return S.forEach(function(ye){delete Ae[ye]}),Ae}});K.displayName="Select";var ee=s.forwardRef(function(ce,be){var Ae=ce.multiple,ye=ce.treeCheckable,ke=ce.treeCheckStrictly,Se=ce.showCheckedStrategy,Ne=Se===void 0?"SHOW_CHILD":Se,_e=ce.labelInValue,$e=ce.loadData,He=ce.treeLoadedKeys,nt=ce.treeNodeFilterProp,et=nt===void 0?"value":nt,Xe=ce.treeNodeLabelProp,st=ce.treeDataSimpleMode,ut=ce.treeData,ct=ce.treeExpandedKeys,Ze=ce.treeDefaultExpandedKeys,bt=ce.treeDefaultExpandAll,lt=ce.children,Et=ce.treeIcon,jt=ce.showTreeIcon,Qt=ce.switcherIcon,Gt=ce.treeLine,rn=ce.treeMotion,ze=ce.filterTreeNode,Ce=ce.dropdownPopupAlign,Oe=ce.onChange,ge=ce.onTreeExpand,te=ce.onTreeLoad,le=ce.onDropdownVisibleChange,we=ce.onSelect,xe=ce.onDeselect,Re=ye||ke,je=Ae||Re,De=ye&&!ke,Le=ke||_e,Fe=s.useRef(null);s.useImperativeHandle(be,function(){return{focus:Fe.current.focus,blur:Fe.current.blur}});var dt=function(Mt){return ut&&Mt.label||Mt.title},tt=function(Mt){return Xe?Mt[Xe]:dt(Mt)},Ct=re(ut,lt,{getLabelProp:dt,simpleMode:st}),At=Object(s.useMemo)(function(){return P(Ct)},[Ct]),Ht=B(At),en=Object(r.a)(Ht,2),Ge=en[0],gt=en[1],xt=T(Ge,gt),Lt=Object(r.a)(xt,2),Ot=Lt[0],Dt=Lt[1],Bt=Object(s.useMemo)(function(){return De?Object(d.a)(Ct):{keyEntities:null}},[Ct,ye,ke]),Xt=Bt.keyEntities,an=Object(y.a)(ce.defaultValue,{value:ce.value}),Jt=Object(r.a)(an,2),_t=Jt[0],Ft=Jt[1],$t=function(Mt){var Yt=[],on=[];return Mt.forEach(function(mn){Dt(mn)?on.push(mn):Yt.push(mn)}),{missingRawValues:Yt,existRawValues:on}},Sn=Object(s.useMemo)(function(){var St=[],Mt=[];if(j(_t).forEach(function(ln){if(ln&&Object(a.a)(ln)==="object"&&"value"in ln)if(ln.halfChecked&&ke){var Vn=Dt(ln.value);St.push(Vn?Vn.key:ln.value)}else Mt.push(ln.value);else Mt.push(ln)}),De){var Yt=$t(Mt),on=Yt.missingRawValues,mn=Yt.existRawValues,qt=mn.map(function(ln){return Dt(ln).key}),On=Object(g.a)(qt,!0,Xt),sr=On.checkedKeys,lr=On.halfCheckedKeys;return[[].concat(Object(u.a)(on),Object(u.a)(sr.map(function(ln){return Ot(ln).data.value}))),lr]}return[Mt,St]},[_t,je,Le,ye,ke]),ir=Object(r.a)(Sn,2),Nn=ir[0],Kn=ir[1],it=A(Nn,{treeConduction:De,value:_t,showCheckedStrategy:Ne,conductKeyEntities:Xt,getEntityByValue:Dt,getEntityByKey:Ot,getLabelProp:tt}),wt=function(Mt,Yt,on){if(Ft(je?Mt:Mt[0]),Oe){var mn=Mt;if(De&&Ne!=="SHOW_ALL"){var qt=Mt.map(function(Un){var Hn=Dt(Un);return Hn?Hn.key:Un}),On=z(qt,Ne,Xt);mn=On.map(function(Un){var Hn=Ot(Un);return Hn?Hn.data.value:Un})}var sr=Yt||{triggerValue:void 0,selected:void 0},lr=sr.triggerValue,ln=sr.selected,Vn=Le?oe(mn,_t,Dt,tt):mn;if(ke){var Dr=Kn.map(function(Un){var Hn=Ot(Un);return Hn?Hn.data.value:Un}).filter(function(Un){return!mn.includes(Un)});Vn=[].concat(Object(u.a)(Vn),Object(u.a)(oe(Dr,_t,Dt,tt)))}var jn={preValue:it,triggerValue:lr},Fr=!0;(ke||on==="selection"&&!ln)&&(Fr=!1),M(jn,lr,Mt,Ct,Fr),Re?jn.checked=ln:jn.selected=ln,Oe(je?Vn:Vn[0],Le?null:mn.map(function(Un){var Hn=Dt(Un);return Hn?tt(Hn.data):null}),jn)}},Zt=function(Mt,Yt,on){var mn=Mt;if(!je)wt([Mt],{selected:!0,triggerValue:Mt},on);else{var qt=$(Nn,Mt);if(De){var On=$t(qt),sr=On.missingRawValues,lr=On.existRawValues,ln=lr.map(function(jn){return Dt(jn).key}),Vn=Object(g.a)(ln,!0,Xt),Dr=Vn.checkedKeys;qt=[].concat(Object(u.a)(sr),Object(u.a)(Dr.map(function(jn){return Ot(jn).data.value})))}wt(qt,{selected:!0,triggerValue:Mt},on)}we&&we(mn,Yt)},Cn=function(Mt,Yt,on){var mn=Mt,qt=X(Nn,Mt);if(De){var On=$t(qt),sr=On.missingRawValues,lr=On.existRawValues,ln=lr.map(function(jn){return Dt(jn).key}),Vn=Object(g.a)(ln,{checked:!1,halfCheckedKeys:Kn},Xt),Dr=Vn.checkedKeys;qt=[].concat(Object(u.a)(sr),Object(u.a)(Dr.map(function(jn){return Ot(jn).data.value})))}wt(qt,{selected:!1,triggerValue:Mt},on),xe&&xe(mn,Yt)},zt=function(){wt([],null,"clear")},Tt=s.useCallback(function(St){if(le){var Mt={};Object.defineProperty(Mt,"documentClickClose",{get:function(){return Object(D.a)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),le(St,Mt)}},[le]),mt={optionLabelProp:null,optionFilterProp:et,dropdownAlign:Ce,internalProps:{mark:E.a,onClear:zt,skipTriggerChange:!0,skipTriggerSelect:!0,onRawSelect:Zt,onRawDeselect:Cn}};return"filterTreeNode"in ce&&(mt.filterOption=ze),s.createElement(C.Provider,{value:{checkable:Re,loadData:$e,treeLoadedKeys:He,onTreeLoad:te,checkedKeys:Nn,halfCheckedKeys:Kn,treeDefaultExpandAll:bt,treeExpandedKeys:ct,treeDefaultExpandedKeys:Ze,onTreeExpand:ge,treeIcon:Et,treeMotion:rn,showTreeIcon:jt,switcherIcon:Qt,treeLine:Gt,treeNodeFilterProp:et}},s.createElement(K,Object.assign({ref:Fe,mode:je?"multiple":null},ce,mt,{value:it,labelInValue:!0,options:Ct,onChange:null,onSelect:null,onDeselect:null,onDropdownVisibleChange:Tt})))}),de=function(ce){Object(m.a)(Ae,ce);var be=Object(v.a)(Ae);function Ae(){var ye;return Object(O.a)(this,Ae),ye=be.apply(this,arguments),ye.selectRef=s.createRef(),ye.focus=function(){ye.selectRef.current.focus()},ye.blur=function(){ye.selectRef.current.blur()},ye}return Object(f.a)(Ae,[{key:"render",value:function(){return s.createElement(ee,Object.assign({ref:this.selectRef},this.props))}}]),Ae}(s.Component);de.TreeNode=F,de.SHOW_ALL=I,de.SHOW_PARENT=q,de.SHOW_CHILD=fe;var he=de,Me=x.e=he},"8XDt":function(ie,x,t){t("qH13");var O=t("aX58"),f=O.registerPainter,m=t("6fms");f("vml",m)},"A/g1":function(ie,x){ie.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF92lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDMgNzkuMTY0NTI3LCAyMDIwLzEwLzE1LTE3OjQ4OjMyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgeG1wOkNyZWF0ZURhdGU9IjIwMjEtMDctMDJ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JyCQmxI/GZ7x+warfdUKy/rj47UZXdnlHZXHprJWBcFKZsGX1k16t2spI7oqbr3iOTkdzGyz7z8tK5s4eAN4UiHxx5dO94Ka2jLd2Gq95TI/e9tXoqbBytZLJzwAUGdY+273nc6Y294z3p1sRW2ZhSt02Gsg+eDxknyl07FYWRY8I+aZptYx27B0Bw/Bp3faHRcs13EsCWiWpjZ8DEU+Ecxe7IKjVl5GMy8zAJMQSIwbH27rL+7FH2jUzTNfUwgMMAkFiFlf5MrstviA4PU61HIuo1KQRCdkGeJCDJoCQkkkzyOFVF4mOxyv9u8x8opnU6UeBF0wAAAABJRU5ErkJggg=="},AZa5:function(ie,x,t){var O=t("Wogr"),f=t("u/Db");function m(v){this.mode=f.BYTE,this.data=O.from(v)}m.getBitsLength=function(u){return u*8},m.prototype.getLength=function(){return this.data.length},m.prototype.getBitsLength=function(){return m.getBitsLength(this.data.length)},m.prototype.write=function(v){for(var u=0,a=this.data.length;u=t;)d|=i&1,i>>=1;return i+d}function v(i,d,g,E){var y=d+1;if(y===g)return 1;if(E(i[y++],i[d])<0){for(;y=0;)y++;return y-d}function u(i,d,g){for(g--;d>>1,y(D,i[p])<0?L=p:N=p+1;var C=E-N;switch(C){case 3:i[N+3]=i[N+2];case 2:i[N+2]=i[N+1];case 1:i[N+1]=i[N];break;default:for(;C>0;)i[N+C]=i[N+C-1],C--}i[N]=D}}function r(i,d,g,E,y,D){var N=0,L=0,p=1;if(D(i,d[g+y])>0){for(L=E-y;p0;)N=p,p=(p<<1)+1,p<=0&&(p=L);p>L&&(p=L),N+=y,p+=y}else{for(L=y+1;pL&&(p=L);var C=N;N=y-p,p=y-C}for(N++;N>>1);D(i,d[g+h])>0?N=h+1:p=h}return p}function e(i,d,g,E,y,D){var N=0,L=0,p=1;if(D(i,d[g+y])<0){for(L=y+1;pL&&(p=L);var C=N;N=y-p,p=y-C}else{for(L=E-y;p=0;)N=p,p=(p<<1)+1,p<=0&&(p=L);p>L&&(p=L),N+=y,p+=y}for(N++;N>>1);D(i,d[g+h])<0?p=h:N=h+1}return p}function s(i,d){var g=O,E=0,y=f,D=0,N,L,p=0;E=i.length,E<2*f&&(y=E>>>1);var C=[];D=E<120?5:E<1542?10:E<119151?19:40,N=[],L=[];function h(o,n){N[p]=o,L[p]=n,p+=1}function T(){for(;p>1;){var o=p-2;if(o>=1&&L[o-1]<=L[o]+L[o+1]||o>=2&&L[o-2]<=L[o]+L[o-1])L[o-1]L[o+1])break;H(o)}}function B(){for(;p>1;){var o=p-2;o>0&&L[o-1]=O||G>=O);if(ne)break;j<0&&(j=0),j+=2}if(g=j,g<1&&(g=1),n===1){for(k=0;k<_;k++)i[M+k]=i[R+k];i[M+_]=C[b]}else{if(n===0)throw new Error;for(k=0;k=0;k--)i[Q+k]=i[j+k];i[M]=C[R];return}for(var G=g;;){var ne=0,J=0,P=!1;do if(d(C[R],i[b])<0){if(i[M--]=i[b--],ne++,J=0,--n===0){P=!0;break}}else if(i[M--]=C[R--],J++,ne=0,--_===1){P=!0;break}while((ne|J)=0;k--)i[Q+k]=i[j+k];if(n===0){P=!0;break}}if(i[M--]=C[R--],--_===1){P=!0;break}if(J=_-r(i[b],C,0,_,_-1,d),J!==0){for(M-=J,R-=J,_-=J,Q=M+1,j=R+1,k=0;k=O||J>=O);if(P)break;G<0&&(G=0),G+=2}if(g=G,g<1&&(g=1),_===1){for(M-=n,b-=n,Q=M+1,j=b+1,k=n-1;k>=0;k--)i[Q+k]=i[j+k];i[M]=C[R]}else{if(_===0)throw new Error;for(j=M-(_-1),k=0;k<_;k++)i[j+k]=C[k]}}this.mergeRuns=T,this.forceMergeRuns=B,this.pushRun=h}function l(i,d,g,E){g||(g=0),E||(E=i.length);var y=E-g;if(y<2)return;var D=0;if(yL&&(p=L),a(i,g,g+p,g+D,d),D=p}N.pushRun(g,D),N.mergeRuns(),y-=D,g+=D}while(y!==0);N.forceMergeRuns()}ie.exports=l},BdwD:function(ie,x,t){"use strict";var O=t("+L6B"),f=t("2/Rp"),m=t("0Owb"),v=t("k1fw"),u=t("q1tI"),a=t.n(u),r=t("FOrL"),e=t.n(r),s=function(i){var d=i.buttonProps,g=d===void 0?{}:d,E=i.styles,y=E===void 0?{}:E,D=i.customText,N=i.ButtonText,L=i.ButtonClick,p=i.Buttonclass,C=i.ButtonTwo;return a.a.createElement("section",{className:"tc animated fadeIn",style:Object(v.a)(Object(v.a)({},{color:"#999",margin:"200px auto"}),y)},a.a.createElement("img",{src:e.a}),a.a.createElement("p",{className:"mt20 font14"},D||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),N&&a.a.createElement(f.a,Object(m.a)({className:p,onClick:L},g),N),C&&C)};x.a=s},BlVb:function(ie,x,t){var O=t("hyiK"),f=1e-8;function m(u,a){return Math.abs(u-a).5?T:h}function l(h,T,B,H,w){var c=h.length;if(w===1)for(var o=0;ow;if(c)h.length=w;else for(var o=H;o=0&&!(G[K]<=S);K--);K=Math.min(K,_-2)}else{for(K=X;K<_&&!(G[K]>S);K++);K=Math.min(K-1,_-2)}X=K,Z=S;var ee=G[K+1]-G[K];if(ee===0)return;if(ae=(S-G[K])/ee,F)if(V=ne[K],ve=ne[K===0?K:K-1],re=ne[K>_-2?_-1:K+1],I=ne[K>_-3?_-1:K+2],b)g(ve,V,re,I,ae,ae*ae,ae*ae*ae,o(A,w),j);else{var de;if(R)de=g(ve,V,re,I,ae,ae*ae,ae*ae*ae,q,1),de=D(q);else{if(M)return s(V,re,ae);de=E(ve,V,re,I,ae,ae*ae,ae*ae*ae)}n(A,w,de)}else if(b)l(ne[K],ne[K+1],ae,o(A,w),j);else{var de;if(R)l(ne[K],ne[K+1],ae,q,1),de=D(q);else{if(M)return s(ne[K],ne[K+1],ae);de=e(ne[K],ne[K+1],ae)}n(A,w,de)}},z=new O({target:h._target,life:Q,loop:h._loop,delay:h._delay,onframe:fe,ondestroy:B});return T&&T!=="spline"&&(z.easing=T),z}var p=function(h,T,B,H){this._tracks={},this._target=h,this._loop=T||!1,this._getter=B||a,this._setter=H||r,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};p.prototype={when:function(h,T){var B=this._tracks;for(var H in T){if(!T.hasOwnProperty(H))continue;if(!B[H]){B[H]=[];var w=this._getter(this._target,H);if(w==null)continue;h!==0&&B[H].push({time:0,value:y(w)})}B[H].push({time:h,value:T[H]})}return this},during:function(h){return this._onframeList.push(h),this},pause:function(){for(var h=0;h1&&l&&l.length>1){var d=m(l)/m(i);!isFinite(d)&&(d=1),e.pinchScale=d;var g=v(l);return e.pinchX=g[0],e.pinchY=g[1],{type:"pinch",target:r[0].target,event:e}}}},a=f;ie.exports=a},DBLp:function(ie,x){function t(){}t.prototype={diff:function(u,a,r){r||(r=function(p,C){return p===C}),this.equals=r;var e=this;u=u.slice(),a=a.slice();var s=a.length,l=u.length,i=1,d=s+l,g=[{newPos:-1,components:[]}],E=this.extractCommon(g[0],a,u,0);if(g[0].newPos+1>=s&&E+1>=l){for(var y=[],D=0;D=s&&B+1>=l)return O(e,C.components,a,u);g[p]=C}i++}for(;i<=d;){var L=N();if(L)return L}},pushComponent:function(u,a,r){var e=u[u.length-1];e&&e.added===a&&e.removed===r?u[u.length-1]={count:e.count+1,added:a,removed:r}:u.push({count:1,added:a,removed:r})},extractCommon:function(u,a,r,e){for(var s=a.length,l=r.length,i=u.newPos,d=i-e,g=0;i+1v||d<-v}var a=function(d){d=d||{},d.position||(this.position=[0,0]),d.rotation==null&&(this.rotation=0),d.scale||(this.scale=[1,1]),this.origin=this.origin||null},r=a.prototype;r.transform=null,r.needLocalTransform=function(){return u(this.rotation)||u(this.position[0])||u(this.position[1])||u(this.scale[0]-1)||u(this.scale[1]-1)};var e=[];r.updateTransform=function(){var d=this.parent,g=d&&d.transform,E=this.needLocalTransform(),y=this.transform;if(!(E||g)){y&&m(y);return}y=y||O.create(),E?this.getLocalTransform(y):m(y),g&&(E?O.mul(y,d.transform,y):O.copy(y,d.transform)),this.transform=y;var D=this.globalScaleRatio;if(D!=null&&D!==1){this.getGlobalScale(e);var N=e[0]<0?-1:1,L=e[1]<0?-1:1,p=((e[0]-N)*D+N)/e[0]||0,C=((e[1]-L)*D+L)/e[1]||0;y[0]*=p,y[1]*=p,y[2]*=C,y[3]*=C}this.invTransform=this.invTransform||O.create(),O.invert(this.invTransform,y)},r.getLocalTransform=function(d){return a.getLocalTransform(this,d)},r.setTransform=function(d){var g=this.transform,E=d.dpr||1;g?d.setTransform(E*g[0],E*g[1],E*g[2],E*g[3],E*g[4],E*g[5]):d.setTransform(E,0,0,E,0,0)},r.restoreTransform=function(d){var g=d.dpr||1;d.setTransform(g,0,0,g,0,0)};var s=[],l=O.create();r.setLocalTransform=function(d){if(!d)return;var g=d[0]*d[0]+d[1]*d[1],E=d[2]*d[2]+d[3]*d[3],y=this.position,D=this.scale;u(g-1)&&(g=Math.sqrt(g)),u(E-1)&&(E=Math.sqrt(E)),d[0]<0&&(g=-g),d[3]<0&&(E=-E),y[0]=d[4],y[1]=d[5],D[0]=g,D[1]=E,this.rotation=Math.atan2(-d[1]/E,d[0]/g)},r.decomposeTransform=function(){if(!this.transform)return;var d=this.parent,g=this.transform;d&&d.transform&&(O.mul(s,d.invTransform,g),g=s);var E=this.origin;E&&(E[0]||E[1])&&(l[4]=E[0],l[5]=E[1],O.mul(s,g,l),s[4]-=E[0],s[5]-=E[1],g=s),this.setLocalTransform(g)},r.getGlobalScale=function(d){var g=this.transform;return d=d||[],g?(d[0]=Math.sqrt(g[0]*g[0]+g[1]*g[1]),d[1]=Math.sqrt(g[2]*g[2]+g[3]*g[3]),g[0]<0&&(d[0]=-d[0]),g[3]<0&&(d[1]=-d[1]),d):(d[0]=1,d[1]=1,d)},r.transformCoordToLocal=function(d,g){var E=[d,g],y=this.invTransform;return y&&f.applyTransform(E,E,y),E},r.transformCoordToGlobal=function(d,g){var E=[d,g],y=this.transform;return y&&f.applyTransform(E,E,y),E},a.getLocalTransform=function(d,g){g=g||[],m(g);var E=d.origin,y=d.scale||[1,1],D=d.rotation||0,N=d.position||[0,0];return E&&(g[4]-=E[0],g[5]-=E[1]),O.scale(g,g,y),D&&O.rotate(g,g,D),E&&(g[4]+=E[0],g[5]+=E[1]),g[4]+=N[0],g[5]+=N[1],g};var i=a;ie.exports=i},Dagg:function(ie,x,t){var O=t("Gev7"),f=t("mFDi"),m=t("bYtY"),v=t("Xnb7");function u(r){O.call(this,r)}u.prototype={constructor:u,type:"image",brush:function(r,e){var s=this.style,l=s.image;s.bind(r,this,e);var i=this._image=v.createOrUpdateImage(l,this._image,this,this.onload);if(!i||!v.isImageReady(i))return;var d=s.x||0,g=s.y||0,E=s.width,y=s.height,D=i.width/i.height;if(E==null&&y!=null?E=y*D:y==null&&E!=null?y=E/D:E==null&&y==null&&(E=i.width,y=i.height),this.setTransform(r),s.sWidth&&s.sHeight){var N=s.sx||0,L=s.sy||0;r.drawImage(i,N,L,s.sWidth,s.sHeight,d,g,E,y)}else if(s.sx&&s.sy){var N=s.sx,L=s.sy,p=E-N,C=y-L;r.drawImage(i,N,L,p,C,d,g,E,y)}else r.drawImage(i,d,g,E,y);s.text!=null&&(this.restoreTransform(r),this.drawRectText(r,this.getBoundingRect()))},getBoundingRect:function(){var r=this.style;return this._rect||(this._rect=new f(r.x||0,r.y||0,r.width||0,r.height||0)),this._rect}},m.inherits(u,O);var a=u;ie.exports=a},E7E6:function(ie,x){ie.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADUCAYAAADZTGx+AAAgAElEQVR4Xu2dC3BU13nHv7MrIQkQQoCEtAIEAmxig4GACxhogpM6NY7jOKZO4nimwcFot23SNNNO02napJN0JjN9TNMm5eG3x4+YSeI3ftUGjCDGQMBgG4wxb+0u4mEeQhJI2tP539WR7i77uPfuvXfvar8zs7Mr7bnn8Z3vt9/5zlMQB5aAQQmsW7fO397eHujp6Rkfi8XGExFeDX2vABHVSSlrhBDDiKhdSnlOCBGWUu4mol1lZWWv3nfffccNZueJaMITpeBCeEIC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Fj0Qi10kp/4QotphILJJSjs1eRY6RbwkIIU4SyRYi32YhxBv19fUD9yLku3BZ8i8oQJLrcurUiWt6e8Wi3l7CyBiO8JvicXkXS/EOEokWv582+/2ypaZm3IFCrXhBA5Is9La2trqenp6biGi2lJhv0eZcxhVq4xRIuU8Qid1CCKyB31VSUrK1trY2WiBlz1rMQQVIqtpeuHBidEcHzZIy/iLSXtfyWrGsupEQIb7WiT4iot1CxF9Dh9LuESPGnTGXUmHFHvSApGoOzLm0tbU19vb2TpVSThGCphLJKVLSVCFoYrHCAwikpCNC0MdE4qCU9LEQ4qDf7/+4trb2aN/cRGFpeI6lLUpAMslMSulva2ub2NPT0+TzyUAsJup9PgpIKQNSinohtM/1RFRo5/1cFkJEpKSwEDIihAjHYhT2+WQkFhPhkpKSQ7W1tUdwsnmOOjWoHmdALDbn+fPnR3V2dgKW0ULEqmIxUSWlHCmErJJSVAlBVVIS3kcS4X9ULoQolVKWZnpHcaSU3UKI7szv1EUkzuNSKSEI7+eFkOelFOeFEOd8Pnz24fOZioqKcFVV1VmLVS3qx/4fQLyzKIIkCJoAAAAASUVORK5CYII="},E9nw:function(ie,x){ie.exports=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var O=document.activeElement,f=[],m=0;mE)&&(a[l]=E,r.push(l,E),u[l]=s))}if(typeof v!="undefined"&&typeof a[v]=="undefined"){var N=["Could not find a path from ",m," to ",v,"."].join("");throw new Error(N)}return u},extract_shortest_path_from_predecessor_list:function(f,m){for(var v=[],u=m,a;u;)v.push(u),a=f[u],u=f[u];return v.reverse(),v},find_path:function(f,m,v){var u=O.single_source_shortest_paths(f,m,v);return O.extract_shortest_path_from_predecessor_list(u,v)},PriorityQueue:{make:function(f){var m=O.PriorityQueue,v={},u;f=f||{};for(u in m)m.hasOwnProperty(u)&&(v[u]=m[u]);return v.queue=[],v.sorter=f.sorter||m.default_sorter,v},default_sorter:function(f,m){return f.cost-m.cost},push:function(f,m){var v={value:f,cost:m};this.queue.push(v),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};ie.exports=O},FOrL:function(ie,x,t){ie.exports=t.p+"static/nodata.a6b3f948.png"},FPkq:function(ie,x,t){ie.exports=t.p+"static/qrCode.dd0fe9b2.png"},Fofx:function(ie,x){var t=typeof Float32Array=="undefined"?Array:Float32Array;function O(){var l=new t(6);return f(l),l}function f(l){return l[0]=1,l[1]=0,l[2]=0,l[3]=1,l[4]=0,l[5]=0,l}function m(l,i){return l[0]=i[0],l[1]=i[1],l[2]=i[2],l[3]=i[3],l[4]=i[4],l[5]=i[5],l}function v(l,i,d){var g=i[0]*d[0]+i[2]*d[1],E=i[1]*d[0]+i[3]*d[1],y=i[0]*d[2]+i[2]*d[3],D=i[1]*d[2]+i[3]*d[3],N=i[0]*d[4]+i[2]*d[5]+i[4],L=i[1]*d[4]+i[3]*d[5]+i[5];return l[0]=g,l[1]=E,l[2]=y,l[3]=D,l[4]=N,l[5]=L,l}function u(l,i,d){return l[0]=i[0],l[1]=i[1],l[2]=i[2],l[3]=i[3],l[4]=i[4]+d[0],l[5]=i[5]+d[1],l}function a(l,i,d){var g=i[0],E=i[2],y=i[4],D=i[1],N=i[3],L=i[5],p=Math.sin(d),C=Math.cos(d);return l[0]=g*C+D*p,l[1]=-g*p+D*C,l[2]=E*C+N*p,l[3]=-E*p+C*N,l[4]=C*y+p*L,l[5]=C*L-p*y,l}function r(l,i,d){var g=d[0],E=d[1];return l[0]=i[0]*g,l[1]=i[1]*E,l[2]=i[2]*g,l[3]=i[3]*E,l[4]=i[4]*g,l[5]=i[5]*E,l}function e(l,i){var d=i[0],g=i[2],E=i[4],y=i[1],D=i[3],N=i[5],L=d*D-y*g;return L?(L=1/L,l[0]=D*L,l[1]=-y*L,l[2]=-g*L,l[3]=d*L,l[4]=(g*N-D*E)*L,l[5]=(y*E-d*N)*L,l):null}function s(l){var i=O();return m(i,l),i}x.create=O,x.identity=f,x.copy=m,x.mul=v,x.translate=u,x.rotate=a,x.scale=r,x.invert=e,x.clone=s},FxDU:function(ie,x,t){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.createSensor=void 0;var O=t("QO+J"),f=t("j5sG"),m=typeof ResizeObserver!="undefined"?f.createSensor:O.createSensor;x.createSensor=m},GABl:function(ie,x){ie.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAKi0lEQVRoQ71ae3BU1Rn//e7dzYuioNRsHlSqRiUB2eUx0hbaKAHEAMWxiQ6PTUAUGCuIQNVOZ0xnrHUE5GHHIqOwCag8BlQiQnnUokgt5AEIK5GnBpIFXwjkAdl7vs7dkJCETXLvEj3/5d7v9/u+337nfN8554bowBHo16+3YRh3K7IPBHcRSIDI9QJ0AWkA8h0E3xM8DWAvde5x6Pqe+D17jnVUGLxWogqPp78SGSeC3wP4ZUR8pJ+Ct50O7e344uKjEXFcBkUkSERY6e43RkE9JcCgawngaiw3O6A/l7CvaHckvLYFhTKi5B8C3B2JQ6sYEhvpcMxKKioqs4ox7SwLkvT0mFNnz82HqKkCaHacRGxL1gDybHJp6WKSYoXHkqBytzuF4FoR6WOFtKNtCP4b0c7s5N27v22Pu11B5e7+6ZTgBgE6t0f2Y74n8IUjOuo+1+7dx9vy06agcrf7fgjXARLzYwZrnZsB6BzevaRkf2uYVgWdcruHKnAjRJzWHf4ElmSl5nTcnbRnT3k4b2EFVfTt29NQ8l+zKf4EIUbi4kAnhz7ohuLiH1qCwwo62cf9ccf3l0jibh1DckPy3lKzmTcbYQWV9+k7HlArOjaEjmejRm9yaWmzOMMKMncCp9x9dwlkYEeEQUCBrO0IrqYcApx1xsV6XLt2nWl43kyQqyB38dQJPZ7MY56qdLsHGIL/iY3m24R0p2jc6BDZrkVHf3XTiBFfMy9PdbSgNotCYv6kDAPGVhCTT3vz3zCNT7o9PhHJsRoIwUJN518TS0qKrWI62q4xQ/H5uTsB+Q3I0521zrcfGf/KuTMDBrguXar7or2mSuCCRm1q4t6SN5s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IHTySvPoDQKt3yeb1cFDJNhHcdI0amhQk7gh4fen1YoYPhgQ/ss/NzxHtHGj2nHDYNi/Hk9/MTQka2CoiN9t3fNVkUDr0/hU5b5SK5Gnw7yyCiMcWL+GH5sxkz80nWsO1e9uftHJysqHqtoigpy3nLYxJLgt4fY+EsnMg41FAltriIzciyjm2tcy0WuXCOUnKf/xGg1VvishwW0Fc8XIhNoYpJ7J9gfpLRByGyM8tc5FzkTromXBrxlJRaM2ReW0sSi0QQTfLwZiG1P582rv876Hs+DNehpKZFvEnoWE2U7dbbrrtTrmWjhPfeqybEby0ECLjrARF8ETML9DzxD2+WikbdifqDHND2vb/PpDm5/oXcV3XRey+tsaKH1tTLhyh661H0xCsmyaQCW1dg1HTHwpMWLbmcpneBJH7Wg+QVdCwFKI/z7R/fWdHyDULaiCIL5jdScM3Y6X+m04/aXIPQGJnwJs/OCTm8yEjYSDMLSurQPkI5CrcoK2ja0vobBTpsD3l2nKU/mGe43DFiV5Ksb8SNUCj9lrlhOUl5r8JwG9evjMBhDmdjkJYBp2luLPHHrL+nq8jxv8BV2A7FHmr6w0AAAAASUVORK5CYII="},Gev7:function(ie,x,t){var O=t("bYtY"),f=t("K2GJ"),m=t("1bdT"),v=t("ni6a");function u(r){r=r||{},m.call(this,r);for(var e in r)r.hasOwnProperty(e)&&e!=="style"&&(this[e]=r[e]);this.style=new f(r.style,this),this._rect=null,this.__clipPaths=null}u.prototype={constructor:u,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(r){},afterBrush:function(r){},brush:function(r,e){},getBoundingRect:function(){},contain:function(r,e){return this.rectContain(r,e)},traverse:function(r,e){r.call(e,this)},rectContain:function(r,e){var s=this.transformCoordToLocal(r,e),l=this.getBoundingRect();return l.contain(s[0],s[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(r){return this.animate("style",r)},attrKV:function(r,e){r!=="style"?m.prototype.attrKV.call(this,r,e):this.style.set(e)},setStyle:function(r,e){return this.style.set(r,e),this.dirty(!1),this},useStyle:function(r){return this.style=new f(r,this),this.dirty(!1),this},calculateTextPosition:null},O.inherits(u,m),O.mixin(u,v);var a=u;ie.exports=a},Gytx:function(ie,x){ie.exports=function(O,f,m,v){var u=m?m.call(v,O,f):void 0;if(u!==void 0)return!!u;if(O===f)return!0;if(typeof O!="object"||!O||typeof f!="object"||!f)return!1;var a=Object.keys(O),r=Object.keys(f);if(a.length!==r.length)return!1;for(var e=Object.prototype.hasOwnProperty.bind(f),s=0;s3&&(e=t.call(e,1));for(var l=a.length,i=0;i4&&(e=t.call(e,1,e.length-1));for(var l=e[e.length-1],i=a.length,d=0;d0)throw new Error("Invalid string. Length must be a multiple of 4");var D=E.indexOf("=");D===-1&&(D=y);var N=D===y?0:4-D%4;return[D,N]}function e(E){var y=r(E),D=y[0],N=y[1];return(D+N)*3/4-N}function s(E,y,D){return(y+D)*3/4-D}function l(E){var y,D=r(E),N=D[0],L=D[1],p=new m(s(E,N,L)),C=0,h=L>0?N-4:N,T;for(T=0;T>16&255,p[C++]=y>>8&255,p[C++]=y&255;return L===2&&(y=f[E.charCodeAt(T)]<<2|f[E.charCodeAt(T+1)]>>4,p[C++]=y&255),L===1&&(y=f[E.charCodeAt(T)]<<10|f[E.charCodeAt(T+1)]<<4|f[E.charCodeAt(T+2)]>>2,p[C++]=y>>8&255,p[C++]=y&255),p}function i(E){return O[E>>18&63]+O[E>>12&63]+O[E>>6&63]+O[E&63]}function d(E,y,D){for(var N,L=[],p=y;ph?h:C+p));return N===1?(y=E[D-1],L.push(O[y>>2]+O[y<<4&63]+"==")):N===2&&(y=(E[D-2]<<8)+E[D-1],L.push(O[y>>10]+O[y>>4&63]+O[y<<2&63]+"=")),L.join("")}},HDXh:function(ie,x,t){"use strict";(function(O){/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT -*/var f=t("H7XF"),m=t("kVK+"),v=t("49sm");x.Buffer=e,x.SlowBuffer=L,x.INSPECT_MAX_BYTES=50,e.TYPED_ARRAY_SUPPORT=O.TYPED_ARRAY_SUPPORT!==void 0?O.TYPED_ARRAY_SUPPORT:u(),x.kMaxLength=a();function u(){try{var z=new Uint8Array(1);return z.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},z.foo()===42&&typeof z.subarray=="function"&&z.subarray(1,1).byteLength===0}catch(A){return!1}}function a(){return e.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function r(z,A){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return z|0}function L(z){return+z!=z&&(z=0),e.alloc(+z)}e.isBuffer=function(A){return!!(A!=null&&A._isBuffer)},e.compare=function(A,S){if(!e.isBuffer(A)||!e.isBuffer(S))throw new TypeError("Arguments must be Buffers");if(A===S)return 0;for(var K=A.length,ee=S.length,de=0,he=Math.min(K,ee);de>>1;case"base64":return I(z).length;default:if(K)return ve(z).length;A=(""+A).toLowerCase(),K=!0}}e.byteLength=p;function C(z,A,S){var K=!1;if((A===void 0||A<0)&&(A=0),A>this.length)return"";if((S===void 0||S>this.length)&&(S=this.length),S<=0)return"";if(S>>>=0,A>>>=0,S<=A)return"";for(z||(z="utf8");;)switch(z){case"hex":return Q(this,A,S);case"utf8":case"utf-8":return k(this,A,S);case"ascii":return M(this,A,S);case"latin1":case"binary":return j(this,A,S);case"base64":return _(this,A,S);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,A,S);default:if(K)throw new TypeError("Unknown encoding: "+z);z=(z+"").toLowerCase(),K=!0}}e.prototype._isBuffer=!0;function h(z,A,S){var K=z[A];z[A]=z[S],z[S]=K}e.prototype.swap16=function(){var A=this.length;if(A%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var S=0;S0&&(A=this.toString("hex",0,S).match(/.{2}/g).join(" "),this.length>S&&(A+=" ... ")),""},e.prototype.compare=function(A,S,K,ee,de){if(!e.isBuffer(A))throw new TypeError("Argument must be a Buffer");if(S===void 0&&(S=0),K===void 0&&(K=A?A.length:0),ee===void 0&&(ee=0),de===void 0&&(de=this.length),S<0||K>A.length||ee<0||de>this.length)throw new RangeError("out of range index");if(ee>=de&&S>=K)return 0;if(ee>=de)return-1;if(S>=K)return 1;if(S>>>=0,K>>>=0,ee>>>=0,de>>>=0,this===A)return 0;for(var he=de-ee,Me=K-S,ce=Math.min(he,Me),be=this.slice(ee,de),Ae=A.slice(S,K),ye=0;ye2147483647?S=2147483647:S<-2147483648&&(S=-2147483648),S=+S,isNaN(S)&&(S=ee?0:z.length-1),S<0&&(S=z.length+S),S>=z.length){if(ee)return-1;S=z.length-1}else if(S<0)if(ee)S=0;else return-1;if(typeof A=="string"&&(A=e.from(A,K)),e.isBuffer(A))return A.length===0?-1:B(z,A,S,K,ee);if(typeof A=="number")return A=A&255,e.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?ee?Uint8Array.prototype.indexOf.call(z,A,S):Uint8Array.prototype.lastIndexOf.call(z,A,S):B(z,[A],S,K,ee);throw new TypeError("val must be string, number or Buffer")}function B(z,A,S,K,ee){var de=1,he=z.length,Me=A.length;if(K!==void 0&&(K=String(K).toLowerCase(),K==="ucs2"||K==="ucs-2"||K==="utf16le"||K==="utf-16le")){if(z.length<2||A.length<2)return-1;de=2,he/=2,Me/=2,S/=2}function ce(Se,Ne){return de===1?Se[Ne]:Se.readUInt16BE(Ne*de)}var be;if(ee){var Ae=-1;for(be=S;behe&&(S=he-Me),be=S;be>=0;be--){for(var ye=!0,ke=0;keee&&(K=ee)):K=ee;var de=A.length;if(de%2!==0)throw new TypeError("Invalid hex string");K>de/2&&(K=de/2);for(var he=0;hede)&&(K=de),A.length>0&&(K<0||S<0)||S>this.length)throw new RangeError("Attempt to write outside buffer bounds");ee||(ee="utf8");for(var he=!1;;)switch(ee){case"hex":return H(this,A,S,K);case"utf8":case"utf-8":return w(this,A,S,K);case"ascii":return c(this,A,S,K);case"latin1":case"binary":return o(this,A,S,K);case"base64":return n(this,A,S,K);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,A,S,K);default:if(he)throw new TypeError("Unknown encoding: "+ee);ee=(""+ee).toLowerCase(),he=!0}},e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function _(z,A,S){return A===0&&S===z.length?f.fromByteArray(z):f.fromByteArray(z.slice(A,S))}function k(z,A,S){S=Math.min(z.length,S);for(var K=[],ee=A;ee239?4:de>223?3:de>191?2:1;if(ee+Me<=S){var ce,be,Ae,ye;switch(Me){case 1:de<128&&(he=de);break;case 2:ce=z[ee+1],(ce&192)===128&&(ye=(de&31)<<6|ce&63,ye>127&&(he=ye));break;case 3:ce=z[ee+1],be=z[ee+2],(ce&192)===128&&(be&192)===128&&(ye=(de&15)<<12|(ce&63)<<6|be&63,ye>2047&&(ye<55296||ye>57343)&&(he=ye));break;case 4:ce=z[ee+1],be=z[ee+2],Ae=z[ee+3],(ce&192)===128&&(be&192)===128&&(Ae&192)===128&&(ye=(de&15)<<18|(ce&63)<<12|(be&63)<<6|Ae&63,ye>65535&&ye<1114112&&(he=ye))}}he===null?(he=65533,Me=1):he>65535&&(he-=65536,K.push(he>>>10&1023|55296),he=56320|he&1023),K.push(he),ee+=Me}return R(K)}var b=4096;function R(z){var A=z.length;if(A<=b)return String.fromCharCode.apply(String,z);for(var S="",K=0;KK)&&(S=K);for(var ee="",de=A;deK&&(A=K),S<0?(S+=K,S<0&&(S=0)):S>K&&(S=K),SS)throw new RangeError("Trying to access beyond buffer length")}e.prototype.readUIntLE=function(A,S,K){A=A|0,S=S|0,K||ne(A,S,this.length);for(var ee=this[A],de=1,he=0;++he0&&(de*=256);)ee+=this[A+--S]*de;return ee},e.prototype.readUInt8=function(A,S){return S||ne(A,1,this.length),this[A]},e.prototype.readUInt16LE=function(A,S){return S||ne(A,2,this.length),this[A]|this[A+1]<<8},e.prototype.readUInt16BE=function(A,S){return S||ne(A,2,this.length),this[A]<<8|this[A+1]},e.prototype.readUInt32LE=function(A,S){return S||ne(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+this[A+3]*16777216},e.prototype.readUInt32BE=function(A,S){return S||ne(A,4,this.length),this[A]*16777216+(this[A+1]<<16|this[A+2]<<8|this[A+3])},e.prototype.readIntLE=function(A,S,K){A=A|0,S=S|0,K||ne(A,S,this.length);for(var ee=this[A],de=1,he=0;++he=de&&(ee-=Math.pow(2,8*S)),ee},e.prototype.readIntBE=function(A,S,K){A=A|0,S=S|0,K||ne(A,S,this.length);for(var ee=S,de=1,he=this[A+--ee];ee>0&&(de*=256);)he+=this[A+--ee]*de;return de*=128,he>=de&&(he-=Math.pow(2,8*S)),he},e.prototype.readInt8=function(A,S){return S||ne(A,1,this.length),this[A]&128?(255-this[A]+1)*-1:this[A]},e.prototype.readInt16LE=function(A,S){S||ne(A,2,this.length);var K=this[A]|this[A+1]<<8;return K&32768?K|4294901760:K},e.prototype.readInt16BE=function(A,S){S||ne(A,2,this.length);var K=this[A+1]|this[A]<<8;return K&32768?K|4294901760:K},e.prototype.readInt32LE=function(A,S){return S||ne(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},e.prototype.readInt32BE=function(A,S){return S||ne(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},e.prototype.readFloatLE=function(A,S){return S||ne(A,4,this.length),m.read(this,A,!0,23,4)},e.prototype.readFloatBE=function(A,S){return S||ne(A,4,this.length),m.read(this,A,!1,23,4)},e.prototype.readDoubleLE=function(A,S){return S||ne(A,8,this.length),m.read(this,A,!0,52,8)},e.prototype.readDoubleBE=function(A,S){return S||ne(A,8,this.length),m.read(this,A,!1,52,8)};function J(z,A,S,K,ee,de){if(!e.isBuffer(z))throw new TypeError('"buffer" argument must be a Buffer instance');if(A>ee||Az.length)throw new RangeError("Index out of range")}e.prototype.writeUIntLE=function(A,S,K,ee){if(A=+A,S=S|0,K=K|0,!ee){var de=Math.pow(2,8*K)-1;J(this,A,S,K,de,0)}var he=1,Me=0;for(this[S]=A&255;++Me=0&&(Me*=256);)this[S+he]=A/Me&255;return S+K},e.prototype.writeUInt8=function(A,S,K){return A=+A,S=S|0,K||J(this,A,S,1,255,0),e.TYPED_ARRAY_SUPPORT||(A=Math.floor(A)),this[S]=A&255,S+1};function P(z,A,S,K){A<0&&(A=65535+A+1);for(var ee=0,de=Math.min(z.length-S,2);ee>>(K?ee:1-ee)*8}e.prototype.writeUInt16LE=function(A,S,K){return A=+A,S=S|0,K||J(this,A,S,2,65535,0),e.TYPED_ARRAY_SUPPORT?(this[S]=A&255,this[S+1]=A>>>8):P(this,A,S,!0),S+2},e.prototype.writeUInt16BE=function(A,S,K){return A=+A,S=S|0,K||J(this,A,S,2,65535,0),e.TYPED_ARRAY_SUPPORT?(this[S]=A>>>8,this[S+1]=A&255):P(this,A,S,!1),S+2};function Y(z,A,S,K){A<0&&(A=4294967295+A+1);for(var ee=0,de=Math.min(z.length-S,4);ee>>(K?ee:3-ee)*8&255}e.prototype.writeUInt32LE=function(A,S,K){return A=+A,S=S|0,K||J(this,A,S,4,4294967295,0),e.TYPED_ARRAY_SUPPORT?(this[S+3]=A>>>24,this[S+2]=A>>>16,this[S+1]=A>>>8,this[S]=A&255):Y(this,A,S,!0),S+4},e.prototype.writeUInt32BE=function(A,S,K){return A=+A,S=S|0,K||J(this,A,S,4,4294967295,0),e.TYPED_ARRAY_SUPPORT?(this[S]=A>>>24,this[S+1]=A>>>16,this[S+2]=A>>>8,this[S+3]=A&255):Y(this,A,S,!1),S+4},e.prototype.writeIntLE=function(A,S,K,ee){if(A=+A,S=S|0,!ee){var de=Math.pow(2,8*K-1);J(this,A,S,K,de-1,-de)}var he=0,Me=1,ce=0;for(this[S]=A&255;++he>0)-ce&255;return S+K},e.prototype.writeIntBE=function(A,S,K,ee){if(A=+A,S=S|0,!ee){var de=Math.pow(2,8*K-1);J(this,A,S,K,de-1,-de)}var he=K-1,Me=1,ce=0;for(this[S+he]=A&255;--he>=0&&(Me*=256);)A<0&&ce===0&&this[S+he+1]!==0&&(ce=1),this[S+he]=(A/Me>>0)-ce&255;return S+K},e.prototype.writeInt8=function(A,S,K){return A=+A,S=S|0,K||J(this,A,S,1,127,-128),e.TYPED_ARRAY_SUPPORT||(A=Math.floor(A)),A<0&&(A=255+A+1),this[S]=A&255,S+1},e.prototype.writeInt16LE=function(A,S,K){return A=+A,S=S|0,K||J(this,A,S,2,32767,-32768),e.TYPED_ARRAY_SUPPORT?(this[S]=A&255,this[S+1]=A>>>8):P(this,A,S,!0),S+2},e.prototype.writeInt16BE=function(A,S,K){return A=+A,S=S|0,K||J(this,A,S,2,32767,-32768),e.TYPED_ARRAY_SUPPORT?(this[S]=A>>>8,this[S+1]=A&255):P(this,A,S,!1),S+2},e.prototype.writeInt32LE=function(A,S,K){return A=+A,S=S|0,K||J(this,A,S,4,2147483647,-2147483648),e.TYPED_ARRAY_SUPPORT?(this[S]=A&255,this[S+1]=A>>>8,this[S+2]=A>>>16,this[S+3]=A>>>24):Y(this,A,S,!0),S+4},e.prototype.writeInt32BE=function(A,S,K){return A=+A,S=S|0,K||J(this,A,S,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),e.TYPED_ARRAY_SUPPORT?(this[S]=A>>>24,this[S+1]=A>>>16,this[S+2]=A>>>8,this[S+3]=A&255):Y(this,A,S,!1),S+4};function W(z,A,S,K,ee,de){if(S+K>z.length)throw new RangeError("Index out of range");if(S<0)throw new RangeError("Index out of range")}function oe(z,A,S,K,ee){return ee||W(z,A,S,4,34028234663852886e22,-34028234663852886e22),m.write(z,A,S,K,23,4),S+4}e.prototype.writeFloatLE=function(A,S,K){return oe(this,A,S,!0,K)},e.prototype.writeFloatBE=function(A,S,K){return oe(this,A,S,!1,K)};function $(z,A,S,K,ee){return ee||W(z,A,S,8,17976931348623157e292,-17976931348623157e292),m.write(z,A,S,K,52,8),S+8}e.prototype.writeDoubleLE=function(A,S,K){return $(this,A,S,!0,K)},e.prototype.writeDoubleBE=function(A,S,K){return $(this,A,S,!1,K)},e.prototype.copy=function(A,S,K,ee){if(K||(K=0),!ee&&ee!==0&&(ee=this.length),S>=A.length&&(S=A.length),S||(S=0),ee>0&&ee=this.length)throw new RangeError("sourceStart out of bounds");if(ee<0)throw new RangeError("sourceEnd out of bounds");ee>this.length&&(ee=this.length),A.length-S=0;--he)A[he+S]=this[he+K];else if(de<1e3||!e.TYPED_ARRAY_SUPPORT)for(he=0;he>>0,K=K===void 0?this.length:K>>>0,A||(A=0);var he;if(typeof A=="number")for(he=S;he55295&&S<57344){if(!ee){if(S>56319){(A-=3)>-1&&de.push(239,191,189);continue}else if(he+1===K){(A-=3)>-1&&de.push(239,191,189);continue}ee=S;continue}if(S<56320){(A-=3)>-1&&de.push(239,191,189),ee=S;continue}S=(ee-55296<<10|S-56320)+65536}else ee&&((A-=3)>-1&&de.push(239,191,189));if(ee=null,S<128){if((A-=1)<0)break;de.push(S)}else if(S<2048){if((A-=2)<0)break;de.push(S>>6|192,S&63|128)}else if(S<65536){if((A-=3)<0)break;de.push(S>>12|224,S>>6&63|128,S&63|128)}else if(S<1114112){if((A-=4)<0)break;de.push(S>>18|240,S>>12&63|128,S>>6&63|128,S&63|128)}else throw new Error("Invalid code point")}return de}function V(z){for(var A=[],S=0;S>8,ee=S%256,de.push(ee),de.push(K);return de}function I(z){return f.toByteArray(Z(z))}function q(z,A,S,K){for(var ee=0;ee=A.length||ee>=z.length);++ee)A[ee+S]=z[ee];return ee}function fe(z){return z!==z}}).call(this,t("IyRk"))},HpTS:function(ie,x,t){ie.exports=t.p+"static/small_program.f74069ec.png"},I8Z2:function(ie,x,t){"use strict";t.d(x,"a",function(){return v}),t.d(x,"b",function(){return g}),t.d(x,"c",function(){return y});var O=t("q1tI"),f=function(){var T=function(N,L){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,C){p.__proto__=C}||function(p,C){for(var h in C)C.hasOwnProperty(h)&&(p[h]=C[h])},T(N,L)};return function(N,L){T(N,L);function p(){this.constructor=N}N.prototype=L===null?Object.create(L):(p.prototype=L.prototype,new p)}}(),m=O.createContext(null),v=function(T){f(N,T);function N(){return T!==null&&T.apply(this,arguments)||this}return N.prototype.render=function(){return O.createElement(m.Provider,{value:this.props.store},this.props.children)},N}(O.Component),u=t("Gytx"),a=t.n(u),r=t("2mql"),e=t.n(r),s=function(){var T=function(N,L){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,C){p.__proto__=C}||function(p,C){for(var h in C)C.hasOwnProperty(h)&&(p[h]=C[h])},T(N,L)};return function(N,L){T(N,L);function p(){this.constructor=N}N.prototype=L===null?Object.create(L):(p.prototype=L.prototype,new p)}}(),l=function(){return l=Object.assign||function(T){for(var N,L=1,p=arguments.length;Lthis._ux||N(D-this._yi)>this._uy||this._len<5;return this.addData(r.L,h,D),this._ctx&&B&&(this._needsDash()?this._dashedLineTo(h,D):this._ctx.lineTo(h,D)),B&&(this._xi=h,this._yi=D),this},bezierCurveTo:function(h,D,B,H,w,c){return this.addData(r.C,h,D,B,H,w,c),this._ctx&&(this._needsDash()?this._dashedBezierTo(h,D,B,H,w,c):this._ctx.bezierCurveTo(h,D,B,H,w,c)),this._xi=w,this._yi=c,this},quadraticCurveTo:function(h,D,B,H){return this.addData(r.Q,h,D,B,H),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(h,D,B,H):this._ctx.quadraticCurveTo(h,D,B,H)),this._xi=B,this._yi=H,this},arc:function(h,D,B,H,w,c){return this.addData(r.A,h,D,B,B,H,w-H,0,c?0:1),this._ctx&&this._ctx.arc(h,D,B,H,w,c),this._xi=E(w)*B+h,this._yi=y(w)*B+D,this},arcTo:function(h,D,B,H,w){return this._ctx&&this._ctx.arcTo(h,D,B,H,w),this},rect:function(h,D,B,H){return this._ctx&&this._ctx.rect(h,D,B,H),this.addData(r.R,h,D,B,H),this},closePath:function(){this.addData(r.Z);var h=this._ctx,D=this._x0,B=this._y0;return h&&(this._needsDash()&&this._dashedLineTo(D,B),h.closePath()),this._xi=D,this._yi=B,this},fill:function(h){h&&h.fill(),this.toStatic()},stroke:function(h){h&&h.stroke(),this.toStatic()},setLineDash:function(h){if(h instanceof Array){this._lineDash=h,this._dashIdx=0;for(var D=0,B=0;BD.length&&(this._expandData(),D=this.data);for(var B=0;B0&&b<=h||F<0&&b>=h||F===0&&(_>0&&R<=D||_<0&&R>=D);){if(Q=this._dashIdx,M=w[Q],b+=F*M,R+=_*M,this._dashIdx=(Q+1)%j,F>0&&bo||_>0&&Rn)continue;c[Q%2?"moveTo":"lineTo"](F>=0?d(b,h):g(b,h),_>=0?d(R,D):g(R,D))}F=b-h,_=R-D,this._dashOffset=-T(F*F+_*_)},_dashedBezierTo:function(h,D,B,H,w,c){var o=this._dashSum,n=this._dashOffset,F=this._lineDash,_=this._ctx,k=this._xi,b=this._yi,R,M,j,Q=O.cubicAt,G=0,ne=this._dashIdx,J=F.length,P,Y,W=0;for(n<0&&(n=o+n),n%=o,R=0;R<1;R+=.1)M=Q(k,h,B,w,R+.1)-Q(k,h,B,w,R),j=Q(b,D,H,c,R+.1)-Q(b,D,H,c,R),G+=T(M*M+j*j);for(;nen);ne++);for(R=(W-n)/G;R<=1;)P=Q(k,h,B,w,R),Y=Q(b,D,H,c,R),ne%2?_.moveTo(P,Y):_.lineTo(P,Y),R+=F[ne]/G,ne=(ne+1)%J;ne%2!==0&&_.lineTo(w,c),M=w-P,j=c-Y,this._dashOffset=-T(M*M+j*j)},_dashedQuadraticTo:function(h,D,B,H){var w=B,c=H;B=(B+2*h)/3,H=(H+2*D)/3,h=(this._xi+2*h)/3,D=(this._yi+2*D)/3,this._dashedBezierTo(h,D,B,H,w,c)},toStatic:function(){var h=this.data;h instanceof Array&&(h.length=this._len,L&&(this.data=new Float32Array(h)))},getBoundingRect:function(){e[0]=e[1]=l[0]=l[1]=Number.MAX_VALUE,s[0]=s[1]=i[0]=i[1]=-Number.MAX_VALUE;for(var h=this.data,D=0,B=0,H=0,w=0,c=0;cF||N(n-c)>_||b===k-1)&&(h.lineTo(o,n),w=o,c=n);break;case r.C:h.bezierCurveTo(D[b++],D[b++],D[b++],D[b++],D[b++],D[b++]),w=D[b-2],c=D[b-1];break;case r.Q:h.quadraticCurveTo(D[b++],D[b++],D[b++],D[b++]),w=D[b-2],c=D[b-1];break;case r.A:var M=D[b++],j=D[b++],Q=D[b++],G=D[b++],ne=D[b++],J=D[b++],P=D[b++],Y=D[b++],W=Q>G?Q:G,oe=Q>G?1:Q/G,$=Q>G?G/Q:1,X=Math.abs(Q-G)>.001,Z=ne+J;X?(h.translate(M,j),h.rotate(P),h.scale(oe,$),h.arc(0,0,W,ne,Z,1-Y),h.scale(1/oe,1/$),h.rotate(-P),h.translate(-M,-j)):h.arc(M,j,W,ne,Z,1-Y),b===1&&(B=E(ne)*Q+M,H=y(ne)*G+j),w=E(Z)*Q+M,c=y(Z)*G+j;break;case r.R:B=w=D[b],H=c=D[b+1],h.rect(D[b++],D[b++],D[b++],D[b++]);break;case r.Z:h.closePath(),w=B,c=H}}}},p.CMD=r;var C=p;ie.exports=C},ItGF:function(ie,x){var t={};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?t={browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document=="undefined"&&typeof self!="undefined"?t={browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator=="undefined"?t={browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:t=f(navigator.userAgent);var O=t;function f(m){var v={},u={},a=m.match(/Firefox\/([\d.]+)/),r=m.match(/MSIE\s([\d.]+)/)||m.match(/Trident\/.+?rv:(([\d.]+))/),e=m.match(/Edge\/([\d.]+)/),s=/micromessenger/i.test(m);return a&&(u.firefox=!0,u.version=a[1]),r&&(u.ie=!0,u.version=r[1]),e&&(u.edge=!0,u.version=e[1]),s&&(u.weChat=!0),{browser:u,os:v,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:typeof SVGRect!="undefined",touchEventsSupported:"ontouchstart"in window&&!u.ie&&!u.edge,pointerEventsSupported:"onpointerdown"in window&&(u.edge||u.ie&&u.version>=11),domSupported:typeof document!="undefined"}}ie.exports=O},J6Nv:function(ie,x){x.isValid=function(O){return!isNaN(O)&&O>=1&&O<=40}},JWDV:function(ie,x,t){ie.exports=t.p+"static/charpter-white.5fa14f93.svg"},JeFH:function(ie,x){ie.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAwCAYAAAD9wT87AAAe2UlEQVR4XtVcB5QUVbr+blV1T+ieGWaYBAwgOSgooJLjENeA6a2KCVfZNbum3VXXsG9VdFfc1TXtGlfXLCKgEiRnUAHJWRzAyTl3V9V957vV1dPTM+M4Hn2Pd8/xIHRV9f3vn77/+/9qgVaWlHIggHMB+AA8K4TIbe2ek/FzKWUmgLGw7THQtLlCiBUn4z6j9ySa26SUMg3A+ZDyaljBMTC87mXrAUwSQtT+fxBOSqmbpjnaMIyrYJnToRvtQ/sOAJgihFh1ssvRSEFSysEAroJlXQZdp8VhXUEAS07UYGavBPSIQz10vacQ4vjJLJiUMgPAhZByJoQYyr0erZFYmFOFZK+GK7szGOB3Qoi/nsxycG9KQVLKKyDltbDMbBge5NYD87+twvxjNdhbZiIoJZZMysRpPqsShreXECL/ZBRMSjkAwM2wzIugG2k2gOW59fjgaDU2FNbjRI2Fm/r48eigdtz+TUKIF05GOSL3JKSUDwN4SALYXBRQwqzIrUNBvQ1DAIYm4BHAJxMz0TPOLoJu9BFClJxsglVVVWXGx8d/IYTIOl4rsSCnGvNzarCvIghLAl5NoN6WuKVPAu4dkMjtXyuEeP1kk6NJDpJSHgTQ8+Ht5Xj5UBWoqBhNQAsFP/6dwi2alIlTYq1caEY/IUT5zyGYl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BFqOrZ5kgCFhYUJqampbAWzp9LCsgDLrgB/t0foByDkdkB1UrdFv5j0s0j1Ax8qpfxdqP/U8h1mIABN5EEYhyHELgBUBv87IAS98/9utUhA19TUZMXFxc0AcCZbIqG5A+YFvhvEMEQXVm4s6Jon6VKzA053dTI46OH8hMARhbwa5OCbboU/9e8//BRH8j9mLdQoDqqNCwAAAABJRU5ErkJggg=="},Jq4h:function(ie,x,t){ie.exports=t.p+"static/qrcode.54870d9b.png"},JzKC:function(ie,x,t){var O=t("Wogr"),f=t("aZ40");x.mul=function(v,u){for(var a=O.alloc(v.length+u.length-1),r=0;r=0;){for(var r=a[0],e=0;e0},extendFrom:function(d,g){if(d)for(var E in d)d.hasOwnProperty(E)&&(g===!0||(g===!1?!this.hasOwnProperty(E):d[E]!=null))&&(this[E]=d[E])},set:function(d,g){typeof d=="string"?this[d]=g:this.extendFrom(d,!0)},clone:function(){var d=new this.constructor;return d.extendFrom(this,!0),d},getGradient:function(d,g,E){for(var y=g.type==="radial"?r:a,T=y(d,g,E),N=g.colorStops,L=0;L=0)continue;if(!Object.prototype.hasOwnProperty.call(d,y))continue;E[y]=d[y]}return E}function e(d,g){if(!(d instanceof g))throw new TypeError("Cannot call a class as a function")}function s(d,g){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:d}function l(d,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);d.prototype=Object.create(g&&g.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(d,g):d.__proto__=g)}var i=function(d){l(g,d);function g(E){e(this,g);var y=s(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,E));return y.scrollListener=y.scrollListener.bind(y),y.eventListenerOptions=y.eventListenerOptions.bind(y),y.mousewheelListener=y.mousewheelListener.bind(y),y}return O(g,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var y=this.getParentElement(this.scrollComponent);y.scrollTop=y.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var y=!1,T={get passive(){y=!0}};try{document.addEventListener("test",null,T),document.removeEventListener("test",null,T)}catch(N){}return y}},{key:"eventListenerOptions",value:function(){var y=this.props.useCapture;return this.isPassiveSupported()&&(y={useCapture:this.props.useCapture,passive:!0}),y}},{key:"setDefaultLoader",value:function(y){this.defaultLoader=y}},{key:"detachMousewheelListener",value:function(){var y=window;this.props.useWindow===!1&&(y=this.scrollComponent.parentNode),y.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var y=window;this.props.useWindow===!1&&(y=this.getParentElement(this.scrollComponent)),y.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),y.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(y){var T=this.props.getScrollParent&&this.props.getScrollParent();return T!=null?T:y&&y.parentNode}},{key:"filterProps",value:function(y){return y}},{key:"attachScrollListener",value:function(){var y=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!y)return;var T=window;this.props.useWindow===!1&&(T=y),T.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),T.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),T.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(y){y.deltaY===1&&!this.isPassiveSupported()&&y.preventDefault()}},{key:"scrollListener",value:function(){var y=this.scrollComponent,T=window,N=this.getParentElement(y),L=void 0;if(this.props.useWindow){var p=document.documentElement||document.body.parentNode||document.body,C=T.pageYOffset!==void 0?T.pageYOffset:p.scrollTop;this.props.isReverse?L=C:L=this.calculateOffset(y,C)}else this.props.isReverse?L=N.scrollTop:L=y.scrollHeight-N.scrollTop-N.clientHeight;L1&&arguments[1]!==void 0?arguments[1]:1,st=he.length,ut=0;ut1&&arguments[1]!==void 0?arguments[1]:!1;return Object(H.a)(ne).map(function(P,Y){if(!u.isValidElement(P)||!P.type)return null;var W=P.type.isSelectOptGroup,oe=P.key,$=P.props,X=$.children,Z=Object(r.a)($,["children"]);return J||!W?w(P):Object(B.a)(Object(B.a)({key:"__RC_SELECT_GRP__".concat(oe===null?Y:oe,"__"),label:oe},Z),{},{options:c(X)})}).filter(function(P){return P})}var o=t("2Qr1"),n=t("qNPg"),F=t("U8pU"),_=t("Kwbf"),k=t("WKfj");function b(ne){var J=ne.mode,P=ne.options,Y=ne.children,W=ne.backfill,oe=ne.allowClear,$=ne.placeholder,X=ne.getInputElement,Z=ne.showSearch,se=ne.onSearch,ae=ne.defaultOpen,ve=ne.autoFocus,V=ne.labelInValue,re=ne.value,I=ne.inputValue,q=ne.optionLabelProp,fe=J==="multiple"||J==="tags",z=Z!==void 0?Z:fe||J==="combobox",A=P||c(Y);if(Object(_.a)(J!=="tags"||A.every(function(de){return!de.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),J==="tags"||J==="combobox"){var S=A.some(function(de){return de.options?de.options.some(function(he){return typeof("value"in he?he.value:he.key)=="number"}):typeof("value"in de?de.value:de.key)=="number"});Object(_.a)(!S,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(_.a)(J!=="combobox"||!q,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(_.a)(J==="combobox"||!W,"`backfill` only works with `combobox` mode."),Object(_.a)(J==="combobox"||!X,"`getInputElement` only work with `combobox` mode."),Object(_.b)(J!=="combobox"||!X||!oe||!$,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),se&&!z&&J!=="combobox"&&J!=="tags"&&Object(_.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(_.b)(!ae||ve,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),re!=null){var K=Object(k.d)(re);Object(_.a)(!V||K.every(function(de){return Object(F.a)(de)==="object"&&("key"in de||"value"in de)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(_.a)(!fe||Array.isArray(re),"`value` should be array when `mode` is `multiple` or `tags`")}if(Y){var ee=null;Object(H.a)(Y).some(function(de){if(!u.isValidElement(de)||!de.type)return!1;var he=de.type;if(he.isSelectOption)return!1;if(he.isSelectOptGroup){var Me=Object(H.a)(de.props.children).every(function(ce){return!u.isValidElement(ce)||!de.type||ce.type.isSelectOption?!0:(ee=ce.type,!1)});return!Me}return ee=he,!0}),ee&&Object(_.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ee.displayName||ee.name||ee,"`.")),Object(_.a)(I===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var R=b,M=Object(n.a)({prefixCls:"rc-select",components:{optionList:L},convertChildrenToData:c,flattenOptions:o.d,getLabeledValue:o.e,filterOptions:o.b,isValueDisabled:o.g,findValueOption:o.c,warningProps:R,fillOptionsWithMissingValue:o.a}),j=function(ne){Object(m.a)(P,ne);var J=Object(v.a)(P);function P(){var Y;return Object(O.a)(this,P),Y=J.apply(this,arguments),Y.selectRef=u.createRef(),Y.focus=function(){Y.selectRef.current.focus()},Y.blur=function(){Y.selectRef.current.blur()},Y}return Object(f.a)(P,[{key:"render",value:function(){return u.createElement(M,Object.assign({ref:this.selectRef},this.props))}}]),P}(u.Component);j.Option=C,j.OptGroup=D;var Q=j,G=x.c=Q},Lzq4:function(ie,x,t){var O=t("u/Db"),f=t("e/Dd");function m(v){this.mode=O.KANJI,this.data=v}m.getBitsLength=function(u){return u*13},m.prototype.getLength=function(){return this.data.length},m.prototype.getBitsLength=function(){return m.getBitsLength(this.data.length)},m.prototype.write=function(v){var u;for(u=0;u=33088&&a<=40956)a-=33088;else if(a>=57408&&a<=60351)a-=49472;else throw new Error("Invalid SJIS character: "+this.data[u]+` -Make sure your charset is UTF-8`);a=(a>>>8&255)*192+(a&255),v.put(a,13)}},ie.exports=m},MEGo:function(ie,x,t){var O=t("4fz+"),f=t("Dagg"),m=t("dqUG"),v=t("2fw6"),u=t("x6Kt"),a=t("rmlV"),r=t("yxFR"),e=t("y+Vt"),s=t("h7HQ"),l=t("1Jh7"),i=t("SKnc"),d=t("K2GJ"),g=t("Fofx"),E=t("NC18"),y=E.createFromString,T=t("bYtY"),N=T.isString,L=T.extend,p=T.defaults,C=T.trim,h=T.each,D=/[\s,]+/;function B(P){if(N(P)){var Y=new DOMParser;P=Y.parseFromString(P,"text/xml")}for(P.nodeType===9&&(P=P.firstChild);P.nodeName.toLowerCase()!=="svg"||P.nodeType!==1;)P=P.nextSibling;return P}function H(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}H.prototype.parse=function(P,Y){Y=Y||{};var W=B(P);if(!W)throw new Error("Illegal svg");var oe=new O;this._root=oe;var $=W.getAttribute("viewBox")||"",X=parseFloat(W.getAttribute("width")||Y.width),Z=parseFloat(W.getAttribute("height")||Y.height);isNaN(X)&&(X=null),isNaN(Z)&&(Z=null),k(W,oe,null,!0);for(var se=W.firstChild;se;)this._parseNode(se,oe),se=se.nextSibling;var ae,ve;if($){var V=C($).split(D);V.length>=4&&(ae={x:parseFloat(V[0]||0),y:parseFloat(V[1]||0),width:parseFloat(V[2]),height:parseFloat(V[3])})}if(ae&&X!=null&&Z!=null&&(ve=ne(ae,X,Z),!Y.ignoreViewBox)){var re=oe;oe=new O,oe.add(re),re.scale=ve.scale.slice(),re.position=ve.position.slice()}return!Y.ignoreRootClip&&X!=null&&Z!=null&&oe.setClipPath(new u({shape:{x:0,y:0,width:X,height:Z}})),{root:oe,width:X,height:Z,viewBoxRect:ae,viewBoxTransform:ve}},H.prototype._parseNode=function(P,Y){var W=P.nodeName.toLowerCase();W==="defs"?this._isDefine=!0:W==="text"&&(this._isText=!0);var oe;if(this._isDefine){var $=c[W];if($){var X=$.call(this,P),Z=P.getAttribute("id");Z&&(this._defs[Z]=X)}}else{var $=w[W];$&&(oe=$.call(this,P,Y),Y.add(oe))}for(var se=P.firstChild;se;)se.nodeType===1&&this._parseNode(se,oe),se.nodeType===3&&this._isText&&this._parseText(se,oe),se=se.nextSibling;W==="defs"?this._isDefine=!1:W==="text"&&(this._isText=!1)},H.prototype._parseText=function(P,Y){if(P.nodeType===1){var W=P.getAttribute("dx")||0,oe=P.getAttribute("dy")||0;this._textX+=parseFloat(W),this._textY+=parseFloat(oe)}var $=new m({style:{text:P.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});n(Y,$),k(P,$,this._defs);var X=$.style.fontSize;X&&X<9&&($.style.fontSize=9,$.scale=$.scale||[1,1],$.scale[0]*=X/9,$.scale[1]*=X/9);var Z=$.getBoundingRect();return this._textX+=Z.width,Y.add($),$};var w={g:function(P,Y){var W=new O;return n(Y,W),k(P,W,this._defs),W},rect:function(P,Y){var W=new u;return n(Y,W),k(P,W,this._defs),W.setShape({x:parseFloat(P.getAttribute("x")||0),y:parseFloat(P.getAttribute("y")||0),width:parseFloat(P.getAttribute("width")||0),height:parseFloat(P.getAttribute("height")||0)}),W},circle:function(P,Y){var W=new v;return n(Y,W),k(P,W,this._defs),W.setShape({cx:parseFloat(P.getAttribute("cx")||0),cy:parseFloat(P.getAttribute("cy")||0),r:parseFloat(P.getAttribute("r")||0)}),W},line:function(P,Y){var W=new r;return n(Y,W),k(P,W,this._defs),W.setShape({x1:parseFloat(P.getAttribute("x1")||0),y1:parseFloat(P.getAttribute("y1")||0),x2:parseFloat(P.getAttribute("x2")||0),y2:parseFloat(P.getAttribute("y2")||0)}),W},ellipse:function(P,Y){var W=new a;return n(Y,W),k(P,W,this._defs),W.setShape({cx:parseFloat(P.getAttribute("cx")||0),cy:parseFloat(P.getAttribute("cy")||0),rx:parseFloat(P.getAttribute("rx")||0),ry:parseFloat(P.getAttribute("ry")||0)}),W},polygon:function(P,Y){var W=P.getAttribute("points");W&&(W=F(W));var oe=new s({shape:{points:W||[]}});return n(Y,oe),k(P,oe,this._defs),oe},polyline:function(P,Y){var W=new e;n(Y,W),k(P,W,this._defs);var oe=P.getAttribute("points");oe&&(oe=F(oe));var $=new l({shape:{points:oe||[]}});return $},image:function(P,Y){var W=new f;return n(Y,W),k(P,W,this._defs),W.setStyle({image:P.getAttribute("xlink:href"),x:P.getAttribute("x"),y:P.getAttribute("y"),width:P.getAttribute("width"),height:P.getAttribute("height")}),W},text:function(P,Y){var W=P.getAttribute("x")||0,oe=P.getAttribute("y")||0,$=P.getAttribute("dx")||0,X=P.getAttribute("dy")||0;this._textX=parseFloat(W)+parseFloat($),this._textY=parseFloat(oe)+parseFloat(X);var Z=new O;return n(Y,Z),k(P,Z,this._defs),Z},tspan:function(P,Y){var W=P.getAttribute("x"),oe=P.getAttribute("y");W!=null&&(this._textX=parseFloat(W)),oe!=null&&(this._textY=parseFloat(oe));var $=P.getAttribute("dx")||0,X=P.getAttribute("dy")||0,Z=new O;return n(Y,Z),k(P,Z,this._defs),this._textX+=$,this._textY+=X,Z},path:function(P,Y){var W=P.getAttribute("d")||"",oe=y(W);return n(Y,oe),k(P,oe,this._defs),oe}},c={lineargradient:function(P){var Y=parseInt(P.getAttribute("x1")||0,10),W=parseInt(P.getAttribute("y1")||0,10),oe=parseInt(P.getAttribute("x2")||10,10),$=parseInt(P.getAttribute("y2")||0,10),X=new i(Y,W,oe,$);return o(P,X),X},radialgradient:function(P){}};function o(P,Y){for(var W=P.firstChild;W;){if(W.nodeType===1){var oe=W.getAttribute("offset");oe.indexOf("%")>0?oe=parseInt(oe,10)/100:oe?oe=parseFloat(oe):oe=0;var $=W.getAttribute("stop-color")||"#000000";Y.addColorStop(oe,$)}W=W.nextSibling}}function n(P,Y){P&&P.__inheritedStyle&&(Y.__inheritedStyle||(Y.__inheritedStyle={}),p(Y.__inheritedStyle,P.__inheritedStyle))}function F(P){for(var Y=C(P).split(D),W=[],oe=0;oe0;X-=2){var Z=$[X],se=$[X-1];oe=oe||g.create();switch(se){case"translate":Z=C(Z).split(D),g.translate(oe,oe,[parseFloat(Z[0]),parseFloat(Z[1]||0)]);break;case"scale":Z=C(Z).split(D),g.scale(oe,oe,[parseFloat(Z[0]),parseFloat(Z[1]||Z[0])]);break;case"rotate":Z=C(Z).split(D),g.rotate(oe,oe,parseFloat(Z[0]));break;case"skew":Z=C(Z).split(D),console.warn("Skew transform is not supported yet");break;case"matrix":var Z=C(Z).split(D);oe[0]=parseFloat(Z[0]),oe[1]=parseFloat(Z[1]),oe[2]=parseFloat(Z[2]),oe[3]=parseFloat(Z[3]),oe[4]=parseFloat(Z[4]),oe[5]=parseFloat(Z[5]);break}}Y.setLocalTransform(oe)}}var Q=/([^\s:;]+)\s*:\s*([^:;]+)/g;function G(P){var Y=P.getAttribute("style"),W={};if(!Y)return W;var oe={};Q.lastIndex=0;for(var $;($=Q.exec(Y))!=null;)oe[$[1]]=$[2];for(var X in _)_.hasOwnProperty(X)&&oe[X]!=null&&(W[_[X]]=oe[X]);return W}function ne(P,Y,W){var oe=Y/P.width,$=W/P.height,X=Math.min(oe,$),Z=[X,X],se=[-(P.x+P.width/2)*X+Y/2,-(P.y+P.height/2)*X+W/2];return{scale:Z,position:se}}function J(P,Y){var W=new H;return W.parse(P,Y)}x.parseXML=B,x.makeViewBoxTransform=ne,x.parseSVG=J},MKOG:function(ie,x,t){var O=t("bYtY"),f=t("YH21"),m=f.Dispatcher,v=t("mLcG"),u=t("Bq2U"),a=function(e){e=e||{},this.stage=e.stage||{},this.onframe=e.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,m.call(this)};a.prototype={constructor:a,addClip:function(e){this._clips.push(e)},addAnimator:function(e){e.animation=this;for(var s=e.getClips(),l=0;l=0&&this._clips.splice(s,1)},removeAnimator:function(e){for(var s=e.getClips(),l=0;l1&&(w*=v(R),c*=v(R));var M=(B===H?-1:1)*v((w*w*(c*c)-w*w*(b*b)-c*c*(k*k))/(w*w*(b*b)+c*c*(k*k)))||0,j=M*w*b/c,Q=M*-c*k/w,G=(p+h)/2+a(_)*j-u(_)*Q,ne=(C+D)/2+u(_)*j+a(_)*Q,J=l([1,0],[(k-j)/w,(b-Q)/c]),P=[(k-j)/w,(b-Q)/c],Y=[(-1*k-j)/w,(-1*b-Q)/c],W=l(P,Y);s(P,Y)<=-1&&(W=r),s(P,Y)>=1&&(W=0),H===0&&W>0&&(W=W-2*r),H===1&&W<0&&(W=W+2*r),F.addData(n,G,ne,w,c,J,W,_,H)}var d=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,g=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function E(p){if(!p)return new f;for(var C=0,h=0,D=C,B=h,H,w=new f,c=f.CMD,o=p.match(d),n=0;n1&&arguments[1]!==void 0?arguments[1]:60,u=null;return function(){for(var a=this,r=arguments.length,e=new Array(r),s=0;s=0;T-=1){var N=e.get(T)||new Set;N.forEach(function(L){var p=L.parent,C=L.node;if(l(C)||!L.parent||y.has(L.parent.key))return;if(l(L.parent.node)){y.add(p.key);return}var h=!0,D=!1;(p.children||[]).filter(function(B){return!l(B.node)}).forEach(function(B){var H=B.key,w=i.has(H);h&&!w&&(h=!1),!D&&(w||d.has(H))&&(D=!0)}),h&&i.add(p.key),D&&d.add(p.key),y.add(p.key)})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(f(d,i))}}function u(r,e,s,l,i){for(var d=new Set(r),g=new Set(e),E=0;E<=l;E+=1){var y=s.get(E)||new Set;y.forEach(function(p){var C=p.key,h=p.node,D=p.children,B=D===void 0?[]:D;!d.has(C)&&!g.has(C)&&!i(h)&&B.filter(function(H){return!i(H.node)}).forEach(function(H){d.delete(H.key)})})}g=new Set;for(var T=new Set,N=l;N>=0;N-=1){var L=s.get(N)||new Set;L.forEach(function(p){var C=p.parent,h=p.node;if(i(h)||!p.parent||T.has(p.parent.key))return;if(i(p.parent.node)){T.add(C.key);return}var D=!0,B=!1;(C.children||[]).filter(function(H){return!i(H.node)}).forEach(function(H){var w=H.key,c=d.has(w);D&&!c&&(D=!1),!B&&(c||g.has(w))&&(B=!0)}),D||d.delete(C.key),B&&g.add(C.key),T.add(C.key)})}return{checkedKeys:Array.from(d),halfCheckedKeys:Array.from(f(g,d))}}function a(r,e,s,l){var i=[],d;l?d=l:d=m;var g=new Set(r.filter(function(N){var L=!!s[N];return L||i.push(N),L})),E=new Map,y=0;Object.keys(s).forEach(function(N){var L=s[N],p=L.level,C=E.get(p);C||(C=new Set,E.set(p,C)),C.add(L),y=Math.max(y,p)}),Object(O.a)(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map(function(N){return"'".concat(N,"'")}).join(", ")));var T;return e===!0?T=v(g,E,y,d):T=u(g,e.halfCheckedKeys,E,y,d),T}},OLES:function(ie,x,t){"use strict";var O=t("U8pU"),f=t("VTBJ"),m=t("Ff2n"),v=t("q1tI"),u=t("uciX"),a=t("7ixt"),r=function(g){var E=g.overlay,y=g.prefixCls,T=g.id,N=g.overlayInnerStyle;return v.createElement("div",{className:"".concat(y,"-inner"),id:T,role:"tooltip",style:N},typeof E=="function"?E():E)},e=r,s=function(g,E){var y=g.overlayClassName,T=g.trigger,N=T===void 0?["hover"]:T,L=g.mouseEnterDelay,p=L===void 0?0:L,C=g.mouseLeaveDelay,h=C===void 0?.1:C,D=g.overlayStyle,B=g.prefixCls,H=B===void 0?"rc-tooltip":B,w=g.children,c=g.onVisibleChange,o=g.afterVisibleChange,n=g.transitionName,F=g.animation,_=g.placement,k=_===void 0?"right":_,b=g.align,R=b===void 0?{}:b,M=g.destroyTooltipOnHide,j=M===void 0?!1:M,Q=g.defaultVisible,G=g.getTooltipContainer,ne=g.overlayInnerStyle,J=Object(m.a)(g,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),P=Object(v.useRef)(null);Object(v.useImperativeHandle)(E,function(){return P.current});var Y=Object(f.a)({},J);"visible"in g&&(Y.popupVisible=g.visible);var W=function(){var se=g.arrowContent,ae=se===void 0?null:se,ve=g.overlay,V=g.id;return[v.createElement("div",{className:"".concat(H,"-arrow"),key:"arrow"},ae),v.createElement(e,{key:"content",prefixCls:H,id:V,overlay:ve,overlayInnerStyle:ne})]},oe=!1,$=!1;if(typeof j=="boolean")oe=j;else if(j&&Object(O.a)(j)==="object"){var X=j.keepParent;oe=X===!0,$=X===!1}return v.createElement(u.a,Object.assign({popupClassName:y,prefixCls:H,popup:W,action:N,builtinPlacements:a.a,popupPlacement:k,ref:P,popupAlign:R,getPopupContainer:G,onPopupVisibleChange:c,afterPopupVisibleChange:o,popupTransitionName:n,popupAnimation:F,defaultPopupVisible:Q,destroyPopupOnHide:oe,autoDestroy:$,mouseLeaveDelay:h,popupStyle:D,mouseEnterDelay:p},Y),w)},l=Object(v.forwardRef)(s),i=x.a=l},OS9S:function(ie,x,t){var O=t("bYtY"),f=O.inherits,m=t("Gev7"),v=t("mFDi");function u(e){m.call(this,e),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}u.prototype.incremental=!0,u.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},u.prototype.addDisplayable=function(e,s){s?this._temporaryDisplayables.push(e):this._displayables.push(e),this.dirty()},u.prototype.addDisplayables=function(e,s){s=s||!1;for(var l=0;l=0&&w.splice(c,1),w}function i(B,H){var w=B.slice();return w.indexOf(H)===-1&&w.push(H),w}function d(B){return B.split("-")}function g(B,H){return"".concat(B,"-").concat(H)}function E(B){return B&&B.type&&B.type.isTreeNode}function y(B,H){var w=[B],c=H[B];function o(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];n.forEach(function(F){var _=F.key,k=F.children;w.push(_),o(k)})}return o(c.children),w}function T(B,H){var w=B.clientY,c=H.selectHandle.getBoundingClientRect(),o=c.top,n=c.bottom,F=c.height,_=Math.max(F*e,s);return w<=o+_?-1:w>=n-_?1:0}function N(B,H){if(!B)return;var w=H.multiple;return w?B.slice():B.length?[B[0]]:B}var L=function(H){return H};function p(B,H){if(!B)return[];var w=H||{},c=w.processProps,o=c===void 0?L:c,n=Array.isArray(B)?B:[B];return n.map(function(F){var _=F.children,k=Object(m.a)(F,["children"]),b=p(_,H);return u.a.createElement(r.a,Object.assign({},o(k)),b)})}function C(B){if(!B)return null;var H;if(Array.isArray(B))H={checkedKeys:B,halfCheckedKeys:void 0};else if(Object(f.a)(B)==="object")H={checkedKeys:B.checked||void 0,halfCheckedKeys:B.halfChecked||void 0};else return Object(a.a)(!1,"`checkedKeys` is not an array or an object"),null;return H}function h(B,H){var w=new Set;function c(o){if(w.has(o))return;var n=H[o];if(!n)return;w.add(o);var F=n.parent,_=n.node;if(_.disabled)return;F&&c(F.key)}return(B||[]).forEach(function(o){c(o)}),Object(O.a)(w)}function D(B){var H={};return Object.keys(B).forEach(function(w){(w.startsWith("data-")||w.startsWith("aria-"))&&(H[w]=B[w])}),H}},Ohmc:function(ie,x,t){ie.exports=t.p+"static/certificate.fc32dc1b.jpg"},P47w:function(ie,x,t){var O=t("hydK"),f=O.createElement,m=t("IMiH"),v=t("mFDi"),u=t("Fofx"),a=t("6GrX"),r=t("pzxd"),e=t("dqUG"),s=m.CMD,l=Array.prototype.join,i="none",d=Math.round,g=Math.sin,E=Math.cos,y=Math.PI,T=Math.PI*2,N=180/y,L=1e-4;function p(P){return d(P*1e4)/1e4}function C(P){return P-L}function h(P,Y){var W=Y?P.textFill:P.fill;return W!=null&&W!==i}function D(P,Y){var W=Y?P.textStroke:P.stroke;return W!=null&&W!==i}function B(P,Y){Y&&H(P,"transform","matrix("+l.call(Y,",")+")")}function H(P,Y,W){(!W||W.type!=="linear"&&W.type!=="radial")&&P.setAttribute(Y,W)}function w(P,Y,W){P.setAttributeNS("http://www.w3.org/1999/xlink",Y,W)}function c(P,Y,W,oe){if(h(Y,W)){var $=W?Y.textFill:Y.fill;$=$==="transparent"?i:$,H(P,"fill",$),H(P,"fill-opacity",Y.fillOpacity!=null?Y.fillOpacity*Y.opacity:Y.opacity)}else H(P,"fill",i);if(D(Y,W)){var X=W?Y.textStroke:Y.stroke;X=X==="transparent"?i:X,H(P,"stroke",X);var Z=W?Y.textStrokeWidth:Y.lineWidth,se=!W&&Y.strokeNoScale?oe.getLineScale():1;H(P,"stroke-width",Z/se),H(P,"paint-order",W?"stroke":"fill"),H(P,"stroke-opacity",Y.strokeOpacity!=null?Y.strokeOpacity:Y.opacity);var ae=Y.lineDash;ae?(H(P,"stroke-dasharray",Y.lineDash.join(",")),H(P,"stroke-dashoffset",d(Y.lineDashOffset||0))):H(P,"stroke-dasharray",""),Y.lineCap&&H(P,"stroke-linecap",Y.lineCap),Y.lineJoin&&H(P,"stroke-linejoin",Y.lineJoin),Y.miterLimit&&H(P,"stroke-miterlimit",Y.miterLimit)}else H(P,"stroke",i)}function o(P){for(var Y=[],W=P.data,oe=P.len(),$=0;$=T:-q>=T),K=q>0?q%T:q%T+T,ee=!1;S?ee=!0:C(A)?ee=!1:ee=K>=y===!!z;var de=p(ae+V*E(I)),he=p(ve+re*g(I));S&&(z?q=T-1e-4:q=-T+1e-4,ee=!0,$===9&&Y.push("M",de,he));var Me=p(ae+V*E(I+q)),ce=p(ve+re*g(I+q));Y.push("A",p(V),p(re),d(fe*N),+ee,+z,Me,ce);break;case s.Z:Z="Z";break;case s.R:var Me=p(W[$++]),ce=p(W[$++]),be=p(W[$++]),Ae=p(W[$++]);Y.push("M",Me,ce,"L",Me+be,ce,"L",Me+be,ce+Ae,"L",Me,ce+Ae,"L",Me,ce);break}Z&&Y.push(Z);for(var ye=0;yeke){for(;Ae0&&g>0&&u[d-1]||(e+=l?m("M",g+r,.5+E+r):m("m",s,0),s=0,l=!1),g+1':"",E="',y='viewBox="0 0 '+d+" "+d+'"',T=s.width?'width="'+s.width+'" height="'+s.width+'" ':"",N=''+g+E+` -`;return typeof e=="function"&&e(null,N),N}},QBsz:function(ie,x){var t=typeof Float32Array=="undefined"?Array:Float32Array;function O(c,o){var n=new t(2);return c==null&&(c=0),o==null&&(o=0),n[0]=c,n[1]=o,n}function f(c,o){return c[0]=o[0],c[1]=o[1],c}function m(c){var o=new t(2);return o[0]=c[0],o[1]=c[1],o}function v(c,o,n){return c[0]=o,c[1]=n,c}function u(c,o,n){return c[0]=o[0]+n[0],c[1]=o[1]+n[1],c}function a(c,o,n,F){return c[0]=o[0]+n[0]*F,c[1]=o[1]+n[1]*F,c}function r(c,o,n){return c[0]=o[0]-n[0],c[1]=o[1]-n[1],c}function e(c){return Math.sqrt(l(c))}var s=e;function l(c){return c[0]*c[0]+c[1]*c[1]}var i=l;function d(c,o,n){return c[0]=o[0]*n[0],c[1]=o[1]*n[1],c}function g(c,o,n){return c[0]=o[0]/n[0],c[1]=o[1]/n[1],c}function E(c,o){return c[0]*o[0]+c[1]*o[1]}function y(c,o,n){return c[0]=o[0]*n,c[1]=o[1]*n,c}function T(c,o){var n=e(o);return n===0?(c[0]=0,c[1]=0):(c[0]=o[0]/n,c[1]=o[1]/n),c}function N(c,o){return Math.sqrt((c[0]-o[0])*(c[0]-o[0])+(c[1]-o[1])*(c[1]-o[1]))}var L=N;function p(c,o){return(c[0]-o[0])*(c[0]-o[0])+(c[1]-o[1])*(c[1]-o[1])}var C=p;function h(c,o){return c[0]=-o[0],c[1]=-o[1],c}function D(c,o,n,F){return c[0]=o[0]+F*(n[0]-o[0]),c[1]=o[1]+F*(n[1]-o[1]),c}function B(c,o,n){var F=o[0],_=o[1];return c[0]=n[0]*F+n[2]*_+n[4],c[1]=n[1]*F+n[3]*_+n[5],c}function H(c,o,n){return c[0]=Math.min(o[0],n[0]),c[1]=Math.min(o[1],n[1]),c}function w(c,o,n){return c[0]=Math.max(o[0],n[0]),c[1]=Math.max(o[1],n[1]),c}x.create=O,x.copy=f,x.clone=m,x.set=v,x.add=u,x.scaleAndAdd=a,x.sub=r,x.len=e,x.length=s,x.lenSquare=l,x.lengthSquare=i,x.mul=d,x.div=g,x.dot=E,x.scale=y,x.normalize=T,x.distance=N,x.dist=L,x.distanceSquare=p,x.distSquare=C,x.negate=h,x.lerp=D,x.applyTransform=B,x.min=H,x.max=w},"QO+J":function(ie,x,t){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.createSensor=void 0;var O=m(t("NohK")),f=t("24YM");function m(u){return u&&u.__esModule?u:{default:u}}var v=function(a){var r=void 0,e=[],s=function(){getComputedStyle(a).position==="static"&&(a.style.position="relative");var y=document.createElement("object");return y.onload=function(){y.contentDocument.defaultView.addEventListener("resize",l),l()},y.style.display="block",y.style.position="absolute",y.style.top="0",y.style.left="0",y.style.height="100%",y.style.width="100%",y.style.overflow="hidden",y.style.pointerEvents="none",y.style.zIndex="-1",y.style.opacity="0",y.setAttribute("class",f.SensorClassName),y.setAttribute("tabindex",f.SensorTabIndex),y.type="text/html",a.appendChild(y),y.data="about:blank",y},l=(0,O.default)(function(){e.forEach(function(E){E(a)})}),i=function(y){r||(r=s()),e.indexOf(y)===-1&&e.push(y)},d=function(){r&&r.parentNode&&(r.contentDocument&&r.contentDocument.defaultView.removeEventListener("resize",l),r.parentNode.removeChild(r),r=void 0,e=[])},g=function(y){var T=e.indexOf(y);T!==-1&&e.splice(T,1),e.length===0&&r&&d()};return{element:a,bind:i,destroy:d,unbind:g}};x.createSensor=v},QUaw:function(ie,x,t){var O=t("Rb7d");function f(v,u,a){v.clearRect(0,0,u.width,u.height),u.style||(u.style={}),u.height=a,u.width=a,u.style.height=a+"px",u.style.width=a+"px"}function m(){try{return document.createElement("canvas")}catch(v){throw new Error("You need to specify a canvas element")}}x.render=function(u,a,r){var e=r,s=a;typeof e=="undefined"&&(!a||!a.getContext)&&(e=a,a=void 0),a||(s=m()),e=O.getOptions(e);var l=O.getImageWidth(u.modules.size,e),i=s.getContext("2d"),d=i.createImageData(l,l);return O.qrToImageData(d.data,u,e),f(i,s,l),i.putImageData(d,0,0),s},x.renderToDataURL=function(u,a,r){var e=r;typeof e=="undefined"&&(!a||!a.getContext)&&(e=a,a=void 0),e||(e={});var s=x.render(u,a,e),l=e.type||"image/png",i=e.rendererOpts||{};return s.toDataURL(l,i.quality)}},Qe9p:function(ie,x,t){var O=t("1RvN"),f={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function m(o){return o=Math.round(o),o<0?0:o>255?255:o}function v(o){return o=Math.round(o),o<0?0:o>360?360:o}function u(o){return o<0?0:o>1?1:o}function a(o){return o.length&&o.charAt(o.length-1)==="%"?m(parseFloat(o)/100*255):m(parseInt(o,10))}function r(o){return o.length&&o.charAt(o.length-1)==="%"?u(parseFloat(o)/100):u(parseFloat(o))}function e(o,n,F){return F<0?F+=1:F>1&&(F-=1),F*6<1?o+(n-o)*F*6:F*2<1?n:F*3<2?o+(n-o)*(2/3-F)*6:o}function s(o,n,F){return o+(n-o)*F}function l(o,n,F,_,k){return o[0]=n,o[1]=F,o[2]=_,o[3]=k,o}function i(o,n){return o[0]=n[0],o[1]=n[1],o[2]=n[2],o[3]=n[3],o}var d=new O(20),g=null;function E(o,n){g&&i(g,n),g=d.put(o,g||n.slice())}function y(o,n){if(!o)return;n=n||[];var F=d.get(o);if(F)return i(n,F);o=o+"";var _=o.replace(/ /g,"").toLowerCase();if(_ in f)return i(n,f[_]),E(o,n),n;if(_.charAt(0)==="#"){if(_.length===4){var k=parseInt(_.substr(1),16);if(!(k>=0&&k<=4095)){l(n,0,0,0,1);return}return l(n,(k&3840)>>4|(k&3840)>>8,k&240|(k&240)>>4,k&15|(k&15)<<4,1),E(o,n),n}else if(_.length===7){var k=parseInt(_.substr(1),16);if(!(k>=0&&k<=16777215)){l(n,0,0,0,1);return}return l(n,(k&16711680)>>16,(k&65280)>>8,k&255,1),E(o,n),n}return}var b=_.indexOf("("),R=_.indexOf(")");if(b!==-1&&R+1===_.length){var M=_.substr(0,b),j=_.substr(b+1,R-(b+1)).split(","),Q=1;switch(M){case"rgba":if(j.length!==4){l(n,0,0,0,1);return}Q=r(j.pop());case"rgb":if(j.length!==3){l(n,0,0,0,1);return}return l(n,a(j[0]),a(j[1]),a(j[2]),Q),E(o,n),n;case"hsla":if(j.length!==4){l(n,0,0,0,1);return}return j[3]=r(j[3]),T(j,n),E(o,n),n;case"hsl":if(j.length!==3){l(n,0,0,0,1);return}return T(j,n),E(o,n),n;default:return}}l(n,0,0,0,1);return}function T(o,n){var F=(parseFloat(o[0])%360+360)%360/360,_=r(o[1]),k=r(o[2]),b=k<=.5?k*(_+1):k+_-k*_,R=k*2-b;return n=n||[],l(n,m(e(R,b,F+1/3)*255),m(e(R,b,F)*255),m(e(R,b,F-1/3)*255),1),o.length===4&&(n[3]=o[3]),n}function N(o){if(!o)return;var n=o[0]/255,F=o[1]/255,_=o[2]/255,k=Math.min(n,F,_),b=Math.max(n,F,_),R=b-k,M=(b+k)/2,j,Q;if(R===0)j=0,Q=0;else{M<.5?Q=R/(b+k):Q=R/(2-b-k);var G=((b-n)/6+R/2)/R,ne=((b-F)/6+R/2)/R,J=((b-_)/6+R/2)/R;n===b?j=J-ne:F===b?j=1/3+G-J:_===b&&(j=2/3+ne-G),j<0&&(j+=1),j>1&&(j-=1)}var P=[j*360,Q,M];return o[3]!=null&&P.push(o[3]),P}function L(o,n){var F=y(o);if(F){for(var _=0;_<3;_++)n<0?F[_]=F[_]*(1-n)|0:F[_]=(255-F[_])*n+F[_]|0,F[_]>255?F[_]=255:o[_]<0&&(F[_]=0);return c(F,F.length===4?"rgba":"rgb")}}function p(o){var n=y(o);if(n)return((1<<24)+(n[0]<<16)+(n[1]<<8)+ +n[2]).toString(16).slice(1)}function C(o,n,F){if(!(n&&n.length)||!(o>=0&&o<=1))return;F=F||[];var _=o*(n.length-1),k=Math.floor(_),b=Math.ceil(_),R=n[k],M=n[b],j=_-k;return F[0]=m(s(R[0],M[0],j)),F[1]=m(s(R[1],M[1],j)),F[2]=m(s(R[2],M[2],j)),F[3]=u(s(R[3],M[3],j)),F}var h=C;function D(o,n,F){if(!(n&&n.length)||!(o>=0&&o<=1))return;var _=o*(n.length-1),k=Math.floor(_),b=Math.ceil(_),R=y(n[k]),M=y(n[b]),j=_-k,Q=c([m(s(R[0],M[0],j)),m(s(R[1],M[1],j)),m(s(R[2],M[2],j)),u(s(R[3],M[3],j))],"rgba");return F?{color:Q,leftIndex:k,rightIndex:b,value:_}:Q}var B=D;function H(o,n,F,_){if(o=y(o),o)return o=N(o),n!=null&&(o[0]=v(n)),F!=null&&(o[1]=r(F)),_!=null&&(o[2]=r(_)),c(T(o),"rgba")}function w(o,n){if(o=y(o),o&&n!=null)return o[3]=u(n),c(o,"rgba")}function c(o,n){if(!o||!o.length)return;var F=o[0]+","+o[1]+","+o[2];return(n==="rgba"||n==="hsva"||n==="hsla")&&(F+=","+o[3]),n+"("+F+")"}x.parse=y,x.lift=L,x.toHex=p,x.fastLerp=C,x.fastMapToColor=h,x.lerp=D,x.mapToColor=B,x.modifyHSL=H,x.modifyAlpha=w,x.stringify=c},QuXc:function(ie,x){var t=function(f){this.colorStops=f||[]};t.prototype={constructor:t,addColorStop:function(f,m){this.colorStops.push({offset:f,color:m})}};var O=t;ie.exports=O},RDYZ:function(ie,x,t){var O=t("dMvE");function f(v){this._target=v.target,this._life=v.life||1e3,this._delay=v.delay||0,this._initialized=!1,this.loop=v.loop==null?!1:v.loop,this.gap=v.gap||0,this.easing=v.easing||"Linear",this.onframe=v.onframe,this.ondestroy=v.ondestroy,this.onrestart=v.onrestart,this._pausedTime=0,this._paused=!1}f.prototype={constructor:f,step:function(v,u){if(this._initialized||(this._startTime=v+this._delay,this._initialized=!0),this._paused){this._pausedTime+=u;return}var a=(v-this._startTime-this._pausedTime)/this._life;if(a<0)return;a=Math.min(a,1);var r=this.easing,e=typeof r=="string"?O[r]:r,s=typeof e=="function"?e(a):a;return this.fire("frame",s),a===1?this.loop?(this.restart(v),"restart"):(this._needsRemove=!0,"destroy"):null},restart:function(v){var u=(v-this._startTime-this._pausedTime)%this._life;this._startTime=v-u+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(v,u){v="on"+v,this[v]&&this[v](this._target,u)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var m=f;ie.exports=m},RMFE:function(ie,x){ie.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWgAAAFyCAYAAADYqEAoAAAAAXNSR0IArs4c6QAADetJREFUeAHt1jFqXUEQRUHLaP9b/jZObmYU9MAJSlGDxNBUPw76+vz9+eWHAAECBHICv3MbWYgAAQIE/gkItA+BAAECUQGBjh7GWgQIEBBo3wABAgSiAgIdPYy1CBAgINC+AQIECEQFBDp6GGsRIEBAoH0DBAgQiAoIdPQw1iJAgIBA+wYIECAQFRDo6GGsRYAAAYH2DRAgQCAqINDRw1iLAAECAu0bIECAQFRAoKOHsRYBAgQE2jdAgACBqIBARw9jLQIECAi0b4AAAQJRAYGOHsZaBAgQEGjfAAECBKICAh09jLUIECAg0L4BAgQIRAUEOnoYaxEgQECgfQMECBCICgh09DDWIkCAgED7BggQIBAVEOjoYaxFgAABgfYNECBAICog0NHDWIsAAQIC7RsgQIBAVECgo4exFgECBATaN0CAAIGogEBHD2MtAgQICLRvgAABAlEBgY4exloECBAQaN8AAQIEogICHT2MtQgQICDQvgECBAhEBQQ6ehhrESBAQKB9AwQIEIgKCHT0MNYiQICAQPsGCBAgEBUQ6OhhrEWAAAGB9g0QIEAgKiDQ0cNYiwABAgLtGyBAgEBUQKCjh7EWAQIEBNo3QIAAgaiAQEcPYy0CBAh8/5Tg6+vrp3/q7wgQIEDgPwKfz+c/v92v/Ac9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQ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OhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICXz/dJvP5/PTP/V3BAgQIHAg4D/oA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IXAH7PYDOHnuk1pAAAAAElFTkSuQmCC"},RXMa:function(ie,x,t){var O=t("y+Vt"),f=O.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(m,v){var u=v.cx,a=v.cy,r=Math.PI*2;m.moveTo(u+v.r,a),m.arc(u,a,v.r,0,r,!1),m.moveTo(u+v.r0,a),m.arc(u,a,v.r0,0,r,!0)}});ie.exports=f},Rb7d:function(ie,x){function t(O){if(typeof O=="number"&&(O=O.toString()),typeof O!="string")throw new Error("Color should be defined as hex string");var f=O.slice().replace("#","").split("");if(f.length<3||f.length===5||f.length>8)throw new Error("Invalid hex color: "+O);(f.length===3||f.length===4)&&(f=Array.prototype.concat.apply([],f.map(function(v){return[v,v]}))),f.length===6&&f.push("F","F");var m=parseInt(f.join(""),16);return{r:m>>24&255,g:m>>16&255,b:m>>8&255,a:m&255,hex:"#"+f.slice(0,6).join("")}}x.getOptions=function(f){f||(f={}),f.color||(f.color={});var m=typeof f.margin=="undefined"||f.margin===null||f.margin<0?4:f.margin,v=f.width&&f.width>=21?f.width:void 0,u=f.scale||4;return{width:v,scale:v?4:u,margin:m,color:{dark:t(f.color.dark||"#000000ff"),light:t(f.color.light||"#ffffffff")},type:f.type,rendererOpts:f.rendererOpts||{}}},x.getScale=function(f,m){return m.width&&m.width>=f+m.margin*2?m.width/(f+m.margin*2):m.scale},x.getImageWidth=function(f,m){var v=x.getScale(f,m);return Math.floor((f+m.margin*2)*v)},x.qrToImageData=function(f,m,v){for(var u=m.modules.size,a=m.modules.data,r=x.getScale(u,v),e=Math.floor((u+v.margin*2)*r),s=v.margin*r,l=[v.color.light,v.color.dark],i=0;i=s&&d>=s&&i-a&&oa||o<-a}function y(o,n,F,_,k){var b=1-k;return b*b*(b*o+3*k*n)+k*k*(k*_+3*b*F)}function T(o,n,F,_,k){var b=1-k;return 3*(((n-o)*b+2*(F-n)*k)*b+(_-F)*k*k)}function N(o,n,F,_,k,b){var R=_+3*(n-F)-o,M=3*(F-n*2+o),j=3*(n-o),Q=o-k,G=M*M-3*R*j,ne=M*j-9*R*Q,J=j*j-3*M*Q,P=0;if(g(G)&&g(ne))if(g(M))b[0]=0;else{var Y=-j/M;Y>=0&&Y<=1&&(b[P++]=Y)}else{var W=ne*ne-4*G*J;if(g(W)){var oe=ne/G,Y=-M/R+oe,$=-oe/2;Y>=0&&Y<=1&&(b[P++]=Y),$>=0&&$<=1&&(b[P++]=$)}else if(W>0){var X=u(W),Z=G*M+1.5*R*(-ne+X),se=G*M+1.5*R*(-ne-X);Z<0?Z=-v(-Z,s):Z=v(Z,s),se<0?se=-v(-se,s):se=v(se,s);var Y=(-M-(Z+se))/(3*R);Y>=0&&Y<=1&&(b[P++]=Y)}else{var ae=(2*G*M-3*R*ne)/(2*u(G*G*G)),ve=Math.acos(ae)/3,V=u(G),re=Math.cos(ve),Y=(-M-2*V*re)/(3*R),$=(-M+V*(re+e*Math.sin(ve)))/(3*R),I=(-M+V*(re-e*Math.sin(ve)))/(3*R);Y>=0&&Y<=1&&(b[P++]=Y),$>=0&&$<=1&&(b[P++]=$),I>=0&&I<=1&&(b[P++]=I)}}return P}function L(o,n,F,_,k){var b=6*F-12*n+6*o,R=9*n+3*_-3*o-9*F,M=3*n-3*o,j=0;if(g(R)){if(E(b)){var Q=-M/b;Q>=0&&Q<=1&&(k[j++]=Q)}}else{var G=b*b-4*R*M;if(g(G))k[0]=-b/(2*R);else if(G>0){var ne=u(G),Q=(-b+ne)/(2*R),J=(-b-ne)/(2*R);Q>=0&&Q<=1&&(k[j++]=Q),J>=0&&J<=1&&(k[j++]=J)}}return j}function p(o,n,F,_,k,b){var R=(n-o)*k+o,M=(F-n)*k+n,j=(_-F)*k+F,Q=(M-R)*k+R,G=(j-M)*k+M,ne=(G-Q)*k+Q;b[0]=o,b[1]=R,b[2]=Q,b[3]=ne,b[4]=ne,b[5]=G,b[6]=j,b[7]=_}function C(o,n,F,_,k,b,R,M,j,Q,G){var ne,J=.005,P=Infinity,Y,W,oe,$;l[0]=j,l[1]=Q;for(var X=0;X<1;X+=.05)i[0]=y(o,F,k,R,X),i[1]=y(n,_,b,M,X),oe=m(l,i),oe=0&&oe=0&&Q<=1&&(k[j++]=Q)}}else{var G=R*R-4*b*M;if(g(G)){var Q=-R/(2*b);Q>=0&&Q<=1&&(k[j++]=Q)}else if(G>0){var ne=u(G),Q=(-R+ne)/(2*b),J=(-R-ne)/(2*b);Q>=0&&Q<=1&&(k[j++]=Q),J>=0&&J<=1&&(k[j++]=J)}}return j}function H(o,n,F){var _=o+F-2*n;return _===0?.5:(o-n)/_}function w(o,n,F,_,k){var b=(n-o)*_+o,R=(F-n)*_+n,M=(R-b)*_+b;k[0]=o,k[1]=b,k[2]=M,k[3]=M,k[4]=R,k[5]=F}function c(o,n,F,_,k,b,R,M,j){var Q,G=.005,ne=Infinity;l[0]=R,l[1]=M;for(var J=0;J<1;J+=.05){i[0]=h(o,F,k,J),i[1]=h(n,_,b,J);var P=m(l,i);P=0&&P=0;--C)if(p[C]===L)return!0;return!1}),N):null:N[0]},g.prototype.update=function(y,T){if(!y)return;var N=this.getDefs(!1);if(y[this._domName]&&N.contains(y[this._domName]))typeof T=="function"&&T(y);else{var L=this.add(y);L&&(y[this._domName]=L)}},g.prototype.addDom=function(y){var T=this.getDefs(!0);T.appendChild(y)},g.prototype.removeDom=function(y){var T=this.getDefs(!1);T&&y[this._domName]&&(T.removeChild(y[this._domName]),y[this._domName]=null)},g.prototype.getDoms=function(){var y=this.getDefs(!1);if(!y)return[];var T=[];return m.each(this._tagNames,function(N){var L=y.getElementsByTagName(N);T=T.concat([].slice.call(L))}),T},g.prototype.markAllUnused=function(){var y=this.getDoms(),T=this;m.each(y,function(N){N[T._markLabel]=i})},g.prototype.markUsed=function(y){y&&(y[this._markLabel]=d)},g.prototype.removeUnused=function(){var y=this.getDefs(!1);if(!y)return;var T=this.getDoms(),N=this;m.each(T,function(L){L[N._markLabel]!==d&&y.removeChild(L)})},g.prototype.getSvgProxy=function(y){return y instanceof v?e:y instanceof u?s:y instanceof a?l:e},g.prototype.getTextSvgElement=function(y){return y.__textSvgEl},g.prototype.getSvgElement=function(y){return y.__svgEl};var E=g;ie.exports=E},T6xi:function(ie,x,t){var O=t("YgsL"),f=t("nCxF");function m(v,u,a){var r=u.points,e=u.smooth;if(r&&r.length>=2){if(e&&e!=="spline"){var s=f(r,e,a,u.smoothConstraint);v.moveTo(r[0][0],r[0][1]);for(var l=r.length,i=0;i<(a?l:l-1);i++){var d=s[i*2],g=s[i*2+1],E=r[(i+1)%l];v.bezierCurveTo(d[0],d[1],g[0],g[1],E[0],E[1])}}else{e==="spline"&&(r=O(r,a)),v.moveTo(r[0][0],r[0][1]);for(var i=1,y=r.length;i +*/var f=t("H7XF"),m=t("kVK+"),v=t("49sm");x.Buffer=e,x.SlowBuffer=L,x.INSPECT_MAX_BYTES=50,e.TYPED_ARRAY_SUPPORT=O.TYPED_ARRAY_SUPPORT!==void 0?O.TYPED_ARRAY_SUPPORT:u(),x.kMaxLength=a();function u(){try{var z=new Uint8Array(1);return z.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},z.foo()===42&&typeof z.subarray=="function"&&z.subarray(1,1).byteLength===0}catch(A){return!1}}function a(){return e.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function r(z,A){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return z|0}function L(z){return+z!=z&&(z=0),e.alloc(+z)}e.isBuffer=function(A){return!!(A!=null&&A._isBuffer)},e.compare=function(A,S){if(!e.isBuffer(A)||!e.isBuffer(S))throw new TypeError("Arguments must be Buffers");if(A===S)return 0;for(var K=A.length,ee=S.length,de=0,he=Math.min(K,ee);de>>1;case"base64":return I(z).length;default:if(K)return ve(z).length;A=(""+A).toLowerCase(),K=!0}}e.byteLength=p;function C(z,A,S){var K=!1;if((A===void 0||A<0)&&(A=0),A>this.length)return"";if((S===void 0||S>this.length)&&(S=this.length),S<=0)return"";if(S>>>=0,A>>>=0,S<=A)return"";for(z||(z="utf8");;)switch(z){case"hex":return Q(this,A,S);case"utf8":case"utf-8":return k(this,A,S);case"ascii":return M(this,A,S);case"latin1":case"binary":return j(this,A,S);case"base64":return _(this,A,S);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,A,S);default:if(K)throw new TypeError("Unknown encoding: "+z);z=(z+"").toLowerCase(),K=!0}}e.prototype._isBuffer=!0;function h(z,A,S){var K=z[A];z[A]=z[S],z[S]=K}e.prototype.swap16=function(){var A=this.length;if(A%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var S=0;S0&&(A=this.toString("hex",0,S).match(/.{2}/g).join(" "),this.length>S&&(A+=" ... ")),""},e.prototype.compare=function(A,S,K,ee,de){if(!e.isBuffer(A))throw new TypeError("Argument must be a Buffer");if(S===void 0&&(S=0),K===void 0&&(K=A?A.length:0),ee===void 0&&(ee=0),de===void 0&&(de=this.length),S<0||K>A.length||ee<0||de>this.length)throw new RangeError("out of range index");if(ee>=de&&S>=K)return 0;if(ee>=de)return-1;if(S>=K)return 1;if(S>>>=0,K>>>=0,ee>>>=0,de>>>=0,this===A)return 0;for(var he=de-ee,Me=K-S,ce=Math.min(he,Me),be=this.slice(ee,de),Ae=A.slice(S,K),ye=0;ye2147483647?S=2147483647:S<-2147483648&&(S=-2147483648),S=+S,isNaN(S)&&(S=ee?0:z.length-1),S<0&&(S=z.length+S),S>=z.length){if(ee)return-1;S=z.length-1}else if(S<0)if(ee)S=0;else return-1;if(typeof A=="string"&&(A=e.from(A,K)),e.isBuffer(A))return A.length===0?-1:B(z,A,S,K,ee);if(typeof A=="number")return A=A&255,e.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?ee?Uint8Array.prototype.indexOf.call(z,A,S):Uint8Array.prototype.lastIndexOf.call(z,A,S):B(z,[A],S,K,ee);throw new TypeError("val must be string, number or Buffer")}function B(z,A,S,K,ee){var de=1,he=z.length,Me=A.length;if(K!==void 0&&(K=String(K).toLowerCase(),K==="ucs2"||K==="ucs-2"||K==="utf16le"||K==="utf-16le")){if(z.length<2||A.length<2)return-1;de=2,he/=2,Me/=2,S/=2}function ce(Se,Ne){return de===1?Se[Ne]:Se.readUInt16BE(Ne*de)}var be;if(ee){var Ae=-1;for(be=S;behe&&(S=he-Me),be=S;be>=0;be--){for(var ye=!0,ke=0;keee&&(K=ee)):K=ee;var de=A.length;if(de%2!==0)throw new TypeError("Invalid hex string");K>de/2&&(K=de/2);for(var he=0;hede)&&(K=de),A.length>0&&(K<0||S<0)||S>this.length)throw new RangeError("Attempt to write outside buffer bounds");ee||(ee="utf8");for(var he=!1;;)switch(ee){case"hex":return H(this,A,S,K);case"utf8":case"utf-8":return w(this,A,S,K);case"ascii":return c(this,A,S,K);case"latin1":case"binary":return o(this,A,S,K);case"base64":return n(this,A,S,K);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,A,S,K);default:if(he)throw new TypeError("Unknown encoding: "+ee);ee=(""+ee).toLowerCase(),he=!0}},e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function _(z,A,S){return A===0&&S===z.length?f.fromByteArray(z):f.fromByteArray(z.slice(A,S))}function k(z,A,S){S=Math.min(z.length,S);for(var K=[],ee=A;ee239?4:de>223?3:de>191?2:1;if(ee+Me<=S){var ce,be,Ae,ye;switch(Me){case 1:de<128&&(he=de);break;case 2:ce=z[ee+1],(ce&192)===128&&(ye=(de&31)<<6|ce&63,ye>127&&(he=ye));break;case 3:ce=z[ee+1],be=z[ee+2],(ce&192)===128&&(be&192)===128&&(ye=(de&15)<<12|(ce&63)<<6|be&63,ye>2047&&(ye<55296||ye>57343)&&(he=ye));break;case 4:ce=z[ee+1],be=z[ee+2],Ae=z[ee+3],(ce&192)===128&&(be&192)===128&&(Ae&192)===128&&(ye=(de&15)<<18|(ce&63)<<12|(be&63)<<6|Ae&63,ye>65535&&ye<1114112&&(he=ye))}}he===null?(he=65533,Me=1):he>65535&&(he-=65536,K.push(he>>>10&1023|55296),he=56320|he&1023),K.push(he),ee+=Me}return R(K)}var b=4096;function R(z){var A=z.length;if(A<=b)return String.fromCharCode.apply(String,z);for(var S="",K=0;KK)&&(S=K);for(var ee="",de=A;deK&&(A=K),S<0?(S+=K,S<0&&(S=0)):S>K&&(S=K),SS)throw new RangeError("Trying to access beyond buffer length")}e.prototype.readUIntLE=function(A,S,K){A=A|0,S=S|0,K||ne(A,S,this.length);for(var ee=this[A],de=1,he=0;++he0&&(de*=256);)ee+=this[A+--S]*de;return ee},e.prototype.readUInt8=function(A,S){return S||ne(A,1,this.length),this[A]},e.prototype.readUInt16LE=function(A,S){return S||ne(A,2,this.length),this[A]|this[A+1]<<8},e.prototype.readUInt16BE=function(A,S){return S||ne(A,2,this.length),this[A]<<8|this[A+1]},e.prototype.readUInt32LE=function(A,S){return S||ne(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+this[A+3]*16777216},e.prototype.readUInt32BE=function(A,S){return S||ne(A,4,this.length),this[A]*16777216+(this[A+1]<<16|this[A+2]<<8|this[A+3])},e.prototype.readIntLE=function(A,S,K){A=A|0,S=S|0,K||ne(A,S,this.length);for(var ee=this[A],de=1,he=0;++he=de&&(ee-=Math.pow(2,8*S)),ee},e.prototype.readIntBE=function(A,S,K){A=A|0,S=S|0,K||ne(A,S,this.length);for(var ee=S,de=1,he=this[A+--ee];ee>0&&(de*=256);)he+=this[A+--ee]*de;return de*=128,he>=de&&(he-=Math.pow(2,8*S)),he},e.prototype.readInt8=function(A,S){return S||ne(A,1,this.length),this[A]&128?(255-this[A]+1)*-1:this[A]},e.prototype.readInt16LE=function(A,S){S||ne(A,2,this.length);var K=this[A]|this[A+1]<<8;return K&32768?K|4294901760:K},e.prototype.readInt16BE=function(A,S){S||ne(A,2,this.length);var K=this[A+1]|this[A]<<8;return K&32768?K|4294901760:K},e.prototype.readInt32LE=function(A,S){return S||ne(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},e.prototype.readInt32BE=function(A,S){return S||ne(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},e.prototype.readFloatLE=function(A,S){return S||ne(A,4,this.length),m.read(this,A,!0,23,4)},e.prototype.readFloatBE=function(A,S){return S||ne(A,4,this.length),m.read(this,A,!1,23,4)},e.prototype.readDoubleLE=function(A,S){return S||ne(A,8,this.length),m.read(this,A,!0,52,8)},e.prototype.readDoubleBE=function(A,S){return S||ne(A,8,this.length),m.read(this,A,!1,52,8)};function J(z,A,S,K,ee,de){if(!e.isBuffer(z))throw new TypeError('"buffer" argument must be a Buffer instance');if(A>ee||Az.length)throw new RangeError("Index out of range")}e.prototype.writeUIntLE=function(A,S,K,ee){if(A=+A,S=S|0,K=K|0,!ee){var de=Math.pow(2,8*K)-1;J(this,A,S,K,de,0)}var he=1,Me=0;for(this[S]=A&255;++Me=0&&(Me*=256);)this[S+he]=A/Me&255;return S+K},e.prototype.writeUInt8=function(A,S,K){return A=+A,S=S|0,K||J(this,A,S,1,255,0),e.TYPED_ARRAY_SUPPORT||(A=Math.floor(A)),this[S]=A&255,S+1};function P(z,A,S,K){A<0&&(A=65535+A+1);for(var ee=0,de=Math.min(z.length-S,2);ee>>(K?ee:1-ee)*8}e.prototype.writeUInt16LE=function(A,S,K){return A=+A,S=S|0,K||J(this,A,S,2,65535,0),e.TYPED_ARRAY_SUPPORT?(this[S]=A&255,this[S+1]=A>>>8):P(this,A,S,!0),S+2},e.prototype.writeUInt16BE=function(A,S,K){return A=+A,S=S|0,K||J(this,A,S,2,65535,0),e.TYPED_ARRAY_SUPPORT?(this[S]=A>>>8,this[S+1]=A&255):P(this,A,S,!1),S+2};function Y(z,A,S,K){A<0&&(A=4294967295+A+1);for(var ee=0,de=Math.min(z.length-S,4);ee>>(K?ee:3-ee)*8&255}e.prototype.writeUInt32LE=function(A,S,K){return A=+A,S=S|0,K||J(this,A,S,4,4294967295,0),e.TYPED_ARRAY_SUPPORT?(this[S+3]=A>>>24,this[S+2]=A>>>16,this[S+1]=A>>>8,this[S]=A&255):Y(this,A,S,!0),S+4},e.prototype.writeUInt32BE=function(A,S,K){return A=+A,S=S|0,K||J(this,A,S,4,4294967295,0),e.TYPED_ARRAY_SUPPORT?(this[S]=A>>>24,this[S+1]=A>>>16,this[S+2]=A>>>8,this[S+3]=A&255):Y(this,A,S,!1),S+4},e.prototype.writeIntLE=function(A,S,K,ee){if(A=+A,S=S|0,!ee){var de=Math.pow(2,8*K-1);J(this,A,S,K,de-1,-de)}var he=0,Me=1,ce=0;for(this[S]=A&255;++he>0)-ce&255;return S+K},e.prototype.writeIntBE=function(A,S,K,ee){if(A=+A,S=S|0,!ee){var de=Math.pow(2,8*K-1);J(this,A,S,K,de-1,-de)}var he=K-1,Me=1,ce=0;for(this[S+he]=A&255;--he>=0&&(Me*=256);)A<0&&ce===0&&this[S+he+1]!==0&&(ce=1),this[S+he]=(A/Me>>0)-ce&255;return S+K},e.prototype.writeInt8=function(A,S,K){return A=+A,S=S|0,K||J(this,A,S,1,127,-128),e.TYPED_ARRAY_SUPPORT||(A=Math.floor(A)),A<0&&(A=255+A+1),this[S]=A&255,S+1},e.prototype.writeInt16LE=function(A,S,K){return A=+A,S=S|0,K||J(this,A,S,2,32767,-32768),e.TYPED_ARRAY_SUPPORT?(this[S]=A&255,this[S+1]=A>>>8):P(this,A,S,!0),S+2},e.prototype.writeInt16BE=function(A,S,K){return A=+A,S=S|0,K||J(this,A,S,2,32767,-32768),e.TYPED_ARRAY_SUPPORT?(this[S]=A>>>8,this[S+1]=A&255):P(this,A,S,!1),S+2},e.prototype.writeInt32LE=function(A,S,K){return A=+A,S=S|0,K||J(this,A,S,4,2147483647,-2147483648),e.TYPED_ARRAY_SUPPORT?(this[S]=A&255,this[S+1]=A>>>8,this[S+2]=A>>>16,this[S+3]=A>>>24):Y(this,A,S,!0),S+4},e.prototype.writeInt32BE=function(A,S,K){return A=+A,S=S|0,K||J(this,A,S,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),e.TYPED_ARRAY_SUPPORT?(this[S]=A>>>24,this[S+1]=A>>>16,this[S+2]=A>>>8,this[S+3]=A&255):Y(this,A,S,!1),S+4};function W(z,A,S,K,ee,de){if(S+K>z.length)throw new RangeError("Index out of range");if(S<0)throw new RangeError("Index out of range")}function oe(z,A,S,K,ee){return ee||W(z,A,S,4,34028234663852886e22,-34028234663852886e22),m.write(z,A,S,K,23,4),S+4}e.prototype.writeFloatLE=function(A,S,K){return oe(this,A,S,!0,K)},e.prototype.writeFloatBE=function(A,S,K){return oe(this,A,S,!1,K)};function $(z,A,S,K,ee){return ee||W(z,A,S,8,17976931348623157e292,-17976931348623157e292),m.write(z,A,S,K,52,8),S+8}e.prototype.writeDoubleLE=function(A,S,K){return $(this,A,S,!0,K)},e.prototype.writeDoubleBE=function(A,S,K){return $(this,A,S,!1,K)},e.prototype.copy=function(A,S,K,ee){if(K||(K=0),!ee&&ee!==0&&(ee=this.length),S>=A.length&&(S=A.length),S||(S=0),ee>0&&ee=this.length)throw new RangeError("sourceStart out of bounds");if(ee<0)throw new RangeError("sourceEnd out of bounds");ee>this.length&&(ee=this.length),A.length-S=0;--he)A[he+S]=this[he+K];else if(de<1e3||!e.TYPED_ARRAY_SUPPORT)for(he=0;he>>0,K=K===void 0?this.length:K>>>0,A||(A=0);var he;if(typeof A=="number")for(he=S;he55295&&S<57344){if(!ee){if(S>56319){(A-=3)>-1&&de.push(239,191,189);continue}else if(he+1===K){(A-=3)>-1&&de.push(239,191,189);continue}ee=S;continue}if(S<56320){(A-=3)>-1&&de.push(239,191,189),ee=S;continue}S=(ee-55296<<10|S-56320)+65536}else ee&&((A-=3)>-1&&de.push(239,191,189));if(ee=null,S<128){if((A-=1)<0)break;de.push(S)}else if(S<2048){if((A-=2)<0)break;de.push(S>>6|192,S&63|128)}else if(S<65536){if((A-=3)<0)break;de.push(S>>12|224,S>>6&63|128,S&63|128)}else if(S<1114112){if((A-=4)<0)break;de.push(S>>18|240,S>>12&63|128,S>>6&63|128,S&63|128)}else throw new Error("Invalid code point")}return de}function V(z){for(var A=[],S=0;S>8,ee=S%256,de.push(ee),de.push(K);return de}function I(z){return f.toByteArray(Z(z))}function q(z,A,S,K){for(var ee=0;ee=A.length||ee>=z.length);++ee)A[ee+S]=z[ee];return ee}function fe(z){return z!==z}}).call(this,t("IyRk"))},HpTS:function(ie,x,t){ie.exports=t.p+"static/small_program.f74069ec.png"},I8Z2:function(ie,x,t){"use strict";t.d(x,"a",function(){return v}),t.d(x,"b",function(){return g}),t.d(x,"c",function(){return y});var O=t("q1tI"),f=function(){var D=function(N,L){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,C){p.__proto__=C}||function(p,C){for(var h in C)C.hasOwnProperty(h)&&(p[h]=C[h])},D(N,L)};return function(N,L){D(N,L);function p(){this.constructor=N}N.prototype=L===null?Object.create(L):(p.prototype=L.prototype,new p)}}(),m=O.createContext(null),v=function(D){f(N,D);function N(){return D!==null&&D.apply(this,arguments)||this}return N.prototype.render=function(){return O.createElement(m.Provider,{value:this.props.store},this.props.children)},N}(O.Component),u=t("Gytx"),a=t.n(u),r=t("2mql"),e=t.n(r),s=function(){var D=function(N,L){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,C){p.__proto__=C}||function(p,C){for(var h in C)C.hasOwnProperty(h)&&(p[h]=C[h])},D(N,L)};return function(N,L){D(N,L);function p(){this.constructor=N}N.prototype=L===null?Object.create(L):(p.prototype=L.prototype,new p)}}(),l=function(){return l=Object.assign||function(D){for(var N,L=1,p=arguments.length;Lthis._ux||N(T-this._yi)>this._uy||this._len<5;return this.addData(r.L,h,T),this._ctx&&B&&(this._needsDash()?this._dashedLineTo(h,T):this._ctx.lineTo(h,T)),B&&(this._xi=h,this._yi=T),this},bezierCurveTo:function(h,T,B,H,w,c){return this.addData(r.C,h,T,B,H,w,c),this._ctx&&(this._needsDash()?this._dashedBezierTo(h,T,B,H,w,c):this._ctx.bezierCurveTo(h,T,B,H,w,c)),this._xi=w,this._yi=c,this},quadraticCurveTo:function(h,T,B,H){return this.addData(r.Q,h,T,B,H),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(h,T,B,H):this._ctx.quadraticCurveTo(h,T,B,H)),this._xi=B,this._yi=H,this},arc:function(h,T,B,H,w,c){return this.addData(r.A,h,T,B,B,H,w-H,0,c?0:1),this._ctx&&this._ctx.arc(h,T,B,H,w,c),this._xi=E(w)*B+h,this._yi=y(w)*B+T,this},arcTo:function(h,T,B,H,w){return this._ctx&&this._ctx.arcTo(h,T,B,H,w),this},rect:function(h,T,B,H){return this._ctx&&this._ctx.rect(h,T,B,H),this.addData(r.R,h,T,B,H),this},closePath:function(){this.addData(r.Z);var h=this._ctx,T=this._x0,B=this._y0;return h&&(this._needsDash()&&this._dashedLineTo(T,B),h.closePath()),this._xi=T,this._yi=B,this},fill:function(h){h&&h.fill(),this.toStatic()},stroke:function(h){h&&h.stroke(),this.toStatic()},setLineDash:function(h){if(h instanceof Array){this._lineDash=h,this._dashIdx=0;for(var T=0,B=0;BT.length&&(this._expandData(),T=this.data);for(var B=0;B0&&b<=h||F<0&&b>=h||F===0&&(_>0&&R<=T||_<0&&R>=T);){if(Q=this._dashIdx,M=w[Q],b+=F*M,R+=_*M,this._dashIdx=(Q+1)%j,F>0&&bo||_>0&&Rn)continue;c[Q%2?"moveTo":"lineTo"](F>=0?d(b,h):g(b,h),_>=0?d(R,T):g(R,T))}F=b-h,_=R-T,this._dashOffset=-D(F*F+_*_)},_dashedBezierTo:function(h,T,B,H,w,c){var o=this._dashSum,n=this._dashOffset,F=this._lineDash,_=this._ctx,k=this._xi,b=this._yi,R,M,j,Q=O.cubicAt,G=0,ne=this._dashIdx,J=F.length,P,Y,W=0;for(n<0&&(n=o+n),n%=o,R=0;R<1;R+=.1)M=Q(k,h,B,w,R+.1)-Q(k,h,B,w,R),j=Q(b,T,H,c,R+.1)-Q(b,T,H,c,R),G+=D(M*M+j*j);for(;nen);ne++);for(R=(W-n)/G;R<=1;)P=Q(k,h,B,w,R),Y=Q(b,T,H,c,R),ne%2?_.moveTo(P,Y):_.lineTo(P,Y),R+=F[ne]/G,ne=(ne+1)%J;ne%2!==0&&_.lineTo(w,c),M=w-P,j=c-Y,this._dashOffset=-D(M*M+j*j)},_dashedQuadraticTo:function(h,T,B,H){var w=B,c=H;B=(B+2*h)/3,H=(H+2*T)/3,h=(this._xi+2*h)/3,T=(this._yi+2*T)/3,this._dashedBezierTo(h,T,B,H,w,c)},toStatic:function(){var h=this.data;h instanceof Array&&(h.length=this._len,L&&(this.data=new Float32Array(h)))},getBoundingRect:function(){e[0]=e[1]=l[0]=l[1]=Number.MAX_VALUE,s[0]=s[1]=i[0]=i[1]=-Number.MAX_VALUE;for(var h=this.data,T=0,B=0,H=0,w=0,c=0;cF||N(n-c)>_||b===k-1)&&(h.lineTo(o,n),w=o,c=n);break;case r.C:h.bezierCurveTo(T[b++],T[b++],T[b++],T[b++],T[b++],T[b++]),w=T[b-2],c=T[b-1];break;case r.Q:h.quadraticCurveTo(T[b++],T[b++],T[b++],T[b++]),w=T[b-2],c=T[b-1];break;case r.A:var M=T[b++],j=T[b++],Q=T[b++],G=T[b++],ne=T[b++],J=T[b++],P=T[b++],Y=T[b++],W=Q>G?Q:G,oe=Q>G?1:Q/G,$=Q>G?G/Q:1,X=Math.abs(Q-G)>.001,Z=ne+J;X?(h.translate(M,j),h.rotate(P),h.scale(oe,$),h.arc(0,0,W,ne,Z,1-Y),h.scale(1/oe,1/$),h.rotate(-P),h.translate(-M,-j)):h.arc(M,j,W,ne,Z,1-Y),b===1&&(B=E(ne)*Q+M,H=y(ne)*G+j),w=E(Z)*Q+M,c=y(Z)*G+j;break;case r.R:B=w=T[b],H=c=T[b+1],h.rect(T[b++],T[b++],T[b++],T[b++]);break;case r.Z:h.closePath(),w=B,c=H}}}},p.CMD=r;var C=p;ie.exports=C},ItGF:function(ie,x){var t={};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?t={browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document=="undefined"&&typeof self!="undefined"?t={browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator=="undefined"?t={browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:t=f(navigator.userAgent);var O=t;function f(m){var v={},u={},a=m.match(/Firefox\/([\d.]+)/),r=m.match(/MSIE\s([\d.]+)/)||m.match(/Trident\/.+?rv:(([\d.]+))/),e=m.match(/Edge\/([\d.]+)/),s=/micromessenger/i.test(m);return a&&(u.firefox=!0,u.version=a[1]),r&&(u.ie=!0,u.version=r[1]),e&&(u.edge=!0,u.version=e[1]),s&&(u.weChat=!0),{browser:u,os:v,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:typeof SVGRect!="undefined",touchEventsSupported:"ontouchstart"in window&&!u.ie&&!u.edge,pointerEventsSupported:"onpointerdown"in window&&(u.edge||u.ie&&u.version>=11),domSupported:typeof document!="undefined"}}ie.exports=O},J6Nv:function(ie,x){x.isValid=function(O){return!isNaN(O)&&O>=1&&O<=40}},JWDV:function(ie,x,t){ie.exports=t.p+"static/charpter-white.5fa14f93.svg"},JeFH:function(ie,x){ie.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAwCAYAAAD9wT87AAAe2UlEQVR4XtVcB5QUVbr+blV1T+ieGWaYBAwgOSgooJLjENeA6a2KCVfZNbum3VXXsG9VdFfc1TXtGlfXLCKgEiRnUAHJWRzAyTl3V9V957vV1dPTM+M4Hn2Pd8/xIHRV9f3vn77/+/9qgVaWlHIggHMB+AA8K4TIbe2ek/FzKWUmgLGw7THQtLlCiBUn4z6j9ySa26SUMg3A+ZDyaljBMTC87mXrAUwSQtT+fxBOSqmbpjnaMIyrYJnToRvtQ/sOAJgihFh1ssvRSEFSysEAroJlXQZdp8VhXUEAS07UYGavBPSIQz10vacQ4vjJLJiUMgPAhZByJoQYyr0erZFYmFOFZK+GK7szGOB3Qoi/nsxycG9KQVLKKyDltbDMbBge5NYD87+twvxjNdhbZiIoJZZMysRpPqsShreXECL/ZBRMSjkAwM2wzIugG2k2gOW59fjgaDU2FNbjRI2Fm/r48eigdtz+TUKIF05GOSL3JKSUDwN4SALYXBRQwqzIrUNBvQ1DAIYm4BHAJxMz0TPOLoJu9BFClJxsglVVVWXGx8d/IYTIOl4rsSCnGvNzarCvIghLAl5NoN6WuKVPAu4dkMjtXyuEeP1kk6NJDpJSHgTQ8+Ht5Xj5UBWoqBhNQAsFP/6dwi2alI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wkheGA/ywr9NhJlIBekZBFqOrZ5kgCFhYUJqampbAWzp9LCsgDLrgB/t0foByDkdkB1UrdFv5j0s0j1Ax8qpfxdqP/U8h1mIABN5EEYhyHELgBUBv87IAS98/9utUhA19TUZMXFxc0AcCZbIqG5A+YFvhvEMEQXVm4s6Jon6VKzA053dTI46OH8hMARhbwa5OCbboU/9e8//BRH8j9mLdQoDqqNCwAAAABJRU5ErkJggg=="},Jq4h:function(ie,x,t){ie.exports=t.p+"static/qrcode.54870d9b.png"},JzKC:function(ie,x,t){var O=t("Wogr"),f=t("aZ40");x.mul=function(v,u){for(var a=O.alloc(v.length+u.length-1),r=0;r=0;){for(var r=a[0],e=0;e0},extendFrom:function(d,g){if(d)for(var E in d)d.hasOwnProperty(E)&&(g===!0||(g===!1?!this.hasOwnProperty(E):d[E]!=null))&&(this[E]=d[E])},set:function(d,g){typeof d=="string"?this[d]=g:this.extendFrom(d,!0)},clone:function(){var d=new this.constructor;return d.extendFrom(this,!0),d},getGradient:function(d,g,E){for(var y=g.type==="radial"?r:a,D=y(d,g,E),N=g.colorStops,L=0;L=0)continue;if(!Object.prototype.hasOwnProperty.call(d,y))continue;E[y]=d[y]}return E}function e(d,g){if(!(d instanceof g))throw new TypeError("Cannot call a class as a function")}function s(d,g){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:d}function l(d,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);d.prototype=Object.create(g&&g.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(d,g):d.__proto__=g)}var i=function(d){l(g,d);function g(E){e(this,g);var y=s(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,E));return y.scrollListener=y.scrollListener.bind(y),y.eventListenerOptions=y.eventListenerOptions.bind(y),y.mousewheelListener=y.mousewheelListener.bind(y),y}return O(g,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var y=this.getParentElement(this.scrollComponent);y.scrollTop=y.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var y=!1,D={get passive(){y=!0}};try{document.addEventListener("test",null,D),document.removeEventListener("test",null,D)}catch(N){}return y}},{key:"eventListenerOptions",value:function(){var y=this.props.useCapture;return this.isPassiveSupported()&&(y={useCapture:this.props.useCapture,passive:!0}),y}},{key:"setDefaultLoader",value:function(y){this.defaultLoader=y}},{key:"detachMousewheelListener",value:function(){var y=window;this.props.useWindow===!1&&(y=this.scrollComponent.parentNode),y.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var y=window;this.props.useWindow===!1&&(y=this.getParentElement(this.scrollComponent)),y.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),y.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(y){var D=this.props.getScrollParent&&this.props.getScrollParent();return D!=null?D:y&&y.parentNode}},{key:"filterProps",value:function(y){return y}},{key:"attachScrollListener",value:function(){var y=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!y)return;var D=window;this.props.useWindow===!1&&(D=y),D.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),D.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),D.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(y){y.deltaY===1&&!this.isPassiveSupported()&&y.preventDefault()}},{key:"scrollListener",value:function(){var y=this.scrollComponent,D=window,N=this.getParentElement(y),L=void 0;if(this.props.useWindow){var p=document.documentElement||document.body.parentNode||document.body,C=D.pageYOffset!==void 0?D.pageYOffset:p.scrollTop;this.props.isReverse?L=C:L=this.calculateOffset(y,C)}else this.props.isReverse?L=N.scrollTop:L=y.scrollHeight-N.scrollTop-N.clientHeight;L1&&arguments[1]!==void 0?arguments[1]:1,st=he.length,ut=0;ut1&&arguments[1]!==void 0?arguments[1]:!1;return Object(H.a)(ne).map(function(P,Y){if(!u.isValidElement(P)||!P.type)return null;var W=P.type.isSelectOptGroup,oe=P.key,$=P.props,X=$.children,Z=Object(r.a)($,["children"]);return J||!W?w(P):Object(B.a)(Object(B.a)({key:"__RC_SELECT_GRP__".concat(oe===null?Y:oe,"__"),label:oe},Z),{},{options:c(X)})}).filter(function(P){return P})}var o=t("2Qr1"),n=t("qNPg"),F=t("U8pU"),_=t("Kwbf"),k=t("WKfj");function b(ne){var J=ne.mode,P=ne.options,Y=ne.children,W=ne.backfill,oe=ne.allowClear,$=ne.placeholder,X=ne.getInputElement,Z=ne.showSearch,se=ne.onSearch,ae=ne.defaultOpen,ve=ne.autoFocus,V=ne.labelInValue,re=ne.value,I=ne.inputValue,q=ne.optionLabelProp,fe=J==="multiple"||J==="tags",z=Z!==void 0?Z:fe||J==="combobox",A=P||c(Y);if(Object(_.a)(J!=="tags"||A.every(function(de){return!de.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),J==="tags"||J==="combobox"){var S=A.some(function(de){return de.options?de.options.some(function(he){return typeof("value"in he?he.value:he.key)=="number"}):typeof("value"in de?de.value:de.key)=="number"});Object(_.a)(!S,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(_.a)(J!=="combobox"||!q,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(_.a)(J==="combobox"||!W,"`backfill` only works with `combobox` mode."),Object(_.a)(J==="combobox"||!X,"`getInputElement` only work with `combobox` mode."),Object(_.b)(J!=="combobox"||!X||!oe||!$,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),se&&!z&&J!=="combobox"&&J!=="tags"&&Object(_.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(_.b)(!ae||ve,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),re!=null){var K=Object(k.d)(re);Object(_.a)(!V||K.every(function(de){return Object(F.a)(de)==="object"&&("key"in de||"value"in de)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(_.a)(!fe||Array.isArray(re),"`value` should be array when `mode` is `multiple` or `tags`")}if(Y){var ee=null;Object(H.a)(Y).some(function(de){if(!u.isValidElement(de)||!de.type)return!1;var he=de.type;if(he.isSelectOption)return!1;if(he.isSelectOptGroup){var Me=Object(H.a)(de.props.children).every(function(ce){return!u.isValidElement(ce)||!de.type||ce.type.isSelectOption?!0:(ee=ce.type,!1)});return!Me}return ee=he,!0}),ee&&Object(_.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ee.displayName||ee.name||ee,"`.")),Object(_.a)(I===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var R=b,M=Object(n.a)({prefixCls:"rc-select",components:{optionList:L},convertChildrenToData:c,flattenOptions:o.d,getLabeledValue:o.e,filterOptions:o.b,isValueDisabled:o.g,findValueOption:o.c,warningProps:R,fillOptionsWithMissingValue:o.a}),j=function(ne){Object(m.a)(P,ne);var J=Object(v.a)(P);function P(){var Y;return Object(O.a)(this,P),Y=J.apply(this,arguments),Y.selectRef=u.createRef(),Y.focus=function(){Y.selectRef.current.focus()},Y.blur=function(){Y.selectRef.current.blur()},Y}return Object(f.a)(P,[{key:"render",value:function(){return u.createElement(M,Object.assign({ref:this.selectRef},this.props))}}]),P}(u.Component);j.Option=C,j.OptGroup=T;var Q=j,G=x.c=Q},Lzq4:function(ie,x,t){var O=t("u/Db"),f=t("e/Dd");function m(v){this.mode=O.KANJI,this.data=v}m.getBitsLength=function(u){return u*13},m.prototype.getLength=function(){return this.data.length},m.prototype.getBitsLength=function(){return m.getBitsLength(this.data.length)},m.prototype.write=function(v){var u;for(u=0;u=33088&&a<=40956)a-=33088;else if(a>=57408&&a<=60351)a-=49472;else throw new Error("Invalid SJIS character: "+this.data[u]+` +Make sure your charset is UTF-8`);a=(a>>>8&255)*192+(a&255),v.put(a,13)}},ie.exports=m},MEGo:function(ie,x,t){var O=t("4fz+"),f=t("Dagg"),m=t("dqUG"),v=t("2fw6"),u=t("x6Kt"),a=t("rmlV"),r=t("yxFR"),e=t("y+Vt"),s=t("h7HQ"),l=t("1Jh7"),i=t("SKnc"),d=t("K2GJ"),g=t("Fofx"),E=t("NC18"),y=E.createFromString,D=t("bYtY"),N=D.isString,L=D.extend,p=D.defaults,C=D.trim,h=D.each,T=/[\s,]+/;function B(P){if(N(P)){var Y=new DOMParser;P=Y.parseFromString(P,"text/xml")}for(P.nodeType===9&&(P=P.firstChild);P.nodeName.toLowerCase()!=="svg"||P.nodeType!==1;)P=P.nextSibling;return P}function H(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}H.prototype.parse=function(P,Y){Y=Y||{};var W=B(P);if(!W)throw new Error("Illegal svg");var oe=new O;this._root=oe;var $=W.getAttribute("viewBox")||"",X=parseFloat(W.getAttribute("width")||Y.width),Z=parseFloat(W.getAttribute("height")||Y.height);isNaN(X)&&(X=null),isNaN(Z)&&(Z=null),k(W,oe,null,!0);for(var se=W.firstChild;se;)this._parseNode(se,oe),se=se.nextSibling;var ae,ve;if($){var V=C($).split(T);V.length>=4&&(ae={x:parseFloat(V[0]||0),y:parseFloat(V[1]||0),width:parseFloat(V[2]),height:parseFloat(V[3])})}if(ae&&X!=null&&Z!=null&&(ve=ne(ae,X,Z),!Y.ignoreViewBox)){var re=oe;oe=new O,oe.add(re),re.scale=ve.scale.slice(),re.position=ve.position.slice()}return!Y.ignoreRootClip&&X!=null&&Z!=null&&oe.setClipPath(new u({shape:{x:0,y:0,width:X,height:Z}})),{root:oe,width:X,height:Z,viewBoxRect:ae,viewBoxTransform:ve}},H.prototype._parseNode=function(P,Y){var W=P.nodeName.toLowerCase();W==="defs"?this._isDefine=!0:W==="text"&&(this._isText=!0);var oe;if(this._isDefine){var $=c[W];if($){var X=$.call(this,P),Z=P.getAttribute("id");Z&&(this._defs[Z]=X)}}else{var $=w[W];$&&(oe=$.call(this,P,Y),Y.add(oe))}for(var se=P.firstChild;se;)se.nodeType===1&&this._parseNode(se,oe),se.nodeType===3&&this._isText&&this._parseText(se,oe),se=se.nextSibling;W==="defs"?this._isDefine=!1:W==="text"&&(this._isText=!1)},H.prototype._parseText=function(P,Y){if(P.nodeType===1){var W=P.getAttribute("dx")||0,oe=P.getAttribute("dy")||0;this._textX+=parseFloat(W),this._textY+=parseFloat(oe)}var $=new m({style:{text:P.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});n(Y,$),k(P,$,this._defs);var X=$.style.fontSize;X&&X<9&&($.style.fontSize=9,$.scale=$.scale||[1,1],$.scale[0]*=X/9,$.scale[1]*=X/9);var Z=$.getBoundingRect();return this._textX+=Z.width,Y.add($),$};var w={g:function(P,Y){var W=new O;return n(Y,W),k(P,W,this._defs),W},rect:function(P,Y){var W=new u;return n(Y,W),k(P,W,this._defs),W.setShape({x:parseFloat(P.getAttribute("x")||0),y:parseFloat(P.getAttribute("y")||0),width:parseFloat(P.getAttribute("width")||0),height:parseFloat(P.getAttribute("height")||0)}),W},circle:function(P,Y){var W=new v;return n(Y,W),k(P,W,this._defs),W.setShape({cx:parseFloat(P.getAttribute("cx")||0),cy:parseFloat(P.getAttribute("cy")||0),r:parseFloat(P.getAttribute("r")||0)}),W},line:function(P,Y){var W=new r;return n(Y,W),k(P,W,this._defs),W.setShape({x1:parseFloat(P.getAttribute("x1")||0),y1:parseFloat(P.getAttribute("y1")||0),x2:parseFloat(P.getAttribute("x2")||0),y2:parseFloat(P.getAttribute("y2")||0)}),W},ellipse:function(P,Y){var W=new a;return n(Y,W),k(P,W,this._defs),W.setShape({cx:parseFloat(P.getAttribute("cx")||0),cy:parseFloat(P.getAttribute("cy")||0),rx:parseFloat(P.getAttribute("rx")||0),ry:parseFloat(P.getAttribute("ry")||0)}),W},polygon:function(P,Y){var W=P.getAttribute("points");W&&(W=F(W));var oe=new s({shape:{points:W||[]}});return n(Y,oe),k(P,oe,this._defs),oe},polyline:function(P,Y){var W=new e;n(Y,W),k(P,W,this._defs);var oe=P.getAttribute("points");oe&&(oe=F(oe));var $=new l({shape:{points:oe||[]}});return $},image:function(P,Y){var W=new f;return n(Y,W),k(P,W,this._defs),W.setStyle({image:P.getAttribute("xlink:href"),x:P.getAttribute("x"),y:P.getAttribute("y"),width:P.getAttribute("width"),height:P.getAttribute("height")}),W},text:function(P,Y){var W=P.getAttribute("x")||0,oe=P.getAttribute("y")||0,$=P.getAttribute("dx")||0,X=P.getAttribute("dy")||0;this._textX=parseFloat(W)+parseFloat($),this._textY=parseFloat(oe)+parseFloat(X);var Z=new O;return n(Y,Z),k(P,Z,this._defs),Z},tspan:function(P,Y){var W=P.getAttribute("x"),oe=P.getAttribute("y");W!=null&&(this._textX=parseFloat(W)),oe!=null&&(this._textY=parseFloat(oe));var $=P.getAttribute("dx")||0,X=P.getAttribute("dy")||0,Z=new O;return n(Y,Z),k(P,Z,this._defs),this._textX+=$,this._textY+=X,Z},path:function(P,Y){var W=P.getAttribute("d")||"",oe=y(W);return n(Y,oe),k(P,oe,this._defs),oe}},c={lineargradient:function(P){var Y=parseInt(P.getAttribute("x1")||0,10),W=parseInt(P.getAttribute("y1")||0,10),oe=parseInt(P.getAttribute("x2")||10,10),$=parseInt(P.getAttribute("y2")||0,10),X=new i(Y,W,oe,$);return o(P,X),X},radialgradient:function(P){}};function o(P,Y){for(var W=P.firstChild;W;){if(W.nodeType===1){var oe=W.getAttribute("offset");oe.indexOf("%")>0?oe=parseInt(oe,10)/100:oe?oe=parseFloat(oe):oe=0;var $=W.getAttribute("stop-color")||"#000000";Y.addColorStop(oe,$)}W=W.nextSibling}}function n(P,Y){P&&P.__inheritedStyle&&(Y.__inheritedStyle||(Y.__inheritedStyle={}),p(Y.__inheritedStyle,P.__inheritedStyle))}function F(P){for(var Y=C(P).split(T),W=[],oe=0;oe0;X-=2){var Z=$[X],se=$[X-1];oe=oe||g.create();switch(se){case"translate":Z=C(Z).split(T),g.translate(oe,oe,[parseFloat(Z[0]),parseFloat(Z[1]||0)]);break;case"scale":Z=C(Z).split(T),g.scale(oe,oe,[parseFloat(Z[0]),parseFloat(Z[1]||Z[0])]);break;case"rotate":Z=C(Z).split(T),g.rotate(oe,oe,parseFloat(Z[0]));break;case"skew":Z=C(Z).split(T),console.warn("Skew transform is not supported yet");break;case"matrix":var Z=C(Z).split(T);oe[0]=parseFloat(Z[0]),oe[1]=parseFloat(Z[1]),oe[2]=parseFloat(Z[2]),oe[3]=parseFloat(Z[3]),oe[4]=parseFloat(Z[4]),oe[5]=parseFloat(Z[5]);break}}Y.setLocalTransform(oe)}}var Q=/([^\s:;]+)\s*:\s*([^:;]+)/g;function G(P){var Y=P.getAttribute("style"),W={};if(!Y)return W;var oe={};Q.lastIndex=0;for(var $;($=Q.exec(Y))!=null;)oe[$[1]]=$[2];for(var X in _)_.hasOwnProperty(X)&&oe[X]!=null&&(W[_[X]]=oe[X]);return W}function ne(P,Y,W){var oe=Y/P.width,$=W/P.height,X=Math.min(oe,$),Z=[X,X],se=[-(P.x+P.width/2)*X+Y/2,-(P.y+P.height/2)*X+W/2];return{scale:Z,position:se}}function J(P,Y){var W=new H;return W.parse(P,Y)}x.parseXML=B,x.makeViewBoxTransform=ne,x.parseSVG=J},MKOG:function(ie,x,t){var O=t("bYtY"),f=t("YH21"),m=f.Dispatcher,v=t("mLcG"),u=t("Bq2U"),a=function(e){e=e||{},this.stage=e.stage||{},this.onframe=e.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,m.call(this)};a.prototype={constructor:a,addClip:function(e){this._clips.push(e)},addAnimator:function(e){e.animation=this;for(var s=e.getClips(),l=0;l=0&&this._clips.splice(s,1)},removeAnimator:function(e){for(var s=e.getClips(),l=0;l1&&(w*=v(R),c*=v(R));var M=(B===H?-1:1)*v((w*w*(c*c)-w*w*(b*b)-c*c*(k*k))/(w*w*(b*b)+c*c*(k*k)))||0,j=M*w*b/c,Q=M*-c*k/w,G=(p+h)/2+a(_)*j-u(_)*Q,ne=(C+T)/2+u(_)*j+a(_)*Q,J=l([1,0],[(k-j)/w,(b-Q)/c]),P=[(k-j)/w,(b-Q)/c],Y=[(-1*k-j)/w,(-1*b-Q)/c],W=l(P,Y);s(P,Y)<=-1&&(W=r),s(P,Y)>=1&&(W=0),H===0&&W>0&&(W=W-2*r),H===1&&W<0&&(W=W+2*r),F.addData(n,G,ne,w,c,J,W,_,H)}var d=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,g=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function E(p){if(!p)return new f;for(var C=0,h=0,T=C,B=h,H,w=new f,c=f.CMD,o=p.match(d),n=0;n1&&arguments[1]!==void 0?arguments[1]:60,u=null;return function(){for(var a=this,r=arguments.length,e=new Array(r),s=0;s=0;D-=1){var N=e.get(D)||new Set;N.forEach(function(L){var p=L.parent,C=L.node;if(l(C)||!L.parent||y.has(L.parent.key))return;if(l(L.parent.node)){y.add(p.key);return}var h=!0,T=!1;(p.children||[]).filter(function(B){return!l(B.node)}).forEach(function(B){var H=B.key,w=i.has(H);h&&!w&&(h=!1),!T&&(w||d.has(H))&&(T=!0)}),h&&i.add(p.key),T&&d.add(p.key),y.add(p.key)})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(f(d,i))}}function u(r,e,s,l,i){for(var d=new Set(r),g=new Set(e),E=0;E<=l;E+=1){var y=s.get(E)||new Set;y.forEach(function(p){var C=p.key,h=p.node,T=p.children,B=T===void 0?[]:T;!d.has(C)&&!g.has(C)&&!i(h)&&B.filter(function(H){return!i(H.node)}).forEach(function(H){d.delete(H.key)})})}g=new Set;for(var D=new Set,N=l;N>=0;N-=1){var L=s.get(N)||new Set;L.forEach(function(p){var C=p.parent,h=p.node;if(i(h)||!p.parent||D.has(p.parent.key))return;if(i(p.parent.node)){D.add(C.key);return}var T=!0,B=!1;(C.children||[]).filter(function(H){return!i(H.node)}).forEach(function(H){var w=H.key,c=d.has(w);T&&!c&&(T=!1),!B&&(c||g.has(w))&&(B=!0)}),T||d.delete(C.key),B&&g.add(C.key),D.add(C.key)})}return{checkedKeys:Array.from(d),halfCheckedKeys:Array.from(f(g,d))}}function a(r,e,s,l){var i=[],d;l?d=l:d=m;var g=new Set(r.filter(function(N){var L=!!s[N];return L||i.push(N),L})),E=new Map,y=0;Object.keys(s).forEach(function(N){var L=s[N],p=L.level,C=E.get(p);C||(C=new Set,E.set(p,C)),C.add(L),y=Math.max(y,p)}),Object(O.a)(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map(function(N){return"'".concat(N,"'")}).join(", ")));var D;return e===!0?D=v(g,E,y,d):D=u(g,e.halfCheckedKeys,E,y,d),D}},OLES:function(ie,x,t){"use strict";var O=t("U8pU"),f=t("VTBJ"),m=t("Ff2n"),v=t("q1tI"),u=t("uciX"),a=t("7ixt"),r=function(g){var E=g.overlay,y=g.prefixCls,D=g.id,N=g.overlayInnerStyle;return v.createElement("div",{className:"".concat(y,"-inner"),id:D,role:"tooltip",style:N},typeof E=="function"?E():E)},e=r,s=function(g,E){var y=g.overlayClassName,D=g.trigger,N=D===void 0?["hover"]:D,L=g.mouseEnterDelay,p=L===void 0?0:L,C=g.mouseLeaveDelay,h=C===void 0?.1:C,T=g.overlayStyle,B=g.prefixCls,H=B===void 0?"rc-tooltip":B,w=g.children,c=g.onVisibleChange,o=g.afterVisibleChange,n=g.transitionName,F=g.animation,_=g.placement,k=_===void 0?"right":_,b=g.align,R=b===void 0?{}:b,M=g.destroyTooltipOnHide,j=M===void 0?!1:M,Q=g.defaultVisible,G=g.getTooltipContainer,ne=g.overlayInnerStyle,J=Object(m.a)(g,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),P=Object(v.useRef)(null);Object(v.useImperativeHandle)(E,function(){return P.current});var Y=Object(f.a)({},J);"visible"in g&&(Y.popupVisible=g.visible);var W=function(){var se=g.arrowContent,ae=se===void 0?null:se,ve=g.overlay,V=g.id;return[v.createElement("div",{className:"".concat(H,"-arrow"),key:"arrow"},ae),v.createElement(e,{key:"content",prefixCls:H,id:V,overlay:ve,overlayInnerStyle:ne})]},oe=!1,$=!1;if(typeof j=="boolean")oe=j;else if(j&&Object(O.a)(j)==="object"){var X=j.keepParent;oe=X===!0,$=X===!1}return v.createElement(u.a,Object.assign({popupClassName:y,prefixCls:H,popup:W,action:N,builtinPlacements:a.a,popupPlacement:k,ref:P,popupAlign:R,getPopupContainer:G,onPopupVisibleChange:c,afterPopupVisibleChange:o,popupTransitionName:n,popupAnimation:F,defaultPopupVisible:Q,destroyPopupOnHide:oe,autoDestroy:$,mouseLeaveDelay:h,popupStyle:T,mouseEnterDelay:p},Y),w)},l=Object(v.forwardRef)(s),i=x.a=l},OS9S:function(ie,x,t){var O=t("bYtY"),f=O.inherits,m=t("Gev7"),v=t("mFDi");function u(e){m.call(this,e),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}u.prototype.incremental=!0,u.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},u.prototype.addDisplayable=function(e,s){s?this._temporaryDisplayables.push(e):this._displayables.push(e),this.dirty()},u.prototype.addDisplayables=function(e,s){s=s||!1;for(var l=0;l=0&&w.splice(c,1),w}function i(B,H){var w=B.slice();return w.indexOf(H)===-1&&w.push(H),w}function d(B){return B.split("-")}function g(B,H){return"".concat(B,"-").concat(H)}function E(B){return B&&B.type&&B.type.isTreeNode}function y(B,H){var w=[B],c=H[B];function o(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];n.forEach(function(F){var _=F.key,k=F.children;w.push(_),o(k)})}return o(c.children),w}function D(B,H){var w=B.clientY,c=H.selectHandle.getBoundingClientRect(),o=c.top,n=c.bottom,F=c.height,_=Math.max(F*e,s);return w<=o+_?-1:w>=n-_?1:0}function N(B,H){if(!B)return;var w=H.multiple;return w?B.slice():B.length?[B[0]]:B}var L=function(H){return H};function p(B,H){if(!B)return[];var w=H||{},c=w.processProps,o=c===void 0?L:c,n=Array.isArray(B)?B:[B];return n.map(function(F){var _=F.children,k=Object(m.a)(F,["children"]),b=p(_,H);return u.a.createElement(r.a,Object.assign({},o(k)),b)})}function C(B){if(!B)return null;var H;if(Array.isArray(B))H={checkedKeys:B,halfCheckedKeys:void 0};else if(Object(f.a)(B)==="object")H={checkedKeys:B.checked||void 0,halfCheckedKeys:B.halfChecked||void 0};else return Object(a.a)(!1,"`checkedKeys` is not an array or an object"),null;return H}function h(B,H){var w=new Set;function c(o){if(w.has(o))return;var n=H[o];if(!n)return;w.add(o);var F=n.parent,_=n.node;if(_.disabled)return;F&&c(F.key)}return(B||[]).forEach(function(o){c(o)}),Object(O.a)(w)}function T(B){var H={};return Object.keys(B).forEach(function(w){(w.startsWith("data-")||w.startsWith("aria-"))&&(H[w]=B[w])}),H}},Ohmc:function(ie,x,t){ie.exports=t.p+"static/certificate.fc32dc1b.jpg"},P47w:function(ie,x,t){var O=t("hydK"),f=O.createElement,m=t("IMiH"),v=t("mFDi"),u=t("Fofx"),a=t("6GrX"),r=t("pzxd"),e=t("dqUG"),s=m.CMD,l=Array.prototype.join,i="none",d=Math.round,g=Math.sin,E=Math.cos,y=Math.PI,D=Math.PI*2,N=180/y,L=1e-4;function p(P){return d(P*1e4)/1e4}function C(P){return P-L}function h(P,Y){var W=Y?P.textFill:P.fill;return W!=null&&W!==i}function T(P,Y){var W=Y?P.textStroke:P.stroke;return W!=null&&W!==i}function B(P,Y){Y&&H(P,"transform","matrix("+l.call(Y,",")+")")}function H(P,Y,W){(!W||W.type!=="linear"&&W.type!=="radial")&&P.setAttribute(Y,W)}function w(P,Y,W){P.setAttributeNS("http://www.w3.org/1999/xlink",Y,W)}function c(P,Y,W,oe){if(h(Y,W)){var $=W?Y.textFill:Y.fill;$=$==="transparent"?i:$,H(P,"fill",$),H(P,"fill-opacity",Y.fillOpacity!=null?Y.fillOpacity*Y.opacity:Y.opacity)}else H(P,"fill",i);if(T(Y,W)){var X=W?Y.textStroke:Y.stroke;X=X==="transparent"?i:X,H(P,"stroke",X);var Z=W?Y.textStrokeWidth:Y.lineWidth,se=!W&&Y.strokeNoScale?oe.getLineScale():1;H(P,"stroke-width",Z/se),H(P,"paint-order",W?"stroke":"fill"),H(P,"stroke-opacity",Y.strokeOpacity!=null?Y.strokeOpacity:Y.opacity);var ae=Y.lineDash;ae?(H(P,"stroke-dasharray",Y.lineDash.join(",")),H(P,"stroke-dashoffset",d(Y.lineDashOffset||0))):H(P,"stroke-dasharray",""),Y.lineCap&&H(P,"stroke-linecap",Y.lineCap),Y.lineJoin&&H(P,"stroke-linejoin",Y.lineJoin),Y.miterLimit&&H(P,"stroke-miterlimit",Y.miterLimit)}else H(P,"stroke",i)}function o(P){for(var Y=[],W=P.data,oe=P.len(),$=0;$=D:-q>=D),K=q>0?q%D:q%D+D,ee=!1;S?ee=!0:C(A)?ee=!1:ee=K>=y===!!z;var de=p(ae+V*E(I)),he=p(ve+re*g(I));S&&(z?q=D-1e-4:q=-D+1e-4,ee=!0,$===9&&Y.push("M",de,he));var Me=p(ae+V*E(I+q)),ce=p(ve+re*g(I+q));Y.push("A",p(V),p(re),d(fe*N),+ee,+z,Me,ce);break;case s.Z:Z="Z";break;case s.R:var Me=p(W[$++]),ce=p(W[$++]),be=p(W[$++]),Ae=p(W[$++]);Y.push("M",Me,ce,"L",Me+be,ce,"L",Me+be,ce+Ae,"L",Me,ce+Ae,"L",Me,ce);break}Z&&Y.push(Z);for(var ye=0;yeke){for(;Ae0&&g>0&&u[d-1]||(e+=l?m("M",g+r,.5+E+r):m("m",s,0),s=0,l=!1),g+1':"",E="',y='viewBox="0 0 '+d+" "+d+'"',D=s.width?'width="'+s.width+'" height="'+s.width+'" ':"",N=''+g+E+` +`;return typeof e=="function"&&e(null,N),N}},QBsz:function(ie,x){var t=typeof Float32Array=="undefined"?Array:Float32Array;function O(c,o){var n=new t(2);return c==null&&(c=0),o==null&&(o=0),n[0]=c,n[1]=o,n}function f(c,o){return c[0]=o[0],c[1]=o[1],c}function m(c){var o=new t(2);return o[0]=c[0],o[1]=c[1],o}function v(c,o,n){return c[0]=o,c[1]=n,c}function u(c,o,n){return c[0]=o[0]+n[0],c[1]=o[1]+n[1],c}function a(c,o,n,F){return c[0]=o[0]+n[0]*F,c[1]=o[1]+n[1]*F,c}function r(c,o,n){return c[0]=o[0]-n[0],c[1]=o[1]-n[1],c}function e(c){return Math.sqrt(l(c))}var s=e;function l(c){return c[0]*c[0]+c[1]*c[1]}var i=l;function d(c,o,n){return c[0]=o[0]*n[0],c[1]=o[1]*n[1],c}function g(c,o,n){return c[0]=o[0]/n[0],c[1]=o[1]/n[1],c}function E(c,o){return c[0]*o[0]+c[1]*o[1]}function y(c,o,n){return c[0]=o[0]*n,c[1]=o[1]*n,c}function D(c,o){var n=e(o);return n===0?(c[0]=0,c[1]=0):(c[0]=o[0]/n,c[1]=o[1]/n),c}function N(c,o){return Math.sqrt((c[0]-o[0])*(c[0]-o[0])+(c[1]-o[1])*(c[1]-o[1]))}var L=N;function p(c,o){return(c[0]-o[0])*(c[0]-o[0])+(c[1]-o[1])*(c[1]-o[1])}var C=p;function h(c,o){return c[0]=-o[0],c[1]=-o[1],c}function T(c,o,n,F){return c[0]=o[0]+F*(n[0]-o[0]),c[1]=o[1]+F*(n[1]-o[1]),c}function B(c,o,n){var F=o[0],_=o[1];return c[0]=n[0]*F+n[2]*_+n[4],c[1]=n[1]*F+n[3]*_+n[5],c}function H(c,o,n){return c[0]=Math.min(o[0],n[0]),c[1]=Math.min(o[1],n[1]),c}function w(c,o,n){return c[0]=Math.max(o[0],n[0]),c[1]=Math.max(o[1],n[1]),c}x.create=O,x.copy=f,x.clone=m,x.set=v,x.add=u,x.scaleAndAdd=a,x.sub=r,x.len=e,x.length=s,x.lenSquare=l,x.lengthSquare=i,x.mul=d,x.div=g,x.dot=E,x.scale=y,x.normalize=D,x.distance=N,x.dist=L,x.distanceSquare=p,x.distSquare=C,x.negate=h,x.lerp=T,x.applyTransform=B,x.min=H,x.max=w},"QO+J":function(ie,x,t){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.createSensor=void 0;var O=m(t("NohK")),f=t("24YM");function m(u){return u&&u.__esModule?u:{default:u}}var v=function(a){var r=void 0,e=[],s=function(){getComputedStyle(a).position==="static"&&(a.style.position="relative");var y=document.createElement("object");return y.onload=function(){y.contentDocument.defaultView.addEventListener("resize",l),l()},y.style.display="block",y.style.position="absolute",y.style.top="0",y.style.left="0",y.style.height="100%",y.style.width="100%",y.style.overflow="hidden",y.style.pointerEvents="none",y.style.zIndex="-1",y.style.opacity="0",y.setAttribute("class",f.SensorClassName),y.setAttribute("tabindex",f.SensorTabIndex),y.type="text/html",a.appendChild(y),y.data="about:blank",y},l=(0,O.default)(function(){e.forEach(function(E){E(a)})}),i=function(y){r||(r=s()),e.indexOf(y)===-1&&e.push(y)},d=function(){r&&r.parentNode&&(r.contentDocument&&r.contentDocument.defaultView.removeEventListener("resize",l),r.parentNode.removeChild(r),r=void 0,e=[])},g=function(y){var D=e.indexOf(y);D!==-1&&e.splice(D,1),e.length===0&&r&&d()};return{element:a,bind:i,destroy:d,unbind:g}};x.createSensor=v},QUaw:function(ie,x,t){var O=t("Rb7d");function f(v,u,a){v.clearRect(0,0,u.width,u.height),u.style||(u.style={}),u.height=a,u.width=a,u.style.height=a+"px",u.style.width=a+"px"}function m(){try{return document.createElement("canvas")}catch(v){throw new Error("You need to specify a canvas element")}}x.render=function(u,a,r){var e=r,s=a;typeof e=="undefined"&&(!a||!a.getContext)&&(e=a,a=void 0),a||(s=m()),e=O.getOptions(e);var l=O.getImageWidth(u.modules.size,e),i=s.getContext("2d"),d=i.createImageData(l,l);return O.qrToImageData(d.data,u,e),f(i,s,l),i.putImageData(d,0,0),s},x.renderToDataURL=function(u,a,r){var e=r;typeof e=="undefined"&&(!a||!a.getContext)&&(e=a,a=void 0),e||(e={});var s=x.render(u,a,e),l=e.type||"image/png",i=e.rendererOpts||{};return s.toDataURL(l,i.quality)}},Qe9p:function(ie,x,t){var O=t("1RvN"),f={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function m(o){return o=Math.round(o),o<0?0:o>255?255:o}function v(o){return o=Math.round(o),o<0?0:o>360?360:o}function u(o){return o<0?0:o>1?1:o}function a(o){return o.length&&o.charAt(o.length-1)==="%"?m(parseFloat(o)/100*255):m(parseInt(o,10))}function r(o){return o.length&&o.charAt(o.length-1)==="%"?u(parseFloat(o)/100):u(parseFloat(o))}function e(o,n,F){return F<0?F+=1:F>1&&(F-=1),F*6<1?o+(n-o)*F*6:F*2<1?n:F*3<2?o+(n-o)*(2/3-F)*6:o}function s(o,n,F){return o+(n-o)*F}function l(o,n,F,_,k){return o[0]=n,o[1]=F,o[2]=_,o[3]=k,o}function i(o,n){return o[0]=n[0],o[1]=n[1],o[2]=n[2],o[3]=n[3],o}var d=new O(20),g=null;function E(o,n){g&&i(g,n),g=d.put(o,g||n.slice())}function y(o,n){if(!o)return;n=n||[];var F=d.get(o);if(F)return i(n,F);o=o+"";var _=o.replace(/ /g,"").toLowerCase();if(_ in f)return i(n,f[_]),E(o,n),n;if(_.charAt(0)==="#"){if(_.length===4){var k=parseInt(_.substr(1),16);if(!(k>=0&&k<=4095)){l(n,0,0,0,1);return}return l(n,(k&3840)>>4|(k&3840)>>8,k&240|(k&240)>>4,k&15|(k&15)<<4,1),E(o,n),n}else if(_.length===7){var k=parseInt(_.substr(1),16);if(!(k>=0&&k<=16777215)){l(n,0,0,0,1);return}return l(n,(k&16711680)>>16,(k&65280)>>8,k&255,1),E(o,n),n}return}var b=_.indexOf("("),R=_.indexOf(")");if(b!==-1&&R+1===_.length){var M=_.substr(0,b),j=_.substr(b+1,R-(b+1)).split(","),Q=1;switch(M){case"rgba":if(j.length!==4){l(n,0,0,0,1);return}Q=r(j.pop());case"rgb":if(j.length!==3){l(n,0,0,0,1);return}return l(n,a(j[0]),a(j[1]),a(j[2]),Q),E(o,n),n;case"hsla":if(j.length!==4){l(n,0,0,0,1);return}return j[3]=r(j[3]),D(j,n),E(o,n),n;case"hsl":if(j.length!==3){l(n,0,0,0,1);return}return D(j,n),E(o,n),n;default:return}}l(n,0,0,0,1);return}function D(o,n){var F=(parseFloat(o[0])%360+360)%360/360,_=r(o[1]),k=r(o[2]),b=k<=.5?k*(_+1):k+_-k*_,R=k*2-b;return n=n||[],l(n,m(e(R,b,F+1/3)*255),m(e(R,b,F)*255),m(e(R,b,F-1/3)*255),1),o.length===4&&(n[3]=o[3]),n}function N(o){if(!o)return;var n=o[0]/255,F=o[1]/255,_=o[2]/255,k=Math.min(n,F,_),b=Math.max(n,F,_),R=b-k,M=(b+k)/2,j,Q;if(R===0)j=0,Q=0;else{M<.5?Q=R/(b+k):Q=R/(2-b-k);var G=((b-n)/6+R/2)/R,ne=((b-F)/6+R/2)/R,J=((b-_)/6+R/2)/R;n===b?j=J-ne:F===b?j=1/3+G-J:_===b&&(j=2/3+ne-G),j<0&&(j+=1),j>1&&(j-=1)}var P=[j*360,Q,M];return o[3]!=null&&P.push(o[3]),P}function L(o,n){var F=y(o);if(F){for(var _=0;_<3;_++)n<0?F[_]=F[_]*(1-n)|0:F[_]=(255-F[_])*n+F[_]|0,F[_]>255?F[_]=255:o[_]<0&&(F[_]=0);return c(F,F.length===4?"rgba":"rgb")}}function p(o){var n=y(o);if(n)return((1<<24)+(n[0]<<16)+(n[1]<<8)+ +n[2]).toString(16).slice(1)}function C(o,n,F){if(!(n&&n.length)||!(o>=0&&o<=1))return;F=F||[];var _=o*(n.length-1),k=Math.floor(_),b=Math.ceil(_),R=n[k],M=n[b],j=_-k;return F[0]=m(s(R[0],M[0],j)),F[1]=m(s(R[1],M[1],j)),F[2]=m(s(R[2],M[2],j)),F[3]=u(s(R[3],M[3],j)),F}var h=C;function T(o,n,F){if(!(n&&n.length)||!(o>=0&&o<=1))return;var _=o*(n.length-1),k=Math.floor(_),b=Math.ceil(_),R=y(n[k]),M=y(n[b]),j=_-k,Q=c([m(s(R[0],M[0],j)),m(s(R[1],M[1],j)),m(s(R[2],M[2],j)),u(s(R[3],M[3],j))],"rgba");return F?{color:Q,leftIndex:k,rightIndex:b,value:_}:Q}var B=T;function H(o,n,F,_){if(o=y(o),o)return o=N(o),n!=null&&(o[0]=v(n)),F!=null&&(o[1]=r(F)),_!=null&&(o[2]=r(_)),c(D(o),"rgba")}function w(o,n){if(o=y(o),o&&n!=null)return o[3]=u(n),c(o,"rgba")}function c(o,n){if(!o||!o.length)return;var F=o[0]+","+o[1]+","+o[2];return(n==="rgba"||n==="hsva"||n==="hsla")&&(F+=","+o[3]),n+"("+F+")"}x.parse=y,x.lift=L,x.toHex=p,x.fastLerp=C,x.fastMapToColor=h,x.lerp=T,x.mapToColor=B,x.modifyHSL=H,x.modifyAlpha=w,x.stringify=c},QuXc:function(ie,x){var t=function(f){this.colorStops=f||[]};t.prototype={constructor:t,addColorStop:function(f,m){this.colorStops.push({offset:f,color:m})}};var O=t;ie.exports=O},RDYZ:function(ie,x,t){var O=t("dMvE");function f(v){this._target=v.target,this._life=v.life||1e3,this._delay=v.delay||0,this._initialized=!1,this.loop=v.loop==null?!1:v.loop,this.gap=v.gap||0,this.easing=v.easing||"Linear",this.onframe=v.onframe,this.ondestroy=v.ondestroy,this.onrestart=v.onrestart,this._pausedTime=0,this._paused=!1}f.prototype={constructor:f,step:function(v,u){if(this._initialized||(this._startTime=v+this._delay,this._initialized=!0),this._paused){this._pausedTime+=u;return}var a=(v-this._startTime-this._pausedTime)/this._life;if(a<0)return;a=Math.min(a,1);var r=this.easing,e=typeof r=="string"?O[r]:r,s=typeof e=="function"?e(a):a;return this.fire("frame",s),a===1?this.loop?(this.restart(v),"restart"):(this._needsRemove=!0,"destroy"):null},restart:function(v){var u=(v-this._startTime-this._pausedTime)%this._life;this._startTime=v-u+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(v,u){v="on"+v,this[v]&&this[v](this._target,u)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var m=f;ie.exports=m},RMFE:function(ie,x){ie.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWgAAAFyCAYAAADYqEAoAAAAAXNSR0IArs4c6QAADetJREFUeAHt1jFqXUEQRUHLaP9b/jZObmYU9MAJSlGDxNBUPw76+vz9+eWHAAECBHICv3MbWYgAAQIE/gkItA+BAAECUQGBjh7GWgQIEBBo3wABAgSiAgIdPYy1CBAgINC+AQIECEQFBDp6GGsRIEBAoH0DBAgQiAoIdPQw1iJAgIBA+wYIECAQFRDo6GGsRYAAAYH2DRAgQCAqINDRw1iLAAECAu0bIECAQFRAoKOHsRYBAgQE2jdAgACBqIBARw9jLQIECAi0b4AAAQJRAYGOHsZaBAgQEGjfAAECBKICAh09jLUIECAg0L4BAgQIRAUEOnoYaxEgQECgfQMECBCICgh09DDWIkCAgED7BggQIBAVEOjoYaxFgAABgfYNECBAICog0NHDWIsAAQIC7RsgQIBAVECgo4exFgECBATaN0CAAIGogEBHD2MtAgQICLRvgAABAlEBgY4exloECBAQaN8AAQIEogICHT2MtQgQICDQvgECBAhEBQQ6ehhrESBAQKB9AwQIEIgKCHT0MNYiQICAQPsGCBAgEBUQ6OhhrEWAAAGB9g0QIEAgKiDQ0cNYiwABAgLtGyBAgEBUQKCjh7EWAQIEBNo3QIAAgaiAQEcPYy0CBAh8/5Tg6+vrp3/q7wgQIEDgPwKfz+c/v92v/Ac9CxMBAgRSAgKdOodlCBAgMAGBnoWJAA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ESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICXz/dJvP5/PTP/V3BAgQIHAg4D/oA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IXAH7PYDOHnuk1pAAAAAElFTkSuQmCC"},RXMa:function(ie,x,t){var O=t("y+Vt"),f=O.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(m,v){var u=v.cx,a=v.cy,r=Math.PI*2;m.moveTo(u+v.r,a),m.arc(u,a,v.r,0,r,!1),m.moveTo(u+v.r0,a),m.arc(u,a,v.r0,0,r,!0)}});ie.exports=f},Rb7d:function(ie,x){function t(O){if(typeof O=="number"&&(O=O.toString()),typeof O!="string")throw new Error("Color should be defined as hex string");var f=O.slice().replace("#","").split("");if(f.length<3||f.length===5||f.length>8)throw new Error("Invalid hex color: "+O);(f.length===3||f.length===4)&&(f=Array.prototype.concat.apply([],f.map(function(v){return[v,v]}))),f.length===6&&f.push("F","F");var m=parseInt(f.join(""),16);return{r:m>>24&255,g:m>>16&255,b:m>>8&255,a:m&255,hex:"#"+f.slice(0,6).join("")}}x.getOptions=function(f){f||(f={}),f.color||(f.color={});var m=typeof f.margin=="undefined"||f.margin===null||f.margin<0?4:f.margin,v=f.width&&f.width>=21?f.width:void 0,u=f.scale||4;return{width:v,scale:v?4:u,margin:m,color:{dark:t(f.color.dark||"#000000ff"),light:t(f.color.light||"#ffffffff")},type:f.type,rendererOpts:f.rendererOpts||{}}},x.getScale=function(f,m){return m.width&&m.width>=f+m.margin*2?m.width/(f+m.margin*2):m.scale},x.getImageWidth=function(f,m){var v=x.getScale(f,m);return Math.floor((f+m.margin*2)*v)},x.qrToImageData=function(f,m,v){for(var u=m.modules.size,a=m.modules.data,r=x.getScale(u,v),e=Math.floor((u+v.margin*2)*r),s=v.margin*r,l=[v.color.light,v.color.dark],i=0;i=s&&d>=s&&i-a&&oa||o<-a}function y(o,n,F,_,k){var b=1-k;return b*b*(b*o+3*k*n)+k*k*(k*_+3*b*F)}function D(o,n,F,_,k){var b=1-k;return 3*(((n-o)*b+2*(F-n)*k)*b+(_-F)*k*k)}function N(o,n,F,_,k,b){var R=_+3*(n-F)-o,M=3*(F-n*2+o),j=3*(n-o),Q=o-k,G=M*M-3*R*j,ne=M*j-9*R*Q,J=j*j-3*M*Q,P=0;if(g(G)&&g(ne))if(g(M))b[0]=0;else{var Y=-j/M;Y>=0&&Y<=1&&(b[P++]=Y)}else{var W=ne*ne-4*G*J;if(g(W)){var oe=ne/G,Y=-M/R+oe,$=-oe/2;Y>=0&&Y<=1&&(b[P++]=Y),$>=0&&$<=1&&(b[P++]=$)}else if(W>0){var X=u(W),Z=G*M+1.5*R*(-ne+X),se=G*M+1.5*R*(-ne-X);Z<0?Z=-v(-Z,s):Z=v(Z,s),se<0?se=-v(-se,s):se=v(se,s);var Y=(-M-(Z+se))/(3*R);Y>=0&&Y<=1&&(b[P++]=Y)}else{var ae=(2*G*M-3*R*ne)/(2*u(G*G*G)),ve=Math.acos(ae)/3,V=u(G),re=Math.cos(ve),Y=(-M-2*V*re)/(3*R),$=(-M+V*(re+e*Math.sin(ve)))/(3*R),I=(-M+V*(re-e*Math.sin(ve)))/(3*R);Y>=0&&Y<=1&&(b[P++]=Y),$>=0&&$<=1&&(b[P++]=$),I>=0&&I<=1&&(b[P++]=I)}}return P}function L(o,n,F,_,k){var b=6*F-12*n+6*o,R=9*n+3*_-3*o-9*F,M=3*n-3*o,j=0;if(g(R)){if(E(b)){var Q=-M/b;Q>=0&&Q<=1&&(k[j++]=Q)}}else{var G=b*b-4*R*M;if(g(G))k[0]=-b/(2*R);else if(G>0){var ne=u(G),Q=(-b+ne)/(2*R),J=(-b-ne)/(2*R);Q>=0&&Q<=1&&(k[j++]=Q),J>=0&&J<=1&&(k[j++]=J)}}return j}function p(o,n,F,_,k,b){var R=(n-o)*k+o,M=(F-n)*k+n,j=(_-F)*k+F,Q=(M-R)*k+R,G=(j-M)*k+M,ne=(G-Q)*k+Q;b[0]=o,b[1]=R,b[2]=Q,b[3]=ne,b[4]=ne,b[5]=G,b[6]=j,b[7]=_}function C(o,n,F,_,k,b,R,M,j,Q,G){var ne,J=.005,P=Infinity,Y,W,oe,$;l[0]=j,l[1]=Q;for(var X=0;X<1;X+=.05)i[0]=y(o,F,k,R,X),i[1]=y(n,_,b,M,X),oe=m(l,i),oe=0&&oe=0&&Q<=1&&(k[j++]=Q)}}else{var G=R*R-4*b*M;if(g(G)){var Q=-R/(2*b);Q>=0&&Q<=1&&(k[j++]=Q)}else if(G>0){var ne=u(G),Q=(-R+ne)/(2*b),J=(-R-ne)/(2*b);Q>=0&&Q<=1&&(k[j++]=Q),J>=0&&J<=1&&(k[j++]=J)}}return j}function H(o,n,F){var _=o+F-2*n;return _===0?.5:(o-n)/_}function w(o,n,F,_,k){var b=(n-o)*_+o,R=(F-n)*_+n,M=(R-b)*_+b;k[0]=o,k[1]=b,k[2]=M,k[3]=M,k[4]=R,k[5]=F}function c(o,n,F,_,k,b,R,M,j){var Q,G=.005,ne=Infinity;l[0]=R,l[1]=M;for(var J=0;J<1;J+=.05){i[0]=h(o,F,k,J),i[1]=h(n,_,b,J);var P=m(l,i);P=0&&P=0;--C)if(p[C]===L)return!0;return!1}),N):null:N[0]},g.prototype.update=function(y,D){if(!y)return;var N=this.getDefs(!1);if(y[this._domName]&&N.contains(y[this._domName]))typeof D=="function"&&D(y);else{var L=this.add(y);L&&(y[this._domName]=L)}},g.prototype.addDom=function(y){var D=this.getDefs(!0);D.appendChild(y)},g.prototype.removeDom=function(y){var D=this.getDefs(!1);D&&y[this._domName]&&(D.removeChild(y[this._domName]),y[this._domName]=null)},g.prototype.getDoms=function(){var y=this.getDefs(!1);if(!y)return[];var D=[];return m.each(this._tagNames,function(N){var L=y.getElementsByTagName(N);D=D.concat([].slice.call(L))}),D},g.prototype.markAllUnused=function(){var y=this.getDoms(),D=this;m.each(y,function(N){N[D._markLabel]=i})},g.prototype.markUsed=function(y){y&&(y[this._markLabel]=d)},g.prototype.removeUnused=function(){var y=this.getDefs(!1);if(!y)return;var D=this.getDoms(),N=this;m.each(D,function(L){L[N._markLabel]!==d&&y.removeChild(L)})},g.prototype.getSvgProxy=function(y){return y instanceof v?e:y instanceof u?s:y instanceof a?l:e},g.prototype.getTextSvgElement=function(y){return y.__textSvgEl},g.prototype.getSvgElement=function(y){return y.__svgEl};var E=g;ie.exports=E},T6xi:function(ie,x,t){var O=t("YgsL"),f=t("nCxF");function m(v,u,a){var r=u.points,e=u.smooth;if(r&&r.length>=2){if(e&&e!=="spline"){var s=f(r,e,a,u.smoothConstraint);v.moveTo(r[0][0],r[0][1]);for(var l=r.length,i=0;i<(a?l:l-1);i++){var d=s[i*2],g=s[i*2+1],E=r[(i+1)%l];v.bezierCurveTo(d[0],d[1],g[0],g[1],E[0],E[1])}}else{e==="spline"&&(r=O(r,a)),v.moveTo(r[0][0],r[0][1]);for(var i=1,y=r.length;i

').concat($t.name," ").concat($t.attendance_date," ").concat($t.start_time,"-").concat($t.end_time,`

\u5230\u8BFE\u7387\uFF1A').concat(Math.round(_t[0].value),`%

\u65F7\u8BFE\u7387\uFF1A').concat(Math.round(_t[1].value),`%

\u8BF7\u5047\u7387\uFF1A').concat(Math.round(_t[2].value),`%

- `)}},legend:{data:["\u5230\u8BFE\u7387","\u65F7\u8BFE\u7387","\u8BF7\u5047\u7387"],show:!1},xAxis:{type:"category",nameRotate:45,data:Ge==null||((Tt=Ge.history_attendances)===null||Tt===void 0)?void 0:Tt.map(function(Jt,_t){var Ft=Jt.name;return Ft.length>6&&(Ft=Ft.substr(0,6)+"..."),Ft}),boundaryGap:!1,nameLocation:"start",axisLabel:{interval:0,rotate:"45",verticalAlign:"top",align:"left",margin:28,height:120,textStyle:{align:"center",color:"#999"}}},yAxis:{type:"value",axisLabel:{formatter:"{value}%"},splitLine:{lineStyle:{type:"dashed"}}},series:[{name:"\u5230\u8BFE\u7387",data:Ge==null||((Bt=Ge.history_attendances)===null||Bt===void 0)?void 0:Bt.map(function(Jt,_t){return Jt.normal_rate*100}),type:"line",smooth:!0,color:"#26C7C9"},{name:"\u65F7\u8BFE\u7387",data:Ge==null||((Xt=Ge.history_attendances)===null||Xt===void 0)?void 0:Xt.map(function(Jt,_t){return Jt.absence_rate*100}),type:"line",smooth:!0,color:"#FF835C"},{name:"\u8BF7\u5047\u7387",data:Ge==null||((an=Ge.history_attendances)===null||an===void 0)?void 0:an.map(function(Jt,_t){return Jt.leave_rate*100}),type:"line",smooth:!0,color:"#EDBA6F"}]}};return n.a.createElement("section",{className:"mt20 pb30"},n.a.createElement(l.a,{className:G.a.topStatistics,justify:"space-between"},n.a.createElement(d.a,{flex:"209px"},Math.round((Ge==null?void 0:Ge.all_history_count)||0)),n.a.createElement(d.a,{flex:"209px"},n.a.createElement(n.a.Fragment,null,Math.round(((Ge==null?void 0:Ge.avg_normal_rate)||0)*100),"%")),n.a.createElement(d.a,{flex:"209px"},n.a.createElement(n.a.Fragment,null,Math.round(((Ge==null?void 0:Ge.avg_absence_rate)||0)*100),"%")),n.a.createElement(d.a,{flex:"209px"},n.a.createElement(n.a.Fragment,null,Math.round(((Ge==null?void 0:Ge.avg_leave_rate)||0)*100),"%"))),n.a.createElement("section",{className:"bg-white pl30 pr30 pt30 mt20 pb20"},n.a.createElement(l.a,{gutter:[22,22],className:G.a.filter},n.a.createElement(d.a,{flex:1},n.a.createElement("span",null,n.a.createElement("i",{className:[G.a.daoke,"mr10"].join(" ")}),"\u5230\u8BFE\u7387"),n.a.createElement("span",{className:"ml40"},n.a.createElement("i",{className:[G.a.kuangke,"mr10"].join(" ")}),"\u65F7\u8BFE\u7387"),n.a.createElement("span",{className:"ml40"},n.a.createElement("i",{className:[G.a.qingjia,"mr10"].join(" ")}),"\u8BF7\u5047\u7387")),n.a.createElement(d.a,null,n.a.createElement("span",{className:"c-light-black mr5"},"\u663E\u793A\u6700\u8FD1\u5341\u6B21\u7B7E\u5230"),n.a.createElement(b.a,{size:"large",defaultValue:"",onSelect:function(Tt){Ht=Tt,en(Tt),xt()}},n.a.createElement(b.a.Option,{value:""}," \u5168\u90E8\u5206\u73ED "),gt==null||((Oe=gt.course_groups)===null||Oe===void 0)?void 0:Oe.map(function(Ot,Tt){return n.a.createElement(b.a.Option,{value:Ot.id}," ",Ot.name," ")})))),Ge!=null&&(ge=Ge.history_attendances)!==null&&ge!==void 0&&ge.length?n.a.createElement(j.a,{option:Lt(),style:{height:370},opts:{renderer:"svg"}}):n.a.createElement(R.a,{styles:{marginTop:50,paddingBottom:50}})))},J=Object(_.a)(function(ze){var Ce=ze.classroomList,Oe=ze.loading,ge=ze.teachers,te=ze.globalSetting;return{classroomList:Ce,globalSetting:te,teachers:ge,loading:Oe.effects}})(ne),P=t("2qtc"),Y=t("kLXV"),W=t("ErOA"),oe=function(Ce){var Oe=Ce.classroomList,ge=Ce.dispatch,te=Ce.cb,le=Object(F.i)();return le.id=le.coursesId,n.a.createElement(Y.a,{centered:!0,title:"\u63D0\u793A",visible:Oe.actionTabs.key==="\u5220\u9664",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Object(L.a)(c.a.mark(function we(){var xe,Re;return c.a.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return xe="/api/weapps/attendances/".concat(Oe.actionTabs.selectArrs[0],".json"),Te.next=3,Object(W.a)(xe,{method:"delete"});case 3:Re=Te.sent,Re.status===0&&(y.b.success("\u5220\u9664\u6210\u529F"),ge({type:"classroomList/setActionTabs",payload:{}}),ge({type:"classroomList/getClassroomAttendancesList",payload:Object(h.a)({},Oe.actionTabs.params)}),ge({type:"classroomList/getClassroomLeftMenus",payload:{id:le.coursesId}}));case 5:case"end":return Te.stop()}},we)})),onCancel:function(){ge({type:"classroomList/setActionTabs",payload:{}})}},n.a.createElement("p",null,"\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F"))},$=Object(_.a)(function(ze){var Ce=ze.classroomList;return{classroomList:Ce}})(oe),X=function(Ce){var Oe=Ce.classroomList,ge=Ce.dispatch,te=Ce.cb,le=Object(F.i)();return le.id=le.coursesId,n.a.createElement(Y.a,{centered:!0,title:"\u63D0\u793A",visible:Oe.actionTabs.key==="\u622A\u6B62",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Object(L.a)(c.a.mark(function we(){var xe;return c.a.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return je.next=3,Object(W.a)("/api/weapps/attendances/".concat(Oe.actionTabs.selectArrs[0],"/end.json"),{method:"post"});case 3:xe=je.sent,xe.status===0&&(y.b.success("\u64CD\u4F5C\u6210\u529F"),ge({type:"classroomList/setActionTabs",payload:{}}),ge({type:"classroomList/getClassroomAttendancesList",payload:Object(h.a)({},Oe.actionTabs.params)}));case 5:case"end":return je.stop()}},we)})),onCancel:function(){ge({type:"classroomList/setActionTabs",payload:{}})}},n.a.createElement("p",null,"\u662F\u5426\u786E\u8BA4\u622A\u6B62\uFF1F"))},Z=Object(_.a)(function(ze){var Ce=ze.classroomList;return{classroomList:Ce}})(X),se=t("Xi6J"),ae=t("kl6h"),ve=t("iQDF"),V=t("+eQT"),re=t("7Kak"),I=t("9yH6"),q=t("5NDa"),fe=t("5rEg"),z=t("T2oS"),A=t("W9HT"),S=t("y8nQ"),K=t("Vl3Y"),ee=t("jrin"),de=t("nRaC"),he=t("5RzL"),Me=t("wd/R"),ce=t.n(Me),be=t("1vsH"),Ae=t("wM50"),ye=t.n(Ae),ke=he.a.TreeNode,Se=function(Ce){var Oe=Ce.classroomList,ge=Ce.loading,te=Ce.dispatch,le=Ce.data,we=Object(o.useState)(!1),xe=Object(D.a)(we,2),Re=xe[0],je=xe[1],Te=Object(F.i)();Te.id=Te.coursesId,Object(o.useEffect)(function(){Oe.actionTabs.key==="\u7F16\u8F91"&&(At.resetFields(),te({type:"classroomList/getCourseGroups",payload:{id:Te.id,limit:1e4}}),le.id&&Le())},[Oe.actionTabs.key]);var Le=function(){var Ge=Object(L.a)(c.a.mark(function gt(){var xt,Lt;return c.a.wrap(function(Tt){for(;;)switch(Tt.prev=Tt.next){case 0:return Tt.next=2,te({type:"classroomList/getAttendanceDetail",payload:{id:le.id}});case 2:Lt=Tt.sent,At.setFieldsValue((xt={},Object(ee.a)(xt,"name",Lt.name),Object(ee.a)(xt,"mode",Lt.mode==="QRCODE"?"":Lt.mode),Object(ee.a)(xt,"attendance_date",ce()(Lt.attendance_date)),Object(ee.a)(xt,"group_ids",Lt.groups?Lt.groups.map(function(Bt){return Bt.id}):[]),Object(ee.a)(xt,"end_time",ce()(Lt.end_time)),Object(ee.a)(xt,"start_time",ce()(Lt.start_time)),Object(ee.a)(xt,"late_time",Lt.late_time?ce()(Lt.late_time):null),xt));case 4:case"end":return Tt.stop()}},gt)}));return function(){return Ge.apply(this,arguments)}}(),Fe=Oe.detailAttendancesDetail,dt=Oe.courseGroups,tt=K.a.useForm(),Ct=Object(D.a)(tt,1),At=Ct[0],Ht=[];Oe.courseGroups.course_groups&&Oe.courseGroups.course_groups.map(function(Ge){return Ht.push(Ge.id+"")});var en=function(gt){return gt&>=gt.late_time)){Ot.next=14;break}return y.b.warn("\u8FDF\u5230\u65F6\u95F4\u4E0D\u80FD\u65E9\u4E8E\u6216\u7B49\u4E8E\u7ED3\u675F\u65F6\u95F4"),Ot.abrupt("return");case 14:return je(!0),Ot.next=17,Object(W.a)("/api/attendances/".concat(le.id,".json"),{method:"put",body:Object(h.a)({},gt)});case 17:xt=Ot.sent,xt.status===0&&(y.b.success("\u4FEE\u6539\u6210\u529F"),te({type:"classroomList/setActionTabs",payload:{}}),te({type:"classroomList/getClassroomAttendancesList",payload:Object(h.a)({},Oe.actionTabs.params)})),xt.status===-1&&je(!1);case 20:case"end":return Ot.stop()}},Ge)})),onCancel:function(){te({type:"classroomList/setActionTabs",payload:{}})}},ge.effects["classroomList/getCourseGroups"]&&n.a.createElement("div",{className:"tc mt40"},n.a.createElement(A.a,null)),Fe.groups&&n.a.createElement("section",{className:ye.a.addForm},n.a.createElement(K.a,{form:At},n.a.createElement(K.a.Item,{label:"\u7B7E\u5230\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}]},n.a.createElement(fe.a,{placeholder:"\u8BF7\u8F93\u5165\u7B7E\u5230\u540D\u79F0",size:"large"})),n.a.createElement(K.a.Item,{label:"\u7B7E\u5230\u65B9\u5F0F",name:"mode",rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}]},n.a.createElement(I.a.Group,{size:"large"},n.a.createElement(I.a,{value:"QUICK"},"\u5FEB\u6377\u7B7E\u5230"),n.a.createElement(I.a,{value:"NUMBER"},"\u7B7E\u5230\u7801\u7B7E\u5230"))),n.a.createElement(K.a.Item,{label:"\u7B7E\u5230\u73ED\u7EA7",name:"group_ids"},n.a.createElement(he.a,{showSearch:!0,style:{width:"100%"},dropdownStyle:{maxHeight:260,overflow:"auto"},placeholder:"\u5DF2\u9009\u62E9\u5168\u90E8\u5206\u73ED",treeDefaultExpandAll:!0,treeCheckable:!0,size:"large",disabled:!0},dt.course_groups&&dt.course_groups.map(function(Ge,gt){return n.a.createElement(ke,{key:gt,value:Ge.id,title:Ge.name})}))),n.a.createElement(K.a.Item,{label:"\u7B7E\u5230\u65E5\u671F",name:"attendance_date",rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}]},n.a.createElement(V.a,{placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",size:"large",format:"YYYY-MM-DD"})),n.a.createElement(K.a.Item,{label:"\u5F00\u59CB\u65F6\u95F4",name:"start_time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4!"}]},n.a.createElement(ae.a,{className:"w100",size:"large",minuteStep:1,format:"HH:mm",onChange:function(){At.setFieldsValue({end_time:"",late_time:""})}})),n.a.createElement(K.a.Item,{label:"\u7ED3\u675F\u65F6\u95F4",name:"end_time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4!"}]},n.a.createElement(ae.a,{disabledHours:function(){var gt=At.getFieldValue("start_time");if(gt){var xt=parseInt(ce()(gt).format("HH"));return Object(be.R)(0,23).splice(0,xt)}},disabledMinutes:function(gt){var xt=At.getFieldValue("start_time");if(xt){var Lt=parseInt(ce()(xt).format("mm")),Ot=parseInt(ce()(xt).format("HH"));return Ot===gt?Object(be.R)(0,59).splice(0,Lt):[]}},className:"w100",size:"large",minuteStep:1,format:"HH:mm"})),n.a.createElement(K.a.Item,{label:"\u8FDF\u5230\u65F6\u95F4",name:"late_time",style:{marginBottom:2}},n.a.createElement(ae.a,{className:"w100",size:"large",minuteStep:1,format:"HH:mm"})),n.a.createElement("div",{style:{paddingLeft:102,color:"#999"}},"\u5728\u7ED3\u675F\u65F6\u95F4\u81F3\u8FDF\u5230\u65F6\u95F4\u7B7E\u5230\u7684\u540C\u5B66\u8BB0\u4E3A\u8FDF\u5230"))))},Ne=Object(_.a)(function(ze){var Ce=ze.classroomList,Oe=ze.loading;return{classroomList:Ce,loading:Oe}})(Se),_e=t("oUNq"),$e=t("RotF"),He=t.n($e),nt=b.a.TreeNode,et=function(Ce){var Oe=Ce.classroomList,ge=Ce.dispatch,te=K.a.useForm(),le=Object(D.a)(te,1),we=le[0],xe=Object(F.i)();xe.id=xe.coursesId;var Re=Object(o.useState)(1),je=Object(D.a)(Re,2),Te=je[0],Le=je[1],Fe=Object(o.useState)([]),dt=Object(D.a)(Fe,2),tt=dt[0],Ct=dt[1],At=Object(o.useState)(0),Ht=Object(D.a)(At,2),en=Ht[0],Ge=Ht[1],gt=Object(o.useState)(20),xt=Object(D.a)(gt,2),Lt=xt[0],Ot=xt[1],Tt=Object(o.useState)(!0),Bt=Object(D.a)(Tt,2),Xt=Bt[0],an=Bt[1],Jt=Object(o.useState)(!1),_t=Object(D.a)(Jt,2),Ft=_t[0],$t=_t[1],Sn=Object(o.useRef)([]),ir=Oe.courseGroups;Object(o.useEffect)(function(){Oe.actionTabs.key==="\u65B0\u589E\u7B7E\u5230"&&(document.body.setAttribute("style","height: 100%;"),Kn(),we.resetFields())},[Oe.actionTabs.key]),Object(o.useEffect)(function(){var zt;we.setFieldsValue((zt={},Object(ee.a)(zt,"name","\u8BFE\u7A0B\u7B7E\u5230"+ce()(new Date).format("YYYYMMDD")),Object(ee.a)(zt,"mode","QUICK"),Object(ee.a)(zt,"attendance_date",ce()(new Date)),Object(ee.a)(zt,"start_time",ce()(new Date)),Object(ee.a)(zt,"end_time",ce()(new Date).add(5,"minutes")),Object(ee.a)(zt,"late_time",ce()(new Date).add(15,"minutes")),zt))},[Oe.actionTabs.key]);var Nn=function(Dt){return Dt&&Dt1)return;Le(Dt),Kn(Dt)},wt=function(){document.body.removeAttribute("style"),Le(1),Ct([])},Zt=function(){var zt=Object(L.a)(c.a.mark(function Dt(){var mt,St,Mt,Yt,on;return c.a.wrap(function(qt){for(;;)switch(qt.prev=qt.next){case 0:return qt.t0=h.a,qt.t1={},qt.next=4,we.validateFields();case 4:if(qt.t2=qt.sent,mt=(0,qt.t0)(qt.t1,qt.t2),St=mt.group_ids,Mt=St===void 0?[]:St,Yt=tt.filter(function(On){return Mt.includes(On.name)}),mt.end_time=ce()(mt.end_time).format("HH:mm"),mt.start_time=ce()(mt.start_time).format("HH:mm"),mt.late_time=ce()(mt.late_time).format("HH:mm"),mt.attendance_date=ce()(mt.attendance_date).format("YYYY-MM-DD"),!(mt.end_time>=mt.late_time)){qt.next=15;break}return y.b.warn("\u8FDF\u5230\u65F6\u95F4\u4E0D\u80FD\u65E9\u4E8E\u6216\u7B49\u4E8E\u7ED3\u675F\u65F6\u95F4"),qt.abrupt("return");case 15:return $t(!0),qt.next=18,Object(W.a)("/api/weapps/courses/".concat(xe.id,"/attendances.json"),{method:"post",body:Object(h.a)(Object(h.a)({},mt),{},{group_ids:Yt.map(function(On){return On.id})})});case 18:on=qt.sent,on.status===0&&(wt(),Object(be.Y)(["\u6559\u5B66\u8BFE\u5802","\u7B7E\u5230","\u521B\u5EFA\u7B7E\u5230"]),y.b.success("\u6DFB\u52A0\u6210\u529F"),ge({type:"classroomList/setActionTabs",payload:{}}),ge({type:"classroomList/getClassroomAttendancesList",payload:Object(h.a)({},Oe.actionTabs.params)}),ge({type:"classroomList/getClassroomLeftMenus",payload:{id:xe.coursesId}})),on.status===-1&&$t(!1);case 21:case"end":return qt.stop()}},Dt)}));return function(){return zt.apply(this,arguments)}}(),Cn=en>Te*Lt;return n.a.createElement(Y.a,{centered:!0,title:"\u521B\u5EFA\u7B7E\u5230",visible:Oe.actionTabs.key==="\u65B0\u589E\u7B7E\u5230",bodyStyle:{minHeight:200},onOk:Zt,afterClose:function(){return $t(!1)},confirmLoading:Ft,onCancel:function(){wt(),ge({type:"classroomList/setActionTabs",payload:{}})}},n.a.createElement("section",{className:ye.a.addForm},n.a.createElement(K.a,{form:we,initialValues:{start_time:ce()("09:00","HH:mm")},onChange:function(){}},n.a.createElement(K.a.Item,{label:"\u7B7E\u5230\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7B7E\u5230\u540D\u79F0!"}]},n.a.createElement(fe.a,{size:"large",placeholder:"\u8BF7\u8F93\u5165\u7B7E\u5230\u540D\u79F0"})),n.a.createElement(K.a.Item,{label:"\u7B7E\u5230\u73ED\u7EA7",name:"group_ids"},n.a.createElement(b.a,{showSearch:!1,mode:"multiple",showArrow:!0,style:{width:"100%"},dropdownStyle:{maxHeight:260},size:"large",placeholder:tt!=null&&tt.length?"\u4E0D\u9009\u62E9\u5206\u73ED\u65F6\u9ED8\u8BA4\u9009\u62E9\u5168\u90E8\u5B66\u751F":"\u6682\u65E0\u5206\u73ED\uFF0C\u5C06\u9ED8\u8BA4\u9009\u62E9\u8BFE\u5802\u5168\u90E8\u5B66\u751F",dropdownRender:function(){return n.a.createElement("div",{style:{maxHeight:260,overflowY:"auto",overflowX:"hidden",padding:"16px 18px 0 18px"}},n.a.createElement(He.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:it,hasMore:Cn,useWindow:!1},n.a.createElement(K.a.Item,{name:"group_ids"},n.a.createElement(H.a.Group,null,tt.map(function(Dt,mt){return n.a.createElement("div",{key:mt},n.a.createElement(H.a,{onChange:function(Mt){},key:mt,value:String(Dt.name),defaultChecked:!0,style:{width:430},className:"multi-ellipsis1 multi-ellipsis1-checkbox"},n.a.createElement("span",null,Dt.name)))}))),Xt&&n.a.createElement("div",{style:{display:"flex",justifyContent:"center"}},n.a.createElement(A.a,null))))}})),n.a.createElement(K.a.Item,{label:"\u7B7E\u5230\u65B9\u5F0F",name:"mode",rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}]},n.a.createElement(I.a.Group,{size:"large"},n.a.createElement(I.a,{value:"QUICK"},"\u5FEB\u6377\u7B7E\u5230"),n.a.createElement(I.a,{value:"NUMBER"},"\u7B7E\u5230\u7801\u7B7E\u5230"))),n.a.createElement(K.a.Item,{label:"\u7B7E\u5230\u65E5\u671F",name:"attendance_date",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7B7E\u5230\u65B9\u5F0F!"}]},n.a.createElement(V.a,{disabledDate:Nn,placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",className:"w100",size:"large",format:"YYYY-MM-DD"})),n.a.createElement(K.a.Item,{label:"\u5F00\u59CB\u65F6\u95F4",name:"start_time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4!"}]},n.a.createElement(ae.a,{className:"w100",size:"large",minuteStep:1,format:"HH:mm",onChange:function(){we.setFieldsValue({end_time:"",late_time:""})}})),n.a.createElement(K.a.Item,{label:"\u7ED3\u675F\u65F6\u95F4",name:"end_time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4!"}]},n.a.createElement(ae.a,{disabledHours:function(){var Dt=we.getFieldValue("start_time");if(Dt){var mt=parseInt(ce()(Dt).format("HH"));return Object(be.R)(0,23).splice(0,mt)}},disabledMinutes:function(Dt){var mt=we.getFieldValue("start_time");if(mt){var St=parseInt(ce()(mt).format("mm")),Mt=parseInt(ce()(mt).format("HH"));return Mt===Dt?Object(be.R)(0,59).splice(0,St):[]}},className:"w100",size:"large",minuteStep:1,format:"HH:mm"})),n.a.createElement(K.a.Item,{label:"\u8FDF\u5230\u65F6\u95F4",name:"late_time",style:{marginBottom:2}},n.a.createElement(ae.a,{className:"w100",size:"large",minuteStep:1,format:"HH:mm"})),n.a.createElement("div",{style:{paddingLeft:102,color:"#999"}},"\u5728\u7ED3\u675F\u65F6\u95F4\u81F3\u8FDF\u5230\u65F6\u95F4\u7B7E\u5230\u7684\u540C\u5B66\u8BB0\u4E3A\u8FDF\u5230"))))},Xe=Object(_.a)(function(ze){var Ce=ze.classroomList;return{classroomList:Ce}})(et),st=t("0FX9"),ut=t.n(st),ct=t("lzim"),Ze=function(Ce){var Oe=Ce.classroomList,ge=Ce.loading,te=Ce.dispatch,le=Ce.data,we=Object(F.i)(),xe=Object(o.useState)(!1),Re=Object(D.a)(xe,2),je=Re[0],Te=Re[1],Le=Object(o.useState)(""),Fe=Object(D.a)(Le,2),dt=Fe[0],tt=Fe[1],Ct=Object(o.useState)(""),At=Object(D.a)(Ct,2),Ht=At[0],en=At[1],Ge=Oe.actionTabs.selectArrs;Object(o.useEffect)(function(){if(Oe.actionTabs.key==="\u7ACB\u5373\u7B7E\u5230"){switch(Ge==null?void 0:Ge.mode){case"QUICK":tt("\u5FEB\u6377\u7B7E\u5230"),Bt();break;case"NUMBER":tt("\u7B7E\u5230\u7801\u7B7E\u5230"),Te(!0);break;case"QRCODE":tt("\u4E8C\u7EF4\u7801\u7B7E\u5230"),ut.a.toDataURL((Ge==null?void 0:Ge.attendance_code)||"",{type:"terminal",margin:1,scale:16},function(an,Jt){en(Jt)}),Te(!0);break}Tt.resetFields()}else Te(!1)},[Oe.actionTabs.key]);var gt=Oe.detailAttendancesDetail,xt=Oe.courseGroups,Lt=K.a.useForm(),Ot=Object(D.a)(Lt,1),Tt=Ot[0],Bt=function(){var an=Object(L.a)(c.a.mark(function Jt(){var _t,Ft;return c.a.wrap(function(Sn){for(;;)switch(Sn.prev=Sn.next){case 0:return Sn.next=2,Tt.validateFields();case 2:return _t=Tt.getFieldValue(),Sn.next=5,Object(_e.e)({code:_t==null?void 0:_t.code,attendance_mode:Ge==null?void 0:Ge.mode,attendance_id:Ge==null?void 0:Ge.id});case 5:Ft=Sn.sent,(Ft==null?void 0:Ft.status)===0&&(y.b.success("\u7B7E\u5230\u6210\u529F"),Xt(),te({type:"classroomList/getClassroomAttendancesList",payload:Object(h.a)({},Oe.actionTabs.params)})),(Ft==null?void 0:Ft.status)===-1&&Xt();case 8:case"end":return Sn.stop()}},Jt)}));return function(){return an.apply(this,arguments)}}(),Xt=function(){te({type:"classroomList/setActionTabs",payload:{}})};return n.a.createElement(Y.a,{centered:!0,title:dt,width:620,visible:je,onOk:Object(L.a)(c.a.mark(function an(){return c.a.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:(Ge==null?void 0:Ge.mode)==="QRCODE"?Xt():Bt();case 1:case"end":return _t.stop()}},an)})),onCancel:function(){Xt()}},(Ge==null?void 0:Ge.mode)==="QRCODE"&&n.a.createElement("aside",{className:""},n.a.createElement(l.a,{align:"middle",justify:"center"},n.a.createElement(d.a,{span:10,className:"tc"},n.a.createElement("img",{width:200,src:Ht}),n.a.createElement("br",null),"\u7B7E\u5230\u4E8C\u7EF4\u7801"),n.a.createElement(d.a,{span:4}),n.a.createElement(d.a,{span:10,className:"tc"},n.a.createElement("img",{width:200,src:ct.B}),n.a.createElement("br",null),"EduCoder\u5C0F\u7A0B\u5E8F\u4E8C\u7EF4\u7801")),n.a.createElement("div",{className:"c-black pl20 pr20 mt20"},"\u4E8C\u7EF4\u7801\u7B7E\u5230\u6B65\u9AA4\uFF1A",n.a.createElement("br",null),"1.\u6253\u5F00EduCoder\u5C0F\u7A0B\u5E8F\uFF1B2.\u8FDB\u5165\u5BF9\u5E94\u7684\u6559\u5B66\u8BFE\u5802\uFF1B3.\u8FDB\u5165\u7B7E\u5230\u6A21\u5757\uFF1B4.\u627E\u5230\u6B63\u5728\u8FDB\u884C\u7684\u7B7E\u5230\uFF0C\u5E76\u70B9\u51FB\u7B7E\u5230\uFF1B5.\u626B\u7801\u7B7E\u5230\u3002")),(Ge==null?void 0:Ge.mode)==="NUMBER"&&n.a.createElement("aside",{className:"pt30 pb30"},n.a.createElement(K.a,{form:Tt},n.a.createElement(K.a.Item,{name:"code",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7B7E\u5230\u7801"}]},n.a.createElement(fe.a,{placeholder:"\u8BF7\u8F93\u5165\u7B7E\u5230\u7801"})))))},bt=Object(_.a)(function(ze){var Ce=ze.classroomList,Oe=ze.loading;return{classroomList:Ce,loading:Oe}})(Ze),lt=t("xKgJ"),Et=t("mgmH"),jt=t("P5Jw"),Qt=H.a.Group,Gt=function(Ce){var Oe,ge=Ce.classroomList,te=Ce.loading,le=Ce.dispatch,we=Object(o.useState)(Object(h.a)({},Object(F.i)())),xe=Object(D.a)(we,1),Re=xe[0],je=Object(F.h)(),Te=Object(o.useState)("all"),Le=Object(D.a)(Te,2),Fe=Le[0],dt=Le[1],tt=ge.detailAttendancesList,Ct=Object(o.useState)({}),At=Object(D.a)(Ct,2),Ht=At[0],en=At[1],Ge=Object(o.useState)(!1),gt=Object(D.a)(Ge,2),xt=gt[0],Lt=gt[1],Ot=Object(o.useState)([]),Tt=Object(D.a)(Ot,2),Bt=Tt[0],Xt=Tt[1],an=Object(o.useState)(!1),Jt=Object(D.a)(an,2),_t=Jt[0],Ft=Jt[1];Re.id=Re.coursesId,Object(o.useEffect)(function(){var it,wt=je==null||((it=je.query)===null||it===void 0)?void 0:it.tabId;wt&&(dt(wt),Re.status=wt),le({type:"classroomList/getClassroomAttendancesList",payload:Object(h.a)(Object(h.a)({},Re),{},{status:Fe,page:1})})},[Re.categoryId,je==null||((Oe=je.query)===null||Oe===void 0)?void 0:Oe.tabId]),Object(o.useEffect)(function(){ge.actionTabs.key==="\u76EE\u5F55\u91CD\u547D\u540D\u6210\u529F"&&le({type:"classroomList/getClassroomAttendancesList",payload:Object(h.a)({},Re)})},[ge.actionTabs.key]);var $t=function(wt){Re.page=wt,le({type:"classroomList/getClassroomAttendancesList",payload:Object(h.a)({},Re)})},Sn=function(wt){console.log(wt,22222222),dt(wt.key),Re.status=wt.key,Re.page=1,console.log(Re,"params"),le({type:"classroomList/getClassroomAttendancesList",payload:Object(h.a)({},Re)})},ir=[{name:"\u5168\u90E8\u7B7E\u5230",id:"all"},{name:"\u6B63\u5728\u7B7E\u5230",id:"ongoing"},{name:"\u5386\u53F2\u7B7E\u5230",id:"history"},{name:"\u6682\u672A\u5F00\u59CB",id:"not_start"},{name:"\u7B7E\u5230\u7EDF\u8BA1",id:"signInStatistics"}].filter(function(it){return Object(lt.c)()?!0:it.name!=="\u7B7E\u5230\u7EDF\u8BA1"&&it.name!=="\u6682\u672A\u5F00\u59CB"}),Nn=function(wt){le({type:"classroomList/setActionTabs",payload:{key:"\u7ACB\u5373\u7B7E\u5230",selectArrs:wt,params:Object(h.a)({},Re)}})},Kn=["\u7F16\u8F91","\u5220\u9664","\u622A\u6B62"];return n.a.createElement("section",null,n.a.createElement("aside",{className:[ye.a.bg,ye.a.menu].join(" ")},n.a.createElement(C.a,{mode:"horizontal",style:{margin:"0 18px"},onSelect:Sn,selectedKeys:[Fe]},ir.map(function(it,wt){return n.a.createElement(C.a.Item,{key:it.id},it.name)})),Object(lt.c)()&&n.a.createElement("span",{className:ye.a.add,onClick:function(){le({type:"classroomList/setActionTabs",payload:{key:"\u65B0\u589E\u7B7E\u5230",params:Re}})}},n.a.createElement("span",{className:"iconfont icon-bianjishijuan3x mr5"}),"\u521B\u5EFA\u7B7E\u5230")),Fe=="signInStatistics"?n.a.createElement(J,null):null,Fe!=="signInStatistics"&&n.a.createElement("section",null,Fe=="history"&&Object(lt.c)()&&n.a.createElement("div",{style:{background:"#fff",padding:"15px 20px 10px 20px",color:"#999",display:"flex",alignItems:"center",marginTop:20}},n.a.createElement(H.a,{checked:xt,style:{flex:"1"},onChange:function(){var wt;if((Bt==null?void 0:Bt.length)===(tt==null||((wt=tt.attendances)===null||wt===void 0)?void 0:wt.length))Xt([]),Lt(!1);else{var Zt=[];tt.attendances.map(function(Cn){Zt.push(Cn==null?void 0:Cn.id)}),Xt([].concat(Zt)),Lt(!0)}}},"\u5DF2\u9009\u62E9",(Bt==null?void 0:Bt.length)||0,"\u4E2A(\u4E0D\u652F\u6301\u8DE8\u9875\u52FE\u9009)"),n.a.createElement(N.a,{style:{cursor:"pointer"},loading:_t,onClick:Object(L.a)(c.a.mark(function it(){return c.a.wrap(function(Zt){for(;;)switch(Zt.prev=Zt.next){case 0:return Re.attendance_ids=[],Zt.next=3,Object(Et.a)(Object(h.a)(Object(h.a)({},Re),{},{history:!0,type:1}));case 3:case"end":return Zt.stop()}},it)}))},"\u5BFC\u51FA\u5168\u90E8\u7B7E\u5230"),n.a.createElement(N.a,{style:{cursor:"pointer",marginLeft:10},loading:_t,onClick:Object(L.a)(c.a.mark(function it(){return c.a.wrap(function(Zt){for(;;)switch(Zt.prev=Zt.next){case 0:if(!((Bt==null?void 0:Bt.length)<=0)){Zt.next=3;break}return y.b.info("\u8BF7\u9009\u62E9\u8981\u5BFC\u51FA\u7684\u7B7E\u5230"),Zt.abrupt("return");case 3:return Re.attendance_ids=Bt,Zt.next=6,Object(Et.a)(Object(h.a)(Object(h.a)({},Re),{},{history:!0,type:1}));case 6:case"end":return Zt.stop()}},it)}))},"\u5BFC\u51FA\u9009\u4E2D\u7B7E\u5230")),n.a.createElement(f.a,{loading:te["classroomList/getClassroomAttendancesList"],active:!0,avatar:{size:40},paragraph:{rows:5},className:"mt30"},tt.attendances_count===0&&n.a.createElement(R.a,null),tt.attendances&&tt.attendances.map(function(it){return n.a.createElement(Qt,{value:Bt,className:ye.a.listItem,style:{display:"flex"},onChange:function(){}},n.a.createElement("div",{onClick:function(){return Object(lt.c)()&&_.d.push("/classrooms/".concat(Re.coursesId,"/attendance/").concat(it.id,"/").concat(Fe,"/detail"))}},n.a.createElement(l.a,{gutter:16,justify:"space-between"},n.a.createElement(d.a,{span:20},n.a.createElement(l.a,null,Fe=="history"&&Object(lt.c)()&&n.a.createElement(H.a,{className:"mr8",key:it.id,value:it.id,onClick:function(){var wt=Object(L.a)(c.a.mark(function Zt(Cn){var zt,Dt,mt,St;return c.a.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:Cn.stopPropagation(),(Bt==null?void 0:Bt.filter(function(on){return on===(it==null?void 0:it.id)}).length)>0?(zt=Object(g.a)(Bt),Dt=Object(g.a)(zt.filter(function(on){return on!=(it==null?void 0:it.id)})),Lt(!1),Xt(Dt)):(St=Bt,St.push(it==null?void 0:it.id),Lt((St==null?void 0:St.length)===(tt==null||((mt=tt.attendances)===null||mt===void 0)?void 0:mt.length)),Xt(Object(g.a)(St)));case 2:case"end":return Yt.stop()}},Zt)}));return function(Zt){return wt.apply(this,arguments)}}(),style:{marginTop:"4px"}}),n.a.createElement(d.a,{className:"c-blue font16 blod"},n.a.createElement("span",{className:ye.a.attend},n.a.createElement("span",{className:ye.a.title},it.name),it.status==="not_start"&&n.a.createElement("span",{className:ye.a.not_start},"\u672A\u5F00\u59CB"),it.status==="ongoing"&&n.a.createElement("span",{className:ye.a.ongoing},"\u8FDB\u884C\u4E2D"),it.status==="history"&&n.a.createElement("span",{className:ye.a.history},"\u5DF2\u622A\u6B62"))))),n.a.createElement(d.a,{className:"font14"},it.mode==="NUMBER"&&Object(lt.c)()&&n.a.createElement(jt.CopyToClipboard,{text:it.attendance_code,onCopy:function(){return y.b.success("\u590D\u5236\u6210\u529F")}},n.a.createElement(e.a,{placement:"top",title:"\u70B9\u51FB\u590D\u5236\u7B7E\u5230\u7801"},n.a.createElement("span",{className:ye.a.attendanceCode,onClick:function(Zt){return Zt.stopPropagation()}},"\u7B7E\u5230\u7801\uFF1A",it.attendance_code))))),n.a.createElement(l.a,{className:"mt20 c-light-black"},n.a.createElement(d.a,null,"\u7B7E\u5230\u4EBA\u6570"),n.a.createElement(d.a,{flex:"200px",className:"ml20"},n.a.createElement(a.a,{showInfo:!1,percent:Math.ceil(it.normal_count/it.all_count*100)})),n.a.createElement(d.a,{flex:1,className:"ml20 c-blue"},"\u5DF2\u7B7E\u5230 ",it.normal_count," / \u5E94\u7B7E\u5230 ",it.all_count)),it.attendance_status==="NORMAL"&&Object(lt.s)()&&n.a.createElement("div",{className:"".concat(ye.a.signInStatus," ").concat(ye.a.color0152d9)},"\u6B63\u5E38"),it.attendance_status==="LEAVE"&&Object(lt.s)()&&n.a.createElement("div",{className:"".concat(ye.a.signInStatus," ").concat(ye.a.colorFA6400)},"\u8BF7\u5047"),it.attendance_status==="ABSENCE"&&it.status=="history"&&(Fe=="history"||Fe=="all")&&Object(lt.s)()&&n.a.createElement("div",{className:"".concat(ye.a.signInStatus," ").concat(ye.a.colorE02020)},"\u65F7\u8BFE"),n.a.createElement(l.a,{className:"mt20 c-light-black"},n.a.createElement(d.a,{flex:1},n.a.createElement(l.a,null,n.a.createElement(d.a,{flex:1},"\u7B7E\u5230\u53D1\u8D77\u4EBA\uFF1A",it.author.user_name),n.a.createElement(d.a,{flex:1},"\u7B7E\u5230\u65B9\u5F0F\uFF1A",it.mode==="QRCODE"&&"\u4E8C\u7EF4\u7801\u7B7E\u5230",it.mode==="NUMBER"&&"\u7B7E\u5230\u7801\u7B7E\u5230",it.mode==="QUICK"&&"\u5FEB\u6377\u7B7E\u5230"),n.a.createElement(d.a,{flex:1},"\u5F00\u59CB\u7ED3\u675F\u65F6\u95F4:",it.attendance_date," ",it.start_time,"~",it.end_time),n.a.createElement(d.a,null,it.attendance_status==="ABSENCE"&&(Fe=="all"||Fe=="ongoing")&&Object(lt.s)()&&n.a.createElement(N.a,{style:{width:100},size:"large",type:"primary",onClick:function(){return Nn(it)}},"\u7B7E\u5230")))),n.a.createElement(d.a,null,Object(lt.c)()&&Kn.filter(function(wt){return it.edit_auth?wt:wt!="\u7F16\u8F91"}).filter(function(wt){return Fe!="0"?wt!="\u622A\u6B62":wt}).map(function(wt,Zt){return n.a.createElement("span",{className:"c-blue ml20",key:Zt,onClick:function(zt){zt.stopPropagation(),en(it),le({type:"classroomList/setActionTabs",payload:{key:wt,selectArrs:[it.id],params:Re}})}},wt)})))))}),n.a.createElement("aside",{className:"tc mb50 mt30"},n.a.createElement(v.a,{hideOnSinglePage:!0,pageSize:20,showSizeChanger:!1,onChange:$t,defaultCurrent:1,current:Re.page||1,total:tt.attendances_count})))),n.a.createElement($,null),n.a.createElement(bt,null),n.a.createElement(Ne,{data:Ht}),n.a.createElement(Xe,null),n.a.createElement(Z,null))},rn=x.default=Object(_.a)(function(ze){var Ce=ze.classroomList,Oe=ze.loading,ge=ze.globalSetting;return{classroomList:Ce,globalSetting:ge,loading:Oe.effects}})(Gt)},VpOo:function(ie,x){function t(O,f){var m=f.x,v=f.y,u=f.width,a=f.height,r=f.r,e,s,l,i;u<0&&(m=m+u,u=-u),a<0&&(v=v+a,a=-a),typeof r=="number"?e=s=l=i=r:r instanceof Array?r.length===1?e=s=l=i=r[0]:r.length===2?(e=l=r[0],s=i=r[1]):r.length===3?(e=r[0],s=i=r[1],l=r[2]):(e=r[0],s=r[1],l=r[2],i=r[3]):e=s=l=i=0;var d;e+s>u&&(d=e+s,e*=u/d,s*=u/d),l+i>u&&(d=l+i,l*=u/d,i*=u/d),s+l>a&&(d=s+l,s*=a/d,l*=a/d),e+i>a&&(d=e+i,e*=a/d,i*=a/d),O.moveTo(m+e,v),O.lineTo(m+u-s,v),s!==0&&O.arc(m+u-s,v+s,s,-Math.PI/2,0),O.lineTo(m+u,v+a-l),l!==0&&O.arc(m+u-l,v+a-l,l,0,Math.PI/2),O.lineTo(m+i,v+a),i!==0&&O.arc(m+i,v+a-i,i,Math.PI/2,Math.PI),O.lineTo(m,v+e),e!==0&&O.arc(m+e,v+e,e,Math.PI,Math.PI*1.5)}x.buildPath=t},W6BS:function(ie,x){ie.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAVs0lEQVRoQ+2aa6xlZ3nff++677Xv+9zPHM/YHo+xwQ4E14GKKESkiFsSM8bYQBIEkaBEAkqbRmo/9FulSoX2Qz9GVVQJqUJBhKKA1KRJCIlowwdDDDa+jOd65syc275f1v1d1fOufYYE2ZhJZKRWXjOjvffaa6/1/p//8/yfyzuqLMuS/48P9RrA/8fZfY3B2yXQBHQpf185tBUK+SvH8uV2H/eK1/+jGfwRIBC5ks/Vq/yplq2Wqz+B/ONg5LNlrlz+Qhnot373iih+wgX/YIAivrJgjTKA9BKcYa/Uy/MnUEpD0S2AyzdKkMslZYklbwVYWZpXQSygrSVoc+4fcPzUAKtsom4xpIGiLCkMZbJGs1LkvOHPfJbrhRX5/CM/NDwJZlXiqBKlc7AEjg1aI2i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jkaMxkNmszlpLDGbkeUx02RAlC2Y5UeUSZ+pdYyaz1k4Y9OdhE4D5dVoB6dZWbuLlneaXm2DPC1NR5BGCbF0CWVJEAQ0GnXanTb1sE69Xmdzc4uNjQ1ardZy4+dlN3fNF6+4R/9SP5eHJ0nMYhEh8TscDun3+0aoJuMJi8WCJMnRZgRZkJOR5FMKvWBz/QyN2gqqsEjTBE1q7iU5znZsfN83i2+32zSbTXq9HisrK6yurtJoNH4ympf49rYAvhzL1b5JSZqmZqGTyZT+4Jj+cd+4+mg4Yh7F5Kk0xqK4Jb7rVP87w1KGpU6nR6vVNMAEkPzrdDqGxX/McVsAb/dBsh0mKWgxnzMajxgOhhwf9+n3j5nNZ7RbbbrdrgElYE5Aua57u4962etfNYAvx7YISJIkxrXFxdvtlnFJW+Yiy+MnecrtIn/VAN7uQl6t618D+GpZ9md139cY/FlZ+tV6zmsMvlqW/Vnd9/8CAe3hZpCQX/4AAAAASUVORK5CYII="},WaYH:function(ie,x,t){"use strict";var O=t("rePB"),f=t("Ff2n"),m=t("VTBJ"),v=t("1OyB"),u=t("vuIU"),a=t("JX7q"),r=t("Ji7U"),e=t("LK+K"),s=t("q1tI"),l=t("TSYQ"),i=t.n(l),d=t("sboe"),g=t("OZM5"),E=function(H){var w=H.prefixCls,c=H.level,o=H.isStart,n=H.isEnd;if(!c)return null;for(var F="".concat(w,"-indent-unit"),_=[],k=0;k=m)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+m.toString(16)+" bytes");return L|0}function a(L){return L!==L}function r(L,p){var C;return v.TYPED_ARRAY_SUPPORT?(C=new Uint8Array(p),C.__proto__=v.prototype):(C=L,C===null&&(C=new v(p)),C.length=p),C}function e(L,p){var C=r(L,p<0?0:u(p)|0);if(!v.TYPED_ARRAY_SUPPORT)for(var h=0;h55295&&C<57344){if(!D){if(C>56319){(p-=3)>-1&&B.push(239,191,189);continue}else if(H+1===h){(p-=3)>-1&&B.push(239,191,189);continue}D=C;continue}if(C<56320){(p-=3)>-1&&B.push(239,191,189),D=C;continue}C=(D-55296<<10|C-56320)+65536}else D&&((p-=3)>-1&&B.push(239,191,189));if(D=null,C<128){if((p-=1)<0)break;B.push(C)}else if(C<2048){if((p-=2)<0)break;B.push(C>>6|192,C&63|128)}else if(C<65536){if((p-=3)<0)break;B.push(C>>12|224,C>>6&63|128,C&63|128)}else if(C<1114112){if((p-=4)<0)break;B.push(C>>18|240,C>>12&63|128,C>>6&63|128,C&63|128)}else throw new Error("Invalid code point")}return B}function E(L){if(v.isBuffer(L))return L.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(L)||L instanceof ArrayBuffer))return L.byteLength;typeof L!="string"&&(L=""+L);var p=L.length;return p===0?0:g(L).length}function y(L,p,C,h){for(var D=0;D=p.length||D>=L.length);++D)p[D+C]=L[D];return D}function T(L,p,C,h){return y(g(p,L.length-C),L,C,h)}function N(L,p,C,h){if(typeof p=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&p instanceof ArrayBuffer?i(L,p,C,h):typeof p=="string"?s(L,p,C):d(L,p)}v.prototype.write=function(p,C,h){C===void 0?(h=this.length,C=0):h===void 0&&typeof C=="string"?(h=this.length,C=0):isFinite(C)&&(C=C|0,isFinite(h)?h=h|0:h=void 0);var D=this.length-C;if((h===void 0||h>D)&&(h=D),p.length>0&&(h<0||C<0)||C>this.length)throw new RangeError("Attempt to write outside buffer bounds");return T(this,p,C,h)},v.prototype.slice=function(p,C){var h=this.length;p=~~p,C=C===void 0?h:~~C,p<0?(p+=h,p<0&&(p=0)):p>h&&(p=h),C<0?(C+=h,C<0&&(C=0)):C>h&&(C=h),C=p.length&&(C=p.length),C||(C=0),D>0&&D=this.length)throw new RangeError("sourceStart out of bounds");if(D<0)throw new RangeError("sourceEnd out of bounds");D>this.length&&(D=this.length),p.length-C=0;--H)p[H+C]=this[H+h];else if(B<1e3||!v.TYPED_ARRAY_SUPPORT)for(H=0;H>>0,h=h===void 0?this.length:h>>>0,p||(p=0);var B;if(typeof p=="number")for(B=C;B`)}},legend:{data:["\u5230\u8BFE\u7387","\u65F7\u8BFE\u7387","\u8BF7\u5047\u7387"],show:!1},xAxis:{type:"category",nameRotate:45,data:Ge==null||((Dt=Ge.history_attendances)===null||Dt===void 0)?void 0:Dt.map(function(Jt,_t){var Ft=Jt.name;return Ft.length>6&&(Ft=Ft.substr(0,6)+"..."),Ft}),boundaryGap:!1,nameLocation:"start",axisLabel:{interval:0,rotate:"45",verticalAlign:"top",align:"left",margin:28,height:120,textStyle:{align:"center",color:"#999"}}},yAxis:{type:"value",axisLabel:{formatter:"{value}%"},splitLine:{lineStyle:{type:"dashed"}}},series:[{name:"\u5230\u8BFE\u7387",data:Ge==null||((Bt=Ge.history_attendances)===null||Bt===void 0)?void 0:Bt.map(function(Jt,_t){return Jt.normal_rate*100}),type:"line",smooth:!0,color:"#26C7C9"},{name:"\u65F7\u8BFE\u7387",data:Ge==null||((Xt=Ge.history_attendances)===null||Xt===void 0)?void 0:Xt.map(function(Jt,_t){return Jt.absence_rate*100}),type:"line",smooth:!0,color:"#FF835C"},{name:"\u8BF7\u5047\u7387",data:Ge==null||((an=Ge.history_attendances)===null||an===void 0)?void 0:an.map(function(Jt,_t){return Jt.leave_rate*100}),type:"line",smooth:!0,color:"#EDBA6F"}]}};return n.a.createElement("section",{className:"mt20 pb30"},n.a.createElement(l.a,{className:G.a.topStatistics,justify:"space-between"},n.a.createElement(d.a,{flex:"209px"},Math.round((Ge==null?void 0:Ge.all_history_count)||0)),n.a.createElement(d.a,{flex:"209px"},n.a.createElement(n.a.Fragment,null,Math.round(((Ge==null?void 0:Ge.avg_normal_rate)||0)*100),"%")),n.a.createElement(d.a,{flex:"209px"},n.a.createElement(n.a.Fragment,null,Math.round(((Ge==null?void 0:Ge.avg_absence_rate)||0)*100),"%")),n.a.createElement(d.a,{flex:"209px"},n.a.createElement(n.a.Fragment,null,Math.round(((Ge==null?void 0:Ge.avg_leave_rate)||0)*100),"%"))),n.a.createElement("section",{className:"bg-white pl30 pr30 pt30 mt20 pb20"},n.a.createElement(l.a,{gutter:[22,22],className:G.a.filter},n.a.createElement(d.a,{flex:1},n.a.createElement("span",null,n.a.createElement("i",{className:[G.a.daoke,"mr10"].join(" ")}),"\u5230\u8BFE\u7387"),n.a.createElement("span",{className:"ml40"},n.a.createElement("i",{className:[G.a.kuangke,"mr10"].join(" ")}),"\u65F7\u8BFE\u7387"),n.a.createElement("span",{className:"ml40"},n.a.createElement("i",{className:[G.a.qingjia,"mr10"].join(" ")}),"\u8BF7\u5047\u7387")),n.a.createElement(d.a,null,n.a.createElement("span",{className:"c-light-black mr5"},"\u663E\u793A\u6700\u8FD1\u5341\u6B21\u7B7E\u5230"),n.a.createElement(b.a,{size:"large",defaultValue:"",onSelect:function(Dt){Ht=Dt,en(Dt),xt()}},n.a.createElement(b.a.Option,{value:""}," \u5168\u90E8\u5206\u73ED "),gt==null||((Oe=gt.course_groups)===null||Oe===void 0)?void 0:Oe.map(function(Ot,Dt){return n.a.createElement(b.a.Option,{value:Ot.id}," ",Ot.name," ")})))),Ge!=null&&(ge=Ge.history_attendances)!==null&&ge!==void 0&&ge.length?n.a.createElement(j.a,{option:Lt(),style:{height:370},opts:{renderer:"svg"}}):n.a.createElement(R.a,{styles:{marginTop:50,paddingBottom:50}})))},J=Object(_.a)(function(ze){var Ce=ze.classroomList,Oe=ze.loading,ge=ze.teachers,te=ze.globalSetting;return{classroomList:Ce,globalSetting:te,teachers:ge,loading:Oe.effects}})(ne),P=t("2qtc"),Y=t("kLXV"),W=t("ErOA"),oe=function(Ce){var Oe=Ce.classroomList,ge=Ce.dispatch,te=Ce.cb,le=Object(F.i)();return le.id=le.coursesId,n.a.createElement(Y.a,{centered:!0,title:"\u63D0\u793A",visible:Oe.actionTabs.key==="\u5220\u9664",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Object(L.a)(c.a.mark(function we(){var xe,Re;return c.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return xe="/api/weapps/attendances/".concat(Oe.actionTabs.selectArrs[0],".json"),De.next=3,Object(W.a)(xe,{method:"delete"});case 3:Re=De.sent,Re.status===0&&(y.b.success("\u5220\u9664\u6210\u529F"),ge({type:"classroomList/setActionTabs",payload:{}}),ge({type:"classroomList/getClassroomAttendancesList",payload:Object(h.a)({},Oe.actionTabs.params)}),ge({type:"classroomList/getClassroomLeftMenus",payload:{id:le.coursesId}}));case 5:case"end":return De.stop()}},we)})),onCancel:function(){ge({type:"classroomList/setActionTabs",payload:{}})}},n.a.createElement("p",null,"\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F"))},$=Object(_.a)(function(ze){var Ce=ze.classroomList;return{classroomList:Ce}})(oe),X=function(Ce){var Oe=Ce.classroomList,ge=Ce.dispatch,te=Ce.cb,le=Object(F.i)();return le.id=le.coursesId,n.a.createElement(Y.a,{centered:!0,title:"\u63D0\u793A",visible:Oe.actionTabs.key==="\u622A\u6B62",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Object(L.a)(c.a.mark(function we(){var xe;return c.a.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return je.next=3,Object(W.a)("/api/weapps/attendances/".concat(Oe.actionTabs.selectArrs[0],"/end.json"),{method:"post"});case 3:xe=je.sent,xe.status===0&&(y.b.success("\u64CD\u4F5C\u6210\u529F"),ge({type:"classroomList/setActionTabs",payload:{}}),ge({type:"classroomList/getClassroomAttendancesList",payload:Object(h.a)({},Oe.actionTabs.params)}));case 5:case"end":return je.stop()}},we)})),onCancel:function(){ge({type:"classroomList/setActionTabs",payload:{}})}},n.a.createElement("p",null,"\u662F\u5426\u786E\u8BA4\u622A\u6B62\uFF1F"))},Z=Object(_.a)(function(ze){var Ce=ze.classroomList;return{classroomList:Ce}})(X),se=t("Xi6J"),ae=t("kl6h"),ve=t("iQDF"),V=t("+eQT"),re=t("7Kak"),I=t("9yH6"),q=t("5NDa"),fe=t("5rEg"),z=t("T2oS"),A=t("W9HT"),S=t("y8nQ"),K=t("Vl3Y"),ee=t("jrin"),de=t("nRaC"),he=t("5RzL"),Me=t("wd/R"),ce=t.n(Me),be=t("1vsH"),Ae=t("wM50"),ye=t.n(Ae),ke=he.a.TreeNode,Se=function(Ce){var Oe=Ce.classroomList,ge=Ce.loading,te=Ce.dispatch,le=Ce.data,we=Object(o.useState)(!1),xe=Object(T.a)(we,2),Re=xe[0],je=xe[1],De=Object(F.i)();De.id=De.coursesId,Object(o.useEffect)(function(){Oe.actionTabs.key==="\u7F16\u8F91"&&(At.resetFields(),te({type:"classroomList/getCourseGroups",payload:{id:De.id,limit:1e4}}),le.id&&Le())},[Oe.actionTabs.key]);var Le=function(){var Ge=Object(L.a)(c.a.mark(function gt(){var xt,Lt;return c.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:return Dt.next=2,te({type:"classroomList/getAttendanceDetail",payload:{id:le.id}});case 2:Lt=Dt.sent,At.setFieldsValue((xt={},Object(ee.a)(xt,"name",Lt.name),Object(ee.a)(xt,"mode",Lt.mode==="QRCODE"?"":Lt.mode),Object(ee.a)(xt,"attendance_date",ce()(Lt.attendance_date)),Object(ee.a)(xt,"group_ids",Lt.groups?Lt.groups.map(function(Bt){return Bt.id}):[]),Object(ee.a)(xt,"end_time",ce()(Lt.end_time)),Object(ee.a)(xt,"start_time",ce()(Lt.start_time)),Object(ee.a)(xt,"late_time",Lt.late_time?ce()(Lt.late_time):null),xt));case 4:case"end":return Dt.stop()}},gt)}));return function(){return Ge.apply(this,arguments)}}(),Fe=Oe.detailAttendancesDetail,dt=Oe.courseGroups,tt=K.a.useForm(),Ct=Object(T.a)(tt,1),At=Ct[0],Ht=[];Oe.courseGroups.course_groups&&Oe.courseGroups.course_groups.map(function(Ge){return Ht.push(Ge.id+"")});var en=function(gt){return gt&>=gt.late_time)){Ot.next=14;break}return y.b.warn("\u8FDF\u5230\u65F6\u95F4\u4E0D\u80FD\u65E9\u4E8E\u6216\u7B49\u4E8E\u7ED3\u675F\u65F6\u95F4"),Ot.abrupt("return");case 14:return je(!0),Ot.next=17,Object(W.a)("/api/attendances/".concat(le.id,".json"),{method:"put",body:Object(h.a)({},gt)});case 17:xt=Ot.sent,xt.status===0&&(y.b.success("\u4FEE\u6539\u6210\u529F"),te({type:"classroomList/setActionTabs",payload:{}}),te({type:"classroomList/getClassroomAttendancesList",payload:Object(h.a)({},Oe.actionTabs.params)})),xt.status===-1&&je(!1);case 20:case"end":return Ot.stop()}},Ge)})),onCancel:function(){te({type:"classroomList/setActionTabs",payload:{}})}},ge.effects["classroomList/getCourseGroups"]&&n.a.createElement("div",{className:"tc mt40"},n.a.createElement(A.a,null)),Fe.groups&&n.a.createElement("section",{className:ye.a.addForm},n.a.createElement(K.a,{form:At},n.a.createElement(K.a.Item,{label:"\u7B7E\u5230\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}]},n.a.createElement(fe.a,{placeholder:"\u8BF7\u8F93\u5165\u7B7E\u5230\u540D\u79F0",size:"large"})),n.a.createElement(K.a.Item,{label:"\u7B7E\u5230\u65B9\u5F0F",name:"mode",rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}]},n.a.createElement(I.a.Group,{size:"large"},n.a.createElement(I.a,{value:"QUICK"},"\u5FEB\u6377\u7B7E\u5230"),n.a.createElement(I.a,{value:"NUMBER"},"\u7B7E\u5230\u7801\u7B7E\u5230"))),n.a.createElement(K.a.Item,{label:"\u7B7E\u5230\u73ED\u7EA7",name:"group_ids"},n.a.createElement(he.a,{showSearch:!0,style:{width:"100%"},dropdownStyle:{maxHeight:260,overflow:"auto"},placeholder:"\u5DF2\u9009\u62E9\u5168\u90E8\u5206\u73ED",treeDefaultExpandAll:!0,treeCheckable:!0,size:"large",disabled:!0},dt.course_groups&&dt.course_groups.map(function(Ge,gt){return n.a.createElement(ke,{key:gt,value:Ge.id,title:Ge.name})}))),n.a.createElement(K.a.Item,{label:"\u7B7E\u5230\u65E5\u671F",name:"attendance_date",rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}]},n.a.createElement(V.a,{placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",size:"large",format:"YYYY-MM-DD"})),n.a.createElement(K.a.Item,{label:"\u5F00\u59CB\u65F6\u95F4",name:"start_time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4!"}]},n.a.createElement(ae.a,{className:"w100",size:"large",minuteStep:1,format:"HH:mm",onChange:function(){At.setFieldsValue({end_time:"",late_time:""})}})),n.a.createElement(K.a.Item,{label:"\u7ED3\u675F\u65F6\u95F4",name:"end_time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4!"}]},n.a.createElement(ae.a,{disabledHours:function(){var gt=At.getFieldValue("start_time");if(gt){var xt=parseInt(ce()(gt).format("HH"));return Object(be.R)(0,23).splice(0,xt)}},disabledMinutes:function(gt){var xt=At.getFieldValue("start_time");if(xt){var Lt=parseInt(ce()(xt).format("mm")),Ot=parseInt(ce()(xt).format("HH"));return Ot===gt?Object(be.R)(0,59).splice(0,Lt):[]}},className:"w100",size:"large",minuteStep:1,format:"HH:mm"})),n.a.createElement(K.a.Item,{label:"\u8FDF\u5230\u65F6\u95F4",name:"late_time",style:{marginBottom:2}},n.a.createElement(ae.a,{className:"w100",size:"large",minuteStep:1,format:"HH:mm"})),n.a.createElement("div",{style:{paddingLeft:102,color:"#999"}},"\u5728\u7ED3\u675F\u65F6\u95F4\u81F3\u8FDF\u5230\u65F6\u95F4\u7B7E\u5230\u7684\u540C\u5B66\u8BB0\u4E3A\u8FDF\u5230"))))},Ne=Object(_.a)(function(ze){var Ce=ze.classroomList,Oe=ze.loading;return{classroomList:Ce,loading:Oe}})(Se),_e=t("oUNq"),$e=t("RotF"),He=t.n($e),nt=b.a.TreeNode,et=function(Ce){var Oe=Ce.classroomList,ge=Ce.dispatch,te=K.a.useForm(),le=Object(T.a)(te,1),we=le[0],xe=Object(F.i)();xe.id=xe.coursesId;var Re=Object(o.useState)(1),je=Object(T.a)(Re,2),De=je[0],Le=je[1],Fe=Object(o.useState)([]),dt=Object(T.a)(Fe,2),tt=dt[0],Ct=dt[1],At=Object(o.useState)(0),Ht=Object(T.a)(At,2),en=Ht[0],Ge=Ht[1],gt=Object(o.useState)(20),xt=Object(T.a)(gt,2),Lt=xt[0],Ot=xt[1],Dt=Object(o.useState)(!0),Bt=Object(T.a)(Dt,2),Xt=Bt[0],an=Bt[1],Jt=Object(o.useState)(!1),_t=Object(T.a)(Jt,2),Ft=_t[0],$t=_t[1],Sn=Object(o.useRef)([]),ir=Oe.courseGroups;Object(o.useEffect)(function(){Oe.actionTabs.key==="\u65B0\u589E\u7B7E\u5230"&&(document.body.setAttribute("style","height: 100%;"),Kn(),we.resetFields())},[Oe.actionTabs.key]),Object(o.useEffect)(function(){var zt;we.setFieldsValue((zt={},Object(ee.a)(zt,"name","\u8BFE\u7A0B\u7B7E\u5230"+ce()(new Date).format("YYYYMMDD")),Object(ee.a)(zt,"mode","QUICK"),Object(ee.a)(zt,"attendance_date",ce()(new Date)),Object(ee.a)(zt,"start_time",ce()(new Date)),Object(ee.a)(zt,"end_time",ce()(new Date).add(5,"minutes")),Object(ee.a)(zt,"late_time",ce()(new Date).add(15,"minutes")),zt))},[Oe.actionTabs.key]);var Nn=function(Tt){return Tt&&Tt1)return;Le(Tt),Kn(Tt)},wt=function(){document.body.removeAttribute("style"),Le(1),Ct([])},Zt=function(){var zt=Object(L.a)(c.a.mark(function Tt(){var mt,St,Mt,Yt,on;return c.a.wrap(function(qt){for(;;)switch(qt.prev=qt.next){case 0:return qt.t0=h.a,qt.t1={},qt.next=4,we.validateFields();case 4:if(qt.t2=qt.sent,mt=(0,qt.t0)(qt.t1,qt.t2),St=mt.group_ids,Mt=St===void 0?[]:St,Yt=tt.filter(function(On){return Mt.includes(On.name)}),mt.end_time=ce()(mt.end_time).format("HH:mm"),mt.start_time=ce()(mt.start_time).format("HH:mm"),mt.late_time=ce()(mt.late_time).format("HH:mm"),mt.attendance_date=ce()(mt.attendance_date).format("YYYY-MM-DD"),!(mt.end_time>=mt.late_time)){qt.next=15;break}return y.b.warn("\u8FDF\u5230\u65F6\u95F4\u4E0D\u80FD\u65E9\u4E8E\u6216\u7B49\u4E8E\u7ED3\u675F\u65F6\u95F4"),qt.abrupt("return");case 15:return $t(!0),qt.next=18,Object(W.a)("/api/weapps/courses/".concat(xe.id,"/attendances.json"),{method:"post",body:Object(h.a)(Object(h.a)({},mt),{},{group_ids:Yt.map(function(On){return On.id})})});case 18:on=qt.sent,on.status===0&&(wt(),Object(be.Y)(["\u6559\u5B66\u8BFE\u5802","\u7B7E\u5230","\u521B\u5EFA\u7B7E\u5230"]),y.b.success("\u6DFB\u52A0\u6210\u529F"),ge({type:"classroomList/setActionTabs",payload:{}}),ge({type:"classroomList/getClassroomAttendancesList",payload:Object(h.a)({},Oe.actionTabs.params)}),ge({type:"classroomList/getClassroomLeftMenus",payload:{id:xe.coursesId}})),on.status===-1&&$t(!1);case 21:case"end":return qt.stop()}},Tt)}));return function(){return zt.apply(this,arguments)}}(),Cn=en>De*Lt;return n.a.createElement(Y.a,{centered:!0,title:"\u521B\u5EFA\u7B7E\u5230",visible:Oe.actionTabs.key==="\u65B0\u589E\u7B7E\u5230",bodyStyle:{minHeight:200},onOk:Zt,afterClose:function(){return $t(!1)},confirmLoading:Ft,onCancel:function(){wt(),ge({type:"classroomList/setActionTabs",payload:{}})}},n.a.createElement("section",{className:ye.a.addForm},n.a.createElement(K.a,{form:we,initialValues:{start_time:ce()("09:00","HH:mm")},onChange:function(){}},n.a.createElement(K.a.Item,{label:"\u7B7E\u5230\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7B7E\u5230\u540D\u79F0!"}]},n.a.createElement(fe.a,{size:"large",placeholder:"\u8BF7\u8F93\u5165\u7B7E\u5230\u540D\u79F0"})),n.a.createElement(K.a.Item,{label:"\u7B7E\u5230\u73ED\u7EA7",name:"group_ids"},n.a.createElement(b.a,{showSearch:!1,mode:"multiple",showArrow:!0,style:{width:"100%"},dropdownStyle:{maxHeight:260},size:"large",placeholder:tt!=null&&tt.length?"\u4E0D\u9009\u62E9\u5206\u73ED\u65F6\u9ED8\u8BA4\u9009\u62E9\u5168\u90E8\u5B66\u751F":"\u6682\u65E0\u5206\u73ED\uFF0C\u5C06\u9ED8\u8BA4\u9009\u62E9\u8BFE\u5802\u5168\u90E8\u5B66\u751F",dropdownRender:function(){return n.a.createElement("div",{style:{maxHeight:260,overflowY:"auto",overflowX:"hidden",padding:"16px 18px 0 18px"}},n.a.createElement(He.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:it,hasMore:Cn,useWindow:!1},n.a.createElement(K.a.Item,{name:"group_ids"},n.a.createElement(H.a.Group,null,tt.map(function(Tt,mt){return n.a.createElement("div",{key:mt},n.a.createElement(H.a,{onChange:function(Mt){},key:mt,value:String(Tt.name),defaultChecked:!0,style:{width:430},className:"multi-ellipsis1 multi-ellipsis1-checkbox"},n.a.createElement("span",null,Tt.name)))}))),Xt&&n.a.createElement("div",{style:{display:"flex",justifyContent:"center"}},n.a.createElement(A.a,null))))}})),n.a.createElement(K.a.Item,{label:"\u7B7E\u5230\u65B9\u5F0F",name:"mode",rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}]},n.a.createElement(I.a.Group,{size:"large"},n.a.createElement(I.a,{value:"QUICK"},"\u5FEB\u6377\u7B7E\u5230"),n.a.createElement(I.a,{value:"NUMBER"},"\u7B7E\u5230\u7801\u7B7E\u5230"))),n.a.createElement(K.a.Item,{label:"\u7B7E\u5230\u65E5\u671F",name:"attendance_date",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7B7E\u5230\u65B9\u5F0F!"}]},n.a.createElement(V.a,{disabledDate:Nn,placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",className:"w100",size:"large",format:"YYYY-MM-DD"})),n.a.createElement(K.a.Item,{label:"\u5F00\u59CB\u65F6\u95F4",name:"start_time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4!"}]},n.a.createElement(ae.a,{className:"w100",size:"large",minuteStep:1,format:"HH:mm",onChange:function(){we.setFieldsValue({end_time:"",late_time:""})}})),n.a.createElement(K.a.Item,{label:"\u7ED3\u675F\u65F6\u95F4",name:"end_time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4!"}]},n.a.createElement(ae.a,{disabledHours:function(){var Tt=we.getFieldValue("start_time");if(Tt){var mt=parseInt(ce()(Tt).format("HH"));return Object(be.R)(0,23).splice(0,mt)}},disabledMinutes:function(Tt){var mt=we.getFieldValue("start_time");if(mt){var St=parseInt(ce()(mt).format("mm")),Mt=parseInt(ce()(mt).format("HH"));return Mt===Tt?Object(be.R)(0,59).splice(0,St):[]}},className:"w100",size:"large",minuteStep:1,format:"HH:mm"})),n.a.createElement(K.a.Item,{label:"\u8FDF\u5230\u65F6\u95F4",name:"late_time",style:{marginBottom:2}},n.a.createElement(ae.a,{className:"w100",size:"large",minuteStep:1,format:"HH:mm"})),n.a.createElement("div",{style:{paddingLeft:102,color:"#999"}},"\u5728\u7ED3\u675F\u65F6\u95F4\u81F3\u8FDF\u5230\u65F6\u95F4\u7B7E\u5230\u7684\u540C\u5B66\u8BB0\u4E3A\u8FDF\u5230"))))},Xe=Object(_.a)(function(ze){var Ce=ze.classroomList;return{classroomList:Ce}})(et),st=t("0FX9"),ut=t.n(st),ct=t("lzim"),Ze=function(Ce){var Oe=Ce.classroomList,ge=Ce.loading,te=Ce.dispatch,le=Ce.data,we=Object(F.i)(),xe=Object(o.useState)(!1),Re=Object(T.a)(xe,2),je=Re[0],De=Re[1],Le=Object(o.useState)(""),Fe=Object(T.a)(Le,2),dt=Fe[0],tt=Fe[1],Ct=Object(o.useState)(""),At=Object(T.a)(Ct,2),Ht=At[0],en=At[1],Ge=Oe.actionTabs.selectArrs;Object(o.useEffect)(function(){if(Oe.actionTabs.key==="\u7ACB\u5373\u7B7E\u5230"){switch(Ge==null?void 0:Ge.mode){case"QUICK":tt("\u5FEB\u6377\u7B7E\u5230"),Bt();break;case"NUMBER":tt("\u7B7E\u5230\u7801\u7B7E\u5230"),De(!0);break;case"QRCODE":tt("\u4E8C\u7EF4\u7801\u7B7E\u5230"),ut.a.toDataURL((Ge==null?void 0:Ge.attendance_code)||"",{type:"terminal",margin:1,scale:16},function(an,Jt){en(Jt)}),De(!0);break}Dt.resetFields()}else De(!1)},[Oe.actionTabs.key]);var gt=Oe.detailAttendancesDetail,xt=Oe.courseGroups,Lt=K.a.useForm(),Ot=Object(T.a)(Lt,1),Dt=Ot[0],Bt=function(){var an=Object(L.a)(c.a.mark(function Jt(){var _t,Ft;return c.a.wrap(function(Sn){for(;;)switch(Sn.prev=Sn.next){case 0:return Sn.next=2,Dt.validateFields();case 2:return _t=Dt.getFieldValue(),Sn.next=5,Object(_e.e)({code:_t==null?void 0:_t.code,attendance_mode:Ge==null?void 0:Ge.mode,attendance_id:Ge==null?void 0:Ge.id});case 5:Ft=Sn.sent,(Ft==null?void 0:Ft.status)===0&&(y.b.success("\u7B7E\u5230\u6210\u529F"),Xt(),te({type:"classroomList/getClassroomAttendancesList",payload:Object(h.a)({},Oe.actionTabs.params)})),(Ft==null?void 0:Ft.status)===-1&&Xt();case 8:case"end":return Sn.stop()}},Jt)}));return function(){return an.apply(this,arguments)}}(),Xt=function(){te({type:"classroomList/setActionTabs",payload:{}})};return n.a.createElement(Y.a,{centered:!0,title:dt,width:620,visible:je,onOk:Object(L.a)(c.a.mark(function an(){return c.a.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:(Ge==null?void 0:Ge.mode)==="QRCODE"?Xt():Bt();case 1:case"end":return _t.stop()}},an)})),onCancel:function(){Xt()}},(Ge==null?void 0:Ge.mode)==="QRCODE"&&n.a.createElement("aside",{className:""},n.a.createElement(l.a,{align:"middle",justify:"center"},n.a.createElement(d.a,{span:10,className:"tc"},n.a.createElement("img",{width:200,src:Ht}),n.a.createElement("br",null),"\u7B7E\u5230\u4E8C\u7EF4\u7801"),n.a.createElement(d.a,{span:4}),n.a.createElement(d.a,{span:10,className:"tc"},n.a.createElement("img",{width:200,src:ct.B}),n.a.createElement("br",null),"EduCoder\u5C0F\u7A0B\u5E8F\u4E8C\u7EF4\u7801")),n.a.createElement("div",{className:"c-black pl20 pr20 mt20"},"\u4E8C\u7EF4\u7801\u7B7E\u5230\u6B65\u9AA4\uFF1A",n.a.createElement("br",null),"1.\u6253\u5F00EduCoder\u5C0F\u7A0B\u5E8F\uFF1B2.\u8FDB\u5165\u5BF9\u5E94\u7684\u6559\u5B66\u8BFE\u5802\uFF1B3.\u8FDB\u5165\u7B7E\u5230\u6A21\u5757\uFF1B4.\u627E\u5230\u6B63\u5728\u8FDB\u884C\u7684\u7B7E\u5230\uFF0C\u5E76\u70B9\u51FB\u7B7E\u5230\uFF1B5.\u626B\u7801\u7B7E\u5230\u3002")),(Ge==null?void 0:Ge.mode)==="NUMBER"&&n.a.createElement("aside",{className:"pt30 pb30"},n.a.createElement(K.a,{form:Dt},n.a.createElement(K.a.Item,{name:"code",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7B7E\u5230\u7801"}]},n.a.createElement(fe.a,{placeholder:"\u8BF7\u8F93\u5165\u7B7E\u5230\u7801"})))))},bt=Object(_.a)(function(ze){var Ce=ze.classroomList,Oe=ze.loading;return{classroomList:Ce,loading:Oe}})(Ze),lt=t("xKgJ"),Et=t("mgmH"),jt=t("P5Jw"),Qt=H.a.Group,Gt=function(Ce){var Oe,ge=Ce.classroomList,te=Ce.loading,le=Ce.dispatch,we=Object(o.useState)(Object(h.a)({},Object(F.i)())),xe=Object(T.a)(we,1),Re=xe[0],je=Object(F.h)(),De=Object(o.useState)("all"),Le=Object(T.a)(De,2),Fe=Le[0],dt=Le[1],tt=ge.detailAttendancesList,Ct=Object(o.useState)({}),At=Object(T.a)(Ct,2),Ht=At[0],en=At[1],Ge=Object(o.useState)(!1),gt=Object(T.a)(Ge,2),xt=gt[0],Lt=gt[1],Ot=Object(o.useState)([]),Dt=Object(T.a)(Ot,2),Bt=Dt[0],Xt=Dt[1],an=Object(o.useState)(!1),Jt=Object(T.a)(an,2),_t=Jt[0],Ft=Jt[1];Re.id=Re.coursesId,Object(o.useEffect)(function(){var it,wt=je==null||((it=je.query)===null||it===void 0)?void 0:it.tabId;wt&&(dt(wt),Re.status=wt),le({type:"classroomList/getClassroomAttendancesList",payload:Object(h.a)(Object(h.a)({},Re),{},{status:Fe,page:1})})},[Re.categoryId,je==null||((Oe=je.query)===null||Oe===void 0)?void 0:Oe.tabId]),Object(o.useEffect)(function(){ge.actionTabs.key==="\u76EE\u5F55\u91CD\u547D\u540D\u6210\u529F"&&le({type:"classroomList/getClassroomAttendancesList",payload:Object(h.a)({},Re)})},[ge.actionTabs.key]);var $t=function(wt){Re.page=wt,le({type:"classroomList/getClassroomAttendancesList",payload:Object(h.a)({},Re)})},Sn=function(wt){console.log(wt,22222222),dt(wt.key),Re.status=wt.key,Re.page=1,console.log(Re,"params"),le({type:"classroomList/getClassroomAttendancesList",payload:Object(h.a)({},Re)})},ir=[{name:"\u5168\u90E8\u7B7E\u5230",id:"all"},{name:"\u6B63\u5728\u7B7E\u5230",id:"ongoing"},{name:"\u5386\u53F2\u7B7E\u5230",id:"history"},{name:"\u6682\u672A\u5F00\u59CB",id:"not_start"},{name:"\u7B7E\u5230\u7EDF\u8BA1",id:"signInStatistics"}].filter(function(it){return Object(lt.c)()?!0:it.name!=="\u7B7E\u5230\u7EDF\u8BA1"&&it.name!=="\u6682\u672A\u5F00\u59CB"}),Nn=function(wt){le({type:"classroomList/setActionTabs",payload:{key:"\u7ACB\u5373\u7B7E\u5230",selectArrs:wt,params:Object(h.a)({},Re)}})},Kn=["\u7F16\u8F91","\u5220\u9664","\u622A\u6B62"];return n.a.createElement("section",null,n.a.createElement("aside",{className:[ye.a.bg,ye.a.menu].join(" ")},n.a.createElement(C.a,{mode:"horizontal",style:{margin:"0 18px"},onSelect:Sn,selectedKeys:[Fe]},ir.map(function(it,wt){return n.a.createElement(C.a.Item,{key:it.id},it.name)})),Object(lt.c)()&&n.a.createElement("span",{className:ye.a.add,onClick:function(){le({type:"classroomList/setActionTabs",payload:{key:"\u65B0\u589E\u7B7E\u5230",params:Re}})}},n.a.createElement("span",{className:"iconfont icon-bianjishijuan3x mr5"}),"\u521B\u5EFA\u7B7E\u5230")),Fe=="signInStatistics"?n.a.createElement(J,null):null,Fe!=="signInStatistics"&&n.a.createElement("section",null,Fe=="history"&&Object(lt.c)()&&n.a.createElement("div",{style:{background:"#fff",padding:"15px 20px 10px 20px",color:"#999",display:"flex",alignItems:"center",marginTop:20}},n.a.createElement(H.a,{checked:xt,style:{flex:"1"},onChange:function(){var wt;if((Bt==null?void 0:Bt.length)===(tt==null||((wt=tt.attendances)===null||wt===void 0)?void 0:wt.length))Xt([]),Lt(!1);else{var Zt=[];tt.attendances.map(function(Cn){Zt.push(Cn==null?void 0:Cn.id)}),Xt([].concat(Zt)),Lt(!0)}}},"\u5DF2\u9009\u62E9",(Bt==null?void 0:Bt.length)||0,"\u4E2A(\u4E0D\u652F\u6301\u8DE8\u9875\u52FE\u9009)"),n.a.createElement(N.a,{style:{cursor:"pointer"},loading:_t,onClick:Object(L.a)(c.a.mark(function it(){return c.a.wrap(function(Zt){for(;;)switch(Zt.prev=Zt.next){case 0:return Re.attendance_ids=[],Zt.next=3,Object(Et.a)(Object(h.a)(Object(h.a)({},Re),{},{history:!0,type:1}));case 3:case"end":return Zt.stop()}},it)}))},"\u5BFC\u51FA\u5168\u90E8\u7B7E\u5230"),n.a.createElement(N.a,{style:{cursor:"pointer",marginLeft:10},loading:_t,onClick:Object(L.a)(c.a.mark(function it(){return c.a.wrap(function(Zt){for(;;)switch(Zt.prev=Zt.next){case 0:if(!((Bt==null?void 0:Bt.length)<=0)){Zt.next=3;break}return y.b.info("\u8BF7\u9009\u62E9\u8981\u5BFC\u51FA\u7684\u7B7E\u5230"),Zt.abrupt("return");case 3:return Re.attendance_ids=Bt,Zt.next=6,Object(Et.a)(Object(h.a)(Object(h.a)({},Re),{},{history:!0,type:1}));case 6:case"end":return Zt.stop()}},it)}))},"\u5BFC\u51FA\u9009\u4E2D\u7B7E\u5230")),n.a.createElement(f.a,{loading:te["classroomList/getClassroomAttendancesList"],active:!0,avatar:{size:40},paragraph:{rows:5},className:"mt30"},tt.attendances_count===0&&n.a.createElement(R.a,null),tt.attendances&&tt.attendances.map(function(it){return n.a.createElement(Qt,{value:Bt,className:ye.a.listItem,style:{display:"flex"},onChange:function(){}},n.a.createElement("div",{onClick:function(){return Object(lt.c)()&&_.d.push("/classrooms/".concat(Re.coursesId,"/attendance/").concat(it.id,"/").concat(Fe,"/detail"))}},n.a.createElement(l.a,{gutter:16,justify:"space-between"},n.a.createElement(d.a,{span:20},n.a.createElement(l.a,null,Fe=="history"&&Object(lt.c)()&&n.a.createElement(H.a,{className:"mr8",key:it.id,value:it.id,onClick:function(){var wt=Object(L.a)(c.a.mark(function Zt(Cn){var zt,Tt,mt,St;return c.a.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:Cn.stopPropagation(),(Bt==null?void 0:Bt.filter(function(on){return on===(it==null?void 0:it.id)}).length)>0?(zt=Object(g.a)(Bt),Tt=Object(g.a)(zt.filter(function(on){return on!=(it==null?void 0:it.id)})),Lt(!1),Xt(Tt)):(St=Bt,St.push(it==null?void 0:it.id),Lt((St==null?void 0:St.length)===(tt==null||((mt=tt.attendances)===null||mt===void 0)?void 0:mt.length)),Xt(Object(g.a)(St)));case 2:case"end":return Yt.stop()}},Zt)}));return function(Zt){return wt.apply(this,arguments)}}(),style:{marginTop:"4px"}}),n.a.createElement(d.a,{className:"c-blue font16 blod"},n.a.createElement("span",{className:ye.a.attend},n.a.createElement("span",{className:ye.a.title},it.name),it.status==="not_start"&&n.a.createElement("span",{className:ye.a.not_start},"\u672A\u5F00\u59CB"),it.status==="ongoing"&&n.a.createElement("span",{className:ye.a.ongoing},"\u8FDB\u884C\u4E2D"),it.status==="history"&&n.a.createElement("span",{className:ye.a.history},"\u5DF2\u622A\u6B62"))))),n.a.createElement(d.a,{className:"font14"},it.mode==="NUMBER"&&Object(lt.c)()&&n.a.createElement(jt.CopyToClipboard,{text:it.attendance_code,onCopy:function(){return y.b.success("\u590D\u5236\u6210\u529F")}},n.a.createElement(e.a,{placement:"top",title:"\u70B9\u51FB\u590D\u5236\u7B7E\u5230\u7801"},n.a.createElement("span",{className:ye.a.attendanceCode,onClick:function(Zt){return Zt.stopPropagation()}},"\u7B7E\u5230\u7801\uFF1A",it.attendance_code))))),n.a.createElement(l.a,{className:"mt20 c-light-black"},n.a.createElement(d.a,null,"\u7B7E\u5230\u4EBA\u6570"),n.a.createElement(d.a,{flex:"200px",className:"ml20"},n.a.createElement(a.a,{showInfo:!1,percent:Math.ceil(it.normal_count/it.all_count*100)})),n.a.createElement(d.a,{flex:1,className:"ml20 c-blue"},"\u5DF2\u7B7E\u5230 ",it.normal_count," / \u5E94\u7B7E\u5230 ",it.all_count)),it.attendance_status==="NORMAL"&&Object(lt.s)()&&n.a.createElement("div",{className:"".concat(ye.a.signInStatus," ").concat(ye.a.color0152d9)},"\u6B63\u5E38"),it.attendance_status==="LEAVE"&&Object(lt.s)()&&n.a.createElement("div",{className:"".concat(ye.a.signInStatus," ").concat(ye.a.colorFA6400)},"\u8BF7\u5047"),it.attendance_status==="ABSENCE"&&it.status=="history"&&(Fe=="history"||Fe=="all")&&Object(lt.s)()&&n.a.createElement("div",{className:"".concat(ye.a.signInStatus," ").concat(ye.a.colorE02020)},"\u65F7\u8BFE"),n.a.createElement(l.a,{className:"mt20 c-light-black"},n.a.createElement(d.a,{flex:1},n.a.createElement(l.a,null,n.a.createElement(d.a,{flex:1},"\u7B7E\u5230\u53D1\u8D77\u4EBA\uFF1A",it.author.user_name),n.a.createElement(d.a,{flex:1},"\u7B7E\u5230\u65B9\u5F0F\uFF1A",it.mode==="QRCODE"&&"\u4E8C\u7EF4\u7801\u7B7E\u5230",it.mode==="NUMBER"&&"\u7B7E\u5230\u7801\u7B7E\u5230",it.mode==="QUICK"&&"\u5FEB\u6377\u7B7E\u5230"),n.a.createElement(d.a,{flex:1},"\u5F00\u59CB\u7ED3\u675F\u65F6\u95F4:",it.attendance_date," ",it.start_time,"~",it.end_time),n.a.createElement(d.a,null,it.attendance_status==="ABSENCE"&&(Fe=="all"||Fe=="ongoing")&&Object(lt.s)()&&n.a.createElement(N.a,{style:{width:100},size:"large",type:"primary",onClick:function(){return Nn(it)}},"\u7B7E\u5230")))),n.a.createElement(d.a,null,Object(lt.c)()&&Kn.filter(function(wt){return it.edit_auth?wt:wt!="\u7F16\u8F91"}).filter(function(wt){return Fe!="0"?wt!="\u622A\u6B62":wt}).map(function(wt,Zt){return n.a.createElement("span",{className:"c-blue ml20",key:Zt,onClick:function(zt){zt.stopPropagation(),en(it),le({type:"classroomList/setActionTabs",payload:{key:wt,selectArrs:[it.id],params:Re}})}},wt)})))))}),n.a.createElement("aside",{className:"tc mb50 mt30"},n.a.createElement(v.a,{hideOnSinglePage:!0,pageSize:20,showSizeChanger:!1,onChange:$t,defaultCurrent:1,current:Re.page||1,total:tt.attendances_count})))),n.a.createElement($,null),n.a.createElement(bt,null),n.a.createElement(Ne,{data:Ht}),n.a.createElement(Xe,null),n.a.createElement(Z,null))},rn=x.default=Object(_.a)(function(ze){var Ce=ze.classroomList,Oe=ze.loading,ge=ze.globalSetting;return{classroomList:Ce,globalSetting:ge,loading:Oe.effects}})(Gt)},VpOo:function(ie,x){function t(O,f){var m=f.x,v=f.y,u=f.width,a=f.height,r=f.r,e,s,l,i;u<0&&(m=m+u,u=-u),a<0&&(v=v+a,a=-a),typeof r=="number"?e=s=l=i=r:r instanceof Array?r.length===1?e=s=l=i=r[0]:r.length===2?(e=l=r[0],s=i=r[1]):r.length===3?(e=r[0],s=i=r[1],l=r[2]):(e=r[0],s=r[1],l=r[2],i=r[3]):e=s=l=i=0;var d;e+s>u&&(d=e+s,e*=u/d,s*=u/d),l+i>u&&(d=l+i,l*=u/d,i*=u/d),s+l>a&&(d=s+l,s*=a/d,l*=a/d),e+i>a&&(d=e+i,e*=a/d,i*=a/d),O.moveTo(m+e,v),O.lineTo(m+u-s,v),s!==0&&O.arc(m+u-s,v+s,s,-Math.PI/2,0),O.lineTo(m+u,v+a-l),l!==0&&O.arc(m+u-l,v+a-l,l,0,Math.PI/2),O.lineTo(m+i,v+a),i!==0&&O.arc(m+i,v+a-i,i,Math.PI/2,Math.PI),O.lineTo(m,v+e),e!==0&&O.arc(m+e,v+e,e,Math.PI,Math.PI*1.5)}x.buildPath=t},W6BS:function(ie,x){ie.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAVs0lEQVRoQ+2aa6xlZ3nff++677Xv+9zPHM/YHo+xwQ4E14GKKESkiFsSM8bYQBIEkaBEAkqbRmo/9FulSoX2Qz9GVVQJqUJBhKKA1KRJCIlowwdDDDa+jOd65syc275f1v1d1fOufYYE2ZhJZKRWXjOjvffaa6/1/p//8/yfyzuqLMuS/48P9RrA/8fZfY3B2yXQBHQpf185tBUK+SvH8uV2H/eK1/+jGfwRIBC5ks/Vq/yplq2Wqz+B/ONg5LNlrlz+Qhnot373iih+wgX/YIAivrJgjTKA9BKcYa/Uy/MnUEpD0S2AyzdKkMslZYklbwVYWZpXQSygrSVoc+4fcPzUAKtsom4xpIGiLCkMZbJGs1LkvOHPfJbrhRX5/CM/NDwJZlXiqBKlc7AEjg1aI2iVDXZpoeS9AFXlkmV1W8z+VACLE7dbMiWLE2CFADLgqig6SakCSs4jizcvAvBHMVkqxxhKkePqAs8S1mxyLUxqw6AYKLdtbMtGINpiKKUM07bc96dk9BUBykIFoNYVC/JewMkCDDh18p0so6w+GzfT+FoWC7Yl11curQpFVCoyJQsvDThP6crNdVldi0KLcwogyzJGssVrxYWXAOWzwWg84eXd92UByo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E1q7iU5znZsfN83i2+32zSbTXq9HisrK6yurtJoNH4ympf49rYAvhzL1b5JSZqmZqGTyZT+4Jj+cd+4+mg4Yh7F5Kk0xqK4Jb7rVP87w1KGpU6nR6vVNMAEkPzrdDqGxX/McVsAb/dBsh0mKWgxnzMajxgOhhwf9+n3j5nNZ7RbbbrdrgElYE5Aua57u4962etfNYAvx7YISJIkxrXFxdvtlnFJW+Yiy+MnecrtIn/VAN7uQl6t618D+GpZ9md139cY/FlZ+tV6zmsMvlqW/Vnd9/8CAe3hZpCQX/4AAAAASUVORK5CYII="},WaYH:function(ie,x,t){"use strict";var O=t("rePB"),f=t("Ff2n"),m=t("VTBJ"),v=t("1OyB"),u=t("vuIU"),a=t("JX7q"),r=t("Ji7U"),e=t("LK+K"),s=t("q1tI"),l=t("TSYQ"),i=t.n(l),d=t("sboe"),g=t("OZM5"),E=function(H){var w=H.prefixCls,c=H.level,o=H.isStart,n=H.isEnd;if(!c)return null;for(var F="".concat(w,"-indent-unit"),_=[],k=0;k=m)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+m.toString(16)+" bytes");return L|0}function a(L){return L!==L}function r(L,p){var C;return v.TYPED_ARRAY_SUPPORT?(C=new Uint8Array(p),C.__proto__=v.prototype):(C=L,C===null&&(C=new v(p)),C.length=p),C}function e(L,p){var C=r(L,p<0?0:u(p)|0);if(!v.TYPED_ARRAY_SUPPORT)for(var h=0;h55295&&C<57344){if(!T){if(C>56319){(p-=3)>-1&&B.push(239,191,189);continue}else if(H+1===h){(p-=3)>-1&&B.push(239,191,189);continue}T=C;continue}if(C<56320){(p-=3)>-1&&B.push(239,191,189),T=C;continue}C=(T-55296<<10|C-56320)+65536}else T&&((p-=3)>-1&&B.push(239,191,189));if(T=null,C<128){if((p-=1)<0)break;B.push(C)}else if(C<2048){if((p-=2)<0)break;B.push(C>>6|192,C&63|128)}else if(C<65536){if((p-=3)<0)break;B.push(C>>12|224,C>>6&63|128,C&63|128)}else if(C<1114112){if((p-=4)<0)break;B.push(C>>18|240,C>>12&63|128,C>>6&63|128,C&63|128)}else throw new Error("Invalid code point")}return B}function E(L){if(v.isBuffer(L))return L.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(L)||L instanceof ArrayBuffer))return L.byteLength;typeof L!="string"&&(L=""+L);var p=L.length;return p===0?0:g(L).length}function y(L,p,C,h){for(var T=0;T=p.length||T>=L.length);++T)p[T+C]=L[T];return T}function D(L,p,C,h){return y(g(p,L.length-C),L,C,h)}function N(L,p,C,h){if(typeof p=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&p instanceof ArrayBuffer?i(L,p,C,h):typeof p=="string"?s(L,p,C):d(L,p)}v.prototype.write=function(p,C,h){C===void 0?(h=this.length,C=0):h===void 0&&typeof C=="string"?(h=this.length,C=0):isFinite(C)&&(C=C|0,isFinite(h)?h=h|0:h=void 0);var T=this.length-C;if((h===void 0||h>T)&&(h=T),p.length>0&&(h<0||C<0)||C>this.length)throw new RangeError("Attempt to write outside buffer bounds");return D(this,p,C,h)},v.prototype.slice=function(p,C){var h=this.length;p=~~p,C=C===void 0?h:~~C,p<0?(p+=h,p<0&&(p=0)):p>h&&(p=h),C<0?(C+=h,C<0&&(C=0)):C>h&&(C=h),C=p.length&&(C=p.length),C||(C=0),T>0&&T=this.length)throw new RangeError("sourceStart out of bounds");if(T<0)throw new RangeError("sourceEnd out of bounds");T>this.length&&(T=this.length),p.length-C=0;--H)p[H+C]=this[H+h];else if(B<1e3||!v.TYPED_ARRAY_SUPPORT)for(H=0;H>>0,h=h===void 0?this.length:h>>>0,p||(p=0);var B;if(typeof p=="number")for(B=C;B>>8&255)*192+(a&255),v.put(a,13)}},ie.exp z-index:-1000 !important; top:0 !important; right:0 !important -`,b=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],R={},M;function j($){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Z=$.getAttribute("id")||$.getAttribute("data-reactid")||$.getAttribute("name");if(X&&R[Z])return R[Z];var se=window.getComputedStyle($),ae=se.getPropertyValue("box-sizing")||se.getPropertyValue("-moz-box-sizing")||se.getPropertyValue("-webkit-box-sizing"),ve=parseFloat(se.getPropertyValue("padding-bottom"))+parseFloat(se.getPropertyValue("padding-top")),V=parseFloat(se.getPropertyValue("border-bottom-width"))+parseFloat(se.getPropertyValue("border-top-width")),re=b.map(function(q){return"".concat(q,":").concat(se.getPropertyValue(q))}).join(";"),I={sizingStyle:re,paddingSize:ve,borderSize:V,boxSizing:ae};return X&&Z&&(R[Z]=I),I}function Q($){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,se=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;M||(M=document.createElement("textarea"),M.setAttribute("tab-index","-1"),M.setAttribute("aria-hidden","true"),document.body.appendChild(M)),$.getAttribute("wrap")?M.setAttribute("wrap",$.getAttribute("wrap")):M.removeAttribute("wrap");var ae=j($,X),ve=ae.paddingSize,V=ae.borderSize,re=ae.boxSizing,I=ae.sizingStyle;M.setAttribute("style","".concat(I,";").concat(k)),M.value=$.value||$.placeholder||"";var q=Number.MIN_SAFE_INTEGER,fe=Number.MAX_SAFE_INTEGER,z=M.scrollHeight,A;if(re==="border-box"?z+=V:re==="content-box"&&(z-=ve),Z!==null||se!==null){M.value=" ";var S=M.scrollHeight-ve;Z!==null&&(q=S*Z,re==="border-box"&&(q=q+ve+V),z=Math.max(q,z)),se!==null&&(fe=S*se,re==="border-box"&&(fe=fe+ve+V),A=z>fe?"":"hidden",z=Math.min(fe,z))}return{height:z,minHeight:q,maxHeight:fe,overflowY:A,resize:"none"}}var G=t("Gytx"),ne=t.n(G),J;(function($){$[$.NONE=0]="NONE",$[$.RESIZING=1]="RESIZING",$[$.RESIZED=2]="RESIZED"})(J||(J={}));var P=function($){Object(v.a)(Z,$);var X=Object(u.a)(Z);function Z(se){var ae;return Object(f.a)(this,Z),ae=X.call(this,se),ae.nextFrameActionId=void 0,ae.resizeFrameId=void 0,ae.textArea=void 0,ae.saveTextArea=function(ve){ae.textArea=ve},ae.handleResize=function(ve){var V=ae.state.resizeStatus,re=ae.props,I=re.autoSize,q=re.onResize;if(V!==J.NONE)return;typeof q=="function"&&q(ve),I&&ae.resizeOnNextFrame()},ae.resizeOnNextFrame=function(){cancelAnimationFrame(ae.nextFrameActionId),ae.nextFrameActionId=requestAnimationFrame(ae.resizeTextarea)},ae.resizeTextarea=function(){var ve=ae.props.autoSize;if(!ve||!ae.textArea)return;var V=ve.minRows,re=ve.maxRows,I=Q(ae.textArea,!1,V,re);ae.setState({textareaStyles:I,resizeStatus:J.RESIZING},function(){cancelAnimationFrame(ae.resizeFrameId),ae.resizeFrameId=requestAnimationFrame(function(){ae.setState({resizeStatus:J.RESIZED},function(){ae.resizeFrameId=requestAnimationFrame(function(){ae.setState({resizeStatus:J.NONE}),ae.fixFirefoxAutoScroll()})})})})},ae.renderTextArea=function(){var ve=ae.props,V=ve.prefixCls,re=V===void 0?"rc-textarea":V,I=ve.autoSize,q=ve.onResize,fe=ve.className,z=ve.disabled,A=ae.state,S=A.textareaStyles,K=A.resizeStatus,ee=Object(n.a)(ae.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),de=_()(re,fe,Object(e.a)({},"".concat(re,"-disabled"),z));"value"in ee&&(ee.value=ee.value||"");var he=Object(r.a)(Object(r.a)(Object(r.a)({},ae.props.style),S),K===J.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return a.createElement(o,{onResize:ae.handleResize,disabled:!(I||q)},a.createElement("textarea",Object(O.a)({},ee,{className:de,style:he,ref:ae.saveTextArea})))},ae.state={textareaStyles:{},resizeStatus:J.NONE},ae}return Object(m.a)(Z,[{key:"componentDidUpdate",value:function(ae){(ae.value!==this.props.value||!ne()(ae.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var ae=this.textArea.selectionStart,ve=this.textArea.selectionEnd;this.textArea.setSelectionRange(ae,ve)}}catch(V){}}},{key:"render",value:function(){return this.renderTextArea()}}]),Z}(a.Component),Y=P,W=function($){Object(v.a)(Z,$);var X=Object(u.a)(Z);function Z(se){var ae;Object(f.a)(this,Z),ae=X.call(this,se),ae.resizableTextArea=void 0,ae.focus=function(){ae.resizableTextArea.textArea.focus()},ae.saveTextArea=function(V){ae.resizableTextArea=V},ae.handleChange=function(V){var re=ae.props.onChange;ae.setValue(V.target.value,function(){ae.resizableTextArea.resizeTextarea()}),re&&re(V)},ae.handleKeyDown=function(V){var re=ae.props,I=re.onPressEnter,q=re.onKeyDown;V.keyCode===13&&I&&I(V),q&&q(V)};var ve=typeof se.value=="undefined"||se.value===null?se.defaultValue:se.value;return ae.state={value:ve},ae}return Object(m.a)(Z,[{key:"setValue",value:function(ae,ve){"value"in this.props||this.setState({value:ae},ve)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return a.createElement(Y,Object(O.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(ae){return"value"in ae?{value:ae.value}:null}}]),Z}(a.Component),oe=x.default=W},YH21:function(ie,x,t){var O=t("H6uX");x.Dispatcher=O;var f=t("ItGF"),m=t("Ze12"),v=m.isCanvasEl,u=m.transformCoordWithViewport,a=typeof window!="undefined"&&!!window.addEventListener,r=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,e=[];function s(L,p,C,h){return C=C||{},h||!f.canvasSupported?l(L,p,C):f.browser.firefox&&p.layerX!=null&&p.layerX!==p.offsetX?(C.zrX=p.layerX,C.zrY=p.layerY):p.offsetX!=null?(C.zrX=p.offsetX,C.zrY=p.offsetY):l(L,p,C),C}function l(L,p,C){if(f.domSupported&&L.getBoundingClientRect){var h=p.clientX,D=p.clientY;if(v(L)){var B=L.getBoundingClientRect();C.zrX=h-B.left,C.zrY=D-B.top;return}else if(u(e,L,h,D)){C.zrX=e[0],C.zrY=e[1];return}}C.zrX=C.zrY=0}function i(L){return L||window.event}function d(L,p,C){if(p=i(p),p.zrX!=null)return p;var h=p.type,D=h&&h.indexOf("touch")>=0;if(!D)s(L,p,p,C),p.zrDelta=p.wheelDelta?p.wheelDelta/120:-(p.detail||0)/3;else{var B=h!=="touchend"?p.targetTouches[0]:p.changedTouches[0];B&&s(L,B,p,C)}var H=p.button;return p.which==null&&H!==void 0&&r.test(p.type)&&(p.which=H&1?1:H&2?3:H&4?2:0),p}function g(L,p,C,h){a?L.addEventListener(p,C,h):L.attachEvent("on"+p,C)}function E(L,p,C,h){a?L.removeEventListener(p,C,h):L.detachEvent("on"+p,C)}var y=a?function(L){L.preventDefault(),L.stopPropagation(),L.cancelBubble=!0}:function(L){L.returnValue=!1,L.cancelBubble=!0};function T(L){return L.which===2||L.which===3}function N(L){return L.which>1}x.clientToLocal=s,x.getNativeEvent=i,x.normalizeEvent=d,x.addEventListener=g,x.removeEventListener=E,x.stop=y,x.isMiddleOrRightButtonOnMouseUpDown=T,x.notLeftMouse=N},YgsL:function(ie,x,t){var O=t("QBsz"),f=O.distance;function m(u,a,r,e,s,l,i){var d=(r-u)*.5,g=(e-a)*.5;return(2*(a-r)+d+g)*i+(-3*(a-r)-2*d-g)*l+d*s+a}function v(u,a){for(var r=u.length,e=[],s=0,l=1;lr-2?r-1:g+1],L=u[g>r-3?r-1:g+2]);var p=E*E,C=E*p;e.push([m(y[0],T[0],N[0],L[0],E,p,C),m(y[1],T[1],N[1],L[1],E,p,C)])}return e}ie.exports=v},Z92M:function(ie,x){ie.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}},Ze12:function(ie,x,t){var O=t("ItGF"),f=t("hOwI"),m=f.buildTransformer,v="___zrEVENTSAVED",u=[];function a(i,d,g,E,y){return r(u,d,E,y,!0)&&r(i,g,u[0],u[1])}function r(i,d,g,E,y){if(d.getBoundingClientRect&&O.domSupported&&!l(d)){var T=d[v]||(d[v]={}),N=e(d,T),L=s(N,T,y);if(L)return L(i,g,E),!0}return!1}function e(i,d){var g=d.markers;if(g)return g;g=d.markers=[];for(var E=["left","right"],y=["top","bottom"],T=0;T<4;T++){var N=document.createElement("div"),L=N.style,p=T%2,C=(T>>1)%2;L.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",E[p]+":0",y[C]+":0",E[1-p]+":auto",y[1-C]+":auto",""].join("!important;"),i.appendChild(N),g.push(N)}return g}function s(i,d,g){for(var E=g?"invTrans":"trans",y=d[E],T=d.srcCoords,N=!0,L=[],p=[],C=0;C<4;C++){var h=i[C].getBoundingClientRect(),D=2*C,B=h.left,H=h.top;L.push(B,H),N=N&&T&&B===T[D]&&H===T[D+1],p.push(i[C].offsetLeft,i[C].offsetTop)}return N&&y?y:(d.srcCoords=L,d[E]=g?m(p,L):m(L,p))}function l(i){return i.nodeName.toUpperCase()==="CANVAS"}x.transformLocalCoord=a,x.transformCoordWithViewport=r,x.isCanvasEl=l},ZpRC:function(ie,x,t){"use strict";function O(i){return typeof i=="object"&&i!=null&&i.nodeType===1}function f(i,d){return(!d||i!=="hidden")&&i!=="visible"&&i!=="clip"}function m(i,d){if(i.clientHeightd||T>i&&N=d&&L>=g?T-i-E:N>d&&Lg?N-d+y:0}var u=function(i,d){var g=window,E=d.scrollMode,y=d.block,T=d.inline,N=d.boundary,L=d.skipOverflowHiddenElements,p=typeof N=="function"?N:function(S){return S!==N};if(!O(i))throw new TypeError("Invalid target");for(var C=document.scrollingElement||document.documentElement,h=[],D=i;O(D)&&p(D);){if((D=D.parentElement)===C){h.push(D);break}D!=null&&D===document.body&&m(D)&&!m(document.documentElement)||D!=null&&m(D,L)&&h.push(D)}for(var B=g.visualViewport?g.visualViewport.width:innerWidth,H=g.visualViewport?g.visualViewport.height:innerHeight,w=window.scrollX||pageXOffset,c=window.scrollY||pageYOffset,o=i.getBoundingClientRect(),n=o.height,F=o.width,_=o.top,k=o.right,b=o.bottom,R=o.left,M=y==="start"||y==="nearest"?_:y==="end"?b:_+n/2,j=T==="center"?R+F/2:T==="end"?k:R,Q=[],G=0;G=0&&R>=0&&b<=H&&k<=B&&_>=W&&b<=$&&R>=X&&k<=oe)return Q;var Z=getComputedStyle(ne),se=parseInt(Z.borderLeftWidth,10),ae=parseInt(Z.borderTopWidth,10),ve=parseInt(Z.borderRightWidth,10),V=parseInt(Z.borderBottomWidth,10),re=0,I=0,q="offsetWidth"in ne?ne.offsetWidth-ne.clientWidth-se-ve:0,fe="offsetHeight"in ne?ne.offsetHeight-ne.clientHeight-ae-V:0;if(C===ne)re=y==="start"?M:y==="end"?M-H:y==="nearest"?v(c,c+H,H,ae,V,c+M,c+M+n,n):M-H/2,I=T==="start"?j:T==="center"?j-B/2:T==="end"?j-B:v(w,w+B,B,se,ve,w+j,w+j+F,F),re=Math.max(0,re+c),I=Math.max(0,I+w);else{re=y==="start"?M-W-ae:y==="end"?M-$+V+fe:y==="nearest"?v(W,$,P,ae,V+fe,M,M+n,n):M-(W+P/2)+fe/2,I=T==="start"?j-X-se:T==="center"?j-(X+Y/2)+q/2:T==="end"?j-oe+ve+q:v(X,oe,Y,se,ve+q,j,j+F,F);var z=ne.scrollLeft,A=ne.scrollTop;M+=A-(re=Math.max(0,Math.min(A+re,ne.scrollHeight-P+fe))),j+=z-(I=Math.max(0,Math.min(z+I,ne.scrollWidth-Y+q)))}Q.push({el:ne,top:re,left:I})}return Q};function a(i){return i===Object(i)&&Object.keys(i).length!==0}function r(i,d){d===void 0&&(d="auto");var g="scrollBehavior"in document.body.style;i.forEach(function(E){var y=E.el,T=E.top,N=E.left;y.scroll&&g?y.scroll({top:T,left:N,behavior:d}):(y.scrollTop=T,y.scrollLeft=N)})}function e(i){return i===!1?{block:"end",inline:"nearest"}:a(i)?i:{block:"start",inline:"nearest"}}function s(i,d){var g=!i.ownerDocument.documentElement.contains(i);if(a(d)&&typeof d.behavior=="function")return d.behavior(g?[]:u(i,d));if(g)return;var E=e(d);return r(u(i,E),E.behavior)}var l=x.a=s},Zss7:function(ie,x,t){var O;(function(f){var m=/^\s+/,v=/\s+$/,u=0,a=f.round,r=f.min,e=f.max,s=f.random;function l(V,re){if(V=V||"",re=re||{},V instanceof l)return V;if(!(this instanceof l))return new l(V,re);var I=i(V);this._originalInput=V,this._r=I.r,this._g=I.g,this._b=I.b,this._a=I.a,this._roundA=a(100*this._a)/100,this._format=re.format||I.format,this._gradientType=re.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=I.ok,this._tc_id=u++}l.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var V=this.toRgb();return(V.r*299+V.g*587+V.b*114)/1e3},getLuminance:function(){var V=this.toRgb(),re,I,q,fe,z,A;return re=V.r/255,I=V.g/255,q=V.b/255,re<=.03928?fe=re/12.92:fe=f.pow((re+.055)/1.055,2.4),I<=.03928?z=I/12.92:z=f.pow((I+.055)/1.055,2.4),q<=.03928?A=q/12.92:A=f.pow((q+.055)/1.055,2.4),.2126*fe+.7152*z+.0722*A},setAlpha:function(V){return this._a=Q(V),this._roundA=a(100*this._a)/100,this},toHsv:function(){var V=y(this._r,this._g,this._b);return{h:V.h*360,s:V.s,v:V.v,a:this._a}},toHsvString:function(){var V=y(this._r,this._g,this._b),re=a(V.h*360),I=a(V.s*100),q=a(V.v*100);return this._a==1?"hsv("+re+", "+I+"%, "+q+"%)":"hsva("+re+", "+I+"%, "+q+"%, "+this._roundA+")"},toHsl:function(){var V=g(this._r,this._g,this._b);return{h:V.h*360,s:V.s,l:V.l,a:this._a}},toHslString:function(){var V=g(this._r,this._g,this._b),re=a(V.h*360),I=a(V.s*100),q=a(V.l*100);return this._a==1?"hsl("+re+", "+I+"%, "+q+"%)":"hsla("+re+", "+I+"%, "+q+"%, "+this._roundA+")"},toHex:function(V){return N(this._r,this._g,this._b,V)},toHexString:function(V){return"#"+this.toHex(V)},toHex8:function(V){return L(this._r,this._g,this._b,this._a,V)},toHex8String:function(V){return"#"+this.toHex8(V)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(G(this._r,255)*100)+"%",g:a(G(this._g,255)*100)+"%",b:a(G(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(G(this._r,255)*100)+"%, "+a(G(this._g,255)*100)+"%, "+a(G(this._b,255)*100)+"%)":"rgba("+a(G(this._r,255)*100)+"%, "+a(G(this._g,255)*100)+"%, "+a(G(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:M[N(this._r,this._g,this._b,!0)]||!1},toFilter:function(V){var re="#"+p(this._r,this._g,this._b,this._a),I=re,q=this._gradientType?"GradientType = 1, ":"";if(V){var fe=l(V);I="#"+p(fe._r,fe._g,fe._b,fe._a)}return"progid:DXImageTransform.Microsoft.gradient("+q+"startColorstr="+re+",endColorstr="+I+")"},toString:function(V){var re=!!V;V=V||this._format;var I=!1,q=this._a<1&&this._a>=0,fe=!re&&q&&(V==="hex"||V==="hex6"||V==="hex3"||V==="hex4"||V==="hex8"||V==="name");return fe?V==="name"&&this._a===0?this.toName():this.toRgbString():(V==="rgb"&&(I=this.toRgbString()),V==="prgb"&&(I=this.toPercentageRgbString()),(V==="hex"||V==="hex6")&&(I=this.toHexString()),V==="hex3"&&(I=this.toHexString(!0)),V==="hex4"&&(I=this.toHex8String(!0)),V==="hex8"&&(I=this.toHex8String()),V==="name"&&(I=this.toName()),V==="hsl"&&(I=this.toHslString()),V==="hsv"&&(I=this.toHsvString()),I||this.toHexString())},clone:function(){return l(this.toString())},_applyModification:function(V,re){var I=V.apply(null,[this].concat([].slice.call(re)));return this._r=I._r,this._g=I._g,this._b=I._b,this.setAlpha(I._a),this},lighten:function(){return this._applyModification(B,arguments)},brighten:function(){return this._applyModification(H,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(C,arguments)},saturate:function(){return this._applyModification(h,arguments)},greyscale:function(){return this._applyModification(D,arguments)},spin:function(){return this._applyModification(c,arguments)},_applyCombination:function(V,re){return V.apply(null,[this].concat([].slice.call(re)))},analogous:function(){return this._applyCombination(k,arguments)},complement:function(){return this._applyCombination(o,arguments)},monochromatic:function(){return this._applyCombination(b,arguments)},splitcomplement:function(){return this._applyCombination(_,arguments)},triad:function(){return this._applyCombination(n,arguments)},tetrad:function(){return this._applyCombination(F,arguments)}},l.fromRatio=function(V,re){if(typeof V=="object"){var I={};for(var q in V)V.hasOwnProperty(q)&&(q==="a"?I[q]=V[q]:I[q]=oe(V[q]));V=I}return l(V,re)};function i(V){var re={r:0,g:0,b:0},I=1,q=null,fe=null,z=null,A=!1,S=!1;return typeof V=="string"&&(V=ae(V)),typeof V=="object"&&(se(V.r)&&se(V.g)&&se(V.b)?(re=d(V.r,V.g,V.b),A=!0,S=String(V.r).substr(-1)==="%"?"prgb":"rgb"):se(V.h)&&se(V.s)&&se(V.v)?(q=oe(V.s),fe=oe(V.v),re=T(V.h,q,fe),A=!0,S="hsv"):se(V.h)&&se(V.s)&&se(V.l)&&(q=oe(V.s),z=oe(V.l),re=E(V.h,q,z),A=!0,S="hsl"),V.hasOwnProperty("a")&&(I=V.a)),I=Q(I),{ok:A,format:V.format||S,r:r(255,e(re.r,0)),g:r(255,e(re.g,0)),b:r(255,e(re.b,0)),a:I}}function d(V,re,I){return{r:G(V,255)*255,g:G(re,255)*255,b:G(I,255)*255}}function g(V,re,I){V=G(V,255),re=G(re,255),I=G(I,255);var q=e(V,re,I),fe=r(V,re,I),z,A,S=(q+fe)/2;if(q==fe)z=A=0;else{var K=q-fe;A=S>.5?K/(2-q-fe):K/(q+fe);switch(q){case V:z=(re-I)/K+(re1&&(he-=1),he<1/6?ee+(de-ee)*6*he:he<1/2?de:he<2/3?ee+(de-ee)*(2/3-he)*6:ee}if(re===0)q=fe=z=I;else{var S=I<.5?I*(1+re):I+re-I*re,K=2*I-S;q=A(K,S,V+1/3),fe=A(K,S,V),z=A(K,S,V-1/3)}return{r:q*255,g:fe*255,b:z*255}}function y(V,re,I){V=G(V,255),re=G(re,255),I=G(I,255);var q=e(V,re,I),fe=r(V,re,I),z,A,S=q,K=q-fe;if(A=q===0?0:K/q,q==fe)z=0;else{switch(q){case V:z=(re-I)/K+(re>1)+720)%360;--re;)q.h=(q.h+fe)%360,z.push(l(q));return z}function b(V,re){re=re||6;for(var I=l(V).toHsv(),q=I.h,fe=I.s,z=I.v,A=[],S=1/re;re--;)A.push(l({h:q,s:fe,v:z})),z=(z+S)%1;return A}l.mix=function(V,re,I){I=I===0?0:I||50;var q=l(V).toRgb(),fe=l(re).toRgb(),z=I/100,A={r:(fe.r-q.r)*z+q.r,g:(fe.g-q.g)*z+q.g,b:(fe.b-q.b)*z+q.b,a:(fe.a-q.a)*z+q.a};return l(A)},l.readability=function(V,re){var I=l(V),q=l(re);return(f.max(I.getLuminance(),q.getLuminance())+.05)/(f.min(I.getLuminance(),q.getLuminance())+.05)},l.isReadable=function(V,re,I){var q=l.readability(V,re),fe,z;z=!1,fe=ve(I);switch(fe.level+fe.size){case"AAsmall":case"AAAlarge":z=q>=4.5;break;case"AAlarge":z=q>=3;break;case"AAAsmall":z=q>=7;break}return z},l.mostReadable=function(V,re,I){var q=null,fe=0,z,A,S,K;I=I||{},A=I.includeFallbackColors,S=I.level,K=I.size;for(var ee=0;eefe&&(fe=z,q=l(re[ee]));return l.isReadable(V,q,{level:S,size:K})||!A?q:(I.includeFallbackColors=!1,l.mostReadable(V,["#fff","#000"],I))};var R=l.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},M=l.hexNames=j(R);function j(V){var re={};for(var I in V)V.hasOwnProperty(I)&&(re[V[I]]=I);return re}function Q(V){return V=parseFloat(V),(isNaN(V)||V<0||V>1)&&(V=1),V}function G(V,re){P(V)&&(V="100%");var I=Y(V);return V=r(re,e(0,parseFloat(V))),I&&(V=parseInt(V*re,10)/100),f.abs(V-re)<1e-6?1:V%re/parseFloat(re)}function ne(V){return r(1,e(0,V))}function J(V){return parseInt(V,16)}function P(V){return typeof V=="string"&&V.indexOf(".")!=-1&&parseFloat(V)===1}function Y(V){return typeof V=="string"&&V.indexOf("%")!=-1}function W(V){return V.length==1?"0"+V:""+V}function oe(V){return V<=1&&(V=V*100+"%"),V}function $(V){return f.round(parseFloat(V)*255).toString(16)}function X(V){return J(V)/255}var Z=function(){var V="[-\\+]?\\d+%?",re="[-\\+]?\\d*\\.\\d+%?",I="(?:"+re+")|(?:"+V+")",q="[\\s|\\(]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")\\s*\\)?",fe="[\\s|\\(]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")\\s*\\)?";return{CSS_UNIT:new RegExp(I),rgb:new RegExp("rgb"+q),rgba:new RegExp("rgba"+fe),hsl:new RegExp("hsl"+q),hsla:new RegExp("hsla"+fe),hsv:new RegExp("hsv"+q),hsva:new RegExp("hsva"+fe),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function se(V){return!!Z.CSS_UNIT.exec(V)}function ae(V){V=V.replace(m,"").replace(v,"").toLowerCase();var re=!1;if(R[V])V=R[V],re=!0;else if(V=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var I;return(I=Z.rgb.exec(V))?{r:I[1],g:I[2],b:I[3]}:(I=Z.rgba.exec(V))?{r:I[1],g:I[2],b:I[3],a:I[4]}:(I=Z.hsl.exec(V))?{h:I[1],s:I[2],l:I[3]}:(I=Z.hsla.exec(V))?{h:I[1],s:I[2],l:I[3],a:I[4]}:(I=Z.hsv.exec(V))?{h:I[1],s:I[2],v:I[3]}:(I=Z.hsva.exec(V))?{h:I[1],s:I[2],v:I[3],a:I[4]}:(I=Z.hex8.exec(V))?{r:J(I[1]),g:J(I[2]),b:J(I[3]),a:X(I[4]),format:re?"name":"hex8"}:(I=Z.hex6.exec(V))?{r:J(I[1]),g:J(I[2]),b:J(I[3]),format:re?"name":"hex"}:(I=Z.hex4.exec(V))?{r:J(I[1]+""+I[1]),g:J(I[2]+""+I[2]),b:J(I[3]+""+I[3]),a:X(I[4]+""+I[4]),format:re?"name":"hex8"}:(I=Z.hex3.exec(V))?{r:J(I[1]+""+I[1]),g:J(I[2]+""+I[2]),b:J(I[3]+""+I[3]),format:re?"name":"hex"}:!1}function ve(V){var re,I;return V=V||{level:"AA",size:"small"},re=(V.level||"AA").toUpperCase(),I=(V.size||"small").toLowerCase(),re!=="AA"&&re!=="AAA"&&(re="AA"),I!=="small"&&I!=="large"&&(I="small"),{level:re,size:I}}ie.exports?ie.exports=l:!(O=function(){return l}.call(x,t,x,ie),O!==void 0&&(ie.exports=O))})(Math)},aKvl:function(ie,x,t){var O=t("Sj9i"),f=O.quadraticProjectPoint;function m(v,u,a,r,e,s,l,i,d){if(l===0)return!1;var g=l;if(d>u+g&&d>r+g&&d>s+g||dv+g&&i>a+g&&i>e+g||i1&&arguments[1]!==void 0?arguments[1]:!1,Z=$.getAttribute("id")||$.getAttribute("data-reactid")||$.getAttribute("name");if(X&&R[Z])return R[Z];var se=window.getComputedStyle($),ae=se.getPropertyValue("box-sizing")||se.getPropertyValue("-moz-box-sizing")||se.getPropertyValue("-webkit-box-sizing"),ve=parseFloat(se.getPropertyValue("padding-bottom"))+parseFloat(se.getPropertyValue("padding-top")),V=parseFloat(se.getPropertyValue("border-bottom-width"))+parseFloat(se.getPropertyValue("border-top-width")),re=b.map(function(q){return"".concat(q,":").concat(se.getPropertyValue(q))}).join(";"),I={sizingStyle:re,paddingSize:ve,borderSize:V,boxSizing:ae};return X&&Z&&(R[Z]=I),I}function Q($){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,se=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;M||(M=document.createElement("textarea"),M.setAttribute("tab-index","-1"),M.setAttribute("aria-hidden","true"),document.body.appendChild(M)),$.getAttribute("wrap")?M.setAttribute("wrap",$.getAttribute("wrap")):M.removeAttribute("wrap");var ae=j($,X),ve=ae.paddingSize,V=ae.borderSize,re=ae.boxSizing,I=ae.sizingStyle;M.setAttribute("style","".concat(I,";").concat(k)),M.value=$.value||$.placeholder||"";var q=Number.MIN_SAFE_INTEGER,fe=Number.MAX_SAFE_INTEGER,z=M.scrollHeight,A;if(re==="border-box"?z+=V:re==="content-box"&&(z-=ve),Z!==null||se!==null){M.value=" ";var S=M.scrollHeight-ve;Z!==null&&(q=S*Z,re==="border-box"&&(q=q+ve+V),z=Math.max(q,z)),se!==null&&(fe=S*se,re==="border-box"&&(fe=fe+ve+V),A=z>fe?"":"hidden",z=Math.min(fe,z))}return{height:z,minHeight:q,maxHeight:fe,overflowY:A,resize:"none"}}var G=t("Gytx"),ne=t.n(G),J;(function($){$[$.NONE=0]="NONE",$[$.RESIZING=1]="RESIZING",$[$.RESIZED=2]="RESIZED"})(J||(J={}));var P=function($){Object(v.a)(Z,$);var X=Object(u.a)(Z);function Z(se){var ae;return Object(f.a)(this,Z),ae=X.call(this,se),ae.nextFrameActionId=void 0,ae.resizeFrameId=void 0,ae.textArea=void 0,ae.saveTextArea=function(ve){ae.textArea=ve},ae.handleResize=function(ve){var V=ae.state.resizeStatus,re=ae.props,I=re.autoSize,q=re.onResize;if(V!==J.NONE)return;typeof q=="function"&&q(ve),I&&ae.resizeOnNextFrame()},ae.resizeOnNextFrame=function(){cancelAnimationFrame(ae.nextFrameActionId),ae.nextFrameActionId=requestAnimationFrame(ae.resizeTextarea)},ae.resizeTextarea=function(){var ve=ae.props.autoSize;if(!ve||!ae.textArea)return;var V=ve.minRows,re=ve.maxRows,I=Q(ae.textArea,!1,V,re);ae.setState({textareaStyles:I,resizeStatus:J.RESIZING},function(){cancelAnimationFrame(ae.resizeFrameId),ae.resizeFrameId=requestAnimationFrame(function(){ae.setState({resizeStatus:J.RESIZED},function(){ae.resizeFrameId=requestAnimationFrame(function(){ae.setState({resizeStatus:J.NONE}),ae.fixFirefoxAutoScroll()})})})})},ae.renderTextArea=function(){var ve=ae.props,V=ve.prefixCls,re=V===void 0?"rc-textarea":V,I=ve.autoSize,q=ve.onResize,fe=ve.className,z=ve.disabled,A=ae.state,S=A.textareaStyles,K=A.resizeStatus,ee=Object(n.a)(ae.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),de=_()(re,fe,Object(e.a)({},"".concat(re,"-disabled"),z));"value"in ee&&(ee.value=ee.value||"");var he=Object(r.a)(Object(r.a)(Object(r.a)({},ae.props.style),S),K===J.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return a.createElement(o,{onResize:ae.handleResize,disabled:!(I||q)},a.createElement("textarea",Object(O.a)({},ee,{className:de,style:he,ref:ae.saveTextArea})))},ae.state={textareaStyles:{},resizeStatus:J.NONE},ae}return Object(m.a)(Z,[{key:"componentDidUpdate",value:function(ae){(ae.value!==this.props.value||!ne()(ae.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var ae=this.textArea.selectionStart,ve=this.textArea.selectionEnd;this.textArea.setSelectionRange(ae,ve)}}catch(V){}}},{key:"render",value:function(){return this.renderTextArea()}}]),Z}(a.Component),Y=P,W=function($){Object(v.a)(Z,$);var X=Object(u.a)(Z);function Z(se){var ae;Object(f.a)(this,Z),ae=X.call(this,se),ae.resizableTextArea=void 0,ae.focus=function(){ae.resizableTextArea.textArea.focus()},ae.saveTextArea=function(V){ae.resizableTextArea=V},ae.handleChange=function(V){var re=ae.props.onChange;ae.setValue(V.target.value,function(){ae.resizableTextArea.resizeTextarea()}),re&&re(V)},ae.handleKeyDown=function(V){var re=ae.props,I=re.onPressEnter,q=re.onKeyDown;V.keyCode===13&&I&&I(V),q&&q(V)};var ve=typeof se.value=="undefined"||se.value===null?se.defaultValue:se.value;return ae.state={value:ve},ae}return Object(m.a)(Z,[{key:"setValue",value:function(ae,ve){"value"in this.props||this.setState({value:ae},ve)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return a.createElement(Y,Object(O.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(ae){return"value"in ae?{value:ae.value}:null}}]),Z}(a.Component),oe=x.default=W},YH21:function(ie,x,t){var O=t("H6uX");x.Dispatcher=O;var f=t("ItGF"),m=t("Ze12"),v=m.isCanvasEl,u=m.transformCoordWithViewport,a=typeof window!="undefined"&&!!window.addEventListener,r=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,e=[];function s(L,p,C,h){return C=C||{},h||!f.canvasSupported?l(L,p,C):f.browser.firefox&&p.layerX!=null&&p.layerX!==p.offsetX?(C.zrX=p.layerX,C.zrY=p.layerY):p.offsetX!=null?(C.zrX=p.offsetX,C.zrY=p.offsetY):l(L,p,C),C}function l(L,p,C){if(f.domSupported&&L.getBoundingClientRect){var h=p.clientX,T=p.clientY;if(v(L)){var B=L.getBoundingClientRect();C.zrX=h-B.left,C.zrY=T-B.top;return}else if(u(e,L,h,T)){C.zrX=e[0],C.zrY=e[1];return}}C.zrX=C.zrY=0}function i(L){return L||window.event}function d(L,p,C){if(p=i(p),p.zrX!=null)return p;var h=p.type,T=h&&h.indexOf("touch")>=0;if(!T)s(L,p,p,C),p.zrDelta=p.wheelDelta?p.wheelDelta/120:-(p.detail||0)/3;else{var B=h!=="touchend"?p.targetTouches[0]:p.changedTouches[0];B&&s(L,B,p,C)}var H=p.button;return p.which==null&&H!==void 0&&r.test(p.type)&&(p.which=H&1?1:H&2?3:H&4?2:0),p}function g(L,p,C,h){a?L.addEventListener(p,C,h):L.attachEvent("on"+p,C)}function E(L,p,C,h){a?L.removeEventListener(p,C,h):L.detachEvent("on"+p,C)}var y=a?function(L){L.preventDefault(),L.stopPropagation(),L.cancelBubble=!0}:function(L){L.returnValue=!1,L.cancelBubble=!0};function D(L){return L.which===2||L.which===3}function N(L){return L.which>1}x.clientToLocal=s,x.getNativeEvent=i,x.normalizeEvent=d,x.addEventListener=g,x.removeEventListener=E,x.stop=y,x.isMiddleOrRightButtonOnMouseUpDown=D,x.notLeftMouse=N},YgsL:function(ie,x,t){var O=t("QBsz"),f=O.distance;function m(u,a,r,e,s,l,i){var d=(r-u)*.5,g=(e-a)*.5;return(2*(a-r)+d+g)*i+(-3*(a-r)-2*d-g)*l+d*s+a}function v(u,a){for(var r=u.length,e=[],s=0,l=1;lr-2?r-1:g+1],L=u[g>r-3?r-1:g+2]);var p=E*E,C=E*p;e.push([m(y[0],D[0],N[0],L[0],E,p,C),m(y[1],D[1],N[1],L[1],E,p,C)])}return e}ie.exports=v},Z92M:function(ie,x){ie.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}},Ze12:function(ie,x,t){var O=t("ItGF"),f=t("hOwI"),m=f.buildTransformer,v="___zrEVENTSAVED",u=[];function a(i,d,g,E,y){return r(u,d,E,y,!0)&&r(i,g,u[0],u[1])}function r(i,d,g,E,y){if(d.getBoundingClientRect&&O.domSupported&&!l(d)){var D=d[v]||(d[v]={}),N=e(d,D),L=s(N,D,y);if(L)return L(i,g,E),!0}return!1}function e(i,d){var g=d.markers;if(g)return g;g=d.markers=[];for(var E=["left","right"],y=["top","bottom"],D=0;D<4;D++){var N=document.createElement("div"),L=N.style,p=D%2,C=(D>>1)%2;L.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",E[p]+":0",y[C]+":0",E[1-p]+":auto",y[1-C]+":auto",""].join("!important;"),i.appendChild(N),g.push(N)}return g}function s(i,d,g){for(var E=g?"invTrans":"trans",y=d[E],D=d.srcCoords,N=!0,L=[],p=[],C=0;C<4;C++){var h=i[C].getBoundingClientRect(),T=2*C,B=h.left,H=h.top;L.push(B,H),N=N&&D&&B===D[T]&&H===D[T+1],p.push(i[C].offsetLeft,i[C].offsetTop)}return N&&y?y:(d.srcCoords=L,d[E]=g?m(p,L):m(L,p))}function l(i){return i.nodeName.toUpperCase()==="CANVAS"}x.transformLocalCoord=a,x.transformCoordWithViewport=r,x.isCanvasEl=l},ZpRC:function(ie,x,t){"use strict";function O(i){return typeof i=="object"&&i!=null&&i.nodeType===1}function f(i,d){return(!d||i!=="hidden")&&i!=="visible"&&i!=="clip"}function m(i,d){if(i.clientHeightd||D>i&&N=d&&L>=g?D-i-E:N>d&&Lg?N-d+y:0}var u=function(i,d){var g=window,E=d.scrollMode,y=d.block,D=d.inline,N=d.boundary,L=d.skipOverflowHiddenElements,p=typeof N=="function"?N:function(S){return S!==N};if(!O(i))throw new TypeError("Invalid target");for(var C=document.scrollingElement||document.documentElement,h=[],T=i;O(T)&&p(T);){if((T=T.parentElement)===C){h.push(T);break}T!=null&&T===document.body&&m(T)&&!m(document.documentElement)||T!=null&&m(T,L)&&h.push(T)}for(var B=g.visualViewport?g.visualViewport.width:innerWidth,H=g.visualViewport?g.visualViewport.height:innerHeight,w=window.scrollX||pageXOffset,c=window.scrollY||pageYOffset,o=i.getBoundingClientRect(),n=o.height,F=o.width,_=o.top,k=o.right,b=o.bottom,R=o.left,M=y==="start"||y==="nearest"?_:y==="end"?b:_+n/2,j=D==="center"?R+F/2:D==="end"?k:R,Q=[],G=0;G=0&&R>=0&&b<=H&&k<=B&&_>=W&&b<=$&&R>=X&&k<=oe)return Q;var Z=getComputedStyle(ne),se=parseInt(Z.borderLeftWidth,10),ae=parseInt(Z.borderTopWidth,10),ve=parseInt(Z.borderRightWidth,10),V=parseInt(Z.borderBottomWidth,10),re=0,I=0,q="offsetWidth"in ne?ne.offsetWidth-ne.clientWidth-se-ve:0,fe="offsetHeight"in ne?ne.offsetHeight-ne.clientHeight-ae-V:0;if(C===ne)re=y==="start"?M:y==="end"?M-H:y==="nearest"?v(c,c+H,H,ae,V,c+M,c+M+n,n):M-H/2,I=D==="start"?j:D==="center"?j-B/2:D==="end"?j-B:v(w,w+B,B,se,ve,w+j,w+j+F,F),re=Math.max(0,re+c),I=Math.max(0,I+w);else{re=y==="start"?M-W-ae:y==="end"?M-$+V+fe:y==="nearest"?v(W,$,P,ae,V+fe,M,M+n,n):M-(W+P/2)+fe/2,I=D==="start"?j-X-se:D==="center"?j-(X+Y/2)+q/2:D==="end"?j-oe+ve+q:v(X,oe,Y,se,ve+q,j,j+F,F);var z=ne.scrollLeft,A=ne.scrollTop;M+=A-(re=Math.max(0,Math.min(A+re,ne.scrollHeight-P+fe))),j+=z-(I=Math.max(0,Math.min(z+I,ne.scrollWidth-Y+q)))}Q.push({el:ne,top:re,left:I})}return Q};function a(i){return i===Object(i)&&Object.keys(i).length!==0}function r(i,d){d===void 0&&(d="auto");var g="scrollBehavior"in document.body.style;i.forEach(function(E){var y=E.el,D=E.top,N=E.left;y.scroll&&g?y.scroll({top:D,left:N,behavior:d}):(y.scrollTop=D,y.scrollLeft=N)})}function e(i){return i===!1?{block:"end",inline:"nearest"}:a(i)?i:{block:"start",inline:"nearest"}}function s(i,d){var g=!i.ownerDocument.documentElement.contains(i);if(a(d)&&typeof d.behavior=="function")return d.behavior(g?[]:u(i,d));if(g)return;var E=e(d);return r(u(i,E),E.behavior)}var l=x.a=s},Zss7:function(ie,x,t){var O;(function(f){var m=/^\s+/,v=/\s+$/,u=0,a=f.round,r=f.min,e=f.max,s=f.random;function l(V,re){if(V=V||"",re=re||{},V instanceof l)return V;if(!(this instanceof l))return new l(V,re);var I=i(V);this._originalInput=V,this._r=I.r,this._g=I.g,this._b=I.b,this._a=I.a,this._roundA=a(100*this._a)/100,this._format=re.format||I.format,this._gradientType=re.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=I.ok,this._tc_id=u++}l.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var V=this.toRgb();return(V.r*299+V.g*587+V.b*114)/1e3},getLuminance:function(){var V=this.toRgb(),re,I,q,fe,z,A;return re=V.r/255,I=V.g/255,q=V.b/255,re<=.03928?fe=re/12.92:fe=f.pow((re+.055)/1.055,2.4),I<=.03928?z=I/12.92:z=f.pow((I+.055)/1.055,2.4),q<=.03928?A=q/12.92:A=f.pow((q+.055)/1.055,2.4),.2126*fe+.7152*z+.0722*A},setAlpha:function(V){return this._a=Q(V),this._roundA=a(100*this._a)/100,this},toHsv:function(){var V=y(this._r,this._g,this._b);return{h:V.h*360,s:V.s,v:V.v,a:this._a}},toHsvString:function(){var V=y(this._r,this._g,this._b),re=a(V.h*360),I=a(V.s*100),q=a(V.v*100);return this._a==1?"hsv("+re+", "+I+"%, "+q+"%)":"hsva("+re+", "+I+"%, "+q+"%, "+this._roundA+")"},toHsl:function(){var V=g(this._r,this._g,this._b);return{h:V.h*360,s:V.s,l:V.l,a:this._a}},toHslString:function(){var V=g(this._r,this._g,this._b),re=a(V.h*360),I=a(V.s*100),q=a(V.l*100);return this._a==1?"hsl("+re+", "+I+"%, "+q+"%)":"hsla("+re+", "+I+"%, "+q+"%, "+this._roundA+")"},toHex:function(V){return N(this._r,this._g,this._b,V)},toHexString:function(V){return"#"+this.toHex(V)},toHex8:function(V){return L(this._r,this._g,this._b,this._a,V)},toHex8String:function(V){return"#"+this.toHex8(V)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(G(this._r,255)*100)+"%",g:a(G(this._g,255)*100)+"%",b:a(G(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(G(this._r,255)*100)+"%, "+a(G(this._g,255)*100)+"%, "+a(G(this._b,255)*100)+"%)":"rgba("+a(G(this._r,255)*100)+"%, "+a(G(this._g,255)*100)+"%, "+a(G(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:M[N(this._r,this._g,this._b,!0)]||!1},toFilter:function(V){var re="#"+p(this._r,this._g,this._b,this._a),I=re,q=this._gradientType?"GradientType = 1, ":"";if(V){var fe=l(V);I="#"+p(fe._r,fe._g,fe._b,fe._a)}return"progid:DXImageTransform.Microsoft.gradient("+q+"startColorstr="+re+",endColorstr="+I+")"},toString:function(V){var re=!!V;V=V||this._format;var I=!1,q=this._a<1&&this._a>=0,fe=!re&&q&&(V==="hex"||V==="hex6"||V==="hex3"||V==="hex4"||V==="hex8"||V==="name");return fe?V==="name"&&this._a===0?this.toName():this.toRgbString():(V==="rgb"&&(I=this.toRgbString()),V==="prgb"&&(I=this.toPercentageRgbString()),(V==="hex"||V==="hex6")&&(I=this.toHexString()),V==="hex3"&&(I=this.toHexString(!0)),V==="hex4"&&(I=this.toHex8String(!0)),V==="hex8"&&(I=this.toHex8String()),V==="name"&&(I=this.toName()),V==="hsl"&&(I=this.toHslString()),V==="hsv"&&(I=this.toHsvString()),I||this.toHexString())},clone:function(){return l(this.toString())},_applyModification:function(V,re){var I=V.apply(null,[this].concat([].slice.call(re)));return this._r=I._r,this._g=I._g,this._b=I._b,this.setAlpha(I._a),this},lighten:function(){return this._applyModification(B,arguments)},brighten:function(){return this._applyModification(H,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(C,arguments)},saturate:function(){return this._applyModification(h,arguments)},greyscale:function(){return this._applyModification(T,arguments)},spin:function(){return this._applyModification(c,arguments)},_applyCombination:function(V,re){return V.apply(null,[this].concat([].slice.call(re)))},analogous:function(){return this._applyCombination(k,arguments)},complement:function(){return this._applyCombination(o,arguments)},monochromatic:function(){return this._applyCombination(b,arguments)},splitcomplement:function(){return this._applyCombination(_,arguments)},triad:function(){return this._applyCombination(n,arguments)},tetrad:function(){return this._applyCombination(F,arguments)}},l.fromRatio=function(V,re){if(typeof V=="object"){var I={};for(var q in V)V.hasOwnProperty(q)&&(q==="a"?I[q]=V[q]:I[q]=oe(V[q]));V=I}return l(V,re)};function i(V){var re={r:0,g:0,b:0},I=1,q=null,fe=null,z=null,A=!1,S=!1;return typeof V=="string"&&(V=ae(V)),typeof V=="object"&&(se(V.r)&&se(V.g)&&se(V.b)?(re=d(V.r,V.g,V.b),A=!0,S=String(V.r).substr(-1)==="%"?"prgb":"rgb"):se(V.h)&&se(V.s)&&se(V.v)?(q=oe(V.s),fe=oe(V.v),re=D(V.h,q,fe),A=!0,S="hsv"):se(V.h)&&se(V.s)&&se(V.l)&&(q=oe(V.s),z=oe(V.l),re=E(V.h,q,z),A=!0,S="hsl"),V.hasOwnProperty("a")&&(I=V.a)),I=Q(I),{ok:A,format:V.format||S,r:r(255,e(re.r,0)),g:r(255,e(re.g,0)),b:r(255,e(re.b,0)),a:I}}function d(V,re,I){return{r:G(V,255)*255,g:G(re,255)*255,b:G(I,255)*255}}function g(V,re,I){V=G(V,255),re=G(re,255),I=G(I,255);var q=e(V,re,I),fe=r(V,re,I),z,A,S=(q+fe)/2;if(q==fe)z=A=0;else{var K=q-fe;A=S>.5?K/(2-q-fe):K/(q+fe);switch(q){case V:z=(re-I)/K+(re1&&(he-=1),he<1/6?ee+(de-ee)*6*he:he<1/2?de:he<2/3?ee+(de-ee)*(2/3-he)*6:ee}if(re===0)q=fe=z=I;else{var S=I<.5?I*(1+re):I+re-I*re,K=2*I-S;q=A(K,S,V+1/3),fe=A(K,S,V),z=A(K,S,V-1/3)}return{r:q*255,g:fe*255,b:z*255}}function y(V,re,I){V=G(V,255),re=G(re,255),I=G(I,255);var q=e(V,re,I),fe=r(V,re,I),z,A,S=q,K=q-fe;if(A=q===0?0:K/q,q==fe)z=0;else{switch(q){case V:z=(re-I)/K+(re>1)+720)%360;--re;)q.h=(q.h+fe)%360,z.push(l(q));return z}function b(V,re){re=re||6;for(var I=l(V).toHsv(),q=I.h,fe=I.s,z=I.v,A=[],S=1/re;re--;)A.push(l({h:q,s:fe,v:z})),z=(z+S)%1;return A}l.mix=function(V,re,I){I=I===0?0:I||50;var q=l(V).toRgb(),fe=l(re).toRgb(),z=I/100,A={r:(fe.r-q.r)*z+q.r,g:(fe.g-q.g)*z+q.g,b:(fe.b-q.b)*z+q.b,a:(fe.a-q.a)*z+q.a};return l(A)},l.readability=function(V,re){var I=l(V),q=l(re);return(f.max(I.getLuminance(),q.getLuminance())+.05)/(f.min(I.getLuminance(),q.getLuminance())+.05)},l.isReadable=function(V,re,I){var q=l.readability(V,re),fe,z;z=!1,fe=ve(I);switch(fe.level+fe.size){case"AAsmall":case"AAAlarge":z=q>=4.5;break;case"AAlarge":z=q>=3;break;case"AAAsmall":z=q>=7;break}return z},l.mostReadable=function(V,re,I){var q=null,fe=0,z,A,S,K;I=I||{},A=I.includeFallbackColors,S=I.level,K=I.size;for(var ee=0;eefe&&(fe=z,q=l(re[ee]));return l.isReadable(V,q,{level:S,size:K})||!A?q:(I.includeFallbackColors=!1,l.mostReadable(V,["#fff","#000"],I))};var R=l.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},M=l.hexNames=j(R);function j(V){var re={};for(var I in V)V.hasOwnProperty(I)&&(re[V[I]]=I);return re}function Q(V){return V=parseFloat(V),(isNaN(V)||V<0||V>1)&&(V=1),V}function G(V,re){P(V)&&(V="100%");var I=Y(V);return V=r(re,e(0,parseFloat(V))),I&&(V=parseInt(V*re,10)/100),f.abs(V-re)<1e-6?1:V%re/parseFloat(re)}function ne(V){return r(1,e(0,V))}function J(V){return parseInt(V,16)}function P(V){return typeof V=="string"&&V.indexOf(".")!=-1&&parseFloat(V)===1}function Y(V){return typeof V=="string"&&V.indexOf("%")!=-1}function W(V){return V.length==1?"0"+V:""+V}function oe(V){return V<=1&&(V=V*100+"%"),V}function $(V){return f.round(parseFloat(V)*255).toString(16)}function X(V){return J(V)/255}var Z=function(){var V="[-\\+]?\\d+%?",re="[-\\+]?\\d*\\.\\d+%?",I="(?:"+re+")|(?:"+V+")",q="[\\s|\\(]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")\\s*\\)?",fe="[\\s|\\(]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")\\s*\\)?";return{CSS_UNIT:new RegExp(I),rgb:new RegExp("rgb"+q),rgba:new RegExp("rgba"+fe),hsl:new RegExp("hsl"+q),hsla:new RegExp("hsla"+fe),hsv:new RegExp("hsv"+q),hsva:new RegExp("hsva"+fe),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function se(V){return!!Z.CSS_UNIT.exec(V)}function ae(V){V=V.replace(m,"").replace(v,"").toLowerCase();var re=!1;if(R[V])V=R[V],re=!0;else if(V=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var I;return(I=Z.rgb.exec(V))?{r:I[1],g:I[2],b:I[3]}:(I=Z.rgba.exec(V))?{r:I[1],g:I[2],b:I[3],a:I[4]}:(I=Z.hsl.exec(V))?{h:I[1],s:I[2],l:I[3]}:(I=Z.hsla.exec(V))?{h:I[1],s:I[2],l:I[3],a:I[4]}:(I=Z.hsv.exec(V))?{h:I[1],s:I[2],v:I[3]}:(I=Z.hsva.exec(V))?{h:I[1],s:I[2],v:I[3],a:I[4]}:(I=Z.hex8.exec(V))?{r:J(I[1]),g:J(I[2]),b:J(I[3]),a:X(I[4]),format:re?"name":"hex8"}:(I=Z.hex6.exec(V))?{r:J(I[1]),g:J(I[2]),b:J(I[3]),format:re?"name":"hex"}:(I=Z.hex4.exec(V))?{r:J(I[1]+""+I[1]),g:J(I[2]+""+I[2]),b:J(I[3]+""+I[3]),a:X(I[4]+""+I[4]),format:re?"name":"hex8"}:(I=Z.hex3.exec(V))?{r:J(I[1]+""+I[1]),g:J(I[2]+""+I[2]),b:J(I[3]+""+I[3]),format:re?"name":"hex"}:!1}function ve(V){var re,I;return V=V||{level:"AA",size:"small"},re=(V.level||"AA").toUpperCase(),I=(V.size||"small").toLowerCase(),re!=="AA"&&re!=="AAA"&&(re="AA"),I!=="small"&&I!=="large"&&(I="small"),{level:re,size:I}}ie.exports?ie.exports=l:!(O=function(){return l}.call(x,t,x,ie),O!==void 0&&(ie.exports=O))})(Math)},aKvl:function(ie,x,t){var O=t("Sj9i"),f=O.quadraticProjectPoint;function m(v,u,a,r,e,s,l,i,d){if(l===0)return!1;var g=l;if(d>u+g&&d>r+g&&d>s+g||dv+g&&i>a+g&&i>e+g||i>>8&255)*192+(a&255),v.put(a,13)}},ie.exp * * LICENSE * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt -*/var s=!f.canvasSupported,l={canvas:a},i={},d="4.3.1";function g(p,C){var h=new L(O(),p,C);return i[h.id]=h,h}function E(p){if(p)p.dispose();else{for(var C in i)i.hasOwnProperty(C)&&i[C].dispose();i={}}return this}function y(p){return i[p]}function T(p,C){l[p]=C}function N(p){delete i[p]}var L=function(p,C,h){h=h||{},this.dom=C,this.id=p;var D=this,B=new u,H=h.renderer;if(s){if(!l.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");H="vml"}else(!H||!l[H])&&(H="canvas");var w=new l[H](C,B,h,p);this.storage=B,this.painter=w;var c=!f.node&&!f.worker?new e(w.getViewportRoot(),w.root):null;this.handler=new v(B,w,c,w.root),this.animation=new r({stage:{update:m.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var o=B.delFromStorage,n=B.addToStorage;B.delFromStorage=function(F){o.call(B,F),F&&F.removeSelfFromZr(D)},B.addToStorage=function(F){n.call(B,F),F.addSelfToZr(D)}};L.prototype={constructor:L,getId:function(){return this.id},add:function(p){this.storage.addRoot(p),this._needsRefresh=!0},remove:function(p){this.storage.delRoot(p),this._needsRefresh=!0},configLayer:function(p,C){this.painter.configLayer&&this.painter.configLayer(p,C),this._needsRefresh=!0},setBackgroundColor:function(p){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(p),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh(),this._needsRefresh=this._needsRefreshHover=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var p;this._needsRefresh&&(p=!0,this.refreshImmediately()),this._needsRefreshHover&&(p=!0,this.refreshHoverImmediately()),p&&this.trigger("rendered")},addHover:function(p,C){if(this.painter.addHover){var h=this.painter.addHover(p,C);return this.refreshHover(),h}},removeHover:function(p){this.painter.removeHover&&(this.painter.removeHover(p),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(p){p=p||{},this.painter.resize(p.width,p.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(p,C){return this.painter.pathToImage(p,C)},setCursorStyle:function(p){this.handler.setCursorStyle(p)},findHover:function(p,C){return this.handler.findHover(p,C)},on:function(p,C,h){this.handler.on(p,C,h)},off:function(p,C){this.handler.off(p,C)},trigger:function(p,C){this.handler.trigger(p,C)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,N(this.id)}},x.version=d,x.init=g,x.dispose=E,x.getInstance=y,x.registerPainter=T},aZ40:function(ie,x,t){var O=t("Wogr"),f=O.alloc(512),m=O.alloc(256);(function(){for(var u=1,a=0;a<255;a++)f[a]=u,m[u]=a,u<<=1,u&256&&(u^=285);for(a=255;a<512;a++)f[a]=f[a-255]})(),x.log=function(u){if(u<1)throw new Error("log("+u+")");return m[u]},x.exp=function(u){return f[u]},x.mul=function(u,a){return u===0||a===0?0:f[m[u]+m[a]]}},bT9E:function(ie,x,t){"use strict";t.d(x,"a",function(){return f});var O=t("VTBJ");function f(m,v){var u=Object(O.a)({},m);return Array.isArray(v)&&v.forEach(function(a){delete u[a]}),u}},bYtY:function(ie,x){var t={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},O={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},f=Object.prototype.toString,m=Array.prototype,v=m.forEach,u=m.filter,a=m.slice,r=m.map,e=m.reduce,s={};function l(I,q){I==="createCanvas"&&(N=null),s[I]=q}function i(I){if(I==null||typeof I!="object")return I;var q=I,fe=f.call(I);if(fe==="[object Array]"){if(!se(I)){q=[];for(var z=0,A=I.length;z40)throw new Error('"version" should be in range from 1 to 40');return m*4+17},x.getSymbolTotalCodewords=function(m){return O[m]},x.getBCHDigit=function(f){for(var m=0;f!==0;)m++,f>>>=1;return m},x.setToSJISFunction=function(m){if(typeof m!="function")throw new Error('"toSJISFunc" is not a valid function.');t=m},x.isKanjiModeEnabled=function(){return typeof t!="undefined"},x.toSJIS=function(m){return t(m)}},e6BP:function(ie,x){function t(){this.buffer=[],this.length=0}t.prototype={get:function(O){var f=Math.floor(O/8);return(this.buffer[f]>>>7-O%8&1)===1},put:function(O,f){for(var m=0;m>>f-m-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(O){var f=Math.floor(this.length/8);this.buffer.length<=f&&this.buffer.push(0),O&&(this.buffer[f]|=128>>>this.length%8),this.length++}},ie.exports=t},eQOe:function(ie,x){x.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var t={N1:3,N2:3,N3:40,N4:10};x.isValid=function(m){return m!=null&&m!==""&&!isNaN(m)&&m>=0&&m<=7},x.from=function(m){return x.isValid(m)?parseInt(m,10):void 0},x.getPenaltyN1=function(m){for(var v=m.size,u=0,a=0,r=0,e=null,s=null,l=0;l=5&&(u+=t.N1+(a-5)),e=d,a=1),d=m.get(i,l),d===s?r++:(r>=5&&(u+=t.N1+(r-5)),s=d,r=1)}a>=5&&(u+=t.N1+(a-5)),r>=5&&(u+=t.N1+(r-5))}return u},x.getPenaltyN2=function(m){for(var v=m.size,u=0,a=0;a=10&&(a===1488||a===93)&&u++,r=r<<1&2047|m.get(s,e),s>=10&&(r===1488||r===93)&&u++}return u*t.N3},x.getPenaltyN4=function(m){for(var v=0,u=m.data.length,a=0;a=0&&f.bit<4},x.from=function(f,m){if(x.isValid(f))return f;try{return t(f)}catch(v){return m}}},fAei:function(ie,x,t){"use strict";t.d(x,"a",function(){return C.a});var O=t("rePB"),f=t("VTBJ"),m=t("KQm4"),v=t("1OyB"),u=t("vuIU"),a=t("Ji7U"),r=t("LK+K"),e=t("q1tI"),s=t("4IlW"),l=t("Kwbf"),i=t("TSYQ"),d=t.n(i),g=t("sboe"),E=t("OZM5"),y=t("815F"),T=t("ODXe"),N=t("Ff2n"),L=t("+nKL"),p=t("8XRh"),C=t("WaYH"),h=function(oe,$){var X=oe.className,Z=oe.style,se=oe.motion,ae=oe.motionNodes,ve=oe.motionType,V=oe.onMotionStart,re=oe.onMotionEnd,I=oe.active,q=oe.treeNodeRequiredProps,fe=Object(N.a)(oe,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),z=e.useState(!0),A=Object(T.a)(z,2),S=A[0],K=A[1],ee=e.useContext(g.a),de=ee.prefixCls,he=e.useRef(!1),Me=function(){he.current||re(),he.current=!0};return Object(e.useEffect)(function(){ae&&ve==="hide"&&S&&K(!1)},[ae]),Object(e.useEffect)(function(){return ae&&V(),function(){ae&&Me()}},[]),ae?e.createElement(p.default,Object.assign({ref:$,visible:S},se,{motionAppear:ve==="show",onAppearEnd:Me,onLeaveEnd:Me}),function(ce,be){var Ae=ce.className,ye=ce.style;return e.createElement("div",{ref:be,className:d()("".concat(de,"-treenode-motion"),Ae),style:ye},ae.map(function(ke){var Se=ke.data,Ne=Se.key,_e=Object(N.a)(Se,["key"]),$e=ke.isStart,He=ke.isEnd;delete _e.children;var nt=Object(y.f)(Ne,q);return e.createElement(C.a,Object.assign({},_e,nt,{active:I,data:ke.data,key:Ne,isStart:$e,isEnd:He}))}))}):e.createElement(C.a,Object.assign({domRef:$,className:X,style:Z},fe,{active:I}))};h.displayName="MotionTreeNode";var D=e.forwardRef(h),B=D;function H(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],$=W.length,X=oe.length;if(Math.abs($-X)!==1)return{add:!1,key:null};function Z(se,ae){var ve=new Map;se.forEach(function(re){ve.set(re,!0)});var V=ae.filter(function(re){return!ve.has(re)});return V.length===1?V[0]:null}return $ ").concat(oe);return oe}var j=function(oe,$){var X=oe.prefixCls,Z=oe.data,se=oe.selectable,ae=oe.checkable,ve=oe.expandedKeys,V=oe.selectedKeys,re=oe.checkedKeys,I=oe.loadedKeys,q=oe.loadingKeys,fe=oe.halfCheckedKeys,z=oe.keyEntities,A=oe.disabled,S=oe.dragging,K=oe.dragOverNodeKey,ee=oe.dropPosition,de=oe.motion,he=oe.height,Me=oe.itemHeight,ce=oe.virtual,be=oe.focusable,Ae=oe.activeItem,ye=oe.focused,ke=oe.tabIndex,Se=oe.onKeyDown,Ne=oe.onFocus,_e=oe.onBlur,$e=oe.onActiveChange,He=oe.onListChangeStart,nt=oe.onListChangeEnd,et=Object(N.a)(oe,["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"]),Xe=e.useRef(null);e.useImperativeHandle($,function(){return{scrollTo:function(dt){Xe.current.scrollTo(dt)}}});var st=e.useState(ve),ut=Object(T.a)(st,2),ct=ut[0],Ze=ut[1],bt=e.useState(Z),lt=Object(T.a)(bt,2),Et=lt[0],jt=lt[1],Qt=e.useState(Z),Gt=Object(T.a)(Qt,2),rn=Gt[0],ze=Gt[1],Ce=e.useState([]),Oe=Object(T.a)(Ce,2),ge=Oe[0],te=Oe[1],le=e.useState(null),we=Object(T.a)(le,2),xe=we[0],Re=we[1];function je(){jt(Z),ze(Z),te([]),Re(null),nt()}e.useEffect(function(){Ze(ve);var Fe=H(ct,ve);if(Fe.key!==null)if(Fe.add){var dt=Et.findIndex(function(Ge){var gt=Ge.data.key;return gt===Fe.key}),tt=b(w(Et,Z,Fe.key),ce,he,Me),Ct=Et.slice();Ct.splice(dt+1,0,k),ze(Ct),te(tt),Re("show")}else{var At=Z.findIndex(function(Ge){var gt=Ge.data.key;return gt===Fe.key}),Ht=b(w(Z,Et,Fe.key),ce,he,Me),en=Z.slice();en.splice(At+1,0,k),ze(en),te(Ht),Re("hide")}else Et!==Z&&(jt(Z),ze(Z))},[ve,Z]),e.useEffect(function(){S||je()},[S]);var Te=de?rn:Z,Le={expandedKeys:ve,selectedKeys:V,loadedKeys:I,loadingKeys:q,checkedKeys:re,halfCheckedKeys:fe,dragOverNodeKey:K,dropPosition:ee,keyEntities:z};return e.createElement(e.Fragment,null,ye&&Ae&&e.createElement("span",{style:c,"aria-live":"assertive"},M(Ae)),e.createElement("div",{role:"tree"},e.createElement("input",{style:c,disabled:be===!1||A,tabIndex:be!==!1?ke:null,onKeyDown:Se,onFocus:Ne,onBlur:_e,value:"",onChange:o})),e.createElement(L.a,Object.assign({},et,{data:Te,itemKey:R,height:he,fullHeight:!1,virtual:ce,itemHeight:Me,prefixCls:"".concat(X,"-list"),ref:Xe}),function(Fe){var dt=Fe.pos,tt=Fe.data,Ct=tt.key,At=Object(N.a)(tt,["key"]),Ht=Fe.isStart,en=Fe.isEnd,Ge=Object(y.e)(Ct,dt);delete At.children;var gt=Object(y.f)(Ge,Le);return e.createElement(B,Object.assign({},At,gt,{active:Ae&&Ct===Ae.data.key,pos:dt,data:Fe.data,isStart:Ht,isEnd:en,motion:de,motionNodes:Ct===n?ge:null,motionType:xe,onMotionStart:He,onMotionEnd:je,treeNodeRequiredProps:Le,onMouseMove:function(){$e(null)}}))}))},Q=e.forwardRef(j);Q.displayName="NodeList";var G=Q,ne=t("NvD2"),J=function(W){Object(a.a)($,W);var oe=Object(r.a)($);function $(){var X;return Object(v.a)(this,$),X=oe.apply(this,arguments),X.destroyed=!1,X.state={keyEntities:{},selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],dragging:!1,dragNodesKeys:[],dragOverNodeKey:null,dropPosition:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null},X.listRef=e.createRef(),X.onNodeDragStart=function(Z,se){var ae=X.state,ve=ae.expandedKeys,V=ae.keyEntities,re=X.props.onDragStart,I=se.props.eventKey;X.dragNode=se;var q=Object(E.b)(ve,I);X.setState({dragging:!0,dragNodesKeys:Object(E.g)(I,V)}),X.setExpandedKeys(q),re&&re({event:Z,node:Object(y.b)(se.props)})},X.onNodeDragEnter=function(Z,se){var ae=X.state,ve=ae.expandedKeys,V=ae.keyEntities,re=ae.dragNodesKeys,I=X.props.onDragEnter,q=se.props,fe=q.pos,z=q.eventKey;if(!X.dragNode||re.indexOf(z)!==-1)return;var A=Object(E.c)(Z,se);if(X.dragNode.props.eventKey===z&&A===0){X.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){X.setState({dragOverNodeKey:z,dropPosition:A}),X.delayedDragEnterLogic||(X.delayedDragEnterLogic={}),Object.keys(X.delayedDragEnterLogic).forEach(function(S){clearTimeout(X.delayedDragEnterLogic[S])}),X.delayedDragEnterLogic[fe]=window.setTimeout(function(){if(!X.state.dragging)return;var S=Object(m.a)(ve),K=V[z];K&&(K.children||[]).length&&(S=Object(E.a)(ve,z)),"expandedKeys"in X.props||X.setExpandedKeys(S),I&&I({event:Z,node:Object(y.b)(se.props),expandedKeys:S})},400)},0)},X.onNodeDragOver=function(Z,se){var ae=X.state.dragNodesKeys,ve=X.props.onDragOver,V=se.props.eventKey;if(ae.indexOf(V)!==-1)return;if(X.dragNode&&V===X.state.dragOverNodeKey){var re=Object(E.c)(Z,se);if(re===X.state.dropPosition)return;X.setState({dropPosition:re})}ve&&ve({event:Z,node:Object(y.b)(se.props)})},X.onNodeDragLeave=function(Z,se){var ae=X.props.onDragLeave;X.setState({dragOverNodeKey:""}),ae&&ae({event:Z,node:Object(y.b)(se.props)})},X.onNodeDragEnd=function(Z,se){var ae=X.props.onDragEnd;X.setState({dragOverNodeKey:""}),X.cleanDragState(),ae&&ae({event:Z,node:Object(y.b)(se.props)}),X.dragNode=null},X.onNodeDrop=function(Z,se){var ae=X.state,ve=ae.dragNodesKeys,V=ve===void 0?[]:ve,re=ae.dropPosition,I=X.props.onDrop,q=se.props,fe=q.eventKey,z=q.pos;if(X.setState({dragOverNodeKey:""}),X.cleanDragState(),V.indexOf(fe)!==-1){Object(l.a)(!1,"Can not drop to dragNode(include it's children node)");return}var A=Object(E.k)(z),S={event:Z,node:Object(y.b)(se.props),dragNode:X.dragNode?Object(y.b)(X.dragNode.props):null,dragNodesKeys:V.slice(),dropPosition:re+Number(A[A.length-1]),dropToGap:!1};re!==0&&(S.dropToGap=!0),I&&I(S),X.dragNode=null},X.cleanDragState=function(){var Z=X.state.dragging;Z&&X.setState({dragging:!1})},X.onNodeClick=function(Z,se){var ae=X.props.onClick;ae&&ae(Z,se)},X.onNodeDoubleClick=function(Z,se){var ae=X.props.onDoubleClick;ae&&ae(Z,se)},X.onNodeSelect=function(Z,se){var ae=X.state.selectedKeys,ve=X.state.keyEntities,V=X.props,re=V.onSelect,I=V.multiple,q=se.selected,fe=se.key,z=!q;z?I?ae=Object(E.a)(ae,fe):ae=[fe]:ae=Object(E.b)(ae,fe);var A=ae.map(function(S){var K=ve[S];return K?K.node:null}).filter(function(S){return S});X.setUncontrolledState({selectedKeys:ae}),re&&re(ae,{event:"select",selected:z,node:se,selectedNodes:A,nativeEvent:Z.nativeEvent})},X.onNodeCheck=function(Z,se,ae){var ve=X.state,V=ve.keyEntities,re=ve.checkedKeys,I=ve.halfCheckedKeys,q=X.props,fe=q.checkStrictly,z=q.onCheck,A=se.key,S,K={event:"check",node:se,checked:ae,nativeEvent:Z.nativeEvent};if(fe){var ee=ae?Object(E.a)(re,A):Object(E.b)(re,A),de=Object(E.b)(I,A);S={checked:ee,halfChecked:de},K.checkedNodes=ee.map(function(ye){return V[ye]}).filter(function(ye){return ye}).map(function(ye){return ye.node}),X.setUncontrolledState({checkedKeys:ee})}else{var he=Object(ne.a)([].concat(Object(m.a)(re),[A]),!0,V),Me=he.checkedKeys,ce=he.halfCheckedKeys;if(!ae){var be=new Set(Me);be.delete(A);var Ae=Object(ne.a)(Array.from(be),{checked:!1,halfCheckedKeys:ce},V);Me=Ae.checkedKeys,ce=Ae.halfCheckedKeys}S=Me,K.checkedNodes=[],K.checkedNodesPositions=[],K.halfCheckedKeys=ce,Me.forEach(function(ye){var ke=V[ye];if(!ke)return;var Se=ke.node,Ne=ke.pos;K.checkedNodes.push(Se),K.checkedNodesPositions.push({node:Se,pos:Ne})}),X.setUncontrolledState({checkedKeys:Me},!1,{halfCheckedKeys:ce})}z&&z(S,K)},X.onNodeLoad=function(Z){return new Promise(function(se){X.setState(function(ae){var ve=ae.loadedKeys,V=ve===void 0?[]:ve,re=ae.loadingKeys,I=re===void 0?[]:re,q=X.props,fe=q.loadData,z=q.onLoad,A=Z.key;if(!fe||V.indexOf(A)!==-1||I.indexOf(A)!==-1)return{};var S=fe(Z);return S.then(function(){var K=X.state,ee=K.loadedKeys,de=K.loadingKeys,he=Object(E.a)(ee,A),Me=Object(E.b)(de,A);z&&z(he,{event:"load",node:Z}),X.setUncontrolledState({loadedKeys:he}),X.setState({loadingKeys:Me}),se()}),{loadingKeys:Object(E.a)(I,A)}})})},X.onNodeMouseEnter=function(Z,se){var ae=X.props.onMouseEnter;ae&&ae({event:Z,node:se})},X.onNodeMouseLeave=function(Z,se){var ae=X.props.onMouseLeave;ae&&ae({event:Z,node:se})},X.onNodeContextMenu=function(Z,se){var ae=X.props.onRightClick;ae&&(Z.preventDefault(),ae({event:Z,node:se}))},X.onFocus=function(){var Z=X.props.onFocus;X.setState({focused:!0}),Z&&Z.apply(void 0,arguments)},X.onBlur=function(){var Z=X.props.onBlur;X.setState({focused:!1}),X.onActiveChange(null),Z&&Z.apply(void 0,arguments)},X.getTreeNodeRequiredProps=function(){var Z=X.state,se=Z.expandedKeys,ae=Z.selectedKeys,ve=Z.loadedKeys,V=Z.loadingKeys,re=Z.checkedKeys,I=Z.halfCheckedKeys,q=Z.dragOverNodeKey,fe=Z.dropPosition,z=Z.keyEntities;return{expandedKeys:se||[],selectedKeys:ae||[],loadedKeys:ve||[],loadingKeys:V||[],checkedKeys:re||[],halfCheckedKeys:I||[],dragOverNodeKey:q,dropPosition:fe,keyEntities:z}},X.setExpandedKeys=function(Z){var se=X.state.treeData,ae=Object(y.d)(se,Z);X.setUncontrolledState({expandedKeys:Z,flattenNodes:ae},!0)},X.onNodeExpand=function(Z,se){var ae=X.state.expandedKeys,ve=X.state.listChanging,V=X.props,re=V.onExpand,I=V.loadData,q=se.key,fe=se.expanded;if(ve)return;var z=ae.indexOf(q),A=!fe;if(Object(l.a)(fe&&z!==-1||!fe&&z===-1,"Expand state not sync with index check"),A?ae=Object(E.a)(ae,q):ae=Object(E.b)(ae,q),X.setExpandedKeys(ae),re&&re(ae,{node:se,expanded:A,nativeEvent:Z.nativeEvent}),A&&I){var S=X.onNodeLoad(se);S&&S.then(function(){var K=Object(y.d)(X.state.treeData,ae);X.setUncontrolledState({flattenNodes:K})})}},X.onListChangeStart=function(){X.setUncontrolledState({listChanging:!0})},X.onListChangeEnd=function(){setTimeout(function(){X.setUncontrolledState({listChanging:!1})})},X.onActiveChange=function(Z){var se=X.state.activeKey,ae=X.props.onActiveChange;if(se===Z)return;X.setState({activeKey:Z}),Z!==null&&X.scrollTo({key:Z}),ae&&ae(Z)},X.getActiveItem=function(){var Z=X.state,se=Z.activeKey,ae=Z.flattenNodes;return se===null?null:ae.find(function(ve){var V=ve.data.key;return V===se})||null},X.offsetActiveKey=function(Z){var se=X.state,ae=se.flattenNodes,ve=se.activeKey,V=ae.findIndex(function(q){var fe=q.data.key;return fe===ve});V===-1&&Z<0&&(V=ae.length),V=(V+Z+ae.length)%ae.length;var re=ae[V];if(re){var I=re.data.key;X.onActiveChange(I)}else X.onActiveChange(null)},X.onKeyDown=function(Z){var se=X.state,ae=se.activeKey,ve=se.expandedKeys,V=se.checkedKeys,re=X.props,I=re.onKeyDown,q=re.checkable,fe=re.selectable;switch(Z.which){case s.a.UP:{X.offsetActiveKey(-1),Z.preventDefault();break}case s.a.DOWN:{X.offsetActiveKey(1),Z.preventDefault();break}}var z=X.getActiveItem();if(z&&z.data){var A=X.getTreeNodeRequiredProps(),S=z.data.isLeaf===!1||!!(z.data.children||[]).length,K=Object(y.b)(Object(f.a)(Object(f.a)({},Object(y.f)(ae,A)),{},{data:z.data,active:!0}));switch(Z.which){case s.a.LEFT:{S&&ve.includes(ae)?X.onNodeExpand({},K):z.parent&&X.onActiveChange(z.parent.data.key),Z.preventDefault();break}case s.a.RIGHT:{S&&!ve.includes(ae)?X.onNodeExpand({},K):z.children&&z.children.length&&X.onActiveChange(z.children[0].data.key),Z.preventDefault();break}case s.a.ENTER:case s.a.SPACE:{q&&!K.disabled&&K.checkable!==!1&&!K.disableCheckbox?X.onNodeCheck({},K,!V.includes(ae)):!q&&fe&&!K.disabled&&K.selectable!==!1&&X.onNodeSelect({},K);break}}}I&&I(Z)},X.setUncontrolledState=function(Z){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(X.destroyed)return;var ve=!1,V=!0,re={};Object.keys(Z).forEach(function(I){if(I in X.props){V=!1;return}ve=!0,re[I]=Z[I]}),ve&&(!se||V)&&X.setState(Object(f.a)(Object(f.a)({},re),ae))},X.scrollTo=function(Z){X.listRef.current.scrollTo(Z)},X}return Object(u.a)($,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var Z,se=this.state,ae=se.focused,ve=se.flattenNodes,V=se.keyEntities,re=se.dragging,I=se.activeKey,q=this.props,fe=q.prefixCls,z=q.className,A=q.style,S=q.showLine,K=q.focusable,ee=q.tabIndex,de=ee===void 0?0:ee,he=q.selectable,Me=q.showIcon,ce=q.icon,be=q.switcherIcon,Ae=q.draggable,ye=q.checkable,ke=q.checkStrictly,Se=q.disabled,Ne=q.motion,_e=q.loadData,$e=q.filterTreeNode,He=q.height,nt=q.itemHeight,et=q.virtual,Xe=q.titleRender,st=q.onContextMenu,ut=Object(E.f)(this.props);return e.createElement(g.a.Provider,{value:{prefixCls:fe,selectable:he,showIcon:Me,icon:ce,switcherIcon:be,draggable:Ae,checkable:ye,checkStrictly:ke,disabled:Se,keyEntities:V,loadData:_e,filterTreeNode:$e,titleRender:Xe,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},e.createElement("div",{className:d()(fe,z,(Z={},Object(O.a)(Z,"".concat(fe,"-show-line"),S),Object(O.a)(Z,"".concat(fe,"-focused"),ae),Object(O.a)(Z,"".concat(fe,"-active-focused"),I!==null),Z))},e.createElement(G,Object.assign({ref:this.listRef,prefixCls:fe,style:A,data:ve,disabled:Se,selectable:he,checkable:!!ye,motion:Ne,dragging:re,height:He,itemHeight:nt,virtual:et,focusable:K,focused:ae,tabIndex:de,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:st},this.getTreeNodeRequiredProps(),ut))))}}],[{key:"getDerivedStateFromProps",value:function(Z,se){var ae=se.prevProps,ve={prevProps:Z};function V(ce){return!ae&&ce in Z||ae&&ae[ce]!==Z[ce]}var re;if(V("treeData")?re=Z.treeData:V("children")&&(Object(l.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),re=Object(y.c)(Z.children)),re){ve.treeData=re;var I=Object(y.a)(re);ve.keyEntities=Object(f.a)(Object(O.a)({},n,_),I.keyEntities)}var q=ve.keyEntities||se.keyEntities;if(V("expandedKeys")||ae&&V("autoExpandParent"))ve.expandedKeys=Z.autoExpandParent||!ae&&Z.defaultExpandParent?Object(E.e)(Z.expandedKeys,q):Z.expandedKeys;else if(!ae&&Z.defaultExpandAll){var fe=Object(f.a)({},q);delete fe[n],ve.expandedKeys=Object.keys(fe).map(function(ce){return fe[ce].key})}else!ae&&Z.defaultExpandedKeys&&(ve.expandedKeys=Z.autoExpandParent||Z.defaultExpandParent?Object(E.e)(Z.defaultExpandedKeys,q):Z.defaultExpandedKeys);if(ve.expandedKeys||delete ve.expandedKeys,re||ve.expandedKeys){var z=Object(y.d)(re||se.treeData,ve.expandedKeys||se.expandedKeys);ve.flattenNodes=z}if(Z.selectable&&(V("selectedKeys")?ve.selectedKeys=Object(E.d)(Z.selectedKeys,Z):!ae&&Z.defaultSelectedKeys&&(ve.selectedKeys=Object(E.d)(Z.defaultSelectedKeys,Z))),Z.checkable){var A;if(V("checkedKeys")?A=Object(E.j)(Z.checkedKeys)||{}:!ae&&Z.defaultCheckedKeys?A=Object(E.j)(Z.defaultCheckedKeys)||{}:re&&(A=Object(E.j)(Z.checkedKeys)||{checkedKeys:se.checkedKeys,halfCheckedKeys:se.halfCheckedKeys}),A){var S=A,K=S.checkedKeys,ee=K===void 0?[]:K,de=S.halfCheckedKeys,he=de===void 0?[]:de;if(!Z.checkStrictly){var Me=Object(ne.a)(ee,!0,q);ee=Me.checkedKeys,he=Me.halfCheckedKeys}ve.checkedKeys=ee,ve.halfCheckedKeys=he}}return V("loadedKeys")&&(ve.loadedKeys=Z.loadedKeys),ve}}]),$}(e.Component);J.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[]},J.TreeNode=C.a;var P=J,Y=x.b=P},fW2E:function(ie,x){var t={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function O(f,m,v){return t.hasOwnProperty(m)?v*=f.dpr:v}ie.exports=O},gut8:function(ie,x){var t={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},O=9;x.ContextCachedBy=t,x.WILL_BE_RESTORED=O},h78n:function(ie,x,t){"use strict";t.d(x,"a",function(){return b});var O=t("q1tI"),f=t.n(O),m=t("TSYQ"),v=t.n(m),u={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},a=function(j){var Q=j.map(function(){return Object(O.useRef)()}),G=Object(O.useRef)();return Object(O.useEffect)(function(){var ne=Date.now(),J=!1;Object.keys(Q).forEach(function(P){var Y=Q[P].current;if(!Y)return;J=!0;var W=Y.style;W.transitionDuration=".3s, .3s, .3s, .06s",G.current&&ne-G.current<100&&(W.transitionDuration="0s, 0s")}),J&&(G.current=Date.now())}),[Q]};function r(){return r=Object.assign||function(M){for(var j=1;jM.length)&&(j=M.length);for(var Q=0,G=new Array(j);Q=0)continue;if(!Object.prototype.propertyIsEnumerable.call(M,G))continue;Q[G]=M[G]}}return Q}function y(M,j){if(M==null)return{};var Q={},G=Object.keys(M),ne,J;for(J=0;J=0)continue;Q[ne]=M[ne]}return Q}var T=function(j){var Q=j.className,G=j.percent,ne=j.prefixCls,J=j.strokeColor,P=j.strokeLinecap,Y=j.strokeWidth,W=j.style,oe=j.trailColor,$=j.trailWidth,X=j.transition,Z=E(j,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete Z.gapPosition;var se=Array.isArray(G)?G:[G],ae=Array.isArray(J)?J:[J],ve=a(se),V=e(ve,1),re=V[0],I=Y/2,q=100-Y/2,fe="M ".concat(P==="round"?I:0,",").concat(I,` - L `).concat(P==="round"?q:100,",").concat(I),z="0 0 100 ".concat(Y),A=0;return f.a.createElement("svg",r({className:v()("".concat(ne,"-line"),Q),viewBox:z,preserveAspectRatio:"none",style:W},Z),f.a.createElement("path",{className:"".concat(ne,"-line-trail"),d:fe,strokeLinecap:P,stroke:oe,strokeWidth:$||Y,fillOpacity:"0"}),se.map(function(S,K){var ee={strokeDasharray:"".concat(S,"px, 100px"),strokeDashoffset:"-".concat(A,"px"),transition:X||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},de=ae[K]||ae[ae.length-1];return A+=S,f.a.createElement("path",{key:K,className:"".concat(ne,"-line-path"),d:fe,strokeLinecap:P,stroke:de,strokeWidth:Y,fillOpacity:"0",ref:re[K],style:ee})}))};T.defaultProps=u;var N=T;function L(){return L=Object.assign||function(M){for(var j=1;jM.length)&&(j=M.length);for(var Q=0,G=new Array(j);Q=0)continue;if(!Object.prototype.propertyIsEnumerable.call(M,G))continue;Q[G]=M[G]}}return Q}function c(M,j){if(M==null)return{};var Q={},G=Object.keys(M),ne,J;for(J=0;J=0)continue;Q[ne]=M[ne]}return Q}var o=0;function n(M){return+M.replace("%","")}function F(M){return Array.isArray(M)?M:[M]}function _(M,j,Q,G){var ne=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,J=arguments.length>5?arguments[5]:void 0,P=50-G/2,Y=0,W=-P,oe=0,$=-2*P;switch(J){case"left":Y=-P,W=0,oe=2*P,$=0;break;case"right":Y=P,W=0,oe=-2*P,$=0;break;case"bottom":W=P,$=2*P;break;default:}var X="M 50,50 m ".concat(Y,",").concat(W,` +*/var s=!f.canvasSupported,l={canvas:a},i={},d="4.3.1";function g(p,C){var h=new L(O(),p,C);return i[h.id]=h,h}function E(p){if(p)p.dispose();else{for(var C in i)i.hasOwnProperty(C)&&i[C].dispose();i={}}return this}function y(p){return i[p]}function D(p,C){l[p]=C}function N(p){delete i[p]}var L=function(p,C,h){h=h||{},this.dom=C,this.id=p;var T=this,B=new u,H=h.renderer;if(s){if(!l.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");H="vml"}else(!H||!l[H])&&(H="canvas");var w=new l[H](C,B,h,p);this.storage=B,this.painter=w;var c=!f.node&&!f.worker?new e(w.getViewportRoot(),w.root):null;this.handler=new v(B,w,c,w.root),this.animation=new r({stage:{update:m.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var o=B.delFromStorage,n=B.addToStorage;B.delFromStorage=function(F){o.call(B,F),F&&F.removeSelfFromZr(T)},B.addToStorage=function(F){n.call(B,F),F.addSelfToZr(T)}};L.prototype={constructor:L,getId:function(){return this.id},add:function(p){this.storage.addRoot(p),this._needsRefresh=!0},remove:function(p){this.storage.delRoot(p),this._needsRefresh=!0},configLayer:function(p,C){this.painter.configLayer&&this.painter.configLayer(p,C),this._needsRefresh=!0},setBackgroundColor:function(p){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(p),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh(),this._needsRefresh=this._needsRefreshHover=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var p;this._needsRefresh&&(p=!0,this.refreshImmediately()),this._needsRefreshHover&&(p=!0,this.refreshHoverImmediately()),p&&this.trigger("rendered")},addHover:function(p,C){if(this.painter.addHover){var h=this.painter.addHover(p,C);return this.refreshHover(),h}},removeHover:function(p){this.painter.removeHover&&(this.painter.removeHover(p),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(p){p=p||{},this.painter.resize(p.width,p.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(p,C){return this.painter.pathToImage(p,C)},setCursorStyle:function(p){this.handler.setCursorStyle(p)},findHover:function(p,C){return this.handler.findHover(p,C)},on:function(p,C,h){this.handler.on(p,C,h)},off:function(p,C){this.handler.off(p,C)},trigger:function(p,C){this.handler.trigger(p,C)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,N(this.id)}},x.version=d,x.init=g,x.dispose=E,x.getInstance=y,x.registerPainter=D},aZ40:function(ie,x,t){var O=t("Wogr"),f=O.alloc(512),m=O.alloc(256);(function(){for(var u=1,a=0;a<255;a++)f[a]=u,m[u]=a,u<<=1,u&256&&(u^=285);for(a=255;a<512;a++)f[a]=f[a-255]})(),x.log=function(u){if(u<1)throw new Error("log("+u+")");return m[u]},x.exp=function(u){return f[u]},x.mul=function(u,a){return u===0||a===0?0:f[m[u]+m[a]]}},bT9E:function(ie,x,t){"use strict";t.d(x,"a",function(){return f});var O=t("VTBJ");function f(m,v){var u=Object(O.a)({},m);return Array.isArray(v)&&v.forEach(function(a){delete u[a]}),u}},bYtY:function(ie,x){var t={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},O={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},f=Object.prototype.toString,m=Array.prototype,v=m.forEach,u=m.filter,a=m.slice,r=m.map,e=m.reduce,s={};function l(I,q){I==="createCanvas"&&(N=null),s[I]=q}function i(I){if(I==null||typeof I!="object")return I;var q=I,fe=f.call(I);if(fe==="[object Array]"){if(!se(I)){q=[];for(var z=0,A=I.length;z40)throw new Error('"version" should be in range from 1 to 40');return m*4+17},x.getSymbolTotalCodewords=function(m){return O[m]},x.getBCHDigit=function(f){for(var m=0;f!==0;)m++,f>>>=1;return m},x.setToSJISFunction=function(m){if(typeof m!="function")throw new Error('"toSJISFunc" is not a valid function.');t=m},x.isKanjiModeEnabled=function(){return typeof t!="undefined"},x.toSJIS=function(m){return t(m)}},e6BP:function(ie,x){function t(){this.buffer=[],this.length=0}t.prototype={get:function(O){var f=Math.floor(O/8);return(this.buffer[f]>>>7-O%8&1)===1},put:function(O,f){for(var m=0;m>>f-m-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(O){var f=Math.floor(this.length/8);this.buffer.length<=f&&this.buffer.push(0),O&&(this.buffer[f]|=128>>>this.length%8),this.length++}},ie.exports=t},eQOe:function(ie,x){x.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var t={N1:3,N2:3,N3:40,N4:10};x.isValid=function(m){return m!=null&&m!==""&&!isNaN(m)&&m>=0&&m<=7},x.from=function(m){return x.isValid(m)?parseInt(m,10):void 0},x.getPenaltyN1=function(m){for(var v=m.size,u=0,a=0,r=0,e=null,s=null,l=0;l=5&&(u+=t.N1+(a-5)),e=d,a=1),d=m.get(i,l),d===s?r++:(r>=5&&(u+=t.N1+(r-5)),s=d,r=1)}a>=5&&(u+=t.N1+(a-5)),r>=5&&(u+=t.N1+(r-5))}return u},x.getPenaltyN2=function(m){for(var v=m.size,u=0,a=0;a=10&&(a===1488||a===93)&&u++,r=r<<1&2047|m.get(s,e),s>=10&&(r===1488||r===93)&&u++}return u*t.N3},x.getPenaltyN4=function(m){for(var v=0,u=m.data.length,a=0;a=0&&f.bit<4},x.from=function(f,m){if(x.isValid(f))return f;try{return t(f)}catch(v){return m}}},fAei:function(ie,x,t){"use strict";t.d(x,"a",function(){return C.a});var O=t("rePB"),f=t("VTBJ"),m=t("KQm4"),v=t("1OyB"),u=t("vuIU"),a=t("Ji7U"),r=t("LK+K"),e=t("q1tI"),s=t("4IlW"),l=t("Kwbf"),i=t("TSYQ"),d=t.n(i),g=t("sboe"),E=t("OZM5"),y=t("815F"),D=t("ODXe"),N=t("Ff2n"),L=t("+nKL"),p=t("8XRh"),C=t("WaYH"),h=function(oe,$){var X=oe.className,Z=oe.style,se=oe.motion,ae=oe.motionNodes,ve=oe.motionType,V=oe.onMotionStart,re=oe.onMotionEnd,I=oe.active,q=oe.treeNodeRequiredProps,fe=Object(N.a)(oe,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),z=e.useState(!0),A=Object(D.a)(z,2),S=A[0],K=A[1],ee=e.useContext(g.a),de=ee.prefixCls,he=e.useRef(!1),Me=function(){he.current||re(),he.current=!0};return Object(e.useEffect)(function(){ae&&ve==="hide"&&S&&K(!1)},[ae]),Object(e.useEffect)(function(){return ae&&V(),function(){ae&&Me()}},[]),ae?e.createElement(p.default,Object.assign({ref:$,visible:S},se,{motionAppear:ve==="show",onAppearEnd:Me,onLeaveEnd:Me}),function(ce,be){var Ae=ce.className,ye=ce.style;return e.createElement("div",{ref:be,className:d()("".concat(de,"-treenode-motion"),Ae),style:ye},ae.map(function(ke){var Se=ke.data,Ne=Se.key,_e=Object(N.a)(Se,["key"]),$e=ke.isStart,He=ke.isEnd;delete _e.children;var nt=Object(y.f)(Ne,q);return e.createElement(C.a,Object.assign({},_e,nt,{active:I,data:ke.data,key:Ne,isStart:$e,isEnd:He}))}))}):e.createElement(C.a,Object.assign({domRef:$,className:X,style:Z},fe,{active:I}))};h.displayName="MotionTreeNode";var T=e.forwardRef(h),B=T;function H(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],$=W.length,X=oe.length;if(Math.abs($-X)!==1)return{add:!1,key:null};function Z(se,ae){var ve=new Map;se.forEach(function(re){ve.set(re,!0)});var V=ae.filter(function(re){return!ve.has(re)});return V.length===1?V[0]:null}return $ ").concat(oe);return oe}var j=function(oe,$){var X=oe.prefixCls,Z=oe.data,se=oe.selectable,ae=oe.checkable,ve=oe.expandedKeys,V=oe.selectedKeys,re=oe.checkedKeys,I=oe.loadedKeys,q=oe.loadingKeys,fe=oe.halfCheckedKeys,z=oe.keyEntities,A=oe.disabled,S=oe.dragging,K=oe.dragOverNodeKey,ee=oe.dropPosition,de=oe.motion,he=oe.height,Me=oe.itemHeight,ce=oe.virtual,be=oe.focusable,Ae=oe.activeItem,ye=oe.focused,ke=oe.tabIndex,Se=oe.onKeyDown,Ne=oe.onFocus,_e=oe.onBlur,$e=oe.onActiveChange,He=oe.onListChangeStart,nt=oe.onListChangeEnd,et=Object(N.a)(oe,["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"]),Xe=e.useRef(null);e.useImperativeHandle($,function(){return{scrollTo:function(dt){Xe.current.scrollTo(dt)}}});var st=e.useState(ve),ut=Object(D.a)(st,2),ct=ut[0],Ze=ut[1],bt=e.useState(Z),lt=Object(D.a)(bt,2),Et=lt[0],jt=lt[1],Qt=e.useState(Z),Gt=Object(D.a)(Qt,2),rn=Gt[0],ze=Gt[1],Ce=e.useState([]),Oe=Object(D.a)(Ce,2),ge=Oe[0],te=Oe[1],le=e.useState(null),we=Object(D.a)(le,2),xe=we[0],Re=we[1];function je(){jt(Z),ze(Z),te([]),Re(null),nt()}e.useEffect(function(){Ze(ve);var Fe=H(ct,ve);if(Fe.key!==null)if(Fe.add){var dt=Et.findIndex(function(Ge){var gt=Ge.data.key;return gt===Fe.key}),tt=b(w(Et,Z,Fe.key),ce,he,Me),Ct=Et.slice();Ct.splice(dt+1,0,k),ze(Ct),te(tt),Re("show")}else{var At=Z.findIndex(function(Ge){var gt=Ge.data.key;return gt===Fe.key}),Ht=b(w(Z,Et,Fe.key),ce,he,Me),en=Z.slice();en.splice(At+1,0,k),ze(en),te(Ht),Re("hide")}else Et!==Z&&(jt(Z),ze(Z))},[ve,Z]),e.useEffect(function(){S||je()},[S]);var De=de?rn:Z,Le={expandedKeys:ve,selectedKeys:V,loadedKeys:I,loadingKeys:q,checkedKeys:re,halfCheckedKeys:fe,dragOverNodeKey:K,dropPosition:ee,keyEntities:z};return e.createElement(e.Fragment,null,ye&&Ae&&e.createElement("span",{style:c,"aria-live":"assertive"},M(Ae)),e.createElement("div",{role:"tree"},e.createElement("input",{style:c,disabled:be===!1||A,tabIndex:be!==!1?ke:null,onKeyDown:Se,onFocus:Ne,onBlur:_e,value:"",onChange:o})),e.createElement(L.a,Object.assign({},et,{data:De,itemKey:R,height:he,fullHeight:!1,virtual:ce,itemHeight:Me,prefixCls:"".concat(X,"-list"),ref:Xe}),function(Fe){var dt=Fe.pos,tt=Fe.data,Ct=tt.key,At=Object(N.a)(tt,["key"]),Ht=Fe.isStart,en=Fe.isEnd,Ge=Object(y.e)(Ct,dt);delete At.children;var gt=Object(y.f)(Ge,Le);return e.createElement(B,Object.assign({},At,gt,{active:Ae&&Ct===Ae.data.key,pos:dt,data:Fe.data,isStart:Ht,isEnd:en,motion:de,motionNodes:Ct===n?ge:null,motionType:xe,onMotionStart:He,onMotionEnd:je,treeNodeRequiredProps:Le,onMouseMove:function(){$e(null)}}))}))},Q=e.forwardRef(j);Q.displayName="NodeList";var G=Q,ne=t("NvD2"),J=function(W){Object(a.a)($,W);var oe=Object(r.a)($);function $(){var X;return Object(v.a)(this,$),X=oe.apply(this,arguments),X.destroyed=!1,X.state={keyEntities:{},selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],dragging:!1,dragNodesKeys:[],dragOverNodeKey:null,dropPosition:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null},X.listRef=e.createRef(),X.onNodeDragStart=function(Z,se){var ae=X.state,ve=ae.expandedKeys,V=ae.keyEntities,re=X.props.onDragStart,I=se.props.eventKey;X.dragNode=se;var q=Object(E.b)(ve,I);X.setState({dragging:!0,dragNodesKeys:Object(E.g)(I,V)}),X.setExpandedKeys(q),re&&re({event:Z,node:Object(y.b)(se.props)})},X.onNodeDragEnter=function(Z,se){var ae=X.state,ve=ae.expandedKeys,V=ae.keyEntities,re=ae.dragNodesKeys,I=X.props.onDragEnter,q=se.props,fe=q.pos,z=q.eventKey;if(!X.dragNode||re.indexOf(z)!==-1)return;var A=Object(E.c)(Z,se);if(X.dragNode.props.eventKey===z&&A===0){X.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){X.setState({dragOverNodeKey:z,dropPosition:A}),X.delayedDragEnterLogic||(X.delayedDragEnterLogic={}),Object.keys(X.delayedDragEnterLogic).forEach(function(S){clearTimeout(X.delayedDragEnterLogic[S])}),X.delayedDragEnterLogic[fe]=window.setTimeout(function(){if(!X.state.dragging)return;var S=Object(m.a)(ve),K=V[z];K&&(K.children||[]).length&&(S=Object(E.a)(ve,z)),"expandedKeys"in X.props||X.setExpandedKeys(S),I&&I({event:Z,node:Object(y.b)(se.props),expandedKeys:S})},400)},0)},X.onNodeDragOver=function(Z,se){var ae=X.state.dragNodesKeys,ve=X.props.onDragOver,V=se.props.eventKey;if(ae.indexOf(V)!==-1)return;if(X.dragNode&&V===X.state.dragOverNodeKey){var re=Object(E.c)(Z,se);if(re===X.state.dropPosition)return;X.setState({dropPosition:re})}ve&&ve({event:Z,node:Object(y.b)(se.props)})},X.onNodeDragLeave=function(Z,se){var ae=X.props.onDragLeave;X.setState({dragOverNodeKey:""}),ae&&ae({event:Z,node:Object(y.b)(se.props)})},X.onNodeDragEnd=function(Z,se){var ae=X.props.onDragEnd;X.setState({dragOverNodeKey:""}),X.cleanDragState(),ae&&ae({event:Z,node:Object(y.b)(se.props)}),X.dragNode=null},X.onNodeDrop=function(Z,se){var ae=X.state,ve=ae.dragNodesKeys,V=ve===void 0?[]:ve,re=ae.dropPosition,I=X.props.onDrop,q=se.props,fe=q.eventKey,z=q.pos;if(X.setState({dragOverNodeKey:""}),X.cleanDragState(),V.indexOf(fe)!==-1){Object(l.a)(!1,"Can not drop to dragNode(include it's children node)");return}var A=Object(E.k)(z),S={event:Z,node:Object(y.b)(se.props),dragNode:X.dragNode?Object(y.b)(X.dragNode.props):null,dragNodesKeys:V.slice(),dropPosition:re+Number(A[A.length-1]),dropToGap:!1};re!==0&&(S.dropToGap=!0),I&&I(S),X.dragNode=null},X.cleanDragState=function(){var Z=X.state.dragging;Z&&X.setState({dragging:!1})},X.onNodeClick=function(Z,se){var ae=X.props.onClick;ae&&ae(Z,se)},X.onNodeDoubleClick=function(Z,se){var ae=X.props.onDoubleClick;ae&&ae(Z,se)},X.onNodeSelect=function(Z,se){var ae=X.state.selectedKeys,ve=X.state.keyEntities,V=X.props,re=V.onSelect,I=V.multiple,q=se.selected,fe=se.key,z=!q;z?I?ae=Object(E.a)(ae,fe):ae=[fe]:ae=Object(E.b)(ae,fe);var A=ae.map(function(S){var K=ve[S];return K?K.node:null}).filter(function(S){return S});X.setUncontrolledState({selectedKeys:ae}),re&&re(ae,{event:"select",selected:z,node:se,selectedNodes:A,nativeEvent:Z.nativeEvent})},X.onNodeCheck=function(Z,se,ae){var ve=X.state,V=ve.keyEntities,re=ve.checkedKeys,I=ve.halfCheckedKeys,q=X.props,fe=q.checkStrictly,z=q.onCheck,A=se.key,S,K={event:"check",node:se,checked:ae,nativeEvent:Z.nativeEvent};if(fe){var ee=ae?Object(E.a)(re,A):Object(E.b)(re,A),de=Object(E.b)(I,A);S={checked:ee,halfChecked:de},K.checkedNodes=ee.map(function(ye){return V[ye]}).filter(function(ye){return ye}).map(function(ye){return ye.node}),X.setUncontrolledState({checkedKeys:ee})}else{var he=Object(ne.a)([].concat(Object(m.a)(re),[A]),!0,V),Me=he.checkedKeys,ce=he.halfCheckedKeys;if(!ae){var be=new Set(Me);be.delete(A);var Ae=Object(ne.a)(Array.from(be),{checked:!1,halfCheckedKeys:ce},V);Me=Ae.checkedKeys,ce=Ae.halfCheckedKeys}S=Me,K.checkedNodes=[],K.checkedNodesPositions=[],K.halfCheckedKeys=ce,Me.forEach(function(ye){var ke=V[ye];if(!ke)return;var Se=ke.node,Ne=ke.pos;K.checkedNodes.push(Se),K.checkedNodesPositions.push({node:Se,pos:Ne})}),X.setUncontrolledState({checkedKeys:Me},!1,{halfCheckedKeys:ce})}z&&z(S,K)},X.onNodeLoad=function(Z){return new Promise(function(se){X.setState(function(ae){var ve=ae.loadedKeys,V=ve===void 0?[]:ve,re=ae.loadingKeys,I=re===void 0?[]:re,q=X.props,fe=q.loadData,z=q.onLoad,A=Z.key;if(!fe||V.indexOf(A)!==-1||I.indexOf(A)!==-1)return{};var S=fe(Z);return S.then(function(){var K=X.state,ee=K.loadedKeys,de=K.loadingKeys,he=Object(E.a)(ee,A),Me=Object(E.b)(de,A);z&&z(he,{event:"load",node:Z}),X.setUncontrolledState({loadedKeys:he}),X.setState({loadingKeys:Me}),se()}),{loadingKeys:Object(E.a)(I,A)}})})},X.onNodeMouseEnter=function(Z,se){var ae=X.props.onMouseEnter;ae&&ae({event:Z,node:se})},X.onNodeMouseLeave=function(Z,se){var ae=X.props.onMouseLeave;ae&&ae({event:Z,node:se})},X.onNodeContextMenu=function(Z,se){var ae=X.props.onRightClick;ae&&(Z.preventDefault(),ae({event:Z,node:se}))},X.onFocus=function(){var Z=X.props.onFocus;X.setState({focused:!0}),Z&&Z.apply(void 0,arguments)},X.onBlur=function(){var Z=X.props.onBlur;X.setState({focused:!1}),X.onActiveChange(null),Z&&Z.apply(void 0,arguments)},X.getTreeNodeRequiredProps=function(){var Z=X.state,se=Z.expandedKeys,ae=Z.selectedKeys,ve=Z.loadedKeys,V=Z.loadingKeys,re=Z.checkedKeys,I=Z.halfCheckedKeys,q=Z.dragOverNodeKey,fe=Z.dropPosition,z=Z.keyEntities;return{expandedKeys:se||[],selectedKeys:ae||[],loadedKeys:ve||[],loadingKeys:V||[],checkedKeys:re||[],halfCheckedKeys:I||[],dragOverNodeKey:q,dropPosition:fe,keyEntities:z}},X.setExpandedKeys=function(Z){var se=X.state.treeData,ae=Object(y.d)(se,Z);X.setUncontrolledState({expandedKeys:Z,flattenNodes:ae},!0)},X.onNodeExpand=function(Z,se){var ae=X.state.expandedKeys,ve=X.state.listChanging,V=X.props,re=V.onExpand,I=V.loadData,q=se.key,fe=se.expanded;if(ve)return;var z=ae.indexOf(q),A=!fe;if(Object(l.a)(fe&&z!==-1||!fe&&z===-1,"Expand state not sync with index check"),A?ae=Object(E.a)(ae,q):ae=Object(E.b)(ae,q),X.setExpandedKeys(ae),re&&re(ae,{node:se,expanded:A,nativeEvent:Z.nativeEvent}),A&&I){var S=X.onNodeLoad(se);S&&S.then(function(){var K=Object(y.d)(X.state.treeData,ae);X.setUncontrolledState({flattenNodes:K})})}},X.onListChangeStart=function(){X.setUncontrolledState({listChanging:!0})},X.onListChangeEnd=function(){setTimeout(function(){X.setUncontrolledState({listChanging:!1})})},X.onActiveChange=function(Z){var se=X.state.activeKey,ae=X.props.onActiveChange;if(se===Z)return;X.setState({activeKey:Z}),Z!==null&&X.scrollTo({key:Z}),ae&&ae(Z)},X.getActiveItem=function(){var Z=X.state,se=Z.activeKey,ae=Z.flattenNodes;return se===null?null:ae.find(function(ve){var V=ve.data.key;return V===se})||null},X.offsetActiveKey=function(Z){var se=X.state,ae=se.flattenNodes,ve=se.activeKey,V=ae.findIndex(function(q){var fe=q.data.key;return fe===ve});V===-1&&Z<0&&(V=ae.length),V=(V+Z+ae.length)%ae.length;var re=ae[V];if(re){var I=re.data.key;X.onActiveChange(I)}else X.onActiveChange(null)},X.onKeyDown=function(Z){var se=X.state,ae=se.activeKey,ve=se.expandedKeys,V=se.checkedKeys,re=X.props,I=re.onKeyDown,q=re.checkable,fe=re.selectable;switch(Z.which){case s.a.UP:{X.offsetActiveKey(-1),Z.preventDefault();break}case s.a.DOWN:{X.offsetActiveKey(1),Z.preventDefault();break}}var z=X.getActiveItem();if(z&&z.data){var A=X.getTreeNodeRequiredProps(),S=z.data.isLeaf===!1||!!(z.data.children||[]).length,K=Object(y.b)(Object(f.a)(Object(f.a)({},Object(y.f)(ae,A)),{},{data:z.data,active:!0}));switch(Z.which){case s.a.LEFT:{S&&ve.includes(ae)?X.onNodeExpand({},K):z.parent&&X.onActiveChange(z.parent.data.key),Z.preventDefault();break}case s.a.RIGHT:{S&&!ve.includes(ae)?X.onNodeExpand({},K):z.children&&z.children.length&&X.onActiveChange(z.children[0].data.key),Z.preventDefault();break}case s.a.ENTER:case s.a.SPACE:{q&&!K.disabled&&K.checkable!==!1&&!K.disableCheckbox?X.onNodeCheck({},K,!V.includes(ae)):!q&&fe&&!K.disabled&&K.selectable!==!1&&X.onNodeSelect({},K);break}}}I&&I(Z)},X.setUncontrolledState=function(Z){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(X.destroyed)return;var ve=!1,V=!0,re={};Object.keys(Z).forEach(function(I){if(I in X.props){V=!1;return}ve=!0,re[I]=Z[I]}),ve&&(!se||V)&&X.setState(Object(f.a)(Object(f.a)({},re),ae))},X.scrollTo=function(Z){X.listRef.current.scrollTo(Z)},X}return Object(u.a)($,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var Z,se=this.state,ae=se.focused,ve=se.flattenNodes,V=se.keyEntities,re=se.dragging,I=se.activeKey,q=this.props,fe=q.prefixCls,z=q.className,A=q.style,S=q.showLine,K=q.focusable,ee=q.tabIndex,de=ee===void 0?0:ee,he=q.selectable,Me=q.showIcon,ce=q.icon,be=q.switcherIcon,Ae=q.draggable,ye=q.checkable,ke=q.checkStrictly,Se=q.disabled,Ne=q.motion,_e=q.loadData,$e=q.filterTreeNode,He=q.height,nt=q.itemHeight,et=q.virtual,Xe=q.titleRender,st=q.onContextMenu,ut=Object(E.f)(this.props);return e.createElement(g.a.Provider,{value:{prefixCls:fe,selectable:he,showIcon:Me,icon:ce,switcherIcon:be,draggable:Ae,checkable:ye,checkStrictly:ke,disabled:Se,keyEntities:V,loadData:_e,filterTreeNode:$e,titleRender:Xe,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},e.createElement("div",{className:d()(fe,z,(Z={},Object(O.a)(Z,"".concat(fe,"-show-line"),S),Object(O.a)(Z,"".concat(fe,"-focused"),ae),Object(O.a)(Z,"".concat(fe,"-active-focused"),I!==null),Z))},e.createElement(G,Object.assign({ref:this.listRef,prefixCls:fe,style:A,data:ve,disabled:Se,selectable:he,checkable:!!ye,motion:Ne,dragging:re,height:He,itemHeight:nt,virtual:et,focusable:K,focused:ae,tabIndex:de,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:st},this.getTreeNodeRequiredProps(),ut))))}}],[{key:"getDerivedStateFromProps",value:function(Z,se){var ae=se.prevProps,ve={prevProps:Z};function V(ce){return!ae&&ce in Z||ae&&ae[ce]!==Z[ce]}var re;if(V("treeData")?re=Z.treeData:V("children")&&(Object(l.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),re=Object(y.c)(Z.children)),re){ve.treeData=re;var I=Object(y.a)(re);ve.keyEntities=Object(f.a)(Object(O.a)({},n,_),I.keyEntities)}var q=ve.keyEntities||se.keyEntities;if(V("expandedKeys")||ae&&V("autoExpandParent"))ve.expandedKeys=Z.autoExpandParent||!ae&&Z.defaultExpandParent?Object(E.e)(Z.expandedKeys,q):Z.expandedKeys;else if(!ae&&Z.defaultExpandAll){var fe=Object(f.a)({},q);delete fe[n],ve.expandedKeys=Object.keys(fe).map(function(ce){return fe[ce].key})}else!ae&&Z.defaultExpandedKeys&&(ve.expandedKeys=Z.autoExpandParent||Z.defaultExpandParent?Object(E.e)(Z.defaultExpandedKeys,q):Z.defaultExpandedKeys);if(ve.expandedKeys||delete ve.expandedKeys,re||ve.expandedKeys){var z=Object(y.d)(re||se.treeData,ve.expandedKeys||se.expandedKeys);ve.flattenNodes=z}if(Z.selectable&&(V("selectedKeys")?ve.selectedKeys=Object(E.d)(Z.selectedKeys,Z):!ae&&Z.defaultSelectedKeys&&(ve.selectedKeys=Object(E.d)(Z.defaultSelectedKeys,Z))),Z.checkable){var A;if(V("checkedKeys")?A=Object(E.j)(Z.checkedKeys)||{}:!ae&&Z.defaultCheckedKeys?A=Object(E.j)(Z.defaultCheckedKeys)||{}:re&&(A=Object(E.j)(Z.checkedKeys)||{checkedKeys:se.checkedKeys,halfCheckedKeys:se.halfCheckedKeys}),A){var S=A,K=S.checkedKeys,ee=K===void 0?[]:K,de=S.halfCheckedKeys,he=de===void 0?[]:de;if(!Z.checkStrictly){var Me=Object(ne.a)(ee,!0,q);ee=Me.checkedKeys,he=Me.halfCheckedKeys}ve.checkedKeys=ee,ve.halfCheckedKeys=he}}return V("loadedKeys")&&(ve.loadedKeys=Z.loadedKeys),ve}}]),$}(e.Component);J.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[]},J.TreeNode=C.a;var P=J,Y=x.b=P},fW2E:function(ie,x){var t={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function O(f,m,v){return t.hasOwnProperty(m)?v*=f.dpr:v}ie.exports=O},gut8:function(ie,x){var t={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},O=9;x.ContextCachedBy=t,x.WILL_BE_RESTORED=O},h78n:function(ie,x,t){"use strict";t.d(x,"a",function(){return b});var O=t("q1tI"),f=t.n(O),m=t("TSYQ"),v=t.n(m),u={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},a=function(j){var Q=j.map(function(){return Object(O.useRef)()}),G=Object(O.useRef)();return Object(O.useEffect)(function(){var ne=Date.now(),J=!1;Object.keys(Q).forEach(function(P){var Y=Q[P].current;if(!Y)return;J=!0;var W=Y.style;W.transitionDuration=".3s, .3s, .3s, .06s",G.current&&ne-G.current<100&&(W.transitionDuration="0s, 0s")}),J&&(G.current=Date.now())}),[Q]};function r(){return r=Object.assign||function(M){for(var j=1;jM.length)&&(j=M.length);for(var Q=0,G=new Array(j);Q=0)continue;if(!Object.prototype.propertyIsEnumerable.call(M,G))continue;Q[G]=M[G]}}return Q}function y(M,j){if(M==null)return{};var Q={},G=Object.keys(M),ne,J;for(J=0;J=0)continue;Q[ne]=M[ne]}return Q}var D=function(j){var Q=j.className,G=j.percent,ne=j.prefixCls,J=j.strokeColor,P=j.strokeLinecap,Y=j.strokeWidth,W=j.style,oe=j.trailColor,$=j.trailWidth,X=j.transition,Z=E(j,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete Z.gapPosition;var se=Array.isArray(G)?G:[G],ae=Array.isArray(J)?J:[J],ve=a(se),V=e(ve,1),re=V[0],I=Y/2,q=100-Y/2,fe="M ".concat(P==="round"?I:0,",").concat(I,` + L `).concat(P==="round"?q:100,",").concat(I),z="0 0 100 ".concat(Y),A=0;return f.a.createElement("svg",r({className:v()("".concat(ne,"-line"),Q),viewBox:z,preserveAspectRatio:"none",style:W},Z),f.a.createElement("path",{className:"".concat(ne,"-line-trail"),d:fe,strokeLinecap:P,stroke:oe,strokeWidth:$||Y,fillOpacity:"0"}),se.map(function(S,K){var ee={strokeDasharray:"".concat(S,"px, 100px"),strokeDashoffset:"-".concat(A,"px"),transition:X||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},de=ae[K]||ae[ae.length-1];return A+=S,f.a.createElement("path",{key:K,className:"".concat(ne,"-line-path"),d:fe,strokeLinecap:P,stroke:de,strokeWidth:Y,fillOpacity:"0",ref:re[K],style:ee})}))};D.defaultProps=u;var N=D;function L(){return L=Object.assign||function(M){for(var j=1;jM.length)&&(j=M.length);for(var Q=0,G=new Array(j);Q=0)continue;if(!Object.prototype.propertyIsEnumerable.call(M,G))continue;Q[G]=M[G]}}return Q}function c(M,j){if(M==null)return{};var Q={},G=Object.keys(M),ne,J;for(J=0;J=0)continue;Q[ne]=M[ne]}return Q}var o=0;function n(M){return+M.replace("%","")}function F(M){return Array.isArray(M)?M:[M]}function _(M,j,Q,G){var ne=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,J=arguments.length>5?arguments[5]:void 0,P=50-G/2,Y=0,W=-P,oe=0,$=-2*P;switch(J){case"left":Y=-P,W=0,oe=2*P,$=0;break;case"right":Y=P,W=0,oe=-2*P,$=0;break;case"bottom":W=P,$=2*P;break;default:}var X="M 50,50 m ".concat(Y,",").concat(W,` a `).concat(P,",").concat(P," 0 1 1 ").concat(oe,",").concat(-$,` - a `).concat(P,",").concat(P," 0 1 1 ").concat(-oe,",").concat($),Z=Math.PI*2*P,se={stroke:Q,strokeDasharray:"".concat(j/100*(Z-ne),"px ").concat(Z,"px"),strokeDashoffset:"-".concat(ne/2+M/100*(Z-ne),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:X,pathStyle:se}}var k=function(j){var Q=j.prefixCls,G=j.strokeWidth,ne=j.trailWidth,J=j.gapDegree,P=j.gapPosition,Y=j.trailColor,W=j.strokeLinecap,oe=j.style,$=j.className,X=j.strokeColor,Z=j.percent,se=w(j,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),ae=Object(O.useMemo)(function(){return o+=1,o},[]),ve=_(0,100,Y,G,J,P),V=ve.pathString,re=ve.pathStyle,I=F(Z),q=F(X),fe=q.find(function(ee){return Object.prototype.toString.call(ee)==="[object Object]"}),z=a(I),A=p(z,1),S=A[0],K=function(){var de=0;return I.map(function(he,Me){var ce=q[Me]||q[q.length-1],be=Object.prototype.toString.call(ce)==="[object Object]"?"url(#".concat(Q,"-gradient-").concat(ae,")"):"",Ae=_(de,he,ce,G,J,P);return de+=he,f.a.createElement("path",{key:Me,className:"".concat(Q,"-circle-path"),d:Ae.pathString,stroke:be,strokeLinecap:W,strokeWidth:G,opacity:he===0?0:1,fillOpacity:"0",style:Ae.pathStyle,ref:S[Me]})})};return f.a.createElement("svg",L({className:v()("".concat(Q,"-circle"),$),viewBox:"0 0 100 100",style:oe},se),fe&&f.a.createElement("defs",null,f.a.createElement("linearGradient",{id:"".concat(Q,"-gradient-").concat(ae),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(fe).sort(function(ee,de){return n(ee)-n(de)}).map(function(ee,de){return f.a.createElement("stop",{key:de,offset:ee,stopColor:fe[ee]})}))),f.a.createElement("path",{className:"".concat(Q,"-circle-trail"),d:V,stroke:Y,strokeLinecap:W,strokeWidth:ne||G,fillOpacity:"0",style:re}),K().reverse())};k.defaultProps=u;var b=k,R={Line:N,Circle:b}},h7HQ:function(ie,x,t){var O=t("y+Vt"),f=t("T6xi"),m=O.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(v,u){f.buildPath(v,u,!0)}});ie.exports=m},hOwI:function(ie,x){var t=Math.log(2);function O(m,v,u,a,r,e){var s=a+"-"+r,l=m.length;if(e.hasOwnProperty(s))return e[s];if(v===1){var i=Math.round(Math.log((1<f&&a>v||au?r:0}ie.exports=t},iXp4:function(ie,x,t){var O=t("ItGF"),f=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function m(v){return O.browser.ie&&O.browser.version>=11?function(){var u=this.__clipPaths,a=this.style,r;if(u)for(var e=0;e0){var i=O.alloc(this.degree);return s.copy(i,l),i}return s},ie.exports=v},jTL6:function(ie,x,t){var O=t("y+Vt"),f=O.extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(m,v){var u=v.cx,a=v.cy,r=Math.max(v.r,0),e=v.startAngle,s=v.endAngle,l=v.clockwise,i=Math.cos(e),d=Math.sin(e);m.moveTo(i*r+u,d*r+a),m.arc(u,a,r,e,s,!l)}});ie.exports=f},ji0R:function(ie,x,t){ie.exports=t.p+"static/douyu.3e6df9ee.jpg"},juDX:function(ie,x,t){t("P47w");var O=t("aX58"),f=O.registerPainter,m=t("3CBa");f("svg",m)},kPWJ:function(ie,x,t){ie.exports=t.p+"static/question.cb52bef9.gif"},kPYp:function(ie,x){ie.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF8AAAAUCAYAAADr0+FaAAANEklEQVRYR8WZe5RX1XXHP/vce3/zHoaXgFp5DQyOQLRgUTEtDW1qYyVmZUGNklRdiRpKE3lHfPyc4TngIBgfC0wx1ixt1NRWal2kotbE2lbRiCIISBCGhzDAvGd+87v37K5z5zfDzMCM46pr9fw1a+45+5zz3fvs/d3fn4yr1F8Do0UIUb74UFR8Gm3IO/Wf8MThat7mOYnaDZUmNUF/htpWLlePK4xwCcoQICHQbOGoKDuM4U1p5r0Px1DNrDPrezzQs+qNPUh/o4xXj6tRJhlhGEqeQNrCCYXdGvGfFt5JNHLoozJp7WyvdI0OtR4LEK7CstUIWyJLTSRcLfCnvlAiUKSgCEfV8o6NeMVE/G53itOUiXX3Sxcx2ov4qhG+qjBWoFChWYUqIt6VgFeblR0H5lEL0oGyjKvU1yHezPviyHdZ0Ro180basvD398n77svIFTokK5vrgW8LTELJRwgA6bTSHcaBckot/yWGX2YZtv5untT0dJ7SpOZrAX9mLTeIYarAIIQEYLrZTQNNFj7A8rx6/GrPfDncPmdihV6Y9nkA+Ot4nrIXaDSGElH6KfjdzpBSpVo8ttVU8Xitx/7hw/imWmYD4wXy6Iqjje9mOGYj/uX0bjYf/5nsaLcpY9fqDZ5hNTD8/wi+27bB+CzfOVcqSiq0BMPdRpiBUNANmHNvJUQo1ZFls0lTuXupnOw+0UVamMsCz+eHCuf3MWgUjZ3w76kUZQeW8j4iOnadXmCUNQI3xvsIbl7bX70MEdKpFLutcCA7iz/BxvfrfY2hNVXDb2v2s/TkU/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5r8Dxck5VUMyqXP0wEzEHjNFHQR438rPPZtuyiKpTtmsdjrji7SGmJmBJrGYZSlIsyfYD7oaJVlVqEAwbejSJeafR5t6dOsfOGTuXMTTHeBExHmCzCaDTurLPEFWOlXqFKlI+s8prfwG92lnXVXkoq9HwTcD/KdSp8mGrmyVSaf+pJJmjff/gKHZaTxR3G8E1rKWyoY4MvbOwJfIdIcSUX+8Ic1yg6yT6Eb7Q1Wc4BORRk+RQZQ2DD3n8Y+Lwn4edT/cEcOd0xL6nmyn5knWghPzuL7JQQJMC0umjzafUbaG5J0XigjFSfeHuHYZXSJIH0Iz+VJtczBL6H58pLZAhTaVqKCmnYfoSWc4l6Tko/nscg8clvMtQPyOFUn/oRVCauJZcs+jeHJFLHOX1wFTW9MkEnyg0kP2EpitJ4+YVU/S8v1xqrW4H9MAAAAABJRU5ErkJggg=="},"kVK+":function(ie,x){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */x.read=function(t,O,f,m,v){var u,a,r=v*8-m-1,e=(1<>1,l=-7,i=f?v-1:0,d=f?-1:1,g=t[O+i];for(i+=d,u=g&(1<<-l)-1,g>>=-l,l+=r;l>0;u=u*256+t[O+i],i+=d,l-=8);for(a=u&(1<<-l)-1,u>>=-l,l+=m;l>0;a=a*256+t[O+i],i+=d,l-=8);if(u===0)u=1-s;else{if(u===e)return a?NaN:(g?-1:1)*Infinity;a=a+Math.pow(2,m),u=u-s}return(g?-1:1)*a*Math.pow(2,u-m)},x.write=function(t,O,f,m,v,u){var a,r,e,s=u*8-v-1,l=(1<>1,d=v===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=m?0:u-1,E=m?1:-1,y=O<0||O===0&&1/O<0?1:0;for(O=Math.abs(O),isNaN(O)||O===Infinity?(r=isNaN(O)?1:0,a=l):(a=Math.floor(Math.log(O)/Math.LN2),O*(e=Math.pow(2,-a))<1&&(a--,e*=2),a+i>=1?O+=d/e:O+=d*Math.pow(2,1-i),O*e>=2&&(a++,e/=2),a+i>=l?(r=0,a=l):a+i>=1?(r=(O*e-1)*Math.pow(2,v),a=a+i):(r=O*Math.pow(2,i-1)*Math.pow(2,v),a=0));v>=8;t[f+g]=r&255,g+=E,r/=256,v-=8);for(a=a<0;t[f+g]=a&255,g+=E,a/=256,s-=8);t[f+g-E]|=y*128}},"kk9/":function(ie,x,t){var O=t("e/Dd").getSymbolSize,f=7;x.getPositions=function(v){var u=O(v);return[[0,0],[u-f,0],[0,u-f]]}},l2Kq:function(ie,x,t){ie.exports=t.p+"static/match_ad.24dc22fd.jpg"},lYJp:function(ie,x,t){var O=t("e/Dd"),f=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,m=1<<14|1<<12|1<<10|1<<4|1<<1,v=O.getBCHDigit(f);x.getEncodedBits=function(a,r){for(var e=a.bit<<3|r,s=e<<10;O.getBCHDigit(s)-v>=0;)s^=f<f+e&&r>v+e||rO+e&&a>m+e||a=l.x&&e<=l.x+l.width&&s>=l.y&&s<=l.y+l.height},clone:function(){return new a(this.x,this.y,this.width,this.height)},copy:function(e){this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},a.create=function(e){return new a(e.x,e.y,e.width,e.height)};var r=a;ie.exports=r},mLcG:function(ie,x){var t=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(O){setTimeout(O,16)};ie.exports=t},mgmH:function(ie,x,t){"use strict";t.d(x,"d",function(){return g}),t.d(x,"b",function(){return E}),t.d(x,"e",function(){return y}),t.d(x,"c",function(){return T}),t.d(x,"n",function(){return N}),t.d(x,"g",function(){return L}),t.d(x,"h",function(){return p}),t.d(x,"j",function(){return h}),t.d(x,"a",function(){return D}),t.d(x,"l",function(){return B}),t.d(x,"f",function(){return H}),t.d(x,"k",function(){return w}),t.d(x,"m",function(){return c}),t.d(x,"i",function(){return o}),t.d(x,"o",function(){return n}),t.d(x,"r",function(){return F}),t.d(x,"q",function(){return _}),t.d(x,"p",function(){return k});var O=t("miYZ"),f=t("tsqr"),m=t("k1fw"),v=t("9og8"),u=t("WmNS"),a=t.n(u),r=t("oUNq"),e=t("9kvl"),s=t("1vsH"),l=t("m3rI"),i=function(){Object(e.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},d=function(){Object(e.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},g=function(){var b=Object(v.a)(a.a.mark(function R(M){var j;return a.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return i(),G.next=3,Object(r.s)(Object(m.a)({},M));case 3:if(j=G.sent,!(j.status===0)){G.next=7;break}return G.next=7,Object(s.u)("",Object(s.U)({url:l.a.API_SERVER+"/api/courses/".concat(M.coursesId,"/export_couser_info.json"),query:M}));case 7:d();case 8:case"end":return G.stop()}},R)}));return function(M){return b.apply(this,arguments)}}(),E=function(){var b=Object(v.a)(a.a.mark(function R(M){var j;return a.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(r.q)(Object(m.a)({},M));case 2:if(j=G.sent,!(j.status===0)){G.next=8;break}f.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),e.d.push("/classrooms/".concat(M.coursesId,"/exportlist/course_member_act_score")),G.next=13;break;case 8:if(!(j.status===-2)){G.next=12;break}return G.abrupt("return",j);case 12:j.status===-3&&(Object(e.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),e.d.push("/classrooms/".concat(M.coursesId,"/exportlist/course_member_act_score")));case 13:case"end":return G.stop()}},R)}));return function(M){return b.apply(this,arguments)}}(),y=function(){var b=Object(v.a)(a.a.mark(function R(M){var j;return a.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(r.t)(Object(m.a)({},M));case 2:if(j=G.sent,!(j.status===0)){G.next=8;break}f.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),e.d.push("/classrooms/".concat(M.coursesId,"/exportlist/course_total_score")),G.next=13;break;case 8:if(!(j.status===-2)){G.next=12;break}return G.abrupt("return",j);case 12:j.status===-3&&(Object(e.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),e.d.push("/classrooms/".concat(M.coursesId,"/exportlist/course_total_score")));case 13:case"end":return G.stop()}},R)}));return function(M){return b.apply(this,arguments)}}(),T=function(){var b=Object(v.a)(a.a.mark(function R(M){var j;return a.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(r.r)(Object(m.a)({},M));case 2:if(j=G.sent,!(j.status===0)){G.next=8;break}f.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),e.d.push("/classrooms/".concat(M.coursesId,"/exportlist/course_total_exercise_and_other")),G.next=13;break;case 8:if(!(j.status===-2)){G.next=12;break}return G.abrupt("return",j);case 12:j.status===-3&&(Object(e.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),e.d.push("/classrooms/".concat(M.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return G.stop()}},R)}));return function(M){return b.apply(this,arguments)}}(),N=function(){var b=Object(v.a)(a.a.mark(function R(M){var j;return a.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(r.y)(Object(m.a)({},M));case 2:if(j=G.sent,!(j.status===0)){G.next=8;break}f.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),e.d.push("/classrooms/".concat(M.coursesId,"/exportlist/course_total_exercise_and_other")),G.next=13;break;case 8:if(!(j.status===-2)){G.next=12;break}return G.abrupt("return",j);case 12:j.status===-3&&(Object(e.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),e.d.push("/classrooms/".concat(M.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return G.stop()}},R)}));return function(M){return b.apply(this,arguments)}}(),L=function(){var b=Object(v.a)(a.a.mark(function R(M){var j;return a.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(r.u)(Object(m.a)({},M));case 2:if(j=G.sent,!(j.status===0)){G.next=8;break}f.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),e.d.push("/classrooms/".concat(M.coursesId,"/exportlist/course_total_homework")),G.next=13;break;case 8:if(!(j.status===-2)){G.next=12;break}return G.abrupt("return",j);case 12:j.status===-3&&(Object(e.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),e.d.push("/classrooms/".concat(M.coursesId,"/exportlist/course_total_homework")));case 13:case"end":return G.stop()}},R)}));return function(M){return b.apply(this,arguments)}}(),p=function(){var b=Object(v.a)(a.a.mark(function R(M,j){var Q;return a.a.wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.next=2,Object(r.w)(Object(m.a)({},M));case 2:Q=ne.sent,Q.status===0?(f.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),e.d.push("/classrooms/".concat(M.coursesId,"/exportlist/").concat(j))):Q.status===-3&&(Object(e.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),e.d.push("/classrooms/".concat(M.coursesId,"/exportlist/").concat(j)));case 4:case"end":return ne.stop()}},R)}));return function(M,j){return b.apply(this,arguments)}}(),C=function(){var b=Object(v.a)(a.a.mark(function R(M){var j;return a.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return i(),G.next=3,Object(r.v)(Object(m.a)({},M));case 3:if(j=G.sent,!(j.status===0)){G.next=7;break}return G.next=7,Object(s.u)("",Object(s.U)({url:l.a.API_SERVER+"/api/homework_commons/".concat(M.categoryId,"/works_list.zip"),query:M}));case 7:d();case 8:case"end":return G.stop()}},R)}));return function(M){return b.apply(this,arguments)}}(),h=function(){var b=Object(v.a)(a.a.mark(function R(M){var j;return a.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return i(),G.next=3,Object(r.z)(Object(m.a)({},M));case 3:if(j=G.sent,!(j.status===0)){G.next=7;break}return G.next=7,Object(s.u)("",Object(s.U)({url:l.a.API_SERVER+"/api/polls/".concat(M.categoryId,"/commit_result.xlsx"),query:M}));case 7:d();case 8:case"end":return G.stop()}},R)}));return function(M){return b.apply(this,arguments)}}(),D=function(){var b=Object(v.a)(a.a.mark(function R(M){return a.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Q.next=2,Object(s.t)("",Object(s.U)({url:l.a.API_SERVER+"/api/courses/".concat(M.coursesId,"/attendances/export_xlsx_data.xlsx"),query:M}));case 2:case"end":return Q.stop()}},R)}));return function(M){return b.apply(this,arguments)}}(),B=function(){var b=Object(v.a)(a.a.mark(function R(M){return a.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Q.next=2,Object(s.t)("",Object(s.U)({url:l.a.API_SERVER+"/api/courses/".concat(M.coursesId,"/video_study_statics.xlsx"),query:M}));case 2:case"end":return Q.stop()}},R)}));return function(M){return b.apply(this,arguments)}}(),H=function(){var b=Object(v.a)(a.a.mark(function R(M){return a.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Q.next=2,Object(s.t)("",Object(s.U)({url:l.a.API_SERVER+"/api/courses/".concat(M.coursesId,"/export_course_students_info.xlsx"),query:M}));case 2:case"end":return Q.stop()}},R)}));return function(M){return b.apply(this,arguments)}}(),w=function(){var b=Object(v.a)(a.a.mark(function R(M){return a.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Q.next=2,Object(s.t)("",Object(s.U)({url:l.a.API_SERVER+"/api/item_banks/export.xlsx",query:M}));case 2:case"end":return Q.stop()}},R)}));return function(M){return b.apply(this,arguments)}}(),c=function(){var b=Object(v.a)(a.a.mark(function R(M){return a.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Q.next=2,Object(s.t)("",Object(s.U)({url:l.a.API_SERVER+"/api/competitions/region_reports.xlsx",query:M}));case 2:case"end":return Q.stop()}},R)}));return function(M){return b.apply(this,arguments)}}(),o=function(){var b=Object(v.a)(a.a.mark(function R(M){var j;return a.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(r.x)(Object(m.a)({},M));case 2:j=G.sent,j.status===0?(f.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),e.d.push("/classrooms/".concat(M.coursesId,"/exportlist/exercise_score"))):j.status===-3&&(Object(e.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),e.d.push("/classrooms/".concat(M.coursesId,"/exportlist/exercise_score")));case 4:case"end":return G.stop()}},R)}));return function(M){return b.apply(this,arguments)}}(),n=function(){var b=Object(v.a)(a.a.mark(function R(M){return a.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),Q.next=3,Object(s.t)("",Object(s.U)({url:l.a.API_SERVER+"/api/export_records/".concat(M.id,".xlsx"),query:M}));case 3:case"end":return Q.stop()}},R)}));return function(M){return b.apply(this,arguments)}}(),F=function(){var b=Object(v.a)(a.a.mark(function R(M){return a.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Q.next=2,Object(s.t)("",Object(s.U)({url:l.a.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:M}));case 2:case"end":return Q.stop()}},R)}));return function(M){return b.apply(this,arguments)}}(),_=function(){var b=Object(v.a)(a.a.mark(function R(M){return a.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Q.next=2,Object(s.t)("",Object(s.U)({url:l.a.API_SERVER+"/api/ec_years/".concat(M==null?void 0:M.ec_year_id,"/ec_training_objectives.xlsx"),query:M}));case 2:case"end":return Q.stop()}},R)}));return function(M){return b.apply(this,arguments)}}(),k=function(){var b=Object(v.a)(a.a.mark(function R(M){return a.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Q.next=2,Object(s.t)("",Object(s.U)({url:l.a.API_SERVER+"/api/ec_years/".concat(M==null?void 0:M.ec_year_id,"/ec_graduation_requirements.xlsx"),query:M}));case 2:case"end":return Q.stop()}},R)}));return function(M){return b.apply(this,arguments)}}()},n1HI:function(ie,x,t){var O=t("hX1E"),f=O.normalizeRadian,m=Math.PI*2;function v(u,a,r,e,s,l,i,d,g){if(i===0)return!1;var E=i;d-=u,g-=a;var y=Math.sqrt(d*d+g*g);if(y-E>r||y+Es&&(s+=m);var N=Math.atan2(g,d);return N<0&&(N+=m),N>=e&&N<=s||N+m>=e&&N+m<=s}x.containStroke=v},n6Mw:function(ie,x,t){var O=t("SrGk"),f=t("bYtY"),m=t("Fofx");function v(a,r){O.call(this,a,r,"clipPath","__clippath_in_use__")}f.inherits(v,O),v.prototype.update=function(a){var r=this.getSvgElement(a);r&&this.updateDom(r,a.__clipPaths,!1);var e=this.getTextSvgElement(a);e&&this.updateDom(e,a.__clipPaths,!0),this.markUsed(a)},v.prototype.updateDom=function(a,r,e){if(r&&r.length>0){var s=this.getDefs(!0),l=r[0],i,d,g=e?"_textDom":"_dom";l[g]?(d=l[g].getAttribute("id"),i=l[g],s.contains(i)||s.appendChild(i)):(d="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,i=this.createElement("clipPath"),i.setAttribute("id",d),s.appendChild(i),l[g]=i);var E=this.getSvgProxy(l);if(l.transform&&l.parent.invTransform&&!e){var y=Array.prototype.slice.call(l.transform);m.mul(l.transform,l.parent.invTransform,l.transform),E.brush(l),l.transform=y}else E.brush(l);var T=this.getSvgElement(l);i.innerHTML="",i.appendChild(T.cloneNode()),a.setAttribute("clip-path","url(#"+d+")"),r.length>1&&this.updateDom(i,r.slice(1),e)}else a&&a.setAttribute("clip-path","none")},v.prototype.markUsed=function(a){var r=this;a.__clipPaths&&f.each(a.__clipPaths,function(e){e._dom&&O.prototype.markUsed.call(r,e._dom),e._textDom&&O.prototype.markUsed.call(r,e._textDom)})};var u=v;ie.exports=u},nCxF:function(ie,x,t){var O=t("QBsz"),f=O.min,m=O.max,v=O.scale,u=O.distance,a=O.add,r=O.clone,e=O.sub;function s(l,i,d,g){var E=[],y=[],T=[],N=[],L,p,C,h;if(g){C=[Infinity,Infinity],h=[-Infinity,-Infinity];for(var D=0,B=l.length;D2&&arguments[2]!==void 0?arguments[2]:"0",me=String(U);me.length=12,pn%=12);var ur=e.useMemo(function(){if(!Ve)return[!1,!1];var Wt=[!0,!0];return xn.forEach(function(tn){var un=tn.disabled,Fn=tn.value;if(un)return;Fn>=12?Wt[1]=!1:Wt[0]=!1}),Wt},[Ve,xn]),dr=Object(r.a)(ur,2),cr=dr[0],fr=dr[1],hr=e.useMemo(function(){return Ve?xn.filter(Pt?function(Wt){return Wt.value>=12}:function(Wt){return Wt.value<12}).map(function(Wt){var tn=Wt.value%12,un=tn===0?"12":P(tn,2);return Object(a.a)(Object(a.a)({},Wt),{},{label:un,value:tn})}):xn},[Ve,xn]),er=ve(0,59,We,rt&&rt(pn)),Cr=ve(0,59,Je,ot&&ot(pn,vn));me.current={onUpDown:function(tn){var un=ht[De];if(un)for(var Fn=un.units.findIndex(function(Wn){return Wn.value===un.value}),Tn=un.units.length,wn=1;wn1&&(Pe=ue.addDate(Pe,-7)),Pe}function Se(U,ue,pe){var me=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(ue){case"year":return pe.addYear(U,me*10);case"quarter":case"month":return pe.addYear(U,me);default:return pe.addMonth(U,me)}}var Ne=e.createContext({}),_e=Ne;function $e(U){var ue=U.cellPrefixCls,pe=U.generateConfig,me=U.rangedValue,De=U.hoverRangedValue,Ee=U.isInView,Pe=U.isSameCell,Be=U.offsetCell,Ke=U.today,Ve=U.value;function qe(Ye){var Ie,We=Be(Ye,-1),Ue=Be(Ye,1),Je=$(me,0),Qe=$(me,1),rt=$(De,0),ot=$(De,1),yt=ye(pe,rt,ot,Ye);function Ut(vn){return Pe(Je,vn)}function ht(vn){return Pe(Qe,vn)}var pt=Pe(rt,Ye),Rt=Pe(ot,Ye),Pt=(yt||Rt)&&(!Ee(We)||ht(We)),pn=(yt||pt)&&(!Ee(Ue)||Ut(Ue));return Ie={},Object(u.a)(Ie,"".concat(ue,"-in-view"),Ee(Ye)),Object(u.a)(Ie,"".concat(ue,"-in-range"),ye(pe,Je,Qe,Ye)),Object(u.a)(Ie,"".concat(ue,"-range-start"),Ut(Ye)),Object(u.a)(Ie,"".concat(ue,"-range-end"),ht(Ye)),Object(u.a)(Ie,"".concat(ue,"-range-start-single"),Ut(Ye)&&!Qe),Object(u.a)(Ie,"".concat(ue,"-range-end-single"),ht(Ye)&&!Je),Object(u.a)(Ie,"".concat(ue,"-range-start-near-hover"),Ut(Ye)&&(Pe(We,rt)||ye(pe,rt,ot,We))),Object(u.a)(Ie,"".concat(ue,"-range-end-near-hover"),ht(Ye)&&(Pe(Ue,ot)||ye(pe,rt,ot,Ue))),Object(u.a)(Ie,"".concat(ue,"-range-hover"),yt),Object(u.a)(Ie,"".concat(ue,"-range-hover-start"),pt),Object(u.a)(Ie,"".concat(ue,"-range-hover-end"),Rt),Object(u.a)(Ie,"".concat(ue,"-range-hover-edge-start"),Pt),Object(u.a)(Ie,"".concat(ue,"-range-hover-edge-end"),pn),Object(u.a)(Ie,"".concat(ue,"-range-hover-edge-start-near-range"),Pt&&Pe(We,Qe)),Object(u.a)(Ie,"".concat(ue,"-range-hover-edge-end-near-range"),pn&&Pe(Ue,Je)),Object(u.a)(Ie,"".concat(ue,"-today"),Pe(Ke,Ye)),Object(u.a)(Ie,"".concat(ue,"-selected"),Pe(Ve,Ye)),Ie}return qe}function He(U){for(var ue=U.prefixCls,pe=U.disabledDate,me=U.onSelect,De=U.rowNum,Ee=U.colNum,Pe=U.prefixColumn,Be=U.rowClassName,Ke=U.baseDate,Ve=U.getCellClassName,qe=U.getCellText,Ye=U.getCellNode,Ie=U.getCellDate,We=U.titleCell,Ue=U.headerCells,Je=e.useContext(T),Qe=Je.onDateMouseEnter,rt=Je.onDateMouseLeave,ot="".concat(ue,"-cell"),yt=[],Ut=0;Ut2&&arguments[2]!==void 0?arguments[2]:!1;(gn===Je||Zn)&&(Dr(ft),Rt&&Rt(ft),Tn&&Tn(ft,Kt),Pt&&!Ae(Be,ft,Yn)&&Pt(ft))},pr=function(ft){return Dn.current&&Dn.current.onKeyDown?([E.a.LEFT,E.a.RIGHT,E.a.UP,E.a.DOWN,E.a.PAGE_UP,E.a.PAGE_DOWN,E.a.ENTER].includes(ft.which)&&ft.preventDefault(),Dn.current.onKeyDown(ft)):(Object(i.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},dn=function(ft){Dn.current&&Dn.current.onBlur&&Dn.current.onBlur(ft)};un&&xr!=="right"&&(un.current={onKeyDown:pr,onClose:function(){Dn.current&&Dn.current.onClose&&Dn.current.onClose()}}),e.useEffect(function(){Ke&&!nr.current&&Mn(Ke)},[Ke]),e.useEffect(function(){nr.current=!1},[]);var En,kn=Object(a.a)(Object(a.a)({},U),{},{operationRef:Dn,prefixCls:me,viewDate:Rn,value:Yn,onViewDateChange:Pn,sourceMode:Lr,onPanelChange:nn,disabledDate:gn!=="decade"?Ie:void 0});delete kn.onChange,delete kn.onSelect;switch(gn){case"decade":En=e.createElement(ir,Object.assign({},kn,{onSelect:function(ft,Kt){Pn(ft),In(ft,Kt)}}));break;case"year":En=e.createElement(Ot,Object.assign({},kn,{onSelect:function(ft,Kt){Pn(ft),In(ft,Kt)}}));break;case"month":En=e.createElement(we,Object.assign({},kn,{onSelect:function(ft,Kt){Pn(ft),In(ft,Kt)}}));break;case"quarter":En=e.createElement(tt,Object.assign({},kn,{onSelect:function(ft,Kt){Pn(ft),In(ft,Kt)}}));break;case"week":En=e.createElement(Gt,Object.assign({},kn,{onSelect:function(ft,Kt){Pn(ft),In(ft,Kt)}}));break;case"time":delete kn.showTime,En=e.createElement(fe,Object.assign({},kn,Object(g.a)(yt)==="object"?yt:null,{onSelect:function(ft,Kt){Pn(ft),In(ft,Kt)}}));break;default:yt?En=e.createElement(jt,Object.assign({},kn,{onSelect:function(ft,Kt){Pn(ft),In(ft,Kt)}})):En=e.createElement(Ze,Object.assign({},kn,{onSelect:function(ft,Kt){Pn(ft),In(ft,Kt)}}))}var Mr,Pr,vr=function(){var ft=Be.getNow(),Kt=se(Be.getHour(ft),Be.getMinute(ft),Be.getSecond(ft),tr?dr:1,Ar?fr:1,Wt?er:1),Zn=Z(Be,ft,Kt[0],Kt[1],Kt[2]);In(Zn,"submit")};wn||(Mr=Nn(me,gn,ht),Pr=Kn({prefixCls:me,components:An,needConfirmButton:Cr,okDisabled:!Yn||Ie&&Ie(Yn),locale:Pe,showNow:ot,onNow:Cr&&vr,onOk:function(){Yn&&(In(Yn,"submit",!0),cn&&cn(Yn))}}));var Ir;if(Ut&&gn==="date"&&Je==="date"&&!yt){var Sr=Be.getNow(),fn="".concat(me,"-today-btn"),Xn=Ie&&Ie(Sr);Ir=e.createElement("a",{className:l()(fn,Xn&&"".concat(fn,"-disabled")),"aria-disabled":Xn,onClick:function(){Xn||In(Sr,"mouse",!0)}},Pe.today)}return e.createElement(T.Provider,{value:Object(a.a)(Object(a.a)({},tn),{},{hideHeader:"hideHeader"in U?pt:tn.hideHeader,hidePrevBtn:Ln&&xr==="right",hideNextBtn:Ln&&xr==="left"})},e.createElement("div",{tabIndex:rt,className:l()("".concat(me,"-panel"),De,(ue={},Object(u.a)(ue,"".concat(me,"-panel-has-range"),$n&&$n[0]&&$n[1]),Object(u.a)(ue,"".concat(me,"-panel-has-range-hover"),wr&&wr[0]&&wr[1]),Object(u.a)(ue,"".concat(me,"-panel-rtl"),xn==="rtl"),ue)),style:Ee,onKeyDown:pr,onBlur:dn,onMouseDown:vn,ref:Fn},En,Mr||Pr||Ir?e.createElement("div",{className:"".concat(me,"-footer")},Mr,Pr,Ir):null))}var wt=it,Zt=t("uciX"),Cn={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function zt(U){var ue,pe=U.prefixCls,me=U.popupElement,De=U.popupStyle,Ee=U.visible,Pe=U.dropdownClassName,Be=U.dropdownAlign,Ke=U.transitionName,Ve=U.getPopupContainer,qe=U.children,Ye=U.range,Ie=U.popupPlacement,We=U.direction,Ue="".concat(pe,"-dropdown"),Je=function(){return Ie!==void 0?Ie:We==="rtl"?"bottomRight":"bottomLeft"};return e.createElement(Zt.a,{showAction:[],hideAction:[],popupPlacement:Je(),builtinPlacements:Cn,prefixCls:Ue,popupTransitionName:Ke,popup:me,popupAlign:Be,popupVisible:Ee,popupClassName:l()(Pe,(ue={},Object(u.a)(ue,"".concat(Ue,"-range"),Ye),Object(u.a)(ue,"".concat(Ue,"-rtl"),We==="rtl"),ue)),popupStyle:De,getPopupContainer:Ve},qe)}var Dt=zt;function mt(U){var ue=U.open,pe=U.value,me=U.isClickOutside,De=U.triggerOpen,Ee=U.forwardKeyDown,Pe=U.blurToCancel,Be=U.onSubmit,Ke=U.onCancel,Ve=U.onFocus,qe=U.onBlur,Ye=Object(e.useState)(!1),Ie=Object(r.a)(Ye,2),We=Ie[0],Ue=Ie[1],Je=Object(e.useState)(!1),Qe=Object(r.a)(Je,2),rt=Qe[0],ot=Qe[1],yt=Object(e.useRef)(!1),Ut=Object(e.useRef)(!1),ht={onMouseDown:function(){Ue(!0),De(!0)},onKeyDown:function(Rt){switch(Rt.which){case E.a.ENTER:{ue?Be()!==!1&&Ue(!0):De(!0),Rt.preventDefault();return}case E.a.TAB:{We&&ue&&!Rt.shiftKey?(Ue(!1),Rt.preventDefault()):!We&&ue&&(!Ee(Rt)&&Rt.shiftKey&&(Ue(!0),Rt.preventDefault()));return}case E.a.ESC:{Ue(!0),Ke();return}}!ue&&![E.a.SHIFT].includes(Rt.which)?De(!0):We||Ee(Rt)},onFocus:function(Rt){Ue(!0),ot(!0),Ve&&Ve(Rt)},onBlur:function(Rt){if(yt.current||!me(document.activeElement)){yt.current=!1;return}Pe?setTimeout(function(){me(document.activeElement)&&Ke()},0):ue&&(De(!1),Ut.current&&Be()),ot(!1),qe&&qe(Rt)}};return Object(e.useEffect)(function(){Ut.current=!1},[ue]),Object(e.useEffect)(function(){Ut.current=!0},[pe]),Object(e.useEffect)(function(){return k(function(pt){var Rt=pt.target;ue&&(me(Rt)?rt||De(!1):(yt.current=!0,requestAnimationFrame(function(){yt.current=!1})))})}),[ht,{focused:rt,typing:We}]}function St(U){var ue=U.valueTexts,pe=U.onTextChange,me=e.useState(""),De=Object(r.a)(me,2),Ee=De[0],Pe=De[1],Be=e.useRef([]);Be.current=ue;function Ke(qe){Pe(qe),pe(qe)}function Ve(){Pe(Be.current[0])}return e.useEffect(function(){ue.every(function(qe){return qe!==Ee})&&Ve()},[ue.join("||")]),[Ee,Ke,Ve]}var Mt=t("Gytx"),Yt=t.n(Mt);function on(U,ue){var pe=ue.formatList,me=ue.generateConfig,De=ue.locale;return Object(D.a)(function(){if(!U)return[[""],""];for(var Ee="",Pe=[],Be=0;Be1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(Ve.current),rt){Ke(Qe);return}Ve.current=requestAnimationFrame(function(){Ke(Qe)})}var Ye=on(Be,{formatList:pe,generateConfig:me,locale:De}),Ie=Object(r.a)(Ye,2),We=Ie[1];function Ue(Qe){qe(Qe)}function Je(){var Qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;qe(null,Qe)}return Object(e.useEffect)(function(){Je(!0)},[U]),Object(e.useEffect)(function(){return function(){return cancelAnimationFrame(Ve.current)}},[]),[We,Ue,Je]}function qt(U){var ue,pe=U.prefixCls,me=pe===void 0?"rc-picker":pe,De=U.id,Ee=U.tabIndex,Pe=U.style,Be=U.className,Ke=U.dropdownClassName,Ve=U.dropdownAlign,qe=U.popupStyle,Ye=U.transitionName,Ie=U.generateConfig,We=U.locale,Ue=U.inputReadOnly,Je=U.allowClear,Qe=U.autoFocus,rt=U.showTime,ot=U.picker,yt=ot===void 0?"date":ot,Ut=U.format,ht=U.use12Hours,pt=U.value,Rt=U.defaultValue,Pt=U.open,pn=U.defaultOpen,vn=U.defaultOpenValue,_n=U.suffixIcon,cn=U.clearIcon,An=U.disabled,xn=U.disabledDate,ur=U.placeholder,dr=U.getPopupContainer,cr=U.pickerRef,fr=U.panelRender,hr=U.onChange,er=U.onOpenChange,Cr=U.onFocus,tr=U.onBlur,Ar=U.onMouseDown,Wt=U.onMouseUp,tn=U.onMouseEnter,un=U.onMouseLeave,Fn=U.onContextMenu,Tn=U.onClick,wn=U.direction,zn=U.autoComplete,Wn=zn===void 0?"off":zn,Ln=e.useRef(null),xr=yt==="date"&&!!rt||yt==="time",$n=W(o(Ut,yt,rt,ht)),wr=e.useRef(null),Dn=e.useRef(null),nr=Object(d.a)(null,{value:pt,defaultValue:Rt}),jr=Object(r.a)(nr,2),Qn=jr[0],Yn=jr[1],Dr=e.useState(Qn),Gn=Object(r.a)(Dr,2),rr=Gn[0],Rn=Gn[1],Mn=e.useRef(null),Pn=Object(d.a)(!1,{value:Pt,defaultValue:pn,postState:function(Vt){return An?!1:Vt},onChange:function(Vt){er&&er(Vt),!Vt&&Mn.current&&Mn.current.onClose&&Mn.current.onClose()}}),mr=Object(r.a)(Pn,2),yn=mr[0],ar=mr[1],gn=on(rr,{formatList:$n,generateConfig:Ie,locale:We}),Rr=Object(r.a)(gn,2),br=Rr[0],It=Rr[1],Lr=St({valueTexts:br,onTextChange:function(Vt){var Or=Ie.locale.parse(We.locale,Vt,$n);Or&&(!xn||!xn(Or))&&Rn(Or)}}),Jn=Object(r.a)(Lr,3),nn=Jn[0],In=Jn[1],pr=Jn[2],dn=function(Vt){Rn(Vt),Yn(Vt),hr&&!Ae(Ie,Qn,Vt)&&hr(Vt,Vt?Ie.locale.format(We.locale,Vt,$n[0]):"")},En=function(Vt){if(An&&Vt)return;ar(Vt)},kn=function(Vt){return yn&&Mn.current&&Mn.current.onKeyDown?Mn.current.onKeyDown(Vt):(Object(i.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Mr=function(){Wt&&Wt.apply(void 0,arguments),Ln.current&&(Ln.current.focus(),En(!0))},Pr=mt({blurToCancel:xr,open:yn,value:nn,triggerOpen:En,forwardKeyDown:kn,isClickOutside:function(Vt){return!G([wr.current,Dn.current],Vt)},onSubmit:function(){return xn&&xn(rr)?!1:(dn(rr),En(!1),pr(),!0)},onCancel:function(){En(!1),Rn(Qn),pr()},onFocus:Cr,onBlur:tr}),vr=Object(r.a)(Pr,2),Ir=vr[0],Sr=vr[1],fn=Sr.focused,Xn=Sr.typing;e.useEffect(function(){yn||(Rn(Qn),!br.length||br[0]===""?In(""):It!==nn&&pr())},[yn,br]),e.useEffect(function(){yn||pr()},[yt]),e.useEffect(function(){Rn(Qn)},[Qn]),cr&&(cr.current={focus:function(){Ln.current&&Ln.current.focus()},blur:function(){Ln.current&&Ln.current.blur()}});var sn=Object(a.a)(Object(a.a)({},U),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),ft=e.createElement(wt,Object.assign({},sn,{generateConfig:Ie,className:l()(Object(u.a)({},"".concat(me,"-panel-focused"),!Xn)),value:rr,locale:We,tabIndex:-1,onChange:Rn,direction:wn}));fr&&(ft=fr(ft));var Kt=e.createElement("div",{className:"".concat(me,"-panel-container"),onMouseDown:function(Vt){Vt.preventDefault()}},ft),Zn;_n&&(Zn=e.createElement("span",{className:"".concat(me,"-suffix")},_n));var Vr;Je&&Qn&&!An&&(Vr=e.createElement("span",{onMouseDown:function(Vt){Vt.preventDefault(),Vt.stopPropagation()},onMouseUp:function(Vt){Vt.preventDefault(),Vt.stopPropagation(),dn(null),En(!1)},className:"".concat(me,"-clear")},cn||e.createElement("span",{className:"".concat(me,"-clear-btn")})));var qr=function(Vt,Or){(Or==="submit"||Or!=="key"&&!xr)&&(dn(Vt),En(!1))},Hr=wn==="rtl"?"bottomRight":"bottomLeft",Wr=mn(nn,{formatList:$n,generateConfig:Ie,locale:We}),kr=Object(r.a)(Wr,3),Qr=kr[0],Yr=kr[1],Bn=kr[2];return e.createElement(T.Provider,{value:{operationRef:Mn,hideHeader:yt==="time",panelRef:wr,onSelect:qr,open:yn,defaultOpenValue:vn,onDateMouseEnter:Yr,onDateMouseLeave:Bn}},e.createElement(Dt,{visible:yn,popupElement:Kt,popupStyle:qe,prefixCls:me,dropdownClassName:Ke,dropdownAlign:Ve,getPopupContainer:dr,transitionName:Ye,popupPlacement:Hr,direction:wn},e.createElement("div",{className:l()(me,Be,(ue={},Object(u.a)(ue,"".concat(me,"-disabled"),An),Object(u.a)(ue,"".concat(me,"-focused"),fn),Object(u.a)(ue,"".concat(me,"-rtl"),wn==="rtl"),ue)),style:Pe,onMouseDown:Ar,onMouseUp:Mr,onMouseEnter:tn,onMouseLeave:un,onContextMenu:Fn,onClick:Tn},e.createElement("div",{className:l()("".concat(me,"-input"),Object(u.a)({},"".concat(me,"-input-placeholder"),!!Qr)),ref:Dn},e.createElement("input",Object.assign({id:De,tabIndex:Ee,disabled:An,readOnly:Ue||!Xn,value:Qr||nn,onChange:function(Vt){In(Vt.target.value)},autoFocus:Qe,placeholder:ur,ref:Ln,title:nn},Ir,{size:n(yt,$n[0])},oe(U),{autoComplete:Wn})),Zn,Vr))))}var On=function(U){Object(m.a)(pe,U);var ue=Object(v.a)(pe);function pe(){var me;return Object(O.a)(this,pe),me=ue.apply(this,arguments),me.pickerRef=e.createRef(),me.focus=function(){me.pickerRef.current&&me.pickerRef.current.focus()},me.blur=function(){me.pickerRef.current&&me.pickerRef.current.blur()},me}return Object(f.a)(pe,[{key:"render",value:function(){return e.createElement(qt,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),pe}(e.Component),sr=On;function lr(U,ue,pe){var me=U.picker,De=U.locale,Ee=U.selectedValue,Pe=U.disabledDate,Be=U.disabled,Ke=U.generateConfig,Ve=$(Ee,0),qe=$(Ee,1);function Ye(Qe){var rt=Ke.getYear(Qe),ot=Ke.locale.getWeek(De.locale,Qe);return rt*100+ot}function Ie(Qe){var rt=Ke.getYear(Qe),ot=Ke.getMonth(Qe);return rt*100+ot}function We(Qe){var rt=Ke.getYear(Qe),ot=ee(Ke,Qe);return rt*10+ot}var Ue=e.useCallback(function(Qe){if(Pe&&Pe(Qe))return!0;if(Be[1]&&qe)return!Me(Ke,Qe,qe)&&Ke.isAfter(Qe,qe);if(ue&&qe)switch(me){case"quarter":return We(Qe)>We(qe);case"month":return Ie(Qe)>Ie(qe);case"week":return Ye(Qe)>Ye(qe);default:return!Me(Ke,Qe,qe)&&Ke.isAfter(Qe,qe)}return!1},[Pe,Be[1],qe,ue]),Je=e.useCallback(function(Qe){if(Pe&&Pe(Qe))return!0;if(Be[0]&&Ve)return!Me(Ke,Qe,qe)&&Ke.isAfter(Ve,Qe);if(pe&&Ve)switch(me){case"quarter":return We(Qe)0&&arguments[0]!==void 0?arguments[0]:!1,at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},vt=null;Bn&&Ur&&Ur[0]&&Ur[1]&&Ue.isAfter(Ur[1],Ur[0])&&(vt=Ur);var kt=pt;if(pt&&Object(g.a)(pt)==="object"&&pt.defaultValue){var hn=pt.defaultValue;kt=Object(a.a)(Object(a.a)({},pt),{},{defaultValue:$(hn,It)||void 0})}var Nr=null;return cr&&(Nr=function(or,gr){return cr(or,gr,{range:It?"end":"start"})}),e.createElement(_e.Provider,{value:{inRange:!0,panelPosition:Nt,rangedValue:Xa||fn,hoverRangedValue:vt}},e.createElement(wt,Object.assign({},U,at,{dateRender:Nr,showTime:kt,mode:Kt[It],generateConfig:Ue,style:void 0,direction:nr,disabledDate:It===0?Wr:kr,disabledTime:function(or){return dr?dr(or,It===0?"start":"end"):!1},className:l()(Object(u.a)({},"".concat(Ee,"-panel-focused"),It===0?!Da:!Na)),value:$(fn,It),locale:Je,tabIndex:-1,onPanelChange:function(or,gr){Vr(X(Kt,gr,It),X(fn,or,It));var Er=or;Nt==="right"&&Kt[It]===gr&&(Er=Se(Er,gr,Ue,-1)),vr(Er,It)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var _r=0,ja=0;It&&Mn.current&&mr.current&&Rn.current&&(_r=Mn.current.offsetWidth+mr.current.offsetWidth,Rn.current.offsetWidth&&_r>Rn.current.offsetWidth&&(ja=_r));var po=nr==="rtl"?{right:_r}:{left:_r};function vo(){var Nt,at=Nn(Ee,Kt[It],Fn),vt=Kn({prefixCls:Ee,components:wr,needConfirmButton:Dr,okDisabled:!$(fn,It)||ur&&ur(fn[It]),locale:Je,rangeList:mo,onOk:function(){$(fn,It)&&(zr(fn,It),$n&&$n(fn))}});if(ht!=="time"&&!pt){var kt=Pr(It),hn=Se(kt,ht,Ue),Nr=Kt[It],yr=Nr===ht,or=aa(yr?"left":!1,{pickerValue:kt,onPickerValueChange:function(qn){vr(qn,It)}}),gr=aa("right",{pickerValue:hn,onPickerValueChange:function(qn){vr(Se(qn,ht,Ue,-1),It)}});nr==="rtl"?Nt=e.createElement(e.Fragment,null,gr,yr&&or):Nt=e.createElement(e.Fragment,null,or,yr&&gr)}else Nt=aa();var Er=e.createElement(e.Fragment,null,e.createElement("div",{className:"".concat(Ee,"-panels")},Nt),(at||vt)&&e.createElement("div",{className:"".concat(Ee,"-footer")},at,vt));return fr&&(Er=fr(Er)),e.createElement("div",{className:"".concat(Ee,"-panel-container"),style:{marginLeft:ja},ref:Rn,onMouseDown:function(qn){qn.preventDefault()}},Er)}var go=e.createElement("div",{className:l()("".concat(Ee,"-range-wrapper"),"".concat(Ee,"-").concat(ht,"-range-wrapper")),style:{minWidth:Fa}},e.createElement("div",{className:"".concat(Ee,"-range-arrow"),style:po}),vo()),La;tr&&(La=e.createElement("span",{className:"".concat(Ee,"-suffix")},tr));var ka;Cr&&($(dn,0)&&!nn[0]||$(dn,1)&&!nn[1])&&(ka=e.createElement("span",{onMouseDown:function(at){at.preventDefault(),at.stopPropagation()},onMouseUp:function(at){at.preventDefault(),at.stopPropagation();var vt=dn;nn[0]||(vt=X(vt,null,0)),nn[1]||(vt=X(vt,null,1)),zr(vt,null),Br(!1,It)},className:"".concat(Ee,"-clear")},Ar||e.createElement("span",{className:"".concat(Ee,"-clear-btn")})));var Ba={size:n(ht,gn[0])},oa=0,ia=0;Mn.current&&Pn.current&&mr.current&&(It===0?ia=Mn.current.offsetWidth:(oa=_r,ia=Pn.current.offsetWidth));var bo=nr==="rtl"?{right:oa}:{left:oa},yo=function(at,vt){var kt=X(fn,at,It);vt==="submit"||vt!=="key"&&!Dr?(zr(kt,It),It===0?Aa():wa()):Xn(kt)};return e.createElement(T.Provider,{value:{operationRef:Jn,hideHeader:ht==="time",onDateMouseEnter:no,onDateMouseLeave:ro,hideRanges:!0,onSelect:yo,open:Bn}},e.createElement(Dt,{visible:Bn,popupElement:go,popupStyle:Ve,prefixCls:Ee,dropdownClassName:qe,dropdownAlign:Ie,getPopupContainer:We,transitionName:Ye,range:!0,direction:nr},e.createElement("div",Object.assign({ref:rr,className:l()(Ee,"".concat(Ee,"-range"),Ke,(ue={},Object(u.a)(ue,"".concat(Ee,"-disabled"),nn[0]&&nn[1]),Object(u.a)(ue,"".concat(Ee,"-focused"),It===0?Ta:Ia),Object(u.a)(ue,"".concat(Ee,"-rtl"),nr==="rtl"),ue)),style:Be,onClick:lo,onMouseDown:uo},oe(U)),e.createElement("div",{className:l()("".concat(Ee,"-input"),(pe={},Object(u.a)(pe,"".concat(Ee,"-input-active"),It===0),Object(u.a)(pe,"".concat(Ee,"-input-placeholder"),!!Ca),pe)),ref:Mn},e.createElement("input",Object.assign({id:Pe,disabled:nn[0],readOnly:tn||!Da,value:Ca||Xr,onChange:function(at){ha(at.target.value)},autoFocus:rt,placeholder:$(Qe,0)||"",ref:yn},oo,Ba,{autoComplete:Yn}))),e.createElement("div",{className:"".concat(Ee,"-range-separator"),ref:mr},pn),e.createElement("div",{className:l()("".concat(Ee,"-input"),(me={},Object(u.a)(me,"".concat(Ee,"-input-active"),It===1),Object(u.a)(me,"".concat(Ee,"-input-placeholder"),!!xa),me)),ref:Pn},e.createElement("input",Object.assign({disabled:nn[1],readOnly:tn||!Na,value:xa||Zr,onChange:function(at){pa(at.target.value)},placeholder:$(Qe,1)||"",ref:ar},so,Ba,{autoComplete:Yn}))),e.createElement("div",{className:"".concat(Ee,"-active-bar"),style:Object(a.a)(Object(a.a)({},bo),{},{width:ia,position:"absolute"})}),La,ka)))}var Hn=function(U){Object(m.a)(pe,U);var ue=Object(v.a)(pe);function pe(){var me;return Object(O.a)(this,pe),me=ue.apply(this,arguments),me.pickerRef=e.createRef(),me.focus=function(){me.pickerRef.current&&me.pickerRef.current.focus()},me.blur=function(){me.pickerRef.current&&me.pickerRef.current.blur()},me}return Object(f.a)(pe,[{key:"render",value:function(){return e.createElement(Un,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),pe}(e.Component),Ua=Hn,Eo=x.b=sr},onxn:function(ie,x){ie.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAQFElEQVRoQ71aCXRUVZr+7ttqr6yVPSRASCBIVFBUWgUURZFW7FYa9Xhc2lHWGdM9bYszaqa1tcUFV9RRu3V6etw4DQJqY4MDLUJQEQIYEsieqspW2Wp/9ZY7570ia1VIRXH+cyo59e6/3O/+//3vf/9XBGeR8sr/lipS6QpKyMUApoOiGISmgBIbJZSAwkdA+ihQB0JqCPAVy3K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UwrKpjDHR93OdTeicVLgi6VwUJ7t89ijK4sQ2HP6dGrDm2PhLotetiNpgPVZXi741I8aN0t80R9Pv/VU4P9kJi0VLnm8iU5cvsOAu1Y//8jLZMlF3SBN0ZrRNFnBG8RRxza2utYf3syDjWVoIjV30Z8kzc7aR6579BgYRl30tvXLH7rPLn+7h8bjlZ5mFP9MDt8EMxD13lt4lpb2ZQc0qegnTeyyKOv2QE5FO3OSgzvFjjporyX6qKNwdMU/6UxpWTfmsuOFCrtZT8WKMKqyJkdbfSPpn5nql4XamMamN5GB0TvUK4KE6HbTqS5ma+eahgtO2ZY9fx2TlKtVziZp3Zl/FigUiZ3wOIYWZ/52pLR35oOU6oPtuw+dNdl6QfsAHmYlMZcEpiXsak6tnQY70bWubrUepjkNJTKTbGv8s8SSlOaD5Z0LwhL4XWmQvSa42rWrgf7+Fn7byVVV5KX6mLbTWcKueEa6etz+M+OphwqlZtmnSUME1bjJyb6vOmm8tc3PvrCeMIJZTLt5zBb1i59tUxuvDeRm+14RscbD1IB9Uo6ZnHRfp2XsX4489Ujy8eT08YTAjSg6Plf333p9HDLpzPlpnEvg4kYH83TrZrxcugy7IkU4SnrdszlW6AS5iOzndzu2FAbexmKY2RCgDR5zVsfrFm2YSrc92cqveNe2xMF9pk4HZvFMmQwflxrqMZFXKub49R1+ZtOne5hJaZpwoAG1GpXjhf/YXuxTK37pyLFPZSGErM7JleYCPVGRN7kreaXsp45OnY7aAwN3xvQcH1b1y65VabMwzMU5zQ79bMKmLHLm2GCEXC0jUkVRSLUF6hdW62c8n7WyzXHfsianBVAg16rqGCOerYt+E4tuOIbviR3suK+cBp1Zdpp0GRVRfZl4/XHD7AzTpnYSFWB0vHlzS2TDiz/cPn4vx2YAML/AxiD3K8wfl5pAAAAAElFTkSuQmCC"},pzxd:function(ie,x,t){var O=t("bYtY"),f=O.retrieve2,m=O.retrieve3,v=O.each,u=O.normalizeCssArray,a=O.isString,r=O.isObject,e=t("6GrX"),s=t("VpOo"),l=t("Xnb7"),i=t("fW2E"),d=t("gut8"),g=d.ContextCachedBy,E=d.WILL_BE_RESTORED,y=e.DEFAULT_FONT,T={left:1,right:1,center:1},N={top:1,bottom:1,middle:1},L=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],p={},C={};function h(J){return D(J),v(J.rich,D),J}function D(J){if(J){J.font=e.makeFont(J);var P=J.textAlign;P==="middle"&&(P="center"),J.textAlign=P==null||T[P]?P:"left";var Y=J.textVerticalAlign||J.textBaseline;Y==="center"&&(Y="middle"),J.textVerticalAlign=Y==null||N[Y]?Y:"top";var W=J.textPadding;W&&(J.textPadding=u(J.textPadding))}}function B(J,P,Y,W,oe,$){W.rich?w(J,P,Y,W,oe,$):H(J,P,Y,W,oe,$)}function H(J,P,Y,W,oe,$){"use strict";var X=F(W),Z,se=!1,ae=P.__attrCachedBy===g.PLAIN_TEXT;$!==E?($&&(Z=$.style,se=!X&&ae&&Z),P.__attrCachedBy=X?g.NONE:g.PLAIN_TEXT):ae&&(P.__attrCachedBy=g.NONE);var ve=W.font||y;(!se||ve!==(Z.font||y))&&(P.font=ve);var V=J.__computedFont;J.__styleFont!==ve&&(J.__styleFont=ve,V=J.__computedFont=P.font);var re=W.textPadding,I=W.textLineHeight,q=J.__textCotentBlock;(!q||J.__dirtyText)&&(q=J.__textCotentBlock=e.parsePlainText(Y,V,re,I,W.truncate));var fe=q.outerHeight,z=q.lines,A=q.lineHeight,S=b(C,J,W,oe),K=S.baseX,ee=S.baseY,de=S.textAlign||"left",he=S.textVerticalAlign;o(P,W,oe,K,ee);var Me=e.adjustTextY(ee,fe,he),ce=K,be=Me;if(X||re){var Ae=e.getWidth(Y,V),ye=Ae;re&&(ye+=re[1]+re[3]);var ke=e.adjustTextX(K,ye,de);X&&_(J,P,W,ke,Me,ye,fe),re&&(ce=G(K,de,re),be+=re[0])}P.textAlign=de,P.textBaseline="middle",P.globalAlpha=W.opacity||1;for(var Se=0;Se=0&&(Se=de[ke],Se.textAlign==="right");)n(J,P,Se,W,Me,A,ye,"right"),ce-=Se.width,ye-=Se.width,ke--;for(Ae+=($-(Ae-z)-(S-ye)-ce)/2;be<=ke;)Se=de[be],n(J,P,Se,W,Me,A,Ae+Se.width/2,"center"),Ae+=Se.width,be++;A+=Me}}function o(J,P,Y,W,oe){if(Y&&P.textRotation){var $=P.textOrigin;$==="center"?(W=Y.width/2+Y.x,oe=Y.height/2+Y.y):$&&(W=$[0]+Y.x,oe=$[1]+Y.y),J.translate(W,oe),J.rotate(-P.textRotation),J.translate(-W,-oe)}}function n(J,P,Y,W,oe,$,X,Z){var se=W.rich[Y.styleName]||{};se.text=Y.text;var ae=Y.textVerticalAlign,ve=$+oe/2;ae==="top"?ve=$+Y.height/2:ae==="bottom"&&(ve=$+oe-Y.height/2),!Y.isLineHolder&&F(se)&&_(J,P,se,Z==="right"?X-Y.width:Z==="center"?X-Y.width/2:X,ve-Y.height/2,Y.width,Y.height);var V=Y.textPadding;V&&(X=G(X,Z,V),ve-=Y.height/2-V[2]-Y.textHeight/2),R(P,"shadowBlur",m(se.textShadowBlur,W.textShadowBlur,0)),R(P,"shadowColor",se.textShadowColor||W.textShadowColor||"transparent"),R(P,"shadowOffsetX",m(se.textShadowOffsetX,W.textShadowOffsetX,0)),R(P,"shadowOffsetY",m(se.textShadowOffsetY,W.textShadowOffsetY,0)),R(P,"textAlign",Z),R(P,"textBaseline","middle"),R(P,"font",Y.font||y);var re=M(se.textStroke||W.textStroke,q),I=j(se.textFill||W.textFill),q=f(se.textStrokeWidth,W.textStrokeWidth);re&&(R(P,"lineWidth",q),R(P,"strokeStyle",re),P.strokeText(Y.text,X,ve)),I&&(R(P,"fillStyle",I),P.fillText(Y.text,X,ve))}function F(J){return!!(J.textBackgroundColor||J.textBorderWidth&&J.textBorderColor)}function _(J,P,Y,W,oe,$,X){var Z=Y.textBackgroundColor,se=Y.textBorderWidth,ae=Y.textBorderColor,ve=a(Z);if(R(P,"shadowBlur",Y.textBoxShadowBlur||0),R(P,"shadowColor",Y.textBoxShadowColor||"transparent"),R(P,"shadowOffsetX",Y.textBoxShadowOffsetX||0),R(P,"shadowOffsetY",Y.textBoxShadowOffsetY||0),ve||se&&ae){P.beginPath();var V=Y.textBorderRadius;V?s.buildPath(P,{x:W,y:oe,width:$,height:X,r:V}):P.rect(W,oe,$,X),P.closePath()}if(ve)if(R(P,"fillStyle",Z),Y.fillOpacity!=null){var re=P.globalAlpha;P.globalAlpha=Y.fillOpacity*Y.opacity,P.fill(),P.globalAlpha=re}else P.fill();else if(r(Z)){var I=Z.image;I=l.createOrUpdateImage(I,null,J,k,Z),I&&l.isImageReady(I)&&P.drawImage(I,W,oe,$,X)}if(se&&ae)if(R(P,"lineWidth",se),R(P,"strokeStyle",ae),Y.strokeOpacity!=null){var re=P.globalAlpha;P.globalAlpha=Y.strokeOpacity*Y.opacity,P.stroke(),P.globalAlpha=re}else P.stroke()}function k(J,P){P.image=J}function b(J,P,Y,W){var oe=Y.x||0,$=Y.y||0,X=Y.textAlign,Z=Y.textVerticalAlign;if(W){var se=Y.textPosition;if(se instanceof Array)oe=W.x+Q(se[0],W.width),$=W.y+Q(se[1],W.height);else{var ae=P&&P.calculateTextPosition?P.calculateTextPosition(p,Y,W):e.calculateTextPosition(p,Y,W);oe=ae.x,$=ae.y,X=X||ae.textAlign,Z=Z||ae.textVerticalAlign}var ve=Y.textOffset;ve&&(oe+=ve[0],$+=ve[1])}return J=J||{},J.baseX=oe,J.baseY=$,J.textAlign=X,J.textVerticalAlign=Z,J}function R(J,P,Y){return J[P]=i(J,P,Y),J[P]}function M(J,P){return J==null||P<=0||J==="transparent"||J==="none"?null:J.image||J.colorStops?"#000":J}function j(J){return J==null||J==="none"?null:J.image||J.colorStops?"#000":J}function Q(J,P){return typeof J=="string"?J.lastIndexOf("%")>=0?parseFloat(J)/100*P:parseFloat(J):J}function G(J,P,Y){return P==="right"?J-Y[1]:P==="center"?J+Y[3]/2-Y[1]/2:J+Y[3]}function ne(J,P){return J!=null&&(J||P.textBackgroundColor||P.textBorderWidth&&P.textBorderColor||P.textPadding)}x.normalizeTextStyle=h,x.renderText=B,x.getBoxPosition=b,x.getStroke=M,x.getFill=j,x.parsePercent=Q,x.needDrawText=ne},qH13:function(ie,x,t){var O=t("ItGF"),f=t("QBsz"),m=f.applyTransform,v=t("mFDi"),u=t("Qe9p"),a=t("6GrX"),r=t("pzxd"),e=t("ni6a"),s=t("Gev7"),l=t("Dagg"),i=t("dqUG"),d=t("y+Vt"),g=t("IMiH"),E=t("QuXc"),y=t("06Qe"),T=g.CMD,N=Math.round,L=Math.sqrt,p=Math.abs,C=Math.cos,h=Math.sin,D=Math.max;if(!O.canvasSupported){var B=",",H="progid:DXImageTransform.Microsoft",w=21600,c=w/2,o=1e5,n=1e3,F=function(K){K.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",K.coordsize=w+","+w,K.coordorigin="0,0"},_=function(K){return String(K).replace(/&/g,"&").replace(/"/g,""")},k=function(K,ee,de){return"rgb("+[K,ee,de].join(",")+")"},b=function(K,ee){ee&&K&&ee.parentNode!==K&&K.appendChild(ee)},R=function(K,ee){ee&&K&&ee.parentNode===K&&K.removeChild(ee)},M=function(K,ee,de){return(parseFloat(K)||0)*o+(parseFloat(ee)||0)*n+de},j=r.parsePercent,Q=function(K,ee,de){var he=u.parse(ee);de=+de,isNaN(de)&&(de=1),he&&(K.color=k(he[0],he[1],he[2]),K.opacity=de*he[3])},G=function(K){var ee=u.parse(K);return[k(ee[0],ee[1],ee[2]),ee[3]]},ne=function(K,ee,de){var he=ee.fill;if(he!=null)if(he instanceof E){var Me,ce=0,be=[0,0],Ae=0,ye=1,ke=de.getBoundingRect(),Se=ke.width,Ne=ke.height;if(he.type==="linear"){Me="gradient";var _e=de.transform,$e=[he.x*Se,he.y*Ne],He=[he.x2*Se,he.y2*Ne];_e&&(m($e,$e,_e),m(He,He,_e));var nt=He[0]-$e[0],et=He[1]-$e[1];ce=Math.atan2(nt,et)*180/Math.PI,ce<0&&(ce+=360),ce<1e-6&&(ce=0)}else{Me="gradientradial";var $e=[he.x*Se,he.y*Ne],_e=de.transform,Xe=de.scale,st=Se,ut=Ne;be=[($e[0]-ke.x)/st,($e[1]-ke.y)/ut],_e&&m($e,$e,_e),st/=Xe[0]*w,ut/=Xe[1]*w;var ct=D(st,ut);Ae=2*0/ct,ye=2*he.r/ct-Ae}var Ze=he.colorStops.slice();Ze.sort(function(ge,te){return ge.offset-te.offset});for(var bt=Ze.length,lt=[],Et=[],jt=0;jt=2){var rn=lt[0][0],ze=lt[1][0],Ce=lt[0][1]*ee.opacity,Oe=lt[1][1]*ee.opacity;K.type=Me,K.method="none",K.focus="100%",K.angle=ce,K.color=rn,K.color2=ze,K.colors=Et.join(","),K.opacity=Oe,K.opacity2=Ce}Me==="radial"&&(K.focusposition=be.join(","))}else Q(K,he,ee.opacity)},J=function(K,ee){ee.lineDash&&(K.dashstyle=ee.lineDash.join(" ")),ee.stroke!=null&&!(ee.stroke instanceof E)&&Q(K,ee.stroke,ee.opacity)},P=function(K,ee,de,he){var Me=ee==="fill",ce=K.getElementsByTagName(ee)[0];de[ee]!=null&&de[ee]!=="none"&&(Me||!Me&&de.lineWidth)?(K[Me?"filled":"stroked"]="true",de[ee]instanceof E&&R(K,ce),ce||(ce=y.createNode(ee)),Me?ne(ce,de,he):J(ce,de),b(K,ce)):(K[Me?"filled":"stroked"]="false",R(K,ce))},Y=[[],[],[]],W=function(K,ee){var de=T.M,he=T.C,Me=T.L,ce=T.A,be=T.Q,Ae=[],ye,ke,Se,Ne,_e,$e,He=K.data,nt=K.len();for(Ne=0;Ne.01?te&&(le+=270/w):Math.abs(we-rn)<1e-4?te&&leGt?Xe-=270/w:Xe+=270/w:te&&wern?et+=270/w:et-=270/w),Ae.push(xe,N(((Gt-ze)*Et+bt)*w-c),B,N(((rn-Ce)*jt+lt)*w-c),B,N(((Gt+ze)*Et+bt)*w-c),B,N(((rn+Ce)*jt+lt)*w-c),B,N((le*Et+bt)*w-c),B,N((we*jt+lt)*w-c),B,N((et*Et+bt)*w-c),B,N((Xe*jt+lt)*w-c)),_e=et,$e=Xe;break;case T.R:var Re=Y[0],je=Y[1];Re[0]=He[Ne++],Re[1]=He[Ne++],je[0]=Re[0]+He[Ne++],je[1]=Re[1]+He[Ne++],ee&&(m(Re,Re,ee),m(je,je,ee)),Re[0]=N(Re[0]*w-c),je[0]=N(je[0]*w-c),Re[1]=N(Re[1]*w-c),je[1]=N(je[1]*w-c),Ae.push(" m ",Re[0],B,Re[1]," l ",je[0],B,Re[1]," l ",je[0],B,je[1]," l ",Re[0],B,je[1]);break;case T.Z:Ae.push(" x ")}if(ye>0){Ae.push(ke);for(var Te=0;Tese&&(Z=0,X={});var de=ae.style,he;try{de.font=K,he=de.fontFamily.split(",")[0]}catch(Me){}ee={style:de.fontStyle||$,variant:de.fontVariant||$,weight:de.fontWeight||$,size:parseFloat(de.fontSize||12)|0,family:he||"Microsoft YaHei"},X[K]=ee,Z++}return ee},V;a.$override("measureText",function(K,ee){var de=y.doc;V||(V=de.createElement("div"),V.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",y.doc.body.appendChild(V));try{V.style.font=ee}catch(he){}return V.innerHTML="",V.appendChild(de.createTextNode(K)),{width:V.offsetWidth}});for(var re=new v,I=function(K,ee,de,he){var Me=this.style;this.__dirty&&r.normalizeTextStyle(Me,!0);var ce=Me.text;if(ce!=null&&(ce+=""),!ce)return;if(Me.rich){var be=a.parseRichText(ce,Me);ce=[];for(var Ae=0;Ae=0&&b<=6&&(R===0||R===6)||R>=0&&R<=6&&(b===0||b===6)||b>=2&&b<=4&&R>=2&&R<=4?w.set(_+b,k+R,!0,!0):w.set(_+b,k+R,!1,!0)}}}function N(w){for(var c=w.size,o=8;o>b&1)===1,w.set(F,_,k,!0),w.set(_,F,k,!0)}function C(w,c,o){var n=w.size,F=d.getEncodedBits(c,o),_,k;for(_=0;_<15;_++)k=(F>>_&1)===1,_<6?w.set(_,8,k,!0):_<8?w.set(_+1,8,k,!0):w.set(n-15+_,8,k,!0),_<8?w.set(8,n-_-1,k,!0):_<9?w.set(8,15-_-1+1,k,!0):w.set(8,15-_-1,k,!0);w.set(n-8,8,1,!0)}function h(w,c){for(var o=w.size,n=-1,F=o-1,_=7,k=0,b=o-1;b>0;b-=2)for(b===6&&b--;;){for(var R=0;R<2;R++)if(!w.isReserved(F,b-R)){var M=!1;k>>_&1)===1),w.set(F,b-R,M),_--,_===-1&&(k++,_=7)}if(F+=n,F<0||o<=F){F-=n,n=-n;break}}}function D(w,c,o){var n=new v;o.forEach(function(M){n.put(M.mode.bit,4),n.put(M.getLength(),g.getCharCountIndicator(M.mode,w)),M.write(n)});var F=f.getSymbolTotalCodewords(w),_=s.getTotalCodewordsCount(w,c),k=(F-_)*8;for(n.getLengthInBits()+4<=k&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);for(var b=(k-n.getLengthInBits())/8,R=0;Rf&&a>v||au?r:0}ie.exports=t},iXp4:function(ie,x,t){var O=t("ItGF"),f=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function m(v){return O.browser.ie&&O.browser.version>=11?function(){var u=this.__clipPaths,a=this.style,r;if(u)for(var e=0;e0){var i=O.alloc(this.degree);return s.copy(i,l),i}return s},ie.exports=v},jTL6:function(ie,x,t){var O=t("y+Vt"),f=O.extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(m,v){var u=v.cx,a=v.cy,r=Math.max(v.r,0),e=v.startAngle,s=v.endAngle,l=v.clockwise,i=Math.cos(e),d=Math.sin(e);m.moveTo(i*r+u,d*r+a),m.arc(u,a,r,e,s,!l)}});ie.exports=f},ji0R:function(ie,x,t){ie.exports=t.p+"static/douyu.3e6df9ee.jpg"},juDX:function(ie,x,t){t("P47w");var O=t("aX58"),f=O.registerPainter,m=t("3CBa");f("svg",m)},kPWJ:function(ie,x,t){ie.exports=t.p+"static/question.cb52bef9.gif"},kPYp:function(ie,x){ie.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF8AAAAUCAYAAADr0+FaAAANEklEQVRYR8WZe5RX1XXHP/vce3/zHoaXgFp5DQyOQLRgUTEtDW1qYyVmZUGNklRdiRpKE3lHfPyc4TngIBgfC0wx1ixt1NRWal2kotbE2lbRiCIISBCGhzDAvGd+87v37K5z5zfDzMCM46pr9fw1a+45+5zz3fvs/d3fn4yr1F8Do0UIUb74UFR8Gm3IO/Wf8MThat7mOYnaDZUmNUF/htpWLlePK4xwCcoQICHQbOGoKDuM4U1p5r0Px1DNrDPrezzQs+qNPUh/o4xXj6tRJhlhGEqeQNrCCYXdGvGfFt5JNHLoozJp7WyvdI0OtR4LEK7CstUIWyJLTSRcLfCnvlAiUKSgCEfV8o6NeMVE/G53itOUiXX3Sxcx2ov4qhG+qjBWoFChWYUqIt6VgFeblR0H5lEL0oGyjKvU1yHezPviyHdZ0Ro180basvD398n77svIFTokK5vrgW8LTELJRwgA6bTSHcaBckot/yWGX2YZtv5untT0dJ7SpOZrAX9mLTeIYarAIIQEYLrZTQNNFj7A8rx6/GrPfDncPmdihV6Y9nkA+Ot4nrIXaDSGElH6KfjdzpBSpVo8ttVU8Xitx/7hw/imWmYD4wXy6Iqjje9mOGYj/uX0bjYf/5nsaLcpY9fqDZ5hNTD8/wi+27bB+CzfOVcqSiq0BMPdRpiBUNANmHNvJUQo1ZFls0lTuXupnOw+0UVamMsCz+eHCuf3MWgUjZ3w76kUZQeW8j4iOnadXmCUNQI3xvsIbl7bX70MEdKpFLutcCA7iz/BxvfrfY2hNVXDb2v2s/TkU/Lf8SZXrtOcUxFfF8P1AiNVSYj0aihUGOoCu/vFFVpQlpmQX1iflQg3dMxxR1OaVHERfUIglXFKf6AIIbs97SnUq7I5VFZ+skiOt+NwSVIHpAu4wwgLBAZ04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PEFWOlXqFKlI+s8prfwG92lnXVXkoq9HwTcD/KdSp8mGrmyVSaf+pJJmjff/gKHZaTxR3G8E1rKWyoY4MvbOwJfIdIcSUX+8Ic1yg6yT6Eb7Q1Wc4BORRk+RQZQ2DD3n8Y+Lwn4edT/cEcOd0xL6nmyn5knWghPzuL7JQQJMC0umjzafUbaG5J0XigjFSfeHuHYZXSJIH0Iz+VJtczBL6H58pLZAhTaVqKCmnYfoSWc4l6Tko/nscg8clvMtQPyOFUn/oRVCauJZcs+jeHJFLHOX1wFTW9MkEnyg0kP2EpitJ4+YVU/S8v1xqrW4H9MAAAAABJRU5ErkJggg=="},"kVK+":function(ie,x){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */x.read=function(t,O,f,m,v){var u,a,r=v*8-m-1,e=(1<>1,l=-7,i=f?v-1:0,d=f?-1:1,g=t[O+i];for(i+=d,u=g&(1<<-l)-1,g>>=-l,l+=r;l>0;u=u*256+t[O+i],i+=d,l-=8);for(a=u&(1<<-l)-1,u>>=-l,l+=m;l>0;a=a*256+t[O+i],i+=d,l-=8);if(u===0)u=1-s;else{if(u===e)return a?NaN:(g?-1:1)*Infinity;a=a+Math.pow(2,m),u=u-s}return(g?-1:1)*a*Math.pow(2,u-m)},x.write=function(t,O,f,m,v,u){var a,r,e,s=u*8-v-1,l=(1<>1,d=v===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=m?0:u-1,E=m?1:-1,y=O<0||O===0&&1/O<0?1:0;for(O=Math.abs(O),isNaN(O)||O===Infinity?(r=isNaN(O)?1:0,a=l):(a=Math.floor(Math.log(O)/Math.LN2),O*(e=Math.pow(2,-a))<1&&(a--,e*=2),a+i>=1?O+=d/e:O+=d*Math.pow(2,1-i),O*e>=2&&(a++,e/=2),a+i>=l?(r=0,a=l):a+i>=1?(r=(O*e-1)*Math.pow(2,v),a=a+i):(r=O*Math.pow(2,i-1)*Math.pow(2,v),a=0));v>=8;t[f+g]=r&255,g+=E,r/=256,v-=8);for(a=a<0;t[f+g]=a&255,g+=E,a/=256,s-=8);t[f+g-E]|=y*128}},"kk9/":function(ie,x,t){var O=t("e/Dd").getSymbolSize,f=7;x.getPositions=function(v){var u=O(v);return[[0,0],[u-f,0],[0,u-f]]}},l2Kq:function(ie,x,t){ie.exports=t.p+"static/match_ad.24dc22fd.jpg"},lYJp:function(ie,x,t){var O=t("e/Dd"),f=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,m=1<<14|1<<12|1<<10|1<<4|1<<1,v=O.getBCHDigit(f);x.getEncodedBits=function(a,r){for(var e=a.bit<<3|r,s=e<<10;O.getBCHDigit(s)-v>=0;)s^=f<f+e&&r>v+e||rO+e&&a>m+e||a=l.x&&e<=l.x+l.width&&s>=l.y&&s<=l.y+l.height},clone:function(){return new a(this.x,this.y,this.width,this.height)},copy:function(e){this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},a.create=function(e){return new a(e.x,e.y,e.width,e.height)};var r=a;ie.exports=r},mLcG:function(ie,x){var t=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(O){setTimeout(O,16)};ie.exports=t},mgmH:function(ie,x,t){"use strict";t.d(x,"d",function(){return g}),t.d(x,"b",function(){return E}),t.d(x,"e",function(){return y}),t.d(x,"c",function(){return D}),t.d(x,"n",function(){return N}),t.d(x,"g",function(){return L}),t.d(x,"h",function(){return p}),t.d(x,"j",function(){return h}),t.d(x,"a",function(){return T}),t.d(x,"l",function(){return B}),t.d(x,"f",function(){return H}),t.d(x,"k",function(){return w}),t.d(x,"m",function(){return c}),t.d(x,"i",function(){return o}),t.d(x,"o",function(){return n}),t.d(x,"r",function(){return F}),t.d(x,"q",function(){return _}),t.d(x,"p",function(){return k});var O=t("miYZ"),f=t("tsqr"),m=t("k1fw"),v=t("9og8"),u=t("WmNS"),a=t.n(u),r=t("oUNq"),e=t("9kvl"),s=t("1vsH"),l=t("m3rI"),i=function(){Object(e.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},d=function(){Object(e.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},g=function(){var b=Object(v.a)(a.a.mark(function R(M){var j;return a.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return i(),G.next=3,Object(r.s)(Object(m.a)({},M));case 3:if(j=G.sent,!(j.status===0)){G.next=7;break}return G.next=7,Object(s.u)("",Object(s.U)({url:l.a.API_SERVER+"/api/courses/".concat(M.coursesId,"/export_couser_info.json"),query:M}));case 7:d();case 8:case"end":return G.stop()}},R)}));return function(M){return b.apply(this,arguments)}}(),E=function(){var b=Object(v.a)(a.a.mark(function R(M){var j;return a.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(r.q)(Object(m.a)({},M));case 2:if(j=G.sent,!(j.status===0)){G.next=8;break}f.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),e.d.push("/classrooms/".concat(M.coursesId,"/exportlist/course_member_act_score")),G.next=13;break;case 8:if(!(j.status===-2)){G.next=12;break}return G.abrupt("return",j);case 12:j.status===-3&&(Object(e.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),e.d.push("/classrooms/".concat(M.coursesId,"/exportlist/course_member_act_score")));case 13:case"end":return G.stop()}},R)}));return function(M){return b.apply(this,arguments)}}(),y=function(){var b=Object(v.a)(a.a.mark(function R(M){var j;return a.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(r.t)(Object(m.a)({},M));case 2:if(j=G.sent,!(j.status===0)){G.next=8;break}f.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),e.d.push("/classrooms/".concat(M.coursesId,"/exportlist/course_total_score")),G.next=13;break;case 8:if(!(j.status===-2)){G.next=12;break}return G.abrupt("return",j);case 12:j.status===-3&&(Object(e.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),e.d.push("/classrooms/".concat(M.coursesId,"/exportlist/course_total_score")));case 13:case"end":return G.stop()}},R)}));return function(M){return b.apply(this,arguments)}}(),D=function(){var b=Object(v.a)(a.a.mark(function R(M){var j;return a.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(r.r)(Object(m.a)({},M));case 2:if(j=G.sent,!(j.status===0)){G.next=8;break}f.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),e.d.push("/classrooms/".concat(M.coursesId,"/exportlist/course_total_exercise_and_other")),G.next=13;break;case 8:if(!(j.status===-2)){G.next=12;break}return G.abrupt("return",j);case 12:j.status===-3&&(Object(e.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),e.d.push("/classrooms/".concat(M.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return G.stop()}},R)}));return function(M){return b.apply(this,arguments)}}(),N=function(){var b=Object(v.a)(a.a.mark(function R(M){var j;return a.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(r.y)(Object(m.a)({},M));case 2:if(j=G.sent,!(j.status===0)){G.next=8;break}f.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),e.d.push("/classrooms/".concat(M.coursesId,"/exportlist/course_total_exercise_and_other")),G.next=13;break;case 8:if(!(j.status===-2)){G.next=12;break}return G.abrupt("return",j);case 12:j.status===-3&&(Object(e.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),e.d.push("/classrooms/".concat(M.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return G.stop()}},R)}));return function(M){return b.apply(this,arguments)}}(),L=function(){var b=Object(v.a)(a.a.mark(function R(M){var j;return a.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(r.u)(Object(m.a)({},M));case 2:if(j=G.sent,!(j.status===0)){G.next=8;break}f.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),e.d.push("/classrooms/".concat(M.coursesId,"/exportlist/course_total_homework")),G.next=13;break;case 8:if(!(j.status===-2)){G.next=12;break}return G.abrupt("return",j);case 12:j.status===-3&&(Object(e.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),e.d.push("/classrooms/".concat(M.coursesId,"/exportlist/course_total_homework")));case 13:case"end":return G.stop()}},R)}));return function(M){return b.apply(this,arguments)}}(),p=function(){var b=Object(v.a)(a.a.mark(function R(M,j){var Q;return a.a.wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.next=2,Object(r.w)(Object(m.a)({},M));case 2:Q=ne.sent,Q.status===0?(f.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),e.d.push("/classrooms/".concat(M.coursesId,"/exportlist/").concat(j))):Q.status===-3&&(Object(e.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),e.d.push("/classrooms/".concat(M.coursesId,"/exportlist/").concat(j)));case 4:case"end":return ne.stop()}},R)}));return function(M,j){return b.apply(this,arguments)}}(),C=function(){var b=Object(v.a)(a.a.mark(function R(M){var j;return a.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return i(),G.next=3,Object(r.v)(Object(m.a)({},M));case 3:if(j=G.sent,!(j.status===0)){G.next=7;break}return G.next=7,Object(s.u)("",Object(s.U)({url:l.a.API_SERVER+"/api/homework_commons/".concat(M.categoryId,"/works_list.zip"),query:M}));case 7:d();case 8:case"end":return G.stop()}},R)}));return function(M){return b.apply(this,arguments)}}(),h=function(){var b=Object(v.a)(a.a.mark(function R(M){var j;return a.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return i(),G.next=3,Object(r.z)(Object(m.a)({},M));case 3:if(j=G.sent,!(j.status===0)){G.next=7;break}return G.next=7,Object(s.u)("",Object(s.U)({url:l.a.API_SERVER+"/api/polls/".concat(M.categoryId,"/commit_result.xlsx"),query:M}));case 7:d();case 8:case"end":return G.stop()}},R)}));return function(M){return b.apply(this,arguments)}}(),T=function(){var b=Object(v.a)(a.a.mark(function R(M){return a.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Q.next=2,Object(s.t)("",Object(s.U)({url:l.a.API_SERVER+"/api/courses/".concat(M.coursesId,"/attendances/export_xlsx_data.xlsx"),query:M}));case 2:case"end":return Q.stop()}},R)}));return function(M){return b.apply(this,arguments)}}(),B=function(){var b=Object(v.a)(a.a.mark(function R(M){return a.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Q.next=2,Object(s.t)("",Object(s.U)({url:l.a.API_SERVER+"/api/courses/".concat(M.coursesId,"/video_study_statics.xlsx"),query:M}));case 2:case"end":return Q.stop()}},R)}));return function(M){return b.apply(this,arguments)}}(),H=function(){var b=Object(v.a)(a.a.mark(function R(M){return a.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Q.next=2,Object(s.t)("",Object(s.U)({url:l.a.API_SERVER+"/api/courses/".concat(M.coursesId,"/export_course_students_info.xlsx"),query:M}));case 2:case"end":return Q.stop()}},R)}));return function(M){return b.apply(this,arguments)}}(),w=function(){var b=Object(v.a)(a.a.mark(function R(M){return a.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Q.next=2,Object(s.t)("",Object(s.U)({url:l.a.API_SERVER+"/api/item_banks/export.xlsx",query:M}));case 2:case"end":return Q.stop()}},R)}));return function(M){return b.apply(this,arguments)}}(),c=function(){var b=Object(v.a)(a.a.mark(function R(M){return a.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Q.next=2,Object(s.t)("",Object(s.U)({url:l.a.API_SERVER+"/api/competitions/region_reports.xlsx",query:M}));case 2:case"end":return Q.stop()}},R)}));return function(M){return b.apply(this,arguments)}}(),o=function(){var b=Object(v.a)(a.a.mark(function R(M){var j;return a.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(r.x)(Object(m.a)({},M));case 2:j=G.sent,j.status===0?(f.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),e.d.push("/classrooms/".concat(M.coursesId,"/exportlist/exercise_score"))):j.status===-3&&(Object(e.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),e.d.push("/classrooms/".concat(M.coursesId,"/exportlist/exercise_score")));case 4:case"end":return G.stop()}},R)}));return function(M){return b.apply(this,arguments)}}(),n=function(){var b=Object(v.a)(a.a.mark(function R(M){return a.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),Q.next=3,Object(s.t)("",Object(s.U)({url:l.a.API_SERVER+"/api/export_records/".concat(M.id,".xlsx"),query:M}));case 3:case"end":return Q.stop()}},R)}));return function(M){return b.apply(this,arguments)}}(),F=function(){var b=Object(v.a)(a.a.mark(function R(M){return a.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Q.next=2,Object(s.t)("",Object(s.U)({url:l.a.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:M}));case 2:case"end":return Q.stop()}},R)}));return function(M){return b.apply(this,arguments)}}(),_=function(){var b=Object(v.a)(a.a.mark(function R(M){return a.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Q.next=2,Object(s.t)("",Object(s.U)({url:l.a.API_SERVER+"/api/ec_years/".concat(M==null?void 0:M.ec_year_id,"/ec_training_objectives.xlsx"),query:M}));case 2:case"end":return Q.stop()}},R)}));return function(M){return b.apply(this,arguments)}}(),k=function(){var b=Object(v.a)(a.a.mark(function R(M){return a.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Q.next=2,Object(s.t)("",Object(s.U)({url:l.a.API_SERVER+"/api/ec_years/".concat(M==null?void 0:M.ec_year_id,"/ec_graduation_requirements.xlsx"),query:M}));case 2:case"end":return Q.stop()}},R)}));return function(M){return b.apply(this,arguments)}}()},n1HI:function(ie,x,t){var O=t("hX1E"),f=O.normalizeRadian,m=Math.PI*2;function v(u,a,r,e,s,l,i,d,g){if(i===0)return!1;var E=i;d-=u,g-=a;var y=Math.sqrt(d*d+g*g);if(y-E>r||y+Es&&(s+=m);var N=Math.atan2(g,d);return N<0&&(N+=m),N>=e&&N<=s||N+m>=e&&N+m<=s}x.containStroke=v},n6Mw:function(ie,x,t){var O=t("SrGk"),f=t("bYtY"),m=t("Fofx");function v(a,r){O.call(this,a,r,"clipPath","__clippath_in_use__")}f.inherits(v,O),v.prototype.update=function(a){var r=this.getSvgElement(a);r&&this.updateDom(r,a.__clipPaths,!1);var e=this.getTextSvgElement(a);e&&this.updateDom(e,a.__clipPaths,!0),this.markUsed(a)},v.prototype.updateDom=function(a,r,e){if(r&&r.length>0){var s=this.getDefs(!0),l=r[0],i,d,g=e?"_textDom":"_dom";l[g]?(d=l[g].getAttribute("id"),i=l[g],s.contains(i)||s.appendChild(i)):(d="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,i=this.createElement("clipPath"),i.setAttribute("id",d),s.appendChild(i),l[g]=i);var E=this.getSvgProxy(l);if(l.transform&&l.parent.invTransform&&!e){var y=Array.prototype.slice.call(l.transform);m.mul(l.transform,l.parent.invTransform,l.transform),E.brush(l),l.transform=y}else E.brush(l);var D=this.getSvgElement(l);i.innerHTML="",i.appendChild(D.cloneNode()),a.setAttribute("clip-path","url(#"+d+")"),r.length>1&&this.updateDom(i,r.slice(1),e)}else a&&a.setAttribute("clip-path","none")},v.prototype.markUsed=function(a){var r=this;a.__clipPaths&&f.each(a.__clipPaths,function(e){e._dom&&O.prototype.markUsed.call(r,e._dom),e._textDom&&O.prototype.markUsed.call(r,e._textDom)})};var u=v;ie.exports=u},nCxF:function(ie,x,t){var O=t("QBsz"),f=O.min,m=O.max,v=O.scale,u=O.distance,a=O.add,r=O.clone,e=O.sub;function s(l,i,d,g){var E=[],y=[],D=[],N=[],L,p,C,h;if(g){C=[Infinity,Infinity],h=[-Infinity,-Infinity];for(var T=0,B=l.length;T2&&arguments[2]!==void 0?arguments[2]:"0",me=String(U);me.length=12,pn%=12);var ur=e.useMemo(function(){if(!Ve)return[!1,!1];var Wt=[!0,!0];return xn.forEach(function(tn){var un=tn.disabled,Fn=tn.value;if(un)return;Fn>=12?Wt[1]=!1:Wt[0]=!1}),Wt},[Ve,xn]),dr=Object(r.a)(ur,2),cr=dr[0],fr=dr[1],hr=e.useMemo(function(){return Ve?xn.filter(Pt?function(Wt){return Wt.value>=12}:function(Wt){return Wt.value<12}).map(function(Wt){var tn=Wt.value%12,un=tn===0?"12":P(tn,2);return Object(a.a)(Object(a.a)({},Wt),{},{label:un,value:tn})}):xn},[Ve,xn]),er=ve(0,59,We,rt&&rt(pn)),Cr=ve(0,59,Je,ot&&ot(pn,vn));me.current={onUpDown:function(tn){var un=ht[Te];if(un)for(var Fn=un.units.findIndex(function(Wn){return Wn.value===un.value}),Dn=un.units.length,wn=1;wn1&&(Pe=ue.addDate(Pe,-7)),Pe}function Se(U,ue,pe){var me=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(ue){case"year":return pe.addYear(U,me*10);case"quarter":case"month":return pe.addYear(U,me);default:return pe.addMonth(U,me)}}var Ne=e.createContext({}),_e=Ne;function $e(U){var ue=U.cellPrefixCls,pe=U.generateConfig,me=U.rangedValue,Te=U.hoverRangedValue,Ee=U.isInView,Pe=U.isSameCell,Be=U.offsetCell,Ke=U.today,Ve=U.value;function qe(Ye){var Ie,We=Be(Ye,-1),Ue=Be(Ye,1),Je=$(me,0),Qe=$(me,1),rt=$(Te,0),ot=$(Te,1),yt=ye(pe,rt,ot,Ye);function Ut(vn){return Pe(Je,vn)}function ht(vn){return Pe(Qe,vn)}var pt=Pe(rt,Ye),Rt=Pe(ot,Ye),Pt=(yt||Rt)&&(!Ee(We)||ht(We)),pn=(yt||pt)&&(!Ee(Ue)||Ut(Ue));return Ie={},Object(u.a)(Ie,"".concat(ue,"-in-view"),Ee(Ye)),Object(u.a)(Ie,"".concat(ue,"-in-range"),ye(pe,Je,Qe,Ye)),Object(u.a)(Ie,"".concat(ue,"-range-start"),Ut(Ye)),Object(u.a)(Ie,"".concat(ue,"-range-end"),ht(Ye)),Object(u.a)(Ie,"".concat(ue,"-range-start-single"),Ut(Ye)&&!Qe),Object(u.a)(Ie,"".concat(ue,"-range-end-single"),ht(Ye)&&!Je),Object(u.a)(Ie,"".concat(ue,"-range-start-near-hover"),Ut(Ye)&&(Pe(We,rt)||ye(pe,rt,ot,We))),Object(u.a)(Ie,"".concat(ue,"-range-end-near-hover"),ht(Ye)&&(Pe(Ue,ot)||ye(pe,rt,ot,Ue))),Object(u.a)(Ie,"".concat(ue,"-range-hover"),yt),Object(u.a)(Ie,"".concat(ue,"-range-hover-start"),pt),Object(u.a)(Ie,"".concat(ue,"-range-hover-end"),Rt),Object(u.a)(Ie,"".concat(ue,"-range-hover-edge-start"),Pt),Object(u.a)(Ie,"".concat(ue,"-range-hover-edge-end"),pn),Object(u.a)(Ie,"".concat(ue,"-range-hover-edge-start-near-range"),Pt&&Pe(We,Qe)),Object(u.a)(Ie,"".concat(ue,"-range-hover-edge-end-near-range"),pn&&Pe(Ue,Je)),Object(u.a)(Ie,"".concat(ue,"-today"),Pe(Ke,Ye)),Object(u.a)(Ie,"".concat(ue,"-selected"),Pe(Ve,Ye)),Ie}return qe}function He(U){for(var ue=U.prefixCls,pe=U.disabledDate,me=U.onSelect,Te=U.rowNum,Ee=U.colNum,Pe=U.prefixColumn,Be=U.rowClassName,Ke=U.baseDate,Ve=U.getCellClassName,qe=U.getCellText,Ye=U.getCellNode,Ie=U.getCellDate,We=U.titleCell,Ue=U.headerCells,Je=e.useContext(D),Qe=Je.onDateMouseEnter,rt=Je.onDateMouseLeave,ot="".concat(ue,"-cell"),yt=[],Ut=0;Ut2&&arguments[2]!==void 0?arguments[2]:!1;(gn===Je||Zn)&&(Tr(ft),Rt&&Rt(ft),Dn&&Dn(ft,Kt),Pt&&!Ae(Be,ft,Yn)&&Pt(ft))},pr=function(ft){return Tn.current&&Tn.current.onKeyDown?([E.a.LEFT,E.a.RIGHT,E.a.UP,E.a.DOWN,E.a.PAGE_UP,E.a.PAGE_DOWN,E.a.ENTER].includes(ft.which)&&ft.preventDefault(),Tn.current.onKeyDown(ft)):(Object(i.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},dn=function(ft){Tn.current&&Tn.current.onBlur&&Tn.current.onBlur(ft)};un&&xr!=="right"&&(un.current={onKeyDown:pr,onClose:function(){Tn.current&&Tn.current.onClose&&Tn.current.onClose()}}),e.useEffect(function(){Ke&&!nr.current&&Mn(Ke)},[Ke]),e.useEffect(function(){nr.current=!1},[]);var En,kn=Object(a.a)(Object(a.a)({},U),{},{operationRef:Tn,prefixCls:me,viewDate:Rn,value:Yn,onViewDateChange:Pn,sourceMode:Lr,onPanelChange:nn,disabledDate:gn!=="decade"?Ie:void 0});delete kn.onChange,delete kn.onSelect;switch(gn){case"decade":En=e.createElement(ir,Object.assign({},kn,{onSelect:function(ft,Kt){Pn(ft),In(ft,Kt)}}));break;case"year":En=e.createElement(Ot,Object.assign({},kn,{onSelect:function(ft,Kt){Pn(ft),In(ft,Kt)}}));break;case"month":En=e.createElement(we,Object.assign({},kn,{onSelect:function(ft,Kt){Pn(ft),In(ft,Kt)}}));break;case"quarter":En=e.createElement(tt,Object.assign({},kn,{onSelect:function(ft,Kt){Pn(ft),In(ft,Kt)}}));break;case"week":En=e.createElement(Gt,Object.assign({},kn,{onSelect:function(ft,Kt){Pn(ft),In(ft,Kt)}}));break;case"time":delete kn.showTime,En=e.createElement(fe,Object.assign({},kn,Object(g.a)(yt)==="object"?yt:null,{onSelect:function(ft,Kt){Pn(ft),In(ft,Kt)}}));break;default:yt?En=e.createElement(jt,Object.assign({},kn,{onSelect:function(ft,Kt){Pn(ft),In(ft,Kt)}})):En=e.createElement(Ze,Object.assign({},kn,{onSelect:function(ft,Kt){Pn(ft),In(ft,Kt)}}))}var Mr,Pr,vr=function(){var ft=Be.getNow(),Kt=se(Be.getHour(ft),Be.getMinute(ft),Be.getSecond(ft),tr?dr:1,Ar?fr:1,Wt?er:1),Zn=Z(Be,ft,Kt[0],Kt[1],Kt[2]);In(Zn,"submit")};wn||(Mr=Nn(me,gn,ht),Pr=Kn({prefixCls:me,components:An,needConfirmButton:Cr,okDisabled:!Yn||Ie&&Ie(Yn),locale:Pe,showNow:ot,onNow:Cr&&vr,onOk:function(){Yn&&(In(Yn,"submit",!0),cn&&cn(Yn))}}));var Ir;if(Ut&&gn==="date"&&Je==="date"&&!yt){var Sr=Be.getNow(),fn="".concat(me,"-today-btn"),Xn=Ie&&Ie(Sr);Ir=e.createElement("a",{className:l()(fn,Xn&&"".concat(fn,"-disabled")),"aria-disabled":Xn,onClick:function(){Xn||In(Sr,"mouse",!0)}},Pe.today)}return e.createElement(D.Provider,{value:Object(a.a)(Object(a.a)({},tn),{},{hideHeader:"hideHeader"in U?pt:tn.hideHeader,hidePrevBtn:Ln&&xr==="right",hideNextBtn:Ln&&xr==="left"})},e.createElement("div",{tabIndex:rt,className:l()("".concat(me,"-panel"),Te,(ue={},Object(u.a)(ue,"".concat(me,"-panel-has-range"),$n&&$n[0]&&$n[1]),Object(u.a)(ue,"".concat(me,"-panel-has-range-hover"),wr&&wr[0]&&wr[1]),Object(u.a)(ue,"".concat(me,"-panel-rtl"),xn==="rtl"),ue)),style:Ee,onKeyDown:pr,onBlur:dn,onMouseDown:vn,ref:Fn},En,Mr||Pr||Ir?e.createElement("div",{className:"".concat(me,"-footer")},Mr,Pr,Ir):null))}var wt=it,Zt=t("uciX"),Cn={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function zt(U){var ue,pe=U.prefixCls,me=U.popupElement,Te=U.popupStyle,Ee=U.visible,Pe=U.dropdownClassName,Be=U.dropdownAlign,Ke=U.transitionName,Ve=U.getPopupContainer,qe=U.children,Ye=U.range,Ie=U.popupPlacement,We=U.direction,Ue="".concat(pe,"-dropdown"),Je=function(){return Ie!==void 0?Ie:We==="rtl"?"bottomRight":"bottomLeft"};return e.createElement(Zt.a,{showAction:[],hideAction:[],popupPlacement:Je(),builtinPlacements:Cn,prefixCls:Ue,popupTransitionName:Ke,popup:me,popupAlign:Be,popupVisible:Ee,popupClassName:l()(Pe,(ue={},Object(u.a)(ue,"".concat(Ue,"-range"),Ye),Object(u.a)(ue,"".concat(Ue,"-rtl"),We==="rtl"),ue)),popupStyle:Te,getPopupContainer:Ve},qe)}var Tt=zt;function mt(U){var ue=U.open,pe=U.value,me=U.isClickOutside,Te=U.triggerOpen,Ee=U.forwardKeyDown,Pe=U.blurToCancel,Be=U.onSubmit,Ke=U.onCancel,Ve=U.onFocus,qe=U.onBlur,Ye=Object(e.useState)(!1),Ie=Object(r.a)(Ye,2),We=Ie[0],Ue=Ie[1],Je=Object(e.useState)(!1),Qe=Object(r.a)(Je,2),rt=Qe[0],ot=Qe[1],yt=Object(e.useRef)(!1),Ut=Object(e.useRef)(!1),ht={onMouseDown:function(){Ue(!0),Te(!0)},onKeyDown:function(Rt){switch(Rt.which){case E.a.ENTER:{ue?Be()!==!1&&Ue(!0):Te(!0),Rt.preventDefault();return}case E.a.TAB:{We&&ue&&!Rt.shiftKey?(Ue(!1),Rt.preventDefault()):!We&&ue&&(!Ee(Rt)&&Rt.shiftKey&&(Ue(!0),Rt.preventDefault()));return}case E.a.ESC:{Ue(!0),Ke();return}}!ue&&![E.a.SHIFT].includes(Rt.which)?Te(!0):We||Ee(Rt)},onFocus:function(Rt){Ue(!0),ot(!0),Ve&&Ve(Rt)},onBlur:function(Rt){if(yt.current||!me(document.activeElement)){yt.current=!1;return}Pe?setTimeout(function(){me(document.activeElement)&&Ke()},0):ue&&(Te(!1),Ut.current&&Be()),ot(!1),qe&&qe(Rt)}};return Object(e.useEffect)(function(){Ut.current=!1},[ue]),Object(e.useEffect)(function(){Ut.current=!0},[pe]),Object(e.useEffect)(function(){return k(function(pt){var Rt=pt.target;ue&&(me(Rt)?rt||Te(!1):(yt.current=!0,requestAnimationFrame(function(){yt.current=!1})))})}),[ht,{focused:rt,typing:We}]}function St(U){var ue=U.valueTexts,pe=U.onTextChange,me=e.useState(""),Te=Object(r.a)(me,2),Ee=Te[0],Pe=Te[1],Be=e.useRef([]);Be.current=ue;function Ke(qe){Pe(qe),pe(qe)}function Ve(){Pe(Be.current[0])}return e.useEffect(function(){ue.every(function(qe){return qe!==Ee})&&Ve()},[ue.join("||")]),[Ee,Ke,Ve]}var Mt=t("Gytx"),Yt=t.n(Mt);function on(U,ue){var pe=ue.formatList,me=ue.generateConfig,Te=ue.locale;return Object(T.a)(function(){if(!U)return[[""],""];for(var Ee="",Pe=[],Be=0;Be1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(Ve.current),rt){Ke(Qe);return}Ve.current=requestAnimationFrame(function(){Ke(Qe)})}var Ye=on(Be,{formatList:pe,generateConfig:me,locale:Te}),Ie=Object(r.a)(Ye,2),We=Ie[1];function Ue(Qe){qe(Qe)}function Je(){var Qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;qe(null,Qe)}return Object(e.useEffect)(function(){Je(!0)},[U]),Object(e.useEffect)(function(){return function(){return cancelAnimationFrame(Ve.current)}},[]),[We,Ue,Je]}function qt(U){var ue,pe=U.prefixCls,me=pe===void 0?"rc-picker":pe,Te=U.id,Ee=U.tabIndex,Pe=U.style,Be=U.className,Ke=U.dropdownClassName,Ve=U.dropdownAlign,qe=U.popupStyle,Ye=U.transitionName,Ie=U.generateConfig,We=U.locale,Ue=U.inputReadOnly,Je=U.allowClear,Qe=U.autoFocus,rt=U.showTime,ot=U.picker,yt=ot===void 0?"date":ot,Ut=U.format,ht=U.use12Hours,pt=U.value,Rt=U.defaultValue,Pt=U.open,pn=U.defaultOpen,vn=U.defaultOpenValue,_n=U.suffixIcon,cn=U.clearIcon,An=U.disabled,xn=U.disabledDate,ur=U.placeholder,dr=U.getPopupContainer,cr=U.pickerRef,fr=U.panelRender,hr=U.onChange,er=U.onOpenChange,Cr=U.onFocus,tr=U.onBlur,Ar=U.onMouseDown,Wt=U.onMouseUp,tn=U.onMouseEnter,un=U.onMouseLeave,Fn=U.onContextMenu,Dn=U.onClick,wn=U.direction,zn=U.autoComplete,Wn=zn===void 0?"off":zn,Ln=e.useRef(null),xr=yt==="date"&&!!rt||yt==="time",$n=W(o(Ut,yt,rt,ht)),wr=e.useRef(null),Tn=e.useRef(null),nr=Object(d.a)(null,{value:pt,defaultValue:Rt}),jr=Object(r.a)(nr,2),Qn=jr[0],Yn=jr[1],Tr=e.useState(Qn),Gn=Object(r.a)(Tr,2),rr=Gn[0],Rn=Gn[1],Mn=e.useRef(null),Pn=Object(d.a)(!1,{value:Pt,defaultValue:pn,postState:function(Vt){return An?!1:Vt},onChange:function(Vt){er&&er(Vt),!Vt&&Mn.current&&Mn.current.onClose&&Mn.current.onClose()}}),mr=Object(r.a)(Pn,2),yn=mr[0],ar=mr[1],gn=on(rr,{formatList:$n,generateConfig:Ie,locale:We}),Rr=Object(r.a)(gn,2),br=Rr[0],It=Rr[1],Lr=St({valueTexts:br,onTextChange:function(Vt){var Or=Ie.locale.parse(We.locale,Vt,$n);Or&&(!xn||!xn(Or))&&Rn(Or)}}),Jn=Object(r.a)(Lr,3),nn=Jn[0],In=Jn[1],pr=Jn[2],dn=function(Vt){Rn(Vt),Yn(Vt),hr&&!Ae(Ie,Qn,Vt)&&hr(Vt,Vt?Ie.locale.format(We.locale,Vt,$n[0]):"")},En=function(Vt){if(An&&Vt)return;ar(Vt)},kn=function(Vt){return yn&&Mn.current&&Mn.current.onKeyDown?Mn.current.onKeyDown(Vt):(Object(i.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Mr=function(){Wt&&Wt.apply(void 0,arguments),Ln.current&&(Ln.current.focus(),En(!0))},Pr=mt({blurToCancel:xr,open:yn,value:nn,triggerOpen:En,forwardKeyDown:kn,isClickOutside:function(Vt){return!G([wr.current,Tn.current],Vt)},onSubmit:function(){return xn&&xn(rr)?!1:(dn(rr),En(!1),pr(),!0)},onCancel:function(){En(!1),Rn(Qn),pr()},onFocus:Cr,onBlur:tr}),vr=Object(r.a)(Pr,2),Ir=vr[0],Sr=vr[1],fn=Sr.focused,Xn=Sr.typing;e.useEffect(function(){yn||(Rn(Qn),!br.length||br[0]===""?In(""):It!==nn&&pr())},[yn,br]),e.useEffect(function(){yn||pr()},[yt]),e.useEffect(function(){Rn(Qn)},[Qn]),cr&&(cr.current={focus:function(){Ln.current&&Ln.current.focus()},blur:function(){Ln.current&&Ln.current.blur()}});var sn=Object(a.a)(Object(a.a)({},U),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),ft=e.createElement(wt,Object.assign({},sn,{generateConfig:Ie,className:l()(Object(u.a)({},"".concat(me,"-panel-focused"),!Xn)),value:rr,locale:We,tabIndex:-1,onChange:Rn,direction:wn}));fr&&(ft=fr(ft));var Kt=e.createElement("div",{className:"".concat(me,"-panel-container"),onMouseDown:function(Vt){Vt.preventDefault()}},ft),Zn;_n&&(Zn=e.createElement("span",{className:"".concat(me,"-suffix")},_n));var Vr;Je&&Qn&&!An&&(Vr=e.createElement("span",{onMouseDown:function(Vt){Vt.preventDefault(),Vt.stopPropagation()},onMouseUp:function(Vt){Vt.preventDefault(),Vt.stopPropagation(),dn(null),En(!1)},className:"".concat(me,"-clear")},cn||e.createElement("span",{className:"".concat(me,"-clear-btn")})));var qr=function(Vt,Or){(Or==="submit"||Or!=="key"&&!xr)&&(dn(Vt),En(!1))},Hr=wn==="rtl"?"bottomRight":"bottomLeft",Wr=mn(nn,{formatList:$n,generateConfig:Ie,locale:We}),kr=Object(r.a)(Wr,3),Qr=kr[0],Yr=kr[1],Bn=kr[2];return e.createElement(D.Provider,{value:{operationRef:Mn,hideHeader:yt==="time",panelRef:wr,onSelect:qr,open:yn,defaultOpenValue:vn,onDateMouseEnter:Yr,onDateMouseLeave:Bn}},e.createElement(Tt,{visible:yn,popupElement:Kt,popupStyle:qe,prefixCls:me,dropdownClassName:Ke,dropdownAlign:Ve,getPopupContainer:dr,transitionName:Ye,popupPlacement:Hr,direction:wn},e.createElement("div",{className:l()(me,Be,(ue={},Object(u.a)(ue,"".concat(me,"-disabled"),An),Object(u.a)(ue,"".concat(me,"-focused"),fn),Object(u.a)(ue,"".concat(me,"-rtl"),wn==="rtl"),ue)),style:Pe,onMouseDown:Ar,onMouseUp:Mr,onMouseEnter:tn,onMouseLeave:un,onContextMenu:Fn,onClick:Dn},e.createElement("div",{className:l()("".concat(me,"-input"),Object(u.a)({},"".concat(me,"-input-placeholder"),!!Qr)),ref:Tn},e.createElement("input",Object.assign({id:Te,tabIndex:Ee,disabled:An,readOnly:Ue||!Xn,value:Qr||nn,onChange:function(Vt){In(Vt.target.value)},autoFocus:Qe,placeholder:ur,ref:Ln,title:nn},Ir,{size:n(yt,$n[0])},oe(U),{autoComplete:Wn})),Zn,Vr))))}var On=function(U){Object(m.a)(pe,U);var ue=Object(v.a)(pe);function pe(){var me;return Object(O.a)(this,pe),me=ue.apply(this,arguments),me.pickerRef=e.createRef(),me.focus=function(){me.pickerRef.current&&me.pickerRef.current.focus()},me.blur=function(){me.pickerRef.current&&me.pickerRef.current.blur()},me}return Object(f.a)(pe,[{key:"render",value:function(){return e.createElement(qt,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),pe}(e.Component),sr=On;function lr(U,ue,pe){var me=U.picker,Te=U.locale,Ee=U.selectedValue,Pe=U.disabledDate,Be=U.disabled,Ke=U.generateConfig,Ve=$(Ee,0),qe=$(Ee,1);function Ye(Qe){var rt=Ke.getYear(Qe),ot=Ke.locale.getWeek(Te.locale,Qe);return rt*100+ot}function Ie(Qe){var rt=Ke.getYear(Qe),ot=Ke.getMonth(Qe);return rt*100+ot}function We(Qe){var rt=Ke.getYear(Qe),ot=ee(Ke,Qe);return rt*10+ot}var Ue=e.useCallback(function(Qe){if(Pe&&Pe(Qe))return!0;if(Be[1]&&qe)return!Me(Ke,Qe,qe)&&Ke.isAfter(Qe,qe);if(ue&&qe)switch(me){case"quarter":return We(Qe)>We(qe);case"month":return Ie(Qe)>Ie(qe);case"week":return Ye(Qe)>Ye(qe);default:return!Me(Ke,Qe,qe)&&Ke.isAfter(Qe,qe)}return!1},[Pe,Be[1],qe,ue]),Je=e.useCallback(function(Qe){if(Pe&&Pe(Qe))return!0;if(Be[0]&&Ve)return!Me(Ke,Qe,qe)&&Ke.isAfter(Ve,Qe);if(pe&&Ve)switch(me){case"quarter":return We(Qe)0&&arguments[0]!==void 0?arguments[0]:!1,at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},vt=null;Bn&&Ur&&Ur[0]&&Ur[1]&&Ue.isAfter(Ur[1],Ur[0])&&(vt=Ur);var kt=pt;if(pt&&Object(g.a)(pt)==="object"&&pt.defaultValue){var hn=pt.defaultValue;kt=Object(a.a)(Object(a.a)({},pt),{},{defaultValue:$(hn,It)||void 0})}var Nr=null;return cr&&(Nr=function(or,gr){return cr(or,gr,{range:It?"end":"start"})}),e.createElement(_e.Provider,{value:{inRange:!0,panelPosition:Nt,rangedValue:Xa||fn,hoverRangedValue:vt}},e.createElement(wt,Object.assign({},U,at,{dateRender:Nr,showTime:kt,mode:Kt[It],generateConfig:Ue,style:void 0,direction:nr,disabledDate:It===0?Wr:kr,disabledTime:function(or){return dr?dr(or,It===0?"start":"end"):!1},className:l()(Object(u.a)({},"".concat(Ee,"-panel-focused"),It===0?!Ta:!Na)),value:$(fn,It),locale:Je,tabIndex:-1,onPanelChange:function(or,gr){Vr(X(Kt,gr,It),X(fn,or,It));var Er=or;Nt==="right"&&Kt[It]===gr&&(Er=Se(Er,gr,Ue,-1)),vr(Er,It)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var _r=0,ja=0;It&&Mn.current&&mr.current&&Rn.current&&(_r=Mn.current.offsetWidth+mr.current.offsetWidth,Rn.current.offsetWidth&&_r>Rn.current.offsetWidth&&(ja=_r));var po=nr==="rtl"?{right:_r}:{left:_r};function vo(){var Nt,at=Nn(Ee,Kt[It],Fn),vt=Kn({prefixCls:Ee,components:wr,needConfirmButton:Tr,okDisabled:!$(fn,It)||ur&&ur(fn[It]),locale:Je,rangeList:mo,onOk:function(){$(fn,It)&&(zr(fn,It),$n&&$n(fn))}});if(ht!=="time"&&!pt){var kt=Pr(It),hn=Se(kt,ht,Ue),Nr=Kt[It],yr=Nr===ht,or=aa(yr?"left":!1,{pickerValue:kt,onPickerValueChange:function(qn){vr(qn,It)}}),gr=aa("right",{pickerValue:hn,onPickerValueChange:function(qn){vr(Se(qn,ht,Ue,-1),It)}});nr==="rtl"?Nt=e.createElement(e.Fragment,null,gr,yr&&or):Nt=e.createElement(e.Fragment,null,or,yr&&gr)}else Nt=aa();var Er=e.createElement(e.Fragment,null,e.createElement("div",{className:"".concat(Ee,"-panels")},Nt),(at||vt)&&e.createElement("div",{className:"".concat(Ee,"-footer")},at,vt));return fr&&(Er=fr(Er)),e.createElement("div",{className:"".concat(Ee,"-panel-container"),style:{marginLeft:ja},ref:Rn,onMouseDown:function(qn){qn.preventDefault()}},Er)}var go=e.createElement("div",{className:l()("".concat(Ee,"-range-wrapper"),"".concat(Ee,"-").concat(ht,"-range-wrapper")),style:{minWidth:Fa}},e.createElement("div",{className:"".concat(Ee,"-range-arrow"),style:po}),vo()),La;tr&&(La=e.createElement("span",{className:"".concat(Ee,"-suffix")},tr));var ka;Cr&&($(dn,0)&&!nn[0]||$(dn,1)&&!nn[1])&&(ka=e.createElement("span",{onMouseDown:function(at){at.preventDefault(),at.stopPropagation()},onMouseUp:function(at){at.preventDefault(),at.stopPropagation();var vt=dn;nn[0]||(vt=X(vt,null,0)),nn[1]||(vt=X(vt,null,1)),zr(vt,null),Br(!1,It)},className:"".concat(Ee,"-clear")},Ar||e.createElement("span",{className:"".concat(Ee,"-clear-btn")})));var Ba={size:n(ht,gn[0])},oa=0,ia=0;Mn.current&&Pn.current&&mr.current&&(It===0?ia=Mn.current.offsetWidth:(oa=_r,ia=Pn.current.offsetWidth));var bo=nr==="rtl"?{right:oa}:{left:oa},yo=function(at,vt){var kt=X(fn,at,It);vt==="submit"||vt!=="key"&&!Tr?(zr(kt,It),It===0?Aa():wa()):Xn(kt)};return e.createElement(D.Provider,{value:{operationRef:Jn,hideHeader:ht==="time",onDateMouseEnter:no,onDateMouseLeave:ro,hideRanges:!0,onSelect:yo,open:Bn}},e.createElement(Tt,{visible:Bn,popupElement:go,popupStyle:Ve,prefixCls:Ee,dropdownClassName:qe,dropdownAlign:Ie,getPopupContainer:We,transitionName:Ye,range:!0,direction:nr},e.createElement("div",Object.assign({ref:rr,className:l()(Ee,"".concat(Ee,"-range"),Ke,(ue={},Object(u.a)(ue,"".concat(Ee,"-disabled"),nn[0]&&nn[1]),Object(u.a)(ue,"".concat(Ee,"-focused"),It===0?Da:Ia),Object(u.a)(ue,"".concat(Ee,"-rtl"),nr==="rtl"),ue)),style:Be,onClick:lo,onMouseDown:uo},oe(U)),e.createElement("div",{className:l()("".concat(Ee,"-input"),(pe={},Object(u.a)(pe,"".concat(Ee,"-input-active"),It===0),Object(u.a)(pe,"".concat(Ee,"-input-placeholder"),!!Ca),pe)),ref:Mn},e.createElement("input",Object.assign({id:Pe,disabled:nn[0],readOnly:tn||!Ta,value:Ca||Xr,onChange:function(at){ha(at.target.value)},autoFocus:rt,placeholder:$(Qe,0)||"",ref:yn},oo,Ba,{autoComplete:Yn}))),e.createElement("div",{className:"".concat(Ee,"-range-separator"),ref:mr},pn),e.createElement("div",{className:l()("".concat(Ee,"-input"),(me={},Object(u.a)(me,"".concat(Ee,"-input-active"),It===1),Object(u.a)(me,"".concat(Ee,"-input-placeholder"),!!xa),me)),ref:Pn},e.createElement("input",Object.assign({disabled:nn[1],readOnly:tn||!Na,value:xa||Zr,onChange:function(at){pa(at.target.value)},placeholder:$(Qe,1)||"",ref:ar},so,Ba,{autoComplete:Yn}))),e.createElement("div",{className:"".concat(Ee,"-active-bar"),style:Object(a.a)(Object(a.a)({},bo),{},{width:ia,position:"absolute"})}),La,ka)))}var Hn=function(U){Object(m.a)(pe,U);var ue=Object(v.a)(pe);function pe(){var me;return Object(O.a)(this,pe),me=ue.apply(this,arguments),me.pickerRef=e.createRef(),me.focus=function(){me.pickerRef.current&&me.pickerRef.current.focus()},me.blur=function(){me.pickerRef.current&&me.pickerRef.current.blur()},me}return Object(f.a)(pe,[{key:"render",value:function(){return e.createElement(Un,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),pe}(e.Component),Ua=Hn,Eo=x.b=sr},onxn:function(ie,x){ie.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAQFElEQVRoQ71aCXRUVZr+7ttqr6yVPSRASCBIVFBUWgUURZFW7FYa9Xhc2lHWGdM9bYszaqa1tcUFV9RRu3V6etw4DQJqY4MDLUJQEQIYEsieqspW2Wp/9ZY7570ia1VIRXH+cyo59e6/3O/+//3vf/9XBGeR8sr/lipS6QpKyMUApoOiGISmgBIbJZSAwkdA+ihQB0JqCPAVy3K7Op5Z3Hm2pkF+qKKiik/sfV7lF5SSOwF6MSiYiekklBAcIqDvmAzkLy1/WNo7MfmR3N8bUF75fpOInnIK+iClsP2QSQzIE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cvsOAu1Y//8jLZMlF3SBN0ZrRNFnBG8RRxza2utYf3syDjWVoIjV30Z8kzc7aR6579BgYRl30tvXLH7rPLn+7h8bjlZ5mFP9MDt8EMxD13lt4lpb2ZQc0qegnTeyyKOv2QE5FO3OSgzvFjjporyX6qKNwdMU/6UxpWTfmsuOFCrtZT8WKMKqyJkdbfSPpn5nql4XamMamN5GB0TvUK4KE6HbTqS5ma+eahgtO2ZY9fx2TlKtVziZp3Zl/FigUiZ3wOIYWZ/52pLR35oOU6oPtuw+dNdl6QfsAHmYlMZcEpiXsak6tnQY70bWubrUepjkNJTKTbGv8s8SSlOaD5Z0LwhL4XWmQvSa42rWrgf7+Fn7byVVV5KX6mLbTWcKueEa6etz+M+OphwqlZtmnSUME1bjJyb6vOmm8tc3PvrCeMIJZTLt5zBb1i59tUxuvDeRm+14RscbD1IB9Uo6ZnHRfp2XsX4489Ujy8eT08YTAjSg6Plf333p9HDLpzPlpnEvg4kYH83TrZrxcugy7IkU4SnrdszlW6AS5iOzndzu2FAbexmKY2RCgDR5zVsfrFm2YSrc92cqveNe2xMF9pk4HZvFMmQwflxrqMZFXKub49R1+ZtOne5hJaZpwoAG1GpXjhf/YXuxTK37pyLFPZSGErM7JleYCPVGRN7kreaXsp45OnY7aAwN3xvQcH1b1y65VabMwzMU5zQ79bMKmLHLm2GCEXC0jUkVRSLUF6hdW62c8n7WyzXHfsianBVAg16rqGCOerYt+E4tuOIbviR3suK+cBp1Zdpp0GRVRfZl4/XHD7AzTpnYSFWB0vHlzS2TDiz/cPn4vx2YAML/AxiD3K8wfl5pAAAAAElFTkSuQmCC"},pzxd:function(ie,x,t){var O=t("bYtY"),f=O.retrieve2,m=O.retrieve3,v=O.each,u=O.normalizeCssArray,a=O.isString,r=O.isObject,e=t("6GrX"),s=t("VpOo"),l=t("Xnb7"),i=t("fW2E"),d=t("gut8"),g=d.ContextCachedBy,E=d.WILL_BE_RESTORED,y=e.DEFAULT_FONT,D={left:1,right:1,center:1},N={top:1,bottom:1,middle:1},L=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],p={},C={};function h(J){return T(J),v(J.rich,T),J}function T(J){if(J){J.font=e.makeFont(J);var P=J.textAlign;P==="middle"&&(P="center"),J.textAlign=P==null||D[P]?P:"left";var Y=J.textVerticalAlign||J.textBaseline;Y==="center"&&(Y="middle"),J.textVerticalAlign=Y==null||N[Y]?Y:"top";var W=J.textPadding;W&&(J.textPadding=u(J.textPadding))}}function B(J,P,Y,W,oe,$){W.rich?w(J,P,Y,W,oe,$):H(J,P,Y,W,oe,$)}function H(J,P,Y,W,oe,$){"use strict";var X=F(W),Z,se=!1,ae=P.__attrCachedBy===g.PLAIN_TEXT;$!==E?($&&(Z=$.style,se=!X&&ae&&Z),P.__attrCachedBy=X?g.NONE:g.PLAIN_TEXT):ae&&(P.__attrCachedBy=g.NONE);var ve=W.font||y;(!se||ve!==(Z.font||y))&&(P.font=ve);var V=J.__computedFont;J.__styleFont!==ve&&(J.__styleFont=ve,V=J.__computedFont=P.font);var re=W.textPadding,I=W.textLineHeight,q=J.__textCotentBlock;(!q||J.__dirtyText)&&(q=J.__textCotentBlock=e.parsePlainText(Y,V,re,I,W.truncate));var fe=q.outerHeight,z=q.lines,A=q.lineHeight,S=b(C,J,W,oe),K=S.baseX,ee=S.baseY,de=S.textAlign||"left",he=S.textVerticalAlign;o(P,W,oe,K,ee);var Me=e.adjustTextY(ee,fe,he),ce=K,be=Me;if(X||re){var Ae=e.getWidth(Y,V),ye=Ae;re&&(ye+=re[1]+re[3]);var ke=e.adjustTextX(K,ye,de);X&&_(J,P,W,ke,Me,ye,fe),re&&(ce=G(K,de,re),be+=re[0])}P.textAlign=de,P.textBaseline="middle",P.globalAlpha=W.opacity||1;for(var Se=0;Se=0&&(Se=de[ke],Se.textAlign==="right");)n(J,P,Se,W,Me,A,ye,"right"),ce-=Se.width,ye-=Se.width,ke--;for(Ae+=($-(Ae-z)-(S-ye)-ce)/2;be<=ke;)Se=de[be],n(J,P,Se,W,Me,A,Ae+Se.width/2,"center"),Ae+=Se.width,be++;A+=Me}}function o(J,P,Y,W,oe){if(Y&&P.textRotation){var $=P.textOrigin;$==="center"?(W=Y.width/2+Y.x,oe=Y.height/2+Y.y):$&&(W=$[0]+Y.x,oe=$[1]+Y.y),J.translate(W,oe),J.rotate(-P.textRotation),J.translate(-W,-oe)}}function n(J,P,Y,W,oe,$,X,Z){var se=W.rich[Y.styleName]||{};se.text=Y.text;var ae=Y.textVerticalAlign,ve=$+oe/2;ae==="top"?ve=$+Y.height/2:ae==="bottom"&&(ve=$+oe-Y.height/2),!Y.isLineHolder&&F(se)&&_(J,P,se,Z==="right"?X-Y.width:Z==="center"?X-Y.width/2:X,ve-Y.height/2,Y.width,Y.height);var V=Y.textPadding;V&&(X=G(X,Z,V),ve-=Y.height/2-V[2]-Y.textHeight/2),R(P,"shadowBlur",m(se.textShadowBlur,W.textShadowBlur,0)),R(P,"shadowColor",se.textShadowColor||W.textShadowColor||"transparent"),R(P,"shadowOffsetX",m(se.textShadowOffsetX,W.textShadowOffsetX,0)),R(P,"shadowOffsetY",m(se.textShadowOffsetY,W.textShadowOffsetY,0)),R(P,"textAlign",Z),R(P,"textBaseline","middle"),R(P,"font",Y.font||y);var re=M(se.textStroke||W.textStroke,q),I=j(se.textFill||W.textFill),q=f(se.textStrokeWidth,W.textStrokeWidth);re&&(R(P,"lineWidth",q),R(P,"strokeStyle",re),P.strokeText(Y.text,X,ve)),I&&(R(P,"fillStyle",I),P.fillText(Y.text,X,ve))}function F(J){return!!(J.textBackgroundColor||J.textBorderWidth&&J.textBorderColor)}function _(J,P,Y,W,oe,$,X){var Z=Y.textBackgroundColor,se=Y.textBorderWidth,ae=Y.textBorderColor,ve=a(Z);if(R(P,"shadowBlur",Y.textBoxShadowBlur||0),R(P,"shadowColor",Y.textBoxShadowColor||"transparent"),R(P,"shadowOffsetX",Y.textBoxShadowOffsetX||0),R(P,"shadowOffsetY",Y.textBoxShadowOffsetY||0),ve||se&&ae){P.beginPath();var V=Y.textBorderRadius;V?s.buildPath(P,{x:W,y:oe,width:$,height:X,r:V}):P.rect(W,oe,$,X),P.closePath()}if(ve)if(R(P,"fillStyle",Z),Y.fillOpacity!=null){var re=P.globalAlpha;P.globalAlpha=Y.fillOpacity*Y.opacity,P.fill(),P.globalAlpha=re}else P.fill();else if(r(Z)){var I=Z.image;I=l.createOrUpdateImage(I,null,J,k,Z),I&&l.isImageReady(I)&&P.drawImage(I,W,oe,$,X)}if(se&&ae)if(R(P,"lineWidth",se),R(P,"strokeStyle",ae),Y.strokeOpacity!=null){var re=P.globalAlpha;P.globalAlpha=Y.strokeOpacity*Y.opacity,P.stroke(),P.globalAlpha=re}else P.stroke()}function k(J,P){P.image=J}function b(J,P,Y,W){var oe=Y.x||0,$=Y.y||0,X=Y.textAlign,Z=Y.textVerticalAlign;if(W){var se=Y.textPosition;if(se instanceof Array)oe=W.x+Q(se[0],W.width),$=W.y+Q(se[1],W.height);else{var ae=P&&P.calculateTextPosition?P.calculateTextPosition(p,Y,W):e.calculateTextPosition(p,Y,W);oe=ae.x,$=ae.y,X=X||ae.textAlign,Z=Z||ae.textVerticalAlign}var ve=Y.textOffset;ve&&(oe+=ve[0],$+=ve[1])}return J=J||{},J.baseX=oe,J.baseY=$,J.textAlign=X,J.textVerticalAlign=Z,J}function R(J,P,Y){return J[P]=i(J,P,Y),J[P]}function M(J,P){return J==null||P<=0||J==="transparent"||J==="none"?null:J.image||J.colorStops?"#000":J}function j(J){return J==null||J==="none"?null:J.image||J.colorStops?"#000":J}function Q(J,P){return typeof J=="string"?J.lastIndexOf("%")>=0?parseFloat(J)/100*P:parseFloat(J):J}function G(J,P,Y){return P==="right"?J-Y[1]:P==="center"?J+Y[3]/2-Y[1]/2:J+Y[3]}function ne(J,P){return J!=null&&(J||P.textBackgroundColor||P.textBorderWidth&&P.textBorderColor||P.textPadding)}x.normalizeTextStyle=h,x.renderText=B,x.getBoxPosition=b,x.getStroke=M,x.getFill=j,x.parsePercent=Q,x.needDrawText=ne},qH13:function(ie,x,t){var O=t("ItGF"),f=t("QBsz"),m=f.applyTransform,v=t("mFDi"),u=t("Qe9p"),a=t("6GrX"),r=t("pzxd"),e=t("ni6a"),s=t("Gev7"),l=t("Dagg"),i=t("dqUG"),d=t("y+Vt"),g=t("IMiH"),E=t("QuXc"),y=t("06Qe"),D=g.CMD,N=Math.round,L=Math.sqrt,p=Math.abs,C=Math.cos,h=Math.sin,T=Math.max;if(!O.canvasSupported){var B=",",H="progid:DXImageTransform.Microsoft",w=21600,c=w/2,o=1e5,n=1e3,F=function(K){K.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",K.coordsize=w+","+w,K.coordorigin="0,0"},_=function(K){return String(K).replace(/&/g,"&").replace(/"/g,""")},k=function(K,ee,de){return"rgb("+[K,ee,de].join(",")+")"},b=function(K,ee){ee&&K&&ee.parentNode!==K&&K.appendChild(ee)},R=function(K,ee){ee&&K&&ee.parentNode===K&&K.removeChild(ee)},M=function(K,ee,de){return(parseFloat(K)||0)*o+(parseFloat(ee)||0)*n+de},j=r.parsePercent,Q=function(K,ee,de){var he=u.parse(ee);de=+de,isNaN(de)&&(de=1),he&&(K.color=k(he[0],he[1],he[2]),K.opacity=de*he[3])},G=function(K){var ee=u.parse(K);return[k(ee[0],ee[1],ee[2]),ee[3]]},ne=function(K,ee,de){var he=ee.fill;if(he!=null)if(he instanceof E){var Me,ce=0,be=[0,0],Ae=0,ye=1,ke=de.getBoundingRect(),Se=ke.width,Ne=ke.height;if(he.type==="linear"){Me="gradient";var _e=de.transform,$e=[he.x*Se,he.y*Ne],He=[he.x2*Se,he.y2*Ne];_e&&(m($e,$e,_e),m(He,He,_e));var nt=He[0]-$e[0],et=He[1]-$e[1];ce=Math.atan2(nt,et)*180/Math.PI,ce<0&&(ce+=360),ce<1e-6&&(ce=0)}else{Me="gradientradial";var $e=[he.x*Se,he.y*Ne],_e=de.transform,Xe=de.scale,st=Se,ut=Ne;be=[($e[0]-ke.x)/st,($e[1]-ke.y)/ut],_e&&m($e,$e,_e),st/=Xe[0]*w,ut/=Xe[1]*w;var ct=T(st,ut);Ae=2*0/ct,ye=2*he.r/ct-Ae}var Ze=he.colorStops.slice();Ze.sort(function(ge,te){return ge.offset-te.offset});for(var bt=Ze.length,lt=[],Et=[],jt=0;jt=2){var rn=lt[0][0],ze=lt[1][0],Ce=lt[0][1]*ee.opacity,Oe=lt[1][1]*ee.opacity;K.type=Me,K.method="none",K.focus="100%",K.angle=ce,K.color=rn,K.color2=ze,K.colors=Et.join(","),K.opacity=Oe,K.opacity2=Ce}Me==="radial"&&(K.focusposition=be.join(","))}else Q(K,he,ee.opacity)},J=function(K,ee){ee.lineDash&&(K.dashstyle=ee.lineDash.join(" ")),ee.stroke!=null&&!(ee.stroke instanceof E)&&Q(K,ee.stroke,ee.opacity)},P=function(K,ee,de,he){var Me=ee==="fill",ce=K.getElementsByTagName(ee)[0];de[ee]!=null&&de[ee]!=="none"&&(Me||!Me&&de.lineWidth)?(K[Me?"filled":"stroked"]="true",de[ee]instanceof E&&R(K,ce),ce||(ce=y.createNode(ee)),Me?ne(ce,de,he):J(ce,de),b(K,ce)):(K[Me?"filled":"stroked"]="false",R(K,ce))},Y=[[],[],[]],W=function(K,ee){var de=D.M,he=D.C,Me=D.L,ce=D.A,be=D.Q,Ae=[],ye,ke,Se,Ne,_e,$e,He=K.data,nt=K.len();for(Ne=0;Ne.01?te&&(le+=270/w):Math.abs(we-rn)<1e-4?te&&leGt?Xe-=270/w:Xe+=270/w:te&&wern?et+=270/w:et-=270/w),Ae.push(xe,N(((Gt-ze)*Et+bt)*w-c),B,N(((rn-Ce)*jt+lt)*w-c),B,N(((Gt+ze)*Et+bt)*w-c),B,N(((rn+Ce)*jt+lt)*w-c),B,N((le*Et+bt)*w-c),B,N((we*jt+lt)*w-c),B,N((et*Et+bt)*w-c),B,N((Xe*jt+lt)*w-c)),_e=et,$e=Xe;break;case D.R:var Re=Y[0],je=Y[1];Re[0]=He[Ne++],Re[1]=He[Ne++],je[0]=Re[0]+He[Ne++],je[1]=Re[1]+He[Ne++],ee&&(m(Re,Re,ee),m(je,je,ee)),Re[0]=N(Re[0]*w-c),je[0]=N(je[0]*w-c),Re[1]=N(Re[1]*w-c),je[1]=N(je[1]*w-c),Ae.push(" m ",Re[0],B,Re[1]," l ",je[0],B,Re[1]," l ",je[0],B,je[1]," l ",Re[0],B,je[1]);break;case D.Z:Ae.push(" x ")}if(ye>0){Ae.push(ke);for(var De=0;Dese&&(Z=0,X={});var de=ae.style,he;try{de.font=K,he=de.fontFamily.split(",")[0]}catch(Me){}ee={style:de.fontStyle||$,variant:de.fontVariant||$,weight:de.fontWeight||$,size:parseFloat(de.fontSize||12)|0,family:he||"Microsoft YaHei"},X[K]=ee,Z++}return ee},V;a.$override("measureText",function(K,ee){var de=y.doc;V||(V=de.createElement("div"),V.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",y.doc.body.appendChild(V));try{V.style.font=ee}catch(he){}return V.innerHTML="",V.appendChild(de.createTextNode(K)),{width:V.offsetWidth}});for(var re=new v,I=function(K,ee,de,he){var Me=this.style;this.__dirty&&r.normalizeTextStyle(Me,!0);var ce=Me.text;if(ce!=null&&(ce+=""),!ce)return;if(Me.rich){var be=a.parseRichText(ce,Me);ce=[];for(var Ae=0;Ae=0&&b<=6&&(R===0||R===6)||R>=0&&R<=6&&(b===0||b===6)||b>=2&&b<=4&&R>=2&&R<=4?w.set(_+b,k+R,!0,!0):w.set(_+b,k+R,!1,!0)}}}function N(w){for(var c=w.size,o=8;o>b&1)===1,w.set(F,_,k,!0),w.set(_,F,k,!0)}function C(w,c,o){var n=w.size,F=d.getEncodedBits(c,o),_,k;for(_=0;_<15;_++)k=(F>>_&1)===1,_<6?w.set(_,8,k,!0):_<8?w.set(_+1,8,k,!0):w.set(n-15+_,8,k,!0),_<8?w.set(8,n-_-1,k,!0):_<9?w.set(8,15-_-1+1,k,!0):w.set(8,15-_-1,k,!0);w.set(n-8,8,1,!0)}function h(w,c){for(var o=w.size,n=-1,F=o-1,_=7,k=0,b=o-1;b>0;b-=2)for(b===6&&b--;;){for(var R=0;R<2;R++)if(!w.isReserved(F,b-R)){var M=!1;k>>_&1)===1),w.set(F,b-R,M),_--,_===-1&&(k++,_=7)}if(F+=n,F<0||o<=F){F-=n,n=-n;break}}}function T(w,c,o){var n=new v;o.forEach(function(M){n.put(M.mode.bit,4),n.put(M.getLength(),g.getCharCountIndicator(M.mode,w)),M.write(n)});var F=f.getSymbolTotalCodewords(w),_=s.getTotalCodewordsCount(w,c),k=(F-_)*8;for(n.getLengthInBits()+4<=k&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);for(var b=(k-n.getLengthInBits())/8,R=0;R=7&&p(j,c),h(j,R),isNaN(n)&&(n=e.getBestMask(j,C.bind(null,j,o))),e.applyMask(n,j),C(j,o,n),{modules:j,version:c,errorCorrectionLevel:o,maskPattern:n,segments:F}}x.create=function(c,o){if(typeof c=="undefined"||c==="")throw new Error("No input text");var n=m.M,F,_;return typeof o!="undefined"&&(n=m.from(o.errorCorrectionLevel,m.M),F=i.from(o.version),_=e.from(o.maskPattern),o.toSJISFunc&&f.setToSJISFunction(o.toSJISFunc)),H(c,F,n,_)}},r6Bn:function(ie,x,t){var O=t("bYtY"),f=t("ItGF"),m=t("4fz+"),v=t("BPZU");function u(e,s){return e.zlevel===s.zlevel?e.z===s.z?e.z2-s.z2:e.z-s.z:e.zlevel-s.zlevel}var a=function(){this._roots=[],this._displayList=[],this._displayListLen=0};a.prototype={constructor:a,traverse:function(e,s){for(var l=0;l=0&&(this.delFromStorage(e),this._roots.splice(d,1),e instanceof m&&e.delChildrenFromStorage(this))},addToStorage:function(e){return e&&(e.__storage=this,e.dirty(!1)),this},delFromStorage:function(e){return e&&(e.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:u};var r=a;ie.exports=r},rA99:function(ie,x,t){var O=t("y+Vt"),f=t("QBsz"),m=t("Sj9i"),v=m.quadraticSubdivide,u=m.cubicSubdivide,a=m.quadraticAt,r=m.cubicAt,e=m.quadraticDerivativeAt,s=m.cubicDerivativeAt,l=[];function i(g,E,y){var T=g.cpx2,N=g.cpy2;return T===null||N===null?[(y?s:r)(g.x1,g.cpx1,g.cpx2,g.x2,E),(y?s:r)(g.y1,g.cpy1,g.cpy2,g.y2,E)]:[(y?e:a)(g.x1,g.cpx1,g.x2,E),(y?e:a)(g.y1,g.cpy1,g.y2,E)]}var d=O.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(g,E){var y=E.x1,T=E.y1,N=E.x2,L=E.y2,p=E.cpx1,C=E.cpy1,h=E.cpx2,D=E.cpy2,B=E.percent;if(B===0)return;g.moveTo(y,T),h==null||D==null?(B<1&&(v(y,p,N,B,l),p=l[1],N=l[2],v(T,C,L,B,l),C=l[1],L=l[2]),g.quadraticCurveTo(p,C,N,L)):(B<1&&(u(y,p,h,N,B,l),p=l[1],h=l[2],N=l[3],u(T,C,D,L,B,l),C=l[1],D=l[2],L=l[3]),g.bezierCurveTo(p,C,h,D,N,L))},pointAt:function(g){return i(this.shape,g,!1)},tangentAt:function(g){var E=i(this.shape,g,!0);return f.normalize(E,E)}});ie.exports=d},rHrb:function(ie,x,t){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.CopyToClipboard=void 0;var O=m(t("q1tI")),f=m(t("+QRC"));function m(p){return p&&p.__esModule?p:{default:p}}function v(p){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v=function(h){return typeof h}:v=function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},v(p)}function u(p,C){var h=Object.keys(p);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(p);C&&(D=D.filter(function(B){return Object.getOwnPropertyDescriptor(p,B).enumerable})),h.push.apply(h,D)}return h}function a(p){for(var C=1;C=0)continue;if(!Object.prototype.propertyIsEnumerable.call(p,D))continue;h[D]=p[D]}}return h}function e(p,C){if(p==null)return{};var h={},D=Object.keys(p),B,H;for(H=0;H=0)continue;h[B]=p[B]}return h}function s(p,C){if(!(p instanceof C))throw new TypeError("Cannot call a class as a function")}function l(p,C){for(var h=0;h-1)){var E=v.parse(g)[3],y=v.toHex(g);d.setAttribute("stop-color","#"+y),d.setAttribute("stop-opacity",E)}else d.setAttribute("stop-color",s[l].color);e.appendChild(d)}r._dom=e},u.prototype.markUsed=function(r){if(r.style){var e=r.style.fill;e&&e._dom&&O.prototype.markUsed.call(this,e._dom),e=r.style.stroke,e&&e._dom&&O.prototype.markUsed.call(this,e._dom)}};var a=u;ie.exports=a},sboe:function(ie,x,t){"use strict";t.d(x,"a",function(){return m});var O=t("q1tI"),f=t.n(O),m=O.createContext(null)},tWlo:function(ie,x){ie.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29t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TV6HqA8F6sMfR5z0qiDUKsjQpoEuPQ1SsSILVPDd1FJTrDA/Fwry9NDX1w9dxh7MSs2+ytTjcI+7gc0IkHwpMD+JnpbnZGdCXk4WPJSUKFlHzj0bGTrtGqhZNjJqgQHzIHRjWMbzhd7/MqLaZxqzxfjVFU+UjhcZCs+gp7f9nowcszMhfg17SoptSKDyym9N9cbePt8O2GrQ5pbrDRMTkwbe6MQpN6hfFRUVWa+Qb+7je23ideLAtPdGZ/cUZpw1iTsTFtFLJcBwEc2RIryHqELvW2q/qQPT4JA4AmupL5aP/Saza8A0eDU2Jvr0DrWaNkEe3L32kULmhXV+cHHR8cOvV5tcDd9f8qvm9ouAW2Zm5yhpm5uwWi9HRoRXq1UqC9zt08cDe391VUiJPyaPo+F1zddaZy80XFyLRv52v2ViPrehiJSvz6Z7rthQpZI+t6E+K91yuj+3UXnkL+7PbYxCFdiIKfgYdTcohHZ23QTnEntd8Y8AAwCTubpzlq2wWAAAAABJRU5ErkJggg=="},"u/Db":function(ie,x,t){var O=t("J6Nv"),f=t("BCVQ");x.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]},x.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]},x.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]},x.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]},x.MIXED={bit:-1},x.getCharCountIndicator=function(u,a){if(!u.ccBits)throw new Error("Invalid mode: "+u);if(!O.isValid(a))throw new Error("Invalid version: "+a);return a>=1&&a<10?u.ccBits[0]:a<27?u.ccBits[1]:u.ccBits[2]},x.getBestModeForData=function(u){return f.testNumeric(u)?x.NUMERIC:f.testAlphanumeric(u)?x.ALPHANUMERIC:f.testKanji(u)?x.KANJI:x.BYTE},x.toString=function(u){if(u&&u.id)return u.id;throw new Error("Invalid mode")},x.isValid=function(u){return u&&u.bit&&u.ccBits};function m(v){if(typeof v!="string")throw new Error("Param is not a string");var u=v.toLowerCase();switch(u){case"numeric":return x.NUMERIC;case"alphanumeric":return x.ALPHANUMERIC;case"kanji":return x.KANJI;case"byte":return x.BYTE;default:throw new Error("Unknown mode: "+v)}}x.from=function(u,a){if(x.isValid(u))return u;try{return m(u)}catch(r){return a}}},u3os:function(ie,x,t){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.ver=x.clear=x.bind=void 0;var O=t("P4Qj"),f=function(a,r){var e=(0,O.getSensor)(a);return e.bind(r),function(){e.unbind(r)}};x.bind=f;var m=function(a){var r=(0,O.getSensor)(a);(0,O.removeSensor)(r)};x.clear=m;var v="1.0.1";x.ver=v},vKoX:function(ie,x,t){var O=t("SrGk"),f=t("bYtY");function m(a,r){O.call(this,a,r,["filter"],"__filter_in_use__","_shadowDom")}f.inherits(m,O),m.prototype.addWithoutUpdate=function(a,r){if(r&&v(r.style)){var e;if(r._shadowDom){e=r._shadowDom;var s=this.getDefs(!0);s.contains(r._shadowDom)||this.addDom(e)}else e=this.add(r);this.markUsed(r);var l=e.getAttribute("id");a.style.filter="url(#"+l+")"}},m.prototype.add=function(a){var r=this.createElement("filter");return a._shadowDomId=a._shadowDomId||this.nextId++,r.setAttribute("id","zr"+this._zrId+"-shadow-"+a._shadowDomId),this.updateDom(a,r),this.addDom(r),r},m.prototype.update=function(a,r){var e=r.style;if(v(e)){var s=this;O.prototype.update.call(this,r,function(){s.updateDom(r,r._shadowDom)})}else this.remove(a,r)},m.prototype.remove=function(a,r){r._shadowDomId!=null&&(this.removeDom(a),a.style.filter="")},m.prototype.updateDom=function(a,r){var e=r.getElementsByTagName("feDropShadow");e.length===0?e=this.createElement("feDropShadow"):e=e[0];var s=a.style,l=a.scale&&a.scale[0]||1,i=a.scale&&a.scale[1]||1,d,g,E,y;if(s.shadowBlur||s.shadowOffsetX||s.shadowOffsetY)d=s.shadowOffsetX||0,g=s.shadowOffsetY||0,E=s.shadowBlur,y=s.shadowColor;else if(s.textShadowBlur)d=s.textShadowOffsetX||0,g=s.textShadowOffsetY||0,E=s.textShadowBlur,y=s.textShadowColor;else{this.removeDom(r,s);return}e.setAttribute("dx",d/l),e.setAttribute("dy",g/i),e.setAttribute("flood-color",y);var T=E/2/l,N=E/2/i,L=T+" "+N;e.setAttribute("stdDeviation",L),r.setAttribute("x","-100%"),r.setAttribute("y","-100%"),r.setAttribute("width",Math.ceil(E/2*200)+"%"),r.setAttribute("height",Math.ceil(E/2*200)+"%"),r.appendChild(e),a._shadowDom=r},m.prototype.markUsed=function(a){a._shadowDom&&O.prototype.markUsed.call(this,a._shadowDom)};function v(a){return a&&(a.shadowBlur||a.shadowOffsetX||a.shadowOffsetY||a.textShadowBlur||a.textShadowOffsetX||a.textShadowOffsetY)}var u=m;ie.exports=u},vWvF:function(ie,x,t){var O=t("Bq2U"),f=t("SUKs"),m=t("bYtY"),v=m.isString,u=m.isFunction,a=m.isObject,r=m.isArrayLike,e=m.indexOf,s=function(){this.animators=[]};s.prototype={constructor:s,animate:function(E,y){var T,N=!1,L=this,p=this.__zr;if(E){var C=E.split("."),h=L;N=C[0]==="shape";for(var D=0,B=C.length;D0&&E.animate(y,!1).when(L==null?500:L,h).delay(p||0)}function d(E,y,T,N){if(!y)E.attr(T,N);else{var L={};L[y]={},L[y][T]=N,E.attr(L)}}var g=s;ie.exports=g},vvrf:function(ie,x,t){var O=t("u/Db"),f=t("3X7Y"),m=t("nZSm"),v=t("AZa5"),u=t("Lzq4"),a=t("BCVQ"),r=t("e/Dd"),e=t("ELBg");function s(N){return unescape(encodeURIComponent(N)).length}function l(N,L,p){for(var C=[],h;(h=N.exec(p))!==null;)C.push({data:h[0],index:h.index,mode:L,length:h[0].length});return C}function i(N){var L=l(a.NUMERIC,O.NUMERIC,N),p=l(a.ALPHANUMERIC,O.ALPHANUMERIC,N),C,h;r.isKanjiModeEnabled()?(C=l(a.BYTE,O.BYTE,N),h=l(a.KANJI,O.KANJI,N)):(C=l(a.BYTE_KANJI,O.BYTE,N),h=[]);var D=L.concat(p,C,h);return D.sort(function(B,H){return B.index-H.index}).map(function(B){return{data:B.data,mode:B.mode,length:B.length}})}function d(N,L){switch(L){case O.NUMERIC:return f.getBitsLength(N);case O.ALPHANUMERIC:return m.getBitsLength(N);case O.KANJI:return u.getBitsLength(N);case O.BYTE:return v.getBitsLength(N)}}function g(N){return N.reduce(function(L,p){var C=L.length-1>=0?L[L.length-1]:null;return C&&C.mode===p.mode?(L[L.length-1].data+=p.data,L):(L.push(p),L)},[])}function E(N){for(var L=[],p=0;p1e-10&&(y.width+=T/N,y.height+=T/N,y.x-=T/N/2,y.y-=T/N/2)}return y}return i},contain:function(i,d){var g=this.transformCoordToLocal(i,d),E=this.getBoundingRect(),y=this.style;if(i=g[0],d=g[1],E.contain(i,d)){var T=this.path.data;if(y.hasStroke()){var N=y.lineWidth,L=y.strokeNoScale?this.getLineScale():1;if(L>1e-10&&(y.hasFill()||(N=Math.max(N,this.strokeContainThreshold)),v.containStroke(T,N/L,i,d)))return!0}if(y.hasFill())return v.contain(T,i,d)}return!1},dirty:function(i){i==null&&(i=!0),i&&(this.__dirtyPath=i,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(i){return this.animate("shape",i)},attrKV:function(i,d){i==="shape"?(this.setShape(d),this.__dirtyPath=!0,this._rect=null):O.prototype.attrKV.call(this,i,d)},setShape:function(i,d){var g=this.shape;if(g){if(f.isObject(i))for(var E in i)i.hasOwnProperty(E)&&(g[E]=i[E]);else g[i]=d;this.dirty(!0)}return this},getLineScale:function(){var i=this.transform;return i&&r(i[0]-1)>1e-10&&r(i[3]-1)>1e-10?Math.sqrt(r(i[0]*i[3]-i[2]*i[1])):1}},s.extend=function(i){var d=function(E){s.call(this,E),i.style&&this.style.extendFrom(i.style,!1);var y=i.shape;if(y){this.shape=this.shape||{};var T=this.shape;for(var N in y)!T.hasOwnProperty(N)&&y.hasOwnProperty(N)&&(T[N]=y[N])}i.init&&i.init.call(this,E)};f.inherits(d,s);for(var g in i)g!=="style"&&g!=="shape"&&(d.prototype[g]=i[g]);return d},f.inherits(s,O);var l=s;ie.exports=l},y23F:function(ie,x){function t(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}t.prototype={constructor:t,_dragStart:function(m){for(var v=m.target;v&&!v.draggable;)v=v.parent;v&&(this._draggingTarget=v,v.dragging=!0,this._x=m.offsetX,this._y=m.offsetY,this.dispatchToElement(O(v,m),"dragstart",m.event))},_drag:function(m){var v=this._draggingTarget;if(v){var u=m.offsetX,a=m.offsetY,r=u-this._x,e=a-this._y;this._x=u,this._y=a,v.drift(r,e,m),this.dispatchToElement(O(v,m),"drag",m.event);var s=this.findHover(u,a,v).target,l=this._dropTarget;this._dropTarget=s,v!==s&&(l&&s!==l&&this.dispatchToElement(O(l,m),"dragleave",m.event),s&&s!==l&&this.dispatchToElement(O(s,m),"dragenter",m.event))}},_dragEnd:function(m){var v=this._draggingTarget;v&&(v.dragging=!1),this.dispatchToElement(O(v,m),"dragend",m.event),this._dropTarget&&this.dispatchToElement(O(this._dropTarget,m),"drop",m.event),this._draggingTarget=null,this._dropTarget=null}};function O(m,v){return{target:m,topTarget:v&&v.topTarget}}var f=t;ie.exports=f},yKow:function(ie,x,t){var O=t("e/Dd"),f=t("NPxG"),m=t("ekOh"),v=t("u/Db"),u=t("J6Nv"),a=t("7uVY"),r=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,e=O.getBCHDigit(r);function s(g,E,y){for(var T=1;T<=40;T++)if(E<=x.getCapacity(T,y,g))return T;return}function l(g,E){return v.getCharCountIndicator(g,E)+4}function i(g,E){var y=0;return g.forEach(function(T){var N=l(T.mode,E);y+=N+T.getBitsLength()}),y}function d(g,E){for(var y=1;y<=40;y++){var T=i(g,y);if(T<=x.getCapacity(y,E,v.MIXED))return y}return}x.from=function(E,y){return u.isValid(E)?parseInt(E,10):y},x.getCapacity=function(E,y,T){if(!u.isValid(E))throw new Error("Invalid QR Code version");typeof T=="undefined"&&(T=v.BYTE);var N=O.getSymbolTotalCodewords(E),L=f.getTotalCodewordsCount(E,y),p=(N-L)*8;if(T===v.MIXED)return p;var C=p-l(T,E);switch(T){case v.NUMERIC:return Math.floor(C/10*3);case v.ALPHANUMERIC:return Math.floor(C/11*2);case v.KANJI:return Math.floor(C/13);case v.BYTE:default:return Math.floor(C/8)}},x.getBestVersionForData=function(E,y){var T,N=m.from(y,m.M);if(a(E)){if(E.length>1)return d(E,N);if(E.length===0)return 1;T=E[0]}else T=E;return s(T.mode,T.getLength(),N)},x.getEncodedBits=function(E){if(!u.isValid(E)||E<7)throw new Error("Invalid QR Code version");for(var y=E<<12;O.getBCHDigit(y)-e>=0;)y^=r<=7&&p(j,c),h(j,R),isNaN(n)&&(n=e.getBestMask(j,C.bind(null,j,o))),e.applyMask(n,j),C(j,o,n),{modules:j,version:c,errorCorrectionLevel:o,maskPattern:n,segments:F}}x.create=function(c,o){if(typeof c=="undefined"||c==="")throw new Error("No input text");var n=m.M,F,_;return typeof o!="undefined"&&(n=m.from(o.errorCorrectionLevel,m.M),F=i.from(o.version),_=e.from(o.maskPattern),o.toSJISFunc&&f.setToSJISFunction(o.toSJISFunc)),H(c,F,n,_)}},r6Bn:function(ie,x,t){var O=t("bYtY"),f=t("ItGF"),m=t("4fz+"),v=t("BPZU");function u(e,s){return e.zlevel===s.zlevel?e.z===s.z?e.z2-s.z2:e.z-s.z:e.zlevel-s.zlevel}var a=function(){this._roots=[],this._displayList=[],this._displayListLen=0};a.prototype={constructor:a,traverse:function(e,s){for(var l=0;l=0&&(this.delFromStorage(e),this._roots.splice(d,1),e instanceof m&&e.delChildrenFromStorage(this))},addToStorage:function(e){return e&&(e.__storage=this,e.dirty(!1)),this},delFromStorage:function(e){return e&&(e.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:u};var r=a;ie.exports=r},rA99:function(ie,x,t){var O=t("y+Vt"),f=t("QBsz"),m=t("Sj9i"),v=m.quadraticSubdivide,u=m.cubicSubdivide,a=m.quadraticAt,r=m.cubicAt,e=m.quadraticDerivativeAt,s=m.cubicDerivativeAt,l=[];function i(g,E,y){var D=g.cpx2,N=g.cpy2;return D===null||N===null?[(y?s:r)(g.x1,g.cpx1,g.cpx2,g.x2,E),(y?s:r)(g.y1,g.cpy1,g.cpy2,g.y2,E)]:[(y?e:a)(g.x1,g.cpx1,g.x2,E),(y?e:a)(g.y1,g.cpy1,g.y2,E)]}var d=O.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(g,E){var y=E.x1,D=E.y1,N=E.x2,L=E.y2,p=E.cpx1,C=E.cpy1,h=E.cpx2,T=E.cpy2,B=E.percent;if(B===0)return;g.moveTo(y,D),h==null||T==null?(B<1&&(v(y,p,N,B,l),p=l[1],N=l[2],v(D,C,L,B,l),C=l[1],L=l[2]),g.quadraticCurveTo(p,C,N,L)):(B<1&&(u(y,p,h,N,B,l),p=l[1],h=l[2],N=l[3],u(D,C,T,L,B,l),C=l[1],T=l[2],L=l[3]),g.bezierCurveTo(p,C,h,T,N,L))},pointAt:function(g){return i(this.shape,g,!1)},tangentAt:function(g){var E=i(this.shape,g,!0);return f.normalize(E,E)}});ie.exports=d},rHrb:function(ie,x,t){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.CopyToClipboard=void 0;var O=m(t("q1tI")),f=m(t("+QRC"));function m(p){return p&&p.__esModule?p:{default:p}}function v(p){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v=function(h){return typeof h}:v=function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},v(p)}function u(p,C){var h=Object.keys(p);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(p);C&&(T=T.filter(function(B){return Object.getOwnPropertyDescriptor(p,B).enumerable})),h.push.apply(h,T)}return h}function a(p){for(var C=1;C=0)continue;if(!Object.prototype.propertyIsEnumerable.call(p,T))continue;h[T]=p[T]}}return h}function e(p,C){if(p==null)return{};var h={},T=Object.keys(p),B,H;for(H=0;H=0)continue;h[B]=p[B]}return h}function s(p,C){if(!(p instanceof C))throw new TypeError("Cannot call a class as a function")}function l(p,C){for(var h=0;h-1)){var E=v.parse(g)[3],y=v.toHex(g);d.setAttribute("stop-color","#"+y),d.setAttribute("stop-opacity",E)}else d.setAttribute("stop-color",s[l].color);e.appendChild(d)}r._dom=e},u.prototype.markUsed=function(r){if(r.style){var e=r.style.fill;e&&e._dom&&O.prototype.markUsed.call(this,e._dom),e=r.style.stroke,e&&e._dom&&O.prototype.markUsed.call(this,e._dom)}};var a=u;ie.exports=a},sboe:function(ie,x,t){"use strict";t.d(x,"a",function(){return m});var O=t("q1tI"),f=t.n(O),m=O.createContext(null)},tWlo:function(ie,x){ie.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvb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DX1w9dxh7MSs2+ytTjcI+7gc0IkHwpMD+JnpbnZGdCXk4WPJSUKFlHzj0bGTrtGqhZNjJqgQHzIHRjWMbzhd7/MqLaZxqzxfjVFU+UjhcZCs+gp7f9nowcszMhfg17SoptSKDyym9N9cbePt8O2GrQ5pbrDRMTkwbe6MQpN6hfFRUVWa+Qb+7je23ideLAtPdGZ/cUZpw1iTsTFtFLJcBwEc2RIryHqELvW2q/qQPT4JA4AmupL5aP/Saza8A0eDU2Jvr0DrWaNkEe3L32kULmhXV+cHHR8cOvV5tcDd9f8qvm9ouAW2Zm5yhpm5uwWi9HRoRXq1UqC9zt08cDe391VUiJPyaPo+F1zddaZy80XFyLRv52v2ViPrehiJSvz6Z7rthQpZI+t6E+K91yuj+3UXnkL+7PbYxCFdiIKfgYdTcohHZ23QTnEntd8Y8AAwCTubpzlq2wWAAAAABJRU5ErkJggg=="},"u/Db":function(ie,x,t){var O=t("J6Nv"),f=t("BCVQ");x.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]},x.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]},x.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]},x.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]},x.MIXED={bit:-1},x.getCharCountIndicator=function(u,a){if(!u.ccBits)throw new Error("Invalid mode: "+u);if(!O.isValid(a))throw new Error("Invalid version: "+a);return a>=1&&a<10?u.ccBits[0]:a<27?u.ccBits[1]:u.ccBits[2]},x.getBestModeForData=function(u){return f.testNumeric(u)?x.NUMERIC:f.testAlphanumeric(u)?x.ALPHANUMERIC:f.testKanji(u)?x.KANJI:x.BYTE},x.toString=function(u){if(u&&u.id)return u.id;throw new Error("Invalid mode")},x.isValid=function(u){return u&&u.bit&&u.ccBits};function m(v){if(typeof v!="string")throw new Error("Param is not a string");var u=v.toLowerCase();switch(u){case"numeric":return x.NUMERIC;case"alphanumeric":return x.ALPHANUMERIC;case"kanji":return x.KANJI;case"byte":return x.BYTE;default:throw new Error("Unknown mode: "+v)}}x.from=function(u,a){if(x.isValid(u))return u;try{return m(u)}catch(r){return a}}},u3os:function(ie,x,t){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.ver=x.clear=x.bind=void 0;var O=t("P4Qj"),f=function(a,r){var e=(0,O.getSensor)(a);return e.bind(r),function(){e.unbind(r)}};x.bind=f;var m=function(a){var r=(0,O.getSensor)(a);(0,O.removeSensor)(r)};x.clear=m;var v="1.0.1";x.ver=v},vKoX:function(ie,x,t){var O=t("SrGk"),f=t("bYtY");function m(a,r){O.call(this,a,r,["filter"],"__filter_in_use__","_shadowDom")}f.inherits(m,O),m.prototype.addWithoutUpdate=function(a,r){if(r&&v(r.style)){var e;if(r._shadowDom){e=r._shadowDom;var s=this.getDefs(!0);s.contains(r._shadowDom)||this.addDom(e)}else e=this.add(r);this.markUsed(r);var l=e.getAttribute("id");a.style.filter="url(#"+l+")"}},m.prototype.add=function(a){var r=this.createElement("filter");return a._shadowDomId=a._shadowDomId||this.nextId++,r.setAttribute("id","zr"+this._zrId+"-shadow-"+a._shadowDomId),this.updateDom(a,r),this.addDom(r),r},m.prototype.update=function(a,r){var e=r.style;if(v(e)){var s=this;O.prototype.update.call(this,r,function(){s.updateDom(r,r._shadowDom)})}else this.remove(a,r)},m.prototype.remove=function(a,r){r._shadowDomId!=null&&(this.removeDom(a),a.style.filter="")},m.prototype.updateDom=function(a,r){var e=r.getElementsByTagName("feDropShadow");e.length===0?e=this.createElement("feDropShadow"):e=e[0];var s=a.style,l=a.scale&&a.scale[0]||1,i=a.scale&&a.scale[1]||1,d,g,E,y;if(s.shadowBlur||s.shadowOffsetX||s.shadowOffsetY)d=s.shadowOffsetX||0,g=s.shadowOffsetY||0,E=s.shadowBlur,y=s.shadowColor;else if(s.textShadowBlur)d=s.textShadowOffsetX||0,g=s.textShadowOffsetY||0,E=s.textShadowBlur,y=s.textShadowColor;else{this.removeDom(r,s);return}e.setAttribute("dx",d/l),e.setAttribute("dy",g/i),e.setAttribute("flood-color",y);var D=E/2/l,N=E/2/i,L=D+" "+N;e.setAttribute("stdDeviation",L),r.setAttribute("x","-100%"),r.setAttribute("y","-100%"),r.setAttribute("width",Math.ceil(E/2*200)+"%"),r.setAttribute("height",Math.ceil(E/2*200)+"%"),r.appendChild(e),a._shadowDom=r},m.prototype.markUsed=function(a){a._shadowDom&&O.prototype.markUsed.call(this,a._shadowDom)};function v(a){return a&&(a.shadowBlur||a.shadowOffsetX||a.shadowOffsetY||a.textShadowBlur||a.textShadowOffsetX||a.textShadowOffsetY)}var u=m;ie.exports=u},vWvF:function(ie,x,t){var O=t("Bq2U"),f=t("SUKs"),m=t("bYtY"),v=m.isString,u=m.isFunction,a=m.isObject,r=m.isArrayLike,e=m.indexOf,s=function(){this.animators=[]};s.prototype={constructor:s,animate:function(E,y){var D,N=!1,L=this,p=this.__zr;if(E){var C=E.split("."),h=L;N=C[0]==="shape";for(var T=0,B=C.length;T0&&E.animate(y,!1).when(L==null?500:L,h).delay(p||0)}function d(E,y,D,N){if(!y)E.attr(D,N);else{var L={};L[y]={},L[y][D]=N,E.attr(L)}}var g=s;ie.exports=g},vvrf:function(ie,x,t){var O=t("u/Db"),f=t("3X7Y"),m=t("nZSm"),v=t("AZa5"),u=t("Lzq4"),a=t("BCVQ"),r=t("e/Dd"),e=t("ELBg");function s(N){return unescape(encodeURIComponent(N)).length}function l(N,L,p){for(var C=[],h;(h=N.exec(p))!==null;)C.push({data:h[0],index:h.index,mode:L,length:h[0].length});return C}function i(N){var L=l(a.NUMERIC,O.NUMERIC,N),p=l(a.ALPHANUMERIC,O.ALPHANUMERIC,N),C,h;r.isKanjiModeEnabled()?(C=l(a.BYTE,O.BYTE,N),h=l(a.KANJI,O.KANJI,N)):(C=l(a.BYTE_KANJI,O.BYTE,N),h=[]);var T=L.concat(p,C,h);return T.sort(function(B,H){return B.index-H.index}).map(function(B){return{data:B.data,mode:B.mode,length:B.length}})}function d(N,L){switch(L){case O.NUMERIC:return f.getBitsLength(N);case O.ALPHANUMERIC:return m.getBitsLength(N);case O.KANJI:return u.getBitsLength(N);case O.BYTE:return v.getBitsLength(N)}}function g(N){return N.reduce(function(L,p){var C=L.length-1>=0?L[L.length-1]:null;return C&&C.mode===p.mode?(L[L.length-1].data+=p.data,L):(L.push(p),L)},[])}function E(N){for(var L=[],p=0;p1e-10&&(y.width+=D/N,y.height+=D/N,y.x-=D/N/2,y.y-=D/N/2)}return y}return i},contain:function(i,d){var g=this.transformCoordToLocal(i,d),E=this.getBoundingRect(),y=this.style;if(i=g[0],d=g[1],E.contain(i,d)){var D=this.path.data;if(y.hasStroke()){var N=y.lineWidth,L=y.strokeNoScale?this.getLineScale():1;if(L>1e-10&&(y.hasFill()||(N=Math.max(N,this.strokeContainThreshold)),v.containStroke(D,N/L,i,d)))return!0}if(y.hasFill())return v.contain(D,i,d)}return!1},dirty:function(i){i==null&&(i=!0),i&&(this.__dirtyPath=i,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(i){return this.animate("shape",i)},attrKV:function(i,d){i==="shape"?(this.setShape(d),this.__dirtyPath=!0,this._rect=null):O.prototype.attrKV.call(this,i,d)},setShape:function(i,d){var g=this.shape;if(g){if(f.isObject(i))for(var E in i)i.hasOwnProperty(E)&&(g[E]=i[E]);else g[i]=d;this.dirty(!0)}return this},getLineScale:function(){var i=this.transform;return i&&r(i[0]-1)>1e-10&&r(i[3]-1)>1e-10?Math.sqrt(r(i[0]*i[3]-i[2]*i[1])):1}},s.extend=function(i){var d=function(E){s.call(this,E),i.style&&this.style.extendFrom(i.style,!1);var y=i.shape;if(y){this.shape=this.shape||{};var D=this.shape;for(var N in y)!D.hasOwnProperty(N)&&y.hasOwnProperty(N)&&(D[N]=y[N])}i.init&&i.init.call(this,E)};f.inherits(d,s);for(var g in i)g!=="style"&&g!=="shape"&&(d.prototype[g]=i[g]);return d},f.inherits(s,O);var l=s;ie.exports=l},y23F:function(ie,x){function t(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}t.prototype={constructor:t,_dragStart:function(m){for(var v=m.target;v&&!v.draggable;)v=v.parent;v&&(this._draggingTarget=v,v.dragging=!0,this._x=m.offsetX,this._y=m.offsetY,this.dispatchToElement(O(v,m),"dragstart",m.event))},_drag:function(m){var v=this._draggingTarget;if(v){var u=m.offsetX,a=m.offsetY,r=u-this._x,e=a-this._y;this._x=u,this._y=a,v.drift(r,e,m),this.dispatchToElement(O(v,m),"drag",m.event);var s=this.findHover(u,a,v).target,l=this._dropTarget;this._dropTarget=s,v!==s&&(l&&s!==l&&this.dispatchToElement(O(l,m),"dragleave",m.event),s&&s!==l&&this.dispatchToElement(O(s,m),"dragenter",m.event))}},_dragEnd:function(m){var v=this._draggingTarget;v&&(v.dragging=!1),this.dispatchToElement(O(v,m),"dragend",m.event),this._dropTarget&&this.dispatchToElement(O(this._dropTarget,m),"drop",m.event),this._draggingTarget=null,this._dropTarget=null}};function O(m,v){return{target:m,topTarget:v&&v.topTarget}}var f=t;ie.exports=f},yKow:function(ie,x,t){var O=t("e/Dd"),f=t("NPxG"),m=t("ekOh"),v=t("u/Db"),u=t("J6Nv"),a=t("7uVY"),r=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,e=O.getBCHDigit(r);function s(g,E,y){for(var D=1;D<=40;D++)if(E<=x.getCapacity(D,y,g))return D;return}function l(g,E){return v.getCharCountIndicator(g,E)+4}function i(g,E){var y=0;return g.forEach(function(D){var N=l(D.mode,E);y+=N+D.getBitsLength()}),y}function d(g,E){for(var y=1;y<=40;y++){var D=i(g,y);if(D<=x.getCapacity(y,E,v.MIXED))return y}return}x.from=function(E,y){return u.isValid(E)?parseInt(E,10):y},x.getCapacity=function(E,y,D){if(!u.isValid(E))throw new Error("Invalid QR Code version");typeof D=="undefined"&&(D=v.BYTE);var N=O.getSymbolTotalCodewords(E),L=f.getTotalCodewordsCount(E,y),p=(N-L)*8;if(D===v.MIXED)return p;var C=p-l(D,E);switch(D){case v.NUMERIC:return Math.floor(C/10*3);case v.ALPHANUMERIC:return Math.floor(C/11*2);case v.KANJI:return Math.floor(C/13);case v.BYTE:default:return Math.floor(C/8)}},x.getBestVersionForData=function(E,y){var D,N=m.from(y,m.M);if(a(E)){if(E.length>1)return d(E,N);if(E.length===0)return 1;D=E[0]}else D=E;return s(D.mode,D.getLength(),N)},x.getEncodedBits=function(E){if(!u.isValid(E)||E<7)throw new Error("Invalid QR Code version");for(var y=E<<12;O.getBCHDigit(y)-e>=0;)y^=r<=0||C.relatedTarget.className.indexOf("".concat(ne,"-next"))>=0))return;o.setState({goInputText:""}),H(o.getValidValue())},o.go=function(C){var V=o.state.goInputText;if(V==="")return;(C.keyCode===P.ENTER||C.type==="click")&&(o.setState({goInputText:""}),o.props.quickGo(o.getValidValue()))},o}return Object(j.a)(a,[{key:"getValidValue",value:function(){var e=this.state,m=e.goInputText,p=e.current;return!m||isNaN(m)?p:Number(m)}},{key:"getPageSizeOptions",value:function(){var e=this.props,m=e.pageSize,p=e.pageSizeOptions;return p.some(function(C){return C.toString()===m.toString()})?p:p.concat([m.toString()]).sort(function(C,V){var x=isNaN(Number(C))?0:Number(C),H=isNaN(Number(V))?0:Number(V);return x-H})}},{key:"render",value:function(){var e=this,m=this.props,p=m.pageSize,C=m.locale,V=m.rootPrefixCls,x=m.changeSize,H=m.quickGo,ne=m.goButton,me=m.selectComponentClass,Se=m.buildOptionText,ue=m.selectPrefixCls,K=m.disabled,fe=this.state.goInputText,ge="".concat(V,"-options"),be=me,pe=null,B=null,z=null;if(!x&&!H)return null;var Q=this.getPageSizeOptions();if(x&&be){var W=Q.map(function(y,ee){return f.a.createElement(be.Option,{key:ee,value:y.toString()},(Se||e.buildOptionText)(y))});pe=f.a.createElement(be,{disabled:K,prefixCls:ue,showSearch:!1,className:"".concat(ge,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(p||Q[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ee){return ee.parentNode}},W)}return H&&(ne&&(z=typeof ne=="boolean"?f.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:K,className:"".concat(ge,"-quick-jumper-button")},C.jump_to_confirm):f.a.createElement("span",{onClick:this.go,onKeyUp:this.go},ne)),B=f.a.createElement("div",{className:"".concat(ge,"-quick-jumper")},C.jump_to,f.a.createElement("input",{disabled:K,type:"text",value:fe,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),C.page,z)),f.a.createElement("li",{className:"".concat(ge)},pe,B)}}]),a}(f.a.Component);s.defaultProps={pageSizeOptions:["10","20","50","100"]};var r=s,O=t("N2Kk");function b(){}function i(h){return typeof h=="number"&&isFinite(h)&&Math.floor(h)===h}function c(h,_,a){return a}function u(h,_,a){var o=typeof h=="undefined"?_.pageSize:h;return Math.floor((a.total-1)/o)+1}var g=function(h){Object(n.a)(a,h);var _=Object(U.a)(a);function a(o){var e;Object(te.a)(this,a),e=_.call(this,o),e.getJumpPrevPage=function(){return Math.max(1,e.state.current-(e.props.showLessItems?3:5))},e.getJumpNextPage=function(){return Math.min(u(void 0,e.state,e.props),e.state.current+(e.props.showLessItems?3:5))},e.getItemIcon=function(x,H){var ne=e.props.prefixCls,me=x||f.a.createElement("button",{type:"button","aria-label":H,className:"".concat(ne,"-item-link")});return typeof x=="function"&&(me=f.a.createElement(x,Object(Y.a)({},e.props))),me},e.savePaginationNode=function(x){e.paginationNode=x},e.isValid=function(x){return i(x)&&x!==e.state.current},e.shouldDisplayQuickJumper=function(){var x=e.props,H=x.showQuickJumper,ne=x.pageSize,me=x.total;return me<=ne?!1:H},e.handleKeyDown=function(x){(x.keyCode===P.ARROW_UP||x.keyCode===P.ARROW_DOWN)&&x.preventDefault()},e.handleKeyUp=function(x){var H=e.getValidValue(x),ne=e.state.currentInputValue;H!==ne&&e.setState({currentInputValue:H}),x.keyCode===P.ENTER?e.handleChange(H):x.keyCode===P.ARROW_UP?e.handleChange(H-1):x.keyCode===P.ARROW_DOWN&&e.handleChange(H+1)},e.changePageSize=function(x){var H=e.state.current,ne=u(x,e.state,e.props);H=H>ne?ne:H,ne===0&&(H=e.state.current),typeof x=="number"&&("pageSize"in e.props||e.setState({pageSize:x}),"current"in e.props||e.setState({current:H,currentInputValue:H})),e.props.onShowSizeChange(H,x),"onChange"in e.props&&e.props.onChange&&e.props.onChange(H,x)},e.handleChange=function(x){var H=e.props.disabled,ne=x;if(e.isValid(ne)&&!H){var me=u(void 0,e.state,e.props);ne>me?ne=me:ne<1&&(ne=1),"current"in e.props||e.setState({current:ne,currentInputValue:ne});var Se=e.state.pageSize;return e.props.onChange(ne,Se),ne}return e.state.current},e.prev=function(){e.hasPrev()&&e.handleChange(e.state.current-1)},e.next=function(){e.hasNext()&&e.handleChange(e.state.current+1)},e.jumpPrev=function(){e.handleChange(e.getJumpPrevPage())},e.jumpNext=function(){e.handleChange(e.getJumpNextPage())},e.hasPrev=function(){return e.state.current>1},e.hasNext=function(){return e.state.current2?ne-2:0),Se=2;Se=p?V=p:V=Number(m),V}},{key:"getShowSizeChanger",value:function(){var e=this.props,m=e.showSizeChanger,p=e.total,C=e.totalBoundaryShowSizeChanger;return typeof m!="undefined"?m:p>C}},{key:"renderPrev",value:function(e){var m=this.props,p=m.prevIcon,C=m.itemRender,V=C(e,"prev",this.getItemIcon(p,"prev page")),x=!this.hasPrev();return Object(D.isValidElement)(V)?Object(D.cloneElement)(V,{disabled:x}):V}},{key:"renderNext",value:function(e){var m=this.props,p=m.nextIcon,C=m.itemRender,V=C(e,"next",this.getItemIcon(p,"next page")),x=!this.hasNext();return Object(D.isValidElement)(V)?Object(D.cloneElement)(V,{disabled:x}):V}},{key:"render",value:function(){var e=this,m=this.props,p=m.prefixCls,C=m.className,V=m.style,x=m.disabled,H=m.hideOnSinglePage,ne=m.total,me=m.locale,Se=m.showQuickJumper,ue=m.showLessItems,K=m.showTitle,fe=m.showTotal,ge=m.simple,be=m.itemRender,pe=m.showPrevNextJumpers,B=m.jumpPrevIcon,z=m.jumpNextIcon,Q=m.selectComponentClass,W=m.selectPrefixCls,y=m.pageSizeOptions,ee=this.state,J=ee.current,he=ee.pageSize,je=ee.currentInputValue;if(H===!0&&ne<=he)return null;var se=u(void 0,this.state,this.props),ve=[],Me=null,Re=null,w=null,ze=null,we=null,Ce=Se&&Se.goButton,ye=ue?1:2,Ve=J-1>0?J-1:0,$e=J+1=ye*2&&J!==1+2&&(ve[0]=Object(D.cloneElement)(ve[0],{className:"".concat(p,"-item-after-jump-prev")}),ve.unshift(Me)),se-J>=ye*2&&J!==se-2&&(ve[ve.length-1]=Object(D.cloneElement)(ve[ve.length-1],{className:"".concat(p,"-item-before-jump-next")}),ve.push(Re)),N!==1&&ve.unshift(w),G!==se&&ve.push(ze)}var L=null;fe&&(L=f.a.createElement("li",{className:"".concat(p,"-total-text")},fe(ne,[ne===0?0:(J-1)*he+1,J*he>ne?ne:J*he])));var M=!this.hasPrev()||!se,I=!this.hasNext()||!se;return f.a.createElement("ul",Object(v.a)({className:R()(p,C,Object(E.a)({},"".concat(p,"-disabled"),x)),style:V,unselectable:"unselectable",ref:this.savePaginationNode},Ge),L,f.a.createElement("li",{title:K?me.prev_page:null,onClick:this.prev,tabIndex:M?null:0,onKeyPress:this.runIfEnterPrev,className:R()("".concat(p,"-prev"),Object(E.a)({},"".concat(p,"-disabled"),M)),"aria-disabled":M},this.renderPrev(Ve)),ve,f.a.createElement("li",{title:K?me.next_page:null,onClick:this.next,tabIndex:I?null:0,onKeyPress:this.runIfEnterNext,className:R()("".concat(p,"-next"),Object(E.a)({},"".concat(p,"-disabled"),I)),"aria-disabled":I},this.renderNext($e)),f.a.createElement(r,{disabled:x,locale:me,rootPrefixCls:p,selectComponentClass:Q,selectPrefixCls:W,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:J,pageSize:he,pageSizeOptions:y,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Ce}))}}],[{key:"getDerivedStateFromProps",value:function(e,m){var p={};if("current"in e&&(p.current=e.current,e.current!==m.current&&(p.currentInputValue=p.current)),"pageSize"in e&&e.pageSize!==m.pageSize){var C=m.current,V=u(e.pageSize,m,e);C=C>V?V:C,"current"in e||(p.current=C,p.currentInputValue=C),p.pageSize=e.pageSize}return p}}]),a}(f.a.Component);g.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:b,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:b,locale:O.a,style:{},itemRender:c,totalBoundaryShowSizeChanger:50};var d=g},"6RRn":function(xe,A,t){"use strict";var v=t("wCXF"),E=t("n6Qo");t.d(A,"b",function(){return E.a});var Y=t("IBYe"),te=t("6eGT"),j=t("hW8S");t.d(A,"a",function(){return j.a}),A.c=v.b},"6ZIh":function(xe,A,t){xe.exports={flex_box_center:"flex_box_center___223o2",flex_space_between:"flex_space_between___3hj_b",flex_box_vertical_center:"flex_box_vertical_center___AoxCR",flex_box_center_end:"flex_box_center_end___35GUF",flex_box_column:"flex_box_column___3BJWq",bg:"bg___u82_j",containerTitle:"containerTitle___1z7cs",containerDesc:"containerDesc___xy-Ng",listItem:"listItem___3uTWe",title:"title___2Be4h",titleLeft:"titleLeft___1s_Pv",titleRight:"titleRight___zdezu",acitons:"acitons___2uJ-u",memberManager:"memberManager___2_rgM",headWrap:"headWrap___1Edub",checkbox:"checkbox___3m9MH"}},"6eGT":function(xe,A,t){"use strict";function v(E){return null}A.a=v},"815F":function(xe,A,t){"use strict";t.d(A,"e",function(){return U}),t.d(A,"c",function(){return f}),t.d(A,"d",function(){return F}),t.d(A,"a",function(){return k}),t.d(A,"f",function(){return T}),t.d(A,"b",function(){return P});var v=t("KQm4"),E=t("VTBJ"),Y=t("Ff2n"),te=t("Zm9Q"),j=t("Kwbf"),n=t("OZM5");function U(s,r){return s!=null?s:r}function D(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=new Map;function O(b){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(b||[]).forEach(function(c){var u=c.key,g=c.children;Object(j.a)(u!=null,"Tree node must have a certain key: [".concat(i).concat(u,"]"));var d=String(u);Object(j.a)(!r.has(d)||u===null||u===void 0,"Same 'key' exist in the Tree: ".concat(d)),r.set(d,!0),O(g,"".concat(i).concat(d," > "))})}O(s)}function f(s){function r(O){var b=Object(te.a)(O);return b.map(function(i){if(!Object(n.i)(i))return Object(j.a)(!i,"Tree/TreeNode can only accept TreeNode as children."),null;var c=i.key,u=i.props,g=u.children,d=Object(Y.a)(u,["children"]),h=Object(E.a)({key:c},d),_=r(g);return _.length&&(h.children=_),h}).filter(function(i){return i})}return r(s)}function F(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],O=new Set(r===!0?[]:r),b=[];function i(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return c.map(function(g,d){var h=Object(n.h)(u?u.pos:"0",d),_=U(g.key,h),a=Object(E.a)(Object(E.a)({},g),{},{parent:u,pos:h,children:null,data:g,isStart:[].concat(Object(v.a)(u?u.isStart:[]),[d===0]),isEnd:[].concat(Object(v.a)(u?u.isEnd:[]),[d===c.length-1])});return b.push(a),r===!0||O.has(_)?a.children=i(g.children||[],a):a.children=[],a})}return i(s),b}function R(s,r,O){var b;O?typeof O=="string"?b=function(u){return u[O]}:typeof O=="function"&&(b=function(u){return O(u)}):b=function(u,g){return U(u.key,g)};function i(c,u,g){var d=c?c.children:s,h=c?Object(n.h)(g.pos,u):"0";if(c){var _=b(c,h),a={node:c,index:u,pos:h,key:_,parentPos:g.node?g.pos:null,level:g.level+1};r(a)}d&&d.forEach(function(o,e){i(o,e,{node:c,pos:h,level:g?g.level+1:-1})})}i(null)}function k(s){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=r.initWrapper,b=r.processEntity,i=r.onProcessFinished,c=arguments.length>2?arguments[2]:void 0,u={},g={},d={posEntities:u,keyEntities:g};return O&&(d=O(d)||d),R(s,function(h){var _=h.node,a=h.index,o=h.pos,e=h.key,m=h.parentPos,p=h.level,C={node:_,index:a,key:e,pos:o,level:p},V=U(e,o);u[o]=C,g[V]=C,C.parent=u[m],C.parent&&(C.parent.children=C.parent.children||[],C.parent.children.push(C)),b&&b(C,d)},c),i&&i(d),d}function T(s,r){var O=r.expandedKeys,b=r.selectedKeys,i=r.loadedKeys,c=r.loadingKeys,u=r.checkedKeys,g=r.halfCheckedKeys,d=r.dragOverNodeKey,h=r.dropPosition,_=r.keyEntities,a=_[s],o={eventKey:s,expanded:O.indexOf(s)!==-1,selected:b.indexOf(s)!==-1,loaded:i.indexOf(s)!==-1,loading:c.indexOf(s)!==-1,checked:u.indexOf(s)!==-1,halfChecked:g.indexOf(s)!==-1,pos:String(a?a.pos:""),dragOver:d===s&&h===0,dragOverGapTop:d===s&&h===-1,dragOverGapBottom:d===s&&h===1};return o}function P(s){var r=s.data,O=s.expanded,b=s.selected,i=s.checked,c=s.loaded,u=s.loading,g=s.halfChecked,d=s.dragOver,h=s.dragOverGapTop,_=s.dragOverGapBottom,a=s.pos,o=s.active,e=Object(E.a)(Object(E.a)({},r),{},{expanded:O,selected:b,checked:i,loaded:c,loading:u,halfChecked:g,dragOver:d,dragOverGapTop:h,dragOverGapBottom:_,pos:a,active:o});return"props"in e||Object.defineProperty(e,"props",{get:function(){return Object(j.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),s}}),e}},BU3w:function(xe,A,t){"use strict";t.d(A,"a",function(){return n});var v=t("MNnm"),E="rc-util-key";function Y(U){if(U.attachTo)return U.attachTo;var D=document.querySelector("head");return D||document.body}function te(U){var D,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(v.a)())return null;var F=document.createElement("style");if((D=f.csp)===null||D===void 0?void 0:D.nonce){var R;F.nonce=(R=f.csp)===null||R===void 0?void 0:R.nonce}F.innerHTML=U;var k=Y(f),T=k.firstChild;return f.prepend&&k.prepend?k.prepend(F):f.prepend&&T?k.insertBefore(F,T):k.appendChild(F),F}var j=new Map;function n(U,D){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},F=Y(f);if(!j.has(F)){var R=te("",f),k=R.parentNode;j.set(F,k),k.removeChild(R)}var T=Array.from(j.get(F).children).find(function(b){return b.tagName==="STYLE"&&b[E]===D});if(T){var P,s;if(((P=f.csp)===null||P===void 0?void 0:P.nonce)&&T.nonce!==((s=f.csp)===null||s===void 0?void 0:s.nonce)){var r;T.nonce=(r=f.csp)===null||r===void 0?void 0:r.nonce}return T.innerHTML!==U&&(T.innerHTML=U),T}var O=te(U,f);return O[E]=D,O}},BdwD:function(xe,A,t){"use strict";var v=t("+L6B"),E=t("2/Rp"),Y=t("0Owb"),te=t("k1fw"),j=t("q1tI"),n=t.n(j),U=t("FOrL"),D=t.n(U),f=function(R){var k=R.buttonProps,T=k===void 0?{}:k,P=R.styles,s=P===void 0?{}:P,r=R.customText,O=R.ButtonText,b=R.ButtonClick,i=R.Buttonclass,c=R.ButtonTwo;return n.a.createElement("section",{className:"tc animated fadeIn",style:Object(te.a)(Object(te.a)({},{color:"#999",margin:"200px auto"}),s)},n.a.createElement("img",{src:D.a}),n.a.createElement("p",{className:"mt20 font14"},r||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),O&&n.a.createElement(E.a,Object(Y.a)({className:i,onClick:b},T),O),c&&c)};A.a=f},E9nw:function(xe,A){xe.exports=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var v=document.activeElement,E=[],Y=0;Y1&&arguments[1]!==void 0?arguments[1]:1,I=ye.length,re=0;re1&&arguments[1]!==void 0?arguments[1]:!1;return Object(h.a)(ue).map(function(fe,ge){if(!j.isValidElement(fe)||!fe.type)return null;var be=fe.type.isSelectOptGroup,pe=fe.key,B=fe.props,z=B.children,Q=Object(U.a)(B,["children"]);return K||!be?_(fe):Object(d.a)(Object(d.a)({key:"__RC_SELECT_GRP__".concat(pe===null?ge:pe,"__"),label:pe},Q),{},{options:a(z)})}).filter(function(fe){return fe})}var o=t("2Qr1"),e=t("qNPg"),m=t("U8pU"),p=t("Kwbf"),C=t("WKfj");function V(ue){var K=ue.mode,fe=ue.options,ge=ue.children,be=ue.backfill,pe=ue.allowClear,B=ue.placeholder,z=ue.getInputElement,Q=ue.showSearch,W=ue.onSearch,y=ue.defaultOpen,ee=ue.autoFocus,J=ue.labelInValue,he=ue.value,je=ue.inputValue,se=ue.optionLabelProp,ve=K==="multiple"||K==="tags",Me=Q!==void 0?Q:ve||K==="combobox",Re=fe||a(ge);if(Object(p.a)(K!=="tags"||Re.every(function(Ce){return!Ce.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),K==="tags"||K==="combobox"){var w=Re.some(function(Ce){return Ce.options?Ce.options.some(function(ye){return typeof("value"in ye?ye.value:ye.key)=="number"}):typeof("value"in Ce?Ce.value:Ce.key)=="number"});Object(p.a)(!w,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(p.a)(K!=="combobox"||!se,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(p.a)(K==="combobox"||!be,"`backfill` only works with `combobox` mode."),Object(p.a)(K==="combobox"||!z,"`getInputElement` only work with `combobox` mode."),Object(p.b)(K!=="combobox"||!z||!pe||!B,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),W&&!Me&&K!=="combobox"&&K!=="tags"&&Object(p.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(p.b)(!y||ee,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),he!=null){var ze=Object(C.d)(he);Object(p.a)(!J||ze.every(function(Ce){return Object(m.a)(Ce)==="object"&&("key"in Ce||"value"in Ce)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(p.a)(!ve||Array.isArray(he),"`value` should be array when `mode` is `multiple` or `tags`")}if(ge){var we=null;Object(h.a)(ge).some(function(Ce){if(!j.isValidElement(Ce)||!Ce.type)return!1;var ye=Ce.type;if(ye.isSelectOption)return!1;if(ye.isSelectOptGroup){var Ve=Object(h.a)(Ce.props.children).every(function($e){return!j.isValidElement($e)||!Ce.type||$e.type.isSelectOption?!0:(we=$e.type,!1)});return!Ve}return we=ye,!0}),we&&Object(p.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(we.displayName||we.name||we,"`.")),Object(p.a)(je===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var x=V,H=Object(e.a)({prefixCls:"rc-select",components:{optionList:b},convertChildrenToData:a,flattenOptions:o.d,getLabeledValue:o.e,filterOptions:o.b,isValueDisabled:o.g,findValueOption:o.c,warningProps:x,fillOptionsWithMissingValue:o.a}),ne=function(ue){Object(Y.a)(fe,ue);var K=Object(te.a)(fe);function fe(){var ge;return Object(v.a)(this,fe),ge=K.apply(this,arguments),ge.selectRef=j.createRef(),ge.focus=function(){ge.selectRef.current.focus()},ge.blur=function(){ge.selectRef.current.blur()},ge}return Object(E.a)(fe,[{key:"render",value:function(){return j.createElement(H,Object.assign({ref:this.selectRef},this.props))}}]),fe}(j.Component);ne.Option=c,ne.OptGroup=g;var me=ne,Se=A.c=me},NvD2:function(xe,A,t){"use strict";t.d(A,"a",function(){return n});var v=t("Kwbf");function E(U,D){var f=new Set;return U.forEach(function(F){D.has(F)||f.add(F)}),f}function Y(U){var D=U||{},f=D.disabled,F=D.disableCheckbox,R=D.checkable;return!!(f||F)||R===!1}function te(U,D,f,F){for(var R=new Set(U),k=new Set,T=0;T<=f;T+=1){var P=D.get(T)||new Set;P.forEach(function(b){var i=b.key,c=b.node,u=b.children,g=u===void 0?[]:u;R.has(i)&&!F(c)&&g.filter(function(d){return!F(d.node)}).forEach(function(d){R.add(d.key)})})}for(var s=new Set,r=f;r>=0;r-=1){var O=D.get(r)||new Set;O.forEach(function(b){var i=b.parent,c=b.node;if(F(c)||!b.parent||s.has(b.parent.key))return;if(F(b.parent.node)){s.add(i.key);return}var u=!0,g=!1;(i.children||[]).filter(function(d){return!F(d.node)}).forEach(function(d){var h=d.key,_=R.has(h);u&&!_&&(u=!1),!g&&(_||k.has(h))&&(g=!0)}),u&&R.add(i.key),g&&k.add(i.key),s.add(i.key)})}return{checkedKeys:Array.from(R),halfCheckedKeys:Array.from(E(k,R))}}function j(U,D,f,F,R){for(var k=new Set(U),T=new Set(D),P=0;P<=F;P+=1){var s=f.get(P)||new Set;s.forEach(function(i){var c=i.key,u=i.node,g=i.children,d=g===void 0?[]:g;!k.has(c)&&!T.has(c)&&!R(u)&&d.filter(function(h){return!R(h.node)}).forEach(function(h){k.delete(h.key)})})}T=new Set;for(var r=new Set,O=F;O>=0;O-=1){var b=f.get(O)||new Set;b.forEach(function(i){var c=i.parent,u=i.node;if(R(u)||!i.parent||r.has(i.parent.key))return;if(R(i.parent.node)){r.add(c.key);return}var g=!0,d=!1;(c.children||[]).filter(function(h){return!R(h.node)}).forEach(function(h){var _=h.key,a=k.has(_);g&&!a&&(g=!1),!d&&(a||T.has(_))&&(d=!0)}),g||k.delete(c.key),d&&T.add(c.key),r.add(c.key)})}return{checkedKeys:Array.from(k),halfCheckedKeys:Array.from(E(T,k))}}function n(U,D,f,F){var R=[],k;F?k=F:k=Y;var T=new Set(U.filter(function(O){var b=!!f[O];return b||R.push(O),b})),P=new Map,s=0;Object.keys(f).forEach(function(O){var b=f[O],i=b.level,c=P.get(i);c||(c=new Set,P.set(i,c)),c.add(b),s=Math.max(s,i)}),Object(v.a)(!R.length,"Tree missing follow keys: ".concat(R.slice(0,100).map(function(O){return"'".concat(O,"'")}).join(", ")));var r;return D===!0?r=te(T,P,s,k):r=j(T,D.halfCheckedKeys,P,s,k),r}},OZM5:function(xe,A,t){"use strict";t.d(A,"b",function(){return F}),t.d(A,"a",function(){return R}),t.d(A,"k",function(){return k}),t.d(A,"h",function(){return T}),t.d(A,"i",function(){return P}),t.d(A,"g",function(){return s}),t.d(A,"c",function(){return r}),t.d(A,"d",function(){return O}),t.d(A,"j",function(){return c}),t.d(A,"e",function(){return u}),t.d(A,"f",function(){return g});var v=t("KQm4"),E=t("U8pU"),Y=t("Ff2n"),te=t("q1tI"),j=t.n(te),n=t("Kwbf"),U=t("WaYH"),D=.25,f=2;function F(d,h){var _=d.slice(),a=_.indexOf(h);return a>=0&&_.splice(a,1),_}function R(d,h){var _=d.slice();return _.indexOf(h)===-1&&_.push(h),_}function k(d){return d.split("-")}function T(d,h){return"".concat(d,"-").concat(h)}function P(d){return d&&d.type&&d.type.isTreeNode}function s(d,h){var _=[d],a=h[d];function o(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];e.forEach(function(m){var p=m.key,C=m.children;_.push(p),o(C)})}return o(a.children),_}function r(d,h){var _=d.clientY,a=h.selectHandle.getBoundingClientRect(),o=a.top,e=a.bottom,m=a.height,p=Math.max(m*D,f);return _<=o+p?-1:_>=e-p?1:0}function O(d,h){if(!d)return;var _=h.multiple;return _?d.slice():d.length?[d[0]]:d}var b=function(h){return h};function i(d,h){if(!d)return[];var _=h||{},a=_.processProps,o=a===void 0?b:a,e=Array.isArray(d)?d:[d];return e.map(function(m){var p=m.children,C=Object(Y.a)(m,["children"]),V=i(p,h);return j.a.createElement(U.a,Object.assign({},o(C)),V)})}function c(d){if(!d)return null;var h;if(Array.isArray(d))h={checkedKeys:d,halfCheckedKeys:void 0};else if(Object(E.a)(d)==="object")h={checkedKeys:d.checked||void 0,halfCheckedKeys:d.halfChecked||void 0};else return Object(n.a)(!1,"`checkedKeys` is not an array or an object"),null;return h}function u(d,h){var _=new Set;function a(o){if(_.has(o))return;var e=h[o];if(!e)return;_.add(o);var m=e.parent,p=e.node;if(p.disabled)return;m&&a(m.key)}return(d||[]).forEach(function(o){a(o)}),Object(v.a)(_)}function g(d){var h={};return Object.keys(d).forEach(function(_){(_.startsWith("data-")||_.startsWith("aria-"))&&(h[_]=d[_])}),h}},P5Jw:function(xe,A,t){"use strict";var v=t("rHrb"),E=v.CopyToClipboard;E.CopyToClipboard=E,xe.exports=E},"SA+Z":function(xe,A,t){var v=t("wTVA"),E=t("EbDI"),Y=t("ZhPi"),te=t("wkBT");function j(n){return v(n)||E(n)||Y(n)||te()}xe.exports=j,xe.exports.__esModule=!0,xe.exports.default=xe.exports},WaYH:function(xe,A,t){"use strict";var v=t("rePB"),E=t("Ff2n"),Y=t("VTBJ"),te=t("1OyB"),j=t("vuIU"),n=t("JX7q"),U=t("Ji7U"),D=t("LK+K"),f=t("q1tI"),F=t("TSYQ"),R=t.n(F),k=t("sboe"),T=t("OZM5"),P=function(h){var _=h.prefixCls,a=h.level,o=h.isStart,e=h.isEnd;if(!a)return null;for(var m="".concat(_,"-indent-unit"),p=[],C=0;C=0||C.relatedTarget.className.indexOf("".concat(ne,"-next"))>=0))return;o.setState({goInputText:""}),H(o.getValidValue())},o.go=function(C){var V=o.state.goInputText;if(V==="")return;(C.keyCode===P.ENTER||C.type==="click")&&(o.setState({goInputText:""}),o.props.quickGo(o.getValidValue()))},o}return Object(j.a)(a,[{key:"getValidValue",value:function(){var e=this.state,m=e.goInputText,p=e.current;return!m||isNaN(m)?p:Number(m)}},{key:"getPageSizeOptions",value:function(){var e=this.props,m=e.pageSize,p=e.pageSizeOptions;return p.some(function(C){return C.toString()===m.toString()})?p:p.concat([m.toString()]).sort(function(C,V){var x=isNaN(Number(C))?0:Number(C),H=isNaN(Number(V))?0:Number(V);return x-H})}},{key:"render",value:function(){var e=this,m=this.props,p=m.pageSize,C=m.locale,V=m.rootPrefixCls,x=m.changeSize,H=m.quickGo,ne=m.goButton,me=m.selectComponentClass,Se=m.buildOptionText,ue=m.selectPrefixCls,K=m.disabled,fe=this.state.goInputText,ge="".concat(V,"-options"),be=me,pe=null,B=null,k=null;if(!x&&!H)return null;var Q=this.getPageSizeOptions();if(x&&be){var W=Q.map(function(y,ee){return f.a.createElement(be.Option,{key:ee,value:y.toString()},(Se||e.buildOptionText)(y))});pe=f.a.createElement(be,{disabled:K,prefixCls:ue,showSearch:!1,className:"".concat(ge,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(p||Q[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ee){return ee.parentNode}},W)}return H&&(ne&&(k=typeof ne=="boolean"?f.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:K,className:"".concat(ge,"-quick-jumper-button")},C.jump_to_confirm):f.a.createElement("span",{onClick:this.go,onKeyUp:this.go},ne)),B=f.a.createElement("div",{className:"".concat(ge,"-quick-jumper")},C.jump_to,f.a.createElement("input",{disabled:K,type:"text",value:fe,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),C.page,k)),f.a.createElement("li",{className:"".concat(ge)},pe,B)}}]),a}(f.a.Component);s.defaultProps={pageSizeOptions:["10","20","50","100"]};var r=s,O=t("N2Kk");function b(){}function i(h){return typeof h=="number"&&isFinite(h)&&Math.floor(h)===h}function c(h,_,a){return a}function u(h,_,a){var o=typeof h=="undefined"?_.pageSize:h;return Math.floor((a.total-1)/o)+1}var g=function(h){Object(n.a)(a,h);var _=Object(U.a)(a);function a(o){var e;Object(te.a)(this,a),e=_.call(this,o),e.getJumpPrevPage=function(){return Math.max(1,e.state.current-(e.props.showLessItems?3:5))},e.getJumpNextPage=function(){return Math.min(u(void 0,e.state,e.props),e.state.current+(e.props.showLessItems?3:5))},e.getItemIcon=function(x,H){var ne=e.props.prefixCls,me=x||f.a.createElement("button",{type:"button","aria-label":H,className:"".concat(ne,"-item-link")});return typeof x=="function"&&(me=f.a.createElement(x,Object(Y.a)({},e.props))),me},e.savePaginationNode=function(x){e.paginationNode=x},e.isValid=function(x){return i(x)&&x!==e.state.current},e.shouldDisplayQuickJumper=function(){var x=e.props,H=x.showQuickJumper,ne=x.pageSize,me=x.total;return me<=ne?!1:H},e.handleKeyDown=function(x){(x.keyCode===P.ARROW_UP||x.keyCode===P.ARROW_DOWN)&&x.preventDefault()},e.handleKeyUp=function(x){var H=e.getValidValue(x),ne=e.state.currentInputValue;H!==ne&&e.setState({currentInputValue:H}),x.keyCode===P.ENTER?e.handleChange(H):x.keyCode===P.ARROW_UP?e.handleChange(H-1):x.keyCode===P.ARROW_DOWN&&e.handleChange(H+1)},e.changePageSize=function(x){var H=e.state.current,ne=u(x,e.state,e.props);H=H>ne?ne:H,ne===0&&(H=e.state.current),typeof x=="number"&&("pageSize"in e.props||e.setState({pageSize:x}),"current"in e.props||e.setState({current:H,currentInputValue:H})),e.props.onShowSizeChange(H,x),"onChange"in e.props&&e.props.onChange&&e.props.onChange(H,x)},e.handleChange=function(x){var H=e.props.disabled,ne=x;if(e.isValid(ne)&&!H){var me=u(void 0,e.state,e.props);ne>me?ne=me:ne<1&&(ne=1),"current"in e.props||e.setState({current:ne,currentInputValue:ne});var Se=e.state.pageSize;return e.props.onChange(ne,Se),ne}return e.state.current},e.prev=function(){e.hasPrev()&&e.handleChange(e.state.current-1)},e.next=function(){e.hasNext()&&e.handleChange(e.state.current+1)},e.jumpPrev=function(){e.handleChange(e.getJumpPrevPage())},e.jumpNext=function(){e.handleChange(e.getJumpNextPage())},e.hasPrev=function(){return e.state.current>1},e.hasNext=function(){return e.state.current2?ne-2:0),Se=2;Se=p?V=p:V=Number(m),V}},{key:"getShowSizeChanger",value:function(){var e=this.props,m=e.showSizeChanger,p=e.total,C=e.totalBoundaryShowSizeChanger;return typeof m!="undefined"?m:p>C}},{key:"renderPrev",value:function(e){var m=this.props,p=m.prevIcon,C=m.itemRender,V=C(e,"prev",this.getItemIcon(p,"prev page")),x=!this.hasPrev();return Object(D.isValidElement)(V)?Object(D.cloneElement)(V,{disabled:x}):V}},{key:"renderNext",value:function(e){var m=this.props,p=m.nextIcon,C=m.itemRender,V=C(e,"next",this.getItemIcon(p,"next page")),x=!this.hasNext();return Object(D.isValidElement)(V)?Object(D.cloneElement)(V,{disabled:x}):V}},{key:"render",value:function(){var e=this,m=this.props,p=m.prefixCls,C=m.className,V=m.style,x=m.disabled,H=m.hideOnSinglePage,ne=m.total,me=m.locale,Se=m.showQuickJumper,ue=m.showLessItems,K=m.showTitle,fe=m.showTotal,ge=m.simple,be=m.itemRender,pe=m.showPrevNextJumpers,B=m.jumpPrevIcon,k=m.jumpNextIcon,Q=m.selectComponentClass,W=m.selectPrefixCls,y=m.pageSizeOptions,ee=this.state,J=ee.current,he=ee.pageSize,je=ee.currentInputValue;if(H===!0&&ne<=he)return null;var se=u(void 0,this.state,this.props),ve=[],Me=null,Re=null,w=null,ke=null,we=null,Ce=Se&&Se.goButton,ye=ue?1:2,Ve=J-1>0?J-1:0,$e=J+1=ye*2&&J!==1+2&&(ve[0]=Object(D.cloneElement)(ve[0],{className:"".concat(p,"-item-after-jump-prev")}),ve.unshift(Me)),se-J>=ye*2&&J!==se-2&&(ve[ve.length-1]=Object(D.cloneElement)(ve[ve.length-1],{className:"".concat(p,"-item-before-jump-next")}),ve.push(Re)),T!==1&&ve.unshift(w),G!==se&&ve.push(ke)}var L=null;fe&&(L=f.a.createElement("li",{className:"".concat(p,"-total-text")},fe(ne,[ne===0?0:(J-1)*he+1,J*he>ne?ne:J*he])));var M=!this.hasPrev()||!se,I=!this.hasNext()||!se;return f.a.createElement("ul",Object(v.a)({className:R()(p,C,Object(E.a)({},"".concat(p,"-disabled"),x)),style:V,unselectable:"unselectable",ref:this.savePaginationNode},Ge),L,f.a.createElement("li",{title:K?me.prev_page:null,onClick:this.prev,tabIndex:M?null:0,onKeyPress:this.runIfEnterPrev,className:R()("".concat(p,"-prev"),Object(E.a)({},"".concat(p,"-disabled"),M)),"aria-disabled":M},this.renderPrev(Ve)),ve,f.a.createElement("li",{title:K?me.next_page:null,onClick:this.next,tabIndex:I?null:0,onKeyPress:this.runIfEnterNext,className:R()("".concat(p,"-next"),Object(E.a)({},"".concat(p,"-disabled"),I)),"aria-disabled":I},this.renderNext($e)),f.a.createElement(r,{disabled:x,locale:me,rootPrefixCls:p,selectComponentClass:Q,selectPrefixCls:W,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:J,pageSize:he,pageSizeOptions:y,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Ce}))}}],[{key:"getDerivedStateFromProps",value:function(e,m){var p={};if("current"in e&&(p.current=e.current,e.current!==m.current&&(p.currentInputValue=p.current)),"pageSize"in e&&e.pageSize!==m.pageSize){var C=m.current,V=u(e.pageSize,m,e);C=C>V?V:C,"current"in e||(p.current=C,p.currentInputValue=C),p.pageSize=e.pageSize}return p}}]),a}(f.a.Component);g.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:b,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:b,locale:O.a,style:{},itemRender:c,totalBoundaryShowSizeChanger:50};var d=g},"6RRn":function(xe,A,t){"use strict";var v=t("wCXF"),E=t("n6Qo");t.d(A,"b",function(){return E.a});var Y=t("IBYe"),te=t("6eGT"),j=t("hW8S");t.d(A,"a",function(){return j.a}),A.c=v.b},"6ZIh":function(xe,A,t){xe.exports={flex_box_center:"flex_box_center___223o2",flex_space_between:"flex_space_between___3hj_b",flex_box_vertical_center:"flex_box_vertical_center___AoxCR",flex_box_center_end:"flex_box_center_end___35GUF",flex_box_column:"flex_box_column___3BJWq",bg:"bg___u82_j",containerTitle:"containerTitle___1z7cs",containerDesc:"containerDesc___xy-Ng",listItem:"listItem___3uTWe",title:"title___2Be4h",titleLeft:"titleLeft___1s_Pv",titleRight:"titleRight___zdezu",acitons:"acitons___2uJ-u",memberManager:"memberManager___2_rgM",headWrap:"headWrap___1Edub",checkbox:"checkbox___3m9MH"}},"6eGT":function(xe,A,t){"use strict";function v(E){return null}A.a=v},"815F":function(xe,A,t){"use strict";t.d(A,"e",function(){return U}),t.d(A,"c",function(){return f}),t.d(A,"d",function(){return F}),t.d(A,"a",function(){return z}),t.d(A,"f",function(){return N}),t.d(A,"b",function(){return P});var v=t("KQm4"),E=t("VTBJ"),Y=t("Ff2n"),te=t("Zm9Q"),j=t("Kwbf"),n=t("OZM5");function U(s,r){return s!=null?s:r}function D(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=new Map;function O(b){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(b||[]).forEach(function(c){var u=c.key,g=c.children;Object(j.a)(u!=null,"Tree node must have a certain key: [".concat(i).concat(u,"]"));var d=String(u);Object(j.a)(!r.has(d)||u===null||u===void 0,"Same 'key' exist in the Tree: ".concat(d)),r.set(d,!0),O(g,"".concat(i).concat(d," > "))})}O(s)}function f(s){function r(O){var b=Object(te.a)(O);return b.map(function(i){if(!Object(n.i)(i))return Object(j.a)(!i,"Tree/TreeNode can only accept TreeNode as children."),null;var c=i.key,u=i.props,g=u.children,d=Object(Y.a)(u,["children"]),h=Object(E.a)({key:c},d),_=r(g);return _.length&&(h.children=_),h}).filter(function(i){return i})}return r(s)}function F(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],O=new Set(r===!0?[]:r),b=[];function i(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return c.map(function(g,d){var h=Object(n.h)(u?u.pos:"0",d),_=U(g.key,h),a=Object(E.a)(Object(E.a)({},g),{},{parent:u,pos:h,children:null,data:g,isStart:[].concat(Object(v.a)(u?u.isStart:[]),[d===0]),isEnd:[].concat(Object(v.a)(u?u.isEnd:[]),[d===c.length-1])});return b.push(a),r===!0||O.has(_)?a.children=i(g.children||[],a):a.children=[],a})}return i(s),b}function R(s,r,O){var b;O?typeof O=="string"?b=function(u){return u[O]}:typeof O=="function"&&(b=function(u){return O(u)}):b=function(u,g){return U(u.key,g)};function i(c,u,g){var d=c?c.children:s,h=c?Object(n.h)(g.pos,u):"0";if(c){var _=b(c,h),a={node:c,index:u,pos:h,key:_,parentPos:g.node?g.pos:null,level:g.level+1};r(a)}d&&d.forEach(function(o,e){i(o,e,{node:c,pos:h,level:g?g.level+1:-1})})}i(null)}function z(s){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=r.initWrapper,b=r.processEntity,i=r.onProcessFinished,c=arguments.length>2?arguments[2]:void 0,u={},g={},d={posEntities:u,keyEntities:g};return O&&(d=O(d)||d),R(s,function(h){var _=h.node,a=h.index,o=h.pos,e=h.key,m=h.parentPos,p=h.level,C={node:_,index:a,key:e,pos:o,level:p},V=U(e,o);u[o]=C,g[V]=C,C.parent=u[m],C.parent&&(C.parent.children=C.parent.children||[],C.parent.children.push(C)),b&&b(C,d)},c),i&&i(d),d}function N(s,r){var O=r.expandedKeys,b=r.selectedKeys,i=r.loadedKeys,c=r.loadingKeys,u=r.checkedKeys,g=r.halfCheckedKeys,d=r.dragOverNodeKey,h=r.dropPosition,_=r.keyEntities,a=_[s],o={eventKey:s,expanded:O.indexOf(s)!==-1,selected:b.indexOf(s)!==-1,loaded:i.indexOf(s)!==-1,loading:c.indexOf(s)!==-1,checked:u.indexOf(s)!==-1,halfChecked:g.indexOf(s)!==-1,pos:String(a?a.pos:""),dragOver:d===s&&h===0,dragOverGapTop:d===s&&h===-1,dragOverGapBottom:d===s&&h===1};return o}function P(s){var r=s.data,O=s.expanded,b=s.selected,i=s.checked,c=s.loaded,u=s.loading,g=s.halfChecked,d=s.dragOver,h=s.dragOverGapTop,_=s.dragOverGapBottom,a=s.pos,o=s.active,e=Object(E.a)(Object(E.a)({},r),{},{expanded:O,selected:b,checked:i,loaded:c,loading:u,halfChecked:g,dragOver:d,dragOverGapTop:h,dragOverGapBottom:_,pos:a,active:o});return"props"in e||Object.defineProperty(e,"props",{get:function(){return Object(j.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),s}}),e}},BU3w:function(xe,A,t){"use strict";t.d(A,"a",function(){return n});var v=t("MNnm"),E="rc-util-key";function Y(U){if(U.attachTo)return U.attachTo;var D=document.querySelector("head");return D||document.body}function te(U){var D,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(v.a)())return null;var F=document.createElement("style");if((D=f.csp)===null||D===void 0?void 0:D.nonce){var R;F.nonce=(R=f.csp)===null||R===void 0?void 0:R.nonce}F.innerHTML=U;var z=Y(f),N=z.firstChild;return f.prepend&&z.prepend?z.prepend(F):f.prepend&&N?z.insertBefore(F,N):z.appendChild(F),F}var j=new Map;function n(U,D){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},F=Y(f);if(!j.has(F)){var R=te("",f),z=R.parentNode;j.set(F,z),z.removeChild(R)}var N=Array.from(j.get(F).children).find(function(b){return b.tagName==="STYLE"&&b[E]===D});if(N){var P,s;if(((P=f.csp)===null||P===void 0?void 0:P.nonce)&&N.nonce!==((s=f.csp)===null||s===void 0?void 0:s.nonce)){var r;N.nonce=(r=f.csp)===null||r===void 0?void 0:r.nonce}return N.innerHTML!==U&&(N.innerHTML=U),N}var O=te(U,f);return O[E]=D,O}},BdwD:function(xe,A,t){"use strict";var v=t("+L6B"),E=t("2/Rp"),Y=t("0Owb"),te=t("k1fw"),j=t("q1tI"),n=t.n(j),U=t("FOrL"),D=t.n(U),f=function(R){var z=R.buttonProps,N=z===void 0?{}:z,P=R.styles,s=P===void 0?{}:P,r=R.customText,O=R.ButtonText,b=R.ButtonClick,i=R.Buttonclass,c=R.ButtonTwo;return n.a.createElement("section",{className:"tc animated fadeIn",style:Object(te.a)(Object(te.a)({},{color:"#999",margin:"200px auto"}),s)},n.a.createElement("img",{src:D.a}),n.a.createElement("p",{className:"mt20 font14"},r||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),O&&n.a.createElement(E.a,Object(Y.a)({className:i,onClick:b},N),O),c&&c)};A.a=f},E9nw:function(xe,A){xe.exports=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var v=document.activeElement,E=[],Y=0;Y1&&arguments[1]!==void 0?arguments[1]:1,I=ye.length,re=0;re1&&arguments[1]!==void 0?arguments[1]:!1;return Object(h.a)(ue).map(function(fe,ge){if(!j.isValidElement(fe)||!fe.type)return null;var be=fe.type.isSelectOptGroup,pe=fe.key,B=fe.props,k=B.children,Q=Object(U.a)(B,["children"]);return K||!be?_(fe):Object(d.a)(Object(d.a)({key:"__RC_SELECT_GRP__".concat(pe===null?ge:pe,"__"),label:pe},Q),{},{options:a(k)})}).filter(function(fe){return fe})}var o=t("2Qr1"),e=t("qNPg"),m=t("U8pU"),p=t("Kwbf"),C=t("WKfj");function V(ue){var K=ue.mode,fe=ue.options,ge=ue.children,be=ue.backfill,pe=ue.allowClear,B=ue.placeholder,k=ue.getInputElement,Q=ue.showSearch,W=ue.onSearch,y=ue.defaultOpen,ee=ue.autoFocus,J=ue.labelInValue,he=ue.value,je=ue.inputValue,se=ue.optionLabelProp,ve=K==="multiple"||K==="tags",Me=Q!==void 0?Q:ve||K==="combobox",Re=fe||a(ge);if(Object(p.a)(K!=="tags"||Re.every(function(Ce){return!Ce.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),K==="tags"||K==="combobox"){var w=Re.some(function(Ce){return Ce.options?Ce.options.some(function(ye){return typeof("value"in ye?ye.value:ye.key)=="number"}):typeof("value"in Ce?Ce.value:Ce.key)=="number"});Object(p.a)(!w,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(p.a)(K!=="combobox"||!se,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(p.a)(K==="combobox"||!be,"`backfill` only works with `combobox` mode."),Object(p.a)(K==="combobox"||!k,"`getInputElement` only work with `combobox` mode."),Object(p.b)(K!=="combobox"||!k||!pe||!B,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),W&&!Me&&K!=="combobox"&&K!=="tags"&&Object(p.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(p.b)(!y||ee,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),he!=null){var ke=Object(C.d)(he);Object(p.a)(!J||ke.every(function(Ce){return Object(m.a)(Ce)==="object"&&("key"in Ce||"value"in Ce)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(p.a)(!ve||Array.isArray(he),"`value` should be array when `mode` is `multiple` or `tags`")}if(ge){var we=null;Object(h.a)(ge).some(function(Ce){if(!j.isValidElement(Ce)||!Ce.type)return!1;var ye=Ce.type;if(ye.isSelectOption)return!1;if(ye.isSelectOptGroup){var Ve=Object(h.a)(Ce.props.children).every(function($e){return!j.isValidElement($e)||!Ce.type||$e.type.isSelectOption?!0:(we=$e.type,!1)});return!Ve}return we=ye,!0}),we&&Object(p.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(we.displayName||we.name||we,"`.")),Object(p.a)(je===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var x=V,H=Object(e.a)({prefixCls:"rc-select",components:{optionList:b},convertChildrenToData:a,flattenOptions:o.d,getLabeledValue:o.e,filterOptions:o.b,isValueDisabled:o.g,findValueOption:o.c,warningProps:x,fillOptionsWithMissingValue:o.a}),ne=function(ue){Object(Y.a)(fe,ue);var K=Object(te.a)(fe);function fe(){var ge;return Object(v.a)(this,fe),ge=K.apply(this,arguments),ge.selectRef=j.createRef(),ge.focus=function(){ge.selectRef.current.focus()},ge.blur=function(){ge.selectRef.current.blur()},ge}return Object(E.a)(fe,[{key:"render",value:function(){return j.createElement(H,Object.assign({ref:this.selectRef},this.props))}}]),fe}(j.Component);ne.Option=c,ne.OptGroup=g;var me=ne,Se=A.c=me},NvD2:function(xe,A,t){"use strict";t.d(A,"a",function(){return n});var v=t("Kwbf");function E(U,D){var f=new Set;return U.forEach(function(F){D.has(F)||f.add(F)}),f}function Y(U){var D=U||{},f=D.disabled,F=D.disableCheckbox,R=D.checkable;return!!(f||F)||R===!1}function te(U,D,f,F){for(var R=new Set(U),z=new Set,N=0;N<=f;N+=1){var P=D.get(N)||new Set;P.forEach(function(b){var i=b.key,c=b.node,u=b.children,g=u===void 0?[]:u;R.has(i)&&!F(c)&&g.filter(function(d){return!F(d.node)}).forEach(function(d){R.add(d.key)})})}for(var s=new Set,r=f;r>=0;r-=1){var O=D.get(r)||new Set;O.forEach(function(b){var i=b.parent,c=b.node;if(F(c)||!b.parent||s.has(b.parent.key))return;if(F(b.parent.node)){s.add(i.key);return}var u=!0,g=!1;(i.children||[]).filter(function(d){return!F(d.node)}).forEach(function(d){var h=d.key,_=R.has(h);u&&!_&&(u=!1),!g&&(_||z.has(h))&&(g=!0)}),u&&R.add(i.key),g&&z.add(i.key),s.add(i.key)})}return{checkedKeys:Array.from(R),halfCheckedKeys:Array.from(E(z,R))}}function j(U,D,f,F,R){for(var z=new Set(U),N=new Set(D),P=0;P<=F;P+=1){var s=f.get(P)||new Set;s.forEach(function(i){var c=i.key,u=i.node,g=i.children,d=g===void 0?[]:g;!z.has(c)&&!N.has(c)&&!R(u)&&d.filter(function(h){return!R(h.node)}).forEach(function(h){z.delete(h.key)})})}N=new Set;for(var r=new Set,O=F;O>=0;O-=1){var b=f.get(O)||new Set;b.forEach(function(i){var c=i.parent,u=i.node;if(R(u)||!i.parent||r.has(i.parent.key))return;if(R(i.parent.node)){r.add(c.key);return}var g=!0,d=!1;(c.children||[]).filter(function(h){return!R(h.node)}).forEach(function(h){var _=h.key,a=z.has(_);g&&!a&&(g=!1),!d&&(a||N.has(_))&&(d=!0)}),g||z.delete(c.key),d&&N.add(c.key),r.add(c.key)})}return{checkedKeys:Array.from(z),halfCheckedKeys:Array.from(E(N,z))}}function n(U,D,f,F){var R=[],z;F?z=F:z=Y;var N=new Set(U.filter(function(O){var b=!!f[O];return b||R.push(O),b})),P=new Map,s=0;Object.keys(f).forEach(function(O){var b=f[O],i=b.level,c=P.get(i);c||(c=new Set,P.set(i,c)),c.add(b),s=Math.max(s,i)}),Object(v.a)(!R.length,"Tree missing follow keys: ".concat(R.slice(0,100).map(function(O){return"'".concat(O,"'")}).join(", ")));var r;return D===!0?r=te(N,P,s,z):r=j(N,D.halfCheckedKeys,P,s,z),r}},OZM5:function(xe,A,t){"use strict";t.d(A,"b",function(){return F}),t.d(A,"a",function(){return R}),t.d(A,"k",function(){return z}),t.d(A,"h",function(){return N}),t.d(A,"i",function(){return P}),t.d(A,"g",function(){return s}),t.d(A,"c",function(){return r}),t.d(A,"d",function(){return O}),t.d(A,"j",function(){return c}),t.d(A,"e",function(){return u}),t.d(A,"f",function(){return g});var v=t("KQm4"),E=t("U8pU"),Y=t("Ff2n"),te=t("q1tI"),j=t.n(te),n=t("Kwbf"),U=t("WaYH"),D=.25,f=2;function F(d,h){var _=d.slice(),a=_.indexOf(h);return a>=0&&_.splice(a,1),_}function R(d,h){var _=d.slice();return _.indexOf(h)===-1&&_.push(h),_}function z(d){return d.split("-")}function N(d,h){return"".concat(d,"-").concat(h)}function P(d){return d&&d.type&&d.type.isTreeNode}function s(d,h){var _=[d],a=h[d];function o(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];e.forEach(function(m){var p=m.key,C=m.children;_.push(p),o(C)})}return o(a.children),_}function r(d,h){var _=d.clientY,a=h.selectHandle.getBoundingClientRect(),o=a.top,e=a.bottom,m=a.height,p=Math.max(m*D,f);return _<=o+p?-1:_>=e-p?1:0}function O(d,h){if(!d)return;var _=h.multiple;return _?d.slice():d.length?[d[0]]:d}var b=function(h){return h};function i(d,h){if(!d)return[];var _=h||{},a=_.processProps,o=a===void 0?b:a,e=Array.isArray(d)?d:[d];return e.map(function(m){var p=m.children,C=Object(Y.a)(m,["children"]),V=i(p,h);return j.a.createElement(U.a,Object.assign({},o(C)),V)})}function c(d){if(!d)return null;var h;if(Array.isArray(d))h={checkedKeys:d,halfCheckedKeys:void 0};else if(Object(E.a)(d)==="object")h={checkedKeys:d.checked||void 0,halfCheckedKeys:d.halfChecked||void 0};else return Object(n.a)(!1,"`checkedKeys` is not an array or an object"),null;return h}function u(d,h){var _=new Set;function a(o){if(_.has(o))return;var e=h[o];if(!e)return;_.add(o);var m=e.parent,p=e.node;if(p.disabled)return;m&&a(m.key)}return(d||[]).forEach(function(o){a(o)}),Object(v.a)(_)}function g(d){var h={};return Object.keys(d).forEach(function(_){(_.startsWith("data-")||_.startsWith("aria-"))&&(h[_]=d[_])}),h}},P5Jw:function(xe,A,t){"use strict";var v=t("rHrb"),E=v.CopyToClipboard;E.CopyToClipboard=E,xe.exports=E},"SA+Z":function(xe,A,t){var v=t("wTVA"),E=t("EbDI"),Y=t("ZhPi"),te=t("wkBT");function j(n){return v(n)||E(n)||Y(n)||te()}xe.exports=j,xe.exports.__esModule=!0,xe.exports.default=xe.exports},WaYH:function(xe,A,t){"use strict";var v=t("rePB"),E=t("Ff2n"),Y=t("VTBJ"),te=t("1OyB"),j=t("vuIU"),n=t("JX7q"),U=t("Ji7U"),D=t("LK+K"),f=t("q1tI"),F=t("TSYQ"),R=t.n(F),z=t("sboe"),N=t("OZM5"),P=function(h){var _=h.prefixCls,a=h.level,o=h.isStart,e=h.isEnd;if(!a)return null;for(var m="".concat(_,"-indent-unit"),p=[],C=0;C1&&arguments[1]!==void 0?arguments[1]:!1,Q=B.getAttribute("id")||B.getAttribute("data-reactid")||B.getAttribute("name");if(z&&x[Q])return x[Q];var W=window.getComputedStyle(B),y=W.getPropertyValue("box-sizing")||W.getPropertyValue("-moz-box-sizing")||W.getPropertyValue("-webkit-box-sizing"),ee=parseFloat(W.getPropertyValue("padding-bottom"))+parseFloat(W.getPropertyValue("padding-top")),J=parseFloat(W.getPropertyValue("border-bottom-width"))+parseFloat(W.getPropertyValue("border-top-width")),he=V.map(function(se){return"".concat(se,":").concat(W.getPropertyValue(se))}).join(";"),je={sizingStyle:he,paddingSize:ee,borderSize:J,boxSizing:y};return z&&Q&&(x[Q]=je),je}function me(B){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,W=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;H||(H=document.createElement("textarea"),H.setAttribute("tab-index","-1"),H.setAttribute("aria-hidden","true"),document.body.appendChild(H)),B.getAttribute("wrap")?H.setAttribute("wrap",B.getAttribute("wrap")):H.removeAttribute("wrap");var y=ne(B,z),ee=y.paddingSize,J=y.borderSize,he=y.boxSizing,je=y.sizingStyle;H.setAttribute("style","".concat(je,";").concat(C)),H.value=B.value||B.placeholder||"";var se=Number.MIN_SAFE_INTEGER,ve=Number.MAX_SAFE_INTEGER,Me=H.scrollHeight,Re;if(he==="border-box"?Me+=J:he==="content-box"&&(Me-=ee),Q!==null||W!==null){H.value=" ";var w=H.scrollHeight-ee;Q!==null&&(se=w*Q,he==="border-box"&&(se=se+ee+J),Me=Math.max(se,Me)),W!==null&&(ve=w*W,he==="border-box"&&(ve=ve+ee+J),Re=Me>ve?"":"hidden",Me=Math.min(ve,Me))}return{height:Me,minHeight:se,maxHeight:ve,overflowY:Re,resize:"none"}}var Se=t("Gytx"),ue=t.n(Se),K;(function(B){B[B.NONE=0]="NONE",B[B.RESIZING=1]="RESIZING",B[B.RESIZED=2]="RESIZED"})(K||(K={}));var fe=function(B){Object(te.a)(Q,B);var z=Object(j.a)(Q);function Q(W){var y;return Object(E.a)(this,Q),y=z.call(this,W),y.nextFrameActionId=void 0,y.resizeFrameId=void 0,y.textArea=void 0,y.saveTextArea=function(ee){y.textArea=ee},y.handleResize=function(ee){var J=y.state.resizeStatus,he=y.props,je=he.autoSize,se=he.onResize;if(J!==K.NONE)return;typeof se=="function"&&se(ee),je&&y.resizeOnNextFrame()},y.resizeOnNextFrame=function(){cancelAnimationFrame(y.nextFrameActionId),y.nextFrameActionId=requestAnimationFrame(y.resizeTextarea)},y.resizeTextarea=function(){var ee=y.props.autoSize;if(!ee||!y.textArea)return;var J=ee.minRows,he=ee.maxRows,je=me(y.textArea,!1,J,he);y.setState({textareaStyles:je,resizeStatus:K.RESIZING},function(){cancelAnimationFrame(y.resizeFrameId),y.resizeFrameId=requestAnimationFrame(function(){y.setState({resizeStatus:K.RESIZED},function(){y.resizeFrameId=requestAnimationFrame(function(){y.setState({resizeStatus:K.NONE}),y.fixFirefoxAutoScroll()})})})})},y.renderTextArea=function(){var ee=y.props,J=ee.prefixCls,he=J===void 0?"rc-textarea":J,je=ee.autoSize,se=ee.onResize,ve=ee.className,Me=ee.disabled,Re=y.state,w=Re.textareaStyles,ze=Re.resizeStatus,we=Object(e.a)(y.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Ce=p()(he,ve,Object(D.a)({},"".concat(he,"-disabled"),Me));"value"in we&&(we.value=we.value||"");var ye=Object(U.a)(Object(U.a)(Object(U.a)({},y.props.style),w),ze===K.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return n.createElement(o,{onResize:y.handleResize,disabled:!(je||se)},n.createElement("textarea",Object(v.a)({},we,{className:Ce,style:ye,ref:y.saveTextArea})))},y.state={textareaStyles:{},resizeStatus:K.NONE},y}return Object(Y.a)(Q,[{key:"componentDidUpdate",value:function(y){(y.value!==this.props.value||!ue()(y.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var y=this.textArea.selectionStart,ee=this.textArea.selectionEnd;this.textArea.setSelectionRange(y,ee)}}catch(J){}}},{key:"render",value:function(){return this.renderTextArea()}}]),Q}(n.Component),ge=fe,be=function(B){Object(te.a)(Q,B);var z=Object(j.a)(Q);function Q(W){var y;Object(E.a)(this,Q),y=z.call(this,W),y.resizableTextArea=void 0,y.focus=function(){y.resizableTextArea.textArea.focus()},y.saveTextArea=function(J){y.resizableTextArea=J},y.handleChange=function(J){var he=y.props.onChange;y.setValue(J.target.value,function(){y.resizableTextArea.resizeTextarea()}),he&&he(J)},y.handleKeyDown=function(J){var he=y.props,je=he.onPressEnter,se=he.onKeyDown;J.keyCode===13&&je&&je(J),se&&se(J)};var ee=typeof W.value=="undefined"||W.value===null?W.defaultValue:W.value;return y.state={value:ee},y}return Object(Y.a)(Q,[{key:"setValue",value:function(y,ee){"value"in this.props||this.setState({value:y},ee)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return n.createElement(ge,Object(v.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(y){return"value"in y?{value:y.value}:null}}]),Q}(n.Component),pe=A.default=be},bT9E:function(xe,A,t){"use strict";t.d(A,"a",function(){return E});var v=t("VTBJ");function E(Y,te){var j=Object(v.a)({},Y);return Array.isArray(te)&&te.forEach(function(n){delete j[n]}),j}},biw7:function(xe,A,t){"use strict";var v=t("q1tI"),E=t.n(v),Y=v.createContext(null);A.a=Y},fyJ8:function(xe,A,t){"use strict";var v=t("rePB"),E=t("VTBJ"),Y=t("Ff2n"),te=t("U8pU"),j=t("q1tI"),n=t.n(j),U=t("TSYQ"),D=t.n(U),f=t("c+Xe"),F=t("sR1s");function R(r){return r&&Object(te.a)(r)==="object"&&!Array.isArray(r)&&!j.isValidElement(r)}function k(r){return typeof r=="string"?!0:Object(f.c)(r)}function T(r,O){var b,i=r.prefixCls,c=r.className,u=r.record,g=r.index,d=r.dataIndex,h=r.render,_=r.children,a=r.component,o=a===void 0?"td":a,e=r.colSpan,m=r.rowSpan,p=r.fixLeft,C=r.fixRight,V=r.firstFixLeft,x=r.lastFixLeft,H=r.firstFixRight,ne=r.lastFixRight,me=r.appendNode,Se=r.additionalProps,ue=Se===void 0?{}:Se,K=r.ellipsis,fe=r.align,ge=r.rowType,be=r.isSticky,pe="".concat(i,"-cell"),B,z;if(_)z=_;else{var Q=Object(F.b)(u,d);if(z=Q,h){var W=h(Q,u,g);R(W)?(z=W.children,B=W.props):z=W}}Object(te.a)(z)==="object"&&!Array.isArray(z)&&!j.isValidElement(z)&&(z=null),K&&(x||H)&&(z=j.createElement("span",{className:"".concat(pe,"-content")},z));var y=B||{},ee=y.colSpan,J=y.rowSpan,he=y.style,je=y.className,se=Object(Y.a)(y,["colSpan","rowSpan","style","className"]),ve=ee!==void 0?ee:e,Me=J!==void 0?J:m;if(ve===0||Me===0)return null;var Re={},w=typeof p=="number",ze=typeof C=="number";w&&(Re.position="sticky",Re.left=p),ze&&(Re.position="sticky",Re.right=C);var we={};fe&&(we.textAlign=fe);var Ce,ye=K===!0?{showTitle:!0}:K;ye&&(ye.showTitle||ge==="header")&&(typeof z=="string"||typeof z=="number"?Ce=z.toString():j.isValidElement(z)&&typeof z.props.children=="string"&&(Ce=z.props.children));var Ve=Object(E.a)(Object(E.a)(Object(E.a)({title:Ce},se),ue),{},{colSpan:ve&&ve!==1?ve:null,rowSpan:Me&&Me!==1?Me:null,className:D()(pe,c,(b={},Object(v.a)(b,"".concat(pe,"-fix-left"),w),Object(v.a)(b,"".concat(pe,"-fix-left-first"),V),Object(v.a)(b,"".concat(pe,"-fix-left-last"),x),Object(v.a)(b,"".concat(pe,"-fix-right"),ze),Object(v.a)(b,"".concat(pe,"-fix-right-first"),H),Object(v.a)(b,"".concat(pe,"-fix-right-last"),ne),Object(v.a)(b,"".concat(pe,"-ellipsis"),K),Object(v.a)(b,"".concat(pe,"-with-append"),me),Object(v.a)(b,"".concat(pe,"-fix-sticky"),(w||ze)&&be),b),ue.className,je),style:Object(E.a)(Object(E.a)(Object(E.a)(Object(E.a)({},ue.style),we),Re),he),ref:k(o)?O:null});return j.createElement(o,Object.assign({},Ve),me,z)}var P=j.forwardRef(T);P.displayName="Cell";var s=j.memo(P,function(r,O){return O.shouldCellUpdate?!O.shouldCellUpdate(O.record,r.record):!1});A.a=s},hW8S:function(xe,A,t){"use strict";t.d(A,"a",function(){return te}),t.d(A,"c",function(){return j}),t.d(A,"b",function(){return n});var v=t("VTBJ"),E=t("Ff2n"),Y=t("Kwbf"),te="RC_TABLE_INTERNAL_COL_DEFINE";function j(U){var D=U.expandable,f=Object(E.a)(U,["expandable"]);return"expandable"in U?Object(v.a)(Object(v.a)({},f),D):f}function n(U){return Object.keys(U).reduce(function(D,f){return(f.substr(0,5)==="data-"||f.substr(0,5)==="aria-")&&(D[f]=U[f]),D},{})}},n6Qo:function(xe,A,t){"use strict";t.d(A,"a",function(){return D});var v=t("q1tI"),E=t("biw7"),Y=t("fyJ8");function te(f){var F=f.className,R=f.index,k=f.children,T=f.colSpan,P=f.rowSpan,s=v.useContext(E.a),r=s.prefixCls,O=s.fixedInfoList,b=O[R];return v.createElement(Y.a,Object.assign({className:F,index:R,component:"td",prefixCls:r,record:null,dataIndex:null,render:function(){return{children:k,props:{colSpan:T,rowSpan:P}}}},b))}function j(f){return v.createElement("tr",Object.assign({},f))}function n(f){var F=f.children,R=v.useContext(E.a),k=R.prefixCls;return v.createElement("tfoot",{className:"".concat(k,"-summary")},F)}var U=A.b=n,D={Cell:te,Row:j}},rHrb:function(xe,A,t){"use strict";Object.defineProperty(A,"__esModule",{value:!0}),A.CopyToClipboard=void 0;var v=Y(t("q1tI")),E=Y(t("+QRC"));function Y(i){return i&&i.__esModule?i:{default:i}}function te(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?te=function(u){return typeof u}:te=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},te(i)}function j(i,c){var u=Object.keys(i);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(i);c&&(g=g.filter(function(d){return Object.getOwnPropertyDescriptor(i,d).enumerable})),u.push.apply(u,g)}return u}function n(i){for(var c=1;c=0)continue;if(!Object.prototype.propertyIsEnumerable.call(i,g))continue;u[g]=i[g]}}return u}function D(i,c){if(i==null)return{};var u={},g=Object.keys(i),d,h;for(h=0;h=0)continue;u[d]=i[d]}return u}function f(i,c){if(!(i instanceof c))throw new TypeError("Cannot call a class as a function")}function F(i,c){for(var u=0;u1)Object(F.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(c.length===0)return Object(F.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var u=c[0];if(n.isValidElement(u)&&Object(R.c)(u)){var g=u.ref;c[0]=n.cloneElement(u,{ref:Object(R.a)(g,this.setChildNode)})}return c.length===1?c[0]:c.map(function(d,h){return!n.isValidElement(d)||"key"in d&&d.key!==null?d:n.cloneElement(d,{key:"".concat(T,"-").concat(h)})})}}]),O}(n.Component);P.displayName="ResizeObserver",A.a=P},wCXF:function(xe,A,t){"use strict";t.d(A,"a",function(){return Ge});var v=t("rePB"),E=t("VTBJ"),Y=t("KQm4"),te=t("U8pU"),j=t("ODXe"),n=t("q1tI"),U=t("TSYQ"),D=t.n(U),f=t("Gytx"),F=t.n(f),R=t("Kwbf"),k=t("t23M"),T=t("qx4F"),P=t("6eGT"),s=t("IBYe"),r=t("Ff2n"),O=t("c+Xe"),b=t("fyJ8"),i=t("biw7");function c(l,S,N,G,q){var X=N[l]||{},L=N[S]||{},M,I;X.fixed==="left"?M=G.left[l]:L.fixed==="right"&&(I=G.right[S]);var re=!1,Z=!1,ae=!1,Ee=!1,ce=N[S+1],_e=N[l-1];if(q==="rtl"){if(M!==void 0){var Ie=_e&&_e.fixed==="left";Ee=!Ie}else if(I!==void 0){var Te=ce&&ce.fixed==="right";ae=!Te}}else if(M!==void 0){var Pe=ce&&ce.fixed==="left";re=!Pe}else if(I!==void 0){var Oe=_e&&_e.fixed==="right";Z=!Oe}return{fixLeft:M,fixRight:I,lastFixLeft:re,firstFixRight:Z,lastFixRight:ae,firstFixLeft:Ee,isSticky:G.isSticky}}var u=t("sR1s");function g(l){var S=l.cells,N=l.stickyOffsets,G=l.flattenColumns,q=l.rowComponent,X=l.cellComponent,L=l.onHeaderRow,M=l.index,I=n.useContext(i.a),re=I.prefixCls,Z=I.direction,ae;L&&(ae=L(S.map(function(ce){return ce.column}),M));var Ee=Object(u.a)(S.map(function(ce){return ce.column}));return n.createElement(q,Object.assign({},ae),S.map(function(ce,_e){var Ie=ce.column,Te=c(ce.colStart,ce.colEnd,G,N,Z),Pe;return Ie&&Ie.onHeaderCell&&(Pe=ce.column.onHeaderCell(Ie)),n.createElement(b.a,Object.assign({},ce,{ellipsis:Ie.ellipsis,align:Ie.align,component:X,prefixCls:re,key:Ee[_e]},Te,{additionalProps:Pe,rowType:"header"}))}))}g.displayName="HeaderRow";var d=g;function h(l){var S=[];function N(L,M){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;S[I]=S[I]||[];var re=M,Z=L.filter(Boolean).map(function(ae){var Ee={key:ae.key,className:ae.className||"",children:ae.title,column:ae,colStart:re},ce=1,_e=ae.children;return _e&&_e.length>0&&(ce=N(_e,re,I+1).reduce(function(Ie,Te){return Ie+Te},0),Ee.hasSubColumns=!0),"colSpan"in ae&&(ce=ae.colSpan),"rowSpan"in ae&&(Ee.rowSpan=ae.rowSpan),Ee.colSpan=ce,Ee.colEnd=Ee.colStart+ce-1,S[I].push(Ee),re+=ce,ce});return Z}N(l,0);for(var G=S.length,q=function(M){S[M].forEach(function(I){!("rowSpan"in I)&&!I.hasSubColumns&&(I.rowSpan=G-M)})},X=0;X=0;M-=1){var I=S[M],re=N&&N[M],Z=re&&re[o.a];(I||Z||L)&&(q.unshift(n.createElement("col",Object.assign({key:M,style:{width:I,minWidth:I}},Z))),L=!0)}return n.createElement("colgroup",null,q)}var m=e;function p(l,S){return Object(n.useMemo)(function(){for(var N=[],G=0;G1?at-1:0),pt=1;pt=ae&&(ie=ae-Ee),L({scrollLeft:ie/ae*(Z+2)}),Oe.current.x=$.pageX},Ye=function(){var $=Object(ze.b)(X.current).top,oe=$+X.current.offsetHeight,de=document.documentElement.scrollTop+window.innerHeight;oe-Object(T.a)()<=de||$>=de-M?Pe(function(le){return Object(E.a)(Object(E.a)({},le),{},{isHiddenScrollBar:!0})}):Pe(function(le){return Object(E.a)(Object(E.a)({},le),{},{isHiddenScrollBar:!1})})},Fe=function($){Pe(function(oe){return Object(E.a)(Object(E.a)({},oe),{},{scrollLeft:$/Z*ae||0})})};return n.useImperativeHandle(N,function(){return{setScrollLeft:Fe}}),n.useEffect(function(){var Ke=Object(w.a)(document.body,"mouseup",tt,!1),$=Object(w.a)(document.body,"mousemove",qe,!1);return Ye(),function(){Ke.remove(),$.remove()}},[Ee,Be]),n.useEffect(function(){var Ke=Object(w.a)(window,"scroll",Ye,!1),$=Object(w.a)(window,"resize",Ye,!1);return function(){Ke.remove(),$.remove()}},[]),n.useEffect(function(){Te.isHiddenScrollBar||Pe(function(Ke){var $,oe;return Object(E.a)(Object(E.a)({},Ke),{},{scrollLeft:X.current.scrollLeft/(($=X.current)===null||$===void 0?void 0:$.scrollWidth)*((oe=X.current)===null||oe===void 0?void 0:oe.clientWidth)})})},[Te.isHiddenScrollBar]),Z<=ae||!Ee||Te.isHiddenScrollBar?null:n.createElement("div",{style:{height:Object(T.a)(),width:ae,bottom:M},className:"".concat(re,"-sticky-scroll")},n.createElement("div",{onMouseDown:Ue,ref:ce,className:D()("".concat(re,"-sticky-scroll-bar"),Object(v.a)({},"".concat(re,"-sticky-scroll-bar-active"),Be)),style:{width:"".concat(Ee,"px"),transform:"translate3d(".concat(Te.scrollLeft,"px, 0, 0)")}}))},Ce=n.forwardRef(we);function ye(l,S){return n.useMemo(function(){var N=!!l;return{isSticky:N,stickyClassName:N?"".concat(S,"-sticky-header"):"",offsetHeader:Object(te.a)(l)==="object"&&l.offsetHeader||0,offsetScroll:Object(te.a)(l)==="object"&&l.offsetScroll||0}},[l,S])}var Ve=[],$e={},Ge="rc-table-internal-hook",ke=n.memo(function(l){var S=l.children;return S},function(l,S){return F()(l.props,S.props)?l.pingLeft!==S.pingLeft||l.pingRight!==S.pingRight:!1});function Je(l){var S,N=l.prefixCls,G=l.className,q=l.rowClassName,X=l.style,L=l.data,M=l.rowKey,I=l.scroll,re=l.tableLayout,Z=l.direction,ae=l.title,Ee=l.footer,ce=l.summary,_e=l.id,Ie=l.showHeader,Te=l.components,Pe=l.emptyText,Oe=l.onRow,Ze=l.onHeaderRow,We=l.internalHooks,Be=l.transformColumns,He=l.internalRefs,tt=l.sticky,Ue=L||Ve,qe=!!Ue.length,Ye=n.useState(0),Fe=Object(j.a)(Ye,2),Ke=Fe[0],$=Fe[1];n.useEffect(function(){$(Object(T.a)())});var oe=n.useMemo(function(){return Object(u.c)(Te,{})},[Te]),de=n.useCallback(function(Ne,Le){return Object(u.b)(oe,Ne)||Le},[oe]),le=n.useMemo(function(){return typeof M=="function"?M:function(Ne){var Le=Ne&&Ne[M];return Le}},[M]),ie=Object(o.c)(l),De=ie.expandIcon,Ae=ie.expandedRowKeys,nt=ie.defaultExpandedRowKeys,ct=ie.defaultExpandAllRows,ft=ie.expandedRowRender,vt=ie.onExpand,bt=ie.onExpandedRowsChange,Pt=ie.expandRowByClick,st=ie.rowExpandable,yt=ie.expandIconColumnIndex,Et=ie.expandedRowClassName,Kt=ie.childrenColumnName,Dt=ie.indentSize,gt=De||Me,Ot=Kt||"children",St=n.useMemo(function(){return ft?"row":l.expandable&&We===Ge&&l.expandable.__PARENT_RENDER_ICON__||Ue.some(function(Ne){return Ne&&Object(te.a)(Ne)==="object"&&Ne[Ot]})?"nest":!1},[!!ft,Ue]),Tt=n.useState(function(){return nt||(ct?Re(Ue,le,Ot):[])}),et=Object(j.a)(Tt,2),rt=et[0],it=et[1],at=n.useMemo(function(){return new Set(Ae||rt||[])},[Ae,rt]),mt=n.useCallback(function(Ne){var Le=le(Ne,Ue.indexOf(Ne)),Qe,lt=at.has(Le);lt?(at.delete(Le),Qe=Object(Y.a)(at)):Qe=[].concat(Object(Y.a)(at),[Le]),it(Qe),vt&&vt(!lt,Ne),bt&&bt(Qe)},[le,at,Ue,vt,bt]),pt=n.useState(0),Nt=Object(j.a)(pt,2),xt=Nt[0],Mt=Nt[1],vn=Object(z.b)(Object(E.a)(Object(E.a)(Object(E.a)({},l),ie),{},{expandable:!!ft,expandedKeys:at,getRowKey:le,onTriggerExpand:mt,expandIcon:gt,expandIconColumnIndex:yt,direction:Z}),We===Ge?Be:null),Yt=Object(j.a)(vn,2),zt=Yt[0],Xe=Yt[1],At=n.useMemo(function(){return{columns:zt,flattenColumns:Xe}},[zt,Xe]),kt=n.useRef(),Qt=n.useRef(),ht=n.useRef(),bn=n.useState(!1),Zt=Object(j.a)(bn,2),qt=Zt[0],En=Zt[1],gn=n.useState(!1),en=Object(j.a)(gn,2),tn=en[0],Cn=en[1],yn=y(new Map),nn=Object(j.a)(yn,2),On=nn[0],xn=nn[1],_n=Object(u.a)(Xe),an=_n.map(function(Ne){return On.get(Ne)}),on=n.useMemo(function(){return an},[an.join("_")]),Lt=he(on,Xe.length,Z),ut=I&&Object(u.d)(I.y),dt=I&&Object(u.d)(I.x),_t=dt&&Xe.some(function(Ne){var Le=Ne.fixed;return Le}),rn=n.useRef(),Ut=ye(tt,N),jt=Ut.isSticky,jn=Ut.offsetHeader,Rn=Ut.offsetScroll,Pn=Ut.stickyClassName,Bt,wt,Wt;ut&&(wt={overflowY:"scroll",maxHeight:I.y}),dt&&(Bt={overflowX:"auto"},ut||(wt={overflowY:"hidden"}),Wt={width:I.x===!0?"auto":I.x,minWidth:"100%"});var ln=n.useCallback(function(Ne,Le){xn(function(Qe){var lt=new Map(Qe);return lt.set(Ne,Le),lt})},[]),Dn=ee(null),sn=Object(j.a)(Dn,2),Sn=sn[0],un=sn[1];function Ft(Ne,Le){if(!Le)return;typeof Le=="function"?Le(Ne):Le.scrollLeft!==Ne&&(Le.scrollLeft=Ne)}var Ct=function(Le){var Qe=Le.currentTarget,lt=Le.scrollLeft,Rt=typeof lt=="number"?lt:Qe.scrollLeft,hn=Qe||$e;if(!un()||un()===hn){var Jt;Sn(hn),Ft(Rt,Qt.current),Ft(Rt,ht.current),Ft(Rt,(Jt=rn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(Qe){var wn=Qe.scrollWidth,In=Qe.clientWidth;En(Rt>0),Cn(Rt0?[].concat(Object(E.a)(r),Object(E.a)(R(c).map(function(u){return Object(Y.a)({fixed:i},u)}))):[].concat(Object(E.a)(r),[Object(Y.a)(Object(Y.a)({},O),{},{fixed:i})])},[])}function k(s){for(var r=!0,O=0;O=0;c-=1){var u=s[c];if(i&&u.fixed!=="right")i=!1;else if(!i&&u.fixed==="right"){Object(U.a)(!1,"Index ".concat(c+1," of `columns` missing `fixed='right'` prop."));break}}}function T(s){return s.map(function(r){var O=r.fixed,b=Object(te.a)(r,["fixed"]),i=O;return O==="left"?i="right":O==="right"&&(i="left"),Object(Y.a)({fixed:i},b)})}function P(s,r){var O=s.prefixCls,b=s.columns,i=s.children,c=s.expandable,u=s.expandedKeys,g=s.getRowKey,d=s.onTriggerExpand,h=s.expandIcon,_=s.rowExpandable,a=s.expandIconColumnIndex,o=s.direction,e=s.expandRowByClick,m=j.useMemo(function(){return b||F(i)},[b,i]),p=j.useMemo(function(){if(c){var x,H=a||0,ne=m[H],me=(x={},Object(v.a)(x,f.a,{className:"".concat(O,"-expand-icon-col")}),Object(v.a)(x,"title",""),Object(v.a)(x,"fixed",ne?ne.fixed:null),Object(v.a)(x,"className","".concat(O,"-row-expand-icon-cell")),Object(v.a)(x,"render",function(K,fe,ge){var be=g(fe,ge),pe=u.has(be),B=_?_(fe):!0,z=h({prefixCls:O,expanded:pe,expandable:B,record:fe,onExpand:d});return e?j.createElement("span",{onClick:function(W){return W.stopPropagation()}},z):z}),x),Se=m.slice();return H>=0&&Se.splice(H,0,me),Se}return m},[c,m,g,u,h,o]),C=j.useMemo(function(){var x=p;return r&&(x=r(x)),x.length||(x=[{render:function(){return null}}]),x},[r,p,o]),V=j.useMemo(function(){return o==="rtl"?T(R(C)):R(C)},[C,o]);return[C,V]}A.b=P},"y0+3":function(xe,A,t){"use strict";t.d(A,"a",function(){return R}),t.d(A,"b",function(){return T});var v=/margin|padding|width|height|max|min|offset/,E={left:!0,top:!0},Y={cssFloat:1,styleFloat:1,float:1};function te(P){return P.nodeType===1?P.ownerDocument.defaultView.getComputedStyle(P,null):{}}function j(P,s,r){if(s=s.toLowerCase(),r==="auto"){if(s==="height")return P.offsetHeight;if(s==="width")return P.offsetWidth}return s in E||(E[s]=v.test(s)),E[s]?parseFloat(r)||0:r}function n(P,s){var r=arguments.length,O=te(P);return s=Y[s]?"cssFloat"in P.style?"cssFloat":"styleFloat":s,r===1?O:j(P,s,O[s]||P.style[s])}function U(P,s,r){var O=arguments.length;if(s=Y[s]?"cssFloat"in P.style?"cssFloat":"styleFloat":s,O===3)return typeof r=="number"&&v.test(s)&&(r="".concat(r,"px")),P.style[s]=r,r;for(var b in s)s.hasOwnProperty(b)&&U(P,b,s[b]);return te(P)}function D(P){return P===document.body?document.documentElement.clientWidth:P.offsetWidth}function f(P){return P===document.body?window.innerHeight||document.documentElement.clientHeight:P.offsetHeight}function F(){var P=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),s=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:P,height:s}}function R(){var P=document.documentElement.clientWidth,s=window.innerHeight||document.documentElement.clientHeight;return{width:P,height:s}}function k(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function T(P){var s=P.getBoundingClientRect(),r=document.documentElement;return{left:s.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||document.body.clientLeft||0),top:s.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||document.body.clientTop||0)}}},zr3n:function(xe,A,t){"use strict";t.r(A);var v=t("DjyN"),E=t("NUBc"),Y=t("g9YV"),te=t("wCAj"),j=t("qVdP"),n=t("jsC+"),U=t("14J3"),D=t("BMrR"),f=t("jCWc"),F=t("kPKH"),R=t("sRBo"),k=t("kaz8"),T=t("oBTY"),P=t("lUTK"),s=t("BvKs"),r=t("miYZ"),O=t("tsqr"),b=t("5NDa"),i=t("5rEg"),c=t("2qtc"),u=t("kLXV"),g=t("9og8"),d=t("k1fw"),h=t("tJVT"),_=t("WmNS"),a=t.n(_),o=t("q1tI"),e=t.n(o),m=t("wd/R"),p=t.n(m),C=t("P5Jw"),V=t.n(C),x=t("Ty5D"),H=t("9kvl"),ne=t("jhfD"),me=t("ErOA"),Se=t("8Skl"),ue=t("1vsH"),K=t("BdwD"),fe=t("xKgJ"),ge=t("6ZIh"),be=t.n(ge),pe=t("oUNq");p.a.locale("zh-cn");var B=function(Q){var W,y,ee,J,he=Q.classroomList,je=Q.globalSetting,se=Q.loading,ve=Q.dispatch,Me=Object(o.useState)(Object(d.a)(Object(d.a)({},Object(x.i)()),{page:1,limit:20})),Re=Object(h.a)(Me,2),w=Re[0],ze=Re[1],we=Object(o.useState)([]),Ce=Object(h.a)(we,2),ye=Ce[0],Ve=Ce[1],$e=Object(o.useState)({}),Ge=Object(h.a)($e,2),ke=Ge[0],Je=Ge[1],ot=Object(o.useRef)(),l=Object(o.useState)(!1),S=Object(h.a)(l,2),N=S[0],G=S[1],q=Object(o.useState)([]),X=Object(h.a)(q,2),L=X[0],M=X[1],I=Object(o.useState)(!1),re=Object(h.a)(I,2),Z=re[0],ae=re[1],Ee=Object(o.useState)([]),ce=Object(h.a)(Ee,2),_e=ce[0],Ie=ce[1];Object(o.useEffect)(function(){w.order=1,w.sort="asc",w.page=1,w.limit=20,w.course_group_id=w.categoryId,ze(w),Pe(w),Te()},[w.categoryId]);var Te=function(){var $=Object(g.a)(a.a.mark(function oe(){var de,le,ie;return a.a.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return Ae.next=2,Object(pe.A)({coursesId:w.coursesId});case 2:ie=Ae.sent,Ve((ie==null||((de=ie.course_groups)===null||de===void 0)?void 0:de.map(function(nt){return Object(d.a)(Object(d.a)({},nt),{show:!0})}))||[]),Ie(ie==null||((le=ie.course_groups)===null||le===void 0)?void 0:le.filter(function(nt){return nt.in_current_course_group}));case 5:case"end":return Ae.stop()}},oe)}));return function(){return $.apply(this,arguments)}}(),Pe=function(){var $=Object(g.a)(a.a.mark(function oe(de){var le;return a.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return G(!0),De.next=3,Object(pe.V)(de);case 3:le=De.sent,G(!1),Je(le||{});case 6:case"end":return De.stop()}},oe)}));return function(de){return $.apply(this,arguments)}}(),Oe=function(oe,de){w.page=oe,ae(!1),M([]),ze(w),Pe(w)},Ze=function(){ot.current=ke.course_group_name,u.a.confirm({width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",centered:!0,content:e.a.createElement("div",{className:"tc font16"},e.a.createElement(i.a,{defaultValue:ot.current,onChange:function(de){return ot.current=de.target.value}})),onOk:function(){var oe=Object(g.a)(a.a.mark(function le(){var ie;return a.a.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return Ae.next=2,Object(pe.ub)({categoryId:w.categoryId,name:ot.current});case 2:ie=Ae.sent,(ie==null?void 0:ie.status)===0&&(O.b.success("\u66F4\u65B0\u6210\u529F"),Pe(w));case 4:case"end":return Ae.stop()}},le)}));function de(){return oe.apply(this,arguments)}return de}()})},We=function(){u.a.confirm({width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",centered:!0,content:e.a.createElement("div",{className:"tc font16"},"\u52A0\u5165\u5206\u73ED\u540E\uFF0C\u9700\u8054\u7CFB\u8001\u5E08\u6216\u52A9\u6559\u624D\u80FD\u8C03\u6574\u5206\u73ED"),onOk:function(){var oe=Object(g.a)(a.a.mark(function le(){var ie;return a.a.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return Ae.next=2,Object(pe.qb)({coursesId:w.coursesId,course_group_id:w.categoryId});case 2:ie=Ae.sent,(ie==null?void 0:ie.status)===0&&(O.b.success("\u52A0\u5165\u6210\u529F"),Pe(w));case 4:case"end":return Ae.stop()}},le)}));function de(){return oe.apply(this,arguments)}return de}()})},Be=function(){u.a.confirm({width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",centered:!0,content:e.a.createElement("div",{className:"tc font16"},"\u8BE5\u5206\u73ED\u7684\u5B66\u751F\u5C06\u88AB\u79FB\u52A8\u5230\u201C\u672A\u5206\u73ED\u201D",e.a.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:function(){var oe=Object(g.a)(a.a.mark(function le(){var ie;return a.a.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return Ae.next=2,Object(pe.l)({categoryId:w.categoryId});case 2:ie=Ae.sent,(ie==null?void 0:ie.status)===0&&(O.b.success("\u5220\u9664\u6210\u529F"),ve({type:"classroomList/getClassroomLeftMenus",payload:{id:w.coursesId}}),H.d.push("/classrooms/".concat(w.coursesId,"/course_group")));case 4:case"end":return Ae.stop()}},le)}));function de(){return oe.apply(this,arguments)}return de}()})},He=function(){var $=Object(g.a)(a.a.mark(function oe(de){var le;return a.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(!((L==null?void 0:L.length)===0)){De.next=3;break}return O.b.info("\u8BF7\u9009\u62E9\u5B66\u751F"),De.abrupt("return");case 3:return De.next=5,Object(pe.Cb)({coursesId:w.coursesId,course_group_id:de,students:L.map(function(Ae){return{course_member_id:Ae}})});case 5:le=De.sent,(le==null?void 0:le.status)===0&&O.b.success("\u64CD\u4F5C\u6210\u529F"),w.page=1,M([]),ze(w),Pe(w);case 11:case"end":return De.stop()}},oe)}));return function(de){return $.apply(this,arguments)}}(),tt=function(oe){u.a.confirm({width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",centered:!0,content:e.a.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:function(){var de=Object(g.a)(a.a.mark(function ie(){var De;return a.a.wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:return nt.next=2,Object(pe.n)({coursesId:w.coursesId,students:[{course_member_id:oe}]});case 2:De=nt.sent,(De==null?void 0:De.status)===0&&(O.b.success("\u5220\u9664\u6210\u529F"),w.page=1,Pe(w));case 4:case"end":return nt.stop()}},ie)}));function le(){return de.apply(this,arguments)}return le}()})},Ue=[{name:"\u8BFE\u5802\u4FE1\u606F",url:Object(ue.U)({url:"/api/courses/".concat(w.coursesId,"/export_couser_info.xlsx&export=true"),query:Object(d.a)(Object(d.a)({},w),{group_id:w.course_group_id,search:w.search?(W=w.search)===null||W===void 0?void 0:W.trim():null})})},{name:"\u6D3B\u8DC3\u5EA6",url:Object(ue.U)({url:"/api/courses/".concat(w.coursesId,"/export_member_act_score.xlsx&export=true"),query:Object(d.a)(Object(d.a)({},w),{group_id:w.course_group_id,search:w.search?(y=w.search)===null||y===void 0?void 0:y.trim():null})})},{name:"\u603B\u6210\u7EE9",url:Object(ue.U)({url:"/api/courses/".concat(w.coursesId,"/export_member_scores_excel.xlsx&export=true"),query:Object(d.a)(Object(d.a)({},w),{group_id:w.course_group_id,search:w.search?(ee=w.search)===null||ee===void 0?void 0:ee.trim():null})})}],qe=e.a.createElement(s.a,{style:{maxHeight:400,width:200,overflow:"auto",padding:10}},e.a.createElement("input",{placeholder:"\u641C\u7D22",className:"ant-input",onChange:function(oe){var de=oe.target.value;Ve(ye.map(function(le){var ie;return(ie=le.name)!==null&&ie!==void 0&&ie.includes(de)?Object(d.a)(Object(d.a)({},le),{show:!0}):Object(d.a)(Object(d.a)({},le),{show:!1})}))},style:{width:180}}),e.a.createElement(s.a.Item,{onClick:function(){return He(0)},className:"multi-llipsis1e"},e.a.createElement("span",null,"\u672A\u5206\u73ED")),ye==null||((J=ye.filter(function($){return $.show}))===null||J===void 0)?void 0:J.map(function($,oe){return e.a.createElement(s.a.Item,{onClick:function(){return He($.id)},className:"multi-llipsis1e"},e.a.createElement("span",null,$.name))})),Ye=e.a.createElement(s.a,{style:{maxHeight:400,width:240,overflow:"auto"}},Ue.map(function($,oe){return e.a.createElement(s.a.Item,{key:$.url},e.a.createElement("a",{onClick:Object(g.a)(a.a.mark(function de(){var le;return a.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return De.next=2,Object(me.a)($.url,{method:"get"});case 2:le=De.sent,le&&(le==null?void 0:le.status)!==-1&&(le==null?void 0:le.status)!==-2&&Object(ue.O)($.url);case 4:case"end":return De.stop()}},de)}))},$.name))})),Fe=[Object(fe.c)()&&{title:"",width:80,align:"center",render:function(oe,de){return e.a.createElement(k.a,{checked:L.includes(de.course_member_id),onChange:function(ie){ie.target.checked?M([].concat(Object(T.a)(L),[de.course_member_id])):M(L.filter(function(De){return De!==de.course_member_id}))}})}},{title:"\u5E8F\u53F7",render:function(oe,de,le){return w.limit*(w.page-1)+le+1},width:80,align:"center"},{title:"\u59D3\u540D",dataIndex:"name",width:80,ellipsis:!0,align:"center",render:function(oe,de){return e.a.createElement("a",{className:"c-blank",onClick:function(){return Object(ue.O)("/users/".concat(de.login))}},oe)}},{title:"\u5B66\u53F7",dataIndex:"student_id",width:80,ellipsis:!0,align:"center",sorter:!0,showSorterTooltip:!1,render:function(oe){return e.a.createElement("span",null,oe)}},{title:"\u624B\u673A\u53F7",dataIndex:"user_phone",width:80,ellipsis:!0,align:"center",render:function(oe){return e.a.createElement("span",null,oe)}},{title:"\u90AE\u7BB1",dataIndex:"user_mail",width:80,ellipsis:!0,align:"center",render:function(oe){return e.a.createElement("span",null,oe)}}].filter(function($){return!!$}),Ke=["\u5BFC\u5165\u521B\u5EFA\u5206\u73ED","\u65B0\u5EFA\u5206\u73ED"];return e.a.createElement("section",null,e.a.createElement("aside",{className:be.a.bg},e.a.createElement(D.a,{className:be.a.headWrap},e.a.createElement(F.a,{flex:"1"},e.a.createElement("span",null,e.a.createElement(ne.a,{className:"font16 c-black",onClick:function(){return H.d.push("/classrooms/".concat(w.coursesId,"/course_group"))}})),e.a.createElement("span",{className:"".concat(be.a.title," ml10")},ke.course_group_name),Object(fe.c)()&&ke.invite_code&&e.a.createElement("span",{className:"ml10"},e.a.createElement("span",{className:"c-grey-999 font16"},"\u9080\u8BF7\u7801\uFF1A"),e.a.createElement("span",{className:"c-orange font16"},ke.invite_code),e.a.createElement("span",null,e.a.createElement(C.CopyToClipboard,{text:ke.invite_code,className:"current",onCopy:function(){return O.b.success("\u590D\u5236\u6210\u529F")}},e.a.createElement("span",null,e.a.createElement("i",{className:"iconfont icon-fuzhi font14 ml10 c-orange"})))))),e.a.createElement(F.a,null,e.a.createElement("div",null,Object(fe.c)()&&e.a.createElement("span",{className:[be.a.add,"font16","c-blue","ml20","current"].join(" "),onClick:Be},"\u5220\u9664\u5206\u73ED"),Object(fe.c)()&&e.a.createElement("span",{className:[be.a.add,"font16","c-blue","ml20","current"].join(" "),onClick:Ze},"\u5206\u73ED\u91CD\u547D\u540D"),Object(fe.s)()&&_e.length<=0&&e.a.createElement("span",{className:[be.a.add,"font16","c-blue","ml20","current"].join(" "),onClick:We},"\u52A0\u5165\u5206\u73ED")))),e.a.createElement("div",{className:be.a.containerDesc},e.a.createElement("p",null,"\u5171",e.a.createElement("span",{className:"c-orange"},ke.students_count),"\u4E2A\u5B66\u751F"),e.a.createElement("p",null,e.a.createElement(i.a.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u3001\u5B66\u53F7\u8FDB\u884C\u641C\u7D22",onSearch:function(oe){w.search=oe,w.page=1,ze(w),Pe(w)},style:{width:300}})))),ke.students_count===0&&e.a.createElement(K.a,null),ke.students_count>0&&e.a.createElement(e.a.Fragment,null,e.a.createElement("aside",{className:"plr30 mt20 ".concat(be.a.bg)},Object(fe.c)()&&e.a.createElement(D.a,{justify:"space-between",className:be.a.checkbox},e.a.createElement(F.a,null,e.a.createElement(k.a,{checked:Z,onChange:function(oe){if(ae(oe.target.checked),oe.target.checked){var de;M((de=ke.students)===null||de===void 0?void 0:de.map(function(le){return le.course_member_id}))}else M([])}},e.a.createElement("span",{className:"font14"},"\u5DF2\u9009",L.length,"\u4E2A"))),e.a.createElement(F.a,null,e.a.createElement(n.a,{overlay:qe,className:"ml20",placement:"bottomRight"},e.a.createElement("span",{className:"font14 current"},"\u79FB\u52A8\u5230",e.a.createElement(Se.a,{className:"ml5"}))))),e.a.createElement(te.a,{className:"pt20",columns:Fe,dataSource:ke.students,loading:N,pagination:!1,onChange:function(oe,de,le){console.log("c: ",le),le.order==="ascend"&&(w.sort="asc"),le.order==="descend"&&(w.sort="desc"),le.order||delete w.sort,ze(w),Pe(w)}})),e.a.createElement("aside",{className:"tc mb50 mt30"},e.a.createElement(E.a,{hideOnSinglePage:!0,showSizeChanger:!1,onChange:Oe,defaultCurrent:1,defaultPageSize:20,current:w.page||1,total:ke.students_count}))))};A.default=Object(H.a)(function(z){var Q=z.classroomList,W=z.loading,y=z.globalSetting;return{classroomList:Q,globalSetting:y,loading:W}})(B)}}]); +`,V=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],x={},H;function ne(B){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Q=B.getAttribute("id")||B.getAttribute("data-reactid")||B.getAttribute("name");if(k&&x[Q])return x[Q];var W=window.getComputedStyle(B),y=W.getPropertyValue("box-sizing")||W.getPropertyValue("-moz-box-sizing")||W.getPropertyValue("-webkit-box-sizing"),ee=parseFloat(W.getPropertyValue("padding-bottom"))+parseFloat(W.getPropertyValue("padding-top")),J=parseFloat(W.getPropertyValue("border-bottom-width"))+parseFloat(W.getPropertyValue("border-top-width")),he=V.map(function(se){return"".concat(se,":").concat(W.getPropertyValue(se))}).join(";"),je={sizingStyle:he,paddingSize:ee,borderSize:J,boxSizing:y};return k&&Q&&(x[Q]=je),je}function me(B){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,W=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;H||(H=document.createElement("textarea"),H.setAttribute("tab-index","-1"),H.setAttribute("aria-hidden","true"),document.body.appendChild(H)),B.getAttribute("wrap")?H.setAttribute("wrap",B.getAttribute("wrap")):H.removeAttribute("wrap");var y=ne(B,k),ee=y.paddingSize,J=y.borderSize,he=y.boxSizing,je=y.sizingStyle;H.setAttribute("style","".concat(je,";").concat(C)),H.value=B.value||B.placeholder||"";var se=Number.MIN_SAFE_INTEGER,ve=Number.MAX_SAFE_INTEGER,Me=H.scrollHeight,Re;if(he==="border-box"?Me+=J:he==="content-box"&&(Me-=ee),Q!==null||W!==null){H.value=" ";var w=H.scrollHeight-ee;Q!==null&&(se=w*Q,he==="border-box"&&(se=se+ee+J),Me=Math.max(se,Me)),W!==null&&(ve=w*W,he==="border-box"&&(ve=ve+ee+J),Re=Me>ve?"":"hidden",Me=Math.min(ve,Me))}return{height:Me,minHeight:se,maxHeight:ve,overflowY:Re,resize:"none"}}var Se=t("Gytx"),ue=t.n(Se),K;(function(B){B[B.NONE=0]="NONE",B[B.RESIZING=1]="RESIZING",B[B.RESIZED=2]="RESIZED"})(K||(K={}));var fe=function(B){Object(te.a)(Q,B);var k=Object(j.a)(Q);function Q(W){var y;return Object(E.a)(this,Q),y=k.call(this,W),y.nextFrameActionId=void 0,y.resizeFrameId=void 0,y.textArea=void 0,y.saveTextArea=function(ee){y.textArea=ee},y.handleResize=function(ee){var J=y.state.resizeStatus,he=y.props,je=he.autoSize,se=he.onResize;if(J!==K.NONE)return;typeof se=="function"&&se(ee),je&&y.resizeOnNextFrame()},y.resizeOnNextFrame=function(){cancelAnimationFrame(y.nextFrameActionId),y.nextFrameActionId=requestAnimationFrame(y.resizeTextarea)},y.resizeTextarea=function(){var ee=y.props.autoSize;if(!ee||!y.textArea)return;var J=ee.minRows,he=ee.maxRows,je=me(y.textArea,!1,J,he);y.setState({textareaStyles:je,resizeStatus:K.RESIZING},function(){cancelAnimationFrame(y.resizeFrameId),y.resizeFrameId=requestAnimationFrame(function(){y.setState({resizeStatus:K.RESIZED},function(){y.resizeFrameId=requestAnimationFrame(function(){y.setState({resizeStatus:K.NONE}),y.fixFirefoxAutoScroll()})})})})},y.renderTextArea=function(){var ee=y.props,J=ee.prefixCls,he=J===void 0?"rc-textarea":J,je=ee.autoSize,se=ee.onResize,ve=ee.className,Me=ee.disabled,Re=y.state,w=Re.textareaStyles,ke=Re.resizeStatus,we=Object(e.a)(y.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Ce=p()(he,ve,Object(D.a)({},"".concat(he,"-disabled"),Me));"value"in we&&(we.value=we.value||"");var ye=Object(U.a)(Object(U.a)(Object(U.a)({},y.props.style),w),ke===K.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return n.createElement(o,{onResize:y.handleResize,disabled:!(je||se)},n.createElement("textarea",Object(v.a)({},we,{className:Ce,style:ye,ref:y.saveTextArea})))},y.state={textareaStyles:{},resizeStatus:K.NONE},y}return Object(Y.a)(Q,[{key:"componentDidUpdate",value:function(y){(y.value!==this.props.value||!ue()(y.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var y=this.textArea.selectionStart,ee=this.textArea.selectionEnd;this.textArea.setSelectionRange(y,ee)}}catch(J){}}},{key:"render",value:function(){return this.renderTextArea()}}]),Q}(n.Component),ge=fe,be=function(B){Object(te.a)(Q,B);var k=Object(j.a)(Q);function Q(W){var y;Object(E.a)(this,Q),y=k.call(this,W),y.resizableTextArea=void 0,y.focus=function(){y.resizableTextArea.textArea.focus()},y.saveTextArea=function(J){y.resizableTextArea=J},y.handleChange=function(J){var he=y.props.onChange;y.setValue(J.target.value,function(){y.resizableTextArea.resizeTextarea()}),he&&he(J)},y.handleKeyDown=function(J){var he=y.props,je=he.onPressEnter,se=he.onKeyDown;J.keyCode===13&&je&&je(J),se&&se(J)};var ee=typeof W.value=="undefined"||W.value===null?W.defaultValue:W.value;return y.state={value:ee},y}return Object(Y.a)(Q,[{key:"setValue",value:function(y,ee){"value"in this.props||this.setState({value:y},ee)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return n.createElement(ge,Object(v.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(y){return"value"in y?{value:y.value}:null}}]),Q}(n.Component),pe=A.default=be},bT9E:function(xe,A,t){"use strict";t.d(A,"a",function(){return E});var v=t("VTBJ");function E(Y,te){var j=Object(v.a)({},Y);return Array.isArray(te)&&te.forEach(function(n){delete j[n]}),j}},biw7:function(xe,A,t){"use strict";var v=t("q1tI"),E=t.n(v),Y=v.createContext(null);A.a=Y},fyJ8:function(xe,A,t){"use strict";var v=t("rePB"),E=t("VTBJ"),Y=t("Ff2n"),te=t("U8pU"),j=t("q1tI"),n=t.n(j),U=t("TSYQ"),D=t.n(U),f=t("c+Xe"),F=t("sR1s");function R(r){return r&&Object(te.a)(r)==="object"&&!Array.isArray(r)&&!j.isValidElement(r)}function z(r){return typeof r=="string"?!0:Object(f.c)(r)}function N(r,O){var b,i=r.prefixCls,c=r.className,u=r.record,g=r.index,d=r.dataIndex,h=r.render,_=r.children,a=r.component,o=a===void 0?"td":a,e=r.colSpan,m=r.rowSpan,p=r.fixLeft,C=r.fixRight,V=r.firstFixLeft,x=r.lastFixLeft,H=r.firstFixRight,ne=r.lastFixRight,me=r.appendNode,Se=r.additionalProps,ue=Se===void 0?{}:Se,K=r.ellipsis,fe=r.align,ge=r.rowType,be=r.isSticky,pe="".concat(i,"-cell"),B,k;if(_)k=_;else{var Q=Object(F.b)(u,d);if(k=Q,h){var W=h(Q,u,g);R(W)?(k=W.children,B=W.props):k=W}}Object(te.a)(k)==="object"&&!Array.isArray(k)&&!j.isValidElement(k)&&(k=null),K&&(x||H)&&(k=j.createElement("span",{className:"".concat(pe,"-content")},k));var y=B||{},ee=y.colSpan,J=y.rowSpan,he=y.style,je=y.className,se=Object(Y.a)(y,["colSpan","rowSpan","style","className"]),ve=ee!==void 0?ee:e,Me=J!==void 0?J:m;if(ve===0||Me===0)return null;var Re={},w=typeof p=="number",ke=typeof C=="number";w&&(Re.position="sticky",Re.left=p),ke&&(Re.position="sticky",Re.right=C);var we={};fe&&(we.textAlign=fe);var Ce,ye=K===!0?{showTitle:!0}:K;ye&&(ye.showTitle||ge==="header")&&(typeof k=="string"||typeof k=="number"?Ce=k.toString():j.isValidElement(k)&&typeof k.props.children=="string"&&(Ce=k.props.children));var Ve=Object(E.a)(Object(E.a)(Object(E.a)({title:Ce},se),ue),{},{colSpan:ve&&ve!==1?ve:null,rowSpan:Me&&Me!==1?Me:null,className:D()(pe,c,(b={},Object(v.a)(b,"".concat(pe,"-fix-left"),w),Object(v.a)(b,"".concat(pe,"-fix-left-first"),V),Object(v.a)(b,"".concat(pe,"-fix-left-last"),x),Object(v.a)(b,"".concat(pe,"-fix-right"),ke),Object(v.a)(b,"".concat(pe,"-fix-right-first"),H),Object(v.a)(b,"".concat(pe,"-fix-right-last"),ne),Object(v.a)(b,"".concat(pe,"-ellipsis"),K),Object(v.a)(b,"".concat(pe,"-with-append"),me),Object(v.a)(b,"".concat(pe,"-fix-sticky"),(w||ke)&&be),b),ue.className,je),style:Object(E.a)(Object(E.a)(Object(E.a)(Object(E.a)({},ue.style),we),Re),he),ref:z(o)?O:null});return j.createElement(o,Object.assign({},Ve),me,k)}var P=j.forwardRef(N);P.displayName="Cell";var s=j.memo(P,function(r,O){return O.shouldCellUpdate?!O.shouldCellUpdate(O.record,r.record):!1});A.a=s},hW8S:function(xe,A,t){"use strict";t.d(A,"a",function(){return te}),t.d(A,"c",function(){return j}),t.d(A,"b",function(){return n});var v=t("VTBJ"),E=t("Ff2n"),Y=t("Kwbf"),te="RC_TABLE_INTERNAL_COL_DEFINE";function j(U){var D=U.expandable,f=Object(E.a)(U,["expandable"]);return"expandable"in U?Object(v.a)(Object(v.a)({},f),D):f}function n(U){return Object.keys(U).reduce(function(D,f){return(f.substr(0,5)==="data-"||f.substr(0,5)==="aria-")&&(D[f]=U[f]),D},{})}},n6Qo:function(xe,A,t){"use strict";t.d(A,"a",function(){return D});var v=t("q1tI"),E=t("biw7"),Y=t("fyJ8");function te(f){var F=f.className,R=f.index,z=f.children,N=f.colSpan,P=f.rowSpan,s=v.useContext(E.a),r=s.prefixCls,O=s.fixedInfoList,b=O[R];return v.createElement(Y.a,Object.assign({className:F,index:R,component:"td",prefixCls:r,record:null,dataIndex:null,render:function(){return{children:z,props:{colSpan:N,rowSpan:P}}}},b))}function j(f){return v.createElement("tr",Object.assign({},f))}function n(f){var F=f.children,R=v.useContext(E.a),z=R.prefixCls;return v.createElement("tfoot",{className:"".concat(z,"-summary")},F)}var U=A.b=n,D={Cell:te,Row:j}},rHrb:function(xe,A,t){"use strict";Object.defineProperty(A,"__esModule",{value:!0}),A.CopyToClipboard=void 0;var v=Y(t("q1tI")),E=Y(t("+QRC"));function Y(i){return i&&i.__esModule?i:{default:i}}function te(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?te=function(u){return typeof u}:te=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},te(i)}function j(i,c){var u=Object.keys(i);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(i);c&&(g=g.filter(function(d){return Object.getOwnPropertyDescriptor(i,d).enumerable})),u.push.apply(u,g)}return u}function n(i){for(var c=1;c=0)continue;if(!Object.prototype.propertyIsEnumerable.call(i,g))continue;u[g]=i[g]}}return u}function D(i,c){if(i==null)return{};var u={},g=Object.keys(i),d,h;for(h=0;h=0)continue;u[d]=i[d]}return u}function f(i,c){if(!(i instanceof c))throw new TypeError("Cannot call a class as a function")}function F(i,c){for(var u=0;u1)Object(F.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(c.length===0)return Object(F.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var u=c[0];if(n.isValidElement(u)&&Object(R.c)(u)){var g=u.ref;c[0]=n.cloneElement(u,{ref:Object(R.a)(g,this.setChildNode)})}return c.length===1?c[0]:c.map(function(d,h){return!n.isValidElement(d)||"key"in d&&d.key!==null?d:n.cloneElement(d,{key:"".concat(N,"-").concat(h)})})}}]),O}(n.Component);P.displayName="ResizeObserver",A.a=P},wCXF:function(xe,A,t){"use strict";t.d(A,"a",function(){return Ge});var v=t("rePB"),E=t("VTBJ"),Y=t("KQm4"),te=t("U8pU"),j=t("ODXe"),n=t("q1tI"),U=t("TSYQ"),D=t.n(U),f=t("Gytx"),F=t.n(f),R=t("Kwbf"),z=t("t23M"),N=t("qx4F"),P=t("6eGT"),s=t("IBYe"),r=t("Ff2n"),O=t("c+Xe"),b=t("fyJ8"),i=t("biw7");function c(l,S,T,G,q){var X=T[l]||{},L=T[S]||{},M,I;X.fixed==="left"?M=G.left[l]:L.fixed==="right"&&(I=G.right[S]);var re=!1,Z=!1,ae=!1,Ee=!1,ce=T[S+1],_e=T[l-1];if(q==="rtl"){if(M!==void 0){var Ie=_e&&_e.fixed==="left";Ee=!Ie}else if(I!==void 0){var Ne=ce&&ce.fixed==="right";ae=!Ne}}else if(M!==void 0){var Pe=ce&&ce.fixed==="left";re=!Pe}else if(I!==void 0){var Oe=_e&&_e.fixed==="right";Z=!Oe}return{fixLeft:M,fixRight:I,lastFixLeft:re,firstFixRight:Z,lastFixRight:ae,firstFixLeft:Ee,isSticky:G.isSticky}}var u=t("sR1s");function g(l){var S=l.cells,T=l.stickyOffsets,G=l.flattenColumns,q=l.rowComponent,X=l.cellComponent,L=l.onHeaderRow,M=l.index,I=n.useContext(i.a),re=I.prefixCls,Z=I.direction,ae;L&&(ae=L(S.map(function(ce){return ce.column}),M));var Ee=Object(u.a)(S.map(function(ce){return ce.column}));return n.createElement(q,Object.assign({},ae),S.map(function(ce,_e){var Ie=ce.column,Ne=c(ce.colStart,ce.colEnd,G,T,Z),Pe;return Ie&&Ie.onHeaderCell&&(Pe=ce.column.onHeaderCell(Ie)),n.createElement(b.a,Object.assign({},ce,{ellipsis:Ie.ellipsis,align:Ie.align,component:X,prefixCls:re,key:Ee[_e]},Ne,{additionalProps:Pe,rowType:"header"}))}))}g.displayName="HeaderRow";var d=g;function h(l){var S=[];function T(L,M){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;S[I]=S[I]||[];var re=M,Z=L.filter(Boolean).map(function(ae){var Ee={key:ae.key,className:ae.className||"",children:ae.title,column:ae,colStart:re},ce=1,_e=ae.children;return _e&&_e.length>0&&(ce=T(_e,re,I+1).reduce(function(Ie,Ne){return Ie+Ne},0),Ee.hasSubColumns=!0),"colSpan"in ae&&(ce=ae.colSpan),"rowSpan"in ae&&(Ee.rowSpan=ae.rowSpan),Ee.colSpan=ce,Ee.colEnd=Ee.colStart+ce-1,S[I].push(Ee),re+=ce,ce});return Z}T(l,0);for(var G=S.length,q=function(M){S[M].forEach(function(I){!("rowSpan"in I)&&!I.hasSubColumns&&(I.rowSpan=G-M)})},X=0;X=0;M-=1){var I=S[M],re=T&&T[M],Z=re&&re[o.a];(I||Z||L)&&(q.unshift(n.createElement("col",Object.assign({key:M,style:{width:I,minWidth:I}},Z))),L=!0)}return n.createElement("colgroup",null,q)}var m=e;function p(l,S){return Object(n.useMemo)(function(){for(var T=[],G=0;G1?at-1:0),pt=1;pt=ae&&(ie=ae-Ee),L({scrollLeft:ie/ae*(Z+2)}),Oe.current.x=$.pageX},Ye=function(){var $=Object(ke.b)(X.current).top,oe=$+X.current.offsetHeight,de=document.documentElement.scrollTop+window.innerHeight;oe-Object(N.a)()<=de||$>=de-M?Pe(function(le){return Object(E.a)(Object(E.a)({},le),{},{isHiddenScrollBar:!0})}):Pe(function(le){return Object(E.a)(Object(E.a)({},le),{},{isHiddenScrollBar:!1})})},Fe=function($){Pe(function(oe){return Object(E.a)(Object(E.a)({},oe),{},{scrollLeft:$/Z*ae||0})})};return n.useImperativeHandle(T,function(){return{setScrollLeft:Fe}}),n.useEffect(function(){var Ke=Object(w.a)(document.body,"mouseup",tt,!1),$=Object(w.a)(document.body,"mousemove",qe,!1);return Ye(),function(){Ke.remove(),$.remove()}},[Ee,Be]),n.useEffect(function(){var Ke=Object(w.a)(window,"scroll",Ye,!1),$=Object(w.a)(window,"resize",Ye,!1);return function(){Ke.remove(),$.remove()}},[]),n.useEffect(function(){Ne.isHiddenScrollBar||Pe(function(Ke){var $,oe;return Object(E.a)(Object(E.a)({},Ke),{},{scrollLeft:X.current.scrollLeft/(($=X.current)===null||$===void 0?void 0:$.scrollWidth)*((oe=X.current)===null||oe===void 0?void 0:oe.clientWidth)})})},[Ne.isHiddenScrollBar]),Z<=ae||!Ee||Ne.isHiddenScrollBar?null:n.createElement("div",{style:{height:Object(N.a)(),width:ae,bottom:M},className:"".concat(re,"-sticky-scroll")},n.createElement("div",{onMouseDown:Ue,ref:ce,className:D()("".concat(re,"-sticky-scroll-bar"),Object(v.a)({},"".concat(re,"-sticky-scroll-bar-active"),Be)),style:{width:"".concat(Ee,"px"),transform:"translate3d(".concat(Ne.scrollLeft,"px, 0, 0)")}}))},Ce=n.forwardRef(we);function ye(l,S){return n.useMemo(function(){var T=!!l;return{isSticky:T,stickyClassName:T?"".concat(S,"-sticky-header"):"",offsetHeader:Object(te.a)(l)==="object"&&l.offsetHeader||0,offsetScroll:Object(te.a)(l)==="object"&&l.offsetScroll||0}},[l,S])}var Ve=[],$e={},Ge="rc-table-internal-hook",ze=n.memo(function(l){var S=l.children;return S},function(l,S){return F()(l.props,S.props)?l.pingLeft!==S.pingLeft||l.pingRight!==S.pingRight:!1});function Je(l){var S,T=l.prefixCls,G=l.className,q=l.rowClassName,X=l.style,L=l.data,M=l.rowKey,I=l.scroll,re=l.tableLayout,Z=l.direction,ae=l.title,Ee=l.footer,ce=l.summary,_e=l.id,Ie=l.showHeader,Ne=l.components,Pe=l.emptyText,Oe=l.onRow,Ze=l.onHeaderRow,We=l.internalHooks,Be=l.transformColumns,He=l.internalRefs,tt=l.sticky,Ue=L||Ve,qe=!!Ue.length,Ye=n.useState(0),Fe=Object(j.a)(Ye,2),Ke=Fe[0],$=Fe[1];n.useEffect(function(){$(Object(N.a)())});var oe=n.useMemo(function(){return Object(u.c)(Ne,{})},[Ne]),de=n.useCallback(function(Te,Le){return Object(u.b)(oe,Te)||Le},[oe]),le=n.useMemo(function(){return typeof M=="function"?M:function(Te){var Le=Te&&Te[M];return Le}},[M]),ie=Object(o.c)(l),De=ie.expandIcon,Ae=ie.expandedRowKeys,nt=ie.defaultExpandedRowKeys,ct=ie.defaultExpandAllRows,ft=ie.expandedRowRender,vt=ie.onExpand,bt=ie.onExpandedRowsChange,Pt=ie.expandRowByClick,st=ie.rowExpandable,yt=ie.expandIconColumnIndex,Et=ie.expandedRowClassName,Kt=ie.childrenColumnName,Dt=ie.indentSize,gt=De||Me,Ot=Kt||"children",St=n.useMemo(function(){return ft?"row":l.expandable&&We===Ge&&l.expandable.__PARENT_RENDER_ICON__||Ue.some(function(Te){return Te&&Object(te.a)(Te)==="object"&&Te[Ot]})?"nest":!1},[!!ft,Ue]),Nt=n.useState(function(){return nt||(ct?Re(Ue,le,Ot):[])}),et=Object(j.a)(Nt,2),rt=et[0],it=et[1],at=n.useMemo(function(){return new Set(Ae||rt||[])},[Ae,rt]),mt=n.useCallback(function(Te){var Le=le(Te,Ue.indexOf(Te)),Qe,lt=at.has(Le);lt?(at.delete(Le),Qe=Object(Y.a)(at)):Qe=[].concat(Object(Y.a)(at),[Le]),it(Qe),vt&&vt(!lt,Te),bt&&bt(Qe)},[le,at,Ue,vt,bt]),pt=n.useState(0),Tt=Object(j.a)(pt,2),xt=Tt[0],Mt=Tt[1],vn=Object(k.b)(Object(E.a)(Object(E.a)(Object(E.a)({},l),ie),{},{expandable:!!ft,expandedKeys:at,getRowKey:le,onTriggerExpand:mt,expandIcon:gt,expandIconColumnIndex:yt,direction:Z}),We===Ge?Be:null),Yt=Object(j.a)(vn,2),kt=Yt[0],Xe=Yt[1],At=n.useMemo(function(){return{columns:kt,flattenColumns:Xe}},[kt,Xe]),zt=n.useRef(),Qt=n.useRef(),ht=n.useRef(),bn=n.useState(!1),Zt=Object(j.a)(bn,2),qt=Zt[0],En=Zt[1],gn=n.useState(!1),en=Object(j.a)(gn,2),tn=en[0],Cn=en[1],yn=y(new Map),nn=Object(j.a)(yn,2),On=nn[0],xn=nn[1],_n=Object(u.a)(Xe),an=_n.map(function(Te){return On.get(Te)}),on=n.useMemo(function(){return an},[an.join("_")]),Lt=he(on,Xe.length,Z),ut=I&&Object(u.d)(I.y),dt=I&&Object(u.d)(I.x),_t=dt&&Xe.some(function(Te){var Le=Te.fixed;return Le}),rn=n.useRef(),Ut=ye(tt,T),jt=Ut.isSticky,jn=Ut.offsetHeader,Rn=Ut.offsetScroll,Pn=Ut.stickyClassName,Bt,wt,Wt;ut&&(wt={overflowY:"scroll",maxHeight:I.y}),dt&&(Bt={overflowX:"auto"},ut||(wt={overflowY:"hidden"}),Wt={width:I.x===!0?"auto":I.x,minWidth:"100%"});var ln=n.useCallback(function(Te,Le){xn(function(Qe){var lt=new Map(Qe);return lt.set(Te,Le),lt})},[]),Dn=ee(null),sn=Object(j.a)(Dn,2),Sn=sn[0],un=sn[1];function Ft(Te,Le){if(!Le)return;typeof Le=="function"?Le(Te):Le.scrollLeft!==Te&&(Le.scrollLeft=Te)}var Ct=function(Le){var Qe=Le.currentTarget,lt=Le.scrollLeft,Rt=typeof lt=="number"?lt:Qe.scrollLeft,hn=Qe||$e;if(!un()||un()===hn){var Jt;Sn(hn),Ft(Rt,Qt.current),Ft(Rt,ht.current),Ft(Rt,(Jt=rn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(Qe){var wn=Qe.scrollWidth,In=Qe.clientWidth;En(Rt>0),Cn(Rt0?[].concat(Object(E.a)(r),Object(E.a)(R(c).map(function(u){return Object(Y.a)({fixed:i},u)}))):[].concat(Object(E.a)(r),[Object(Y.a)(Object(Y.a)({},O),{},{fixed:i})])},[])}function z(s){for(var r=!0,O=0;O=0;c-=1){var u=s[c];if(i&&u.fixed!=="right")i=!1;else if(!i&&u.fixed==="right"){Object(U.a)(!1,"Index ".concat(c+1," of `columns` missing `fixed='right'` prop."));break}}}function N(s){return s.map(function(r){var O=r.fixed,b=Object(te.a)(r,["fixed"]),i=O;return O==="left"?i="right":O==="right"&&(i="left"),Object(Y.a)({fixed:i},b)})}function P(s,r){var O=s.prefixCls,b=s.columns,i=s.children,c=s.expandable,u=s.expandedKeys,g=s.getRowKey,d=s.onTriggerExpand,h=s.expandIcon,_=s.rowExpandable,a=s.expandIconColumnIndex,o=s.direction,e=s.expandRowByClick,m=j.useMemo(function(){return b||F(i)},[b,i]),p=j.useMemo(function(){if(c){var x,H=a||0,ne=m[H],me=(x={},Object(v.a)(x,f.a,{className:"".concat(O,"-expand-icon-col")}),Object(v.a)(x,"title",""),Object(v.a)(x,"fixed",ne?ne.fixed:null),Object(v.a)(x,"className","".concat(O,"-row-expand-icon-cell")),Object(v.a)(x,"render",function(K,fe,ge){var be=g(fe,ge),pe=u.has(be),B=_?_(fe):!0,k=h({prefixCls:O,expanded:pe,expandable:B,record:fe,onExpand:d});return e?j.createElement("span",{onClick:function(W){return W.stopPropagation()}},k):k}),x),Se=m.slice();return H>=0&&Se.splice(H,0,me),Se}return m},[c,m,g,u,h,o]),C=j.useMemo(function(){var x=p;return r&&(x=r(x)),x.length||(x=[{render:function(){return null}}]),x},[r,p,o]),V=j.useMemo(function(){return o==="rtl"?N(R(C)):R(C)},[C,o]);return[C,V]}A.b=P},"y0+3":function(xe,A,t){"use strict";t.d(A,"a",function(){return R}),t.d(A,"b",function(){return N});var v=/margin|padding|width|height|max|min|offset/,E={left:!0,top:!0},Y={cssFloat:1,styleFloat:1,float:1};function te(P){return P.nodeType===1?P.ownerDocument.defaultView.getComputedStyle(P,null):{}}function j(P,s,r){if(s=s.toLowerCase(),r==="auto"){if(s==="height")return P.offsetHeight;if(s==="width")return P.offsetWidth}return s in E||(E[s]=v.test(s)),E[s]?parseFloat(r)||0:r}function n(P,s){var r=arguments.length,O=te(P);return s=Y[s]?"cssFloat"in P.style?"cssFloat":"styleFloat":s,r===1?O:j(P,s,O[s]||P.style[s])}function U(P,s,r){var O=arguments.length;if(s=Y[s]?"cssFloat"in P.style?"cssFloat":"styleFloat":s,O===3)return typeof r=="number"&&v.test(s)&&(r="".concat(r,"px")),P.style[s]=r,r;for(var b in s)s.hasOwnProperty(b)&&U(P,b,s[b]);return te(P)}function D(P){return P===document.body?document.documentElement.clientWidth:P.offsetWidth}function f(P){return P===document.body?window.innerHeight||document.documentElement.clientHeight:P.offsetHeight}function F(){var P=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),s=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:P,height:s}}function R(){var P=document.documentElement.clientWidth,s=window.innerHeight||document.documentElement.clientHeight;return{width:P,height:s}}function z(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function N(P){var s=P.getBoundingClientRect(),r=document.documentElement;return{left:s.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||document.body.clientLeft||0),top:s.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||document.body.clientTop||0)}}},zr3n:function(xe,A,t){"use strict";t.r(A);var v=t("DjyN"),E=t("NUBc"),Y=t("g9YV"),te=t("wCAj"),j=t("qVdP"),n=t("jsC+"),U=t("14J3"),D=t("BMrR"),f=t("jCWc"),F=t("kPKH"),R=t("sRBo"),z=t("kaz8"),N=t("oBTY"),P=t("lUTK"),s=t("BvKs"),r=t("miYZ"),O=t("tsqr"),b=t("5NDa"),i=t("5rEg"),c=t("2qtc"),u=t("kLXV"),g=t("9og8"),d=t("k1fw"),h=t("tJVT"),_=t("WmNS"),a=t.n(_),o=t("q1tI"),e=t.n(o),m=t("wd/R"),p=t.n(m),C=t("P5Jw"),V=t.n(C),x=t("Ty5D"),H=t("9kvl"),ne=t("jhfD"),me=t("ErOA"),Se=t("8Skl"),ue=t("1vsH"),K=t("BdwD"),fe=t("xKgJ"),ge=t("6ZIh"),be=t.n(ge),pe=t("oUNq");p.a.locale("zh-cn");var B=function(Q){var W,y,ee,J,he=Q.classroomList,je=Q.globalSetting,se=Q.loading,ve=Q.dispatch,Me=Object(o.useState)(Object(d.a)(Object(d.a)({},Object(x.i)()),{page:1,limit:20})),Re=Object(h.a)(Me,2),w=Re[0],ke=Re[1],we=Object(o.useState)([]),Ce=Object(h.a)(we,2),ye=Ce[0],Ve=Ce[1],$e=Object(o.useState)({}),Ge=Object(h.a)($e,2),ze=Ge[0],Je=Ge[1],ot=Object(o.useRef)(),l=Object(o.useState)(!1),S=Object(h.a)(l,2),T=S[0],G=S[1],q=Object(o.useState)([]),X=Object(h.a)(q,2),L=X[0],M=X[1],I=Object(o.useState)(!1),re=Object(h.a)(I,2),Z=re[0],ae=re[1],Ee=Object(o.useState)([]),ce=Object(h.a)(Ee,2),_e=ce[0],Ie=ce[1];Object(o.useEffect)(function(){w.order=1,w.sort="asc",w.page=1,w.limit=20,w.course_group_id=w.categoryId,ke(w),Pe(w),Ne()},[w.categoryId]);var Ne=function(){var $=Object(g.a)(a.a.mark(function oe(){var de,le,ie;return a.a.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return Ae.next=2,Object(pe.A)({coursesId:w.coursesId});case 2:ie=Ae.sent,Ve((ie==null||((de=ie.course_groups)===null||de===void 0)?void 0:de.map(function(nt){return Object(d.a)(Object(d.a)({},nt),{show:!0})}))||[]),Ie(ie==null||((le=ie.course_groups)===null||le===void 0)?void 0:le.filter(function(nt){return nt.in_current_course_group}));case 5:case"end":return Ae.stop()}},oe)}));return function(){return $.apply(this,arguments)}}(),Pe=function(){var $=Object(g.a)(a.a.mark(function oe(de){var le;return a.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return G(!0),De.next=3,Object(pe.V)(de);case 3:le=De.sent,G(!1),Je(le||{});case 6:case"end":return De.stop()}},oe)}));return function(de){return $.apply(this,arguments)}}(),Oe=function(oe,de){w.page=oe,ae(!1),M([]),ke(w),Pe(w)},Ze=function(){ot.current=ze.course_group_name,u.a.confirm({width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",centered:!0,content:e.a.createElement("div",{className:"tc font16"},e.a.createElement(i.a,{defaultValue:ot.current,onChange:function(de){return ot.current=de.target.value}})),onOk:function(){var oe=Object(g.a)(a.a.mark(function le(){var ie;return a.a.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return Ae.next=2,Object(pe.ub)({categoryId:w.categoryId,name:ot.current});case 2:ie=Ae.sent,(ie==null?void 0:ie.status)===0&&(O.b.success("\u66F4\u65B0\u6210\u529F"),Pe(w));case 4:case"end":return Ae.stop()}},le)}));function de(){return oe.apply(this,arguments)}return de}()})},We=function(){u.a.confirm({width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",centered:!0,content:e.a.createElement("div",{className:"tc font16"},"\u52A0\u5165\u5206\u73ED\u540E\uFF0C\u9700\u8054\u7CFB\u8001\u5E08\u6216\u52A9\u6559\u624D\u80FD\u8C03\u6574\u5206\u73ED"),onOk:function(){var oe=Object(g.a)(a.a.mark(function le(){var ie;return a.a.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return Ae.next=2,Object(pe.qb)({coursesId:w.coursesId,course_group_id:w.categoryId});case 2:ie=Ae.sent,(ie==null?void 0:ie.status)===0&&(O.b.success("\u52A0\u5165\u6210\u529F"),Pe(w));case 4:case"end":return Ae.stop()}},le)}));function de(){return oe.apply(this,arguments)}return de}()})},Be=function(){u.a.confirm({width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",centered:!0,content:e.a.createElement("div",{className:"tc font16"},"\u8BE5\u5206\u73ED\u7684\u5B66\u751F\u5C06\u88AB\u79FB\u52A8\u5230\u201C\u672A\u5206\u73ED\u201D",e.a.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:function(){var oe=Object(g.a)(a.a.mark(function le(){var ie;return a.a.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return Ae.next=2,Object(pe.l)({categoryId:w.categoryId});case 2:ie=Ae.sent,(ie==null?void 0:ie.status)===0&&(O.b.success("\u5220\u9664\u6210\u529F"),ve({type:"classroomList/getClassroomLeftMenus",payload:{id:w.coursesId}}),H.d.push("/classrooms/".concat(w.coursesId,"/course_group")));case 4:case"end":return Ae.stop()}},le)}));function de(){return oe.apply(this,arguments)}return de}()})},He=function(){var $=Object(g.a)(a.a.mark(function oe(de){var le;return a.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(!((L==null?void 0:L.length)===0)){De.next=3;break}return O.b.info("\u8BF7\u9009\u62E9\u5B66\u751F"),De.abrupt("return");case 3:return De.next=5,Object(pe.Cb)({coursesId:w.coursesId,course_group_id:de,students:L.map(function(Ae){return{course_member_id:Ae}})});case 5:le=De.sent,(le==null?void 0:le.status)===0&&O.b.success("\u64CD\u4F5C\u6210\u529F"),w.page=1,M([]),ke(w),Pe(w);case 11:case"end":return De.stop()}},oe)}));return function(de){return $.apply(this,arguments)}}(),tt=function(oe){u.a.confirm({width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",centered:!0,content:e.a.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:function(){var de=Object(g.a)(a.a.mark(function ie(){var De;return a.a.wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:return nt.next=2,Object(pe.n)({coursesId:w.coursesId,students:[{course_member_id:oe}]});case 2:De=nt.sent,(De==null?void 0:De.status)===0&&(O.b.success("\u5220\u9664\u6210\u529F"),w.page=1,Pe(w));case 4:case"end":return nt.stop()}},ie)}));function le(){return de.apply(this,arguments)}return le}()})},Ue=[{name:"\u8BFE\u5802\u4FE1\u606F",url:Object(ue.U)({url:"/api/courses/".concat(w.coursesId,"/export_couser_info.xlsx&export=true"),query:Object(d.a)(Object(d.a)({},w),{group_id:w.course_group_id,search:w.search?(W=w.search)===null||W===void 0?void 0:W.trim():null})})},{name:"\u6D3B\u8DC3\u5EA6",url:Object(ue.U)({url:"/api/courses/".concat(w.coursesId,"/export_member_act_score.xlsx&export=true"),query:Object(d.a)(Object(d.a)({},w),{group_id:w.course_group_id,search:w.search?(y=w.search)===null||y===void 0?void 0:y.trim():null})})},{name:"\u603B\u6210\u7EE9",url:Object(ue.U)({url:"/api/courses/".concat(w.coursesId,"/export_member_scores_excel.xlsx&export=true"),query:Object(d.a)(Object(d.a)({},w),{group_id:w.course_group_id,search:w.search?(ee=w.search)===null||ee===void 0?void 0:ee.trim():null})})}],qe=e.a.createElement(s.a,{style:{maxHeight:400,width:200,overflow:"auto",padding:10}},e.a.createElement("input",{placeholder:"\u641C\u7D22",className:"ant-input",onChange:function(oe){var de=oe.target.value;Ve(ye.map(function(le){var ie;return(ie=le.name)!==null&&ie!==void 0&&ie.includes(de)?Object(d.a)(Object(d.a)({},le),{show:!0}):Object(d.a)(Object(d.a)({},le),{show:!1})}))},style:{width:180}}),e.a.createElement(s.a.Item,{onClick:function(){return He(0)},className:"multi-llipsis1e"},e.a.createElement("span",null,"\u672A\u5206\u73ED")),ye==null||((J=ye.filter(function($){return $.show}))===null||J===void 0)?void 0:J.map(function($,oe){return e.a.createElement(s.a.Item,{onClick:function(){return He($.id)},className:"multi-llipsis1e"},e.a.createElement("span",null,$.name))})),Ye=e.a.createElement(s.a,{style:{maxHeight:400,width:240,overflow:"auto"}},Ue.map(function($,oe){return e.a.createElement(s.a.Item,{key:$.url},e.a.createElement("a",{onClick:Object(g.a)(a.a.mark(function de(){var le;return a.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return De.next=2,Object(me.a)($.url,{method:"get"});case 2:le=De.sent,le&&(le==null?void 0:le.status)!==-1&&(le==null?void 0:le.status)!==-2&&Object(ue.O)($.url);case 4:case"end":return De.stop()}},de)}))},$.name))})),Fe=[Object(fe.c)()&&{title:"",width:80,align:"center",render:function(oe,de){return e.a.createElement(z.a,{checked:L.includes(de.course_member_id),onChange:function(ie){ie.target.checked?M([].concat(Object(N.a)(L),[de.course_member_id])):M(L.filter(function(De){return De!==de.course_member_id}))}})}},{title:"\u5E8F\u53F7",render:function(oe,de,le){return w.limit*(w.page-1)+le+1},width:80,align:"center"},{title:"\u59D3\u540D",dataIndex:"name",width:80,ellipsis:!0,align:"center",render:function(oe,de){return e.a.createElement("a",{className:"c-blank",onClick:function(){return Object(ue.O)("/users/".concat(de.login))}},oe)}},{title:"\u5B66\u53F7",dataIndex:"student_id",width:80,ellipsis:!0,align:"center",sorter:!0,showSorterTooltip:!1,render:function(oe){return e.a.createElement("span",null,oe)}},{title:"\u624B\u673A\u53F7",dataIndex:"user_phone",width:80,ellipsis:!0,align:"center",render:function(oe){return e.a.createElement("span",null,oe)}},{title:"\u90AE\u7BB1",dataIndex:"user_mail",width:80,ellipsis:!0,align:"center",render:function(oe){return e.a.createElement("span",null,oe)}}].filter(function($){return!!$}),Ke=["\u5BFC\u5165\u521B\u5EFA\u5206\u73ED","\u65B0\u5EFA\u5206\u73ED"];return e.a.createElement("section",null,e.a.createElement("aside",{className:be.a.bg},e.a.createElement(D.a,{className:be.a.headWrap},e.a.createElement(F.a,{flex:"1"},e.a.createElement("span",null,e.a.createElement(ne.a,{className:"font16 c-black",onClick:function(){return H.d.push("/classrooms/".concat(w.coursesId,"/course_group"))}})),e.a.createElement("span",{className:"".concat(be.a.title," ml10")},ze.course_group_name),Object(fe.c)()&&ze.invite_code&&e.a.createElement("span",{className:"ml10"},e.a.createElement("span",{className:"c-grey-999 font16"},"\u9080\u8BF7\u7801\uFF1A"),e.a.createElement("span",{className:"c-orange font16"},ze.invite_code),e.a.createElement("span",null,e.a.createElement(C.CopyToClipboard,{text:ze.invite_code,className:"current",onCopy:function(){return O.b.success("\u590D\u5236\u6210\u529F")}},e.a.createElement("span",null,e.a.createElement("i",{className:"iconfont icon-fuzhi font14 ml10 c-orange"})))))),e.a.createElement(F.a,null,e.a.createElement("div",null,Object(fe.c)()&&e.a.createElement("span",{className:[be.a.add,"font16","c-blue","ml20","current"].join(" "),onClick:Be},"\u5220\u9664\u5206\u73ED"),Object(fe.c)()&&e.a.createElement("span",{className:[be.a.add,"font16","c-blue","ml20","current"].join(" "),onClick:Ze},"\u5206\u73ED\u91CD\u547D\u540D"),Object(fe.s)()&&_e.length<=0&&e.a.createElement("span",{className:[be.a.add,"font16","c-blue","ml20","current"].join(" "),onClick:We},"\u52A0\u5165\u5206\u73ED")))),e.a.createElement("div",{className:be.a.containerDesc},e.a.createElement("p",null,"\u5171",e.a.createElement("span",{className:"c-orange"},ze.students_count),"\u4E2A\u5B66\u751F"),e.a.createElement("p",null,e.a.createElement(i.a.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u3001\u5B66\u53F7\u8FDB\u884C\u641C\u7D22",onSearch:function(oe){w.search=oe,w.page=1,ke(w),Pe(w)},style:{width:300}})))),ze.students_count===0&&e.a.createElement(K.a,null),ze.students_count>0&&e.a.createElement(e.a.Fragment,null,e.a.createElement("aside",{className:"plr30 mt20 ".concat(be.a.bg)},Object(fe.c)()&&e.a.createElement(D.a,{justify:"space-between",className:be.a.checkbox},e.a.createElement(F.a,null,e.a.createElement(z.a,{checked:Z,onChange:function(oe){if(ae(oe.target.checked),oe.target.checked){var de;M((de=ze.students)===null||de===void 0?void 0:de.map(function(le){return le.course_member_id}))}else M([])}},e.a.createElement("span",{className:"font14"},"\u5DF2\u9009",L.length,"\u4E2A"))),e.a.createElement(F.a,null,e.a.createElement(n.a,{overlay:qe,className:"ml20",placement:"bottomRight"},e.a.createElement("span",{className:"font14 current"},"\u79FB\u52A8\u5230",e.a.createElement(Se.a,{className:"ml5"}))))),e.a.createElement(te.a,{className:"pt20",columns:Fe,dataSource:ze.students,loading:T,pagination:!1,onChange:function(oe,de,le){console.log("c: ",le),le.order==="ascend"&&(w.sort="asc"),le.order==="descend"&&(w.sort="desc"),le.order||delete w.sort,ke(w),Pe(w)}})),e.a.createElement("aside",{className:"tc mb50 mt30"},e.a.createElement(E.a,{hideOnSinglePage:!0,showSizeChanger:!1,onChange:Oe,defaultCurrent:1,defaultPageSize:20,current:w.page||1,total:ze.students_count}))))};A.default=Object(H.a)(function(k){var Q=k.classroomList,W=k.loading,y=k.globalSetting;return{classroomList:Q,globalSetting:y,loading:W}})(B)}}]); diff --git a/p__Classrooms__Lists__Exercise__ImitateAnswer__index.00a3bccc.async.js b/p__Classrooms__Lists__Exercise__ImitateAnswer__index.00a3bccc.async.js index 4e5a0a2435..a7bad35cf3 100644 --- a/p__Classrooms__Lists__Exercise__ImitateAnswer__index.00a3bccc.async.js +++ b/p__Classrooms__Lists__Exercise__ImitateAnswer__index.00a3bccc.async.js @@ -1,6 +1,6 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[64,3,5,6,7,8,9],{"+NIl":function(et,de,N){(function(ee){ee(N("VrN/"))})(function(ee){"use strict";ee.defineMode("stex",function(K,P){"use strict";function z(y,f){y.cmdState.push(f)}function B(y){return y.cmdState.length>0?y.cmdState[y.cmdState.length-1]:null}function M(y){var f=y.cmdState.pop();f&&f.closeBracket()}function j(y){for(var f=y.cmdState,m=f.length-1;m>=0;m--){var a=f[m];if(a.name=="DEFAULT")continue;return a}return{styleIdentifier:function(){return null}}}function U(y,f,m){return function(){this.name=y,this.bracketNo=0,this.style=f,this.styles=m,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var _={};_.importmodule=U("importmodule","tag",["string","builtin"]),_.documentclass=U("documentclass","tag",["","atom"]),_.usepackage=U("usepackage","tag",["atom"]),_.begin=U("begin","tag",["atom"]),_.end=U("end","tag",["atom"]),_.label=U("label","tag",["atom"]),_.ref=U("ref","tag",["atom"]),_.eqref=U("eqref","tag",["atom"]),_.cite=U("cite","tag",["atom"]),_.bibitem=U("bibitem","tag",["atom"]),_.Bibitem=U("Bibitem","tag",["atom"]),_.RBibitem=U("RBibitem","tag",["atom"]),_.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function R(y,f){y.f=f}function c(y,f){var m;if(y.match(/^\\[a-zA-Z@]+/)){var a=y.current().slice(1);return m=_.hasOwnProperty(a)?_[a]:_.DEFAULT,m=new m,z(f,m),R(f,w),m.style}if(y.match(/^\\[$&%#{}_]/))return"tag";if(y.match(/^\\[,;!\/\\]/))return"tag";if(y.match("\\["))return R(f,function(o,u){return g(o,u,"\\]")}),"keyword";if(y.match("\\("))return R(f,function(o,u){return g(o,u,"\\)")}),"keyword";if(y.match("$$"))return R(f,function(o,u){return g(o,u,"$$")}),"keyword";if(y.match("$"))return R(f,function(o,u){return g(o,u,"$")}),"keyword";var n=y.next();if(n=="%")return y.skipToEnd(),"comment";if(n=="}"||n=="]"){if(m=B(f),m)m.closeBracket(n),R(f,w);else return"error";return"bracket"}else return n=="{"||n=="["?(m=_.DEFAULT,m=new m,z(f,m),"bracket"):/\d/.test(n)?(y.eatWhile(/[\w.%]/),"atom"):(y.eatWhile(/[\w\-_]/),m=j(f),m.name=="begin"&&(m.argument=y.current()),m.styleIdentifier())}function g(y,f,m){if(y.eatSpace())return null;if(m&&y.match(m))return R(f,c),"keyword";if(y.match(/^\\[a-zA-Z@]+/))return"tag";if(y.match(/^[a-zA-Z]+/))return"variable-2";if(y.match(/^\\[$&%#{}_]/))return"tag";if(y.match(/^\\[,;!\/]/))return"tag";if(y.match(/^[\^_&]/))return"tag";if(y.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(y.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var a=y.next();return a=="{"||a=="}"||a=="["||a=="]"||a=="("||a==")"?"bracket":a=="%"?(y.skipToEnd(),"comment"):"error"}function w(y,f){var m=y.peek(),a;return m=="{"||m=="["?(a=B(f),a.openBracket(m),y.eat(m),R(f,c),"bracket"):/[ \t\r]/.test(m)?(y.eat(m),null):(R(f,c),M(f),c(y,f))}return{startState:function(){var y=P.inMathMode?function(f,m){return g(f,m)}:c;return{cmdState:[],f:y}},copyState:function(y){return{cmdState:y.cmdState.slice(),f:y.f}},token:function(y,f){return f.f(y,f)},blankLine:function(y){y.f=c,y.cmdState.length=0},lineComment:"%"}}),ee.defineMIME("text/x-stex","stex"),ee.defineMIME("text/x-latex","stex")})},"+ua5":function(et,de,N){},"/GNS":function(et,de,N){et.exports=N.p+"static/search1.c4136dd4.png"},"/cxE":function(et,de,N){"use strict";N.d(de,"e",function(){return P}),N.d(de,"f",function(){return z}),N.d(de,"g",function(){return B}),N.d(de,"d",function(){return j}),N.d(de,"a",function(){return U}),N.d(de,"b",function(){return _}),N.d(de,"c",function(){return R});var ee=function(){function c(){this.listeners=[],this.unexpectedErrorHandler=function(g){setTimeout(function(){throw g.stack?new Error(g.message+` +(window.webpackJsonp=window.webpackJsonp||[]).push([[64,3,5,6,7,8,9],{"+NIl":function(et,de,N){(function(ee){ee(N("VrN/"))})(function(ee){"use strict";ee.defineMode("stex",function(K,k){"use strict";function z(y,f){y.cmdState.push(f)}function B(y){return y.cmdState.length>0?y.cmdState[y.cmdState.length-1]:null}function M(y){var f=y.cmdState.pop();f&&f.closeBracket()}function j(y){for(var f=y.cmdState,m=f.length-1;m>=0;m--){var a=f[m];if(a.name=="DEFAULT")continue;return a}return{styleIdentifier:function(){return null}}}function U(y,f,m){return function(){this.name=y,this.bracketNo=0,this.style=f,this.styles=m,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var _={};_.importmodule=U("importmodule","tag",["string","builtin"]),_.documentclass=U("documentclass","tag",["","atom"]),_.usepackage=U("usepackage","tag",["atom"]),_.begin=U("begin","tag",["atom"]),_.end=U("end","tag",["atom"]),_.label=U("label","tag",["atom"]),_.ref=U("ref","tag",["atom"]),_.eqref=U("eqref","tag",["atom"]),_.cite=U("cite","tag",["atom"]),_.bibitem=U("bibitem","tag",["atom"]),_.Bibitem=U("Bibitem","tag",["atom"]),_.RBibitem=U("RBibitem","tag",["atom"]),_.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function R(y,f){y.f=f}function c(y,f){var m;if(y.match(/^\\[a-zA-Z@]+/)){var a=y.current().slice(1);return m=_.hasOwnProperty(a)?_[a]:_.DEFAULT,m=new m,z(f,m),R(f,w),m.style}if(y.match(/^\\[$&%#{}_]/))return"tag";if(y.match(/^\\[,;!\/\\]/))return"tag";if(y.match("\\["))return R(f,function(o,u){return g(o,u,"\\]")}),"keyword";if(y.match("\\("))return R(f,function(o,u){return g(o,u,"\\)")}),"keyword";if(y.match("$$"))return R(f,function(o,u){return g(o,u,"$$")}),"keyword";if(y.match("$"))return R(f,function(o,u){return g(o,u,"$")}),"keyword";var n=y.next();if(n=="%")return y.skipToEnd(),"comment";if(n=="}"||n=="]"){if(m=B(f),m)m.closeBracket(n),R(f,w);else return"error";return"bracket"}else return n=="{"||n=="["?(m=_.DEFAULT,m=new m,z(f,m),"bracket"):/\d/.test(n)?(y.eatWhile(/[\w.%]/),"atom"):(y.eatWhile(/[\w\-_]/),m=j(f),m.name=="begin"&&(m.argument=y.current()),m.styleIdentifier())}function g(y,f,m){if(y.eatSpace())return null;if(m&&y.match(m))return R(f,c),"keyword";if(y.match(/^\\[a-zA-Z@]+/))return"tag";if(y.match(/^[a-zA-Z]+/))return"variable-2";if(y.match(/^\\[$&%#{}_]/))return"tag";if(y.match(/^\\[,;!\/]/))return"tag";if(y.match(/^[\^_&]/))return"tag";if(y.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(y.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var a=y.next();return a=="{"||a=="}"||a=="["||a=="]"||a=="("||a==")"?"bracket":a=="%"?(y.skipToEnd(),"comment"):"error"}function w(y,f){var m=y.peek(),a;return m=="{"||m=="["?(a=B(f),a.openBracket(m),y.eat(m),R(f,c),"bracket"):/[ \t\r]/.test(m)?(y.eat(m),null):(R(f,c),M(f),c(y,f))}return{startState:function(){var y=k.inMathMode?function(f,m){return g(f,m)}:c;return{cmdState:[],f:y}},copyState:function(y){return{cmdState:y.cmdState.slice(),f:y.f}},token:function(y,f){return f.f(y,f)},blankLine:function(y){y.f=c,y.cmdState.length=0},lineComment:"%"}}),ee.defineMIME("text/x-stex","stex"),ee.defineMIME("text/x-latex","stex")})},"+ua5":function(et,de,N){},"/GNS":function(et,de,N){et.exports=N.p+"static/search1.c4136dd4.png"},"/cxE":function(et,de,N){"use strict";N.d(de,"e",function(){return k}),N.d(de,"f",function(){return z}),N.d(de,"g",function(){return B}),N.d(de,"d",function(){return j}),N.d(de,"a",function(){return U}),N.d(de,"b",function(){return _}),N.d(de,"c",function(){return R});var ee=function(){function c(){this.listeners=[],this.unexpectedErrorHandler=function(g){setTimeout(function(){throw g.stack?new Error(g.message+` -`+g.stack):g},0)}}return c.prototype.emit=function(g){this.listeners.forEach(function(w){w(g)})},c.prototype.onUnexpectedError=function(g){this.unexpectedErrorHandler(g),this.emit(g)},c.prototype.onUnexpectedExternalError=function(g){this.unexpectedErrorHandler(g)},c}(),K=new ee;function P(c){j(c)||K.onUnexpectedError(c);return}function z(c){j(c)||K.onUnexpectedExternalError(c);return}function B(c){if(c instanceof Error){var g=c.name,w=c.message,y=c.stacktrace||c.stack;return{$isError:!0,name:g,message:w,stack:y}}return c}var M="Canceled";function j(c){return c instanceof Error&&c.name===M&&c.message===M}function U(){var c=new Error(M);return c.name=c.message,c}function _(c){return c?new Error("Illegal argument: "+c):new Error("Illegal argument")}function R(c){return c?new Error("Illegal state: "+c):new Error("Illegal state")}},"19Vz":function(et,de,N){(function(ee){ee(N("VrN/"))})(function(ee){ee.defineOption("placeholder","",function(U,_,R){var c=R&&R!=ee.Init;if(_&&!c)U.on("blur",B),U.on("change",M),U.on("swapDoc",M),ee.on(U.getInputField(),"compositionupdate",U.state.placeholderCompose=function(){z(U)}),M(U);else if(!_&&c){U.off("blur",B),U.off("change",M),U.off("swapDoc",M),ee.off(U.getInputField(),"compositionupdate",U.state.placeholderCompose),K(U);var g=U.getWrapperElement();g.className=g.className.replace(" CodeMirror-empty","")}_&&!U.hasFocus()&&B(U)});function K(U){U.state.placeholder&&(U.state.placeholder.parentNode.removeChild(U.state.placeholder),U.state.placeholder=null)}function P(U){K(U);var _=U.state.placeholder=document.createElement("pre");_.style.cssText="height: 0; overflow: visible",_.style.direction=U.getOption("direction"),_.className="CodeMirror-placeholder CodeMirror-line-like";var R=U.getOption("placeholder");typeof R=="string"&&(R=document.createTextNode(R)),_.appendChild(R),U.display.lineSpace.insertBefore(_,U.display.lineSpace.firstChild)}function z(U){setTimeout(function(){var _=!1,R=U.getInputField();R.nodeName=="TEXTAREA"?_=!R.value:U.lineCount()==1&&(_=!/[^\u200b]/.test(R.querySelector(".CodeMirror-line").textContent)),_?P(U):K(U)},20)}function B(U){j(U)&&P(U)}function M(U){var _=U.getWrapperElement(),R=j(U);_.className=_.className.replace(" CodeMirror-empty","")+(R?" CodeMirror-empty":""),R?P(U):K(U)}function j(U){return U.lineCount()===1&&U.getLine(0)===""}})},"1eCo":function(et,de,N){(function(ee){ee(N("VrN/"))})(function(ee){"use strict";var K={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},P={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ee.defineMode("xml",function(z,B){var M=z.indentUnit,j={},U=B.htmlMode?K:P;for(var _ in U)j[_]=U[_];for(var _ in B)j[_]=B[_];var R,c;function g(l,D){function T(C){return D.tokenize=C,C(l,D)}var S=l.next();if(S=="<")return l.eat("!")?l.eat("[")?l.match("CDATA[")?T(f("atom","]]>")):null:l.match("--")?T(f("comment","-->")):l.match("DOCTYPE",!0,!0)?(l.eatWhile(/[\w\._\-]/),T(m(1))):null:l.eat("?")?(l.eatWhile(/[\w\._\-]/),D.tokenize=f("meta","?>"),"meta"):(R=l.eat("/")?"closeTag":"openTag",D.tokenize=w,"tag bracket");if(S=="&"){var I;return l.eat("#")?l.eat("x")?I=l.eatWhile(/[a-fA-F\d]/)&&l.eat(";"):I=l.eatWhile(/[\d]/)&&l.eat(";"):I=l.eatWhile(/[\w\.\-:]/)&&l.eat(";"),I?"atom":"error"}else return l.eatWhile(/[^&<]/),null}g.isInText=!0;function w(l,D){var T=l.next();if(T==">"||T=="/"&&l.eat(">"))return D.tokenize=g,R=T==">"?"endTag":"selfcloseTag","tag bracket";if(T=="=")return R="equals",null;if(T=="<"){D.tokenize=g,D.state=u,D.tagName=D.tagStart=null;var S=D.tokenize(l,D);return S?S+" tag error":"tag error"}else return/[\'\"]/.test(T)?(D.tokenize=y(T),D.stringStartCol=l.column(),D.tokenize(l,D)):(l.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function y(l){var D=function(T,S){for(;!T.eol();)if(T.next()==l){S.tokenize=w;break}return"string"};return D.isInAttribute=!0,D}function f(l,D){return function(T,S){for(;!T.eol();){if(T.match(D)){S.tokenize=g;break}T.next()}return l}}function m(l){return function(D,T){for(var S;(S=D.next())!=null;){if(S=="<")return T.tokenize=m(l+1),T.tokenize(D,T);if(S==">")if(l==1){T.tokenize=g;break}else return T.tokenize=m(l-1),T.tokenize(D,T)}return"meta"}}function a(l,D,T){this.prev=l.context,this.tagName=D,this.indent=l.indented,this.startOfLine=T,(j.doNotIndent.hasOwnProperty(D)||l.context&&l.context.noIndent)&&(this.noIndent=!0)}function n(l){l.context&&(l.context=l.context.prev)}function o(l,D){for(var T;;){if(!l.context)return;if(T=l.context.tagName,!j.contextGrabbers.hasOwnProperty(T)||!j.contextGrabbers[T].hasOwnProperty(D))return;n(l)}}function u(l,D,T){return l=="openTag"?(T.tagStart=D.column(),x):l=="closeTag"?E:u}function x(l,D,T){return l=="word"?(T.tagName=D.current(),c="tag",A):j.allowMissingTagName&&l=="endTag"?(c="tag bracket",A(l,D,T)):(c="error",x)}function E(l,D,T){if(l=="word"){var S=D.current();return T.context&&T.context.tagName!=S&&j.implicitlyClosed.hasOwnProperty(T.context.tagName)&&n(T),T.context&&T.context.tagName==S||j.matchClosing===!1?(c="tag",v):(c="tag error",O)}else return j.allowMissingTagName&&l=="endTag"?(c="tag bracket",v(l,D,T)):(c="error",O)}function v(l,D,T){return l!="endTag"?(c="error",v):(n(T),u)}function O(l,D,T){return c="error",v(l,D,T)}function A(l,D,T){if(l=="word")return c="attribute",p;if(l=="endTag"||l=="selfcloseTag"){var S=T.tagName,I=T.tagStart;return T.tagName=T.tagStart=null,l=="selfcloseTag"||j.autoSelfClosers.hasOwnProperty(S)?o(T,S):(o(T,S),T.context=new a(T,S,I==T.indented)),u}return c="error",A}function p(l,D,T){return l=="equals"?h:(j.allowMissing||(c="error"),A(l,D,T))}function h(l,D,T){return l=="string"?s:l=="word"&&j.allowUnquoted?(c="string",A):(c="error",A(l,D,T))}function s(l,D,T){return l=="string"?s:A(l,D,T)}return{startState:function(l){var D={tokenize:g,state:u,indented:l||0,tagName:null,tagStart:null,context:null};return l!=null&&(D.baseIndent=l),D},token:function(l,D){if(!D.tagName&&l.sol()&&(D.indented=l.indentation()),l.eatSpace())return null;R=null;var T=D.tokenize(l,D);return(T||R)&&T!="comment"&&(c=null,D.state=D.state(R||T,l,D),c&&(T=c=="error"?T+" error":c)),T},indent:function(l,D,T){var S=l.context;if(l.tokenize.isInAttribute)return l.tagStart==l.indented?l.stringStartCol+1:l.indented+M;if(S&&S.noIndent)return ee.Pass;if(l.tokenize!=w&&l.tokenize!=g)return T?T.match(/^(\s*)/)[0].length:0;if(l.tagName)return j.multilineTagIndentPastTag!==!1?l.tagStart+l.tagName.length+2:l.tagStart+M*(j.multilineTagIndentFactor||1);if(j.alignCDATA&&/$/,blockCommentStart:"",configuration:j.htmlMode?"html":"xml",helperType:j.htmlMode?"html":"xml",skipAttribute:function(l){l.state==h&&(l.state=A)},xmlCurrentTag:function(l){return l.tagName?{name:l.tagName,close:l.type=="closeTag"}:null},xmlCurrentContext:function(l){for(var D=[],T=l.context;T;T=T.prev)T.tagName&&D.push(T.tagName);return D.reverse()}}}),ee.defineMIME("text/xml","xml"),ee.defineMIME("application/xml","xml"),ee.mimeModes.hasOwnProperty("text/html")||ee.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1j5w":function(et,de,N){"use strict";N.d(de,"d",function(){return yt}),N.d(de,"b",function(){return Be}),N.d(de,"c",function(){return ut}),N.d(de,"a",function(){return Tt});var ee=N("VTBJ"),K=N("1OyB"),P=N("vuIU"),z=N("JX7q"),B=N("Ji7U"),M=N("LK+K"),j=N("q1tI"),U=N("I8Z2"),_=N("BGR+"),R=N("wx14"),c=N("rePB"),g=N("4IlW"),w=N("2GS6"),y=N("Gytx"),f=N.n(y),m=N("TSYQ"),a=N.n(m),n=N("U8pU"),o=N("ODXe"),u=/iPhone/i,x=/iPod/i,E=/iPad/i,v=/\bAndroid(?:.+)Mobile\b/i,O=/Android/i,A=/\bAndroid(?:.+)SD4930UR\b/i,p=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,h=/Windows Phone/i,s=/\bWindows(?:.+)ARM\b/i,l=/BlackBerry/i,D=/BB10/i,T=/Opera Mini/i,S=/\b(CriOS|Chrome)(?:.+)Mobile/i,I=/Mobile(?:.+)Firefox\b/i;function C(gt,qe){return gt.test(qe)}function W(gt){var qe=gt||(typeof navigator!="undefined"?navigator.userAgent:""),Xe=qe.split("[FBAN");if(typeof Xe[1]!="undefined"){var Pe=Xe,se=Object(o.a)(Pe,1);qe=se[0]}if(Xe=qe.split("Twitter"),typeof Xe[1]!="undefined"){var fe=Xe,$e=Object(o.a)(fe,1);qe=$e[0]}var ke={apple:{phone:C(u,qe)&&!C(h,qe),ipod:C(x,qe),tablet:!C(u,qe)&&C(E,qe)&&!C(h,qe),device:(C(u,qe)||C(x,qe)||C(E,qe))&&!C(h,qe)},amazon:{phone:C(A,qe),tablet:!C(A,qe)&&C(p,qe),device:C(A,qe)||C(p,qe)},android:{phone:!C(h,qe)&&C(A,qe)||!C(h,qe)&&C(v,qe),tablet:!C(h,qe)&&!C(A,qe)&&!C(v,qe)&&(C(p,qe)||C(O,qe)),device:!C(h,qe)&&(C(A,qe)||C(p,qe)||C(v,qe)||C(O,qe))||C(/\bokhttp\b/i,qe)},windows:{phone:C(h,qe),tablet:C(s,qe),device:C(h,qe)||C(s,qe)},other:{blackberry:C(l,qe),blackberry10:C(D,qe),opera:C(T,qe),firefox:C(I,qe),chrome:C(S,qe),device:C(l,qe)||C(D,qe)||C(T,qe)||C(I,qe)||C(S,qe)},any:null,phone:null,tablet:null};return ke.any=ke.apple.device||ke.android.device||ke.windows.device||ke.other.device,ke.phone=ke.apple.phone||ke.android.phone||ke.windows.phone,ke.tablet=ke.apple.tablet||ke.android.tablet||ke.windows.tablet,ke}var Y=Object(ee.a)(Object(ee.a)({},W()),{},{isMobile:W}),H=Y;function F(){}function q(gt,qe,Xe){var Pe=qe||"";return gt.key||"".concat(Pe,"item_").concat(Xe)}function le(gt){return"".concat(gt,"-menu-")}function pe(gt,qe){var Xe=-1;j.Children.forEach(gt,function(Pe){Xe+=1,Pe&&Pe.type&&Pe.type.isMenuItemGroup?j.Children.forEach(Pe.props.children,function(se){Xe+=1,qe(se,Xe)}):qe(Pe,Xe)})}function Ae(gt,qe,Xe){if(!gt||Xe.find)return;j.Children.forEach(gt,function(Pe){if(Pe){var se=Pe.type;if(!se||!(se.isSubMenu||se.isMenuItem||se.isMenuItemGroup))return;qe.indexOf(Pe.key)!==-1?Xe.find=!0:Pe.props.children&&Ae(Pe.props.children,qe,Xe)}})}var Ge=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],Fe=function(qe){var Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Pe=qe&&typeof qe.getBoundingClientRect=="function"&&qe.getBoundingClientRect().width;if(Pe){if(Xe){var se=getComputedStyle(qe),fe=se.marginLeft,$e=se.marginRight;Pe+=+fe.replace("px","")+ +$e.replace("px","")}Pe=+Pe.toFixed(6)}return Pe||0},Ue=function(qe,Xe,Pe){qe&&Object(n.a)(qe.style)==="object"&&(qe.style[Xe]=Pe)},_e=function(){return H.any},je=N("KQm4"),xe=N("Ff2n"),he=N("i8i4"),te=N("bdgK"),ye=N("uciX"),ue=N("8XRh"),Le={adjustX:1,adjustY:1},ae={topLeft:{points:["bl","tl"],overflow:Le,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Le,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Le,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Le,offset:[4,0]}},oe={topLeft:{points:["bl","tl"],overflow:Le,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Le,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Le,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Le,offset:[4,0]}},Se=ae,Me=0,We={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Ke=function(qe,Xe,Pe){var se=le(Xe),fe=qe.getState();qe.setState({defaultActiveFirst:Object(ee.a)(Object(ee.a)({},fe.defaultActiveFirst),{},Object(c.a)({},se,Pe))})},Qe=function(gt){Object(B.a)(Xe,gt);var qe=Object(M.a)(Xe);function Xe(Pe){var se;Object(K.a)(this,Xe),se=qe.call(this,Pe),se.onDestroy=function(Ne){se.props.onDestroy(Ne)},se.onKeyDown=function(Ne){var Ve=Ne.keyCode,tt=se.menuInstance,ft=se.props,Ct=ft.isOpen,zt=ft.store;if(Ve===g.a.ENTER)return se.onTitleClick(Ne),Ke(zt,se.props.eventKey,!0),!0;if(Ve===g.a.RIGHT)return Ct?tt.onKeyDown(Ne):(se.triggerOpenChange(!0),Ke(zt,se.props.eventKey,!0)),!0;if(Ve===g.a.LEFT){var qt;if(Ct)qt=tt.onKeyDown(Ne);else return;return qt||(se.triggerOpenChange(!1),qt=!0),qt}return Ct&&(Ve===g.a.UP||Ve===g.a.DOWN)?tt.onKeyDown(Ne):void 0},se.onOpenChange=function(Ne){se.props.onOpenChange(Ne)},se.onPopupVisibleChange=function(Ne){se.triggerOpenChange(Ne,Ne?"mouseenter":"mouseleave")},se.onMouseEnter=function(Ne){var Ve=se.props,tt=Ve.eventKey,ft=Ve.onMouseEnter,Ct=Ve.store;Ke(Ct,se.props.eventKey,!1),ft({key:tt,domEvent:Ne})},se.onMouseLeave=function(Ne){var Ve=se.props,tt=Ve.parentMenu,ft=Ve.eventKey,Ct=Ve.onMouseLeave;tt.subMenuInstance=Object(z.a)(se),Ct({key:ft,domEvent:Ne})},se.onTitleMouseEnter=function(Ne){var Ve=se.props,tt=Ve.eventKey,ft=Ve.onItemHover,Ct=Ve.onTitleMouseEnter;ft({key:tt,hover:!0}),Ct({key:tt,domEvent:Ne})},se.onTitleMouseLeave=function(Ne){var Ve=se.props,tt=Ve.parentMenu,ft=Ve.eventKey,Ct=Ve.onItemHover,zt=Ve.onTitleMouseLeave;tt.subMenuInstance=Object(z.a)(se),Ct({key:ft,hover:!1}),zt({key:ft,domEvent:Ne})},se.onTitleClick=function(Ne){var Ve=Object(z.a)(se),tt=Ve.props;if(tt.onTitleClick({key:tt.eventKey,domEvent:Ne}),tt.triggerSubMenuAction==="hover")return;se.triggerOpenChange(!tt.isOpen,"click"),Ke(tt.store,se.props.eventKey,!1)},se.onSubMenuClick=function(Ne){typeof se.props.onClick=="function"&&se.props.onClick(se.addKeyPath(Ne))},se.onSelect=function(Ne){se.props.onSelect(Ne)},se.onDeselect=function(Ne){se.props.onDeselect(Ne)},se.getPrefixCls=function(){return"".concat(se.props.rootPrefixCls,"-submenu")},se.getActiveClassName=function(){return"".concat(se.getPrefixCls(),"-active")},se.getDisabledClassName=function(){return"".concat(se.getPrefixCls(),"-disabled")},se.getSelectedClassName=function(){return"".concat(se.getPrefixCls(),"-selected")},se.getOpenClassName=function(){return"".concat(se.props.rootPrefixCls,"-submenu-open")},se.saveMenuInstance=function(Ne){se.menuInstance=Ne},se.addKeyPath=function(Ne){return Object(ee.a)(Object(ee.a)({},Ne),{},{keyPath:(Ne.keyPath||[]).concat(se.props.eventKey)})},se.triggerOpenChange=function(Ne,Ve){var tt=se.props.eventKey,ft=function(){se.onOpenChange({key:tt,item:Object(z.a)(se),trigger:Ve,open:Ne})};Ve==="mouseenter"?se.mouseenterTimeout=setTimeout(function(){ft()},0):ft()},se.isChildrenSelected=function(){var Ne={find:!1};return Ae(se.props.children,se.props.selectedKeys,Ne),Ne.find},se.isOpen=function(){return se.props.openKeys.indexOf(se.props.eventKey)!==-1},se.adjustWidth=function(){if(!se.subMenuTitle||!se.menuInstance)return;var Ne=he.findDOMNode(se.menuInstance);if(Ne.offsetWidth>=se.subMenuTitle.offsetWidth)return;Ne.style.minWidth="".concat(se.subMenuTitle.offsetWidth,"px")},se.saveSubMenuTitle=function(Ne){se.subMenuTitle=Ne},se.getBaseProps=function(){var Ne=Object(z.a)(se),Ve=Ne.props;return{mode:Ve.mode==="horizontal"?"vertical":Ve.mode,visible:se.props.isOpen,level:Ve.level+1,inlineIndent:Ve.inlineIndent,focusable:!1,onClick:se.onSubMenuClick,onSelect:se.onSelect,onDeselect:se.onDeselect,onDestroy:se.onDestroy,selectedKeys:Ve.selectedKeys,eventKey:"".concat(Ve.eventKey,"-menu-"),openKeys:Ve.openKeys,motion:Ve.motion,onOpenChange:se.onOpenChange,subMenuOpenDelay:Ve.subMenuOpenDelay,parentMenu:Object(z.a)(se),subMenuCloseDelay:Ve.subMenuCloseDelay,forceSubMenuRender:Ve.forceSubMenuRender,triggerSubMenuAction:Ve.triggerSubMenuAction,builtinPlacements:Ve.builtinPlacements,defaultActiveFirst:Ve.store.getState().defaultActiveFirst[le(Ve.eventKey)],multiple:Ve.multiple,prefixCls:Ve.rootPrefixCls,id:se.internalMenuId,manualRef:se.saveMenuInstance,itemIcon:Ve.itemIcon,expandIcon:Ve.expandIcon,direction:Ve.direction}},se.getMotion=function(Ne,Ve){var tt=Object(z.a)(se),ft=tt.haveRendered,Ct=se.props,zt=Ct.motion,qt=Ct.rootPrefixCls,Qt=Object(ee.a)(Object(ee.a)({},zt),{},{leavedClassName:"".concat(qt,"-hidden"),removeOnLeave:!1,motionAppear:ft||!Ve||Ne!=="inline"});return Qt};var fe=Pe.store,$e=Pe.eventKey,ke=fe.getState(),it=ke.defaultActiveFirst;se.isRootMenu=!1;var at=!1;return it&&(at=it[$e]),Ke(fe,$e,at),se}return Object(P.a)(Xe,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var se=this,fe=this.props,$e=fe.mode,ke=fe.parentMenu,it=fe.manualRef;if(it&&it(this),$e!=="horizontal"||!ke.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return se.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var se=this.props,fe=se.onDestroy,$e=se.eventKey;fe&&fe($e),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(se){var fe=this,$e=this.getBaseProps(),ke=this.getMotion($e.mode,$e.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||$e.visible||$e.forceSubMenuRender,!this.haveOpened)return j.createElement("div",null);var it=$e.direction;return j.createElement(ue.default,Object.assign({visible:$e.visible},ke),function(at){var Ne=at.className,Ve=at.style,tt=a()("".concat($e.prefixCls,"-sub"),Ne,Object(c.a)({},"".concat($e.prefixCls,"-rtl"),it==="rtl"));return j.createElement(Te,Object.assign({},$e,{id:fe.internalMenuId,className:tt,style:Ve}),se)})}},{key:"render",value:function(){var se,fe=Object(ee.a)({},this.props),$e=fe.isOpen,ke=this.getPrefixCls(),it=fe.mode==="inline",at=a()(ke,"".concat(ke,"-").concat(fe.mode),(se={},Object(c.a)(se,fe.className,!!fe.className),Object(c.a)(se,this.getOpenClassName(),$e),Object(c.a)(se,this.getActiveClassName(),fe.active||$e&&!it),Object(c.a)(se,this.getDisabledClassName(),fe.disabled),Object(c.a)(se,this.getSelectedClassName(),this.isChildrenSelected()),se));this.internalMenuId||(fe.eventKey?this.internalMenuId="".concat(fe.eventKey,"$Menu"):(Me+=1,this.internalMenuId="$__$".concat(Me,"$Menu")));var Ne={},Ve={},tt={};fe.disabled||(Ne={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Ve={onClick:this.onTitleClick},tt={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var ft={},Ct=fe.direction;it&&(Ct==="rtl"?ft.paddingRight=fe.inlineIndent*fe.level:ft.paddingLeft=fe.inlineIndent*fe.level);var zt={};this.props.isOpen&&(zt={"aria-owns":this.internalMenuId});var qt=null;fe.mode!=="horizontal"&&(qt=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(qt=j.createElement(this.props.expandIcon,Object(ee.a)({},this.props))));var Qt=j.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:ft,className:"".concat(ke,"-title"),role:"button"},tt,Ve,{"aria-expanded":$e},zt,{"aria-haspopup":"true",title:typeof fe.title=="string"?fe.title:void 0}),fe.title,qt||j.createElement("i",{className:"".concat(ke,"-arrow")})),St=this.renderChildren(fe.children),ln=fe.parentMenu.isRootMenu?fe.parentMenu.props.getPopupContainer:function(un){return un.parentNode},Bt=We[fe.mode],Yt=fe.popupOffset?{offset:fe.popupOffset}:{},Mt=fe.mode==="inline"?"":fe.popupClassName;Mt+=Ct==="rtl"?" ".concat(ke,"-rtl"):"";var tn=fe.disabled,mn=fe.triggerSubMenuAction,An=fe.subMenuOpenDelay,lt=fe.forceSubMenuRender,Rt=fe.subMenuCloseDelay,Jt=fe.builtinPlacements;Ge.forEach(function(un){return delete fe[un]}),delete fe.onClick;var nn=Ct==="rtl"?Object.assign({},oe,Jt):Object.assign({},ae,Jt);return delete fe.direction,j.createElement("li",Object.assign({},fe,Ne,{className:at,role:"menuitem"}),it&&Qt,it&&St,!it&&j.createElement(ye.a,{prefixCls:ke,popupClassName:a()("".concat(ke,"-popup"),Mt),getPopupContainer:ln,builtinPlacements:nn,popupPlacement:Bt,popupVisible:$e,popupAlign:Yt,popup:St,action:tn?[]:[mn],mouseEnterDelay:An,mouseLeaveDelay:Rt,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:lt},Qt))}}]),Xe}(j.Component);Qe.defaultProps={onMouseEnter:F,onMouseLeave:F,onTitleMouseEnter:F,onTitleMouseLeave:F,onTitleClick:F,manualRef:F,mode:"vertical",title:""};var Ze=Object(U.b)(function(gt,qe){var Xe=gt.openKeys,Pe=gt.activeKey,se=gt.selectedKeys,fe=qe.eventKey,$e=qe.subMenuKey;return{isOpen:Xe.indexOf(fe)>-1,active:Pe[$e]===fe,selectedKeys:se}})(Qe);Ze.isSubMenu=!0;var yt=Ze,vt="menuitem-overflowed",dt=.5,pt=function(gt){Object(B.a)(Xe,gt);var qe=Object(M.a)(Xe);function Xe(){var Pe;return Object(K.a)(this,Xe),Pe=qe.apply(this,arguments),Pe.resizeObserver=null,Pe.mutationObserver=null,Pe.originalTotalWidth=0,Pe.overflowedItems=[],Pe.menuItemSizes=[],Pe.cancelFrameId=null,Pe.state={lastVisibleIndex:void 0},Pe.getMenuItemNodes=function(){var se=Pe.props.prefixCls,fe=he.findDOMNode(Object(z.a)(Pe));return fe?[].slice.call(fe.children).filter(function($e){return $e.className.split(" ").indexOf("".concat(se,"-overflowed-submenu"))<0}):[]},Pe.getOverflowedSubMenuItem=function(se,fe,$e){var ke=Pe.props,it=ke.overflowedIndicator,at=ke.level,Ne=ke.mode,Ve=ke.prefixCls,tt=ke.theme;if(at!==1||Ne!=="horizontal")return null;var ft=Pe.props.children[0],Ct=ft.props,zt=Ct.children,qt=Ct.title,Qt=Ct.style,St=Object(xe.a)(Ct,["children","title","style"]),ln=Object(ee.a)({},Qt),Bt="".concat(se,"-overflowed-indicator"),Yt="".concat(se,"-overflowed-indicator");fe.length===0&&$e!==!0?ln=Object(ee.a)(Object(ee.a)({},ln),{},{display:"none"}):$e&&(ln=Object(ee.a)(Object(ee.a)({},ln),{},{visibility:"hidden",position:"absolute"}),Bt="".concat(Bt,"-placeholder"),Yt="".concat(Yt,"-placeholder"));var Mt=tt?"".concat(Ve,"-").concat(tt):"",tn={};return Ge.forEach(function(mn){St[mn]!==void 0&&(tn[mn]=St[mn])}),j.createElement(yt,Object.assign({title:it,className:"".concat(Ve,"-overflowed-submenu"),popupClassName:Mt},tn,{key:Bt,eventKey:Yt,disabled:!1,style:ln}),fe)},Pe.setChildrenWidthAndResize=function(){if(Pe.props.mode!=="horizontal")return;var se=he.findDOMNode(Object(z.a)(Pe));if(!se)return;var fe=se.children;if(!fe||fe.length===0)return;var $e=se.children[fe.length-1];Ue($e,"display","inline-block");var ke=Pe.getMenuItemNodes(),it=ke.filter(function(at){return at.className.split(" ").indexOf(vt)>=0});it.forEach(function(at){Ue(at,"display","inline-block")}),Pe.menuItemSizes=ke.map(function(at){return Fe(at,!0)}),it.forEach(function(at){Ue(at,"display","none")}),Pe.overflowedIndicatorWidth=Fe(se.children[se.children.length-1],!0),Pe.originalTotalWidth=Pe.menuItemSizes.reduce(function(at,Ne){return at+Ne},0),Pe.handleResize(),Ue($e,"display","none")},Pe.handleResize=function(){if(Pe.props.mode!=="horizontal")return;var se=he.findDOMNode(Object(z.a)(Pe));if(!se)return;var fe=Fe(se);Pe.overflowedItems=[];var $e=0,ke;Pe.originalTotalWidth>fe+dt&&(ke=-1,Pe.menuItemSizes.forEach(function(it){$e+=it,$e+Pe.overflowedIndicatorWidth<=fe&&(ke+=1)})),Pe.setState({lastVisibleIndex:ke})},Pe}return Object(P.a)(Xe,[{key:"componentDidMount",value:function(){var se=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var fe=he.findDOMNode(this);if(!fe)return;this.resizeObserver=new te.default(function($e){$e.forEach(function(){var ke=se.cancelFrameId;cancelAnimationFrame(ke),se.cancelFrameId=requestAnimationFrame(se.setChildrenWidthAndResize)})}),[].slice.call(fe.children).concat(fe).forEach(function($e){se.resizeObserver.observe($e)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){se.resizeObserver.disconnect(),[].slice.call(fe.children).concat(fe).forEach(function($e){se.resizeObserver.observe($e)}),se.setChildrenWidthAndResize()}),this.mutationObserver.observe(fe,{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(se){var fe=this,$e=this.state.lastVisibleIndex;return(se||[]).reduce(function(ke,it,at){var Ne=it;if(fe.props.mode==="horizontal"){var Ve=fe.getOverflowedSubMenuItem(it.props.eventKey,[]);$e!==void 0&&fe.props.className.indexOf("".concat(fe.props.prefixCls,"-root"))!==-1&&(at>$e&&(Ne=j.cloneElement(it,{style:{display:"none"},eventKey:"".concat(it.props.eventKey,"-hidden"),className:"".concat(vt)})),at===$e+1&&(fe.overflowedItems=se.slice($e+1).map(function(ft){return j.cloneElement(ft,{key:ft.props.eventKey,mode:"vertical-left"})}),Ve=fe.getOverflowedSubMenuItem(it.props.eventKey,fe.overflowedItems)));var tt=[].concat(Object(je.a)(ke),[Ve,Ne]);return at===se.length-1&&tt.push(fe.getOverflowedSubMenuItem(it.props.eventKey,[],!0)),tt}return[].concat(Object(je.a)(ke),[Ne])},[])}},{key:"render",value:function(){var se=this.props,fe=se.visible,$e=se.prefixCls,ke=se.overflowedIndicator,it=se.mode,at=se.level,Ne=se.tag,Ve=se.children,tt=se.theme,ft=Object(xe.a)(se,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Ct=Ne;return j.createElement(Ct,Object.assign({},ft),this.renderChildren(Ve))}}]),Xe}(j.Component);pt.defaultProps={tag:"div",className:""};var At=pt;function wt(gt){return gt.length?gt.every(function(qe){return!!qe.props.disabled}):!0}function Oe(gt,qe,Xe){var Pe=gt.getState();gt.setState({activeKey:Object(ee.a)(Object(ee.a)({},Pe.activeKey),{},Object(c.a)({},qe,Xe))})}function we(gt){return gt.eventKey||"0-menu-"}function Je(gt,qe){var Xe=qe,Pe=gt.children,se=gt.eventKey;if(Xe){var fe;if(pe(Pe,function($e,ke){$e&&$e.props&&!$e.props.disabled&&Xe===q($e,se,ke)&&(fe=!0)}),fe)return Xe}return Xe=null,gt.defaultActiveFirst&&pe(Pe,function($e,ke){!Xe&&$e&&!$e.props.disabled&&(Xe=q($e,se,ke))}),Xe}function st(gt){if(gt){var qe=this.instanceArray.indexOf(gt);qe!==-1?this.instanceArray[qe]=gt:this.instanceArray.push(gt)}}var He=function(gt){Object(B.a)(Xe,gt);var qe=Object(M.a)(Xe);function Xe(Pe){var se;return Object(K.a)(this,Xe),se=qe.call(this,Pe),se.onKeyDown=function(fe,$e){var ke=fe.keyCode,it;if(se.getFlatInstanceArray().forEach(function(Ne){Ne&&Ne.props.active&&Ne.onKeyDown&&(it=Ne.onKeyDown(fe))}),it)return 1;var at=null;return(ke===g.a.UP||ke===g.a.DOWN)&&(at=se.step(ke===g.a.UP?-1:1)),at?(fe.preventDefault(),Oe(se.props.store,we(se.props),at.props.eventKey),typeof $e=="function"&&$e(at),1):void 0},se.onItemHover=function(fe){var $e=fe.key,ke=fe.hover;Oe(se.props.store,we(se.props),ke?$e:null)},se.onDeselect=function(fe){se.props.onDeselect(fe)},se.onSelect=function(fe){se.props.onSelect(fe)},se.onClick=function(fe){se.props.onClick(fe)},se.onOpenChange=function(fe){se.props.onOpenChange(fe)},se.onDestroy=function(fe){se.props.onDestroy(fe)},se.getFlatInstanceArray=function(){return se.instanceArray},se.step=function(fe){var $e=se.getFlatInstanceArray(),ke=se.props.store.getState().activeKey[we(se.props)],it=$e.length;if(!it)return null;fe<0&&($e=$e.concat().reverse());var at=-1;if($e.every(function(ft,Ct){return ft&&ft.props.eventKey===ke?(at=Ct,!1):!0}),!se.props.defaultActiveFirst&&at!==-1&&wt($e.slice(at,it-1)))return;var Ne=(at+1)%it,Ve=Ne;do{var tt=$e[Ve];if(!tt||tt.props.disabled)Ve=(Ve+1)%it;else return tt}while(Ve!==Ne);return null},se.renderCommonMenuItem=function(fe,$e,ke){var it=se.props.store.getState(),at=Object(z.a)(se),Ne=at.props,Ve=q(fe,Ne.eventKey,$e),tt=fe.props;if(!tt||typeof fe.type=="string")return fe;var ft=Ve===it.activeKey,Ct=Object(ee.a)(Object(ee.a)({mode:tt.mode||Ne.mode,level:Ne.level,inlineIndent:Ne.inlineIndent,renderMenuItem:se.renderMenuItem,rootPrefixCls:Ne.prefixCls,index:$e,parentMenu:Ne.parentMenu,manualRef:tt.disabled?void 0:Object(w.a)(fe.ref,st.bind(Object(z.a)(se))),eventKey:Ve,active:!tt.disabled&&ft,multiple:Ne.multiple,onClick:function(qt){(tt.onClick||F)(qt),se.onClick(qt)},onItemHover:se.onItemHover,motion:Ne.motion,subMenuOpenDelay:Ne.subMenuOpenDelay,subMenuCloseDelay:Ne.subMenuCloseDelay,forceSubMenuRender:Ne.forceSubMenuRender,onOpenChange:se.onOpenChange,onDeselect:se.onDeselect,onSelect:se.onSelect,builtinPlacements:Ne.builtinPlacements,itemIcon:tt.itemIcon||se.props.itemIcon,expandIcon:tt.expandIcon||se.props.expandIcon},ke),{},{direction:Ne.direction});return(Ne.mode==="inline"||_e())&&(Ct.triggerSubMenuAction="click"),j.cloneElement(fe,Ct)},se.renderMenuItem=function(fe,$e,ke){if(!fe)return null;var it=se.props.store.getState(),at={openKeys:it.openKeys,selectedKeys:it.selectedKeys,triggerSubMenuAction:se.props.triggerSubMenuAction,subMenuKey:ke};return se.renderCommonMenuItem(fe,$e,at)},Pe.store.setState({activeKey:Object(ee.a)(Object(ee.a)({},Pe.store.getState().activeKey),{},Object(c.a)({},Pe.eventKey,Je(Pe,Pe.activeKey)))}),se.instanceArray=[],se}return Object(P.a)(Xe,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(se){return this.props.visible||se.visible||this.props.className!==se.className||!f()(this.props.style,se.style)}},{key:"componentDidUpdate",value:function(se){var fe=this.props,$e="activeKey"in fe?fe.activeKey:fe.store.getState().activeKey[we(fe)],ke=Je(fe,$e);if(ke!==$e)Oe(fe.store,we(fe),ke);else if("activeKey"in se){var it=Je(se,se.activeKey);ke!==it&&Oe(fe.store,we(fe),ke)}}},{key:"render",value:function(){var se=this,fe=Object(R.a)({},this.props);this.instanceArray=[];var $e=a()(fe.prefixCls,fe.className,"".concat(fe.prefixCls,"-").concat(fe.mode)),ke={className:$e,role:fe.role||"menu"};fe.id&&(ke.id=fe.id),fe.focusable&&(ke.tabIndex=0,ke.onKeyDown=this.onKeyDown);var it=fe.prefixCls,at=fe.eventKey,Ne=fe.visible,Ve=fe.level,tt=fe.mode,ft=fe.overflowedIndicator,Ct=fe.theme;return Ge.forEach(function(zt){return delete fe[zt]}),delete fe.onClick,j.createElement(At,Object.assign({},fe,{prefixCls:it,mode:tt,tag:"ul",level:Ve,theme:Ct,visible:Ne,overflowedIndicator:ft},ke),j.Children.map(fe.children,function(zt,qt){return se.renderMenuItem(zt,qt,at||"0-menu-")}))}}]),Xe}(j.Component);He.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:F};var nt=Object(U.b)()(He),Te=nt,ge=N("Kwbf");function be(gt,qe,Xe){var Pe=gt.prefixCls,se=gt.motion,fe=gt.defaultMotions,$e=fe===void 0?{}:fe,ke=gt.openAnimation,it=gt.openTransitionName,at=qe.switchingModeFromInline;if(se)return se;if(Object(n.a)(ke)==="object"&&ke)Object(ge.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof ke=="string")return{motionName:"".concat(Pe,"-open-").concat(ke)};if(it)return{motionName:it};var Ne=$e[Xe];return Ne||(at?null:$e.other)}var re=function(gt){Object(B.a)(Xe,gt);var qe=Object(M.a)(Xe);function Xe(Pe){var se;Object(K.a)(this,Xe),se=qe.call(this,Pe),se.inlineOpenKeys=[],se.onSelect=function(ke){var it=Object(z.a)(se),at=it.props;if(at.selectable){var Ne=se.store.getState(),Ve=Ne.selectedKeys,tt=ke.key;at.multiple?Ve=Ve.concat([tt]):Ve=[tt],"selectedKeys"in at||se.store.setState({selectedKeys:Ve}),at.onSelect(Object(ee.a)(Object(ee.a)({},ke),{},{selectedKeys:Ve}))}},se.onClick=function(ke){var it=se.getRealMenuMode(),at=Object(z.a)(se),Ne=at.store,Ve=at.props.onOpenChange;it!=="inline"&&!("openKeys"in se.props)&&(Ne.setState({openKeys:[]}),Ve([])),se.props.onClick(ke)},se.onKeyDown=function(ke,it){se.innerMenu.getWrappedInstance().onKeyDown(ke,it)},se.onOpenChange=function(ke){var it=Object(z.a)(se),at=it.props,Ne=se.store.getState().openKeys.concat(),Ve=!1,tt=function(Ct){var zt=!1;if(Ct.open)zt=Ne.indexOf(Ct.key)===-1,zt&&Ne.push(Ct.key);else{var qt=Ne.indexOf(Ct.key);zt=qt!==-1,zt&&Ne.splice(qt,1)}Ve=Ve||zt};Array.isArray(ke)?ke.forEach(tt):tt(ke),Ve&&("openKeys"in se.props||se.store.setState({openKeys:Ne}),at.onOpenChange(Ne))},se.onDeselect=function(ke){var it=Object(z.a)(se),at=it.props;if(at.selectable){var Ne=se.store.getState().selectedKeys.concat(),Ve=ke.key,tt=Ne.indexOf(Ve);tt!==-1&&Ne.splice(tt,1),"selectedKeys"in at||se.store.setState({selectedKeys:Ne}),at.onDeselect(Object(ee.a)(Object(ee.a)({},ke),{},{selectedKeys:Ne}))}},se.onMouseEnter=function(ke){se.restoreModeVerticalFromInline();var it=se.props.onMouseEnter;it&&it(ke)},se.onTransitionEnd=function(ke){var it=ke.propertyName==="width"&&ke.target===ke.currentTarget,at=ke.target.className,Ne=Object.prototype.toString.call(at)==="[object SVGAnimatedString]"?at.animVal:at,Ve=ke.propertyName==="font-size"&&Ne.indexOf("anticon")>=0;(it||Ve)&&se.restoreModeVerticalFromInline()},se.setInnerMenu=function(ke){se.innerMenu=ke},se.isRootMenu=!0;var fe=Pe.defaultSelectedKeys,$e=Pe.defaultOpenKeys;return"selectedKeys"in Pe&&(fe=Pe.selectedKeys||[]),"openKeys"in Pe&&($e=Pe.openKeys||[]),se.store=Object(U.c)({selectedKeys:fe,openKeys:$e,activeKey:{"0-menu-":Je(Pe,Pe.activeKey)}}),se.state={switchingModeFromInline:!1},se}return Object(P.a)(Xe,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(se){this.updateOpentKeysWhenSwitchMode(se),this.updateMiniStore();var fe=this.props,$e=fe.siderCollapsed,ke=fe.inlineCollapsed,it=fe.onOpenChange;(!se.inlineCollapsed&&ke||!se.siderCollapsed&&$e)&&it([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(se){var fe=this.props,$e=this.store,ke=this.inlineOpenKeys,it=$e.getState(),at={};se.mode==="inline"&&fe.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in fe||((fe.inlineCollapsed&&!se.inlineCollapsed||fe.siderCollapsed&&!se.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=it.openKeys.concat(),at.openKeys=[]),(!fe.inlineCollapsed&&se.inlineCollapsed||!fe.siderCollapsed&&se.siderCollapsed)&&(at.openKeys=ke,this.inlineOpenKeys=[])),Object.keys(at).length&&$e.setState(at)}},{key:"updateMenuDisplay",value:function(){var se=this.props.collapsedWidth,fe=this.store,$e=this.prevOpenKeys,ke=this.getInlineCollapsed()&&(se===0||se==="0"||se==="0px");ke?(this.prevOpenKeys=fe.getState().openKeys.concat(),this.store.setState({openKeys:[]})):$e&&(this.store.setState({openKeys:$e}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var se=this.props.mode,fe=this.state.switchingModeFromInline,$e=this.getInlineCollapsed();return fe&&$e?"inline":$e?"vertical":se}},{key:"getInlineCollapsed",value:function(){var se=this.props,fe=se.inlineCollapsed,$e=se.siderCollapsed;return $e!==void 0?$e:fe}},{key:"restoreModeVerticalFromInline",value:function(){var se=this.state.switchingModeFromInline;se&&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 se=Object(ee.a)({},Object(_.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),fe=this.getRealMenuMode();return se.className+=" ".concat(se.prefixCls,"-root"),se.direction==="rtl"&&(se.className+=" ".concat(se.prefixCls,"-rtl")),se=Object(ee.a)(Object(ee.a)({},se),{},{mode:fe,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:be(this.props,this.state,fe)}),delete se.openAnimation,delete se.openTransitionName,j.createElement(U.a,{store:this.store},j.createElement(Te,Object.assign({},se,{ref:this.setInnerMenu}),this.props.children))}}]),Xe}(j.Component);re.defaultProps={selectable:!0,onClick:F,onSelect:F,onOpenChange:F,onDeselect:F,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:j.createElement("span",null,"\xB7\xB7\xB7")};var ie=re,ce=function(gt){Object(B.a)(Xe,gt);var qe=Object(M.a)(Xe);function Xe(){var Pe;return Object(K.a)(this,Xe),Pe=qe.apply(this,arguments),Pe.onKeyDown=function(se){var fe=se.keyCode;return fe===g.a.ENTER?(Pe.onClick(se),!0):void 0},Pe.onMouseLeave=function(se){var fe=Pe.props,$e=fe.eventKey,ke=fe.onItemHover,it=fe.onMouseLeave;ke({key:$e,hover:!1}),it({key:$e,domEvent:se})},Pe.onMouseEnter=function(se){var fe=Pe.props,$e=fe.eventKey,ke=fe.onItemHover,it=fe.onMouseEnter;ke({key:$e,hover:!0}),it({key:$e,domEvent:se})},Pe.onClick=function(se){var fe=Pe.props,$e=fe.eventKey,ke=fe.multiple,it=fe.onClick,at=fe.onSelect,Ne=fe.onDeselect,Ve=fe.isSelected,tt={key:$e,keyPath:[$e],item:Object(z.a)(Pe),domEvent:se};it(tt),ke?Ve?Ne(tt):at(tt):Ve||at(tt)},Pe.saveNode=function(se){Pe.node=se},Pe}return Object(P.a)(Xe,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var se=this.props;se.onDestroy&&se.onDestroy(se.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 se,fe=Object(ee.a)({},this.props),$e=a()(this.getPrefixCls(),fe.className,(se={},Object(c.a)(se,this.getActiveClassName(),!fe.disabled&&fe.active),Object(c.a)(se,this.getSelectedClassName(),fe.isSelected),Object(c.a)(se,this.getDisabledClassName(),fe.disabled),se)),ke=Object(ee.a)(Object(ee.a)({},fe.attribute),{},{title:typeof fe.title=="string"?fe.title:void 0,className:$e,role:fe.role||"menuitem","aria-disabled":fe.disabled});fe.role==="option"?ke=Object(ee.a)(Object(ee.a)({},ke),{},{role:"option","aria-selected":fe.isSelected}):(fe.role===null||fe.role==="none")&&(ke.role="none");var it={onClick:fe.disabled?null:this.onClick,onMouseLeave:fe.disabled?null:this.onMouseLeave,onMouseEnter:fe.disabled?null:this.onMouseEnter},at=Object(ee.a)({},fe.style);fe.mode==="inline"&&(fe.direction==="rtl"?at.paddingRight=fe.inlineIndent*fe.level:at.paddingLeft=fe.inlineIndent*fe.level),Ge.forEach(function(Ve){return delete fe[Ve]}),delete fe.direction;var Ne=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(Ne=j.createElement(this.props.itemIcon,this.props)),j.createElement("li",Object.assign({},Object(_.default)(fe,["onClick","onMouseEnter","onMouseLeave","onSelect"]),ke,it,{style:at,ref:this.saveNode}),fe.children,Ne)}}]),Xe}(j.Component);ce.isMenuItem=!0,ce.defaultProps={onSelect:F,onMouseEnter:F,onMouseLeave:F,manualRef:F};var Ee=Object(U.b)(function(gt,qe){var Xe=gt.activeKey,Pe=gt.selectedKeys,se=qe.eventKey,fe=qe.subMenuKey;return{active:Xe[fe]===se,isSelected:Pe.indexOf(se)!==-1}})(ce),Be=Ee,Ie=function(gt){Object(B.a)(Xe,gt);var qe=Object(M.a)(Xe);function Xe(){var Pe;return Object(K.a)(this,Xe),Pe=qe.apply(this,arguments),Pe.renderInnerMenuItem=function(se){var fe=Pe.props,$e=fe.renderMenuItem,ke=fe.index;return $e(se,ke,Pe.props.subMenuKey)},Pe}return Object(P.a)(Xe,[{key:"render",value:function(){var se=Object(R.a)({},this.props),fe=se.className,$e=fe===void 0?"":fe,ke=se.rootPrefixCls,it="".concat(ke,"-item-group-title"),at="".concat(ke,"-item-group-list"),Ne=se.title,Ve=se.children;return Ge.forEach(function(tt){return delete se[tt]}),delete se.onClick,delete se.direction,j.createElement("li",Object.assign({},se,{className:"".concat($e," ").concat(ke,"-item-group")}),j.createElement("div",{className:it,title:typeof Ne=="string"?Ne:void 0},Ne),j.createElement("ul",{className:at},j.Children.map(Ve,this.renderInnerMenuItem)))}}]),Xe}(j.Component);Ie.isMenuItemGroup=!0,Ie.defaultProps={disabled:!0};var ut=Ie,bt=function(qe){var Xe=qe.className,Pe=qe.rootPrefixCls,se=qe.style;return j.createElement("li",{className:"".concat(Xe," ").concat(Pe,"-item-divider"),style:se})};bt.defaultProps={disabled:!0,className:"",style:{}};var Tt=bt,xt=de.e=ie},"24hK":function(et,de,N){"use strict";N.d(de,"a",function(){return P});var ee=N("JYp7"),K=function(){function z(B){this.element=B,this.next=z.Undefined,this.prev=z.Undefined}return z.Undefined=new z(void 0),z}(),P=function(){function z(){this._first=K.Undefined,this._last=K.Undefined,this._size=0}return Object.defineProperty(z.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),z.prototype.isEmpty=function(){return this._first===K.Undefined},z.prototype.clear=function(){this._first=K.Undefined,this._last=K.Undefined,this._size=0},z.prototype.unshift=function(B){return this._insert(B,!1)},z.prototype.push=function(B){return this._insert(B,!0)},z.prototype._insert=function(B,M){var j=this,U=new K(B);if(this._first===K.Undefined)this._first=U,this._last=U;else if(M){var _=this._last;this._last=U,U.prev=_,_.next=U}else{var R=this._first;this._first=U,U.next=R,R.prev=U}this._size+=1;var c=!1;return function(){c||(c=!0,j._remove(U))}},z.prototype.shift=function(){if(this._first===K.Undefined)return;var B=this._first.element;return this._remove(this._first),B},z.prototype.pop=function(){if(this._last===K.Undefined)return;var B=this._last.element;return this._remove(this._last),B},z.prototype._remove=function(B){if(B.prev!==K.Undefined&&B.next!==K.Undefined){var M=B.prev;M.next=B.next,B.next.prev=M}else B.prev===K.Undefined&&B.next===K.Undefined?(this._first=K.Undefined,this._last=K.Undefined):B.next===K.Undefined?(this._last=this._last.prev,this._last.next=K.Undefined):B.prev===K.Undefined&&(this._first=this._first.next,this._first.prev=K.Undefined);this._size-=1},z.prototype.iterator=function(){var B,M=this._first;return{next:function(){return M===K.Undefined?ee.c:(B?B.value=M.element:B={done:!1,value:M.element},M=M.next,B)}}},z.prototype.toArray=function(){for(var B=[],M=this._first;M!==K.Undefined;M=M.next)B.push(M.element);return B},z}()},"4qgm":function(et,de){et.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAwCAYAAABE1blzAAAIeUlEQVRoQ72aa2wU1xXHf2dm1jYEBClJGgofIFJLU0W04AdQWgJS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SWeEQiL6N7suOd4J7vyqscz0K5sOYuAbaJrqdQjw5tly7nEQzkruzt6AiFgi+jaAEpwEklTWyuBsHFFjSMELImupZFEOh+gcUscye2KkmAIWBM9ldFkeL8h6hYXgVyLQEiia324i3OE+LBlrpXbnXiCIWBKdF/WW0n2nf0f20ow0F1xY4+AIdG1PpT2+ZZXi/2U3BFdBJxHIAvRNfX150/QaOn8cG6PLgI5g0BWoicj3+D2fSM7Zybljuoi4DQCmYiupdKNDEw+GeH00G5/LgKxQ+A80bVUmpLhzcVSMHbDuyO5CMQGAS/Rtf6U55Q3sNnZj2jFRgZ3FBcBSwQ83pTOG7z5EQMy11i2cyu4COQqBDxaMq8BvXPVrN3JugiEiYClC0CY/bnVXQRii0DHWkEJbYKG95ABnmSX6LFdFnc0pxEISXTPWTxaN+Ztn+US3Wng3f5ii4A50U/hydOZeT94P8rkEj22y+KO5jQCRkT3eI6T5GnPHH/ea5foTgPv9hdbBLIS/RD58t7C7C0rAyfiEj22y+KO5jQCmYm+j3yeG5m97ZvgYVyiOw28219sEfATfTd5klozZ2vAR6b8U3GJHttlcUdzGgFF9J8gbyvmb/nFrHuX6E4D7/YXWwTurLWJQnnbMGPLnlADu0SP7bK4ozmNQLe6pZn2wwGrbv8PSygpSs9Cw9cAAAAASUVORK5CYII="},"55Ip":function(et,de,N){"use strict";N.d(de,"a",function(){return o}),N.d(de,"b",function(){return A});var ee=N("Ty5D"),K=N("dI71"),P=N("q1tI"),z=N.n(P),B=N("YS25"),M=N("17x9"),j=N.n(M),U=N("wx14"),_=N("zLVn"),R=N("9R94"),c=function(h){Object(K.a)(s,h);function s(){for(var D,T=arguments.length,S=new Array(T),I=0;I=0||T.relatedTarget.className.indexOf("".concat(W,"-next"))>=0))return;h.setState({goInputText:""}),C(h.getValidValue())},h.go=function(T){var S=h.state.goInputText;if(S==="")return;(T.keyCode===y.ENTER||T.type==="click")&&(h.setState({goInputText:""}),h.props.quickGo(h.getValidValue()))},h}return Object(B.a)(p,[{key:"getValidValue",value:function(){var s=this.state,l=s.goInputText,D=s.current;return!l||isNaN(l)?D:Number(l)}},{key:"getPageSizeOptions",value:function(){var s=this.props,l=s.pageSize,D=s.pageSizeOptions;return D.some(function(T){return T.toString()===l.toString()})?D:D.concat([l.toString()]).sort(function(T,S){var I=isNaN(Number(T))?0:Number(T),C=isNaN(Number(S))?0:Number(S);return I-C})}},{key:"render",value:function(){var s=this,l=this.props,D=l.pageSize,T=l.locale,S=l.rootPrefixCls,I=l.changeSize,C=l.quickGo,W=l.goButton,Y=l.selectComponentClass,H=l.buildOptionText,F=l.selectPrefixCls,q=l.disabled,le=this.state.goInputText,pe="".concat(S,"-options"),Ae=Y,Ge=null,Fe=null,Ue=null;if(!I&&!C)return null;var _e=this.getPageSizeOptions();if(I&&Ae){var je=_e.map(function(xe,he){return _.a.createElement(Ae.Option,{key:he,value:xe.toString()},(H||s.buildOptionText)(xe))});Ge=_.a.createElement(Ae,{disabled:q,prefixCls:F,showSearch:!1,className:"".concat(pe,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(D||_e[0]).toString(),onChange:this.changeSize,getPopupContainer:function(he){return he.parentNode}},je)}return C&&(W&&(Ue=typeof W=="boolean"?_.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:q,className:"".concat(pe,"-quick-jumper-button")},T.jump_to_confirm):_.a.createElement("span",{onClick:this.go,onKeyUp:this.go},W)),Fe=_.a.createElement("div",{className:"".concat(pe,"-quick-jumper")},T.jump_to,_.a.createElement("input",{disabled:q,type:"text",value:le,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),T.page,Ue)),_.a.createElement("li",{className:"".concat(pe)},Ge,Fe)}}]),p}(_.a.Component);f.defaultProps={pageSizeOptions:["10","20","50","100"]};var m=f,a=N("N2Kk");function n(){}function o(O){return typeof O=="number"&&isFinite(O)&&Math.floor(O)===O}function u(O,A,p){return p}function x(O,A,p){var h=typeof O=="undefined"?A.pageSize:O;return Math.floor((p.total-1)/h)+1}var E=function(O){Object(M.a)(p,O);var A=Object(j.a)(p);function p(h){var s;Object(z.a)(this,p),s=A.call(this,h),s.getJumpPrevPage=function(){return Math.max(1,s.state.current-(s.props.showLessItems?3:5))},s.getJumpNextPage=function(){return Math.min(x(void 0,s.state,s.props),s.state.current+(s.props.showLessItems?3:5))},s.getItemIcon=function(I,C){var W=s.props.prefixCls,Y=I||_.a.createElement("button",{type:"button","aria-label":C,className:"".concat(W,"-item-link")});return typeof I=="function"&&(Y=_.a.createElement(I,Object(P.a)({},s.props))),Y},s.savePaginationNode=function(I){s.paginationNode=I},s.isValid=function(I){return o(I)&&I!==s.state.current},s.shouldDisplayQuickJumper=function(){var I=s.props,C=I.showQuickJumper,W=I.pageSize,Y=I.total;return Y<=W?!1:C},s.handleKeyDown=function(I){(I.keyCode===y.ARROW_UP||I.keyCode===y.ARROW_DOWN)&&I.preventDefault()},s.handleKeyUp=function(I){var C=s.getValidValue(I),W=s.state.currentInputValue;C!==W&&s.setState({currentInputValue:C}),I.keyCode===y.ENTER?s.handleChange(C):I.keyCode===y.ARROW_UP?s.handleChange(C-1):I.keyCode===y.ARROW_DOWN&&s.handleChange(C+1)},s.changePageSize=function(I){var C=s.state.current,W=x(I,s.state,s.props);C=C>W?W:C,W===0&&(C=s.state.current),typeof I=="number"&&("pageSize"in s.props||s.setState({pageSize:I}),"current"in s.props||s.setState({current:C,currentInputValue:C})),s.props.onShowSizeChange(C,I),"onChange"in s.props&&s.props.onChange&&s.props.onChange(C,I)},s.handleChange=function(I){var C=s.props.disabled,W=I;if(s.isValid(W)&&!C){var Y=x(void 0,s.state,s.props);W>Y?W=Y:W<1&&(W=1),"current"in s.props||s.setState({current:W,currentInputValue:W});var H=s.state.pageSize;return s.props.onChange(W,H),W}return s.state.current},s.prev=function(){s.hasPrev()&&s.handleChange(s.state.current-1)},s.next=function(){s.hasNext()&&s.handleChange(s.state.current+1)},s.jumpPrev=function(){s.handleChange(s.getJumpPrevPage())},s.jumpNext=function(){s.handleChange(s.getJumpNextPage())},s.hasPrev=function(){return s.state.current>1},s.hasNext=function(){return s.state.current2?W-2:0),H=2;H=D?S=D:S=Number(l),S}},{key:"getShowSizeChanger",value:function(){var s=this.props,l=s.showSizeChanger,D=s.total,T=s.totalBoundaryShowSizeChanger;return typeof l!="undefined"?l:D>T}},{key:"renderPrev",value:function(s){var l=this.props,D=l.prevIcon,T=l.itemRender,S=T(s,"prev",this.getItemIcon(D,"prev page")),I=!this.hasPrev();return Object(U.isValidElement)(S)?Object(U.cloneElement)(S,{disabled:I}):S}},{key:"renderNext",value:function(s){var l=this.props,D=l.nextIcon,T=l.itemRender,S=T(s,"next",this.getItemIcon(D,"next page")),I=!this.hasNext();return Object(U.isValidElement)(S)?Object(U.cloneElement)(S,{disabled:I}):S}},{key:"render",value:function(){var s=this,l=this.props,D=l.prefixCls,T=l.className,S=l.style,I=l.disabled,C=l.hideOnSinglePage,W=l.total,Y=l.locale,H=l.showQuickJumper,F=l.showLessItems,q=l.showTitle,le=l.showTotal,pe=l.simple,Ae=l.itemRender,Ge=l.showPrevNextJumpers,Fe=l.jumpPrevIcon,Ue=l.jumpNextIcon,_e=l.selectComponentClass,je=l.selectPrefixCls,xe=l.pageSizeOptions,he=this.state,te=he.current,ye=he.pageSize,ue=he.currentInputValue;if(C===!0&&W<=ye)return null;var Le=x(void 0,this.state,this.props),ae=[],oe=null,Se=null,Me=null,We=null,Ke=null,Qe=H&&H.goButton,Ze=F?1:2,yt=te-1>0?te-1:0,vt=te+1=Ze*2&&te!==1+2&&(ae[0]=Object(U.cloneElement)(ae[0],{className:"".concat(D,"-item-after-jump-prev")}),ae.unshift(oe)),Le-te>=Ze*2&&te!==Le-2&&(ae[ae.length-1]=Object(U.cloneElement)(ae[ae.length-1],{className:"".concat(D,"-item-before-jump-next")}),ae.push(Se)),Je!==1&&ae.unshift(Me),st!==Le&&ae.push(We)}var Te=null;le&&(Te=_.a.createElement("li",{className:"".concat(D,"-total-text")},le(W,[W===0?0:(te-1)*ye+1,te*ye>W?W:te*ye])));var ge=!this.hasPrev()||!Le,be=!this.hasNext()||!Le;return _.a.createElement("ul",Object(ee.a)({className:c()(D,T,Object(K.a)({},"".concat(D,"-disabled"),I)),style:S,unselectable:"unselectable",ref:this.savePaginationNode},dt),Te,_.a.createElement("li",{title:q?Y.prev_page:null,onClick:this.prev,tabIndex:ge?null:0,onKeyPress:this.runIfEnterPrev,className:c()("".concat(D,"-prev"),Object(K.a)({},"".concat(D,"-disabled"),ge)),"aria-disabled":ge},this.renderPrev(yt)),ae,_.a.createElement("li",{title:q?Y.next_page:null,onClick:this.next,tabIndex:be?null:0,onKeyPress:this.runIfEnterNext,className:c()("".concat(D,"-next"),Object(K.a)({},"".concat(D,"-disabled"),be)),"aria-disabled":be},this.renderNext(vt)),_.a.createElement(m,{disabled:I,locale:Y,rootPrefixCls:D,selectComponentClass:_e,selectPrefixCls:je,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:te,pageSize:ye,pageSizeOptions:xe,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Qe}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var D={};if("current"in s&&(D.current=s.current,s.current!==l.current&&(D.currentInputValue=D.current)),"pageSize"in s&&s.pageSize!==l.pageSize){var T=l.current,S=x(s.pageSize,l,s);T=T>S?S:T,"current"in s||(D.current=T,D.currentInputValue=T),D.pageSize=s.pageSize}return D}}]),p}(_.a.Component);E.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:n,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:n,locale:a.a,style:{},itemRender:u,totalBoundaryShowSizeChanger:50};var v=E},"6RRn":function(et,de,N){"use strict";var ee=N("wCXF"),K=N("n6Qo");N.d(de,"b",function(){return K.a});var P=N("IBYe"),z=N("6eGT"),B=N("hW8S");N.d(de,"a",function(){return B.a}),de.c=ee.b},"6eGT":function(et,de,N){"use strict";function ee(K){return null}de.a=ee},"746U":function(et,de,N){"use strict";N.d(de,"d",function(){return K}),N.d(de,"j",function(){return P}),N.d(de,"i",function(){return z}),N.d(de,"h",function(){return B}),N.d(de,"e",function(){return M}),N.d(de,"k",function(){return j}),N.d(de,"l",function(){return U}),N.d(de,"a",function(){return _}),N.d(de,"f",function(){return c}),N.d(de,"g",function(){return g}),N.d(de,"m",function(){return w}),N.d(de,"c",function(){return m}),N.d(de,"b",function(){return a}),N.d(de,"n",function(){return n}),N.d(de,"o",function(){return o});var ee={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function K(u){return Array.isArray?Array.isArray(u):!!(u&&typeof u.length===ee.number&&u.constructor===Array)}function P(u){return typeof u===ee.string||u instanceof String}function z(u){return typeof u===ee.object&&u!==null&&!Array.isArray(u)&&!(u instanceof RegExp)&&!(u instanceof Date)}function B(u){return(typeof u===ee.number||u instanceof Number)&&!isNaN(u)}function M(u){return u===!0||u===!1}function j(u){return typeof u===ee.undefined}function U(u){return j(u)||u===null}function _(u,x){if(!u)throw new Error(x?"Unexpected type, expected '"+x+"'":"Unexpected type")}var R=Object.prototype.hasOwnProperty;function c(u){if(!z(u))return!1;for(var x in u)if(R.call(u,x))return!1;return!0}function g(u){return typeof u===ee.function}function w(u,x){for(var E=Math.min(u.length,x.length),v=0;v1&&arguments[1]!==void 0?arguments[1]:0,f=(j[w[y+0]]+j[w[y+1]]+j[w[y+2]]+j[w[y+3]]+"-"+j[w[y+4]]+j[w[y+5]]+"-"+j[w[y+6]]+j[w[y+7]]+"-"+j[w[y+8]]+j[w[y+9]]+"-"+j[w[y+10]]+j[w[y+11]]+j[w[y+12]]+j[w[y+13]]+j[w[y+14]]+j[w[y+15]]).toLowerCase();if(!M(f))throw TypeError("Stringified UUID is invalid");return f}var R=_;function c(w,y,f){w=w||{};var m=w.random||(w.rng||P)();if(m[6]=m[6]&15|64,m[8]=m[8]&63|128,y){f=f||0;for(var a=0;a<16;++a)y[f+a]=m[a];return y}return R(m)}var g=de.a=c},"7ZXX":function(et,de,N){et.exports=N.p+"static/err.6e7c5817.png"},"7ahc":function(et,de,N){"use strict";N.d(de,"a",function(){return x});var ee=N("k1fw"),K=N("0Owb"),P=N("+L6B"),z=N("2/Rp"),B=N("y8nQ"),M=N("Vl3Y"),j=N("tJVT"),U=N("OaEy"),_=N("2fM7"),R=N("q1tI"),c=N.n(R),g=N("VrN/"),w=N.n(g),y=N("p77/"),f=N.n(y),m=N("c5Ni"),a=N.n(m),n=_.a.Option,o={labelCol:{span:4},wrapperCol:{span:20}},u={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};de.b=function(E){var v=E.callback,O=E.onCancel,A=Object(R.useState)("python"),p=Object(j.a)(A,2),h=p[0],s=p[1];function l(T){s(u[T][1])}function D(T){v(T)}return c.a.createElement(M.a,Object(K.a)({},o,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:D}),c.a.createElement(M.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},c.a.createElement(_.a,{onChange:l},Object.keys(u).map(function(T){return c.a.createElement(n,{key:T,value:T},u[T][0])}))),c.a.createElement(M.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},c.a.createElement(x,{mode:h})),c.a.createElement("div",{className:"flex-container flex-end"},c.a.createElement(z.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),c.a.createElement(z.a,{type:"ghost",onClick:O},"\u53D6\u6D88")))};function x(E){var v=E.value,O=E.onChange,A=E.mode,p=E.options,h=p===void 0?{}:p,s=Object(R.useRef)(),l=Object(R.useState)(),D=Object(j.a)(l,2),T=D[0],S=D[1];return Object(R.useEffect)(function(){if(T){function I(C){var W=C.getValue();O&&O(W)}return T.on("change",I),function(){T.off("change",I)}}},[T,O]),Object(R.useEffect)(function(){T&&T.setOption("mode",A)},[T,A]),Object(R.useEffect)(function(){T&&((v!==T.getValue()||v==="")&&setTimeout(function(){T.setValue(v||" ")},300))},[T,v]),Object(R.useEffect)(function(){if(s.current&&!T){var I=w.a.fromTextArea(s.current,Object(ee.a)({mode:A,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},h));S(I)}},[s.current,T]),c.a.createElement("div",{className:"my-codemirror-container"},c.a.createElement("textarea",{ref:s}))}},"7ixt":function(et,de,N){"use strict";N.d(de,"a",function(){return P});var ee={adjustX:1,adjustY:1},K=[0,0],P={left:{points:["cr","cl"],overflow:ee,offset:[-4,0],targetOffset:K},right:{points:["cl","cr"],overflow:ee,offset:[4,0],targetOffset:K},top:{points:["bc","tc"],overflow:ee,offset:[0,-4],targetOffset:K},bottom:{points:["tc","bc"],overflow:ee,offset:[0,4],targetOffset:K},topLeft:{points:["bl","tl"],overflow:ee,offset:[0,-4],targetOffset:K},leftTop:{points:["tr","tl"],overflow:ee,offset:[-4,0],targetOffset:K},topRight:{points:["br","tr"],overflow:ee,offset:[0,-4],targetOffset:K},rightTop:{points:["tl","tr"],overflow:ee,offset:[4,0],targetOffset:K},bottomRight:{points:["tr","br"],overflow:ee,offset:[0,4],targetOffset:K},rightBottom:{points:["bl","br"],overflow:ee,offset:[4,0],targetOffset:K},bottomLeft:{points:["tl","bl"],overflow:ee,offset:[0,4],targetOffset:K},leftBottom:{points:["br","bl"],overflow:ee,offset:[-4,0],targetOffset:K}},z=P},"7v3h":function(et,de,N){et.exports=N.p+"static/empty2.dd73f390.png"},"8/bI":function(et,de,N){et.exports=N.p+"static/empty.8918e228.png"},"815F":function(et,de,N){"use strict";N.d(de,"e",function(){return j}),N.d(de,"c",function(){return _}),N.d(de,"d",function(){return R}),N.d(de,"a",function(){return g}),N.d(de,"f",function(){return w}),N.d(de,"b",function(){return y});var ee=N("KQm4"),K=N("VTBJ"),P=N("Ff2n"),z=N("Zm9Q"),B=N("Kwbf"),M=N("OZM5");function j(f,m){return f!=null?f:m}function U(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],m=new Map;function a(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(n||[]).forEach(function(u){var x=u.key,E=u.children;Object(B.a)(x!=null,"Tree node must have a certain key: [".concat(o).concat(x,"]"));var v=String(x);Object(B.a)(!m.has(v)||x===null||x===void 0,"Same 'key' exist in the Tree: ".concat(v)),m.set(v,!0),a(E,"".concat(o).concat(v," > "))})}a(f)}function _(f){function m(a){var n=Object(z.a)(a);return n.map(function(o){if(!Object(M.i)(o))return Object(B.a)(!o,"Tree/TreeNode can only accept TreeNode as children."),null;var u=o.key,x=o.props,E=x.children,v=Object(P.a)(x,["children"]),O=Object(K.a)({key:u},v),A=m(E);return A.length&&(O.children=A),O}).filter(function(o){return o})}return m(f)}function R(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=new Set(m===!0?[]:m),n=[];function o(u){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map(function(E,v){var O=Object(M.h)(x?x.pos:"0",v),A=j(E.key,O),p=Object(K.a)(Object(K.a)({},E),{},{parent:x,pos:O,children:null,data:E,isStart:[].concat(Object(ee.a)(x?x.isStart:[]),[v===0]),isEnd:[].concat(Object(ee.a)(x?x.isEnd:[]),[v===u.length-1])});return n.push(p),m===!0||a.has(A)?p.children=o(E.children||[],p):p.children=[],p})}return o(f),n}function c(f,m,a){var n;a?typeof a=="string"?n=function(x){return x[a]}:typeof a=="function"&&(n=function(x){return a(x)}):n=function(x,E){return j(x.key,E)};function o(u,x,E){var v=u?u.children:f,O=u?Object(M.h)(E.pos,x):"0";if(u){var A=n(u,O),p={node:u,index:x,pos:O,key:A,parentPos:E.node?E.pos:null,level:E.level+1};m(p)}v&&v.forEach(function(h,s){o(h,s,{node:u,pos:O,level:E?E.level+1:-1})})}o(null)}function g(f){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=m.initWrapper,n=m.processEntity,o=m.onProcessFinished,u=arguments.length>2?arguments[2]:void 0,x={},E={},v={posEntities:x,keyEntities:E};return a&&(v=a(v)||v),c(f,function(O){var A=O.node,p=O.index,h=O.pos,s=O.key,l=O.parentPos,D=O.level,T={node:A,index:p,key:s,pos:h,level:D},S=j(s,h);x[h]=T,E[S]=T,T.parent=x[l],T.parent&&(T.parent.children=T.parent.children||[],T.parent.children.push(T)),n&&n(T,v)},u),o&&o(v),v}function w(f,m){var a=m.expandedKeys,n=m.selectedKeys,o=m.loadedKeys,u=m.loadingKeys,x=m.checkedKeys,E=m.halfCheckedKeys,v=m.dragOverNodeKey,O=m.dropPosition,A=m.keyEntities,p=A[f],h={eventKey:f,expanded:a.indexOf(f)!==-1,selected:n.indexOf(f)!==-1,loaded:o.indexOf(f)!==-1,loading:u.indexOf(f)!==-1,checked:x.indexOf(f)!==-1,halfChecked:E.indexOf(f)!==-1,pos:String(p?p.pos:""),dragOver:v===f&&O===0,dragOverGapTop:v===f&&O===-1,dragOverGapBottom:v===f&&O===1};return h}function y(f){var m=f.data,a=f.expanded,n=f.selected,o=f.checked,u=f.loaded,x=f.loading,E=f.halfChecked,v=f.dragOver,O=f.dragOverGapTop,A=f.dragOverGapBottom,p=f.pos,h=f.active,s=Object(K.a)(Object(K.a)({},m),{},{expanded:a,selected:n,checked:o,loaded:u,loading:x,halfChecked:E,dragOver:v,dragOverGapTop:O,dragOverGapBottom:A,pos:p,active:h});return"props"in s||Object.defineProperty(s,"props",{get:function(){return Object(B.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),f}}),s}},"8EBN":function(et,de,N){(function(ee){ee(N("VrN/"))})(function(ee){"use strict";ee.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var K=0;K-1&&z.substring(j+1,z.length);if(U)return ee.findModeByExtension(U)},ee.findModeByName=function(z){z=z.toLowerCase();for(var B=0;B0&&w[w.length-1])&&(a[0]===6||a[0]===2)){R=0;continue}if(a[0]===3&&(!w||a[1]>w[0]&&a[1]")):null:l.match("--")?T(f("comment","-->")):l.match("DOCTYPE",!0,!0)?(l.eatWhile(/[\w\._\-]/),T(m(1))):null:l.eat("?")?(l.eatWhile(/[\w\._\-]/),D.tokenize=f("meta","?>"),"meta"):(R=l.eat("/")?"closeTag":"openTag",D.tokenize=w,"tag bracket");if(S=="&"){var I;return l.eat("#")?l.eat("x")?I=l.eatWhile(/[a-fA-F\d]/)&&l.eat(";"):I=l.eatWhile(/[\d]/)&&l.eat(";"):I=l.eatWhile(/[\w\.\-:]/)&&l.eat(";"),I?"atom":"error"}else return l.eatWhile(/[^&<]/),null}g.isInText=!0;function w(l,D){var T=l.next();if(T==">"||T=="/"&&l.eat(">"))return D.tokenize=g,R=T==">"?"endTag":"selfcloseTag","tag bracket";if(T=="=")return R="equals",null;if(T=="<"){D.tokenize=g,D.state=u,D.tagName=D.tagStart=null;var S=D.tokenize(l,D);return S?S+" tag error":"tag error"}else return/[\'\"]/.test(T)?(D.tokenize=y(T),D.stringStartCol=l.column(),D.tokenize(l,D)):(l.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function y(l){var D=function(T,S){for(;!T.eol();)if(T.next()==l){S.tokenize=w;break}return"string"};return D.isInAttribute=!0,D}function f(l,D){return function(T,S){for(;!T.eol();){if(T.match(D)){S.tokenize=g;break}T.next()}return l}}function m(l){return function(D,T){for(var S;(S=D.next())!=null;){if(S=="<")return T.tokenize=m(l+1),T.tokenize(D,T);if(S==">")if(l==1){T.tokenize=g;break}else return T.tokenize=m(l-1),T.tokenize(D,T)}return"meta"}}function a(l,D,T){this.prev=l.context,this.tagName=D,this.indent=l.indented,this.startOfLine=T,(j.doNotIndent.hasOwnProperty(D)||l.context&&l.context.noIndent)&&(this.noIndent=!0)}function n(l){l.context&&(l.context=l.context.prev)}function o(l,D){for(var T;;){if(!l.context)return;if(T=l.context.tagName,!j.contextGrabbers.hasOwnProperty(T)||!j.contextGrabbers[T].hasOwnProperty(D))return;n(l)}}function u(l,D,T){return l=="openTag"?(T.tagStart=D.column(),x):l=="closeTag"?E:u}function x(l,D,T){return l=="word"?(T.tagName=D.current(),c="tag",A):j.allowMissingTagName&&l=="endTag"?(c="tag bracket",A(l,D,T)):(c="error",x)}function E(l,D,T){if(l=="word"){var S=D.current();return T.context&&T.context.tagName!=S&&j.implicitlyClosed.hasOwnProperty(T.context.tagName)&&n(T),T.context&&T.context.tagName==S||j.matchClosing===!1?(c="tag",v):(c="tag error",O)}else return j.allowMissingTagName&&l=="endTag"?(c="tag bracket",v(l,D,T)):(c="error",O)}function v(l,D,T){return l!="endTag"?(c="error",v):(n(T),u)}function O(l,D,T){return c="error",v(l,D,T)}function A(l,D,T){if(l=="word")return c="attribute",p;if(l=="endTag"||l=="selfcloseTag"){var S=T.tagName,I=T.tagStart;return T.tagName=T.tagStart=null,l=="selfcloseTag"||j.autoSelfClosers.hasOwnProperty(S)?o(T,S):(o(T,S),T.context=new a(T,S,I==T.indented)),u}return c="error",A}function p(l,D,T){return l=="equals"?h:(j.allowMissing||(c="error"),A(l,D,T))}function h(l,D,T){return l=="string"?s:l=="word"&&j.allowUnquoted?(c="string",A):(c="error",A(l,D,T))}function s(l,D,T){return l=="string"?s:A(l,D,T)}return{startState:function(l){var D={tokenize:g,state:u,indented:l||0,tagName:null,tagStart:null,context:null};return l!=null&&(D.baseIndent=l),D},token:function(l,D){if(!D.tagName&&l.sol()&&(D.indented=l.indentation()),l.eatSpace())return null;R=null;var T=D.tokenize(l,D);return(T||R)&&T!="comment"&&(c=null,D.state=D.state(R||T,l,D),c&&(T=c=="error"?T+" error":c)),T},indent:function(l,D,T){var S=l.context;if(l.tokenize.isInAttribute)return l.tagStart==l.indented?l.stringStartCol+1:l.indented+M;if(S&&S.noIndent)return ee.Pass;if(l.tokenize!=w&&l.tokenize!=g)return T?T.match(/^(\s*)/)[0].length:0;if(l.tagName)return j.multilineTagIndentPastTag!==!1?l.tagStart+l.tagName.length+2:l.tagStart+M*(j.multilineTagIndentFactor||1);if(j.alignCDATA&&/$/,blockCommentStart:"",configuration:j.htmlMode?"html":"xml",helperType:j.htmlMode?"html":"xml",skipAttribute:function(l){l.state==h&&(l.state=A)},xmlCurrentTag:function(l){return l.tagName?{name:l.tagName,close:l.type=="closeTag"}:null},xmlCurrentContext:function(l){for(var D=[],T=l.context;T;T=T.prev)T.tagName&&D.push(T.tagName);return D.reverse()}}}),ee.defineMIME("text/xml","xml"),ee.defineMIME("application/xml","xml"),ee.mimeModes.hasOwnProperty("text/html")||ee.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1j5w":function(et,de,N){"use strict";N.d(de,"d",function(){return yt}),N.d(de,"b",function(){return Be}),N.d(de,"c",function(){return ut}),N.d(de,"a",function(){return Tt});var ee=N("VTBJ"),K=N("1OyB"),k=N("vuIU"),z=N("JX7q"),B=N("Ji7U"),M=N("LK+K"),j=N("q1tI"),U=N("I8Z2"),_=N("BGR+"),R=N("wx14"),c=N("rePB"),g=N("4IlW"),w=N("2GS6"),y=N("Gytx"),f=N.n(y),m=N("TSYQ"),a=N.n(m),n=N("U8pU"),o=N("ODXe"),u=/iPhone/i,x=/iPod/i,E=/iPad/i,v=/\bAndroid(?:.+)Mobile\b/i,O=/Android/i,A=/\bAndroid(?:.+)SD4930UR\b/i,p=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,h=/Windows Phone/i,s=/\bWindows(?:.+)ARM\b/i,l=/BlackBerry/i,D=/BB10/i,T=/Opera Mini/i,S=/\b(CriOS|Chrome)(?:.+)Mobile/i,I=/Mobile(?:.+)Firefox\b/i;function C(gt,qe){return gt.test(qe)}function W(gt){var qe=gt||(typeof navigator!="undefined"?navigator.userAgent:""),Xe=qe.split("[FBAN");if(typeof Xe[1]!="undefined"){var ke=Xe,se=Object(o.a)(ke,1);qe=se[0]}if(Xe=qe.split("Twitter"),typeof Xe[1]!="undefined"){var fe=Xe,$e=Object(o.a)(fe,1);qe=$e[0]}var Pe={apple:{phone:C(u,qe)&&!C(h,qe),ipod:C(x,qe),tablet:!C(u,qe)&&C(E,qe)&&!C(h,qe),device:(C(u,qe)||C(x,qe)||C(E,qe))&&!C(h,qe)},amazon:{phone:C(A,qe),tablet:!C(A,qe)&&C(p,qe),device:C(A,qe)||C(p,qe)},android:{phone:!C(h,qe)&&C(A,qe)||!C(h,qe)&&C(v,qe),tablet:!C(h,qe)&&!C(A,qe)&&!C(v,qe)&&(C(p,qe)||C(O,qe)),device:!C(h,qe)&&(C(A,qe)||C(p,qe)||C(v,qe)||C(O,qe))||C(/\bokhttp\b/i,qe)},windows:{phone:C(h,qe),tablet:C(s,qe),device:C(h,qe)||C(s,qe)},other:{blackberry:C(l,qe),blackberry10:C(D,qe),opera:C(T,qe),firefox:C(I,qe),chrome:C(S,qe),device:C(l,qe)||C(D,qe)||C(T,qe)||C(I,qe)||C(S,qe)},any:null,phone:null,tablet:null};return Pe.any=Pe.apple.device||Pe.android.device||Pe.windows.device||Pe.other.device,Pe.phone=Pe.apple.phone||Pe.android.phone||Pe.windows.phone,Pe.tablet=Pe.apple.tablet||Pe.android.tablet||Pe.windows.tablet,Pe}var Y=Object(ee.a)(Object(ee.a)({},W()),{},{isMobile:W}),H=Y;function F(){}function q(gt,qe,Xe){var ke=qe||"";return gt.key||"".concat(ke,"item_").concat(Xe)}function le(gt){return"".concat(gt,"-menu-")}function pe(gt,qe){var Xe=-1;j.Children.forEach(gt,function(ke){Xe+=1,ke&&ke.type&&ke.type.isMenuItemGroup?j.Children.forEach(ke.props.children,function(se){Xe+=1,qe(se,Xe)}):qe(ke,Xe)})}function Ae(gt,qe,Xe){if(!gt||Xe.find)return;j.Children.forEach(gt,function(ke){if(ke){var se=ke.type;if(!se||!(se.isSubMenu||se.isMenuItem||se.isMenuItemGroup))return;qe.indexOf(ke.key)!==-1?Xe.find=!0:ke.props.children&&Ae(ke.props.children,qe,Xe)}})}var Ge=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],Fe=function(qe){var Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ke=qe&&typeof qe.getBoundingClientRect=="function"&&qe.getBoundingClientRect().width;if(ke){if(Xe){var se=getComputedStyle(qe),fe=se.marginLeft,$e=se.marginRight;ke+=+fe.replace("px","")+ +$e.replace("px","")}ke=+ke.toFixed(6)}return ke||0},Ue=function(qe,Xe,ke){qe&&Object(n.a)(qe.style)==="object"&&(qe.style[Xe]=ke)},_e=function(){return H.any},je=N("KQm4"),xe=N("Ff2n"),he=N("i8i4"),te=N("bdgK"),ye=N("uciX"),ue=N("8XRh"),Le={adjustX:1,adjustY:1},ae={topLeft:{points:["bl","tl"],overflow:Le,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Le,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Le,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Le,offset:[4,0]}},oe={topLeft:{points:["bl","tl"],overflow:Le,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Le,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Le,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Le,offset:[4,0]}},Se=ae,Me=0,We={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Ke=function(qe,Xe,ke){var se=le(Xe),fe=qe.getState();qe.setState({defaultActiveFirst:Object(ee.a)(Object(ee.a)({},fe.defaultActiveFirst),{},Object(c.a)({},se,ke))})},Qe=function(gt){Object(B.a)(Xe,gt);var qe=Object(M.a)(Xe);function Xe(ke){var se;Object(K.a)(this,Xe),se=qe.call(this,ke),se.onDestroy=function(Ne){se.props.onDestroy(Ne)},se.onKeyDown=function(Ne){var Ve=Ne.keyCode,tt=se.menuInstance,ft=se.props,Ct=ft.isOpen,zt=ft.store;if(Ve===g.a.ENTER)return se.onTitleClick(Ne),Ke(zt,se.props.eventKey,!0),!0;if(Ve===g.a.RIGHT)return Ct?tt.onKeyDown(Ne):(se.triggerOpenChange(!0),Ke(zt,se.props.eventKey,!0)),!0;if(Ve===g.a.LEFT){var qt;if(Ct)qt=tt.onKeyDown(Ne);else return;return qt||(se.triggerOpenChange(!1),qt=!0),qt}return Ct&&(Ve===g.a.UP||Ve===g.a.DOWN)?tt.onKeyDown(Ne):void 0},se.onOpenChange=function(Ne){se.props.onOpenChange(Ne)},se.onPopupVisibleChange=function(Ne){se.triggerOpenChange(Ne,Ne?"mouseenter":"mouseleave")},se.onMouseEnter=function(Ne){var Ve=se.props,tt=Ve.eventKey,ft=Ve.onMouseEnter,Ct=Ve.store;Ke(Ct,se.props.eventKey,!1),ft({key:tt,domEvent:Ne})},se.onMouseLeave=function(Ne){var Ve=se.props,tt=Ve.parentMenu,ft=Ve.eventKey,Ct=Ve.onMouseLeave;tt.subMenuInstance=Object(z.a)(se),Ct({key:ft,domEvent:Ne})},se.onTitleMouseEnter=function(Ne){var Ve=se.props,tt=Ve.eventKey,ft=Ve.onItemHover,Ct=Ve.onTitleMouseEnter;ft({key:tt,hover:!0}),Ct({key:tt,domEvent:Ne})},se.onTitleMouseLeave=function(Ne){var Ve=se.props,tt=Ve.parentMenu,ft=Ve.eventKey,Ct=Ve.onItemHover,zt=Ve.onTitleMouseLeave;tt.subMenuInstance=Object(z.a)(se),Ct({key:ft,hover:!1}),zt({key:ft,domEvent:Ne})},se.onTitleClick=function(Ne){var Ve=Object(z.a)(se),tt=Ve.props;if(tt.onTitleClick({key:tt.eventKey,domEvent:Ne}),tt.triggerSubMenuAction==="hover")return;se.triggerOpenChange(!tt.isOpen,"click"),Ke(tt.store,se.props.eventKey,!1)},se.onSubMenuClick=function(Ne){typeof se.props.onClick=="function"&&se.props.onClick(se.addKeyPath(Ne))},se.onSelect=function(Ne){se.props.onSelect(Ne)},se.onDeselect=function(Ne){se.props.onDeselect(Ne)},se.getPrefixCls=function(){return"".concat(se.props.rootPrefixCls,"-submenu")},se.getActiveClassName=function(){return"".concat(se.getPrefixCls(),"-active")},se.getDisabledClassName=function(){return"".concat(se.getPrefixCls(),"-disabled")},se.getSelectedClassName=function(){return"".concat(se.getPrefixCls(),"-selected")},se.getOpenClassName=function(){return"".concat(se.props.rootPrefixCls,"-submenu-open")},se.saveMenuInstance=function(Ne){se.menuInstance=Ne},se.addKeyPath=function(Ne){return Object(ee.a)(Object(ee.a)({},Ne),{},{keyPath:(Ne.keyPath||[]).concat(se.props.eventKey)})},se.triggerOpenChange=function(Ne,Ve){var tt=se.props.eventKey,ft=function(){se.onOpenChange({key:tt,item:Object(z.a)(se),trigger:Ve,open:Ne})};Ve==="mouseenter"?se.mouseenterTimeout=setTimeout(function(){ft()},0):ft()},se.isChildrenSelected=function(){var Ne={find:!1};return Ae(se.props.children,se.props.selectedKeys,Ne),Ne.find},se.isOpen=function(){return se.props.openKeys.indexOf(se.props.eventKey)!==-1},se.adjustWidth=function(){if(!se.subMenuTitle||!se.menuInstance)return;var Ne=he.findDOMNode(se.menuInstance);if(Ne.offsetWidth>=se.subMenuTitle.offsetWidth)return;Ne.style.minWidth="".concat(se.subMenuTitle.offsetWidth,"px")},se.saveSubMenuTitle=function(Ne){se.subMenuTitle=Ne},se.getBaseProps=function(){var Ne=Object(z.a)(se),Ve=Ne.props;return{mode:Ve.mode==="horizontal"?"vertical":Ve.mode,visible:se.props.isOpen,level:Ve.level+1,inlineIndent:Ve.inlineIndent,focusable:!1,onClick:se.onSubMenuClick,onSelect:se.onSelect,onDeselect:se.onDeselect,onDestroy:se.onDestroy,selectedKeys:Ve.selectedKeys,eventKey:"".concat(Ve.eventKey,"-menu-"),openKeys:Ve.openKeys,motion:Ve.motion,onOpenChange:se.onOpenChange,subMenuOpenDelay:Ve.subMenuOpenDelay,parentMenu:Object(z.a)(se),subMenuCloseDelay:Ve.subMenuCloseDelay,forceSubMenuRender:Ve.forceSubMenuRender,triggerSubMenuAction:Ve.triggerSubMenuAction,builtinPlacements:Ve.builtinPlacements,defaultActiveFirst:Ve.store.getState().defaultActiveFirst[le(Ve.eventKey)],multiple:Ve.multiple,prefixCls:Ve.rootPrefixCls,id:se.internalMenuId,manualRef:se.saveMenuInstance,itemIcon:Ve.itemIcon,expandIcon:Ve.expandIcon,direction:Ve.direction}},se.getMotion=function(Ne,Ve){var tt=Object(z.a)(se),ft=tt.haveRendered,Ct=se.props,zt=Ct.motion,qt=Ct.rootPrefixCls,Qt=Object(ee.a)(Object(ee.a)({},zt),{},{leavedClassName:"".concat(qt,"-hidden"),removeOnLeave:!1,motionAppear:ft||!Ve||Ne!=="inline"});return Qt};var fe=ke.store,$e=ke.eventKey,Pe=fe.getState(),it=Pe.defaultActiveFirst;se.isRootMenu=!1;var at=!1;return it&&(at=it[$e]),Ke(fe,$e,at),se}return Object(k.a)(Xe,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var se=this,fe=this.props,$e=fe.mode,Pe=fe.parentMenu,it=fe.manualRef;if(it&&it(this),$e!=="horizontal"||!Pe.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return se.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var se=this.props,fe=se.onDestroy,$e=se.eventKey;fe&&fe($e),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(se){var fe=this,$e=this.getBaseProps(),Pe=this.getMotion($e.mode,$e.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||$e.visible||$e.forceSubMenuRender,!this.haveOpened)return j.createElement("div",null);var it=$e.direction;return j.createElement(ue.default,Object.assign({visible:$e.visible},Pe),function(at){var Ne=at.className,Ve=at.style,tt=a()("".concat($e.prefixCls,"-sub"),Ne,Object(c.a)({},"".concat($e.prefixCls,"-rtl"),it==="rtl"));return j.createElement(Te,Object.assign({},$e,{id:fe.internalMenuId,className:tt,style:Ve}),se)})}},{key:"render",value:function(){var se,fe=Object(ee.a)({},this.props),$e=fe.isOpen,Pe=this.getPrefixCls(),it=fe.mode==="inline",at=a()(Pe,"".concat(Pe,"-").concat(fe.mode),(se={},Object(c.a)(se,fe.className,!!fe.className),Object(c.a)(se,this.getOpenClassName(),$e),Object(c.a)(se,this.getActiveClassName(),fe.active||$e&&!it),Object(c.a)(se,this.getDisabledClassName(),fe.disabled),Object(c.a)(se,this.getSelectedClassName(),this.isChildrenSelected()),se));this.internalMenuId||(fe.eventKey?this.internalMenuId="".concat(fe.eventKey,"$Menu"):(Me+=1,this.internalMenuId="$__$".concat(Me,"$Menu")));var Ne={},Ve={},tt={};fe.disabled||(Ne={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Ve={onClick:this.onTitleClick},tt={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var ft={},Ct=fe.direction;it&&(Ct==="rtl"?ft.paddingRight=fe.inlineIndent*fe.level:ft.paddingLeft=fe.inlineIndent*fe.level);var zt={};this.props.isOpen&&(zt={"aria-owns":this.internalMenuId});var qt=null;fe.mode!=="horizontal"&&(qt=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(qt=j.createElement(this.props.expandIcon,Object(ee.a)({},this.props))));var Qt=j.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:ft,className:"".concat(Pe,"-title"),role:"button"},tt,Ve,{"aria-expanded":$e},zt,{"aria-haspopup":"true",title:typeof fe.title=="string"?fe.title:void 0}),fe.title,qt||j.createElement("i",{className:"".concat(Pe,"-arrow")})),St=this.renderChildren(fe.children),ln=fe.parentMenu.isRootMenu?fe.parentMenu.props.getPopupContainer:function(un){return un.parentNode},Bt=We[fe.mode],Yt=fe.popupOffset?{offset:fe.popupOffset}:{},Mt=fe.mode==="inline"?"":fe.popupClassName;Mt+=Ct==="rtl"?" ".concat(Pe,"-rtl"):"";var tn=fe.disabled,mn=fe.triggerSubMenuAction,An=fe.subMenuOpenDelay,lt=fe.forceSubMenuRender,Rt=fe.subMenuCloseDelay,Jt=fe.builtinPlacements;Ge.forEach(function(un){return delete fe[un]}),delete fe.onClick;var nn=Ct==="rtl"?Object.assign({},oe,Jt):Object.assign({},ae,Jt);return delete fe.direction,j.createElement("li",Object.assign({},fe,Ne,{className:at,role:"menuitem"}),it&&Qt,it&&St,!it&&j.createElement(ye.a,{prefixCls:Pe,popupClassName:a()("".concat(Pe,"-popup"),Mt),getPopupContainer:ln,builtinPlacements:nn,popupPlacement:Bt,popupVisible:$e,popupAlign:Yt,popup:St,action:tn?[]:[mn],mouseEnterDelay:An,mouseLeaveDelay:Rt,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:lt},Qt))}}]),Xe}(j.Component);Qe.defaultProps={onMouseEnter:F,onMouseLeave:F,onTitleMouseEnter:F,onTitleMouseLeave:F,onTitleClick:F,manualRef:F,mode:"vertical",title:""};var Ze=Object(U.b)(function(gt,qe){var Xe=gt.openKeys,ke=gt.activeKey,se=gt.selectedKeys,fe=qe.eventKey,$e=qe.subMenuKey;return{isOpen:Xe.indexOf(fe)>-1,active:ke[$e]===fe,selectedKeys:se}})(Qe);Ze.isSubMenu=!0;var yt=Ze,vt="menuitem-overflowed",dt=.5,pt=function(gt){Object(B.a)(Xe,gt);var qe=Object(M.a)(Xe);function Xe(){var ke;return Object(K.a)(this,Xe),ke=qe.apply(this,arguments),ke.resizeObserver=null,ke.mutationObserver=null,ke.originalTotalWidth=0,ke.overflowedItems=[],ke.menuItemSizes=[],ke.cancelFrameId=null,ke.state={lastVisibleIndex:void 0},ke.getMenuItemNodes=function(){var se=ke.props.prefixCls,fe=he.findDOMNode(Object(z.a)(ke));return fe?[].slice.call(fe.children).filter(function($e){return $e.className.split(" ").indexOf("".concat(se,"-overflowed-submenu"))<0}):[]},ke.getOverflowedSubMenuItem=function(se,fe,$e){var Pe=ke.props,it=Pe.overflowedIndicator,at=Pe.level,Ne=Pe.mode,Ve=Pe.prefixCls,tt=Pe.theme;if(at!==1||Ne!=="horizontal")return null;var ft=ke.props.children[0],Ct=ft.props,zt=Ct.children,qt=Ct.title,Qt=Ct.style,St=Object(xe.a)(Ct,["children","title","style"]),ln=Object(ee.a)({},Qt),Bt="".concat(se,"-overflowed-indicator"),Yt="".concat(se,"-overflowed-indicator");fe.length===0&&$e!==!0?ln=Object(ee.a)(Object(ee.a)({},ln),{},{display:"none"}):$e&&(ln=Object(ee.a)(Object(ee.a)({},ln),{},{visibility:"hidden",position:"absolute"}),Bt="".concat(Bt,"-placeholder"),Yt="".concat(Yt,"-placeholder"));var Mt=tt?"".concat(Ve,"-").concat(tt):"",tn={};return Ge.forEach(function(mn){St[mn]!==void 0&&(tn[mn]=St[mn])}),j.createElement(yt,Object.assign({title:it,className:"".concat(Ve,"-overflowed-submenu"),popupClassName:Mt},tn,{key:Bt,eventKey:Yt,disabled:!1,style:ln}),fe)},ke.setChildrenWidthAndResize=function(){if(ke.props.mode!=="horizontal")return;var se=he.findDOMNode(Object(z.a)(ke));if(!se)return;var fe=se.children;if(!fe||fe.length===0)return;var $e=se.children[fe.length-1];Ue($e,"display","inline-block");var Pe=ke.getMenuItemNodes(),it=Pe.filter(function(at){return at.className.split(" ").indexOf(vt)>=0});it.forEach(function(at){Ue(at,"display","inline-block")}),ke.menuItemSizes=Pe.map(function(at){return Fe(at,!0)}),it.forEach(function(at){Ue(at,"display","none")}),ke.overflowedIndicatorWidth=Fe(se.children[se.children.length-1],!0),ke.originalTotalWidth=ke.menuItemSizes.reduce(function(at,Ne){return at+Ne},0),ke.handleResize(),Ue($e,"display","none")},ke.handleResize=function(){if(ke.props.mode!=="horizontal")return;var se=he.findDOMNode(Object(z.a)(ke));if(!se)return;var fe=Fe(se);ke.overflowedItems=[];var $e=0,Pe;ke.originalTotalWidth>fe+dt&&(Pe=-1,ke.menuItemSizes.forEach(function(it){$e+=it,$e+ke.overflowedIndicatorWidth<=fe&&(Pe+=1)})),ke.setState({lastVisibleIndex:Pe})},ke}return Object(k.a)(Xe,[{key:"componentDidMount",value:function(){var se=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var fe=he.findDOMNode(this);if(!fe)return;this.resizeObserver=new te.default(function($e){$e.forEach(function(){var Pe=se.cancelFrameId;cancelAnimationFrame(Pe),se.cancelFrameId=requestAnimationFrame(se.setChildrenWidthAndResize)})}),[].slice.call(fe.children).concat(fe).forEach(function($e){se.resizeObserver.observe($e)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){se.resizeObserver.disconnect(),[].slice.call(fe.children).concat(fe).forEach(function($e){se.resizeObserver.observe($e)}),se.setChildrenWidthAndResize()}),this.mutationObserver.observe(fe,{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(se){var fe=this,$e=this.state.lastVisibleIndex;return(se||[]).reduce(function(Pe,it,at){var Ne=it;if(fe.props.mode==="horizontal"){var Ve=fe.getOverflowedSubMenuItem(it.props.eventKey,[]);$e!==void 0&&fe.props.className.indexOf("".concat(fe.props.prefixCls,"-root"))!==-1&&(at>$e&&(Ne=j.cloneElement(it,{style:{display:"none"},eventKey:"".concat(it.props.eventKey,"-hidden"),className:"".concat(vt)})),at===$e+1&&(fe.overflowedItems=se.slice($e+1).map(function(ft){return j.cloneElement(ft,{key:ft.props.eventKey,mode:"vertical-left"})}),Ve=fe.getOverflowedSubMenuItem(it.props.eventKey,fe.overflowedItems)));var tt=[].concat(Object(je.a)(Pe),[Ve,Ne]);return at===se.length-1&&tt.push(fe.getOverflowedSubMenuItem(it.props.eventKey,[],!0)),tt}return[].concat(Object(je.a)(Pe),[Ne])},[])}},{key:"render",value:function(){var se=this.props,fe=se.visible,$e=se.prefixCls,Pe=se.overflowedIndicator,it=se.mode,at=se.level,Ne=se.tag,Ve=se.children,tt=se.theme,ft=Object(xe.a)(se,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Ct=Ne;return j.createElement(Ct,Object.assign({},ft),this.renderChildren(Ve))}}]),Xe}(j.Component);pt.defaultProps={tag:"div",className:""};var At=pt;function wt(gt){return gt.length?gt.every(function(qe){return!!qe.props.disabled}):!0}function Oe(gt,qe,Xe){var ke=gt.getState();gt.setState({activeKey:Object(ee.a)(Object(ee.a)({},ke.activeKey),{},Object(c.a)({},qe,Xe))})}function we(gt){return gt.eventKey||"0-menu-"}function Je(gt,qe){var Xe=qe,ke=gt.children,se=gt.eventKey;if(Xe){var fe;if(pe(ke,function($e,Pe){$e&&$e.props&&!$e.props.disabled&&Xe===q($e,se,Pe)&&(fe=!0)}),fe)return Xe}return Xe=null,gt.defaultActiveFirst&&pe(ke,function($e,Pe){!Xe&&$e&&!$e.props.disabled&&(Xe=q($e,se,Pe))}),Xe}function st(gt){if(gt){var qe=this.instanceArray.indexOf(gt);qe!==-1?this.instanceArray[qe]=gt:this.instanceArray.push(gt)}}var He=function(gt){Object(B.a)(Xe,gt);var qe=Object(M.a)(Xe);function Xe(ke){var se;return Object(K.a)(this,Xe),se=qe.call(this,ke),se.onKeyDown=function(fe,$e){var Pe=fe.keyCode,it;if(se.getFlatInstanceArray().forEach(function(Ne){Ne&&Ne.props.active&&Ne.onKeyDown&&(it=Ne.onKeyDown(fe))}),it)return 1;var at=null;return(Pe===g.a.UP||Pe===g.a.DOWN)&&(at=se.step(Pe===g.a.UP?-1:1)),at?(fe.preventDefault(),Oe(se.props.store,we(se.props),at.props.eventKey),typeof $e=="function"&&$e(at),1):void 0},se.onItemHover=function(fe){var $e=fe.key,Pe=fe.hover;Oe(se.props.store,we(se.props),Pe?$e:null)},se.onDeselect=function(fe){se.props.onDeselect(fe)},se.onSelect=function(fe){se.props.onSelect(fe)},se.onClick=function(fe){se.props.onClick(fe)},se.onOpenChange=function(fe){se.props.onOpenChange(fe)},se.onDestroy=function(fe){se.props.onDestroy(fe)},se.getFlatInstanceArray=function(){return se.instanceArray},se.step=function(fe){var $e=se.getFlatInstanceArray(),Pe=se.props.store.getState().activeKey[we(se.props)],it=$e.length;if(!it)return null;fe<0&&($e=$e.concat().reverse());var at=-1;if($e.every(function(ft,Ct){return ft&&ft.props.eventKey===Pe?(at=Ct,!1):!0}),!se.props.defaultActiveFirst&&at!==-1&&wt($e.slice(at,it-1)))return;var Ne=(at+1)%it,Ve=Ne;do{var tt=$e[Ve];if(!tt||tt.props.disabled)Ve=(Ve+1)%it;else return tt}while(Ve!==Ne);return null},se.renderCommonMenuItem=function(fe,$e,Pe){var it=se.props.store.getState(),at=Object(z.a)(se),Ne=at.props,Ve=q(fe,Ne.eventKey,$e),tt=fe.props;if(!tt||typeof fe.type=="string")return fe;var ft=Ve===it.activeKey,Ct=Object(ee.a)(Object(ee.a)({mode:tt.mode||Ne.mode,level:Ne.level,inlineIndent:Ne.inlineIndent,renderMenuItem:se.renderMenuItem,rootPrefixCls:Ne.prefixCls,index:$e,parentMenu:Ne.parentMenu,manualRef:tt.disabled?void 0:Object(w.a)(fe.ref,st.bind(Object(z.a)(se))),eventKey:Ve,active:!tt.disabled&&ft,multiple:Ne.multiple,onClick:function(qt){(tt.onClick||F)(qt),se.onClick(qt)},onItemHover:se.onItemHover,motion:Ne.motion,subMenuOpenDelay:Ne.subMenuOpenDelay,subMenuCloseDelay:Ne.subMenuCloseDelay,forceSubMenuRender:Ne.forceSubMenuRender,onOpenChange:se.onOpenChange,onDeselect:se.onDeselect,onSelect:se.onSelect,builtinPlacements:Ne.builtinPlacements,itemIcon:tt.itemIcon||se.props.itemIcon,expandIcon:tt.expandIcon||se.props.expandIcon},Pe),{},{direction:Ne.direction});return(Ne.mode==="inline"||_e())&&(Ct.triggerSubMenuAction="click"),j.cloneElement(fe,Ct)},se.renderMenuItem=function(fe,$e,Pe){if(!fe)return null;var it=se.props.store.getState(),at={openKeys:it.openKeys,selectedKeys:it.selectedKeys,triggerSubMenuAction:se.props.triggerSubMenuAction,subMenuKey:Pe};return se.renderCommonMenuItem(fe,$e,at)},ke.store.setState({activeKey:Object(ee.a)(Object(ee.a)({},ke.store.getState().activeKey),{},Object(c.a)({},ke.eventKey,Je(ke,ke.activeKey)))}),se.instanceArray=[],se}return Object(k.a)(Xe,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(se){return this.props.visible||se.visible||this.props.className!==se.className||!f()(this.props.style,se.style)}},{key:"componentDidUpdate",value:function(se){var fe=this.props,$e="activeKey"in fe?fe.activeKey:fe.store.getState().activeKey[we(fe)],Pe=Je(fe,$e);if(Pe!==$e)Oe(fe.store,we(fe),Pe);else if("activeKey"in se){var it=Je(se,se.activeKey);Pe!==it&&Oe(fe.store,we(fe),Pe)}}},{key:"render",value:function(){var se=this,fe=Object(R.a)({},this.props);this.instanceArray=[];var $e=a()(fe.prefixCls,fe.className,"".concat(fe.prefixCls,"-").concat(fe.mode)),Pe={className:$e,role:fe.role||"menu"};fe.id&&(Pe.id=fe.id),fe.focusable&&(Pe.tabIndex=0,Pe.onKeyDown=this.onKeyDown);var it=fe.prefixCls,at=fe.eventKey,Ne=fe.visible,Ve=fe.level,tt=fe.mode,ft=fe.overflowedIndicator,Ct=fe.theme;return Ge.forEach(function(zt){return delete fe[zt]}),delete fe.onClick,j.createElement(At,Object.assign({},fe,{prefixCls:it,mode:tt,tag:"ul",level:Ve,theme:Ct,visible:Ne,overflowedIndicator:ft},Pe),j.Children.map(fe.children,function(zt,qt){return se.renderMenuItem(zt,qt,at||"0-menu-")}))}}]),Xe}(j.Component);He.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:F};var nt=Object(U.b)()(He),Te=nt,ge=N("Kwbf");function be(gt,qe,Xe){var ke=gt.prefixCls,se=gt.motion,fe=gt.defaultMotions,$e=fe===void 0?{}:fe,Pe=gt.openAnimation,it=gt.openTransitionName,at=qe.switchingModeFromInline;if(se)return se;if(Object(n.a)(Pe)==="object"&&Pe)Object(ge.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Pe=="string")return{motionName:"".concat(ke,"-open-").concat(Pe)};if(it)return{motionName:it};var Ne=$e[Xe];return Ne||(at?null:$e.other)}var re=function(gt){Object(B.a)(Xe,gt);var qe=Object(M.a)(Xe);function Xe(ke){var se;Object(K.a)(this,Xe),se=qe.call(this,ke),se.inlineOpenKeys=[],se.onSelect=function(Pe){var it=Object(z.a)(se),at=it.props;if(at.selectable){var Ne=se.store.getState(),Ve=Ne.selectedKeys,tt=Pe.key;at.multiple?Ve=Ve.concat([tt]):Ve=[tt],"selectedKeys"in at||se.store.setState({selectedKeys:Ve}),at.onSelect(Object(ee.a)(Object(ee.a)({},Pe),{},{selectedKeys:Ve}))}},se.onClick=function(Pe){var it=se.getRealMenuMode(),at=Object(z.a)(se),Ne=at.store,Ve=at.props.onOpenChange;it!=="inline"&&!("openKeys"in se.props)&&(Ne.setState({openKeys:[]}),Ve([])),se.props.onClick(Pe)},se.onKeyDown=function(Pe,it){se.innerMenu.getWrappedInstance().onKeyDown(Pe,it)},se.onOpenChange=function(Pe){var it=Object(z.a)(se),at=it.props,Ne=se.store.getState().openKeys.concat(),Ve=!1,tt=function(Ct){var zt=!1;if(Ct.open)zt=Ne.indexOf(Ct.key)===-1,zt&&Ne.push(Ct.key);else{var qt=Ne.indexOf(Ct.key);zt=qt!==-1,zt&&Ne.splice(qt,1)}Ve=Ve||zt};Array.isArray(Pe)?Pe.forEach(tt):tt(Pe),Ve&&("openKeys"in se.props||se.store.setState({openKeys:Ne}),at.onOpenChange(Ne))},se.onDeselect=function(Pe){var it=Object(z.a)(se),at=it.props;if(at.selectable){var Ne=se.store.getState().selectedKeys.concat(),Ve=Pe.key,tt=Ne.indexOf(Ve);tt!==-1&&Ne.splice(tt,1),"selectedKeys"in at||se.store.setState({selectedKeys:Ne}),at.onDeselect(Object(ee.a)(Object(ee.a)({},Pe),{},{selectedKeys:Ne}))}},se.onMouseEnter=function(Pe){se.restoreModeVerticalFromInline();var it=se.props.onMouseEnter;it&&it(Pe)},se.onTransitionEnd=function(Pe){var it=Pe.propertyName==="width"&&Pe.target===Pe.currentTarget,at=Pe.target.className,Ne=Object.prototype.toString.call(at)==="[object SVGAnimatedString]"?at.animVal:at,Ve=Pe.propertyName==="font-size"&&Ne.indexOf("anticon")>=0;(it||Ve)&&se.restoreModeVerticalFromInline()},se.setInnerMenu=function(Pe){se.innerMenu=Pe},se.isRootMenu=!0;var fe=ke.defaultSelectedKeys,$e=ke.defaultOpenKeys;return"selectedKeys"in ke&&(fe=ke.selectedKeys||[]),"openKeys"in ke&&($e=ke.openKeys||[]),se.store=Object(U.c)({selectedKeys:fe,openKeys:$e,activeKey:{"0-menu-":Je(ke,ke.activeKey)}}),se.state={switchingModeFromInline:!1},se}return Object(k.a)(Xe,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(se){this.updateOpentKeysWhenSwitchMode(se),this.updateMiniStore();var fe=this.props,$e=fe.siderCollapsed,Pe=fe.inlineCollapsed,it=fe.onOpenChange;(!se.inlineCollapsed&&Pe||!se.siderCollapsed&&$e)&&it([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(se){var fe=this.props,$e=this.store,Pe=this.inlineOpenKeys,it=$e.getState(),at={};se.mode==="inline"&&fe.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in fe||((fe.inlineCollapsed&&!se.inlineCollapsed||fe.siderCollapsed&&!se.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=it.openKeys.concat(),at.openKeys=[]),(!fe.inlineCollapsed&&se.inlineCollapsed||!fe.siderCollapsed&&se.siderCollapsed)&&(at.openKeys=Pe,this.inlineOpenKeys=[])),Object.keys(at).length&&$e.setState(at)}},{key:"updateMenuDisplay",value:function(){var se=this.props.collapsedWidth,fe=this.store,$e=this.prevOpenKeys,Pe=this.getInlineCollapsed()&&(se===0||se==="0"||se==="0px");Pe?(this.prevOpenKeys=fe.getState().openKeys.concat(),this.store.setState({openKeys:[]})):$e&&(this.store.setState({openKeys:$e}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var se=this.props.mode,fe=this.state.switchingModeFromInline,$e=this.getInlineCollapsed();return fe&&$e?"inline":$e?"vertical":se}},{key:"getInlineCollapsed",value:function(){var se=this.props,fe=se.inlineCollapsed,$e=se.siderCollapsed;return $e!==void 0?$e:fe}},{key:"restoreModeVerticalFromInline",value:function(){var se=this.state.switchingModeFromInline;se&&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 se=Object(ee.a)({},Object(_.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),fe=this.getRealMenuMode();return se.className+=" ".concat(se.prefixCls,"-root"),se.direction==="rtl"&&(se.className+=" ".concat(se.prefixCls,"-rtl")),se=Object(ee.a)(Object(ee.a)({},se),{},{mode:fe,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:be(this.props,this.state,fe)}),delete se.openAnimation,delete se.openTransitionName,j.createElement(U.a,{store:this.store},j.createElement(Te,Object.assign({},se,{ref:this.setInnerMenu}),this.props.children))}}]),Xe}(j.Component);re.defaultProps={selectable:!0,onClick:F,onSelect:F,onOpenChange:F,onDeselect:F,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:j.createElement("span",null,"\xB7\xB7\xB7")};var ie=re,ce=function(gt){Object(B.a)(Xe,gt);var qe=Object(M.a)(Xe);function Xe(){var ke;return Object(K.a)(this,Xe),ke=qe.apply(this,arguments),ke.onKeyDown=function(se){var fe=se.keyCode;return fe===g.a.ENTER?(ke.onClick(se),!0):void 0},ke.onMouseLeave=function(se){var fe=ke.props,$e=fe.eventKey,Pe=fe.onItemHover,it=fe.onMouseLeave;Pe({key:$e,hover:!1}),it({key:$e,domEvent:se})},ke.onMouseEnter=function(se){var fe=ke.props,$e=fe.eventKey,Pe=fe.onItemHover,it=fe.onMouseEnter;Pe({key:$e,hover:!0}),it({key:$e,domEvent:se})},ke.onClick=function(se){var fe=ke.props,$e=fe.eventKey,Pe=fe.multiple,it=fe.onClick,at=fe.onSelect,Ne=fe.onDeselect,Ve=fe.isSelected,tt={key:$e,keyPath:[$e],item:Object(z.a)(ke),domEvent:se};it(tt),Pe?Ve?Ne(tt):at(tt):Ve||at(tt)},ke.saveNode=function(se){ke.node=se},ke}return Object(k.a)(Xe,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var se=this.props;se.onDestroy&&se.onDestroy(se.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 se,fe=Object(ee.a)({},this.props),$e=a()(this.getPrefixCls(),fe.className,(se={},Object(c.a)(se,this.getActiveClassName(),!fe.disabled&&fe.active),Object(c.a)(se,this.getSelectedClassName(),fe.isSelected),Object(c.a)(se,this.getDisabledClassName(),fe.disabled),se)),Pe=Object(ee.a)(Object(ee.a)({},fe.attribute),{},{title:typeof fe.title=="string"?fe.title:void 0,className:$e,role:fe.role||"menuitem","aria-disabled":fe.disabled});fe.role==="option"?Pe=Object(ee.a)(Object(ee.a)({},Pe),{},{role:"option","aria-selected":fe.isSelected}):(fe.role===null||fe.role==="none")&&(Pe.role="none");var it={onClick:fe.disabled?null:this.onClick,onMouseLeave:fe.disabled?null:this.onMouseLeave,onMouseEnter:fe.disabled?null:this.onMouseEnter},at=Object(ee.a)({},fe.style);fe.mode==="inline"&&(fe.direction==="rtl"?at.paddingRight=fe.inlineIndent*fe.level:at.paddingLeft=fe.inlineIndent*fe.level),Ge.forEach(function(Ve){return delete fe[Ve]}),delete fe.direction;var Ne=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(Ne=j.createElement(this.props.itemIcon,this.props)),j.createElement("li",Object.assign({},Object(_.default)(fe,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Pe,it,{style:at,ref:this.saveNode}),fe.children,Ne)}}]),Xe}(j.Component);ce.isMenuItem=!0,ce.defaultProps={onSelect:F,onMouseEnter:F,onMouseLeave:F,manualRef:F};var Ee=Object(U.b)(function(gt,qe){var Xe=gt.activeKey,ke=gt.selectedKeys,se=qe.eventKey,fe=qe.subMenuKey;return{active:Xe[fe]===se,isSelected:ke.indexOf(se)!==-1}})(ce),Be=Ee,Ie=function(gt){Object(B.a)(Xe,gt);var qe=Object(M.a)(Xe);function Xe(){var ke;return Object(K.a)(this,Xe),ke=qe.apply(this,arguments),ke.renderInnerMenuItem=function(se){var fe=ke.props,$e=fe.renderMenuItem,Pe=fe.index;return $e(se,Pe,ke.props.subMenuKey)},ke}return Object(k.a)(Xe,[{key:"render",value:function(){var se=Object(R.a)({},this.props),fe=se.className,$e=fe===void 0?"":fe,Pe=se.rootPrefixCls,it="".concat(Pe,"-item-group-title"),at="".concat(Pe,"-item-group-list"),Ne=se.title,Ve=se.children;return Ge.forEach(function(tt){return delete se[tt]}),delete se.onClick,delete se.direction,j.createElement("li",Object.assign({},se,{className:"".concat($e," ").concat(Pe,"-item-group")}),j.createElement("div",{className:it,title:typeof Ne=="string"?Ne:void 0},Ne),j.createElement("ul",{className:at},j.Children.map(Ve,this.renderInnerMenuItem)))}}]),Xe}(j.Component);Ie.isMenuItemGroup=!0,Ie.defaultProps={disabled:!0};var ut=Ie,bt=function(qe){var Xe=qe.className,ke=qe.rootPrefixCls,se=qe.style;return j.createElement("li",{className:"".concat(Xe," ").concat(ke,"-item-divider"),style:se})};bt.defaultProps={disabled:!0,className:"",style:{}};var Tt=bt,xt=de.e=ie},"24hK":function(et,de,N){"use strict";N.d(de,"a",function(){return k});var ee=N("JYp7"),K=function(){function z(B){this.element=B,this.next=z.Undefined,this.prev=z.Undefined}return z.Undefined=new z(void 0),z}(),k=function(){function z(){this._first=K.Undefined,this._last=K.Undefined,this._size=0}return Object.defineProperty(z.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),z.prototype.isEmpty=function(){return this._first===K.Undefined},z.prototype.clear=function(){this._first=K.Undefined,this._last=K.Undefined,this._size=0},z.prototype.unshift=function(B){return this._insert(B,!1)},z.prototype.push=function(B){return this._insert(B,!0)},z.prototype._insert=function(B,M){var j=this,U=new K(B);if(this._first===K.Undefined)this._first=U,this._last=U;else if(M){var _=this._last;this._last=U,U.prev=_,_.next=U}else{var R=this._first;this._first=U,U.next=R,R.prev=U}this._size+=1;var c=!1;return function(){c||(c=!0,j._remove(U))}},z.prototype.shift=function(){if(this._first===K.Undefined)return;var B=this._first.element;return this._remove(this._first),B},z.prototype.pop=function(){if(this._last===K.Undefined)return;var B=this._last.element;return this._remove(this._last),B},z.prototype._remove=function(B){if(B.prev!==K.Undefined&&B.next!==K.Undefined){var M=B.prev;M.next=B.next,B.next.prev=M}else B.prev===K.Undefined&&B.next===K.Undefined?(this._first=K.Undefined,this._last=K.Undefined):B.next===K.Undefined?(this._last=this._last.prev,this._last.next=K.Undefined):B.prev===K.Undefined&&(this._first=this._first.next,this._first.prev=K.Undefined);this._size-=1},z.prototype.iterator=function(){var B,M=this._first;return{next:function(){return M===K.Undefined?ee.c:(B?B.value=M.element:B={done:!1,value:M.element},M=M.next,B)}}},z.prototype.toArray=function(){for(var B=[],M=this._first;M!==K.Undefined;M=M.next)B.push(M.element);return B},z}()},"4qgm":function(et,de){et.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAwCAYAAABE1blzAAAIeUlEQVRoQ72aa2wU1xXHf2dm1jYEBClJGgofIFJLU0W04AdQWgJSW0UprZRIpB/aJBTxStIShWchJvbytA2lBCKKeajhQ5s2tGpFK1G1UowqKNjYBkraJCqqiCDEDZSncezdmTnVnd2FxaztmfWaa632w9459/7v75xzz71j4R61ssM6TkrYqMon3qesPjFNLt6LoWWgB5n1ttr/GcMCLKrE5qFgPJf3gRXN5XJgoMcfUIFlR/QxiqgVhyfVA/MxTWKgPuZvL51UtUyTjwdK6IAI/NLbWlQylhctWC0xPuN35Zi+gFUMfpIzoqxsLpffDoTIggssb9KvqLBJYnxD3dvUepq8OIAPquxzfCobJ8v5QgotmMAxDVoyYjAvi81KcRiWk1qPKm/RPIvHqy2T5FeFElkQgeVNWq42m8TmcU0G8ZVXC2ia5vOW47Lq2BQ5m5ehrIf6JbC0WQdbsMSH5ZbNED/R3+mYDHSL5kcqVLZOZB8imq/lvAWWHdWpOGySIqYEwvKk1mtsmtl5/M72WNk4Wf6dj8jIAqce1qGJEparsgSHQVoIar3M3GRadWnDp+rb5eyJi0RaykgCy47q9DS1srDUvLRzme+YFXhg5CY2YD4uf/RdVrROkffCG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ATfTd5klozZ2vAR6b8U3GJHttlcUdzGgFF9J8gbyvmb/nFrHuX6E4D7/YXWwTurLWJQnnbMGPLnlADu0SP7bK4ozmNQLe6pZn2wwGrbv8PSygpSs9Cw9cAAAAASUVORK5CYII="},"55Ip":function(et,de,N){"use strict";N.d(de,"a",function(){return o}),N.d(de,"b",function(){return A});var ee=N("Ty5D"),K=N("dI71"),k=N("q1tI"),z=N.n(k),B=N("YS25"),M=N("17x9"),j=N.n(M),U=N("wx14"),_=N("zLVn"),R=N("9R94"),c=function(h){Object(K.a)(s,h);function s(){for(var D,T=arguments.length,S=new Array(T),I=0;I=0||T.relatedTarget.className.indexOf("".concat(W,"-next"))>=0))return;h.setState({goInputText:""}),C(h.getValidValue())},h.go=function(T){var S=h.state.goInputText;if(S==="")return;(T.keyCode===y.ENTER||T.type==="click")&&(h.setState({goInputText:""}),h.props.quickGo(h.getValidValue()))},h}return Object(B.a)(p,[{key:"getValidValue",value:function(){var s=this.state,l=s.goInputText,D=s.current;return!l||isNaN(l)?D:Number(l)}},{key:"getPageSizeOptions",value:function(){var s=this.props,l=s.pageSize,D=s.pageSizeOptions;return D.some(function(T){return T.toString()===l.toString()})?D:D.concat([l.toString()]).sort(function(T,S){var I=isNaN(Number(T))?0:Number(T),C=isNaN(Number(S))?0:Number(S);return I-C})}},{key:"render",value:function(){var s=this,l=this.props,D=l.pageSize,T=l.locale,S=l.rootPrefixCls,I=l.changeSize,C=l.quickGo,W=l.goButton,Y=l.selectComponentClass,H=l.buildOptionText,F=l.selectPrefixCls,q=l.disabled,le=this.state.goInputText,pe="".concat(S,"-options"),Ae=Y,Ge=null,Fe=null,Ue=null;if(!I&&!C)return null;var _e=this.getPageSizeOptions();if(I&&Ae){var je=_e.map(function(xe,he){return _.a.createElement(Ae.Option,{key:he,value:xe.toString()},(H||s.buildOptionText)(xe))});Ge=_.a.createElement(Ae,{disabled:q,prefixCls:F,showSearch:!1,className:"".concat(pe,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(D||_e[0]).toString(),onChange:this.changeSize,getPopupContainer:function(he){return he.parentNode}},je)}return C&&(W&&(Ue=typeof W=="boolean"?_.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:q,className:"".concat(pe,"-quick-jumper-button")},T.jump_to_confirm):_.a.createElement("span",{onClick:this.go,onKeyUp:this.go},W)),Fe=_.a.createElement("div",{className:"".concat(pe,"-quick-jumper")},T.jump_to,_.a.createElement("input",{disabled:q,type:"text",value:le,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),T.page,Ue)),_.a.createElement("li",{className:"".concat(pe)},Ge,Fe)}}]),p}(_.a.Component);f.defaultProps={pageSizeOptions:["10","20","50","100"]};var m=f,a=N("N2Kk");function n(){}function o(O){return typeof O=="number"&&isFinite(O)&&Math.floor(O)===O}function u(O,A,p){return p}function x(O,A,p){var h=typeof O=="undefined"?A.pageSize:O;return Math.floor((p.total-1)/h)+1}var E=function(O){Object(M.a)(p,O);var A=Object(j.a)(p);function p(h){var s;Object(z.a)(this,p),s=A.call(this,h),s.getJumpPrevPage=function(){return Math.max(1,s.state.current-(s.props.showLessItems?3:5))},s.getJumpNextPage=function(){return Math.min(x(void 0,s.state,s.props),s.state.current+(s.props.showLessItems?3:5))},s.getItemIcon=function(I,C){var W=s.props.prefixCls,Y=I||_.a.createElement("button",{type:"button","aria-label":C,className:"".concat(W,"-item-link")});return typeof I=="function"&&(Y=_.a.createElement(I,Object(k.a)({},s.props))),Y},s.savePaginationNode=function(I){s.paginationNode=I},s.isValid=function(I){return o(I)&&I!==s.state.current},s.shouldDisplayQuickJumper=function(){var I=s.props,C=I.showQuickJumper,W=I.pageSize,Y=I.total;return Y<=W?!1:C},s.handleKeyDown=function(I){(I.keyCode===y.ARROW_UP||I.keyCode===y.ARROW_DOWN)&&I.preventDefault()},s.handleKeyUp=function(I){var C=s.getValidValue(I),W=s.state.currentInputValue;C!==W&&s.setState({currentInputValue:C}),I.keyCode===y.ENTER?s.handleChange(C):I.keyCode===y.ARROW_UP?s.handleChange(C-1):I.keyCode===y.ARROW_DOWN&&s.handleChange(C+1)},s.changePageSize=function(I){var C=s.state.current,W=x(I,s.state,s.props);C=C>W?W:C,W===0&&(C=s.state.current),typeof I=="number"&&("pageSize"in s.props||s.setState({pageSize:I}),"current"in s.props||s.setState({current:C,currentInputValue:C})),s.props.onShowSizeChange(C,I),"onChange"in s.props&&s.props.onChange&&s.props.onChange(C,I)},s.handleChange=function(I){var C=s.props.disabled,W=I;if(s.isValid(W)&&!C){var Y=x(void 0,s.state,s.props);W>Y?W=Y:W<1&&(W=1),"current"in s.props||s.setState({current:W,currentInputValue:W});var H=s.state.pageSize;return s.props.onChange(W,H),W}return s.state.current},s.prev=function(){s.hasPrev()&&s.handleChange(s.state.current-1)},s.next=function(){s.hasNext()&&s.handleChange(s.state.current+1)},s.jumpPrev=function(){s.handleChange(s.getJumpPrevPage())},s.jumpNext=function(){s.handleChange(s.getJumpNextPage())},s.hasPrev=function(){return s.state.current>1},s.hasNext=function(){return s.state.current2?W-2:0),H=2;H=D?S=D:S=Number(l),S}},{key:"getShowSizeChanger",value:function(){var s=this.props,l=s.showSizeChanger,D=s.total,T=s.totalBoundaryShowSizeChanger;return typeof l!="undefined"?l:D>T}},{key:"renderPrev",value:function(s){var l=this.props,D=l.prevIcon,T=l.itemRender,S=T(s,"prev",this.getItemIcon(D,"prev page")),I=!this.hasPrev();return Object(U.isValidElement)(S)?Object(U.cloneElement)(S,{disabled:I}):S}},{key:"renderNext",value:function(s){var l=this.props,D=l.nextIcon,T=l.itemRender,S=T(s,"next",this.getItemIcon(D,"next page")),I=!this.hasNext();return Object(U.isValidElement)(S)?Object(U.cloneElement)(S,{disabled:I}):S}},{key:"render",value:function(){var s=this,l=this.props,D=l.prefixCls,T=l.className,S=l.style,I=l.disabled,C=l.hideOnSinglePage,W=l.total,Y=l.locale,H=l.showQuickJumper,F=l.showLessItems,q=l.showTitle,le=l.showTotal,pe=l.simple,Ae=l.itemRender,Ge=l.showPrevNextJumpers,Fe=l.jumpPrevIcon,Ue=l.jumpNextIcon,_e=l.selectComponentClass,je=l.selectPrefixCls,xe=l.pageSizeOptions,he=this.state,te=he.current,ye=he.pageSize,ue=he.currentInputValue;if(C===!0&&W<=ye)return null;var Le=x(void 0,this.state,this.props),ae=[],oe=null,Se=null,Me=null,We=null,Ke=null,Qe=H&&H.goButton,Ze=F?1:2,yt=te-1>0?te-1:0,vt=te+1=Ze*2&&te!==1+2&&(ae[0]=Object(U.cloneElement)(ae[0],{className:"".concat(D,"-item-after-jump-prev")}),ae.unshift(oe)),Le-te>=Ze*2&&te!==Le-2&&(ae[ae.length-1]=Object(U.cloneElement)(ae[ae.length-1],{className:"".concat(D,"-item-before-jump-next")}),ae.push(Se)),Je!==1&&ae.unshift(Me),st!==Le&&ae.push(We)}var Te=null;le&&(Te=_.a.createElement("li",{className:"".concat(D,"-total-text")},le(W,[W===0?0:(te-1)*ye+1,te*ye>W?W:te*ye])));var ge=!this.hasPrev()||!Le,be=!this.hasNext()||!Le;return _.a.createElement("ul",Object(ee.a)({className:c()(D,T,Object(K.a)({},"".concat(D,"-disabled"),I)),style:S,unselectable:"unselectable",ref:this.savePaginationNode},dt),Te,_.a.createElement("li",{title:q?Y.prev_page:null,onClick:this.prev,tabIndex:ge?null:0,onKeyPress:this.runIfEnterPrev,className:c()("".concat(D,"-prev"),Object(K.a)({},"".concat(D,"-disabled"),ge)),"aria-disabled":ge},this.renderPrev(yt)),ae,_.a.createElement("li",{title:q?Y.next_page:null,onClick:this.next,tabIndex:be?null:0,onKeyPress:this.runIfEnterNext,className:c()("".concat(D,"-next"),Object(K.a)({},"".concat(D,"-disabled"),be)),"aria-disabled":be},this.renderNext(vt)),_.a.createElement(m,{disabled:I,locale:Y,rootPrefixCls:D,selectComponentClass:_e,selectPrefixCls:je,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:te,pageSize:ye,pageSizeOptions:xe,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Qe}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var D={};if("current"in s&&(D.current=s.current,s.current!==l.current&&(D.currentInputValue=D.current)),"pageSize"in s&&s.pageSize!==l.pageSize){var T=l.current,S=x(s.pageSize,l,s);T=T>S?S:T,"current"in s||(D.current=T,D.currentInputValue=T),D.pageSize=s.pageSize}return D}}]),p}(_.a.Component);E.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:n,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:n,locale:a.a,style:{},itemRender:u,totalBoundaryShowSizeChanger:50};var v=E},"6RRn":function(et,de,N){"use strict";var ee=N("wCXF"),K=N("n6Qo");N.d(de,"b",function(){return K.a});var k=N("IBYe"),z=N("6eGT"),B=N("hW8S");N.d(de,"a",function(){return B.a}),de.c=ee.b},"6eGT":function(et,de,N){"use strict";function ee(K){return null}de.a=ee},"746U":function(et,de,N){"use strict";N.d(de,"d",function(){return K}),N.d(de,"j",function(){return k}),N.d(de,"i",function(){return z}),N.d(de,"h",function(){return B}),N.d(de,"e",function(){return M}),N.d(de,"k",function(){return j}),N.d(de,"l",function(){return U}),N.d(de,"a",function(){return _}),N.d(de,"f",function(){return c}),N.d(de,"g",function(){return g}),N.d(de,"m",function(){return w}),N.d(de,"c",function(){return m}),N.d(de,"b",function(){return a}),N.d(de,"n",function(){return n}),N.d(de,"o",function(){return o});var ee={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function K(u){return Array.isArray?Array.isArray(u):!!(u&&typeof u.length===ee.number&&u.constructor===Array)}function k(u){return typeof u===ee.string||u instanceof String}function z(u){return typeof u===ee.object&&u!==null&&!Array.isArray(u)&&!(u instanceof RegExp)&&!(u instanceof Date)}function B(u){return(typeof u===ee.number||u instanceof Number)&&!isNaN(u)}function M(u){return u===!0||u===!1}function j(u){return typeof u===ee.undefined}function U(u){return j(u)||u===null}function _(u,x){if(!u)throw new Error(x?"Unexpected type, expected '"+x+"'":"Unexpected type")}var R=Object.prototype.hasOwnProperty;function c(u){if(!z(u))return!1;for(var x in u)if(R.call(u,x))return!1;return!0}function g(u){return typeof u===ee.function}function w(u,x){for(var E=Math.min(u.length,x.length),v=0;v1&&arguments[1]!==void 0?arguments[1]:0,f=(j[w[y+0]]+j[w[y+1]]+j[w[y+2]]+j[w[y+3]]+"-"+j[w[y+4]]+j[w[y+5]]+"-"+j[w[y+6]]+j[w[y+7]]+"-"+j[w[y+8]]+j[w[y+9]]+"-"+j[w[y+10]]+j[w[y+11]]+j[w[y+12]]+j[w[y+13]]+j[w[y+14]]+j[w[y+15]]).toLowerCase();if(!M(f))throw TypeError("Stringified UUID is invalid");return f}var R=_;function c(w,y,f){w=w||{};var m=w.random||(w.rng||k)();if(m[6]=m[6]&15|64,m[8]=m[8]&63|128,y){f=f||0;for(var a=0;a<16;++a)y[f+a]=m[a];return y}return R(m)}var g=de.a=c},"7ZXX":function(et,de,N){et.exports=N.p+"static/err.6e7c5817.png"},"7ahc":function(et,de,N){"use strict";N.d(de,"a",function(){return x});var ee=N("k1fw"),K=N("0Owb"),k=N("+L6B"),z=N("2/Rp"),B=N("y8nQ"),M=N("Vl3Y"),j=N("tJVT"),U=N("OaEy"),_=N("2fM7"),R=N("q1tI"),c=N.n(R),g=N("VrN/"),w=N.n(g),y=N("p77/"),f=N.n(y),m=N("c5Ni"),a=N.n(m),n=_.a.Option,o={labelCol:{span:4},wrapperCol:{span:20}},u={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};de.b=function(E){var v=E.callback,O=E.onCancel,A=Object(R.useState)("python"),p=Object(j.a)(A,2),h=p[0],s=p[1];function l(T){s(u[T][1])}function D(T){v(T)}return c.a.createElement(M.a,Object(K.a)({},o,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:D}),c.a.createElement(M.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},c.a.createElement(_.a,{onChange:l},Object.keys(u).map(function(T){return c.a.createElement(n,{key:T,value:T},u[T][0])}))),c.a.createElement(M.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},c.a.createElement(x,{mode:h})),c.a.createElement("div",{className:"flex-container flex-end"},c.a.createElement(z.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),c.a.createElement(z.a,{type:"ghost",onClick:O},"\u53D6\u6D88")))};function x(E){var v=E.value,O=E.onChange,A=E.mode,p=E.options,h=p===void 0?{}:p,s=Object(R.useRef)(),l=Object(R.useState)(),D=Object(j.a)(l,2),T=D[0],S=D[1];return Object(R.useEffect)(function(){if(T){function I(C){var W=C.getValue();O&&O(W)}return T.on("change",I),function(){T.off("change",I)}}},[T,O]),Object(R.useEffect)(function(){T&&T.setOption("mode",A)},[T,A]),Object(R.useEffect)(function(){T&&((v!==T.getValue()||v==="")&&setTimeout(function(){T.setValue(v||" ")},300))},[T,v]),Object(R.useEffect)(function(){if(s.current&&!T){var I=w.a.fromTextArea(s.current,Object(ee.a)({mode:A,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},h));S(I)}},[s.current,T]),c.a.createElement("div",{className:"my-codemirror-container"},c.a.createElement("textarea",{ref:s}))}},"7ixt":function(et,de,N){"use strict";N.d(de,"a",function(){return k});var ee={adjustX:1,adjustY:1},K=[0,0],k={left:{points:["cr","cl"],overflow:ee,offset:[-4,0],targetOffset:K},right:{points:["cl","cr"],overflow:ee,offset:[4,0],targetOffset:K},top:{points:["bc","tc"],overflow:ee,offset:[0,-4],targetOffset:K},bottom:{points:["tc","bc"],overflow:ee,offset:[0,4],targetOffset:K},topLeft:{points:["bl","tl"],overflow:ee,offset:[0,-4],targetOffset:K},leftTop:{points:["tr","tl"],overflow:ee,offset:[-4,0],targetOffset:K},topRight:{points:["br","tr"],overflow:ee,offset:[0,-4],targetOffset:K},rightTop:{points:["tl","tr"],overflow:ee,offset:[4,0],targetOffset:K},bottomRight:{points:["tr","br"],overflow:ee,offset:[0,4],targetOffset:K},rightBottom:{points:["bl","br"],overflow:ee,offset:[4,0],targetOffset:K},bottomLeft:{points:["tl","bl"],overflow:ee,offset:[0,4],targetOffset:K},leftBottom:{points:["br","bl"],overflow:ee,offset:[-4,0],targetOffset:K}},z=k},"7v3h":function(et,de,N){et.exports=N.p+"static/empty2.dd73f390.png"},"8/bI":function(et,de,N){et.exports=N.p+"static/empty.8918e228.png"},"815F":function(et,de,N){"use strict";N.d(de,"e",function(){return j}),N.d(de,"c",function(){return _}),N.d(de,"d",function(){return R}),N.d(de,"a",function(){return g}),N.d(de,"f",function(){return w}),N.d(de,"b",function(){return y});var ee=N("KQm4"),K=N("VTBJ"),k=N("Ff2n"),z=N("Zm9Q"),B=N("Kwbf"),M=N("OZM5");function j(f,m){return f!=null?f:m}function U(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],m=new Map;function a(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(n||[]).forEach(function(u){var x=u.key,E=u.children;Object(B.a)(x!=null,"Tree node must have a certain key: [".concat(o).concat(x,"]"));var v=String(x);Object(B.a)(!m.has(v)||x===null||x===void 0,"Same 'key' exist in the Tree: ".concat(v)),m.set(v,!0),a(E,"".concat(o).concat(v," > "))})}a(f)}function _(f){function m(a){var n=Object(z.a)(a);return n.map(function(o){if(!Object(M.i)(o))return Object(B.a)(!o,"Tree/TreeNode can only accept TreeNode as children."),null;var u=o.key,x=o.props,E=x.children,v=Object(k.a)(x,["children"]),O=Object(K.a)({key:u},v),A=m(E);return A.length&&(O.children=A),O}).filter(function(o){return o})}return m(f)}function R(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=new Set(m===!0?[]:m),n=[];function o(u){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map(function(E,v){var O=Object(M.h)(x?x.pos:"0",v),A=j(E.key,O),p=Object(K.a)(Object(K.a)({},E),{},{parent:x,pos:O,children:null,data:E,isStart:[].concat(Object(ee.a)(x?x.isStart:[]),[v===0]),isEnd:[].concat(Object(ee.a)(x?x.isEnd:[]),[v===u.length-1])});return n.push(p),m===!0||a.has(A)?p.children=o(E.children||[],p):p.children=[],p})}return o(f),n}function c(f,m,a){var n;a?typeof a=="string"?n=function(x){return x[a]}:typeof a=="function"&&(n=function(x){return a(x)}):n=function(x,E){return j(x.key,E)};function o(u,x,E){var v=u?u.children:f,O=u?Object(M.h)(E.pos,x):"0";if(u){var A=n(u,O),p={node:u,index:x,pos:O,key:A,parentPos:E.node?E.pos:null,level:E.level+1};m(p)}v&&v.forEach(function(h,s){o(h,s,{node:u,pos:O,level:E?E.level+1:-1})})}o(null)}function g(f){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=m.initWrapper,n=m.processEntity,o=m.onProcessFinished,u=arguments.length>2?arguments[2]:void 0,x={},E={},v={posEntities:x,keyEntities:E};return a&&(v=a(v)||v),c(f,function(O){var A=O.node,p=O.index,h=O.pos,s=O.key,l=O.parentPos,D=O.level,T={node:A,index:p,key:s,pos:h,level:D},S=j(s,h);x[h]=T,E[S]=T,T.parent=x[l],T.parent&&(T.parent.children=T.parent.children||[],T.parent.children.push(T)),n&&n(T,v)},u),o&&o(v),v}function w(f,m){var a=m.expandedKeys,n=m.selectedKeys,o=m.loadedKeys,u=m.loadingKeys,x=m.checkedKeys,E=m.halfCheckedKeys,v=m.dragOverNodeKey,O=m.dropPosition,A=m.keyEntities,p=A[f],h={eventKey:f,expanded:a.indexOf(f)!==-1,selected:n.indexOf(f)!==-1,loaded:o.indexOf(f)!==-1,loading:u.indexOf(f)!==-1,checked:x.indexOf(f)!==-1,halfChecked:E.indexOf(f)!==-1,pos:String(p?p.pos:""),dragOver:v===f&&O===0,dragOverGapTop:v===f&&O===-1,dragOverGapBottom:v===f&&O===1};return h}function y(f){var m=f.data,a=f.expanded,n=f.selected,o=f.checked,u=f.loaded,x=f.loading,E=f.halfChecked,v=f.dragOver,O=f.dragOverGapTop,A=f.dragOverGapBottom,p=f.pos,h=f.active,s=Object(K.a)(Object(K.a)({},m),{},{expanded:a,selected:n,checked:o,loaded:u,loading:x,halfChecked:E,dragOver:v,dragOverGapTop:O,dragOverGapBottom:A,pos:p,active:h});return"props"in s||Object.defineProperty(s,"props",{get:function(){return Object(B.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),f}}),s}},"8EBN":function(et,de,N){(function(ee){ee(N("VrN/"))})(function(ee){"use strict";ee.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var K=0;K-1&&z.substring(j+1,z.length);if(U)return ee.findModeByExtension(U)},ee.findModeByName=function(z){z=z.toLowerCase();for(var B=0;B0&&w[w.length-1])&&(a[0]===6||a[0]===2)){R=0;continue}if(a[0]===3&&(!w||a[1]>w[0]&&a[1]=V.length?J.slice(V.length):J}).join(` `)}var a=[],n=["

    "],o=new y.a.Renderer,u=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function x(){a.length=0,n=["
      "]}var E={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function v(G,b,L,V){if(b>=G.length||G[b].level<=L)return b;var J=G[b];V.push("
    • "+J.text+""),b++;var Q=[];return b=v(G,b,J.level,Q),Q.length>0&&(V.push("
        "),Q.forEach(function(De){V.push(De)}),V.push("
      ")),V.push("
    • "),b=v(G,b,L,V),b}function O(){return v(a,0,0,n),n.push("
    "),n.join("")}var A={heading:function(b){var L=u.exec(b);if(L)return{type:"heading",raw:L[0],depth:L[1].length,text:L[2]}},fences:function(b){var L=this.rules.block.fences.exec(b);if(L){var V=L[0],J=m(V,L[3]||""),Q=L[2]?L[2].trim():L[2];if(["latex","katex","math"].indexOf(Q)>=0){var De=s(),ot=J;J=De,l[De]={type:"block",expression:ot}}return{type:"code",raw:V,lang:Q,text:J}}}},p=/(?:\${2})([^\n`]+?)(?:\${2})/gi,h=0,s=function(){return"__special_katext_id_".concat(h++,"__")},l={};function D(){return l}function T(){h=0,l={}}function S(G){return G=G.replace(p,function(b,L){var V=s();return l[V]={type:"inline",expression:L},V}),G}var I=o.listitem;o.listitem=function(G){return I(S(G))};var C=o.paragraph;o.paragraph=function(G){return C(S(G))};var W=o.tablecell;o.tablecell=function(G,b){return W(S(G),b)},o.code=function(G,b,L){var V=(b||"").match(/\S*/)[0];return V?["latex","katex","math"].indexOf(V)>=0?"

    ".concat(G,"

    "):'
    ').concat(L?G:Object(f.escape)(G,!0),`
    `):'
    '+(L?G:Object(f.escape)(G,!0))+"
    "},o.heading=function(G,b,L){var V=this.options.headerPrefix+L.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return a.push({anchor:V,level:b,text:G}),"'+G+""},y.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),y.a.use({tokenizer:A,renderer:o});var Y=y.a,H=N("SJMd"),F=N("ulZh"),q=N.n(F),le=N("m3rI"),pe=N("Oy/b"),Ae=N("p5ED"),Ge=N("ErOA");/*! ***************************************************************************** @@ -129,7 +129,7 @@ PERFORMANCE OF THIS SOFTWARE. `,ve.style.marginLeft="5px",Ft.appendChild(ve)}var Gt=document.createElement("div");Gt.style.display="flex",Gt.style.alignItems="center",Gt.style.minHeight="20px",Gt.style.flexGrow="2";var en=document.createElement("hr");if(en.style.minWidth="20px",en.style.border="0px",en.style.borderTop="3px solid "+(Q.uiStyleSettings!==void 0?Q.uiStyleSettings.toolboxColor:"#eeeeee"),en.style.flexGrow="2",Gt.appendChild(en),Ft.appendChild(Gt),Ot==="both"||Ot==="end"){var Tn=document.createElement("div");Tn.style.display="flex",Tn.style.alignItems="center",Tn.style.minHeight="20px",Tn.innerHTML=` - `,Tn.style.marginRight="5px",Ft.appendChild(Tn)}Q.typeBoxes.push(Ft)},Q=this,De=0;De<4;De++)J(De);return V},b.prototype.setCurrentType=function(L,V){var J=this;this.currentType=L,this.typeBoxes.forEach(function(Q){Q.style.borderColor=Q===V?J.uiStyleSettings!==void 0?J.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},b}(We),be=function(G){function b(L,V,J){var Q=G.call(this,L,V,J)||this;return Q.arrowType="end",Q.arrowBaseHeight=10,Q.arrowBaseWidth=10,Q.getArrowPoints=Q.getArrowPoints.bind(Q),Q.setArrowType=Q.setArrowType.bind(Q),Q.arrowTypePanel=new ge("Arrow type","end"),Q.arrowTypePanel.onArrowTypeChanged=Q.setArrowType,Q}return Ue(b,G),b.prototype.ownsTarget=function(L){return!(!G.prototype.ownsTarget.call(this,L)&&L!==this.arrow1&&L!==this.arrow2)},b.prototype.getArrowPoints=function(L,V){var J=this.arrowBaseWidth+2*this.strokeWidth,Q=this.arrowBaseHeight+2*this.strokeWidth;return L-J/2+","+(V+Q/2)+" "+L+","+(V-Q/2)+" "+(L+J/2)+","+(V+Q/2)},b.prototype.createTips=function(){this.arrow1=he.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(he.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=he.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(he.createTransform()),this.visual.appendChild(this.arrow2)},b.prototype.pointerDown=function(L,V){G.prototype.pointerDown.call(this,L,V),this.state==="creating"&&this.createTips()},b.prototype.adjustVisual=function(){if(G.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2&&(this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",he.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),he.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var L=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),V=this.arrow1.transform.baseVal.getItem(0);V.setRotate(L,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(V,0);var J=this.arrow2.transform.baseVal.getItem(0);J.setRotate(L+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(J,0)}},b.prototype.setArrowType=function(L){this.arrowType=L,this.adjustVisual(),this.stateChanged()},Object.defineProperty(b.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),b.prototype.getState=function(){var L=Object.assign({arrowType:this.arrowType},G.prototype.getState.call(this));return L.typeName=b.typeName,L},b.prototype.restoreState=function(L){G.prototype.restoreState.call(this,L);var V=L;this.arrowType=V.arrowType,this.createTips(),this.adjustVisual()},b.typeName="ArrowMarker",b.title="Arrow marker",b.icon='',b}(st),re=function(G){function b(L,V,J){var Q=G.call(this,L,V,J)||this;return Q.fillColor=J.defaultFillColor,Q.strokeWidth=0,Q.fillPanel=new Ke("Color",J.defaultColorSet,J.defaultFillColor),Q.fillPanel.onColorChanged=Q.setFillColor,Q}return Ue(b,G),Object.defineProperty(b.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),b.prototype.getState=function(){var L=G.prototype.getState.call(this);return L.typeName=b.typeName,L},b.typeName="CoverMarker",b.title="Cover marker",b.icon='',b}(pt),ie=function(G){function b(L,V,J,Q){var De=G.call(this,L,Q||'')||this;return De.opacities=[],De.opacityBoxes=[],De.opacities=V,De.currentOpacity=J,De.setCurrentOpacity=De.setCurrentOpacity.bind(De),De}return Ue(b,G),b.prototype.getUi=function(){var L=this,V=document.createElement("div");return V.style.display="flex",V.style.overflow="hidden",V.style.flexGrow="2",V.style.justifyContent="space-between",this.opacities.forEach(function(J){var Q=document.createElement("div");Q.style.display="flex",Q.style.alignItems="center",Q.style.justifyContent="center",Q.style.padding="5px",Q.style.borderWidth="2px",Q.style.borderStyle="solid",Q.style.borderColor=J===L.currentOpacity?L.uiStyleSettings.toolboxAccentColor:"transparent",Q.addEventListener("click",function(){L.setCurrentOpacity(J,Q)}),V.appendChild(Q);var De=document.createElement("div");De.innerText=100*J+"%",Q.appendChild(De),L.opacityBoxes.push(Q)}),V},b.prototype.setCurrentOpacity=function(L,V){var J=this;this.currentOpacity=L,this.opacityBoxes.forEach(function(Q){Q.style.borderColor=Q===V?J.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},b}(We),ce=function(G){function b(L,V,J){var Q=G.call(this,L,V,J)||this;return Q.setOpacity=Q.setOpacity.bind(Q),Q.fillColor=J.defaultHighlightColor,Q.strokeWidth=0,Q.opacity=J.defaultHighlightOpacity,Q.fillPanel=new Ke("Color",J.defaultColorSet,Q.fillColor),Q.fillPanel.onColorChanged=Q.setFillColor,Q.opacityPanel=new ie("Opacity",J.defaultOpacitySteps,Q.opacity),Q.opacityPanel.onOpacityChanged=Q.setOpacity,Q}return Ue(b,G),b.prototype.setOpacity=function(L){this.opacity=L,this.visual&&he.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(b.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),b.prototype.getState=function(){var L=G.prototype.getState.call(this);return L.typeName=b.typeName,L},b.typeName="HighlightMarker",b.title="Highlight marker",b.icon='',b}(re),Ee='',Be=function(G){function b(L,V,J){var Q=G.call(this,L,V,J)||this;return Q.bgColor="transparent",Q.tipPosition={x:0,y:0},Q.tipBase1Position={x:0,y:0},Q.tipBase2Position={x:0,y:0},Q.tipMoving=!1,Q.color=J.defaultStrokeColor,Q.bgColor=J.defaultFillColor,Q.fontFamily=J.defaultFontFamily,Q.defaultSize={x:100,y:30},Q.setBgColor=Q.setBgColor.bind(Q),Q.getTipPoints=Q.getTipPoints.bind(Q),Q.positionTip=Q.positionTip.bind(Q),Q.setTipPoints=Q.setTipPoints.bind(Q),Q.colorPanel=new Ke("Text color",J.defaultColorSet,Q.color,''),Q.colorPanel.onColorChanged=Q.setColor,Q.bgColorPanel=new Ke("Fill color",J.defaultColorSet,Q.bgColor,Ee),Q.bgColorPanel.onColorChanged=Q.setBgColor,Q.fontFamilyPanel=new He("Font",J.defaultFontFamilies,J.defaultFontFamily),Q.fontFamilyPanel.onFontChanged=Q.setFont,Q.tipGrip=new yt,Q.tipGrip.visual.transform.baseVal.appendItem(he.createTransform()),Q.controlBox.appendChild(Q.tipGrip.visual),Q}return Ue(b,G),b.prototype.ownsTarget=function(L){return G.prototype.ownsTarget.call(this,L)||this.tipGrip.ownsTarget(L)||this.tip===L},b.prototype.createTip=function(){he.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=he.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},b.prototype.pointerDown=function(L,V){this.state==="new"&&G.prototype.pointerDown.call(this,L,V),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(V)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):G.prototype.pointerDown.call(this,L,V)},b.prototype.pointerUp=function(L){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,G.prototype.pointerUp.call(this,L);else{var V=this.state==="creating";G.prototype.pointerUp.call(this,L),this.setTipPoints(V),this.positionTip()}},b.prototype.manipulate=function(L){if(this.tipMoving){var V=this.unrotatePoint(L);this.tipPosition={x:V.x-this.manipulationStartLeft,y:V.y-this.manipulationStartTop},this.positionTip()}else G.prototype.manipulate.call(this,L)},b.prototype.setBgColor=function(L){this.bgRectangle&&this.tip&&(he.setAttributes(this.bgRectangle,[["fill",L]]),he.setAttributes(this.tip,[["fill",L]])),this.bgColor=L,this.fillColorChanged(L)},b.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},b.prototype.setTipPoints=function(L){L===void 0&&(L=!1);var V=Math.min(this.height/2,15),J=this.height/5;L&&(this.tipPosition={x:V+J/2,y:this.height+20});var Q=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?Q.1)){var L=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),V=this.tip1.transform.baseVal.getItem(0);V.setRotate(L,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(V,0);var J=this.tip2.transform.baseVal.getItem(0);J.setRotate(L+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(J,0)}},Object.defineProperty(b.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),b.prototype.getState=function(){var L=G.prototype.getState.call(this);return L.typeName=b.typeName,L},b.prototype.restoreState=function(L){G.prototype.restoreState.call(this,L),this.createTips(),this.adjustVisual()},b.typeName="MeasurementMarker",b.title="Measurement marker",b.icon='',b}(st),bt=function(G){function b(L,V,J){var Q=G.call(this,L,V,J)||this;return Q.strokePanel.colors=J.defaultColorSet,Q.fillColor="transparent",Q}return Ue(b,G),Object.defineProperty(b.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),b.prototype.getState=function(){var L=G.prototype.getState.call(this);return L.typeName=b.typeName,L},b.typeName="EllipseFrameMarker",b.title="Ellipse frame marker",b.icon='',b}(Ie),Tt=function(){function G(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(G.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),G.prototype.addUndoStep=function(b){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(b)||(this.undoStack.push(b),JSON.stringify(this.lastRedoStep)!==JSON.stringify(b)&&this.redoStack.splice(0,this.redoStack.length))},G.prototype.replaceLastUndoStep=function(b){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=b)},G.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},G.prototype.undo=function(){if(this.undoStack.length>1){var b=this.undoStack.pop();return b!==void 0&&this.redoStack.push(b),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},G.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},G}(),xt=function(G){function b(L,V,J){var Q=G.call(this,L,V,J)||this;return Q.strokeColor="transparent",Q.strokeWidth=0,Q.strokeDasharray="",Q.curveX=0,Q.curveY=0,Q.manipulationStartCurveX=0,Q.manipulationStartCurveY=0,Q.setStrokeColor=Q.setStrokeColor.bind(Q),Q.setStrokeWidth=Q.setStrokeWidth.bind(Q),Q.setStrokeDasharray=Q.setStrokeDasharray.bind(Q),Q.positionGrips=Q.positionGrips.bind(Q),Q.addControlGrips=Q.addControlGrips.bind(Q),Q.adjustVisual=Q.adjustVisual.bind(Q),Q.setupControlBox=Q.setupControlBox.bind(Q),Q.resize=Q.resize.bind(Q),Q.strokeColor=J.defaultColor,Q.strokeWidth=J.defaultStrokeWidth,Q.strokeDasharray=J.defaultStrokeDasharray,Q.strokePanel=new Ke("Line color",J.defaultColorSet,J.defaultColor),Q.strokePanel.onColorChanged=Q.setStrokeColor,Q.strokeWidthPanel=new At("Line width",J.defaultStrokeWidths,J.defaultStrokeWidth),Q.strokeWidthPanel.onWidthChanged=Q.setStrokeWidth,Q.strokeStylePanel=new wt("Line style",J.defaultStrokeDasharrays,J.defaultStrokeDasharray),Q.strokeStylePanel.onStyleChanged=Q.setStrokeDasharray,Q}return Ue(b,G),b.prototype.ownsTarget=function(L){return!(!G.prototype.ownsTarget.call(this,L)&&L!==this.visual&&L!==this.selectorCurve&&L!==this.visibleCurve&&!this.curveGrip.ownsTarget(L))},b.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},b.prototype.createVisual=function(){this.visual=he.createGroup(),this.selectorCurve=he.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=he.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},b.prototype.pointerDown=function(L,V){G.prototype.pointerDown.call(this,L,V),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=L.x,this.curveY=L.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(V)&&(this.activeGrip=this.curveGrip,this._state="resize")},b.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),he.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),he.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),he.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},b.prototype.setupControlBox=function(){G.prototype.setupControlBox.call(this),this.curveControlLine1=he.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=he.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},b.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,G.prototype.addControlGrips.call(this)},b.prototype.positionGrips=function(){G.prototype.positionGrips.call(this);var L=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-L/2,this.curveY-L/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},b.prototype.manipulate=function(L){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+L.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+L.y-this.manipulationStartY),G.prototype.manipulate.call(this,L)},b.prototype.resize=function(L){this.activeGrip===this.curveGrip&&(this.curveX=L.x,this.curveY=L.y),G.prototype.resize.call(this,L),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},b.prototype.setStrokeColor=function(L){this.strokeColor=L,this.adjustVisual(),this.colorChanged(L)},b.prototype.setStrokeWidth=function(L){this.strokeWidth=L,this.adjustVisual()},b.prototype.setStrokeDasharray=function(L){this.strokeDasharray=L,this.adjustVisual()},b.prototype.scale=function(L,V){this.curveX=this.curveX*L,this.curveY=this.curveY*V,G.prototype.scale.call(this,L,V)},Object.defineProperty(b.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),b.prototype.getState=function(){var L=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},G.prototype.getState.call(this));return L.typeName=b.typeName,L},b.prototype.restoreState=function(L){G.prototype.restoreState.call(this,L);var V=L;this.strokeColor=V.strokeColor,this.strokeWidth=V.strokeWidth,this.strokeDasharray=V.strokeDasharray,this.curveX=V.curveX,this.curveY=V.curveY,this.createVisual(),this.adjustVisual()},b.typeName="CurveMarker",b.title="Curve marker",b.icon='',b}(Je),gt=function(){function G(b,L){L===void 0&&(L=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=b,this.cancelable=L}return Object.defineProperty(G.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),G.prototype.preventDefault=function(){this._defaultPrevented=!0},G}(),qe=function(G){function b(L,V,J){var Q=G.call(this,L,!1)||this;return Q.dataUrl=V,Q.state=J,Q}return Ue(b,G),b}(gt),Xe=function(G){function b(L,V,J){J===void 0&&(J=!1);var Q=G.call(this,L,J)||this;return Q.marker=V,Q}return Ue(b,G),b}(gt),Pe=function(){function G(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return G.prototype.addEventListener=function(b,L){this[b].push(L)},G.prototype.removeEventListener=function(b,L){var V=this[b].indexOf(L);V>-1&&this[b].splice(V,1)},G}(),se=function(){function G(b){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new we,this._isOpen=!1,this.undoRedoManager=new Tt,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new Pe,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=G.instanceCounter++,this.styles=new Le(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=b,this.targetRoot=document.body,this.width=b.clientWidth,this.height=b.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(G.prototype,"ALL_MARKER_TYPES",{get:function(){return[Oe,Te,be,nt,bt,Ie,ce,Be,ut,re,st,xt]},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Oe,Te,be,nt,Ie,ce,Be]},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Oe,Te,be,nt,ce]},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(b){var L=this;this._availableMarkerTypes.splice(0),b.forEach(function(V){if(typeof V=="string"){var J=L.ALL_MARKER_TYPES.find(function(Q){return Q.typeName===V});J!==void 0&&L._availableMarkerTypes.push(J)}else L._availableMarkerTypes.push(V)})},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(b){this._zoomLevel=b,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),G.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),te.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},G.prototype.show=function(){var b=this;this.styles.styleSheetRoot===void 0&&ue.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=ue.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(L){return L(new gt(b))})},G.prototype.render=function(){return _e(this,void 0,void 0,function(){var b;return je(this,function(L){switch(L.label){case 0:return this.setCurrentMarker(),(b=new ye).naturalSize=this.renderAtNaturalSize,b.imageType=this.renderImageType,b.imageQuality=this.renderImageQuality,b.markersOnly=this.renderMarkersOnly,b.width=this.renderWidth,b.height=this.renderHeight,[4,b.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return L.sent(),[4,b.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,L.sent()]}})})},G.prototype.close=function(b){var L=this;if(b===void 0&&(b=!1),this.isOpen){var V=!1;b||this.eventListeners.beforeclose.forEach(function(J){var Q=new gt(L,!0);J(Q),Q.defaultPrevented&&(V=!0)}),V||(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(J){return J(new gt(L))}),this.detachEvents(),this._isOpen=!1)}},G.prototype.addMarkersToToolbar=function(){for(var b,L=[],V=0;Vthis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*b:this.editorCanvas.clientWidth,V=L',b.title="Powered by marker.js",b.style.display="grid",b.style.alignItems="center",b.style.justifyItems="center",b.style.padding="3px",b.style.width="20px",b.style.height="20px",this.logoUI.appendChild(b),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},G.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},G.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},G.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},G.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var b=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=b+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new Se(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.target.getClientRects().item(0).y-1&&this.markers.splice(this.markers.indexOf(b),1),b.dispose()},G.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},G.prototype.toolbarButtonClicked=function(b,L){if(b==="marker"&&L!==void 0)this.createNewMarker(L);else if(b==="action")switch(L){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},G.prototype.deleteSelectedMarker=function(){var b=this;if(this._currentMarker!==void 0){var L=!1;if(this.eventListeners.markerbeforedelete.forEach(function(J){var Q=new Xe(b,b._currentMarker,!0);J(Q),Q.defaultPrevented&&(L=!0)}),!L){var V=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(J){return J(new Xe(b,V))})}}},G.prototype.clear=function(){var b=this,L=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(De){var ot=new Xe(b,void 0,!0);De(ot),ot.defaultPrevented&&(L=!0)}),!L)){this.setCurrentMarker();for(var V=function(De){var ot=J.markers[De];J.setCurrentMarker(J.markers[De]),J._currentMarker.dispose(),J.markerImage.removeChild(J._currentMarker.container),J.markers.splice(J.markers.indexOf(J._currentMarker),1),J.eventListeners.markerdelete.forEach(function(Ot){return Ot(new Xe(b,ot))})},J=this,Q=this.markers.length-1;Q>=0;Q--)V(Q);this.addUndoStep()}},Object.defineProperty(G.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),G.prototype.showNotesEditor=function(){var b;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(b=this._currentMarker.notes)!==null&&b!==void 0?b:"",this.overlayContainer.appendChild(this.notesArea))},G.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},G.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},G.prototype.addUndoStep=function(){var b=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var L=this.getState(),V=this.undoRedoManager.getLastUndoStep();if(!V||V.width===L.width&&V.height===L.height){var J=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(L),J1&&this.panTo({x:b.clientX,y:b.clientY}))},G.prototype.onPointerUp=function(b){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(b.clientX,b.clientY)),this.isDragging=!1,this.addUndoStep()},G.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},G.prototype.onKeyUp=function(b){this._currentMarker===void 0||this.notesArea!==void 0||b.key!=="Delete"&&b.key!=="Backspace"||this.deleteSelectedMarker()},G.prototype.clientToLocalCoordinates=function(b,L){var V=this.markerImage.getBoundingClientRect();return{x:(b-V.left)/this.zoomLevel,y:(L-V.top)/this.zoomLevel}},G.prototype.onWindowResize=function(){this.positionUI()},G.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var b=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=b+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},G.prototype.addLicenseKey=function(b){te.addKey(b)},G.prototype.addEventListener=function(b,L){this.eventListeners.addEventListener(b,L)},G.prototype.removeEventListener=function(b,L){this.eventListeners.removeEventListener(b,L)},G.prototype.renderState=function(b){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(b),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(G.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),G.prototype.focus=function(){var b=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(L){return L(new gt(b))}))},G.prototype.blur=function(){var b=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(L){return L(new gt(b))}))},G.instanceCounter=0,G}();/* ********************************** + `,Tn.style.marginRight="5px",Ft.appendChild(Tn)}Q.typeBoxes.push(Ft)},Q=this,De=0;De<4;De++)J(De);return V},b.prototype.setCurrentType=function(L,V){var J=this;this.currentType=L,this.typeBoxes.forEach(function(Q){Q.style.borderColor=Q===V?J.uiStyleSettings!==void 0?J.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},b}(We),be=function(G){function b(L,V,J){var Q=G.call(this,L,V,J)||this;return Q.arrowType="end",Q.arrowBaseHeight=10,Q.arrowBaseWidth=10,Q.getArrowPoints=Q.getArrowPoints.bind(Q),Q.setArrowType=Q.setArrowType.bind(Q),Q.arrowTypePanel=new ge("Arrow type","end"),Q.arrowTypePanel.onArrowTypeChanged=Q.setArrowType,Q}return Ue(b,G),b.prototype.ownsTarget=function(L){return!(!G.prototype.ownsTarget.call(this,L)&&L!==this.arrow1&&L!==this.arrow2)},b.prototype.getArrowPoints=function(L,V){var J=this.arrowBaseWidth+2*this.strokeWidth,Q=this.arrowBaseHeight+2*this.strokeWidth;return L-J/2+","+(V+Q/2)+" "+L+","+(V-Q/2)+" "+(L+J/2)+","+(V+Q/2)},b.prototype.createTips=function(){this.arrow1=he.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(he.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=he.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(he.createTransform()),this.visual.appendChild(this.arrow2)},b.prototype.pointerDown=function(L,V){G.prototype.pointerDown.call(this,L,V),this.state==="creating"&&this.createTips()},b.prototype.adjustVisual=function(){if(G.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2&&(this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",he.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),he.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var L=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),V=this.arrow1.transform.baseVal.getItem(0);V.setRotate(L,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(V,0);var J=this.arrow2.transform.baseVal.getItem(0);J.setRotate(L+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(J,0)}},b.prototype.setArrowType=function(L){this.arrowType=L,this.adjustVisual(),this.stateChanged()},Object.defineProperty(b.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),b.prototype.getState=function(){var L=Object.assign({arrowType:this.arrowType},G.prototype.getState.call(this));return L.typeName=b.typeName,L},b.prototype.restoreState=function(L){G.prototype.restoreState.call(this,L);var V=L;this.arrowType=V.arrowType,this.createTips(),this.adjustVisual()},b.typeName="ArrowMarker",b.title="Arrow marker",b.icon='',b}(st),re=function(G){function b(L,V,J){var Q=G.call(this,L,V,J)||this;return Q.fillColor=J.defaultFillColor,Q.strokeWidth=0,Q.fillPanel=new Ke("Color",J.defaultColorSet,J.defaultFillColor),Q.fillPanel.onColorChanged=Q.setFillColor,Q}return Ue(b,G),Object.defineProperty(b.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),b.prototype.getState=function(){var L=G.prototype.getState.call(this);return L.typeName=b.typeName,L},b.typeName="CoverMarker",b.title="Cover marker",b.icon='',b}(pt),ie=function(G){function b(L,V,J,Q){var De=G.call(this,L,Q||'')||this;return De.opacities=[],De.opacityBoxes=[],De.opacities=V,De.currentOpacity=J,De.setCurrentOpacity=De.setCurrentOpacity.bind(De),De}return Ue(b,G),b.prototype.getUi=function(){var L=this,V=document.createElement("div");return V.style.display="flex",V.style.overflow="hidden",V.style.flexGrow="2",V.style.justifyContent="space-between",this.opacities.forEach(function(J){var Q=document.createElement("div");Q.style.display="flex",Q.style.alignItems="center",Q.style.justifyContent="center",Q.style.padding="5px",Q.style.borderWidth="2px",Q.style.borderStyle="solid",Q.style.borderColor=J===L.currentOpacity?L.uiStyleSettings.toolboxAccentColor:"transparent",Q.addEventListener("click",function(){L.setCurrentOpacity(J,Q)}),V.appendChild(Q);var De=document.createElement("div");De.innerText=100*J+"%",Q.appendChild(De),L.opacityBoxes.push(Q)}),V},b.prototype.setCurrentOpacity=function(L,V){var J=this;this.currentOpacity=L,this.opacityBoxes.forEach(function(Q){Q.style.borderColor=Q===V?J.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},b}(We),ce=function(G){function b(L,V,J){var Q=G.call(this,L,V,J)||this;return Q.setOpacity=Q.setOpacity.bind(Q),Q.fillColor=J.defaultHighlightColor,Q.strokeWidth=0,Q.opacity=J.defaultHighlightOpacity,Q.fillPanel=new Ke("Color",J.defaultColorSet,Q.fillColor),Q.fillPanel.onColorChanged=Q.setFillColor,Q.opacityPanel=new ie("Opacity",J.defaultOpacitySteps,Q.opacity),Q.opacityPanel.onOpacityChanged=Q.setOpacity,Q}return Ue(b,G),b.prototype.setOpacity=function(L){this.opacity=L,this.visual&&he.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(b.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),b.prototype.getState=function(){var L=G.prototype.getState.call(this);return L.typeName=b.typeName,L},b.typeName="HighlightMarker",b.title="Highlight marker",b.icon='',b}(re),Ee='',Be=function(G){function b(L,V,J){var Q=G.call(this,L,V,J)||this;return Q.bgColor="transparent",Q.tipPosition={x:0,y:0},Q.tipBase1Position={x:0,y:0},Q.tipBase2Position={x:0,y:0},Q.tipMoving=!1,Q.color=J.defaultStrokeColor,Q.bgColor=J.defaultFillColor,Q.fontFamily=J.defaultFontFamily,Q.defaultSize={x:100,y:30},Q.setBgColor=Q.setBgColor.bind(Q),Q.getTipPoints=Q.getTipPoints.bind(Q),Q.positionTip=Q.positionTip.bind(Q),Q.setTipPoints=Q.setTipPoints.bind(Q),Q.colorPanel=new Ke("Text color",J.defaultColorSet,Q.color,''),Q.colorPanel.onColorChanged=Q.setColor,Q.bgColorPanel=new Ke("Fill color",J.defaultColorSet,Q.bgColor,Ee),Q.bgColorPanel.onColorChanged=Q.setBgColor,Q.fontFamilyPanel=new He("Font",J.defaultFontFamilies,J.defaultFontFamily),Q.fontFamilyPanel.onFontChanged=Q.setFont,Q.tipGrip=new yt,Q.tipGrip.visual.transform.baseVal.appendItem(he.createTransform()),Q.controlBox.appendChild(Q.tipGrip.visual),Q}return Ue(b,G),b.prototype.ownsTarget=function(L){return G.prototype.ownsTarget.call(this,L)||this.tipGrip.ownsTarget(L)||this.tip===L},b.prototype.createTip=function(){he.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=he.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},b.prototype.pointerDown=function(L,V){this.state==="new"&&G.prototype.pointerDown.call(this,L,V),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(V)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):G.prototype.pointerDown.call(this,L,V)},b.prototype.pointerUp=function(L){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,G.prototype.pointerUp.call(this,L);else{var V=this.state==="creating";G.prototype.pointerUp.call(this,L),this.setTipPoints(V),this.positionTip()}},b.prototype.manipulate=function(L){if(this.tipMoving){var V=this.unrotatePoint(L);this.tipPosition={x:V.x-this.manipulationStartLeft,y:V.y-this.manipulationStartTop},this.positionTip()}else G.prototype.manipulate.call(this,L)},b.prototype.setBgColor=function(L){this.bgRectangle&&this.tip&&(he.setAttributes(this.bgRectangle,[["fill",L]]),he.setAttributes(this.tip,[["fill",L]])),this.bgColor=L,this.fillColorChanged(L)},b.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},b.prototype.setTipPoints=function(L){L===void 0&&(L=!1);var V=Math.min(this.height/2,15),J=this.height/5;L&&(this.tipPosition={x:V+J/2,y:this.height+20});var Q=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?Q.1)){var L=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),V=this.tip1.transform.baseVal.getItem(0);V.setRotate(L,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(V,0);var J=this.tip2.transform.baseVal.getItem(0);J.setRotate(L+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(J,0)}},Object.defineProperty(b.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),b.prototype.getState=function(){var L=G.prototype.getState.call(this);return L.typeName=b.typeName,L},b.prototype.restoreState=function(L){G.prototype.restoreState.call(this,L),this.createTips(),this.adjustVisual()},b.typeName="MeasurementMarker",b.title="Measurement marker",b.icon='',b}(st),bt=function(G){function b(L,V,J){var Q=G.call(this,L,V,J)||this;return Q.strokePanel.colors=J.defaultColorSet,Q.fillColor="transparent",Q}return Ue(b,G),Object.defineProperty(b.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),b.prototype.getState=function(){var L=G.prototype.getState.call(this);return L.typeName=b.typeName,L},b.typeName="EllipseFrameMarker",b.title="Ellipse frame marker",b.icon='',b}(Ie),Tt=function(){function G(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(G.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),G.prototype.addUndoStep=function(b){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(b)||(this.undoStack.push(b),JSON.stringify(this.lastRedoStep)!==JSON.stringify(b)&&this.redoStack.splice(0,this.redoStack.length))},G.prototype.replaceLastUndoStep=function(b){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=b)},G.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},G.prototype.undo=function(){if(this.undoStack.length>1){var b=this.undoStack.pop();return b!==void 0&&this.redoStack.push(b),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},G.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},G}(),xt=function(G){function b(L,V,J){var Q=G.call(this,L,V,J)||this;return Q.strokeColor="transparent",Q.strokeWidth=0,Q.strokeDasharray="",Q.curveX=0,Q.curveY=0,Q.manipulationStartCurveX=0,Q.manipulationStartCurveY=0,Q.setStrokeColor=Q.setStrokeColor.bind(Q),Q.setStrokeWidth=Q.setStrokeWidth.bind(Q),Q.setStrokeDasharray=Q.setStrokeDasharray.bind(Q),Q.positionGrips=Q.positionGrips.bind(Q),Q.addControlGrips=Q.addControlGrips.bind(Q),Q.adjustVisual=Q.adjustVisual.bind(Q),Q.setupControlBox=Q.setupControlBox.bind(Q),Q.resize=Q.resize.bind(Q),Q.strokeColor=J.defaultColor,Q.strokeWidth=J.defaultStrokeWidth,Q.strokeDasharray=J.defaultStrokeDasharray,Q.strokePanel=new Ke("Line color",J.defaultColorSet,J.defaultColor),Q.strokePanel.onColorChanged=Q.setStrokeColor,Q.strokeWidthPanel=new At("Line width",J.defaultStrokeWidths,J.defaultStrokeWidth),Q.strokeWidthPanel.onWidthChanged=Q.setStrokeWidth,Q.strokeStylePanel=new wt("Line style",J.defaultStrokeDasharrays,J.defaultStrokeDasharray),Q.strokeStylePanel.onStyleChanged=Q.setStrokeDasharray,Q}return Ue(b,G),b.prototype.ownsTarget=function(L){return!(!G.prototype.ownsTarget.call(this,L)&&L!==this.visual&&L!==this.selectorCurve&&L!==this.visibleCurve&&!this.curveGrip.ownsTarget(L))},b.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},b.prototype.createVisual=function(){this.visual=he.createGroup(),this.selectorCurve=he.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=he.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},b.prototype.pointerDown=function(L,V){G.prototype.pointerDown.call(this,L,V),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=L.x,this.curveY=L.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(V)&&(this.activeGrip=this.curveGrip,this._state="resize")},b.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),he.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),he.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),he.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},b.prototype.setupControlBox=function(){G.prototype.setupControlBox.call(this),this.curveControlLine1=he.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=he.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},b.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,G.prototype.addControlGrips.call(this)},b.prototype.positionGrips=function(){G.prototype.positionGrips.call(this);var L=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-L/2,this.curveY-L/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},b.prototype.manipulate=function(L){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+L.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+L.y-this.manipulationStartY),G.prototype.manipulate.call(this,L)},b.prototype.resize=function(L){this.activeGrip===this.curveGrip&&(this.curveX=L.x,this.curveY=L.y),G.prototype.resize.call(this,L),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},b.prototype.setStrokeColor=function(L){this.strokeColor=L,this.adjustVisual(),this.colorChanged(L)},b.prototype.setStrokeWidth=function(L){this.strokeWidth=L,this.adjustVisual()},b.prototype.setStrokeDasharray=function(L){this.strokeDasharray=L,this.adjustVisual()},b.prototype.scale=function(L,V){this.curveX=this.curveX*L,this.curveY=this.curveY*V,G.prototype.scale.call(this,L,V)},Object.defineProperty(b.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),b.prototype.getState=function(){var L=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},G.prototype.getState.call(this));return L.typeName=b.typeName,L},b.prototype.restoreState=function(L){G.prototype.restoreState.call(this,L);var V=L;this.strokeColor=V.strokeColor,this.strokeWidth=V.strokeWidth,this.strokeDasharray=V.strokeDasharray,this.curveX=V.curveX,this.curveY=V.curveY,this.createVisual(),this.adjustVisual()},b.typeName="CurveMarker",b.title="Curve marker",b.icon='',b}(Je),gt=function(){function G(b,L){L===void 0&&(L=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=b,this.cancelable=L}return Object.defineProperty(G.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),G.prototype.preventDefault=function(){this._defaultPrevented=!0},G}(),qe=function(G){function b(L,V,J){var Q=G.call(this,L,!1)||this;return Q.dataUrl=V,Q.state=J,Q}return Ue(b,G),b}(gt),Xe=function(G){function b(L,V,J){J===void 0&&(J=!1);var Q=G.call(this,L,J)||this;return Q.marker=V,Q}return Ue(b,G),b}(gt),ke=function(){function G(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return G.prototype.addEventListener=function(b,L){this[b].push(L)},G.prototype.removeEventListener=function(b,L){var V=this[b].indexOf(L);V>-1&&this[b].splice(V,1)},G}(),se=function(){function G(b){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new we,this._isOpen=!1,this.undoRedoManager=new Tt,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new ke,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=G.instanceCounter++,this.styles=new Le(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=b,this.targetRoot=document.body,this.width=b.clientWidth,this.height=b.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(G.prototype,"ALL_MARKER_TYPES",{get:function(){return[Oe,Te,be,nt,bt,Ie,ce,Be,ut,re,st,xt]},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Oe,Te,be,nt,Ie,ce,Be]},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Oe,Te,be,nt,ce]},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(b){var L=this;this._availableMarkerTypes.splice(0),b.forEach(function(V){if(typeof V=="string"){var J=L.ALL_MARKER_TYPES.find(function(Q){return Q.typeName===V});J!==void 0&&L._availableMarkerTypes.push(J)}else L._availableMarkerTypes.push(V)})},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(b){this._zoomLevel=b,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),G.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),te.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},G.prototype.show=function(){var b=this;this.styles.styleSheetRoot===void 0&&ue.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=ue.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(L){return L(new gt(b))})},G.prototype.render=function(){return _e(this,void 0,void 0,function(){var b;return je(this,function(L){switch(L.label){case 0:return this.setCurrentMarker(),(b=new ye).naturalSize=this.renderAtNaturalSize,b.imageType=this.renderImageType,b.imageQuality=this.renderImageQuality,b.markersOnly=this.renderMarkersOnly,b.width=this.renderWidth,b.height=this.renderHeight,[4,b.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return L.sent(),[4,b.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,L.sent()]}})})},G.prototype.close=function(b){var L=this;if(b===void 0&&(b=!1),this.isOpen){var V=!1;b||this.eventListeners.beforeclose.forEach(function(J){var Q=new gt(L,!0);J(Q),Q.defaultPrevented&&(V=!0)}),V||(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(J){return J(new gt(L))}),this.detachEvents(),this._isOpen=!1)}},G.prototype.addMarkersToToolbar=function(){for(var b,L=[],V=0;Vthis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*b:this.editorCanvas.clientWidth,V=L',b.title="Powered by marker.js",b.style.display="grid",b.style.alignItems="center",b.style.justifyItems="center",b.style.padding="3px",b.style.width="20px",b.style.height="20px",this.logoUI.appendChild(b),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},G.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},G.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},G.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},G.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var b=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=b+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new Se(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.target.getClientRects().item(0).y-1&&this.markers.splice(this.markers.indexOf(b),1),b.dispose()},G.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},G.prototype.toolbarButtonClicked=function(b,L){if(b==="marker"&&L!==void 0)this.createNewMarker(L);else if(b==="action")switch(L){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},G.prototype.deleteSelectedMarker=function(){var b=this;if(this._currentMarker!==void 0){var L=!1;if(this.eventListeners.markerbeforedelete.forEach(function(J){var Q=new Xe(b,b._currentMarker,!0);J(Q),Q.defaultPrevented&&(L=!0)}),!L){var V=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(J){return J(new Xe(b,V))})}}},G.prototype.clear=function(){var b=this,L=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(De){var ot=new Xe(b,void 0,!0);De(ot),ot.defaultPrevented&&(L=!0)}),!L)){this.setCurrentMarker();for(var V=function(De){var ot=J.markers[De];J.setCurrentMarker(J.markers[De]),J._currentMarker.dispose(),J.markerImage.removeChild(J._currentMarker.container),J.markers.splice(J.markers.indexOf(J._currentMarker),1),J.eventListeners.markerdelete.forEach(function(Ot){return Ot(new Xe(b,ot))})},J=this,Q=this.markers.length-1;Q>=0;Q--)V(Q);this.addUndoStep()}},Object.defineProperty(G.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),G.prototype.showNotesEditor=function(){var b;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(b=this._currentMarker.notes)!==null&&b!==void 0?b:"",this.overlayContainer.appendChild(this.notesArea))},G.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},G.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},G.prototype.addUndoStep=function(){var b=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var L=this.getState(),V=this.undoRedoManager.getLastUndoStep();if(!V||V.width===L.width&&V.height===L.height){var J=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(L),J1&&this.panTo({x:b.clientX,y:b.clientY}))},G.prototype.onPointerUp=function(b){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(b.clientX,b.clientY)),this.isDragging=!1,this.addUndoStep()},G.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},G.prototype.onKeyUp=function(b){this._currentMarker===void 0||this.notesArea!==void 0||b.key!=="Delete"&&b.key!=="Backspace"||this.deleteSelectedMarker()},G.prototype.clientToLocalCoordinates=function(b,L){var V=this.markerImage.getBoundingClientRect();return{x:(b-V.left)/this.zoomLevel,y:(L-V.top)/this.zoomLevel}},G.prototype.onWindowResize=function(){this.positionUI()},G.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var b=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=b+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},G.prototype.addLicenseKey=function(b){te.addKey(b)},G.prototype.addEventListener=function(b,L){this.eventListeners.addEventListener(b,L)},G.prototype.removeEventListener=function(b,L){this.eventListeners.removeEventListener(b,L)},G.prototype.renderState=function(b){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(b),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(G.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),G.prototype.focus=function(){var b=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(L){return L(new gt(b))}))},G.prototype.blur=function(){var b=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(L){return L(new gt(b))}))},G.instanceCounter=0,G}();/* ********************************** cropro version 1.2.0 @license SEE LICENSE IN LICENSE @@ -148,7 +148,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var fe=function(G,b){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,V){L.__proto__=V}||function(L,V){for(var J in V)Object.prototype.hasOwnProperty.call(V,J)&&(L[J]=V[J])})(G,b)};function $e(G,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function L(){this.constructor=G}fe(G,b),G.prototype=b===null?Object.create(b):(L.prototype=b.prototype,new L)}function ke(G,b,L,V){return new(L||(L=Promise))(function(J,Q){function De(Ft){try{Ot(V.next(Ft))}catch(ve){Q(ve)}}function ot(Ft){try{Ot(V.throw(Ft))}catch(ve){Q(ve)}}function Ot(Ft){var ve;Ft.done?J(Ft.value):(ve=Ft.value,ve instanceof L?ve:new L(function(Gt){Gt(ve)})).then(De,ot)}Ot((V=V.apply(G,b||[])).next())})}function it(G,b){var L,V,J,Q,De={label:0,sent:function(){if(1&J[0])throw J[1];return J[1]},trys:[],ops:[]};return Q={next:ot(0),throw:ot(1),return:ot(2)},typeof Symbol=="function"&&(Q[Symbol.iterator]=function(){return this}),Q;function ot(Ot){return function(Ft){return function(ve){if(L)throw new TypeError("Generator is already executing.");for(;De;)try{if(L=1,V&&(J=2&ve[0]?V.return:ve[0]?V.throw||((J=V.return)&&J.call(V),0):V.next)&&!(J=J.call(V,ve[1])).done)return J;switch(V=0,J&&(ve=[2&ve[0],J.value]),ve[0]){case 0:case 1:J=ve;break;case 4:return De.label++,{value:ve[1],done:!1};case 5:De.label++,V=ve[1],ve=[0];continue;case 7:ve=De.ops.pop(),De.trys.pop();continue;default:if(!(J=De.trys,(J=J.length>0&&J[J.length-1])||ve[0]!==6&&ve[0]!==2)){De=0;continue}if(ve[0]===3&&(!J||ve[1]>J[0]&&ve[1]0&&J[J.length-1])||ve[0]!==6&&ve[0]!==2)){De=0;continue}if(ve[0]===3&&(!J||ve[1]>J[0]&&ve[1]0&&L>0){var V=new ln(b,L),J=V.ratio>=1?20:V.getHorizontalLength(20),Q=V.ratio<1?20:V.getVerticalLength(20),De=document.createElementNS("http://www.w3.org/2000/svg","svg");De.setAttribute("xmlns","http://www.w3.org/2000/svg"),De.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(De);var ot=Ne.createDefs();De.appendChild(ot);var Ot=Ne.createElement("clipPath",[["id","text-bg-clip"]]);ot.appendChild(Ot);var Ft=Ne.createPath(Ne.getHollowRectanglePath((24-J)/2,(24-Q)/2,J,Q,(24-J)/2+2,(24-Q)/2+2,J-4,Q-4));De.appendChild(Ft);var ve=Ne.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);ve.appendChild(Ne.createTSpan(b+":"+L)),De.appendChild(ve);var Gt=ve.getBBox();Ne.setAttributes(ve,[["x",((24-Gt.width)/2).toString()],["y",((24-Gt.height)/2-Gt.y).toString()]]);var en=Ne.createPath(Ne.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(Gt.width))/2,(24-Math.ceil(Gt.height))/2,Math.ceil(Gt.width),Math.ceil(Gt.height)));return Ot.appendChild(en),Ne.setAttributes(Ft,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(De),De.outerHTML}return''},G}(),Yt=function(G){function b(L,V,J){var Q=G.call(this,L,V)||this;return Q.isDropdownOpen=!1,Q.onClick=Q.dropdownButtonClicked,Q.dropdownButtons=J,Q}return $e(b,G),b.prototype.setupDropdown=function(){var L=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(V){V.className=L.className,V.colorsClassName=L.colorsClassName,L.dropdownBlock.appendChild(V.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},b.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},b.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},b.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},b.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},b.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},b}(Qt),Mt=function(){function G(b,L){this.GRIP_SIZE=10,this.color=b,this.fillColor=L,this.visual=Ne.createGroup(),this.visual.appendChild(Ne.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Ne.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return G.prototype.ownsTarget=function(b){return b===this.visual||b===this.visual.childNodes[0]||b===this.visual.childNodes[1]},G.prototype.setCenter=function(b,L){this.visual.childNodes.forEach(function(V){return Ne.setAttributes(V,[["cx",b.toString()],["cy",L.toString()]])})},G}(),tn=function(){function G(b,L,V,J){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=b,this.canvasHeight=L,this.margin=V,this.container=J,this.attachEvents=this.attachEvents.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.resize=this.resize.bind(this),this.adjustCropRect=this.adjustCropRect.bind(this),this.scaleCanvas=this.scaleCanvas.bind(this),this.getRescaledRect=this.getRescaledRect.bind(this)}return Object.defineProperty(G.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(b){this._aspectRatio=b,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(b){this._isGridVisible=b,this.gridContainer&&Ne.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(b){this._zoomFactor=b,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),G.prototype.open=function(){var b=this;this.cropShadeElement=Ne.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=Ne.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var L=0;Lthis.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-L.height/2),Ne.setAttributes(this.cropRectElement,[["x",L.x.toString()],["y",L.y.toString()],["width",L.width.toString()],["height",L.height.toString()]]);var V=L.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(Q,De){var ot=L.y+V*(De+1);Ne.setAttributes(Q,[["x1",""+L.x],["y1",""+ot],["x2",""+(L.x+L.width)],["y2",""+ot]])});var J=L.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(Q,De){var ot=L.x+J*(De+1);Ne.setAttributes(Q,[["x1",""+ot],["y1",""+L.y],["x2",""+ot],["y2",""+(L.y+L.height)]])}),Ne.setAttributes(this.cropShadeElement,[["d",Ne.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,L.x,L.y,L.width,L.height)]]),this.topLeftGrip.setCenter(L.x,L.y),this.topRightGrip.setCenter(L.x+L.width,L.y),this.bottomLeftGrip.setCenter(L.x,L.y+L.height),this.bottomRightGrip.setCenter(L.x+L.width,L.y+L.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},G.prototype.attachEvents=function(){this.container.style.touchAction="none",this.container.addEventListener("pointerdown",this.onPointerDown),this.container.addEventListener("pointermove",this.onPointerMove),this.container.addEventListener("pointerup",this.onPointerUp)},G.prototype.clientToLocalCoordinates=function(b,L){var V=this.container.getBoundingClientRect();return{x:b-V.left+this.margin,y:L-V.top+this.margin}},G.prototype.onPointerDown=function(b){this.container.setPointerCapture(b.pointerId),this.previousPoint=this.clientToLocalCoordinates(b.clientX,b.clientY),this.cropRectElement===b.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(b.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(b.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(b.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(b.target)&&(this.activeGrip=this.bottomRightGrip)},G.prototype.onPointerMove=function(b){if(this.isMoving)this.move(this.clientToLocalCoordinates(b.clientX,b.clientY));else if(this.activeGrip){var L=this.clientToLocalCoordinates(b.clientX,b.clientY);this.resize(L)}b.preventDefault()},G.prototype.onPointerUp=function(b){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(b.pointerId)},G.prototype.move=function(b){var L=b.x-this.previousPoint.x,V=b.y-this.previousPoint.y;this.zoomFactor!==1&&(L=-L/this.zoomFactor,V=-V/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+L),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+V),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=b},G.prototype.resize=function(b){var L=Object.assign({},this.cropRect),V=b.x-this.previousPoint.x,J=b.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:L.x+Vthis.canvasWidth*this.zoomFactor&&(V=this.canvasWidth*this.zoomFactor-L.width),L.width+=V}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(L.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(V),L.height=this.aspectRatio.getVerticalLength(L.width)):(L.y+=J,L.height=this.cropRect.y+this.cropRect.height-L.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?L.height=this.aspectRatio.getVerticalLength(L.width):L.height+=J}L.width<10&&(L.x=this.cropRect.x,L.width=10),L.height<10&&(L.y=this.cropRect.y,L.height=10),this.previousPoint=b,L.x>=this.margin&&L.y>=this.margin&&L.x-this.margin+L.width<=this.canvasWidth&&L.y-this.margin+L.height<=this.canvasHeight&&(this.cropRect=L,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},G.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var b=this.cropRect.x+this.cropRect.width/2,L=this.cropRect.y+this.cropRect.height/2,V=this.aspectRatio.getHorizontalLength(this.cropRect.height),J=this.aspectRatio.getVerticalLength(this.cropRect.width);V/this.canvasWidththis.canvasWidth&&(this.cropRect.height/=this.cropRect.width/this.canvasWidth,this.cropRect.width=this.canvasWidth),this.cropRect.height>this.canvasHeight&&(this.cropRect.width/=this.cropRect.height/this.canvasHeight,this.cropRect.height=this.canvasHeight),this.cropRect.x=b-this.cropRect.width/2,this.cropRect.y=L-this.cropRect.height/2,this.cropRect.x+this.cropRect.width>this.margin+this.canvasWidth&&(this.cropRect.x=this.margin+this.canvasWidth-this.cropRect.width),this.cropRect.y+this.cropRect.height>this.margin+this.canvasHeight&&(this.cropRect.y=this.margin+this.canvasHeight-this.cropRect.height),this.cropRect.x=Math.max(this.cropRect.x,this.margin),this.cropRect.y=Math.max(this.cropRect.y,this.margin)}},G.prototype.getRescaledRect=function(b,L,V,J,Q,De){var ot=V/b,Ot=J/L;return{x:(Q.x-De)*ot+De,y:(Q.y-De)*Ot+De,width:Q.width*ot,height:Q.height*Ot}},G.prototype.scaleCanvas=function(b,L){var V=this.getRescaledRect(this.canvasWidth,this.canvasHeight,b,L,this.cropRect,this.margin);this.canvasWidth=b,this.canvasHeight=L,this.onCropChange&&this.onCropChange(V),this.setCropRectangle(V)},G}(),mn=function(){function G(b){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=b,this.uiContainer=document.createElement("div"),this.getUI=this.getUI.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.setAngleLabel=this.setAngleLabel.bind(this),this.positionScaleShape=this.positionScaleShape.bind(this)}return Object.defineProperty(G.prototype,"angle",{get:function(){return this._angle},set:function(b){this._angle=b,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),G.prototype.getUI=function(){return this.controlContainer=document.createElement("div"),this.controlContainer.title=this.title,this.controlContainer.className=this.className+" "+this.colorsClassName,this.controlContainer.appendChild(this.getVisual()),this.controlContainer.addEventListener("pointerdown",this.onPointerDown),this.controlContainer.addEventListener("pointermove",this.onPointerMove),this.controlContainer.addEventListener("pointerup",this.onPointerUp),this.uiContainer.appendChild(this.controlContainer),this.uiContainer.style.display="inline-block",this.uiContainer.style.touchAction="none",this.setAngleLabel(),this.positionScaleShape(),this.uiContainer},G.prototype.onPointerDown=function(b){this.controlContainer.setPointerCapture(b.pointerId),this.isDragging=!0,this.previousPoint={x:b.clientX,y:b.clientY}},G.prototype.onPointerMove=function(b){this.isDragging&&(this.onAngleChange&&this.onAngleChange((b.clientX-this.previousPoint.x)/5),this.previousPoint.x=b.clientX)},G.prototype.onPointerUp=function(b){this.isDragging&&this.onAngleChange&&this.onAngleChange((b.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(b.pointerId)},G.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var b=this.angleLabelText.getBBox();Ne.setAttributes(this.angleLabelElement,[["x",((this.width-b.width)/2).toString()],["y",(this.height/2).toString()]])}},G.prototype.positionScaleShape=function(){if(this.scaleShape){var b=this.scaleShape.transform.baseVal.getItem(0);b.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(b,0)}},G.prototype.getVisual=function(){var b=document.createElementNS("http://www.w3.org/2000/svg","svg");b.setAttribute("xmlns","http://www.w3.org/2000/svg"),b.setAttribute("width",this.width+"px"),b.setAttribute("height",this.height+"px"),b.setAttribute("viewBox","0 0 "+this.width+" "+this.height),b.style.flexShrink="0",document.body.appendChild(b);for(var L="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,V=1;V<=this.width/5+10;V++){var J=V%5==0?this.height/3:this.height/6;L+="h4v"+-J+"h1v"+J}L+="v1H0Z",this.scaleShape=Ne.createPath(L);var Q=Ne.createTransform();this.scaleShape.transform.baseVal.appendItem(Q),b.appendChild(this.scaleShape),this.angleLabelElement=Ne.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=Ne.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var De=Ne.createTSpan("");return De.innerHTML="°",this.angleLabelElement.appendChild(De),b.appendChild(this.angleLabelElement),document.body.removeChild(b),b},G}(),An=function(){function G(){this.naturalSize=!1,this.imageType="image/png"}return G.prototype.rasterize=function(b,L,V,J,Q,De,ot){var Ot=this;return new Promise(function(Ft){var ve=document.createElement("canvas");ve.width=b.width.baseVal.value-2*J,ve.height=b.height.baseVal.value-2*J;var Gt=1,en=1;Ot.naturalSize===!0?(Gt=L.naturalWidth/(b.width.baseVal.value-2*J)/De,en=L.naturalHeight/(b.height.baseVal.value-2*J)/ot,ve.width=L.naturalWidth/De,ve.height=L.naturalHeight/ot):Ot.width!==void 0&&Ot.height!==void 0&&(Gt=Ot.width/V.width,en=Ot.height/V.height,ve.width*=Gt,ve.height*=en);var Tn=ve.getContext("2d");Tn.translate(ve.width/2,ve.height/2),Tn.rotate(Q*Math.PI/180),Tn.scale(De,ot),Tn.translate(-ve.width/2,-ve.height/2),Tn.drawImage(L,0,0,ve.width,ve.height);var Wn=document.createElement("canvas");Wn.width=V.width*Gt,Wn.height=V.height*en,Wn.getContext("2d").putImageData(Tn.getImageData((V.x-J)*Gt,(V.y-J)*en,V.width*Gt,V.height*en),0,0),Ft(Wn.toDataURL(Ot.imageType,Ot.imageQuality))})},G}(),lt=function(){function G(b){this._zoomToCropEnabled=!0,this.zoomFactor=1,this.flippedHorizontally=!1,this.flippedVertically=!1,this._isGridVisible=!0,this._gridLines=2,this._rotationAngle=0,this.scaleFactor=1,this.renderEventListeners=[],this.closeEventListeners=[],this._isOpen=!1,this.CANVAS_MARGIN=20,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.displayMode="inline",this.popupMargin=30,this.toolbarHeight=40,this.aspectRatios=[{horizontal:0,vertical:0},{horizontal:4,vertical:3},{horizontal:3,vertical:2},{horizontal:16,vertical:9},{horizontal:1,vertical:1},{horizontal:3,vertical:4},{horizontal:2,vertical:3},{horizontal:9,vertical:16}],this._instanceNo=G.instanceCounter++,this.styles=new Ve(this.instanceNo),this.target=b,this.targetRoot=document.body,this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.rotateBy=this.rotateBy.bind(this),this.applyRotation=this.applyRotation.bind(this),this.cropRectChanged=this.cropRectChanged.bind(this),this.zoomToCrop=this.zoomToCrop.bind(this),this.unzoomFromCrop=this.unzoomFromCrop.bind(this),this.rotateLeftButtonClicked=this.rotateLeftButtonClicked.bind(this),this.rotateRightButtonClicked=this.rotateRightButtonClicked.bind(this),this.flipHorizontallyButtonClicked=this.flipHorizontallyButtonClicked.bind(this),this.flipVerticallyButtonClicked=this.flipVerticallyButtonClicked.bind(this),this.applyFlip=this.applyFlip.bind(this),this.startRenderAndClose=this.startRenderAndClose.bind(this),this.render=this.render.bind(this),this.onPopupResize=this.onPopupResize.bind(this),this.applyAspectRatio=this.applyAspectRatio.bind(this)}return Object.defineProperty(G.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(b){this._zoomToCropEnabled=b,b?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(b){this._isGridVisible=b,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"gridLines",{get:function(){return this._gridLines},set:function(b){this._gridLines=b,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(b){this._rotationAngle=b,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"aspectRatio",{get:function(){var b;return(b=this._aspectRatio)!==null&&b!==void 0?b:this.aspectRatios[0]},set:function(b){this._aspectRatio=b},enumerable:!1,configurable:!0}),G.prototype.open=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.setupResizeObserver(),this.initCropCanvas(),this.setEditingTarget(),this.setTopLeft(),this.initCropLayer(),this.attachEvents(),this.applyAspectRatio(),this.displayMode==="popup"&&this.onPopupResize(),this._isOpen=!0},G.prototype.show=function(){this.showUI(),this.open()},G.prototype.close=function(b){b===void 0&&(b=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),b||this.closeEventListeners.forEach(function(L){return L()}),this._isOpen=!1)},G.prototype.addRenderEventListener=function(b){this.renderEventListeners.push(b)},G.prototype.removeRenderEventListener=function(b){this.renderEventListeners.indexOf(b)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(b),1)},G.prototype.addCloseEventListener=function(b){this.closeEventListeners.push(b)},G.prototype.removeCloseEventListener=function(b){this.closeEventListeners.indexOf(b)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(b),1)},G.prototype.setupResizeObserver=function(){var b=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){b.resize(b.target.clientWidth,b.target.clientHeight)}),this.targetObserver.observe(this.target)):this.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(this.onPopupResize),this.targetObserver.observe(this.contentDiv)),window.addEventListener("resize",this.setWindowHeight))},G.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var b=1*this.target.clientWidth/this.target.clientHeight,L=this.contentDiv.clientWidth/b>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*b:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,V=L+2*this.CANVAS_MARGINb+this.CANVAS_MARGIN?this.target.offsetTop-(b+this.CANVAS_MARGIN):0;this.coverDiv.style.top=L+"px",this.coverDiv.style.left=(this.target.offsetLeft>this.CANVAS_MARGIN?this.target.offsetLeft-this.CANVAS_MARGIN:0)+"px",this.coverDiv.style.width=this.target.offsetWidth+this.CANVAS_MARGIN+"px",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.displayMode==="popup"?this.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.addToolbars(),this.uiDiv.appendChild(this.topToolbar.getUI()),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.alignItems="center",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.contentDiv.style.overflow="hidden",this.contentDiv.style.backgroundColor=this.styles.settings.canvasBackgroundColor,this.displayMode==="popup"&&(this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.popupMargin+"px)"),this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.contentDiv.appendChild(this.editorCanvas),this.uiDiv.appendChild(this.bottomToolbar.getUI()),this.straightener.angle=this.rotationAngle},G.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},G.prototype.addTopToolbar=function(){var b=this;this.topToolbar=new Ct,this.topToolbar.display=this.styles.settings.hideTopToolbar?"none":"",this.topToolbar.className=this.toolbarStyleClass.name,this.topToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.topToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.topToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.topToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.topToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.topToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var L=new qt;L.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(L);var V=[];this.aspectRatios.forEach(function(en){var Tn=new Qt(Bt.getIcon(en.horizontal,en.vertical),en.horizontal===0&&en.vertical===0?"FREE":en.horizontal+":"+en.vertical);Tn.onClick=function(){return b.ratioButtonClicked(en)},V.push(Tn)}),this.aspectRatioButton=new Yt(Bt.getIcon(0,0),"Aspect ratio",V),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,L.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var J=new Qt('',"Toggle grid");J.isActive=this.isGridVisible,J.onClick=function(){b.isGridVisible=!b.isGridVisible,J.isActive=b.isGridVisible},L.addButton(J);var Q=new Qt('',"Zoom to selection");if(Q.isActive=this.zoomToCropEnabled,Q.onClick=function(){b.zoomToCropEnabled=!b.zoomToCropEnabled,Q.isActive=b.zoomToCropEnabled},L.addButton(Q),!at.isLicensed){var De=new St;this.topToolbar.addElementBlock(De);var ot=document.createElement("div");ot.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var Ot=document.createElement("a");Ot.style.color="currentColor",Ot.href="https://markerjs.com/products/cropro",Ot.target="_blank",Ot.innerHTML='',ot.appendChild(Ot),De.addElement(ot)}var Ft=new qt;Ft.minWidth=3*this.toolbarHeight+"px",Ft.contentAlign="end",this.topToolbar.addButtonBlock(Ft);var ve=new Qt('',"OK");ve.onClick=this.startRenderAndClose,Ft.addButton(ve),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(ve.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var Gt=new Qt('',"Close");Gt.onClick=this.close,Ft.addButton(Gt),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(Gt.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},G.prototype.addBottomToolbar=function(){var b=this;this.bottomToolbar=new Ct,this.bottomToolbar.display=this.styles.settings.hideBottomToolbar?"none":"",this.bottomToolbar.className=this.toolbarStyleClass.name,this.bottomToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.bottomToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.bottomToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.bottomToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.bottomToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.bottomToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var L=new qt;L.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(L);var V=new Qt('',"Rotate left");V.onClick=this.rotateLeftButtonClicked,L.addButton(V);var J=new Qt('',"Rotate right");J.onClick=this.rotateRightButtonClicked,L.addButton(J);var Q=new St;Q.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(Q),this.straightener=new mn("Straighten"),this.straightener.className=this.toolbarStraightenerStyleClass.name,this.straightener.colorsClassName=this.styles.settings.toolbarStraightenerColorsClassName?this.styles.settings.toolbarStraightenerColorsClassName:this.toolbarStraightenerStyleColorsClass.name,this.straightener.onAngleChange=function(Ft){b.rotateBy(Ft),b.straightener.angle=b.rotationAngle},Q.addElement(this.straightener.getUI());var De=new qt;De.minWidth=2*this.toolbarHeight+"px",De.contentAlign="end",this.bottomToolbar.addButtonBlock(De);var ot=new Qt('',"Flip horizontal");ot.onClick=this.flipHorizontallyButtonClicked,De.addButton(ot);var Ot=new Qt('',"Flip vertical");Ot.onClick=this.flipVerticallyButtonClicked,De.addButton(Ot)},G.prototype.ratioButtonClicked=function(b){this.aspectRatio=b,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},G.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=Bt.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},G.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new ln(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},G.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},G.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},G.prototype.restoreState=function(b){if(b){var L=this.cropLayer.getRescaledRect(b.width,b.height,this.imageWidth,this.imageHeight,b.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(L),this.cropRectChanged(L),this.flippedHorizontally=b.flippedHorizontally,this.flippedVertically=b.flippedVertically,this.applyFlip(),this.rotationAngle=b.rotationAngle,this.applyRotation()}},G.prototype.clientToLocalCoordinates=function(b,L){var V=this.cropImage.getBoundingClientRect();return{x:b-V.left,y:L-V.top}},G.prototype.onWindowResize=function(){this.positionUI()},G.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var b=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=b+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)"}this.positionCropImage()},G.prototype.rotateLeftButtonClicked=function(){var b=this.rotationAngle-90;this.rotationAngle%90!=0&&(b+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(b)},G.prototype.rotateRightButtonClicked=function(){var b=this.rotationAngle+90;this.rotationAngle%90!=0&&(b-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(b)},G.prototype.rotateTo=function(b){b=(b=b>180?b-360:b)<=-180?b+360:b,this.rotationAngle=b,this.applyRotation()},G.prototype.rotateBy=function(b){this.rotateTo((this.rotationAngle+b)%360)},G.prototype.applyRotation=function(){var b=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var L=this.editingTargetRotationContainer.transform.baseVal.getItem(0);L.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(L,0);var V=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/V.width,this.imageHeight/V.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=b},G.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},G.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},G.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},G.prototype.startRenderAndClose=function(){return ke(this,void 0,void 0,function(){var b,L;return it(this,function(V){switch(V.label){case 0:return[4,this.render()];case 1:return b=V.sent(),L=this.getState(),this.renderEventListeners.forEach(function(J){return J(b,L)}),this.close(!0),[2]}})})},G.prototype.render=function(){return ke(this,void 0,void 0,function(){var b;return it(this,function(L){switch(L.label){case 0:return(b=new An).naturalSize=this.renderAtNaturalSize,b.imageType=this.renderImageType,b.imageQuality=this.renderImageQuality,b.width=this.renderWidth,b.height=this.renderHeight,this.unzoomFromCrop(),Ne.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,b.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 1:return L.sent(),[4,b.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 2:return[2,L.sent()]}})})},G.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ft("toolbar",` + `))},G.prototype.removeStyleSheet=function(){var b;this.styleSheet&&(((b=this.styleSheetRoot)!==null&&b!==void 0?b:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},G}(),tt=function(G,b){this.selector=G,this.style=b},ft=function(G,b){this.localName=G,this.style=b},Ct=function(){function G(){this.blocks=[],this.display=""}return G.prototype.addButtonBlock=function(b){b.className=this.blockClassName,b.buttonClassName=this.buttonClassName,b.buttonColorsClassName=this.buttonColorsClassName,b.buttonActiveColorsClassName=this.buttonActiveColorsClassName,this.blocks.push(b)},G.prototype.addElementBlock=function(b){b.className===void 0&&(b.className=this.blockClassName),this.blocks.push(b)},G.prototype.getUI=function(){var b=document.createElement("div");return b.className=this.className+" "+this.colorsClassName+" "+this.fadeInClassName,b.style.display=this.display,this.blocks.forEach(function(L){return b.appendChild(L.getUI())}),b},G}(),zt=function(){function G(){}return G.prototype.getUI=function(){var b=document.createElement("div");if(b.className=this.className,this.minWidth!==void 0&&(b.style.minWidth=this.minWidth),this.contentAlign!==void 0)switch(this.contentAlign){case"start":b.style.justifyContent="flex-start";break;case"center":b.style.justifyContent="center";break;case"end":b.style.justifyContent="flex-end"}return b.style.whiteSpace="nowrap",b},G}(),qt=function(G){function b(){var L=G!==null&&G.apply(this,arguments)||this;return L.buttons=[],L}return $e(b,G),b.prototype.addButton=function(L){L.className=this.buttonClassName,L.colorsClassName=this.buttonColorsClassName,L.activeColorsClassName=this.buttonActiveColorsClassName,this.buttons.push(L)},b.prototype.getUI=function(){var L=G.prototype.getUI.call(this);return this.buttons.forEach(function(V){return L.appendChild(V.getUI())}),L},b}(zt),Qt=function(){function G(b,L){this._isActive=!1,this._isHidden=!1,this._icon=b,this.title=L,this.uiContainer=document.createElement("div"),this.adjustClassName=this.adjustClassName.bind(this)}return Object.defineProperty(G.prototype,"icon",{get:function(){return this._icon},set:function(b){this._icon=b,this.buttonContainer.innerHTML=this._icon},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"isActive",{get:function(){return this._isActive},set:function(b){this._isActive=b,this.adjustClassName()},enumerable:!1,configurable:!0}),G.prototype.getUI=function(){var b=this;return this.buttonContainer=document.createElement("div"),this.buttonContainer.title=this.title,this.buttonContainer.className=this.className+" "+this.colorsClassName,this.adjustClassName(),this.buttonContainer.innerHTML=this._icon,this.onClick&&this.buttonContainer.addEventListener("click",function(){return b.onClick()}),this.uiContainer.appendChild(this.buttonContainer),this.uiContainer.style.display=this._isHidden?"none":"inline-block",this.uiContainer},G.prototype.adjustClassName=function(){this.activeColorsClassName&&(this._isActive&&this.buttonContainer.className.indexOf(this.activeColorsClassName)<0?this.buttonContainer.className+=" "+this.activeColorsClassName:this._isActive||(this.buttonContainer.className=this.buttonContainer.className.replace(this.activeColorsClassName,"")))},G.prototype.hide=function(){this._isHidden=!0},G}(),St=function(G){function b(){var L=G!==null&&G.apply(this,arguments)||this;return L.elements=[],L}return $e(b,G),b.prototype.addElement=function(L){this.elements.push(L)},b.prototype.getUI=function(){var L=G.prototype.getUI.call(this);return this.elements.forEach(function(V){return L.appendChild(V)}),L},b}(zt),ln=function(){function G(b,L){this.horizontal=b,this.vertical=L}return Object.defineProperty(G.prototype,"ratio",{get:function(){return 1*this.horizontal/this.vertical},enumerable:!1,configurable:!0}),G.prototype.getVerticalLength=function(b){return b/this.ratio},G.prototype.getHorizontalLength=function(b){return b*this.ratio},G}(),Bt=function(){function G(){}return G.getIcon=function(b,L){if(b>0&&L>0){var V=new ln(b,L),J=V.ratio>=1?20:V.getHorizontalLength(20),Q=V.ratio<1?20:V.getVerticalLength(20),De=document.createElementNS("http://www.w3.org/2000/svg","svg");De.setAttribute("xmlns","http://www.w3.org/2000/svg"),De.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(De);var ot=Ne.createDefs();De.appendChild(ot);var Ot=Ne.createElement("clipPath",[["id","text-bg-clip"]]);ot.appendChild(Ot);var Ft=Ne.createPath(Ne.getHollowRectanglePath((24-J)/2,(24-Q)/2,J,Q,(24-J)/2+2,(24-Q)/2+2,J-4,Q-4));De.appendChild(Ft);var ve=Ne.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);ve.appendChild(Ne.createTSpan(b+":"+L)),De.appendChild(ve);var Gt=ve.getBBox();Ne.setAttributes(ve,[["x",((24-Gt.width)/2).toString()],["y",((24-Gt.height)/2-Gt.y).toString()]]);var en=Ne.createPath(Ne.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(Gt.width))/2,(24-Math.ceil(Gt.height))/2,Math.ceil(Gt.width),Math.ceil(Gt.height)));return Ot.appendChild(en),Ne.setAttributes(Ft,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(De),De.outerHTML}return''},G}(),Yt=function(G){function b(L,V,J){var Q=G.call(this,L,V)||this;return Q.isDropdownOpen=!1,Q.onClick=Q.dropdownButtonClicked,Q.dropdownButtons=J,Q}return $e(b,G),b.prototype.setupDropdown=function(){var L=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(V){V.className=L.className,V.colorsClassName=L.colorsClassName,L.dropdownBlock.appendChild(V.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},b.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},b.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},b.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},b.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},b.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},b}(Qt),Mt=function(){function G(b,L){this.GRIP_SIZE=10,this.color=b,this.fillColor=L,this.visual=Ne.createGroup(),this.visual.appendChild(Ne.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Ne.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return G.prototype.ownsTarget=function(b){return b===this.visual||b===this.visual.childNodes[0]||b===this.visual.childNodes[1]},G.prototype.setCenter=function(b,L){this.visual.childNodes.forEach(function(V){return Ne.setAttributes(V,[["cx",b.toString()],["cy",L.toString()]])})},G}(),tn=function(){function G(b,L,V,J){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=b,this.canvasHeight=L,this.margin=V,this.container=J,this.attachEvents=this.attachEvents.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.resize=this.resize.bind(this),this.adjustCropRect=this.adjustCropRect.bind(this),this.scaleCanvas=this.scaleCanvas.bind(this),this.getRescaledRect=this.getRescaledRect.bind(this)}return Object.defineProperty(G.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(b){this._aspectRatio=b,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(b){this._isGridVisible=b,this.gridContainer&&Ne.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(b){this._zoomFactor=b,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),G.prototype.open=function(){var b=this;this.cropShadeElement=Ne.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=Ne.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var L=0;Lthis.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-L.height/2),Ne.setAttributes(this.cropRectElement,[["x",L.x.toString()],["y",L.y.toString()],["width",L.width.toString()],["height",L.height.toString()]]);var V=L.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(Q,De){var ot=L.y+V*(De+1);Ne.setAttributes(Q,[["x1",""+L.x],["y1",""+ot],["x2",""+(L.x+L.width)],["y2",""+ot]])});var J=L.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(Q,De){var ot=L.x+J*(De+1);Ne.setAttributes(Q,[["x1",""+ot],["y1",""+L.y],["x2",""+ot],["y2",""+(L.y+L.height)]])}),Ne.setAttributes(this.cropShadeElement,[["d",Ne.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,L.x,L.y,L.width,L.height)]]),this.topLeftGrip.setCenter(L.x,L.y),this.topRightGrip.setCenter(L.x+L.width,L.y),this.bottomLeftGrip.setCenter(L.x,L.y+L.height),this.bottomRightGrip.setCenter(L.x+L.width,L.y+L.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},G.prototype.attachEvents=function(){this.container.style.touchAction="none",this.container.addEventListener("pointerdown",this.onPointerDown),this.container.addEventListener("pointermove",this.onPointerMove),this.container.addEventListener("pointerup",this.onPointerUp)},G.prototype.clientToLocalCoordinates=function(b,L){var V=this.container.getBoundingClientRect();return{x:b-V.left+this.margin,y:L-V.top+this.margin}},G.prototype.onPointerDown=function(b){this.container.setPointerCapture(b.pointerId),this.previousPoint=this.clientToLocalCoordinates(b.clientX,b.clientY),this.cropRectElement===b.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(b.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(b.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(b.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(b.target)&&(this.activeGrip=this.bottomRightGrip)},G.prototype.onPointerMove=function(b){if(this.isMoving)this.move(this.clientToLocalCoordinates(b.clientX,b.clientY));else if(this.activeGrip){var L=this.clientToLocalCoordinates(b.clientX,b.clientY);this.resize(L)}b.preventDefault()},G.prototype.onPointerUp=function(b){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(b.pointerId)},G.prototype.move=function(b){var L=b.x-this.previousPoint.x,V=b.y-this.previousPoint.y;this.zoomFactor!==1&&(L=-L/this.zoomFactor,V=-V/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+L),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+V),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=b},G.prototype.resize=function(b){var L=Object.assign({},this.cropRect),V=b.x-this.previousPoint.x,J=b.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:L.x+Vthis.canvasWidth*this.zoomFactor&&(V=this.canvasWidth*this.zoomFactor-L.width),L.width+=V}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(L.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(V),L.height=this.aspectRatio.getVerticalLength(L.width)):(L.y+=J,L.height=this.cropRect.y+this.cropRect.height-L.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?L.height=this.aspectRatio.getVerticalLength(L.width):L.height+=J}L.width<10&&(L.x=this.cropRect.x,L.width=10),L.height<10&&(L.y=this.cropRect.y,L.height=10),this.previousPoint=b,L.x>=this.margin&&L.y>=this.margin&&L.x-this.margin+L.width<=this.canvasWidth&&L.y-this.margin+L.height<=this.canvasHeight&&(this.cropRect=L,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},G.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var b=this.cropRect.x+this.cropRect.width/2,L=this.cropRect.y+this.cropRect.height/2,V=this.aspectRatio.getHorizontalLength(this.cropRect.height),J=this.aspectRatio.getVerticalLength(this.cropRect.width);V/this.canvasWidththis.canvasWidth&&(this.cropRect.height/=this.cropRect.width/this.canvasWidth,this.cropRect.width=this.canvasWidth),this.cropRect.height>this.canvasHeight&&(this.cropRect.width/=this.cropRect.height/this.canvasHeight,this.cropRect.height=this.canvasHeight),this.cropRect.x=b-this.cropRect.width/2,this.cropRect.y=L-this.cropRect.height/2,this.cropRect.x+this.cropRect.width>this.margin+this.canvasWidth&&(this.cropRect.x=this.margin+this.canvasWidth-this.cropRect.width),this.cropRect.y+this.cropRect.height>this.margin+this.canvasHeight&&(this.cropRect.y=this.margin+this.canvasHeight-this.cropRect.height),this.cropRect.x=Math.max(this.cropRect.x,this.margin),this.cropRect.y=Math.max(this.cropRect.y,this.margin)}},G.prototype.getRescaledRect=function(b,L,V,J,Q,De){var ot=V/b,Ot=J/L;return{x:(Q.x-De)*ot+De,y:(Q.y-De)*Ot+De,width:Q.width*ot,height:Q.height*Ot}},G.prototype.scaleCanvas=function(b,L){var V=this.getRescaledRect(this.canvasWidth,this.canvasHeight,b,L,this.cropRect,this.margin);this.canvasWidth=b,this.canvasHeight=L,this.onCropChange&&this.onCropChange(V),this.setCropRectangle(V)},G}(),mn=function(){function G(b){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=b,this.uiContainer=document.createElement("div"),this.getUI=this.getUI.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.setAngleLabel=this.setAngleLabel.bind(this),this.positionScaleShape=this.positionScaleShape.bind(this)}return Object.defineProperty(G.prototype,"angle",{get:function(){return this._angle},set:function(b){this._angle=b,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),G.prototype.getUI=function(){return this.controlContainer=document.createElement("div"),this.controlContainer.title=this.title,this.controlContainer.className=this.className+" "+this.colorsClassName,this.controlContainer.appendChild(this.getVisual()),this.controlContainer.addEventListener("pointerdown",this.onPointerDown),this.controlContainer.addEventListener("pointermove",this.onPointerMove),this.controlContainer.addEventListener("pointerup",this.onPointerUp),this.uiContainer.appendChild(this.controlContainer),this.uiContainer.style.display="inline-block",this.uiContainer.style.touchAction="none",this.setAngleLabel(),this.positionScaleShape(),this.uiContainer},G.prototype.onPointerDown=function(b){this.controlContainer.setPointerCapture(b.pointerId),this.isDragging=!0,this.previousPoint={x:b.clientX,y:b.clientY}},G.prototype.onPointerMove=function(b){this.isDragging&&(this.onAngleChange&&this.onAngleChange((b.clientX-this.previousPoint.x)/5),this.previousPoint.x=b.clientX)},G.prototype.onPointerUp=function(b){this.isDragging&&this.onAngleChange&&this.onAngleChange((b.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(b.pointerId)},G.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var b=this.angleLabelText.getBBox();Ne.setAttributes(this.angleLabelElement,[["x",((this.width-b.width)/2).toString()],["y",(this.height/2).toString()]])}},G.prototype.positionScaleShape=function(){if(this.scaleShape){var b=this.scaleShape.transform.baseVal.getItem(0);b.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(b,0)}},G.prototype.getVisual=function(){var b=document.createElementNS("http://www.w3.org/2000/svg","svg");b.setAttribute("xmlns","http://www.w3.org/2000/svg"),b.setAttribute("width",this.width+"px"),b.setAttribute("height",this.height+"px"),b.setAttribute("viewBox","0 0 "+this.width+" "+this.height),b.style.flexShrink="0",document.body.appendChild(b);for(var L="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,V=1;V<=this.width/5+10;V++){var J=V%5==0?this.height/3:this.height/6;L+="h4v"+-J+"h1v"+J}L+="v1H0Z",this.scaleShape=Ne.createPath(L);var Q=Ne.createTransform();this.scaleShape.transform.baseVal.appendItem(Q),b.appendChild(this.scaleShape),this.angleLabelElement=Ne.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=Ne.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var De=Ne.createTSpan("");return De.innerHTML="°",this.angleLabelElement.appendChild(De),b.appendChild(this.angleLabelElement),document.body.removeChild(b),b},G}(),An=function(){function G(){this.naturalSize=!1,this.imageType="image/png"}return G.prototype.rasterize=function(b,L,V,J,Q,De,ot){var Ot=this;return new Promise(function(Ft){var ve=document.createElement("canvas");ve.width=b.width.baseVal.value-2*J,ve.height=b.height.baseVal.value-2*J;var Gt=1,en=1;Ot.naturalSize===!0?(Gt=L.naturalWidth/(b.width.baseVal.value-2*J)/De,en=L.naturalHeight/(b.height.baseVal.value-2*J)/ot,ve.width=L.naturalWidth/De,ve.height=L.naturalHeight/ot):Ot.width!==void 0&&Ot.height!==void 0&&(Gt=Ot.width/V.width,en=Ot.height/V.height,ve.width*=Gt,ve.height*=en);var Tn=ve.getContext("2d");Tn.translate(ve.width/2,ve.height/2),Tn.rotate(Q*Math.PI/180),Tn.scale(De,ot),Tn.translate(-ve.width/2,-ve.height/2),Tn.drawImage(L,0,0,ve.width,ve.height);var Wn=document.createElement("canvas");Wn.width=V.width*Gt,Wn.height=V.height*en,Wn.getContext("2d").putImageData(Tn.getImageData((V.x-J)*Gt,(V.y-J)*en,V.width*Gt,V.height*en),0,0),Ft(Wn.toDataURL(Ot.imageType,Ot.imageQuality))})},G}(),lt=function(){function G(b){this._zoomToCropEnabled=!0,this.zoomFactor=1,this.flippedHorizontally=!1,this.flippedVertically=!1,this._isGridVisible=!0,this._gridLines=2,this._rotationAngle=0,this.scaleFactor=1,this.renderEventListeners=[],this.closeEventListeners=[],this._isOpen=!1,this.CANVAS_MARGIN=20,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.displayMode="inline",this.popupMargin=30,this.toolbarHeight=40,this.aspectRatios=[{horizontal:0,vertical:0},{horizontal:4,vertical:3},{horizontal:3,vertical:2},{horizontal:16,vertical:9},{horizontal:1,vertical:1},{horizontal:3,vertical:4},{horizontal:2,vertical:3},{horizontal:9,vertical:16}],this._instanceNo=G.instanceCounter++,this.styles=new Ve(this.instanceNo),this.target=b,this.targetRoot=document.body,this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.rotateBy=this.rotateBy.bind(this),this.applyRotation=this.applyRotation.bind(this),this.cropRectChanged=this.cropRectChanged.bind(this),this.zoomToCrop=this.zoomToCrop.bind(this),this.unzoomFromCrop=this.unzoomFromCrop.bind(this),this.rotateLeftButtonClicked=this.rotateLeftButtonClicked.bind(this),this.rotateRightButtonClicked=this.rotateRightButtonClicked.bind(this),this.flipHorizontallyButtonClicked=this.flipHorizontallyButtonClicked.bind(this),this.flipVerticallyButtonClicked=this.flipVerticallyButtonClicked.bind(this),this.applyFlip=this.applyFlip.bind(this),this.startRenderAndClose=this.startRenderAndClose.bind(this),this.render=this.render.bind(this),this.onPopupResize=this.onPopupResize.bind(this),this.applyAspectRatio=this.applyAspectRatio.bind(this)}return Object.defineProperty(G.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(b){this._zoomToCropEnabled=b,b?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(b){this._isGridVisible=b,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"gridLines",{get:function(){return this._gridLines},set:function(b){this._gridLines=b,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(b){this._rotationAngle=b,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"aspectRatio",{get:function(){var b;return(b=this._aspectRatio)!==null&&b!==void 0?b:this.aspectRatios[0]},set:function(b){this._aspectRatio=b},enumerable:!1,configurable:!0}),G.prototype.open=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.setupResizeObserver(),this.initCropCanvas(),this.setEditingTarget(),this.setTopLeft(),this.initCropLayer(),this.attachEvents(),this.applyAspectRatio(),this.displayMode==="popup"&&this.onPopupResize(),this._isOpen=!0},G.prototype.show=function(){this.showUI(),this.open()},G.prototype.close=function(b){b===void 0&&(b=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),b||this.closeEventListeners.forEach(function(L){return L()}),this._isOpen=!1)},G.prototype.addRenderEventListener=function(b){this.renderEventListeners.push(b)},G.prototype.removeRenderEventListener=function(b){this.renderEventListeners.indexOf(b)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(b),1)},G.prototype.addCloseEventListener=function(b){this.closeEventListeners.push(b)},G.prototype.removeCloseEventListener=function(b){this.closeEventListeners.indexOf(b)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(b),1)},G.prototype.setupResizeObserver=function(){var b=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){b.resize(b.target.clientWidth,b.target.clientHeight)}),this.targetObserver.observe(this.target)):this.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(this.onPopupResize),this.targetObserver.observe(this.contentDiv)),window.addEventListener("resize",this.setWindowHeight))},G.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var b=1*this.target.clientWidth/this.target.clientHeight,L=this.contentDiv.clientWidth/b>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*b:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,V=L+2*this.CANVAS_MARGINb+this.CANVAS_MARGIN?this.target.offsetTop-(b+this.CANVAS_MARGIN):0;this.coverDiv.style.top=L+"px",this.coverDiv.style.left=(this.target.offsetLeft>this.CANVAS_MARGIN?this.target.offsetLeft-this.CANVAS_MARGIN:0)+"px",this.coverDiv.style.width=this.target.offsetWidth+this.CANVAS_MARGIN+"px",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.displayMode==="popup"?this.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.addToolbars(),this.uiDiv.appendChild(this.topToolbar.getUI()),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.alignItems="center",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.contentDiv.style.overflow="hidden",this.contentDiv.style.backgroundColor=this.styles.settings.canvasBackgroundColor,this.displayMode==="popup"&&(this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.popupMargin+"px)"),this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.contentDiv.appendChild(this.editorCanvas),this.uiDiv.appendChild(this.bottomToolbar.getUI()),this.straightener.angle=this.rotationAngle},G.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},G.prototype.addTopToolbar=function(){var b=this;this.topToolbar=new Ct,this.topToolbar.display=this.styles.settings.hideTopToolbar?"none":"",this.topToolbar.className=this.toolbarStyleClass.name,this.topToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.topToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.topToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.topToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.topToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.topToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var L=new qt;L.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(L);var V=[];this.aspectRatios.forEach(function(en){var Tn=new Qt(Bt.getIcon(en.horizontal,en.vertical),en.horizontal===0&&en.vertical===0?"FREE":en.horizontal+":"+en.vertical);Tn.onClick=function(){return b.ratioButtonClicked(en)},V.push(Tn)}),this.aspectRatioButton=new Yt(Bt.getIcon(0,0),"Aspect ratio",V),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,L.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var J=new Qt('',"Toggle grid");J.isActive=this.isGridVisible,J.onClick=function(){b.isGridVisible=!b.isGridVisible,J.isActive=b.isGridVisible},L.addButton(J);var Q=new Qt('',"Zoom to selection");if(Q.isActive=this.zoomToCropEnabled,Q.onClick=function(){b.zoomToCropEnabled=!b.zoomToCropEnabled,Q.isActive=b.zoomToCropEnabled},L.addButton(Q),!at.isLicensed){var De=new St;this.topToolbar.addElementBlock(De);var ot=document.createElement("div");ot.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var Ot=document.createElement("a");Ot.style.color="currentColor",Ot.href="https://markerjs.com/products/cropro",Ot.target="_blank",Ot.innerHTML='',ot.appendChild(Ot),De.addElement(ot)}var Ft=new qt;Ft.minWidth=3*this.toolbarHeight+"px",Ft.contentAlign="end",this.topToolbar.addButtonBlock(Ft);var ve=new Qt('',"OK");ve.onClick=this.startRenderAndClose,Ft.addButton(ve),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(ve.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var Gt=new Qt('',"Close");Gt.onClick=this.close,Ft.addButton(Gt),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(Gt.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},G.prototype.addBottomToolbar=function(){var b=this;this.bottomToolbar=new Ct,this.bottomToolbar.display=this.styles.settings.hideBottomToolbar?"none":"",this.bottomToolbar.className=this.toolbarStyleClass.name,this.bottomToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.bottomToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.bottomToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.bottomToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.bottomToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.bottomToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var L=new qt;L.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(L);var V=new Qt('',"Rotate left");V.onClick=this.rotateLeftButtonClicked,L.addButton(V);var J=new Qt('',"Rotate right");J.onClick=this.rotateRightButtonClicked,L.addButton(J);var Q=new St;Q.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(Q),this.straightener=new mn("Straighten"),this.straightener.className=this.toolbarStraightenerStyleClass.name,this.straightener.colorsClassName=this.styles.settings.toolbarStraightenerColorsClassName?this.styles.settings.toolbarStraightenerColorsClassName:this.toolbarStraightenerStyleColorsClass.name,this.straightener.onAngleChange=function(Ft){b.rotateBy(Ft),b.straightener.angle=b.rotationAngle},Q.addElement(this.straightener.getUI());var De=new qt;De.minWidth=2*this.toolbarHeight+"px",De.contentAlign="end",this.bottomToolbar.addButtonBlock(De);var ot=new Qt('',"Flip horizontal");ot.onClick=this.flipHorizontallyButtonClicked,De.addButton(ot);var Ot=new Qt('',"Flip vertical");Ot.onClick=this.flipVerticallyButtonClicked,De.addButton(Ot)},G.prototype.ratioButtonClicked=function(b){this.aspectRatio=b,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},G.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=Bt.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},G.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new ln(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},G.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},G.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},G.prototype.restoreState=function(b){if(b){var L=this.cropLayer.getRescaledRect(b.width,b.height,this.imageWidth,this.imageHeight,b.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(L),this.cropRectChanged(L),this.flippedHorizontally=b.flippedHorizontally,this.flippedVertically=b.flippedVertically,this.applyFlip(),this.rotationAngle=b.rotationAngle,this.applyRotation()}},G.prototype.clientToLocalCoordinates=function(b,L){var V=this.cropImage.getBoundingClientRect();return{x:b-V.left,y:L-V.top}},G.prototype.onWindowResize=function(){this.positionUI()},G.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var b=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=b+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)"}this.positionCropImage()},G.prototype.rotateLeftButtonClicked=function(){var b=this.rotationAngle-90;this.rotationAngle%90!=0&&(b+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(b)},G.prototype.rotateRightButtonClicked=function(){var b=this.rotationAngle+90;this.rotationAngle%90!=0&&(b-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(b)},G.prototype.rotateTo=function(b){b=(b=b>180?b-360:b)<=-180?b+360:b,this.rotationAngle=b,this.applyRotation()},G.prototype.rotateBy=function(b){this.rotateTo((this.rotationAngle+b)%360)},G.prototype.applyRotation=function(){var b=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var L=this.editingTargetRotationContainer.transform.baseVal.getItem(0);L.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(L,0);var V=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/V.width,this.imageHeight/V.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=b},G.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},G.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},G.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},G.prototype.startRenderAndClose=function(){return Pe(this,void 0,void 0,function(){var b,L;return it(this,function(V){switch(V.label){case 0:return[4,this.render()];case 1:return b=V.sent(),L=this.getState(),this.renderEventListeners.forEach(function(J){return J(b,L)}),this.close(!0),[2]}})})},G.prototype.render=function(){return Pe(this,void 0,void 0,function(){var b;return it(this,function(L){switch(L.label){case 0:return(b=new An).naturalSize=this.renderAtNaturalSize,b.imageType=this.renderImageType,b.imageQuality=this.renderImageQuality,b.width=this.renderWidth,b.height=this.renderHeight,this.unzoomFromCrop(),Ne.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,b.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 1:return L.sent(),[4,b.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 2:return[2,L.sent()]}})})},G.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ft("toolbar",` width: `+(this.displayMode==="inline"?"100%":"calc(100vw - "+2*this.popupMargin+"px)")+`; flex-shrink: 0; display: flex; @@ -231,20 +231,20 @@ PERFORMANCE OF THIS SOFTWARE. `)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new ft("toolbar_straightener_colors",` color: `+this.styles.settings.toolbarColor+`; fill: currentColor; - `))},G.instanceCounter=0,G}(),Rt=N("8hTe"),Jt=N.n(Rt),nn=/]*>/g;function un(G){var b=document.createElement("div");return b.innerHTML=G,b.childNodes.length===0?"":b.childNodes[0].nodeValue}var cn=de.a=function(G){var b=G.value,L=b===void 0?"":b,V=G.edit,J=V===void 0?!1:V,Q=G.className,De=G.showTextOnly,ot=G.showLines,Ot=G.replaces,Ft=G.zoomImg,ve=G.hasMask,Gt=G.style,en=Gt===void 0?{}:Gt,Tn=G.stylesPrev,Wn=Tn===void 0?{}:Tn,tr=String(L),Rn=Object(R.useRef)(),or=Object(R.useRef)(),fr=Object(R.useState)(""),Vn=Object(j.a)(fr,2),sr=Vn[0],Jn=Vn[1],Mr=Object(R.useState)("office"),Xn=Object(j.a)(Mr,2),Ir=Xn[0],yr=Xn[1],Tr=function(){var hn=new lt(or.current);hn.displayMode="popup",hn.addRenderEventListener(function(){var kn=Object(M.a)(_.a.mark(function yn(Ln){var bn;return _.a.wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:return Rn.current.style.display="none",Bn.next=3,Object(Ge.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Ln}});case 3:bn=Bn.sent,bn!=null&&bn.id&&Ot(or.current.getAttribute("src").replace(le.a.API_SERVER,""),"/api/attachments/".concat(bn==null?void 0:bn.id,"?type=").concat(bn.content_type));case 5:case"end":return Bn.stop()}},yn)}));return function(yn){return kn.apply(this,arguments)}}()),hn.show()},Yr=function(){var hn=new se(or.current);hn.settings.displayMode="popup",hn.addEventListener("render",function(){var kn=Object(M.a)(_.a.mark(function yn(Ln){var bn;return _.a.wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:if(Rn.current.style.display="none",!or.current){Bn.next=6;break}return Bn.next=4,Object(Ge.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Ln.dataUrl}});case 4:bn=Bn.sent,bn!=null&&bn.id&&Ot(or.current.getAttribute("src").replace(le.a.API_SERVER,""),"/api/attachments/".concat(bn==null?void 0:bn.id,"?type=").concat(bn.content_type));case 6:case"end":return Bn.stop()}},yn)}));return function(yn){return kn.apply(this,arguments)}}()),hn.show(),window.markerArea=hn},br=Object(R.useMemo)(function(){try{var Sn=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,hn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,kn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;tr=tr.replace(Sn,"("+le.a.API_SERVER+"/api/attachments/").replace(hn,'"'+le.a.API_SERVER+"/api/attachments/").replace(kn,'"'+le.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` + `))},G.instanceCounter=0,G}(),Rt=N("8hTe"),Jt=N.n(Rt),nn=/]*>/g;function un(G){var b=document.createElement("div");return b.innerHTML=G,b.childNodes.length===0?"":b.childNodes[0].nodeValue}var cn=de.a=function(G){var b=G.value,L=b===void 0?"":b,V=G.edit,J=V===void 0?!1:V,Q=G.className,De=G.showTextOnly,ot=G.showLines,Ot=G.replaces,Ft=G.zoomImg,ve=G.hasMask,Gt=G.style,en=Gt===void 0?{}:Gt,Tn=G.stylesPrev,Wn=Tn===void 0?{}:Tn,tr=String(L),Rn=Object(R.useRef)(),or=Object(R.useRef)(),fr=Object(R.useState)(""),Vn=Object(j.a)(fr,2),sr=Vn[0],Jn=Vn[1],Mr=Object(R.useState)("office"),Xn=Object(j.a)(Mr,2),Ir=Xn[0],yr=Xn[1],Tr=function(){var hn=new lt(or.current);hn.displayMode="popup",hn.addRenderEventListener(function(){var Pn=Object(M.a)(_.a.mark(function yn(Ln){var bn;return _.a.wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:return Rn.current.style.display="none",Bn.next=3,Object(Ge.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Ln}});case 3:bn=Bn.sent,bn!=null&&bn.id&&Ot(or.current.getAttribute("src").replace(le.a.API_SERVER,""),"/api/attachments/".concat(bn==null?void 0:bn.id,"?type=").concat(bn.content_type));case 5:case"end":return Bn.stop()}},yn)}));return function(yn){return Pn.apply(this,arguments)}}()),hn.show()},Yr=function(){var hn=new se(or.current);hn.settings.displayMode="popup",hn.addEventListener("render",function(){var Pn=Object(M.a)(_.a.mark(function yn(Ln){var bn;return _.a.wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:if(Rn.current.style.display="none",!or.current){Bn.next=6;break}return Bn.next=4,Object(Ge.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Ln.dataUrl}});case 4:bn=Bn.sent,bn!=null&&bn.id&&Ot(or.current.getAttribute("src").replace(le.a.API_SERVER,""),"/api/attachments/".concat(bn==null?void 0:bn.id,"?type=").concat(bn.content_type));case 6:case"end":return Bn.stop()}},yn)}));return function(yn){return Pn.apply(this,arguments)}}()),hn.show(),window.markerArea=hn},br=Object(R.useMemo)(function(){try{var Sn=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,hn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Pn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;tr=tr.replace(Sn,"("+le.a.API_SERVER+"/api/attachments/").replace(hn,'"'+le.a.API_SERVER+"/api/attachments/").replace(Pn,'"'+le.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` `),tr=tr.replace(new RegExp("(?[TOC]

    ",O()),x()),yn=yn.replace(/(__special_katext_id_\d+__)/g,function(wr,Bn){var Qn=Ln[Bn],zr=Qn.type,jr=Qn.expression;return Object(pe.renderToString)(un(jr)||"",{displayMode:zr==="block",throwOnError:!1,output:"html"})}),yn=yn.replace(/▁/g,"\u2581\u2581\u2581"),T(),De){var bn=document.createElement("div");return bn.innerHTML=yn,bn.innerText}return setTimeout(function(){return _r()},500),yn},[tr]),nr=Object(R.useRef)();E.WebkitLineClamp=ot,ot&&(en=Object(B.a)(Object(B.a)({},en),E));function Ur(Sn){var hn=Sn.target;if(hn.tagName.toUpperCase()==="IMG"){if(Ft){var kn=hn.getAttribute("src");Jn(kn),yr("image")}}else if(hn.tagName.toUpperCase()==="A"){var yn=hn.getAttribute("href");if(yn.indexOf("office")>-1)Sn.preventDefault(),Jn(yn),yr("office");else if(yn.indexOf("application/pdf")>-1)Sn.preventDefault(),Jn(yn),yr("pdf");else if(yn.indexOf("type=text")>-1)Sn.preventDefault(),Jn(yn),yr("html");else if(yn.startsWith("#")){Sn.preventDefault();var Ln=document.getElementById(yn.replace("#",""));Ln&&Ln.scrollIntoView(!0)}}}var _r=function(){var hn,kn=(hn=nr.current)===null||hn===void 0?void 0:hn.querySelectorAll("video");kn==null||kn.forEach(function(yn){if(yn.oncontextmenu=function(){return!1},yn.src.indexOf(".m3u8")>-1&&!yn.canPlayType("application/vnd.apple.mpegurl")){if(q.a.isSupported()){var Ln=new q.a;Ln.loadSource(yn.src),Ln.attachMedia(yn)}}})};Object(R.useEffect)(function(){if(nr.current&&br&&(br.match(nn)&&window.PR.prettyPrint()),nr.current)return nr.current.addEventListener("click",Ur),function(){nr.current.removeEventListener("click",Ur),T(),x()}},[br,nr.current,Ur]);var Fr=function(hn){if(!J)return;hn.target.nodeName==="IMG"?(Rn.current.style.display="flex",Rn.current.style.width=hn.target.clientWidth+"px",Rn.current.style.height=hn.target.clientHeight+"px",Rn.current.style.top=hn.target.offsetTop+"px",Rn.current.style.left=hn.target.offsetLeft+"px",or.current.src=hn.target.getAttribute("src")):Rn.current.style.display="none"};return c.a.createElement("div",{style:{position:"relative"}},c.a.createElement("div",{ref:nr,style:Object(B.a)({},en),className:"".concat(Q||""," markdown-body ").concat(Jt.a.mdBody),onMouseOver:Fr,dangerouslySetInnerHTML:{__html:br}}),c.a.createElement("div",{ref:Rn,className:Jt.a.button},c.a.createElement(K.a,null,c.a.createElement(z.a,{onClick:function(){return Tr()}},"\u88C1\u526A"),c.a.createElement(z.a,{onClick:function(){return Yr()}},"\u7F16\u8F91"))),c.a.createElement("img",{ref:or,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1,top:"-10000px"}}),c.a.createElement(Ae.a,{close:!0,data:sr,hasMask:ve,type:sr!=null&&sr.length?Ir:"",style:Object(B.a)({},Wn),onClose:function(){return Jn("")}}))}},"9GDu":function(et,de,N){et.exports={flex_box_center:"flex_box_center___2Dduc",flex_space_between:"flex_space_between___2Le2r",flex_box_vertical_center:"flex_box_vertical_center___2KZsK",flex_box_center_end:"flex_box_center_end___1aosz",flex_box_column:"flex_box_column___cFN2D",bg:"bg___ka_0p",title:"title___3M9-E",questionIcons:"questionIcons___VjWTs",green:"green___2q3Jn",orange:"orange___KXt8o",greenTip:"greenTip___1nV5h",redTip:"redTip___3QDm4",orangeTip:"orangeTip___3F21W",pollDesc:"pollDesc___3Jb8Y",answered:"answered___1tbR8",unanswer:"unanswer___2Jts9",anchor:"anchor___3_nBp",answerFlag:"answerFlag___32KcB",flagActive:"flagActive___3ac8b",flagHalf:"flagHalf___1AvT6",answerStudentFlag:"answerStudentFlag___UbvlB",answerStudentActive:"answerStudentActive___27het",questionItem:"questionItem___3nBk4",itemType:"itemType___3NNh-",itemFlag:"itemFlag___2fz1F",answerWrap:"answerWrap___23vJg",answerSubjective:"answerSubjective___1i3N-",otherInput:"otherInput___gQ5U6",submitButton:"submitButton___RAvWu",randomFlag:"randomFlag___1J_UJ",answerTrue:"answerTrue___1cUgp",answerFalse:"answerFalse___Q16xV",answerHalf:"answerHalf___2I-fp",renderHtml:"renderHtml___1O15z",simpleText:"simpleText___1-h1E",answerYes:"answerYes___3w-7A",answerNo:"answerNo___2TuuH",answerInfo:"answerInfo___3KPDJ",answerSheet:"answerSheet___1UuGf",active:"active___2njWQ",countDown:"countDown___ViVY-",red:"red___RmODq",fold:"fold___ZVRBm",cardList:"cardList___1KJD0",iframe:"iframe___8V6GW"}},"9VGf":function(et,de,N){"use strict";N.d(de,"a",function(){return P});var ee=N("q1tI"),K=N.n(ee);function P(z,B){var M=Object(ee.useRef)();Object(ee.useEffect)(function(){M.current=z}),Object(ee.useEffect)(function(){function j(){M.current()}if(B!==null){var U=setInterval(j,B);return function(){return clearInterval(U)}}},[B])}},"A/g1":function(et,de){et.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF92lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDMgNzkuMTY0NTI3LCAyMDIwLzEwLzE1LTE3OjQ4OjMyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmO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NVAFiTUe85HzLedaKNxfd/h4FvuPdoA9Hvj7ftmhMAkFbZyaxaQH1a3XwurL9tp4kN7fsUQz5fTnxbGH8GFt7DcwpecTuMFmlIaZ+bjOgvF2u7d/gnIWZR+Q1KPowcIIaAhQSarqmH/xE0TpQbb92M9uT7kdz+/HqfDB0EcF/ZRi1ggYFER/cYcMtMOO3jzlmVjXKDrkt5uv9are9ZLJ8L6UcJ+HplVotygVRlYLFwM4GWf2njl/ymq1fqrSgM3J1Sfz5Rnd15ulp/tiGtPV6h0aIwaCDxUPc/F8sfOQdqTKnbrvjMf9fOK7ZLCyv8Jom1s9qvsHANttQw4dhY++6BW+sKFlNJr7E9K6wOZEoT0YU3ogvXm5OSMK5KQ347v7oggZbr3j/+PWwUnoj9jyHCk+OP7p3Kry+6nL33uvazqbD+6+W35RDmrtGOPW8Va7JcjzemtC+frTKWfgJyCQmxI/GZ7x+warfdUKy/rj47UZXdnlHZXHprJWBcFKZsGX1k16t2spI7oqbr3iOTkdzGyz7z8tK5s4eAN4UiHxx5dO94Ka2jLd2Gq95TI/e9tXoqbBytZLJzwAUGdY+273nc6Y294z3p1sRW2ZhSt02Gsg+eDxknyl07FYWRY8I+aZptYx27B0Bw/Bp3faHRcs13EsCWiWpjZ8DEU+Ecxe7IKjVl5GMy8zAJMQSIwbH27rL+7FH2jUzTNfUwgMMAkFiFlf5MrstviA4PU61HIuo1KQRCdkGeJCDJoCQkkkzyOFVF4mOxyv9u8x8opnU6UeBF0wAAAABJRU5ErkJggg=="},BU3w:function(et,de,N){"use strict";N.d(de,"a",function(){return M});var ee=N("MNnm"),K="rc-util-key";function P(j){if(j.attachTo)return j.attachTo;var U=document.querySelector("head");return U||document.body}function z(j){var U,_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(ee.a)())return null;var R=document.createElement("style");if((U=_.csp)===null||U===void 0?void 0:U.nonce){var c;R.nonce=(c=_.csp)===null||c===void 0?void 0:c.nonce}R.innerHTML=j;var g=P(_),w=g.firstChild;return _.prepend&&g.prepend?g.prepend(R):_.prepend&&w?g.insertBefore(R,w):g.appendChild(R),R}var B=new Map;function M(j,U){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},R=P(_);if(!B.has(R)){var c=z("",_),g=c.parentNode;B.set(R,g),g.removeChild(c)}var w=Array.from(B.get(R).children).find(function(n){return n.tagName==="STYLE"&&n[K]===U});if(w){var y,f;if(((y=_.csp)===null||y===void 0?void 0:y.nonce)&&w.nonce!==((f=_.csp)===null||f===void 0?void 0:f.nonce)){var m;w.nonce=(m=_.csp)===null||m===void 0?void 0:m.nonce}return w.innerHTML!==j&&(w.innerHTML=j),w}var a=z(j,_);return a[K]=U,a}},Bd2K:function(et,de,N){(function(ee){ee(N("VrN/"),N("osHv"))})(function(ee){ee.defineOption("autoCloseTags",!1,function(_,R,c){if(c!=ee.Init&&c&&_.removeKeyMap("autoCloseTags"),!R)return;var g={name:"autoCloseTags"};(typeof R!="object"||R.whenClosing!==!1)&&(g["'/'"]=function(w){return M(w)}),(typeof R!="object"||R.whenOpening!==!1)&&(g["'>'"]=function(w){return z(w)}),_.addKeyMap(g)});var K=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],P=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function z(_){if(_.getOption("disableInput"))return ee.Pass;for(var R=_.listSelections(),c=[],g=_.getOption("autoCloseTags"),w=0;wy.ch&&(o=o.slice(0,o.length-f.end+y.ch));var v=o.toLowerCase();if(!o||f.type=="string"&&(f.end!=y.ch||!/[\"\']/.test(f.string.charAt(f.string.length-1))||f.string.length==1)||f.type=="tag"&&n.close||f.string.indexOf("/")==y.ch-f.start-1||x&&j(x,v)>-1||U(_,m.mode.xmlCurrentContext&&m.mode.xmlCurrentContext(a)||[],o,y,!0))return ee.Pass;var O=typeof g=="object"&&g.emptyTags;if(O&&j(O,o)>-1){c[w]={text:"/>",newPos:ee.Pos(y.line,y.ch+2)};continue}var A=E&&j(E,v)>-1;c[w]={indent:A,text:">"+(A?` +`)}catch(wr){}var yn=Y(tr),Ln=D();if(tr.match(/\[TOC\]/)&&(yn=yn.replace("

    [TOC]

    ",O()),x()),yn=yn.replace(/(__special_katext_id_\d+__)/g,function(wr,Bn){var Qn=Ln[Bn],zr=Qn.type,jr=Qn.expression;return Object(pe.renderToString)(un(jr)||"",{displayMode:zr==="block",throwOnError:!1,output:"html"})}),yn=yn.replace(/▁/g,"\u2581\u2581\u2581"),T(),De){var bn=document.createElement("div");return bn.innerHTML=yn,bn.innerText}return setTimeout(function(){return _r()},500),yn},[tr]),nr=Object(R.useRef)();E.WebkitLineClamp=ot,ot&&(en=Object(B.a)(Object(B.a)({},en),E));function Ur(Sn){var hn=Sn.target;if(hn.tagName.toUpperCase()==="IMG"){if(Ft){var Pn=hn.getAttribute("src");Jn(Pn),yr("image")}}else if(hn.tagName.toUpperCase()==="A"){var yn=hn.getAttribute("href");if(yn.indexOf("office")>-1)Sn.preventDefault(),Jn(yn),yr("office");else if(yn.indexOf("application/pdf")>-1)Sn.preventDefault(),Jn(yn),yr("pdf");else if(yn.indexOf("type=text")>-1)Sn.preventDefault(),Jn(yn),yr("html");else if(yn.startsWith("#")){Sn.preventDefault();var Ln=document.getElementById(yn.replace("#",""));Ln&&Ln.scrollIntoView(!0)}}}var _r=function(){var hn,Pn=(hn=nr.current)===null||hn===void 0?void 0:hn.querySelectorAll("video");Pn==null||Pn.forEach(function(yn){if(yn.oncontextmenu=function(){return!1},yn.src.indexOf(".m3u8")>-1&&!yn.canPlayType("application/vnd.apple.mpegurl")){if(q.a.isSupported()){var Ln=new q.a;Ln.loadSource(yn.src),Ln.attachMedia(yn)}}})};Object(R.useEffect)(function(){if(nr.current&&br&&(br.match(nn)&&window.PR.prettyPrint()),nr.current)return nr.current.addEventListener("click",Ur),function(){nr.current.removeEventListener("click",Ur),T(),x()}},[br,nr.current,Ur]);var Fr=function(hn){if(!J)return;hn.target.nodeName==="IMG"?(Rn.current.style.display="flex",Rn.current.style.width=hn.target.clientWidth+"px",Rn.current.style.height=hn.target.clientHeight+"px",Rn.current.style.top=hn.target.offsetTop+"px",Rn.current.style.left=hn.target.offsetLeft+"px",or.current.src=hn.target.getAttribute("src")):Rn.current.style.display="none"};return c.a.createElement("div",{style:{position:"relative"}},c.a.createElement("div",{ref:nr,style:Object(B.a)({},en),className:"".concat(Q||""," markdown-body ").concat(Jt.a.mdBody),onMouseOver:Fr,dangerouslySetInnerHTML:{__html:br}}),c.a.createElement("div",{ref:Rn,className:Jt.a.button},c.a.createElement(K.a,null,c.a.createElement(z.a,{onClick:function(){return Tr()}},"\u88C1\u526A"),c.a.createElement(z.a,{onClick:function(){return Yr()}},"\u7F16\u8F91"))),c.a.createElement("img",{ref:or,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1,top:"-10000px"}}),c.a.createElement(Ae.a,{close:!0,data:sr,hasMask:ve,type:sr!=null&&sr.length?Ir:"",style:Object(B.a)({},Wn),onClose:function(){return Jn("")}}))}},"9GDu":function(et,de,N){et.exports={flex_box_center:"flex_box_center___2Dduc",flex_space_between:"flex_space_between___2Le2r",flex_box_vertical_center:"flex_box_vertical_center___2KZsK",flex_box_center_end:"flex_box_center_end___1aosz",flex_box_column:"flex_box_column___cFN2D",bg:"bg___ka_0p",title:"title___3M9-E",questionIcons:"questionIcons___VjWTs",green:"green___2q3Jn",orange:"orange___KXt8o",greenTip:"greenTip___1nV5h",redTip:"redTip___3QDm4",orangeTip:"orangeTip___3F21W",pollDesc:"pollDesc___3Jb8Y",answered:"answered___1tbR8",unanswer:"unanswer___2Jts9",anchor:"anchor___3_nBp",answerFlag:"answerFlag___32KcB",flagActive:"flagActive___3ac8b",flagHalf:"flagHalf___1AvT6",answerStudentFlag:"answerStudentFlag___UbvlB",answerStudentActive:"answerStudentActive___27het",questionItem:"questionItem___3nBk4",itemType:"itemType___3NNh-",itemFlag:"itemFlag___2fz1F",answerWrap:"answerWrap___23vJg",answerSubjective:"answerSubjective___1i3N-",otherInput:"otherInput___gQ5U6",submitButton:"submitButton___RAvWu",randomFlag:"randomFlag___1J_UJ",answerTrue:"answerTrue___1cUgp",answerFalse:"answerFalse___Q16xV",answerHalf:"answerHalf___2I-fp",renderHtml:"renderHtml___1O15z",simpleText:"simpleText___1-h1E",answerYes:"answerYes___3w-7A",answerNo:"answerNo___2TuuH",answerInfo:"answerInfo___3KPDJ",answerSheet:"answerSheet___1UuGf",active:"active___2njWQ",countDown:"countDown___ViVY-",red:"red___RmODq",fold:"fold___ZVRBm",cardList:"cardList___1KJD0",iframe:"iframe___8V6GW"}},"9VGf":function(et,de,N){"use strict";N.d(de,"a",function(){return k});var ee=N("q1tI"),K=N.n(ee);function k(z,B){var M=Object(ee.useRef)();Object(ee.useEffect)(function(){M.current=z}),Object(ee.useEffect)(function(){function j(){M.current()}if(B!==null){var U=setInterval(j,B);return function(){return clearInterval(U)}}},[B])}},"A/g1":function(et,de){et.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF92lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDMgNzkuMTY0NTI3LCAyMDIwLzEwLzE1LTE3OjQ4OjMyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZ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sUQz5fTnxbGH8GFt7DcwpecTuMFmlIaZ+bjOgvF2u7d/gnIWZR+Q1KPowcIIaAhQSarqmH/xE0TpQbb92M9uT7kdz+/HqfDB0EcF/ZRi1ggYFER/cYcMtMOO3jzlmVjXKDrkt5uv9are9ZLJ8L6UcJ+HplVotygVRlYLFwM4GWf2njl/ymq1fqrSgM3J1Sfz5Rnd15ulp/tiGtPV6h0aIwaCDxUPc/F8sfOQdqTKnbrvjMf9fOK7ZLCyv8Jom1s9qvsHANttQw4dhY++6BW+sKFlNJr7E9K6wOZEoT0YU3ogvXm5OSMK5KQ347v7oggZbr3j/+PWwUnoj9jyHCk+OP7p3Kry+6nL33uvazqbD+6+W35RDmrtGOPW8Va7JcjzemtC+frTKWfgJyCQmxI/GZ7x+warfdUKy/rj47UZXdnlHZXHprJWBcFKZsGX1k16t2spI7oqbr3iOTkdzGyz7z8tK5s4eAN4UiHxx5dO94Ka2jLd2Gq95TI/e9tXoqbBytZLJzwAUGdY+273nc6Y294z3p1sRW2ZhSt02Gsg+eDxknyl07FYWRY8I+aZptYx27B0Bw/Bp3faHRcs13EsCWiWpjZ8DEU+Ecxe7IKjVl5GMy8zAJMQSIwbH27rL+7FH2jUzTNfUwgMMAkFiFlf5MrstviA4PU61HIuo1KQRCdkGeJCDJoCQkkkzyOFVF4mOxyv9u8x8opnU6UeBF0wAAAABJRU5ErkJggg=="},BU3w:function(et,de,N){"use strict";N.d(de,"a",function(){return M});var ee=N("MNnm"),K="rc-util-key";function k(j){if(j.attachTo)return j.attachTo;var U=document.querySelector("head");return U||document.body}function z(j){var U,_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(ee.a)())return null;var R=document.createElement("style");if((U=_.csp)===null||U===void 0?void 0:U.nonce){var c;R.nonce=(c=_.csp)===null||c===void 0?void 0:c.nonce}R.innerHTML=j;var g=k(_),w=g.firstChild;return _.prepend&&g.prepend?g.prepend(R):_.prepend&&w?g.insertBefore(R,w):g.appendChild(R),R}var B=new Map;function M(j,U){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},R=k(_);if(!B.has(R)){var c=z("",_),g=c.parentNode;B.set(R,g),g.removeChild(c)}var w=Array.from(B.get(R).children).find(function(n){return n.tagName==="STYLE"&&n[K]===U});if(w){var y,f;if(((y=_.csp)===null||y===void 0?void 0:y.nonce)&&w.nonce!==((f=_.csp)===null||f===void 0?void 0:f.nonce)){var m;w.nonce=(m=_.csp)===null||m===void 0?void 0:m.nonce}return w.innerHTML!==j&&(w.innerHTML=j),w}var a=z(j,_);return a[K]=U,a}},Bd2K:function(et,de,N){(function(ee){ee(N("VrN/"),N("osHv"))})(function(ee){ee.defineOption("autoCloseTags",!1,function(_,R,c){if(c!=ee.Init&&c&&_.removeKeyMap("autoCloseTags"),!R)return;var g={name:"autoCloseTags"};(typeof R!="object"||R.whenClosing!==!1)&&(g["'/'"]=function(w){return M(w)}),(typeof R!="object"||R.whenOpening!==!1)&&(g["'>'"]=function(w){return z(w)}),_.addKeyMap(g)});var K=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],k=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function z(_){if(_.getOption("disableInput"))return ee.Pass;for(var R=_.listSelections(),c=[],g=_.getOption("autoCloseTags"),w=0;wy.ch&&(o=o.slice(0,o.length-f.end+y.ch));var v=o.toLowerCase();if(!o||f.type=="string"&&(f.end!=y.ch||!/[\"\']/.test(f.string.charAt(f.string.length-1))||f.string.length==1)||f.type=="tag"&&n.close||f.string.indexOf("/")==y.ch-f.start-1||x&&j(x,v)>-1||U(_,m.mode.xmlCurrentContext&&m.mode.xmlCurrentContext(a)||[],o,y,!0))return ee.Pass;var O=typeof g=="object"&&g.emptyTags;if(O&&j(O,o)>-1){c[w]={text:"/>",newPos:ee.Pos(y.line,y.ch+2)};continue}var A=E&&j(E,v)>-1;c[w]={indent:A,text:">"+(A?` -`:"")+"",newPos:A?ee.Pos(y.line+1,0):ee.Pos(y.line,y.ch+1)}}for(var p=typeof g=="object"&&g.dontIndentOnAutoClose,w=R.length-1;w>=0;w--){var h=c[w];_.replaceRange(h.text,R[w].head,R[w].anchor,"+insert");var s=_.listSelections().slice(0);s[w]={head:h.newPos,anchor:h.newPos},_.setSelections(s),!p&&h.indent&&(_.indentLine(h.newPos.line,null,!0),_.indentLine(h.newPos.line+1,null,!0))}}function B(_,R){for(var c=_.listSelections(),g=[],w=R?"/":""&&(x+=">"),g[m]=x}if(_.replaceSelections(g),c=_.listSelections(),!f)for(var m=0;m=0&&R[a]==c;a--)++m;g=f.to;for(var a=1;a0){for(var R=0;R1&&arguments[1]!==void 0?arguments[1]:"",R=[],c=0;c0&&(xe(),_e(1))},[n]),Object(j.useEffect)(function(){if(Ue===0)return;if(Ue===2)clearInterval(pe);else{var Le=0,ae=setInterval(function(){l.includes(Le)&&te(),Le++},1e3);Ae(ae)}return function(){return clearInterval(pe)}},[Ue]),Object(j.useImperativeHandle)(a,function(){return{handlePhoto:te}});var je=function(){_e(2)},xe=function(){var ae=n/o,oe=[];function Se(Me,We){return parseInt(Math.floor(Math.random()*(We-Me+1))+Me)}new Array(o).fill(0).map(function(Me,We){x?oe.push(Se(ae*We,ae*(We+1))):We==0?oe.push(0):oe.push(Se(ae*We,ae*(We+1)))}),l=oe,D([].concat(oe)),console.log(oe)},he=function(){navigator.mediaDevices===void 0&&(navigator.mediaDevices={}),navigator.mediaDevices.getUserMedia===void 0&&(navigator.mediaDevices.getUserMedia=function(ae){var oe=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return oe?new Promise(function(Se,Me){oe.call(navigator,ae,Se,Me)}):Promise.reject(new Error("getUserMedia is not implemented in this browser"))}),navigator.mediaDevices.getUserMedia({video:{width:640,height:480}}).then(function(ae){u&&u(2),C(2),"srcObject"in O.current?O.current.srcObject=ae:O.current.src=window.URL.createObjectURL(ae),O.current.onloadedmetadata=function(oe){O.current.play()},O.current.addEventListener("ended",function(){console.log("\u64AD\u653E\u7ED3\u675F"),je(),P.b.error({content:"\u60A8\u5DF2\u7ECF\u5173\u95ED\u4E86\u6444\u50CF\u5934\uFF0C\u8BF7\u572810\u79D2\u949F\u5185\u6062\u590D\u6444\u50CF\u5934\uFF0C\u5426\u5219\u5C06\u63A8\u51FA\u8003\u8BD5",duration:10,key:9998})},!1)}).catch(function(ae){C(1),u&&u(1),ae.message==="Permission denied"||ae.name==="NotAllowedError"?P.b.error("\u60A8\u5DF2\u62D2\u7EDD\u4E86\u83B7\u53D6\u6444\u50CF\u5934"):P.b.error("\u6444\u50CF\u5934\u83B7\u53D6\u5931\u8D25\uFF0C\u6216\u60A8\u5DF2\u62D2\u7EDD\u4E86\u83B7\u53D6\u6444\u50CF\u5934"),console.log("errname: "+ae.name),console.log("err: "+ae.message)})},te=function(){try{A.current.width=O.current.videoWidth,A.current.height=O.current.videoHeight;var ae=A.current.getContext("2d");ae.drawImage(O.current,0,0,A.current.width,A.current.height),F(A.current.toDataURL("image/png")),ue(A.current.toDataURL("image/png"))}catch(oe){}},ye=function(){try{var ae=O.current.srcObject,oe=ae.getTracks();oe.forEach(function(Se){Se.stop()}),O.current.srcObject=null}catch(Se){}},ue=function(){var Le=Object(ee.a)(M.a.mark(function ae(oe){var Se,Me;return M.a.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:Se=new FormData,Se.append("file",y(oe,"1")),Se.append("1","123"),Me=new window.XMLHttpRequest,Me.withCredentials=!0,Me.addEventListener("load",function(Qe){var Ze=JSON.parse(Qe.target.responseText);Object(R.a)("/api/exercises/".concat(v,"/upload_photo.json"),{method:"post",body:{attachment_id:Ze.id}})},!1),Me.addEventListener("error",function(Qe){console.error(Qe)},!1),Me.open("POST","".concat(c.a.API_SERVER,"/api/attachments.json")),Me.send(Se);case 9:case"end":return Ke.stop()}},ae)}));return function(oe){return Le.apply(this,arguments)}}();return U.a.createElement(U.a.Fragment,null,I!==3&&U.a.createElement("aside",{className:w.a.video,id:"screenshot"},I===0&&U.a.createElement("span",null,"\u6B63\u5728\u5F00\u542F\u6444\u50CF\u5934..."),I===1&&U.a.createElement("span",null,"\u6444\u50CF\u5934\u5F00\u542F\u5931\u8D25"),I===2&&U.a.createElement("div",null,U.a.createElement("video",{width:"288",ref:O,autoPlay:!0}),U.a.createElement("canvas",{style:{display:"none"},ref:A}))))});de.a=f},"C+DQ":function(et,de,N){},"C/vA":function(et,de,N){"use strict";N.d(de,"a",function(){return ee});function ee(K){var P=this,z=!1,B;return function(){return z||(z=!0,B=K.apply(P,arguments)),B}}},"Cg/j":function(et,de,N){"use strict";N.d(de,"b",function(){return ee}),N.d(de,"a",function(){return K}),N.d(de,"c",function(){return z}),N.d(de,"d",function(){return B});var ee;(function(M){M.serviceIds=new Map,M.DI_TARGET="$di$target",M.DI_DEPENDENCIES="$di$dependencies";function j(U){return U[M.DI_DEPENDENCIES]||[]}M.getServiceDependencies=j})(ee||(ee={}));var K=z("instantiationService");function P(M,j,U,_){j[ee.DI_TARGET]===j?j[ee.DI_DEPENDENCIES].push({id:M,index:U,optional:_}):(j[ee.DI_DEPENDENCIES]=[{id:M,index:U,optional:_}],j[ee.DI_TARGET]=j)}function z(M){if(ee.serviceIds.has(M))return ee.serviceIds.get(M);var j=function(U,_,R){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");P(j,U,R,!1)};return j.toString=function(){return M},ee.serviceIds.set(M,j),j}function B(M){return function(j,U,_){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");P(M,j,_,!0)}}},DR4n:function(et,de,N){et.exports={flex_box_center:"flex_box_center___2zmmW",flex_space_between:"flex_space_between___3nCIw",flex_box_vertical_center:"flex_box_vertical_center___1PFij",flex_box_center_end:"flex_box_center_end___2FA05",flex_box_column:"flex_box_column___2k0kx",video:"video___1mYnG"}},DlQD:function(et,de,N){(function(ee,K){et.exports=K()})(this,function(){"use strict";function ee(Te,ge){for(var be=0;beTe.length)&&(ge=Te.length);for(var be=0,re=new Array(ge);be=Te.length?{done:!0}:{done:!1,value:Te[re++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +`:"")+"",newPos:A?ee.Pos(y.line+1,0):ee.Pos(y.line,y.ch+1)}}for(var p=typeof g=="object"&&g.dontIndentOnAutoClose,w=R.length-1;w>=0;w--){var h=c[w];_.replaceRange(h.text,R[w].head,R[w].anchor,"+insert");var s=_.listSelections().slice(0);s[w]={head:h.newPos,anchor:h.newPos},_.setSelections(s),!p&&h.indent&&(_.indentLine(h.newPos.line,null,!0),_.indentLine(h.newPos.line+1,null,!0))}}function B(_,R){for(var c=_.listSelections(),g=[],w=R?"/":""&&(x+=">"),g[m]=x}if(_.replaceSelections(g),c=_.listSelections(),!f)for(var m=0;m=0&&R[a]==c;a--)++m;g=f.to;for(var a=1;a0){for(var R=0;R1&&arguments[1]!==void 0?arguments[1]:"",R=[],c=0;c0&&(xe(),_e(1))},[n]),Object(j.useEffect)(function(){if(Ue===0)return;if(Ue===2)clearInterval(pe);else{var Le=0,ae=setInterval(function(){l.includes(Le)&&te(),Le++},1e3);Ae(ae)}return function(){return clearInterval(pe)}},[Ue]),Object(j.useImperativeHandle)(a,function(){return{handlePhoto:te}});var je=function(){_e(2)},xe=function(){var ae=n/o,oe=[];function Se(Me,We){return parseInt(Math.floor(Math.random()*(We-Me+1))+Me)}new Array(o).fill(0).map(function(Me,We){x?oe.push(Se(ae*We,ae*(We+1))):We==0?oe.push(0):oe.push(Se(ae*We,ae*(We+1)))}),l=oe,D([].concat(oe)),console.log(oe)},he=function(){navigator.mediaDevices===void 0&&(navigator.mediaDevices={}),navigator.mediaDevices.getUserMedia===void 0&&(navigator.mediaDevices.getUserMedia=function(ae){var oe=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return oe?new Promise(function(Se,Me){oe.call(navigator,ae,Se,Me)}):Promise.reject(new Error("getUserMedia is not implemented in this browser"))}),navigator.mediaDevices.getUserMedia({video:{width:640,height:480}}).then(function(ae){u&&u(2),C(2),"srcObject"in O.current?O.current.srcObject=ae:O.current.src=window.URL.createObjectURL(ae),O.current.onloadedmetadata=function(oe){O.current.play()},O.current.addEventListener("ended",function(){console.log("\u64AD\u653E\u7ED3\u675F"),je(),k.b.error({content:"\u60A8\u5DF2\u7ECF\u5173\u95ED\u4E86\u6444\u50CF\u5934\uFF0C\u8BF7\u572810\u79D2\u949F\u5185\u6062\u590D\u6444\u50CF\u5934\uFF0C\u5426\u5219\u5C06\u63A8\u51FA\u8003\u8BD5",duration:10,key:9998})},!1)}).catch(function(ae){C(1),u&&u(1),ae.message==="Permission denied"||ae.name==="NotAllowedError"?k.b.error("\u60A8\u5DF2\u62D2\u7EDD\u4E86\u83B7\u53D6\u6444\u50CF\u5934"):k.b.error("\u6444\u50CF\u5934\u83B7\u53D6\u5931\u8D25\uFF0C\u6216\u60A8\u5DF2\u62D2\u7EDD\u4E86\u83B7\u53D6\u6444\u50CF\u5934"),console.log("errname: "+ae.name),console.log("err: "+ae.message)})},te=function(){try{A.current.width=O.current.videoWidth,A.current.height=O.current.videoHeight;var ae=A.current.getContext("2d");ae.drawImage(O.current,0,0,A.current.width,A.current.height),F(A.current.toDataURL("image/png")),ue(A.current.toDataURL("image/png"))}catch(oe){}},ye=function(){try{var ae=O.current.srcObject,oe=ae.getTracks();oe.forEach(function(Se){Se.stop()}),O.current.srcObject=null}catch(Se){}},ue=function(){var Le=Object(ee.a)(M.a.mark(function ae(oe){var Se,Me;return M.a.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:Se=new FormData,Se.append("file",y(oe,"1")),Se.append("1","123"),Me=new window.XMLHttpRequest,Me.withCredentials=!0,Me.addEventListener("load",function(Qe){var Ze=JSON.parse(Qe.target.responseText);Object(R.a)("/api/exercises/".concat(v,"/upload_photo.json"),{method:"post",body:{attachment_id:Ze.id}})},!1),Me.addEventListener("error",function(Qe){console.error(Qe)},!1),Me.open("POST","".concat(c.a.API_SERVER,"/api/attachments.json")),Me.send(Se);case 9:case"end":return Ke.stop()}},ae)}));return function(oe){return Le.apply(this,arguments)}}();return U.a.createElement(U.a.Fragment,null,I!==3&&U.a.createElement("aside",{className:w.a.video,id:"screenshot"},I===0&&U.a.createElement("span",null,"\u6B63\u5728\u5F00\u542F\u6444\u50CF\u5934..."),I===1&&U.a.createElement("span",null,"\u6444\u50CF\u5934\u5F00\u542F\u5931\u8D25"),I===2&&U.a.createElement("div",null,U.a.createElement("video",{width:"288",ref:O,autoPlay:!0}),U.a.createElement("canvas",{style:{display:"none"},ref:A}))))});de.a=f},"C+DQ":function(et,de,N){},"C/vA":function(et,de,N){"use strict";N.d(de,"a",function(){return ee});function ee(K){var k=this,z=!1,B;return function(){return z||(z=!0,B=K.apply(k,arguments)),B}}},"Cg/j":function(et,de,N){"use strict";N.d(de,"b",function(){return ee}),N.d(de,"a",function(){return K}),N.d(de,"c",function(){return z}),N.d(de,"d",function(){return B});var ee;(function(M){M.serviceIds=new Map,M.DI_TARGET="$di$target",M.DI_DEPENDENCIES="$di$dependencies";function j(U){return U[M.DI_DEPENDENCIES]||[]}M.getServiceDependencies=j})(ee||(ee={}));var K=z("instantiationService");function k(M,j,U,_){j[ee.DI_TARGET]===j?j[ee.DI_DEPENDENCIES].push({id:M,index:U,optional:_}):(j[ee.DI_DEPENDENCIES]=[{id:M,index:U,optional:_}],j[ee.DI_TARGET]=j)}function z(M){if(ee.serviceIds.has(M))return ee.serviceIds.get(M);var j=function(U,_,R){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");k(j,U,R,!1)};return j.toString=function(){return M},ee.serviceIds.set(M,j),j}function B(M){return function(j,U,_){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");k(M,j,_,!0)}}},DR4n:function(et,de,N){et.exports={flex_box_center:"flex_box_center___2zmmW",flex_space_between:"flex_space_between___3nCIw",flex_box_vertical_center:"flex_box_vertical_center___1PFij",flex_box_center_end:"flex_box_center_end___2FA05",flex_box_column:"flex_box_column___2k0kx",video:"video___1mYnG"}},DlQD:function(et,de,N){(function(ee,K){et.exports=K()})(this,function(){"use strict";function ee(Te,ge){for(var be=0;beTe.length)&&(ge=Te.length);for(var be=0,re=new Array(ge);be=Te.length?{done:!0}:{done:!1,value:Te[re++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return be=Te[Symbol.iterator](),be.next.bind(be)}function M(Te,ge){return ge={exports:{}},Te(ge,ge.exports),ge.exports}var j=M(function(Te){function ge(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function be(re){Te.exports.defaults=re}Te.exports={defaults:ge(),getDefaults:ge,changeDefaults:be}}),U=j.defaults,_=j.getDefaults,R=j.changeDefaults,c=/[&<>"']/,g=/[&<>"']/g,w=/[<>"']|&(?!#?\w+;)/,y=/[<>"']|&(?!#?\w+;)/g,f={"&":"&","<":"<",">":">",'"':""","'":"'"},m=function(ge){return f[ge]};function a(Te,ge){if(ge){if(c.test(Te))return Te.replace(g,m)}else if(w.test(Te))return Te.replace(y,m);return Te}var n=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function o(Te){return Te.replace(n,function(ge,be){return be=be.toLowerCase(),be==="colon"?":":be.charAt(0)==="#"?be.charAt(1)==="x"?String.fromCharCode(parseInt(be.substring(2),16)):String.fromCharCode(+be.substring(1)):""})}var u=/(^|[^\[])\^/g;function x(Te,ge){Te=Te.source||Te,ge=ge||"";var be={replace:function(ie,ce){return ce=ce.source||ce,ce=ce.replace(u,"$1"),Te=Te.replace(ie,ce),be},getRegex:function(){return new RegExp(Te,ge)}};return be}var E=/[^\w:]/g,v=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function O(Te,ge,be){if(Te){var re;try{re=decodeURIComponent(o(be)).replace(E,"").toLowerCase()}catch(ie){return null}if(re.indexOf("javascript:")===0||re.indexOf("vbscript:")===0||re.indexOf("data:")===0)return null}ge&&!v.test(be)&&(be=l(ge,be));try{be=encodeURI(be).replace(/%25/g,"%")}catch(ie){return null}return be}var A={},p=/^[^:]+:\/*[^/]*$/,h=/^([^:]+:)[\s\S]*$/,s=/^([^:]+:\/*[^/]*)[\s\S]*$/;function l(Te,ge){A[" "+Te]||(p.test(Te)?A[" "+Te]=Te+"/":A[" "+Te]=I(Te,"/",!0)),Te=A[" "+Te];var be=Te.indexOf(":")===-1;return ge.substring(0,2)==="//"?be?ge:Te.replace(h,"$1")+ge:ge.charAt(0)==="/"?be?ge:Te.replace(s,"$1")+ge:Te+ge}var D={exec:function(){}};function T(Te){for(var ge=1,be,re;ge=0&&Be[ut]==="\\";)Ie=!Ie;return Ie?"|":" |"}),re=be.split(/ \|/),ie=0;if(re.length>ge)re.splice(ge);else for(;re.length=re.length?ie.slice(re.length):ie}).join(` `)}var Fe=function(){function Te(be){this.options=be||H}var ge=Te.prototype;return ge.space=function(re){var ie=this.rules.block.newline.exec(re);if(ie)return ie[0].length>1?{type:"space",raw:ie[0]}:{raw:` `}},ge.code=function(re,ie){var ce=this.rules.block.code.exec(re);if(ce){var Ee=ie[ie.length-1];if(Ee&&Ee.type==="paragraph")return{raw:ce[0],text:ce[0].trimRight()};var Be=ce[0].replace(/^ {4}/gm,"");return{type:"code",raw:ce[0],codeBlockStyle:"indented",text:this.options.pedantic?Be:F(Be,` `)}}},ge.fences=function(re){var ie=this.rules.block.fences.exec(re);if(ie){var ce=ie[0],Ee=Ge(ce,ie[3]||"");return{type:"code",raw:ce,lang:ie[2]?ie[2].trim():ie[2],text:Ee}}},ge.heading=function(re){var ie=this.rules.block.heading.exec(re);if(ie)return{type:"heading",raw:ie[0],depth:ie[1].length,text:ie[2]}},ge.nptable=function(re){var ie=this.rules.block.nptable.exec(re);if(ie){var ce={type:"table",header:q(ie[1].replace(/^ *| *\| *$/g,"")),align:ie[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ie[3]?ie[3].replace(/\n$/,"").split(` -`):[],raw:ie[0]};if(ce.header.length===ce.align.length){var Ee=ce.align.length,Be;for(Be=0;Be ?/gm,"");return{type:"blockquote",raw:ie[0],text:ce}}},ge.list=function(re){var ie=this.rules.block.list.exec(re);if(ie){for(var ce=ie[0],Ee=ie[2],Be=Ee.length>1,Ie=Ee[Ee.length-1]===")",ut={type:"list",raw:ce,ordered:Be,start:Be?+Ee.slice(0,-1):"",loose:!1,items:[]},bt=ie[0].match(this.rules.block.item),Tt=!1,xt,gt,qe,Xe,Pe,se,fe,$e=bt.length,ke=0;ke<$e;ke++)xt=bt[ke],ce=xt,gt=xt.length,xt=xt.replace(/^ *([*+-]|\d+[.)]) */,""),~xt.indexOf(` - `)&&(gt-=xt.length,xt=this.options.pedantic?xt.replace(/^ {1,4}/gm,""):xt.replace(new RegExp("^ {1,"+gt+"}","gm"),"")),ke!==$e-1&&(qe=this.rules.block.bullet.exec(bt[ke+1])[0],(Be?qe.length===1||!Ie&&qe[qe.length-1]===")":qe.length>1||this.options.smartLists&&qe!==Ee)&&(Xe=bt.slice(ke+1).join(` -`),ut.raw=ut.raw.substring(0,ut.raw.length-Xe.length),ke=$e-1)),Pe=Tt||/\n\n(?!\s*$)/.test(xt),ke!==$e-1&&(Tt=xt.charAt(xt.length-1)===` -`,Pe||(Pe=Tt)),Pe&&(ut.loose=!0),se=/^\[[ xX]\] /.test(xt),fe=void 0,se&&(fe=xt[1]!==" ",xt=xt.replace(/^\[[ xX]\] +/,"")),ut.items.push({type:"list_item",raw:ce,task:se,checked:fe,loose:Pe,text:xt});return ut}},ge.html=function(re){var ie=this.rules.block.html.exec(re);if(ie)return{type:this.options.sanitize?"paragraph":"html",raw:ie[0],pre:!this.options.sanitizer&&(ie[1]==="pre"||ie[1]==="script"||ie[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ie[0]):le(ie[0]):ie[0]}},ge.def=function(re){var ie=this.rules.block.def.exec(re);if(ie){ie[3]&&(ie[3]=ie[3].substring(1,ie[3].length-1));var ce=ie[1].toLowerCase().replace(/\s+/g," ");return{tag:ce,raw:ie[0],href:ie[2],title:ie[3]}}},ge.table=function(re){var ie=this.rules.block.table.exec(re);if(ie){var ce={type:"table",header:q(ie[1].replace(/^ *| *\| *$/g,"")),align:ie[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ie[3]?ie[3].replace(/\n$/,"").split(` +`):[],raw:ie[0]};if(ce.header.length===ce.align.length){var Ee=ce.align.length,Be;for(Be=0;Be ?/gm,"");return{type:"blockquote",raw:ie[0],text:ce}}},ge.list=function(re){var ie=this.rules.block.list.exec(re);if(ie){for(var ce=ie[0],Ee=ie[2],Be=Ee.length>1,Ie=Ee[Ee.length-1]===")",ut={type:"list",raw:ce,ordered:Be,start:Be?+Ee.slice(0,-1):"",loose:!1,items:[]},bt=ie[0].match(this.rules.block.item),Tt=!1,xt,gt,qe,Xe,ke,se,fe,$e=bt.length,Pe=0;Pe<$e;Pe++)xt=bt[Pe],ce=xt,gt=xt.length,xt=xt.replace(/^ *([*+-]|\d+[.)]) */,""),~xt.indexOf(` + `)&&(gt-=xt.length,xt=this.options.pedantic?xt.replace(/^ {1,4}/gm,""):xt.replace(new RegExp("^ {1,"+gt+"}","gm"),"")),Pe!==$e-1&&(qe=this.rules.block.bullet.exec(bt[Pe+1])[0],(Be?qe.length===1||!Ie&&qe[qe.length-1]===")":qe.length>1||this.options.smartLists&&qe!==Ee)&&(Xe=bt.slice(Pe+1).join(` +`),ut.raw=ut.raw.substring(0,ut.raw.length-Xe.length),Pe=$e-1)),ke=Tt||/\n\n(?!\s*$)/.test(xt),Pe!==$e-1&&(Tt=xt.charAt(xt.length-1)===` +`,ke||(ke=Tt)),ke&&(ut.loose=!0),se=/^\[[ xX]\] /.test(xt),fe=void 0,se&&(fe=xt[1]!==" ",xt=xt.replace(/^\[[ xX]\] +/,"")),ut.items.push({type:"list_item",raw:ce,task:se,checked:fe,loose:ke,text:xt});return ut}},ge.html=function(re){var ie=this.rules.block.html.exec(re);if(ie)return{type:this.options.sanitize?"paragraph":"html",raw:ie[0],pre:!this.options.sanitizer&&(ie[1]==="pre"||ie[1]==="script"||ie[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ie[0]):le(ie[0]):ie[0]}},ge.def=function(re){var ie=this.rules.block.def.exec(re);if(ie){ie[3]&&(ie[3]=ie[3].substring(1,ie[3].length-1));var ce=ie[1].toLowerCase().replace(/\s+/g," ");return{tag:ce,raw:ie[0],href:ie[2],title:ie[3]}}},ge.table=function(re){var ie=this.rules.block.table.exec(re);if(ie){var ce={type:"table",header:q(ie[1].replace(/^ *| *\| *$/g,"")),align:ie[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ie[3]?ie[3].replace(/\n$/,"").split(` `):[]};if(ce.header.length===ce.align.length){ce.raw=ie[0];var Ee=ce.align.length,Be;for(Be=0;Be/i.test(Ee[0])&&(ie=!1),!ce&&/^<(pre|code|kbd|script)(\s|>)/i.test(Ee[0])?ce=!0:ce&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Ee[0])&&(ce=!1),{type:this.options.sanitize?"text":"html",raw:Ee[0],inLink:ie,inRawBlock:ce,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ee[0]):le(Ee[0]):Ee[0]}},ge.link=function(re){var ie=this.rules.inline.link.exec(re);if(ie){var ce=pe(ie[2],"()");if(ce>-1){var Ee=ie[0].indexOf("!")===0?5:4,Be=Ee+ie[1].length+ce;ie[2]=ie[2].substring(0,ce),ie[0]=ie[0].substring(0,Be).trim(),ie[3]=""}var Ie=ie[2],ut="";if(this.options.pedantic){var bt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Ie);bt?(Ie=bt[1],ut=bt[3]):ut=""}else ut=ie[3]?ie[3].slice(1,-1):"";Ie=Ie.trim().replace(/^<([\s\S]*)>$/,"$1");var Tt=Ae(ie,{href:Ie&&Ie.replace(this.rules.inline._escapes,"$1"),title:ut&&ut.replace(this.rules.inline._escapes,"$1")},ie[0]);return Tt}},ge.reflink=function(re,ie){var ce;if((ce=this.rules.inline.reflink.exec(re))||(ce=this.rules.inline.nolink.exec(re))){var Ee=(ce[2]||ce[1]).replace(/\s+/g," ");if(Ee=ie[Ee.toLowerCase()],!Ee||!Ee.href){var Be=ce[0].charAt(0);return{type:"text",raw:Be,text:Be}}var Ie=Ae(ce,Ee,ce[0]);return Ie}},ge.strong=function(re,ie,ce){ce===void 0&&(ce="");var Ee=this.rules.inline.strong.start.exec(re);if(Ee&&(!Ee[1]||Ee[1]&&(ce===""||this.rules.inline.punctuation.exec(ce)))){ie=ie.slice(-1*re.length);var Be=Ee[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;Be.lastIndex=0;for(var Ie;(Ee=Be.exec(ie))!=null;)if(Ie=this.rules.inline.strong.middle.exec(ie.slice(0,Ee.index+3)),Ie)return{type:"strong",raw:re.slice(0,Ie[0].length),text:re.slice(2,Ie[0].length-2)}}},ge.em=function(re,ie,ce){ce===void 0&&(ce="");var Ee=this.rules.inline.em.start.exec(re);if(Ee&&(!Ee[1]||Ee[1]&&(ce===""||this.rules.inline.punctuation.exec(ce)))){ie=ie.slice(-1*re.length);var Be=Ee[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;Be.lastIndex=0;for(var Ie;(Ee=Be.exec(ie))!=null;)if(Ie=this.rules.inline.em.middle.exec(ie.slice(0,Ee.index+2)),Ie)return{type:"em",raw:re.slice(0,Ie[0].length),text:re.slice(1,Ie[0].length-1)}}},ge.codespan=function(re){var ie=this.rules.inline.code.exec(re);if(ie){var ce=ie[2].replace(/\n/g," "),Ee=/[^ ]/.test(ce),Be=ce.startsWith(" ")&&ce.endsWith(" ");return Ee&&Be&&(ce=ce.substring(1,ce.length-1)),ce=le(ce,!0),{type:"codespan",raw:ie[0],text:ce}}},ge.br=function(re){var ie=this.rules.inline.br.exec(re);if(ie)return{type:"br",raw:ie[0]}},ge.del=function(re){var ie=this.rules.inline.del.exec(re);if(ie)return{type:"del",raw:ie[0],text:ie[1]}},ge.autolink=function(re,ie){var ce=this.rules.inline.autolink.exec(re);if(ce){var Ee,Be;return ce[2]==="@"?(Ee=le(this.options.mangle?ie(ce[1]):ce[1]),Be="mailto:"+Ee):(Ee=le(ce[1]),Be=Ee),{type:"link",raw:ce[0],text:Ee,href:Be,tokens:[{type:"text",raw:Ee,text:Ee}]}}},ge.url=function(re,ie){var ce;if(ce=this.rules.inline.url.exec(re)){var Ee,Be;if(ce[2]==="@")Ee=le(this.options.mangle?ie(ce[0]):ce[0]),Be="mailto:"+Ee;else{var Ie;do Ie=ce[0],ce[0]=this.rules.inline._backpedal.exec(ce[0])[0];while(Ie!==ce[0]);Ee=le(ce[0]),ce[1]==="www."?Be="http://"+Ee:Be=Ee}return{type:"link",raw:ce[0],text:Ee,href:Be,tokens:[{type:"text",raw:Ee,text:Ee}]}}},ge.inlineText=function(re,ie,ce){var Ee=this.rules.inline.text.exec(re);if(Ee){var Be;return ie?Be=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ee[0]):le(Ee[0]):Ee[0]:Be=le(this.options.smartypants?ce(Ee[0]):Ee[0]),{type:"text",raw:Ee[0],text:Be}}},Te}(),Ue=Y.noopTest,_e=Y.edit,je=Y.merge,xe={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:Ue,table:Ue,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};xe._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,xe._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,xe.def=_e(xe.def).replace("label",xe._label).replace("title",xe._title).getRegex(),xe.bullet=/(?:[*+-]|\d{1,9}[.)])/,xe.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,xe.item=_e(xe.item,"gm").replace(/bull/g,xe.bullet).getRegex(),xe.list=_e(xe.list).replace(/bull/g,xe.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+xe.def.source+")").getRegex(),xe._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",xe._comment=//,xe.html=_e(xe.html,"i").replace("comment",xe._comment).replace("tag",xe._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),xe.paragraph=_e(xe._paragraph).replace("hr",xe.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",xe._tag).getRegex(),xe.blockquote=_e(xe.blockquote).replace("paragraph",xe.paragraph).getRegex(),xe.normal=je({},xe),xe.gfm=je({},xe.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),xe.gfm.nptable=_e(xe.gfm.nptable).replace("hr",xe.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",xe._tag).getRegex(),xe.gfm.table=_e(xe.gfm.table).replace("hr",xe.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",xe._tag).getRegex(),xe.pedantic=je({},xe.normal,{html:_e(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",xe._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:Ue,paragraph:_e(xe.normal._paragraph).replace("hr",xe.hr).replace("heading",` *#{1,6} *[^ ]`).replace("lheading",xe.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var he={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Ue,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Ue,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",he.punctuation=_e(he.punctuation).replace(/punctuation/g,he._punctuation).getRegex(),he._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",he._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",he.em.start=_e(he.em.start).replace(/punctuation/g,he._punctuation).getRegex(),he.em.middle=_e(he.em.middle).replace(/punctuation/g,he._punctuation).replace(/overlapSkip/g,he._overlapSkip).getRegex(),he.em.endAst=_e(he.em.endAst,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.em.endUnd=_e(he.em.endUnd,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.strong.start=_e(he.strong.start).replace(/punctuation/g,he._punctuation).getRegex(),he.strong.middle=_e(he.strong.middle).replace(/punctuation/g,he._punctuation).replace(/blockSkip/g,he._blockSkip).getRegex(),he.strong.endAst=_e(he.strong.endAst,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.strong.endUnd=_e(he.strong.endUnd,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.blockSkip=_e(he._blockSkip,"g").getRegex(),he.overlapSkip=_e(he._overlapSkip,"g").getRegex(),he._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,he._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,he._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,he.autolink=_e(he.autolink).replace("scheme",he._scheme).replace("email",he._email).getRegex(),he._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,he.tag=_e(he.tag).replace("comment",xe._comment).replace("attribute",he._attribute).getRegex(),he._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,he._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,he._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,he.link=_e(he.link).replace("label",he._label).replace("href",he._href).replace("title",he._title).getRegex(),he.reflink=_e(he.reflink).replace("label",he._label).getRegex(),he.reflinkSearch=_e(he.reflinkSearch,"g").replace("reflink",he.reflink).replace("nolink",he.nolink).getRegex(),he.normal=je({},he),he.pedantic=je({},he.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:_e(/^!?\[(label)\]\((.*?)\)/).replace("label",he._label).getRegex(),reflink:_e(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",he._label).getRegex()}),he.gfm=je({},he.normal,{escape:_e(he.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\.5&&(re="x"+re.toString(16)),ge+="&#"+re+";";return ge}var Se=function(){function Te(be){this.tokens=[],this.tokens.links=Object.create(null),this.options=be||ye,this.options.tokenizer=this.options.tokenizer||new Fe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var re={block:ue.normal,inline:Le.normal};this.options.pedantic?(re.block=ue.pedantic,re.inline=Le.pedantic):this.options.gfm&&(re.block=ue.gfm,this.options.breaks?re.inline=Le.breaks:re.inline=Le.gfm),this.tokenizer.rules=re}Te.lex=function(re,ie){var ce=new Te(ie);return ce.lex(re)};var ge=Te.prototype;return ge.lex=function(re){return re=re.replace(/\r\n|\r/g,` @@ -271,23 +271,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `},ge.tablerow=function(re){return` `+re+` `},ge.tablecell=function(re,ie){var ce=ie.header?"th":"td",Ee=ie.align?"<"+ce+' align="'+ie.align+'">':"<"+ce+">";return Ee+re+" -`},ge.strong=function(re){return""+re+""},ge.em=function(re){return""+re+""},ge.codespan=function(re){return""+re+""},ge.br=function(){return this.options.xhtml?"
    ":"
    "},ge.del=function(re){return""+re+""},ge.link=function(re,ie,ce){if(re=We(this.options.sanitize,this.options.baseUrl,re),re===null)return ce;var Ee='",Ee},ge.image=function(re,ie,ce){if(re=We(this.options.sanitize,this.options.baseUrl,re),re===null)return ce;var Ee=''+ce+'":">",Ee},ge.text=function(re){return re},Te}(),Ze=function(){function Te(){}var ge=Te.prototype;return ge.strong=function(re){return re},ge.em=function(re){return re},ge.codespan=function(re){return re},ge.del=function(re){return re},ge.html=function(re){return re},ge.text=function(re){return re},ge.link=function(re,ie,ce){return""+ce},ge.image=function(re,ie,ce){return""+ce},ge.br=function(){return""},Te}(),yt=function(){function Te(){this.seen={}}var ge=Te.prototype;return ge.slug=function(re){var ie=re.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(ie)){var ce=ie;do this.seen[ce]++,ie=ce+"-"+this.seen[ce];while(this.seen.hasOwnProperty(ie))}return this.seen[ie]=0,ie},Te}(),vt=j.defaults,dt=Y.unescape,pt=function(){function Te(be){this.options=be||vt,this.options.renderer=this.options.renderer||new Qe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ze,this.slugger=new yt}Te.parse=function(re,ie){var ce=new Te(ie);return ce.parse(re)};var ge=Te.prototype;return ge.parse=function(re,ie){ie===void 0&&(ie=!0);var ce="",Ee,Be,Ie,ut,bt,Tt,xt,gt,qe,Xe,Pe,se,fe,$e,ke,it,at,Ne,Ve=re.length;for(Ee=0;Ee0&&ke.tokens[0].type==="text"?(ke.tokens[0].text=Ne+" "+ke.tokens[0].text,ke.tokens[0].tokens&&ke.tokens[0].tokens.length>0&&ke.tokens[0].tokens[0].type==="text"&&(ke.tokens[0].tokens[0].text=Ne+" "+ke.tokens[0].tokens[0].text)):ke.tokens.unshift({type:"text",text:Ne}):$e+=Ne),$e+=this.parse(ke.tokens,fe),qe+=this.renderer.listitem($e,at,it);ce+=this.renderer.list(qe,Pe,se);continue}case"html":{ce+=this.renderer.html(Xe.text);continue}case"paragraph":{ce+=this.renderer.paragraph(this.parseInline(Xe.tokens));continue}case"text":{for(qe=Xe.tokens?this.parseInline(Xe.tokens):Xe.text;Ee+1"+re+""},ge.em=function(re){return""+re+""},ge.codespan=function(re){return""+re+""},ge.br=function(){return this.options.xhtml?"
    ":"
    "},ge.del=function(re){return""+re+""},ge.link=function(re,ie,ce){if(re=We(this.options.sanitize,this.options.baseUrl,re),re===null)return ce;var Ee='
    ",Ee},ge.image=function(re,ie,ce){if(re=We(this.options.sanitize,this.options.baseUrl,re),re===null)return ce;var Ee=''+ce+'":">",Ee},ge.text=function(re){return re},Te}(),Ze=function(){function Te(){}var ge=Te.prototype;return ge.strong=function(re){return re},ge.em=function(re){return re},ge.codespan=function(re){return re},ge.del=function(re){return re},ge.html=function(re){return re},ge.text=function(re){return re},ge.link=function(re,ie,ce){return""+ce},ge.image=function(re,ie,ce){return""+ce},ge.br=function(){return""},Te}(),yt=function(){function Te(){this.seen={}}var ge=Te.prototype;return ge.slug=function(re){var ie=re.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(ie)){var ce=ie;do this.seen[ce]++,ie=ce+"-"+this.seen[ce];while(this.seen.hasOwnProperty(ie))}return this.seen[ie]=0,ie},Te}(),vt=j.defaults,dt=Y.unescape,pt=function(){function Te(be){this.options=be||vt,this.options.renderer=this.options.renderer||new Qe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ze,this.slugger=new yt}Te.parse=function(re,ie){var ce=new Te(ie);return ce.parse(re)};var ge=Te.prototype;return ge.parse=function(re,ie){ie===void 0&&(ie=!0);var ce="",Ee,Be,Ie,ut,bt,Tt,xt,gt,qe,Xe,ke,se,fe,$e,Pe,it,at,Ne,Ve=re.length;for(Ee=0;Ee0&&Pe.tokens[0].type==="text"?(Pe.tokens[0].text=Ne+" "+Pe.tokens[0].text,Pe.tokens[0].tokens&&Pe.tokens[0].tokens.length>0&&Pe.tokens[0].tokens[0].type==="text"&&(Pe.tokens[0].tokens[0].text=Ne+" "+Pe.tokens[0].tokens[0].text)):Pe.tokens.unshift({type:"text",text:Ne}):$e+=Ne),$e+=this.parse(Pe.tokens,fe),qe+=this.renderer.listitem($e,at,it);ce+=this.renderer.list(qe,ke,se);continue}case"html":{ce+=this.renderer.html(Xe.text);continue}case"paragraph":{ce+=this.renderer.paragraph(this.parseInline(Xe.tokens));continue}case"text":{for(qe=Xe.tokens?this.parseInline(Xe.tokens):Xe.text;Ee+1An error occurred:

    "+Oe(Ie.message+"",!0)+"
    ";throw Ie}}He.options=He.setOptions=function(Te){return At(He.defaults,Te),Je(He.defaults),He},He.getDefaults=we,He.defaults=st,He.use=function(Te){var ge=At({},Te);if(Te.renderer&&function(){var re=He.defaults.renderer||new Qe,ie=function(Be){var Ie=re[Be];re[Be]=function(){for(var ut=arguments.length,bt=new Array(ut),Tt=0;Tt`,triples:"",explode:"[]{}"},P=ee.Pos;ee.defineOption("autoCloseBrackets",!1,function(f,m,a){a&&a!=ee.Init&&(f.removeKeyMap(B),f.state.closeBrackets=null),m&&(M(z(m,"pairs")),f.state.closeBrackets=m,f.addKeyMap(B))});function z(f,m){return m=="pairs"&&typeof f=="string"?f:typeof f=="object"&&f[m]!=null?f[m]:K[m]}var B={Backspace:_,Enter:R};function M(f){for(var m=0;m=0;o--){var x=n[o].head;f.replaceRange("",P(x.line,x.ch-1),P(x.line,x.ch+1),"+delete")}}function R(f){var m=U(f),a=m&&z(m,"explode");if(!a||f.getOption("disableInput"))return ee.Pass;for(var n=f.listSelections(),o=0;o0;return{anchor:new P(f.anchor.line,f.anchor.ch+(m?-1:1)),head:new P(f.head.line,f.head.ch+(m?1:-1))}}function g(f,m){var a=U(f);if(!a||f.getOption("disableInput"))return ee.Pass;var n=z(a,"pairs"),o=n.indexOf(m);if(o==-1)return ee.Pass;for(var u=z(a,"closeBefore"),x=z(a,"triples"),E=n.charAt(o+1)==m,v=f.listSelections(),O=o%2==0,A,p=0;p=0&&f.getRange(s,P(s.line,s.ch+3))==m+m+m?l="skipThree":l="skip";else if(E&&s.ch>1&&x.indexOf(m)>=0&&f.getRange(P(s.line,s.ch-2),s)==m+m){if(s.ch>2&&/\bstring/.test(f.getTokenTypeAt(P(s.line,s.ch-2))))return ee.Pass;l="addFour"}else if(E){var T=s.ch==0?" ":f.getRange(P(s.line,s.ch-1),s);if(!ee.isWordChar(D)&&T!=m&&!ee.isWordChar(T))l="both";else return ee.Pass}else if(O&&(D.length===0||/\s/.test(D)||u.indexOf(D)>-1))l="both";else return ee.Pass;if(!A)A=l;else if(A!=l)return ee.Pass}var S=o%2?n.charAt(o-1):m,I=o%2?m:n.charAt(o+1);f.operation(function(){if(A=="skip")f.execCommand("goCharRight");else if(A=="skipThree")for(var C=0;C<3;C++)f.execCommand("goCharRight");else if(A=="surround"){for(var W=f.getSelections(),C=0;C>>6)+_(128|I&63):_(224|I>>>12&15)+_(128|I>>>6&63)+_(128|I&63)}else{var I=65536+(S.charCodeAt(0)-55296)*1024+(S.charCodeAt(1)-56320);return _(240|I>>>18&7)+_(128|I>>>12&63)+_(128|I>>>6&63)+_(128|I&63)}},c=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,g=function(S){return S.replace(c,R)},w=function(S){var I=[0,2,1][S.length%3],C=S.charCodeAt(0)<<16|(S.length>1?S.charCodeAt(1):0)<<8|(S.length>2?S.charCodeAt(2):0),W=[j.charAt(C>>>18),j.charAt(C>>>12&63),I>=2?"=":j.charAt(C>>>6&63),I>=1?"=":j.charAt(C&63)];return W.join("")},y=z.btoa&&typeof z.btoa=="function"?function(S){return z.btoa(S)}:function(S){if(S.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return S.replace(/[\s\S]{1,3}/g,w)},f=function(S){return y(g(String(S)))},m=function(S){return S.replace(/[+\/]/g,function(I){return I=="+"?"-":"_"}).replace(/=/g,"")},a=function(S,I){return I?m(f(S)):f(S)},n=function(S){return a(S,!0)},o;z.Uint8Array&&(o=function(S,I){for(var C="",W=0,Y=S.length;W>>18)+j.charAt(le>>>12&63)+(typeof F!="undefined"?j.charAt(le>>>6&63):"=")+(typeof q!="undefined"?j.charAt(le&63):"=")}return I?m(C):C});var u=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,x=function(S){switch(S.length){case 4:var I=(7&S.charCodeAt(0))<<18|(63&S.charCodeAt(1))<<12|(63&S.charCodeAt(2))<<6|63&S.charCodeAt(3),C=I-65536;return _((C>>>10)+55296)+_((C&1023)+56320);case 3:return _((15&S.charCodeAt(0))<<12|(63&S.charCodeAt(1))<<6|63&S.charCodeAt(2));default:return _((31&S.charCodeAt(0))<<6|63&S.charCodeAt(1))}},E=function(S){return S.replace(u,x)},v=function(S){var I=S.length,C=I%4,W=(I>0?U[S.charAt(0)]<<18:0)|(I>1?U[S.charAt(1)]<<12:0)|(I>2?U[S.charAt(2)]<<6:0)|(I>3?U[S.charAt(3)]:0),Y=[_(W>>>16),_(W>>>8&255),_(W&255)];return Y.length-=[0,0,2,1][C],Y.join("")},O=z.atob&&typeof z.atob=="function"?function(S){return z.atob(S)}:function(S){return S.replace(/\S{1,4}/g,v)},A=function(S){return O(String(S).replace(/[^A-Za-z0-9\+\/]/g,""))},p=function(S){return E(O(S))},h=function(S){return String(S).replace(/[-_]/g,function(I){return I=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},s=function(S){return p(h(S))},l;z.Uint8Array&&(l=function(S){return Uint8Array.from(A(h(S)),function(I){return I.charCodeAt(0)})});var D=function(){var S=z.Base64;return z.Base64=B,S};if(z.Base64={VERSION:M,atob:A,btoa:y,fromBase64:s,toBase64:a,utob:g,encode:a,encodeURI:n,btou:E,decode:s,noConflict:D,fromUint8Array:o,toUint8Array:l},typeof Object.defineProperty=="function"){var T=function(S){return{value:S,enumerable:!1,writable:!0,configurable:!0}};z.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",T(function(){return s(this)})),Object.defineProperty(String.prototype,"toBase64",T(function(S){return a(this,S)})),Object.defineProperty(String.prototype,"toBase64URI",T(function(){return a(this,!0)}))}}return z.Meteor&&(Base64=z.Base64),et.exports?et.exports.Base64=z.Base64:!(K=[],P=function(){return z.Base64}.apply(de,K),P!==void 0&&(et.exports=P)),{Base64:z.Base64}})}).call(this,N("IyRk"))},JWDV:function(et,de,N){et.exports=N.p+"static/charpter-white.5fa14f93.svg"},JYp7:function(et,de,N){"use strict";N.d(de,"c",function(){return K}),N.d(de,"d",function(){return P}),N.d(de,"f",function(){return B}),N.d(de,"a",function(){return M}),N.d(de,"b",function(){return j}),N.d(de,"e",function(){return U});var ee=function(){var _=function(R,c){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,w){g.__proto__=w}||function(g,w){for(var y in w)w.hasOwnProperty(y)&&(g[y]=w[y])},_(R,c)};return function(R,c){_(R,c);function g(){this.constructor=R}R.prototype=c===null?Object.create(c):(g.prototype=c.prototype,new g)}}(),K={done:!0,value:void 0},P;(function(_){var R={next:function(){return K}};function c(){return R}_.empty=c;function g(E){var v=!1;return{next:function(){return v?K:(v=!0,{done:!1,value:E})}}}_.single=g;function w(E,v,O){return v===void 0&&(v=0),O===void 0&&(O=E.length),{next:function(){return v>=O?K:{done:!1,value:E[v++]}}}}_.fromArray=w;function y(E){return{next:function(){var v=E.next();return v.done?K:{done:!1,value:v.value}}}}_.fromNativeIterator=y;function f(E){return E?Array.isArray(E)?_.fromArray(E):E:_.empty()}_.from=f;function m(E,v){return{next:function(){var O=E.next();return O.done?K:{done:!1,value:v(O.value)}}}}_.map=m;function a(E,v){return{next:function(){for(;;){var O=E.next();if(O.done)return K;if(v(O.value))return{done:!1,value:O.value}}}}}_.filter=a;function n(E,v){for(var O=E.next();!O.done;O=E.next())v(O.value)}_.forEach=n;function o(E,v){v===void 0&&(v=Number.POSITIVE_INFINITY);var O=[];if(v===0)return O;for(var A=0,p=E.next();!p.done&&!(O.push(p.value),++A>=v);p=E.next());return O}_.collect=o;function u(){for(var E=[],v=0;v=E.length)return K;var A=E[O],p=A.next();return p.done?(O++,this.next()):p}}}_.concat=u;function x(E){return new z(E)}_.chain=x})(P||(P={}));var z=function(){function _(R){this.it=R}return _.prototype.next=function(){return this.it.next()},_}();function B(_){return Array.isArray(_)?P.fromArray(_):_||P.empty()}var M=function(){function _(R,c,g,w){c===void 0&&(c=0),g===void 0&&(g=R.length),w===void 0&&(w=c-1),this.items=R,this.start=c,this.end=g,this.index=w}return _.prototype.first=function(){return this.index=this.start,this.current()},_.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},_.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},_}(),j=function(_){ee(R,_);function R(c,g,w,y){return g===void 0&&(g=0),w===void 0&&(w=c.length),y===void 0&&(y=g-1),_.call(this,c,g,w,y)||this}return R.prototype.current=function(){return _.prototype.current.call(this)},R.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},R.prototype.first=function(){return this.index=this.start,this.current()},R.prototype.last=function(){return this.index=this.end-1,this.current()},R.prototype.parent=function(){return null},R}(M),U=function(){function _(R,c){this.iterator=R,this.fn=c}return _.prototype.next=function(){return this.fn(this.iterator.next())},_}()},JeFH:function(et,de){et.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAwCAYAAAD9wT87AAAe2UlEQVR4XtVcB5QUVbr+blV1T+ieGWaYBAwgOSgooJLjENeA6a2KCVfZNbum3VXXsG9VdFfc1TXtGlfXLCKgEiRnUAHJWRzAyTl3V9V957vV1dPTM+M4Hn2Pd8/xIHRV9f3vn77/+/9qgVaWlHIggHMB+AA8K4TIbe2ek/FzKWUmgLGw7THQt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DbPxslSFLAfGUEIIcZ3gppTpvd6zLqweOVZuI0TUVDRgSOzjVy5yWFKSmTNn6vv2LxlMx7jdEMtiZcbR6h/kdmh7nkIlctlUCiLnQNL7Xs7W5g6mrq+sTExNDg6gM9eE5xFEM4HhLL4pJKYdwvg5msCsgg4AwFceueyptKZ/XNO3pkIdqkPaXVdAGjfwkt1FTzeXveCAN7QYNp/gMDEzxYFhaLAaneaH8xTY5hrvasu1/5ebmzuvcuXOTn8KRUpLZ5sQpWVD+EgvfAKEcBWQ1mjUK554XYFvnw7YEhAhCSr6pYULTv2R6aklBAwC5Y3uJief2VyqtEoHGG5rT/4nVVN+EPaCsBB0pkT0gyyyDpq+HEB8DWNTSa/PNbbgt/yal5NkxyzI90VRVdI3+HSFpmyuk0MeTeGXnkspgrE/0aGgfyxxqoJPPQGe/BxxcDYtiBiQ042to2mfsZwkheGA/ywr9NhJlIBekZBFqOrZ5kgCFhYUJqampbAWzp9LCsgDLrgB/t0foByDkdkB1UrdFv5j0s0j1Ax8qpfxdqP/U8h1mIABN5EEYhyHELgBUBv87IAS98/9utUhA19TUZMXFxc0AcCZbIqG5A+YFvhvEMEQXVm4s6Jon6VKzA053dTI46OH8hMARhbwa5OCbboU/9e8//BRH8j9mLdQoDqqNCwAAAABJRU5ErkJggg=="},Jq4h:function(et,de,N){et.exports=N.p+"static/qrcode.54870d9b.png"},LdHM:function(et,de,N){"use strict";N.d(de,"b",function(){return u}),N.d(de,"a",function(){return E});var ee=N("1OyB"),K=N("vuIU"),P=N("Ji7U"),z=N("LK+K"),B=N("q1tI"),M=N("rePB"),j=N("Ff2n"),U=N("ODXe"),_=N("4IlW"),R=N("bX4T"),c=N("YrtM"),g=N("TSYQ"),w=N.n(g),y=N("+nKL"),f=N("8OUc"),m=function(q,le){var pe=q.prefixCls,Ae=q.id,Ge=q.flattenOptions,Fe=q.childrenAsData,Ue=q.values,_e=q.searchValue,je=q.multiple,xe=q.defaultActiveFirstOption,he=q.height,te=q.itemHeight,ye=q.notFoundContent,ue=q.open,Le=q.menuItemSelectedIcon,ae=q.virtual,oe=q.onSelect,Se=q.onToggleOpen,Me=q.onActiveValue,We=q.onScroll,Ke=q.onMouseEnter,Qe="".concat(pe,"-item"),Ze=Object(c.a)(function(){return Ge},[ue,Ge],function(nt,Te){return Te[0]&&nt[1]!==Te[1]}),yt=B.useRef(null),vt=function(Te){Te.preventDefault()},dt=function(Te){yt.current&&yt.current.scrollTo({index:Te})},pt=function(Te){for(var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,be=Ze.length,re=0;re1&&arguments[1]!==void 0?arguments[1]:!1;return Object(O.a)(F).map(function(le,pe){if(!B.isValidElement(le)||!le.type)return null;var Ae=le.type.isSelectOptGroup,Ge=le.key,Fe=le.props,Ue=Fe.children,_e=Object(j.a)(Fe,["children"]);return q||!Ae?A(le):Object(v.a)(Object(v.a)({key:"__RC_SELECT_GRP__".concat(Ge===null?pe:Ge,"__"),label:Ge},_e),{},{options:p(Ue)})}).filter(function(le){return le})}var h=N("2Qr1"),s=N("qNPg"),l=N("U8pU"),D=N("Kwbf"),T=N("WKfj");function S(F){var q=F.mode,le=F.options,pe=F.children,Ae=F.backfill,Ge=F.allowClear,Fe=F.placeholder,Ue=F.getInputElement,_e=F.showSearch,je=F.onSearch,xe=F.defaultOpen,he=F.autoFocus,te=F.labelInValue,ye=F.value,ue=F.inputValue,Le=F.optionLabelProp,ae=q==="multiple"||q==="tags",oe=_e!==void 0?_e:ae||q==="combobox",Se=le||p(pe);if(Object(D.a)(q!=="tags"||Se.every(function(Qe){return!Qe.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),q==="tags"||q==="combobox"){var Me=Se.some(function(Qe){return Qe.options?Qe.options.some(function(Ze){return typeof("value"in Ze?Ze.value:Ze.key)=="number"}):typeof("value"in Qe?Qe.value:Qe.key)=="number"});Object(D.a)(!Me,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(D.a)(q!=="combobox"||!Le,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(D.a)(q==="combobox"||!Ae,"`backfill` only works with `combobox` mode."),Object(D.a)(q==="combobox"||!Ue,"`getInputElement` only work with `combobox` mode."),Object(D.b)(q!=="combobox"||!Ue||!Ge||!Fe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),je&&!oe&&q!=="combobox"&&q!=="tags"&&Object(D.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(D.b)(!xe||he,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),ye!=null){var We=Object(T.d)(ye);Object(D.a)(!te||We.every(function(Qe){return Object(l.a)(Qe)==="object"&&("key"in Qe||"value"in Qe)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(D.a)(!ae||Array.isArray(ye),"`value` should be array when `mode` is `multiple` or `tags`")}if(pe){var Ke=null;Object(O.a)(pe).some(function(Qe){if(!B.isValidElement(Qe)||!Qe.type)return!1;var Ze=Qe.type;if(Ze.isSelectOption)return!1;if(Ze.isSelectOptGroup){var yt=Object(O.a)(Qe.props.children).every(function(vt){return!B.isValidElement(vt)||!Qe.type||vt.type.isSelectOption?!0:(Ke=vt.type,!1)});return!yt}return Ke=Ze,!0}),Ke&&Object(D.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ke.displayName||Ke.name||Ke,"`.")),Object(D.a)(ue===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var I=S,C=Object(s.a)({prefixCls:"rc-select",components:{optionList:n},convertChildrenToData:p,flattenOptions:h.d,getLabeledValue:h.e,filterOptions:h.b,isValueDisabled:h.g,findValueOption:h.c,warningProps:I,fillOptionsWithMissingValue:h.a}),W=function(F){Object(P.a)(le,F);var q=Object(z.a)(le);function le(){var pe;return Object(ee.a)(this,le),pe=q.apply(this,arguments),pe.selectRef=B.createRef(),pe.focus=function(){pe.selectRef.current.focus()},pe.blur=function(){pe.selectRef.current.blur()},pe}return Object(K.a)(le,[{key:"render",value:function(){return B.createElement(C,Object.assign({ref:this.selectRef},this.props))}}]),le}(B.Component);W.Option=u,W.OptGroup=E;var Y=W,H=de.c=Y},M8RZ:function(et,de,N){"use strict";N.d(de,"a",function(){return _});var ee=N("fWQN"),K=N("mtLc"),P=N("yKVA"),z=N("879j"),B=N("q1tI"),M=N.n(B),j=N("i8i4"),U=N.n(j),_=function(R){Object(P.a)(g,R);var c=Object(z.a)(g);function g(w){var y;Object(ee.a)(this,g),y=c.call(this,w);var f=window.document;return y.node=f.createElement("div"),f.body.appendChild(y.node),y}return Object(K.a)(g,[{key:"render",value:function(){var y=this.props.children;return Object(j.createPortal)(y,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),g}(M.a.Component)},MI8n:function(et,de,N){"use strict";N.d(de,"b",function(){return M}),N.d(de,"a",function(){return _}),N.d(de,"e",function(){return R}),N.d(de,"d",function(){return c}),N.d(de,"c",function(){return g}),N.d(de,"f",function(){return w});var ee=N("/cxE"),K=N("C/vA"),P=N("pmY6"),z=N("24hK"),B=function(){var y=function(f,m){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var o in n)n.hasOwnProperty(o)&&(a[o]=n[o])},y(f,m)};return function(f,m){y(f,m);function a(){this.constructor=f}f.prototype=m===null?Object.create(m):(a.prototype=m.prototype,new a)}}(),M;(function(y){y.None=function(){return P.a.None};function f(I){return function(C,W,Y){W===void 0&&(W=null);var H=!1,F;return F=I(function(q){return H?void 0:(F?F.dispose():H=!0,C.call(W,q))},null,Y),H&&F.dispose(),F}}y.once=f;function m(I,C){return E(function(W,Y,H){return Y===void 0&&(Y=null),I(function(F){return W.call(Y,C(F))},null,H)})}y.map=m;function a(I,C){return E(function(W,Y,H){return Y===void 0&&(Y=null),I(function(F){C(F),W.call(Y,F)},null,H)})}y.forEach=a;function n(I,C){return E(function(W,Y,H){return Y===void 0&&(Y=null),I(function(F){return C(F)&&W.call(Y,F)},null,H)})}y.filter=n;function o(I){return I}y.signal=o;function u(){for(var I=[],C=0;C1)&&Ae.fire(Fe),pe=0},W)})},onLastListenerRemove:function(){F.dispose()}});return Ae.event}y.debounce=v;function O(I){var C=new Date().getTime();return m(f(I),function(W){return new Date().getTime()-C})}y.stopwatch=O;function A(I){var C=!0,W;return n(I,function(Y){var H=C||Y!==W;return C=!1,W=Y,H})}y.latch=A;function p(I,C,W){C===void 0&&(C=!1),W===void 0&&(W=[]);var Y=W.slice(),H=I(function(le){Y?Y.push(le):q.fire(le)}),F=function(){Y&&Y.forEach(function(le){return q.fire(le)}),Y=null},q=new _({onFirstListenerAdd:function(){H||(H=I(function(le){return q.fire(le)}))},onFirstListenerDidAdd:function(){Y&&(C?setTimeout(F):F())},onLastListenerRemove:function(){H&&H.dispose(),H=null}});return q.event}y.buffer=p;var h=function(){function I(C){this.event=C}return I.prototype.map=function(C){return new I(m(this.event,C))},I.prototype.forEach=function(C){return new I(a(this.event,C))},I.prototype.filter=function(C){return new I(n(this.event,C))},I.prototype.reduce=function(C,W){return new I(x(this.event,C,W))},I.prototype.latch=function(){return new I(A(this.event))},I.prototype.debounce=function(C,W,Y,H){return W===void 0&&(W=100),Y===void 0&&(Y=!1),new I(v(this.event,C,W,Y,H))},I.prototype.on=function(C,W,Y){return this.event(C,W,Y)},I.prototype.once=function(C,W,Y){return f(this.event)(C,W,Y)},I}();function s(I){return new h(I)}y.chain=s;function l(I,C,W){W===void 0&&(W=function(le){return le});var Y=function(){for(var le=[],pe=0;peAn error occurred:

    "+Oe(Ie.message+"",!0)+"
    ";throw Ie}}He.options=He.setOptions=function(Te){return At(He.defaults,Te),Je(He.defaults),He},He.getDefaults=we,He.defaults=st,He.use=function(Te){var ge=At({},Te);if(Te.renderer&&function(){var re=He.defaults.renderer||new Qe,ie=function(Be){var Ie=re[Be];re[Be]=function(){for(var ut=arguments.length,bt=new Array(ut),Tt=0;Tt`,triples:"",explode:"[]{}"},k=ee.Pos;ee.defineOption("autoCloseBrackets",!1,function(f,m,a){a&&a!=ee.Init&&(f.removeKeyMap(B),f.state.closeBrackets=null),m&&(M(z(m,"pairs")),f.state.closeBrackets=m,f.addKeyMap(B))});function z(f,m){return m=="pairs"&&typeof f=="string"?f:typeof f=="object"&&f[m]!=null?f[m]:K[m]}var B={Backspace:_,Enter:R};function M(f){for(var m=0;m=0;o--){var x=n[o].head;f.replaceRange("",k(x.line,x.ch-1),k(x.line,x.ch+1),"+delete")}}function R(f){var m=U(f),a=m&&z(m,"explode");if(!a||f.getOption("disableInput"))return ee.Pass;for(var n=f.listSelections(),o=0;o0;return{anchor:new k(f.anchor.line,f.anchor.ch+(m?-1:1)),head:new k(f.head.line,f.head.ch+(m?1:-1))}}function g(f,m){var a=U(f);if(!a||f.getOption("disableInput"))return ee.Pass;var n=z(a,"pairs"),o=n.indexOf(m);if(o==-1)return ee.Pass;for(var u=z(a,"closeBefore"),x=z(a,"triples"),E=n.charAt(o+1)==m,v=f.listSelections(),O=o%2==0,A,p=0;p=0&&f.getRange(s,k(s.line,s.ch+3))==m+m+m?l="skipThree":l="skip";else if(E&&s.ch>1&&x.indexOf(m)>=0&&f.getRange(k(s.line,s.ch-2),s)==m+m){if(s.ch>2&&/\bstring/.test(f.getTokenTypeAt(k(s.line,s.ch-2))))return ee.Pass;l="addFour"}else if(E){var T=s.ch==0?" ":f.getRange(k(s.line,s.ch-1),s);if(!ee.isWordChar(D)&&T!=m&&!ee.isWordChar(T))l="both";else return ee.Pass}else if(O&&(D.length===0||/\s/.test(D)||u.indexOf(D)>-1))l="both";else return ee.Pass;if(!A)A=l;else if(A!=l)return ee.Pass}var S=o%2?n.charAt(o-1):m,I=o%2?m:n.charAt(o+1);f.operation(function(){if(A=="skip")f.execCommand("goCharRight");else if(A=="skipThree")for(var C=0;C<3;C++)f.execCommand("goCharRight");else if(A=="surround"){for(var W=f.getSelections(),C=0;C>>6)+_(128|I&63):_(224|I>>>12&15)+_(128|I>>>6&63)+_(128|I&63)}else{var I=65536+(S.charCodeAt(0)-55296)*1024+(S.charCodeAt(1)-56320);return _(240|I>>>18&7)+_(128|I>>>12&63)+_(128|I>>>6&63)+_(128|I&63)}},c=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,g=function(S){return S.replace(c,R)},w=function(S){var I=[0,2,1][S.length%3],C=S.charCodeAt(0)<<16|(S.length>1?S.charCodeAt(1):0)<<8|(S.length>2?S.charCodeAt(2):0),W=[j.charAt(C>>>18),j.charAt(C>>>12&63),I>=2?"=":j.charAt(C>>>6&63),I>=1?"=":j.charAt(C&63)];return W.join("")},y=z.btoa&&typeof z.btoa=="function"?function(S){return z.btoa(S)}:function(S){if(S.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return S.replace(/[\s\S]{1,3}/g,w)},f=function(S){return y(g(String(S)))},m=function(S){return S.replace(/[+\/]/g,function(I){return I=="+"?"-":"_"}).replace(/=/g,"")},a=function(S,I){return I?m(f(S)):f(S)},n=function(S){return a(S,!0)},o;z.Uint8Array&&(o=function(S,I){for(var C="",W=0,Y=S.length;W>>18)+j.charAt(le>>>12&63)+(typeof F!="undefined"?j.charAt(le>>>6&63):"=")+(typeof q!="undefined"?j.charAt(le&63):"=")}return I?m(C):C});var u=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,x=function(S){switch(S.length){case 4:var I=(7&S.charCodeAt(0))<<18|(63&S.charCodeAt(1))<<12|(63&S.charCodeAt(2))<<6|63&S.charCodeAt(3),C=I-65536;return _((C>>>10)+55296)+_((C&1023)+56320);case 3:return _((15&S.charCodeAt(0))<<12|(63&S.charCodeAt(1))<<6|63&S.charCodeAt(2));default:return _((31&S.charCodeAt(0))<<6|63&S.charCodeAt(1))}},E=function(S){return S.replace(u,x)},v=function(S){var I=S.length,C=I%4,W=(I>0?U[S.charAt(0)]<<18:0)|(I>1?U[S.charAt(1)]<<12:0)|(I>2?U[S.charAt(2)]<<6:0)|(I>3?U[S.charAt(3)]:0),Y=[_(W>>>16),_(W>>>8&255),_(W&255)];return Y.length-=[0,0,2,1][C],Y.join("")},O=z.atob&&typeof z.atob=="function"?function(S){return z.atob(S)}:function(S){return S.replace(/\S{1,4}/g,v)},A=function(S){return O(String(S).replace(/[^A-Za-z0-9\+\/]/g,""))},p=function(S){return E(O(S))},h=function(S){return String(S).replace(/[-_]/g,function(I){return I=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},s=function(S){return p(h(S))},l;z.Uint8Array&&(l=function(S){return Uint8Array.from(A(h(S)),function(I){return I.charCodeAt(0)})});var D=function(){var S=z.Base64;return z.Base64=B,S};if(z.Base64={VERSION:M,atob:A,btoa:y,fromBase64:s,toBase64:a,utob:g,encode:a,encodeURI:n,btou:E,decode:s,noConflict:D,fromUint8Array:o,toUint8Array:l},typeof Object.defineProperty=="function"){var T=function(S){return{value:S,enumerable:!1,writable:!0,configurable:!0}};z.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",T(function(){return s(this)})),Object.defineProperty(String.prototype,"toBase64",T(function(S){return a(this,S)})),Object.defineProperty(String.prototype,"toBase64URI",T(function(){return a(this,!0)}))}}return z.Meteor&&(Base64=z.Base64),et.exports?et.exports.Base64=z.Base64:!(K=[],k=function(){return z.Base64}.apply(de,K),k!==void 0&&(et.exports=k)),{Base64:z.Base64}})}).call(this,N("IyRk"))},JWDV:function(et,de,N){et.exports=N.p+"static/charpter-white.5fa14f93.svg"},JYp7:function(et,de,N){"use strict";N.d(de,"c",function(){return K}),N.d(de,"d",function(){return k}),N.d(de,"f",function(){return B}),N.d(de,"a",function(){return M}),N.d(de,"b",function(){return j}),N.d(de,"e",function(){return U});var ee=function(){var _=function(R,c){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,w){g.__proto__=w}||function(g,w){for(var y in w)w.hasOwnProperty(y)&&(g[y]=w[y])},_(R,c)};return function(R,c){_(R,c);function g(){this.constructor=R}R.prototype=c===null?Object.create(c):(g.prototype=c.prototype,new g)}}(),K={done:!0,value:void 0},k;(function(_){var R={next:function(){return K}};function c(){return R}_.empty=c;function g(E){var v=!1;return{next:function(){return v?K:(v=!0,{done:!1,value:E})}}}_.single=g;function w(E,v,O){return v===void 0&&(v=0),O===void 0&&(O=E.length),{next:function(){return v>=O?K:{done:!1,value:E[v++]}}}}_.fromArray=w;function y(E){return{next:function(){var v=E.next();return v.done?K:{done:!1,value:v.value}}}}_.fromNativeIterator=y;function f(E){return E?Array.isArray(E)?_.fromArray(E):E:_.empty()}_.from=f;function m(E,v){return{next:function(){var O=E.next();return O.done?K:{done:!1,value:v(O.value)}}}}_.map=m;function a(E,v){return{next:function(){for(;;){var O=E.next();if(O.done)return K;if(v(O.value))return{done:!1,value:O.value}}}}}_.filter=a;function n(E,v){for(var O=E.next();!O.done;O=E.next())v(O.value)}_.forEach=n;function o(E,v){v===void 0&&(v=Number.POSITIVE_INFINITY);var O=[];if(v===0)return O;for(var A=0,p=E.next();!p.done&&!(O.push(p.value),++A>=v);p=E.next());return O}_.collect=o;function u(){for(var E=[],v=0;v=E.length)return K;var A=E[O],p=A.next();return p.done?(O++,this.next()):p}}}_.concat=u;function x(E){return new z(E)}_.chain=x})(k||(k={}));var z=function(){function _(R){this.it=R}return _.prototype.next=function(){return this.it.next()},_}();function B(_){return Array.isArray(_)?k.fromArray(_):_||k.empty()}var M=function(){function _(R,c,g,w){c===void 0&&(c=0),g===void 0&&(g=R.length),w===void 0&&(w=c-1),this.items=R,this.start=c,this.end=g,this.index=w}return _.prototype.first=function(){return this.index=this.start,this.current()},_.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},_.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},_}(),j=function(_){ee(R,_);function R(c,g,w,y){return g===void 0&&(g=0),w===void 0&&(w=c.length),y===void 0&&(y=g-1),_.call(this,c,g,w,y)||this}return R.prototype.current=function(){return _.prototype.current.call(this)},R.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},R.prototype.first=function(){return this.index=this.start,this.current()},R.prototype.last=function(){return this.index=this.end-1,this.current()},R.prototype.parent=function(){return null},R}(M),U=function(){function _(R,c){this.iterator=R,this.fn=c}return _.prototype.next=function(){return this.fn(this.iterator.next())},_}()},JeFH:function(et,de){et.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAwCAYAAAD9wT87AAAe2UlEQVR4XtVcB5QUVbr+blV1T+ieGWaYBAwgOSgooJLjENeA6a2KCVfZNbum3VXXsG9VdFfc1TXtGlfXLCKgEiRnUAHJWRzAyTl3V9V957vV1dPTM+M4Hn2Pd8/xIHRV9f3vn77/+/9qgVaWlHIggHMB+AA8K4TIbe2ek/FzKWUmgLGw7THQtLlCiBUn4z6j9ySa26SUMg3A+ZDyaljBMTC87mXrAUwSQtT+fxBOSqmbpjnaMIyrYJnToRvtQ/sOAJgihFh1ssvRSEFSysEAroJlXQZdp8VhXUEAS07UYGavBPSIQz10vacQ4vjJLJiUMgPAhZByJoQYyr0erZFYmFOFZK+GK7szGOB3Qoi/nsxycG9KQVLKKyDltbDMbBge5NYD87+twvxjNdhbZiIoJZZMysRpPqsShreXECL/ZBRMSjkAwM2wzIugG2k2gOW59fjgaDU2FNbjRI2Fm/r48eigdtz+TUKIF05GOSL3JKSUDwN4SALYXBRQwqzIrUNBvQ1DAIYm4BHAJxMz0TPOLoJu9BFClJxsglVVVWXGx8d/IYTIOl4rsSCnGvNzarCvIghLAl5NoN6WuKVPAu4dkMjtXyuEeP1kk6NJDpJSHgTQ8+Ht5Xj5UBWoqBhNQAsFP/6dwi2alIlTYq1caEY/IUT5zyGYlLIvgD4AugLIgm0zF3qgaccDgcCbMTExu1v6Xinl6YDc/lWxiWvWF6E04BiYxxUEQK0lcUe/BNx9qlLQFUKIt38mOVIAnA6gG4AugM104Qe0ajo1gA+FEHTwVhc96CoAbzy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FvhvEMEQXVm4s6Jon6VKzA053dTI46OH8hMARhbwa5OCbboU/9e8//BRH8j9mLdQoDqqNCwAAAABJRU5ErkJggg=="},Jq4h:function(et,de,N){et.exports=N.p+"static/qrcode.54870d9b.png"},LdHM:function(et,de,N){"use strict";N.d(de,"b",function(){return u}),N.d(de,"a",function(){return E});var ee=N("1OyB"),K=N("vuIU"),k=N("Ji7U"),z=N("LK+K"),B=N("q1tI"),M=N("rePB"),j=N("Ff2n"),U=N("ODXe"),_=N("4IlW"),R=N("bX4T"),c=N("YrtM"),g=N("TSYQ"),w=N.n(g),y=N("+nKL"),f=N("8OUc"),m=function(q,le){var pe=q.prefixCls,Ae=q.id,Ge=q.flattenOptions,Fe=q.childrenAsData,Ue=q.values,_e=q.searchValue,je=q.multiple,xe=q.defaultActiveFirstOption,he=q.height,te=q.itemHeight,ye=q.notFoundContent,ue=q.open,Le=q.menuItemSelectedIcon,ae=q.virtual,oe=q.onSelect,Se=q.onToggleOpen,Me=q.onActiveValue,We=q.onScroll,Ke=q.onMouseEnter,Qe="".concat(pe,"-item"),Ze=Object(c.a)(function(){return Ge},[ue,Ge],function(nt,Te){return Te[0]&&nt[1]!==Te[1]}),yt=B.useRef(null),vt=function(Te){Te.preventDefault()},dt=function(Te){yt.current&&yt.current.scrollTo({index:Te})},pt=function(Te){for(var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,be=Ze.length,re=0;re1&&arguments[1]!==void 0?arguments[1]:!1;return Object(O.a)(F).map(function(le,pe){if(!B.isValidElement(le)||!le.type)return null;var Ae=le.type.isSelectOptGroup,Ge=le.key,Fe=le.props,Ue=Fe.children,_e=Object(j.a)(Fe,["children"]);return q||!Ae?A(le):Object(v.a)(Object(v.a)({key:"__RC_SELECT_GRP__".concat(Ge===null?pe:Ge,"__"),label:Ge},_e),{},{options:p(Ue)})}).filter(function(le){return le})}var h=N("2Qr1"),s=N("qNPg"),l=N("U8pU"),D=N("Kwbf"),T=N("WKfj");function S(F){var q=F.mode,le=F.options,pe=F.children,Ae=F.backfill,Ge=F.allowClear,Fe=F.placeholder,Ue=F.getInputElement,_e=F.showSearch,je=F.onSearch,xe=F.defaultOpen,he=F.autoFocus,te=F.labelInValue,ye=F.value,ue=F.inputValue,Le=F.optionLabelProp,ae=q==="multiple"||q==="tags",oe=_e!==void 0?_e:ae||q==="combobox",Se=le||p(pe);if(Object(D.a)(q!=="tags"||Se.every(function(Qe){return!Qe.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),q==="tags"||q==="combobox"){var Me=Se.some(function(Qe){return Qe.options?Qe.options.some(function(Ze){return typeof("value"in Ze?Ze.value:Ze.key)=="number"}):typeof("value"in Qe?Qe.value:Qe.key)=="number"});Object(D.a)(!Me,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(D.a)(q!=="combobox"||!Le,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(D.a)(q==="combobox"||!Ae,"`backfill` only works with `combobox` mode."),Object(D.a)(q==="combobox"||!Ue,"`getInputElement` only work with `combobox` mode."),Object(D.b)(q!=="combobox"||!Ue||!Ge||!Fe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),je&&!oe&&q!=="combobox"&&q!=="tags"&&Object(D.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(D.b)(!xe||he,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),ye!=null){var We=Object(T.d)(ye);Object(D.a)(!te||We.every(function(Qe){return Object(l.a)(Qe)==="object"&&("key"in Qe||"value"in Qe)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(D.a)(!ae||Array.isArray(ye),"`value` should be array when `mode` is `multiple` or `tags`")}if(pe){var Ke=null;Object(O.a)(pe).some(function(Qe){if(!B.isValidElement(Qe)||!Qe.type)return!1;var Ze=Qe.type;if(Ze.isSelectOption)return!1;if(Ze.isSelectOptGroup){var yt=Object(O.a)(Qe.props.children).every(function(vt){return!B.isValidElement(vt)||!Qe.type||vt.type.isSelectOption?!0:(Ke=vt.type,!1)});return!yt}return Ke=Ze,!0}),Ke&&Object(D.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ke.displayName||Ke.name||Ke,"`.")),Object(D.a)(ue===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var I=S,C=Object(s.a)({prefixCls:"rc-select",components:{optionList:n},convertChildrenToData:p,flattenOptions:h.d,getLabeledValue:h.e,filterOptions:h.b,isValueDisabled:h.g,findValueOption:h.c,warningProps:I,fillOptionsWithMissingValue:h.a}),W=function(F){Object(k.a)(le,F);var q=Object(z.a)(le);function le(){var pe;return Object(ee.a)(this,le),pe=q.apply(this,arguments),pe.selectRef=B.createRef(),pe.focus=function(){pe.selectRef.current.focus()},pe.blur=function(){pe.selectRef.current.blur()},pe}return Object(K.a)(le,[{key:"render",value:function(){return B.createElement(C,Object.assign({ref:this.selectRef},this.props))}}]),le}(B.Component);W.Option=u,W.OptGroup=E;var Y=W,H=de.c=Y},M8RZ:function(et,de,N){"use strict";N.d(de,"a",function(){return _});var ee=N("fWQN"),K=N("mtLc"),k=N("yKVA"),z=N("879j"),B=N("q1tI"),M=N.n(B),j=N("i8i4"),U=N.n(j),_=function(R){Object(k.a)(g,R);var c=Object(z.a)(g);function g(w){var y;Object(ee.a)(this,g),y=c.call(this,w);var f=window.document;return y.node=f.createElement("div"),f.body.appendChild(y.node),y}return Object(K.a)(g,[{key:"render",value:function(){var y=this.props.children;return Object(j.createPortal)(y,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),g}(M.a.Component)},MI8n:function(et,de,N){"use strict";N.d(de,"b",function(){return M}),N.d(de,"a",function(){return _}),N.d(de,"e",function(){return R}),N.d(de,"d",function(){return c}),N.d(de,"c",function(){return g}),N.d(de,"f",function(){return w});var ee=N("/cxE"),K=N("C/vA"),k=N("pmY6"),z=N("24hK"),B=function(){var y=function(f,m){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var o in n)n.hasOwnProperty(o)&&(a[o]=n[o])},y(f,m)};return function(f,m){y(f,m);function a(){this.constructor=f}f.prototype=m===null?Object.create(m):(a.prototype=m.prototype,new a)}}(),M;(function(y){y.None=function(){return k.a.None};function f(I){return function(C,W,Y){W===void 0&&(W=null);var H=!1,F;return F=I(function(q){return H?void 0:(F?F.dispose():H=!0,C.call(W,q))},null,Y),H&&F.dispose(),F}}y.once=f;function m(I,C){return E(function(W,Y,H){return Y===void 0&&(Y=null),I(function(F){return W.call(Y,C(F))},null,H)})}y.map=m;function a(I,C){return E(function(W,Y,H){return Y===void 0&&(Y=null),I(function(F){C(F),W.call(Y,F)},null,H)})}y.forEach=a;function n(I,C){return E(function(W,Y,H){return Y===void 0&&(Y=null),I(function(F){return C(F)&&W.call(Y,F)},null,H)})}y.filter=n;function o(I){return I}y.signal=o;function u(){for(var I=[],C=0;C1)&&Ae.fire(Fe),pe=0},W)})},onLastListenerRemove:function(){F.dispose()}});return Ae.event}y.debounce=v;function O(I){var C=new Date().getTime();return m(f(I),function(W){return new Date().getTime()-C})}y.stopwatch=O;function A(I){var C=!0,W;return n(I,function(Y){var H=C||Y!==W;return C=!1,W=Y,H})}y.latch=A;function p(I,C,W){C===void 0&&(C=!1),W===void 0&&(W=[]);var Y=W.slice(),H=I(function(le){Y?Y.push(le):q.fire(le)}),F=function(){Y&&Y.forEach(function(le){return q.fire(le)}),Y=null},q=new _({onFirstListenerAdd:function(){H||(H=I(function(le){return q.fire(le)}))},onFirstListenerDidAdd:function(){Y&&(C?setTimeout(F):F())},onLastListenerRemove:function(){H&&H.dispose(),H=null}});return q.event}y.buffer=p;var h=function(){function I(C){this.event=C}return I.prototype.map=function(C){return new I(m(this.event,C))},I.prototype.forEach=function(C){return new I(a(this.event,C))},I.prototype.filter=function(C){return new I(n(this.event,C))},I.prototype.reduce=function(C,W){return new I(x(this.event,C,W))},I.prototype.latch=function(){return new I(A(this.event))},I.prototype.debounce=function(C,W,Y,H){return W===void 0&&(W=100),Y===void 0&&(Y=!1),new I(v(this.event,C,W,Y,H))},I.prototype.on=function(C,W,Y){return this.event(C,W,Y)},I.prototype.once=function(C,W,Y){return f(this.event)(C,W,Y)},I}();function s(I){return new h(I)}y.chain=s;function l(I,C,W){W===void 0&&(W=function(le){return le});var Y=function(){for(var le=[],pe=0;pe0?new U(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(y.prototype,"event",{get:function(){var f=this;return this._event||(this._event=function(m,a,n){f._listeners||(f._listeners=new z.a);var o=f._listeners.isEmpty();o&&f._options&&f._options.onFirstListenerAdd&&f._options.onFirstListenerAdd(f);var u=f._listeners.push(a?[m,a]:m);o&&f._options&&f._options.onFirstListenerDidAdd&&f._options.onFirstListenerDidAdd(f),f._options&&f._options.onListenerDidAdd&&f._options.onListenerDidAdd(f,m,a);var x;f._leakageMon&&(x=f._leakageMon.check(f._listeners.size));var E;return E={dispose:function(){if(x&&x(),E.dispose=y._noop,!f._disposed&&(u(),f._options&&f._options.onLastListenerRemove)){var v=f._listeners&&!f._listeners.isEmpty();v||f._options.onLastListenerRemove(f)}}},n instanceof P.b?n.add(E):Array.isArray(n)&&n.push(E),E}),this._event},enumerable:!0,configurable:!0}),y.prototype.fire=function(f){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new z.a);for(var m=this._listeners.iterator(),a=m.next();!a.done;a=m.next())this._deliveryQueue.push([a.value,f]);for(;this._deliveryQueue.size>0;){var n=this._deliveryQueue.shift(),o=n[0],u=n[1];try{typeof o=="function"?o.call(void 0,u):o[0].call(o[1],u)}catch(x){Object(ee.e)(x)}}}},y.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},y._noop=function(){},y}(),R=function(y){B(f,y);function f(m){var a=y.call(this,m)||this;return a._isPaused=0,a._eventQueue=new z.a,a._mergeFn=m&&m.merge,a}return f.prototype.pause=function(){this._isPaused++},f.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){var m=this._eventQueue.toArray();this._eventQueue.clear(),y.prototype.fire.call(this,this._mergeFn(m))}else for(;!this._isPaused&&this._eventQueue.size!==0;)y.prototype.fire.call(this,this._eventQueue.shift())},f.prototype.fire=function(m){this._listeners&&(this._isPaused!==0?this._eventQueue.push(m):y.prototype.fire.call(this,m))},f}(_),c=function(){function y(){var f=this;this.hasListeners=!1,this.events=[],this.emitter=new _({onFirstListenerAdd:function(){return f.onFirstListenerAdd()},onLastListenerRemove:function(){return f.onLastListenerRemove()}})}return Object.defineProperty(y.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),y.prototype.add=function(f){var m=this,a={event:f,listener:null};this.events.push(a),this.hasListeners&&this.hook(a);var n=function(){m.hasListeners&&m.unhook(a);var o=m.events.indexOf(a);m.events.splice(o,1)};return Object(P.h)(Object(K.a)(n))},y.prototype.onFirstListenerAdd=function(){var f=this;this.hasListeners=!0,this.events.forEach(function(m){return f.hook(m)})},y.prototype.onLastListenerRemove=function(){var f=this;this.hasListeners=!1,this.events.forEach(function(m){return f.unhook(m)})},y.prototype.hook=function(f){var m=this;f.listener=f.event(function(a){return m.emitter.fire(a)})},y.prototype.unhook=function(f){f.listener&&f.listener.dispose(),f.listener=null},y.prototype.dispose=function(){this.emitter.dispose()},y}(),g=function(){function y(){this.buffers=[]}return y.prototype.wrapEvent=function(f){var m=this;return function(a,n,o){return f(function(u){var x=m.buffers[m.buffers.length-1];x?x.push(function(){return a.call(n,u)}):a.call(n,u)},void 0,o)}},y.prototype.bufferEvents=function(f){var m=[];this.buffers.push(m);var a=f();return this.buffers.pop(),m.forEach(function(n){return n()}),a},y}(),w=function(){function y(){var f=this;this.listening=!1,this.inputEvent=M.None,this.inputEventListener=P.a.None,this.emitter=new _({onFirstListenerDidAdd:function(){f.listening=!0,f.inputEventListener=f.inputEvent(f.emitter.fire,f.emitter)},onLastListenerRemove:function(){f.listening=!1,f.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(y.prototype,"input",{set:function(f){this.inputEvent=f,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=f(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),y.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},y}()},N0LK:function(et,de,N){"use strict";N.d(de,"x",function(){return ee}),N.d(de,"F",function(){return K}),N.d(de,"r",function(){return z}),N.d(de,"o",function(){return B}),N.d(de,"p",function(){return M}),N.d(de,"Q",function(){return j}),N.d(de,"K",function(){return _}),N.d(de,"k",function(){return R}),N.d(de,"N",function(){return c}),N.d(de,"m",function(){return g}),N.d(de,"l",function(){return w}),N.d(de,"I",function(){return y}),N.d(de,"H",function(){return f}),N.d(de,"q",function(){return m}),N.d(de,"t",function(){return a}),N.d(de,"D",function(){return n}),N.d(de,"e",function(){return o}),N.d(de,"f",function(){return u}),N.d(de,"B",function(){return x}),N.d(de,"C",function(){return E}),N.d(de,"n",function(){return O}),N.d(de,"O",function(){return p}),N.d(de,"c",function(){return h}),N.d(de,"d",function(){return s}),N.d(de,"z",function(){return l}),N.d(de,"A",function(){return D}),N.d(de,"u",function(){return T}),N.d(de,"E",function(){return I}),N.d(de,"G",function(){return C}),N.d(de,"i",function(){return Y}),N.d(de,"g",function(){return F}),N.d(de,"v",function(){return le}),N.d(de,"h",function(){return pe}),N.d(de,"y",function(){return Ae}),N.d(de,"w",function(){return Ge}),N.d(de,"a",function(){return Fe}),N.d(de,"P",function(){return Ue}),N.d(de,"L",function(){return _e}),N.d(de,"J",function(){return je}),N.d(de,"j",function(){return xe}),N.d(de,"M",function(){return he}),N.d(de,"s",function(){return te}),N.d(de,"b",function(){return ye});function ee(ae){return!ae||typeof ae!="string"?!0:ae.trim().length===0}function K(ae,oe,Se){Se===void 0&&(Se="0");for(var Me=""+ae,We=[Me],Ke=Me.length;Ke=oe.length?Me:oe[Ke]})}function B(ae){return ae.replace(/[<>&]/g,function(oe){switch(oe){case"<":return"<";case">":return">";case"&":return"&";default:return oe}})}function M(ae){return ae.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function j(ae,oe){oe===void 0&&(oe=" ");var Se=U(ae,oe);return _(Se,oe)}function U(ae,oe){if(!ae||!oe)return ae;var Se=oe.length;if(Se===0||ae.length===0)return ae;for(var Me=0;ae.indexOf(oe,Me)===Me;)Me=Me+Se;return ae.substring(Me)}function _(ae,oe){if(!ae||!oe)return ae;var Se=oe.length,Me=ae.length;if(Se===0||Me===0)return ae;for(var We=Me,Ke=-1;!(Ke=ae.lastIndexOf(oe,We-1),Ke===-1||Ke+Se!==We);){if(Ke===0)return"";We=Ke}return ae.substring(0,We)}function R(ae){return ae.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function c(ae,oe){if(ae.length0?ae.indexOf(oe,Se)===Se:Se===0?ae===oe:!1}function w(ae,oe,Se){if(Se===void 0&&(Se={}),!ae)throw new Error("Cannot create regex from empty string");oe||(ae=M(ae)),Se.wholeWord&&(/\B/.test(ae.charAt(0))||(ae="\\b"+ae),/\B/.test(ae.charAt(ae.length-1))||(ae=ae+"\\b"));var Me="";return Se.global&&(Me+="g"),Se.matchCase||(Me+="i"),Se.multiline&&(Me+="m"),Se.unicode&&(Me+="u"),new RegExp(ae,Me)}function y(ae){if(ae.source==="^"||ae.source==="^$"||ae.source==="$"||ae.source==="^\\s*$")return!1;var oe=ae.exec("");return!!(oe&&ae.lastIndex===0)}function f(ae){return(ae.global?"g":"")+(ae.ignoreCase?"i":"")+(ae.multiline?"m":"")+(ae.unicode?"u":"")}function m(ae){for(var oe=0,Se=ae.length;oe=0;Se--){var Me=ae.charCodeAt(Se);if(Me!==32&&Me!==9)return Se}return-1}function o(ae,oe){return aeoe?1:0}function u(ae,oe){for(var Se=Math.min(ae.length,oe.length),Me=0;Meoe.length?1:0}function x(ae){return ae>=97&&ae<=122}function E(ae){return ae>=65&&ae<=90}function v(ae){return x(ae)||E(ae)}function O(ae,oe){return ae.length===oe.length&&A(ae,oe)}function A(ae,oe,Se){Se===void 0&&(Se=ae.length);for(var Me=0;Meae.length?!1:A(ae,oe,Se)}function h(ae,oe){var Se,Me=Math.min(ae.length,oe.length);for(Se=0;Se1){var Me=ae.charCodeAt(oe-2);if(l(Me))return(Me-55296<<10)+(Se-56320)+65536}return Se}function I(ae,oe){var Se=ue.getInstance(),Me=oe,We=ae.length,Ke=T(ae,We,oe);oe+=Ke>=65536?2:1;for(var Qe=Se.getGraphemeBreakType(Ke);oe=65536?2:1,Qe=yt}return oe-Me}function C(ae,oe){var Se=ue.getInstance(),Me=oe,We=S(ae,oe);oe-=We>=65536?2:1;for(var Ke=Se.getGraphemeBreakType(We);oe>0;){var Qe=S(ae,oe),Ze=Se.getGraphemeBreakType(Qe);if(ye(Ze,Ke))break;oe-=Qe>=65536?2:1,Ke=Ze}return Me-oe}var W=/(?:[\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 Y(ae){return W.test(ae)}var H=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function F(ae){return H.test(ae)}var q=/^[\t\n\r\x20-\x7E]*$/;function le(ae){return q.test(ae)}function pe(ae){for(var oe=0,Se=ae.length;oe=11904&&ae<=55215||ae>=63744&&ae<=64255||ae>=65281&&ae<=65374}function Ge(ae){return ae>=127462&&ae<=127487||ae>=9728&&ae<=10175||ae>=127744&&ae<=128591||ae>=128640&&ae<=128764||ae>=128992&&ae<=129003||ae>=129280&&ae<=129535||ae>=129648&&ae<=129651||ae>=129656&&ae<=129666||ae>=129680&&ae<=129685}var Fe=String.fromCharCode(65279);function Ue(ae){return!!(ae&&ae.length>0&&ae.charCodeAt(0)===65279)}function _e(ae){return btoa(encodeURIComponent(ae))}function je(ae,oe){for(var Se="",Me=0;MeSe[3*We+1])We=2*We+1;else return Se[3*We+2];return 0},ae._INSTANCE=null,ae}();function Le(){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]")}},Nmxd:function(et,de){et.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAF4ElEQVRoQ91aW2wUVRj+/rPbSivURIgKjZcHjUYTgZ0lthgv3V0LSqB9IAQeNNEIaKKwZbcFnuQJoZ1piyYawJjIiwZDwiVBaHd28QItaWeLD4KJPgimiA+YCAZj6Z7fzPZiu7e57WriJE0f5v++//tm/j3nn3MOoQyXcmJ/LdfeCBOjEUA9EdUzUA9g0ST9VQJGmXkU5n/CAN2q043Vm295TU9uCRS9MwCiFWBqAmD++R1yjQNIgTgF5tNGuCPtEJ8Nd2xgWarzPil9UbBsA1G1m6R5GOYxkOgRItM71NRxzQmnIwMBvStKoC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LJdlOIxzfUwwbTHY+zSy+ccldAkbtRjimThroCYAzA46bqUl6JmxOh+IH8mbq1K65NXLuIIAnymqAMQbyNRrhtvT0qkQgqe4lRof7RHKdEe6Y9XEe0NVDBLzsnrMwcmbp/rOs8lXPQtzODHhY+/9LEq0aCcV0M22wX21jge5yiwdwGVW+RuPZnGUVM9FkP+NlYesaIFcJ8s+TLM9UQDwY1JYOx6Y3QPLXRpNqPzEiHpJfBOAD8KgHjoJQs3VIh+Kzlj3zDCzp63zEJ8QgCHeXW4AnPsZvGSkbLjR3/DCT5/+3vD7lTkl0bQHRPk9PrVxg5q1GpL3gZkvpLaZU93qW8r/dYhJiw3DTNudbTFMPb1lf5xIpxHEQ7i/XA7XFw/hZSLlmqLn094flLqWZzNzcZikO/JvbrCTkJjub3rYMZJ8YgwJJbSuBK7zRTb3pUGwfCGznTdk3MMm2tG/vIvL7tpJE1G3vlCeMMcYCvTye2TfSvP2qHeFTMY4NTI9Sek8AJFewlCGi7IEPc/JycmWYOUVCJMHitNmYOQF7NjAzmTK8v5Z/N4/biEYI1BN46riNeeTGvEazx21Ao5DmcRs5QHfV6UbQ+3GbvwHH7EQQahyMxwAAAABJRU5ErkJggg=="},NvD2:function(et,de,N){"use strict";N.d(de,"a",function(){return M});var ee=N("Kwbf");function K(j,U){var _=new Set;return j.forEach(function(R){U.has(R)||_.add(R)}),_}function P(j){var U=j||{},_=U.disabled,R=U.disableCheckbox,c=U.checkable;return!!(_||R)||c===!1}function z(j,U,_,R){for(var c=new Set(j),g=new Set,w=0;w<=_;w+=1){var y=U.get(w)||new Set;y.forEach(function(n){var o=n.key,u=n.node,x=n.children,E=x===void 0?[]:x;c.has(o)&&!R(u)&&E.filter(function(v){return!R(v.node)}).forEach(function(v){c.add(v.key)})})}for(var f=new Set,m=_;m>=0;m-=1){var a=U.get(m)||new Set;a.forEach(function(n){var o=n.parent,u=n.node;if(R(u)||!n.parent||f.has(n.parent.key))return;if(R(n.parent.node)){f.add(o.key);return}var x=!0,E=!1;(o.children||[]).filter(function(v){return!R(v.node)}).forEach(function(v){var O=v.key,A=c.has(O);x&&!A&&(x=!1),!E&&(A||g.has(O))&&(E=!0)}),x&&c.add(o.key),E&&g.add(o.key),f.add(o.key)})}return{checkedKeys:Array.from(c),halfCheckedKeys:Array.from(K(g,c))}}function B(j,U,_,R,c){for(var g=new Set(j),w=new Set(U),y=0;y<=R;y+=1){var f=_.get(y)||new Set;f.forEach(function(o){var u=o.key,x=o.node,E=o.children,v=E===void 0?[]:E;!g.has(u)&&!w.has(u)&&!c(x)&&v.filter(function(O){return!c(O.node)}).forEach(function(O){g.delete(O.key)})})}w=new Set;for(var m=new Set,a=R;a>=0;a-=1){var n=_.get(a)||new Set;n.forEach(function(o){var u=o.parent,x=o.node;if(c(x)||!o.parent||m.has(o.parent.key))return;if(c(o.parent.node)){m.add(u.key);return}var E=!0,v=!1;(u.children||[]).filter(function(O){return!c(O.node)}).forEach(function(O){var A=O.key,p=g.has(A);E&&!p&&(E=!1),!v&&(p||w.has(A))&&(v=!0)}),E||g.delete(u.key),v&&w.add(u.key),m.add(u.key)})}return{checkedKeys:Array.from(g),halfCheckedKeys:Array.from(K(w,g))}}function M(j,U,_,R){var c=[],g;R?g=R:g=P;var w=new Set(j.filter(function(a){var n=!!_[a];return n||c.push(a),n})),y=new Map,f=0;Object.keys(_).forEach(function(a){var n=_[a],o=n.level,u=y.get(o);u||(u=new Set,y.set(o,u)),u.add(n),f=Math.max(f,o)}),Object(ee.a)(!c.length,"Tree missing follow keys: ".concat(c.slice(0,100).map(function(a){return"'".concat(a,"'")}).join(", ")));var m;return U===!0?m=z(w,y,f,g):m=B(w,U.halfCheckedKeys,y,f,g),m}},OLES:function(et,de,N){"use strict";var ee=N("U8pU"),K=N("VTBJ"),P=N("Ff2n"),z=N("q1tI"),B=N("uciX"),M=N("7ixt"),j=function(w){var y=w.overlay,f=w.prefixCls,m=w.id,a=w.overlayInnerStyle;return z.createElement("div",{className:"".concat(f,"-inner"),id:m,role:"tooltip",style:a},typeof y=="function"?y():y)},U=j,_=function(w,y){var f=w.overlayClassName,m=w.trigger,a=m===void 0?["hover"]:m,n=w.mouseEnterDelay,o=n===void 0?0:n,u=w.mouseLeaveDelay,x=u===void 0?.1:u,E=w.overlayStyle,v=w.prefixCls,O=v===void 0?"rc-tooltip":v,A=w.children,p=w.onVisibleChange,h=w.afterVisibleChange,s=w.transitionName,l=w.animation,D=w.placement,T=D===void 0?"right":D,S=w.align,I=S===void 0?{}:S,C=w.destroyTooltipOnHide,W=C===void 0?!1:C,Y=w.defaultVisible,H=w.getTooltipContainer,F=w.overlayInnerStyle,q=Object(P.a)(w,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),le=Object(z.useRef)(null);Object(z.useImperativeHandle)(y,function(){return le.current});var pe=Object(K.a)({},q);"visible"in w&&(pe.popupVisible=w.visible);var Ae=function(){var je=w.arrowContent,xe=je===void 0?null:je,he=w.overlay,te=w.id;return[z.createElement("div",{className:"".concat(O,"-arrow"),key:"arrow"},xe),z.createElement(U,{key:"content",prefixCls:O,id:te,overlay:he,overlayInnerStyle:F})]},Ge=!1,Fe=!1;if(typeof W=="boolean")Ge=W;else if(W&&Object(ee.a)(W)==="object"){var Ue=W.keepParent;Ge=Ue===!0,Fe=Ue===!1}return z.createElement(B.a,Object.assign({popupClassName:f,prefixCls:O,popup:Ae,action:a,builtinPlacements:M.a,popupPlacement:T,ref:le,popupAlign:I,getPopupContainer:H,onPopupVisibleChange:p,afterPopupVisibleChange:h,popupTransitionName:s,popupAnimation:l,defaultPopupVisible:Y,destroyPopupOnHide:Ge,autoDestroy:Fe,mouseLeaveDelay:x,popupStyle:E,mouseEnterDelay:o},pe),A)},R=Object(z.forwardRef)(_),c=de.a=R},OZM5:function(et,de,N){"use strict";N.d(de,"b",function(){return R}),N.d(de,"a",function(){return c}),N.d(de,"k",function(){return g}),N.d(de,"h",function(){return w}),N.d(de,"i",function(){return y}),N.d(de,"g",function(){return f}),N.d(de,"c",function(){return m}),N.d(de,"d",function(){return a}),N.d(de,"j",function(){return u}),N.d(de,"e",function(){return x}),N.d(de,"f",function(){return E});var ee=N("KQm4"),K=N("U8pU"),P=N("Ff2n"),z=N("q1tI"),B=N.n(z),M=N("Kwbf"),j=N("WaYH"),U=.25,_=2;function R(v,O){var A=v.slice(),p=A.indexOf(O);return p>=0&&A.splice(p,1),A}function c(v,O){var A=v.slice();return A.indexOf(O)===-1&&A.push(O),A}function g(v){return v.split("-")}function w(v,O){return"".concat(v,"-").concat(O)}function y(v){return v&&v.type&&v.type.isTreeNode}function f(v,O){var A=[v],p=O[v];function h(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];s.forEach(function(l){var D=l.key,T=l.children;A.push(D),h(T)})}return h(p.children),A}function m(v,O){var A=v.clientY,p=O.selectHandle.getBoundingClientRect(),h=p.top,s=p.bottom,l=p.height,D=Math.max(l*U,_);return A<=h+D?-1:A>=s-D?1:0}function a(v,O){if(!v)return;var A=O.multiple;return A?v.slice():v.length?[v[0]]:v}var n=function(O){return O};function o(v,O){if(!v)return[];var A=O||{},p=A.processProps,h=p===void 0?n:p,s=Array.isArray(v)?v:[v];return s.map(function(l){var D=l.children,T=Object(P.a)(l,["children"]),S=o(D,O);return B.a.createElement(j.a,Object.assign({},h(T)),S)})}function u(v){if(!v)return null;var O;if(Array.isArray(v))O={checkedKeys:v,halfCheckedKeys:void 0};else if(Object(K.a)(v)==="object")O={checkedKeys:v.checked||void 0,halfCheckedKeys:v.halfChecked||void 0};else return Object(M.a)(!1,"`checkedKeys` is not an array or an object"),null;return O}function x(v,O){var A=new Set;function p(h){if(A.has(h))return;var s=O[h];if(!s)return;A.add(h);var l=s.parent,D=s.node;if(D.disabled)return;l&&p(l.key)}return(v||[]).forEach(function(h){p(h)}),Object(ee.a)(A)}function E(v){var O={};return Object.keys(v).forEach(function(A){(A.startsWith("data-")||A.startsWith("aria-"))&&(O[A]=v[A])}),O}},Ohmc:function(et,de,N){et.exports=N.p+"static/certificate.fc32dc1b.jpg"},Ot1p:function(et,de,N){"use strict";var ee=N("2qtc"),K=N("kLXV"),P=N("rAM+"),z=N("miYZ"),B=N("tsqr"),M=N("9og8"),j=N("tJVT"),U=N("jrin"),_=N("WmNS"),R=N.n(_),c=N("q1tI"),g=N.n(c),w=N("VrN/"),y=N.n(w),f=N("bdgK"),m=N("p77/"),a=N("Bd2K"),n=N("ELLl"),o=N("19Vz"),u=N("lZu9"),x=N("+NIl"),E=N("kSUc"),v=N("9Bee"),O=function(Ie){var ut=Ie.value,bt=ut===void 0?"":ut,Tt=Ie.className,xt=Ie.showTextOnly,gt=Ie.showLines,qe=Ie.style,Xe=qe===void 0?{}:qe,Pe=Object(c.useMemo)(function(){return""},[bt]);return g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{dangerouslySetInnerHTML:{__html:Pe}}))},A=N("0Owb"),p=N("dejd"),h=N("C+DQ"),s=N("1vsH"),l=N("m3rI"),D=[{title:"\u7C97\u4F53",icon:"icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"icon-sum",actionName:"inline-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"icon-picture",actionName:"upload-image"},{title:"\u8868\u683C",icon:"icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"icon-eraser",actionName:"eraser"}];function T(Ie){var ut=Ie.onActionCallback,bt=Ie.title,Tt=Ie.icon,xt=Ie.actionName,gt=Ie.className,qe=gt===void 0?"":gt,Xe=Ie.children;function Pe(){ut(xt)}return g.a.createElement("a",{title:bt,className:qe,onClick:Pe},g.a.createElement("i",{className:"md-iconfont ".concat(Tt)}),Xe)}var S=function(Ie){var ut=Ie.watch,bt=Ie.showNullButton,Tt=Ie.onActionCallback,xt=Ie.fullScreen,gt=Ie.insertTemp,qe=Ie.hidetoolBar,Xe=Ie.uuid,Pe=Ie.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(s.D)("_educoder_session_login"),"&_educoder_session=").concat(Object(s.D)("_educoder_session"),"&key=").concat(Xe,"&api=").concat(encodeURIComponent(l.a.PROXY_SERVER)));var se=[].concat(D,[{title:"".concat(ut?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(ut?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return g.a.createElement("ul",{className:"markdown-toolbar-container"},!qe&&se.map(function(fe,$e){return g.a.createElement("li",{key:$e},fe.actionName?g.a.createElement(T,Object(A.a)({},fe,{onActionCallback:Tt})):g.a.createElement("span",{className:"v-line"}))}),bt?g.a.createElement("li",null,g.a.createElement(T,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Tt},g.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,gt&&g.a.createElement("li",null,g.a.createElement(T,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(gt),onActionCallback:Tt},g.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),g.a.createElement("li",{className:"btn-full-screen"},g.a.createElement(T,{icon:"".concat(xt?"icon-shrink":"icon-enlarge"),title:xt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Tt})))},I=N("M8RZ"),C=N("+L6B"),W=N("2/Rp"),Y=N("y8nQ"),H=N("Vl3Y"),F=N("5NDa"),q=N("5rEg"),le={labelCol:{span:4},wrapperCol:{span:20}},pe=function(Ie){var ut=Ie.callback,bt=Ie.onCancel;function Tt(xt){ut(xt)}return g.a.createElement(H.a,Object(A.a)({},le,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Tt}),g.a.createElement(H.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},g.a.createElement(q.a,null)),g.a.createElement(H.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},g.a.createElement(q.a,null)),g.a.createElement("div",{className:"flex-container flex-end"},g.a.createElement(W.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),g.a.createElement(W.a,{type:"ghost",onClick:bt},"\u53D6\u6D88")))},Ae=N("7ahc"),Ge=N("k1fw"),Fe=N("HmJG"),Ue=N("BjJ7"),_e=H.a.useForm,je={width:280,marginRight:10},xe={labelCol:{span:5},wrapperCol:{span:19}},he=function(Ie){var ut=Ie.callback,bt=Ie.onCancel,Tt=_e(),xt=Object(j.a)(Tt,1),gt=xt[0],qe=Object(c.useRef)();function Xe(fe){ut(Object(Ge.a)(Object(Ge.a)({},fe),{},{name:qe.current}))}function Pe(fe,$e){gt.setFieldsValue({src:"/api/attachments/".concat(fe.id,"?type=").concat(fe.content_type),type:$e.type})}function se(fe){var $e=fe.target.files[0];qe.current=$e.name,ye($e,Pe)}return g.a.createElement(H.a,Object(A.a)({form:gt},xe,{className:"upload-image-panel",onFinish:Xe}),g.a.createElement(H.a.Item,{label:"\u6587\u4EF6\u5730\u5740",required:!0},g.a.createElement("div",{className:"flex-container"},g.a.createElement(H.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},g.a.createElement(q.a,{style:je})),g.a.createElement(te,{onFileChange:se}))),g.a.createElement(H.a.Item,{label:"\u6587\u4EF6\u63CF\u8FF0",name:"alt"},g.a.createElement(q.a,{style:{width:264}})),g.a.createElement(H.a.Item,{style:{textAlign:"right"}},g.a.createElement(W.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),g.a.createElement(W.a,{type:"ghost",onClick:bt},"\u53D6\u6D88")))};function te(Ie){var ut=Ie.onFileChange;return g.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",g.a.createElement("input",{type:"file",onChange:ut}))}function ye(Ie,ut){if(!Ie)throw new String("\u6CA1\u6709\u6587\u4EF6");var bt=new FormData;bt.append("editormd-image-file",Ie),bt.append("file_param_name","editormd-image-file"),bt.append("byxhr","true");var Tt=new window.XMLHttpRequest;Tt.withCredentials=!0,Tt.addEventListener("load",function(xt){ut(JSON.parse(xt.target.responseText),Ie)},!1),Tt.addEventListener("error",function(xt){console.error(xt)},!1),Tt.open("POST","".concat(Ue.a,"/api/attachments.json")),Tt.send(bt)}var ue=N("giR+"),Le=N("fyUT"),ae=N("7Kak"),oe=N("9yH6"),Se=oe.a.Group,Me={margin:"0 8px"},We=function(Ie){var ut=Ie.callback,bt=Ie.onCancel;function Tt(xt){ut(xt)}return g.a.createElement(H.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Tt},g.a.createElement("div",{className:"flex-container"},g.a.createElement("span",{style:Me},"\u5355\u5143\u683C\u6570\uFF1A"),g.a.createElement("span",{style:Me},"\u884C\u6570"),g.a.createElement(H.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},g.a.createElement(Le.a,null)),g.a.createElement("span",{style:Me},"\u5217\u6570"),g.a.createElement(H.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},g.a.createElement(Le.a,null))),g.a.createElement("div",{className:"flex-container",style:{marginTop:12}},g.a.createElement("span",{style:Me},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),g.a.createElement(H.a.Item,{name:"align"},g.a.createElement(Se,null,g.a.createElement(oe.a,{value:"default"},g.a.createElement("i",{className:"fa fa-align-justify"})),g.a.createElement(oe.a,{value:"left"},g.a.createElement("i",{className:"fa fa-align-left"})),g.a.createElement(oe.a,{value:"center"},g.a.createElement("i",{className:"fa fa-align-center"})),g.a.createElement(oe.a,{value:"right"},g.a.createElement("i",{className:"fa fa-align-right"}))))),g.a.createElement("div",{className:"flex-container flex-end"},g.a.createElement(W.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),g.a.createElement(W.a,{type:"ghost",onClick:bt},"\u53D6\u6D88")))},Ke=N("ErOA"),Qe=N("7Cbv"),Ze="link",yt="upload-image",vt="code-block",dt="add-table",pt="------------",At={default:pt,left:":".concat(pt),center:":".concat(pt,":"),right:"".concat(pt,":")},wt=N("9VGf"),Oe,we;function Je(){}var st=0,He=1e4,nt="\u2581",Te=` +`),o=this._stacks.get(n)||0;if(this._stacks.set(n,o+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=a*.5;var u,x=0;this._stacks.forEach(function(E,v){(!u||x0?new U(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(y.prototype,"event",{get:function(){var f=this;return this._event||(this._event=function(m,a,n){f._listeners||(f._listeners=new z.a);var o=f._listeners.isEmpty();o&&f._options&&f._options.onFirstListenerAdd&&f._options.onFirstListenerAdd(f);var u=f._listeners.push(a?[m,a]:m);o&&f._options&&f._options.onFirstListenerDidAdd&&f._options.onFirstListenerDidAdd(f),f._options&&f._options.onListenerDidAdd&&f._options.onListenerDidAdd(f,m,a);var x;f._leakageMon&&(x=f._leakageMon.check(f._listeners.size));var E;return E={dispose:function(){if(x&&x(),E.dispose=y._noop,!f._disposed&&(u(),f._options&&f._options.onLastListenerRemove)){var v=f._listeners&&!f._listeners.isEmpty();v||f._options.onLastListenerRemove(f)}}},n instanceof k.b?n.add(E):Array.isArray(n)&&n.push(E),E}),this._event},enumerable:!0,configurable:!0}),y.prototype.fire=function(f){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new z.a);for(var m=this._listeners.iterator(),a=m.next();!a.done;a=m.next())this._deliveryQueue.push([a.value,f]);for(;this._deliveryQueue.size>0;){var n=this._deliveryQueue.shift(),o=n[0],u=n[1];try{typeof o=="function"?o.call(void 0,u):o[0].call(o[1],u)}catch(x){Object(ee.e)(x)}}}},y.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},y._noop=function(){},y}(),R=function(y){B(f,y);function f(m){var a=y.call(this,m)||this;return a._isPaused=0,a._eventQueue=new z.a,a._mergeFn=m&&m.merge,a}return f.prototype.pause=function(){this._isPaused++},f.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){var m=this._eventQueue.toArray();this._eventQueue.clear(),y.prototype.fire.call(this,this._mergeFn(m))}else for(;!this._isPaused&&this._eventQueue.size!==0;)y.prototype.fire.call(this,this._eventQueue.shift())},f.prototype.fire=function(m){this._listeners&&(this._isPaused!==0?this._eventQueue.push(m):y.prototype.fire.call(this,m))},f}(_),c=function(){function y(){var f=this;this.hasListeners=!1,this.events=[],this.emitter=new _({onFirstListenerAdd:function(){return f.onFirstListenerAdd()},onLastListenerRemove:function(){return f.onLastListenerRemove()}})}return Object.defineProperty(y.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),y.prototype.add=function(f){var m=this,a={event:f,listener:null};this.events.push(a),this.hasListeners&&this.hook(a);var n=function(){m.hasListeners&&m.unhook(a);var o=m.events.indexOf(a);m.events.splice(o,1)};return Object(k.h)(Object(K.a)(n))},y.prototype.onFirstListenerAdd=function(){var f=this;this.hasListeners=!0,this.events.forEach(function(m){return f.hook(m)})},y.prototype.onLastListenerRemove=function(){var f=this;this.hasListeners=!1,this.events.forEach(function(m){return f.unhook(m)})},y.prototype.hook=function(f){var m=this;f.listener=f.event(function(a){return m.emitter.fire(a)})},y.prototype.unhook=function(f){f.listener&&f.listener.dispose(),f.listener=null},y.prototype.dispose=function(){this.emitter.dispose()},y}(),g=function(){function y(){this.buffers=[]}return y.prototype.wrapEvent=function(f){var m=this;return function(a,n,o){return f(function(u){var x=m.buffers[m.buffers.length-1];x?x.push(function(){return a.call(n,u)}):a.call(n,u)},void 0,o)}},y.prototype.bufferEvents=function(f){var m=[];this.buffers.push(m);var a=f();return this.buffers.pop(),m.forEach(function(n){return n()}),a},y}(),w=function(){function y(){var f=this;this.listening=!1,this.inputEvent=M.None,this.inputEventListener=k.a.None,this.emitter=new _({onFirstListenerDidAdd:function(){f.listening=!0,f.inputEventListener=f.inputEvent(f.emitter.fire,f.emitter)},onLastListenerRemove:function(){f.listening=!1,f.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(y.prototype,"input",{set:function(f){this.inputEvent=f,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=f(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),y.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},y}()},N0LK:function(et,de,N){"use strict";N.d(de,"x",function(){return ee}),N.d(de,"F",function(){return K}),N.d(de,"r",function(){return z}),N.d(de,"o",function(){return B}),N.d(de,"p",function(){return M}),N.d(de,"Q",function(){return j}),N.d(de,"K",function(){return _}),N.d(de,"k",function(){return R}),N.d(de,"N",function(){return c}),N.d(de,"m",function(){return g}),N.d(de,"l",function(){return w}),N.d(de,"I",function(){return y}),N.d(de,"H",function(){return f}),N.d(de,"q",function(){return m}),N.d(de,"t",function(){return a}),N.d(de,"D",function(){return n}),N.d(de,"e",function(){return o}),N.d(de,"f",function(){return u}),N.d(de,"B",function(){return x}),N.d(de,"C",function(){return E}),N.d(de,"n",function(){return O}),N.d(de,"O",function(){return p}),N.d(de,"c",function(){return h}),N.d(de,"d",function(){return s}),N.d(de,"z",function(){return l}),N.d(de,"A",function(){return D}),N.d(de,"u",function(){return T}),N.d(de,"E",function(){return I}),N.d(de,"G",function(){return C}),N.d(de,"i",function(){return Y}),N.d(de,"g",function(){return F}),N.d(de,"v",function(){return le}),N.d(de,"h",function(){return pe}),N.d(de,"y",function(){return Ae}),N.d(de,"w",function(){return Ge}),N.d(de,"a",function(){return Fe}),N.d(de,"P",function(){return Ue}),N.d(de,"L",function(){return _e}),N.d(de,"J",function(){return je}),N.d(de,"j",function(){return xe}),N.d(de,"M",function(){return he}),N.d(de,"s",function(){return te}),N.d(de,"b",function(){return ye});function ee(ae){return!ae||typeof ae!="string"?!0:ae.trim().length===0}function K(ae,oe,Se){Se===void 0&&(Se="0");for(var Me=""+ae,We=[Me],Ke=Me.length;Ke=oe.length?Me:oe[Ke]})}function B(ae){return ae.replace(/[<>&]/g,function(oe){switch(oe){case"<":return"<";case">":return">";case"&":return"&";default:return oe}})}function M(ae){return ae.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function j(ae,oe){oe===void 0&&(oe=" ");var Se=U(ae,oe);return _(Se,oe)}function U(ae,oe){if(!ae||!oe)return ae;var Se=oe.length;if(Se===0||ae.length===0)return ae;for(var Me=0;ae.indexOf(oe,Me)===Me;)Me=Me+Se;return ae.substring(Me)}function _(ae,oe){if(!ae||!oe)return ae;var Se=oe.length,Me=ae.length;if(Se===0||Me===0)return ae;for(var We=Me,Ke=-1;!(Ke=ae.lastIndexOf(oe,We-1),Ke===-1||Ke+Se!==We);){if(Ke===0)return"";We=Ke}return ae.substring(0,We)}function R(ae){return ae.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function c(ae,oe){if(ae.length0?ae.indexOf(oe,Se)===Se:Se===0?ae===oe:!1}function w(ae,oe,Se){if(Se===void 0&&(Se={}),!ae)throw new Error("Cannot create regex from empty string");oe||(ae=M(ae)),Se.wholeWord&&(/\B/.test(ae.charAt(0))||(ae="\\b"+ae),/\B/.test(ae.charAt(ae.length-1))||(ae=ae+"\\b"));var Me="";return Se.global&&(Me+="g"),Se.matchCase||(Me+="i"),Se.multiline&&(Me+="m"),Se.unicode&&(Me+="u"),new RegExp(ae,Me)}function y(ae){if(ae.source==="^"||ae.source==="^$"||ae.source==="$"||ae.source==="^\\s*$")return!1;var oe=ae.exec("");return!!(oe&&ae.lastIndex===0)}function f(ae){return(ae.global?"g":"")+(ae.ignoreCase?"i":"")+(ae.multiline?"m":"")+(ae.unicode?"u":"")}function m(ae){for(var oe=0,Se=ae.length;oe=0;Se--){var Me=ae.charCodeAt(Se);if(Me!==32&&Me!==9)return Se}return-1}function o(ae,oe){return aeoe?1:0}function u(ae,oe){for(var Se=Math.min(ae.length,oe.length),Me=0;Meoe.length?1:0}function x(ae){return ae>=97&&ae<=122}function E(ae){return ae>=65&&ae<=90}function v(ae){return x(ae)||E(ae)}function O(ae,oe){return ae.length===oe.length&&A(ae,oe)}function A(ae,oe,Se){Se===void 0&&(Se=ae.length);for(var Me=0;Meae.length?!1:A(ae,oe,Se)}function h(ae,oe){var Se,Me=Math.min(ae.length,oe.length);for(Se=0;Se1){var Me=ae.charCodeAt(oe-2);if(l(Me))return(Me-55296<<10)+(Se-56320)+65536}return Se}function I(ae,oe){var Se=ue.getInstance(),Me=oe,We=ae.length,Ke=T(ae,We,oe);oe+=Ke>=65536?2:1;for(var Qe=Se.getGraphemeBreakType(Ke);oe=65536?2:1,Qe=yt}return oe-Me}function C(ae,oe){var Se=ue.getInstance(),Me=oe,We=S(ae,oe);oe-=We>=65536?2:1;for(var Ke=Se.getGraphemeBreakType(We);oe>0;){var Qe=S(ae,oe),Ze=Se.getGraphemeBreakType(Qe);if(ye(Ze,Ke))break;oe-=Qe>=65536?2:1,Ke=Ze}return Me-oe}var W=/(?:[\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 Y(ae){return W.test(ae)}var H=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function F(ae){return H.test(ae)}var q=/^[\t\n\r\x20-\x7E]*$/;function le(ae){return q.test(ae)}function pe(ae){for(var oe=0,Se=ae.length;oe=11904&&ae<=55215||ae>=63744&&ae<=64255||ae>=65281&&ae<=65374}function Ge(ae){return ae>=127462&&ae<=127487||ae>=9728&&ae<=10175||ae>=127744&&ae<=128591||ae>=128640&&ae<=128764||ae>=128992&&ae<=129003||ae>=129280&&ae<=129535||ae>=129648&&ae<=129651||ae>=129656&&ae<=129666||ae>=129680&&ae<=129685}var Fe=String.fromCharCode(65279);function Ue(ae){return!!(ae&&ae.length>0&&ae.charCodeAt(0)===65279)}function _e(ae){return btoa(encodeURIComponent(ae))}function je(ae,oe){for(var Se="",Me=0;MeSe[3*We+1])We=2*We+1;else return Se[3*We+2];return 0},ae._INSTANCE=null,ae}();function Le(){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]")}},Nmxd:function(et,de){et.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAF4ElEQVRoQ91aW2wUVRj+/rPbSivURIgKjZcHjUYTgZ0lthgv3V0LSqB9IAQeNNEIaKKwZbcFnuQJoZ1piyYawJjIiwZDwiVBaHd28QItaWeLD4KJPgimiA+YCAZj6Z7fzPZiu7e57WriJE0f5v++//tm/j3nn3MOoQyXcmJ/LdfeCBOjEUA9EdUzUA9g0ST9VQJGmXkU5n/CAN2q043Vm295TU9uCRS9MwCiFWBqAmD++R1yjQNIgTgF5tNGuCPtEJ8Nd2xgWarzPil9UbBsA1G1m6R5GOYxkOgRItM71NRxzQmnIwMBvStKoCiAB50kcRB7mcG96XB7r12MLQNPJXrvzdD4QQZW2yX2EkfACR/7N56PRH+14rE0sDSpLRaM4wA/YEVW3vt0RRLWjIRi35biLWkgmOhaz0SflleYMzZi3jAcaf+sGKqoAUVX3wbwnrN0FYveYoTj7xdiL2ggqKsvMnCyYnJcEBPw0nA4/kUuNM9AINX9MMnMIEDzXeSpIISvs/A1pJu2/TgzSZ4BRVf7ALxQQSVeqPuNcLy5qIHJcb7HS4ZKYxncNnOemH4DyqmehaiW58D8UKVFeOIn+gljYrmxsu2XWa2Eomt7AN7uidwd+CKBPy8EZdA7hSlprxGO7Zg2EPxSW8q35WDZehv7Ri4KEuuGQtu+y4UoSe0DML9ZkIp5jKpEw/BzsZFsCSkpNQYJ1X7eskQWF6+rbwD4sGQWgbjRFNcmD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MZJ8YgwJJbSuBK7zRTb3pUGwfCGznTdk3MMm2tG/vIvL7tpJE1G3vlCeMMcYCvTye2TfSvP2qHeFTMY4NTI9Sek8AJFewlCGi7IEPc/JycmWYOUVCJMHitNmYOQF7NjAzmTK8v5Z/N4/biEYI1BN46riNeeTGvEazx21Ao5DmcRs5QHfV6UbQ+3GbvwHH7EQQahyMxwAAAABJRU5ErkJggg=="},NvD2:function(et,de,N){"use strict";N.d(de,"a",function(){return M});var ee=N("Kwbf");function K(j,U){var _=new Set;return j.forEach(function(R){U.has(R)||_.add(R)}),_}function k(j){var U=j||{},_=U.disabled,R=U.disableCheckbox,c=U.checkable;return!!(_||R)||c===!1}function z(j,U,_,R){for(var c=new Set(j),g=new Set,w=0;w<=_;w+=1){var y=U.get(w)||new Set;y.forEach(function(n){var o=n.key,u=n.node,x=n.children,E=x===void 0?[]:x;c.has(o)&&!R(u)&&E.filter(function(v){return!R(v.node)}).forEach(function(v){c.add(v.key)})})}for(var f=new Set,m=_;m>=0;m-=1){var a=U.get(m)||new Set;a.forEach(function(n){var o=n.parent,u=n.node;if(R(u)||!n.parent||f.has(n.parent.key))return;if(R(n.parent.node)){f.add(o.key);return}var x=!0,E=!1;(o.children||[]).filter(function(v){return!R(v.node)}).forEach(function(v){var O=v.key,A=c.has(O);x&&!A&&(x=!1),!E&&(A||g.has(O))&&(E=!0)}),x&&c.add(o.key),E&&g.add(o.key),f.add(o.key)})}return{checkedKeys:Array.from(c),halfCheckedKeys:Array.from(K(g,c))}}function B(j,U,_,R,c){for(var g=new Set(j),w=new Set(U),y=0;y<=R;y+=1){var f=_.get(y)||new Set;f.forEach(function(o){var u=o.key,x=o.node,E=o.children,v=E===void 0?[]:E;!g.has(u)&&!w.has(u)&&!c(x)&&v.filter(function(O){return!c(O.node)}).forEach(function(O){g.delete(O.key)})})}w=new Set;for(var m=new Set,a=R;a>=0;a-=1){var n=_.get(a)||new Set;n.forEach(function(o){var u=o.parent,x=o.node;if(c(x)||!o.parent||m.has(o.parent.key))return;if(c(o.parent.node)){m.add(u.key);return}var E=!0,v=!1;(u.children||[]).filter(function(O){return!c(O.node)}).forEach(function(O){var A=O.key,p=g.has(A);E&&!p&&(E=!1),!v&&(p||w.has(A))&&(v=!0)}),E||g.delete(u.key),v&&w.add(u.key),m.add(u.key)})}return{checkedKeys:Array.from(g),halfCheckedKeys:Array.from(K(w,g))}}function M(j,U,_,R){var c=[],g;R?g=R:g=k;var w=new Set(j.filter(function(a){var n=!!_[a];return n||c.push(a),n})),y=new Map,f=0;Object.keys(_).forEach(function(a){var n=_[a],o=n.level,u=y.get(o);u||(u=new Set,y.set(o,u)),u.add(n),f=Math.max(f,o)}),Object(ee.a)(!c.length,"Tree missing follow keys: ".concat(c.slice(0,100).map(function(a){return"'".concat(a,"'")}).join(", ")));var m;return U===!0?m=z(w,y,f,g):m=B(w,U.halfCheckedKeys,y,f,g),m}},OLES:function(et,de,N){"use strict";var ee=N("U8pU"),K=N("VTBJ"),k=N("Ff2n"),z=N("q1tI"),B=N("uciX"),M=N("7ixt"),j=function(w){var y=w.overlay,f=w.prefixCls,m=w.id,a=w.overlayInnerStyle;return z.createElement("div",{className:"".concat(f,"-inner"),id:m,role:"tooltip",style:a},typeof y=="function"?y():y)},U=j,_=function(w,y){var f=w.overlayClassName,m=w.trigger,a=m===void 0?["hover"]:m,n=w.mouseEnterDelay,o=n===void 0?0:n,u=w.mouseLeaveDelay,x=u===void 0?.1:u,E=w.overlayStyle,v=w.prefixCls,O=v===void 0?"rc-tooltip":v,A=w.children,p=w.onVisibleChange,h=w.afterVisibleChange,s=w.transitionName,l=w.animation,D=w.placement,T=D===void 0?"right":D,S=w.align,I=S===void 0?{}:S,C=w.destroyTooltipOnHide,W=C===void 0?!1:C,Y=w.defaultVisible,H=w.getTooltipContainer,F=w.overlayInnerStyle,q=Object(k.a)(w,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),le=Object(z.useRef)(null);Object(z.useImperativeHandle)(y,function(){return le.current});var pe=Object(K.a)({},q);"visible"in w&&(pe.popupVisible=w.visible);var Ae=function(){var je=w.arrowContent,xe=je===void 0?null:je,he=w.overlay,te=w.id;return[z.createElement("div",{className:"".concat(O,"-arrow"),key:"arrow"},xe),z.createElement(U,{key:"content",prefixCls:O,id:te,overlay:he,overlayInnerStyle:F})]},Ge=!1,Fe=!1;if(typeof W=="boolean")Ge=W;else if(W&&Object(ee.a)(W)==="object"){var Ue=W.keepParent;Ge=Ue===!0,Fe=Ue===!1}return z.createElement(B.a,Object.assign({popupClassName:f,prefixCls:O,popup:Ae,action:a,builtinPlacements:M.a,popupPlacement:T,ref:le,popupAlign:I,getPopupContainer:H,onPopupVisibleChange:p,afterPopupVisibleChange:h,popupTransitionName:s,popupAnimation:l,defaultPopupVisible:Y,destroyPopupOnHide:Ge,autoDestroy:Fe,mouseLeaveDelay:x,popupStyle:E,mouseEnterDelay:o},pe),A)},R=Object(z.forwardRef)(_),c=de.a=R},OZM5:function(et,de,N){"use strict";N.d(de,"b",function(){return R}),N.d(de,"a",function(){return c}),N.d(de,"k",function(){return g}),N.d(de,"h",function(){return w}),N.d(de,"i",function(){return y}),N.d(de,"g",function(){return f}),N.d(de,"c",function(){return m}),N.d(de,"d",function(){return a}),N.d(de,"j",function(){return u}),N.d(de,"e",function(){return x}),N.d(de,"f",function(){return E});var ee=N("KQm4"),K=N("U8pU"),k=N("Ff2n"),z=N("q1tI"),B=N.n(z),M=N("Kwbf"),j=N("WaYH"),U=.25,_=2;function R(v,O){var A=v.slice(),p=A.indexOf(O);return p>=0&&A.splice(p,1),A}function c(v,O){var A=v.slice();return A.indexOf(O)===-1&&A.push(O),A}function g(v){return v.split("-")}function w(v,O){return"".concat(v,"-").concat(O)}function y(v){return v&&v.type&&v.type.isTreeNode}function f(v,O){var A=[v],p=O[v];function h(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];s.forEach(function(l){var D=l.key,T=l.children;A.push(D),h(T)})}return h(p.children),A}function m(v,O){var A=v.clientY,p=O.selectHandle.getBoundingClientRect(),h=p.top,s=p.bottom,l=p.height,D=Math.max(l*U,_);return A<=h+D?-1:A>=s-D?1:0}function a(v,O){if(!v)return;var A=O.multiple;return A?v.slice():v.length?[v[0]]:v}var n=function(O){return O};function o(v,O){if(!v)return[];var A=O||{},p=A.processProps,h=p===void 0?n:p,s=Array.isArray(v)?v:[v];return s.map(function(l){var D=l.children,T=Object(k.a)(l,["children"]),S=o(D,O);return B.a.createElement(j.a,Object.assign({},h(T)),S)})}function u(v){if(!v)return null;var O;if(Array.isArray(v))O={checkedKeys:v,halfCheckedKeys:void 0};else if(Object(K.a)(v)==="object")O={checkedKeys:v.checked||void 0,halfCheckedKeys:v.halfChecked||void 0};else return Object(M.a)(!1,"`checkedKeys` is not an array or an object"),null;return O}function x(v,O){var A=new Set;function p(h){if(A.has(h))return;var s=O[h];if(!s)return;A.add(h);var l=s.parent,D=s.node;if(D.disabled)return;l&&p(l.key)}return(v||[]).forEach(function(h){p(h)}),Object(ee.a)(A)}function E(v){var O={};return Object.keys(v).forEach(function(A){(A.startsWith("data-")||A.startsWith("aria-"))&&(O[A]=v[A])}),O}},Ohmc:function(et,de,N){et.exports=N.p+"static/certificate.fc32dc1b.jpg"},Ot1p:function(et,de,N){"use strict";var ee=N("2qtc"),K=N("kLXV"),k=N("rAM+"),z=N("miYZ"),B=N("tsqr"),M=N("9og8"),j=N("tJVT"),U=N("jrin"),_=N("WmNS"),R=N.n(_),c=N("q1tI"),g=N.n(c),w=N("VrN/"),y=N.n(w),f=N("bdgK"),m=N("p77/"),a=N("Bd2K"),n=N("ELLl"),o=N("19Vz"),u=N("lZu9"),x=N("+NIl"),E=N("kSUc"),v=N("9Bee"),O=function(Ie){var ut=Ie.value,bt=ut===void 0?"":ut,Tt=Ie.className,xt=Ie.showTextOnly,gt=Ie.showLines,qe=Ie.style,Xe=qe===void 0?{}:qe,ke=Object(c.useMemo)(function(){return""},[bt]);return g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{dangerouslySetInnerHTML:{__html:ke}}))},A=N("0Owb"),p=N("dejd"),h=N("C+DQ"),s=N("1vsH"),l=N("m3rI"),D=[{title:"\u7C97\u4F53",icon:"icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"icon-sum",actionName:"inline-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"icon-picture",actionName:"upload-image"},{title:"\u8868\u683C",icon:"icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"icon-eraser",actionName:"eraser"}];function T(Ie){var ut=Ie.onActionCallback,bt=Ie.title,Tt=Ie.icon,xt=Ie.actionName,gt=Ie.className,qe=gt===void 0?"":gt,Xe=Ie.children;function ke(){ut(xt)}return g.a.createElement("a",{title:bt,className:qe,onClick:ke},g.a.createElement("i",{className:"md-iconfont ".concat(Tt)}),Xe)}var S=function(Ie){var ut=Ie.watch,bt=Ie.showNullButton,Tt=Ie.onActionCallback,xt=Ie.fullScreen,gt=Ie.insertTemp,qe=Ie.hidetoolBar,Xe=Ie.uuid,ke=Ie.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(s.D)("_educoder_session_login"),"&_educoder_session=").concat(Object(s.D)("_educoder_session"),"&key=").concat(Xe,"&api=").concat(encodeURIComponent(l.a.PROXY_SERVER)));var se=[].concat(D,[{title:"".concat(ut?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(ut?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return g.a.createElement("ul",{className:"markdown-toolbar-container"},!qe&&se.map(function(fe,$e){return g.a.createElement("li",{key:$e},fe.actionName?g.a.createElement(T,Object(A.a)({},fe,{onActionCallback:Tt})):g.a.createElement("span",{className:"v-line"}))}),bt?g.a.createElement("li",null,g.a.createElement(T,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Tt},g.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,gt&&g.a.createElement("li",null,g.a.createElement(T,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(gt),onActionCallback:Tt},g.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),g.a.createElement("li",{className:"btn-full-screen"},g.a.createElement(T,{icon:"".concat(xt?"icon-shrink":"icon-enlarge"),title:xt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Tt})))},I=N("M8RZ"),C=N("+L6B"),W=N("2/Rp"),Y=N("y8nQ"),H=N("Vl3Y"),F=N("5NDa"),q=N("5rEg"),le={labelCol:{span:4},wrapperCol:{span:20}},pe=function(Ie){var ut=Ie.callback,bt=Ie.onCancel;function Tt(xt){ut(xt)}return g.a.createElement(H.a,Object(A.a)({},le,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Tt}),g.a.createElement(H.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},g.a.createElement(q.a,null)),g.a.createElement(H.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},g.a.createElement(q.a,null)),g.a.createElement("div",{className:"flex-container flex-end"},g.a.createElement(W.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),g.a.createElement(W.a,{type:"ghost",onClick:bt},"\u53D6\u6D88")))},Ae=N("7ahc"),Ge=N("k1fw"),Fe=N("HmJG"),Ue=N("BjJ7"),_e=H.a.useForm,je={width:280,marginRight:10},xe={labelCol:{span:5},wrapperCol:{span:19}},he=function(Ie){var ut=Ie.callback,bt=Ie.onCancel,Tt=_e(),xt=Object(j.a)(Tt,1),gt=xt[0],qe=Object(c.useRef)();function Xe(fe){ut(Object(Ge.a)(Object(Ge.a)({},fe),{},{name:qe.current}))}function ke(fe,$e){gt.setFieldsValue({src:"/api/attachments/".concat(fe.id,"?type=").concat(fe.content_type),type:$e.type})}function se(fe){var $e=fe.target.files[0];qe.current=$e.name,ye($e,ke)}return g.a.createElement(H.a,Object(A.a)({form:gt},xe,{className:"upload-image-panel",onFinish:Xe}),g.a.createElement(H.a.Item,{label:"\u6587\u4EF6\u5730\u5740",required:!0},g.a.createElement("div",{className:"flex-container"},g.a.createElement(H.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},g.a.createElement(q.a,{style:je})),g.a.createElement(te,{onFileChange:se}))),g.a.createElement(H.a.Item,{label:"\u6587\u4EF6\u63CF\u8FF0",name:"alt"},g.a.createElement(q.a,{style:{width:264}})),g.a.createElement(H.a.Item,{style:{textAlign:"right"}},g.a.createElement(W.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),g.a.createElement(W.a,{type:"ghost",onClick:bt},"\u53D6\u6D88")))};function te(Ie){var ut=Ie.onFileChange;return g.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",g.a.createElement("input",{type:"file",onChange:ut}))}function ye(Ie,ut){if(!Ie)throw new String("\u6CA1\u6709\u6587\u4EF6");var bt=new FormData;bt.append("editormd-image-file",Ie),bt.append("file_param_name","editormd-image-file"),bt.append("byxhr","true");var Tt=new window.XMLHttpRequest;Tt.withCredentials=!0,Tt.addEventListener("load",function(xt){ut(JSON.parse(xt.target.responseText),Ie)},!1),Tt.addEventListener("error",function(xt){console.error(xt)},!1),Tt.open("POST","".concat(Ue.a,"/api/attachments.json")),Tt.send(bt)}var ue=N("giR+"),Le=N("fyUT"),ae=N("7Kak"),oe=N("9yH6"),Se=oe.a.Group,Me={margin:"0 8px"},We=function(Ie){var ut=Ie.callback,bt=Ie.onCancel;function Tt(xt){ut(xt)}return g.a.createElement(H.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Tt},g.a.createElement("div",{className:"flex-container"},g.a.createElement("span",{style:Me},"\u5355\u5143\u683C\u6570\uFF1A"),g.a.createElement("span",{style:Me},"\u884C\u6570"),g.a.createElement(H.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},g.a.createElement(Le.a,null)),g.a.createElement("span",{style:Me},"\u5217\u6570"),g.a.createElement(H.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},g.a.createElement(Le.a,null))),g.a.createElement("div",{className:"flex-container",style:{marginTop:12}},g.a.createElement("span",{style:Me},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),g.a.createElement(H.a.Item,{name:"align"},g.a.createElement(Se,null,g.a.createElement(oe.a,{value:"default"},g.a.createElement("i",{className:"fa fa-align-justify"})),g.a.createElement(oe.a,{value:"left"},g.a.createElement("i",{className:"fa fa-align-left"})),g.a.createElement(oe.a,{value:"center"},g.a.createElement("i",{className:"fa fa-align-center"})),g.a.createElement(oe.a,{value:"right"},g.a.createElement("i",{className:"fa fa-align-right"}))))),g.a.createElement("div",{className:"flex-container flex-end"},g.a.createElement(W.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),g.a.createElement(W.a,{type:"ghost",onClick:bt},"\u53D6\u6D88")))},Ke=N("ErOA"),Qe=N("7Cbv"),Ze="link",yt="upload-image",vt="code-block",dt="add-table",pt="------------",At={default:pt,left:":".concat(pt),center:":".concat(pt,":"),right:"".concat(pt,":")},wt=N("9VGf"),Oe,we;function Je(){}var st=0,He=1e4,nt="\u2581",Te=` **\u6A21\u677F\u6807\u9898** -\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`;function ge(Ie){return/^\d+$/.test(Ie)?"".concat(Ie,"px"):Ie}var be=navigator.platform.toUpperCase().indexOf("MAC")>=0,re=be?"Cmd":"Ctrl",ie=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"],ce=(Oe={},Object(U.a)(Oe,re+"-B","bold"),Object(U.a)(Oe,re+"-I","italic"),Oe),Ee=(we={},Object(U.a)(we,Ze,"\u6DFB\u52A0\u94FE\u63A5"),Object(U.a)(we,vt,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(U.a)(we,yt,"\u6DFB\u52A0\u6587\u4EF6"),Object(U.a)(we,dt,"\u6DFB\u52A0\u8868\u683C"),we),Be=de.a=function(Ie){var ut=Ie.defaultValue,bt=ut===void 0?"":ut,Tt=Ie.onChange,xt=Ie.width,gt=xt===void 0?"100%":xt,qe=Ie.height,Xe=qe===void 0?400:qe,Pe=Ie.miniToolbar,se=Pe===void 0?!1:Pe,fe=Ie.isFocus,$e=fe===void 0?!1:fe,ke=Ie.watch,it=Ie.insertTemp,at=Ie.mode,Ne=at===void 0?"markdown":at,Ve=Ie.id,tt=Ve===void 0?"markdown-editor-id":Ve,ft=Ie.showResizeBar,Ct=ft===void 0?!1:ft,zt=Ie.noStorage,qt=zt===void 0?!1:zt,Qt=Ie.showNullButton,St=Qt===void 0?!1:Qt,ln=Ie.hidetoolBar,Bt=ln===void 0?!1:ln,Yt=Ie.fullScreen,Mt=Yt===void 0?!1:Yt,tn=Ie.onBlur,mn=Ie.onCMBeforeChange,An=Ie.onFullScreen,lt=Ie.className,Rt=lt===void 0?"":lt,Jt=Ie.disablePaste,nn=Jt===void 0?!1:Jt,un=Ie.placeholder,cn=un===void 0?"":un,G=Ie.values,b=G===void 0?"":G,L=Object(c.useState)(null),V=Object(j.a)(L,2),J=V[0],Q=V[1],De=Object(c.useState)(bt),ot=Object(j.a)(De,2),Ot=ot[0],Ft=ot[1],ve=Object(c.useState)(ke),Gt=Object(j.a)(ve,2),en=Gt[0],Tn=Gt[1],Wn=Object(c.useState)(Mt),tr=Object(j.a)(Wn,2),Rn=tr[0],or=tr[1],fr=Object(c.useState)(""),Vn=Object(j.a)(fr,2),sr=Vn[0],Jn=Vn[1],Mr=Object(c.useState)(0),Xn=Object(j.a)(Mr,2),Ir=Xn[0],yr=Xn[1],Tr=Object(c.useState)(Xe),Yr=Object(j.a)(Tr,2),br=Yr[0],nr=Yr[1],Ur=Object(c.useState)(!1),_r=Object(j.a)(Ur,2),Fr=_r[0],Sn=_r[1],hn=Object(c.useRef)(Object(Qe.a)()),kn=Object(c.useRef)(!1),yn=Object(c.useRef)(),Ln=Object(c.useRef)(),bn=Object(c.useRef)(),wr=Object(c.useRef)(),Bn=Object(c.useRef)(),Qn=function(){var Xt=Object(M.a)(R.a.mark(function on(){var $t,dn;return R.a.wrap(function(wn){for(;;)switch(wn.prev=wn.next){case 0:return wn.next=2,Object(Ke.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:hn.current}});case 2:dn=wn.sent,dn!=null&&($t=dn.attachments)!==null&&$t!==void 0&&$t.length&&(console.log("cm:",J,Ln),dn.attachments.map(function(gn){gn.content_type.indexOf("image")>-1?J.replaceSelection("![,](/api/attachments/".concat(gn.id,"?type=").concat(gn.content_type,")")):gn.content_type.indexOf("video")>-1?J.replaceSelection('')):gn.content_type.indexOf("pdf")>-1?J.replaceSelection('
    ').concat(gn.name,"")):J.replaceSelection("[".concat(gn.name,"](").concat(l.a.API_SERVER,"/api/attachments/").concat(gn.id,"?type=").concat(gn.content_type,")"))}));case 4:case"end":return wn.stop()}},on)}));return function(){return Xt.apply(this,arguments)}}();Object(c.useEffect)(function(){Ft(b),J==null||J.setValue(b)},[b]),Object(c.useEffect)(function(){An==null||An(Rn)},[Rn]),Object(c.useEffect)(function(){if(Ln.current){var Xt=y.a.fromTextArea(Ln.current,{mode:Ne,lineNumbers:!se,lineWrapping:!0,value:bt,autoCloseTags:!0,autoCloseBrackets:!0});$e&&Xt.focus();function on($t,dn){if(nn){dn.preventDefault();return}var En=dn.clipboardData;if(En){var wn=En.types.toString(),gn=En.items;if(wn==="Files"||En.types.indexOf("Files")>-1){if(dn.preventDefault(),Ne=="stex")return;try{var xn,Hn=gn[1];((xn=gn[0])===null||xn===void 0?void 0:xn.kind)==="file"&&(Hn=gn[0]);var fn=Hn.getAsFile(),Pr=fn.name.split(".").pop();ye(fn,function(Ht){if(Ht.id){var _n,pr,lr;(fn==null||((_n=fn.type)===null||_n===void 0)?void 0:_n.indexOf("image"))>-1?Xt.replaceSelection("![,](/api/attachments/".concat(Ht.id,"?type=").concat(Ht.content_type,")")):(fn==null||((pr=fn.type)===null||pr===void 0)?void 0:pr.indexOf("video"))>-1?Xt.replaceSelection('')):(fn==null||((lr=fn.type)===null||lr===void 0)?void 0:lr.indexOf("pdf"))>-1?Xt.replaceSelection('').concat(fn.name,"")):ie.includes(Pr)?Xt.replaceSelection('').concat(fn.name,"")):Xt.replaceSelection("[".concat(fn.name,"](").concat(l.a.API_SERVER,"/api/attachments/").concat(Ht.id,"?type=").concat(Ht.content_type,")"))}else(Ht==null?void 0:Ht.status)===401&&(document.location.href="/user/login")})}catch(Ht){B.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return Xt.on("paste",on),Xt.on("dragleave",function($t,dn){bn.current.classList.remove("mouse-hover-md")}),Xt.on("dragover",function($t,dn){bn.current.classList.add("mouse-hover-md")}),Xt.on("drop",function($t,dn){bn.current.classList.add("mouse-hover-md");var En;if(En=dn.dataTransfer.files,En.length>0){dn.preventDefault(),dn.stopPropagation();for(var wn=function(Hn){var fn=En[Hn],Pr=fn.name.split(".").pop();ye(fn,function(Ht){if(Ht.id){var _n,pr,lr;(fn==null||((_n=fn.type)===null||_n===void 0)?void 0:_n.indexOf("image"))>-1?Xt.replaceSelection("![,](/api/attachments/".concat(Ht.id,"?type=").concat(Ht.content_type,")")):(fn==null||((pr=fn.type)===null||pr===void 0)?void 0:pr.indexOf("video"))>-1?Xt.replaceSelection('')):(fn==null||((lr=fn.type)===null||lr===void 0)?void 0:lr.indexOf("pdf"))>-1?Xt.replaceSelection('').concat(fn.name,"")):ie.includes(Pr)?Xt.replaceSelection('').concat(fn.name,"")):Xt.replaceSelection("[".concat(fn.name,"](").concat(l.a.API_SERVER,"/api/attachments/").concat(Ht.id,"?type=").concat(Ht.content_type,")"))}else(Ht==null?void 0:Ht.status)===401&&(document.location.href="/user/login")})},gn=0;gn0||gn.target.offsetWidth>0)&&(zr(),J.setSize("100%","100%"),J.refresh())}}catch(xn){En.e(xn)}finally{En.f()}});return $t.observe(Ln.current.parentElement),$t}if(J){var on=Xt();return function(){on.unobserve(Ln.current.parentElement)}}},[J,zr]),Object(c.useEffect)(function(){if(J){for(var Xt=[],on=function(){var gn=dn[$t];En=Object(j.a)(gn,2);var xn=En[0],Hn=En[1],fn=Object(U.a)({},xn,function(){jr(Hn)});Xt.push(fn),J.addKeyMap(fn)},$t=0,dn=Object.entries(ce);$t0){var Xt=new Date().getTime(),on=window.sessionStorage.getItem(tt);Xt>=Ir+He&&(!on||on!==Ot)&&(window.sessionStorage.setItem(tt,Ot),Sn(!0))}},He),Object(c.useEffect)(function(){Tn(ke)},[J,ke]),Object(c.useEffect)(function(){J&&($e&&J.focus())},[J,$e]),Object(c.useEffect)(function(){if(en&&J){var Xt=J.getScrollerElement();function on($t){var dn=$t.target;if(Bn.current){var En=dn.scrollTop/dn.scrollHeight;Bn.current.scrollTop=Bn.current.scrollHeight*En}}return Xt.addEventListener("scroll",on),function(){Xt.removeEventListener("scroll",on)}}},[J,en]),Object(c.useEffect)(function(){if(J&&mn){function Xt(on,$t){mn(on,$t)}return J.on("beforeChange",Xt),function(){J.off("beforeChange",Xt)}}},[J,mn]),Object(c.useEffect)(function(){if(J&&tn){function Xt(){tn(J.getValue())}return J.on("blur",Xt),function(){J.off("blur",Xt)}}},[J,tn]),Object(c.useEffect)(function(){if(J){function Xt(on){var $t=on.getValue();Ft($t),yr(new Date().getTime()),on.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Tt&&Tt($t)}return J.on("change",Xt),function(){J.off("change",Xt)}}},[J,Tt]),Object(c.useEffect)(function(){J&&(bt==null?(J.setValue(""),Ft("")):bt!==J.getValue()&&(J.setValue(bt),Ft(bt),J.setCursor(J.lineCount(),0)))},[J,bt]);var jr=Object(c.useCallback)(function(Xt){var on=J.getCursor(),$t=J.getSelection(),dn=$t.split(` +\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`;function ge(Ie){return/^\d+$/.test(Ie)?"".concat(Ie,"px"):Ie}var be=navigator.platform.toUpperCase().indexOf("MAC")>=0,re=be?"Cmd":"Ctrl",ie=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"],ce=(Oe={},Object(U.a)(Oe,re+"-B","bold"),Object(U.a)(Oe,re+"-I","italic"),Oe),Ee=(we={},Object(U.a)(we,Ze,"\u6DFB\u52A0\u94FE\u63A5"),Object(U.a)(we,vt,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(U.a)(we,yt,"\u6DFB\u52A0\u6587\u4EF6"),Object(U.a)(we,dt,"\u6DFB\u52A0\u8868\u683C"),we),Be=de.a=function(Ie){var ut=Ie.defaultValue,bt=ut===void 0?"":ut,Tt=Ie.onChange,xt=Ie.width,gt=xt===void 0?"100%":xt,qe=Ie.height,Xe=qe===void 0?400:qe,ke=Ie.miniToolbar,se=ke===void 0?!1:ke,fe=Ie.isFocus,$e=fe===void 0?!1:fe,Pe=Ie.watch,it=Ie.insertTemp,at=Ie.mode,Ne=at===void 0?"markdown":at,Ve=Ie.id,tt=Ve===void 0?"markdown-editor-id":Ve,ft=Ie.showResizeBar,Ct=ft===void 0?!1:ft,zt=Ie.noStorage,qt=zt===void 0?!1:zt,Qt=Ie.showNullButton,St=Qt===void 0?!1:Qt,ln=Ie.hidetoolBar,Bt=ln===void 0?!1:ln,Yt=Ie.fullScreen,Mt=Yt===void 0?!1:Yt,tn=Ie.onBlur,mn=Ie.onCMBeforeChange,An=Ie.onFullScreen,lt=Ie.className,Rt=lt===void 0?"":lt,Jt=Ie.disablePaste,nn=Jt===void 0?!1:Jt,un=Ie.placeholder,cn=un===void 0?"":un,G=Ie.values,b=G===void 0?"":G,L=Object(c.useState)(null),V=Object(j.a)(L,2),J=V[0],Q=V[1],De=Object(c.useState)(bt),ot=Object(j.a)(De,2),Ot=ot[0],Ft=ot[1],ve=Object(c.useState)(Pe),Gt=Object(j.a)(ve,2),en=Gt[0],Tn=Gt[1],Wn=Object(c.useState)(Mt),tr=Object(j.a)(Wn,2),Rn=tr[0],or=tr[1],fr=Object(c.useState)(""),Vn=Object(j.a)(fr,2),sr=Vn[0],Jn=Vn[1],Mr=Object(c.useState)(0),Xn=Object(j.a)(Mr,2),Ir=Xn[0],yr=Xn[1],Tr=Object(c.useState)(Xe),Yr=Object(j.a)(Tr,2),br=Yr[0],nr=Yr[1],Ur=Object(c.useState)(!1),_r=Object(j.a)(Ur,2),Fr=_r[0],Sn=_r[1],hn=Object(c.useRef)(Object(Qe.a)()),Pn=Object(c.useRef)(!1),yn=Object(c.useRef)(),Ln=Object(c.useRef)(),bn=Object(c.useRef)(),wr=Object(c.useRef)(),Bn=Object(c.useRef)(),Qn=function(){var Xt=Object(M.a)(R.a.mark(function on(){var $t,dn;return R.a.wrap(function(wn){for(;;)switch(wn.prev=wn.next){case 0:return wn.next=2,Object(Ke.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:hn.current}});case 2:dn=wn.sent,dn!=null&&($t=dn.attachments)!==null&&$t!==void 0&&$t.length&&(console.log("cm:",J,Ln),dn.attachments.map(function(gn){gn.content_type.indexOf("image")>-1?J.replaceSelection("![,](/api/attachments/".concat(gn.id,"?type=").concat(gn.content_type,")")):gn.content_type.indexOf("video")>-1?J.replaceSelection('')):gn.content_type.indexOf("pdf")>-1?J.replaceSelection('').concat(gn.name,"")):J.replaceSelection("[".concat(gn.name,"](").concat(l.a.API_SERVER,"/api/attachments/").concat(gn.id,"?type=").concat(gn.content_type,")"))}));case 4:case"end":return wn.stop()}},on)}));return function(){return Xt.apply(this,arguments)}}();Object(c.useEffect)(function(){Ft(b),J==null||J.setValue(b)},[b]),Object(c.useEffect)(function(){An==null||An(Rn)},[Rn]),Object(c.useEffect)(function(){if(Ln.current){var Xt=y.a.fromTextArea(Ln.current,{mode:Ne,lineNumbers:!se,lineWrapping:!0,value:bt,autoCloseTags:!0,autoCloseBrackets:!0});$e&&Xt.focus();function on($t,dn){if(nn){dn.preventDefault();return}var En=dn.clipboardData;if(En){var wn=En.types.toString(),gn=En.items;if(wn==="Files"||En.types.indexOf("Files")>-1){if(dn.preventDefault(),Ne=="stex")return;try{var xn,Hn=gn[1];((xn=gn[0])===null||xn===void 0?void 0:xn.kind)==="file"&&(Hn=gn[0]);var fn=Hn.getAsFile(),kr=fn.name.split(".").pop();ye(fn,function(Ht){if(Ht.id){var _n,pr,lr;(fn==null||((_n=fn.type)===null||_n===void 0)?void 0:_n.indexOf("image"))>-1?Xt.replaceSelection("![,](/api/attachments/".concat(Ht.id,"?type=").concat(Ht.content_type,")")):(fn==null||((pr=fn.type)===null||pr===void 0)?void 0:pr.indexOf("video"))>-1?Xt.replaceSelection('')):(fn==null||((lr=fn.type)===null||lr===void 0)?void 0:lr.indexOf("pdf"))>-1?Xt.replaceSelection('').concat(fn.name,"")):ie.includes(kr)?Xt.replaceSelection('').concat(fn.name,"")):Xt.replaceSelection("[".concat(fn.name,"](").concat(l.a.API_SERVER,"/api/attachments/").concat(Ht.id,"?type=").concat(Ht.content_type,")"))}else(Ht==null?void 0:Ht.status)===401&&(document.location.href="/user/login")})}catch(Ht){B.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return Xt.on("paste",on),Xt.on("dragleave",function($t,dn){bn.current.classList.remove("mouse-hover-md")}),Xt.on("dragover",function($t,dn){bn.current.classList.add("mouse-hover-md")}),Xt.on("drop",function($t,dn){bn.current.classList.add("mouse-hover-md");var En;if(En=dn.dataTransfer.files,En.length>0){dn.preventDefault(),dn.stopPropagation();for(var wn=function(Hn){var fn=En[Hn],kr=fn.name.split(".").pop();ye(fn,function(Ht){if(Ht.id){var _n,pr,lr;(fn==null||((_n=fn.type)===null||_n===void 0)?void 0:_n.indexOf("image"))>-1?Xt.replaceSelection("![,](/api/attachments/".concat(Ht.id,"?type=").concat(Ht.content_type,")")):(fn==null||((pr=fn.type)===null||pr===void 0)?void 0:pr.indexOf("video"))>-1?Xt.replaceSelection('')):(fn==null||((lr=fn.type)===null||lr===void 0)?void 0:lr.indexOf("pdf"))>-1?Xt.replaceSelection('').concat(fn.name,"")):ie.includes(kr)?Xt.replaceSelection('').concat(fn.name,"")):Xt.replaceSelection("[".concat(fn.name,"](").concat(l.a.API_SERVER,"/api/attachments/").concat(Ht.id,"?type=").concat(Ht.content_type,")"))}else(Ht==null?void 0:Ht.status)===401&&(document.location.href="/user/login")})},gn=0;gn0||gn.target.offsetWidth>0)&&(zr(),J.setSize("100%","100%"),J.refresh())}}catch(xn){En.e(xn)}finally{En.f()}});return $t.observe(Ln.current.parentElement),$t}if(J){var on=Xt();return function(){on.unobserve(Ln.current.parentElement)}}},[J,zr]),Object(c.useEffect)(function(){if(J){for(var Xt=[],on=function(){var gn=dn[$t];En=Object(j.a)(gn,2);var xn=En[0],Hn=En[1],fn=Object(U.a)({},xn,function(){jr(Hn)});Xt.push(fn),J.addKeyMap(fn)},$t=0,dn=Object.entries(ce);$t0){var Xt=new Date().getTime(),on=window.sessionStorage.getItem(tt);Xt>=Ir+He&&(!on||on!==Ot)&&(window.sessionStorage.setItem(tt,Ot),Sn(!0))}},He),Object(c.useEffect)(function(){Tn(Pe)},[J,Pe]),Object(c.useEffect)(function(){J&&($e&&J.focus())},[J,$e]),Object(c.useEffect)(function(){if(en&&J){var Xt=J.getScrollerElement();function on($t){var dn=$t.target;if(Bn.current){var En=dn.scrollTop/dn.scrollHeight;Bn.current.scrollTop=Bn.current.scrollHeight*En}}return Xt.addEventListener("scroll",on),function(){Xt.removeEventListener("scroll",on)}}},[J,en]),Object(c.useEffect)(function(){if(J&&mn){function Xt(on,$t){mn(on,$t)}return J.on("beforeChange",Xt),function(){J.off("beforeChange",Xt)}}},[J,mn]),Object(c.useEffect)(function(){if(J&&tn){function Xt(){tn(J.getValue())}return J.on("blur",Xt),function(){J.off("blur",Xt)}}},[J,tn]),Object(c.useEffect)(function(){if(J){function Xt(on){var $t=on.getValue();Ft($t),yr(new Date().getTime()),on.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Tt&&Tt($t)}return J.on("change",Xt),function(){J.off("change",Xt)}}},[J,Tt]),Object(c.useEffect)(function(){J&&(bt==null?(J.setValue(""),Ft("")):bt!==J.getValue()&&(J.setValue(bt),Ft(bt),J.setCursor(J.lineCount(),0)))},[J,bt]);var jr=Object(c.useCallback)(function(Xt){var on=J.getCursor(),$t=J.getSelection(),dn=$t.split(` `);switch(Xt){case"bold":return J.replaceSelection("**"+$t+"**"),$t===""&&J.setCursor(on.line,on.ch+2),J.focus();case"italic":return J.replaceSelection("*"+$t+"*"),$t===""&&J.setCursor(on.line,on.ch+1),J.focus();case"code":return J.replaceSelection("`"+$t+"`"),$t===""&&J.setCursor(on.line,on.ch+1),J.focus();case"inline-latex":return J.replaceSelection("`$$"+$t+"$$`"),$t===""&&J.setCursor(on.line,on.ch+3),J.focus();case"latex":return J.replaceSelection("```latex\n"+$t+"\n```"),J.setCursor(on.line+1,$t.length+1),J.focus();case"line-break":return J.replaceSelection(`
    `),J.focus();case"list-ul":return $t===""?J.replaceSelection("- "+$t):J.replaceSelection(dn.map(function(En){return En===""?"":"- ".concat(En)}).join(` `)),J.focus();case"list-ol":return $t===""?J.replaceSelection("1. "+$t):J.replaceSelection(dn.map(function(En,wn){return En===""?"":"".concat(wn+1,". ").concat(En)}).join(` `)),J.focus();case"add-null-ch":return $t===""&&J.setCursor(on.line,on.ch+1),J.replaceSelection(nt),J.focus();case"inster-template-1":return $t===""&&J.setCursor(on.line,on.ch),J.replaceSelection(Te),J.focus();case"eraser":return J.setValue(""),J.focus();case"trigger-watch":return Tn(!en),J.focus();case"trigger-full-screen":return or(!Rn),J.focus();case Ze:Jn(Ze);return;case vt:Jn(vt);return;case yt:Jn(yt);return;case dt:Jn(dt);return;default:throw new Error}},[J,en,Rn]),Dr=Object(c.useCallback)(function(Xt){Jn("");switch(sr){case Ze:var on=Xt.title,$t=Xt.link;return J.replaceSelection("[".concat(on,"](").concat($t,")")),J.focus();case vt:var dn=Xt.language,En=Xt.content;return J.replaceSelection(["```"+dn,En,"```"].join(` -`)),J.focus();case yt:var wn=Xt.src,gn=Xt.alt,xn=Xt.name;return wn.indexOf("type=image")>-1?J.replaceSelection("![ ".concat(gn||""," ]( ").concat(wn,' "').concat(gn||"",'" )')):wn.indexOf("type=application/pdf")>-1?J.replaceSelection('').concat(xn,"")):J.replaceSelection('').concat(xn,"")),J.focus();case dt:for(var Hn=Xt.row,fn=Xt.col,Pr=Xt.align,Ht=` -`,_n=0;_n-1?J.replaceSelection("![ ".concat(gn||""," ]( ").concat(wn,' "').concat(gn||"",'" )')):wn.indexOf("type=application/pdf")>-1?J.replaceSelection('').concat(xn,"")):J.replaceSelection('').concat(xn,"")),J.focus();case dt:for(var Hn=Xt.row,fn=Xt.col,kr=Xt.align,Ht=` +`,_n=0;_n300&&(xn=300);var Hn=Xe+xn+"px";nr(Hn)}}return Xt.addEventListener("mousedown",dn),document.addEventListener("mousemove",wn),document.addEventListener("mouseup",En),function(){Xt.removeEventListener("mousedown",dn),document.removeEventListener("mousemove",wn),document.removeEventListener("mouseup",En)}}},[J,wr]),Object(c.useEffect)(function(){nr(Xe)},[Xe]);var Wr=ge(gt),Er=ge(br),Hr={width:Wr,height:Er},Zr=Object(c.useMemo)(function(){if(Ir){var Xt=new Date(Ir),on=Xt.getHours(),$t=Xt.getMinutes(),dn=Xt.getSeconds();return on=on<10?"0"+on:on,$t=$t<10?"0"+$t:$t,dn=dn<10?"0"+dn:dn,"".concat(on,":").concat($t,":").concat(dn)}return 0},[Ir]);function ir(){window.sessionStorage.removeItem(tt),Sn(!1),yr(0)}function ri(){Sn(!1),yr(0),J.setValue(window.sessionStorage.getItem(tt))}function ii(Xt,on){var $t=J.getValue();$t=$t.replace(Xt,on),Ft($t),J==null||J.setValue($t)}return g.a.createElement(c.Fragment,null,g.a.createElement("div",{className:"markdown-editor-wrapper",ref:bn},g.a.createElement("div",{className:"markdown-editor-container ".concat(Rt," ").concat(en?"on-preview":""," ").concat(se?"mini":""," ").concat(Rn?"full-screen":""),style:Hr},g.a.createElement(S,{insertTemp:it,watch:en,fullScreen:Rn,showNullButton:St,onActionCallback:jr,hidetoolBar:Bt,uuid:hn.current,setOpenPhones:function(){kn.current=!0}}),g.a.createElement("div",{className:"markdown-editor-body"},g.a.createElement("div",{className:"codemirror-container"},g.a.createElement("textarea",{ref:Ln,placeholder:cn})),en?g.a.createElement("div",{ref:Bn,className:"preview-container"},Ne==="stex"&&g.a.createElement(O,{value:Ot}),Ne!=="stex"&&g.a.createElement(v.a,{edit:!0,value:Ot,replaces:ii})):null))),Ct?g.a.createElement("a",{ref:wr,className:"editor-resize"}):null,g.a.createElement(I.a,null,Ee[sr]?g.a.createElement(K.a,{centered:!0,title:Ee[sr],visible:!0,onCancel:rr,footer:null},Jr):null))}},QDVR:function(et,de,N){"use strict";N.d(de,"e",function(){return K}),N.d(de,"d",function(){return P}),N.d(de,"c",function(){return j}),N.d(de,"b",function(){return U}),N.d(de,"a",function(){return R});var ee=function(){var c=function(g,w){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,f){y.__proto__=f}||function(y,f){for(var m in f)f.hasOwnProperty(m)&&(y[m]=f[m])},c(g,w)};return function(g,w){c(g,w);function y(){this.constructor=g}g.prototype=w===null?Object.create(w):(y.prototype=w.prototype,new y)}}();function K(c){var g=[];return c.forEach(function(w){return g.push(w)}),g}function P(c){var g=[];return c.forEach(function(w,y){return g.push(y)}),g}var z=function(){function c(){this._value="",this._pos=0}return c.prototype.reset=function(g){return this._value=g,this._pos=0,this},c.prototype.next=function(){return this._pos+=1,this},c.prototype.hasNext=function(){return this._pos0)f.left||(f.left=new M,f.left.segment=y.value()),f=f.left;else if(m<0)f.right||(f.right=new M,f.right.segment=y.value()),f=f.right;else if(y.hasNext())y.next(),f.mid||(f.mid=new M,f.mid.segment=y.value()),f=f.mid;else break}var a=f.value;return f.value=w,f.key=g,a},c.prototype.get=function(g){for(var w=this._iter.reset(g),y=this._root;y;){var f=w.cmp(y.segment);if(f>0)y=y.left;else if(f<0)y=y.right;else if(w.hasNext())w.next(),y=y.mid;else break}return y?y.value:void 0},c.prototype.findSubstr=function(g){for(var w=this._iter.reset(g),y=this._root,f=void 0;y;){var m=w.cmp(y.segment);if(m>0)y=y.left;else if(m<0)y=y.right;else if(w.hasNext())w.next(),f=y.value||f,y=y.mid;else break}return y&&y.value||f},c.prototype.forEach=function(g){this._forEach(this._root,g)},c.prototype._forEach=function(g,w){g&&(this._forEach(g.left,w),g.value&&w(g.value,g.key),this._forEach(g.mid,w),this._forEach(g.right,w))},c}(),U=function(){function c(){this.map=new Map,this.ignoreCase=!1}return c.prototype.set=function(g,w){this.map.set(this.toKey(g),w)},c.prototype.get=function(g){return this.map.get(this.toKey(g))},c.prototype.toKey=function(g){var w=g.toString();return this.ignoreCase&&(w=w.toLowerCase()),w},c}(),_=function(){function c(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return c.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(c.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),c.prototype.get=function(g,w){w===void 0&&(w=0);var y=this._map.get(g);return y?(w!==0&&this.touch(y,w),y.value):void 0},c.prototype.set=function(g,w,y){y===void 0&&(y=0);var f=this._map.get(g);if(f)f.value=w,y!==0&&this.touch(f,y);else{f={key:g,value:w,next:void 0,previous:void 0};switch(y){case 0:this.addItemLast(f);break;case 1:this.addItemFirst(f);break;case 2:this.addItemLast(f);break;default:this.addItemLast(f);break}this._map.set(g,f),this._size++}},c.prototype.delete=function(g){return!!this.remove(g)},c.prototype.remove=function(g){var w=this._map.get(g);return w?(this._map.delete(g),this.removeItem(w),this._size--,w.value):void 0},c.prototype.forEach=function(g,w){for(var y=this._head;y;)w?g.bind(w)(y.value,y.key,this):g(y.value,y.key,this),y=y.next},c.prototype.trimOld=function(g){if(g>=this.size)return;if(g===0){this.clear();return}for(var w=this._head,y=this.size;w&&y>g;)this._map.delete(w.key),w=w.next,y--;this._head=w,this._size=y,w&&(w.previous=void 0)},c.prototype.addItemFirst=function(g){if(!this._head&&!this._tail)this._tail=g;else if(this._head)g.next=this._head,this._head.previous=g;else throw new Error("Invalid list");this._head=g},c.prototype.addItemLast=function(g){if(!this._head&&!this._tail)this._head=g;else if(this._tail)g.previous=this._tail,this._tail.next=g;else throw new Error("Invalid list");this._tail=g},c.prototype.removeItem=function(g){if(g===this._head&&g===this._tail)this._head=void 0,this._tail=void 0;else if(g===this._head){if(!g.next)throw new Error("Invalid list");g.next.previous=void 0,this._head=g.next}else if(g===this._tail){if(!g.previous)throw new Error("Invalid list");g.previous.next=void 0,this._tail=g.previous}else{var w=g.next,y=g.previous;if(!w||!y)throw new Error("Invalid list");w.previous=y,y.next=w}g.next=void 0,g.previous=void 0},c.prototype.touch=function(g,w){if(!this._head||!this._tail)throw new Error("Invalid list");if(w!==1&&w!==2)return;if(w===1){if(g===this._head)return;var y=g.next,f=g.previous;g===this._tail?(f.next=void 0,this._tail=f):(y.previous=f,f.next=y),g.previous=void 0,g.next=this._head,this._head.previous=g,this._head=g}else if(w===2){if(g===this._tail)return;var y=g.next,f=g.previous;g===this._head?(y.previous=void 0,this._head=y):(y.previous=f,f.next=y),g.next=void 0,g.previous=this._tail,this._tail.next=g,this._tail=g}},c.prototype.toJSON=function(){var g=[];return this.forEach(function(w,y){g.push([y,w])}),g},c}(),R=function(c){ee(g,c);function g(w,y){y===void 0&&(y=1);var f=c.call(this)||this;return f._limit=w,f._ratio=Math.min(Math.max(0,y),1),f}return g.prototype.get=function(w){return c.prototype.get.call(this,w,2)},g.prototype.peek=function(w){return c.prototype.get.call(this,w,0)},g.prototype.set=function(w,y){c.prototype.set.call(this,w,y,2),this.checkTrim()},g.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},g}(_)},RMFE:function(et,de){et.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWgAAAFyCAYAAADYqEAoAAAAAXNSR0IArs4c6QAADetJREFUeAHt1jFqXUEQRUHLaP9b/jZObmYU9MAJSlGD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YBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IXAH7PYDOHnuk1pAAAAAElFTkSuQmCC"},"SA+Z":function(et,de,N){var ee=N("wTVA"),K=N("EbDI"),P=N("ZhPi"),z=N("wkBT");function B(M){return ee(M)||K(M)||P(M)||z()}et.exports=B,et.exports.__esModule=!0,et.exports.default=et.exports},SJMd:function(et,de){/** +`),J.focus();default:throw new Error}},[J,sr]),Jr=Object(c.useMemo)(function(){switch(sr){case Ze:return g.a.createElement(pe,{callback:Dr,onCancel:rr});case vt:return g.a.createElement(Ae.b,{callback:Dr,onCancel:rr});case yt:return g.a.createElement(he,{callback:Dr,onCancel:rr});case dt:return g.a.createElement(We,{callback:Dr,onCancel:rr});default:return null}},[sr]);function rr(){Jn("")}Object(c.useEffect)(function(){if(wr.current){var Xt=wr.current,on=!1,$t=0;function dn(gn){on=!0,$t=gn.pageY}function En(){on=!1}function wn(gn){if(on){var xn=gn.pageY-$t;xn<0&&(xn=0),xn>300&&(xn=300);var Hn=Xe+xn+"px";nr(Hn)}}return Xt.addEventListener("mousedown",dn),document.addEventListener("mousemove",wn),document.addEventListener("mouseup",En),function(){Xt.removeEventListener("mousedown",dn),document.removeEventListener("mousemove",wn),document.removeEventListener("mouseup",En)}}},[J,wr]),Object(c.useEffect)(function(){nr(Xe)},[Xe]);var Wr=ge(gt),Er=ge(br),Hr={width:Wr,height:Er},Zr=Object(c.useMemo)(function(){if(Ir){var Xt=new Date(Ir),on=Xt.getHours(),$t=Xt.getMinutes(),dn=Xt.getSeconds();return on=on<10?"0"+on:on,$t=$t<10?"0"+$t:$t,dn=dn<10?"0"+dn:dn,"".concat(on,":").concat($t,":").concat(dn)}return 0},[Ir]);function ir(){window.sessionStorage.removeItem(tt),Sn(!1),yr(0)}function ri(){Sn(!1),yr(0),J.setValue(window.sessionStorage.getItem(tt))}function ii(Xt,on){var $t=J.getValue();$t=$t.replace(Xt,on),Ft($t),J==null||J.setValue($t)}return g.a.createElement(c.Fragment,null,g.a.createElement("div",{className:"markdown-editor-wrapper",ref:bn},g.a.createElement("div",{className:"markdown-editor-container ".concat(Rt," ").concat(en?"on-preview":""," ").concat(se?"mini":""," ").concat(Rn?"full-screen":""),style:Hr},g.a.createElement(S,{insertTemp:it,watch:en,fullScreen:Rn,showNullButton:St,onActionCallback:jr,hidetoolBar:Bt,uuid:hn.current,setOpenPhones:function(){Pn.current=!0}}),g.a.createElement("div",{className:"markdown-editor-body"},g.a.createElement("div",{className:"codemirror-container"},g.a.createElement("textarea",{ref:Ln,placeholder:cn})),en?g.a.createElement("div",{ref:Bn,className:"preview-container"},Ne==="stex"&&g.a.createElement(O,{value:Ot}),Ne!=="stex"&&g.a.createElement(v.a,{edit:!0,value:Ot,replaces:ii})):null))),Ct?g.a.createElement("a",{ref:wr,className:"editor-resize"}):null,g.a.createElement(I.a,null,Ee[sr]?g.a.createElement(K.a,{centered:!0,title:Ee[sr],visible:!0,onCancel:rr,footer:null},Jr):null))}},QDVR:function(et,de,N){"use strict";N.d(de,"e",function(){return K}),N.d(de,"d",function(){return k}),N.d(de,"c",function(){return j}),N.d(de,"b",function(){return U}),N.d(de,"a",function(){return R});var ee=function(){var c=function(g,w){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,f){y.__proto__=f}||function(y,f){for(var m in f)f.hasOwnProperty(m)&&(y[m]=f[m])},c(g,w)};return function(g,w){c(g,w);function y(){this.constructor=g}g.prototype=w===null?Object.create(w):(y.prototype=w.prototype,new y)}}();function K(c){var g=[];return c.forEach(function(w){return g.push(w)}),g}function k(c){var g=[];return c.forEach(function(w,y){return g.push(y)}),g}var z=function(){function c(){this._value="",this._pos=0}return c.prototype.reset=function(g){return this._value=g,this._pos=0,this},c.prototype.next=function(){return this._pos+=1,this},c.prototype.hasNext=function(){return this._pos0)f.left||(f.left=new M,f.left.segment=y.value()),f=f.left;else if(m<0)f.right||(f.right=new M,f.right.segment=y.value()),f=f.right;else if(y.hasNext())y.next(),f.mid||(f.mid=new M,f.mid.segment=y.value()),f=f.mid;else break}var a=f.value;return f.value=w,f.key=g,a},c.prototype.get=function(g){for(var w=this._iter.reset(g),y=this._root;y;){var f=w.cmp(y.segment);if(f>0)y=y.left;else if(f<0)y=y.right;else if(w.hasNext())w.next(),y=y.mid;else break}return y?y.value:void 0},c.prototype.findSubstr=function(g){for(var w=this._iter.reset(g),y=this._root,f=void 0;y;){var m=w.cmp(y.segment);if(m>0)y=y.left;else if(m<0)y=y.right;else if(w.hasNext())w.next(),f=y.value||f,y=y.mid;else break}return y&&y.value||f},c.prototype.forEach=function(g){this._forEach(this._root,g)},c.prototype._forEach=function(g,w){g&&(this._forEach(g.left,w),g.value&&w(g.value,g.key),this._forEach(g.mid,w),this._forEach(g.right,w))},c}(),U=function(){function c(){this.map=new Map,this.ignoreCase=!1}return c.prototype.set=function(g,w){this.map.set(this.toKey(g),w)},c.prototype.get=function(g){return this.map.get(this.toKey(g))},c.prototype.toKey=function(g){var w=g.toString();return this.ignoreCase&&(w=w.toLowerCase()),w},c}(),_=function(){function c(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return c.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(c.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),c.prototype.get=function(g,w){w===void 0&&(w=0);var y=this._map.get(g);return y?(w!==0&&this.touch(y,w),y.value):void 0},c.prototype.set=function(g,w,y){y===void 0&&(y=0);var f=this._map.get(g);if(f)f.value=w,y!==0&&this.touch(f,y);else{f={key:g,value:w,next:void 0,previous:void 0};switch(y){case 0:this.addItemLast(f);break;case 1:this.addItemFirst(f);break;case 2:this.addItemLast(f);break;default:this.addItemLast(f);break}this._map.set(g,f),this._size++}},c.prototype.delete=function(g){return!!this.remove(g)},c.prototype.remove=function(g){var w=this._map.get(g);return w?(this._map.delete(g),this.removeItem(w),this._size--,w.value):void 0},c.prototype.forEach=function(g,w){for(var y=this._head;y;)w?g.bind(w)(y.value,y.key,this):g(y.value,y.key,this),y=y.next},c.prototype.trimOld=function(g){if(g>=this.size)return;if(g===0){this.clear();return}for(var w=this._head,y=this.size;w&&y>g;)this._map.delete(w.key),w=w.next,y--;this._head=w,this._size=y,w&&(w.previous=void 0)},c.prototype.addItemFirst=function(g){if(!this._head&&!this._tail)this._tail=g;else if(this._head)g.next=this._head,this._head.previous=g;else throw new Error("Invalid list");this._head=g},c.prototype.addItemLast=function(g){if(!this._head&&!this._tail)this._head=g;else if(this._tail)g.previous=this._tail,this._tail.next=g;else throw new Error("Invalid list");this._tail=g},c.prototype.removeItem=function(g){if(g===this._head&&g===this._tail)this._head=void 0,this._tail=void 0;else if(g===this._head){if(!g.next)throw new Error("Invalid list");g.next.previous=void 0,this._head=g.next}else if(g===this._tail){if(!g.previous)throw new Error("Invalid list");g.previous.next=void 0,this._tail=g.previous}else{var w=g.next,y=g.previous;if(!w||!y)throw new Error("Invalid list");w.previous=y,y.next=w}g.next=void 0,g.previous=void 0},c.prototype.touch=function(g,w){if(!this._head||!this._tail)throw new Error("Invalid list");if(w!==1&&w!==2)return;if(w===1){if(g===this._head)return;var y=g.next,f=g.previous;g===this._tail?(f.next=void 0,this._tail=f):(y.previous=f,f.next=y),g.previous=void 0,g.next=this._head,this._head.previous=g,this._head=g}else if(w===2){if(g===this._tail)return;var y=g.next,f=g.previous;g===this._head?(y.previous=void 0,this._head=y):(y.previous=f,f.next=y),g.next=void 0,g.previous=this._tail,this._tail.next=g,this._tail=g}},c.prototype.toJSON=function(){var g=[];return this.forEach(function(w,y){g.push([y,w])}),g},c}(),R=function(c){ee(g,c);function g(w,y){y===void 0&&(y=1);var f=c.call(this)||this;return f._limit=w,f._ratio=Math.min(Math.max(0,y),1),f}return g.prototype.get=function(w){return c.prototype.get.call(this,w,2)},g.prototype.peek=function(w){return c.prototype.get.call(this,w,0)},g.prototype.set=function(w,y){c.prototype.set.call(this,w,y,2),this.checkTrim()},g.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},g}(_)},RMFE:function(et,de){et.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWgAAAFyCAYAAADYqEAoAAAAAXNSR0IArs4c6QAADetJREFUeAHt1jFqXUEQRUHLaP9b/jZObmYU9MAJSlGDxNBUPw76+vz9+eWHAAECBHICv3MbWYgAAQIE/gkItA+BAAECUQGBjh7GWgQIEBBo3wABAgSiAgIdPYy1CBAgINC+AQIECEQFBDp6GGsRIEBAoH0DBAgQiAoIdPQw1iJAgIBA+wYIECAQFRDo6GGsRYAAAYH2DRAgQCAqINDRw1iLAAECAu0bIECAQFRAoKOHsRYBAgQE2jdAgACBqIBARw9jLQIECAi0b4AAAQJRAYGOHsZaBAgQEGjfAAECBKICAh09jLUIECAg0L4BAgQIRAUEOnoYaxEgQECgfQMECBCICgh09DDWIkCAgED7BggQIBAVEOjoYaxFgAABgfYNECBAICog0NHDWIsAAQIC7RsgQIBAVECgo4exFgECBATaN0CAAIGogEBHD2MtAgQICLRvgAABAlEBgY4exloECBAQaN8AAQIEogICHT2MtQgQICDQvgECBAhEBQQ6ehhrESBAQKB9AwQIEIgKCHT0MNYiQICAQPsGCBAgEBUQ6OhhrEWAAAGB9g0QIEAgKiDQ0cNYiwABAgLtGyBAgEBUQKCjh7EWAQIEBNo3QIAAgaiAQEcPYy0CBAh8/5Tg6+vrp3/q7wgQIEDgPwKfz+c/v92v/Ac9CxMBAgRSAgKdOodlCBAgMAGBnoWJ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MwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICXz/dJvP5/PTP/V3BAgQIHAg4D/oA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IXAH7PYDOHnuk1pAAAAAElFTkSuQmCC"},"SA+Z":function(et,de,N){var ee=N("wTVA"),K=N("EbDI"),k=N("ZhPi"),z=N("wkBT");function B(M){return ee(M)||K(M)||k(M)||z()}et.exports=B,et.exports.__esModule=!0,et.exports.default=et.exports},SJMd:function(et,de){/** * @license * Copyright (C) 2006 Google Inc. * @@ -302,35 +302,35 @@ Please report this to https://github.com/markedjs/marked.`,ge.silent)return"

    A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */var N,ee,K,P=!1,z,B;window.PR_SHOULD_USE_CONTINUATION=!0;var M,j;(function(){var U=window,_=["break,continue,do,else,for,if,return,while"],R=[_,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],c=[R,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],g=[c,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],w=[c,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],y=[c,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],f="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",m=[c,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],a="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",n=[_,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],o=[_,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],u=[_,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],x=[g,y,w,m,a,n,o,u],E=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,v="str",O="kwd",A="com",p="typ",h="lit",s="pun",l="pln",D="tag",T="dec",S="src",I="atn",C="atv",W="nocode",Y="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function H(oe){for(var Se=0,Me=!1,We=!1,Ke=0,Qe=oe.length;Ke122||(re<65||be>90||Je.push([Math.max(65,be)|32,Math.min(re,90)|32]),re<97||be>122||Je.push([Math.max(97,be)&~32,Math.min(re,122)&~32]))}}Je.sort(function(Be,Ie){return Be[0]-Ie[0]||Ie[1]-Be[1]});for(var ie=[],ce=[],nt=0;ntEe[0]&&(Ee[1]+1>Ee[0]&&He.push("-"),He.push(dt(Ee[1])))}return He.push("]"),He.join("")}function At(Oe){for(var we=Oe.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),Je=we.length,st=[],He=0,nt=0;He=2&&be==="["?we[He]=pt(Te):be!=="\\"&&(we[He]=Te.replace(/[a-zA-Z]/g,function(ce){var Ee=ce.charCodeAt(0);return"["+String.fromCharCode(Ee&~32,Ee|32)+"]"}))}return we.join("")}for(var wt=[],Ke=0,Qe=oe.length;Ke|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function H(oe){for(var Se=0,Me=!1,We=!1,Ke=0,Qe=oe.length;Ke122||(re<65||be>90||Je.push([Math.max(65,be)|32,Math.min(re,90)|32]),re<97||be>122||Je.push([Math.max(97,be)&~32,Math.min(re,122)&~32]))}}Je.sort(function(Be,Ie){return Be[0]-Ie[0]||Ie[1]-Be[1]});for(var ie=[],ce=[],nt=0;ntEe[0]&&(Ee[1]+1>Ee[0]&&He.push("-"),He.push(dt(Ee[1])))}return He.push("]"),He.join("")}function At(Oe){for(var we=Oe.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),Je=we.length,st=[],He=0,nt=0;He=2&&be==="["?we[He]=pt(Te):be!=="\\"&&(we[He]=Te.replace(/[a-zA-Z]/g,function(ce){var Ee=ce.charCodeAt(0);return"["+String.fromCharCode(Ee&~32,Ee|32)+"]"}))}return we.join("")}for(var wt=[],Ke=0,Qe=oe.length;Ke=0;)Me[wt.charAt(Oe)]=At;var we=At[1],Je=""+we;vt.hasOwnProperty(Je)||(yt.push(we),vt[Je]=null)}yt.push(/[\0-\uffff]/),We=H(yt)})();var Ke=Se.length,Qe=function(Ze){for(var yt=Ze.sourceCode,vt=Ze.basePos,dt=Ze.sourceNode,pt=[vt,l],At=0,wt=yt.match(We)||[],Oe={},we=0,Je=wt.length;we=5&&He.substring(0,5)==="lang-",Te&&!(nt&&typeof nt[1]=="string")&&(Te=!1,He=S),Te||(Oe[st]=He)}var re=At;if(At+=st.length,!Te)pt.push(vt+re,He);else{var ie=nt[1],ce=st.indexOf(ie),Ee=ce+ie.length;nt[2]&&(Ee=st.length-nt[2].length,ce=Ee-ie.length);var Be=He.substring(5);q(dt,vt+re,st.substring(0,ce),Qe,pt),q(dt,vt+re+ce,ie,he(Be,ie),pt),q(dt,vt+re+Ee,st.substring(Ee),Qe,pt)}}Ze.decorations=pt};return Qe}function Ge(oe){var Se=[],Me=[];oe.tripleQuotedStrings?Se.push([v,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):oe.multiLineStrings?Se.push([v,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):Se.push([v,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),oe.verbatimStrings&&Me.push([v,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var We=oe.hashComments;We&&(oe.cStyleComments?(We>1?Se.push([A,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):Se.push([A,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Me.push([v,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):Se.push([A,/^#[^\r\n]*/,null,"#"])),oe.cStyleComments&&(Me.push([A,/^\/\/[^\r\n]*/,null]),Me.push([A,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Ke=oe.regexLiterals;if(Ke){var Qe=Ke>1?"":` \r`,Ze=Qe?".":"[\\S\\s]",yt="/(?=[^/*"+Qe+"])(?:[^/\\x5B\\x5C"+Qe+"]|\\x5C"+Ze+"|\\x5B(?:[^\\x5C\\x5D"+Qe+"]|\\x5C"+Ze+")*(?:\\x5D|$))+/";Me.push(["lang-regex",RegExp("^"+Y+"("+yt+")")])}var vt=oe.types;vt&&Me.push([p,vt]);var dt=(""+oe.keywords).replace(/^ | $/g,"");dt.length&&Me.push([O,new RegExp("^(?:"+dt.replace(/[\s,]+/g,"|")+")\\b"),null]),Se.push([l,/^\s+/,null,` \r \xA0`]);var pt="^.[^\\s\\w.$@'\"`/\\\\]*";return oe.regexLiterals&&(pt+="(?!s*/)"),Me.push([h,/^@[a-z_$][a-z_$@0-9]*/i,null],[p,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[l,/^[a-z_$][a-z_$@0-9]*/i,null],[h,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[l,/^\\[\s\S]?/,null],[s,new RegExp(pt),null]),Ae(Se,Me)}var Fe=Ge({keywords:x,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function Ue(oe,Se,Me){for(var We=/(?:^|\s)nocode(?:\s|$)/,Ke=/\r\n?|\n/,Qe=oe.ownerDocument,Ze=Qe.createElement("li");oe.firstChild;)Ze.appendChild(oe.firstChild);var yt=[Ze];function vt(we){var Je=we.nodeType;if(Je==1&&!We.test(we.className))if(we.nodeName==="br")dt(we),we.parentNode&&we.parentNode.removeChild(we);else for(var st=we.firstChild;st;st=st.nextSibling)vt(st);else if((Je==3||Je==4)&&Me){var He=we.nodeValue,nt=He.match(Ke);if(nt){var Te=He.substring(0,nt.index);we.nodeValue=Te;var ge=He.substring(nt.index+nt[0].length);if(ge){var be=we.parentNode;be.insertBefore(Qe.createTextNode(ge),we.nextSibling)}dt(we),Te||we.parentNode.removeChild(we)}}}function dt(we){for(;!we.nextSibling;)if(we=we.parentNode,!we)return;function Je(nt,Te){var ge=Te?nt.cloneNode(!1):nt,be=nt.parentNode;if(be){var re=Je(be,1),ie=nt.nextSibling;re.appendChild(ge);for(var ce=ie;ce;ce=ie)ie=ce.nextSibling,re.appendChild(ce)}return ge}for(var st=Je(we.nextSibling,0),He;(He=st.parentNode)&&He.nodeType===1;)st=He;yt.push(st)}for(var pt=0;pt=be&&(vt+=2),Qe>=re&&(At+=2)}}finally{He&&(He.style.display=nt)}}var je={};function xe(oe,Se){for(var Me=Se.length;--Me>=0;){var We=Se[Me];je.hasOwnProperty(We)?U.console&&console.warn("cannot override language handler %s",We):je[We]=oe}}function he(oe,Se){return oe&&je.hasOwnProperty(oe)||(oe=/^\s*]*(?:>|$)/],[A,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[s,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),xe(Ae([[l,/^[\s]+/,null,` \r -`],[C,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[D,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[I,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[s,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),xe(Ae([],[[C,/^[\s\S]+/]]),["uq.val"]),xe(Ge({keywords:g,hashComments:!0,cStyleComments:!0,types:E}),["c","cc","cpp","cxx","cyc","m"]),xe(Ge({keywords:"null,true,false"}),["json"]),xe(Ge({keywords:y,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:E}),["cs"]),xe(Ge({keywords:w,cStyleComments:!0}),["java"]),xe(Ge({keywords:u,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),xe(Ge({keywords:n,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),xe(Ge({keywords:a,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),xe(Ge({keywords:o,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),xe(Ge({keywords:m,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),xe(Ge({keywords:f,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),xe(Ae([],[[v,/^[\s\S]+/]]),["regex"]);function te(oe){var Se=oe.langExtension;try{var Me=F(oe.sourceNode,oe.pre),We=Me.sourceCode;oe.sourceCode=We,oe.spans=Me.spans,oe.basePos=0,he(Se,We)(oe),_e(oe)}catch(Ke){U.console&&console.log(Ke&&Ke.stack||Ke)}}function ye(oe,Se,Me){var We=Me||!1,Ke=Se||null,Qe=document.createElement("div");Qe.innerHTML="

    "+oe+"
    ",Qe=Qe.firstChild,We&&Ue(Qe,We,!0);var Ze={langExtension:Ke,numberLines:We,sourceNode:Qe,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return te(Ze),Qe.innerHTML}function ue(oe,Se){var Me=Se||document.body,We=Me.ownerDocument||document;function Ke(ge){return Me.getElementsByTagName(ge)}for(var Qe=[Ke("pre"),Ke("code"),Ke("xmp")],Ze=[],yt=0;yt=0){var u=n.split("!=");return U.create(u[0].trim(),this._deserializeValue(u[1],o))}if(n.indexOf("==")>=0){var u=n.split("==");return j.create(u[0].trim(),this._deserializeValue(u[1],o))}if(n.indexOf("=~")>=0){var u=n.split("=~");return R.create(u[0].trim(),this._deserializeRegexValue(u[1],o))}return/^\!\s*/.test(n)?_.create(n.substr(1).trim()):M.create(n)},a._deserializeValue=function(n,o){if(n=n.trim(),n==="true")return!0;if(n==="false")return!1;var u=/^'([^']*)'$/.exec(n);return u?u[1].trim():n},a._deserializeRegexValue=function(n,o){if(Object(ee.x)(n)){if(o)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var u=n.indexOf("/"),x=n.lastIndexOf("/");if(u===x||u<0){if(o)throw new Error("bad regexp-value '"+n+"', missing /-enclosure");return console.warn("bad regexp-value '"+n+"', missing /-enclosure"),null}var E=n.slice(u+1,x),v=n[x+1]==="i"?"i":"";try{return new RegExp(E,v)}catch(O){if(o)throw new Error("bad regexp-value '"+n+"', parse error: "+O);return console.warn("bad regexp-value '"+n+"', parse error: "+O),null}},a}();function B(a,n){var o=a.getType(),u=n.getType();if(o!==u)return o-u;switch(o){case 1:return a.cmp(n);case 2:return a.cmp(n);case 3:return a.cmp(n);case 4:return a.cmp(n);case 6:return a.cmp(n);case 7:return a.cmp(n);case 5:return a.cmp(n);default:throw new Error("Unknown ContextKeyExpr!")}}var M=function(){function a(n){this.key=n}return a.create=function(n){return new a(n)},a.prototype.getType=function(){return 1},a.prototype.cmp=function(n){return this.keyn.key?1:0},a.prototype.equals=function(n){return n instanceof a?this.key===n.key:!1},a.prototype.evaluate=function(n){return!!n.getValue(this.key)},a.prototype.keys=function(){return[this.key]},a.prototype.negate=function(){return _.create(this.key)},a}(),j=function(){function a(n,o){this.key=n,this.value=o}return a.create=function(n,o){return typeof o=="boolean"?o?M.create(n):_.create(n):new a(n,o)},a.prototype.getType=function(){return 3},a.prototype.cmp=function(n){return this.keyn.key?1:this.valuen.value?1:0},a.prototype.equals=function(n){return n instanceof a?this.key===n.key&&this.value===n.value:!1},a.prototype.evaluate=function(n){return n.getValue(this.key)==this.value},a.prototype.keys=function(){return[this.key]},a.prototype.negate=function(){return U.create(this.key,this.value)},a}(),U=function(){function a(n,o){this.key=n,this.value=o}return a.create=function(n,o){return typeof o=="boolean"?o?_.create(n):M.create(n):new a(n,o)},a.prototype.getType=function(){return 4},a.prototype.cmp=function(n){return this.keyn.key?1:this.valuen.value?1:0},a.prototype.equals=function(n){return n instanceof a?this.key===n.key&&this.value===n.value:!1},a.prototype.evaluate=function(n){return n.getValue(this.key)!=this.value},a.prototype.keys=function(){return[this.key]},a.prototype.negate=function(){return j.create(this.key,this.value)},a}(),_=function(){function a(n){this.key=n}return a.create=function(n){return new a(n)},a.prototype.getType=function(){return 2},a.prototype.cmp=function(n){return this.keyn.key?1:0},a.prototype.equals=function(n){return n instanceof a?this.key===n.key:!1},a.prototype.evaluate=function(n){return!n.getValue(this.key)},a.prototype.keys=function(){return[this.key]},a.prototype.negate=function(){return M.create(this.key)},a}(),R=function(){function a(n,o){this.key=n,this.regexp=o}return a.create=function(n,o){return new a(n,o)},a.prototype.getType=function(){return 6},a.prototype.cmp=function(n){if(this.keyn.key)return 1;var o=this.regexp?this.regexp.source:"",u=n.regexp?n.regexp.source:"";return ou?1:0},a.prototype.equals=function(n){if(n instanceof a){var o=this.regexp?this.regexp.source:"",u=n.regexp?n.regexp.source:"";return this.key===n.key&&o===u}return!1},a.prototype.evaluate=function(n){var o=n.getValue(this.key);return this.regexp?this.regexp.test(o):!1},a.prototype.keys=function(){return[this.key]},a.prototype.negate=function(){return c.create(this)},a}(),c=function(){function a(n){this._actual=n}return a.create=function(n){return new a(n)},a.prototype.getType=function(){return 7},a.prototype.cmp=function(n){return this._actual.cmp(n._actual)},a.prototype.equals=function(n){return n instanceof a?this._actual.equals(n._actual):!1},a.prototype.evaluate=function(n){return!this._actual.evaluate(n)},a.prototype.keys=function(){return this._actual.keys()},a.prototype.negate=function(){return this._actual},a}(),g=function(){function a(n){this.expr=n}return a.create=function(n){var o=a._normalizeArr(n);return o.length===0?void 0:o.length===1?o[0]:new a(o)},a.prototype.getType=function(){return 5},a.prototype.cmp=function(n){if(this.expr.lengthn.expr.length)return 1;for(var o=0,u=this.expr.length;o1;){for(var v=n.shift(),O=n.shift(),A=[],p=0,h=E(v);p=15&&(g=!1,_=!0);var v=o&&(R||g&&(E==null||E<12.11)),O=P||j&&U>=9;function A(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var p=function(e,t){var i=e.className,r=A(t).exec(i);if(r){var d=i.slice(r.index+r[0].length);e.className=i.slice(0,r.index)+(d?r[1]+d:"")}};function h(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function s(e,t){return h(e).appendChild(t)}function l(e,t,i,r){var d=document.createElement(e);if(i&&(d.className=i),r&&(d.style.cssText=r),typeof t=="string")d.appendChild(document.createTextNode(t));else if(t)for(var k=0;k=t)return X+(t-k);X+=Z-k,X+=i-X%i,k=Z+1}}var le=function(){this.id=null,this.f=null,this.time=0,this.handler=H(this.onTimeout,this)};le.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},le.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i=t)return r+Math.min(X,t-d);if(d+=k-r,d+=i-d%i,r=k+1,d>=t)return r}}var xe=[""];function he(e){for(;xe.length<=e;)xe.push(te(xe)+" ");return xe[e]}function te(e){return e[e.length-1]}function ye(e,t){for(var i=[],r=0;r"\x80"&&(e.toUpperCase()!=e.toLowerCase()||oe.test(e))}function Me(e,t){return t?t.source.indexOf("\\w")>-1&&Se(e)?!0:t.test(e):Se(e)}function We(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Ke=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Qe(e){return e.charCodeAt(0)>=768&&Ke.test(e)}function Ze(e,t,i){for(;(i<0?t>0:ti?-1:1;;){if(t==i)return t;var d=(t+i)/2,k=r<0?Math.ceil(d):Math.floor(d);if(k==t)return e(k)?t:i;e(k)?i=k:t=k+r}}function vt(e,t,i,r){if(!e)return r(t,i,"ltr",0);for(var d=!1,k=0;kt||t==i&&X.to==t)&&(r(Math.max(X.from,t),Math.min(X.to,i),X.level==1?"rtl":"ltr",k),d=!0)}d||r(t,i,"ltr")}var dt=null;function pt(e,t,i){var r;dt=null;for(var d=0;dt)return d;k.to==t&&(k.from!=k.to&&i=="before"?r=d:dt=d),k.from==t&&(k.from!=k.to&&i!="before"?r=d:dt=d)}return r!=null?r:dt}var At=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(ne){return ne<=247?e.charAt(ne):1424<=ne&&ne<=1524?"R":1536<=ne&&ne<=1785?t.charAt(ne-1536):1774<=ne&&ne<=2220?"r":8192<=ne&&ne<=8203?"w":ne==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,d=/[stwN]/,k=/[LRr]/,X=/[Lb1n]/,Z=/[1n]/;function $(ne,Ce,Re){this.level=ne,this.from=Ce,this.to=Re}return function(ne,Ce){var Re=Ce=="ltr"?"L":"R";if(ne.length==0||Ce=="ltr"&&!r.test(ne))return!1;for(var Ye=ne.length,ze=[],ht=0;ht-1&&(r[t]=d.slice(0,k).concat(d.slice(k+1)))}}}function He(e,t){var i=Je(e,t);if(!i.length)return;for(var r=Array.prototype.slice.call(arguments,2),d=0;d0}function be(e){e.prototype.on=function(t,i){we(this,t,i)},e.prototype.off=function(t,i){st(this,t,i)}}function re(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function ie(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function ce(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Ee(e){re(e),ie(e)}function Be(e){return e.target||e.srcElement}function Ie(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),o&&e.ctrlKey&&t==1&&(t=3),t}var ut=function(){if(j&&U<9)return!1;var e=l("div");return"draggable"in e||"dragDrop"in e}(),bt;function Tt(e){if(bt==null){var t=l("span","\u200B");s(e,l("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(bt=t.offsetWidth<=1&&t.offsetHeight>2&&!(j&&U<8))}var i=bt?l("span","\u200B"):l("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var xt;function gt(e){if(xt!=null)return xt;var t=s(e,document.createTextNode("A\u062EA")),i=T(t,0,1).getBoundingClientRect(),r=T(t,1,2).getBoundingClientRect();return h(e),!i||i.left==i.right?!1:xt=r.right-i.right<3}var qe=` +`],[C,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[D,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[I,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[s,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),xe(Ae([],[[C,/^[\s\S]+/]]),["uq.val"]),xe(Ge({keywords:g,hashComments:!0,cStyleComments:!0,types:E}),["c","cc","cpp","cxx","cyc","m"]),xe(Ge({keywords:"null,true,false"}),["json"]),xe(Ge({keywords:y,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:E}),["cs"]),xe(Ge({keywords:w,cStyleComments:!0}),["java"]),xe(Ge({keywords:u,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),xe(Ge({keywords:n,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),xe(Ge({keywords:a,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),xe(Ge({keywords:o,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),xe(Ge({keywords:m,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),xe(Ge({keywords:f,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),xe(Ae([],[[v,/^[\s\S]+/]]),["regex"]);function te(oe){var Se=oe.langExtension;try{var Me=F(oe.sourceNode,oe.pre),We=Me.sourceCode;oe.sourceCode=We,oe.spans=Me.spans,oe.basePos=0,he(Se,We)(oe),_e(oe)}catch(Ke){U.console&&console.log(Ke&&Ke.stack||Ke)}}function ye(oe,Se,Me){var We=Me||!1,Ke=Se||null,Qe=document.createElement("div");Qe.innerHTML="
    "+oe+"
    ",Qe=Qe.firstChild,We&&Ue(Qe,We,!0);var Ze={langExtension:Ke,numberLines:We,sourceNode:Qe,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return te(Ze),Qe.innerHTML}function ue(oe,Se){var Me=Se||document.body,We=Me.ownerDocument||document;function Ke(ge){return Me.getElementsByTagName(ge)}for(var Qe=[Ke("pre"),Ke("code"),Ke("xmp")],Ze=[],yt=0;yt=0){var u=n.split("!=");return U.create(u[0].trim(),this._deserializeValue(u[1],o))}if(n.indexOf("==")>=0){var u=n.split("==");return j.create(u[0].trim(),this._deserializeValue(u[1],o))}if(n.indexOf("=~")>=0){var u=n.split("=~");return R.create(u[0].trim(),this._deserializeRegexValue(u[1],o))}return/^\!\s*/.test(n)?_.create(n.substr(1).trim()):M.create(n)},a._deserializeValue=function(n,o){if(n=n.trim(),n==="true")return!0;if(n==="false")return!1;var u=/^'([^']*)'$/.exec(n);return u?u[1].trim():n},a._deserializeRegexValue=function(n,o){if(Object(ee.x)(n)){if(o)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var u=n.indexOf("/"),x=n.lastIndexOf("/");if(u===x||u<0){if(o)throw new Error("bad regexp-value '"+n+"', missing /-enclosure");return console.warn("bad regexp-value '"+n+"', missing /-enclosure"),null}var E=n.slice(u+1,x),v=n[x+1]==="i"?"i":"";try{return new RegExp(E,v)}catch(O){if(o)throw new Error("bad regexp-value '"+n+"', parse error: "+O);return console.warn("bad regexp-value '"+n+"', parse error: "+O),null}},a}();function B(a,n){var o=a.getType(),u=n.getType();if(o!==u)return o-u;switch(o){case 1:return a.cmp(n);case 2:return a.cmp(n);case 3:return a.cmp(n);case 4:return a.cmp(n);case 6:return a.cmp(n);case 7:return a.cmp(n);case 5:return a.cmp(n);default:throw new Error("Unknown ContextKeyExpr!")}}var M=function(){function a(n){this.key=n}return a.create=function(n){return new a(n)},a.prototype.getType=function(){return 1},a.prototype.cmp=function(n){return this.keyn.key?1:0},a.prototype.equals=function(n){return n instanceof a?this.key===n.key:!1},a.prototype.evaluate=function(n){return!!n.getValue(this.key)},a.prototype.keys=function(){return[this.key]},a.prototype.negate=function(){return _.create(this.key)},a}(),j=function(){function a(n,o){this.key=n,this.value=o}return a.create=function(n,o){return typeof o=="boolean"?o?M.create(n):_.create(n):new a(n,o)},a.prototype.getType=function(){return 3},a.prototype.cmp=function(n){return this.keyn.key?1:this.valuen.value?1:0},a.prototype.equals=function(n){return n instanceof a?this.key===n.key&&this.value===n.value:!1},a.prototype.evaluate=function(n){return n.getValue(this.key)==this.value},a.prototype.keys=function(){return[this.key]},a.prototype.negate=function(){return U.create(this.key,this.value)},a}(),U=function(){function a(n,o){this.key=n,this.value=o}return a.create=function(n,o){return typeof o=="boolean"?o?_.create(n):M.create(n):new a(n,o)},a.prototype.getType=function(){return 4},a.prototype.cmp=function(n){return this.keyn.key?1:this.valuen.value?1:0},a.prototype.equals=function(n){return n instanceof a?this.key===n.key&&this.value===n.value:!1},a.prototype.evaluate=function(n){return n.getValue(this.key)!=this.value},a.prototype.keys=function(){return[this.key]},a.prototype.negate=function(){return j.create(this.key,this.value)},a}(),_=function(){function a(n){this.key=n}return a.create=function(n){return new a(n)},a.prototype.getType=function(){return 2},a.prototype.cmp=function(n){return this.keyn.key?1:0},a.prototype.equals=function(n){return n instanceof a?this.key===n.key:!1},a.prototype.evaluate=function(n){return!n.getValue(this.key)},a.prototype.keys=function(){return[this.key]},a.prototype.negate=function(){return M.create(this.key)},a}(),R=function(){function a(n,o){this.key=n,this.regexp=o}return a.create=function(n,o){return new a(n,o)},a.prototype.getType=function(){return 6},a.prototype.cmp=function(n){if(this.keyn.key)return 1;var o=this.regexp?this.regexp.source:"",u=n.regexp?n.regexp.source:"";return ou?1:0},a.prototype.equals=function(n){if(n instanceof a){var o=this.regexp?this.regexp.source:"",u=n.regexp?n.regexp.source:"";return this.key===n.key&&o===u}return!1},a.prototype.evaluate=function(n){var o=n.getValue(this.key);return this.regexp?this.regexp.test(o):!1},a.prototype.keys=function(){return[this.key]},a.prototype.negate=function(){return c.create(this)},a}(),c=function(){function a(n){this._actual=n}return a.create=function(n){return new a(n)},a.prototype.getType=function(){return 7},a.prototype.cmp=function(n){return this._actual.cmp(n._actual)},a.prototype.equals=function(n){return n instanceof a?this._actual.equals(n._actual):!1},a.prototype.evaluate=function(n){return!this._actual.evaluate(n)},a.prototype.keys=function(){return this._actual.keys()},a.prototype.negate=function(){return this._actual},a}(),g=function(){function a(n){this.expr=n}return a.create=function(n){var o=a._normalizeArr(n);return o.length===0?void 0:o.length===1?o[0]:new a(o)},a.prototype.getType=function(){return 5},a.prototype.cmp=function(n){if(this.expr.lengthn.expr.length)return 1;for(var o=0,u=this.expr.length;o1;){for(var v=n.shift(),O=n.shift(),A=[],p=0,h=E(v);p=15&&(g=!1,_=!0);var v=o&&(R||g&&(E==null||E<12.11)),O=k||j&&U>=9;function A(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var p=function(e,t){var i=e.className,r=A(t).exec(i);if(r){var d=i.slice(r.index+r[0].length);e.className=i.slice(0,r.index)+(d?r[1]+d:"")}};function h(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function s(e,t){return h(e).appendChild(t)}function l(e,t,i,r){var d=document.createElement(e);if(i&&(d.className=i),r&&(d.style.cssText=r),typeof t=="string")d.appendChild(document.createTextNode(t));else if(t)for(var P=0;P=t)return X+(t-P);X+=Z-P,X+=i-X%i,P=Z+1}}var le=function(){this.id=null,this.f=null,this.time=0,this.handler=H(this.onTimeout,this)};le.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},le.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i=t)return r+Math.min(X,t-d);if(d+=P-r,d+=i-d%i,r=P+1,d>=t)return r}}var xe=[""];function he(e){for(;xe.length<=e;)xe.push(te(xe)+" ");return xe[e]}function te(e){return e[e.length-1]}function ye(e,t){for(var i=[],r=0;r"\x80"&&(e.toUpperCase()!=e.toLowerCase()||oe.test(e))}function Me(e,t){return t?t.source.indexOf("\\w")>-1&&Se(e)?!0:t.test(e):Se(e)}function We(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Ke=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Qe(e){return e.charCodeAt(0)>=768&&Ke.test(e)}function Ze(e,t,i){for(;(i<0?t>0:ti?-1:1;;){if(t==i)return t;var d=(t+i)/2,P=r<0?Math.ceil(d):Math.floor(d);if(P==t)return e(P)?t:i;e(P)?i=P:t=P+r}}function vt(e,t,i,r){if(!e)return r(t,i,"ltr",0);for(var d=!1,P=0;Pt||t==i&&X.to==t)&&(r(Math.max(X.from,t),Math.min(X.to,i),X.level==1?"rtl":"ltr",P),d=!0)}d||r(t,i,"ltr")}var dt=null;function pt(e,t,i){var r;dt=null;for(var d=0;dt)return d;P.to==t&&(P.from!=P.to&&i=="before"?r=d:dt=d),P.from==t&&(P.from!=P.to&&i!="before"?r=d:dt=d)}return r!=null?r:dt}var At=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(ne){return ne<=247?e.charAt(ne):1424<=ne&&ne<=1524?"R":1536<=ne&&ne<=1785?t.charAt(ne-1536):1774<=ne&&ne<=2220?"r":8192<=ne&&ne<=8203?"w":ne==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,d=/[stwN]/,P=/[LRr]/,X=/[Lb1n]/,Z=/[1n]/;function $(ne,Ce,Re){this.level=ne,this.from=Ce,this.to=Re}return function(ne,Ce){var Re=Ce=="ltr"?"L":"R";if(ne.length==0||Ce=="ltr"&&!r.test(ne))return!1;for(var Ye=ne.length,ze=[],ht=0;ht-1&&(r[t]=d.slice(0,P).concat(d.slice(P+1)))}}}function He(e,t){var i=Je(e,t);if(!i.length)return;for(var r=Array.prototype.slice.call(arguments,2),d=0;d0}function be(e){e.prototype.on=function(t,i){we(this,t,i)},e.prototype.off=function(t,i){st(this,t,i)}}function re(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function ie(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function ce(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Ee(e){re(e),ie(e)}function Be(e){return e.target||e.srcElement}function Ie(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),o&&e.ctrlKey&&t==1&&(t=3),t}var ut=function(){if(j&&U<9)return!1;var e=l("div");return"draggable"in e||"dragDrop"in e}(),bt;function Tt(e){if(bt==null){var t=l("span","\u200B");s(e,l("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(bt=t.offsetWidth<=1&&t.offsetHeight>2&&!(j&&U<8))}var i=bt?l("span","\u200B"):l("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var xt;function gt(e){if(xt!=null)return xt;var t=s(e,document.createTextNode("A\u062EA")),i=T(t,0,1).getBoundingClientRect(),r=T(t,1,2).getBoundingClientRect();return h(e),!i||i.left==i.right?!1:xt=r.right-i.right<3}var qe=` b`.split(/\n/).length!=3?function(e){for(var t=0,i=[],r=e.length;t<=r;){var d=e.indexOf(` -`,t);d==-1&&(d=e.length);var k=e.slice(t,e.charAt(d-1)=="\r"?d-1:d),X=k.indexOf("\r");X!=-1?(i.push(k.slice(0,X)),t+=X+1):(i.push(k),t=d+1)}return i}:function(e){return e.split(/\r\n?|\n/)},Xe=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(i){}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},Pe=function(){var e=l("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),se=null;function fe(e){if(se!=null)return se;var t=s(e,l("span","x")),i=t.getBoundingClientRect(),r=T(t,0,1).getBoundingClientRect();return se=Math.abs(i.left-r.left)>1}var $e={},ke={};function it(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),$e[e]=t}function at(e,t){ke[e]=t}function Ne(e){if(typeof e=="string"&&ke.hasOwnProperty(e))e=ke[e];else if(e&&typeof e.name=="string"&&ke.hasOwnProperty(e.name)){var t=ke[e.name];typeof t=="string"&&(t={name:t}),e=ae(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ne("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ne("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Ve(e,t){t=Ne(t);var i=$e[t.name];if(!i)return Ve(e,"text/plain");var r=i(e,t);if(tt.hasOwnProperty(t.name)){var d=tt[t.name];for(var k in d){if(!d.hasOwnProperty(k))continue;r.hasOwnProperty(k)&&(r["_"+k]=r[k]),r[k]=d[k]}}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var X in t.modeProps)r[X]=t.modeProps[X];return r}var tt={};function ft(e,t){var i=tt.hasOwnProperty(e)?tt[e]:tt[e]={};F(t,i)}function Ct(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var i={};for(var r in t){var d=t[r];d instanceof Array&&(d=d.concat([])),i[r]=d}return i}function zt(e,t){for(var i;e.innerMode&&!(i=e.innerMode(t),!i||i.mode==e);)t=i.state,e=i.mode;return i||{mode:e,state:t}}function qt(e,t,i){return e.startState?e.startState(t,i):!0}var Qt=function(e,t,i){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i};Qt.prototype.eol=function(){return this.pos>=this.string.length},Qt.prototype.sol=function(){return this.pos==this.lineStart},Qt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Qt.prototype.next=function(){if(this.post},Qt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Qt.prototype.skipToEnd=function(){this.pos=this.string.length},Qt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Qt.prototype.backUp=function(e){this.pos-=e},Qt.prototype.column=function(){return this.lastColumnPos0?null:(k&&t!==!1&&(this.pos+=k[0].length),k)}},Qt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Qt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Qt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Qt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function St(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var i=e;!i.lines;)for(var r=0;;++r){var d=i.children[r],k=d.chunkSize();if(t=e.first&&ti?lt(i,St(e,i).text.length):L(t,St(e,t.line).text.length)}function L(e,t){var i=e.ch;return i==null||i>t?lt(e.line,t):i<0?lt(e.line,0):e}function V(e,t){for(var i=[],r=0;rthis.maxLookAhead&&(this.maxLookAhead=e),t},Q.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Q.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Q.fromSaved=function(e,t,i){return t instanceof J?new Q(e,Ct(e.mode,t.state),i,t.lookAhead):new Q(e,Ct(e.mode,t),i)},Q.prototype.save=function(e){var t=e!==!1?Ct(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new J(t,this.maxLookAhead):t};function De(e,t,i,r){var d=[e.state.modeGen],k={};tr(e,t.text,e.doc.mode,i,function(ne,Ce){return d.push(ne,Ce)},k,r);for(var X=i.state,Z=function(ne){i.baseTokens=d;var Ce=e.state.overlays[ne],Re=1,Ye=0;i.state=!0,tr(e,t.text,Ce.mode,i,function(ze,ht){for(var Et=Re;Yeze&&d.splice(Re,1,ze,d[Re+1],Dt),Re+=2,Ye=Math.min(ze,Dt)}if(!ht)return;if(Ce.opaque)d.splice(Et,Re-Et,ze,"overlay "+ht),Re=Et+2;else for(;Ete.options.maxHighlightLength&&Ct(e.doc.mode,r.state),k=De(e,t,r);d&&(r.state=d),t.stateAfter=r.save(!d),t.styles=k.styles,k.classes?t.styleClasses=k.classes:t.styleClasses&&(t.styleClasses=null),i===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Ot(e,t,i){var r=e.doc,d=e.display;if(!r.mode.startState)return new Q(r,!0,t);var k=Rn(e,t,i),X=k>r.first&&St(r,k-1).stateAfter,Z=X?Q.fromSaved(r,X,k):new Q(r,qt(r.mode),k);return r.iter(k,t,function($){Ft(e,$.text,Z);var ne=Z.line;$.stateAfter=ne==t-1||ne%5==0||ne>=d.viewFrom&&net.start)return k}throw new Error("Mode "+e.name+" failed to advance stream.")}var en=function(e,t,i){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=i};function Tn(e,t,i,r){var d=e.doc,k=d.mode,X;t=b(d,t);var Z=St(d,t.line),$=Ot(e,t.line,i),ne=new Qt(Z.text,e.options.tabSize,$),Ce;for(r&&(Ce=[]);(r||ne.pose.options.maxHighlightLength?(Z=!1,X&&Ft(e,t,r,Ce.pos),Ce.pos=t.length,Re=null):Re=Wn(Gt(i,Ce,r.state,Ye),k),Ye){var ze=Ye[0].name;ze&&(Re="m-"+(Re?ze+" "+Re:ze))}if(!Z||ne!=Re){for(;$X;--Z){if(Z<=k.first)return k.first;var $=St(k,Z-1),ne=$.stateAfter;if(ne&&(!i||Z+(ne instanceof J?ne.lookAhead:0)<=k.modeFrontier))return Z;var Ce=q($.text,null,e.options.tabSize);(d==null||r>Ce)&&(d=Z-1,r=Ce)}return d}function or(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),e.highlightFrontieri;r--){var d=St(e,r).stateAfter;if(d&&(!(d instanceof J)||r+d.lookAhead=t:k.to>t);(r||(r=[])).push(new Mr(X,k.from,$?null:k.to))}}return r}function Yr(e,t,i){var r;if(e)for(var d=0;d=t:k.to>t);if(Z||k.from==t&&X.type=="bookmark"&&(!i||k.marker.insertLeft)){var $=k.from==null||(X.inclusiveLeft?k.from<=t:k.from0&&Z)for(var Vt=0;Vt0)continue;var Ce=[$,1],Re=Rt(ne.from,Z.from),Ye=Rt(ne.to,Z.to);(Re<0||!X.inclusiveLeft&&!Re)&&Ce.push({from:ne.from,to:Z.from}),(Ye>0||!X.inclusiveRight&&!Ye)&&Ce.push({from:Z.to,to:ne.to}),d.splice.apply(d,Ce),$+=Ce.length-3}return d}function _r(e){var t=e.markedSpans;if(!t)return;for(var i=0;it)&&(!r||kn(r,k.marker)<0)&&(r=k.marker)}return r}function Bn(e,t,i,r,d){var k=St(e,t),X=Vn&&k.markedSpans;if(X)for(var Z=0;Z=0&&Re<=0||Ce<=0&&Re>=0)continue;if(Ce<=0&&($.marker.inclusiveRight&&d.inclusiveLeft?Rt(ne.to,i)>=0:Rt(ne.to,i)>0)||Ce>=0&&($.marker.inclusiveRight&&d.inclusiveLeft?Rt(ne.from,r)<=0:Rt(ne.from,r)<0))return!0}}function Qn(e){for(var t;t=Ln(e);)e=t.find(-1,!0).line;return e}function zr(e){for(var t;t=bn(e);)e=t.find(1,!0).line;return e}function jr(e){for(var t,i;t=bn(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}function Dr(e,t){var i=St(e,t),r=Qn(i);return i==r?t:Mt(r)}function Jr(e,t){if(t>e.lastLine())return t;var i=St(e,t),r;if(!rr(e,i))return t;for(;r=bn(i);)i=r.find(1,!0).line;return Mt(i)+1}function rr(e,t){var i=Vn&&t.markedSpans;if(i)for(var r=void 0,d=0;dt.maxLineLength&&(t.maxLineLength=d,t.maxLine=r)})}var ir=function(e,t,i){this.text=e,Fr(this,t),this.height=i?i(this):1};ir.prototype.lineNo=function(){return Mt(this)},be(ir);function ri(e,t,i,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),_r(e),Fr(e,i);var d=r?r(e):1;d!=e.height&&Yt(e,d)}function ii(e){e.parent=null,_r(e)}var Xt={},on={};function $t(e,t){if(!e||/^\s*$/.test(e))return null;var i=t.addModeClass?on:Xt;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))}function dn(e,t){var i=D("span",null,null,_?"padding-right: .1px":null),r={pre:D("pre",[i],"CodeMirror-line"),content:i,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var d=0;d<=(t.rest?t.rest.length:0);d++){var k=d?t.rest[d-1]:t.line,X=void 0;r.pos=0,r.addToken=wn,gt(e.display.measure)&&(X=wt(k,e.doc.direction))&&(r.addToken=xn(r.addToken,X)),r.map=[];var Z=t!=e.display.externalMeasured&&Mt(k);fn(k,r,ot(e,k,Z)),k.styleClasses&&(k.styleClasses.bgClass&&(r.bgClass=W(k.styleClasses.bgClass,r.bgClass||"")),k.styleClasses.textClass&&(r.textClass=W(k.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(Tt(e.display.measure))),d==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(_){var $=r.content.lastChild;(/\bcm-tab\b/.test($.className)||$.querySelector&&$.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return He(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=W(r.pre.className,r.textClass||"")),r}function En(e){var t=l("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function wn(e,t,i,r,d,k,X){if(!t)return;var Z=e.splitSpaces?gn(t,e.trailingSpace):t,$=e.cm.state.specialChars,ne=!1,Ce;if(!$.test(t))e.col+=t.length,Ce=document.createTextNode(Z),e.map.push(e.pos,e.pos+t.length,Ce),j&&U<9&&(ne=!0),e.pos+=t.length;else{Ce=document.createDocumentFragment();for(var Re=0;;){$.lastIndex=Re;var Ye=$.exec(t),ze=Ye?Ye.index-Re:t.length-Re;if(ze){var ht=document.createTextNode(Z.slice(Re,Re+ze));j&&U<9?Ce.appendChild(l("span",[ht])):Ce.appendChild(ht),e.map.push(e.pos,e.pos+ze,ht),e.col+=ze,e.pos+=ze}if(!Ye)break;Re+=ze+1;var Et=void 0;if(Ye[0]==" "){var Dt=e.cm.options.tabSize,Pt=Dt-e.col%Dt;Et=Ce.appendChild(l("span",he(Pt),"cm-tab")),Et.setAttribute("role","presentation"),Et.setAttribute("cm-text"," "),e.col+=Pt}else Ye[0]=="\r"||Ye[0]==` -`?(Et=Ce.appendChild(l("span",Ye[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Et.setAttribute("cm-text",Ye[0]),e.col+=1):(Et=e.cm.options.specialCharPlaceholder(Ye[0]),Et.setAttribute("cm-text",Ye[0]),j&&U<9?Ce.appendChild(l("span",[Et])):Ce.appendChild(Et),e.col+=1);e.map.push(e.pos,e.pos+1,Et),e.pos++}}if(e.trailingSpace=Z.charCodeAt(t.length-1)==32,i||r||d||ne||k||X){var Wt=i||"";r&&(Wt+=r),d&&(Wt+=d);var kt=l("span",[Ce],Wt,k);if(X)for(var Vt in X)X.hasOwnProperty(Vt)&&Vt!="style"&&Vt!="class"&&kt.setAttribute(Vt,X[Vt]);return e.content.appendChild(kt)}e.content.appendChild(Ce)}function gn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var i=t,r="",d=0;dne&&Re.from<=ne);Ye++);if(Re.to>=Ce)return e(i,r,d,k,X,Z,$);e(i,r.slice(0,Re.to-ne),d,k,null,Z,$),k=null,r=r.slice(Re.to-ne),ne=Re.to}}}function Hn(e,t,i,r){var d=!r&&i.widgetNode;d&&e.map.push(e.pos,e.pos+t,d),!r&&e.cm.display.input.needsContentAttribute&&(d||(d=e.content.appendChild(document.createElement("span"))),d.setAttribute("cm-marker",i.id)),d&&(e.cm.display.input.setUneditable(d),e.content.appendChild(d)),e.pos+=t,e.trailingSpace=!1}function fn(e,t,i){var r=e.markedSpans,d=e.text,k=0;if(!r){for(var X=1;X$||vn.collapsed&&an.to==$&&an.from==$)){if(an.to!=null&&an.to!=$&&ze>an.to&&(ze=an.to,Et=""),vn.className&&(ht+=" "+vn.className),vn.css&&(Ye=(Ye?Ye+";":"")+vn.css),vn.startStyle&&an.from==$&&(Dt+=" "+vn.startStyle),vn.endStyle&&an.to==ze&&(Vt||(Vt=[])).push(vn.endStyle,an.to),vn.title&&((Wt||(Wt={})).title=vn.title),vn.attributes)for(var Pn in vn.attributes)(Wt||(Wt={}))[Pn]=vn.attributes[Pn];vn.collapsed&&(!Pt||kn(Pt.marker,vn)<0)&&(Pt=an)}else an.from>$&&ze>an.from&&(ze=an.from)}if(Vt)for(var $n=0;$n=Z)break;for(var Lr=Math.min(Z,ze);;){if(Ce){var Cr=$+Ce.length;if(!Pt){var zn=Cr>Lr?Ce.slice(0,Lr-$):Ce;t.addToken(t,zn,Re?Re+ht:ht,Dt,$+zn.length==ze?Et:"",Ye,Wt)}if(Cr>=Lr){Ce=Ce.slice(Lr-$),$=Lr;break}$=Cr,Dt=""}Ce=d.slice(k,k=i[ne++]),Re=$t(i[ne++],t.cm.options)}}}function Pr(e,t,i){this.line=t,this.rest=jr(t),this.size=this.rest?Mt(te(this.rest))-i+1:1,this.node=this.text=null,this.hidden=rr(e,t)}function Ht(e,t,i){for(var r=[],d,k=t;k2&&k.push(($.bottom+ne.top)/2-i.top)}}k.push(i.bottom-i.top)}}function Di(e,t,i){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;ri)return{map:e.measure.maps[d],cache:e.measure.caches[d],before:!0}}function io(e,t){t=Qn(t);var i=Mt(t),r=e.display.externalMeasured=new Pr(e.doc,t,i);r.lineN=i;var d=r.built=dn(e,r);return r.text=d.pre,s(e.display.lineMeasure,d.pre),r}function Vi(e,t,i,r){return mr(e,li(e,t),i,r)}function Xi(e,t){if(t>=e.display.viewFrom&&t=i.lineN&&tt)&&(k=$-Z,d=k-1,t>=$&&(X="right")),d!=null){if(r=e[ne+2],Z==$&&i==(r.insertLeft?"left":"right")&&(X=i),i=="left"&&d==0)for(;ne&&e[ne-2]==e[ne-3]&&e[ne-1].insertLeft;)r=e[(ne-=3)+2],X="left";if(i=="right"&&d==$-Z)for(;ne=0&&!((i=e[d]).left!=i.right);d--);return i}function Ri(e,t,i,r){var d=Yi(t.map,i,r),k=d.node,X=d.start,Z=d.end,$=d.collapse,ne;if(k.nodeType==3){for(var Ce=0;Ce<4;Ce++){for(;X&&Qe(t.line.text.charAt(d.coverStart+X));)--X;for(;d.coverStart+Z0&&($=r="right");var Re;e.options.lineWrapping&&(Re=k.getClientRects()).length>1?ne=Re[r=="right"?Re.length-1:0]:ne=k.getBoundingClientRect()}if(j&&U<9&&!X&&(!ne||!ne.left&&!ne.right)){var Ye=k.parentNode.getClientRects()[0];Ye?ne={left:Ye.left,right:Ye.left+me(e.display),top:Ye.top,bottom:Ye.bottom}:ne=Qi}for(var ze=ne.top-t.rect.top,ht=ne.bottom-t.rect.top,Et=(ze+ht)/2,Dt=t.view.measure.heights,Pt=0;Pt=r.text.length?($=r.text.length,ne="before"):$<=0&&($=0,ne="after"),!Z)return X(ne=="before"?$-1:$,ne=="before");function Ce(ht,Et,Dt){var Pt=Z[Et],Wt=Pt.level==1;return X(Dt?ht-1:ht,Wt!=Dt)}var Re=pt(Z,$,ne),Ye=dt,ze=Ce($,Re,ne=="before");return Ye!=null&&(ze.other=Ce($,Ye,ne!="before")),ze}function Ia(e,t){var i=0;t=b(e.doc,t),e.options.lineWrapping||(i=me(e.display)*t.ch);var r=St(e.doc,t.line),d=Er(r)+yi(e.display);return{left:i,right:i,top:d,bottom:d+r.height}}function Kr(e,t,i,r,d){var k=lt(e,t,i);return k.xRel=d,r&&(k.outside=r),k}function $i(e,t,i){var r=e.doc;if(i+=e.display.viewOffset,i<0)return Kr(r.first,0,null,-1,-1);var d=tn(r,i),k=r.first+r.size-1;if(d>k)return Kr(r.first+r.size-1,St(r,k).text.length,null,1,1);t<0&&(t=0);for(var X=St(r,d);;){var Z=ka(e,X,d,t,i),$=wr(X,Z.ch+(Z.xRel>0||Z.outside>0?1:0));if(!$)return Z;var ne=$.find(1);if(ne.line==d)return ne;X=St(r,d=ne.line)}}function _a(e,t,i,r){r-=Zi(t);var d=t.text.length,k=yt(function(X){return mr(e,i,X-1).bottom<=r},d,0);return d=yt(function(X){return mr(e,i,X).top>r},k,d),{begin:k,end:d}}function Pa(e,t,i,r){i||(i=li(e,t));var d=Oi(e,t,mr(e,i,r),"line").top;return _a(e,t,i,d)}function ea(e,t,i,r){return e.bottom<=i?!1:e.top>i?!0:(r?e.left:e.right)>t}function ka(e,t,i,r,d){d-=Er(t);var k=li(e,t),X=Zi(t),Z=0,$=t.text.length,ne=!0,Ce=wt(t,e.doc.direction);if(Ce){var Re=(e.options.lineWrapping?Ba:Na)(e,t,i,k,Ce,r,d);ne=Re.level!=1,Z=ne?Re.from:Re.to-1,$=ne?Re.to:Re.from-1}var Ye=null,ze=null,ht=yt(function(sn){var an=mr(e,k,sn);return an.top+=X,an.bottom+=X,ea(an,r,d,!1)?(an.top<=d&&an.left<=r&&(Ye=sn,ze=an),!0):!1},Z,$),Et,Dt,Pt=!1;if(ze){var Wt=r-ze.left=Vt.bottom?1:0}return ht=Ze(t.text,ht,1),Kr(i,ht,Dt,Pt,r-Et)}function Na(e,t,i,r,d,k,X){var Z=yt(function(Re){var Ye=d[Re],ze=Ye.level!=1;return ea(kr(e,lt(i,ze?Ye.to:Ye.from,ze?"before":"after"),"line",t,r),k,X,!0)},0,d.length-1),$=d[Z];if(Z>0){var ne=$.level!=1,Ce=kr(e,lt(i,ne?$.from:$.to,ne?"after":"before"),"line",t,r);ea(Ce,k,X,!0)&&Ce.top>X&&($=d[Z-1])}return $}function Ba(e,t,i,r,d,k,X){var Z=_a(e,t,r,X),$=Z.begin,ne=Z.end;/\s/.test(t.text.charAt(ne-1))&&ne--;for(var Ce=null,Re=null,Ye=0;Ye=ne||ze.to<=$)continue;var ht=ze.level!=1,Et=mr(e,r,ht?Math.min(ne,ze.to)-1:Math.max($,ze.from)).right,Dt=EtDt)&&(Ce=ze,Re=Dt)}return Ce||(Ce=d[d.length-1]),Ce.from<$&&(Ce={from:$,to:Ce.to,level:Ce.level}),Ce.to>ne&&(Ce={from:Ce.from,to:ne,level:Ce.level}),Ce}var Vr;function Ut(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Vr==null){Vr=l("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Vr.appendChild(document.createTextNode("x")),Vr.appendChild(l("br"));Vr.appendChild(document.createTextNode("x"))}s(e.measure,Vr);var i=Vr.offsetHeight/50;return i>3&&(e.cachedTextHeight=i),h(e.measure),i||1}function me(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=l("span","xxxxxxxxxx"),i=l("pre",[t],"CodeMirror-line-like");s(e.measure,i);var r=t.getBoundingClientRect(),d=(r.right-r.left)/10;return d>2&&(e.cachedCharWidth=d),d||10}function ct(e){for(var t=e.display,i={},r={},d=t.gutters.clientLeft,k=t.gutters.firstChild,X=0;k;k=k.nextSibling,++X){var Z=e.display.gutterSpecs[X].className;i[Z]=k.offsetLeft+k.clientLeft+d,r[Z]=k.clientWidth}return{fixedPos:rt(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:i,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function rt(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function _t(e){var t=Ut(e.display),i=e.options.lineWrapping,r=i&&Math.max(5,e.display.scroller.clientWidth/me(e.display)-3);return function(d){if(rr(e.doc,d))return 0;var k=0;if(d.widgets)for(var X=0;X0&&(ne=St(e.doc,$.line).text).length==$.ch){var Ce=q(ne,ne.length,e.options.tabSize)-ne.length;$=lt($.line,Math.max(0,Math.round((k-Da(e.display).left)/me(e.display))-Ce))}return $}function Nt(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var i=e.display.view,r=0;rt)&&(d.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=d.viewTo)Vn&&Dr(e.doc,t)d.viewFrom?jt(e):(d.viewFrom+=r,d.viewTo+=r);else if(t<=d.viewFrom&&i>=d.viewTo)jt(e);else if(t<=d.viewFrom){var k=rn(e,i,i+r,1);k?(d.view=d.view.slice(k.index),d.viewFrom=k.lineN,d.viewTo+=r):jt(e)}else if(i>=d.viewTo){var X=rn(e,t,t,-1);X?(d.view=d.view.slice(0,X.index),d.viewTo=X.lineN):jt(e)}else{var Z=rn(e,t,t,-1),$=rn(e,i,i+r,1);Z&&$?(d.view=d.view.slice(0,Z.index).concat(Ht(e,Z.lineN,$.lineN)).concat(d.view.slice($.index)),d.viewTo+=r):jt(e)}var ne=d.externalMeasured;ne&&(i=d.lineN&&t=r.viewTo)return;var k=r.view[Nt(e,t)];if(k.node==null)return;var X=k.changes||(k.changes=[]);pe(X,i)==-1&&X.push(i)}function jt(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function rn(e,t,i,r){var d=Nt(e,t),k,X=e.display.view;if(!Vn||i==e.doc.first+e.doc.size)return{index:d,lineN:i};for(var Z=e.display.viewFrom,$=0;$0){if(d==X.length-1)return null;k=Z+X[d].size-t,d++}else k=Z-t;t+=k,i+=k}for(;Dr(e.doc,i)!=i;){if(d==(r<0?0:X.length-1))return null;i+=r*X[d-(r<0?1:0)].size,d+=r}return{index:d,lineN:i}}function Mn(e,t,i){var r=e.display,d=r.view;d.length==0||t>=r.viewTo||i<=r.viewFrom?(r.view=Ht(e,t,i),r.viewFrom=t):(r.viewFrom>t?r.view=Ht(e,t,r.viewFrom).concat(r.view):r.viewFromi&&(r.view=r.view.slice(0,Nt(e,i)))),r.viewTo=i}function Nn(e){for(var t=e.display.view,i=0,r=0;r=e.display.viewTo||Z.to().line0?t.blinker=setInterval(function(){e.hasFocus()||Mi(e),t.cursorDiv.style.visibility=(i=!i)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}function Po(e){e.state.focused||(e.display.input.focus(),lo(e))}function ko(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Mi(e))},100)}function lo(e,t){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(He(e,"focus",e,t),e.state.focused=!0,C(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),_&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),so(e)}function Mi(e,t){if(e.state.delayingBlurEvent)return;e.state.focused&&(He(e,"blur",e,t),e.state.focused=!1,p(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function Fa(e){for(var t=e.display,i=t.lineDiv.offsetTop,r=0;r.005||Ce<-.005)&&(Yt(d.line,X),No(d.line),d.rest))for(var Re=0;Ree.display.sizerWidth){var Ye=Math.ceil(Z/me(e.display));Ye>e.display.maxLineLength&&(e.display.maxLineLength=Ye,e.display.maxLine=d.line,e.display.maxLineChanged=!0)}}}function No(e){if(e.widgets)for(var t=0;t=X&&(k=tn(t,Er(St(t,$))-e.wrapper.clientHeight),X=$)}return{from:k,to:Math.max(X,k+1)}}function Qs(e,t){if(nt(e,"scrollCursorIntoView"))return;var i=e.display,r=i.sizer.getBoundingClientRect(),d=null;if(t.top+r.top<0?d=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(d=!1),d!=null&&!f){var k=l("div","\u200B",null,`position: absolute; +`,t);d==-1&&(d=e.length);var P=e.slice(t,e.charAt(d-1)=="\r"?d-1:d),X=P.indexOf("\r");X!=-1?(i.push(P.slice(0,X)),t+=X+1):(i.push(P),t=d+1)}return i}:function(e){return e.split(/\r\n?|\n/)},Xe=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(i){}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},ke=function(){var e=l("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),se=null;function fe(e){if(se!=null)return se;var t=s(e,l("span","x")),i=t.getBoundingClientRect(),r=T(t,0,1).getBoundingClientRect();return se=Math.abs(i.left-r.left)>1}var $e={},Pe={};function it(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),$e[e]=t}function at(e,t){Pe[e]=t}function Ne(e){if(typeof e=="string"&&Pe.hasOwnProperty(e))e=Pe[e];else if(e&&typeof e.name=="string"&&Pe.hasOwnProperty(e.name)){var t=Pe[e.name];typeof t=="string"&&(t={name:t}),e=ae(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ne("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ne("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Ve(e,t){t=Ne(t);var i=$e[t.name];if(!i)return Ve(e,"text/plain");var r=i(e,t);if(tt.hasOwnProperty(t.name)){var d=tt[t.name];for(var P in d){if(!d.hasOwnProperty(P))continue;r.hasOwnProperty(P)&&(r["_"+P]=r[P]),r[P]=d[P]}}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var X in t.modeProps)r[X]=t.modeProps[X];return r}var tt={};function ft(e,t){var i=tt.hasOwnProperty(e)?tt[e]:tt[e]={};F(t,i)}function Ct(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var i={};for(var r in t){var d=t[r];d instanceof Array&&(d=d.concat([])),i[r]=d}return i}function zt(e,t){for(var i;e.innerMode&&!(i=e.innerMode(t),!i||i.mode==e);)t=i.state,e=i.mode;return i||{mode:e,state:t}}function qt(e,t,i){return e.startState?e.startState(t,i):!0}var Qt=function(e,t,i){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i};Qt.prototype.eol=function(){return this.pos>=this.string.length},Qt.prototype.sol=function(){return this.pos==this.lineStart},Qt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Qt.prototype.next=function(){if(this.post},Qt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Qt.prototype.skipToEnd=function(){this.pos=this.string.length},Qt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Qt.prototype.backUp=function(e){this.pos-=e},Qt.prototype.column=function(){return this.lastColumnPos0?null:(P&&t!==!1&&(this.pos+=P[0].length),P)}},Qt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Qt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Qt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Qt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function St(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var i=e;!i.lines;)for(var r=0;;++r){var d=i.children[r],P=d.chunkSize();if(t=e.first&&ti?lt(i,St(e,i).text.length):L(t,St(e,t.line).text.length)}function L(e,t){var i=e.ch;return i==null||i>t?lt(e.line,t):i<0?lt(e.line,0):e}function V(e,t){for(var i=[],r=0;rthis.maxLookAhead&&(this.maxLookAhead=e),t},Q.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Q.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Q.fromSaved=function(e,t,i){return t instanceof J?new Q(e,Ct(e.mode,t.state),i,t.lookAhead):new Q(e,Ct(e.mode,t),i)},Q.prototype.save=function(e){var t=e!==!1?Ct(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new J(t,this.maxLookAhead):t};function De(e,t,i,r){var d=[e.state.modeGen],P={};tr(e,t.text,e.doc.mode,i,function(ne,Ce){return d.push(ne,Ce)},P,r);for(var X=i.state,Z=function(ne){i.baseTokens=d;var Ce=e.state.overlays[ne],Re=1,Ye=0;i.state=!0,tr(e,t.text,Ce.mode,i,function(ze,ht){for(var Et=Re;Yeze&&d.splice(Re,1,ze,d[Re+1],Dt),Re+=2,Ye=Math.min(ze,Dt)}if(!ht)return;if(Ce.opaque)d.splice(Et,Re-Et,ze,"overlay "+ht),Re=Et+2;else for(;Ete.options.maxHighlightLength&&Ct(e.doc.mode,r.state),P=De(e,t,r);d&&(r.state=d),t.stateAfter=r.save(!d),t.styles=P.styles,P.classes?t.styleClasses=P.classes:t.styleClasses&&(t.styleClasses=null),i===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Ot(e,t,i){var r=e.doc,d=e.display;if(!r.mode.startState)return new Q(r,!0,t);var P=Rn(e,t,i),X=P>r.first&&St(r,P-1).stateAfter,Z=X?Q.fromSaved(r,X,P):new Q(r,qt(r.mode),P);return r.iter(P,t,function($){Ft(e,$.text,Z);var ne=Z.line;$.stateAfter=ne==t-1||ne%5==0||ne>=d.viewFrom&&net.start)return P}throw new Error("Mode "+e.name+" failed to advance stream.")}var en=function(e,t,i){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=i};function Tn(e,t,i,r){var d=e.doc,P=d.mode,X;t=b(d,t);var Z=St(d,t.line),$=Ot(e,t.line,i),ne=new Qt(Z.text,e.options.tabSize,$),Ce;for(r&&(Ce=[]);(r||ne.pose.options.maxHighlightLength?(Z=!1,X&&Ft(e,t,r,Ce.pos),Ce.pos=t.length,Re=null):Re=Wn(Gt(i,Ce,r.state,Ye),P),Ye){var ze=Ye[0].name;ze&&(Re="m-"+(Re?ze+" "+Re:ze))}if(!Z||ne!=Re){for(;$X;--Z){if(Z<=P.first)return P.first;var $=St(P,Z-1),ne=$.stateAfter;if(ne&&(!i||Z+(ne instanceof J?ne.lookAhead:0)<=P.modeFrontier))return Z;var Ce=q($.text,null,e.options.tabSize);(d==null||r>Ce)&&(d=Z-1,r=Ce)}return d}function or(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),e.highlightFrontieri;r--){var d=St(e,r).stateAfter;if(d&&(!(d instanceof J)||r+d.lookAhead=t:P.to>t);(r||(r=[])).push(new Mr(X,P.from,$?null:P.to))}}return r}function Yr(e,t,i){var r;if(e)for(var d=0;d=t:P.to>t);if(Z||P.from==t&&X.type=="bookmark"&&(!i||P.marker.insertLeft)){var $=P.from==null||(X.inclusiveLeft?P.from<=t:P.from0&&Z)for(var Vt=0;Vt0)continue;var Ce=[$,1],Re=Rt(ne.from,Z.from),Ye=Rt(ne.to,Z.to);(Re<0||!X.inclusiveLeft&&!Re)&&Ce.push({from:ne.from,to:Z.from}),(Ye>0||!X.inclusiveRight&&!Ye)&&Ce.push({from:Z.to,to:ne.to}),d.splice.apply(d,Ce),$+=Ce.length-3}return d}function _r(e){var t=e.markedSpans;if(!t)return;for(var i=0;it)&&(!r||Pn(r,P.marker)<0)&&(r=P.marker)}return r}function Bn(e,t,i,r,d){var P=St(e,t),X=Vn&&P.markedSpans;if(X)for(var Z=0;Z=0&&Re<=0||Ce<=0&&Re>=0)continue;if(Ce<=0&&($.marker.inclusiveRight&&d.inclusiveLeft?Rt(ne.to,i)>=0:Rt(ne.to,i)>0)||Ce>=0&&($.marker.inclusiveRight&&d.inclusiveLeft?Rt(ne.from,r)<=0:Rt(ne.from,r)<0))return!0}}function Qn(e){for(var t;t=Ln(e);)e=t.find(-1,!0).line;return e}function zr(e){for(var t;t=bn(e);)e=t.find(1,!0).line;return e}function jr(e){for(var t,i;t=bn(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}function Dr(e,t){var i=St(e,t),r=Qn(i);return i==r?t:Mt(r)}function Jr(e,t){if(t>e.lastLine())return t;var i=St(e,t),r;if(!rr(e,i))return t;for(;r=bn(i);)i=r.find(1,!0).line;return Mt(i)+1}function rr(e,t){var i=Vn&&t.markedSpans;if(i)for(var r=void 0,d=0;dt.maxLineLength&&(t.maxLineLength=d,t.maxLine=r)})}var ir=function(e,t,i){this.text=e,Fr(this,t),this.height=i?i(this):1};ir.prototype.lineNo=function(){return Mt(this)},be(ir);function ri(e,t,i,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),_r(e),Fr(e,i);var d=r?r(e):1;d!=e.height&&Yt(e,d)}function ii(e){e.parent=null,_r(e)}var Xt={},on={};function $t(e,t){if(!e||/^\s*$/.test(e))return null;var i=t.addModeClass?on:Xt;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))}function dn(e,t){var i=D("span",null,null,_?"padding-right: .1px":null),r={pre:D("pre",[i],"CodeMirror-line"),content:i,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var d=0;d<=(t.rest?t.rest.length:0);d++){var P=d?t.rest[d-1]:t.line,X=void 0;r.pos=0,r.addToken=wn,gt(e.display.measure)&&(X=wt(P,e.doc.direction))&&(r.addToken=xn(r.addToken,X)),r.map=[];var Z=t!=e.display.externalMeasured&&Mt(P);fn(P,r,ot(e,P,Z)),P.styleClasses&&(P.styleClasses.bgClass&&(r.bgClass=W(P.styleClasses.bgClass,r.bgClass||"")),P.styleClasses.textClass&&(r.textClass=W(P.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(Tt(e.display.measure))),d==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(_){var $=r.content.lastChild;(/\bcm-tab\b/.test($.className)||$.querySelector&&$.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return He(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=W(r.pre.className,r.textClass||"")),r}function En(e){var t=l("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function wn(e,t,i,r,d,P,X){if(!t)return;var Z=e.splitSpaces?gn(t,e.trailingSpace):t,$=e.cm.state.specialChars,ne=!1,Ce;if(!$.test(t))e.col+=t.length,Ce=document.createTextNode(Z),e.map.push(e.pos,e.pos+t.length,Ce),j&&U<9&&(ne=!0),e.pos+=t.length;else{Ce=document.createDocumentFragment();for(var Re=0;;){$.lastIndex=Re;var Ye=$.exec(t),ze=Ye?Ye.index-Re:t.length-Re;if(ze){var ht=document.createTextNode(Z.slice(Re,Re+ze));j&&U<9?Ce.appendChild(l("span",[ht])):Ce.appendChild(ht),e.map.push(e.pos,e.pos+ze,ht),e.col+=ze,e.pos+=ze}if(!Ye)break;Re+=ze+1;var Et=void 0;if(Ye[0]==" "){var Dt=e.cm.options.tabSize,kt=Dt-e.col%Dt;Et=Ce.appendChild(l("span",he(kt),"cm-tab")),Et.setAttribute("role","presentation"),Et.setAttribute("cm-text"," "),e.col+=kt}else Ye[0]=="\r"||Ye[0]==` +`?(Et=Ce.appendChild(l("span",Ye[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Et.setAttribute("cm-text",Ye[0]),e.col+=1):(Et=e.cm.options.specialCharPlaceholder(Ye[0]),Et.setAttribute("cm-text",Ye[0]),j&&U<9?Ce.appendChild(l("span",[Et])):Ce.appendChild(Et),e.col+=1);e.map.push(e.pos,e.pos+1,Et),e.pos++}}if(e.trailingSpace=Z.charCodeAt(t.length-1)==32,i||r||d||ne||P||X){var Wt=i||"";r&&(Wt+=r),d&&(Wt+=d);var Pt=l("span",[Ce],Wt,P);if(X)for(var Vt in X)X.hasOwnProperty(Vt)&&Vt!="style"&&Vt!="class"&&Pt.setAttribute(Vt,X[Vt]);return e.content.appendChild(Pt)}e.content.appendChild(Ce)}function gn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var i=t,r="",d=0;dne&&Re.from<=ne);Ye++);if(Re.to>=Ce)return e(i,r,d,P,X,Z,$);e(i,r.slice(0,Re.to-ne),d,P,null,Z,$),P=null,r=r.slice(Re.to-ne),ne=Re.to}}}function Hn(e,t,i,r){var d=!r&&i.widgetNode;d&&e.map.push(e.pos,e.pos+t,d),!r&&e.cm.display.input.needsContentAttribute&&(d||(d=e.content.appendChild(document.createElement("span"))),d.setAttribute("cm-marker",i.id)),d&&(e.cm.display.input.setUneditable(d),e.content.appendChild(d)),e.pos+=t,e.trailingSpace=!1}function fn(e,t,i){var r=e.markedSpans,d=e.text,P=0;if(!r){for(var X=1;X$||vn.collapsed&&an.to==$&&an.from==$)){if(an.to!=null&&an.to!=$&&ze>an.to&&(ze=an.to,Et=""),vn.className&&(ht+=" "+vn.className),vn.css&&(Ye=(Ye?Ye+";":"")+vn.css),vn.startStyle&&an.from==$&&(Dt+=" "+vn.startStyle),vn.endStyle&&an.to==ze&&(Vt||(Vt=[])).push(vn.endStyle,an.to),vn.title&&((Wt||(Wt={})).title=vn.title),vn.attributes)for(var kn in vn.attributes)(Wt||(Wt={}))[kn]=vn.attributes[kn];vn.collapsed&&(!kt||Pn(kt.marker,vn)<0)&&(kt=an)}else an.from>$&&ze>an.from&&(ze=an.from)}if(Vt)for(var $n=0;$n=Z)break;for(var Lr=Math.min(Z,ze);;){if(Ce){var Cr=$+Ce.length;if(!kt){var zn=Cr>Lr?Ce.slice(0,Lr-$):Ce;t.addToken(t,zn,Re?Re+ht:ht,Dt,$+zn.length==ze?Et:"",Ye,Wt)}if(Cr>=Lr){Ce=Ce.slice(Lr-$),$=Lr;break}$=Cr,Dt=""}Ce=d.slice(P,P=i[ne++]),Re=$t(i[ne++],t.cm.options)}}}function kr(e,t,i){this.line=t,this.rest=jr(t),this.size=this.rest?Mt(te(this.rest))-i+1:1,this.node=this.text=null,this.hidden=rr(e,t)}function Ht(e,t,i){for(var r=[],d,P=t;P2&&P.push(($.bottom+ne.top)/2-i.top)}}P.push(i.bottom-i.top)}}function Di(e,t,i){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;ri)return{map:e.measure.maps[d],cache:e.measure.caches[d],before:!0}}function io(e,t){t=Qn(t);var i=Mt(t),r=e.display.externalMeasured=new kr(e.doc,t,i);r.lineN=i;var d=r.built=dn(e,r);return r.text=d.pre,s(e.display.lineMeasure,d.pre),r}function Vi(e,t,i,r){return mr(e,li(e,t),i,r)}function Xi(e,t){if(t>=e.display.viewFrom&&t=i.lineN&&tt)&&(P=$-Z,d=P-1,t>=$&&(X="right")),d!=null){if(r=e[ne+2],Z==$&&i==(r.insertLeft?"left":"right")&&(X=i),i=="left"&&d==0)for(;ne&&e[ne-2]==e[ne-3]&&e[ne-1].insertLeft;)r=e[(ne-=3)+2],X="left";if(i=="right"&&d==$-Z)for(;ne=0&&!((i=e[d]).left!=i.right);d--);return i}function Ri(e,t,i,r){var d=Yi(t.map,i,r),P=d.node,X=d.start,Z=d.end,$=d.collapse,ne;if(P.nodeType==3){for(var Ce=0;Ce<4;Ce++){for(;X&&Qe(t.line.text.charAt(d.coverStart+X));)--X;for(;d.coverStart+Z0&&($=r="right");var Re;e.options.lineWrapping&&(Re=P.getClientRects()).length>1?ne=Re[r=="right"?Re.length-1:0]:ne=P.getBoundingClientRect()}if(j&&U<9&&!X&&(!ne||!ne.left&&!ne.right)){var Ye=P.parentNode.getClientRects()[0];Ye?ne={left:Ye.left,right:Ye.left+me(e.display),top:Ye.top,bottom:Ye.bottom}:ne=Qi}for(var ze=ne.top-t.rect.top,ht=ne.bottom-t.rect.top,Et=(ze+ht)/2,Dt=t.view.measure.heights,kt=0;kt=r.text.length?($=r.text.length,ne="before"):$<=0&&($=0,ne="after"),!Z)return X(ne=="before"?$-1:$,ne=="before");function Ce(ht,Et,Dt){var kt=Z[Et],Wt=kt.level==1;return X(Dt?ht-1:ht,Wt!=Dt)}var Re=pt(Z,$,ne),Ye=dt,ze=Ce($,Re,ne=="before");return Ye!=null&&(ze.other=Ce($,Ye,ne!="before")),ze}function Ia(e,t){var i=0;t=b(e.doc,t),e.options.lineWrapping||(i=me(e.display)*t.ch);var r=St(e.doc,t.line),d=Er(r)+yi(e.display);return{left:i,right:i,top:d,bottom:d+r.height}}function Kr(e,t,i,r,d){var P=lt(e,t,i);return P.xRel=d,r&&(P.outside=r),P}function $i(e,t,i){var r=e.doc;if(i+=e.display.viewOffset,i<0)return Kr(r.first,0,null,-1,-1);var d=tn(r,i),P=r.first+r.size-1;if(d>P)return Kr(r.first+r.size-1,St(r,P).text.length,null,1,1);t<0&&(t=0);for(var X=St(r,d);;){var Z=Pa(e,X,d,t,i),$=wr(X,Z.ch+(Z.xRel>0||Z.outside>0?1:0));if(!$)return Z;var ne=$.find(1);if(ne.line==d)return ne;X=St(r,d=ne.line)}}function _a(e,t,i,r){r-=Zi(t);var d=t.text.length,P=yt(function(X){return mr(e,i,X-1).bottom<=r},d,0);return d=yt(function(X){return mr(e,i,X).top>r},P,d),{begin:P,end:d}}function ka(e,t,i,r){i||(i=li(e,t));var d=Oi(e,t,mr(e,i,r),"line").top;return _a(e,t,i,d)}function ea(e,t,i,r){return e.bottom<=i?!1:e.top>i?!0:(r?e.left:e.right)>t}function Pa(e,t,i,r,d){d-=Er(t);var P=li(e,t),X=Zi(t),Z=0,$=t.text.length,ne=!0,Ce=wt(t,e.doc.direction);if(Ce){var Re=(e.options.lineWrapping?Ba:Na)(e,t,i,P,Ce,r,d);ne=Re.level!=1,Z=ne?Re.from:Re.to-1,$=ne?Re.to:Re.from-1}var Ye=null,ze=null,ht=yt(function(sn){var an=mr(e,P,sn);return an.top+=X,an.bottom+=X,ea(an,r,d,!1)?(an.top<=d&&an.left<=r&&(Ye=sn,ze=an),!0):!1},Z,$),Et,Dt,kt=!1;if(ze){var Wt=r-ze.left=Vt.bottom?1:0}return ht=Ze(t.text,ht,1),Kr(i,ht,Dt,kt,r-Et)}function Na(e,t,i,r,d,P,X){var Z=yt(function(Re){var Ye=d[Re],ze=Ye.level!=1;return ea(Pr(e,lt(i,ze?Ye.to:Ye.from,ze?"before":"after"),"line",t,r),P,X,!0)},0,d.length-1),$=d[Z];if(Z>0){var ne=$.level!=1,Ce=Pr(e,lt(i,ne?$.from:$.to,ne?"after":"before"),"line",t,r);ea(Ce,P,X,!0)&&Ce.top>X&&($=d[Z-1])}return $}function Ba(e,t,i,r,d,P,X){var Z=_a(e,t,r,X),$=Z.begin,ne=Z.end;/\s/.test(t.text.charAt(ne-1))&&ne--;for(var Ce=null,Re=null,Ye=0;Ye=ne||ze.to<=$)continue;var ht=ze.level!=1,Et=mr(e,r,ht?Math.min(ne,ze.to)-1:Math.max($,ze.from)).right,Dt=EtDt)&&(Ce=ze,Re=Dt)}return Ce||(Ce=d[d.length-1]),Ce.from<$&&(Ce={from:$,to:Ce.to,level:Ce.level}),Ce.to>ne&&(Ce={from:Ce.from,to:ne,level:Ce.level}),Ce}var Vr;function Ut(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Vr==null){Vr=l("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Vr.appendChild(document.createTextNode("x")),Vr.appendChild(l("br"));Vr.appendChild(document.createTextNode("x"))}s(e.measure,Vr);var i=Vr.offsetHeight/50;return i>3&&(e.cachedTextHeight=i),h(e.measure),i||1}function me(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=l("span","xxxxxxxxxx"),i=l("pre",[t],"CodeMirror-line-like");s(e.measure,i);var r=t.getBoundingClientRect(),d=(r.right-r.left)/10;return d>2&&(e.cachedCharWidth=d),d||10}function ct(e){for(var t=e.display,i={},r={},d=t.gutters.clientLeft,P=t.gutters.firstChild,X=0;P;P=P.nextSibling,++X){var Z=e.display.gutterSpecs[X].className;i[Z]=P.offsetLeft+P.clientLeft+d,r[Z]=P.clientWidth}return{fixedPos:rt(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:i,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function rt(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function _t(e){var t=Ut(e.display),i=e.options.lineWrapping,r=i&&Math.max(5,e.display.scroller.clientWidth/me(e.display)-3);return function(d){if(rr(e.doc,d))return 0;var P=0;if(d.widgets)for(var X=0;X0&&(ne=St(e.doc,$.line).text).length==$.ch){var Ce=q(ne,ne.length,e.options.tabSize)-ne.length;$=lt($.line,Math.max(0,Math.round((P-Da(e.display).left)/me(e.display))-Ce))}return $}function Nt(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var i=e.display.view,r=0;rt)&&(d.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=d.viewTo)Vn&&Dr(e.doc,t)d.viewFrom?jt(e):(d.viewFrom+=r,d.viewTo+=r);else if(t<=d.viewFrom&&i>=d.viewTo)jt(e);else if(t<=d.viewFrom){var P=rn(e,i,i+r,1);P?(d.view=d.view.slice(P.index),d.viewFrom=P.lineN,d.viewTo+=r):jt(e)}else if(i>=d.viewTo){var X=rn(e,t,t,-1);X?(d.view=d.view.slice(0,X.index),d.viewTo=X.lineN):jt(e)}else{var Z=rn(e,t,t,-1),$=rn(e,i,i+r,1);Z&&$?(d.view=d.view.slice(0,Z.index).concat(Ht(e,Z.lineN,$.lineN)).concat(d.view.slice($.index)),d.viewTo+=r):jt(e)}var ne=d.externalMeasured;ne&&(i=d.lineN&&t=r.viewTo)return;var P=r.view[Nt(e,t)];if(P.node==null)return;var X=P.changes||(P.changes=[]);pe(X,i)==-1&&X.push(i)}function jt(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function rn(e,t,i,r){var d=Nt(e,t),P,X=e.display.view;if(!Vn||i==e.doc.first+e.doc.size)return{index:d,lineN:i};for(var Z=e.display.viewFrom,$=0;$0){if(d==X.length-1)return null;P=Z+X[d].size-t,d++}else P=Z-t;t+=P,i+=P}for(;Dr(e.doc,i)!=i;){if(d==(r<0?0:X.length-1))return null;i+=r*X[d-(r<0?1:0)].size,d+=r}return{index:d,lineN:i}}function Mn(e,t,i){var r=e.display,d=r.view;d.length==0||t>=r.viewTo||i<=r.viewFrom?(r.view=Ht(e,t,i),r.viewFrom=t):(r.viewFrom>t?r.view=Ht(e,t,r.viewFrom).concat(r.view):r.viewFromi&&(r.view=r.view.slice(0,Nt(e,i)))),r.viewTo=i}function Nn(e){for(var t=e.display.view,i=0,r=0;r=e.display.viewTo||Z.to().line0?t.blinker=setInterval(function(){e.hasFocus()||Mi(e),t.cursorDiv.style.visibility=(i=!i)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}function ko(e){e.state.focused||(e.display.input.focus(),lo(e))}function Po(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Mi(e))},100)}function lo(e,t){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(He(e,"focus",e,t),e.state.focused=!0,C(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),_&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),so(e)}function Mi(e,t){if(e.state.delayingBlurEvent)return;e.state.focused&&(He(e,"blur",e,t),e.state.focused=!1,p(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function Fa(e){for(var t=e.display,i=t.lineDiv.offsetTop,r=0;r.005||Ce<-.005)&&(Yt(d.line,X),No(d.line),d.rest))for(var Re=0;Ree.display.sizerWidth){var Ye=Math.ceil(Z/me(e.display));Ye>e.display.maxLineLength&&(e.display.maxLineLength=Ye,e.display.maxLine=d.line,e.display.maxLineChanged=!0)}}}function No(e){if(e.widgets)for(var t=0;t=X&&(P=tn(t,Er(St(t,$))-e.wrapper.clientHeight),X=$)}return{from:P,to:Math.max(X,P+1)}}function Qs(e,t){if(nt(e,"scrollCursorIntoView"))return;var i=e.display,r=i.sizer.getBoundingClientRect(),d=null;if(t.top+r.top<0?d=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(d=!1),d!=null&&!f){var P=l("div","\u200B",null,`position: absolute; top: `+(t.top-i.viewOffset-yi(e.display))+`px; height: `+(t.bottom-t.top+dr(e)+i.barHeight)+`px; - left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(k),k.scrollIntoView(d),e.display.lineSpace.removeChild(k)}}function Ys(e,t,i,r){r==null&&(r=0);var d;!e.options.lineWrapping&&t==i&&(t=t.ch?lt(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t,i=t.sticky=="before"?lt(t.line,t.ch+1,"before"):t);for(var k=0;k<5;k++){var X=!1,Z=kr(e,t),$=!i||i==t?Z:kr(e,i);d={left:Math.min(Z.left,$.left),top:Math.min(Z.top,$.top)-r,right:Math.max(Z.left,$.left),bottom:Math.max(Z.bottom,$.bottom)+r};var ne=uo(e,d),Ce=e.doc.scrollTop,Re=e.doc.scrollLeft;if(ne.scrollTop!=null&&(na(e,ne.scrollTop),Math.abs(e.doc.scrollTop-Ce)>1&&(X=!0)),ne.scrollLeft!=null&&(Ei(e,ne.scrollLeft),Math.abs(e.doc.scrollLeft-Re)>1&&(X=!0)),!X)break}return d}function Js(e,t){var i=uo(e,t);i.scrollTop!=null&&na(e,i.scrollTop),i.scrollLeft!=null&&Ei(e,i.scrollLeft)}function uo(e,t){var i=e.display,r=Ut(e.display);t.top<0&&(t.top=0);var d=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:i.scroller.scrollTop,k=ei(e),X={};t.bottom-t.top>k&&(t.bottom=t.top+k);var Z=e.doc.height+wa(i),$=t.topZ-r;if(t.topd+k){var Ce=Math.min(t.top,(ne?Z:t.bottom)-k);Ce!=d&&(X.scrollTop=Ce)}var Re=e.options.fixedGutter?0:i.gutters.offsetWidth,Ye=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:i.scroller.scrollLeft-Re,ze=si(e)-i.gutters.offsetWidth,ht=t.right-t.left>ze;return ht&&(t.right=t.left+ze),t.left<10?X.scrollLeft=0:t.leftze+Ye-3&&(X.scrollLeft=t.right+(ht?0:10)-ze),X}function co(e,t){if(t==null)return;Wa(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t}function Ii(e){Wa(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function ta(e,t,i){(t!=null||i!=null)&&Wa(e),t!=null&&(e.curOp.scrollLeft=t),i!=null&&(e.curOp.scrollTop=i)}function Zs(e,t){Wa(e),e.curOp.scrollToPos=t}function Wa(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var i=Ia(e,t.from),r=Ia(e,t.to);Bo(e,i,r,t.margin)}}function Bo(e,t,i,r){var d=uo(e,{left:Math.min(t.left,i.left),top:Math.min(t.top,i.top)-r,right:Math.max(t.right,i.right),bottom:Math.max(t.bottom,i.bottom)+r});ta(e,d.scrollLeft,d.scrollTop)}function na(e,t){if(Math.abs(e.doc.scrollTop-t)<2)return;P||fo(e,{top:t}),Uo(e,t,!0),P&&fo(e),aa(e,100)}function Uo(e,t,i){if(t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),e.display.scroller.scrollTop==t&&!i)return;e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t)}function Ei(e,t,i,r){if(t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(i?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r)return;e.doc.scrollLeft=t,Ko(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t)}function ra(e){var t=e.display,i=t.gutters.offsetWidth,r=Math.round(e.doc.height+wa(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?i:0,docHeight:r,scrollHeight:r+dr(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:i}}var xi=function(e,t,i){this.cm=i;var r=this.vert=l("div",[l("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),d=this.horiz=l("div",[l("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=d.tabIndex=-1,e(r),e(d),we(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),we(d,"scroll",function(){d.clientWidth&&t(d.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,j&&U<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};xi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,i=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(i){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var d=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+d)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=i?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var k=e.viewWidth-e.barLeft-(i?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+k)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(r==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:i?r:0,bottom:t?r:0}},xi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},xi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},xi.prototype.zeroWidthHack=function(){var e=o&&!y?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new le,this.disableVert=new le},xi.prototype.enableZeroWidthBar=function(e,t,i){e.style.pointerEvents="auto";function r(){var d=e.getBoundingClientRect(),k=i=="vert"?document.elementFromPoint(d.right-1,(d.top+d.bottom)/2):document.elementFromPoint((d.right+d.left)/2,d.bottom-1);k!=e?e.style.pointerEvents="none":t.set(1e3,r)}t.set(1e3,r)},xi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var ia=function(){};ia.prototype.update=function(){return{bottom:0,right:0}},ia.prototype.setScrollLeft=function(){},ia.prototype.setScrollTop=function(){},ia.prototype.clear=function(){};function _i(e,t){t||(t=ra(e));var i=e.display.barWidth,r=e.display.barHeight;Fo(e,t);for(var d=0;d<4&&i!=e.display.barWidth||r!=e.display.barHeight;d++)i!=e.display.barWidth&&e.options.lineWrapping&&Fa(e),Fo(e,ra(e)),i=e.display.barWidth,r=e.display.barHeight}function Fo(e,t){var i=e.display,r=i.scrollbars.update(t);i.sizer.style.paddingRight=(i.barWidth=r.right)+"px",i.sizer.style.paddingBottom=(i.barHeight=r.bottom)+"px",i.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(i.scrollbarFiller.style.display="block",i.scrollbarFiller.style.height=r.bottom+"px",i.scrollbarFiller.style.width=r.right+"px"):i.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(i.gutterFiller.style.display="block",i.gutterFiller.style.height=r.bottom+"px",i.gutterFiller.style.width=t.gutterWidth+"px"):i.gutterFiller.style.display=""}var jo={native:xi,null:ia};function Wo(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&p(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new jo[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),we(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,i){i=="horizontal"?Ei(e,t):na(e,t)},e),e.display.scrollbars.addClass&&C(e.display.wrapper,e.display.scrollbars.addClass)}var qs=0;function Ci(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++qs},pr(e.curOp)}function Si(e){var t=e.curOp;t&&Kt(t,function(i){for(var r=0;r=i.viewTo)||i.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Ha(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function tl(e){e.updatedDisplay=e.mustUpdate&&ho(e.cm,e.update)}function nl(e){var t=e.cm,i=t.display;e.updatedDisplay&&Fa(t),e.barMeasure=ra(t),i.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Vi(t,i.maxLine,i.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(i.scroller.clientWidth,i.sizer.offsetLeft+e.adjustWidthTo+dr(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,i.sizer.offsetLeft+e.adjustWidthTo-si(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=i.input.prepareSelection())}function rl(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)return;var i=+new Date+e.options.workTime,r=Ot(e,t.highlightFrontier),d=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(k){if(r.line>=e.display.viewFrom){var X=k.styles,Z=k.text.length>e.options.maxHighlightLength?Ct(t.mode,r.state):null,$=De(e,k,r,!0);Z&&(r.state=Z),k.styles=$.styles;var ne=k.styleClasses,Ce=$.classes;Ce?k.styleClasses=Ce:ne&&(k.styleClasses=null);for(var Re=!X||X.length!=k.styles.length||ne!=Ce&&(!ne||!Ce||ne.bgClass!=Ce.bgClass||ne.textClass!=Ce.textClass),Ye=0;!Re&&Yei)return aa(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),d.length&&Or(e,function(){for(var k=0;k=i.viewFrom&&t.visible.to<=i.viewTo&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo)&&i.renderedView==i.view&&Nn(e)==0)return!1;zo(e)&&(jt(e),t.dims=ct(e));var d=r.first+r.size,k=Math.max(t.visible.from-e.options.viewportMargin,r.first),X=Math.min(d,t.visible.to+e.options.viewportMargin);i.viewFromX&&i.viewTo-X<20&&(X=Math.min(d,i.viewTo)),Vn&&(k=Dr(e.doc,k),X=Jr(e.doc,X));var Z=k!=i.viewFrom||X!=i.viewTo||i.lastWrapHeight!=t.wrapperHeight||i.lastWrapWidth!=t.wrapperWidth;Mn(e,k,X),i.viewOffset=Er(St(e.doc,i.viewFrom)),e.display.mover.style.top=i.viewOffset+"px";var $=Nn(e);if(!Z&&$==0&&!t.force&&i.renderedView==i.view&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo))return!1;var ne=sl(e);return $>4&&(i.lineDiv.style.display="none"),ul(e,i.updateLineNumbers,t.dims),$>4&&(i.lineDiv.style.display=""),i.renderedView=i.view,ll(ne),h(i.cursorDiv),h(i.selectionDiv),i.gutters.style.height=i.sizer.style.minHeight=0,Z&&(i.lastWrapHeight=t.wrapperHeight,i.lastWrapWidth=t.wrapperWidth,aa(e,400)),i.updateLineNumbers=null,!0}function Ho(e,t){for(var i=t.viewport,r=!0;;r=!1){if(!r||!e.options.lineWrapping||t.oldDisplayWidth==si(e)){if(i&&i.top!=null&&(i={top:Math.min(e.doc.height+wa(e.display)-ei(e),i.top)}),t.visible=ja(e.display,e.doc,i),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else r&&(t.visible=ja(e.display,e.doc,i));if(!ho(e,t))break;Fa(e);var d=ra(e);In(e),_i(e,d),mo(e,d),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function fo(e,t){var i=new Ha(e,t);if(ho(e,i)){Fa(e),Ho(e,i);var r=ra(e);In(e),_i(e,r),mo(e,r),i.finish()}}function ul(e,t,i){var r=e.display,d=e.options.lineNumbers,k=r.lineDiv,X=k.firstChild;function Z(ht){var Et=ht.nextSibling;return _&&o&&e.display.currentWheelTarget==ht?ht.style.display="none":ht.parentNode.removeChild(ht),Et}for(var $=r.view,ne=r.viewFrom,Ce=0;Ce<$.length;Ce++){var Re=$[Ce];if(!Re.hidden)if(!Re.node||Re.node.parentNode!=k){var Ye=Sa(e,Re,ne,i);k.insertBefore(Ye,X)}else{for(;X!=Re.node;)X=Z(X);var ze=d&&t!=null&&t<=ne&&Re.lineNumber;Re.changes&&(pe(Re.changes,"gutter")>-1&&(ze=!1),qr(e,Re,ne,i)),ze&&(h(Re.lineNumber),Re.lineNumber.appendChild(document.createTextNode(An(e.options,ne)))),X=Re.node.nextSibling}ne+=Re.size}for(;X;)X=Z(X)}function po(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function mo(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+dr(e)+"px"}function Ko(e){var t=e.display,i=t.view;if(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))return;for(var r=rt(t)-t.scroller.scrollLeft+e.doc.scrollLeft,d=t.gutters.offsetWidth,k=r+"px",X=0;XX.clientWidth,$=X.scrollHeight>X.clientHeight;if(!(r&&Z||d&&$))return;if(d&&o&&_){e:for(var ne=t.target,Ce=k.view;ne!=X;ne=ne.parentNode)for(var Re=0;Re=0&&Rt(e,r.to())<=0)return i}return-1};var Dn=function(e,t){this.anchor=e,this.head=t};Dn.prototype.from=function(){return cn(this.anchor,this.head)},Dn.prototype.to=function(){return un(this.anchor,this.head)},Dn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Xr(e,t,i){var r=e&&e.options.selectionsMayTouch,d=t[i];t.sort(function(Ye,ze){return Rt(Ye.from(),ze.from())}),i=pe(t,d);for(var k=1;k0:$>=0){var ne=cn(Z.from(),X.from()),Ce=un(Z.to(),X.to()),Re=Z.empty()?X.from()==X.head:Z.from()==Z.head;k<=i&&--i,t.splice(--k,2,new Dn(Re?Ce:ne,Re?ne:Ce))}}return new Br(t,i)}function di(e,t){return new Br([new Dn(e,t||e)],0)}function ci(e){return e.text?lt(e.from.line+e.text.length-1,te(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Qo(e,t){if(Rt(e,t.from)<0)return e;if(Rt(e,t.to)<=0)return ci(t);var i=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=ci(t).ch-t.to.ch),lt(i,r)}function vo(e,t){for(var i=[],r=0;r1&&e.remove(Z.line+1,ht-1),e.insert(Z.line+1,Pt)}Cn(e,"change",e,t)}function hi(e,t,i){function r(d,k,X){if(d.linked)for(var Z=0;Z1&&!e.done[e.done.length-2].ranges)return e.done.pop(),te(e.done)}function es(e,t,i,r){var d=e.history;d.undone.length=0;var k=+new Date,X,Z;if((d.lastOp==r||d.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&d.lastModTime>k-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(X=pl(d,d.lastOp==r)))Z=te(X.changes),Rt(t.from,t.to)==0&&Rt(t.from,Z.to)==0?Z.to=ci(t):X.changes.push(Eo(e,t));else{var $=te(d.done);for((!$||!$.ranges)&&Ga(e.sel,d.done),X={changes:[Eo(e,t)],generation:d.generation},d.done.push(X);d.done.length>d.undoDepth;)d.done.shift(),d.done[0].ranges||d.done.shift()}d.done.push(i),d.generation=++d.maxGeneration,d.lastModTime=d.lastSelTime=k,d.lastOp=d.lastSelOp=r,d.lastOrigin=d.lastSelOrigin=t.origin,Z||He(e,"historyAdded")}function ml(e,t,i,r){var d=t.charAt(0);return d=="*"||d=="+"&&i.ranges.length==r.ranges.length&&i.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function gl(e,t,i,r){var d=e.history,k=r&&r.origin;i==d.lastSelOp||k&&d.lastSelOrigin==k&&(d.lastModTime==d.lastSelTime&&d.lastOrigin==k||ml(e,k,te(d.done),t))?d.done[d.done.length-1]=t:Ga(t,d.done),d.lastSelTime=+new Date,d.lastSelOrigin=k,d.lastSelOp=i,r&&r.clearRedo!==!1&&$o(d.undone)}function Ga(e,t){var i=te(t);i&&i.ranges&&i.equals(e)||t.push(e)}function ts(e,t,i,r){var d=t["spans_"+e.id],k=0;e.iter(Math.max(e.first,i),Math.min(e.first+e.size,r),function(X){X.markedSpans&&((d||(d=t["spans_"+e.id]={}))[k]=X.markedSpans),++k})}function vl(e){if(!e)return null;for(var t,i=0;i-1&&(te(Z)[Re]=ne[Re],delete ne[Re]))}}return r}function xo(e,t,i,r){if(r){var d=e.anchor;if(i){var k=Rt(t,d)<0;k!=Rt(i,d)<0?(d=t,t=i):k!=Rt(t,i)<0&&(t=i)}return new Dn(d,t)}else return new Dn(i||t,t)}function Va(e,t,i,r,d){d==null&&(d=e.cm&&(e.cm.display.shift||e.extend)),cr(e,new Br([xo(e.sel.primary(),t,i,d)],0),r)}function rs(e,t,i){for(var r=[],d=e.cm&&(e.cm.display.shift||e.extend),k=0;k=t.ch:Z.to>t.ch))){if(d&&(He($,"beforeCursorEnter"),$.explicitlyCleared))if(k.markedSpans){--X;continue}else break;if(!$.atomic)continue;if(i){var Re=$.find(r<0?1:-1),Ye=void 0;if((r<0?Ce:ne)&&(Re=us(e,Re,-r,Re&&Re.line==t.line?k:null)),Re&&Re.line==t.line&&(Ye=Rt(Re,i))&&(r<0?Ye<0:Ye>0))return ki(e,Re,t,r,d)}var ze=$.find(r<0?-1:1);return(r<0?ne:Ce)&&(ze=us(e,ze,r,ze.line==t.line?k:null)),ze?ki(e,ze,t,r,d):null}}return t}function Qa(e,t,i,r,d){var k=r||1,X=ki(e,t,i,k,d)||!d&&ki(e,t,i,k,!0)||ki(e,t,i,-k,d)||!d&&ki(e,t,i,-k,!0);return X||(e.cantEdit=!0,lt(e.first,0))}function us(e,t,i,r){return i<0&&t.ch==0?t.line>e.first?b(e,lt(t.line-1)):null:i>0&&t.ch==(r||St(e,t.line)).text.length?t.line=0;--d)hs(e,{from:r[d].from,to:r[d].to,text:d?[""]:t.text,origin:t.origin});else hs(e,t)}function hs(e,t){if(t.text.length==1&&t.text[0]==""&&Rt(t.from,t.to)==0)return;var i=vo(e,t);es(e,t,i,e.cm?e.cm.curOp.id:NaN),la(e,t,i,br(e,t));var r=[];hi(e,function(d,k){!k&&pe(r,d.history)==-1&&(gs(d.history,t),r.push(d.history)),la(d,t,null,br(d,t))})}function Ya(e,t,i){var r=e.cm&&e.cm.state.suppressEdits;if(r&&!i)return;for(var d=e.history,k,X=e.sel,Z=t=="undo"?d.done:d.undone,$=t=="undo"?d.undone:d.done,ne=0;ne=0;--ze){var ht=Ye(ze);if(ht)return ht.v}}function fs(e,t){if(t==0)return;if(e.first+=t,e.sel=new Br(ye(e.sel.ranges,function(d){return new Dn(lt(d.anchor.line+t,d.anchor.ch),lt(d.head.line+t,d.head.ch))}),e.sel.primIndex),e.cm){Lt(e.cm,e.first,e.first-t,t);for(var i=e.cm.display,r=i.viewFrom;re.lastLine())return;if(t.from.linek&&(t={from:t.from,to:lt(k,St(e,k).text.length),text:[t.text[0]],origin:t.origin}),t.removed=ln(e,t.from,t.to),i||(i=vo(e,t)),e.cm?El(e.cm,t,r):bo(e,t,r),Xa(e,i,Fe),e.cantEdit&&Qa(e,lt(e.firstLine(),0))&&(e.cantEdit=!1)}function El(e,t,i){var r=e.doc,d=e.display,k=t.from,X=t.to,Z=!1,$=k.line;e.options.lineWrapping||($=Mt(Qn(St(r,k.line))),r.iter($,X.line+1,function(ze){if(ze==d.maxLine)return Z=!0,!0})),r.sel.contains(t.from,t.to)>-1&&Te(e),bo(r,t,i,_t(e)),e.options.lineWrapping||(r.iter($,k.line+t.text.length,function(ze){var ht=Hr(ze);ht>d.maxLineLength&&(d.maxLine=ze,d.maxLineLength=ht,d.maxLineChanged=!0,Z=!1)}),Z&&(e.curOp.updateMaxLine=!0)),or(r,k.line),aa(e,400);var ne=t.text.length-(X.line-k.line)-1;t.full?Lt(e):k.line==X.line&&t.text.length==1&&!Jo(e.doc,t)?Zt(e,k.line,"text"):Lt(e,k.line,X.line+1,ne);var Ce=ge(e,"changes"),Re=ge(e,"change");if(Re||Ce){var Ye={from:k,to:X,text:t.text,removed:t.removed,origin:t.origin};Re&&Cn(e,"change",e,Ye),Ce&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(Ye)}e.display.selForContextMenu=null}function Bi(e,t,i,r,d){var k;r||(r=i),Rt(r,i)<0&&(k=[r,i],i=k[0],r=k[1]),typeof t=="string"&&(t=e.splitLines(t)),Ni(e,{from:i,to:r,text:t,origin:d})}function ps(e,t,i,r){i1||!(this.children[0]instanceof da))){var Z=[];this.collapse(Z),this.children=[new da(Z)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var X=d.lines.length%25+25,Z=X;Z10);e.parent.maybeSpill()},iterN:function(e,t,i){for(var r=0;re.display.maxLineLength&&(e.display.maxLine=ne,e.display.maxLineLength=Ce,e.display.maxLineChanged=!0)}r!=null&&e&&this.collapsed&&Lt(e,r,d+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&ss(e.doc)),e&&Cn(e,"markerCleared",e,this,r,d),t&&Si(e),this.parent&&this.parent.clear()},fi.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var i,r,d=0;d0||X==0&&k.clearWhenEmpty!==!1)return k;if(k.replacedWith&&(k.collapsed=!0,k.widgetNode=D("span",[k.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||k.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(k.widgetNode.insertLeft=!0)),k.collapsed){if(Bn(e,t.line,t,i,k)||t.line!=i.line&&Bn(e,i.line,t,i,k))throw new Error("Inserting collapsed marker partially overlapping an existing one");Jn()}k.addToHistory&&es(e,{from:t,to:i,origin:"markText"},e.sel,NaN);var Z=t.line,$=e.cm,ne;if(e.iter(Z,i.line+1,function(Re){$&&k.collapsed&&!$.options.lineWrapping&&Qn(Re)==$.display.maxLine&&(ne=!0),k.collapsed&&Z!=t.line&&Yt(Re,0),yr(Re,new Mr(k,Z==t.line?t.ch:null,Z==i.line?i.ch:null)),++Z}),k.collapsed&&e.iter(t.line,i.line+1,function(Re){rr(e,Re)&&Yt(Re,0)}),k.clearOnEnter&&we(k,"beforeCursorEnter",function(){return k.clear()}),k.readOnly&&(sr(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),k.collapsed&&(k.id=++ys,k.atomic=!0),$){if(ne&&($.curOp.updateMaxLine=!0),k.collapsed)Lt($,t.line,i.line+1);else if(k.className||k.startStyle||k.endStyle||k.css||k.attributes||k.title)for(var Ce=t.line;Ce<=i.line;Ce++)Zt($,Ce,"text");k.atomic&&ss($.doc),Cn($,"markerAdded",$,k)}return k}var fa=function(e,t){this.markers=e,this.primary=t;for(var i=0;i=0;$--)Ni(this,r[$]);Z?as(this,Z):this.cm&&Ii(this.cm)}),undo:qn(function(){Ya(this,"undo")}),redo:qn(function(){Ya(this,"redo")}),undoSelection:qn(function(){Ya(this,"undo",!0)}),redoSelection:qn(function(){Ya(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,i=0,r=0;r=e.ch)&&t.push(d.marker.parent||d.marker)}return t},findMarks:function(e,t,i){e=b(this,e),t=b(this,t);var r=[],d=e.line;return this.iter(e.line,t.line+1,function(k){var X=k.markedSpans;if(X)for(var Z=0;Z=$.to||$.from==null&&d!=e.line||$.from!=null&&d==t.line&&$.from>=t.ch)&&(!i||i($.marker))&&r.push($.marker.parent||$.marker)}++d}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var i=t.markedSpans;if(i)for(var r=0;re)return t=e,!0;e-=k,++i}),b(this,lt(i,t))},indexFromPos:function(e){e=b(this,e);var t=e.ch;if(e.linet&&(t=e.from),e.to!=null&&e.to-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var Ce=e.dataTransfer.getData("Text");if(Ce){var Re;if(t.state.draggingText&&!t.state.draggingText.copy&&(Re=t.listSelections()),Xa(t.doc,di(i,i)),Re)for(var Ye=0;Ye=0;Z--)Bi(e.doc,"",r[Z].from,r[Z].to,"+delete");Ii(e)})}function So(e,t,i){var r=Ze(e.text,t+i,i);return r<0||r>e.text.length?null:r}function Ao(e,t,i){var r=So(e,t.ch,i);return r==null?null:new lt(t.line,r,i<0?"after":"before")}function To(e,t,i,r,d){if(e){t.doc.direction=="rtl"&&(d=-d);var k=wt(i,t.doc.direction);if(k){var X=d<0?te(k):k[0],Z=d<0==(X.level==1),$=Z?"after":"before",ne;if(X.level>0||t.doc.direction=="rtl"){var Ce=li(t,i);ne=d<0?i.text.length-1:0;var Re=mr(t,Ce,ne).top;ne=yt(function(Ye){return mr(t,Ce,Ye).top==Re},d<0==(X.level==1)?X.from:X.to-1,ne),$=="before"&&(ne=So(i,ne,1))}else ne=d<0?X.to:X.from;return new lt(r,ne,$)}}return new lt(r,d<0?i.text.length:0,d<0?"before":"after")}function Pl(e,t,i,r){var d=wt(t,e.doc.direction);if(!d)return Ao(t,i,r);i.ch>=t.text.length?(i.ch=t.text.length,i.sticky="before"):i.ch<=0&&(i.ch=0,i.sticky="after");var k=pt(d,i.ch,i.sticky),X=d[k];if(e.doc.direction=="ltr"&&X.level%2==0&&(r>0?X.to>i.ch:X.from=X.from&&Ye>=Ce.begin)){var ze=Re?"before":"after";return new lt(i.line,Ye,ze)}}var ht=function(Pt,Wt,kt){for(var Vt=function(Pn,$n){return $n?new lt(i.line,Z(Pn,1),"before"):new lt(i.line,Pn,"after")};Pt>=0&&Pt0==(sn.level!=1),vn=an?kt.begin:Z(kt.end,-1);if(sn.from<=vn&&vn0?Ce.end:Z(Ce.begin,-1);return Dt!=null&&!(r>0&&Dt==t.text.length)&&(Et=ht(r>0?0:d.length-1,r,ne(Dt)),Et)?Et:null}var ga={selectAll:ds,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Fe)},killLine:function(e){return ji(e,function(t){if(t.empty()){var i=St(e.doc,t.head.line).text.length;return t.head.ch==i&&t.head.line0)d=new lt(d.line,d.ch+1),e.replaceRange(k.charAt(d.ch-1)+k.charAt(d.ch-2),lt(d.line,d.ch-2),d,"+transpose");else if(d.line>e.doc.first){var X=St(e.doc,d.line-1).text;X&&(d=new lt(d.line,1),e.replaceRange(k.charAt(0)+e.doc.lineSeparator()+X.charAt(X.length-1),lt(d.line-1,X.length-1),d,"+transpose"))}}i.push(new Dn(d,d))}e.setSelections(i)})},newlineAndIndent:function(e){return Or(e,function(){for(var t=e.listSelections(),i=t.length-1;i>=0;i--)e.replaceRange(e.doc.lineSeparator(),t[i].anchor,t[i].head,"+input");t=e.listSelections();for(var r=0;re&&Rt(t,this.pos)==0&&i==this.button};var ya,ba;function Wl(e,t){var i=+new Date;return ba&&ba.compare(i,e,t)?(ya=ba=null,"triple"):ya&&ya.compare(i,e,t)?(ba=new Do(i,e,t),ya=null,"double"):(ya=new Do(i,e,t),ba=null,"single")}function Ps(e){var t=this,i=t.display;if(nt(t,e)||i.activeTouch&&i.input.supportsTouch())return;if(i.input.ensurePolled(),i.shift=e.shiftKey,Gr(i,e)){_||(i.scroller.draggable=!1,setTimeout(function(){return i.scroller.draggable=!0},100));return}if(Ro(t,e))return;var r=It(t,e),d=Ie(e),k=r?Wl(r,d):"single";if(window.focus(),d==1&&t.state.selectingText&&t.state.selectingText(e),r&&Hl(t,d,r,k,e))return;d==1?r?zl(t,r,k,e):Be(e)==i.scroller&&re(e):d==2?(r&&Va(t.doc,r),setTimeout(function(){return i.input.focus()},20)):d==3&&(O?t.display.input.onContextMenu(e):ko(t))}function Hl(e,t,i,r,d){var k="Click";return r=="double"?k="Double"+k:r=="triple"&&(k="Triple"+k),k=(t==1?"Left":t==2?"Middle":"Right")+k,va(e,Ts(k,d),d,function(X){if(typeof X=="string"&&(X=ga[X]),!X)return!1;var Z=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),Z=X(e,i)!=Ge}finally{e.state.suppressEdits=!1}return Z})}function Kl(e,t,i){var r=e.getOption("configureMouse"),d=r?r(e,t,i):{};if(d.unit==null){var k=u?i.shiftKey&&i.metaKey:i.altKey;d.unit=k?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(d.extend==null||e.doc.extend)&&(d.extend=e.doc.extend||i.shiftKey),d.addNew==null&&(d.addNew=o?i.metaKey:i.ctrlKey),d.moveOnDrag==null&&(d.moveOnDrag=!(o?i.altKey:i.ctrlKey)),d}function zl(e,t,i,r){j?setTimeout(H(Po,e),0):e.curOp.focus=I();var d=Kl(e,i,r),k=e.doc.sel,X;e.options.dragDrop&&ut&&!e.isReadOnly()&&i=="single"&&(X=k.contains(t))>-1&&(Rt((X=k.ranges[X]).from(),t)<0||t.xRel>0)&&(Rt(X.to(),t)>0||t.xRel<0)?Gl(e,r,t,d):Vl(e,r,t,d)}function Gl(e,t,i,r){var d=e.display,k=!1,X=Zn(e,function(ne){_&&(d.scroller.draggable=!1),e.state.draggingText=!1,st(d.wrapper.ownerDocument,"mouseup",X),st(d.wrapper.ownerDocument,"mousemove",Z),st(d.scroller,"dragstart",$),st(d.scroller,"drop",X),k||(re(ne),r.addNew||Va(e.doc,i,null,null,r.extend),_&&!w||j&&U==9?setTimeout(function(){d.wrapper.ownerDocument.body.focus({preventScroll:!0}),d.input.focus()},20):d.input.focus())}),Z=function(ne){k=k||Math.abs(t.clientX-ne.clientX)+Math.abs(t.clientY-ne.clientY)>=10},$=function(){return k=!0};_&&(d.scroller.draggable=!0),e.state.draggingText=X,X.copy=!r.moveOnDrag,d.scroller.dragDrop&&d.scroller.dragDrop(),we(d.wrapper.ownerDocument,"mouseup",X),we(d.wrapper.ownerDocument,"mousemove",Z),we(d.scroller,"dragstart",$),we(d.scroller,"drop",X),ko(e),setTimeout(function(){return d.input.focus()},20)}function ks(e,t,i){if(i=="char")return new Dn(t,t);if(i=="word")return e.findWordAt(t);if(i=="line")return new Dn(lt(t.line,0),b(e.doc,lt(t.line+1,0)));var r=i(e,t);return new Dn(r.from,r.to)}function Vl(e,t,i,r){var d=e.display,k=e.doc;re(t);var X,Z,$=k.sel,ne=$.ranges;if(r.addNew&&!r.extend?(Z=k.sel.contains(i),Z>-1?X=ne[Z]:X=new Dn(i,i)):(X=k.sel.primary(),Z=k.sel.primIndex),r.unit=="rectangle")r.addNew||(X=new Dn(i,i)),i=It(e,t,!0,!0),Z=-1;else{var Ce=ks(e,i,r.unit);r.extend?X=xo(X,Ce.anchor,Ce.head,r.extend):X=Ce}r.addNew?Z==-1?(Z=ne.length,cr(k,Xr(e,ne.concat([X]),Z),{scroll:!1,origin:"*mouse"})):ne.length>1&&ne[Z].empty()&&r.unit=="char"&&!r.extend?(cr(k,Xr(e,ne.slice(0,Z).concat(ne.slice(Z+1)),0),{scroll:!1,origin:"*mouse"}),$=k.sel):Co(k,Z,X,Ue):(Z=0,cr(k,new Br([X],0),Ue),$=k.sel);var Re=i;function Ye(kt){if(Rt(Re,kt)==0)return;if(Re=kt,r.unit=="rectangle"){for(var Vt=[],sn=e.options.tabSize,an=q(St(k,i.line).text,i.ch,sn),vn=q(St(k,kt.line).text,kt.ch,sn),Pn=Math.min(an,vn),$n=Math.max(an,vn),Fn=Math.min(i.line,kt.line),Lr=Math.min(e.lastLine(),Math.max(i.line,kt.line));Fn<=Lr;Fn++){var Cr=St(k,Fn).text,zn=je(Cr,Pn,sn);Pn==$n?Vt.push(new Dn(lt(Fn,zn),lt(Fn,zn))):Cr.length>zn&&Vt.push(new Dn(lt(Fn,zn),lt(Fn,je(Cr,$n,sn))))}Vt.length||Vt.push(new Dn(i,i)),cr(k,Xr(e,$.ranges.slice(0,Z).concat(Vt),Z),{origin:"*mouse",scroll:!1}),e.scrollIntoView(kt)}else{var Sr=X,ar=ks(e,kt,r.unit),Yn=Sr.anchor,Gn;Rt(ar.anchor,Yn)>0?(Gn=ar.head,Yn=cn(Sr.from(),ar.anchor)):(Gn=ar.anchor,Yn=un(Sr.to(),ar.head));var jn=$.ranges.slice(0);jn[Z]=Xl(e,new Dn(b(k,Yn),Gn)),cr(k,Xr(e,jn,Z),Ue)}}var ze=d.wrapper.getBoundingClientRect(),ht=0;function Et(kt){var Vt=++ht,sn=It(e,kt,!0,r.unit=="rectangle");if(!sn)return;if(Rt(sn,Re)!=0){e.curOp.focus=I(),Ye(sn);var an=ja(d,k);(sn.line>=an.to||sn.lineze.bottom?20:0;vn&&setTimeout(Zn(e,function(){if(ht!=Vt)return;d.scroller.scrollTop+=vn,Et(kt)}),50)}}function Dt(kt){e.state.selectingText=!1,ht=Infinity,kt&&(re(kt),d.input.focus()),st(d.wrapper.ownerDocument,"mousemove",Pt),st(d.wrapper.ownerDocument,"mouseup",Wt),k.history.lastSelOrigin=null}var Pt=Zn(e,function(kt){kt.buttons===0||!Ie(kt)?Dt(kt):Et(kt)}),Wt=Zn(e,Dt);e.state.selectingText=Wt,we(d.wrapper.ownerDocument,"mousemove",Pt),we(d.wrapper.ownerDocument,"mouseup",Wt)}function Xl(e,t){var i=t.anchor,r=t.head,d=St(e.doc,i.line);if(Rt(i,r)==0&&i.sticky==r.sticky)return t;var k=wt(d);if(!k)return t;var X=pt(k,i.ch,i.sticky),Z=k[X];if(Z.from!=i.ch&&Z.to!=i.ch)return t;var $=X+(Z.from==i.ch==(Z.level!=1)?0:1);if($==0||$==k.length)return t;var ne;if(r.line!=i.line)ne=(r.line-i.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var Ce=pt(k,r.ch,r.sticky),Re=Ce-X||(r.ch-i.ch)*(Z.level==1?-1:1);Ce==$-1||Ce==$?ne=Re<0:ne=Re>0}var Ye=k[$+(ne?-1:0)],ze=ne==(Ye.level==1),ht=ze?Ye.from:Ye.to,Et=ze?"after":"before";return i.ch==ht&&i.sticky==Et?t:new Dn(new lt(i.line,ht,Et),r)}function Ns(e,t,i,r){var d,k;if(t.touches)d=t.touches[0].clientX,k=t.touches[0].clientY;else try{d=t.clientX,k=t.clientY}catch(Ye){return!1}if(d>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&re(t);var X=e.display,Z=X.lineDiv.getBoundingClientRect();if(k>Z.bottom||!ge(e,i))return ce(t);k-=Z.top-X.viewOffset;for(var $=0;$=d){var Ce=tn(e.doc,k),Re=e.display.gutterSpecs[$];return He(e,i,e,Ce,Re.className,t),ce(t)}}}function Ro(e,t){return Ns(e,t,"gutterClick",!0)}function Bs(e,t){if(Gr(e.display,t)||Ql(e,t))return;if(nt(e,t,"contextmenu"))return;O||e.display.input.onContextMenu(t)}function Ql(e,t){return ge(e,"gutterContextMenu")?Ns(e,t,"gutterContextMenu",!1):!1}function Us(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),bi(e)}var Wi={toString:function(){return"CodeMirror.Init"}},Fs={},$a={};function Yl(e){var t=e.optionHandlers;function i(r,d,k,X){e.defaults[r]=d,k&&(t[r]=X?function(Z,$,ne){ne!=Wi&&k(Z,$,ne)}:k)}e.defineOption=i,e.Init=Wi,i("value","",function(r,d){return r.setValue(d)},!0),i("mode",null,function(r,d){r.doc.modeOption=d,yo(r)},!0),i("indentUnit",2,yo,!0),i("indentWithTabs",!1),i("smartIndent",!0),i("tabSize",4,function(r){sa(r),bi(r),Lt(r)},!0),i("lineSeparator",null,function(r,d){if(r.doc.lineSep=d,!d)return;var k=[],X=r.doc.first;r.doc.iter(function($){for(var ne=0;;){var Ce=$.text.indexOf(d,ne);if(Ce==-1)break;ne=Ce+d.length,k.push(lt(X,Ce))}X++});for(var Z=k.length-1;Z>=0;Z--)Bi(r.doc,d,k[Z],lt(k[Z].line,k[Z].ch+d.length))}),i("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(r,d,k){r.state.specialChars=new RegExp(d.source+(d.test(" ")?"":"| "),"g"),k!=Wi&&r.refresh()}),i("specialCharPlaceholder",En,function(r){return r.refresh()},!0),i("electricChars",!0),i("inputStyle",n?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),i("spellcheck",!1,function(r,d){return r.getInputField().spellcheck=d},!0),i("autocorrect",!1,function(r,d){return r.getInputField().autocorrect=d},!0),i("autocapitalize",!1,function(r,d){return r.getInputField().autocapitalize=d},!0),i("rtlMoveVisually",!x),i("wholeLineUpdateBefore",!0),i("theme","default",function(r){Us(r),oa(r)},!0),i("keyMap","default",function(r,d,k){var X=Za(d),Z=k!=Wi&&Za(k);Z&&Z.detach&&Z.detach(r,X),X.attach&&X.attach(r,Z||null)}),i("extraKeys",null),i("configureMouse",null),i("lineWrapping",!1,Zl,!0),i("gutters",[],function(r,d){r.display.gutterSpecs=go(d,r.options.lineNumbers),oa(r)},!0),i("fixedGutter",!0,function(r,d){r.display.gutters.style.left=d?rt(r.display)+"px":"0",r.refresh()},!0),i("coverGutterNextToScrollbar",!1,function(r){return _i(r)},!0),i("scrollbarStyle","native",function(r){Wo(r),_i(r),r.display.scrollbars.setScrollTop(r.doc.scrollTop),r.display.scrollbars.setScrollLeft(r.doc.scrollLeft)},!0),i("lineNumbers",!1,function(r,d){r.display.gutterSpecs=go(r.options.gutters,d),oa(r)},!0),i("firstLineNumber",1,oa,!0),i("lineNumberFormatter",function(r){return r},oa,!0),i("showCursorWhenSelecting",!1,In,!0),i("resetSelectionOnContextMenu",!0),i("lineWiseCopyCut",!0),i("pasteLinesPerSelection",!0),i("selectionsMayTouch",!1),i("readOnly",!1,function(r,d){d=="nocursor"&&(Mi(r),r.display.input.blur()),r.display.input.readOnlyChanged(d)}),i("screenReaderLabel",null,function(r,d){d=d===""?null:d,r.display.input.screenReaderLabelChanged(d)}),i("disableInput",!1,function(r,d){d||r.display.input.reset()},!0),i("dragDrop",!0,Jl),i("allowDropFileTypes",null),i("cursorBlinkRate",530),i("cursorScrollMargin",0),i("cursorHeight",1,In,!0),i("singleCursorHeightPerLine",!0,In,!0),i("workTime",100),i("workDelay",100),i("flattenSpans",!0,sa,!0),i("addModeClass",!1,sa,!0),i("pollInterval",100),i("undoDepth",200,function(r,d){return r.doc.history.undoDepth=d}),i("historyEventDelay",1250),i("viewportMargin",10,function(r){return r.refresh()},!0),i("maxHighlightLength",1e4,sa,!0),i("moveInputWithCursor",!0,function(r,d){d||r.display.input.resetPosition()}),i("tabindex",null,function(r,d){return r.display.input.getField().tabIndex=d||""}),i("autofocus",null),i("direction","ltr",function(r,d){return r.doc.setDirection(d)},!0),i("phrases",null)}function Jl(e,t,i){var r=i&&i!=Wi;if(!t!=!r){var d=e.display.dragFunctions,k=t?we:st;k(e.display.scroller,"dragstart",d.start),k(e.display.scroller,"dragenter",d.enter),k(e.display.scroller,"dragover",d.over),k(e.display.scroller,"dragleave",d.leave),k(e.display.scroller,"drop",d.drop)}}function Zl(e){e.options.lineWrapping?(C(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(p(e.display.wrapper,"CodeMirror-wrap"),Zr(e)),mt(e),Lt(e),bi(e),setTimeout(function(){return _i(e)},100)}function Un(e,t){var i=this;if(!(this instanceof Un))return new Un(e,t);this.options=t=t?F(t):{},F(Fs,t,!1);var r=t.value;typeof r=="string"?r=new xr(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var d=new Un.inputStyles[t.inputStyle](this),k=this.display=new dl(e,r,d,t);k.wrapper.CodeMirror=this,Us(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Wo(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new le,keySeq:null,specialChars:null},t.autofocus&&!n&&k.input.focus(),j&&U<11&&setTimeout(function(){return i.display.input.reset(!0)},20),ql(this),Ol(),Ci(this),this.curOp.forceUpdate=!0,Zo(this,r),t.autofocus&&!n||this.hasFocus()?setTimeout(function(){i.hasFocus()&&!i.state.focused&&lo(i)},20):Mi(this);for(var X in $a)$a.hasOwnProperty(X)&&$a[X](this,t[X],Wi);zo(this),t.finishInit&&t.finishInit(this);for(var Z=0;Z20*20}we(t.scroller,"touchstart",function($){if(!nt(e,$)&&!k($)&&!Ro(e,$)){t.input.ensurePolled(),clearTimeout(i);var ne=+new Date;t.activeTouch={start:ne,moved:!1,prev:ne-r.end<=300?r:null},$.touches.length==1&&(t.activeTouch.left=$.touches[0].pageX,t.activeTouch.top=$.touches[0].pageY)}}),we(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),we(t.scroller,"touchend",function($){var ne=t.activeTouch;if(ne&&!Gr(t,$)&&ne.left!=null&&!ne.moved&&new Date-ne.start<300){var Ce=e.coordsChar(t.activeTouch,"page"),Re;!ne.prev||X(ne,ne.prev)?Re=new Dn(Ce,Ce):!ne.prev.prev||X(ne,ne.prev.prev)?Re=e.findWordAt(Ce):Re=new Dn(lt(Ce.line,0),b(e.doc,lt(Ce.line+1,0))),e.setSelection(Re.anchor,Re.head),e.focus(),re($)}d()}),we(t.scroller,"touchcancel",d),we(t.scroller,"scroll",function(){t.scroller.clientHeight&&(na(e,t.scroller.scrollTop),Ei(e,t.scroller.scrollLeft,!0),He(e,"scroll",e))}),we(t.scroller,"mousewheel",function($){return Xo(e,$)}),we(t.scroller,"DOMMouseScroll",function($){return Xo(e,$)}),we(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function($){nt(e,$)||Ee($)},over:function($){nt(e,$)||(Rl(e,$),Ee($))},start:function($){return Dl(e,$)},drop:Zn(e,wl),leave:function($){nt(e,$)||xs(e)}};var Z=t.input.getField();we(Z,"keyup",function($){return Is.call(e,$)}),we(Z,"keydown",Zn(e,Ms)),we(Z,"keypress",Zn(e,_s)),we(Z,"focus",function($){return lo(e,$)}),we(Z,"blur",function($){return Mi(e,$)})}var Oo=[];Un.defineInitHook=function(e){return Oo.push(e)};function Ea(e,t,i,r){var d=e.doc,k;i==null&&(i="add"),i=="smart"&&(d.mode.indent?k=Ot(e,t).state:i="prev");var X=e.options.tabSize,Z=St(d,t),$=q(Z.text,null,X);Z.stateAfter&&(Z.stateAfter=null);var ne=Z.text.match(/^\s*/)[0],Ce;if(!r&&!/\S/.test(Z.text))Ce=0,i="not";else if(i=="smart"&&(Ce=d.mode.indent(k,Z.text.slice(ne.length),Z.text),Ce==Ge||Ce>150)){if(!r)return;i="prev"}i=="prev"?t>d.first?Ce=q(St(d,t-1).text,null,X):Ce=0:i=="add"?Ce=$+e.options.indentUnit:i=="subtract"?Ce=$-e.options.indentUnit:typeof i=="number"&&(Ce=$+i),Ce=Math.max(0,Ce);var Re="",Ye=0;if(e.options.indentWithTabs)for(var ze=Math.floor(Ce/X);ze;--ze)Ye+=X,Re+=" ";if(YeX,$=qe(t),ne=null;if(Z&&r.ranges.length>1)if(Qr&&Qr.text.join(` -`)==t){if(r.ranges.length%Qr.text.length==0){ne=[];for(var Ce=0;Ce=0;Ye--){var ze=r.ranges[Ye],ht=ze.from(),Et=ze.to();ze.empty()&&(i&&i>0?ht=lt(ht.line,ht.ch-i):e.state.overwrite&&!Z?Et=lt(Et.line,Math.min(St(k,Et.line).text.length,Et.ch+te($).length)):Z&&Qr&&Qr.lineWise&&Qr.text.join(` + left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(P),P.scrollIntoView(d),e.display.lineSpace.removeChild(P)}}function Ys(e,t,i,r){r==null&&(r=0);var d;!e.options.lineWrapping&&t==i&&(t=t.ch?lt(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t,i=t.sticky=="before"?lt(t.line,t.ch+1,"before"):t);for(var P=0;P<5;P++){var X=!1,Z=Pr(e,t),$=!i||i==t?Z:Pr(e,i);d={left:Math.min(Z.left,$.left),top:Math.min(Z.top,$.top)-r,right:Math.max(Z.left,$.left),bottom:Math.max(Z.bottom,$.bottom)+r};var ne=uo(e,d),Ce=e.doc.scrollTop,Re=e.doc.scrollLeft;if(ne.scrollTop!=null&&(na(e,ne.scrollTop),Math.abs(e.doc.scrollTop-Ce)>1&&(X=!0)),ne.scrollLeft!=null&&(Ei(e,ne.scrollLeft),Math.abs(e.doc.scrollLeft-Re)>1&&(X=!0)),!X)break}return d}function Js(e,t){var i=uo(e,t);i.scrollTop!=null&&na(e,i.scrollTop),i.scrollLeft!=null&&Ei(e,i.scrollLeft)}function uo(e,t){var i=e.display,r=Ut(e.display);t.top<0&&(t.top=0);var d=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:i.scroller.scrollTop,P=ei(e),X={};t.bottom-t.top>P&&(t.bottom=t.top+P);var Z=e.doc.height+wa(i),$=t.topZ-r;if(t.topd+P){var Ce=Math.min(t.top,(ne?Z:t.bottom)-P);Ce!=d&&(X.scrollTop=Ce)}var Re=e.options.fixedGutter?0:i.gutters.offsetWidth,Ye=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:i.scroller.scrollLeft-Re,ze=si(e)-i.gutters.offsetWidth,ht=t.right-t.left>ze;return ht&&(t.right=t.left+ze),t.left<10?X.scrollLeft=0:t.leftze+Ye-3&&(X.scrollLeft=t.right+(ht?0:10)-ze),X}function co(e,t){if(t==null)return;Wa(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t}function Ii(e){Wa(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function ta(e,t,i){(t!=null||i!=null)&&Wa(e),t!=null&&(e.curOp.scrollLeft=t),i!=null&&(e.curOp.scrollTop=i)}function Zs(e,t){Wa(e),e.curOp.scrollToPos=t}function Wa(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var i=Ia(e,t.from),r=Ia(e,t.to);Bo(e,i,r,t.margin)}}function Bo(e,t,i,r){var d=uo(e,{left:Math.min(t.left,i.left),top:Math.min(t.top,i.top)-r,right:Math.max(t.right,i.right),bottom:Math.max(t.bottom,i.bottom)+r});ta(e,d.scrollLeft,d.scrollTop)}function na(e,t){if(Math.abs(e.doc.scrollTop-t)<2)return;k||fo(e,{top:t}),Uo(e,t,!0),k&&fo(e),aa(e,100)}function Uo(e,t,i){if(t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),e.display.scroller.scrollTop==t&&!i)return;e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t)}function Ei(e,t,i,r){if(t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(i?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r)return;e.doc.scrollLeft=t,Ko(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t)}function ra(e){var t=e.display,i=t.gutters.offsetWidth,r=Math.round(e.doc.height+wa(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?i:0,docHeight:r,scrollHeight:r+dr(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:i}}var xi=function(e,t,i){this.cm=i;var r=this.vert=l("div",[l("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),d=this.horiz=l("div",[l("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=d.tabIndex=-1,e(r),e(d),we(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),we(d,"scroll",function(){d.clientWidth&&t(d.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,j&&U<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};xi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,i=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(i){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var d=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+d)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=i?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var P=e.viewWidth-e.barLeft-(i?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+P)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(r==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:i?r:0,bottom:t?r:0}},xi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},xi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},xi.prototype.zeroWidthHack=function(){var e=o&&!y?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new le,this.disableVert=new le},xi.prototype.enableZeroWidthBar=function(e,t,i){e.style.pointerEvents="auto";function r(){var d=e.getBoundingClientRect(),P=i=="vert"?document.elementFromPoint(d.right-1,(d.top+d.bottom)/2):document.elementFromPoint((d.right+d.left)/2,d.bottom-1);P!=e?e.style.pointerEvents="none":t.set(1e3,r)}t.set(1e3,r)},xi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var ia=function(){};ia.prototype.update=function(){return{bottom:0,right:0}},ia.prototype.setScrollLeft=function(){},ia.prototype.setScrollTop=function(){},ia.prototype.clear=function(){};function _i(e,t){t||(t=ra(e));var i=e.display.barWidth,r=e.display.barHeight;Fo(e,t);for(var d=0;d<4&&i!=e.display.barWidth||r!=e.display.barHeight;d++)i!=e.display.barWidth&&e.options.lineWrapping&&Fa(e),Fo(e,ra(e)),i=e.display.barWidth,r=e.display.barHeight}function Fo(e,t){var i=e.display,r=i.scrollbars.update(t);i.sizer.style.paddingRight=(i.barWidth=r.right)+"px",i.sizer.style.paddingBottom=(i.barHeight=r.bottom)+"px",i.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(i.scrollbarFiller.style.display="block",i.scrollbarFiller.style.height=r.bottom+"px",i.scrollbarFiller.style.width=r.right+"px"):i.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(i.gutterFiller.style.display="block",i.gutterFiller.style.height=r.bottom+"px",i.gutterFiller.style.width=t.gutterWidth+"px"):i.gutterFiller.style.display=""}var jo={native:xi,null:ia};function Wo(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&p(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new jo[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),we(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,i){i=="horizontal"?Ei(e,t):na(e,t)},e),e.display.scrollbars.addClass&&C(e.display.wrapper,e.display.scrollbars.addClass)}var qs=0;function Ci(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++qs},pr(e.curOp)}function Si(e){var t=e.curOp;t&&Kt(t,function(i){for(var r=0;r=i.viewTo)||i.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Ha(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function tl(e){e.updatedDisplay=e.mustUpdate&&ho(e.cm,e.update)}function nl(e){var t=e.cm,i=t.display;e.updatedDisplay&&Fa(t),e.barMeasure=ra(t),i.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Vi(t,i.maxLine,i.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(i.scroller.clientWidth,i.sizer.offsetLeft+e.adjustWidthTo+dr(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,i.sizer.offsetLeft+e.adjustWidthTo-si(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=i.input.prepareSelection())}function rl(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)return;var i=+new Date+e.options.workTime,r=Ot(e,t.highlightFrontier),d=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(P){if(r.line>=e.display.viewFrom){var X=P.styles,Z=P.text.length>e.options.maxHighlightLength?Ct(t.mode,r.state):null,$=De(e,P,r,!0);Z&&(r.state=Z),P.styles=$.styles;var ne=P.styleClasses,Ce=$.classes;Ce?P.styleClasses=Ce:ne&&(P.styleClasses=null);for(var Re=!X||X.length!=P.styles.length||ne!=Ce&&(!ne||!Ce||ne.bgClass!=Ce.bgClass||ne.textClass!=Ce.textClass),Ye=0;!Re&&Yei)return aa(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),d.length&&Or(e,function(){for(var P=0;P=i.viewFrom&&t.visible.to<=i.viewTo&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo)&&i.renderedView==i.view&&Nn(e)==0)return!1;zo(e)&&(jt(e),t.dims=ct(e));var d=r.first+r.size,P=Math.max(t.visible.from-e.options.viewportMargin,r.first),X=Math.min(d,t.visible.to+e.options.viewportMargin);i.viewFromX&&i.viewTo-X<20&&(X=Math.min(d,i.viewTo)),Vn&&(P=Dr(e.doc,P),X=Jr(e.doc,X));var Z=P!=i.viewFrom||X!=i.viewTo||i.lastWrapHeight!=t.wrapperHeight||i.lastWrapWidth!=t.wrapperWidth;Mn(e,P,X),i.viewOffset=Er(St(e.doc,i.viewFrom)),e.display.mover.style.top=i.viewOffset+"px";var $=Nn(e);if(!Z&&$==0&&!t.force&&i.renderedView==i.view&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo))return!1;var ne=sl(e);return $>4&&(i.lineDiv.style.display="none"),ul(e,i.updateLineNumbers,t.dims),$>4&&(i.lineDiv.style.display=""),i.renderedView=i.view,ll(ne),h(i.cursorDiv),h(i.selectionDiv),i.gutters.style.height=i.sizer.style.minHeight=0,Z&&(i.lastWrapHeight=t.wrapperHeight,i.lastWrapWidth=t.wrapperWidth,aa(e,400)),i.updateLineNumbers=null,!0}function Ho(e,t){for(var i=t.viewport,r=!0;;r=!1){if(!r||!e.options.lineWrapping||t.oldDisplayWidth==si(e)){if(i&&i.top!=null&&(i={top:Math.min(e.doc.height+wa(e.display)-ei(e),i.top)}),t.visible=ja(e.display,e.doc,i),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else r&&(t.visible=ja(e.display,e.doc,i));if(!ho(e,t))break;Fa(e);var d=ra(e);In(e),_i(e,d),mo(e,d),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function fo(e,t){var i=new Ha(e,t);if(ho(e,i)){Fa(e),Ho(e,i);var r=ra(e);In(e),_i(e,r),mo(e,r),i.finish()}}function ul(e,t,i){var r=e.display,d=e.options.lineNumbers,P=r.lineDiv,X=P.firstChild;function Z(ht){var Et=ht.nextSibling;return _&&o&&e.display.currentWheelTarget==ht?ht.style.display="none":ht.parentNode.removeChild(ht),Et}for(var $=r.view,ne=r.viewFrom,Ce=0;Ce<$.length;Ce++){var Re=$[Ce];if(!Re.hidden)if(!Re.node||Re.node.parentNode!=P){var Ye=Sa(e,Re,ne,i);P.insertBefore(Ye,X)}else{for(;X!=Re.node;)X=Z(X);var ze=d&&t!=null&&t<=ne&&Re.lineNumber;Re.changes&&(pe(Re.changes,"gutter")>-1&&(ze=!1),qr(e,Re,ne,i)),ze&&(h(Re.lineNumber),Re.lineNumber.appendChild(document.createTextNode(An(e.options,ne)))),X=Re.node.nextSibling}ne+=Re.size}for(;X;)X=Z(X)}function po(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function mo(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+dr(e)+"px"}function Ko(e){var t=e.display,i=t.view;if(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))return;for(var r=rt(t)-t.scroller.scrollLeft+e.doc.scrollLeft,d=t.gutters.offsetWidth,P=r+"px",X=0;XX.clientWidth,$=X.scrollHeight>X.clientHeight;if(!(r&&Z||d&&$))return;if(d&&o&&_){e:for(var ne=t.target,Ce=P.view;ne!=X;ne=ne.parentNode)for(var Re=0;Re=0&&Rt(e,r.to())<=0)return i}return-1};var Dn=function(e,t){this.anchor=e,this.head=t};Dn.prototype.from=function(){return cn(this.anchor,this.head)},Dn.prototype.to=function(){return un(this.anchor,this.head)},Dn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Xr(e,t,i){var r=e&&e.options.selectionsMayTouch,d=t[i];t.sort(function(Ye,ze){return Rt(Ye.from(),ze.from())}),i=pe(t,d);for(var P=1;P0:$>=0){var ne=cn(Z.from(),X.from()),Ce=un(Z.to(),X.to()),Re=Z.empty()?X.from()==X.head:Z.from()==Z.head;P<=i&&--i,t.splice(--P,2,new Dn(Re?Ce:ne,Re?ne:Ce))}}return new Br(t,i)}function di(e,t){return new Br([new Dn(e,t||e)],0)}function ci(e){return e.text?lt(e.from.line+e.text.length-1,te(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Qo(e,t){if(Rt(e,t.from)<0)return e;if(Rt(e,t.to)<=0)return ci(t);var i=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=ci(t).ch-t.to.ch),lt(i,r)}function vo(e,t){for(var i=[],r=0;r1&&e.remove(Z.line+1,ht-1),e.insert(Z.line+1,kt)}Cn(e,"change",e,t)}function hi(e,t,i){function r(d,P,X){if(d.linked)for(var Z=0;Z1&&!e.done[e.done.length-2].ranges)return e.done.pop(),te(e.done)}function es(e,t,i,r){var d=e.history;d.undone.length=0;var P=+new Date,X,Z;if((d.lastOp==r||d.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&d.lastModTime>P-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(X=pl(d,d.lastOp==r)))Z=te(X.changes),Rt(t.from,t.to)==0&&Rt(t.from,Z.to)==0?Z.to=ci(t):X.changes.push(Eo(e,t));else{var $=te(d.done);for((!$||!$.ranges)&&Ga(e.sel,d.done),X={changes:[Eo(e,t)],generation:d.generation},d.done.push(X);d.done.length>d.undoDepth;)d.done.shift(),d.done[0].ranges||d.done.shift()}d.done.push(i),d.generation=++d.maxGeneration,d.lastModTime=d.lastSelTime=P,d.lastOp=d.lastSelOp=r,d.lastOrigin=d.lastSelOrigin=t.origin,Z||He(e,"historyAdded")}function ml(e,t,i,r){var d=t.charAt(0);return d=="*"||d=="+"&&i.ranges.length==r.ranges.length&&i.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function gl(e,t,i,r){var d=e.history,P=r&&r.origin;i==d.lastSelOp||P&&d.lastSelOrigin==P&&(d.lastModTime==d.lastSelTime&&d.lastOrigin==P||ml(e,P,te(d.done),t))?d.done[d.done.length-1]=t:Ga(t,d.done),d.lastSelTime=+new Date,d.lastSelOrigin=P,d.lastSelOp=i,r&&r.clearRedo!==!1&&$o(d.undone)}function Ga(e,t){var i=te(t);i&&i.ranges&&i.equals(e)||t.push(e)}function ts(e,t,i,r){var d=t["spans_"+e.id],P=0;e.iter(Math.max(e.first,i),Math.min(e.first+e.size,r),function(X){X.markedSpans&&((d||(d=t["spans_"+e.id]={}))[P]=X.markedSpans),++P})}function vl(e){if(!e)return null;for(var t,i=0;i-1&&(te(Z)[Re]=ne[Re],delete ne[Re]))}}return r}function xo(e,t,i,r){if(r){var d=e.anchor;if(i){var P=Rt(t,d)<0;P!=Rt(i,d)<0?(d=t,t=i):P!=Rt(t,i)<0&&(t=i)}return new Dn(d,t)}else return new Dn(i||t,t)}function Va(e,t,i,r,d){d==null&&(d=e.cm&&(e.cm.display.shift||e.extend)),cr(e,new Br([xo(e.sel.primary(),t,i,d)],0),r)}function rs(e,t,i){for(var r=[],d=e.cm&&(e.cm.display.shift||e.extend),P=0;P=t.ch:Z.to>t.ch))){if(d&&(He($,"beforeCursorEnter"),$.explicitlyCleared))if(P.markedSpans){--X;continue}else break;if(!$.atomic)continue;if(i){var Re=$.find(r<0?1:-1),Ye=void 0;if((r<0?Ce:ne)&&(Re=us(e,Re,-r,Re&&Re.line==t.line?P:null)),Re&&Re.line==t.line&&(Ye=Rt(Re,i))&&(r<0?Ye<0:Ye>0))return Pi(e,Re,t,r,d)}var ze=$.find(r<0?-1:1);return(r<0?ne:Ce)&&(ze=us(e,ze,r,ze.line==t.line?P:null)),ze?Pi(e,ze,t,r,d):null}}return t}function Qa(e,t,i,r,d){var P=r||1,X=Pi(e,t,i,P,d)||!d&&Pi(e,t,i,P,!0)||Pi(e,t,i,-P,d)||!d&&Pi(e,t,i,-P,!0);return X||(e.cantEdit=!0,lt(e.first,0))}function us(e,t,i,r){return i<0&&t.ch==0?t.line>e.first?b(e,lt(t.line-1)):null:i>0&&t.ch==(r||St(e,t.line)).text.length?t.line=0;--d)hs(e,{from:r[d].from,to:r[d].to,text:d?[""]:t.text,origin:t.origin});else hs(e,t)}function hs(e,t){if(t.text.length==1&&t.text[0]==""&&Rt(t.from,t.to)==0)return;var i=vo(e,t);es(e,t,i,e.cm?e.cm.curOp.id:NaN),la(e,t,i,br(e,t));var r=[];hi(e,function(d,P){!P&&pe(r,d.history)==-1&&(gs(d.history,t),r.push(d.history)),la(d,t,null,br(d,t))})}function Ya(e,t,i){var r=e.cm&&e.cm.state.suppressEdits;if(r&&!i)return;for(var d=e.history,P,X=e.sel,Z=t=="undo"?d.done:d.undone,$=t=="undo"?d.undone:d.done,ne=0;ne=0;--ze){var ht=Ye(ze);if(ht)return ht.v}}function fs(e,t){if(t==0)return;if(e.first+=t,e.sel=new Br(ye(e.sel.ranges,function(d){return new Dn(lt(d.anchor.line+t,d.anchor.ch),lt(d.head.line+t,d.head.ch))}),e.sel.primIndex),e.cm){Lt(e.cm,e.first,e.first-t,t);for(var i=e.cm.display,r=i.viewFrom;re.lastLine())return;if(t.from.lineP&&(t={from:t.from,to:lt(P,St(e,P).text.length),text:[t.text[0]],origin:t.origin}),t.removed=ln(e,t.from,t.to),i||(i=vo(e,t)),e.cm?El(e.cm,t,r):bo(e,t,r),Xa(e,i,Fe),e.cantEdit&&Qa(e,lt(e.firstLine(),0))&&(e.cantEdit=!1)}function El(e,t,i){var r=e.doc,d=e.display,P=t.from,X=t.to,Z=!1,$=P.line;e.options.lineWrapping||($=Mt(Qn(St(r,P.line))),r.iter($,X.line+1,function(ze){if(ze==d.maxLine)return Z=!0,!0})),r.sel.contains(t.from,t.to)>-1&&Te(e),bo(r,t,i,_t(e)),e.options.lineWrapping||(r.iter($,P.line+t.text.length,function(ze){var ht=Hr(ze);ht>d.maxLineLength&&(d.maxLine=ze,d.maxLineLength=ht,d.maxLineChanged=!0,Z=!1)}),Z&&(e.curOp.updateMaxLine=!0)),or(r,P.line),aa(e,400);var ne=t.text.length-(X.line-P.line)-1;t.full?Lt(e):P.line==X.line&&t.text.length==1&&!Jo(e.doc,t)?Zt(e,P.line,"text"):Lt(e,P.line,X.line+1,ne);var Ce=ge(e,"changes"),Re=ge(e,"change");if(Re||Ce){var Ye={from:P,to:X,text:t.text,removed:t.removed,origin:t.origin};Re&&Cn(e,"change",e,Ye),Ce&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(Ye)}e.display.selForContextMenu=null}function Bi(e,t,i,r,d){var P;r||(r=i),Rt(r,i)<0&&(P=[r,i],i=P[0],r=P[1]),typeof t=="string"&&(t=e.splitLines(t)),Ni(e,{from:i,to:r,text:t,origin:d})}function ps(e,t,i,r){i1||!(this.children[0]instanceof da))){var Z=[];this.collapse(Z),this.children=[new da(Z)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var X=d.lines.length%25+25,Z=X;Z10);e.parent.maybeSpill()},iterN:function(e,t,i){for(var r=0;re.display.maxLineLength&&(e.display.maxLine=ne,e.display.maxLineLength=Ce,e.display.maxLineChanged=!0)}r!=null&&e&&this.collapsed&&Lt(e,r,d+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&ss(e.doc)),e&&Cn(e,"markerCleared",e,this,r,d),t&&Si(e),this.parent&&this.parent.clear()},fi.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var i,r,d=0;d0||X==0&&P.clearWhenEmpty!==!1)return P;if(P.replacedWith&&(P.collapsed=!0,P.widgetNode=D("span",[P.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||P.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(P.widgetNode.insertLeft=!0)),P.collapsed){if(Bn(e,t.line,t,i,P)||t.line!=i.line&&Bn(e,i.line,t,i,P))throw new Error("Inserting collapsed marker partially overlapping an existing one");Jn()}P.addToHistory&&es(e,{from:t,to:i,origin:"markText"},e.sel,NaN);var Z=t.line,$=e.cm,ne;if(e.iter(Z,i.line+1,function(Re){$&&P.collapsed&&!$.options.lineWrapping&&Qn(Re)==$.display.maxLine&&(ne=!0),P.collapsed&&Z!=t.line&&Yt(Re,0),yr(Re,new Mr(P,Z==t.line?t.ch:null,Z==i.line?i.ch:null)),++Z}),P.collapsed&&e.iter(t.line,i.line+1,function(Re){rr(e,Re)&&Yt(Re,0)}),P.clearOnEnter&&we(P,"beforeCursorEnter",function(){return P.clear()}),P.readOnly&&(sr(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),P.collapsed&&(P.id=++ys,P.atomic=!0),$){if(ne&&($.curOp.updateMaxLine=!0),P.collapsed)Lt($,t.line,i.line+1);else if(P.className||P.startStyle||P.endStyle||P.css||P.attributes||P.title)for(var Ce=t.line;Ce<=i.line;Ce++)Zt($,Ce,"text");P.atomic&&ss($.doc),Cn($,"markerAdded",$,P)}return P}var fa=function(e,t){this.markers=e,this.primary=t;for(var i=0;i=0;$--)Ni(this,r[$]);Z?as(this,Z):this.cm&&Ii(this.cm)}),undo:qn(function(){Ya(this,"undo")}),redo:qn(function(){Ya(this,"redo")}),undoSelection:qn(function(){Ya(this,"undo",!0)}),redoSelection:qn(function(){Ya(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,i=0,r=0;r=e.ch)&&t.push(d.marker.parent||d.marker)}return t},findMarks:function(e,t,i){e=b(this,e),t=b(this,t);var r=[],d=e.line;return this.iter(e.line,t.line+1,function(P){var X=P.markedSpans;if(X)for(var Z=0;Z=$.to||$.from==null&&d!=e.line||$.from!=null&&d==t.line&&$.from>=t.ch)&&(!i||i($.marker))&&r.push($.marker.parent||$.marker)}++d}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var i=t.markedSpans;if(i)for(var r=0;re)return t=e,!0;e-=P,++i}),b(this,lt(i,t))},indexFromPos:function(e){e=b(this,e);var t=e.ch;if(e.linet&&(t=e.from),e.to!=null&&e.to-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var Ce=e.dataTransfer.getData("Text");if(Ce){var Re;if(t.state.draggingText&&!t.state.draggingText.copy&&(Re=t.listSelections()),Xa(t.doc,di(i,i)),Re)for(var Ye=0;Ye=0;Z--)Bi(e.doc,"",r[Z].from,r[Z].to,"+delete");Ii(e)})}function So(e,t,i){var r=Ze(e.text,t+i,i);return r<0||r>e.text.length?null:r}function Ao(e,t,i){var r=So(e,t.ch,i);return r==null?null:new lt(t.line,r,i<0?"after":"before")}function To(e,t,i,r,d){if(e){t.doc.direction=="rtl"&&(d=-d);var P=wt(i,t.doc.direction);if(P){var X=d<0?te(P):P[0],Z=d<0==(X.level==1),$=Z?"after":"before",ne;if(X.level>0||t.doc.direction=="rtl"){var Ce=li(t,i);ne=d<0?i.text.length-1:0;var Re=mr(t,Ce,ne).top;ne=yt(function(Ye){return mr(t,Ce,Ye).top==Re},d<0==(X.level==1)?X.from:X.to-1,ne),$=="before"&&(ne=So(i,ne,1))}else ne=d<0?X.to:X.from;return new lt(r,ne,$)}}return new lt(r,d<0?i.text.length:0,d<0?"before":"after")}function kl(e,t,i,r){var d=wt(t,e.doc.direction);if(!d)return Ao(t,i,r);i.ch>=t.text.length?(i.ch=t.text.length,i.sticky="before"):i.ch<=0&&(i.ch=0,i.sticky="after");var P=pt(d,i.ch,i.sticky),X=d[P];if(e.doc.direction=="ltr"&&X.level%2==0&&(r>0?X.to>i.ch:X.from=X.from&&Ye>=Ce.begin)){var ze=Re?"before":"after";return new lt(i.line,Ye,ze)}}var ht=function(kt,Wt,Pt){for(var Vt=function(kn,$n){return $n?new lt(i.line,Z(kn,1),"before"):new lt(i.line,kn,"after")};kt>=0&&kt0==(sn.level!=1),vn=an?Pt.begin:Z(Pt.end,-1);if(sn.from<=vn&&vn0?Ce.end:Z(Ce.begin,-1);return Dt!=null&&!(r>0&&Dt==t.text.length)&&(Et=ht(r>0?0:d.length-1,r,ne(Dt)),Et)?Et:null}var ga={selectAll:ds,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Fe)},killLine:function(e){return ji(e,function(t){if(t.empty()){var i=St(e.doc,t.head.line).text.length;return t.head.ch==i&&t.head.line0)d=new lt(d.line,d.ch+1),e.replaceRange(P.charAt(d.ch-1)+P.charAt(d.ch-2),lt(d.line,d.ch-2),d,"+transpose");else if(d.line>e.doc.first){var X=St(e.doc,d.line-1).text;X&&(d=new lt(d.line,1),e.replaceRange(P.charAt(0)+e.doc.lineSeparator()+X.charAt(X.length-1),lt(d.line-1,X.length-1),d,"+transpose"))}}i.push(new Dn(d,d))}e.setSelections(i)})},newlineAndIndent:function(e){return Or(e,function(){for(var t=e.listSelections(),i=t.length-1;i>=0;i--)e.replaceRange(e.doc.lineSeparator(),t[i].anchor,t[i].head,"+input");t=e.listSelections();for(var r=0;re&&Rt(t,this.pos)==0&&i==this.button};var ya,ba;function Wl(e,t){var i=+new Date;return ba&&ba.compare(i,e,t)?(ya=ba=null,"triple"):ya&&ya.compare(i,e,t)?(ba=new Do(i,e,t),ya=null,"double"):(ya=new Do(i,e,t),ba=null,"single")}function ks(e){var t=this,i=t.display;if(nt(t,e)||i.activeTouch&&i.input.supportsTouch())return;if(i.input.ensurePolled(),i.shift=e.shiftKey,Gr(i,e)){_||(i.scroller.draggable=!1,setTimeout(function(){return i.scroller.draggable=!0},100));return}if(Ro(t,e))return;var r=It(t,e),d=Ie(e),P=r?Wl(r,d):"single";if(window.focus(),d==1&&t.state.selectingText&&t.state.selectingText(e),r&&Hl(t,d,r,P,e))return;d==1?r?zl(t,r,P,e):Be(e)==i.scroller&&re(e):d==2?(r&&Va(t.doc,r),setTimeout(function(){return i.input.focus()},20)):d==3&&(O?t.display.input.onContextMenu(e):Po(t))}function Hl(e,t,i,r,d){var P="Click";return r=="double"?P="Double"+P:r=="triple"&&(P="Triple"+P),P=(t==1?"Left":t==2?"Middle":"Right")+P,va(e,Ts(P,d),d,function(X){if(typeof X=="string"&&(X=ga[X]),!X)return!1;var Z=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),Z=X(e,i)!=Ge}finally{e.state.suppressEdits=!1}return Z})}function Kl(e,t,i){var r=e.getOption("configureMouse"),d=r?r(e,t,i):{};if(d.unit==null){var P=u?i.shiftKey&&i.metaKey:i.altKey;d.unit=P?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(d.extend==null||e.doc.extend)&&(d.extend=e.doc.extend||i.shiftKey),d.addNew==null&&(d.addNew=o?i.metaKey:i.ctrlKey),d.moveOnDrag==null&&(d.moveOnDrag=!(o?i.altKey:i.ctrlKey)),d}function zl(e,t,i,r){j?setTimeout(H(ko,e),0):e.curOp.focus=I();var d=Kl(e,i,r),P=e.doc.sel,X;e.options.dragDrop&&ut&&!e.isReadOnly()&&i=="single"&&(X=P.contains(t))>-1&&(Rt((X=P.ranges[X]).from(),t)<0||t.xRel>0)&&(Rt(X.to(),t)>0||t.xRel<0)?Gl(e,r,t,d):Vl(e,r,t,d)}function Gl(e,t,i,r){var d=e.display,P=!1,X=Zn(e,function(ne){_&&(d.scroller.draggable=!1),e.state.draggingText=!1,st(d.wrapper.ownerDocument,"mouseup",X),st(d.wrapper.ownerDocument,"mousemove",Z),st(d.scroller,"dragstart",$),st(d.scroller,"drop",X),P||(re(ne),r.addNew||Va(e.doc,i,null,null,r.extend),_&&!w||j&&U==9?setTimeout(function(){d.wrapper.ownerDocument.body.focus({preventScroll:!0}),d.input.focus()},20):d.input.focus())}),Z=function(ne){P=P||Math.abs(t.clientX-ne.clientX)+Math.abs(t.clientY-ne.clientY)>=10},$=function(){return P=!0};_&&(d.scroller.draggable=!0),e.state.draggingText=X,X.copy=!r.moveOnDrag,d.scroller.dragDrop&&d.scroller.dragDrop(),we(d.wrapper.ownerDocument,"mouseup",X),we(d.wrapper.ownerDocument,"mousemove",Z),we(d.scroller,"dragstart",$),we(d.scroller,"drop",X),Po(e),setTimeout(function(){return d.input.focus()},20)}function Ps(e,t,i){if(i=="char")return new Dn(t,t);if(i=="word")return e.findWordAt(t);if(i=="line")return new Dn(lt(t.line,0),b(e.doc,lt(t.line+1,0)));var r=i(e,t);return new Dn(r.from,r.to)}function Vl(e,t,i,r){var d=e.display,P=e.doc;re(t);var X,Z,$=P.sel,ne=$.ranges;if(r.addNew&&!r.extend?(Z=P.sel.contains(i),Z>-1?X=ne[Z]:X=new Dn(i,i)):(X=P.sel.primary(),Z=P.sel.primIndex),r.unit=="rectangle")r.addNew||(X=new Dn(i,i)),i=It(e,t,!0,!0),Z=-1;else{var Ce=Ps(e,i,r.unit);r.extend?X=xo(X,Ce.anchor,Ce.head,r.extend):X=Ce}r.addNew?Z==-1?(Z=ne.length,cr(P,Xr(e,ne.concat([X]),Z),{scroll:!1,origin:"*mouse"})):ne.length>1&&ne[Z].empty()&&r.unit=="char"&&!r.extend?(cr(P,Xr(e,ne.slice(0,Z).concat(ne.slice(Z+1)),0),{scroll:!1,origin:"*mouse"}),$=P.sel):Co(P,Z,X,Ue):(Z=0,cr(P,new Br([X],0),Ue),$=P.sel);var Re=i;function Ye(Pt){if(Rt(Re,Pt)==0)return;if(Re=Pt,r.unit=="rectangle"){for(var Vt=[],sn=e.options.tabSize,an=q(St(P,i.line).text,i.ch,sn),vn=q(St(P,Pt.line).text,Pt.ch,sn),kn=Math.min(an,vn),$n=Math.max(an,vn),Fn=Math.min(i.line,Pt.line),Lr=Math.min(e.lastLine(),Math.max(i.line,Pt.line));Fn<=Lr;Fn++){var Cr=St(P,Fn).text,zn=je(Cr,kn,sn);kn==$n?Vt.push(new Dn(lt(Fn,zn),lt(Fn,zn))):Cr.length>zn&&Vt.push(new Dn(lt(Fn,zn),lt(Fn,je(Cr,$n,sn))))}Vt.length||Vt.push(new Dn(i,i)),cr(P,Xr(e,$.ranges.slice(0,Z).concat(Vt),Z),{origin:"*mouse",scroll:!1}),e.scrollIntoView(Pt)}else{var Sr=X,ar=Ps(e,Pt,r.unit),Yn=Sr.anchor,Gn;Rt(ar.anchor,Yn)>0?(Gn=ar.head,Yn=cn(Sr.from(),ar.anchor)):(Gn=ar.anchor,Yn=un(Sr.to(),ar.head));var jn=$.ranges.slice(0);jn[Z]=Xl(e,new Dn(b(P,Yn),Gn)),cr(P,Xr(e,jn,Z),Ue)}}var ze=d.wrapper.getBoundingClientRect(),ht=0;function Et(Pt){var Vt=++ht,sn=It(e,Pt,!0,r.unit=="rectangle");if(!sn)return;if(Rt(sn,Re)!=0){e.curOp.focus=I(),Ye(sn);var an=ja(d,P);(sn.line>=an.to||sn.lineze.bottom?20:0;vn&&setTimeout(Zn(e,function(){if(ht!=Vt)return;d.scroller.scrollTop+=vn,Et(Pt)}),50)}}function Dt(Pt){e.state.selectingText=!1,ht=Infinity,Pt&&(re(Pt),d.input.focus()),st(d.wrapper.ownerDocument,"mousemove",kt),st(d.wrapper.ownerDocument,"mouseup",Wt),P.history.lastSelOrigin=null}var kt=Zn(e,function(Pt){Pt.buttons===0||!Ie(Pt)?Dt(Pt):Et(Pt)}),Wt=Zn(e,Dt);e.state.selectingText=Wt,we(d.wrapper.ownerDocument,"mousemove",kt),we(d.wrapper.ownerDocument,"mouseup",Wt)}function Xl(e,t){var i=t.anchor,r=t.head,d=St(e.doc,i.line);if(Rt(i,r)==0&&i.sticky==r.sticky)return t;var P=wt(d);if(!P)return t;var X=pt(P,i.ch,i.sticky),Z=P[X];if(Z.from!=i.ch&&Z.to!=i.ch)return t;var $=X+(Z.from==i.ch==(Z.level!=1)?0:1);if($==0||$==P.length)return t;var ne;if(r.line!=i.line)ne=(r.line-i.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var Ce=pt(P,r.ch,r.sticky),Re=Ce-X||(r.ch-i.ch)*(Z.level==1?-1:1);Ce==$-1||Ce==$?ne=Re<0:ne=Re>0}var Ye=P[$+(ne?-1:0)],ze=ne==(Ye.level==1),ht=ze?Ye.from:Ye.to,Et=ze?"after":"before";return i.ch==ht&&i.sticky==Et?t:new Dn(new lt(i.line,ht,Et),r)}function Ns(e,t,i,r){var d,P;if(t.touches)d=t.touches[0].clientX,P=t.touches[0].clientY;else try{d=t.clientX,P=t.clientY}catch(Ye){return!1}if(d>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&re(t);var X=e.display,Z=X.lineDiv.getBoundingClientRect();if(P>Z.bottom||!ge(e,i))return ce(t);P-=Z.top-X.viewOffset;for(var $=0;$=d){var Ce=tn(e.doc,P),Re=e.display.gutterSpecs[$];return He(e,i,e,Ce,Re.className,t),ce(t)}}}function Ro(e,t){return Ns(e,t,"gutterClick",!0)}function Bs(e,t){if(Gr(e.display,t)||Ql(e,t))return;if(nt(e,t,"contextmenu"))return;O||e.display.input.onContextMenu(t)}function Ql(e,t){return ge(e,"gutterContextMenu")?Ns(e,t,"gutterContextMenu",!1):!1}function Us(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),bi(e)}var Wi={toString:function(){return"CodeMirror.Init"}},Fs={},$a={};function Yl(e){var t=e.optionHandlers;function i(r,d,P,X){e.defaults[r]=d,P&&(t[r]=X?function(Z,$,ne){ne!=Wi&&P(Z,$,ne)}:P)}e.defineOption=i,e.Init=Wi,i("value","",function(r,d){return r.setValue(d)},!0),i("mode",null,function(r,d){r.doc.modeOption=d,yo(r)},!0),i("indentUnit",2,yo,!0),i("indentWithTabs",!1),i("smartIndent",!0),i("tabSize",4,function(r){sa(r),bi(r),Lt(r)},!0),i("lineSeparator",null,function(r,d){if(r.doc.lineSep=d,!d)return;var P=[],X=r.doc.first;r.doc.iter(function($){for(var ne=0;;){var Ce=$.text.indexOf(d,ne);if(Ce==-1)break;ne=Ce+d.length,P.push(lt(X,Ce))}X++});for(var Z=P.length-1;Z>=0;Z--)Bi(r.doc,d,P[Z],lt(P[Z].line,P[Z].ch+d.length))}),i("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(r,d,P){r.state.specialChars=new RegExp(d.source+(d.test(" ")?"":"| "),"g"),P!=Wi&&r.refresh()}),i("specialCharPlaceholder",En,function(r){return r.refresh()},!0),i("electricChars",!0),i("inputStyle",n?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),i("spellcheck",!1,function(r,d){return r.getInputField().spellcheck=d},!0),i("autocorrect",!1,function(r,d){return r.getInputField().autocorrect=d},!0),i("autocapitalize",!1,function(r,d){return r.getInputField().autocapitalize=d},!0),i("rtlMoveVisually",!x),i("wholeLineUpdateBefore",!0),i("theme","default",function(r){Us(r),oa(r)},!0),i("keyMap","default",function(r,d,P){var X=Za(d),Z=P!=Wi&&Za(P);Z&&Z.detach&&Z.detach(r,X),X.attach&&X.attach(r,Z||null)}),i("extraKeys",null),i("configureMouse",null),i("lineWrapping",!1,Zl,!0),i("gutters",[],function(r,d){r.display.gutterSpecs=go(d,r.options.lineNumbers),oa(r)},!0),i("fixedGutter",!0,function(r,d){r.display.gutters.style.left=d?rt(r.display)+"px":"0",r.refresh()},!0),i("coverGutterNextToScrollbar",!1,function(r){return _i(r)},!0),i("scrollbarStyle","native",function(r){Wo(r),_i(r),r.display.scrollbars.setScrollTop(r.doc.scrollTop),r.display.scrollbars.setScrollLeft(r.doc.scrollLeft)},!0),i("lineNumbers",!1,function(r,d){r.display.gutterSpecs=go(r.options.gutters,d),oa(r)},!0),i("firstLineNumber",1,oa,!0),i("lineNumberFormatter",function(r){return r},oa,!0),i("showCursorWhenSelecting",!1,In,!0),i("resetSelectionOnContextMenu",!0),i("lineWiseCopyCut",!0),i("pasteLinesPerSelection",!0),i("selectionsMayTouch",!1),i("readOnly",!1,function(r,d){d=="nocursor"&&(Mi(r),r.display.input.blur()),r.display.input.readOnlyChanged(d)}),i("screenReaderLabel",null,function(r,d){d=d===""?null:d,r.display.input.screenReaderLabelChanged(d)}),i("disableInput",!1,function(r,d){d||r.display.input.reset()},!0),i("dragDrop",!0,Jl),i("allowDropFileTypes",null),i("cursorBlinkRate",530),i("cursorScrollMargin",0),i("cursorHeight",1,In,!0),i("singleCursorHeightPerLine",!0,In,!0),i("workTime",100),i("workDelay",100),i("flattenSpans",!0,sa,!0),i("addModeClass",!1,sa,!0),i("pollInterval",100),i("undoDepth",200,function(r,d){return r.doc.history.undoDepth=d}),i("historyEventDelay",1250),i("viewportMargin",10,function(r){return r.refresh()},!0),i("maxHighlightLength",1e4,sa,!0),i("moveInputWithCursor",!0,function(r,d){d||r.display.input.resetPosition()}),i("tabindex",null,function(r,d){return r.display.input.getField().tabIndex=d||""}),i("autofocus",null),i("direction","ltr",function(r,d){return r.doc.setDirection(d)},!0),i("phrases",null)}function Jl(e,t,i){var r=i&&i!=Wi;if(!t!=!r){var d=e.display.dragFunctions,P=t?we:st;P(e.display.scroller,"dragstart",d.start),P(e.display.scroller,"dragenter",d.enter),P(e.display.scroller,"dragover",d.over),P(e.display.scroller,"dragleave",d.leave),P(e.display.scroller,"drop",d.drop)}}function Zl(e){e.options.lineWrapping?(C(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(p(e.display.wrapper,"CodeMirror-wrap"),Zr(e)),mt(e),Lt(e),bi(e),setTimeout(function(){return _i(e)},100)}function Un(e,t){var i=this;if(!(this instanceof Un))return new Un(e,t);this.options=t=t?F(t):{},F(Fs,t,!1);var r=t.value;typeof r=="string"?r=new xr(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var d=new Un.inputStyles[t.inputStyle](this),P=this.display=new dl(e,r,d,t);P.wrapper.CodeMirror=this,Us(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Wo(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new le,keySeq:null,specialChars:null},t.autofocus&&!n&&P.input.focus(),j&&U<11&&setTimeout(function(){return i.display.input.reset(!0)},20),ql(this),Ol(),Ci(this),this.curOp.forceUpdate=!0,Zo(this,r),t.autofocus&&!n||this.hasFocus()?setTimeout(function(){i.hasFocus()&&!i.state.focused&&lo(i)},20):Mi(this);for(var X in $a)$a.hasOwnProperty(X)&&$a[X](this,t[X],Wi);zo(this),t.finishInit&&t.finishInit(this);for(var Z=0;Z20*20}we(t.scroller,"touchstart",function($){if(!nt(e,$)&&!P($)&&!Ro(e,$)){t.input.ensurePolled(),clearTimeout(i);var ne=+new Date;t.activeTouch={start:ne,moved:!1,prev:ne-r.end<=300?r:null},$.touches.length==1&&(t.activeTouch.left=$.touches[0].pageX,t.activeTouch.top=$.touches[0].pageY)}}),we(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),we(t.scroller,"touchend",function($){var ne=t.activeTouch;if(ne&&!Gr(t,$)&&ne.left!=null&&!ne.moved&&new Date-ne.start<300){var Ce=e.coordsChar(t.activeTouch,"page"),Re;!ne.prev||X(ne,ne.prev)?Re=new Dn(Ce,Ce):!ne.prev.prev||X(ne,ne.prev.prev)?Re=e.findWordAt(Ce):Re=new Dn(lt(Ce.line,0),b(e.doc,lt(Ce.line+1,0))),e.setSelection(Re.anchor,Re.head),e.focus(),re($)}d()}),we(t.scroller,"touchcancel",d),we(t.scroller,"scroll",function(){t.scroller.clientHeight&&(na(e,t.scroller.scrollTop),Ei(e,t.scroller.scrollLeft,!0),He(e,"scroll",e))}),we(t.scroller,"mousewheel",function($){return Xo(e,$)}),we(t.scroller,"DOMMouseScroll",function($){return Xo(e,$)}),we(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function($){nt(e,$)||Ee($)},over:function($){nt(e,$)||(Rl(e,$),Ee($))},start:function($){return Dl(e,$)},drop:Zn(e,wl),leave:function($){nt(e,$)||xs(e)}};var Z=t.input.getField();we(Z,"keyup",function($){return Is.call(e,$)}),we(Z,"keydown",Zn(e,Ms)),we(Z,"keypress",Zn(e,_s)),we(Z,"focus",function($){return lo(e,$)}),we(Z,"blur",function($){return Mi(e,$)})}var Oo=[];Un.defineInitHook=function(e){return Oo.push(e)};function Ea(e,t,i,r){var d=e.doc,P;i==null&&(i="add"),i=="smart"&&(d.mode.indent?P=Ot(e,t).state:i="prev");var X=e.options.tabSize,Z=St(d,t),$=q(Z.text,null,X);Z.stateAfter&&(Z.stateAfter=null);var ne=Z.text.match(/^\s*/)[0],Ce;if(!r&&!/\S/.test(Z.text))Ce=0,i="not";else if(i=="smart"&&(Ce=d.mode.indent(P,Z.text.slice(ne.length),Z.text),Ce==Ge||Ce>150)){if(!r)return;i="prev"}i=="prev"?t>d.first?Ce=q(St(d,t-1).text,null,X):Ce=0:i=="add"?Ce=$+e.options.indentUnit:i=="subtract"?Ce=$-e.options.indentUnit:typeof i=="number"&&(Ce=$+i),Ce=Math.max(0,Ce);var Re="",Ye=0;if(e.options.indentWithTabs)for(var ze=Math.floor(Ce/X);ze;--ze)Ye+=X,Re+=" ";if(YeX,$=qe(t),ne=null;if(Z&&r.ranges.length>1)if(Qr&&Qr.text.join(` +`)==t){if(r.ranges.length%Qr.text.length==0){ne=[];for(var Ce=0;Ce=0;Ye--){var ze=r.ranges[Ye],ht=ze.from(),Et=ze.to();ze.empty()&&(i&&i>0?ht=lt(ht.line,ht.ch-i):e.state.overwrite&&!Z?Et=lt(Et.line,Math.min(St(P,Et.line).text.length,Et.ch+te($).length)):Z&&Qr&&Qr.lineWise&&Qr.text.join(` `)==$.join(` -`)&&(ht=Et=lt(ht.line,0)));var Dt={from:ht,to:Et,text:ne?ne[Ye%ne.length]:$,origin:d||(Z?"paste":e.state.cutIncoming>X?"cut":"+input")};Ni(e.doc,Dt),Cn(e,"inputRead",e,Dt)}t&&!Z&&Ws(e,t),Ii(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Re),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function js(e,t){var i=e.clipboardData&&e.clipboardData.getData("Text");if(i)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&Or(t,function(){return Lo(t,i,0,null,"paste")}),!0}function Ws(e,t){if(!e.options.electricChars||!e.options.smartIndent)return;for(var i=e.doc.sel,r=i.ranges.length-1;r>=0;r--){var d=i.ranges[r];if(d.head.ch>100||r&&i.ranges[r-1].head.line==d.head.line)continue;var k=e.getModeAt(d.head),X=!1;if(k.electricChars){for(var Z=0;Z-1){X=Ea(e,d.head.line,"smart");break}}else k.electricInput&&(k.electricInput.test(St(e.doc,d.head.line).text.slice(0,d.head.ch))&&(X=Ea(e,d.head.line,"smart")));X&&Cn(e,"electricInput",e,d.head.line)}}function Hs(e){for(var t=[],i=[],r=0;rk&&(Ea(this,Z.head.line,r,!0),k=Z.head.line,X==this.doc.sel.primIndex&&Ii(this));else{var $=Z.from(),ne=Z.to(),Ce=Math.max(k,$.line);k=Math.min(this.lastLine(),ne.line-(ne.ch?0:1))+1;for(var Re=Ce;Re0&&Co(this.doc,X,new Dn($,Ye[X].to()),Fe)}}}),getTokenAt:function(r,d){return Tn(this,r,d)},getLineTokens:function(r,d){return Tn(this,lt(r),d,!0)},getTokenTypeAt:function(r){r=b(this.doc,r);var d=ot(this,St(this.doc,r.line)),k=0,X=(d.length-1)/2,Z=r.ch,$;if(Z==0)$=d[2];else for(;;){var ne=k+X>>1;if((ne?d[ne*2-1]:0)>=Z)X=ne;else if(d[ne*2+1]$&&(r=$,X=!0),Z=St(this.doc,r)}else Z=r;return Oi(this,Z,{top:0,left:0},d||"page",k||X).top+(X?this.doc.height-Er(Z):0)},defaultTextHeight:function(){return Ut(this.display)},defaultCharWidth:function(){return me(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(r,d,k,X,Z){var $=this.display;r=kr(this,b(this.doc,r));var ne=r.bottom,Ce=r.left;if(d.style.position="absolute",d.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(d),$.sizer.appendChild(d),X=="over")ne=r.top;else if(X=="above"||X=="near"){var Re=Math.max($.wrapper.clientHeight,this.doc.height),Ye=Math.max($.sizer.clientWidth,$.lineSpace.clientWidth);(X=="above"||r.bottom+d.offsetHeight>Re)&&r.top>d.offsetHeight?ne=r.top-d.offsetHeight:r.bottom+d.offsetHeight<=Re&&(ne=r.bottom),Ce+d.offsetWidth>Ye&&(Ce=Ye-d.offsetWidth)}d.style.top=ne+"px",d.style.left=d.style.right="",Z=="right"?(Ce=$.sizer.clientWidth-d.offsetWidth,d.style.right="0px"):(Z=="left"?Ce=0:Z=="middle"&&(Ce=($.sizer.clientWidth-d.offsetWidth)/2),d.style.left=Ce+"px"),k&&Js(this,{left:Ce,top:ne,right:Ce+d.offsetWidth,bottom:ne+d.offsetHeight})},triggerOnKeyDown:gr(Ms),triggerOnKeyPress:gr(_s),triggerOnKeyUp:Is,triggerOnMouseDown:gr(Ps),execCommand:function(r){if(ga.hasOwnProperty(r))return ga[r].call(null,this)},triggerElectric:gr(function(r){Ws(this,r)}),findPosH:function(r,d,k,X){var Z=1;d<0&&(Z=-1,d=-d);for(var $=b(this.doc,r),ne=0;ne0&&Ce(k.charAt(X-1));)--X;for(;Z.5||this.options.lineWrapping)&&mt(this),He(this,"refresh",this)}),swapDoc:gr(function(r){var d=this.doc;return d.cm=null,this.state.selectingText&&this.state.selectingText(),Zo(this,r),bi(this),this.display.input.reset(),ta(this,r.scrollLeft,r.scrollTop),this.curOp.forceScroll=!0,Cn(this,"swapDoc",this,d),d}),phrase:function(r){var d=this.options.phrases;return d&&Object.prototype.hasOwnProperty.call(d,r)?d[r]:r},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},be(e),e.registerHelper=function(r,d,k){i.hasOwnProperty(r)||(i[r]=e[r]={_global:[]}),i[r][d]=k},e.registerGlobalHelper=function(r,d,k,X){e.registerHelper(r,d,X),i[r]._global.push({pred:k,val:X})}}function Mo(e,t,i,r,d){var k=t,X=i,Z=St(e,t.line),$=d&&e.direction=="rtl"?-i:i;function ne(){var Wt=t.line+$;return Wt=e.first+e.size?!1:(t=new lt(Wt,t.ch,t.sticky),Z=St(e,Wt))}function Ce(Wt){var kt;if(r=="codepoint"){var Vt=Z.text.charCodeAt(t.ch+(r>0?0:-1));isNaN(Vt)?kt=null:kt=new lt(t.line,Math.max(0,Math.min(Z.text.length,t.ch+i*(Vt>=55296&&Vt<56320?2:1))),-i)}else d?kt=Pl(e.cm,Z,t,i):kt=Ao(Z,t,i);if(kt==null)if(!Wt&&ne())t=To(d,e.cm,Z,t.line,$);else return!1;else t=kt;return!0}if(r=="char"||r=="codepoint")Ce();else if(r=="column")Ce(!0);else if(r=="word"||r=="group")for(var Re=null,Ye=r=="group",ze=e.cm&&e.cm.getHelper(t,"wordChars"),ht=!0;!(i<0&&!Ce(!ht));ht=!1){var Et=Z.text.charAt(t.ch)||` +`)&&(ht=Et=lt(ht.line,0)));var Dt={from:ht,to:Et,text:ne?ne[Ye%ne.length]:$,origin:d||(Z?"paste":e.state.cutIncoming>X?"cut":"+input")};Ni(e.doc,Dt),Cn(e,"inputRead",e,Dt)}t&&!Z&&Ws(e,t),Ii(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Re),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function js(e,t){var i=e.clipboardData&&e.clipboardData.getData("Text");if(i)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&Or(t,function(){return Lo(t,i,0,null,"paste")}),!0}function Ws(e,t){if(!e.options.electricChars||!e.options.smartIndent)return;for(var i=e.doc.sel,r=i.ranges.length-1;r>=0;r--){var d=i.ranges[r];if(d.head.ch>100||r&&i.ranges[r-1].head.line==d.head.line)continue;var P=e.getModeAt(d.head),X=!1;if(P.electricChars){for(var Z=0;Z-1){X=Ea(e,d.head.line,"smart");break}}else P.electricInput&&(P.electricInput.test(St(e.doc,d.head.line).text.slice(0,d.head.ch))&&(X=Ea(e,d.head.line,"smart")));X&&Cn(e,"electricInput",e,d.head.line)}}function Hs(e){for(var t=[],i=[],r=0;rP&&(Ea(this,Z.head.line,r,!0),P=Z.head.line,X==this.doc.sel.primIndex&&Ii(this));else{var $=Z.from(),ne=Z.to(),Ce=Math.max(P,$.line);P=Math.min(this.lastLine(),ne.line-(ne.ch?0:1))+1;for(var Re=Ce;Re0&&Co(this.doc,X,new Dn($,Ye[X].to()),Fe)}}}),getTokenAt:function(r,d){return Tn(this,r,d)},getLineTokens:function(r,d){return Tn(this,lt(r),d,!0)},getTokenTypeAt:function(r){r=b(this.doc,r);var d=ot(this,St(this.doc,r.line)),P=0,X=(d.length-1)/2,Z=r.ch,$;if(Z==0)$=d[2];else for(;;){var ne=P+X>>1;if((ne?d[ne*2-1]:0)>=Z)X=ne;else if(d[ne*2+1]$&&(r=$,X=!0),Z=St(this.doc,r)}else Z=r;return Oi(this,Z,{top:0,left:0},d||"page",P||X).top+(X?this.doc.height-Er(Z):0)},defaultTextHeight:function(){return Ut(this.display)},defaultCharWidth:function(){return me(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(r,d,P,X,Z){var $=this.display;r=Pr(this,b(this.doc,r));var ne=r.bottom,Ce=r.left;if(d.style.position="absolute",d.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(d),$.sizer.appendChild(d),X=="over")ne=r.top;else if(X=="above"||X=="near"){var Re=Math.max($.wrapper.clientHeight,this.doc.height),Ye=Math.max($.sizer.clientWidth,$.lineSpace.clientWidth);(X=="above"||r.bottom+d.offsetHeight>Re)&&r.top>d.offsetHeight?ne=r.top-d.offsetHeight:r.bottom+d.offsetHeight<=Re&&(ne=r.bottom),Ce+d.offsetWidth>Ye&&(Ce=Ye-d.offsetWidth)}d.style.top=ne+"px",d.style.left=d.style.right="",Z=="right"?(Ce=$.sizer.clientWidth-d.offsetWidth,d.style.right="0px"):(Z=="left"?Ce=0:Z=="middle"&&(Ce=($.sizer.clientWidth-d.offsetWidth)/2),d.style.left=Ce+"px"),P&&Js(this,{left:Ce,top:ne,right:Ce+d.offsetWidth,bottom:ne+d.offsetHeight})},triggerOnKeyDown:gr(Ms),triggerOnKeyPress:gr(_s),triggerOnKeyUp:Is,triggerOnMouseDown:gr(ks),execCommand:function(r){if(ga.hasOwnProperty(r))return ga[r].call(null,this)},triggerElectric:gr(function(r){Ws(this,r)}),findPosH:function(r,d,P,X){var Z=1;d<0&&(Z=-1,d=-d);for(var $=b(this.doc,r),ne=0;ne0&&Ce(P.charAt(X-1));)--X;for(;Z.5||this.options.lineWrapping)&&mt(this),He(this,"refresh",this)}),swapDoc:gr(function(r){var d=this.doc;return d.cm=null,this.state.selectingText&&this.state.selectingText(),Zo(this,r),bi(this),this.display.input.reset(),ta(this,r.scrollLeft,r.scrollTop),this.curOp.forceScroll=!0,Cn(this,"swapDoc",this,d),d}),phrase:function(r){var d=this.options.phrases;return d&&Object.prototype.hasOwnProperty.call(d,r)?d[r]:r},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},be(e),e.registerHelper=function(r,d,P){i.hasOwnProperty(r)||(i[r]=e[r]={_global:[]}),i[r][d]=P},e.registerGlobalHelper=function(r,d,P,X){e.registerHelper(r,d,X),i[r]._global.push({pred:P,val:X})}}function Mo(e,t,i,r,d){var P=t,X=i,Z=St(e,t.line),$=d&&e.direction=="rtl"?-i:i;function ne(){var Wt=t.line+$;return Wt=e.first+e.size?!1:(t=new lt(Wt,t.ch,t.sticky),Z=St(e,Wt))}function Ce(Wt){var Pt;if(r=="codepoint"){var Vt=Z.text.charCodeAt(t.ch+(r>0?0:-1));isNaN(Vt)?Pt=null:Pt=new lt(t.line,Math.max(0,Math.min(Z.text.length,t.ch+i*(Vt>=55296&&Vt<56320?2:1))),-i)}else d?Pt=kl(e.cm,Z,t,i):Pt=Ao(Z,t,i);if(Pt==null)if(!Wt&&ne())t=To(d,e.cm,Z,t.line,$);else return!1;else t=Pt;return!0}if(r=="char"||r=="codepoint")Ce();else if(r=="column")Ce(!0);else if(r=="word"||r=="group")for(var Re=null,Ye=r=="group",ze=e.cm&&e.cm.getHelper(t,"wordChars"),ht=!0;!(i<0&&!Ce(!ht));ht=!1){var Et=Z.text.charAt(t.ch)||` `,Dt=Me(Et,ze)?"w":Ye&&Et==` -`?"n":!Ye||/\s/.test(Et)?null:"p";if(Ye&&!ht&&!Dt&&(Dt="s"),Re&&Re!=Dt){i<0&&(i=1,Ce(),t.sticky="after");break}if(Dt&&(Re=Dt),i>0&&!Ce(!ht))break}var Pt=Qa(e,t,k,X,!0);return Jt(k,Pt)&&(Pt.hitSide=!0),Pt}function Gs(e,t,i,r){var d=e.doc,k=t.left,X;if(r=="page"){var Z=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),$=Math.max(Z-.5*Ut(e.display),3);X=(i>0?t.bottom:t.top)+i*$}else r=="line"&&(X=i>0?t.bottom+3:t.top-3);for(var ne;!(ne=$i(e,k,X),!ne.outside);){if(i<0?X<=0:X>=d.height){ne.hitSide=!0;break}X+=i*5}return ne}var On=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new le,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};On.prototype.init=function(e){var t=this,i=this,r=i.cm,d=i.div=e.lineDiv;Ks(d,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize);function k(Z){for(var $=Z.target;$;$=$.parentNode){if($==d)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test($.className))break}return!1}we(d,"paste",function(Z){if(!k(Z)||nt(r,Z)||js(Z,r))return;U<=11&&setTimeout(Zn(r,function(){return t.updateFromDOM()}),20)}),we(d,"compositionstart",function(Z){t.composing={data:Z.data,done:!1}}),we(d,"compositionupdate",function(Z){t.composing||(t.composing={data:Z.data,done:!1})}),we(d,"compositionend",function(Z){t.composing&&(Z.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),we(d,"touchstart",function(){return i.forceCompositionEnd()}),we(d,"input",function(){t.composing||t.readFromDOMSoon()});function X(Z){if(!k(Z)||nt(r,Z))return;if(r.somethingSelected())eo({lineWise:!1,text:r.getSelections()}),Z.type=="cut"&&r.replaceSelection("",null,"cut");else if(r.options.lineWiseCopyCut){var $=Hs(r);eo({lineWise:!0,text:$.text}),Z.type=="cut"&&r.operation(function(){r.setSelections($.ranges,0,Fe),r.replaceSelection("",null,"cut")})}else return;if(Z.clipboardData){Z.clipboardData.clearData();var ne=Qr.text.join(` +`?"n":!Ye||/\s/.test(Et)?null:"p";if(Ye&&!ht&&!Dt&&(Dt="s"),Re&&Re!=Dt){i<0&&(i=1,Ce(),t.sticky="after");break}if(Dt&&(Re=Dt),i>0&&!Ce(!ht))break}var kt=Qa(e,t,P,X,!0);return Jt(P,kt)&&(kt.hitSide=!0),kt}function Gs(e,t,i,r){var d=e.doc,P=t.left,X;if(r=="page"){var Z=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),$=Math.max(Z-.5*Ut(e.display),3);X=(i>0?t.bottom:t.top)+i*$}else r=="line"&&(X=i>0?t.bottom+3:t.top-3);for(var ne;!(ne=$i(e,P,X),!ne.outside);){if(i<0?X<=0:X>=d.height){ne.hitSide=!0;break}X+=i*5}return ne}var On=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new le,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};On.prototype.init=function(e){var t=this,i=this,r=i.cm,d=i.div=e.lineDiv;Ks(d,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize);function P(Z){for(var $=Z.target;$;$=$.parentNode){if($==d)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test($.className))break}return!1}we(d,"paste",function(Z){if(!P(Z)||nt(r,Z)||js(Z,r))return;U<=11&&setTimeout(Zn(r,function(){return t.updateFromDOM()}),20)}),we(d,"compositionstart",function(Z){t.composing={data:Z.data,done:!1}}),we(d,"compositionupdate",function(Z){t.composing||(t.composing={data:Z.data,done:!1})}),we(d,"compositionend",function(Z){t.composing&&(Z.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),we(d,"touchstart",function(){return i.forceCompositionEnd()}),we(d,"input",function(){t.composing||t.readFromDOMSoon()});function X(Z){if(!P(Z)||nt(r,Z))return;if(r.somethingSelected())eo({lineWise:!1,text:r.getSelections()}),Z.type=="cut"&&r.replaceSelection("",null,"cut");else if(r.options.lineWiseCopyCut){var $=Hs(r);eo({lineWise:!0,text:$.text}),Z.type=="cut"&&r.operation(function(){r.setSelections($.ranges,0,Fe),r.replaceSelection("",null,"cut")})}else return;if(Z.clipboardData){Z.clipboardData.clearData();var ne=Qr.text.join(` `);if(Z.clipboardData.setData("Text",ne),Z.clipboardData.getData("Text")==ne){Z.preventDefault();return}}var Ce=zs(),Re=Ce.firstChild;r.display.lineSpace.insertBefore(Ce,r.display.lineSpace.firstChild),Re.value=Qr.text.join(` -`);var Ye=document.activeElement;Y(Re),setTimeout(function(){r.display.lineSpace.removeChild(Ce),Ye.focus(),Ye==d&&i.showPrimarySelection()},50)}we(d,"copy",X),we(d,"cut",X)},On.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},On.prototype.prepareSelection=function(){var e=ui(this.cm,!1);return e.focus=document.activeElement==this.div,e},On.prototype.showSelection=function(e,t){if(!e||!this.cm.display.view.length)return;(e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e)},On.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},On.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,i=t.doc.sel.primary(),r=i.from(),d=i.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||d.line=t.display.viewFrom&&Vs(t,r)||{node:Z[0].measure.map[2],offset:0},ne=d.linee.firstLine()&&(r=lt(r.line-1,St(e.doc,r.line-1).length)),d.ch==St(e.doc,d.line).text.length&&d.linet.viewTo-1)return!1;var k,X,Z;r.line==t.viewFrom||(k=Nt(e,r.line))==0?(X=Mt(t.view[0].line),Z=t.view[0].node):(X=Mt(t.view[k].line),Z=t.view[k-1].node.nextSibling);var $=Nt(e,d.line),ne,Ce;if($==t.view.length-1?(ne=t.viewTo-1,Ce=t.lineDiv.lastChild):(ne=Mt(t.view[$+1].line)-1,Ce=t.view[$+1].node.previousSibling),!Z)return!1;for(var Re=e.doc.splitLines(tu(e,Z,Ce,X,ne)),Ye=ln(e.doc,lt(X,0),lt(ne,St(e.doc,ne).text.length));Re.length>1&&Ye.length>1;)if(te(Re)==te(Ye))Re.pop(),Ye.pop(),ne--;else if(Re[0]==Ye[0])Re.shift(),Ye.shift(),X++;else break;for(var ze=0,ht=0,Et=Re[0],Dt=Ye[0],Pt=Math.min(Et.length,Dt.length);zer.ch&&Wt.charCodeAt(Wt.length-ht-1)==kt.charCodeAt(kt.length-ht-1);)ze--,ht++;Re[Re.length-1]=Wt.slice(0,Wt.length-ht).replace(/^\u200b+/,""),Re[0]=Re[0].slice(ze).replace(/\u200b+$/,"");var sn=lt(X,ze),an=lt(ne,Ye.length?te(Ye).length-ht:0);if(Re.length>1||Re[0]||Rt(sn,an))return Bi(e.doc,Re,sn,an,"+input"),!0},On.prototype.ensurePolled=function(){this.forceCompositionEnd()},On.prototype.reset=function(){this.forceCompositionEnd()},On.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},On.prototype.readFromDOMSoon=function(){var e=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80)},On.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Or(this.cm,function(){return Lt(e.cm)})},On.prototype.setUneditable=function(e){e.contentEditable="false"},On.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||Zn(this.cm,Lo)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},On.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},On.prototype.onContextMenu=function(){},On.prototype.resetPosition=function(){},On.prototype.needsContentAttribute=!0;function Vs(e,t){var i=Xi(e,t.line);if(!i||i.hidden)return null;var r=St(e.doc,t.line),d=Di(i,r,t.line),k=wt(r,e.doc.direction),X="left";if(k){var Z=pt(k,t.ch);X=Z%2?"right":"left"}var $=Yi(d.map,t.ch,X);return $.offset=$.collapse=="right"?$.end:$.start,$}function eu(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function Hi(e,t){return t&&(e.bad=!0),e}function tu(e,t,i,r,d){var k="",X=!1,Z=e.doc.lineSeparator(),$=!1;function ne(ze){return function(ht){return ht.id==ze}}function Ce(){X&&(k+=Z,$&&(k+=Z),X=$=!1)}function Re(ze){ze&&(Ce(),k+=ze)}function Ye(ze){if(ze.nodeType==1){var ht=ze.getAttribute("cm-text");if(ht){Re(ht);return}var Et=ze.getAttribute("cm-marker"),Dt;if(Et){var Pt=e.findMarks(lt(r,0),lt(d+1,0),ne(+Et));Pt.length&&(Dt=Pt[0].find(0))&&Re(ln(e.doc,Dt.from,Dt.to).join(Z));return}if(ze.getAttribute("contenteditable")=="false")return;var Wt=/^(pre|div|p|li|table|br)$/i.test(ze.nodeName);if(!/^br$/i.test(ze.nodeName)&&ze.textContent.length==0)return;Wt&&Ce();for(var kt=0;kt=9&&t.hasSelection&&(t.hasSelection=null),i.poll()}),we(d,"paste",function(X){if(nt(r,X)||js(X,r))return;r.state.pasteIncoming=+new Date,i.fastPoll()});function k(X){if(nt(r,X))return;if(r.somethingSelected())eo({lineWise:!1,text:r.getSelections()});else if(r.options.lineWiseCopyCut){var Z=Hs(r);eo({lineWise:!0,text:Z.text}),X.type=="cut"?r.setSelections(Z.ranges,null,Fe):(i.prevInput="",d.value=Z.text.join(` -`),Y(d))}else return;X.type=="cut"&&(r.state.cutIncoming=+new Date)}we(d,"cut",k),we(d,"copy",k),we(e.scroller,"paste",function(X){if(Gr(e,X)||nt(r,X))return;if(!d.dispatchEvent){r.state.pasteIncoming=+new Date,i.focus();return}var Z=new Event("paste");Z.clipboardData=X.clipboardData,d.dispatchEvent(Z)}),we(e.lineSpace,"selectstart",function(X){Gr(e,X)||re(X)}),we(d,"compositionstart",function(){var X=r.getCursor("from");i.composing&&i.composing.range.clear(),i.composing={start:X,range:r.markText(X,r.getCursor("to"),{className:"CodeMirror-composing"})}}),we(d,"compositionend",function(){i.composing&&(i.poll(),i.composing.range.clear(),i.composing=null)})},Kn.prototype.createField=function(e){this.wrapper=zs(),this.textarea=this.wrapper.firstChild},Kn.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Kn.prototype.prepareSelection=function(){var e=this.cm,t=e.display,i=e.doc,r=ui(e);if(e.options.moveInputWithCursor){var d=kr(e,i.sel.primary().head,"div"),k=t.wrapper.getBoundingClientRect(),X=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,d.top+X.top-k.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,d.left+X.left-k.left))}return r},Kn.prototype.showSelection=function(e){var t=this.cm,i=t.display;s(i.cursorDiv,e.cursors),s(i.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Kn.prototype.reset=function(e){if(this.contextMenuPending||this.composing)return;var t=this.cm;if(t.somethingSelected()){this.prevInput="";var i=t.getSelection();this.textarea.value=i,t.state.focused&&Y(this.textarea),j&&U>=9&&(this.hasSelection=i)}else e||(this.prevInput=this.textarea.value="",j&&U>=9&&(this.hasSelection=null))},Kn.prototype.getField=function(){return this.textarea},Kn.prototype.supportsTouch=function(){return!1},Kn.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!n||I()!=this.textarea))try{this.textarea.focus()}catch(e){}},Kn.prototype.blur=function(){this.textarea.blur()},Kn.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Kn.prototype.receivedFocus=function(){this.slowPoll()},Kn.prototype.slowPoll=function(){var e=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Kn.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function i(){var r=t.poll();!r&&!e?(e=!0,t.polling.set(60,i)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,i)},Kn.prototype.poll=function(){var e=this,t=this.cm,i=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Xe(i)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var d=i.value;if(d==r&&!t.somethingSelected())return!1;if(j&&U>=9&&this.hasSelection===d||o&&/[\uf700-\uf7ff]/.test(d))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var k=d.charCodeAt(0);if(k==8203&&!r&&(r="\u200B"),k==8666)return this.reset(),this.cm.execCommand("undo")}for(var X=0,Z=Math.min(r.length,d.length);X1e3||d.indexOf(` -`)>-1?i.value=e.prevInput="":e.prevInput=d,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Kn.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Kn.prototype.onKeyPress=function(){j&&U>=9&&(this.hasSelection=null),this.fastPoll()},Kn.prototype.onContextMenu=function(e){var t=this,i=t.cm,r=i.display,d=t.textarea;t.contextMenuPending&&t.contextMenuPending();var k=It(i,e),X=r.scroller.scrollTop;if(!k||g)return;var Z=i.options.resetSelectionOnContextMenu;Z&&i.doc.sel.contains(k)==-1&&Zn(i,cr)(i.doc,di(k),Fe);var $=d.style.cssText,ne=t.wrapper.style.cssText,Ce=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",d.style.cssText=`position: absolute; width: 30px; height: 30px; +`);var Ye=document.activeElement;Y(Re),setTimeout(function(){r.display.lineSpace.removeChild(Ce),Ye.focus(),Ye==d&&i.showPrimarySelection()},50)}we(d,"copy",X),we(d,"cut",X)},On.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},On.prototype.prepareSelection=function(){var e=ui(this.cm,!1);return e.focus=document.activeElement==this.div,e},On.prototype.showSelection=function(e,t){if(!e||!this.cm.display.view.length)return;(e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e)},On.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},On.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,i=t.doc.sel.primary(),r=i.from(),d=i.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||d.line=t.display.viewFrom&&Vs(t,r)||{node:Z[0].measure.map[2],offset:0},ne=d.linee.firstLine()&&(r=lt(r.line-1,St(e.doc,r.line-1).length)),d.ch==St(e.doc,d.line).text.length&&d.linet.viewTo-1)return!1;var P,X,Z;r.line==t.viewFrom||(P=Nt(e,r.line))==0?(X=Mt(t.view[0].line),Z=t.view[0].node):(X=Mt(t.view[P].line),Z=t.view[P-1].node.nextSibling);var $=Nt(e,d.line),ne,Ce;if($==t.view.length-1?(ne=t.viewTo-1,Ce=t.lineDiv.lastChild):(ne=Mt(t.view[$+1].line)-1,Ce=t.view[$+1].node.previousSibling),!Z)return!1;for(var Re=e.doc.splitLines(tu(e,Z,Ce,X,ne)),Ye=ln(e.doc,lt(X,0),lt(ne,St(e.doc,ne).text.length));Re.length>1&&Ye.length>1;)if(te(Re)==te(Ye))Re.pop(),Ye.pop(),ne--;else if(Re[0]==Ye[0])Re.shift(),Ye.shift(),X++;else break;for(var ze=0,ht=0,Et=Re[0],Dt=Ye[0],kt=Math.min(Et.length,Dt.length);zer.ch&&Wt.charCodeAt(Wt.length-ht-1)==Pt.charCodeAt(Pt.length-ht-1);)ze--,ht++;Re[Re.length-1]=Wt.slice(0,Wt.length-ht).replace(/^\u200b+/,""),Re[0]=Re[0].slice(ze).replace(/\u200b+$/,"");var sn=lt(X,ze),an=lt(ne,Ye.length?te(Ye).length-ht:0);if(Re.length>1||Re[0]||Rt(sn,an))return Bi(e.doc,Re,sn,an,"+input"),!0},On.prototype.ensurePolled=function(){this.forceCompositionEnd()},On.prototype.reset=function(){this.forceCompositionEnd()},On.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},On.prototype.readFromDOMSoon=function(){var e=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80)},On.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Or(this.cm,function(){return Lt(e.cm)})},On.prototype.setUneditable=function(e){e.contentEditable="false"},On.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||Zn(this.cm,Lo)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},On.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},On.prototype.onContextMenu=function(){},On.prototype.resetPosition=function(){},On.prototype.needsContentAttribute=!0;function Vs(e,t){var i=Xi(e,t.line);if(!i||i.hidden)return null;var r=St(e.doc,t.line),d=Di(i,r,t.line),P=wt(r,e.doc.direction),X="left";if(P){var Z=pt(P,t.ch);X=Z%2?"right":"left"}var $=Yi(d.map,t.ch,X);return $.offset=$.collapse=="right"?$.end:$.start,$}function eu(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function Hi(e,t){return t&&(e.bad=!0),e}function tu(e,t,i,r,d){var P="",X=!1,Z=e.doc.lineSeparator(),$=!1;function ne(ze){return function(ht){return ht.id==ze}}function Ce(){X&&(P+=Z,$&&(P+=Z),X=$=!1)}function Re(ze){ze&&(Ce(),P+=ze)}function Ye(ze){if(ze.nodeType==1){var ht=ze.getAttribute("cm-text");if(ht){Re(ht);return}var Et=ze.getAttribute("cm-marker"),Dt;if(Et){var kt=e.findMarks(lt(r,0),lt(d+1,0),ne(+Et));kt.length&&(Dt=kt[0].find(0))&&Re(ln(e.doc,Dt.from,Dt.to).join(Z));return}if(ze.getAttribute("contenteditable")=="false")return;var Wt=/^(pre|div|p|li|table|br)$/i.test(ze.nodeName);if(!/^br$/i.test(ze.nodeName)&&ze.textContent.length==0)return;Wt&&Ce();for(var Pt=0;Pt=9&&t.hasSelection&&(t.hasSelection=null),i.poll()}),we(d,"paste",function(X){if(nt(r,X)||js(X,r))return;r.state.pasteIncoming=+new Date,i.fastPoll()});function P(X){if(nt(r,X))return;if(r.somethingSelected())eo({lineWise:!1,text:r.getSelections()});else if(r.options.lineWiseCopyCut){var Z=Hs(r);eo({lineWise:!0,text:Z.text}),X.type=="cut"?r.setSelections(Z.ranges,null,Fe):(i.prevInput="",d.value=Z.text.join(` +`),Y(d))}else return;X.type=="cut"&&(r.state.cutIncoming=+new Date)}we(d,"cut",P),we(d,"copy",P),we(e.scroller,"paste",function(X){if(Gr(e,X)||nt(r,X))return;if(!d.dispatchEvent){r.state.pasteIncoming=+new Date,i.focus();return}var Z=new Event("paste");Z.clipboardData=X.clipboardData,d.dispatchEvent(Z)}),we(e.lineSpace,"selectstart",function(X){Gr(e,X)||re(X)}),we(d,"compositionstart",function(){var X=r.getCursor("from");i.composing&&i.composing.range.clear(),i.composing={start:X,range:r.markText(X,r.getCursor("to"),{className:"CodeMirror-composing"})}}),we(d,"compositionend",function(){i.composing&&(i.poll(),i.composing.range.clear(),i.composing=null)})},Kn.prototype.createField=function(e){this.wrapper=zs(),this.textarea=this.wrapper.firstChild},Kn.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Kn.prototype.prepareSelection=function(){var e=this.cm,t=e.display,i=e.doc,r=ui(e);if(e.options.moveInputWithCursor){var d=Pr(e,i.sel.primary().head,"div"),P=t.wrapper.getBoundingClientRect(),X=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,d.top+X.top-P.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,d.left+X.left-P.left))}return r},Kn.prototype.showSelection=function(e){var t=this.cm,i=t.display;s(i.cursorDiv,e.cursors),s(i.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Kn.prototype.reset=function(e){if(this.contextMenuPending||this.composing)return;var t=this.cm;if(t.somethingSelected()){this.prevInput="";var i=t.getSelection();this.textarea.value=i,t.state.focused&&Y(this.textarea),j&&U>=9&&(this.hasSelection=i)}else e||(this.prevInput=this.textarea.value="",j&&U>=9&&(this.hasSelection=null))},Kn.prototype.getField=function(){return this.textarea},Kn.prototype.supportsTouch=function(){return!1},Kn.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!n||I()!=this.textarea))try{this.textarea.focus()}catch(e){}},Kn.prototype.blur=function(){this.textarea.blur()},Kn.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Kn.prototype.receivedFocus=function(){this.slowPoll()},Kn.prototype.slowPoll=function(){var e=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Kn.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function i(){var r=t.poll();!r&&!e?(e=!0,t.polling.set(60,i)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,i)},Kn.prototype.poll=function(){var e=this,t=this.cm,i=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Xe(i)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var d=i.value;if(d==r&&!t.somethingSelected())return!1;if(j&&U>=9&&this.hasSelection===d||o&&/[\uf700-\uf7ff]/.test(d))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var P=d.charCodeAt(0);if(P==8203&&!r&&(r="\u200B"),P==8666)return this.reset(),this.cm.execCommand("undo")}for(var X=0,Z=Math.min(r.length,d.length);X1e3||d.indexOf(` +`)>-1?i.value=e.prevInput="":e.prevInput=d,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Kn.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Kn.prototype.onKeyPress=function(){j&&U>=9&&(this.hasSelection=null),this.fastPoll()},Kn.prototype.onContextMenu=function(e){var t=this,i=t.cm,r=i.display,d=t.textarea;t.contextMenuPending&&t.contextMenuPending();var P=It(i,e),X=r.scroller.scrollTop;if(!P||g)return;var Z=i.options.resetSelectionOnContextMenu;Z&&i.doc.sel.contains(P)==-1&&Zn(i,cr)(i.doc,di(P),Fe);var $=d.style.cssText,ne=t.wrapper.style.cssText,Ce=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",d.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(e.clientY-Ce.top-5)+"px; left: "+(e.clientX-Ce.left-5)+`px; z-index: 1000; background: `+(j?"rgba(255, 255, 255, .05)":"transparent")+`; - outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Re;_&&(Re=window.scrollY),r.input.focus(),_&&window.scrollTo(null,Re),r.input.reset(),i.somethingSelected()||(d.value=t.prevInput=" "),t.contextMenuPending=ze,r.selForContextMenu=i.doc.sel,clearTimeout(r.detectingSelectAll);function Ye(){if(d.selectionStart!=null){var Et=i.somethingSelected(),Dt="\u200B"+(Et?d.value:"");d.value="\u21DA",d.value=Dt,t.prevInput=Et?"":"\u200B",d.selectionStart=1,d.selectionEnd=Dt.length,r.selForContextMenu=i.doc.sel}}function ze(){if(t.contextMenuPending!=ze)return;if(t.contextMenuPending=!1,t.wrapper.style.cssText=ne,d.style.cssText=$,j&&U<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=X),d.selectionStart!=null){(!j||j&&U<9)&&Ye();var Et=0,Dt=function(){r.selForContextMenu==i.doc.sel&&d.selectionStart==0&&d.selectionEnd>0&&t.prevInput=="\u200B"?Zn(i,ds)(i):Et++<10?r.detectingSelectAll=setTimeout(Dt,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(Dt,200)}}if(j&&U>=9&&Ye(),O){Ee(e);var ht=function(){st(window,"mouseup",ht),setTimeout(ze,20)};we(window,"mouseup",ht)}else setTimeout(ze,50)},Kn.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Kn.prototype.setUneditable=function(){},Kn.prototype.needsContentAttribute=!1;function ru(e,t){if(t=t?F(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var i=I();t.autofocus=i==e||e.getAttribute("autofocus")!=null&&i==document.body}function r(){e.value=Z.getValue()}var d;if(e.form&&(we(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var k=e.form;d=k.submit;try{var X=k.submit=function(){r(),k.submit=d,k.submit(),k.submit=X}}catch($){}}t.finishInit=function($){$.save=r,$.getTextArea=function(){return e},$.toTextArea=function(){$.toTextArea=isNaN,r(),e.parentNode.removeChild($.getWrapperElement()),e.style.display="",e.form&&(st(e.form,"submit",r),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=d))}},e.style.display="none";var Z=Un(function($){return e.parentNode.insertBefore($,e.nextSibling)},t);return Z}function iu(e){e.off=st,e.on=we,e.wheelEventPixels=cl,e.Doc=xr,e.splitLines=qe,e.countColumn=q,e.findColumn=je,e.isWordChar=Se,e.Pass=Ge,e.signal=He,e.Line=ir,e.changeEnd=ci,e.scrollbarModel=jo,e.Pos=lt,e.cmpPos=Rt,e.modes=$e,e.mimeModes=ke,e.resolveMode=Ne,e.getMode=Ve,e.modeExtensions=tt,e.extendMode=ft,e.copyState=Ct,e.startState=qt,e.innerMode=zt,e.commands=ga,e.keyMap=ti,e.keyName=ws,e.isModifierKey=As,e.lookupKey=Fi,e.normalizeKeyMap=_l,e.StringStream=Qt,e.SharedTextMarker=fa,e.TextMarker=fi,e.LineWidget=ha,e.e_preventDefault=re,e.e_stopPropagation=ie,e.e_stop=Ee,e.addClass=C,e.contains=S,e.rmClass=p,e.keyNames=pi}Yl(Un),$l(Un);var au="iter insert remove copy getEditor constructor".split(" ");for(var no in xr.prototype)xr.prototype.hasOwnProperty(no)&&pe(au,no)<0&&(Un.prototype[no]=function(e){return function(){return e.apply(this.doc,arguments)}}(xr.prototype[no]));return be(xr),Un.inputStyles={textarea:Kn,contenteditable:On},Un.defineMode=function(e){!Un.defaults.mode&&e!="null"&&(Un.defaults.mode=e),it.apply(this,arguments)},Un.defineMIME=at,Un.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Un.defineMIME("text/plain","null"),Un.defineExtension=function(e,t){Un.prototype[e]=t},Un.defineDocExtension=function(e,t){xr.prototype[e]=t},Un.fromTextArea=ru,iu(Un),Un.version="5.58.2",Un})},W6BS:function(et,de){et.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAVs0lEQVRoQ+2aa6xlZ3nff++677Xv+9zPHM/YHo+xwQ4E14GKKESkiFsSM8bYQBIEkaBEAkqbRmo/9FulSoX2Qz9GVVQJqUJBhKKA1KRJCIlowwdDDDa+jOd65syc275f1v1d1fOufYYE2ZhJZKRWXjOjvffaa6/1/p//8/yfyzuqLMuS/48P9RrA/8fZfY3B2yXQBHQpf185tBUK+SvH8uV2H/eK1/+jGfwRIBC5ks/Vq/yplq2Wqz+B/ONg5LNlrlz+Qhnot373iih+wgX/YIAivrJgjTKA9BKcYa/Uy/MnUEpD0S2AyzdKkMslZYklbwVYWZpXQSygrSVoc+4fcPzUAKtsom4xpIGiLCkMZbJGs1LkvOHPfJbrhRX5/CM/NDwJZlXiqBKlc7AEjg1aI2iVDXZpoeS9AFXlkmV1W8z+VACLE7dbMiWLE2CFADLgqig6SakCSs4jizcvAvBHMVkqxxhKkePqAs8S1mxyLUxqw6AYKLdtbMtGINpiKKUM07bc96dk9BUBykIFoNYVC/JewMkCDDh18p0so6w+GzfT+FoWC7Yl11curQpFVCoyJQsvDThP6crNdVldi0KLcwogyzJGssVrxYWXAOWzwWg84eXd92UByoK0WHEJqBCA4oC6ChstYHRJIW6lZHWQlsoYQH6rypyOLZ5Xuahx3NIi1TAvLBIcHIlUw8rfcWFLFmzhmPBUxi0NKIRdAVi5qmPAL88LrS9z/AigmHBpCcOaCIUA1BVj4ma6LCi1FkjLBZRoVRrLR9piXjhkysI2mqJxhY2lQUrDjG3iVv5k5YmgyHI1ngLPBqfUxg21nC5LbGUhHJbGUPKu8hTbUthKGcZP3Palks3fY/BECQVQLoDk0QWURYFVFuTaNudtS+Pb8mCNZcQEYmMQi8KymCSQGLJLIx7zKCFKi1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ORK5CYII="},WaYH:function(et,de,N){"use strict";var ee=N("rePB"),K=N("Ff2n"),P=N("VTBJ"),z=N("1OyB"),B=N("vuIU"),M=N("JX7q"),j=N("Ji7U"),U=N("LK+K"),_=N("q1tI"),R=N("TSYQ"),c=N.n(R),g=N("sboe"),w=N("OZM5"),y=function(O){var A=O.prefixCls,p=O.level,h=O.isStart,s=O.isEnd;if(!p)return null;for(var l="".concat(A,"-indent-unit"),D=[],T=0;T0&&t.prevInput=="\u200B"?Zn(i,ds)(i):Et++<10?r.detectingSelectAll=setTimeout(Dt,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(Dt,200)}}if(j&&U>=9&&Ye(),O){Ee(e);var ht=function(){st(window,"mouseup",ht),setTimeout(ze,20)};we(window,"mouseup",ht)}else setTimeout(ze,50)},Kn.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Kn.prototype.setUneditable=function(){},Kn.prototype.needsContentAttribute=!1;function ru(e,t){if(t=t?F(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var i=I();t.autofocus=i==e||e.getAttribute("autofocus")!=null&&i==document.body}function r(){e.value=Z.getValue()}var d;if(e.form&&(we(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var P=e.form;d=P.submit;try{var X=P.submit=function(){r(),P.submit=d,P.submit(),P.submit=X}}catch($){}}t.finishInit=function($){$.save=r,$.getTextArea=function(){return e},$.toTextArea=function(){$.toTextArea=isNaN,r(),e.parentNode.removeChild($.getWrapperElement()),e.style.display="",e.form&&(st(e.form,"submit",r),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=d))}},e.style.display="none";var Z=Un(function($){return e.parentNode.insertBefore($,e.nextSibling)},t);return Z}function iu(e){e.off=st,e.on=we,e.wheelEventPixels=cl,e.Doc=xr,e.splitLines=qe,e.countColumn=q,e.findColumn=je,e.isWordChar=Se,e.Pass=Ge,e.signal=He,e.Line=ir,e.changeEnd=ci,e.scrollbarModel=jo,e.Pos=lt,e.cmpPos=Rt,e.modes=$e,e.mimeModes=Pe,e.resolveMode=Ne,e.getMode=Ve,e.modeExtensions=tt,e.extendMode=ft,e.copyState=Ct,e.startState=qt,e.innerMode=zt,e.commands=ga,e.keyMap=ti,e.keyName=ws,e.isModifierKey=As,e.lookupKey=Fi,e.normalizeKeyMap=_l,e.StringStream=Qt,e.SharedTextMarker=fa,e.TextMarker=fi,e.LineWidget=ha,e.e_preventDefault=re,e.e_stopPropagation=ie,e.e_stop=Ee,e.addClass=C,e.contains=S,e.rmClass=p,e.keyNames=pi}Yl(Un),$l(Un);var au="iter insert remove copy getEditor constructor".split(" ");for(var no in xr.prototype)xr.prototype.hasOwnProperty(no)&&pe(au,no)<0&&(Un.prototype[no]=function(e){return function(){return e.apply(this.doc,arguments)}}(xr.prototype[no]));return be(xr),Un.inputStyles={textarea:Kn,contenteditable:On},Un.defineMode=function(e){!Un.defaults.mode&&e!="null"&&(Un.defaults.mode=e),it.apply(this,arguments)},Un.defineMIME=at,Un.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Un.defineMIME("text/plain","null"),Un.defineExtension=function(e,t){Un.prototype[e]=t},Un.defineDocExtension=function(e,t){xr.prototype[e]=t},Un.fromTextArea=ru,iu(Un),Un.version="5.58.2",Un})},W6BS:function(et,de){et.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAVs0lEQVRoQ+2aa6xlZ3nff++677Xv+9zPHM/YHo+xwQ4E14GKKESkiFsSM8bYQBIEkaBEAkqbRmo/9FulSoX2Qz9GVVQJqUJBhKKA1KRJCIlowwdDDDa+jOd65syc275f1v1d1fOufYYE2ZhJZKRWXjOjvffaa6/1/p//8/yfyzuqLMuS/48P9RrA/8fZfY3B2yXQBHQpf185tBUK+SvH8uV2H/eK1/+jG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ZxI5p3JjHk6RkbCgVfDsgN8ArP3N5juM5jdJD26xrOjq9TzCcfzkGYYcXrrbTz6xDs5OrrMeHzIjck+2eiA65OYdrjOPace5NzOw/hO10zW5ZDm27VDUxdLnMtwOctSk+NqtYDNzU3W1tfpdbvm2pc6bgE0u7IvsRUs56M4Yj6dmfJrOhwyGE8YjkaMxkNmszlpLDGbkeUx02RAlC2Y5UeUSZ+pdYyaz1k4Y9OdhE4D5dVoB6dZWbuLlneaXm2DPC1NR5BGCbF0CWVJEAQ0GnXanTb1sE69Xmdzc4uNjQ1ardZy4+dlN3fNF6+4R/9SP5eHJ0nMYhEh8TscDun3+0aoJuMJi8WCJMnRZgRZkJOR5FMKvWBz/QyN2gqqsEjTBE1q7iU5znZsfN83i2+32zSbTXq9HisrK6yurtJoNH4ympf49rYAvhzL1b5JSZqmZqGTyZT+4Jj+cd+4+mg4Yh7F5Kk0xqK4Jb7rVP87w1KGpU6nR6vVNMAEkPzrdDqGxX/McVsAb/dBsh0mKWgxnzMajxgOhhwf9+n3j5nNZ7RbbbrdrgElYE5Aua57u4962etfNYAvx7YISJIkxrXFxdvtlnFJW+Yiy+MnecrtIn/VAN7uQl6t618D+GpZ9md139cY/FlZ+tV6zmsMvlqW/Vnd9/8CAe3hZpCQX/4AAAAASUVORK5CYII="},WaYH:function(et,de,N){"use strict";var ee=N("rePB"),K=N("Ff2n"),k=N("VTBJ"),z=N("1OyB"),B=N("vuIU"),M=N("JX7q"),j=N("Ji7U"),U=N("LK+K"),_=N("q1tI"),R=N("TSYQ"),c=N.n(R),g=N("sboe"),w=N("OZM5"),y=function(O){var A=O.prefixCls,p=O.level,h=O.isStart,s=O.isEnd;if(!p)return null;for(var l="".concat(A,"-indent-unit"),D=[],T=0;T1&&arguments[1]!==void 0?arguments[1]:!1,_e=Fe.getAttribute("id")||Fe.getAttribute("data-reactid")||Fe.getAttribute("name");if(Ue&&I[_e])return I[_e];var je=window.getComputedStyle(Fe),xe=je.getPropertyValue("box-sizing")||je.getPropertyValue("-moz-box-sizing")||je.getPropertyValue("-webkit-box-sizing"),he=parseFloat(je.getPropertyValue("padding-bottom"))+parseFloat(je.getPropertyValue("padding-top")),te=parseFloat(je.getPropertyValue("border-bottom-width"))+parseFloat(je.getPropertyValue("border-top-width")),ye=S.map(function(Le){return"".concat(Le,":").concat(je.getPropertyValue(Le))}).join(";"),ue={sizingStyle:ye,paddingSize:he,borderSize:te,boxSizing:xe};return Ue&&_e&&(I[_e]=ue),ue}function Y(Fe){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,je=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;C||(C=document.createElement("textarea"),C.setAttribute("tab-index","-1"),C.setAttribute("aria-hidden","true"),document.body.appendChild(C)),Fe.getAttribute("wrap")?C.setAttribute("wrap",Fe.getAttribute("wrap")):C.removeAttribute("wrap");var xe=W(Fe,Ue),he=xe.paddingSize,te=xe.borderSize,ye=xe.boxSizing,ue=xe.sizingStyle;C.setAttribute("style","".concat(ue,";").concat(T)),C.value=Fe.value||Fe.placeholder||"";var Le=Number.MIN_SAFE_INTEGER,ae=Number.MAX_SAFE_INTEGER,oe=C.scrollHeight,Se;if(ye==="border-box"?oe+=te:ye==="content-box"&&(oe-=he),_e!==null||je!==null){C.value=" ";var Me=C.scrollHeight-he;_e!==null&&(Le=Me*_e,ye==="border-box"&&(Le=Le+he+te),oe=Math.max(Le,oe)),je!==null&&(ae=Me*je,ye==="border-box"&&(ae=ae+he+te),Se=oe>ae?"":"hidden",oe=Math.min(ae,oe))}return{height:oe,minHeight:Le,maxHeight:ae,overflowY:Se,resize:"none"}}var H=N("Gytx"),F=N.n(H),q;(function(Fe){Fe[Fe.NONE=0]="NONE",Fe[Fe.RESIZING=1]="RESIZING",Fe[Fe.RESIZED=2]="RESIZED"})(q||(q={}));var le=function(Fe){Object(z.a)(_e,Fe);var Ue=Object(B.a)(_e);function _e(je){var xe;return Object(K.a)(this,_e),xe=Ue.call(this,je),xe.nextFrameActionId=void 0,xe.resizeFrameId=void 0,xe.textArea=void 0,xe.saveTextArea=function(he){xe.textArea=he},xe.handleResize=function(he){var te=xe.state.resizeStatus,ye=xe.props,ue=ye.autoSize,Le=ye.onResize;if(te!==q.NONE)return;typeof Le=="function"&&Le(he),ue&&xe.resizeOnNextFrame()},xe.resizeOnNextFrame=function(){cancelAnimationFrame(xe.nextFrameActionId),xe.nextFrameActionId=requestAnimationFrame(xe.resizeTextarea)},xe.resizeTextarea=function(){var he=xe.props.autoSize;if(!he||!xe.textArea)return;var te=he.minRows,ye=he.maxRows,ue=Y(xe.textArea,!1,te,ye);xe.setState({textareaStyles:ue,resizeStatus:q.RESIZING},function(){cancelAnimationFrame(xe.resizeFrameId),xe.resizeFrameId=requestAnimationFrame(function(){xe.setState({resizeStatus:q.RESIZED},function(){xe.resizeFrameId=requestAnimationFrame(function(){xe.setState({resizeStatus:q.NONE}),xe.fixFirefoxAutoScroll()})})})})},xe.renderTextArea=function(){var he=xe.props,te=he.prefixCls,ye=te===void 0?"rc-textarea":te,ue=he.autoSize,Le=he.onResize,ae=he.className,oe=he.disabled,Se=xe.state,Me=Se.textareaStyles,We=Se.resizeStatus,Ke=Object(s.a)(xe.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Qe=D()(ye,ae,Object(U.a)({},"".concat(ye,"-disabled"),oe));"value"in Ke&&(Ke.value=Ke.value||"");var Ze=Object(j.a)(Object(j.a)(Object(j.a)({},xe.props.style),Me),We===q.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return M.createElement(h,{onResize:xe.handleResize,disabled:!(ue||Le)},M.createElement("textarea",Object(ee.a)({},Ke,{className:Qe,style:Ze,ref:xe.saveTextArea})))},xe.state={textareaStyles:{},resizeStatus:q.NONE},xe}return Object(P.a)(_e,[{key:"componentDidUpdate",value:function(xe){(xe.value!==this.props.value||!F()(xe.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var xe=this.textArea.selectionStart,he=this.textArea.selectionEnd;this.textArea.setSelectionRange(xe,he)}}catch(te){}}},{key:"render",value:function(){return this.renderTextArea()}}]),_e}(M.Component),pe=le,Ae=function(Fe){Object(z.a)(_e,Fe);var Ue=Object(B.a)(_e);function _e(je){var xe;Object(K.a)(this,_e),xe=Ue.call(this,je),xe.resizableTextArea=void 0,xe.focus=function(){xe.resizableTextArea.textArea.focus()},xe.saveTextArea=function(te){xe.resizableTextArea=te},xe.handleChange=function(te){var ye=xe.props.onChange;xe.setValue(te.target.value,function(){xe.resizableTextArea.resizeTextarea()}),ye&&ye(te)},xe.handleKeyDown=function(te){var ye=xe.props,ue=ye.onPressEnter,Le=ye.onKeyDown;te.keyCode===13&&ue&&ue(te),Le&&Le(te)};var he=typeof je.value=="undefined"||je.value===null?je.defaultValue:je.value;return xe.state={value:he},xe}return Object(P.a)(_e,[{key:"setValue",value:function(xe,he){"value"in this.props||this.setState({value:xe},he)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return M.createElement(pe,Object(ee.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(xe){return"value"in xe?{value:xe.value}:null}}]),_e}(M.Component),Ge=de.default=Ae},ZW9T:function(et,de,N){"use strict";N.d(de,"a",function(){return h});var ee=N("k1fw"),K=N("oBTY"),P=N("9og8"),z=N("miYZ"),B=N("tsqr"),M=N("rAM+"),j=N("tJVT"),U=N("PpiC"),_=N("WmNS"),R=N.n(_),c=N("q1tI"),g=N.n(c),w=N("bdgK");function y(s,l,D,T,S){var I=l.getWordUntilPosition(D),C={startLineNumber:D.lineNumber,endLineNumber:D.lineNumber,startColumn:I.startColumn,endColumn:I.endColumn},W=T.map(function(Y){return{label:Y,kind:s.languages.CompletionItemKind.Keyword,insertText:Y,insertTextRules:s.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:C}});return S.map(function(Y){W.push(Object(ee.a)(Object(ee.a)({},Y),{},{range:C}))}),W}var f=function(s){var l={label:"ifelse",kind:s.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {"," $0","} else {"," ","}"].join(` +`,S=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],I={},C;function W(Fe){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_e=Fe.getAttribute("id")||Fe.getAttribute("data-reactid")||Fe.getAttribute("name");if(Ue&&I[_e])return I[_e];var je=window.getComputedStyle(Fe),xe=je.getPropertyValue("box-sizing")||je.getPropertyValue("-moz-box-sizing")||je.getPropertyValue("-webkit-box-sizing"),he=parseFloat(je.getPropertyValue("padding-bottom"))+parseFloat(je.getPropertyValue("padding-top")),te=parseFloat(je.getPropertyValue("border-bottom-width"))+parseFloat(je.getPropertyValue("border-top-width")),ye=S.map(function(Le){return"".concat(Le,":").concat(je.getPropertyValue(Le))}).join(";"),ue={sizingStyle:ye,paddingSize:he,borderSize:te,boxSizing:xe};return Ue&&_e&&(I[_e]=ue),ue}function Y(Fe){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,je=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;C||(C=document.createElement("textarea"),C.setAttribute("tab-index","-1"),C.setAttribute("aria-hidden","true"),document.body.appendChild(C)),Fe.getAttribute("wrap")?C.setAttribute("wrap",Fe.getAttribute("wrap")):C.removeAttribute("wrap");var xe=W(Fe,Ue),he=xe.paddingSize,te=xe.borderSize,ye=xe.boxSizing,ue=xe.sizingStyle;C.setAttribute("style","".concat(ue,";").concat(T)),C.value=Fe.value||Fe.placeholder||"";var Le=Number.MIN_SAFE_INTEGER,ae=Number.MAX_SAFE_INTEGER,oe=C.scrollHeight,Se;if(ye==="border-box"?oe+=te:ye==="content-box"&&(oe-=he),_e!==null||je!==null){C.value=" ";var Me=C.scrollHeight-he;_e!==null&&(Le=Me*_e,ye==="border-box"&&(Le=Le+he+te),oe=Math.max(Le,oe)),je!==null&&(ae=Me*je,ye==="border-box"&&(ae=ae+he+te),Se=oe>ae?"":"hidden",oe=Math.min(ae,oe))}return{height:oe,minHeight:Le,maxHeight:ae,overflowY:Se,resize:"none"}}var H=N("Gytx"),F=N.n(H),q;(function(Fe){Fe[Fe.NONE=0]="NONE",Fe[Fe.RESIZING=1]="RESIZING",Fe[Fe.RESIZED=2]="RESIZED"})(q||(q={}));var le=function(Fe){Object(z.a)(_e,Fe);var Ue=Object(B.a)(_e);function _e(je){var xe;return Object(K.a)(this,_e),xe=Ue.call(this,je),xe.nextFrameActionId=void 0,xe.resizeFrameId=void 0,xe.textArea=void 0,xe.saveTextArea=function(he){xe.textArea=he},xe.handleResize=function(he){var te=xe.state.resizeStatus,ye=xe.props,ue=ye.autoSize,Le=ye.onResize;if(te!==q.NONE)return;typeof Le=="function"&&Le(he),ue&&xe.resizeOnNextFrame()},xe.resizeOnNextFrame=function(){cancelAnimationFrame(xe.nextFrameActionId),xe.nextFrameActionId=requestAnimationFrame(xe.resizeTextarea)},xe.resizeTextarea=function(){var he=xe.props.autoSize;if(!he||!xe.textArea)return;var te=he.minRows,ye=he.maxRows,ue=Y(xe.textArea,!1,te,ye);xe.setState({textareaStyles:ue,resizeStatus:q.RESIZING},function(){cancelAnimationFrame(xe.resizeFrameId),xe.resizeFrameId=requestAnimationFrame(function(){xe.setState({resizeStatus:q.RESIZED},function(){xe.resizeFrameId=requestAnimationFrame(function(){xe.setState({resizeStatus:q.NONE}),xe.fixFirefoxAutoScroll()})})})})},xe.renderTextArea=function(){var he=xe.props,te=he.prefixCls,ye=te===void 0?"rc-textarea":te,ue=he.autoSize,Le=he.onResize,ae=he.className,oe=he.disabled,Se=xe.state,Me=Se.textareaStyles,We=Se.resizeStatus,Ke=Object(s.a)(xe.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Qe=D()(ye,ae,Object(U.a)({},"".concat(ye,"-disabled"),oe));"value"in Ke&&(Ke.value=Ke.value||"");var Ze=Object(j.a)(Object(j.a)(Object(j.a)({},xe.props.style),Me),We===q.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return M.createElement(h,{onResize:xe.handleResize,disabled:!(ue||Le)},M.createElement("textarea",Object(ee.a)({},Ke,{className:Qe,style:Ze,ref:xe.saveTextArea})))},xe.state={textareaStyles:{},resizeStatus:q.NONE},xe}return Object(k.a)(_e,[{key:"componentDidUpdate",value:function(xe){(xe.value!==this.props.value||!F()(xe.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var xe=this.textArea.selectionStart,he=this.textArea.selectionEnd;this.textArea.setSelectionRange(xe,he)}}catch(te){}}},{key:"render",value:function(){return this.renderTextArea()}}]),_e}(M.Component),pe=le,Ae=function(Fe){Object(z.a)(_e,Fe);var Ue=Object(B.a)(_e);function _e(je){var xe;Object(K.a)(this,_e),xe=Ue.call(this,je),xe.resizableTextArea=void 0,xe.focus=function(){xe.resizableTextArea.textArea.focus()},xe.saveTextArea=function(te){xe.resizableTextArea=te},xe.handleChange=function(te){var ye=xe.props.onChange;xe.setValue(te.target.value,function(){xe.resizableTextArea.resizeTextarea()}),ye&&ye(te)},xe.handleKeyDown=function(te){var ye=xe.props,ue=ye.onPressEnter,Le=ye.onKeyDown;te.keyCode===13&&ue&&ue(te),Le&&Le(te)};var he=typeof je.value=="undefined"||je.value===null?je.defaultValue:je.value;return xe.state={value:he},xe}return Object(k.a)(_e,[{key:"setValue",value:function(xe,he){"value"in this.props||this.setState({value:xe},he)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return M.createElement(pe,Object(ee.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(xe){return"value"in xe?{value:xe.value}:null}}]),_e}(M.Component),Ge=de.default=Ae},ZW9T:function(et,de,N){"use strict";N.d(de,"a",function(){return h});var ee=N("k1fw"),K=N("oBTY"),k=N("9og8"),z=N("miYZ"),B=N("tsqr"),M=N("rAM+"),j=N("tJVT"),U=N("PpiC"),_=N("WmNS"),R=N.n(_),c=N("q1tI"),g=N.n(c),w=N("bdgK");function y(s,l,D,T,S){var I=l.getWordUntilPosition(D),C={startLineNumber:D.lineNumber,endLineNumber:D.lineNumber,startColumn:I.startColumn,endColumn:I.endColumn},W=T.map(function(Y){return{label:Y,kind:s.languages.CompletionItemKind.Keyword,insertText:Y,insertTextRules:s.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:C}});return S.map(function(Y){W.push(Object(ee.a)(Object(ee.a)({},Y),{},{range:C}))}),W}var f=function(s){var l={label:"ifelse",kind:s.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {"," $0","} else {"," ","}"].join(` `),insertTextRules:s.languages.CompletionItemInsertTextRule.InsertAsSnippet},D=["auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while","inline","restrict","_Bool","_Complex","_Imaginary","_Alignas","_Alignof","_Atomic","_Static_assert","_Noreturn","_Thread_local","_Generic"];s.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(C,W){var Y=y(s,C,W,D,[l]);return{suggestions:Y}}});var T=["False","None","True","and","as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal","not","or","pass","raise","return","try","while","with","yield"];s.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(C,W){var Y=[{label:"print",kind:s.languages.CompletionItemKind.Snippet,insertText:["print($0)"].join(` `),insertTextRules:s.languages.CompletionItemInsertTextRule.InsertAsSnippet}],H=y(s,C,W,T,Y);return{suggestions:H}}});var S=["abstract","assert","boolean","break","byte","case","catch","char","class","const","continue","default","do","double","else","enum","extends","final","finally","float","for","goto","if","implements","import","instance of","int","interface","long","native","new","package","private","protected","public","return","strictfp","short","static","super","switch","synchronized","this","throw","throws","transient","try","void","volatile","while"];s.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(C,W){var Y=[l,{label:"main",kind:s.languages.CompletionItemKind.Snippet,insertText:["public static void main(String[] args) {"," $0","}"].join(` `),insertTextRules:s.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"System.out.print",kind:s.languages.CompletionItemKind.Snippet,insertText:["System.out.print($0)"].join(` -`),insertTextRules:s.languages.CompletionItemInsertTextRule.InsertAsSnippet}],H=y(s,C,W,S,Y);return{suggestions:H}}})},m="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",a=N("fjLI"),n=N("LvDl"),o=N("+ua5");function u(s){return/^\d+$/.test(s)?"".concat(s,"px"):s}function x(){}var E=!1,v={"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",Scala:"scale"};function O(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=s;if(Array.isArray(s)){for(var D=0;D0||zt.target.offsetWidth>0)&&Je.current.instance.layout()}}catch(qt){ft.e(qt)}finally{ft.f()}}),Ve.observe(we.current)),Ve}function Be(){B.b.warn({content:decodeURIComponent(m),key:"monaco-editor-tip"})}var Ie=function(){var tt=Je.current.instance;if(I!=null&&tt&&ie){var ft=tt.getModel();ft&&I!==ft.getValue()&&(E=!0,ft.setValue(I),tt.layout(),E=!1)}};Object(c.useEffect)(function(){try{var Ve,tt=Je.current.instance;He.current&&clearTimeout(He.current),He.current=setTimeout(function(){Ie()},500),tt==null||((Ve=tt.updateOptions)===null||Ve===void 0)||Ve.call(tt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(I.split(/\r\n|\r|\n/g).length))+3,5)})}catch(ft){debugger}},[I,ie,Je.current]),Object(c.useEffect)(function(){try{if(yt&&Je.current&&Je.current.instance){var Ve=Je.current.instance;Ve.changeViewZones(function(ft){var Ct=document.createElement("div");Ct.style.padding="10px 20px",Ct.style.width="calc(100% - 20px)",Ct.className="my-error-line-wrp",Ct.innerHTML=dt,ft.addZone({afterLineNumber:yt||11,heightInLines:3,domNode:Ct})});var tt={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}};Ve.addOverlayWidget(tt),Ve.revealPositionInCenter({lineNumber:20,column:1})}}catch(ft){debugger}},[yt,Je.current,ie]),Object(c.useEffect)(function(){var Ve;if((Ve=Je.current)!==null&&Ve!==void 0&&Ve.instance&&ie&&wt){var tt=Je.current.instance,ft=tt.getModel();if(!ft)return;var Ct=function(){var Rt=[],Jt=[],nn=ft.getAllDecorations(),un=Object(M.a)(nn),cn;try{for(un.s();!(cn=un.n()).done;){var G=cn.value;if(G.options.className==="highlighted-line"){var b;Rt.push(G==null||((b=G.range)===null||b===void 0)?void 0:b.startLineNumber),Jt.push(G==null?void 0:G.id)}}}catch(V){un.e(V)}finally{un.f()}ft.deltaDecorations(Jt,[]);var L=ft.getLineCount();!!pt&&pt<=L&&(tt.deltaDecorations([],[{range:new A.Range(pt,1,pt,ft.getLineMaxColumn(pt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),tt.revealLineInCenter(pt))};Ct();var zt=function(){var Rt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Jt=[],nn=[],un=ft.getAllDecorations(),cn=Object(M.a)(un),G;try{for(cn.s();!(G=cn.n()).done;){var b=G.value;if(b.options.linesDecorationsClassName==="breakpoints"){var L;Jt.push(b==null||((L=b.range)===null||L===void 0)?void 0:L.startLineNumber),nn.push(b==null?void 0:b.id)}}}catch(V){cn.e(V)}finally{cn.f()}if(Rt)return{lines:Jt,ids:nn};Me(Jt)},qt=function(){var lt=Object(P.a)(R.a.mark(function Rt(Jt){var nn;return R.a.wrap(function(cn){for(;;)switch(cn.prev=cn.next){case 0:return nn={range:new A.Range(Jt,1,Jt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}},cn.next=3,ft.deltaDecorations([],[nn]);case 3:zt();case 4:case"end":return cn.stop()}},Rt)}));return function(Jt){return lt.apply(this,arguments)}}(),Qt=function(){var lt=Object(P.a)(R.a.mark(function Rt(Jt){var nn,un,cn,G,b;return R.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:nn=[],un=tt.getLineDecorations(Jt),cn=Object(M.a)(un);try{for(cn.s();!(G=cn.n()).done;)b=G.value,b.options.linesDecorationsClassName==="breakpoints"&&nn.push(b.id)}catch(J){cn.e(J)}finally{cn.f()}return V.next=6,ft.deltaDecorations(nn,[]);case 6:zt();case 7:case"end":return V.stop()}},Rt)}));return function(Jt){return lt.apply(this,arguments)}}(),St=function(Rt){var Jt=tt.getLineDecorations(Rt),nn=Object(M.a)(Jt),un;try{for(nn.s();!(un=nn.n()).done;){var cn=un.value;if(cn.options.linesDecorationsClassName==="breakpoints")return!0}}catch(G){nn.e(G)}finally{nn.f()}return!1};if(!Object(n.isEqual)(Ke,zt(!0).lines)){ft.deltaDecorations(zt(!0).ids,[]);var ln=Ke.map(function(lt){return{range:new A.Range(lt,1,lt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}}});ft.deltaDecorations([],ln)}var Bt=tt.onDidChangeModelContent(function(lt){var Rt=tt.getPosition();if(Rt){var Jt=Rt.lineNumber;ft.getLineContent(Jt).trim()===""?Qt(Jt):St(Jt)&&(Qt(Jt),qt(Jt))}}),Yt=tt.onMouseDown(function(lt){var Rt,Jt,nn;if(lt.target.detail&&(Rt=lt.target)!==null&&Rt!==void 0&&(Jt=Rt.element)!==null&&Jt!==void 0&&(nn=Jt.className)!==null&&nn!==void 0&&nn.includes("line-numbers")){var un=lt.target.position.lineNumber;if(ft.getLineContent(un).trim()==="")return;St(un)?Qt(un):qt(un)}}),Mt=function(Rt){var Jt={range:new A.Range(Rt,1,Rt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};nt.current=tt.deltaDecorations(nt.current,[Jt])},tn=function(){nt.current=tt.deltaDecorations(nt.current,[])},mn=tt.onMouseMove(function(lt){var Rt,Jt,nn;if(tn(),lt.target.detail&&(Rt=lt.target)!==null&&Rt!==void 0&&(Jt=Rt.element)!==null&&Jt!==void 0&&(nn=Jt.className)!==null&&nn!==void 0&&nn.includes("line-numbers")){var un=lt.target.position.lineNumber;if(ft.getLineContent(un).trim()==="")return;Mt(un)}}),An=tt.onMouseLeave(function(){tn()});return function(){Bt.dispose(),Yt.dispose(),mn.dispose(),An.dispose()}}},[Je.current,ie,Ke,pt,wt]);function ut(){var Ve=Je.current.instance;if(Ve){var tt=Ve.getSelection(),ft=Je.current.pastePos||{},Ct=new A.Range(ft.startLineNumber||tt.endLineNumber,ft.startColumn||tt.endColumn,ft.endLineNumber||tt.endLineNumber,ft.endColumn||tt.endColumn);setTimeout(function(){Ve.executeEdits("",[{range:Ct,text:""}])},300)}}function bt(Ve){(window.navigator.platform.match("Mac")?Ve.metaKey:Ve.ctrlKey)&&Ve.keyCode==83&&(Ve.preventDefault(),Ue())}var Tt=function(){if(je&&Je.current.instance){var tt=Je.current.instance.getContentHeight();at(tt0||ue.target.offsetWidth>0)&&je.layout()}}catch(Le){te.e(Le)}finally{te.f()}}),xe.observe(F.current)),xe}Object(c.useEffect)(function(){return F.current&&N.e(27).then(N.t.bind(null,"M/lh",7)).then(function(je){A=je;var xe=A.editor.createDiffEditor(F.current,Object(ee.a)(Object(ee.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},H),{},{wordWrap:!0}));Ae(xe);var he=Ge(xe);return function(){xe.dispose();var te=xe.getModel();te&&te.dispose(),he.unobserve(F.current)}}),function(){window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}},[]),Object(c.useEffect)(function(){pe&&pe.setModel({original:A.editor.createModel(I,W),modified:A.editor.createModel(C,W)})},[I,C,W,pe]);var Fe=u(D),Ue=u(S),_e={width:Fe,height:Ue};return g.a.createElement("div",{className:"my-diff-editor",ref:F,style:_e})}},ZpRC:function(et,de,N){"use strict";function ee(c){return typeof c=="object"&&c!=null&&c.nodeType===1}function K(c,g){return(!g||c!=="hidden")&&c!=="visible"&&c!=="clip"}function P(c,g){if(c.clientHeightg||m>c&&a=g&&n>=w?m-c-y:a>g&&nw?a-g+f:0}var B=function(c,g){var w=window,y=g.scrollMode,f=g.block,m=g.inline,a=g.boundary,n=g.skipOverflowHiddenElements,o=typeof a=="function"?a:function(Me){return Me!==a};if(!ee(c))throw new TypeError("Invalid target");for(var u=document.scrollingElement||document.documentElement,x=[],E=c;ee(E)&&o(E);){if((E=E.parentElement)===u){x.push(E);break}E!=null&&E===document.body&&P(E)&&!P(document.documentElement)||E!=null&&P(E,n)&&x.push(E)}for(var v=w.visualViewport?w.visualViewport.width:innerWidth,O=w.visualViewport?w.visualViewport.height:innerHeight,A=window.scrollX||pageXOffset,p=window.scrollY||pageYOffset,h=c.getBoundingClientRect(),s=h.height,l=h.width,D=h.top,T=h.right,S=h.bottom,I=h.left,C=f==="start"||f==="nearest"?D:f==="end"?S:D+s/2,W=m==="center"?I+l/2:m==="end"?T:I,Y=[],H=0;H=0&&I>=0&&S<=O&&T<=v&&D>=Ae&&S<=Fe&&I>=Ue&&T<=Ge)return Y;var _e=getComputedStyle(F),je=parseInt(_e.borderLeftWidth,10),xe=parseInt(_e.borderTopWidth,10),he=parseInt(_e.borderRightWidth,10),te=parseInt(_e.borderBottomWidth,10),ye=0,ue=0,Le="offsetWidth"in F?F.offsetWidth-F.clientWidth-je-he:0,ae="offsetHeight"in F?F.offsetHeight-F.clientHeight-xe-te:0;if(u===F)ye=f==="start"?C:f==="end"?C-O:f==="nearest"?z(p,p+O,O,xe,te,p+C,p+C+s,s):C-O/2,ue=m==="start"?W:m==="center"?W-v/2:m==="end"?W-v:z(A,A+v,v,je,he,A+W,A+W+l,l),ye=Math.max(0,ye+p),ue=Math.max(0,ue+A);else{ye=f==="start"?C-Ae-xe:f==="end"?C-Fe+te+ae:f==="nearest"?z(Ae,Fe,le,xe,te+ae,C,C+s,s):C-(Ae+le/2)+ae/2,ue=m==="start"?W-Ue-je:m==="center"?W-(Ue+pe/2)+Le/2:m==="end"?W-Ge+he+Le:z(Ue,Ge,pe,je,he+Le,W,W+l,l);var oe=F.scrollLeft,Se=F.scrollTop;C+=Se-(ye=Math.max(0,Math.min(Se+ye,F.scrollHeight-le+ae))),W+=oe-(ue=Math.max(0,Math.min(oe+ue,F.scrollWidth-pe+Le)))}Y.push({el:F,top:ye,left:ue})}return Y};function M(c){return c===Object(c)&&Object.keys(c).length!==0}function j(c,g){g===void 0&&(g="auto");var w="scrollBehavior"in document.body.style;c.forEach(function(y){var f=y.el,m=y.top,a=y.left;f.scroll&&w?f.scroll({top:m,left:a,behavior:g}):(f.scrollTop=m,f.scrollLeft=a)})}function U(c){return c===!1?{block:"end",inline:"nearest"}:M(c)?c:{block:"start",inline:"nearest"}}function _(c,g){var w=!c.ownerDocument.documentElement.contains(c);if(M(g)&&typeof g.behavior=="function")return g.behavior(w?[]:B(c,g));if(w)return;var y=U(g);return j(B(c,y),y.behavior)}var R=de.a=_},Zss7:function(et,de,N){var ee;(function(K){var P=/^\s+/,z=/\s+$/,B=0,M=K.round,j=K.min,U=K.max,_=K.random;function R(te,ye){if(te=te||"",ye=ye||{},te instanceof R)return te;if(!(this instanceof R))return new R(te,ye);var ue=c(te);this._originalInput=te,this._r=ue.r,this._g=ue.g,this._b=ue.b,this._a=ue.a,this._roundA=M(100*this._a)/100,this._format=ye.format||ue.format,this._gradientType=ye.gradientType,this._r<1&&(this._r=M(this._r)),this._g<1&&(this._g=M(this._g)),this._b<1&&(this._b=M(this._b)),this._ok=ue.ok,this._tc_id=B++}R.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var te=this.toRgb();return(te.r*299+te.g*587+te.b*114)/1e3},getLuminance:function(){var te=this.toRgb(),ye,ue,Le,ae,oe,Se;return ye=te.r/255,ue=te.g/255,Le=te.b/255,ye<=.03928?ae=ye/12.92:ae=K.pow((ye+.055)/1.055,2.4),ue<=.03928?oe=ue/12.92:oe=K.pow((ue+.055)/1.055,2.4),Le<=.03928?Se=Le/12.92:Se=K.pow((Le+.055)/1.055,2.4),.2126*ae+.7152*oe+.0722*Se},setAlpha:function(te){return this._a=Y(te),this._roundA=M(100*this._a)/100,this},toHsv:function(){var te=f(this._r,this._g,this._b);return{h:te.h*360,s:te.s,v:te.v,a:this._a}},toHsvString:function(){var te=f(this._r,this._g,this._b),ye=M(te.h*360),ue=M(te.s*100),Le=M(te.v*100);return this._a==1?"hsv("+ye+", "+ue+"%, "+Le+"%)":"hsva("+ye+", "+ue+"%, "+Le+"%, "+this._roundA+")"},toHsl:function(){var te=w(this._r,this._g,this._b);return{h:te.h*360,s:te.s,l:te.l,a:this._a}},toHslString:function(){var te=w(this._r,this._g,this._b),ye=M(te.h*360),ue=M(te.s*100),Le=M(te.l*100);return this._a==1?"hsl("+ye+", "+ue+"%, "+Le+"%)":"hsla("+ye+", "+ue+"%, "+Le+"%, "+this._roundA+")"},toHex:function(te){return a(this._r,this._g,this._b,te)},toHexString:function(te){return"#"+this.toHex(te)},toHex8:function(te){return n(this._r,this._g,this._b,this._a,te)},toHex8String:function(te){return"#"+this.toHex8(te)},toRgb:function(){return{r:M(this._r),g:M(this._g),b:M(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+M(this._r)+", "+M(this._g)+", "+M(this._b)+")":"rgba("+M(this._r)+", "+M(this._g)+", "+M(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:M(H(this._r,255)*100)+"%",g:M(H(this._g,255)*100)+"%",b:M(H(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+M(H(this._r,255)*100)+"%, "+M(H(this._g,255)*100)+"%, "+M(H(this._b,255)*100)+"%)":"rgba("+M(H(this._r,255)*100)+"%, "+M(H(this._g,255)*100)+"%, "+M(H(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:C[a(this._r,this._g,this._b,!0)]||!1},toFilter:function(te){var ye="#"+o(this._r,this._g,this._b,this._a),ue=ye,Le=this._gradientType?"GradientType = 1, ":"";if(te){var ae=R(te);ue="#"+o(ae._r,ae._g,ae._b,ae._a)}return"progid:DXImageTransform.Microsoft.gradient("+Le+"startColorstr="+ye+",endColorstr="+ue+")"},toString:function(te){var ye=!!te;te=te||this._format;var ue=!1,Le=this._a<1&&this._a>=0,ae=!ye&&Le&&(te==="hex"||te==="hex6"||te==="hex3"||te==="hex4"||te==="hex8"||te==="name");return ae?te==="name"&&this._a===0?this.toName():this.toRgbString():(te==="rgb"&&(ue=this.toRgbString()),te==="prgb"&&(ue=this.toPercentageRgbString()),(te==="hex"||te==="hex6")&&(ue=this.toHexString()),te==="hex3"&&(ue=this.toHexString(!0)),te==="hex4"&&(ue=this.toHex8String(!0)),te==="hex8"&&(ue=this.toHex8String()),te==="name"&&(ue=this.toName()),te==="hsl"&&(ue=this.toHslString()),te==="hsv"&&(ue=this.toHsvString()),ue||this.toHexString())},clone:function(){return R(this.toString())},_applyModification:function(te,ye){var ue=te.apply(null,[this].concat([].slice.call(ye)));return this._r=ue._r,this._g=ue._g,this._b=ue._b,this.setAlpha(ue._a),this},lighten:function(){return this._applyModification(v,arguments)},brighten:function(){return this._applyModification(O,arguments)},darken:function(){return this._applyModification(A,arguments)},desaturate:function(){return this._applyModification(u,arguments)},saturate:function(){return this._applyModification(x,arguments)},greyscale:function(){return this._applyModification(E,arguments)},spin:function(){return this._applyModification(p,arguments)},_applyCombination:function(te,ye){return te.apply(null,[this].concat([].slice.call(ye)))},analogous:function(){return this._applyCombination(T,arguments)},complement:function(){return this._applyCombination(h,arguments)},monochromatic:function(){return this._applyCombination(S,arguments)},splitcomplement:function(){return this._applyCombination(D,arguments)},triad:function(){return this._applyCombination(s,arguments)},tetrad:function(){return this._applyCombination(l,arguments)}},R.fromRatio=function(te,ye){if(typeof te=="object"){var ue={};for(var Le in te)te.hasOwnProperty(Le)&&(Le==="a"?ue[Le]=te[Le]:ue[Le]=Ge(te[Le]));te=ue}return R(te,ye)};function c(te){var ye={r:0,g:0,b:0},ue=1,Le=null,ae=null,oe=null,Se=!1,Me=!1;return typeof te=="string"&&(te=xe(te)),typeof te=="object"&&(je(te.r)&&je(te.g)&&je(te.b)?(ye=g(te.r,te.g,te.b),Se=!0,Me=String(te.r).substr(-1)==="%"?"prgb":"rgb"):je(te.h)&&je(te.s)&&je(te.v)?(Le=Ge(te.s),ae=Ge(te.v),ye=m(te.h,Le,ae),Se=!0,Me="hsv"):je(te.h)&&je(te.s)&&je(te.l)&&(Le=Ge(te.s),oe=Ge(te.l),ye=y(te.h,Le,oe),Se=!0,Me="hsl"),te.hasOwnProperty("a")&&(ue=te.a)),ue=Y(ue),{ok:Se,format:te.format||Me,r:j(255,U(ye.r,0)),g:j(255,U(ye.g,0)),b:j(255,U(ye.b,0)),a:ue}}function g(te,ye,ue){return{r:H(te,255)*255,g:H(ye,255)*255,b:H(ue,255)*255}}function w(te,ye,ue){te=H(te,255),ye=H(ye,255),ue=H(ue,255);var Le=U(te,ye,ue),ae=j(te,ye,ue),oe,Se,Me=(Le+ae)/2;if(Le==ae)oe=Se=0;else{var We=Le-ae;Se=Me>.5?We/(2-Le-ae):We/(Le+ae);switch(Le){case te:oe=(ye-ue)/We+(ye1&&(Ze-=1),Ze<1/6?Ke+(Qe-Ke)*6*Ze:Ze<1/2?Qe:Ze<2/3?Ke+(Qe-Ke)*(2/3-Ze)*6:Ke}if(ye===0)Le=ae=oe=ue;else{var Me=ue<.5?ue*(1+ye):ue+ye-ue*ye,We=2*ue-Me;Le=Se(We,Me,te+1/3),ae=Se(We,Me,te),oe=Se(We,Me,te-1/3)}return{r:Le*255,g:ae*255,b:oe*255}}function f(te,ye,ue){te=H(te,255),ye=H(ye,255),ue=H(ue,255);var Le=U(te,ye,ue),ae=j(te,ye,ue),oe,Se,Me=Le,We=Le-ae;if(Se=Le===0?0:We/Le,Le==ae)oe=0;else{switch(Le){case te:oe=(ye-ue)/We+(ye>1)+720)%360;--ye;)Le.h=(Le.h+ae)%360,oe.push(R(Le));return oe}function S(te,ye){ye=ye||6;for(var ue=R(te).toHsv(),Le=ue.h,ae=ue.s,oe=ue.v,Se=[],Me=1/ye;ye--;)Se.push(R({h:Le,s:ae,v:oe})),oe=(oe+Me)%1;return Se}R.mix=function(te,ye,ue){ue=ue===0?0:ue||50;var Le=R(te).toRgb(),ae=R(ye).toRgb(),oe=ue/100,Se={r:(ae.r-Le.r)*oe+Le.r,g:(ae.g-Le.g)*oe+Le.g,b:(ae.b-Le.b)*oe+Le.b,a:(ae.a-Le.a)*oe+Le.a};return R(Se)},R.readability=function(te,ye){var ue=R(te),Le=R(ye);return(K.max(ue.getLuminance(),Le.getLuminance())+.05)/(K.min(ue.getLuminance(),Le.getLuminance())+.05)},R.isReadable=function(te,ye,ue){var Le=R.readability(te,ye),ae,oe;oe=!1,ae=he(ue);switch(ae.level+ae.size){case"AAsmall":case"AAAlarge":oe=Le>=4.5;break;case"AAlarge":oe=Le>=3;break;case"AAAsmall":oe=Le>=7;break}return oe},R.mostReadable=function(te,ye,ue){var Le=null,ae=0,oe,Se,Me,We;ue=ue||{},Se=ue.includeFallbackColors,Me=ue.level,We=ue.size;for(var Ke=0;Keae&&(ae=oe,Le=R(ye[Ke]));return R.isReadable(te,Le,{level:Me,size:We})||!Se?Le:(ue.includeFallbackColors=!1,R.mostReadable(te,["#fff","#000"],ue))};var I=R.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},C=R.hexNames=W(I);function W(te){var ye={};for(var ue in te)te.hasOwnProperty(ue)&&(ye[te[ue]]=ue);return ye}function Y(te){return te=parseFloat(te),(isNaN(te)||te<0||te>1)&&(te=1),te}function H(te,ye){le(te)&&(te="100%");var ue=pe(te);return te=j(ye,U(0,parseFloat(te))),ue&&(te=parseInt(te*ye,10)/100),K.abs(te-ye)<1e-6?1:te%ye/parseFloat(ye)}function F(te){return j(1,U(0,te))}function q(te){return parseInt(te,16)}function le(te){return typeof te=="string"&&te.indexOf(".")!=-1&&parseFloat(te)===1}function pe(te){return typeof te=="string"&&te.indexOf("%")!=-1}function Ae(te){return te.length==1?"0"+te:""+te}function Ge(te){return te<=1&&(te=te*100+"%"),te}function Fe(te){return K.round(parseFloat(te)*255).toString(16)}function Ue(te){return q(te)/255}var _e=function(){var te="[-\\+]?\\d+%?",ye="[-\\+]?\\d*\\.\\d+%?",ue="(?:"+ye+")|(?:"+te+")",Le="[\\s|\\(]+("+ue+")[,|\\s]+("+ue+")[,|\\s]+("+ue+")\\s*\\)?",ae="[\\s|\\(]+("+ue+")[,|\\s]+("+ue+")[,|\\s]+("+ue+")[,|\\s]+("+ue+")\\s*\\)?";return{CSS_UNIT:new RegExp(ue),rgb:new RegExp("rgb"+Le),rgba:new RegExp("rgba"+ae),hsl:new RegExp("hsl"+Le),hsla:new RegExp("hsla"+ae),hsv:new RegExp("hsv"+Le),hsva:new RegExp("hsva"+ae),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function je(te){return!!_e.CSS_UNIT.exec(te)}function xe(te){te=te.replace(P,"").replace(z,"").toLowerCase();var ye=!1;if(I[te])te=I[te],ye=!0;else if(te=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ue;return(ue=_e.rgb.exec(te))?{r:ue[1],g:ue[2],b:ue[3]}:(ue=_e.rgba.exec(te))?{r:ue[1],g:ue[2],b:ue[3],a:ue[4]}:(ue=_e.hsl.exec(te))?{h:ue[1],s:ue[2],l:ue[3]}:(ue=_e.hsla.exec(te))?{h:ue[1],s:ue[2],l:ue[3],a:ue[4]}:(ue=_e.hsv.exec(te))?{h:ue[1],s:ue[2],v:ue[3]}:(ue=_e.hsva.exec(te))?{h:ue[1],s:ue[2],v:ue[3],a:ue[4]}:(ue=_e.hex8.exec(te))?{r:q(ue[1]),g:q(ue[2]),b:q(ue[3]),a:Ue(ue[4]),format:ye?"name":"hex8"}:(ue=_e.hex6.exec(te))?{r:q(ue[1]),g:q(ue[2]),b:q(ue[3]),format:ye?"name":"hex"}:(ue=_e.hex4.exec(te))?{r:q(ue[1]+""+ue[1]),g:q(ue[2]+""+ue[2]),b:q(ue[3]+""+ue[3]),a:Ue(ue[4]+""+ue[4]),format:ye?"name":"hex8"}:(ue=_e.hex3.exec(te))?{r:q(ue[1]+""+ue[1]),g:q(ue[2]+""+ue[2]),b:q(ue[3]+""+ue[3]),format:ye?"name":"hex"}:!1}function he(te){var ye,ue;return te=te||{level:"AA",size:"small"},ye=(te.level||"AA").toUpperCase(),ue=(te.size||"small").toLowerCase(),ye!=="AA"&&ye!=="AAA"&&(ye="AA"),ue!=="small"&&ue!=="large"&&(ue="small"),{level:ye,size:ue}}et.exports?et.exports=R:!(ee=function(){return R}.call(de,N,de,et),ee!==void 0&&(et.exports=ee))})(Math)},bPs0:function(et,de,N){"use strict";N.d(de,"b",function(){return u});var ee=N("k1fw"),K=N("9og8"),P=N("2qtc"),z=N("kLXV"),B=N("tJVT"),M=N("PpiC"),j=N("aHsQ"),U=N("sGsY"),_=N("WmNS"),R=N.n(_),c=N("q1tI"),g=N.n(c),w=N("bntm"),y=N("V0Rq"),f=N("wd/R"),m=N.n(f),a=N("Ty5D"),n=N("9kvl"),o=U.a.Countdown,u=["fullscreenchange","msfullscreenchange","webkitfullscreenchange","mozfullscreenchange"],x=function(v){var O=v.globalSetting,A=v.loading,p=v.user,h=v.exercise,s=v.dispatch,l=Object(M.a)(v,["globalSetting","loading","user","exercise","dispatch"]),D=Object(c.useState)({}),T=Object(B.a)(D,2),S=T[0],I=T[1],C=z.a.useModal(),W=Object(B.a)(C,2),Y=W[0],H=W[1],F=Object(c.useRef)(),q=Object(c.useRef)(null),le=Object(c.useRef)(null),pe=Object(c.useState)(!0),Ae=Object(B.a)(pe,2),Ge=Ae[0],Fe=Ae[1],Ue=Object(a.h)().query,_e=Object(a.i)();Object(c.useEffect)(function(){var Me,We,Ke,Qe,Ze;if(clearTimeout(q.current),document.addEventListener(Object(w.c)(),Se,!1),window.addEventListener("blur",ae,!1),(Me=h.exerciseUserInfo)!==null&&Me!==void 0&&Me.screen_open&&Object(w.a)()&&(s({type:"globalSetting/headerFooterToggle",payload:!1}),Fe(!1)),(We=h.exerciseUserInfo)!==null&&We!==void 0&&We.screen_at&&m()().diff(m()((Ke=h.exerciseUserInfo)===null||Ke===void 0?void 0:Ke.screen_at),"seconds")>0)je();else if((Qe=h.exerciseUserInfo)!==null&&Qe!==void 0&&Qe.screen_open&&!Object(w.a)()){var yt=document.domain==="kepukehuan.educoder.net"?30:h.exerciseUserInfo.screen_sec+10+1;F.current=z.a.info({icon:null,content:g.a.createElement("div",{className:"tc font16"},"\u672C\u573A\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u5207\u5C4F\u9650\u5236\uFF0C",g.a.createElement("br",null),"\u5207\u6362\u9875\u9762 ",h.exerciseUserInfo.screen_num-h.exerciseUserInfo.used_screen_num," \u6B21\u540E\u5C06\u8FDB\u884C\u5F3A\u5236\u4EA4\u5377\uFF0C",g.a.createElement("br",null),"\u8BF7\u52FF\u5207\u5C4F\u53CA\u5237\u65B0\u9875\u9762"),okText:g.a.createElement("span",null,"\u5F00\u59CB\u8003\u8BD5\uFF08",g.a.createElement("span",{style:{display:"inline-block"}},g.a.createElement(o,{onFinish:function(){var dt;je(),(dt=F.current)===null||dt===void 0||dt.destroy()},valueStyle:{fontSize:14,lineHeight:1.4,color:"#FFF",display:"inline-block"},format:"ss",value:Date.now()+yt*1e3})),"S\uFF09"),onOk:function(){var dt;(dt=F.current)===null||dt===void 0||dt.destroy(),Fe(!1),Object(w.d)(document.body),document.getElementById("root").addEventListener("click",xe,!1)}})}return(Ze=h.exerciseUserInfo)!==null&&Ze!==void 0&&Ze.screen_open&&!Object(w.a)()||document.getElementById("root").addEventListener("click",xe,!1),function(){document.getElementById("root").removeEventListener("click",xe,!1),document.removeEventListener(Object(w.c)(),Se,!1),window.removeEventListener("blur",ae,!1),clearTimeout(q.current)}},[]),Object(c.useEffect)(function(){setTimeout(function(){h.actionTabs.removeEventListenerExitScreen&&(clearTimeout(q.current),document.getElementById("root").removeEventListener("click",xe,!1),document.removeEventListener(Object(w.c)(),Se,!1))},500),he()},[h.actionTabs]),Object(c.useEffect)(function(){setTimeout(function(){h.exerciseUserInfo.used_screen_num>h.exerciseUserInfo.screen_num?ue():!Ge},500)},[h.exerciseUserInfo]);var je=function(){var Me=Object(K.a)(R.a.mark(function We(){var Ke;return R.a.wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:return Ze.next=2,oe();case 2:Ke=Ze.sent,setTimeout(function(){var yt,vt;(yt=F.current)===null||yt===void 0||yt.destroy(),F.current=z.a.info({okText:g.a.createElement("span",null,"\u56DE\u5230\u8003\u8BD5"),content:g.a.createElement("div",null,"\u60A8\u5DF2\u5207\u5C4F",g.a.createElement("span",{className:"c-red"},Ke.used_screen_num),"\u6B21\uFF0C\u5207\u5C4F\u8D85\u8FC7",g.a.createElement("span",{className:"c-red"},(vt=h.exerciseUserInfo)===null||vt===void 0?void 0:vt.screen_num),"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377"),onOk:function(){var dt=Object(K.a)(R.a.mark(function At(){return R.a.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:Object(w.d)(document.body);case 1:case"end":return Oe.stop()}},At)}));function pt(){return dt.apply(this,arguments)}return pt}()})},1e3);case 4:case"end":return Ze.stop()}},We)}));return function(){return Me.apply(this,arguments)}}(),xe=function(We){!Object(w.a)()&&We.target.nodeName!=="A"&&We.target.nodeName!=="BUTTON"&&We.target.innerHTML!=="\u786E \u5B9A"&&(Object(w.d)(document.body),console.log("documentClick.full"))},he=function(){var Me=Object(K.a)(R.a.mark(function We(){return R.a.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:return Qe.abrupt("return",new Promise(function(){var Ze=Object(K.a)(R.a.mark(function yt(vt){var dt;return R.a.wrap(function(At){for(;;)switch(At.prev=At.next){case 0:return At.next=2,s({type:"exercise/getExerciseUserInfo",payload:Object(ee.a)({},_e)});case 2:return dt=At.sent,vt(dt==null?void 0:dt.data),At.abrupt("return",dt==null?void 0:dt.data);case 5:case"end":return At.stop()}},yt)}));return function(yt){return Ze.apply(this,arguments)}}()));case 1:case"end":return Qe.stop()}},We)}));return function(){return Me.apply(this,arguments)}}(),te=function(){var Me=Object(K.a)(R.a.mark(function We(Ke){var Qe,Ze,yt;return R.a.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:(Qe=F.current)===null||Qe===void 0||((Ze=Qe.destroyAll)===null||Ze===void 0)||Ze.call(Qe),F.current=z.a.info({maskClosable:!1,keyboard:!1,okText:g.a.createElement("span",null,"\u56DE\u5230\u8003\u8BD5\uFF08",g.a.createElement("span",{style:{display:"inline-block"}},g.a.createElement(o,{onFinish:oe,valueStyle:{fontSize:14,lineHeight:1.4,color:"#FFF",display:"inline-block"},format:"ss",value:Date.now()+(h.exerciseUserInfo.screen_sec+1)*1e3})),"S\uFF09"),content:g.a.createElement("div",null,"\u60A8\u5DF2\u5207\u5C4F",g.a.createElement("span",{className:"c-red"},Ke),"\u6B21\uFF0C\u5207\u5C4F\u8D85\u8FC7",g.a.createElement("span",{className:"c-red"},(yt=h.exerciseUserInfo)===null||yt===void 0?void 0:yt.screen_num),"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377,",g.a.createElement("span",{className:"c-red"},h.exerciseUserInfo.screen_sec),"\u79D2\u5185\u56DE\u5230",g.a.createElement("br",null),g.a.createElement("span",{style:{marginLeft:38}},"\u8003\u8BD5\u4E0D\u8BA1\u5207\u5C4F\u6B21\u6570\u3002")),onOk:function(){var pt=Object(K.a)(R.a.mark(function wt(){return R.a.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:clearTimeout(le.current),Object(w.d)(document.body),F.current.destroy();case 3:case"end":return we.stop()}},wt)}));function At(){return pt.apply(this,arguments)}return At}()}),le.current=setTimeout(function(){var pt;F.current.update({okText:g.a.createElement("span",null,"\u56DE\u5230\u8003\u8BD5"),content:g.a.createElement("div",null,"\u60A8\u5DF2\u5207\u5C4F",g.a.createElement("span",{className:"c-red"},Ke+1),"\u6B21\uFF0C\u5207\u5C4F\u8D85\u8FC7",g.a.createElement("span",{className:"c-red"},(pt=h.exerciseUserInfo)===null||pt===void 0?void 0:pt.screen_num),"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377")})},(h.exerciseUserInfo.screen_sec+1)*1e3);case 3:case"end":return dt.stop()}},We)}));return function(Ke){return Me.apply(this,arguments)}}(),ye=function(){location.href="/classrooms/".concat(_e.coursesId,"/exercise/").concat(_e.categoryId,"/detail")},ue=function(){var Me=Object(K.a)(R.a.mark(function We(){var Ke,Qe,Ze;return R.a.wrap(function(vt){for(;;)switch(vt.prev=vt.next){case 0:return(Ke=F.current)===null||Ke===void 0||((Qe=Ke.destroyAll)===null||Qe===void 0)||Qe.call(Ke),vt.next=3,Object(y.Z)({categoryId:_e.categoryId,commit_method:1});case 3:Ze=vt.sent,Ze&&Le();case 5:case"end":return vt.stop()}},We)}));return function(){return Me.apply(this,arguments)}}(),Le=function(){var We,Ke;document.removeEventListener(Object(w.c)(),Se,!1),Object(w.b)(),(We=F.current)===null||We===void 0||((Ke=We.destroyAll)===null||Ke===void 0)||Ke.call(We),Y.info({content:g.a.createElement("div",{className:"tc font16"},"\u7B54\u9898\u7ED3\u675F\u4E86\uFF0C\u7CFB\u7EDF\u5DF2\u81EA\u52A8\u63D0\u4EA4\u8BD5\u5377",g.a.createElement("br",null),"\u4E0D\u80FD\u518D\u4FEE\u6539\u7B54\u9898"),onOk:function(){ye()}})},ae=function(We){Object(w.a)()&&document.getElementById("iframeShixuns").style.display=="none"&&Object(w.b)()},oe=function(){var Me=Object(K.a)(R.a.mark(function We(){return R.a.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:return Qe.abrupt("return",new Promise(function(){var Ze=Object(K.a)(R.a.mark(function yt(vt){var dt,pt,At;return R.a.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(!((dt=h.exerciseUserInfo)!==null&&dt!==void 0&&dt.screen_at)){Oe.next=3;break}return Oe.next=3,Object(y.g)(Object(ee.a)(Object(ee.a)({},_e),{},{reset:!0}));case 3:return Oe.next=5,Object(y.Q)({id:_e.categoryId});case 5:if(pt=Oe.sent,!(pt!=null&&pt.is_commit)){Oe.next=9;break}return Le(),Oe.abrupt("return");case 9:return Oe.next=11,he();case 11:At=Oe.sent,vt(At);case 13:case"end":return Oe.stop()}},yt)}));return function(yt){return Ze.apply(this,arguments)}}()));case 1:case"end":return Qe.stop()}},We)}));return function(){return Me.apply(this,arguments)}}(),Se=function(){var Me=Object(K.a)(R.a.mark(function We(){var Ke,Qe,Ze,yt;return R.a.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:if(Ke=!1,console.log("fullscreen change"),!Object(w.a)()){dt.next=7;break}(Qe=h.exerciseUserInfo)!==null&&Qe!==void 0&&Qe.screen_at&&Object(y.g)(Object(ee.a)(Object(ee.a)({},_e),{},{reset:!0})),clearTimeout(q.current),dt.next=17;break;case 7:return Ke=!0,dt.next=10,Object(y.g)(Object(ee.a)({},_e));case 10:return dt.next=12,he();case 12:Ze=dt.sent,te(Ze.used_screen_num),yt=setTimeout(Object(K.a)(R.a.mark(function pt(){return R.a.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:case"end":return wt.stop()}},pt)})),h.exerciseUserInfo.screen_sec*1e3),window.frames.length!=parent.frames.length&&window.parent.postMessage("backExercise","*"),q.current=yt;case 17:s({type:"globalSetting/headerFooterToggle",payload:Ke});case 18:case"end":return dt.stop()}},We)}));return function(){return Me.apply(this,arguments)}}();return g.a.createElement("div",null,H)};de.a=Object(n.a)(function(E){var v=E.loading,O=E.user,A=E.exercise,p=E.globalSetting;return{globalSetting:p,user:O,exercise:A,loading:v.effects}})(x)},bT9E:function(et,de,N){"use strict";N.d(de,"a",function(){return K});var ee=N("VTBJ");function K(P,z){var B=Object(ee.a)({},P);return Array.isArray(z)&&z.forEach(function(M){delete B[M]}),B}},biw7:function(et,de,N){"use strict";var ee=N("q1tI"),K=N.n(ee),P=ee.createContext(null);de.a=P},c5Ni:function(et,de,N){},cQPA:function(et,de,N){"use strict";N.r(de);var ee=N("T2oS"),K=N("W9HT"),P=N("sPJy"),z=N("bE4q"),B=N("+L6B"),M=N("2/Rp"),j=N("14J3"),U=N("BMrR"),_=N("jCWc"),R=N("kPKH"),c=N("5Dmo"),g=N("3S7+"),w=N("sRBo"),y=N("kaz8"),f=N("7Kak"),m=N("9yH6"),a=N("MXD1"),n=N("CFYs"),o=N("miYZ"),u=N("tsqr"),x=N("2qtc"),E=N("kLXV"),v=N("k1fw"),O=N("9og8"),A=N("tJVT"),p=N("PpiC"),h=N("5NDa"),s=N("5rEg"),l=N("aHsQ"),D=N("sGsY"),T=N("WmNS"),S=N.n(T),I=N("q1tI"),C=N.n(I),W=N("Ty5D"),Y=N("55Ip"),H=N("9kvl"),F=N("gUdW"),q=N("xGfz"),le=N("jhfD"),pe=N("BlwA"),Ae=N("bPs0"),Ge=N("wd/R"),Fe=N.n(Ge),Ue=N("9GDu"),_e=N.n(Ue),je=N("1vsH"),xe=N("s8TD"),he=N("xKgJ"),te=N("bntm"),ye=N("V0Rq"),ue=N("HBuW"),Le=N("9Bee"),ae=N("Ot1p"),oe=function(Xe){var Pe,se,fe,$e,ke,it,at=Xe.item,Ne=Xe.answerData,Ve=Xe.isEducation,tt=Xe.sign,ft=Xe.onBlur,Ct=ft===void 0?function(){}:ft,zt=Object(I.useRef)(""),qt=Object(I.useState)(),Qt=Object(A.a)(qt,2),St=Qt[0],ln=Qt[1],Bt=Object(I.useState)(!1),Yt=Object(A.a)(Bt,2),Mt=Yt[0],tn=Yt[1],mn=Object(I.useState)(Ve||!1),An=Object(A.a)(mn,2),lt=An[0],Rt=An[1],Jt=Object(I.useRef)(),nn=function(){clearInterval(Jt.current),Jt.current=setInterval(function(){Mt&&Ct(zt.current)},30*1e3)},un=function(G){Ct(zt.current);var b="\u786E\u5B9A\u79BB\u5F00\u6B64\u9875\u9762\u5417?\u6B64\u9875\u6570\u636E\u53EF\u80FD\u4F1A\u4E22\u5931";return(G||window.event).returnValue=b,b};return Object(I.useEffect)(function(){console.log("isFocus:",Mt),Mt?(window.addEventListener("beforeunload",un),nn()):window.removeEventListener("beforeunload",un)},[Mt]),Object(I.useEffect)(function(){ln(at==null?void 0:at.a_flag)},[at==null?void 0:at.a_flag]),Object(I.useEffect)(function(){return function(){clearInterval(Jt.current)}},[]),console.log(!at.repeat_answer&&(at==null||((Pe=at.user_answer)===null||Pe===void 0)?void 0:Pe.length)>0&&!at.israp,222),C.a.createElement("div",null,(Ne==null||((se=Ne.exercise)===null||se===void 0)?void 0:se.commit_status)===1?C.a.createElement("div",null,C.a.createElement("p",{className:"mt10 mb0"},"\u6211\u7684\u7B54\u6848\uFF1A"),C.a.createElement("div",{className:_e.a.simpleText},C.a.createElement(Le.a,{value:at==null||((fe=at.user_answer)===null||fe===void 0)?void 0:fe[0]}))):C.a.createElement("div",{className:at.user_score&&(at.user_score===at.question_score?"c-green":"c-red")},lt?C.a.createElement(ae.a,{watch:!0,isFocus:!0,defaultValue:at==null||(($e=at.user_answer)===null||$e===void 0)?void 0:$e[0],id:at==null?void 0:at.question_id,onChange:function(G){zt.current=G,tn(!0)},onBlur:function(){setTimeout(function(){Ct(zt.current)},200),clearInterval(Jt.current),tn(!1)}}):C.a.createElement("div",{onClick:function(){var G;if(!at.repeat_answer&&(at==null||((G=at.user_answer)===null||G===void 0)?void 0:G.length)>0)return;tt.current=!0,Rt(!0)}},C.a.createElement(s.a,{disabled:!at.repeat_answer&&(at==null||((ke=at.user_answer)===null||ke===void 0)?void 0:ke.length)>0&&!at.israp,size:"large",className:"current",placeholder:"\u70B9\u51FB\u5F00\u59CB\u4F5C\u7B54",readOnly:!0}))),(at==null?void 0:at.standard_answer)&&C.a.createElement("div",null,C.a.createElement("p",{className:"mt10 mb0"},"\u53C2\u8003\u7B54\u6848\uFF1A"),C.a.createElement("div",{style:{border:"1px solid #eee",background:"#f5f5f5",borderRadius:4,padding:5}},C.a.createElement(Le.a,{value:at==null||((it=at.standard_answer)===null||it===void 0)?void 0:it[0]}))))},Se=oe,Me=N("g9YV"),We=N("wCAj"),Ke=N("5GOC"),Qe=N("JsLm"),Ze=N("ZW9T"),yt=N("o/qq"),vt=N.n(yt),dt=function(Xe){var Pe,se,fe,$e,ke=Xe.item,it=Xe.answerData,at=Object(I.useState)([]),Ne=Object(A.a)(at,2),Ve=Ne[0],tt=Ne[1],ft=Object(I.useState)([]),Ct=Object(A.a)(ft,2),zt=Ct[0],qt=Ct[1];Object(I.useEffect)(function(){var Bt;if(!(ke!=null&&(Bt=ke.shixun_details)!==null&&Bt!==void 0&&Bt.length))return;for(var Yt=[],Mt=[],tn=0;tn<(ke==null||((mn=ke.shixun_details)===null||mn===void 0)?void 0:mn.length);tn++){for(var mn,An,lt,Rt=0;Rt<(ke==null?void 0:ke.shixun_details[tn].stage_list.length);Rt++){var Jt,nn,un,cn,G=ke==null?void 0:ke.shixun_details[tn].stage_list[Rt];Yt.push(Object(v.a)(Object(v.a)({},G),{operation:ke==null||((Jt=ke.shixun_details)===null||Jt===void 0||((nn=Jt[tn])===null||nn===void 0||((un=nn.shixun_detail)===null||un===void 0||((cn=un[0])===null||cn===void 0))))?void 0:cn.game_identifier}))}if(ke!=null&&(An=ke.shixun_details)!==null&&An!==void 0&&(lt=An[tn])!==null&<!==void 0&<.shixun_detail){var b,L,V;Mt.push(ke==null||((b=ke.shixun_details)===null||b===void 0||((L=b[tn])===null||L===void 0||((V=L.shixun_detail)===null||V===void 0)))?void 0:V[0])}}qt(Mt),tt(Yt)},[ke==null?void 0:ke.shixun_details]);var Qt=[{title:"\u5173\u5361",dataIndex:"position",key:"position",align:"center"},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",key:"name",align:"center",render:function(Yt){return C.a.createElement("span",{className:"overflowHidden1",style:{maxWidth:"400px"},title:Yt&&Yt.length>25?Yt:""},Yt)}},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",key:"evaluate_count",align:"center",render:function(Yt,Mt){return C.a.createElement("span",null,Mt.evaluate_count?Mt.evaluate_count:C.a.createElement("span",{className:"color-grey-9"},"--"))}},{title:"\u5B8C\u6210\u65F6\u95F4",key:"endTime",dataIndex:"endTime",align:"center",render:function(Yt,Mt){var tn=!1;return Mt.finished_time&&it!==null&&it!==void 0&&it.exercise&&it!==null&&it!==void 0&&it.exercise_answer_user&&((it==null?void 0:it.exercise.time)===-1?tn=Fe()(it==null?void 0:it.exercise.end_time).isBefore(Mt.finished_time):tn=Fe()(it==null?void 0:it.exercise_answer_user.start_at).add(it==null?void 0:it.exercise.time,"m").isBefore(Mt.finished_time)),C.a.createElement("span",null,Mt.finished_time||C.a.createElement("span",{className:"c-grey-999"},"--"),C.a.createElement("span",{className:"c-orange-ff9 "},tn?"\uFF08\u5DF2\u8D85\u65F6\uFF09":""))}},{title:"\u8017\u65F6",dataIndex:"time_consuming",key:"time_consuming",align:"center",render:function(Yt,Mt){return C.a.createElement("span",null,Mt.time_consuming||C.a.createElement("span",{className:"color-grey-9"},"--"))}},{title:"\u67E5\u770B\u7B54\u6848",dataIndex:"view_answer",key:"view_answer",align:"center",render:function(Yt,Mt){return C.a.createElement("span",null,Mt.view_answer?"\u5DF2\u67E5\u770B":"\u672A\u67E5\u770B")}},{title:"\u64CD\u4F5C",dataIndex:"operation",key:"operation",align:"center",render:function(Yt,Mt,tn){return Yt?C.a.createElement(Qe.a,{affix:!1,className:"mt10"},C.a.createElement(Qe.a.Link,{href:"#challenge_".concat(ke==null?void 0:ke.question_id).concat(tn),title:C.a.createElement("span",{style:{color:"#0152d9"}},"\u67E5\u770B")})):C.a.createElement("span",{className:"c-grey-999"},"--")}}],St=[{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"key",width:"127px",key:"key",align:"center",render:function(Yt,Mt){return C.a.createElement("span",null,Mt.key)}},{title:"\u8BE6\u7EC6\u4FE1\u606F",dataIndex:"error_msg",key:"error_msg",align:"center",render:function(Yt,Mt){return C.a.createElement("span",null,Mt.error_msg?Mt.error_msg:"--")}}],ln={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};return C.a.createElement("div",{className:"mt15 mb15"},(it==null||((Pe=it.exercise)===null||Pe===void 0)?void 0:Pe.commit_status)===0&&C.a.createElement("div",null,ke.shixun.map(function(Bt,Yt){return C.a.createElement(U.a,{className:"font16",gutter:[0,20]},C.a.createElement(R.a,{flex:"1"},Bt.challenge_name," (",Bt.challenge_score,"\u5206)"),C.a.createElement(R.a,{flex:"100px",className:"tr"},Bt.answer_status===0&&C.a.createElement("span",{className:"font12 tag-style-border border-orange c-orange "},"\u672A\u5B8C\u6210"),Bt.answer_status===1&&C.a.createElement("span",{className:"font12 tag-style-border border-green c-green "},"\u5DF2\u5B8C\u6210")))})),(it==null||((se=it.exercise)===null||se===void 0)?void 0:se.commit_status)!==0||(it==null||((fe=it.exercise)===null||fe===void 0)?void 0:fe.user_exercise_status)!==0?C.a.createElement(C.a.Fragment,null,!!(Ve!=null&&Ve.length)&&C.a.createElement("div",null,C.a.createElement("p",{className:"font16 c-grey-666"},"\u9636\u6BB5\u6210\u7EE9"),C.a.createElement(We.a,{columns:Qt,dataSource:Ve,pagination:!1})),!!(zt!=null&&zt.length)&&C.a.createElement("div",null,C.a.createElement("p",{className:"font16 c-grey-666 mt10"},"\u5B9E\u8BAD\u8BE6\u60C5"),zt==null?void 0:zt.map(function(Bt,Yt){return C.a.createElement("div",{id:"challenge_".concat(ke==null?void 0:ke.question_id).concat(Yt),className:"mt5"},C.a.createElement("div",null,C.a.createElement("span",{className:"font16 mr15"}," \u7B2C",Bt.position,"\u5173"),C.a.createElement(Y.a,{className:"current c-black font16",to:"/tasks/".concat(Bt.game_identifier)},Bt.name)),(Bt==null?void 0:Bt.st)===0&&Bt.passed_code&&C.a.createElement("aside",{className:vt.a.shixunWrp},C.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",C.a.createElement("span",{className:"c-light-black"},Bt.path)),C.a.createElement(Ze.b,{height:300,language:"python",theme:"default",value:Bt.passed_code,options:ln})))}))):C.a.createElement(C.a.Fragment,null,C.a.createElement(Le.a,{className:"c-grey-999 mt20 mb20",value:ke==null?void 0:ke.question_title}),ke==null||(($e=ke.shixun)===null||$e===void 0)?void 0:$e.map(function(Bt,Yt){return C.a.createElement("p",{className:"font16 c-grey-666 mb5",key:Yt},C.a.createElement("span",{className:"mr20"},"\u7B2C",Bt==null?void 0:Bt.challenge_position,"\u5173 ",Bt==null?void 0:Bt.challenge_name),C.a.createElement("span",null,Bt==null?void 0:Bt.challenge_score,"\u5206"))})))},pt=dt,At=N("J66h"),wt=function(Xe){var Pe=Xe.item,se=Xe.answerData,fe=Object(I.useState)([]),$e=Object(A.a)(fe,2),ke=$e[0],it=$e[1];Object(I.useEffect)(function(){var Ve;if((Pe==null||((Ve=Pe.evaluate_codes)===null||Ve===void 0)?void 0:Ve.length)>0){var tt;it(Pe==null||((tt=Pe.evaluate_codes)===null||tt===void 0)?void 0:tt.map(function(ft,Ct){return{key:Ct+1,error_msg:ft!=null&&ft.error_msg?At.Base64.decode(ft==null?void 0:ft.error_msg):""}}))}else it([{key:"--",error_msg:"--"}])},[Pe==null?void 0:Pe.evaluate_codes]);var at=[{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"key",width:"127px",key:"key",align:"center",render:function(tt,ft){return C.a.createElement("span",null,ft.key)}},{title:"\u8BE6\u7EC6\u4FE1\u606F",dataIndex:"error_msg",key:"error_msg",align:"center",render:function(tt,ft){return C.a.createElement("span",null,ft.error_msg?ft.error_msg:"--")}}],Ne={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};return C.a.createElement(C.a.Fragment,null,C.a.createElement("div",{className:"mt15 mb15"},C.a.createElement(Le.a,{value:Pe==null?void 0:Pe.description})),!!(Pe!=null&&Pe.user_answer.length)&&(Pe==null?void 0:Pe.passed_code)&&C.a.createElement("aside",{className:vt.a.shixunWrp},C.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"),C.a.createElement(Ze.b,{style:{border:"1px solid #ccc"},height:300,language:"python",theme:"vs-light",value:Pe!=null&&Pe.passed_code?At.Base64.decode(Pe==null?void 0:Pe.passed_code):"",options:Ne})))},Oe=wt,we=N("oBTY"),Je=N("m3rI"),st=s.a.TextArea,He=function(Xe){var Pe,se,fe=Xe.item,$e=Xe.answerData,ke=Xe.answerCheckData,it=ke===void 0?{}:ke,at=Xe.sign,Ne=Xe.onBlur,Ve=Ne===void 0?function(){}:Ne,tt=Object(I.useState)([]),ft=Object(A.a)(tt,2),Ct=ft[0],zt=ft[1],qt=Object(I.useRef)(!1);Object(I.useEffect)(function(){return window.addEventListener("beforeunload",Qt),function(){window.removeEventListener("beforeunload",Qt)}},[Ct,it,fe]);var Qt=function(){var St=Object(O.a)(S.a.mark(function ln(){var Bt,Yt,Mt,tn,mn,An,lt,Rt;return S.a.wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:if(!(qt.current===!1)){nn.next=2;break}return nn.abrupt("return");case 2:if(Bt=Ct[qt.current],Yt=Bt.answer_text,Mt=Bt.choice_id,Yt.replaceAll(" ","")){nn.next=5;break}return nn.abrupt("return");case 5:if(mn={questionId:fe==null?void 0:fe.question_id,exercise_choice_id:Mt,answer_text:Yt},!((it==null?void 0:it.ip_limit)==="inner"||it.ip_bind)){nn.next=10;break}return nn.next=9,Object(xe.a)({ip_limit:it==null?void 0:it.ip_limit});case 9:tn=nn.sent;case 10:mn.ip=tn,An=Object(v.a)({},mn),lt={type:"application/json"},Rt=new Blob([JSON.stringify(An)],lt),window.navigator.sendBeacon("".concat(Je.a.API_SERVER,"/api/exercise_questions/").concat(mn.questionId,"/exercise_answers.json"),Rt);case 15:case"end":return nn.stop()}},ln)}));return function(){return St.apply(this,arguments)}}();return Object(I.useEffect)(function(){for(var St=[],ln=function(Mt){var tn,mn=(fe==null||((tn=fe.user_answer)===null||tn===void 0)?void 0:tn.find(function(An){return An.choice_id===Mt+1}))||{choice_id:Mt+1,answer_text:""};St.push(Object(v.a)({},mn))},Bt=0;Bt<(fe==null?void 0:fe.multi_count);Bt++)ln(Bt);zt(St)},[fe==null?void 0:fe.user_answer]),C.a.createElement("div",null,Ct==null?void 0:Ct.map(function(St,ln){var Bt;return C.a.createElement("div",{key:ln,className:"mt10"},C.a.createElement("span",null,"\u6211\u7684\u7B54\u6848\uFF08\u586B\u7A7A",ln+1,"\uFF09:"),C.a.createElement("div",null,C.a.createElement(st,{autoSize:!0,rows:4,disabled:!fe.repeat_answer&&(fe==null||((Bt=fe.user_answer)===null||Bt===void 0)?void 0:Bt.length)>0&&!fe.israp||!!($e!=null&&$e.exercise.commit_status),value:St==null?void 0:St.answer_text,onChange:function(Mt){qt.current=ln,Ct[ln].answer_text=Mt.target.value,zt(Object(we.a)(Ct))},onFocus:function(){at.current=!0},onBlur:function(Mt){qt.current=!1,setTimeout(function(){Ve(St==null?void 0:St.answer_text,ln+1,Ct)},200)},className:"overflow_hidden ".concat(fe.user_score&&(fe.user_score===fe.question_score?"c-green":"c-red"))})))}),!!(fe!=null&&(Pe=fe.standard_answer)!==null&&Pe!==void 0&&Pe.length)&&C.a.createElement("div",null,fe==null||((se=fe.standard_answer)===null||se===void 0)?void 0:se.map(function(St,ln){return C.a.createElement("div",null,C.a.createElement("span",null,"\u53C2\u8003\u7B54\u6848\uFF1A\uFF08\u586B\u7A7A",ln+1,"\uFF09:"),C.a.createElement("div",null,C.a.createElement(st,{autoSize:!0,disabled:!0,value:St==null?void 0:St.answer_text[0]})))})))},nt=He,Te=N("lzim"),ge=s.a.TextArea,be=function(Xe){var Pe=Xe.data;return C.a.createElement("div",{className:"tc mt80"},C.a.createElement("img",{width:"486",src:Te.n})," ",C.a.createElement("br",null),Pe.status===-1&&C.a.createElement("div",{className:"c-grey-999 mt60"},"\u60A8\u7684IP\u4E0D\u5728\u8003\u8BD5\u5141\u8BB8\u7684\u8303\u56F4\u5185\uFF01"),Pe.status===-2&&C.a.createElement("div",{className:" c-grey-999 mt60"},"\u60A8\u5DF2\u7ED1\u5B9A\u5F53\u524D\u8003\u8BD5IP\u5730\u5740\uFF1A",C.a.createElement("span",{className:"c-red"},Pe.ip),"\u8BF7\u4F7F\u7528\u8BE5IP\u5730\u5740\u8FDB\u5165\u8003\u8BD5\u3002"),C.a.createElement(M.a,{className:"mt40 pl20 pr20",type:"primary"},C.a.createElement("a",{href:"/"},"\u56DE\u5230\u9996\u9875")))},re=be,ie=N("LvDl"),ce=D.a.Countdown,Ee=s.a.TextArea,Be=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Ie={1:"\u672A\u53D1\u5E03",2:"\u5DF2\u53D1\u5E03",3:"\u5DF2\u622A\u6B62"},ut={1:_e.a.flagActive,2:_e.a.flagHalf},bt={0:"c-red-ee4",1:"c-green"},Tt=["\u5355\u9009\u9898","\u591A\u9009\u9898","\u5224\u65AD\u9898","\u586B\u7A7A\u9898","\u7B80\u7B54\u9898","\u5B9E\u8BAD\u9898","\u7F16\u7A0B\u9898"],xt=function(Xe){var Pe,se,fe,$e,ke,it,at,Ne,Ve,tt,ft,Ct,zt,qt,Qt,St,ln,Bt,Yt,Mt,tn,mn,An,lt,Rt,Jt,nn,un,cn,G,b,L=Xe.globalSetting,V=Xe.loading,J=Xe.user,Q=Xe.dispatch,De=Object(p.a)(Xe,["globalSetting","loading","user","dispatch"]),ot=Object(W.i)(),Ot=Object(I.useState)({}),Ft=Object(A.a)(Ot,2),ve=Ft[0],Gt=Ft[1],en=Object(I.useState)({}),Tn=Object(A.a)(en,2),Wn=Tn[0],tr=Tn[1],Rn=Object(I.useState)({}),or=Object(A.a)(Rn,2),fr=or[0],Vn=or[1],sr=Object(I.useState)(!1),Jn=Object(A.a)(sr,2),Mr=Jn[0],Xn=Jn[1],Ir=Object(I.useState)(!0),yr=Object(A.a)(Ir,2),Tr=yr[0],Yr=yr[1],br=Object(I.useState)(!1),nr=Object(A.a)(br,2),Ur=nr[0],_r=nr[1],Fr=Object(I.useState)(!1),Sn=Object(A.a)(Fr,2),hn=Sn[0],kn=Sn[1],yn=Object(I.useState)(),Ln=Object(A.a)(yn,2),bn=Ln[0],wr=Ln[1],Bn=Object(I.useState)(0),Qn=Object(A.a)(Bn,2),zr=Qn[0],jr=Qn[1],Dr=Object(I.useState)(""),Jr=Object(A.a)(Dr,2),rr=Jr[0],Wr=Jr[1],Er=Object(I.useState)("none"),Hr=Object(A.a)(Er,2),Zr=Hr[0],ir=Hr[1],ri=Object(I.useState)(""),ii=Object(A.a)(ri,2),Xt=ii[0],on=ii[1],$t=Object(I.useState)({status:0}),dn=Object(A.a)($t,2),En=dn[0],wn=dn[1],gn=Object(I.useRef)(),xn=Object(I.useRef)(!1),Hn=Object(I.useRef)({}),fn=Object(I.useState)(0),Pr=Object(A.a)(fn,2),Ht=Pr[0],_n=Pr[1],pr=Object(I.useState)(0),lr=Object(A.a)(pr,2),Kt=lr[0],pn=lr[1],Cn=Object(I.useState)(!1),ur=Object(A.a)(Cn,2),qr=ur[0],Rr=ur[1],gi=Object(I.useState)(!1),vi=Object(A.a)(gi,2),ai=vi[0],Gi=vi[1],xa=Object(I.useState)(),Ca=Object(A.a)(xa,2),Sa=Ca[0],wi=Ca[1],Aa=Object(I.useState)(),Ta=Object(A.a)(Aa,2),oi=Ta[0],Gr=Ta[1];Object(I.useEffect)(function(){return(Object(he.c)()||Object(he.l)())&&dr(),window.addEventListener("message",yi),function(){window.removeEventListener("message",yi),window.removeEventListener("beforeunload",Da),location.pathname.indexOf("/detail")>-1&&Object(te.b)()}},[ot.categoryId,J.userInfo.login]);var yi=function(me){me.data==="backExercise"&&(ir("none"),Wr(""),dr())},wa=function(){var Ut=Object(O.a)(S.a.mark(function me(){var ct,rt,_t,mt,It,Nt,Lt,Zt,jt,rn,Mn;return S.a.wrap(function(In){for(;;)switch(In.prev=In.next){case 0:return In.next=2,Q({type:"exercise/getExerciseUserInfo",payload:Object(v.a)({},ot)});case 2:if(rt=In.sent,tr(Object(v.a)({},rt.data)),!((rt==null||((ct=rt.data)===null||ct===void 0)?void 0:ct.ip_limit)!=="no")){In.next=11;break}if(!((rt==null||((_t=rt.data)===null||_t===void 0)?void 0:_t.ip_limit)==="inner")){In.next=9;break}return In.next=8,Object(xe.a)({ip_limit:rt==null||((mt=rt.data)===null||mt===void 0)?void 0:mt.ip_limit});case 8:Nt=In.sent;case 9:return In.next=11,Object(je.q)({exerciseId:ot.categoryId,ip:Nt,errmsgHide:!0,ip_limit:rt==null||((It=rt.data)===null||It===void 0)?void 0:It.ip_limit}).catch(function(ui){wn(ui)});case 11:if(!((rt==null?void 0:rt.status)==0)){In.next=18;break}if(!((rt==null||((Lt=rt.data)===null||Lt===void 0)?void 0:Lt.used_screen_num)>(rt==null||((Zt=rt.data)===null||Zt===void 0)?void 0:Zt.screen_num)&&rt!==null&&rt!==void 0&&(jt=rt.data)!==null&&jt!==void 0&&jt.screen_open)){In.next=15;break}return Ri(),In.abrupt("return",!1);case 15:_r(rt==null?void 0:rt.data.check_camera),kn(rt==null||((rn=rt.data)===null||rn===void 0)?void 0:rn.screen_open),rt!=null&&(Mn=rt.data)!==null&&Mn!==void 0&&Mn.check_camera||dr();case 18:case"end":return In.stop()}},me)}));return function(){return Ut.apply(this,arguments)}}(),Da=function(me){var ct="\u786E\u5B9A\u79BB\u5F00\u6B64\u9875\u9762\u5417?\u6B64\u9875\u6570\u636E\u53EF\u80FD\u4F1A\u4E22\u5931";return(me||window.event).returnValue=ct,ct},dr=function(){var Ut=Object(O.a)(S.a.mark(function me(){var ct,rt,_t,mt,It;return S.a.wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:return Xn(!0),Lt.next=3,Object(ye.Y)(Object(v.a)({},ot)).catch(function(){return Xn(!1)});case 3:rt=Lt.sent,((ct=rt)===null||ct===void 0?void 0:ct.exercise)&&(rt.exercise.user_exercise_status=1),Xn(!1),rt&&(rt.exercise_types=((_t=rt)===null||_t===void 0?void 0:_t.exercise_types)||((mt=rt)===null||mt===void 0||((It=mt.exercise_scores)===null||It===void 0)?void 0:It.exercise_types),Gt(rt));case 7:case"end":return Lt.stop()}},me)}));return function(){return Ut.apply(this,arguments)}}();Object(I.useEffect)(function(){var Ut,me,ct;((Ut=ve.exercise)===null||Ut===void 0?void 0:Ut.time)===0&&Ri(),((me=ve.exercise)===null||me===void 0?void 0:me.time)&&wr(Date.now()+(ve==null||((ct=ve.exercise)===null||ct===void 0)?void 0:ct.time)*1e3*60)},[(Pe=ve.exercise)===null||Pe===void 0?void 0:Pe.time]);var si=function(){var me;(ve==null||((me=ve.exercise)===null||me===void 0)?void 0:me.exercise_status)===3?E.a.confirm({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:C.a.createElement("div",{className:"tc font16"},"\u622A\u6B62\u65F6\u95F4\u5DF2\u5230\uFF0C\u65E0\u6CD5\u6253\u56DE\u8BD5\u5377",C.a.createElement("br",null),"\u8BF7\u5728\u4FEE\u6539\u622A\u6B62\u65F6\u95F4\u540E\u518D\u64CD\u4F5C")}):E.a.confirm({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:C.a.createElement("div",{className:"tc font16"},"\u5B66\u751F\u5C06\u5F97\u5230\u4E00\u6B21\u91CD\u65B0\u7B54\u9898\u7684\u673A\u4F1A\uFF0C\u73B0\u6709\u7684\u7B54\u9898\u60C5\u51B5\u5C06\u88AB\u6E05\u7A7A",C.a.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u56DE\u9000TA\u7684\u8BD5\u5377\u7B54\u9898"),onOk:function(){var ct=Object(O.a)(S.a.mark(function _t(){var mt,It;return S.a.wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:return Lt.next=2,Object(ye.R)({categoryId:ot.categoryId,user_ids:[ve==null||((mt=ve.exercise_answer_user)===null||mt===void 0)?void 0:mt.user_id]});case 2:It=Lt.sent,It&&(u.b.info(It==null?void 0:It.message),ei());case 4:case"end":return Lt.stop()}},_t)}));function rt(){return ct.apply(this,arguments)}return rt}()})},ei=function(){dr()},ro=function(){var Ut=Object(O.a)(S.a.mark(function me(){var ct,rt;return S.a.wrap(function(mt){for(;;)switch(mt.prev=mt.next){case 0:return mt.next=2,Object(ye.ab)({categoryId:ot.categoryId,commit_method:2});case 2:ct=mt.sent,(ct==null?void 0:ct.status)===0&&(E.a.info({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",content:C.a.createElement("div",{className:"tc font16"},"\u7B54\u9898\u7ED3\u675F\u4E86\uFF0C\u7CFB\u7EDF\u5DF2\u81EA\u52A8\u63D0\u4EA4\u8BD5\u5377",C.a.createElement("br",null),"\u4E0D\u80FD\u518D\u4FEE\u6539\u7B54\u9898"),onOk:function(){var It=Object(O.a)(S.a.mark(function Lt(){return S.a.wrap(function(jt){for(;;)switch(jt.prev=jt.next){case 0:ei();case 1:case"end":return jt.stop()}},Lt)}));function Nt(){return It.apply(this,arguments)}return Nt}()}),u.b.info(ct==null?void 0:ct.message)),(ct==null?void 0:ct.status)===-3&&(rt=parseInt(ct==null?void 0:ct.message),ve.exercise.time=rt,Gt(Object(v.a)({},ve)));case 5:case"end":return mt.stop()}},me)}));return function(){return Ut.apply(this,arguments)}}(),Di=function(){var Ut=Object(O.a)(S.a.mark(function me(ct){var rt;return S.a.wrap(function(mt){for(;;)switch(mt.prev=mt.next){case 0:return mt.next=2,Object(ue.D)({id:ct.shixun_identifier});case 2:rt=mt.sent,rt!=null&&rt.game_identifier&&(Wr("/tasks/".concat(rt.game_identifier,"?type=exercises&exercisesId=").concat(ot.categoryId,"&coursesId=").concat(ot.coursesId,"&login=").concat(ot.login,"&questionId=").concat(ct.question_id)),ir("block")),(rt==null?void 0:rt.status)===-3?Object(je.o)():(rt==null?void 0:rt.status)===2?io(rt==null?void 0:rt.message,ct.question_id):(rt==null?void 0:rt.status)===3&&Vi(rt==null?void 0:rt.message);case 5:case"end":return mt.stop()}},me)}));return function(ct){return Ut.apply(this,arguments)}}(),io=function Ut(me,ct){var rt;me=(rt=me)!==null&&rt!==void 0&&rt.includes(".json")?me:"".concat(me,".json"),E.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:C.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var _t=Object(O.a)(S.a.mark(function It(){var Nt,Lt;return S.a.wrap(function(jt){for(;;)switch(jt.prev=jt.next){case 0:return jt.next=2,Object(ye.S)({url:me});case 2:if(Nt=jt.sent,Nt){jt.next=5;break}return jt.abrupt("return");case 5:return u.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),jt.next=8,Object(ue.D)({id:Nt.shixun_identifier});case 8:if(Lt=jt.sent,!(Lt!=null&&Lt.game_identifier)){jt.next=12;break}return Di({shixun_identifier:Lt==null?void 0:Lt.game_identifier,question_id:ct}),jt.abrupt("return");case 12:(Lt==null?void 0:Lt.status)===2?Ut(Lt==null?void 0:Lt.message,ct):(Lt==null?void 0:Lt.status)===3&&Vi(Lt==null?void 0:Lt.message);case 13:case"end":return jt.stop()}},It)}));function mt(){return _t.apply(this,arguments)}return mt}()})},Vi=function(me){E.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:C.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",me,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},Xi=function(me){me.redo?E.a.info({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",content:C.a.createElement("div",{className:"tc font16"},"\u60A8\u4E4B\u524D\u5DF2\u7ECF\u6311\u6218\u8FC7\u8BE5\u5B9E\u8BAD\uFF0C\u8003\u8BD5\u8FC7\u7A0B\u4E2D\u9700\u8981\u91CD\u65B0\u6311\u6218"),onOk:function(){var ct=Object(O.a)(S.a.mark(function _t(){var mt,It,Nt,Lt;return S.a.wrap(function(jt){for(;;)switch(jt.prev=jt.next){case 0:return jt.next=2,Object(ye.S)({id:me.myshixun_identifier,url:me.url});case 2:mt=jt.sent,mt&&(It=Object(ie.cloneDeep)(ve==null?void 0:ve.exercise_question_types),Nt=It==null?void 0:It.findIndex(function(rn){return rn.question_type===5}),It[Nt].items.find(function(rn){return rn.question_id===me.question_id}).redo=!1,It[Nt].items.find(function(rn){return rn.question_id===me.question_id}).shixun_identifier=mt.shixun_identifier,ve.exercise_question_types=It,Gt(ve),Lt=Object(v.a)(Object(v.a)({},me),{},{shixun_identifier:mt.shixun_identifier}),Di(Lt));case 4:case"end":return jt.stop()}},_t)}));function rt(){return ct.apply(this,arguments)}return rt}()}):Di(me)},li=function(){var Ut=Object(O.a)(S.a.mark(function me(ct){var rt;return S.a.wrap(function(mt){for(;;)switch(mt.prev=mt.next){case 0:if(!ct.hack_identifier){mt.next=5;break}return mt.next=3,Object(ye.X)({id:ct.hack_identifier});case 3:rt=mt.sent,(rt==null?void 0:rt.status)===0&&(Wr("/myproblems/".concat(rt.identifier,"?type=exercises&exercisesId=").concat(ot.categoryId,"&coursesId=").concat(ot.coursesId,"&login=").concat(ot.login,"&questionId=").concat(ct.question_id)),ir("block"));case 5:case"end":return mt.stop()}},me)}));return function(ct){return Ut.apply(this,arguments)}}(),mr=function(){var Ut=Object(O.a)(S.a.mark(function me(ct,rt,_t,mt){var It,Nt;return S.a.wrap(function(Zt){for(;;)switch(Zt.prev=Zt.next){case 0:if(Xn(!0),ct){Zt.next=4;break}return console.error("handleSave no questionId params"),Zt.abrupt("return");case 4:return Zt.next=6,Object(ye.cb)({questionId:ct,exercise_choice_id:rt,answer_text:_t});case 6:Nt=Zt.sent,(Nt==null?void 0:Nt.status)===0&&(mt&&mt(),Vr()),Xn(!1);case 9:case"end":return Zt.stop()}},me)}));return function(ct,rt,_t,mt){return Ut.apply(this,arguments)}}(),Qi=function(){var Ut=Object(O.a)(S.a.mark(function me(ct){var rt,_t;return S.a.wrap(function(It){for(;;)switch(It.prev=It.next){case 0:return It.next=2,Object(ye.V)({id:ot.categoryId});case 2:if(rt=It.sent,rt){It.next=5;break}return It.abrupt("return");case 5:rt.question_undo!==0||rt.oj_undo!==0?(_t="",rt.question_undo!==0&&rt.oj_undo!==0?_t="\u6709 ".concat(rt.question_undo," \u9898\u672A\u5B8C\u6210\uFF0C\u5305\u542B ").concat(rt.oj_undo," \u4E2A\u7F16\u7A0B\u9898"):rt.question_undo!==0&&rt.oj_undo===0?_t="\u6709 ".concat(rt.question_undo," \u9898\u672A\u5B8C\u6210"):rt.question_undo===0&&rt.oj_undo!==0&&(_t="\u6709 ".concat(rt.oj_undo," \u7F16\u7A0B\u9898\u672A\u5B8C\u6210")),E.a.confirm({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:C.a.createElement("div",{className:"tc font16"},_t,C.a.createElement("br",null),ct?"\u5728".concat(Fe()(rt.end_time).format("YYYY-MM-DD HH:mm"),"\u4E4B\u524D\uFF0C\u5141\u8BB8\u4FEE\u6539\u7B54\u9898"):"\u63D0\u4EA4\u540E\u65E0\u6CD5\u518D\u4FEE\u6539\u7B54\u9898\uFF0C\u662F\u5426\u786E\u8BA4\u63D0\u4EA4\uFF1F"),onOk:function(){var Nt=Object(O.a)(S.a.mark(function Zt(){return S.a.wrap(function(rn){for(;;)switch(rn.prev=rn.next){case 0:ct?ei():Ri();case 1:case"end":return rn.stop()}},Zt)}));function Lt(){return Nt.apply(this,arguments)}return Lt}()})):E.a.info({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u77E5\u9053\u5566",content:C.a.createElement("div",{className:"tc font16"},ct?"\u5728".concat(Fe()(rt.end_time).format("YYYY-MM-DD HH:mm"),"\u4E4B\u524D\uFF0C\u5141\u8BB8\u4FEE\u6539\u7B54\u9898"):"\u63D0\u4EA4\u540E\u65E0\u6CD5\u518D\u4FEE\u6539\u7B54\u9898\uFF0C\u662F\u5426\u786E\u8BA4\u63D0\u4EA4\uFF1F"),onOk:function(){var Nt=Object(O.a)(S.a.mark(function Zt(){return S.a.wrap(function(rn){for(;;)switch(rn.prev=rn.next){case 0:ct?ei():Ri();case 1:case"end":return rn.stop()}},Zt)}));function Lt(){return Nt.apply(this,arguments)}return Lt}()});case 6:case"end":return It.stop()}},me)}));return function(ct){return Ut.apply(this,arguments)}}(),Yi=function(me){return C.a.createElement("div",null,C.a.createElement(n.a,{strokeColor:{from:"#108ee9",to:"#87d068"},status:"active",percent:me}),C.a.createElement("div",{className:"c-grey-c tc mt10 mb20"},"\u6B63\u5728\u5224\u5206\u4E2D\u2026"))},ao=function(){var me=0,ct=E.a.info({title:"\u4EA4\u5377\u4E2D",icon:null,className:"modal-footer-none",content:Yi(me)}),rt=setInterval(function(){me<=100?(me+=2,ct.update({content:Yi(me)})):(ct.destroy(),clearInterval(rt))},50)},Ri=function(){var Ut=Object(O.a)(S.a.mark(function me(){var ct;return S.a.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return ao(),_t.next=3,Object(ye.ab)({categoryId:ot.categoryId,commit_method:1});case 3:ct=_t.sent,Object(te.b)(),Q({type:"exercise/setActionTabs",payload:Object(v.a)({},{removeEventListenerExitScreen:!0})}),(ct==null?void 0:ct.status)===0&&(u.b.success(ct==null?void 0:ct.message),_r(!1),setTimeout(function(){E.a.info({title:"\u4EA4\u5377\u6210\u529F\uFF01",okText:"\u786E\u5B9A",onOk:function(){ei()}})},3e3));case 7:case"end":return _t.stop()}},me)}));return function(){return Ut.apply(this,arguments)}}(),oo=function(){var Ut=Object(O.a)(S.a.mark(function me(ct,rt,_t,mt){return S.a.wrap(function(Nt){for(;;)switch(Nt.prev=Nt.next){case 0:mr(rt,ct,null,function(){ve.question_status.find(function(Lt){return Lt.ques_id===rt}).ques_status=ct?1:0,mt.user_answer=[],mt.user_answer.push(ct),mt.repeat_answer||(mt.israp=!0),Gt(Object(v.a)({},ve))});case 1:case"end":return Nt.stop()}},me)}));return function(ct,rt,_t,mt){return Ut.apply(this,arguments)}}(),Ra=function(){var Ut=Object(O.a)(S.a.mark(function me(ct,rt,_t,mt,It){return S.a.wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:mr(mt.question_id,ct,null,function(){var Zt,jt,rn;mt.user_answer=[],mt.user_answer.push(ct);var Mn=It==null||((Zt=It.sub_exercise_questions)===null||Zt===void 0)?void 0:Zt.filter(function(Nn){var In;return((In=Nn.user_answer)===null||In===void 0?void 0:In.length)===0});ve.question_status.find(function(Nn){return Nn.ques_id===rt}).ques_status=(Mn==null?void 0:Mn.length)===(It==null||((jt=It.sub_exercise_questions)===null||jt===void 0)?void 0:jt.length)?0:(Mn==null?void 0:Mn.length)>0&&(Mn==null?void 0:Mn.length)<(It==null||((rn=It.sub_exercise_questions)===null||rn===void 0)?void 0:rn.length)?2:1,Gt(Object(v.a)({},ve))});case 1:case"end":return Lt.stop()}},me)}));return function(ct,rt,_t,mt,It){return Ut.apply(this,arguments)}}(),Oa=function(me,ct,rt){mr(ct,me,null,function(){rt.user_answer=me,rt.repeat_answer||(rt.israp=!0),ve.question_status.find(function(_t){return _t.ques_id===ct}).ques_status=me!=null&&me.length?1:0,Gt(Object(v.a)({},ve))})},bi=function(me,ct,rt,_t,mt){if(!me.replaceAll(" ","")){u.b.warning("\u56DE\u7B54\u4E0D\u80FD\u4E3A\u7A7A\u6216\u8005\u7EAF\u7A7A\u683C"),Vr();return}mr(rt,ct,me,function(){ve.question_status.find(function(Nt){return Nt.ques_id===rt}).ques_status=_t.every(function(Nt){return!!Nt.answer_text})?1:ve.question_status.find(function(Nt){return Nt.ques_id===rt}).ques_status=_t.some(function(Nt){return!!Nt.answer_text})?2:0;var It={choice_id:ct,answer_text:me};mt.user_answer.filter(function(Nt){return Nt.choice_id!=ct})?mt.user_answer.splice(ct-1,1,It):mt.user_answer.push(It),mt.repeat_answer||(mt.israp=!0),Gt(Object(v.a)({},ve))})},La=function(me,ct,rt){if(!me.replaceAll(" ","")){u.b.warning("\u56DE\u7B54\u4E0D\u80FD\u4E3A\u7A7A\u6216\u8005\u7EAF\u7A7A\u683C"),Vr();return}mr(ct,null,me,function(){ve.question_status.find(function(_t){return _t.ques_id===ct}).ques_status=me?1:0,rt.user_answer=[],rt.user_answer.push(me),rt.repeat_answer||(rt.israp=!0),Gt(Object(v.a)({},ve))})},Ji=function(me,ct){var rt,_t,mt,It,Nt,Lt;return C.a.createElement("div",null,C.a.createElement(m.a.Group,{disabled:!!(ve!=null&&ve.exercise.commit_status),defaultValue:me==null||((rt=me.user_answer)===null||rt===void 0)?void 0:rt[0],onChange:function(jt){return oo(jt.target.value,me==null?void 0:me.question_id,ct,me)},className:me.user_score&&"edu-radio-".concat(me.user_score===me.question_score?"green":"red")},me==null||((_t=me.question_choices)===null||_t===void 0)?void 0:_t.map(function(Zt,jt){var rn,Mn=me.question_type==2,Nn=Mn?"":"".concat(Be[jt],".");return C.a.createElement("div",{className:_e.a.answerWrap,key:jt},C.a.createElement(m.a,{disabled:!me.repeat_answer&&(me==null||((rn=me.user_answer)===null||rn===void 0)?void 0:rn.length)>0&&!me.israp,value:Zt==null?void 0:Zt.choice_id},C.a.createElement("span",{className:"mr3"},Nn),C.a.createElement(Le.a,{className:_e.a.renderHtml,value:Zt==null?void 0:Zt.choice_text})))})),Object(he.s)()&&(ve==null||((mt=ve.exercise)===null||mt===void 0)?void 0:mt.answer_open)&&((ve==null||((It=ve.exercise)===null||It===void 0)?void 0:It.exercise_status)==3||(ve==null||((Nt=ve.exercise)===null||Nt===void 0)?void 0:Nt.user_exercise_status)==1)&&C.a.createElement("div",null,"\u53C2\u8003\u7B54\u6848\uFF1A",me==null||((Lt=me.standard_answer)===null||Lt===void 0)?void 0:Lt.map(function(Zt,jt){return C.a.createElement("span",null,Be[Number(Zt)-1])})))},Zi=function(me,ct,rt){var _t;return C.a.createElement("div",null,me==null||((_t=me.sub_exercise_questions)===null||_t===void 0)?void 0:_t.map(function(mt,It){var Nt,Lt,Zt,jt,rn,Mn;return C.a.createElement("div",null,C.a.createElement("div",{style:{display:"flex",marginTop:20,userSelect:"none"}},C.a.createElement("span",{style:{flexShrink:0},className:"font18"},rt+1+"."+(It+1),"\uFF08\u5355\u9009\u9898\uFF09"),C.a.createElement(Le.a,{value:mt==null?void 0:mt.question_title}),C.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",mt==null?void 0:mt.question_score,"\u5206\uFF09")),C.a.createElement(m.a.Group,{disabled:!!(ve!=null&&ve.exercise.commit_status),defaultValue:mt==null||((Nt=mt.user_answer)===null||Nt===void 0)?void 0:Nt[0],onChange:function(In){return Ra(In.target.value,me==null?void 0:me.question_id,It,mt,me)},className:mt.user_score&&"edu-radio-".concat(mt.user_score===mt.question_score?"green":"red")},mt==null||((Lt=mt.question_choices)===null||Lt===void 0)?void 0:Lt.map(function(Nn,In){var ui,Ua=mt.question_type==2,Li=Ua?"":"".concat(Be[In],".");return C.a.createElement("div",{className:_e.a.answerWrap,key:In},C.a.createElement(m.a,{disabled:!mt.repeat_answer&&(mt==null||((ui=mt.user_answer)===null||ui===void 0)?void 0:ui.length)>0,value:Nn==null?void 0:Nn.choice_id},C.a.createElement("span",{className:"mr3"},Li),C.a.createElement(Le.a,{className:_e.a.renderHtml,value:Nn==null?void 0:Nn.choice_text})))})),Object(he.s)()&&(ve==null||((Zt=ve.exercise)===null||Zt===void 0)?void 0:Zt.answer_open)&&((ve==null||((jt=ve.exercise)===null||jt===void 0)?void 0:jt.exercise_status)==3||(ve==null||((rn=ve.exercise)===null||rn===void 0)?void 0:rn.user_exercise_status)==1)&&C.a.createElement("div",null,"\u53C2\u8003\u7B54\u6848\uFF1A",mt==null||((Mn=mt.standard_answer)===null||Mn===void 0)?void 0:Mn.map(function(Nn,In){return C.a.createElement("span",null,Be[Number(Nn)-1])})))}))},Oi=function(me,ct){var rt,_t,mt,It;return C.a.createElement("div",null,C.a.createElement(y.a.Group,{disabled:!!(ve!=null&&ve.exercise.commit_status),defaultValue:me==null?void 0:me.user_answer,onChange:function(Lt){return Oa(Lt,me==null?void 0:me.question_id,me)},className:me.user_score&&"edu-checkbox-".concat(me.user_score===me.question_score?"green":"red")},me==null||((rt=me.question_choices)===null||rt===void 0)?void 0:rt.map(function(Nt,Lt){var Zt,jt="".concat(Be[Lt],".");return C.a.createElement("div",{className:_e.a.answerWrap},C.a.createElement(y.a,{disabled:!me.repeat_answer&&(me==null||((Zt=me.user_answer)===null||Zt===void 0)?void 0:Zt.length)>0&&!me.israp,value:Nt==null?void 0:Nt.choice_id},C.a.createElement("span",{className:"mr3"},jt),C.a.createElement(Le.a,{className:_e.a.renderHtml,value:Nt==null?void 0:Nt.choice_text})))})),Object(he.s)()&&(ve==null||((_t=ve.exercise)===null||_t===void 0)?void 0:_t.answer_open)&&(ve==null||((mt=ve.exercise)===null||mt===void 0)?void 0:mt.exercise_status)==3&&C.a.createElement("div",null,"\u53C2\u8003\u7B54\u6848\uFF1A",me==null||((It=me.standard_answer)===null||It===void 0)?void 0:It.map(function(Nt,Lt){return C.a.createElement("span",null,Be[Number(Nt)-1])})))},Ma=function(me,ct){return C.a.createElement(nt,{item:me,sign:xn,answerData:ve,answerCheckData:Wn,onBlur:function(_t,mt,It){return bi(_t,mt,me==null?void 0:me.question_id,It,me)}})},qi=function(me,ct){return C.a.createElement(Se,{item:me,answerData:ve,sign:xn,onBlur:function(_t){return La(_t,me==null?void 0:me.question_id,me)}})},kr=function(me,ct){return C.a.createElement(pt,{item:me,answerData:ve})},Ia=function(me,ct){return C.a.createElement(Oe,{item:me,answerData:ve})},Kr=function(me,ct,rt){var _t,mt,It=ve==null||((_t=ve.exercise_question_types)===null||_t===void 0)?void 0:_t.find(function(Nt){return Nt.question_type===ct});return C.a.createElement(C.a.Fragment,null,C.a.createElement("h1",{className:"font14 current",onClick:function(){fr[ct]=!fr[ct],Vn(Object(v.a)({},fr))}},!fr[ct]&&C.a.createElement(F.a,null),fr[ct]&&C.a.createElement(q.a,null),C.a.createElement("span",{className:"ml5 c-grey-666"},me)),C.a.createElement("ul",{className:_e.a.answerSheet,key:ct},!fr[ct]&&(It==null||((mt=It.items)===null||mt===void 0)?void 0:mt.map(function(Nt,Lt){if(Nt.question_type===ct){var Zt,jt;return C.a.createElement("li",{onClick:function(){if(xn.current){xn.current="appoint",Hn.current={oneindex:rt,twoindex:Lt};return}Ba({oneindex:rt,twoindex:Lt})},key:Lt,className:(ve==null||((Zt=ve.question_status)===null||Zt===void 0)?void 0:Zt.some(function(rn){return rn.ques_id===Nt.question_id&&(rn==null?void 0:rn.ques_status)===1}))&&_e.a.active},Lt+1,(ve==null||((jt=ve.question_status)===null||jt===void 0)?void 0:jt.some(function(rn){return rn.ques_id===Nt.question_id&&(rn==null?void 0:rn.ques_status)===2}))&&C.a.createElement("div",{style:{height:3,background:"#0152d9",position:"absolute",width:26,bottom:0}}))}}))))},$i=function(me,ct){var rt,_t,mt,It,Nt,Lt,Zt=(me==null?void 0:me.question_type)==5?me==null?void 0:me.shixun_name:me==null?void 0:me.question_title;return C.a.createElement("div",{className:_e.a.questionItem,id:"Anchor_".concat(me==null?void 0:me.question_type,"_").concat(ct)},C.a.createElement("div",{style:{display:"flex",marginTop:20,userSelect:"none"}},C.a.createElement("span",{style:{flexShrink:0},className:"font18"},ct+1,"."),C.a.createElement(Le.a,{value:me==null?void 0:me.question_title}),C.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",(me==null?void 0:me.question_type)===7?"\u5171".concat(me==null||((rt=me.sub_exercise_questions)===null||rt===void 0)?void 0:rt.length,"\u5C0F\u9898\uFF0C"):"",me==null?void 0:me.question_score,"\u5206\uFF09"),!(me!=null&&me.repeat_answer)&&C.a.createElement("span",{style:{color:"#FA6400 ",marginLeft:10,fontSize:16}},"\u6CE8\u610F\uFF1A\u8BE5\u9898\u4E0D\u5141\u8BB8\u91CD\u590D\u7B54\u9898"),!!(me!=null&&(_t=me.schools)!==null&&_t!==void 0&&_t.length)&&C.a.createElement(g.a,{title:"\u8BE5\u5B9E\u8BAD\u9898\u9762\u5411\u6307\u5B9A\u5355\u4F4D\u5F00\u653E"},C.a.createElement("i",{className:"iconfont icon-zhidinggongkai1 line24 font18 c-orange"}))),(me==null?void 0:me.question_type)==0&&Ji(me,me==null?void 0:me.question_type),(me==null?void 0:me.question_type)==2&&Ji(me,me==null?void 0:me.question_type),(me==null?void 0:me.question_type)==1&&Oi(me,me==null?void 0:me.question_type),(me==null?void 0:me.question_type)==3&&Ma(me,me==null?void 0:me.question_type),(me==null?void 0:me.question_type)==4&&qi(me,me==null?void 0:me.question_type),(me==null?void 0:me.question_type)==5&&kr(me,me==null?void 0:me.question_type),(me==null?void 0:me.question_type)==6&&Ia(me,me==null?void 0:me.question_type),(me==null?void 0:me.question_type)==7&&Zi(me,me==null?void 0:me.question_type,ct),!!(me!=null&&(mt=me.answer_comments)!==null&&mt!==void 0&&mt.length)&&C.a.createElement("div",{className:"mt30"},me==null||((It=me.answer_comments)===null||It===void 0)?void 0:It.map(function(jt,rn){var Mn,Nn;return C.a.createElement("div",null,C.a.createElement(U.a,{align:"middle",gutter:[0,10]},C.a.createElement(R.a,{flex:"50px"},C.a.createElement("img",{src:Je.a.API_SERVER+"/images/"+((Mn=jt.user)===null||Mn===void 0?void 0:Mn.image_url),width:"40",style:{borderRadius:40}})),C.a.createElement(R.a,{flex:"1"},jt.updated_at,C.a.createElement("br",null),(Nn=jt.user)===null||Nn===void 0?void 0:Nn.name),C.a.createElement(R.a,{className:"c-grey-c"},jt.shixun_chanllge_position&&C.a.createElement("span",null,"\u7B2C",jt.shixun_chanllge_position,"\u5173"),me.question_type!==4&&C.a.createElement("span",null,"\u539F\u59CB\u5F97\u5206",jt.origin_score,"\u5206 \uFF0C")," \u4FEE\u6B63\u4E3A",jt.score,"\u5206")),jt.comment&&C.a.createElement(U.a,{align:"middle",gutter:[0,10]},C.a.createElement(R.a,{flex:"50px"}),C.a.createElement(R.a,{flex:"1"},C.a.createElement(Ee,{autoSize:!0,value:jt.comment,disabled:!0}))))})),C.a.createElement("div",{className:_e.a.itemType},C.a.createElement(U.a,null,C.a.createElement(R.a,{flex:"1"}),C.a.createElement(R.a,null,(me==null?void 0:me.question_type)<3&&(me==null?void 0:me.standard_answer_show)&&C.a.createElement("span",{className:"font16 ml20"},"\u6B63\u786E\u7B54\u6848\uFF1A",me==null?void 0:me.standard_answer_show),C.a.createElement("span",{className:"font16 ml20"},(me==null?void 0:me.user_score)!==null&&(me==null?void 0:me.user_score)>=0&&C.a.createElement("span",null,C.a.createElement("span",{className:bt[Number(me==null?void 0:me.answer_status)]||"c-orange-ff9"},me==null?void 0:me.user_score)," \u5206")),(me==null?void 0:me.question_type)==5&&!((Nt=ve.exercise)!==null&&Nt!==void 0&&Nt.commit_status)&&C.a.createElement(M.a,{type:"primary",className:"font16 ml20",onClick:function(){return Xi(me)}},"\u8FDB\u5165\u7B54\u9898"),(me==null?void 0:me.question_type)==6&&!((Lt=ve.exercise)!==null&&Lt!==void 0&&Lt.commit_status)&&C.a.createElement(M.a,{type:"primary",className:"font16 ml20",onClick:function(){return li(me)}},"\u8FDB\u5165\u7B54\u9898")))))},_a=function(me,ct){return C.a.createElement(I.Fragment,null,me.question_type===0&&Kr("\u5355\u9009\u9898",0,ct),me.question_type===1&&Kr("\u591A\u9009\u9898",1,ct),me.question_type===2&&Kr("\u5224\u65AD\u9898",2,ct),me.question_type===3&&Kr("\u586B\u7A7A\u9898",3,ct),me.question_type===4&&Kr("\u7B80\u7B54\u9898",4,ct),me.question_type===5&&Kr("\u5B9E\u8BAD\u9898",5,ct),me.question_type===6&&Kr("\u7F16\u7A0B\u9898",6,ct),me.question_type===7&&Kr("\u7EC4\u5408\u9898",7,ct))},Pa=function(me){var ct=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],rt=["","\u5341","\u767E","\u5343","\u4E07"];me=parseInt(me);var _t=function(Lt){for(var Zt=Lt.toString().split("").reverse(),jt="",rn=0;rn0&&Zt[rn]==0&&Zt[rn-1]==0?"":ct[Zt[rn]]+(Zt[rn]==0?rt[0]:rt[rn]))+jt;return jt},mt=Math.floor(me/1e4),It=me%1e4;return It.toString().length<4&&(It="0"+It),mt?_t(mt)+"\u4E07"+_t(It):_t(me)},ea=function(){var me,ct,rt,_t,mt,It,Nt,Lt,Zt,jt,rn,Mn,Nn;return C.a.createElement(I.Fragment,{key:Ht},C.a.createElement("div",{className:"pt20"},C.a.createElement("span",{className:"font16 c-light-primary"},Pa(Ht+1),"\u3001",ve==null||((me=ve.exercise_question_types)===null||me===void 0||((ct=me[Ht])===null||ct===void 0))?void 0:ct.name),C.a.createElement("span",{className:"c-grey-999"},"\uFF08\u5171",ve==null||((rt=ve.exercise_question_types)===null||rt===void 0||((_t=rt[Ht])===null||_t===void 0))?void 0:_t.count,"\u9898\uFF1B",(ve==null||((mt=ve.exercise_question_types)===null||mt===void 0||((It=mt[Ht])===null||It===void 0))?void 0:It.question_type)===7?"\u5305\u542B".concat(ve==null||((Nt=ve.exercise_question_types)===null||Nt===void 0||((Lt=Nt[Ht])===null||Lt===void 0))?void 0:Lt.sub_questions_count,"\u5C0F\u9898"):""," \u5171",ve==null||((Zt=ve.exercise_question_types)===null||Zt===void 0||((jt=Zt[Ht])===null||jt===void 0))?void 0:jt.score,"\u5206\uFF09")),C.a.createElement(I.Fragment,{key:Kt},$i(ve==null||((rn=ve.exercise_question_types)===null||rn===void 0||((Mn=rn[Ht])===null||Mn===void 0||((Nn=Mn.items)===null||Nn===void 0)))?void 0:Nn[Kt],Kt)))},ka=function(){var me;if(!ai&&(ve==null||((me=ve.exercise)===null||me===void 0)?void 0:me.user_exercise_status)===0&&Object(he.s)()){var ct,rt,_t,mt;if(!((ct=ve.exercise_question_types)!==null&&ct!==void 0&&(rt=ct[Ht])!==null&&rt!==void 0&&(_t=rt.items)!==null&&_t!==void 0&&(mt=_t[Kt])!==null&&mt!==void 0&&mt.repeat_answer)){Rr(!0),wi(1);return}}ve.exercise_question_types[Ht].items[Kt].israp=!1,Gt(Object(v.a)({},ve)),Kt===0?(Ht-=1,Kt=ve.exercise_question_types[Ht].items.length-1):Kt-=1,_n(Ht),pn(Kt)},Na=function(){var me;if(!ai&&(ve==null||((me=ve.exercise)===null||me===void 0)?void 0:me.user_exercise_status)===0&&Object(he.s)()){var ct,rt,_t,mt;if(!((ct=ve.exercise_question_types)!==null&&ct!==void 0&&(rt=ct[Ht])!==null&&rt!==void 0&&(_t=rt.items)!==null&&_t!==void 0&&(mt=_t[Kt])!==null&&mt!==void 0&&mt.repeat_answer)){Rr(!0),wi(2);return}}ve.exercise_question_types[Ht].items[Kt].israp=!1,Gt(Object(v.a)({},ve)),ve.exercise_question_types[Ht].items.length-1===Kt?(Ht=Ht+1,Kt=0):Kt=Kt+1,_n(Ht),pn(Kt)},Ba=function(me){var ct,rt=me||Hn.current;if(!ai&&(ve==null||((ct=ve.exercise)===null||ct===void 0)?void 0:ct.user_exercise_status)===0&&Object(he.s)()){var _t,mt,It,Nt;if(!((_t=ve.exercise_question_types)!==null&&_t!==void 0&&(mt=_t[Ht])!==null&&mt!==void 0&&(It=mt.items)!==null&&It!==void 0&&(Nt=It[Kt])!==null&&Nt!==void 0&&Nt.repeat_answer)){Rr(!0),wi(3),Gr(rt);return}}_n(rt==null?void 0:rt.oneindex),pn(rt==null?void 0:rt.twoindex)},Vr=function(){var me;switch(xn.current){case"prev":ka();break;case"next":Na();break;case"appoint":Ba();break;case"submit":Qi(!1);break;default:}((me=document.activeElement)===null||me===void 0?void 0:me.localName)==="textarea"?xn.current=!0:xn.current=!1,Hn.current={}};return C.a.createElement(K.a,{size:"large",spinning:Mr},hn&&C.a.createElement(Ae.a,{iframe:gn}),C.a.createElement("iframe",{style:{display:Zr},id:"iframeShixuns",className:_e.a.iframe,src:rr,ref:gn,frameBorder:"0"}),C.a.createElement("section",{className:"edu-container"},C.a.createElement("section",{className:"animated fadeIn"},C.a.createElement("aside",{className:"mt10"},L.showHeaderFooter&&ot.coursesId!=="coursesId"&&C.a.createElement(z.a,{separator:">"},C.a.createElement(z.a.Item,null,C.a.createElement(Y.a,{to:"/classrooms/".concat(ot.coursesId,"/exercise")},(se=J.userInfo)===null||se===void 0||((fe=se.course)===null||fe===void 0)?void 0:fe.course_name)),C.a.createElement(z.a.Item,null,C.a.createElement(Y.a,{to:"/classrooms/".concat(ot.coursesId,"/exercise")},"\u8BD5\u5377")),C.a.createElement(z.a.Item,null,C.a.createElement(Y.a,{to:"/classrooms/".concat(ot.coursesId,"/exercise/").concat(ot.categoryId,"/detail")},"\u8BD5\u5377\u8BE6\u60C5")),C.a.createElement(z.a.Item,null,($e=J.userInfo)===null||$e===void 0?void 0:$e.real_name)),L.showHeaderFooter&&ot.coursesId==="coursesId"&&C.a.createElement(z.a,{separator:">"},C.a.createElement(z.a.Item,null,C.a.createElement(Y.a,{to:"/paperlibrary"},"\u8BD5\u5377\u5E93")),C.a.createElement(z.a.Item,null,(ke=J.userInfo)===null||ke===void 0?void 0:ke.real_name))),C.a.createElement("aside",{className:[_e.a.title,"mt10"].join(" ")},C.a.createElement(U.a,{style:{width:"100%"},align:"middle"},C.a.createElement(R.a,{flex:"1"},C.a.createElement("div",{className:_e.a.title},(L==null?void 0:L.showHeaderFooter)&&C.a.createElement(Y.a,{to:ot.coursesId==="coursesId"?"/paperlibrary":"/classrooms/".concat(ot.coursesId,"/exercise/").concat(ot.categoryId,"/detail")},C.a.createElement(le.a,{className:"font16 c-black"})),C.a.createElement("strong",{className:"font24 ml5"},ve==null||((it=ve.exercise)===null||it===void 0)?void 0:it.exercise_name),(ve==null||((at=ve.exercise)===null||at===void 0)?void 0:at.is_random)&&C.a.createElement("span",{className:_e.a.randomFlag},"\u968F\u673A"),C.a.createElement(je.k,{status:[je.c[99]]}))),C.a.createElement(R.a,{style:{display:"flex"}},(ve==null||((Ne=ve.user_score)===null||Ne===void 0)?void 0:Ne.length)&&C.a.createElement("div",null,"\u6A21\u62DF\u8003\u8BD5\u603B\u5F97\u5206\uFF1A",C.a.createElement("span",{className:"c-red"},ve==null?void 0:ve.user_score)," \u5206"),!!(ve!=null&&(Ve=ve.exercise)!==null&&Ve!==void 0&&Ve.time)&&!(ve!=null&&(tt=ve.exercise)!==null&&tt!==void 0&&tt.commit_status)&&C.a.createElement("aside",{className:"".concat(_e.a.countDown," ").concat(Xt)},"\u5269\u4F59\u65F6\u95F4:",C.a.createElement(ce,{value:bn,onFinish:ro})),!(ve!=null&&(ft=ve.exercise)!==null&&ft!==void 0&&ft.commit_status)&&C.a.createElement(M.a,{className:_e.a.submitButton,style:{marginLeft:20},type:"primary",onClick:function(){if(xn.current){xn.current="submit";return}Qi(!1)}},"\u4EA4\u5377"))))),En.status===0&&C.a.createElement(U.a,{className:"mt10"},C.a.createElement(R.a,{flex:Tr?"316px":"16px"},C.a.createElement("section",{style:{position:"sticky",top:0,zIndex:1}},Ur&&C.a.createElement(pe.a,{number:(ve==null||((Ct=ve.exercise)===null||Ct===void 0)?void 0:Ct.photo_count)-(ve==null||((zt=ve.exercise)===null||zt===void 0)?void 0:zt.take_photo),time:(qt=ve.exercise)===null||qt===void 0?void 0:qt.left_time,update:dr,supportCamera:function(me){me===2?(dr(),kn(Wn==null?void 0:Wn.screen_open)):me===1&&setTimeout(function(){return De.history.push("/")},3e3)}}),C.a.createElement("div",{className:"relative",style:{minHeight:236}},Tr&&C.a.createElement("aside",{className:"bg-white p16"},C.a.createElement(U.a,null,C.a.createElement(R.a,{span:8},C.a.createElement("span",{className:"font16 blod"},"\u7B54\u9898\u5361")),C.a.createElement(R.a,{span:16},C.a.createElement("div",{className:"tr",style:{display:"flex",alignItems:"center",justifyContent:"end"}},C.a.createElement("span",{className:_e.a.answerYes}),"\u5DF2\u7B54",C.a.createElement("span",{style:{width:13,height:13,display:"flex",flexDirection:"column-reverse"},className:"".concat(_e.a.answerNo," ml10")},C.a.createElement("div",{style:{height:"10%",background:"#0152d9"}})),"\u90E8\u5206\u7B54\u9898",C.a.createElement("span",{className:"".concat(_e.a.answerNo," ml10")}),"\u672A\u7B54"))),C.a.createElement("aside",{className:_e.a.answerInfo},C.a.createElement(U.a,null,C.a.createElement(C.a.Fragment,null,C.a.createElement(R.a,{span:12},"\u7B54\u9898\u8FDB\u5EA6"),C.a.createElement(R.a,{span:12,className:"tr c-blue"},ve==null||((Qt=ve.question_status)===null||Qt===void 0||((St=Qt.filter(function(Ut){return(Ut==null?void 0:Ut.ques_status)===1}))===null||St===void 0))?void 0:St.length," / ",ve==null||((ln=ve.exercise_types)===null||ln===void 0)?void 0:ln.q_counts),C.a.createElement(R.a,{span:24},C.a.createElement(n.a,{trailColor:"#c3ced2",percent:(ve==null||((Bt=ve.question_status)===null||Bt===void 0||((Yt=Bt.filter(function(Ut){return(Ut==null?void 0:Ut.ques_status)===1}))===null||Yt===void 0))?void 0:Yt.length)/(ve==null||((Mt=ve.exercise_types)===null||Mt===void 0)?void 0:Mt.q_counts)*100,showInfo:!1}))),C.a.createElement(R.a,null,C.a.createElement("span",{className:"c-grey-333"},"\u5171 ",C.a.createElement("span",{className:"c-blue-4ca"},(ve==null||((tn=ve.exercise_types)===null||tn===void 0)?void 0:tn.q_counts)||(ve==null||((mn=ve.exercise_scores)===null||mn===void 0||((An=mn.exercise_types)===null||An===void 0))?void 0:An.q_counts))," \u9898\uFF1A"),C.a.createElement("span",{className:"c-grey-333"},"\u6EE1\u5206 ",C.a.createElement("span",{className:"c-blue-4ca"},(ve==null||((lt=ve.exercise_types)===null||lt===void 0)?void 0:lt.q_scores)||(ve==null||((Rt=ve.exercise_scores)===null||Rt===void 0||((Jt=Rt.exercise_types)===null||Jt===void 0))?void 0:Jt.q_scores))," \u5206")))),C.a.createElement(U.a,null,C.a.createElement(R.a,{flex:"1"},C.a.createElement("aside",{className:_e.a.cardList},ve==null||((nn=ve.exercise_question_types)===null||nn===void 0)?void 0:nn.map(function(Ut,me){return C.a.createElement(I.Fragment,{key:Ut.question_type},_a(Ut,me))}))))),C.a.createElement("div",{className:_e.a.fold,onClick:function(){return Yr(!Tr)}},Tr&&C.a.createElement("span",{className:"icon-zuojiantou iconfont c-grey-c"}),!Tr&&C.a.createElement("span",{className:"icon-youjiantou iconfont c-grey-c"}))))),C.a.createElement(R.a,{flex:"1"},C.a.createElement("section",{className:[_e.a.bg,"pl30","pr30","pb30","mb50","ml20"].join(" ")},C.a.createElement("div",{style:{maxHeight:600,overflow:"hidden auto"}},ea()),C.a.createElement("div",{style:{marginTop:60,textAlign:"center",paddingRight:30}},(Ht!=0||Kt!=0)&&C.a.createElement(M.a,{className:"".concat(_e.a.submitButton," mr10"),type:"default",onClick:function(){if(xn.current){xn.current="prev";return}ka()}},"\u4E0A\u4E00\u9898"),!(Ht===(ve==null||((un=ve.exercise_question_types)===null||un===void 0)?void 0:un.length)-1&&Kt===(ve==null||((cn=ve.exercise_question_types)===null||cn===void 0||((G=cn[Ht])===null||G===void 0||((b=G.items)===null||b===void 0)))?void 0:b.length)-1)&&C.a.createElement(M.a,{className:_e.a.submitButton,type:"primary",onClick:function(){if(xn.current){xn.current="next";return}Na()}},"\u4E0B\u4E00\u9898")))),C.a.createElement(E.a,{title:"\u6CE8\u610F",visible:qr,onCancel:function(){return Rr(!1)},footer:!1},C.a.createElement("div",null,C.a.createElement("p",{style:{marginBottom:0}},"\u79BB\u5F00\u8BE5\u9898\u540E\u4E0D\u5141\u8BB8\u518D\u6B21\u4FEE\u6539\u7B54\u6848\uFF0C\u786E\u8BA4\u79BB\u5F00\u5417\uFF1F"),C.a.createElement("div",{style:{marginTop:60,display:"flex",justifyContent:"space-between"}},C.a.createElement(y.a,{checked:ai,onChange:function(me){Gi(me.target.checked)}},"\u4E0B\u6B21\u4E0D\u518D\u663E\u793A"),C.a.createElement("div",null,C.a.createElement(M.a,{onClick:function(){ve.exercise_question_types[Ht].items[Kt].israp?(ve.exercise_question_types[Ht].items[Kt].israp=!0,Gt(Object(v.a)({},ve))):ve.exercise_question_types[Ht].items[Kt].israp===""&&(ve.exercise_question_types[Ht].items[Kt].israp=!0,Gt(Object(v.a)({},ve)))}},"\u6211\u518D\u60F3\u60F3"),C.a.createElement(M.a,{onClick:function(){ve.exercise_question_types[Ht].items[Kt].israp=!1,Gt(Object(v.a)({},ve)),Sa===1?(Kt===0?(Ht-=1,Kt=ve.exercise_question_types[Ht].items.length-1):Kt-=1,console.log(ve.exercise_question_types[Ht].items[Kt],"-----"),_n(Ht),pn(Kt)):Sa===2?(ve.exercise_question_types[Ht].items.length-1===Kt?(Ht=Ht+1,Kt=0):Kt=Kt+1,_n(Ht),pn(Kt)):(_n(oi.oneindex),pn(oi.twoindex)),Rr(!1)},type:"primary",style:{marginLeft:30}},"\u786E\u8BA4")))))),En.status!==0&&C.a.createElement(re,{data:En})))},gt=de.default=Object(H.a)(function(qe){var Xe=qe.loading,Pe=qe.user,se=qe.globalSetting;return{globalSetting:se,user:Pe,loading:Xe.effects}})(xt)},cRFk:function(et,de,N){et.exports=N.p+"static/RepositoryNoneData.828085a8.png"},csWT:function(et,de,N){et.exports=N.p+"static/choose.4ad1045f.svg"},dejd:function(et,de,N){},djh8:function(et,de,N){et.exports=N.p+"static/qrCode.42927872.png"},dmUQ:function(et,de,N){"use strict";var ee=N("Ff2n"),K=N("rePB"),P=N("1OyB"),z=N("vuIU"),B=N("Ji7U"),M=N("md7G"),j=N("foSv"),U=N("q1tI"),_=N.n(U),R=N("TSYQ"),c=N.n(R),g=N("4IlW");function w(s,l){var D=Object.keys(s);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(s);l&&(T=T.filter(function(S){return Object.getOwnPropertyDescriptor(s,S).enumerable})),D.push.apply(D,T)}return D}function y(s){for(var l=1;l1?pe-1:0),Ge=1;Ge1?H-1:0),q=1;q=0)return parseInt(Y.slice(Y.indexOf("e-")+2),10);var H=0;return Y.indexOf(".")>=0&&(H=Y.length-Y.indexOf(".")-1),H},S.getInputDisplayValue=function(W){var Y=W||S.state,H=Y.focused,F=Y.inputValue,q=Y.value,le;H?le=F:le=S.toPrecisionAsStep(q),le==null&&(le="");var pe=S.formatWrapper(le);return v(S.props.decimalSeparator)&&(pe=pe.toString().replace(".",S.props.decimalSeparator)),pe},S.recordCursorPosition=function(){try{S.cursorStart=S.input.selectionStart,S.cursorEnd=S.input.selectionEnd,S.currentValue=S.input.value,S.cursorBefore=S.input.value.substring(0,S.cursorStart),S.cursorAfter=S.input.value.substring(S.cursorEnd)}catch(W){}},S.restoreByAfter=function(W){if(W===void 0)return!1;var Y=S.input.value,H=Y.lastIndexOf(W);if(H===-1)return!1;var F=S.cursorBefore.length;return S.lastKeyCode===g.a.DELETE&&S.cursorBefore.charAt(F-1)===W[0]?(S.fixCaret(F,F),!0):H+W.length===Y.length?(S.fixCaret(H,H),!0):!1},S.partRestoreByAfter=function(W){return W===void 0?!1:Array.prototype.some.call(W,function(Y,H){var F=W.substring(H);return S.restoreByAfter(F)})},S.isNotCompleteNumber=function(W){return isNaN(W)||W===""||W===null||W&&W.toString().indexOf(".")===W.toString().length-1},S.stop=function(){S.autoStepTimer&&clearTimeout(S.autoStepTimer)},S.down=function(W,Y,H){S.pressingUpOrDown=!0,S.step("down",W,Y,H)},S.up=function(W,Y,H){S.pressingUpOrDown=!0,S.step("up",W,Y,H)},S.saveInput=function(W){S.input=W};var I=T.value;I===void 0&&(I=T.defaultValue),S.state={focused:T.autoFocus};var C=S.getValidValue(S.toNumber(I));return S.state=y(y({},S.state),{},{inputValue:S.toPrecisionAsStep(C),value:C}),S}return Object(z.a)(D,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(S){var I=this.props,C=I.value,W=I.onChange,Y=I.max,H=I.min,F=this.state.focused;if(S){if(!O(S.value,C)||!O(S.max,Y)||!O(S.min,H)){var q=F?C:this.getValidValue(C),le;this.pressingUpOrDown?le=q:this.inputting?le=this.rawInput:le=this.toPrecisionAsStep(q),this.setState({value:q,inputValue:le})}var pe="value"in this.props?C:this.state.value;"max"in this.props&&S.max!==Y&&typeof pe=="number"&&pe>Y&&W&&W(Y),"min"in this.props&&S.min!==H&&typeof pe=="number"&&pe1&&arguments[1]!==void 0?arguments[1]:this.props.min,C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,W=parseFloat(S);return isNaN(W)?S:(WC&&(W=C),W)}},{key:"setValue",value:function(S,I){var C=this.props.precision,W=this.isNotCompleteNumber(parseFloat(S))?null:parseFloat(S),Y=this.state.value,H=Y===void 0?null:Y,F=this.state.inputValue,q=F===void 0?null:F,le=typeof W=="number"?W.toFixed(C):"".concat(W),pe=W!==H||le!=="".concat(q);return"value"in this.props?(q=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:q},I)):this.setState({value:W,inputValue:this.toPrecisionAsStep(S)},I),pe&&this.props.onChange(W),W}},{key:"getMaxPrecision",value:function(S){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,C=this.props,W=C.precision,Y=C.step;if(v(W))return W;var H=this.getPrecision(I),F=this.getPrecision(Y),q=this.getPrecision(S);return S?Math.max(q,H+F):H+F}},{key:"getPrecisionFactor",value:function(S){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,C=this.getMaxPrecision(S,I);return Math.pow(10,C)}},{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(S){return this.props.formatter?this.props.formatter(S):S}},{key:"toPrecisionAsStep",value:function(S){if(this.isNotCompleteNumber(S)||S==="")return S;var I=Math.abs(this.getMaxPrecision(S));return isNaN(I)?S.toString():Number(S).toFixed(I)}},{key:"toNumber",value:function(S){var I=this.props.precision,C=this.state.focused,W=S&&S.length>16&&C;return this.isNotCompleteNumber(S)||W?S:v(I)?Math.round(S*Math.pow(10,I))/Math.pow(10,I):Number(S)}},{key:"upStep",value:function(S,I){var C=this.props.step,W=this.getPrecisionFactor(S,I),Y=Math.abs(this.getMaxPrecision(S,I)),H=((W*S+W*C*I)/W).toFixed(Y);return this.toNumber(H)}},{key:"downStep",value:function(S,I){var C=this.props.step,W=this.getPrecisionFactor(S,I),Y=Math.abs(this.getMaxPrecision(S,I)),H=((W*S-W*C*I)/W).toFixed(Y);return this.toNumber(H)}},{key:"step",value:function(S,I){var C=this,W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Y=arguments.length>3?arguments[3]:void 0;this.stop(),I&&(I.persist(),I.preventDefault());var H=this.props;if(H.disabled)return;var F=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(F))return;var q=this["".concat(S,"Step")](F,W),le=q>H.max||qH.max?q=H.max:q=Ae),nt=(At||At===0)&&(isNaN(At)||Number(At)<=Ge),Te=He||W||Y,ge=nt||W||Y,be=c()("".concat(C,"-handler"),"".concat(C,"-handler-up"),Object(K.a)({},"".concat(C,"-handler-up-disabled"),Te)),re=c()("".concat(C,"-handler"),"".concat(C,"-handler-down"),Object(K.a)({},"".concat(C,"-handler-down-disabled"),ge)),ie=H?{onTouchStart:Te?a:this.up,onTouchEnd:this.stop}:{onMouseDown:Te?a:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},ce=H?{onTouchStart:ge?a:this.down,onTouchEnd:this.stop}:{onMouseDown:ge?a:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return _.a.createElement("div",{className:Oe,style:Fe,title:Ue,onMouseEnter:_e,onMouseLeave:je,onMouseOver:xe,onMouseOut:he,onFocus:function(){return null},onBlur:function(){return null}},_.a.createElement("div",{className:"".concat(C,"-handler-wrap")},_.a.createElement("span",Object.assign({unselectable:"on"},ie,{role:"button","aria-label":"Increase Value","aria-disabled":Te,className:be}),q||_.a.createElement("span",{unselectable:"on",className:"".concat(C,"-handler-up-inner"),onClick:n})),_.a.createElement("span",Object.assign({unselectable:"on"},ce,{role:"button","aria-label":"Decrease Value","aria-disabled":ge,className:re}),le||_.a.createElement("span",{unselectable:"on",className:"".concat(C,"-handler-down-inner"),onClick:n}))),_.a.createElement("div",{className:"".concat(C,"-input-wrap")},_.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Ge,"aria-valuemax":Ae,"aria-valuenow":At,required:te,type:Le,placeholder:ae,onPaste:yt,onClick:ye,onMouseUp:this.onMouseUp,className:"".concat(C,"-input"),tabIndex:ue,autoComplete:F,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:Je?this.onKeyDown:a,onKeyUp:Je?this.onKeyUp:a,autoFocus:Qe,maxLength:Ke,readOnly:Y,disabled:W,max:Ae,min:Ge,step:We,name:Ze,title:Ue,id:oe,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(st),pattern:Me,inputMode:Se,onInput:vt},we))))}}]),D}(_.a.Component);A.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:E,min:-E,step:1,style:{},onChange:a,onKeyDown:a,onPressEnter:a,onFocus:a,onBlur:a,parser:o,required:!1,autoComplete:"off"};var p=A,h=de.a=p},fjLI:function(et,de,N){"use strict";N.d(de,"e",function(){return R}),N.d(de,"a",function(){return c}),N.d(de,"c",function(){return g}),N.d(de,"d",function(){return y}),N.d(de,"b",function(){return f});var ee=N("8HAY"),K=N("Cg/j"),P=N("T8No"),z=N("nnTU"),B=N("MI8n"),M=function(){var m=function(a,n){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,u){o.__proto__=u}||function(o,u){for(var x in u)u.hasOwnProperty(x)&&(o[x]=u[x])},m(a,n)};return function(a,n){m(a,n);function o(){this.constructor=a}a.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),j=function(m,a,n,o){var u=arguments.length,x=u<3?a:o===null?o=Object.getOwnPropertyDescriptor(a,n):o,E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(m,a,n,o);else for(var v=m.length-1;v>=0;v--)(E=m[v])&&(x=(u<3?E(x):u>3?E(a,n,x):E(a,n))||x);return u>3&&x&&Object.defineProperty(a,n,x),x},U=function(m,a){return function(n,o){a(n,o,m)}},_=function(){for(var m=0,a=0,n=arguments.length;a=0&&(u.splice(x,1),o._onDidChangeMenu.fire(a))}}},m.prototype.getMenuItems=function(a){var n=(this._menuItems.get(a)||[]).slice(0);return a===0&&this._appendImplicitItems(n),n},m.prototype._appendImplicitItems=function(a){for(var n=new Set,o=a.filter(function(A){return R(A)}),u=0,x=o;u0&&arguments[0]!==void 0?arguments[0]:[],l=s;if(Array.isArray(s)){for(var D=0;D0||zt.target.offsetWidth>0)&&Je.current.instance.layout()}}catch(qt){ft.e(qt)}finally{ft.f()}}),Ve.observe(we.current)),Ve}function Be(){B.b.warn({content:decodeURIComponent(m),key:"monaco-editor-tip"})}var Ie=function(){var tt=Je.current.instance;if(I!=null&&tt&&ie){var ft=tt.getModel();ft&&I!==ft.getValue()&&(E=!0,ft.setValue(I),tt.layout(),E=!1)}};Object(c.useEffect)(function(){try{var Ve,tt=Je.current.instance;He.current&&clearTimeout(He.current),He.current=setTimeout(function(){Ie()},500),tt==null||((Ve=tt.updateOptions)===null||Ve===void 0)||Ve.call(tt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(I.split(/\r\n|\r|\n/g).length))+3,5)})}catch(ft){debugger}},[I,ie,Je.current]),Object(c.useEffect)(function(){try{if(yt&&Je.current&&Je.current.instance){var Ve=Je.current.instance;Ve.changeViewZones(function(ft){var Ct=document.createElement("div");Ct.style.padding="10px 20px",Ct.style.width="calc(100% - 20px)",Ct.className="my-error-line-wrp",Ct.innerHTML=dt,ft.addZone({afterLineNumber:yt||11,heightInLines:3,domNode:Ct})});var tt={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}};Ve.addOverlayWidget(tt),Ve.revealPositionInCenter({lineNumber:20,column:1})}}catch(ft){debugger}},[yt,Je.current,ie]),Object(c.useEffect)(function(){var Ve;if((Ve=Je.current)!==null&&Ve!==void 0&&Ve.instance&&ie&&wt){var tt=Je.current.instance,ft=tt.getModel();if(!ft)return;var Ct=function(){var Rt=[],Jt=[],nn=ft.getAllDecorations(),un=Object(M.a)(nn),cn;try{for(un.s();!(cn=un.n()).done;){var G=cn.value;if(G.options.className==="highlighted-line"){var b;Rt.push(G==null||((b=G.range)===null||b===void 0)?void 0:b.startLineNumber),Jt.push(G==null?void 0:G.id)}}}catch(V){un.e(V)}finally{un.f()}ft.deltaDecorations(Jt,[]);var L=ft.getLineCount();!!pt&&pt<=L&&(tt.deltaDecorations([],[{range:new A.Range(pt,1,pt,ft.getLineMaxColumn(pt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),tt.revealLineInCenter(pt))};Ct();var zt=function(){var Rt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Jt=[],nn=[],un=ft.getAllDecorations(),cn=Object(M.a)(un),G;try{for(cn.s();!(G=cn.n()).done;){var b=G.value;if(b.options.linesDecorationsClassName==="breakpoints"){var L;Jt.push(b==null||((L=b.range)===null||L===void 0)?void 0:L.startLineNumber),nn.push(b==null?void 0:b.id)}}}catch(V){cn.e(V)}finally{cn.f()}if(Rt)return{lines:Jt,ids:nn};Me(Jt)},qt=function(){var lt=Object(k.a)(R.a.mark(function Rt(Jt){var nn;return R.a.wrap(function(cn){for(;;)switch(cn.prev=cn.next){case 0:return nn={range:new A.Range(Jt,1,Jt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}},cn.next=3,ft.deltaDecorations([],[nn]);case 3:zt();case 4:case"end":return cn.stop()}},Rt)}));return function(Jt){return lt.apply(this,arguments)}}(),Qt=function(){var lt=Object(k.a)(R.a.mark(function Rt(Jt){var nn,un,cn,G,b;return R.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:nn=[],un=tt.getLineDecorations(Jt),cn=Object(M.a)(un);try{for(cn.s();!(G=cn.n()).done;)b=G.value,b.options.linesDecorationsClassName==="breakpoints"&&nn.push(b.id)}catch(J){cn.e(J)}finally{cn.f()}return V.next=6,ft.deltaDecorations(nn,[]);case 6:zt();case 7:case"end":return V.stop()}},Rt)}));return function(Jt){return lt.apply(this,arguments)}}(),St=function(Rt){var Jt=tt.getLineDecorations(Rt),nn=Object(M.a)(Jt),un;try{for(nn.s();!(un=nn.n()).done;){var cn=un.value;if(cn.options.linesDecorationsClassName==="breakpoints")return!0}}catch(G){nn.e(G)}finally{nn.f()}return!1};if(!Object(n.isEqual)(Ke,zt(!0).lines)){ft.deltaDecorations(zt(!0).ids,[]);var ln=Ke.map(function(lt){return{range:new A.Range(lt,1,lt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}}});ft.deltaDecorations([],ln)}var Bt=tt.onDidChangeModelContent(function(lt){var Rt=tt.getPosition();if(Rt){var Jt=Rt.lineNumber;ft.getLineContent(Jt).trim()===""?Qt(Jt):St(Jt)&&(Qt(Jt),qt(Jt))}}),Yt=tt.onMouseDown(function(lt){var Rt,Jt,nn;if(lt.target.detail&&(Rt=lt.target)!==null&&Rt!==void 0&&(Jt=Rt.element)!==null&&Jt!==void 0&&(nn=Jt.className)!==null&&nn!==void 0&&nn.includes("line-numbers")){var un=lt.target.position.lineNumber;if(ft.getLineContent(un).trim()==="")return;St(un)?Qt(un):qt(un)}}),Mt=function(Rt){var Jt={range:new A.Range(Rt,1,Rt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};nt.current=tt.deltaDecorations(nt.current,[Jt])},tn=function(){nt.current=tt.deltaDecorations(nt.current,[])},mn=tt.onMouseMove(function(lt){var Rt,Jt,nn;if(tn(),lt.target.detail&&(Rt=lt.target)!==null&&Rt!==void 0&&(Jt=Rt.element)!==null&&Jt!==void 0&&(nn=Jt.className)!==null&&nn!==void 0&&nn.includes("line-numbers")){var un=lt.target.position.lineNumber;if(ft.getLineContent(un).trim()==="")return;Mt(un)}}),An=tt.onMouseLeave(function(){tn()});return function(){Bt.dispose(),Yt.dispose(),mn.dispose(),An.dispose()}}},[Je.current,ie,Ke,pt,wt]);function ut(){var Ve=Je.current.instance;if(Ve){var tt=Ve.getSelection(),ft=Je.current.pastePos||{},Ct=new A.Range(ft.startLineNumber||tt.endLineNumber,ft.startColumn||tt.endColumn,ft.endLineNumber||tt.endLineNumber,ft.endColumn||tt.endColumn);setTimeout(function(){Ve.executeEdits("",[{range:Ct,text:""}])},300)}}function bt(Ve){(window.navigator.platform.match("Mac")?Ve.metaKey:Ve.ctrlKey)&&Ve.keyCode==83&&(Ve.preventDefault(),Ue())}var Tt=function(){if(je&&Je.current.instance){var tt=Je.current.instance.getContentHeight();at(tt0||ue.target.offsetWidth>0)&&je.layout()}}catch(Le){te.e(Le)}finally{te.f()}}),xe.observe(F.current)),xe}Object(c.useEffect)(function(){return F.current&&N.e(27).then(N.t.bind(null,"M/lh",7)).then(function(je){A=je;var xe=A.editor.createDiffEditor(F.current,Object(ee.a)(Object(ee.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},H),{},{wordWrap:!0}));Ae(xe);var he=Ge(xe);return function(){xe.dispose();var te=xe.getModel();te&&te.dispose(),he.unobserve(F.current)}}),function(){window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}},[]),Object(c.useEffect)(function(){pe&&pe.setModel({original:A.editor.createModel(I,W),modified:A.editor.createModel(C,W)})},[I,C,W,pe]);var Fe=u(D),Ue=u(S),_e={width:Fe,height:Ue};return g.a.createElement("div",{className:"my-diff-editor",ref:F,style:_e})}},ZpRC:function(et,de,N){"use strict";function ee(c){return typeof c=="object"&&c!=null&&c.nodeType===1}function K(c,g){return(!g||c!=="hidden")&&c!=="visible"&&c!=="clip"}function k(c,g){if(c.clientHeightg||m>c&&a=g&&n>=w?m-c-y:a>g&&nw?a-g+f:0}var B=function(c,g){var w=window,y=g.scrollMode,f=g.block,m=g.inline,a=g.boundary,n=g.skipOverflowHiddenElements,o=typeof a=="function"?a:function(Me){return Me!==a};if(!ee(c))throw new TypeError("Invalid target");for(var u=document.scrollingElement||document.documentElement,x=[],E=c;ee(E)&&o(E);){if((E=E.parentElement)===u){x.push(E);break}E!=null&&E===document.body&&k(E)&&!k(document.documentElement)||E!=null&&k(E,n)&&x.push(E)}for(var v=w.visualViewport?w.visualViewport.width:innerWidth,O=w.visualViewport?w.visualViewport.height:innerHeight,A=window.scrollX||pageXOffset,p=window.scrollY||pageYOffset,h=c.getBoundingClientRect(),s=h.height,l=h.width,D=h.top,T=h.right,S=h.bottom,I=h.left,C=f==="start"||f==="nearest"?D:f==="end"?S:D+s/2,W=m==="center"?I+l/2:m==="end"?T:I,Y=[],H=0;H=0&&I>=0&&S<=O&&T<=v&&D>=Ae&&S<=Fe&&I>=Ue&&T<=Ge)return Y;var _e=getComputedStyle(F),je=parseInt(_e.borderLeftWidth,10),xe=parseInt(_e.borderTopWidth,10),he=parseInt(_e.borderRightWidth,10),te=parseInt(_e.borderBottomWidth,10),ye=0,ue=0,Le="offsetWidth"in F?F.offsetWidth-F.clientWidth-je-he:0,ae="offsetHeight"in F?F.offsetHeight-F.clientHeight-xe-te:0;if(u===F)ye=f==="start"?C:f==="end"?C-O:f==="nearest"?z(p,p+O,O,xe,te,p+C,p+C+s,s):C-O/2,ue=m==="start"?W:m==="center"?W-v/2:m==="end"?W-v:z(A,A+v,v,je,he,A+W,A+W+l,l),ye=Math.max(0,ye+p),ue=Math.max(0,ue+A);else{ye=f==="start"?C-Ae-xe:f==="end"?C-Fe+te+ae:f==="nearest"?z(Ae,Fe,le,xe,te+ae,C,C+s,s):C-(Ae+le/2)+ae/2,ue=m==="start"?W-Ue-je:m==="center"?W-(Ue+pe/2)+Le/2:m==="end"?W-Ge+he+Le:z(Ue,Ge,pe,je,he+Le,W,W+l,l);var oe=F.scrollLeft,Se=F.scrollTop;C+=Se-(ye=Math.max(0,Math.min(Se+ye,F.scrollHeight-le+ae))),W+=oe-(ue=Math.max(0,Math.min(oe+ue,F.scrollWidth-pe+Le)))}Y.push({el:F,top:ye,left:ue})}return Y};function M(c){return c===Object(c)&&Object.keys(c).length!==0}function j(c,g){g===void 0&&(g="auto");var w="scrollBehavior"in document.body.style;c.forEach(function(y){var f=y.el,m=y.top,a=y.left;f.scroll&&w?f.scroll({top:m,left:a,behavior:g}):(f.scrollTop=m,f.scrollLeft=a)})}function U(c){return c===!1?{block:"end",inline:"nearest"}:M(c)?c:{block:"start",inline:"nearest"}}function _(c,g){var w=!c.ownerDocument.documentElement.contains(c);if(M(g)&&typeof g.behavior=="function")return g.behavior(w?[]:B(c,g));if(w)return;var y=U(g);return j(B(c,y),y.behavior)}var R=de.a=_},Zss7:function(et,de,N){var ee;(function(K){var k=/^\s+/,z=/\s+$/,B=0,M=K.round,j=K.min,U=K.max,_=K.random;function R(te,ye){if(te=te||"",ye=ye||{},te instanceof R)return te;if(!(this instanceof R))return new R(te,ye);var ue=c(te);this._originalInput=te,this._r=ue.r,this._g=ue.g,this._b=ue.b,this._a=ue.a,this._roundA=M(100*this._a)/100,this._format=ye.format||ue.format,this._gradientType=ye.gradientType,this._r<1&&(this._r=M(this._r)),this._g<1&&(this._g=M(this._g)),this._b<1&&(this._b=M(this._b)),this._ok=ue.ok,this._tc_id=B++}R.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var te=this.toRgb();return(te.r*299+te.g*587+te.b*114)/1e3},getLuminance:function(){var te=this.toRgb(),ye,ue,Le,ae,oe,Se;return ye=te.r/255,ue=te.g/255,Le=te.b/255,ye<=.03928?ae=ye/12.92:ae=K.pow((ye+.055)/1.055,2.4),ue<=.03928?oe=ue/12.92:oe=K.pow((ue+.055)/1.055,2.4),Le<=.03928?Se=Le/12.92:Se=K.pow((Le+.055)/1.055,2.4),.2126*ae+.7152*oe+.0722*Se},setAlpha:function(te){return this._a=Y(te),this._roundA=M(100*this._a)/100,this},toHsv:function(){var te=f(this._r,this._g,this._b);return{h:te.h*360,s:te.s,v:te.v,a:this._a}},toHsvString:function(){var te=f(this._r,this._g,this._b),ye=M(te.h*360),ue=M(te.s*100),Le=M(te.v*100);return this._a==1?"hsv("+ye+", "+ue+"%, "+Le+"%)":"hsva("+ye+", "+ue+"%, "+Le+"%, "+this._roundA+")"},toHsl:function(){var te=w(this._r,this._g,this._b);return{h:te.h*360,s:te.s,l:te.l,a:this._a}},toHslString:function(){var te=w(this._r,this._g,this._b),ye=M(te.h*360),ue=M(te.s*100),Le=M(te.l*100);return this._a==1?"hsl("+ye+", "+ue+"%, "+Le+"%)":"hsla("+ye+", "+ue+"%, "+Le+"%, "+this._roundA+")"},toHex:function(te){return a(this._r,this._g,this._b,te)},toHexString:function(te){return"#"+this.toHex(te)},toHex8:function(te){return n(this._r,this._g,this._b,this._a,te)},toHex8String:function(te){return"#"+this.toHex8(te)},toRgb:function(){return{r:M(this._r),g:M(this._g),b:M(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+M(this._r)+", "+M(this._g)+", "+M(this._b)+")":"rgba("+M(this._r)+", "+M(this._g)+", "+M(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:M(H(this._r,255)*100)+"%",g:M(H(this._g,255)*100)+"%",b:M(H(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+M(H(this._r,255)*100)+"%, "+M(H(this._g,255)*100)+"%, "+M(H(this._b,255)*100)+"%)":"rgba("+M(H(this._r,255)*100)+"%, "+M(H(this._g,255)*100)+"%, "+M(H(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:C[a(this._r,this._g,this._b,!0)]||!1},toFilter:function(te){var ye="#"+o(this._r,this._g,this._b,this._a),ue=ye,Le=this._gradientType?"GradientType = 1, ":"";if(te){var ae=R(te);ue="#"+o(ae._r,ae._g,ae._b,ae._a)}return"progid:DXImageTransform.Microsoft.gradient("+Le+"startColorstr="+ye+",endColorstr="+ue+")"},toString:function(te){var ye=!!te;te=te||this._format;var ue=!1,Le=this._a<1&&this._a>=0,ae=!ye&&Le&&(te==="hex"||te==="hex6"||te==="hex3"||te==="hex4"||te==="hex8"||te==="name");return ae?te==="name"&&this._a===0?this.toName():this.toRgbString():(te==="rgb"&&(ue=this.toRgbString()),te==="prgb"&&(ue=this.toPercentageRgbString()),(te==="hex"||te==="hex6")&&(ue=this.toHexString()),te==="hex3"&&(ue=this.toHexString(!0)),te==="hex4"&&(ue=this.toHex8String(!0)),te==="hex8"&&(ue=this.toHex8String()),te==="name"&&(ue=this.toName()),te==="hsl"&&(ue=this.toHslString()),te==="hsv"&&(ue=this.toHsvString()),ue||this.toHexString())},clone:function(){return R(this.toString())},_applyModification:function(te,ye){var ue=te.apply(null,[this].concat([].slice.call(ye)));return this._r=ue._r,this._g=ue._g,this._b=ue._b,this.setAlpha(ue._a),this},lighten:function(){return this._applyModification(v,arguments)},brighten:function(){return this._applyModification(O,arguments)},darken:function(){return this._applyModification(A,arguments)},desaturate:function(){return this._applyModification(u,arguments)},saturate:function(){return this._applyModification(x,arguments)},greyscale:function(){return this._applyModification(E,arguments)},spin:function(){return this._applyModification(p,arguments)},_applyCombination:function(te,ye){return te.apply(null,[this].concat([].slice.call(ye)))},analogous:function(){return this._applyCombination(T,arguments)},complement:function(){return this._applyCombination(h,arguments)},monochromatic:function(){return this._applyCombination(S,arguments)},splitcomplement:function(){return this._applyCombination(D,arguments)},triad:function(){return this._applyCombination(s,arguments)},tetrad:function(){return this._applyCombination(l,arguments)}},R.fromRatio=function(te,ye){if(typeof te=="object"){var ue={};for(var Le in te)te.hasOwnProperty(Le)&&(Le==="a"?ue[Le]=te[Le]:ue[Le]=Ge(te[Le]));te=ue}return R(te,ye)};function c(te){var ye={r:0,g:0,b:0},ue=1,Le=null,ae=null,oe=null,Se=!1,Me=!1;return typeof te=="string"&&(te=xe(te)),typeof te=="object"&&(je(te.r)&&je(te.g)&&je(te.b)?(ye=g(te.r,te.g,te.b),Se=!0,Me=String(te.r).substr(-1)==="%"?"prgb":"rgb"):je(te.h)&&je(te.s)&&je(te.v)?(Le=Ge(te.s),ae=Ge(te.v),ye=m(te.h,Le,ae),Se=!0,Me="hsv"):je(te.h)&&je(te.s)&&je(te.l)&&(Le=Ge(te.s),oe=Ge(te.l),ye=y(te.h,Le,oe),Se=!0,Me="hsl"),te.hasOwnProperty("a")&&(ue=te.a)),ue=Y(ue),{ok:Se,format:te.format||Me,r:j(255,U(ye.r,0)),g:j(255,U(ye.g,0)),b:j(255,U(ye.b,0)),a:ue}}function g(te,ye,ue){return{r:H(te,255)*255,g:H(ye,255)*255,b:H(ue,255)*255}}function w(te,ye,ue){te=H(te,255),ye=H(ye,255),ue=H(ue,255);var Le=U(te,ye,ue),ae=j(te,ye,ue),oe,Se,Me=(Le+ae)/2;if(Le==ae)oe=Se=0;else{var We=Le-ae;Se=Me>.5?We/(2-Le-ae):We/(Le+ae);switch(Le){case te:oe=(ye-ue)/We+(ye1&&(Ze-=1),Ze<1/6?Ke+(Qe-Ke)*6*Ze:Ze<1/2?Qe:Ze<2/3?Ke+(Qe-Ke)*(2/3-Ze)*6:Ke}if(ye===0)Le=ae=oe=ue;else{var Me=ue<.5?ue*(1+ye):ue+ye-ue*ye,We=2*ue-Me;Le=Se(We,Me,te+1/3),ae=Se(We,Me,te),oe=Se(We,Me,te-1/3)}return{r:Le*255,g:ae*255,b:oe*255}}function f(te,ye,ue){te=H(te,255),ye=H(ye,255),ue=H(ue,255);var Le=U(te,ye,ue),ae=j(te,ye,ue),oe,Se,Me=Le,We=Le-ae;if(Se=Le===0?0:We/Le,Le==ae)oe=0;else{switch(Le){case te:oe=(ye-ue)/We+(ye>1)+720)%360;--ye;)Le.h=(Le.h+ae)%360,oe.push(R(Le));return oe}function S(te,ye){ye=ye||6;for(var ue=R(te).toHsv(),Le=ue.h,ae=ue.s,oe=ue.v,Se=[],Me=1/ye;ye--;)Se.push(R({h:Le,s:ae,v:oe})),oe=(oe+Me)%1;return Se}R.mix=function(te,ye,ue){ue=ue===0?0:ue||50;var Le=R(te).toRgb(),ae=R(ye).toRgb(),oe=ue/100,Se={r:(ae.r-Le.r)*oe+Le.r,g:(ae.g-Le.g)*oe+Le.g,b:(ae.b-Le.b)*oe+Le.b,a:(ae.a-Le.a)*oe+Le.a};return R(Se)},R.readability=function(te,ye){var ue=R(te),Le=R(ye);return(K.max(ue.getLuminance(),Le.getLuminance())+.05)/(K.min(ue.getLuminance(),Le.getLuminance())+.05)},R.isReadable=function(te,ye,ue){var Le=R.readability(te,ye),ae,oe;oe=!1,ae=he(ue);switch(ae.level+ae.size){case"AAsmall":case"AAAlarge":oe=Le>=4.5;break;case"AAlarge":oe=Le>=3;break;case"AAAsmall":oe=Le>=7;break}return oe},R.mostReadable=function(te,ye,ue){var Le=null,ae=0,oe,Se,Me,We;ue=ue||{},Se=ue.includeFallbackColors,Me=ue.level,We=ue.size;for(var Ke=0;Keae&&(ae=oe,Le=R(ye[Ke]));return R.isReadable(te,Le,{level:Me,size:We})||!Se?Le:(ue.includeFallbackColors=!1,R.mostReadable(te,["#fff","#000"],ue))};var I=R.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},C=R.hexNames=W(I);function W(te){var ye={};for(var ue in te)te.hasOwnProperty(ue)&&(ye[te[ue]]=ue);return ye}function Y(te){return te=parseFloat(te),(isNaN(te)||te<0||te>1)&&(te=1),te}function H(te,ye){le(te)&&(te="100%");var ue=pe(te);return te=j(ye,U(0,parseFloat(te))),ue&&(te=parseInt(te*ye,10)/100),K.abs(te-ye)<1e-6?1:te%ye/parseFloat(ye)}function F(te){return j(1,U(0,te))}function q(te){return parseInt(te,16)}function le(te){return typeof te=="string"&&te.indexOf(".")!=-1&&parseFloat(te)===1}function pe(te){return typeof te=="string"&&te.indexOf("%")!=-1}function Ae(te){return te.length==1?"0"+te:""+te}function Ge(te){return te<=1&&(te=te*100+"%"),te}function Fe(te){return K.round(parseFloat(te)*255).toString(16)}function Ue(te){return q(te)/255}var _e=function(){var te="[-\\+]?\\d+%?",ye="[-\\+]?\\d*\\.\\d+%?",ue="(?:"+ye+")|(?:"+te+")",Le="[\\s|\\(]+("+ue+")[,|\\s]+("+ue+")[,|\\s]+("+ue+")\\s*\\)?",ae="[\\s|\\(]+("+ue+")[,|\\s]+("+ue+")[,|\\s]+("+ue+")[,|\\s]+("+ue+")\\s*\\)?";return{CSS_UNIT:new RegExp(ue),rgb:new RegExp("rgb"+Le),rgba:new RegExp("rgba"+ae),hsl:new RegExp("hsl"+Le),hsla:new RegExp("hsla"+ae),hsv:new RegExp("hsv"+Le),hsva:new RegExp("hsva"+ae),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function je(te){return!!_e.CSS_UNIT.exec(te)}function xe(te){te=te.replace(k,"").replace(z,"").toLowerCase();var ye=!1;if(I[te])te=I[te],ye=!0;else if(te=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ue;return(ue=_e.rgb.exec(te))?{r:ue[1],g:ue[2],b:ue[3]}:(ue=_e.rgba.exec(te))?{r:ue[1],g:ue[2],b:ue[3],a:ue[4]}:(ue=_e.hsl.exec(te))?{h:ue[1],s:ue[2],l:ue[3]}:(ue=_e.hsla.exec(te))?{h:ue[1],s:ue[2],l:ue[3],a:ue[4]}:(ue=_e.hsv.exec(te))?{h:ue[1],s:ue[2],v:ue[3]}:(ue=_e.hsva.exec(te))?{h:ue[1],s:ue[2],v:ue[3],a:ue[4]}:(ue=_e.hex8.exec(te))?{r:q(ue[1]),g:q(ue[2]),b:q(ue[3]),a:Ue(ue[4]),format:ye?"name":"hex8"}:(ue=_e.hex6.exec(te))?{r:q(ue[1]),g:q(ue[2]),b:q(ue[3]),format:ye?"name":"hex"}:(ue=_e.hex4.exec(te))?{r:q(ue[1]+""+ue[1]),g:q(ue[2]+""+ue[2]),b:q(ue[3]+""+ue[3]),a:Ue(ue[4]+""+ue[4]),format:ye?"name":"hex8"}:(ue=_e.hex3.exec(te))?{r:q(ue[1]+""+ue[1]),g:q(ue[2]+""+ue[2]),b:q(ue[3]+""+ue[3]),format:ye?"name":"hex"}:!1}function he(te){var ye,ue;return te=te||{level:"AA",size:"small"},ye=(te.level||"AA").toUpperCase(),ue=(te.size||"small").toLowerCase(),ye!=="AA"&&ye!=="AAA"&&(ye="AA"),ue!=="small"&&ue!=="large"&&(ue="small"),{level:ye,size:ue}}et.exports?et.exports=R:!(ee=function(){return R}.call(de,N,de,et),ee!==void 0&&(et.exports=ee))})(Math)},bPs0:function(et,de,N){"use strict";N.d(de,"b",function(){return u});var ee=N("k1fw"),K=N("9og8"),k=N("2qtc"),z=N("kLXV"),B=N("tJVT"),M=N("PpiC"),j=N("aHsQ"),U=N("sGsY"),_=N("WmNS"),R=N.n(_),c=N("q1tI"),g=N.n(c),w=N("bntm"),y=N("V0Rq"),f=N("wd/R"),m=N.n(f),a=N("Ty5D"),n=N("9kvl"),o=U.a.Countdown,u=["fullscreenchange","msfullscreenchange","webkitfullscreenchange","mozfullscreenchange"],x=function(v){var O=v.globalSetting,A=v.loading,p=v.user,h=v.exercise,s=v.dispatch,l=Object(M.a)(v,["globalSetting","loading","user","exercise","dispatch"]),D=Object(c.useState)({}),T=Object(B.a)(D,2),S=T[0],I=T[1],C=z.a.useModal(),W=Object(B.a)(C,2),Y=W[0],H=W[1],F=Object(c.useRef)(),q=Object(c.useRef)(null),le=Object(c.useRef)(null),pe=Object(c.useState)(!0),Ae=Object(B.a)(pe,2),Ge=Ae[0],Fe=Ae[1],Ue=Object(a.h)().query,_e=Object(a.i)();Object(c.useEffect)(function(){var Me,We,Ke,Qe,Ze;if(clearTimeout(q.current),document.addEventListener(Object(w.c)(),Se,!1),window.addEventListener("blur",ae,!1),(Me=h.exerciseUserInfo)!==null&&Me!==void 0&&Me.screen_open&&Object(w.a)()&&(s({type:"globalSetting/headerFooterToggle",payload:!1}),Fe(!1)),(We=h.exerciseUserInfo)!==null&&We!==void 0&&We.screen_at&&m()().diff(m()((Ke=h.exerciseUserInfo)===null||Ke===void 0?void 0:Ke.screen_at),"seconds")>0)je();else if((Qe=h.exerciseUserInfo)!==null&&Qe!==void 0&&Qe.screen_open&&!Object(w.a)()){var yt=document.domain==="kepukehuan.educoder.net"?30:h.exerciseUserInfo.screen_sec+10+1;F.current=z.a.info({icon:null,content:g.a.createElement("div",{className:"tc font16"},"\u672C\u573A\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u5207\u5C4F\u9650\u5236\uFF0C",g.a.createElement("br",null),"\u5207\u6362\u9875\u9762 ",h.exerciseUserInfo.screen_num-h.exerciseUserInfo.used_screen_num," \u6B21\u540E\u5C06\u8FDB\u884C\u5F3A\u5236\u4EA4\u5377\uFF0C",g.a.createElement("br",null),"\u8BF7\u52FF\u5207\u5C4F\u53CA\u5237\u65B0\u9875\u9762"),okText:g.a.createElement("span",null,"\u5F00\u59CB\u8003\u8BD5\uFF08",g.a.createElement("span",{style:{display:"inline-block"}},g.a.createElement(o,{onFinish:function(){var dt;je(),(dt=F.current)===null||dt===void 0||dt.destroy()},valueStyle:{fontSize:14,lineHeight:1.4,color:"#FFF",display:"inline-block"},format:"ss",value:Date.now()+yt*1e3})),"S\uFF09"),onOk:function(){var dt;(dt=F.current)===null||dt===void 0||dt.destroy(),Fe(!1),Object(w.d)(document.body),document.getElementById("root").addEventListener("click",xe,!1)}})}return(Ze=h.exerciseUserInfo)!==null&&Ze!==void 0&&Ze.screen_open&&!Object(w.a)()||document.getElementById("root").addEventListener("click",xe,!1),function(){document.getElementById("root").removeEventListener("click",xe,!1),document.removeEventListener(Object(w.c)(),Se,!1),window.removeEventListener("blur",ae,!1),clearTimeout(q.current)}},[]),Object(c.useEffect)(function(){setTimeout(function(){h.actionTabs.removeEventListenerExitScreen&&(clearTimeout(q.current),document.getElementById("root").removeEventListener("click",xe,!1),document.removeEventListener(Object(w.c)(),Se,!1))},500),he()},[h.actionTabs]),Object(c.useEffect)(function(){setTimeout(function(){h.exerciseUserInfo.used_screen_num>h.exerciseUserInfo.screen_num?ue():!Ge},500)},[h.exerciseUserInfo]);var je=function(){var Me=Object(K.a)(R.a.mark(function We(){var Ke;return R.a.wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:return Ze.next=2,oe();case 2:Ke=Ze.sent,setTimeout(function(){var yt,vt;(yt=F.current)===null||yt===void 0||yt.destroy(),F.current=z.a.info({okText:g.a.createElement("span",null,"\u56DE\u5230\u8003\u8BD5"),content:g.a.createElement("div",null,"\u60A8\u5DF2\u5207\u5C4F",g.a.createElement("span",{className:"c-red"},Ke.used_screen_num),"\u6B21\uFF0C\u5207\u5C4F\u8D85\u8FC7",g.a.createElement("span",{className:"c-red"},(vt=h.exerciseUserInfo)===null||vt===void 0?void 0:vt.screen_num),"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377"),onOk:function(){var dt=Object(K.a)(R.a.mark(function At(){return R.a.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:Object(w.d)(document.body);case 1:case"end":return Oe.stop()}},At)}));function pt(){return dt.apply(this,arguments)}return pt}()})},1e3);case 4:case"end":return Ze.stop()}},We)}));return function(){return Me.apply(this,arguments)}}(),xe=function(We){!Object(w.a)()&&We.target.nodeName!=="A"&&We.target.nodeName!=="BUTTON"&&We.target.innerHTML!=="\u786E \u5B9A"&&(Object(w.d)(document.body),console.log("documentClick.full"))},he=function(){var Me=Object(K.a)(R.a.mark(function We(){return R.a.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:return Qe.abrupt("return",new Promise(function(){var Ze=Object(K.a)(R.a.mark(function yt(vt){var dt;return R.a.wrap(function(At){for(;;)switch(At.prev=At.next){case 0:return At.next=2,s({type:"exercise/getExerciseUserInfo",payload:Object(ee.a)({},_e)});case 2:return dt=At.sent,vt(dt==null?void 0:dt.data),At.abrupt("return",dt==null?void 0:dt.data);case 5:case"end":return At.stop()}},yt)}));return function(yt){return Ze.apply(this,arguments)}}()));case 1:case"end":return Qe.stop()}},We)}));return function(){return Me.apply(this,arguments)}}(),te=function(){var Me=Object(K.a)(R.a.mark(function We(Ke){var Qe,Ze,yt;return R.a.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:(Qe=F.current)===null||Qe===void 0||((Ze=Qe.destroyAll)===null||Ze===void 0)||Ze.call(Qe),F.current=z.a.info({maskClosable:!1,keyboard:!1,okText:g.a.createElement("span",null,"\u56DE\u5230\u8003\u8BD5\uFF08",g.a.createElement("span",{style:{display:"inline-block"}},g.a.createElement(o,{onFinish:oe,valueStyle:{fontSize:14,lineHeight:1.4,color:"#FFF",display:"inline-block"},format:"ss",value:Date.now()+(h.exerciseUserInfo.screen_sec+1)*1e3})),"S\uFF09"),content:g.a.createElement("div",null,"\u60A8\u5DF2\u5207\u5C4F",g.a.createElement("span",{className:"c-red"},Ke),"\u6B21\uFF0C\u5207\u5C4F\u8D85\u8FC7",g.a.createElement("span",{className:"c-red"},(yt=h.exerciseUserInfo)===null||yt===void 0?void 0:yt.screen_num),"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377,",g.a.createElement("span",{className:"c-red"},h.exerciseUserInfo.screen_sec),"\u79D2\u5185\u56DE\u5230",g.a.createElement("br",null),g.a.createElement("span",{style:{marginLeft:38}},"\u8003\u8BD5\u4E0D\u8BA1\u5207\u5C4F\u6B21\u6570\u3002")),onOk:function(){var pt=Object(K.a)(R.a.mark(function wt(){return R.a.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:clearTimeout(le.current),Object(w.d)(document.body),F.current.destroy();case 3:case"end":return we.stop()}},wt)}));function At(){return pt.apply(this,arguments)}return At}()}),le.current=setTimeout(function(){var pt;F.current.update({okText:g.a.createElement("span",null,"\u56DE\u5230\u8003\u8BD5"),content:g.a.createElement("div",null,"\u60A8\u5DF2\u5207\u5C4F",g.a.createElement("span",{className:"c-red"},Ke+1),"\u6B21\uFF0C\u5207\u5C4F\u8D85\u8FC7",g.a.createElement("span",{className:"c-red"},(pt=h.exerciseUserInfo)===null||pt===void 0?void 0:pt.screen_num),"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377")})},(h.exerciseUserInfo.screen_sec+1)*1e3);case 3:case"end":return dt.stop()}},We)}));return function(Ke){return Me.apply(this,arguments)}}(),ye=function(){location.href="/classrooms/".concat(_e.coursesId,"/exercise/").concat(_e.categoryId,"/detail")},ue=function(){var Me=Object(K.a)(R.a.mark(function We(){var Ke,Qe,Ze;return R.a.wrap(function(vt){for(;;)switch(vt.prev=vt.next){case 0:return(Ke=F.current)===null||Ke===void 0||((Qe=Ke.destroyAll)===null||Qe===void 0)||Qe.call(Ke),vt.next=3,Object(y.Z)({categoryId:_e.categoryId,commit_method:1});case 3:Ze=vt.sent,Ze&&Le();case 5:case"end":return vt.stop()}},We)}));return function(){return Me.apply(this,arguments)}}(),Le=function(){var We,Ke;document.removeEventListener(Object(w.c)(),Se,!1),Object(w.b)(),(We=F.current)===null||We===void 0||((Ke=We.destroyAll)===null||Ke===void 0)||Ke.call(We),Y.info({content:g.a.createElement("div",{className:"tc font16"},"\u7B54\u9898\u7ED3\u675F\u4E86\uFF0C\u7CFB\u7EDF\u5DF2\u81EA\u52A8\u63D0\u4EA4\u8BD5\u5377",g.a.createElement("br",null),"\u4E0D\u80FD\u518D\u4FEE\u6539\u7B54\u9898"),onOk:function(){ye()}})},ae=function(We){Object(w.a)()&&document.getElementById("iframeShixuns").style.display=="none"&&Object(w.b)()},oe=function(){var Me=Object(K.a)(R.a.mark(function We(){return R.a.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:return Qe.abrupt("return",new Promise(function(){var Ze=Object(K.a)(R.a.mark(function yt(vt){var dt,pt,At;return R.a.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(!((dt=h.exerciseUserInfo)!==null&&dt!==void 0&&dt.screen_at)){Oe.next=3;break}return Oe.next=3,Object(y.g)(Object(ee.a)(Object(ee.a)({},_e),{},{reset:!0}));case 3:return Oe.next=5,Object(y.Q)({id:_e.categoryId});case 5:if(pt=Oe.sent,!(pt!=null&&pt.is_commit)){Oe.next=9;break}return Le(),Oe.abrupt("return");case 9:return Oe.next=11,he();case 11:At=Oe.sent,vt(At);case 13:case"end":return Oe.stop()}},yt)}));return function(yt){return Ze.apply(this,arguments)}}()));case 1:case"end":return Qe.stop()}},We)}));return function(){return Me.apply(this,arguments)}}(),Se=function(){var Me=Object(K.a)(R.a.mark(function We(){var Ke,Qe,Ze,yt;return R.a.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:if(Ke=!1,console.log("fullscreen change"),!Object(w.a)()){dt.next=7;break}(Qe=h.exerciseUserInfo)!==null&&Qe!==void 0&&Qe.screen_at&&Object(y.g)(Object(ee.a)(Object(ee.a)({},_e),{},{reset:!0})),clearTimeout(q.current),dt.next=17;break;case 7:return Ke=!0,dt.next=10,Object(y.g)(Object(ee.a)({},_e));case 10:return dt.next=12,he();case 12:Ze=dt.sent,te(Ze.used_screen_num),yt=setTimeout(Object(K.a)(R.a.mark(function pt(){return R.a.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:case"end":return wt.stop()}},pt)})),h.exerciseUserInfo.screen_sec*1e3),window.frames.length!=parent.frames.length&&window.parent.postMessage("backExercise","*"),q.current=yt;case 17:s({type:"globalSetting/headerFooterToggle",payload:Ke});case 18:case"end":return dt.stop()}},We)}));return function(){return Me.apply(this,arguments)}}();return g.a.createElement("div",null,H)};de.a=Object(n.a)(function(E){var v=E.loading,O=E.user,A=E.exercise,p=E.globalSetting;return{globalSetting:p,user:O,exercise:A,loading:v.effects}})(x)},bT9E:function(et,de,N){"use strict";N.d(de,"a",function(){return K});var ee=N("VTBJ");function K(k,z){var B=Object(ee.a)({},k);return Array.isArray(z)&&z.forEach(function(M){delete B[M]}),B}},biw7:function(et,de,N){"use strict";var ee=N("q1tI"),K=N.n(ee),k=ee.createContext(null);de.a=k},c5Ni:function(et,de,N){},cQPA:function(et,de,N){"use strict";N.r(de);var ee=N("T2oS"),K=N("W9HT"),k=N("sPJy"),z=N("bE4q"),B=N("+L6B"),M=N("2/Rp"),j=N("14J3"),U=N("BMrR"),_=N("jCWc"),R=N("kPKH"),c=N("5Dmo"),g=N("3S7+"),w=N("sRBo"),y=N("kaz8"),f=N("7Kak"),m=N("9yH6"),a=N("MXD1"),n=N("CFYs"),o=N("miYZ"),u=N("tsqr"),x=N("2qtc"),E=N("kLXV"),v=N("k1fw"),O=N("9og8"),A=N("tJVT"),p=N("PpiC"),h=N("5NDa"),s=N("5rEg"),l=N("aHsQ"),D=N("sGsY"),T=N("WmNS"),S=N.n(T),I=N("q1tI"),C=N.n(I),W=N("Ty5D"),Y=N("55Ip"),H=N("9kvl"),F=N("gUdW"),q=N("xGfz"),le=N("jhfD"),pe=N("BlwA"),Ae=N("bPs0"),Ge=N("wd/R"),Fe=N.n(Ge),Ue=N("9GDu"),_e=N.n(Ue),je=N("1vsH"),xe=N("s8TD"),he=N("xKgJ"),te=N("bntm"),ye=N("V0Rq"),ue=N("HBuW"),Le=N("9Bee"),ae=N("Ot1p"),oe=function(Xe){var ke,se,fe,$e,Pe,it,at=Xe.item,Ne=Xe.answerData,Ve=Xe.isEducation,tt=Xe.sign,ft=Xe.onBlur,Ct=ft===void 0?function(){}:ft,zt=Object(I.useRef)(""),qt=Object(I.useState)(),Qt=Object(A.a)(qt,2),St=Qt[0],ln=Qt[1],Bt=Object(I.useState)(!1),Yt=Object(A.a)(Bt,2),Mt=Yt[0],tn=Yt[1],mn=Object(I.useState)(Ve||!1),An=Object(A.a)(mn,2),lt=An[0],Rt=An[1],Jt=Object(I.useRef)(),nn=function(){clearInterval(Jt.current),Jt.current=setInterval(function(){Mt&&Ct(zt.current)},30*1e3)},un=function(G){Ct(zt.current);var b="\u786E\u5B9A\u79BB\u5F00\u6B64\u9875\u9762\u5417?\u6B64\u9875\u6570\u636E\u53EF\u80FD\u4F1A\u4E22\u5931";return(G||window.event).returnValue=b,b};return Object(I.useEffect)(function(){console.log("isFocus:",Mt),Mt?(window.addEventListener("beforeunload",un),nn()):window.removeEventListener("beforeunload",un)},[Mt]),Object(I.useEffect)(function(){ln(at==null?void 0:at.a_flag)},[at==null?void 0:at.a_flag]),Object(I.useEffect)(function(){return function(){clearInterval(Jt.current)}},[]),console.log(!at.repeat_answer&&(at==null||((ke=at.user_answer)===null||ke===void 0)?void 0:ke.length)>0&&!at.israp,222),C.a.createElement("div",null,(Ne==null||((se=Ne.exercise)===null||se===void 0)?void 0:se.commit_status)===1?C.a.createElement("div",null,C.a.createElement("p",{className:"mt10 mb0"},"\u6211\u7684\u7B54\u6848\uFF1A"),C.a.createElement("div",{className:_e.a.simpleText},C.a.createElement(Le.a,{value:at==null||((fe=at.user_answer)===null||fe===void 0)?void 0:fe[0]}))):C.a.createElement("div",{className:at.user_score&&(at.user_score===at.question_score?"c-green":"c-red")},lt?C.a.createElement(ae.a,{watch:!0,isFocus:!0,defaultValue:at==null||(($e=at.user_answer)===null||$e===void 0)?void 0:$e[0],id:at==null?void 0:at.question_id,onChange:function(G){zt.current=G,tn(!0)},onBlur:function(){setTimeout(function(){Ct(zt.current)},200),clearInterval(Jt.current),tn(!1)}}):C.a.createElement("div",{onClick:function(){var G;if(!at.repeat_answer&&(at==null||((G=at.user_answer)===null||G===void 0)?void 0:G.length)>0)return;tt.current=!0,Rt(!0)}},C.a.createElement(s.a,{disabled:!at.repeat_answer&&(at==null||((Pe=at.user_answer)===null||Pe===void 0)?void 0:Pe.length)>0&&!at.israp,size:"large",className:"current",placeholder:"\u70B9\u51FB\u5F00\u59CB\u4F5C\u7B54",readOnly:!0}))),(at==null?void 0:at.standard_answer)&&C.a.createElement("div",null,C.a.createElement("p",{className:"mt10 mb0"},"\u53C2\u8003\u7B54\u6848\uFF1A"),C.a.createElement("div",{style:{border:"1px solid #eee",background:"#f5f5f5",borderRadius:4,padding:5}},C.a.createElement(Le.a,{value:at==null||((it=at.standard_answer)===null||it===void 0)?void 0:it[0]}))))},Se=oe,Me=N("g9YV"),We=N("wCAj"),Ke=N("5GOC"),Qe=N("JsLm"),Ze=N("ZW9T"),yt=N("o/qq"),vt=N.n(yt),dt=function(Xe){var ke,se,fe,$e,Pe=Xe.item,it=Xe.answerData,at=Object(I.useState)([]),Ne=Object(A.a)(at,2),Ve=Ne[0],tt=Ne[1],ft=Object(I.useState)([]),Ct=Object(A.a)(ft,2),zt=Ct[0],qt=Ct[1];Object(I.useEffect)(function(){var Bt;if(!(Pe!=null&&(Bt=Pe.shixun_details)!==null&&Bt!==void 0&&Bt.length))return;for(var Yt=[],Mt=[],tn=0;tn<(Pe==null||((mn=Pe.shixun_details)===null||mn===void 0)?void 0:mn.length);tn++){for(var mn,An,lt,Rt=0;Rt<(Pe==null?void 0:Pe.shixun_details[tn].stage_list.length);Rt++){var Jt,nn,un,cn,G=Pe==null?void 0:Pe.shixun_details[tn].stage_list[Rt];Yt.push(Object(v.a)(Object(v.a)({},G),{operation:Pe==null||((Jt=Pe.shixun_details)===null||Jt===void 0||((nn=Jt[tn])===null||nn===void 0||((un=nn.shixun_detail)===null||un===void 0||((cn=un[0])===null||cn===void 0))))?void 0:cn.game_identifier}))}if(Pe!=null&&(An=Pe.shixun_details)!==null&&An!==void 0&&(lt=An[tn])!==null&<!==void 0&<.shixun_detail){var b,L,V;Mt.push(Pe==null||((b=Pe.shixun_details)===null||b===void 0||((L=b[tn])===null||L===void 0||((V=L.shixun_detail)===null||V===void 0)))?void 0:V[0])}}qt(Mt),tt(Yt)},[Pe==null?void 0:Pe.shixun_details]);var Qt=[{title:"\u5173\u5361",dataIndex:"position",key:"position",align:"center"},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",key:"name",align:"center",render:function(Yt){return C.a.createElement("span",{className:"overflowHidden1",style:{maxWidth:"400px"},title:Yt&&Yt.length>25?Yt:""},Yt)}},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",key:"evaluate_count",align:"center",render:function(Yt,Mt){return C.a.createElement("span",null,Mt.evaluate_count?Mt.evaluate_count:C.a.createElement("span",{className:"color-grey-9"},"--"))}},{title:"\u5B8C\u6210\u65F6\u95F4",key:"endTime",dataIndex:"endTime",align:"center",render:function(Yt,Mt){var tn=!1;return Mt.finished_time&&it!==null&&it!==void 0&&it.exercise&&it!==null&&it!==void 0&&it.exercise_answer_user&&((it==null?void 0:it.exercise.time)===-1?tn=Fe()(it==null?void 0:it.exercise.end_time).isBefore(Mt.finished_time):tn=Fe()(it==null?void 0:it.exercise_answer_user.start_at).add(it==null?void 0:it.exercise.time,"m").isBefore(Mt.finished_time)),C.a.createElement("span",null,Mt.finished_time||C.a.createElement("span",{className:"c-grey-999"},"--"),C.a.createElement("span",{className:"c-orange-ff9 "},tn?"\uFF08\u5DF2\u8D85\u65F6\uFF09":""))}},{title:"\u8017\u65F6",dataIndex:"time_consuming",key:"time_consuming",align:"center",render:function(Yt,Mt){return C.a.createElement("span",null,Mt.time_consuming||C.a.createElement("span",{className:"color-grey-9"},"--"))}},{title:"\u67E5\u770B\u7B54\u6848",dataIndex:"view_answer",key:"view_answer",align:"center",render:function(Yt,Mt){return C.a.createElement("span",null,Mt.view_answer?"\u5DF2\u67E5\u770B":"\u672A\u67E5\u770B")}},{title:"\u64CD\u4F5C",dataIndex:"operation",key:"operation",align:"center",render:function(Yt,Mt,tn){return Yt?C.a.createElement(Qe.a,{affix:!1,className:"mt10"},C.a.createElement(Qe.a.Link,{href:"#challenge_".concat(Pe==null?void 0:Pe.question_id).concat(tn),title:C.a.createElement("span",{style:{color:"#0152d9"}},"\u67E5\u770B")})):C.a.createElement("span",{className:"c-grey-999"},"--")}}],St=[{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"key",width:"127px",key:"key",align:"center",render:function(Yt,Mt){return C.a.createElement("span",null,Mt.key)}},{title:"\u8BE6\u7EC6\u4FE1\u606F",dataIndex:"error_msg",key:"error_msg",align:"center",render:function(Yt,Mt){return C.a.createElement("span",null,Mt.error_msg?Mt.error_msg:"--")}}],ln={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};return C.a.createElement("div",{className:"mt15 mb15"},(it==null||((ke=it.exercise)===null||ke===void 0)?void 0:ke.commit_status)===0&&C.a.createElement("div",null,Pe.shixun.map(function(Bt,Yt){return C.a.createElement(U.a,{className:"font16",gutter:[0,20]},C.a.createElement(R.a,{flex:"1"},Bt.challenge_name," (",Bt.challenge_score,"\u5206)"),C.a.createElement(R.a,{flex:"100px",className:"tr"},Bt.answer_status===0&&C.a.createElement("span",{className:"font12 tag-style-border border-orange c-orange "},"\u672A\u5B8C\u6210"),Bt.answer_status===1&&C.a.createElement("span",{className:"font12 tag-style-border border-green c-green "},"\u5DF2\u5B8C\u6210")))})),(it==null||((se=it.exercise)===null||se===void 0)?void 0:se.commit_status)!==0||(it==null||((fe=it.exercise)===null||fe===void 0)?void 0:fe.user_exercise_status)!==0?C.a.createElement(C.a.Fragment,null,!!(Ve!=null&&Ve.length)&&C.a.createElement("div",null,C.a.createElement("p",{className:"font16 c-grey-666"},"\u9636\u6BB5\u6210\u7EE9"),C.a.createElement(We.a,{columns:Qt,dataSource:Ve,pagination:!1})),!!(zt!=null&&zt.length)&&C.a.createElement("div",null,C.a.createElement("p",{className:"font16 c-grey-666 mt10"},"\u5B9E\u8BAD\u8BE6\u60C5"),zt==null?void 0:zt.map(function(Bt,Yt){return C.a.createElement("div",{id:"challenge_".concat(Pe==null?void 0:Pe.question_id).concat(Yt),className:"mt5"},C.a.createElement("div",null,C.a.createElement("span",{className:"font16 mr15"}," \u7B2C",Bt.position,"\u5173"),C.a.createElement(Y.a,{className:"current c-black font16",to:"/tasks/".concat(Bt.game_identifier)},Bt.name)),(Bt==null?void 0:Bt.st)===0&&Bt.passed_code&&C.a.createElement("aside",{className:vt.a.shixunWrp},C.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",C.a.createElement("span",{className:"c-light-black"},Bt.path)),C.a.createElement(Ze.b,{height:300,language:"python",theme:"default",value:Bt.passed_code,options:ln})))}))):C.a.createElement(C.a.Fragment,null,C.a.createElement(Le.a,{className:"c-grey-999 mt20 mb20",value:Pe==null?void 0:Pe.question_title}),Pe==null||(($e=Pe.shixun)===null||$e===void 0)?void 0:$e.map(function(Bt,Yt){return C.a.createElement("p",{className:"font16 c-grey-666 mb5",key:Yt},C.a.createElement("span",{className:"mr20"},"\u7B2C",Bt==null?void 0:Bt.challenge_position,"\u5173 ",Bt==null?void 0:Bt.challenge_name),C.a.createElement("span",null,Bt==null?void 0:Bt.challenge_score,"\u5206"))})))},pt=dt,At=N("J66h"),wt=function(Xe){var ke=Xe.item,se=Xe.answerData,fe=Object(I.useState)([]),$e=Object(A.a)(fe,2),Pe=$e[0],it=$e[1];Object(I.useEffect)(function(){var Ve;if((ke==null||((Ve=ke.evaluate_codes)===null||Ve===void 0)?void 0:Ve.length)>0){var tt;it(ke==null||((tt=ke.evaluate_codes)===null||tt===void 0)?void 0:tt.map(function(ft,Ct){return{key:Ct+1,error_msg:ft!=null&&ft.error_msg?At.Base64.decode(ft==null?void 0:ft.error_msg):""}}))}else it([{key:"--",error_msg:"--"}])},[ke==null?void 0:ke.evaluate_codes]);var at=[{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"key",width:"127px",key:"key",align:"center",render:function(tt,ft){return C.a.createElement("span",null,ft.key)}},{title:"\u8BE6\u7EC6\u4FE1\u606F",dataIndex:"error_msg",key:"error_msg",align:"center",render:function(tt,ft){return C.a.createElement("span",null,ft.error_msg?ft.error_msg:"--")}}],Ne={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};return C.a.createElement(C.a.Fragment,null,C.a.createElement("div",{className:"mt15 mb15"},C.a.createElement(Le.a,{value:ke==null?void 0:ke.description})),!!(ke!=null&&ke.user_answer.length)&&(ke==null?void 0:ke.passed_code)&&C.a.createElement("aside",{className:vt.a.shixunWrp},C.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"),C.a.createElement(Ze.b,{style:{border:"1px solid #ccc"},height:300,language:"python",theme:"vs-light",value:ke!=null&&ke.passed_code?At.Base64.decode(ke==null?void 0:ke.passed_code):"",options:Ne})))},Oe=wt,we=N("oBTY"),Je=N("m3rI"),st=s.a.TextArea,He=function(Xe){var ke,se,fe=Xe.item,$e=Xe.answerData,Pe=Xe.answerCheckData,it=Pe===void 0?{}:Pe,at=Xe.sign,Ne=Xe.onBlur,Ve=Ne===void 0?function(){}:Ne,tt=Object(I.useState)([]),ft=Object(A.a)(tt,2),Ct=ft[0],zt=ft[1],qt=Object(I.useRef)(!1);Object(I.useEffect)(function(){return window.addEventListener("beforeunload",Qt),function(){window.removeEventListener("beforeunload",Qt)}},[Ct,it,fe]);var Qt=function(){var St=Object(O.a)(S.a.mark(function ln(){var Bt,Yt,Mt,tn,mn,An,lt,Rt;return S.a.wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:if(!(qt.current===!1)){nn.next=2;break}return nn.abrupt("return");case 2:if(Bt=Ct[qt.current],Yt=Bt.answer_text,Mt=Bt.choice_id,Yt.replaceAll(" ","")){nn.next=5;break}return nn.abrupt("return");case 5:if(mn={questionId:fe==null?void 0:fe.question_id,exercise_choice_id:Mt,answer_text:Yt},!((it==null?void 0:it.ip_limit)==="inner"||it.ip_bind)){nn.next=10;break}return nn.next=9,Object(xe.a)({ip_limit:it==null?void 0:it.ip_limit});case 9:tn=nn.sent;case 10:mn.ip=tn,An=Object(v.a)({},mn),lt={type:"application/json"},Rt=new Blob([JSON.stringify(An)],lt),window.navigator.sendBeacon("".concat(Je.a.API_SERVER,"/api/exercise_questions/").concat(mn.questionId,"/exercise_answers.json"),Rt);case 15:case"end":return nn.stop()}},ln)}));return function(){return St.apply(this,arguments)}}();return Object(I.useEffect)(function(){for(var St=[],ln=function(Mt){var tn,mn=(fe==null||((tn=fe.user_answer)===null||tn===void 0)?void 0:tn.find(function(An){return An.choice_id===Mt+1}))||{choice_id:Mt+1,answer_text:""};St.push(Object(v.a)({},mn))},Bt=0;Bt<(fe==null?void 0:fe.multi_count);Bt++)ln(Bt);zt(St)},[fe==null?void 0:fe.user_answer]),C.a.createElement("div",null,Ct==null?void 0:Ct.map(function(St,ln){var Bt;return C.a.createElement("div",{key:ln,className:"mt10"},C.a.createElement("span",null,"\u6211\u7684\u7B54\u6848\uFF08\u586B\u7A7A",ln+1,"\uFF09:"),C.a.createElement("div",null,C.a.createElement(st,{autoSize:!0,rows:4,disabled:!fe.repeat_answer&&(fe==null||((Bt=fe.user_answer)===null||Bt===void 0)?void 0:Bt.length)>0&&!fe.israp||!!($e!=null&&$e.exercise.commit_status),value:St==null?void 0:St.answer_text,onChange:function(Mt){qt.current=ln,Ct[ln].answer_text=Mt.target.value,zt(Object(we.a)(Ct))},onFocus:function(){at.current=!0},onBlur:function(Mt){qt.current=!1,setTimeout(function(){Ve(St==null?void 0:St.answer_text,ln+1,Ct)},200)},className:"overflow_hidden ".concat(fe.user_score&&(fe.user_score===fe.question_score?"c-green":"c-red"))})))}),!!(fe!=null&&(ke=fe.standard_answer)!==null&&ke!==void 0&&ke.length)&&C.a.createElement("div",null,fe==null||((se=fe.standard_answer)===null||se===void 0)?void 0:se.map(function(St,ln){return C.a.createElement("div",null,C.a.createElement("span",null,"\u53C2\u8003\u7B54\u6848\uFF1A\uFF08\u586B\u7A7A",ln+1,"\uFF09:"),C.a.createElement("div",null,C.a.createElement(st,{autoSize:!0,disabled:!0,value:St==null?void 0:St.answer_text[0]})))})))},nt=He,Te=N("lzim"),ge=s.a.TextArea,be=function(Xe){var ke=Xe.data;return C.a.createElement("div",{className:"tc mt80"},C.a.createElement("img",{width:"486",src:Te.n})," ",C.a.createElement("br",null),ke.status===-1&&C.a.createElement("div",{className:"c-grey-999 mt60"},"\u60A8\u7684IP\u4E0D\u5728\u8003\u8BD5\u5141\u8BB8\u7684\u8303\u56F4\u5185\uFF01"),ke.status===-2&&C.a.createElement("div",{className:" c-grey-999 mt60"},"\u60A8\u5DF2\u7ED1\u5B9A\u5F53\u524D\u8003\u8BD5IP\u5730\u5740\uFF1A",C.a.createElement("span",{className:"c-red"},ke.ip),"\u8BF7\u4F7F\u7528\u8BE5IP\u5730\u5740\u8FDB\u5165\u8003\u8BD5\u3002"),C.a.createElement(M.a,{className:"mt40 pl20 pr20",type:"primary"},C.a.createElement("a",{href:"/"},"\u56DE\u5230\u9996\u9875")))},re=be,ie=N("LvDl"),ce=D.a.Countdown,Ee=s.a.TextArea,Be=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Ie={1:"\u672A\u53D1\u5E03",2:"\u5DF2\u53D1\u5E03",3:"\u5DF2\u622A\u6B62"},ut={1:_e.a.flagActive,2:_e.a.flagHalf},bt={0:"c-red-ee4",1:"c-green"},Tt=["\u5355\u9009\u9898","\u591A\u9009\u9898","\u5224\u65AD\u9898","\u586B\u7A7A\u9898","\u7B80\u7B54\u9898","\u5B9E\u8BAD\u9898","\u7F16\u7A0B\u9898"],xt=function(Xe){var ke,se,fe,$e,Pe,it,at,Ne,Ve,tt,ft,Ct,zt,qt,Qt,St,ln,Bt,Yt,Mt,tn,mn,An,lt,Rt,Jt,nn,un,cn,G,b,L=Xe.globalSetting,V=Xe.loading,J=Xe.user,Q=Xe.dispatch,De=Object(p.a)(Xe,["globalSetting","loading","user","dispatch"]),ot=Object(W.i)(),Ot=Object(I.useState)({}),Ft=Object(A.a)(Ot,2),ve=Ft[0],Gt=Ft[1],en=Object(I.useState)({}),Tn=Object(A.a)(en,2),Wn=Tn[0],tr=Tn[1],Rn=Object(I.useState)({}),or=Object(A.a)(Rn,2),fr=or[0],Vn=or[1],sr=Object(I.useState)(!1),Jn=Object(A.a)(sr,2),Mr=Jn[0],Xn=Jn[1],Ir=Object(I.useState)(!0),yr=Object(A.a)(Ir,2),Tr=yr[0],Yr=yr[1],br=Object(I.useState)(!1),nr=Object(A.a)(br,2),Ur=nr[0],_r=nr[1],Fr=Object(I.useState)(!1),Sn=Object(A.a)(Fr,2),hn=Sn[0],Pn=Sn[1],yn=Object(I.useState)(),Ln=Object(A.a)(yn,2),bn=Ln[0],wr=Ln[1],Bn=Object(I.useState)(0),Qn=Object(A.a)(Bn,2),zr=Qn[0],jr=Qn[1],Dr=Object(I.useState)(""),Jr=Object(A.a)(Dr,2),rr=Jr[0],Wr=Jr[1],Er=Object(I.useState)("none"),Hr=Object(A.a)(Er,2),Zr=Hr[0],ir=Hr[1],ri=Object(I.useState)(""),ii=Object(A.a)(ri,2),Xt=ii[0],on=ii[1],$t=Object(I.useState)({status:0}),dn=Object(A.a)($t,2),En=dn[0],wn=dn[1],gn=Object(I.useRef)(),xn=Object(I.useRef)(!1),Hn=Object(I.useRef)({}),fn=Object(I.useState)(0),kr=Object(A.a)(fn,2),Ht=kr[0],_n=kr[1],pr=Object(I.useState)(0),lr=Object(A.a)(pr,2),Kt=lr[0],pn=lr[1],Cn=Object(I.useState)(!1),ur=Object(A.a)(Cn,2),qr=ur[0],Rr=ur[1],gi=Object(I.useState)(!1),vi=Object(A.a)(gi,2),ai=vi[0],Gi=vi[1],xa=Object(I.useState)(),Ca=Object(A.a)(xa,2),Sa=Ca[0],wi=Ca[1],Aa=Object(I.useState)(),Ta=Object(A.a)(Aa,2),oi=Ta[0],Gr=Ta[1];Object(I.useEffect)(function(){return(Object(he.c)()||Object(he.l)())&&dr(),window.addEventListener("message",yi),function(){window.removeEventListener("message",yi),window.removeEventListener("beforeunload",Da),location.pathname.indexOf("/detail")>-1&&Object(te.b)()}},[ot.categoryId,J.userInfo.login]);var yi=function(me){me.data==="backExercise"&&(ir("none"),Wr(""),dr())},wa=function(){var Ut=Object(O.a)(S.a.mark(function me(){var ct,rt,_t,mt,It,Nt,Lt,Zt,jt,rn,Mn;return S.a.wrap(function(In){for(;;)switch(In.prev=In.next){case 0:return In.next=2,Q({type:"exercise/getExerciseUserInfo",payload:Object(v.a)({},ot)});case 2:if(rt=In.sent,tr(Object(v.a)({},rt.data)),!((rt==null||((ct=rt.data)===null||ct===void 0)?void 0:ct.ip_limit)!=="no")){In.next=11;break}if(!((rt==null||((_t=rt.data)===null||_t===void 0)?void 0:_t.ip_limit)==="inner")){In.next=9;break}return In.next=8,Object(xe.a)({ip_limit:rt==null||((mt=rt.data)===null||mt===void 0)?void 0:mt.ip_limit});case 8:Nt=In.sent;case 9:return In.next=11,Object(je.q)({exerciseId:ot.categoryId,ip:Nt,errmsgHide:!0,ip_limit:rt==null||((It=rt.data)===null||It===void 0)?void 0:It.ip_limit}).catch(function(ui){wn(ui)});case 11:if(!((rt==null?void 0:rt.status)==0)){In.next=18;break}if(!((rt==null||((Lt=rt.data)===null||Lt===void 0)?void 0:Lt.used_screen_num)>(rt==null||((Zt=rt.data)===null||Zt===void 0)?void 0:Zt.screen_num)&&rt!==null&&rt!==void 0&&(jt=rt.data)!==null&&jt!==void 0&&jt.screen_open)){In.next=15;break}return Ri(),In.abrupt("return",!1);case 15:_r(rt==null?void 0:rt.data.check_camera),Pn(rt==null||((rn=rt.data)===null||rn===void 0)?void 0:rn.screen_open),rt!=null&&(Mn=rt.data)!==null&&Mn!==void 0&&Mn.check_camera||dr();case 18:case"end":return In.stop()}},me)}));return function(){return Ut.apply(this,arguments)}}(),Da=function(me){var ct="\u786E\u5B9A\u79BB\u5F00\u6B64\u9875\u9762\u5417?\u6B64\u9875\u6570\u636E\u53EF\u80FD\u4F1A\u4E22\u5931";return(me||window.event).returnValue=ct,ct},dr=function(){var Ut=Object(O.a)(S.a.mark(function me(){var ct,rt,_t,mt,It;return S.a.wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:return Xn(!0),Lt.next=3,Object(ye.Y)(Object(v.a)({},ot)).catch(function(){return Xn(!1)});case 3:rt=Lt.sent,((ct=rt)===null||ct===void 0?void 0:ct.exercise)&&(rt.exercise.user_exercise_status=1),Xn(!1),rt&&(rt.exercise_types=((_t=rt)===null||_t===void 0?void 0:_t.exercise_types)||((mt=rt)===null||mt===void 0||((It=mt.exercise_scores)===null||It===void 0)?void 0:It.exercise_types),Gt(rt));case 7:case"end":return Lt.stop()}},me)}));return function(){return Ut.apply(this,arguments)}}();Object(I.useEffect)(function(){var Ut,me,ct;((Ut=ve.exercise)===null||Ut===void 0?void 0:Ut.time)===0&&Ri(),((me=ve.exercise)===null||me===void 0?void 0:me.time)&&wr(Date.now()+(ve==null||((ct=ve.exercise)===null||ct===void 0)?void 0:ct.time)*1e3*60)},[(ke=ve.exercise)===null||ke===void 0?void 0:ke.time]);var si=function(){var me;(ve==null||((me=ve.exercise)===null||me===void 0)?void 0:me.exercise_status)===3?E.a.confirm({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:C.a.createElement("div",{className:"tc font16"},"\u622A\u6B62\u65F6\u95F4\u5DF2\u5230\uFF0C\u65E0\u6CD5\u6253\u56DE\u8BD5\u5377",C.a.createElement("br",null),"\u8BF7\u5728\u4FEE\u6539\u622A\u6B62\u65F6\u95F4\u540E\u518D\u64CD\u4F5C")}):E.a.confirm({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:C.a.createElement("div",{className:"tc font16"},"\u5B66\u751F\u5C06\u5F97\u5230\u4E00\u6B21\u91CD\u65B0\u7B54\u9898\u7684\u673A\u4F1A\uFF0C\u73B0\u6709\u7684\u7B54\u9898\u60C5\u51B5\u5C06\u88AB\u6E05\u7A7A",C.a.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u56DE\u9000TA\u7684\u8BD5\u5377\u7B54\u9898"),onOk:function(){var ct=Object(O.a)(S.a.mark(function _t(){var mt,It;return S.a.wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:return Lt.next=2,Object(ye.R)({categoryId:ot.categoryId,user_ids:[ve==null||((mt=ve.exercise_answer_user)===null||mt===void 0)?void 0:mt.user_id]});case 2:It=Lt.sent,It&&(u.b.info(It==null?void 0:It.message),ei());case 4:case"end":return Lt.stop()}},_t)}));function rt(){return ct.apply(this,arguments)}return rt}()})},ei=function(){dr()},ro=function(){var Ut=Object(O.a)(S.a.mark(function me(){var ct,rt;return S.a.wrap(function(mt){for(;;)switch(mt.prev=mt.next){case 0:return mt.next=2,Object(ye.ab)({categoryId:ot.categoryId,commit_method:2});case 2:ct=mt.sent,(ct==null?void 0:ct.status)===0&&(E.a.info({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",content:C.a.createElement("div",{className:"tc font16"},"\u7B54\u9898\u7ED3\u675F\u4E86\uFF0C\u7CFB\u7EDF\u5DF2\u81EA\u52A8\u63D0\u4EA4\u8BD5\u5377",C.a.createElement("br",null),"\u4E0D\u80FD\u518D\u4FEE\u6539\u7B54\u9898"),onOk:function(){var It=Object(O.a)(S.a.mark(function Lt(){return S.a.wrap(function(jt){for(;;)switch(jt.prev=jt.next){case 0:ei();case 1:case"end":return jt.stop()}},Lt)}));function Nt(){return It.apply(this,arguments)}return Nt}()}),u.b.info(ct==null?void 0:ct.message)),(ct==null?void 0:ct.status)===-3&&(rt=parseInt(ct==null?void 0:ct.message),ve.exercise.time=rt,Gt(Object(v.a)({},ve)));case 5:case"end":return mt.stop()}},me)}));return function(){return Ut.apply(this,arguments)}}(),Di=function(){var Ut=Object(O.a)(S.a.mark(function me(ct){var rt;return S.a.wrap(function(mt){for(;;)switch(mt.prev=mt.next){case 0:return mt.next=2,Object(ue.D)({id:ct.shixun_identifier});case 2:rt=mt.sent,rt!=null&&rt.game_identifier&&(Wr("/tasks/".concat(rt.game_identifier,"?type=exercises&exercisesId=").concat(ot.categoryId,"&coursesId=").concat(ot.coursesId,"&login=").concat(ot.login,"&questionId=").concat(ct.question_id)),ir("block")),(rt==null?void 0:rt.status)===-3?Object(je.o)():(rt==null?void 0:rt.status)===2?io(rt==null?void 0:rt.message,ct.question_id):(rt==null?void 0:rt.status)===3&&Vi(rt==null?void 0:rt.message);case 5:case"end":return mt.stop()}},me)}));return function(ct){return Ut.apply(this,arguments)}}(),io=function Ut(me,ct){var rt;me=(rt=me)!==null&&rt!==void 0&&rt.includes(".json")?me:"".concat(me,".json"),E.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:C.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var _t=Object(O.a)(S.a.mark(function It(){var Nt,Lt;return S.a.wrap(function(jt){for(;;)switch(jt.prev=jt.next){case 0:return jt.next=2,Object(ye.S)({url:me});case 2:if(Nt=jt.sent,Nt){jt.next=5;break}return jt.abrupt("return");case 5:return u.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),jt.next=8,Object(ue.D)({id:Nt.shixun_identifier});case 8:if(Lt=jt.sent,!(Lt!=null&&Lt.game_identifier)){jt.next=12;break}return Di({shixun_identifier:Lt==null?void 0:Lt.game_identifier,question_id:ct}),jt.abrupt("return");case 12:(Lt==null?void 0:Lt.status)===2?Ut(Lt==null?void 0:Lt.message,ct):(Lt==null?void 0:Lt.status)===3&&Vi(Lt==null?void 0:Lt.message);case 13:case"end":return jt.stop()}},It)}));function mt(){return _t.apply(this,arguments)}return mt}()})},Vi=function(me){E.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:C.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",me,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},Xi=function(me){me.redo?E.a.info({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",content:C.a.createElement("div",{className:"tc font16"},"\u60A8\u4E4B\u524D\u5DF2\u7ECF\u6311\u6218\u8FC7\u8BE5\u5B9E\u8BAD\uFF0C\u8003\u8BD5\u8FC7\u7A0B\u4E2D\u9700\u8981\u91CD\u65B0\u6311\u6218"),onOk:function(){var ct=Object(O.a)(S.a.mark(function _t(){var mt,It,Nt,Lt;return S.a.wrap(function(jt){for(;;)switch(jt.prev=jt.next){case 0:return jt.next=2,Object(ye.S)({id:me.myshixun_identifier,url:me.url});case 2:mt=jt.sent,mt&&(It=Object(ie.cloneDeep)(ve==null?void 0:ve.exercise_question_types),Nt=It==null?void 0:It.findIndex(function(rn){return rn.question_type===5}),It[Nt].items.find(function(rn){return rn.question_id===me.question_id}).redo=!1,It[Nt].items.find(function(rn){return rn.question_id===me.question_id}).shixun_identifier=mt.shixun_identifier,ve.exercise_question_types=It,Gt(ve),Lt=Object(v.a)(Object(v.a)({},me),{},{shixun_identifier:mt.shixun_identifier}),Di(Lt));case 4:case"end":return jt.stop()}},_t)}));function rt(){return ct.apply(this,arguments)}return rt}()}):Di(me)},li=function(){var Ut=Object(O.a)(S.a.mark(function me(ct){var rt;return S.a.wrap(function(mt){for(;;)switch(mt.prev=mt.next){case 0:if(!ct.hack_identifier){mt.next=5;break}return mt.next=3,Object(ye.X)({id:ct.hack_identifier});case 3:rt=mt.sent,(rt==null?void 0:rt.status)===0&&(Wr("/myproblems/".concat(rt.identifier,"?type=exercises&exercisesId=").concat(ot.categoryId,"&coursesId=").concat(ot.coursesId,"&login=").concat(ot.login,"&questionId=").concat(ct.question_id)),ir("block"));case 5:case"end":return mt.stop()}},me)}));return function(ct){return Ut.apply(this,arguments)}}(),mr=function(){var Ut=Object(O.a)(S.a.mark(function me(ct,rt,_t,mt){var It,Nt;return S.a.wrap(function(Zt){for(;;)switch(Zt.prev=Zt.next){case 0:if(Xn(!0),ct){Zt.next=4;break}return console.error("handleSave no questionId params"),Zt.abrupt("return");case 4:return Zt.next=6,Object(ye.cb)({questionId:ct,exercise_choice_id:rt,answer_text:_t});case 6:Nt=Zt.sent,(Nt==null?void 0:Nt.status)===0&&(mt&&mt(),Vr()),Xn(!1);case 9:case"end":return Zt.stop()}},me)}));return function(ct,rt,_t,mt){return Ut.apply(this,arguments)}}(),Qi=function(){var Ut=Object(O.a)(S.a.mark(function me(ct){var rt,_t;return S.a.wrap(function(It){for(;;)switch(It.prev=It.next){case 0:return It.next=2,Object(ye.V)({id:ot.categoryId});case 2:if(rt=It.sent,rt){It.next=5;break}return It.abrupt("return");case 5:rt.question_undo!==0||rt.oj_undo!==0?(_t="",rt.question_undo!==0&&rt.oj_undo!==0?_t="\u6709 ".concat(rt.question_undo," \u9898\u672A\u5B8C\u6210\uFF0C\u5305\u542B ").concat(rt.oj_undo," \u4E2A\u7F16\u7A0B\u9898"):rt.question_undo!==0&&rt.oj_undo===0?_t="\u6709 ".concat(rt.question_undo," \u9898\u672A\u5B8C\u6210"):rt.question_undo===0&&rt.oj_undo!==0&&(_t="\u6709 ".concat(rt.oj_undo," \u7F16\u7A0B\u9898\u672A\u5B8C\u6210")),E.a.confirm({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:C.a.createElement("div",{className:"tc font16"},_t,C.a.createElement("br",null),ct?"\u5728".concat(Fe()(rt.end_time).format("YYYY-MM-DD HH:mm"),"\u4E4B\u524D\uFF0C\u5141\u8BB8\u4FEE\u6539\u7B54\u9898"):"\u63D0\u4EA4\u540E\u65E0\u6CD5\u518D\u4FEE\u6539\u7B54\u9898\uFF0C\u662F\u5426\u786E\u8BA4\u63D0\u4EA4\uFF1F"),onOk:function(){var Nt=Object(O.a)(S.a.mark(function Zt(){return S.a.wrap(function(rn){for(;;)switch(rn.prev=rn.next){case 0:ct?ei():Ri();case 1:case"end":return rn.stop()}},Zt)}));function Lt(){return Nt.apply(this,arguments)}return Lt}()})):E.a.info({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u77E5\u9053\u5566",content:C.a.createElement("div",{className:"tc font16"},ct?"\u5728".concat(Fe()(rt.end_time).format("YYYY-MM-DD HH:mm"),"\u4E4B\u524D\uFF0C\u5141\u8BB8\u4FEE\u6539\u7B54\u9898"):"\u63D0\u4EA4\u540E\u65E0\u6CD5\u518D\u4FEE\u6539\u7B54\u9898\uFF0C\u662F\u5426\u786E\u8BA4\u63D0\u4EA4\uFF1F"),onOk:function(){var Nt=Object(O.a)(S.a.mark(function Zt(){return S.a.wrap(function(rn){for(;;)switch(rn.prev=rn.next){case 0:ct?ei():Ri();case 1:case"end":return rn.stop()}},Zt)}));function Lt(){return Nt.apply(this,arguments)}return Lt}()});case 6:case"end":return It.stop()}},me)}));return function(ct){return Ut.apply(this,arguments)}}(),Yi=function(me){return C.a.createElement("div",null,C.a.createElement(n.a,{strokeColor:{from:"#108ee9",to:"#87d068"},status:"active",percent:me}),C.a.createElement("div",{className:"c-grey-c tc mt10 mb20"},"\u6B63\u5728\u5224\u5206\u4E2D\u2026"))},ao=function(){var me=0,ct=E.a.info({title:"\u4EA4\u5377\u4E2D",icon:null,className:"modal-footer-none",content:Yi(me)}),rt=setInterval(function(){me<=100?(me+=2,ct.update({content:Yi(me)})):(ct.destroy(),clearInterval(rt))},50)},Ri=function(){var Ut=Object(O.a)(S.a.mark(function me(){var ct;return S.a.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return ao(),_t.next=3,Object(ye.ab)({categoryId:ot.categoryId,commit_method:1});case 3:ct=_t.sent,Object(te.b)(),Q({type:"exercise/setActionTabs",payload:Object(v.a)({},{removeEventListenerExitScreen:!0})}),(ct==null?void 0:ct.status)===0&&(u.b.success(ct==null?void 0:ct.message),_r(!1),setTimeout(function(){E.a.info({title:"\u4EA4\u5377\u6210\u529F\uFF01",okText:"\u786E\u5B9A",onOk:function(){ei()}})},3e3));case 7:case"end":return _t.stop()}},me)}));return function(){return Ut.apply(this,arguments)}}(),oo=function(){var Ut=Object(O.a)(S.a.mark(function me(ct,rt,_t,mt){return S.a.wrap(function(Nt){for(;;)switch(Nt.prev=Nt.next){case 0:mr(rt,ct,null,function(){ve.question_status.find(function(Lt){return Lt.ques_id===rt}).ques_status=ct?1:0,mt.user_answer=[],mt.user_answer.push(ct),mt.repeat_answer||(mt.israp=!0),Gt(Object(v.a)({},ve))});case 1:case"end":return Nt.stop()}},me)}));return function(ct,rt,_t,mt){return Ut.apply(this,arguments)}}(),Ra=function(){var Ut=Object(O.a)(S.a.mark(function me(ct,rt,_t,mt,It){return S.a.wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:mr(mt.question_id,ct,null,function(){var Zt,jt,rn;mt.user_answer=[],mt.user_answer.push(ct);var Mn=It==null||((Zt=It.sub_exercise_questions)===null||Zt===void 0)?void 0:Zt.filter(function(Nn){var In;return((In=Nn.user_answer)===null||In===void 0?void 0:In.length)===0});ve.question_status.find(function(Nn){return Nn.ques_id===rt}).ques_status=(Mn==null?void 0:Mn.length)===(It==null||((jt=It.sub_exercise_questions)===null||jt===void 0)?void 0:jt.length)?0:(Mn==null?void 0:Mn.length)>0&&(Mn==null?void 0:Mn.length)<(It==null||((rn=It.sub_exercise_questions)===null||rn===void 0)?void 0:rn.length)?2:1,Gt(Object(v.a)({},ve))});case 1:case"end":return Lt.stop()}},me)}));return function(ct,rt,_t,mt,It){return Ut.apply(this,arguments)}}(),Oa=function(me,ct,rt){mr(ct,me,null,function(){rt.user_answer=me,rt.repeat_answer||(rt.israp=!0),ve.question_status.find(function(_t){return _t.ques_id===ct}).ques_status=me!=null&&me.length?1:0,Gt(Object(v.a)({},ve))})},bi=function(me,ct,rt,_t,mt){if(!me.replaceAll(" ","")){u.b.warning("\u56DE\u7B54\u4E0D\u80FD\u4E3A\u7A7A\u6216\u8005\u7EAF\u7A7A\u683C"),Vr();return}mr(rt,ct,me,function(){ve.question_status.find(function(Nt){return Nt.ques_id===rt}).ques_status=_t.every(function(Nt){return!!Nt.answer_text})?1:ve.question_status.find(function(Nt){return Nt.ques_id===rt}).ques_status=_t.some(function(Nt){return!!Nt.answer_text})?2:0;var It={choice_id:ct,answer_text:me};mt.user_answer.filter(function(Nt){return Nt.choice_id!=ct})?mt.user_answer.splice(ct-1,1,It):mt.user_answer.push(It),mt.repeat_answer||(mt.israp=!0),Gt(Object(v.a)({},ve))})},La=function(me,ct,rt){if(!me.replaceAll(" ","")){u.b.warning("\u56DE\u7B54\u4E0D\u80FD\u4E3A\u7A7A\u6216\u8005\u7EAF\u7A7A\u683C"),Vr();return}mr(ct,null,me,function(){ve.question_status.find(function(_t){return _t.ques_id===ct}).ques_status=me?1:0,rt.user_answer=[],rt.user_answer.push(me),rt.repeat_answer||(rt.israp=!0),Gt(Object(v.a)({},ve))})},Ji=function(me,ct){var rt,_t,mt,It,Nt,Lt;return C.a.createElement("div",null,C.a.createElement(m.a.Group,{disabled:!!(ve!=null&&ve.exercise.commit_status),defaultValue:me==null||((rt=me.user_answer)===null||rt===void 0)?void 0:rt[0],onChange:function(jt){return oo(jt.target.value,me==null?void 0:me.question_id,ct,me)},className:me.user_score&&"edu-radio-".concat(me.user_score===me.question_score?"green":"red")},me==null||((_t=me.question_choices)===null||_t===void 0)?void 0:_t.map(function(Zt,jt){var rn,Mn=me.question_type==2,Nn=Mn?"":"".concat(Be[jt],".");return C.a.createElement("div",{className:_e.a.answerWrap,key:jt},C.a.createElement(m.a,{disabled:!me.repeat_answer&&(me==null||((rn=me.user_answer)===null||rn===void 0)?void 0:rn.length)>0&&!me.israp,value:Zt==null?void 0:Zt.choice_id},C.a.createElement("span",{className:"mr3"},Nn),C.a.createElement(Le.a,{className:_e.a.renderHtml,value:Zt==null?void 0:Zt.choice_text})))})),Object(he.s)()&&(ve==null||((mt=ve.exercise)===null||mt===void 0)?void 0:mt.answer_open)&&((ve==null||((It=ve.exercise)===null||It===void 0)?void 0:It.exercise_status)==3||(ve==null||((Nt=ve.exercise)===null||Nt===void 0)?void 0:Nt.user_exercise_status)==1)&&C.a.createElement("div",null,"\u53C2\u8003\u7B54\u6848\uFF1A",me==null||((Lt=me.standard_answer)===null||Lt===void 0)?void 0:Lt.map(function(Zt,jt){return C.a.createElement("span",null,Be[Number(Zt)-1])})))},Zi=function(me,ct,rt){var _t;return C.a.createElement("div",null,me==null||((_t=me.sub_exercise_questions)===null||_t===void 0)?void 0:_t.map(function(mt,It){var Nt,Lt,Zt,jt,rn,Mn;return C.a.createElement("div",null,C.a.createElement("div",{style:{display:"flex",marginTop:20,userSelect:"none"}},C.a.createElement("span",{style:{flexShrink:0},className:"font18"},rt+1+"."+(It+1),"\uFF08\u5355\u9009\u9898\uFF09"),C.a.createElement(Le.a,{value:mt==null?void 0:mt.question_title}),C.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",mt==null?void 0:mt.question_score,"\u5206\uFF09")),C.a.createElement(m.a.Group,{disabled:!!(ve!=null&&ve.exercise.commit_status),defaultValue:mt==null||((Nt=mt.user_answer)===null||Nt===void 0)?void 0:Nt[0],onChange:function(In){return Ra(In.target.value,me==null?void 0:me.question_id,It,mt,me)},className:mt.user_score&&"edu-radio-".concat(mt.user_score===mt.question_score?"green":"red")},mt==null||((Lt=mt.question_choices)===null||Lt===void 0)?void 0:Lt.map(function(Nn,In){var ui,Ua=mt.question_type==2,Li=Ua?"":"".concat(Be[In],".");return C.a.createElement("div",{className:_e.a.answerWrap,key:In},C.a.createElement(m.a,{disabled:!mt.repeat_answer&&(mt==null||((ui=mt.user_answer)===null||ui===void 0)?void 0:ui.length)>0,value:Nn==null?void 0:Nn.choice_id},C.a.createElement("span",{className:"mr3"},Li),C.a.createElement(Le.a,{className:_e.a.renderHtml,value:Nn==null?void 0:Nn.choice_text})))})),Object(he.s)()&&(ve==null||((Zt=ve.exercise)===null||Zt===void 0)?void 0:Zt.answer_open)&&((ve==null||((jt=ve.exercise)===null||jt===void 0)?void 0:jt.exercise_status)==3||(ve==null||((rn=ve.exercise)===null||rn===void 0)?void 0:rn.user_exercise_status)==1)&&C.a.createElement("div",null,"\u53C2\u8003\u7B54\u6848\uFF1A",mt==null||((Mn=mt.standard_answer)===null||Mn===void 0)?void 0:Mn.map(function(Nn,In){return C.a.createElement("span",null,Be[Number(Nn)-1])})))}))},Oi=function(me,ct){var rt,_t,mt,It;return C.a.createElement("div",null,C.a.createElement(y.a.Group,{disabled:!!(ve!=null&&ve.exercise.commit_status),defaultValue:me==null?void 0:me.user_answer,onChange:function(Lt){return Oa(Lt,me==null?void 0:me.question_id,me)},className:me.user_score&&"edu-checkbox-".concat(me.user_score===me.question_score?"green":"red")},me==null||((rt=me.question_choices)===null||rt===void 0)?void 0:rt.map(function(Nt,Lt){var Zt,jt="".concat(Be[Lt],".");return C.a.createElement("div",{className:_e.a.answerWrap},C.a.createElement(y.a,{disabled:!me.repeat_answer&&(me==null||((Zt=me.user_answer)===null||Zt===void 0)?void 0:Zt.length)>0&&!me.israp,value:Nt==null?void 0:Nt.choice_id},C.a.createElement("span",{className:"mr3"},jt),C.a.createElement(Le.a,{className:_e.a.renderHtml,value:Nt==null?void 0:Nt.choice_text})))})),Object(he.s)()&&(ve==null||((_t=ve.exercise)===null||_t===void 0)?void 0:_t.answer_open)&&(ve==null||((mt=ve.exercise)===null||mt===void 0)?void 0:mt.exercise_status)==3&&C.a.createElement("div",null,"\u53C2\u8003\u7B54\u6848\uFF1A",me==null||((It=me.standard_answer)===null||It===void 0)?void 0:It.map(function(Nt,Lt){return C.a.createElement("span",null,Be[Number(Nt)-1])})))},Ma=function(me,ct){return C.a.createElement(nt,{item:me,sign:xn,answerData:ve,answerCheckData:Wn,onBlur:function(_t,mt,It){return bi(_t,mt,me==null?void 0:me.question_id,It,me)}})},qi=function(me,ct){return C.a.createElement(Se,{item:me,answerData:ve,sign:xn,onBlur:function(_t){return La(_t,me==null?void 0:me.question_id,me)}})},Pr=function(me,ct){return C.a.createElement(pt,{item:me,answerData:ve})},Ia=function(me,ct){return C.a.createElement(Oe,{item:me,answerData:ve})},Kr=function(me,ct,rt){var _t,mt,It=ve==null||((_t=ve.exercise_question_types)===null||_t===void 0)?void 0:_t.find(function(Nt){return Nt.question_type===ct});return C.a.createElement(C.a.Fragment,null,C.a.createElement("h1",{className:"font14 current",onClick:function(){fr[ct]=!fr[ct],Vn(Object(v.a)({},fr))}},!fr[ct]&&C.a.createElement(F.a,null),fr[ct]&&C.a.createElement(q.a,null),C.a.createElement("span",{className:"ml5 c-grey-666"},me)),C.a.createElement("ul",{className:_e.a.answerSheet,key:ct},!fr[ct]&&(It==null||((mt=It.items)===null||mt===void 0)?void 0:mt.map(function(Nt,Lt){if(Nt.question_type===ct){var Zt,jt;return C.a.createElement("li",{onClick:function(){if(xn.current){xn.current="appoint",Hn.current={oneindex:rt,twoindex:Lt};return}Ba({oneindex:rt,twoindex:Lt})},key:Lt,className:(ve==null||((Zt=ve.question_status)===null||Zt===void 0)?void 0:Zt.some(function(rn){return rn.ques_id===Nt.question_id&&(rn==null?void 0:rn.ques_status)===1}))&&_e.a.active},Lt+1,(ve==null||((jt=ve.question_status)===null||jt===void 0)?void 0:jt.some(function(rn){return rn.ques_id===Nt.question_id&&(rn==null?void 0:rn.ques_status)===2}))&&C.a.createElement("div",{style:{height:3,background:"#0152d9",position:"absolute",width:26,bottom:0}}))}}))))},$i=function(me,ct){var rt,_t,mt,It,Nt,Lt,Zt=(me==null?void 0:me.question_type)==5?me==null?void 0:me.shixun_name:me==null?void 0:me.question_title;return C.a.createElement("div",{className:_e.a.questionItem,id:"Anchor_".concat(me==null?void 0:me.question_type,"_").concat(ct)},C.a.createElement("div",{style:{display:"flex",marginTop:20,userSelect:"none"}},C.a.createElement("span",{style:{flexShrink:0},className:"font18"},ct+1,"."),C.a.createElement(Le.a,{value:me==null?void 0:me.question_title}),C.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",(me==null?void 0:me.question_type)===7?"\u5171".concat(me==null||((rt=me.sub_exercise_questions)===null||rt===void 0)?void 0:rt.length,"\u5C0F\u9898\uFF0C"):"",me==null?void 0:me.question_score,"\u5206\uFF09"),!(me!=null&&me.repeat_answer)&&C.a.createElement("span",{style:{color:"#FA6400 ",marginLeft:10,fontSize:16}},"\u6CE8\u610F\uFF1A\u8BE5\u9898\u4E0D\u5141\u8BB8\u91CD\u590D\u7B54\u9898"),!!(me!=null&&(_t=me.schools)!==null&&_t!==void 0&&_t.length)&&C.a.createElement(g.a,{title:"\u8BE5\u5B9E\u8BAD\u9898\u9762\u5411\u6307\u5B9A\u5355\u4F4D\u5F00\u653E"},C.a.createElement("i",{className:"iconfont icon-zhidinggongkai1 line24 font18 c-orange"}))),(me==null?void 0:me.question_type)==0&&Ji(me,me==null?void 0:me.question_type),(me==null?void 0:me.question_type)==2&&Ji(me,me==null?void 0:me.question_type),(me==null?void 0:me.question_type)==1&&Oi(me,me==null?void 0:me.question_type),(me==null?void 0:me.question_type)==3&&Ma(me,me==null?void 0:me.question_type),(me==null?void 0:me.question_type)==4&&qi(me,me==null?void 0:me.question_type),(me==null?void 0:me.question_type)==5&&Pr(me,me==null?void 0:me.question_type),(me==null?void 0:me.question_type)==6&&Ia(me,me==null?void 0:me.question_type),(me==null?void 0:me.question_type)==7&&Zi(me,me==null?void 0:me.question_type,ct),!!(me!=null&&(mt=me.answer_comments)!==null&&mt!==void 0&&mt.length)&&C.a.createElement("div",{className:"mt30"},me==null||((It=me.answer_comments)===null||It===void 0)?void 0:It.map(function(jt,rn){var Mn,Nn;return C.a.createElement("div",null,C.a.createElement(U.a,{align:"middle",gutter:[0,10]},C.a.createElement(R.a,{flex:"50px"},C.a.createElement("img",{src:Je.a.API_SERVER+"/images/"+((Mn=jt.user)===null||Mn===void 0?void 0:Mn.image_url),width:"40",style:{borderRadius:40}})),C.a.createElement(R.a,{flex:"1"},jt.updated_at,C.a.createElement("br",null),(Nn=jt.user)===null||Nn===void 0?void 0:Nn.name),C.a.createElement(R.a,{className:"c-grey-c"},jt.shixun_chanllge_position&&C.a.createElement("span",null,"\u7B2C",jt.shixun_chanllge_position,"\u5173"),me.question_type!==4&&C.a.createElement("span",null,"\u539F\u59CB\u5F97\u5206",jt.origin_score,"\u5206 \uFF0C")," \u4FEE\u6B63\u4E3A",jt.score,"\u5206")),jt.comment&&C.a.createElement(U.a,{align:"middle",gutter:[0,10]},C.a.createElement(R.a,{flex:"50px"}),C.a.createElement(R.a,{flex:"1"},C.a.createElement(Ee,{autoSize:!0,value:jt.comment,disabled:!0}))))})),C.a.createElement("div",{className:_e.a.itemType},C.a.createElement(U.a,null,C.a.createElement(R.a,{flex:"1"}),C.a.createElement(R.a,null,(me==null?void 0:me.question_type)<3&&(me==null?void 0:me.standard_answer_show)&&C.a.createElement("span",{className:"font16 ml20"},"\u6B63\u786E\u7B54\u6848\uFF1A",me==null?void 0:me.standard_answer_show),C.a.createElement("span",{className:"font16 ml20"},(me==null?void 0:me.user_score)!==null&&(me==null?void 0:me.user_score)>=0&&C.a.createElement("span",null,C.a.createElement("span",{className:bt[Number(me==null?void 0:me.answer_status)]||"c-orange-ff9"},me==null?void 0:me.user_score)," \u5206")),(me==null?void 0:me.question_type)==5&&!((Nt=ve.exercise)!==null&&Nt!==void 0&&Nt.commit_status)&&C.a.createElement(M.a,{type:"primary",className:"font16 ml20",onClick:function(){return Xi(me)}},"\u8FDB\u5165\u7B54\u9898"),(me==null?void 0:me.question_type)==6&&!((Lt=ve.exercise)!==null&&Lt!==void 0&&Lt.commit_status)&&C.a.createElement(M.a,{type:"primary",className:"font16 ml20",onClick:function(){return li(me)}},"\u8FDB\u5165\u7B54\u9898")))))},_a=function(me,ct){return C.a.createElement(I.Fragment,null,me.question_type===0&&Kr("\u5355\u9009\u9898",0,ct),me.question_type===1&&Kr("\u591A\u9009\u9898",1,ct),me.question_type===2&&Kr("\u5224\u65AD\u9898",2,ct),me.question_type===3&&Kr("\u586B\u7A7A\u9898",3,ct),me.question_type===4&&Kr("\u7B80\u7B54\u9898",4,ct),me.question_type===5&&Kr("\u5B9E\u8BAD\u9898",5,ct),me.question_type===6&&Kr("\u7F16\u7A0B\u9898",6,ct),me.question_type===7&&Kr("\u7EC4\u5408\u9898",7,ct))},ka=function(me){var ct=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],rt=["","\u5341","\u767E","\u5343","\u4E07"];me=parseInt(me);var _t=function(Lt){for(var Zt=Lt.toString().split("").reverse(),jt="",rn=0;rn0&&Zt[rn]==0&&Zt[rn-1]==0?"":ct[Zt[rn]]+(Zt[rn]==0?rt[0]:rt[rn]))+jt;return jt},mt=Math.floor(me/1e4),It=me%1e4;return It.toString().length<4&&(It="0"+It),mt?_t(mt)+"\u4E07"+_t(It):_t(me)},ea=function(){var me,ct,rt,_t,mt,It,Nt,Lt,Zt,jt,rn,Mn,Nn;return C.a.createElement(I.Fragment,{key:Ht},C.a.createElement("div",{className:"pt20"},C.a.createElement("span",{className:"font16 c-light-primary"},ka(Ht+1),"\u3001",ve==null||((me=ve.exercise_question_types)===null||me===void 0||((ct=me[Ht])===null||ct===void 0))?void 0:ct.name),C.a.createElement("span",{className:"c-grey-999"},"\uFF08\u5171",ve==null||((rt=ve.exercise_question_types)===null||rt===void 0||((_t=rt[Ht])===null||_t===void 0))?void 0:_t.count,"\u9898\uFF1B",(ve==null||((mt=ve.exercise_question_types)===null||mt===void 0||((It=mt[Ht])===null||It===void 0))?void 0:It.question_type)===7?"\u5305\u542B".concat(ve==null||((Nt=ve.exercise_question_types)===null||Nt===void 0||((Lt=Nt[Ht])===null||Lt===void 0))?void 0:Lt.sub_questions_count,"\u5C0F\u9898"):""," \u5171",ve==null||((Zt=ve.exercise_question_types)===null||Zt===void 0||((jt=Zt[Ht])===null||jt===void 0))?void 0:jt.score,"\u5206\uFF09")),C.a.createElement(I.Fragment,{key:Kt},$i(ve==null||((rn=ve.exercise_question_types)===null||rn===void 0||((Mn=rn[Ht])===null||Mn===void 0||((Nn=Mn.items)===null||Nn===void 0)))?void 0:Nn[Kt],Kt)))},Pa=function(){var me;if(!ai&&(ve==null||((me=ve.exercise)===null||me===void 0)?void 0:me.user_exercise_status)===0&&Object(he.s)()){var ct,rt,_t,mt;if(!((ct=ve.exercise_question_types)!==null&&ct!==void 0&&(rt=ct[Ht])!==null&&rt!==void 0&&(_t=rt.items)!==null&&_t!==void 0&&(mt=_t[Kt])!==null&&mt!==void 0&&mt.repeat_answer)){Rr(!0),wi(1);return}}ve.exercise_question_types[Ht].items[Kt].israp=!1,Gt(Object(v.a)({},ve)),Kt===0?(Ht-=1,Kt=ve.exercise_question_types[Ht].items.length-1):Kt-=1,_n(Ht),pn(Kt)},Na=function(){var me;if(!ai&&(ve==null||((me=ve.exercise)===null||me===void 0)?void 0:me.user_exercise_status)===0&&Object(he.s)()){var ct,rt,_t,mt;if(!((ct=ve.exercise_question_types)!==null&&ct!==void 0&&(rt=ct[Ht])!==null&&rt!==void 0&&(_t=rt.items)!==null&&_t!==void 0&&(mt=_t[Kt])!==null&&mt!==void 0&&mt.repeat_answer)){Rr(!0),wi(2);return}}ve.exercise_question_types[Ht].items[Kt].israp=!1,Gt(Object(v.a)({},ve)),ve.exercise_question_types[Ht].items.length-1===Kt?(Ht=Ht+1,Kt=0):Kt=Kt+1,_n(Ht),pn(Kt)},Ba=function(me){var ct,rt=me||Hn.current;if(!ai&&(ve==null||((ct=ve.exercise)===null||ct===void 0)?void 0:ct.user_exercise_status)===0&&Object(he.s)()){var _t,mt,It,Nt;if(!((_t=ve.exercise_question_types)!==null&&_t!==void 0&&(mt=_t[Ht])!==null&&mt!==void 0&&(It=mt.items)!==null&&It!==void 0&&(Nt=It[Kt])!==null&&Nt!==void 0&&Nt.repeat_answer)){Rr(!0),wi(3),Gr(rt);return}}_n(rt==null?void 0:rt.oneindex),pn(rt==null?void 0:rt.twoindex)},Vr=function(){var me;switch(xn.current){case"prev":Pa();break;case"next":Na();break;case"appoint":Ba();break;case"submit":Qi(!1);break;default:}((me=document.activeElement)===null||me===void 0?void 0:me.localName)==="textarea"?xn.current=!0:xn.current=!1,Hn.current={}};return C.a.createElement(K.a,{size:"large",spinning:Mr},hn&&C.a.createElement(Ae.a,{iframe:gn}),C.a.createElement("iframe",{style:{display:Zr},id:"iframeShixuns",className:_e.a.iframe,src:rr,ref:gn,frameBorder:"0"}),C.a.createElement("section",{className:"edu-container"},C.a.createElement("section",{className:"animated fadeIn"},C.a.createElement("aside",{className:"mt10"},L.showHeaderFooter&&ot.coursesId!=="coursesId"&&C.a.createElement(z.a,{separator:">"},C.a.createElement(z.a.Item,null,C.a.createElement(Y.a,{to:"/classrooms/".concat(ot.coursesId,"/exercise")},(se=J.userInfo)===null||se===void 0||((fe=se.course)===null||fe===void 0)?void 0:fe.course_name)),C.a.createElement(z.a.Item,null,C.a.createElement(Y.a,{to:"/classrooms/".concat(ot.coursesId,"/exercise")},"\u8BD5\u5377")),C.a.createElement(z.a.Item,null,C.a.createElement(Y.a,{to:"/classrooms/".concat(ot.coursesId,"/exercise/").concat(ot.categoryId,"/detail")},"\u8BD5\u5377\u8BE6\u60C5")),C.a.createElement(z.a.Item,null,($e=J.userInfo)===null||$e===void 0?void 0:$e.real_name)),L.showHeaderFooter&&ot.coursesId==="coursesId"&&C.a.createElement(z.a,{separator:">"},C.a.createElement(z.a.Item,null,C.a.createElement(Y.a,{to:"/paperlibrary"},"\u8BD5\u5377\u5E93")),C.a.createElement(z.a.Item,null,(Pe=J.userInfo)===null||Pe===void 0?void 0:Pe.real_name))),C.a.createElement("aside",{className:[_e.a.title,"mt10"].join(" ")},C.a.createElement(U.a,{style:{width:"100%"},align:"middle"},C.a.createElement(R.a,{flex:"1"},C.a.createElement("div",{className:_e.a.title},(L==null?void 0:L.showHeaderFooter)&&C.a.createElement(Y.a,{to:ot.coursesId==="coursesId"?"/paperlibrary":"/classrooms/".concat(ot.coursesId,"/exercise/").concat(ot.categoryId,"/detail")},C.a.createElement(le.a,{className:"font16 c-black"})),C.a.createElement("strong",{className:"font24 ml5"},ve==null||((it=ve.exercise)===null||it===void 0)?void 0:it.exercise_name),(ve==null||((at=ve.exercise)===null||at===void 0)?void 0:at.is_random)&&C.a.createElement("span",{className:_e.a.randomFlag},"\u968F\u673A"),C.a.createElement(je.k,{status:[je.c[99]]}))),C.a.createElement(R.a,{style:{display:"flex"}},(ve==null||((Ne=ve.user_score)===null||Ne===void 0)?void 0:Ne.length)&&C.a.createElement("div",null,"\u6A21\u62DF\u8003\u8BD5\u603B\u5F97\u5206\uFF1A",C.a.createElement("span",{className:"c-red"},ve==null?void 0:ve.user_score)," \u5206"),!!(ve!=null&&(Ve=ve.exercise)!==null&&Ve!==void 0&&Ve.time)&&!(ve!=null&&(tt=ve.exercise)!==null&&tt!==void 0&&tt.commit_status)&&C.a.createElement("aside",{className:"".concat(_e.a.countDown," ").concat(Xt)},"\u5269\u4F59\u65F6\u95F4:",C.a.createElement(ce,{value:bn,onFinish:ro})),!(ve!=null&&(ft=ve.exercise)!==null&&ft!==void 0&&ft.commit_status)&&C.a.createElement(M.a,{className:_e.a.submitButton,style:{marginLeft:20},type:"primary",onClick:function(){if(xn.current){xn.current="submit";return}Qi(!1)}},"\u4EA4\u5377"))))),En.status===0&&C.a.createElement(U.a,{className:"mt10"},C.a.createElement(R.a,{flex:Tr?"316px":"16px"},C.a.createElement("section",{style:{position:"sticky",top:0,zIndex:1}},Ur&&C.a.createElement(pe.a,{number:(ve==null||((Ct=ve.exercise)===null||Ct===void 0)?void 0:Ct.photo_count)-(ve==null||((zt=ve.exercise)===null||zt===void 0)?void 0:zt.take_photo),time:(qt=ve.exercise)===null||qt===void 0?void 0:qt.left_time,update:dr,supportCamera:function(me){me===2?(dr(),Pn(Wn==null?void 0:Wn.screen_open)):me===1&&setTimeout(function(){return De.history.push("/")},3e3)}}),C.a.createElement("div",{className:"relative",style:{minHeight:236}},Tr&&C.a.createElement("aside",{className:"bg-white p16"},C.a.createElement(U.a,null,C.a.createElement(R.a,{span:8},C.a.createElement("span",{className:"font16 blod"},"\u7B54\u9898\u5361")),C.a.createElement(R.a,{span:16},C.a.createElement("div",{className:"tr",style:{display:"flex",alignItems:"center",justifyContent:"end"}},C.a.createElement("span",{className:_e.a.answerYes}),"\u5DF2\u7B54",C.a.createElement("span",{style:{width:13,height:13,display:"flex",flexDirection:"column-reverse"},className:"".concat(_e.a.answerNo," ml10")},C.a.createElement("div",{style:{height:"10%",background:"#0152d9"}})),"\u90E8\u5206\u7B54\u9898",C.a.createElement("span",{className:"".concat(_e.a.answerNo," ml10")}),"\u672A\u7B54"))),C.a.createElement("aside",{className:_e.a.answerInfo},C.a.createElement(U.a,null,C.a.createElement(C.a.Fragment,null,C.a.createElement(R.a,{span:12},"\u7B54\u9898\u8FDB\u5EA6"),C.a.createElement(R.a,{span:12,className:"tr c-blue"},ve==null||((Qt=ve.question_status)===null||Qt===void 0||((St=Qt.filter(function(Ut){return(Ut==null?void 0:Ut.ques_status)===1}))===null||St===void 0))?void 0:St.length," / ",ve==null||((ln=ve.exercise_types)===null||ln===void 0)?void 0:ln.q_counts),C.a.createElement(R.a,{span:24},C.a.createElement(n.a,{trailColor:"#c3ced2",percent:(ve==null||((Bt=ve.question_status)===null||Bt===void 0||((Yt=Bt.filter(function(Ut){return(Ut==null?void 0:Ut.ques_status)===1}))===null||Yt===void 0))?void 0:Yt.length)/(ve==null||((Mt=ve.exercise_types)===null||Mt===void 0)?void 0:Mt.q_counts)*100,showInfo:!1}))),C.a.createElement(R.a,null,C.a.createElement("span",{className:"c-grey-333"},"\u5171 ",C.a.createElement("span",{className:"c-blue-4ca"},(ve==null||((tn=ve.exercise_types)===null||tn===void 0)?void 0:tn.q_counts)||(ve==null||((mn=ve.exercise_scores)===null||mn===void 0||((An=mn.exercise_types)===null||An===void 0))?void 0:An.q_counts))," \u9898\uFF1A"),C.a.createElement("span",{className:"c-grey-333"},"\u6EE1\u5206 ",C.a.createElement("span",{className:"c-blue-4ca"},(ve==null||((lt=ve.exercise_types)===null||lt===void 0)?void 0:lt.q_scores)||(ve==null||((Rt=ve.exercise_scores)===null||Rt===void 0||((Jt=Rt.exercise_types)===null||Jt===void 0))?void 0:Jt.q_scores))," \u5206")))),C.a.createElement(U.a,null,C.a.createElement(R.a,{flex:"1"},C.a.createElement("aside",{className:_e.a.cardList},ve==null||((nn=ve.exercise_question_types)===null||nn===void 0)?void 0:nn.map(function(Ut,me){return C.a.createElement(I.Fragment,{key:Ut.question_type},_a(Ut,me))}))))),C.a.createElement("div",{className:_e.a.fold,onClick:function(){return Yr(!Tr)}},Tr&&C.a.createElement("span",{className:"icon-zuojiantou iconfont c-grey-c"}),!Tr&&C.a.createElement("span",{className:"icon-youjiantou iconfont c-grey-c"}))))),C.a.createElement(R.a,{flex:"1"},C.a.createElement("section",{className:[_e.a.bg,"pl30","pr30","pb30","mb50","ml20"].join(" ")},C.a.createElement("div",{style:{maxHeight:600,overflow:"hidden auto"}},ea()),C.a.createElement("div",{style:{marginTop:60,textAlign:"center",paddingRight:30}},(Ht!=0||Kt!=0)&&C.a.createElement(M.a,{className:"".concat(_e.a.submitButton," mr10"),type:"default",onClick:function(){if(xn.current){xn.current="prev";return}Pa()}},"\u4E0A\u4E00\u9898"),!(Ht===(ve==null||((un=ve.exercise_question_types)===null||un===void 0)?void 0:un.length)-1&&Kt===(ve==null||((cn=ve.exercise_question_types)===null||cn===void 0||((G=cn[Ht])===null||G===void 0||((b=G.items)===null||b===void 0)))?void 0:b.length)-1)&&C.a.createElement(M.a,{className:_e.a.submitButton,type:"primary",onClick:function(){if(xn.current){xn.current="next";return}Na()}},"\u4E0B\u4E00\u9898")))),C.a.createElement(E.a,{title:"\u6CE8\u610F",visible:qr,onCancel:function(){return Rr(!1)},footer:!1},C.a.createElement("div",null,C.a.createElement("p",{style:{marginBottom:0}},"\u79BB\u5F00\u8BE5\u9898\u540E\u4E0D\u5141\u8BB8\u518D\u6B21\u4FEE\u6539\u7B54\u6848\uFF0C\u786E\u8BA4\u79BB\u5F00\u5417\uFF1F"),C.a.createElement("div",{style:{marginTop:60,display:"flex",justifyContent:"space-between"}},C.a.createElement(y.a,{checked:ai,onChange:function(me){Gi(me.target.checked)}},"\u4E0B\u6B21\u4E0D\u518D\u663E\u793A"),C.a.createElement("div",null,C.a.createElement(M.a,{onClick:function(){ve.exercise_question_types[Ht].items[Kt].israp?(ve.exercise_question_types[Ht].items[Kt].israp=!0,Gt(Object(v.a)({},ve))):ve.exercise_question_types[Ht].items[Kt].israp===""&&(ve.exercise_question_types[Ht].items[Kt].israp=!0,Gt(Object(v.a)({},ve)))}},"\u6211\u518D\u60F3\u60F3"),C.a.createElement(M.a,{onClick:function(){ve.exercise_question_types[Ht].items[Kt].israp=!1,Gt(Object(v.a)({},ve)),Sa===1?(Kt===0?(Ht-=1,Kt=ve.exercise_question_types[Ht].items.length-1):Kt-=1,console.log(ve.exercise_question_types[Ht].items[Kt],"-----"),_n(Ht),pn(Kt)):Sa===2?(ve.exercise_question_types[Ht].items.length-1===Kt?(Ht=Ht+1,Kt=0):Kt=Kt+1,_n(Ht),pn(Kt)):(_n(oi.oneindex),pn(oi.twoindex)),Rr(!1)},type:"primary",style:{marginLeft:30}},"\u786E\u8BA4")))))),En.status!==0&&C.a.createElement(re,{data:En})))},gt=de.default=Object(H.a)(function(qe){var Xe=qe.loading,ke=qe.user,se=qe.globalSetting;return{globalSetting:se,user:ke,loading:Xe.effects}})(xt)},cRFk:function(et,de,N){et.exports=N.p+"static/RepositoryNoneData.828085a8.png"},csWT:function(et,de,N){et.exports=N.p+"static/choose.4ad1045f.svg"},dejd:function(et,de,N){},djh8:function(et,de,N){et.exports=N.p+"static/qrCode.42927872.png"},dmUQ:function(et,de,N){"use strict";var ee=N("Ff2n"),K=N("rePB"),k=N("1OyB"),z=N("vuIU"),B=N("Ji7U"),M=N("md7G"),j=N("foSv"),U=N("q1tI"),_=N.n(U),R=N("TSYQ"),c=N.n(R),g=N("4IlW");function w(s,l){var D=Object.keys(s);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(s);l&&(T=T.filter(function(S){return Object.getOwnPropertyDescriptor(s,S).enumerable})),D.push.apply(D,T)}return D}function y(s){for(var l=1;l1?pe-1:0),Ge=1;Ge1?H-1:0),q=1;q=0)return parseInt(Y.slice(Y.indexOf("e-")+2),10);var H=0;return Y.indexOf(".")>=0&&(H=Y.length-Y.indexOf(".")-1),H},S.getInputDisplayValue=function(W){var Y=W||S.state,H=Y.focused,F=Y.inputValue,q=Y.value,le;H?le=F:le=S.toPrecisionAsStep(q),le==null&&(le="");var pe=S.formatWrapper(le);return v(S.props.decimalSeparator)&&(pe=pe.toString().replace(".",S.props.decimalSeparator)),pe},S.recordCursorPosition=function(){try{S.cursorStart=S.input.selectionStart,S.cursorEnd=S.input.selectionEnd,S.currentValue=S.input.value,S.cursorBefore=S.input.value.substring(0,S.cursorStart),S.cursorAfter=S.input.value.substring(S.cursorEnd)}catch(W){}},S.restoreByAfter=function(W){if(W===void 0)return!1;var Y=S.input.value,H=Y.lastIndexOf(W);if(H===-1)return!1;var F=S.cursorBefore.length;return S.lastKeyCode===g.a.DELETE&&S.cursorBefore.charAt(F-1)===W[0]?(S.fixCaret(F,F),!0):H+W.length===Y.length?(S.fixCaret(H,H),!0):!1},S.partRestoreByAfter=function(W){return W===void 0?!1:Array.prototype.some.call(W,function(Y,H){var F=W.substring(H);return S.restoreByAfter(F)})},S.isNotCompleteNumber=function(W){return isNaN(W)||W===""||W===null||W&&W.toString().indexOf(".")===W.toString().length-1},S.stop=function(){S.autoStepTimer&&clearTimeout(S.autoStepTimer)},S.down=function(W,Y,H){S.pressingUpOrDown=!0,S.step("down",W,Y,H)},S.up=function(W,Y,H){S.pressingUpOrDown=!0,S.step("up",W,Y,H)},S.saveInput=function(W){S.input=W};var I=T.value;I===void 0&&(I=T.defaultValue),S.state={focused:T.autoFocus};var C=S.getValidValue(S.toNumber(I));return S.state=y(y({},S.state),{},{inputValue:S.toPrecisionAsStep(C),value:C}),S}return Object(z.a)(D,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(S){var I=this.props,C=I.value,W=I.onChange,Y=I.max,H=I.min,F=this.state.focused;if(S){if(!O(S.value,C)||!O(S.max,Y)||!O(S.min,H)){var q=F?C:this.getValidValue(C),le;this.pressingUpOrDown?le=q:this.inputting?le=this.rawInput:le=this.toPrecisionAsStep(q),this.setState({value:q,inputValue:le})}var pe="value"in this.props?C:this.state.value;"max"in this.props&&S.max!==Y&&typeof pe=="number"&&pe>Y&&W&&W(Y),"min"in this.props&&S.min!==H&&typeof pe=="number"&&pe1&&arguments[1]!==void 0?arguments[1]:this.props.min,C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,W=parseFloat(S);return isNaN(W)?S:(WC&&(W=C),W)}},{key:"setValue",value:function(S,I){var C=this.props.precision,W=this.isNotCompleteNumber(parseFloat(S))?null:parseFloat(S),Y=this.state.value,H=Y===void 0?null:Y,F=this.state.inputValue,q=F===void 0?null:F,le=typeof W=="number"?W.toFixed(C):"".concat(W),pe=W!==H||le!=="".concat(q);return"value"in this.props?(q=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:q},I)):this.setState({value:W,inputValue:this.toPrecisionAsStep(S)},I),pe&&this.props.onChange(W),W}},{key:"getMaxPrecision",value:function(S){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,C=this.props,W=C.precision,Y=C.step;if(v(W))return W;var H=this.getPrecision(I),F=this.getPrecision(Y),q=this.getPrecision(S);return S?Math.max(q,H+F):H+F}},{key:"getPrecisionFactor",value:function(S){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,C=this.getMaxPrecision(S,I);return Math.pow(10,C)}},{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(S){return this.props.formatter?this.props.formatter(S):S}},{key:"toPrecisionAsStep",value:function(S){if(this.isNotCompleteNumber(S)||S==="")return S;var I=Math.abs(this.getMaxPrecision(S));return isNaN(I)?S.toString():Number(S).toFixed(I)}},{key:"toNumber",value:function(S){var I=this.props.precision,C=this.state.focused,W=S&&S.length>16&&C;return this.isNotCompleteNumber(S)||W?S:v(I)?Math.round(S*Math.pow(10,I))/Math.pow(10,I):Number(S)}},{key:"upStep",value:function(S,I){var C=this.props.step,W=this.getPrecisionFactor(S,I),Y=Math.abs(this.getMaxPrecision(S,I)),H=((W*S+W*C*I)/W).toFixed(Y);return this.toNumber(H)}},{key:"downStep",value:function(S,I){var C=this.props.step,W=this.getPrecisionFactor(S,I),Y=Math.abs(this.getMaxPrecision(S,I)),H=((W*S-W*C*I)/W).toFixed(Y);return this.toNumber(H)}},{key:"step",value:function(S,I){var C=this,W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Y=arguments.length>3?arguments[3]:void 0;this.stop(),I&&(I.persist(),I.preventDefault());var H=this.props;if(H.disabled)return;var F=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(F))return;var q=this["".concat(S,"Step")](F,W),le=q>H.max||qH.max?q=H.max:q=Ae),nt=(At||At===0)&&(isNaN(At)||Number(At)<=Ge),Te=He||W||Y,ge=nt||W||Y,be=c()("".concat(C,"-handler"),"".concat(C,"-handler-up"),Object(K.a)({},"".concat(C,"-handler-up-disabled"),Te)),re=c()("".concat(C,"-handler"),"".concat(C,"-handler-down"),Object(K.a)({},"".concat(C,"-handler-down-disabled"),ge)),ie=H?{onTouchStart:Te?a:this.up,onTouchEnd:this.stop}:{onMouseDown:Te?a:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},ce=H?{onTouchStart:ge?a:this.down,onTouchEnd:this.stop}:{onMouseDown:ge?a:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return _.a.createElement("div",{className:Oe,style:Fe,title:Ue,onMouseEnter:_e,onMouseLeave:je,onMouseOver:xe,onMouseOut:he,onFocus:function(){return null},onBlur:function(){return null}},_.a.createElement("div",{className:"".concat(C,"-handler-wrap")},_.a.createElement("span",Object.assign({unselectable:"on"},ie,{role:"button","aria-label":"Increase Value","aria-disabled":Te,className:be}),q||_.a.createElement("span",{unselectable:"on",className:"".concat(C,"-handler-up-inner"),onClick:n})),_.a.createElement("span",Object.assign({unselectable:"on"},ce,{role:"button","aria-label":"Decrease Value","aria-disabled":ge,className:re}),le||_.a.createElement("span",{unselectable:"on",className:"".concat(C,"-handler-down-inner"),onClick:n}))),_.a.createElement("div",{className:"".concat(C,"-input-wrap")},_.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Ge,"aria-valuemax":Ae,"aria-valuenow":At,required:te,type:Le,placeholder:ae,onPaste:yt,onClick:ye,onMouseUp:this.onMouseUp,className:"".concat(C,"-input"),tabIndex:ue,autoComplete:F,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:Je?this.onKeyDown:a,onKeyUp:Je?this.onKeyUp:a,autoFocus:Qe,maxLength:Ke,readOnly:Y,disabled:W,max:Ae,min:Ge,step:We,name:Ze,title:Ue,id:oe,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(st),pattern:Me,inputMode:Se,onInput:vt},we))))}}]),D}(_.a.Component);A.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:E,min:-E,step:1,style:{},onChange:a,onKeyDown:a,onPressEnter:a,onFocus:a,onBlur:a,parser:o,required:!1,autoComplete:"off"};var p=A,h=de.a=p},fjLI:function(et,de,N){"use strict";N.d(de,"e",function(){return R}),N.d(de,"a",function(){return c}),N.d(de,"c",function(){return g}),N.d(de,"d",function(){return y}),N.d(de,"b",function(){return f});var ee=N("8HAY"),K=N("Cg/j"),k=N("T8No"),z=N("nnTU"),B=N("MI8n"),M=function(){var m=function(a,n){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,u){o.__proto__=u}||function(o,u){for(var x in u)u.hasOwnProperty(x)&&(o[x]=u[x])},m(a,n)};return function(a,n){m(a,n);function o(){this.constructor=a}a.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),j=function(m,a,n,o){var u=arguments.length,x=u<3?a:o===null?o=Object.getOwnPropertyDescriptor(a,n):o,E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(m,a,n,o);else for(var v=m.length-1;v>=0;v--)(E=m[v])&&(x=(u<3?E(x):u>3?E(a,n,x):E(a,n))||x);return u>3&&x&&Object.defineProperty(a,n,x),x},U=function(m,a){return function(n,o){a(n,o,m)}},_=function(){for(var m=0,a=0,n=arguments.length;a=0&&(u.splice(x,1),o._onDidChangeMenu.fire(a))}}},m.prototype.getMenuItems=function(a){var n=(this._menuItems.get(a)||[]).slice(0);return a===0&&this._appendImplicitItems(n),n},m.prototype._appendImplicitItems=function(a){for(var n=new Set,o=a.filter(function(A){return R(A)}),u=0,x=o;uC.length)&&(W=C.length);for(var Y=0,H=new Array(W);Y=0)continue;if(!Object.prototype.propertyIsEnumerable.call(C,H))continue;Y[H]=C[H]}}return Y}function f(C,W){if(C==null)return{};var Y={},H=Object.keys(C),F,q;for(q=0;q=0)continue;Y[F]=C[F]}return Y}var m=function(W){var Y=W.className,H=W.percent,F=W.prefixCls,q=W.strokeColor,le=W.strokeLinecap,pe=W.strokeWidth,Ae=W.style,Ge=W.trailColor,Fe=W.trailWidth,Ue=W.transition,_e=y(W,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete _e.gapPosition;var je=Array.isArray(H)?H:[H],xe=Array.isArray(q)?q:[q],he=M(je),te=U(he,1),ye=te[0],ue=pe/2,Le=100-pe/2,ae="M ".concat(le==="round"?ue:0,",").concat(ue,` L `).concat(le==="round"?Le:100,",").concat(ue),oe="0 0 100 ".concat(pe),Se=0;return K.a.createElement("svg",j({className:z()("".concat(F,"-line"),Y),viewBox:oe,preserveAspectRatio:"none",style:Ae},_e),K.a.createElement("path",{className:"".concat(F,"-line-trail"),d:ae,strokeLinecap:le,stroke:Ge,strokeWidth:Fe||pe,fillOpacity:"0"}),je.map(function(Me,We){var Ke={strokeDasharray:"".concat(Me,"px, 100px"),strokeDashoffset:"-".concat(Se,"px"),transition:Ue||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Qe=xe[We]||xe[xe.length-1];return Se+=Me,K.a.createElement("path",{key:We,className:"".concat(F,"-line-path"),d:ae,strokeLinecap:le,stroke:Qe,strokeWidth:pe,fillOpacity:"0",ref:ye[We],style:Ke})}))};m.defaultProps=B;var a=m;function n(){return n=Object.assign||function(C){for(var W=1;WC.length)&&(W=C.length);for(var Y=0,H=new Array(W);Y=0)continue;if(!Object.prototype.propertyIsEnumerable.call(C,H))continue;Y[H]=C[H]}}return Y}function p(C,W){if(C==null)return{};var Y={},H=Object.keys(C),F,q;for(q=0;q=0)continue;Y[F]=C[F]}return Y}var h=0;function s(C){return+C.replace("%","")}function l(C){return Array.isArray(C)?C:[C]}function D(C,W,Y,H){var F=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,q=arguments.length>5?arguments[5]:void 0,le=50-H/2,pe=0,Ae=-le,Ge=0,Fe=-2*le;switch(q){case"left":pe=-le,Ae=0,Ge=2*le,Fe=0;break;case"right":pe=le,Ae=0,Ge=-2*le,Fe=0;break;case"bottom":Ae=le,Fe=2*le;break;default:}var Ue="M 50,50 m ".concat(pe,",").concat(Ae,` a `).concat(le,",").concat(le," 0 1 1 ").concat(Ge,",").concat(-Fe,` - a `).concat(le,",").concat(le," 0 1 1 ").concat(-Ge,",").concat(Fe),_e=Math.PI*2*le,je={stroke:Y,strokeDasharray:"".concat(W/100*(_e-F),"px ").concat(_e,"px"),strokeDashoffset:"-".concat(F/2+C/100*(_e-F),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:Ue,pathStyle:je}}var T=function(W){var Y=W.prefixCls,H=W.strokeWidth,F=W.trailWidth,q=W.gapDegree,le=W.gapPosition,pe=W.trailColor,Ae=W.strokeLinecap,Ge=W.style,Fe=W.className,Ue=W.strokeColor,_e=W.percent,je=A(W,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),xe=Object(ee.useMemo)(function(){return h+=1,h},[]),he=D(0,100,pe,H,q,le),te=he.pathString,ye=he.pathStyle,ue=l(_e),Le=l(Ue),ae=Le.find(function(Ke){return Object.prototype.toString.call(Ke)==="[object Object]"}),oe=M(ue),Se=o(oe,1),Me=Se[0],We=function(){var Qe=0;return ue.map(function(Ze,yt){var vt=Le[yt]||Le[Le.length-1],dt=Object.prototype.toString.call(vt)==="[object Object]"?"url(#".concat(Y,"-gradient-").concat(xe,")"):"",pt=D(Qe,Ze,vt,H,q,le);return Qe+=Ze,K.a.createElement("path",{key:yt,className:"".concat(Y,"-circle-path"),d:pt.pathString,stroke:dt,strokeLinecap:Ae,strokeWidth:H,opacity:Ze===0?0:1,fillOpacity:"0",style:pt.pathStyle,ref:Me[yt]})})};return K.a.createElement("svg",n({className:z()("".concat(Y,"-circle"),Fe),viewBox:"0 0 100 100",style:Ge},je),ae&&K.a.createElement("defs",null,K.a.createElement("linearGradient",{id:"".concat(Y,"-gradient-").concat(xe),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(ae).sort(function(Ke,Qe){return s(Ke)-s(Qe)}).map(function(Ke,Qe){return K.a.createElement("stop",{key:Qe,offset:Ke,stopColor:ae[Ke]})}))),K.a.createElement("path",{className:"".concat(Y,"-circle-trail"),d:te,stroke:pe,strokeLinecap:Ae,strokeWidth:F||H,fillOpacity:"0",style:ye}),We().reverse())};T.defaultProps=B;var S=T,I={Line:a,Circle:S}},hW8S:function(et,de,N){"use strict";N.d(de,"a",function(){return z}),N.d(de,"c",function(){return B}),N.d(de,"b",function(){return M});var ee=N("VTBJ"),K=N("Ff2n"),P=N("Kwbf"),z="RC_TABLE_INTERNAL_COL_DEFINE";function B(j){var U=j.expandable,_=Object(K.a)(j,["expandable"]);return"expandable"in j?Object(ee.a)(Object(ee.a)({},_),U):_}function M(j){return Object.keys(j).reduce(function(U,_){return(_.substr(0,5)==="data-"||_.substr(0,5)==="aria-")&&(U[_]=j[_]),U},{})}},ji0R:function(et,de,N){et.exports=N.p+"static/douyu.3e6df9ee.jpg"},kPWJ:function(et,de,N){et.exports=N.p+"static/question.cb52bef9.gif"},kPYp:function(et,de){et.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF8AAAAUCAYAAADr0+FaAAANEklEQVRYR8WZe5RX1XXHP/vce3/zHoaXgFp5DQyOQLRgUTEtDW1qYyVmZUGNklRdiRpKE3lHfPyc4TngIBgfC0wx1ixt1NRWal2kotbE2lbRiCIISBCGhzDAvGd+87v37K5z5zfDzMCM46pr9fw1a+45+5zz3fvs/d3fn4yr1F8Do0UIUb74UFR8Gm3IO/Wf8MThat7mOYnaDZUmNUF/htpWLlePK4xwCcoQICHQbOGoKDuM4U1p5r0Px1DNrDPrezzQs+qNPUh/o4xXj6tRJhlhGEqeQNrCCYXdGvGfFt5JNHLoozJp7WyvdI0OtR4LEK7CstUIWyJLTSRcLfCnvlAiUKSgCEfV8o6NeMVE/G53itOUiXX3Sxcx2ov4qhG+qjBWoFChWYUqIt6VgFeblR0H5lEL0oGyjKvU1yHezPviyHdZ0Ro180basvD398n77svIFTokK5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OI4/7C42EtD5tcLhef+w1c0U0DcpYcXXUauYOus8Mdns1W2eIpy3Y18FGXrjipZmzAMLIoM4ZZQqwmdh7Oaltv3E0id1lMlR1hRJnk8PK+H0mqu7DmHBDB4vw6HtneQ8N06YNalIp4HmF6X8EfV6ljRfk5EmNxJvIdn09ksdYIs7oV2d7h7uGrhUOEzP14ibzoNgXmC3wjQx3dbwZdwM6YcbHpNJFDKjxr4dHOunv3rcY9rANNC7dbR4WFkbhIP7ddFxSxTK3Cr0nzgFMz2+05Su37saTsWJRVS5VnuHnnAnmtp8vPnKne+1NY4jlZwtDfWpob6ijzhQ098fyLVmn/bJ97PMPtQJ5r8Dxck5VUMyqXP0wEzEHjNFHQR438rPPZtuyiKpTtmsdjrji7SGmJmBJrGYZSlIsyfYD7oaJVlVqEAwbejSJeafR5t6dOsfOGTuXMTTHeBExHmCzCaDTurLPEFWOlXqFKlI+s8prfwG92lnXVXkoq9HwTcD/KdSp8mGrmyVSaf+pJJmjff/gKHZaTxR3G8E1rKWyoY4MvbOwJfIdIcSUX+8Ic1yg6yT6Eb7Q1Wc4BORRk+RQZQ2DD3n8Y+Lwn4edT/cEcOd0xL6nmyn5knWghPzuL7JQQJMC0umjzafUbaG5J0XigjFSfeHuHYZXSJIH0Iz+VJtczBL6H58pLZAhTaVqKCmnYfoSWc4l6Tko/nscg8clvMtQPyOFUn/oRVCauJZcs+jeHJFLHOX1wFTW9MkEnyg0kP2EpitJ4+YVU/S8v1xqrW4H9MAAAAABJRU5ErkJggg=="},kSUc:function(et,de,N){},l2Kq:function(et,de,N){et.exports=N.p+"static/match_ad.24dc22fd.jpg"},lZu9:function(et,de,N){(function(ee){ee(N("VrN/"),N("1eCo"),N("8EBN"))})(function(ee){"use strict";ee.defineMode("markdown",function(K,P){var z=ee.getMode(K,"text/html"),B=z.name=="null";function M(H){if(ee.findModeByName){var F=ee.findModeByName(H);F&&(H=F.mime||F.mimes[0])}var q=ee.getMode(K,H);return q.name=="null"?null:q}P.highlightFormatting===void 0&&(P.highlightFormatting=!1),P.maxBlockquoteDepth===void 0&&(P.maxBlockquoteDepth=0),P.taskLists===void 0&&(P.taskLists=!1),P.strikethrough===void 0&&(P.strikethrough=!1),P.emoji===void 0&&(P.emoji=!1),P.fencedCodeBlockHighlighting===void 0&&(P.fencedCodeBlockHighlighting=!0),P.fencedCodeBlockDefaultMode===void 0&&(P.fencedCodeBlockDefaultMode="text/plain"),P.xml===void 0&&(P.xml=!0),P.tokenTypeOverrides===void 0&&(P.tokenTypeOverrides={});var j={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var U in j)j.hasOwnProperty(U)&&P.tokenTypeOverrides[U]&&(j[U]=P.tokenTypeOverrides[U]);var _=/^([*\-_])(?:\s*\1){2,}\s*$/,R=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,c=/^\[(x| )\](?=\s)/i,g=P.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,w=/^ {0,3}(?:\={1,}|-{2,})\s*$/,y=/^[^#!\[\]*_\\<>` "'(~:]+/,f=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,m=/^\s*\[[^\]]+?\]:.*$/,a=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,n=" ";function o(H,F,q){return F.f=F.inline=q,q(H,F)}function u(H,F,q){return F.f=F.block=q,q(H,F)}function x(H){return!H||!/\S/.test(H.string)}function E(H){if(H.linkTitle=!1,H.linkHref=!1,H.linkText=!1,H.em=!1,H.strong=!1,H.strikethrough=!1,H.quote=0,H.indentedCode=!1,H.f==O){var F=B;if(!F){var q=ee.innerMode(z,H.htmlState);F=q.mode.name=="xml"&&q.state.tagStart===null&&!q.state.context&&q.state.tokenize.isInText}F&&(H.f=s,H.block=v,H.htmlState=null)}return H.trailingSpace=0,H.trailingSpaceNewLine=!1,H.prevLine=H.thisLine,H.thisLine={stream:null},null}function v(H,F){var q=H.column()===F.indentation,le=x(F.prevLine.stream),pe=F.indentedCode,Ae=F.prevLine.hr,Ge=F.list!==!1,Fe=(F.listStack[F.listStack.length-1]||0)+3;F.indentedCode=!1;var Ue=F.indentation;if(F.indentationDiff===null&&(F.indentationDiff=F.indentation,Ge)){for(F.list=null;Ue=4&&(pe||F.prevLine.fencedCodeEnd||F.prevLine.header||le))return H.skipToEnd(),F.indentedCode=!0,j.code;if(H.eatSpace())return null;if(q&&F.indentation<=Fe&&(xe=H.match(g))&&xe[1].length<=6)return F.quote=0,F.header=xe[1].length,F.thisLine.header=!0,P.highlightFormatting&&(F.formatting="header"),F.f=F.inline,p(F);if(F.indentation<=Fe&&H.eat(">"))return F.quote=q?1:F.quote+1,P.highlightFormatting&&(F.formatting="quote"),H.eatSpace(),p(F);if(!je&&!F.setext&&q&&F.indentation<=Fe&&(xe=H.match(R))){var he=xe[1]?"ol":"ul";return F.indentation=Ue+H.current().length,F.list=!0,F.quote=0,F.listStack.push(F.indentation),F.em=!1,F.strong=!1,F.code=!1,F.strikethrough=!1,P.taskLists&&H.match(c,!1)&&(F.taskList=!0),F.f=F.inline,P.highlightFormatting&&(F.formatting=["list","list-"+he]),p(F)}else{if(q&&F.indentation<=Fe&&(xe=H.match(f,!0)))return F.quote=0,F.fencedEndRE=new RegExp(xe[1]+"+ *$"),F.localMode=P.fencedCodeBlockHighlighting&&M(xe[2]||P.fencedCodeBlockDefaultMode),F.localMode&&(F.localState=ee.startState(F.localMode)),F.f=F.block=A,P.highlightFormatting&&(F.formatting="code-block"),F.code=-1,p(F);if(F.setext||(!_e||!Ge)&&!F.quote&&F.list===!1&&!F.code&&!je&&!m.test(H.string)&&(xe=H.lookAhead(1))&&(xe=xe.match(w)))return F.setext?(F.header=F.setext,F.setext=0,H.skipToEnd(),P.highlightFormatting&&(F.formatting="header")):(F.header=xe[0].charAt(0)=="="?1:2,F.setext=F.header),F.thisLine.header=!0,F.f=F.inline,p(F);if(je)return H.skipToEnd(),F.hr=!0,F.thisLine.hr=!0,j.hr;if(H.peek()==="[")return o(H,F,I)}return o(H,F,F.inline)}function O(H,F){var q=z.token(H,F.htmlState);if(!B){var le=ee.innerMode(z,F.htmlState);(le.mode.name=="xml"&&le.state.tagStart===null&&!le.state.context&&le.state.tokenize.isInText||F.md_inside&&H.current().indexOf(">")>-1)&&(F.f=s,F.block=v,F.htmlState=null)}return q}function A(H,F){var q=F.listStack[F.listStack.length-1]||0,le=F.indentation=H.quote?F.push(j.formatting+"-"+H.formatting[q]+"-"+H.quote):F.push("error"))}if(H.taskOpen)return F.push("meta"),F.length?F.join(" "):null;if(H.taskClosed)return F.push("property"),F.length?F.join(" "):null;if(H.linkHref?F.push(j.linkHref,"url"):(H.strong&&F.push(j.strong),H.em&&F.push(j.em),H.strikethrough&&F.push(j.strikethrough),H.emoji&&F.push(j.emoji),H.linkText&&F.push(j.linkText),H.code&&F.push(j.code),H.image&&F.push(j.image),H.imageAltText&&F.push(j.imageAltText,"link"),H.imageMarker&&F.push(j.imageMarker)),H.header&&F.push(j.header,j.header+"-"+H.header),H.quote&&(F.push(j.quote),!P.maxBlockquoteDepth||P.maxBlockquoteDepth>=H.quote?F.push(j.quote+"-"+H.quote):F.push(j.quote+"-"+P.maxBlockquoteDepth)),H.list!==!1){var le=(H.listStack.length-1)%3;le?le===1?F.push(j.list2):F.push(j.list3):F.push(j.list1)}return H.trailingSpaceNewLine?F.push("trailing-space-new-line"):H.trailingSpace&&F.push("trailing-space-"+(H.trailingSpace%2?"a":"b")),F.length?F.join(" "):null}function h(H,F){return H.match(y,!0)?p(F):void 0}function s(H,F){var q=F.text(H,F);if(typeof q!="undefined")return q;if(F.list)return F.list=null,p(F);if(F.taskList){var le=H.match(c,!0)[1]===" ";return le?F.taskOpen=!0:F.taskClosed=!0,P.highlightFormatting&&(F.formatting="task"),F.taskList=!1,p(F)}if(F.taskOpen=!1,F.taskClosed=!1,F.header&&H.match(/^#+$/,!0))return P.highlightFormatting&&(F.formatting="header"),p(F);var pe=H.next();if(F.linkTitle){F.linkTitle=!1;var Ae=pe;pe==="("&&(Ae=")"),Ae=(Ae+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ge="^\\s*(?:[^"+Ae+"\\\\]+|\\\\\\\\|\\\\.)"+Ae;if(H.match(new RegExp(Ge),!0))return j.linkHref}if(pe==="`"){var Fe=F.formatting;P.highlightFormatting&&(F.formatting="code"),H.eatWhile("`");var Ue=H.current().length;if(F.code==0&&(!F.quote||Ue==1))return F.code=Ue,p(F);if(Ue==F.code){var _e=p(F);return F.code=0,_e}else return F.formatting=Fe,p(F)}else if(F.code)return p(F);if(pe==="\\"&&(H.next(),P.highlightFormatting)){var je=p(F),xe=j.formatting+"-escape";return je?je+" "+xe:xe}if(pe==="!"&&H.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return F.imageMarker=!0,F.image=!0,P.highlightFormatting&&(F.formatting="image"),p(F);if(pe==="["&&F.imageMarker&&H.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return F.imageMarker=!1,F.imageAltText=!0,P.highlightFormatting&&(F.formatting="image"),p(F);if(pe==="]"&&F.imageAltText){P.highlightFormatting&&(F.formatting="image");var je=p(F);return F.imageAltText=!1,F.image=!1,F.inline=F.f=D,je}if(pe==="["&&!F.image)return F.linkText&&H.match(/^.*?\]/)||(F.linkText=!0,P.highlightFormatting&&(F.formatting="link")),p(F);if(pe==="]"&&F.linkText){P.highlightFormatting&&(F.formatting="link");var je=p(F);return F.linkText=!1,F.inline=F.f=H.match(/\(.*?\)| ?\[.*?\]/,!1)?D:s,je}if(pe==="<"&&H.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){F.f=F.inline=l,P.highlightFormatting&&(F.formatting="link");var je=p(F);return je?je+=" ":je="",je+j.linkInline}if(pe==="<"&&H.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){F.f=F.inline=l,P.highlightFormatting&&(F.formatting="link");var je=p(F);return je?je+=" ":je="",je+j.linkEmail}if(P.xml&&pe==="<"&&H.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var he=H.string.indexOf(">",H.pos);if(he!=-1){var te=H.string.substring(H.start,he);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(te)&&(F.md_inside=!0)}return H.backUp(1),F.htmlState=ee.startState(z),u(H,F,O)}if(P.xml&&pe==="<"&&H.match(/^\/\w*?>/))return F.md_inside=!1,"tag";if(pe==="*"||pe==="_"){for(var ye=1,ue=H.pos==1?" ":H.string.charAt(H.pos-2);ye<3&&H.eat(pe);)ye++;var Le=H.peek()||" ",ae=!/\s/.test(Le)&&(!a.test(Le)||/\s/.test(ue)||a.test(ue)),oe=!/\s/.test(ue)&&(!a.test(ue)||/\s/.test(Le)||a.test(Le)),Se=null,Me=null;if(ye%2&&(!F.em&&ae&&(pe==="*"||!oe||a.test(ue))?Se=!0:F.em==pe&&oe&&(pe==="*"||!ae||a.test(Le))&&(Se=!1)),ye>1&&(!F.strong&&ae&&(pe==="*"||!oe||a.test(ue))?Me=!0:F.strong==pe&&oe&&(pe==="*"||!ae||a.test(Le))&&(Me=!1)),Me!=null||Se!=null){P.highlightFormatting&&(F.formatting=Se==null?"strong":Me==null?"em":"strong em"),Se===!0&&(F.em=pe),Me===!0&&(F.strong=pe);var _e=p(F);return Se===!1&&(F.em=!1),Me===!1&&(F.strong=!1),_e}}else if(pe===" "&&(H.eat("*")||H.eat("_"))){if(H.peek()===" ")return p(F);H.backUp(1)}if(P.strikethrough){if(pe==="~"&&H.eatWhile(pe)){if(F.strikethrough){P.highlightFormatting&&(F.formatting="strikethrough");var _e=p(F);return F.strikethrough=!1,_e}else if(H.match(/^[^\s]/,!1))return F.strikethrough=!0,P.highlightFormatting&&(F.formatting="strikethrough"),p(F)}else if(pe===" "&&H.match(/^~~/,!0)){if(H.peek()===" ")return p(F);H.backUp(2)}}if(P.emoji&&pe===":"&&H.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){F.emoji=!0,P.highlightFormatting&&(F.formatting="emoji");var We=p(F);return F.emoji=!1,We}return pe===" "&&(H.match(/^ +$/,!1)?F.trailingSpace++:F.trailingSpace&&(F.trailingSpaceNewLine=!0)),p(F)}function l(H,F){var q=H.next();if(q===">"){F.f=F.inline=s,P.highlightFormatting&&(F.formatting="link");var le=p(F);return le?le+=" ":le="",le+j.linkInline}return H.match(/^[^>]+/,!0),j.linkInline}function D(H,F){if(H.eatSpace())return null;var q=H.next();return q==="("||q==="["?(F.f=F.inline=S(q==="("?")":"]"),P.highlightFormatting&&(F.formatting="link-string"),F.linkHref=!0,p(F)):"error"}var T={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function S(H){return function(F,q){var le=F.next();if(le===H){q.f=q.inline=s,P.highlightFormatting&&(q.formatting="link-string");var pe=p(q);return q.linkHref=!1,pe}return F.match(T[H]),q.linkHref=!0,p(q)}}function I(H,F){return H.match(/^([^\]\\]|\\.)*\]:/,!1)?(F.f=C,H.next(),P.highlightFormatting&&(F.formatting="link"),F.linkText=!0,p(F)):o(H,F,s)}function C(H,F){if(H.match(/^\]:/,!0)){F.f=F.inline=W,P.highlightFormatting&&(F.formatting="link");var q=p(F);return F.linkText=!1,q}return H.match(/^([^\]\\]|\\.)+/,!0),j.linkText}function W(H,F){return H.eatSpace()?null:(H.match(/^[^\s]+/,!0),H.peek()===void 0?F.linkTitle=!0:H.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),F.f=F.inline=s,j.linkHref+" url")}var Y={startState:function(){return{f:v,prevLine:{stream:null},thisLine:{stream:null},block:v,htmlState:null,indentation:0,inline:s,text:h,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(H){return{f:H.f,prevLine:H.prevLine,thisLine:H.thisLine,block:H.block,htmlState:H.htmlState&&ee.copyState(z,H.htmlState),indentation:H.indentation,localMode:H.localMode,localState:H.localMode?ee.copyState(H.localMode,H.localState):null,inline:H.inline,text:H.text,formatting:!1,linkText:H.linkText,linkTitle:H.linkTitle,linkHref:H.linkHref,code:H.code,em:H.em,strong:H.strong,strikethrough:H.strikethrough,emoji:H.emoji,header:H.header,setext:H.setext,hr:H.hr,taskList:H.taskList,list:H.list,listStack:H.listStack.slice(0),quote:H.quote,indentedCode:H.indentedCode,trailingSpace:H.trailingSpace,trailingSpaceNewLine:H.trailingSpaceNewLine,md_inside:H.md_inside,fencedEndRE:H.fencedEndRE}},token:function(H,F){if(F.formatting=!1,H!=F.thisLine.stream){if(F.header=0,F.hr=!1,H.match(/^\s*$/,!0))return E(F),null;if(F.prevLine=F.thisLine,F.thisLine={stream:H},F.taskList=!1,F.trailingSpace=0,F.trailingSpaceNewLine=!1,!F.localState&&(F.f=F.block,F.f!=O)){var q=H.match(/^\s*/,!0)[0].replace(/\t/g,n).length;if(F.indentation=q,F.indentationDiff=null,q>0)return null}}return F.f(H,F)},innerMode:function(H){return H.block==O?{state:H.htmlState,mode:z}:H.localState?{state:H.localState,mode:H.localMode}:{state:H,mode:Y}},indent:function(H,F,q){return H.block==O&&z.indent?z.indent(H.htmlState,F,q):H.localState&&H.localMode.indent?H.localMode.indent(H.localState,F,q):ee.Pass},blankLine:E,getType:p,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Y},"xml"),ee.defineMIME("text/markdown","markdown"),ee.defineMIME("text/x-markdown","markdown")})},lzim:function(et,de,N){"use strict";var ee=N("E7E6"),K=N.n(ee);N.d(de,"A",function(){return K.a});var P=N("/GNS"),z=N.n(P);N.d(de,"z",function(){return z.a});var B=N("FOrL"),M=N.n(B);N.d(de,"t",function(){return M.a});var j=N("HpTS"),U=N.n(j);N.d(de,"B",function(){return U.a});var _=N("tWlo"),R=N.n(_);N.d(de,"b",function(){return R.a});var c=N("7ZXX"),g=N.n(c);N.d(de,"n",function(){return g.a});var w=N("GABl"),y=N.n(w);N.d(de,"g",function(){return y.a});var f=N("onxn"),m=N.n(f);N.d(de,"p",function(){return m.a});var a=N("nKGa"),n=N.n(a);N.d(de,"o",function(){return n.a});var o=N("4qgm"),u=N.n(o);N.d(de,"D",function(){return u.a});var x=N("JeFH"),E=N.n(x);N.d(de,"c",function(){return E.a});var v=N("ji0R"),O=N.n(v);N.d(de,"k",function(){return O.a});var A=N("W6BS"),p=N.n(A);N.d(de,"E",function(){return p.a});var h=N("kPYp"),s=N.n(h);N.d(de,"F",function(){return s.a});var l=N("nukY"),D=N.n(l),T=N("4u4S"),S=N.n(T),I=N("yslc"),C=N.n(I),W=N("l2Kq"),Y=N.n(W),H=N("RMFE"),F=N.n(H);N.d(de,"q",function(){return F.a});var q=N("TGq3"),le=N.n(q);N.d(de,"r",function(){return le.a});var pe=N("SMhR"),Ae=N.n(pe);N.d(de,"C",function(){return Ae.a});var Ge=N("8/bI"),Fe=N.n(Ge);N.d(de,"l",function(){return Fe.a});var Ue=N("JWDV"),_e=N.n(Ue);N.d(de,"e",function(){return _e.a});var je=N("Xsq0"),xe=N.n(je);N.d(de,"s",function(){return xe.a});var he=N("Ohmc"),te=N.n(he);N.d(de,"d",function(){return te.a});var ye=N("csWT"),ue=N.n(ye);N.d(de,"f",function(){return ue.a});var Le=N("7v3h"),ae=N.n(Le);N.d(de,"m",function(){return ae.a});var oe=N("cRFk"),Se=N.n(oe);N.d(de,"y",function(){return Se.a});var Me=N("kPWJ"),We=N.n(Me);N.d(de,"x",function(){return We.a});var Ke=N("qgvg"),Qe=N.n(Ke);N.d(de,"u",function(){return Qe.a});var Ze=N("FPkq"),yt=N.n(Ze);N.d(de,"w",function(){return yt.a});var vt=N("A/g1"),dt=N.n(vt);N.d(de,"h",function(){return dt.a});var pt=N("Nmxd"),At=N.n(pt);N.d(de,"i",function(){return At.a});var wt=N("5D2P"),Oe=N.n(wt);N.d(de,"j",function(){return Oe.a});var we=N("djh8"),Je=N.n(we);N.d(de,"v",function(){return Je.a});var st=N("Jq4h"),He=N.n(st);N.d(de,"a",function(){return He.a})},n6Qo:function(et,de,N){"use strict";N.d(de,"a",function(){return U});var ee=N("q1tI"),K=N("biw7"),P=N("fyJ8");function z(_){var R=_.className,c=_.index,g=_.children,w=_.colSpan,y=_.rowSpan,f=ee.useContext(K.a),m=f.prefixCls,a=f.fixedInfoList,n=a[c];return ee.createElement(P.a,Object.assign({className:R,index:c,component:"td",prefixCls:m,record:null,dataIndex:null,render:function(){return{children:g,props:{colSpan:w,rowSpan:y}}}},n))}function B(_){return ee.createElement("tr",Object.assign({},_))}function M(_){var R=_.children,c=ee.useContext(K.a),g=c.prefixCls;return ee.createElement("tfoot",{className:"".concat(g,"-summary")},R)}var j=de.b=M,U={Cell:z,Row:B}},nKGa:function(et,de,N){et.exports=N.p+"static/export_exercise-template.f7655c19.png"},nnTU:function(et,de,N){"use strict";N.d(de,"b",function(){return U}),N.d(de,"a",function(){return _});var ee=N("pmY6"),K=N("746U"),P=N("Cg/j"),z=N("MI8n"),B=N("24hK"),M=N("QDVR"),j=function(){for(var R=0,c=0,g=arguments.length;c=a.max?void 0:(a.ch=0,a.text=a.cm.getLine(++a.line),!0)}function R(a){return a.line<=a.min?void 0:(a.text=a.cm.getLine(--a.line),a.ch=a.text.length,!0)}function c(a){for(;;){var n=a.text.indexOf(">",a.ch);if(n==-1){if(_(a))continue;return}if(!U(a,n+1)){a.ch=n+1;continue}var o=a.text.lastIndexOf("/",n),u=o>-1&&!/\S/.test(a.text.slice(o+1,n));return a.ch=n+1,u?"selfClose":"regular"}}function g(a){for(;;){var n=a.ch?a.text.lastIndexOf("<",a.ch-1):-1;if(n==-1){if(R(a))continue;return}if(!U(a,n+1)){a.ch=n;continue}M.lastIndex=n,a.ch=n;var o=M.exec(a.text);if(o&&o.index==n)return o}}function w(a){for(;;){M.lastIndex=a.ch;var n=M.exec(a.text);if(!n){if(_(a))continue;return}if(!U(a,n.index+1)){a.ch=n.index+1;continue}return a.ch=n.index+n[0].length,n}}function y(a){for(;;){var n=a.ch?a.text.lastIndexOf(">",a.ch-1):-1;if(n==-1){if(R(a))continue;return}if(!U(a,n+1)){a.ch=n;continue}var o=a.text.lastIndexOf("/",n),u=o>-1&&!/\S/.test(a.text.slice(o+1,n));return a.ch=n+1,u?"selfClose":"regular"}}function f(a,n){for(var o=[];;){var u=w(a),x,E=a.line,v=a.ch-(u?u[0].length:0);if(!u||!(x=c(a)))return;if(x=="selfClose")continue;if(u[1]){for(var O=o.length-1;O>=0;--O)if(o[O]==u[2]){o.length=O;break}if(O<0&&(!n||n==u[2]))return{tag:u[2],from:K(E,v),to:K(a.line,a.ch)}}else o.push(u[2])}}function m(a,n){for(var o=[];;){var u=y(a);if(!u)return;if(u=="selfClose"){g(a);continue}var x=a.line,E=a.ch,v=g(a);if(!v)return;if(v[1])o.push(v[2]);else{for(var O=o.length-1;O>=0;--O)if(o[O]==v[2]){o.length=O;break}if(O<0&&(!n||n==v[2]))return{tag:v[2],from:K(a.line,a.ch),to:K(x,E)}}}}ee.registerHelper("fold","xml",function(a,n){for(var o=new j(a,n.line,0);;){var u=w(o);if(!u||o.line!=n.line)return;var x=c(o);if(!x)return;if(!u[1]&&x!="selfClose"){var E=K(o.line,o.ch),v=f(o,u[2]);return v&&P(v.from,E)>0?{from:E,to:v.from}:null}}}),ee.findMatchingTag=function(a,n,o){var u=new j(a,n.line,n.ch,o);if(u.text.indexOf(">")==-1&&u.text.indexOf("<")==-1)return;var x=c(u),E=x&&K(u.line,u.ch),v=x&&g(u);if(!x||!v||P(u,n)>0)return;var O={from:K(u.line,u.ch),to:E,tag:v[2]};return x=="selfClose"?{open:O,close:null,at:"open"}:v[1]?{open:m(u,v[2]),close:O,at:"close"}:(u=new j(a,E.line,E.ch,o),{open:O,close:f(u,v[2]),at:"open"})},ee.findEnclosingTag=function(a,n,o,u){for(var x=new j(a,n.line,n.ch,o);;){var E=m(x,u);if(!E)break;var v=new j(a,n.line,n.ch,o),O=f(v,E.tag);if(O)return{open:E,close:O}}},ee.scanForClosingTag=function(a,n,o,u){var x=new j(a,n.line,n.ch,u?{from:0,to:u}:null);return f(x,o)}})},p5ED:function(et,de,N){"use strict";var ee=N("+L6B"),K=N("2/Rp"),P=N("5Dmo"),z=N("3S7+"),B=N("k1fw"),M=N("9og8"),j=N("tJVT"),U=N("WmNS"),_=N.n(U),R=N("q1tI"),c=N.n(R),g=N("vHTk"),w=N.n(g),y=N("yEEn"),f=N("ZW9T"),m=N("1vsH"),a=N("V0Rq"),n=N("m3rI");de.a=function(o){var u,x,E,v,O,A,p=o.editOffice,h=p===void 0?"view":p,s=o.name,l=o.data,D=o.theme,T=o.type,S=o.filename,I=o.monacoEditor,C=o.className,W=o.style,Y=o.close,H=o.onClose,F=o.hasMask,q=o.disabledDownload,le=o.onImgDimensions,pe=o.otherData,Ae=Object(R.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),Ge=Object(j.a)(Ae,2),Fe=Ge[0],Ue=Ge[1],_e=Object(R.useState)(""),je=Object(j.a)(_e,2),xe=je[0],he=je[1],te=Object(R.useState)(),ye=Object(j.a)(te,2),ue=ye[0],Le=ye[1],ae=window.ENV==="build"?"/react/build":"",oe=location.host.startsWith("localhost")?n.a.PROXY_SERVER:n.a.API_SERVER,Se,Me=1024*1024,We=10*Me,Ke=Object(R.useRef)();(u=l)!==null&&u!==void 0&&u.startsWith("/api")&&T!=="txt"&&(l=n.a.API_SERVER+l),T==="office"&&(Se=Object(m.P)(l).filesize,Se>We&&(T="other")),S&&(I.filename=S),Object(R.useEffect)(function(){var vt,dt,pt=(vt=document.cookie)===null||vt===void 0||((dt=vt.replace(/\s/g,""))===null||dt===void 0)?void 0:dt.split(";");pt==null||pt.map(function(At){var wt=At.split("=");wt[0]==="_educoder_session"&&he(wt[1])})},[]),Object(R.useEffect)(function(){T==="office"&&Qe()},[T,l]);var Qe=function(){var vt=Object(M.a)(_.a.mark(function dt(){var pt,At,wt;return _.a.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return console.log("data:",l),pt=l,l.startsWith("http")||(pt=location.origin+pt),At=new URL(pt).pathname.split("/").pop(),we.next=6,Object(a.U)({attachment_id:At});case 6:wt=we.sent,Le(wt);case 8:case"end":return we.stop()}},dt)}));return function(){return vt.apply(this,arguments)}}(),Ze=function(){if(l.startsWith("http")||l.startsWith("blob:")){yt();return}Object(m.x)(S||"educoder",l,S)},yt=function(){Object(m.v)(S||"educoder",decodeURIComponent(l))};return c.a.createElement("div",{style:Object(B.a)({},W||{}),className:"".concat(F&&w.a.bgBlack," ").concat(T?w.a.wrp:"hide")},Y&&c.a.createElement("div",{className:w.a.close,ref:Ke},!!le&&c.a.createElement(z.a,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:function(){return Ke.current}},c.a.createElement("span",{onClick:function(){H(),le()}},c.a.createElement("i",{className:"icon-yulanpizhu"}))),!q&&c.a.createElement(z.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return Ke.current}},c.a.createElement("span",{onClick:yt},c.a.createElement("i",{className:"icon-quxiaozhiding"}))),c.a.createElement(z.a,{title:"\u5173\u95ED",getPopupContainer:function(){return Ke.current}},c.a.createElement("span",{className:"",onClick:H},c.a.createElement("i",{className:"icon-guanbi1"})))),c.a.createElement("div",{className:"".concat(w.a[C]," ").concat(C," ").concat(w.a.monaco," ").concat(T==="txt"?"show":"hide")},T==="txt"&&c.a.createElement(f.b,I)),T==="audio"&&c.a.createElement("audio",{src:"".concat(((x=l)===null||x===void 0?void 0:x.indexOf("http://"))>-1||((E=l)===null||E===void 0?void 0:E.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(l),autoPlay:!0}),T==="video"&&c.a.createElement(c.a.Fragment,null,((v=l)===null||v===void 0?void 0:v.indexOf("http"))>-1?c.a.createElement("video",{controls:!0,src:"".concat(l),autoPlay:!0}):c.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(l),autoPlay:!0})),T==="office"&&ue&&c.a.createElement("iframe",{src:"".concat(ae,"/office.html?key=").concat(ue.key,"&url=").concat(oe+ue.url,"&callbackUrl=").concat(oe+ue.callbackUrl,"&fileType=").concat(ue.fileType,"&title=").concat(ue.title,"&model=").concat(h,"&officeServer=").concat(n.a.OFFICE_SERVER,"&disabledDownload=").concat(!!q)}),(T==="xlsx"||T==="doc"||T==="pptx"||T==="docx")&&c.a.createElement("iframe",{src:"/react/build/office.html?key=".concat(pe.key,"&url=").concat(n.a.API_SERVER+pe.url,"&callbackUrl=").concat(n.a.API_SERVER+pe.callbackUrl,"&fileType=").concat(pe.fileType,"&title=").concat(pe.title,"&model=").concat(pe.model)}),T==="html"&&c.a.createElement("iframe",{src:l+"&disposition=inline"}),T==="pdf"&&c.a.createElement("embed",{className:w.a.embed,src:l}),T==="image"&&c.a.createElement("img",{src:"".concat(((O=l)===null||O===void 0?void 0:O.indexOf("http://"))>-1||((A=l)===null||A===void 0?void 0:A.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(l)}),T==="other"&&c.a.createElement("div",null,c.a.createElement(K.a,{type:"primary",size:"large",onClick:Ze},c.a.createElement(y.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),T==="download"&&c.a.createElement(K.a,{type:"primary",size:"large",onClick:Ze},c.a.createElement(y.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(et,de,N){},pmY6:function(et,de,N){"use strict";N.d(de,"g",function(){return B}),N.d(de,"f",function(){return M}),N.d(de,"e",function(){return j}),N.d(de,"h",function(){return U}),N.d(de,"b",function(){return _}),N.d(de,"a",function(){return R}),N.d(de,"d",function(){return c}),N.d(de,"c",function(){return g});var ee=!1,K="__is_disposable_tracked__";function P(w){if(!ee)return;if(w&&w!==R.None)try{w[K]=!0}catch(y){}}function z(w){if(!ee)return w;var y=new Error("Potentially leaked disposable").stack;return setTimeout(function(){w[K]||console.log(y)},3e3),w}function B(w){return typeof w.dispose=="function"&&w.dispose.length===0}function M(w){return Array.isArray(w)?(w.forEach(function(y){y&&(P(y),y.dispose())}),[]):w?(P(w),w.dispose(),w):void 0}function j(){for(var w=[],y=0;y=P.length?{done:!0}:{done:!1,value:P[M++]}},e:function(g){throw g},f:j}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var U=!0,_=!1,R;return{s:function(){B=P[Symbol.iterator]()},n:function(){var g=B.next();return U=g.done,g},e:function(g){_=!0,R=g},f:function(){try{!U&&B.return!=null&&B.return()}finally{if(_)throw R}}}}},rUJ1:function(et,de){const N=/[&<>"']/,ee=/[&<>"']/g,K=/[<>"']|&(?!#?\w+;)/,P=/[<>"']|&(?!#?\w+;)/g,z={"&":"&","<":"<",">":">",'"':""","'":"'"},B=A=>z[A];function M(A,p){if(p){if(N.test(A))return A.replace(ee,B)}else if(K.test(A))return A.replace(P,B);return A}const j=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function U(A){return A.replace(j,(p,h)=>(h=h.toLowerCase(),h==="colon"?":":h.charAt(0)==="#"?h.charAt(1)==="x"?String.fromCharCode(parseInt(h.substring(2),16)):String.fromCharCode(+h.substring(1)):""))}const _=/(^|[^\[])\^/g;function R(A,p){A=A.source||A,p=p||"";const h={replace:(s,l)=>(l=l.source||l,l=l.replace(_,"$1"),A=A.replace(s,l),h),getRegex:()=>new RegExp(A,p)};return h}const c=/[^\w:]/g,g=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function w(A,p,h){if(A){let s;try{s=decodeURIComponent(U(h)).replace(c,"").toLowerCase()}catch(l){return null}if(s.indexOf("javascript:")===0||s.indexOf("vbscript:")===0||s.indexOf("data:")===0)return null}p&&!g.test(h)&&(h=n(p,h));try{h=encodeURI(h).replace(/%25/g,"%")}catch(s){return null}return h}const y={},f=/^[^:]+:\/*[^/]*$/,m=/^([^:]+:)[\s\S]*$/,a=/^([^:]+:\/*[^/]*)[\s\S]*$/;function n(A,p){y[" "+A]||(f.test(A)?y[" "+A]=A+"/":y[" "+A]=E(A,"/",!0)),A=y[" "+A];const h=A.indexOf(":")===-1;return p.substring(0,2)==="//"?h?p:A.replace(m,"$1")+p:p.charAt(0)==="/"?h?p:A.replace(a,"$1")+p:A+p}const o={exec:function(){}};function u(A){let p=1,h,s;for(;p{let I=!1,C=T;for(;--C>=0&&S[C]==="\\";)I=!I;return I?"|":" |"}),s=h.split(/ \|/);let l=0;if(s.length>p)s.splice(p);else for(;s.length1)Object(R.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(u.length===0)return Object(R.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var x=u[0];if(M.isValidElement(x)&&Object(c.c)(x)){var E=x.ref;u[0]=M.cloneElement(x,{ref:Object(c.a)(E,this.setChildNode)})}return u.length===1?u[0]:u.map(function(v,O){return!M.isValidElement(v)||"key"in v&&v.key!==null?v:M.cloneElement(v,{key:"".concat(w,"-").concat(O)})})}}]),a}(M.Component);y.displayName="ResizeObserver",de.a=y},tWlo:function(et,de){et.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNv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7/MqLaZxqzxfjVFU+UjhcZCs+gp7f9nowcszMhfg17SoptSKDyym9N9cbePt8O2GrQ5pbrDRMTkwbe6MQpN6hfFRUVWa+Qb+7je23ideLAtPdGZ/cUZpw1iTsTFtFLJcBwEc2RIryHqELvW2q/qQPT4JA4AmupL5aP/Saza8A0eDU2Jvr0DrWaNkEe3L32kULmhXV+cHHR8cOvV5tcDd9f8qvm9ouAW2Zm5yhpm5uwWi9HRoRXq1UqC9zt08cDe391VUiJPyaPo+F1zddaZy80XFyLRv52v2ViPrehiJSvz6Z7rthQpZI+t6E+K91yuj+3UXnkL+7PbYxCFdiIKfgYdTcohHZ23QTnEntd8Y8AAwCTubpzlq2wWAAAAABJRU5ErkJggg=="},ulZh:function(et,de,N){typeof window!="undefined"&&function(K,P){et.exports=P()}(this,function(){return function(ee){var K={};function P(z){if(K[z])return K[z].exports;var B=K[z]={i:z,l:!1,exports:{}};return ee[z].call(B.exports,B,B.exports,P),B.l=!0,B.exports}return P.m=ee,P.c=K,P.d=function(z,B,M){P.o(z,B)||Object.defineProperty(z,B,{enumerable:!0,get:M})},P.r=function(z){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(z,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(z,"__esModule",{value:!0})},P.t=function(z,B){if(B&1&&(z=P(z)),B&8)return z;if(B&4&&typeof z=="object"&&z&&z.__esModule)return z;var M=Object.create(null);if(P.r(M),Object.defineProperty(M,"default",{enumerable:!0,value:z}),B&2&&typeof z!="string")for(var j in z)P.d(M,j,function(U){return z[U]}.bind(null,j));return M},P.n=function(z){var B=z&&z.__esModule?function(){return z.default}:function(){return z};return P.d(B,"a",B),B},P.o=function(z,B){return Object.prototype.hasOwnProperty.call(z,B)},P.p="/dist/",P(P.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(ee,K,P){"use strict";var z=Object.prototype.hasOwnProperty,B="~";function M(){}Object.create&&(M.prototype=Object.create(null),new M().__proto__||(B=!1));function j(c,g,w){this.fn=c,this.context=g,this.once=w||!1}function U(c,g,w,y,f){if(typeof w!="function")throw new TypeError("The listener must be a function");var m=new j(w,y||c,f),a=B?B+g:g;return c._events[a]?c._events[a].fn?c._events[a]=[c._events[a],m]:c._events[a].push(m):(c._events[a]=m,c._eventsCount++),c}function _(c,g){--c._eventsCount===0?c._events=new M:delete c._events[g]}function R(){this._events=new M,this._eventsCount=0}R.prototype.eventNames=function(){var g=[],w,y;if(this._eventsCount===0)return g;for(y in w=this._events)z.call(w,y)&&g.push(B?y.slice(1):y);return Object.getOwnPropertySymbols?g.concat(Object.getOwnPropertySymbols(w)):g},R.prototype.listeners=function(g){var w=B?B+g:g,y=this._events[w];if(!y)return[];if(y.fn)return[y.fn];for(var f=0,m=y.length,a=new Array(m);f0},!1)}function c(g,w){for(var y={main:[w]},f={main:[]},m={main:{}};R(y);)for(var a=Object.keys(y),n=0;n=2*O/p||S<=C)return;var W=Number.POSITIVE_INFINITY,Y;for(Y=a.level-1;Y>s;Y--){var H=h[Y].maxBitrate;if(W=O*H/(8*.8*T),W=S)return;var F=this.bwEstimator.getEstimate();R.logger.warn("Fragment "+a.sn+(n?" part "+n.index:"")+" of level "+a.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+Y+` + a `).concat(le,",").concat(le," 0 1 1 ").concat(-Ge,",").concat(Fe),_e=Math.PI*2*le,je={stroke:Y,strokeDasharray:"".concat(W/100*(_e-F),"px ").concat(_e,"px"),strokeDashoffset:"-".concat(F/2+C/100*(_e-F),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:Ue,pathStyle:je}}var T=function(W){var Y=W.prefixCls,H=W.strokeWidth,F=W.trailWidth,q=W.gapDegree,le=W.gapPosition,pe=W.trailColor,Ae=W.strokeLinecap,Ge=W.style,Fe=W.className,Ue=W.strokeColor,_e=W.percent,je=A(W,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),xe=Object(ee.useMemo)(function(){return h+=1,h},[]),he=D(0,100,pe,H,q,le),te=he.pathString,ye=he.pathStyle,ue=l(_e),Le=l(Ue),ae=Le.find(function(Ke){return Object.prototype.toString.call(Ke)==="[object Object]"}),oe=M(ue),Se=o(oe,1),Me=Se[0],We=function(){var Qe=0;return ue.map(function(Ze,yt){var vt=Le[yt]||Le[Le.length-1],dt=Object.prototype.toString.call(vt)==="[object Object]"?"url(#".concat(Y,"-gradient-").concat(xe,")"):"",pt=D(Qe,Ze,vt,H,q,le);return Qe+=Ze,K.a.createElement("path",{key:yt,className:"".concat(Y,"-circle-path"),d:pt.pathString,stroke:dt,strokeLinecap:Ae,strokeWidth:H,opacity:Ze===0?0:1,fillOpacity:"0",style:pt.pathStyle,ref:Me[yt]})})};return K.a.createElement("svg",n({className:z()("".concat(Y,"-circle"),Fe),viewBox:"0 0 100 100",style:Ge},je),ae&&K.a.createElement("defs",null,K.a.createElement("linearGradient",{id:"".concat(Y,"-gradient-").concat(xe),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(ae).sort(function(Ke,Qe){return s(Ke)-s(Qe)}).map(function(Ke,Qe){return K.a.createElement("stop",{key:Qe,offset:Ke,stopColor:ae[Ke]})}))),K.a.createElement("path",{className:"".concat(Y,"-circle-trail"),d:te,stroke:pe,strokeLinecap:Ae,strokeWidth:F||H,fillOpacity:"0",style:ye}),We().reverse())};T.defaultProps=B;var S=T,I={Line:a,Circle:S}},hW8S:function(et,de,N){"use strict";N.d(de,"a",function(){return z}),N.d(de,"c",function(){return B}),N.d(de,"b",function(){return M});var ee=N("VTBJ"),K=N("Ff2n"),k=N("Kwbf"),z="RC_TABLE_INTERNAL_COL_DEFINE";function B(j){var U=j.expandable,_=Object(K.a)(j,["expandable"]);return"expandable"in j?Object(ee.a)(Object(ee.a)({},_),U):_}function M(j){return Object.keys(j).reduce(function(U,_){return(_.substr(0,5)==="data-"||_.substr(0,5)==="aria-")&&(U[_]=j[_]),U},{})}},ji0R:function(et,de,N){et.exports=N.p+"static/douyu.3e6df9ee.jpg"},kPWJ:function(et,de,N){et.exports=N.p+"static/question.cb52bef9.gif"},kPYp:function(et,de){et.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF8AAAAUCAYAAADr0+FaAAANEklEQVRYR8WZe5RX1XXHP/vce3/zHoaXgFp5DQyOQLRgUTEtDW1qYyVmZUGNklRdiRpKE3lHfPyc4TngIBgfC0wx1ixt1NRWal2kotbE2lbRiCIISBCGhzDAvGd+87v37K5z5zfDzMCM46pr9fw1a+45+5zz3fvs/d3fn4yr1F8Do0UIUb74UFR8Gm3IO/Wf8MThat7mOYnaDZUmNUF/htpWLlePK4xwCcoQICHQbOGoKDuM4U1p5r0Px1DNrDPrezzQs+qNPUh/o4xXj6tRJhlhGEqeQNrCCYXdGvGfFt5JNHLoozJp7WyvdI0OtR4LEK7CstUIWyJLTSRcLfCnvlAiUKSgCEfV8o6NeMVE/G53itOUiXX3Sxcx2ov4qhG+qjBWoFChWYUqIt6VgFeblR0H5lEL0oGyjKvU1yHezPviyHdZ0Ro180basvD398n77svIFTokK5vrgW8LTELJRwgA6bTSHcaBckot/yWGX2YZtv5untT0dJ7SpOZrAX9mLTeIYarAIIQEYLrZTQNNFj7A8rx6/GrPfDncPmdihV6Y9nkA+Ot4nrIXaDSGElH6KfjdzpBSpVo8ttVU8Xitx/7hw/imWmYD4wXy6Iqjje9mOGYj/uX0bjYf/5nsaLcpY9fqDZ5hNTD8/wi+27bB+CzfOVcqSiq0BMPdRpiBUNANmHNvJUQo1ZFls0lTuXupnOw+0UVamMsCz+eHCuf3MWgUjZ3w76kUZQeW8j4iOnadXmCUNQI3xvsIbl7bX70MEdKpFLutcCA7iz/BxvfrfY2hNVXDb2v2s/TkU/Lf8SZXrtOcUxFfF8P1AiNVSYj0aihUGOoCu/vFFVpQlpmQX1iflQg3dMxxR1OaVHERfUIglXFKf6AIIbs97SnUq7I5VFZ+ski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OGTuXMTTHeBExHmCzCaDTurLPEFWOlXqFKlI+s8prfwG92lnXVXkoq9HwTcD/KdSp8mGrmyVSaf+pJJmjff/gKHZaTxR3G8E1rKWyoY4MvbOwJfIdIcSUX+8Ic1yg6yT6Eb7Q1Wc4BORRk+RQZQ2DD3n8Y+Lwn4edT/cEcOd0xL6nmyn5knWghPzuL7JQQJMC0umjzafUbaG5J0XigjFSfeHuHYZXSJIH0Iz+VJtczBL6H58pLZAhTaVqKCmnYfoSWc4l6Tko/nscg8clvMtQPyOFUn/oRVCauJZcs+jeHJFLHOX1wFTW9MkEnyg0kP2EpitJ4+YVU/S8v1xqrW4H9MAAAAABJRU5ErkJggg=="},kSUc:function(et,de,N){},l2Kq:function(et,de,N){et.exports=N.p+"static/match_ad.24dc22fd.jpg"},lZu9:function(et,de,N){(function(ee){ee(N("VrN/"),N("1eCo"),N("8EBN"))})(function(ee){"use strict";ee.defineMode("markdown",function(K,k){var z=ee.getMode(K,"text/html"),B=z.name=="null";function M(H){if(ee.findModeByName){var F=ee.findModeByName(H);F&&(H=F.mime||F.mimes[0])}var q=ee.getMode(K,H);return q.name=="null"?null:q}k.highlightFormatting===void 0&&(k.highlightFormatting=!1),k.maxBlockquoteDepth===void 0&&(k.maxBlockquoteDepth=0),k.taskLists===void 0&&(k.taskLists=!1),k.strikethrough===void 0&&(k.strikethrough=!1),k.emoji===void 0&&(k.emoji=!1),k.fencedCodeBlockHighlighting===void 0&&(k.fencedCodeBlockHighlighting=!0),k.fencedCodeBlockDefaultMode===void 0&&(k.fencedCodeBlockDefaultMode="text/plain"),k.xml===void 0&&(k.xml=!0),k.tokenTypeOverrides===void 0&&(k.tokenTypeOverrides={});var j={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var U in j)j.hasOwnProperty(U)&&k.tokenTypeOverrides[U]&&(j[U]=k.tokenTypeOverrides[U]);var _=/^([*\-_])(?:\s*\1){2,}\s*$/,R=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,c=/^\[(x| )\](?=\s)/i,g=k.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,w=/^ {0,3}(?:\={1,}|-{2,})\s*$/,y=/^[^#!\[\]*_\\<>` "'(~:]+/,f=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,m=/^\s*\[[^\]]+?\]:.*$/,a=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,n=" ";function o(H,F,q){return F.f=F.inline=q,q(H,F)}function u(H,F,q){return F.f=F.block=q,q(H,F)}function x(H){return!H||!/\S/.test(H.string)}function E(H){if(H.linkTitle=!1,H.linkHref=!1,H.linkText=!1,H.em=!1,H.strong=!1,H.strikethrough=!1,H.quote=0,H.indentedCode=!1,H.f==O){var F=B;if(!F){var q=ee.innerMode(z,H.htmlState);F=q.mode.name=="xml"&&q.state.tagStart===null&&!q.state.context&&q.state.tokenize.isInText}F&&(H.f=s,H.block=v,H.htmlState=null)}return H.trailingSpace=0,H.trailingSpaceNewLine=!1,H.prevLine=H.thisLine,H.thisLine={stream:null},null}function v(H,F){var q=H.column()===F.indentation,le=x(F.prevLine.stream),pe=F.indentedCode,Ae=F.prevLine.hr,Ge=F.list!==!1,Fe=(F.listStack[F.listStack.length-1]||0)+3;F.indentedCode=!1;var Ue=F.indentation;if(F.indentationDiff===null&&(F.indentationDiff=F.indentation,Ge)){for(F.list=null;Ue=4&&(pe||F.prevLine.fencedCodeEnd||F.prevLine.header||le))return H.skipToEnd(),F.indentedCode=!0,j.code;if(H.eatSpace())return null;if(q&&F.indentation<=Fe&&(xe=H.match(g))&&xe[1].length<=6)return F.quote=0,F.header=xe[1].length,F.thisLine.header=!0,k.highlightFormatting&&(F.formatting="header"),F.f=F.inline,p(F);if(F.indentation<=Fe&&H.eat(">"))return F.quote=q?1:F.quote+1,k.highlightFormatting&&(F.formatting="quote"),H.eatSpace(),p(F);if(!je&&!F.setext&&q&&F.indentation<=Fe&&(xe=H.match(R))){var he=xe[1]?"ol":"ul";return F.indentation=Ue+H.current().length,F.list=!0,F.quote=0,F.listStack.push(F.indentation),F.em=!1,F.strong=!1,F.code=!1,F.strikethrough=!1,k.taskLists&&H.match(c,!1)&&(F.taskList=!0),F.f=F.inline,k.highlightFormatting&&(F.formatting=["list","list-"+he]),p(F)}else{if(q&&F.indentation<=Fe&&(xe=H.match(f,!0)))return F.quote=0,F.fencedEndRE=new RegExp(xe[1]+"+ *$"),F.localMode=k.fencedCodeBlockHighlighting&&M(xe[2]||k.fencedCodeBlockDefaultMode),F.localMode&&(F.localState=ee.startState(F.localMode)),F.f=F.block=A,k.highlightFormatting&&(F.formatting="code-block"),F.code=-1,p(F);if(F.setext||(!_e||!Ge)&&!F.quote&&F.list===!1&&!F.code&&!je&&!m.test(H.string)&&(xe=H.lookAhead(1))&&(xe=xe.match(w)))return F.setext?(F.header=F.setext,F.setext=0,H.skipToEnd(),k.highlightFormatting&&(F.formatting="header")):(F.header=xe[0].charAt(0)=="="?1:2,F.setext=F.header),F.thisLine.header=!0,F.f=F.inline,p(F);if(je)return H.skipToEnd(),F.hr=!0,F.thisLine.hr=!0,j.hr;if(H.peek()==="[")return o(H,F,I)}return o(H,F,F.inline)}function O(H,F){var q=z.token(H,F.htmlState);if(!B){var le=ee.innerMode(z,F.htmlState);(le.mode.name=="xml"&&le.state.tagStart===null&&!le.state.context&&le.state.tokenize.isInText||F.md_inside&&H.current().indexOf(">")>-1)&&(F.f=s,F.block=v,F.htmlState=null)}return q}function A(H,F){var q=F.listStack[F.listStack.length-1]||0,le=F.indentation=H.quote?F.push(j.formatting+"-"+H.formatting[q]+"-"+H.quote):F.push("error"))}if(H.taskOpen)return F.push("meta"),F.length?F.join(" "):null;if(H.taskClosed)return F.push("property"),F.length?F.join(" "):null;if(H.linkHref?F.push(j.linkHref,"url"):(H.strong&&F.push(j.strong),H.em&&F.push(j.em),H.strikethrough&&F.push(j.strikethrough),H.emoji&&F.push(j.emoji),H.linkText&&F.push(j.linkText),H.code&&F.push(j.code),H.image&&F.push(j.image),H.imageAltText&&F.push(j.imageAltText,"link"),H.imageMarker&&F.push(j.imageMarker)),H.header&&F.push(j.header,j.header+"-"+H.header),H.quote&&(F.push(j.quote),!k.maxBlockquoteDepth||k.maxBlockquoteDepth>=H.quote?F.push(j.quote+"-"+H.quote):F.push(j.quote+"-"+k.maxBlockquoteDepth)),H.list!==!1){var le=(H.listStack.length-1)%3;le?le===1?F.push(j.list2):F.push(j.list3):F.push(j.list1)}return H.trailingSpaceNewLine?F.push("trailing-space-new-line"):H.trailingSpace&&F.push("trailing-space-"+(H.trailingSpace%2?"a":"b")),F.length?F.join(" "):null}function h(H,F){return H.match(y,!0)?p(F):void 0}function s(H,F){var q=F.text(H,F);if(typeof q!="undefined")return q;if(F.list)return F.list=null,p(F);if(F.taskList){var le=H.match(c,!0)[1]===" ";return le?F.taskOpen=!0:F.taskClosed=!0,k.highlightFormatting&&(F.formatting="task"),F.taskList=!1,p(F)}if(F.taskOpen=!1,F.taskClosed=!1,F.header&&H.match(/^#+$/,!0))return k.highlightFormatting&&(F.formatting="header"),p(F);var pe=H.next();if(F.linkTitle){F.linkTitle=!1;var Ae=pe;pe==="("&&(Ae=")"),Ae=(Ae+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ge="^\\s*(?:[^"+Ae+"\\\\]+|\\\\\\\\|\\\\.)"+Ae;if(H.match(new RegExp(Ge),!0))return j.linkHref}if(pe==="`"){var Fe=F.formatting;k.highlightFormatting&&(F.formatting="code"),H.eatWhile("`");var Ue=H.current().length;if(F.code==0&&(!F.quote||Ue==1))return F.code=Ue,p(F);if(Ue==F.code){var _e=p(F);return F.code=0,_e}else return F.formatting=Fe,p(F)}else if(F.code)return p(F);if(pe==="\\"&&(H.next(),k.highlightFormatting)){var je=p(F),xe=j.formatting+"-escape";return je?je+" "+xe:xe}if(pe==="!"&&H.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return F.imageMarker=!0,F.image=!0,k.highlightFormatting&&(F.formatting="image"),p(F);if(pe==="["&&F.imageMarker&&H.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return F.imageMarker=!1,F.imageAltText=!0,k.highlightFormatting&&(F.formatting="image"),p(F);if(pe==="]"&&F.imageAltText){k.highlightFormatting&&(F.formatting="image");var je=p(F);return F.imageAltText=!1,F.image=!1,F.inline=F.f=D,je}if(pe==="["&&!F.image)return F.linkText&&H.match(/^.*?\]/)||(F.linkText=!0,k.highlightFormatting&&(F.formatting="link")),p(F);if(pe==="]"&&F.linkText){k.highlightFormatting&&(F.formatting="link");var je=p(F);return F.linkText=!1,F.inline=F.f=H.match(/\(.*?\)| ?\[.*?\]/,!1)?D:s,je}if(pe==="<"&&H.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){F.f=F.inline=l,k.highlightFormatting&&(F.formatting="link");var je=p(F);return je?je+=" ":je="",je+j.linkInline}if(pe==="<"&&H.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){F.f=F.inline=l,k.highlightFormatting&&(F.formatting="link");var je=p(F);return je?je+=" ":je="",je+j.linkEmail}if(k.xml&&pe==="<"&&H.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var he=H.string.indexOf(">",H.pos);if(he!=-1){var te=H.string.substring(H.start,he);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(te)&&(F.md_inside=!0)}return H.backUp(1),F.htmlState=ee.startState(z),u(H,F,O)}if(k.xml&&pe==="<"&&H.match(/^\/\w*?>/))return F.md_inside=!1,"tag";if(pe==="*"||pe==="_"){for(var ye=1,ue=H.pos==1?" ":H.string.charAt(H.pos-2);ye<3&&H.eat(pe);)ye++;var Le=H.peek()||" ",ae=!/\s/.test(Le)&&(!a.test(Le)||/\s/.test(ue)||a.test(ue)),oe=!/\s/.test(ue)&&(!a.test(ue)||/\s/.test(Le)||a.test(Le)),Se=null,Me=null;if(ye%2&&(!F.em&&ae&&(pe==="*"||!oe||a.test(ue))?Se=!0:F.em==pe&&oe&&(pe==="*"||!ae||a.test(Le))&&(Se=!1)),ye>1&&(!F.strong&&ae&&(pe==="*"||!oe||a.test(ue))?Me=!0:F.strong==pe&&oe&&(pe==="*"||!ae||a.test(Le))&&(Me=!1)),Me!=null||Se!=null){k.highlightFormatting&&(F.formatting=Se==null?"strong":Me==null?"em":"strong em"),Se===!0&&(F.em=pe),Me===!0&&(F.strong=pe);var _e=p(F);return Se===!1&&(F.em=!1),Me===!1&&(F.strong=!1),_e}}else if(pe===" "&&(H.eat("*")||H.eat("_"))){if(H.peek()===" ")return p(F);H.backUp(1)}if(k.strikethrough){if(pe==="~"&&H.eatWhile(pe)){if(F.strikethrough){k.highlightFormatting&&(F.formatting="strikethrough");var _e=p(F);return F.strikethrough=!1,_e}else if(H.match(/^[^\s]/,!1))return F.strikethrough=!0,k.highlightFormatting&&(F.formatting="strikethrough"),p(F)}else if(pe===" "&&H.match(/^~~/,!0)){if(H.peek()===" ")return p(F);H.backUp(2)}}if(k.emoji&&pe===":"&&H.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){F.emoji=!0,k.highlightFormatting&&(F.formatting="emoji");var We=p(F);return F.emoji=!1,We}return pe===" "&&(H.match(/^ +$/,!1)?F.trailingSpace++:F.trailingSpace&&(F.trailingSpaceNewLine=!0)),p(F)}function l(H,F){var q=H.next();if(q===">"){F.f=F.inline=s,k.highlightFormatting&&(F.formatting="link");var le=p(F);return le?le+=" ":le="",le+j.linkInline}return H.match(/^[^>]+/,!0),j.linkInline}function D(H,F){if(H.eatSpace())return null;var q=H.next();return q==="("||q==="["?(F.f=F.inline=S(q==="("?")":"]"),k.highlightFormatting&&(F.formatting="link-string"),F.linkHref=!0,p(F)):"error"}var T={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function S(H){return function(F,q){var le=F.next();if(le===H){q.f=q.inline=s,k.highlightFormatting&&(q.formatting="link-string");var pe=p(q);return q.linkHref=!1,pe}return F.match(T[H]),q.linkHref=!0,p(q)}}function I(H,F){return H.match(/^([^\]\\]|\\.)*\]:/,!1)?(F.f=C,H.next(),k.highlightFormatting&&(F.formatting="link"),F.linkText=!0,p(F)):o(H,F,s)}function C(H,F){if(H.match(/^\]:/,!0)){F.f=F.inline=W,k.highlightFormatting&&(F.formatting="link");var q=p(F);return F.linkText=!1,q}return H.match(/^([^\]\\]|\\.)+/,!0),j.linkText}function W(H,F){return H.eatSpace()?null:(H.match(/^[^\s]+/,!0),H.peek()===void 0?F.linkTitle=!0:H.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),F.f=F.inline=s,j.linkHref+" url")}var Y={startState:function(){return{f:v,prevLine:{stream:null},thisLine:{stream:null},block:v,htmlState:null,indentation:0,inline:s,text:h,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(H){return{f:H.f,prevLine:H.prevLine,thisLine:H.thisLine,block:H.block,htmlState:H.htmlState&&ee.copyState(z,H.htmlState),indentation:H.indentation,localMode:H.localMode,localState:H.localMode?ee.copyState(H.localMode,H.localState):null,inline:H.inline,text:H.text,formatting:!1,linkText:H.linkText,linkTitle:H.linkTitle,linkHref:H.linkHref,code:H.code,em:H.em,strong:H.strong,strikethrough:H.strikethrough,emoji:H.emoji,header:H.header,setext:H.setext,hr:H.hr,taskList:H.taskList,list:H.list,listStack:H.listStack.slice(0),quote:H.quote,indentedCode:H.indentedCode,trailingSpace:H.trailingSpace,trailingSpaceNewLine:H.trailingSpaceNewLine,md_inside:H.md_inside,fencedEndRE:H.fencedEndRE}},token:function(H,F){if(F.formatting=!1,H!=F.thisLine.stream){if(F.header=0,F.hr=!1,H.match(/^\s*$/,!0))return E(F),null;if(F.prevLine=F.thisLine,F.thisLine={stream:H},F.taskList=!1,F.trailingSpace=0,F.trailingSpaceNewLine=!1,!F.localState&&(F.f=F.block,F.f!=O)){var q=H.match(/^\s*/,!0)[0].replace(/\t/g,n).length;if(F.indentation=q,F.indentationDiff=null,q>0)return null}}return F.f(H,F)},innerMode:function(H){return H.block==O?{state:H.htmlState,mode:z}:H.localState?{state:H.localState,mode:H.localMode}:{state:H,mode:Y}},indent:function(H,F,q){return H.block==O&&z.indent?z.indent(H.htmlState,F,q):H.localState&&H.localMode.indent?H.localMode.indent(H.localState,F,q):ee.Pass},blankLine:E,getType:p,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Y},"xml"),ee.defineMIME("text/markdown","markdown"),ee.defineMIME("text/x-markdown","markdown")})},lzim:function(et,de,N){"use strict";var ee=N("E7E6"),K=N.n(ee);N.d(de,"A",function(){return K.a});var k=N("/GNS"),z=N.n(k);N.d(de,"z",function(){return z.a});var B=N("FOrL"),M=N.n(B);N.d(de,"t",function(){return M.a});var j=N("HpTS"),U=N.n(j);N.d(de,"B",function(){return U.a});var _=N("tWlo"),R=N.n(_);N.d(de,"b",function(){return R.a});var c=N("7ZXX"),g=N.n(c);N.d(de,"n",function(){return g.a});var w=N("GABl"),y=N.n(w);N.d(de,"g",function(){return y.a});var f=N("onxn"),m=N.n(f);N.d(de,"p",function(){return m.a});var a=N("nKGa"),n=N.n(a);N.d(de,"o",function(){return n.a});var o=N("4qgm"),u=N.n(o);N.d(de,"D",function(){return u.a});var x=N("JeFH"),E=N.n(x);N.d(de,"c",function(){return E.a});var v=N("ji0R"),O=N.n(v);N.d(de,"k",function(){return O.a});var A=N("W6BS"),p=N.n(A);N.d(de,"E",function(){return p.a});var h=N("kPYp"),s=N.n(h);N.d(de,"F",function(){return s.a});var l=N("nukY"),D=N.n(l),T=N("4u4S"),S=N.n(T),I=N("yslc"),C=N.n(I),W=N("l2Kq"),Y=N.n(W),H=N("RMFE"),F=N.n(H);N.d(de,"q",function(){return F.a});var q=N("TGq3"),le=N.n(q);N.d(de,"r",function(){return le.a});var pe=N("SMhR"),Ae=N.n(pe);N.d(de,"C",function(){return Ae.a});var Ge=N("8/bI"),Fe=N.n(Ge);N.d(de,"l",function(){return Fe.a});var Ue=N("JWDV"),_e=N.n(Ue);N.d(de,"e",function(){return _e.a});var je=N("Xsq0"),xe=N.n(je);N.d(de,"s",function(){return xe.a});var he=N("Ohmc"),te=N.n(he);N.d(de,"d",function(){return te.a});var ye=N("csWT"),ue=N.n(ye);N.d(de,"f",function(){return ue.a});var Le=N("7v3h"),ae=N.n(Le);N.d(de,"m",function(){return ae.a});var oe=N("cRFk"),Se=N.n(oe);N.d(de,"y",function(){return Se.a});var Me=N("kPWJ"),We=N.n(Me);N.d(de,"x",function(){return We.a});var Ke=N("qgvg"),Qe=N.n(Ke);N.d(de,"u",function(){return Qe.a});var Ze=N("FPkq"),yt=N.n(Ze);N.d(de,"w",function(){return yt.a});var vt=N("A/g1"),dt=N.n(vt);N.d(de,"h",function(){return dt.a});var pt=N("Nmxd"),At=N.n(pt);N.d(de,"i",function(){return At.a});var wt=N("5D2P"),Oe=N.n(wt);N.d(de,"j",function(){return Oe.a});var we=N("djh8"),Je=N.n(we);N.d(de,"v",function(){return Je.a});var st=N("Jq4h"),He=N.n(st);N.d(de,"a",function(){return He.a})},n6Qo:function(et,de,N){"use strict";N.d(de,"a",function(){return U});var ee=N("q1tI"),K=N("biw7"),k=N("fyJ8");function z(_){var R=_.className,c=_.index,g=_.children,w=_.colSpan,y=_.rowSpan,f=ee.useContext(K.a),m=f.prefixCls,a=f.fixedInfoList,n=a[c];return ee.createElement(k.a,Object.assign({className:R,index:c,component:"td",prefixCls:m,record:null,dataIndex:null,render:function(){return{children:g,props:{colSpan:w,rowSpan:y}}}},n))}function B(_){return ee.createElement("tr",Object.assign({},_))}function M(_){var R=_.children,c=ee.useContext(K.a),g=c.prefixCls;return ee.createElement("tfoot",{className:"".concat(g,"-summary")},R)}var j=de.b=M,U={Cell:z,Row:B}},nKGa:function(et,de,N){et.exports=N.p+"static/export_exercise-template.f7655c19.png"},nnTU:function(et,de,N){"use strict";N.d(de,"b",function(){return U}),N.d(de,"a",function(){return _});var ee=N("pmY6"),K=N("746U"),k=N("Cg/j"),z=N("MI8n"),B=N("24hK"),M=N("QDVR"),j=function(){for(var R=0,c=0,g=arguments.length;c=a.max?void 0:(a.ch=0,a.text=a.cm.getLine(++a.line),!0)}function R(a){return a.line<=a.min?void 0:(a.text=a.cm.getLine(--a.line),a.ch=a.text.length,!0)}function c(a){for(;;){var n=a.text.indexOf(">",a.ch);if(n==-1){if(_(a))continue;return}if(!U(a,n+1)){a.ch=n+1;continue}var o=a.text.lastIndexOf("/",n),u=o>-1&&!/\S/.test(a.text.slice(o+1,n));return a.ch=n+1,u?"selfClose":"regular"}}function g(a){for(;;){var n=a.ch?a.text.lastIndexOf("<",a.ch-1):-1;if(n==-1){if(R(a))continue;return}if(!U(a,n+1)){a.ch=n;continue}M.lastIndex=n,a.ch=n;var o=M.exec(a.text);if(o&&o.index==n)return o}}function w(a){for(;;){M.lastIndex=a.ch;var n=M.exec(a.text);if(!n){if(_(a))continue;return}if(!U(a,n.index+1)){a.ch=n.index+1;continue}return a.ch=n.index+n[0].length,n}}function y(a){for(;;){var n=a.ch?a.text.lastIndexOf(">",a.ch-1):-1;if(n==-1){if(R(a))continue;return}if(!U(a,n+1)){a.ch=n;continue}var o=a.text.lastIndexOf("/",n),u=o>-1&&!/\S/.test(a.text.slice(o+1,n));return a.ch=n+1,u?"selfClose":"regular"}}function f(a,n){for(var o=[];;){var u=w(a),x,E=a.line,v=a.ch-(u?u[0].length:0);if(!u||!(x=c(a)))return;if(x=="selfClose")continue;if(u[1]){for(var O=o.length-1;O>=0;--O)if(o[O]==u[2]){o.length=O;break}if(O<0&&(!n||n==u[2]))return{tag:u[2],from:K(E,v),to:K(a.line,a.ch)}}else o.push(u[2])}}function m(a,n){for(var o=[];;){var u=y(a);if(!u)return;if(u=="selfClose"){g(a);continue}var x=a.line,E=a.ch,v=g(a);if(!v)return;if(v[1])o.push(v[2]);else{for(var O=o.length-1;O>=0;--O)if(o[O]==v[2]){o.length=O;break}if(O<0&&(!n||n==v[2]))return{tag:v[2],from:K(a.line,a.ch),to:K(x,E)}}}}ee.registerHelper("fold","xml",function(a,n){for(var o=new j(a,n.line,0);;){var u=w(o);if(!u||o.line!=n.line)return;var x=c(o);if(!x)return;if(!u[1]&&x!="selfClose"){var E=K(o.line,o.ch),v=f(o,u[2]);return v&&k(v.from,E)>0?{from:E,to:v.from}:null}}}),ee.findMatchingTag=function(a,n,o){var u=new j(a,n.line,n.ch,o);if(u.text.indexOf(">")==-1&&u.text.indexOf("<")==-1)return;var x=c(u),E=x&&K(u.line,u.ch),v=x&&g(u);if(!x||!v||k(u,n)>0)return;var O={from:K(u.line,u.ch),to:E,tag:v[2]};return x=="selfClose"?{open:O,close:null,at:"open"}:v[1]?{open:m(u,v[2]),close:O,at:"close"}:(u=new j(a,E.line,E.ch,o),{open:O,close:f(u,v[2]),at:"open"})},ee.findEnclosingTag=function(a,n,o,u){for(var x=new j(a,n.line,n.ch,o);;){var E=m(x,u);if(!E)break;var v=new j(a,n.line,n.ch,o),O=f(v,E.tag);if(O)return{open:E,close:O}}},ee.scanForClosingTag=function(a,n,o,u){var x=new j(a,n.line,n.ch,u?{from:0,to:u}:null);return f(x,o)}})},p5ED:function(et,de,N){"use strict";var ee=N("+L6B"),K=N("2/Rp"),k=N("5Dmo"),z=N("3S7+"),B=N("k1fw"),M=N("9og8"),j=N("tJVT"),U=N("WmNS"),_=N.n(U),R=N("q1tI"),c=N.n(R),g=N("vHTk"),w=N.n(g),y=N("yEEn"),f=N("ZW9T"),m=N("1vsH"),a=N("V0Rq"),n=N("m3rI");de.a=function(o){var u,x,E,v,O,A,p=o.editOffice,h=p===void 0?"view":p,s=o.name,l=o.data,D=o.theme,T=o.type,S=o.filename,I=o.monacoEditor,C=o.className,W=o.style,Y=o.close,H=o.onClose,F=o.hasMask,q=o.disabledDownload,le=o.onImgDimensions,pe=o.otherData,Ae=Object(R.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),Ge=Object(j.a)(Ae,2),Fe=Ge[0],Ue=Ge[1],_e=Object(R.useState)(""),je=Object(j.a)(_e,2),xe=je[0],he=je[1],te=Object(R.useState)(),ye=Object(j.a)(te,2),ue=ye[0],Le=ye[1],ae=window.ENV==="build"?"/react/build":"",oe=location.host.startsWith("localhost")?n.a.PROXY_SERVER:n.a.API_SERVER,Se,Me=1024*1024,We=10*Me,Ke=Object(R.useRef)();(u=l)!==null&&u!==void 0&&u.startsWith("/api")&&T!=="txt"&&(l=n.a.API_SERVER+l),T==="office"&&(Se=Object(m.P)(l).filesize,Se>We&&(T="other")),S&&(I.filename=S),Object(R.useEffect)(function(){var vt,dt,pt=(vt=document.cookie)===null||vt===void 0||((dt=vt.replace(/\s/g,""))===null||dt===void 0)?void 0:dt.split(";");pt==null||pt.map(function(At){var wt=At.split("=");wt[0]==="_educoder_session"&&he(wt[1])})},[]),Object(R.useEffect)(function(){T==="office"&&Qe()},[T,l]);var Qe=function(){var vt=Object(M.a)(_.a.mark(function dt(){var pt,At,wt;return _.a.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return console.log("data:",l),pt=l,l.startsWith("http")||(pt=location.origin+pt),At=new URL(pt).pathname.split("/").pop(),we.next=6,Object(a.U)({attachment_id:At});case 6:wt=we.sent,Le(wt);case 8:case"end":return we.stop()}},dt)}));return function(){return vt.apply(this,arguments)}}(),Ze=function(){if(l.startsWith("http")||l.startsWith("blob:")){yt();return}Object(m.x)(S||"educoder",l,S)},yt=function(){Object(m.v)(S||"educoder",decodeURIComponent(l))};return c.a.createElement("div",{style:Object(B.a)({},W||{}),className:"".concat(F&&w.a.bgBlack," ").concat(T?w.a.wrp:"hide")},Y&&c.a.createElement("div",{className:w.a.close,ref:Ke},!!le&&c.a.createElement(z.a,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:function(){return Ke.current}},c.a.createElement("span",{onClick:function(){H(),le()}},c.a.createElement("i",{className:"icon-yulanpizhu"}))),!q&&c.a.createElement(z.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return Ke.current}},c.a.createElement("span",{onClick:yt},c.a.createElement("i",{className:"icon-quxiaozhiding"}))),c.a.createElement(z.a,{title:"\u5173\u95ED",getPopupContainer:function(){return Ke.current}},c.a.createElement("span",{className:"",onClick:H},c.a.createElement("i",{className:"icon-guanbi1"})))),c.a.createElement("div",{className:"".concat(w.a[C]," ").concat(C," ").concat(w.a.monaco," ").concat(T==="txt"?"show":"hide")},T==="txt"&&c.a.createElement(f.b,I)),T==="audio"&&c.a.createElement("audio",{src:"".concat(((x=l)===null||x===void 0?void 0:x.indexOf("http://"))>-1||((E=l)===null||E===void 0?void 0:E.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(l),autoPlay:!0}),T==="video"&&c.a.createElement(c.a.Fragment,null,((v=l)===null||v===void 0?void 0:v.indexOf("http"))>-1?c.a.createElement("video",{controls:!0,src:"".concat(l),autoPlay:!0}):c.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(l),autoPlay:!0})),T==="office"&&ue&&c.a.createElement("iframe",{src:"".concat(ae,"/office.html?key=").concat(ue.key,"&url=").concat(oe+ue.url,"&callbackUrl=").concat(oe+ue.callbackUrl,"&fileType=").concat(ue.fileType,"&title=").concat(ue.title,"&model=").concat(h,"&officeServer=").concat(n.a.OFFICE_SERVER,"&disabledDownload=").concat(!!q)}),(T==="xlsx"||T==="doc"||T==="pptx"||T==="docx")&&c.a.createElement("iframe",{src:"/react/build/office.html?key=".concat(pe.key,"&url=").concat(n.a.API_SERVER+pe.url,"&callbackUrl=").concat(n.a.API_SERVER+pe.callbackUrl,"&fileType=").concat(pe.fileType,"&title=").concat(pe.title,"&model=").concat(pe.model)}),T==="html"&&c.a.createElement("iframe",{src:l+"&disposition=inline"}),T==="pdf"&&c.a.createElement("embed",{className:w.a.embed,src:l}),T==="image"&&c.a.createElement("img",{src:"".concat(((O=l)===null||O===void 0?void 0:O.indexOf("http://"))>-1||((A=l)===null||A===void 0?void 0:A.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(l)}),T==="other"&&c.a.createElement("div",null,c.a.createElement(K.a,{type:"primary",size:"large",onClick:Ze},c.a.createElement(y.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),T==="download"&&c.a.createElement(K.a,{type:"primary",size:"large",onClick:Ze},c.a.createElement(y.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(et,de,N){},pmY6:function(et,de,N){"use strict";N.d(de,"g",function(){return B}),N.d(de,"f",function(){return M}),N.d(de,"e",function(){return j}),N.d(de,"h",function(){return U}),N.d(de,"b",function(){return _}),N.d(de,"a",function(){return R}),N.d(de,"d",function(){return c}),N.d(de,"c",function(){return g});var ee=!1,K="__is_disposable_tracked__";function k(w){if(!ee)return;if(w&&w!==R.None)try{w[K]=!0}catch(y){}}function z(w){if(!ee)return w;var y=new Error("Potentially leaked disposable").stack;return setTimeout(function(){w[K]||console.log(y)},3e3),w}function B(w){return typeof w.dispose=="function"&&w.dispose.length===0}function M(w){return Array.isArray(w)?(w.forEach(function(y){y&&(k(y),y.dispose())}),[]):w?(k(w),w.dispose(),w):void 0}function j(){for(var w=[],y=0;y=k.length?{done:!0}:{done:!1,value:k[M++]}},e:function(g){throw g},f:j}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var U=!0,_=!1,R;return{s:function(){B=k[Symbol.iterator]()},n:function(){var g=B.next();return U=g.done,g},e:function(g){_=!0,R=g},f:function(){try{!U&&B.return!=null&&B.return()}finally{if(_)throw R}}}}},rUJ1:function(et,de){const N=/[&<>"']/,ee=/[&<>"']/g,K=/[<>"']|&(?!#?\w+;)/,k=/[<>"']|&(?!#?\w+;)/g,z={"&":"&","<":"<",">":">",'"':""","'":"'"},B=A=>z[A];function M(A,p){if(p){if(N.test(A))return A.replace(ee,B)}else if(K.test(A))return A.replace(k,B);return A}const j=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function U(A){return A.replace(j,(p,h)=>(h=h.toLowerCase(),h==="colon"?":":h.charAt(0)==="#"?h.charAt(1)==="x"?String.fromCharCode(parseInt(h.substring(2),16)):String.fromCharCode(+h.substring(1)):""))}const _=/(^|[^\[])\^/g;function R(A,p){A=A.source||A,p=p||"";const h={replace:(s,l)=>(l=l.source||l,l=l.replace(_,"$1"),A=A.replace(s,l),h),getRegex:()=>new RegExp(A,p)};return h}const c=/[^\w:]/g,g=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function w(A,p,h){if(A){let s;try{s=decodeURIComponent(U(h)).replace(c,"").toLowerCase()}catch(l){return null}if(s.indexOf("javascript:")===0||s.indexOf("vbscript:")===0||s.indexOf("data:")===0)return null}p&&!g.test(h)&&(h=n(p,h));try{h=encodeURI(h).replace(/%25/g,"%")}catch(s){return null}return h}const y={},f=/^[^:]+:\/*[^/]*$/,m=/^([^:]+:)[\s\S]*$/,a=/^([^:]+:\/*[^/]*)[\s\S]*$/;function n(A,p){y[" "+A]||(f.test(A)?y[" "+A]=A+"/":y[" "+A]=E(A,"/",!0)),A=y[" "+A];const h=A.indexOf(":")===-1;return p.substring(0,2)==="//"?h?p:A.replace(m,"$1")+p:p.charAt(0)==="/"?h?p:A.replace(a,"$1")+p:A+p}const o={exec:function(){}};function u(A){let p=1,h,s;for(;p{let I=!1,C=T;for(;--C>=0&&S[C]==="\\";)I=!I;return I?"|":" |"}),s=h.split(/ \|/);let l=0;if(s.length>p)s.splice(p);else for(;s.length1)Object(R.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(u.length===0)return Object(R.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var x=u[0];if(M.isValidElement(x)&&Object(c.c)(x)){var E=x.ref;u[0]=M.cloneElement(x,{ref:Object(c.a)(E,this.setChildNode)})}return u.length===1?u[0]:u.map(function(v,O){return!M.isValidElement(v)||"key"in v&&v.key!==null?v:M.cloneElement(v,{key:"".concat(w,"-").concat(O)})})}}]),a}(M.Component);y.displayName="ResizeObserver",de.a=y},tWlo:function(et,de){et.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGX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OT0xKRmB6ZpZX1UkE5ng0zeYhsNntkhBgqAs2yhwR4AoBrpUVaO/oEm38nelp6B/gJnCHCNzm1f79jxaWgsRLbDY7XKj/Dlb405I+ItDDqz2/sACnTp9DEqNc+qfO1MLwyKiYCewNEPov3EK+G59k39BOp3Nt+YiUViLQKNjBH8sV7EXNivhslgb4xb2J28SMtMSRmbrwBBYpZPOI+xw4J2aka23tzB4VETrdct6zoCECC7wjjWIy1tbewZT//9R4RYzxZOtZTwK0C2vEjHjT2Ov3sx2d3TA7ZxPzuhrB5nVdiQ8pNPPvKP+XkEjjbYKtXm0VOpHe5x01KDDI72dFtmI+EGz1IkDyOeIvnlETH/T/digqKoLXeLLts3UNgY0REXGQZpmpqtCmrjV1/ZWcrEzIzEhnTtwQhwQb/5vNDc1dkinak4gDsMUFSEhwMJQ9vhueqihnWhYBMhnokYRGowGLZRwcW9fWLsGxTV6HqA8F6sMfR5z0qiDUKsjQpoEuPQ1SsSILVPDd1FJTrDA/Fwry9NDX1w9dxh7MSs2+ytTjcI+7gc0IkHwpMD+JnpbnZGdCXk4WPJSUKFlHzj0bGTrtGqhZNjJqgQHzIHRjWMbzhd7/MqLaZxqzxfjVFU+UjhcZCs+gp7f9nowcszMhfg17SoptSKDyym9N9cbePt8O2GrQ5pbrDRMTkwbe6MQpN6hfFRUVWa+Qb+7je23ideLAtPdGZ/cUZpw1iTsTFtFLJcBwEc2RIryHqELvW2q/qQPT4JA4AmupL5aP/Saza8A0eDU2Jvr0DrWaNkEe3L32kULmhXV+cHHR8cOvV5tcDd9f8qvm9ouAW2Zm5yhpm5uwWi9HRoRXq1UqC9zt08cDe391VUiJPyaPo+F1zddaZy80XFyLRv52v2ViPrehiJSvz6Z7rthQpZI+t6E+K91yuj+3UXnkL+7PbYxCFdiIKfgYdTcohHZ23QTnEntd8Y8AAwCTubpzlq2wWAAAAABJRU5ErkJggg=="},ulZh:function(et,de,N){typeof window!="undefined"&&function(K,k){et.exports=k()}(this,function(){return function(ee){var K={};function k(z){if(K[z])return K[z].exports;var B=K[z]={i:z,l:!1,exports:{}};return ee[z].call(B.exports,B,B.exports,k),B.l=!0,B.exports}return k.m=ee,k.c=K,k.d=function(z,B,M){k.o(z,B)||Object.defineProperty(z,B,{enumerable:!0,get:M})},k.r=function(z){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(z,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(z,"__esModule",{value:!0})},k.t=function(z,B){if(B&1&&(z=k(z)),B&8)return z;if(B&4&&typeof z=="object"&&z&&z.__esModule)return z;var M=Object.create(null);if(k.r(M),Object.defineProperty(M,"default",{enumerable:!0,value:z}),B&2&&typeof z!="string")for(var j in z)k.d(M,j,function(U){return z[U]}.bind(null,j));return M},k.n=function(z){var B=z&&z.__esModule?function(){return z.default}:function(){return z};return k.d(B,"a",B),B},k.o=function(z,B){return Object.prototype.hasOwnProperty.call(z,B)},k.p="/dist/",k(k.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(ee,K,k){"use strict";var z=Object.prototype.hasOwnProperty,B="~";function M(){}Object.create&&(M.prototype=Object.create(null),new M().__proto__||(B=!1));function j(c,g,w){this.fn=c,this.context=g,this.once=w||!1}function U(c,g,w,y,f){if(typeof w!="function")throw new TypeError("The listener must be a function");var m=new j(w,y||c,f),a=B?B+g:g;return c._events[a]?c._events[a].fn?c._events[a]=[c._events[a],m]:c._events[a].push(m):(c._events[a]=m,c._eventsCount++),c}function _(c,g){--c._eventsCount===0?c._events=new M:delete c._events[g]}function R(){this._events=new M,this._eventsCount=0}R.prototype.eventNames=function(){var g=[],w,y;if(this._eventsCount===0)return g;for(y in w=this._events)z.call(w,y)&&g.push(B?y.slice(1):y);return Object.getOwnPropertySymbols?g.concat(Object.getOwnPropertySymbols(w)):g},R.prototype.listeners=function(g){var w=B?B+g:g,y=this._events[w];if(!y)return[];if(y.fn)return[y.fn];for(var f=0,m=y.length,a=new Array(m);f0},!1)}function c(g,w){for(var y={main:[w]},f={main:[]},m={main:{}};R(y);)for(var a=Object.keys(y),n=0;n=2*O/p||S<=C)return;var W=Number.POSITIVE_INFINITY,Y;for(Y=a.level-1;Y>s;Y--){var H=h[Y].maxBitrate;if(W=O*H/(8*.8*T),W=S)return;var F=this.bwEstimator.getEstimate();R.logger.warn("Fragment "+a.sn+(n?" part "+n.index:"")+" of level "+a.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+Y+` Current BW estimate: `+(Object(z.isFiniteNumber)(F)?(F/1024).toFixed(3):"Unknown")+` Kb/s Estimated load time for current fragment: `+S.toFixed(3)+` s Estimated load time for the next fragment: `+W.toFixed(3)+` s - Time to underbuffer: `+C.toFixed(3)+" s"),o.nextLoadLevel=Y,this.bwEstimator.sample(A,v.loaded),this.clearTimer(),a.loader&&(this.fragCurrent=this.partCurrent=null,a.loader.abort()),o.trigger(M.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:a,part:n,stats:v})},f.onFragLoaded=function(a,n){var o=n.frag,u=n.part;if(o.type===_.PlaylistLevelType.MAIN&&Object(z.isFiniteNumber)(o.sn)){var x=u?u.stats:o.stats,E=u?u.duration:o.duration;if(this.clearTimer(),this.lastLoadedFragLevel=o.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var v=this.hls.levels[o.level],O=(v.loaded?v.loaded.bytes:0)+x.loaded,A=(v.loaded?v.loaded.duration:0)+E;v.loaded={bytes:O,duration:A},v.realBitrate=Math.round(8*O/A)}if(o.bitrateTest){var p={stats:x,frag:o,part:u,id:o.type};this.onFragBuffered(M.Events.FRAG_BUFFERED,p),o.bitrateTest=!1}}},f.onFragBuffered=function(a,n){var o=n.frag,u=n.part,x=u?u.stats:o.stats;if(x.aborted)return;if(o.type!==_.PlaylistLevelType.MAIN||o.sn==="initSegment")return;var E=x.parsing.end-x.loading.start;this.bwEstimator.sample(E,x.loaded),x.bwEstimate=this.bwEstimator.getEstimate(),o.bitrateTest?this.bitrateTestDelay=E/1e3:this.bitrateTestDelay=0},f.onError=function(a,n){switch(n.details){case U.ErrorDetails.FRAG_LOAD_ERROR:case U.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},f.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},f.getNextABRAutoLevel=function(){var a=this.fragCurrent,n=this.partCurrent,o=this.hls,u=o.maxAutoLevel,x=o.config,E=o.minAutoLevel,v=o.media,O=n?n.duration:a?a.duration:0,A=v?v.currentTime:0,p=v&&v.playbackRate!==0?Math.abs(v.playbackRate):1,h=this.bwEstimator?this.bwEstimator.getEstimate():x.abrEwmaDefaultEstimate,s=(j.BufferHelper.bufferInfo(v,A,x.maxBufferHole).end-A)/p,l=this.findBestLevel(h,E,u,s,x.abrBandWidthFactor,x.abrBandWidthUpFactor);if(l>=0)return l;R.logger.trace((s?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var D=O?Math.min(O,x.maxStarvationDelay):x.maxStarvationDelay,T=x.abrBandWidthFactor,S=x.abrBandWidthUpFactor;if(!s){var I=this.bitrateTestDelay;if(I){var C=O?Math.min(O,x.maxLoadingDelay):x.maxLoadingDelay;D=C-I,R.logger.trace("bitrate test took "+Math.round(1e3*I)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*D)+" ms"),T=S=1}}return l=this.findBestLevel(h,E,u,s+D,T,S),Math.max(l,0)},f.findBestLevel=function(a,n,o,u,x,E){for(var v,O=this.fragCurrent,A=this.partCurrent,p=this.lastLoadedFragLevel,h=this.hls.levels,s=h[p],l=!!(s!=null&&(v=s.details)!==null&&v!==void 0&&v.live),D=s==null?void 0:s.codecSet,T=A?A.duration:O?O.duration:0,S=o;S>=n;S--){var I=h[S];if(!I||D&&I.codecSet!==D)continue;var C=I.details,W=(A?C==null?void 0:C.partTarget:C==null?void 0:C.averagetargetduration)||T,Y=void 0;S<=p?Y=x*a:Y=E*a;var H=h[S].maxBitrate,F=H*W/Y;if(R.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+S+"/"+Math.round(Y)+"/"+H+"/"+W+"/"+u+"/"+F),Y>H&&(!F||l&&!this.bitrateTestDelay||F0&&s===-1?(this.log("Override startPosition with lastCurrentTime @"+l.toFixed(3)),this.state=B.State.IDLE):(this.loadedmetadata=!1,this.state=B.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=s,this.tick()},p.doTick=function(){switch(this.state){case B.State.IDLE:this.doTickIdle();break;case B.State.WAITING_TRACK:{var s,l=this.levels,D=this.trackId,T=l==null||((s=l[D])===null||s===void 0)?void 0:s.details;if(T){if(this.waitForCdnTuneIn(T))break;this.state=B.State.WAITING_INIT_PTS}break}case B.State.FRAG_LOADING_WAITING_RETRY:{var S,I=performance.now(),C=this.retryDate;(!C||I>=C||(S=this.media)!==null&&S!==void 0&&S.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=B.State.IDLE);break}case B.State.WAITING_INIT_PTS:{var W=this.waitingData;if(W){var Y=W.frag,H=W.part,F=W.cache,q=W.complete;if(this.initPTS[Y.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=B.State.FRAG_LOADING;var le=F.flush(),pe={frag:Y,part:H,payload:le,networkDetails:null};this._handleFragmentLoadProgress(pe),q&&O.prototype._handleFragmentLoadComplete.call(this,pe)}else if(this.videoTrackCC!==this.waitingVideoCC)n.logger.log("Waiting fragment cc ("+Y.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var Ae=this.getLoadPosition(),Ge=j.BufferHelper.bufferInfo(this.mediaBuffer,Ae,this.config.maxBufferHole),Fe=Object(f.fragmentWithinToleranceTest)(Ge.end,this.config.maxFragLookUpTolerance,Y);Fe<0&&(n.logger.log("Waiting fragment cc ("+Y.cc+") @ "+Y.start+" cancelled because another fragment at "+Ge.end+" is needed"),this.clearWaitingFragment())}}else this.state=B.State.IDLE}}this.onTickEnd()},p.clearWaitingFragment=function(){var s=this.waitingData;s&&(this.fragmentTracker.removeFragment(s.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=B.State.IDLE)},p.onTickEnd=function(){var s=this.media;if(!s||!s.readyState)return;var l=this.mediaBuffer?this.mediaBuffer:s,D=l.buffered;!this.loadedmetadata&&D.length&&(this.loadedmetadata=!0),this.lastCurrentTime=s.currentTime},p.doTickIdle=function(){var s,l,D=this.hls,T=this.levels,S=this.media,I=this.trackId,C=D.config;if(!T||!T[I])return;if(!S&&(this.startFragRequested||!C.startFragPrefetch))return;var W=T[I],Y=W.details;if(!Y||Y.live&&this.levelLastLoaded!==I||this.waitForCdnTuneIn(Y)){this.state=B.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,c.ElementaryStreamTypes.AUDIO,R.PlaylistLevelType.AUDIO));var H=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,R.PlaylistLevelType.AUDIO);if(H===null)return;var F=H.len,q=this.getMaxBufferLength(),le=this.audioSwitch;if(F>=q&&!le)return;if(!le&&this._streamEnded(H,Y)){D.trigger(M.Events.BUFFER_EOS,{type:"audio"}),this.state=B.State.ENDED;return}var pe=Y.fragments,Ae=pe[0].start,Ge=H.end;if(le){var Fe=this.getLoadPosition();Ge=Fe,Y.PTSKnown&&FeAe||H.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),S.currentTime=Ae+.05))}var Ue=this.getNextFragment(Ge,Y);if(!Ue){this.bufferFlushed=!0;return}((s=Ue.decryptdata)===null||s===void 0?void 0:s.keyFormat)==="identity"&&!((l=Ue.decryptdata)!==null&&l!==void 0&&l.key)?this.loadKey(Ue,Y):this.loadFragment(Ue,Y,Ge)},p.getMaxBufferLength=function(){var s=O.prototype.getMaxBufferLength.call(this),l=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,R.PlaylistLevelType.MAIN);return l===null?s:Math.max(s,l.len)},p.onMediaDetaching=function(){this.videoBuffer=null,O.prototype.onMediaDetaching.call(this)},p.onAudioTracksUpdated=function(s,l){var D=l.audioTracks;this.resetTransmuxer(),this.levels=D.map(function(T){return new _.Level(T)})},p.onAudioTrackSwitching=function(s,l){var D=!!l.url;this.trackId=l.id;var T=this.fragCurrent;T!=null&&T.loader&&T.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),D?this.setInterval(E):this.resetTransmuxer(),D?(this.audioSwitch=!0,this.state=B.State.IDLE):this.state=B.State.STOPPED,this.tick()},p.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},p.onLevelLoaded=function(s,l){this.mainDetails=l.details},p.onAudioTrackLoaded=function(s,l){var D,T=this.levels,S=l.details,I=l.id;if(!T){this.warn("Audio tracks were reset while loading level "+I);return}this.log("Track "+I+" loaded ["+S.startSN+","+S.endSN+"],duration:"+S.totalduration);var C=T[I],W=0;if(S.live||(D=C.details)!==null&&D!==void 0&&D.live){var Y=this.mainDetails;if(S.fragments[0]||(S.deltaUpdateFailed=!0),S.deltaUpdateFailed||!Y)return;!C.details&&S.hasProgramDateTime&&Y.hasProgramDateTime?(Object(m.alignMediaPlaylistByPDT)(S,Y),W=S.fragments[0].start):W=this.alignPlaylists(S,C.details)}C.details=S,this.levelLastLoaded=I,!this.startFragRequested&&(this.mainDetails||!S.live)&&this.setStartPosition(C.details,W),this.state===B.State.WAITING_TRACK&&!this.waitForCdnTuneIn(S)&&(this.state=B.State.IDLE),this.tick()},p._handleFragmentLoadProgress=function(s){var l,D=s.frag,T=s.part,S=s.payload,I=this.config,C=this.trackId,W=this.levels;if(!W){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+D.sn+" of level "+D.level+" will not be buffered");return}var Y=W[C];console.assert(Y,"Audio track is defined on fragment load progress");var H=Y.details;console.assert(H,"Audio track details are defined on fragment load progress");var F=I.defaultAudioCodec||Y.audioCodec||"mp4a.40.2",q=this.transmuxer;q||(q=this.transmuxer=new w.default(this.hls,R.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var le=this.initPTS[D.cc],pe=(l=D.initSegment)===null||l===void 0?void 0:l.data;if(le!==void 0){var Ae=!1,Ge=T?T.index:-1,Fe=Ge!==-1,Ue=new y.ChunkMetadata(D.level,D.sn,D.stats.chunkCount,S.byteLength,Ge,Fe);q.push(S,pe,F,"",D,T,H.totalduration,Ae,Ue,le)}else{n.logger.log("Unknown video PTS for cc "+D.cc+", waiting for video PTS before demuxing audio frag "+D.sn+" of ["+H.startSN+" ,"+H.endSN+"],track "+C);var _e=this.waitingData=this.waitingData||{frag:D,part:T,cache:new g.default,complete:!1},je=_e.cache;je.push(new Uint8Array(S)),this.waitingVideoCC=this.videoTrackCC,this.state=B.State.WAITING_INIT_PTS}},p._handleFragmentLoadComplete=function(s){if(this.waitingData){this.waitingData.complete=!0;return}O.prototype._handleFragmentLoadComplete.call(this,s)},p.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},p.onBufferCreated=function(s,l){var D=l.tracks.audio;D&&(this.mediaBuffer=D.buffer),l.tracks.video&&(this.videoBuffer=l.tracks.video.buffer)},p.onFragBuffered=function(s,l){var D=l.frag,T=l.part;if(D.type!==R.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(D)){this.warn("Fragment "+D.sn+(T?" p: "+T.index:"")+" of level "+D.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}D.sn!=="initSegment"&&(this.fragPrevious=D,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(M.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(D,T)},p.onError=function(s,l){switch(l.details){case a.ErrorDetails.FRAG_LOAD_ERROR:case a.ErrorDetails.FRAG_LOAD_TIMEOUT:case a.ErrorDetails.KEY_LOAD_ERROR:case a.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(R.PlaylistLevelType.AUDIO,l);break;case a.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case a.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==B.State.ERROR&&this.state!==B.State.STOPPED&&(this.state=l.fatal?B.State.ERROR:B.State.IDLE,this.warn(l.details+" while loading frag, switching to "+this.state+" state"));break;case a.ErrorDetails.BUFFER_FULL_ERROR:if(l.parent==="audio"&&(this.state===B.State.PARSING||this.state===B.State.PARSED)){var D=!0,T=this.getFwdBufferInfo(this.mediaBuffer,R.PlaylistLevelType.AUDIO);T&&T.len>.5&&(D=!this.reduceMaxBufferLength(T.len)),D&&(this.warn("Buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,O.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}break;default:break}},p.onBufferFlushed=function(s,l){var D=l.type;D===c.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},p._handleTransmuxComplete=function(s){var l,D="audio",T=this.hls,S=s.remuxResult,I=s.chunkMeta,C=this.getCurrentContext(I);if(!C){this.warn("The loading context changed while buffering fragment "+I.sn+" of level "+I.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(I.level);return}var W=C.frag,Y=C.part,H=S.audio,F=S.text,q=S.id3,le=S.initSegment;if(this.fragContextChanged(W))return;if(this.state=B.State.PARSING,this.audioSwitch&&H&&this.completeAudioSwitch(),le!=null&&le.tracks&&(this._bufferInitSegment(le.tracks,W,I),T.trigger(M.Events.FRAG_PARSING_INIT_SEGMENT,{frag:W,id:D,tracks:le.tracks})),H){var pe=H.startPTS,Ae=H.endPTS,Ge=H.startDTS,Fe=H.endDTS;Y&&(Y.elementaryStreams[c.ElementaryStreamTypes.AUDIO]={startPTS:pe,endPTS:Ae,startDTS:Ge,endDTS:Fe}),W.setElementaryStreamInfo(c.ElementaryStreamTypes.AUDIO,pe,Ae,Ge,Fe),this.bufferFragmentData(H,W,Y,I)}if(q!=null&&(l=q.samples)!==null&&l!==void 0&&l.length){var Ue=o({frag:W,id:D},q);T.trigger(M.Events.FRAG_PARSING_METADATA,Ue)}if(F){var _e=o({frag:W,id:D},F);T.trigger(M.Events.FRAG_PARSING_USERDATA,_e)}},p._bufferInitSegment=function(s,l,D){if(this.state!==B.State.PARSING)return;s.video&&delete s.video;var T=s.audio;if(!T)return;T.levelCodec=T.codec,T.id="audio",this.log("Init audio buffer, container:"+T.container+", codecs[parsed]=["+T.codec+"]"),this.hls.trigger(M.Events.BUFFER_CODECS,s);var S=T.initSegment;if(S!=null&&S.byteLength){var I={type:"audio",frag:l,part:null,chunkMeta:D,parent:l.type,data:S};this.hls.trigger(M.Events.BUFFER_APPENDING,I)}this.tick()},p.loadFragment=function(s,l,D){var T=this.fragmentTracker.getState(s);this.fragCurrent=s,(this.audioSwitch||T===U.FragmentState.NOT_LOADED||T===U.FragmentState.PARTIAL)&&(s.sn==="initSegment"?this._loadInitSegment(s):l.live&&!Object(z.isFiniteNumber)(this.initPTS[s.cc])?(this.log("Waiting for video PTS in continuity counter "+s.cc+" of live stream before loading audio fragment "+s.sn+" of level "+this.trackId),this.state=B.State.WAITING_INIT_PTS):(this.startFragRequested=!0,O.prototype.loadFragment.call(this,s,l,D)))},p.completeAudioSwitch=function(){var s=this.hls,l=this.media,D=this.trackId;l&&(this.log("Switching audio track : flushing all audio"),O.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,s.trigger(M.Events.AUDIO_TRACK_SWITCHED,{id:D})},A}(B.default);K.default=v},"./src/controller/audio-track-controller.ts":function(ee,K,P){"use strict";P.r(K);var z=P("./src/events.ts"),B=P("./src/errors.ts"),M=P("./src/controller/base-playlist-controller.ts"),j=P("./src/types/loader.ts");function U(w,y){for(var f=0;f=n.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var o=n[this.trackId];this.log("Now switching to audio-track index "+a);var u=n[a],x=u.id,E=u.groupId,v=E===void 0?"":E,O=u.name,A=u.type,p=u.url;if(this.trackId=a,this.trackName=O,this.selectDefaultTrack=!1,this.hls.trigger(z.Events.AUDIO_TRACK_SWITCHING,{id:x,groupId:v,name:O,type:A,url:p}),u.details&&!u.details.live)return;var h=this.switchParams(u.url,o==null?void 0:o.details);this.loadPlaylist(h)},f.selectInitialTrack=function(){var a=this.tracksInGroup;console.assert(a.length,"Initial audio track should be selected when tracks are known");var n=this.trackName,o=this.findTrackId(n)||this.findTrackId();o!==-1?this.setAudioTrack(o):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(z.Events.ERROR,{type:B.ErrorTypes.MEDIA_ERROR,details:B.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},f.findTrackId=function(a){for(var n=this.tracksInGroup,o=0;oy.partTarget&&(u+=1)}if(Object(z.isFiniteNumber)(o))return new B.HlsUrlParameters(o,Object(z.isFiniteNumber)(u)?u:void 0,B.HlsSkip.No)}}},c.loadPlaylist=function(w){},c.shouldLoadTrack=function(w){return this.canLoad&&w&&!!w.url&&(!w.details||w.details.live)},c.playlistLoaded=function(w,y,f){var m=this,a=y.details,n=y.stats,o=n.loading.end?Math.max(0,self.performance.now()-n.loading.end):0;if(a.advancedDateTime=Date.now()-o,a.live||f!=null&&f.live){if(a.reloaded(f),f&&this.log("live playlist "+w+" "+(a.advanced?"REFRESHED "+a.lastPartSn+"-"+a.lastPartIndex:"MISSED")),f&&a.fragments.length>0&&Object(M.mergeDetails)(f,a),!this.canLoad||!a.live)return;var u,x=void 0,E=void 0;if(a.canBlockReload&&a.endSN&&a.advanced){var v=this.hls.config.lowLatencyMode,O=a.lastPartSn,A=a.endSN,p=a.lastPartIndex,h=p!==-1,s=O===A,l=v?0:p;h?(x=s?A+1:O,E=s?l:p+1):x=A+1;var D=a.age,T=D+a.ageHeader,S=Math.min(T-a.partTarget,a.targetduration*1.5);if(S>0){if(f&&S>f.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+f.tuneInGoal+" to: "+S+" with playlist age: "+a.age),S=0;else{var I=Math.floor(S/a.targetduration);if(x+=I,E!==void 0){var C=Math.round(S%a.targetduration/a.partTarget);E+=C}this.log("CDN Tune-in age: "+a.ageHeader+"s last advanced "+D.toFixed(2)+"s goal: "+S+" skip sn "+I+" to part "+E)}a.tuneInGoal=S}if(u=this.getDeliveryDirectives(a,y.deliveryDirectives,x,E),v||!s){this.loadPlaylist(u);return}}else u=this.getDeliveryDirectives(a,y.deliveryDirectives,x,E);var W=Object(M.computeReloadInterval)(a,n);x!==void 0&&a.canBlockReload&&(W-=a.partTarget||1),this.log("reload live playlist "+w+" in "+Math.round(W)+" ms"),this.timer=self.setTimeout(function(){return m.loadPlaylist(u)},W)}else this.clearTimer()},c.getDeliveryDirectives=function(w,y,f,m){var a=Object(B.getSkipValue)(w,f);return y!=null&&y.skip&&w.deltaUpdateFailed&&(f=y.msn,m=y.part,a=B.HlsSkip.No),new B.HlsUrlParameters(f,m,a)},c.retryLoadingOrFail=function(w){var y=this,f=this.hls.config,m=this.retryCount-1&&(a=w.context)!==null&&a!==void 0&&a.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+w.details+'"'),this.loadPlaylist();else{var n=Math.min(Math.pow(2,this.retryCount)*f.levelLoadingRetryDelay,f.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return y.loadPlaylist()},n),this.warn("retry playlist loading #"+this.retryCount+" in "+n+' ms after "'+w.details+'"')}}else this.warn('cannot recover from error "'+w.details+'"'),this.clearTimer(),w.fatal=!0;return m},R}()},"./src/controller/base-stream-controller.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"State",function(){return A}),P.d(K,"default",function(){return p});var z=P("./src/polyfills/number.ts"),B=P("./src/task-loop.ts"),M=P("./src/controller/fragment-tracker.ts"),j=P("./src/utils/buffer-helper.ts"),U=P("./src/utils/logger.ts"),_=P("./src/events.ts"),R=P("./src/errors.ts"),c=P("./src/types/transmuxer.ts"),g=P("./src/utils/mp4-tools.ts"),w=P("./src/utils/discontinuities.ts"),y=P("./src/controller/fragment-finders.ts"),f=P("./src/controller/level-helper.ts"),m=P("./src/loader/fragment-loader.ts"),a=P("./src/crypt/decrypter.ts"),n=P("./src/utils/time-ranges.ts"),o=P("./src/types/loader.ts");function u(h,s){for(var l=0;lle;(Y0&&Y&&Y.key&&Y.iv&&Y.method==="AES-128"){var H=self.performance.now();return S.decrypter.webCryptoDecrypt(new Uint8Array(W),Y.key.buffer,Y.iv.buffer).then(function(F){var q=self.performance.now();return C.trigger(_.Events.FRAG_DECRYPTED,{frag:T,payload:F,stats:{tstart:H,tdecrypt:q}}),I.payload=F,I})}return I}).then(function(I){var C=S.fragCurrent,W=S.hls,Y=S.levels;if(!Y)throw new Error("init load aborted, missing levels");var H=Y[T.level].details;console.assert(H,"Level details are defined when init segment is loaded");var F=T.stats;S.state=A.IDLE,S.fragLoadError=0,T.data=new Uint8Array(I.payload),F.parsing.start=F.buffering.start=self.performance.now(),F.parsing.end=F.buffering.end=self.performance.now(),I.frag===C&&W.trigger(_.Events.FRAG_BUFFERED,{stats:F,frag:C,part:null,id:T.type}),S.tick()}).catch(function(I){S.warn(I),S.resetFragmentLoading(T)})},l.fragContextChanged=function(T){var S=this.fragCurrent;return!T||!S||T.level!==S.level||T.sn!==S.sn||T.urlId!==S.urlId},l.fragBufferedComplete=function(T,S){var I=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+T.type+" sn: "+T.sn+(S?" part: "+S.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+T.level+" "+n.default.toString(j.BufferHelper.getBuffered(I))),this.state=A.IDLE,this.tick()},l._handleFragmentLoadComplete=function(T){var S=this.transmuxer;if(!S)return;var I=T.frag,C=T.part,W=T.partsLoaded,Y=!W||W.length===0||W.some(function(F){return!F}),H=new c.ChunkMetadata(I.level,I.sn,I.stats.chunkCount+1,0,C?C.index:-1,!Y);S.flush(H)},l._handleFragmentLoadProgress=function(T){},l._doFragLoad=function(T,S,I,C){var W=this;if(I===void 0&&(I=null),!this.levels)throw new Error("frag load aborted, missing levels");if(I=Math.max(T.start,I||0),this.config.lowLatencyMode&&S){var Y=S.partList;if(Y&&C){I>T.end&&S.fragmentHint&&(T=S.fragmentHint);var H=this.getNextPart(Y,T,I);if(H>-1){var F=Y[H];return this.log("Loading part sn: "+T.sn+" p: "+F.index+" cc: "+T.cc+" of playlist ["+S.startSN+"-"+S.endSN+"] parts [0-"+H+"-"+(Y.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+T.level+", target: "+parseFloat(I.toFixed(3))),this.nextLoadPosition=F.start+F.duration,this.state=A.FRAG_LOADING,this.hls.trigger(_.Events.FRAG_LOADING,{frag:T,part:Y[H],targetBufferTime:I}),this.doFragPartsLoad(T,Y,H,C).catch(function(q){return W.handleFragLoadError(q)})}else if(!T.url||this.loadedEndOfParts(Y,I))return Promise.resolve(null)}}return this.log("Loading fragment "+T.sn+" cc: "+T.cc+" "+(S?"of ["+S.startSN+"-"+S.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+T.level+", target: "+parseFloat(I.toFixed(3))),Object(z.isFiniteNumber)(T.sn)&&!this.bitrateTest&&(this.nextLoadPosition=T.start+T.duration),this.state=A.FRAG_LOADING,this.hls.trigger(_.Events.FRAG_LOADING,{frag:T,targetBufferTime:I}),this.fragmentLoader.load(T,C).catch(function(q){return W.handleFragLoadError(q)})},l.doFragPartsLoad=function(T,S,I,C){var W=this;return new Promise(function(Y,H){var F=[],q=function le(pe){var Ae=S[pe];W.fragmentLoader.loadPart(T,Ae,C).then(function(Ge){F[Ae.index]=Ge;var Fe=Ge.part;W.hls.trigger(_.Events.FRAG_LOADED,Ge);var Ue=S[pe+1];if(Ue&&Ue.fragment===T)le(pe+1);else return Y({frag:T,part:Fe,partsLoaded:F})}).catch(H)};q(I)})},l.handleFragLoadError=function(T){var S=T.data;return S&&S.details===R.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(S.frag,S.part):this.hls.trigger(_.Events.ERROR,S),null},l._handleTransmuxerFlush=function(T){var S=this.getCurrentContext(T);if(!S||this.state!==A.PARSING){this.fragCurrent||(this.state=A.IDLE);return}var I=S.frag,C=S.part,W=S.level,Y=self.performance.now();I.stats.parsing.end=Y,C&&(C.stats.parsing.end=Y),this.updateLevelTiming(I,C,W,T.partial)},l.getCurrentContext=function(T){var S=this.levels,I=T.level,C=T.sn,W=T.part;if(!S||!S[I])return this.warn("Levels object was unset while buffering fragment "+C+" of level "+I+". The current chunk will not be buffered."),null;var Y=S[I],H=W>-1?Object(f.getPartWith)(Y,C,W):null,F=H?H.fragment:Object(f.getFragmentWithSN)(Y,C,this.fragCurrent);return F?{frag:F,part:H,level:Y}:null},l.bufferFragmentData=function(T,S,I,C){if(!T||this.state!==A.PARSING)return;var W=T.data1,Y=T.data2,H=W;if(W&&Y&&(H=Object(g.appendUint8Array)(W,Y)),!H||!H.length)return;var F={type:T.type,frag:S,part:I,chunkMeta:C,parent:S.type,data:H};this.hls.trigger(_.Events.BUFFER_APPENDING,F),T.dropped&&T.independent&&!I&&this.flushBufferGap(S)},l.flushBufferGap=function(T){var S=this.media;if(!S)return;if(!j.BufferHelper.isBuffered(S,S.currentTime)){this.flushMainBuffer(0,T.start);return}var I=S.currentTime,C=j.BufferHelper.bufferInfo(S,I,0),W=T.duration,Y=Math.min(this.config.maxFragLookUpTolerance*2,W*.25),H=Math.max(Math.min(T.start-Y,C.end-Y),I+Y);T.start-H>Y&&this.flushMainBuffer(H,T.start)},l.getFwdBufferInfo=function(T,S){var I=this.config,C=this.getLoadPosition();if(!Object(z.isFiniteNumber)(C))return null;var W=j.BufferHelper.bufferInfo(T,C,I.maxBufferHole);if(W.len===0&&W.nextStart!==void 0){var Y=this.fragmentTracker.getBufferedFrag(C,S);if(Y&&W.nextStart=I?(S.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+S.maxMaxBufferLength+"s"),!0):!1},l.getNextFragment=function(T,S){var I,C,W=S.fragments,Y=W.length;if(!Y)return null;var H=this.config,F=W[0].start,q;if(S.live){var le=H.initialLiveManifestSize;if(Y-1&&II.start&&I.loaded},l.getInitialLiveFragment=function(T,S){var I=this.fragPrevious,C=null;if(I){if(T.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+I.programDateTime),C=Object(y.findFragmentByPDT)(S,I.endProgramDateTime,this.config.maxFragLookUpTolerance)),!C){var W=I.sn+1;if(W>=T.startSN&&W<=T.endSN){var Y=S[W-T.startSN];I.cc===Y.cc&&(C=Y,this.log("Live playlist, switching playlist, load frag with next SN: "+C.sn))}C||(C=Object(y.findFragWithCC)(S,I.cc),C&&this.log("Live playlist, switching playlist, load frag with same CC: "+C.sn))}}else{var H=this.hls.liveSyncPosition;H!==null&&(C=this.getFragmentAtPosition(H,this.bitrateTest?T.fragmentEnd:T.edge,T))}return C},l.getFragmentAtPosition=function(T,S,I){var C=this.config,W=this.fragPrevious,Y=I.fragments,H=I.endSN,F=I.fragmentHint,q=C.maxFragLookUpTolerance,le=!!(C.lowLatencyMode&&I.partList&&F);le&&F&&!this.bitrateTest&&(Y=Y.concat(F),H=F.sn);var pe;if(TS-q?0:q;pe=Object(y.findFragmentByPTS)(W,Y,T,Ae)}else pe=Y[Y.length-1];if(pe){var Ge=pe.sn-I.startSN,Fe=W&&pe.level===W.level,Ue=Y[Ge+1],_e=this.fragmentTracker.getState(pe);if(_e===M.FragmentState.BACKTRACKED){pe=null;for(var je=Ge;Y[je]&&this.fragmentTracker.getState(Y[je])===M.FragmentState.BACKTRACKED;)W?pe=Y[je--]:pe=Y[--je];pe||(pe=Ue)}else W&&pe.sn===W.sn&&!le&&(Fe&&(pe.sn=Y-S.maxFragLookUpTolerance&&W<=H;if(C!==null&&I.duration>C&&(W"+T.startSN+" prev-sn: "+(W?W.sn:"na")+" fragments: "+H),pe}return F},l.waitForCdnTuneIn=function(T){var S=3;return T.live&&T.canBlockReload&&T.tuneInGoal>Math.max(T.partHoldBack,T.partTarget*S)},l.setStartPosition=function(T,S){var I=this.startPosition;if(I"+T))}}]),s}(B.default)},"./src/controller/buffer-controller.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"default",function(){return y});var z=P("./src/polyfills/number.ts"),B=P("./src/events.ts"),M=P("./src/utils/logger.ts"),j=P("./src/errors.ts"),U=P("./src/utils/buffer-helper.ts"),_=P("./src/utils/mediasource-helper.ts"),R=P("./src/loader/fragment.ts"),c=P("./src/controller/buffer-operation-queue.ts"),g=Object(_.getMediaSource)(),w=/([ha]vc.)(?:\.[^.,]+)+/,y=function(){function f(a){var n=this;this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.appendError=0,this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this._onMediaSourceOpen=function(){var o=n.hls,u=n.media,x=n.mediaSource;M.logger.log("[buffer-controller]: Media source opened"),u&&(n.updateMediaElementDuration(),o.trigger(B.Events.MEDIA_ATTACHED,{media:u})),x&&x.removeEventListener("sourceopen",n._onMediaSourceOpen),n.checkPendingTracks()},this._onMediaSourceClose=function(){M.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){M.logger.log("[buffer-controller]: Media source ended")},this.hls=a,this._initSourceBuffer(),this.registerListeners()}var m=f.prototype;return m.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},m.destroy=function(){this.unregisterListeners(),this.details=null},m.registerListeners=function(){var n=this.hls;n.on(B.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),n.on(B.Events.MEDIA_DETACHING,this.onMediaDetaching,this),n.on(B.Events.MANIFEST_PARSED,this.onManifestParsed,this),n.on(B.Events.BUFFER_RESET,this.onBufferReset,this),n.on(B.Events.BUFFER_APPENDING,this.onBufferAppending,this),n.on(B.Events.BUFFER_CODECS,this.onBufferCodecs,this),n.on(B.Events.BUFFER_EOS,this.onBufferEos,this),n.on(B.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),n.on(B.Events.LEVEL_UPDATED,this.onLevelUpdated,this),n.on(B.Events.FRAG_PARSED,this.onFragParsed,this),n.on(B.Events.FRAG_CHANGED,this.onFragChanged,this)},m.unregisterListeners=function(){var n=this.hls;n.off(B.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),n.off(B.Events.MEDIA_DETACHING,this.onMediaDetaching,this),n.off(B.Events.MANIFEST_PARSED,this.onManifestParsed,this),n.off(B.Events.BUFFER_RESET,this.onBufferReset,this),n.off(B.Events.BUFFER_APPENDING,this.onBufferAppending,this),n.off(B.Events.BUFFER_CODECS,this.onBufferCodecs,this),n.off(B.Events.BUFFER_EOS,this.onBufferEos,this),n.off(B.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),n.off(B.Events.LEVEL_UPDATED,this.onLevelUpdated,this),n.off(B.Events.FRAG_PARSED,this.onFragParsed,this),n.off(B.Events.FRAG_CHANGED,this.onFragChanged,this)},m._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new c.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},m.onManifestParsed=function(n,o){var u=2;(o.audio&&!o.video||!o.altAudio)&&(u=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=u,this.details=null,M.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},m.onMediaAttaching=function(n,o){var u=this.media=o.media;if(u&&g){var x=this.mediaSource=new g;x.addEventListener("sourceopen",this._onMediaSourceOpen),x.addEventListener("sourceended",this._onMediaSourceEnded),x.addEventListener("sourceclose",this._onMediaSourceClose),u.src=self.URL.createObjectURL(x),this._objectUrl=u.src}},m.onMediaDetaching=function(){var n=this.media,o=this.mediaSource,u=this._objectUrl;if(o){if(M.logger.log("[buffer-controller]: media source detaching"),o.readyState==="open")try{o.endOfStream()}catch(x){M.logger.warn("[buffer-controller]: onMediaDetaching: "+x.message+" while calling endOfStream")}this.onBufferReset(),o.removeEventListener("sourceopen",this._onMediaSourceOpen),o.removeEventListener("sourceended",this._onMediaSourceEnded),o.removeEventListener("sourceclose",this._onMediaSourceClose),n&&(u&&self.URL.revokeObjectURL(u),n.src===u?(n.removeAttribute("src"),n.load()):M.logger.warn("[buffer-controller]: media.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(B.Events.MEDIA_DETACHED,void 0)},m.onBufferReset=function(){var n=this;this.getSourceBufferTypes().forEach(function(o){var u=n.sourceBuffer[o];try{u&&(n.removeBufferListeners(o),n.mediaSource&&n.mediaSource.removeSourceBuffer(u),n.sourceBuffer[o]=void 0)}catch(x){M.logger.warn("[buffer-controller]: Failed to reset the "+o+" buffer",x)}}),this._initSourceBuffer()},m.onBufferCodecs=function(n,o){var u=this,x=this.getSourceBufferTypes().length;if(Object.keys(o).forEach(function(E){if(x){var v=u.tracks[E];if(v&&typeof v.buffer.changeType=="function"){var O=o[E],A=O.codec,p=O.levelCodec,h=O.container,s=(v.levelCodec||v.codec).replace(w,"$1"),l=(p||A).replace(w,"$1");if(s!==l){var D=h+";codecs="+(p||A);u.appendChangeType(E,D)}}}else u.pendingTracks[E]=o[E]}),x)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},m.appendChangeType=function(n,o){var u=this,x=this.operationQueue,E={execute:function(){var O=u.sourceBuffer[n];O&&(M.logger.log("[buffer-controller]: changing "+n+" sourceBuffer type to "+o),O.changeType(o)),x.shiftAndExecuteNext(n)},onStart:function(){},onComplete:function(){},onError:function(O){M.logger.warn("[buffer-controller]: Failed to change "+n+" SourceBuffer type",O)}};x.append(E,n)},m.onBufferAppending=function(n,o){var u=this,x=this.hls,E=this.operationQueue,v=this.tracks,O=o.data,A=o.type,p=o.frag,h=o.part,s=o.chunkMeta,l=s.buffering[A],D=self.performance.now();l.start=D;var T=p.stats.buffering,S=h?h.stats.buffering:null;T.start===0&&(T.start=D),S&&S.start===0&&(S.start=D);var I=v.audio,C=A==="audio"&&s.id===1&&(I==null?void 0:I.container)==="audio/mpeg",W={execute:function(){if(l.executeStart=self.performance.now(),C){var H=u.sourceBuffer[A];if(H){var F=p.start-H.timestampOffset;Math.abs(F)>=.1&&(M.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+p.start+" (delta: "+F+") sn: "+p.sn+")"),H.timestampOffset=p.start)}}u.appendExecutor(O,A)},onStart:function(){},onComplete:function(){var H=self.performance.now();l.executeEnd=l.end=H,T.first===0&&(T.first=H),S&&S.first===0&&(S.first=H);var F=u.sourceBuffer,q={};for(var le in F)q[le]=U.BufferHelper.getBuffered(F[le]);u.appendError=0,u.hls.trigger(B.Events.BUFFER_APPENDED,{type:A,frag:p,part:h,chunkMeta:s,parent:p.type,timeRanges:q})},onError:function(H){M.logger.error("[buffer-controller]: Error encountered while trying to append to the "+A+" SourceBuffer",H);var F={type:j.ErrorTypes.MEDIA_ERROR,parent:p.type,details:j.ErrorDetails.BUFFER_APPEND_ERROR,err:H,fatal:!1};H.code===DOMException.QUOTA_EXCEEDED_ERR?F.details=j.ErrorDetails.BUFFER_FULL_ERROR:(u.appendError++,F.details=j.ErrorDetails.BUFFER_APPEND_ERROR,u.appendError>x.config.appendErrorMaxRetry&&(M.logger.error("[buffer-controller]: Failed "+x.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),F.fatal=!0)),x.trigger(B.Events.ERROR,F)}};E.append(W,A)},m.onBufferFlushing=function(n,o){var u=this,x=this.operationQueue,E=function(O){return{execute:u.removeExecutor.bind(u,O,o.startOffset,o.endOffset),onStart:function(){},onComplete:function(){u.hls.trigger(B.Events.BUFFER_FLUSHED,{type:O})},onError:function(p){M.logger.warn("[buffer-controller]: Failed to remove from "+O+" SourceBuffer",p)}}};o.type?x.append(E(o.type),o.type):this.getSourceBufferTypes().forEach(function(v){x.append(E(v),v)})},m.onFragParsed=function(n,o){var u=this,x=o.frag,E=o.part,v=[],O=E?E.elementaryStreams:x.elementaryStreams;O[R.ElementaryStreamTypes.AUDIOVIDEO]?v.push("audiovideo"):(O[R.ElementaryStreamTypes.AUDIO]&&v.push("audio"),O[R.ElementaryStreamTypes.VIDEO]&&v.push("video"));var A=function(){var h=self.performance.now();x.stats.buffering.end=h,E&&(E.stats.buffering.end=h);var s=E?E.stats:x.stats;u.hls.trigger(B.Events.FRAG_BUFFERED,{frag:x,part:E,stats:s,id:x.type})};v.length===0&&M.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+x.type+" level: "+x.level+" sn: "+x.sn),this.blockBuffers(A,v)},m.onFragChanged=function(n,o){this.flushBackBuffer()},m.onBufferEos=function(n,o){var u=this,x=this.getSourceBufferTypes().reduce(function(E,v){var O=u.sourceBuffer[v];return(!o.type||o.type===v)&&(O&&!O.ended&&(O.ended=!0,M.logger.log("[buffer-controller]: "+v+" sourceBuffer now EOS"))),E&&!!(!O||O.ended)},!0);x&&this.blockBuffers(function(){var E=u.mediaSource;if(!E||E.readyState!=="open")return;E.endOfStream()})},m.onLevelUpdated=function(n,o){var u=o.details;if(!u.fragments.length)return;this.details=u,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},m.flushBackBuffer=function(){var n=this.hls,o=this.details,u=this.media,x=this.sourceBuffer;if(!u||o===null)return;var E=this.getSourceBufferTypes();if(!E.length)return;var v=o.live&&n.config.liveBackBufferLength!==null?n.config.liveBackBufferLength:n.config.backBufferLength;if(!Object(z.isFiniteNumber)(v)||v<0)return;var O=u.currentTime,A=o.levelTargetDuration,p=Math.max(v,A),h=Math.floor(O/A)*A-p;E.forEach(function(s){var l=x[s];if(l){var D=U.BufferHelper.getBuffered(l);D.length>0&&h>D.start(0)&&(n.trigger(B.Events.BACK_BUFFER_REACHED,{bufferEnd:h}),o.live&&n.trigger(B.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:h}),n.trigger(B.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:h,type:s}))}})},m.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var n=this.details,o=this.hls,u=this.media,x=this.mediaSource,E=n.fragments[0].start+n.totalduration,v=u.duration,O=Object(z.isFiniteNumber)(x.duration)?x.duration:0;n.live&&o.config.liveDurationInfinity?(M.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),x.duration=Infinity,this.updateSeekableRange(n)):(E>O&&E>v||!Object(z.isFiniteNumber)(v))&&(M.logger.log("[buffer-controller]: Updating Media Source duration to "+E.toFixed(3)),x.duration=E)},m.updateSeekableRange=function(n){var o=this.mediaSource,u=n.fragments,x=u.length;if(x&&n.live&&o!==null&&o!==void 0&&o.setLiveSeekableRange){var E=Math.max(0,u[0].start),v=Math.max(E,E+n.totalduration);o.setLiveSeekableRange(E,v)}},m.checkPendingTracks=function(){var n=this.bufferCodecEventsExpected,o=this.operationQueue,u=this.pendingTracks,x=Object.keys(u).length;if(x&&!n||x===2){this.createSourceBuffers(u),this.pendingTracks={};var E=this.getSourceBufferTypes();if(E.length===0){this.hls.trigger(B.Events.ERROR,{type:j.ErrorTypes.MEDIA_ERROR,details:j.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});return}E.forEach(function(v){o.executeNext(v)})}},m.createSourceBuffers=function(n){var o=this.sourceBuffer,u=this.mediaSource;if(!u)throw Error("createSourceBuffers called when mediaSource was null");var x=0;for(var E in n)if(!o[E]){var v=n[E];if(!v)throw Error("source buffer exists for track "+E+", however track does not");var O=v.levelCodec||v.codec,A=v.container+";codecs="+O;M.logger.log("[buffer-controller]: creating sourceBuffer("+A+")");try{var p=o[E]=u.addSourceBuffer(A),h=E;this.addBufferListener(h,"updatestart",this._onSBUpdateStart),this.addBufferListener(h,"updateend",this._onSBUpdateEnd),this.addBufferListener(h,"error",this._onSBUpdateError),this.tracks[E]={buffer:p,codec:O,container:v.container,levelCodec:v.levelCodec,id:v.id},x++}catch(s){M.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+s.message),this.hls.trigger(B.Events.ERROR,{type:j.ErrorTypes.MEDIA_ERROR,details:j.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:s,mimeType:A})}}x&&this.hls.trigger(B.Events.BUFFER_CREATED,{tracks:this.tracks})},m._onSBUpdateStart=function(n){var o=this.operationQueue,u=o.current(n);u.onStart()},m._onSBUpdateEnd=function(n){var o=this.operationQueue,u=o.current(n);u.onComplete(),o.shiftAndExecuteNext(n)},m._onSBUpdateError=function(n,o){M.logger.error("[buffer-controller]: "+n+" SourceBuffer error",o),this.hls.trigger(B.Events.ERROR,{type:j.ErrorTypes.MEDIA_ERROR,details:j.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var u=this.operationQueue.current(n);u&&u.onError(o)},m.removeExecutor=function(n,o,u){var x=this.media,E=this.mediaSource,v=this.operationQueue,O=this.sourceBuffer,A=O[n];if(!x||!E||!A){M.logger.warn("[buffer-controller]: Attempting to remove from the "+n+" SourceBuffer, but it does not exist"),v.shiftAndExecuteNext(n);return}var p=Object(z.isFiniteNumber)(x.duration)?x.duration:Infinity,h=Object(z.isFiniteNumber)(E.duration)?E.duration:Infinity,s=Math.max(0,o),l=Math.min(u,p,h);l>s?(M.logger.log("[buffer-controller]: Removing ["+s+","+l+"] from the "+n+" SourceBuffer"),console.assert(!A.updating,n+" sourceBuffer must not be updating"),A.remove(s,l)):v.shiftAndExecuteNext(n)},m.appendExecutor=function(n,o){var u=this.operationQueue,x=this.sourceBuffer,E=x[o];if(!E){M.logger.warn("[buffer-controller]: Attempting to append to the "+o+" SourceBuffer, but it does not exist"),u.shiftAndExecuteNext(o);return}E.ended=!1,console.assert(!E.updating,o+" sourceBuffer must not be updating"),E.appendBuffer(n)},m.blockBuffers=function(n,o){var u=this;if(o===void 0&&(o=this.getSourceBufferTypes()),!o.length){M.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(n);return}var x=this.operationQueue,E=o.map(function(v){return x.appendBlocker(v)});Promise.all(E).then(function(){n(),o.forEach(function(v){var O=u.sourceBuffer[v];(!O||!O.updating)&&x.shiftAndExecuteNext(v)})})},m.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},m.addBufferListener=function(n,o,u){var x=this.sourceBuffer[n];if(!x)return;var E=u.bind(this,n);this.listeners[n].push({event:o,listener:E}),x.addEventListener(o,E)},m.removeBufferListeners=function(n){var o=this.sourceBuffer[n];if(!o)return;this.listeners[n].forEach(function(u){o.removeEventListener(u.event,u.listener)})},f}()},"./src/controller/buffer-operation-queue.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"default",function(){return B});var z=P("./src/utils/logger.ts"),B=function(){function M(U){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=U}var j=M.prototype;return j.append=function(_,R){var c=this.queues[R];c.push(_),c.length===1&&this.buffers[R]&&this.executeNext(R)},j.insertAbort=function(_,R){var c=this.queues[R];c.unshift(_),this.executeNext(R)},j.appendBlocker=function(_){var R,c=new Promise(function(w){R=w}),g={execute:R,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(g,_),c},j.executeNext=function(_){var R=this.buffers,c=this.queues,g=R[_],w=c[_];if(w.length){var y=w[0];try{y.execute()}catch(f){z.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),y.onError(f),(!g||!g.updating)&&(w.shift(),this.executeNext(_))}}},j.shiftAndExecuteNext=function(_){this.queues[_].shift(),this.executeNext(_)},j.current=function(_){return this.queues[_][0]},M}()},"./src/controller/cap-level-controller.ts":function(ee,K,P){"use strict";P.r(K);var z=P("./src/events.ts");function B(U,_){for(var R=0;R<_.length;R++){var c=_[R];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(U,c.key,c)}}function M(U,_,R){return _&&B(U.prototype,_),R&&B(U,R),U}var j=function(){function U(R){this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.hls=void 0,this.streamController=void 0,this.clientRect=void 0,this.hls=R,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}var _=U.prototype;return _.setStreamController=function(c){this.streamController=c},_.destroy=function(){this.unregisterListener(),this.hls.config.capLevelToPlayerSize&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null},_.registerListeners=function(){var c=this.hls;c.on(z.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),c.on(z.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),c.on(z.Events.MANIFEST_PARSED,this.onManifestParsed,this),c.on(z.Events.BUFFER_CODECS,this.onBufferCodecs,this),c.on(z.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},_.unregisterListener=function(){var c=this.hls;c.off(z.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),c.off(z.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),c.off(z.Events.MANIFEST_PARSED,this.onManifestParsed,this),c.off(z.Events.BUFFER_CODECS,this.onBufferCodecs,this),c.off(z.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},_.onFpsDropLevelCapping=function(c,g){U.isLevelAllowed(g.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(g.droppedLevel)},_.onMediaAttaching=function(c,g){this.media=g.media instanceof HTMLVideoElement?g.media:null},_.onManifestParsed=function(c,g){var w=this.hls;this.restrictedLevels=[],this.firstLevel=g.firstLevel,w.config.capLevelToPlayerSize&&g.video&&this.startCapping()},_.onBufferCodecs=function(c,g){var w=this.hls;w.config.capLevelToPlayerSize&&g.video&&this.startCapping()},_.onMediaDetaching=function(){this.stopCapping()},_.detectPlayerSize=function(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){var c=this.hls.levels;if(c.length){var g=this.hls;g.autoLevelCapping=this.getMaxLevel(c.length-1),g.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=g.autoLevelCapping}}},_.getMaxLevel=function(c){var g=this,w=this.hls.levels;if(!w.length)return-1;var y=w.filter(function(f,m){return U.isLevelAllowed(m,g.restrictedLevels)&&m<=c});return this.clientRect=null,U.getMaxLevelByMediaSize(y,this.mediaWidth,this.mediaHeight)},_.startCapping=function(){if(this.timer)return;this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize()},_.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},_.getDimensions=function(){if(this.clientRect)return this.clientRect;var c=this.media,g={width:0,height:0};if(c){var w=c.getBoundingClientRect();g.width=w.width,g.height=w.height,!g.width&&!g.height&&(g.width=w.right-w.left||c.width||0,g.height=w.bottom-w.top||c.height||0)}return this.clientRect=g,g},U.isLevelAllowed=function(c,g){return g===void 0&&(g=[]),g.indexOf(c)===-1},U.getMaxLevelByMediaSize=function(c,g,w){if(!c||!c.length)return-1;for(var y=function(o,u){return u?o.width!==u.width||o.height!==u.height:!0},f=c.length-1,m=0;m=g||a.height>=w)&&y(a,c[m+1])){f=m;break}}return f},M(U,[{key:"mediaWidth",get:function(){return this.getDimensions().width*U.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*U.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var c=1;try{c=self.devicePixelRatio}catch(g){}return c}}]),U}();K.default=j},"./src/controller/cmcd-controller.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"default",function(){return y});var z=P("./src/events.ts"),B=P("./src/types/cmcd.ts"),M=P("./src/utils/buffer-helper.ts"),j=P("./src/utils/logger.ts");function U(f,m){for(var a=0;a=f.length?{done:!0}:{done:!1,value:f[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c(f,m){if(!f)return;if(typeof f=="string")return g(f,m);var a=Object.prototype.toString.call(f).slice(8,-1);if(a==="Object"&&f.constructor&&(a=f.constructor.name),a==="Map"||a==="Set")return Array.from(f);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return g(f,m)}function g(f,m){(m==null||m>f.length)&&(m=f.length);for(var a=0,n=new Array(m);ao&&(o=v.bitrate)}return o>0?o:NaN},m.getBufferLength=function(n){var o=this.hls.media,u=n===B.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!u||!o)return NaN;var x=M.BufferHelper.bufferInfo(u,o.currentTime,this.config.maxBufferHole);return x.len*1e3},m.createPlaylistLoader=function(){var n=this.config.pLoader,o=this.applyPlaylistData,u=n||this.config.loader;return function(){function x(v){this.loader=void 0,this.loader=new u(v)}var E=x.prototype;return E.destroy=function(){this.loader.destroy()},E.abort=function(){this.loader.abort()},E.load=function(O,A,p){o(O),this.loader.load(O,A,p)},_(x,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),x}()},m.createFragmentLoader=function(){var n=this.config.fLoader,o=this.applyFragmentData,u=n||this.config.loader;return function(){function x(v){this.loader=void 0,this.loader=new u(v)}var E=x.prototype;return E.destroy=function(){this.loader.destroy()},E.abort=function(){this.loader.abort()},E.load=function(O,A,p){o(O),this.loader.load(O,A,p)},_(x,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),x}()},f.uuid=function(){var n=URL.createObjectURL(new Blob),o=n.toString();return URL.revokeObjectURL(n),o.substr(o.lastIndexOf("/")+1)},f.serialize=function(n){for(var o=[],u=function(C){return!Number.isNaN(C)&&C!=null&&C!==""&&C!==!1},x=function(C){return Math.round(C)},E=function(C){return x(C/100)*100},v=function(C){return encodeURIComponent(C)},O={br:x,d:x,bl:E,dl:E,mtp:E,nor:v,rtp:E,tb:x},A=Object.keys(n||{}).sort(),p=R(A),h;!(h=p()).done;){var s=h.value,l=n[s];if(!u(l))continue;if(s==="v"&&l===1)continue;if(s=="pr"&&l===1)continue;var D=O[s];D&&(l=D(l));var T=typeof l,S=void 0;s==="ot"||s==="sf"||s==="st"?S=s+"="+l:T==="boolean"?S=s:T==="number"?S=s+"="+l:S=s+"="+JSON.stringify(l),o.push(S)}return o.join(",")},f.toHeaders=function(n){for(var o=Object.keys(n),u={},x=["Object","Request","Session","Status"],E=[{},{},{},{}],v={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},O=0,A=o;OR){this.hls.trigger(z.Events.ERROR,{type:B.ErrorTypes.KEY_SYSTEM_ERROR,details:B.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var v=R-this._requestLicenseFailureCount+1;M.logger.warn("Retrying license request, "+v+" attempts left"),this._requestLicense(o,u)}break}},f._generateLicenseRequestChallenge=function(a,n){switch(a.mediaKeySystemDomain){case j.KeySystems.WIDEVINE:return n}throw new Error("unsupported key-system: "+a.mediaKeySystemDomain)},f._requestLicense=function(a,n){M.logger.log("Requesting content license for key-system");var o=this._mediaKeysList[0];if(!o){M.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(z.Events.ERROR,{type:B.ErrorTypes.KEY_SYSTEM_ERROR,details:B.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var u=this.getLicenseServerUrl(o.mediaKeySystemDomain),x=this._createLicenseXhr(u,a,n);M.logger.log("Sending license request to URL: "+u);var E=this._generateLicenseRequestChallenge(o,a);x.send(E)}catch(v){M.logger.error("Failure requesting DRM license: "+v),this.hls.trigger(z.Events.ERROR,{type:B.ErrorTypes.KEY_SYSTEM_ERROR,details:B.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},f.onMediaAttached=function(a,n){if(!this._emeEnabled)return;var o=n.media;this._media=o,o.addEventListener("encrypted",this._onMediaEncrypted)},f.onMediaDetached=function(){var a=this._media,n=this._mediaKeysList;if(!a)return;a.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(n.map(function(o){if(o.mediaKeysSession)return o.mediaKeysSession.close().catch(function(){})})).then(function(){return a.setMediaKeys(null)}).catch(function(){})},f.onManifestParsed=function(a,n){if(!this._emeEnabled)return;var o=n.levels.map(function(x){return x.audioCodec}).filter(function(x){return!!x}),u=n.levels.map(function(x){return x.videoCodec}).filter(function(x){return!!x});this._attemptKeySystemAccess(j.KeySystems.WIDEVINE,o,u)},_(y,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),y}();K.default=w},"./src/controller/fps-controller.ts":function(ee,K,P){"use strict";P.r(K);var z=P("./src/events.ts"),B=P("./src/utils/logger.ts"),M=function(){function j(_){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=_,this.registerListeners()}var U=j.prototype;return U.setStreamController=function(R){this.streamController=R},U.registerListeners=function(){this.hls.on(z.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},U.unregisterListeners=function(){this.hls.off(z.Events.MEDIA_ATTACHING,this.onMediaAttaching)},U.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},U.onMediaAttaching=function(R,c){var g=this.hls.config;if(g.capLevelOnFPSDrop){var w=c.media instanceof self.HTMLVideoElement?c.media:null;this.media=w,w&&typeof w.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),g.fpsDroppedMonitoringPeriod)}},U.checkFPS=function(R,c,g){var w=performance.now();if(c){if(this.lastTime){var y=w-this.lastTime,f=g-this.lastDroppedFrames,m=c-this.lastDecodedFrames,a=1e3*f/y,n=this.hls;if(n.trigger(z.Events.FPS_DROP,{currentDropped:f,currentDecoded:m,totalDroppedFrames:g}),a>0&&f>n.config.fpsDroppedMonitoringThreshold*m){var o=n.currentLevel;B.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+o),o>0&&(n.autoLevelCapping===-1||n.autoLevelCapping>=o)&&(o=o-1,n.trigger(z.Events.FPS_DROP_LEVEL_CAPPING,{level:o,droppedLevel:n.currentLevel}),n.autoLevelCapping=o,this.streamController.nextLevelSwitch())}}this.lastTime=w,this.lastDroppedFrames=g,this.lastDecodedFrames=c}},U.checkFPSInterval=function(){var R=this.media;if(R)if(this.isVideoPlaybackQualityAvailable){var c=R.getVideoPlaybackQuality();this.checkFPS(R,c.totalVideoFrames,c.droppedVideoFrames)}else this.checkFPS(R,R.webkitDecodedFrameCount,R.webkitDroppedFrameCount)},j}();K.default=M},"./src/controller/fragment-finders.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"findFragmentByPDT",function(){return M}),P.d(K,"findFragmentByPTS",function(){return j}),P.d(K,"fragmentWithinToleranceTest",function(){return U}),P.d(K,"pdtWithinToleranceTest",function(){return _}),P.d(K,"findFragWithCC",function(){return R});var z=P("./src/polyfills/number.ts"),B=P("./src/utils/binary-search.ts");function M(c,g,w){if(g===null||!Array.isArray(c)||!c.length||!Object(z.isFiniteNumber)(g))return null;var y=c[0].programDateTime;if(g<(y||0))return null;var f=c[c.length-1].endProgramDateTime;if(g>=(f||0))return null;w=w||0;for(var m=0;mc&&w.start?-1:0}function _(c,g,w){var y=Math.min(g,w.duration+(w.deltaPTS?w.deltaPTS:0))*1e3,f=w.endProgramDateTime||0;return f-y>c}function R(c,g){return B.default.search(c,function(w){return w.ccg?-1:0})}},"./src/controller/fragment-tracker.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"FragmentState",function(){return M}),P.d(K,"FragmentTracker",function(){return j});var z=P("./src/events.ts"),B=P("./src/types/loader.ts"),M;(function(R){R.NOT_LOADED="NOT_LOADED",R.BACKTRACKED="BACKTRACKED",R.APPENDING="APPENDING",R.PARTIAL="PARTIAL",R.OK="OK"})(M||(M={}));var j=function(){function R(g){this.activeFragment=null,this.activeParts=null,this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hls=g,this._registerListeners()}var c=R.prototype;return c._registerListeners=function(){var w=this.hls;w.on(z.Events.BUFFER_APPENDED,this.onBufferAppended,this),w.on(z.Events.FRAG_BUFFERED,this.onFragBuffered,this),w.on(z.Events.FRAG_LOADED,this.onFragLoaded,this)},c._unregisterListeners=function(){var w=this.hls;w.off(z.Events.BUFFER_APPENDED,this.onBufferAppended,this),w.off(z.Events.FRAG_BUFFERED,this.onFragBuffered,this),w.off(z.Events.FRAG_LOADED,this.onFragLoaded,this)},c.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},c.getAppendedFrag=function(w,y){if(y===B.PlaylistLevelType.MAIN){var f=this.activeFragment,m=this.activeParts;if(!f)return null;if(m)for(var a=m.length;a--;){var n=m[a],o=n?n.end:f.appendedPTS;if(n.start<=w&&o!==void 0&&w<=o)return a>9&&(this.activeParts=m.slice(a-9)),n}else if(f.start<=w&&f.appendedPTS!==void 0&&w<=f.appendedPTS)return f}return this.getBufferedFrag(w,y)},c.getBufferedFrag=function(w,y){for(var f=this.fragments,m=Object.keys(f),a=m.length;a--;){var n=f[m[a]];if((n==null?void 0:n.body.type)===y&&n.buffered){var o=n.body;if(o.start<=w&&w<=o.end)return o}}return null},c.detectEvictedFragments=function(w,y,f){var m=this;Object.keys(this.fragments).forEach(function(a){var n=m.fragments[a];if(!n)return;if(!n.buffered){n.body.type===f&&m.removeFragment(n.body);return}var o=n.range[w];if(!o)return;o.time.some(function(u){var x=!m.isTimeBuffered(u.startPTS,u.endPTS,y);return x&&m.removeFragment(n.body),x})})},c.detectPartialFragments=function(w){var y=this,f=this.timeRanges,m=w.frag,a=w.part;if(!f||m.sn==="initSegment")return;var n=_(m),o=this.fragments[n];if(!o)return;Object.keys(f).forEach(function(u){var x=m.elementaryStreams[u];if(!x)return;var E=f[u],v=a!==null||x.partial===!0;o.range[u]=y.getBufferedTimes(m,a,v,E)}),o.backtrack=o.loaded=null,Object.keys(o.range).length?o.buffered=!0:this.removeFragment(o.body)},c.fragBuffered=function(w){var y=_(w),f=this.fragments[y];f&&(f.backtrack=f.loaded=null,f.buffered=!0)},c.getBufferedTimes=function(w,y,f,m){for(var a={time:[],partial:f},n=y?y.start:w.start,o=y?y.end:w.end,u=w.minEndPTS||o,x=w.maxStartPTS||n,E=0;E=v&&u<=O){a.time.push({startPTS:Math.max(n,m.start(E)),endPTS:Math.min(o,m.end(E))});break}else if(nv)a.partial=!0,a.time.push({startPTS:Math.max(n,m.start(E)),endPTS:Math.min(o,m.end(E))});else if(o<=v)break}return a},c.getPartialFragment=function(w){var y=null,f,m,a,n=0,o=this.bufferPadding,u=this.fragments;return Object.keys(u).forEach(function(x){var E=u[x];if(!E)return;U(E)&&(m=E.body.start-o,a=E.body.end+o,w>=m&&w<=a&&(f=Math.min(w-m,a-w),n<=f&&(y=E.body,n=f)))}),y},c.getState=function(w){var y=_(w),f=this.fragments[y];return f?f.buffered?U(f)?M.PARTIAL:M.OK:f.backtrack?M.BACKTRACKED:M.APPENDING:M.NOT_LOADED},c.backtrack=function(w,y){var f=_(w),m=this.fragments[f];if(!m||m.backtrack)return null;var a=m.backtrack=y||m.loaded;return m.loaded=null,a},c.getBacktrackData=function(w){var y=_(w),f=this.fragments[y];if(f){var m,a=f.backtrack;if(a!=null&&(m=a.payload)!==null&&m!==void 0&&m.byteLength)return a;this.removeFragment(w)}return null},c.isTimeBuffered=function(w,y,f){for(var m,a,n=0;n=m&&y<=a)return!0;if(y<=m)return!1}return!1},c.onFragLoaded=function(w,y){var f=y.frag,m=y.part;if(f.sn==="initSegment"||f.bitrateTest||m)return;var a=_(f);this.fragments[a]={body:f,loaded:y,backtrack:null,buffered:!1,range:Object.create(null)}},c.onBufferAppended=function(w,y){var f=this,m=y.frag,a=y.part,n=y.timeRanges;if(m.type===B.PlaylistLevelType.MAIN)if(this.activeFragment=m,a){var o=this.activeParts;o||(this.activeParts=o=[]),o.push(a)}else this.activeParts=null;this.timeRanges=n,Object.keys(n).forEach(function(u){var x=n[u];if(f.detectEvictedFragments(u,x),!a)for(var E=0;Ew&&m.removeFragment(o)}})},c.removeFragment=function(w){var y=_(w);w.stats.loaded=0,w.clearElementaryStreamInfo(),delete this.fragments[y]},c.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},R}();function U(R){var c,g;return R.buffered&&(((c=R.range.video)===null||c===void 0?void 0:c.partial)||((g=R.range.audio)===null||g===void 0?void 0:g.partial))}function _(R){return R.type+"_"+R.level+"_"+R.urlId+"_"+R.sn}},"./src/controller/gap-controller.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"STALL_MINIMUM_DURATION_MS",function(){return U}),P.d(K,"MAX_START_GAP_JUMP",function(){return _}),P.d(K,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return R}),P.d(K,"SKIP_BUFFER_RANGE_START",function(){return c}),P.d(K,"default",function(){return g});var z=P("./src/utils/buffer-helper.ts"),B=P("./src/errors.ts"),M=P("./src/events.ts"),j=P("./src/utils/logger.ts"),U=250,_=2,R=.1,c=.05,g=function(){function w(f,m,a,n){this.config=void 0,this.media=void 0,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=f,this.media=m,this.fragmentTracker=a,this.hls=n}var y=w.prototype;return y.destroy=function(){this.hls=this.fragmentTracker=this.media=null},y.poll=function(m){var a=this.config,n=this.media,o=this.stalled,u=n.currentTime,x=n.seeking,E=this.seeking&&!x,v=!this.seeking&&x;if(this.seeking=x,u!==m){if(this.moved=!0,o!==null){if(this.stallReported){var O=self.performance.now()-o;j.logger.warn("playback not stuck anymore @"+u+", after "+Math.round(O)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((v||E)&&(this.stalled=null),n.paused||n.ended||n.playbackRate===0||!z.BufferHelper.getBuffered(n).length)return;var A=z.BufferHelper.bufferInfo(n,u,0),p=A.len>0,h=A.nextStart||0;if(!p&&!h)return;if(x){var s=A.len>_,l=!h||h-u>_&&!this.fragmentTracker.getPartialFragment(u);if(s||l)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var D,T=Math.max(h,A.start||0)-u,S=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,I=S==null||((D=S.details)===null||D===void 0)?void 0:D.live,C=I?S.details.targetduration*2:_;if(T>0&&T<=C){this._trySkipBufferHole(null);return}}var W=self.performance.now();if(o===null){this.stalled=W;return}var Y=W-o;!x&&Y>=U&&this._reportStall(A.len);var H=z.BufferHelper.bufferInfo(n,u,a.maxBufferHole);this._tryFixBufferStall(H,Y)},y._tryFixBufferStall=function(m,a){var n=this.config,o=this.fragmentTracker,u=this.media,x=u.currentTime,E=o.getPartialFragment(x);if(E){var v=this._trySkipBufferHole(E);if(v)return}m.len>n.maxBufferHole&&a>n.highBufferWatchdogPeriod*1e3&&(j.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},y._reportStall=function(m){var a=this.hls,n=this.media,o=this.stallReported;o||(this.stallReported=!0,j.logger.warn("Playback stalling at @"+n.currentTime+" due to low buffer (buffer="+m+")"),a.trigger(M.Events.ERROR,{type:B.ErrorTypes.MEDIA_ERROR,details:B.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:m}))},y._trySkipBufferHole=function(m){for(var a=this.config,n=this.hls,o=this.media,u=o.currentTime,x=0,E=z.BufferHelper.getBuffered(o),v=0;v=x&&u.05&&this.forwardBufferLength>1){var v=Math.min(2,Math.max(1,n)),O=Math.round(2/(1+Math.exp(-.75*u-this.edgeStalled))*20)/20;w.playbackRate=Math.min(v,Math.max(1,O))}else w.playbackRate!==1&&w.playbackRate!==0&&(w.playbackRate=1)},c.estimateLiveEdge=function(){var w=this.levelDetails;return w===null?null:w.edge+w.age},c.computeLatency=function(){var w=this.estimateLiveEdge();return w===null?null:w-this.currentTime},U(R,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var w=this.config,y=this.levelDetails;return w.liveMaxLatencyDuration!==void 0?w.liveMaxLatencyDuration:y?w.liveMaxLatencyDurationCount*y.targetduration:0}},{key:"targetLatency",get:function(){var w=this.levelDetails;if(w===null)return null;var y=w.holdBack,f=w.partHoldBack,m=w.targetduration,a=this.config,n=a.liveSyncDuration,o=a.liveSyncDurationCount,u=a.lowLatencyMode,x=this.hls.userConfig,E=u&&f||y;(x.liveSyncDuration||x.liveSyncDurationCount||E===0)&&(E=n!==void 0?n:o*m);var v=m,O=1;return E+Math.min(this.stallCount*O,v)}},{key:"liveSyncPosition",get:function(){var w=this.estimateLiveEdge(),y=this.targetLatency,f=this.levelDetails;if(w===null||y===null||f===null)return null;var m=f.edge,a=w-y-this.edgeStalled,n=m-f.totalduration,o=m-(this.config.lowLatencyMode&&f.partTarget||f.targetduration);return Math.min(Math.max(n,a),o)}},{key:"drift",get:function(){var w=this.levelDetails;return w===null?1:w.drift}},{key:"edgeStalled",get:function(){var w=this.levelDetails;if(w===null)return 0;var y=(this.config.lowLatencyMode&&w.partTarget||w.targetduration)*3;return Math.max(w.age-y,0)}},{key:"forwardBufferLength",get:function(){var w=this.media,y=this.levelDetails;if(!w||!y)return 0;var f=w.buffered.length;return f?w.buffered.end(f-1):y.edge-this.currentTime}}]),R}()},"./src/controller/level-controller.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"default",function(){return a});var z=P("./src/types/level.ts"),B=P("./src/events.ts"),M=P("./src/errors.ts"),j=P("./src/utils/codecs.ts"),U=P("./src/controller/level-helper.ts"),_=P("./src/controller/base-playlist-controller.ts"),R=P("./src/types/loader.ts");function c(){return c=Object.assign||function(n){for(var o=1;o0){h=O[0].bitrate,O.sort(function(Y,H){return Y.bitrate-H.bitrate}),this._levels=O;for(var I=0;Ithis.hls.config.fragLoadingMaxRetry&&(s=v.frag.level)):s=v.frag.level}break;case M.ErrorDetails.LEVEL_LOAD_ERROR:case M.ErrorDetails.LEVEL_LOAD_TIMEOUT:O&&(O.deliveryDirectives&&(h=!1),s=O.level),p=!0;break;case M.ErrorDetails.REMUX_ALLOC_ERROR:s=v.level,p=!0;break}s!==void 0&&this.recoverLevel(v,s,p,h)},u.recoverLevel=function(E,v,O,A){var p=E.details,h=this._levels[v];if(h.loadError++,O){var s=this.retryLoadingOrFail(E);if(s)E.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(A){var l=h.url.length;if(l>1&&h.loadError1){var A=(v.urlId+1)%O;this.warn("Switching to redundant URL-id "+A),this._levels.forEach(function(p){p.urlId=A}),this.level=E}},u.onFragLoaded=function(E,v){var O=v.frag;if(O!==void 0&&O.type===R.PlaylistLevelType.MAIN){var A=this._levels[O.level];A!==void 0&&(A.fragmentError=0,A.loadError=0)}},u.onLevelLoaded=function(E,v){var O,A=v.level,p=v.details,h=this._levels[A];if(!h){var s;this.warn("Invalid level index "+A),(s=v.deliveryDirectives)!==null&&s!==void 0&&s.skip&&(p.deltaUpdateFailed=!0);return}A===this.currentLevelIndex?(h.fragmentError===0&&(h.loadError=0,this.retryCount=0),this.playlistLoaded(A,v,h.details)):(O=v.deliveryDirectives)!==null&&O!==void 0&&O.skip&&(p.deltaUpdateFailed=!0)},u.onAudioTrackSwitched=function(E,v){var O=this.hls.levels[this.currentLevelIndex];if(!O)return;if(O.audioGroupIds){for(var A=-1,p=this.hls.audioTracks[v.id].groupId,h=0;h0){var A=O.urlId,p=O.url[A];if(E)try{p=E.addDirectives(p)}catch(h){this.warn("Could not construct new URL with HLS Delivery Directives: "+h)}this.log("Attempt loading level index "+v+(E?" at sn "+E.msn+" part "+E.part:"")+" with URL-id "+A+" "+p),this.clearTimer(),this.hls.trigger(B.Events.LEVEL_LOADING,{url:p,level:v,id:A,deliveryDirectives:E||null})}},u.removeLevel=function(E,v){var O=function(h,s){return s!==v},A=this._levels.filter(function(p,h){return h!==E?!0:p.url.length>1&&v!==void 0?(p.url=p.url.filter(O),p.audioGroupIds&&(p.audioGroupIds=p.audioGroupIds.filter(O)),p.textGroupIds&&(p.textGroupIds=p.textGroupIds.filter(O)),p.urlId=0,!0):!1}).map(function(p,h){var s=p.details;return s!=null&&s.fragments&&s.fragments.forEach(function(l){l.level=h}),p});this._levels=A,this.hls.trigger(B.Events.LEVELS_UPDATED,{levels:A})},w(o,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(E){var v,O=this._levels;if(O.length===0)return;if(this.currentLevelIndex===E&&(v=O[E])!==null&&v!==void 0&&v.details)return;if(E<0||E>=O.length){var A=E<0;if(this.hls.trigger(B.Events.ERROR,{type:M.ErrorTypes.OTHER_ERROR,details:M.ErrorDetails.LEVEL_SWITCH_ERROR,level:E,fatal:A,reason:"invalid level idx"}),A)return;E=Math.min(E,O.length-1)}this.clearTimer();var p=this.currentLevelIndex,h=O[p],s=O[E];this.log("switching to level "+E+" from "+p),this.currentLevelIndex=E;var l=c({},s,{level:E,maxBitrate:s.maxBitrate,uri:s.uri,urlId:s.urlId});delete l._urlId,this.hls.trigger(B.Events.LEVEL_SWITCHING,l);var D=s.details;if(!D||D.live){var T=this.switchParams(s.uri,h==null?void 0:h.details);this.loadPlaylist(T)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(E){this.manualLevelIndex=E,this._startLevel===void 0&&(this._startLevel=E),E!==-1&&(this.level=E)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(E){this._firstLevel=E}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var E=this.hls.config.startLevel;return E!==void 0?E:this._firstLevel}else return this._startLevel},set:function(E){this._startLevel=E}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(E){this.level=E,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=E)}}]),o}(_.default)},"./src/controller/level-helper.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"addGroupId",function(){return M}),P.d(K,"assignTrackIdsByGroup",function(){return j}),P.d(K,"updatePTS",function(){return U}),P.d(K,"updateFragPTSDTS",function(){return R}),P.d(K,"mergeDetails",function(){return c}),P.d(K,"mapPartIntersection",function(){return g}),P.d(K,"mapFragmentIntersection",function(){return w}),P.d(K,"adjustSliding",function(){return y}),P.d(K,"addSliding",function(){return f}),P.d(K,"computeReloadInterval",function(){return m}),P.d(K,"getFragmentWithSN",function(){return a}),P.d(K,"getPartWith",function(){return n});var z=P("./src/polyfills/number.ts"),B=P("./src/utils/logger.ts");function M(o,u,x){switch(u){case"audio":o.audioGroupIds||(o.audioGroupIds=[]),o.audioGroupIds.push(x);break;case"text":o.textGroupIds||(o.textGroupIds=[]),o.textGroupIds.push(x);break}}function j(o){var u={};o.forEach(function(x){var E=x.groupId||"";x.id=u[E]=u[E]||0,u[E]++})}function U(o,u,x){var E=o[u],v=o[x];_(E,v)}function _(o,u){var x=u.startPTS;if(Object(z.isFiniteNumber)(x)){var E=0,v;u.sn>o.sn?(E=x-o.start,v=o):(E=o.start-x,v=u),v.duration!==E&&(v.duration=E)}else if(u.sn>o.sn){var O=o.cc===u.cc;O&&o.minEndPTS?u.start=o.start+(o.minEndPTS-o.start):u.start=o.start+o.duration}else u.start=Math.max(o.start-u.duration,0)}function R(o,u,x,E,v,O){var A=E-x;A<=0&&(B.logger.warn("Fragment should have a positive duration",u),E=x+u.duration,O=v+u.duration);var p=x,h=E,s=u.startPTS,l=u.endPTS;if(Object(z.isFiniteNumber)(s)){var D=Math.abs(s-x);Object(z.isFiniteNumber)(u.deltaPTS)?u.deltaPTS=Math.max(D,u.deltaPTS):u.deltaPTS=D,p=Math.max(x,s),x=Math.min(x,s),v=Math.min(v,u.startDTS),h=Math.min(E,l),E=Math.max(E,l),O=Math.max(O,u.endDTS)}u.duration=E-x;var T=x-u.start;u.appendedPTS=E,u.start=u.startPTS=x,u.maxStartPTS=p,u.startDTS=v,u.endPTS=E,u.minEndPTS=h,u.endDTS=O;var S=u.sn;if(!o||So.endSN)return 0;var I,C=S-o.startSN,W=o.fragments;for(W[C]=u,I=C;I>0;I--)_(W[I],W[I-1]);for(I=C;I=0;v--){var O=E[v].initSegment;if(O){x=O;break}}o.fragmentHint&&delete o.fragmentHint.endPTS;var A=0,p;if(w(o,u,function(I,C){I.relurl&&(A=I.cc-C.cc),Object(z.isFiniteNumber)(I.startPTS)&&Object(z.isFiniteNumber)(I.endPTS)&&(C.start=C.startPTS=I.startPTS,C.startDTS=I.startDTS,C.appendedPTS=I.appendedPTS,C.maxStartPTS=I.maxStartPTS,C.endPTS=I.endPTS,C.endDTS=I.endDTS,C.minEndPTS=I.minEndPTS,C.duration=I.endPTS-I.startPTS,C.duration&&(p=C),u.PTSKnown=u.alignedSliding=!0),C.elementaryStreams=I.elementaryStreams,C.loader=I.loader,C.stats=I.stats,C.urlId=I.urlId,I.initSegment&&(C.initSegment=I.initSegment,x=I.initSegment)}),x){var h=u.fragmentHint?u.fragments.concat(u.fragmentHint):u.fragments;h.forEach(function(I){var C;(!I.initSegment||I.initSegment.relurl===((C=x)===null||C===void 0?void 0:C.relurl))&&(I.initSegment=x)})}if(u.skippedSegments&&(u.deltaUpdateFailed=u.fragments.some(function(I){return!I}),u.deltaUpdateFailed)){B.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var s=u.skippedSegments;s--;)u.fragments.shift();u.startSN=u.fragments[0].sn,u.startCC=u.fragments[0].cc}var l=u.fragments;if(A){B.logger.warn("discontinuity sliding from playlist, take drift into account");for(var D=0;D=E.length)return;f(u,E[x].start)}function f(o,u){if(u){for(var x=o.fragments,E=o.skippedSegments;E0&&v0&&h===-1&&(this.log("Override startPosition with lastCurrentTime @"+s.toFixed(3)),h=s),this.state=B.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=h,this.tick()}else this._forceStartLoad=!0,this.state=B.State.STOPPED},A.stopLoad=function(){this._forceStartLoad=!1,v.prototype.stopLoad.call(this)},A.doTick=function(){switch(this.state){case B.State.IDLE:this.doTickIdle();break;case B.State.WAITING_LEVEL:{var h,s=this.levels,l=this.level,D=s==null||((h=s[l])===null||h===void 0)?void 0:h.details;if(D&&(!D.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(D))break;this.state=B.State.IDLE;break}break}case B.State.FRAG_LOADING_WAITING_RETRY:{var T,S=self.performance.now(),I=this.retryDate;(!I||S>=I||(T=this.media)!==null&&T!==void 0&&T.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=B.State.IDLE)}break;default:break}this.onTickEnd()},A.onTickEnd=function(){v.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},A.doTickIdle=function(){var h,s,l=this.hls,D=this.levelLastLoaded,T=this.levels,S=this.media,I=l.config,C=l.nextLoadLevel;if(D===null||!S&&(this.startFragRequested||!I.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!T||!T[C])return;var W=T[C];this.level=l.nextLoadLevel=C;var Y=W.details;if(!Y||this.state===B.State.WAITING_LEVEL||Y.live&&this.levelLastLoaded!==C){this.state=B.State.WAITING_LEVEL;return}var H=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:S,R.PlaylistLevelType.MAIN);if(H===null)return;var F=H.len,q=this.getMaxBufferLength(W.maxBitrate);if(F>=q)return;if(this._streamEnded(H,Y)){var le={};this.altAudio&&(le.type="video"),this.hls.trigger(j.Events.BUFFER_EOS,le),this.state=B.State.ENDED;return}var pe=H.end,Ae=this.getNextFragment(pe,Y);if(this.couldBacktrack&&!this.fragPrevious&&Ae&&Ae.sn!=="initSegment"){var Ge=Ae.sn-Y.startSN;Ge>1&&(Ae=Y.fragments[Ge-1],this.fragmentTracker.removeFragment(Ae))}if(Ae&&this.fragmentTracker.getState(Ae)===_.FragmentState.OK&&this.nextLoadPosition>pe){var Fe=this.audioOnly&&!this.altAudio?c.ElementaryStreamTypes.AUDIO:c.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(S,Fe,R.PlaylistLevelType.MAIN),Ae=this.getNextFragment(this.nextLoadPosition,Y)}if(!Ae)return;Ae.initSegment&&!Ae.initSegment.data&&!this.bitrateTest&&(Ae=Ae.initSegment),((h=Ae.decryptdata)===null||h===void 0?void 0:h.keyFormat)==="identity"&&!((s=Ae.decryptdata)!==null&&s!==void 0&&s.key)?this.loadKey(Ae,Y):this.loadFragment(Ae,Y,pe)},A.loadFragment=function(h,s,l){var D,T=this.fragmentTracker.getState(h);if(this.fragCurrent=h,T===_.FragmentState.BACKTRACKED){var S=this.fragmentTracker.getBacktrackData(h);if(S){this._handleFragmentLoadProgress(S),this._handleFragmentLoadComplete(S);return}else T=_.FragmentState.NOT_LOADED}T===_.FragmentState.NOT_LOADED||T===_.FragmentState.PARTIAL?h.sn==="initSegment"?this._loadInitSegment(h):this.bitrateTest?(h.bitrateTest=!0,this.log("Fragment "+h.sn+" of level "+h.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(h)):(this.startFragRequested=!0,v.prototype.loadFragment.call(this,h,s,l)):T===_.FragmentState.APPENDING?this.reduceMaxBufferLength(h.duration)&&this.fragmentTracker.removeFragment(h):((D=this.media)===null||D===void 0?void 0:D.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},A.getAppendedFrag=function(h){var s=this.fragmentTracker.getAppendedFrag(h,R.PlaylistLevelType.MAIN);return s&&"fragment"in s?s.fragment:s},A.getBufferedFrag=function(h){return this.fragmentTracker.getBufferedFrag(h,R.PlaylistLevelType.MAIN)},A.followingBufferedFrag=function(h){return h?this.getBufferedFrag(h.end+.5):null},A.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},A.nextLevelSwitch=function(){var h=this.levels,s=this.media;if(s!=null&&s.readyState){var l,D=this.getAppendedFrag(s.currentTime);if(D&&D.start>1&&this.flushMainBuffer(0,D.start-1),!s.paused&&h){var T=this.hls.nextLoadLevel,S=h[T],I=this.fragLastKbps;I&&this.fragCurrent?l=this.fragCurrent.duration*S.maxBitrate/(1e3*I)+1:l=0}else l=0;var C=this.getBufferedFrag(s.currentTime+l);if(C){var W=this.followingBufferedFrag(C);if(W){this.abortCurrentFrag();var Y=W.maxStartPTS?W.maxStartPTS:W.start,H=W.duration,F=Math.max(C.end,Y+Math.min(Math.max(H-this.config.maxFragLookUpTolerance,H*.5),H*.75));this.flushMainBuffer(F,Number.POSITIVE_INFINITY)}}}},A.abortCurrentFrag=function(){var h=this.fragCurrent;this.fragCurrent=null,h!=null&&h.loader&&h.loader.abort(),this.state===B.State.KEY_LOADING&&(this.state=B.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},A.flushMainBuffer=function(h,s){v.prototype.flushMainBuffer.call(this,h,s,this.altAudio?"video":null)},A.onMediaAttached=function(h,s){v.prototype.onMediaAttached.call(this,h,s);var l=s.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),l.addEventListener("playing",this.onvplaying),l.addEventListener("seeked",this.onvseeked),this.gapController=new y.default(this.config,l,this.fragmentTracker,this.hls)},A.onMediaDetaching=function(){var h=this.media;h&&(h.removeEventListener("playing",this.onvplaying),h.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),v.prototype.onMediaDetaching.call(this)},A.onMediaPlaying=function(){this.tick()},A.onMediaSeeked=function(){var h=this.media,s=h?h.currentTime:null;Object(z.isFiniteNumber)(s)&&this.log("Media seeked to "+s.toFixed(3)),this.tick()},A.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(j.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},A.onManifestParsed=function(h,s){var l=!1,D=!1,T;s.levels.forEach(function(S){T=S.audioCodec,T&&(T.indexOf("mp4a.40.2")!==-1&&(l=!0),T.indexOf("mp4a.40.5")!==-1&&(D=!0))}),this.audioCodecSwitch=l&&D&&!Object(M.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=s.levels,this.startFragRequested=!1},A.onLevelLoading=function(h,s){var l=this.levels;if(!l||this.state!==B.State.IDLE)return;var D=l[s.level];(!D.details||D.details.live&&this.levelLastLoaded!==s.level||this.waitForCdnTuneIn(D.details))&&(this.state=B.State.WAITING_LEVEL)},A.onLevelLoaded=function(h,s){var l,D=this.levels,T=s.level,S=s.details,I=S.totalduration;if(!D){this.warn("Levels were reset while loading level "+T);return}this.log("Level "+T+" loaded ["+S.startSN+","+S.endSN+"], cc ["+S.startCC+", "+S.endCC+"] duration:"+I);var C=this.fragCurrent;C&&(this.state===B.State.FRAG_LOADING||this.state===B.State.FRAG_LOADING_WAITING_RETRY)&&(C.level!==s.level&&C.loader&&(this.state=B.State.IDLE,C.loader.abort()));var W=D[T],Y=0;if(S.live||(l=W.details)!==null&&l!==void 0&&l.live){if(S.fragments[0]||(S.deltaUpdateFailed=!0),S.deltaUpdateFailed)return;Y=this.alignPlaylists(S,W.details)}if(W.details=S,this.levelLastLoaded=T,this.hls.trigger(j.Events.LEVEL_UPDATED,{details:S,level:T}),this.state===B.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(S))return;this.state=B.State.IDLE}this.startFragRequested?S.live&&this.synchronizeToLiveEdge(S):this.setStartPosition(S,Y),this.tick()},A._handleFragmentLoadProgress=function(h){var s,l=h.frag,D=h.part,T=h.payload,S=this.levels;if(!S){this.warn("Levels were reset while fragment load was in progress. Fragment "+l.sn+" of level "+l.level+" will not be buffered");return}var I=S[l.level],C=I.details;if(!C){this.warn("Dropping fragment "+l.sn+" of level "+l.level+" after level details were reset");return}var W=I.videoCodec,Y=C.PTSKnown||!C.live,H=(s=l.initSegment)===null||s===void 0?void 0:s.data,F=this._getAudioCodec(I),q=this.transmuxer=this.transmuxer||new g.default(this.hls,R.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),le=D?D.index:-1,pe=le!==-1,Ae=new w.ChunkMetadata(l.level,l.sn,l.stats.chunkCount,T.byteLength,le,pe),Ge=this.initPTS[l.cc];q.push(T,H,F,W,l,D,C.totalduration,Y,Ae,Ge)},A.onAudioTrackSwitching=function(h,s){var l=this.altAudio,D=!!s.url,T=s.id;if(!D){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var S=this.fragCurrent;S!=null&&S.loader&&(this.log("Switching to main audio track, cancel main fragment load"),S.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var I=this.hls;l&&I.trigger(j.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),I.trigger(j.Events.AUDIO_TRACK_SWITCHED,{id:T})}},A.onAudioTrackSwitched=function(h,s){var l=s.id,D=!!this.hls.audioTracks[l].url;if(D){var T=this.videoBuffer;T&&this.mediaBuffer!==T&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=T)}this.altAudio=D,this.tick()},A.onBufferCreated=function(h,s){var l=s.tracks,D,T,S=!1;for(var I in l){var C=l[I];if(C.id==="main"){if(T=I,D=C,I==="video"){var W=l[I];W&&(this.videoBuffer=W.buffer)}}else S=!0}S&&D?(this.log("Alternate track found, use "+T+".buffered to schedule main fragment loading"),this.mediaBuffer=D.buffer):this.mediaBuffer=this.media},A.onFragBuffered=function(h,s){var l=s.frag,D=s.part;if(l&&l.type!==R.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(l)){this.warn("Fragment "+l.sn+(D?" p: "+D.index:"")+" of level "+l.level+" finished buffering, but was aborted. state: "+this.state),this.state===B.State.PARSED&&(this.state=B.State.IDLE);return}var T=D?D.stats:l.stats;this.fragLastKbps=Math.round(8*T.total/(T.buffering.end-T.loading.first)),l.sn!=="initSegment"&&(this.fragPrevious=l),this.fragBufferedComplete(l,D)},A.onError=function(h,s){switch(s.details){case f.ErrorDetails.FRAG_LOAD_ERROR:case f.ErrorDetails.FRAG_LOAD_TIMEOUT:case f.ErrorDetails.KEY_LOAD_ERROR:case f.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(R.PlaylistLevelType.MAIN,s);break;case f.ErrorDetails.LEVEL_LOAD_ERROR:case f.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==B.State.ERROR&&(s.fatal?(this.warn(""+s.details),this.state=B.State.ERROR):!s.levelRetry&&this.state===B.State.WAITING_LEVEL&&(this.state=B.State.IDLE));break;case f.ErrorDetails.BUFFER_FULL_ERROR:if(s.parent==="main"&&(this.state===B.State.PARSING||this.state===B.State.PARSED)){var l=!0,D=this.getFwdBufferInfo(this.media,R.PlaylistLevelType.MAIN);D&&D.len>.5&&(l=!this.reduceMaxBufferLength(D.len)),l&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},A.checkBuffer=function(){var h=this.media,s=this.gapController;if(!h||!s||!h.readyState)return;var l=U.BufferHelper.getBuffered(h);!this.loadedmetadata&&l.length?(this.loadedmetadata=!0,this.seekToStartPos()):s.poll(this.lastCurrentTime),this.lastCurrentTime=h.currentTime},A.onFragLoadEmergencyAborted=function(){this.state=B.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},A.onBufferFlushed=function(h,s){var l=s.type;if(l!==c.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var D=(l===c.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(D,l,R.PlaylistLevelType.MAIN)}},A.onLevelsUpdated=function(h,s){this.levels=s.levels},A.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},A.seekToStartPos=function(){var h=this.media,s=h.currentTime,l=this.startPosition;if(l>=0&&s0&&(S1&&h.seeking===!1){var l=h.currentTime;if(U.BufferHelper.isBuffered(h,l)?s=this.getAppendedFrag(l):U.BufferHelper.isBuffered(h,l+.1)&&(s=this.getAppendedFrag(l+.1)),s){var D=this.fragPlaying,T=s.level;(!D||s.sn!==D.sn||D.level!==T||s.urlId!==D.urlId)&&(this.hls.trigger(j.Events.FRAG_CHANGED,{frag:s}),(!D||D.level!==T)&&this.hls.trigger(j.Events.LEVEL_SWITCHED,{level:T}),this.fragPlaying=s)}}},n(O,[{key:"nextLevel",get:function(){var h=this.nextBufferedFrag;return h?h.level:-1}},{key:"currentLevel",get:function(){var h=this.media;if(h){var s=this.getAppendedFrag(h.currentTime);if(s)return s.level}return-1}},{key:"nextBufferedFrag",get:function(){var h=this.media;if(h){var s=this.getAppendedFrag(h.currentTime);return this.followingBufferedFrag(s)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),O}(B.default)},"./src/controller/subtitle-stream-controller.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"SubtitleStreamController",function(){return o});var z=P("./src/events.ts"),B=P("./src/utils/logger.ts"),M=P("./src/utils/buffer-helper.ts"),j=P("./src/controller/fragment-finders.ts"),U=P("./src/utils/discontinuities.ts"),_=P("./src/controller/level-helper.ts"),R=P("./src/controller/fragment-tracker.ts"),c=P("./src/controller/base-stream-controller.ts"),g=P("./src/types/loader.ts"),w=P("./src/types/level.ts");function y(u,x){for(var E=0;E=s[T].start&&D<=s[T].end){l=s[T];break}var S=p.start+p.duration;l?l.end=S:(l={start:D,end:S},s.push(l)),this.fragmentTracker.fragBuffered(p)},E.onBufferFlushing=function(O,A){var p=A.startOffset,h=A.endOffset;if(p===0&&h!==Number.POSITIVE_INFINITY){var s=this.currentTrackId,l=this.levels;if(!l.length||!l[s]||!l[s].details)return;var D=l[s].details,T=D.targetduration,S=h-T;if(S<=0)return;A.endOffsetSubtitles=Math.max(0,S),this.tracksBuffered.forEach(function(I){for(var C=0;C=D.length||s!==l||!T)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,h.live||(p=T.details)!==null&&p!==void 0&&p.live){var S=this.mainDetails;if(h.deltaUpdateFailed||!S)return;var I=S.fragments[0];if(!T.details)h.hasProgramDateTime&&S.hasProgramDateTime?Object(U.alignMediaPlaylistByPDT)(h,S):I&&Object(_.addSliding)(h,I.start);else{var C=this.alignPlaylists(h,T.details);C===0&&I&&Object(_.addSliding)(h,I.start)}}if(T.details=h,this.levelLastLoaded=s,this.tick(),h.live&&!this.fragCurrent&&this.media&&this.state===c.State.IDLE){var W=Object(j.findFragmentByPTS)(null,h.fragments,this.media.currentTime,0);W||(this.warn("Subtitle playlist not aligned with playback"),T.details=void 0)}},E._handleFragmentLoadComplete=function(O){var A=O.frag,p=O.payload,h=A.decryptdata,s=this.hls;if(this.fragContextChanged(A))return;if(p&&p.byteLength>0&&h&&h.key&&h.iv&&h.method==="AES-128"){var l=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(p),h.key.buffer,h.iv.buffer).then(function(D){var T=performance.now();s.trigger(z.Events.FRAG_DECRYPTED,{frag:A,payload:D,stats:{tstart:l,tdecrypt:T}})})}},E.doTick=function(){if(!this.media){this.state=c.State.IDLE;return}if(this.state===c.State.IDLE){var O,A=this.currentTrackId,p=this.levels;if(!p.length||!p[A]||!p[A].details)return;var h=p[A].details,s=h.targetduration,l=this.config,D=this.media,T=M.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,D.currentTime-s,l.maxBufferHole),S=T.end,I=T.len,C=this.getMaxBufferLength()+s;if(I>C)return;console.assert(h,"Subtitle track details are defined on idle subtitle stream controller tick");var W=h.fragments,Y=W.length,H=h.edge,F,q=this.fragPrevious;if(S-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange)},m.pollTrackChange=function(n){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,n)},m.onMediaDetaching=function(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId);var n=w(this.media.textTracks);n.forEach(function(o){Object(B.clearCurrentCues)(o)}),this.subtitleTrack=-1,this.media=null},m.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},m.onManifestParsed=function(n,o){this.tracks=o.subtitleTracks},m.onSubtitleTrackLoaded=function(n,o){var u=o.id,x=o.details,E=this.trackId,v=this.tracksInGroup[E];if(!v){this.warn("Invalid subtitle track id "+u);return}var O=v.details;v.details=o.details,this.log("subtitle track "+u+" loaded ["+x.startSN+"-"+x.endSN+"]"),u===this.trackId&&(this.retryCount=0,this.playlistLoaded(u,o,O))},m.onLevelLoading=function(n,o){this.switchLevel(o.level)},m.onLevelSwitching=function(n,o){this.switchLevel(o.level)},m.switchLevel=function(n){var o=this.hls.levels[n];if(!(o!=null&&o.textGroupIds))return;var u=o.textGroupIds[o.urlId];if(this.groupId!==u){var x=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,E=this.tracks.filter(function(A){return!u||A.groupId===u});this.tracksInGroup=E;var v=this.findTrackId(x==null?void 0:x.name)||this.findTrackId();this.groupId=u;var O={subtitleTracks:E};this.log("Updating subtitle tracks, "+E.length+' track(s) found in "'+u+'" group-id'),this.hls.trigger(z.Events.SUBTITLE_TRACKS_UPDATED,O),v!==-1&&this.setSubtitleTrack(v,x)}},m.findTrackId=function(n){for(var o=this.tracksInGroup,u=0;u=x.length)return;this.clearTimer();var E=x[n];if(this.log("Switching to subtitle track "+n),this.trackId=n,E){var v=E.id,O=E.groupId,A=O===void 0?"":O,p=E.name,h=E.type,s=E.url;this.hls.trigger(z.Events.SUBTITLE_TRACK_SWITCH,{id:v,groupId:A,name:p,type:h,url:s});var l=this.switchParams(E.url,o==null?void 0:o.details);this.loadPlaylist(l)}else this.hls.trigger(z.Events.SUBTITLE_TRACK_SWITCH,{id:n})},m.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var n=-1,o=w(this.media.textTracks),u=0;u=0&&(h[0]=Math.min(h[0],x),h[1]=Math.max(h[1],E),A=!0,s/(E-x)>.5))return}if(A||O.push([x,E]),this.config.renderTextTracksNatively){var l=this.captionsTracks[u];this.Cues.newCue(l,x,E,v)}else{var D=this.Cues.newCue(null,x,E,v);this.hls.trigger(B.Events.CUES_PARSED,{type:"captions",cues:D,track:u})}},n.onInitPtsFound=function(u,x){var E=this,v=x.frag,O=x.id,A=x.initPTS,p=x.timescale,h=this.unparsedVttFrags;O==="main"&&(this.initPTS[v.cc]=A,this.timescale[v.cc]=p),h.length&&(this.unparsedVttFrags=[],h.forEach(function(s){E.onFragLoaded(B.Events.FRAG_LOADED,s)}))},n.getExistingTrack=function(u){var x=this.media;if(x)for(var E=0;E>>8^p&255^99,R[v]=p,c[p]=v;var h=E[v],s=E[h],l=E[s],D=E[p]*257^p*16843008;w[v]=D<<24|D>>>8,y[v]=D<<16|D>>>16,f[v]=D<<8|D>>>24,m[v]=D,D=l*16843009^s*65537^h*257^v*16843008,n[p]=D<<24|D>>>8,o[p]=D<<16|D>>>16,u[p]=D<<8|D>>>24,x[p]=D,v?(v=h^E[E[E[l^h]]],O^=E[E[O]]):v=O=1}},U.expandKey=function(R){for(var c=this.uint8ArrayToUint32Array_(R),g=!0,w=0;w>>6)+1;var D=(u[x+2]&60)>>>2;if(D>l.length-1){o.trigger(M.Events.ERROR,{type:B.ErrorTypes.MEDIA_ERROR,details:B.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+D});return}return A=(u[x+2]&1)<<2,A|=(u[x+3]&192)>>>6,z.logger.log("manifest codec:"+E+", ADTS type:"+v+", samplingIndex:"+D),/firefox/i.test(h)?D>=6?(v=5,p=new Array(4),O=D-3):(v=2,p=new Array(2),O=D):h.indexOf("android")!==-1?(v=2,p=new Array(2),O=D):(v=5,p=new Array(4),E&&(E.indexOf("mp4a.40.29")!==-1||E.indexOf("mp4a.40.5")!==-1)||!E&&D>=6?O=D-3:((E&&E.indexOf("mp4a.40.2")!==-1&&(D>=6&&A===1||/vivaldi/i.test(h))||!E&&A===1)&&(v=2,p=new Array(2)),O=D)),p[0]=v<<3,p[0]|=(D&14)>>1,p[1]|=(D&1)<<7,p[1]|=A<<3,v===5&&(p[1]|=(O&14)>>1,p[2]=(O&1)<<7,p[2]|=2<<2,p[3]=0),{config:p,samplerate:l[D],channelCount:A,codec:"mp4a.40."+v,manifestCodec:s}}function U(o,u){return o[u]===255&&(o[u+1]&246)===240}function _(o,u){return o[u+1]&1?7:9}function R(o,u){return(o[u+3]&3)<<11|o[u+4]<<3|(o[u+5]&224)>>>5}function c(o,u){return u+5=o.length)return!1;var E=R(o,u);if(E<=x)return!1;var v=u+E;return v===o.length||g(o,v)}return!1}function f(o,u,x,E,v){if(!o.samplerate){var O=j(u,x,E,v);if(!O)return;o.config=O.config,o.samplerate=O.samplerate,o.channelCount=O.channelCount,o.codec=O.codec,o.manifestCodec=O.manifestCodec,z.logger.log("parsed codec:"+o.codec+", rate:"+O.samplerate+", channels:"+O.channelCount)}}function m(o){return 1024*9e4/o}function a(o,u,x,E,v){var O=_(o,u),A=R(o,u);if(A-=O,A>0){var p=x+E*v;return{headerLength:O,frameLength:A,stamp:p}}}function n(o,u,x,E,v){var O=m(o.samplerate),A=a(u,x,E,v,O);if(A){var p=A.frameLength,h=A.headerLength,s=A.stamp,l=h+p,D=Math.max(0,x+l-u.length),T;D?(T=new Uint8Array(l-h),T.set(u.subarray(x+h,u.length),0)):T=u.subarray(x+h,x+l);var S={unit:T,pts:s};return D||o.samples.push(S),{sample:S,length:l,missing:D}}}},"./src/demux/base-audio-demuxer.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"initPTSFn",function(){return R});var z=P("./src/polyfills/number.ts"),B=P("./src/demux/id3.ts"),M=P("./src/demux/dummy-demuxed-track.ts"),j=P("./src/utils/mp4-tools.ts"),U=P("./src/utils/typed-array.ts"),_=function(){function c(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var g=c.prototype;return g.resetInitSegment=function(y,f,m){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},g.resetTimeStamp=function(){},g.resetContiguity=function(){},g.canParse=function(y,f){return!1},g.appendFrame=function(y,f,m){},g.demux=function(y,f){this.cachedData&&(y=Object(j.appendUint8Array)(this.cachedData,y),this.cachedData=null);var m=B.getID3Data(y,0),a=m?m.length:0,n,o,u=this._audioTrack,x=this._id3Track,E=m?B.getTimeStamp(m):void 0,v=y.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=R(E,f)),m&&m.length>0&&x.samples.push({pts:this.initPTS,dts:this.initPTS,data:m}),o=this.initPTS;a_?(this.word<<=_,this.bitsAvailable-=_):(_-=this.bitsAvailable,R=_>>3,_-=R>>3,this.bytesAvailable-=R,this.loadWord(),this.word<<=_,this.bitsAvailable-=_)},j.readBits=function(_){var R=Math.min(this.bitsAvailable,_),c=this.word>>>32-R;return _>32&&z.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=R,this.bitsAvailable>0?this.word<<=R:this.bytesAvailable>0&&this.loadWord(),R=_-R,R>0&&this.bitsAvailable?c<>>_)!==0)return this.word<<=_,this.bitsAvailable-=_,_;return this.loadWord(),_+this.skipLZ()},j.skipUEG=function(){this.skipBits(1+this.skipLZ())},j.skipEG=function(){this.skipBits(1+this.skipLZ())},j.readUEG=function(){var _=this.skipLZ();return this.readBits(_+1)-1},j.readEG=function(){var _=this.readUEG();return 1&_?1+_>>>1:-1*(_>>>1)},j.readBoolean=function(){return this.readBits(1)===1},j.readUByte=function(){return this.readBits(8)},j.readUShort=function(){return this.readBits(16)},j.readUInt=function(){return this.readBits(32)},j.skipScalingList=function(_){for(var R=8,c=8,g,w=0;w<_;w++)c!==0&&(g=this.readEG(),c=(R+g+256)%256),R=c===0?R:c},j.readSPS=function(){var _=0,R=0,c=0,g=0,w,y,f,m=this.readUByte.bind(this),a=this.readBits.bind(this),n=this.readUEG.bind(this),o=this.readBoolean.bind(this),u=this.skipBits.bind(this),x=this.skipEG.bind(this),E=this.skipUEG.bind(this),v=this.skipScalingList.bind(this);m();var O=m();if(a(5),u(3),m(),E(),O===100||O===110||O===122||O===244||O===44||O===83||O===86||O===118||O===128){var A=n();if(A===3&&u(1),E(),E(),u(1),o())for(y=A!==3?8:12,f=0;f0?v.subarray(A,A+p):void 0},j=function(v,O){var A=0;return A=(v[O]&127)<<21,A|=(v[O+1]&127)<<14,A|=(v[O+2]&127)<<7,A|=v[O+3]&127,A},U=function(v,O){return z(v,O)&&j(v,O+6)+10<=v.length-O},_=function(v){for(var O=g(v),A=0;A>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:S+=String.fromCharCode(l);break;case 12:case 13:D=v[I++],S+=String.fromCharCode((l&31)<<6|D&63);break;case 14:D=v[I++],T=v[I++],S+=String.fromCharCode((l&15)<<12|(D&63)<<6|(T&63)<<0);break;default:}}return S},o={decodeTextFrame:f},u;function x(){return!u&&typeof self.TextDecoder!="undefined"&&(u=new self.TextDecoder("utf-8")),u}},"./src/demux/mp3demuxer.ts":function(ee,K,P){"use strict";P.r(K);var z=P("./src/demux/base-audio-demuxer.ts"),B=P("./src/demux/id3.ts"),M=P("./src/utils/logger.ts"),j=P("./src/demux/mpegaudio.ts");function U(c,g){c.prototype=Object.create(g.prototype),c.prototype.constructor=c,_(c,g)}function _(c,g){return _=Object.setPrototypeOf||function(y,f){return y.__proto__=f,y},_(c,g)}var R=function(c){U(g,c);function g(){return c.apply(this,arguments)||this}var w=g.prototype;return w.resetInitSegment=function(f,m,a){c.prototype.resetInitSegment.call(this,f,m,a),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:f,duration:a,inputTimeScale:9e4,dropped:0}},g.probe=function(f){if(!f)return!1;for(var m=B.getID3Data(f,0)||[],a=m.length,n=f.length;a0},U.demux=function(R){var c=R,g=Object(B.dummyTrack)();if(this.config.progressive){this.remainderData&&(c=Object(z.appendUint8Array)(this.remainderData,R));var w=Object(z.segmentValidRange)(c);this.remainderData=w.remainder,g.samples=w.valid||new Uint8Array}else g.samples=c;return{audioTrack:Object(B.dummyTrack)(),avcTrack:g,id3Track:Object(B.dummyTrack)(),textTrack:Object(B.dummyTrack)()}},U.flush=function(){var R=Object(B.dummyTrack)();return R.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(B.dummyTrack)(),avcTrack:R,id3Track:Object(B.dummyTrack)(),textTrack:Object(B.dummyTrack)()}},U.demuxSampleAes=function(R,c,g){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},U.destroy=function(){},j}();M.minProbeByteLength=1024,K.default=M},"./src/demux/mpegaudio.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"appendFrame",function(){return _}),P.d(K,"parseHeader",function(){return R}),P.d(K,"isHeaderPattern",function(){return c}),P.d(K,"isHeader",function(){return g}),P.d(K,"canParse",function(){return w}),P.d(K,"probe",function(){return y});var z=null,B=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],M=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],j=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],U=[0,1,1,4];function _(f,m,a,n,o){if(a+24>m.length)return;var u=R(m,a);if(u&&a+u.frameLength<=m.length){var x=u.samplesPerFrame*9e4/u.sampleRate,E=n+o*x,v={unit:m.subarray(a,a+u.frameLength),pts:E,dts:E};return f.config=[],f.channelCount=u.channelCount,f.samplerate=u.sampleRate,f.samples.push(v),{sample:v,length:u.frameLength,missing:0}}}function R(f,m){var a=f[m+1]>>3&3,n=f[m+1]>>1&3,o=f[m+2]>>4&15,u=f[m+2]>>2&3;if(a!==1&&o!==0&&o!==15&&u!==3){var x=f[m+2]>>1&1,E=f[m+3]>>6,v=a===3?3-n:n===3?3:4,O=B[v*14+o-1]*1e3,A=a===3?0:a===2?1:2,p=M[A*3+u],h=E===3?1:2,s=j[a][n],l=U[n],D=s*8*l,T=Math.floor(s*O/p+x)*l;if(z===null){var S=navigator.userAgent||"",I=S.match(/Chrome\/(\d+)/i);z=I?parseInt(I[1]):0}var C=!!z&&z<=87;return C&&n===2&&O>=224e3&&E===0&&(f[m+3]=f[m+3]|128),{sampleRate:p,channelCount:h,frameLength:T,samplesPerFrame:D}}}function c(f,m){return f[m]===255&&(f[m+1]&224)===224&&(f[m+1]&6)!==0}function g(f,m){return m+1=R.length){g();return}if(R[c].unit.length<32)continue;var w=this.decrypter.isSync();if(this.decryptAacSample(R,c,g,w),!w)return}},U.getAvcEncryptedData=function(R){for(var c=Math.floor((R.length-48)/160)*16+16,g=new Int8Array(c),w=0,y=32;y<=R.length-16;y+=160,w+=16)g.set(R.subarray(y,y+16),w);return g},U.getAvcDecryptedUnit=function(R,c){for(var g=new Uint8Array(c),w=0,y=32;y<=R.length-16;y+=160,w+=16)R.set(g.subarray(w,w+16),y);return R},U.decryptAvcSample=function(R,c,g,w,y,f){var m=Object(B.discardEPB)(y.data),a=this.getAvcEncryptedData(m),n=this;this.decryptBuffer(a.buffer,function(o){y.data=n.getAvcDecryptedUnit(m,o),f||n.decryptAvcSamples(R,c,g+1,w)})},U.decryptAvcSamples=function(R,c,g,w){if(R instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;c++,g=0){if(c>=R.length){w();return}for(var y=R[c].units;!(g>=y.length);g++){var f=y[g];if(f.data.length<=48||f.type!==1&&f.type!==5)continue;var m=this.decrypter.isSync();if(this.decryptAvcSample(R,c,g,w,f,m),!m)return}}},j}();K.default=M},"./src/demux/transmuxer-interface.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"default",function(){return y});var z=P("./node_modules/webworkify-webpack/index.js"),B=P.n(z),M=P("./src/events.ts"),j=P("./src/demux/transmuxer.ts"),U=P("./src/utils/logger.ts"),_=P("./src/errors.ts"),R=P("./src/utils/mediasource-helper.ts"),c=P("./node_modules/eventemitter3/index.js"),g=P.n(c),w=Object(R.getMediaSource)()||{isTypeSupported:function(){return!1}},y=function(){function f(a,n,o,u){var x=this;this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.worker=void 0,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.hls=a,this.id=n,this.onTransmuxComplete=o,this.onFlush=u;var E=a.config,v=function(s,l){l=l||{},l.frag=x.frag,l.id=x.id,a.trigger(s,l)};this.observer=new c.EventEmitter,this.observer.on(M.Events.FRAG_DECRYPTED,v),this.observer.on(M.Events.ERROR,v);var O={mp4:w.isTypeSupported("video/mp4"),mpeg:w.isTypeSupported("audio/mpeg"),mp3:w.isTypeSupported('audio/mp4; codecs="mp3"')},A=navigator.vendor;if(E.enableWorker&&typeof Worker!="undefined"){U.logger.log("demuxing in webworker");var p;try{p=this.worker=z("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),p.addEventListener("message",this.onwmsg),p.onerror=function(h){a.trigger(M.Events.ERROR,{type:_.ErrorTypes.OTHER_ERROR,details:_.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(h.message+" ("+h.filename+":"+h.lineno+")")})},p.postMessage({cmd:"init",typeSupported:O,vendor:A,id:n,config:JSON.stringify(E)})}catch(h){U.logger.warn("Error in worker:",h),U.logger.error("Error while initializing DemuxerWorker, fallback to inline"),p&&self.URL.revokeObjectURL(p.objectURL),this.transmuxer=new j.default(this.observer,O,E,A,n),this.worker=null}}else this.transmuxer=new j.default(this.observer,O,E,A,n)}var m=f.prototype;return m.destroy=function(){var n=this.worker;if(n)n.removeEventListener("message",this.onwmsg),n.terminate(),this.worker=null;else{var o=this.transmuxer;o&&(o.destroy(),this.transmuxer=null)}var u=this.observer;u&&u.removeAllListeners(),this.observer=null},m.push=function(n,o,u,x,E,v,O,A,p,h){var s=this;p.transmuxing.start=self.performance.now();var l=this.transmuxer,D=this.worker,T=v?v.start:E.start,S=E.decryptdata,I=this.frag,C=!(I&&E.cc===I.cc),W=!(I&&p.level===I.level),Y=I?p.sn-I.sn:-1,H=this.part?p.part-this.part.index:1,F=!W&&(Y===1||Y===0&&H===1),q=self.performance.now();(W||Y||E.stats.parsing.start===0)&&(E.stats.parsing.start=q),v&&(H||!F)&&(v.stats.parsing.start=q);var le=new j.TransmuxState(C,F,A,W,T);if(!F||C){U.logger.log("[transmuxer-interface, "+E.type+"]: Starting new transmux session for sn: "+p.sn+" p: "+p.part+" level: "+p.level+" id: "+p.id+` + Time to underbuffer: `+C.toFixed(3)+" s"),o.nextLoadLevel=Y,this.bwEstimator.sample(A,v.loaded),this.clearTimer(),a.loader&&(this.fragCurrent=this.partCurrent=null,a.loader.abort()),o.trigger(M.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:a,part:n,stats:v})},f.onFragLoaded=function(a,n){var o=n.frag,u=n.part;if(o.type===_.PlaylistLevelType.MAIN&&Object(z.isFiniteNumber)(o.sn)){var x=u?u.stats:o.stats,E=u?u.duration:o.duration;if(this.clearTimer(),this.lastLoadedFragLevel=o.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var v=this.hls.levels[o.level],O=(v.loaded?v.loaded.bytes:0)+x.loaded,A=(v.loaded?v.loaded.duration:0)+E;v.loaded={bytes:O,duration:A},v.realBitrate=Math.round(8*O/A)}if(o.bitrateTest){var p={stats:x,frag:o,part:u,id:o.type};this.onFragBuffered(M.Events.FRAG_BUFFERED,p),o.bitrateTest=!1}}},f.onFragBuffered=function(a,n){var o=n.frag,u=n.part,x=u?u.stats:o.stats;if(x.aborted)return;if(o.type!==_.PlaylistLevelType.MAIN||o.sn==="initSegment")return;var E=x.parsing.end-x.loading.start;this.bwEstimator.sample(E,x.loaded),x.bwEstimate=this.bwEstimator.getEstimate(),o.bitrateTest?this.bitrateTestDelay=E/1e3:this.bitrateTestDelay=0},f.onError=function(a,n){switch(n.details){case U.ErrorDetails.FRAG_LOAD_ERROR:case U.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},f.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},f.getNextABRAutoLevel=function(){var a=this.fragCurrent,n=this.partCurrent,o=this.hls,u=o.maxAutoLevel,x=o.config,E=o.minAutoLevel,v=o.media,O=n?n.duration:a?a.duration:0,A=v?v.currentTime:0,p=v&&v.playbackRate!==0?Math.abs(v.playbackRate):1,h=this.bwEstimator?this.bwEstimator.getEstimate():x.abrEwmaDefaultEstimate,s=(j.BufferHelper.bufferInfo(v,A,x.maxBufferHole).end-A)/p,l=this.findBestLevel(h,E,u,s,x.abrBandWidthFactor,x.abrBandWidthUpFactor);if(l>=0)return l;R.logger.trace((s?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var D=O?Math.min(O,x.maxStarvationDelay):x.maxStarvationDelay,T=x.abrBandWidthFactor,S=x.abrBandWidthUpFactor;if(!s){var I=this.bitrateTestDelay;if(I){var C=O?Math.min(O,x.maxLoadingDelay):x.maxLoadingDelay;D=C-I,R.logger.trace("bitrate test took "+Math.round(1e3*I)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*D)+" ms"),T=S=1}}return l=this.findBestLevel(h,E,u,s+D,T,S),Math.max(l,0)},f.findBestLevel=function(a,n,o,u,x,E){for(var v,O=this.fragCurrent,A=this.partCurrent,p=this.lastLoadedFragLevel,h=this.hls.levels,s=h[p],l=!!(s!=null&&(v=s.details)!==null&&v!==void 0&&v.live),D=s==null?void 0:s.codecSet,T=A?A.duration:O?O.duration:0,S=o;S>=n;S--){var I=h[S];if(!I||D&&I.codecSet!==D)continue;var C=I.details,W=(A?C==null?void 0:C.partTarget:C==null?void 0:C.averagetargetduration)||T,Y=void 0;S<=p?Y=x*a:Y=E*a;var H=h[S].maxBitrate,F=H*W/Y;if(R.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+S+"/"+Math.round(Y)+"/"+H+"/"+W+"/"+u+"/"+F),Y>H&&(!F||l&&!this.bitrateTestDelay||F0&&s===-1?(this.log("Override startPosition with lastCurrentTime @"+l.toFixed(3)),this.state=B.State.IDLE):(this.loadedmetadata=!1,this.state=B.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=s,this.tick()},p.doTick=function(){switch(this.state){case B.State.IDLE:this.doTickIdle();break;case B.State.WAITING_TRACK:{var s,l=this.levels,D=this.trackId,T=l==null||((s=l[D])===null||s===void 0)?void 0:s.details;if(T){if(this.waitForCdnTuneIn(T))break;this.state=B.State.WAITING_INIT_PTS}break}case B.State.FRAG_LOADING_WAITING_RETRY:{var S,I=performance.now(),C=this.retryDate;(!C||I>=C||(S=this.media)!==null&&S!==void 0&&S.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=B.State.IDLE);break}case B.State.WAITING_INIT_PTS:{var W=this.waitingData;if(W){var Y=W.frag,H=W.part,F=W.cache,q=W.complete;if(this.initPTS[Y.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=B.State.FRAG_LOADING;var le=F.flush(),pe={frag:Y,part:H,payload:le,networkDetails:null};this._handleFragmentLoadProgress(pe),q&&O.prototype._handleFragmentLoadComplete.call(this,pe)}else if(this.videoTrackCC!==this.waitingVideoCC)n.logger.log("Waiting fragment cc ("+Y.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var Ae=this.getLoadPosition(),Ge=j.BufferHelper.bufferInfo(this.mediaBuffer,Ae,this.config.maxBufferHole),Fe=Object(f.fragmentWithinToleranceTest)(Ge.end,this.config.maxFragLookUpTolerance,Y);Fe<0&&(n.logger.log("Waiting fragment cc ("+Y.cc+") @ "+Y.start+" cancelled because another fragment at "+Ge.end+" is needed"),this.clearWaitingFragment())}}else this.state=B.State.IDLE}}this.onTickEnd()},p.clearWaitingFragment=function(){var s=this.waitingData;s&&(this.fragmentTracker.removeFragment(s.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=B.State.IDLE)},p.onTickEnd=function(){var s=this.media;if(!s||!s.readyState)return;var l=this.mediaBuffer?this.mediaBuffer:s,D=l.buffered;!this.loadedmetadata&&D.length&&(this.loadedmetadata=!0),this.lastCurrentTime=s.currentTime},p.doTickIdle=function(){var s,l,D=this.hls,T=this.levels,S=this.media,I=this.trackId,C=D.config;if(!T||!T[I])return;if(!S&&(this.startFragRequested||!C.startFragPrefetch))return;var W=T[I],Y=W.details;if(!Y||Y.live&&this.levelLastLoaded!==I||this.waitForCdnTuneIn(Y)){this.state=B.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,c.ElementaryStreamTypes.AUDIO,R.PlaylistLevelType.AUDIO));var H=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,R.PlaylistLevelType.AUDIO);if(H===null)return;var F=H.len,q=this.getMaxBufferLength(),le=this.audioSwitch;if(F>=q&&!le)return;if(!le&&this._streamEnded(H,Y)){D.trigger(M.Events.BUFFER_EOS,{type:"audio"}),this.state=B.State.ENDED;return}var pe=Y.fragments,Ae=pe[0].start,Ge=H.end;if(le){var Fe=this.getLoadPosition();Ge=Fe,Y.PTSKnown&&FeAe||H.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),S.currentTime=Ae+.05))}var Ue=this.getNextFragment(Ge,Y);if(!Ue){this.bufferFlushed=!0;return}((s=Ue.decryptdata)===null||s===void 0?void 0:s.keyFormat)==="identity"&&!((l=Ue.decryptdata)!==null&&l!==void 0&&l.key)?this.loadKey(Ue,Y):this.loadFragment(Ue,Y,Ge)},p.getMaxBufferLength=function(){var s=O.prototype.getMaxBufferLength.call(this),l=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,R.PlaylistLevelType.MAIN);return l===null?s:Math.max(s,l.len)},p.onMediaDetaching=function(){this.videoBuffer=null,O.prototype.onMediaDetaching.call(this)},p.onAudioTracksUpdated=function(s,l){var D=l.audioTracks;this.resetTransmuxer(),this.levels=D.map(function(T){return new _.Level(T)})},p.onAudioTrackSwitching=function(s,l){var D=!!l.url;this.trackId=l.id;var T=this.fragCurrent;T!=null&&T.loader&&T.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),D?this.setInterval(E):this.resetTransmuxer(),D?(this.audioSwitch=!0,this.state=B.State.IDLE):this.state=B.State.STOPPED,this.tick()},p.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},p.onLevelLoaded=function(s,l){this.mainDetails=l.details},p.onAudioTrackLoaded=function(s,l){var D,T=this.levels,S=l.details,I=l.id;if(!T){this.warn("Audio tracks were reset while loading level "+I);return}this.log("Track "+I+" loaded ["+S.startSN+","+S.endSN+"],duration:"+S.totalduration);var C=T[I],W=0;if(S.live||(D=C.details)!==null&&D!==void 0&&D.live){var Y=this.mainDetails;if(S.fragments[0]||(S.deltaUpdateFailed=!0),S.deltaUpdateFailed||!Y)return;!C.details&&S.hasProgramDateTime&&Y.hasProgramDateTime?(Object(m.alignMediaPlaylistByPDT)(S,Y),W=S.fragments[0].start):W=this.alignPlaylists(S,C.details)}C.details=S,this.levelLastLoaded=I,!this.startFragRequested&&(this.mainDetails||!S.live)&&this.setStartPosition(C.details,W),this.state===B.State.WAITING_TRACK&&!this.waitForCdnTuneIn(S)&&(this.state=B.State.IDLE),this.tick()},p._handleFragmentLoadProgress=function(s){var l,D=s.frag,T=s.part,S=s.payload,I=this.config,C=this.trackId,W=this.levels;if(!W){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+D.sn+" of level "+D.level+" will not be buffered");return}var Y=W[C];console.assert(Y,"Audio track is defined on fragment load progress");var H=Y.details;console.assert(H,"Audio track details are defined on fragment load progress");var F=I.defaultAudioCodec||Y.audioCodec||"mp4a.40.2",q=this.transmuxer;q||(q=this.transmuxer=new w.default(this.hls,R.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var le=this.initPTS[D.cc],pe=(l=D.initSegment)===null||l===void 0?void 0:l.data;if(le!==void 0){var Ae=!1,Ge=T?T.index:-1,Fe=Ge!==-1,Ue=new y.ChunkMetadata(D.level,D.sn,D.stats.chunkCount,S.byteLength,Ge,Fe);q.push(S,pe,F,"",D,T,H.totalduration,Ae,Ue,le)}else{n.logger.log("Unknown video PTS for cc "+D.cc+", waiting for video PTS before demuxing audio frag "+D.sn+" of ["+H.startSN+" ,"+H.endSN+"],track "+C);var _e=this.waitingData=this.waitingData||{frag:D,part:T,cache:new g.default,complete:!1},je=_e.cache;je.push(new Uint8Array(S)),this.waitingVideoCC=this.videoTrackCC,this.state=B.State.WAITING_INIT_PTS}},p._handleFragmentLoadComplete=function(s){if(this.waitingData){this.waitingData.complete=!0;return}O.prototype._handleFragmentLoadComplete.call(this,s)},p.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},p.onBufferCreated=function(s,l){var D=l.tracks.audio;D&&(this.mediaBuffer=D.buffer),l.tracks.video&&(this.videoBuffer=l.tracks.video.buffer)},p.onFragBuffered=function(s,l){var D=l.frag,T=l.part;if(D.type!==R.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(D)){this.warn("Fragment "+D.sn+(T?" p: "+T.index:"")+" of level "+D.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}D.sn!=="initSegment"&&(this.fragPrevious=D,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(M.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(D,T)},p.onError=function(s,l){switch(l.details){case a.ErrorDetails.FRAG_LOAD_ERROR:case a.ErrorDetails.FRAG_LOAD_TIMEOUT:case a.ErrorDetails.KEY_LOAD_ERROR:case a.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(R.PlaylistLevelType.AUDIO,l);break;case a.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case a.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==B.State.ERROR&&this.state!==B.State.STOPPED&&(this.state=l.fatal?B.State.ERROR:B.State.IDLE,this.warn(l.details+" while loading frag, switching to "+this.state+" state"));break;case a.ErrorDetails.BUFFER_FULL_ERROR:if(l.parent==="audio"&&(this.state===B.State.PARSING||this.state===B.State.PARSED)){var D=!0,T=this.getFwdBufferInfo(this.mediaBuffer,R.PlaylistLevelType.AUDIO);T&&T.len>.5&&(D=!this.reduceMaxBufferLength(T.len)),D&&(this.warn("Buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,O.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}break;default:break}},p.onBufferFlushed=function(s,l){var D=l.type;D===c.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},p._handleTransmuxComplete=function(s){var l,D="audio",T=this.hls,S=s.remuxResult,I=s.chunkMeta,C=this.getCurrentContext(I);if(!C){this.warn("The loading context changed while buffering fragment "+I.sn+" of level "+I.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(I.level);return}var W=C.frag,Y=C.part,H=S.audio,F=S.text,q=S.id3,le=S.initSegment;if(this.fragContextChanged(W))return;if(this.state=B.State.PARSING,this.audioSwitch&&H&&this.completeAudioSwitch(),le!=null&&le.tracks&&(this._bufferInitSegment(le.tracks,W,I),T.trigger(M.Events.FRAG_PARSING_INIT_SEGMENT,{frag:W,id:D,tracks:le.tracks})),H){var pe=H.startPTS,Ae=H.endPTS,Ge=H.startDTS,Fe=H.endDTS;Y&&(Y.elementaryStreams[c.ElementaryStreamTypes.AUDIO]={startPTS:pe,endPTS:Ae,startDTS:Ge,endDTS:Fe}),W.setElementaryStreamInfo(c.ElementaryStreamTypes.AUDIO,pe,Ae,Ge,Fe),this.bufferFragmentData(H,W,Y,I)}if(q!=null&&(l=q.samples)!==null&&l!==void 0&&l.length){var Ue=o({frag:W,id:D},q);T.trigger(M.Events.FRAG_PARSING_METADATA,Ue)}if(F){var _e=o({frag:W,id:D},F);T.trigger(M.Events.FRAG_PARSING_USERDATA,_e)}},p._bufferInitSegment=function(s,l,D){if(this.state!==B.State.PARSING)return;s.video&&delete s.video;var T=s.audio;if(!T)return;T.levelCodec=T.codec,T.id="audio",this.log("Init audio buffer, container:"+T.container+", codecs[parsed]=["+T.codec+"]"),this.hls.trigger(M.Events.BUFFER_CODECS,s);var S=T.initSegment;if(S!=null&&S.byteLength){var I={type:"audio",frag:l,part:null,chunkMeta:D,parent:l.type,data:S};this.hls.trigger(M.Events.BUFFER_APPENDING,I)}this.tick()},p.loadFragment=function(s,l,D){var T=this.fragmentTracker.getState(s);this.fragCurrent=s,(this.audioSwitch||T===U.FragmentState.NOT_LOADED||T===U.FragmentState.PARTIAL)&&(s.sn==="initSegment"?this._loadInitSegment(s):l.live&&!Object(z.isFiniteNumber)(this.initPTS[s.cc])?(this.log("Waiting for video PTS in continuity counter "+s.cc+" of live stream before loading audio fragment "+s.sn+" of level "+this.trackId),this.state=B.State.WAITING_INIT_PTS):(this.startFragRequested=!0,O.prototype.loadFragment.call(this,s,l,D)))},p.completeAudioSwitch=function(){var s=this.hls,l=this.media,D=this.trackId;l&&(this.log("Switching audio track : flushing all audio"),O.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,s.trigger(M.Events.AUDIO_TRACK_SWITCHED,{id:D})},A}(B.default);K.default=v},"./src/controller/audio-track-controller.ts":function(ee,K,k){"use strict";k.r(K);var z=k("./src/events.ts"),B=k("./src/errors.ts"),M=k("./src/controller/base-playlist-controller.ts"),j=k("./src/types/loader.ts");function U(w,y){for(var f=0;f=n.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var o=n[this.trackId];this.log("Now switching to audio-track index "+a);var u=n[a],x=u.id,E=u.groupId,v=E===void 0?"":E,O=u.name,A=u.type,p=u.url;if(this.trackId=a,this.trackName=O,this.selectDefaultTrack=!1,this.hls.trigger(z.Events.AUDIO_TRACK_SWITCHING,{id:x,groupId:v,name:O,type:A,url:p}),u.details&&!u.details.live)return;var h=this.switchParams(u.url,o==null?void 0:o.details);this.loadPlaylist(h)},f.selectInitialTrack=function(){var a=this.tracksInGroup;console.assert(a.length,"Initial audio track should be selected when tracks are known");var n=this.trackName,o=this.findTrackId(n)||this.findTrackId();o!==-1?this.setAudioTrack(o):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(z.Events.ERROR,{type:B.ErrorTypes.MEDIA_ERROR,details:B.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},f.findTrackId=function(a){for(var n=this.tracksInGroup,o=0;oy.partTarget&&(u+=1)}if(Object(z.isFiniteNumber)(o))return new B.HlsUrlParameters(o,Object(z.isFiniteNumber)(u)?u:void 0,B.HlsSkip.No)}}},c.loadPlaylist=function(w){},c.shouldLoadTrack=function(w){return this.canLoad&&w&&!!w.url&&(!w.details||w.details.live)},c.playlistLoaded=function(w,y,f){var m=this,a=y.details,n=y.stats,o=n.loading.end?Math.max(0,self.performance.now()-n.loading.end):0;if(a.advancedDateTime=Date.now()-o,a.live||f!=null&&f.live){if(a.reloaded(f),f&&this.log("live playlist "+w+" "+(a.advanced?"REFRESHED "+a.lastPartSn+"-"+a.lastPartIndex:"MISSED")),f&&a.fragments.length>0&&Object(M.mergeDetails)(f,a),!this.canLoad||!a.live)return;var u,x=void 0,E=void 0;if(a.canBlockReload&&a.endSN&&a.advanced){var v=this.hls.config.lowLatencyMode,O=a.lastPartSn,A=a.endSN,p=a.lastPartIndex,h=p!==-1,s=O===A,l=v?0:p;h?(x=s?A+1:O,E=s?l:p+1):x=A+1;var D=a.age,T=D+a.ageHeader,S=Math.min(T-a.partTarget,a.targetduration*1.5);if(S>0){if(f&&S>f.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+f.tuneInGoal+" to: "+S+" with playlist age: "+a.age),S=0;else{var I=Math.floor(S/a.targetduration);if(x+=I,E!==void 0){var C=Math.round(S%a.targetduration/a.partTarget);E+=C}this.log("CDN Tune-in age: "+a.ageHeader+"s last advanced "+D.toFixed(2)+"s goal: "+S+" skip sn "+I+" to part "+E)}a.tuneInGoal=S}if(u=this.getDeliveryDirectives(a,y.deliveryDirectives,x,E),v||!s){this.loadPlaylist(u);return}}else u=this.getDeliveryDirectives(a,y.deliveryDirectives,x,E);var W=Object(M.computeReloadInterval)(a,n);x!==void 0&&a.canBlockReload&&(W-=a.partTarget||1),this.log("reload live playlist "+w+" in "+Math.round(W)+" ms"),this.timer=self.setTimeout(function(){return m.loadPlaylist(u)},W)}else this.clearTimer()},c.getDeliveryDirectives=function(w,y,f,m){var a=Object(B.getSkipValue)(w,f);return y!=null&&y.skip&&w.deltaUpdateFailed&&(f=y.msn,m=y.part,a=B.HlsSkip.No),new B.HlsUrlParameters(f,m,a)},c.retryLoadingOrFail=function(w){var y=this,f=this.hls.config,m=this.retryCount-1&&(a=w.context)!==null&&a!==void 0&&a.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+w.details+'"'),this.loadPlaylist();else{var n=Math.min(Math.pow(2,this.retryCount)*f.levelLoadingRetryDelay,f.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return y.loadPlaylist()},n),this.warn("retry playlist loading #"+this.retryCount+" in "+n+' ms after "'+w.details+'"')}}else this.warn('cannot recover from error "'+w.details+'"'),this.clearTimer(),w.fatal=!0;return m},R}()},"./src/controller/base-stream-controller.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"State",function(){return A}),k.d(K,"default",function(){return p});var z=k("./src/polyfills/number.ts"),B=k("./src/task-loop.ts"),M=k("./src/controller/fragment-tracker.ts"),j=k("./src/utils/buffer-helper.ts"),U=k("./src/utils/logger.ts"),_=k("./src/events.ts"),R=k("./src/errors.ts"),c=k("./src/types/transmuxer.ts"),g=k("./src/utils/mp4-tools.ts"),w=k("./src/utils/discontinuities.ts"),y=k("./src/controller/fragment-finders.ts"),f=k("./src/controller/level-helper.ts"),m=k("./src/loader/fragment-loader.ts"),a=k("./src/crypt/decrypter.ts"),n=k("./src/utils/time-ranges.ts"),o=k("./src/types/loader.ts");function u(h,s){for(var l=0;lle;(Y0&&Y&&Y.key&&Y.iv&&Y.method==="AES-128"){var H=self.performance.now();return S.decrypter.webCryptoDecrypt(new Uint8Array(W),Y.key.buffer,Y.iv.buffer).then(function(F){var q=self.performance.now();return C.trigger(_.Events.FRAG_DECRYPTED,{frag:T,payload:F,stats:{tstart:H,tdecrypt:q}}),I.payload=F,I})}return I}).then(function(I){var C=S.fragCurrent,W=S.hls,Y=S.levels;if(!Y)throw new Error("init load aborted, missing levels");var H=Y[T.level].details;console.assert(H,"Level details are defined when init segment is loaded");var F=T.stats;S.state=A.IDLE,S.fragLoadError=0,T.data=new Uint8Array(I.payload),F.parsing.start=F.buffering.start=self.performance.now(),F.parsing.end=F.buffering.end=self.performance.now(),I.frag===C&&W.trigger(_.Events.FRAG_BUFFERED,{stats:F,frag:C,part:null,id:T.type}),S.tick()}).catch(function(I){S.warn(I),S.resetFragmentLoading(T)})},l.fragContextChanged=function(T){var S=this.fragCurrent;return!T||!S||T.level!==S.level||T.sn!==S.sn||T.urlId!==S.urlId},l.fragBufferedComplete=function(T,S){var I=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+T.type+" sn: "+T.sn+(S?" part: "+S.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+T.level+" "+n.default.toString(j.BufferHelper.getBuffered(I))),this.state=A.IDLE,this.tick()},l._handleFragmentLoadComplete=function(T){var S=this.transmuxer;if(!S)return;var I=T.frag,C=T.part,W=T.partsLoaded,Y=!W||W.length===0||W.some(function(F){return!F}),H=new c.ChunkMetadata(I.level,I.sn,I.stats.chunkCount+1,0,C?C.index:-1,!Y);S.flush(H)},l._handleFragmentLoadProgress=function(T){},l._doFragLoad=function(T,S,I,C){var W=this;if(I===void 0&&(I=null),!this.levels)throw new Error("frag load aborted, missing levels");if(I=Math.max(T.start,I||0),this.config.lowLatencyMode&&S){var Y=S.partList;if(Y&&C){I>T.end&&S.fragmentHint&&(T=S.fragmentHint);var H=this.getNextPart(Y,T,I);if(H>-1){var F=Y[H];return this.log("Loading part sn: "+T.sn+" p: "+F.index+" cc: "+T.cc+" of playlist ["+S.startSN+"-"+S.endSN+"] parts [0-"+H+"-"+(Y.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+T.level+", target: "+parseFloat(I.toFixed(3))),this.nextLoadPosition=F.start+F.duration,this.state=A.FRAG_LOADING,this.hls.trigger(_.Events.FRAG_LOADING,{frag:T,part:Y[H],targetBufferTime:I}),this.doFragPartsLoad(T,Y,H,C).catch(function(q){return W.handleFragLoadError(q)})}else if(!T.url||this.loadedEndOfParts(Y,I))return Promise.resolve(null)}}return this.log("Loading fragment "+T.sn+" cc: "+T.cc+" "+(S?"of ["+S.startSN+"-"+S.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+T.level+", target: "+parseFloat(I.toFixed(3))),Object(z.isFiniteNumber)(T.sn)&&!this.bitrateTest&&(this.nextLoadPosition=T.start+T.duration),this.state=A.FRAG_LOADING,this.hls.trigger(_.Events.FRAG_LOADING,{frag:T,targetBufferTime:I}),this.fragmentLoader.load(T,C).catch(function(q){return W.handleFragLoadError(q)})},l.doFragPartsLoad=function(T,S,I,C){var W=this;return new Promise(function(Y,H){var F=[],q=function le(pe){var Ae=S[pe];W.fragmentLoader.loadPart(T,Ae,C).then(function(Ge){F[Ae.index]=Ge;var Fe=Ge.part;W.hls.trigger(_.Events.FRAG_LOADED,Ge);var Ue=S[pe+1];if(Ue&&Ue.fragment===T)le(pe+1);else return Y({frag:T,part:Fe,partsLoaded:F})}).catch(H)};q(I)})},l.handleFragLoadError=function(T){var S=T.data;return S&&S.details===R.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(S.frag,S.part):this.hls.trigger(_.Events.ERROR,S),null},l._handleTransmuxerFlush=function(T){var S=this.getCurrentContext(T);if(!S||this.state!==A.PARSING){this.fragCurrent||(this.state=A.IDLE);return}var I=S.frag,C=S.part,W=S.level,Y=self.performance.now();I.stats.parsing.end=Y,C&&(C.stats.parsing.end=Y),this.updateLevelTiming(I,C,W,T.partial)},l.getCurrentContext=function(T){var S=this.levels,I=T.level,C=T.sn,W=T.part;if(!S||!S[I])return this.warn("Levels object was unset while buffering fragment "+C+" of level "+I+". The current chunk will not be buffered."),null;var Y=S[I],H=W>-1?Object(f.getPartWith)(Y,C,W):null,F=H?H.fragment:Object(f.getFragmentWithSN)(Y,C,this.fragCurrent);return F?{frag:F,part:H,level:Y}:null},l.bufferFragmentData=function(T,S,I,C){if(!T||this.state!==A.PARSING)return;var W=T.data1,Y=T.data2,H=W;if(W&&Y&&(H=Object(g.appendUint8Array)(W,Y)),!H||!H.length)return;var F={type:T.type,frag:S,part:I,chunkMeta:C,parent:S.type,data:H};this.hls.trigger(_.Events.BUFFER_APPENDING,F),T.dropped&&T.independent&&!I&&this.flushBufferGap(S)},l.flushBufferGap=function(T){var S=this.media;if(!S)return;if(!j.BufferHelper.isBuffered(S,S.currentTime)){this.flushMainBuffer(0,T.start);return}var I=S.currentTime,C=j.BufferHelper.bufferInfo(S,I,0),W=T.duration,Y=Math.min(this.config.maxFragLookUpTolerance*2,W*.25),H=Math.max(Math.min(T.start-Y,C.end-Y),I+Y);T.start-H>Y&&this.flushMainBuffer(H,T.start)},l.getFwdBufferInfo=function(T,S){var I=this.config,C=this.getLoadPosition();if(!Object(z.isFiniteNumber)(C))return null;var W=j.BufferHelper.bufferInfo(T,C,I.maxBufferHole);if(W.len===0&&W.nextStart!==void 0){var Y=this.fragmentTracker.getBufferedFrag(C,S);if(Y&&W.nextStart=I?(S.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+S.maxMaxBufferLength+"s"),!0):!1},l.getNextFragment=function(T,S){var I,C,W=S.fragments,Y=W.length;if(!Y)return null;var H=this.config,F=W[0].start,q;if(S.live){var le=H.initialLiveManifestSize;if(Y-1&&II.start&&I.loaded},l.getInitialLiveFragment=function(T,S){var I=this.fragPrevious,C=null;if(I){if(T.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+I.programDateTime),C=Object(y.findFragmentByPDT)(S,I.endProgramDateTime,this.config.maxFragLookUpTolerance)),!C){var W=I.sn+1;if(W>=T.startSN&&W<=T.endSN){var Y=S[W-T.startSN];I.cc===Y.cc&&(C=Y,this.log("Live playlist, switching playlist, load frag with next SN: "+C.sn))}C||(C=Object(y.findFragWithCC)(S,I.cc),C&&this.log("Live playlist, switching playlist, load frag with same CC: "+C.sn))}}else{var H=this.hls.liveSyncPosition;H!==null&&(C=this.getFragmentAtPosition(H,this.bitrateTest?T.fragmentEnd:T.edge,T))}return C},l.getFragmentAtPosition=function(T,S,I){var C=this.config,W=this.fragPrevious,Y=I.fragments,H=I.endSN,F=I.fragmentHint,q=C.maxFragLookUpTolerance,le=!!(C.lowLatencyMode&&I.partList&&F);le&&F&&!this.bitrateTest&&(Y=Y.concat(F),H=F.sn);var pe;if(TS-q?0:q;pe=Object(y.findFragmentByPTS)(W,Y,T,Ae)}else pe=Y[Y.length-1];if(pe){var Ge=pe.sn-I.startSN,Fe=W&&pe.level===W.level,Ue=Y[Ge+1],_e=this.fragmentTracker.getState(pe);if(_e===M.FragmentState.BACKTRACKED){pe=null;for(var je=Ge;Y[je]&&this.fragmentTracker.getState(Y[je])===M.FragmentState.BACKTRACKED;)W?pe=Y[je--]:pe=Y[--je];pe||(pe=Ue)}else W&&pe.sn===W.sn&&!le&&(Fe&&(pe.sn=Y-S.maxFragLookUpTolerance&&W<=H;if(C!==null&&I.duration>C&&(W"+T.startSN+" prev-sn: "+(W?W.sn:"na")+" fragments: "+H),pe}return F},l.waitForCdnTuneIn=function(T){var S=3;return T.live&&T.canBlockReload&&T.tuneInGoal>Math.max(T.partHoldBack,T.partTarget*S)},l.setStartPosition=function(T,S){var I=this.startPosition;if(I"+T))}}]),s}(B.default)},"./src/controller/buffer-controller.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"default",function(){return y});var z=k("./src/polyfills/number.ts"),B=k("./src/events.ts"),M=k("./src/utils/logger.ts"),j=k("./src/errors.ts"),U=k("./src/utils/buffer-helper.ts"),_=k("./src/utils/mediasource-helper.ts"),R=k("./src/loader/fragment.ts"),c=k("./src/controller/buffer-operation-queue.ts"),g=Object(_.getMediaSource)(),w=/([ha]vc.)(?:\.[^.,]+)+/,y=function(){function f(a){var n=this;this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.appendError=0,this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this._onMediaSourceOpen=function(){var o=n.hls,u=n.media,x=n.mediaSource;M.logger.log("[buffer-controller]: Media source opened"),u&&(n.updateMediaElementDuration(),o.trigger(B.Events.MEDIA_ATTACHED,{media:u})),x&&x.removeEventListener("sourceopen",n._onMediaSourceOpen),n.checkPendingTracks()},this._onMediaSourceClose=function(){M.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){M.logger.log("[buffer-controller]: Media source ended")},this.hls=a,this._initSourceBuffer(),this.registerListeners()}var m=f.prototype;return m.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},m.destroy=function(){this.unregisterListeners(),this.details=null},m.registerListeners=function(){var n=this.hls;n.on(B.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),n.on(B.Events.MEDIA_DETACHING,this.onMediaDetaching,this),n.on(B.Events.MANIFEST_PARSED,this.onManifestParsed,this),n.on(B.Events.BUFFER_RESET,this.onBufferReset,this),n.on(B.Events.BUFFER_APPENDING,this.onBufferAppending,this),n.on(B.Events.BUFFER_CODECS,this.onBufferCodecs,this),n.on(B.Events.BUFFER_EOS,this.onBufferEos,this),n.on(B.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),n.on(B.Events.LEVEL_UPDATED,this.onLevelUpdated,this),n.on(B.Events.FRAG_PARSED,this.onFragParsed,this),n.on(B.Events.FRAG_CHANGED,this.onFragChanged,this)},m.unregisterListeners=function(){var n=this.hls;n.off(B.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),n.off(B.Events.MEDIA_DETACHING,this.onMediaDetaching,this),n.off(B.Events.MANIFEST_PARSED,this.onManifestParsed,this),n.off(B.Events.BUFFER_RESET,this.onBufferReset,this),n.off(B.Events.BUFFER_APPENDING,this.onBufferAppending,this),n.off(B.Events.BUFFER_CODECS,this.onBufferCodecs,this),n.off(B.Events.BUFFER_EOS,this.onBufferEos,this),n.off(B.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),n.off(B.Events.LEVEL_UPDATED,this.onLevelUpdated,this),n.off(B.Events.FRAG_PARSED,this.onFragParsed,this),n.off(B.Events.FRAG_CHANGED,this.onFragChanged,this)},m._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new c.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},m.onManifestParsed=function(n,o){var u=2;(o.audio&&!o.video||!o.altAudio)&&(u=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=u,this.details=null,M.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},m.onMediaAttaching=function(n,o){var u=this.media=o.media;if(u&&g){var x=this.mediaSource=new g;x.addEventListener("sourceopen",this._onMediaSourceOpen),x.addEventListener("sourceended",this._onMediaSourceEnded),x.addEventListener("sourceclose",this._onMediaSourceClose),u.src=self.URL.createObjectURL(x),this._objectUrl=u.src}},m.onMediaDetaching=function(){var n=this.media,o=this.mediaSource,u=this._objectUrl;if(o){if(M.logger.log("[buffer-controller]: media source detaching"),o.readyState==="open")try{o.endOfStream()}catch(x){M.logger.warn("[buffer-controller]: onMediaDetaching: "+x.message+" while calling endOfStream")}this.onBufferReset(),o.removeEventListener("sourceopen",this._onMediaSourceOpen),o.removeEventListener("sourceended",this._onMediaSourceEnded),o.removeEventListener("sourceclose",this._onMediaSourceClose),n&&(u&&self.URL.revokeObjectURL(u),n.src===u?(n.removeAttribute("src"),n.load()):M.logger.warn("[buffer-controller]: media.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(B.Events.MEDIA_DETACHED,void 0)},m.onBufferReset=function(){var n=this;this.getSourceBufferTypes().forEach(function(o){var u=n.sourceBuffer[o];try{u&&(n.removeBufferListeners(o),n.mediaSource&&n.mediaSource.removeSourceBuffer(u),n.sourceBuffer[o]=void 0)}catch(x){M.logger.warn("[buffer-controller]: Failed to reset the "+o+" buffer",x)}}),this._initSourceBuffer()},m.onBufferCodecs=function(n,o){var u=this,x=this.getSourceBufferTypes().length;if(Object.keys(o).forEach(function(E){if(x){var v=u.tracks[E];if(v&&typeof v.buffer.changeType=="function"){var O=o[E],A=O.codec,p=O.levelCodec,h=O.container,s=(v.levelCodec||v.codec).replace(w,"$1"),l=(p||A).replace(w,"$1");if(s!==l){var D=h+";codecs="+(p||A);u.appendChangeType(E,D)}}}else u.pendingTracks[E]=o[E]}),x)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},m.appendChangeType=function(n,o){var u=this,x=this.operationQueue,E={execute:function(){var O=u.sourceBuffer[n];O&&(M.logger.log("[buffer-controller]: changing "+n+" sourceBuffer type to "+o),O.changeType(o)),x.shiftAndExecuteNext(n)},onStart:function(){},onComplete:function(){},onError:function(O){M.logger.warn("[buffer-controller]: Failed to change "+n+" SourceBuffer type",O)}};x.append(E,n)},m.onBufferAppending=function(n,o){var u=this,x=this.hls,E=this.operationQueue,v=this.tracks,O=o.data,A=o.type,p=o.frag,h=o.part,s=o.chunkMeta,l=s.buffering[A],D=self.performance.now();l.start=D;var T=p.stats.buffering,S=h?h.stats.buffering:null;T.start===0&&(T.start=D),S&&S.start===0&&(S.start=D);var I=v.audio,C=A==="audio"&&s.id===1&&(I==null?void 0:I.container)==="audio/mpeg",W={execute:function(){if(l.executeStart=self.performance.now(),C){var H=u.sourceBuffer[A];if(H){var F=p.start-H.timestampOffset;Math.abs(F)>=.1&&(M.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+p.start+" (delta: "+F+") sn: "+p.sn+")"),H.timestampOffset=p.start)}}u.appendExecutor(O,A)},onStart:function(){},onComplete:function(){var H=self.performance.now();l.executeEnd=l.end=H,T.first===0&&(T.first=H),S&&S.first===0&&(S.first=H);var F=u.sourceBuffer,q={};for(var le in F)q[le]=U.BufferHelper.getBuffered(F[le]);u.appendError=0,u.hls.trigger(B.Events.BUFFER_APPENDED,{type:A,frag:p,part:h,chunkMeta:s,parent:p.type,timeRanges:q})},onError:function(H){M.logger.error("[buffer-controller]: Error encountered while trying to append to the "+A+" SourceBuffer",H);var F={type:j.ErrorTypes.MEDIA_ERROR,parent:p.type,details:j.ErrorDetails.BUFFER_APPEND_ERROR,err:H,fatal:!1};H.code===DOMException.QUOTA_EXCEEDED_ERR?F.details=j.ErrorDetails.BUFFER_FULL_ERROR:(u.appendError++,F.details=j.ErrorDetails.BUFFER_APPEND_ERROR,u.appendError>x.config.appendErrorMaxRetry&&(M.logger.error("[buffer-controller]: Failed "+x.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),F.fatal=!0)),x.trigger(B.Events.ERROR,F)}};E.append(W,A)},m.onBufferFlushing=function(n,o){var u=this,x=this.operationQueue,E=function(O){return{execute:u.removeExecutor.bind(u,O,o.startOffset,o.endOffset),onStart:function(){},onComplete:function(){u.hls.trigger(B.Events.BUFFER_FLUSHED,{type:O})},onError:function(p){M.logger.warn("[buffer-controller]: Failed to remove from "+O+" SourceBuffer",p)}}};o.type?x.append(E(o.type),o.type):this.getSourceBufferTypes().forEach(function(v){x.append(E(v),v)})},m.onFragParsed=function(n,o){var u=this,x=o.frag,E=o.part,v=[],O=E?E.elementaryStreams:x.elementaryStreams;O[R.ElementaryStreamTypes.AUDIOVIDEO]?v.push("audiovideo"):(O[R.ElementaryStreamTypes.AUDIO]&&v.push("audio"),O[R.ElementaryStreamTypes.VIDEO]&&v.push("video"));var A=function(){var h=self.performance.now();x.stats.buffering.end=h,E&&(E.stats.buffering.end=h);var s=E?E.stats:x.stats;u.hls.trigger(B.Events.FRAG_BUFFERED,{frag:x,part:E,stats:s,id:x.type})};v.length===0&&M.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+x.type+" level: "+x.level+" sn: "+x.sn),this.blockBuffers(A,v)},m.onFragChanged=function(n,o){this.flushBackBuffer()},m.onBufferEos=function(n,o){var u=this,x=this.getSourceBufferTypes().reduce(function(E,v){var O=u.sourceBuffer[v];return(!o.type||o.type===v)&&(O&&!O.ended&&(O.ended=!0,M.logger.log("[buffer-controller]: "+v+" sourceBuffer now EOS"))),E&&!!(!O||O.ended)},!0);x&&this.blockBuffers(function(){var E=u.mediaSource;if(!E||E.readyState!=="open")return;E.endOfStream()})},m.onLevelUpdated=function(n,o){var u=o.details;if(!u.fragments.length)return;this.details=u,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},m.flushBackBuffer=function(){var n=this.hls,o=this.details,u=this.media,x=this.sourceBuffer;if(!u||o===null)return;var E=this.getSourceBufferTypes();if(!E.length)return;var v=o.live&&n.config.liveBackBufferLength!==null?n.config.liveBackBufferLength:n.config.backBufferLength;if(!Object(z.isFiniteNumber)(v)||v<0)return;var O=u.currentTime,A=o.levelTargetDuration,p=Math.max(v,A),h=Math.floor(O/A)*A-p;E.forEach(function(s){var l=x[s];if(l){var D=U.BufferHelper.getBuffered(l);D.length>0&&h>D.start(0)&&(n.trigger(B.Events.BACK_BUFFER_REACHED,{bufferEnd:h}),o.live&&n.trigger(B.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:h}),n.trigger(B.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:h,type:s}))}})},m.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var n=this.details,o=this.hls,u=this.media,x=this.mediaSource,E=n.fragments[0].start+n.totalduration,v=u.duration,O=Object(z.isFiniteNumber)(x.duration)?x.duration:0;n.live&&o.config.liveDurationInfinity?(M.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),x.duration=Infinity,this.updateSeekableRange(n)):(E>O&&E>v||!Object(z.isFiniteNumber)(v))&&(M.logger.log("[buffer-controller]: Updating Media Source duration to "+E.toFixed(3)),x.duration=E)},m.updateSeekableRange=function(n){var o=this.mediaSource,u=n.fragments,x=u.length;if(x&&n.live&&o!==null&&o!==void 0&&o.setLiveSeekableRange){var E=Math.max(0,u[0].start),v=Math.max(E,E+n.totalduration);o.setLiveSeekableRange(E,v)}},m.checkPendingTracks=function(){var n=this.bufferCodecEventsExpected,o=this.operationQueue,u=this.pendingTracks,x=Object.keys(u).length;if(x&&!n||x===2){this.createSourceBuffers(u),this.pendingTracks={};var E=this.getSourceBufferTypes();if(E.length===0){this.hls.trigger(B.Events.ERROR,{type:j.ErrorTypes.MEDIA_ERROR,details:j.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});return}E.forEach(function(v){o.executeNext(v)})}},m.createSourceBuffers=function(n){var o=this.sourceBuffer,u=this.mediaSource;if(!u)throw Error("createSourceBuffers called when mediaSource was null");var x=0;for(var E in n)if(!o[E]){var v=n[E];if(!v)throw Error("source buffer exists for track "+E+", however track does not");var O=v.levelCodec||v.codec,A=v.container+";codecs="+O;M.logger.log("[buffer-controller]: creating sourceBuffer("+A+")");try{var p=o[E]=u.addSourceBuffer(A),h=E;this.addBufferListener(h,"updatestart",this._onSBUpdateStart),this.addBufferListener(h,"updateend",this._onSBUpdateEnd),this.addBufferListener(h,"error",this._onSBUpdateError),this.tracks[E]={buffer:p,codec:O,container:v.container,levelCodec:v.levelCodec,id:v.id},x++}catch(s){M.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+s.message),this.hls.trigger(B.Events.ERROR,{type:j.ErrorTypes.MEDIA_ERROR,details:j.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:s,mimeType:A})}}x&&this.hls.trigger(B.Events.BUFFER_CREATED,{tracks:this.tracks})},m._onSBUpdateStart=function(n){var o=this.operationQueue,u=o.current(n);u.onStart()},m._onSBUpdateEnd=function(n){var o=this.operationQueue,u=o.current(n);u.onComplete(),o.shiftAndExecuteNext(n)},m._onSBUpdateError=function(n,o){M.logger.error("[buffer-controller]: "+n+" SourceBuffer error",o),this.hls.trigger(B.Events.ERROR,{type:j.ErrorTypes.MEDIA_ERROR,details:j.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var u=this.operationQueue.current(n);u&&u.onError(o)},m.removeExecutor=function(n,o,u){var x=this.media,E=this.mediaSource,v=this.operationQueue,O=this.sourceBuffer,A=O[n];if(!x||!E||!A){M.logger.warn("[buffer-controller]: Attempting to remove from the "+n+" SourceBuffer, but it does not exist"),v.shiftAndExecuteNext(n);return}var p=Object(z.isFiniteNumber)(x.duration)?x.duration:Infinity,h=Object(z.isFiniteNumber)(E.duration)?E.duration:Infinity,s=Math.max(0,o),l=Math.min(u,p,h);l>s?(M.logger.log("[buffer-controller]: Removing ["+s+","+l+"] from the "+n+" SourceBuffer"),console.assert(!A.updating,n+" sourceBuffer must not be updating"),A.remove(s,l)):v.shiftAndExecuteNext(n)},m.appendExecutor=function(n,o){var u=this.operationQueue,x=this.sourceBuffer,E=x[o];if(!E){M.logger.warn("[buffer-controller]: Attempting to append to the "+o+" SourceBuffer, but it does not exist"),u.shiftAndExecuteNext(o);return}E.ended=!1,console.assert(!E.updating,o+" sourceBuffer must not be updating"),E.appendBuffer(n)},m.blockBuffers=function(n,o){var u=this;if(o===void 0&&(o=this.getSourceBufferTypes()),!o.length){M.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(n);return}var x=this.operationQueue,E=o.map(function(v){return x.appendBlocker(v)});Promise.all(E).then(function(){n(),o.forEach(function(v){var O=u.sourceBuffer[v];(!O||!O.updating)&&x.shiftAndExecuteNext(v)})})},m.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},m.addBufferListener=function(n,o,u){var x=this.sourceBuffer[n];if(!x)return;var E=u.bind(this,n);this.listeners[n].push({event:o,listener:E}),x.addEventListener(o,E)},m.removeBufferListeners=function(n){var o=this.sourceBuffer[n];if(!o)return;this.listeners[n].forEach(function(u){o.removeEventListener(u.event,u.listener)})},f}()},"./src/controller/buffer-operation-queue.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"default",function(){return B});var z=k("./src/utils/logger.ts"),B=function(){function M(U){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=U}var j=M.prototype;return j.append=function(_,R){var c=this.queues[R];c.push(_),c.length===1&&this.buffers[R]&&this.executeNext(R)},j.insertAbort=function(_,R){var c=this.queues[R];c.unshift(_),this.executeNext(R)},j.appendBlocker=function(_){var R,c=new Promise(function(w){R=w}),g={execute:R,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(g,_),c},j.executeNext=function(_){var R=this.buffers,c=this.queues,g=R[_],w=c[_];if(w.length){var y=w[0];try{y.execute()}catch(f){z.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),y.onError(f),(!g||!g.updating)&&(w.shift(),this.executeNext(_))}}},j.shiftAndExecuteNext=function(_){this.queues[_].shift(),this.executeNext(_)},j.current=function(_){return this.queues[_][0]},M}()},"./src/controller/cap-level-controller.ts":function(ee,K,k){"use strict";k.r(K);var z=k("./src/events.ts");function B(U,_){for(var R=0;R<_.length;R++){var c=_[R];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(U,c.key,c)}}function M(U,_,R){return _&&B(U.prototype,_),R&&B(U,R),U}var j=function(){function U(R){this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.hls=void 0,this.streamController=void 0,this.clientRect=void 0,this.hls=R,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}var _=U.prototype;return _.setStreamController=function(c){this.streamController=c},_.destroy=function(){this.unregisterListener(),this.hls.config.capLevelToPlayerSize&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null},_.registerListeners=function(){var c=this.hls;c.on(z.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),c.on(z.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),c.on(z.Events.MANIFEST_PARSED,this.onManifestParsed,this),c.on(z.Events.BUFFER_CODECS,this.onBufferCodecs,this),c.on(z.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},_.unregisterListener=function(){var c=this.hls;c.off(z.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),c.off(z.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),c.off(z.Events.MANIFEST_PARSED,this.onManifestParsed,this),c.off(z.Events.BUFFER_CODECS,this.onBufferCodecs,this),c.off(z.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},_.onFpsDropLevelCapping=function(c,g){U.isLevelAllowed(g.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(g.droppedLevel)},_.onMediaAttaching=function(c,g){this.media=g.media instanceof HTMLVideoElement?g.media:null},_.onManifestParsed=function(c,g){var w=this.hls;this.restrictedLevels=[],this.firstLevel=g.firstLevel,w.config.capLevelToPlayerSize&&g.video&&this.startCapping()},_.onBufferCodecs=function(c,g){var w=this.hls;w.config.capLevelToPlayerSize&&g.video&&this.startCapping()},_.onMediaDetaching=function(){this.stopCapping()},_.detectPlayerSize=function(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){var c=this.hls.levels;if(c.length){var g=this.hls;g.autoLevelCapping=this.getMaxLevel(c.length-1),g.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=g.autoLevelCapping}}},_.getMaxLevel=function(c){var g=this,w=this.hls.levels;if(!w.length)return-1;var y=w.filter(function(f,m){return U.isLevelAllowed(m,g.restrictedLevels)&&m<=c});return this.clientRect=null,U.getMaxLevelByMediaSize(y,this.mediaWidth,this.mediaHeight)},_.startCapping=function(){if(this.timer)return;this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize()},_.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},_.getDimensions=function(){if(this.clientRect)return this.clientRect;var c=this.media,g={width:0,height:0};if(c){var w=c.getBoundingClientRect();g.width=w.width,g.height=w.height,!g.width&&!g.height&&(g.width=w.right-w.left||c.width||0,g.height=w.bottom-w.top||c.height||0)}return this.clientRect=g,g},U.isLevelAllowed=function(c,g){return g===void 0&&(g=[]),g.indexOf(c)===-1},U.getMaxLevelByMediaSize=function(c,g,w){if(!c||!c.length)return-1;for(var y=function(o,u){return u?o.width!==u.width||o.height!==u.height:!0},f=c.length-1,m=0;m=g||a.height>=w)&&y(a,c[m+1])){f=m;break}}return f},M(U,[{key:"mediaWidth",get:function(){return this.getDimensions().width*U.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*U.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var c=1;try{c=self.devicePixelRatio}catch(g){}return c}}]),U}();K.default=j},"./src/controller/cmcd-controller.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"default",function(){return y});var z=k("./src/events.ts"),B=k("./src/types/cmcd.ts"),M=k("./src/utils/buffer-helper.ts"),j=k("./src/utils/logger.ts");function U(f,m){for(var a=0;a=f.length?{done:!0}:{done:!1,value:f[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c(f,m){if(!f)return;if(typeof f=="string")return g(f,m);var a=Object.prototype.toString.call(f).slice(8,-1);if(a==="Object"&&f.constructor&&(a=f.constructor.name),a==="Map"||a==="Set")return Array.from(f);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return g(f,m)}function g(f,m){(m==null||m>f.length)&&(m=f.length);for(var a=0,n=new Array(m);ao&&(o=v.bitrate)}return o>0?o:NaN},m.getBufferLength=function(n){var o=this.hls.media,u=n===B.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!u||!o)return NaN;var x=M.BufferHelper.bufferInfo(u,o.currentTime,this.config.maxBufferHole);return x.len*1e3},m.createPlaylistLoader=function(){var n=this.config.pLoader,o=this.applyPlaylistData,u=n||this.config.loader;return function(){function x(v){this.loader=void 0,this.loader=new u(v)}var E=x.prototype;return E.destroy=function(){this.loader.destroy()},E.abort=function(){this.loader.abort()},E.load=function(O,A,p){o(O),this.loader.load(O,A,p)},_(x,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),x}()},m.createFragmentLoader=function(){var n=this.config.fLoader,o=this.applyFragmentData,u=n||this.config.loader;return function(){function x(v){this.loader=void 0,this.loader=new u(v)}var E=x.prototype;return E.destroy=function(){this.loader.destroy()},E.abort=function(){this.loader.abort()},E.load=function(O,A,p){o(O),this.loader.load(O,A,p)},_(x,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),x}()},f.uuid=function(){var n=URL.createObjectURL(new Blob),o=n.toString();return URL.revokeObjectURL(n),o.substr(o.lastIndexOf("/")+1)},f.serialize=function(n){for(var o=[],u=function(C){return!Number.isNaN(C)&&C!=null&&C!==""&&C!==!1},x=function(C){return Math.round(C)},E=function(C){return x(C/100)*100},v=function(C){return encodeURIComponent(C)},O={br:x,d:x,bl:E,dl:E,mtp:E,nor:v,rtp:E,tb:x},A=Object.keys(n||{}).sort(),p=R(A),h;!(h=p()).done;){var s=h.value,l=n[s];if(!u(l))continue;if(s==="v"&&l===1)continue;if(s=="pr"&&l===1)continue;var D=O[s];D&&(l=D(l));var T=typeof l,S=void 0;s==="ot"||s==="sf"||s==="st"?S=s+"="+l:T==="boolean"?S=s:T==="number"?S=s+"="+l:S=s+"="+JSON.stringify(l),o.push(S)}return o.join(",")},f.toHeaders=function(n){for(var o=Object.keys(n),u={},x=["Object","Request","Session","Status"],E=[{},{},{},{}],v={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},O=0,A=o;OR){this.hls.trigger(z.Events.ERROR,{type:B.ErrorTypes.KEY_SYSTEM_ERROR,details:B.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var v=R-this._requestLicenseFailureCount+1;M.logger.warn("Retrying license request, "+v+" attempts left"),this._requestLicense(o,u)}break}},f._generateLicenseRequestChallenge=function(a,n){switch(a.mediaKeySystemDomain){case j.KeySystems.WIDEVINE:return n}throw new Error("unsupported key-system: "+a.mediaKeySystemDomain)},f._requestLicense=function(a,n){M.logger.log("Requesting content license for key-system");var o=this._mediaKeysList[0];if(!o){M.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(z.Events.ERROR,{type:B.ErrorTypes.KEY_SYSTEM_ERROR,details:B.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var u=this.getLicenseServerUrl(o.mediaKeySystemDomain),x=this._createLicenseXhr(u,a,n);M.logger.log("Sending license request to URL: "+u);var E=this._generateLicenseRequestChallenge(o,a);x.send(E)}catch(v){M.logger.error("Failure requesting DRM license: "+v),this.hls.trigger(z.Events.ERROR,{type:B.ErrorTypes.KEY_SYSTEM_ERROR,details:B.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},f.onMediaAttached=function(a,n){if(!this._emeEnabled)return;var o=n.media;this._media=o,o.addEventListener("encrypted",this._onMediaEncrypted)},f.onMediaDetached=function(){var a=this._media,n=this._mediaKeysList;if(!a)return;a.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(n.map(function(o){if(o.mediaKeysSession)return o.mediaKeysSession.close().catch(function(){})})).then(function(){return a.setMediaKeys(null)}).catch(function(){})},f.onManifestParsed=function(a,n){if(!this._emeEnabled)return;var o=n.levels.map(function(x){return x.audioCodec}).filter(function(x){return!!x}),u=n.levels.map(function(x){return x.videoCodec}).filter(function(x){return!!x});this._attemptKeySystemAccess(j.KeySystems.WIDEVINE,o,u)},_(y,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),y}();K.default=w},"./src/controller/fps-controller.ts":function(ee,K,k){"use strict";k.r(K);var z=k("./src/events.ts"),B=k("./src/utils/logger.ts"),M=function(){function j(_){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=_,this.registerListeners()}var U=j.prototype;return U.setStreamController=function(R){this.streamController=R},U.registerListeners=function(){this.hls.on(z.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},U.unregisterListeners=function(){this.hls.off(z.Events.MEDIA_ATTACHING,this.onMediaAttaching)},U.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},U.onMediaAttaching=function(R,c){var g=this.hls.config;if(g.capLevelOnFPSDrop){var w=c.media instanceof self.HTMLVideoElement?c.media:null;this.media=w,w&&typeof w.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),g.fpsDroppedMonitoringPeriod)}},U.checkFPS=function(R,c,g){var w=performance.now();if(c){if(this.lastTime){var y=w-this.lastTime,f=g-this.lastDroppedFrames,m=c-this.lastDecodedFrames,a=1e3*f/y,n=this.hls;if(n.trigger(z.Events.FPS_DROP,{currentDropped:f,currentDecoded:m,totalDroppedFrames:g}),a>0&&f>n.config.fpsDroppedMonitoringThreshold*m){var o=n.currentLevel;B.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+o),o>0&&(n.autoLevelCapping===-1||n.autoLevelCapping>=o)&&(o=o-1,n.trigger(z.Events.FPS_DROP_LEVEL_CAPPING,{level:o,droppedLevel:n.currentLevel}),n.autoLevelCapping=o,this.streamController.nextLevelSwitch())}}this.lastTime=w,this.lastDroppedFrames=g,this.lastDecodedFrames=c}},U.checkFPSInterval=function(){var R=this.media;if(R)if(this.isVideoPlaybackQualityAvailable){var c=R.getVideoPlaybackQuality();this.checkFPS(R,c.totalVideoFrames,c.droppedVideoFrames)}else this.checkFPS(R,R.webkitDecodedFrameCount,R.webkitDroppedFrameCount)},j}();K.default=M},"./src/controller/fragment-finders.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"findFragmentByPDT",function(){return M}),k.d(K,"findFragmentByPTS",function(){return j}),k.d(K,"fragmentWithinToleranceTest",function(){return U}),k.d(K,"pdtWithinToleranceTest",function(){return _}),k.d(K,"findFragWithCC",function(){return R});var z=k("./src/polyfills/number.ts"),B=k("./src/utils/binary-search.ts");function M(c,g,w){if(g===null||!Array.isArray(c)||!c.length||!Object(z.isFiniteNumber)(g))return null;var y=c[0].programDateTime;if(g<(y||0))return null;var f=c[c.length-1].endProgramDateTime;if(g>=(f||0))return null;w=w||0;for(var m=0;mc&&w.start?-1:0}function _(c,g,w){var y=Math.min(g,w.duration+(w.deltaPTS?w.deltaPTS:0))*1e3,f=w.endProgramDateTime||0;return f-y>c}function R(c,g){return B.default.search(c,function(w){return w.ccg?-1:0})}},"./src/controller/fragment-tracker.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"FragmentState",function(){return M}),k.d(K,"FragmentTracker",function(){return j});var z=k("./src/events.ts"),B=k("./src/types/loader.ts"),M;(function(R){R.NOT_LOADED="NOT_LOADED",R.BACKTRACKED="BACKTRACKED",R.APPENDING="APPENDING",R.PARTIAL="PARTIAL",R.OK="OK"})(M||(M={}));var j=function(){function R(g){this.activeFragment=null,this.activeParts=null,this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hls=g,this._registerListeners()}var c=R.prototype;return c._registerListeners=function(){var w=this.hls;w.on(z.Events.BUFFER_APPENDED,this.onBufferAppended,this),w.on(z.Events.FRAG_BUFFERED,this.onFragBuffered,this),w.on(z.Events.FRAG_LOADED,this.onFragLoaded,this)},c._unregisterListeners=function(){var w=this.hls;w.off(z.Events.BUFFER_APPENDED,this.onBufferAppended,this),w.off(z.Events.FRAG_BUFFERED,this.onFragBuffered,this),w.off(z.Events.FRAG_LOADED,this.onFragLoaded,this)},c.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},c.getAppendedFrag=function(w,y){if(y===B.PlaylistLevelType.MAIN){var f=this.activeFragment,m=this.activeParts;if(!f)return null;if(m)for(var a=m.length;a--;){var n=m[a],o=n?n.end:f.appendedPTS;if(n.start<=w&&o!==void 0&&w<=o)return a>9&&(this.activeParts=m.slice(a-9)),n}else if(f.start<=w&&f.appendedPTS!==void 0&&w<=f.appendedPTS)return f}return this.getBufferedFrag(w,y)},c.getBufferedFrag=function(w,y){for(var f=this.fragments,m=Object.keys(f),a=m.length;a--;){var n=f[m[a]];if((n==null?void 0:n.body.type)===y&&n.buffered){var o=n.body;if(o.start<=w&&w<=o.end)return o}}return null},c.detectEvictedFragments=function(w,y,f){var m=this;Object.keys(this.fragments).forEach(function(a){var n=m.fragments[a];if(!n)return;if(!n.buffered){n.body.type===f&&m.removeFragment(n.body);return}var o=n.range[w];if(!o)return;o.time.some(function(u){var x=!m.isTimeBuffered(u.startPTS,u.endPTS,y);return x&&m.removeFragment(n.body),x})})},c.detectPartialFragments=function(w){var y=this,f=this.timeRanges,m=w.frag,a=w.part;if(!f||m.sn==="initSegment")return;var n=_(m),o=this.fragments[n];if(!o)return;Object.keys(f).forEach(function(u){var x=m.elementaryStreams[u];if(!x)return;var E=f[u],v=a!==null||x.partial===!0;o.range[u]=y.getBufferedTimes(m,a,v,E)}),o.backtrack=o.loaded=null,Object.keys(o.range).length?o.buffered=!0:this.removeFragment(o.body)},c.fragBuffered=function(w){var y=_(w),f=this.fragments[y];f&&(f.backtrack=f.loaded=null,f.buffered=!0)},c.getBufferedTimes=function(w,y,f,m){for(var a={time:[],partial:f},n=y?y.start:w.start,o=y?y.end:w.end,u=w.minEndPTS||o,x=w.maxStartPTS||n,E=0;E=v&&u<=O){a.time.push({startPTS:Math.max(n,m.start(E)),endPTS:Math.min(o,m.end(E))});break}else if(nv)a.partial=!0,a.time.push({startPTS:Math.max(n,m.start(E)),endPTS:Math.min(o,m.end(E))});else if(o<=v)break}return a},c.getPartialFragment=function(w){var y=null,f,m,a,n=0,o=this.bufferPadding,u=this.fragments;return Object.keys(u).forEach(function(x){var E=u[x];if(!E)return;U(E)&&(m=E.body.start-o,a=E.body.end+o,w>=m&&w<=a&&(f=Math.min(w-m,a-w),n<=f&&(y=E.body,n=f)))}),y},c.getState=function(w){var y=_(w),f=this.fragments[y];return f?f.buffered?U(f)?M.PARTIAL:M.OK:f.backtrack?M.BACKTRACKED:M.APPENDING:M.NOT_LOADED},c.backtrack=function(w,y){var f=_(w),m=this.fragments[f];if(!m||m.backtrack)return null;var a=m.backtrack=y||m.loaded;return m.loaded=null,a},c.getBacktrackData=function(w){var y=_(w),f=this.fragments[y];if(f){var m,a=f.backtrack;if(a!=null&&(m=a.payload)!==null&&m!==void 0&&m.byteLength)return a;this.removeFragment(w)}return null},c.isTimeBuffered=function(w,y,f){for(var m,a,n=0;n=m&&y<=a)return!0;if(y<=m)return!1}return!1},c.onFragLoaded=function(w,y){var f=y.frag,m=y.part;if(f.sn==="initSegment"||f.bitrateTest||m)return;var a=_(f);this.fragments[a]={body:f,loaded:y,backtrack:null,buffered:!1,range:Object.create(null)}},c.onBufferAppended=function(w,y){var f=this,m=y.frag,a=y.part,n=y.timeRanges;if(m.type===B.PlaylistLevelType.MAIN)if(this.activeFragment=m,a){var o=this.activeParts;o||(this.activeParts=o=[]),o.push(a)}else this.activeParts=null;this.timeRanges=n,Object.keys(n).forEach(function(u){var x=n[u];if(f.detectEvictedFragments(u,x),!a)for(var E=0;Ew&&m.removeFragment(o)}})},c.removeFragment=function(w){var y=_(w);w.stats.loaded=0,w.clearElementaryStreamInfo(),delete this.fragments[y]},c.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},R}();function U(R){var c,g;return R.buffered&&(((c=R.range.video)===null||c===void 0?void 0:c.partial)||((g=R.range.audio)===null||g===void 0?void 0:g.partial))}function _(R){return R.type+"_"+R.level+"_"+R.urlId+"_"+R.sn}},"./src/controller/gap-controller.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"STALL_MINIMUM_DURATION_MS",function(){return U}),k.d(K,"MAX_START_GAP_JUMP",function(){return _}),k.d(K,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return R}),k.d(K,"SKIP_BUFFER_RANGE_START",function(){return c}),k.d(K,"default",function(){return g});var z=k("./src/utils/buffer-helper.ts"),B=k("./src/errors.ts"),M=k("./src/events.ts"),j=k("./src/utils/logger.ts"),U=250,_=2,R=.1,c=.05,g=function(){function w(f,m,a,n){this.config=void 0,this.media=void 0,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=f,this.media=m,this.fragmentTracker=a,this.hls=n}var y=w.prototype;return y.destroy=function(){this.hls=this.fragmentTracker=this.media=null},y.poll=function(m){var a=this.config,n=this.media,o=this.stalled,u=n.currentTime,x=n.seeking,E=this.seeking&&!x,v=!this.seeking&&x;if(this.seeking=x,u!==m){if(this.moved=!0,o!==null){if(this.stallReported){var O=self.performance.now()-o;j.logger.warn("playback not stuck anymore @"+u+", after "+Math.round(O)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((v||E)&&(this.stalled=null),n.paused||n.ended||n.playbackRate===0||!z.BufferHelper.getBuffered(n).length)return;var A=z.BufferHelper.bufferInfo(n,u,0),p=A.len>0,h=A.nextStart||0;if(!p&&!h)return;if(x){var s=A.len>_,l=!h||h-u>_&&!this.fragmentTracker.getPartialFragment(u);if(s||l)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var D,T=Math.max(h,A.start||0)-u,S=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,I=S==null||((D=S.details)===null||D===void 0)?void 0:D.live,C=I?S.details.targetduration*2:_;if(T>0&&T<=C){this._trySkipBufferHole(null);return}}var W=self.performance.now();if(o===null){this.stalled=W;return}var Y=W-o;!x&&Y>=U&&this._reportStall(A.len);var H=z.BufferHelper.bufferInfo(n,u,a.maxBufferHole);this._tryFixBufferStall(H,Y)},y._tryFixBufferStall=function(m,a){var n=this.config,o=this.fragmentTracker,u=this.media,x=u.currentTime,E=o.getPartialFragment(x);if(E){var v=this._trySkipBufferHole(E);if(v)return}m.len>n.maxBufferHole&&a>n.highBufferWatchdogPeriod*1e3&&(j.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},y._reportStall=function(m){var a=this.hls,n=this.media,o=this.stallReported;o||(this.stallReported=!0,j.logger.warn("Playback stalling at @"+n.currentTime+" due to low buffer (buffer="+m+")"),a.trigger(M.Events.ERROR,{type:B.ErrorTypes.MEDIA_ERROR,details:B.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:m}))},y._trySkipBufferHole=function(m){for(var a=this.config,n=this.hls,o=this.media,u=o.currentTime,x=0,E=z.BufferHelper.getBuffered(o),v=0;v=x&&u.05&&this.forwardBufferLength>1){var v=Math.min(2,Math.max(1,n)),O=Math.round(2/(1+Math.exp(-.75*u-this.edgeStalled))*20)/20;w.playbackRate=Math.min(v,Math.max(1,O))}else w.playbackRate!==1&&w.playbackRate!==0&&(w.playbackRate=1)},c.estimateLiveEdge=function(){var w=this.levelDetails;return w===null?null:w.edge+w.age},c.computeLatency=function(){var w=this.estimateLiveEdge();return w===null?null:w-this.currentTime},U(R,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var w=this.config,y=this.levelDetails;return w.liveMaxLatencyDuration!==void 0?w.liveMaxLatencyDuration:y?w.liveMaxLatencyDurationCount*y.targetduration:0}},{key:"targetLatency",get:function(){var w=this.levelDetails;if(w===null)return null;var y=w.holdBack,f=w.partHoldBack,m=w.targetduration,a=this.config,n=a.liveSyncDuration,o=a.liveSyncDurationCount,u=a.lowLatencyMode,x=this.hls.userConfig,E=u&&f||y;(x.liveSyncDuration||x.liveSyncDurationCount||E===0)&&(E=n!==void 0?n:o*m);var v=m,O=1;return E+Math.min(this.stallCount*O,v)}},{key:"liveSyncPosition",get:function(){var w=this.estimateLiveEdge(),y=this.targetLatency,f=this.levelDetails;if(w===null||y===null||f===null)return null;var m=f.edge,a=w-y-this.edgeStalled,n=m-f.totalduration,o=m-(this.config.lowLatencyMode&&f.partTarget||f.targetduration);return Math.min(Math.max(n,a),o)}},{key:"drift",get:function(){var w=this.levelDetails;return w===null?1:w.drift}},{key:"edgeStalled",get:function(){var w=this.levelDetails;if(w===null)return 0;var y=(this.config.lowLatencyMode&&w.partTarget||w.targetduration)*3;return Math.max(w.age-y,0)}},{key:"forwardBufferLength",get:function(){var w=this.media,y=this.levelDetails;if(!w||!y)return 0;var f=w.buffered.length;return f?w.buffered.end(f-1):y.edge-this.currentTime}}]),R}()},"./src/controller/level-controller.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"default",function(){return a});var z=k("./src/types/level.ts"),B=k("./src/events.ts"),M=k("./src/errors.ts"),j=k("./src/utils/codecs.ts"),U=k("./src/controller/level-helper.ts"),_=k("./src/controller/base-playlist-controller.ts"),R=k("./src/types/loader.ts");function c(){return c=Object.assign||function(n){for(var o=1;o0){h=O[0].bitrate,O.sort(function(Y,H){return Y.bitrate-H.bitrate}),this._levels=O;for(var I=0;Ithis.hls.config.fragLoadingMaxRetry&&(s=v.frag.level)):s=v.frag.level}break;case M.ErrorDetails.LEVEL_LOAD_ERROR:case M.ErrorDetails.LEVEL_LOAD_TIMEOUT:O&&(O.deliveryDirectives&&(h=!1),s=O.level),p=!0;break;case M.ErrorDetails.REMUX_ALLOC_ERROR:s=v.level,p=!0;break}s!==void 0&&this.recoverLevel(v,s,p,h)},u.recoverLevel=function(E,v,O,A){var p=E.details,h=this._levels[v];if(h.loadError++,O){var s=this.retryLoadingOrFail(E);if(s)E.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(A){var l=h.url.length;if(l>1&&h.loadError1){var A=(v.urlId+1)%O;this.warn("Switching to redundant URL-id "+A),this._levels.forEach(function(p){p.urlId=A}),this.level=E}},u.onFragLoaded=function(E,v){var O=v.frag;if(O!==void 0&&O.type===R.PlaylistLevelType.MAIN){var A=this._levels[O.level];A!==void 0&&(A.fragmentError=0,A.loadError=0)}},u.onLevelLoaded=function(E,v){var O,A=v.level,p=v.details,h=this._levels[A];if(!h){var s;this.warn("Invalid level index "+A),(s=v.deliveryDirectives)!==null&&s!==void 0&&s.skip&&(p.deltaUpdateFailed=!0);return}A===this.currentLevelIndex?(h.fragmentError===0&&(h.loadError=0,this.retryCount=0),this.playlistLoaded(A,v,h.details)):(O=v.deliveryDirectives)!==null&&O!==void 0&&O.skip&&(p.deltaUpdateFailed=!0)},u.onAudioTrackSwitched=function(E,v){var O=this.hls.levels[this.currentLevelIndex];if(!O)return;if(O.audioGroupIds){for(var A=-1,p=this.hls.audioTracks[v.id].groupId,h=0;h0){var A=O.urlId,p=O.url[A];if(E)try{p=E.addDirectives(p)}catch(h){this.warn("Could not construct new URL with HLS Delivery Directives: "+h)}this.log("Attempt loading level index "+v+(E?" at sn "+E.msn+" part "+E.part:"")+" with URL-id "+A+" "+p),this.clearTimer(),this.hls.trigger(B.Events.LEVEL_LOADING,{url:p,level:v,id:A,deliveryDirectives:E||null})}},u.removeLevel=function(E,v){var O=function(h,s){return s!==v},A=this._levels.filter(function(p,h){return h!==E?!0:p.url.length>1&&v!==void 0?(p.url=p.url.filter(O),p.audioGroupIds&&(p.audioGroupIds=p.audioGroupIds.filter(O)),p.textGroupIds&&(p.textGroupIds=p.textGroupIds.filter(O)),p.urlId=0,!0):!1}).map(function(p,h){var s=p.details;return s!=null&&s.fragments&&s.fragments.forEach(function(l){l.level=h}),p});this._levels=A,this.hls.trigger(B.Events.LEVELS_UPDATED,{levels:A})},w(o,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(E){var v,O=this._levels;if(O.length===0)return;if(this.currentLevelIndex===E&&(v=O[E])!==null&&v!==void 0&&v.details)return;if(E<0||E>=O.length){var A=E<0;if(this.hls.trigger(B.Events.ERROR,{type:M.ErrorTypes.OTHER_ERROR,details:M.ErrorDetails.LEVEL_SWITCH_ERROR,level:E,fatal:A,reason:"invalid level idx"}),A)return;E=Math.min(E,O.length-1)}this.clearTimer();var p=this.currentLevelIndex,h=O[p],s=O[E];this.log("switching to level "+E+" from "+p),this.currentLevelIndex=E;var l=c({},s,{level:E,maxBitrate:s.maxBitrate,uri:s.uri,urlId:s.urlId});delete l._urlId,this.hls.trigger(B.Events.LEVEL_SWITCHING,l);var D=s.details;if(!D||D.live){var T=this.switchParams(s.uri,h==null?void 0:h.details);this.loadPlaylist(T)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(E){this.manualLevelIndex=E,this._startLevel===void 0&&(this._startLevel=E),E!==-1&&(this.level=E)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(E){this._firstLevel=E}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var E=this.hls.config.startLevel;return E!==void 0?E:this._firstLevel}else return this._startLevel},set:function(E){this._startLevel=E}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(E){this.level=E,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=E)}}]),o}(_.default)},"./src/controller/level-helper.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"addGroupId",function(){return M}),k.d(K,"assignTrackIdsByGroup",function(){return j}),k.d(K,"updatePTS",function(){return U}),k.d(K,"updateFragPTSDTS",function(){return R}),k.d(K,"mergeDetails",function(){return c}),k.d(K,"mapPartIntersection",function(){return g}),k.d(K,"mapFragmentIntersection",function(){return w}),k.d(K,"adjustSliding",function(){return y}),k.d(K,"addSliding",function(){return f}),k.d(K,"computeReloadInterval",function(){return m}),k.d(K,"getFragmentWithSN",function(){return a}),k.d(K,"getPartWith",function(){return n});var z=k("./src/polyfills/number.ts"),B=k("./src/utils/logger.ts");function M(o,u,x){switch(u){case"audio":o.audioGroupIds||(o.audioGroupIds=[]),o.audioGroupIds.push(x);break;case"text":o.textGroupIds||(o.textGroupIds=[]),o.textGroupIds.push(x);break}}function j(o){var u={};o.forEach(function(x){var E=x.groupId||"";x.id=u[E]=u[E]||0,u[E]++})}function U(o,u,x){var E=o[u],v=o[x];_(E,v)}function _(o,u){var x=u.startPTS;if(Object(z.isFiniteNumber)(x)){var E=0,v;u.sn>o.sn?(E=x-o.start,v=o):(E=o.start-x,v=u),v.duration!==E&&(v.duration=E)}else if(u.sn>o.sn){var O=o.cc===u.cc;O&&o.minEndPTS?u.start=o.start+(o.minEndPTS-o.start):u.start=o.start+o.duration}else u.start=Math.max(o.start-u.duration,0)}function R(o,u,x,E,v,O){var A=E-x;A<=0&&(B.logger.warn("Fragment should have a positive duration",u),E=x+u.duration,O=v+u.duration);var p=x,h=E,s=u.startPTS,l=u.endPTS;if(Object(z.isFiniteNumber)(s)){var D=Math.abs(s-x);Object(z.isFiniteNumber)(u.deltaPTS)?u.deltaPTS=Math.max(D,u.deltaPTS):u.deltaPTS=D,p=Math.max(x,s),x=Math.min(x,s),v=Math.min(v,u.startDTS),h=Math.min(E,l),E=Math.max(E,l),O=Math.max(O,u.endDTS)}u.duration=E-x;var T=x-u.start;u.appendedPTS=E,u.start=u.startPTS=x,u.maxStartPTS=p,u.startDTS=v,u.endPTS=E,u.minEndPTS=h,u.endDTS=O;var S=u.sn;if(!o||So.endSN)return 0;var I,C=S-o.startSN,W=o.fragments;for(W[C]=u,I=C;I>0;I--)_(W[I],W[I-1]);for(I=C;I=0;v--){var O=E[v].initSegment;if(O){x=O;break}}o.fragmentHint&&delete o.fragmentHint.endPTS;var A=0,p;if(w(o,u,function(I,C){I.relurl&&(A=I.cc-C.cc),Object(z.isFiniteNumber)(I.startPTS)&&Object(z.isFiniteNumber)(I.endPTS)&&(C.start=C.startPTS=I.startPTS,C.startDTS=I.startDTS,C.appendedPTS=I.appendedPTS,C.maxStartPTS=I.maxStartPTS,C.endPTS=I.endPTS,C.endDTS=I.endDTS,C.minEndPTS=I.minEndPTS,C.duration=I.endPTS-I.startPTS,C.duration&&(p=C),u.PTSKnown=u.alignedSliding=!0),C.elementaryStreams=I.elementaryStreams,C.loader=I.loader,C.stats=I.stats,C.urlId=I.urlId,I.initSegment&&(C.initSegment=I.initSegment,x=I.initSegment)}),x){var h=u.fragmentHint?u.fragments.concat(u.fragmentHint):u.fragments;h.forEach(function(I){var C;(!I.initSegment||I.initSegment.relurl===((C=x)===null||C===void 0?void 0:C.relurl))&&(I.initSegment=x)})}if(u.skippedSegments&&(u.deltaUpdateFailed=u.fragments.some(function(I){return!I}),u.deltaUpdateFailed)){B.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var s=u.skippedSegments;s--;)u.fragments.shift();u.startSN=u.fragments[0].sn,u.startCC=u.fragments[0].cc}var l=u.fragments;if(A){B.logger.warn("discontinuity sliding from playlist, take drift into account");for(var D=0;D=E.length)return;f(u,E[x].start)}function f(o,u){if(u){for(var x=o.fragments,E=o.skippedSegments;E0&&v0&&h===-1&&(this.log("Override startPosition with lastCurrentTime @"+s.toFixed(3)),h=s),this.state=B.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=h,this.tick()}else this._forceStartLoad=!0,this.state=B.State.STOPPED},A.stopLoad=function(){this._forceStartLoad=!1,v.prototype.stopLoad.call(this)},A.doTick=function(){switch(this.state){case B.State.IDLE:this.doTickIdle();break;case B.State.WAITING_LEVEL:{var h,s=this.levels,l=this.level,D=s==null||((h=s[l])===null||h===void 0)?void 0:h.details;if(D&&(!D.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(D))break;this.state=B.State.IDLE;break}break}case B.State.FRAG_LOADING_WAITING_RETRY:{var T,S=self.performance.now(),I=this.retryDate;(!I||S>=I||(T=this.media)!==null&&T!==void 0&&T.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=B.State.IDLE)}break;default:break}this.onTickEnd()},A.onTickEnd=function(){v.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},A.doTickIdle=function(){var h,s,l=this.hls,D=this.levelLastLoaded,T=this.levels,S=this.media,I=l.config,C=l.nextLoadLevel;if(D===null||!S&&(this.startFragRequested||!I.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!T||!T[C])return;var W=T[C];this.level=l.nextLoadLevel=C;var Y=W.details;if(!Y||this.state===B.State.WAITING_LEVEL||Y.live&&this.levelLastLoaded!==C){this.state=B.State.WAITING_LEVEL;return}var H=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:S,R.PlaylistLevelType.MAIN);if(H===null)return;var F=H.len,q=this.getMaxBufferLength(W.maxBitrate);if(F>=q)return;if(this._streamEnded(H,Y)){var le={};this.altAudio&&(le.type="video"),this.hls.trigger(j.Events.BUFFER_EOS,le),this.state=B.State.ENDED;return}var pe=H.end,Ae=this.getNextFragment(pe,Y);if(this.couldBacktrack&&!this.fragPrevious&&Ae&&Ae.sn!=="initSegment"){var Ge=Ae.sn-Y.startSN;Ge>1&&(Ae=Y.fragments[Ge-1],this.fragmentTracker.removeFragment(Ae))}if(Ae&&this.fragmentTracker.getState(Ae)===_.FragmentState.OK&&this.nextLoadPosition>pe){var Fe=this.audioOnly&&!this.altAudio?c.ElementaryStreamTypes.AUDIO:c.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(S,Fe,R.PlaylistLevelType.MAIN),Ae=this.getNextFragment(this.nextLoadPosition,Y)}if(!Ae)return;Ae.initSegment&&!Ae.initSegment.data&&!this.bitrateTest&&(Ae=Ae.initSegment),((h=Ae.decryptdata)===null||h===void 0?void 0:h.keyFormat)==="identity"&&!((s=Ae.decryptdata)!==null&&s!==void 0&&s.key)?this.loadKey(Ae,Y):this.loadFragment(Ae,Y,pe)},A.loadFragment=function(h,s,l){var D,T=this.fragmentTracker.getState(h);if(this.fragCurrent=h,T===_.FragmentState.BACKTRACKED){var S=this.fragmentTracker.getBacktrackData(h);if(S){this._handleFragmentLoadProgress(S),this._handleFragmentLoadComplete(S);return}else T=_.FragmentState.NOT_LOADED}T===_.FragmentState.NOT_LOADED||T===_.FragmentState.PARTIAL?h.sn==="initSegment"?this._loadInitSegment(h):this.bitrateTest?(h.bitrateTest=!0,this.log("Fragment "+h.sn+" of level "+h.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(h)):(this.startFragRequested=!0,v.prototype.loadFragment.call(this,h,s,l)):T===_.FragmentState.APPENDING?this.reduceMaxBufferLength(h.duration)&&this.fragmentTracker.removeFragment(h):((D=this.media)===null||D===void 0?void 0:D.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},A.getAppendedFrag=function(h){var s=this.fragmentTracker.getAppendedFrag(h,R.PlaylistLevelType.MAIN);return s&&"fragment"in s?s.fragment:s},A.getBufferedFrag=function(h){return this.fragmentTracker.getBufferedFrag(h,R.PlaylistLevelType.MAIN)},A.followingBufferedFrag=function(h){return h?this.getBufferedFrag(h.end+.5):null},A.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},A.nextLevelSwitch=function(){var h=this.levels,s=this.media;if(s!=null&&s.readyState){var l,D=this.getAppendedFrag(s.currentTime);if(D&&D.start>1&&this.flushMainBuffer(0,D.start-1),!s.paused&&h){var T=this.hls.nextLoadLevel,S=h[T],I=this.fragLastKbps;I&&this.fragCurrent?l=this.fragCurrent.duration*S.maxBitrate/(1e3*I)+1:l=0}else l=0;var C=this.getBufferedFrag(s.currentTime+l);if(C){var W=this.followingBufferedFrag(C);if(W){this.abortCurrentFrag();var Y=W.maxStartPTS?W.maxStartPTS:W.start,H=W.duration,F=Math.max(C.end,Y+Math.min(Math.max(H-this.config.maxFragLookUpTolerance,H*.5),H*.75));this.flushMainBuffer(F,Number.POSITIVE_INFINITY)}}}},A.abortCurrentFrag=function(){var h=this.fragCurrent;this.fragCurrent=null,h!=null&&h.loader&&h.loader.abort(),this.state===B.State.KEY_LOADING&&(this.state=B.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},A.flushMainBuffer=function(h,s){v.prototype.flushMainBuffer.call(this,h,s,this.altAudio?"video":null)},A.onMediaAttached=function(h,s){v.prototype.onMediaAttached.call(this,h,s);var l=s.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),l.addEventListener("playing",this.onvplaying),l.addEventListener("seeked",this.onvseeked),this.gapController=new y.default(this.config,l,this.fragmentTracker,this.hls)},A.onMediaDetaching=function(){var h=this.media;h&&(h.removeEventListener("playing",this.onvplaying),h.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),v.prototype.onMediaDetaching.call(this)},A.onMediaPlaying=function(){this.tick()},A.onMediaSeeked=function(){var h=this.media,s=h?h.currentTime:null;Object(z.isFiniteNumber)(s)&&this.log("Media seeked to "+s.toFixed(3)),this.tick()},A.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(j.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},A.onManifestParsed=function(h,s){var l=!1,D=!1,T;s.levels.forEach(function(S){T=S.audioCodec,T&&(T.indexOf("mp4a.40.2")!==-1&&(l=!0),T.indexOf("mp4a.40.5")!==-1&&(D=!0))}),this.audioCodecSwitch=l&&D&&!Object(M.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=s.levels,this.startFragRequested=!1},A.onLevelLoading=function(h,s){var l=this.levels;if(!l||this.state!==B.State.IDLE)return;var D=l[s.level];(!D.details||D.details.live&&this.levelLastLoaded!==s.level||this.waitForCdnTuneIn(D.details))&&(this.state=B.State.WAITING_LEVEL)},A.onLevelLoaded=function(h,s){var l,D=this.levels,T=s.level,S=s.details,I=S.totalduration;if(!D){this.warn("Levels were reset while loading level "+T);return}this.log("Level "+T+" loaded ["+S.startSN+","+S.endSN+"], cc ["+S.startCC+", "+S.endCC+"] duration:"+I);var C=this.fragCurrent;C&&(this.state===B.State.FRAG_LOADING||this.state===B.State.FRAG_LOADING_WAITING_RETRY)&&(C.level!==s.level&&C.loader&&(this.state=B.State.IDLE,C.loader.abort()));var W=D[T],Y=0;if(S.live||(l=W.details)!==null&&l!==void 0&&l.live){if(S.fragments[0]||(S.deltaUpdateFailed=!0),S.deltaUpdateFailed)return;Y=this.alignPlaylists(S,W.details)}if(W.details=S,this.levelLastLoaded=T,this.hls.trigger(j.Events.LEVEL_UPDATED,{details:S,level:T}),this.state===B.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(S))return;this.state=B.State.IDLE}this.startFragRequested?S.live&&this.synchronizeToLiveEdge(S):this.setStartPosition(S,Y),this.tick()},A._handleFragmentLoadProgress=function(h){var s,l=h.frag,D=h.part,T=h.payload,S=this.levels;if(!S){this.warn("Levels were reset while fragment load was in progress. Fragment "+l.sn+" of level "+l.level+" will not be buffered");return}var I=S[l.level],C=I.details;if(!C){this.warn("Dropping fragment "+l.sn+" of level "+l.level+" after level details were reset");return}var W=I.videoCodec,Y=C.PTSKnown||!C.live,H=(s=l.initSegment)===null||s===void 0?void 0:s.data,F=this._getAudioCodec(I),q=this.transmuxer=this.transmuxer||new g.default(this.hls,R.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),le=D?D.index:-1,pe=le!==-1,Ae=new w.ChunkMetadata(l.level,l.sn,l.stats.chunkCount,T.byteLength,le,pe),Ge=this.initPTS[l.cc];q.push(T,H,F,W,l,D,C.totalduration,Y,Ae,Ge)},A.onAudioTrackSwitching=function(h,s){var l=this.altAudio,D=!!s.url,T=s.id;if(!D){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var S=this.fragCurrent;S!=null&&S.loader&&(this.log("Switching to main audio track, cancel main fragment load"),S.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var I=this.hls;l&&I.trigger(j.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),I.trigger(j.Events.AUDIO_TRACK_SWITCHED,{id:T})}},A.onAudioTrackSwitched=function(h,s){var l=s.id,D=!!this.hls.audioTracks[l].url;if(D){var T=this.videoBuffer;T&&this.mediaBuffer!==T&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=T)}this.altAudio=D,this.tick()},A.onBufferCreated=function(h,s){var l=s.tracks,D,T,S=!1;for(var I in l){var C=l[I];if(C.id==="main"){if(T=I,D=C,I==="video"){var W=l[I];W&&(this.videoBuffer=W.buffer)}}else S=!0}S&&D?(this.log("Alternate track found, use "+T+".buffered to schedule main fragment loading"),this.mediaBuffer=D.buffer):this.mediaBuffer=this.media},A.onFragBuffered=function(h,s){var l=s.frag,D=s.part;if(l&&l.type!==R.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(l)){this.warn("Fragment "+l.sn+(D?" p: "+D.index:"")+" of level "+l.level+" finished buffering, but was aborted. state: "+this.state),this.state===B.State.PARSED&&(this.state=B.State.IDLE);return}var T=D?D.stats:l.stats;this.fragLastKbps=Math.round(8*T.total/(T.buffering.end-T.loading.first)),l.sn!=="initSegment"&&(this.fragPrevious=l),this.fragBufferedComplete(l,D)},A.onError=function(h,s){switch(s.details){case f.ErrorDetails.FRAG_LOAD_ERROR:case f.ErrorDetails.FRAG_LOAD_TIMEOUT:case f.ErrorDetails.KEY_LOAD_ERROR:case f.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(R.PlaylistLevelType.MAIN,s);break;case f.ErrorDetails.LEVEL_LOAD_ERROR:case f.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==B.State.ERROR&&(s.fatal?(this.warn(""+s.details),this.state=B.State.ERROR):!s.levelRetry&&this.state===B.State.WAITING_LEVEL&&(this.state=B.State.IDLE));break;case f.ErrorDetails.BUFFER_FULL_ERROR:if(s.parent==="main"&&(this.state===B.State.PARSING||this.state===B.State.PARSED)){var l=!0,D=this.getFwdBufferInfo(this.media,R.PlaylistLevelType.MAIN);D&&D.len>.5&&(l=!this.reduceMaxBufferLength(D.len)),l&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},A.checkBuffer=function(){var h=this.media,s=this.gapController;if(!h||!s||!h.readyState)return;var l=U.BufferHelper.getBuffered(h);!this.loadedmetadata&&l.length?(this.loadedmetadata=!0,this.seekToStartPos()):s.poll(this.lastCurrentTime),this.lastCurrentTime=h.currentTime},A.onFragLoadEmergencyAborted=function(){this.state=B.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},A.onBufferFlushed=function(h,s){var l=s.type;if(l!==c.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var D=(l===c.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(D,l,R.PlaylistLevelType.MAIN)}},A.onLevelsUpdated=function(h,s){this.levels=s.levels},A.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},A.seekToStartPos=function(){var h=this.media,s=h.currentTime,l=this.startPosition;if(l>=0&&s0&&(S1&&h.seeking===!1){var l=h.currentTime;if(U.BufferHelper.isBuffered(h,l)?s=this.getAppendedFrag(l):U.BufferHelper.isBuffered(h,l+.1)&&(s=this.getAppendedFrag(l+.1)),s){var D=this.fragPlaying,T=s.level;(!D||s.sn!==D.sn||D.level!==T||s.urlId!==D.urlId)&&(this.hls.trigger(j.Events.FRAG_CHANGED,{frag:s}),(!D||D.level!==T)&&this.hls.trigger(j.Events.LEVEL_SWITCHED,{level:T}),this.fragPlaying=s)}}},n(O,[{key:"nextLevel",get:function(){var h=this.nextBufferedFrag;return h?h.level:-1}},{key:"currentLevel",get:function(){var h=this.media;if(h){var s=this.getAppendedFrag(h.currentTime);if(s)return s.level}return-1}},{key:"nextBufferedFrag",get:function(){var h=this.media;if(h){var s=this.getAppendedFrag(h.currentTime);return this.followingBufferedFrag(s)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),O}(B.default)},"./src/controller/subtitle-stream-controller.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"SubtitleStreamController",function(){return o});var z=k("./src/events.ts"),B=k("./src/utils/logger.ts"),M=k("./src/utils/buffer-helper.ts"),j=k("./src/controller/fragment-finders.ts"),U=k("./src/utils/discontinuities.ts"),_=k("./src/controller/level-helper.ts"),R=k("./src/controller/fragment-tracker.ts"),c=k("./src/controller/base-stream-controller.ts"),g=k("./src/types/loader.ts"),w=k("./src/types/level.ts");function y(u,x){for(var E=0;E=s[T].start&&D<=s[T].end){l=s[T];break}var S=p.start+p.duration;l?l.end=S:(l={start:D,end:S},s.push(l)),this.fragmentTracker.fragBuffered(p)},E.onBufferFlushing=function(O,A){var p=A.startOffset,h=A.endOffset;if(p===0&&h!==Number.POSITIVE_INFINITY){var s=this.currentTrackId,l=this.levels;if(!l.length||!l[s]||!l[s].details)return;var D=l[s].details,T=D.targetduration,S=h-T;if(S<=0)return;A.endOffsetSubtitles=Math.max(0,S),this.tracksBuffered.forEach(function(I){for(var C=0;C=D.length||s!==l||!T)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,h.live||(p=T.details)!==null&&p!==void 0&&p.live){var S=this.mainDetails;if(h.deltaUpdateFailed||!S)return;var I=S.fragments[0];if(!T.details)h.hasProgramDateTime&&S.hasProgramDateTime?Object(U.alignMediaPlaylistByPDT)(h,S):I&&Object(_.addSliding)(h,I.start);else{var C=this.alignPlaylists(h,T.details);C===0&&I&&Object(_.addSliding)(h,I.start)}}if(T.details=h,this.levelLastLoaded=s,this.tick(),h.live&&!this.fragCurrent&&this.media&&this.state===c.State.IDLE){var W=Object(j.findFragmentByPTS)(null,h.fragments,this.media.currentTime,0);W||(this.warn("Subtitle playlist not aligned with playback"),T.details=void 0)}},E._handleFragmentLoadComplete=function(O){var A=O.frag,p=O.payload,h=A.decryptdata,s=this.hls;if(this.fragContextChanged(A))return;if(p&&p.byteLength>0&&h&&h.key&&h.iv&&h.method==="AES-128"){var l=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(p),h.key.buffer,h.iv.buffer).then(function(D){var T=performance.now();s.trigger(z.Events.FRAG_DECRYPTED,{frag:A,payload:D,stats:{tstart:l,tdecrypt:T}})})}},E.doTick=function(){if(!this.media){this.state=c.State.IDLE;return}if(this.state===c.State.IDLE){var O,A=this.currentTrackId,p=this.levels;if(!p.length||!p[A]||!p[A].details)return;var h=p[A].details,s=h.targetduration,l=this.config,D=this.media,T=M.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,D.currentTime-s,l.maxBufferHole),S=T.end,I=T.len,C=this.getMaxBufferLength()+s;if(I>C)return;console.assert(h,"Subtitle track details are defined on idle subtitle stream controller tick");var W=h.fragments,Y=W.length,H=h.edge,F,q=this.fragPrevious;if(S-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange)},m.pollTrackChange=function(n){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,n)},m.onMediaDetaching=function(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId);var n=w(this.media.textTracks);n.forEach(function(o){Object(B.clearCurrentCues)(o)}),this.subtitleTrack=-1,this.media=null},m.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},m.onManifestParsed=function(n,o){this.tracks=o.subtitleTracks},m.onSubtitleTrackLoaded=function(n,o){var u=o.id,x=o.details,E=this.trackId,v=this.tracksInGroup[E];if(!v){this.warn("Invalid subtitle track id "+u);return}var O=v.details;v.details=o.details,this.log("subtitle track "+u+" loaded ["+x.startSN+"-"+x.endSN+"]"),u===this.trackId&&(this.retryCount=0,this.playlistLoaded(u,o,O))},m.onLevelLoading=function(n,o){this.switchLevel(o.level)},m.onLevelSwitching=function(n,o){this.switchLevel(o.level)},m.switchLevel=function(n){var o=this.hls.levels[n];if(!(o!=null&&o.textGroupIds))return;var u=o.textGroupIds[o.urlId];if(this.groupId!==u){var x=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,E=this.tracks.filter(function(A){return!u||A.groupId===u});this.tracksInGroup=E;var v=this.findTrackId(x==null?void 0:x.name)||this.findTrackId();this.groupId=u;var O={subtitleTracks:E};this.log("Updating subtitle tracks, "+E.length+' track(s) found in "'+u+'" group-id'),this.hls.trigger(z.Events.SUBTITLE_TRACKS_UPDATED,O),v!==-1&&this.setSubtitleTrack(v,x)}},m.findTrackId=function(n){for(var o=this.tracksInGroup,u=0;u=x.length)return;this.clearTimer();var E=x[n];if(this.log("Switching to subtitle track "+n),this.trackId=n,E){var v=E.id,O=E.groupId,A=O===void 0?"":O,p=E.name,h=E.type,s=E.url;this.hls.trigger(z.Events.SUBTITLE_TRACK_SWITCH,{id:v,groupId:A,name:p,type:h,url:s});var l=this.switchParams(E.url,o==null?void 0:o.details);this.loadPlaylist(l)}else this.hls.trigger(z.Events.SUBTITLE_TRACK_SWITCH,{id:n})},m.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var n=-1,o=w(this.media.textTracks),u=0;u=0&&(h[0]=Math.min(h[0],x),h[1]=Math.max(h[1],E),A=!0,s/(E-x)>.5))return}if(A||O.push([x,E]),this.config.renderTextTracksNatively){var l=this.captionsTracks[u];this.Cues.newCue(l,x,E,v)}else{var D=this.Cues.newCue(null,x,E,v);this.hls.trigger(B.Events.CUES_PARSED,{type:"captions",cues:D,track:u})}},n.onInitPtsFound=function(u,x){var E=this,v=x.frag,O=x.id,A=x.initPTS,p=x.timescale,h=this.unparsedVttFrags;O==="main"&&(this.initPTS[v.cc]=A,this.timescale[v.cc]=p),h.length&&(this.unparsedVttFrags=[],h.forEach(function(s){E.onFragLoaded(B.Events.FRAG_LOADED,s)}))},n.getExistingTrack=function(u){var x=this.media;if(x)for(var E=0;E>>8^p&255^99,R[v]=p,c[p]=v;var h=E[v],s=E[h],l=E[s],D=E[p]*257^p*16843008;w[v]=D<<24|D>>>8,y[v]=D<<16|D>>>16,f[v]=D<<8|D>>>24,m[v]=D,D=l*16843009^s*65537^h*257^v*16843008,n[p]=D<<24|D>>>8,o[p]=D<<16|D>>>16,u[p]=D<<8|D>>>24,x[p]=D,v?(v=h^E[E[E[l^h]]],O^=E[E[O]]):v=O=1}},U.expandKey=function(R){for(var c=this.uint8ArrayToUint32Array_(R),g=!0,w=0;w>>6)+1;var D=(u[x+2]&60)>>>2;if(D>l.length-1){o.trigger(M.Events.ERROR,{type:B.ErrorTypes.MEDIA_ERROR,details:B.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+D});return}return A=(u[x+2]&1)<<2,A|=(u[x+3]&192)>>>6,z.logger.log("manifest codec:"+E+", ADTS type:"+v+", samplingIndex:"+D),/firefox/i.test(h)?D>=6?(v=5,p=new Array(4),O=D-3):(v=2,p=new Array(2),O=D):h.indexOf("android")!==-1?(v=2,p=new Array(2),O=D):(v=5,p=new Array(4),E&&(E.indexOf("mp4a.40.29")!==-1||E.indexOf("mp4a.40.5")!==-1)||!E&&D>=6?O=D-3:((E&&E.indexOf("mp4a.40.2")!==-1&&(D>=6&&A===1||/vivaldi/i.test(h))||!E&&A===1)&&(v=2,p=new Array(2)),O=D)),p[0]=v<<3,p[0]|=(D&14)>>1,p[1]|=(D&1)<<7,p[1]|=A<<3,v===5&&(p[1]|=(O&14)>>1,p[2]=(O&1)<<7,p[2]|=2<<2,p[3]=0),{config:p,samplerate:l[D],channelCount:A,codec:"mp4a.40."+v,manifestCodec:s}}function U(o,u){return o[u]===255&&(o[u+1]&246)===240}function _(o,u){return o[u+1]&1?7:9}function R(o,u){return(o[u+3]&3)<<11|o[u+4]<<3|(o[u+5]&224)>>>5}function c(o,u){return u+5=o.length)return!1;var E=R(o,u);if(E<=x)return!1;var v=u+E;return v===o.length||g(o,v)}return!1}function f(o,u,x,E,v){if(!o.samplerate){var O=j(u,x,E,v);if(!O)return;o.config=O.config,o.samplerate=O.samplerate,o.channelCount=O.channelCount,o.codec=O.codec,o.manifestCodec=O.manifestCodec,z.logger.log("parsed codec:"+o.codec+", rate:"+O.samplerate+", channels:"+O.channelCount)}}function m(o){return 1024*9e4/o}function a(o,u,x,E,v){var O=_(o,u),A=R(o,u);if(A-=O,A>0){var p=x+E*v;return{headerLength:O,frameLength:A,stamp:p}}}function n(o,u,x,E,v){var O=m(o.samplerate),A=a(u,x,E,v,O);if(A){var p=A.frameLength,h=A.headerLength,s=A.stamp,l=h+p,D=Math.max(0,x+l-u.length),T;D?(T=new Uint8Array(l-h),T.set(u.subarray(x+h,u.length),0)):T=u.subarray(x+h,x+l);var S={unit:T,pts:s};return D||o.samples.push(S),{sample:S,length:l,missing:D}}}},"./src/demux/base-audio-demuxer.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"initPTSFn",function(){return R});var z=k("./src/polyfills/number.ts"),B=k("./src/demux/id3.ts"),M=k("./src/demux/dummy-demuxed-track.ts"),j=k("./src/utils/mp4-tools.ts"),U=k("./src/utils/typed-array.ts"),_=function(){function c(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var g=c.prototype;return g.resetInitSegment=function(y,f,m){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},g.resetTimeStamp=function(){},g.resetContiguity=function(){},g.canParse=function(y,f){return!1},g.appendFrame=function(y,f,m){},g.demux=function(y,f){this.cachedData&&(y=Object(j.appendUint8Array)(this.cachedData,y),this.cachedData=null);var m=B.getID3Data(y,0),a=m?m.length:0,n,o,u=this._audioTrack,x=this._id3Track,E=m?B.getTimeStamp(m):void 0,v=y.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=R(E,f)),m&&m.length>0&&x.samples.push({pts:this.initPTS,dts:this.initPTS,data:m}),o=this.initPTS;a_?(this.word<<=_,this.bitsAvailable-=_):(_-=this.bitsAvailable,R=_>>3,_-=R>>3,this.bytesAvailable-=R,this.loadWord(),this.word<<=_,this.bitsAvailable-=_)},j.readBits=function(_){var R=Math.min(this.bitsAvailable,_),c=this.word>>>32-R;return _>32&&z.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=R,this.bitsAvailable>0?this.word<<=R:this.bytesAvailable>0&&this.loadWord(),R=_-R,R>0&&this.bitsAvailable?c<>>_)!==0)return this.word<<=_,this.bitsAvailable-=_,_;return this.loadWord(),_+this.skipLZ()},j.skipUEG=function(){this.skipBits(1+this.skipLZ())},j.skipEG=function(){this.skipBits(1+this.skipLZ())},j.readUEG=function(){var _=this.skipLZ();return this.readBits(_+1)-1},j.readEG=function(){var _=this.readUEG();return 1&_?1+_>>>1:-1*(_>>>1)},j.readBoolean=function(){return this.readBits(1)===1},j.readUByte=function(){return this.readBits(8)},j.readUShort=function(){return this.readBits(16)},j.readUInt=function(){return this.readBits(32)},j.skipScalingList=function(_){for(var R=8,c=8,g,w=0;w<_;w++)c!==0&&(g=this.readEG(),c=(R+g+256)%256),R=c===0?R:c},j.readSPS=function(){var _=0,R=0,c=0,g=0,w,y,f,m=this.readUByte.bind(this),a=this.readBits.bind(this),n=this.readUEG.bind(this),o=this.readBoolean.bind(this),u=this.skipBits.bind(this),x=this.skipEG.bind(this),E=this.skipUEG.bind(this),v=this.skipScalingList.bind(this);m();var O=m();if(a(5),u(3),m(),E(),O===100||O===110||O===122||O===244||O===44||O===83||O===86||O===118||O===128){var A=n();if(A===3&&u(1),E(),E(),u(1),o())for(y=A!==3?8:12,f=0;f0?v.subarray(A,A+p):void 0},j=function(v,O){var A=0;return A=(v[O]&127)<<21,A|=(v[O+1]&127)<<14,A|=(v[O+2]&127)<<7,A|=v[O+3]&127,A},U=function(v,O){return z(v,O)&&j(v,O+6)+10<=v.length-O},_=function(v){for(var O=g(v),A=0;A>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:S+=String.fromCharCode(l);break;case 12:case 13:D=v[I++],S+=String.fromCharCode((l&31)<<6|D&63);break;case 14:D=v[I++],T=v[I++],S+=String.fromCharCode((l&15)<<12|(D&63)<<6|(T&63)<<0);break;default:}}return S},o={decodeTextFrame:f},u;function x(){return!u&&typeof self.TextDecoder!="undefined"&&(u=new self.TextDecoder("utf-8")),u}},"./src/demux/mp3demuxer.ts":function(ee,K,k){"use strict";k.r(K);var z=k("./src/demux/base-audio-demuxer.ts"),B=k("./src/demux/id3.ts"),M=k("./src/utils/logger.ts"),j=k("./src/demux/mpegaudio.ts");function U(c,g){c.prototype=Object.create(g.prototype),c.prototype.constructor=c,_(c,g)}function _(c,g){return _=Object.setPrototypeOf||function(y,f){return y.__proto__=f,y},_(c,g)}var R=function(c){U(g,c);function g(){return c.apply(this,arguments)||this}var w=g.prototype;return w.resetInitSegment=function(f,m,a){c.prototype.resetInitSegment.call(this,f,m,a),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:f,duration:a,inputTimeScale:9e4,dropped:0}},g.probe=function(f){if(!f)return!1;for(var m=B.getID3Data(f,0)||[],a=m.length,n=f.length;a0},U.demux=function(R){var c=R,g=Object(B.dummyTrack)();if(this.config.progressive){this.remainderData&&(c=Object(z.appendUint8Array)(this.remainderData,R));var w=Object(z.segmentValidRange)(c);this.remainderData=w.remainder,g.samples=w.valid||new Uint8Array}else g.samples=c;return{audioTrack:Object(B.dummyTrack)(),avcTrack:g,id3Track:Object(B.dummyTrack)(),textTrack:Object(B.dummyTrack)()}},U.flush=function(){var R=Object(B.dummyTrack)();return R.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(B.dummyTrack)(),avcTrack:R,id3Track:Object(B.dummyTrack)(),textTrack:Object(B.dummyTrack)()}},U.demuxSampleAes=function(R,c,g){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},U.destroy=function(){},j}();M.minProbeByteLength=1024,K.default=M},"./src/demux/mpegaudio.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"appendFrame",function(){return _}),k.d(K,"parseHeader",function(){return R}),k.d(K,"isHeaderPattern",function(){return c}),k.d(K,"isHeader",function(){return g}),k.d(K,"canParse",function(){return w}),k.d(K,"probe",function(){return y});var z=null,B=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],M=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],j=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],U=[0,1,1,4];function _(f,m,a,n,o){if(a+24>m.length)return;var u=R(m,a);if(u&&a+u.frameLength<=m.length){var x=u.samplesPerFrame*9e4/u.sampleRate,E=n+o*x,v={unit:m.subarray(a,a+u.frameLength),pts:E,dts:E};return f.config=[],f.channelCount=u.channelCount,f.samplerate=u.sampleRate,f.samples.push(v),{sample:v,length:u.frameLength,missing:0}}}function R(f,m){var a=f[m+1]>>3&3,n=f[m+1]>>1&3,o=f[m+2]>>4&15,u=f[m+2]>>2&3;if(a!==1&&o!==0&&o!==15&&u!==3){var x=f[m+2]>>1&1,E=f[m+3]>>6,v=a===3?3-n:n===3?3:4,O=B[v*14+o-1]*1e3,A=a===3?0:a===2?1:2,p=M[A*3+u],h=E===3?1:2,s=j[a][n],l=U[n],D=s*8*l,T=Math.floor(s*O/p+x)*l;if(z===null){var S=navigator.userAgent||"",I=S.match(/Chrome\/(\d+)/i);z=I?parseInt(I[1]):0}var C=!!z&&z<=87;return C&&n===2&&O>=224e3&&E===0&&(f[m+3]=f[m+3]|128),{sampleRate:p,channelCount:h,frameLength:T,samplesPerFrame:D}}}function c(f,m){return f[m]===255&&(f[m+1]&224)===224&&(f[m+1]&6)!==0}function g(f,m){return m+1=R.length){g();return}if(R[c].unit.length<32)continue;var w=this.decrypter.isSync();if(this.decryptAacSample(R,c,g,w),!w)return}},U.getAvcEncryptedData=function(R){for(var c=Math.floor((R.length-48)/160)*16+16,g=new Int8Array(c),w=0,y=32;y<=R.length-16;y+=160,w+=16)g.set(R.subarray(y,y+16),w);return g},U.getAvcDecryptedUnit=function(R,c){for(var g=new Uint8Array(c),w=0,y=32;y<=R.length-16;y+=160,w+=16)R.set(g.subarray(w,w+16),y);return R},U.decryptAvcSample=function(R,c,g,w,y,f){var m=Object(B.discardEPB)(y.data),a=this.getAvcEncryptedData(m),n=this;this.decryptBuffer(a.buffer,function(o){y.data=n.getAvcDecryptedUnit(m,o),f||n.decryptAvcSamples(R,c,g+1,w)})},U.decryptAvcSamples=function(R,c,g,w){if(R instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;c++,g=0){if(c>=R.length){w();return}for(var y=R[c].units;!(g>=y.length);g++){var f=y[g];if(f.data.length<=48||f.type!==1&&f.type!==5)continue;var m=this.decrypter.isSync();if(this.decryptAvcSample(R,c,g,w,f,m),!m)return}}},j}();K.default=M},"./src/demux/transmuxer-interface.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"default",function(){return y});var z=k("./node_modules/webworkify-webpack/index.js"),B=k.n(z),M=k("./src/events.ts"),j=k("./src/demux/transmuxer.ts"),U=k("./src/utils/logger.ts"),_=k("./src/errors.ts"),R=k("./src/utils/mediasource-helper.ts"),c=k("./node_modules/eventemitter3/index.js"),g=k.n(c),w=Object(R.getMediaSource)()||{isTypeSupported:function(){return!1}},y=function(){function f(a,n,o,u){var x=this;this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.worker=void 0,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.hls=a,this.id=n,this.onTransmuxComplete=o,this.onFlush=u;var E=a.config,v=function(s,l){l=l||{},l.frag=x.frag,l.id=x.id,a.trigger(s,l)};this.observer=new c.EventEmitter,this.observer.on(M.Events.FRAG_DECRYPTED,v),this.observer.on(M.Events.ERROR,v);var O={mp4:w.isTypeSupported("video/mp4"),mpeg:w.isTypeSupported("audio/mpeg"),mp3:w.isTypeSupported('audio/mp4; codecs="mp3"')},A=navigator.vendor;if(E.enableWorker&&typeof Worker!="undefined"){U.logger.log("demuxing in webworker");var p;try{p=this.worker=z("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),p.addEventListener("message",this.onwmsg),p.onerror=function(h){a.trigger(M.Events.ERROR,{type:_.ErrorTypes.OTHER_ERROR,details:_.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(h.message+" ("+h.filename+":"+h.lineno+")")})},p.postMessage({cmd:"init",typeSupported:O,vendor:A,id:n,config:JSON.stringify(E)})}catch(h){U.logger.warn("Error in worker:",h),U.logger.error("Error while initializing DemuxerWorker, fallback to inline"),p&&self.URL.revokeObjectURL(p.objectURL),this.transmuxer=new j.default(this.observer,O,E,A,n),this.worker=null}}else this.transmuxer=new j.default(this.observer,O,E,A,n)}var m=f.prototype;return m.destroy=function(){var n=this.worker;if(n)n.removeEventListener("message",this.onwmsg),n.terminate(),this.worker=null;else{var o=this.transmuxer;o&&(o.destroy(),this.transmuxer=null)}var u=this.observer;u&&u.removeAllListeners(),this.observer=null},m.push=function(n,o,u,x,E,v,O,A,p,h){var s=this;p.transmuxing.start=self.performance.now();var l=this.transmuxer,D=this.worker,T=v?v.start:E.start,S=E.decryptdata,I=this.frag,C=!(I&&E.cc===I.cc),W=!(I&&p.level===I.level),Y=I?p.sn-I.sn:-1,H=this.part?p.part-this.part.index:1,F=!W&&(Y===1||Y===0&&H===1),q=self.performance.now();(W||Y||E.stats.parsing.start===0)&&(E.stats.parsing.start=q),v&&(H||!F)&&(v.stats.parsing.start=q);var le=new j.TransmuxState(C,F,A,W,T);if(!F||C){U.logger.log("[transmuxer-interface, "+E.type+"]: Starting new transmux session for sn: "+p.sn+" p: "+p.part+" level: "+p.level+" id: "+p.id+` discontinuity: `+C+` trackSwitch: `+W+` contiguous: `+F+` accurateTimeOffset: `+A+` - timeOffset: `+T);var pe=new j.TransmuxConfig(u,x,o,O,h);this.configureTransmuxer(pe)}if(this.frag=E,this.part=v,D)D.postMessage({cmd:"demux",data:n,decryptdata:S,chunkMeta:p,state:le},n instanceof ArrayBuffer?[n]:[]);else if(l){var Ae=l.push(n,S,p,le);Object(j.isPromise)(Ae)?Ae.then(function(Ge){s.handleTransmuxComplete(Ge)}):this.handleTransmuxComplete(Ae)}},m.flush=function(n){var o=this;n.transmuxing.start=self.performance.now();var u=this.transmuxer,x=this.worker;if(x)x.postMessage({cmd:"flush",chunkMeta:n});else if(u){var E=u.flush(n);Object(j.isPromise)(E)?E.then(function(v){o.handleFlushResult(v,n)}):this.handleFlushResult(E,n)}},m.handleFlushResult=function(n,o){var u=this;n.forEach(function(x){u.handleTransmuxComplete(x)}),this.onFlush(o)},m.onWorkerMessage=function(n){var o=n.data,u=this.hls;switch(o.event){case"init":{self.URL.revokeObjectURL(this.worker.objectURL);break}case"transmuxComplete":{this.handleTransmuxComplete(o.data);break}case"flush":{this.onFlush(o.data);break}default:{o.data=o.data||{},o.data.frag=this.frag,o.data.id=this.id,u.trigger(o.event,o.data);break}}},m.configureTransmuxer=function(n){var o=this.worker,u=this.transmuxer;o?o.postMessage({cmd:"configure",config:n}):u&&u.configure(n)},m.handleTransmuxComplete=function(n){n.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(n)},f}()},"./src/demux/transmuxer-worker.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"default",function(){return _});var z=P("./src/demux/transmuxer.ts"),B=P("./src/events.ts"),M=P("./src/utils/logger.ts"),j=P("./node_modules/eventemitter3/index.js"),U=P.n(j);function _(y){var f=new j.EventEmitter,m=function(n,o){y.postMessage({event:n,data:o})};f.on(B.Events.FRAG_DECRYPTED,m),f.on(B.Events.ERROR,m),y.addEventListener("message",function(a){var n=a.data;switch(n.cmd){case"init":{var o=JSON.parse(n.config);y.transmuxer=new z.default(f,n.typeSupported,o,n.vendor,n.id),Object(M.enableLogs)(o.debug),m("init",null);break}case"configure":{y.transmuxer.configure(n.config);break}case"demux":{var u=y.transmuxer.push(n.data,n.decryptdata,n.chunkMeta,n.state);Object(z.isPromise)(u)?u.then(function(v){R(y,v)}):R(y,u);break}case"flush":{var x=n.chunkMeta,E=y.transmuxer.flush(x);Object(z.isPromise)(E)?E.then(function(v){g(y,v,x)}):g(y,E,x);break}default:break}})}function R(y,f){if(w(f.remuxResult))return;var m=[],a=f.remuxResult,n=a.audio,o=a.video;n&&c(m,n),o&&c(m,o),y.postMessage({event:"transmuxComplete",data:f},m)}function c(y,f){f.data1&&y.push(f.data1.buffer),f.data2&&y.push(f.data2.buffer)}function g(y,f,m){f.forEach(function(a){R(y,a)}),y.postMessage({event:"flush",data:m})}function w(y){return!y.audio&&!y.video&&!y.text&&!y.id3&&!y.initSegment}},"./src/demux/transmuxer.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"default",function(){return o}),P.d(K,"isPromise",function(){return E}),P.d(K,"TransmuxConfig",function(){return v}),P.d(K,"TransmuxState",function(){return O});var z=P("./src/events.ts"),B=P("./src/errors.ts"),M=P("./src/crypt/decrypter.ts"),j=P("./src/demux/aacdemuxer.ts"),U=P("./src/demux/mp4demuxer.ts"),_=P("./src/demux/tsdemuxer.ts"),R=P("./src/demux/mp3demuxer.ts"),c=P("./src/remux/mp4-remuxer.ts"),g=P("./src/remux/passthrough-remuxer.ts"),w=P("./src/demux/chunk-cache.ts"),y=P("./src/utils/mp4-tools.ts"),f=P("./src/utils/logger.ts"),m;try{m=self.performance.now.bind(self.performance)}catch(A){f.logger.debug("Unable to use Performance API on this environment"),m=self.Date.now}var a=[{demux:_.default,remux:c.default},{demux:U.default,remux:g.default},{demux:j.default,remux:c.default},{demux:R.default,remux:c.default}],n=1024;a.forEach(function(A){var p=A.demux;n=Math.max(n,p.minProbeByteLength)});var o=function(){function A(h,s,l,D,T){this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.cache=new w.default,this.observer=h,this.typeSupported=s,this.config=l,this.vendor=D,this.id=T}var p=A.prototype;return p.configure=function(s){this.transmuxConfig=s,this.decrypter&&this.decrypter.reset()},p.push=function(s,l,D,T){var S=this,I=D.transmuxing;I.executeStart=m();var C=new Uint8Array(s),W=this.cache,Y=this.config,H=this.currentTransmuxState,F=this.transmuxConfig;T&&(this.currentTransmuxState=T);var q=u(C,l);if(q&&q.method==="AES-128"){var le=this.getDecrypter();if(Y.enableSoftwareAES){var pe=le.softwareDecrypt(C,q.key.buffer,q.iv.buffer);if(!pe)return I.executeEnd=m(),x(D);C=new Uint8Array(pe)}else return this.decryptionPromise=le.webCryptoDecrypt(C,q.key.buffer,q.iv.buffer).then(function(Se){var Me=S.push(Se,null,D);return S.decryptionPromise=null,Me}),this.decryptionPromise}var Ae=T||H,Ge=Ae.contiguous,Fe=Ae.discontinuity,Ue=Ae.trackSwitch,_e=Ae.accurateTimeOffset,je=Ae.timeOffset,xe=F.audioCodec,he=F.videoCodec,te=F.defaultInitPts,ye=F.duration,ue=F.initSegmentData;if((Fe||Ue)&&this.resetInitSegment(ue,xe,he,ye),Fe&&this.resetInitialTimestamp(te),Ge||this.resetContiguity(),this.needsProbing(C,Fe,Ue)){if(W.dataLength){var Le=W.flush();C=Object(y.appendUint8Array)(Le,C)}this.configureTransmuxer(C,F)}var ae=this.transmux(C,q,je,_e,D),oe=this.currentTransmuxState;return oe.contiguous=!0,oe.discontinuity=!1,oe.trackSwitch=!1,I.executeEnd=m(),ae},p.flush=function(s){var l=this,D=s.transmuxing;D.executeStart=m();var T=this.decrypter,S=this.cache,I=this.currentTransmuxState,C=this.decryptionPromise;if(C)return C.then(function(){return l.flush(s)});var W=[],Y=I.timeOffset;if(T){var H=T.flush();H&&W.push(this.push(H,null,s))}var F=S.dataLength;S.reset();var q=this.demuxer,le=this.remuxer;if(!q||!le)return F>=n&&this.observer.emit(z.Events.ERROR,z.Events.ERROR,{type:B.ErrorTypes.MEDIA_ERROR,details:B.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),D.executeEnd=m(),[x(s)];var pe=q.flush(Y);return E(pe)?pe.then(function(Ae){return l.flushRemux(W,Ae,s),W}):(this.flushRemux(W,pe,s),W)},p.flushRemux=function(s,l,D){var T=l.audioTrack,S=l.avcTrack,I=l.id3Track,C=l.textTrack,W=this.currentTransmuxState,Y=W.accurateTimeOffset,H=W.timeOffset;f.logger.log("[transmuxer.ts]: Flushed fragment "+D.sn+(D.part>-1?" p: "+D.part:"")+" of level "+D.level);var F=this.remuxer.remux(T,S,I,C,H,Y,!0,this.id);s.push({remuxResult:F,chunkMeta:D}),D.transmuxing.executeEnd=m()},p.resetInitialTimestamp=function(s){var l=this.demuxer,D=this.remuxer;if(!l||!D)return;l.resetTimeStamp(s),D.resetTimeStamp(s)},p.resetContiguity=function(){var s=this.demuxer,l=this.remuxer;if(!s||!l)return;s.resetContiguity(),l.resetNextTimestamp()},p.resetInitSegment=function(s,l,D,T){var S=this.demuxer,I=this.remuxer;if(!S||!I)return;S.resetInitSegment(l,D,T),I.resetInitSegment(s,l,D)},p.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},p.transmux=function(s,l,D,T,S){var I;return l&&l.method==="SAMPLE-AES"?I=this.transmuxSampleAes(s,l,D,T,S):I=this.transmuxUnencrypted(s,D,T,S),I},p.transmuxUnencrypted=function(s,l,D,T){var S=this.demuxer.demux(s,l,!1,!this.config.progressive),I=S.audioTrack,C=S.avcTrack,W=S.id3Track,Y=S.textTrack,H=this.remuxer.remux(I,C,W,Y,l,D,!1,this.id);return{remuxResult:H,chunkMeta:T}},p.transmuxSampleAes=function(s,l,D,T,S){var I=this;return this.demuxer.demuxSampleAes(s,l,D).then(function(C){var W=I.remuxer.remux(C.audioTrack,C.avcTrack,C.id3Track,C.textTrack,D,T,!1,I.id);return{remuxResult:W,chunkMeta:S}})},p.configureTransmuxer=function(s,l){for(var D=this.config,T=this.observer,S=this.typeSupported,I=this.vendor,C=l.audioCodec,W=l.defaultInitPts,Y=l.duration,H=l.initSegmentData,F=l.videoCodec,q,le=0,pe=a.length;le0&&p!=null&&p.key!=null&&p.iv!==null&&p.method!=null&&(h=p),h}var x=function(p){return{remuxResult:{},chunkMeta:p}};function E(A){return"then"in A&&A.then instanceof Function}var v=function(p,h,s,l,D){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=p,this.videoCodec=h,this.initSegmentData=s,this.duration=l,this.defaultInitPts=D},O=function(p,h,s,l,D){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=p,this.contiguous=h,this.accurateTimeOffset=s,this.trackSwitch=l,this.timeOffset=D}},"./src/demux/tsdemuxer.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"discardEPB",function(){return x});var z=P("./src/demux/adts.ts"),B=P("./src/demux/mpegaudio.ts"),M=P("./src/demux/exp-golomb.ts"),j=P("./src/demux/id3.ts"),U=P("./src/demux/sample-aes.ts"),_=P("./src/events.ts"),R=P("./src/utils/mp4-tools.ts"),c=P("./src/utils/logger.ts"),g=P("./src/errors.ts"),w={video:1,audio:2,id3:3,text:4},y=function(){function E(O,A,p){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this.aacLastPTS=null,this._initPTS=null,this._initDTS=null,this._pmtId=-1,this._avcTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.observer=O,this.config=A,this.typeSupported=p}E.probe=function(A){var p=E.syncOffset(A);return p<0?!1:(p&&c.logger.warn("MPEG2-TS detected but first sync word found @ offset "+p+", junk ahead ?"),!0)},E.syncOffset=function(A){for(var p=Math.min(1e3,A.length-3*188),h=0;h>4,xe=void 0;if(je>1){if(xe=Fe+5+A[Fe+4],xe===Fe+188)continue}else xe=Fe+4;switch(_e){case I:Ue&&(C&&(l=n(C))&&this.parseAVCPES(l,!1),C={data:[],size:0}),C&&(C.data.push(A.subarray(xe,Fe+188)),C.size+=Fe+188-xe);break;case W:Ue&&(H&&(l=n(H))&&(T.isAAC?this.parseAACPES(l):this.parseMPEGPES(l)),H={data:[],size:0}),H&&(H.data.push(A.subarray(xe,Fe+188)),H.size+=Fe+188-xe);break;case Y:Ue&&(F&&(l=n(F))&&this.parseID3PES(l),F={data:[],size:0}),F&&(F.data.push(A.subarray(xe,Fe+188)),F.size+=Fe+188-xe);break;case 0:Ue&&(xe+=A[xe]+1),pe=this._pmtId=m(A,xe);break;case pe:{Ue&&(xe+=A[xe]+1);var he=a(A,xe,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,h);I=he.avc,I>0&&(D.pid=I),W=he.audio,W>0&&(T.pid=W,T.isAAC=he.isAAC),Y=he.id3,Y>0&&(S.pid=Y),q&&!le&&(c.logger.log("reparse from beginning"),q=!1,Fe=Ge-188),le=this.pmtParsed=!0;break}case 17:case 8191:break;default:q=!0;break}}else this.observer.emit(_.Events.ERROR,_.Events.ERROR,{type:g.ErrorTypes.MEDIA_ERROR,details:g.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});D.pesData=C,T.pesData=H,S.pesData=F;var te={audioTrack:T,avcTrack:D,id3Track:S,textTrack:this._txtTrack};return s&&this.extractRemainingSamples(te),te},v.flush=function(){var A=this.remainderData;this.remainderData=null;var p;return A?p=this.demux(A,-1,!1,!0):p={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(p),this.sampleAes?this.decrypt(p,this.sampleAes):p},v.extractRemainingSamples=function(A){var p=A.audioTrack,h=A.avcTrack,s=A.id3Track,l=h.pesData,D=p.pesData,T=s.pesData,S;l&&(S=n(l))?(this.parseAVCPES(S,!0),h.pesData=null):h.pesData=l,D&&(S=n(D))?(p.isAAC?this.parseAACPES(S):this.parseMPEGPES(S),p.pesData=null):(D!=null&&D.size&&c.logger.log("last AAC PES packet truncated,might overlap between fragments"),p.pesData=D),T&&(S=n(T))?(this.parseID3PES(S),s.pesData=null):s.pesData=T},v.demuxSampleAes=function(A,p,h){var s=this.demux(A,h,!0,!this.config.progressive),l=this.sampleAes=new U.default(this.observer,this.config,p);return this.decrypt(s,l)},v.decrypt=function(A,p){return new Promise(function(h){var s=A.audioTrack,l=A.avcTrack;s.samples&&s.isAAC?p.decryptAacSamples(s.samples,0,function(){l.samples?p.decryptAvcSamples(l.samples,0,0,function(){h(A)}):h(A)}):l.samples&&p.decryptAvcSamples(l.samples,0,0,function(){h(A)})})},v.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},v.parseAVCPES=function(A,p){var h=this,s=this._avcTrack,l=this.parseAVCNALu(A.data),D=!1,T=this.avcSample,S,I=!1;A.data=null,T&&l.length&&!s.audFound&&(o(T,s),T=this.avcSample=f(!1,A.pts,A.dts,"")),l.forEach(function(C){switch(C.type){case 1:{S=!0,T||(T=h.avcSample=f(!0,A.pts,A.dts,"")),D&&(T.debug+="NDR "),T.frame=!0;var W=C.data;if(I&&W.length>4){var Y=new M.default(W).readSliceType();(Y===2||Y===4||Y===7||Y===9)&&(T.key=!0)}break}case 5:S=!0,T||(T=h.avcSample=f(!0,A.pts,A.dts,"")),D&&(T.debug+="IDR "),T.key=!0,T.frame=!0;break;case 6:{S=!0,D&&T&&(T.debug+="SEI ");var H=new M.default(x(C.data));H.readUByte();for(var F=0,q=0,le=!1,pe=0;!le&&H.bytesAvailable>1;){F=0;do pe=H.readUByte(),F+=pe;while(pe===255);q=0;do pe=H.readUByte(),q+=pe;while(pe===255);if(F===4&&H.bytesAvailable!==0){le=!0;var Ae=H.readUByte();if(Ae===181){var Ge=H.readUShort();if(Ge===49){var Fe=H.readUInt();if(Fe===1195456820){var Ue=H.readUByte();if(Ue===3){for(var _e=H.readUByte(),je=H.readUByte(),xe=31&_e,he=[_e,je],te=0;te16){for(var ye=[],ue=0;ue<16;ue++)ye.push(H.readUByte().toString(16)),(ue===3||ue===5||ue===7||ue===9)&&ye.push("-");for(var Le=q-16,ae=new Uint8Array(Le),oe=0;oe=0){var H={data:A.subarray(W,T-s-1),type:Y};D.push(H)}else{var F=this.getLastNalUnit();if(F&&(l&&T<=4-l&&(F.state&&(F.data=F.data.subarray(0,F.data.byteLength-l))),I=T-s-1,I>0)){var q=new Uint8Array(F.data.byteLength+I);q.set(F.data,0),q.set(A.subarray(0,I),F.data.byteLength),F.data=q,F.state=0}}T=0&&s>=0){var le={data:A.subarray(W,p),type:Y,state:s};D.push(le)}if(D.length===0){var pe=this.getLastNalUnit();if(pe){var Ae=new Uint8Array(pe.data.byteLength+A.byteLength);Ae.set(pe.data,0),Ae.set(A,pe.data.byteLength),pe.data=Ae}}return h.naluState=s,D},v.parseAACPES=function(A){var p=0,h=this._audioTrack,s=this.aacOverFlow,l=A.data;if(s){this.aacOverFlow=null;var D=s.sample.unit.byteLength,T=Math.min(s.missing,D),S=D-T;s.sample.unit.set(l.subarray(0,T),S),h.samples.push(s.sample),p=s.missing}var I,C;for(I=p,C=l.length;I1;){var D=new Uint8Array(l[0].length+l[1].length);D.set(l[0]),D.set(l[1],l[0].length),l[0]=D,l.splice(1,1)}O=l[0];var T=(O[0]<<16)+(O[1]<<8)+O[2];if(T===1){if(A=(O[4]<<8)+O[5],A&&A>E.size-6)return null;var S=O[7];S&192&&(h=(O[9]&14)*536870912+(O[10]&255)*4194304+(O[11]&254)*16384+(O[12]&255)*128+(O[13]&254)/2,S&64?(s=(O[14]&14)*536870912+(O[15]&255)*4194304+(O[16]&254)*16384+(O[17]&255)*128+(O[18]&254)/2,h-s>60*9e4&&(c.logger.warn(Math.round((h-s)/9e4)+"s delta between PTS and DTS, align them"),h=s)):s=h),p=O[8];var I=p+9;if(E.size<=I)return null;E.size-=I;for(var C=new Uint8Array(E.size),W=0,Y=l.length;WH){I-=H;continue}else O=O.subarray(I),H-=I,I=0;C.set(O,v),v+=H}return A&&(A-=p+3),{data:C,pts:h,dts:s,len:A}}return null}function o(E,v){if(E.units.length&&E.frame){if(E.pts===void 0){var O=v.samples,A=O.length;if(A){var p=O[A-1];E.pts=p.pts,E.dts=p.dts}else{v.dropped++;return}}v.samples.push(E)}E.debug.length&&c.logger.log(E.pts+"/"+E.dts+":"+E.debug)}function u(E,v){var O=E.length;if(O>0){if(v.pts>=E[O-1].pts)E.push(v);else for(var A=O-1;A>=0;A--)if(v.ptsh)return l;return 0}},{key:"maxAutoLevel",get:function(){var p=this.levels,h=this.autoLevelCapping,s;return h===-1&&p&&p.length?s=p.length-1:s=h,s}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(p){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,p)}},{key:"audioTracks",get:function(){var p=this.audioTrackController;return p?p.audioTracks:[]}},{key:"audioTrack",get:function(){var p=this.audioTrackController;return p?p.audioTrack:-1},set:function(p){var h=this.audioTrackController;h&&(h.audioTrack=p)}},{key:"subtitleTracks",get:function(){var p=this.subtitleTrackController;return p?p.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var p=this.subtitleTrackController;return p?p.subtitleTrack:-1},set:function(p){var h=this.subtitleTrackController;h&&(h.subtitleTrack=p)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var p=this.subtitleTrackController;return p?p.subtitleDisplay:!1},set:function(p){var h=this.subtitleTrackController;h&&(h.subtitleDisplay=p)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(p){this.config.lowLatencyMode=p}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.1.2"}},{key:"Events",get:function(){return n.Events}},{key:"ErrorTypes",get:function(){return o.ErrorTypes}},{key:"ErrorDetails",get:function(){return o.ErrorDetails}},{key:"DefaultConfig",get:function(){return v.defaultConfig?v.defaultConfig:f.hlsDefaultConfig},set:function(p){v.defaultConfig=p}}]),v}();E.defaultConfig=void 0},"./src/is-supported.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"isSupported",function(){return M}),P.d(K,"changeTypeSupported",function(){return j});var z=P("./src/utils/mediasource-helper.ts");function B(){return self.SourceBuffer||self.WebKitSourceBuffer}function M(){var U=Object(z.getMediaSource)();if(!U)return!1;var _=B(),R=U&&typeof U.isTypeSupported=="function"&&U.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),c=!_||_.prototype&&typeof _.prototype.appendBuffer=="function"&&typeof _.prototype.remove=="function";return!!R&&!!c}function j(){var U,_=B();return typeof(_==null||((U=_.prototype)===null||U===void 0)?void 0:U.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"default",function(){return y}),P.d(K,"LoadError",function(){return m});var z=P("./src/polyfills/number.ts"),B=P("./src/errors.ts");function M(a,n){a.prototype=Object.create(n.prototype),a.prototype.constructor=a,c(a,n)}function j(a){var n=typeof Map=="function"?new Map:void 0;return j=function(u){if(u===null||!R(u))return u;if(typeof u!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n!="undefined"){if(n.has(u))return n.get(u);n.set(u,x)}function x(){return U(u,arguments,g(this).constructor)}return x.prototype=Object.create(u.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),c(x,u)},j(a)}function U(a,n,o){return _()?U=Reflect.construct:U=function(x,E,v){var O=[null];O.push.apply(O,E);var A=Function.bind.apply(x,O),p=new A;return v&&c(p,v.prototype),p},U.apply(null,arguments)}function _(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}function R(a){return Function.toString.call(a).indexOf("[native code]")!==-1}function c(a,n){return c=Object.setPrototypeOf||function(u,x){return u.__proto__=x,u},c(a,n)}function g(a){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)},g(a)}var w=Math.pow(2,17),y=function(){function a(o){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=o}var n=a.prototype;return n.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},n.abort=function(){this.loader&&this.loader.abort()},n.load=function(u,x){var E=this,v=u.url;if(!v)return Promise.reject(new m({type:B.ErrorTypes.NETWORK_ERROR,details:B.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:u,networkDetails:null},"Fragment does not have a "+(v?"part list":"url")));this.abort();var O=this.config,A=O.fLoader,p=O.loader;return new Promise(function(h,s){E.loader&&E.loader.destroy();var l=E.loader=u.loader=A?new A(O):new p(O),D=f(u),T={timeout:O.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:O.fragLoadingMaxRetryTimeout,highWaterMark:w};u.stats=l.stats,l.load(D,T,{onSuccess:function(I,C,W,Y){E.resetLoader(u,l),h({frag:u,part:null,payload:I.data,networkDetails:Y})},onError:function(I,C,W){E.resetLoader(u,l),s(new m({type:B.ErrorTypes.NETWORK_ERROR,details:B.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:u,response:I,networkDetails:W}))},onAbort:function(I,C,W){E.resetLoader(u,l),s(new m({type:B.ErrorTypes.NETWORK_ERROR,details:B.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:u,networkDetails:W}))},onTimeout:function(I,C,W){E.resetLoader(u,l),s(new m({type:B.ErrorTypes.NETWORK_ERROR,details:B.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:u,networkDetails:W}))},onProgress:function(I,C,W,Y){x&&x({frag:u,part:null,payload:W,networkDetails:Y})}})})},n.loadPart=function(u,x,E){var v=this;this.abort();var O=this.config,A=O.fLoader,p=O.loader;return new Promise(function(h,s){v.loader&&v.loader.destroy();var l=v.loader=u.loader=A?new A(O):new p(O),D=f(u,x),T={timeout:O.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:O.fragLoadingMaxRetryTimeout,highWaterMark:w};x.stats=l.stats,l.load(D,T,{onSuccess:function(I,C,W,Y){v.resetLoader(u,l),v.updateStatsFromPart(u,x);var H={frag:u,part:x,payload:I.data,networkDetails:Y};E(H),h(H)},onError:function(I,C,W){v.resetLoader(u,l),s(new m({type:B.ErrorTypes.NETWORK_ERROR,details:B.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:u,part:x,response:I,networkDetails:W}))},onAbort:function(I,C,W){u.stats.aborted=x.stats.aborted,v.resetLoader(u,l),s(new m({type:B.ErrorTypes.NETWORK_ERROR,details:B.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:u,part:x,networkDetails:W}))},onTimeout:function(I,C,W){v.resetLoader(u,l),s(new m({type:B.ErrorTypes.NETWORK_ERROR,details:B.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:u,part:x,networkDetails:W}))}})})},n.updateStatsFromPart=function(u,x){var E=u.stats,v=x.stats,O=v.total;if(E.loaded+=v.loaded,O){var A=Math.round(u.duration/x.duration),p=Math.min(Math.round(E.loaded/O),A),h=A-p,s=h*Math.round(E.loaded/p);E.total=E.loaded+s}else E.total=Math.max(E.loaded,E.total);var l=E.loading,D=v.loading;l.start?l.first+=D.first-D.start:(l.start=D.start,l.first=D.first),l.end=D.end},n.resetLoader=function(u,x){u.loader=null,this.loader===x&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),x.destroy()},a}();function f(a,n){n===void 0&&(n=null);var o=n||a,u={frag:a,part:n,responseType:"arraybuffer",url:o.url,headers:{},rangeStart:0,rangeEnd:0},x=o.byteRangeStartOffset,E=o.byteRangeEndOffset;return Object(z.isFiniteNumber)(x)&&Object(z.isFiniteNumber)(E)&&(u.rangeStart=x,u.rangeEnd=E),u}var m=function(a){M(n,a);function n(o){for(var u,x=arguments.length,E=new Array(x>1?x-1:0),v=1;v>8*(15-O)&255;return v},u.setDecryptDataFromLevelKey=function(E,v){var O=E;return(E==null?void 0:E.method)==="AES-128"&&E.uri&&!E.iv&&(O=U.LevelKey.fromURI(E.uri),O.method=E.method,O.iv=this.createInitializationVector(v),O.keyFormat="identity"),O},u.setElementaryStreamInfo=function(E,v,O,A,p,h){h===void 0&&(h=!1);var s=this.elementaryStreams,l=s[E];if(!l){s[E]={startPTS:v,endPTS:O,startDTS:A,endDTS:p,partial:h};return}l.startPTS=Math.min(l.startPTS,v),l.endPTS=Math.max(l.endPTS,O),l.startDTS=Math.min(l.startDTS,A),l.endDTS=Math.max(l.endDTS,p)},u.clearElementaryStreamInfo=function(){var E=this.elementaryStreams;E[y.AUDIO]=null,E[y.VIDEO]=null,E[y.AUDIOVIDEO]=null},w(o,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var E=this.sn;typeof E!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&j.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),E=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,E)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(z.isFiniteNumber)(this.programDateTime))return null;var E=Object(z.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+E*1e3}},{key:"encrypted",get:function(){var E;return!!((E=this.decryptdata)!==null&&E!==void 0&&E.keyFormat&&this.decryptdata.uri)}}]),o}(f),a=function(n){R(o,n);function o(u,x,E,v,O){var A;A=n.call(this,E)||this,A.fragOffset=0,A.duration=0,A.gap=!1,A.independent=!1,A.relurl=void 0,A.fragment=void 0,A.index=void 0,A.stats=new _.LoadStats,A.duration=u.decimalFloatingPoint("DURATION"),A.gap=u.bool("GAP"),A.independent=u.bool("INDEPENDENT"),A.relurl=u.enumeratedString("URI"),A.fragment=x,A.index=v;var p=u.enumeratedString("BYTERANGE");return p&&A.setByteRange(p,O),O&&(A.fragOffset=O.fragOffset+O.duration),A}return w(o,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var x=this.elementaryStreams;return!!(x.audio||x.video||x.audiovideo)}}]),o}(f)},"./src/loader/key-loader.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"default",function(){return j});var z=P("./src/events.ts"),B=P("./src/errors.ts"),M=P("./src/utils/logger.ts"),j=function(){function U(R){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=R,this._registerListeners()}var _=U.prototype;return _._registerListeners=function(){this.hls.on(z.Events.KEY_LOADING,this.onKeyLoading,this)},_._unregisterListeners=function(){this.hls.off(z.Events.KEY_LOADING,this.onKeyLoading)},_.destroy=function(){this._unregisterListeners();for(var c in this.loaders){var g=this.loaders[c];g&&g.destroy()}this.loaders={}},_.onKeyLoading=function(c,g){var w=g.frag,y=w.type,f=this.loaders[y];if(!w.decryptdata){M.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var m=w.decryptdata.uri;if(m!==this.decrypturl||this.decryptkey===null){var a=this.hls.config;if(f&&(M.logger.warn("abort previous key loader for type:"+y),f.abort()),!m){M.logger.warn("key uri is falsy");return}var n=a.loader,o=w.loader=this.loaders[y]=new n(a);this.decrypturl=m,this.decryptkey=null;var u={url:m,frag:w,responseType:"arraybuffer"},x={timeout:a.fragLoadingTimeOut,maxRetry:0,retryDelay:a.fragLoadingRetryDelay,maxRetryDelay:a.fragLoadingMaxRetryTimeout,highWaterMark:0},E={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};o.load(u,x,E)}else this.decryptkey&&(w.decryptdata.key=this.decryptkey,this.hls.trigger(z.Events.KEY_LOADED,{frag:w}))},_.loadsuccess=function(c,g,w){var y=w.frag;if(!y.decryptdata){M.logger.error("after key load, decryptdata unset");return}this.decryptkey=y.decryptdata.key=new Uint8Array(c.data),y.loader=null,delete this.loaders[y.type],this.hls.trigger(z.Events.KEY_LOADED,{frag:y})},_.loaderror=function(c,g){var w=g.frag,y=w.loader;y&&y.abort(),delete this.loaders[w.type],this.hls.trigger(z.Events.ERROR,{type:B.ErrorTypes.NETWORK_ERROR,details:B.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:w,response:c})},_.loadtimeout=function(c,g){var w=g.frag,y=w.loader;y&&y.abort(),delete this.loaders[w.type],this.hls.trigger(z.Events.ERROR,{type:B.ErrorTypes.NETWORK_ERROR,details:B.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:w})},U}()},"./src/loader/level-details.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"LevelDetails",function(){return U});var z=P("./src/polyfills/number.ts");function B(_,R){for(var c=0;cg.endSN||w>0||w===0&&y>0,this.updated||this.advanced?this.misses=Math.floor(g.misses*.6):this.misses=g.misses+1,this.availabilityDelay=g.availabilityDelay},M(_,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(z.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||j}},{key:"drift",get:function(){var g=this.driftEndTime-this.driftStartTime;if(g>0){var w=this.driftEnd-this.driftStart;return w*1e3/g}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var g;return(g=this.partList)!==null&&g!==void 0&&g.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var g;return(g=this.fragments)!==null&&g!==void 0&&g.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var g;return(g=this.partList)!==null&&g!==void 0&&g.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var g;return(g=this.partList)!==null&&g!==void 0&&g.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),_}()},"./src/loader/level-key.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"LevelKey",function(){return U});var z=P("./node_modules/url-toolkit/src/url-toolkit.js"),B=P.n(z);function M(_,R){for(var c=0;c2){var s=h.shift()+".";return s+=parseInt(h.shift()).toString(16),s+=("000"+parseInt(h.shift()).toString(16)).substr(-4),s}return p},O.resolve=function(p,h){return B.buildAbsoluteURL(h,p,{alwaysNormalize:!0})},O.parseMasterPlaylist=function(p,h){var s=[],l={},D=!1;w.lastIndex=0;for(var T;(T=w.exec(p))!=null;)if(T[1]){var S=new R.AttrList(T[1]),I={attrs:S,bitrate:S.decimalInteger("AVERAGE-BANDWIDTH")||S.decimalInteger("BANDWIDTH"),name:S.NAME,url:O.resolve(T[2],h)},C=S.decimalResolution("RESOLUTION");C&&(I.width=C.width,I.height=C.height),u((S.CODECS||"").split(/[ ,]+/).filter(function(Y){return Y}),I),I.videoCodec&&I.videoCodec.indexOf("avc1")!==-1&&(I.videoCodec=O.convertAVC1ToAVCOTI(I.videoCodec)),s.push(I)}else if(T[3]){var W=new R.AttrList(T[3]);W["DATA-ID"]&&(D=!0,l[W["DATA-ID"]]=W)}return{levels:s,sessionData:D?l:null}},O.parseMasterPlaylistMedia=function(p,h,s,l){l===void 0&&(l=[]);var D,T=[],S=0;for(y.lastIndex=0;(D=y.exec(p))!==null;){var I=new R.AttrList(D[1]);if(I.TYPE===s){var C={attrs:I,bitrate:0,id:S++,groupId:I["GROUP-ID"],instreamId:I["INSTREAM-ID"],name:I.NAME||I.LANGUAGE||"",type:s,default:I.bool("DEFAULT"),autoselect:I.bool("AUTOSELECT"),forced:I.bool("FORCED"),lang:I.LANGUAGE,url:I.URI?O.resolve(I.URI,h):""};if(l.length){var W=O.findGroup(l,C.groupId)||l[0];x(C,W,"audioCodec"),x(C,W,"textCodec")}T.push(C)}}return T},O.parseLevelPlaylist=function(p,h,s,l,D){var T=new U.LevelDetails(h),S=T.fragments,I=null,C=0,W=0,Y=0,H=0,F=null,q=new j.Fragment(l,h),le,pe,Ae,Ge=-1,Fe=!1;for(f.lastIndex=0,T.m3u8=p;(le=f.exec(p))!==null;){Fe&&(Fe=!1,q=new j.Fragment(l,h),q.start=Y,q.sn=C,q.cc=H,q.level=s,I&&(q.initSegment=I,q.rawProgramDateTime=I.rawProgramDateTime));var Ue=le[1];if(Ue){q.duration=parseFloat(Ue);var _e=(" "+le[2]).slice(1);q.title=_e||null,q.tagList.push(_e?["INF",Ue,_e]:["INF",Ue])}else if(le[3])Object(z.isFiniteNumber)(q.duration)&&(q.start=Y,Ae&&(q.levelkey=Ae),q.sn=C,q.level=s,q.cc=H,q.urlId=D,S.push(q),q.relurl=(" "+le[3]).slice(1),v(q,F),F=q,Y+=q.duration,C++,W=0,Fe=!0);else if(le[4]){var je=(" "+le[4]).slice(1);F?q.setByteRange(je,F):q.setByteRange(je)}else if(le[5])q.rawProgramDateTime=(" "+le[5]).slice(1),q.tagList.push(["PROGRAM-DATE-TIME",q.rawProgramDateTime]),Ge===-1&&(Ge=S.length);else{if(le=le[0].match(m),!le){c.logger.warn("No matches on slow regex match for level playlist!");continue}for(pe=1;pe-1){c.logger.warn("Keyformat "+yt+" is not supported from the manifest");continue}else if(yt!=="identity")continue;Me&&(Ae=_.LevelKey.fromURL(h,We),We&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(Me)>=0&&(Ae.method=Me,Ae.keyFormat=yt,Ze&&(Ae.keyID=Ze),Qe&&(Ae.keyFormatVersions=Qe),Ae.iv=Ke));break}case"START":{var dt=new R.AttrList(he),pt=dt.decimalFloatingPoint("TIME-OFFSET");Object(z.isFiniteNumber)(pt)&&(T.startTimeOffset=pt);break}case"MAP":{var At=new R.AttrList(he);q.relurl=At.URI,At.BYTERANGE&&q.setByteRange(At.BYTERANGE),q.level=s,q.sn="initSegment",Ae&&(q.levelkey=Ae),q.initSegment=null,I=q,Fe=!0;break}case"SERVER-CONTROL":{var wt=new R.AttrList(he);T.canBlockReload=wt.bool("CAN-BLOCK-RELOAD"),T.canSkipUntil=wt.optionalFloat("CAN-SKIP-UNTIL",0),T.canSkipDateRanges=T.canSkipUntil>0&&wt.bool("CAN-SKIP-DATERANGES"),T.partHoldBack=wt.optionalFloat("PART-HOLD-BACK",0),T.holdBack=wt.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var Oe=new R.AttrList(he);T.partTarget=Oe.decimalFloatingPoint("PART-TARGET");break}case"PART":{var we=T.partList;we||(we=T.partList=[]);var Je=W>0?we[we.length-1]:void 0,st=W++,He=new j.Part(new R.AttrList(he),q,h,st,Je);we.push(He),q.duration+=He.duration;break}case"PRELOAD-HINT":{var nt=new R.AttrList(he);T.preloadHint=nt;break}case"RENDITION-REPORT":{var Te=new R.AttrList(he);T.renditionReports=T.renditionReports||[],T.renditionReports.push(Te);break}default:c.logger.warn("line parsed but not handled: "+le);break}}}F&&!F.relurl?(S.pop(),Y-=F.duration,T.partList&&(T.fragmentHint=F)):T.partList&&(v(q,F),q.cc=H,T.fragmentHint=q);var ge=S.length,be=S[0],re=S[ge-1];if(Y+=T.skippedSegments*T.targetduration,Y>0&&ge&&re){T.averagetargetduration=Y/ge;var ie=re.sn;T.endSN=ie!=="initSegment"?ie:0,be&&(T.startCC=be.cc,be.initSegment||T.fragments.every(function(ce){return ce.relurl&&n(ce.relurl)})&&(c.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),q=new j.Fragment(l,h),q.relurl=re.relurl,q.level=s,q.sn="initSegment",be.initSegment=q,T.needSidxRanges=!0))}else T.endSN=0,T.startCC=0;return T.fragmentHint&&(Y+=T.fragmentHint.duration),T.totalduration=Y,T.endCC=H,Ge>0&&E(S,Ge),T},O}();function u(O,A){["video","audio","text"].forEach(function(p){var h=O.filter(function(l){return Object(g.isCodecType)(l,p)});if(h.length){var s=h.filter(function(l){return l.lastIndexOf("avc1",0)===0||l.lastIndexOf("mp4a",0)===0});A[p+"Codec"]=s.length>0?s[0]:h[0],O=O.filter(function(l){return h.indexOf(l)===-1})}}),A.unknownCodecs=O}function x(O,A,p){var h=A[p];h&&(O[p]=h)}function E(O,A){for(var p=O[A],h=A;h--;){var s=O[h];if(!s)return;s.programDateTime=p.programDateTime-s.duration*1e3,p=s}}function v(O,A){O.rawProgramDateTime?O.programDateTime=Date.parse(O.rawProgramDateTime):A!=null&&A.programDateTime&&(O.programDateTime=A.endProgramDateTime),Object(z.isFiniteNumber)(O.programDateTime)||(O.programDateTime=null,O.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(ee,K,P){"use strict";P.r(K);var z=P("./src/polyfills/number.ts"),B=P("./src/events.ts"),M=P("./src/errors.ts"),j=P("./src/utils/logger.ts"),U=P("./src/utils/mp4-tools.ts"),_=P("./src/loader/m3u8-parser.ts"),R=P("./src/types/loader.ts"),c=P("./src/utils/attr-list.ts");function g(f){var m=f.type;switch(m){case R.PlaylistContextType.AUDIO_TRACK:return R.PlaylistLevelType.AUDIO;case R.PlaylistContextType.SUBTITLE_TRACK:return R.PlaylistLevelType.SUBTITLE;default:return R.PlaylistLevelType.MAIN}}function w(f,m){var a=f.url;return(a===void 0||a.indexOf("data:")===0)&&(a=m.url),a}var y=function(){function f(a){this.hls=void 0,this.loaders=Object.create(null),this.hls=a,this.registerListeners()}var m=f.prototype;return m.registerListeners=function(){var n=this.hls;n.on(B.Events.MANIFEST_LOADING,this.onManifestLoading,this),n.on(B.Events.LEVEL_LOADING,this.onLevelLoading,this),n.on(B.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),n.on(B.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},m.unregisterListeners=function(){var n=this.hls;n.off(B.Events.MANIFEST_LOADING,this.onManifestLoading,this),n.off(B.Events.LEVEL_LOADING,this.onLevelLoading,this),n.off(B.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),n.off(B.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},m.createInternalLoader=function(n){var o=this.hls.config,u=o.pLoader,x=o.loader,E=u||x,v=new E(o);return n.loader=v,this.loaders[n.type]=v,v},m.getInternalLoader=function(n){return this.loaders[n.type]},m.resetInternalLoader=function(n){this.loaders[n]&&delete this.loaders[n]},m.destroyInternalLoaders=function(){for(var n in this.loaders){var o=this.loaders[n];o&&o.destroy(),this.resetInternalLoader(n)}},m.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},m.onManifestLoading=function(n,o){var u=o.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:R.PlaylistContextType.MANIFEST,url:u,deliveryDirectives:null})},m.onLevelLoading=function(n,o){var u=o.id,x=o.level,E=o.url,v=o.deliveryDirectives;this.load({id:u,groupId:null,level:x,responseType:"text",type:R.PlaylistContextType.LEVEL,url:E,deliveryDirectives:v})},m.onAudioTrackLoading=function(n,o){var u=o.id,x=o.groupId,E=o.url,v=o.deliveryDirectives;this.load({id:u,groupId:x,level:null,responseType:"text",type:R.PlaylistContextType.AUDIO_TRACK,url:E,deliveryDirectives:v})},m.onSubtitleTrackLoading=function(n,o){var u=o.id,x=o.groupId,E=o.url,v=o.deliveryDirectives;this.load({id:u,groupId:x,level:null,responseType:"text",type:R.PlaylistContextType.SUBTITLE_TRACK,url:E,deliveryDirectives:v})},m.load=function(n){var o,u=this.hls.config,x=this.getInternalLoader(n);if(x){var E=x.context;if(E&&E.url===n.url){j.logger.trace("[playlist-loader]: playlist request ongoing");return}j.logger.log("[playlist-loader]: aborting previous loader for type: "+n.type),x.abort()}var v,O,A,p;switch(n.type){case R.PlaylistContextType.MANIFEST:v=u.manifestLoadingMaxRetry,O=u.manifestLoadingTimeOut,A=u.manifestLoadingRetryDelay,p=u.manifestLoadingMaxRetryTimeout;break;case R.PlaylistContextType.LEVEL:case R.PlaylistContextType.AUDIO_TRACK:case R.PlaylistContextType.SUBTITLE_TRACK:v=0,O=u.levelLoadingTimeOut;break;default:v=u.levelLoadingMaxRetry,O=u.levelLoadingTimeOut,A=u.levelLoadingRetryDelay,p=u.levelLoadingMaxRetryTimeout;break}if(x=this.createInternalLoader(n),(o=n.deliveryDirectives)!==null&&o!==void 0&&o.part){var h;if(n.type===R.PlaylistContextType.LEVEL&&n.level!==null?h=this.hls.levels[n.level].details:n.type===R.PlaylistContextType.AUDIO_TRACK&&n.id!==null?h=this.hls.audioTracks[n.id].details:n.type===R.PlaylistContextType.SUBTITLE_TRACK&&n.id!==null&&(h=this.hls.subtitleTracks[n.id].details),h){var s=h.partTarget,l=h.targetduration;s&&l&&(O=Math.min(Math.max(s*3,l*.8)*1e3,O))}}var D={timeout:O,maxRetry:v,retryDelay:A,maxRetryDelay:p,highWaterMark:0},T={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};x.load(n,D,T)},m.loadsuccess=function(n,o,u,x){if(x===void 0&&(x=null),u.isSidxRequest){this.handleSidxRequest(n,u),this.handlePlaylistLoaded(n,o,u,x);return}this.resetInternalLoader(u.type);var E=n.data;if(E.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(n,u,"no EXTM3U delimiter",x);return}o.parsing.start=performance.now(),E.indexOf("#EXTINF:")>0||E.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(n,o,u,x):this.handleMasterPlaylist(n,o,u,x)},m.loaderror=function(n,o,u){u===void 0&&(u=null),this.handleNetworkError(o,u,!1,n)},m.loadtimeout=function(n,o,u){u===void 0&&(u=null),this.handleNetworkError(o,u,!0)},m.handleMasterPlaylist=function(n,o,u,x){var E=this.hls,v=n.data,O=w(n,u),A=_.default.parseMasterPlaylist(v,O),p=A.levels,h=A.sessionData;if(!p.length){this.handleManifestParsingError(n,u,"no level found in manifest",x);return}var s=p.map(function(C){return{id:C.attrs.AUDIO,audioCodec:C.audioCodec}}),l=p.map(function(C){return{id:C.attrs.SUBTITLES,textCodec:C.textCodec}}),D=_.default.parseMasterPlaylistMedia(v,O,"AUDIO",s),T=_.default.parseMasterPlaylistMedia(v,O,"SUBTITLES",l),S=_.default.parseMasterPlaylistMedia(v,O,"CLOSED-CAPTIONS");if(D.length){var I=D.some(function(C){return!C.url});!I&&p[0].audioCodec&&!p[0].attrs.AUDIO&&(j.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),D.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new c.AttrList({}),bitrate:0,url:""}))}E.trigger(B.Events.MANIFEST_LOADED,{levels:p,audioTracks:D,subtitles:T,captions:S,url:O,stats:o,networkDetails:x,sessionData:h})},m.handleTrackOrLevelPlaylist=function(n,o,u,x){var E=this.hls,v=u.id,O=u.level,A=u.type,p=w(n,u),h=Object(z.isFiniteNumber)(v)?v:0,s=Object(z.isFiniteNumber)(O)?O:h,l=g(u),D=_.default.parseLevelPlaylist(n.data,p,s,l,h);if(!D.fragments.length){E.trigger(B.Events.ERROR,{type:M.ErrorTypes.NETWORK_ERROR,details:M.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:p,reason:"no fragments found in level",level:typeof u.level=="number"?u.level:void 0});return}if(A===R.PlaylistContextType.MANIFEST){var T={attrs:new c.AttrList({}),bitrate:0,details:D,name:"",url:p};E.trigger(B.Events.MANIFEST_LOADED,{levels:[T],audioTracks:[],url:p,stats:o,networkDetails:x,sessionData:null})}if(o.parsing.end=performance.now(),D.needSidxRanges){var S,I=(S=D.fragments[0].initSegment)===null||S===void 0?void 0:S.url;this.load({url:I,isSidxRequest:!0,type:A,level:O,levelDetails:D,id:v,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}u.levelDetails=D,this.handlePlaylistLoaded(n,o,u,x)},m.handleSidxRequest=function(n,o){var u=Object(U.parseSegmentIndex)(new Uint8Array(n.data));if(!u)return;var x=u.references,E=o.levelDetails;x.forEach(function(v,O){var A=v.info,p=E.fragments[O];p.byteRange.length===0&&p.setByteRange(String(1+A.end-A.start)+"@"+String(A.start)),p.initSegment&&p.initSegment.setByteRange(String(u.moovEndOffset)+"@0")})},m.handleManifestParsingError=function(n,o,u,x){this.hls.trigger(B.Events.ERROR,{type:M.ErrorTypes.NETWORK_ERROR,details:M.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:o.type===R.PlaylistContextType.MANIFEST,url:n.url,reason:u,response:n,context:o,networkDetails:x})},m.handleNetworkError=function(n,o,u,x){u===void 0&&(u=!1),j.logger.warn("[playlist-loader]: A network "+(u?"timeout":"error")+" occurred while loading "+n.type+" level: "+n.level+" id: "+n.id+' group-id: "'+n.groupId+'"');var E=M.ErrorDetails.UNKNOWN,v=!1,O=this.getInternalLoader(n);switch(n.type){case R.PlaylistContextType.MANIFEST:E=u?M.ErrorDetails.MANIFEST_LOAD_TIMEOUT:M.ErrorDetails.MANIFEST_LOAD_ERROR,v=!0;break;case R.PlaylistContextType.LEVEL:E=u?M.ErrorDetails.LEVEL_LOAD_TIMEOUT:M.ErrorDetails.LEVEL_LOAD_ERROR,v=!1;break;case R.PlaylistContextType.AUDIO_TRACK:E=u?M.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:M.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,v=!1;break;case R.PlaylistContextType.SUBTITLE_TRACK:E=u?M.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:M.ErrorDetails.SUBTITLE_LOAD_ERROR,v=!1;break}O&&this.resetInternalLoader(n.type);var A={type:M.ErrorTypes.NETWORK_ERROR,details:E,fatal:v,url:n.url,loader:O,context:n,networkDetails:o};x&&(A.response=x),this.hls.trigger(B.Events.ERROR,A)},m.handlePlaylistLoaded=function(n,o,u,x){var E=u.type,v=u.level,O=u.id,A=u.groupId,p=u.loader,h=u.levelDetails,s=u.deliveryDirectives;if(!(h!=null&&h.targetduration)){this.handleManifestParsingError(n,u,"invalid target duration",x);return}if(!p)return;h.live&&(p.getCacheAge&&(h.ageHeader=p.getCacheAge()||0),(!p.getCacheAge||isNaN(h.ageHeader))&&(h.ageHeader=0));switch(E){case R.PlaylistContextType.MANIFEST:case R.PlaylistContextType.LEVEL:this.hls.trigger(B.Events.LEVEL_LOADED,{details:h,level:v||0,id:O||0,stats:o,networkDetails:x,deliveryDirectives:s});break;case R.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(B.Events.AUDIO_TRACK_LOADED,{details:h,id:O||0,groupId:A||"",stats:o,networkDetails:x,deliveryDirectives:s});break;case R.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(B.Events.SUBTITLE_TRACK_LOADED,{details:h,id:O||0,groupId:A||"",stats:o,networkDetails:x,deliveryDirectives:s});break}},f}();K.default=y},"./src/polyfills/number.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"isFiniteNumber",function(){return z}),P.d(K,"MAX_SAFE_INTEGER",function(){return B});var z=Number.isFinite||function(M){return typeof M=="number"&&isFinite(M)},B=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(ee,K,P){"use strict";P.r(K);var z=function(){function B(){}return B.getSilentFrame=function(j,U){switch(j){case"mp4a.40.2":if(U===1)return new Uint8Array([0,200,0,128,35,128]);if(U===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(U===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(U===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(U===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(U===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(U===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(U===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(U===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}return},B}();K.default=z},"./src/remux/mp4-generator.ts":function(ee,K,P){"use strict";P.r(K);var z=Math.pow(2,32)-1,B=function(){function M(){}return M.init=function(){M.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};var U;for(U in M.types)M.types.hasOwnProperty(U)&&(M.types[U]=[U.charCodeAt(0),U.charCodeAt(1),U.charCodeAt(2),U.charCodeAt(3)]);var _=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),R=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);M.HDLR_TYPES={video:_,audio:R};var c=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),g=new Uint8Array([0,0,0,0,0,0,0,0]);M.STTS=M.STSC=M.STCO=g,M.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),M.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),M.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),M.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var w=new Uint8Array([105,115,111,109]),y=new Uint8Array([97,118,99,49]),f=new Uint8Array([0,0,0,1]);M.FTYP=M.box(M.types.ftyp,w,f,w,y),M.DINF=M.box(M.types.dinf,M.box(M.types.dref,c))},M.box=function(U){for(var _=8,R=arguments.length,c=new Array(R>1?R-1:0),g=1;g>24&255,f[1]=_>>16&255,f[2]=_>>8&255,f[3]=_&255,f.set(U,4),w=0,_=8;w>24&255,U>>16&255,U>>8&255,U&255,R>>24,R>>16&255,R>>8&255,R&255,c>>24,c>>16&255,c>>8&255,c&255,85,196,0,0]))},M.mdia=function(U){return M.box(M.types.mdia,M.mdhd(U.timescale,U.duration),M.hdlr(U.type),M.minf(U))},M.mfhd=function(U){return M.box(M.types.mfhd,new Uint8Array([0,0,0,0,U>>24,U>>16&255,U>>8&255,U&255]))},M.minf=function(U){return U.type==="audio"?M.box(M.types.minf,M.box(M.types.smhd,M.SMHD),M.DINF,M.stbl(U)):M.box(M.types.minf,M.box(M.types.vmhd,M.VMHD),M.DINF,M.stbl(U))},M.moof=function(U,_,R){return M.box(M.types.moof,M.mfhd(U),M.traf(R,_))},M.moov=function(U){for(var _=U.length,R=[];_--;)R[_]=M.trak(U[_]);return M.box.apply(null,[M.types.moov,M.mvhd(U[0].timescale,U[0].duration)].concat(R).concat(M.mvex(U)))},M.mvex=function(U){for(var _=U.length,R=[];_--;)R[_]=M.trex(U[_]);return M.box.apply(null,[M.types.mvex].concat(R))},M.mvhd=function(U,_){_*=U;var R=Math.floor(_/(z+1)),c=Math.floor(_%(z+1)),g=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,U>>24&255,U>>16&255,U>>8&255,U&255,R>>24,R>>16&255,R>>8&255,R&255,c>>24,c>>16&255,c>>8&255,c&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return M.box(M.types.mvhd,g)},M.sdtp=function(U){var _=U.samples||[],R=new Uint8Array(4+_.length),c,g;for(c=0;c<_.length;c++)g=_[c].flags,R[c+4]=g.dependsOn<<4|g.isDependedOn<<2|g.hasRedundancy;return M.box(M.types.sdtp,R)},M.stbl=function(U){return M.box(M.types.stbl,M.stsd(U),M.box(M.types.stts,M.STTS),M.box(M.types.stsc,M.STSC),M.box(M.types.stsz,M.STSZ),M.box(M.types.stco,M.STCO))},M.avc1=function(U){var _=[],R=[],c,g,w;for(c=0;c>>8&255),_.push(w&255),_=_.concat(Array.prototype.slice.call(g));for(c=0;c>>8&255),R.push(w&255),R=R.concat(Array.prototype.slice.call(g));var y=M.box(M.types.avcC,new Uint8Array([1,_[3],_[4],_[5],252|3,224|U.sps.length].concat(_).concat([U.pps.length]).concat(R))),f=U.width,m=U.height,a=U.pixelRatio[0],n=U.pixelRatio[1];return M.box(M.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,f>>8&255,f&255,m>>8&255,m&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),y,M.box(M.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),M.box(M.types.pasp,new Uint8Array([a>>24,a>>16&255,a>>8&255,a&255,n>>24,n>>16&255,n>>8&255,n&255])))},M.esds=function(U){var _=U.config.length;return new Uint8Array([0,0,0,0,3,23+_,0,1,0,4,15+_,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([_]).concat(U.config).concat([6,1,2]))},M.mp4a=function(U){var _=U.samplerate;return M.box(M.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,U.channelCount,0,16,0,0,0,0,_>>8&255,_&255,0,0]),M.box(M.types.esds,M.esds(U)))},M.mp3=function(U){var _=U.samplerate;return M.box(M.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,U.channelCount,0,16,0,0,0,0,_>>8&255,_&255,0,0]))},M.stsd=function(U){return U.type==="audio"?!U.isAAC&&U.codec==="mp3"?M.box(M.types.stsd,M.STSD,M.mp3(U)):M.box(M.types.stsd,M.STSD,M.mp4a(U)):M.box(M.types.stsd,M.STSD,M.avc1(U))},M.tkhd=function(U){var _=U.id,R=U.duration*U.timescale,c=U.width,g=U.height,w=Math.floor(R/(z+1)),y=Math.floor(R%(z+1));return M.box(M.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,_>>24&255,_>>16&255,_>>8&255,_&255,0,0,0,0,w>>24,w>>16&255,w>>8&255,w&255,y>>24,y>>16&255,y>>8&255,y&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,c>>8&255,c&255,0,0,g>>8&255,g&255,0,0]))},M.traf=function(U,_){var R=M.sdtp(U),c=U.id,g=Math.floor(_/(z+1)),w=Math.floor(_%(z+1));return M.box(M.types.traf,M.box(M.types.tfhd,new Uint8Array([0,0,0,0,c>>24,c>>16&255,c>>8&255,c&255])),M.box(M.types.tfdt,new Uint8Array([1,0,0,0,g>>24,g>>16&255,g>>8&255,g&255,w>>24,w>>16&255,w>>8&255,w&255])),M.trun(U,R.length+16+20+8+16+8+8),R)},M.trak=function(U){return U.duration=U.duration||4294967295,M.box(M.types.trak,M.tkhd(U),M.mdia(U))},M.trex=function(U){var _=U.id;return M.box(M.types.trex,new Uint8Array([0,0,0,0,_>>24,_>>16&255,_>>8&255,_&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},M.trun=function(U,_){var R=U.samples||[],c=R.length,g=12+16*c,w=new Uint8Array(g),y,f,m,a,n,o;for(_+=8+g,w.set([0,0,15,1,c>>>24&255,c>>>16&255,c>>>8&255,c&255,_>>>24&255,_>>>16&255,_>>>8&255,_&255],0),y=0;y>>24&255,m>>>16&255,m>>>8&255,m&255,a>>>24&255,a>>>16&255,a>>>8&255,a&255,n.isLeading<<2|n.dependsOn,n.isDependedOn<<6|n.hasRedundancy<<4|n.paddingValue<<1|n.isNonSync,n.degradPrio&240<<8,n.degradPrio&15,o>>>24&255,o>>>16&255,o>>>8&255,o&255],12+16*y);return M.box(M.types.trun,w)},M.initSegment=function(U){M.types||M.init();var _=M.moov(U),R=new Uint8Array(M.FTYP.byteLength+_.byteLength);return R.set(M.FTYP),R.set(_,M.FTYP.byteLength),R},M}();B.types=void 0,B.HDLR_TYPES=void 0,B.STTS=void 0,B.STSC=void 0,B.STCO=void 0,B.STSZ=void 0,B.VMHD=void 0,B.SMHD=void 0,B.STSD=void 0,B.FTYP=void 0,B.DINF=void 0,K.default=B},"./src/remux/mp4-remuxer.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"default",function(){return o}),P.d(K,"normalizePts",function(){return u});var z=P("./src/polyfills/number.ts"),B=P("./src/remux/aac-helper.ts"),M=P("./src/remux/mp4-generator.ts"),j=P("./src/events.ts"),U=P("./src/errors.ts"),_=P("./src/utils/logger.ts"),R=P("./src/types/loader.ts"),c=P("./src/utils/timescale-conversion.ts");function g(){return g=Object.assign||function(O){for(var A=1;A0?D:T.pts},h[0].pts);return s&&_.logger.debug("PTS rollover detected"),l},A.remux=function(h,s,l,D,T,S,I,C){var W,Y,H,F,q,le,pe=T,Ae=T,Ge=h.pid>-1,Fe=s.pid>-1,Ue=s.samples.length,_e=h.samples.length>0,je=Ue>1,xe=(!Ge||_e)&&(!Fe||je)||this.ISGenerated||I;if(xe){this.ISGenerated||(H=this.generateIS(h,s,T));var he=this.isVideoContiguous,te=-1;if(je&&(te=x(s.samples),!he&&this.config.forceKeyFrameOnDiscontinuity))if(le=!0,te>0){_.logger.warn("[mp4-remuxer]: Dropped "+te+" out of "+Ue+" video samples due to a missing keyframe");var ye=this.getVideoStartPts(s.samples);s.samples=s.samples.slice(te),s.dropped+=te,Ae+=(s.samples[0].pts-ye)/(s.timescale||9e4)}else te===-1&&(_.logger.warn("[mp4-remuxer]: No keyframe found out of "+Ue+" video samples"),le=!1);if(this.ISGenerated){if(_e&&je){var ue=this.getVideoStartPts(s.samples),Le=u(h.samples[0].pts,ue)-ue,ae=Le/s.inputTimeScale;pe+=Math.max(0,ae),Ae+=Math.max(0,-ae)}if(_e){if(h.samplerate||(_.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),H=this.generateIS(h,s,T)),Y=this.remuxAudio(h,pe,this.isAudioContiguous,S,Fe||je||C===R.PlaylistLevelType.AUDIO?Ae:void 0),je){var oe=Y?Y.endPTS-Y.startPTS:0;s.inputTimeScale||(_.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),H=this.generateIS(h,s,T)),W=this.remuxVideo(s,Ae,he,oe)}}else je&&(W=this.remuxVideo(s,Ae,he,0));W&&(W.firstKeyFrame=te,W.independent=te!==-1)}}return this.ISGenerated&&(l.samples.length&&(q=this.remuxID3(l,T)),D.samples.length&&(F=this.remuxText(D,T))),{audio:Y,video:W,initSegment:H,independent:le,text:F,id3:q}},A.generateIS=function(h,s,l){var D=h.samples,T=s.samples,S=this.typeSupported,I={},C=!Object(z.isFiniteNumber)(this._initPTS),W="audio/mp4",Y,H,F;if(C&&(Y=H=Infinity),h.config&&D.length&&(h.timescale=h.samplerate,h.isAAC||(S.mpeg?(W="audio/mpeg",h.codec=""):S.mp3&&(h.codec="mp3")),I.audio={id:"audio",container:W,codec:h.codec,initSegment:!h.isAAC&&S.mpeg?new Uint8Array(0):M.default.initSegment([h]),metadata:{channelCount:h.channelCount}},C&&(F=h.inputTimeScale,Y=H=D[0].pts-Math.round(F*l))),s.sps&&s.pps&&T.length&&(s.timescale=s.inputTimeScale,I.video={id:"main",container:"video/mp4",codec:s.codec,initSegment:M.default.initSegment([s]),metadata:{width:s.width,height:s.height}},C)){F=s.inputTimeScale;var q=this.getVideoStartPts(T),le=Math.round(F*l);H=Math.min(H,u(T[0].dts,q)-le),Y=Math.min(Y,q-le)}if(Object.keys(I).length)return this.ISGenerated=!0,C&&(this._initPTS=Y,this._initDTS=H),{tracks:I,initPTS:Y,timescale:F}},A.remuxVideo=function(h,s,l,D){var T=h.inputTimeScale,S=h.samples,I=[],C=S.length,W=this._initPTS,Y=this.nextAvcDts,H=8,F,q,le,pe=Number.POSITIVE_INFINITY,Ae=Number.NEGATIVE_INFINITY,Ge=0,Fe=!1;if(!l||Y===null){var Ue=s*T,_e=S[0].pts-u(S[0].dts,S[0].pts);Y=Ue-_e}for(var je=0;jexe.pts){var he=9e4*.2;Ge=Math.max(Math.min(Ge,xe.pts-xe.dts),-1*he)}xe.dts0?je-1:je].dts&&(Fe=!0)}Fe&&S.sort(function(gt,qe){var Xe=gt.dts-qe.dts,Pe=gt.pts-qe.pts;return Xe||Pe}),q=S[0].dts,le=S[S.length-1].dts;var te=Math.round((le-q)/(C-1));if(Ge<0){if(Gete,Se=ae<-1;if(oe||Se){oe?_.logger.warn("AVC: "+Object(c.toMsFromMpegTsClock)(ae,!0)+" ms ("+ae+"dts) hole between fragments detected, filling it"):_.logger.warn("AVC: "+Object(c.toMsFromMpegTsClock)(-ae,!0)+" ms ("+ae+"dts) overlapping between fragments detected"),q=Y;var Me=S[0].pts-ae;S[0].dts=q,S[0].pts=Me,_.logger.log("Video: First PTS/DTS adjusted: "+Object(c.toMsFromMpegTsClock)(Me,!0)+"/"+Object(c.toMsFromMpegTsClock)(q,!0)+", delta: "+Object(c.toMsFromMpegTsClock)(ae,!0)+" ms")}}n&&(q=Math.max(0,q));for(var We=0,Ke=0,Qe=0;Qe0?we-1:we].dts;if(ie.stretchShortVideoTrack&&this.nextAudioPts!==null){var Ee=Math.floor(ie.maxBufferHole*T),Be=(D?pe+D*T:this.nextAudioPts)-Je.pts;Be>Ee?(F=Be-ce,F<0&&(F=ce),_.logger.log("[mp4-remuxer]: It is approximately "+Be/90+" ms to the next segment; using duration "+F/90+" ms for the last video frame.")):F=ce}else F=ce}var Ie=Math.round(Je.pts-Je.dts);I.push(new E(Je.key,F,He,Ie))}if(I.length&&m&&m<70){var ut=I[0].flags;ut.dependsOn=2,ut.isNonSync=0}console.assert(F!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=Y=le+F,this.isVideoContiguous=!0;var bt=M.default.moof(h.sequenceNumber++,q,g({},h,{samples:I})),Tt="video",xt={data1:bt,data2:wt,startPTS:pe/T,endPTS:(Ae+F)/T,startDTS:q/T,endDTS:Y/T,type:Tt,hasAudio:!1,hasVideo:!0,nb:I.length,dropped:h.dropped};return h.samples=[],h.dropped=0,console.assert(wt.length,"MDAT length must not be zero"),xt},A.remuxAudio=function(h,s,l,D,T){var S=h.inputTimeScale,I=h.samplerate?h.samplerate:S,C=S/I,W=h.isAAC?y:f,Y=W*C,H=this._initPTS,F=!h.isAAC&&this.typeSupported.mpeg,q=[],le=h.samples,pe=F?0:8,Ae=this.nextAudioPts||-1,Ge=s*S;if(this.isAudioContiguous=l=l||le.length&&Ae>0&&(D&&Math.abs(Ge-Ae)<9e3||Math.abs(u(le[0].pts-H,Ge)-Ae)<20*Y),le.forEach(function(be){be.pts=u(be.pts-H,Ge)}),!l||Ae<0){if(le=le.filter(function(be){return be.pts>=0}),!le.length)return;T===0?Ae=0:D?Ae=Math.max(0,Ge):Ae=le[0].pts}if(h.isAAC)for(var Fe=T!==void 0,Ue=this.config.maxAudioFramesDrift,_e=0,je=Ae;_e=Ue*Y&&ye0){Ke+=pe;try{We=new Uint8Array(Ke)}catch(be){this.observer.emit(j.Events.ERROR,j.Events.ERROR,{type:U.ErrorTypes.MUX_ERROR,details:U.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:Ke,reason:"fail allocating audio mdat "+Ke});return}if(!F){var wt=new DataView(We.buffer);wt.setUint32(0,Ke),We.set(M.default.types.mdat,4)}}else return;We.set(dt,pe);var Oe=dt.byteLength;pe+=Oe,q.push(new E(!0,W,Oe,0)),Me=pt}var we=q.length;if(!we)return;var Je=q[q.length-1];this.nextAudioPts=Ae=Me+C*Je.duration;var st=F?new Uint8Array(0):M.default.moof(h.sequenceNumber++,Se/C,g({},h,{samples:q}));h.samples=[];var He=Se/S,nt=Ae/S,Te="audio",ge={data1:st,data2:We,startPTS:He,endPTS:nt,startDTS:He,endDTS:nt,type:Te,hasAudio:!0,hasVideo:!1,nb:we};return this.isAudioContiguous=!0,console.assert(We.length,"MDAT length must not be zero"),ge},A.remuxEmptyAudio=function(h,s,l,D){var T=h.inputTimeScale,S=h.samplerate?h.samplerate:T,I=T/S,C=this.nextAudioPts,W=(C!==null?C:D.startDTS*T)+this._initDTS,Y=D.endDTS*T+this._initDTS,H=I*y,F=Math.ceil((Y-W)/H),q=B.default.getSilentFrame(h.manifestCodec||h.codec,h.channelCount);if(_.logger.warn("[mp4-remuxer]: remux empty Audio"),!q){_.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var le=[],pe=0;pe4294967296;)O+=p;return O}function x(O){for(var A=0;A0?this.lastEndDTS=h:(j.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var s=!!O.audio,l=!!O.video,D="";s&&(D+="audio"),l&&(D+="video");var T={data1:E,startPTS:p,startDTS:p,endPTS:h,endDTS:h,type:D,hasAudio:s,hasVideo:l,nb:1,dropped:0};return x.audio=T.type==="audio"?T:void 0,x.video=T.type!=="audio"?T:void 0,x.text=a,x.id3=m,x.initSegment=v,x},c}(),_=function(g,w,y){return Object(B.getStartDTS)(g,w)-y};function R(c,g){var w=c==null?void 0:c.codec;return w&&w.length>4?w:w==="hvc1"?"hvc1.1.c.L120.90":w==="av01"?"av01.0.04M.08":w==="avc1"||g===M.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}K.default=U},"./src/task-loop.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"default",function(){return z});var z=function(){function B(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var M=B.prototype;return M.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},M.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},M.onHandlerDestroyed=function(){},M.hasInterval=function(){return!!this._tickInterval},M.hasNextTick=function(){return!!this._tickTimer},M.setInterval=function(U){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,U),!0)},M.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},M.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},M.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},M.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},M.doTick=function(){},B}()},"./src/types/cmcd.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"CMCDVersion",function(){return z}),P.d(K,"CMCDObjectType",function(){return B}),P.d(K,"CMCDStreamingFormat",function(){return M}),P.d(K,"CMCDStreamType",function(){return j});var z=1,B;(function(U){U.MANIFEST="m",U.AUDIO="a",U.VIDEO="v",U.MUXED="av",U.INIT="i",U.CAPTION="c",U.TIMED_TEXT="tt",U.KEY="k",U.OTHER="o"})(B||(B={}));var M;(function(U){U.DASH="d",U.HLS="h",U.SMOOTH="s",U.OTHER="o"})(M||(M={}));var j;(function(U){U.VOD="v",U.LIVE="l"})(j||(j={}))},"./src/types/level.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"HlsSkip",function(){return M}),P.d(K,"getSkipValue",function(){return j}),P.d(K,"HlsUrlParameters",function(){return U}),P.d(K,"Level",function(){return _});function z(R,c){for(var g=0;gNumber.MAX_SAFE_INTEGER?Infinity:c},U.hexadecimalInteger=function(R){if(this[R]){var c=(this[R]||"0x").slice(2);c=(c.length&1?"0":"")+c;for(var g=new Uint8Array(c.length/2),w=0;wNumber.MAX_SAFE_INTEGER?Infinity:c},U.decimalFloatingPoint=function(R){return parseFloat(this[R])},U.optionalFloat=function(R,c){var g=this[R];return g?parseFloat(g):c},U.enumeratedString=function(R){return this[R]},U.bool=function(R){return this[R]==="YES"},U.decimalResolution=function(R){var c=z.exec(this[R]);return c===null?void 0:{width:parseInt(c[1],10),height:parseInt(c[2],10)}},j.parseAttrList=function(R){var c,g={},w='"';for(B.lastIndex=0;(c=B.exec(R))!==null;){var y=c[2];y.indexOf(w)===0&&y.lastIndexOf(w)===y.length-1&&(y=y.slice(1,-1)),g[c[1]]=y}return g},j}()},"./src/utils/binary-search.ts":function(ee,K,P){"use strict";P.r(K);var z={search:function(M,j){for(var U=0,_=M.length-1,R=null,c=null;U<=_;){R=(U+_)/2|0,c=M[R];var g=j(c);if(g>0)U=R+1;else if(g<0)_=R-1;else return c}return null}};K.default=z},"./src/utils/buffer-helper.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"BufferHelper",function(){return M});var z=P("./src/utils/logger.ts"),B={length:0,start:function(){return 0},end:function(){return 0}},M=function(){function j(){}return j.isBuffered=function(_,R){try{if(_){for(var c=j.getBuffered(_),g=0;g=c.start(g)&&R<=c.end(g))return!0}}catch(w){}return!1},j.bufferInfo=function(_,R,c){try{if(_){var g=j.getBuffered(_),w=[],y;for(y=0;yf&&(g[y-1].end=_[w].end):g.push(_[w])}else g.push(_[w])}else g=_;for(var m=0,a,n=R,o=R,u=0;u=x&&R=l&&z.logger.log(this.time+" ["+l+"] "+D)},p}(),m=function(h){for(var s=[],l=0;lU&&(this.logger.log(y.DEBUG,"Too large cursor position "+this.pos),this.pos=U)},h.moveCursor=function(l){var D=this.pos+l;if(l>1)for(var T=this.pos+1;T=144&&this.backSpace();var D=M(l);if(this.pos>=U){this.logger.log(y.ERROR,"Cannot insert "+l.toString(16)+" ("+D+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(D,this.currPenState),this.moveCursor(1)},h.clearFromPos=function(l){var D;for(D=l;D0&&(l?T="["+D.join(" | ")+"]":T=D.join(` -`)),T},h.getTextAndFormat=function(){return this.rows},p}(),x=function(){function p(s,l,D){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=s,this.outputFilter=l,this.mode=null,this.verbose=0,this.displayedMemory=new u(D),this.nonDisplayedMemory=new u(D),this.lastOutputScreen=new u(D),this.currRollUpRow=this.displayedMemory.rows[j-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=D}var h=p.prototype;return h.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[j-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},h.getHandler=function(){return this.outputFilter},h.setHandler=function(l){this.outputFilter=l},h.setPAC=function(l){this.writeScreen.setPAC(l)},h.setBkgData=function(l){this.writeScreen.setBkgData(l)},h.setMode=function(l){if(l===this.mode)return;this.mode=l,this.logger.log(y.INFO,"MODE="+l),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=l},h.insertChars=function(l){for(var D=0;D=46,D.italics)D.foreground="white";else{var T=Math.floor(l/2)-16,S=["white","green","blue","cyan","red","yellow","magenta"];D.foreground=S[T]}this.logger.log(y.INFO,"MIDROW: "+JSON.stringify(D)),this.writeScreen.setPen(D)},h.outputDataUpdate=function(l){l===void 0&&(l=!1);var D=this.logger.time;if(D===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=D:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,D,this.lastOutputScreen),l&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:D),this.lastOutputScreen.copy(this.displayedMemory))},h.cueSplitAtTime=function(l){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,l,this.displayedMemory),this.cueStartTime=l))},p}(),E=function(){function p(s,l,D){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var T=new f;this.channels=[null,new x(s,l,T),new x(s+1,D,T)],this.cmdHistory=A(),this.logger=T}var h=p.prototype;return h.getHandler=function(l){return this.channels[l].getHandler()},h.setHandler=function(l,D){this.channels[l].setHandler(D)},h.addData=function(l,D){var T,S,I,C=!1;this.logger.time=l;for(var W=0;W ("+m([S,I])+")"),T=this.parseCmd(S,I),T||(T=this.parseMidrow(S,I)),T||(T=this.parsePAC(S,I)),T||(T=this.parseBackgroundAttributes(S,I)),!T&&(C=this.parseChars(S,I),C)){var Y=this.currentChannel;if(Y&&Y>0){var H=this.channels[Y];H.insertChars(C)}else this.logger.log(y.WARNING,"No channel found yet. TEXT-MODE?")}!T&&!C&&this.logger.log(y.WARNING,"Couldn't parse cleaned data "+m([S,I])+" orig: "+m([D[W],D[W+1]]))}},h.parseCmd=function(l,D){var T=this.cmdHistory,S=(l===20||l===28||l===21||l===29)&&D>=32&&D<=47,I=(l===23||l===31)&&D>=33&&D<=35;if(!(S||I))return!1;if(O(l,D,T))return v(null,null,T),this.logger.log(y.DEBUG,"Repeated command ("+m([l,D])+") is dropped"),!0;var C=l===20||l===21||l===23?1:2,W=this.channels[C];return l===20||l===21||l===28||l===29?D===32?W.ccRCL():D===33?W.ccBS():D===34?W.ccAOF():D===35?W.ccAON():D===36?W.ccDER():D===37?W.ccRU(2):D===38?W.ccRU(3):D===39?W.ccRU(4):D===40?W.ccFON():D===41?W.ccRDC():D===42?W.ccTR():D===43?W.ccRTD():D===44?W.ccEDM():D===45?W.ccCR():D===46?W.ccENM():D===47&&W.ccEOC():W.ccTO(D-32),v(l,D,T),this.currentChannel=C,!0},h.parseMidrow=function(l,D){var T=0;if((l===17||l===25)&&D>=32&&D<=47){if(l===17?T=1:T=2,T!==this.currentChannel)return this.logger.log(y.ERROR,"Mismatch channel in midrow parsing"),!1;var S=this.channels[T];return S?(S.ccMIDROW(D),this.logger.log(y.DEBUG,"MIDROW ("+m([l,D])+")"),!0):!1}return!1},h.parsePAC=function(l,D){var T,S=this.cmdHistory,I=(l>=17&&l<=23||l>=25&&l<=31)&&D>=64&&D<=127,C=(l===16||l===24)&&D>=64&&D<=95;if(!(I||C))return!1;if(O(l,D,S))return v(null,null,S),!0;var W=l<=23?1:2;D>=64&&D<=95?T=W===1?_[l]:c[l]:T=W===1?R[l]:g[l];var Y=this.channels[W];return Y?(Y.setPAC(this.interpretPAC(T,D)),v(l,D,S),this.currentChannel=W,!0):!1},h.interpretPAC=function(l,D){var T,S={color:null,italics:!1,indent:null,underline:!1,row:l};return D>95?T=D-96:T=D-64,S.underline=(T&1)===1,T<=13?S.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(T/2)]:T<=15?(S.italics=!0,S.color="white"):S.indent=Math.floor((T-16)/2)*4,S},h.parseChars=function(l,D){var T,S=null,I=null;if(l>=25?(T=2,I=l-8):(T=1,I=l),I>=17&&I<=19){var C;I===17?C=D+80:I===18?C=D+112:C=D+144,this.logger.log(y.INFO,"Special char '"+M(C)+"' in channel "+T),S=[C]}else l>=32&&l<=127&&(S=D===0?[l]:[l,D]);if(S){var W=m(S);this.logger.log(y.DEBUG,"Char codes = "+W.join(",")),v(l,D,this.cmdHistory)}return S},h.parseBackgroundAttributes=function(l,D){var T=(l===16||l===24)&&D>=32&&D<=47,S=(l===23||l===31)&&D>=45&&D<=47;if(!(T||S))return!1;var I,C={};l===16||l===24?(I=Math.floor((D-32)/2),C.background=w[I],D%2===1&&(C.background=C.background+"_semi")):D===45?C.background="transparent":(C.foreground="black",D===47&&(C.underline=!0));var W=l<=23?1:2,Y=this.channels[W];return Y.setBkgData(C),v(l,D,this.cmdHistory),!0},h.reset=function(){for(var l=0;l=16?n--:n++;var v=Object(z.fixLineBreaks)(o.trim()),O=Object(B.generateCueId)(c,g,v);(!R||!R.cues||!R.cues.getCueById(O))&&(m=new u(c,g,v),m.id=O,m.line=x+1,m.align="left",m.position=10+Math.min(80,Math.floor(n*8/32)*10),y.push(m))}return R&&y.length&&(y.sort(function(A,p){return A.line==="auto"||p.line==="auto"?0:A.line>8&&p.line>8?p.line-A.line:A.line-p.line}),y.forEach(function(A){return Object(M.addCueToTrack)(R,A)})),y}};K.default=U},"./src/utils/discontinuities.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"findFirstFragWithCC",function(){return j}),P.d(K,"shouldAlignOnDiscontinuities",function(){return U}),P.d(K,"findDiscontinuousReferenceFrag",function(){return _}),P.d(K,"adjustSlidingStart",function(){return c}),P.d(K,"alignStream",function(){return g}),P.d(K,"alignPDT",function(){return y}),P.d(K,"alignFragmentByPDTDelta",function(){return f}),P.d(K,"alignMediaPlaylistByPDT",function(){return m});var z=P("./src/polyfills/number.ts"),B=P("./src/utils/logger.ts"),M=P("./src/controller/level-helper.ts");function j(a,n){for(var o=null,u=0,x=a.length;uo.startCC||a&&a.cc=this.minWeight_},j.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},j.destroy=function(){},M}();K.default=B},"./src/utils/ewma.ts":function(ee,K,P){"use strict";P.r(K);var z=function(){function B(j,U,_){U===void 0&&(U=0),_===void 0&&(_=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=j,this.alpha_=j?Math.exp(Math.log(.5)/j):0,this.estimate_=U,this.totalWeight_=_}var M=B.prototype;return M.sample=function(U,_){var R=Math.pow(this.alpha_,U);this.estimate_=_*(1-R)+R*this.estimate_,this.totalWeight_+=U},M.getTotalWeight=function(){return this.totalWeight_},M.getEstimate=function(){if(this.alpha_){var U=1-Math.pow(this.alpha_,this.totalWeight_);if(U)return this.estimate_/U}return this.estimate_},B}();K.default=z},"./src/utils/fetch-loader.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"fetchSupported",function(){return f});var z=P("./src/polyfills/number.ts"),B=P("./src/loader/load-stats.ts"),M=P("./src/demux/chunk-cache.ts");function j(u,x){u.prototype=Object.create(x.prototype),u.prototype.constructor=u,g(u,x)}function U(u){var x=typeof Map=="function"?new Map:void 0;return U=function(v){if(v===null||!c(v))return v;if(typeof v!="function")throw new TypeError("Super expression must either be null or a function");if(typeof x!="undefined"){if(x.has(v))return x.get(v);x.set(v,O)}function O(){return _(v,arguments,w(this).constructor)}return O.prototype=Object.create(v.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),g(O,v)},U(u)}function _(u,x,E){return R()?_=Reflect.construct:_=function(O,A,p){var h=[null];h.push.apply(h,A);var s=Function.bind.apply(O,h),l=new s;return p&&g(l,p.prototype),l},_.apply(null,arguments)}function R(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(u){return!1}}function c(u){return Function.toString.call(u).indexOf("[native code]")!==-1}function g(u,x){return g=Object.setPrototypeOf||function(v,O){return v.__proto__=O,v},g(u,x)}function w(u){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)},w(u)}function y(){return y=Object.assign||function(u){for(var x=1;x=p&&h(O,A,s.flush(),v)):h(O,A,I,v),T()}).catch(function(){return Promise.reject()})};return D()},u}();function a(u,x){var E={method:"GET",mode:"cors",credentials:"same-origin",signal:x,headers:new self.Headers(y({},u.headers))};return u.rangeEnd&&E.headers.set("Range","bytes="+u.rangeStart+"-"+String(u.rangeEnd-1)),E}function n(u,x){return new self.Request(u.url,x)}var o=function(u){j(x,u);function x(E,v,O){var A;return A=u.call(this,E)||this,A.code=void 0,A.details=void 0,A.code=v,A.details=O,A}return x}(U(Error));K.default=m},"./src/utils/imsc1-ttml-parser.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"IMSC1_CODEC",function(){return c}),P.d(K,"parseIMSC1",function(){return f});var z=P("./src/utils/mp4-tools.ts"),B=P("./src/utils/vttparser.ts"),M=P("./src/utils/vttcue.ts"),j=P("./src/demux/id3.ts"),U=P("./src/utils/timescale-conversion.ts"),_=P("./src/utils/webvtt-parser.ts");function R(){return R=Object.assign||function(p){for(var h=1;h"):z}function U(c){for(var g=arguments.length,w=new Array(g>1?g-1:0),y=1;y>24,x[E+1]=v>>16&255,x[E+2]=v>>8&255,x[E+3]=v&255}function g(x,E){var v=[];if(!E.length)return v;var O,A,p;"data"in x?(O=x.data,A=x.start,p=x.end):(O=x,A=0,p=O.byteLength);for(var h=A;h1?h+s:p;if(l===E[0])if(E.length===1)v.push({data:O,start:h+8,end:D});else{var T=g({data:O,start:h+8,end:D},E.slice(1));T.length&&j.apply(v,T)}h=D}return v}function w(x){var E=g(x,["moov"]),v=E[0],O=v?v.end:null,A=g(x,["sidx"]);if(!A||!A[0])return null;var p=[],h=A[0],s=h.data[0],l=s===0?8:16,D=R(h,l);l+=4;var T=0,S=0;s===0?l+=8:l+=16,l+=2;var I=h.end+S,C=_(h,l);l+=2;for(var W=0;W>>31;if(q===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var le=R(h,Y);Y+=4,p.push({referenceSize:F,subsegmentDuration:le,info:{duration:le/D,start:I,end:I+F-1}}),I+=F,Y+=4,l=Y}return{earliestPresentationTime:T,timescale:D,version:s,referencesCount:C,references:p,moovEndOffset:O}}function y(x){for(var E=[],v=g(x,["moov","trak"]),O=0;OU)&&(this.startTime=U),this.endTime=_,this.screen=R,this.timelineController.createCaptionsTrack(this.trackName)},M.reset=function(){this.cueRanges=[]},B}()},"./src/utils/texttrack-utils.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"sendAddTrackEvent",function(){return B}),P.d(K,"addCueToTrack",function(){return M}),P.d(K,"clearCurrentCues",function(){return j}),P.d(K,"removeCuesInRange",function(){return U}),P.d(K,"getCuesInRange",function(){return R});var z=P("./src/utils/logger.ts");function B(c,g){var w;try{w=new Event("addtrack")}catch(y){w=document.createEvent("Event"),w.initEvent("addtrack",!1,!1)}w.track=c,g.dispatchEvent(w)}function M(c,g){var w=c.mode;if(w==="disabled"&&(c.mode="hidden"),c.cues&&!c.cues.getCueById(g.id))try{if(c.addCue(g),!c.cues.getCueById(g.id))throw new Error("addCue is failed for: "+g)}catch(f){z.logger.debug("[texttrack-utils]: "+f);var y=new self.TextTrackCue(g.startTime,g.endTime,g.text);y.id=g.id,c.addCue(y)}w==="disabled"&&(c.mode=w)}function j(c){var g=c.mode;if(g==="disabled"&&(c.mode="hidden"),c.cues)for(var w=c.cues.length;w--;)c.removeCue(c.cues[w]);g==="disabled"&&(c.mode=g)}function U(c,g,w){var y=c.mode;if(y==="disabled"&&(c.mode="hidden"),c.cues&&c.cues.length>0)for(var f=R(c.cues,g,w),m=0;mc[w].endTime)return-1;for(var y=0,f=w;y<=f;){var m=Math.floor((f+y)/2);if(gc[m].startTime&&y-1)for(var m=f,a=c.length;m=g&&n.endTime<=w)y.push(n);else if(n.startTime>w)return y}return y}},"./src/utils/time-ranges.ts":function(ee,K,P){"use strict";P.r(K);var z={toString:function(M){for(var j="",U=M.length,_=0;_1?g-1:0),y=1;y100)throw new Error("Position must be between 0 and 100.");p=T,this.hasBeenReset=!0}})),Object.defineProperty(y,"positionAlign",_({},f,{get:function(){return h},set:function(T){var S=U(T);if(!S)throw new SyntaxError("An invalid or illegal string was specified.");h=S,this.hasBeenReset=!0}})),Object.defineProperty(y,"size",_({},f,{get:function(){return s},set:function(T){if(T<0||T>100)throw new Error("Size must be between 0 and 100.");s=T,this.hasBeenReset=!0}})),Object.defineProperty(y,"align",_({},f,{get:function(){return l},set:function(T){var S=U(T);if(!S)throw new SyntaxError("An invalid or illegal string was specified.");l=S,this.hasBeenReset=!0}})),y.displayState=void 0}return R.prototype.getCueAsHTML=function(){var c=self.WebVTT;return c.convertCueToDOMTree(self,this.text)},R}()},"./src/utils/vttparser.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"parseTimeStamp",function(){return M}),P.d(K,"fixLineBreaks",function(){return g}),P.d(K,"VTTParser",function(){return w});var z=P("./src/utils/vttcue.ts"),B=function(){function y(){}var f=y.prototype;return f.decode=function(a,n){if(!a)return"";if(typeof a!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(a))},y}();function M(y){function f(a,n,o,u){return(a|0)*3600+(n|0)*60+(o|0)+parseFloat(u||0)}var m=y.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return m?parseFloat(m[2])>59?f(m[2],m[3],0,m[4]):f(m[1],m[2],m[3],m[4]):null}var j=function(){function y(){this.values=Object.create(null)}var f=y.prototype;return f.set=function(a,n){!this.get(a)&&n!==""&&(this.values[a]=n)},f.get=function(a,n,o){return o?this.has(a)?this.values[a]:n[o]:this.has(a)?this.values[a]:n},f.has=function(a){return a in this.values},f.alt=function(a,n,o){for(var u=0;u=0&&o<=100)return this.set(a,o),!0}return!1},y}();function U(y,f,m,a){var n=a?y.split(a):[y];for(var o in n){if(typeof n[o]!="string")continue;var u=n[o].split(m);if(u.length!==2)continue;var x=u[0],E=u[1];f(x,E)}}var _=new z.default(0,0,""),R=_.align==="middle"?"middle":"center";function c(y,f,m){var a=y;function n(){var x=M(y);if(x===null)throw new Error("Malformed timestamp: "+a);return y=y.replace(/^[^\sa-zA-Z-]+/,""),x}function o(x,E){var v=new j;U(x,function(p,h){var s;switch(p){case"region":for(var l=m.length-1;l>=0;l--)if(m[l].id===h){v.set(p,m[l].region);break}break;case"vertical":v.alt(p,h,["rl","lr"]);break;case"line":s=h.split(","),v.integer(p,s[0]),v.percent(p,s[0])&&v.set("snapToLines",!1),v.alt(p,s[0],["auto"]),s.length===2&&v.alt("lineAlign",s[1],["start",R,"end"]);break;case"position":s=h.split(","),v.percent(p,s[0]),s.length===2&&v.alt("positionAlign",s[1],["start",R,"end","line-left","line-right","auto"]);break;case"size":v.percent(p,h);break;case"align":v.alt(p,h,["start",R,"end","left","right"]);break}},/:/,/\s/),E.region=v.get("region",null),E.vertical=v.get("vertical","");var O=v.get("line","auto");O==="auto"&&_.line===-1&&(O=-1),E.line=O,E.lineAlign=v.get("lineAlign","start"),E.snapToLines=v.get("snapToLines",!0),E.size=v.get("size",100),E.align=v.get("align",R);var A=v.get("position","auto");A==="auto"&&_.position===50&&(A=E.align==="start"||E.align==="left"?0:E.align==="end"||E.align==="right"?100:50),E.position=A}function u(){y=y.replace(/^\s+/,"")}if(u(),f.startTime=n(),u(),y.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+a);y=y.substr(3),u(),f.endTime=n(),u(),o(y,f)}function g(y){return y.replace(//gi,` + timeOffset: `+T);var pe=new j.TransmuxConfig(u,x,o,O,h);this.configureTransmuxer(pe)}if(this.frag=E,this.part=v,D)D.postMessage({cmd:"demux",data:n,decryptdata:S,chunkMeta:p,state:le},n instanceof ArrayBuffer?[n]:[]);else if(l){var Ae=l.push(n,S,p,le);Object(j.isPromise)(Ae)?Ae.then(function(Ge){s.handleTransmuxComplete(Ge)}):this.handleTransmuxComplete(Ae)}},m.flush=function(n){var o=this;n.transmuxing.start=self.performance.now();var u=this.transmuxer,x=this.worker;if(x)x.postMessage({cmd:"flush",chunkMeta:n});else if(u){var E=u.flush(n);Object(j.isPromise)(E)?E.then(function(v){o.handleFlushResult(v,n)}):this.handleFlushResult(E,n)}},m.handleFlushResult=function(n,o){var u=this;n.forEach(function(x){u.handleTransmuxComplete(x)}),this.onFlush(o)},m.onWorkerMessage=function(n){var o=n.data,u=this.hls;switch(o.event){case"init":{self.URL.revokeObjectURL(this.worker.objectURL);break}case"transmuxComplete":{this.handleTransmuxComplete(o.data);break}case"flush":{this.onFlush(o.data);break}default:{o.data=o.data||{},o.data.frag=this.frag,o.data.id=this.id,u.trigger(o.event,o.data);break}}},m.configureTransmuxer=function(n){var o=this.worker,u=this.transmuxer;o?o.postMessage({cmd:"configure",config:n}):u&&u.configure(n)},m.handleTransmuxComplete=function(n){n.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(n)},f}()},"./src/demux/transmuxer-worker.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"default",function(){return _});var z=k("./src/demux/transmuxer.ts"),B=k("./src/events.ts"),M=k("./src/utils/logger.ts"),j=k("./node_modules/eventemitter3/index.js"),U=k.n(j);function _(y){var f=new j.EventEmitter,m=function(n,o){y.postMessage({event:n,data:o})};f.on(B.Events.FRAG_DECRYPTED,m),f.on(B.Events.ERROR,m),y.addEventListener("message",function(a){var n=a.data;switch(n.cmd){case"init":{var o=JSON.parse(n.config);y.transmuxer=new z.default(f,n.typeSupported,o,n.vendor,n.id),Object(M.enableLogs)(o.debug),m("init",null);break}case"configure":{y.transmuxer.configure(n.config);break}case"demux":{var u=y.transmuxer.push(n.data,n.decryptdata,n.chunkMeta,n.state);Object(z.isPromise)(u)?u.then(function(v){R(y,v)}):R(y,u);break}case"flush":{var x=n.chunkMeta,E=y.transmuxer.flush(x);Object(z.isPromise)(E)?E.then(function(v){g(y,v,x)}):g(y,E,x);break}default:break}})}function R(y,f){if(w(f.remuxResult))return;var m=[],a=f.remuxResult,n=a.audio,o=a.video;n&&c(m,n),o&&c(m,o),y.postMessage({event:"transmuxComplete",data:f},m)}function c(y,f){f.data1&&y.push(f.data1.buffer),f.data2&&y.push(f.data2.buffer)}function g(y,f,m){f.forEach(function(a){R(y,a)}),y.postMessage({event:"flush",data:m})}function w(y){return!y.audio&&!y.video&&!y.text&&!y.id3&&!y.initSegment}},"./src/demux/transmuxer.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"default",function(){return o}),k.d(K,"isPromise",function(){return E}),k.d(K,"TransmuxConfig",function(){return v}),k.d(K,"TransmuxState",function(){return O});var z=k("./src/events.ts"),B=k("./src/errors.ts"),M=k("./src/crypt/decrypter.ts"),j=k("./src/demux/aacdemuxer.ts"),U=k("./src/demux/mp4demuxer.ts"),_=k("./src/demux/tsdemuxer.ts"),R=k("./src/demux/mp3demuxer.ts"),c=k("./src/remux/mp4-remuxer.ts"),g=k("./src/remux/passthrough-remuxer.ts"),w=k("./src/demux/chunk-cache.ts"),y=k("./src/utils/mp4-tools.ts"),f=k("./src/utils/logger.ts"),m;try{m=self.performance.now.bind(self.performance)}catch(A){f.logger.debug("Unable to use Performance API on this environment"),m=self.Date.now}var a=[{demux:_.default,remux:c.default},{demux:U.default,remux:g.default},{demux:j.default,remux:c.default},{demux:R.default,remux:c.default}],n=1024;a.forEach(function(A){var p=A.demux;n=Math.max(n,p.minProbeByteLength)});var o=function(){function A(h,s,l,D,T){this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.cache=new w.default,this.observer=h,this.typeSupported=s,this.config=l,this.vendor=D,this.id=T}var p=A.prototype;return p.configure=function(s){this.transmuxConfig=s,this.decrypter&&this.decrypter.reset()},p.push=function(s,l,D,T){var S=this,I=D.transmuxing;I.executeStart=m();var C=new Uint8Array(s),W=this.cache,Y=this.config,H=this.currentTransmuxState,F=this.transmuxConfig;T&&(this.currentTransmuxState=T);var q=u(C,l);if(q&&q.method==="AES-128"){var le=this.getDecrypter();if(Y.enableSoftwareAES){var pe=le.softwareDecrypt(C,q.key.buffer,q.iv.buffer);if(!pe)return I.executeEnd=m(),x(D);C=new Uint8Array(pe)}else return this.decryptionPromise=le.webCryptoDecrypt(C,q.key.buffer,q.iv.buffer).then(function(Se){var Me=S.push(Se,null,D);return S.decryptionPromise=null,Me}),this.decryptionPromise}var Ae=T||H,Ge=Ae.contiguous,Fe=Ae.discontinuity,Ue=Ae.trackSwitch,_e=Ae.accurateTimeOffset,je=Ae.timeOffset,xe=F.audioCodec,he=F.videoCodec,te=F.defaultInitPts,ye=F.duration,ue=F.initSegmentData;if((Fe||Ue)&&this.resetInitSegment(ue,xe,he,ye),Fe&&this.resetInitialTimestamp(te),Ge||this.resetContiguity(),this.needsProbing(C,Fe,Ue)){if(W.dataLength){var Le=W.flush();C=Object(y.appendUint8Array)(Le,C)}this.configureTransmuxer(C,F)}var ae=this.transmux(C,q,je,_e,D),oe=this.currentTransmuxState;return oe.contiguous=!0,oe.discontinuity=!1,oe.trackSwitch=!1,I.executeEnd=m(),ae},p.flush=function(s){var l=this,D=s.transmuxing;D.executeStart=m();var T=this.decrypter,S=this.cache,I=this.currentTransmuxState,C=this.decryptionPromise;if(C)return C.then(function(){return l.flush(s)});var W=[],Y=I.timeOffset;if(T){var H=T.flush();H&&W.push(this.push(H,null,s))}var F=S.dataLength;S.reset();var q=this.demuxer,le=this.remuxer;if(!q||!le)return F>=n&&this.observer.emit(z.Events.ERROR,z.Events.ERROR,{type:B.ErrorTypes.MEDIA_ERROR,details:B.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),D.executeEnd=m(),[x(s)];var pe=q.flush(Y);return E(pe)?pe.then(function(Ae){return l.flushRemux(W,Ae,s),W}):(this.flushRemux(W,pe,s),W)},p.flushRemux=function(s,l,D){var T=l.audioTrack,S=l.avcTrack,I=l.id3Track,C=l.textTrack,W=this.currentTransmuxState,Y=W.accurateTimeOffset,H=W.timeOffset;f.logger.log("[transmuxer.ts]: Flushed fragment "+D.sn+(D.part>-1?" p: "+D.part:"")+" of level "+D.level);var F=this.remuxer.remux(T,S,I,C,H,Y,!0,this.id);s.push({remuxResult:F,chunkMeta:D}),D.transmuxing.executeEnd=m()},p.resetInitialTimestamp=function(s){var l=this.demuxer,D=this.remuxer;if(!l||!D)return;l.resetTimeStamp(s),D.resetTimeStamp(s)},p.resetContiguity=function(){var s=this.demuxer,l=this.remuxer;if(!s||!l)return;s.resetContiguity(),l.resetNextTimestamp()},p.resetInitSegment=function(s,l,D,T){var S=this.demuxer,I=this.remuxer;if(!S||!I)return;S.resetInitSegment(l,D,T),I.resetInitSegment(s,l,D)},p.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},p.transmux=function(s,l,D,T,S){var I;return l&&l.method==="SAMPLE-AES"?I=this.transmuxSampleAes(s,l,D,T,S):I=this.transmuxUnencrypted(s,D,T,S),I},p.transmuxUnencrypted=function(s,l,D,T){var S=this.demuxer.demux(s,l,!1,!this.config.progressive),I=S.audioTrack,C=S.avcTrack,W=S.id3Track,Y=S.textTrack,H=this.remuxer.remux(I,C,W,Y,l,D,!1,this.id);return{remuxResult:H,chunkMeta:T}},p.transmuxSampleAes=function(s,l,D,T,S){var I=this;return this.demuxer.demuxSampleAes(s,l,D).then(function(C){var W=I.remuxer.remux(C.audioTrack,C.avcTrack,C.id3Track,C.textTrack,D,T,!1,I.id);return{remuxResult:W,chunkMeta:S}})},p.configureTransmuxer=function(s,l){for(var D=this.config,T=this.observer,S=this.typeSupported,I=this.vendor,C=l.audioCodec,W=l.defaultInitPts,Y=l.duration,H=l.initSegmentData,F=l.videoCodec,q,le=0,pe=a.length;le0&&p!=null&&p.key!=null&&p.iv!==null&&p.method!=null&&(h=p),h}var x=function(p){return{remuxResult:{},chunkMeta:p}};function E(A){return"then"in A&&A.then instanceof Function}var v=function(p,h,s,l,D){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=p,this.videoCodec=h,this.initSegmentData=s,this.duration=l,this.defaultInitPts=D},O=function(p,h,s,l,D){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=p,this.contiguous=h,this.accurateTimeOffset=s,this.trackSwitch=l,this.timeOffset=D}},"./src/demux/tsdemuxer.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"discardEPB",function(){return x});var z=k("./src/demux/adts.ts"),B=k("./src/demux/mpegaudio.ts"),M=k("./src/demux/exp-golomb.ts"),j=k("./src/demux/id3.ts"),U=k("./src/demux/sample-aes.ts"),_=k("./src/events.ts"),R=k("./src/utils/mp4-tools.ts"),c=k("./src/utils/logger.ts"),g=k("./src/errors.ts"),w={video:1,audio:2,id3:3,text:4},y=function(){function E(O,A,p){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this.aacLastPTS=null,this._initPTS=null,this._initDTS=null,this._pmtId=-1,this._avcTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.observer=O,this.config=A,this.typeSupported=p}E.probe=function(A){var p=E.syncOffset(A);return p<0?!1:(p&&c.logger.warn("MPEG2-TS detected but first sync word found @ offset "+p+", junk ahead ?"),!0)},E.syncOffset=function(A){for(var p=Math.min(1e3,A.length-3*188),h=0;h>4,xe=void 0;if(je>1){if(xe=Fe+5+A[Fe+4],xe===Fe+188)continue}else xe=Fe+4;switch(_e){case I:Ue&&(C&&(l=n(C))&&this.parseAVCPES(l,!1),C={data:[],size:0}),C&&(C.data.push(A.subarray(xe,Fe+188)),C.size+=Fe+188-xe);break;case W:Ue&&(H&&(l=n(H))&&(T.isAAC?this.parseAACPES(l):this.parseMPEGPES(l)),H={data:[],size:0}),H&&(H.data.push(A.subarray(xe,Fe+188)),H.size+=Fe+188-xe);break;case Y:Ue&&(F&&(l=n(F))&&this.parseID3PES(l),F={data:[],size:0}),F&&(F.data.push(A.subarray(xe,Fe+188)),F.size+=Fe+188-xe);break;case 0:Ue&&(xe+=A[xe]+1),pe=this._pmtId=m(A,xe);break;case pe:{Ue&&(xe+=A[xe]+1);var he=a(A,xe,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,h);I=he.avc,I>0&&(D.pid=I),W=he.audio,W>0&&(T.pid=W,T.isAAC=he.isAAC),Y=he.id3,Y>0&&(S.pid=Y),q&&!le&&(c.logger.log("reparse from beginning"),q=!1,Fe=Ge-188),le=this.pmtParsed=!0;break}case 17:case 8191:break;default:q=!0;break}}else this.observer.emit(_.Events.ERROR,_.Events.ERROR,{type:g.ErrorTypes.MEDIA_ERROR,details:g.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});D.pesData=C,T.pesData=H,S.pesData=F;var te={audioTrack:T,avcTrack:D,id3Track:S,textTrack:this._txtTrack};return s&&this.extractRemainingSamples(te),te},v.flush=function(){var A=this.remainderData;this.remainderData=null;var p;return A?p=this.demux(A,-1,!1,!0):p={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(p),this.sampleAes?this.decrypt(p,this.sampleAes):p},v.extractRemainingSamples=function(A){var p=A.audioTrack,h=A.avcTrack,s=A.id3Track,l=h.pesData,D=p.pesData,T=s.pesData,S;l&&(S=n(l))?(this.parseAVCPES(S,!0),h.pesData=null):h.pesData=l,D&&(S=n(D))?(p.isAAC?this.parseAACPES(S):this.parseMPEGPES(S),p.pesData=null):(D!=null&&D.size&&c.logger.log("last AAC PES packet truncated,might overlap between fragments"),p.pesData=D),T&&(S=n(T))?(this.parseID3PES(S),s.pesData=null):s.pesData=T},v.demuxSampleAes=function(A,p,h){var s=this.demux(A,h,!0,!this.config.progressive),l=this.sampleAes=new U.default(this.observer,this.config,p);return this.decrypt(s,l)},v.decrypt=function(A,p){return new Promise(function(h){var s=A.audioTrack,l=A.avcTrack;s.samples&&s.isAAC?p.decryptAacSamples(s.samples,0,function(){l.samples?p.decryptAvcSamples(l.samples,0,0,function(){h(A)}):h(A)}):l.samples&&p.decryptAvcSamples(l.samples,0,0,function(){h(A)})})},v.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},v.parseAVCPES=function(A,p){var h=this,s=this._avcTrack,l=this.parseAVCNALu(A.data),D=!1,T=this.avcSample,S,I=!1;A.data=null,T&&l.length&&!s.audFound&&(o(T,s),T=this.avcSample=f(!1,A.pts,A.dts,"")),l.forEach(function(C){switch(C.type){case 1:{S=!0,T||(T=h.avcSample=f(!0,A.pts,A.dts,"")),D&&(T.debug+="NDR "),T.frame=!0;var W=C.data;if(I&&W.length>4){var Y=new M.default(W).readSliceType();(Y===2||Y===4||Y===7||Y===9)&&(T.key=!0)}break}case 5:S=!0,T||(T=h.avcSample=f(!0,A.pts,A.dts,"")),D&&(T.debug+="IDR "),T.key=!0,T.frame=!0;break;case 6:{S=!0,D&&T&&(T.debug+="SEI ");var H=new M.default(x(C.data));H.readUByte();for(var F=0,q=0,le=!1,pe=0;!le&&H.bytesAvailable>1;){F=0;do pe=H.readUByte(),F+=pe;while(pe===255);q=0;do pe=H.readUByte(),q+=pe;while(pe===255);if(F===4&&H.bytesAvailable!==0){le=!0;var Ae=H.readUByte();if(Ae===181){var Ge=H.readUShort();if(Ge===49){var Fe=H.readUInt();if(Fe===1195456820){var Ue=H.readUByte();if(Ue===3){for(var _e=H.readUByte(),je=H.readUByte(),xe=31&_e,he=[_e,je],te=0;te16){for(var ye=[],ue=0;ue<16;ue++)ye.push(H.readUByte().toString(16)),(ue===3||ue===5||ue===7||ue===9)&&ye.push("-");for(var Le=q-16,ae=new Uint8Array(Le),oe=0;oe=0){var H={data:A.subarray(W,T-s-1),type:Y};D.push(H)}else{var F=this.getLastNalUnit();if(F&&(l&&T<=4-l&&(F.state&&(F.data=F.data.subarray(0,F.data.byteLength-l))),I=T-s-1,I>0)){var q=new Uint8Array(F.data.byteLength+I);q.set(F.data,0),q.set(A.subarray(0,I),F.data.byteLength),F.data=q,F.state=0}}T=0&&s>=0){var le={data:A.subarray(W,p),type:Y,state:s};D.push(le)}if(D.length===0){var pe=this.getLastNalUnit();if(pe){var Ae=new Uint8Array(pe.data.byteLength+A.byteLength);Ae.set(pe.data,0),Ae.set(A,pe.data.byteLength),pe.data=Ae}}return h.naluState=s,D},v.parseAACPES=function(A){var p=0,h=this._audioTrack,s=this.aacOverFlow,l=A.data;if(s){this.aacOverFlow=null;var D=s.sample.unit.byteLength,T=Math.min(s.missing,D),S=D-T;s.sample.unit.set(l.subarray(0,T),S),h.samples.push(s.sample),p=s.missing}var I,C;for(I=p,C=l.length;I1;){var D=new Uint8Array(l[0].length+l[1].length);D.set(l[0]),D.set(l[1],l[0].length),l[0]=D,l.splice(1,1)}O=l[0];var T=(O[0]<<16)+(O[1]<<8)+O[2];if(T===1){if(A=(O[4]<<8)+O[5],A&&A>E.size-6)return null;var S=O[7];S&192&&(h=(O[9]&14)*536870912+(O[10]&255)*4194304+(O[11]&254)*16384+(O[12]&255)*128+(O[13]&254)/2,S&64?(s=(O[14]&14)*536870912+(O[15]&255)*4194304+(O[16]&254)*16384+(O[17]&255)*128+(O[18]&254)/2,h-s>60*9e4&&(c.logger.warn(Math.round((h-s)/9e4)+"s delta between PTS and DTS, align them"),h=s)):s=h),p=O[8];var I=p+9;if(E.size<=I)return null;E.size-=I;for(var C=new Uint8Array(E.size),W=0,Y=l.length;WH){I-=H;continue}else O=O.subarray(I),H-=I,I=0;C.set(O,v),v+=H}return A&&(A-=p+3),{data:C,pts:h,dts:s,len:A}}return null}function o(E,v){if(E.units.length&&E.frame){if(E.pts===void 0){var O=v.samples,A=O.length;if(A){var p=O[A-1];E.pts=p.pts,E.dts=p.dts}else{v.dropped++;return}}v.samples.push(E)}E.debug.length&&c.logger.log(E.pts+"/"+E.dts+":"+E.debug)}function u(E,v){var O=E.length;if(O>0){if(v.pts>=E[O-1].pts)E.push(v);else for(var A=O-1;A>=0;A--)if(v.ptsh)return l;return 0}},{key:"maxAutoLevel",get:function(){var p=this.levels,h=this.autoLevelCapping,s;return h===-1&&p&&p.length?s=p.length-1:s=h,s}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(p){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,p)}},{key:"audioTracks",get:function(){var p=this.audioTrackController;return p?p.audioTracks:[]}},{key:"audioTrack",get:function(){var p=this.audioTrackController;return p?p.audioTrack:-1},set:function(p){var h=this.audioTrackController;h&&(h.audioTrack=p)}},{key:"subtitleTracks",get:function(){var p=this.subtitleTrackController;return p?p.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var p=this.subtitleTrackController;return p?p.subtitleTrack:-1},set:function(p){var h=this.subtitleTrackController;h&&(h.subtitleTrack=p)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var p=this.subtitleTrackController;return p?p.subtitleDisplay:!1},set:function(p){var h=this.subtitleTrackController;h&&(h.subtitleDisplay=p)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(p){this.config.lowLatencyMode=p}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.1.2"}},{key:"Events",get:function(){return n.Events}},{key:"ErrorTypes",get:function(){return o.ErrorTypes}},{key:"ErrorDetails",get:function(){return o.ErrorDetails}},{key:"DefaultConfig",get:function(){return v.defaultConfig?v.defaultConfig:f.hlsDefaultConfig},set:function(p){v.defaultConfig=p}}]),v}();E.defaultConfig=void 0},"./src/is-supported.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"isSupported",function(){return M}),k.d(K,"changeTypeSupported",function(){return j});var z=k("./src/utils/mediasource-helper.ts");function B(){return self.SourceBuffer||self.WebKitSourceBuffer}function M(){var U=Object(z.getMediaSource)();if(!U)return!1;var _=B(),R=U&&typeof U.isTypeSupported=="function"&&U.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),c=!_||_.prototype&&typeof _.prototype.appendBuffer=="function"&&typeof _.prototype.remove=="function";return!!R&&!!c}function j(){var U,_=B();return typeof(_==null||((U=_.prototype)===null||U===void 0)?void 0:U.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"default",function(){return y}),k.d(K,"LoadError",function(){return m});var z=k("./src/polyfills/number.ts"),B=k("./src/errors.ts");function M(a,n){a.prototype=Object.create(n.prototype),a.prototype.constructor=a,c(a,n)}function j(a){var n=typeof Map=="function"?new Map:void 0;return j=function(u){if(u===null||!R(u))return u;if(typeof u!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n!="undefined"){if(n.has(u))return n.get(u);n.set(u,x)}function x(){return U(u,arguments,g(this).constructor)}return x.prototype=Object.create(u.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),c(x,u)},j(a)}function U(a,n,o){return _()?U=Reflect.construct:U=function(x,E,v){var O=[null];O.push.apply(O,E);var A=Function.bind.apply(x,O),p=new A;return v&&c(p,v.prototype),p},U.apply(null,arguments)}function _(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}function R(a){return Function.toString.call(a).indexOf("[native code]")!==-1}function c(a,n){return c=Object.setPrototypeOf||function(u,x){return u.__proto__=x,u},c(a,n)}function g(a){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)},g(a)}var w=Math.pow(2,17),y=function(){function a(o){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=o}var n=a.prototype;return n.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},n.abort=function(){this.loader&&this.loader.abort()},n.load=function(u,x){var E=this,v=u.url;if(!v)return Promise.reject(new m({type:B.ErrorTypes.NETWORK_ERROR,details:B.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:u,networkDetails:null},"Fragment does not have a "+(v?"part list":"url")));this.abort();var O=this.config,A=O.fLoader,p=O.loader;return new Promise(function(h,s){E.loader&&E.loader.destroy();var l=E.loader=u.loader=A?new A(O):new p(O),D=f(u),T={timeout:O.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:O.fragLoadingMaxRetryTimeout,highWaterMark:w};u.stats=l.stats,l.load(D,T,{onSuccess:function(I,C,W,Y){E.resetLoader(u,l),h({frag:u,part:null,payload:I.data,networkDetails:Y})},onError:function(I,C,W){E.resetLoader(u,l),s(new m({type:B.ErrorTypes.NETWORK_ERROR,details:B.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:u,response:I,networkDetails:W}))},onAbort:function(I,C,W){E.resetLoader(u,l),s(new m({type:B.ErrorTypes.NETWORK_ERROR,details:B.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:u,networkDetails:W}))},onTimeout:function(I,C,W){E.resetLoader(u,l),s(new m({type:B.ErrorTypes.NETWORK_ERROR,details:B.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:u,networkDetails:W}))},onProgress:function(I,C,W,Y){x&&x({frag:u,part:null,payload:W,networkDetails:Y})}})})},n.loadPart=function(u,x,E){var v=this;this.abort();var O=this.config,A=O.fLoader,p=O.loader;return new Promise(function(h,s){v.loader&&v.loader.destroy();var l=v.loader=u.loader=A?new A(O):new p(O),D=f(u,x),T={timeout:O.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:O.fragLoadingMaxRetryTimeout,highWaterMark:w};x.stats=l.stats,l.load(D,T,{onSuccess:function(I,C,W,Y){v.resetLoader(u,l),v.updateStatsFromPart(u,x);var H={frag:u,part:x,payload:I.data,networkDetails:Y};E(H),h(H)},onError:function(I,C,W){v.resetLoader(u,l),s(new m({type:B.ErrorTypes.NETWORK_ERROR,details:B.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:u,part:x,response:I,networkDetails:W}))},onAbort:function(I,C,W){u.stats.aborted=x.stats.aborted,v.resetLoader(u,l),s(new m({type:B.ErrorTypes.NETWORK_ERROR,details:B.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:u,part:x,networkDetails:W}))},onTimeout:function(I,C,W){v.resetLoader(u,l),s(new m({type:B.ErrorTypes.NETWORK_ERROR,details:B.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:u,part:x,networkDetails:W}))}})})},n.updateStatsFromPart=function(u,x){var E=u.stats,v=x.stats,O=v.total;if(E.loaded+=v.loaded,O){var A=Math.round(u.duration/x.duration),p=Math.min(Math.round(E.loaded/O),A),h=A-p,s=h*Math.round(E.loaded/p);E.total=E.loaded+s}else E.total=Math.max(E.loaded,E.total);var l=E.loading,D=v.loading;l.start?l.first+=D.first-D.start:(l.start=D.start,l.first=D.first),l.end=D.end},n.resetLoader=function(u,x){u.loader=null,this.loader===x&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),x.destroy()},a}();function f(a,n){n===void 0&&(n=null);var o=n||a,u={frag:a,part:n,responseType:"arraybuffer",url:o.url,headers:{},rangeStart:0,rangeEnd:0},x=o.byteRangeStartOffset,E=o.byteRangeEndOffset;return Object(z.isFiniteNumber)(x)&&Object(z.isFiniteNumber)(E)&&(u.rangeStart=x,u.rangeEnd=E),u}var m=function(a){M(n,a);function n(o){for(var u,x=arguments.length,E=new Array(x>1?x-1:0),v=1;v>8*(15-O)&255;return v},u.setDecryptDataFromLevelKey=function(E,v){var O=E;return(E==null?void 0:E.method)==="AES-128"&&E.uri&&!E.iv&&(O=U.LevelKey.fromURI(E.uri),O.method=E.method,O.iv=this.createInitializationVector(v),O.keyFormat="identity"),O},u.setElementaryStreamInfo=function(E,v,O,A,p,h){h===void 0&&(h=!1);var s=this.elementaryStreams,l=s[E];if(!l){s[E]={startPTS:v,endPTS:O,startDTS:A,endDTS:p,partial:h};return}l.startPTS=Math.min(l.startPTS,v),l.endPTS=Math.max(l.endPTS,O),l.startDTS=Math.min(l.startDTS,A),l.endDTS=Math.max(l.endDTS,p)},u.clearElementaryStreamInfo=function(){var E=this.elementaryStreams;E[y.AUDIO]=null,E[y.VIDEO]=null,E[y.AUDIOVIDEO]=null},w(o,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var E=this.sn;typeof E!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&j.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),E=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,E)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(z.isFiniteNumber)(this.programDateTime))return null;var E=Object(z.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+E*1e3}},{key:"encrypted",get:function(){var E;return!!((E=this.decryptdata)!==null&&E!==void 0&&E.keyFormat&&this.decryptdata.uri)}}]),o}(f),a=function(n){R(o,n);function o(u,x,E,v,O){var A;A=n.call(this,E)||this,A.fragOffset=0,A.duration=0,A.gap=!1,A.independent=!1,A.relurl=void 0,A.fragment=void 0,A.index=void 0,A.stats=new _.LoadStats,A.duration=u.decimalFloatingPoint("DURATION"),A.gap=u.bool("GAP"),A.independent=u.bool("INDEPENDENT"),A.relurl=u.enumeratedString("URI"),A.fragment=x,A.index=v;var p=u.enumeratedString("BYTERANGE");return p&&A.setByteRange(p,O),O&&(A.fragOffset=O.fragOffset+O.duration),A}return w(o,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var x=this.elementaryStreams;return!!(x.audio||x.video||x.audiovideo)}}]),o}(f)},"./src/loader/key-loader.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"default",function(){return j});var z=k("./src/events.ts"),B=k("./src/errors.ts"),M=k("./src/utils/logger.ts"),j=function(){function U(R){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=R,this._registerListeners()}var _=U.prototype;return _._registerListeners=function(){this.hls.on(z.Events.KEY_LOADING,this.onKeyLoading,this)},_._unregisterListeners=function(){this.hls.off(z.Events.KEY_LOADING,this.onKeyLoading)},_.destroy=function(){this._unregisterListeners();for(var c in this.loaders){var g=this.loaders[c];g&&g.destroy()}this.loaders={}},_.onKeyLoading=function(c,g){var w=g.frag,y=w.type,f=this.loaders[y];if(!w.decryptdata){M.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var m=w.decryptdata.uri;if(m!==this.decrypturl||this.decryptkey===null){var a=this.hls.config;if(f&&(M.logger.warn("abort previous key loader for type:"+y),f.abort()),!m){M.logger.warn("key uri is falsy");return}var n=a.loader,o=w.loader=this.loaders[y]=new n(a);this.decrypturl=m,this.decryptkey=null;var u={url:m,frag:w,responseType:"arraybuffer"},x={timeout:a.fragLoadingTimeOut,maxRetry:0,retryDelay:a.fragLoadingRetryDelay,maxRetryDelay:a.fragLoadingMaxRetryTimeout,highWaterMark:0},E={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};o.load(u,x,E)}else this.decryptkey&&(w.decryptdata.key=this.decryptkey,this.hls.trigger(z.Events.KEY_LOADED,{frag:w}))},_.loadsuccess=function(c,g,w){var y=w.frag;if(!y.decryptdata){M.logger.error("after key load, decryptdata unset");return}this.decryptkey=y.decryptdata.key=new Uint8Array(c.data),y.loader=null,delete this.loaders[y.type],this.hls.trigger(z.Events.KEY_LOADED,{frag:y})},_.loaderror=function(c,g){var w=g.frag,y=w.loader;y&&y.abort(),delete this.loaders[w.type],this.hls.trigger(z.Events.ERROR,{type:B.ErrorTypes.NETWORK_ERROR,details:B.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:w,response:c})},_.loadtimeout=function(c,g){var w=g.frag,y=w.loader;y&&y.abort(),delete this.loaders[w.type],this.hls.trigger(z.Events.ERROR,{type:B.ErrorTypes.NETWORK_ERROR,details:B.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:w})},U}()},"./src/loader/level-details.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"LevelDetails",function(){return U});var z=k("./src/polyfills/number.ts");function B(_,R){for(var c=0;cg.endSN||w>0||w===0&&y>0,this.updated||this.advanced?this.misses=Math.floor(g.misses*.6):this.misses=g.misses+1,this.availabilityDelay=g.availabilityDelay},M(_,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(z.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||j}},{key:"drift",get:function(){var g=this.driftEndTime-this.driftStartTime;if(g>0){var w=this.driftEnd-this.driftStart;return w*1e3/g}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var g;return(g=this.partList)!==null&&g!==void 0&&g.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var g;return(g=this.fragments)!==null&&g!==void 0&&g.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var g;return(g=this.partList)!==null&&g!==void 0&&g.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var g;return(g=this.partList)!==null&&g!==void 0&&g.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),_}()},"./src/loader/level-key.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"LevelKey",function(){return U});var z=k("./node_modules/url-toolkit/src/url-toolkit.js"),B=k.n(z);function M(_,R){for(var c=0;c2){var s=h.shift()+".";return s+=parseInt(h.shift()).toString(16),s+=("000"+parseInt(h.shift()).toString(16)).substr(-4),s}return p},O.resolve=function(p,h){return B.buildAbsoluteURL(h,p,{alwaysNormalize:!0})},O.parseMasterPlaylist=function(p,h){var s=[],l={},D=!1;w.lastIndex=0;for(var T;(T=w.exec(p))!=null;)if(T[1]){var S=new R.AttrList(T[1]),I={attrs:S,bitrate:S.decimalInteger("AVERAGE-BANDWIDTH")||S.decimalInteger("BANDWIDTH"),name:S.NAME,url:O.resolve(T[2],h)},C=S.decimalResolution("RESOLUTION");C&&(I.width=C.width,I.height=C.height),u((S.CODECS||"").split(/[ ,]+/).filter(function(Y){return Y}),I),I.videoCodec&&I.videoCodec.indexOf("avc1")!==-1&&(I.videoCodec=O.convertAVC1ToAVCOTI(I.videoCodec)),s.push(I)}else if(T[3]){var W=new R.AttrList(T[3]);W["DATA-ID"]&&(D=!0,l[W["DATA-ID"]]=W)}return{levels:s,sessionData:D?l:null}},O.parseMasterPlaylistMedia=function(p,h,s,l){l===void 0&&(l=[]);var D,T=[],S=0;for(y.lastIndex=0;(D=y.exec(p))!==null;){var I=new R.AttrList(D[1]);if(I.TYPE===s){var C={attrs:I,bitrate:0,id:S++,groupId:I["GROUP-ID"],instreamId:I["INSTREAM-ID"],name:I.NAME||I.LANGUAGE||"",type:s,default:I.bool("DEFAULT"),autoselect:I.bool("AUTOSELECT"),forced:I.bool("FORCED"),lang:I.LANGUAGE,url:I.URI?O.resolve(I.URI,h):""};if(l.length){var W=O.findGroup(l,C.groupId)||l[0];x(C,W,"audioCodec"),x(C,W,"textCodec")}T.push(C)}}return T},O.parseLevelPlaylist=function(p,h,s,l,D){var T=new U.LevelDetails(h),S=T.fragments,I=null,C=0,W=0,Y=0,H=0,F=null,q=new j.Fragment(l,h),le,pe,Ae,Ge=-1,Fe=!1;for(f.lastIndex=0,T.m3u8=p;(le=f.exec(p))!==null;){Fe&&(Fe=!1,q=new j.Fragment(l,h),q.start=Y,q.sn=C,q.cc=H,q.level=s,I&&(q.initSegment=I,q.rawProgramDateTime=I.rawProgramDateTime));var Ue=le[1];if(Ue){q.duration=parseFloat(Ue);var _e=(" "+le[2]).slice(1);q.title=_e||null,q.tagList.push(_e?["INF",Ue,_e]:["INF",Ue])}else if(le[3])Object(z.isFiniteNumber)(q.duration)&&(q.start=Y,Ae&&(q.levelkey=Ae),q.sn=C,q.level=s,q.cc=H,q.urlId=D,S.push(q),q.relurl=(" "+le[3]).slice(1),v(q,F),F=q,Y+=q.duration,C++,W=0,Fe=!0);else if(le[4]){var je=(" "+le[4]).slice(1);F?q.setByteRange(je,F):q.setByteRange(je)}else if(le[5])q.rawProgramDateTime=(" "+le[5]).slice(1),q.tagList.push(["PROGRAM-DATE-TIME",q.rawProgramDateTime]),Ge===-1&&(Ge=S.length);else{if(le=le[0].match(m),!le){c.logger.warn("No matches on slow regex match for level playlist!");continue}for(pe=1;pe-1){c.logger.warn("Keyformat "+yt+" is not supported from the manifest");continue}else if(yt!=="identity")continue;Me&&(Ae=_.LevelKey.fromURL(h,We),We&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(Me)>=0&&(Ae.method=Me,Ae.keyFormat=yt,Ze&&(Ae.keyID=Ze),Qe&&(Ae.keyFormatVersions=Qe),Ae.iv=Ke));break}case"START":{var dt=new R.AttrList(he),pt=dt.decimalFloatingPoint("TIME-OFFSET");Object(z.isFiniteNumber)(pt)&&(T.startTimeOffset=pt);break}case"MAP":{var At=new R.AttrList(he);q.relurl=At.URI,At.BYTERANGE&&q.setByteRange(At.BYTERANGE),q.level=s,q.sn="initSegment",Ae&&(q.levelkey=Ae),q.initSegment=null,I=q,Fe=!0;break}case"SERVER-CONTROL":{var wt=new R.AttrList(he);T.canBlockReload=wt.bool("CAN-BLOCK-RELOAD"),T.canSkipUntil=wt.optionalFloat("CAN-SKIP-UNTIL",0),T.canSkipDateRanges=T.canSkipUntil>0&&wt.bool("CAN-SKIP-DATERANGES"),T.partHoldBack=wt.optionalFloat("PART-HOLD-BACK",0),T.holdBack=wt.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var Oe=new R.AttrList(he);T.partTarget=Oe.decimalFloatingPoint("PART-TARGET");break}case"PART":{var we=T.partList;we||(we=T.partList=[]);var Je=W>0?we[we.length-1]:void 0,st=W++,He=new j.Part(new R.AttrList(he),q,h,st,Je);we.push(He),q.duration+=He.duration;break}case"PRELOAD-HINT":{var nt=new R.AttrList(he);T.preloadHint=nt;break}case"RENDITION-REPORT":{var Te=new R.AttrList(he);T.renditionReports=T.renditionReports||[],T.renditionReports.push(Te);break}default:c.logger.warn("line parsed but not handled: "+le);break}}}F&&!F.relurl?(S.pop(),Y-=F.duration,T.partList&&(T.fragmentHint=F)):T.partList&&(v(q,F),q.cc=H,T.fragmentHint=q);var ge=S.length,be=S[0],re=S[ge-1];if(Y+=T.skippedSegments*T.targetduration,Y>0&&ge&&re){T.averagetargetduration=Y/ge;var ie=re.sn;T.endSN=ie!=="initSegment"?ie:0,be&&(T.startCC=be.cc,be.initSegment||T.fragments.every(function(ce){return ce.relurl&&n(ce.relurl)})&&(c.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),q=new j.Fragment(l,h),q.relurl=re.relurl,q.level=s,q.sn="initSegment",be.initSegment=q,T.needSidxRanges=!0))}else T.endSN=0,T.startCC=0;return T.fragmentHint&&(Y+=T.fragmentHint.duration),T.totalduration=Y,T.endCC=H,Ge>0&&E(S,Ge),T},O}();function u(O,A){["video","audio","text"].forEach(function(p){var h=O.filter(function(l){return Object(g.isCodecType)(l,p)});if(h.length){var s=h.filter(function(l){return l.lastIndexOf("avc1",0)===0||l.lastIndexOf("mp4a",0)===0});A[p+"Codec"]=s.length>0?s[0]:h[0],O=O.filter(function(l){return h.indexOf(l)===-1})}}),A.unknownCodecs=O}function x(O,A,p){var h=A[p];h&&(O[p]=h)}function E(O,A){for(var p=O[A],h=A;h--;){var s=O[h];if(!s)return;s.programDateTime=p.programDateTime-s.duration*1e3,p=s}}function v(O,A){O.rawProgramDateTime?O.programDateTime=Date.parse(O.rawProgramDateTime):A!=null&&A.programDateTime&&(O.programDateTime=A.endProgramDateTime),Object(z.isFiniteNumber)(O.programDateTime)||(O.programDateTime=null,O.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(ee,K,k){"use strict";k.r(K);var z=k("./src/polyfills/number.ts"),B=k("./src/events.ts"),M=k("./src/errors.ts"),j=k("./src/utils/logger.ts"),U=k("./src/utils/mp4-tools.ts"),_=k("./src/loader/m3u8-parser.ts"),R=k("./src/types/loader.ts"),c=k("./src/utils/attr-list.ts");function g(f){var m=f.type;switch(m){case R.PlaylistContextType.AUDIO_TRACK:return R.PlaylistLevelType.AUDIO;case R.PlaylistContextType.SUBTITLE_TRACK:return R.PlaylistLevelType.SUBTITLE;default:return R.PlaylistLevelType.MAIN}}function w(f,m){var a=f.url;return(a===void 0||a.indexOf("data:")===0)&&(a=m.url),a}var y=function(){function f(a){this.hls=void 0,this.loaders=Object.create(null),this.hls=a,this.registerListeners()}var m=f.prototype;return m.registerListeners=function(){var n=this.hls;n.on(B.Events.MANIFEST_LOADING,this.onManifestLoading,this),n.on(B.Events.LEVEL_LOADING,this.onLevelLoading,this),n.on(B.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),n.on(B.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},m.unregisterListeners=function(){var n=this.hls;n.off(B.Events.MANIFEST_LOADING,this.onManifestLoading,this),n.off(B.Events.LEVEL_LOADING,this.onLevelLoading,this),n.off(B.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),n.off(B.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},m.createInternalLoader=function(n){var o=this.hls.config,u=o.pLoader,x=o.loader,E=u||x,v=new E(o);return n.loader=v,this.loaders[n.type]=v,v},m.getInternalLoader=function(n){return this.loaders[n.type]},m.resetInternalLoader=function(n){this.loaders[n]&&delete this.loaders[n]},m.destroyInternalLoaders=function(){for(var n in this.loaders){var o=this.loaders[n];o&&o.destroy(),this.resetInternalLoader(n)}},m.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},m.onManifestLoading=function(n,o){var u=o.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:R.PlaylistContextType.MANIFEST,url:u,deliveryDirectives:null})},m.onLevelLoading=function(n,o){var u=o.id,x=o.level,E=o.url,v=o.deliveryDirectives;this.load({id:u,groupId:null,level:x,responseType:"text",type:R.PlaylistContextType.LEVEL,url:E,deliveryDirectives:v})},m.onAudioTrackLoading=function(n,o){var u=o.id,x=o.groupId,E=o.url,v=o.deliveryDirectives;this.load({id:u,groupId:x,level:null,responseType:"text",type:R.PlaylistContextType.AUDIO_TRACK,url:E,deliveryDirectives:v})},m.onSubtitleTrackLoading=function(n,o){var u=o.id,x=o.groupId,E=o.url,v=o.deliveryDirectives;this.load({id:u,groupId:x,level:null,responseType:"text",type:R.PlaylistContextType.SUBTITLE_TRACK,url:E,deliveryDirectives:v})},m.load=function(n){var o,u=this.hls.config,x=this.getInternalLoader(n);if(x){var E=x.context;if(E&&E.url===n.url){j.logger.trace("[playlist-loader]: playlist request ongoing");return}j.logger.log("[playlist-loader]: aborting previous loader for type: "+n.type),x.abort()}var v,O,A,p;switch(n.type){case R.PlaylistContextType.MANIFEST:v=u.manifestLoadingMaxRetry,O=u.manifestLoadingTimeOut,A=u.manifestLoadingRetryDelay,p=u.manifestLoadingMaxRetryTimeout;break;case R.PlaylistContextType.LEVEL:case R.PlaylistContextType.AUDIO_TRACK:case R.PlaylistContextType.SUBTITLE_TRACK:v=0,O=u.levelLoadingTimeOut;break;default:v=u.levelLoadingMaxRetry,O=u.levelLoadingTimeOut,A=u.levelLoadingRetryDelay,p=u.levelLoadingMaxRetryTimeout;break}if(x=this.createInternalLoader(n),(o=n.deliveryDirectives)!==null&&o!==void 0&&o.part){var h;if(n.type===R.PlaylistContextType.LEVEL&&n.level!==null?h=this.hls.levels[n.level].details:n.type===R.PlaylistContextType.AUDIO_TRACK&&n.id!==null?h=this.hls.audioTracks[n.id].details:n.type===R.PlaylistContextType.SUBTITLE_TRACK&&n.id!==null&&(h=this.hls.subtitleTracks[n.id].details),h){var s=h.partTarget,l=h.targetduration;s&&l&&(O=Math.min(Math.max(s*3,l*.8)*1e3,O))}}var D={timeout:O,maxRetry:v,retryDelay:A,maxRetryDelay:p,highWaterMark:0},T={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};x.load(n,D,T)},m.loadsuccess=function(n,o,u,x){if(x===void 0&&(x=null),u.isSidxRequest){this.handleSidxRequest(n,u),this.handlePlaylistLoaded(n,o,u,x);return}this.resetInternalLoader(u.type);var E=n.data;if(E.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(n,u,"no EXTM3U delimiter",x);return}o.parsing.start=performance.now(),E.indexOf("#EXTINF:")>0||E.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(n,o,u,x):this.handleMasterPlaylist(n,o,u,x)},m.loaderror=function(n,o,u){u===void 0&&(u=null),this.handleNetworkError(o,u,!1,n)},m.loadtimeout=function(n,o,u){u===void 0&&(u=null),this.handleNetworkError(o,u,!0)},m.handleMasterPlaylist=function(n,o,u,x){var E=this.hls,v=n.data,O=w(n,u),A=_.default.parseMasterPlaylist(v,O),p=A.levels,h=A.sessionData;if(!p.length){this.handleManifestParsingError(n,u,"no level found in manifest",x);return}var s=p.map(function(C){return{id:C.attrs.AUDIO,audioCodec:C.audioCodec}}),l=p.map(function(C){return{id:C.attrs.SUBTITLES,textCodec:C.textCodec}}),D=_.default.parseMasterPlaylistMedia(v,O,"AUDIO",s),T=_.default.parseMasterPlaylistMedia(v,O,"SUBTITLES",l),S=_.default.parseMasterPlaylistMedia(v,O,"CLOSED-CAPTIONS");if(D.length){var I=D.some(function(C){return!C.url});!I&&p[0].audioCodec&&!p[0].attrs.AUDIO&&(j.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),D.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new c.AttrList({}),bitrate:0,url:""}))}E.trigger(B.Events.MANIFEST_LOADED,{levels:p,audioTracks:D,subtitles:T,captions:S,url:O,stats:o,networkDetails:x,sessionData:h})},m.handleTrackOrLevelPlaylist=function(n,o,u,x){var E=this.hls,v=u.id,O=u.level,A=u.type,p=w(n,u),h=Object(z.isFiniteNumber)(v)?v:0,s=Object(z.isFiniteNumber)(O)?O:h,l=g(u),D=_.default.parseLevelPlaylist(n.data,p,s,l,h);if(!D.fragments.length){E.trigger(B.Events.ERROR,{type:M.ErrorTypes.NETWORK_ERROR,details:M.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:p,reason:"no fragments found in level",level:typeof u.level=="number"?u.level:void 0});return}if(A===R.PlaylistContextType.MANIFEST){var T={attrs:new c.AttrList({}),bitrate:0,details:D,name:"",url:p};E.trigger(B.Events.MANIFEST_LOADED,{levels:[T],audioTracks:[],url:p,stats:o,networkDetails:x,sessionData:null})}if(o.parsing.end=performance.now(),D.needSidxRanges){var S,I=(S=D.fragments[0].initSegment)===null||S===void 0?void 0:S.url;this.load({url:I,isSidxRequest:!0,type:A,level:O,levelDetails:D,id:v,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}u.levelDetails=D,this.handlePlaylistLoaded(n,o,u,x)},m.handleSidxRequest=function(n,o){var u=Object(U.parseSegmentIndex)(new Uint8Array(n.data));if(!u)return;var x=u.references,E=o.levelDetails;x.forEach(function(v,O){var A=v.info,p=E.fragments[O];p.byteRange.length===0&&p.setByteRange(String(1+A.end-A.start)+"@"+String(A.start)),p.initSegment&&p.initSegment.setByteRange(String(u.moovEndOffset)+"@0")})},m.handleManifestParsingError=function(n,o,u,x){this.hls.trigger(B.Events.ERROR,{type:M.ErrorTypes.NETWORK_ERROR,details:M.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:o.type===R.PlaylistContextType.MANIFEST,url:n.url,reason:u,response:n,context:o,networkDetails:x})},m.handleNetworkError=function(n,o,u,x){u===void 0&&(u=!1),j.logger.warn("[playlist-loader]: A network "+(u?"timeout":"error")+" occurred while loading "+n.type+" level: "+n.level+" id: "+n.id+' group-id: "'+n.groupId+'"');var E=M.ErrorDetails.UNKNOWN,v=!1,O=this.getInternalLoader(n);switch(n.type){case R.PlaylistContextType.MANIFEST:E=u?M.ErrorDetails.MANIFEST_LOAD_TIMEOUT:M.ErrorDetails.MANIFEST_LOAD_ERROR,v=!0;break;case R.PlaylistContextType.LEVEL:E=u?M.ErrorDetails.LEVEL_LOAD_TIMEOUT:M.ErrorDetails.LEVEL_LOAD_ERROR,v=!1;break;case R.PlaylistContextType.AUDIO_TRACK:E=u?M.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:M.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,v=!1;break;case R.PlaylistContextType.SUBTITLE_TRACK:E=u?M.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:M.ErrorDetails.SUBTITLE_LOAD_ERROR,v=!1;break}O&&this.resetInternalLoader(n.type);var A={type:M.ErrorTypes.NETWORK_ERROR,details:E,fatal:v,url:n.url,loader:O,context:n,networkDetails:o};x&&(A.response=x),this.hls.trigger(B.Events.ERROR,A)},m.handlePlaylistLoaded=function(n,o,u,x){var E=u.type,v=u.level,O=u.id,A=u.groupId,p=u.loader,h=u.levelDetails,s=u.deliveryDirectives;if(!(h!=null&&h.targetduration)){this.handleManifestParsingError(n,u,"invalid target duration",x);return}if(!p)return;h.live&&(p.getCacheAge&&(h.ageHeader=p.getCacheAge()||0),(!p.getCacheAge||isNaN(h.ageHeader))&&(h.ageHeader=0));switch(E){case R.PlaylistContextType.MANIFEST:case R.PlaylistContextType.LEVEL:this.hls.trigger(B.Events.LEVEL_LOADED,{details:h,level:v||0,id:O||0,stats:o,networkDetails:x,deliveryDirectives:s});break;case R.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(B.Events.AUDIO_TRACK_LOADED,{details:h,id:O||0,groupId:A||"",stats:o,networkDetails:x,deliveryDirectives:s});break;case R.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(B.Events.SUBTITLE_TRACK_LOADED,{details:h,id:O||0,groupId:A||"",stats:o,networkDetails:x,deliveryDirectives:s});break}},f}();K.default=y},"./src/polyfills/number.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"isFiniteNumber",function(){return z}),k.d(K,"MAX_SAFE_INTEGER",function(){return B});var z=Number.isFinite||function(M){return typeof M=="number"&&isFinite(M)},B=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(ee,K,k){"use strict";k.r(K);var z=function(){function B(){}return B.getSilentFrame=function(j,U){switch(j){case"mp4a.40.2":if(U===1)return new Uint8Array([0,200,0,128,35,128]);if(U===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(U===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(U===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(U===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(U===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(U===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(U===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(U===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}return},B}();K.default=z},"./src/remux/mp4-generator.ts":function(ee,K,k){"use strict";k.r(K);var z=Math.pow(2,32)-1,B=function(){function M(){}return M.init=function(){M.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};var U;for(U in M.types)M.types.hasOwnProperty(U)&&(M.types[U]=[U.charCodeAt(0),U.charCodeAt(1),U.charCodeAt(2),U.charCodeAt(3)]);var _=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),R=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);M.HDLR_TYPES={video:_,audio:R};var c=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),g=new Uint8Array([0,0,0,0,0,0,0,0]);M.STTS=M.STSC=M.STCO=g,M.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),M.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),M.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),M.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var w=new Uint8Array([105,115,111,109]),y=new Uint8Array([97,118,99,49]),f=new Uint8Array([0,0,0,1]);M.FTYP=M.box(M.types.ftyp,w,f,w,y),M.DINF=M.box(M.types.dinf,M.box(M.types.dref,c))},M.box=function(U){for(var _=8,R=arguments.length,c=new Array(R>1?R-1:0),g=1;g>24&255,f[1]=_>>16&255,f[2]=_>>8&255,f[3]=_&255,f.set(U,4),w=0,_=8;w>24&255,U>>16&255,U>>8&255,U&255,R>>24,R>>16&255,R>>8&255,R&255,c>>24,c>>16&255,c>>8&255,c&255,85,196,0,0]))},M.mdia=function(U){return M.box(M.types.mdia,M.mdhd(U.timescale,U.duration),M.hdlr(U.type),M.minf(U))},M.mfhd=function(U){return M.box(M.types.mfhd,new Uint8Array([0,0,0,0,U>>24,U>>16&255,U>>8&255,U&255]))},M.minf=function(U){return U.type==="audio"?M.box(M.types.minf,M.box(M.types.smhd,M.SMHD),M.DINF,M.stbl(U)):M.box(M.types.minf,M.box(M.types.vmhd,M.VMHD),M.DINF,M.stbl(U))},M.moof=function(U,_,R){return M.box(M.types.moof,M.mfhd(U),M.traf(R,_))},M.moov=function(U){for(var _=U.length,R=[];_--;)R[_]=M.trak(U[_]);return M.box.apply(null,[M.types.moov,M.mvhd(U[0].timescale,U[0].duration)].concat(R).concat(M.mvex(U)))},M.mvex=function(U){for(var _=U.length,R=[];_--;)R[_]=M.trex(U[_]);return M.box.apply(null,[M.types.mvex].concat(R))},M.mvhd=function(U,_){_*=U;var R=Math.floor(_/(z+1)),c=Math.floor(_%(z+1)),g=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,U>>24&255,U>>16&255,U>>8&255,U&255,R>>24,R>>16&255,R>>8&255,R&255,c>>24,c>>16&255,c>>8&255,c&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return M.box(M.types.mvhd,g)},M.sdtp=function(U){var _=U.samples||[],R=new Uint8Array(4+_.length),c,g;for(c=0;c<_.length;c++)g=_[c].flags,R[c+4]=g.dependsOn<<4|g.isDependedOn<<2|g.hasRedundancy;return M.box(M.types.sdtp,R)},M.stbl=function(U){return M.box(M.types.stbl,M.stsd(U),M.box(M.types.stts,M.STTS),M.box(M.types.stsc,M.STSC),M.box(M.types.stsz,M.STSZ),M.box(M.types.stco,M.STCO))},M.avc1=function(U){var _=[],R=[],c,g,w;for(c=0;c>>8&255),_.push(w&255),_=_.concat(Array.prototype.slice.call(g));for(c=0;c>>8&255),R.push(w&255),R=R.concat(Array.prototype.slice.call(g));var y=M.box(M.types.avcC,new Uint8Array([1,_[3],_[4],_[5],252|3,224|U.sps.length].concat(_).concat([U.pps.length]).concat(R))),f=U.width,m=U.height,a=U.pixelRatio[0],n=U.pixelRatio[1];return M.box(M.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,f>>8&255,f&255,m>>8&255,m&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),y,M.box(M.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),M.box(M.types.pasp,new Uint8Array([a>>24,a>>16&255,a>>8&255,a&255,n>>24,n>>16&255,n>>8&255,n&255])))},M.esds=function(U){var _=U.config.length;return new Uint8Array([0,0,0,0,3,23+_,0,1,0,4,15+_,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([_]).concat(U.config).concat([6,1,2]))},M.mp4a=function(U){var _=U.samplerate;return M.box(M.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,U.channelCount,0,16,0,0,0,0,_>>8&255,_&255,0,0]),M.box(M.types.esds,M.esds(U)))},M.mp3=function(U){var _=U.samplerate;return M.box(M.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,U.channelCount,0,16,0,0,0,0,_>>8&255,_&255,0,0]))},M.stsd=function(U){return U.type==="audio"?!U.isAAC&&U.codec==="mp3"?M.box(M.types.stsd,M.STSD,M.mp3(U)):M.box(M.types.stsd,M.STSD,M.mp4a(U)):M.box(M.types.stsd,M.STSD,M.avc1(U))},M.tkhd=function(U){var _=U.id,R=U.duration*U.timescale,c=U.width,g=U.height,w=Math.floor(R/(z+1)),y=Math.floor(R%(z+1));return M.box(M.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,_>>24&255,_>>16&255,_>>8&255,_&255,0,0,0,0,w>>24,w>>16&255,w>>8&255,w&255,y>>24,y>>16&255,y>>8&255,y&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,c>>8&255,c&255,0,0,g>>8&255,g&255,0,0]))},M.traf=function(U,_){var R=M.sdtp(U),c=U.id,g=Math.floor(_/(z+1)),w=Math.floor(_%(z+1));return M.box(M.types.traf,M.box(M.types.tfhd,new Uint8Array([0,0,0,0,c>>24,c>>16&255,c>>8&255,c&255])),M.box(M.types.tfdt,new Uint8Array([1,0,0,0,g>>24,g>>16&255,g>>8&255,g&255,w>>24,w>>16&255,w>>8&255,w&255])),M.trun(U,R.length+16+20+8+16+8+8),R)},M.trak=function(U){return U.duration=U.duration||4294967295,M.box(M.types.trak,M.tkhd(U),M.mdia(U))},M.trex=function(U){var _=U.id;return M.box(M.types.trex,new Uint8Array([0,0,0,0,_>>24,_>>16&255,_>>8&255,_&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},M.trun=function(U,_){var R=U.samples||[],c=R.length,g=12+16*c,w=new Uint8Array(g),y,f,m,a,n,o;for(_+=8+g,w.set([0,0,15,1,c>>>24&255,c>>>16&255,c>>>8&255,c&255,_>>>24&255,_>>>16&255,_>>>8&255,_&255],0),y=0;y>>24&255,m>>>16&255,m>>>8&255,m&255,a>>>24&255,a>>>16&255,a>>>8&255,a&255,n.isLeading<<2|n.dependsOn,n.isDependedOn<<6|n.hasRedundancy<<4|n.paddingValue<<1|n.isNonSync,n.degradPrio&240<<8,n.degradPrio&15,o>>>24&255,o>>>16&255,o>>>8&255,o&255],12+16*y);return M.box(M.types.trun,w)},M.initSegment=function(U){M.types||M.init();var _=M.moov(U),R=new Uint8Array(M.FTYP.byteLength+_.byteLength);return R.set(M.FTYP),R.set(_,M.FTYP.byteLength),R},M}();B.types=void 0,B.HDLR_TYPES=void 0,B.STTS=void 0,B.STSC=void 0,B.STCO=void 0,B.STSZ=void 0,B.VMHD=void 0,B.SMHD=void 0,B.STSD=void 0,B.FTYP=void 0,B.DINF=void 0,K.default=B},"./src/remux/mp4-remuxer.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"default",function(){return o}),k.d(K,"normalizePts",function(){return u});var z=k("./src/polyfills/number.ts"),B=k("./src/remux/aac-helper.ts"),M=k("./src/remux/mp4-generator.ts"),j=k("./src/events.ts"),U=k("./src/errors.ts"),_=k("./src/utils/logger.ts"),R=k("./src/types/loader.ts"),c=k("./src/utils/timescale-conversion.ts");function g(){return g=Object.assign||function(O){for(var A=1;A0?D:T.pts},h[0].pts);return s&&_.logger.debug("PTS rollover detected"),l},A.remux=function(h,s,l,D,T,S,I,C){var W,Y,H,F,q,le,pe=T,Ae=T,Ge=h.pid>-1,Fe=s.pid>-1,Ue=s.samples.length,_e=h.samples.length>0,je=Ue>1,xe=(!Ge||_e)&&(!Fe||je)||this.ISGenerated||I;if(xe){this.ISGenerated||(H=this.generateIS(h,s,T));var he=this.isVideoContiguous,te=-1;if(je&&(te=x(s.samples),!he&&this.config.forceKeyFrameOnDiscontinuity))if(le=!0,te>0){_.logger.warn("[mp4-remuxer]: Dropped "+te+" out of "+Ue+" video samples due to a missing keyframe");var ye=this.getVideoStartPts(s.samples);s.samples=s.samples.slice(te),s.dropped+=te,Ae+=(s.samples[0].pts-ye)/(s.timescale||9e4)}else te===-1&&(_.logger.warn("[mp4-remuxer]: No keyframe found out of "+Ue+" video samples"),le=!1);if(this.ISGenerated){if(_e&&je){var ue=this.getVideoStartPts(s.samples),Le=u(h.samples[0].pts,ue)-ue,ae=Le/s.inputTimeScale;pe+=Math.max(0,ae),Ae+=Math.max(0,-ae)}if(_e){if(h.samplerate||(_.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),H=this.generateIS(h,s,T)),Y=this.remuxAudio(h,pe,this.isAudioContiguous,S,Fe||je||C===R.PlaylistLevelType.AUDIO?Ae:void 0),je){var oe=Y?Y.endPTS-Y.startPTS:0;s.inputTimeScale||(_.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),H=this.generateIS(h,s,T)),W=this.remuxVideo(s,Ae,he,oe)}}else je&&(W=this.remuxVideo(s,Ae,he,0));W&&(W.firstKeyFrame=te,W.independent=te!==-1)}}return this.ISGenerated&&(l.samples.length&&(q=this.remuxID3(l,T)),D.samples.length&&(F=this.remuxText(D,T))),{audio:Y,video:W,initSegment:H,independent:le,text:F,id3:q}},A.generateIS=function(h,s,l){var D=h.samples,T=s.samples,S=this.typeSupported,I={},C=!Object(z.isFiniteNumber)(this._initPTS),W="audio/mp4",Y,H,F;if(C&&(Y=H=Infinity),h.config&&D.length&&(h.timescale=h.samplerate,h.isAAC||(S.mpeg?(W="audio/mpeg",h.codec=""):S.mp3&&(h.codec="mp3")),I.audio={id:"audio",container:W,codec:h.codec,initSegment:!h.isAAC&&S.mpeg?new Uint8Array(0):M.default.initSegment([h]),metadata:{channelCount:h.channelCount}},C&&(F=h.inputTimeScale,Y=H=D[0].pts-Math.round(F*l))),s.sps&&s.pps&&T.length&&(s.timescale=s.inputTimeScale,I.video={id:"main",container:"video/mp4",codec:s.codec,initSegment:M.default.initSegment([s]),metadata:{width:s.width,height:s.height}},C)){F=s.inputTimeScale;var q=this.getVideoStartPts(T),le=Math.round(F*l);H=Math.min(H,u(T[0].dts,q)-le),Y=Math.min(Y,q-le)}if(Object.keys(I).length)return this.ISGenerated=!0,C&&(this._initPTS=Y,this._initDTS=H),{tracks:I,initPTS:Y,timescale:F}},A.remuxVideo=function(h,s,l,D){var T=h.inputTimeScale,S=h.samples,I=[],C=S.length,W=this._initPTS,Y=this.nextAvcDts,H=8,F,q,le,pe=Number.POSITIVE_INFINITY,Ae=Number.NEGATIVE_INFINITY,Ge=0,Fe=!1;if(!l||Y===null){var Ue=s*T,_e=S[0].pts-u(S[0].dts,S[0].pts);Y=Ue-_e}for(var je=0;jexe.pts){var he=9e4*.2;Ge=Math.max(Math.min(Ge,xe.pts-xe.dts),-1*he)}xe.dts0?je-1:je].dts&&(Fe=!0)}Fe&&S.sort(function(gt,qe){var Xe=gt.dts-qe.dts,ke=gt.pts-qe.pts;return Xe||ke}),q=S[0].dts,le=S[S.length-1].dts;var te=Math.round((le-q)/(C-1));if(Ge<0){if(Gete,Se=ae<-1;if(oe||Se){oe?_.logger.warn("AVC: "+Object(c.toMsFromMpegTsClock)(ae,!0)+" ms ("+ae+"dts) hole between fragments detected, filling it"):_.logger.warn("AVC: "+Object(c.toMsFromMpegTsClock)(-ae,!0)+" ms ("+ae+"dts) overlapping between fragments detected"),q=Y;var Me=S[0].pts-ae;S[0].dts=q,S[0].pts=Me,_.logger.log("Video: First PTS/DTS adjusted: "+Object(c.toMsFromMpegTsClock)(Me,!0)+"/"+Object(c.toMsFromMpegTsClock)(q,!0)+", delta: "+Object(c.toMsFromMpegTsClock)(ae,!0)+" ms")}}n&&(q=Math.max(0,q));for(var We=0,Ke=0,Qe=0;Qe0?we-1:we].dts;if(ie.stretchShortVideoTrack&&this.nextAudioPts!==null){var Ee=Math.floor(ie.maxBufferHole*T),Be=(D?pe+D*T:this.nextAudioPts)-Je.pts;Be>Ee?(F=Be-ce,F<0&&(F=ce),_.logger.log("[mp4-remuxer]: It is approximately "+Be/90+" ms to the next segment; using duration "+F/90+" ms for the last video frame.")):F=ce}else F=ce}var Ie=Math.round(Je.pts-Je.dts);I.push(new E(Je.key,F,He,Ie))}if(I.length&&m&&m<70){var ut=I[0].flags;ut.dependsOn=2,ut.isNonSync=0}console.assert(F!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=Y=le+F,this.isVideoContiguous=!0;var bt=M.default.moof(h.sequenceNumber++,q,g({},h,{samples:I})),Tt="video",xt={data1:bt,data2:wt,startPTS:pe/T,endPTS:(Ae+F)/T,startDTS:q/T,endDTS:Y/T,type:Tt,hasAudio:!1,hasVideo:!0,nb:I.length,dropped:h.dropped};return h.samples=[],h.dropped=0,console.assert(wt.length,"MDAT length must not be zero"),xt},A.remuxAudio=function(h,s,l,D,T){var S=h.inputTimeScale,I=h.samplerate?h.samplerate:S,C=S/I,W=h.isAAC?y:f,Y=W*C,H=this._initPTS,F=!h.isAAC&&this.typeSupported.mpeg,q=[],le=h.samples,pe=F?0:8,Ae=this.nextAudioPts||-1,Ge=s*S;if(this.isAudioContiguous=l=l||le.length&&Ae>0&&(D&&Math.abs(Ge-Ae)<9e3||Math.abs(u(le[0].pts-H,Ge)-Ae)<20*Y),le.forEach(function(be){be.pts=u(be.pts-H,Ge)}),!l||Ae<0){if(le=le.filter(function(be){return be.pts>=0}),!le.length)return;T===0?Ae=0:D?Ae=Math.max(0,Ge):Ae=le[0].pts}if(h.isAAC)for(var Fe=T!==void 0,Ue=this.config.maxAudioFramesDrift,_e=0,je=Ae;_e=Ue*Y&&ye0){Ke+=pe;try{We=new Uint8Array(Ke)}catch(be){this.observer.emit(j.Events.ERROR,j.Events.ERROR,{type:U.ErrorTypes.MUX_ERROR,details:U.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:Ke,reason:"fail allocating audio mdat "+Ke});return}if(!F){var wt=new DataView(We.buffer);wt.setUint32(0,Ke),We.set(M.default.types.mdat,4)}}else return;We.set(dt,pe);var Oe=dt.byteLength;pe+=Oe,q.push(new E(!0,W,Oe,0)),Me=pt}var we=q.length;if(!we)return;var Je=q[q.length-1];this.nextAudioPts=Ae=Me+C*Je.duration;var st=F?new Uint8Array(0):M.default.moof(h.sequenceNumber++,Se/C,g({},h,{samples:q}));h.samples=[];var He=Se/S,nt=Ae/S,Te="audio",ge={data1:st,data2:We,startPTS:He,endPTS:nt,startDTS:He,endDTS:nt,type:Te,hasAudio:!0,hasVideo:!1,nb:we};return this.isAudioContiguous=!0,console.assert(We.length,"MDAT length must not be zero"),ge},A.remuxEmptyAudio=function(h,s,l,D){var T=h.inputTimeScale,S=h.samplerate?h.samplerate:T,I=T/S,C=this.nextAudioPts,W=(C!==null?C:D.startDTS*T)+this._initDTS,Y=D.endDTS*T+this._initDTS,H=I*y,F=Math.ceil((Y-W)/H),q=B.default.getSilentFrame(h.manifestCodec||h.codec,h.channelCount);if(_.logger.warn("[mp4-remuxer]: remux empty Audio"),!q){_.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var le=[],pe=0;pe4294967296;)O+=p;return O}function x(O){for(var A=0;A0?this.lastEndDTS=h:(j.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var s=!!O.audio,l=!!O.video,D="";s&&(D+="audio"),l&&(D+="video");var T={data1:E,startPTS:p,startDTS:p,endPTS:h,endDTS:h,type:D,hasAudio:s,hasVideo:l,nb:1,dropped:0};return x.audio=T.type==="audio"?T:void 0,x.video=T.type!=="audio"?T:void 0,x.text=a,x.id3=m,x.initSegment=v,x},c}(),_=function(g,w,y){return Object(B.getStartDTS)(g,w)-y};function R(c,g){var w=c==null?void 0:c.codec;return w&&w.length>4?w:w==="hvc1"?"hvc1.1.c.L120.90":w==="av01"?"av01.0.04M.08":w==="avc1"||g===M.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}K.default=U},"./src/task-loop.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"default",function(){return z});var z=function(){function B(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var M=B.prototype;return M.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},M.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},M.onHandlerDestroyed=function(){},M.hasInterval=function(){return!!this._tickInterval},M.hasNextTick=function(){return!!this._tickTimer},M.setInterval=function(U){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,U),!0)},M.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},M.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},M.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},M.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},M.doTick=function(){},B}()},"./src/types/cmcd.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"CMCDVersion",function(){return z}),k.d(K,"CMCDObjectType",function(){return B}),k.d(K,"CMCDStreamingFormat",function(){return M}),k.d(K,"CMCDStreamType",function(){return j});var z=1,B;(function(U){U.MANIFEST="m",U.AUDIO="a",U.VIDEO="v",U.MUXED="av",U.INIT="i",U.CAPTION="c",U.TIMED_TEXT="tt",U.KEY="k",U.OTHER="o"})(B||(B={}));var M;(function(U){U.DASH="d",U.HLS="h",U.SMOOTH="s",U.OTHER="o"})(M||(M={}));var j;(function(U){U.VOD="v",U.LIVE="l"})(j||(j={}))},"./src/types/level.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"HlsSkip",function(){return M}),k.d(K,"getSkipValue",function(){return j}),k.d(K,"HlsUrlParameters",function(){return U}),k.d(K,"Level",function(){return _});function z(R,c){for(var g=0;gNumber.MAX_SAFE_INTEGER?Infinity:c},U.hexadecimalInteger=function(R){if(this[R]){var c=(this[R]||"0x").slice(2);c=(c.length&1?"0":"")+c;for(var g=new Uint8Array(c.length/2),w=0;wNumber.MAX_SAFE_INTEGER?Infinity:c},U.decimalFloatingPoint=function(R){return parseFloat(this[R])},U.optionalFloat=function(R,c){var g=this[R];return g?parseFloat(g):c},U.enumeratedString=function(R){return this[R]},U.bool=function(R){return this[R]==="YES"},U.decimalResolution=function(R){var c=z.exec(this[R]);return c===null?void 0:{width:parseInt(c[1],10),height:parseInt(c[2],10)}},j.parseAttrList=function(R){var c,g={},w='"';for(B.lastIndex=0;(c=B.exec(R))!==null;){var y=c[2];y.indexOf(w)===0&&y.lastIndexOf(w)===y.length-1&&(y=y.slice(1,-1)),g[c[1]]=y}return g},j}()},"./src/utils/binary-search.ts":function(ee,K,k){"use strict";k.r(K);var z={search:function(M,j){for(var U=0,_=M.length-1,R=null,c=null;U<=_;){R=(U+_)/2|0,c=M[R];var g=j(c);if(g>0)U=R+1;else if(g<0)_=R-1;else return c}return null}};K.default=z},"./src/utils/buffer-helper.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"BufferHelper",function(){return M});var z=k("./src/utils/logger.ts"),B={length:0,start:function(){return 0},end:function(){return 0}},M=function(){function j(){}return j.isBuffered=function(_,R){try{if(_){for(var c=j.getBuffered(_),g=0;g=c.start(g)&&R<=c.end(g))return!0}}catch(w){}return!1},j.bufferInfo=function(_,R,c){try{if(_){var g=j.getBuffered(_),w=[],y;for(y=0;yf&&(g[y-1].end=_[w].end):g.push(_[w])}else g.push(_[w])}else g=_;for(var m=0,a,n=R,o=R,u=0;u=x&&R=l&&z.logger.log(this.time+" ["+l+"] "+D)},p}(),m=function(h){for(var s=[],l=0;lU&&(this.logger.log(y.DEBUG,"Too large cursor position "+this.pos),this.pos=U)},h.moveCursor=function(l){var D=this.pos+l;if(l>1)for(var T=this.pos+1;T=144&&this.backSpace();var D=M(l);if(this.pos>=U){this.logger.log(y.ERROR,"Cannot insert "+l.toString(16)+" ("+D+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(D,this.currPenState),this.moveCursor(1)},h.clearFromPos=function(l){var D;for(D=l;D0&&(l?T="["+D.join(" | ")+"]":T=D.join(` +`)),T},h.getTextAndFormat=function(){return this.rows},p}(),x=function(){function p(s,l,D){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=s,this.outputFilter=l,this.mode=null,this.verbose=0,this.displayedMemory=new u(D),this.nonDisplayedMemory=new u(D),this.lastOutputScreen=new u(D),this.currRollUpRow=this.displayedMemory.rows[j-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=D}var h=p.prototype;return h.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[j-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},h.getHandler=function(){return this.outputFilter},h.setHandler=function(l){this.outputFilter=l},h.setPAC=function(l){this.writeScreen.setPAC(l)},h.setBkgData=function(l){this.writeScreen.setBkgData(l)},h.setMode=function(l){if(l===this.mode)return;this.mode=l,this.logger.log(y.INFO,"MODE="+l),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=l},h.insertChars=function(l){for(var D=0;D=46,D.italics)D.foreground="white";else{var T=Math.floor(l/2)-16,S=["white","green","blue","cyan","red","yellow","magenta"];D.foreground=S[T]}this.logger.log(y.INFO,"MIDROW: "+JSON.stringify(D)),this.writeScreen.setPen(D)},h.outputDataUpdate=function(l){l===void 0&&(l=!1);var D=this.logger.time;if(D===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=D:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,D,this.lastOutputScreen),l&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:D),this.lastOutputScreen.copy(this.displayedMemory))},h.cueSplitAtTime=function(l){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,l,this.displayedMemory),this.cueStartTime=l))},p}(),E=function(){function p(s,l,D){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var T=new f;this.channels=[null,new x(s,l,T),new x(s+1,D,T)],this.cmdHistory=A(),this.logger=T}var h=p.prototype;return h.getHandler=function(l){return this.channels[l].getHandler()},h.setHandler=function(l,D){this.channels[l].setHandler(D)},h.addData=function(l,D){var T,S,I,C=!1;this.logger.time=l;for(var W=0;W ("+m([S,I])+")"),T=this.parseCmd(S,I),T||(T=this.parseMidrow(S,I)),T||(T=this.parsePAC(S,I)),T||(T=this.parseBackgroundAttributes(S,I)),!T&&(C=this.parseChars(S,I),C)){var Y=this.currentChannel;if(Y&&Y>0){var H=this.channels[Y];H.insertChars(C)}else this.logger.log(y.WARNING,"No channel found yet. TEXT-MODE?")}!T&&!C&&this.logger.log(y.WARNING,"Couldn't parse cleaned data "+m([S,I])+" orig: "+m([D[W],D[W+1]]))}},h.parseCmd=function(l,D){var T=this.cmdHistory,S=(l===20||l===28||l===21||l===29)&&D>=32&&D<=47,I=(l===23||l===31)&&D>=33&&D<=35;if(!(S||I))return!1;if(O(l,D,T))return v(null,null,T),this.logger.log(y.DEBUG,"Repeated command ("+m([l,D])+") is dropped"),!0;var C=l===20||l===21||l===23?1:2,W=this.channels[C];return l===20||l===21||l===28||l===29?D===32?W.ccRCL():D===33?W.ccBS():D===34?W.ccAOF():D===35?W.ccAON():D===36?W.ccDER():D===37?W.ccRU(2):D===38?W.ccRU(3):D===39?W.ccRU(4):D===40?W.ccFON():D===41?W.ccRDC():D===42?W.ccTR():D===43?W.ccRTD():D===44?W.ccEDM():D===45?W.ccCR():D===46?W.ccENM():D===47&&W.ccEOC():W.ccTO(D-32),v(l,D,T),this.currentChannel=C,!0},h.parseMidrow=function(l,D){var T=0;if((l===17||l===25)&&D>=32&&D<=47){if(l===17?T=1:T=2,T!==this.currentChannel)return this.logger.log(y.ERROR,"Mismatch channel in midrow parsing"),!1;var S=this.channels[T];return S?(S.ccMIDROW(D),this.logger.log(y.DEBUG,"MIDROW ("+m([l,D])+")"),!0):!1}return!1},h.parsePAC=function(l,D){var T,S=this.cmdHistory,I=(l>=17&&l<=23||l>=25&&l<=31)&&D>=64&&D<=127,C=(l===16||l===24)&&D>=64&&D<=95;if(!(I||C))return!1;if(O(l,D,S))return v(null,null,S),!0;var W=l<=23?1:2;D>=64&&D<=95?T=W===1?_[l]:c[l]:T=W===1?R[l]:g[l];var Y=this.channels[W];return Y?(Y.setPAC(this.interpretPAC(T,D)),v(l,D,S),this.currentChannel=W,!0):!1},h.interpretPAC=function(l,D){var T,S={color:null,italics:!1,indent:null,underline:!1,row:l};return D>95?T=D-96:T=D-64,S.underline=(T&1)===1,T<=13?S.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(T/2)]:T<=15?(S.italics=!0,S.color="white"):S.indent=Math.floor((T-16)/2)*4,S},h.parseChars=function(l,D){var T,S=null,I=null;if(l>=25?(T=2,I=l-8):(T=1,I=l),I>=17&&I<=19){var C;I===17?C=D+80:I===18?C=D+112:C=D+144,this.logger.log(y.INFO,"Special char '"+M(C)+"' in channel "+T),S=[C]}else l>=32&&l<=127&&(S=D===0?[l]:[l,D]);if(S){var W=m(S);this.logger.log(y.DEBUG,"Char codes = "+W.join(",")),v(l,D,this.cmdHistory)}return S},h.parseBackgroundAttributes=function(l,D){var T=(l===16||l===24)&&D>=32&&D<=47,S=(l===23||l===31)&&D>=45&&D<=47;if(!(T||S))return!1;var I,C={};l===16||l===24?(I=Math.floor((D-32)/2),C.background=w[I],D%2===1&&(C.background=C.background+"_semi")):D===45?C.background="transparent":(C.foreground="black",D===47&&(C.underline=!0));var W=l<=23?1:2,Y=this.channels[W];return Y.setBkgData(C),v(l,D,this.cmdHistory),!0},h.reset=function(){for(var l=0;l=16?n--:n++;var v=Object(z.fixLineBreaks)(o.trim()),O=Object(B.generateCueId)(c,g,v);(!R||!R.cues||!R.cues.getCueById(O))&&(m=new u(c,g,v),m.id=O,m.line=x+1,m.align="left",m.position=10+Math.min(80,Math.floor(n*8/32)*10),y.push(m))}return R&&y.length&&(y.sort(function(A,p){return A.line==="auto"||p.line==="auto"?0:A.line>8&&p.line>8?p.line-A.line:A.line-p.line}),y.forEach(function(A){return Object(M.addCueToTrack)(R,A)})),y}};K.default=U},"./src/utils/discontinuities.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"findFirstFragWithCC",function(){return j}),k.d(K,"shouldAlignOnDiscontinuities",function(){return U}),k.d(K,"findDiscontinuousReferenceFrag",function(){return _}),k.d(K,"adjustSlidingStart",function(){return c}),k.d(K,"alignStream",function(){return g}),k.d(K,"alignPDT",function(){return y}),k.d(K,"alignFragmentByPDTDelta",function(){return f}),k.d(K,"alignMediaPlaylistByPDT",function(){return m});var z=k("./src/polyfills/number.ts"),B=k("./src/utils/logger.ts"),M=k("./src/controller/level-helper.ts");function j(a,n){for(var o=null,u=0,x=a.length;uo.startCC||a&&a.cc=this.minWeight_},j.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},j.destroy=function(){},M}();K.default=B},"./src/utils/ewma.ts":function(ee,K,k){"use strict";k.r(K);var z=function(){function B(j,U,_){U===void 0&&(U=0),_===void 0&&(_=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=j,this.alpha_=j?Math.exp(Math.log(.5)/j):0,this.estimate_=U,this.totalWeight_=_}var M=B.prototype;return M.sample=function(U,_){var R=Math.pow(this.alpha_,U);this.estimate_=_*(1-R)+R*this.estimate_,this.totalWeight_+=U},M.getTotalWeight=function(){return this.totalWeight_},M.getEstimate=function(){if(this.alpha_){var U=1-Math.pow(this.alpha_,this.totalWeight_);if(U)return this.estimate_/U}return this.estimate_},B}();K.default=z},"./src/utils/fetch-loader.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"fetchSupported",function(){return f});var z=k("./src/polyfills/number.ts"),B=k("./src/loader/load-stats.ts"),M=k("./src/demux/chunk-cache.ts");function j(u,x){u.prototype=Object.create(x.prototype),u.prototype.constructor=u,g(u,x)}function U(u){var x=typeof Map=="function"?new Map:void 0;return U=function(v){if(v===null||!c(v))return v;if(typeof v!="function")throw new TypeError("Super expression must either be null or a function");if(typeof x!="undefined"){if(x.has(v))return x.get(v);x.set(v,O)}function O(){return _(v,arguments,w(this).constructor)}return O.prototype=Object.create(v.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),g(O,v)},U(u)}function _(u,x,E){return R()?_=Reflect.construct:_=function(O,A,p){var h=[null];h.push.apply(h,A);var s=Function.bind.apply(O,h),l=new s;return p&&g(l,p.prototype),l},_.apply(null,arguments)}function R(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(u){return!1}}function c(u){return Function.toString.call(u).indexOf("[native code]")!==-1}function g(u,x){return g=Object.setPrototypeOf||function(v,O){return v.__proto__=O,v},g(u,x)}function w(u){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)},w(u)}function y(){return y=Object.assign||function(u){for(var x=1;x=p&&h(O,A,s.flush(),v)):h(O,A,I,v),T()}).catch(function(){return Promise.reject()})};return D()},u}();function a(u,x){var E={method:"GET",mode:"cors",credentials:"same-origin",signal:x,headers:new self.Headers(y({},u.headers))};return u.rangeEnd&&E.headers.set("Range","bytes="+u.rangeStart+"-"+String(u.rangeEnd-1)),E}function n(u,x){return new self.Request(u.url,x)}var o=function(u){j(x,u);function x(E,v,O){var A;return A=u.call(this,E)||this,A.code=void 0,A.details=void 0,A.code=v,A.details=O,A}return x}(U(Error));K.default=m},"./src/utils/imsc1-ttml-parser.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"IMSC1_CODEC",function(){return c}),k.d(K,"parseIMSC1",function(){return f});var z=k("./src/utils/mp4-tools.ts"),B=k("./src/utils/vttparser.ts"),M=k("./src/utils/vttcue.ts"),j=k("./src/demux/id3.ts"),U=k("./src/utils/timescale-conversion.ts"),_=k("./src/utils/webvtt-parser.ts");function R(){return R=Object.assign||function(p){for(var h=1;h"):z}function U(c){for(var g=arguments.length,w=new Array(g>1?g-1:0),y=1;y>24,x[E+1]=v>>16&255,x[E+2]=v>>8&255,x[E+3]=v&255}function g(x,E){var v=[];if(!E.length)return v;var O,A,p;"data"in x?(O=x.data,A=x.start,p=x.end):(O=x,A=0,p=O.byteLength);for(var h=A;h1?h+s:p;if(l===E[0])if(E.length===1)v.push({data:O,start:h+8,end:D});else{var T=g({data:O,start:h+8,end:D},E.slice(1));T.length&&j.apply(v,T)}h=D}return v}function w(x){var E=g(x,["moov"]),v=E[0],O=v?v.end:null,A=g(x,["sidx"]);if(!A||!A[0])return null;var p=[],h=A[0],s=h.data[0],l=s===0?8:16,D=R(h,l);l+=4;var T=0,S=0;s===0?l+=8:l+=16,l+=2;var I=h.end+S,C=_(h,l);l+=2;for(var W=0;W>>31;if(q===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var le=R(h,Y);Y+=4,p.push({referenceSize:F,subsegmentDuration:le,info:{duration:le/D,start:I,end:I+F-1}}),I+=F,Y+=4,l=Y}return{earliestPresentationTime:T,timescale:D,version:s,referencesCount:C,references:p,moovEndOffset:O}}function y(x){for(var E=[],v=g(x,["moov","trak"]),O=0;OU)&&(this.startTime=U),this.endTime=_,this.screen=R,this.timelineController.createCaptionsTrack(this.trackName)},M.reset=function(){this.cueRanges=[]},B}()},"./src/utils/texttrack-utils.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"sendAddTrackEvent",function(){return B}),k.d(K,"addCueToTrack",function(){return M}),k.d(K,"clearCurrentCues",function(){return j}),k.d(K,"removeCuesInRange",function(){return U}),k.d(K,"getCuesInRange",function(){return R});var z=k("./src/utils/logger.ts");function B(c,g){var w;try{w=new Event("addtrack")}catch(y){w=document.createEvent("Event"),w.initEvent("addtrack",!1,!1)}w.track=c,g.dispatchEvent(w)}function M(c,g){var w=c.mode;if(w==="disabled"&&(c.mode="hidden"),c.cues&&!c.cues.getCueById(g.id))try{if(c.addCue(g),!c.cues.getCueById(g.id))throw new Error("addCue is failed for: "+g)}catch(f){z.logger.debug("[texttrack-utils]: "+f);var y=new self.TextTrackCue(g.startTime,g.endTime,g.text);y.id=g.id,c.addCue(y)}w==="disabled"&&(c.mode=w)}function j(c){var g=c.mode;if(g==="disabled"&&(c.mode="hidden"),c.cues)for(var w=c.cues.length;w--;)c.removeCue(c.cues[w]);g==="disabled"&&(c.mode=g)}function U(c,g,w){var y=c.mode;if(y==="disabled"&&(c.mode="hidden"),c.cues&&c.cues.length>0)for(var f=R(c.cues,g,w),m=0;mc[w].endTime)return-1;for(var y=0,f=w;y<=f;){var m=Math.floor((f+y)/2);if(gc[m].startTime&&y-1)for(var m=f,a=c.length;m=g&&n.endTime<=w)y.push(n);else if(n.startTime>w)return y}return y}},"./src/utils/time-ranges.ts":function(ee,K,k){"use strict";k.r(K);var z={toString:function(M){for(var j="",U=M.length,_=0;_1?g-1:0),y=1;y100)throw new Error("Position must be between 0 and 100.");p=T,this.hasBeenReset=!0}})),Object.defineProperty(y,"positionAlign",_({},f,{get:function(){return h},set:function(T){var S=U(T);if(!S)throw new SyntaxError("An invalid or illegal string was specified.");h=S,this.hasBeenReset=!0}})),Object.defineProperty(y,"size",_({},f,{get:function(){return s},set:function(T){if(T<0||T>100)throw new Error("Size must be between 0 and 100.");s=T,this.hasBeenReset=!0}})),Object.defineProperty(y,"align",_({},f,{get:function(){return l},set:function(T){var S=U(T);if(!S)throw new SyntaxError("An invalid or illegal string was specified.");l=S,this.hasBeenReset=!0}})),y.displayState=void 0}return R.prototype.getCueAsHTML=function(){var c=self.WebVTT;return c.convertCueToDOMTree(self,this.text)},R}()},"./src/utils/vttparser.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"parseTimeStamp",function(){return M}),k.d(K,"fixLineBreaks",function(){return g}),k.d(K,"VTTParser",function(){return w});var z=k("./src/utils/vttcue.ts"),B=function(){function y(){}var f=y.prototype;return f.decode=function(a,n){if(!a)return"";if(typeof a!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(a))},y}();function M(y){function f(a,n,o,u){return(a|0)*3600+(n|0)*60+(o|0)+parseFloat(u||0)}var m=y.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return m?parseFloat(m[2])>59?f(m[2],m[3],0,m[4]):f(m[1],m[2],m[3],m[4]):null}var j=function(){function y(){this.values=Object.create(null)}var f=y.prototype;return f.set=function(a,n){!this.get(a)&&n!==""&&(this.values[a]=n)},f.get=function(a,n,o){return o?this.has(a)?this.values[a]:n[o]:this.has(a)?this.values[a]:n},f.has=function(a){return a in this.values},f.alt=function(a,n,o){for(var u=0;u=0&&o<=100)return this.set(a,o),!0}return!1},y}();function U(y,f,m,a){var n=a?y.split(a):[y];for(var o in n){if(typeof n[o]!="string")continue;var u=n[o].split(m);if(u.length!==2)continue;var x=u[0],E=u[1];f(x,E)}}var _=new z.default(0,0,""),R=_.align==="middle"?"middle":"center";function c(y,f,m){var a=y;function n(){var x=M(y);if(x===null)throw new Error("Malformed timestamp: "+a);return y=y.replace(/^[^\sa-zA-Z-]+/,""),x}function o(x,E){var v=new j;U(x,function(p,h){var s;switch(p){case"region":for(var l=m.length-1;l>=0;l--)if(m[l].id===h){v.set(p,m[l].region);break}break;case"vertical":v.alt(p,h,["rl","lr"]);break;case"line":s=h.split(","),v.integer(p,s[0]),v.percent(p,s[0])&&v.set("snapToLines",!1),v.alt(p,s[0],["auto"]),s.length===2&&v.alt("lineAlign",s[1],["start",R,"end"]);break;case"position":s=h.split(","),v.percent(p,s[0]),s.length===2&&v.alt("positionAlign",s[1],["start",R,"end","line-left","line-right","auto"]);break;case"size":v.percent(p,h);break;case"align":v.alt(p,h,["start",R,"end","left","right"]);break}},/:/,/\s/),E.region=v.get("region",null),E.vertical=v.get("vertical","");var O=v.get("line","auto");O==="auto"&&_.line===-1&&(O=-1),E.line=O,E.lineAlign=v.get("lineAlign","start"),E.snapToLines=v.get("snapToLines",!0),E.size=v.get("size",100),E.align=v.get("align",R);var A=v.get("position","auto");A==="auto"&&_.position===50&&(A=E.align==="start"||E.align==="left"?0:E.align==="end"||E.align==="right"?100:50),E.position=A}function u(){y=y.replace(/^\s+/,"")}if(u(),f.startTime=n(),u(),y.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+a);y=y.substr(3),u(),f.endTime=n(),u(),o(y,f)}function g(y){return y.replace(//gi,` `)}var w=function(){function y(){this.state="INITIAL",this.buffer="",this.decoder=new B,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var f=y.prototype;return f.parse=function(a){var n=this;a&&(n.buffer+=n.decoder.decode(a,{stream:!0}));function o(){var A=n.buffer,p=0;for(A=g(A);p")===-1){n.cue.id=x;continue}case"CUE":if(!n.cue){n.state="BADCUE";continue}try{c(x,n.cue,n.regionList)}catch(A){n.cue=null,n.state="BADCUE";continue}n.state="CUETEXT";continue;case"CUETEXT":{var O=x.indexOf("-->")!==-1;if(!x||O&&(v=!0)){n.oncue&&n.cue&&n.oncue(n.cue),n.cue=null,n.state="ID";continue}if(n.cue===null)continue;n.cue.text&&(n.cue.text+=` `),n.cue.text+=x}continue;case"BADCUE":x||(n.state="ID")}}}catch(A){n.state==="CUETEXT"&&n.cue&&n.oncue&&n.oncue(n.cue),n.cue=null,n.state=n.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},f.flush=function(){var a=this;try{if((a.cue||a.state==="HEADER")&&(a.buffer+=` -`,a.parse()),a.state==="INITIAL"||a.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(n){a.onparsingerror&&a.onparsingerror(n)}return a.onflush&&a.onflush(),this},y}()},"./src/utils/webvtt-parser.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"generateCueId",function(){return w}),P.d(K,"parseWebVTT",function(){return f});var z=P("./src/polyfills/number.ts"),B=P("./src/utils/vttparser.ts"),M=P("./src/demux/id3.ts"),j=P("./src/utils/timescale-conversion.ts"),U=P("./src/remux/mp4-remuxer.ts"),_=/\r\n|\n\r|\n|\r/g,R=function(a,n,o){return o===void 0&&(o=0),a.substr(o,n.length)===n},c=function(a){var n=parseInt(a.substr(-3)),o=parseInt(a.substr(-6,2)),u=parseInt(a.substr(-9,2)),x=a.length>9?parseInt(a.substr(0,a.indexOf(":"))):0;if(!Object(z.isFiniteNumber)(n)||!Object(z.isFiniteNumber)(o)||!Object(z.isFiniteNumber)(u)||!Object(z.isFiniteNumber)(x))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+a);return n+=1e3*o,n+=60*1e3*u,n+=60*60*1e3*x,n},g=function(a){for(var n=5381,o=a.length;o;)n=n*33^a.charCodeAt(--o);return(n>>>0).toString()};function w(m,a,n){return g(m.toString())+g(a.toString())+g(n)}var y=function(a,n,o){var u=a[n],x=a[u.prevCC];if(!x||!x.new&&u.new){a.ccOffset=a.presentationOffset=u.start,u.new=!1;return}for(;(E=x)!==null&&E!==void 0&&E.new;){var E;a.ccOffset+=u.start-x.start,u.new=!1,u=x,x=a[u.prevCC]}a.presentationOffset=o};function f(m,a,n,o,u,x,E,v){var O=new B.VTTParser,A=Object(M.utf8ArrayToStr)(new Uint8Array(m)).trim().replace(_,` +`,a.parse()),a.state==="INITIAL"||a.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(n){a.onparsingerror&&a.onparsingerror(n)}return a.onflush&&a.onflush(),this},y}()},"./src/utils/webvtt-parser.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"generateCueId",function(){return w}),k.d(K,"parseWebVTT",function(){return f});var z=k("./src/polyfills/number.ts"),B=k("./src/utils/vttparser.ts"),M=k("./src/demux/id3.ts"),j=k("./src/utils/timescale-conversion.ts"),U=k("./src/remux/mp4-remuxer.ts"),_=/\r\n|\n\r|\n|\r/g,R=function(a,n,o){return o===void 0&&(o=0),a.substr(o,n.length)===n},c=function(a){var n=parseInt(a.substr(-3)),o=parseInt(a.substr(-6,2)),u=parseInt(a.substr(-9,2)),x=a.length>9?parseInt(a.substr(0,a.indexOf(":"))):0;if(!Object(z.isFiniteNumber)(n)||!Object(z.isFiniteNumber)(o)||!Object(z.isFiniteNumber)(u)||!Object(z.isFiniteNumber)(x))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+a);return n+=1e3*o,n+=60*1e3*u,n+=60*60*1e3*x,n},g=function(a){for(var n=5381,o=a.length;o;)n=n*33^a.charCodeAt(--o);return(n>>>0).toString()};function w(m,a,n){return g(m.toString())+g(a.toString())+g(n)}var y=function(a,n,o){var u=a[n],x=a[u.prevCC];if(!x||!x.new&&u.new){a.ccOffset=a.presentationOffset=u.start,u.new=!1;return}for(;(E=x)!==null&&E!==void 0&&E.new;){var E;a.ccOffset+=u.start-x.start,u.new=!1,u=x,x=a[u.prevCC]}a.presentationOffset=o};function f(m,a,n,o,u,x,E,v){var O=new B.VTTParser,A=Object(M.utf8ArrayToStr)(new Uint8Array(m)).trim().replace(_,` `).split(` `),p=[],h=Object(j.toMpegTsClockFromTimescale)(a,n),s="00:00.000",l=0,D=0,T,S=!0,I=!1;O.oncue=function(C){var W=o[u],Y=o.ccOffset,H=(l-h)/9e4;if(W!=null&&W.new&&(D!==void 0?Y=o.ccOffset=W.start:y(o,u,H)),H&&(Y=H-o.presentationOffset),I){var F=C.endTime-C.startTime,q=Object(U.normalizePts)((C.startTime+Y-D)*9e4,x*9e4)/9e4;C.startTime=q,C.endTime=q+F}var le=C.text.trim();C.text=decodeURIComponent(encodeURIComponent(le)),C.id||(C.id=w(C.startTime,C.endTime,le)),C.endTime>0&&p.push(C)},O.onparsingerror=function(C){T=C},O.onflush=function(){if(T){v(T);return}E(p)},A.forEach(function(C){if(S)if(R(C,"X-TIMESTAMP-MAP=")){S=!1,I=!0,C.substr(16).split(",").forEach(function(W){R(W,"LOCAL:")?s=W.substr(6):R(W,"MPEGTS:")&&(l=parseInt(W.substr(7)))});try{D=c(s)/1e3}catch(W){I=!1,T=W}return}else C===""&&(S=!1);O.parse(C+` -`)}),O.flush()}},"./src/utils/xhr-loader.ts":function(ee,K,P){"use strict";P.r(K);var z=P("./src/utils/logger.ts"),B=P("./src/loader/load-stats.ts"),M=/^age:\s*[\d.]+\s*$/m,j=function(){function U(R){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=R?R.xhrSetup:null,this.stats=new B.LoadStats,this.retryDelay=0}var _=U.prototype;return _.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},_.abortInternal=function(){var c=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),c&&(c.onreadystatechange=null,c.onprogress=null,c.readyState!==4&&(this.stats.aborted=!0,c.abort()))},_.abort=function(){var c;this.abortInternal(),(c=this.callbacks)!==null&&c!==void 0&&c.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},_.load=function(c,g,w){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=c,this.config=g,this.callbacks=w,this.retryDelay=g.retryDelay,this.loadInternal()},_.loadInternal=function(){var c=this.config,g=this.context;if(!c)return;var w=this.loader=new self.XMLHttpRequest,y=this.stats;y.loading.first=0,y.loaded=0;var f=this.xhrSetup;try{if(f)try{f(w,g.url)}catch(n){w.open("GET",g.url,!0),f(w,g.url)}w.readyState||w.open("GET",g.url,!0);var m=this.context.headers;if(m)for(var a in m)w.setRequestHeader(a,m[a])}catch(n){this.callbacks.onError({code:w.status,text:n.message},g,w);return}g.rangeEnd&&w.setRequestHeader("Range","bytes="+g.rangeStart+"-"+(g.rangeEnd-1)),w.onreadystatechange=this.readystatechange.bind(this),w.onprogress=this.loadprogress.bind(this),w.responseType=g.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),c.timeout),w.send()},_.readystatechange=function(){var c=this.context,g=this.loader,w=this.stats;if(!c||!g)return;var y=g.readyState,f=this.config;if(w.aborted)return;if(y>=2)if(self.clearTimeout(this.requestTimeout),w.loading.first===0&&(w.loading.first=Math.max(self.performance.now(),w.loading.start)),y===4){g.onreadystatechange=null,g.onprogress=null;var m=g.status;if(m>=200&&m<300){w.loading.end=Math.max(self.performance.now(),w.loading.first);var a,n;if(c.responseType==="arraybuffer"?(a=g.response,n=a.byteLength):(a=g.responseText,n=a.length),w.loaded=w.total=n,!this.callbacks)return;var o=this.callbacks.onProgress;if(o&&o(w,c,a,g),!this.callbacks)return;var u={url:g.responseURL,data:a};this.callbacks.onSuccess(u,w,c,g)}else w.retry>=f.maxRetry||m>=400&&m<499?(z.logger.error(m+" while loading "+c.url),this.callbacks.onError({code:m,text:g.statusText},c,g)):(z.logger.warn(m+" while loading "+c.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,f.maxRetryDelay),w.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),f.timeout)},_.loadtimeout=function(){z.logger.warn("timeout while loading "+this.context.url);var c=this.callbacks;c&&(this.abortInternal(),c.onTimeout(this.stats,this.context,this.loader))},_.loadprogress=function(c){var g=this.stats;g.loaded=c.loaded,c.lengthComputable&&(g.total=c.total)},_.getCacheAge=function(){var c=null;if(this.loader&&M.test(this.loader.getAllResponseHeaders())){var g=this.loader.getResponseHeader("age");c=g?parseFloat(g):null}return c},U}();K.default=j}}).default})},vHTk:function(et,de,N){et.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},wCXF:function(et,de,N){"use strict";N.d(de,"a",function(){return dt});var ee=N("rePB"),K=N("VTBJ"),P=N("KQm4"),z=N("U8pU"),B=N("ODXe"),M=N("q1tI"),j=N("TSYQ"),U=N.n(j),_=N("Gytx"),R=N.n(_),c=N("Kwbf"),g=N("t23M"),w=N("qx4F"),y=N("6eGT"),f=N("IBYe"),m=N("Ff2n"),a=N("c+Xe"),n=N("fyJ8"),o=N("biw7");function u(Oe,we,Je,st,He){var nt=Je[Oe]||{},Te=Je[we]||{},ge,be;nt.fixed==="left"?ge=st.left[Oe]:Te.fixed==="right"&&(be=st.right[we]);var re=!1,ie=!1,ce=!1,Ee=!1,Be=Je[we+1],Ie=Je[Oe-1];if(He==="rtl"){if(ge!==void 0){var ut=Ie&&Ie.fixed==="left";Ee=!ut}else if(be!==void 0){var bt=Be&&Be.fixed==="right";ce=!bt}}else if(ge!==void 0){var Tt=Be&&Be.fixed==="left";re=!Tt}else if(be!==void 0){var xt=Ie&&Ie.fixed==="right";ie=!xt}return{fixLeft:ge,fixRight:be,lastFixLeft:re,firstFixRight:ie,lastFixRight:ce,firstFixLeft:Ee,isSticky:st.isSticky}}var x=N("sR1s");function E(Oe){var we=Oe.cells,Je=Oe.stickyOffsets,st=Oe.flattenColumns,He=Oe.rowComponent,nt=Oe.cellComponent,Te=Oe.onHeaderRow,ge=Oe.index,be=M.useContext(o.a),re=be.prefixCls,ie=be.direction,ce;Te&&(ce=Te(we.map(function(Be){return Be.column}),ge));var Ee=Object(x.a)(we.map(function(Be){return Be.column}));return M.createElement(He,Object.assign({},ce),we.map(function(Be,Ie){var ut=Be.column,bt=u(Be.colStart,Be.colEnd,st,Je,ie),Tt;return ut&&ut.onHeaderCell&&(Tt=Be.column.onHeaderCell(ut)),M.createElement(n.a,Object.assign({},Be,{ellipsis:ut.ellipsis,align:ut.align,component:nt,prefixCls:re,key:Ee[Ie]},bt,{additionalProps:Tt,rowType:"header"}))}))}E.displayName="HeaderRow";var v=E;function O(Oe){var we=[];function Je(Te,ge){var be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;we[be]=we[be]||[];var re=ge,ie=Te.filter(Boolean).map(function(ce){var Ee={key:ce.key,className:ce.className||"",children:ce.title,column:ce,colStart:re},Be=1,Ie=ce.children;return Ie&&Ie.length>0&&(Be=Je(Ie,re,be+1).reduce(function(ut,bt){return ut+bt},0),Ee.hasSubColumns=!0),"colSpan"in ce&&(Be=ce.colSpan),"rowSpan"in ce&&(Ee.rowSpan=ce.rowSpan),Ee.colSpan=Be,Ee.colEnd=Ee.colStart+Be-1,we[be].push(Ee),re+=Be,Be});return ie}Je(Oe,0);for(var st=we.length,He=function(ge){we[ge].forEach(function(be){!("rowSpan"in be)&&!be.hasSubColumns&&(be.rowSpan=st-ge)})},nt=0;nt=0;ge-=1){var be=we[ge],re=Je&&Je[ge],ie=re&&re[h.a];(be||ie||Te)&&(He.unshift(M.createElement("col",Object.assign({key:ge,style:{width:be,minWidth:be}},ie))),Te=!0)}return M.createElement("colgroup",null,He)}var l=s;function D(Oe,we){return Object(M.useMemo)(function(){for(var Je=[],st=0;st1?V-1:0),Q=1;Q=ce&&(Ct=ce-Ee),Te({scrollLeft:Ct/ce*(ie+2)}),xt.current.x=Ne.pageX},ke=function(){var Ne=Object(We.b)(nt.current).top,Ve=Ne+nt.current.offsetHeight,tt=document.documentElement.scrollTop+window.innerHeight;Ve-Object(w.a)()<=tt||Ne>=tt-ge?Tt(function(ft){return Object(K.a)(Object(K.a)({},ft),{},{isHiddenScrollBar:!0})}):Tt(function(ft){return Object(K.a)(Object(K.a)({},ft),{},{isHiddenScrollBar:!1})})},it=function(Ne){Tt(function(Ve){return Object(K.a)(Object(K.a)({},Ve),{},{scrollLeft:Ne/ie*ce||0})})};return M.useImperativeHandle(Je,function(){return{setScrollLeft:it}}),M.useEffect(function(){var at=Object(Me.a)(document.body,"mouseup",se,!1),Ne=Object(Me.a)(document.body,"mousemove",$e,!1);return ke(),function(){at.remove(),Ne.remove()}},[Ee,Xe]),M.useEffect(function(){var at=Object(Me.a)(window,"scroll",ke,!1),Ne=Object(Me.a)(window,"resize",ke,!1);return function(){at.remove(),Ne.remove()}},[]),M.useEffect(function(){bt.isHiddenScrollBar||Tt(function(at){var Ne,Ve;return Object(K.a)(Object(K.a)({},at),{},{scrollLeft:nt.current.scrollLeft/((Ne=nt.current)===null||Ne===void 0?void 0:Ne.scrollWidth)*((Ve=nt.current)===null||Ve===void 0?void 0:Ve.clientWidth)})})},[bt.isHiddenScrollBar]),ie<=ce||!Ee||bt.isHiddenScrollBar?null:M.createElement("div",{style:{height:Object(w.a)(),width:ce,bottom:ge},className:"".concat(re,"-sticky-scroll")},M.createElement("div",{onMouseDown:fe,ref:Be,className:U()("".concat(re,"-sticky-scroll-bar"),Object(ee.a)({},"".concat(re,"-sticky-scroll-bar-active"),Xe)),style:{width:"".concat(Ee,"px"),transform:"translate3d(".concat(bt.scrollLeft,"px, 0, 0)")}}))},Qe=M.forwardRef(Ke);function Ze(Oe,we){return M.useMemo(function(){var Je=!!Oe;return{isSticky:Je,stickyClassName:Je?"".concat(we,"-sticky-header"):"",offsetHeader:Object(z.a)(Oe)==="object"&&Oe.offsetHeader||0,offsetScroll:Object(z.a)(Oe)==="object"&&Oe.offsetScroll||0}},[Oe,we])}var yt=[],vt={},dt="rc-table-internal-hook",pt=M.memo(function(Oe){var we=Oe.children;return we},function(Oe,we){return R()(Oe.props,we.props)?Oe.pingLeft!==we.pingLeft||Oe.pingRight!==we.pingRight:!1});function At(Oe){var we,Je=Oe.prefixCls,st=Oe.className,He=Oe.rowClassName,nt=Oe.style,Te=Oe.data,ge=Oe.rowKey,be=Oe.scroll,re=Oe.tableLayout,ie=Oe.direction,ce=Oe.title,Ee=Oe.footer,Be=Oe.summary,Ie=Oe.id,ut=Oe.showHeader,bt=Oe.components,Tt=Oe.emptyText,xt=Oe.onRow,gt=Oe.onHeaderRow,qe=Oe.internalHooks,Xe=Oe.transformColumns,Pe=Oe.internalRefs,se=Oe.sticky,fe=Te||yt,$e=!!fe.length,ke=M.useState(0),it=Object(B.a)(ke,2),at=it[0],Ne=it[1];M.useEffect(function(){Ne(Object(w.a)())});var Ve=M.useMemo(function(){return Object(x.c)(bt,{})},[bt]),tt=M.useCallback(function(Kt,pn){return Object(x.b)(Ve,Kt)||pn},[Ve]),ft=M.useMemo(function(){return typeof ge=="function"?ge:function(Kt){var pn=Kt&&Kt[ge];return pn}},[ge]),Ct=Object(h.c)(Oe),zt=Ct.expandIcon,qt=Ct.expandedRowKeys,Qt=Ct.defaultExpandedRowKeys,St=Ct.defaultExpandAllRows,ln=Ct.expandedRowRender,Bt=Ct.onExpand,Yt=Ct.onExpandedRowsChange,Mt=Ct.expandRowByClick,tn=Ct.rowExpandable,mn=Ct.expandIconColumnIndex,An=Ct.expandedRowClassName,lt=Ct.childrenColumnName,Rt=Ct.indentSize,Jt=zt||oe,nn=lt||"children",un=M.useMemo(function(){return ln?"row":Oe.expandable&&qe===dt&&Oe.expandable.__PARENT_RENDER_ICON__||fe.some(function(Kt){return Kt&&Object(z.a)(Kt)==="object"&&Kt[nn]})?"nest":!1},[!!ln,fe]),cn=M.useState(function(){return Qt||(St?Se(fe,ft,nn):[])}),G=Object(B.a)(cn,2),b=G[0],L=G[1],V=M.useMemo(function(){return new Set(qt||b||[])},[qt,b]),J=M.useCallback(function(Kt){var pn=ft(Kt,fe.indexOf(Kt)),Cn,ur=V.has(pn);ur?(V.delete(pn),Cn=Object(P.a)(V)):Cn=[].concat(Object(P.a)(V),[pn]),L(Cn),Bt&&Bt(!ur,Kt),Yt&&Yt(Cn)},[ft,V,fe,Bt,Yt]),Q=M.useState(0),De=Object(B.a)(Q,2),ot=De[0],Ot=De[1],Ft=Object(Ue.b)(Object(K.a)(Object(K.a)(Object(K.a)({},Oe),Ct),{},{expandable:!!ln,expandedKeys:V,getRowKey:ft,onTriggerExpand:J,expandIcon:Jt,expandIconColumnIndex:mn,direction:ie}),qe===dt?Xe:null),ve=Object(B.a)(Ft,2),Gt=ve[0],en=ve[1],Tn=M.useMemo(function(){return{columns:Gt,flattenColumns:en}},[Gt,en]),Wn=M.useRef(),tr=M.useRef(),Rn=M.useRef(),or=M.useState(!1),fr=Object(B.a)(or,2),Vn=fr[0],sr=fr[1],Jn=M.useState(!1),Mr=Object(B.a)(Jn,2),Xn=Mr[0],Ir=Mr[1],yr=xe(new Map),Tr=Object(B.a)(yr,2),Yr=Tr[0],br=Tr[1],nr=Object(x.a)(en),Ur=nr.map(function(Kt){return Yr.get(Kt)}),_r=M.useMemo(function(){return Ur},[Ur.join("_")]),Fr=ye(_r,en.length,ie),Sn=be&&Object(x.d)(be.y),hn=be&&Object(x.d)(be.x),kn=hn&&en.some(function(Kt){var pn=Kt.fixed;return pn}),yn=M.useRef(),Ln=Ze(se,Je),bn=Ln.isSticky,wr=Ln.offsetHeader,Bn=Ln.offsetScroll,Qn=Ln.stickyClassName,zr,jr,Dr;Sn&&(jr={overflowY:"scroll",maxHeight:be.y}),hn&&(zr={overflowX:"auto"},Sn||(jr={overflowY:"hidden"}),Dr={width:be.x===!0?"auto":be.x,minWidth:"100%"});var Jr=M.useCallback(function(Kt,pn){br(function(Cn){var ur=new Map(Cn);return ur.set(Kt,pn),ur})},[]),rr=he(null),Wr=Object(B.a)(rr,2),Er=Wr[0],Hr=Wr[1];function Zr(Kt,pn){if(!pn)return;typeof pn=="function"?pn(Kt):pn.scrollLeft!==Kt&&(pn.scrollLeft=Kt)}var ir=function(pn){var Cn=pn.currentTarget,ur=pn.scrollLeft,qr=typeof ur=="number"?ur:Cn.scrollLeft,Rr=Cn||vt;if(!Hr()||Hr()===Rr){var gi;Er(Rr),Zr(qr,tr.current),Zr(qr,Rn.current),Zr(qr,(gi=yn.current)===null||gi===void 0?void 0:gi.setScrollLeft)}if(Cn){var vi=Cn.scrollWidth,ai=Cn.clientWidth;sr(qr>0),Ir(qr0?[].concat(Object(K.a)(m),Object(K.a)(c(u).map(function(x){return Object(P.a)({fixed:o},x)}))):[].concat(Object(K.a)(m),[Object(P.a)(Object(P.a)({},a),{},{fixed:o})])},[])}function g(f){for(var m=!0,a=0;a=0;u-=1){var x=f[u];if(o&&x.fixed!=="right")o=!1;else if(!o&&x.fixed==="right"){Object(j.a)(!1,"Index ".concat(u+1," of `columns` missing `fixed='right'` prop."));break}}}function w(f){return f.map(function(m){var a=m.fixed,n=Object(z.a)(m,["fixed"]),o=a;return a==="left"?o="right":a==="right"&&(o="left"),Object(P.a)({fixed:o},n)})}function y(f,m){var a=f.prefixCls,n=f.columns,o=f.children,u=f.expandable,x=f.expandedKeys,E=f.getRowKey,v=f.onTriggerExpand,O=f.expandIcon,A=f.rowExpandable,p=f.expandIconColumnIndex,h=f.direction,s=f.expandRowByClick,l=B.useMemo(function(){return n||R(o)},[n,o]),D=B.useMemo(function(){if(u){var I,C=p||0,W=l[C],Y=(I={},Object(ee.a)(I,_.a,{className:"".concat(a,"-expand-icon-col")}),Object(ee.a)(I,"title",""),Object(ee.a)(I,"fixed",W?W.fixed:null),Object(ee.a)(I,"className","".concat(a,"-row-expand-icon-cell")),Object(ee.a)(I,"render",function(q,le,pe){var Ae=E(le,pe),Ge=x.has(Ae),Fe=A?A(le):!0,Ue=O({prefixCls:a,expanded:Ge,expandable:Fe,record:le,onExpand:v});return s?B.createElement("span",{onClick:function(je){return je.stopPropagation()}},Ue):Ue}),I),H=l.slice();return C>=0&&H.splice(C,0,Y),H}return l},[u,l,E,x,O,h]),T=B.useMemo(function(){var I=D;return m&&(I=m(I)),I.length||(I=[{render:function(){return null}}]),I},[m,D,h]),S=B.useMemo(function(){return h==="rtl"?w(c(T)):c(T)},[T,h]);return[T,S]}de.b=y},"y0+3":function(et,de,N){"use strict";N.d(de,"a",function(){return c}),N.d(de,"b",function(){return w});var ee=/margin|padding|width|height|max|min|offset/,K={left:!0,top:!0},P={cssFloat:1,styleFloat:1,float:1};function z(y){return y.nodeType===1?y.ownerDocument.defaultView.getComputedStyle(y,null):{}}function B(y,f,m){if(f=f.toLowerCase(),m==="auto"){if(f==="height")return y.offsetHeight;if(f==="width")return y.offsetWidth}return f in K||(K[f]=ee.test(f)),K[f]?parseFloat(m)||0:m}function M(y,f){var m=arguments.length,a=z(y);return f=P[f]?"cssFloat"in y.style?"cssFloat":"styleFloat":f,m===1?a:B(y,f,a[f]||y.style[f])}function j(y,f,m){var a=arguments.length;if(f=P[f]?"cssFloat"in y.style?"cssFloat":"styleFloat":f,a===3)return typeof m=="number"&&ee.test(f)&&(m="".concat(m,"px")),y.style[f]=m,m;for(var n in f)f.hasOwnProperty(n)&&j(y,n,f[n]);return z(y)}function U(y){return y===document.body?document.documentElement.clientWidth:y.offsetWidth}function _(y){return y===document.body?window.innerHeight||document.documentElement.clientHeight:y.offsetHeight}function R(){var y=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),f=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:y,height:f}}function c(){var y=document.documentElement.clientWidth,f=window.innerHeight||document.documentElement.clientHeight;return{width:y,height:f}}function g(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function w(y){var f=y.getBoundingClientRect(),m=document.documentElement;return{left:f.left+(window.pageXOffset||m.scrollLeft)-(m.clientLeft||document.body.clientLeft||0),top:f.top+(window.pageYOffset||m.scrollTop)-(m.clientTop||document.body.clientTop||0)}}},yslc:function(et,de){et.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAAB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MUuqCpkdxkBLMOBa6AW60TCTlS3RMFYnY0BKBpwLnUa9NZl3B/LLtqQkgtmSNwOOhX7whXjU1NKz5e4DdcubH4ZOJgw0Fbrl7c9fg5B7ZYKRwWAMOLgio89+CwTTGTeMATkxYDui63OyQPglcgLIsDAGKAPXhF6YfQvM3HeBENKZdQ1jQGoGLEIvmJ0EvnZ/c79ES2owzB5jwBkDHGhIZ/2R7QC5g9HEGJArAxzyde8D5Gm5AmS4GAO2c3TGB2OgFTLALR1KA6e5SByvUpEp7s+6tELwrMnKYcCl0DmYVOCyzOM3L2dCV44mZInUhdBrVFCPMmdt3MCmLrLsemWBcih0DlfVBMNNWVu2WdlgI7qydCE7tE2FzpVpVOqhdZkbaJSKhsSELruuVxYgG6FzOK+Bekjd+I16exaY0JWlC9mhbRA6h5PBCBpUM369w1jdTOiy63plAaoX+rEQNTewetzmEmfomdCVpQvZoeWWDi3UctrBlePXnHHpTZcdcgZIUQxErnk43vjI2ovuQP8faDGikjbF4FsAAAAASUVORK5CYII="}}]); +`)}),O.flush()}},"./src/utils/xhr-loader.ts":function(ee,K,k){"use strict";k.r(K);var z=k("./src/utils/logger.ts"),B=k("./src/loader/load-stats.ts"),M=/^age:\s*[\d.]+\s*$/m,j=function(){function U(R){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=R?R.xhrSetup:null,this.stats=new B.LoadStats,this.retryDelay=0}var _=U.prototype;return _.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},_.abortInternal=function(){var c=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),c&&(c.onreadystatechange=null,c.onprogress=null,c.readyState!==4&&(this.stats.aborted=!0,c.abort()))},_.abort=function(){var c;this.abortInternal(),(c=this.callbacks)!==null&&c!==void 0&&c.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},_.load=function(c,g,w){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=c,this.config=g,this.callbacks=w,this.retryDelay=g.retryDelay,this.loadInternal()},_.loadInternal=function(){var c=this.config,g=this.context;if(!c)return;var w=this.loader=new self.XMLHttpRequest,y=this.stats;y.loading.first=0,y.loaded=0;var f=this.xhrSetup;try{if(f)try{f(w,g.url)}catch(n){w.open("GET",g.url,!0),f(w,g.url)}w.readyState||w.open("GET",g.url,!0);var m=this.context.headers;if(m)for(var a in m)w.setRequestHeader(a,m[a])}catch(n){this.callbacks.onError({code:w.status,text:n.message},g,w);return}g.rangeEnd&&w.setRequestHeader("Range","bytes="+g.rangeStart+"-"+(g.rangeEnd-1)),w.onreadystatechange=this.readystatechange.bind(this),w.onprogress=this.loadprogress.bind(this),w.responseType=g.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),c.timeout),w.send()},_.readystatechange=function(){var c=this.context,g=this.loader,w=this.stats;if(!c||!g)return;var y=g.readyState,f=this.config;if(w.aborted)return;if(y>=2)if(self.clearTimeout(this.requestTimeout),w.loading.first===0&&(w.loading.first=Math.max(self.performance.now(),w.loading.start)),y===4){g.onreadystatechange=null,g.onprogress=null;var m=g.status;if(m>=200&&m<300){w.loading.end=Math.max(self.performance.now(),w.loading.first);var a,n;if(c.responseType==="arraybuffer"?(a=g.response,n=a.byteLength):(a=g.responseText,n=a.length),w.loaded=w.total=n,!this.callbacks)return;var o=this.callbacks.onProgress;if(o&&o(w,c,a,g),!this.callbacks)return;var u={url:g.responseURL,data:a};this.callbacks.onSuccess(u,w,c,g)}else w.retry>=f.maxRetry||m>=400&&m<499?(z.logger.error(m+" while loading "+c.url),this.callbacks.onError({code:m,text:g.statusText},c,g)):(z.logger.warn(m+" while loading "+c.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,f.maxRetryDelay),w.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),f.timeout)},_.loadtimeout=function(){z.logger.warn("timeout while loading "+this.context.url);var c=this.callbacks;c&&(this.abortInternal(),c.onTimeout(this.stats,this.context,this.loader))},_.loadprogress=function(c){var g=this.stats;g.loaded=c.loaded,c.lengthComputable&&(g.total=c.total)},_.getCacheAge=function(){var c=null;if(this.loader&&M.test(this.loader.getAllResponseHeaders())){var g=this.loader.getResponseHeader("age");c=g?parseFloat(g):null}return c},U}();K.default=j}}).default})},vHTk:function(et,de,N){et.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},wCXF:function(et,de,N){"use strict";N.d(de,"a",function(){return dt});var ee=N("rePB"),K=N("VTBJ"),k=N("KQm4"),z=N("U8pU"),B=N("ODXe"),M=N("q1tI"),j=N("TSYQ"),U=N.n(j),_=N("Gytx"),R=N.n(_),c=N("Kwbf"),g=N("t23M"),w=N("qx4F"),y=N("6eGT"),f=N("IBYe"),m=N("Ff2n"),a=N("c+Xe"),n=N("fyJ8"),o=N("biw7");function u(Oe,we,Je,st,He){var nt=Je[Oe]||{},Te=Je[we]||{},ge,be;nt.fixed==="left"?ge=st.left[Oe]:Te.fixed==="right"&&(be=st.right[we]);var re=!1,ie=!1,ce=!1,Ee=!1,Be=Je[we+1],Ie=Je[Oe-1];if(He==="rtl"){if(ge!==void 0){var ut=Ie&&Ie.fixed==="left";Ee=!ut}else if(be!==void 0){var bt=Be&&Be.fixed==="right";ce=!bt}}else if(ge!==void 0){var Tt=Be&&Be.fixed==="left";re=!Tt}else if(be!==void 0){var xt=Ie&&Ie.fixed==="right";ie=!xt}return{fixLeft:ge,fixRight:be,lastFixLeft:re,firstFixRight:ie,lastFixRight:ce,firstFixLeft:Ee,isSticky:st.isSticky}}var x=N("sR1s");function E(Oe){var we=Oe.cells,Je=Oe.stickyOffsets,st=Oe.flattenColumns,He=Oe.rowComponent,nt=Oe.cellComponent,Te=Oe.onHeaderRow,ge=Oe.index,be=M.useContext(o.a),re=be.prefixCls,ie=be.direction,ce;Te&&(ce=Te(we.map(function(Be){return Be.column}),ge));var Ee=Object(x.a)(we.map(function(Be){return Be.column}));return M.createElement(He,Object.assign({},ce),we.map(function(Be,Ie){var ut=Be.column,bt=u(Be.colStart,Be.colEnd,st,Je,ie),Tt;return ut&&ut.onHeaderCell&&(Tt=Be.column.onHeaderCell(ut)),M.createElement(n.a,Object.assign({},Be,{ellipsis:ut.ellipsis,align:ut.align,component:nt,prefixCls:re,key:Ee[Ie]},bt,{additionalProps:Tt,rowType:"header"}))}))}E.displayName="HeaderRow";var v=E;function O(Oe){var we=[];function Je(Te,ge){var be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;we[be]=we[be]||[];var re=ge,ie=Te.filter(Boolean).map(function(ce){var Ee={key:ce.key,className:ce.className||"",children:ce.title,column:ce,colStart:re},Be=1,Ie=ce.children;return Ie&&Ie.length>0&&(Be=Je(Ie,re,be+1).reduce(function(ut,bt){return ut+bt},0),Ee.hasSubColumns=!0),"colSpan"in ce&&(Be=ce.colSpan),"rowSpan"in ce&&(Ee.rowSpan=ce.rowSpan),Ee.colSpan=Be,Ee.colEnd=Ee.colStart+Be-1,we[be].push(Ee),re+=Be,Be});return ie}Je(Oe,0);for(var st=we.length,He=function(ge){we[ge].forEach(function(be){!("rowSpan"in be)&&!be.hasSubColumns&&(be.rowSpan=st-ge)})},nt=0;nt=0;ge-=1){var be=we[ge],re=Je&&Je[ge],ie=re&&re[h.a];(be||ie||Te)&&(He.unshift(M.createElement("col",Object.assign({key:ge,style:{width:be,minWidth:be}},ie))),Te=!0)}return M.createElement("colgroup",null,He)}var l=s;function D(Oe,we){return Object(M.useMemo)(function(){for(var Je=[],st=0;st1?V-1:0),Q=1;Q=ce&&(Ct=ce-Ee),Te({scrollLeft:Ct/ce*(ie+2)}),xt.current.x=Ne.pageX},Pe=function(){var Ne=Object(We.b)(nt.current).top,Ve=Ne+nt.current.offsetHeight,tt=document.documentElement.scrollTop+window.innerHeight;Ve-Object(w.a)()<=tt||Ne>=tt-ge?Tt(function(ft){return Object(K.a)(Object(K.a)({},ft),{},{isHiddenScrollBar:!0})}):Tt(function(ft){return Object(K.a)(Object(K.a)({},ft),{},{isHiddenScrollBar:!1})})},it=function(Ne){Tt(function(Ve){return Object(K.a)(Object(K.a)({},Ve),{},{scrollLeft:Ne/ie*ce||0})})};return M.useImperativeHandle(Je,function(){return{setScrollLeft:it}}),M.useEffect(function(){var at=Object(Me.a)(document.body,"mouseup",se,!1),Ne=Object(Me.a)(document.body,"mousemove",$e,!1);return Pe(),function(){at.remove(),Ne.remove()}},[Ee,Xe]),M.useEffect(function(){var at=Object(Me.a)(window,"scroll",Pe,!1),Ne=Object(Me.a)(window,"resize",Pe,!1);return function(){at.remove(),Ne.remove()}},[]),M.useEffect(function(){bt.isHiddenScrollBar||Tt(function(at){var Ne,Ve;return Object(K.a)(Object(K.a)({},at),{},{scrollLeft:nt.current.scrollLeft/((Ne=nt.current)===null||Ne===void 0?void 0:Ne.scrollWidth)*((Ve=nt.current)===null||Ve===void 0?void 0:Ve.clientWidth)})})},[bt.isHiddenScrollBar]),ie<=ce||!Ee||bt.isHiddenScrollBar?null:M.createElement("div",{style:{height:Object(w.a)(),width:ce,bottom:ge},className:"".concat(re,"-sticky-scroll")},M.createElement("div",{onMouseDown:fe,ref:Be,className:U()("".concat(re,"-sticky-scroll-bar"),Object(ee.a)({},"".concat(re,"-sticky-scroll-bar-active"),Xe)),style:{width:"".concat(Ee,"px"),transform:"translate3d(".concat(bt.scrollLeft,"px, 0, 0)")}}))},Qe=M.forwardRef(Ke);function Ze(Oe,we){return M.useMemo(function(){var Je=!!Oe;return{isSticky:Je,stickyClassName:Je?"".concat(we,"-sticky-header"):"",offsetHeader:Object(z.a)(Oe)==="object"&&Oe.offsetHeader||0,offsetScroll:Object(z.a)(Oe)==="object"&&Oe.offsetScroll||0}},[Oe,we])}var yt=[],vt={},dt="rc-table-internal-hook",pt=M.memo(function(Oe){var we=Oe.children;return we},function(Oe,we){return R()(Oe.props,we.props)?Oe.pingLeft!==we.pingLeft||Oe.pingRight!==we.pingRight:!1});function At(Oe){var we,Je=Oe.prefixCls,st=Oe.className,He=Oe.rowClassName,nt=Oe.style,Te=Oe.data,ge=Oe.rowKey,be=Oe.scroll,re=Oe.tableLayout,ie=Oe.direction,ce=Oe.title,Ee=Oe.footer,Be=Oe.summary,Ie=Oe.id,ut=Oe.showHeader,bt=Oe.components,Tt=Oe.emptyText,xt=Oe.onRow,gt=Oe.onHeaderRow,qe=Oe.internalHooks,Xe=Oe.transformColumns,ke=Oe.internalRefs,se=Oe.sticky,fe=Te||yt,$e=!!fe.length,Pe=M.useState(0),it=Object(B.a)(Pe,2),at=it[0],Ne=it[1];M.useEffect(function(){Ne(Object(w.a)())});var Ve=M.useMemo(function(){return Object(x.c)(bt,{})},[bt]),tt=M.useCallback(function(Kt,pn){return Object(x.b)(Ve,Kt)||pn},[Ve]),ft=M.useMemo(function(){return typeof ge=="function"?ge:function(Kt){var pn=Kt&&Kt[ge];return pn}},[ge]),Ct=Object(h.c)(Oe),zt=Ct.expandIcon,qt=Ct.expandedRowKeys,Qt=Ct.defaultExpandedRowKeys,St=Ct.defaultExpandAllRows,ln=Ct.expandedRowRender,Bt=Ct.onExpand,Yt=Ct.onExpandedRowsChange,Mt=Ct.expandRowByClick,tn=Ct.rowExpandable,mn=Ct.expandIconColumnIndex,An=Ct.expandedRowClassName,lt=Ct.childrenColumnName,Rt=Ct.indentSize,Jt=zt||oe,nn=lt||"children",un=M.useMemo(function(){return ln?"row":Oe.expandable&&qe===dt&&Oe.expandable.__PARENT_RENDER_ICON__||fe.some(function(Kt){return Kt&&Object(z.a)(Kt)==="object"&&Kt[nn]})?"nest":!1},[!!ln,fe]),cn=M.useState(function(){return Qt||(St?Se(fe,ft,nn):[])}),G=Object(B.a)(cn,2),b=G[0],L=G[1],V=M.useMemo(function(){return new Set(qt||b||[])},[qt,b]),J=M.useCallback(function(Kt){var pn=ft(Kt,fe.indexOf(Kt)),Cn,ur=V.has(pn);ur?(V.delete(pn),Cn=Object(k.a)(V)):Cn=[].concat(Object(k.a)(V),[pn]),L(Cn),Bt&&Bt(!ur,Kt),Yt&&Yt(Cn)},[ft,V,fe,Bt,Yt]),Q=M.useState(0),De=Object(B.a)(Q,2),ot=De[0],Ot=De[1],Ft=Object(Ue.b)(Object(K.a)(Object(K.a)(Object(K.a)({},Oe),Ct),{},{expandable:!!ln,expandedKeys:V,getRowKey:ft,onTriggerExpand:J,expandIcon:Jt,expandIconColumnIndex:mn,direction:ie}),qe===dt?Xe:null),ve=Object(B.a)(Ft,2),Gt=ve[0],en=ve[1],Tn=M.useMemo(function(){return{columns:Gt,flattenColumns:en}},[Gt,en]),Wn=M.useRef(),tr=M.useRef(),Rn=M.useRef(),or=M.useState(!1),fr=Object(B.a)(or,2),Vn=fr[0],sr=fr[1],Jn=M.useState(!1),Mr=Object(B.a)(Jn,2),Xn=Mr[0],Ir=Mr[1],yr=xe(new Map),Tr=Object(B.a)(yr,2),Yr=Tr[0],br=Tr[1],nr=Object(x.a)(en),Ur=nr.map(function(Kt){return Yr.get(Kt)}),_r=M.useMemo(function(){return Ur},[Ur.join("_")]),Fr=ye(_r,en.length,ie),Sn=be&&Object(x.d)(be.y),hn=be&&Object(x.d)(be.x),Pn=hn&&en.some(function(Kt){var pn=Kt.fixed;return pn}),yn=M.useRef(),Ln=Ze(se,Je),bn=Ln.isSticky,wr=Ln.offsetHeader,Bn=Ln.offsetScroll,Qn=Ln.stickyClassName,zr,jr,Dr;Sn&&(jr={overflowY:"scroll",maxHeight:be.y}),hn&&(zr={overflowX:"auto"},Sn||(jr={overflowY:"hidden"}),Dr={width:be.x===!0?"auto":be.x,minWidth:"100%"});var Jr=M.useCallback(function(Kt,pn){br(function(Cn){var ur=new Map(Cn);return ur.set(Kt,pn),ur})},[]),rr=he(null),Wr=Object(B.a)(rr,2),Er=Wr[0],Hr=Wr[1];function Zr(Kt,pn){if(!pn)return;typeof pn=="function"?pn(Kt):pn.scrollLeft!==Kt&&(pn.scrollLeft=Kt)}var ir=function(pn){var Cn=pn.currentTarget,ur=pn.scrollLeft,qr=typeof ur=="number"?ur:Cn.scrollLeft,Rr=Cn||vt;if(!Hr()||Hr()===Rr){var gi;Er(Rr),Zr(qr,tr.current),Zr(qr,Rn.current),Zr(qr,(gi=yn.current)===null||gi===void 0?void 0:gi.setScrollLeft)}if(Cn){var vi=Cn.scrollWidth,ai=Cn.clientWidth;sr(qr>0),Ir(qr0?[].concat(Object(K.a)(m),Object(K.a)(c(u).map(function(x){return Object(k.a)({fixed:o},x)}))):[].concat(Object(K.a)(m),[Object(k.a)(Object(k.a)({},a),{},{fixed:o})])},[])}function g(f){for(var m=!0,a=0;a=0;u-=1){var x=f[u];if(o&&x.fixed!=="right")o=!1;else if(!o&&x.fixed==="right"){Object(j.a)(!1,"Index ".concat(u+1," of `columns` missing `fixed='right'` prop."));break}}}function w(f){return f.map(function(m){var a=m.fixed,n=Object(z.a)(m,["fixed"]),o=a;return a==="left"?o="right":a==="right"&&(o="left"),Object(k.a)({fixed:o},n)})}function y(f,m){var a=f.prefixCls,n=f.columns,o=f.children,u=f.expandable,x=f.expandedKeys,E=f.getRowKey,v=f.onTriggerExpand,O=f.expandIcon,A=f.rowExpandable,p=f.expandIconColumnIndex,h=f.direction,s=f.expandRowByClick,l=B.useMemo(function(){return n||R(o)},[n,o]),D=B.useMemo(function(){if(u){var I,C=p||0,W=l[C],Y=(I={},Object(ee.a)(I,_.a,{className:"".concat(a,"-expand-icon-col")}),Object(ee.a)(I,"title",""),Object(ee.a)(I,"fixed",W?W.fixed:null),Object(ee.a)(I,"className","".concat(a,"-row-expand-icon-cell")),Object(ee.a)(I,"render",function(q,le,pe){var Ae=E(le,pe),Ge=x.has(Ae),Fe=A?A(le):!0,Ue=O({prefixCls:a,expanded:Ge,expandable:Fe,record:le,onExpand:v});return s?B.createElement("span",{onClick:function(je){return je.stopPropagation()}},Ue):Ue}),I),H=l.slice();return C>=0&&H.splice(C,0,Y),H}return l},[u,l,E,x,O,h]),T=B.useMemo(function(){var I=D;return m&&(I=m(I)),I.length||(I=[{render:function(){return null}}]),I},[m,D,h]),S=B.useMemo(function(){return h==="rtl"?w(c(T)):c(T)},[T,h]);return[T,S]}de.b=y},"y0+3":function(et,de,N){"use strict";N.d(de,"a",function(){return c}),N.d(de,"b",function(){return w});var ee=/margin|padding|width|height|max|min|offset/,K={left:!0,top:!0},k={cssFloat:1,styleFloat:1,float:1};function z(y){return y.nodeType===1?y.ownerDocument.defaultView.getComputedStyle(y,null):{}}function B(y,f,m){if(f=f.toLowerCase(),m==="auto"){if(f==="height")return y.offsetHeight;if(f==="width")return y.offsetWidth}return f in K||(K[f]=ee.test(f)),K[f]?parseFloat(m)||0:m}function M(y,f){var m=arguments.length,a=z(y);return f=k[f]?"cssFloat"in y.style?"cssFloat":"styleFloat":f,m===1?a:B(y,f,a[f]||y.style[f])}function j(y,f,m){var a=arguments.length;if(f=k[f]?"cssFloat"in y.style?"cssFloat":"styleFloat":f,a===3)return typeof m=="number"&&ee.test(f)&&(m="".concat(m,"px")),y.style[f]=m,m;for(var n in f)f.hasOwnProperty(n)&&j(y,n,f[n]);return z(y)}function U(y){return y===document.body?document.documentElement.clientWidth:y.offsetWidth}function _(y){return y===document.body?window.innerHeight||document.documentElement.clientHeight:y.offsetHeight}function R(){var y=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),f=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:y,height:f}}function c(){var y=document.documentElement.clientWidth,f=window.innerHeight||document.documentElement.clientHeight;return{width:y,height:f}}function g(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function w(y){var f=y.getBoundingClientRect(),m=document.documentElement;return{left:f.left+(window.pageXOffset||m.scrollLeft)-(m.clientLeft||document.body.clientLeft||0),top:f.top+(window.pageYOffset||m.scrollTop)-(m.clientTop||document.body.clientTop||0)}}},yslc:function(et,de){et.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAOHklEQVR4Xu1dCXQURRr+emZyTO6D3BCEgKCInCKeK3IoiyIqlxLyQBRBV8DNhCCrS3Z9Cq66KOoi68ECKocCcutTLhUERM1MEpBLEuQmQMKEnDNd+6onEzKTuXqmJ5l0V/EeL+mp+qu+r77UVP1V9TcHffZbIJgOlhgDMmaAA8lTwVDxJQh5UMY4GTSFM8AJ+PW6cIDsBEEfhfPB4MuUAYvQaTowOwV1NXtB0E6mWBksBTNwTeiUBENud/CmHwBEKZgTBl2GDNgKnQIsyBkCM9kEEI0M8TJICmWgqdCFkT17MngsUignDLYMGXAsdAo0XzcPILkyxMwgKZAB50InhIMhZxUIGalAXhhkmTHgXOgU6PG8UFwxbgdBf5nhZnAUxoBroVMyjryQgMraPSDoqDBuGFwZMeBe6MLi9IWuIHW7QUisjLAzKApiwDOhC25H3T3g8TUICVYQPwyqTBjwXOgUsD4nC4RfIhPsDIaCGBAndEHsujwQMkdBHDGoMmBAvNAtPvZlAMmUAX4GQSEMeCf0wrxgmCu+ASF3K4QnBrOVM+Cd0Cnoorw4mIw/guD6Vs4Ba74CGPBe6IInJicDZn4PgDYK4IpBbMUM+CZ0Qey5t4M3bwUhoa2YB4dNT1CHIzkoEkZzDYrrLtvkCeU0aBsULTw7WntRbtARoQrGbWHtBVw/Vpaggq9t1Rh9F7qwOM0ZA45fDgJp7PmJ0i4hCegU3AabjAc9qmF24r14JeXP+MZ4GEN+/69NmVvD0rGn8zThWYghF7XE7JFN+0wL0x5BQfVZLL60D1XE5JUNfxTqEZqC/C7Zgumeh96EvvqMP6ppNpvSCTM/Zxb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1gMu1jb5P2bwcx69Iw4J3QaegKk5G+uyhgI+ZKQw+zIhcGxAudEA56Hd1tscRaYIkx0AoYEC90vW4OCMlrBdhYExkDDQyIE7oQHZesDfSXcrH+ZQzYM+C50Atm3gBeiLLVrIGHWJcxBqRgwDOhH8+LQXnFPoB0lqJSZoMx0NwMuBc6yVPBULERhAxt7sax+hgDUjHgXuiG7LngMUuqCpkdxkBLMOBa6AW60TCTlS3RMFYnY0BKBpwLnUa9NZl3B/LLtqQkgtmSNwOOhX7whXjU1NKz5e4DdcubH4ZOJgw0Fbrl7c9fg5B7ZYKRwWAMOLgio89+CwTTGTeMATkxYDui63OyQPglcgLIsDAGKAPXhF6YfQvM3HeBENKZdQ1jQGoGLEIvmJ0EvnZ/c79ES2owzB5jwBkDHGhIZ/2R7QC5g9HEGJArAxzyde8D5Gm5AmS4GAO2c3TGB2OgFTLALR1KA6e5SByvUpEp7s+6tELwrMnKYcCl0DmYVOCyzOM3L2dCV44mZInUhdBrVFCPMmdt3MCmLrLsemWBcih0DlfVBMNNWVu2WdlgI7qydCE7tE2FzpVpVOqhdZkbaJSKhsSELruuVxYgG6FzOK+Bekjd+I16exaY0JWlC9mhbRA6h5PBCBpUM369w1jdTOiy63plAaoX+rEQNTewetzmEmfomdCVpQvZoeWWDi3UctrBlePXnHHpTZcdcgZIUQxErnk43vjI2ovuQP8faDGikjbF4FsAAAAASUVORK5CYII="}}]); diff --git a/p__Classrooms__Lists__Statistics__StudentVideo__index.8a4fe866.async.js b/p__Classrooms__Lists__Statistics__StudentVideo__index.8a4fe866.async.js index 95cb501044..8b1a607a20 100644 --- a/p__Classrooms__Lists__Statistics__StudentVideo__index.8a4fe866.async.js +++ b/p__Classrooms__Lists__Statistics__StudentVideo__index.8a4fe866.async.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[101,8],{"2TgF":function(he,A,t){he.exports={divback:"divback___19CJW",title:"title___2aAOE",divstyle:"divstyle___1ehDw"}},"6+eU":function(he,A,t){"use strict";t.d(A,"a",function(){return m});var g=t("wx14"),E=t("rePB"),G=t("VTBJ"),q=t("1OyB"),j=t("vuIU"),o=t("Ji7U"),X=t("LK+K"),P=t("q1tI"),i=t.n(P),B=t("TSYQ"),y=t.n(B),_=function(p){var n,a="".concat(p.rootPrefixCls,"-item"),e=y()(a,"".concat(a,"-").concat(p.page),(n={},Object(E.a)(n,"".concat(a,"-active"),p.active),Object(E.a)(n,p.className,!!p.className),Object(E.a)(n,"".concat(a,"-disabled"),!p.page),n)),d=function(){p.onClick(p.page)},c=function(I){p.onKeyPress(I,p.onClick,p.page)};return i.a.createElement("li",{title:p.showTitle?p.page:null,className:e,onClick:d,onKeyPress:c,tabIndex:"0"},p.itemRender(p.page,"page",i.a.createElement("a",{rel:"nofollow"},p.page)))},k=_,T={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},s=function(v){Object(o.a)(n,v);var p=Object(X.a)(n);function n(){var a;Object(q.a)(this,n);for(var e=arguments.length,d=new Array(e),c=0;c=0||f.relatedTarget.className.indexOf("".concat(V,"-next"))>=0))return;a.setState({goInputText:""}),F(a.getValidValue())},a.go=function(f){var I=a.state.goInputText;if(I==="")return;(f.keyCode===T.ENTER||f.type==="click")&&(a.setState({goInputText:""}),a.props.quickGo(a.getValidValue()))},a}return Object(j.a)(n,[{key:"getValidValue",value:function(){var e=this.state,d=e.goInputText,c=e.current;return!d||isNaN(d)?c:Number(d)}},{key:"getPageSizeOptions",value:function(){var e=this.props,d=e.pageSize,c=e.pageSizeOptions;return c.some(function(f){return f.toString()===d.toString()})?c:c.concat([d.toString()]).sort(function(f,I){var b=isNaN(Number(f))?0:Number(f),F=isNaN(Number(I))?0:Number(I);return b-F})}},{key:"render",value:function(){var e=this,d=this.props,c=d.pageSize,f=d.locale,I=d.rootPrefixCls,b=d.changeSize,F=d.quickGo,V=d.goButton,Q=d.selectComponentClass,ae=d.buildOptionText,H=d.selectPrefixCls,L=d.disabled,ee=this.state.goInputText,te="".concat(I,"-options"),ue=Q,re=null,Ce=null,Z=null;if(!b&&!F)return null;var Ne=this.getPageSizeOptions();if(b&&ue){var je=Ne.map(function(be,Me){return i.a.createElement(ue.Option,{key:Me,value:be.toString()},(ae||e.buildOptionText)(be))});re=i.a.createElement(ue,{disabled:L,prefixCls:H,showSearch:!1,className:"".concat(te,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(c||Ne[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Me){return Me.parentNode}},je)}return F&&(V&&(Z=typeof V=="boolean"?i.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:L,className:"".concat(te,"-quick-jumper-button")},f.jump_to_confirm):i.a.createElement("span",{onClick:this.go,onKeyUp:this.go},V)),Ce=i.a.createElement("div",{className:"".concat(te,"-quick-jumper")},f.jump_to,i.a.createElement("input",{disabled:L,type:"text",value:ee,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),f.page,Z)),i.a.createElement("li",{className:"".concat(te)},re,Ce)}}]),n}(i.a.Component);s.defaultProps={pageSizeOptions:["10","20","50","100"]};var l=s,O=t("N2Kk");function u(){}function C(v){return typeof v=="number"&&isFinite(v)&&Math.floor(v)===v}function x(v,p,n){return n}function h(v,p,n){var a=typeof v=="undefined"?p.pageSize:v;return Math.floor((n.total-1)/a)+1}var W=function(v){Object(o.a)(n,v);var p=Object(X.a)(n);function n(a){var e;Object(q.a)(this,n),e=p.call(this,a),e.getJumpPrevPage=function(){return Math.max(1,e.state.current-(e.props.showLessItems?3:5))},e.getJumpNextPage=function(){return Math.min(h(void 0,e.state,e.props),e.state.current+(e.props.showLessItems?3:5))},e.getItemIcon=function(b,F){var V=e.props.prefixCls,Q=b||i.a.createElement("button",{type:"button","aria-label":F,className:"".concat(V,"-item-link")});return typeof b=="function"&&(Q=i.a.createElement(b,Object(G.a)({},e.props))),Q},e.savePaginationNode=function(b){e.paginationNode=b},e.isValid=function(b){return C(b)&&b!==e.state.current},e.shouldDisplayQuickJumper=function(){var b=e.props,F=b.showQuickJumper,V=b.pageSize,Q=b.total;return Q<=V?!1:F},e.handleKeyDown=function(b){(b.keyCode===T.ARROW_UP||b.keyCode===T.ARROW_DOWN)&&b.preventDefault()},e.handleKeyUp=function(b){var F=e.getValidValue(b),V=e.state.currentInputValue;F!==V&&e.setState({currentInputValue:F}),b.keyCode===T.ENTER?e.handleChange(F):b.keyCode===T.ARROW_UP?e.handleChange(F-1):b.keyCode===T.ARROW_DOWN&&e.handleChange(F+1)},e.changePageSize=function(b){var F=e.state.current,V=h(b,e.state,e.props);F=F>V?V:F,V===0&&(F=e.state.current),typeof b=="number"&&("pageSize"in e.props||e.setState({pageSize:b}),"current"in e.props||e.setState({current:F,currentInputValue:F})),e.props.onShowSizeChange(F,b),"onChange"in e.props&&e.props.onChange&&e.props.onChange(F,b)},e.handleChange=function(b){var F=e.props.disabled,V=b;if(e.isValid(V)&&!F){var Q=h(void 0,e.state,e.props);V>Q?V=Q:V<1&&(V=1),"current"in e.props||e.setState({current:V,currentInputValue:V});var ae=e.state.pageSize;return e.props.onChange(V,ae),V}return e.state.current},e.prev=function(){e.hasPrev()&&e.handleChange(e.state.current-1)},e.next=function(){e.hasNext()&&e.handleChange(e.state.current+1)},e.jumpPrev=function(){e.handleChange(e.getJumpPrevPage())},e.jumpNext=function(){e.handleChange(e.getJumpNextPage())},e.hasPrev=function(){return e.state.current>1},e.hasNext=function(){return e.state.current2?V-2:0),ae=2;ae=c?I=c:I=Number(d),I}},{key:"getShowSizeChanger",value:function(){var e=this.props,d=e.showSizeChanger,c=e.total,f=e.totalBoundaryShowSizeChanger;return typeof d!="undefined"?d:c>f}},{key:"renderPrev",value:function(e){var d=this.props,c=d.prevIcon,f=d.itemRender,I=f(e,"prev",this.getItemIcon(c,"prev page")),b=!this.hasPrev();return Object(P.isValidElement)(I)?Object(P.cloneElement)(I,{disabled:b}):I}},{key:"renderNext",value:function(e){var d=this.props,c=d.nextIcon,f=d.itemRender,I=f(e,"next",this.getItemIcon(c,"next page")),b=!this.hasNext();return Object(P.isValidElement)(I)?Object(P.cloneElement)(I,{disabled:b}):I}},{key:"render",value:function(){var e=this,d=this.props,c=d.prefixCls,f=d.className,I=d.style,b=d.disabled,F=d.hideOnSinglePage,V=d.total,Q=d.locale,ae=d.showQuickJumper,H=d.showLessItems,L=d.showTitle,ee=d.showTotal,te=d.simple,ue=d.itemRender,re=d.showPrevNextJumpers,Ce=d.jumpPrevIcon,Z=d.jumpNextIcon,Ne=d.selectComponentClass,je=d.selectPrefixCls,be=d.pageSizeOptions,Me=this.state,ie=Me.current,Ae=Me.pageSize,we=Me.currentInputValue;if(F===!0&&V<=Ae)return null;var ce=h(void 0,this.state,this.props),Ee=[],We=null,Ue=null,Be=null,Ye=null,_e=null,de=ae&&ae.goButton,fe=H?1:2,Qe=ie-1>0?ie-1:0,et=ie+1=fe*2&&ie!==1+2&&(Ee[0]=Object(P.cloneElement)(Ee[0],{className:"".concat(c,"-item-after-jump-prev")}),Ee.unshift(We)),ce-ie>=fe*2&&ie!==ce-2&&(Ee[Ee.length-1]=Object(P.cloneElement)(Ee[Ee.length-1],{className:"".concat(c,"-item-before-jump-next")}),Ee.push(Ue)),N!==1&&Ee.unshift(Be),w!==ce&&Ee.push(Ye)}var D=null;ee&&(D=i.a.createElement("li",{className:"".concat(c,"-total-text")},ee(V,[V===0?0:(ie-1)*Ae+1,ie*Ae>V?V:ie*Ae])));var S=!this.hasPrev()||!ce,M=!this.hasNext()||!ce;return i.a.createElement("ul",Object(g.a)({className:y()(c,f,Object(E.a)({},"".concat(c,"-disabled"),b)),style:I,unselectable:"unselectable",ref:this.savePaginationNode},tt),D,i.a.createElement("li",{title:L?Q.prev_page:null,onClick:this.prev,tabIndex:S?null:0,onKeyPress:this.runIfEnterPrev,className:y()("".concat(c,"-prev"),Object(E.a)({},"".concat(c,"-disabled"),S)),"aria-disabled":S},this.renderPrev(Qe)),Ee,i.a.createElement("li",{title:L?Q.next_page:null,onClick:this.next,tabIndex:M?null:0,onKeyPress:this.runIfEnterNext,className:y()("".concat(c,"-next"),Object(E.a)({},"".concat(c,"-disabled"),M)),"aria-disabled":M},this.renderNext(et)),i.a.createElement(l,{disabled:b,locale:Q,rootPrefixCls:c,selectComponentClass:Ne,selectPrefixCls:je,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:ie,pageSize:Ae,pageSizeOptions:be,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:de}))}}],[{key:"getDerivedStateFromProps",value:function(e,d){var c={};if("current"in e&&(c.current=e.current,e.current!==d.current&&(c.currentInputValue=c.current)),"pageSize"in e&&e.pageSize!==d.pageSize){var f=d.current,I=h(e.pageSize,d,e);f=f>I?I:f,"current"in e||(c.current=f,c.currentInputValue=f),c.pageSize=e.pageSize}return c}}]),n}(i.a.Component);W.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:u,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:u,locale:O.a,style:{},itemRender:x,totalBoundaryShowSizeChanger:50};var m=W},"6RRn":function(he,A,t){"use strict";var g=t("wCXF"),E=t("n6Qo");t.d(A,"b",function(){return E.a});var G=t("IBYe"),q=t("6eGT"),j=t("hW8S");t.d(A,"a",function(){return j.a}),A.c=g.b},"6eGT":function(he,A,t){"use strict";function g(E){return null}A.a=g},"815F":function(he,A,t){"use strict";t.d(A,"e",function(){return X}),t.d(A,"c",function(){return i}),t.d(A,"d",function(){return B}),t.d(A,"a",function(){return _}),t.d(A,"f",function(){return k}),t.d(A,"b",function(){return T});var g=t("KQm4"),E=t("VTBJ"),G=t("Ff2n"),q=t("Zm9Q"),j=t("Kwbf"),o=t("OZM5");function X(s,l){return s!=null?s:l}function P(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=new Map;function O(u){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(u||[]).forEach(function(x){var h=x.key,W=x.children;Object(j.a)(h!=null,"Tree node must have a certain key: [".concat(C).concat(h,"]"));var m=String(h);Object(j.a)(!l.has(m)||h===null||h===void 0,"Same 'key' exist in the Tree: ".concat(m)),l.set(m,!0),O(W,"".concat(C).concat(m," > "))})}O(s)}function i(s){function l(O){var u=Object(q.a)(O);return u.map(function(C){if(!Object(o.i)(C))return Object(j.a)(!C,"Tree/TreeNode can only accept TreeNode as children."),null;var x=C.key,h=C.props,W=h.children,m=Object(G.a)(h,["children"]),v=Object(E.a)({key:x},m),p=l(W);return p.length&&(v.children=p),v}).filter(function(C){return C})}return l(s)}function B(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],O=new Set(l===!0?[]:l),u=[];function C(x){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return x.map(function(W,m){var v=Object(o.h)(h?h.pos:"0",m),p=X(W.key,v),n=Object(E.a)(Object(E.a)({},W),{},{parent:h,pos:v,children:null,data:W,isStart:[].concat(Object(g.a)(h?h.isStart:[]),[m===0]),isEnd:[].concat(Object(g.a)(h?h.isEnd:[]),[m===x.length-1])});return u.push(n),l===!0||O.has(p)?n.children=C(W.children||[],n):n.children=[],n})}return C(s),u}function y(s,l,O){var u;O?typeof O=="string"?u=function(h){return h[O]}:typeof O=="function"&&(u=function(h){return O(h)}):u=function(h,W){return X(h.key,W)};function C(x,h,W){var m=x?x.children:s,v=x?Object(o.h)(W.pos,h):"0";if(x){var p=u(x,v),n={node:x,index:h,pos:v,key:p,parentPos:W.node?W.pos:null,level:W.level+1};l(n)}m&&m.forEach(function(a,e){C(a,e,{node:x,pos:v,level:W?W.level+1:-1})})}C(null)}function _(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=l.initWrapper,u=l.processEntity,C=l.onProcessFinished,x=arguments.length>2?arguments[2]:void 0,h={},W={},m={posEntities:h,keyEntities:W};return O&&(m=O(m)||m),y(s,function(v){var p=v.node,n=v.index,a=v.pos,e=v.key,d=v.parentPos,c=v.level,f={node:p,index:n,key:e,pos:a,level:c},I=X(e,a);h[a]=f,W[I]=f,f.parent=h[d],f.parent&&(f.parent.children=f.parent.children||[],f.parent.children.push(f)),u&&u(f,m)},x),C&&C(m),m}function k(s,l){var O=l.expandedKeys,u=l.selectedKeys,C=l.loadedKeys,x=l.loadingKeys,h=l.checkedKeys,W=l.halfCheckedKeys,m=l.dragOverNodeKey,v=l.dropPosition,p=l.keyEntities,n=p[s],a={eventKey:s,expanded:O.indexOf(s)!==-1,selected:u.indexOf(s)!==-1,loaded:C.indexOf(s)!==-1,loading:x.indexOf(s)!==-1,checked:h.indexOf(s)!==-1,halfChecked:W.indexOf(s)!==-1,pos:String(n?n.pos:""),dragOver:m===s&&v===0,dragOverGapTop:m===s&&v===-1,dragOverGapBottom:m===s&&v===1};return a}function T(s){var l=s.data,O=s.expanded,u=s.selected,C=s.checked,x=s.loaded,h=s.loading,W=s.halfChecked,m=s.dragOver,v=s.dragOverGapTop,p=s.dragOverGapBottom,n=s.pos,a=s.active,e=Object(E.a)(Object(E.a)({},l),{},{expanded:O,selected:u,checked:C,loaded:x,loading:h,halfChecked:W,dragOver:m,dragOverGapTop:v,dragOverGapBottom:p,pos:n,active:a});return"props"in e||Object.defineProperty(e,"props",{get:function(){return Object(j.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),s}}),e}},BU3w:function(he,A,t){"use strict";t.d(A,"a",function(){return o});var g=t("MNnm"),E="rc-util-key";function G(X){if(X.attachTo)return X.attachTo;var P=document.querySelector("head");return P||document.body}function q(X){var P,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(g.a)())return null;var B=document.createElement("style");if((P=i.csp)===null||P===void 0?void 0:P.nonce){var y;B.nonce=(y=i.csp)===null||y===void 0?void 0:y.nonce}B.innerHTML=X;var _=G(i),k=_.firstChild;return i.prepend&&_.prepend?_.prepend(B):i.prepend&&k?_.insertBefore(B,k):_.appendChild(B),B}var j=new Map;function o(X,P){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},B=G(i);if(!j.has(B)){var y=q("",i),_=y.parentNode;j.set(B,_),_.removeChild(y)}var k=Array.from(j.get(B).children).find(function(u){return u.tagName==="STYLE"&&u[E]===P});if(k){var T,s;if(((T=i.csp)===null||T===void 0?void 0:T.nonce)&&k.nonce!==((s=i.csp)===null||s===void 0?void 0:s.nonce)){var l;k.nonce=(l=i.csp)===null||l===void 0?void 0:l.nonce}return k.innerHTML!==X&&(k.innerHTML=X),k}var O=q(X,i);return O[E]=P,O}},BdwD:function(he,A,t){"use strict";var g=t("+L6B"),E=t("2/Rp"),G=t("0Owb"),q=t("k1fw"),j=t("q1tI"),o=t.n(j),X=t("FOrL"),P=t.n(X),i=function(y){var _=y.buttonProps,k=_===void 0?{}:_,T=y.styles,s=T===void 0?{}:T,l=y.customText,O=y.ButtonText,u=y.ButtonClick,C=y.Buttonclass,x=y.ButtonTwo;return o.a.createElement("section",{className:"tc animated fadeIn",style:Object(q.a)(Object(q.a)({},{color:"#999",margin:"200px auto"}),s)},o.a.createElement("img",{src:P.a}),o.a.createElement("p",{className:"mt20 font14"},l||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),O&&o.a.createElement(E.a,Object(G.a)({className:C,onClick:u},k),O),x&&x)};A.a=i},FOrL:function(he,A,t){he.exports=t.p+"static/nodata.a6b3f948.png"},IBYe:function(he,A,t){"use strict";function g(E){return null}A.a=g},LdHM:function(he,A,t){"use strict";t.d(A,"b",function(){return x}),t.d(A,"a",function(){return W});var g=t("1OyB"),E=t("vuIU"),G=t("Ji7U"),q=t("LK+K"),j=t("q1tI"),o=t("rePB"),X=t("Ff2n"),P=t("ODXe"),i=t("4IlW"),B=t("bX4T"),y=t("YrtM"),_=t("TSYQ"),k=t.n(_),T=t("+nKL"),s=t("8OUc"),l=function(L,ee){var te=L.prefixCls,ue=L.id,re=L.flattenOptions,Ce=L.childrenAsData,Z=L.values,Ne=L.searchValue,je=L.multiple,be=L.defaultActiveFirstOption,Me=L.height,ie=L.itemHeight,Ae=L.notFoundContent,we=L.open,ce=L.menuItemSelectedIcon,Ee=L.virtual,We=L.onSelect,Ue=L.onToggleOpen,Be=L.onActiveValue,Ye=L.onScroll,_e=L.onMouseEnter,de="".concat(te,"-item"),fe=Object(y.a)(function(){return re},[we,re],function(U,D){return D[0]&&U[1]!==D[1]}),Qe=j.useRef(null),et=function(D){D.preventDefault()},tt=function(D){Qe.current&&Qe.current.scrollTo({index:D})},st=function(D){for(var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,M=fe.length,J=0;J1&&arguments[1]!==void 0?arguments[1]:!1;return Object(v.a)(H).map(function(ee,te){if(!j.isValidElement(ee)||!ee.type)return null;var ue=ee.type.isSelectOptGroup,re=ee.key,Ce=ee.props,Z=Ce.children,Ne=Object(X.a)(Ce,["children"]);return L||!ue?p(ee):Object(m.a)(Object(m.a)({key:"__RC_SELECT_GRP__".concat(re===null?te:re,"__"),label:re},Ne),{},{options:n(Z)})}).filter(function(ee){return ee})}var a=t("2Qr1"),e=t("qNPg"),d=t("U8pU"),c=t("Kwbf"),f=t("WKfj");function I(H){var L=H.mode,ee=H.options,te=H.children,ue=H.backfill,re=H.allowClear,Ce=H.placeholder,Z=H.getInputElement,Ne=H.showSearch,je=H.onSearch,be=H.defaultOpen,Me=H.autoFocus,ie=H.labelInValue,Ae=H.value,we=H.inputValue,ce=H.optionLabelProp,Ee=L==="multiple"||L==="tags",We=Ne!==void 0?Ne:Ee||L==="combobox",Ue=ee||n(te);if(Object(c.a)(L!=="tags"||Ue.every(function(de){return!de.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),L==="tags"||L==="combobox"){var Be=Ue.some(function(de){return de.options?de.options.some(function(fe){return typeof("value"in fe?fe.value:fe.key)=="number"}):typeof("value"in de?de.value:de.key)=="number"});Object(c.a)(!Be,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(c.a)(L!=="combobox"||!ce,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(c.a)(L==="combobox"||!ue,"`backfill` only works with `combobox` mode."),Object(c.a)(L==="combobox"||!Z,"`getInputElement` only work with `combobox` mode."),Object(c.b)(L!=="combobox"||!Z||!re||!Ce,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),je&&!We&&L!=="combobox"&&L!=="tags"&&Object(c.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(c.b)(!be||Me,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Ae!=null){var Ye=Object(f.d)(Ae);Object(c.a)(!ie||Ye.every(function(de){return Object(d.a)(de)==="object"&&("key"in de||"value"in de)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(c.a)(!Ee||Array.isArray(Ae),"`value` should be array when `mode` is `multiple` or `tags`")}if(te){var _e=null;Object(v.a)(te).some(function(de){if(!j.isValidElement(de)||!de.type)return!1;var fe=de.type;if(fe.isSelectOption)return!1;if(fe.isSelectOptGroup){var Qe=Object(v.a)(de.props.children).every(function(et){return!j.isValidElement(et)||!de.type||et.type.isSelectOption?!0:(_e=et.type,!1)});return!Qe}return _e=fe,!0}),_e&&Object(c.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(_e.displayName||_e.name||_e,"`.")),Object(c.a)(we===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var b=I,F=Object(e.a)({prefixCls:"rc-select",components:{optionList:u},convertChildrenToData:n,flattenOptions:a.d,getLabeledValue:a.e,filterOptions:a.b,isValueDisabled:a.g,findValueOption:a.c,warningProps:b,fillOptionsWithMissingValue:a.a}),V=function(H){Object(G.a)(ee,H);var L=Object(q.a)(ee);function ee(){var te;return Object(g.a)(this,ee),te=L.apply(this,arguments),te.selectRef=j.createRef(),te.focus=function(){te.selectRef.current.focus()},te.blur=function(){te.selectRef.current.blur()},te}return Object(E.a)(ee,[{key:"render",value:function(){return j.createElement(F,Object.assign({ref:this.selectRef},this.props))}}]),ee}(j.Component);V.Option=x,V.OptGroup=W;var Q=V,ae=A.c=Q},NvD2:function(he,A,t){"use strict";t.d(A,"a",function(){return o});var g=t("Kwbf");function E(X,P){var i=new Set;return X.forEach(function(B){P.has(B)||i.add(B)}),i}function G(X){var P=X||{},i=P.disabled,B=P.disableCheckbox,y=P.checkable;return!!(i||B)||y===!1}function q(X,P,i,B){for(var y=new Set(X),_=new Set,k=0;k<=i;k+=1){var T=P.get(k)||new Set;T.forEach(function(u){var C=u.key,x=u.node,h=u.children,W=h===void 0?[]:h;y.has(C)&&!B(x)&&W.filter(function(m){return!B(m.node)}).forEach(function(m){y.add(m.key)})})}for(var s=new Set,l=i;l>=0;l-=1){var O=P.get(l)||new Set;O.forEach(function(u){var C=u.parent,x=u.node;if(B(x)||!u.parent||s.has(u.parent.key))return;if(B(u.parent.node)){s.add(C.key);return}var h=!0,W=!1;(C.children||[]).filter(function(m){return!B(m.node)}).forEach(function(m){var v=m.key,p=y.has(v);h&&!p&&(h=!1),!W&&(p||_.has(v))&&(W=!0)}),h&&y.add(C.key),W&&_.add(C.key),s.add(C.key)})}return{checkedKeys:Array.from(y),halfCheckedKeys:Array.from(E(_,y))}}function j(X,P,i,B,y){for(var _=new Set(X),k=new Set(P),T=0;T<=B;T+=1){var s=i.get(T)||new Set;s.forEach(function(C){var x=C.key,h=C.node,W=C.children,m=W===void 0?[]:W;!_.has(x)&&!k.has(x)&&!y(h)&&m.filter(function(v){return!y(v.node)}).forEach(function(v){_.delete(v.key)})})}k=new Set;for(var l=new Set,O=B;O>=0;O-=1){var u=i.get(O)||new Set;u.forEach(function(C){var x=C.parent,h=C.node;if(y(h)||!C.parent||l.has(C.parent.key))return;if(y(C.parent.node)){l.add(x.key);return}var W=!0,m=!1;(x.children||[]).filter(function(v){return!y(v.node)}).forEach(function(v){var p=v.key,n=_.has(p);W&&!n&&(W=!1),!m&&(n||k.has(p))&&(m=!0)}),W||_.delete(x.key),m&&k.add(x.key),l.add(x.key)})}return{checkedKeys:Array.from(_),halfCheckedKeys:Array.from(E(k,_))}}function o(X,P,i,B){var y=[],_;B?_=B:_=G;var k=new Set(X.filter(function(O){var u=!!i[O];return u||y.push(O),u})),T=new Map,s=0;Object.keys(i).forEach(function(O){var u=i[O],C=u.level,x=T.get(C);x||(x=new Set,T.set(C,x)),x.add(u),s=Math.max(s,C)}),Object(g.a)(!y.length,"Tree missing follow keys: ".concat(y.slice(0,100).map(function(O){return"'".concat(O,"'")}).join(", ")));var l;return P===!0?l=q(k,T,s,_):l=j(k,P.halfCheckedKeys,T,s,_),l}},OZM5:function(he,A,t){"use strict";t.d(A,"b",function(){return B}),t.d(A,"a",function(){return y}),t.d(A,"k",function(){return _}),t.d(A,"h",function(){return k}),t.d(A,"i",function(){return T}),t.d(A,"g",function(){return s}),t.d(A,"c",function(){return l}),t.d(A,"d",function(){return O}),t.d(A,"j",function(){return x}),t.d(A,"e",function(){return h}),t.d(A,"f",function(){return W});var g=t("KQm4"),E=t("U8pU"),G=t("Ff2n"),q=t("q1tI"),j=t.n(q),o=t("Kwbf"),X=t("WaYH"),P=.25,i=2;function B(m,v){var p=m.slice(),n=p.indexOf(v);return n>=0&&p.splice(n,1),p}function y(m,v){var p=m.slice();return p.indexOf(v)===-1&&p.push(v),p}function _(m){return m.split("-")}function k(m,v){return"".concat(m,"-").concat(v)}function T(m){return m&&m.type&&m.type.isTreeNode}function s(m,v){var p=[m],n=v[m];function a(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];e.forEach(function(d){var c=d.key,f=d.children;p.push(c),a(f)})}return a(n.children),p}function l(m,v){var p=m.clientY,n=v.selectHandle.getBoundingClientRect(),a=n.top,e=n.bottom,d=n.height,c=Math.max(d*P,i);return p<=a+c?-1:p>=e-c?1:0}function O(m,v){if(!m)return;var p=v.multiple;return p?m.slice():m.length?[m[0]]:m}var u=function(v){return v};function C(m,v){if(!m)return[];var p=v||{},n=p.processProps,a=n===void 0?u:n,e=Array.isArray(m)?m:[m];return e.map(function(d){var c=d.children,f=Object(G.a)(d,["children"]),I=C(c,v);return j.a.createElement(X.a,Object.assign({},a(f)),I)})}function x(m){if(!m)return null;var v;if(Array.isArray(m))v={checkedKeys:m,halfCheckedKeys:void 0};else if(Object(E.a)(m)==="object")v={checkedKeys:m.checked||void 0,halfCheckedKeys:m.halfChecked||void 0};else return Object(o.a)(!1,"`checkedKeys` is not an array or an object"),null;return v}function h(m,v){var p=new Set;function n(a){if(p.has(a))return;var e=v[a];if(!e)return;p.add(a);var d=e.parent,c=e.node;if(c.disabled)return;d&&n(d.key)}return(m||[]).forEach(function(a){n(a)}),Object(g.a)(p)}function W(m){var v={};return Object.keys(m).forEach(function(p){(p.startsWith("data-")||p.startsWith("aria-"))&&(v[p]=m[p])}),v}},"SA+Z":function(he,A,t){var g=t("wTVA"),E=t("EbDI"),G=t("ZhPi"),q=t("wkBT");function j(o){return g(o)||E(o)||G(o)||q()}he.exports=j,he.exports.__esModule=!0,he.exports.default=he.exports},WaYH:function(he,A,t){"use strict";var g=t("rePB"),E=t("Ff2n"),G=t("VTBJ"),q=t("1OyB"),j=t("vuIU"),o=t("JX7q"),X=t("Ji7U"),P=t("LK+K"),i=t("q1tI"),B=t("TSYQ"),y=t.n(B),_=t("sboe"),k=t("OZM5"),T=function(v){var p=v.prefixCls,n=v.level,a=v.isStart,e=v.isEnd;if(!n)return null;for(var d="".concat(p,"-indent-unit"),c=[],f=0;f0&&_.a.createElement(q.a,{dataSource:e==null?void 0:e.student,pagination:!1,columns:Q}),_.a.createElement("aside",{className:"tc mb50 mt30 mb20"},_.a.createElement(E.a,{hideOnSinglePage:!0,showSizeChanger:!1,onChange:function(H,L){F(H)},current:I||1,defaultPageSize:10,total:e==null?void 0:e.count})))}A.default=Object(C.a)(function(W){var m=W.user;return{user:m}})(h)},fyJ8:function(he,A,t){"use strict";var g=t("rePB"),E=t("VTBJ"),G=t("Ff2n"),q=t("U8pU"),j=t("q1tI"),o=t.n(j),X=t("TSYQ"),P=t.n(X),i=t("c+Xe"),B=t("sR1s");function y(l){return l&&Object(q.a)(l)==="object"&&!Array.isArray(l)&&!j.isValidElement(l)}function _(l){return typeof l=="string"?!0:Object(i.c)(l)}function k(l,O){var u,C=l.prefixCls,x=l.className,h=l.record,W=l.index,m=l.dataIndex,v=l.render,p=l.children,n=l.component,a=n===void 0?"td":n,e=l.colSpan,d=l.rowSpan,c=l.fixLeft,f=l.fixRight,I=l.firstFixLeft,b=l.lastFixLeft,F=l.firstFixRight,V=l.lastFixRight,Q=l.appendNode,ae=l.additionalProps,H=ae===void 0?{}:ae,L=l.ellipsis,ee=l.align,te=l.rowType,ue=l.isSticky,re="".concat(C,"-cell"),Ce,Z;if(p)Z=p;else{var Ne=Object(B.b)(h,m);if(Z=Ne,v){var je=v(Ne,h,W);y(je)?(Z=je.children,Ce=je.props):Z=je}}Object(q.a)(Z)==="object"&&!Array.isArray(Z)&&!j.isValidElement(Z)&&(Z=null),L&&(b||F)&&(Z=j.createElement("span",{className:"".concat(re,"-content")},Z));var be=Ce||{},Me=be.colSpan,ie=be.rowSpan,Ae=be.style,we=be.className,ce=Object(G.a)(be,["colSpan","rowSpan","style","className"]),Ee=Me!==void 0?Me:e,We=ie!==void 0?ie:d;if(Ee===0||We===0)return null;var Ue={},Be=typeof c=="number",Ye=typeof f=="number";Be&&(Ue.position="sticky",Ue.left=c),Ye&&(Ue.position="sticky",Ue.right=f);var _e={};ee&&(_e.textAlign=ee);var de,fe=L===!0?{showTitle:!0}:L;fe&&(fe.showTitle||te==="header")&&(typeof Z=="string"||typeof Z=="number"?de=Z.toString():j.isValidElement(Z)&&typeof Z.props.children=="string"&&(de=Z.props.children));var Qe=Object(E.a)(Object(E.a)(Object(E.a)({title:de},ce),H),{},{colSpan:Ee&&Ee!==1?Ee:null,rowSpan:We&&We!==1?We:null,className:P()(re,x,(u={},Object(g.a)(u,"".concat(re,"-fix-left"),Be),Object(g.a)(u,"".concat(re,"-fix-left-first"),I),Object(g.a)(u,"".concat(re,"-fix-left-last"),b),Object(g.a)(u,"".concat(re,"-fix-right"),Ye),Object(g.a)(u,"".concat(re,"-fix-right-first"),F),Object(g.a)(u,"".concat(re,"-fix-right-last"),V),Object(g.a)(u,"".concat(re,"-ellipsis"),L),Object(g.a)(u,"".concat(re,"-with-append"),Q),Object(g.a)(u,"".concat(re,"-fix-sticky"),(Be||Ye)&&ue),u),H.className,we),style:Object(E.a)(Object(E.a)(Object(E.a)(Object(E.a)({},H.style),_e),Ue),Ae),ref:_(a)?O:null});return j.createElement(a,Object.assign({},Qe),Q,Z)}var T=j.forwardRef(k);T.displayName="Cell";var s=j.memo(T,function(l,O){return O.shouldCellUpdate?!O.shouldCellUpdate(O.record,l.record):!1});A.a=s},hW8S:function(he,A,t){"use strict";t.d(A,"a",function(){return q}),t.d(A,"c",function(){return j}),t.d(A,"b",function(){return o});var g=t("VTBJ"),E=t("Ff2n"),G=t("Kwbf"),q="RC_TABLE_INTERNAL_COL_DEFINE";function j(X){var P=X.expandable,i=Object(E.a)(X,["expandable"]);return"expandable"in X?Object(g.a)(Object(g.a)({},i),P):i}function o(X){return Object.keys(X).reduce(function(P,i){return(i.substr(0,5)==="data-"||i.substr(0,5)==="aria-")&&(P[i]=X[i]),P},{})}},n6Qo:function(he,A,t){"use strict";t.d(A,"a",function(){return P});var g=t("q1tI"),E=t("biw7"),G=t("fyJ8");function q(i){var B=i.className,y=i.index,_=i.children,k=i.colSpan,T=i.rowSpan,s=g.useContext(E.a),l=s.prefixCls,O=s.fixedInfoList,u=O[y];return g.createElement(G.a,Object.assign({className:B,index:y,component:"td",prefixCls:l,record:null,dataIndex:null,render:function(){return{children:_,props:{colSpan:k,rowSpan:T}}}},u))}function j(i){return g.createElement("tr",Object.assign({},i))}function o(i){var B=i.children,y=g.useContext(E.a),_=y.prefixCls;return g.createElement("tfoot",{className:"".concat(_,"-summary")},B)}var X=A.b=o,P={Cell:q,Row:j}},sR1s:function(he,A,t){"use strict";t.d(A,"b",function(){return q}),t.d(A,"a",function(){return j}),t.d(A,"c",function(){return o}),t.d(A,"d",function(){return X});var g=t("U8pU"),E="RC_TABLE_KEY";function G(P){return P==null?[]:Array.isArray(P)?P:[P]}function q(P,i){if(!i&&typeof i!="number")return P;for(var B=G(i),y=P,_=0;_1)Object(B.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(x.length===0)return Object(B.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var h=x[0];if(o.isValidElement(h)&&Object(y.c)(h)){var W=h.ref;x[0]=o.cloneElement(h,{ref:Object(y.a)(W,this.setChildNode)})}return x.length===1?x[0]:x.map(function(m,v){return!o.isValidElement(m)||"key"in m&&m.key!==null?m:o.cloneElement(m,{key:"".concat(k,"-").concat(v)})})}}]),O}(o.Component);T.displayName="ResizeObserver",A.a=T},wCXF:function(he,A,t){"use strict";t.d(A,"a",function(){return tt});var g=t("rePB"),E=t("VTBJ"),G=t("KQm4"),q=t("U8pU"),j=t("ODXe"),o=t("q1tI"),X=t("TSYQ"),P=t.n(X),i=t("Gytx"),B=t.n(i),y=t("Kwbf"),_=t("t23M"),k=t("qx4F"),T=t("6eGT"),s=t("IBYe"),l=t("Ff2n"),O=t("c+Xe"),u=t("fyJ8"),C=t("biw7");function x(r,R,N,w,z){var U=N[r]||{},D=N[R]||{},S,M;U.fixed==="left"?S=w.left[r]:D.fixed==="right"&&(M=w.right[R]);var J=!1,K=!1,$=!1,ne=!1,Y=N[R+1],le=N[r-1];if(z==="rtl"){if(S!==void 0){var Oe=le&&le.fixed==="left";ne=!Oe}else if(M!==void 0){var ve=Y&&Y.fixed==="right";$=!ve}}else if(S!==void 0){var ye=Y&&Y.fixed==="left";J=!ye}else if(M!==void 0){var oe=le&&le.fixed==="right";K=!oe}return{fixLeft:S,fixRight:M,lastFixLeft:J,firstFixRight:K,lastFixRight:$,firstFixLeft:ne,isSticky:w.isSticky}}var h=t("sR1s");function W(r){var R=r.cells,N=r.stickyOffsets,w=r.flattenColumns,z=r.rowComponent,U=r.cellComponent,D=r.onHeaderRow,S=r.index,M=o.useContext(C.a),J=M.prefixCls,K=M.direction,$;D&&($=D(R.map(function(Y){return Y.column}),S));var ne=Object(h.a)(R.map(function(Y){return Y.column}));return o.createElement(z,Object.assign({},$),R.map(function(Y,le){var Oe=Y.column,ve=x(Y.colStart,Y.colEnd,w,N,K),ye;return Oe&&Oe.onHeaderCell&&(ye=Y.column.onHeaderCell(Oe)),o.createElement(u.a,Object.assign({},Y,{ellipsis:Oe.ellipsis,align:Oe.align,component:U,prefixCls:J,key:ne[le]},ve,{additionalProps:ye,rowType:"header"}))}))}W.displayName="HeaderRow";var m=W;function v(r){var R=[];function N(D,S){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;R[M]=R[M]||[];var J=S,K=D.filter(Boolean).map(function($){var ne={key:$.key,className:$.className||"",children:$.title,column:$,colStart:J},Y=1,le=$.children;return le&&le.length>0&&(Y=N(le,J,M+1).reduce(function(Oe,ve){return Oe+ve},0),ne.hasSubColumns=!0),"colSpan"in $&&(Y=$.colSpan),"rowSpan"in $&&(ne.rowSpan=$.rowSpan),ne.colSpan=Y,ne.colEnd=ne.colStart+Y-1,R[M].push(ne),J+=Y,Y});return K}N(r,0);for(var w=R.length,z=function(S){R[S].forEach(function(M){!("rowSpan"in M)&&!M.hasSubColumns&&(M.rowSpan=w-S)})},U=0;U=0;S-=1){var M=R[S],J=N&&N[S],K=J&&J[a.a];(M||K||D)&&(z.unshift(o.createElement("col",Object.assign({key:S,style:{width:M,minWidth:M}},K))),D=!0)}return o.createElement("colgroup",null,z)}var d=e;function c(r,R){return Object(o.useMemo)(function(){for(var N=[],w=0;w1?He-1:0),ct=1;ct=$&&(Re=$-ne),D({scrollLeft:Re/$*(K+2)}),oe.current.x=se.pageX},ke=function(){var se=Object(Ye.b)(U.current).top,Le=se+U.current.offsetHeight,Fe=document.documentElement.scrollTop+window.innerHeight;Le-Object(k.a)()<=Fe||se>=Fe-S?ye(function(Je){return Object(E.a)(Object(E.a)({},Je),{},{isHiddenScrollBar:!0})}):ye(function(Je){return Object(E.a)(Object(E.a)({},Je),{},{isHiddenScrollBar:!1})})},Se=function(se){ye(function(Le){return Object(E.a)(Object(E.a)({},Le),{},{scrollLeft:se/K*$||0})})};return o.useImperativeHandle(N,function(){return{setScrollLeft:Se}}),o.useEffect(function(){var xe=Object(Be.a)(document.body,"mouseup",$e,!1),se=Object(Be.a)(document.body,"mousemove",Ge,!1);return ke(),function(){xe.remove(),se.remove()}},[ne,Pe]),o.useEffect(function(){var xe=Object(Be.a)(window,"scroll",ke,!1),se=Object(Be.a)(window,"resize",ke,!1);return function(){xe.remove(),se.remove()}},[]),o.useEffect(function(){ve.isHiddenScrollBar||ye(function(xe){var se,Le;return Object(E.a)(Object(E.a)({},xe),{},{scrollLeft:U.current.scrollLeft/((se=U.current)===null||se===void 0?void 0:se.scrollWidth)*((Le=U.current)===null||Le===void 0?void 0:Le.clientWidth)})})},[ve.isHiddenScrollBar]),K<=$||!ne||ve.isHiddenScrollBar?null:o.createElement("div",{style:{height:Object(k.a)(),width:$,bottom:S},className:"".concat(J,"-sticky-scroll")},o.createElement("div",{onMouseDown:ge,ref:Y,className:P()("".concat(J,"-sticky-scroll-bar"),Object(g.a)({},"".concat(J,"-sticky-scroll-bar-active"),Pe)),style:{width:"".concat(ne,"px"),transform:"translate3d(".concat(ve.scrollLeft,"px, 0, 0)")}}))},de=o.forwardRef(_e);function fe(r,R){return o.useMemo(function(){var N=!!r;return{isSticky:N,stickyClassName:N?"".concat(R,"-sticky-header"):"",offsetHeader:Object(q.a)(r)==="object"&&r.offsetHeader||0,offsetScroll:Object(q.a)(r)==="object"&&r.offsetScroll||0}},[r,R])}var Qe=[],et={},tt="rc-table-internal-hook",st=o.memo(function(r){var R=r.children;return R},function(r,R){return B()(r.props,R.props)?r.pingLeft!==R.pingLeft||r.pingRight!==R.pingRight:!1});function Ve(r){var R,N=r.prefixCls,w=r.className,z=r.rowClassName,U=r.style,D=r.data,S=r.rowKey,M=r.scroll,J=r.tableLayout,K=r.direction,$=r.title,ne=r.footer,Y=r.summary,le=r.id,Oe=r.showHeader,ve=r.components,ye=r.emptyText,oe=r.onRow,Xe=r.onHeaderRow,Te=r.internalHooks,Pe=r.transformColumns,Ie=r.internalRefs,$e=r.sticky,ge=D||Qe,Ge=!!ge.length,ke=o.useState(0),Se=Object(j.a)(ke,2),xe=Se[0],se=Se[1];o.useEffect(function(){se(Object(k.a)())});var Le=o.useMemo(function(){return Object(h.c)(ve,{})},[ve]),Fe=o.useCallback(function(me,pe){return Object(h.b)(Le,me)||pe},[Le]),Je=o.useMemo(function(){return typeof S=="function"?S:function(me){var pe=me&&me[S];return pe}},[S]),Re=Object(a.c)(r),jt=Re.expandIcon,Rt=Re.expandedRowKeys,Nt=Re.defaultExpandedRowKeys,rt=Re.defaultExpandAllRows,it=Re.expandedRowRender,ft=Re.onExpand,mt=Re.onExpandedRowsChange,Pt=Re.expandRowByClick,nt=Re.rowExpandable,Et=Re.expandIconColumnIndex,pt=Re.expandedRowClassName,Kt=Re.childrenColumnName,Tt=Re.indentSize,ht=jt||We,gt=Kt||"children",St=o.useMemo(function(){return it?"row":r.expandable&&Te===tt&&r.expandable.__PARENT_RENDER_ICON__||ge.some(function(me){return me&&Object(q.a)(me)==="object"&&me[gt]})?"nest":!1},[!!it,ge]),Dt=o.useState(function(){return Nt||(rt?Ue(ge,Je,gt):[])}),ze=Object(j.a)(Dt,2),Ze=ze[0],at=ze[1],He=o.useMemo(function(){return new Set(Rt||Ze||[])},[Rt,Ze]),dt=o.useCallback(function(me){var pe=Je(me,ge.indexOf(me)),Ke,qe=He.has(pe);qe?(He.delete(pe),Ke=Object(G.a)(He)):Ke=[].concat(Object(G.a)(He),[pe]),at(Ke),ft&&ft(!qe,me),mt&&mt(Ke)},[Je,He,ge,ft,mt]),ct=o.useState(0),Mt=Object(j.a)(ct,2),Ct=Mt[0],_t=Mt[1],vn=Object(Z.b)(Object(E.a)(Object(E.a)(Object(E.a)({},r),Re),{},{expandable:!!it,expandedKeys:He,getRowKey:Je,onTriggerExpand:dt,expandIcon:ht,expandIconColumnIndex:Et,direction:K}),Te===tt?Pe:null),Yt=Object(j.a)(vn,2),Bt=Yt[0],De=Yt[1],Lt=o.useMemo(function(){return{columns:Bt,flattenColumns:De}},[Bt,De]),kt=o.useRef(),Qt=o.useRef(),ut=o.useRef(),bn=o.useState(!1),Zt=Object(j.a)(bn,2),qt=Zt[0],En=Zt[1],gn=o.useState(!1),en=Object(j.a)(gn,2),tn=en[0],Cn=en[1],yn=be(new Map),nn=Object(j.a)(yn,2),On=nn[0],xn=nn[1],jn=Object(h.a)(De),an=jn.map(function(me){return On.get(me)}),on=o.useMemo(function(){return an},[an.join("_")]),At=Ae(on,De.length,K),ot=M&&Object(h.d)(M.y),lt=M&&Object(h.d)(M.x),yt=lt&&De.some(function(me){var pe=me.fixed;return pe}),rn=o.useRef(),Ut=fe($e,N),Ot=Ut.isSticky,Rn=Ut.offsetHeader,Nn=Ut.offsetScroll,Pn=Ut.stickyClassName,Wt,wt,zt;ot&&(wt={overflowY:"scroll",maxHeight:M.y}),lt&&(Wt={overflowX:"auto"},ot||(wt={overflowY:"hidden"}),zt={width:M.x===!0?"auto":M.x,minWidth:"100%"});var ln=o.useCallback(function(me,pe){xn(function(Ke){var qe=new Map(Ke);return qe.set(me,pe),qe})},[]),Tn=Me(null),sn=Object(j.a)(Tn,2),Sn=sn[0],dn=sn[1];function Ft(me,pe){if(!pe)return;typeof pe=="function"?pe(me):pe.scrollLeft!==me&&(pe.scrollLeft=me)}var vt=function(pe){var Ke=pe.currentTarget,qe=pe.scrollLeft,xt=typeof qe=="number"?qe:Ke.scrollLeft,hn=Ke||et;if(!dn()||dn()===hn){var Jt;Sn(hn),Ft(xt,Qt.current),Ft(xt,ut.current),Ft(xt,(Jt=rn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(Ke){var wn=Ke.scrollWidth,In=Ke.clientWidth;En(xt>0),Cn(xt0?[].concat(Object(E.a)(l),Object(E.a)(y(x).map(function(h){return Object(G.a)({fixed:C},h)}))):[].concat(Object(E.a)(l),[Object(G.a)(Object(G.a)({},O),{},{fixed:C})])},[])}function _(s){for(var l=!0,O=0;O=0;x-=1){var h=s[x];if(C&&h.fixed!=="right")C=!1;else if(!C&&h.fixed==="right"){Object(X.a)(!1,"Index ".concat(x+1," of `columns` missing `fixed='right'` prop."));break}}}function k(s){return s.map(function(l){var O=l.fixed,u=Object(q.a)(l,["fixed"]),C=O;return O==="left"?C="right":O==="right"&&(C="left"),Object(G.a)({fixed:C},u)})}function T(s,l){var O=s.prefixCls,u=s.columns,C=s.children,x=s.expandable,h=s.expandedKeys,W=s.getRowKey,m=s.onTriggerExpand,v=s.expandIcon,p=s.rowExpandable,n=s.expandIconColumnIndex,a=s.direction,e=s.expandRowByClick,d=j.useMemo(function(){return u||B(C)},[u,C]),c=j.useMemo(function(){if(x){var b,F=n||0,V=d[F],Q=(b={},Object(g.a)(b,i.a,{className:"".concat(O,"-expand-icon-col")}),Object(g.a)(b,"title",""),Object(g.a)(b,"fixed",V?V.fixed:null),Object(g.a)(b,"className","".concat(O,"-row-expand-icon-cell")),Object(g.a)(b,"render",function(L,ee,te){var ue=W(ee,te),re=h.has(ue),Ce=p?p(ee):!0,Z=v({prefixCls:O,expanded:re,expandable:Ce,record:ee,onExpand:m});return e?j.createElement("span",{onClick:function(je){return je.stopPropagation()}},Z):Z}),b),ae=d.slice();return F>=0&&ae.splice(F,0,Q),ae}return d},[x,d,W,h,v,a]),f=j.useMemo(function(){var b=c;return l&&(b=l(b)),b.length||(b=[{render:function(){return null}}]),b},[l,c,a]),I=j.useMemo(function(){return a==="rtl"?k(y(f)):y(f)},[f,a]);return[f,I]}A.b=T},"y0+3":function(he,A,t){"use strict";t.d(A,"a",function(){return y}),t.d(A,"b",function(){return k});var g=/margin|padding|width|height|max|min|offset/,E={left:!0,top:!0},G={cssFloat:1,styleFloat:1,float:1};function q(T){return T.nodeType===1?T.ownerDocument.defaultView.getComputedStyle(T,null):{}}function j(T,s,l){if(s=s.toLowerCase(),l==="auto"){if(s==="height")return T.offsetHeight;if(s==="width")return T.offsetWidth}return s in E||(E[s]=g.test(s)),E[s]?parseFloat(l)||0:l}function o(T,s){var l=arguments.length,O=q(T);return s=G[s]?"cssFloat"in T.style?"cssFloat":"styleFloat":s,l===1?O:j(T,s,O[s]||T.style[s])}function X(T,s,l){var O=arguments.length;if(s=G[s]?"cssFloat"in T.style?"cssFloat":"styleFloat":s,O===3)return typeof l=="number"&&g.test(s)&&(l="".concat(l,"px")),T.style[s]=l,l;for(var u in s)s.hasOwnProperty(u)&&X(T,u,s[u]);return q(T)}function P(T){return T===document.body?document.documentElement.clientWidth:T.offsetWidth}function i(T){return T===document.body?window.innerHeight||document.documentElement.clientHeight:T.offsetHeight}function B(){var T=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),s=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:T,height:s}}function y(){var T=document.documentElement.clientWidth,s=window.innerHeight||document.documentElement.clientHeight;return{width:T,height:s}}function _(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function k(T){var s=T.getBoundingClientRect(),l=document.documentElement;return{left:s.left+(window.pageXOffset||l.scrollLeft)-(l.clientLeft||document.body.clientLeft||0),top:s.top+(window.pageYOffset||l.scrollTop)-(l.clientTop||document.body.clientTop||0)}}}}]); +(window.webpackJsonp=window.webpackJsonp||[]).push([[101,8],{"2TgF":function(he,A,t){he.exports={divback:"divback___19CJW",title:"title___2aAOE",divstyle:"divstyle___1ehDw"}},"6+eU":function(he,A,t){"use strict";t.d(A,"a",function(){return m});var g=t("wx14"),E=t("rePB"),G=t("VTBJ"),q=t("1OyB"),j=t("vuIU"),o=t("Ji7U"),X=t("LK+K"),P=t("q1tI"),i=t.n(P),k=t("TSYQ"),y=t.n(k),_=function(p){var n,a="".concat(p.rootPrefixCls,"-item"),e=y()(a,"".concat(a,"-").concat(p.page),(n={},Object(E.a)(n,"".concat(a,"-active"),p.active),Object(E.a)(n,p.className,!!p.className),Object(E.a)(n,"".concat(a,"-disabled"),!p.page),n)),d=function(){p.onClick(p.page)},c=function(I){p.onKeyPress(I,p.onClick,p.page)};return i.a.createElement("li",{title:p.showTitle?p.page:null,className:e,onClick:d,onKeyPress:c,tabIndex:"0"},p.itemRender(p.page,"page",i.a.createElement("a",{rel:"nofollow"},p.page)))},B=_,T={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},s=function(v){Object(o.a)(n,v);var p=Object(X.a)(n);function n(){var a;Object(q.a)(this,n);for(var e=arguments.length,d=new Array(e),c=0;c=0||f.relatedTarget.className.indexOf("".concat(V,"-next"))>=0))return;a.setState({goInputText:""}),F(a.getValidValue())},a.go=function(f){var I=a.state.goInputText;if(I==="")return;(f.keyCode===T.ENTER||f.type==="click")&&(a.setState({goInputText:""}),a.props.quickGo(a.getValidValue()))},a}return Object(j.a)(n,[{key:"getValidValue",value:function(){var e=this.state,d=e.goInputText,c=e.current;return!d||isNaN(d)?c:Number(d)}},{key:"getPageSizeOptions",value:function(){var e=this.props,d=e.pageSize,c=e.pageSizeOptions;return c.some(function(f){return f.toString()===d.toString()})?c:c.concat([d.toString()]).sort(function(f,I){var b=isNaN(Number(f))?0:Number(f),F=isNaN(Number(I))?0:Number(I);return b-F})}},{key:"render",value:function(){var e=this,d=this.props,c=d.pageSize,f=d.locale,I=d.rootPrefixCls,b=d.changeSize,F=d.quickGo,V=d.goButton,Q=d.selectComponentClass,ae=d.buildOptionText,H=d.selectPrefixCls,L=d.disabled,ee=this.state.goInputText,te="".concat(I,"-options"),ue=Q,re=null,Ce=null,Z=null;if(!b&&!F)return null;var Ne=this.getPageSizeOptions();if(b&&ue){var je=Ne.map(function(be,Me){return i.a.createElement(ue.Option,{key:Me,value:be.toString()},(ae||e.buildOptionText)(be))});re=i.a.createElement(ue,{disabled:L,prefixCls:H,showSearch:!1,className:"".concat(te,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(c||Ne[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Me){return Me.parentNode}},je)}return F&&(V&&(Z=typeof V=="boolean"?i.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:L,className:"".concat(te,"-quick-jumper-button")},f.jump_to_confirm):i.a.createElement("span",{onClick:this.go,onKeyUp:this.go},V)),Ce=i.a.createElement("div",{className:"".concat(te,"-quick-jumper")},f.jump_to,i.a.createElement("input",{disabled:L,type:"text",value:ee,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),f.page,Z)),i.a.createElement("li",{className:"".concat(te)},re,Ce)}}]),n}(i.a.Component);s.defaultProps={pageSizeOptions:["10","20","50","100"]};var l=s,O=t("N2Kk");function u(){}function C(v){return typeof v=="number"&&isFinite(v)&&Math.floor(v)===v}function x(v,p,n){return n}function h(v,p,n){var a=typeof v=="undefined"?p.pageSize:v;return Math.floor((n.total-1)/a)+1}var W=function(v){Object(o.a)(n,v);var p=Object(X.a)(n);function n(a){var e;Object(q.a)(this,n),e=p.call(this,a),e.getJumpPrevPage=function(){return Math.max(1,e.state.current-(e.props.showLessItems?3:5))},e.getJumpNextPage=function(){return Math.min(h(void 0,e.state,e.props),e.state.current+(e.props.showLessItems?3:5))},e.getItemIcon=function(b,F){var V=e.props.prefixCls,Q=b||i.a.createElement("button",{type:"button","aria-label":F,className:"".concat(V,"-item-link")});return typeof b=="function"&&(Q=i.a.createElement(b,Object(G.a)({},e.props))),Q},e.savePaginationNode=function(b){e.paginationNode=b},e.isValid=function(b){return C(b)&&b!==e.state.current},e.shouldDisplayQuickJumper=function(){var b=e.props,F=b.showQuickJumper,V=b.pageSize,Q=b.total;return Q<=V?!1:F},e.handleKeyDown=function(b){(b.keyCode===T.ARROW_UP||b.keyCode===T.ARROW_DOWN)&&b.preventDefault()},e.handleKeyUp=function(b){var F=e.getValidValue(b),V=e.state.currentInputValue;F!==V&&e.setState({currentInputValue:F}),b.keyCode===T.ENTER?e.handleChange(F):b.keyCode===T.ARROW_UP?e.handleChange(F-1):b.keyCode===T.ARROW_DOWN&&e.handleChange(F+1)},e.changePageSize=function(b){var F=e.state.current,V=h(b,e.state,e.props);F=F>V?V:F,V===0&&(F=e.state.current),typeof b=="number"&&("pageSize"in e.props||e.setState({pageSize:b}),"current"in e.props||e.setState({current:F,currentInputValue:F})),e.props.onShowSizeChange(F,b),"onChange"in e.props&&e.props.onChange&&e.props.onChange(F,b)},e.handleChange=function(b){var F=e.props.disabled,V=b;if(e.isValid(V)&&!F){var Q=h(void 0,e.state,e.props);V>Q?V=Q:V<1&&(V=1),"current"in e.props||e.setState({current:V,currentInputValue:V});var ae=e.state.pageSize;return e.props.onChange(V,ae),V}return e.state.current},e.prev=function(){e.hasPrev()&&e.handleChange(e.state.current-1)},e.next=function(){e.hasNext()&&e.handleChange(e.state.current+1)},e.jumpPrev=function(){e.handleChange(e.getJumpPrevPage())},e.jumpNext=function(){e.handleChange(e.getJumpNextPage())},e.hasPrev=function(){return e.state.current>1},e.hasNext=function(){return e.state.current2?V-2:0),ae=2;ae=c?I=c:I=Number(d),I}},{key:"getShowSizeChanger",value:function(){var e=this.props,d=e.showSizeChanger,c=e.total,f=e.totalBoundaryShowSizeChanger;return typeof d!="undefined"?d:c>f}},{key:"renderPrev",value:function(e){var d=this.props,c=d.prevIcon,f=d.itemRender,I=f(e,"prev",this.getItemIcon(c,"prev page")),b=!this.hasPrev();return Object(P.isValidElement)(I)?Object(P.cloneElement)(I,{disabled:b}):I}},{key:"renderNext",value:function(e){var d=this.props,c=d.nextIcon,f=d.itemRender,I=f(e,"next",this.getItemIcon(c,"next page")),b=!this.hasNext();return Object(P.isValidElement)(I)?Object(P.cloneElement)(I,{disabled:b}):I}},{key:"render",value:function(){var e=this,d=this.props,c=d.prefixCls,f=d.className,I=d.style,b=d.disabled,F=d.hideOnSinglePage,V=d.total,Q=d.locale,ae=d.showQuickJumper,H=d.showLessItems,L=d.showTitle,ee=d.showTotal,te=d.simple,ue=d.itemRender,re=d.showPrevNextJumpers,Ce=d.jumpPrevIcon,Z=d.jumpNextIcon,Ne=d.selectComponentClass,je=d.selectPrefixCls,be=d.pageSizeOptions,Me=this.state,ie=Me.current,Ae=Me.pageSize,we=Me.currentInputValue;if(F===!0&&V<=Ae)return null;var ce=h(void 0,this.state,this.props),Ee=[],We=null,Ue=null,ke=null,Ye=null,_e=null,de=ae&&ae.goButton,fe=H?1:2,Qe=ie-1>0?ie-1:0,et=ie+1=fe*2&&ie!==1+2&&(Ee[0]=Object(P.cloneElement)(Ee[0],{className:"".concat(c,"-item-after-jump-prev")}),Ee.unshift(We)),ce-ie>=fe*2&&ie!==ce-2&&(Ee[Ee.length-1]=Object(P.cloneElement)(Ee[Ee.length-1],{className:"".concat(c,"-item-before-jump-next")}),Ee.push(Ue)),N!==1&&Ee.unshift(ke),w!==ce&&Ee.push(Ye)}var D=null;ee&&(D=i.a.createElement("li",{className:"".concat(c,"-total-text")},ee(V,[V===0?0:(ie-1)*Ae+1,ie*Ae>V?V:ie*Ae])));var S=!this.hasPrev()||!ce,M=!this.hasNext()||!ce;return i.a.createElement("ul",Object(g.a)({className:y()(c,f,Object(E.a)({},"".concat(c,"-disabled"),b)),style:I,unselectable:"unselectable",ref:this.savePaginationNode},tt),D,i.a.createElement("li",{title:L?Q.prev_page:null,onClick:this.prev,tabIndex:S?null:0,onKeyPress:this.runIfEnterPrev,className:y()("".concat(c,"-prev"),Object(E.a)({},"".concat(c,"-disabled"),S)),"aria-disabled":S},this.renderPrev(Qe)),Ee,i.a.createElement("li",{title:L?Q.next_page:null,onClick:this.next,tabIndex:M?null:0,onKeyPress:this.runIfEnterNext,className:y()("".concat(c,"-next"),Object(E.a)({},"".concat(c,"-disabled"),M)),"aria-disabled":M},this.renderNext(et)),i.a.createElement(l,{disabled:b,locale:Q,rootPrefixCls:c,selectComponentClass:Ne,selectPrefixCls:je,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:ie,pageSize:Ae,pageSizeOptions:be,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:de}))}}],[{key:"getDerivedStateFromProps",value:function(e,d){var c={};if("current"in e&&(c.current=e.current,e.current!==d.current&&(c.currentInputValue=c.current)),"pageSize"in e&&e.pageSize!==d.pageSize){var f=d.current,I=h(e.pageSize,d,e);f=f>I?I:f,"current"in e||(c.current=f,c.currentInputValue=f),c.pageSize=e.pageSize}return c}}]),n}(i.a.Component);W.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:u,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:u,locale:O.a,style:{},itemRender:x,totalBoundaryShowSizeChanger:50};var m=W},"6RRn":function(he,A,t){"use strict";var g=t("wCXF"),E=t("n6Qo");t.d(A,"b",function(){return E.a});var G=t("IBYe"),q=t("6eGT"),j=t("hW8S");t.d(A,"a",function(){return j.a}),A.c=g.b},"6eGT":function(he,A,t){"use strict";function g(E){return null}A.a=g},"815F":function(he,A,t){"use strict";t.d(A,"e",function(){return X}),t.d(A,"c",function(){return i}),t.d(A,"d",function(){return k}),t.d(A,"a",function(){return _}),t.d(A,"f",function(){return B}),t.d(A,"b",function(){return T});var g=t("KQm4"),E=t("VTBJ"),G=t("Ff2n"),q=t("Zm9Q"),j=t("Kwbf"),o=t("OZM5");function X(s,l){return s!=null?s:l}function P(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=new Map;function O(u){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(u||[]).forEach(function(x){var h=x.key,W=x.children;Object(j.a)(h!=null,"Tree node must have a certain key: [".concat(C).concat(h,"]"));var m=String(h);Object(j.a)(!l.has(m)||h===null||h===void 0,"Same 'key' exist in the Tree: ".concat(m)),l.set(m,!0),O(W,"".concat(C).concat(m," > "))})}O(s)}function i(s){function l(O){var u=Object(q.a)(O);return u.map(function(C){if(!Object(o.i)(C))return Object(j.a)(!C,"Tree/TreeNode can only accept TreeNode as children."),null;var x=C.key,h=C.props,W=h.children,m=Object(G.a)(h,["children"]),v=Object(E.a)({key:x},m),p=l(W);return p.length&&(v.children=p),v}).filter(function(C){return C})}return l(s)}function k(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],O=new Set(l===!0?[]:l),u=[];function C(x){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return x.map(function(W,m){var v=Object(o.h)(h?h.pos:"0",m),p=X(W.key,v),n=Object(E.a)(Object(E.a)({},W),{},{parent:h,pos:v,children:null,data:W,isStart:[].concat(Object(g.a)(h?h.isStart:[]),[m===0]),isEnd:[].concat(Object(g.a)(h?h.isEnd:[]),[m===x.length-1])});return u.push(n),l===!0||O.has(p)?n.children=C(W.children||[],n):n.children=[],n})}return C(s),u}function y(s,l,O){var u;O?typeof O=="string"?u=function(h){return h[O]}:typeof O=="function"&&(u=function(h){return O(h)}):u=function(h,W){return X(h.key,W)};function C(x,h,W){var m=x?x.children:s,v=x?Object(o.h)(W.pos,h):"0";if(x){var p=u(x,v),n={node:x,index:h,pos:v,key:p,parentPos:W.node?W.pos:null,level:W.level+1};l(n)}m&&m.forEach(function(a,e){C(a,e,{node:x,pos:v,level:W?W.level+1:-1})})}C(null)}function _(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=l.initWrapper,u=l.processEntity,C=l.onProcessFinished,x=arguments.length>2?arguments[2]:void 0,h={},W={},m={posEntities:h,keyEntities:W};return O&&(m=O(m)||m),y(s,function(v){var p=v.node,n=v.index,a=v.pos,e=v.key,d=v.parentPos,c=v.level,f={node:p,index:n,key:e,pos:a,level:c},I=X(e,a);h[a]=f,W[I]=f,f.parent=h[d],f.parent&&(f.parent.children=f.parent.children||[],f.parent.children.push(f)),u&&u(f,m)},x),C&&C(m),m}function B(s,l){var O=l.expandedKeys,u=l.selectedKeys,C=l.loadedKeys,x=l.loadingKeys,h=l.checkedKeys,W=l.halfCheckedKeys,m=l.dragOverNodeKey,v=l.dropPosition,p=l.keyEntities,n=p[s],a={eventKey:s,expanded:O.indexOf(s)!==-1,selected:u.indexOf(s)!==-1,loaded:C.indexOf(s)!==-1,loading:x.indexOf(s)!==-1,checked:h.indexOf(s)!==-1,halfChecked:W.indexOf(s)!==-1,pos:String(n?n.pos:""),dragOver:m===s&&v===0,dragOverGapTop:m===s&&v===-1,dragOverGapBottom:m===s&&v===1};return a}function T(s){var l=s.data,O=s.expanded,u=s.selected,C=s.checked,x=s.loaded,h=s.loading,W=s.halfChecked,m=s.dragOver,v=s.dragOverGapTop,p=s.dragOverGapBottom,n=s.pos,a=s.active,e=Object(E.a)(Object(E.a)({},l),{},{expanded:O,selected:u,checked:C,loaded:x,loading:h,halfChecked:W,dragOver:m,dragOverGapTop:v,dragOverGapBottom:p,pos:n,active:a});return"props"in e||Object.defineProperty(e,"props",{get:function(){return Object(j.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),s}}),e}},BU3w:function(he,A,t){"use strict";t.d(A,"a",function(){return o});var g=t("MNnm"),E="rc-util-key";function G(X){if(X.attachTo)return X.attachTo;var P=document.querySelector("head");return P||document.body}function q(X){var P,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(g.a)())return null;var k=document.createElement("style");if((P=i.csp)===null||P===void 0?void 0:P.nonce){var y;k.nonce=(y=i.csp)===null||y===void 0?void 0:y.nonce}k.innerHTML=X;var _=G(i),B=_.firstChild;return i.prepend&&_.prepend?_.prepend(k):i.prepend&&B?_.insertBefore(k,B):_.appendChild(k),k}var j=new Map;function o(X,P){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},k=G(i);if(!j.has(k)){var y=q("",i),_=y.parentNode;j.set(k,_),_.removeChild(y)}var B=Array.from(j.get(k).children).find(function(u){return u.tagName==="STYLE"&&u[E]===P});if(B){var T,s;if(((T=i.csp)===null||T===void 0?void 0:T.nonce)&&B.nonce!==((s=i.csp)===null||s===void 0?void 0:s.nonce)){var l;B.nonce=(l=i.csp)===null||l===void 0?void 0:l.nonce}return B.innerHTML!==X&&(B.innerHTML=X),B}var O=q(X,i);return O[E]=P,O}},BdwD:function(he,A,t){"use strict";var g=t("+L6B"),E=t("2/Rp"),G=t("0Owb"),q=t("k1fw"),j=t("q1tI"),o=t.n(j),X=t("FOrL"),P=t.n(X),i=function(y){var _=y.buttonProps,B=_===void 0?{}:_,T=y.styles,s=T===void 0?{}:T,l=y.customText,O=y.ButtonText,u=y.ButtonClick,C=y.Buttonclass,x=y.ButtonTwo;return o.a.createElement("section",{className:"tc animated fadeIn",style:Object(q.a)(Object(q.a)({},{color:"#999",margin:"200px auto"}),s)},o.a.createElement("img",{src:P.a}),o.a.createElement("p",{className:"mt20 font14"},l||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),O&&o.a.createElement(E.a,Object(G.a)({className:C,onClick:u},B),O),x&&x)};A.a=i},FOrL:function(he,A,t){he.exports=t.p+"static/nodata.a6b3f948.png"},IBYe:function(he,A,t){"use strict";function g(E){return null}A.a=g},LdHM:function(he,A,t){"use strict";t.d(A,"b",function(){return x}),t.d(A,"a",function(){return W});var g=t("1OyB"),E=t("vuIU"),G=t("Ji7U"),q=t("LK+K"),j=t("q1tI"),o=t("rePB"),X=t("Ff2n"),P=t("ODXe"),i=t("4IlW"),k=t("bX4T"),y=t("YrtM"),_=t("TSYQ"),B=t.n(_),T=t("+nKL"),s=t("8OUc"),l=function(L,ee){var te=L.prefixCls,ue=L.id,re=L.flattenOptions,Ce=L.childrenAsData,Z=L.values,Ne=L.searchValue,je=L.multiple,be=L.defaultActiveFirstOption,Me=L.height,ie=L.itemHeight,Ae=L.notFoundContent,we=L.open,ce=L.menuItemSelectedIcon,Ee=L.virtual,We=L.onSelect,Ue=L.onToggleOpen,ke=L.onActiveValue,Ye=L.onScroll,_e=L.onMouseEnter,de="".concat(te,"-item"),fe=Object(y.a)(function(){return re},[we,re],function(U,D){return D[0]&&U[1]!==D[1]}),Qe=j.useRef(null),et=function(D){D.preventDefault()},tt=function(D){Qe.current&&Qe.current.scrollTo({index:D})},st=function(D){for(var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,M=fe.length,J=0;J1&&arguments[1]!==void 0?arguments[1]:!1;return Object(v.a)(H).map(function(ee,te){if(!j.isValidElement(ee)||!ee.type)return null;var ue=ee.type.isSelectOptGroup,re=ee.key,Ce=ee.props,Z=Ce.children,Ne=Object(X.a)(Ce,["children"]);return L||!ue?p(ee):Object(m.a)(Object(m.a)({key:"__RC_SELECT_GRP__".concat(re===null?te:re,"__"),label:re},Ne),{},{options:n(Z)})}).filter(function(ee){return ee})}var a=t("2Qr1"),e=t("qNPg"),d=t("U8pU"),c=t("Kwbf"),f=t("WKfj");function I(H){var L=H.mode,ee=H.options,te=H.children,ue=H.backfill,re=H.allowClear,Ce=H.placeholder,Z=H.getInputElement,Ne=H.showSearch,je=H.onSearch,be=H.defaultOpen,Me=H.autoFocus,ie=H.labelInValue,Ae=H.value,we=H.inputValue,ce=H.optionLabelProp,Ee=L==="multiple"||L==="tags",We=Ne!==void 0?Ne:Ee||L==="combobox",Ue=ee||n(te);if(Object(c.a)(L!=="tags"||Ue.every(function(de){return!de.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),L==="tags"||L==="combobox"){var ke=Ue.some(function(de){return de.options?de.options.some(function(fe){return typeof("value"in fe?fe.value:fe.key)=="number"}):typeof("value"in de?de.value:de.key)=="number"});Object(c.a)(!ke,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(c.a)(L!=="combobox"||!ce,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(c.a)(L==="combobox"||!ue,"`backfill` only works with `combobox` mode."),Object(c.a)(L==="combobox"||!Z,"`getInputElement` only work with `combobox` mode."),Object(c.b)(L!=="combobox"||!Z||!re||!Ce,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),je&&!We&&L!=="combobox"&&L!=="tags"&&Object(c.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(c.b)(!be||Me,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Ae!=null){var Ye=Object(f.d)(Ae);Object(c.a)(!ie||Ye.every(function(de){return Object(d.a)(de)==="object"&&("key"in de||"value"in de)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(c.a)(!Ee||Array.isArray(Ae),"`value` should be array when `mode` is `multiple` or `tags`")}if(te){var _e=null;Object(v.a)(te).some(function(de){if(!j.isValidElement(de)||!de.type)return!1;var fe=de.type;if(fe.isSelectOption)return!1;if(fe.isSelectOptGroup){var Qe=Object(v.a)(de.props.children).every(function(et){return!j.isValidElement(et)||!de.type||et.type.isSelectOption?!0:(_e=et.type,!1)});return!Qe}return _e=fe,!0}),_e&&Object(c.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(_e.displayName||_e.name||_e,"`.")),Object(c.a)(we===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var b=I,F=Object(e.a)({prefixCls:"rc-select",components:{optionList:u},convertChildrenToData:n,flattenOptions:a.d,getLabeledValue:a.e,filterOptions:a.b,isValueDisabled:a.g,findValueOption:a.c,warningProps:b,fillOptionsWithMissingValue:a.a}),V=function(H){Object(G.a)(ee,H);var L=Object(q.a)(ee);function ee(){var te;return Object(g.a)(this,ee),te=L.apply(this,arguments),te.selectRef=j.createRef(),te.focus=function(){te.selectRef.current.focus()},te.blur=function(){te.selectRef.current.blur()},te}return Object(E.a)(ee,[{key:"render",value:function(){return j.createElement(F,Object.assign({ref:this.selectRef},this.props))}}]),ee}(j.Component);V.Option=x,V.OptGroup=W;var Q=V,ae=A.c=Q},NvD2:function(he,A,t){"use strict";t.d(A,"a",function(){return o});var g=t("Kwbf");function E(X,P){var i=new Set;return X.forEach(function(k){P.has(k)||i.add(k)}),i}function G(X){var P=X||{},i=P.disabled,k=P.disableCheckbox,y=P.checkable;return!!(i||k)||y===!1}function q(X,P,i,k){for(var y=new Set(X),_=new Set,B=0;B<=i;B+=1){var T=P.get(B)||new Set;T.forEach(function(u){var C=u.key,x=u.node,h=u.children,W=h===void 0?[]:h;y.has(C)&&!k(x)&&W.filter(function(m){return!k(m.node)}).forEach(function(m){y.add(m.key)})})}for(var s=new Set,l=i;l>=0;l-=1){var O=P.get(l)||new Set;O.forEach(function(u){var C=u.parent,x=u.node;if(k(x)||!u.parent||s.has(u.parent.key))return;if(k(u.parent.node)){s.add(C.key);return}var h=!0,W=!1;(C.children||[]).filter(function(m){return!k(m.node)}).forEach(function(m){var v=m.key,p=y.has(v);h&&!p&&(h=!1),!W&&(p||_.has(v))&&(W=!0)}),h&&y.add(C.key),W&&_.add(C.key),s.add(C.key)})}return{checkedKeys:Array.from(y),halfCheckedKeys:Array.from(E(_,y))}}function j(X,P,i,k,y){for(var _=new Set(X),B=new Set(P),T=0;T<=k;T+=1){var s=i.get(T)||new Set;s.forEach(function(C){var x=C.key,h=C.node,W=C.children,m=W===void 0?[]:W;!_.has(x)&&!B.has(x)&&!y(h)&&m.filter(function(v){return!y(v.node)}).forEach(function(v){_.delete(v.key)})})}B=new Set;for(var l=new Set,O=k;O>=0;O-=1){var u=i.get(O)||new Set;u.forEach(function(C){var x=C.parent,h=C.node;if(y(h)||!C.parent||l.has(C.parent.key))return;if(y(C.parent.node)){l.add(x.key);return}var W=!0,m=!1;(x.children||[]).filter(function(v){return!y(v.node)}).forEach(function(v){var p=v.key,n=_.has(p);W&&!n&&(W=!1),!m&&(n||B.has(p))&&(m=!0)}),W||_.delete(x.key),m&&B.add(x.key),l.add(x.key)})}return{checkedKeys:Array.from(_),halfCheckedKeys:Array.from(E(B,_))}}function o(X,P,i,k){var y=[],_;k?_=k:_=G;var B=new Set(X.filter(function(O){var u=!!i[O];return u||y.push(O),u})),T=new Map,s=0;Object.keys(i).forEach(function(O){var u=i[O],C=u.level,x=T.get(C);x||(x=new Set,T.set(C,x)),x.add(u),s=Math.max(s,C)}),Object(g.a)(!y.length,"Tree missing follow keys: ".concat(y.slice(0,100).map(function(O){return"'".concat(O,"'")}).join(", ")));var l;return P===!0?l=q(B,T,s,_):l=j(B,P.halfCheckedKeys,T,s,_),l}},OZM5:function(he,A,t){"use strict";t.d(A,"b",function(){return k}),t.d(A,"a",function(){return y}),t.d(A,"k",function(){return _}),t.d(A,"h",function(){return B}),t.d(A,"i",function(){return T}),t.d(A,"g",function(){return s}),t.d(A,"c",function(){return l}),t.d(A,"d",function(){return O}),t.d(A,"j",function(){return x}),t.d(A,"e",function(){return h}),t.d(A,"f",function(){return W});var g=t("KQm4"),E=t("U8pU"),G=t("Ff2n"),q=t("q1tI"),j=t.n(q),o=t("Kwbf"),X=t("WaYH"),P=.25,i=2;function k(m,v){var p=m.slice(),n=p.indexOf(v);return n>=0&&p.splice(n,1),p}function y(m,v){var p=m.slice();return p.indexOf(v)===-1&&p.push(v),p}function _(m){return m.split("-")}function B(m,v){return"".concat(m,"-").concat(v)}function T(m){return m&&m.type&&m.type.isTreeNode}function s(m,v){var p=[m],n=v[m];function a(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];e.forEach(function(d){var c=d.key,f=d.children;p.push(c),a(f)})}return a(n.children),p}function l(m,v){var p=m.clientY,n=v.selectHandle.getBoundingClientRect(),a=n.top,e=n.bottom,d=n.height,c=Math.max(d*P,i);return p<=a+c?-1:p>=e-c?1:0}function O(m,v){if(!m)return;var p=v.multiple;return p?m.slice():m.length?[m[0]]:m}var u=function(v){return v};function C(m,v){if(!m)return[];var p=v||{},n=p.processProps,a=n===void 0?u:n,e=Array.isArray(m)?m:[m];return e.map(function(d){var c=d.children,f=Object(G.a)(d,["children"]),I=C(c,v);return j.a.createElement(X.a,Object.assign({},a(f)),I)})}function x(m){if(!m)return null;var v;if(Array.isArray(m))v={checkedKeys:m,halfCheckedKeys:void 0};else if(Object(E.a)(m)==="object")v={checkedKeys:m.checked||void 0,halfCheckedKeys:m.halfChecked||void 0};else return Object(o.a)(!1,"`checkedKeys` is not an array or an object"),null;return v}function h(m,v){var p=new Set;function n(a){if(p.has(a))return;var e=v[a];if(!e)return;p.add(a);var d=e.parent,c=e.node;if(c.disabled)return;d&&n(d.key)}return(m||[]).forEach(function(a){n(a)}),Object(g.a)(p)}function W(m){var v={};return Object.keys(m).forEach(function(p){(p.startsWith("data-")||p.startsWith("aria-"))&&(v[p]=m[p])}),v}},"SA+Z":function(he,A,t){var g=t("wTVA"),E=t("EbDI"),G=t("ZhPi"),q=t("wkBT");function j(o){return g(o)||E(o)||G(o)||q()}he.exports=j,he.exports.__esModule=!0,he.exports.default=he.exports},WaYH:function(he,A,t){"use strict";var g=t("rePB"),E=t("Ff2n"),G=t("VTBJ"),q=t("1OyB"),j=t("vuIU"),o=t("JX7q"),X=t("Ji7U"),P=t("LK+K"),i=t("q1tI"),k=t("TSYQ"),y=t.n(k),_=t("sboe"),B=t("OZM5"),T=function(v){var p=v.prefixCls,n=v.level,a=v.isStart,e=v.isEnd;if(!n)return null;for(var d="".concat(p,"-indent-unit"),c=[],f=0;f0&&_.a.createElement(q.a,{dataSource:e==null?void 0:e.student,pagination:!1,columns:Q}),_.a.createElement("aside",{className:"tc mb50 mt30 mb20"},_.a.createElement(E.a,{hideOnSinglePage:!0,showSizeChanger:!1,onChange:function(H,L){F(H)},current:I||1,defaultPageSize:10,total:e==null?void 0:e.count})))}A.default=Object(C.a)(function(W){var m=W.user;return{user:m}})(h)},fyJ8:function(he,A,t){"use strict";var g=t("rePB"),E=t("VTBJ"),G=t("Ff2n"),q=t("U8pU"),j=t("q1tI"),o=t.n(j),X=t("TSYQ"),P=t.n(X),i=t("c+Xe"),k=t("sR1s");function y(l){return l&&Object(q.a)(l)==="object"&&!Array.isArray(l)&&!j.isValidElement(l)}function _(l){return typeof l=="string"?!0:Object(i.c)(l)}function B(l,O){var u,C=l.prefixCls,x=l.className,h=l.record,W=l.index,m=l.dataIndex,v=l.render,p=l.children,n=l.component,a=n===void 0?"td":n,e=l.colSpan,d=l.rowSpan,c=l.fixLeft,f=l.fixRight,I=l.firstFixLeft,b=l.lastFixLeft,F=l.firstFixRight,V=l.lastFixRight,Q=l.appendNode,ae=l.additionalProps,H=ae===void 0?{}:ae,L=l.ellipsis,ee=l.align,te=l.rowType,ue=l.isSticky,re="".concat(C,"-cell"),Ce,Z;if(p)Z=p;else{var Ne=Object(k.b)(h,m);if(Z=Ne,v){var je=v(Ne,h,W);y(je)?(Z=je.children,Ce=je.props):Z=je}}Object(q.a)(Z)==="object"&&!Array.isArray(Z)&&!j.isValidElement(Z)&&(Z=null),L&&(b||F)&&(Z=j.createElement("span",{className:"".concat(re,"-content")},Z));var be=Ce||{},Me=be.colSpan,ie=be.rowSpan,Ae=be.style,we=be.className,ce=Object(G.a)(be,["colSpan","rowSpan","style","className"]),Ee=Me!==void 0?Me:e,We=ie!==void 0?ie:d;if(Ee===0||We===0)return null;var Ue={},ke=typeof c=="number",Ye=typeof f=="number";ke&&(Ue.position="sticky",Ue.left=c),Ye&&(Ue.position="sticky",Ue.right=f);var _e={};ee&&(_e.textAlign=ee);var de,fe=L===!0?{showTitle:!0}:L;fe&&(fe.showTitle||te==="header")&&(typeof Z=="string"||typeof Z=="number"?de=Z.toString():j.isValidElement(Z)&&typeof Z.props.children=="string"&&(de=Z.props.children));var Qe=Object(E.a)(Object(E.a)(Object(E.a)({title:de},ce),H),{},{colSpan:Ee&&Ee!==1?Ee:null,rowSpan:We&&We!==1?We:null,className:P()(re,x,(u={},Object(g.a)(u,"".concat(re,"-fix-left"),ke),Object(g.a)(u,"".concat(re,"-fix-left-first"),I),Object(g.a)(u,"".concat(re,"-fix-left-last"),b),Object(g.a)(u,"".concat(re,"-fix-right"),Ye),Object(g.a)(u,"".concat(re,"-fix-right-first"),F),Object(g.a)(u,"".concat(re,"-fix-right-last"),V),Object(g.a)(u,"".concat(re,"-ellipsis"),L),Object(g.a)(u,"".concat(re,"-with-append"),Q),Object(g.a)(u,"".concat(re,"-fix-sticky"),(ke||Ye)&&ue),u),H.className,we),style:Object(E.a)(Object(E.a)(Object(E.a)(Object(E.a)({},H.style),_e),Ue),Ae),ref:_(a)?O:null});return j.createElement(a,Object.assign({},Qe),Q,Z)}var T=j.forwardRef(B);T.displayName="Cell";var s=j.memo(T,function(l,O){return O.shouldCellUpdate?!O.shouldCellUpdate(O.record,l.record):!1});A.a=s},hW8S:function(he,A,t){"use strict";t.d(A,"a",function(){return q}),t.d(A,"c",function(){return j}),t.d(A,"b",function(){return o});var g=t("VTBJ"),E=t("Ff2n"),G=t("Kwbf"),q="RC_TABLE_INTERNAL_COL_DEFINE";function j(X){var P=X.expandable,i=Object(E.a)(X,["expandable"]);return"expandable"in X?Object(g.a)(Object(g.a)({},i),P):i}function o(X){return Object.keys(X).reduce(function(P,i){return(i.substr(0,5)==="data-"||i.substr(0,5)==="aria-")&&(P[i]=X[i]),P},{})}},n6Qo:function(he,A,t){"use strict";t.d(A,"a",function(){return P});var g=t("q1tI"),E=t("biw7"),G=t("fyJ8");function q(i){var k=i.className,y=i.index,_=i.children,B=i.colSpan,T=i.rowSpan,s=g.useContext(E.a),l=s.prefixCls,O=s.fixedInfoList,u=O[y];return g.createElement(G.a,Object.assign({className:k,index:y,component:"td",prefixCls:l,record:null,dataIndex:null,render:function(){return{children:_,props:{colSpan:B,rowSpan:T}}}},u))}function j(i){return g.createElement("tr",Object.assign({},i))}function o(i){var k=i.children,y=g.useContext(E.a),_=y.prefixCls;return g.createElement("tfoot",{className:"".concat(_,"-summary")},k)}var X=A.b=o,P={Cell:q,Row:j}},sR1s:function(he,A,t){"use strict";t.d(A,"b",function(){return q}),t.d(A,"a",function(){return j}),t.d(A,"c",function(){return o}),t.d(A,"d",function(){return X});var g=t("U8pU"),E="RC_TABLE_KEY";function G(P){return P==null?[]:Array.isArray(P)?P:[P]}function q(P,i){if(!i&&typeof i!="number")return P;for(var k=G(i),y=P,_=0;_1)Object(k.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(x.length===0)return Object(k.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var h=x[0];if(o.isValidElement(h)&&Object(y.c)(h)){var W=h.ref;x[0]=o.cloneElement(h,{ref:Object(y.a)(W,this.setChildNode)})}return x.length===1?x[0]:x.map(function(m,v){return!o.isValidElement(m)||"key"in m&&m.key!==null?m:o.cloneElement(m,{key:"".concat(B,"-").concat(v)})})}}]),O}(o.Component);T.displayName="ResizeObserver",A.a=T},wCXF:function(he,A,t){"use strict";t.d(A,"a",function(){return tt});var g=t("rePB"),E=t("VTBJ"),G=t("KQm4"),q=t("U8pU"),j=t("ODXe"),o=t("q1tI"),X=t("TSYQ"),P=t.n(X),i=t("Gytx"),k=t.n(i),y=t("Kwbf"),_=t("t23M"),B=t("qx4F"),T=t("6eGT"),s=t("IBYe"),l=t("Ff2n"),O=t("c+Xe"),u=t("fyJ8"),C=t("biw7");function x(r,R,N,w,z){var U=N[r]||{},D=N[R]||{},S,M;U.fixed==="left"?S=w.left[r]:D.fixed==="right"&&(M=w.right[R]);var J=!1,K=!1,$=!1,ne=!1,Y=N[R+1],le=N[r-1];if(z==="rtl"){if(S!==void 0){var Oe=le&&le.fixed==="left";ne=!Oe}else if(M!==void 0){var ve=Y&&Y.fixed==="right";$=!ve}}else if(S!==void 0){var ye=Y&&Y.fixed==="left";J=!ye}else if(M!==void 0){var oe=le&&le.fixed==="right";K=!oe}return{fixLeft:S,fixRight:M,lastFixLeft:J,firstFixRight:K,lastFixRight:$,firstFixLeft:ne,isSticky:w.isSticky}}var h=t("sR1s");function W(r){var R=r.cells,N=r.stickyOffsets,w=r.flattenColumns,z=r.rowComponent,U=r.cellComponent,D=r.onHeaderRow,S=r.index,M=o.useContext(C.a),J=M.prefixCls,K=M.direction,$;D&&($=D(R.map(function(Y){return Y.column}),S));var ne=Object(h.a)(R.map(function(Y){return Y.column}));return o.createElement(z,Object.assign({},$),R.map(function(Y,le){var Oe=Y.column,ve=x(Y.colStart,Y.colEnd,w,N,K),ye;return Oe&&Oe.onHeaderCell&&(ye=Y.column.onHeaderCell(Oe)),o.createElement(u.a,Object.assign({},Y,{ellipsis:Oe.ellipsis,align:Oe.align,component:U,prefixCls:J,key:ne[le]},ve,{additionalProps:ye,rowType:"header"}))}))}W.displayName="HeaderRow";var m=W;function v(r){var R=[];function N(D,S){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;R[M]=R[M]||[];var J=S,K=D.filter(Boolean).map(function($){var ne={key:$.key,className:$.className||"",children:$.title,column:$,colStart:J},Y=1,le=$.children;return le&&le.length>0&&(Y=N(le,J,M+1).reduce(function(Oe,ve){return Oe+ve},0),ne.hasSubColumns=!0),"colSpan"in $&&(Y=$.colSpan),"rowSpan"in $&&(ne.rowSpan=$.rowSpan),ne.colSpan=Y,ne.colEnd=ne.colStart+Y-1,R[M].push(ne),J+=Y,Y});return K}N(r,0);for(var w=R.length,z=function(S){R[S].forEach(function(M){!("rowSpan"in M)&&!M.hasSubColumns&&(M.rowSpan=w-S)})},U=0;U=0;S-=1){var M=R[S],J=N&&N[S],K=J&&J[a.a];(M||K||D)&&(z.unshift(o.createElement("col",Object.assign({key:S,style:{width:M,minWidth:M}},K))),D=!0)}return o.createElement("colgroup",null,z)}var d=e;function c(r,R){return Object(o.useMemo)(function(){for(var N=[],w=0;w1?He-1:0),ct=1;ct=$&&(Re=$-ne),D({scrollLeft:Re/$*(K+2)}),oe.current.x=se.pageX},Be=function(){var se=Object(Ye.b)(U.current).top,Le=se+U.current.offsetHeight,Fe=document.documentElement.scrollTop+window.innerHeight;Le-Object(B.a)()<=Fe||se>=Fe-S?ye(function(Je){return Object(E.a)(Object(E.a)({},Je),{},{isHiddenScrollBar:!0})}):ye(function(Je){return Object(E.a)(Object(E.a)({},Je),{},{isHiddenScrollBar:!1})})},Se=function(se){ye(function(Le){return Object(E.a)(Object(E.a)({},Le),{},{scrollLeft:se/K*$||0})})};return o.useImperativeHandle(N,function(){return{setScrollLeft:Se}}),o.useEffect(function(){var xe=Object(ke.a)(document.body,"mouseup",$e,!1),se=Object(ke.a)(document.body,"mousemove",Ge,!1);return Be(),function(){xe.remove(),se.remove()}},[ne,Pe]),o.useEffect(function(){var xe=Object(ke.a)(window,"scroll",Be,!1),se=Object(ke.a)(window,"resize",Be,!1);return function(){xe.remove(),se.remove()}},[]),o.useEffect(function(){ve.isHiddenScrollBar||ye(function(xe){var se,Le;return Object(E.a)(Object(E.a)({},xe),{},{scrollLeft:U.current.scrollLeft/((se=U.current)===null||se===void 0?void 0:se.scrollWidth)*((Le=U.current)===null||Le===void 0?void 0:Le.clientWidth)})})},[ve.isHiddenScrollBar]),K<=$||!ne||ve.isHiddenScrollBar?null:o.createElement("div",{style:{height:Object(B.a)(),width:$,bottom:S},className:"".concat(J,"-sticky-scroll")},o.createElement("div",{onMouseDown:ge,ref:Y,className:P()("".concat(J,"-sticky-scroll-bar"),Object(g.a)({},"".concat(J,"-sticky-scroll-bar-active"),Pe)),style:{width:"".concat(ne,"px"),transform:"translate3d(".concat(ve.scrollLeft,"px, 0, 0)")}}))},de=o.forwardRef(_e);function fe(r,R){return o.useMemo(function(){var N=!!r;return{isSticky:N,stickyClassName:N?"".concat(R,"-sticky-header"):"",offsetHeader:Object(q.a)(r)==="object"&&r.offsetHeader||0,offsetScroll:Object(q.a)(r)==="object"&&r.offsetScroll||0}},[r,R])}var Qe=[],et={},tt="rc-table-internal-hook",st=o.memo(function(r){var R=r.children;return R},function(r,R){return k()(r.props,R.props)?r.pingLeft!==R.pingLeft||r.pingRight!==R.pingRight:!1});function Ve(r){var R,N=r.prefixCls,w=r.className,z=r.rowClassName,U=r.style,D=r.data,S=r.rowKey,M=r.scroll,J=r.tableLayout,K=r.direction,$=r.title,ne=r.footer,Y=r.summary,le=r.id,Oe=r.showHeader,ve=r.components,ye=r.emptyText,oe=r.onRow,Xe=r.onHeaderRow,Te=r.internalHooks,Pe=r.transformColumns,Ie=r.internalRefs,$e=r.sticky,ge=D||Qe,Ge=!!ge.length,Be=o.useState(0),Se=Object(j.a)(Be,2),xe=Se[0],se=Se[1];o.useEffect(function(){se(Object(B.a)())});var Le=o.useMemo(function(){return Object(h.c)(ve,{})},[ve]),Fe=o.useCallback(function(me,pe){return Object(h.b)(Le,me)||pe},[Le]),Je=o.useMemo(function(){return typeof S=="function"?S:function(me){var pe=me&&me[S];return pe}},[S]),Re=Object(a.c)(r),jt=Re.expandIcon,Rt=Re.expandedRowKeys,Nt=Re.defaultExpandedRowKeys,rt=Re.defaultExpandAllRows,it=Re.expandedRowRender,ft=Re.onExpand,mt=Re.onExpandedRowsChange,Pt=Re.expandRowByClick,nt=Re.rowExpandable,Et=Re.expandIconColumnIndex,pt=Re.expandedRowClassName,Kt=Re.childrenColumnName,Tt=Re.indentSize,ht=jt||We,gt=Kt||"children",St=o.useMemo(function(){return it?"row":r.expandable&&Te===tt&&r.expandable.__PARENT_RENDER_ICON__||ge.some(function(me){return me&&Object(q.a)(me)==="object"&&me[gt]})?"nest":!1},[!!it,ge]),Dt=o.useState(function(){return Nt||(rt?Ue(ge,Je,gt):[])}),ze=Object(j.a)(Dt,2),Ze=ze[0],at=ze[1],He=o.useMemo(function(){return new Set(Rt||Ze||[])},[Rt,Ze]),dt=o.useCallback(function(me){var pe=Je(me,ge.indexOf(me)),Ke,qe=He.has(pe);qe?(He.delete(pe),Ke=Object(G.a)(He)):Ke=[].concat(Object(G.a)(He),[pe]),at(Ke),ft&&ft(!qe,me),mt&&mt(Ke)},[Je,He,ge,ft,mt]),ct=o.useState(0),Mt=Object(j.a)(ct,2),Ct=Mt[0],_t=Mt[1],vn=Object(Z.b)(Object(E.a)(Object(E.a)(Object(E.a)({},r),Re),{},{expandable:!!it,expandedKeys:He,getRowKey:Je,onTriggerExpand:dt,expandIcon:ht,expandIconColumnIndex:Et,direction:K}),Te===tt?Pe:null),Yt=Object(j.a)(vn,2),kt=Yt[0],De=Yt[1],Lt=o.useMemo(function(){return{columns:kt,flattenColumns:De}},[kt,De]),Bt=o.useRef(),Qt=o.useRef(),ut=o.useRef(),bn=o.useState(!1),Zt=Object(j.a)(bn,2),qt=Zt[0],En=Zt[1],gn=o.useState(!1),en=Object(j.a)(gn,2),tn=en[0],Cn=en[1],yn=be(new Map),nn=Object(j.a)(yn,2),On=nn[0],xn=nn[1],jn=Object(h.a)(De),an=jn.map(function(me){return On.get(me)}),on=o.useMemo(function(){return an},[an.join("_")]),At=Ae(on,De.length,K),ot=M&&Object(h.d)(M.y),lt=M&&Object(h.d)(M.x),yt=lt&&De.some(function(me){var pe=me.fixed;return pe}),rn=o.useRef(),Ut=fe($e,N),Ot=Ut.isSticky,Rn=Ut.offsetHeader,Nn=Ut.offsetScroll,Pn=Ut.stickyClassName,Wt,wt,zt;ot&&(wt={overflowY:"scroll",maxHeight:M.y}),lt&&(Wt={overflowX:"auto"},ot||(wt={overflowY:"hidden"}),zt={width:M.x===!0?"auto":M.x,minWidth:"100%"});var ln=o.useCallback(function(me,pe){xn(function(Ke){var qe=new Map(Ke);return qe.set(me,pe),qe})},[]),Tn=Me(null),sn=Object(j.a)(Tn,2),Sn=sn[0],dn=sn[1];function Ft(me,pe){if(!pe)return;typeof pe=="function"?pe(me):pe.scrollLeft!==me&&(pe.scrollLeft=me)}var vt=function(pe){var Ke=pe.currentTarget,qe=pe.scrollLeft,xt=typeof qe=="number"?qe:Ke.scrollLeft,hn=Ke||et;if(!dn()||dn()===hn){var Jt;Sn(hn),Ft(xt,Qt.current),Ft(xt,ut.current),Ft(xt,(Jt=rn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(Ke){var wn=Ke.scrollWidth,In=Ke.clientWidth;En(xt>0),Cn(xt0?[].concat(Object(E.a)(l),Object(E.a)(y(x).map(function(h){return Object(G.a)({fixed:C},h)}))):[].concat(Object(E.a)(l),[Object(G.a)(Object(G.a)({},O),{},{fixed:C})])},[])}function _(s){for(var l=!0,O=0;O=0;x-=1){var h=s[x];if(C&&h.fixed!=="right")C=!1;else if(!C&&h.fixed==="right"){Object(X.a)(!1,"Index ".concat(x+1," of `columns` missing `fixed='right'` prop."));break}}}function B(s){return s.map(function(l){var O=l.fixed,u=Object(q.a)(l,["fixed"]),C=O;return O==="left"?C="right":O==="right"&&(C="left"),Object(G.a)({fixed:C},u)})}function T(s,l){var O=s.prefixCls,u=s.columns,C=s.children,x=s.expandable,h=s.expandedKeys,W=s.getRowKey,m=s.onTriggerExpand,v=s.expandIcon,p=s.rowExpandable,n=s.expandIconColumnIndex,a=s.direction,e=s.expandRowByClick,d=j.useMemo(function(){return u||k(C)},[u,C]),c=j.useMemo(function(){if(x){var b,F=n||0,V=d[F],Q=(b={},Object(g.a)(b,i.a,{className:"".concat(O,"-expand-icon-col")}),Object(g.a)(b,"title",""),Object(g.a)(b,"fixed",V?V.fixed:null),Object(g.a)(b,"className","".concat(O,"-row-expand-icon-cell")),Object(g.a)(b,"render",function(L,ee,te){var ue=W(ee,te),re=h.has(ue),Ce=p?p(ee):!0,Z=v({prefixCls:O,expanded:re,expandable:Ce,record:ee,onExpand:m});return e?j.createElement("span",{onClick:function(je){return je.stopPropagation()}},Z):Z}),b),ae=d.slice();return F>=0&&ae.splice(F,0,Q),ae}return d},[x,d,W,h,v,a]),f=j.useMemo(function(){var b=c;return l&&(b=l(b)),b.length||(b=[{render:function(){return null}}]),b},[l,c,a]),I=j.useMemo(function(){return a==="rtl"?B(y(f)):y(f)},[f,a]);return[f,I]}A.b=T},"y0+3":function(he,A,t){"use strict";t.d(A,"a",function(){return y}),t.d(A,"b",function(){return B});var g=/margin|padding|width|height|max|min|offset/,E={left:!0,top:!0},G={cssFloat:1,styleFloat:1,float:1};function q(T){return T.nodeType===1?T.ownerDocument.defaultView.getComputedStyle(T,null):{}}function j(T,s,l){if(s=s.toLowerCase(),l==="auto"){if(s==="height")return T.offsetHeight;if(s==="width")return T.offsetWidth}return s in E||(E[s]=g.test(s)),E[s]?parseFloat(l)||0:l}function o(T,s){var l=arguments.length,O=q(T);return s=G[s]?"cssFloat"in T.style?"cssFloat":"styleFloat":s,l===1?O:j(T,s,O[s]||T.style[s])}function X(T,s,l){var O=arguments.length;if(s=G[s]?"cssFloat"in T.style?"cssFloat":"styleFloat":s,O===3)return typeof l=="number"&&g.test(s)&&(l="".concat(l,"px")),T.style[s]=l,l;for(var u in s)s.hasOwnProperty(u)&&X(T,u,s[u]);return q(T)}function P(T){return T===document.body?document.documentElement.clientWidth:T.offsetWidth}function i(T){return T===document.body?window.innerHeight||document.documentElement.clientHeight:T.offsetHeight}function k(){var T=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),s=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:T,height:s}}function y(){var T=document.documentElement.clientWidth,s=window.innerHeight||document.documentElement.clientHeight;return{width:T,height:s}}function _(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function B(T){var s=T.getBoundingClientRect(),l=document.documentElement;return{left:s.left+(window.pageXOffset||l.scrollLeft)-(l.clientLeft||document.body.clientLeft||0),top:s.top+(window.pageYOffset||l.scrollTop)-(l.clientTop||document.body.clientTop||0)}}}}]); diff --git a/p__Engineering__Lists__CurseSetting.dc00353f.async.js b/p__Engineering__Lists__CurseSetting.dc00353f.async.js index 760b73d549..3e953a72a2 100644 --- a/p__Engineering__Lists__CurseSetting.dc00353f.async.js +++ b/p__Engineering__Lists__CurseSetting.dc00353f.async.js @@ -1,8 +1,8 @@ (window.webpackJsonp=window.webpackJsonp||[]).push([[131,6,8,10],{"+ua5":function(dt,z,t){},"/cxE":function(dt,z,t){"use strict";t.d(z,"e",function(){return _e}),t.d(z,"f",function(){return Z}),t.d(z,"g",function(){return l}),t.d(z,"d",function(){return ce}),t.d(z,"a",function(){return ne}),t.d(z,"b",function(){return M}),t.d(z,"c",function(){return S});var Q=function(){function d(){this.listeners=[],this.unexpectedErrorHandler=function(y){setTimeout(function(){throw y.stack?new Error(y.message+` -`+y.stack):y},0)}}return d.prototype.emit=function(y){this.listeners.forEach(function(x){x(y)})},d.prototype.onUnexpectedError=function(y){this.unexpectedErrorHandler(y),this.emit(y)},d.prototype.onUnexpectedExternalError=function(y){this.unexpectedErrorHandler(y)},d}(),N=new Q;function _e(d){ce(d)||N.onUnexpectedError(d);return}function Z(d){ce(d)||N.onUnexpectedExternalError(d);return}function l(d){if(d instanceof Error){var y=d.name,x=d.message,g=d.stacktrace||d.stack;return{$isError:!0,name:y,message:x,stack:g}}return d}var m="Canceled";function ce(d){return d instanceof Error&&d.name===m&&d.message===m}function ne(){var d=new Error(m);return d.name=d.message,d}function M(d){return d?new Error("Illegal argument: "+d):new Error("Illegal argument")}function S(d){return d?new Error("Illegal state: "+d):new Error("Illegal state")}},"24hK":function(dt,z,t){"use strict";t.d(z,"a",function(){return _e});var Q=t("JYp7"),N=function(){function Z(l){this.element=l,this.next=Z.Undefined,this.prev=Z.Undefined}return Z.Undefined=new Z(void 0),Z}(),_e=function(){function Z(){this._first=N.Undefined,this._last=N.Undefined,this._size=0}return Object.defineProperty(Z.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),Z.prototype.isEmpty=function(){return this._first===N.Undefined},Z.prototype.clear=function(){this._first=N.Undefined,this._last=N.Undefined,this._size=0},Z.prototype.unshift=function(l){return this._insert(l,!1)},Z.prototype.push=function(l){return this._insert(l,!0)},Z.prototype._insert=function(l,m){var ce=this,ne=new N(l);if(this._first===N.Undefined)this._first=ne,this._last=ne;else if(m){var M=this._last;this._last=ne,ne.prev=M,M.next=ne}else{var S=this._first;this._first=ne,ne.next=S,S.prev=ne}this._size+=1;var d=!1;return function(){d||(d=!0,ce._remove(ne))}},Z.prototype.shift=function(){if(this._first===N.Undefined)return;var l=this._first.element;return this._remove(this._first),l},Z.prototype.pop=function(){if(this._last===N.Undefined)return;var l=this._last.element;return this._remove(this._last),l},Z.prototype._remove=function(l){if(l.prev!==N.Undefined&&l.next!==N.Undefined){var m=l.prev;m.next=l.next,l.next.prev=m}else l.prev===N.Undefined&&l.next===N.Undefined?(this._first=N.Undefined,this._last=N.Undefined):l.next===N.Undefined?(this._last=this._last.prev,this._last.next=N.Undefined):l.prev===N.Undefined&&(this._first=this._first.next,this._first.prev=N.Undefined);this._size-=1},Z.prototype.iterator=function(){var l,m=this._first;return{next:function(){return m===N.Undefined?Q.c:(l?l.value=m.element:l={done:!1,value:m.element},m=m.next,l)}}},Z.prototype.toArray=function(){for(var l=[],m=this._first;m!==N.Undefined;m=m.next)l.push(m.element);return l},Z}()},"2U/9":function(dt,z,t){"use strict";var Q=t("VTBJ"),N=t("rePB"),_e=t("Ff2n"),Z=t("1OyB"),l=t("vuIU"),m=t("Ji7U"),ce=t("LK+K"),ne=t("q1tI"),M=t.n(ne),S=t("Zm9Q"),d=t("TSYQ"),y=t.n(d),x=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick"];function g(h){return typeof h=="string"}var u=function(h){Object(m.a)(K,h);var j=Object(ce.a)(K);function K(){var ee;return Object(Z.a)(this,K),ee=j.apply(this,arguments),ee.onClick=function(){var F=ee.props,G=F.onClick,te=F.onStepClick,w=F.stepIndex;G&&G.apply(void 0,arguments),te(w)},ee}return Object(l.a)(K,[{key:"renderIconNode",value:function(){var F,G=this.props,te=G.prefixCls,w=G.progressDot,$=G.stepIcon,f=G.stepNumber,L=G.status,oe=G.title,X=G.description,_=G.icon,b=G.iconPrefix,P=G.icons,r,s=y()("".concat(te,"-icon"),"".concat(b,"icon"),(F={},Object(N.a)(F,"".concat(b,"icon-").concat(_),_&&g(_)),Object(N.a)(F,"".concat(b,"icon-check"),!_&&L==="finish"&&(P&&!P.finish||!P)),Object(N.a)(F,"".concat(b,"icon-cross"),!_&&L==="error"&&(P&&!P.error||!P)),F)),e=ne.createElement("span",{className:"".concat(te,"-icon-dot")});return w?typeof w=="function"?r=ne.createElement("span",{className:"".concat(te,"-icon")},w(e,{index:f-1,status:L,title:oe,description:X})):r=ne.createElement("span",{className:"".concat(te,"-icon")},e):_&&!g(_)?r=ne.createElement("span",{className:"".concat(te,"-icon")},_):P&&P.finish&&L==="finish"?r=ne.createElement("span",{className:"".concat(te,"-icon")},P.finish):P&&P.error&&L==="error"?r=ne.createElement("span",{className:"".concat(te,"-icon")},P.error):_||L==="finish"||L==="error"?r=ne.createElement("span",{className:s}):r=ne.createElement("span",{className:"".concat(te,"-icon")},f),$&&(r=$({index:f-1,status:L,title:oe,description:X,node:r})),r}},{key:"render",value:function(){var F,G=this.props,te=G.className,w=G.prefixCls,$=G.style,f=G.active,L=G.status,oe=L===void 0?"wait":L,X=G.iconPrefix,_=G.icon,b=G.wrapperStyle,P=G.stepNumber,r=G.disabled,s=G.description,e=G.title,H=G.subTitle,p=G.progressDot,B=G.stepIcon,le=G.tailContent,de=G.icons,Ae=G.stepIndex,be=G.onStepClick,je=G.onClick,Se=Object(_e.a)(G,x),xe=y()("".concat(w,"-item"),"".concat(w,"-item-").concat(oe),te,(F={},Object(N.a)(F,"".concat(w,"-item-custom"),_),Object(N.a)(F,"".concat(w,"-item-active"),f),Object(N.a)(F,"".concat(w,"-item-disabled"),r===!0),F)),he=Object(Q.a)({},$),me={};return be&&!r&&(me.role="button",me.tabIndex=0,me.onClick=this.onClick),ne.createElement("div",Object.assign({},Se,{className:xe,style:he}),ne.createElement("div",Object.assign({onClick:je},me,{className:"".concat(w,"-item-container")}),ne.createElement("div",{className:"".concat(w,"-item-tail")},le),ne.createElement("div",{className:"".concat(w,"-item-icon")},this.renderIconNode()),ne.createElement("div",{className:"".concat(w,"-item-content")},ne.createElement("div",{className:"".concat(w,"-item-title")},e,H&&ne.createElement("div",{title:typeof H=="string"?H:void 0,className:"".concat(w,"-item-subtitle")},H)),s&&ne.createElement("div",{className:"".concat(w,"-item-description")},s))))}}]),K}(ne.Component),C=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange"],i=function(h){Object(m.a)(K,h);var j=Object(ce.a)(K);function K(){var ee;return Object(Z.a)(this,K),ee=j.apply(this,arguments),ee.onStepClick=function(F){var G=ee.props,te=G.onChange,w=G.current;te&&w!==F&&te(F)},ee}return Object(l.a)(K,[{key:"render",value:function(){var F,G=this,te=this.props,w=te.prefixCls,$=te.style,f=$===void 0?{}:$,L=te.className,oe=te.children,X=te.direction,_=te.type,b=te.labelPlacement,P=te.iconPrefix,r=te.status,s=te.size,e=te.current,H=te.progressDot,p=te.stepIcon,B=te.initial,le=te.icons,de=te.onChange,Ae=Object(_e.a)(te,C),be=_==="navigation",je=H?"vertical":b,Se=y()(w,"".concat(w,"-").concat(X),L,(F={},Object(N.a)(F,"".concat(w,"-").concat(s),s),Object(N.a)(F,"".concat(w,"-label-").concat(je),X==="horizontal"),Object(N.a)(F,"".concat(w,"-dot"),!!H),Object(N.a)(F,"".concat(w,"-navigation"),be),F));return M.a.createElement("div",Object.assign({className:Se,style:f},Ae),Object(S.a)(oe).map(function(xe,he){var me=B+he,c=Object(Q.a)({stepNumber:"".concat(me+1),stepIndex:me,key:me,prefixCls:w,iconPrefix:P,wrapperStyle:f,progressDot:H,stepIcon:p,icons:le,onStepClick:de&&G.onStepClick},xe.props);return r==="error"&&he===e-1&&(c.className="".concat(w,"-next-error")),xe.props.status||(me===e?c.status=r:me0&&(pe==null||pe.map(function(Ce){nt.push(Ce)}))}),Ct([].concat(nt))}else Ct([])}})," \u8003\u6838\u5185\u5BB9"),e.a.createElement("span",{style:{width:277}},"\u5206\u73ED"),e.a.createElement("span",{style:{width:87}},"\u6EE1\u5206\u503C"),e.a.createElement("span",{style:{width:93}},"\u7EC4\u5408\u8BA1\u7B97")),e.a.createElement("div",{style:{display:"flex",alignItems:"center",textAlign:"center",border:"1px solid #f0f0f0",maxHeight:"552px",overflow:"auto"}},e.a.createElement("span",{style:{width:93}},se.name),e.a.createElement("span",{style:{width:194,maxHeight:"552px"}},se==null||((Ne=se.courses)===null||Ne===void 0)?void 0:Ne.map(function(k){var Ee,fe,ge,Le;return e.a.createElement("div",{className:p.a.textwidth,style:{height:(k==null||((Ee=k.shixun_models)===null||Ee===void 0)?void 0:Ee.length)===0?40:(k==null||((fe=k.shixun_models)===null||fe===void 0)?void 0:fe.length)*40,lineHeight:(k==null||((ge=k.shixun_models)===null||ge===void 0)?void 0:ge.length)===0?40+"px":(k==null||((Le=k.shixun_models)===null||Le===void 0)?void 0:Le.length)*40+"px"}},k.name)})),e.a.createElement("span",{style:{width:324,maxHeight:"552px",textAlign:"left"}},e.a.createElement(me.a.Group,{onChange:function(Ee){var fe,ge=Xe==null||((fe=Xe.courses)===null||fe===void 0)?void 0:fe.map(function(pe){var Ce;return pe==null||((Ce=pe.shixun_models)===null||Ce===void 0)?void 0:Ce.map(function(We){return We})}),Le=[];ge.map(function(pe){pe.length>0&&(pe==null||pe.map(function(Ce){Le.push(Ce)}))});var nt=Le.filter(function(pe){return Ee.includes(pe.id)});Ct(nt)},style:{width:"100%"},value:Bt==null?void 0:Bt.map(function(k){return k==null?void 0:k.id})},se==null||((qe=se.courses)===null||qe===void 0)?void 0:qe.map(function(k){var Ee,fe;return(k==null||((Ee=k.shixun_models)===null||Ee===void 0)?void 0:Ee.length)===0?e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):k==null||((fe=k.shixun_models)===null||fe===void 0)?void 0:fe.map(function(ge){return e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},e.a.createElement(me.a,{onChange:function(nt){ge.checked=nt.target.checked,Ft(Object(L.a)({},se))},value:ge==null?void 0:ge.id},ge.name))})}))),e.a.createElement("span",{style:{width:277,maxHeight:"552px"}},se==null||((at=se.courses)===null||at===void 0)?void 0:at.map(function(k){var Ee,fe;return(k==null||((Ee=k.shixun_models)===null||Ee===void 0)?void 0:Ee.length)===0?e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):k==null||((fe=k.shixun_models)===null||fe===void 0)?void 0:fe.map(function(ge){return e.a.createElement(u.a,{title:ge.groups},e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},ge.groups))})})),e.a.createElement("span",{style:{width:87,maxHeight:"552px"}},se==null||((vt=se.courses)===null||vt===void 0)?void 0:vt.map(function(k){var Ee,fe;return(k==null||((Ee=k.shixun_models)===null||Ee===void 0)?void 0:Ee.length)===0?e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):k==null||((fe=k.shixun_models)===null||fe===void 0)?void 0:fe.map(function(ge){return e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},ge.total_score)})})),e.a.createElement("span",{style:{width:93,maxHeight:"552px"}},se==null||((ot=se.courses)===null||ot===void 0)?void 0:ot.map(function(k){var Ee,fe;return(k==null||((Ee=k.shixun_models)===null||Ee===void 0)?void 0:Ee.length)===0?e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},e.a.createElement(d.a,{disabled:!0})):k==null||((fe=k.shixun_models)===null||fe===void 0)?void 0:fe.map(function(ge){return e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},e.a.createElement(d.a,{min:1,step:.1,parser:In,value:ge==null?void 0:ge.position,onChange:function(nt){ge.position=nt,Ft(Object(L.a)({},se))}}))})}))))},_n=function(se){var Ne,qe,at,vt,ot;return e.a.createElement("div",null,e.a.createElement("div",{style:{display:"flex",height:"38px",background:"#F5F5F5",alignItems:"center",textAlign:"center",marginTop:"20px"}},e.a.createElement("span",{style:{width:93}},"\u8003\u6838\u65B9\u5F0F"),e.a.createElement("span",{style:{width:194}},"\u6559\u5B66\u8BFE\u5802"),e.a.createElement("span",{style:{width:324}},e.a.createElement(me.a,{checked:Bt.length===(se==null?void 0:se.exercise_count),onChange:function(Ee){var fe;if(se==null||((fe=se.courses)===null||fe===void 0)||fe.map(function(pe){var Ce;pe==null||((Ce=pe.exercise_models)===null||Ce===void 0)||Ce.map(function(We){We.checked=Ee.target.checked})}),Ft(Object(L.a)({},Xe)),Ee.target.checked){var ge,Le=Xe==null||((ge=Xe.courses)===null||ge===void 0)?void 0:ge.map(function(pe){var Ce;return pe==null||((Ce=pe.exercise_models)===null||Ce===void 0)?void 0:Ce.map(function(We){return We})}),nt=[];Le.map(function(pe){pe.length>0&&(pe==null||pe.map(function(Ce){nt.push(Ce)}))}),Ct([].concat(nt))}else Ct([])}})," \u8003\u6838\u5185\u5BB9"),e.a.createElement("span",{style:{width:277}},"\u5206\u73ED"),e.a.createElement("span",{style:{width:87}},"\u6EE1\u5206\u503C"),e.a.createElement("span",{style:{width:93}},"\u7EC4\u5408\u8BA1\u7B97")),e.a.createElement("div",{style:{display:"flex",alignItems:"center",textAlign:"center",border:"1px solid #f0f0f0",maxHeight:"552px",overflow:"auto"}},e.a.createElement("span",{style:{width:93}},se.name),e.a.createElement("span",{style:{width:194,maxHeight:"552px"}},se==null||((Ne=se.courses)===null||Ne===void 0)?void 0:Ne.map(function(k){var Ee,fe,ge,Le;return e.a.createElement("div",{className:p.a.textwidth,style:{height:(k==null||((Ee=k.exercise_models)===null||Ee===void 0)?void 0:Ee.length)===0?40:(k==null||((fe=k.exercise_models)===null||fe===void 0)?void 0:fe.length)*40,lineHeight:(k==null||((ge=k.exercise_models)===null||ge===void 0)?void 0:ge.length)===0?40+"px":(k==null||((Le=k.exercise_models)===null||Le===void 0)?void 0:Le.length)*40+"px"}},k.name)})),e.a.createElement("span",{style:{width:324,maxHeight:"552px",textAlign:"left"}},e.a.createElement(me.a.Group,{onChange:function(Ee){var fe,ge=Xe==null||((fe=Xe.courses)===null||fe===void 0)?void 0:fe.map(function(pe){var Ce;return pe==null||((Ce=pe.exercise_models)===null||Ce===void 0)?void 0:Ce.map(function(We){return We})}),Le=[];ge.map(function(pe){pe.length>0&&(pe==null||pe.map(function(Ce){Le.push(Ce)}))});var nt=Le.filter(function(pe){return Ee.includes(pe.id)});Ct(nt)},style:{width:"100%"},value:Bt==null?void 0:Bt.map(function(k){return k==null?void 0:k.id})},se==null||((qe=se.courses)===null||qe===void 0)?void 0:qe.map(function(k){var Ee,fe;return(k==null||((Ee=k.exercise_models)===null||Ee===void 0)?void 0:Ee.length)===0?e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):k==null||((fe=k.exercise_models)===null||fe===void 0)?void 0:fe.map(function(ge){return e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},e.a.createElement(me.a,{onChange:function(nt){ge.checked=nt.target.checked,Ft(Object(L.a)({},se))},value:ge==null?void 0:ge.id},ge.name))})}))),e.a.createElement("span",{style:{width:277,maxHeight:"552px"}},se==null||((at=se.courses)===null||at===void 0)?void 0:at.map(function(k){var Ee,fe;return(k==null||((Ee=k.exercise_models)===null||Ee===void 0)?void 0:Ee.length)===0?e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):k==null||((fe=k.exercise_models)===null||fe===void 0)?void 0:fe.map(function(ge){return e.a.createElement(u.a,{title:ge.groups},e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},ge.groups))})})),e.a.createElement("span",{style:{width:87,maxHeight:"552px"}},se==null||((vt=se.courses)===null||vt===void 0)?void 0:vt.map(function(k){var Ee,fe;return(k==null||((Ee=k.exercise_models)===null||Ee===void 0)?void 0:Ee.length)===0?e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):k==null||((fe=k.exercise_models)===null||fe===void 0)?void 0:fe.map(function(ge){return e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},ge.total_score)})})),e.a.createElement("span",{style:{width:93,maxHeight:"552px"}},se==null||((ot=se.courses)===null||ot===void 0)?void 0:ot.map(function(k){var Ee,fe;return(k==null||((Ee=k.exercise_models)===null||Ee===void 0)?void 0:Ee.length)===0?e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},e.a.createElement(d.a,{disabled:!0})):k==null||((fe=k.exercise_models)===null||fe===void 0)?void 0:fe.map(function(ge){return e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},e.a.createElement(d.a,{min:1,step:.1,parser:In,value:ge==null?void 0:ge.position,onChange:function(nt){ge.position=nt,Ft(Object(L.a)({},se))}}))})}))))},wn=function(se){var Ne,qe,at,vt,ot;return e.a.createElement("div",null,e.a.createElement("div",{style:{display:"flex",height:"38px",background:"#F5F5F5",alignItems:"center",textAlign:"center",marginTop:"20px"}},e.a.createElement("span",{style:{width:93}},"\u8003\u6838\u65B9\u5F0F"),e.a.createElement("span",{style:{width:194}},"\u6559\u5B66\u8BFE\u5802"),e.a.createElement("span",{style:{width:324}},e.a.createElement(me.a,{checked:Bt.length===(se==null?void 0:se.common_count),onChange:function(Ee){var fe;if(se==null||((fe=se.courses)===null||fe===void 0)||fe.map(function(pe){var Ce;pe==null||((Ce=pe.common_models)===null||Ce===void 0)||Ce.map(function(We){We.checked=Ee.target.checked})}),Ft(Object(L.a)({},Xe)),Ee.target.checked){var ge,Le=Xe==null||((ge=Xe.courses)===null||ge===void 0)?void 0:ge.map(function(pe){var Ce;return pe==null||((Ce=pe.common_models)===null||Ce===void 0)?void 0:Ce.map(function(We){return We})}),nt=[];Le.map(function(pe){pe.length>0&&(pe==null||pe.map(function(Ce){nt.push(Ce)}))}),Ct([].concat(nt))}else Ct([])}})," \u8003\u6838\u5185\u5BB9"),e.a.createElement("span",{style:{width:277}},"\u5206\u73ED"),e.a.createElement("span",{style:{width:87}},"\u6EE1\u5206\u503C"),e.a.createElement("span",{style:{width:93}},"\u7EC4\u5408\u8BA1\u7B97")),e.a.createElement("div",{style:{display:"flex",alignItems:"center",textAlign:"center",border:"1px solid #f0f0f0",maxHeight:"552px",overflow:"auto"}},e.a.createElement("span",{style:{width:93}},se.name),e.a.createElement("span",{style:{width:194,maxHeight:"552px"}},se==null||((Ne=se.courses)===null||Ne===void 0)?void 0:Ne.map(function(k){var Ee,fe,ge,Le;return e.a.createElement("div",{className:p.a.textwidth,style:{height:(k==null||((Ee=k.common_models)===null||Ee===void 0)?void 0:Ee.length)===0?40:(k==null||((fe=k.common_models)===null||fe===void 0)?void 0:fe.length)*40,lineHeight:(k==null||((ge=k.common_models)===null||ge===void 0)?void 0:ge.length)===0?40+"px":(k==null||((Le=k.common_models)===null||Le===void 0)?void 0:Le.length)*40+"px"}},k.name)})),e.a.createElement("span",{style:{width:324,maxHeight:"552px",textAlign:"left"}},e.a.createElement(me.a.Group,{onChange:function(Ee){var fe,ge=Xe==null||((fe=Xe.courses)===null||fe===void 0)?void 0:fe.map(function(pe){var Ce;return pe==null||((Ce=pe.common_models)===null||Ce===void 0)?void 0:Ce.map(function(We){return We})}),Le=[];ge.map(function(pe){pe.length>0&&(pe==null||pe.map(function(Ce){Le.push(Ce)}))});var nt=Le.filter(function(pe){return Ee.includes(pe.id)});Ct(nt)},style:{width:"100%"},value:Bt==null?void 0:Bt.map(function(k){return k==null?void 0:k.id})},se==null||((qe=se.courses)===null||qe===void 0)?void 0:qe.map(function(k){var Ee,fe;return(k==null||((Ee=k.common_models)===null||Ee===void 0)?void 0:Ee.length)===0?e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):k==null||((fe=k.common_models)===null||fe===void 0)?void 0:fe.map(function(ge){return e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},e.a.createElement(me.a,{onChange:function(nt){ge.checked=nt.target.checked,Ft(Object(L.a)({},se))},value:ge==null?void 0:ge.id},ge.name))})}))),e.a.createElement("span",{style:{width:277,maxHeight:"552px"}},se==null||((at=se.courses)===null||at===void 0)?void 0:at.map(function(k){var Ee,fe;return(k==null||((Ee=k.common_models)===null||Ee===void 0)?void 0:Ee.length)===0?e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):k==null||((fe=k.common_models)===null||fe===void 0)?void 0:fe.map(function(ge){return e.a.createElement(u.a,{title:ge.groups},e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},ge.groups))})})),e.a.createElement("span",{style:{width:87,maxHeight:"552px"}},se==null||((vt=se.courses)===null||vt===void 0)?void 0:vt.map(function(k){var Ee,fe;return(k==null||((Ee=k.common_models)===null||Ee===void 0)?void 0:Ee.length)===0?e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):k==null||((fe=k.common_models)===null||fe===void 0)?void 0:fe.map(function(ge){return e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},ge.total_score)})})),e.a.createElement("span",{style:{width:93,maxHeight:"552px"}},se==null||((ot=se.courses)===null||ot===void 0)?void 0:ot.map(function(k){var Ee,fe;return(k==null||((Ee=k.common_models)===null||Ee===void 0)?void 0:Ee.length)===0?e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},e.a.createElement(d.a,{disabled:!0})):k==null||((fe=k.common_models)===null||fe===void 0)?void 0:fe.map(function(ge){return e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},e.a.createElement(d.a,{min:1,step:.1,parser:In,value:ge==null?void 0:ge.position,onChange:function(nt){ge.position=nt,Ft(Object(L.a)({},se))}}))})}))))},kn=function(se){var Ne,qe,at,vt,ot;return e.a.createElement("div",null,e.a.createElement("div",{style:{display:"flex",height:"38px",background:"#F5F5F5",alignItems:"center",textAlign:"center",marginTop:"20px"}},e.a.createElement("span",{style:{width:93}},"\u8003\u6838\u65B9\u5F0F"),e.a.createElement("span",{style:{width:194}},"\u6559\u5B66\u8BFE\u5802"),e.a.createElement("span",{style:{width:324}},e.a.createElement(me.a,{checked:Bt.length===(se==null?void 0:se.group_count),onChange:function(Ee){var fe;if(se==null||((fe=se.courses)===null||fe===void 0)||fe.map(function(pe){var Ce;pe==null||((Ce=pe.group_models)===null||Ce===void 0)||Ce.map(function(We){We.checked=Ee.target.checked})}),Ft(Object(L.a)({},Xe)),Ee.target.checked){var ge,Le=Xe==null||((ge=Xe.courses)===null||ge===void 0)?void 0:ge.map(function(pe){var Ce;return pe==null||((Ce=pe.group_models)===null||Ce===void 0)?void 0:Ce.map(function(We){return We})}),nt=[];Le.map(function(pe){pe.length>0&&(pe==null||pe.map(function(Ce){nt.push(Ce)}))}),Ct([].concat(nt))}else Ct([])}})," \u8003\u6838\u5185\u5BB9"),e.a.createElement("span",{style:{width:277}},"\u5206\u73ED"),e.a.createElement("span",{style:{width:87}},"\u6EE1\u5206\u503C"),e.a.createElement("span",{style:{width:93}},"\u7EC4\u5408\u8BA1\u7B97")),e.a.createElement("div",{style:{display:"flex",alignItems:"center",textAlign:"center",border:"1px solid #f0f0f0",maxHeight:"552px",overflow:"auto"}},e.a.createElement("span",{style:{width:93}},se.name),e.a.createElement("span",{style:{width:194,maxHeight:"552px"}},se==null||((Ne=se.courses)===null||Ne===void 0)?void 0:Ne.map(function(k){var Ee,fe,ge,Le;return e.a.createElement("div",{className:p.a.textwidth,style:{height:(k==null||((Ee=k.group_models)===null||Ee===void 0)?void 0:Ee.length)===0?40:(k==null||((fe=k.group_models)===null||fe===void 0)?void 0:fe.length)*40,lineHeight:(k==null||((ge=k.group_models)===null||ge===void 0)?void 0:ge.length)===0?40+"px":(k==null||((Le=k.group_models)===null||Le===void 0)?void 0:Le.length)*40+"px"}},k.name)})),e.a.createElement("span",{style:{width:324,maxHeight:"552px",textAlign:"left"}},e.a.createElement(me.a.Group,{onChange:function(Ee){var fe,ge=Xe==null||((fe=Xe.courses)===null||fe===void 0)?void 0:fe.map(function(pe){var Ce;return pe==null||((Ce=pe.group_models)===null||Ce===void 0)?void 0:Ce.map(function(We){return We})}),Le=[];ge.map(function(pe){pe.length>0&&(pe==null||pe.map(function(Ce){Le.push(Ce)}))});var nt=Le.filter(function(pe){return Ee.includes(pe.id)});Ct(nt)},style:{width:"100%"},value:Bt==null?void 0:Bt.map(function(k){return k==null?void 0:k.id})},se==null||((qe=se.courses)===null||qe===void 0)?void 0:qe.map(function(k){var Ee,fe;return(k==null||((Ee=k.group_models)===null||Ee===void 0)?void 0:Ee.length)===0?e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):k==null||((fe=k.group_models)===null||fe===void 0)?void 0:fe.map(function(ge){return e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},e.a.createElement(me.a,{onChange:function(nt){ge.checked=nt.target.checked,Ft(Object(L.a)({},se))},value:ge==null?void 0:ge.id},ge.name))})}))),e.a.createElement("span",{style:{width:277,maxHeight:"552px"}},se==null||((at=se.courses)===null||at===void 0)?void 0:at.map(function(k){var Ee,fe;return(k==null||((Ee=k.group_models)===null||Ee===void 0)?void 0:Ee.length)===0?e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):k==null||((fe=k.group_models)===null||fe===void 0)?void 0:fe.map(function(ge){return e.a.createElement(u.a,{title:ge.groups},e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},ge.groups))})})),e.a.createElement("span",{style:{width:87,maxHeight:"552px"}},se==null||((vt=se.courses)===null||vt===void 0)?void 0:vt.map(function(k){var Ee,fe;return(k==null||((Ee=k.group_models)===null||Ee===void 0)?void 0:Ee.length)===0?e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):k==null||((fe=k.group_models)===null||fe===void 0)?void 0:fe.map(function(ge){return e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},ge.total_score)})})),e.a.createElement("span",{style:{width:93,maxHeight:"552px"}},se==null||((ot=se.courses)===null||ot===void 0)?void 0:ot.map(function(k){var Ee,fe;return(k==null||((Ee=k.group_models)===null||Ee===void 0)?void 0:Ee.length)===0?e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},e.a.createElement(d.a,{disabled:!0})):k==null||((fe=k.group_models)===null||fe===void 0)?void 0:fe.map(function(ge){return e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},e.a.createElement(d.a,{min:1,step:.1,parser:In,value:ge==null?void 0:ge.position,onChange:function(nt){ge.position=nt,Ft(Object(L.a)({},se))}}))})}))))};return e.a.createElement(ee.a,{title:"\u6DFB\u52A0\u8BFE\u5802\u6570\u636E",wrapClassName:p.a.modalWrapContainer,visible:St,width:Ve<2?740:1100,footer:e.a.createElement("div",null,Ve<2&&e.a.createElement(w.a,{type:"primary",onClick:Object(_.a)(r.a.mark(function ut(){var se,Ne,qe,at;return r.a.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:if(!(!Tt||Tt=="")){ot.next=3;break}return X.b.warn("\u8BF7\u9009\u62E9\u8BFE\u5802"),ot.abrupt("return");case 3:return ot.next=5,Object(de.a)("/api/ec_courses/1/course_evaluations/search_works.json",{method:"get",params:{course_ids:Tt,list_id:Mt||""}});case 5:Ne=ot.sent,Ft(Ne),qe=Ne==null||((se=Ne.courses)===null||se===void 0)?void 0:se.map(function(k){var Ee;return k==null||((Ee=k.shixun_models)===null||Ee===void 0)?void 0:Ee.map(function(fe){return fe})}),at=[],qe.map(function(k){k.length>0&&(k==null||k.map(function(Ee){Ee.checked&&at.push(Ee)}))}),Ct([].concat(at)),tt("1"),Fe(2);case 13:case"end":return ot.stop()}},ut)}))},"\u4E0B\u4E00\u6B65"),Ve>=2&&e.a.createElement("div",null,e.a.createElement(w.a,{type:"primary",onClick:Object(_.a)(r.a.mark(function ut(){return r.a.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:It(!1),Fe(0);case 2:case"end":return Ne.stop()}},ut)}))},"\u53D6\u6D88"),e.a.createElement(w.a,{type:"primary",loading:Dt,onClick:Object(_.a)(r.a.mark(function ut(){var se,Ne,qe,at,vt,ot,k,Ee,fe,ge,Le,nt,pe,Ce,We,Xt,an,Yt;return r.a.wrap(function(tn){for(;;)switch(tn.prev=tn.next){case 0:if(fe=Xe==null||((se=Xe.courses)===null||se===void 0)?void 0:se.map(function(Et){var Nt;return Et==null||((Nt=Et.common_models)===null||Nt===void 0)?void 0:Nt.map(function(Tn){return Tn})}),ge=[],fe.map(function(Et){Et.length>0&&(Et==null||Et.map(function(Nt){Nt.checked&&ge.push(Nt)}))}),Le=Xe==null||((Ne=Xe.courses)===null||Ne===void 0)?void 0:Ne.map(function(Et){var Nt;return Et==null||((Nt=Et.group_models)===null||Nt===void 0)?void 0:Nt.map(function(Tn){return Tn})}),nt=[],Le.map(function(Et){Et.length>0&&(Et==null||Et.map(function(Nt){Nt.checked&&nt.push(Nt)}))}),pe=Xe==null||((qe=Xe.courses)===null||qe===void 0)?void 0:qe.map(function(Et){var Nt;return Et==null||((Nt=Et.exercise_models)===null||Nt===void 0)?void 0:Nt.map(function(Tn){return Tn})}),Ce=[],pe.map(function(Et){Et.length>0&&(Et==null||Et.map(function(Nt){Nt.checked&&Ce.push(Nt)}))}),We=Xe==null||((at=Xe.courses)===null||at===void 0)?void 0:at.map(function(Et){var Nt;return Et==null||((Nt=Et.shixun_models)===null||Nt===void 0)?void 0:Nt.map(function(Tn){return Tn})}),Xt=[],We.map(function(Et){Et.length>0&&(Et==null||Et.map(function(Nt){Nt.checked&&Xt.push(Nt)}))}),jt==="1"?Xt=Bt:jt==="2"?ge=Bt:jt==="3"?nt=Bt:Ce=Bt,un(!0),!(((vt=Xt)===null||vt===void 0?void 0:vt.length)<=0&&((ot=ge)===null||ot===void 0?void 0:ot.length)<=0&&((k=nt)===null||k===void 0?void 0:k.length)<=0&&((Ee=Ce)===null||Ee===void 0?void 0:Ee.length)<=0)){tn.next=18;break}return X.b.info("\u8BF7\u9009\u62E9\u8003\u6838\u5185\u5BB9"),un(!1),tn.abrupt("return");case 18:if(!Mt){tn.next=25;break}return tn.next=21,Object(de.a)("/api/ec_courses/".concat(lt==null?void 0:lt.id,"/course_evaluations/update_online"),{method:"put",body:{id:Mt,course_ids:Tt,shixun_works:Xt,common_works:ge,group_works:nt,exercise_works:Ce}});case 21:an=tn.sent,an&&(It(!1),wt(lt),ue(lt)),tn.next=29;break;case 25:return tn.next=27,Object(de.a)("/api/ec_courses/".concat(lt==null?void 0:lt.id,"/course_evaluations/create_online"),{method:"post",body:{course_ids:Tt,shixun_works:Xt,common_works:ge,group_works:nt,exercise_works:Ce}});case 27:Yt=tn.sent,Yt&&(It(!1),wt(lt),ue(lt));case 29:un(!1),Fe(0);case 31:case"end":return tn.stop()}},ut)}))},"\u4FDD\u5B58"))),onCancel:function(){Fe(0),It(!1)}},e.a.createElement("div",{style:{width:"calc(100% - 184px)",margin:"0 auto"}},e.a.createElement(xe.a,{current:Ve},e.a.createElement(xe.a.Step,{style:{cursor:"pointer"},onClick:function(){Fe(1)},key:1,title:"\u5173\u8054\u8BFE\u5802"}),e.a.createElement(xe.a.Step,{style:{cursor:"pointer"},onClick:Object(_.a)(r.a.mark(function ut(){var se,Ne,qe,at;return r.a.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:if(!(Tt.length<=0)){ot.next=3;break}return X.b.info("\u8BF7\u9009\u62E9\u8BFE\u5802"),ot.abrupt("return");case 3:return ot.next=5,Object(de.a)("/api/ec_courses/1/course_evaluations/search_works.json",{method:"get",params:{course_ids:Tt,list_id:Mt||""}});case 5:Ne=ot.sent,Ft(Ne),qe=Ne==null||((se=Ne.courses)===null||se===void 0)?void 0:se.map(function(k){var Ee;return k==null||((Ee=k.shixun_models)===null||Ee===void 0)?void 0:Ee.map(function(fe){return fe})}),at=[],qe.map(function(k){k.length>0&&(k==null||k.map(function(Ee){Ee.checked&&at.push(Ee)}))}),Ct([].concat(at)),tt("1"),Fe(2);case 13:case"end":return ot.stop()}},ut)})),key:2,title:"\u914D\u7F6E\u8003\u6838\u65B9\u5F0F\u4E0E\u5185\u5BB9"}))),Ve<2&&e.a.createElement("div",null,e.a.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:30,padding:"0 40px"}},e.a.createElement("div",{style:{flex:1},className:p.a.title},"\u5173\u8054\u8BFE\u5802"),e.a.createElement(x.a.Search,{className:p.a.inputWrap,style:{width:"342px"},onSearch:function(se){Ye.page=1,Ye.name=se,ze(Object(L.a)({},Ye)),en(Ye)},placeholder:"\u8BF7\u8F93\u5165\u8BFE\u5802\u540D\u79F0"})),e.a.createElement("div",null,e.a.createElement(j.a,{style:{marginTop:"10px"},dataSource:mt,rowKey:"id",scroll:{y:300},rowSelection:Ln,onChange:Sn,columns:[{title:"\u8BFE\u5802\u540D\u79F0",dataIndex:"name"},{title:"\u521B\u5EFA\u8005",dataIndex:"creator_name",width:110},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_at",width:133},{title:"\u7ED3\u675F\u65F6\u95F4",dataIndex:"end_time",width:133,render:function(se,Ne,qe){return se||"- -"}}],pagination:{pageSize:Ye.per_page,total:Ye.total,current:Ye.page,showQuickJumper:!0,hideOnSinglePage:!1,showSizeChanger:!0,position:["bottomCenter"],showTotal:function(se){return e.a.createElement("span",{className:"mr10"},"\u5171",e.a.createElement("span",{className:"c-orange"},se),"\u6761\u6570\u636E")}}}))),Ve===2&&e.a.createElement("div",{className:p.a.addCourseTabsContainer},e.a.createElement(M.a,{defaultActiveKey:"1",activeKey:jt,onChange:function(se){if(tt(se),se==="1"){var Ne,qe=Xe==null||((Ne=Xe.courses)===null||Ne===void 0)?void 0:Ne.map(function(Ce){var We;return Ce==null||((We=Ce.shixun_models)===null||We===void 0)?void 0:We.map(function(Xt){return Xt})}),at=[];qe.map(function(Ce){Ce.length>0&&(Ce==null||Ce.map(function(We){We.checked&&at.push(We)}))}),Ct([].concat(at))}else if(se==="2"){var vt,ot=Xe==null||((vt=Xe.courses)===null||vt===void 0)?void 0:vt.map(function(Ce){var We;return Ce==null||((We=Ce.common_models)===null||We===void 0)?void 0:We.map(function(Xt){return Xt})}),k=[];ot.map(function(Ce){Ce.length>0&&(Ce==null||Ce.map(function(We){We.checked&&k.push(We)}))}),Ct([].concat(k))}else if(se==="3"){var Ee,fe=Xe==null||((Ee=Xe.courses)===null||Ee===void 0)?void 0:Ee.map(function(Ce){var We;return Ce==null||((We=Ce.group_models)===null||We===void 0)?void 0:We.map(function(Xt){return Xt})}),ge=[];fe.map(function(Ce){Ce.length>0&&(Ce==null||Ce.map(function(We){We.checked&&ge.push(We)}))}),Ct([].concat(ge))}else{var Le,nt=Xe==null||((Le=Xe.courses)===null||Le===void 0)?void 0:Le.map(function(Ce){var We;return Ce==null||((We=Ce.exercise_models)===null||We===void 0)?void 0:We.map(function(Xt){return Xt})}),pe=[];nt.map(function(Ce){Ce.length>0&&(Ce==null||Ce.map(function(We){We.checked&&pe.push(We)}))}),Ct([].concat(pe))}}},e.a.createElement(M.a.TabPane,{tab:"\u5B9E\u8BAD\u4F5C\u4E1A",key:1},Mn(),Zn(Object(L.a)(Object(L.a)({},Xe),{},{name:"\u5B9E\u8BAD\u4F5C\u4E1A"}))),e.a.createElement(M.a.TabPane,{tab:"\u666E\u901A\u4F5C\u4E1A",key:2},Mn(),wn(Object(L.a)(Object(L.a)({},Xe),{},{name:"\u666E\u901A\u4F5C\u4E1A"}))),e.a.createElement(M.a.TabPane,{tab:"\u5206\u7EC4\u4F5C\u4E1A",key:3},Mn(),kn(Object(L.a)(Object(L.a)({},Xe),{},{name:"\u5206\u7EC4\u4F5C\u4E1A"}))),e.a.createElement(M.a.TabPane,{tab:"\u5728\u7EBF\u8003\u8BD5",key:4},Mn(),_n(Object(L.a)(Object(L.a)({},Xe),{},{name:"\u5728\u7EBF\u8003\u8BD5"}))))))}var I=c,O=t("LvDl"),ae=t("BdwD");function v(Ge){var Lt,St,It,lt=Ge.isshow,Mt=Ge.setishow,wt=Ge.modalparams,ue=Ge.getcourse_evaluations,Me={page:1,per_page:20,total:0,name:""},Pe=Object(s.useState)(0),ve=Object(b.a)(Pe,2),Je=ve[0],Ve=ve[1],Fe=Object(s.useState)(Me),ke=Object(b.a)(Fe,2),He=ke[0],Ye=ke[1],ze=Object(s.useState)([]),rt=Object(b.a)(ze,2),ft=rt[0],mt=rt[1],At=Object(s.useState)([]),zt=Object(b.a)(At,2),kt=zt[0],Tt=zt[1],Ot=Object(s.useState)([]),dn=Object(b.a)(Ot,2),ln=dn[0],Xe=dn[1],Ft=Object(s.useState)({}),gn=Object(b.a)(Ft,2),ht=gn[0],Bt=gn[1],Ct=Object(s.useState)(),gt=Object(b.a)(Ct,2),Rt=gt[0],jt=gt[1],tt=Object(s.useState)(!1),Ze=Object(b.a)(tt,2),st=Ze[0],Dt=Ze[1],un=Object(s.useState)("1"),en=Object(b.a)(un,2),bn=en[0],Sn=en[1],Ln=Object(s.useRef)(Me),In=Object(s.useState)(null),Mn=Object(b.a)(In,2),Zn=Mn[0],_n=Mn[1],wn=Object(s.useRef)(null),kn=Object(s.useRef)(""),ut=Object(s.useRef)([]);Object(s.useEffect)(function(){lt&&(qe(He),Sn("1"))},[lt]);var se=function(ge){_n(ge),wn.current=ge,Ee(Object(O.cloneDeep)(ut.current))},Ne=function(ge){var Le=ge;return Le=isNaN(Le)?"":Le,Le[0]==="."&&(Le=""),Le};function qe(fe){return at.apply(this,arguments)}function at(){return at=Object(_.a)(r.a.mark(function fe(ge){var Le,nt,pe;return r.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.next=2,Object(de.a)("/api/ec_courses/".concat(wt.id,"/evaluations/evaluation_settings.json"),{method:"get",params:ge});case 2:nt=We.sent,mt(nt),jt((nt==null||((Le=nt.ec_course_targets)===null||Le===void 0)?void 0:Le.length)*75+227+240+32),pe=nt.ec_course_targets,pe.unshift({content:"11"}),ut.current=pe,Ee(pe);case 9:case"end":return We.stop()}},fe)})),at.apply(this,arguments)}function vt(fe){return ot.apply(this,arguments)}function ot(){return ot=Object(_.a)(r.a.mark(function fe(ge){var Le,nt,pe;return r.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.next=2,Object(de.a)("/api/ec_courses/".concat(wt.id,"/evaluations/evaluation_settings_subitems.json"),{method:"get",params:ge});case 2:nt=We.sent,pe=[],nt.evaluations.map(function(Xt){var an;Xt==null||((an=Xt.subitems)===null||an===void 0)||an.map(function(Yt){pe.push(Yt)})}),jt((nt==null||((Le=nt.ec_course_targets)===null||Le===void 0)?void 0:Le.length)*75+227+240+32),Bt({}),Bt(nt),Xe(pe);case 9:case"end":return We.stop()}},fe)})),ot.apply(this,arguments)}var k=function(){var fe=Object(_.a)(r.a.mark(function ge(Le){var nt,pe,Ce,We,Xt,an;return r.a.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return _n(null),We=wn.current,wn.current=null,Xt=Le?"/api/ec_courses/".concat(wt.id,"/evaluations/update_evaluation_settings"):"/api/ec_courses/".concat(wt.id,"/evaluations/update_evaluation_setting_subitem"),Cn.next=6,Object(de.a)(Xt,{method:"post",body:{random_number:We==null||((nt=We.split("-"))===null||nt===void 0)?void 0:nt[1],ec_course_target_id:We==null||((pe=We.split("-"))===null||pe===void 0)?void 0:pe[0],weight:kn.current,ec_course_evaluation_subitem_ids:Le?null:[We==null||((Ce=We.split("-"))===null||Ce===void 0)?void 0:Ce[2]]}});case 6:an=Cn.sent,an.status===0&&(X.b.success("\u4FDD\u5B58\u6210\u529F"),Le?(qe(He),ue(wt)):(vt(He),ue(wt)));case 8:case"end":return Cn.stop()}},ge)}));return function(Le){return fe.apply(this,arguments)}}(),Ee=function(ge){var Le=Object(O.cloneDeep)(ge);Le[0].title=e.a.createElement("div",{className:p.a.line},e.a.createElement("span",null,"\u8BFE\u7A0B\u76EE\u6807"),e.a.createElement("span",null,"\u8003\u6838\u65B9\u5F0F")),Le[0].dataIndex="work_name",Le[0].width=180,Le[0].fixed="left",Le[0].render=function(pe,Ce){return e.a.createElement("div",{className:p.a.omit},e.a.createElement("span",{title:pe},pe),Ce.warning&&e.a.createElement(u.a,{title:"\u8BE5\u8003\u6838\u65B9\u5F0F\u5BF9\u5E94\u76EE\u6807\u5360\u6BD4\u4E4B\u548C\u4E3A0\uFF0C\u53EF\u80FD\u5BFC\u81F4\u8BA1\u7B97\u7ED3\u679C\u4E0D\u51C6\u786E"},e.a.createElement("i",{style:{color:"#FF9D18"},className:"iconfont icon-hongsejingshi ml5"})))};var nt=function(Ce,We,Xt,an){var Yt,Cn,tn="",Et="";Ce&&(tn=Ce.split("-")[0],Et=Ce.split("-")[1]);var Nt=((Yt=Ln.current)===null||Yt===void 0?void 0:Yt.tab)==="1"?tn:Et,Tn=We==null||((Cn=We.relation[an-1])===null||Cn===void 0)?void 0:Cn.weight;return e.a.createElement("span",null,wn.current==="".concat(Xt,"-").concat(We.random_number)?e.a.createElement(d.a,{key:"".concat(Xt,"-").concat(We.random_number),autoFocus:!0,defaultValue:Tn,onBlur:function(){return k(!0)},step:.1,parser:Ne,onChange:function(Jn){return kn.current=Jn},style:{width:100}}):e.a.createElement(s.Fragment,{key:"".concat(Xt,"-").concat(We.random_number)},e.a.createElement("span",{className:p.a.tbl,onClick:function(){return se("".concat(Xt,"-").concat(We.random_number))},style:{color:Nt==="H"?"#0152D9":Nt==="M"?"#07C160":Nt==="L"?"#FF9D18":"#0152d9"}},Tn?e.a.createElement("span",null,Tn):"\u8F93\u5165\u6570\u5B57")))};Le=Le.map(function(pe,Ce){return Ce?{title:e.a.createElement("span",{key:Math.random()},e.a.createElement(u.a,{title:pe.content},e.a.createElement("span",null,"\u76EE\u6807"+Ce)),pe.warning&&e.a.createElement(u.a,{title:"\u8BE5\u76EE\u6807\u4E0B\u8003\u6838\u65B9\u5F0F\u5360\u6BD4\u4E4B\u548C\u4E0D\u7B49\u4E8E1 \uFF0C\u53EF\u80FD\u5BFC\u81F4\u8BA1\u7B97\u7ED3\u679C\u4E0D\u51C6\u786E\uFF01"},e.a.createElement("i",{style:{color:"#FF9D18"},className:"iconfont icon-hongsejingshi ml5"}))),dataIndex:"content",width:Ce===Le.length-1?120:"",fixed:Ce===Le.length-1?"right":"",render:function(Xt,an){return nt(Xt,an,pe.id,Ce)}}:pe}),Tt(Le||[])};return e.a.createElement(ee.a,{title:"\u8BBE\u7F6E\u8003\u6838\u5360\u6BD4",visible:lt,width:Rt>1060?1060:Rt,footer:null,centered:!0,onCancel:function(){Mt(!1)}},e.a.createElement(M.a,{activeKey:bn,onChange:function(ge){Sn(ge),ge==="1"?qe(He):vt(He)}},e.a.createElement(M.a.TabPane,{tab:"\u8BBE\u7F6E\u8003\u6838\u65B9\u5F0F\u5360\u6BD4",key:1},e.a.createElement("div",{style:{marginTop:"30px",color:"#464F66",fontSize:"14px"}},e.a.createElement("p",null,"\u8BF4\u660E\uFF1A"),e.a.createElement("p",null,"\u6BCF\u4E00\u4E2A\u8BFE\u7A0B\u76EE\u6807\u4E0B\u7684\u8003\u6838\u65B9\u5F0F\u5360\u6BD4\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E1\u3002")),e.a.createElement(j.a,{columns:kt,bordered:!0,scroll:{x:2e3},dataSource:ft==null?void 0:ft.evaluations,pagination:!1})),e.a.createElement(M.a.TabPane,{tab:"\u8BBE\u7F6E\u8003\u6838\u5185\u5BB9\u5360\u6BD4",key:2},e.a.createElement("div",{style:{marginTop:"30px",color:"#464F66",fontSize:"14px"}},e.a.createElement("p",null,"\u8BF4\u660E\uFF1A"),e.a.createElement("p",null,"\u6BCF\u4E00\u4E2A\u8003\u6838\u65B9\u5F0F\u4E0B\u7684\u8003\u6838\u5185\u5BB9\u5360\u6BD4\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E1\u3002")),e.a.createElement("div",{style:{overflow:"auto",width:"100%"}},e.a.createElement("div",{style:{display:"flex",background:"#F5F5F5",height:"78px"}},e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",borderLeft:"1px solid #E0E2EC",borderTop:"1px solid #E0E2EC",width:"240px",paddingLeft:"30px",lineHeight:"78px",flexShrink:0}},"\u8003\u6838\u65B9\u5F0F"),e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",borderTop:"1px solid #E0E2EC",width:"227px",lineHeight:"78px",textAlign:"center",flexShrink:0}},"\u8003\u6838\u5185\u5BB9"),ht==null||((Lt=ht.ec_course_targets)===null||Lt===void 0)?void 0:Lt.map(function(fe,ge){var Le;return e.a.createElement("div",{style:{borderRight:ge!=(ht==null||((Le=ht.ec_course_targets)===null||Le===void 0)?void 0:Le.length)-1&&"1px solid #E0E2EC",width:"75px",lineHeight:"78px",textAlign:"center",flexShrink:0,background:"#F5F5F5",borderTop:"1px solid #E0E2EC"}},e.a.createElement(u.a,{title:fe.content},e.a.createElement("span",null,"\u76EE\u6807"+(ge+1))),fe.warning&&e.a.createElement(u.a,{title:"\u8BE5\u76EE\u6807\u4E0B\u6709\u8003\u6838\u65B9\u5F0F\u7684\u8003\u6838\u5185\u5BB9\u5360\u6BD4\u4E4B\u548C\u4E0D\u7B49\u4E8E1 \uFF0C\u53EF\u80FD\u5BFC\u81F4\u8BA1\u7B97\u7ED3\u679C\u4E0D\u51C6\u786E\uFF01"},e.a.createElement("i",{style:{color:"#FF9D18"},className:"iconfont icon-hongsejingshi ml5"})))})),e.a.createElement("div",null,e.a.createElement("div",{style:{maxHeight:"550px"}},(ht==null||((St=ht.evaluations)===null||St===void 0)?void 0:St.length)<=0&&e.a.createElement(ae.a,{customText:"\u5F53\u524D\u6682\u65E0\u6570\u636E"}),ht==null||((It=ht.evaluations)===null||It===void 0)?void 0:It.map(function(fe,ge){var Le,nt;return e.a.createElement("div",{style:{height:"100%",display:"flex",borderLeft:"1px solid #E0E2EC"}},e.a.createElement("div",{style:{width:"240px",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},fe.work_name),e.a.createElement("div",{style:{display:"flex",flexDirection:"column",borderRight:"1px solid #E0E2EC",width:"227px",flexShrink:0}},fe==null||((Le=fe.subitems)===null||Le===void 0)?void 0:Le.map(function(pe,Ce){return e.a.createElement("div",{style:{borderBottom:"1px solid #E0E2EC",paddingLeft:8,paddingRight:12,display:"flex",alignItems:"center"}},e.a.createElement(u.a,{title:pe==null?void 0:pe.name},e.a.createElement("div",{className:p.a.textone,style:{height:"42px",lineHeight:"42px"}},pe==null?void 0:pe.name)),pe.warning&&e.a.createElement(u.a,{title:"\u8BE5\u8003\u6838\u5185\u5BB9\u5BF9\u5E94\u76EE\u6807\u5360\u6BD4\u4E4B\u548C\u4E3A0\uFF0C\u53EF\u80FD\u5BFC\u81F4\u8BA1\u7B97\u7ED3\u679C\u4E0D\u51C6\u786E"},e.a.createElement("i",{style:{color:"#FF9D18"},className:"iconfont icon-hongsejingshi ml5"})))})),ht==null||((nt=ht.ec_course_targets)===null||nt===void 0)?void 0:nt.map(function(pe,Ce){var We,Xt;return e.a.createElement("div",{style:{display:"flex",flexDirection:"column",borderRight:"1px solid #E0E2EC",width:Ce!=(ht==null||((We=ht.ec_course_targets)===null||We===void 0)?void 0:We.length)-1?"75px":"74px",flexShrink:0}},fe==null||((Xt=fe.subitems)===null||Xt===void 0)?void 0:Xt.map(function(an,Yt){var Cn,tn,Et;return e.a.createElement(d.a,{key:"".concat(Ce,"-").concat(Yt),parser:Ne,step:.1,disabled:st,onBlur:function(){var Nt=Object(_.a)(r.a.mark(function Tn(da){var Jn;return r.a.wrap(function(ra){for(;;)switch(ra.prev=ra.next){case 0:return Dt(!0),ra.next=3,Object(de.a)("/api/ec_courses/".concat(wt.id,"/evaluations/update_evaluation_setting_subitem"),{method:"post",body:{random_number:an==null?void 0:an.random_number,ec_course_target_id:pe==null?void 0:pe.id,weight:da.target.value,ec_course_evaluation_subitem_ids:an==null?void 0:an.ec_course_evaluation_subitem_ids}});case 3:Jn=ra.sent,Dt(!1),Jn&&(vt(He),ue(wt));case 6:case"end":return ra.stop()}},Tn)}));return function(Tn){return Nt.apply(this,arguments)}}(),defaultValue:an==null||((Cn=an.relation)===null||Cn===void 0||((tn=Cn[Ce])===null||tn===void 0))?void 0:tn.weight,style:{height:43,lineHeight:"43px",width:Ce!=(ht==null||((Et=ht.ec_course_targets)===null||Et===void 0)?void 0:Et.length)-1?"75px":"74px"}})}))}))})))))))}var U=v,ie=t("zmGA"),Oe=t.n(ie),Te=t("g+eg"),Ke=function(Lt){var St,It,lt,Mt,wt=Lt.user,ue={page:1,per_page:20,total:0,ec_major_school_id:null,ec_year_id:null,sort_by:null,direction:null,id:null},Me=Object(s.useState)(ue),Pe=Object(b.a)(Me,2),ve=Pe[0],Je=Pe[1],Ve=Object(s.useState)([]),Fe=Object(b.a)(Ve,2),ke=Fe[0],He=Fe[1],Ye=Object(s.useState)([]),ze=Object(b.a)(Ye,2),rt=ze[0],ft=ze[1],mt=Object(s.useState)([]),At=Object(b.a)(mt,2),zt=At[0],kt=At[1],Tt=Object(s.useState)([]),Ot=Object(b.a)(Tt,2),dn=Ot[0],ln=Ot[1],Xe=Object(s.useState)([]),Ft=Object(b.a)(Xe,2),gn=Ft[0],ht=Ft[1],Bt=Object(s.useState)(),Ct=Object(b.a)(Bt,2),gt=Ct[0],Rt=Ct[1],jt=Object(s.useState)(),tt=Object(b.a)(jt,2),Ze=tt[0],st=tt[1],Dt=Object(s.useState)([]),un=Object(b.a)(Dt,2),en=un[0],bn=un[1],Sn=Object(s.useState)(!1),Ln=Object(b.a)(Sn,2),In=Ln[0],Mn=Ln[1],Zn=Object(s.useState)([]),_n=Object(b.a)(Zn,2),wn=_n[0],kn=_n[1],ut=Object(s.useState)(!1),se=Object(b.a)(ut,2),Ne=se[0],qe=se[1],at=Object(s.useRef)(),vt=Object(s.useState)(!1),ot=Object(b.a)(vt,2),k=ot[0],Ee=ot[1],fe=Object(s.useState)([]),ge=Object(b.a)(fe,2),Le=ge[0],nt=ge[1],pe=Object(B.h)(),Ce=Object(s.useState)(!1),We=Object(b.a)(Ce,2),Xt=We[0],an=We[1],Yt=Object(s.useState)(!1),Cn=Object(b.a)(Yt,2),tn=Cn[0],Et=Cn[1],Nt=Object(s.useState)(!1),Tn=Object(b.a)(Nt,2),da=Tn[0],Jn=Tn[1],Fa=Object(s.useState)({}),ra=Object(b.a)(Fa,2),En=ra[0],ma=ra[1],Qa=Object(s.useState)([]),Ba=Object(b.a)(Qa,2),Ka=Ba[0],Ya=Ba[1],Za=Object(s.useState)("1"),qn=Object(b.a)(Za,2),ga=qn[0],Wa=qn[1],wa=Object(s.useState)({name:"",filename:"",type:"",className:"",data:"",close:!0,hasMask:!0,style:{position:"fixed",zIndex:9999,background:"rgba(0,0,0,.7)"},monacoEditor:{value:"",language:"",theme:"vs",options:{readOnly:!0}}}),Hn=Object(b.a)(wa,2),Xn=Hn[0],Qn=Hn[1],Aa=Object(s.useState)(!1),ha=Object(b.a)(Aa,2),Ea=ha[0],Da=ha[1],qa=Object(s.useState)(),Ta=Object(b.a)(qa,2),Bn=Ta[0],ba=Ta[1];Object(s.useEffect)(function(){var J;wt!=null&&(J=wt.userInfo)!==null&&J!==void 0&&J.school_id&&za()},[wt==null||((St=wt.userInfo)===null||St===void 0)?void 0:St.school_id]);var Gn=function(){var J=Object(_.a)(r.a.mark(function Be(De){var we;return r.a.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:Te.a.setItem(wt==null||((we=wt.userInfo)===null||we===void 0)?void 0:we.login,[De==null?void 0:De.ec_major_school_id,De==null?void 0:De.ec_year_id]),Ha(De),Na(De),ya(De),ia(De),sa(De),xa(De);case 7:case"end":return Re.stop()}},Be)}));return function(De){return J.apply(this,arguments)}}();function fa(){ln([]),ht([]),st([]),Rt([]),kn([]),ba([]),bn([])}var xa=function(){var J=Object(_.a)(r.a.mark(function Be(De){var we;return r.a.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.next=2,Object(de.a)("/api/ec_years/".concat(De.ec_year_id,"/graduation_subitems.json"),{method:"get"});case 2:we=Re.sent,bn((we==null?void 0:we.graduation_subitems)||[]);case 4:case"end":return Re.stop()}},Be)}));return function(De){return J.apply(this,arguments)}}(),Ha=function(){var J=Object(_.a)(r.a.mark(function Be(De){var we;return r.a.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.next=2,Object(de.a)("/api/ec_years/".concat(De.ec_year_id,"/ec_courses/get_course_teachers.json"),{method:"get",params:De});case 2:we=Re.sent,ln(we==null?void 0:we.data);case 4:case"end":return Re.stop()}},Be)}));return function(De){return J.apply(this,arguments)}}(),Na=function(){var J=Object(_.a)(r.a.mark(function Be(De){var we;return r.a.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.next=2,Object(de.a)("/api/ec_courses/".concat(De.id,"/ec_course_standards.json"),{method:"get",params:{ec_course_id:De==null?void 0:De.id}});case 2:we=Re.sent,ht(we==null?void 0:we.data);case 4:case"end":return Re.stop()}},Be)}));return function(De){return J.apply(this,arguments)}}(),ya=function(){var J=Object(_.a)(r.a.mark(function Be(De){var we;return r.a.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.next=2,Object(de.a)("/api/ec_courses/".concat(De.id,"/course_targets.json"),{method:"get",params:{ec_course_id:De==null?void 0:De.id}});case 2:we=Re.sent,st(we==null?void 0:we.course_targets),Rt(we==null?void 0:we.course_targets);case 5:case"end":return Re.stop()}},Be)}));return function(De){return J.apply(this,arguments)}}(),Oa={onRemove:function(){nt([])},beforeUpload:function(Be){if(console.log(Be),(Be==null?void 0:Be.size)>1024*1024*50)return X.b.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;var De=[];return De.push(Be),nt([].concat(De)),!1},fileList:Le,accept:".xls,.xlsx"},ia=function(){var J=Object(_.a)(r.a.mark(function Be(De){var we;return r.a.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.next=2,Object(de.a)("/api/ec_courses/".concat(De==null?void 0:De.id,"/course_evaluations.json"),{method:"get",params:{ec_course_id:De==null?void 0:De.id}});case 2:we=Re.sent,kn(we==null?void 0:we.course_evaluation_tops);case 4:case"end":return Re.stop()}},Be)}));return function(De){return J.apply(this,arguments)}}(),sa=function(){var J=Object(_.a)(r.a.mark(function Be(De){var we;return r.a.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.next=2,Object(de.a)("/api/ec_courses/".concat(De==null?void 0:De.id,"/evaluations.json"),{method:"get",params:{ec_course_id:De==null?void 0:De.id}});case 2:we=Re.sent,ba(we==null?void 0:we.data);case 4:case"end":return Re.stop()}},Be)}));return function(De){return J.apply(this,arguments)}}(),za=function(){var J=Object(_.a)(r.a.mark(function Be(){var De,we,it,Re,Pt,Ut,$e,An,pt,_t,Qt,hn,cn,xn,ea,jn,ja,$a,ta,Xa,na,La;return r.a.wrap(function(Fn){for(;;)switch(Fn.prev=Fn.next){case 0:return Fn.next=2,Object(de.a)("/api/schools/".concat(wt==null||((De=wt.userInfo)===null||De===void 0)?void 0:De.school_id,"/ec_majors/get_major_list.json"),{method:"get"});case 2:if(jn=Fn.sent,!((jn==null||((we=jn.data)===null||we===void 0)?void 0:we.length)<=0)){Fn.next=7;break}return Et(!0),Je(Object(L.a)({},ve)),Fn.abrupt("return");case 7:return He((jn==null?void 0:jn.data)||[]),ja=Te.a.getItem(wt==null||((it=wt.userInfo)===null||it===void 0)?void 0:it.login),$a=Number(pe==null||((Re=pe.query)===null||Re===void 0)?void 0:Re.ec_major_school_id)||ja[0]||(jn==null||((Pt=jn.data)===null||Pt===void 0||((Ut=Pt[0])===null||Ut===void 0))?void 0:Ut.ec_major_school_id),Fn.next=12,Object(de.a)("/api/ec_major_schools/".concat($a,"/ec_years/get_year_list.json"),{method:"get"});case 12:if(ta=Fn.sent,!((ta==null||(($e=ta.data)===null||$e===void 0)?void 0:$e.length)<=0)){Fn.next=18;break}return Et(!0),ve.ec_year_id="",Je(Object(L.a)({},ve)),Fn.abrupt("return");case 18:return ft((ta==null?void 0:ta.data)||[]),Xa=Number(pe==null||((An=pe.query)===null||An===void 0)?void 0:An.ec_year_id)||ja[1]||(ta==null||((pt=ta.data)===null||pt===void 0||((_t=pt[0])===null||_t===void 0))?void 0:_t.ec_year_id),Fn.next=22,Object(de.a)("/api/ec_years/".concat(Xa,"/ec_courses/get_courses.json"),{method:"get"});case 22:return na=Fn.sent,kt((na==null?void 0:na.data)||[]),Fn.next=26,Object(de.a)("/api/ec_years/".concat(Xa,"/graduation_subitems.json"),{method:"get"});case 26:if(La=Fn.sent,ve.ec_major_school_id=$a,ve.ec_year_id=Xa,ve.id=pe!=null&&(Qt=pe.query)!==null&&Qt!==void 0&&Qt.course?Number(pe==null||((hn=pe.query)===null||hn===void 0)?void 0:hn.course):na==null||((cn=na.data)===null||cn===void 0||((xn=cn[0])===null||xn===void 0))?void 0:xn.id,!((na==null||((ea=na.data)===null||ea===void 0)?void 0:ea.length)<=0)){Fn.next=35;break}return Et(!0),Fn.abrupt("return");case 35:Et(!1);case 36:bn((La==null?void 0:La.graduation_subitems)||[]),Je(ve),Gn(ve),console.log("ec_major_school_id",$a);case 40:case"end":return Fn.stop()}},Be)}));return function(){return J.apply(this,arguments)}}(),Va=function(){var J=Object(_.a)(r.a.mark(function Be(De){var we,it,Re,Pt,Ut,$e;return r.a.wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:return pt.next=2,Object(de.a)("/api/ec_major_schools/".concat(De,"/ec_years/get_year_list.json"),{method:"get"});case 2:if($e=pt.sent,!(($e==null||((we=$e.data)===null||we===void 0)?void 0:we.length)<=0)){pt.next=10;break}return Et(!0),ve.ec_year_id="",Je(Object(L.a)({},ve)),pt.abrupt("return");case 10:Et(!1);case 11:ve.ec_major_school_id=De,ve.ec_year_id=$e==null||((it=$e.data)===null||it===void 0||((Re=it[0])===null||Re===void 0))?void 0:Re.ec_year_id,ft(($e==null?void 0:$e.data)||[]),Je(ve),pa($e==null||((Pt=$e.data)===null||Pt===void 0||((Ut=Pt[0])===null||Ut===void 0))?void 0:Ut.ec_year_id);case 16:case"end":return pt.stop()}},Be)}));return function(De){return J.apply(this,arguments)}}(),pa=function(){var J=Object(_.a)(r.a.mark(function Be(De){var we,it,Re,Pt;return r.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.next=2,Object(de.a)("/api/ec_years/".concat(De,"/ec_courses/get_courses.json"),{method:"get"});case 2:if(Pt=$e.sent,!((Pt==null||((we=Pt.data)===null||we===void 0)?void 0:we.length)<=0)){$e.next=11;break}return Et(!0),ve.id="",Je(Object(L.a)({},ve)),fa(),$e.abrupt("return");case 11:Et(!1);case 12:ve.ec_year_id=De,ve.id=Pt==null||((it=Pt.data)===null||it===void 0||((Re=it[0])===null||Re===void 0))?void 0:Re.id,kt((Pt==null?void 0:Pt.data)||[]),Je(ve),Gn(ve);case 17:case"end":return $e.stop()}},Be)}));return function(De){return J.apply(this,arguments)}}(),Ra=function(){var J=Object(_.a)(r.a.mark(function Be(De){var we;return r.a.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.next=2,Object(de.a)("/api/ec_years/1/ec_courses/get_formulas.json",{method:"get",params:{ec_course_id:De}});case 2:we=Re.sent,Je(ve),ma(we);case 5:case"end":return Re.stop()}},Be)}));return function(De){return J.apply(this,arguments)}}(),_a=function(Be,De){if(ve.page=1,ve[De]=Be,De==="ec_major_school_id"){Va(Be);return}De==="ec_year_id"&&(Je(Object(L.a)({},ve)),pa(Be)),De==="id"&&(Je(Object(L.a)({},ve)),Gn(ve))},Ua={beforeUpload:function(){var J=Object(_.a)(r.a.mark(function De(we){var it,Re;return r.a.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:if(console.log(we),!((we==null?void 0:we.size)>1024*1024*50)){Ut.next=4;break}return X.b.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),Ut.abrupt("return",!1);case 4:return it=new FormData,it.append("file",we),Ut.next=8,Object(de.a)("/api/ec_courses/".concat(ve==null?void 0:ve.id,"/ec_course_standards.json"),{method:"post",body:it},!0);case 8:return Re=Ut.sent,Na(ve),sa(ve),Ut.abrupt("return",!1);case 12:case"end":return Ut.stop()}},De)}));function Be(De){return J.apply(this,arguments)}return Be}(),fileList:[]};return e.a.createElement("div",{className:p.a.wrap},e.a.createElement("div",{className:p.a.title},"\u8BFE\u7A0B\u8BBE\u7F6E"),e.a.createElement("div",{style:{clear:"both",marginTop:"40px"}}),e.a.createElement("div",{className:p.a.control},e.a.createElement("div",{className:p.a.label},"\u8BA4\u8BC1\u4E13\u4E1A"),e.a.createElement(f.a,{style:{width:240},placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A",value:ve==null?void 0:ve.ec_major_school_id,onChange:function(Be){return _a(Be,"ec_major_school_id")}},ke==null?void 0:ke.map(function(J){return e.a.createElement(f.a.Option,{value:J.ec_major_school_id},J.name)})),e.a.createElement("div",{className:p.a.label},"\u8BA4\u8BC1\u5C4A\u522B"),e.a.createElement(f.a,{disabled:tn&&rt.length<=0,style:{width:140},placeholder:"\u8BF7\u9009\u62E9\u5C4A\u522B",value:ve==null?void 0:ve.ec_year_id,onChange:function(Be){return _a(Be,"ec_year_id")}},rt==null?void 0:rt.map(function(J){return e.a.createElement(f.a.Option,{value:J.ec_year_id},J.year)})),e.a.createElement("div",{className:p.a.label},"\u8BFE\u7A0B"),e.a.createElement(f.a,{disabled:tn,style:{width:140},placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B",value:ve==null?void 0:ve.id,onChange:function(Be){return _a(Be,"id")}},zt==null?void 0:zt.map(function(J){return e.a.createElement(f.a.Option,{value:J.id},J.name)}))),e.a.createElement("div",{className:p.a.title},"\u8BFE\u7A0B\u6559\u5E08"),e.a.createElement("div",{className:p.a.teachcount,style:{display:"flex",marginTop:20,marginBottom:16}},dn==null?void 0:dn.map(function(J,Be){return e.a.createElement("div",{style:{display:"flex",marginLeft:Be===0?"20px":"47px"}},e.a.createElement("img",{src:Oe.a,style:{width:"50px",height:"50px",borderRadius:"50%",zIndex:0}}),e.a.createElement("div",{style:{marginLeft:"8px"}},e.a.createElement("p",{style:{marginBottom:"0px"}},J.name),e.a.createElement("p",{style:{marginTop:"10px",height:"22px",borderRadius:"0px 12px 12px 0px",background:"#DFEAFF",marginLeft:"-30px",lineHeight:"22px",paddingLeft:32,display:"inline-block",paddingRight:16,color:"#0152D9"}},J.pro)))})),e.a.createElement("div",{style:{height:"20px",background:"#fafafa"}}),e.a.createElement("div",{className:p.a.title,style:{display:"flex",justifyContent:"space-between"}},"\u8BFE\u7A0B\u6807\u51C6",e.a.createElement("span",null,e.a.createElement(G.a,Ua,e.a.createElement(w.a,{disabled:tn,type:"primary",style:{marginRight:"20px"},onClick:function(){}},e.a.createElement("i",{style:{marginRight:"8px"},className:"iconfont icon-shangchuan3"})," \u4E0A\u4F20\u8BFE\u7A0B\u6807\u51C6")))),e.a.createElement("div",{className:p.a.teachcount},e.a.createElement(j.a,{style:{marginTop:"20px",marginBottom:20,padding:"0px 20px"},dataSource:gn,pagination:!1,columns:[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",render:function(Be,De,we){return ve.per_page*(ve.page-1)+we+1}},{title:"\u6587\u4EF6\u540D\u79F0",dataIndex:"name",width:"50%",key:"name"},{title:"\u4E0A\u4F20\u65F6\u95F4",dataIndex:"created_at",key:"created_at"},{title:"\u64CD\u4F5C",dataIndex:"id",key:"id",render:function(Be,De,we){return e.a.createElement("div",null,e.a.createElement("i",{onClick:function(){console.log(Be,De,we);var Re=["office","pdf","image","other","video","audio","download"];if(!Re.includes(De.file_type)){X.b.info("\u5F53\u524D\u7C7B\u578B\u6682\u4E0D\u652F\u6301\u9884\u89C8");return}Qn(Object(L.a)(Object(L.a)({},Xn),{},{filename:De.name,type:De.file_type,data:Ae.a.API_SERVER+De.url}))},style:{marginRight:"5px",color:"#0152d9",cursor:"pointer"},className:"iconfont icon-chakansvg"}),e.a.createElement("i",{onClick:function(){ee.a.confirm({title:"\u786E\u8BA4\u662F\u5426\u5220\u9664\uFF1F",icon:e.a.createElement(be.a,null),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){var Re=Object(_.a)(r.a.mark(function Ut(){var $e;return r.a.wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:return pt.next=2,Object(de.a)("/api/ec_courses/".concat(ve==null?void 0:ve.id,"/ec_course_standards/").concat(Be),{method:"delete"});case 2:$e=pt.sent,$e&&(X.b.info("\u5220\u9664\u6210\u529F"),Gn(ve));case 4:case"end":return pt.stop()}},Ut)}));function Pt(){return Re.apply(this,arguments)}return Pt}(),onCancel:function(){}})},style:{marginRight:"5px",color:"#0152d9",cursor:"pointer"},className:"iconfont icon-shanchu9 pl10"}))}}]})),e.a.createElement("div",{style:{height:"20px",background:"#fafafa"}}),e.a.createElement("div",{className:p.a.title,style:{display:"flex",justifyContent:"space-between"}},"\u8BFE\u7A0B\u76EE\u6807",e.a.createElement("span",null,e.a.createElement(w.a,{disabled:tn,type:"primary",style:{marginRight:"20px"},onClick:Object(_.a)(r.a.mark(function J(){var Be;return r.a.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return we.next=2,ya(ve);case 2:(gt==null?void 0:gt.length)<=0&&(Be={id:0,content:"",weight:"",standard_grade:"",graduation_subitem_ids:[""]},gt.push(Be),Rt(Object(n.a)(gt))),Mn(!0);case 4:case"end":return we.stop()}},J)}))},e.a.createElement("i",{style:{marginRight:"8px"},className:"iconfont icon-bianji7"})," \u7F16\u8F91\u8BFE\u7A0B\u76EE\u6807"))),e.a.createElement("div",{className:p.a.teachcount},e.a.createElement(j.a,{style:{marginTop:"20px",marginBottom:20,padding:"0px 20px"},dataSource:Ze,bordered:!0,pagination:!1,columns:[{title:"\u5206\u9879",dataIndex:"name",key:"name",render:function(Be,De,we){return ve.per_page*(ve.page-1)+we+1}},{title:"\u8BFE\u7A0B\u76EE\u6807",dataIndex:"content",width:"40%",key:"content"},{title:"\u6743\u91CD",dataIndex:"weight",key:"weight"},{title:"\u8FBE\u6210\u5206\u503C",dataIndex:"standard_grade",key:"standard_grade"},{title:"\u5BF9\u5E94\u6BD5\u4E1A\u8981\u6C42\u6307\u6807\u70B9",dataIndex:"graduation_subitem",key:"graduation_subitem",render:function(Be,De,we){return e.a.createElement("div",null,e.a.createElement(i.b,{itemLayout:"horizontal",dataSource:Be,renderItem:function(Re){return e.a.createElement(i.b.Item,null,e.a.createElement(i.b.Item.Meta,{style:{fontSize:14},description:"\u6307\u6807\u70B9"+(Re==null?void 0:Re.index)+"\uFF1A"+(Re==null?void 0:Re.content)}))}}))}}]})),e.a.createElement("div",{style:{height:"20px",background:"#fafafa"}}),e.a.createElement("div",{className:p.a.title,style:{display:"flex",justifyContent:"space-between"}},"\u8003\u6838\u65B9\u5F0F\u4E0E\u6570\u636E\u6765\u6E90",e.a.createElement("span",null,e.a.createElement(w.a,{disabled:tn,type:"primary",style:{marginRight:"20px"},onClick:function(){at.current="",qe(!0)}},e.a.createElement("i",{style:{marginRight:"8px"},className:"iconfont icon-tianjiatimu"})," \u6DFB\u52A0\u8BFE\u5802\u6570\u636E"),e.a.createElement(w.a,{disabled:tn,style:{marginRight:"20px"},onClick:function(){at.current="",Ee(!0)}},e.a.createElement("i",{style:{marginRight:"8px"},className:"iconfont icon-piliangdaoru"})," \u5BFC\u5165\u6570\u636E"))),e.a.createElement("div",{className:p.a.teachcount},!wn&&e.a.createElement(ae.a,null),wn&&e.a.createElement("div",{style:{padding:"0px 20px",marginBottom:"20px",fontSize:"14px"}},e.a.createElement("div",{style:{display:"flex",background:"#F5F5F5",height:"58px",border:"1px solid #E0E2EC",marginTop:"20px"}},e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"8%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u6570\u636E\u6765\u6E90"),e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"24%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u6559\u5B66\u8BFE\u5802/\u6570\u636E\u6587\u4EF6"),e.a.createElement("div",{style:{height:"100%",width:"42%",display:"flex",flexShrink:0,borderRight:"1px solid #E0E2EC"}},e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"30%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u8003\u6838\u65B9\u5F0F"),e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"56%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u8003\u6838\u5185\u5BB9"),e.a.createElement("div",{style:{width:"14%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u6EE1\u5206\u503C")),e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"6%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u72B6\u6001"),e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"10%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u540C\u6B65/\u5BFC\u5165\u65F6\u95F4"),e.a.createElement("div",{style:{width:"10%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u64CD\u4F5C")),e.a.createElement("div",{style:{border:"1px solid #E0E2EC",marginTop:-1}},wn==null?void 0:wn.map(function(J){var Be,De,we,it,Re,Pt,Ut;return e.a.createElement("div",{style:{display:"flex",width:"100%"}},e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"8%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},J==null?void 0:J.name),e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"24%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},(J==null?void 0:J.name)==="\u5BFC\u5165\u6570\u636E"&&e.a.createElement("a",{href:Ae.a.API_SERVER+"/api/ec_courses/1/course_evaluations/download?id=".concat(J==null||((Be=J.contents)===null||Be===void 0||((De=Be[0])===null||De===void 0))?void 0:De.attachment_id)},J==null||((we=J.contents)===null||we===void 0||((it=we[0])===null||it===void 0))?void 0:it.content),(J==null?void 0:J.name)==="\u5173\u8054\u8BFE\u5802"&&(J==null||((Re=J.contents)===null||Re===void 0)?void 0:Re.map(function($e){return e.a.createElement("a",{style:{display:"flex"},href:$e==null?void 0:$e.first_category_url,target:"_blank"},$e==null?void 0:$e.content)}))),e.a.createElement("div",{style:{height:"100%",width:"42%",display:"flex",flexShrink:0,borderRight:"1px solid #E0E2EC",flexDirection:"column"}},(J==null||((Pt=J.evaluation_methods)===null||Pt===void 0)?void 0:Pt.length)<=0&&e.a.createElement("div",{style:{height:"100%",width:"42%",display:"flex",flexShrink:0,borderRight:"1px solid #E0E2EC"}},e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"30%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"--"),e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"56%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"--"),e.a.createElement("div",{style:{width:"14%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"--")),J==null||((Ut=J.evaluation_methods)===null||Ut===void 0)?void 0:Ut.map(function($e,An){var pt,_t,Qt,hn,cn;return e.a.createElement("div",{style:{width:"100%",display:"flex",flexShrink:0}},e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"30%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",borderBottom:!(An===(J==null||((pt=J.evaluation_methods)===null||pt===void 0)?void 0:pt.length)-1)&&"1px solid #E0E2EC"}},$e==null?void 0:$e.work_name),e.a.createElement("div",{style:{width:"56%"}},($e==null||((_t=$e.subitems)===null||_t===void 0)?void 0:_t.length)<=0&&e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:30}},"--"),$e==null||((Qt=$e.evaluation_method_contents)===null||Qt===void 0)?void 0:Qt.map(function(xn,ea){var jn;return e.a.createElement(u.a,{title:xn==null?void 0:xn.name},e.a.createElement("div",{className:p.a.textone,style:{borderRight:"1px solid #E0E2EC",borderBottom:!(An===(J==null||((jn=J.evaluation_methods)===null||jn===void 0)?void 0:jn.length)-1&&ea===($e==null?void 0:$e.evaluation_method_contents.length)-1)&&"1px solid #E0E2EC",marginTop:-1,lineHeight:"30px",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:30,paddingLeft:"5px"}},xn==null?void 0:xn.name))})),e.a.createElement("div",{style:{width:"14%"}},($e==null||((hn=$e.subitems)===null||hn===void 0)?void 0:hn.length)<=0&&e.a.createElement("div",{style:{borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:30}},"--"),$e==null||((cn=$e.evaluation_method_contents)===null||cn===void 0)?void 0:cn.map(function(xn,ea){var jn;return e.a.createElement(u.a,{title:xn==null?void 0:xn.name},e.a.createElement("div",{className:p.a.textone,style:{borderBottom:!(An===(J==null||((jn=J.evaluation_methods)===null||jn===void 0)?void 0:jn.length)-1&&ea===($e==null?void 0:$e.evaluation_method_contents.length)-1)&&"1px solid #E0E2EC",marginTop:-1,lineHeight:"30px",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:30,paddingLeft:"5px"}},xn==null?void 0:xn.score))})))})),e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"6%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",color:"#07C160"}},J==null?void 0:J.status),e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"10%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},J==null?void 0:J.update_at),e.a.createElement("div",{style:{width:"10%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},(J==null?void 0:J.status)!="\u5DF2\u5BFC\u5165"&&e.a.createElement("i",{onClick:Object(_.a)(r.a.mark(function $e(){var An;return r.a.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return _t.next=2,Object(de.a)("/api/ec_courses/".concat(ve.id,"/course_evaluations/update_online_data.json"),{method:"get",params:{id:J.id}});case 2:An=_t.sent,An&&(X.b.info("\u540C\u6B65\u6210\u529F"),Gn(ve));case 4:case"end":return _t.stop()}},$e)})),style:{marginRight:"15px",color:"#0152d9",cursor:"pointer"},className:"iconfont icon-tongbushuju"}),e.a.createElement("i",{onClick:function(){ee.a.confirm({title:"\u786E\u8BA4\u662F\u5426\u5220\u9664\uFF1F",icon:e.a.createElement(be.a,null),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){var An=Object(_.a)(r.a.mark(function _t(){var Qt;return r.a.wrap(function(cn){for(;;)switch(cn.prev=cn.next){case 0:return cn.next=2,Object(de.a)("/api/ec_courses/".concat(ve.id,"/course_evaluations/deletes.json"),{method:"delete",body:{id:J.id}});case 2:Qt=cn.sent,Qt&&(X.b.info("\u5220\u9664\u6210\u529F"),Gn(ve));case 4:case"end":return cn.stop()}},_t)}));function pt(){return An.apply(this,arguments)}return pt}(),onCancel:function(){}})},style:{marginRight:"15px",color:"#0152d9",cursor:"pointer"},className:"iconfont icon-shanchu9"}),e.a.createElement("i",{onClick:function(){at.current=J.id,(J==null?void 0:J.status)!="\u5DF2\u5BFC\u5165"?(Ya(J),qe(!0)):Ee(!0)},style:{marginRight:"5px",color:"#0152d9",cursor:"pointer"},className:"iconfont icon-bianji8"})))})))),e.a.createElement("div",{style:{height:"20px",background:"#fafafa"}}),e.a.createElement("div",{className:p.a.title,style:{display:"flex",justifyContent:"space-between"}},"\u8BFE\u7A0B\u76EE\u6807\u8FBE\u6210\u5EA6",e.a.createElement("span",null,e.a.createElement(w.a,{disabled:tn,style:{marginRight:"20px"},onClick:function(){Da(!0)}},e.a.createElement("i",{style:{marginRight:"8px"},className:"iconfont icon-kechengshezhi"})," \u8BBE\u7F6E\u8003\u6838\u5360\u6BD4"),e.a.createElement(w.a,{disabled:tn,style:{marginRight:"20px"},onClick:function(){Ra(ve.id),Jn(!0)}},e.a.createElement("i",{style:{marginRight:"8px"},className:"iconfont icon-jisuangongshi"})," \u8BBE\u7F6E\u8BA1\u7B97\u516C\u5F0F"),e.a.createElement(w.a,{type:"primary",disabled:tn,style:{marginRight:"20px"},onClick:Object(_.a)(r.a.mark(function J(){var Be;return r.a.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return we.next=2,Object(de.a)("/api/ec_courses/".concat(ve.id,"/evaluations/evaluation_data.json"),{method:"post"});case 2:Be=we.sent,Be&&(X.b.info("\u8BA1\u7B97\u5B8C\u6210"),sa(ve));case 4:case"end":return we.stop()}},J)}))},e.a.createElement("i",{style:{marginRight:"8px"},className:"iconfont icon-jisuan"})," \u8BA1\u7B97"))),e.a.createElement("div",{style:{padding:"0px 20px"},className:p.a.teachcount},!Bn&&e.a.createElement(ae.a,null),Bn&&e.a.createElement("div",{style:{fontSize:"14px"}},e.a.createElement("div",{style:{display:"flex",background:"#F5F5F5",height:"58px",border:"1px solid #E0E2EC",marginTop:"20px"}},e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"4%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u5206\u9879"),e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"15%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u8BFE\u7A0B\u76EE\u6807"),e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"3%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u6743\u91CD"),e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"9%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u5BF9\u5E94\u6BD5\u4E1A\u8981\u6C42\u6307\u6807\u70B9"),e.a.createElement("div",{style:{height:"100%",width:"40%",display:"flex",flexDirection:"column",flexShrink:0,borderRight:"1px solid #E0E2EC"}},e.a.createElement("div",{style:{width:"100%",display:"flex",flexShrink:0,height:"100%"}},e.a.createElement("div",{style:{width:"30%",borderRight:"1px solid #E0E2EC",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column"}},"\u8003\u6838\u65B9\u5F0F"),e.a.createElement("div",{style:{width:"12.5%",borderRight:"1px solid #E0E2EC",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",textAlign:"center"}},"\u8003\u6838\u65B9\u5F0F\u5360\u6BD4"),e.a.createElement("div",{style:{width:"45%",height:"100%"}},e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:"100%"}},"\u8003\u6838\u5185\u5BB9")),e.a.createElement("div",{style:{width:"12.5%",height:"100%"}},e.a.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:"100%",textAlign:"center"}},"\u8003\u6838\u5185\u5BB9\u5360\u6BD4")))),e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"8%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",textAlignLast:"center"}},"\u8FBE\u6210\u5206\u503C\uFF08\u767E\u5206\u5236\uFF09"),e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"7%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",textAlignLast:"center"}},"\u5B9E\u9645\u5206\u503C\uFF08\u767E\u5206\u5236\uFF09"),e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"6%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u8BC4\u4EF7\u7ED3\u679C"),e.a.createElement("div",{style:{width:"8%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u8BA1\u7B97\u65F6\u95F4")),e.a.createElement("div",{style:{borderLeft:"1px solid #E0E2EC"}},Bn==null||((It=Bn.ec_course_target)===null||It===void 0)?void 0:It.map(function(J,Be){var De,we,it,Re,Pt,Ut;return e.a.createElement("div",{style:{height:"100%",display:"flex"}},e.a.createElement("div",{style:{width:"4%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},Be+1),e.a.createElement("div",{className:p.a.textone,style:{width:"15%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,alignItems:"center",justifyContent:"center",flexShrink:0,maxHeight:(J==null||((De=J.evaluation)===null||De===void 0)?void 0:De.length)<=0&&43,lineHeight:(J==null||((we=J.evaluation)===null||we===void 0)?void 0:we.length)<=0&&"43px",display:(J==null||((it=J.evaluation)===null||it===void 0)?void 0:it.length)!=0&&"flex",paddingLeft:10}},e.a.createElement(u.a,{title:J.content},J.content)),e.a.createElement("div",{style:{width:"3%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},J.weights),e.a.createElement("div",{style:{width:"9%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},J==null||((Re=J.graduation_subitem)===null||Re===void 0)?void 0:Re.map(function($e){return $e.name}).toString()),e.a.createElement("div",{style:{height:"100%",width:"40%",display:"flex",flexDirection:"column",flexShrink:0,borderRight:"1px solid #E0E2EC"}},(J==null||((Pt=J.evaluation)===null||Pt===void 0)?void 0:Pt.length)<=0&&e.a.createElement("div",{style:{width:"100%",display:"flex",flexShrink:0}},e.a.createElement("div",{style:{width:"30%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column"}},"--"),e.a.createElement("div",{style:{width:"12.6%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column"}},"--"),e.a.createElement("div",{style:{width:"45.3%"}},e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:43}},"--")),e.a.createElement("div",{style:{width:"12.5%"}},e.a.createElement("div",{style:{borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:43}},"--"))),J==null||((Ut=J.evaluation)===null||Ut===void 0)?void 0:Ut.map(function($e,An){var pt,_t,Qt,hn;return e.a.createElement("div",{style:{width:"100%",display:"flex",flexShrink:0}},e.a.createElement("div",{style:{width:"30%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},($e==null?void 0:$e.work_name)||"--"),e.a.createElement("div",{style:{width:"12.5%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},($e==null?void 0:$e.weight)||"--"),e.a.createElement("div",{style:{width:"45%"}},($e==null||((pt=$e.subitems)===null||pt===void 0)?void 0:pt.length)<=0&&e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,height:43}},"--"),$e==null||((_t=$e.subitems)===null||_t===void 0)?void 0:_t.map(function(cn,xn){return e.a.createElement(u.a,{title:cn==null?void 0:cn.name},e.a.createElement("div",{className:p.a.textone,style:{borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,lineHeight:"43px",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:43,paddingLeft:"5px"}},cn==null?void 0:cn.name))})),e.a.createElement("div",{style:{width:"12.5%"}},($e==null||((Qt=$e.subitems)===null||Qt===void 0)?void 0:Qt.length)<=0&&e.a.createElement("div",{style:{borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:43}},"--"),$e==null||((hn=$e.subitems)===null||hn===void 0)?void 0:hn.map(function(cn,xn){return e.a.createElement("div",{style:{borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:43}},cn==null?void 0:cn.weight)})))})),e.a.createElement("div",{style:{width:"8%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},J==null?void 0:J.standard_grade),e.a.createElement("div",{style:{width:"7%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},J==null?void 0:J.actual_grade),e.a.createElement("div",{style:{width:"6%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,color:J!=null&&J.statue?"#07C160":"#E30000"}},J!=null&&J.status?"\u8FBE\u6210":"\u672A\u8FBE\u6210"),e.a.createElement("div",{style:{width:"8%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,textAlign:"center"}},Bn==null?void 0:Bn.evaluation_time))})),e.a.createElement("div",{style:{display:"flex",height:"58px",border:"1px solid #E0E2EC",marginTop:-1}},e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"4%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u603B\u5206"),e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"75%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}}),e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"7%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},Bn==null?void 0:Bn.total_score)))),e.a.createElement(I,{courseId:at.current,isshow:Ne,setishow:qe,items:Ka,modalparams:ve,getevaluations:sa,getcourse_evaluations:ia}),e.a.createElement(U,{isshow:Ea,setishow:Da,modalparams:ve,getcourse_evaluations:sa}),e.a.createElement(ee.a,{title:"\u7F16\u8F91\u8BFE\u7A0B\u76EE\u6807",visible:In,wrapClassName:p.a.modalWrapContainer,width:918,okText:"\u4FDD\u5B58",onOk:Object(_.a)(r.a.mark(function J(){var Be;return r.a.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:if(!((gt==null?void 0:gt.filter(function(it){var Re,Pt;return!it.content||!it.weight||!it.standard_grade||(it==null||((Re=it.graduation_subitem_ids)===null||Re===void 0)?void 0:Re.length)<=0||(it==null||((Pt=it.graduation_subitem_ids)===null||Pt===void 0)?void 0:Pt.filter(function(Ut){return!Ut}).length)>0}).length)>0)){we.next=3;break}return X.b.info("\u8BF7\u586B\u5199\u6216\u5220\u9664\u6CA1\u6709\u586B\u5165\u6570\u503C\u7684\u6570\u636E"),we.abrupt("return");case 3:return we.next=5,Object(de.a)("/api/ec_courses/".concat(ve==null?void 0:ve.id,"/course_targets"),{method:"POST",body:{course_targets:gt}});case 5:Be=we.sent,(Be==null?void 0:Be.status)===0&&(Mn(!1),ya(ve),sa(ve));case 7:case"end":return we.stop()}},J)})),onCancel:function(){Mn(!1),ya(ve)}},e.a.createElement("div",{style:{color:"#464F66",fontSize:14,paddingLeft:40,paddingBottom:12}},e.a.createElement("div",null,"\u8BF4\u660E\uFF1A"),e.a.createElement("div",null,"1.\u8BFE\u7A0B\u76EE\u6807\u7684\u6743\u91CD\u4E4B\u548C\u5E94\u7B49\u4E8E1\uFF1B",e.a.createElement("br",null),"2.\u53EF\u5728\u8BBE\u7F6E\u8BFE\u7A0B\u8FBE\u6210\u5EA6\u8BA1\u7B97\u516C\u5F0F\u65F6\uFF0C\u9009\u62E9\u662F\u5426\u5C06\u8BFE\u7A0B\u76EE\u6807\u7684\u6743\u91CD\u53C2\u4E0E\u5230\u8BA1\u7B97\u4E2D\u3002")),e.a.createElement("div",{style:{display:"flex",background:"#F5F5F5",height:"38px",alignItems:"center",padding:"0px 10px"}},e.a.createElement("span",{style:{flex:1}},"\u5206\u9879"),e.a.createElement("span",{style:{flex:3}},e.a.createElement("span",{style:{color:"#EE0A24",marginRight:"5px"}},"*"),"\u8BFE\u7A0B\u76EE\u6807"),e.a.createElement("span",{style:{flex:2}},e.a.createElement("span",{style:{color:"#EE0A24",marginRight:"5px"}},"*"),"\u6743\u91CD"),e.a.createElement("span",{style:{flex:2}},e.a.createElement("span",{style:{color:"#EE0A24",marginRight:"5px"}},"*"),"\u8FBE\u6210\u5206\u503C\uFF08\u5206\uFF09")),gt==null?void 0:gt.map(function(J,Be){var De;return e.a.createElement("div",null,e.a.createElement("div",{style:{display:"flex",background:"#EEF2F8",height:"62px",alignItems:"center",padding:"0px 10px"}},e.a.createElement("span",{style:{flex:1}},Be+1),e.a.createElement("span",{style:{flex:3,padding:"0px 10px"}},e.a.createElement(x.a,{onChange:function(it){J.content=it.target.value,Rt(Object(n.a)(gt))},value:J==null?void 0:J.content})),e.a.createElement("span",{style:{flex:2}},e.a.createElement(d.a,{min:0,max:1,step:.1,onChange:function(it){J.weight=it,Rt(Object(n.a)(gt))},value:J==null?void 0:J.weight})),e.a.createElement("span",{style:{flex:2}},e.a.createElement(d.a,{min:0,max:100,onChange:function(it){J.standard_grade=it,Rt(Object(n.a)(gt))},value:J==null?void 0:J.standard_grade}),e.a.createElement(u.a,{title:"\u65B0\u589E\u8BFE\u7A0B\u76EE\u6807"},e.a.createElement("i",{style:{color:"#0152D9",cursor:"pointer",marginLeft:"10px"},className:"iconfont icon-xinzeng",onClick:Object(_.a)(r.a.mark(function we(){var it;return r.a.wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:it={id:0,content:"",weight:"",standard_grade:"",graduation_subitem_ids:[""]},gt.push(it),Rt(Object(n.a)(gt));case 3:case"end":return Pt.stop()}},we)}))})),Be!==0&&e.a.createElement(u.a,{title:"\u5220\u9664"},e.a.createElement("i",{onClick:Object(_.a)(r.a.mark(function we(){return r.a.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:gt.splice(Be,1),Rt(Object(n.a)(gt));case 2:case"end":return Re.stop()}},we)})),style:{color:"#0152D9",cursor:"pointer",marginLeft:"10px"},className:"iconfont icon-shanchu9"})))),e.a.createElement("div",{style:{display:"flex",padding:"0px 10px"}},e.a.createElement("span",{style:{flex:1}}),e.a.createElement("span",{style:{flex:3}}," ",e.a.createElement("span",{style:{color:"#EE0A24",marginRight:"5px"}},"*")," ","\u5BF9\u5E94\u6BD5\u4E1A\u8981\u6C42\u6307\u6807\u70B9"," "),e.a.createElement("span",{style:{flex:2}}),e.a.createElement("span",{style:{flex:2}})),J==null||((De=J.graduation_subitem_ids)===null||De===void 0)?void 0:De.map(function(we,it){return e.a.createElement("div",{style:{display:"flex",height:"40px",alignItems:"center",padding:"0px 10px"}},e.a.createElement("span",{style:{flex:1}}),e.a.createElement("span",{style:{flex:3,display:"flex",alignItems:"center"}},e.a.createElement(f.a,{value:we,getPopupContainer:function(Pt){return Pt.parentNode},onChange:function(Pt){J.graduation_subitem_ids[it]=Pt,Rt(Object(n.a)(gt))},style:{width:"320px"}},en==null?void 0:en.map(function(Re,Pt){return e.a.createElement(f.a.Option,{disabled:J.graduation_subitem_ids.includes(Re==null?void 0:Re.id),value:Re==null?void 0:Re.id,title:"\u6307\u6807\u70B9"+(Re==null?void 0:Re.index)+"\uFF1A"+(Re==null?void 0:Re.content)},"\u6307\u6807\u70B9",Re==null?void 0:Re.index,"\uFF1A",Re==null?void 0:Re.content)})),e.a.createElement(u.a,{title:"\u65B0\u589E\u6307\u6807\u70B9"},e.a.createElement("i",{style:{color:"#0152D9",cursor:"pointer",marginLeft:"10px"},className:"iconfont icon-xinzeng",onClick:Object(_.a)(r.a.mark(function Re(){return r.a.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:J==null||J.graduation_subitem_ids.push(""),Rt(Object(n.a)(gt));case 2:case"end":return Ut.stop()}},Re)}))})),it!==0&&e.a.createElement(u.a,{title:"\u5220\u9664"},e.a.createElement("i",{onClick:Object(_.a)(r.a.mark(function Re(){return r.a.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:J.graduation_subitem_ids.splice(it,1),Rt(Object(n.a)(gt));case 2:case"end":return Ut.stop()}},Re)})),style:{color:"#0152D9",cursor:"pointer",marginLeft:"10px"},className:"iconfont icon-shanchu9"}))),e.a.createElement("span",{style:{flex:2}}),e.a.createElement("span",{style:{flex:1}}))}))})),e.a.createElement(ee.a,{title:"\u8BBE\u7F6E\u8BA1\u7B97\u516C\u5F0F",visible:da,width:918,className:p.a.modalWrapContainer,onCancel:function(){Jn(!1)},onOk:Object(_.a)(r.a.mark(function J(){var Be,De,we,it,Re;return r.a.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:return Ut.next=2,Object(de.a)("/api/ec_years/1/ec_courses/save_formulas.json",{method:"post",body:{ec_course_id:ve.id,ec_course_target_formula_id:En==null||((Be=En.ec_course_target_formulas.filter(function($e){return $e.checked}))===null||Be===void 0||((De=Be[0])===null||De===void 0))?void 0:De.id,ec_course_formula_id:En==null||((we=En.ec_course_formulas.filter(function($e){return $e.checked}))===null||we===void 0||((it=we[0])===null||it===void 0))?void 0:it.id}});case 2:Re=Ut.sent,Re&&(Jn(!1),Ra(ve.id));case 4:case"end":return Ut.stop()}},J)}))},e.a.createElement("div",{style:{padding:"16px 40px"}},e.a.createElement(M.a,{activeKey:ga,onChange:function(Be){Wa(Be)}},e.a.createElement(M.a.TabPane,{key:1,tab:"\u8BFE\u7A0B\u76EE\u6807\u5B9E\u9645\u5206\u503C"}),e.a.createElement(M.a.TabPane,{key:2,tab:"\u8BFE\u7A0B\u603B\u5206"}))),ga==="1"&&e.a.createElement("div",null,e.a.createElement("div",{style:{display:"flex",height:38,background:"#F5F5F5",lineHeight:"38px",padding:"0px 40px"}},e.a.createElement("span",{style:{flex:1,marginRight:"30px"}},"\u8BFE\u7A0B\u76EE\u6807\u5B9E\u9645\u5206\u503C\u8BA1\u7B97\u516C\u5F0F"),e.a.createElement("span",{style:{width:185}},"\u64CD\u4F5C")),En==null||((lt=En.ec_course_target_formulas)===null||lt===void 0)?void 0:lt.map(function(J,Be){return e.a.createElement("div",{style:{display:"flex",padding:"20px 40px"}},(J==null?void 0:J.checked)&&e.a.createElement("span",{style:{width:"40px",borderRadius:"2px",color:"#0152D9",border:"1px solid #0152D9",display:"inline-flex",alignItems:"center",justifyContent:"center",marginRight:"10px",height:"22px"}},"\u9ED8\u8BA4"),e.a.createElement("span",{style:{flex:1,marginRight:"30px",marginLeft:!(J!=null&&J.checked)&&"50px"}},e.a.createElement("p",null,J==null?void 0:J.content),(J==null?void 0:J.explain)&&e.a.createElement("p",null,"\u8BF4\u660E\uFF1A",J==null?void 0:J.explain)),e.a.createElement("span",{style:{width:185}},e.a.createElement(ce.a,{onClick:function(){En==null||En.ec_course_target_formulas.map(function(we){J.id===we.id?we.checked=!0:we.checked=!1}),ma(Object(L.a)({},En))},checked:J==null?void 0:J.checked}," ","\u8BBE\u4E3A\u9ED8\u8BA4\u516C\u5F0F")))})),ga==="2"&&e.a.createElement("div",null,e.a.createElement("div",{style:{display:"flex",height:38,background:"#F5F5F5",lineHeight:"38px",padding:"0px 40px"}},e.a.createElement("span",{style:{flex:1}},"\u8BFE\u7A0B\u603B\u5206\u8BA1\u7B97\u516C\u5F0F"),e.a.createElement("span",{style:{width:185}},"\u64CD\u4F5C")),En==null||((Mt=En.ec_course_formulas)===null||Mt===void 0)?void 0:Mt.map(function(J,Be){return e.a.createElement("div",{style:{display:"flex",padding:"20px 40px"}},(J==null?void 0:J.checked)&&e.a.createElement("span",{style:{width:"40px",borderRadius:"2px",color:"#0152D9",border:"1px solid #0152D9",display:"inline-flex",alignItems:"center",justifyContent:"center",marginRight:"10px",height:"22px"}},"\u9ED8\u8BA4"),e.a.createElement("span",{style:{flex:1,marginRight:"30px",marginLeft:!(J!=null&&J.checked)&&"50px"}},e.a.createElement("p",null,J==null?void 0:J.content),(J==null?void 0:J.explain)&&e.a.createElement("p",null,"\u8BF4\u660E\uFF1A",J==null?void 0:J.explain)),e.a.createElement("span",{style:{width:185}},e.a.createElement(ce.a,{onClick:function(){En==null||En.ec_course_formulas.map(function(we){J.id===we.id?we.checked=!0:we.checked=!1}),ma(Object(L.a)({},En))},checked:J==null?void 0:J.checked}," ","\u8BBE\u4E3A\u9ED8\u8BA4\u516C\u5F0F")))}))),e.a.createElement(ee.a,{title:"\u6279\u91CF\u5BFC\u5165",visible:k,centered:!0,onCancel:function(){Ee(!1),nt([])},okButtonProps:{loading:Xt},onOk:Object(_.a)(r.a.mark(function J(){var Be,De,we;return r.a.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:if(Be=new FormData,!(Le.length>0)){Re.next=5;break}Be.append("file",Le[0]),Re.next=7;break;case 5:return X.b.warn("\u8BF7\u9009\u62E9\u6587\u4EF6"),Re.abrupt("return");case 7:if(ve.id){Re.next=10;break}return X.b.info("\u8BF7\u5148\u521B\u5EFA\u8BFE\u7A0B"),Re.abrupt("return");case 10:return an(!0),Be.append("ec_course_id",ve.id),at.current&&Be.append("id",at.current),De=at.current?"/api/ec_courses/".concat(ve.id,"/course_evaluations/update_offline.json"):"/api/ec_courses/".concat(ve.id,"/course_evaluations/create_offline.json"),Re.next=16,Object(de.a)(De,{method:at.current?"put":"post",body:Be},!0);case 16:we=Re.sent,an(!1),(we==null?void 0:we.status)===0&&(X.b.info("\u6DFB\u52A0\u6210\u529F"),Ee(!1),nt([]),ia(ve));case 19:case"end":return Re.stop()}},J)}))},e.a.createElement("p",null,"\u6B65\u9AA41\uFF1A\u4E0B\u8F7D",e.a.createElement("a",{href:Ae.a.API_SERVER+"/api/ec_courses/1/course_evaluations/download_template.xlsx",download:"\u6A21\u7248.xlsx"},"\u660E\u7EC6\u6210\u7EE9\u5BFC\u5165\u6A21\u677F"),",\u5BFC\u5165\u7EBF\u4E0B\u6570\u636E\u5185\u5BB9\u3002",e.a.createElement("span",{style:{color:"#D95201"}},"\u6CE8\uFF1A\u76EE\u524D\u4EC5\u652F\u6301Excel\u683C\u5F0F\u6A21\u677F")),e.a.createElement(_e.a,null,e.a.createElement(l.a,null,"\u6B65\u9AA42\uFF1A"),e.a.createElement(l.a,null,e.a.createElement(G.a,Oa,e.a.createElement(w.a,{type:"primary"},"\u9009\u62E9\u6587\u4EF6"))))),e.a.createElement(je.a,Object(Q.a)({},Xn,{onClose:function(){Qn(Object(L.a)(Object(L.a)({},Xn),{},{type:""}))}})))},et=z.default=Object(le.a)(function(Ge){var Lt=Ge.user;return{user:Lt}})(Ke)},"6+eU":function(dt,z,t){"use strict";t.d(z,"a",function(){return F});var Q=t("wx14"),N=t("rePB"),_e=t("VTBJ"),Z=t("1OyB"),l=t("vuIU"),m=t("Ji7U"),ce=t("LK+K"),ne=t("q1tI"),M=t.n(ne),S=t("TSYQ"),d=t.n(S),y=function(te){var w,$="".concat(te.rootPrefixCls,"-item"),f=d()($,"".concat($,"-").concat(te.page),(w={},Object(N.a)(w,"".concat($,"-active"),te.active),Object(N.a)(w,te.className,!!te.className),Object(N.a)(w,"".concat($,"-disabled"),!te.page),w)),L=function(){te.onClick(te.page)},oe=function(_){te.onKeyPress(_,te.onClick,te.page)};return M.a.createElement("li",{title:te.showTitle?te.page:null,className:f,onClick:L,onKeyPress:oe,tabIndex:"0"},te.itemRender(te.page,"page",M.a.createElement("a",{rel:"nofollow"},te.page)))},x=y,g={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},u=function(G){Object(m.a)(w,G);var te=Object(ce.a)(w);function w(){var $;Object(Z.a)(this,w);for(var f=arguments.length,L=new Array(f),oe=0;oe=0||X.relatedTarget.className.indexOf("".concat(r,"-next"))>=0))return;$.setState({goInputText:""}),P($.getValidValue())},$.go=function(X){var _=$.state.goInputText;if(_==="")return;(X.keyCode===g.ENTER||X.type==="click")&&($.setState({goInputText:""}),$.props.quickGo($.getValidValue()))},$}return Object(l.a)(w,[{key:"getValidValue",value:function(){var f=this.state,L=f.goInputText,oe=f.current;return!L||isNaN(L)?oe:Number(L)}},{key:"getPageSizeOptions",value:function(){var f=this.props,L=f.pageSize,oe=f.pageSizeOptions;return oe.some(function(X){return X.toString()===L.toString()})?oe:oe.concat([L.toString()]).sort(function(X,_){var b=isNaN(Number(X))?0:Number(X),P=isNaN(Number(_))?0:Number(_);return b-P})}},{key:"render",value:function(){var f=this,L=this.props,oe=L.pageSize,X=L.locale,_=L.rootPrefixCls,b=L.changeSize,P=L.quickGo,r=L.goButton,s=L.selectComponentClass,e=L.buildOptionText,H=L.selectPrefixCls,p=L.disabled,B=this.state.goInputText,le="".concat(_,"-options"),de=s,Ae=null,be=null,je=null;if(!b&&!P)return null;var Se=this.getPageSizeOptions();if(b&&de){var xe=Se.map(function(he,me){return M.a.createElement(de.Option,{key:me,value:he.toString()},(e||f.buildOptionText)(he))});Ae=M.a.createElement(de,{disabled:p,prefixCls:H,showSearch:!1,className:"".concat(le,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(oe||Se[0]).toString(),onChange:this.changeSize,getPopupContainer:function(me){return me.parentNode}},xe)}return P&&(r&&(je=typeof r=="boolean"?M.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:p,className:"".concat(le,"-quick-jumper-button")},X.jump_to_confirm):M.a.createElement("span",{onClick:this.go,onKeyUp:this.go},r)),be=M.a.createElement("div",{className:"".concat(le,"-quick-jumper")},X.jump_to,M.a.createElement("input",{disabled:p,type:"text",value:B,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),X.page,je)),M.a.createElement("li",{className:"".concat(le)},Ae,be)}}]),w}(M.a.Component);u.defaultProps={pageSizeOptions:["10","20","50","100"]};var C=u,i=t("N2Kk");function n(){}function h(G){return typeof G=="number"&&isFinite(G)&&Math.floor(G)===G}function j(G,te,w){return w}function K(G,te,w){var $=typeof G=="undefined"?te.pageSize:G;return Math.floor((w.total-1)/$)+1}var ee=function(G){Object(m.a)(w,G);var te=Object(ce.a)(w);function w($){var f;Object(Z.a)(this,w),f=te.call(this,$),f.getJumpPrevPage=function(){return Math.max(1,f.state.current-(f.props.showLessItems?3:5))},f.getJumpNextPage=function(){return Math.min(K(void 0,f.state,f.props),f.state.current+(f.props.showLessItems?3:5))},f.getItemIcon=function(b,P){var r=f.props.prefixCls,s=b||M.a.createElement("button",{type:"button","aria-label":P,className:"".concat(r,"-item-link")});return typeof b=="function"&&(s=M.a.createElement(b,Object(_e.a)({},f.props))),s},f.savePaginationNode=function(b){f.paginationNode=b},f.isValid=function(b){return h(b)&&b!==f.state.current},f.shouldDisplayQuickJumper=function(){var b=f.props,P=b.showQuickJumper,r=b.pageSize,s=b.total;return s<=r?!1:P},f.handleKeyDown=function(b){(b.keyCode===g.ARROW_UP||b.keyCode===g.ARROW_DOWN)&&b.preventDefault()},f.handleKeyUp=function(b){var P=f.getValidValue(b),r=f.state.currentInputValue;P!==r&&f.setState({currentInputValue:P}),b.keyCode===g.ENTER?f.handleChange(P):b.keyCode===g.ARROW_UP?f.handleChange(P-1):b.keyCode===g.ARROW_DOWN&&f.handleChange(P+1)},f.changePageSize=function(b){var P=f.state.current,r=K(b,f.state,f.props);P=P>r?r:P,r===0&&(P=f.state.current),typeof b=="number"&&("pageSize"in f.props||f.setState({pageSize:b}),"current"in f.props||f.setState({current:P,currentInputValue:P})),f.props.onShowSizeChange(P,b),"onChange"in f.props&&f.props.onChange&&f.props.onChange(P,b)},f.handleChange=function(b){var P=f.props.disabled,r=b;if(f.isValid(r)&&!P){var s=K(void 0,f.state,f.props);r>s?r=s:r<1&&(r=1),"current"in f.props||f.setState({current:r,currentInputValue:r});var e=f.state.pageSize;return f.props.onChange(r,e),r}return f.state.current},f.prev=function(){f.hasPrev()&&f.handleChange(f.state.current-1)},f.next=function(){f.hasNext()&&f.handleChange(f.state.current+1)},f.jumpPrev=function(){f.handleChange(f.getJumpPrevPage())},f.jumpNext=function(){f.handleChange(f.getJumpNextPage())},f.hasPrev=function(){return f.state.current>1},f.hasNext=function(){return f.state.current2?r-2:0),e=2;e=oe?_=oe:_=Number(L),_}},{key:"getShowSizeChanger",value:function(){var f=this.props,L=f.showSizeChanger,oe=f.total,X=f.totalBoundaryShowSizeChanger;return typeof L!="undefined"?L:oe>X}},{key:"renderPrev",value:function(f){var L=this.props,oe=L.prevIcon,X=L.itemRender,_=X(f,"prev",this.getItemIcon(oe,"prev page")),b=!this.hasPrev();return Object(ne.isValidElement)(_)?Object(ne.cloneElement)(_,{disabled:b}):_}},{key:"renderNext",value:function(f){var L=this.props,oe=L.nextIcon,X=L.itemRender,_=X(f,"next",this.getItemIcon(oe,"next page")),b=!this.hasNext();return Object(ne.isValidElement)(_)?Object(ne.cloneElement)(_,{disabled:b}):_}},{key:"render",value:function(){var f=this,L=this.props,oe=L.prefixCls,X=L.className,_=L.style,b=L.disabled,P=L.hideOnSinglePage,r=L.total,s=L.locale,e=L.showQuickJumper,H=L.showLessItems,p=L.showTitle,B=L.showTotal,le=L.simple,de=L.itemRender,Ae=L.showPrevNextJumpers,be=L.jumpPrevIcon,je=L.jumpNextIcon,Se=L.selectComponentClass,xe=L.selectPrefixCls,he=L.pageSizeOptions,me=this.state,c=me.current,I=me.pageSize,O=me.currentInputValue;if(P===!0&&r<=I)return null;var ae=K(void 0,this.state,this.props),v=[],U=null,ie=null,Oe=null,Te=null,Ke=null,et=e&&e.goButton,Ge=H?1:2,Lt=c-1>0?c-1:0,St=c+1=Ge*2&&c!==1+2&&(v[0]=Object(ne.cloneElement)(v[0],{className:"".concat(oe,"-item-after-jump-prev")}),v.unshift(U)),ae-c>=Ge*2&&c!==ae-2&&(v[v.length-1]=Object(ne.cloneElement)(v[v.length-1],{className:"".concat(oe,"-item-before-jump-next")}),v.push(ie)),Pe!==1&&v.unshift(Oe),ve!==ae&&v.push(Te)}var Fe=null;B&&(Fe=M.a.createElement("li",{className:"".concat(oe,"-total-text")},B(r,[r===0?0:(c-1)*I+1,c*I>r?r:c*I])));var ke=!this.hasPrev()||!ae,He=!this.hasNext()||!ae;return M.a.createElement("ul",Object(Q.a)({className:d()(oe,X,Object(N.a)({},"".concat(oe,"-disabled"),b)),style:_,unselectable:"unselectable",ref:this.savePaginationNode},It),Fe,M.a.createElement("li",{title:p?s.prev_page:null,onClick:this.prev,tabIndex:ke?null:0,onKeyPress:this.runIfEnterPrev,className:d()("".concat(oe,"-prev"),Object(N.a)({},"".concat(oe,"-disabled"),ke)),"aria-disabled":ke},this.renderPrev(Lt)),v,M.a.createElement("li",{title:p?s.next_page:null,onClick:this.next,tabIndex:He?null:0,onKeyPress:this.runIfEnterNext,className:d()("".concat(oe,"-next"),Object(N.a)({},"".concat(oe,"-disabled"),He)),"aria-disabled":He},this.renderNext(St)),M.a.createElement(C,{disabled:b,locale:s,rootPrefixCls:oe,selectComponentClass:Se,selectPrefixCls:xe,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:c,pageSize:I,pageSizeOptions:he,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:et}))}}],[{key:"getDerivedStateFromProps",value:function(f,L){var oe={};if("current"in f&&(oe.current=f.current,f.current!==L.current&&(oe.currentInputValue=oe.current)),"pageSize"in f&&f.pageSize!==L.pageSize){var X=L.current,_=K(f.pageSize,L,f);X=X>_?_:X,"current"in f||(oe.current=X,oe.currentInputValue=X),oe.pageSize=f.pageSize}return oe}}]),w}(M.a.Component);ee.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:n,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:n,locale:i.a,style:{},itemRender:j,totalBoundaryShowSizeChanger:50};var F=ee},"6RRn":function(dt,z,t){"use strict";var Q=t("wCXF"),N=t("n6Qo");t.d(z,"b",function(){return N.a});var _e=t("IBYe"),Z=t("6eGT"),l=t("hW8S");t.d(z,"a",function(){return l.a}),z.c=Q.b},"6eGT":function(dt,z,t){"use strict";function Q(N){return null}z.a=Q},"746U":function(dt,z,t){"use strict";t.d(z,"d",function(){return N}),t.d(z,"j",function(){return _e}),t.d(z,"i",function(){return Z}),t.d(z,"h",function(){return l}),t.d(z,"e",function(){return m}),t.d(z,"k",function(){return ce}),t.d(z,"l",function(){return ne}),t.d(z,"a",function(){return M}),t.d(z,"f",function(){return d}),t.d(z,"g",function(){return y}),t.d(z,"m",function(){return x}),t.d(z,"c",function(){return C}),t.d(z,"b",function(){return i}),t.d(z,"n",function(){return n}),t.d(z,"o",function(){return h});var Q={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function N(j){return Array.isArray?Array.isArray(j):!!(j&&typeof j.length===Q.number&&j.constructor===Array)}function _e(j){return typeof j===Q.string||j instanceof String}function Z(j){return typeof j===Q.object&&j!==null&&!Array.isArray(j)&&!(j instanceof RegExp)&&!(j instanceof Date)}function l(j){return(typeof j===Q.number||j instanceof Number)&&!isNaN(j)}function m(j){return j===!0||j===!1}function ce(j){return typeof j===Q.undefined}function ne(j){return ce(j)||j===null}function M(j,K){if(!j)throw new Error(K?"Unexpected type, expected '"+K+"'":"Unexpected type")}var S=Object.prototype.hasOwnProperty;function d(j){if(!Z(j))return!1;for(var K in j)if(S.call(j,K))return!1;return!0}function y(j){return typeof j===Q.function}function x(j,K){for(var ee=Math.min(j.length,K.length),F=0;F0&&arguments[0]!==void 0?arguments[0]:[],C=new Map;function i(n){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(n||[]).forEach(function(j){var K=j.key,ee=j.children;Object(l.a)(K!=null,"Tree node must have a certain key: [".concat(h).concat(K,"]"));var F=String(K);Object(l.a)(!C.has(F)||K===null||K===void 0,"Same 'key' exist in the Tree: ".concat(F)),C.set(F,!0),i(ee,"".concat(h).concat(F," > "))})}i(u)}function M(u){function C(i){var n=Object(Z.a)(i);return n.map(function(h){if(!Object(m.i)(h))return Object(l.a)(!h,"Tree/TreeNode can only accept TreeNode as children."),null;var j=h.key,K=h.props,ee=K.children,F=Object(_e.a)(K,["children"]),G=Object(N.a)({key:j},F),te=C(ee);return te.length&&(G.children=te),G}).filter(function(h){return h})}return C(u)}function S(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=new Set(C===!0?[]:C),n=[];function h(j){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return j.map(function(ee,F){var G=Object(m.h)(K?K.pos:"0",F),te=ce(ee.key,G),w=Object(N.a)(Object(N.a)({},ee),{},{parent:K,pos:G,children:null,data:ee,isStart:[].concat(Object(Q.a)(K?K.isStart:[]),[F===0]),isEnd:[].concat(Object(Q.a)(K?K.isEnd:[]),[F===j.length-1])});return n.push(w),C===!0||i.has(te)?w.children=h(ee.children||[],w):w.children=[],w})}return h(u),n}function d(u,C,i){var n;i?typeof i=="string"?n=function(K){return K[i]}:typeof i=="function"&&(n=function(K){return i(K)}):n=function(K,ee){return ce(K.key,ee)};function h(j,K,ee){var F=j?j.children:u,G=j?Object(m.h)(ee.pos,K):"0";if(j){var te=n(j,G),w={node:j,index:K,pos:G,key:te,parentPos:ee.node?ee.pos:null,level:ee.level+1};C(w)}F&&F.forEach(function($,f){h($,f,{node:j,pos:G,level:ee?ee.level+1:-1})})}h(null)}function y(u){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=C.initWrapper,n=C.processEntity,h=C.onProcessFinished,j=arguments.length>2?arguments[2]:void 0,K={},ee={},F={posEntities:K,keyEntities:ee};return i&&(F=i(F)||F),d(u,function(G){var te=G.node,w=G.index,$=G.pos,f=G.key,L=G.parentPos,oe=G.level,X={node:te,index:w,key:f,pos:$,level:oe},_=ce(f,$);K[$]=X,ee[_]=X,X.parent=K[L],X.parent&&(X.parent.children=X.parent.children||[],X.parent.children.push(X)),n&&n(X,F)},j),h&&h(F),F}function x(u,C){var i=C.expandedKeys,n=C.selectedKeys,h=C.loadedKeys,j=C.loadingKeys,K=C.checkedKeys,ee=C.halfCheckedKeys,F=C.dragOverNodeKey,G=C.dropPosition,te=C.keyEntities,w=te[u],$={eventKey:u,expanded:i.indexOf(u)!==-1,selected:n.indexOf(u)!==-1,loaded:h.indexOf(u)!==-1,loading:j.indexOf(u)!==-1,checked:K.indexOf(u)!==-1,halfChecked:ee.indexOf(u)!==-1,pos:String(w?w.pos:""),dragOver:F===u&&G===0,dragOverGapTop:F===u&&G===-1,dragOverGapBottom:F===u&&G===1};return $}function g(u){var C=u.data,i=u.expanded,n=u.selected,h=u.checked,j=u.loaded,K=u.loading,ee=u.halfChecked,F=u.dragOver,G=u.dragOverGapTop,te=u.dragOverGapBottom,w=u.pos,$=u.active,f=Object(N.a)(Object(N.a)({},C),{},{expanded:i,selected:n,checked:h,loaded:j,loading:K,halfChecked:ee,dragOver:F,dragOverGapTop:G,dragOverGapBottom:te,pos:w,active:$});return"props"in f||Object.defineProperty(f,"props",{get:function(){return Object(l.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),u}}),f}},"8HAY":function(dt,z,t){"use strict";t.d(z,"a",function(){return m}),t.d(z,"b",function(){return ce});var Q=t("pmY6"),N=t("MI8n"),_e=function(){var ne=function(M,S){return ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,y){d.__proto__=y}||function(d,y){for(var x in y)y.hasOwnProperty(x)&&(d[x]=y[x])},ne(M,S)};return function(M,S){ne(M,S);function d(){this.constructor=M}M.prototype=S===null?Object.create(S):(d.prototype=S.prototype,new d)}}(),Z=function(ne,M,S,d){function y(x){return x instanceof S?x:new S(function(g){g(x)})}return new(S||(S=Promise))(function(x,g){function u(n){try{i(d.next(n))}catch(h){g(h)}}function C(n){try{i(d.throw(n))}catch(h){g(h)}}function i(n){n.done?x(n.value):y(n.value).then(u,C)}i((d=d.apply(ne,M||[])).next())})},l=function(ne,M){var S={label:0,sent:function(){if(x[0]&1)throw x[1];return x[1]},trys:[],ops:[]},d,y,x,g;return g={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(g[Symbol.iterator]=function(){return this}),g;function u(i){return function(n){return C([i,n])}}function C(i){if(d)throw new TypeError("Generator is already executing.");for(;S;)try{if(d=1,y&&(x=i[0]&2?y.return:i[0]?y.throw||((x=y.return)&&x.call(y),0):y.next)&&!(x=x.call(y,i[1])).done)return x;(y=0,x)&&(i=[i[0]&2,x.value]);switch(i[0]){case 0:case 1:x=i;break;case 4:return S.label++,{value:i[1],done:!1};case 5:S.label++,y=i[1],i=[0];continue;case 7:i=S.ops.pop(),S.trys.pop();continue;default:if(!(x=S.trys,x=x.length>0&&x[x.length-1])&&(i[0]===6||i[0]===2)){S=0;continue}if(i[0]===3&&(!x||i[1]>x[0]&&i[1]1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(Q.a)())return null;var S=document.createElement("style");if((ne=M.csp)===null||ne===void 0?void 0:ne.nonce){var d;S.nonce=(d=M.csp)===null||d===void 0?void 0:d.nonce}S.innerHTML=ce;var y=_e(M),x=y.firstChild;return M.prepend&&y.prepend?y.prepend(S):M.prepend&&x?y.insertBefore(S,x):y.appendChild(S),S}var l=new Map;function m(ce,ne){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},S=_e(M);if(!l.has(S)){var d=Z("",M),y=d.parentNode;l.set(S,y),y.removeChild(d)}var x=Array.from(l.get(S).children).find(function(n){return n.tagName==="STYLE"&&n[N]===ne});if(x){var g,u;if(((g=M.csp)===null||g===void 0?void 0:g.nonce)&&x.nonce!==((u=M.csp)===null||u===void 0?void 0:u.nonce)){var C;x.nonce=(C=M.csp)===null||C===void 0?void 0:C.nonce}return x.innerHTML!==ce&&(x.innerHTML=ce),x}var i=Z(ce,M);return i[N]=ne,i}},BdwD:function(dt,z,t){"use strict";var Q=t("+L6B"),N=t("2/Rp"),_e=t("0Owb"),Z=t("k1fw"),l=t("q1tI"),m=t.n(l),ce=t("FOrL"),ne=t.n(ce),M=function(d){var y=d.buttonProps,x=y===void 0?{}:y,g=d.styles,u=g===void 0?{}:g,C=d.customText,i=d.ButtonText,n=d.ButtonClick,h=d.Buttonclass,j=d.ButtonTwo;return m.a.createElement("section",{className:"tc animated fadeIn",style:Object(Z.a)(Object(Z.a)({},{color:"#999",margin:"200px auto"}),u)},m.a.createElement("img",{src:ne.a}),m.a.createElement("p",{className:"mt20 font14"},C||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),i&&m.a.createElement(N.a,Object(_e.a)({className:h,onClick:n},x),i),j&&j)};z.a=M},"C/vA":function(dt,z,t){"use strict";t.d(z,"a",function(){return Q});function Q(N){var _e=this,Z=!1,l;return function(){return Z||(Z=!0,l=N.apply(_e,arguments)),l}}},"Cg/j":function(dt,z,t){"use strict";t.d(z,"b",function(){return Q}),t.d(z,"a",function(){return N}),t.d(z,"c",function(){return Z}),t.d(z,"d",function(){return l});var Q;(function(m){m.serviceIds=new Map,m.DI_TARGET="$di$target",m.DI_DEPENDENCIES="$di$dependencies";function ce(ne){return ne[m.DI_DEPENDENCIES]||[]}m.getServiceDependencies=ce})(Q||(Q={}));var N=Z("instantiationService");function _e(m,ce,ne,M){ce[Q.DI_TARGET]===ce?ce[Q.DI_DEPENDENCIES].push({id:m,index:ne,optional:M}):(ce[Q.DI_DEPENDENCIES]=[{id:m,index:ne,optional:M}],ce[Q.DI_TARGET]=ce)}function Z(m){if(Q.serviceIds.has(m))return Q.serviceIds.get(m);var ce=function(ne,M,S){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");_e(ce,ne,S,!1)};return ce.toString=function(){return m},Q.serviceIds.set(m,ce),ce}function l(m){return function(ce,ne,M){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");_e(m,ce,M,!0)}}},FOrL:function(dt,z,t){dt.exports=t.p+"static/nodata.a6b3f948.png"},GfqC:function(dt,z,t){"use strict";var Q=t("q1tI"),N=t.n(Q),_e=t("TSYQ"),Z=t.n(_e);function l(s,e){var H="cannot "+s.method+" "+s.action+" "+e.status+"'",p=new Error(H);return p.status=e.status,p.method=s.method,p.url=s.action,p}function m(s){var e=s.responseText||s.response;if(!e)return e;try{return JSON.parse(e)}catch(H){return e}}function ce(s){var e=new XMLHttpRequest;s.onProgress&&e.upload&&(e.upload.onprogress=function(le){le.total>0&&(le.percent=le.loaded/le.total*100),s.onProgress(le)});var H=new FormData;s.data&&Object.keys(s.data).forEach(function(B){var le=s.data[B];if(Array.isArray(le)){le.forEach(function(de){H.append(B+"[]",de)});return}H.append(B,s.data[B])}),s.file instanceof Blob?H.append(s.filename,s.file,s.file.name):H.append(s.filename,s.file),e.onerror=function(le){s.onError(le)},e.onload=function(){return e.status<200||e.status>=300?s.onError(l(s,e),m(e)):s.onSuccess(m(e),e)},e.open(s.method,s.action,!0),s.withCredentials&&"withCredentials"in e&&(e.withCredentials=!0);var p=s.headers||{};return p["X-Requested-With"]!==null&&e.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(p).forEach(function(B){p[B]!==null&&e.setRequestHeader(B,p[B])}),e.send(H),{abort:function(){e.abort()}}}var ne=+new Date,M=0;function S(){return"rc-upload-"+ne+"-"+ ++M}function d(s,e){return s.indexOf(e,s.length-e.length)!==-1}var y=function(s,e){if(s&&e){var H=Array.isArray(e)?e:e.split(","),p=s.name||"",B=s.type||"",le=B.replace(/\/.*$/,"");return H.some(function(de){var Ae=de.trim();return Ae.charAt(0)==="."?d(p.toLowerCase(),Ae.toLowerCase()):/\/\*$/.test(Ae)?le===Ae.replace(/\/.*$/,""):B===Ae})}return!0};function x(s,e){var H=s.createReader(),p=[];function B(){H.readEntries(function(le){var de=Array.prototype.slice.apply(le);p=p.concat(de);var Ae=!de.length;Ae?e(p):B()})}B()}var g=function(e,H,p){var B=function le(de,Ae){Ae=Ae||"",de.isFile?de.file(function(be){p(be)&&(de.fullPath&&!be.webkitRelativePath&&(Object.defineProperties(be,{webkitRelativePath:{writable:!0}}),be.webkitRelativePath=de.fullPath.replace(/^\//,""),Object.defineProperties(be,{webkitRelativePath:{writable:!1}})),H([be]))}):de.isDirectory&&x(de,function(be){be.forEach(function(je){le(je,""+Ae+de.name+"/")})})};e.forEach(function(le){B(le.webkitGetAsEntry())})},u=g,C=Object.assign||function(s){for(var e=1;e=0)continue;if(!Object.prototype.hasOwnProperty.call(s,p))continue;H[p]=s[p]}return H}function K(s,e){if(!(s instanceof e))throw new TypeError("Cannot call a class as a function")}function ee(s,e){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:s}function F(s,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);s.prototype=Object.create(e&&e.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(s,e):s.__proto__=e)}var G=function(e){return Object.keys(e).reduce(function(H,p){return(p.substr(0,5)==="data-"||p.substr(0,5)==="aria-"||p==="role")&&(H[p]=e[p]),H},{})},te=function(s){F(e,s);function e(){var H,p,B,le;K(this,e);for(var de=arguments.length,Ae=Array(de),be=0;be=G?N:{done:!1,value:ee[F++]}}}}M.fromArray=x;function g(ee){return{next:function(){var F=ee.next();return F.done?N:{done:!1,value:F.value}}}}M.fromNativeIterator=g;function u(ee){return ee?Array.isArray(ee)?M.fromArray(ee):ee:M.empty()}M.from=u;function C(ee,F){return{next:function(){var G=ee.next();return G.done?N:{done:!1,value:F(G.value)}}}}M.map=C;function i(ee,F){return{next:function(){for(;;){var G=ee.next();if(G.done)return N;if(F(G.value))return{done:!1,value:G.value}}}}}M.filter=i;function n(ee,F){for(var G=ee.next();!G.done;G=ee.next())F(G.value)}M.forEach=n;function h(ee,F){F===void 0&&(F=Number.POSITIVE_INFINITY);var G=[];if(F===0)return G;for(var te=0,w=ee.next();!w.done&&!(G.push(w.value),++te>=F);w=ee.next());return G}M.collect=h;function j(){for(var ee=[],F=0;F=ee.length)return N;var te=ee[G],w=te.next();return w.done?(G++,this.next()):w}}}M.concat=j;function K(ee){return new Z(ee)}M.chain=K})(_e||(_e={}));var Z=function(){function M(S){this.it=S}return M.prototype.next=function(){return this.it.next()},M}();function l(M){return Array.isArray(M)?_e.fromArray(M):M||_e.empty()}var m=function(){function M(S,d,y,x){d===void 0&&(d=0),y===void 0&&(y=S.length),x===void 0&&(x=d-1),this.items=S,this.start=d,this.end=y,this.index=x}return M.prototype.first=function(){return this.index=this.start,this.current()},M.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},M.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},M}(),ce=function(M){Q(S,M);function S(d,y,x,g){return y===void 0&&(y=0),x===void 0&&(x=d.length),g===void 0&&(g=y-1),M.call(this,d,y,x,g)||this}return S.prototype.current=function(){return M.prototype.current.call(this)},S.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},S.prototype.first=function(){return this.index=this.start,this.current()},S.prototype.last=function(){return this.index=this.end-1,this.current()},S.prototype.parent=function(){return null},S}(m),ne=function(){function M(S,d){this.iterator=S,this.fn=d}return M.prototype.next=function(){return this.fn(this.iterator.next())},M}()},LdHM:function(dt,z,t){"use strict";t.d(z,"b",function(){return j}),t.d(z,"a",function(){return ee});var Q=t("1OyB"),N=t("vuIU"),_e=t("Ji7U"),Z=t("LK+K"),l=t("q1tI"),m=t("rePB"),ce=t("Ff2n"),ne=t("ODXe"),M=t("4IlW"),S=t("bX4T"),d=t("YrtM"),y=t("TSYQ"),x=t.n(y),g=t("+nKL"),u=t("8OUc"),C=function(p,B){var le=p.prefixCls,de=p.id,Ae=p.flattenOptions,be=p.childrenAsData,je=p.values,Se=p.searchValue,xe=p.multiple,he=p.defaultActiveFirstOption,me=p.height,c=p.itemHeight,I=p.notFoundContent,O=p.open,ae=p.menuItemSelectedIcon,v=p.virtual,U=p.onSelect,ie=p.onToggleOpen,Oe=p.onActiveValue,Te=p.onScroll,Ke=p.onMouseEnter,et="".concat(le,"-item"),Ge=Object(d.a)(function(){return Ae},[O,Ae],function(Ve,Fe){return Fe[0]&&Ve[1]!==Fe[1]}),Lt=l.useRef(null),St=function(Fe){Fe.preventDefault()},It=function(Fe){Lt.current&&Lt.current.scrollTo({index:Fe})},lt=function(Fe){for(var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,He=Ge.length,Ye=0;Ye1&&arguments[1]!==void 0?arguments[1]:!1;return Object(G.a)(H).map(function(B,le){if(!l.isValidElement(B)||!B.type)return null;var de=B.type.isSelectOptGroup,Ae=B.key,be=B.props,je=be.children,Se=Object(ce.a)(be,["children"]);return p||!de?te(B):Object(F.a)(Object(F.a)({key:"__RC_SELECT_GRP__".concat(Ae===null?le:Ae,"__"),label:Ae},Se),{},{options:w(je)})}).filter(function(B){return B})}var $=t("2Qr1"),f=t("qNPg"),L=t("U8pU"),oe=t("Kwbf"),X=t("WKfj");function _(H){var p=H.mode,B=H.options,le=H.children,de=H.backfill,Ae=H.allowClear,be=H.placeholder,je=H.getInputElement,Se=H.showSearch,xe=H.onSearch,he=H.defaultOpen,me=H.autoFocus,c=H.labelInValue,I=H.value,O=H.inputValue,ae=H.optionLabelProp,v=p==="multiple"||p==="tags",U=Se!==void 0?Se:v||p==="combobox",ie=B||w(le);if(Object(oe.a)(p!=="tags"||ie.every(function(et){return!et.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),p==="tags"||p==="combobox"){var Oe=ie.some(function(et){return et.options?et.options.some(function(Ge){return typeof("value"in Ge?Ge.value:Ge.key)=="number"}):typeof("value"in et?et.value:et.key)=="number"});Object(oe.a)(!Oe,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(oe.a)(p!=="combobox"||!ae,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(oe.a)(p==="combobox"||!de,"`backfill` only works with `combobox` mode."),Object(oe.a)(p==="combobox"||!je,"`getInputElement` only work with `combobox` mode."),Object(oe.b)(p!=="combobox"||!je||!Ae||!be,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),xe&&!U&&p!=="combobox"&&p!=="tags"&&Object(oe.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(oe.b)(!he||me,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),I!=null){var Te=Object(X.d)(I);Object(oe.a)(!c||Te.every(function(et){return Object(L.a)(et)==="object"&&("key"in et||"value"in et)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(oe.a)(!v||Array.isArray(I),"`value` should be array when `mode` is `multiple` or `tags`")}if(le){var Ke=null;Object(G.a)(le).some(function(et){if(!l.isValidElement(et)||!et.type)return!1;var Ge=et.type;if(Ge.isSelectOption)return!1;if(Ge.isSelectOptGroup){var Lt=Object(G.a)(et.props.children).every(function(St){return!l.isValidElement(St)||!et.type||St.type.isSelectOption?!0:(Ke=St.type,!1)});return!Lt}return Ke=Ge,!0}),Ke&&Object(oe.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ke.displayName||Ke.name||Ke,"`.")),Object(oe.a)(O===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var b=_,P=Object(f.a)({prefixCls:"rc-select",components:{optionList:n},convertChildrenToData:w,flattenOptions:$.d,getLabeledValue:$.e,filterOptions:$.b,isValueDisabled:$.g,findValueOption:$.c,warningProps:b,fillOptionsWithMissingValue:$.a}),r=function(H){Object(_e.a)(B,H);var p=Object(Z.a)(B);function B(){var le;return Object(Q.a)(this,B),le=p.apply(this,arguments),le.selectRef=l.createRef(),le.focus=function(){le.selectRef.current.focus()},le.blur=function(){le.selectRef.current.blur()},le}return Object(N.a)(B,[{key:"render",value:function(){return l.createElement(P,Object.assign({ref:this.selectRef},this.props))}}]),B}(l.Component);r.Option=j,r.OptGroup=ee;var s=r,e=z.c=s},MI8n:function(dt,z,t){"use strict";t.d(z,"b",function(){return m}),t.d(z,"a",function(){return M}),t.d(z,"e",function(){return S}),t.d(z,"d",function(){return d}),t.d(z,"c",function(){return y}),t.d(z,"f",function(){return x});var Q=t("/cxE"),N=t("C/vA"),_e=t("pmY6"),Z=t("24hK"),l=function(){var g=function(u,C){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var h in n)n.hasOwnProperty(h)&&(i[h]=n[h])},g(u,C)};return function(u,C){g(u,C);function i(){this.constructor=u}u.prototype=C===null?Object.create(C):(i.prototype=C.prototype,new i)}}(),m;(function(g){g.None=function(){return _e.a.None};function u(b){return function(P,r,s){r===void 0&&(r=null);var e=!1,H;return H=b(function(p){return e?void 0:(H?H.dispose():e=!0,P.call(r,p))},null,s),e&&H.dispose(),H}}g.once=u;function C(b,P){return ee(function(r,s,e){return s===void 0&&(s=null),b(function(H){return r.call(s,P(H))},null,e)})}g.map=C;function i(b,P){return ee(function(r,s,e){return s===void 0&&(s=null),b(function(H){P(H),r.call(s,H)},null,e)})}g.forEach=i;function n(b,P){return ee(function(r,s,e){return s===void 0&&(s=null),b(function(H){return P(H)&&r.call(s,H)},null,e)})}g.filter=n;function h(b){return b}g.signal=h;function j(){for(var b=[],P=0;P1)&&de.fire(be),le=0},r)})},onLastListenerRemove:function(){H.dispose()}});return de.event}g.debounce=F;function G(b){var P=new Date().getTime();return C(u(b),function(r){return new Date().getTime()-P})}g.stopwatch=G;function te(b){var P=!0,r;return n(b,function(s){var e=P||s!==r;return P=!1,r=s,e})}g.latch=te;function w(b,P,r){P===void 0&&(P=!1),r===void 0&&(r=[]);var s=r.slice(),e=b(function(B){s?s.push(B):p.fire(B)}),H=function(){s&&s.forEach(function(B){return p.fire(B)}),s=null},p=new M({onFirstListenerAdd:function(){e||(e=b(function(B){return p.fire(B)}))},onFirstListenerDidAdd:function(){s&&(P?setTimeout(H):H())},onLastListenerRemove:function(){e&&e.dispose(),e=null}});return p.event}g.buffer=w;var $=function(){function b(P){this.event=P}return b.prototype.map=function(P){return new b(C(this.event,P))},b.prototype.forEach=function(P){return new b(i(this.event,P))},b.prototype.filter=function(P){return new b(n(this.event,P))},b.prototype.reduce=function(P,r){return new b(K(this.event,P,r))},b.prototype.latch=function(){return new b(te(this.event))},b.prototype.debounce=function(P,r,s,e){return r===void 0&&(r=100),s===void 0&&(s=!1),new b(F(this.event,P,r,s,e))},b.prototype.on=function(P,r,s){return this.event(P,r,s)},b.prototype.once=function(P,r,s){return u(this.event)(P,r,s)},b}();function f(b){return new $(b)}g.chain=f;function L(b,P,r){r===void 0&&(r=function(B){return B});var s=function(){for(var B=[],le=0;le0&&(pe==null||pe.map(function(Ce){nt.push(Ce)}))}),Ct([].concat(nt))}else Ct([])}})," \u8003\u6838\u5185\u5BB9"),e.a.createElement("span",{style:{width:277}},"\u5206\u73ED"),e.a.createElement("span",{style:{width:87}},"\u6EE1\u5206\u503C"),e.a.createElement("span",{style:{width:93}},"\u7EC4\u5408\u8BA1\u7B97")),e.a.createElement("div",{style:{display:"flex",alignItems:"center",textAlign:"center",border:"1px solid #f0f0f0",maxHeight:"552px",overflow:"auto"}},e.a.createElement("span",{style:{width:93}},se.name),e.a.createElement("span",{style:{width:194,maxHeight:"552px"}},se==null||((Ne=se.courses)===null||Ne===void 0)?void 0:Ne.map(function(k){var be,fe,ge,Le;return e.a.createElement("div",{className:p.a.textwidth,style:{height:(k==null||((be=k.shixun_models)===null||be===void 0)?void 0:be.length)===0?40:(k==null||((fe=k.shixun_models)===null||fe===void 0)?void 0:fe.length)*40,lineHeight:(k==null||((ge=k.shixun_models)===null||ge===void 0)?void 0:ge.length)===0?40+"px":(k==null||((Le=k.shixun_models)===null||Le===void 0)?void 0:Le.length)*40+"px"}},k.name)})),e.a.createElement("span",{style:{width:324,maxHeight:"552px",textAlign:"left"}},e.a.createElement(me.a.Group,{onChange:function(be){var fe,ge=Xe==null||((fe=Xe.courses)===null||fe===void 0)?void 0:fe.map(function(pe){var Ce;return pe==null||((Ce=pe.shixun_models)===null||Ce===void 0)?void 0:Ce.map(function(We){return We})}),Le=[];ge.map(function(pe){pe.length>0&&(pe==null||pe.map(function(Ce){Le.push(Ce)}))});var nt=Le.filter(function(pe){return be.includes(pe.id)});Ct(nt)},style:{width:"100%"},value:Bt==null?void 0:Bt.map(function(k){return k==null?void 0:k.id})},se==null||((qe=se.courses)===null||qe===void 0)?void 0:qe.map(function(k){var be,fe;return(k==null||((be=k.shixun_models)===null||be===void 0)?void 0:be.length)===0?e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):k==null||((fe=k.shixun_models)===null||fe===void 0)?void 0:fe.map(function(ge){return e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},e.a.createElement(me.a,{onChange:function(nt){ge.checked=nt.target.checked,Ft(Object(L.a)({},se))},value:ge==null?void 0:ge.id},ge.name))})}))),e.a.createElement("span",{style:{width:277,maxHeight:"552px"}},se==null||((at=se.courses)===null||at===void 0)?void 0:at.map(function(k){var be,fe;return(k==null||((be=k.shixun_models)===null||be===void 0)?void 0:be.length)===0?e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):k==null||((fe=k.shixun_models)===null||fe===void 0)?void 0:fe.map(function(ge){return e.a.createElement(u.a,{title:ge.groups},e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},ge.groups))})})),e.a.createElement("span",{style:{width:87,maxHeight:"552px"}},se==null||((vt=se.courses)===null||vt===void 0)?void 0:vt.map(function(k){var be,fe;return(k==null||((be=k.shixun_models)===null||be===void 0)?void 0:be.length)===0?e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):k==null||((fe=k.shixun_models)===null||fe===void 0)?void 0:fe.map(function(ge){return e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},ge.total_score)})})),e.a.createElement("span",{style:{width:93,maxHeight:"552px"}},se==null||((ot=se.courses)===null||ot===void 0)?void 0:ot.map(function(k){var be,fe;return(k==null||((be=k.shixun_models)===null||be===void 0)?void 0:be.length)===0?e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},e.a.createElement(d.a,{disabled:!0})):k==null||((fe=k.shixun_models)===null||fe===void 0)?void 0:fe.map(function(ge){return e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},e.a.createElement(d.a,{min:1,step:.1,parser:In,value:ge==null?void 0:ge.position,onChange:function(nt){ge.position=nt,Ft(Object(L.a)({},se))}}))})}))))},_n=function(se){var Ne,qe,at,vt,ot;return e.a.createElement("div",null,e.a.createElement("div",{style:{display:"flex",height:"38px",background:"#F5F5F5",alignItems:"center",textAlign:"center",marginTop:"20px"}},e.a.createElement("span",{style:{width:93}},"\u8003\u6838\u65B9\u5F0F"),e.a.createElement("span",{style:{width:194}},"\u6559\u5B66\u8BFE\u5802"),e.a.createElement("span",{style:{width:324}},e.a.createElement(me.a,{checked:Bt.length===(se==null?void 0:se.exercise_count),onChange:function(be){var fe;if(se==null||((fe=se.courses)===null||fe===void 0)||fe.map(function(pe){var Ce;pe==null||((Ce=pe.exercise_models)===null||Ce===void 0)||Ce.map(function(We){We.checked=be.target.checked})}),Ft(Object(L.a)({},Xe)),be.target.checked){var ge,Le=Xe==null||((ge=Xe.courses)===null||ge===void 0)?void 0:ge.map(function(pe){var Ce;return pe==null||((Ce=pe.exercise_models)===null||Ce===void 0)?void 0:Ce.map(function(We){return We})}),nt=[];Le.map(function(pe){pe.length>0&&(pe==null||pe.map(function(Ce){nt.push(Ce)}))}),Ct([].concat(nt))}else Ct([])}})," \u8003\u6838\u5185\u5BB9"),e.a.createElement("span",{style:{width:277}},"\u5206\u73ED"),e.a.createElement("span",{style:{width:87}},"\u6EE1\u5206\u503C"),e.a.createElement("span",{style:{width:93}},"\u7EC4\u5408\u8BA1\u7B97")),e.a.createElement("div",{style:{display:"flex",alignItems:"center",textAlign:"center",border:"1px solid #f0f0f0",maxHeight:"552px",overflow:"auto"}},e.a.createElement("span",{style:{width:93}},se.name),e.a.createElement("span",{style:{width:194,maxHeight:"552px"}},se==null||((Ne=se.courses)===null||Ne===void 0)?void 0:Ne.map(function(k){var be,fe,ge,Le;return e.a.createElement("div",{className:p.a.textwidth,style:{height:(k==null||((be=k.exercise_models)===null||be===void 0)?void 0:be.length)===0?40:(k==null||((fe=k.exercise_models)===null||fe===void 0)?void 0:fe.length)*40,lineHeight:(k==null||((ge=k.exercise_models)===null||ge===void 0)?void 0:ge.length)===0?40+"px":(k==null||((Le=k.exercise_models)===null||Le===void 0)?void 0:Le.length)*40+"px"}},k.name)})),e.a.createElement("span",{style:{width:324,maxHeight:"552px",textAlign:"left"}},e.a.createElement(me.a.Group,{onChange:function(be){var fe,ge=Xe==null||((fe=Xe.courses)===null||fe===void 0)?void 0:fe.map(function(pe){var Ce;return pe==null||((Ce=pe.exercise_models)===null||Ce===void 0)?void 0:Ce.map(function(We){return We})}),Le=[];ge.map(function(pe){pe.length>0&&(pe==null||pe.map(function(Ce){Le.push(Ce)}))});var nt=Le.filter(function(pe){return be.includes(pe.id)});Ct(nt)},style:{width:"100%"},value:Bt==null?void 0:Bt.map(function(k){return k==null?void 0:k.id})},se==null||((qe=se.courses)===null||qe===void 0)?void 0:qe.map(function(k){var be,fe;return(k==null||((be=k.exercise_models)===null||be===void 0)?void 0:be.length)===0?e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):k==null||((fe=k.exercise_models)===null||fe===void 0)?void 0:fe.map(function(ge){return e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},e.a.createElement(me.a,{onChange:function(nt){ge.checked=nt.target.checked,Ft(Object(L.a)({},se))},value:ge==null?void 0:ge.id},ge.name))})}))),e.a.createElement("span",{style:{width:277,maxHeight:"552px"}},se==null||((at=se.courses)===null||at===void 0)?void 0:at.map(function(k){var be,fe;return(k==null||((be=k.exercise_models)===null||be===void 0)?void 0:be.length)===0?e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):k==null||((fe=k.exercise_models)===null||fe===void 0)?void 0:fe.map(function(ge){return e.a.createElement(u.a,{title:ge.groups},e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},ge.groups))})})),e.a.createElement("span",{style:{width:87,maxHeight:"552px"}},se==null||((vt=se.courses)===null||vt===void 0)?void 0:vt.map(function(k){var be,fe;return(k==null||((be=k.exercise_models)===null||be===void 0)?void 0:be.length)===0?e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):k==null||((fe=k.exercise_models)===null||fe===void 0)?void 0:fe.map(function(ge){return e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},ge.total_score)})})),e.a.createElement("span",{style:{width:93,maxHeight:"552px"}},se==null||((ot=se.courses)===null||ot===void 0)?void 0:ot.map(function(k){var be,fe;return(k==null||((be=k.exercise_models)===null||be===void 0)?void 0:be.length)===0?e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},e.a.createElement(d.a,{disabled:!0})):k==null||((fe=k.exercise_models)===null||fe===void 0)?void 0:fe.map(function(ge){return e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},e.a.createElement(d.a,{min:1,step:.1,parser:In,value:ge==null?void 0:ge.position,onChange:function(nt){ge.position=nt,Ft(Object(L.a)({},se))}}))})}))))},wn=function(se){var Ne,qe,at,vt,ot;return e.a.createElement("div",null,e.a.createElement("div",{style:{display:"flex",height:"38px",background:"#F5F5F5",alignItems:"center",textAlign:"center",marginTop:"20px"}},e.a.createElement("span",{style:{width:93}},"\u8003\u6838\u65B9\u5F0F"),e.a.createElement("span",{style:{width:194}},"\u6559\u5B66\u8BFE\u5802"),e.a.createElement("span",{style:{width:324}},e.a.createElement(me.a,{checked:Bt.length===(se==null?void 0:se.common_count),onChange:function(be){var fe;if(se==null||((fe=se.courses)===null||fe===void 0)||fe.map(function(pe){var Ce;pe==null||((Ce=pe.common_models)===null||Ce===void 0)||Ce.map(function(We){We.checked=be.target.checked})}),Ft(Object(L.a)({},Xe)),be.target.checked){var ge,Le=Xe==null||((ge=Xe.courses)===null||ge===void 0)?void 0:ge.map(function(pe){var Ce;return pe==null||((Ce=pe.common_models)===null||Ce===void 0)?void 0:Ce.map(function(We){return We})}),nt=[];Le.map(function(pe){pe.length>0&&(pe==null||pe.map(function(Ce){nt.push(Ce)}))}),Ct([].concat(nt))}else Ct([])}})," \u8003\u6838\u5185\u5BB9"),e.a.createElement("span",{style:{width:277}},"\u5206\u73ED"),e.a.createElement("span",{style:{width:87}},"\u6EE1\u5206\u503C"),e.a.createElement("span",{style:{width:93}},"\u7EC4\u5408\u8BA1\u7B97")),e.a.createElement("div",{style:{display:"flex",alignItems:"center",textAlign:"center",border:"1px solid #f0f0f0",maxHeight:"552px",overflow:"auto"}},e.a.createElement("span",{style:{width:93}},se.name),e.a.createElement("span",{style:{width:194,maxHeight:"552px"}},se==null||((Ne=se.courses)===null||Ne===void 0)?void 0:Ne.map(function(k){var be,fe,ge,Le;return e.a.createElement("div",{className:p.a.textwidth,style:{height:(k==null||((be=k.common_models)===null||be===void 0)?void 0:be.length)===0?40:(k==null||((fe=k.common_models)===null||fe===void 0)?void 0:fe.length)*40,lineHeight:(k==null||((ge=k.common_models)===null||ge===void 0)?void 0:ge.length)===0?40+"px":(k==null||((Le=k.common_models)===null||Le===void 0)?void 0:Le.length)*40+"px"}},k.name)})),e.a.createElement("span",{style:{width:324,maxHeight:"552px",textAlign:"left"}},e.a.createElement(me.a.Group,{onChange:function(be){var fe,ge=Xe==null||((fe=Xe.courses)===null||fe===void 0)?void 0:fe.map(function(pe){var Ce;return pe==null||((Ce=pe.common_models)===null||Ce===void 0)?void 0:Ce.map(function(We){return We})}),Le=[];ge.map(function(pe){pe.length>0&&(pe==null||pe.map(function(Ce){Le.push(Ce)}))});var nt=Le.filter(function(pe){return be.includes(pe.id)});Ct(nt)},style:{width:"100%"},value:Bt==null?void 0:Bt.map(function(k){return k==null?void 0:k.id})},se==null||((qe=se.courses)===null||qe===void 0)?void 0:qe.map(function(k){var be,fe;return(k==null||((be=k.common_models)===null||be===void 0)?void 0:be.length)===0?e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):k==null||((fe=k.common_models)===null||fe===void 0)?void 0:fe.map(function(ge){return e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},e.a.createElement(me.a,{onChange:function(nt){ge.checked=nt.target.checked,Ft(Object(L.a)({},se))},value:ge==null?void 0:ge.id},ge.name))})}))),e.a.createElement("span",{style:{width:277,maxHeight:"552px"}},se==null||((at=se.courses)===null||at===void 0)?void 0:at.map(function(k){var be,fe;return(k==null||((be=k.common_models)===null||be===void 0)?void 0:be.length)===0?e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):k==null||((fe=k.common_models)===null||fe===void 0)?void 0:fe.map(function(ge){return e.a.createElement(u.a,{title:ge.groups},e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},ge.groups))})})),e.a.createElement("span",{style:{width:87,maxHeight:"552px"}},se==null||((vt=se.courses)===null||vt===void 0)?void 0:vt.map(function(k){var be,fe;return(k==null||((be=k.common_models)===null||be===void 0)?void 0:be.length)===0?e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):k==null||((fe=k.common_models)===null||fe===void 0)?void 0:fe.map(function(ge){return e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},ge.total_score)})})),e.a.createElement("span",{style:{width:93,maxHeight:"552px"}},se==null||((ot=se.courses)===null||ot===void 0)?void 0:ot.map(function(k){var be,fe;return(k==null||((be=k.common_models)===null||be===void 0)?void 0:be.length)===0?e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},e.a.createElement(d.a,{disabled:!0})):k==null||((fe=k.common_models)===null||fe===void 0)?void 0:fe.map(function(ge){return e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},e.a.createElement(d.a,{min:1,step:.1,parser:In,value:ge==null?void 0:ge.position,onChange:function(nt){ge.position=nt,Ft(Object(L.a)({},se))}}))})}))))},kn=function(se){var Ne,qe,at,vt,ot;return e.a.createElement("div",null,e.a.createElement("div",{style:{display:"flex",height:"38px",background:"#F5F5F5",alignItems:"center",textAlign:"center",marginTop:"20px"}},e.a.createElement("span",{style:{width:93}},"\u8003\u6838\u65B9\u5F0F"),e.a.createElement("span",{style:{width:194}},"\u6559\u5B66\u8BFE\u5802"),e.a.createElement("span",{style:{width:324}},e.a.createElement(me.a,{checked:Bt.length===(se==null?void 0:se.group_count),onChange:function(be){var fe;if(se==null||((fe=se.courses)===null||fe===void 0)||fe.map(function(pe){var Ce;pe==null||((Ce=pe.group_models)===null||Ce===void 0)||Ce.map(function(We){We.checked=be.target.checked})}),Ft(Object(L.a)({},Xe)),be.target.checked){var ge,Le=Xe==null||((ge=Xe.courses)===null||ge===void 0)?void 0:ge.map(function(pe){var Ce;return pe==null||((Ce=pe.group_models)===null||Ce===void 0)?void 0:Ce.map(function(We){return We})}),nt=[];Le.map(function(pe){pe.length>0&&(pe==null||pe.map(function(Ce){nt.push(Ce)}))}),Ct([].concat(nt))}else Ct([])}})," \u8003\u6838\u5185\u5BB9"),e.a.createElement("span",{style:{width:277}},"\u5206\u73ED"),e.a.createElement("span",{style:{width:87}},"\u6EE1\u5206\u503C"),e.a.createElement("span",{style:{width:93}},"\u7EC4\u5408\u8BA1\u7B97")),e.a.createElement("div",{style:{display:"flex",alignItems:"center",textAlign:"center",border:"1px solid #f0f0f0",maxHeight:"552px",overflow:"auto"}},e.a.createElement("span",{style:{width:93}},se.name),e.a.createElement("span",{style:{width:194,maxHeight:"552px"}},se==null||((Ne=se.courses)===null||Ne===void 0)?void 0:Ne.map(function(k){var be,fe,ge,Le;return e.a.createElement("div",{className:p.a.textwidth,style:{height:(k==null||((be=k.group_models)===null||be===void 0)?void 0:be.length)===0?40:(k==null||((fe=k.group_models)===null||fe===void 0)?void 0:fe.length)*40,lineHeight:(k==null||((ge=k.group_models)===null||ge===void 0)?void 0:ge.length)===0?40+"px":(k==null||((Le=k.group_models)===null||Le===void 0)?void 0:Le.length)*40+"px"}},k.name)})),e.a.createElement("span",{style:{width:324,maxHeight:"552px",textAlign:"left"}},e.a.createElement(me.a.Group,{onChange:function(be){var fe,ge=Xe==null||((fe=Xe.courses)===null||fe===void 0)?void 0:fe.map(function(pe){var Ce;return pe==null||((Ce=pe.group_models)===null||Ce===void 0)?void 0:Ce.map(function(We){return We})}),Le=[];ge.map(function(pe){pe.length>0&&(pe==null||pe.map(function(Ce){Le.push(Ce)}))});var nt=Le.filter(function(pe){return be.includes(pe.id)});Ct(nt)},style:{width:"100%"},value:Bt==null?void 0:Bt.map(function(k){return k==null?void 0:k.id})},se==null||((qe=se.courses)===null||qe===void 0)?void 0:qe.map(function(k){var be,fe;return(k==null||((be=k.group_models)===null||be===void 0)?void 0:be.length)===0?e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):k==null||((fe=k.group_models)===null||fe===void 0)?void 0:fe.map(function(ge){return e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},e.a.createElement(me.a,{onChange:function(nt){ge.checked=nt.target.checked,Ft(Object(L.a)({},se))},value:ge==null?void 0:ge.id},ge.name))})}))),e.a.createElement("span",{style:{width:277,maxHeight:"552px"}},se==null||((at=se.courses)===null||at===void 0)?void 0:at.map(function(k){var be,fe;return(k==null||((be=k.group_models)===null||be===void 0)?void 0:be.length)===0?e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):k==null||((fe=k.group_models)===null||fe===void 0)?void 0:fe.map(function(ge){return e.a.createElement(u.a,{title:ge.groups},e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},ge.groups))})})),e.a.createElement("span",{style:{width:87,maxHeight:"552px"}},se==null||((vt=se.courses)===null||vt===void 0)?void 0:vt.map(function(k){var be,fe;return(k==null||((be=k.group_models)===null||be===void 0)?void 0:be.length)===0?e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):k==null||((fe=k.group_models)===null||fe===void 0)?void 0:fe.map(function(ge){return e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},ge.total_score)})})),e.a.createElement("span",{style:{width:93,maxHeight:"552px"}},se==null||((ot=se.courses)===null||ot===void 0)?void 0:ot.map(function(k){var be,fe;return(k==null||((be=k.group_models)===null||be===void 0)?void 0:be.length)===0?e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},e.a.createElement(d.a,{disabled:!0})):k==null||((fe=k.group_models)===null||fe===void 0)?void 0:fe.map(function(ge){return e.a.createElement("div",{className:p.a.textwidth,style:{height:40,lineHeight:"40px"}},e.a.createElement(d.a,{min:1,step:.1,parser:In,value:ge==null?void 0:ge.position,onChange:function(nt){ge.position=nt,Ft(Object(L.a)({},se))}}))})}))))};return e.a.createElement(ee.a,{title:"\u6DFB\u52A0\u8BFE\u5802\u6570\u636E",wrapClassName:p.a.modalWrapContainer,visible:St,width:Ve<2?740:1100,footer:e.a.createElement("div",null,Ve<2&&e.a.createElement(w.a,{type:"primary",onClick:Object(_.a)(r.a.mark(function ut(){var se,Ne,qe,at;return r.a.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:if(!(!Tt||Tt=="")){ot.next=3;break}return X.b.warn("\u8BF7\u9009\u62E9\u8BFE\u5802"),ot.abrupt("return");case 3:return ot.next=5,Object(de.a)("/api/ec_courses/1/course_evaluations/search_works.json",{method:"get",params:{course_ids:Tt,list_id:Mt||""}});case 5:Ne=ot.sent,Ft(Ne),qe=Ne==null||((se=Ne.courses)===null||se===void 0)?void 0:se.map(function(k){var be;return k==null||((be=k.shixun_models)===null||be===void 0)?void 0:be.map(function(fe){return fe})}),at=[],qe.map(function(k){k.length>0&&(k==null||k.map(function(be){be.checked&&at.push(be)}))}),Ct([].concat(at)),tt("1"),Fe(2);case 13:case"end":return ot.stop()}},ut)}))},"\u4E0B\u4E00\u6B65"),Ve>=2&&e.a.createElement("div",null,e.a.createElement(w.a,{type:"primary",onClick:Object(_.a)(r.a.mark(function ut(){return r.a.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:It(!1),Fe(0);case 2:case"end":return Ne.stop()}},ut)}))},"\u53D6\u6D88"),e.a.createElement(w.a,{type:"primary",loading:Dt,onClick:Object(_.a)(r.a.mark(function ut(){var se,Ne,qe,at,vt,ot,k,be,fe,ge,Le,nt,pe,Ce,We,Xt,an,Yt;return r.a.wrap(function(tn){for(;;)switch(tn.prev=tn.next){case 0:if(fe=Xe==null||((se=Xe.courses)===null||se===void 0)?void 0:se.map(function(bt){var Nt;return bt==null||((Nt=bt.common_models)===null||Nt===void 0)?void 0:Nt.map(function(Tn){return Tn})}),ge=[],fe.map(function(bt){bt.length>0&&(bt==null||bt.map(function(Nt){Nt.checked&&ge.push(Nt)}))}),Le=Xe==null||((Ne=Xe.courses)===null||Ne===void 0)?void 0:Ne.map(function(bt){var Nt;return bt==null||((Nt=bt.group_models)===null||Nt===void 0)?void 0:Nt.map(function(Tn){return Tn})}),nt=[],Le.map(function(bt){bt.length>0&&(bt==null||bt.map(function(Nt){Nt.checked&&nt.push(Nt)}))}),pe=Xe==null||((qe=Xe.courses)===null||qe===void 0)?void 0:qe.map(function(bt){var Nt;return bt==null||((Nt=bt.exercise_models)===null||Nt===void 0)?void 0:Nt.map(function(Tn){return Tn})}),Ce=[],pe.map(function(bt){bt.length>0&&(bt==null||bt.map(function(Nt){Nt.checked&&Ce.push(Nt)}))}),We=Xe==null||((at=Xe.courses)===null||at===void 0)?void 0:at.map(function(bt){var Nt;return bt==null||((Nt=bt.shixun_models)===null||Nt===void 0)?void 0:Nt.map(function(Tn){return Tn})}),Xt=[],We.map(function(bt){bt.length>0&&(bt==null||bt.map(function(Nt){Nt.checked&&Xt.push(Nt)}))}),jt==="1"?Xt=Bt:jt==="2"?ge=Bt:jt==="3"?nt=Bt:Ce=Bt,un(!0),!(((vt=Xt)===null||vt===void 0?void 0:vt.length)<=0&&((ot=ge)===null||ot===void 0?void 0:ot.length)<=0&&((k=nt)===null||k===void 0?void 0:k.length)<=0&&((be=Ce)===null||be===void 0?void 0:be.length)<=0)){tn.next=18;break}return X.b.info("\u8BF7\u9009\u62E9\u8003\u6838\u5185\u5BB9"),un(!1),tn.abrupt("return");case 18:if(!Mt){tn.next=25;break}return tn.next=21,Object(de.a)("/api/ec_courses/".concat(lt==null?void 0:lt.id,"/course_evaluations/update_online"),{method:"put",body:{id:Mt,course_ids:Tt,shixun_works:Xt,common_works:ge,group_works:nt,exercise_works:Ce}});case 21:an=tn.sent,an&&(It(!1),wt(lt),ue(lt)),tn.next=29;break;case 25:return tn.next=27,Object(de.a)("/api/ec_courses/".concat(lt==null?void 0:lt.id,"/course_evaluations/create_online"),{method:"post",body:{course_ids:Tt,shixun_works:Xt,common_works:ge,group_works:nt,exercise_works:Ce}});case 27:Yt=tn.sent,Yt&&(It(!1),wt(lt),ue(lt));case 29:un(!1),Fe(0);case 31:case"end":return tn.stop()}},ut)}))},"\u4FDD\u5B58"))),onCancel:function(){Fe(0),It(!1)}},e.a.createElement("div",{style:{width:"calc(100% - 184px)",margin:"0 auto"}},e.a.createElement(xe.a,{current:Ve},e.a.createElement(xe.a.Step,{style:{cursor:"pointer"},onClick:function(){Fe(1)},key:1,title:"\u5173\u8054\u8BFE\u5802"}),e.a.createElement(xe.a.Step,{style:{cursor:"pointer"},onClick:Object(_.a)(r.a.mark(function ut(){var se,Ne,qe,at;return r.a.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:if(!(Tt.length<=0)){ot.next=3;break}return X.b.info("\u8BF7\u9009\u62E9\u8BFE\u5802"),ot.abrupt("return");case 3:return ot.next=5,Object(de.a)("/api/ec_courses/1/course_evaluations/search_works.json",{method:"get",params:{course_ids:Tt,list_id:Mt||""}});case 5:Ne=ot.sent,Ft(Ne),qe=Ne==null||((se=Ne.courses)===null||se===void 0)?void 0:se.map(function(k){var be;return k==null||((be=k.shixun_models)===null||be===void 0)?void 0:be.map(function(fe){return fe})}),at=[],qe.map(function(k){k.length>0&&(k==null||k.map(function(be){be.checked&&at.push(be)}))}),Ct([].concat(at)),tt("1"),Fe(2);case 13:case"end":return ot.stop()}},ut)})),key:2,title:"\u914D\u7F6E\u8003\u6838\u65B9\u5F0F\u4E0E\u5185\u5BB9"}))),Ve<2&&e.a.createElement("div",null,e.a.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:30,padding:"0 40px"}},e.a.createElement("div",{style:{flex:1},className:p.a.title},"\u5173\u8054\u8BFE\u5802"),e.a.createElement(x.a.Search,{className:p.a.inputWrap,style:{width:"342px"},onSearch:function(se){Ye.page=1,Ye.name=se,ze(Object(L.a)({},Ye)),en(Ye)},placeholder:"\u8BF7\u8F93\u5165\u8BFE\u5802\u540D\u79F0"})),e.a.createElement("div",null,e.a.createElement(j.a,{style:{marginTop:"10px"},dataSource:mt,rowKey:"id",scroll:{y:300},rowSelection:Ln,onChange:Sn,columns:[{title:"\u8BFE\u5802\u540D\u79F0",dataIndex:"name"},{title:"\u521B\u5EFA\u8005",dataIndex:"creator_name",width:110},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_at",width:133},{title:"\u7ED3\u675F\u65F6\u95F4",dataIndex:"end_time",width:133,render:function(se,Ne,qe){return se||"- -"}}],pagination:{pageSize:Ye.per_page,total:Ye.total,current:Ye.page,showQuickJumper:!0,hideOnSinglePage:!1,showSizeChanger:!0,position:["bottomCenter"],showTotal:function(se){return e.a.createElement("span",{className:"mr10"},"\u5171",e.a.createElement("span",{className:"c-orange"},se),"\u6761\u6570\u636E")}}}))),Ve===2&&e.a.createElement("div",{className:p.a.addCourseTabsContainer},e.a.createElement(M.a,{defaultActiveKey:"1",activeKey:jt,onChange:function(se){if(tt(se),se==="1"){var Ne,qe=Xe==null||((Ne=Xe.courses)===null||Ne===void 0)?void 0:Ne.map(function(Ce){var We;return Ce==null||((We=Ce.shixun_models)===null||We===void 0)?void 0:We.map(function(Xt){return Xt})}),at=[];qe.map(function(Ce){Ce.length>0&&(Ce==null||Ce.map(function(We){We.checked&&at.push(We)}))}),Ct([].concat(at))}else if(se==="2"){var vt,ot=Xe==null||((vt=Xe.courses)===null||vt===void 0)?void 0:vt.map(function(Ce){var We;return Ce==null||((We=Ce.common_models)===null||We===void 0)?void 0:We.map(function(Xt){return Xt})}),k=[];ot.map(function(Ce){Ce.length>0&&(Ce==null||Ce.map(function(We){We.checked&&k.push(We)}))}),Ct([].concat(k))}else if(se==="3"){var be,fe=Xe==null||((be=Xe.courses)===null||be===void 0)?void 0:be.map(function(Ce){var We;return Ce==null||((We=Ce.group_models)===null||We===void 0)?void 0:We.map(function(Xt){return Xt})}),ge=[];fe.map(function(Ce){Ce.length>0&&(Ce==null||Ce.map(function(We){We.checked&&ge.push(We)}))}),Ct([].concat(ge))}else{var Le,nt=Xe==null||((Le=Xe.courses)===null||Le===void 0)?void 0:Le.map(function(Ce){var We;return Ce==null||((We=Ce.exercise_models)===null||We===void 0)?void 0:We.map(function(Xt){return Xt})}),pe=[];nt.map(function(Ce){Ce.length>0&&(Ce==null||Ce.map(function(We){We.checked&&pe.push(We)}))}),Ct([].concat(pe))}}},e.a.createElement(M.a.TabPane,{tab:"\u5B9E\u8BAD\u4F5C\u4E1A",key:1},Mn(),Zn(Object(L.a)(Object(L.a)({},Xe),{},{name:"\u5B9E\u8BAD\u4F5C\u4E1A"}))),e.a.createElement(M.a.TabPane,{tab:"\u666E\u901A\u4F5C\u4E1A",key:2},Mn(),wn(Object(L.a)(Object(L.a)({},Xe),{},{name:"\u666E\u901A\u4F5C\u4E1A"}))),e.a.createElement(M.a.TabPane,{tab:"\u5206\u7EC4\u4F5C\u4E1A",key:3},Mn(),kn(Object(L.a)(Object(L.a)({},Xe),{},{name:"\u5206\u7EC4\u4F5C\u4E1A"}))),e.a.createElement(M.a.TabPane,{tab:"\u5728\u7EBF\u8003\u8BD5",key:4},Mn(),_n(Object(L.a)(Object(L.a)({},Xe),{},{name:"\u5728\u7EBF\u8003\u8BD5"}))))))}var I=c,O=t("LvDl"),ae=t("BdwD");function v(Ge){var Lt,St,It,lt=Ge.isshow,Mt=Ge.setishow,wt=Ge.modalparams,ue=Ge.getcourse_evaluations,Me={page:1,per_page:20,total:0,name:""},Pe=Object(s.useState)(0),ve=Object(E.a)(Pe,2),Je=ve[0],Ve=ve[1],Fe=Object(s.useState)(Me),ke=Object(E.a)(Fe,2),He=ke[0],Ye=ke[1],ze=Object(s.useState)([]),rt=Object(E.a)(ze,2),ft=rt[0],mt=rt[1],At=Object(s.useState)([]),zt=Object(E.a)(At,2),kt=zt[0],Tt=zt[1],Ot=Object(s.useState)([]),dn=Object(E.a)(Ot,2),ln=dn[0],Xe=dn[1],Ft=Object(s.useState)({}),gn=Object(E.a)(Ft,2),ht=gn[0],Bt=gn[1],Ct=Object(s.useState)(),gt=Object(E.a)(Ct,2),Rt=gt[0],jt=gt[1],tt=Object(s.useState)(!1),Ze=Object(E.a)(tt,2),st=Ze[0],Dt=Ze[1],un=Object(s.useState)("1"),en=Object(E.a)(un,2),En=en[0],Sn=en[1],Ln=Object(s.useRef)(Me),In=Object(s.useState)(null),Mn=Object(E.a)(In,2),Zn=Mn[0],_n=Mn[1],wn=Object(s.useRef)(null),kn=Object(s.useRef)(""),ut=Object(s.useRef)([]);Object(s.useEffect)(function(){lt&&(qe(He),Sn("1"))},[lt]);var se=function(ge){_n(ge),wn.current=ge,be(Object(O.cloneDeep)(ut.current))},Ne=function(ge){var Le=ge;return Le=isNaN(Le)?"":Le,Le[0]==="."&&(Le=""),Le};function qe(fe){return at.apply(this,arguments)}function at(){return at=Object(_.a)(r.a.mark(function fe(ge){var Le,nt,pe;return r.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.next=2,Object(de.a)("/api/ec_courses/".concat(wt.id,"/evaluations/evaluation_settings.json"),{method:"get",params:ge});case 2:nt=We.sent,mt(nt),jt((nt==null||((Le=nt.ec_course_targets)===null||Le===void 0)?void 0:Le.length)*75+227+240+32),pe=nt.ec_course_targets,pe.unshift({content:"11"}),ut.current=pe,be(pe);case 9:case"end":return We.stop()}},fe)})),at.apply(this,arguments)}function vt(fe){return ot.apply(this,arguments)}function ot(){return ot=Object(_.a)(r.a.mark(function fe(ge){var Le,nt,pe;return r.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.next=2,Object(de.a)("/api/ec_courses/".concat(wt.id,"/evaluations/evaluation_settings_subitems.json"),{method:"get",params:ge});case 2:nt=We.sent,pe=[],nt.evaluations.map(function(Xt){var an;Xt==null||((an=Xt.subitems)===null||an===void 0)||an.map(function(Yt){pe.push(Yt)})}),jt((nt==null||((Le=nt.ec_course_targets)===null||Le===void 0)?void 0:Le.length)*75+227+240+32),Bt({}),Bt(nt),Xe(pe);case 9:case"end":return We.stop()}},fe)})),ot.apply(this,arguments)}var k=function(){var fe=Object(_.a)(r.a.mark(function ge(Le){var nt,pe,Ce,We,Xt,an;return r.a.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return _n(null),We=wn.current,wn.current=null,Xt=Le?"/api/ec_courses/".concat(wt.id,"/evaluations/update_evaluation_settings"):"/api/ec_courses/".concat(wt.id,"/evaluations/update_evaluation_setting_subitem"),Cn.next=6,Object(de.a)(Xt,{method:"post",body:{random_number:We==null||((nt=We.split("-"))===null||nt===void 0)?void 0:nt[1],ec_course_target_id:We==null||((pe=We.split("-"))===null||pe===void 0)?void 0:pe[0],weight:kn.current,ec_course_evaluation_subitem_ids:Le?null:[We==null||((Ce=We.split("-"))===null||Ce===void 0)?void 0:Ce[2]]}});case 6:an=Cn.sent,an.status===0&&(X.b.success("\u4FDD\u5B58\u6210\u529F"),Le?(qe(He),ue(wt)):(vt(He),ue(wt)));case 8:case"end":return Cn.stop()}},ge)}));return function(Le){return fe.apply(this,arguments)}}(),be=function(ge){var Le=Object(O.cloneDeep)(ge);Le[0].title=e.a.createElement("div",{className:p.a.line},e.a.createElement("span",null,"\u8BFE\u7A0B\u76EE\u6807"),e.a.createElement("span",null,"\u8003\u6838\u65B9\u5F0F")),Le[0].dataIndex="work_name",Le[0].width=180,Le[0].fixed="left",Le[0].render=function(pe,Ce){return e.a.createElement("div",{className:p.a.omit},e.a.createElement("span",{title:pe},pe),Ce.warning&&e.a.createElement(u.a,{title:"\u8BE5\u8003\u6838\u65B9\u5F0F\u5BF9\u5E94\u76EE\u6807\u5360\u6BD4\u4E4B\u548C\u4E3A0\uFF0C\u53EF\u80FD\u5BFC\u81F4\u8BA1\u7B97\u7ED3\u679C\u4E0D\u51C6\u786E"},e.a.createElement("i",{style:{color:"#FF9D18"},className:"iconfont icon-hongsejingshi ml5"})))};var nt=function(Ce,We,Xt,an){var Yt,Cn,tn="",bt="";Ce&&(tn=Ce.split("-")[0],bt=Ce.split("-")[1]);var Nt=((Yt=Ln.current)===null||Yt===void 0?void 0:Yt.tab)==="1"?tn:bt,Tn=We==null||((Cn=We.relation[an-1])===null||Cn===void 0)?void 0:Cn.weight;return e.a.createElement("span",null,wn.current==="".concat(Xt,"-").concat(We.random_number)?e.a.createElement(d.a,{key:"".concat(Xt,"-").concat(We.random_number),autoFocus:!0,defaultValue:Tn,onBlur:function(){return k(!0)},step:.1,parser:Ne,onChange:function(Jn){return kn.current=Jn},style:{width:100}}):e.a.createElement(s.Fragment,{key:"".concat(Xt,"-").concat(We.random_number)},e.a.createElement("span",{className:p.a.tbl,onClick:function(){return se("".concat(Xt,"-").concat(We.random_number))},style:{color:Nt==="H"?"#0152D9":Nt==="M"?"#07C160":Nt==="L"?"#FF9D18":"#0152d9"}},Tn?e.a.createElement("span",null,Tn):"\u8F93\u5165\u6570\u5B57")))};Le=Le.map(function(pe,Ce){return Ce?{title:e.a.createElement("span",{key:Math.random()},e.a.createElement(u.a,{title:pe.content},e.a.createElement("span",null,"\u76EE\u6807"+Ce)),pe.warning&&e.a.createElement(u.a,{title:"\u8BE5\u76EE\u6807\u4E0B\u8003\u6838\u65B9\u5F0F\u5360\u6BD4\u4E4B\u548C\u4E0D\u7B49\u4E8E1 \uFF0C\u53EF\u80FD\u5BFC\u81F4\u8BA1\u7B97\u7ED3\u679C\u4E0D\u51C6\u786E\uFF01"},e.a.createElement("i",{style:{color:"#FF9D18"},className:"iconfont icon-hongsejingshi ml5"}))),dataIndex:"content",width:Ce===Le.length-1?120:"",fixed:Ce===Le.length-1?"right":"",render:function(Xt,an){return nt(Xt,an,pe.id,Ce)}}:pe}),Tt(Le||[])};return e.a.createElement(ee.a,{title:"\u8BBE\u7F6E\u8003\u6838\u5360\u6BD4",visible:lt,width:Rt>1060?1060:Rt,footer:null,centered:!0,onCancel:function(){Mt(!1)}},e.a.createElement(M.a,{activeKey:En,onChange:function(ge){Sn(ge),ge==="1"?qe(He):vt(He)}},e.a.createElement(M.a.TabPane,{tab:"\u8BBE\u7F6E\u8003\u6838\u65B9\u5F0F\u5360\u6BD4",key:1},e.a.createElement("div",{style:{marginTop:"30px",color:"#464F66",fontSize:"14px"}},e.a.createElement("p",null,"\u8BF4\u660E\uFF1A"),e.a.createElement("p",null,"\u6BCF\u4E00\u4E2A\u8BFE\u7A0B\u76EE\u6807\u4E0B\u7684\u8003\u6838\u65B9\u5F0F\u5360\u6BD4\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E1\u3002")),e.a.createElement(j.a,{columns:kt,bordered:!0,scroll:{x:2e3},dataSource:ft==null?void 0:ft.evaluations,pagination:!1})),e.a.createElement(M.a.TabPane,{tab:"\u8BBE\u7F6E\u8003\u6838\u5185\u5BB9\u5360\u6BD4",key:2},e.a.createElement("div",{style:{marginTop:"30px",color:"#464F66",fontSize:"14px"}},e.a.createElement("p",null,"\u8BF4\u660E\uFF1A"),e.a.createElement("p",null,"\u6BCF\u4E00\u4E2A\u8003\u6838\u65B9\u5F0F\u4E0B\u7684\u8003\u6838\u5185\u5BB9\u5360\u6BD4\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E1\u3002")),e.a.createElement("div",{style:{overflow:"auto",width:"100%"}},e.a.createElement("div",{style:{display:"flex",background:"#F5F5F5",height:"78px"}},e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",borderLeft:"1px solid #E0E2EC",borderTop:"1px solid #E0E2EC",width:"240px",paddingLeft:"30px",lineHeight:"78px",flexShrink:0}},"\u8003\u6838\u65B9\u5F0F"),e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",borderTop:"1px solid #E0E2EC",width:"227px",lineHeight:"78px",textAlign:"center",flexShrink:0}},"\u8003\u6838\u5185\u5BB9"),ht==null||((Lt=ht.ec_course_targets)===null||Lt===void 0)?void 0:Lt.map(function(fe,ge){var Le;return e.a.createElement("div",{style:{borderRight:ge!=(ht==null||((Le=ht.ec_course_targets)===null||Le===void 0)?void 0:Le.length)-1&&"1px solid #E0E2EC",width:"75px",lineHeight:"78px",textAlign:"center",flexShrink:0,background:"#F5F5F5",borderTop:"1px solid #E0E2EC"}},e.a.createElement(u.a,{title:fe.content},e.a.createElement("span",null,"\u76EE\u6807"+(ge+1))),fe.warning&&e.a.createElement(u.a,{title:"\u8BE5\u76EE\u6807\u4E0B\u6709\u8003\u6838\u65B9\u5F0F\u7684\u8003\u6838\u5185\u5BB9\u5360\u6BD4\u4E4B\u548C\u4E0D\u7B49\u4E8E1 \uFF0C\u53EF\u80FD\u5BFC\u81F4\u8BA1\u7B97\u7ED3\u679C\u4E0D\u51C6\u786E\uFF01"},e.a.createElement("i",{style:{color:"#FF9D18"},className:"iconfont icon-hongsejingshi ml5"})))})),e.a.createElement("div",null,e.a.createElement("div",{style:{maxHeight:"550px"}},(ht==null||((St=ht.evaluations)===null||St===void 0)?void 0:St.length)<=0&&e.a.createElement(ae.a,{customText:"\u5F53\u524D\u6682\u65E0\u6570\u636E"}),ht==null||((It=ht.evaluations)===null||It===void 0)?void 0:It.map(function(fe,ge){var Le,nt;return e.a.createElement("div",{style:{height:"100%",display:"flex",borderLeft:"1px solid #E0E2EC"}},e.a.createElement("div",{style:{width:"240px",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},fe.work_name),e.a.createElement("div",{style:{display:"flex",flexDirection:"column",borderRight:"1px solid #E0E2EC",width:"227px",flexShrink:0}},fe==null||((Le=fe.subitems)===null||Le===void 0)?void 0:Le.map(function(pe,Ce){return e.a.createElement("div",{style:{borderBottom:"1px solid #E0E2EC",paddingLeft:8,paddingRight:12,display:"flex",alignItems:"center"}},e.a.createElement(u.a,{title:pe==null?void 0:pe.name},e.a.createElement("div",{className:p.a.textone,style:{height:"42px",lineHeight:"42px"}},pe==null?void 0:pe.name)),pe.warning&&e.a.createElement(u.a,{title:"\u8BE5\u8003\u6838\u5185\u5BB9\u5BF9\u5E94\u76EE\u6807\u5360\u6BD4\u4E4B\u548C\u4E3A0\uFF0C\u53EF\u80FD\u5BFC\u81F4\u8BA1\u7B97\u7ED3\u679C\u4E0D\u51C6\u786E"},e.a.createElement("i",{style:{color:"#FF9D18"},className:"iconfont icon-hongsejingshi ml5"})))})),ht==null||((nt=ht.ec_course_targets)===null||nt===void 0)?void 0:nt.map(function(pe,Ce){var We,Xt;return e.a.createElement("div",{style:{display:"flex",flexDirection:"column",borderRight:"1px solid #E0E2EC",width:Ce!=(ht==null||((We=ht.ec_course_targets)===null||We===void 0)?void 0:We.length)-1?"75px":"74px",flexShrink:0}},fe==null||((Xt=fe.subitems)===null||Xt===void 0)?void 0:Xt.map(function(an,Yt){var Cn,tn,bt;return e.a.createElement(d.a,{key:"".concat(Ce,"-").concat(Yt),parser:Ne,step:.1,disabled:st,onBlur:function(){var Nt=Object(_.a)(r.a.mark(function Tn(da){var Jn;return r.a.wrap(function(ra){for(;;)switch(ra.prev=ra.next){case 0:return Dt(!0),ra.next=3,Object(de.a)("/api/ec_courses/".concat(wt.id,"/evaluations/update_evaluation_setting_subitem"),{method:"post",body:{random_number:an==null?void 0:an.random_number,ec_course_target_id:pe==null?void 0:pe.id,weight:da.target.value,ec_course_evaluation_subitem_ids:an==null?void 0:an.ec_course_evaluation_subitem_ids}});case 3:Jn=ra.sent,Dt(!1),Jn&&(vt(He),ue(wt));case 6:case"end":return ra.stop()}},Tn)}));return function(Tn){return Nt.apply(this,arguments)}}(),defaultValue:an==null||((Cn=an.relation)===null||Cn===void 0||((tn=Cn[Ce])===null||tn===void 0))?void 0:tn.weight,style:{height:43,lineHeight:"43px",width:Ce!=(ht==null||((bt=ht.ec_course_targets)===null||bt===void 0)?void 0:bt.length)-1?"75px":"74px"}})}))}))})))))))}var U=v,ie=t("zmGA"),Oe=t.n(ie),Te=t("g+eg"),Ke=function(Lt){var St,It,lt,Mt,wt=Lt.user,ue={page:1,per_page:20,total:0,ec_major_school_id:null,ec_year_id:null,sort_by:null,direction:null,id:null},Me=Object(s.useState)(ue),Pe=Object(E.a)(Me,2),ve=Pe[0],Je=Pe[1],Ve=Object(s.useState)([]),Fe=Object(E.a)(Ve,2),ke=Fe[0],He=Fe[1],Ye=Object(s.useState)([]),ze=Object(E.a)(Ye,2),rt=ze[0],ft=ze[1],mt=Object(s.useState)([]),At=Object(E.a)(mt,2),zt=At[0],kt=At[1],Tt=Object(s.useState)([]),Ot=Object(E.a)(Tt,2),dn=Ot[0],ln=Ot[1],Xe=Object(s.useState)([]),Ft=Object(E.a)(Xe,2),gn=Ft[0],ht=Ft[1],Bt=Object(s.useState)(),Ct=Object(E.a)(Bt,2),gt=Ct[0],Rt=Ct[1],jt=Object(s.useState)(),tt=Object(E.a)(jt,2),Ze=tt[0],st=tt[1],Dt=Object(s.useState)([]),un=Object(E.a)(Dt,2),en=un[0],En=un[1],Sn=Object(s.useState)(!1),Ln=Object(E.a)(Sn,2),In=Ln[0],Mn=Ln[1],Zn=Object(s.useState)([]),_n=Object(E.a)(Zn,2),wn=_n[0],kn=_n[1],ut=Object(s.useState)(!1),se=Object(E.a)(ut,2),Ne=se[0],qe=se[1],at=Object(s.useRef)(),vt=Object(s.useState)(!1),ot=Object(E.a)(vt,2),k=ot[0],be=ot[1],fe=Object(s.useState)([]),ge=Object(E.a)(fe,2),Le=ge[0],nt=ge[1],pe=Object(B.h)(),Ce=Object(s.useState)(!1),We=Object(E.a)(Ce,2),Xt=We[0],an=We[1],Yt=Object(s.useState)(!1),Cn=Object(E.a)(Yt,2),tn=Cn[0],bt=Cn[1],Nt=Object(s.useState)(!1),Tn=Object(E.a)(Nt,2),da=Tn[0],Jn=Tn[1],Fa=Object(s.useState)({}),ra=Object(E.a)(Fa,2),bn=ra[0],ma=ra[1],Qa=Object(s.useState)([]),Ba=Object(E.a)(Qa,2),Ka=Ba[0],Ya=Ba[1],Za=Object(s.useState)("1"),qn=Object(E.a)(Za,2),ga=qn[0],Wa=qn[1],wa=Object(s.useState)({name:"",filename:"",type:"",className:"",data:"",close:!0,hasMask:!0,style:{position:"fixed",zIndex:9999,background:"rgba(0,0,0,.7)"},monacoEditor:{value:"",language:"",theme:"vs",options:{readOnly:!0}}}),Hn=Object(E.a)(wa,2),Xn=Hn[0],Qn=Hn[1],Aa=Object(s.useState)(!1),ha=Object(E.a)(Aa,2),ba=ha[0],Da=ha[1],qa=Object(s.useState)(),Ta=Object(E.a)(qa,2),Bn=Ta[0],Ea=Ta[1];Object(s.useEffect)(function(){var J;wt!=null&&(J=wt.userInfo)!==null&&J!==void 0&&J.school_id&&za()},[wt==null||((St=wt.userInfo)===null||St===void 0)?void 0:St.school_id]);var Gn=function(){var J=Object(_.a)(r.a.mark(function Be(De){var we;return r.a.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:Te.a.setItem(wt==null||((we=wt.userInfo)===null||we===void 0)?void 0:we.login,[De==null?void 0:De.ec_major_school_id,De==null?void 0:De.ec_year_id]),Ha(De),Na(De),ya(De),ia(De),sa(De),xa(De);case 7:case"end":return Re.stop()}},Be)}));return function(De){return J.apply(this,arguments)}}();function fa(){ln([]),ht([]),st([]),Rt([]),kn([]),Ea([]),En([])}var xa=function(){var J=Object(_.a)(r.a.mark(function Be(De){var we;return r.a.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.next=2,Object(de.a)("/api/ec_years/".concat(De.ec_year_id,"/graduation_subitems.json"),{method:"get"});case 2:we=Re.sent,En((we==null?void 0:we.graduation_subitems)||[]);case 4:case"end":return Re.stop()}},Be)}));return function(De){return J.apply(this,arguments)}}(),Ha=function(){var J=Object(_.a)(r.a.mark(function Be(De){var we;return r.a.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.next=2,Object(de.a)("/api/ec_years/".concat(De.ec_year_id,"/ec_courses/get_course_teachers.json"),{method:"get",params:De});case 2:we=Re.sent,ln(we==null?void 0:we.data);case 4:case"end":return Re.stop()}},Be)}));return function(De){return J.apply(this,arguments)}}(),Na=function(){var J=Object(_.a)(r.a.mark(function Be(De){var we;return r.a.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.next=2,Object(de.a)("/api/ec_courses/".concat(De.id,"/ec_course_standards.json"),{method:"get",params:{ec_course_id:De==null?void 0:De.id}});case 2:we=Re.sent,ht(we==null?void 0:we.data);case 4:case"end":return Re.stop()}},Be)}));return function(De){return J.apply(this,arguments)}}(),ya=function(){var J=Object(_.a)(r.a.mark(function Be(De){var we;return r.a.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.next=2,Object(de.a)("/api/ec_courses/".concat(De.id,"/course_targets.json"),{method:"get",params:{ec_course_id:De==null?void 0:De.id}});case 2:we=Re.sent,st(we==null?void 0:we.course_targets),Rt(we==null?void 0:we.course_targets);case 5:case"end":return Re.stop()}},Be)}));return function(De){return J.apply(this,arguments)}}(),Oa={onRemove:function(){nt([])},beforeUpload:function(Be){if(console.log(Be),(Be==null?void 0:Be.size)>1024*1024*50)return X.b.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;var De=[];return De.push(Be),nt([].concat(De)),!1},fileList:Le,accept:".xls,.xlsx"},ia=function(){var J=Object(_.a)(r.a.mark(function Be(De){var we;return r.a.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.next=2,Object(de.a)("/api/ec_courses/".concat(De==null?void 0:De.id,"/course_evaluations.json"),{method:"get",params:{ec_course_id:De==null?void 0:De.id}});case 2:we=Re.sent,kn(we==null?void 0:we.course_evaluation_tops);case 4:case"end":return Re.stop()}},Be)}));return function(De){return J.apply(this,arguments)}}(),sa=function(){var J=Object(_.a)(r.a.mark(function Be(De){var we;return r.a.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.next=2,Object(de.a)("/api/ec_courses/".concat(De==null?void 0:De.id,"/evaluations.json"),{method:"get",params:{ec_course_id:De==null?void 0:De.id}});case 2:we=Re.sent,Ea(we==null?void 0:we.data);case 4:case"end":return Re.stop()}},Be)}));return function(De){return J.apply(this,arguments)}}(),za=function(){var J=Object(_.a)(r.a.mark(function Be(){var De,we,it,Re,Pt,Ut,$e,An,pt,_t,Qt,hn,cn,xn,ea,jn,ja,$a,ta,Xa,na,La;return r.a.wrap(function(Fn){for(;;)switch(Fn.prev=Fn.next){case 0:return Fn.next=2,Object(de.a)("/api/schools/".concat(wt==null||((De=wt.userInfo)===null||De===void 0)?void 0:De.school_id,"/ec_majors/get_major_list.json"),{method:"get"});case 2:if(jn=Fn.sent,!((jn==null||((we=jn.data)===null||we===void 0)?void 0:we.length)<=0)){Fn.next=7;break}return bt(!0),Je(Object(L.a)({},ve)),Fn.abrupt("return");case 7:return He((jn==null?void 0:jn.data)||[]),ja=Te.a.getItem(wt==null||((it=wt.userInfo)===null||it===void 0)?void 0:it.login),$a=Number(pe==null||((Re=pe.query)===null||Re===void 0)?void 0:Re.ec_major_school_id)||ja[0]||(jn==null||((Pt=jn.data)===null||Pt===void 0||((Ut=Pt[0])===null||Ut===void 0))?void 0:Ut.ec_major_school_id),Fn.next=12,Object(de.a)("/api/ec_major_schools/".concat($a,"/ec_years/get_year_list.json"),{method:"get"});case 12:if(ta=Fn.sent,!((ta==null||(($e=ta.data)===null||$e===void 0)?void 0:$e.length)<=0)){Fn.next=18;break}return bt(!0),ve.ec_year_id="",Je(Object(L.a)({},ve)),Fn.abrupt("return");case 18:return ft((ta==null?void 0:ta.data)||[]),Xa=Number(pe==null||((An=pe.query)===null||An===void 0)?void 0:An.ec_year_id)||ja[1]||(ta==null||((pt=ta.data)===null||pt===void 0||((_t=pt[0])===null||_t===void 0))?void 0:_t.ec_year_id),Fn.next=22,Object(de.a)("/api/ec_years/".concat(Xa,"/ec_courses/get_courses.json"),{method:"get"});case 22:return na=Fn.sent,kt((na==null?void 0:na.data)||[]),Fn.next=26,Object(de.a)("/api/ec_years/".concat(Xa,"/graduation_subitems.json"),{method:"get"});case 26:if(La=Fn.sent,ve.ec_major_school_id=$a,ve.ec_year_id=Xa,ve.id=pe!=null&&(Qt=pe.query)!==null&&Qt!==void 0&&Qt.course?Number(pe==null||((hn=pe.query)===null||hn===void 0)?void 0:hn.course):na==null||((cn=na.data)===null||cn===void 0||((xn=cn[0])===null||xn===void 0))?void 0:xn.id,!((na==null||((ea=na.data)===null||ea===void 0)?void 0:ea.length)<=0)){Fn.next=35;break}return bt(!0),Fn.abrupt("return");case 35:bt(!1);case 36:En((La==null?void 0:La.graduation_subitems)||[]),Je(ve),Gn(ve),console.log("ec_major_school_id",$a);case 40:case"end":return Fn.stop()}},Be)}));return function(){return J.apply(this,arguments)}}(),Va=function(){var J=Object(_.a)(r.a.mark(function Be(De){var we,it,Re,Pt,Ut,$e;return r.a.wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:return pt.next=2,Object(de.a)("/api/ec_major_schools/".concat(De,"/ec_years/get_year_list.json"),{method:"get"});case 2:if($e=pt.sent,!(($e==null||((we=$e.data)===null||we===void 0)?void 0:we.length)<=0)){pt.next=10;break}return bt(!0),ve.ec_year_id="",Je(Object(L.a)({},ve)),pt.abrupt("return");case 10:bt(!1);case 11:ve.ec_major_school_id=De,ve.ec_year_id=$e==null||((it=$e.data)===null||it===void 0||((Re=it[0])===null||Re===void 0))?void 0:Re.ec_year_id,ft(($e==null?void 0:$e.data)||[]),Je(ve),pa($e==null||((Pt=$e.data)===null||Pt===void 0||((Ut=Pt[0])===null||Ut===void 0))?void 0:Ut.ec_year_id);case 16:case"end":return pt.stop()}},Be)}));return function(De){return J.apply(this,arguments)}}(),pa=function(){var J=Object(_.a)(r.a.mark(function Be(De){var we,it,Re,Pt;return r.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.next=2,Object(de.a)("/api/ec_years/".concat(De,"/ec_courses/get_courses.json"),{method:"get"});case 2:if(Pt=$e.sent,!((Pt==null||((we=Pt.data)===null||we===void 0)?void 0:we.length)<=0)){$e.next=11;break}return bt(!0),ve.id="",Je(Object(L.a)({},ve)),fa(),$e.abrupt("return");case 11:bt(!1);case 12:ve.ec_year_id=De,ve.id=Pt==null||((it=Pt.data)===null||it===void 0||((Re=it[0])===null||Re===void 0))?void 0:Re.id,kt((Pt==null?void 0:Pt.data)||[]),Je(ve),Gn(ve);case 17:case"end":return $e.stop()}},Be)}));return function(De){return J.apply(this,arguments)}}(),Ra=function(){var J=Object(_.a)(r.a.mark(function Be(De){var we;return r.a.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.next=2,Object(de.a)("/api/ec_years/1/ec_courses/get_formulas.json",{method:"get",params:{ec_course_id:De}});case 2:we=Re.sent,Je(ve),ma(we);case 5:case"end":return Re.stop()}},Be)}));return function(De){return J.apply(this,arguments)}}(),_a=function(Be,De){if(ve.page=1,ve[De]=Be,De==="ec_major_school_id"){Va(Be);return}De==="ec_year_id"&&(Je(Object(L.a)({},ve)),pa(Be)),De==="id"&&(Je(Object(L.a)({},ve)),Gn(ve))},Ua={beforeUpload:function(){var J=Object(_.a)(r.a.mark(function De(we){var it,Re;return r.a.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:if(console.log(we),!((we==null?void 0:we.size)>1024*1024*50)){Ut.next=4;break}return X.b.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),Ut.abrupt("return",!1);case 4:return it=new FormData,it.append("file",we),Ut.next=8,Object(de.a)("/api/ec_courses/".concat(ve==null?void 0:ve.id,"/ec_course_standards.json"),{method:"post",body:it},!0);case 8:return Re=Ut.sent,Na(ve),sa(ve),Ut.abrupt("return",!1);case 12:case"end":return Ut.stop()}},De)}));function Be(De){return J.apply(this,arguments)}return Be}(),fileList:[]};return e.a.createElement("div",{className:p.a.wrap},e.a.createElement("div",{className:p.a.title},"\u8BFE\u7A0B\u8BBE\u7F6E"),e.a.createElement("div",{style:{clear:"both",marginTop:"40px"}}),e.a.createElement("div",{className:p.a.control},e.a.createElement("div",{className:p.a.label},"\u8BA4\u8BC1\u4E13\u4E1A"),e.a.createElement(f.a,{style:{width:240},placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A",value:ve==null?void 0:ve.ec_major_school_id,onChange:function(Be){return _a(Be,"ec_major_school_id")}},ke==null?void 0:ke.map(function(J){return e.a.createElement(f.a.Option,{value:J.ec_major_school_id},J.name)})),e.a.createElement("div",{className:p.a.label},"\u8BA4\u8BC1\u5C4A\u522B"),e.a.createElement(f.a,{disabled:tn&&rt.length<=0,style:{width:140},placeholder:"\u8BF7\u9009\u62E9\u5C4A\u522B",value:ve==null?void 0:ve.ec_year_id,onChange:function(Be){return _a(Be,"ec_year_id")}},rt==null?void 0:rt.map(function(J){return e.a.createElement(f.a.Option,{value:J.ec_year_id},J.year)})),e.a.createElement("div",{className:p.a.label},"\u8BFE\u7A0B"),e.a.createElement(f.a,{disabled:tn,style:{width:140},placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B",value:ve==null?void 0:ve.id,onChange:function(Be){return _a(Be,"id")}},zt==null?void 0:zt.map(function(J){return e.a.createElement(f.a.Option,{value:J.id},J.name)}))),e.a.createElement("div",{className:p.a.title},"\u8BFE\u7A0B\u6559\u5E08"),e.a.createElement("div",{className:p.a.teachcount,style:{display:"flex",marginTop:20,marginBottom:16}},dn==null?void 0:dn.map(function(J,Be){return e.a.createElement("div",{style:{display:"flex",marginLeft:Be===0?"20px":"47px"}},e.a.createElement("img",{src:Oe.a,style:{width:"50px",height:"50px",borderRadius:"50%",zIndex:0}}),e.a.createElement("div",{style:{marginLeft:"8px"}},e.a.createElement("p",{style:{marginBottom:"0px"}},J.name),e.a.createElement("p",{style:{marginTop:"10px",height:"22px",borderRadius:"0px 12px 12px 0px",background:"#DFEAFF",marginLeft:"-30px",lineHeight:"22px",paddingLeft:32,display:"inline-block",paddingRight:16,color:"#0152D9"}},J.pro)))})),e.a.createElement("div",{style:{height:"20px",background:"#fafafa"}}),e.a.createElement("div",{className:p.a.title,style:{display:"flex",justifyContent:"space-between"}},"\u8BFE\u7A0B\u6807\u51C6",e.a.createElement("span",null,e.a.createElement(G.a,Ua,e.a.createElement(w.a,{disabled:tn,type:"primary",style:{marginRight:"20px"},onClick:function(){}},e.a.createElement("i",{style:{marginRight:"8px"},className:"iconfont icon-shangchuan3"})," \u4E0A\u4F20\u8BFE\u7A0B\u6807\u51C6")))),e.a.createElement("div",{className:p.a.teachcount},e.a.createElement(j.a,{style:{marginTop:"20px",marginBottom:20,padding:"0px 20px"},dataSource:gn,pagination:!1,columns:[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",render:function(Be,De,we){return ve.per_page*(ve.page-1)+we+1}},{title:"\u6587\u4EF6\u540D\u79F0",dataIndex:"name",width:"50%",key:"name"},{title:"\u4E0A\u4F20\u65F6\u95F4",dataIndex:"created_at",key:"created_at"},{title:"\u64CD\u4F5C",dataIndex:"id",key:"id",render:function(Be,De,we){return e.a.createElement("div",null,e.a.createElement("i",{onClick:function(){console.log(Be,De,we);var Re=["office","pdf","image","other","video","audio","download"];if(!Re.includes(De.file_type)){X.b.info("\u5F53\u524D\u7C7B\u578B\u6682\u4E0D\u652F\u6301\u9884\u89C8");return}Qn(Object(L.a)(Object(L.a)({},Xn),{},{filename:De.name,type:De.file_type,data:Ae.a.API_SERVER+De.url}))},style:{marginRight:"5px",color:"#0152d9",cursor:"pointer"},className:"iconfont icon-chakansvg"}),e.a.createElement("i",{onClick:function(){ee.a.confirm({title:"\u786E\u8BA4\u662F\u5426\u5220\u9664\uFF1F",icon:e.a.createElement(Ee.a,null),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){var Re=Object(_.a)(r.a.mark(function Ut(){var $e;return r.a.wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:return pt.next=2,Object(de.a)("/api/ec_courses/".concat(ve==null?void 0:ve.id,"/ec_course_standards/").concat(Be),{method:"delete"});case 2:$e=pt.sent,$e&&(X.b.info("\u5220\u9664\u6210\u529F"),Gn(ve));case 4:case"end":return pt.stop()}},Ut)}));function Pt(){return Re.apply(this,arguments)}return Pt}(),onCancel:function(){}})},style:{marginRight:"5px",color:"#0152d9",cursor:"pointer"},className:"iconfont icon-shanchu9 pl10"}))}}]})),e.a.createElement("div",{style:{height:"20px",background:"#fafafa"}}),e.a.createElement("div",{className:p.a.title,style:{display:"flex",justifyContent:"space-between"}},"\u8BFE\u7A0B\u76EE\u6807",e.a.createElement("span",null,e.a.createElement(w.a,{disabled:tn,type:"primary",style:{marginRight:"20px"},onClick:Object(_.a)(r.a.mark(function J(){var Be;return r.a.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return we.next=2,ya(ve);case 2:(gt==null?void 0:gt.length)<=0&&(Be={id:0,content:"",weight:"",standard_grade:"",graduation_subitem_ids:[""]},gt.push(Be),Rt(Object(n.a)(gt))),Mn(!0);case 4:case"end":return we.stop()}},J)}))},e.a.createElement("i",{style:{marginRight:"8px"},className:"iconfont icon-bianji7"})," \u7F16\u8F91\u8BFE\u7A0B\u76EE\u6807"))),e.a.createElement("div",{className:p.a.teachcount},e.a.createElement(j.a,{style:{marginTop:"20px",marginBottom:20,padding:"0px 20px"},dataSource:Ze,bordered:!0,pagination:!1,columns:[{title:"\u5206\u9879",dataIndex:"name",key:"name",render:function(Be,De,we){return ve.per_page*(ve.page-1)+we+1}},{title:"\u8BFE\u7A0B\u76EE\u6807",dataIndex:"content",width:"40%",key:"content"},{title:"\u6743\u91CD",dataIndex:"weight",key:"weight"},{title:"\u8FBE\u6210\u5206\u503C",dataIndex:"standard_grade",key:"standard_grade"},{title:"\u5BF9\u5E94\u6BD5\u4E1A\u8981\u6C42\u6307\u6807\u70B9",dataIndex:"graduation_subitem",key:"graduation_subitem",render:function(Be,De,we){return e.a.createElement("div",null,e.a.createElement(i.b,{itemLayout:"horizontal",dataSource:Be,renderItem:function(Re){return e.a.createElement(i.b.Item,null,e.a.createElement(i.b.Item.Meta,{style:{fontSize:14},description:"\u6307\u6807\u70B9"+(Re==null?void 0:Re.index)+"\uFF1A"+(Re==null?void 0:Re.content)}))}}))}}]})),e.a.createElement("div",{style:{height:"20px",background:"#fafafa"}}),e.a.createElement("div",{className:p.a.title,style:{display:"flex",justifyContent:"space-between"}},"\u8003\u6838\u65B9\u5F0F\u4E0E\u6570\u636E\u6765\u6E90",e.a.createElement("span",null,e.a.createElement(w.a,{disabled:tn,type:"primary",style:{marginRight:"20px"},onClick:function(){at.current="",qe(!0)}},e.a.createElement("i",{style:{marginRight:"8px"},className:"iconfont icon-tianjiatimu"})," \u6DFB\u52A0\u8BFE\u5802\u6570\u636E"),e.a.createElement(w.a,{disabled:tn,style:{marginRight:"20px"},onClick:function(){at.current="",be(!0)}},e.a.createElement("i",{style:{marginRight:"8px"},className:"iconfont icon-piliangdaoru"})," \u5BFC\u5165\u6570\u636E"))),e.a.createElement("div",{className:p.a.teachcount},!wn&&e.a.createElement(ae.a,null),wn&&e.a.createElement("div",{style:{padding:"0px 20px",marginBottom:"20px",fontSize:"14px"}},e.a.createElement("div",{style:{display:"flex",background:"#F5F5F5",height:"58px",border:"1px solid #E0E2EC",marginTop:"20px"}},e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"8%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u6570\u636E\u6765\u6E90"),e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"24%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u6559\u5B66\u8BFE\u5802/\u6570\u636E\u6587\u4EF6"),e.a.createElement("div",{style:{height:"100%",width:"42%",display:"flex",flexShrink:0,borderRight:"1px solid #E0E2EC"}},e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"30%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u8003\u6838\u65B9\u5F0F"),e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"56%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u8003\u6838\u5185\u5BB9"),e.a.createElement("div",{style:{width:"14%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u6EE1\u5206\u503C")),e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"6%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u72B6\u6001"),e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"10%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u540C\u6B65/\u5BFC\u5165\u65F6\u95F4"),e.a.createElement("div",{style:{width:"10%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u64CD\u4F5C")),e.a.createElement("div",{style:{border:"1px solid #E0E2EC",marginTop:-1}},wn==null?void 0:wn.map(function(J){var Be,De,we,it,Re,Pt,Ut;return e.a.createElement("div",{style:{display:"flex",width:"100%"}},e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"8%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},J==null?void 0:J.name),e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"24%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},(J==null?void 0:J.name)==="\u5BFC\u5165\u6570\u636E"&&e.a.createElement("a",{href:Ae.a.API_SERVER+"/api/ec_courses/1/course_evaluations/download?id=".concat(J==null||((Be=J.contents)===null||Be===void 0||((De=Be[0])===null||De===void 0))?void 0:De.attachment_id)},J==null||((we=J.contents)===null||we===void 0||((it=we[0])===null||it===void 0))?void 0:it.content),(J==null?void 0:J.name)==="\u5173\u8054\u8BFE\u5802"&&(J==null||((Re=J.contents)===null||Re===void 0)?void 0:Re.map(function($e){return e.a.createElement("a",{style:{display:"flex"},href:$e==null?void 0:$e.first_category_url,target:"_blank"},$e==null?void 0:$e.content)}))),e.a.createElement("div",{style:{height:"100%",width:"42%",display:"flex",flexShrink:0,borderRight:"1px solid #E0E2EC",flexDirection:"column"}},(J==null||((Pt=J.evaluation_methods)===null||Pt===void 0)?void 0:Pt.length)<=0&&e.a.createElement("div",{style:{height:"100%",width:"42%",display:"flex",flexShrink:0,borderRight:"1px solid #E0E2EC"}},e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"30%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"--"),e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"56%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"--"),e.a.createElement("div",{style:{width:"14%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"--")),J==null||((Ut=J.evaluation_methods)===null||Ut===void 0)?void 0:Ut.map(function($e,An){var pt,_t,Qt,hn,cn;return e.a.createElement("div",{style:{width:"100%",display:"flex",flexShrink:0}},e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"30%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",borderBottom:!(An===(J==null||((pt=J.evaluation_methods)===null||pt===void 0)?void 0:pt.length)-1)&&"1px solid #E0E2EC"}},$e==null?void 0:$e.work_name),e.a.createElement("div",{style:{width:"56%"}},($e==null||((_t=$e.subitems)===null||_t===void 0)?void 0:_t.length)<=0&&e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:30}},"--"),$e==null||((Qt=$e.evaluation_method_contents)===null||Qt===void 0)?void 0:Qt.map(function(xn,ea){var jn;return e.a.createElement(u.a,{title:xn==null?void 0:xn.name},e.a.createElement("div",{className:p.a.textone,style:{borderRight:"1px solid #E0E2EC",borderBottom:!(An===(J==null||((jn=J.evaluation_methods)===null||jn===void 0)?void 0:jn.length)-1&&ea===($e==null?void 0:$e.evaluation_method_contents.length)-1)&&"1px solid #E0E2EC",marginTop:-1,lineHeight:"30px",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:30,paddingLeft:"5px"}},xn==null?void 0:xn.name))})),e.a.createElement("div",{style:{width:"14%"}},($e==null||((hn=$e.subitems)===null||hn===void 0)?void 0:hn.length)<=0&&e.a.createElement("div",{style:{borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:30}},"--"),$e==null||((cn=$e.evaluation_method_contents)===null||cn===void 0)?void 0:cn.map(function(xn,ea){var jn;return e.a.createElement(u.a,{title:xn==null?void 0:xn.name},e.a.createElement("div",{className:p.a.textone,style:{borderBottom:!(An===(J==null||((jn=J.evaluation_methods)===null||jn===void 0)?void 0:jn.length)-1&&ea===($e==null?void 0:$e.evaluation_method_contents.length)-1)&&"1px solid #E0E2EC",marginTop:-1,lineHeight:"30px",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:30,paddingLeft:"5px"}},xn==null?void 0:xn.score))})))})),e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"6%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",color:"#07C160"}},J==null?void 0:J.status),e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"10%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},J==null?void 0:J.update_at),e.a.createElement("div",{style:{width:"10%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},(J==null?void 0:J.status)!="\u5DF2\u5BFC\u5165"&&e.a.createElement("i",{onClick:Object(_.a)(r.a.mark(function $e(){var An;return r.a.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return _t.next=2,Object(de.a)("/api/ec_courses/".concat(ve.id,"/course_evaluations/update_online_data.json"),{method:"get",params:{id:J.id}});case 2:An=_t.sent,An&&(X.b.info("\u540C\u6B65\u6210\u529F"),Gn(ve));case 4:case"end":return _t.stop()}},$e)})),style:{marginRight:"15px",color:"#0152d9",cursor:"pointer"},className:"iconfont icon-tongbushuju"}),e.a.createElement("i",{onClick:function(){ee.a.confirm({title:"\u786E\u8BA4\u662F\u5426\u5220\u9664\uFF1F",icon:e.a.createElement(Ee.a,null),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){var An=Object(_.a)(r.a.mark(function _t(){var Qt;return r.a.wrap(function(cn){for(;;)switch(cn.prev=cn.next){case 0:return cn.next=2,Object(de.a)("/api/ec_courses/".concat(ve.id,"/course_evaluations/deletes.json"),{method:"delete",body:{id:J.id}});case 2:Qt=cn.sent,Qt&&(X.b.info("\u5220\u9664\u6210\u529F"),Gn(ve));case 4:case"end":return cn.stop()}},_t)}));function pt(){return An.apply(this,arguments)}return pt}(),onCancel:function(){}})},style:{marginRight:"15px",color:"#0152d9",cursor:"pointer"},className:"iconfont icon-shanchu9"}),e.a.createElement("i",{onClick:function(){at.current=J.id,(J==null?void 0:J.status)!="\u5DF2\u5BFC\u5165"?(Ya(J),qe(!0)):be(!0)},style:{marginRight:"5px",color:"#0152d9",cursor:"pointer"},className:"iconfont icon-bianji8"})))})))),e.a.createElement("div",{style:{height:"20px",background:"#fafafa"}}),e.a.createElement("div",{className:p.a.title,style:{display:"flex",justifyContent:"space-between"}},"\u8BFE\u7A0B\u76EE\u6807\u8FBE\u6210\u5EA6",e.a.createElement("span",null,e.a.createElement(w.a,{disabled:tn,style:{marginRight:"20px"},onClick:function(){Da(!0)}},e.a.createElement("i",{style:{marginRight:"8px"},className:"iconfont icon-kechengshezhi"})," \u8BBE\u7F6E\u8003\u6838\u5360\u6BD4"),e.a.createElement(w.a,{disabled:tn,style:{marginRight:"20px"},onClick:function(){Ra(ve.id),Jn(!0)}},e.a.createElement("i",{style:{marginRight:"8px"},className:"iconfont icon-jisuangongshi"})," \u8BBE\u7F6E\u8BA1\u7B97\u516C\u5F0F"),e.a.createElement(w.a,{type:"primary",disabled:tn,style:{marginRight:"20px"},onClick:Object(_.a)(r.a.mark(function J(){var Be;return r.a.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return we.next=2,Object(de.a)("/api/ec_courses/".concat(ve.id,"/evaluations/evaluation_data.json"),{method:"post"});case 2:Be=we.sent,Be&&(X.b.info("\u8BA1\u7B97\u5B8C\u6210"),sa(ve));case 4:case"end":return we.stop()}},J)}))},e.a.createElement("i",{style:{marginRight:"8px"},className:"iconfont icon-jisuan"})," \u8BA1\u7B97"))),e.a.createElement("div",{style:{padding:"0px 20px"},className:p.a.teachcount},!Bn&&e.a.createElement(ae.a,null),Bn&&e.a.createElement("div",{style:{fontSize:"14px"}},e.a.createElement("div",{style:{display:"flex",background:"#F5F5F5",height:"58px",border:"1px solid #E0E2EC",marginTop:"20px"}},e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"4%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u5206\u9879"),e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"15%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u8BFE\u7A0B\u76EE\u6807"),e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"3%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u6743\u91CD"),e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"9%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u5BF9\u5E94\u6BD5\u4E1A\u8981\u6C42\u6307\u6807\u70B9"),e.a.createElement("div",{style:{height:"100%",width:"40%",display:"flex",flexDirection:"column",flexShrink:0,borderRight:"1px solid #E0E2EC"}},e.a.createElement("div",{style:{width:"100%",display:"flex",flexShrink:0,height:"100%"}},e.a.createElement("div",{style:{width:"30%",borderRight:"1px solid #E0E2EC",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column"}},"\u8003\u6838\u65B9\u5F0F"),e.a.createElement("div",{style:{width:"12.5%",borderRight:"1px solid #E0E2EC",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",textAlign:"center"}},"\u8003\u6838\u65B9\u5F0F\u5360\u6BD4"),e.a.createElement("div",{style:{width:"45%",height:"100%"}},e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:"100%"}},"\u8003\u6838\u5185\u5BB9")),e.a.createElement("div",{style:{width:"12.5%",height:"100%"}},e.a.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:"100%",textAlign:"center"}},"\u8003\u6838\u5185\u5BB9\u5360\u6BD4")))),e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"8%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",textAlignLast:"center"}},"\u8FBE\u6210\u5206\u503C\uFF08\u767E\u5206\u5236\uFF09"),e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"7%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",textAlignLast:"center"}},"\u5B9E\u9645\u5206\u503C\uFF08\u767E\u5206\u5236\uFF09"),e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"6%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u8BC4\u4EF7\u7ED3\u679C"),e.a.createElement("div",{style:{width:"8%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u8BA1\u7B97\u65F6\u95F4")),e.a.createElement("div",{style:{borderLeft:"1px solid #E0E2EC"}},Bn==null||((It=Bn.ec_course_target)===null||It===void 0)?void 0:It.map(function(J,Be){var De,we,it,Re,Pt,Ut;return e.a.createElement("div",{style:{height:"100%",display:"flex"}},e.a.createElement("div",{style:{width:"4%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},Be+1),e.a.createElement("div",{className:p.a.textone,style:{width:"15%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,alignItems:"center",justifyContent:"center",flexShrink:0,maxHeight:(J==null||((De=J.evaluation)===null||De===void 0)?void 0:De.length)<=0&&43,lineHeight:(J==null||((we=J.evaluation)===null||we===void 0)?void 0:we.length)<=0&&"43px",display:(J==null||((it=J.evaluation)===null||it===void 0)?void 0:it.length)!=0&&"flex",paddingLeft:10}},e.a.createElement(u.a,{title:J.content},J.content)),e.a.createElement("div",{style:{width:"3%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},J.weights),e.a.createElement("div",{style:{width:"9%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},J==null||((Re=J.graduation_subitem)===null||Re===void 0)?void 0:Re.map(function($e){return $e.name}).toString()),e.a.createElement("div",{style:{height:"100%",width:"40%",display:"flex",flexDirection:"column",flexShrink:0,borderRight:"1px solid #E0E2EC"}},(J==null||((Pt=J.evaluation)===null||Pt===void 0)?void 0:Pt.length)<=0&&e.a.createElement("div",{style:{width:"100%",display:"flex",flexShrink:0}},e.a.createElement("div",{style:{width:"30%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column"}},"--"),e.a.createElement("div",{style:{width:"12.6%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column"}},"--"),e.a.createElement("div",{style:{width:"45.3%"}},e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:43}},"--")),e.a.createElement("div",{style:{width:"12.5%"}},e.a.createElement("div",{style:{borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:43}},"--"))),J==null||((Ut=J.evaluation)===null||Ut===void 0)?void 0:Ut.map(function($e,An){var pt,_t,Qt,hn;return e.a.createElement("div",{style:{width:"100%",display:"flex",flexShrink:0}},e.a.createElement("div",{style:{width:"30%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},($e==null?void 0:$e.work_name)||"--"),e.a.createElement("div",{style:{width:"12.5%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},($e==null?void 0:$e.weight)||"--"),e.a.createElement("div",{style:{width:"45%"}},($e==null||((pt=$e.subitems)===null||pt===void 0)?void 0:pt.length)<=0&&e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,height:43}},"--"),$e==null||((_t=$e.subitems)===null||_t===void 0)?void 0:_t.map(function(cn,xn){return e.a.createElement(u.a,{title:cn==null?void 0:cn.name},e.a.createElement("div",{className:p.a.textone,style:{borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,lineHeight:"43px",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:43,paddingLeft:"5px"}},cn==null?void 0:cn.name))})),e.a.createElement("div",{style:{width:"12.5%"}},($e==null||((Qt=$e.subitems)===null||Qt===void 0)?void 0:Qt.length)<=0&&e.a.createElement("div",{style:{borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:43}},"--"),$e==null||((hn=$e.subitems)===null||hn===void 0)?void 0:hn.map(function(cn,xn){return e.a.createElement("div",{style:{borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:43}},cn==null?void 0:cn.weight)})))})),e.a.createElement("div",{style:{width:"8%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},J==null?void 0:J.standard_grade),e.a.createElement("div",{style:{width:"7%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},J==null?void 0:J.actual_grade),e.a.createElement("div",{style:{width:"6%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,color:J!=null&&J.statue?"#07C160":"#E30000"}},J!=null&&J.status?"\u8FBE\u6210":"\u672A\u8FBE\u6210"),e.a.createElement("div",{style:{width:"8%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,textAlign:"center"}},Bn==null?void 0:Bn.evaluation_time))})),e.a.createElement("div",{style:{display:"flex",height:"58px",border:"1px solid #E0E2EC",marginTop:-1}},e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"4%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u603B\u5206"),e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"75%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}}),e.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"7%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},Bn==null?void 0:Bn.total_score)))),e.a.createElement(I,{courseId:at.current,isshow:Ne,setishow:qe,items:Ka,modalparams:ve,getevaluations:sa,getcourse_evaluations:ia}),e.a.createElement(U,{isshow:ba,setishow:Da,modalparams:ve,getcourse_evaluations:sa}),e.a.createElement(ee.a,{title:"\u7F16\u8F91\u8BFE\u7A0B\u76EE\u6807",visible:In,wrapClassName:p.a.modalWrapContainer,width:918,okText:"\u4FDD\u5B58",onOk:Object(_.a)(r.a.mark(function J(){var Be;return r.a.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:if(!((gt==null?void 0:gt.filter(function(it){var Re,Pt;return!it.content||!it.weight||!it.standard_grade||(it==null||((Re=it.graduation_subitem_ids)===null||Re===void 0)?void 0:Re.length)<=0||(it==null||((Pt=it.graduation_subitem_ids)===null||Pt===void 0)?void 0:Pt.filter(function(Ut){return!Ut}).length)>0}).length)>0)){we.next=3;break}return X.b.info("\u8BF7\u586B\u5199\u6216\u5220\u9664\u6CA1\u6709\u586B\u5165\u6570\u503C\u7684\u6570\u636E"),we.abrupt("return");case 3:return we.next=5,Object(de.a)("/api/ec_courses/".concat(ve==null?void 0:ve.id,"/course_targets"),{method:"POST",body:{course_targets:gt}});case 5:Be=we.sent,(Be==null?void 0:Be.status)===0&&(Mn(!1),ya(ve),sa(ve));case 7:case"end":return we.stop()}},J)})),onCancel:function(){Mn(!1),ya(ve)}},e.a.createElement("div",{style:{color:"#464F66",fontSize:14,paddingLeft:40,paddingBottom:12}},e.a.createElement("div",null,"\u8BF4\u660E\uFF1A"),e.a.createElement("div",null,"1.\u8BFE\u7A0B\u76EE\u6807\u7684\u6743\u91CD\u4E4B\u548C\u5E94\u7B49\u4E8E1\uFF1B",e.a.createElement("br",null),"2.\u53EF\u5728\u8BBE\u7F6E\u8BFE\u7A0B\u8FBE\u6210\u5EA6\u8BA1\u7B97\u516C\u5F0F\u65F6\uFF0C\u9009\u62E9\u662F\u5426\u5C06\u8BFE\u7A0B\u76EE\u6807\u7684\u6743\u91CD\u53C2\u4E0E\u5230\u8BA1\u7B97\u4E2D\u3002")),e.a.createElement("div",{style:{display:"flex",background:"#F5F5F5",height:"38px",alignItems:"center",padding:"0px 10px"}},e.a.createElement("span",{style:{flex:1}},"\u5206\u9879"),e.a.createElement("span",{style:{flex:3}},e.a.createElement("span",{style:{color:"#EE0A24",marginRight:"5px"}},"*"),"\u8BFE\u7A0B\u76EE\u6807"),e.a.createElement("span",{style:{flex:2}},e.a.createElement("span",{style:{color:"#EE0A24",marginRight:"5px"}},"*"),"\u6743\u91CD"),e.a.createElement("span",{style:{flex:2}},e.a.createElement("span",{style:{color:"#EE0A24",marginRight:"5px"}},"*"),"\u8FBE\u6210\u5206\u503C\uFF08\u5206\uFF09")),gt==null?void 0:gt.map(function(J,Be){var De;return e.a.createElement("div",null,e.a.createElement("div",{style:{display:"flex",background:"#EEF2F8",height:"62px",alignItems:"center",padding:"0px 10px"}},e.a.createElement("span",{style:{flex:1}},Be+1),e.a.createElement("span",{style:{flex:3,padding:"0px 10px"}},e.a.createElement(x.a,{onChange:function(it){J.content=it.target.value,Rt(Object(n.a)(gt))},value:J==null?void 0:J.content})),e.a.createElement("span",{style:{flex:2}},e.a.createElement(d.a,{min:0,max:1,step:.1,onChange:function(it){J.weight=it,Rt(Object(n.a)(gt))},value:J==null?void 0:J.weight})),e.a.createElement("span",{style:{flex:2}},e.a.createElement(d.a,{min:0,max:100,onChange:function(it){J.standard_grade=it,Rt(Object(n.a)(gt))},value:J==null?void 0:J.standard_grade}),e.a.createElement(u.a,{title:"\u65B0\u589E\u8BFE\u7A0B\u76EE\u6807"},e.a.createElement("i",{style:{color:"#0152D9",cursor:"pointer",marginLeft:"10px"},className:"iconfont icon-xinzeng",onClick:Object(_.a)(r.a.mark(function we(){var it;return r.a.wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:it={id:0,content:"",weight:"",standard_grade:"",graduation_subitem_ids:[""]},gt.push(it),Rt(Object(n.a)(gt));case 3:case"end":return Pt.stop()}},we)}))})),Be!==0&&e.a.createElement(u.a,{title:"\u5220\u9664"},e.a.createElement("i",{onClick:Object(_.a)(r.a.mark(function we(){return r.a.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:gt.splice(Be,1),Rt(Object(n.a)(gt));case 2:case"end":return Re.stop()}},we)})),style:{color:"#0152D9",cursor:"pointer",marginLeft:"10px"},className:"iconfont icon-shanchu9"})))),e.a.createElement("div",{style:{display:"flex",padding:"0px 10px"}},e.a.createElement("span",{style:{flex:1}}),e.a.createElement("span",{style:{flex:3}}," ",e.a.createElement("span",{style:{color:"#EE0A24",marginRight:"5px"}},"*")," ","\u5BF9\u5E94\u6BD5\u4E1A\u8981\u6C42\u6307\u6807\u70B9"," "),e.a.createElement("span",{style:{flex:2}}),e.a.createElement("span",{style:{flex:2}})),J==null||((De=J.graduation_subitem_ids)===null||De===void 0)?void 0:De.map(function(we,it){return e.a.createElement("div",{style:{display:"flex",height:"40px",alignItems:"center",padding:"0px 10px"}},e.a.createElement("span",{style:{flex:1}}),e.a.createElement("span",{style:{flex:3,display:"flex",alignItems:"center"}},e.a.createElement(f.a,{value:we,getPopupContainer:function(Pt){return Pt.parentNode},onChange:function(Pt){J.graduation_subitem_ids[it]=Pt,Rt(Object(n.a)(gt))},style:{width:"320px"}},en==null?void 0:en.map(function(Re,Pt){return e.a.createElement(f.a.Option,{disabled:J.graduation_subitem_ids.includes(Re==null?void 0:Re.id),value:Re==null?void 0:Re.id,title:"\u6307\u6807\u70B9"+(Re==null?void 0:Re.index)+"\uFF1A"+(Re==null?void 0:Re.content)},"\u6307\u6807\u70B9",Re==null?void 0:Re.index,"\uFF1A",Re==null?void 0:Re.content)})),e.a.createElement(u.a,{title:"\u65B0\u589E\u6307\u6807\u70B9"},e.a.createElement("i",{style:{color:"#0152D9",cursor:"pointer",marginLeft:"10px"},className:"iconfont icon-xinzeng",onClick:Object(_.a)(r.a.mark(function Re(){return r.a.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:J==null||J.graduation_subitem_ids.push(""),Rt(Object(n.a)(gt));case 2:case"end":return Ut.stop()}},Re)}))})),it!==0&&e.a.createElement(u.a,{title:"\u5220\u9664"},e.a.createElement("i",{onClick:Object(_.a)(r.a.mark(function Re(){return r.a.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:J.graduation_subitem_ids.splice(it,1),Rt(Object(n.a)(gt));case 2:case"end":return Ut.stop()}},Re)})),style:{color:"#0152D9",cursor:"pointer",marginLeft:"10px"},className:"iconfont icon-shanchu9"}))),e.a.createElement("span",{style:{flex:2}}),e.a.createElement("span",{style:{flex:1}}))}))})),e.a.createElement(ee.a,{title:"\u8BBE\u7F6E\u8BA1\u7B97\u516C\u5F0F",visible:da,width:918,className:p.a.modalWrapContainer,onCancel:function(){Jn(!1)},onOk:Object(_.a)(r.a.mark(function J(){var Be,De,we,it,Re;return r.a.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:return Ut.next=2,Object(de.a)("/api/ec_years/1/ec_courses/save_formulas.json",{method:"post",body:{ec_course_id:ve.id,ec_course_target_formula_id:bn==null||((Be=bn.ec_course_target_formulas.filter(function($e){return $e.checked}))===null||Be===void 0||((De=Be[0])===null||De===void 0))?void 0:De.id,ec_course_formula_id:bn==null||((we=bn.ec_course_formulas.filter(function($e){return $e.checked}))===null||we===void 0||((it=we[0])===null||it===void 0))?void 0:it.id}});case 2:Re=Ut.sent,Re&&(Jn(!1),Ra(ve.id));case 4:case"end":return Ut.stop()}},J)}))},e.a.createElement("div",{style:{padding:"16px 40px"}},e.a.createElement(M.a,{activeKey:ga,onChange:function(Be){Wa(Be)}},e.a.createElement(M.a.TabPane,{key:1,tab:"\u8BFE\u7A0B\u76EE\u6807\u5B9E\u9645\u5206\u503C"}),e.a.createElement(M.a.TabPane,{key:2,tab:"\u8BFE\u7A0B\u603B\u5206"}))),ga==="1"&&e.a.createElement("div",null,e.a.createElement("div",{style:{display:"flex",height:38,background:"#F5F5F5",lineHeight:"38px",padding:"0px 40px"}},e.a.createElement("span",{style:{flex:1,marginRight:"30px"}},"\u8BFE\u7A0B\u76EE\u6807\u5B9E\u9645\u5206\u503C\u8BA1\u7B97\u516C\u5F0F"),e.a.createElement("span",{style:{width:185}},"\u64CD\u4F5C")),bn==null||((lt=bn.ec_course_target_formulas)===null||lt===void 0)?void 0:lt.map(function(J,Be){return e.a.createElement("div",{style:{display:"flex",padding:"20px 40px"}},(J==null?void 0:J.checked)&&e.a.createElement("span",{style:{width:"40px",borderRadius:"2px",color:"#0152D9",border:"1px solid #0152D9",display:"inline-flex",alignItems:"center",justifyContent:"center",marginRight:"10px",height:"22px"}},"\u9ED8\u8BA4"),e.a.createElement("span",{style:{flex:1,marginRight:"30px",marginLeft:!(J!=null&&J.checked)&&"50px"}},e.a.createElement("p",null,J==null?void 0:J.content),(J==null?void 0:J.explain)&&e.a.createElement("p",null,"\u8BF4\u660E\uFF1A",J==null?void 0:J.explain)),e.a.createElement("span",{style:{width:185}},e.a.createElement(ce.a,{onClick:function(){bn==null||bn.ec_course_target_formulas.map(function(we){J.id===we.id?we.checked=!0:we.checked=!1}),ma(Object(L.a)({},bn))},checked:J==null?void 0:J.checked}," ","\u8BBE\u4E3A\u9ED8\u8BA4\u516C\u5F0F")))})),ga==="2"&&e.a.createElement("div",null,e.a.createElement("div",{style:{display:"flex",height:38,background:"#F5F5F5",lineHeight:"38px",padding:"0px 40px"}},e.a.createElement("span",{style:{flex:1}},"\u8BFE\u7A0B\u603B\u5206\u8BA1\u7B97\u516C\u5F0F"),e.a.createElement("span",{style:{width:185}},"\u64CD\u4F5C")),bn==null||((Mt=bn.ec_course_formulas)===null||Mt===void 0)?void 0:Mt.map(function(J,Be){return e.a.createElement("div",{style:{display:"flex",padding:"20px 40px"}},(J==null?void 0:J.checked)&&e.a.createElement("span",{style:{width:"40px",borderRadius:"2px",color:"#0152D9",border:"1px solid #0152D9",display:"inline-flex",alignItems:"center",justifyContent:"center",marginRight:"10px",height:"22px"}},"\u9ED8\u8BA4"),e.a.createElement("span",{style:{flex:1,marginRight:"30px",marginLeft:!(J!=null&&J.checked)&&"50px"}},e.a.createElement("p",null,J==null?void 0:J.content),(J==null?void 0:J.explain)&&e.a.createElement("p",null,"\u8BF4\u660E\uFF1A",J==null?void 0:J.explain)),e.a.createElement("span",{style:{width:185}},e.a.createElement(ce.a,{onClick:function(){bn==null||bn.ec_course_formulas.map(function(we){J.id===we.id?we.checked=!0:we.checked=!1}),ma(Object(L.a)({},bn))},checked:J==null?void 0:J.checked}," ","\u8BBE\u4E3A\u9ED8\u8BA4\u516C\u5F0F")))}))),e.a.createElement(ee.a,{title:"\u6279\u91CF\u5BFC\u5165",visible:k,centered:!0,onCancel:function(){be(!1),nt([])},okButtonProps:{loading:Xt},onOk:Object(_.a)(r.a.mark(function J(){var Be,De,we;return r.a.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:if(Be=new FormData,!(Le.length>0)){Re.next=5;break}Be.append("file",Le[0]),Re.next=7;break;case 5:return X.b.warn("\u8BF7\u9009\u62E9\u6587\u4EF6"),Re.abrupt("return");case 7:if(ve.id){Re.next=10;break}return X.b.info("\u8BF7\u5148\u521B\u5EFA\u8BFE\u7A0B"),Re.abrupt("return");case 10:return an(!0),Be.append("ec_course_id",ve.id),at.current&&Be.append("id",at.current),De=at.current?"/api/ec_courses/".concat(ve.id,"/course_evaluations/update_offline.json"):"/api/ec_courses/".concat(ve.id,"/course_evaluations/create_offline.json"),Re.next=16,Object(de.a)(De,{method:at.current?"put":"post",body:Be},!0);case 16:we=Re.sent,an(!1),(we==null?void 0:we.status)===0&&(X.b.info("\u6DFB\u52A0\u6210\u529F"),be(!1),nt([]),ia(ve));case 19:case"end":return Re.stop()}},J)}))},e.a.createElement("p",null,"\u6B65\u9AA41\uFF1A\u4E0B\u8F7D",e.a.createElement("a",{href:Ae.a.API_SERVER+"/api/ec_courses/1/course_evaluations/download_template.xlsx",download:"\u6A21\u7248.xlsx"},"\u660E\u7EC6\u6210\u7EE9\u5BFC\u5165\u6A21\u677F"),",\u5BFC\u5165\u7EBF\u4E0B\u6570\u636E\u5185\u5BB9\u3002",e.a.createElement("span",{style:{color:"#D95201"}},"\u6CE8\uFF1A\u76EE\u524D\u4EC5\u652F\u6301Excel\u683C\u5F0F\u6A21\u677F")),e.a.createElement(_e.a,null,e.a.createElement(l.a,null,"\u6B65\u9AA42\uFF1A"),e.a.createElement(l.a,null,e.a.createElement(G.a,Oa,e.a.createElement(w.a,{type:"primary"},"\u9009\u62E9\u6587\u4EF6"))))),e.a.createElement(je.a,Object(Q.a)({},Xn,{onClose:function(){Qn(Object(L.a)(Object(L.a)({},Xn),{},{type:""}))}})))},et=z.default=Object(le.a)(function(Ge){var Lt=Ge.user;return{user:Lt}})(Ke)},"6+eU":function(dt,z,t){"use strict";t.d(z,"a",function(){return F});var Q=t("wx14"),N=t("rePB"),_e=t("VTBJ"),Z=t("1OyB"),l=t("vuIU"),m=t("Ji7U"),ce=t("LK+K"),ne=t("q1tI"),M=t.n(ne),S=t("TSYQ"),d=t.n(S),y=function(te){var w,$="".concat(te.rootPrefixCls,"-item"),f=d()($,"".concat($,"-").concat(te.page),(w={},Object(N.a)(w,"".concat($,"-active"),te.active),Object(N.a)(w,te.className,!!te.className),Object(N.a)(w,"".concat($,"-disabled"),!te.page),w)),L=function(){te.onClick(te.page)},oe=function(_){te.onKeyPress(_,te.onClick,te.page)};return M.a.createElement("li",{title:te.showTitle?te.page:null,className:f,onClick:L,onKeyPress:oe,tabIndex:"0"},te.itemRender(te.page,"page",M.a.createElement("a",{rel:"nofollow"},te.page)))},x=y,g={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},u=function(G){Object(m.a)(w,G);var te=Object(ce.a)(w);function w(){var $;Object(Z.a)(this,w);for(var f=arguments.length,L=new Array(f),oe=0;oe=0||X.relatedTarget.className.indexOf("".concat(r,"-next"))>=0))return;$.setState({goInputText:""}),P($.getValidValue())},$.go=function(X){var _=$.state.goInputText;if(_==="")return;(X.keyCode===g.ENTER||X.type==="click")&&($.setState({goInputText:""}),$.props.quickGo($.getValidValue()))},$}return Object(l.a)(w,[{key:"getValidValue",value:function(){var f=this.state,L=f.goInputText,oe=f.current;return!L||isNaN(L)?oe:Number(L)}},{key:"getPageSizeOptions",value:function(){var f=this.props,L=f.pageSize,oe=f.pageSizeOptions;return oe.some(function(X){return X.toString()===L.toString()})?oe:oe.concat([L.toString()]).sort(function(X,_){var E=isNaN(Number(X))?0:Number(X),P=isNaN(Number(_))?0:Number(_);return E-P})}},{key:"render",value:function(){var f=this,L=this.props,oe=L.pageSize,X=L.locale,_=L.rootPrefixCls,E=L.changeSize,P=L.quickGo,r=L.goButton,s=L.selectComponentClass,e=L.buildOptionText,H=L.selectPrefixCls,p=L.disabled,B=this.state.goInputText,le="".concat(_,"-options"),de=s,Ae=null,Ee=null,je=null;if(!E&&!P)return null;var Se=this.getPageSizeOptions();if(E&&de){var xe=Se.map(function(he,me){return M.a.createElement(de.Option,{key:me,value:he.toString()},(e||f.buildOptionText)(he))});Ae=M.a.createElement(de,{disabled:p,prefixCls:H,showSearch:!1,className:"".concat(le,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(oe||Se[0]).toString(),onChange:this.changeSize,getPopupContainer:function(me){return me.parentNode}},xe)}return P&&(r&&(je=typeof r=="boolean"?M.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:p,className:"".concat(le,"-quick-jumper-button")},X.jump_to_confirm):M.a.createElement("span",{onClick:this.go,onKeyUp:this.go},r)),Ee=M.a.createElement("div",{className:"".concat(le,"-quick-jumper")},X.jump_to,M.a.createElement("input",{disabled:p,type:"text",value:B,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),X.page,je)),M.a.createElement("li",{className:"".concat(le)},Ae,Ee)}}]),w}(M.a.Component);u.defaultProps={pageSizeOptions:["10","20","50","100"]};var C=u,i=t("N2Kk");function n(){}function h(G){return typeof G=="number"&&isFinite(G)&&Math.floor(G)===G}function j(G,te,w){return w}function K(G,te,w){var $=typeof G=="undefined"?te.pageSize:G;return Math.floor((w.total-1)/$)+1}var ee=function(G){Object(m.a)(w,G);var te=Object(ce.a)(w);function w($){var f;Object(Z.a)(this,w),f=te.call(this,$),f.getJumpPrevPage=function(){return Math.max(1,f.state.current-(f.props.showLessItems?3:5))},f.getJumpNextPage=function(){return Math.min(K(void 0,f.state,f.props),f.state.current+(f.props.showLessItems?3:5))},f.getItemIcon=function(E,P){var r=f.props.prefixCls,s=E||M.a.createElement("button",{type:"button","aria-label":P,className:"".concat(r,"-item-link")});return typeof E=="function"&&(s=M.a.createElement(E,Object(_e.a)({},f.props))),s},f.savePaginationNode=function(E){f.paginationNode=E},f.isValid=function(E){return h(E)&&E!==f.state.current},f.shouldDisplayQuickJumper=function(){var E=f.props,P=E.showQuickJumper,r=E.pageSize,s=E.total;return s<=r?!1:P},f.handleKeyDown=function(E){(E.keyCode===g.ARROW_UP||E.keyCode===g.ARROW_DOWN)&&E.preventDefault()},f.handleKeyUp=function(E){var P=f.getValidValue(E),r=f.state.currentInputValue;P!==r&&f.setState({currentInputValue:P}),E.keyCode===g.ENTER?f.handleChange(P):E.keyCode===g.ARROW_UP?f.handleChange(P-1):E.keyCode===g.ARROW_DOWN&&f.handleChange(P+1)},f.changePageSize=function(E){var P=f.state.current,r=K(E,f.state,f.props);P=P>r?r:P,r===0&&(P=f.state.current),typeof E=="number"&&("pageSize"in f.props||f.setState({pageSize:E}),"current"in f.props||f.setState({current:P,currentInputValue:P})),f.props.onShowSizeChange(P,E),"onChange"in f.props&&f.props.onChange&&f.props.onChange(P,E)},f.handleChange=function(E){var P=f.props.disabled,r=E;if(f.isValid(r)&&!P){var s=K(void 0,f.state,f.props);r>s?r=s:r<1&&(r=1),"current"in f.props||f.setState({current:r,currentInputValue:r});var e=f.state.pageSize;return f.props.onChange(r,e),r}return f.state.current},f.prev=function(){f.hasPrev()&&f.handleChange(f.state.current-1)},f.next=function(){f.hasNext()&&f.handleChange(f.state.current+1)},f.jumpPrev=function(){f.handleChange(f.getJumpPrevPage())},f.jumpNext=function(){f.handleChange(f.getJumpNextPage())},f.hasPrev=function(){return f.state.current>1},f.hasNext=function(){return f.state.current2?r-2:0),e=2;e=oe?_=oe:_=Number(L),_}},{key:"getShowSizeChanger",value:function(){var f=this.props,L=f.showSizeChanger,oe=f.total,X=f.totalBoundaryShowSizeChanger;return typeof L!="undefined"?L:oe>X}},{key:"renderPrev",value:function(f){var L=this.props,oe=L.prevIcon,X=L.itemRender,_=X(f,"prev",this.getItemIcon(oe,"prev page")),E=!this.hasPrev();return Object(ne.isValidElement)(_)?Object(ne.cloneElement)(_,{disabled:E}):_}},{key:"renderNext",value:function(f){var L=this.props,oe=L.nextIcon,X=L.itemRender,_=X(f,"next",this.getItemIcon(oe,"next page")),E=!this.hasNext();return Object(ne.isValidElement)(_)?Object(ne.cloneElement)(_,{disabled:E}):_}},{key:"render",value:function(){var f=this,L=this.props,oe=L.prefixCls,X=L.className,_=L.style,E=L.disabled,P=L.hideOnSinglePage,r=L.total,s=L.locale,e=L.showQuickJumper,H=L.showLessItems,p=L.showTitle,B=L.showTotal,le=L.simple,de=L.itemRender,Ae=L.showPrevNextJumpers,Ee=L.jumpPrevIcon,je=L.jumpNextIcon,Se=L.selectComponentClass,xe=L.selectPrefixCls,he=L.pageSizeOptions,me=this.state,c=me.current,I=me.pageSize,O=me.currentInputValue;if(P===!0&&r<=I)return null;var ae=K(void 0,this.state,this.props),v=[],U=null,ie=null,Oe=null,Te=null,Ke=null,et=e&&e.goButton,Ge=H?1:2,Lt=c-1>0?c-1:0,St=c+1=Ge*2&&c!==1+2&&(v[0]=Object(ne.cloneElement)(v[0],{className:"".concat(oe,"-item-after-jump-prev")}),v.unshift(U)),ae-c>=Ge*2&&c!==ae-2&&(v[v.length-1]=Object(ne.cloneElement)(v[v.length-1],{className:"".concat(oe,"-item-before-jump-next")}),v.push(ie)),Pe!==1&&v.unshift(Oe),ve!==ae&&v.push(Te)}var Fe=null;B&&(Fe=M.a.createElement("li",{className:"".concat(oe,"-total-text")},B(r,[r===0?0:(c-1)*I+1,c*I>r?r:c*I])));var ke=!this.hasPrev()||!ae,He=!this.hasNext()||!ae;return M.a.createElement("ul",Object(Q.a)({className:d()(oe,X,Object(N.a)({},"".concat(oe,"-disabled"),E)),style:_,unselectable:"unselectable",ref:this.savePaginationNode},It),Fe,M.a.createElement("li",{title:p?s.prev_page:null,onClick:this.prev,tabIndex:ke?null:0,onKeyPress:this.runIfEnterPrev,className:d()("".concat(oe,"-prev"),Object(N.a)({},"".concat(oe,"-disabled"),ke)),"aria-disabled":ke},this.renderPrev(Lt)),v,M.a.createElement("li",{title:p?s.next_page:null,onClick:this.next,tabIndex:He?null:0,onKeyPress:this.runIfEnterNext,className:d()("".concat(oe,"-next"),Object(N.a)({},"".concat(oe,"-disabled"),He)),"aria-disabled":He},this.renderNext(St)),M.a.createElement(C,{disabled:E,locale:s,rootPrefixCls:oe,selectComponentClass:Se,selectPrefixCls:xe,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:c,pageSize:I,pageSizeOptions:he,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:et}))}}],[{key:"getDerivedStateFromProps",value:function(f,L){var oe={};if("current"in f&&(oe.current=f.current,f.current!==L.current&&(oe.currentInputValue=oe.current)),"pageSize"in f&&f.pageSize!==L.pageSize){var X=L.current,_=K(f.pageSize,L,f);X=X>_?_:X,"current"in f||(oe.current=X,oe.currentInputValue=X),oe.pageSize=f.pageSize}return oe}}]),w}(M.a.Component);ee.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:n,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:n,locale:i.a,style:{},itemRender:j,totalBoundaryShowSizeChanger:50};var F=ee},"6RRn":function(dt,z,t){"use strict";var Q=t("wCXF"),N=t("n6Qo");t.d(z,"b",function(){return N.a});var _e=t("IBYe"),Z=t("6eGT"),l=t("hW8S");t.d(z,"a",function(){return l.a}),z.c=Q.b},"6eGT":function(dt,z,t){"use strict";function Q(N){return null}z.a=Q},"746U":function(dt,z,t){"use strict";t.d(z,"d",function(){return N}),t.d(z,"j",function(){return _e}),t.d(z,"i",function(){return Z}),t.d(z,"h",function(){return l}),t.d(z,"e",function(){return m}),t.d(z,"k",function(){return ce}),t.d(z,"l",function(){return ne}),t.d(z,"a",function(){return M}),t.d(z,"f",function(){return d}),t.d(z,"g",function(){return y}),t.d(z,"m",function(){return x}),t.d(z,"c",function(){return C}),t.d(z,"b",function(){return i}),t.d(z,"n",function(){return n}),t.d(z,"o",function(){return h});var Q={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function N(j){return Array.isArray?Array.isArray(j):!!(j&&typeof j.length===Q.number&&j.constructor===Array)}function _e(j){return typeof j===Q.string||j instanceof String}function Z(j){return typeof j===Q.object&&j!==null&&!Array.isArray(j)&&!(j instanceof RegExp)&&!(j instanceof Date)}function l(j){return(typeof j===Q.number||j instanceof Number)&&!isNaN(j)}function m(j){return j===!0||j===!1}function ce(j){return typeof j===Q.undefined}function ne(j){return ce(j)||j===null}function M(j,K){if(!j)throw new Error(K?"Unexpected type, expected '"+K+"'":"Unexpected type")}var S=Object.prototype.hasOwnProperty;function d(j){if(!Z(j))return!1;for(var K in j)if(S.call(j,K))return!1;return!0}function y(j){return typeof j===Q.function}function x(j,K){for(var ee=Math.min(j.length,K.length),F=0;F0&&arguments[0]!==void 0?arguments[0]:[],C=new Map;function i(n){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(n||[]).forEach(function(j){var K=j.key,ee=j.children;Object(l.a)(K!=null,"Tree node must have a certain key: [".concat(h).concat(K,"]"));var F=String(K);Object(l.a)(!C.has(F)||K===null||K===void 0,"Same 'key' exist in the Tree: ".concat(F)),C.set(F,!0),i(ee,"".concat(h).concat(F," > "))})}i(u)}function M(u){function C(i){var n=Object(Z.a)(i);return n.map(function(h){if(!Object(m.i)(h))return Object(l.a)(!h,"Tree/TreeNode can only accept TreeNode as children."),null;var j=h.key,K=h.props,ee=K.children,F=Object(_e.a)(K,["children"]),G=Object(N.a)({key:j},F),te=C(ee);return te.length&&(G.children=te),G}).filter(function(h){return h})}return C(u)}function S(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=new Set(C===!0?[]:C),n=[];function h(j){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return j.map(function(ee,F){var G=Object(m.h)(K?K.pos:"0",F),te=ce(ee.key,G),w=Object(N.a)(Object(N.a)({},ee),{},{parent:K,pos:G,children:null,data:ee,isStart:[].concat(Object(Q.a)(K?K.isStart:[]),[F===0]),isEnd:[].concat(Object(Q.a)(K?K.isEnd:[]),[F===j.length-1])});return n.push(w),C===!0||i.has(te)?w.children=h(ee.children||[],w):w.children=[],w})}return h(u),n}function d(u,C,i){var n;i?typeof i=="string"?n=function(K){return K[i]}:typeof i=="function"&&(n=function(K){return i(K)}):n=function(K,ee){return ce(K.key,ee)};function h(j,K,ee){var F=j?j.children:u,G=j?Object(m.h)(ee.pos,K):"0";if(j){var te=n(j,G),w={node:j,index:K,pos:G,key:te,parentPos:ee.node?ee.pos:null,level:ee.level+1};C(w)}F&&F.forEach(function($,f){h($,f,{node:j,pos:G,level:ee?ee.level+1:-1})})}h(null)}function y(u){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=C.initWrapper,n=C.processEntity,h=C.onProcessFinished,j=arguments.length>2?arguments[2]:void 0,K={},ee={},F={posEntities:K,keyEntities:ee};return i&&(F=i(F)||F),d(u,function(G){var te=G.node,w=G.index,$=G.pos,f=G.key,L=G.parentPos,oe=G.level,X={node:te,index:w,key:f,pos:$,level:oe},_=ce(f,$);K[$]=X,ee[_]=X,X.parent=K[L],X.parent&&(X.parent.children=X.parent.children||[],X.parent.children.push(X)),n&&n(X,F)},j),h&&h(F),F}function x(u,C){var i=C.expandedKeys,n=C.selectedKeys,h=C.loadedKeys,j=C.loadingKeys,K=C.checkedKeys,ee=C.halfCheckedKeys,F=C.dragOverNodeKey,G=C.dropPosition,te=C.keyEntities,w=te[u],$={eventKey:u,expanded:i.indexOf(u)!==-1,selected:n.indexOf(u)!==-1,loaded:h.indexOf(u)!==-1,loading:j.indexOf(u)!==-1,checked:K.indexOf(u)!==-1,halfChecked:ee.indexOf(u)!==-1,pos:String(w?w.pos:""),dragOver:F===u&&G===0,dragOverGapTop:F===u&&G===-1,dragOverGapBottom:F===u&&G===1};return $}function g(u){var C=u.data,i=u.expanded,n=u.selected,h=u.checked,j=u.loaded,K=u.loading,ee=u.halfChecked,F=u.dragOver,G=u.dragOverGapTop,te=u.dragOverGapBottom,w=u.pos,$=u.active,f=Object(N.a)(Object(N.a)({},C),{},{expanded:i,selected:n,checked:h,loaded:j,loading:K,halfChecked:ee,dragOver:F,dragOverGapTop:G,dragOverGapBottom:te,pos:w,active:$});return"props"in f||Object.defineProperty(f,"props",{get:function(){return Object(l.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),u}}),f}},"8HAY":function(dt,z,t){"use strict";t.d(z,"a",function(){return m}),t.d(z,"b",function(){return ce});var Q=t("pmY6"),N=t("MI8n"),_e=function(){var ne=function(M,S){return ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,y){d.__proto__=y}||function(d,y){for(var x in y)y.hasOwnProperty(x)&&(d[x]=y[x])},ne(M,S)};return function(M,S){ne(M,S);function d(){this.constructor=M}M.prototype=S===null?Object.create(S):(d.prototype=S.prototype,new d)}}(),Z=function(ne,M,S,d){function y(x){return x instanceof S?x:new S(function(g){g(x)})}return new(S||(S=Promise))(function(x,g){function u(n){try{i(d.next(n))}catch(h){g(h)}}function C(n){try{i(d.throw(n))}catch(h){g(h)}}function i(n){n.done?x(n.value):y(n.value).then(u,C)}i((d=d.apply(ne,M||[])).next())})},l=function(ne,M){var S={label:0,sent:function(){if(x[0]&1)throw x[1];return x[1]},trys:[],ops:[]},d,y,x,g;return g={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(g[Symbol.iterator]=function(){return this}),g;function u(i){return function(n){return C([i,n])}}function C(i){if(d)throw new TypeError("Generator is already executing.");for(;S;)try{if(d=1,y&&(x=i[0]&2?y.return:i[0]?y.throw||((x=y.return)&&x.call(y),0):y.next)&&!(x=x.call(y,i[1])).done)return x;(y=0,x)&&(i=[i[0]&2,x.value]);switch(i[0]){case 0:case 1:x=i;break;case 4:return S.label++,{value:i[1],done:!1};case 5:S.label++,y=i[1],i=[0];continue;case 7:i=S.ops.pop(),S.trys.pop();continue;default:if(!(x=S.trys,x=x.length>0&&x[x.length-1])&&(i[0]===6||i[0]===2)){S=0;continue}if(i[0]===3&&(!x||i[1]>x[0]&&i[1]1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(Q.a)())return null;var S=document.createElement("style");if((ne=M.csp)===null||ne===void 0?void 0:ne.nonce){var d;S.nonce=(d=M.csp)===null||d===void 0?void 0:d.nonce}S.innerHTML=ce;var y=_e(M),x=y.firstChild;return M.prepend&&y.prepend?y.prepend(S):M.prepend&&x?y.insertBefore(S,x):y.appendChild(S),S}var l=new Map;function m(ce,ne){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},S=_e(M);if(!l.has(S)){var d=Z("",M),y=d.parentNode;l.set(S,y),y.removeChild(d)}var x=Array.from(l.get(S).children).find(function(n){return n.tagName==="STYLE"&&n[N]===ne});if(x){var g,u;if(((g=M.csp)===null||g===void 0?void 0:g.nonce)&&x.nonce!==((u=M.csp)===null||u===void 0?void 0:u.nonce)){var C;x.nonce=(C=M.csp)===null||C===void 0?void 0:C.nonce}return x.innerHTML!==ce&&(x.innerHTML=ce),x}var i=Z(ce,M);return i[N]=ne,i}},BdwD:function(dt,z,t){"use strict";var Q=t("+L6B"),N=t("2/Rp"),_e=t("0Owb"),Z=t("k1fw"),l=t("q1tI"),m=t.n(l),ce=t("FOrL"),ne=t.n(ce),M=function(d){var y=d.buttonProps,x=y===void 0?{}:y,g=d.styles,u=g===void 0?{}:g,C=d.customText,i=d.ButtonText,n=d.ButtonClick,h=d.Buttonclass,j=d.ButtonTwo;return m.a.createElement("section",{className:"tc animated fadeIn",style:Object(Z.a)(Object(Z.a)({},{color:"#999",margin:"200px auto"}),u)},m.a.createElement("img",{src:ne.a}),m.a.createElement("p",{className:"mt20 font14"},C||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),i&&m.a.createElement(N.a,Object(_e.a)({className:h,onClick:n},x),i),j&&j)};z.a=M},"C/vA":function(dt,z,t){"use strict";t.d(z,"a",function(){return Q});function Q(N){var _e=this,Z=!1,l;return function(){return Z||(Z=!0,l=N.apply(_e,arguments)),l}}},"Cg/j":function(dt,z,t){"use strict";t.d(z,"b",function(){return Q}),t.d(z,"a",function(){return N}),t.d(z,"c",function(){return Z}),t.d(z,"d",function(){return l});var Q;(function(m){m.serviceIds=new Map,m.DI_TARGET="$di$target",m.DI_DEPENDENCIES="$di$dependencies";function ce(ne){return ne[m.DI_DEPENDENCIES]||[]}m.getServiceDependencies=ce})(Q||(Q={}));var N=Z("instantiationService");function _e(m,ce,ne,M){ce[Q.DI_TARGET]===ce?ce[Q.DI_DEPENDENCIES].push({id:m,index:ne,optional:M}):(ce[Q.DI_DEPENDENCIES]=[{id:m,index:ne,optional:M}],ce[Q.DI_TARGET]=ce)}function Z(m){if(Q.serviceIds.has(m))return Q.serviceIds.get(m);var ce=function(ne,M,S){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");_e(ce,ne,S,!1)};return ce.toString=function(){return m},Q.serviceIds.set(m,ce),ce}function l(m){return function(ce,ne,M){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");_e(m,ce,M,!0)}}},FOrL:function(dt,z,t){dt.exports=t.p+"static/nodata.a6b3f948.png"},GfqC:function(dt,z,t){"use strict";var Q=t("q1tI"),N=t.n(Q),_e=t("TSYQ"),Z=t.n(_e);function l(s,e){var H="cannot "+s.method+" "+s.action+" "+e.status+"'",p=new Error(H);return p.status=e.status,p.method=s.method,p.url=s.action,p}function m(s){var e=s.responseText||s.response;if(!e)return e;try{return JSON.parse(e)}catch(H){return e}}function ce(s){var e=new XMLHttpRequest;s.onProgress&&e.upload&&(e.upload.onprogress=function(le){le.total>0&&(le.percent=le.loaded/le.total*100),s.onProgress(le)});var H=new FormData;s.data&&Object.keys(s.data).forEach(function(B){var le=s.data[B];if(Array.isArray(le)){le.forEach(function(de){H.append(B+"[]",de)});return}H.append(B,s.data[B])}),s.file instanceof Blob?H.append(s.filename,s.file,s.file.name):H.append(s.filename,s.file),e.onerror=function(le){s.onError(le)},e.onload=function(){return e.status<200||e.status>=300?s.onError(l(s,e),m(e)):s.onSuccess(m(e),e)},e.open(s.method,s.action,!0),s.withCredentials&&"withCredentials"in e&&(e.withCredentials=!0);var p=s.headers||{};return p["X-Requested-With"]!==null&&e.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(p).forEach(function(B){p[B]!==null&&e.setRequestHeader(B,p[B])}),e.send(H),{abort:function(){e.abort()}}}var ne=+new Date,M=0;function S(){return"rc-upload-"+ne+"-"+ ++M}function d(s,e){return s.indexOf(e,s.length-e.length)!==-1}var y=function(s,e){if(s&&e){var H=Array.isArray(e)?e:e.split(","),p=s.name||"",B=s.type||"",le=B.replace(/\/.*$/,"");return H.some(function(de){var Ae=de.trim();return Ae.charAt(0)==="."?d(p.toLowerCase(),Ae.toLowerCase()):/\/\*$/.test(Ae)?le===Ae.replace(/\/.*$/,""):B===Ae})}return!0};function x(s,e){var H=s.createReader(),p=[];function B(){H.readEntries(function(le){var de=Array.prototype.slice.apply(le);p=p.concat(de);var Ae=!de.length;Ae?e(p):B()})}B()}var g=function(e,H,p){var B=function le(de,Ae){Ae=Ae||"",de.isFile?de.file(function(Ee){p(Ee)&&(de.fullPath&&!Ee.webkitRelativePath&&(Object.defineProperties(Ee,{webkitRelativePath:{writable:!0}}),Ee.webkitRelativePath=de.fullPath.replace(/^\//,""),Object.defineProperties(Ee,{webkitRelativePath:{writable:!1}})),H([Ee]))}):de.isDirectory&&x(de,function(Ee){Ee.forEach(function(je){le(je,""+Ae+de.name+"/")})})};e.forEach(function(le){B(le.webkitGetAsEntry())})},u=g,C=Object.assign||function(s){for(var e=1;e=0)continue;if(!Object.prototype.hasOwnProperty.call(s,p))continue;H[p]=s[p]}return H}function K(s,e){if(!(s instanceof e))throw new TypeError("Cannot call a class as a function")}function ee(s,e){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:s}function F(s,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);s.prototype=Object.create(e&&e.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(s,e):s.__proto__=e)}var G=function(e){return Object.keys(e).reduce(function(H,p){return(p.substr(0,5)==="data-"||p.substr(0,5)==="aria-"||p==="role")&&(H[p]=e[p]),H},{})},te=function(s){F(e,s);function e(){var H,p,B,le;K(this,e);for(var de=arguments.length,Ae=Array(de),Ee=0;Ee=G?N:{done:!1,value:ee[F++]}}}}M.fromArray=x;function g(ee){return{next:function(){var F=ee.next();return F.done?N:{done:!1,value:F.value}}}}M.fromNativeIterator=g;function u(ee){return ee?Array.isArray(ee)?M.fromArray(ee):ee:M.empty()}M.from=u;function C(ee,F){return{next:function(){var G=ee.next();return G.done?N:{done:!1,value:F(G.value)}}}}M.map=C;function i(ee,F){return{next:function(){for(;;){var G=ee.next();if(G.done)return N;if(F(G.value))return{done:!1,value:G.value}}}}}M.filter=i;function n(ee,F){for(var G=ee.next();!G.done;G=ee.next())F(G.value)}M.forEach=n;function h(ee,F){F===void 0&&(F=Number.POSITIVE_INFINITY);var G=[];if(F===0)return G;for(var te=0,w=ee.next();!w.done&&!(G.push(w.value),++te>=F);w=ee.next());return G}M.collect=h;function j(){for(var ee=[],F=0;F=ee.length)return N;var te=ee[G],w=te.next();return w.done?(G++,this.next()):w}}}M.concat=j;function K(ee){return new Z(ee)}M.chain=K})(_e||(_e={}));var Z=function(){function M(S){this.it=S}return M.prototype.next=function(){return this.it.next()},M}();function l(M){return Array.isArray(M)?_e.fromArray(M):M||_e.empty()}var m=function(){function M(S,d,y,x){d===void 0&&(d=0),y===void 0&&(y=S.length),x===void 0&&(x=d-1),this.items=S,this.start=d,this.end=y,this.index=x}return M.prototype.first=function(){return this.index=this.start,this.current()},M.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},M.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},M}(),ce=function(M){Q(S,M);function S(d,y,x,g){return y===void 0&&(y=0),x===void 0&&(x=d.length),g===void 0&&(g=y-1),M.call(this,d,y,x,g)||this}return S.prototype.current=function(){return M.prototype.current.call(this)},S.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},S.prototype.first=function(){return this.index=this.start,this.current()},S.prototype.last=function(){return this.index=this.end-1,this.current()},S.prototype.parent=function(){return null},S}(m),ne=function(){function M(S,d){this.iterator=S,this.fn=d}return M.prototype.next=function(){return this.fn(this.iterator.next())},M}()},LdHM:function(dt,z,t){"use strict";t.d(z,"b",function(){return j}),t.d(z,"a",function(){return ee});var Q=t("1OyB"),N=t("vuIU"),_e=t("Ji7U"),Z=t("LK+K"),l=t("q1tI"),m=t("rePB"),ce=t("Ff2n"),ne=t("ODXe"),M=t("4IlW"),S=t("bX4T"),d=t("YrtM"),y=t("TSYQ"),x=t.n(y),g=t("+nKL"),u=t("8OUc"),C=function(p,B){var le=p.prefixCls,de=p.id,Ae=p.flattenOptions,Ee=p.childrenAsData,je=p.values,Se=p.searchValue,xe=p.multiple,he=p.defaultActiveFirstOption,me=p.height,c=p.itemHeight,I=p.notFoundContent,O=p.open,ae=p.menuItemSelectedIcon,v=p.virtual,U=p.onSelect,ie=p.onToggleOpen,Oe=p.onActiveValue,Te=p.onScroll,Ke=p.onMouseEnter,et="".concat(le,"-item"),Ge=Object(d.a)(function(){return Ae},[O,Ae],function(Ve,Fe){return Fe[0]&&Ve[1]!==Fe[1]}),Lt=l.useRef(null),St=function(Fe){Fe.preventDefault()},It=function(Fe){Lt.current&&Lt.current.scrollTo({index:Fe})},lt=function(Fe){for(var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,He=Ge.length,Ye=0;Ye1&&arguments[1]!==void 0?arguments[1]:!1;return Object(G.a)(H).map(function(B,le){if(!l.isValidElement(B)||!B.type)return null;var de=B.type.isSelectOptGroup,Ae=B.key,Ee=B.props,je=Ee.children,Se=Object(ce.a)(Ee,["children"]);return p||!de?te(B):Object(F.a)(Object(F.a)({key:"__RC_SELECT_GRP__".concat(Ae===null?le:Ae,"__"),label:Ae},Se),{},{options:w(je)})}).filter(function(B){return B})}var $=t("2Qr1"),f=t("qNPg"),L=t("U8pU"),oe=t("Kwbf"),X=t("WKfj");function _(H){var p=H.mode,B=H.options,le=H.children,de=H.backfill,Ae=H.allowClear,Ee=H.placeholder,je=H.getInputElement,Se=H.showSearch,xe=H.onSearch,he=H.defaultOpen,me=H.autoFocus,c=H.labelInValue,I=H.value,O=H.inputValue,ae=H.optionLabelProp,v=p==="multiple"||p==="tags",U=Se!==void 0?Se:v||p==="combobox",ie=B||w(le);if(Object(oe.a)(p!=="tags"||ie.every(function(et){return!et.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),p==="tags"||p==="combobox"){var Oe=ie.some(function(et){return et.options?et.options.some(function(Ge){return typeof("value"in Ge?Ge.value:Ge.key)=="number"}):typeof("value"in et?et.value:et.key)=="number"});Object(oe.a)(!Oe,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(oe.a)(p!=="combobox"||!ae,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(oe.a)(p==="combobox"||!de,"`backfill` only works with `combobox` mode."),Object(oe.a)(p==="combobox"||!je,"`getInputElement` only work with `combobox` mode."),Object(oe.b)(p!=="combobox"||!je||!Ae||!Ee,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),xe&&!U&&p!=="combobox"&&p!=="tags"&&Object(oe.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(oe.b)(!he||me,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),I!=null){var Te=Object(X.d)(I);Object(oe.a)(!c||Te.every(function(et){return Object(L.a)(et)==="object"&&("key"in et||"value"in et)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(oe.a)(!v||Array.isArray(I),"`value` should be array when `mode` is `multiple` or `tags`")}if(le){var Ke=null;Object(G.a)(le).some(function(et){if(!l.isValidElement(et)||!et.type)return!1;var Ge=et.type;if(Ge.isSelectOption)return!1;if(Ge.isSelectOptGroup){var Lt=Object(G.a)(et.props.children).every(function(St){return!l.isValidElement(St)||!et.type||St.type.isSelectOption?!0:(Ke=St.type,!1)});return!Lt}return Ke=Ge,!0}),Ke&&Object(oe.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ke.displayName||Ke.name||Ke,"`.")),Object(oe.a)(O===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var E=_,P=Object(f.a)({prefixCls:"rc-select",components:{optionList:n},convertChildrenToData:w,flattenOptions:$.d,getLabeledValue:$.e,filterOptions:$.b,isValueDisabled:$.g,findValueOption:$.c,warningProps:E,fillOptionsWithMissingValue:$.a}),r=function(H){Object(_e.a)(B,H);var p=Object(Z.a)(B);function B(){var le;return Object(Q.a)(this,B),le=p.apply(this,arguments),le.selectRef=l.createRef(),le.focus=function(){le.selectRef.current.focus()},le.blur=function(){le.selectRef.current.blur()},le}return Object(N.a)(B,[{key:"render",value:function(){return l.createElement(P,Object.assign({ref:this.selectRef},this.props))}}]),B}(l.Component);r.Option=j,r.OptGroup=ee;var s=r,e=z.c=s},MI8n:function(dt,z,t){"use strict";t.d(z,"b",function(){return m}),t.d(z,"a",function(){return M}),t.d(z,"e",function(){return S}),t.d(z,"d",function(){return d}),t.d(z,"c",function(){return y}),t.d(z,"f",function(){return x});var Q=t("/cxE"),N=t("C/vA"),_e=t("pmY6"),Z=t("24hK"),l=function(){var g=function(u,C){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var h in n)n.hasOwnProperty(h)&&(i[h]=n[h])},g(u,C)};return function(u,C){g(u,C);function i(){this.constructor=u}u.prototype=C===null?Object.create(C):(i.prototype=C.prototype,new i)}}(),m;(function(g){g.None=function(){return _e.a.None};function u(E){return function(P,r,s){r===void 0&&(r=null);var e=!1,H;return H=E(function(p){return e?void 0:(H?H.dispose():e=!0,P.call(r,p))},null,s),e&&H.dispose(),H}}g.once=u;function C(E,P){return ee(function(r,s,e){return s===void 0&&(s=null),E(function(H){return r.call(s,P(H))},null,e)})}g.map=C;function i(E,P){return ee(function(r,s,e){return s===void 0&&(s=null),E(function(H){P(H),r.call(s,H)},null,e)})}g.forEach=i;function n(E,P){return ee(function(r,s,e){return s===void 0&&(s=null),E(function(H){return P(H)&&r.call(s,H)},null,e)})}g.filter=n;function h(E){return E}g.signal=h;function j(){for(var E=[],P=0;P1)&&de.fire(Ee),le=0},r)})},onLastListenerRemove:function(){H.dispose()}});return de.event}g.debounce=F;function G(E){var P=new Date().getTime();return C(u(E),function(r){return new Date().getTime()-P})}g.stopwatch=G;function te(E){var P=!0,r;return n(E,function(s){var e=P||s!==r;return P=!1,r=s,e})}g.latch=te;function w(E,P,r){P===void 0&&(P=!1),r===void 0&&(r=[]);var s=r.slice(),e=E(function(B){s?s.push(B):p.fire(B)}),H=function(){s&&s.forEach(function(B){return p.fire(B)}),s=null},p=new M({onFirstListenerAdd:function(){e||(e=E(function(B){return p.fire(B)}))},onFirstListenerDidAdd:function(){s&&(P?setTimeout(H):H())},onLastListenerRemove:function(){e&&e.dispose(),e=null}});return p.event}g.buffer=w;var $=function(){function E(P){this.event=P}return E.prototype.map=function(P){return new E(C(this.event,P))},E.prototype.forEach=function(P){return new E(i(this.event,P))},E.prototype.filter=function(P){return new E(n(this.event,P))},E.prototype.reduce=function(P,r){return new E(K(this.event,P,r))},E.prototype.latch=function(){return new E(te(this.event))},E.prototype.debounce=function(P,r,s,e){return r===void 0&&(r=100),s===void 0&&(s=!1),new E(F(this.event,P,r,s,e))},E.prototype.on=function(P,r,s){return this.event(P,r,s)},E.prototype.once=function(P,r,s){return u(this.event)(P,r,s)},E}();function f(E){return new $(E)}g.chain=f;function L(E,P,r){r===void 0&&(r=function(B){return B});var s=function(){for(var B=[],le=0;le0?new ne(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(g.prototype,"event",{get:function(){var u=this;return this._event||(this._event=function(C,i,n){u._listeners||(u._listeners=new Z.a);var h=u._listeners.isEmpty();h&&u._options&&u._options.onFirstListenerAdd&&u._options.onFirstListenerAdd(u);var j=u._listeners.push(i?[C,i]:C);h&&u._options&&u._options.onFirstListenerDidAdd&&u._options.onFirstListenerDidAdd(u),u._options&&u._options.onListenerDidAdd&&u._options.onListenerDidAdd(u,C,i);var K;u._leakageMon&&(K=u._leakageMon.check(u._listeners.size));var ee;return ee={dispose:function(){if(K&&K(),ee.dispose=g._noop,!u._disposed&&(j(),u._options&&u._options.onLastListenerRemove)){var F=u._listeners&&!u._listeners.isEmpty();F||u._options.onLastListenerRemove(u)}}},n instanceof _e.b?n.add(ee):Array.isArray(n)&&n.push(ee),ee}),this._event},enumerable:!0,configurable:!0}),g.prototype.fire=function(u){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new Z.a);for(var C=this._listeners.iterator(),i=C.next();!i.done;i=C.next())this._deliveryQueue.push([i.value,u]);for(;this._deliveryQueue.size>0;){var n=this._deliveryQueue.shift(),h=n[0],j=n[1];try{typeof h=="function"?h.call(void 0,j):h[0].call(h[1],j)}catch(K){Object(Q.e)(K)}}}},g.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},g._noop=function(){},g}(),S=function(g){l(u,g);function u(C){var i=g.call(this,C)||this;return i._isPaused=0,i._eventQueue=new Z.a,i._mergeFn=C&&C.merge,i}return u.prototype.pause=function(){this._isPaused++},u.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){var C=this._eventQueue.toArray();this._eventQueue.clear(),g.prototype.fire.call(this,this._mergeFn(C))}else for(;!this._isPaused&&this._eventQueue.size!==0;)g.prototype.fire.call(this,this._eventQueue.shift())},u.prototype.fire=function(C){this._listeners&&(this._isPaused!==0?this._eventQueue.push(C):g.prototype.fire.call(this,C))},u}(M),d=function(){function g(){var u=this;this.hasListeners=!1,this.events=[],this.emitter=new M({onFirstListenerAdd:function(){return u.onFirstListenerAdd()},onLastListenerRemove:function(){return u.onLastListenerRemove()}})}return Object.defineProperty(g.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),g.prototype.add=function(u){var C=this,i={event:u,listener:null};this.events.push(i),this.hasListeners&&this.hook(i);var n=function(){C.hasListeners&&C.unhook(i);var h=C.events.indexOf(i);C.events.splice(h,1)};return Object(_e.h)(Object(N.a)(n))},g.prototype.onFirstListenerAdd=function(){var u=this;this.hasListeners=!0,this.events.forEach(function(C){return u.hook(C)})},g.prototype.onLastListenerRemove=function(){var u=this;this.hasListeners=!1,this.events.forEach(function(C){return u.unhook(C)})},g.prototype.hook=function(u){var C=this;u.listener=u.event(function(i){return C.emitter.fire(i)})},g.prototype.unhook=function(u){u.listener&&u.listener.dispose(),u.listener=null},g.prototype.dispose=function(){this.emitter.dispose()},g}(),y=function(){function g(){this.buffers=[]}return g.prototype.wrapEvent=function(u){var C=this;return function(i,n,h){return u(function(j){var K=C.buffers[C.buffers.length-1];K?K.push(function(){return i.call(n,j)}):i.call(n,j)},void 0,h)}},g.prototype.bufferEvents=function(u){var C=[];this.buffers.push(C);var i=u();return this.buffers.pop(),C.forEach(function(n){return n()}),i},g}(),x=function(){function g(){var u=this;this.listening=!1,this.inputEvent=m.None,this.inputEventListener=_e.a.None,this.emitter=new M({onFirstListenerDidAdd:function(){u.listening=!0,u.inputEventListener=u.inputEvent(u.emitter.fire,u.emitter)},onLastListenerRemove:function(){u.listening=!1,u.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(g.prototype,"input",{set:function(u){this.inputEvent=u,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=u(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),g.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},g}()},N0LK:function(dt,z,t){"use strict";t.d(z,"x",function(){return Q}),t.d(z,"F",function(){return N}),t.d(z,"r",function(){return Z}),t.d(z,"o",function(){return l}),t.d(z,"p",function(){return m}),t.d(z,"Q",function(){return ce}),t.d(z,"K",function(){return M}),t.d(z,"k",function(){return S}),t.d(z,"N",function(){return d}),t.d(z,"m",function(){return y}),t.d(z,"l",function(){return x}),t.d(z,"I",function(){return g}),t.d(z,"H",function(){return u}),t.d(z,"q",function(){return C}),t.d(z,"t",function(){return i}),t.d(z,"D",function(){return n}),t.d(z,"e",function(){return h}),t.d(z,"f",function(){return j}),t.d(z,"B",function(){return K}),t.d(z,"C",function(){return ee}),t.d(z,"n",function(){return G}),t.d(z,"O",function(){return w}),t.d(z,"c",function(){return $}),t.d(z,"d",function(){return f}),t.d(z,"z",function(){return L}),t.d(z,"A",function(){return oe}),t.d(z,"u",function(){return X}),t.d(z,"E",function(){return b}),t.d(z,"G",function(){return P}),t.d(z,"i",function(){return s}),t.d(z,"g",function(){return H}),t.d(z,"v",function(){return B}),t.d(z,"h",function(){return le}),t.d(z,"y",function(){return de}),t.d(z,"w",function(){return Ae}),t.d(z,"a",function(){return be}),t.d(z,"P",function(){return je}),t.d(z,"L",function(){return Se}),t.d(z,"J",function(){return xe}),t.d(z,"j",function(){return he}),t.d(z,"M",function(){return me}),t.d(z,"s",function(){return c}),t.d(z,"b",function(){return I});function Q(v){return!v||typeof v!="string"?!0:v.trim().length===0}function N(v,U,ie){ie===void 0&&(ie="0");for(var Oe=""+v,Te=[Oe],Ke=Oe.length;Ke=U.length?Oe:U[Ke]})}function l(v){return v.replace(/[<>&]/g,function(U){switch(U){case"<":return"<";case">":return">";case"&":return"&";default:return U}})}function m(v){return v.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function ce(v,U){U===void 0&&(U=" ");var ie=ne(v,U);return M(ie,U)}function ne(v,U){if(!v||!U)return v;var ie=U.length;if(ie===0||v.length===0)return v;for(var Oe=0;v.indexOf(U,Oe)===Oe;)Oe=Oe+ie;return v.substring(Oe)}function M(v,U){if(!v||!U)return v;var ie=U.length,Oe=v.length;if(ie===0||Oe===0)return v;for(var Te=Oe,Ke=-1;!(Ke=v.lastIndexOf(U,Te-1),Ke===-1||Ke+ie!==Te);){if(Ke===0)return"";Te=Ke}return v.substring(0,Te)}function S(v){return v.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function d(v,U){if(v.length0?v.indexOf(U,ie)===ie:ie===0?v===U:!1}function x(v,U,ie){if(ie===void 0&&(ie={}),!v)throw new Error("Cannot create regex from empty string");U||(v=m(v)),ie.wholeWord&&(/\B/.test(v.charAt(0))||(v="\\b"+v),/\B/.test(v.charAt(v.length-1))||(v=v+"\\b"));var Oe="";return ie.global&&(Oe+="g"),ie.matchCase||(Oe+="i"),ie.multiline&&(Oe+="m"),ie.unicode&&(Oe+="u"),new RegExp(v,Oe)}function g(v){if(v.source==="^"||v.source==="^$"||v.source==="$"||v.source==="^\\s*$")return!1;var U=v.exec("");return!!(U&&v.lastIndex===0)}function u(v){return(v.global?"g":"")+(v.ignoreCase?"i":"")+(v.multiline?"m":"")+(v.unicode?"u":"")}function C(v){for(var U=0,ie=v.length;U=0;ie--){var Oe=v.charCodeAt(ie);if(Oe!==32&&Oe!==9)return ie}return-1}function h(v,U){return vU?1:0}function j(v,U){for(var ie=Math.min(v.length,U.length),Oe=0;OeU.length?1:0}function K(v){return v>=97&&v<=122}function ee(v){return v>=65&&v<=90}function F(v){return K(v)||ee(v)}function G(v,U){return v.length===U.length&&te(v,U)}function te(v,U,ie){ie===void 0&&(ie=v.length);for(var Oe=0;Oev.length?!1:te(v,U,ie)}function $(v,U){var ie,Oe=Math.min(v.length,U.length);for(ie=0;ie1){var Oe=v.charCodeAt(U-2);if(L(Oe))return(Oe-55296<<10)+(ie-56320)+65536}return ie}function b(v,U){var ie=O.getInstance(),Oe=U,Te=v.length,Ke=X(v,Te,U);U+=Ke>=65536?2:1;for(var et=ie.getGraphemeBreakType(Ke);U=65536?2:1,et=Lt}return U-Oe}function P(v,U){var ie=O.getInstance(),Oe=U,Te=_(v,U);U-=Te>=65536?2:1;for(var Ke=ie.getGraphemeBreakType(Te);U>0;){var et=_(v,U),Ge=ie.getGraphemeBreakType(et);if(I(Ge,Ke))break;U-=et>=65536?2:1,Ke=Ge}return Oe-U}var r=/(?:[\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 s(v){return r.test(v)}var e=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function H(v){return e.test(v)}var p=/^[\t\n\r\x20-\x7E]*$/;function B(v){return p.test(v)}function le(v){for(var U=0,ie=v.length;U=11904&&v<=55215||v>=63744&&v<=64255||v>=65281&&v<=65374}function Ae(v){return v>=127462&&v<=127487||v>=9728&&v<=10175||v>=127744&&v<=128591||v>=128640&&v<=128764||v>=128992&&v<=129003||v>=129280&&v<=129535||v>=129648&&v<=129651||v>=129656&&v<=129666||v>=129680&&v<=129685}var be=String.fromCharCode(65279);function je(v){return!!(v&&v.length>0&&v.charCodeAt(0)===65279)}function Se(v){return btoa(encodeURIComponent(v))}function xe(v,U){for(var ie="",Oe=0;Oeie[3*Te+1])Te=2*Te+1;else return ie[3*Te+2];return 0},v._INSTANCE=null,v}();function ae(){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]")}},NvD2:function(dt,z,t){"use strict";t.d(z,"a",function(){return m});var Q=t("Kwbf");function N(ce,ne){var M=new Set;return ce.forEach(function(S){ne.has(S)||M.add(S)}),M}function _e(ce){var ne=ce||{},M=ne.disabled,S=ne.disableCheckbox,d=ne.checkable;return!!(M||S)||d===!1}function Z(ce,ne,M,S){for(var d=new Set(ce),y=new Set,x=0;x<=M;x+=1){var g=ne.get(x)||new Set;g.forEach(function(n){var h=n.key,j=n.node,K=n.children,ee=K===void 0?[]:K;d.has(h)&&!S(j)&&ee.filter(function(F){return!S(F.node)}).forEach(function(F){d.add(F.key)})})}for(var u=new Set,C=M;C>=0;C-=1){var i=ne.get(C)||new Set;i.forEach(function(n){var h=n.parent,j=n.node;if(S(j)||!n.parent||u.has(n.parent.key))return;if(S(n.parent.node)){u.add(h.key);return}var K=!0,ee=!1;(h.children||[]).filter(function(F){return!S(F.node)}).forEach(function(F){var G=F.key,te=d.has(G);K&&!te&&(K=!1),!ee&&(te||y.has(G))&&(ee=!0)}),K&&d.add(h.key),ee&&y.add(h.key),u.add(h.key)})}return{checkedKeys:Array.from(d),halfCheckedKeys:Array.from(N(y,d))}}function l(ce,ne,M,S,d){for(var y=new Set(ce),x=new Set(ne),g=0;g<=S;g+=1){var u=M.get(g)||new Set;u.forEach(function(h){var j=h.key,K=h.node,ee=h.children,F=ee===void 0?[]:ee;!y.has(j)&&!x.has(j)&&!d(K)&&F.filter(function(G){return!d(G.node)}).forEach(function(G){y.delete(G.key)})})}x=new Set;for(var C=new Set,i=S;i>=0;i-=1){var n=M.get(i)||new Set;n.forEach(function(h){var j=h.parent,K=h.node;if(d(K)||!h.parent||C.has(h.parent.key))return;if(d(h.parent.node)){C.add(j.key);return}var ee=!0,F=!1;(j.children||[]).filter(function(G){return!d(G.node)}).forEach(function(G){var te=G.key,w=y.has(te);ee&&!w&&(ee=!1),!F&&(w||x.has(te))&&(F=!0)}),ee||y.delete(j.key),F&&x.add(j.key),C.add(j.key)})}return{checkedKeys:Array.from(y),halfCheckedKeys:Array.from(N(x,y))}}function m(ce,ne,M,S){var d=[],y;S?y=S:y=_e;var x=new Set(ce.filter(function(i){var n=!!M[i];return n||d.push(i),n})),g=new Map,u=0;Object.keys(M).forEach(function(i){var n=M[i],h=n.level,j=g.get(h);j||(j=new Set,g.set(h,j)),j.add(n),u=Math.max(u,h)}),Object(Q.a)(!d.length,"Tree missing follow keys: ".concat(d.slice(0,100).map(function(i){return"'".concat(i,"'")}).join(", ")));var C;return ne===!0?C=Z(x,g,u,y):C=l(x,ne.halfCheckedKeys,g,u,y),C}},OZM5:function(dt,z,t){"use strict";t.d(z,"b",function(){return S}),t.d(z,"a",function(){return d}),t.d(z,"k",function(){return y}),t.d(z,"h",function(){return x}),t.d(z,"i",function(){return g}),t.d(z,"g",function(){return u}),t.d(z,"c",function(){return C}),t.d(z,"d",function(){return i}),t.d(z,"j",function(){return j}),t.d(z,"e",function(){return K}),t.d(z,"f",function(){return ee});var Q=t("KQm4"),N=t("U8pU"),_e=t("Ff2n"),Z=t("q1tI"),l=t.n(Z),m=t("Kwbf"),ce=t("WaYH"),ne=.25,M=2;function S(F,G){var te=F.slice(),w=te.indexOf(G);return w>=0&&te.splice(w,1),te}function d(F,G){var te=F.slice();return te.indexOf(G)===-1&&te.push(G),te}function y(F){return F.split("-")}function x(F,G){return"".concat(F,"-").concat(G)}function g(F){return F&&F.type&&F.type.isTreeNode}function u(F,G){var te=[F],w=G[F];function $(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];f.forEach(function(L){var oe=L.key,X=L.children;te.push(oe),$(X)})}return $(w.children),te}function C(F,G){var te=F.clientY,w=G.selectHandle.getBoundingClientRect(),$=w.top,f=w.bottom,L=w.height,oe=Math.max(L*ne,M);return te<=$+oe?-1:te>=f-oe?1:0}function i(F,G){if(!F)return;var te=G.multiple;return te?F.slice():F.length?[F[0]]:F}var n=function(G){return G};function h(F,G){if(!F)return[];var te=G||{},w=te.processProps,$=w===void 0?n:w,f=Array.isArray(F)?F:[F];return f.map(function(L){var oe=L.children,X=Object(_e.a)(L,["children"]),_=h(oe,G);return l.a.createElement(ce.a,Object.assign({},$(X)),_)})}function j(F){if(!F)return null;var G;if(Array.isArray(F))G={checkedKeys:F,halfCheckedKeys:void 0};else if(Object(N.a)(F)==="object")G={checkedKeys:F.checked||void 0,halfCheckedKeys:F.halfChecked||void 0};else return Object(m.a)(!1,"`checkedKeys` is not an array or an object"),null;return G}function K(F,G){var te=new Set;function w($){if(te.has($))return;var f=G[$];if(!f)return;te.add($);var L=f.parent,oe=f.node;if(oe.disabled)return;L&&w(L.key)}return(F||[]).forEach(function($){w($)}),Object(Q.a)(te)}function ee(F){var G={};return Object.keys(F).forEach(function(te){(te.startsWith("data-")||te.startsWith("aria-"))&&(G[te]=F[te])}),G}},QDVR:function(dt,z,t){"use strict";t.d(z,"e",function(){return N}),t.d(z,"d",function(){return _e}),t.d(z,"c",function(){return ce}),t.d(z,"b",function(){return ne}),t.d(z,"a",function(){return S});var Q=function(){var d=function(y,x){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,u){g.__proto__=u}||function(g,u){for(var C in u)u.hasOwnProperty(C)&&(g[C]=u[C])},d(y,x)};return function(y,x){d(y,x);function g(){this.constructor=y}y.prototype=x===null?Object.create(x):(g.prototype=x.prototype,new g)}}();function N(d){var y=[];return d.forEach(function(x){return y.push(x)}),y}function _e(d){var y=[];return d.forEach(function(x,g){return y.push(g)}),y}var Z=function(){function d(){this._value="",this._pos=0}return d.prototype.reset=function(y){return this._value=y,this._pos=0,this},d.prototype.next=function(){return this._pos+=1,this},d.prototype.hasNext=function(){return this._pos0)u.left||(u.left=new m,u.left.segment=g.value()),u=u.left;else if(C<0)u.right||(u.right=new m,u.right.segment=g.value()),u=u.right;else if(g.hasNext())g.next(),u.mid||(u.mid=new m,u.mid.segment=g.value()),u=u.mid;else break}var i=u.value;return u.value=x,u.key=y,i},d.prototype.get=function(y){for(var x=this._iter.reset(y),g=this._root;g;){var u=x.cmp(g.segment);if(u>0)g=g.left;else if(u<0)g=g.right;else if(x.hasNext())x.next(),g=g.mid;else break}return g?g.value:void 0},d.prototype.findSubstr=function(y){for(var x=this._iter.reset(y),g=this._root,u=void 0;g;){var C=x.cmp(g.segment);if(C>0)g=g.left;else if(C<0)g=g.right;else if(x.hasNext())x.next(),u=g.value||u,g=g.mid;else break}return g&&g.value||u},d.prototype.forEach=function(y){this._forEach(this._root,y)},d.prototype._forEach=function(y,x){y&&(this._forEach(y.left,x),y.value&&x(y.value,y.key),this._forEach(y.mid,x),this._forEach(y.right,x))},d}(),ne=function(){function d(){this.map=new Map,this.ignoreCase=!1}return d.prototype.set=function(y,x){this.map.set(this.toKey(y),x)},d.prototype.get=function(y){return this.map.get(this.toKey(y))},d.prototype.toKey=function(y){var x=y.toString();return this.ignoreCase&&(x=x.toLowerCase()),x},d}(),M=function(){function d(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return d.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(d.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),d.prototype.get=function(y,x){x===void 0&&(x=0);var g=this._map.get(y);return g?(x!==0&&this.touch(g,x),g.value):void 0},d.prototype.set=function(y,x,g){g===void 0&&(g=0);var u=this._map.get(y);if(u)u.value=x,g!==0&&this.touch(u,g);else{u={key:y,value:x,next:void 0,previous:void 0};switch(g){case 0:this.addItemLast(u);break;case 1:this.addItemFirst(u);break;case 2:this.addItemLast(u);break;default:this.addItemLast(u);break}this._map.set(y,u),this._size++}},d.prototype.delete=function(y){return!!this.remove(y)},d.prototype.remove=function(y){var x=this._map.get(y);return x?(this._map.delete(y),this.removeItem(x),this._size--,x.value):void 0},d.prototype.forEach=function(y,x){for(var g=this._head;g;)x?y.bind(x)(g.value,g.key,this):y(g.value,g.key,this),g=g.next},d.prototype.trimOld=function(y){if(y>=this.size)return;if(y===0){this.clear();return}for(var x=this._head,g=this.size;x&&g>y;)this._map.delete(x.key),x=x.next,g--;this._head=x,this._size=g,x&&(x.previous=void 0)},d.prototype.addItemFirst=function(y){if(!this._head&&!this._tail)this._tail=y;else if(this._head)y.next=this._head,this._head.previous=y;else throw new Error("Invalid list");this._head=y},d.prototype.addItemLast=function(y){if(!this._head&&!this._tail)this._head=y;else if(this._tail)y.previous=this._tail,this._tail.next=y;else throw new Error("Invalid list");this._tail=y},d.prototype.removeItem=function(y){if(y===this._head&&y===this._tail)this._head=void 0,this._tail=void 0;else if(y===this._head){if(!y.next)throw new Error("Invalid list");y.next.previous=void 0,this._head=y.next}else if(y===this._tail){if(!y.previous)throw new Error("Invalid list");y.previous.next=void 0,this._tail=y.previous}else{var x=y.next,g=y.previous;if(!x||!g)throw new Error("Invalid list");x.previous=g,g.next=x}y.next=void 0,y.previous=void 0},d.prototype.touch=function(y,x){if(!this._head||!this._tail)throw new Error("Invalid list");if(x!==1&&x!==2)return;if(x===1){if(y===this._head)return;var g=y.next,u=y.previous;y===this._tail?(u.next=void 0,this._tail=u):(g.previous=u,u.next=g),y.previous=void 0,y.next=this._head,this._head.previous=y,this._head=y}else if(x===2){if(y===this._tail)return;var g=y.next,u=y.previous;y===this._head?(g.previous=void 0,this._head=g):(g.previous=u,u.next=g),y.next=void 0,y.previous=this._tail,this._tail.next=y,this._tail=y}},d.prototype.toJSON=function(){var y=[];return this.forEach(function(x,g){y.push([g,x])}),y},d}(),S=function(d){Q(y,d);function y(x,g){g===void 0&&(g=1);var u=d.call(this)||this;return u._limit=x,u._ratio=Math.min(Math.max(0,g),1),u}return y.prototype.get=function(x){return d.prototype.get.call(this,x,2)},y.prototype.peek=function(x){return d.prototype.get.call(this,x,0)},y.prototype.set=function(x,g){d.prototype.set.call(this,x,g,2),this.checkTrim()},y.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},y}(M)},Qfqc:function(dt,z,t){dt.exports={flex_box_center:"flex_box_center___15S-q",flex_space_between:"flex_space_between___23kwU",flex_box_vertical_center:"flex_box_vertical_center___2l8VY",flex_box_center_end:"flex_box_center_end___VYSS9",flex_box_column:"flex_box_column___3s3TT",wrap:"wrap___2KYjo",title:"title___2f4-2",standardTableWrap:"standardTableWrap___3LLAr",targetTableWrap:"targetTableWrap___cvI3A",waysTableWrap:"waysTableWrap___2j0v-",green:"green___2L8AY",box:"box___22ae3",padding:"padding___2PpV_",control:"control___1HoTk",label:"label___2GboG",customTable:"customTable___3ah1R",tagWrap:"tagWrap___pnb_0",tag:"tag____fSY6",line:"line___3sZe3",textwidth:"textwidth___3QXnN",modalWrapContainer:"modalWrapContainer___o_fOQ",inputWrap:"inputWrap___AsC3W",addCourseTabsContainer:"addCourseTabsContainer___3oEeV",textone:"textone___2YzXy"}},"SA+Z":function(dt,z,t){var Q=t("wTVA"),N=t("EbDI"),_e=t("ZhPi"),Z=t("wkBT");function l(m){return Q(m)||N(m)||_e(m)||Z()}dt.exports=l,dt.exports.__esModule=!0,dt.exports.default=dt.exports},T8No:function(dt,z,t){"use strict";t.d(z,"a",function(){return Z}),t.d(z,"b",function(){return x}),t.d(z,"d",function(){return g}),t.d(z,"c",function(){return u}),t.d(z,"e",function(){return C});var Q=t("N0LK"),N=t("Cg/j"),_e=function(){var i=function(n,h){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(j,K){j.__proto__=K}||function(j,K){for(var ee in K)K.hasOwnProperty(ee)&&(j[ee]=K[ee])},i(n,h)};return function(n,h){i(n,h);function j(){this.constructor=n}n.prototype=h===null?Object.create(h):(j.prototype=h.prototype,new j)}}(),Z=function(){function i(){}return i.has=function(n){return m.create(n)},i.equals=function(n,h){return ce.create(n,h)},i.regex=function(n,h){return S.create(n,h)},i.not=function(n){return M.create(n)},i.and=function(){for(var n=[],h=0;h=0){var j=n.split("!=");return ne.create(j[0].trim(),this._deserializeValue(j[1],h))}if(n.indexOf("==")>=0){var j=n.split("==");return ce.create(j[0].trim(),this._deserializeValue(j[1],h))}if(n.indexOf("=~")>=0){var j=n.split("=~");return S.create(j[0].trim(),this._deserializeRegexValue(j[1],h))}return/^\!\s*/.test(n)?M.create(n.substr(1).trim()):m.create(n)},i._deserializeValue=function(n,h){if(n=n.trim(),n==="true")return!0;if(n==="false")return!1;var j=/^'([^']*)'$/.exec(n);return j?j[1].trim():n},i._deserializeRegexValue=function(n,h){if(Object(Q.x)(n)){if(h)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var j=n.indexOf("/"),K=n.lastIndexOf("/");if(j===K||j<0){if(h)throw new Error("bad regexp-value '"+n+"', missing /-enclosure");return console.warn("bad regexp-value '"+n+"', missing /-enclosure"),null}var ee=n.slice(j+1,K),F=n[K+1]==="i"?"i":"";try{return new RegExp(ee,F)}catch(G){if(h)throw new Error("bad regexp-value '"+n+"', parse error: "+G);return console.warn("bad regexp-value '"+n+"', parse error: "+G),null}},i}();function l(i,n){var h=i.getType(),j=n.getType();if(h!==j)return h-j;switch(h){case 1:return i.cmp(n);case 2:return i.cmp(n);case 3:return i.cmp(n);case 4:return i.cmp(n);case 6:return i.cmp(n);case 7:return i.cmp(n);case 5:return i.cmp(n);default:throw new Error("Unknown ContextKeyExpr!")}}var m=function(){function i(n){this.key=n}return i.create=function(n){return new i(n)},i.prototype.getType=function(){return 1},i.prototype.cmp=function(n){return this.keyn.key?1:0},i.prototype.equals=function(n){return n instanceof i?this.key===n.key:!1},i.prototype.evaluate=function(n){return!!n.getValue(this.key)},i.prototype.keys=function(){return[this.key]},i.prototype.negate=function(){return M.create(this.key)},i}(),ce=function(){function i(n,h){this.key=n,this.value=h}return i.create=function(n,h){return typeof h=="boolean"?h?m.create(n):M.create(n):new i(n,h)},i.prototype.getType=function(){return 3},i.prototype.cmp=function(n){return this.keyn.key?1:this.valuen.value?1:0},i.prototype.equals=function(n){return n instanceof i?this.key===n.key&&this.value===n.value:!1},i.prototype.evaluate=function(n){return n.getValue(this.key)==this.value},i.prototype.keys=function(){return[this.key]},i.prototype.negate=function(){return ne.create(this.key,this.value)},i}(),ne=function(){function i(n,h){this.key=n,this.value=h}return i.create=function(n,h){return typeof h=="boolean"?h?M.create(n):m.create(n):new i(n,h)},i.prototype.getType=function(){return 4},i.prototype.cmp=function(n){return this.keyn.key?1:this.valuen.value?1:0},i.prototype.equals=function(n){return n instanceof i?this.key===n.key&&this.value===n.value:!1},i.prototype.evaluate=function(n){return n.getValue(this.key)!=this.value},i.prototype.keys=function(){return[this.key]},i.prototype.negate=function(){return ce.create(this.key,this.value)},i}(),M=function(){function i(n){this.key=n}return i.create=function(n){return new i(n)},i.prototype.getType=function(){return 2},i.prototype.cmp=function(n){return this.keyn.key?1:0},i.prototype.equals=function(n){return n instanceof i?this.key===n.key:!1},i.prototype.evaluate=function(n){return!n.getValue(this.key)},i.prototype.keys=function(){return[this.key]},i.prototype.negate=function(){return m.create(this.key)},i}(),S=function(){function i(n,h){this.key=n,this.regexp=h}return i.create=function(n,h){return new i(n,h)},i.prototype.getType=function(){return 6},i.prototype.cmp=function(n){if(this.keyn.key)return 1;var h=this.regexp?this.regexp.source:"",j=n.regexp?n.regexp.source:"";return hj?1:0},i.prototype.equals=function(n){if(n instanceof i){var h=this.regexp?this.regexp.source:"",j=n.regexp?n.regexp.source:"";return this.key===n.key&&h===j}return!1},i.prototype.evaluate=function(n){var h=n.getValue(this.key);return this.regexp?this.regexp.test(h):!1},i.prototype.keys=function(){return[this.key]},i.prototype.negate=function(){return d.create(this)},i}(),d=function(){function i(n){this._actual=n}return i.create=function(n){return new i(n)},i.prototype.getType=function(){return 7},i.prototype.cmp=function(n){return this._actual.cmp(n._actual)},i.prototype.equals=function(n){return n instanceof i?this._actual.equals(n._actual):!1},i.prototype.evaluate=function(n){return!this._actual.evaluate(n)},i.prototype.keys=function(){return this._actual.keys()},i.prototype.negate=function(){return this._actual},i}(),y=function(){function i(n){this.expr=n}return i.create=function(n){var h=i._normalizeArr(n);return h.length===0?void 0:h.length===1?h[0]:new i(h)},i.prototype.getType=function(){return 5},i.prototype.cmp=function(n){if(this.expr.lengthn.expr.length)return 1;for(var h=0,j=this.expr.length;h1;){for(var F=n.shift(),G=n.shift(),te=[],w=0,$=ee(F);w<$.length;w++)for(var f=$[w],L=0,oe=ee(G);L0?new ne(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(g.prototype,"event",{get:function(){var u=this;return this._event||(this._event=function(C,i,n){u._listeners||(u._listeners=new Z.a);var h=u._listeners.isEmpty();h&&u._options&&u._options.onFirstListenerAdd&&u._options.onFirstListenerAdd(u);var j=u._listeners.push(i?[C,i]:C);h&&u._options&&u._options.onFirstListenerDidAdd&&u._options.onFirstListenerDidAdd(u),u._options&&u._options.onListenerDidAdd&&u._options.onListenerDidAdd(u,C,i);var K;u._leakageMon&&(K=u._leakageMon.check(u._listeners.size));var ee;return ee={dispose:function(){if(K&&K(),ee.dispose=g._noop,!u._disposed&&(j(),u._options&&u._options.onLastListenerRemove)){var F=u._listeners&&!u._listeners.isEmpty();F||u._options.onLastListenerRemove(u)}}},n instanceof _e.b?n.add(ee):Array.isArray(n)&&n.push(ee),ee}),this._event},enumerable:!0,configurable:!0}),g.prototype.fire=function(u){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new Z.a);for(var C=this._listeners.iterator(),i=C.next();!i.done;i=C.next())this._deliveryQueue.push([i.value,u]);for(;this._deliveryQueue.size>0;){var n=this._deliveryQueue.shift(),h=n[0],j=n[1];try{typeof h=="function"?h.call(void 0,j):h[0].call(h[1],j)}catch(K){Object(Q.e)(K)}}}},g.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},g._noop=function(){},g}(),S=function(g){l(u,g);function u(C){var i=g.call(this,C)||this;return i._isPaused=0,i._eventQueue=new Z.a,i._mergeFn=C&&C.merge,i}return u.prototype.pause=function(){this._isPaused++},u.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){var C=this._eventQueue.toArray();this._eventQueue.clear(),g.prototype.fire.call(this,this._mergeFn(C))}else for(;!this._isPaused&&this._eventQueue.size!==0;)g.prototype.fire.call(this,this._eventQueue.shift())},u.prototype.fire=function(C){this._listeners&&(this._isPaused!==0?this._eventQueue.push(C):g.prototype.fire.call(this,C))},u}(M),d=function(){function g(){var u=this;this.hasListeners=!1,this.events=[],this.emitter=new M({onFirstListenerAdd:function(){return u.onFirstListenerAdd()},onLastListenerRemove:function(){return u.onLastListenerRemove()}})}return Object.defineProperty(g.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),g.prototype.add=function(u){var C=this,i={event:u,listener:null};this.events.push(i),this.hasListeners&&this.hook(i);var n=function(){C.hasListeners&&C.unhook(i);var h=C.events.indexOf(i);C.events.splice(h,1)};return Object(_e.h)(Object(N.a)(n))},g.prototype.onFirstListenerAdd=function(){var u=this;this.hasListeners=!0,this.events.forEach(function(C){return u.hook(C)})},g.prototype.onLastListenerRemove=function(){var u=this;this.hasListeners=!1,this.events.forEach(function(C){return u.unhook(C)})},g.prototype.hook=function(u){var C=this;u.listener=u.event(function(i){return C.emitter.fire(i)})},g.prototype.unhook=function(u){u.listener&&u.listener.dispose(),u.listener=null},g.prototype.dispose=function(){this.emitter.dispose()},g}(),y=function(){function g(){this.buffers=[]}return g.prototype.wrapEvent=function(u){var C=this;return function(i,n,h){return u(function(j){var K=C.buffers[C.buffers.length-1];K?K.push(function(){return i.call(n,j)}):i.call(n,j)},void 0,h)}},g.prototype.bufferEvents=function(u){var C=[];this.buffers.push(C);var i=u();return this.buffers.pop(),C.forEach(function(n){return n()}),i},g}(),x=function(){function g(){var u=this;this.listening=!1,this.inputEvent=m.None,this.inputEventListener=_e.a.None,this.emitter=new M({onFirstListenerDidAdd:function(){u.listening=!0,u.inputEventListener=u.inputEvent(u.emitter.fire,u.emitter)},onLastListenerRemove:function(){u.listening=!1,u.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(g.prototype,"input",{set:function(u){this.inputEvent=u,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=u(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),g.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},g}()},N0LK:function(dt,z,t){"use strict";t.d(z,"x",function(){return Q}),t.d(z,"F",function(){return N}),t.d(z,"r",function(){return Z}),t.d(z,"o",function(){return l}),t.d(z,"p",function(){return m}),t.d(z,"Q",function(){return ce}),t.d(z,"K",function(){return M}),t.d(z,"k",function(){return S}),t.d(z,"N",function(){return d}),t.d(z,"m",function(){return y}),t.d(z,"l",function(){return x}),t.d(z,"I",function(){return g}),t.d(z,"H",function(){return u}),t.d(z,"q",function(){return C}),t.d(z,"t",function(){return i}),t.d(z,"D",function(){return n}),t.d(z,"e",function(){return h}),t.d(z,"f",function(){return j}),t.d(z,"B",function(){return K}),t.d(z,"C",function(){return ee}),t.d(z,"n",function(){return G}),t.d(z,"O",function(){return w}),t.d(z,"c",function(){return $}),t.d(z,"d",function(){return f}),t.d(z,"z",function(){return L}),t.d(z,"A",function(){return oe}),t.d(z,"u",function(){return X}),t.d(z,"E",function(){return E}),t.d(z,"G",function(){return P}),t.d(z,"i",function(){return s}),t.d(z,"g",function(){return H}),t.d(z,"v",function(){return B}),t.d(z,"h",function(){return le}),t.d(z,"y",function(){return de}),t.d(z,"w",function(){return Ae}),t.d(z,"a",function(){return Ee}),t.d(z,"P",function(){return je}),t.d(z,"L",function(){return Se}),t.d(z,"J",function(){return xe}),t.d(z,"j",function(){return he}),t.d(z,"M",function(){return me}),t.d(z,"s",function(){return c}),t.d(z,"b",function(){return I});function Q(v){return!v||typeof v!="string"?!0:v.trim().length===0}function N(v,U,ie){ie===void 0&&(ie="0");for(var Oe=""+v,Te=[Oe],Ke=Oe.length;Ke=U.length?Oe:U[Ke]})}function l(v){return v.replace(/[<>&]/g,function(U){switch(U){case"<":return"<";case">":return">";case"&":return"&";default:return U}})}function m(v){return v.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function ce(v,U){U===void 0&&(U=" ");var ie=ne(v,U);return M(ie,U)}function ne(v,U){if(!v||!U)return v;var ie=U.length;if(ie===0||v.length===0)return v;for(var Oe=0;v.indexOf(U,Oe)===Oe;)Oe=Oe+ie;return v.substring(Oe)}function M(v,U){if(!v||!U)return v;var ie=U.length,Oe=v.length;if(ie===0||Oe===0)return v;for(var Te=Oe,Ke=-1;!(Ke=v.lastIndexOf(U,Te-1),Ke===-1||Ke+ie!==Te);){if(Ke===0)return"";Te=Ke}return v.substring(0,Te)}function S(v){return v.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function d(v,U){if(v.length0?v.indexOf(U,ie)===ie:ie===0?v===U:!1}function x(v,U,ie){if(ie===void 0&&(ie={}),!v)throw new Error("Cannot create regex from empty string");U||(v=m(v)),ie.wholeWord&&(/\B/.test(v.charAt(0))||(v="\\b"+v),/\B/.test(v.charAt(v.length-1))||(v=v+"\\b"));var Oe="";return ie.global&&(Oe+="g"),ie.matchCase||(Oe+="i"),ie.multiline&&(Oe+="m"),ie.unicode&&(Oe+="u"),new RegExp(v,Oe)}function g(v){if(v.source==="^"||v.source==="^$"||v.source==="$"||v.source==="^\\s*$")return!1;var U=v.exec("");return!!(U&&v.lastIndex===0)}function u(v){return(v.global?"g":"")+(v.ignoreCase?"i":"")+(v.multiline?"m":"")+(v.unicode?"u":"")}function C(v){for(var U=0,ie=v.length;U=0;ie--){var Oe=v.charCodeAt(ie);if(Oe!==32&&Oe!==9)return ie}return-1}function h(v,U){return vU?1:0}function j(v,U){for(var ie=Math.min(v.length,U.length),Oe=0;OeU.length?1:0}function K(v){return v>=97&&v<=122}function ee(v){return v>=65&&v<=90}function F(v){return K(v)||ee(v)}function G(v,U){return v.length===U.length&&te(v,U)}function te(v,U,ie){ie===void 0&&(ie=v.length);for(var Oe=0;Oev.length?!1:te(v,U,ie)}function $(v,U){var ie,Oe=Math.min(v.length,U.length);for(ie=0;ie1){var Oe=v.charCodeAt(U-2);if(L(Oe))return(Oe-55296<<10)+(ie-56320)+65536}return ie}function E(v,U){var ie=O.getInstance(),Oe=U,Te=v.length,Ke=X(v,Te,U);U+=Ke>=65536?2:1;for(var et=ie.getGraphemeBreakType(Ke);U=65536?2:1,et=Lt}return U-Oe}function P(v,U){var ie=O.getInstance(),Oe=U,Te=_(v,U);U-=Te>=65536?2:1;for(var Ke=ie.getGraphemeBreakType(Te);U>0;){var et=_(v,U),Ge=ie.getGraphemeBreakType(et);if(I(Ge,Ke))break;U-=et>=65536?2:1,Ke=Ge}return Oe-U}var r=/(?:[\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 s(v){return r.test(v)}var e=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function H(v){return e.test(v)}var p=/^[\t\n\r\x20-\x7E]*$/;function B(v){return p.test(v)}function le(v){for(var U=0,ie=v.length;U=11904&&v<=55215||v>=63744&&v<=64255||v>=65281&&v<=65374}function Ae(v){return v>=127462&&v<=127487||v>=9728&&v<=10175||v>=127744&&v<=128591||v>=128640&&v<=128764||v>=128992&&v<=129003||v>=129280&&v<=129535||v>=129648&&v<=129651||v>=129656&&v<=129666||v>=129680&&v<=129685}var Ee=String.fromCharCode(65279);function je(v){return!!(v&&v.length>0&&v.charCodeAt(0)===65279)}function Se(v){return btoa(encodeURIComponent(v))}function xe(v,U){for(var ie="",Oe=0;Oeie[3*Te+1])Te=2*Te+1;else return ie[3*Te+2];return 0},v._INSTANCE=null,v}();function ae(){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]")}},NvD2:function(dt,z,t){"use strict";t.d(z,"a",function(){return m});var Q=t("Kwbf");function N(ce,ne){var M=new Set;return ce.forEach(function(S){ne.has(S)||M.add(S)}),M}function _e(ce){var ne=ce||{},M=ne.disabled,S=ne.disableCheckbox,d=ne.checkable;return!!(M||S)||d===!1}function Z(ce,ne,M,S){for(var d=new Set(ce),y=new Set,x=0;x<=M;x+=1){var g=ne.get(x)||new Set;g.forEach(function(n){var h=n.key,j=n.node,K=n.children,ee=K===void 0?[]:K;d.has(h)&&!S(j)&&ee.filter(function(F){return!S(F.node)}).forEach(function(F){d.add(F.key)})})}for(var u=new Set,C=M;C>=0;C-=1){var i=ne.get(C)||new Set;i.forEach(function(n){var h=n.parent,j=n.node;if(S(j)||!n.parent||u.has(n.parent.key))return;if(S(n.parent.node)){u.add(h.key);return}var K=!0,ee=!1;(h.children||[]).filter(function(F){return!S(F.node)}).forEach(function(F){var G=F.key,te=d.has(G);K&&!te&&(K=!1),!ee&&(te||y.has(G))&&(ee=!0)}),K&&d.add(h.key),ee&&y.add(h.key),u.add(h.key)})}return{checkedKeys:Array.from(d),halfCheckedKeys:Array.from(N(y,d))}}function l(ce,ne,M,S,d){for(var y=new Set(ce),x=new Set(ne),g=0;g<=S;g+=1){var u=M.get(g)||new Set;u.forEach(function(h){var j=h.key,K=h.node,ee=h.children,F=ee===void 0?[]:ee;!y.has(j)&&!x.has(j)&&!d(K)&&F.filter(function(G){return!d(G.node)}).forEach(function(G){y.delete(G.key)})})}x=new Set;for(var C=new Set,i=S;i>=0;i-=1){var n=M.get(i)||new Set;n.forEach(function(h){var j=h.parent,K=h.node;if(d(K)||!h.parent||C.has(h.parent.key))return;if(d(h.parent.node)){C.add(j.key);return}var ee=!0,F=!1;(j.children||[]).filter(function(G){return!d(G.node)}).forEach(function(G){var te=G.key,w=y.has(te);ee&&!w&&(ee=!1),!F&&(w||x.has(te))&&(F=!0)}),ee||y.delete(j.key),F&&x.add(j.key),C.add(j.key)})}return{checkedKeys:Array.from(y),halfCheckedKeys:Array.from(N(x,y))}}function m(ce,ne,M,S){var d=[],y;S?y=S:y=_e;var x=new Set(ce.filter(function(i){var n=!!M[i];return n||d.push(i),n})),g=new Map,u=0;Object.keys(M).forEach(function(i){var n=M[i],h=n.level,j=g.get(h);j||(j=new Set,g.set(h,j)),j.add(n),u=Math.max(u,h)}),Object(Q.a)(!d.length,"Tree missing follow keys: ".concat(d.slice(0,100).map(function(i){return"'".concat(i,"'")}).join(", ")));var C;return ne===!0?C=Z(x,g,u,y):C=l(x,ne.halfCheckedKeys,g,u,y),C}},OZM5:function(dt,z,t){"use strict";t.d(z,"b",function(){return S}),t.d(z,"a",function(){return d}),t.d(z,"k",function(){return y}),t.d(z,"h",function(){return x}),t.d(z,"i",function(){return g}),t.d(z,"g",function(){return u}),t.d(z,"c",function(){return C}),t.d(z,"d",function(){return i}),t.d(z,"j",function(){return j}),t.d(z,"e",function(){return K}),t.d(z,"f",function(){return ee});var Q=t("KQm4"),N=t("U8pU"),_e=t("Ff2n"),Z=t("q1tI"),l=t.n(Z),m=t("Kwbf"),ce=t("WaYH"),ne=.25,M=2;function S(F,G){var te=F.slice(),w=te.indexOf(G);return w>=0&&te.splice(w,1),te}function d(F,G){var te=F.slice();return te.indexOf(G)===-1&&te.push(G),te}function y(F){return F.split("-")}function x(F,G){return"".concat(F,"-").concat(G)}function g(F){return F&&F.type&&F.type.isTreeNode}function u(F,G){var te=[F],w=G[F];function $(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];f.forEach(function(L){var oe=L.key,X=L.children;te.push(oe),$(X)})}return $(w.children),te}function C(F,G){var te=F.clientY,w=G.selectHandle.getBoundingClientRect(),$=w.top,f=w.bottom,L=w.height,oe=Math.max(L*ne,M);return te<=$+oe?-1:te>=f-oe?1:0}function i(F,G){if(!F)return;var te=G.multiple;return te?F.slice():F.length?[F[0]]:F}var n=function(G){return G};function h(F,G){if(!F)return[];var te=G||{},w=te.processProps,$=w===void 0?n:w,f=Array.isArray(F)?F:[F];return f.map(function(L){var oe=L.children,X=Object(_e.a)(L,["children"]),_=h(oe,G);return l.a.createElement(ce.a,Object.assign({},$(X)),_)})}function j(F){if(!F)return null;var G;if(Array.isArray(F))G={checkedKeys:F,halfCheckedKeys:void 0};else if(Object(N.a)(F)==="object")G={checkedKeys:F.checked||void 0,halfCheckedKeys:F.halfChecked||void 0};else return Object(m.a)(!1,"`checkedKeys` is not an array or an object"),null;return G}function K(F,G){var te=new Set;function w($){if(te.has($))return;var f=G[$];if(!f)return;te.add($);var L=f.parent,oe=f.node;if(oe.disabled)return;L&&w(L.key)}return(F||[]).forEach(function($){w($)}),Object(Q.a)(te)}function ee(F){var G={};return Object.keys(F).forEach(function(te){(te.startsWith("data-")||te.startsWith("aria-"))&&(G[te]=F[te])}),G}},QDVR:function(dt,z,t){"use strict";t.d(z,"e",function(){return N}),t.d(z,"d",function(){return _e}),t.d(z,"c",function(){return ce}),t.d(z,"b",function(){return ne}),t.d(z,"a",function(){return S});var Q=function(){var d=function(y,x){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,u){g.__proto__=u}||function(g,u){for(var C in u)u.hasOwnProperty(C)&&(g[C]=u[C])},d(y,x)};return function(y,x){d(y,x);function g(){this.constructor=y}y.prototype=x===null?Object.create(x):(g.prototype=x.prototype,new g)}}();function N(d){var y=[];return d.forEach(function(x){return y.push(x)}),y}function _e(d){var y=[];return d.forEach(function(x,g){return y.push(g)}),y}var Z=function(){function d(){this._value="",this._pos=0}return d.prototype.reset=function(y){return this._value=y,this._pos=0,this},d.prototype.next=function(){return this._pos+=1,this},d.prototype.hasNext=function(){return this._pos0)u.left||(u.left=new m,u.left.segment=g.value()),u=u.left;else if(C<0)u.right||(u.right=new m,u.right.segment=g.value()),u=u.right;else if(g.hasNext())g.next(),u.mid||(u.mid=new m,u.mid.segment=g.value()),u=u.mid;else break}var i=u.value;return u.value=x,u.key=y,i},d.prototype.get=function(y){for(var x=this._iter.reset(y),g=this._root;g;){var u=x.cmp(g.segment);if(u>0)g=g.left;else if(u<0)g=g.right;else if(x.hasNext())x.next(),g=g.mid;else break}return g?g.value:void 0},d.prototype.findSubstr=function(y){for(var x=this._iter.reset(y),g=this._root,u=void 0;g;){var C=x.cmp(g.segment);if(C>0)g=g.left;else if(C<0)g=g.right;else if(x.hasNext())x.next(),u=g.value||u,g=g.mid;else break}return g&&g.value||u},d.prototype.forEach=function(y){this._forEach(this._root,y)},d.prototype._forEach=function(y,x){y&&(this._forEach(y.left,x),y.value&&x(y.value,y.key),this._forEach(y.mid,x),this._forEach(y.right,x))},d}(),ne=function(){function d(){this.map=new Map,this.ignoreCase=!1}return d.prototype.set=function(y,x){this.map.set(this.toKey(y),x)},d.prototype.get=function(y){return this.map.get(this.toKey(y))},d.prototype.toKey=function(y){var x=y.toString();return this.ignoreCase&&(x=x.toLowerCase()),x},d}(),M=function(){function d(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return d.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(d.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),d.prototype.get=function(y,x){x===void 0&&(x=0);var g=this._map.get(y);return g?(x!==0&&this.touch(g,x),g.value):void 0},d.prototype.set=function(y,x,g){g===void 0&&(g=0);var u=this._map.get(y);if(u)u.value=x,g!==0&&this.touch(u,g);else{u={key:y,value:x,next:void 0,previous:void 0};switch(g){case 0:this.addItemLast(u);break;case 1:this.addItemFirst(u);break;case 2:this.addItemLast(u);break;default:this.addItemLast(u);break}this._map.set(y,u),this._size++}},d.prototype.delete=function(y){return!!this.remove(y)},d.prototype.remove=function(y){var x=this._map.get(y);return x?(this._map.delete(y),this.removeItem(x),this._size--,x.value):void 0},d.prototype.forEach=function(y,x){for(var g=this._head;g;)x?y.bind(x)(g.value,g.key,this):y(g.value,g.key,this),g=g.next},d.prototype.trimOld=function(y){if(y>=this.size)return;if(y===0){this.clear();return}for(var x=this._head,g=this.size;x&&g>y;)this._map.delete(x.key),x=x.next,g--;this._head=x,this._size=g,x&&(x.previous=void 0)},d.prototype.addItemFirst=function(y){if(!this._head&&!this._tail)this._tail=y;else if(this._head)y.next=this._head,this._head.previous=y;else throw new Error("Invalid list");this._head=y},d.prototype.addItemLast=function(y){if(!this._head&&!this._tail)this._head=y;else if(this._tail)y.previous=this._tail,this._tail.next=y;else throw new Error("Invalid list");this._tail=y},d.prototype.removeItem=function(y){if(y===this._head&&y===this._tail)this._head=void 0,this._tail=void 0;else if(y===this._head){if(!y.next)throw new Error("Invalid list");y.next.previous=void 0,this._head=y.next}else if(y===this._tail){if(!y.previous)throw new Error("Invalid list");y.previous.next=void 0,this._tail=y.previous}else{var x=y.next,g=y.previous;if(!x||!g)throw new Error("Invalid list");x.previous=g,g.next=x}y.next=void 0,y.previous=void 0},d.prototype.touch=function(y,x){if(!this._head||!this._tail)throw new Error("Invalid list");if(x!==1&&x!==2)return;if(x===1){if(y===this._head)return;var g=y.next,u=y.previous;y===this._tail?(u.next=void 0,this._tail=u):(g.previous=u,u.next=g),y.previous=void 0,y.next=this._head,this._head.previous=y,this._head=y}else if(x===2){if(y===this._tail)return;var g=y.next,u=y.previous;y===this._head?(g.previous=void 0,this._head=g):(g.previous=u,u.next=g),y.next=void 0,y.previous=this._tail,this._tail.next=y,this._tail=y}},d.prototype.toJSON=function(){var y=[];return this.forEach(function(x,g){y.push([g,x])}),y},d}(),S=function(d){Q(y,d);function y(x,g){g===void 0&&(g=1);var u=d.call(this)||this;return u._limit=x,u._ratio=Math.min(Math.max(0,g),1),u}return y.prototype.get=function(x){return d.prototype.get.call(this,x,2)},y.prototype.peek=function(x){return d.prototype.get.call(this,x,0)},y.prototype.set=function(x,g){d.prototype.set.call(this,x,g,2),this.checkTrim()},y.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},y}(M)},Qfqc:function(dt,z,t){dt.exports={flex_box_center:"flex_box_center___15S-q",flex_space_between:"flex_space_between___23kwU",flex_box_vertical_center:"flex_box_vertical_center___2l8VY",flex_box_center_end:"flex_box_center_end___VYSS9",flex_box_column:"flex_box_column___3s3TT",wrap:"wrap___2KYjo",title:"title___2f4-2",standardTableWrap:"standardTableWrap___3LLAr",targetTableWrap:"targetTableWrap___cvI3A",waysTableWrap:"waysTableWrap___2j0v-",green:"green___2L8AY",box:"box___22ae3",padding:"padding___2PpV_",control:"control___1HoTk",label:"label___2GboG",customTable:"customTable___3ah1R",tagWrap:"tagWrap___pnb_0",tag:"tag____fSY6",line:"line___3sZe3",textwidth:"textwidth___3QXnN",modalWrapContainer:"modalWrapContainer___o_fOQ",inputWrap:"inputWrap___AsC3W",addCourseTabsContainer:"addCourseTabsContainer___3oEeV",textone:"textone___2YzXy"}},"SA+Z":function(dt,z,t){var Q=t("wTVA"),N=t("EbDI"),_e=t("ZhPi"),Z=t("wkBT");function l(m){return Q(m)||N(m)||_e(m)||Z()}dt.exports=l,dt.exports.__esModule=!0,dt.exports.default=dt.exports},T8No:function(dt,z,t){"use strict";t.d(z,"a",function(){return Z}),t.d(z,"b",function(){return x}),t.d(z,"d",function(){return g}),t.d(z,"c",function(){return u}),t.d(z,"e",function(){return C});var Q=t("N0LK"),N=t("Cg/j"),_e=function(){var i=function(n,h){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(j,K){j.__proto__=K}||function(j,K){for(var ee in K)K.hasOwnProperty(ee)&&(j[ee]=K[ee])},i(n,h)};return function(n,h){i(n,h);function j(){this.constructor=n}n.prototype=h===null?Object.create(h):(j.prototype=h.prototype,new j)}}(),Z=function(){function i(){}return i.has=function(n){return m.create(n)},i.equals=function(n,h){return ce.create(n,h)},i.regex=function(n,h){return S.create(n,h)},i.not=function(n){return M.create(n)},i.and=function(){for(var n=[],h=0;h=0){var j=n.split("!=");return ne.create(j[0].trim(),this._deserializeValue(j[1],h))}if(n.indexOf("==")>=0){var j=n.split("==");return ce.create(j[0].trim(),this._deserializeValue(j[1],h))}if(n.indexOf("=~")>=0){var j=n.split("=~");return S.create(j[0].trim(),this._deserializeRegexValue(j[1],h))}return/^\!\s*/.test(n)?M.create(n.substr(1).trim()):m.create(n)},i._deserializeValue=function(n,h){if(n=n.trim(),n==="true")return!0;if(n==="false")return!1;var j=/^'([^']*)'$/.exec(n);return j?j[1].trim():n},i._deserializeRegexValue=function(n,h){if(Object(Q.x)(n)){if(h)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var j=n.indexOf("/"),K=n.lastIndexOf("/");if(j===K||j<0){if(h)throw new Error("bad regexp-value '"+n+"', missing /-enclosure");return console.warn("bad regexp-value '"+n+"', missing /-enclosure"),null}var ee=n.slice(j+1,K),F=n[K+1]==="i"?"i":"";try{return new RegExp(ee,F)}catch(G){if(h)throw new Error("bad regexp-value '"+n+"', parse error: "+G);return console.warn("bad regexp-value '"+n+"', parse error: "+G),null}},i}();function l(i,n){var h=i.getType(),j=n.getType();if(h!==j)return h-j;switch(h){case 1:return i.cmp(n);case 2:return i.cmp(n);case 3:return i.cmp(n);case 4:return i.cmp(n);case 6:return i.cmp(n);case 7:return i.cmp(n);case 5:return i.cmp(n);default:throw new Error("Unknown ContextKeyExpr!")}}var m=function(){function i(n){this.key=n}return i.create=function(n){return new i(n)},i.prototype.getType=function(){return 1},i.prototype.cmp=function(n){return this.keyn.key?1:0},i.prototype.equals=function(n){return n instanceof i?this.key===n.key:!1},i.prototype.evaluate=function(n){return!!n.getValue(this.key)},i.prototype.keys=function(){return[this.key]},i.prototype.negate=function(){return M.create(this.key)},i}(),ce=function(){function i(n,h){this.key=n,this.value=h}return i.create=function(n,h){return typeof h=="boolean"?h?m.create(n):M.create(n):new i(n,h)},i.prototype.getType=function(){return 3},i.prototype.cmp=function(n){return this.keyn.key?1:this.valuen.value?1:0},i.prototype.equals=function(n){return n instanceof i?this.key===n.key&&this.value===n.value:!1},i.prototype.evaluate=function(n){return n.getValue(this.key)==this.value},i.prototype.keys=function(){return[this.key]},i.prototype.negate=function(){return ne.create(this.key,this.value)},i}(),ne=function(){function i(n,h){this.key=n,this.value=h}return i.create=function(n,h){return typeof h=="boolean"?h?M.create(n):m.create(n):new i(n,h)},i.prototype.getType=function(){return 4},i.prototype.cmp=function(n){return this.keyn.key?1:this.valuen.value?1:0},i.prototype.equals=function(n){return n instanceof i?this.key===n.key&&this.value===n.value:!1},i.prototype.evaluate=function(n){return n.getValue(this.key)!=this.value},i.prototype.keys=function(){return[this.key]},i.prototype.negate=function(){return ce.create(this.key,this.value)},i}(),M=function(){function i(n){this.key=n}return i.create=function(n){return new i(n)},i.prototype.getType=function(){return 2},i.prototype.cmp=function(n){return this.keyn.key?1:0},i.prototype.equals=function(n){return n instanceof i?this.key===n.key:!1},i.prototype.evaluate=function(n){return!n.getValue(this.key)},i.prototype.keys=function(){return[this.key]},i.prototype.negate=function(){return m.create(this.key)},i}(),S=function(){function i(n,h){this.key=n,this.regexp=h}return i.create=function(n,h){return new i(n,h)},i.prototype.getType=function(){return 6},i.prototype.cmp=function(n){if(this.keyn.key)return 1;var h=this.regexp?this.regexp.source:"",j=n.regexp?n.regexp.source:"";return hj?1:0},i.prototype.equals=function(n){if(n instanceof i){var h=this.regexp?this.regexp.source:"",j=n.regexp?n.regexp.source:"";return this.key===n.key&&h===j}return!1},i.prototype.evaluate=function(n){var h=n.getValue(this.key);return this.regexp?this.regexp.test(h):!1},i.prototype.keys=function(){return[this.key]},i.prototype.negate=function(){return d.create(this)},i}(),d=function(){function i(n){this._actual=n}return i.create=function(n){return new i(n)},i.prototype.getType=function(){return 7},i.prototype.cmp=function(n){return this._actual.cmp(n._actual)},i.prototype.equals=function(n){return n instanceof i?this._actual.equals(n._actual):!1},i.prototype.evaluate=function(n){return!this._actual.evaluate(n)},i.prototype.keys=function(){return this._actual.keys()},i.prototype.negate=function(){return this._actual},i}(),y=function(){function i(n){this.expr=n}return i.create=function(n){var h=i._normalizeArr(n);return h.length===0?void 0:h.length===1?h[0]:new i(h)},i.prototype.getType=function(){return 5},i.prototype.cmp=function(n){if(this.expr.lengthn.expr.length)return 1;for(var h=0,j=this.expr.length;h1;){for(var F=n.shift(),G=n.shift(),te=[],w=0,$=ee(F);w<$.length;w++)for(var f=$[w],L=0,oe=ee(G);L1&&arguments[1]!==void 0?arguments[1]:!1,Se=be.getAttribute("id")||be.getAttribute("data-reactid")||be.getAttribute("name");if(je&&b[Se])return b[Se];var xe=window.getComputedStyle(be),he=xe.getPropertyValue("box-sizing")||xe.getPropertyValue("-moz-box-sizing")||xe.getPropertyValue("-webkit-box-sizing"),me=parseFloat(xe.getPropertyValue("padding-bottom"))+parseFloat(xe.getPropertyValue("padding-top")),c=parseFloat(xe.getPropertyValue("border-bottom-width"))+parseFloat(xe.getPropertyValue("border-top-width")),I=_.map(function(ae){return"".concat(ae,":").concat(xe.getPropertyValue(ae))}).join(";"),O={sizingStyle:I,paddingSize:me,borderSize:c,boxSizing:he};return je&&Se&&(b[Se]=O),O}function s(be){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,xe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;P||(P=document.createElement("textarea"),P.setAttribute("tab-index","-1"),P.setAttribute("aria-hidden","true"),document.body.appendChild(P)),be.getAttribute("wrap")?P.setAttribute("wrap",be.getAttribute("wrap")):P.removeAttribute("wrap");var he=r(be,je),me=he.paddingSize,c=he.borderSize,I=he.boxSizing,O=he.sizingStyle;P.setAttribute("style","".concat(O,";").concat(X)),P.value=be.value||be.placeholder||"";var ae=Number.MIN_SAFE_INTEGER,v=Number.MAX_SAFE_INTEGER,U=P.scrollHeight,ie;if(I==="border-box"?U+=c:I==="content-box"&&(U-=me),Se!==null||xe!==null){P.value=" ";var Oe=P.scrollHeight-me;Se!==null&&(ae=Oe*Se,I==="border-box"&&(ae=ae+me+c),U=Math.max(ae,U)),xe!==null&&(v=Oe*xe,I==="border-box"&&(v=v+me+c),ie=U>v?"":"hidden",U=Math.min(v,U))}return{height:U,minHeight:ae,maxHeight:v,overflowY:ie,resize:"none"}}var e=t("Gytx"),H=t.n(e),p;(function(be){be[be.NONE=0]="NONE",be[be.RESIZING=1]="RESIZING",be[be.RESIZED=2]="RESIZED"})(p||(p={}));var B=function(be){Object(Z.a)(Se,be);var je=Object(l.a)(Se);function Se(xe){var he;return Object(N.a)(this,Se),he=je.call(this,xe),he.nextFrameActionId=void 0,he.resizeFrameId=void 0,he.textArea=void 0,he.saveTextArea=function(me){he.textArea=me},he.handleResize=function(me){var c=he.state.resizeStatus,I=he.props,O=I.autoSize,ae=I.onResize;if(c!==p.NONE)return;typeof ae=="function"&&ae(me),O&&he.resizeOnNextFrame()},he.resizeOnNextFrame=function(){cancelAnimationFrame(he.nextFrameActionId),he.nextFrameActionId=requestAnimationFrame(he.resizeTextarea)},he.resizeTextarea=function(){var me=he.props.autoSize;if(!me||!he.textArea)return;var c=me.minRows,I=me.maxRows,O=s(he.textArea,!1,c,I);he.setState({textareaStyles:O,resizeStatus:p.RESIZING},function(){cancelAnimationFrame(he.resizeFrameId),he.resizeFrameId=requestAnimationFrame(function(){he.setState({resizeStatus:p.RESIZED},function(){he.resizeFrameId=requestAnimationFrame(function(){he.setState({resizeStatus:p.NONE}),he.fixFirefoxAutoScroll()})})})})},he.renderTextArea=function(){var me=he.props,c=me.prefixCls,I=c===void 0?"rc-textarea":c,O=me.autoSize,ae=me.onResize,v=me.className,U=me.disabled,ie=he.state,Oe=ie.textareaStyles,Te=ie.resizeStatus,Ke=Object(f.a)(he.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),et=oe()(I,v,Object(ne.a)({},"".concat(I,"-disabled"),U));"value"in Ke&&(Ke.value=Ke.value||"");var Ge=Object(ce.a)(Object(ce.a)(Object(ce.a)({},he.props.style),Oe),Te===p.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return m.createElement($,{onResize:he.handleResize,disabled:!(O||ae)},m.createElement("textarea",Object(Q.a)({},Ke,{className:et,style:Ge,ref:he.saveTextArea})))},he.state={textareaStyles:{},resizeStatus:p.NONE},he}return Object(_e.a)(Se,[{key:"componentDidUpdate",value:function(he){(he.value!==this.props.value||!H()(he.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var he=this.textArea.selectionStart,me=this.textArea.selectionEnd;this.textArea.setSelectionRange(he,me)}}catch(c){}}},{key:"render",value:function(){return this.renderTextArea()}}]),Se}(m.Component),le=B,de=function(be){Object(Z.a)(Se,be);var je=Object(l.a)(Se);function Se(xe){var he;Object(N.a)(this,Se),he=je.call(this,xe),he.resizableTextArea=void 0,he.focus=function(){he.resizableTextArea.textArea.focus()},he.saveTextArea=function(c){he.resizableTextArea=c},he.handleChange=function(c){var I=he.props.onChange;he.setValue(c.target.value,function(){he.resizableTextArea.resizeTextarea()}),I&&I(c)},he.handleKeyDown=function(c){var I=he.props,O=I.onPressEnter,ae=I.onKeyDown;c.keyCode===13&&O&&O(c),ae&&ae(c)};var me=typeof xe.value=="undefined"||xe.value===null?xe.defaultValue:xe.value;return he.state={value:me},he}return Object(_e.a)(Se,[{key:"setValue",value:function(he,me){"value"in this.props||this.setState({value:he},me)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return m.createElement(le,Object(Q.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(he){return"value"in he?{value:he.value}:null}}]),Se}(m.Component),Ae=z.default=de},ZW9T:function(dt,z,t){"use strict";t.d(z,"a",function(){return $});var Q=t("k1fw"),N=t("oBTY"),_e=t("9og8"),Z=t("miYZ"),l=t("tsqr"),m=t("rAM+"),ce=t("tJVT"),ne=t("PpiC"),M=t("WmNS"),S=t.n(M),d=t("q1tI"),y=t.n(d),x=t("bdgK");function g(f,L,oe,X,_){var b=L.getWordUntilPosition(oe),P={startLineNumber:oe.lineNumber,endLineNumber:oe.lineNumber,startColumn:b.startColumn,endColumn:b.endColumn},r=X.map(function(s){return{label:s,kind:f.languages.CompletionItemKind.Keyword,insertText:s,insertTextRules:f.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:P}});return _.map(function(s){r.push(Object(Q.a)(Object(Q.a)({},s),{},{range:P}))}),r}var u=function(f){var L={label:"ifelse",kind:f.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {"," $0","} else {"," ","}"].join(` +`,_=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],E={},P;function r(Ee){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Se=Ee.getAttribute("id")||Ee.getAttribute("data-reactid")||Ee.getAttribute("name");if(je&&E[Se])return E[Se];var xe=window.getComputedStyle(Ee),he=xe.getPropertyValue("box-sizing")||xe.getPropertyValue("-moz-box-sizing")||xe.getPropertyValue("-webkit-box-sizing"),me=parseFloat(xe.getPropertyValue("padding-bottom"))+parseFloat(xe.getPropertyValue("padding-top")),c=parseFloat(xe.getPropertyValue("border-bottom-width"))+parseFloat(xe.getPropertyValue("border-top-width")),I=_.map(function(ae){return"".concat(ae,":").concat(xe.getPropertyValue(ae))}).join(";"),O={sizingStyle:I,paddingSize:me,borderSize:c,boxSizing:he};return je&&Se&&(E[Se]=O),O}function s(Ee){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,xe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;P||(P=document.createElement("textarea"),P.setAttribute("tab-index","-1"),P.setAttribute("aria-hidden","true"),document.body.appendChild(P)),Ee.getAttribute("wrap")?P.setAttribute("wrap",Ee.getAttribute("wrap")):P.removeAttribute("wrap");var he=r(Ee,je),me=he.paddingSize,c=he.borderSize,I=he.boxSizing,O=he.sizingStyle;P.setAttribute("style","".concat(O,";").concat(X)),P.value=Ee.value||Ee.placeholder||"";var ae=Number.MIN_SAFE_INTEGER,v=Number.MAX_SAFE_INTEGER,U=P.scrollHeight,ie;if(I==="border-box"?U+=c:I==="content-box"&&(U-=me),Se!==null||xe!==null){P.value=" ";var Oe=P.scrollHeight-me;Se!==null&&(ae=Oe*Se,I==="border-box"&&(ae=ae+me+c),U=Math.max(ae,U)),xe!==null&&(v=Oe*xe,I==="border-box"&&(v=v+me+c),ie=U>v?"":"hidden",U=Math.min(v,U))}return{height:U,minHeight:ae,maxHeight:v,overflowY:ie,resize:"none"}}var e=t("Gytx"),H=t.n(e),p;(function(Ee){Ee[Ee.NONE=0]="NONE",Ee[Ee.RESIZING=1]="RESIZING",Ee[Ee.RESIZED=2]="RESIZED"})(p||(p={}));var B=function(Ee){Object(Z.a)(Se,Ee);var je=Object(l.a)(Se);function Se(xe){var he;return Object(N.a)(this,Se),he=je.call(this,xe),he.nextFrameActionId=void 0,he.resizeFrameId=void 0,he.textArea=void 0,he.saveTextArea=function(me){he.textArea=me},he.handleResize=function(me){var c=he.state.resizeStatus,I=he.props,O=I.autoSize,ae=I.onResize;if(c!==p.NONE)return;typeof ae=="function"&&ae(me),O&&he.resizeOnNextFrame()},he.resizeOnNextFrame=function(){cancelAnimationFrame(he.nextFrameActionId),he.nextFrameActionId=requestAnimationFrame(he.resizeTextarea)},he.resizeTextarea=function(){var me=he.props.autoSize;if(!me||!he.textArea)return;var c=me.minRows,I=me.maxRows,O=s(he.textArea,!1,c,I);he.setState({textareaStyles:O,resizeStatus:p.RESIZING},function(){cancelAnimationFrame(he.resizeFrameId),he.resizeFrameId=requestAnimationFrame(function(){he.setState({resizeStatus:p.RESIZED},function(){he.resizeFrameId=requestAnimationFrame(function(){he.setState({resizeStatus:p.NONE}),he.fixFirefoxAutoScroll()})})})})},he.renderTextArea=function(){var me=he.props,c=me.prefixCls,I=c===void 0?"rc-textarea":c,O=me.autoSize,ae=me.onResize,v=me.className,U=me.disabled,ie=he.state,Oe=ie.textareaStyles,Te=ie.resizeStatus,Ke=Object(f.a)(he.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),et=oe()(I,v,Object(ne.a)({},"".concat(I,"-disabled"),U));"value"in Ke&&(Ke.value=Ke.value||"");var Ge=Object(ce.a)(Object(ce.a)(Object(ce.a)({},he.props.style),Oe),Te===p.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return m.createElement($,{onResize:he.handleResize,disabled:!(O||ae)},m.createElement("textarea",Object(Q.a)({},Ke,{className:et,style:Ge,ref:he.saveTextArea})))},he.state={textareaStyles:{},resizeStatus:p.NONE},he}return Object(_e.a)(Se,[{key:"componentDidUpdate",value:function(he){(he.value!==this.props.value||!H()(he.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var he=this.textArea.selectionStart,me=this.textArea.selectionEnd;this.textArea.setSelectionRange(he,me)}}catch(c){}}},{key:"render",value:function(){return this.renderTextArea()}}]),Se}(m.Component),le=B,de=function(Ee){Object(Z.a)(Se,Ee);var je=Object(l.a)(Se);function Se(xe){var he;Object(N.a)(this,Se),he=je.call(this,xe),he.resizableTextArea=void 0,he.focus=function(){he.resizableTextArea.textArea.focus()},he.saveTextArea=function(c){he.resizableTextArea=c},he.handleChange=function(c){var I=he.props.onChange;he.setValue(c.target.value,function(){he.resizableTextArea.resizeTextarea()}),I&&I(c)},he.handleKeyDown=function(c){var I=he.props,O=I.onPressEnter,ae=I.onKeyDown;c.keyCode===13&&O&&O(c),ae&&ae(c)};var me=typeof xe.value=="undefined"||xe.value===null?xe.defaultValue:xe.value;return he.state={value:me},he}return Object(_e.a)(Se,[{key:"setValue",value:function(he,me){"value"in this.props||this.setState({value:he},me)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return m.createElement(le,Object(Q.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(he){return"value"in he?{value:he.value}:null}}]),Se}(m.Component),Ae=z.default=de},ZW9T:function(dt,z,t){"use strict";t.d(z,"a",function(){return $});var Q=t("k1fw"),N=t("oBTY"),_e=t("9og8"),Z=t("miYZ"),l=t("tsqr"),m=t("rAM+"),ce=t("tJVT"),ne=t("PpiC"),M=t("WmNS"),S=t.n(M),d=t("q1tI"),y=t.n(d),x=t("bdgK");function g(f,L,oe,X,_){var E=L.getWordUntilPosition(oe),P={startLineNumber:oe.lineNumber,endLineNumber:oe.lineNumber,startColumn:E.startColumn,endColumn:E.endColumn},r=X.map(function(s){return{label:s,kind:f.languages.CompletionItemKind.Keyword,insertText:s,insertTextRules:f.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:P}});return _.map(function(s){r.push(Object(Q.a)(Object(Q.a)({},s),{},{range:P}))}),r}var u=function(f){var L={label:"ifelse",kind:f.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {"," $0","} else {"," ","}"].join(` `),insertTextRules:f.languages.CompletionItemInsertTextRule.InsertAsSnippet},oe=["auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while","inline","restrict","_Bool","_Complex","_Imaginary","_Alignas","_Alignof","_Atomic","_Static_assert","_Noreturn","_Thread_local","_Generic"];f.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(P,r){var s=g(f,P,r,oe,[L]);return{suggestions:s}}});var X=["False","None","True","and","as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal","not","or","pass","raise","return","try","while","with","yield"];f.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(P,r){var s=[{label:"print",kind:f.languages.CompletionItemKind.Snippet,insertText:["print($0)"].join(` `),insertTextRules:f.languages.CompletionItemInsertTextRule.InsertAsSnippet}],e=g(f,P,r,X,s);return{suggestions:e}}});var _=["abstract","assert","boolean","break","byte","case","catch","char","class","const","continue","default","do","double","else","enum","extends","final","finally","float","for","goto","if","implements","import","instance of","int","interface","long","native","new","package","private","protected","public","return","strictfp","short","static","super","switch","synchronized","this","throw","throws","transient","try","void","volatile","while"];f.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(P,r){var s=[L,{label:"main",kind:f.languages.CompletionItemKind.Snippet,insertText:["public static void main(String[] args) {"," $0","}"].join(` `),insertTextRules:f.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"System.out.print",kind:f.languages.CompletionItemKind.Snippet,insertText:["System.out.print($0)"].join(` -`),insertTextRules:f.languages.CompletionItemInsertTextRule.InsertAsSnippet}],e=g(f,P,r,_,s);return{suggestions:e}}})},C="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",i=t("fjLI"),n=t("LvDl"),h=t("+ua5");function j(f){return/^\d+$/.test(f)?"".concat(f,"px"):f}function K(){}var ee=!1,F={"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",Scala:"scale"};function G(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],L=f;if(Array.isArray(f)){for(var oe=0;oe0||un.target.offsetWidth>0)&&Pe.current.instance.layout()}}catch(en){st.e(en)}finally{st.f()}}),tt.observe(Me.current)),tt}function mt(){l.b.warn({content:decodeURIComponent(C),key:"monaco-editor-tip"})}var At=function(){var Ze=Pe.current.instance;if(b!=null&&Ze&&ze){var st=Ze.getModel();st&&b!==st.getValue()&&(ee=!0,st.setValue(b),Ze.layout(),ee=!1)}};Object(d.useEffect)(function(){try{var tt,Ze=Pe.current.instance;Je.current&&clearTimeout(Je.current),Je.current=setTimeout(function(){At()},500),Ze==null||((tt=Ze.updateOptions)===null||tt===void 0)||tt.call(Ze,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(b.split(/\r\n|\r|\n/g).length))+3,5)})}catch(st){debugger}},[b,ze,Pe.current]),Object(d.useEffect)(function(){try{if(Lt&&Pe.current&&Pe.current.instance){var tt=Pe.current.instance;tt.changeViewZones(function(st){var Dt=document.createElement("div");Dt.style.padding="10px 20px",Dt.style.width="calc(100% - 20px)",Dt.className="my-error-line-wrp",Dt.innerHTML=It,st.addZone({afterLineNumber:Lt||11,heightInLines:3,domNode:Dt})});var Ze={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}};tt.addOverlayWidget(Ze),tt.revealPositionInCenter({lineNumber:20,column:1})}}catch(st){debugger}},[Lt,Pe.current,ze]),Object(d.useEffect)(function(){var tt;if((tt=Pe.current)!==null&&tt!==void 0&&tt.instance&&ze&&wt){var Ze=Pe.current.instance,st=Ze.getModel();if(!st)return;var Dt=function(){var se=[],Ne=[],qe=st.getAllDecorations(),at=Object(m.a)(qe),vt;try{for(at.s();!(vt=at.n()).done;){var ot=vt.value;if(ot.options.className==="highlighted-line"){var k;se.push(ot==null||((k=ot.range)===null||k===void 0)?void 0:k.startLineNumber),Ne.push(ot==null?void 0:ot.id)}}}catch(fe){at.e(fe)}finally{at.f()}st.deltaDecorations(Ne,[]);var Ee=st.getLineCount();!!lt&<<=Ee&&(Ze.deltaDecorations([],[{range:new te.Range(lt,1,lt,st.getLineMaxColumn(lt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Ze.revealLineInCenter(lt))};Dt();var un=function(){var se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Ne=[],qe=[],at=st.getAllDecorations(),vt=Object(m.a)(at),ot;try{for(vt.s();!(ot=vt.n()).done;){var k=ot.value;if(k.options.linesDecorationsClassName==="breakpoints"){var Ee;Ne.push(k==null||((Ee=k.range)===null||Ee===void 0)?void 0:Ee.startLineNumber),qe.push(k==null?void 0:k.id)}}}catch(fe){vt.e(fe)}finally{vt.f()}if(se)return{lines:Ne,ids:qe};Oe(Ne)},en=function(){var ut=Object(_e.a)(S.a.mark(function se(Ne){var qe;return S.a.wrap(function(vt){for(;;)switch(vt.prev=vt.next){case 0:return qe={range:new te.Range(Ne,1,Ne,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}},vt.next=3,st.deltaDecorations([],[qe]);case 3:un();case 4:case"end":return vt.stop()}},se)}));return function(Ne){return ut.apply(this,arguments)}}(),bn=function(){var ut=Object(_e.a)(S.a.mark(function se(Ne){var qe,at,vt,ot,k;return S.a.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:qe=[],at=Ze.getLineDecorations(Ne),vt=Object(m.a)(at);try{for(vt.s();!(ot=vt.n()).done;)k=ot.value,k.options.linesDecorationsClassName==="breakpoints"&&qe.push(k.id)}catch(ge){vt.e(ge)}finally{vt.f()}return fe.next=6,st.deltaDecorations(qe,[]);case 6:un();case 7:case"end":return fe.stop()}},se)}));return function(Ne){return ut.apply(this,arguments)}}(),Sn=function(se){var Ne=Ze.getLineDecorations(se),qe=Object(m.a)(Ne),at;try{for(qe.s();!(at=qe.n()).done;){var vt=at.value;if(vt.options.linesDecorationsClassName==="breakpoints")return!0}}catch(ot){qe.e(ot)}finally{qe.f()}return!1};if(!Object(n.isEqual)(Ke,un(!0).lines)){st.deltaDecorations(un(!0).ids,[]);var Ln=Ke.map(function(ut){return{range:new te.Range(ut,1,ut,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}}});st.deltaDecorations([],Ln)}var In=Ze.onDidChangeModelContent(function(ut){var se=Ze.getPosition();if(se){var Ne=se.lineNumber;st.getLineContent(Ne).trim()===""?bn(Ne):Sn(Ne)&&(bn(Ne),en(Ne))}}),Mn=Ze.onMouseDown(function(ut){var se,Ne,qe;if(ut.target.detail&&(se=ut.target)!==null&&se!==void 0&&(Ne=se.element)!==null&&Ne!==void 0&&(qe=Ne.className)!==null&&qe!==void 0&&qe.includes("line-numbers")){var at=ut.target.position.lineNumber;if(st.getLineContent(at).trim()==="")return;Sn(at)?bn(at):en(at)}}),Zn=function(se){var Ne={range:new te.Range(se,1,se,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Ve.current=Ze.deltaDecorations(Ve.current,[Ne])},_n=function(){Ve.current=Ze.deltaDecorations(Ve.current,[])},wn=Ze.onMouseMove(function(ut){var se,Ne,qe;if(_n(),ut.target.detail&&(se=ut.target)!==null&&se!==void 0&&(Ne=se.element)!==null&&Ne!==void 0&&(qe=Ne.className)!==null&&qe!==void 0&&qe.includes("line-numbers")){var at=ut.target.position.lineNumber;if(st.getLineContent(at).trim()==="")return;Zn(at)}}),kn=Ze.onMouseLeave(function(){_n()});return function(){In.dispose(),Mn.dispose(),wn.dispose(),kn.dispose()}}},[Pe.current,ze,Ke,lt,wt]);function zt(){var tt=Pe.current.instance;if(tt){var Ze=tt.getSelection(),st=Pe.current.pastePos||{},Dt=new te.Range(st.startLineNumber||Ze.endLineNumber,st.startColumn||Ze.endColumn,st.endLineNumber||Ze.endLineNumber,st.endColumn||Ze.endColumn);setTimeout(function(){tt.executeEdits("",[{range:Dt,text:""}])},300)}}function kt(tt){(window.navigator.platform.match("Mac")?tt.metaKey:tt.ctrlKey)&&tt.keyCode==83&&(tt.preventDefault(),je())}var Tt=function(){if(xe&&Pe.current.instance){var Ze=Pe.current.instance.getContentHeight();Rt(Ze<_?_:Ze)}else Rt(_)};function Ot(tt){var Ze=document.createEvent("MouseEvents");Ze.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),tt.dispatchEvent(Ze)}var dn=function(Ze){var st=Ze.keyCode,Dt=Ze.ctrlKey,un=Ze.metaKey,en=Ze.target,bn=Ze.type;return(bn==="paste"||(st===67||st===86)&&(un||Dt))&&en.nodeName==="TEXTAREA"&&(mt(),Ze.preventDefault()),!1};function ln(tt,Ze){var st=window.URL||window.webkitURL||window,Dt=new Blob([Ze]),un=document.createElementNS("http://www.w3.org/1999/xhtml","a");un.href=st.createObjectURL(Dt),un.download=tt,Ot(un)}Object(d.useEffect)(function(){Tt()},[Tt]),Object(d.useEffect)(function(){Me.current&&!ze&&t.e(27).then(t.t.bind(null,"M/lh",7)).then(function(tt){try{te=tt,Pe.current.instance=te.editor.create(Me.current,{value:b,language:G(r),theme:Ae,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},le);var Ze=Pe.current.instance,st=i.c._menuItems,Dt=Object(N.a)(st).find(function(en){return en[0]._debugName=="EditorContext"});if(ae(Ze,te),setTimeout(function(){Tt(),Pe.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:function(){ln(Ge||"educoder.txt",Ze.getValue())}}),Ze.getDomNode().addEventListener("input",function(){ve.current.autoFormat&&Ze.getAction("editor.action.formatDocument").run()})},500),Pe.current.subscription=Ze.onDidChangeModelContent(function(en){debugger;Fe.current?clearTimeout(ke.current):(Tt(),I(Ze.getValue(),en)),ke.current=setTimeout(function(){Fe.current=!1},500)}),window.Monaco||u(te,G(r)),me&&(Me.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",dn),window.removeEventListener("paste",dn),window.addEventListener("keydown",dn),window.addEventListener("paste",dn)),window.Monaco=te,be&&Ze.onDidBlurEditorWidget(function(){be(Ze.getValue())}),U&&Ze.onDidFocusEditorText(function(){U(Ze.getValue())}),me)try{window.addEventListener("paste",zt)}catch(en){}var un=ft();return rt(!0),function(){var en=Pe.current.instance;en.dispose();var bn=en.getModel();bn&&bn.dispose(),Pe.current.subscription&&Pe.current.subscription.dispose(),me&&window.removeEventListener("paste",zt),un.unobserve(Me.current)}}catch(en){debugger}})},[]),Object(d.useEffect)(function(){var tt=Pe.current.instance;if(tt&&ze)return document.addEventListener("keydown",kt,!1),function(){document.removeEventListener("keydown",kt)}},[je,ze]),Object(d.useEffect)(function(){var tt=Pe.current.instance;if(tt&&ze){var Ze=G(r);te.editor.setModelLanguage(tt.getModel(),Ze)}},[r,ze]),Object(d.useEffect)(function(){var tt=Pe.current.instance;tt&&ze&&te.editor.setTheme(Ae)},[Ae,ze]),Object(d.useEffect)(function(){var tt=Pe.current.instance;ve.current=p,tt&&ze&&(tt.updateOptions(Object(Q.a)({},p)),setTimeout(function(){tt.getModel().updateOptions(Object(Q.a)({},p))},200))},[JSON.stringify(p),ze]),Object(d.useEffect)(function(){var tt=Pe.current.instance;tt&&ze&&tt.layout()},[oe,_,ze]);var Xe=Object(d.useState)(j(oe)),Ft=Object(ce.a)(Xe,2),gn=Ft[0],ht=Ft[1],Bt=Object(d.useState)(j(_)),Ct=Object(ce.a)(Bt,2),gt=Ct[0],Rt=Ct[1],jt=Object(Q.a)(Object(Q.a)({},e),{},{width:gn,height:gt});return y.a.createElement("div",{className:"my-monaco-editor",ref:Me,style:jt})};function $(f){var L=f.width,oe=L===void 0?"100%":L,X=f.height,_=X===void 0?"100%":X,b=f.original,P=f.modified,r=f.language,s=f.options,e=s===void 0?{}:s,H=Object(d.useRef)(),p=Object(d.useState)(null),B=Object(ce.a)(p,2),le=B[0],de=B[1];function Ae(xe){var he;return H.current&&(he=new x.default(function(me){var c=Object(m.a)(me),I;try{for(c.s();!(I=c.n()).done;){var O=I.value;(O.target.offsetHeight>0||O.target.offsetWidth>0)&&xe.layout()}}catch(ae){c.e(ae)}finally{c.f()}}),he.observe(H.current)),he}Object(d.useEffect)(function(){return H.current&&t.e(27).then(t.t.bind(null,"M/lh",7)).then(function(xe){te=xe;var he=te.editor.createDiffEditor(H.current,Object(Q.a)(Object(Q.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},e),{},{wordWrap:!0}));de(he);var me=Ae(he);return function(){he.dispose();var c=he.getModel();c&&c.dispose(),me.unobserve(H.current)}}),function(){window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}},[]),Object(d.useEffect)(function(){le&&le.setModel({original:te.editor.createModel(b,r),modified:te.editor.createModel(P,r)})},[b,P,r,le]);var be=j(oe),je=j(_),Se={width:be,height:je};return y.a.createElement("div",{className:"my-diff-editor",ref:H,style:Se})}},Zss7:function(dt,z,t){var Q;(function(N){var _e=/^\s+/,Z=/\s+$/,l=0,m=N.round,ce=N.min,ne=N.max,M=N.random;function S(c,I){if(c=c||"",I=I||{},c instanceof S)return c;if(!(this instanceof S))return new S(c,I);var O=d(c);this._originalInput=c,this._r=O.r,this._g=O.g,this._b=O.b,this._a=O.a,this._roundA=m(100*this._a)/100,this._format=I.format||O.format,this._gradientType=I.gradientType,this._r<1&&(this._r=m(this._r)),this._g<1&&(this._g=m(this._g)),this._b<1&&(this._b=m(this._b)),this._ok=O.ok,this._tc_id=l++}S.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var c=this.toRgb();return(c.r*299+c.g*587+c.b*114)/1e3},getLuminance:function(){var c=this.toRgb(),I,O,ae,v,U,ie;return I=c.r/255,O=c.g/255,ae=c.b/255,I<=.03928?v=I/12.92:v=N.pow((I+.055)/1.055,2.4),O<=.03928?U=O/12.92:U=N.pow((O+.055)/1.055,2.4),ae<=.03928?ie=ae/12.92:ie=N.pow((ae+.055)/1.055,2.4),.2126*v+.7152*U+.0722*ie},setAlpha:function(c){return this._a=s(c),this._roundA=m(100*this._a)/100,this},toHsv:function(){var c=u(this._r,this._g,this._b);return{h:c.h*360,s:c.s,v:c.v,a:this._a}},toHsvString:function(){var c=u(this._r,this._g,this._b),I=m(c.h*360),O=m(c.s*100),ae=m(c.v*100);return this._a==1?"hsv("+I+", "+O+"%, "+ae+"%)":"hsva("+I+", "+O+"%, "+ae+"%, "+this._roundA+")"},toHsl:function(){var c=x(this._r,this._g,this._b);return{h:c.h*360,s:c.s,l:c.l,a:this._a}},toHslString:function(){var c=x(this._r,this._g,this._b),I=m(c.h*360),O=m(c.s*100),ae=m(c.l*100);return this._a==1?"hsl("+I+", "+O+"%, "+ae+"%)":"hsla("+I+", "+O+"%, "+ae+"%, "+this._roundA+")"},toHex:function(c){return i(this._r,this._g,this._b,c)},toHexString:function(c){return"#"+this.toHex(c)},toHex8:function(c){return n(this._r,this._g,this._b,this._a,c)},toHex8String:function(c){return"#"+this.toHex8(c)},toRgb:function(){return{r:m(this._r),g:m(this._g),b:m(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+m(this._r)+", "+m(this._g)+", "+m(this._b)+")":"rgba("+m(this._r)+", "+m(this._g)+", "+m(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:m(e(this._r,255)*100)+"%",g:m(e(this._g,255)*100)+"%",b:m(e(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+m(e(this._r,255)*100)+"%, "+m(e(this._g,255)*100)+"%, "+m(e(this._b,255)*100)+"%)":"rgba("+m(e(this._r,255)*100)+"%, "+m(e(this._g,255)*100)+"%, "+m(e(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:P[i(this._r,this._g,this._b,!0)]||!1},toFilter:function(c){var I="#"+h(this._r,this._g,this._b,this._a),O=I,ae=this._gradientType?"GradientType = 1, ":"";if(c){var v=S(c);O="#"+h(v._r,v._g,v._b,v._a)}return"progid:DXImageTransform.Microsoft.gradient("+ae+"startColorstr="+I+",endColorstr="+O+")"},toString:function(c){var I=!!c;c=c||this._format;var O=!1,ae=this._a<1&&this._a>=0,v=!I&&ae&&(c==="hex"||c==="hex6"||c==="hex3"||c==="hex4"||c==="hex8"||c==="name");return v?c==="name"&&this._a===0?this.toName():this.toRgbString():(c==="rgb"&&(O=this.toRgbString()),c==="prgb"&&(O=this.toPercentageRgbString()),(c==="hex"||c==="hex6")&&(O=this.toHexString()),c==="hex3"&&(O=this.toHexString(!0)),c==="hex4"&&(O=this.toHex8String(!0)),c==="hex8"&&(O=this.toHex8String()),c==="name"&&(O=this.toName()),c==="hsl"&&(O=this.toHslString()),c==="hsv"&&(O=this.toHsvString()),O||this.toHexString())},clone:function(){return S(this.toString())},_applyModification:function(c,I){var O=c.apply(null,[this].concat([].slice.call(I)));return this._r=O._r,this._g=O._g,this._b=O._b,this.setAlpha(O._a),this},lighten:function(){return this._applyModification(F,arguments)},brighten:function(){return this._applyModification(G,arguments)},darken:function(){return this._applyModification(te,arguments)},desaturate:function(){return this._applyModification(j,arguments)},saturate:function(){return this._applyModification(K,arguments)},greyscale:function(){return this._applyModification(ee,arguments)},spin:function(){return this._applyModification(w,arguments)},_applyCombination:function(c,I){return c.apply(null,[this].concat([].slice.call(I)))},analogous:function(){return this._applyCombination(X,arguments)},complement:function(){return this._applyCombination($,arguments)},monochromatic:function(){return this._applyCombination(_,arguments)},splitcomplement:function(){return this._applyCombination(oe,arguments)},triad:function(){return this._applyCombination(f,arguments)},tetrad:function(){return this._applyCombination(L,arguments)}},S.fromRatio=function(c,I){if(typeof c=="object"){var O={};for(var ae in c)c.hasOwnProperty(ae)&&(ae==="a"?O[ae]=c[ae]:O[ae]=Ae(c[ae]));c=O}return S(c,I)};function d(c){var I={r:0,g:0,b:0},O=1,ae=null,v=null,U=null,ie=!1,Oe=!1;return typeof c=="string"&&(c=he(c)),typeof c=="object"&&(xe(c.r)&&xe(c.g)&&xe(c.b)?(I=y(c.r,c.g,c.b),ie=!0,Oe=String(c.r).substr(-1)==="%"?"prgb":"rgb"):xe(c.h)&&xe(c.s)&&xe(c.v)?(ae=Ae(c.s),v=Ae(c.v),I=C(c.h,ae,v),ie=!0,Oe="hsv"):xe(c.h)&&xe(c.s)&&xe(c.l)&&(ae=Ae(c.s),U=Ae(c.l),I=g(c.h,ae,U),ie=!0,Oe="hsl"),c.hasOwnProperty("a")&&(O=c.a)),O=s(O),{ok:ie,format:c.format||Oe,r:ce(255,ne(I.r,0)),g:ce(255,ne(I.g,0)),b:ce(255,ne(I.b,0)),a:O}}function y(c,I,O){return{r:e(c,255)*255,g:e(I,255)*255,b:e(O,255)*255}}function x(c,I,O){c=e(c,255),I=e(I,255),O=e(O,255);var ae=ne(c,I,O),v=ce(c,I,O),U,ie,Oe=(ae+v)/2;if(ae==v)U=ie=0;else{var Te=ae-v;ie=Oe>.5?Te/(2-ae-v):Te/(ae+v);switch(ae){case c:U=(I-O)/Te+(I1&&(Ge-=1),Ge<1/6?Ke+(et-Ke)*6*Ge:Ge<1/2?et:Ge<2/3?Ke+(et-Ke)*(2/3-Ge)*6:Ke}if(I===0)ae=v=U=O;else{var Oe=O<.5?O*(1+I):O+I-O*I,Te=2*O-Oe;ae=ie(Te,Oe,c+1/3),v=ie(Te,Oe,c),U=ie(Te,Oe,c-1/3)}return{r:ae*255,g:v*255,b:U*255}}function u(c,I,O){c=e(c,255),I=e(I,255),O=e(O,255);var ae=ne(c,I,O),v=ce(c,I,O),U,ie,Oe=ae,Te=ae-v;if(ie=ae===0?0:Te/ae,ae==v)U=0;else{switch(ae){case c:U=(I-O)/Te+(I>1)+720)%360;--I;)ae.h=(ae.h+v)%360,U.push(S(ae));return U}function _(c,I){I=I||6;for(var O=S(c).toHsv(),ae=O.h,v=O.s,U=O.v,ie=[],Oe=1/I;I--;)ie.push(S({h:ae,s:v,v:U})),U=(U+Oe)%1;return ie}S.mix=function(c,I,O){O=O===0?0:O||50;var ae=S(c).toRgb(),v=S(I).toRgb(),U=O/100,ie={r:(v.r-ae.r)*U+ae.r,g:(v.g-ae.g)*U+ae.g,b:(v.b-ae.b)*U+ae.b,a:(v.a-ae.a)*U+ae.a};return S(ie)},S.readability=function(c,I){var O=S(c),ae=S(I);return(N.max(O.getLuminance(),ae.getLuminance())+.05)/(N.min(O.getLuminance(),ae.getLuminance())+.05)},S.isReadable=function(c,I,O){var ae=S.readability(c,I),v,U;U=!1,v=me(O);switch(v.level+v.size){case"AAsmall":case"AAAlarge":U=ae>=4.5;break;case"AAlarge":U=ae>=3;break;case"AAAsmall":U=ae>=7;break}return U},S.mostReadable=function(c,I,O){var ae=null,v=0,U,ie,Oe,Te;O=O||{},ie=O.includeFallbackColors,Oe=O.level,Te=O.size;for(var Ke=0;Kev&&(v=U,ae=S(I[Ke]));return S.isReadable(c,ae,{level:Oe,size:Te})||!ie?ae:(O.includeFallbackColors=!1,S.mostReadable(c,["#fff","#000"],O))};var b=S.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},P=S.hexNames=r(b);function r(c){var I={};for(var O in c)c.hasOwnProperty(O)&&(I[c[O]]=O);return I}function s(c){return c=parseFloat(c),(isNaN(c)||c<0||c>1)&&(c=1),c}function e(c,I){B(c)&&(c="100%");var O=le(c);return c=ce(I,ne(0,parseFloat(c))),O&&(c=parseInt(c*I,10)/100),N.abs(c-I)<1e-6?1:c%I/parseFloat(I)}function H(c){return ce(1,ne(0,c))}function p(c){return parseInt(c,16)}function B(c){return typeof c=="string"&&c.indexOf(".")!=-1&&parseFloat(c)===1}function le(c){return typeof c=="string"&&c.indexOf("%")!=-1}function de(c){return c.length==1?"0"+c:""+c}function Ae(c){return c<=1&&(c=c*100+"%"),c}function be(c){return N.round(parseFloat(c)*255).toString(16)}function je(c){return p(c)/255}var Se=function(){var c="[-\\+]?\\d+%?",I="[-\\+]?\\d*\\.\\d+%?",O="(?:"+I+")|(?:"+c+")",ae="[\\s|\\(]+("+O+")[,|\\s]+("+O+")[,|\\s]+("+O+")\\s*\\)?",v="[\\s|\\(]+("+O+")[,|\\s]+("+O+")[,|\\s]+("+O+")[,|\\s]+("+O+")\\s*\\)?";return{CSS_UNIT:new RegExp(O),rgb:new RegExp("rgb"+ae),rgba:new RegExp("rgba"+v),hsl:new RegExp("hsl"+ae),hsla:new RegExp("hsla"+v),hsv:new RegExp("hsv"+ae),hsva:new RegExp("hsva"+v),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function xe(c){return!!Se.CSS_UNIT.exec(c)}function he(c){c=c.replace(_e,"").replace(Z,"").toLowerCase();var I=!1;if(b[c])c=b[c],I=!0;else if(c=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var O;return(O=Se.rgb.exec(c))?{r:O[1],g:O[2],b:O[3]}:(O=Se.rgba.exec(c))?{r:O[1],g:O[2],b:O[3],a:O[4]}:(O=Se.hsl.exec(c))?{h:O[1],s:O[2],l:O[3]}:(O=Se.hsla.exec(c))?{h:O[1],s:O[2],l:O[3],a:O[4]}:(O=Se.hsv.exec(c))?{h:O[1],s:O[2],v:O[3]}:(O=Se.hsva.exec(c))?{h:O[1],s:O[2],v:O[3],a:O[4]}:(O=Se.hex8.exec(c))?{r:p(O[1]),g:p(O[2]),b:p(O[3]),a:je(O[4]),format:I?"name":"hex8"}:(O=Se.hex6.exec(c))?{r:p(O[1]),g:p(O[2]),b:p(O[3]),format:I?"name":"hex"}:(O=Se.hex4.exec(c))?{r:p(O[1]+""+O[1]),g:p(O[2]+""+O[2]),b:p(O[3]+""+O[3]),a:je(O[4]+""+O[4]),format:I?"name":"hex8"}:(O=Se.hex3.exec(c))?{r:p(O[1]+""+O[1]),g:p(O[2]+""+O[2]),b:p(O[3]+""+O[3]),format:I?"name":"hex"}:!1}function me(c){var I,O;return c=c||{level:"AA",size:"small"},I=(c.level||"AA").toUpperCase(),O=(c.size||"small").toLowerCase(),I!=="AA"&&I!=="AAA"&&(I="AA"),O!=="small"&&O!=="large"&&(O="small"),{level:I,size:O}}dt.exports?dt.exports=S:!(Q=function(){return S}.call(z,t,z,dt),Q!==void 0&&(dt.exports=Q))})(Math)},bT9E:function(dt,z,t){"use strict";t.d(z,"a",function(){return N});var Q=t("VTBJ");function N(_e,Z){var l=Object(Q.a)({},_e);return Array.isArray(Z)&&Z.forEach(function(m){delete l[m]}),l}},biw7:function(dt,z,t){"use strict";var Q=t("q1tI"),N=t.n(Q),_e=Q.createContext(null);z.a=_e},dmUQ:function(dt,z,t){"use strict";var Q=t("Ff2n"),N=t("rePB"),_e=t("1OyB"),Z=t("vuIU"),l=t("Ji7U"),m=t("md7G"),ce=t("foSv"),ne=t("q1tI"),M=t.n(ne),S=t("TSYQ"),d=t.n(S),y=t("4IlW");function x(f,L){var oe=Object.keys(f);if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(f);L&&(X=X.filter(function(_){return Object.getOwnPropertyDescriptor(f,_).enumerable})),oe.push.apply(oe,X)}return oe}function g(f){for(var L=1;L1?le-1:0),Ae=1;Ae1?e-1:0),p=1;p=0)return parseInt(s.slice(s.indexOf("e-")+2),10);var e=0;return s.indexOf(".")>=0&&(e=s.length-s.indexOf(".")-1),e},_.getInputDisplayValue=function(r){var s=r||_.state,e=s.focused,H=s.inputValue,p=s.value,B;e?B=H:B=_.toPrecisionAsStep(p),B==null&&(B="");var le=_.formatWrapper(B);return F(_.props.decimalSeparator)&&(le=le.toString().replace(".",_.props.decimalSeparator)),le},_.recordCursorPosition=function(){try{_.cursorStart=_.input.selectionStart,_.cursorEnd=_.input.selectionEnd,_.currentValue=_.input.value,_.cursorBefore=_.input.value.substring(0,_.cursorStart),_.cursorAfter=_.input.value.substring(_.cursorEnd)}catch(r){}},_.restoreByAfter=function(r){if(r===void 0)return!1;var s=_.input.value,e=s.lastIndexOf(r);if(e===-1)return!1;var H=_.cursorBefore.length;return _.lastKeyCode===y.a.DELETE&&_.cursorBefore.charAt(H-1)===r[0]?(_.fixCaret(H,H),!0):e+r.length===s.length?(_.fixCaret(e,e),!0):!1},_.partRestoreByAfter=function(r){return r===void 0?!1:Array.prototype.some.call(r,function(s,e){var H=r.substring(e);return _.restoreByAfter(H)})},_.isNotCompleteNumber=function(r){return isNaN(r)||r===""||r===null||r&&r.toString().indexOf(".")===r.toString().length-1},_.stop=function(){_.autoStepTimer&&clearTimeout(_.autoStepTimer)},_.down=function(r,s,e){_.pressingUpOrDown=!0,_.step("down",r,s,e)},_.up=function(r,s,e){_.pressingUpOrDown=!0,_.step("up",r,s,e)},_.saveInput=function(r){_.input=r};var b=X.value;b===void 0&&(b=X.defaultValue),_.state={focused:X.autoFocus};var P=_.getValidValue(_.toNumber(b));return _.state=g(g({},_.state),{},{inputValue:_.toPrecisionAsStep(P),value:P}),_}return Object(Z.a)(oe,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(_){var b=this.props,P=b.value,r=b.onChange,s=b.max,e=b.min,H=this.state.focused;if(_){if(!G(_.value,P)||!G(_.max,s)||!G(_.min,e)){var p=H?P:this.getValidValue(P),B;this.pressingUpOrDown?B=p:this.inputting?B=this.rawInput:B=this.toPrecisionAsStep(p),this.setState({value:p,inputValue:B})}var le="value"in this.props?P:this.state.value;"max"in this.props&&_.max!==s&&typeof le=="number"&&le>s&&r&&r(s),"min"in this.props&&_.min!==e&&typeof le=="number"&&le1&&arguments[1]!==void 0?arguments[1]:this.props.min,P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,r=parseFloat(_);return isNaN(r)?_:(rP&&(r=P),r)}},{key:"setValue",value:function(_,b){var P=this.props.precision,r=this.isNotCompleteNumber(parseFloat(_))?null:parseFloat(_),s=this.state.value,e=s===void 0?null:s,H=this.state.inputValue,p=H===void 0?null:H,B=typeof r=="number"?r.toFixed(P):"".concat(r),le=r!==e||B!=="".concat(p);return"value"in this.props?(p=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:p},b)):this.setState({value:r,inputValue:this.toPrecisionAsStep(_)},b),le&&this.props.onChange(r),r}},{key:"getMaxPrecision",value:function(_){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,P=this.props,r=P.precision,s=P.step;if(F(r))return r;var e=this.getPrecision(b),H=this.getPrecision(s),p=this.getPrecision(_);return _?Math.max(p,e+H):e+H}},{key:"getPrecisionFactor",value:function(_){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,P=this.getMaxPrecision(_,b);return Math.pow(10,P)}},{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(_){return this.props.formatter?this.props.formatter(_):_}},{key:"toPrecisionAsStep",value:function(_){if(this.isNotCompleteNumber(_)||_==="")return _;var b=Math.abs(this.getMaxPrecision(_));return isNaN(b)?_.toString():Number(_).toFixed(b)}},{key:"toNumber",value:function(_){var b=this.props.precision,P=this.state.focused,r=_&&_.length>16&&P;return this.isNotCompleteNumber(_)||r?_:F(b)?Math.round(_*Math.pow(10,b))/Math.pow(10,b):Number(_)}},{key:"upStep",value:function(_,b){var P=this.props.step,r=this.getPrecisionFactor(_,b),s=Math.abs(this.getMaxPrecision(_,b)),e=((r*_+r*P*b)/r).toFixed(s);return this.toNumber(e)}},{key:"downStep",value:function(_,b){var P=this.props.step,r=this.getPrecisionFactor(_,b),s=Math.abs(this.getMaxPrecision(_,b)),e=((r*_-r*P*b)/r).toFixed(s);return this.toNumber(e)}},{key:"step",value:function(_,b){var P=this,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=arguments.length>3?arguments[3]:void 0;this.stop(),b&&(b.persist(),b.preventDefault());var e=this.props;if(e.disabled)return;var H=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(H))return;var p=this["".concat(_,"Step")](H,r),B=p>e.max||pe.max?p=e.max:p=de),Ve=(Mt||Mt===0)&&(isNaN(Mt)||Number(Mt)<=Ae),Fe=Je||r||s,ke=Ve||r||s,He=d()("".concat(P,"-handler"),"".concat(P,"-handler-up"),Object(N.a)({},"".concat(P,"-handler-up-disabled"),Fe)),Ye=d()("".concat(P,"-handler"),"".concat(P,"-handler-down"),Object(N.a)({},"".concat(P,"-handler-down-disabled"),ke)),ze=e?{onTouchStart:Fe?i:this.up,onTouchEnd:this.stop}:{onMouseDown:Fe?i:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},rt=e?{onTouchStart:ke?i:this.down,onTouchEnd:this.stop}:{onMouseDown:ke?i:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return M.a.createElement("div",{className:ue,style:be,title:je,onMouseEnter:Se,onMouseLeave:xe,onMouseOver:he,onMouseOut:me,onFocus:function(){return null},onBlur:function(){return null}},M.a.createElement("div",{className:"".concat(P,"-handler-wrap")},M.a.createElement("span",Object.assign({unselectable:"on"},ze,{role:"button","aria-label":"Increase Value","aria-disabled":Fe,className:He}),p||M.a.createElement("span",{unselectable:"on",className:"".concat(P,"-handler-up-inner"),onClick:n})),M.a.createElement("span",Object.assign({unselectable:"on"},rt,{role:"button","aria-label":"Decrease Value","aria-disabled":ke,className:Ye}),B||M.a.createElement("span",{unselectable:"on",className:"".concat(P,"-handler-down-inner"),onClick:n}))),M.a.createElement("div",{className:"".concat(P,"-input-wrap")},M.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Ae,"aria-valuemax":de,"aria-valuenow":Mt,required:c,type:ae,placeholder:v,onPaste:Lt,onClick:I,onMouseUp:this.onMouseUp,className:"".concat(P,"-input"),tabIndex:O,autoComplete:H,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:Pe?this.onKeyDown:i,onKeyUp:Pe?this.onKeyUp:i,autoFocus:et,maxLength:Ke,readOnly:s,disabled:r,max:de,min:Ae,step:Te,name:Ge,title:je,id:U,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(ve),pattern:Oe,inputMode:ie,onInput:St},Me))))}}]),oe}(M.a.Component);te.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:ee,min:-ee,step:1,style:{},onChange:i,onKeyDown:i,onPressEnter:i,onFocus:i,onBlur:i,parser:h,required:!1,autoComplete:"off"};var w=te,$=z.a=w},fjLI:function(dt,z,t){"use strict";t.d(z,"e",function(){return S}),t.d(z,"a",function(){return d}),t.d(z,"c",function(){return y}),t.d(z,"d",function(){return g}),t.d(z,"b",function(){return u});var Q=t("8HAY"),N=t("Cg/j"),_e=t("T8No"),Z=t("nnTU"),l=t("MI8n"),m=function(){var C=function(i,n){return C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,j){h.__proto__=j}||function(h,j){for(var K in j)j.hasOwnProperty(K)&&(h[K]=j[K])},C(i,n)};return function(i,n){C(i,n);function h(){this.constructor=i}i.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),ce=function(C,i,n,h){var j=arguments.length,K=j<3?i:h===null?h=Object.getOwnPropertyDescriptor(i,n):h,ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")K=Reflect.decorate(C,i,n,h);else for(var F=C.length-1;F>=0;F--)(ee=C[F])&&(K=(j<3?ee(K):j>3?ee(i,n,K):ee(i,n))||K);return j>3&&K&&Object.defineProperty(i,n,K),K},ne=function(C,i){return function(n,h){i(n,h,C)}},M=function(){for(var C=0,i=0,n=arguments.length;i=0&&(j.splice(K,1),h._onDidChangeMenu.fire(i))}}},C.prototype.getMenuItems=function(i){var n=(this._menuItems.get(i)||[]).slice(0);return i===0&&this._appendImplicitItems(n),n},C.prototype._appendImplicitItems=function(i){for(var n=new Set,h=i.filter(function(te){return S(te)}),j=0,K=h;jP.length)&&(r=P.length);for(var s=0,e=new Array(r);s=0)continue;if(!Object.prototype.propertyIsEnumerable.call(P,e))continue;s[e]=P[e]}}return s}function u(P,r){if(P==null)return{};var s={},e=Object.keys(P),H,p;for(p=0;p=0)continue;s[H]=P[H]}return s}var C=function(r){var s=r.className,e=r.percent,H=r.prefixCls,p=r.strokeColor,B=r.strokeLinecap,le=r.strokeWidth,de=r.style,Ae=r.trailColor,be=r.trailWidth,je=r.transition,Se=g(r,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete Se.gapPosition;var xe=Array.isArray(e)?e:[e],he=Array.isArray(p)?p:[p],me=m(xe),c=ne(me,1),I=c[0],O=le/2,ae=100-le/2,v="M ".concat(B==="round"?O:0,",").concat(O,` - L `).concat(B==="round"?ae:100,",").concat(O),U="0 0 100 ".concat(le),ie=0;return N.a.createElement("svg",ce({className:Z()("".concat(H,"-line"),s),viewBox:U,preserveAspectRatio:"none",style:de},Se),N.a.createElement("path",{className:"".concat(H,"-line-trail"),d:v,strokeLinecap:B,stroke:Ae,strokeWidth:be||le,fillOpacity:"0"}),xe.map(function(Oe,Te){var Ke={strokeDasharray:"".concat(Oe,"px, 100px"),strokeDashoffset:"-".concat(ie,"px"),transition:je||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},et=he[Te]||he[he.length-1];return ie+=Oe,N.a.createElement("path",{key:Te,className:"".concat(H,"-line-path"),d:v,strokeLinecap:B,stroke:et,strokeWidth:le,fillOpacity:"0",ref:I[Te],style:Ke})}))};C.defaultProps=l;var i=C;function n(){return n=Object.assign||function(P){for(var r=1;rP.length)&&(r=P.length);for(var s=0,e=new Array(r);s=0)continue;if(!Object.prototype.propertyIsEnumerable.call(P,e))continue;s[e]=P[e]}}return s}function w(P,r){if(P==null)return{};var s={},e=Object.keys(P),H,p;for(p=0;p=0)continue;s[H]=P[H]}return s}var $=0;function f(P){return+P.replace("%","")}function L(P){return Array.isArray(P)?P:[P]}function oe(P,r,s,e){var H=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,p=arguments.length>5?arguments[5]:void 0,B=50-e/2,le=0,de=-B,Ae=0,be=-2*B;switch(p){case"left":le=-B,de=0,Ae=2*B,be=0;break;case"right":le=B,de=0,Ae=-2*B,be=0;break;case"bottom":de=B,be=2*B;break;default:}var je="M 50,50 m ".concat(le,",").concat(de,` - a `).concat(B,",").concat(B," 0 1 1 ").concat(Ae,",").concat(-be,` - a `).concat(B,",").concat(B," 0 1 1 ").concat(-Ae,",").concat(be),Se=Math.PI*2*B,xe={stroke:s,strokeDasharray:"".concat(r/100*(Se-H),"px ").concat(Se,"px"),strokeDashoffset:"-".concat(H/2+P/100*(Se-H),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:je,pathStyle:xe}}var X=function(r){var s=r.prefixCls,e=r.strokeWidth,H=r.trailWidth,p=r.gapDegree,B=r.gapPosition,le=r.trailColor,de=r.strokeLinecap,Ae=r.style,be=r.className,je=r.strokeColor,Se=r.percent,xe=te(r,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),he=Object(Q.useMemo)(function(){return $+=1,$},[]),me=oe(0,100,le,e,p,B),c=me.pathString,I=me.pathStyle,O=L(Se),ae=L(je),v=ae.find(function(Ke){return Object.prototype.toString.call(Ke)==="[object Object]"}),U=m(O),ie=h(U,1),Oe=ie[0],Te=function(){var et=0;return O.map(function(Ge,Lt){var St=ae[Lt]||ae[ae.length-1],It=Object.prototype.toString.call(St)==="[object Object]"?"url(#".concat(s,"-gradient-").concat(he,")"):"",lt=oe(et,Ge,St,e,p,B);return et+=Ge,N.a.createElement("path",{key:Lt,className:"".concat(s,"-circle-path"),d:lt.pathString,stroke:It,strokeLinecap:de,strokeWidth:e,opacity:Ge===0?0:1,fillOpacity:"0",style:lt.pathStyle,ref:Oe[Lt]})})};return N.a.createElement("svg",n({className:Z()("".concat(s,"-circle"),be),viewBox:"0 0 100 100",style:Ae},xe),v&&N.a.createElement("defs",null,N.a.createElement("linearGradient",{id:"".concat(s,"-gradient-").concat(he),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(v).sort(function(Ke,et){return f(Ke)-f(et)}).map(function(Ke,et){return N.a.createElement("stop",{key:et,offset:Ke,stopColor:v[Ke]})}))),N.a.createElement("path",{className:"".concat(s,"-circle-trail"),d:c,stroke:le,strokeLinecap:de,strokeWidth:H||e,fillOpacity:"0",style:I}),Te().reverse())};X.defaultProps=l;var _=X,b={Line:i,Circle:_}},hW8S:function(dt,z,t){"use strict";t.d(z,"a",function(){return Z}),t.d(z,"c",function(){return l}),t.d(z,"b",function(){return m});var Q=t("VTBJ"),N=t("Ff2n"),_e=t("Kwbf"),Z="RC_TABLE_INTERNAL_COL_DEFINE";function l(ce){var ne=ce.expandable,M=Object(N.a)(ce,["expandable"]);return"expandable"in ce?Object(Q.a)(Object(Q.a)({},M),ne):M}function m(ce){return Object.keys(ce).reduce(function(ne,M){return(M.substr(0,5)==="data-"||M.substr(0,5)==="aria-")&&(ne[M]=ce[M]),ne},{})}},k3GJ:function(dt,z,t){"use strict";t.d(z,"a",function(){return na});var Q=t("rePB"),N=t("ODXe"),_e=t("Ff2n"),Z=t("VTBJ"),l=t("q1tI"),m=t("TSYQ"),ce=t.n(m),ne=t("Zm9Q"),M=t("6cGi"),S=t("KQm4"),d=t("xEkU"),y=t.n(d),x=t("t23M");function g(R){var W=Object(l.useRef)(),Y=Object(l.useRef)(!1);function D(){for(var a=arguments.length,E=new Array(a),o=0;ore&&(Ue=re-Ie),Object(l.useMemo)(function(){if(!E.length)return[0,0];for(var Qe=E.length,xt=Qe,Vt=0;VtV+Ue){xt=Vt-1;break}}for(var Gt=0,$t=Qe-1;$t>=0;$t-=1){var Wt=R.get(E[$t].key)||K;if(Wt[q]1&&arguments[1]!==void 0?arguments[1]:!1,D=W&&typeof W.getBoundingClientRect=="function"&&W.getBoundingClientRect().width;if(D){if(Y){var a=getComputedStyle(W),E=a.marginLeft,o=a.marginRight;D+=+E.replace("px","")+ +o.replace("px","")}D=+D.toFixed(6)}return D||0},et=function(W,Y,D){W&&Object(P.a)(W.style)==="object"&&(W.style[Y]=D)},Ge=function(){return O.any},Lt=t("bdgK"),St=t("i8i4"),It=t.n(St),lt=t("wgJM"),Mt=t("l4aY"),wt=t("m+aA"),ue=t("c+Xe"),Me=t("zT1h"),Pe=t("QC+M");function ve(R,W,Y){return Y?R[0]===W[0]:R[0]===W[0]&&R[1]===W[1]}function Je(R,W,Y){var D=R[W]||{};return Object(Z.a)(Object(Z.a)({},D),Y)}function Ve(R,W,Y,D){for(var a=Y.points,E=Object.keys(R),o=0;o1&&arguments[1]!==void 0?arguments[1]:2;W();var E=Object(lt.a)(function(){a<=1?D({isCanceled:function(){return E!==R.current}}):Y(D,a-1)});R.current=E}return l.useEffect(function(){return function(){W()}},[]),[Y,W]},un=[Ct,gt,Rt,jt],en=!1,bn=!0;function Sn(R){return R===Rt||R===jt}var Ln=function(R,W){var Y=l.useState(Bt),D=Object(N.a)(Y,2),a=D[0],E=D[1],o=Dt(),A=Object(N.a)(o,2),T=A[0],q=A[1];function V(){E(Ct)}return st(function(){if(a!==Bt&&a!==jt){var re=un.indexOf(a),ye=un[re+1],Ie=W(a);Ie===en?E(ye):T(function(Ue){function Qe(){if(Ue.isCanceled())return;E(ye)}Ie===!0?Qe():Promise.resolve(Ie).then(Qe)})}},[R,a]),l.useEffect(function(){return function(){q()}},[]),[V,a]},In=function(R){var W=Object(l.useRef)(),Y=Object(l.useRef)(R);Y.current=R;var D=l.useCallback(function(o){Y.current(o)},[]);function a(o){o&&(o.removeEventListener(dn,D),o.removeEventListener(Ot,D))}function E(o){W.current&&W.current!==o&&a(W.current),o&&o!==W.current&&(o.addEventListener(dn,D),o.addEventListener(Ot,D),W.current=o)}return l.useEffect(function(){return function(){a(W.current)}},[]),[E,a]};function Mn(R,W,Y,D){var a=D.motionEnter,E=a===void 0?!0:a,o=D.motionAppear,A=o===void 0?!0:o,T=D.motionLeave,q=T===void 0?!0:T,V=D.motionDeadline,re=D.motionLeaveImmediately,ye=D.onAppearPrepare,Ie=D.onEnterPrepare,Ue=D.onLeavePrepare,Qe=D.onAppearStart,xt=D.onEnterStart,Vt=D.onLeaveStart,Kt=D.onAppearActive,Gt=D.onEnterActive,$t=D.onLeaveActive,Wt=D.onAppearEnd,Ht=D.onEnterEnd,on=D.onLeaveEnd,Jt=D.onVisibleChanged,Dn=tt(),pn=Object(N.a)(Dn,2),yt=pn[0],bt=pn[1],Zt=tt(Xe),nn=Object(N.a)(Zt,2),ct=nn[0],rn=nn[1],On=tt(null),sn=Object(N.a)(On,2),vn=sn[0],Pn=sn[1],zn=Object(l.useRef)(!1),aa=Object(l.useRef)(null),Nn=Object(l.useRef)(!1),oa=Object(l.useRef)(null);function va(){var Rn=Y();return Rn||oa.current}var la=Object(l.useRef)(!1);function ua(Rn){var fn=va();if(Rn&&!Rn.deadline&&Rn.target!==fn)return;var $n;ct===Ft&&la.current?$n=Wt==null?void 0:Wt(fn,Rn):ct===gn&&la.current?$n=Ht==null?void 0:Ht(fn,Rn):ct===ht&&la.current&&($n=on==null?void 0:on(fn,Rn)),$n!==!1&&!Nn.current&&(rn(Xe),Pn(null))}var Un=In(ua),Yn=Object(N.a)(Un,1),Vn=Yn[0],Kn=l.useMemo(function(){var Rn,fn,$n;switch(ct){case"appear":return Rn={},Object(Q.a)(Rn,Ct,ye),Object(Q.a)(Rn,gt,Qe),Object(Q.a)(Rn,Rt,Kt),Rn;case"enter":return fn={},Object(Q.a)(fn,Ct,Ie),Object(Q.a)(fn,gt,xt),Object(Q.a)(fn,Rt,Gt),fn;case"leave":return $n={},Object(Q.a)($n,Ct,Ue),Object(Q.a)($n,gt,Vt),Object(Q.a)($n,Rt,$t),$n;default:return{}}},[ct]),Pa=Ln(ct,function(Rn){if(Rn===Ct){var fn=Kn[Ct];return fn?fn(va()):en}if(yn in Kn){var $n;Pn((($n=Kn[yn])===null||$n===void 0?void 0:$n.call(Kn,va(),null))||null)}return yn===Rt&&(Vn(va()),V>0&&(clearTimeout(aa.current),aa.current=setTimeout(function(){ua({deadline:!0})},V))),bn}),Sa=Object(N.a)(Pa,2),Ia=Sa[0],yn=Sa[1],Ca=Sn(yn);la.current=Ca,st(function(){bt(W);var Rn=zn.current;if(zn.current=!0,!R)return;var fn;!Rn&&W&&A&&(fn=Ft),Rn&&W&&E&&(fn=gn),(Rn&&!W&&q||!Rn&&re&&!W&&q)&&(fn=ht),fn&&(rn(fn),Ia())},[W]),Object(l.useEffect)(function(){(ct===Ft&&!A||ct===gn&&!E||ct===ht&&!q)&&rn(Xe)},[A,E,q]),Object(l.useEffect)(function(){return function(){clearTimeout(aa.current),Nn.current=!0}},[]),Object(l.useEffect)(function(){yt!==void 0&&ct===Xe&&(Jt==null||Jt(yt))},[yt,ct]);var ka=vn;return Kn[Ct]&&yn===gt&&(ka=Object(Z.a)({transition:"none"},ka)),[ct,yn,ka,yt!=null?yt:W]}var Zn=function(R){Object($.a)(Y,R);var W=Object(f.a)(Y);function Y(){return Object(G.a)(this,Y),W.apply(this,arguments)}return Object(te.a)(Y,[{key:"render",value:function(){return this.props.children}}]),Y}(l.Component),_n=Zn;function wn(R){var W=R;Object(P.a)(R)==="object"&&(W=R.transitionSupport);function Y(a){return!!(a.motionName&&W)}var D=l.forwardRef(function(a,E){var o=a.visible,A=o===void 0?!0:o,T=a.removeOnLeave,q=T===void 0?!0:T,V=a.forceRender,re=a.children,ye=a.motionName,Ie=a.leavedClassName,Ue=a.eventProps,Qe=Y(a),xt=Object(l.useRef)(),Vt=Object(l.useRef)();function Kt(){try{return Object(wt.a)(xt.current||Vt.current)}catch(rn){return null}}var Gt=Mn(Qe,A,Kt,a),$t=Object(N.a)(Gt,4),Wt=$t[0],Ht=$t[1],on=$t[2],Jt=$t[3],Dn=l.useRef(Jt);Jt&&(Dn.current=!0);var pn=Object(l.useRef)(E);pn.current=E;var yt=l.useCallback(function(rn){xt.current=rn,Object(ue.b)(pn.current,rn)},[]),bt,Zt=Object(Z.a)(Object(Z.a)({},Ue),{},{visible:A});if(!re)bt=null;else if(Wt===Xe||!Y(a))Jt?bt=re(Object(Z.a)({},Zt),yt):!q&&Dn.current?bt=re(Object(Z.a)(Object(Z.a)({},Zt),{},{className:Ie}),yt):V?bt=re(Object(Z.a)(Object(Z.a)({},Zt),{},{style:{display:"none"}}),yt):bt=null;else{var nn,ct;Ht===Ct?ct="prepare":Sn(Ht)?ct="active":Ht===gt&&(ct="start"),bt=re(Object(Z.a)(Object(Z.a)({},Zt),{},{className:ce()(ln(ye,Wt),(nn={},Object(Q.a)(nn,ln(ye,"".concat(Wt,"-").concat(ct)),ct),Object(Q.a)(nn,ye,typeof ye=="string"),nn)),style:on}),yt)}return l.createElement(_n,{ref:Vt},bt)});return D.displayName="CSSMotion",D}var kn=wn(Tt),ut="add",se="keep",Ne="remove",qe="removed";function at(R){var W;return R&&Object(P.a)(R)==="object"&&"key"in R?W=R:W={key:R},Object(Z.a)(Object(Z.a)({},W),{},{key:String(W.key)})}function vt(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return R.map(at)}function ot(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Y=[],D=0,a=W.length,E=vt(R),o=vt(W);E.forEach(function(q){for(var V=!1,re=D;re1});return T.forEach(function(q){Y=Y.filter(function(V){var re=V.key,ye=V.status;return re!==q||ye!==Ne}),Y.forEach(function(V){V.key===q&&(V.status=se)})}),Y}var k=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Ee(R){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:kn,Y=function(D){Object($.a)(E,D);var a=Object(f.a)(E);function E(){var o;return Object(G.a)(this,E),o=a.apply(this,arguments),o.state={keyEntities:[]},o.removeKey=function(A){o.setState(function(T){var q=T.keyEntities;return{keyEntities:q.map(function(V){return V.key!==A?V:Object(Z.a)(Object(Z.a)({},V),{},{status:qe})})}})},o}return Object(te.a)(E,[{key:"render",value:function(){var A=this,T=this.state.keyEntities,q=this.props,V=q.component,re=q.children,ye=q.onVisibleChanged,Ie=Object(_e.a)(q,["component","children","onVisibleChanged"]),Ue=V||l.Fragment,Qe={};return k.forEach(function(xt){Qe[xt]=Ie[xt],delete Ie[xt]}),delete Ie.keys,l.createElement(Ue,Ie,T.map(function(xt){var Vt=xt.status,Kt=Object(_e.a)(xt,["status"]),Gt=Vt===ut||Vt===se;return l.createElement(W,Object(F.a)({},Qe,{key:Kt.key,visible:Gt,eventProps:Kt,onVisibleChanged:function(Wt){ye==null||ye(Wt,{key:Kt.key}),Wt||A.removeKey(Kt.key)}}),re)}))}}],[{key:"getDerivedStateFromProps",value:function(A,T){var q=A.keys,V=T.keyEntities,re=vt(q),ye=ot(V,re);return{keyEntities:ye.filter(function(Ie){var Ue=V.find(function(Qe){var xt=Qe.key;return Ie.key===xt});return!(Ue&&Ue.status===qe&&Ie.status===Ne)})}}}]),E}(l.Component);return Y.defaultProps={component:"div"},Y}var fe=Ee(Tt),ge=kn;function Le(R){var W=R.prefixCls,Y=R.motion,D=R.animation,a=R.transitionName;return Y||(D?{motionName:"".concat(W,"-").concat(D)}:a?{motionName:a}:null)}function nt(R){var W=R.prefixCls,Y=R.visible,D=R.zIndex,a=R.mask,E=R.maskMotion,o=R.maskAnimation,A=R.maskTransitionName;if(!a)return null;var T={};return(E||A||o)&&(T=Object(Z.a)({motionAppear:!0},Le({motion:E,prefixCls:W,transitionName:A,animation:o}))),l.createElement(ge,Object(F.a)({},T,{visible:Y,removeOnLeave:!0}),function(q){var V=q.className;return l.createElement("div",{style:{zIndex:D},className:ce()("".concat(W,"-mask"),V)})})}var pe=t("9mu1"),Ce=t("o0o1"),We=t.n(Ce),Xt=t("HaE+"),an=["measure","align",null,"motion"],Yt=function(R,W){var Y=Object(l.useState)(null),D=Object(N.a)(Y,2),a=D[0],E=D[1],o=Object(l.useRef)(),A=Object(l.useRef)(!1);function T(re){A.current||E(re)}function q(){lt.a.cancel(o.current)}function V(re){q(),o.current=Object(lt.a)(function(){T(function(ye){switch(a){case"align":return"motion";case"motion":return"stable";default:}return ye}),re==null||re()})}return Object(l.useEffect)(function(){T("measure")},[R]),Object(l.useEffect)(function(){switch(a){case"measure":W();break;default:}a&&(o.current=Object(lt.a)(Object(Xt.a)(We.a.mark(function re(){var ye,Ie;return We.a.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:ye=an.indexOf(a),Ie=an[ye+1],Ie&&ye!==-1&&T(Ie);case 3:case"end":return Qe.stop()}},re)}))))},[a]),Object(l.useEffect)(function(){return function(){A.current=!0,q()}},[]),[a,V]},Cn=function(R){var W=l.useState({width:0,height:0}),Y=Object(N.a)(W,2),D=Y[0],a=Y[1];function E(A){a({width:A.offsetWidth,height:A.offsetHeight})}var o=l.useMemo(function(){var A={};if(R){var T=D.width,q=D.height;R.indexOf("height")!==-1&&q?A.height=q:R.indexOf("minHeight")!==-1&&q&&(A.minHeight=q),R.indexOf("width")!==-1&&T?A.width=T:R.indexOf("minWidth")!==-1&&T&&(A.minWidth=T)}return A},[R,D]);return[o,E]},tn=l.forwardRef(function(R,W){var Y=R.visible,D=R.prefixCls,a=R.className,E=R.style,o=R.children,A=R.zIndex,T=R.stretch,q=R.destroyPopupOnHide,V=R.forceRender,re=R.align,ye=R.point,Ie=R.getRootDomNode,Ue=R.getClassNameFromAlign,Qe=R.onAlign,xt=R.onMouseEnter,Vt=R.onMouseLeave,Kt=R.onMouseDown,Gt=R.onTouchStart,$t=Object(l.useRef)(),Wt=Object(l.useRef)(),Ht=Object(l.useState)(),on=Object(N.a)(Ht,2),Jt=on[0],Dn=on[1],pn=Cn(T),yt=Object(N.a)(pn,2),bt=yt[0],Zt=yt[1];function nn(){T&&Zt(Ie())}var ct=Yt(Y,nn),rn=Object(N.a)(ct,2),On=rn[0],sn=rn[1],vn=Object(l.useRef)();function Pn(){return ye||Ie}function zn(){var Un;(Un=$t.current)===null||Un===void 0||Un.forceAlign()}function aa(Un,Yn){var Vn=Ue(Yn);Jt!==Vn&&Dn(Vn),On==="align"&&(Jt!==Vn?Promise.resolve().then(function(){zn()}):sn(function(){var Kn;(Kn=vn.current)===null||Kn===void 0||Kn.call(vn)}),Qe==null||Qe(Un,Yn))}var Nn=Object(Z.a)({},Le(R));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Un){var Yn=Nn[Un];Nn[Un]=function(Vn,Kn){return sn(),Yn==null?void 0:Yn(Vn,Kn)}});function oa(){return new Promise(function(Un){vn.current=Un})}l.useEffect(function(){!Nn.motionName&&On==="motion"&&sn()},[Nn.motionName,On]),l.useImperativeHandle(W,function(){return{forceAlign:zn,getElement:function(){return Wt.current}}});var va=Object(Z.a)(Object(Z.a)({},bt),{},{zIndex:A,opacity:On==="motion"||On==="stable"||!Y?void 0:0,pointerEvents:On==="stable"?void 0:"none"},E),la=!0;(re==null?void 0:re.points)&&(On==="align"||On==="stable")&&(la=!1);var ua=o;return l.Children.count(o)>1&&(ua=l.createElement("div",{className:"".concat(D,"-content")},o)),l.createElement(ge,Object(F.a)({visible:Y,ref:Wt,leavedClassName:"".concat(D,"-hidden")},Nn,{onAppearPrepare:oa,onEnterPrepare:oa,removeOnLeave:q,forceRender:V}),function(Un,Yn){var Vn=Un.className,Kn=Un.style,Pa=ce()(D,a,Jt,Vn);return l.createElement(pe.a,{target:Pn(),key:"popup",ref:$t,monitorWindowResize:!0,disabled:la,align:re,onAlign:aa},l.createElement("div",{ref:Yn,className:Pa,onMouseEnter:xt,onMouseLeave:Vt,onMouseDownCapture:Kt,onTouchStartCapture:Gt,style:Object(Z.a)(Object(Z.a)({},Kn),va)},ua))})});tn.displayName="PopupInner";var Et=tn,Nt=l.forwardRef(function(R,W){var Y=R.prefixCls,D=R.visible,a=R.zIndex,E=R.children,o=R.mobile;o=o===void 0?{}:o;var A=o.popupClassName,T=o.popupStyle,q=o.popupMotion,V=q===void 0?{}:q,re=o.popupRender,ye=l.useRef();l.useImperativeHandle(W,function(){return{forceAlign:function(){},getElement:function(){return ye.current}}});var Ie=Object(Z.a)({zIndex:a},T),Ue=E;return l.Children.count(E)>1&&(Ue=l.createElement("div",{className:"".concat(Y,"-content")},E)),re&&(Ue=re(Ue)),l.createElement(ge,Object(F.a)({visible:D,ref:ye,removeOnLeave:!0},V),function(Qe,xt){var Vt=Qe.className,Kt=Qe.style,Gt=ce()(Y,A,Vt);return l.createElement("div",{ref:xt,className:Gt,style:Object(Z.a)(Object(Z.a)({},Kt),Ie)},Ue)})});Nt.displayName="MobilePopupInner";var Tn=Nt,da=["visible","mobile"],Jn=l.forwardRef(function(R,W){var Y=R.visible,D=R.mobile,a=Object(_e.a)(R,da),E=Object(l.useState)(Y),o=Object(N.a)(E,2),A=o[0],T=o[1],q=Object(l.useState)(!1),V=Object(N.a)(q,2),re=V[0],ye=V[1],Ie=Object(Z.a)(Object(Z.a)({},a),{},{visible:A});Object(l.useEffect)(function(){T(Y),Y&&D&&ye(Fe())},[Y,D]);var Ue=re?l.createElement(Tn,Object(F.a)({},Ie,{mobile:D,ref:W})):l.createElement(Et,Object(F.a)({},Ie,{ref:W}));return l.createElement("div",null,l.createElement(nt,Ie),Ue)});Jn.displayName="Popup";var Fa=Jn,ra=l.createContext(null),En=ra;function ma(){}function Qa(){return""}function Ba(R){return R?R.ownerDocument:window.document}var Ka=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Ya(R){var W=function(Y){Object($.a)(a,Y);var D=Object(f.a)(a);function a(E){var o;Object(G.a)(this,a),o=D.call(this,E),o.popupRef=l.createRef(),o.triggerRef=l.createRef(),o.attachId=void 0,o.clickOutsideHandler=void 0,o.touchOutsideHandler=void 0,o.contextMenuOutsideHandler1=void 0,o.contextMenuOutsideHandler2=void 0,o.mouseDownTimeout=void 0,o.focusTime=void 0,o.preClickTime=void 0,o.preTouchTime=void 0,o.delayTimer=void 0,o.hasPopupMouseDown=void 0,o.onMouseEnter=function(T){var q=o.props.mouseEnterDelay;o.fireEvents("onMouseEnter",T),o.delaySetPopupVisible(!0,q,q?null:T)},o.onMouseMove=function(T){o.fireEvents("onMouseMove",T),o.setPoint(T)},o.onMouseLeave=function(T){o.fireEvents("onMouseLeave",T),o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)},o.onPopupMouseEnter=function(){o.clearDelayTimer()},o.onPopupMouseLeave=function(T){var q;if(T.relatedTarget&&!T.relatedTarget.setTimeout&&Object(Mt.a)((q=o.popupRef.current)===null||q===void 0?void 0:q.getElement(),T.relatedTarget))return;o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)},o.onFocus=function(T){o.fireEvents("onFocus",T),o.clearDelayTimer(),o.isFocusToShow()&&(o.focusTime=Date.now(),o.delaySetPopupVisible(!0,o.props.focusDelay))},o.onMouseDown=function(T){o.fireEvents("onMouseDown",T),o.preClickTime=Date.now()},o.onTouchStart=function(T){o.fireEvents("onTouchStart",T),o.preTouchTime=Date.now()},o.onBlur=function(T){o.fireEvents("onBlur",T),o.clearDelayTimer(),o.isBlurToHide()&&o.delaySetPopupVisible(!1,o.props.blurDelay)},o.onContextMenu=function(T){T.preventDefault(),o.fireEvents("onContextMenu",T),o.setPopupVisible(!0,T)},o.onContextMenuClose=function(){o.isContextMenuToShow()&&o.close()},o.onClick=function(T){if(o.fireEvents("onClick",T),o.focusTime){var q;if(o.preClickTime&&o.preTouchTime?q=Math.min(o.preClickTime,o.preTouchTime):o.preClickTime?q=o.preClickTime:o.preTouchTime&&(q=o.preTouchTime),Math.abs(q-o.focusTime)<20)return;o.focusTime=0}o.preClickTime=0,o.preTouchTime=0,o.isClickToShow()&&(o.isClickToHide()||o.isBlurToHide())&&T&&T.preventDefault&&T.preventDefault();var V=!o.state.popupVisible;(o.isClickToHide()&&!V||V&&o.isClickToShow())&&o.setPopupVisible(!o.state.popupVisible,T)},o.onPopupMouseDown=function(){if(o.hasPopupMouseDown=!0,clearTimeout(o.mouseDownTimeout),o.mouseDownTimeout=window.setTimeout(function(){o.hasPopupMouseDown=!1},0),o.context){var T;(T=o.context).onPopupMouseDown.apply(T,arguments)}},o.onDocumentClick=function(T){if(o.props.mask&&!o.props.maskClosable)return;var q=T.target,V=o.getRootDomNode(),re=o.getPopupDomNode();(!Object(Mt.a)(V,q)||o.isContextMenuOnly())&&!Object(Mt.a)(re,q)&&!o.hasPopupMouseDown&&o.close()},o.getRootDomNode=function(){var T=o.props.getTriggerDOMNode;if(T)return T(o.triggerRef.current);try{var q=Object(wt.a)(o.triggerRef.current);if(q)return q}catch(V){}return It.a.findDOMNode(Object(w.a)(o))},o.getPopupClassNameFromAlign=function(T){var q=[],V=o.props,re=V.popupPlacement,ye=V.builtinPlacements,Ie=V.prefixCls,Ue=V.alignPoint,Qe=V.getPopupClassNameFromAlign;return re&&ye&&q.push(Ve(ye,Ie,T,Ue)),Qe&&q.push(Qe(T)),q.join(" ")},o.getComponent=function(){var T=o.props,q=T.prefixCls,V=T.destroyPopupOnHide,re=T.popupClassName,ye=T.onPopupAlign,Ie=T.popupMotion,Ue=T.popupAnimation,Qe=T.popupTransitionName,xt=T.popupStyle,Vt=T.mask,Kt=T.maskAnimation,Gt=T.maskTransitionName,$t=T.maskMotion,Wt=T.zIndex,Ht=T.popup,on=T.stretch,Jt=T.alignPoint,Dn=T.mobile,pn=T.forceRender,yt=o.state,bt=yt.popupVisible,Zt=yt.point,nn=o.getPopupAlign(),ct={};return o.isMouseEnterToShow()&&(ct.onMouseEnter=o.onPopupMouseEnter),o.isMouseLeaveToHide()&&(ct.onMouseLeave=o.onPopupMouseLeave),ct.onMouseDown=o.onPopupMouseDown,ct.onTouchStart=o.onPopupMouseDown,l.createElement(Fa,Object(F.a)({prefixCls:q,destroyPopupOnHide:V,visible:bt,point:Jt&&Zt,className:re,align:nn,onAlign:ye,animation:Ue,getClassNameFromAlign:o.getPopupClassNameFromAlign},ct,{stretch:on,getRootDomNode:o.getRootDomNode,style:xt,mask:Vt,zIndex:Wt,transitionName:Qe,maskAnimation:Kt,maskTransitionName:Gt,maskMotion:$t,ref:o.popupRef,motion:Ie,mobile:Dn,forceRender:pn}),typeof Ht=="function"?Ht():Ht)},o.attachParent=function(T){lt.a.cancel(o.attachId);var q=o.props,V=q.getPopupContainer,re=q.getDocument,ye=o.getRootDomNode(),Ie;V?(ye||V.length===0)&&(Ie=V(ye)):Ie=re(o.getRootDomNode()).body,Ie?Ie.appendChild(T):o.attachId=Object(lt.a)(function(){o.attachParent(T)})},o.getContainer=function(){var T=o.props.getDocument,q=T(o.getRootDomNode()).createElement("div");return q.style.position="absolute",q.style.top="0",q.style.left="0",q.style.width="100%",o.attachParent(q),q},o.setPoint=function(T){var q=o.props.alignPoint;if(!q||!T)return;o.setState({point:{pageX:T.pageX,pageY:T.pageY}})},o.handlePortalUpdate=function(){o.state.prevPopupVisible!==o.state.popupVisible&&o.props.afterPopupVisibleChange(o.state.popupVisible)},o.triggerContextValue={onPopupMouseDown:o.onPopupMouseDown};var A;return"popupVisible"in E?A=!!E.popupVisible:A=!!E.defaultPopupVisible,o.state={prevPopupVisible:A,popupVisible:A},Ka.forEach(function(T){o["fire".concat(T)]=function(q){o.fireEvents(T,q)}}),o}return Object(te.a)(a,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var o=this.props,A=this.state;if(A.popupVisible){var T;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(T=o.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(Me.a)(T,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(T=T||o.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(Me.a)(T,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(T=T||o.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(Me.a)(T,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Me.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),lt.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var o;return((o=this.popupRef.current)===null||o===void 0?void 0:o.getElement())||null}},{key:"getPopupAlign",value:function(){var o=this.props,A=o.popupPlacement,T=o.popupAlign,q=o.builtinPlacements;return A&&q?Je(q,A,T):T}},{key:"setPopupVisible",value:function(o,A){var T=this.props.alignPoint,q=this.state.popupVisible;this.clearDelayTimer(),q!==o&&("popupVisible"in this.props||this.setState({popupVisible:o,prevPopupVisible:q}),this.props.onPopupVisibleChange(o)),T&&A&&o&&this.setPoint(A)}},{key:"delaySetPopupVisible",value:function(o,A,T){var q=this,V=A*1e3;if(this.clearDelayTimer(),V){var re=T?{pageX:T.pageX,pageY:T.pageY}:null;this.delayTimer=window.setTimeout(function(){q.setPopupVisible(o,re),q.clearDelayTimer()},V)}else this.setPopupVisible(o,T)}},{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(o){var A=this.props.children.props,T=this.props;return A[o]&&T[o]?this["fire".concat(o)]:A[o]||T[o]}},{key:"isClickToShow",value:function(){var o=this.props,A=o.action,T=o.showAction;return A.indexOf("click")!==-1||T.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var o=this.props.action;return o==="contextMenu"||o.length===1&&o[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var o=this.props,A=o.action,T=o.showAction;return A.indexOf("contextMenu")!==-1||T.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var o=this.props,A=o.action,T=o.hideAction;return A.indexOf("click")!==-1||T.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var o=this.props,A=o.action,T=o.showAction;return A.indexOf("hover")!==-1||T.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var o=this.props,A=o.action,T=o.hideAction;return A.indexOf("hover")!==-1||T.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var o=this.props,A=o.action,T=o.showAction;return A.indexOf("focus")!==-1||T.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var o=this.props,A=o.action,T=o.hideAction;return A.indexOf("focus")!==-1||T.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var o;(o=this.popupRef.current)===null||o===void 0||o.forceAlign()}}},{key:"fireEvents",value:function(o,A){var T=this.props.children.props[o];T&&T(A);var q=this.props[o];q&&q(A)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var o=this.state.popupVisible,A=this.props,T=A.children,q=A.forceRender,V=A.alignPoint,re=A.className,ye=A.autoDestroy,Ie=l.Children.only(T),Ue={key:"trigger"};this.isContextMenuToShow()?Ue.onContextMenu=this.onContextMenu:Ue.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Ue.onClick=this.onClick,Ue.onMouseDown=this.onMouseDown,Ue.onTouchStart=this.onTouchStart):(Ue.onClick=this.createTwoChains("onClick"),Ue.onMouseDown=this.createTwoChains("onMouseDown"),Ue.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Ue.onMouseEnter=this.onMouseEnter,V&&(Ue.onMouseMove=this.onMouseMove)):Ue.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Ue.onMouseLeave=this.onMouseLeave:Ue.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Ue.onFocus=this.onFocus,Ue.onBlur=this.onBlur):(Ue.onFocus=this.createTwoChains("onFocus"),Ue.onBlur=this.createTwoChains("onBlur"));var Qe=ce()(Ie&&Ie.props&&Ie.props.className,re);Qe&&(Ue.className=Qe);var xt=Object(Z.a)({},Ue);Object(ue.c)(Ie)&&(xt.ref=Object(ue.a)(this.triggerRef,Ie.ref));var Vt=l.cloneElement(Ie,xt),Kt;return(o||this.popupRef.current||q)&&(Kt=l.createElement(R,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!o&&ye&&(Kt=null),l.createElement(En.Provider,{value:this.triggerContextValue},Vt,Kt)}}],[{key:"getDerivedStateFromProps",value:function(o,A){var T=o.popupVisible,q={};return T!==void 0&&A.popupVisible!==T&&(q.popupVisible=T,q.prevPopupVisible=A.popupVisible),q}}]),a}(l.Component);return W.contextType=En,W.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Qa,getDocument:Ba,onPopupVisibleChange:ma,afterPopupVisibleChange:ma,onPopupAlign:ma,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},W}var Za=Ya(Pe.a),qn={adjustX:1,adjustY:1},ga={topLeft:{points:["bl","tl"],overflow:qn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:qn,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:qn,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:qn,offset:[4,0]}},Wa={topLeft:{points:["bl","tl"],overflow:qn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:qn,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:qn,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:qn,offset:[4,0]}},wa=ga,Hn=0,Xn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Qn=function(W,Y,D){var a=U(Y),E=W.getState();W.setState({defaultActiveFirst:Object(Z.a)(Object(Z.a)({},E.defaultActiveFirst),{},Object(Q.a)({},a,D))})},Aa=function(R){Object($.a)(Y,R);var W=Object(f.a)(Y);function Y(D){var a;Object(G.a)(this,Y),a=W.call(this,D),a.onDestroy=function(V){a.props.onDestroy(V)},a.onKeyDown=function(V){var re=V.keyCode,ye=a.menuInstance,Ie=a.props.store,Ue=a.getVisible();if(re===C.a.ENTER)return a.onTitleClick(V),Qn(Ie,a.props.eventKey,!0),!0;if(re===C.a.RIGHT)return Ue?ye.onKeyDown(V):(a.triggerOpenChange(!0),Qn(Ie,a.props.eventKey,!0)),!0;if(re===C.a.LEFT){var Qe;if(Ue)Qe=ye.onKeyDown(V);else return;return Qe||(a.triggerOpenChange(!1),Qe=!0),Qe}return Ue&&(re===C.a.UP||re===C.a.DOWN)?ye.onKeyDown(V):void 0},a.onOpenChange=function(V){a.props.onOpenChange(V)},a.onPopupVisibleChange=function(V){a.triggerOpenChange(V,V?"mouseenter":"mouseleave")},a.onMouseEnter=function(V){var re=a.props,ye=re.eventKey,Ie=re.onMouseEnter,Ue=re.store;Qn(Ue,a.props.eventKey,!1),Ie({key:ye,domEvent:V})},a.onMouseLeave=function(V){var re=a.props,ye=re.parentMenu,Ie=re.eventKey,Ue=re.onMouseLeave;ye.subMenuInstance=Object(w.a)(a),Ue({key:Ie,domEvent:V})},a.onTitleMouseEnter=function(V){var re=a.props,ye=re.eventKey,Ie=re.onItemHover,Ue=re.onTitleMouseEnter;Ie({key:ye,hover:!0}),Ue({key:ye,domEvent:V})},a.onTitleMouseLeave=function(V){var re=a.props,ye=re.parentMenu,Ie=re.eventKey,Ue=re.onItemHover,Qe=re.onTitleMouseLeave;ye.subMenuInstance=Object(w.a)(a),Ue({key:Ie,hover:!1}),Qe({key:Ie,domEvent:V})},a.onTitleClick=function(V){var re=Object(w.a)(a),ye=re.props;if(ye.onTitleClick({key:ye.eventKey,domEvent:V}),ye.triggerSubMenuAction==="hover")return;a.triggerOpenChange(!a.getVisible(),"click"),Qn(ye.store,a.props.eventKey,!1)},a.onSubMenuClick=function(V){typeof a.props.onClick=="function"&&a.props.onClick(a.addKeyPath(V))},a.onSelect=function(V){a.props.onSelect(V)},a.onDeselect=function(V){a.props.onDeselect(V)},a.getPrefixCls=function(){return"".concat(a.props.rootPrefixCls,"-submenu")},a.getActiveClassName=function(){return"".concat(a.getPrefixCls(),"-active")},a.getDisabledClassName=function(){return"".concat(a.getPrefixCls(),"-disabled")},a.getSelectedClassName=function(){return"".concat(a.getPrefixCls(),"-selected")},a.getOpenClassName=function(){return"".concat(a.props.rootPrefixCls,"-submenu-open")},a.getVisible=function(){return a.state.isOpen},a.getMode=function(){return a.state.mode},a.saveMenuInstance=function(V){a.menuInstance=V},a.addKeyPath=function(V){return Object(Z.a)(Object(Z.a)({},V),{},{keyPath:(V.keyPath||[]).concat(a.props.eventKey)})},a.triggerOpenChange=function(V,re){var ye=a.props.eventKey,Ie=function(){a.onOpenChange({key:ye,item:Object(w.a)(a),trigger:re,open:V})};re==="mouseenter"?a.mouseenterTimeout=setTimeout(function(){Ie()},0):Ie()},a.isChildrenSelected=function(){var V={find:!1};return Oe(a.props.children,a.props.selectedKeys,V),V.find},a.isInlineMode=function(){return a.getMode()==="inline"},a.adjustWidth=function(){if(!a.subMenuTitle||!a.menuInstance)return;var V=St.findDOMNode(a.menuInstance);if(V.offsetWidth>=a.subMenuTitle.offsetWidth)return;V.style.minWidth="".concat(a.subMenuTitle.offsetWidth,"px")},a.saveSubMenuTitle=function(V){a.subMenuTitle=V},a.getBaseProps=function(){var V=Object(w.a)(a),re=V.props,ye=a.getMode();return{mode:ye==="horizontal"?"vertical":ye,visible:a.getVisible(),level:re.level+1,inlineIndent:re.inlineIndent,focusable:!1,onClick:a.onSubMenuClick,onSelect:a.onSelect,onDeselect:a.onDeselect,onDestroy:a.onDestroy,selectedKeys:re.selectedKeys,eventKey:"".concat(re.eventKey,"-menu-"),openKeys:re.openKeys,motion:re.motion,onOpenChange:a.onOpenChange,subMenuOpenDelay:re.subMenuOpenDelay,parentMenu:Object(w.a)(a),subMenuCloseDelay:re.subMenuCloseDelay,forceSubMenuRender:re.forceSubMenuRender,triggerSubMenuAction:re.triggerSubMenuAction,builtinPlacements:re.builtinPlacements,defaultActiveFirst:re.store.getState().defaultActiveFirst[U(re.eventKey)],multiple:re.multiple,prefixCls:re.rootPrefixCls,id:a.internalMenuId,manualRef:a.saveMenuInstance,itemIcon:re.itemIcon,expandIcon:re.expandIcon,direction:re.direction}},a.getMotion=function(V,re){var ye=Object(w.a)(a),Ie=ye.haveRendered,Ue=a.props,Qe=Ue.motion,xt=Ue.rootPrefixCls,Vt=Object(Z.a)(Object(Z.a)({},Qe),{},{leavedClassName:"".concat(xt,"-hidden"),removeOnLeave:!1,motionAppear:Ie||!re||V!=="inline"});return Vt};var E=D.store,o=D.eventKey,A=E.getState(),T=A.defaultActiveFirst;a.isRootMenu=!1;var q=!1;return T&&(q=T[o]),Qn(E,o,q),a.state={mode:D.mode,isOpen:D.isOpen},a}return Object(te.a)(Y,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var a=this,E=this.props,o=E.mode,A=E.parentMenu,T=E.manualRef,q=E.isOpen,V=function(){a.setState({mode:o,isOpen:q})},re=q!==this.state.isOpen,ye=o!==this.state.mode;if((ye||re)&&(lt.a.cancel(this.updateStateRaf),ye?this.updateStateRaf=Object(lt.a)(V):V()),T&&T(this),o!=="horizontal"||!(A==null?void 0:A.isRootMenu)||!q)return;this.minWidthTimeout=setTimeout(function(){return a.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var a=this.props,E=a.onDestroy,o=a.eventKey;E&&E(o),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),lt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(a,E){var o=this.getBaseProps();return l.createElement(Oa,Object(F.a)({},o,{id:this.internalMenuId,className:a,style:E}),this.props.children)}},{key:"renderChildren",value:function(){var a=this,E=this.getBaseProps(),o=E.mode,A=E.visible,T=E.forceSubMenuRender,q=E.direction,V=this.getMotion(o,A);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||A||T,!this.haveOpened)return l.createElement("div",null);var re=ce()("".concat(E.prefixCls,"-sub"),Object(Q.a)({},"".concat(E.prefixCls,"-rtl"),q==="rtl"));return this.isInlineMode()?l.createElement(ge,Object(F.a)({visible:E.visible,forceRender:T},V),function(ye){var Ie=ye.className,Ue=ye.style,Qe=ce()(re,Ie);return a.renderPopupMenu(Qe,Ue)}):this.renderPopupMenu(re)}},{key:"render",value:function(){var a,E,o,A=Object(Z.a)({},this.props),T=this.getVisible(),q=this.getPrefixCls(),V=this.isInlineMode(),re=this.getMode(),ye=ce()(q,"".concat(q,"-").concat(re),(a={},Object(Q.a)(a,A.className,!!A.className),Object(Q.a)(a,this.getOpenClassName(),T),Object(Q.a)(a,this.getActiveClassName(),A.active||T&&!V),Object(Q.a)(a,this.getDisabledClassName(),A.disabled),Object(Q.a)(a,this.getSelectedClassName(),this.isChildrenSelected()),a));this.internalMenuId||(A.eventKey?this.internalMenuId="".concat(A.eventKey,"$Menu"):(Hn+=1,this.internalMenuId="$__$".concat(Hn,"$Menu")));var Ie={},Ue={},Qe={};A.disabled||(Ie={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Ue={onClick:this.onTitleClick},Qe={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var xt={},Vt=A.direction,Kt=Vt==="rtl";V&&(Kt?xt.paddingRight=A.inlineIndent*A.level:xt.paddingLeft=A.inlineIndent*A.level);var Gt={};this.getVisible()&&(Gt={"aria-owns":this.internalMenuId});var $t=null;re!=="horizontal"&&($t=this.props.expandIcon,typeof this.props.expandIcon=="function"&&($t=l.createElement(this.props.expandIcon,Object(Z.a)({},this.props))));var Wt=l.createElement("div",Object(F.a)({ref:this.saveSubMenuTitle,style:xt,className:"".concat(q,"-title"),role:"button"},Qe,Ue,{"aria-expanded":T},Gt,{"aria-haspopup":"true",title:typeof A.title=="string"?A.title:void 0}),A.title,$t||l.createElement("i",{className:"".concat(q,"-arrow")})),Ht=this.renderChildren(),on=((E=A.parentMenu)===null||E===void 0?void 0:E.isRootMenu)?A.parentMenu.props.getPopupContainer:function(Pn){return Pn.parentNode},Jt=Xn[re],Dn=A.popupOffset?{offset:A.popupOffset}:{},pn=ce()((o={},Object(Q.a)(o,A.popupClassName,A.popupClassName&&!V),Object(Q.a)(o,"".concat(q,"-rtl"),Kt),o)),yt=A.disabled,bt=A.triggerSubMenuAction,Zt=A.subMenuOpenDelay,nn=A.forceSubMenuRender,ct=A.subMenuCloseDelay,rn=A.builtinPlacements;Te.forEach(function(Pn){return delete A[Pn]}),delete A.onClick;var On=Kt?Object(Z.a)(Object(Z.a)({},Wa),rn):Object(Z.a)(Object(Z.a)({},ga),rn);delete A.direction;var sn=this.getBaseProps(),vn=V?null:this.getMotion(sn.mode,sn.visible);return l.createElement("li",Object(F.a)({},A,Ie,{className:ye,role:"menuitem"}),l.createElement(Za,{prefixCls:q,popupClassName:ce()("".concat(q,"-popup"),pn),getPopupContainer:on,builtinPlacements:On,popupPlacement:Jt,popupVisible:V?!1:T,popupAlign:Dn,popup:V?null:Ht,action:yt||V?[]:[bt],mouseEnterDelay:Zt,mouseLeaveDelay:ct,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:nn,popupMotion:vn},Wt),V?Ht:null)}}]),Y}(l.Component);Aa.defaultProps={onMouseEnter:ae,onMouseLeave:ae,onTitleMouseEnter:ae,onTitleMouseLeave:ae,onTitleClick:ae,manualRef:ae,mode:"vertical",title:""};var ha=Object(L.b)(function(R,W){var Y=R.openKeys,D=R.activeKey,a=R.selectedKeys,E=W.eventKey,o=W.subMenuKey;return{isOpen:Y.indexOf(E)>-1,active:D[o]===E,selectedKeys:a}})(Aa);ha.isSubMenu=!0;var Ea=ha,Da="menuitem-overflowed",qa=.5,Ta=function(R){Object($.a)(Y,R);var W=Object(f.a)(Y);function Y(){var D;return Object(G.a)(this,Y),D=W.apply(this,arguments),D.resizeObserver=null,D.mutationObserver=null,D.originalTotalWidth=0,D.overflowedItems=[],D.menuItemSizes=[],D.cancelFrameId=null,D.state={lastVisibleIndex:void 0},D.childRef=l.createRef(),D.getMenuItemNodes=function(){var a=D.props.prefixCls,E=D.childRef.current;return E?[].slice.call(E.children).filter(function(o){return o.className.split(" ").indexOf("".concat(a,"-overflowed-submenu"))<0}):[]},D.getOverflowedSubMenuItem=function(a,E,o){var A=D.props,T=A.overflowedIndicator,q=A.level,V=A.mode,re=A.prefixCls,ye=A.theme;if(q!==1||V!=="horizontal")return null;var Ie=D.props.children[0],Ue=Ie.props,Qe=Ue.children,xt=Ue.title,Vt=Ue.style,Kt=Object(_e.a)(Ue,["children","title","style"]),Gt=Object(Z.a)({},Vt),$t="".concat(a,"-overflowed-indicator"),Wt="".concat(a,"-overflowed-indicator");E.length===0&&o!==!0?Gt=Object(Z.a)(Object(Z.a)({},Gt),{},{display:"none"}):o&&(Gt=Object(Z.a)(Object(Z.a)({},Gt),{},{visibility:"hidden",position:"absolute"}),$t="".concat($t,"-placeholder"),Wt="".concat(Wt,"-placeholder"));var Ht=ye?"".concat(re,"-").concat(ye):"",on={};return Te.forEach(function(Jt){Kt[Jt]!==void 0&&(on[Jt]=Kt[Jt])}),l.createElement(Ea,Object(F.a)({title:T,className:"".concat(re,"-overflowed-submenu"),popupClassName:Ht},on,{key:$t,eventKey:Wt,disabled:!1,style:Gt}),E)},D.setChildrenWidthAndResize=function(){if(D.props.mode!=="horizontal")return;var a=D.childRef.current;if(!a)return;var E=a.children;if(!E||E.length===0)return;var o=a.children[E.length-1];et(o,"display","inline-block");var A=D.getMenuItemNodes(),T=A.filter(function(q){return q.className.split(" ").indexOf(Da)>=0});T.forEach(function(q){et(q,"display","inline-block")}),D.menuItemSizes=A.map(function(q){return Ke(q,!0)}),T.forEach(function(q){et(q,"display","none")}),D.overflowedIndicatorWidth=Ke(a.children[a.children.length-1],!0),D.originalTotalWidth=D.menuItemSizes.reduce(function(q,V){return q+V},0),D.handleResize(),et(o,"display","none")},D.handleResize=function(){if(D.props.mode!=="horizontal")return;var a=D.childRef.current;if(!a)return;var E=Ke(a);D.overflowedItems=[];var o=0,A;D.originalTotalWidth>E+qa&&(A=-1,D.menuItemSizes.forEach(function(T){o+=T,o+D.overflowedIndicatorWidth<=E&&(A+=1)})),D.setState({lastVisibleIndex:A})},D}return Object(te.a)(Y,[{key:"componentDidMount",value:function(){var a=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var E=this.childRef.current;if(!E)return;this.resizeObserver=new Lt.default(function(o){o.forEach(function(){var A=a.cancelFrameId;cancelAnimationFrame(A),a.cancelFrameId=requestAnimationFrame(a.setChildrenWidthAndResize)})}),[].slice.call(E.children).concat(E).forEach(function(o){a.resizeObserver.observe(o)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){a.resizeObserver.disconnect(),[].slice.call(E.children).concat(E).forEach(function(o){a.resizeObserver.observe(o)}),a.setChildrenWidthAndResize()}),this.mutationObserver.observe(E,{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(a){var E=this,o=this.state.lastVisibleIndex;return(a||[]).reduce(function(A,T,q){var V=T;if(E.props.mode==="horizontal"){var re=E.getOverflowedSubMenuItem(T.props.eventKey,[]);o!==void 0&&E.props.className.indexOf("".concat(E.props.prefixCls,"-root"))!==-1&&(q>o&&(V=l.cloneElement(T,{style:{display:"none"},eventKey:"".concat(T.props.eventKey,"-hidden"),className:"".concat(Da)})),q===o+1&&(E.overflowedItems=a.slice(o+1).map(function(Ie){return l.cloneElement(Ie,{key:Ie.props.eventKey,mode:"vertical-left"})}),re=E.getOverflowedSubMenuItem(T.props.eventKey,E.overflowedItems)));var ye=[].concat(Object(S.a)(A),[re,V]);return q===a.length-1&&ye.push(E.getOverflowedSubMenuItem(T.props.eventKey,[],!0)),ye}return[].concat(Object(S.a)(A),[V])},[])}},{key:"render",value:function(){var a=this.props,E=a.visible,o=a.prefixCls,A=a.overflowedIndicator,T=a.mode,q=a.level,V=a.tag,re=a.children,ye=a.theme,Ie=Object(_e.a)(a,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Ue=V;return l.createElement(Ue,Object(F.a)({ref:this.childRef},Ie),this.renderChildren(re))}}]),Y}(l.Component);Ta.defaultProps={tag:"div",className:""};var Bn=Ta;function ba(R){return R.length?R.every(function(W){return!!W.props.disabled}):!0}function Gn(R,W,Y){var D=R.getState();R.setState({activeKey:Object(Z.a)(Object(Z.a)({},D.activeKey),{},Object(Q.a)({},W,Y))})}function fa(R){return R.eventKey||"0-menu-"}function xa(R,W){var Y=W,D=R.children,a=R.eventKey;if(Y){var E;if(ie(D,function(o,A){o&&o.props&&!o.props.disabled&&Y===v(o,a,A)&&(E=!0)}),E)return Y}return Y=null,R.defaultActiveFirst&&ie(D,function(o,A){!Y&&o&&!o.props.disabled&&(Y=v(o,a,A))}),Y}function Ha(R){if(!R)return;var W=this.instanceArray.indexOf(R);W!==-1?this.instanceArray[W]=R:this.instanceArray.push(R)}var Na=function(R){Object($.a)(Y,R);var W=Object(f.a)(Y);function Y(D){var a;return Object(G.a)(this,Y),a=W.call(this,D),a.onKeyDown=function(E,o){var A=E.keyCode,T;if(a.getFlatInstanceArray().forEach(function(V){V&&V.props.active&&V.onKeyDown&&(T=V.onKeyDown(E))}),T)return 1;var q=null;return(A===C.a.UP||A===C.a.DOWN)&&(q=a.step(A===C.a.UP?-1:1)),q?(E.preventDefault(),Gn(a.props.store,fa(a.props),q.props.eventKey),typeof o=="function"&&o(q),1):void 0},a.onItemHover=function(E){var o=E.key,A=E.hover;Gn(a.props.store,fa(a.props),A?o:null)},a.onDeselect=function(E){a.props.onDeselect(E)},a.onSelect=function(E){a.props.onSelect(E)},a.onClick=function(E){a.props.onClick(E)},a.onOpenChange=function(E){a.props.onOpenChange(E)},a.onDestroy=function(E){a.props.onDestroy(E)},a.getFlatInstanceArray=function(){return a.instanceArray},a.step=function(E){var o=a.getFlatInstanceArray(),A=a.props.store.getState().activeKey[fa(a.props)],T=o.length;if(!T)return null;E<0&&(o=o.concat().reverse());var q=-1;if(o.every(function(Ie,Ue){return Ie&&Ie.props.eventKey===A?(q=Ue,!1):!0}),!a.props.defaultActiveFirst&&q!==-1&&ba(o.slice(q,T-1)))return;var V=(q+1)%T,re=V;do{var ye=o[re];if(!ye||ye.props.disabled)re=(re+1)%T;else return ye}while(re!==V);return null},a.renderCommonMenuItem=function(E,o,A){var T=a.props.store.getState(),q=Object(w.a)(a),V=q.props,re=v(E,V.eventKey,o),ye=E.props;if(!ye||typeof E.type=="string")return E;var Ie=re===T.activeKey,Ue=Object(Z.a)(Object(Z.a)({mode:ye.mode||V.mode,level:V.level,inlineIndent:V.inlineIndent,renderMenuItem:a.renderMenuItem,rootPrefixCls:V.prefixCls,index:o,parentMenu:V.parentMenu,manualRef:ye.disabled?void 0:Object(X.a)(E.ref,Ha.bind(Object(w.a)(a))),eventKey:re,active:!ye.disabled&&Ie,multiple:V.multiple,onClick:function(xt){(ye.onClick||ae)(xt),a.onClick(xt)},onItemHover:a.onItemHover,motion:V.motion,subMenuOpenDelay:V.subMenuOpenDelay,subMenuCloseDelay:V.subMenuCloseDelay,forceSubMenuRender:V.forceSubMenuRender,onOpenChange:a.onOpenChange,onDeselect:a.onDeselect,onSelect:a.onSelect,builtinPlacements:V.builtinPlacements,itemIcon:ye.itemIcon||a.props.itemIcon,expandIcon:ye.expandIcon||a.props.expandIcon},A),{},{direction:V.direction});return(V.mode==="inline"||Ge())&&(Ue.triggerSubMenuAction="click"),l.cloneElement(E,Object(Z.a)(Object(Z.a)({},Ue),{},{key:re||o}))},a.renderMenuItem=function(E,o,A){if(!E)return null;var T=a.props.store.getState(),q={openKeys:T.openKeys,selectedKeys:T.selectedKeys,triggerSubMenuAction:a.props.triggerSubMenuAction,subMenuKey:A};return a.renderCommonMenuItem(E,o,q)},D.store.setState({activeKey:Object(Z.a)(Object(Z.a)({},D.store.getState().activeKey),{},Object(Q.a)({},D.eventKey,xa(D,D.activeKey)))}),a.instanceArray=[],a}return Object(te.a)(Y,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(a){return this.props.visible||a.visible||this.props.className!==a.className||!b()(this.props.style,a.style)}},{key:"componentDidUpdate",value:function(a){var E=this.props,o="activeKey"in E?E.activeKey:E.store.getState().activeKey[fa(E)],A=xa(E,o);if(A!==o)Gn(E.store,fa(E),A);else if("activeKey"in a){var T=xa(a,a.activeKey);A!==T&&Gn(E.store,fa(E),A)}}},{key:"render",value:function(){var a=this,E=Object(F.a)({},this.props);this.instanceArray=[];var o=ce()(E.prefixCls,E.className,"".concat(E.prefixCls,"-").concat(E.mode)),A={className:o,role:E.role||"menu"};E.id&&(A.id=E.id),E.focusable&&(A.tabIndex=0,A.onKeyDown=this.onKeyDown);var T=E.prefixCls,q=E.eventKey,V=E.visible,re=E.level,ye=E.mode,Ie=E.overflowedIndicator,Ue=E.theme;return Te.forEach(function(Qe){return delete E[Qe]}),delete E.onClick,l.createElement(Bn,Object(F.a)({},E,{prefixCls:T,mode:ye,tag:"ul",level:re,theme:Ue,visible:V,overflowedIndicator:Ie},A),Object(ne.a)(E.children).map(function(Qe,xt){return a.renderMenuItem(Qe,xt,q||"0-menu-")}))}}]),Y}(l.Component);Na.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:ae};var ya=Object(L.b)()(Na),Oa=ya,ia=t("Kwbf");function sa(R,W,Y){var D=R.prefixCls,a=R.motion,E=R.defaultMotions,o=E===void 0?{}:E,A=R.openAnimation,T=R.openTransitionName,q=W.switchingModeFromInline;if(a)return a;if(Object(P.a)(A)==="object"&&A)Object(ia.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof A=="string")return{motionName:"".concat(D,"-open-").concat(A)};if(T)return{motionName:T};var V=o[Y];return V||(q?null:o.other)}var za=function(R){Object($.a)(Y,R);var W=Object(f.a)(Y);function Y(D){var a;Object(G.a)(this,Y),a=W.call(this,D),a.onSelect=function(A){var T=Object(w.a)(a),q=T.props;if(q.selectable){var V=a.store.getState(),re=V.selectedKeys,ye=A.key;q.multiple?re=re.concat([ye]):re=[ye],"selectedKeys"in q||a.store.setState({selectedKeys:re}),q.onSelect(Object(Z.a)(Object(Z.a)({},A),{},{selectedKeys:re}))}},a.onClick=function(A){var T=a.getRealMenuMode(),q=Object(w.a)(a),V=q.store,re=q.props.onOpenChange;T!=="inline"&&!("openKeys"in a.props)&&(V.setState({openKeys:[]}),re([])),a.props.onClick(A)},a.onKeyDown=function(A,T){a.innerMenu.getWrappedInstance().onKeyDown(A,T)},a.onOpenChange=function(A){var T=Object(w.a)(a),q=T.props,V=a.store.getState().openKeys.concat(),re=!1,ye=function(Ue){var Qe=!1;if(Ue.open)Qe=V.indexOf(Ue.key)===-1,Qe&&V.push(Ue.key);else{var xt=V.indexOf(Ue.key);Qe=xt!==-1,Qe&&V.splice(xt,1)}re=re||Qe};Array.isArray(A)?A.forEach(ye):ye(A),re&&("openKeys"in a.props||a.store.setState({openKeys:V}),q.onOpenChange(V))},a.onDeselect=function(A){var T=Object(w.a)(a),q=T.props;if(q.selectable){var V=a.store.getState().selectedKeys.concat(),re=A.key,ye=V.indexOf(re);ye!==-1&&V.splice(ye,1),"selectedKeys"in q||a.store.setState({selectedKeys:V}),q.onDeselect(Object(Z.a)(Object(Z.a)({},A),{},{selectedKeys:V}))}},a.onMouseEnter=function(A){a.restoreModeVerticalFromInline();var T=a.props.onMouseEnter;T&&T(A)},a.onTransitionEnd=function(A){var T=A.propertyName==="width"&&A.target===A.currentTarget,q=A.target.className,V=Object.prototype.toString.call(q)==="[object SVGAnimatedString]"?q.animVal:q,re=A.propertyName==="font-size"&&V.indexOf("anticon")>=0;(T||re)&&a.restoreModeVerticalFromInline()},a.setInnerMenu=function(A){a.innerMenu=A},a.isRootMenu=!0;var E=D.defaultSelectedKeys,o=D.defaultOpenKeys;return"selectedKeys"in D&&(E=D.selectedKeys||[]),"openKeys"in D&&(o=D.openKeys||[]),a.store=Object(L.c)({selectedKeys:E,openKeys:o,activeKey:{"0-menu-":xa(D,D.activeKey)}}),a.state={switchingModeFromInline:!1,prevProps:D,inlineOpenKeys:[],store:a.store},a}return Object(te.a)(Y,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(a){var E=this.props,o=E.siderCollapsed,A=E.inlineCollapsed,T=E.onOpenChange;(!a.inlineCollapsed&&A||!a.siderCollapsed&&o)&&T([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var a=this.props.collapsedWidth,E=this.store,o=this.prevOpenKeys,A=this.getInlineCollapsed()&&(a===0||a==="0"||a==="0px");A?(this.prevOpenKeys=E.getState().openKeys.concat(),this.store.setState({openKeys:[]})):o&&(this.store.setState({openKeys:o}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var a=this.props.mode,E=this.state.switchingModeFromInline,o=this.getInlineCollapsed();return E&&o?"inline":o?"vertical":a}},{key:"getInlineCollapsed",value:function(){var a=this.props,E=a.inlineCollapsed,o=a.siderCollapsed;return o!==void 0?o:E}},{key:"restoreModeVerticalFromInline",value:function(){var a=this.state.switchingModeFromInline;a&&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 a=Object(Z.a)({},Object(oe.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),E=this.getRealMenuMode();return a.className+=" ".concat(a.prefixCls,"-root"),a.direction==="rtl"&&(a.className+=" ".concat(a.prefixCls,"-rtl")),a=Object(Z.a)(Object(Z.a)({},a),{},{mode:E,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:sa(this.props,this.state,E)}),delete a.openAnimation,delete a.openTransitionName,l.createElement(L.a,{store:this.store},l.createElement(Oa,Object(F.a)({},a,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(a,E){var o=E.prevProps,A=E.store,T=A.getState(),q={},V={prevProps:a};return o.mode==="inline"&&a.mode!=="inline"&&(V.switchingModeFromInline=!0),"openKeys"in a?q.openKeys=a.openKeys||[]:((a.inlineCollapsed&&!o.inlineCollapsed||a.siderCollapsed&&!o.siderCollapsed)&&(V.switchingModeFromInline=!0,V.inlineOpenKeys=T.openKeys,q.openKeys=[]),(!a.inlineCollapsed&&o.inlineCollapsed||!a.siderCollapsed&&o.siderCollapsed)&&(q.openKeys=E.inlineOpenKeys,V.inlineOpenKeys=[])),Object.keys(q).length&&A.setState(q),V}}]),Y}(l.Component);za.defaultProps={selectable:!0,onClick:ae,onSelect:ae,onOpenChange:ae,onDeselect:ae,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:l.createElement("span",null,"\xB7\xB7\xB7")};var Va=za,pa=function(R){Object($.a)(Y,R);var W=Object(f.a)(Y);function Y(){var D;return Object(G.a)(this,Y),D=W.apply(this,arguments),D.onKeyDown=function(a){var E=a.keyCode;return E===C.a.ENTER?(D.onClick(a),!0):void 0},D.onMouseLeave=function(a){var E=D.props,o=E.eventKey,A=E.onItemHover,T=E.onMouseLeave;A({key:o,hover:!1}),T({key:o,domEvent:a})},D.onMouseEnter=function(a){var E=D.props,o=E.eventKey,A=E.onItemHover,T=E.onMouseEnter;A({key:o,hover:!0}),T({key:o,domEvent:a})},D.onClick=function(a){var E=D.props,o=E.eventKey,A=E.multiple,T=E.onClick,q=E.onSelect,V=E.onDeselect,re=E.isSelected,ye={key:o,keyPath:[o],item:Object(w.a)(D),domEvent:a};T(ye),A?re?V(ye):q(ye):re||q(ye)},D.saveNode=function(a){D.node=a},D}return Object(te.a)(Y,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var a=this.props;a.onDestroy&&a.onDestroy(a.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 a,E=Object(Z.a)({},this.props),o=ce()(this.getPrefixCls(),E.className,(a={},Object(Q.a)(a,this.getActiveClassName(),!E.disabled&&E.active),Object(Q.a)(a,this.getSelectedClassName(),E.isSelected),Object(Q.a)(a,this.getDisabledClassName(),E.disabled),a)),A=Object(Z.a)(Object(Z.a)({},E.attribute),{},{title:typeof E.title=="string"?E.title:void 0,className:o,role:E.role||"menuitem","aria-disabled":E.disabled});E.role==="option"?A=Object(Z.a)(Object(Z.a)({},A),{},{role:"option","aria-selected":E.isSelected}):(E.role===null||E.role==="none")&&(A.role="none");var T={onClick:E.disabled?null:this.onClick,onMouseLeave:E.disabled?null:this.onMouseLeave,onMouseEnter:E.disabled?null:this.onMouseEnter},q=Object(Z.a)({},E.style);E.mode==="inline"&&(E.direction==="rtl"?q.paddingRight=E.inlineIndent*E.level:q.paddingLeft=E.inlineIndent*E.level),Te.forEach(function(re){return delete E[re]}),delete E.direction;var V=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(V=l.createElement(this.props.itemIcon,this.props)),l.createElement("li",Object(F.a)({},Object(oe.a)(E,["onClick","onMouseEnter","onMouseLeave","onSelect"]),A,T,{style:q,ref:this.saveNode}),E.children,V)}}]),Y}(l.Component);pa.isMenuItem=!0,pa.defaultProps={onSelect:ae,onMouseEnter:ae,onMouseLeave:ae,manualRef:ae};var Ra=Object(L.b)(function(R,W){var Y=R.activeKey,D=R.selectedKeys,a=W.eventKey,E=W.subMenuKey;return{active:Y[E]===a,isSelected:Array.isArray(D)?D.indexOf(a)!==-1:D===a}})(pa),_a=Ra,Ua=function(R){Object($.a)(Y,R);var W=Object(f.a)(Y);function Y(){var D;return Object(G.a)(this,Y),D=W.apply(this,arguments),D.renderInnerMenuItem=function(a){var E=D.props,o=E.renderMenuItem,A=E.index;return o(a,A,D.props.subMenuKey)},D}return Object(te.a)(Y,[{key:"render",value:function(){var a=Object(F.a)({},this.props),E=a.className,o=E===void 0?"":E,A=a.rootPrefixCls,T="".concat(A,"-item-group-title"),q="".concat(A,"-item-group-list"),V=a.title,re=a.children;return Te.forEach(function(ye){return delete a[ye]}),delete a.direction,l.createElement("li",Object(F.a)({},a,{onClick:function(Ie){return Ie.stopPropagation()},className:"".concat(o," ").concat(A,"-item-group")}),l.createElement("div",{className:T,title:typeof V=="string"?V:void 0},V),l.createElement("ul",{className:q},l.Children.map(re,this.renderInnerMenuItem)))}}]),Y}(l.Component);Ua.isMenuItemGroup=!0,Ua.defaultProps={disabled:!0};var J=Ua,Be=function(W){var Y=W.className,D=W.rootPrefixCls,a=W.style;return l.createElement("li",{className:"".concat(Y," ").concat(D,"-item-divider"),style:a})};Be.defaultProps={disabled:!0,className:"",style:{}};var De=Be,we=Va,it=t("eDIo");function Re(R,W){var Y=R.prefixCls,D=R.editable,a=R.locale,E=R.style;return!D||D.showAdd===!1?null:l.createElement("button",{ref:W,type:"button",className:"".concat(Y,"-nav-add"),style:E,"aria-label":(a==null?void 0:a.addAriaLabel)||"Add tab",onClick:function(A){D.onEdit("add",{event:A})}},D.addIcon||"+")}var Pt=l.forwardRef(Re);function Ut(R,W){var Y=R.prefixCls,D=R.id,a=R.tabs,E=R.locale,o=R.mobile,A=R.moreIcon,T=A===void 0?"More":A,q=R.moreTransitionName,V=R.style,re=R.className,ye=R.editable,Ie=R.tabBarGutter,Ue=R.rtl,Qe=R.onTabClick,xt=Object(l.useState)(!1),Vt=Object(N.a)(xt,2),Kt=Vt[0],Gt=Vt[1],$t=Object(l.useState)(null),Wt=Object(N.a)($t,2),Ht=Wt[0],on=Wt[1],Jt="".concat(D,"-more-popup"),Dn="".concat(Y,"-dropdown"),pn=Ht!==null?"".concat(Jt,"-").concat(Ht):null,yt=E==null?void 0:E.dropdownAriaLabel,bt=l.createElement(we,{onClick:function(vn){var Pn=vn.key,zn=vn.domEvent;Qe(Pn,zn),Gt(!1)},id:Jt,tabIndex:-1,role:"listbox","aria-activedescendant":pn,selectedKeys:[Ht],"aria-label":yt!==void 0?yt:"expanded dropdown"},a.map(function(sn){return l.createElement(_a,{key:sn.key,id:"".concat(Jt,"-").concat(sn.key),role:"option","aria-controls":D&&"".concat(D,"-panel-").concat(sn.key),disabled:sn.disabled},sn.tab)}));function Zt(sn){for(var vn=a.filter(function(oa){return!oa.disabled}),Pn=vn.findIndex(function(oa){return oa.key===Ht})||0,zn=vn.length,aa=0;aarn?(nn=bt,Jt.current="x"):(nn=Zt,Jt.current="y");var On=Date.now();On-Ht.current>100&&(on.current=!1),(W(-nn,-nn)||on.current)&&(yt.preventDefault(),on.current=!0),Ht.current=On}var pn=Object(l.useRef)(null);pn.current={onTouchStart:Gt,onTouchMove:$t,onTouchEnd:Wt,onWheel:Dn},l.useEffect(function(){function yt(ct){pn.current.onTouchStart(ct)}function bt(ct){pn.current.onTouchMove(ct)}function Zt(ct){pn.current.onTouchEnd(ct)}function nn(ct){pn.current.onWheel(ct)}return document.addEventListener("touchmove",bt,{passive:!1}),document.addEventListener("touchend",Zt,{passive:!1}),R.current.addEventListener("touchstart",yt,{passive:!1}),R.current.addEventListener("wheel",nn),function(){document.removeEventListener("touchmove",bt),document.removeEventListener("touchend",Zt)}},[])}function ea(){var R=Object(l.useRef)(new Map);function W(D){return R.current.has(D)||R.current.set(D,l.createRef()),R.current.get(D)}function Y(D){R.current.delete(D)}return[W,Y]}function jn(R,W){var Y=l.useRef(R),D=l.useState({}),a=Object(N.a)(D,2),E=a[1];function o(A){var T=typeof A=="function"?A(Y.current):A;T!==Y.current&&W(T,Y.current),Y.current=T,E({})}return[Y.current,o]}var ja=function(W){var Y=W.position,D=W.prefixCls,a=W.extra;if(!a)return null;var E,o=a;return Y==="right"&&(E=o.right||!o.left&&o||null),Y==="left"&&(E=o.left||null),E?l.createElement("div",{className:"".concat(D,"-extra-content")},E):null};function $a(R,W){var Y,D=l.useContext(An),a=D.prefixCls,E=D.tabs,o=R.className,A=R.style,T=R.id,q=R.animated,V=R.activeKey,re=R.rtl,ye=R.extra,Ie=R.editable,Ue=R.locale,Qe=R.tabPosition,xt=R.tabBarGutter,Vt=R.children,Kt=R.onTabClick,Gt=R.onTabScroll,$t=Object(l.useRef)(),Wt=Object(l.useRef)(),Ht=Object(l.useRef)(),on=Object(l.useRef)(),Jt=ea(),Dn=Object(N.a)(Jt,2),pn=Dn[0],yt=Dn[1],bt=Qe==="top"||Qe==="bottom",Zt=jn(0,function(mn,qt){bt&&Gt&&Gt({direction:mn>qt?"left":"right"})}),nn=Object(N.a)(Zt,2),ct=nn[0],rn=nn[1],On=jn(0,function(mn,qt){!bt&&Gt&&Gt({direction:mn>qt?"top":"bottom"})}),sn=Object(N.a)(On,2),vn=sn[0],Pn=sn[1],zn=Object(l.useState)(0),aa=Object(N.a)(zn,2),Nn=aa[0],oa=aa[1],va=Object(l.useState)(0),la=Object(N.a)(va,2),ua=la[0],Un=la[1],Yn=Object(l.useState)(0),Vn=Object(N.a)(Yn,2),Kn=Vn[0],Pa=Vn[1],Sa=Object(l.useState)(0),Ia=Object(N.a)(Sa,2),yn=Ia[0],Ca=Ia[1],ka=Object(l.useState)(null),Rn=Object(N.a)(ka,2),fn=Rn[0],$n=Rn[1],$o=Object(l.useState)(null),_o=Object(N.a)($o,2),Ga=_o[0],Xo=_o[1],Go=Object(l.useState)(0),Co=Object(N.a)(Go,2),Jo=Co[0],Qo=Co[1],Yo=Object(l.useState)(0),xo=Object(N.a)(Yo,2),Zo=xo[0],qo=xo[1],er=u(new Map),Oo=Object(N.a)(er,2),tr=Oo[0],nr=Oo[1],lo=j(E,tr,Nn),Ro="".concat(a,"-nav-operations-hidden"),eo=0,to=0;bt?re?(eo=0,to=Math.max(0,Nn-fn)):(eo=Math.min(0,fn-Nn),to=0):(eo=Math.min(0,Ga-ua),to=0);function uo(mn){return mnto?[to,!1]:[mn,!0]}var jo=Object(l.useRef)(),ar=Object(l.useState)(),Po=Object(N.a)(ar,2),co=Po[0],So=Po[1];function fo(){So(Date.now())}function po(){window.clearTimeout(jo.current)}xn($t,function(mn,qt){var Wn=!1;function ca(ao,oo){ao(function(ro){var io=uo(ro+oo),Ja=Object(N.a)(io,2),go=Ja[0],Eo=Ja[1];return Wn=Eo,go})}if(bt){if(fn>=Nn)return Wn;ca(rn,mn)}else{if(Ga>=ua)return Wn;ca(Pn,qt)}return po(),fo(),Wn}),Object(l.useEffect)(function(){return po(),co&&(jo.current=window.setTimeout(function(){So(0)},100)),po},[co]);function Mo(){var mn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:V,qt=lo.get(mn);if(!qt)return;if(bt){var Wn=ct;re?qt.rightct+fn&&(Wn=qt.right+qt.width-fn):qt.left<-ct?Wn=-qt.left:qt.left+qt.width>-ct+fn&&(Wn=-(qt.left+qt.width-fn)),Pn(0),rn(uo(Wn)[0])}else{var ca=vn;qt.top<-vn?ca=-qt.top:qt.top+qt.height>-vn+Ga&&(ca=-(qt.top+qt.height-Ga)),rn(0),Pn(uo(ca)[0])}}var or=ee(lo,{width:fn,height:Ga,left:ct,top:vn},{width:Kn,height:yn},{width:Jo,height:Zo},Object(Z.a)(Object(Z.a)({},R),{},{tabs:E})),wo=Object(N.a)(or,2),rr=wo[0],ir=wo[1],sr=E.map(function(mn){var qt=mn.key;return l.createElement(n,{id:T,prefixCls:a,key:qt,rtl:re,tab:mn,closable:mn.closable,editable:Ie,active:qt===V,tabPosition:Qe,tabBarGutter:xt,renderWrapper:Vt,removeAriaLabel:Ue==null?void 0:Ue.removeAriaLabel,ref:pn(qt),onClick:function(ca){Kt(qt,ca)},onRemove:function(){yt(qt)},onFocus:function(){Mo(qt),fo(),re||($t.current.scrollLeft=0),$t.current.scrollTop=0}})}),mo=g(function(){var mn,qt,Wn,ca,ao,oo,ro,io,Ja,go=((mn=$t.current)===null||mn===void 0?void 0:mn.offsetWidth)||0,Eo=((qt=$t.current)===null||qt===void 0?void 0:qt.offsetHeight)||0,ko=((Wn=on.current)===null||Wn===void 0?void 0:Wn.offsetWidth)||0,Fo=((ca=on.current)===null||ca===void 0?void 0:ca.offsetHeight)||0,pr=((ao=Ht.current)===null||ao===void 0?void 0:ao.offsetWidth)||0,mr=((oo=Ht.current)===null||oo===void 0?void 0:oo.offsetHeight)||0;$n(go),Xo(Eo),Qo(ko),qo(Fo);var Bo=(((ro=Wt.current)===null||ro===void 0?void 0:ro.offsetWidth)||0)-ko,Ko=(((io=Wt.current)===null||io===void 0?void 0:io.offsetHeight)||0)-Fo;oa(Bo),Un(Ko);var Wo=(Ja=Ht.current)===null||Ja===void 0?void 0:Ja.className.includes(Ro);Pa(Bo-(Wo?0:pr)),Ca(Ko-(Wo?0:mr)),nr(function(){var Ho=new Map;return E.forEach(function(hr){var zo=hr.key,so=pn(zo).current;so&&Ho.set(zo,{width:so.offsetWidth,height:so.offsetHeight,left:so.offsetLeft,top:so.offsetTop})}),Ho})}),lr=E.slice(0,rr),ur=E.slice(ir+1),Ao=[].concat(Object(S.a)(lr),Object(S.a)(ur)),cr=Object(l.useState)(),Do=Object(N.a)(cr,2),dr=Do[0],fr=Do[1],Ma=lo.get(V),To=Object(l.useRef)();function No(){y.a.cancel(To.current)}Object(l.useEffect)(function(){var mn={};return Ma&&(bt?(re?mn.right=Ma.right:mn.left=Ma.left,mn.width=Ma.width):(mn.top=Ma.top,mn.height=Ma.height)),No(),To.current=y()(function(){fr(mn)}),No},[Ma,bt,re]),Object(l.useEffect)(function(){Mo()},[V,Ma,lo,bt]),Object(l.useEffect)(function(){mo()},[re,xt,V,E.map(function(mn){return mn.key}).join("_")]);var Uo=!!Ao.length,no="".concat(a,"-nav-wrap"),ho,vo,Lo,Io;return bt?re?(vo=ct>0,ho=ct+fnTe&&(X="other")),_&&(b.filename=_),Object(S.useEffect)(function(){var St,It,lt=(St=document.cookie)===null||St===void 0||((It=St.replace(/\s/g,""))===null||It===void 0)?void 0:It.split(";");lt==null||lt.map(function(Mt){var wt=Mt.split("=");wt[0]==="_educoder_session"&&me(wt[1])})},[]),Object(S.useEffect)(function(){X==="office"&&et()},[X,L]);var et=function(){var St=Object(m.a)(M.a.mark(function It(){var lt,Mt,wt;return M.a.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return console.log("data:",L),lt=L,L.startsWith("http")||(lt=location.origin+lt),Mt=new URL(lt).pathname.split("/").pop(),Me.next=6,Object(i.U)({attachment_id:Mt});case 6:wt=Me.sent,ae(wt);case 8:case"end":return Me.stop()}},It)}));return function(){return St.apply(this,arguments)}}(),Ge=function(){if(L.startsWith("http")||L.startsWith("blob:")){Lt();return}Object(C.x)(_||"educoder",L,_)},Lt=function(){Object(C.v)(_||"educoder",decodeURIComponent(L))};return d.a.createElement("div",{style:Object(l.a)({},r||{}),className:"".concat(H&&x.a.bgBlack," ").concat(X?x.a.wrp:"hide")},s&&d.a.createElement("div",{className:x.a.close,ref:Ke},!!B&&d.a.createElement(Z.a,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:function(){return Ke.current}},d.a.createElement("span",{onClick:function(){e(),B()}},d.a.createElement("i",{className:"icon-yulanpizhu"}))),!p&&d.a.createElement(Z.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return Ke.current}},d.a.createElement("span",{onClick:Lt},d.a.createElement("i",{className:"icon-quxiaozhiding"}))),d.a.createElement(Z.a,{title:"\u5173\u95ED",getPopupContainer:function(){return Ke.current}},d.a.createElement("span",{className:"",onClick:e},d.a.createElement("i",{className:"icon-guanbi1"})))),d.a.createElement("div",{className:"".concat(x.a[P]," ").concat(P," ").concat(x.a.monaco," ").concat(X==="txt"?"show":"hide")},X==="txt"&&d.a.createElement(u.b,b)),X==="audio"&&d.a.createElement("audio",{src:"".concat(((K=L)===null||K===void 0?void 0:K.indexOf("http://"))>-1||((ee=L)===null||ee===void 0?void 0:ee.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(L),autoPlay:!0}),X==="video"&&d.a.createElement(d.a.Fragment,null,((F=L)===null||F===void 0?void 0:F.indexOf("http"))>-1?d.a.createElement("video",{controls:!0,src:"".concat(L),autoPlay:!0}):d.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(L),autoPlay:!0})),X==="office"&&O&&d.a.createElement("iframe",{src:"".concat(v,"/office.html?key=").concat(O.key,"&url=").concat(U+O.url,"&callbackUrl=").concat(U+O.callbackUrl,"&fileType=").concat(O.fileType,"&title=").concat(O.title,"&model=").concat($,"&officeServer=").concat(n.a.OFFICE_SERVER,"&disabledDownload=").concat(!!p)}),(X==="xlsx"||X==="doc"||X==="pptx"||X==="docx")&&d.a.createElement("iframe",{src:"/react/build/office.html?key=".concat(le.key,"&url=").concat(n.a.API_SERVER+le.url,"&callbackUrl=").concat(n.a.API_SERVER+le.callbackUrl,"&fileType=").concat(le.fileType,"&title=").concat(le.title,"&model=").concat(le.model)}),X==="html"&&d.a.createElement("iframe",{src:L+"&disposition=inline"}),X==="pdf"&&d.a.createElement("embed",{className:x.a.embed,src:L}),X==="image"&&d.a.createElement("img",{src:"".concat(((G=L)===null||G===void 0?void 0:G.indexOf("http://"))>-1||((te=L)===null||te===void 0?void 0:te.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(L)}),X==="other"&&d.a.createElement("div",null,d.a.createElement(N.a,{type:"primary",size:"large",onClick:Ge},d.a.createElement(g.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),X==="download"&&d.a.createElement(N.a,{type:"primary",size:"large",onClick:Ge},d.a.createElement(g.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},pmY6:function(dt,z,t){"use strict";t.d(z,"g",function(){return l}),t.d(z,"f",function(){return m}),t.d(z,"e",function(){return ce}),t.d(z,"h",function(){return ne}),t.d(z,"b",function(){return M}),t.d(z,"a",function(){return S}),t.d(z,"d",function(){return d}),t.d(z,"c",function(){return y});var Q=!1,N="__is_disposable_tracked__";function _e(x){if(!Q)return;if(x&&x!==S.None)try{x[N]=!0}catch(g){}}function Z(x){if(!Q)return x;var g=new Error("Potentially leaked disposable").stack;return setTimeout(function(){x[N]||console.log(g)},3e3),x}function l(x){return typeof x.dispose=="function"&&x.dispose.length===0}function m(x){return Array.isArray(x)?(x.forEach(function(g){g&&(_e(g),g.dispose())}),[]):x?(_e(x),x.dispose(),x):void 0}function ce(){for(var x=[],g=0;g=_e.length?{done:!0}:{done:!1,value:_e[m++]}},e:function(y){throw y},f:ce}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ne=!0,M=!1,S;return{s:function(){l=_e[Symbol.iterator]()},n:function(){var y=l.next();return ne=y.done,y},e:function(y){M=!0,S=y},f:function(){try{!ne&&l.return!=null&&l.return()}finally{if(M)throw S}}}}},sR1s:function(dt,z,t){"use strict";t.d(z,"b",function(){return Z}),t.d(z,"a",function(){return l}),t.d(z,"c",function(){return m}),t.d(z,"d",function(){return ce});var Q=t("U8pU"),N="RC_TABLE_KEY";function _e(ne){return ne==null?[]:Array.isArray(ne)?ne:[ne]}function Z(ne,M){if(!M&&typeof M!="number")return ne;for(var S=_e(M),d=ne,y=0;y1)Object(S.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(j.length===0)return Object(S.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var K=j[0];if(m.isValidElement(K)&&Object(d.c)(K)){var ee=K.ref;j[0]=m.cloneElement(K,{ref:Object(d.a)(ee,this.setChildNode)})}return j.length===1?j[0]:j.map(function(F,G){return!m.isValidElement(F)||"key"in F&&F.key!==null?F:m.cloneElement(F,{key:"".concat(x,"-").concat(G)})})}}]),i}(m.Component);g.displayName="ResizeObserver",z.a=g},vHTk:function(dt,z,t){dt.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},wCXF:function(dt,z,t){"use strict";t.d(z,"a",function(){return It});var Q=t("rePB"),N=t("VTBJ"),_e=t("KQm4"),Z=t("U8pU"),l=t("ODXe"),m=t("q1tI"),ce=t("TSYQ"),ne=t.n(ce),M=t("Gytx"),S=t.n(M),d=t("Kwbf"),y=t("t23M"),x=t("qx4F"),g=t("6eGT"),u=t("IBYe"),C=t("Ff2n"),i=t("c+Xe"),n=t("fyJ8"),h=t("biw7");function j(ue,Me,Pe,ve,Je){var Ve=Pe[ue]||{},Fe=Pe[Me]||{},ke,He;Ve.fixed==="left"?ke=ve.left[ue]:Fe.fixed==="right"&&(He=ve.right[Me]);var Ye=!1,ze=!1,rt=!1,ft=!1,mt=Pe[Me+1],At=Pe[ue-1];if(Je==="rtl"){if(ke!==void 0){var zt=At&&At.fixed==="left";ft=!zt}else if(He!==void 0){var kt=mt&&mt.fixed==="right";rt=!kt}}else if(ke!==void 0){var Tt=mt&&mt.fixed==="left";Ye=!Tt}else if(He!==void 0){var Ot=At&&At.fixed==="right";ze=!Ot}return{fixLeft:ke,fixRight:He,lastFixLeft:Ye,firstFixRight:ze,lastFixRight:rt,firstFixLeft:ft,isSticky:ve.isSticky}}var K=t("sR1s");function ee(ue){var Me=ue.cells,Pe=ue.stickyOffsets,ve=ue.flattenColumns,Je=ue.rowComponent,Ve=ue.cellComponent,Fe=ue.onHeaderRow,ke=ue.index,He=m.useContext(h.a),Ye=He.prefixCls,ze=He.direction,rt;Fe&&(rt=Fe(Me.map(function(mt){return mt.column}),ke));var ft=Object(K.a)(Me.map(function(mt){return mt.column}));return m.createElement(Je,Object.assign({},rt),Me.map(function(mt,At){var zt=mt.column,kt=j(mt.colStart,mt.colEnd,ve,Pe,ze),Tt;return zt&&zt.onHeaderCell&&(Tt=mt.column.onHeaderCell(zt)),m.createElement(n.a,Object.assign({},mt,{ellipsis:zt.ellipsis,align:zt.align,component:Ve,prefixCls:Ye,key:ft[At]},kt,{additionalProps:Tt,rowType:"header"}))}))}ee.displayName="HeaderRow";var F=ee;function G(ue){var Me=[];function Pe(Fe,ke){var He=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Me[He]=Me[He]||[];var Ye=ke,ze=Fe.filter(Boolean).map(function(rt){var ft={key:rt.key,className:rt.className||"",children:rt.title,column:rt,colStart:Ye},mt=1,At=rt.children;return At&&At.length>0&&(mt=Pe(At,Ye,He+1).reduce(function(zt,kt){return zt+kt},0),ft.hasSubColumns=!0),"colSpan"in rt&&(mt=rt.colSpan),"rowSpan"in rt&&(ft.rowSpan=rt.rowSpan),ft.colSpan=mt,ft.colEnd=ft.colStart+mt-1,Me[He].push(ft),Ye+=mt,mt});return ze}Pe(ue,0);for(var ve=Me.length,Je=function(ke){Me[ke].forEach(function(He){!("rowSpan"in He)&&!He.hasSubColumns&&(He.rowSpan=ve-ke)})},Ve=0;Ve=0;ke-=1){var He=Me[ke],Ye=Pe&&Pe[ke],ze=Ye&&Ye[$.a];(He||ze||Fe)&&(Je.unshift(m.createElement("col",Object.assign({key:ke,style:{width:He,minWidth:He}},ze))),Fe=!0)}return m.createElement("colgroup",null,Je)}var L=f;function oe(ue,Me){return Object(m.useMemo)(function(){for(var Pe=[],ve=0;ve1?fe-1:0),Le=1;Le=rt&&(Dt=rt-ft),Fe({scrollLeft:Dt/rt*(ze+2)}),Ot.current.x=jt.pageX},Ct=function(){var jt=Object(Te.b)(Ve.current).top,tt=jt+Ve.current.offsetHeight,Ze=document.documentElement.scrollTop+window.innerHeight;tt-Object(x.a)()<=Ze||jt>=Ze-ke?Tt(function(st){return Object(N.a)(Object(N.a)({},st),{},{isHiddenScrollBar:!0})}):Tt(function(st){return Object(N.a)(Object(N.a)({},st),{},{isHiddenScrollBar:!1})})},gt=function(jt){Tt(function(tt){return Object(N.a)(Object(N.a)({},tt),{},{scrollLeft:jt/ze*rt||0})})};return m.useImperativeHandle(Pe,function(){return{setScrollLeft:gt}}),m.useEffect(function(){var Rt=Object(Oe.a)(document.body,"mouseup",gn,!1),jt=Object(Oe.a)(document.body,"mousemove",Bt,!1);return Ct(),function(){Rt.remove(),jt.remove()}},[ft,Xe]),m.useEffect(function(){var Rt=Object(Oe.a)(window,"scroll",Ct,!1),jt=Object(Oe.a)(window,"resize",Ct,!1);return function(){Rt.remove(),jt.remove()}},[]),m.useEffect(function(){kt.isHiddenScrollBar||Tt(function(Rt){var jt,tt;return Object(N.a)(Object(N.a)({},Rt),{},{scrollLeft:Ve.current.scrollLeft/((jt=Ve.current)===null||jt===void 0?void 0:jt.scrollWidth)*((tt=Ve.current)===null||tt===void 0?void 0:tt.clientWidth)})})},[kt.isHiddenScrollBar]),ze<=rt||!ft||kt.isHiddenScrollBar?null:m.createElement("div",{style:{height:Object(x.a)(),width:rt,bottom:ke},className:"".concat(Ye,"-sticky-scroll")},m.createElement("div",{onMouseDown:ht,ref:mt,className:ne()("".concat(Ye,"-sticky-scroll-bar"),Object(Q.a)({},"".concat(Ye,"-sticky-scroll-bar-active"),Xe)),style:{width:"".concat(ft,"px"),transform:"translate3d(".concat(kt.scrollLeft,"px, 0, 0)")}}))},et=m.forwardRef(Ke);function Ge(ue,Me){return m.useMemo(function(){var Pe=!!ue;return{isSticky:Pe,stickyClassName:Pe?"".concat(Me,"-sticky-header"):"",offsetHeader:Object(Z.a)(ue)==="object"&&ue.offsetHeader||0,offsetScroll:Object(Z.a)(ue)==="object"&&ue.offsetScroll||0}},[ue,Me])}var Lt=[],St={},It="rc-table-internal-hook",lt=m.memo(function(ue){var Me=ue.children;return Me},function(ue,Me){return S()(ue.props,Me.props)?ue.pingLeft!==Me.pingLeft||ue.pingRight!==Me.pingRight:!1});function Mt(ue){var Me,Pe=ue.prefixCls,ve=ue.className,Je=ue.rowClassName,Ve=ue.style,Fe=ue.data,ke=ue.rowKey,He=ue.scroll,Ye=ue.tableLayout,ze=ue.direction,rt=ue.title,ft=ue.footer,mt=ue.summary,At=ue.id,zt=ue.showHeader,kt=ue.components,Tt=ue.emptyText,Ot=ue.onRow,dn=ue.onHeaderRow,ln=ue.internalHooks,Xe=ue.transformColumns,Ft=ue.internalRefs,gn=ue.sticky,ht=Fe||Lt,Bt=!!ht.length,Ct=m.useState(0),gt=Object(l.a)(Ct,2),Rt=gt[0],jt=gt[1];m.useEffect(function(){jt(Object(x.a)())});var tt=m.useMemo(function(){return Object(K.c)(kt,{})},[kt]),Ze=m.useCallback(function(pt,_t){return Object(K.b)(tt,pt)||_t},[tt]),st=m.useMemo(function(){return typeof ke=="function"?ke:function(pt){var _t=pt&&pt[ke];return _t}},[ke]),Dt=Object($.c)(ue),un=Dt.expandIcon,en=Dt.expandedRowKeys,bn=Dt.defaultExpandedRowKeys,Sn=Dt.defaultExpandAllRows,Ln=Dt.expandedRowRender,In=Dt.onExpand,Mn=Dt.onExpandedRowsChange,Zn=Dt.expandRowByClick,_n=Dt.rowExpandable,wn=Dt.expandIconColumnIndex,kn=Dt.expandedRowClassName,ut=Dt.childrenColumnName,se=Dt.indentSize,Ne=un||U,qe=ut||"children",at=m.useMemo(function(){return Ln?"row":ue.expandable&&ln===It&&ue.expandable.__PARENT_RENDER_ICON__||ht.some(function(pt){return pt&&Object(Z.a)(pt)==="object"&&pt[qe]})?"nest":!1},[!!Ln,ht]),vt=m.useState(function(){return bn||(Sn?ie(ht,st,qe):[])}),ot=Object(l.a)(vt,2),k=ot[0],Ee=ot[1],fe=m.useMemo(function(){return new Set(en||k||[])},[en,k]),ge=m.useCallback(function(pt){var _t=st(pt,ht.indexOf(pt)),Qt,hn=fe.has(_t);hn?(fe.delete(_t),Qt=Object(_e.a)(fe)):Qt=[].concat(Object(_e.a)(fe),[_t]),Ee(Qt),In&&In(!hn,pt),Mn&&Mn(Qt)},[st,fe,ht,In,Mn]),Le=m.useState(0),nt=Object(l.a)(Le,2),pe=nt[0],Ce=nt[1],We=Object(je.b)(Object(N.a)(Object(N.a)(Object(N.a)({},ue),Dt),{},{expandable:!!Ln,expandedKeys:fe,getRowKey:st,onTriggerExpand:ge,expandIcon:Ne,expandIconColumnIndex:wn,direction:ze}),ln===It?Xe:null),Xt=Object(l.a)(We,2),an=Xt[0],Yt=Xt[1],Cn=m.useMemo(function(){return{columns:an,flattenColumns:Yt}},[an,Yt]),tn=m.useRef(),Et=m.useRef(),Nt=m.useRef(),Tn=m.useState(!1),da=Object(l.a)(Tn,2),Jn=da[0],Fa=da[1],ra=m.useState(!1),En=Object(l.a)(ra,2),ma=En[0],Qa=En[1],Ba=he(new Map),Ka=Object(l.a)(Ba,2),Ya=Ka[0],Za=Ka[1],qn=Object(K.a)(Yt),ga=qn.map(function(pt){return Ya.get(pt)}),Wa=m.useMemo(function(){return ga},[ga.join("_")]),wa=I(Wa,Yt.length,ze),Hn=He&&Object(K.d)(He.y),Xn=He&&Object(K.d)(He.x),Qn=Xn&&Yt.some(function(pt){var _t=pt.fixed;return _t}),Aa=m.useRef(),ha=Ge(gn,Pe),Ea=ha.isSticky,Da=ha.offsetHeader,qa=ha.offsetScroll,Ta=ha.stickyClassName,Bn,ba,Gn;Hn&&(ba={overflowY:"scroll",maxHeight:He.y}),Xn&&(Bn={overflowX:"auto"},Hn||(ba={overflowY:"hidden"}),Gn={width:He.x===!0?"auto":He.x,minWidth:"100%"});var fa=m.useCallback(function(pt,_t){Za(function(Qt){var hn=new Map(Qt);return hn.set(pt,_t),hn})},[]),xa=me(null),Ha=Object(l.a)(xa,2),Na=Ha[0],ya=Ha[1];function Oa(pt,_t){if(!_t)return;typeof _t=="function"?_t(pt):_t.scrollLeft!==pt&&(_t.scrollLeft=pt)}var ia=function(_t){var Qt=_t.currentTarget,hn=_t.scrollLeft,cn=typeof hn=="number"?hn:Qt.scrollLeft,xn=Qt||St;if(!ya()||ya()===xn){var ea;Na(xn),Oa(cn,Et.current),Oa(cn,Nt.current),Oa(cn,(ea=Aa.current)===null||ea===void 0?void 0:ea.setScrollLeft)}if(Qt){var jn=Qt.scrollWidth,ja=Qt.clientWidth;Fa(cn>0),Qa(cn0?[].concat(Object(N.a)(C),Object(N.a)(d(j).map(function(K){return Object(_e.a)({fixed:h},K)}))):[].concat(Object(N.a)(C),[Object(_e.a)(Object(_e.a)({},i),{},{fixed:h})])},[])}function y(u){for(var C=!0,i=0;i=0;j-=1){var K=u[j];if(h&&K.fixed!=="right")h=!1;else if(!h&&K.fixed==="right"){Object(ce.a)(!1,"Index ".concat(j+1," of `columns` missing `fixed='right'` prop."));break}}}function x(u){return u.map(function(C){var i=C.fixed,n=Object(Z.a)(C,["fixed"]),h=i;return i==="left"?h="right":i==="right"&&(h="left"),Object(_e.a)({fixed:h},n)})}function g(u,C){var i=u.prefixCls,n=u.columns,h=u.children,j=u.expandable,K=u.expandedKeys,ee=u.getRowKey,F=u.onTriggerExpand,G=u.expandIcon,te=u.rowExpandable,w=u.expandIconColumnIndex,$=u.direction,f=u.expandRowByClick,L=l.useMemo(function(){return n||S(h)},[n,h]),oe=l.useMemo(function(){if(j){var b,P=w||0,r=L[P],s=(b={},Object(Q.a)(b,M.a,{className:"".concat(i,"-expand-icon-col")}),Object(Q.a)(b,"title",""),Object(Q.a)(b,"fixed",r?r.fixed:null),Object(Q.a)(b,"className","".concat(i,"-row-expand-icon-cell")),Object(Q.a)(b,"render",function(p,B,le){var de=ee(B,le),Ae=K.has(de),be=te?te(B):!0,je=G({prefixCls:i,expanded:Ae,expandable:be,record:B,onExpand:F});return f?l.createElement("span",{onClick:function(xe){return xe.stopPropagation()}},je):je}),b),e=L.slice();return P>=0&&e.splice(P,0,s),e}return L},[j,L,ee,K,G,$]),X=l.useMemo(function(){var b=oe;return C&&(b=C(b)),b.length||(b=[{render:function(){return null}}]),b},[C,oe,$]),_=l.useMemo(function(){return $==="rtl"?x(d(X)):d(X)},[X,$]);return[X,_]}z.b=g},"y0+3":function(dt,z,t){"use strict";t.d(z,"a",function(){return d}),t.d(z,"b",function(){return x});var Q=/margin|padding|width|height|max|min|offset/,N={left:!0,top:!0},_e={cssFloat:1,styleFloat:1,float:1};function Z(g){return g.nodeType===1?g.ownerDocument.defaultView.getComputedStyle(g,null):{}}function l(g,u,C){if(u=u.toLowerCase(),C==="auto"){if(u==="height")return g.offsetHeight;if(u==="width")return g.offsetWidth}return u in N||(N[u]=Q.test(u)),N[u]?parseFloat(C)||0:C}function m(g,u){var C=arguments.length,i=Z(g);return u=_e[u]?"cssFloat"in g.style?"cssFloat":"styleFloat":u,C===1?i:l(g,u,i[u]||g.style[u])}function ce(g,u,C){var i=arguments.length;if(u=_e[u]?"cssFloat"in g.style?"cssFloat":"styleFloat":u,i===3)return typeof C=="number"&&Q.test(u)&&(C="".concat(C,"px")),g.style[u]=C,C;for(var n in u)u.hasOwnProperty(n)&&ce(g,n,u[n]);return Z(g)}function ne(g){return g===document.body?document.documentElement.clientWidth:g.offsetWidth}function M(g){return g===document.body?window.innerHeight||document.documentElement.clientHeight:g.offsetHeight}function S(){var g=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),u=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:g,height:u}}function d(){var g=document.documentElement.clientWidth,u=window.innerHeight||document.documentElement.clientHeight;return{width:g,height:u}}function y(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function x(g){var u=g.getBoundingClientRect(),C=document.documentElement;return{left:u.left+(window.pageXOffset||C.scrollLeft)-(C.clientLeft||document.body.clientLeft||0),top:u.top+(window.pageYOffset||C.scrollTop)-(C.clientTop||document.body.clientTop||0)}}},zmGA:function(dt,z){dt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAAXNSR0IArs4c6QAAEhlJREFUeF7tnXlw3dV1xz/3/d6q1ZJtvFtYliyBWYxlsIxtFpewhrhAITDBBMeQUgY6De0QhqRJSyctYTqEQJrpTEloTTPQLAUKYUkdkwAG7HrBNsYWkmXZlm0t1r6/936/27nvSUJ66++993u/pzjcfzSj373nnHu+727nnnOuYIqXA8dl6cgwVVJQJSVVQlAFzJJQKKBQyvBf1Q0JfULQF/oLfUCrlNQJQZ2Q1Hm81C1dIDqncpfFVBNu9zE5VwZZh846BFdKydlWyigETUjeRmOrcLJ1+UJx0kr6mdKaEoDsbZRVQYO7JNyCDI0A+4oaPfArp4PNF5aLOvsYx+aUM0AONsvpg8PcISUbgEtyrYhR/juE4Pk8Ly+cM1905EIm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idlUz6Xhr57H5gsW8/jqSnHYDrZZHyGRnfiwXs7f18jDh05xz7CfiYFrdvTXFA+3i6HquTy7rJwnaitFdMZlU1TSq2Q7IGNibm+W0480cccnzdx1ute+N0viqUkpYm4p/1c5m81lZ/PCyvnC1lzGtk9ZiX4vb++T1cc62dB8mltauqlS/ld2FBXXOLOIuvkz+VXVXDavqRZ1dvBNxCNnIySeUCq87mgL65rbWdfSzbqeQcpMWC5M6VE5TJfkc3ROCVvnlbJ1QRFbl1eLGP4rpshlpdKUAySylyqOvr2Lqq4BqroHqeoZomrEz2x/kILhIIX+IIUjAULXQR4nfU4XfV6NPreTfp+HlmIfddPyqCvJp25mCXVLF4jo7MlZUW16RP8ff48Qd2Sa15cAAAAASUVORK5CYII="}}]); +`),insertTextRules:f.languages.CompletionItemInsertTextRule.InsertAsSnippet}],e=g(f,P,r,_,s);return{suggestions:e}}})},C="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",i=t("fjLI"),n=t("LvDl"),h=t("+ua5");function j(f){return/^\d+$/.test(f)?"".concat(f,"px"):f}function K(){}var ee=!1,F={"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",Scala:"scale"};function G(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],L=f;if(Array.isArray(f)){for(var oe=0;oe0||un.target.offsetWidth>0)&&Pe.current.instance.layout()}}catch(en){st.e(en)}finally{st.f()}}),tt.observe(Me.current)),tt}function mt(){l.b.warn({content:decodeURIComponent(C),key:"monaco-editor-tip"})}var At=function(){var Ze=Pe.current.instance;if(E!=null&&Ze&&ze){var st=Ze.getModel();st&&E!==st.getValue()&&(ee=!0,st.setValue(E),Ze.layout(),ee=!1)}};Object(d.useEffect)(function(){try{var tt,Ze=Pe.current.instance;Je.current&&clearTimeout(Je.current),Je.current=setTimeout(function(){At()},500),Ze==null||((tt=Ze.updateOptions)===null||tt===void 0)||tt.call(Ze,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(E.split(/\r\n|\r|\n/g).length))+3,5)})}catch(st){debugger}},[E,ze,Pe.current]),Object(d.useEffect)(function(){try{if(Lt&&Pe.current&&Pe.current.instance){var tt=Pe.current.instance;tt.changeViewZones(function(st){var Dt=document.createElement("div");Dt.style.padding="10px 20px",Dt.style.width="calc(100% - 20px)",Dt.className="my-error-line-wrp",Dt.innerHTML=It,st.addZone({afterLineNumber:Lt||11,heightInLines:3,domNode:Dt})});var Ze={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}};tt.addOverlayWidget(Ze),tt.revealPositionInCenter({lineNumber:20,column:1})}}catch(st){debugger}},[Lt,Pe.current,ze]),Object(d.useEffect)(function(){var tt;if((tt=Pe.current)!==null&&tt!==void 0&&tt.instance&&ze&&wt){var Ze=Pe.current.instance,st=Ze.getModel();if(!st)return;var Dt=function(){var se=[],Ne=[],qe=st.getAllDecorations(),at=Object(m.a)(qe),vt;try{for(at.s();!(vt=at.n()).done;){var ot=vt.value;if(ot.options.className==="highlighted-line"){var k;se.push(ot==null||((k=ot.range)===null||k===void 0)?void 0:k.startLineNumber),Ne.push(ot==null?void 0:ot.id)}}}catch(fe){at.e(fe)}finally{at.f()}st.deltaDecorations(Ne,[]);var be=st.getLineCount();!!lt&<<=be&&(Ze.deltaDecorations([],[{range:new te.Range(lt,1,lt,st.getLineMaxColumn(lt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Ze.revealLineInCenter(lt))};Dt();var un=function(){var se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Ne=[],qe=[],at=st.getAllDecorations(),vt=Object(m.a)(at),ot;try{for(vt.s();!(ot=vt.n()).done;){var k=ot.value;if(k.options.linesDecorationsClassName==="breakpoints"){var be;Ne.push(k==null||((be=k.range)===null||be===void 0)?void 0:be.startLineNumber),qe.push(k==null?void 0:k.id)}}}catch(fe){vt.e(fe)}finally{vt.f()}if(se)return{lines:Ne,ids:qe};Oe(Ne)},en=function(){var ut=Object(_e.a)(S.a.mark(function se(Ne){var qe;return S.a.wrap(function(vt){for(;;)switch(vt.prev=vt.next){case 0:return qe={range:new te.Range(Ne,1,Ne,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}},vt.next=3,st.deltaDecorations([],[qe]);case 3:un();case 4:case"end":return vt.stop()}},se)}));return function(Ne){return ut.apply(this,arguments)}}(),En=function(){var ut=Object(_e.a)(S.a.mark(function se(Ne){var qe,at,vt,ot,k;return S.a.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:qe=[],at=Ze.getLineDecorations(Ne),vt=Object(m.a)(at);try{for(vt.s();!(ot=vt.n()).done;)k=ot.value,k.options.linesDecorationsClassName==="breakpoints"&&qe.push(k.id)}catch(ge){vt.e(ge)}finally{vt.f()}return fe.next=6,st.deltaDecorations(qe,[]);case 6:un();case 7:case"end":return fe.stop()}},se)}));return function(Ne){return ut.apply(this,arguments)}}(),Sn=function(se){var Ne=Ze.getLineDecorations(se),qe=Object(m.a)(Ne),at;try{for(qe.s();!(at=qe.n()).done;){var vt=at.value;if(vt.options.linesDecorationsClassName==="breakpoints")return!0}}catch(ot){qe.e(ot)}finally{qe.f()}return!1};if(!Object(n.isEqual)(Ke,un(!0).lines)){st.deltaDecorations(un(!0).ids,[]);var Ln=Ke.map(function(ut){return{range:new te.Range(ut,1,ut,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}}});st.deltaDecorations([],Ln)}var In=Ze.onDidChangeModelContent(function(ut){var se=Ze.getPosition();if(se){var Ne=se.lineNumber;st.getLineContent(Ne).trim()===""?En(Ne):Sn(Ne)&&(En(Ne),en(Ne))}}),Mn=Ze.onMouseDown(function(ut){var se,Ne,qe;if(ut.target.detail&&(se=ut.target)!==null&&se!==void 0&&(Ne=se.element)!==null&&Ne!==void 0&&(qe=Ne.className)!==null&&qe!==void 0&&qe.includes("line-numbers")){var at=ut.target.position.lineNumber;if(st.getLineContent(at).trim()==="")return;Sn(at)?En(at):en(at)}}),Zn=function(se){var Ne={range:new te.Range(se,1,se,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Ve.current=Ze.deltaDecorations(Ve.current,[Ne])},_n=function(){Ve.current=Ze.deltaDecorations(Ve.current,[])},wn=Ze.onMouseMove(function(ut){var se,Ne,qe;if(_n(),ut.target.detail&&(se=ut.target)!==null&&se!==void 0&&(Ne=se.element)!==null&&Ne!==void 0&&(qe=Ne.className)!==null&&qe!==void 0&&qe.includes("line-numbers")){var at=ut.target.position.lineNumber;if(st.getLineContent(at).trim()==="")return;Zn(at)}}),kn=Ze.onMouseLeave(function(){_n()});return function(){In.dispose(),Mn.dispose(),wn.dispose(),kn.dispose()}}},[Pe.current,ze,Ke,lt,wt]);function zt(){var tt=Pe.current.instance;if(tt){var Ze=tt.getSelection(),st=Pe.current.pastePos||{},Dt=new te.Range(st.startLineNumber||Ze.endLineNumber,st.startColumn||Ze.endColumn,st.endLineNumber||Ze.endLineNumber,st.endColumn||Ze.endColumn);setTimeout(function(){tt.executeEdits("",[{range:Dt,text:""}])},300)}}function kt(tt){(window.navigator.platform.match("Mac")?tt.metaKey:tt.ctrlKey)&&tt.keyCode==83&&(tt.preventDefault(),je())}var Tt=function(){if(xe&&Pe.current.instance){var Ze=Pe.current.instance.getContentHeight();Rt(Ze<_?_:Ze)}else Rt(_)};function Ot(tt){var Ze=document.createEvent("MouseEvents");Ze.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),tt.dispatchEvent(Ze)}var dn=function(Ze){var st=Ze.keyCode,Dt=Ze.ctrlKey,un=Ze.metaKey,en=Ze.target,En=Ze.type;return(En==="paste"||(st===67||st===86)&&(un||Dt))&&en.nodeName==="TEXTAREA"&&(mt(),Ze.preventDefault()),!1};function ln(tt,Ze){var st=window.URL||window.webkitURL||window,Dt=new Blob([Ze]),un=document.createElementNS("http://www.w3.org/1999/xhtml","a");un.href=st.createObjectURL(Dt),un.download=tt,Ot(un)}Object(d.useEffect)(function(){Tt()},[Tt]),Object(d.useEffect)(function(){Me.current&&!ze&&t.e(27).then(t.t.bind(null,"M/lh",7)).then(function(tt){try{te=tt,Pe.current.instance=te.editor.create(Me.current,{value:E,language:G(r),theme:Ae,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},le);var Ze=Pe.current.instance,st=i.c._menuItems,Dt=Object(N.a)(st).find(function(en){return en[0]._debugName=="EditorContext"});if(ae(Ze,te),setTimeout(function(){Tt(),Pe.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:function(){ln(Ge||"educoder.txt",Ze.getValue())}}),Ze.getDomNode().addEventListener("input",function(){ve.current.autoFormat&&Ze.getAction("editor.action.formatDocument").run()})},500),Pe.current.subscription=Ze.onDidChangeModelContent(function(en){debugger;Fe.current?clearTimeout(ke.current):(Tt(),I(Ze.getValue(),en)),ke.current=setTimeout(function(){Fe.current=!1},500)}),window.Monaco||u(te,G(r)),me&&(Me.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",dn),window.removeEventListener("paste",dn),window.addEventListener("keydown",dn),window.addEventListener("paste",dn)),window.Monaco=te,Ee&&Ze.onDidBlurEditorWidget(function(){Ee(Ze.getValue())}),U&&Ze.onDidFocusEditorText(function(){U(Ze.getValue())}),me)try{window.addEventListener("paste",zt)}catch(en){}var un=ft();return rt(!0),function(){var en=Pe.current.instance;en.dispose();var En=en.getModel();En&&En.dispose(),Pe.current.subscription&&Pe.current.subscription.dispose(),me&&window.removeEventListener("paste",zt),un.unobserve(Me.current)}}catch(en){debugger}})},[]),Object(d.useEffect)(function(){var tt=Pe.current.instance;if(tt&&ze)return document.addEventListener("keydown",kt,!1),function(){document.removeEventListener("keydown",kt)}},[je,ze]),Object(d.useEffect)(function(){var tt=Pe.current.instance;if(tt&&ze){var Ze=G(r);te.editor.setModelLanguage(tt.getModel(),Ze)}},[r,ze]),Object(d.useEffect)(function(){var tt=Pe.current.instance;tt&&ze&&te.editor.setTheme(Ae)},[Ae,ze]),Object(d.useEffect)(function(){var tt=Pe.current.instance;ve.current=p,tt&&ze&&(tt.updateOptions(Object(Q.a)({},p)),setTimeout(function(){tt.getModel().updateOptions(Object(Q.a)({},p))},200))},[JSON.stringify(p),ze]),Object(d.useEffect)(function(){var tt=Pe.current.instance;tt&&ze&&tt.layout()},[oe,_,ze]);var Xe=Object(d.useState)(j(oe)),Ft=Object(ce.a)(Xe,2),gn=Ft[0],ht=Ft[1],Bt=Object(d.useState)(j(_)),Ct=Object(ce.a)(Bt,2),gt=Ct[0],Rt=Ct[1],jt=Object(Q.a)(Object(Q.a)({},e),{},{width:gn,height:gt});return y.a.createElement("div",{className:"my-monaco-editor",ref:Me,style:jt})};function $(f){var L=f.width,oe=L===void 0?"100%":L,X=f.height,_=X===void 0?"100%":X,E=f.original,P=f.modified,r=f.language,s=f.options,e=s===void 0?{}:s,H=Object(d.useRef)(),p=Object(d.useState)(null),B=Object(ce.a)(p,2),le=B[0],de=B[1];function Ae(xe){var he;return H.current&&(he=new x.default(function(me){var c=Object(m.a)(me),I;try{for(c.s();!(I=c.n()).done;){var O=I.value;(O.target.offsetHeight>0||O.target.offsetWidth>0)&&xe.layout()}}catch(ae){c.e(ae)}finally{c.f()}}),he.observe(H.current)),he}Object(d.useEffect)(function(){return H.current&&t.e(27).then(t.t.bind(null,"M/lh",7)).then(function(xe){te=xe;var he=te.editor.createDiffEditor(H.current,Object(Q.a)(Object(Q.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},e),{},{wordWrap:!0}));de(he);var me=Ae(he);return function(){he.dispose();var c=he.getModel();c&&c.dispose(),me.unobserve(H.current)}}),function(){window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}},[]),Object(d.useEffect)(function(){le&&le.setModel({original:te.editor.createModel(E,r),modified:te.editor.createModel(P,r)})},[E,P,r,le]);var Ee=j(oe),je=j(_),Se={width:Ee,height:je};return y.a.createElement("div",{className:"my-diff-editor",ref:H,style:Se})}},Zss7:function(dt,z,t){var Q;(function(N){var _e=/^\s+/,Z=/\s+$/,l=0,m=N.round,ce=N.min,ne=N.max,M=N.random;function S(c,I){if(c=c||"",I=I||{},c instanceof S)return c;if(!(this instanceof S))return new S(c,I);var O=d(c);this._originalInput=c,this._r=O.r,this._g=O.g,this._b=O.b,this._a=O.a,this._roundA=m(100*this._a)/100,this._format=I.format||O.format,this._gradientType=I.gradientType,this._r<1&&(this._r=m(this._r)),this._g<1&&(this._g=m(this._g)),this._b<1&&(this._b=m(this._b)),this._ok=O.ok,this._tc_id=l++}S.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var c=this.toRgb();return(c.r*299+c.g*587+c.b*114)/1e3},getLuminance:function(){var c=this.toRgb(),I,O,ae,v,U,ie;return I=c.r/255,O=c.g/255,ae=c.b/255,I<=.03928?v=I/12.92:v=N.pow((I+.055)/1.055,2.4),O<=.03928?U=O/12.92:U=N.pow((O+.055)/1.055,2.4),ae<=.03928?ie=ae/12.92:ie=N.pow((ae+.055)/1.055,2.4),.2126*v+.7152*U+.0722*ie},setAlpha:function(c){return this._a=s(c),this._roundA=m(100*this._a)/100,this},toHsv:function(){var c=u(this._r,this._g,this._b);return{h:c.h*360,s:c.s,v:c.v,a:this._a}},toHsvString:function(){var c=u(this._r,this._g,this._b),I=m(c.h*360),O=m(c.s*100),ae=m(c.v*100);return this._a==1?"hsv("+I+", "+O+"%, "+ae+"%)":"hsva("+I+", "+O+"%, "+ae+"%, "+this._roundA+")"},toHsl:function(){var c=x(this._r,this._g,this._b);return{h:c.h*360,s:c.s,l:c.l,a:this._a}},toHslString:function(){var c=x(this._r,this._g,this._b),I=m(c.h*360),O=m(c.s*100),ae=m(c.l*100);return this._a==1?"hsl("+I+", "+O+"%, "+ae+"%)":"hsla("+I+", "+O+"%, "+ae+"%, "+this._roundA+")"},toHex:function(c){return i(this._r,this._g,this._b,c)},toHexString:function(c){return"#"+this.toHex(c)},toHex8:function(c){return n(this._r,this._g,this._b,this._a,c)},toHex8String:function(c){return"#"+this.toHex8(c)},toRgb:function(){return{r:m(this._r),g:m(this._g),b:m(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+m(this._r)+", "+m(this._g)+", "+m(this._b)+")":"rgba("+m(this._r)+", "+m(this._g)+", "+m(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:m(e(this._r,255)*100)+"%",g:m(e(this._g,255)*100)+"%",b:m(e(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+m(e(this._r,255)*100)+"%, "+m(e(this._g,255)*100)+"%, "+m(e(this._b,255)*100)+"%)":"rgba("+m(e(this._r,255)*100)+"%, "+m(e(this._g,255)*100)+"%, "+m(e(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:P[i(this._r,this._g,this._b,!0)]||!1},toFilter:function(c){var I="#"+h(this._r,this._g,this._b,this._a),O=I,ae=this._gradientType?"GradientType = 1, ":"";if(c){var v=S(c);O="#"+h(v._r,v._g,v._b,v._a)}return"progid:DXImageTransform.Microsoft.gradient("+ae+"startColorstr="+I+",endColorstr="+O+")"},toString:function(c){var I=!!c;c=c||this._format;var O=!1,ae=this._a<1&&this._a>=0,v=!I&&ae&&(c==="hex"||c==="hex6"||c==="hex3"||c==="hex4"||c==="hex8"||c==="name");return v?c==="name"&&this._a===0?this.toName():this.toRgbString():(c==="rgb"&&(O=this.toRgbString()),c==="prgb"&&(O=this.toPercentageRgbString()),(c==="hex"||c==="hex6")&&(O=this.toHexString()),c==="hex3"&&(O=this.toHexString(!0)),c==="hex4"&&(O=this.toHex8String(!0)),c==="hex8"&&(O=this.toHex8String()),c==="name"&&(O=this.toName()),c==="hsl"&&(O=this.toHslString()),c==="hsv"&&(O=this.toHsvString()),O||this.toHexString())},clone:function(){return S(this.toString())},_applyModification:function(c,I){var O=c.apply(null,[this].concat([].slice.call(I)));return this._r=O._r,this._g=O._g,this._b=O._b,this.setAlpha(O._a),this},lighten:function(){return this._applyModification(F,arguments)},brighten:function(){return this._applyModification(G,arguments)},darken:function(){return this._applyModification(te,arguments)},desaturate:function(){return this._applyModification(j,arguments)},saturate:function(){return this._applyModification(K,arguments)},greyscale:function(){return this._applyModification(ee,arguments)},spin:function(){return this._applyModification(w,arguments)},_applyCombination:function(c,I){return c.apply(null,[this].concat([].slice.call(I)))},analogous:function(){return this._applyCombination(X,arguments)},complement:function(){return this._applyCombination($,arguments)},monochromatic:function(){return this._applyCombination(_,arguments)},splitcomplement:function(){return this._applyCombination(oe,arguments)},triad:function(){return this._applyCombination(f,arguments)},tetrad:function(){return this._applyCombination(L,arguments)}},S.fromRatio=function(c,I){if(typeof c=="object"){var O={};for(var ae in c)c.hasOwnProperty(ae)&&(ae==="a"?O[ae]=c[ae]:O[ae]=Ae(c[ae]));c=O}return S(c,I)};function d(c){var I={r:0,g:0,b:0},O=1,ae=null,v=null,U=null,ie=!1,Oe=!1;return typeof c=="string"&&(c=he(c)),typeof c=="object"&&(xe(c.r)&&xe(c.g)&&xe(c.b)?(I=y(c.r,c.g,c.b),ie=!0,Oe=String(c.r).substr(-1)==="%"?"prgb":"rgb"):xe(c.h)&&xe(c.s)&&xe(c.v)?(ae=Ae(c.s),v=Ae(c.v),I=C(c.h,ae,v),ie=!0,Oe="hsv"):xe(c.h)&&xe(c.s)&&xe(c.l)&&(ae=Ae(c.s),U=Ae(c.l),I=g(c.h,ae,U),ie=!0,Oe="hsl"),c.hasOwnProperty("a")&&(O=c.a)),O=s(O),{ok:ie,format:c.format||Oe,r:ce(255,ne(I.r,0)),g:ce(255,ne(I.g,0)),b:ce(255,ne(I.b,0)),a:O}}function y(c,I,O){return{r:e(c,255)*255,g:e(I,255)*255,b:e(O,255)*255}}function x(c,I,O){c=e(c,255),I=e(I,255),O=e(O,255);var ae=ne(c,I,O),v=ce(c,I,O),U,ie,Oe=(ae+v)/2;if(ae==v)U=ie=0;else{var Te=ae-v;ie=Oe>.5?Te/(2-ae-v):Te/(ae+v);switch(ae){case c:U=(I-O)/Te+(I1&&(Ge-=1),Ge<1/6?Ke+(et-Ke)*6*Ge:Ge<1/2?et:Ge<2/3?Ke+(et-Ke)*(2/3-Ge)*6:Ke}if(I===0)ae=v=U=O;else{var Oe=O<.5?O*(1+I):O+I-O*I,Te=2*O-Oe;ae=ie(Te,Oe,c+1/3),v=ie(Te,Oe,c),U=ie(Te,Oe,c-1/3)}return{r:ae*255,g:v*255,b:U*255}}function u(c,I,O){c=e(c,255),I=e(I,255),O=e(O,255);var ae=ne(c,I,O),v=ce(c,I,O),U,ie,Oe=ae,Te=ae-v;if(ie=ae===0?0:Te/ae,ae==v)U=0;else{switch(ae){case c:U=(I-O)/Te+(I>1)+720)%360;--I;)ae.h=(ae.h+v)%360,U.push(S(ae));return U}function _(c,I){I=I||6;for(var O=S(c).toHsv(),ae=O.h,v=O.s,U=O.v,ie=[],Oe=1/I;I--;)ie.push(S({h:ae,s:v,v:U})),U=(U+Oe)%1;return ie}S.mix=function(c,I,O){O=O===0?0:O||50;var ae=S(c).toRgb(),v=S(I).toRgb(),U=O/100,ie={r:(v.r-ae.r)*U+ae.r,g:(v.g-ae.g)*U+ae.g,b:(v.b-ae.b)*U+ae.b,a:(v.a-ae.a)*U+ae.a};return S(ie)},S.readability=function(c,I){var O=S(c),ae=S(I);return(N.max(O.getLuminance(),ae.getLuminance())+.05)/(N.min(O.getLuminance(),ae.getLuminance())+.05)},S.isReadable=function(c,I,O){var ae=S.readability(c,I),v,U;U=!1,v=me(O);switch(v.level+v.size){case"AAsmall":case"AAAlarge":U=ae>=4.5;break;case"AAlarge":U=ae>=3;break;case"AAAsmall":U=ae>=7;break}return U},S.mostReadable=function(c,I,O){var ae=null,v=0,U,ie,Oe,Te;O=O||{},ie=O.includeFallbackColors,Oe=O.level,Te=O.size;for(var Ke=0;Kev&&(v=U,ae=S(I[Ke]));return S.isReadable(c,ae,{level:Oe,size:Te})||!ie?ae:(O.includeFallbackColors=!1,S.mostReadable(c,["#fff","#000"],O))};var E=S.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},P=S.hexNames=r(E);function r(c){var I={};for(var O in c)c.hasOwnProperty(O)&&(I[c[O]]=O);return I}function s(c){return c=parseFloat(c),(isNaN(c)||c<0||c>1)&&(c=1),c}function e(c,I){B(c)&&(c="100%");var O=le(c);return c=ce(I,ne(0,parseFloat(c))),O&&(c=parseInt(c*I,10)/100),N.abs(c-I)<1e-6?1:c%I/parseFloat(I)}function H(c){return ce(1,ne(0,c))}function p(c){return parseInt(c,16)}function B(c){return typeof c=="string"&&c.indexOf(".")!=-1&&parseFloat(c)===1}function le(c){return typeof c=="string"&&c.indexOf("%")!=-1}function de(c){return c.length==1?"0"+c:""+c}function Ae(c){return c<=1&&(c=c*100+"%"),c}function Ee(c){return N.round(parseFloat(c)*255).toString(16)}function je(c){return p(c)/255}var Se=function(){var c="[-\\+]?\\d+%?",I="[-\\+]?\\d*\\.\\d+%?",O="(?:"+I+")|(?:"+c+")",ae="[\\s|\\(]+("+O+")[,|\\s]+("+O+")[,|\\s]+("+O+")\\s*\\)?",v="[\\s|\\(]+("+O+")[,|\\s]+("+O+")[,|\\s]+("+O+")[,|\\s]+("+O+")\\s*\\)?";return{CSS_UNIT:new RegExp(O),rgb:new RegExp("rgb"+ae),rgba:new RegExp("rgba"+v),hsl:new RegExp("hsl"+ae),hsla:new RegExp("hsla"+v),hsv:new RegExp("hsv"+ae),hsva:new RegExp("hsva"+v),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function xe(c){return!!Se.CSS_UNIT.exec(c)}function he(c){c=c.replace(_e,"").replace(Z,"").toLowerCase();var I=!1;if(E[c])c=E[c],I=!0;else if(c=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var O;return(O=Se.rgb.exec(c))?{r:O[1],g:O[2],b:O[3]}:(O=Se.rgba.exec(c))?{r:O[1],g:O[2],b:O[3],a:O[4]}:(O=Se.hsl.exec(c))?{h:O[1],s:O[2],l:O[3]}:(O=Se.hsla.exec(c))?{h:O[1],s:O[2],l:O[3],a:O[4]}:(O=Se.hsv.exec(c))?{h:O[1],s:O[2],v:O[3]}:(O=Se.hsva.exec(c))?{h:O[1],s:O[2],v:O[3],a:O[4]}:(O=Se.hex8.exec(c))?{r:p(O[1]),g:p(O[2]),b:p(O[3]),a:je(O[4]),format:I?"name":"hex8"}:(O=Se.hex6.exec(c))?{r:p(O[1]),g:p(O[2]),b:p(O[3]),format:I?"name":"hex"}:(O=Se.hex4.exec(c))?{r:p(O[1]+""+O[1]),g:p(O[2]+""+O[2]),b:p(O[3]+""+O[3]),a:je(O[4]+""+O[4]),format:I?"name":"hex8"}:(O=Se.hex3.exec(c))?{r:p(O[1]+""+O[1]),g:p(O[2]+""+O[2]),b:p(O[3]+""+O[3]),format:I?"name":"hex"}:!1}function me(c){var I,O;return c=c||{level:"AA",size:"small"},I=(c.level||"AA").toUpperCase(),O=(c.size||"small").toLowerCase(),I!=="AA"&&I!=="AAA"&&(I="AA"),O!=="small"&&O!=="large"&&(O="small"),{level:I,size:O}}dt.exports?dt.exports=S:!(Q=function(){return S}.call(z,t,z,dt),Q!==void 0&&(dt.exports=Q))})(Math)},bT9E:function(dt,z,t){"use strict";t.d(z,"a",function(){return N});var Q=t("VTBJ");function N(_e,Z){var l=Object(Q.a)({},_e);return Array.isArray(Z)&&Z.forEach(function(m){delete l[m]}),l}},biw7:function(dt,z,t){"use strict";var Q=t("q1tI"),N=t.n(Q),_e=Q.createContext(null);z.a=_e},dmUQ:function(dt,z,t){"use strict";var Q=t("Ff2n"),N=t("rePB"),_e=t("1OyB"),Z=t("vuIU"),l=t("Ji7U"),m=t("md7G"),ce=t("foSv"),ne=t("q1tI"),M=t.n(ne),S=t("TSYQ"),d=t.n(S),y=t("4IlW");function x(f,L){var oe=Object.keys(f);if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(f);L&&(X=X.filter(function(_){return Object.getOwnPropertyDescriptor(f,_).enumerable})),oe.push.apply(oe,X)}return oe}function g(f){for(var L=1;L1?le-1:0),Ae=1;Ae1?e-1:0),p=1;p=0)return parseInt(s.slice(s.indexOf("e-")+2),10);var e=0;return s.indexOf(".")>=0&&(e=s.length-s.indexOf(".")-1),e},_.getInputDisplayValue=function(r){var s=r||_.state,e=s.focused,H=s.inputValue,p=s.value,B;e?B=H:B=_.toPrecisionAsStep(p),B==null&&(B="");var le=_.formatWrapper(B);return F(_.props.decimalSeparator)&&(le=le.toString().replace(".",_.props.decimalSeparator)),le},_.recordCursorPosition=function(){try{_.cursorStart=_.input.selectionStart,_.cursorEnd=_.input.selectionEnd,_.currentValue=_.input.value,_.cursorBefore=_.input.value.substring(0,_.cursorStart),_.cursorAfter=_.input.value.substring(_.cursorEnd)}catch(r){}},_.restoreByAfter=function(r){if(r===void 0)return!1;var s=_.input.value,e=s.lastIndexOf(r);if(e===-1)return!1;var H=_.cursorBefore.length;return _.lastKeyCode===y.a.DELETE&&_.cursorBefore.charAt(H-1)===r[0]?(_.fixCaret(H,H),!0):e+r.length===s.length?(_.fixCaret(e,e),!0):!1},_.partRestoreByAfter=function(r){return r===void 0?!1:Array.prototype.some.call(r,function(s,e){var H=r.substring(e);return _.restoreByAfter(H)})},_.isNotCompleteNumber=function(r){return isNaN(r)||r===""||r===null||r&&r.toString().indexOf(".")===r.toString().length-1},_.stop=function(){_.autoStepTimer&&clearTimeout(_.autoStepTimer)},_.down=function(r,s,e){_.pressingUpOrDown=!0,_.step("down",r,s,e)},_.up=function(r,s,e){_.pressingUpOrDown=!0,_.step("up",r,s,e)},_.saveInput=function(r){_.input=r};var E=X.value;E===void 0&&(E=X.defaultValue),_.state={focused:X.autoFocus};var P=_.getValidValue(_.toNumber(E));return _.state=g(g({},_.state),{},{inputValue:_.toPrecisionAsStep(P),value:P}),_}return Object(Z.a)(oe,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(_){var E=this.props,P=E.value,r=E.onChange,s=E.max,e=E.min,H=this.state.focused;if(_){if(!G(_.value,P)||!G(_.max,s)||!G(_.min,e)){var p=H?P:this.getValidValue(P),B;this.pressingUpOrDown?B=p:this.inputting?B=this.rawInput:B=this.toPrecisionAsStep(p),this.setState({value:p,inputValue:B})}var le="value"in this.props?P:this.state.value;"max"in this.props&&_.max!==s&&typeof le=="number"&&le>s&&r&&r(s),"min"in this.props&&_.min!==e&&typeof le=="number"&&le1&&arguments[1]!==void 0?arguments[1]:this.props.min,P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,r=parseFloat(_);return isNaN(r)?_:(rP&&(r=P),r)}},{key:"setValue",value:function(_,E){var P=this.props.precision,r=this.isNotCompleteNumber(parseFloat(_))?null:parseFloat(_),s=this.state.value,e=s===void 0?null:s,H=this.state.inputValue,p=H===void 0?null:H,B=typeof r=="number"?r.toFixed(P):"".concat(r),le=r!==e||B!=="".concat(p);return"value"in this.props?(p=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:p},E)):this.setState({value:r,inputValue:this.toPrecisionAsStep(_)},E),le&&this.props.onChange(r),r}},{key:"getMaxPrecision",value:function(_){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,P=this.props,r=P.precision,s=P.step;if(F(r))return r;var e=this.getPrecision(E),H=this.getPrecision(s),p=this.getPrecision(_);return _?Math.max(p,e+H):e+H}},{key:"getPrecisionFactor",value:function(_){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,P=this.getMaxPrecision(_,E);return Math.pow(10,P)}},{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(_){return this.props.formatter?this.props.formatter(_):_}},{key:"toPrecisionAsStep",value:function(_){if(this.isNotCompleteNumber(_)||_==="")return _;var E=Math.abs(this.getMaxPrecision(_));return isNaN(E)?_.toString():Number(_).toFixed(E)}},{key:"toNumber",value:function(_){var E=this.props.precision,P=this.state.focused,r=_&&_.length>16&&P;return this.isNotCompleteNumber(_)||r?_:F(E)?Math.round(_*Math.pow(10,E))/Math.pow(10,E):Number(_)}},{key:"upStep",value:function(_,E){var P=this.props.step,r=this.getPrecisionFactor(_,E),s=Math.abs(this.getMaxPrecision(_,E)),e=((r*_+r*P*E)/r).toFixed(s);return this.toNumber(e)}},{key:"downStep",value:function(_,E){var P=this.props.step,r=this.getPrecisionFactor(_,E),s=Math.abs(this.getMaxPrecision(_,E)),e=((r*_-r*P*E)/r).toFixed(s);return this.toNumber(e)}},{key:"step",value:function(_,E){var P=this,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=arguments.length>3?arguments[3]:void 0;this.stop(),E&&(E.persist(),E.preventDefault());var e=this.props;if(e.disabled)return;var H=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(H))return;var p=this["".concat(_,"Step")](H,r),B=p>e.max||pe.max?p=e.max:p=de),Ve=(Mt||Mt===0)&&(isNaN(Mt)||Number(Mt)<=Ae),Fe=Je||r||s,ke=Ve||r||s,He=d()("".concat(P,"-handler"),"".concat(P,"-handler-up"),Object(N.a)({},"".concat(P,"-handler-up-disabled"),Fe)),Ye=d()("".concat(P,"-handler"),"".concat(P,"-handler-down"),Object(N.a)({},"".concat(P,"-handler-down-disabled"),ke)),ze=e?{onTouchStart:Fe?i:this.up,onTouchEnd:this.stop}:{onMouseDown:Fe?i:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},rt=e?{onTouchStart:ke?i:this.down,onTouchEnd:this.stop}:{onMouseDown:ke?i:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return M.a.createElement("div",{className:ue,style:Ee,title:je,onMouseEnter:Se,onMouseLeave:xe,onMouseOver:he,onMouseOut:me,onFocus:function(){return null},onBlur:function(){return null}},M.a.createElement("div",{className:"".concat(P,"-handler-wrap")},M.a.createElement("span",Object.assign({unselectable:"on"},ze,{role:"button","aria-label":"Increase Value","aria-disabled":Fe,className:He}),p||M.a.createElement("span",{unselectable:"on",className:"".concat(P,"-handler-up-inner"),onClick:n})),M.a.createElement("span",Object.assign({unselectable:"on"},rt,{role:"button","aria-label":"Decrease Value","aria-disabled":ke,className:Ye}),B||M.a.createElement("span",{unselectable:"on",className:"".concat(P,"-handler-down-inner"),onClick:n}))),M.a.createElement("div",{className:"".concat(P,"-input-wrap")},M.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Ae,"aria-valuemax":de,"aria-valuenow":Mt,required:c,type:ae,placeholder:v,onPaste:Lt,onClick:I,onMouseUp:this.onMouseUp,className:"".concat(P,"-input"),tabIndex:O,autoComplete:H,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:Pe?this.onKeyDown:i,onKeyUp:Pe?this.onKeyUp:i,autoFocus:et,maxLength:Ke,readOnly:s,disabled:r,max:de,min:Ae,step:Te,name:Ge,title:je,id:U,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(ve),pattern:Oe,inputMode:ie,onInput:St},Me))))}}]),oe}(M.a.Component);te.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:ee,min:-ee,step:1,style:{},onChange:i,onKeyDown:i,onPressEnter:i,onFocus:i,onBlur:i,parser:h,required:!1,autoComplete:"off"};var w=te,$=z.a=w},fjLI:function(dt,z,t){"use strict";t.d(z,"e",function(){return S}),t.d(z,"a",function(){return d}),t.d(z,"c",function(){return y}),t.d(z,"d",function(){return g}),t.d(z,"b",function(){return u});var Q=t("8HAY"),N=t("Cg/j"),_e=t("T8No"),Z=t("nnTU"),l=t("MI8n"),m=function(){var C=function(i,n){return C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,j){h.__proto__=j}||function(h,j){for(var K in j)j.hasOwnProperty(K)&&(h[K]=j[K])},C(i,n)};return function(i,n){C(i,n);function h(){this.constructor=i}i.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),ce=function(C,i,n,h){var j=arguments.length,K=j<3?i:h===null?h=Object.getOwnPropertyDescriptor(i,n):h,ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")K=Reflect.decorate(C,i,n,h);else for(var F=C.length-1;F>=0;F--)(ee=C[F])&&(K=(j<3?ee(K):j>3?ee(i,n,K):ee(i,n))||K);return j>3&&K&&Object.defineProperty(i,n,K),K},ne=function(C,i){return function(n,h){i(n,h,C)}},M=function(){for(var C=0,i=0,n=arguments.length;i=0&&(j.splice(K,1),h._onDidChangeMenu.fire(i))}}},C.prototype.getMenuItems=function(i){var n=(this._menuItems.get(i)||[]).slice(0);return i===0&&this._appendImplicitItems(n),n},C.prototype._appendImplicitItems=function(i){for(var n=new Set,h=i.filter(function(te){return S(te)}),j=0,K=h;jP.length)&&(r=P.length);for(var s=0,e=new Array(r);s=0)continue;if(!Object.prototype.propertyIsEnumerable.call(P,e))continue;s[e]=P[e]}}return s}function u(P,r){if(P==null)return{};var s={},e=Object.keys(P),H,p;for(p=0;p=0)continue;s[H]=P[H]}return s}var C=function(r){var s=r.className,e=r.percent,H=r.prefixCls,p=r.strokeColor,B=r.strokeLinecap,le=r.strokeWidth,de=r.style,Ae=r.trailColor,Ee=r.trailWidth,je=r.transition,Se=g(r,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete Se.gapPosition;var xe=Array.isArray(e)?e:[e],he=Array.isArray(p)?p:[p],me=m(xe),c=ne(me,1),I=c[0],O=le/2,ae=100-le/2,v="M ".concat(B==="round"?O:0,",").concat(O,` + L `).concat(B==="round"?ae:100,",").concat(O),U="0 0 100 ".concat(le),ie=0;return N.a.createElement("svg",ce({className:Z()("".concat(H,"-line"),s),viewBox:U,preserveAspectRatio:"none",style:de},Se),N.a.createElement("path",{className:"".concat(H,"-line-trail"),d:v,strokeLinecap:B,stroke:Ae,strokeWidth:Ee||le,fillOpacity:"0"}),xe.map(function(Oe,Te){var Ke={strokeDasharray:"".concat(Oe,"px, 100px"),strokeDashoffset:"-".concat(ie,"px"),transition:je||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},et=he[Te]||he[he.length-1];return ie+=Oe,N.a.createElement("path",{key:Te,className:"".concat(H,"-line-path"),d:v,strokeLinecap:B,stroke:et,strokeWidth:le,fillOpacity:"0",ref:I[Te],style:Ke})}))};C.defaultProps=l;var i=C;function n(){return n=Object.assign||function(P){for(var r=1;rP.length)&&(r=P.length);for(var s=0,e=new Array(r);s=0)continue;if(!Object.prototype.propertyIsEnumerable.call(P,e))continue;s[e]=P[e]}}return s}function w(P,r){if(P==null)return{};var s={},e=Object.keys(P),H,p;for(p=0;p=0)continue;s[H]=P[H]}return s}var $=0;function f(P){return+P.replace("%","")}function L(P){return Array.isArray(P)?P:[P]}function oe(P,r,s,e){var H=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,p=arguments.length>5?arguments[5]:void 0,B=50-e/2,le=0,de=-B,Ae=0,Ee=-2*B;switch(p){case"left":le=-B,de=0,Ae=2*B,Ee=0;break;case"right":le=B,de=0,Ae=-2*B,Ee=0;break;case"bottom":de=B,Ee=2*B;break;default:}var je="M 50,50 m ".concat(le,",").concat(de,` + a `).concat(B,",").concat(B," 0 1 1 ").concat(Ae,",").concat(-Ee,` + a `).concat(B,",").concat(B," 0 1 1 ").concat(-Ae,",").concat(Ee),Se=Math.PI*2*B,xe={stroke:s,strokeDasharray:"".concat(r/100*(Se-H),"px ").concat(Se,"px"),strokeDashoffset:"-".concat(H/2+P/100*(Se-H),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:je,pathStyle:xe}}var X=function(r){var s=r.prefixCls,e=r.strokeWidth,H=r.trailWidth,p=r.gapDegree,B=r.gapPosition,le=r.trailColor,de=r.strokeLinecap,Ae=r.style,Ee=r.className,je=r.strokeColor,Se=r.percent,xe=te(r,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),he=Object(Q.useMemo)(function(){return $+=1,$},[]),me=oe(0,100,le,e,p,B),c=me.pathString,I=me.pathStyle,O=L(Se),ae=L(je),v=ae.find(function(Ke){return Object.prototype.toString.call(Ke)==="[object Object]"}),U=m(O),ie=h(U,1),Oe=ie[0],Te=function(){var et=0;return O.map(function(Ge,Lt){var St=ae[Lt]||ae[ae.length-1],It=Object.prototype.toString.call(St)==="[object Object]"?"url(#".concat(s,"-gradient-").concat(he,")"):"",lt=oe(et,Ge,St,e,p,B);return et+=Ge,N.a.createElement("path",{key:Lt,className:"".concat(s,"-circle-path"),d:lt.pathString,stroke:It,strokeLinecap:de,strokeWidth:e,opacity:Ge===0?0:1,fillOpacity:"0",style:lt.pathStyle,ref:Oe[Lt]})})};return N.a.createElement("svg",n({className:Z()("".concat(s,"-circle"),Ee),viewBox:"0 0 100 100",style:Ae},xe),v&&N.a.createElement("defs",null,N.a.createElement("linearGradient",{id:"".concat(s,"-gradient-").concat(he),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(v).sort(function(Ke,et){return f(Ke)-f(et)}).map(function(Ke,et){return N.a.createElement("stop",{key:et,offset:Ke,stopColor:v[Ke]})}))),N.a.createElement("path",{className:"".concat(s,"-circle-trail"),d:c,stroke:le,strokeLinecap:de,strokeWidth:H||e,fillOpacity:"0",style:I}),Te().reverse())};X.defaultProps=l;var _=X,E={Line:i,Circle:_}},hW8S:function(dt,z,t){"use strict";t.d(z,"a",function(){return Z}),t.d(z,"c",function(){return l}),t.d(z,"b",function(){return m});var Q=t("VTBJ"),N=t("Ff2n"),_e=t("Kwbf"),Z="RC_TABLE_INTERNAL_COL_DEFINE";function l(ce){var ne=ce.expandable,M=Object(N.a)(ce,["expandable"]);return"expandable"in ce?Object(Q.a)(Object(Q.a)({},M),ne):M}function m(ce){return Object.keys(ce).reduce(function(ne,M){return(M.substr(0,5)==="data-"||M.substr(0,5)==="aria-")&&(ne[M]=ce[M]),ne},{})}},k3GJ:function(dt,z,t){"use strict";t.d(z,"a",function(){return na});var Q=t("rePB"),N=t("ODXe"),_e=t("Ff2n"),Z=t("VTBJ"),l=t("q1tI"),m=t("TSYQ"),ce=t.n(m),ne=t("Zm9Q"),M=t("6cGi"),S=t("KQm4"),d=t("xEkU"),y=t.n(d),x=t("t23M");function g(R){var W=Object(l.useRef)(),Y=Object(l.useRef)(!1);function D(){for(var a=arguments.length,b=new Array(a),o=0;ore&&(Ue=re-Ie),Object(l.useMemo)(function(){if(!b.length)return[0,0];for(var Qe=b.length,xt=Qe,Vt=0;VtV+Ue){xt=Vt-1;break}}for(var Gt=0,$t=Qe-1;$t>=0;$t-=1){var Wt=R.get(b[$t].key)||K;if(Wt[q]1&&arguments[1]!==void 0?arguments[1]:!1,D=W&&typeof W.getBoundingClientRect=="function"&&W.getBoundingClientRect().width;if(D){if(Y){var a=getComputedStyle(W),b=a.marginLeft,o=a.marginRight;D+=+b.replace("px","")+ +o.replace("px","")}D=+D.toFixed(6)}return D||0},et=function(W,Y,D){W&&Object(P.a)(W.style)==="object"&&(W.style[Y]=D)},Ge=function(){return O.any},Lt=t("bdgK"),St=t("i8i4"),It=t.n(St),lt=t("wgJM"),Mt=t("l4aY"),wt=t("m+aA"),ue=t("c+Xe"),Me=t("zT1h"),Pe=t("QC+M");function ve(R,W,Y){return Y?R[0]===W[0]:R[0]===W[0]&&R[1]===W[1]}function Je(R,W,Y){var D=R[W]||{};return Object(Z.a)(Object(Z.a)({},D),Y)}function Ve(R,W,Y,D){for(var a=Y.points,b=Object.keys(R),o=0;o1&&arguments[1]!==void 0?arguments[1]:2;W();var b=Object(lt.a)(function(){a<=1?D({isCanceled:function(){return b!==R.current}}):Y(D,a-1)});R.current=b}return l.useEffect(function(){return function(){W()}},[]),[Y,W]},un=[Ct,gt,Rt,jt],en=!1,En=!0;function Sn(R){return R===Rt||R===jt}var Ln=function(R,W){var Y=l.useState(Bt),D=Object(N.a)(Y,2),a=D[0],b=D[1],o=Dt(),A=Object(N.a)(o,2),T=A[0],q=A[1];function V(){b(Ct)}return st(function(){if(a!==Bt&&a!==jt){var re=un.indexOf(a),ye=un[re+1],Ie=W(a);Ie===en?b(ye):T(function(Ue){function Qe(){if(Ue.isCanceled())return;b(ye)}Ie===!0?Qe():Promise.resolve(Ie).then(Qe)})}},[R,a]),l.useEffect(function(){return function(){q()}},[]),[V,a]},In=function(R){var W=Object(l.useRef)(),Y=Object(l.useRef)(R);Y.current=R;var D=l.useCallback(function(o){Y.current(o)},[]);function a(o){o&&(o.removeEventListener(dn,D),o.removeEventListener(Ot,D))}function b(o){W.current&&W.current!==o&&a(W.current),o&&o!==W.current&&(o.addEventListener(dn,D),o.addEventListener(Ot,D),W.current=o)}return l.useEffect(function(){return function(){a(W.current)}},[]),[b,a]};function Mn(R,W,Y,D){var a=D.motionEnter,b=a===void 0?!0:a,o=D.motionAppear,A=o===void 0?!0:o,T=D.motionLeave,q=T===void 0?!0:T,V=D.motionDeadline,re=D.motionLeaveImmediately,ye=D.onAppearPrepare,Ie=D.onEnterPrepare,Ue=D.onLeavePrepare,Qe=D.onAppearStart,xt=D.onEnterStart,Vt=D.onLeaveStart,Kt=D.onAppearActive,Gt=D.onEnterActive,$t=D.onLeaveActive,Wt=D.onAppearEnd,Ht=D.onEnterEnd,on=D.onLeaveEnd,Jt=D.onVisibleChanged,Dn=tt(),pn=Object(N.a)(Dn,2),yt=pn[0],Et=pn[1],Zt=tt(Xe),nn=Object(N.a)(Zt,2),ct=nn[0],rn=nn[1],On=tt(null),sn=Object(N.a)(On,2),vn=sn[0],Pn=sn[1],zn=Object(l.useRef)(!1),aa=Object(l.useRef)(null),Nn=Object(l.useRef)(!1),oa=Object(l.useRef)(null);function va(){var Rn=Y();return Rn||oa.current}var la=Object(l.useRef)(!1);function ua(Rn){var fn=va();if(Rn&&!Rn.deadline&&Rn.target!==fn)return;var $n;ct===Ft&&la.current?$n=Wt==null?void 0:Wt(fn,Rn):ct===gn&&la.current?$n=Ht==null?void 0:Ht(fn,Rn):ct===ht&&la.current&&($n=on==null?void 0:on(fn,Rn)),$n!==!1&&!Nn.current&&(rn(Xe),Pn(null))}var Un=In(ua),Yn=Object(N.a)(Un,1),Vn=Yn[0],Kn=l.useMemo(function(){var Rn,fn,$n;switch(ct){case"appear":return Rn={},Object(Q.a)(Rn,Ct,ye),Object(Q.a)(Rn,gt,Qe),Object(Q.a)(Rn,Rt,Kt),Rn;case"enter":return fn={},Object(Q.a)(fn,Ct,Ie),Object(Q.a)(fn,gt,xt),Object(Q.a)(fn,Rt,Gt),fn;case"leave":return $n={},Object(Q.a)($n,Ct,Ue),Object(Q.a)($n,gt,Vt),Object(Q.a)($n,Rt,$t),$n;default:return{}}},[ct]),Pa=Ln(ct,function(Rn){if(Rn===Ct){var fn=Kn[Ct];return fn?fn(va()):en}if(yn in Kn){var $n;Pn((($n=Kn[yn])===null||$n===void 0?void 0:$n.call(Kn,va(),null))||null)}return yn===Rt&&(Vn(va()),V>0&&(clearTimeout(aa.current),aa.current=setTimeout(function(){ua({deadline:!0})},V))),En}),Sa=Object(N.a)(Pa,2),Ia=Sa[0],yn=Sa[1],Ca=Sn(yn);la.current=Ca,st(function(){Et(W);var Rn=zn.current;if(zn.current=!0,!R)return;var fn;!Rn&&W&&A&&(fn=Ft),Rn&&W&&b&&(fn=gn),(Rn&&!W&&q||!Rn&&re&&!W&&q)&&(fn=ht),fn&&(rn(fn),Ia())},[W]),Object(l.useEffect)(function(){(ct===Ft&&!A||ct===gn&&!b||ct===ht&&!q)&&rn(Xe)},[A,b,q]),Object(l.useEffect)(function(){return function(){clearTimeout(aa.current),Nn.current=!0}},[]),Object(l.useEffect)(function(){yt!==void 0&&ct===Xe&&(Jt==null||Jt(yt))},[yt,ct]);var ka=vn;return Kn[Ct]&&yn===gt&&(ka=Object(Z.a)({transition:"none"},ka)),[ct,yn,ka,yt!=null?yt:W]}var Zn=function(R){Object($.a)(Y,R);var W=Object(f.a)(Y);function Y(){return Object(G.a)(this,Y),W.apply(this,arguments)}return Object(te.a)(Y,[{key:"render",value:function(){return this.props.children}}]),Y}(l.Component),_n=Zn;function wn(R){var W=R;Object(P.a)(R)==="object"&&(W=R.transitionSupport);function Y(a){return!!(a.motionName&&W)}var D=l.forwardRef(function(a,b){var o=a.visible,A=o===void 0?!0:o,T=a.removeOnLeave,q=T===void 0?!0:T,V=a.forceRender,re=a.children,ye=a.motionName,Ie=a.leavedClassName,Ue=a.eventProps,Qe=Y(a),xt=Object(l.useRef)(),Vt=Object(l.useRef)();function Kt(){try{return Object(wt.a)(xt.current||Vt.current)}catch(rn){return null}}var Gt=Mn(Qe,A,Kt,a),$t=Object(N.a)(Gt,4),Wt=$t[0],Ht=$t[1],on=$t[2],Jt=$t[3],Dn=l.useRef(Jt);Jt&&(Dn.current=!0);var pn=Object(l.useRef)(b);pn.current=b;var yt=l.useCallback(function(rn){xt.current=rn,Object(ue.b)(pn.current,rn)},[]),Et,Zt=Object(Z.a)(Object(Z.a)({},Ue),{},{visible:A});if(!re)Et=null;else if(Wt===Xe||!Y(a))Jt?Et=re(Object(Z.a)({},Zt),yt):!q&&Dn.current?Et=re(Object(Z.a)(Object(Z.a)({},Zt),{},{className:Ie}),yt):V?Et=re(Object(Z.a)(Object(Z.a)({},Zt),{},{style:{display:"none"}}),yt):Et=null;else{var nn,ct;Ht===Ct?ct="prepare":Sn(Ht)?ct="active":Ht===gt&&(ct="start"),Et=re(Object(Z.a)(Object(Z.a)({},Zt),{},{className:ce()(ln(ye,Wt),(nn={},Object(Q.a)(nn,ln(ye,"".concat(Wt,"-").concat(ct)),ct),Object(Q.a)(nn,ye,typeof ye=="string"),nn)),style:on}),yt)}return l.createElement(_n,{ref:Vt},Et)});return D.displayName="CSSMotion",D}var kn=wn(Tt),ut="add",se="keep",Ne="remove",qe="removed";function at(R){var W;return R&&Object(P.a)(R)==="object"&&"key"in R?W=R:W={key:R},Object(Z.a)(Object(Z.a)({},W),{},{key:String(W.key)})}function vt(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return R.map(at)}function ot(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Y=[],D=0,a=W.length,b=vt(R),o=vt(W);b.forEach(function(q){for(var V=!1,re=D;re1});return T.forEach(function(q){Y=Y.filter(function(V){var re=V.key,ye=V.status;return re!==q||ye!==Ne}),Y.forEach(function(V){V.key===q&&(V.status=se)})}),Y}var k=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function be(R){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:kn,Y=function(D){Object($.a)(b,D);var a=Object(f.a)(b);function b(){var o;return Object(G.a)(this,b),o=a.apply(this,arguments),o.state={keyEntities:[]},o.removeKey=function(A){o.setState(function(T){var q=T.keyEntities;return{keyEntities:q.map(function(V){return V.key!==A?V:Object(Z.a)(Object(Z.a)({},V),{},{status:qe})})}})},o}return Object(te.a)(b,[{key:"render",value:function(){var A=this,T=this.state.keyEntities,q=this.props,V=q.component,re=q.children,ye=q.onVisibleChanged,Ie=Object(_e.a)(q,["component","children","onVisibleChanged"]),Ue=V||l.Fragment,Qe={};return k.forEach(function(xt){Qe[xt]=Ie[xt],delete Ie[xt]}),delete Ie.keys,l.createElement(Ue,Ie,T.map(function(xt){var Vt=xt.status,Kt=Object(_e.a)(xt,["status"]),Gt=Vt===ut||Vt===se;return l.createElement(W,Object(F.a)({},Qe,{key:Kt.key,visible:Gt,eventProps:Kt,onVisibleChanged:function(Wt){ye==null||ye(Wt,{key:Kt.key}),Wt||A.removeKey(Kt.key)}}),re)}))}}],[{key:"getDerivedStateFromProps",value:function(A,T){var q=A.keys,V=T.keyEntities,re=vt(q),ye=ot(V,re);return{keyEntities:ye.filter(function(Ie){var Ue=V.find(function(Qe){var xt=Qe.key;return Ie.key===xt});return!(Ue&&Ue.status===qe&&Ie.status===Ne)})}}}]),b}(l.Component);return Y.defaultProps={component:"div"},Y}var fe=be(Tt),ge=kn;function Le(R){var W=R.prefixCls,Y=R.motion,D=R.animation,a=R.transitionName;return Y||(D?{motionName:"".concat(W,"-").concat(D)}:a?{motionName:a}:null)}function nt(R){var W=R.prefixCls,Y=R.visible,D=R.zIndex,a=R.mask,b=R.maskMotion,o=R.maskAnimation,A=R.maskTransitionName;if(!a)return null;var T={};return(b||A||o)&&(T=Object(Z.a)({motionAppear:!0},Le({motion:b,prefixCls:W,transitionName:A,animation:o}))),l.createElement(ge,Object(F.a)({},T,{visible:Y,removeOnLeave:!0}),function(q){var V=q.className;return l.createElement("div",{style:{zIndex:D},className:ce()("".concat(W,"-mask"),V)})})}var pe=t("9mu1"),Ce=t("o0o1"),We=t.n(Ce),Xt=t("HaE+"),an=["measure","align",null,"motion"],Yt=function(R,W){var Y=Object(l.useState)(null),D=Object(N.a)(Y,2),a=D[0],b=D[1],o=Object(l.useRef)(),A=Object(l.useRef)(!1);function T(re){A.current||b(re)}function q(){lt.a.cancel(o.current)}function V(re){q(),o.current=Object(lt.a)(function(){T(function(ye){switch(a){case"align":return"motion";case"motion":return"stable";default:}return ye}),re==null||re()})}return Object(l.useEffect)(function(){T("measure")},[R]),Object(l.useEffect)(function(){switch(a){case"measure":W();break;default:}a&&(o.current=Object(lt.a)(Object(Xt.a)(We.a.mark(function re(){var ye,Ie;return We.a.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:ye=an.indexOf(a),Ie=an[ye+1],Ie&&ye!==-1&&T(Ie);case 3:case"end":return Qe.stop()}},re)}))))},[a]),Object(l.useEffect)(function(){return function(){A.current=!0,q()}},[]),[a,V]},Cn=function(R){var W=l.useState({width:0,height:0}),Y=Object(N.a)(W,2),D=Y[0],a=Y[1];function b(A){a({width:A.offsetWidth,height:A.offsetHeight})}var o=l.useMemo(function(){var A={};if(R){var T=D.width,q=D.height;R.indexOf("height")!==-1&&q?A.height=q:R.indexOf("minHeight")!==-1&&q&&(A.minHeight=q),R.indexOf("width")!==-1&&T?A.width=T:R.indexOf("minWidth")!==-1&&T&&(A.minWidth=T)}return A},[R,D]);return[o,b]},tn=l.forwardRef(function(R,W){var Y=R.visible,D=R.prefixCls,a=R.className,b=R.style,o=R.children,A=R.zIndex,T=R.stretch,q=R.destroyPopupOnHide,V=R.forceRender,re=R.align,ye=R.point,Ie=R.getRootDomNode,Ue=R.getClassNameFromAlign,Qe=R.onAlign,xt=R.onMouseEnter,Vt=R.onMouseLeave,Kt=R.onMouseDown,Gt=R.onTouchStart,$t=Object(l.useRef)(),Wt=Object(l.useRef)(),Ht=Object(l.useState)(),on=Object(N.a)(Ht,2),Jt=on[0],Dn=on[1],pn=Cn(T),yt=Object(N.a)(pn,2),Et=yt[0],Zt=yt[1];function nn(){T&&Zt(Ie())}var ct=Yt(Y,nn),rn=Object(N.a)(ct,2),On=rn[0],sn=rn[1],vn=Object(l.useRef)();function Pn(){return ye||Ie}function zn(){var Un;(Un=$t.current)===null||Un===void 0||Un.forceAlign()}function aa(Un,Yn){var Vn=Ue(Yn);Jt!==Vn&&Dn(Vn),On==="align"&&(Jt!==Vn?Promise.resolve().then(function(){zn()}):sn(function(){var Kn;(Kn=vn.current)===null||Kn===void 0||Kn.call(vn)}),Qe==null||Qe(Un,Yn))}var Nn=Object(Z.a)({},Le(R));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Un){var Yn=Nn[Un];Nn[Un]=function(Vn,Kn){return sn(),Yn==null?void 0:Yn(Vn,Kn)}});function oa(){return new Promise(function(Un){vn.current=Un})}l.useEffect(function(){!Nn.motionName&&On==="motion"&&sn()},[Nn.motionName,On]),l.useImperativeHandle(W,function(){return{forceAlign:zn,getElement:function(){return Wt.current}}});var va=Object(Z.a)(Object(Z.a)({},Et),{},{zIndex:A,opacity:On==="motion"||On==="stable"||!Y?void 0:0,pointerEvents:On==="stable"?void 0:"none"},b),la=!0;(re==null?void 0:re.points)&&(On==="align"||On==="stable")&&(la=!1);var ua=o;return l.Children.count(o)>1&&(ua=l.createElement("div",{className:"".concat(D,"-content")},o)),l.createElement(ge,Object(F.a)({visible:Y,ref:Wt,leavedClassName:"".concat(D,"-hidden")},Nn,{onAppearPrepare:oa,onEnterPrepare:oa,removeOnLeave:q,forceRender:V}),function(Un,Yn){var Vn=Un.className,Kn=Un.style,Pa=ce()(D,a,Jt,Vn);return l.createElement(pe.a,{target:Pn(),key:"popup",ref:$t,monitorWindowResize:!0,disabled:la,align:re,onAlign:aa},l.createElement("div",{ref:Yn,className:Pa,onMouseEnter:xt,onMouseLeave:Vt,onMouseDownCapture:Kt,onTouchStartCapture:Gt,style:Object(Z.a)(Object(Z.a)({},Kn),va)},ua))})});tn.displayName="PopupInner";var bt=tn,Nt=l.forwardRef(function(R,W){var Y=R.prefixCls,D=R.visible,a=R.zIndex,b=R.children,o=R.mobile;o=o===void 0?{}:o;var A=o.popupClassName,T=o.popupStyle,q=o.popupMotion,V=q===void 0?{}:q,re=o.popupRender,ye=l.useRef();l.useImperativeHandle(W,function(){return{forceAlign:function(){},getElement:function(){return ye.current}}});var Ie=Object(Z.a)({zIndex:a},T),Ue=b;return l.Children.count(b)>1&&(Ue=l.createElement("div",{className:"".concat(Y,"-content")},b)),re&&(Ue=re(Ue)),l.createElement(ge,Object(F.a)({visible:D,ref:ye,removeOnLeave:!0},V),function(Qe,xt){var Vt=Qe.className,Kt=Qe.style,Gt=ce()(Y,A,Vt);return l.createElement("div",{ref:xt,className:Gt,style:Object(Z.a)(Object(Z.a)({},Kt),Ie)},Ue)})});Nt.displayName="MobilePopupInner";var Tn=Nt,da=["visible","mobile"],Jn=l.forwardRef(function(R,W){var Y=R.visible,D=R.mobile,a=Object(_e.a)(R,da),b=Object(l.useState)(Y),o=Object(N.a)(b,2),A=o[0],T=o[1],q=Object(l.useState)(!1),V=Object(N.a)(q,2),re=V[0],ye=V[1],Ie=Object(Z.a)(Object(Z.a)({},a),{},{visible:A});Object(l.useEffect)(function(){T(Y),Y&&D&&ye(Fe())},[Y,D]);var Ue=re?l.createElement(Tn,Object(F.a)({},Ie,{mobile:D,ref:W})):l.createElement(bt,Object(F.a)({},Ie,{ref:W}));return l.createElement("div",null,l.createElement(nt,Ie),Ue)});Jn.displayName="Popup";var Fa=Jn,ra=l.createContext(null),bn=ra;function ma(){}function Qa(){return""}function Ba(R){return R?R.ownerDocument:window.document}var Ka=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Ya(R){var W=function(Y){Object($.a)(a,Y);var D=Object(f.a)(a);function a(b){var o;Object(G.a)(this,a),o=D.call(this,b),o.popupRef=l.createRef(),o.triggerRef=l.createRef(),o.attachId=void 0,o.clickOutsideHandler=void 0,o.touchOutsideHandler=void 0,o.contextMenuOutsideHandler1=void 0,o.contextMenuOutsideHandler2=void 0,o.mouseDownTimeout=void 0,o.focusTime=void 0,o.preClickTime=void 0,o.preTouchTime=void 0,o.delayTimer=void 0,o.hasPopupMouseDown=void 0,o.onMouseEnter=function(T){var q=o.props.mouseEnterDelay;o.fireEvents("onMouseEnter",T),o.delaySetPopupVisible(!0,q,q?null:T)},o.onMouseMove=function(T){o.fireEvents("onMouseMove",T),o.setPoint(T)},o.onMouseLeave=function(T){o.fireEvents("onMouseLeave",T),o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)},o.onPopupMouseEnter=function(){o.clearDelayTimer()},o.onPopupMouseLeave=function(T){var q;if(T.relatedTarget&&!T.relatedTarget.setTimeout&&Object(Mt.a)((q=o.popupRef.current)===null||q===void 0?void 0:q.getElement(),T.relatedTarget))return;o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)},o.onFocus=function(T){o.fireEvents("onFocus",T),o.clearDelayTimer(),o.isFocusToShow()&&(o.focusTime=Date.now(),o.delaySetPopupVisible(!0,o.props.focusDelay))},o.onMouseDown=function(T){o.fireEvents("onMouseDown",T),o.preClickTime=Date.now()},o.onTouchStart=function(T){o.fireEvents("onTouchStart",T),o.preTouchTime=Date.now()},o.onBlur=function(T){o.fireEvents("onBlur",T),o.clearDelayTimer(),o.isBlurToHide()&&o.delaySetPopupVisible(!1,o.props.blurDelay)},o.onContextMenu=function(T){T.preventDefault(),o.fireEvents("onContextMenu",T),o.setPopupVisible(!0,T)},o.onContextMenuClose=function(){o.isContextMenuToShow()&&o.close()},o.onClick=function(T){if(o.fireEvents("onClick",T),o.focusTime){var q;if(o.preClickTime&&o.preTouchTime?q=Math.min(o.preClickTime,o.preTouchTime):o.preClickTime?q=o.preClickTime:o.preTouchTime&&(q=o.preTouchTime),Math.abs(q-o.focusTime)<20)return;o.focusTime=0}o.preClickTime=0,o.preTouchTime=0,o.isClickToShow()&&(o.isClickToHide()||o.isBlurToHide())&&T&&T.preventDefault&&T.preventDefault();var V=!o.state.popupVisible;(o.isClickToHide()&&!V||V&&o.isClickToShow())&&o.setPopupVisible(!o.state.popupVisible,T)},o.onPopupMouseDown=function(){if(o.hasPopupMouseDown=!0,clearTimeout(o.mouseDownTimeout),o.mouseDownTimeout=window.setTimeout(function(){o.hasPopupMouseDown=!1},0),o.context){var T;(T=o.context).onPopupMouseDown.apply(T,arguments)}},o.onDocumentClick=function(T){if(o.props.mask&&!o.props.maskClosable)return;var q=T.target,V=o.getRootDomNode(),re=o.getPopupDomNode();(!Object(Mt.a)(V,q)||o.isContextMenuOnly())&&!Object(Mt.a)(re,q)&&!o.hasPopupMouseDown&&o.close()},o.getRootDomNode=function(){var T=o.props.getTriggerDOMNode;if(T)return T(o.triggerRef.current);try{var q=Object(wt.a)(o.triggerRef.current);if(q)return q}catch(V){}return It.a.findDOMNode(Object(w.a)(o))},o.getPopupClassNameFromAlign=function(T){var q=[],V=o.props,re=V.popupPlacement,ye=V.builtinPlacements,Ie=V.prefixCls,Ue=V.alignPoint,Qe=V.getPopupClassNameFromAlign;return re&&ye&&q.push(Ve(ye,Ie,T,Ue)),Qe&&q.push(Qe(T)),q.join(" ")},o.getComponent=function(){var T=o.props,q=T.prefixCls,V=T.destroyPopupOnHide,re=T.popupClassName,ye=T.onPopupAlign,Ie=T.popupMotion,Ue=T.popupAnimation,Qe=T.popupTransitionName,xt=T.popupStyle,Vt=T.mask,Kt=T.maskAnimation,Gt=T.maskTransitionName,$t=T.maskMotion,Wt=T.zIndex,Ht=T.popup,on=T.stretch,Jt=T.alignPoint,Dn=T.mobile,pn=T.forceRender,yt=o.state,Et=yt.popupVisible,Zt=yt.point,nn=o.getPopupAlign(),ct={};return o.isMouseEnterToShow()&&(ct.onMouseEnter=o.onPopupMouseEnter),o.isMouseLeaveToHide()&&(ct.onMouseLeave=o.onPopupMouseLeave),ct.onMouseDown=o.onPopupMouseDown,ct.onTouchStart=o.onPopupMouseDown,l.createElement(Fa,Object(F.a)({prefixCls:q,destroyPopupOnHide:V,visible:Et,point:Jt&&Zt,className:re,align:nn,onAlign:ye,animation:Ue,getClassNameFromAlign:o.getPopupClassNameFromAlign},ct,{stretch:on,getRootDomNode:o.getRootDomNode,style:xt,mask:Vt,zIndex:Wt,transitionName:Qe,maskAnimation:Kt,maskTransitionName:Gt,maskMotion:$t,ref:o.popupRef,motion:Ie,mobile:Dn,forceRender:pn}),typeof Ht=="function"?Ht():Ht)},o.attachParent=function(T){lt.a.cancel(o.attachId);var q=o.props,V=q.getPopupContainer,re=q.getDocument,ye=o.getRootDomNode(),Ie;V?(ye||V.length===0)&&(Ie=V(ye)):Ie=re(o.getRootDomNode()).body,Ie?Ie.appendChild(T):o.attachId=Object(lt.a)(function(){o.attachParent(T)})},o.getContainer=function(){var T=o.props.getDocument,q=T(o.getRootDomNode()).createElement("div");return q.style.position="absolute",q.style.top="0",q.style.left="0",q.style.width="100%",o.attachParent(q),q},o.setPoint=function(T){var q=o.props.alignPoint;if(!q||!T)return;o.setState({point:{pageX:T.pageX,pageY:T.pageY}})},o.handlePortalUpdate=function(){o.state.prevPopupVisible!==o.state.popupVisible&&o.props.afterPopupVisibleChange(o.state.popupVisible)},o.triggerContextValue={onPopupMouseDown:o.onPopupMouseDown};var A;return"popupVisible"in b?A=!!b.popupVisible:A=!!b.defaultPopupVisible,o.state={prevPopupVisible:A,popupVisible:A},Ka.forEach(function(T){o["fire".concat(T)]=function(q){o.fireEvents(T,q)}}),o}return Object(te.a)(a,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var o=this.props,A=this.state;if(A.popupVisible){var T;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(T=o.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(Me.a)(T,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(T=T||o.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(Me.a)(T,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(T=T||o.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(Me.a)(T,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Me.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),lt.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var o;return((o=this.popupRef.current)===null||o===void 0?void 0:o.getElement())||null}},{key:"getPopupAlign",value:function(){var o=this.props,A=o.popupPlacement,T=o.popupAlign,q=o.builtinPlacements;return A&&q?Je(q,A,T):T}},{key:"setPopupVisible",value:function(o,A){var T=this.props.alignPoint,q=this.state.popupVisible;this.clearDelayTimer(),q!==o&&("popupVisible"in this.props||this.setState({popupVisible:o,prevPopupVisible:q}),this.props.onPopupVisibleChange(o)),T&&A&&o&&this.setPoint(A)}},{key:"delaySetPopupVisible",value:function(o,A,T){var q=this,V=A*1e3;if(this.clearDelayTimer(),V){var re=T?{pageX:T.pageX,pageY:T.pageY}:null;this.delayTimer=window.setTimeout(function(){q.setPopupVisible(o,re),q.clearDelayTimer()},V)}else this.setPopupVisible(o,T)}},{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(o){var A=this.props.children.props,T=this.props;return A[o]&&T[o]?this["fire".concat(o)]:A[o]||T[o]}},{key:"isClickToShow",value:function(){var o=this.props,A=o.action,T=o.showAction;return A.indexOf("click")!==-1||T.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var o=this.props.action;return o==="contextMenu"||o.length===1&&o[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var o=this.props,A=o.action,T=o.showAction;return A.indexOf("contextMenu")!==-1||T.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var o=this.props,A=o.action,T=o.hideAction;return A.indexOf("click")!==-1||T.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var o=this.props,A=o.action,T=o.showAction;return A.indexOf("hover")!==-1||T.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var o=this.props,A=o.action,T=o.hideAction;return A.indexOf("hover")!==-1||T.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var o=this.props,A=o.action,T=o.showAction;return A.indexOf("focus")!==-1||T.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var o=this.props,A=o.action,T=o.hideAction;return A.indexOf("focus")!==-1||T.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var o;(o=this.popupRef.current)===null||o===void 0||o.forceAlign()}}},{key:"fireEvents",value:function(o,A){var T=this.props.children.props[o];T&&T(A);var q=this.props[o];q&&q(A)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var o=this.state.popupVisible,A=this.props,T=A.children,q=A.forceRender,V=A.alignPoint,re=A.className,ye=A.autoDestroy,Ie=l.Children.only(T),Ue={key:"trigger"};this.isContextMenuToShow()?Ue.onContextMenu=this.onContextMenu:Ue.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Ue.onClick=this.onClick,Ue.onMouseDown=this.onMouseDown,Ue.onTouchStart=this.onTouchStart):(Ue.onClick=this.createTwoChains("onClick"),Ue.onMouseDown=this.createTwoChains("onMouseDown"),Ue.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Ue.onMouseEnter=this.onMouseEnter,V&&(Ue.onMouseMove=this.onMouseMove)):Ue.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Ue.onMouseLeave=this.onMouseLeave:Ue.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Ue.onFocus=this.onFocus,Ue.onBlur=this.onBlur):(Ue.onFocus=this.createTwoChains("onFocus"),Ue.onBlur=this.createTwoChains("onBlur"));var Qe=ce()(Ie&&Ie.props&&Ie.props.className,re);Qe&&(Ue.className=Qe);var xt=Object(Z.a)({},Ue);Object(ue.c)(Ie)&&(xt.ref=Object(ue.a)(this.triggerRef,Ie.ref));var Vt=l.cloneElement(Ie,xt),Kt;return(o||this.popupRef.current||q)&&(Kt=l.createElement(R,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!o&&ye&&(Kt=null),l.createElement(bn.Provider,{value:this.triggerContextValue},Vt,Kt)}}],[{key:"getDerivedStateFromProps",value:function(o,A){var T=o.popupVisible,q={};return T!==void 0&&A.popupVisible!==T&&(q.popupVisible=T,q.prevPopupVisible=A.popupVisible),q}}]),a}(l.Component);return W.contextType=bn,W.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Qa,getDocument:Ba,onPopupVisibleChange:ma,afterPopupVisibleChange:ma,onPopupAlign:ma,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},W}var Za=Ya(Pe.a),qn={adjustX:1,adjustY:1},ga={topLeft:{points:["bl","tl"],overflow:qn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:qn,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:qn,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:qn,offset:[4,0]}},Wa={topLeft:{points:["bl","tl"],overflow:qn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:qn,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:qn,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:qn,offset:[4,0]}},wa=ga,Hn=0,Xn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Qn=function(W,Y,D){var a=U(Y),b=W.getState();W.setState({defaultActiveFirst:Object(Z.a)(Object(Z.a)({},b.defaultActiveFirst),{},Object(Q.a)({},a,D))})},Aa=function(R){Object($.a)(Y,R);var W=Object(f.a)(Y);function Y(D){var a;Object(G.a)(this,Y),a=W.call(this,D),a.onDestroy=function(V){a.props.onDestroy(V)},a.onKeyDown=function(V){var re=V.keyCode,ye=a.menuInstance,Ie=a.props.store,Ue=a.getVisible();if(re===C.a.ENTER)return a.onTitleClick(V),Qn(Ie,a.props.eventKey,!0),!0;if(re===C.a.RIGHT)return Ue?ye.onKeyDown(V):(a.triggerOpenChange(!0),Qn(Ie,a.props.eventKey,!0)),!0;if(re===C.a.LEFT){var Qe;if(Ue)Qe=ye.onKeyDown(V);else return;return Qe||(a.triggerOpenChange(!1),Qe=!0),Qe}return Ue&&(re===C.a.UP||re===C.a.DOWN)?ye.onKeyDown(V):void 0},a.onOpenChange=function(V){a.props.onOpenChange(V)},a.onPopupVisibleChange=function(V){a.triggerOpenChange(V,V?"mouseenter":"mouseleave")},a.onMouseEnter=function(V){var re=a.props,ye=re.eventKey,Ie=re.onMouseEnter,Ue=re.store;Qn(Ue,a.props.eventKey,!1),Ie({key:ye,domEvent:V})},a.onMouseLeave=function(V){var re=a.props,ye=re.parentMenu,Ie=re.eventKey,Ue=re.onMouseLeave;ye.subMenuInstance=Object(w.a)(a),Ue({key:Ie,domEvent:V})},a.onTitleMouseEnter=function(V){var re=a.props,ye=re.eventKey,Ie=re.onItemHover,Ue=re.onTitleMouseEnter;Ie({key:ye,hover:!0}),Ue({key:ye,domEvent:V})},a.onTitleMouseLeave=function(V){var re=a.props,ye=re.parentMenu,Ie=re.eventKey,Ue=re.onItemHover,Qe=re.onTitleMouseLeave;ye.subMenuInstance=Object(w.a)(a),Ue({key:Ie,hover:!1}),Qe({key:Ie,domEvent:V})},a.onTitleClick=function(V){var re=Object(w.a)(a),ye=re.props;if(ye.onTitleClick({key:ye.eventKey,domEvent:V}),ye.triggerSubMenuAction==="hover")return;a.triggerOpenChange(!a.getVisible(),"click"),Qn(ye.store,a.props.eventKey,!1)},a.onSubMenuClick=function(V){typeof a.props.onClick=="function"&&a.props.onClick(a.addKeyPath(V))},a.onSelect=function(V){a.props.onSelect(V)},a.onDeselect=function(V){a.props.onDeselect(V)},a.getPrefixCls=function(){return"".concat(a.props.rootPrefixCls,"-submenu")},a.getActiveClassName=function(){return"".concat(a.getPrefixCls(),"-active")},a.getDisabledClassName=function(){return"".concat(a.getPrefixCls(),"-disabled")},a.getSelectedClassName=function(){return"".concat(a.getPrefixCls(),"-selected")},a.getOpenClassName=function(){return"".concat(a.props.rootPrefixCls,"-submenu-open")},a.getVisible=function(){return a.state.isOpen},a.getMode=function(){return a.state.mode},a.saveMenuInstance=function(V){a.menuInstance=V},a.addKeyPath=function(V){return Object(Z.a)(Object(Z.a)({},V),{},{keyPath:(V.keyPath||[]).concat(a.props.eventKey)})},a.triggerOpenChange=function(V,re){var ye=a.props.eventKey,Ie=function(){a.onOpenChange({key:ye,item:Object(w.a)(a),trigger:re,open:V})};re==="mouseenter"?a.mouseenterTimeout=setTimeout(function(){Ie()},0):Ie()},a.isChildrenSelected=function(){var V={find:!1};return Oe(a.props.children,a.props.selectedKeys,V),V.find},a.isInlineMode=function(){return a.getMode()==="inline"},a.adjustWidth=function(){if(!a.subMenuTitle||!a.menuInstance)return;var V=St.findDOMNode(a.menuInstance);if(V.offsetWidth>=a.subMenuTitle.offsetWidth)return;V.style.minWidth="".concat(a.subMenuTitle.offsetWidth,"px")},a.saveSubMenuTitle=function(V){a.subMenuTitle=V},a.getBaseProps=function(){var V=Object(w.a)(a),re=V.props,ye=a.getMode();return{mode:ye==="horizontal"?"vertical":ye,visible:a.getVisible(),level:re.level+1,inlineIndent:re.inlineIndent,focusable:!1,onClick:a.onSubMenuClick,onSelect:a.onSelect,onDeselect:a.onDeselect,onDestroy:a.onDestroy,selectedKeys:re.selectedKeys,eventKey:"".concat(re.eventKey,"-menu-"),openKeys:re.openKeys,motion:re.motion,onOpenChange:a.onOpenChange,subMenuOpenDelay:re.subMenuOpenDelay,parentMenu:Object(w.a)(a),subMenuCloseDelay:re.subMenuCloseDelay,forceSubMenuRender:re.forceSubMenuRender,triggerSubMenuAction:re.triggerSubMenuAction,builtinPlacements:re.builtinPlacements,defaultActiveFirst:re.store.getState().defaultActiveFirst[U(re.eventKey)],multiple:re.multiple,prefixCls:re.rootPrefixCls,id:a.internalMenuId,manualRef:a.saveMenuInstance,itemIcon:re.itemIcon,expandIcon:re.expandIcon,direction:re.direction}},a.getMotion=function(V,re){var ye=Object(w.a)(a),Ie=ye.haveRendered,Ue=a.props,Qe=Ue.motion,xt=Ue.rootPrefixCls,Vt=Object(Z.a)(Object(Z.a)({},Qe),{},{leavedClassName:"".concat(xt,"-hidden"),removeOnLeave:!1,motionAppear:Ie||!re||V!=="inline"});return Vt};var b=D.store,o=D.eventKey,A=b.getState(),T=A.defaultActiveFirst;a.isRootMenu=!1;var q=!1;return T&&(q=T[o]),Qn(b,o,q),a.state={mode:D.mode,isOpen:D.isOpen},a}return Object(te.a)(Y,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var a=this,b=this.props,o=b.mode,A=b.parentMenu,T=b.manualRef,q=b.isOpen,V=function(){a.setState({mode:o,isOpen:q})},re=q!==this.state.isOpen,ye=o!==this.state.mode;if((ye||re)&&(lt.a.cancel(this.updateStateRaf),ye?this.updateStateRaf=Object(lt.a)(V):V()),T&&T(this),o!=="horizontal"||!(A==null?void 0:A.isRootMenu)||!q)return;this.minWidthTimeout=setTimeout(function(){return a.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var a=this.props,b=a.onDestroy,o=a.eventKey;b&&b(o),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),lt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(a,b){var o=this.getBaseProps();return l.createElement(Oa,Object(F.a)({},o,{id:this.internalMenuId,className:a,style:b}),this.props.children)}},{key:"renderChildren",value:function(){var a=this,b=this.getBaseProps(),o=b.mode,A=b.visible,T=b.forceSubMenuRender,q=b.direction,V=this.getMotion(o,A);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||A||T,!this.haveOpened)return l.createElement("div",null);var re=ce()("".concat(b.prefixCls,"-sub"),Object(Q.a)({},"".concat(b.prefixCls,"-rtl"),q==="rtl"));return this.isInlineMode()?l.createElement(ge,Object(F.a)({visible:b.visible,forceRender:T},V),function(ye){var Ie=ye.className,Ue=ye.style,Qe=ce()(re,Ie);return a.renderPopupMenu(Qe,Ue)}):this.renderPopupMenu(re)}},{key:"render",value:function(){var a,b,o,A=Object(Z.a)({},this.props),T=this.getVisible(),q=this.getPrefixCls(),V=this.isInlineMode(),re=this.getMode(),ye=ce()(q,"".concat(q,"-").concat(re),(a={},Object(Q.a)(a,A.className,!!A.className),Object(Q.a)(a,this.getOpenClassName(),T),Object(Q.a)(a,this.getActiveClassName(),A.active||T&&!V),Object(Q.a)(a,this.getDisabledClassName(),A.disabled),Object(Q.a)(a,this.getSelectedClassName(),this.isChildrenSelected()),a));this.internalMenuId||(A.eventKey?this.internalMenuId="".concat(A.eventKey,"$Menu"):(Hn+=1,this.internalMenuId="$__$".concat(Hn,"$Menu")));var Ie={},Ue={},Qe={};A.disabled||(Ie={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Ue={onClick:this.onTitleClick},Qe={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var xt={},Vt=A.direction,Kt=Vt==="rtl";V&&(Kt?xt.paddingRight=A.inlineIndent*A.level:xt.paddingLeft=A.inlineIndent*A.level);var Gt={};this.getVisible()&&(Gt={"aria-owns":this.internalMenuId});var $t=null;re!=="horizontal"&&($t=this.props.expandIcon,typeof this.props.expandIcon=="function"&&($t=l.createElement(this.props.expandIcon,Object(Z.a)({},this.props))));var Wt=l.createElement("div",Object(F.a)({ref:this.saveSubMenuTitle,style:xt,className:"".concat(q,"-title"),role:"button"},Qe,Ue,{"aria-expanded":T},Gt,{"aria-haspopup":"true",title:typeof A.title=="string"?A.title:void 0}),A.title,$t||l.createElement("i",{className:"".concat(q,"-arrow")})),Ht=this.renderChildren(),on=((b=A.parentMenu)===null||b===void 0?void 0:b.isRootMenu)?A.parentMenu.props.getPopupContainer:function(Pn){return Pn.parentNode},Jt=Xn[re],Dn=A.popupOffset?{offset:A.popupOffset}:{},pn=ce()((o={},Object(Q.a)(o,A.popupClassName,A.popupClassName&&!V),Object(Q.a)(o,"".concat(q,"-rtl"),Kt),o)),yt=A.disabled,Et=A.triggerSubMenuAction,Zt=A.subMenuOpenDelay,nn=A.forceSubMenuRender,ct=A.subMenuCloseDelay,rn=A.builtinPlacements;Te.forEach(function(Pn){return delete A[Pn]}),delete A.onClick;var On=Kt?Object(Z.a)(Object(Z.a)({},Wa),rn):Object(Z.a)(Object(Z.a)({},ga),rn);delete A.direction;var sn=this.getBaseProps(),vn=V?null:this.getMotion(sn.mode,sn.visible);return l.createElement("li",Object(F.a)({},A,Ie,{className:ye,role:"menuitem"}),l.createElement(Za,{prefixCls:q,popupClassName:ce()("".concat(q,"-popup"),pn),getPopupContainer:on,builtinPlacements:On,popupPlacement:Jt,popupVisible:V?!1:T,popupAlign:Dn,popup:V?null:Ht,action:yt||V?[]:[Et],mouseEnterDelay:Zt,mouseLeaveDelay:ct,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:nn,popupMotion:vn},Wt),V?Ht:null)}}]),Y}(l.Component);Aa.defaultProps={onMouseEnter:ae,onMouseLeave:ae,onTitleMouseEnter:ae,onTitleMouseLeave:ae,onTitleClick:ae,manualRef:ae,mode:"vertical",title:""};var ha=Object(L.b)(function(R,W){var Y=R.openKeys,D=R.activeKey,a=R.selectedKeys,b=W.eventKey,o=W.subMenuKey;return{isOpen:Y.indexOf(b)>-1,active:D[o]===b,selectedKeys:a}})(Aa);ha.isSubMenu=!0;var ba=ha,Da="menuitem-overflowed",qa=.5,Ta=function(R){Object($.a)(Y,R);var W=Object(f.a)(Y);function Y(){var D;return Object(G.a)(this,Y),D=W.apply(this,arguments),D.resizeObserver=null,D.mutationObserver=null,D.originalTotalWidth=0,D.overflowedItems=[],D.menuItemSizes=[],D.cancelFrameId=null,D.state={lastVisibleIndex:void 0},D.childRef=l.createRef(),D.getMenuItemNodes=function(){var a=D.props.prefixCls,b=D.childRef.current;return b?[].slice.call(b.children).filter(function(o){return o.className.split(" ").indexOf("".concat(a,"-overflowed-submenu"))<0}):[]},D.getOverflowedSubMenuItem=function(a,b,o){var A=D.props,T=A.overflowedIndicator,q=A.level,V=A.mode,re=A.prefixCls,ye=A.theme;if(q!==1||V!=="horizontal")return null;var Ie=D.props.children[0],Ue=Ie.props,Qe=Ue.children,xt=Ue.title,Vt=Ue.style,Kt=Object(_e.a)(Ue,["children","title","style"]),Gt=Object(Z.a)({},Vt),$t="".concat(a,"-overflowed-indicator"),Wt="".concat(a,"-overflowed-indicator");b.length===0&&o!==!0?Gt=Object(Z.a)(Object(Z.a)({},Gt),{},{display:"none"}):o&&(Gt=Object(Z.a)(Object(Z.a)({},Gt),{},{visibility:"hidden",position:"absolute"}),$t="".concat($t,"-placeholder"),Wt="".concat(Wt,"-placeholder"));var Ht=ye?"".concat(re,"-").concat(ye):"",on={};return Te.forEach(function(Jt){Kt[Jt]!==void 0&&(on[Jt]=Kt[Jt])}),l.createElement(ba,Object(F.a)({title:T,className:"".concat(re,"-overflowed-submenu"),popupClassName:Ht},on,{key:$t,eventKey:Wt,disabled:!1,style:Gt}),b)},D.setChildrenWidthAndResize=function(){if(D.props.mode!=="horizontal")return;var a=D.childRef.current;if(!a)return;var b=a.children;if(!b||b.length===0)return;var o=a.children[b.length-1];et(o,"display","inline-block");var A=D.getMenuItemNodes(),T=A.filter(function(q){return q.className.split(" ").indexOf(Da)>=0});T.forEach(function(q){et(q,"display","inline-block")}),D.menuItemSizes=A.map(function(q){return Ke(q,!0)}),T.forEach(function(q){et(q,"display","none")}),D.overflowedIndicatorWidth=Ke(a.children[a.children.length-1],!0),D.originalTotalWidth=D.menuItemSizes.reduce(function(q,V){return q+V},0),D.handleResize(),et(o,"display","none")},D.handleResize=function(){if(D.props.mode!=="horizontal")return;var a=D.childRef.current;if(!a)return;var b=Ke(a);D.overflowedItems=[];var o=0,A;D.originalTotalWidth>b+qa&&(A=-1,D.menuItemSizes.forEach(function(T){o+=T,o+D.overflowedIndicatorWidth<=b&&(A+=1)})),D.setState({lastVisibleIndex:A})},D}return Object(te.a)(Y,[{key:"componentDidMount",value:function(){var a=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var b=this.childRef.current;if(!b)return;this.resizeObserver=new Lt.default(function(o){o.forEach(function(){var A=a.cancelFrameId;cancelAnimationFrame(A),a.cancelFrameId=requestAnimationFrame(a.setChildrenWidthAndResize)})}),[].slice.call(b.children).concat(b).forEach(function(o){a.resizeObserver.observe(o)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){a.resizeObserver.disconnect(),[].slice.call(b.children).concat(b).forEach(function(o){a.resizeObserver.observe(o)}),a.setChildrenWidthAndResize()}),this.mutationObserver.observe(b,{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(a){var b=this,o=this.state.lastVisibleIndex;return(a||[]).reduce(function(A,T,q){var V=T;if(b.props.mode==="horizontal"){var re=b.getOverflowedSubMenuItem(T.props.eventKey,[]);o!==void 0&&b.props.className.indexOf("".concat(b.props.prefixCls,"-root"))!==-1&&(q>o&&(V=l.cloneElement(T,{style:{display:"none"},eventKey:"".concat(T.props.eventKey,"-hidden"),className:"".concat(Da)})),q===o+1&&(b.overflowedItems=a.slice(o+1).map(function(Ie){return l.cloneElement(Ie,{key:Ie.props.eventKey,mode:"vertical-left"})}),re=b.getOverflowedSubMenuItem(T.props.eventKey,b.overflowedItems)));var ye=[].concat(Object(S.a)(A),[re,V]);return q===a.length-1&&ye.push(b.getOverflowedSubMenuItem(T.props.eventKey,[],!0)),ye}return[].concat(Object(S.a)(A),[V])},[])}},{key:"render",value:function(){var a=this.props,b=a.visible,o=a.prefixCls,A=a.overflowedIndicator,T=a.mode,q=a.level,V=a.tag,re=a.children,ye=a.theme,Ie=Object(_e.a)(a,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Ue=V;return l.createElement(Ue,Object(F.a)({ref:this.childRef},Ie),this.renderChildren(re))}}]),Y}(l.Component);Ta.defaultProps={tag:"div",className:""};var Bn=Ta;function Ea(R){return R.length?R.every(function(W){return!!W.props.disabled}):!0}function Gn(R,W,Y){var D=R.getState();R.setState({activeKey:Object(Z.a)(Object(Z.a)({},D.activeKey),{},Object(Q.a)({},W,Y))})}function fa(R){return R.eventKey||"0-menu-"}function xa(R,W){var Y=W,D=R.children,a=R.eventKey;if(Y){var b;if(ie(D,function(o,A){o&&o.props&&!o.props.disabled&&Y===v(o,a,A)&&(b=!0)}),b)return Y}return Y=null,R.defaultActiveFirst&&ie(D,function(o,A){!Y&&o&&!o.props.disabled&&(Y=v(o,a,A))}),Y}function Ha(R){if(!R)return;var W=this.instanceArray.indexOf(R);W!==-1?this.instanceArray[W]=R:this.instanceArray.push(R)}var Na=function(R){Object($.a)(Y,R);var W=Object(f.a)(Y);function Y(D){var a;return Object(G.a)(this,Y),a=W.call(this,D),a.onKeyDown=function(b,o){var A=b.keyCode,T;if(a.getFlatInstanceArray().forEach(function(V){V&&V.props.active&&V.onKeyDown&&(T=V.onKeyDown(b))}),T)return 1;var q=null;return(A===C.a.UP||A===C.a.DOWN)&&(q=a.step(A===C.a.UP?-1:1)),q?(b.preventDefault(),Gn(a.props.store,fa(a.props),q.props.eventKey),typeof o=="function"&&o(q),1):void 0},a.onItemHover=function(b){var o=b.key,A=b.hover;Gn(a.props.store,fa(a.props),A?o:null)},a.onDeselect=function(b){a.props.onDeselect(b)},a.onSelect=function(b){a.props.onSelect(b)},a.onClick=function(b){a.props.onClick(b)},a.onOpenChange=function(b){a.props.onOpenChange(b)},a.onDestroy=function(b){a.props.onDestroy(b)},a.getFlatInstanceArray=function(){return a.instanceArray},a.step=function(b){var o=a.getFlatInstanceArray(),A=a.props.store.getState().activeKey[fa(a.props)],T=o.length;if(!T)return null;b<0&&(o=o.concat().reverse());var q=-1;if(o.every(function(Ie,Ue){return Ie&&Ie.props.eventKey===A?(q=Ue,!1):!0}),!a.props.defaultActiveFirst&&q!==-1&&Ea(o.slice(q,T-1)))return;var V=(q+1)%T,re=V;do{var ye=o[re];if(!ye||ye.props.disabled)re=(re+1)%T;else return ye}while(re!==V);return null},a.renderCommonMenuItem=function(b,o,A){var T=a.props.store.getState(),q=Object(w.a)(a),V=q.props,re=v(b,V.eventKey,o),ye=b.props;if(!ye||typeof b.type=="string")return b;var Ie=re===T.activeKey,Ue=Object(Z.a)(Object(Z.a)({mode:ye.mode||V.mode,level:V.level,inlineIndent:V.inlineIndent,renderMenuItem:a.renderMenuItem,rootPrefixCls:V.prefixCls,index:o,parentMenu:V.parentMenu,manualRef:ye.disabled?void 0:Object(X.a)(b.ref,Ha.bind(Object(w.a)(a))),eventKey:re,active:!ye.disabled&&Ie,multiple:V.multiple,onClick:function(xt){(ye.onClick||ae)(xt),a.onClick(xt)},onItemHover:a.onItemHover,motion:V.motion,subMenuOpenDelay:V.subMenuOpenDelay,subMenuCloseDelay:V.subMenuCloseDelay,forceSubMenuRender:V.forceSubMenuRender,onOpenChange:a.onOpenChange,onDeselect:a.onDeselect,onSelect:a.onSelect,builtinPlacements:V.builtinPlacements,itemIcon:ye.itemIcon||a.props.itemIcon,expandIcon:ye.expandIcon||a.props.expandIcon},A),{},{direction:V.direction});return(V.mode==="inline"||Ge())&&(Ue.triggerSubMenuAction="click"),l.cloneElement(b,Object(Z.a)(Object(Z.a)({},Ue),{},{key:re||o}))},a.renderMenuItem=function(b,o,A){if(!b)return null;var T=a.props.store.getState(),q={openKeys:T.openKeys,selectedKeys:T.selectedKeys,triggerSubMenuAction:a.props.triggerSubMenuAction,subMenuKey:A};return a.renderCommonMenuItem(b,o,q)},D.store.setState({activeKey:Object(Z.a)(Object(Z.a)({},D.store.getState().activeKey),{},Object(Q.a)({},D.eventKey,xa(D,D.activeKey)))}),a.instanceArray=[],a}return Object(te.a)(Y,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(a){return this.props.visible||a.visible||this.props.className!==a.className||!E()(this.props.style,a.style)}},{key:"componentDidUpdate",value:function(a){var b=this.props,o="activeKey"in b?b.activeKey:b.store.getState().activeKey[fa(b)],A=xa(b,o);if(A!==o)Gn(b.store,fa(b),A);else if("activeKey"in a){var T=xa(a,a.activeKey);A!==T&&Gn(b.store,fa(b),A)}}},{key:"render",value:function(){var a=this,b=Object(F.a)({},this.props);this.instanceArray=[];var o=ce()(b.prefixCls,b.className,"".concat(b.prefixCls,"-").concat(b.mode)),A={className:o,role:b.role||"menu"};b.id&&(A.id=b.id),b.focusable&&(A.tabIndex=0,A.onKeyDown=this.onKeyDown);var T=b.prefixCls,q=b.eventKey,V=b.visible,re=b.level,ye=b.mode,Ie=b.overflowedIndicator,Ue=b.theme;return Te.forEach(function(Qe){return delete b[Qe]}),delete b.onClick,l.createElement(Bn,Object(F.a)({},b,{prefixCls:T,mode:ye,tag:"ul",level:re,theme:Ue,visible:V,overflowedIndicator:Ie},A),Object(ne.a)(b.children).map(function(Qe,xt){return a.renderMenuItem(Qe,xt,q||"0-menu-")}))}}]),Y}(l.Component);Na.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:ae};var ya=Object(L.b)()(Na),Oa=ya,ia=t("Kwbf");function sa(R,W,Y){var D=R.prefixCls,a=R.motion,b=R.defaultMotions,o=b===void 0?{}:b,A=R.openAnimation,T=R.openTransitionName,q=W.switchingModeFromInline;if(a)return a;if(Object(P.a)(A)==="object"&&A)Object(ia.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof A=="string")return{motionName:"".concat(D,"-open-").concat(A)};if(T)return{motionName:T};var V=o[Y];return V||(q?null:o.other)}var za=function(R){Object($.a)(Y,R);var W=Object(f.a)(Y);function Y(D){var a;Object(G.a)(this,Y),a=W.call(this,D),a.onSelect=function(A){var T=Object(w.a)(a),q=T.props;if(q.selectable){var V=a.store.getState(),re=V.selectedKeys,ye=A.key;q.multiple?re=re.concat([ye]):re=[ye],"selectedKeys"in q||a.store.setState({selectedKeys:re}),q.onSelect(Object(Z.a)(Object(Z.a)({},A),{},{selectedKeys:re}))}},a.onClick=function(A){var T=a.getRealMenuMode(),q=Object(w.a)(a),V=q.store,re=q.props.onOpenChange;T!=="inline"&&!("openKeys"in a.props)&&(V.setState({openKeys:[]}),re([])),a.props.onClick(A)},a.onKeyDown=function(A,T){a.innerMenu.getWrappedInstance().onKeyDown(A,T)},a.onOpenChange=function(A){var T=Object(w.a)(a),q=T.props,V=a.store.getState().openKeys.concat(),re=!1,ye=function(Ue){var Qe=!1;if(Ue.open)Qe=V.indexOf(Ue.key)===-1,Qe&&V.push(Ue.key);else{var xt=V.indexOf(Ue.key);Qe=xt!==-1,Qe&&V.splice(xt,1)}re=re||Qe};Array.isArray(A)?A.forEach(ye):ye(A),re&&("openKeys"in a.props||a.store.setState({openKeys:V}),q.onOpenChange(V))},a.onDeselect=function(A){var T=Object(w.a)(a),q=T.props;if(q.selectable){var V=a.store.getState().selectedKeys.concat(),re=A.key,ye=V.indexOf(re);ye!==-1&&V.splice(ye,1),"selectedKeys"in q||a.store.setState({selectedKeys:V}),q.onDeselect(Object(Z.a)(Object(Z.a)({},A),{},{selectedKeys:V}))}},a.onMouseEnter=function(A){a.restoreModeVerticalFromInline();var T=a.props.onMouseEnter;T&&T(A)},a.onTransitionEnd=function(A){var T=A.propertyName==="width"&&A.target===A.currentTarget,q=A.target.className,V=Object.prototype.toString.call(q)==="[object SVGAnimatedString]"?q.animVal:q,re=A.propertyName==="font-size"&&V.indexOf("anticon")>=0;(T||re)&&a.restoreModeVerticalFromInline()},a.setInnerMenu=function(A){a.innerMenu=A},a.isRootMenu=!0;var b=D.defaultSelectedKeys,o=D.defaultOpenKeys;return"selectedKeys"in D&&(b=D.selectedKeys||[]),"openKeys"in D&&(o=D.openKeys||[]),a.store=Object(L.c)({selectedKeys:b,openKeys:o,activeKey:{"0-menu-":xa(D,D.activeKey)}}),a.state={switchingModeFromInline:!1,prevProps:D,inlineOpenKeys:[],store:a.store},a}return Object(te.a)(Y,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(a){var b=this.props,o=b.siderCollapsed,A=b.inlineCollapsed,T=b.onOpenChange;(!a.inlineCollapsed&&A||!a.siderCollapsed&&o)&&T([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var a=this.props.collapsedWidth,b=this.store,o=this.prevOpenKeys,A=this.getInlineCollapsed()&&(a===0||a==="0"||a==="0px");A?(this.prevOpenKeys=b.getState().openKeys.concat(),this.store.setState({openKeys:[]})):o&&(this.store.setState({openKeys:o}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var a=this.props.mode,b=this.state.switchingModeFromInline,o=this.getInlineCollapsed();return b&&o?"inline":o?"vertical":a}},{key:"getInlineCollapsed",value:function(){var a=this.props,b=a.inlineCollapsed,o=a.siderCollapsed;return o!==void 0?o:b}},{key:"restoreModeVerticalFromInline",value:function(){var a=this.state.switchingModeFromInline;a&&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 a=Object(Z.a)({},Object(oe.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),b=this.getRealMenuMode();return a.className+=" ".concat(a.prefixCls,"-root"),a.direction==="rtl"&&(a.className+=" ".concat(a.prefixCls,"-rtl")),a=Object(Z.a)(Object(Z.a)({},a),{},{mode:b,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:sa(this.props,this.state,b)}),delete a.openAnimation,delete a.openTransitionName,l.createElement(L.a,{store:this.store},l.createElement(Oa,Object(F.a)({},a,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(a,b){var o=b.prevProps,A=b.store,T=A.getState(),q={},V={prevProps:a};return o.mode==="inline"&&a.mode!=="inline"&&(V.switchingModeFromInline=!0),"openKeys"in a?q.openKeys=a.openKeys||[]:((a.inlineCollapsed&&!o.inlineCollapsed||a.siderCollapsed&&!o.siderCollapsed)&&(V.switchingModeFromInline=!0,V.inlineOpenKeys=T.openKeys,q.openKeys=[]),(!a.inlineCollapsed&&o.inlineCollapsed||!a.siderCollapsed&&o.siderCollapsed)&&(q.openKeys=b.inlineOpenKeys,V.inlineOpenKeys=[])),Object.keys(q).length&&A.setState(q),V}}]),Y}(l.Component);za.defaultProps={selectable:!0,onClick:ae,onSelect:ae,onOpenChange:ae,onDeselect:ae,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:l.createElement("span",null,"\xB7\xB7\xB7")};var Va=za,pa=function(R){Object($.a)(Y,R);var W=Object(f.a)(Y);function Y(){var D;return Object(G.a)(this,Y),D=W.apply(this,arguments),D.onKeyDown=function(a){var b=a.keyCode;return b===C.a.ENTER?(D.onClick(a),!0):void 0},D.onMouseLeave=function(a){var b=D.props,o=b.eventKey,A=b.onItemHover,T=b.onMouseLeave;A({key:o,hover:!1}),T({key:o,domEvent:a})},D.onMouseEnter=function(a){var b=D.props,o=b.eventKey,A=b.onItemHover,T=b.onMouseEnter;A({key:o,hover:!0}),T({key:o,domEvent:a})},D.onClick=function(a){var b=D.props,o=b.eventKey,A=b.multiple,T=b.onClick,q=b.onSelect,V=b.onDeselect,re=b.isSelected,ye={key:o,keyPath:[o],item:Object(w.a)(D),domEvent:a};T(ye),A?re?V(ye):q(ye):re||q(ye)},D.saveNode=function(a){D.node=a},D}return Object(te.a)(Y,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var a=this.props;a.onDestroy&&a.onDestroy(a.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 a,b=Object(Z.a)({},this.props),o=ce()(this.getPrefixCls(),b.className,(a={},Object(Q.a)(a,this.getActiveClassName(),!b.disabled&&b.active),Object(Q.a)(a,this.getSelectedClassName(),b.isSelected),Object(Q.a)(a,this.getDisabledClassName(),b.disabled),a)),A=Object(Z.a)(Object(Z.a)({},b.attribute),{},{title:typeof b.title=="string"?b.title:void 0,className:o,role:b.role||"menuitem","aria-disabled":b.disabled});b.role==="option"?A=Object(Z.a)(Object(Z.a)({},A),{},{role:"option","aria-selected":b.isSelected}):(b.role===null||b.role==="none")&&(A.role="none");var T={onClick:b.disabled?null:this.onClick,onMouseLeave:b.disabled?null:this.onMouseLeave,onMouseEnter:b.disabled?null:this.onMouseEnter},q=Object(Z.a)({},b.style);b.mode==="inline"&&(b.direction==="rtl"?q.paddingRight=b.inlineIndent*b.level:q.paddingLeft=b.inlineIndent*b.level),Te.forEach(function(re){return delete b[re]}),delete b.direction;var V=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(V=l.createElement(this.props.itemIcon,this.props)),l.createElement("li",Object(F.a)({},Object(oe.a)(b,["onClick","onMouseEnter","onMouseLeave","onSelect"]),A,T,{style:q,ref:this.saveNode}),b.children,V)}}]),Y}(l.Component);pa.isMenuItem=!0,pa.defaultProps={onSelect:ae,onMouseEnter:ae,onMouseLeave:ae,manualRef:ae};var Ra=Object(L.b)(function(R,W){var Y=R.activeKey,D=R.selectedKeys,a=W.eventKey,b=W.subMenuKey;return{active:Y[b]===a,isSelected:Array.isArray(D)?D.indexOf(a)!==-1:D===a}})(pa),_a=Ra,Ua=function(R){Object($.a)(Y,R);var W=Object(f.a)(Y);function Y(){var D;return Object(G.a)(this,Y),D=W.apply(this,arguments),D.renderInnerMenuItem=function(a){var b=D.props,o=b.renderMenuItem,A=b.index;return o(a,A,D.props.subMenuKey)},D}return Object(te.a)(Y,[{key:"render",value:function(){var a=Object(F.a)({},this.props),b=a.className,o=b===void 0?"":b,A=a.rootPrefixCls,T="".concat(A,"-item-group-title"),q="".concat(A,"-item-group-list"),V=a.title,re=a.children;return Te.forEach(function(ye){return delete a[ye]}),delete a.direction,l.createElement("li",Object(F.a)({},a,{onClick:function(Ie){return Ie.stopPropagation()},className:"".concat(o," ").concat(A,"-item-group")}),l.createElement("div",{className:T,title:typeof V=="string"?V:void 0},V),l.createElement("ul",{className:q},l.Children.map(re,this.renderInnerMenuItem)))}}]),Y}(l.Component);Ua.isMenuItemGroup=!0,Ua.defaultProps={disabled:!0};var J=Ua,Be=function(W){var Y=W.className,D=W.rootPrefixCls,a=W.style;return l.createElement("li",{className:"".concat(Y," ").concat(D,"-item-divider"),style:a})};Be.defaultProps={disabled:!0,className:"",style:{}};var De=Be,we=Va,it=t("eDIo");function Re(R,W){var Y=R.prefixCls,D=R.editable,a=R.locale,b=R.style;return!D||D.showAdd===!1?null:l.createElement("button",{ref:W,type:"button",className:"".concat(Y,"-nav-add"),style:b,"aria-label":(a==null?void 0:a.addAriaLabel)||"Add tab",onClick:function(A){D.onEdit("add",{event:A})}},D.addIcon||"+")}var Pt=l.forwardRef(Re);function Ut(R,W){var Y=R.prefixCls,D=R.id,a=R.tabs,b=R.locale,o=R.mobile,A=R.moreIcon,T=A===void 0?"More":A,q=R.moreTransitionName,V=R.style,re=R.className,ye=R.editable,Ie=R.tabBarGutter,Ue=R.rtl,Qe=R.onTabClick,xt=Object(l.useState)(!1),Vt=Object(N.a)(xt,2),Kt=Vt[0],Gt=Vt[1],$t=Object(l.useState)(null),Wt=Object(N.a)($t,2),Ht=Wt[0],on=Wt[1],Jt="".concat(D,"-more-popup"),Dn="".concat(Y,"-dropdown"),pn=Ht!==null?"".concat(Jt,"-").concat(Ht):null,yt=b==null?void 0:b.dropdownAriaLabel,Et=l.createElement(we,{onClick:function(vn){var Pn=vn.key,zn=vn.domEvent;Qe(Pn,zn),Gt(!1)},id:Jt,tabIndex:-1,role:"listbox","aria-activedescendant":pn,selectedKeys:[Ht],"aria-label":yt!==void 0?yt:"expanded dropdown"},a.map(function(sn){return l.createElement(_a,{key:sn.key,id:"".concat(Jt,"-").concat(sn.key),role:"option","aria-controls":D&&"".concat(D,"-panel-").concat(sn.key),disabled:sn.disabled},sn.tab)}));function Zt(sn){for(var vn=a.filter(function(oa){return!oa.disabled}),Pn=vn.findIndex(function(oa){return oa.key===Ht})||0,zn=vn.length,aa=0;aarn?(nn=Et,Jt.current="x"):(nn=Zt,Jt.current="y");var On=Date.now();On-Ht.current>100&&(on.current=!1),(W(-nn,-nn)||on.current)&&(yt.preventDefault(),on.current=!0),Ht.current=On}var pn=Object(l.useRef)(null);pn.current={onTouchStart:Gt,onTouchMove:$t,onTouchEnd:Wt,onWheel:Dn},l.useEffect(function(){function yt(ct){pn.current.onTouchStart(ct)}function Et(ct){pn.current.onTouchMove(ct)}function Zt(ct){pn.current.onTouchEnd(ct)}function nn(ct){pn.current.onWheel(ct)}return document.addEventListener("touchmove",Et,{passive:!1}),document.addEventListener("touchend",Zt,{passive:!1}),R.current.addEventListener("touchstart",yt,{passive:!1}),R.current.addEventListener("wheel",nn),function(){document.removeEventListener("touchmove",Et),document.removeEventListener("touchend",Zt)}},[])}function ea(){var R=Object(l.useRef)(new Map);function W(D){return R.current.has(D)||R.current.set(D,l.createRef()),R.current.get(D)}function Y(D){R.current.delete(D)}return[W,Y]}function jn(R,W){var Y=l.useRef(R),D=l.useState({}),a=Object(N.a)(D,2),b=a[1];function o(A){var T=typeof A=="function"?A(Y.current):A;T!==Y.current&&W(T,Y.current),Y.current=T,b({})}return[Y.current,o]}var ja=function(W){var Y=W.position,D=W.prefixCls,a=W.extra;if(!a)return null;var b,o=a;return Y==="right"&&(b=o.right||!o.left&&o||null),Y==="left"&&(b=o.left||null),b?l.createElement("div",{className:"".concat(D,"-extra-content")},b):null};function $a(R,W){var Y,D=l.useContext(An),a=D.prefixCls,b=D.tabs,o=R.className,A=R.style,T=R.id,q=R.animated,V=R.activeKey,re=R.rtl,ye=R.extra,Ie=R.editable,Ue=R.locale,Qe=R.tabPosition,xt=R.tabBarGutter,Vt=R.children,Kt=R.onTabClick,Gt=R.onTabScroll,$t=Object(l.useRef)(),Wt=Object(l.useRef)(),Ht=Object(l.useRef)(),on=Object(l.useRef)(),Jt=ea(),Dn=Object(N.a)(Jt,2),pn=Dn[0],yt=Dn[1],Et=Qe==="top"||Qe==="bottom",Zt=jn(0,function(mn,qt){Et&&Gt&&Gt({direction:mn>qt?"left":"right"})}),nn=Object(N.a)(Zt,2),ct=nn[0],rn=nn[1],On=jn(0,function(mn,qt){!Et&&Gt&&Gt({direction:mn>qt?"top":"bottom"})}),sn=Object(N.a)(On,2),vn=sn[0],Pn=sn[1],zn=Object(l.useState)(0),aa=Object(N.a)(zn,2),Nn=aa[0],oa=aa[1],va=Object(l.useState)(0),la=Object(N.a)(va,2),ua=la[0],Un=la[1],Yn=Object(l.useState)(0),Vn=Object(N.a)(Yn,2),Kn=Vn[0],Pa=Vn[1],Sa=Object(l.useState)(0),Ia=Object(N.a)(Sa,2),yn=Ia[0],Ca=Ia[1],ka=Object(l.useState)(null),Rn=Object(N.a)(ka,2),fn=Rn[0],$n=Rn[1],$o=Object(l.useState)(null),_o=Object(N.a)($o,2),Ga=_o[0],Xo=_o[1],Go=Object(l.useState)(0),Co=Object(N.a)(Go,2),Jo=Co[0],Qo=Co[1],Yo=Object(l.useState)(0),xo=Object(N.a)(Yo,2),Zo=xo[0],qo=xo[1],er=u(new Map),Oo=Object(N.a)(er,2),tr=Oo[0],nr=Oo[1],lo=j(b,tr,Nn),Ro="".concat(a,"-nav-operations-hidden"),eo=0,to=0;Et?re?(eo=0,to=Math.max(0,Nn-fn)):(eo=Math.min(0,fn-Nn),to=0):(eo=Math.min(0,Ga-ua),to=0);function uo(mn){return mnto?[to,!1]:[mn,!0]}var jo=Object(l.useRef)(),ar=Object(l.useState)(),Po=Object(N.a)(ar,2),co=Po[0],So=Po[1];function fo(){So(Date.now())}function po(){window.clearTimeout(jo.current)}xn($t,function(mn,qt){var Wn=!1;function ca(ao,oo){ao(function(ro){var io=uo(ro+oo),Ja=Object(N.a)(io,2),go=Ja[0],bo=Ja[1];return Wn=bo,go})}if(Et){if(fn>=Nn)return Wn;ca(rn,mn)}else{if(Ga>=ua)return Wn;ca(Pn,qt)}return po(),fo(),Wn}),Object(l.useEffect)(function(){return po(),co&&(jo.current=window.setTimeout(function(){So(0)},100)),po},[co]);function Mo(){var mn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:V,qt=lo.get(mn);if(!qt)return;if(Et){var Wn=ct;re?qt.rightct+fn&&(Wn=qt.right+qt.width-fn):qt.left<-ct?Wn=-qt.left:qt.left+qt.width>-ct+fn&&(Wn=-(qt.left+qt.width-fn)),Pn(0),rn(uo(Wn)[0])}else{var ca=vn;qt.top<-vn?ca=-qt.top:qt.top+qt.height>-vn+Ga&&(ca=-(qt.top+qt.height-Ga)),rn(0),Pn(uo(ca)[0])}}var or=ee(lo,{width:fn,height:Ga,left:ct,top:vn},{width:Kn,height:yn},{width:Jo,height:Zo},Object(Z.a)(Object(Z.a)({},R),{},{tabs:b})),wo=Object(N.a)(or,2),rr=wo[0],ir=wo[1],sr=b.map(function(mn){var qt=mn.key;return l.createElement(n,{id:T,prefixCls:a,key:qt,rtl:re,tab:mn,closable:mn.closable,editable:Ie,active:qt===V,tabPosition:Qe,tabBarGutter:xt,renderWrapper:Vt,removeAriaLabel:Ue==null?void 0:Ue.removeAriaLabel,ref:pn(qt),onClick:function(ca){Kt(qt,ca)},onRemove:function(){yt(qt)},onFocus:function(){Mo(qt),fo(),re||($t.current.scrollLeft=0),$t.current.scrollTop=0}})}),mo=g(function(){var mn,qt,Wn,ca,ao,oo,ro,io,Ja,go=((mn=$t.current)===null||mn===void 0?void 0:mn.offsetWidth)||0,bo=((qt=$t.current)===null||qt===void 0?void 0:qt.offsetHeight)||0,ko=((Wn=on.current)===null||Wn===void 0?void 0:Wn.offsetWidth)||0,Fo=((ca=on.current)===null||ca===void 0?void 0:ca.offsetHeight)||0,pr=((ao=Ht.current)===null||ao===void 0?void 0:ao.offsetWidth)||0,mr=((oo=Ht.current)===null||oo===void 0?void 0:oo.offsetHeight)||0;$n(go),Xo(bo),Qo(ko),qo(Fo);var Bo=(((ro=Wt.current)===null||ro===void 0?void 0:ro.offsetWidth)||0)-ko,Ko=(((io=Wt.current)===null||io===void 0?void 0:io.offsetHeight)||0)-Fo;oa(Bo),Un(Ko);var Wo=(Ja=Ht.current)===null||Ja===void 0?void 0:Ja.className.includes(Ro);Pa(Bo-(Wo?0:pr)),Ca(Ko-(Wo?0:mr)),nr(function(){var Ho=new Map;return b.forEach(function(hr){var zo=hr.key,so=pn(zo).current;so&&Ho.set(zo,{width:so.offsetWidth,height:so.offsetHeight,left:so.offsetLeft,top:so.offsetTop})}),Ho})}),lr=b.slice(0,rr),ur=b.slice(ir+1),Ao=[].concat(Object(S.a)(lr),Object(S.a)(ur)),cr=Object(l.useState)(),Do=Object(N.a)(cr,2),dr=Do[0],fr=Do[1],Ma=lo.get(V),To=Object(l.useRef)();function No(){y.a.cancel(To.current)}Object(l.useEffect)(function(){var mn={};return Ma&&(Et?(re?mn.right=Ma.right:mn.left=Ma.left,mn.width=Ma.width):(mn.top=Ma.top,mn.height=Ma.height)),No(),To.current=y()(function(){fr(mn)}),No},[Ma,Et,re]),Object(l.useEffect)(function(){Mo()},[V,Ma,lo,Et]),Object(l.useEffect)(function(){mo()},[re,xt,V,b.map(function(mn){return mn.key}).join("_")]);var Uo=!!Ao.length,no="".concat(a,"-nav-wrap"),ho,vo,Lo,Io;return Et?re?(vo=ct>0,ho=ct+fnTe&&(X="other")),_&&(E.filename=_),Object(S.useEffect)(function(){var St,It,lt=(St=document.cookie)===null||St===void 0||((It=St.replace(/\s/g,""))===null||It===void 0)?void 0:It.split(";");lt==null||lt.map(function(Mt){var wt=Mt.split("=");wt[0]==="_educoder_session"&&me(wt[1])})},[]),Object(S.useEffect)(function(){X==="office"&&et()},[X,L]);var et=function(){var St=Object(m.a)(M.a.mark(function It(){var lt,Mt,wt;return M.a.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return console.log("data:",L),lt=L,L.startsWith("http")||(lt=location.origin+lt),Mt=new URL(lt).pathname.split("/").pop(),Me.next=6,Object(i.U)({attachment_id:Mt});case 6:wt=Me.sent,ae(wt);case 8:case"end":return Me.stop()}},It)}));return function(){return St.apply(this,arguments)}}(),Ge=function(){if(L.startsWith("http")||L.startsWith("blob:")){Lt();return}Object(C.x)(_||"educoder",L,_)},Lt=function(){Object(C.v)(_||"educoder",decodeURIComponent(L))};return d.a.createElement("div",{style:Object(l.a)({},r||{}),className:"".concat(H&&x.a.bgBlack," ").concat(X?x.a.wrp:"hide")},s&&d.a.createElement("div",{className:x.a.close,ref:Ke},!!B&&d.a.createElement(Z.a,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:function(){return Ke.current}},d.a.createElement("span",{onClick:function(){e(),B()}},d.a.createElement("i",{className:"icon-yulanpizhu"}))),!p&&d.a.createElement(Z.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return Ke.current}},d.a.createElement("span",{onClick:Lt},d.a.createElement("i",{className:"icon-quxiaozhiding"}))),d.a.createElement(Z.a,{title:"\u5173\u95ED",getPopupContainer:function(){return Ke.current}},d.a.createElement("span",{className:"",onClick:e},d.a.createElement("i",{className:"icon-guanbi1"})))),d.a.createElement("div",{className:"".concat(x.a[P]," ").concat(P," ").concat(x.a.monaco," ").concat(X==="txt"?"show":"hide")},X==="txt"&&d.a.createElement(u.b,E)),X==="audio"&&d.a.createElement("audio",{src:"".concat(((K=L)===null||K===void 0?void 0:K.indexOf("http://"))>-1||((ee=L)===null||ee===void 0?void 0:ee.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(L),autoPlay:!0}),X==="video"&&d.a.createElement(d.a.Fragment,null,((F=L)===null||F===void 0?void 0:F.indexOf("http"))>-1?d.a.createElement("video",{controls:!0,src:"".concat(L),autoPlay:!0}):d.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(L),autoPlay:!0})),X==="office"&&O&&d.a.createElement("iframe",{src:"".concat(v,"/office.html?key=").concat(O.key,"&url=").concat(U+O.url,"&callbackUrl=").concat(U+O.callbackUrl,"&fileType=").concat(O.fileType,"&title=").concat(O.title,"&model=").concat($,"&officeServer=").concat(n.a.OFFICE_SERVER,"&disabledDownload=").concat(!!p)}),(X==="xlsx"||X==="doc"||X==="pptx"||X==="docx")&&d.a.createElement("iframe",{src:"/react/build/office.html?key=".concat(le.key,"&url=").concat(n.a.API_SERVER+le.url,"&callbackUrl=").concat(n.a.API_SERVER+le.callbackUrl,"&fileType=").concat(le.fileType,"&title=").concat(le.title,"&model=").concat(le.model)}),X==="html"&&d.a.createElement("iframe",{src:L+"&disposition=inline"}),X==="pdf"&&d.a.createElement("embed",{className:x.a.embed,src:L}),X==="image"&&d.a.createElement("img",{src:"".concat(((G=L)===null||G===void 0?void 0:G.indexOf("http://"))>-1||((te=L)===null||te===void 0?void 0:te.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(L)}),X==="other"&&d.a.createElement("div",null,d.a.createElement(N.a,{type:"primary",size:"large",onClick:Ge},d.a.createElement(g.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),X==="download"&&d.a.createElement(N.a,{type:"primary",size:"large",onClick:Ge},d.a.createElement(g.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},pmY6:function(dt,z,t){"use strict";t.d(z,"g",function(){return l}),t.d(z,"f",function(){return m}),t.d(z,"e",function(){return ce}),t.d(z,"h",function(){return ne}),t.d(z,"b",function(){return M}),t.d(z,"a",function(){return S}),t.d(z,"d",function(){return d}),t.d(z,"c",function(){return y});var Q=!1,N="__is_disposable_tracked__";function _e(x){if(!Q)return;if(x&&x!==S.None)try{x[N]=!0}catch(g){}}function Z(x){if(!Q)return x;var g=new Error("Potentially leaked disposable").stack;return setTimeout(function(){x[N]||console.log(g)},3e3),x}function l(x){return typeof x.dispose=="function"&&x.dispose.length===0}function m(x){return Array.isArray(x)?(x.forEach(function(g){g&&(_e(g),g.dispose())}),[]):x?(_e(x),x.dispose(),x):void 0}function ce(){for(var x=[],g=0;g=_e.length?{done:!0}:{done:!1,value:_e[m++]}},e:function(y){throw y},f:ce}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ne=!0,M=!1,S;return{s:function(){l=_e[Symbol.iterator]()},n:function(){var y=l.next();return ne=y.done,y},e:function(y){M=!0,S=y},f:function(){try{!ne&&l.return!=null&&l.return()}finally{if(M)throw S}}}}},sR1s:function(dt,z,t){"use strict";t.d(z,"b",function(){return Z}),t.d(z,"a",function(){return l}),t.d(z,"c",function(){return m}),t.d(z,"d",function(){return ce});var Q=t("U8pU"),N="RC_TABLE_KEY";function _e(ne){return ne==null?[]:Array.isArray(ne)?ne:[ne]}function Z(ne,M){if(!M&&typeof M!="number")return ne;for(var S=_e(M),d=ne,y=0;y1)Object(S.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(j.length===0)return Object(S.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var K=j[0];if(m.isValidElement(K)&&Object(d.c)(K)){var ee=K.ref;j[0]=m.cloneElement(K,{ref:Object(d.a)(ee,this.setChildNode)})}return j.length===1?j[0]:j.map(function(F,G){return!m.isValidElement(F)||"key"in F&&F.key!==null?F:m.cloneElement(F,{key:"".concat(x,"-").concat(G)})})}}]),i}(m.Component);g.displayName="ResizeObserver",z.a=g},vHTk:function(dt,z,t){dt.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},wCXF:function(dt,z,t){"use strict";t.d(z,"a",function(){return It});var Q=t("rePB"),N=t("VTBJ"),_e=t("KQm4"),Z=t("U8pU"),l=t("ODXe"),m=t("q1tI"),ce=t("TSYQ"),ne=t.n(ce),M=t("Gytx"),S=t.n(M),d=t("Kwbf"),y=t("t23M"),x=t("qx4F"),g=t("6eGT"),u=t("IBYe"),C=t("Ff2n"),i=t("c+Xe"),n=t("fyJ8"),h=t("biw7");function j(ue,Me,Pe,ve,Je){var Ve=Pe[ue]||{},Fe=Pe[Me]||{},ke,He;Ve.fixed==="left"?ke=ve.left[ue]:Fe.fixed==="right"&&(He=ve.right[Me]);var Ye=!1,ze=!1,rt=!1,ft=!1,mt=Pe[Me+1],At=Pe[ue-1];if(Je==="rtl"){if(ke!==void 0){var zt=At&&At.fixed==="left";ft=!zt}else if(He!==void 0){var kt=mt&&mt.fixed==="right";rt=!kt}}else if(ke!==void 0){var Tt=mt&&mt.fixed==="left";Ye=!Tt}else if(He!==void 0){var Ot=At&&At.fixed==="right";ze=!Ot}return{fixLeft:ke,fixRight:He,lastFixLeft:Ye,firstFixRight:ze,lastFixRight:rt,firstFixLeft:ft,isSticky:ve.isSticky}}var K=t("sR1s");function ee(ue){var Me=ue.cells,Pe=ue.stickyOffsets,ve=ue.flattenColumns,Je=ue.rowComponent,Ve=ue.cellComponent,Fe=ue.onHeaderRow,ke=ue.index,He=m.useContext(h.a),Ye=He.prefixCls,ze=He.direction,rt;Fe&&(rt=Fe(Me.map(function(mt){return mt.column}),ke));var ft=Object(K.a)(Me.map(function(mt){return mt.column}));return m.createElement(Je,Object.assign({},rt),Me.map(function(mt,At){var zt=mt.column,kt=j(mt.colStart,mt.colEnd,ve,Pe,ze),Tt;return zt&&zt.onHeaderCell&&(Tt=mt.column.onHeaderCell(zt)),m.createElement(n.a,Object.assign({},mt,{ellipsis:zt.ellipsis,align:zt.align,component:Ve,prefixCls:Ye,key:ft[At]},kt,{additionalProps:Tt,rowType:"header"}))}))}ee.displayName="HeaderRow";var F=ee;function G(ue){var Me=[];function Pe(Fe,ke){var He=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Me[He]=Me[He]||[];var Ye=ke,ze=Fe.filter(Boolean).map(function(rt){var ft={key:rt.key,className:rt.className||"",children:rt.title,column:rt,colStart:Ye},mt=1,At=rt.children;return At&&At.length>0&&(mt=Pe(At,Ye,He+1).reduce(function(zt,kt){return zt+kt},0),ft.hasSubColumns=!0),"colSpan"in rt&&(mt=rt.colSpan),"rowSpan"in rt&&(ft.rowSpan=rt.rowSpan),ft.colSpan=mt,ft.colEnd=ft.colStart+mt-1,Me[He].push(ft),Ye+=mt,mt});return ze}Pe(ue,0);for(var ve=Me.length,Je=function(ke){Me[ke].forEach(function(He){!("rowSpan"in He)&&!He.hasSubColumns&&(He.rowSpan=ve-ke)})},Ve=0;Ve=0;ke-=1){var He=Me[ke],Ye=Pe&&Pe[ke],ze=Ye&&Ye[$.a];(He||ze||Fe)&&(Je.unshift(m.createElement("col",Object.assign({key:ke,style:{width:He,minWidth:He}},ze))),Fe=!0)}return m.createElement("colgroup",null,Je)}var L=f;function oe(ue,Me){return Object(m.useMemo)(function(){for(var Pe=[],ve=0;ve1?fe-1:0),Le=1;Le=rt&&(Dt=rt-ft),Fe({scrollLeft:Dt/rt*(ze+2)}),Ot.current.x=jt.pageX},Ct=function(){var jt=Object(Te.b)(Ve.current).top,tt=jt+Ve.current.offsetHeight,Ze=document.documentElement.scrollTop+window.innerHeight;tt-Object(x.a)()<=Ze||jt>=Ze-ke?Tt(function(st){return Object(N.a)(Object(N.a)({},st),{},{isHiddenScrollBar:!0})}):Tt(function(st){return Object(N.a)(Object(N.a)({},st),{},{isHiddenScrollBar:!1})})},gt=function(jt){Tt(function(tt){return Object(N.a)(Object(N.a)({},tt),{},{scrollLeft:jt/ze*rt||0})})};return m.useImperativeHandle(Pe,function(){return{setScrollLeft:gt}}),m.useEffect(function(){var Rt=Object(Oe.a)(document.body,"mouseup",gn,!1),jt=Object(Oe.a)(document.body,"mousemove",Bt,!1);return Ct(),function(){Rt.remove(),jt.remove()}},[ft,Xe]),m.useEffect(function(){var Rt=Object(Oe.a)(window,"scroll",Ct,!1),jt=Object(Oe.a)(window,"resize",Ct,!1);return function(){Rt.remove(),jt.remove()}},[]),m.useEffect(function(){kt.isHiddenScrollBar||Tt(function(Rt){var jt,tt;return Object(N.a)(Object(N.a)({},Rt),{},{scrollLeft:Ve.current.scrollLeft/((jt=Ve.current)===null||jt===void 0?void 0:jt.scrollWidth)*((tt=Ve.current)===null||tt===void 0?void 0:tt.clientWidth)})})},[kt.isHiddenScrollBar]),ze<=rt||!ft||kt.isHiddenScrollBar?null:m.createElement("div",{style:{height:Object(x.a)(),width:rt,bottom:ke},className:"".concat(Ye,"-sticky-scroll")},m.createElement("div",{onMouseDown:ht,ref:mt,className:ne()("".concat(Ye,"-sticky-scroll-bar"),Object(Q.a)({},"".concat(Ye,"-sticky-scroll-bar-active"),Xe)),style:{width:"".concat(ft,"px"),transform:"translate3d(".concat(kt.scrollLeft,"px, 0, 0)")}}))},et=m.forwardRef(Ke);function Ge(ue,Me){return m.useMemo(function(){var Pe=!!ue;return{isSticky:Pe,stickyClassName:Pe?"".concat(Me,"-sticky-header"):"",offsetHeader:Object(Z.a)(ue)==="object"&&ue.offsetHeader||0,offsetScroll:Object(Z.a)(ue)==="object"&&ue.offsetScroll||0}},[ue,Me])}var Lt=[],St={},It="rc-table-internal-hook",lt=m.memo(function(ue){var Me=ue.children;return Me},function(ue,Me){return S()(ue.props,Me.props)?ue.pingLeft!==Me.pingLeft||ue.pingRight!==Me.pingRight:!1});function Mt(ue){var Me,Pe=ue.prefixCls,ve=ue.className,Je=ue.rowClassName,Ve=ue.style,Fe=ue.data,ke=ue.rowKey,He=ue.scroll,Ye=ue.tableLayout,ze=ue.direction,rt=ue.title,ft=ue.footer,mt=ue.summary,At=ue.id,zt=ue.showHeader,kt=ue.components,Tt=ue.emptyText,Ot=ue.onRow,dn=ue.onHeaderRow,ln=ue.internalHooks,Xe=ue.transformColumns,Ft=ue.internalRefs,gn=ue.sticky,ht=Fe||Lt,Bt=!!ht.length,Ct=m.useState(0),gt=Object(l.a)(Ct,2),Rt=gt[0],jt=gt[1];m.useEffect(function(){jt(Object(x.a)())});var tt=m.useMemo(function(){return Object(K.c)(kt,{})},[kt]),Ze=m.useCallback(function(pt,_t){return Object(K.b)(tt,pt)||_t},[tt]),st=m.useMemo(function(){return typeof ke=="function"?ke:function(pt){var _t=pt&&pt[ke];return _t}},[ke]),Dt=Object($.c)(ue),un=Dt.expandIcon,en=Dt.expandedRowKeys,En=Dt.defaultExpandedRowKeys,Sn=Dt.defaultExpandAllRows,Ln=Dt.expandedRowRender,In=Dt.onExpand,Mn=Dt.onExpandedRowsChange,Zn=Dt.expandRowByClick,_n=Dt.rowExpandable,wn=Dt.expandIconColumnIndex,kn=Dt.expandedRowClassName,ut=Dt.childrenColumnName,se=Dt.indentSize,Ne=un||U,qe=ut||"children",at=m.useMemo(function(){return Ln?"row":ue.expandable&&ln===It&&ue.expandable.__PARENT_RENDER_ICON__||ht.some(function(pt){return pt&&Object(Z.a)(pt)==="object"&&pt[qe]})?"nest":!1},[!!Ln,ht]),vt=m.useState(function(){return En||(Sn?ie(ht,st,qe):[])}),ot=Object(l.a)(vt,2),k=ot[0],be=ot[1],fe=m.useMemo(function(){return new Set(en||k||[])},[en,k]),ge=m.useCallback(function(pt){var _t=st(pt,ht.indexOf(pt)),Qt,hn=fe.has(_t);hn?(fe.delete(_t),Qt=Object(_e.a)(fe)):Qt=[].concat(Object(_e.a)(fe),[_t]),be(Qt),In&&In(!hn,pt),Mn&&Mn(Qt)},[st,fe,ht,In,Mn]),Le=m.useState(0),nt=Object(l.a)(Le,2),pe=nt[0],Ce=nt[1],We=Object(je.b)(Object(N.a)(Object(N.a)(Object(N.a)({},ue),Dt),{},{expandable:!!Ln,expandedKeys:fe,getRowKey:st,onTriggerExpand:ge,expandIcon:Ne,expandIconColumnIndex:wn,direction:ze}),ln===It?Xe:null),Xt=Object(l.a)(We,2),an=Xt[0],Yt=Xt[1],Cn=m.useMemo(function(){return{columns:an,flattenColumns:Yt}},[an,Yt]),tn=m.useRef(),bt=m.useRef(),Nt=m.useRef(),Tn=m.useState(!1),da=Object(l.a)(Tn,2),Jn=da[0],Fa=da[1],ra=m.useState(!1),bn=Object(l.a)(ra,2),ma=bn[0],Qa=bn[1],Ba=he(new Map),Ka=Object(l.a)(Ba,2),Ya=Ka[0],Za=Ka[1],qn=Object(K.a)(Yt),ga=qn.map(function(pt){return Ya.get(pt)}),Wa=m.useMemo(function(){return ga},[ga.join("_")]),wa=I(Wa,Yt.length,ze),Hn=He&&Object(K.d)(He.y),Xn=He&&Object(K.d)(He.x),Qn=Xn&&Yt.some(function(pt){var _t=pt.fixed;return _t}),Aa=m.useRef(),ha=Ge(gn,Pe),ba=ha.isSticky,Da=ha.offsetHeader,qa=ha.offsetScroll,Ta=ha.stickyClassName,Bn,Ea,Gn;Hn&&(Ea={overflowY:"scroll",maxHeight:He.y}),Xn&&(Bn={overflowX:"auto"},Hn||(Ea={overflowY:"hidden"}),Gn={width:He.x===!0?"auto":He.x,minWidth:"100%"});var fa=m.useCallback(function(pt,_t){Za(function(Qt){var hn=new Map(Qt);return hn.set(pt,_t),hn})},[]),xa=me(null),Ha=Object(l.a)(xa,2),Na=Ha[0],ya=Ha[1];function Oa(pt,_t){if(!_t)return;typeof _t=="function"?_t(pt):_t.scrollLeft!==pt&&(_t.scrollLeft=pt)}var ia=function(_t){var Qt=_t.currentTarget,hn=_t.scrollLeft,cn=typeof hn=="number"?hn:Qt.scrollLeft,xn=Qt||St;if(!ya()||ya()===xn){var ea;Na(xn),Oa(cn,bt.current),Oa(cn,Nt.current),Oa(cn,(ea=Aa.current)===null||ea===void 0?void 0:ea.setScrollLeft)}if(Qt){var jn=Qt.scrollWidth,ja=Qt.clientWidth;Fa(cn>0),Qa(cn0?[].concat(Object(N.a)(C),Object(N.a)(d(j).map(function(K){return Object(_e.a)({fixed:h},K)}))):[].concat(Object(N.a)(C),[Object(_e.a)(Object(_e.a)({},i),{},{fixed:h})])},[])}function y(u){for(var C=!0,i=0;i=0;j-=1){var K=u[j];if(h&&K.fixed!=="right")h=!1;else if(!h&&K.fixed==="right"){Object(ce.a)(!1,"Index ".concat(j+1," of `columns` missing `fixed='right'` prop."));break}}}function x(u){return u.map(function(C){var i=C.fixed,n=Object(Z.a)(C,["fixed"]),h=i;return i==="left"?h="right":i==="right"&&(h="left"),Object(_e.a)({fixed:h},n)})}function g(u,C){var i=u.prefixCls,n=u.columns,h=u.children,j=u.expandable,K=u.expandedKeys,ee=u.getRowKey,F=u.onTriggerExpand,G=u.expandIcon,te=u.rowExpandable,w=u.expandIconColumnIndex,$=u.direction,f=u.expandRowByClick,L=l.useMemo(function(){return n||S(h)},[n,h]),oe=l.useMemo(function(){if(j){var E,P=w||0,r=L[P],s=(E={},Object(Q.a)(E,M.a,{className:"".concat(i,"-expand-icon-col")}),Object(Q.a)(E,"title",""),Object(Q.a)(E,"fixed",r?r.fixed:null),Object(Q.a)(E,"className","".concat(i,"-row-expand-icon-cell")),Object(Q.a)(E,"render",function(p,B,le){var de=ee(B,le),Ae=K.has(de),Ee=te?te(B):!0,je=G({prefixCls:i,expanded:Ae,expandable:Ee,record:B,onExpand:F});return f?l.createElement("span",{onClick:function(xe){return xe.stopPropagation()}},je):je}),E),e=L.slice();return P>=0&&e.splice(P,0,s),e}return L},[j,L,ee,K,G,$]),X=l.useMemo(function(){var E=oe;return C&&(E=C(E)),E.length||(E=[{render:function(){return null}}]),E},[C,oe,$]),_=l.useMemo(function(){return $==="rtl"?x(d(X)):d(X)},[X,$]);return[X,_]}z.b=g},"y0+3":function(dt,z,t){"use strict";t.d(z,"a",function(){return d}),t.d(z,"b",function(){return x});var Q=/margin|padding|width|height|max|min|offset/,N={left:!0,top:!0},_e={cssFloat:1,styleFloat:1,float:1};function Z(g){return g.nodeType===1?g.ownerDocument.defaultView.getComputedStyle(g,null):{}}function l(g,u,C){if(u=u.toLowerCase(),C==="auto"){if(u==="height")return g.offsetHeight;if(u==="width")return g.offsetWidth}return u in N||(N[u]=Q.test(u)),N[u]?parseFloat(C)||0:C}function m(g,u){var C=arguments.length,i=Z(g);return u=_e[u]?"cssFloat"in g.style?"cssFloat":"styleFloat":u,C===1?i:l(g,u,i[u]||g.style[u])}function ce(g,u,C){var i=arguments.length;if(u=_e[u]?"cssFloat"in g.style?"cssFloat":"styleFloat":u,i===3)return typeof C=="number"&&Q.test(u)&&(C="".concat(C,"px")),g.style[u]=C,C;for(var n in u)u.hasOwnProperty(n)&&ce(g,n,u[n]);return Z(g)}function ne(g){return g===document.body?document.documentElement.clientWidth:g.offsetWidth}function M(g){return g===document.body?window.innerHeight||document.documentElement.clientHeight:g.offsetHeight}function S(){var g=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),u=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:g,height:u}}function d(){var g=document.documentElement.clientWidth,u=window.innerHeight||document.documentElement.clientHeight;return{width:g,height:u}}function y(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function x(g){var u=g.getBoundingClientRect(),C=document.documentElement;return{left:u.left+(window.pageXOffset||C.scrollLeft)-(C.clientLeft||document.body.clientLeft||0),top:u.top+(window.pageYOffset||C.scrollTop)-(C.clientTop||document.body.clientTop||0)}}},zmGA:function(dt,z){dt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAAXNSR0IArs4c6QAAEhlJREFUeF7tnXlw3dV1xz/3/d6q1ZJtvFtYliyBWYxlsIxtFpewhrhAITDBBMeQUgY6De0QhqRJSyctYTqEQJrpTEloTTPQLAUKYUkdkwAG7HrBNsYWkmXZlm0t1r6/936/27nvSUJ66++993u/pzjcfzSj373nnHu+727nnnOuYIqXA8dl6cgwVVJQJSVVQlAFzJJQKKBQyvBf1Q0JfULQF/oLfUCrlNQJQZ2Q1Hm81C1dIDqncpfFVBNu9zE5VwZZh846BFdKydlWyigETUjeRmOrcLJ1+UJx0kr6mdKaEoDsbZRVQYO7JNyCDI0A+4oaPfArp4PNF5aLOvsYx+aUM0AONsvpg8PcISUbgEtyrYhR/juE4Pk8Ly+cM1905EIm2wHZ2yznB4Z5GLgHiS8XnU7KUzAEPOvy8sSF80Vz0voWVrANkJ3H5GL8PCJkaGpyW9iHrJES4JeCzbh5fMVCc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2Q7IGNibm+W0480cccnzdx1ute+N0viqUkpYm4p/1c5m81lZ/PCyvnC1lzGtk9ZiX4vb++T1cc62dB8mltauqlS/ld2FBXXOLOIuvkz+VXVXDavqRZ1dvBNxCNnIySeUCq87mgL65rbWdfSzbqeQcpMWC5M6VE5TJfkc3ROCVvnlbJ1QRFbl1eLGP4rpshlpdKUAySylyqOvr2Lqq4BqroHqeoZomrEz2x/kILhIIX+IIUjAULXQR4nfU4XfV6NPreTfp+HlmIfddPyqCvJp25mCXVLF4jo7MlZUW16RP8ff48Qd2Sa15cAAAAASUVORK5CYII="}}]); diff --git a/p__Innovation__Detail.bbec5500.async.js b/p__Innovation__Detail.bbec5500.async.js index 1d2f3800a5..4ee5bd262b 100644 --- a/p__Innovation__Detail.bbec5500.async.js +++ b/p__Innovation__Detail.bbec5500.async.js @@ -1,31 +1,31 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[156,6,8,9,10,13],{"+QRC":function(Te,k,o){"use strict";var le=o("E9nw"),J={"text/plain":"Text","text/html":"Url",default:"Text"},Re="Copy to clipboard: #{key}, Enter";function $(D){var fe=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return D.replace(/#{\s*key\s*}/g,fe)}function x(D,fe){var oe,z,L,C,_,O,u=!1;fe||(fe={}),oe=fe.debug||!1;try{L=le(),C=document.createRange(),_=document.getSelection(),O=document.createElement("span"),O.textContent=D,O.style.all="unset",O.style.position="fixed",O.style.top=0,O.style.clip="rect(0, 0, 0, 0)",O.style.whiteSpace="pre",O.style.webkitUserSelect="text",O.style.MozUserSelect="text",O.style.msUserSelect="text",O.style.userSelect="text",O.addEventListener("copy",function(m){if(m.stopPropagation(),fe.format)if(m.preventDefault(),typeof m.clipboardData=="undefined"){oe&&console.warn("unable to use e.clipboardData"),oe&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var b=J[fe.format]||J.default;window.clipboardData.setData(b,D)}else m.clipboardData.clearData(),m.clipboardData.setData(fe.format,D);fe.onCopy&&(m.preventDefault(),fe.onCopy(m.clipboardData))}),document.body.appendChild(O),C.selectNodeContents(O),_.addRange(C);var g=document.execCommand("copy");if(!g)throw new Error("copy command was unsuccessful");u=!0}catch(m){oe&&console.error("unable to copy using execCommand: ",m),oe&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(fe.format||"text",D),fe.onCopy&&fe.onCopy(window.clipboardData),u=!0}catch(b){oe&&console.error("unable to copy using clipboardData: ",b),oe&&console.error("falling back to prompt"),z=$("message"in fe?fe.message:Re),window.prompt(z,D)}}finally{_&&(typeof _.removeRange=="function"?_.removeRange(C):_.removeAllRanges()),O&&document.body.removeChild(O),L()}return u}Te.exports=x},"+ua5":function(Te,k,o){},"/GNS":function(Te,k,o){Te.exports=o.p+"static/search1.c4136dd4.png"},"/cxE":function(Te,k,o){"use strict";o.d(k,"e",function(){return Re}),o.d(k,"f",function(){return $}),o.d(k,"g",function(){return x}),o.d(k,"d",function(){return fe}),o.d(k,"a",function(){return oe}),o.d(k,"b",function(){return z}),o.d(k,"c",function(){return L});var le=function(){function C(){this.listeners=[],this.unexpectedErrorHandler=function(_){setTimeout(function(){throw _.stack?new Error(_.message+` +(window.webpackJsonp=window.webpackJsonp||[]).push([[156,6,8,9,10,13],{"+QRC":function(Te,k,o){"use strict";var le=o("E9nw"),J={"text/plain":"Text","text/html":"Url",default:"Text"},Re="Copy to clipboard: #{key}, Enter";function $(D){var fe=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return D.replace(/#{\s*key\s*}/g,fe)}function x(D,fe){var oe,z,L,C,_,O,u=!1;fe||(fe={}),oe=fe.debug||!1;try{L=le(),C=document.createRange(),_=document.getSelection(),O=document.createElement("span"),O.textContent=D,O.style.all="unset",O.style.position="fixed",O.style.top=0,O.style.clip="rect(0, 0, 0, 0)",O.style.whiteSpace="pre",O.style.webkitUserSelect="text",O.style.MozUserSelect="text",O.style.msUserSelect="text",O.style.userSelect="text",O.addEventListener("copy",function(m){if(m.stopPropagation(),fe.format)if(m.preventDefault(),typeof m.clipboardData=="undefined"){oe&&console.warn("unable to use e.clipboardData"),oe&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var E=J[fe.format]||J.default;window.clipboardData.setData(E,D)}else m.clipboardData.clearData(),m.clipboardData.setData(fe.format,D);fe.onCopy&&(m.preventDefault(),fe.onCopy(m.clipboardData))}),document.body.appendChild(O),C.selectNodeContents(O),_.addRange(C);var g=document.execCommand("copy");if(!g)throw new Error("copy command was unsuccessful");u=!0}catch(m){oe&&console.error("unable to copy using execCommand: ",m),oe&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(fe.format||"text",D),fe.onCopy&&fe.onCopy(window.clipboardData),u=!0}catch(E){oe&&console.error("unable to copy using clipboardData: ",E),oe&&console.error("falling back to prompt"),z=$("message"in fe?fe.message:Re),window.prompt(z,D)}}finally{_&&(typeof _.removeRange=="function"?_.removeRange(C):_.removeAllRanges()),O&&document.body.removeChild(O),L()}return u}Te.exports=x},"+ua5":function(Te,k,o){},"/GNS":function(Te,k,o){Te.exports=o.p+"static/search1.c4136dd4.png"},"/cxE":function(Te,k,o){"use strict";o.d(k,"e",function(){return Re}),o.d(k,"f",function(){return $}),o.d(k,"g",function(){return x}),o.d(k,"d",function(){return fe}),o.d(k,"a",function(){return oe}),o.d(k,"b",function(){return z}),o.d(k,"c",function(){return L});var le=function(){function C(){this.listeners=[],this.unexpectedErrorHandler=function(_){setTimeout(function(){throw _.stack?new Error(_.message+` -`+_.stack):_},0)}}return C.prototype.emit=function(_){this.listeners.forEach(function(O){O(_)})},C.prototype.onUnexpectedError=function(_){this.unexpectedErrorHandler(_),this.emit(_)},C.prototype.onUnexpectedExternalError=function(_){this.unexpectedErrorHandler(_)},C}(),J=new le;function Re(C){fe(C)||J.onUnexpectedError(C);return}function $(C){fe(C)||J.onUnexpectedExternalError(C);return}function x(C){if(C instanceof Error){var _=C.name,O=C.message,u=C.stacktrace||C.stack;return{$isError:!0,name:_,message:O,stack:u}}return C}var D="Canceled";function fe(C){return C instanceof Error&&C.name===D&&C.message===D}function oe(){var C=new Error(D);return C.name=C.message,C}function z(C){return C?new Error("Illegal argument: "+C):new Error("Illegal argument")}function L(C){return C?new Error("Illegal state: "+C):new Error("Illegal state")}},"1Sn+":function(Te,k,o){},"1XHU":function(Te,k,o){"use strict";var le=o("2qtc"),J=o("kLXV"),Re=o("q1tI"),$=o.n(Re),x=o("9kvl"),D=o("3wET"),fe=o.n(D),oe=o("bUJZ"),z=o.n(oe),L=o("Ct/S"),C=o.n(L),_=function(u){var g=u.visible,m=u.occupationValue,b=u.onCancel,p=b===void 0?function(){}:b,y=function(){return $.a.createElement("div",{className:C.a.flexColumn},$.a.createElement("img",{className:C.a.img,src:z.a}),$.a.createElement("span",{className:C.a.content},"\u672A\u804C\u4E1A\u8BA4\u8BC1"))},S=function(){return $.a.createElement("div",{className:C.a.flexColumn},$.a.createElement("img",{className:C.a.img,src:fe.a}),$.a.createElement("span",{className:C.a.content},"\u672A\u5B9E\u540D\u8BA4\u8BC1"))},U=function(){return m===3?$.a.createElement($.a.Fragment,null,S(),y()):m===2?y():S()};return $.a.createElement(J.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:g,title:"\u56E0\u4E3A\u4EE5\u4E0B\u539F\u56E0\uFF0C\u60A8\u6682\u65F6\u4E0D\u80FD\u8FDB\u884C\u64CD\u4F5C",okText:"\u7ACB\u5373\u8BA4\u8BC1",cancelText:"\u53D6\u6D88",width:"600px",onOk:function(){p(),x.d.push("/account/certification")},onCancel:function(){p()}},$.a.createElement("div",{className:C.a.tilte},"\u8BF7\u5728\u5B8C\u6210\u6761\u4EF6\u540E\u91CD\u8BD5"),$.a.createElement("div",{className:C.a.flexRow},U()))};k.a=Object(x.a)(function(O){var u=O.paperlibrary,g=O.loading,m=O.globalSetting;return{paperlibrary:u,globalSetting:m,loading:g.effects}})(_)},"1ZF9":function(Te,k,o){Te.exports=o.p+"static/Authorize.cc9c212f.png"},"24hK":function(Te,k,o){"use strict";o.d(k,"a",function(){return Re});var le=o("JYp7"),J=function(){function $(x){this.element=x,this.next=$.Undefined,this.prev=$.Undefined}return $.Undefined=new $(void 0),$}(),Re=function(){function $(){this._first=J.Undefined,this._last=J.Undefined,this._size=0}return Object.defineProperty($.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),$.prototype.isEmpty=function(){return this._first===J.Undefined},$.prototype.clear=function(){this._first=J.Undefined,this._last=J.Undefined,this._size=0},$.prototype.unshift=function(x){return this._insert(x,!1)},$.prototype.push=function(x){return this._insert(x,!0)},$.prototype._insert=function(x,D){var fe=this,oe=new J(x);if(this._first===J.Undefined)this._first=oe,this._last=oe;else if(D){var z=this._last;this._last=oe,oe.prev=z,z.next=oe}else{var L=this._first;this._first=oe,oe.next=L,L.prev=oe}this._size+=1;var C=!1;return function(){C||(C=!0,fe._remove(oe))}},$.prototype.shift=function(){if(this._first===J.Undefined)return;var x=this._first.element;return this._remove(this._first),x},$.prototype.pop=function(){if(this._last===J.Undefined)return;var x=this._last.element;return this._remove(this._last),x},$.prototype._remove=function(x){if(x.prev!==J.Undefined&&x.next!==J.Undefined){var D=x.prev;D.next=x.next,x.next.prev=D}else x.prev===J.Undefined&&x.next===J.Undefined?(this._first=J.Undefined,this._last=J.Undefined):x.next===J.Undefined?(this._last=this._last.prev,this._last.next=J.Undefined):x.prev===J.Undefined&&(this._first=this._first.next,this._first.prev=J.Undefined);this._size-=1},$.prototype.iterator=function(){var x,D=this._first;return{next:function(){return D===J.Undefined?le.c:(x?x.value=D.element:x={done:!1,value:D.element},D=D.next,x)}}},$.prototype.toArray=function(){for(var x=[],D=this._first;D!==J.Undefined;D=D.next)x.push(D.element);return x},$}()},"3wET":function(Te,k){Te.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAACE5JREFUWAmtWH1snVUZ/533tuvYVreyjGy3Y6srTBo2srI4XbtKgFQxIrKYzeA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mzEoT/w7rI6U69onIasDz6X7zAEeC71lhx0nj5iw2rITU8AMjwuf6J6K97nk6ctDwM79zBN65a/HPX+ctcrbFE3yRED7ShRRLrRXGIRFGF3L7rHtVHou6QHxlzKpx3gBm2AVDttcVI1QijIn4KuZ9WqaJ//QmDdOGKVJXM2iRJStOFfGbBr+nr/CFgFpQOOd+b08M3cVk0S9CYvvB6iyvwRK9uNzxFMncCHqHnow0xV/+pCFj7aN0W7DrRfqhLs5qlZc8AZJ26pXcn1iC/twSq5weuqvvxrH77j+mELUoznD/KJlHpKgqcsumjlve2mqJeWg0nIrtKSpVqHhxcU3wZTGvFRXa9pO7C3/77WqaYE6P23380rRGaaQzcqQVOZQce73YLhLe+rmmq1pMFJxuyytq4Ht15nP8ljpdpX7QiFRyU+EIIQiUJUJ8aKOp51MIereRNvVwAhHVQ8lAWZv588xBf0cY6v8HJMcSXCxQVG14F1ReqWXpeWe4Yf+x59jnMXEa9k2u5mgdrASdHBqV1BTu7hiExGEfPss6b6Rh/9PP1glMDl2xZdtA8vMjRaFTl7tLqVQN86sOukJnmx8jD3FstpTCxw8+ciH+0nvv4gFlb/v9tJbAAAAAElFTkSuQmCC"},"498V":function(Te,k,o){Te.exports=o.p+"static/logo.22b9a281.svg"},"4qgm":function(Te,k){Te.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAwCAYAAABE1blzAAAIeUlEQVRoQ72aa2wU1xXHf2dm1jYEBClJGgofIFJLU0W04AdQWgJSW0UprZRIpB/aJBTxStIShWchJvbytA2lBCKKeajhQ5s2tGpFK1G1UowqKNjYBkraJCqqiCDEDZSncezdmTnVnd2FxaztmfWaa632w9459/7v75xzz71j4R61ssM6TkrYqMon3qesPjFNLt6LoWWgB5n1ttr/GcMCLKrE5qFgPJf3gRXN5XJgoMcfUIFlR/QxiqgVhyfVA/MxTWKgPuZvL51UtUyTjwdK6IAI/NLbWlQylhctWC0xPuN35Zi+gFUMfpIzoqxsLpffDoTIggssb9KvqLBJ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gKxQ+A80bVUmpLhzcVSMHbDuyO5CMQGAS/Rtf6U55Q3sNnZj2jFRgZ3FBcBSwQ83pTOG7z5EQMy11i2cyu4COQqBDxaMq8BvXPVrN3JugiEiYClC0CY/bnVXQRii0DHWkEJbYKG95ABnmSX6LFdFnc0pxEISXTPWTxaN+Ztn+US3Wng3f5ii4A50U/hydOZeT94P8rkEj22y+KO5jQCRkT3eI6T5GnPHH/ea5foTgPv9hdbBLIS/RD58t7C7C0rAyfiEj22y+KO5jQCmYm+j3yeG5m97ZvgYVyiOw28219sEfATfTd5klozZ2vAR6b8U3GJHttlcUdzGgFF9J8gbyvmb/nFrHuX6E4D7/YXWwTurLWJQnnbMGPLnlADu0SP7bK4ozmNQLe6pZn2wwGrbv8PSygpSs9Cw9cAAAAASUVORK5CYII="},"55Ip":function(Te,k,o){"use strict";o.d(k,"a",function(){return y}),o.d(k,"b",function(){return _e});var le=o("Ty5D"),J=o("dI71"),Re=o("q1tI"),$=o.n(Re),x=o("YS25"),D=o("17x9"),fe=o.n(D),oe=o("wx14"),z=o("zLVn"),L=o("9R94"),C=function(T){Object(J.a)(d,T);function d(){for(var ue,Y=arguments.length,F=new Array(Y),N=0;N=0||Y.relatedTarget.className.indexOf("".concat(w,"-next"))>=0))return;T.setState({goInputText:""}),H(T.getValidValue())},T.go=function(Y){var F=T.state.goInputText;if(F==="")return;(Y.keyCode===u.ENTER||Y.type==="click")&&(T.setState({goInputText:""}),T.props.quickGo(T.getValidValue()))},T}return Object(x.a)(ae,[{key:"getValidValue",value:function(){var d=this.state,s=d.goInputText,ue=d.current;return!s||isNaN(s)?ue:Number(s)}},{key:"getPageSizeOptions",value:function(){var d=this.props,s=d.pageSize,ue=d.pageSizeOptions;return ue.some(function(Y){return Y.toString()===s.toString()})?ue:ue.concat([s.toString()]).sort(function(Y,F){var N=isNaN(Number(Y))?0:Number(Y),H=isNaN(Number(F))?0:Number(F);return N-H})}},{key:"render",value:function(){var d=this,s=this.props,ue=s.pageSize,Y=s.locale,F=s.rootPrefixCls,N=s.changeSize,H=s.quickGo,w=s.goButton,j=s.selectComponentClass,K=s.buildOptionText,ee=s.selectPrefixCls,B=s.disabled,te=this.state.goInputText,ye="".concat(F,"-options"),Pe=j,xe=null,Se=null,X=null;if(!N&&!H)return null;var re=this.getPageSizeOptions();if(N&&Pe){var be=re.map(function(ie,Ce){return z.a.createElement(Pe.Option,{key:Ce,value:ie.toString()},(K||d.buildOptionText)(ie))});xe=z.a.createElement(Pe,{disabled:B,prefixCls:ee,showSearch:!1,className:"".concat(ye,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(ue||re[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Ce){return Ce.parentNode}},be)}return H&&(w&&(X=typeof w=="boolean"?z.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:B,className:"".concat(ye,"-quick-jumper-button")},Y.jump_to_confirm):z.a.createElement("span",{onClick:this.go,onKeyUp:this.go},w)),Se=z.a.createElement("div",{className:"".concat(ye,"-quick-jumper")},Y.jump_to,z.a.createElement("input",{disabled:B,type:"text",value:te,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),Y.page,X)),z.a.createElement("li",{className:"".concat(ye)},xe,Se)}}]),ae}(z.a.Component);g.defaultProps={pageSizeOptions:["10","20","50","100"]};var m=g,b=o("N2Kk");function p(){}function y(de){return typeof de=="number"&&isFinite(de)&&Math.floor(de)===de}function S(de,_e,ae){return ae}function U(de,_e,ae){var T=typeof de=="undefined"?_e.pageSize:de;return Math.floor((ae.total-1)/T)+1}var Z=function(de){Object(D.a)(ae,de);var _e=Object(fe.a)(ae);function ae(T){var d;Object($.a)(this,ae),d=_e.call(this,T),d.getJumpPrevPage=function(){return Math.max(1,d.state.current-(d.props.showLessItems?3:5))},d.getJumpNextPage=function(){return Math.min(U(void 0,d.state,d.props),d.state.current+(d.props.showLessItems?3:5))},d.getItemIcon=function(N,H){var w=d.props.prefixCls,j=N||z.a.createElement("button",{type:"button","aria-label":H,className:"".concat(w,"-item-link")});return typeof N=="function"&&(j=z.a.createElement(N,Object(Re.a)({},d.props))),j},d.savePaginationNode=function(N){d.paginationNode=N},d.isValid=function(N){return y(N)&&N!==d.state.current},d.shouldDisplayQuickJumper=function(){var N=d.props,H=N.showQuickJumper,w=N.pageSize,j=N.total;return j<=w?!1:H},d.handleKeyDown=function(N){(N.keyCode===u.ARROW_UP||N.keyCode===u.ARROW_DOWN)&&N.preventDefault()},d.handleKeyUp=function(N){var H=d.getValidValue(N),w=d.state.currentInputValue;H!==w&&d.setState({currentInputValue:H}),N.keyCode===u.ENTER?d.handleChange(H):N.keyCode===u.ARROW_UP?d.handleChange(H-1):N.keyCode===u.ARROW_DOWN&&d.handleChange(H+1)},d.changePageSize=function(N){var H=d.state.current,w=U(N,d.state,d.props);H=H>w?w:H,w===0&&(H=d.state.current),typeof N=="number"&&("pageSize"in d.props||d.setState({pageSize:N}),"current"in d.props||d.setState({current:H,currentInputValue:H})),d.props.onShowSizeChange(H,N),"onChange"in d.props&&d.props.onChange&&d.props.onChange(H,N)},d.handleChange=function(N){var H=d.props.disabled,w=N;if(d.isValid(w)&&!H){var j=U(void 0,d.state,d.props);w>j?w=j:w<1&&(w=1),"current"in d.props||d.setState({current:w,currentInputValue:w});var K=d.state.pageSize;return d.props.onChange(w,K),w}return d.state.current},d.prev=function(){d.hasPrev()&&d.handleChange(d.state.current-1)},d.next=function(){d.hasNext()&&d.handleChange(d.state.current+1)},d.jumpPrev=function(){d.handleChange(d.getJumpPrevPage())},d.jumpNext=function(){d.handleChange(d.getJumpNextPage())},d.hasPrev=function(){return d.state.current>1},d.hasNext=function(){return d.state.current2?w-2:0),K=2;K=ue?F=ue:F=Number(s),F}},{key:"getShowSizeChanger",value:function(){var d=this.props,s=d.showSizeChanger,ue=d.total,Y=d.totalBoundaryShowSizeChanger;return typeof s!="undefined"?s:ue>Y}},{key:"renderPrev",value:function(d){var s=this.props,ue=s.prevIcon,Y=s.itemRender,F=Y(d,"prev",this.getItemIcon(ue,"prev page")),N=!this.hasPrev();return Object(oe.isValidElement)(F)?Object(oe.cloneElement)(F,{disabled:N}):F}},{key:"renderNext",value:function(d){var s=this.props,ue=s.nextIcon,Y=s.itemRender,F=Y(d,"next",this.getItemIcon(ue,"next page")),N=!this.hasNext();return Object(oe.isValidElement)(F)?Object(oe.cloneElement)(F,{disabled:N}):F}},{key:"render",value:function(){var d=this,s=this.props,ue=s.prefixCls,Y=s.className,F=s.style,N=s.disabled,H=s.hideOnSinglePage,w=s.total,j=s.locale,K=s.showQuickJumper,ee=s.showLessItems,B=s.showTitle,te=s.showTotal,ye=s.simple,Pe=s.itemRender,xe=s.showPrevNextJumpers,Se=s.jumpPrevIcon,X=s.jumpNextIcon,re=s.selectComponentClass,be=s.selectPrefixCls,ie=s.pageSizeOptions,Ce=this.state,v=Ce.current,W=Ce.pageSize,P=Ce.currentInputValue;if(H===!0&&w<=W)return null;var ce=U(void 0,this.state,this.props),R=[],Q=null,Ee=null,De=null,Ie=null,Ge=null,qe=K&&K.goButton,Je=ee?1:2,$e=v-1>0?v-1:0,it=v+1=Je*2&&v!==1+2&&(R[0]=Object(oe.cloneElement)(R[0],{className:"".concat(ue,"-item-after-jump-prev")}),R.unshift(Q)),ce-v>=Je*2&&v!==ce-2&&(R[R.length-1]=Object(oe.cloneElement)(R[R.length-1],{className:"".concat(ue,"-item-before-jump-next")}),R.push(Ee)),ze!==1&&R.unshift(De),st!==ce&&R.push(Ie)}var ke=null;te&&(ke=z.a.createElement("li",{className:"".concat(ue,"-total-text")},te(w,[w===0?0:(v-1)*W+1,v*W>w?w:v*W])));var Ke=!this.hasPrev()||!ce,He=!this.hasNext()||!ce;return z.a.createElement("ul",Object(le.a)({className:C()(ue,Y,Object(J.a)({},"".concat(ue,"-disabled"),N)),style:F,unselectable:"unselectable",ref:this.savePaginationNode},xt),ke,z.a.createElement("li",{title:B?j.prev_page:null,onClick:this.prev,tabIndex:Ke?null:0,onKeyPress:this.runIfEnterPrev,className:C()("".concat(ue,"-prev"),Object(J.a)({},"".concat(ue,"-disabled"),Ke)),"aria-disabled":Ke},this.renderPrev($e)),R,z.a.createElement("li",{title:B?j.next_page:null,onClick:this.next,tabIndex:He?null:0,onKeyPress:this.runIfEnterNext,className:C()("".concat(ue,"-next"),Object(J.a)({},"".concat(ue,"-disabled"),He)),"aria-disabled":He},this.renderNext(it)),z.a.createElement(m,{disabled:N,locale:j,rootPrefixCls:ue,selectComponentClass:re,selectPrefixCls:be,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:v,pageSize:W,pageSizeOptions:ie,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:qe}))}}],[{key:"getDerivedStateFromProps",value:function(d,s){var ue={};if("current"in d&&(ue.current=d.current,d.current!==s.current&&(ue.currentInputValue=ue.current)),"pageSize"in d&&d.pageSize!==s.pageSize){var Y=s.current,F=U(d.pageSize,s,d);Y=Y>F?F:Y,"current"in d||(ue.current=Y,ue.currentInputValue=Y),ue.pageSize=d.pageSize}return ue}}]),ae}(z.a.Component);Z.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:p,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:p,locale:b.a,style:{},itemRender:S,totalBoundaryShowSizeChanger:50};var ne=Z},"6Fuo":function(Te,k,o){Te.exports={flex_box_center:"flex_box_center___3p8A0",flex_space_between:"flex_space_between___2wMwo",flex_box_vertical_center:"flex_box_vertical_center___2fKhV",flex_box_center_end:"flex_box_center_end___27Yk8",flex_box_column:"flex_box_column___3Khbo",rightMenu:"rightMenu___20Eel",joinMenu:"joinMenu___2blJt",joinBoard:"joinBoard___2XUXK",joinCol:"joinCol___3o5gp"}},"6RRn":function(Te,k,o){"use strict";var le=o("wCXF"),J=o("n6Qo");o.d(k,"b",function(){return J.a});var Re=o("IBYe"),$=o("6eGT"),x=o("hW8S");o.d(k,"a",function(){return x.a}),k.c=le.b},"6eGT":function(Te,k,o){"use strict";function le(J){return null}k.a=le},"746U":function(Te,k,o){"use strict";o.d(k,"d",function(){return J}),o.d(k,"j",function(){return Re}),o.d(k,"i",function(){return $}),o.d(k,"h",function(){return x}),o.d(k,"e",function(){return D}),o.d(k,"k",function(){return fe}),o.d(k,"l",function(){return oe}),o.d(k,"a",function(){return z}),o.d(k,"f",function(){return C}),o.d(k,"g",function(){return _}),o.d(k,"m",function(){return O}),o.d(k,"c",function(){return m}),o.d(k,"b",function(){return b}),o.d(k,"n",function(){return p}),o.d(k,"o",function(){return y});var le={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function J(S){return Array.isArray?Array.isArray(S):!!(S&&typeof S.length===le.number&&S.constructor===Array)}function Re(S){return typeof S===le.string||S instanceof String}function $(S){return typeof S===le.object&&S!==null&&!Array.isArray(S)&&!(S instanceof RegExp)&&!(S instanceof Date)}function x(S){return(typeof S===le.number||S instanceof Number)&&!isNaN(S)}function D(S){return S===!0||S===!1}function fe(S){return typeof S===le.undefined}function oe(S){return fe(S)||S===null}function z(S,U){if(!S)throw new Error(U?"Unexpected type, expected '"+U+"'":"Unexpected type")}var L=Object.prototype.hasOwnProperty;function C(S){if(!$(S))return!1;for(var U in S)if(L.call(S,U))return!1;return!0}function _(S){return typeof S===le.function}function O(S,U){for(var Z=Math.min(S.length,U.length),ne=0;ne0&&arguments[0]!==void 0?arguments[0]:[],m=new Map;function b(p){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(p||[]).forEach(function(S){var U=S.key,Z=S.children;Object(x.a)(U!=null,"Tree node must have a certain key: [".concat(y).concat(U,"]"));var ne=String(U);Object(x.a)(!m.has(ne)||U===null||U===void 0,"Same 'key' exist in the Tree: ".concat(ne)),m.set(ne,!0),b(Z,"".concat(y).concat(ne," > "))})}b(g)}function z(g){function m(b){var p=Object($.a)(b);return p.map(function(y){if(!Object(D.i)(y))return Object(x.a)(!y,"Tree/TreeNode can only accept TreeNode as children."),null;var S=y.key,U=y.props,Z=U.children,ne=Object(Re.a)(U,["children"]),de=Object(J.a)({key:S},ne),_e=m(Z);return _e.length&&(de.children=_e),de}).filter(function(y){return y})}return m(g)}function L(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],b=new Set(m===!0?[]:m),p=[];function y(S){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return S.map(function(Z,ne){var de=Object(D.h)(U?U.pos:"0",ne),_e=fe(Z.key,de),ae=Object(J.a)(Object(J.a)({},Z),{},{parent:U,pos:de,children:null,data:Z,isStart:[].concat(Object(le.a)(U?U.isStart:[]),[ne===0]),isEnd:[].concat(Object(le.a)(U?U.isEnd:[]),[ne===S.length-1])});return p.push(ae),m===!0||b.has(_e)?ae.children=y(Z.children||[],ae):ae.children=[],ae})}return y(g),p}function C(g,m,b){var p;b?typeof b=="string"?p=function(U){return U[b]}:typeof b=="function"&&(p=function(U){return b(U)}):p=function(U,Z){return fe(U.key,Z)};function y(S,U,Z){var ne=S?S.children:g,de=S?Object(D.h)(Z.pos,U):"0";if(S){var _e=p(S,de),ae={node:S,index:U,pos:de,key:_e,parentPos:Z.node?Z.pos:null,level:Z.level+1};m(ae)}ne&&ne.forEach(function(T,d){y(T,d,{node:S,pos:de,level:Z?Z.level+1:-1})})}y(null)}function _(g){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=m.initWrapper,p=m.processEntity,y=m.onProcessFinished,S=arguments.length>2?arguments[2]:void 0,U={},Z={},ne={posEntities:U,keyEntities:Z};return b&&(ne=b(ne)||ne),C(g,function(de){var _e=de.node,ae=de.index,T=de.pos,d=de.key,s=de.parentPos,ue=de.level,Y={node:_e,index:ae,key:d,pos:T,level:ue},F=fe(d,T);U[T]=Y,Z[F]=Y,Y.parent=U[s],Y.parent&&(Y.parent.children=Y.parent.children||[],Y.parent.children.push(Y)),p&&p(Y,ne)},S),y&&y(ne),ne}function O(g,m){var b=m.expandedKeys,p=m.selectedKeys,y=m.loadedKeys,S=m.loadingKeys,U=m.checkedKeys,Z=m.halfCheckedKeys,ne=m.dragOverNodeKey,de=m.dropPosition,_e=m.keyEntities,ae=_e[g],T={eventKey:g,expanded:b.indexOf(g)!==-1,selected:p.indexOf(g)!==-1,loaded:y.indexOf(g)!==-1,loading:S.indexOf(g)!==-1,checked:U.indexOf(g)!==-1,halfChecked:Z.indexOf(g)!==-1,pos:String(ae?ae.pos:""),dragOver:ne===g&&de===0,dragOverGapTop:ne===g&&de===-1,dragOverGapBottom:ne===g&&de===1};return T}function u(g){var m=g.data,b=g.expanded,p=g.selected,y=g.checked,S=g.loaded,U=g.loading,Z=g.halfChecked,ne=g.dragOver,de=g.dragOverGapTop,_e=g.dragOverGapBottom,ae=g.pos,T=g.active,d=Object(J.a)(Object(J.a)({},m),{},{expanded:b,selected:p,checked:y,loaded:S,loading:U,halfChecked:Z,dragOver:ne,dragOverGapTop:de,dragOverGapBottom:_e,pos:ae,active:T});return"props"in d||Object.defineProperty(d,"props",{get:function(){return Object(x.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),g}}),d}},"8HAY":function(Te,k,o){"use strict";o.d(k,"a",function(){return D}),o.d(k,"b",function(){return fe});var le=o("pmY6"),J=o("MI8n"),Re=function(){var oe=function(z,L){return oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,_){C.__proto__=_}||function(C,_){for(var O in _)_.hasOwnProperty(O)&&(C[O]=_[O])},oe(z,L)};return function(z,L){oe(z,L);function C(){this.constructor=z}z.prototype=L===null?Object.create(L):(C.prototype=L.prototype,new C)}}(),$=function(oe,z,L,C){function _(O){return O instanceof L?O:new L(function(u){u(O)})}return new(L||(L=Promise))(function(O,u){function g(p){try{b(C.next(p))}catch(y){u(y)}}function m(p){try{b(C.throw(p))}catch(y){u(y)}}function b(p){p.done?O(p.value):_(p.value).then(g,m)}b((C=C.apply(oe,z||[])).next())})},x=function(oe,z){var L={label:0,sent:function(){if(O[0]&1)throw O[1];return O[1]},trys:[],ops:[]},C,_,O,u;return u={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function g(b){return function(p){return m([b,p])}}function m(b){if(C)throw new TypeError("Generator is already executing.");for(;L;)try{if(C=1,_&&(O=b[0]&2?_.return:b[0]?_.throw||((O=_.return)&&O.call(_),0):_.next)&&!(O=O.call(_,b[1])).done)return O;(_=0,O)&&(b=[b[0]&2,O.value]);switch(b[0]){case 0:case 1:O=b;break;case 4:return L.label++,{value:b[1],done:!1};case 5:L.label++,_=b[1],b=[0];continue;case 7:b=L.ops.pop(),L.trys.pop();continue;default:if(!(O=L.trys,O=O.length>0&&O[O.length-1])&&(b[0]===6||b[0]===2)){L=0;continue}if(b[0]===3&&(!O||b[1]>O[0]&&b[1]1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(le.a)())return null;var L=document.createElement("style");if((oe=z.csp)===null||oe===void 0?void 0:oe.nonce){var C;L.nonce=(C=z.csp)===null||C===void 0?void 0:C.nonce}L.innerHTML=fe;var _=Re(z),O=_.firstChild;return z.prepend&&_.prepend?_.prepend(L):z.prepend&&O?_.insertBefore(L,O):_.appendChild(L),L}var x=new Map;function D(fe,oe){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},L=Re(z);if(!x.has(L)){var C=$("",z),_=C.parentNode;x.set(L,_),_.removeChild(C)}var O=Array.from(x.get(L).children).find(function(p){return p.tagName==="STYLE"&&p[J]===oe});if(O){var u,g;if(((u=z.csp)===null||u===void 0?void 0:u.nonce)&&O.nonce!==((g=z.csp)===null||g===void 0?void 0:g.nonce)){var m;O.nonce=(m=z.csp)===null||m===void 0?void 0:m.nonce}return O.innerHTML!==fe&&(O.innerHTML=fe),O}var b=$(fe,z);return b[J]=oe,b}},"C/vA":function(Te,k,o){"use strict";o.d(k,"a",function(){return le});function le(J){var Re=this,$=!1,x;return function(){return $||($=!0,x=J.apply(Re,arguments)),x}}},"Cg/j":function(Te,k,o){"use strict";o.d(k,"b",function(){return le}),o.d(k,"a",function(){return J}),o.d(k,"c",function(){return $}),o.d(k,"d",function(){return x});var le;(function(D){D.serviceIds=new Map,D.DI_TARGET="$di$target",D.DI_DEPENDENCIES="$di$dependencies";function fe(oe){return oe[D.DI_DEPENDENCIES]||[]}D.getServiceDependencies=fe})(le||(le={}));var J=$("instantiationService");function Re(D,fe,oe,z){fe[le.DI_TARGET]===fe?fe[le.DI_DEPENDENCIES].push({id:D,index:oe,optional:z}):(fe[le.DI_DEPENDENCIES]=[{id:D,index:oe,optional:z}],fe[le.DI_TARGET]=fe)}function $(D){if(le.serviceIds.has(D))return le.serviceIds.get(D);var fe=function(oe,z,L){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");Re(fe,oe,L,!1)};return fe.toString=function(){return D},le.serviceIds.set(D,fe),fe}function x(D){return function(fe,oe,z){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");Re(D,fe,z,!0)}}},"Cs+z":function(Te,k,o){Te.exports=o.p+"static/jqr.b801d45b.png"},"Ct/S":function(Te,k,o){Te.exports={tilte:"tilte___1Tz7i",flexRow:"flexRow___3w9_D",flexColumn:"flexColumn___2HzC_",footerWrap:"footerWrap___12F5M",img:"img___3ED9Z",content:"content___rqPDY",modalContent:"modalContent___2h4ne"}},Cy2x:function(Te,k,o){"use strict";var le=o("DjyN"),J=o("NUBc"),Re=o("cWXX"),$=o("/ezw"),x=o("+L6B"),D=o("2/Rp"),fe=o("miYZ"),oe=o("tsqr"),z=o("2qtc"),L=o("kLXV"),C=o("9og8"),_=o("tJVT"),O=o("WmNS"),u=o.n(O),g=o("q1tI"),m=o.n(g),b=o("Ty5D"),p=o("9kvl"),y=o("m3rI"),S=o("7Kak"),U=o("9yH6"),Z=o("PpiC"),ne=o("cU5J"),de=o.n(ne),_e=function(te){var ye=te.shixunsDetail,Pe=te.globalSetting,xe=te.loading,Se=te.dispatch,X=te.onReloadData,re=Object(Z.a)(te,["shixunsDetail","globalSetting","loading","dispatch","onReloadData"]),be=Object(g.useState)(),ie=Object(_.a)(be,2),Ce=ie[0],v=ie[1],W=Object(g.useState)([]),P=Object(_.a)(W,2),ce=P[0],R=P[1];Object(g.useEffect)(function(){ye.actionTabs.key==="Collaborators-ChangeManager"&&Q()},[ye.actionTabs.key]);var Q=function(){var Ge=Object(C.a)(u.a.mark(function qe(){var Je,$e;return u.a.wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:return xt.next=2,Se({type:"shixunsDetail/getChangeManager",payload:{id:(Je=ye.actionTabs.params)===null||Je===void 0?void 0:Je.id}});case 2:$e=xt.sent,R($e||[]);case 4:case"end":return xt.stop()}},qe)}));return function(){return Ge.apply(this,arguments)}}(),Ee=function(){var qe;Se({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:(qe=ye.actionTabs.params)===null||qe===void 0?void 0:qe.id}}})},De=function(){var Ge=Object(C.a)(u.a.mark(function qe(){var Je,$e;return u.a.wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:if(Ce){xt.next=3;break}return oe.b.info("\u6240\u9009\u4EBA\u5458\u4E3A\u7A7A\uFF0C\u6CA1\u6709\u66F4\u6362\u6210\u529F"),xt.abrupt("return");case 3:return xt.next=5,Se({type:"shixunsDetail/changeManager",payload:{id:(Je=ye.actionTabs.params)===null||Je===void 0?void 0:Je.id,user_id:Ce}});case 5:$e=xt.sent,Ie(),$e&&(X(),oe.b.info($e.message));case 8:case"end":return xt.stop()}},qe)}));return function(){return Ge.apply(this,arguments)}}(),Ie=function(){Se({type:"shixunsDetail/setActionTabs",payload:{}}),v(null)};return m.a.createElement(L.a,{centered:!0,keyboard:!1,closable:!1,title:"\u66F4\u6362\u7BA1\u7406\u5458",visible:ye.actionTabs.key==="Collaborators-ChangeManager",confirmLoading:xe.effects["shixunsDetail/changeManager"],onOk:De,onCancel:Ie},m.a.createElement("div",null,m.a.createElement("div",{className:de.a.title},"\u9009\u62E9\u7684\u6210\u5458\u5C06\u4F1A\u6210\u4E3A\u65B0\u7684\u7BA1\u7406\u5458",m.a.createElement("br",null),"\u60A8\u5C06\u4E0D\u518D\u62E5\u6709\u7BA1\u7406\u5458\u7684\u6743\u9650\uFF0C\u4F46\u60A8\u4ECD\u662F\u5408\u4F5C\u56E2\u961F\u7684\u4E00\u5458"),m.a.createElement("div",{className:de.a.content},ce.length?m.a.createElement(U.a.Group,{value:Ce,onChange:function(qe){return v(qe.target.value)}},ce.map(function(Ge,qe){return m.a.createElement(U.a,{className:de.a.radio,key:qe,value:Ge.user_id},Ge.name)})):m.a.createElement("div",{className:de.a.add},m.a.createElement("span",null,"\u8BF7\u5148\u5C06\u65B0\u7684\u7BA1\u7406\u5458\u901A\u8FC7",m.a.createElement("a",{className:de.a.colorBlue,onClick:Ee},'"\u6DFB\u52A0\u5408\u4F5C\u8005"'),"\u52A0\u5165\u5408\u4F5C\u8005\u5217\u8868")))))},ae=Object(p.a)(function(B){var te=B.shixunsDetail,ye=B.loading,Pe=B.globalSetting;return{shixunsDetail:te,globalSetting:Pe,loading:ye}})(_e),T=o("Znn+"),d=o("ZTPi"),s=o("ju9d"),ue=d.a.TabPane,Y=function(B){var te=B.visible,ye=B.onCancel,Pe=B.onSelectGroup,xe=B.shixunId,Se=B.onSelectCollaborator;return m.a.createElement(L.a,{title:"\u6DFB\u52A0\u5408\u4F5C\u8005",visible:te,width:1100,centered:!0,keyboard:!1,onCancel:ye,maskClosable:!1,destroyOnClose:!0,forceRender:!0,bodyStyle:{minHeight:400,padding:"0 20px 20px 20px"},footer:null},m.a.createElement(d.a,{defaultActiveKey:"1"},m.a.createElement(ue,{tab:"\u641C\u7D22\u6DFB\u52A0",key:"1"},m.a.createElement(s.a,{type:1,onCancel:ye,container_type:2,container_id:xe,onSelect:Se}))))},F=o("bL63"),N=o.n(F),H=o("xvlK"),w=o("ruvs"),j=o("ErOA"),K=function(te){var ye,Pe,xe,Se,X,re=te.shixunsDetail,be=te.globalSetting,ie=te.loading,Ce=te.user,v=te.dispatch,W=te.position,P=Object(g.useRef)(),ce=Object(g.useState)(0),R=Object(_.a)(ce,2),Q=R[0],Ee=R[1],De=Object(g.useState)([]),Ie=Object(_.a)(De,2),Ge=Ie[0],qe=Ie[1],Je=Object(g.useState)({id:null,page:1}),$e=Object(_.a)(Je,2),it=$e[0],xt=$e[1],vt=Object(b.i)(),Ut=Object(g.useState)({}),Ht=Object(_.a)(Ut,2),je=Ht[0],Le=Ht[1],ze=(ye=Ce.userInfo)===null||ye===void 0||((Pe=ye.shixun)===null||Pe===void 0)?void 0:Pe.editable,st=((xe=Ce.userInfo)===null||xe===void 0?void 0:xe.role)<=2||((Se=Ce.userInfo)===null||Se===void 0||((X=Se.shixun)===null||X===void 0)?void 0:X.is_creator);Object(g.useEffect)(function(){P.current=vt==null?void 0:vt.taskId,it.id=vt==null?void 0:vt.taskId,xt(it),rt(it)},[]);var rt=function(){var Xe=Object(C.a)(u.a.mark(function ut(lt){var Ct;return u.a.wrap(function(At){for(;;)switch(At.prev=At.next){case 0:return At.next=2,Object(j.a)("/api/sci/projects/".concat(vt==null?void 0:vt.taskId,"/get_project_partners.json"),{method:"get"});case 2:Ct=At.sent,Ct&&(qe(Ct.users||[]),Ee(Ct.users_count),Le(Ct));case 4:case"end":return At.stop()}},ut)}));return function(lt){return Xe.apply(this,arguments)}}(),Ue=function(){var Xe=Object(C.a)(u.a.mark(function ut(){var lt;return u.a.wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:return it.page=1,xt(it),lt=Object(w.b)(),Et.next=5,v({type:"user/getUserInfo",payload:lt});case 5:return Et.next=7,rt(it);case 7:case"end":return Et.stop()}},ut)}));return function(){return Xe.apply(this,arguments)}}(),ke=function(ut){it.page=ut,xt(it),rt(it)},Ke=function(ut){L.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:m.a.createElement("div",{className:N.a.modal},"\u786E\u5B9A\u8981\u5220\u9664\u5417\uFF1F"),onOk:function(){var lt=Object(C.a)(u.a.mark(function Et(){var At;return u.a.wrap(function(St){for(;;)switch(St.prev=St.next){case 0:return St.next=2,Object(j.a)("/api/sci/projects/".concat(vt==null?void 0:vt.taskId,"/del_project_partner.json"),{method:"DELETE",body:{user_id:ut}});case 2:At=St.sent,oe.b.info("\u5220\u9664\u6210\u529F"),it.page=1,xt(it),rt(it);case 7:case"end":return St.stop()}},Et)}));function Ct(){return lt.apply(this,arguments)}return Ct}()})},He=function(){v({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:P.current}}})};function Ze(){v({type:"shixunsDetail/setActionTabs",payload:{}})}var Be={visible:re.actionTabs.key==="Collaborators-AddCollaborator",onCancel:Ze,shixunId:P.current,onSelectCollaborator:function(){var Xe=Object(C.a)(u.a.mark(function lt(Ct){var Et;return u.a.wrap(function(kt){for(;;)switch(kt.prev=kt.next){case 0:return Ze(),kt.next=3,Object(j.a)("/api/sci/projects/".concat(P.current,"/bacht_add_project_partners.json"),{method:"POST",body:{user_ids:Ct}});case 3:Et=kt.sent,Et&&(oe.b.success("\u6DFB\u52A0\u6210\u529F"),Ue());case 5:case"end":return kt.stop()}},lt)}));function ut(lt){return Xe.apply(this,arguments)}return ut}(),onSelectGroup:function(){var Xe=Object(C.a)(u.a.mark(function lt(Ct){var Et;return u.a.wrap(function(kt){for(;;)switch(kt.prev=kt.next){case 0:return Ze(),kt.next=3,v({type:"shixunsDetail/addTeachGroupMember",payload:{identifier:P.current,group_id:Ct.group_id}});case 3:Et=kt.sent,Et&&(oe.b.success("\u6DFB\u52A0\u6210\u529F"),Ue());case 5:case"end":return kt.stop()}},lt)}));function ut(lt){return Xe.apply(this,arguments)}return ut}()};return m.a.createElement("section",null,m.a.createElement("div",{className:N.a.wrap},m.a.createElement("div",{className:N.a.content},m.a.createElement("div",{className:N.a.head},m.a.createElement("span",{className:N.a.headCount},"\u5408\u4F5C\u8005\uFF08",Q,"\u4EBA\uFF09"),m.a.createElement("div",null,m.a.createElement(D.a,{className:N.a.button,style:{marginRight:W==="detail"?0:"20px"},onClick:He,icon:m.a.createElement(H.a,null)},"\u6DFB\u52A0\u5408\u4F5C\u8005"))),m.a.createElement("div",{className:N.a.list},m.a.createElement($.a,{loading:!1,active:!0,avatar:{size:40},paragraph:{rows:3},className:"mt30"},Ge.map(function(Xe,ut){return m.a.createElement("div",{style:{display:"inline-block",width:"50%"},key:ut},m.a.createElement("div",{className:N.a.itemWrap},m.a.createElement("a",{target:"_blank",className:N.a.imgWrap},m.a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"48",width:"48",className:N.a.img,src:"".concat(y.a.IMG_SERVER,"/images/").concat(Xe==null?void 0:Xe.image_url)}),(Xe==null?void 0:Xe.is_creator)&&m.a.createElement("span",{className:N.a.manager},"\u521B\u5EFA\u8005")),m.a.createElement("div",{className:N.a.itemContent},m.a.createElement("div",{className:N.a.nameWrap},m.a.createElement("a",{target:"_blank",className:N.a.name},Xe==null?void 0:Xe.user_name),m.a.createElement("div",{className:N.a.actionGroup},!(Xe!=null&&Xe.is_creator)&&(st||je!=null&&je.current_user_is_creator)?m.a.createElement("a",{className:N.a.deletetitle,onClick:function(){return Ke(Xe.id)}},"\u5220\u9664"):null)),m.a.createElement("p",{className:N.a.schoolWrap},m.a.createElement("span",{className:N.a.school},Xe==null?void 0:Xe.school_name)))))})))),Q>10&&m.a.createElement("div",{className:N.a.countWrap},m.a.createElement(J.a,{showQuickJumper:!1,showSizeChanger:!1,total:Q,onChange:function(ut){return ke(ut)},pageSize:10,current:it.page}))),m.a.createElement(ae,{onReloadData:Ue}),m.a.createElement(Y,Be))},ee=k.a=Object(p.a)(function(B){var te=B.shixunsDetail,ye=B.loading,Pe=B.globalSetting,xe=B.user;return{shixunsDetail:te,globalSetting:Pe,user:xe,loading:ye}})(K)},E7E6:function(Te,k){Te.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADUCAYAAADZTGx+AAAgAElEQVR4Xu2dC3BU13nHv7MrIQkQQoCEtAIEAmxig4GACxhogpM6NY7jOKZO4nimwcFot23SNNNO02napJN0JjN9TNMm5eG3x4+YSeI3ftUGjCDGQMBgG4wxb+0u4mEeQhJI2tP539WR7i77uPfuvXfvar8zs7Mr7bnn8Z3vt9/5zlMQB5aAQQmsW7fO397eHujp6Rkfi8XGExFeDX2vABHVSSlrhBDDiKhdSnlOCBGWUu4mol1lZWWv3nfffccNZueJaMITpeBCeEICjz/++LCOjo5GIpogpWwUQjT2vU/A/wCClNJvtbBCCCml3CaEeGzChAmPLF269LLVtNx6jgFxS9IeyOehhx6q7OnpmSilnEhE2gsA4L0PhjHZillRUUHl5WUUf6+giopyKi+Pv8rKyrSX3++nnp4e7XXpUgedP3+ezp37lE6ebKPe3l4tCyFEhIj+UwjxaHNz8+ls+ebrewYkX5J3IN9169YNv3DhwsRYLIbXJAWBDoZRmbKFYkPRhw4dqgEwdCgAwOfyPiDKyefzWS454Dh58iQdPPiJBk0fKN1E9KyU8gehUKjVcuIOPciAOCRYJ5J95JFHyq9cuaJZACHEJCklIOgHQUqZ0QIAACg/FB+//niPwxD/H3793QqwJkePHqW2tjaSUsKinCOibwWDwfVulcFIPgyIESm5FGfDhg0lBw8ehOM7qbe3dxIggCXAe58VgBOcts0AgP6XfwCACho2bBgNGTLEpZoYz6arq4vee2+PBooQosvv999y//33bzaegrMxGRBn5ZuQOpR77dq1dVB4BQCsQB8AgGB8JicY3RsAgNewYQO//EOHDnPdAtgttr1736cjR44g2VPl5eXXLF++HBYl74EBsbkJHnnkkZFQ/p6eHk3xdd2gpj6nuDxTlvAB8GufDAH+h+8Ga0A365133qHTp8/AkvwiGAx+3wt1ZUBMtsL69evLTpw4gZEfKH+THoC+z9WZkkQ3RwEQ7wLFf/2VY5yLE2yyKp6LfuHCBdq06W0A0j1kyJCG++6771S+C8mAJLUA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89H/11XF3haCNFlIQFTj7gCiL5E4XB4MZEMEdEdUsps9/KaqgxHHpwSEELg/NLnicSqQCCw2c1aug6IqhwWQvb09HyVSH6LiL7Ivoqbze79vOK+Bf0fkXiypKTkudra2sR1Ry5VIW+A6OsXjUZre3t778DBmPAAAAI6SURBVO6DZb5LdedsvCmBdwCF3+9fV1dXF98slMfgCUCSumCNQsgvSymXSklLeF4lj9rhTtadQtAGIcR6KbWNS0fdydZYLp4DRF9snLQSjUZvjsViS4Wg26SUVi++NiYNjuWKBIQQR6Wkl30+3/q6urq3hBBXb+J3pSTZM/E0IMnFj0Qi10kp/4QotphILJJSjs1eRY6RbwkIIU4SyRYi32YhxBv19fUD9yLku3BZ8i8oQJLrcurUiWt6e8Wi3l7CyBiO8JvicXkXS/EOEokWv582+/2ypaZm3IFCrXhBA5Is9La2trqenp6biGi2lJhv0eZcxhVq4xRIuU8Qid1CCKyB31VSUrK1trY2WiBlz1rMQQVIqtpeuHBidEcHzZIy/iLSXtfyWrGsupEQIb7WiT4iot1CxF9Dh9LuESPGnTGXUmHFHvSApGoOzLm0tbU19vb2TpVSThGCphLJKVLSVCFoYrHCAwikpCNC0MdE4qCU9LEQ4qDf7/+4trb2aN/cRGFpeI6lLUpAMslMSulva2ub2NPT0+TzyUAsJup9PgpIKQNSinohtM/1RFRo5/1cFkJEpKSwEDIihAjHYhT2+WQkFhPhkpKSQ7W1tUdwsnmOOjWoHmdALDbn+fPnR3V2dgKW0ULEqmIxUSWlHCmErJJSVAlBVVIS3kcS4X9ULoQolVKWZnpHcaSU3UKI7szv1EUkzuNSKSEI7+eFkOelFOeFEOd8Pnz24fOZioqKcFVV1VmLVS3qx/4fQLyzKIIkCJoAAAAASUVORK5CYII="},E9nw:function(Te,k){Te.exports=function(){var o=document.getSelection();if(!o.rangeCount)return function(){};for(var le=document.activeElement,J=[],Re=0;Re0&&(ye.percent=ye.loaded/ye.total*100),j.onProgress(ye)});var ee=new FormData;j.data&&Object.keys(j.data).forEach(function(te){var ye=j.data[te];if(Array.isArray(ye)){ye.forEach(function(Pe){ee.append(te+"[]",Pe)});return}ee.append(te,j.data[te])}),j.file instanceof Blob?ee.append(j.filename,j.file,j.file.name):ee.append(j.filename,j.file),K.onerror=function(ye){j.onError(ye)},K.onload=function(){return K.status<200||K.status>=300?j.onError(x(j,K),D(K)):j.onSuccess(D(K),K)},K.open(j.method,j.action,!0),j.withCredentials&&"withCredentials"in K&&(K.withCredentials=!0);var B=j.headers||{};return B["X-Requested-With"]!==null&&K.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(B).forEach(function(te){B[te]!==null&&K.setRequestHeader(te,B[te])}),K.send(ee),{abort:function(){K.abort()}}}var oe=+new Date,z=0;function L(){return"rc-upload-"+oe+"-"+ ++z}function C(j,K){return j.indexOf(K,j.length-K.length)!==-1}var _=function(j,K){if(j&&K){var ee=Array.isArray(K)?K:K.split(","),B=j.name||"",te=j.type||"",ye=te.replace(/\/.*$/,"");return ee.some(function(Pe){var xe=Pe.trim();return xe.charAt(0)==="."?C(B.toLowerCase(),xe.toLowerCase()):/\/\*$/.test(xe)?ye===xe.replace(/\/.*$/,""):te===xe})}return!0};function O(j,K){var ee=j.createReader(),B=[];function te(){ee.readEntries(function(ye){var Pe=Array.prototype.slice.apply(ye);B=B.concat(Pe);var xe=!Pe.length;xe?K(B):te()})}te()}var u=function(K,ee,B){var te=function ye(Pe,xe){xe=xe||"",Pe.isFile?Pe.file(function(Se){B(Se)&&(Pe.fullPath&&!Se.webkitRelativePath&&(Object.defineProperties(Se,{webkitRelativePath:{writable:!0}}),Se.webkitRelativePath=Pe.fullPath.replace(/^\//,""),Object.defineProperties(Se,{webkitRelativePath:{writable:!1}})),ee([Se]))}):Pe.isDirectory&&O(Pe,function(Se){Se.forEach(function(X){ye(X,""+xe+Pe.name+"/")})})};K.forEach(function(ye){te(ye.webkitGetAsEntry())})},g=u,m=Object.assign||function(j){for(var K=1;K=0)continue;if(!Object.prototype.hasOwnProperty.call(j,B))continue;ee[B]=j[B]}return ee}function U(j,K){if(!(j instanceof K))throw new TypeError("Cannot call a class as a function")}function Z(j,K){if(!j)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return K&&(typeof K=="object"||typeof K=="function")?K:j}function ne(j,K){if(typeof K!="function"&&K!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof K);j.prototype=Object.create(K&&K.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}),K&&(Object.setPrototypeOf?Object.setPrototypeOf(j,K):j.__proto__=K)}var de=function(K){return Object.keys(K).reduce(function(ee,B){return(B.substr(0,5)==="data-"||B.substr(0,5)==="aria-"||B==="role")&&(ee[B]=K[B]),ee},{})},_e=function(j){ne(K,j);function K(){var ee,B,te,ye;U(this,K);for(var Pe=arguments.length,xe=Array(Pe),Se=0;Se=de?J:{done:!1,value:Z[ne++]}}}}z.fromArray=O;function u(Z){return{next:function(){var ne=Z.next();return ne.done?J:{done:!1,value:ne.value}}}}z.fromNativeIterator=u;function g(Z){return Z?Array.isArray(Z)?z.fromArray(Z):Z:z.empty()}z.from=g;function m(Z,ne){return{next:function(){var de=Z.next();return de.done?J:{done:!1,value:ne(de.value)}}}}z.map=m;function b(Z,ne){return{next:function(){for(;;){var de=Z.next();if(de.done)return J;if(ne(de.value))return{done:!1,value:de.value}}}}}z.filter=b;function p(Z,ne){for(var de=Z.next();!de.done;de=Z.next())ne(de.value)}z.forEach=p;function y(Z,ne){ne===void 0&&(ne=Number.POSITIVE_INFINITY);var de=[];if(ne===0)return de;for(var _e=0,ae=Z.next();!ae.done&&!(de.push(ae.value),++_e>=ne);ae=Z.next());return de}z.collect=y;function S(){for(var Z=[],ne=0;ne=Z.length)return J;var _e=Z[de],ae=_e.next();return ae.done?(de++,this.next()):ae}}}z.concat=S;function U(Z){return new $(Z)}z.chain=U})(Re||(Re={}));var $=function(){function z(L){this.it=L}return z.prototype.next=function(){return this.it.next()},z}();function x(z){return Array.isArray(z)?Re.fromArray(z):z||Re.empty()}var D=function(){function z(L,C,_,O){C===void 0&&(C=0),_===void 0&&(_=L.length),O===void 0&&(O=C-1),this.items=L,this.start=C,this.end=_,this.index=O}return z.prototype.first=function(){return this.index=this.start,this.current()},z.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},z.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},z}(),fe=function(z){le(L,z);function L(C,_,O,u){return _===void 0&&(_=0),O===void 0&&(O=C.length),u===void 0&&(u=_-1),z.call(this,C,_,O,u)||this}return L.prototype.current=function(){return z.prototype.current.call(this)},L.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},L.prototype.first=function(){return this.index=this.start,this.current()},L.prototype.last=function(){return this.index=this.end-1,this.current()},L.prototype.parent=function(){return null},L}(D),oe=function(){function z(L,C){this.iterator=L,this.fn=C}return z.prototype.next=function(){return this.fn(this.iterator.next())},z}()},JeFH:function(Te,k){Te.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAwCAYAAAD9wT87AAAe2UlEQVR4XtVcB5QUVbr+blV1T+ieGWaYBAwgOSgooJLjENeA6a2KCVfZNbum3VXXsG9VdFfc1TXtGlfXLCKgEiRnUAHJWRzAyTl3V9V957vV1dPTM+M4Hn2Pd8/xIHRV9f3vn77/+/9qgVaWlHIggHMB+AA8K4TIbe2ek/FzKWUmgLGw7THQtLlCiBUn4z6j9ySa26SUMg3A+ZDyaljBMTC87mXrAUwSQtT+fxBOSqmbpjnaMIyrYJnToRvtQ/sOAJgihFh1ssvRSEFSysEAroJlXQZdp8VhXUEAS07UYGavBPSIQz10vacQ4vjJLJiUMgPAhZByJoQYyr0erZFYmFOFZK+GK7szGOB3Qoi/nsxycG9KQVLKKyDltbDMbBge5NYD87+twvxjNdhbZiIoJZZMysRpPqsShreXECL/ZBRMSjkAwM2wzIugG2k2gOW59fjgaDU2FNbjRI2Fm/r48eigdtz+TUKIF05GOSL3JKSUDwN4SALYXBRQwqzIrUNBvQ1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2VyqtEoHGG5rT/4nVVN+EPaCsBB0pkT0gyyyDpq+HEB8DWNTSa/PNbbgt/yal5NkxyzI90VRVdI3+HSFpmyuk0MeTeGXnkspgrE/0aGgfyxxqoJPPQGe/BxxcDYtiBiQ042to2mfsZwkheGA/ywr9NhJlIBekZBFqOrZ5kgCFhYUJqampbAWzp9LCsgDLrgB/t0foByDkdkB1UrdFv5j0s0j1Ax8qpfxdqP/U8h1mIABN5EEYhyHELgBUBv87IAS98/9utUhA19TUZMXFxc0AcCZbIqG5A+YFvhvEMEQXVm4s6Jon6VKzA053dTI46OH8hMARhbwa5OCbboU/9e8//BRH8j9mLdQoDqqNCwAAAABJRU5ErkJggg=="},Jky8:function(Te,k,o){"use strict";var le=o("sRBo"),J=o("kaz8"),Re=o("5NDa"),$=o("5rEg"),x=o("miYZ"),D=o("tsqr"),fe=o("9og8"),oe=o("2qtc"),z=o("kLXV"),L=o("tJVT"),C=o("WmNS"),_=o.n(C),O=o("q1tI"),u=o.n(O),g=o("9kvl"),m=o("6CvP"),b=o("1XHU"),p=o("1vsH"),y;(function(U){U[U.Professor=1]="Professor",U[U.AssistantProfessor=2]="AssistantProfessor",U[U.Student=3]="Student"})(y||(y={}));var S=function(Z){var ne=Z.visible,de=Z.user,_e=Z.onCancel,ae=_e===void 0?function(){}:_e,T=Object(O.useState)(),d=Object(L.a)(T,2),s=d[0],ue=d[1],Y=Object(O.useState)([]),F=Object(L.a)(Y,2),N=F[0],H=F[1],w=Object(O.useState)(!1),j=Object(L.a)(w,2),K=j[0],ee=j[1],B=Object(O.useState)(!1),te=Object(L.a)(B,2),ye=te[0],Pe=te[1],xe=Object(O.useState)(),Se=Object(L.a)(xe,2),X=Se[0],re=Se[1];Object(O.useEffect)(function(){var v;if(de!=null&&(v=de.userInfo)!==null&&v!==void 0&&v.identity){var W;H([(de==null||((W=de.userInfo)===null||W===void 0)?void 0:W.identity)==="student"?3:1])}},[de]);var be=function(W,P){if(N.includes(y.Professor)){z.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:u.a.createElement("div",{className:"tc"},P||"\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838"),onOk:function(){g.d.push("/classrooms/".concat(W,"/students"))}});return}g.d.push("/classrooms/".concat(W,"/students"))},ie=function(){var v=Object(fe.a)(_.a.mark(function W(){var P;return _.a.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:if(s){R.next=3;break}return D.b.info("\u9080\u8BF7\u7801\u4E0D\u80FD\u4E3A\u7A7A"),R.abrupt("return");case 3:return ee(!0),R.next=6,Object(m.c)({invite_code:s,professor:N.includes(y.Professor)?1:null,assistant_professor:N.includes(y.AssistantProfessor)?1:null,student:N.includes(y.Student)?1:null});case 6:if(P=R.sent,ee(!1),!((P==null?void 0:P.status)===-2)){R.next=22;break}if(Ce(),!(P.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1")){R.next=14;break}return Pe(!0),re(1),R.abrupt("return");case 14:if(!(P.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u804C\u4E1A\u8BA4\u8BC1")){R.next=18;break}return Pe(!0),re(2),R.abrupt("return");case 18:if(!(P.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u548C\u804C\u4E1A\u8BA4\u8BC1")){R.next=22;break}return Pe(!0),re(3),R.abrupt("return");case 22:if(!((P==null?void 0:P.status)===0)){R.next=27;break}return Object(p.Y)(["\u6559\u5B66\u8BFE\u5802","\u9996\u9875","\u52A0\u5165\u8BFE\u5802"]),Ce(),(P==null?void 0:P.course_id)&&be(P.course_id,P.message),R.abrupt("return");case 27:case"end":return R.stop()}},W)}));return function(){return v.apply(this,arguments)}}(),Ce=function(){var v=Object(fe.a)(_.a.mark(function W(){return _.a.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:ae();case 1:case"end":return ce.stop()}},W)}));return function(){return v.apply(this,arguments)}}();return u.a.createElement(u.a.Fragment,null,u.a.createElement(z.a,{centered:!0,keyboard:!1,closable:!1,title:"\u52A0\u5165\u8BFE\u5802",visible:ne,confirmLoading:K,onOk:ie,onCancel:Ce},u.a.createElement("div",{className:"tc"},u.a.createElement("div",null,u.a.createElement("span",null,"\u8BFE\u5802\u9080\u8BF7\u7801\uFF1A"),u.a.createElement($.a,{placeholder:"\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801",style:{width:270},value:s,onChange:function(W){if(W.target.value.length>=7){D.b.info("\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801\uFF01");return}ue(W.target.value)}})),u.a.createElement("div",{className:"mt10 font14"},u.a.createElement("span",null,"\u8EAB\u4EFD\uFF1A"),u.a.createElement(J.a.Group,{value:N,onChange:function(W){return H(W)}},u.a.createElement(J.a,{value:y.Professor,disabled:N.includes(2)},"\u6559\u5E08"),u.a.createElement(J.a,{value:y.AssistantProfessor,disabled:N.includes(1)},"\u52A9\u6559"),u.a.createElement(J.a,{value:y.Student},"\u5B66\u751F/\u53C2\u8D5B\u8005"))))),u.a.createElement(b.a,{visible:ye,onCancel:function(){return Pe(!1)},occupationValue:X}))};k.a=Object(g.a)(function(U){var Z=U.user;return{user:Z}})(S)},Jq4h:function(Te,k,o){Te.exports=o.p+"static/qrcode.54870d9b.png"},KUBS:function(Te,k,o){Te.exports={wrap:"wrap___3sliA",modal:"modal___1a97-",title:"title___2LzwK",path:"path___10GWZ",colorBlue:"colorBlue___2Bn0D",width240:"width240___2eUex",filePath:"filePath___3Oexf"}},LSTS:function(Te,k,o){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var le=function(){function _(O,u){for(var g=0;g=0)continue;if(!Object.prototype.hasOwnProperty.call(_,g))continue;u[g]=_[g]}return u}function oe(_,O){if(!(_ instanceof O))throw new TypeError("Cannot call a class as a function")}function z(_,O){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:_}function L(_,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);_.prototype=Object.create(O&&O.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(_,O):_.__proto__=O)}var C=function(_){L(O,_);function O(u){oe(this,O);var g=z(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,u));return g.scrollListener=g.scrollListener.bind(g),g.eventListenerOptions=g.eventListenerOptions.bind(g),g.mousewheelListener=g.mousewheelListener.bind(g),g}return le(O,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var g=this.getParentElement(this.scrollComponent);g.scrollTop=g.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var g=!1,m={get passive(){g=!0}};try{document.addEventListener("test",null,m),document.removeEventListener("test",null,m)}catch(b){}return g}},{key:"eventListenerOptions",value:function(){var g=this.props.useCapture;return this.isPassiveSupported()&&(g={useCapture:this.props.useCapture,passive:!0}),g}},{key:"setDefaultLoader",value:function(g){this.defaultLoader=g}},{key:"detachMousewheelListener",value:function(){var g=window;this.props.useWindow===!1&&(g=this.scrollComponent.parentNode),g.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var g=window;this.props.useWindow===!1&&(g=this.getParentElement(this.scrollComponent)),g.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),g.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(g){var m=this.props.getScrollParent&&this.props.getScrollParent();return m!=null?m:g&&g.parentNode}},{key:"filterProps",value:function(g){return g}},{key:"attachScrollListener",value:function(){var g=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!g)return;var m=window;this.props.useWindow===!1&&(m=g),m.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),m.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),m.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(g){g.deltaY===1&&!this.isPassiveSupported()&&g.preventDefault()}},{key:"scrollListener",value:function(){var g=this.scrollComponent,m=window,b=this.getParentElement(g),p=void 0;if(this.props.useWindow){var y=document.documentElement||document.body.parentNode||document.body,S=m.pageYOffset!==void 0?m.pageYOffset:y.scrollTop;this.props.isReverse?p=S:p=this.calculateOffset(g,S)}else this.props.isReverse?p=b.scrollTop:p=g.scrollHeight-b.scrollTop-b.clientHeight;p1&&arguments[1]!==void 0?arguments[1]:1,He=Je.length,Ze=0;Ze1&&arguments[1]!==void 0?arguments[1]:!1;return Object(de.a)(ee).map(function(te,ye){if(!x.isValidElement(te)||!te.type)return null;var Pe=te.type.isSelectOptGroup,xe=te.key,Se=te.props,X=Se.children,re=Object(fe.a)(Se,["children"]);return B||!Pe?_e(te):Object(ne.a)(Object(ne.a)({key:"__RC_SELECT_GRP__".concat(xe===null?ye:xe,"__"),label:xe},re),{},{options:ae(X)})}).filter(function(te){return te})}var T=o("2Qr1"),d=o("qNPg"),s=o("U8pU"),ue=o("Kwbf"),Y=o("WKfj");function F(ee){var B=ee.mode,te=ee.options,ye=ee.children,Pe=ee.backfill,xe=ee.allowClear,Se=ee.placeholder,X=ee.getInputElement,re=ee.showSearch,be=ee.onSearch,ie=ee.defaultOpen,Ce=ee.autoFocus,v=ee.labelInValue,W=ee.value,P=ee.inputValue,ce=ee.optionLabelProp,R=B==="multiple"||B==="tags",Q=re!==void 0?re:R||B==="combobox",Ee=te||ae(ye);if(Object(ue.a)(B!=="tags"||Ee.every(function(qe){return!qe.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),B==="tags"||B==="combobox"){var De=Ee.some(function(qe){return qe.options?qe.options.some(function(Je){return typeof("value"in Je?Je.value:Je.key)=="number"}):typeof("value"in qe?qe.value:qe.key)=="number"});Object(ue.a)(!De,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(ue.a)(B!=="combobox"||!ce,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(ue.a)(B==="combobox"||!Pe,"`backfill` only works with `combobox` mode."),Object(ue.a)(B==="combobox"||!X,"`getInputElement` only work with `combobox` mode."),Object(ue.b)(B!=="combobox"||!X||!xe||!Se,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),be&&!Q&&B!=="combobox"&&B!=="tags"&&Object(ue.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(ue.b)(!ie||Ce,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),W!=null){var Ie=Object(Y.d)(W);Object(ue.a)(!v||Ie.every(function(qe){return Object(s.a)(qe)==="object"&&("key"in qe||"value"in qe)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(ue.a)(!R||Array.isArray(W),"`value` should be array when `mode` is `multiple` or `tags`")}if(ye){var Ge=null;Object(de.a)(ye).some(function(qe){if(!x.isValidElement(qe)||!qe.type)return!1;var Je=qe.type;if(Je.isSelectOption)return!1;if(Je.isSelectOptGroup){var $e=Object(de.a)(qe.props.children).every(function(it){return!x.isValidElement(it)||!qe.type||it.type.isSelectOption?!0:(Ge=it.type,!1)});return!$e}return Ge=Je,!0}),Ge&&Object(ue.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ge.displayName||Ge.name||Ge,"`.")),Object(ue.a)(P===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var N=F,H=Object(d.a)({prefixCls:"rc-select",components:{optionList:p},convertChildrenToData:ae,flattenOptions:T.d,getLabeledValue:T.e,filterOptions:T.b,isValueDisabled:T.g,findValueOption:T.c,warningProps:N,fillOptionsWithMissingValue:T.a}),w=function(ee){Object(Re.a)(te,ee);var B=Object($.a)(te);function te(){var ye;return Object(le.a)(this,te),ye=B.apply(this,arguments),ye.selectRef=x.createRef(),ye.focus=function(){ye.selectRef.current.focus()},ye.blur=function(){ye.selectRef.current.blur()},ye}return Object(J.a)(te,[{key:"render",value:function(){return x.createElement(H,Object.assign({ref:this.selectRef},this.props))}}]),te}(x.Component);w.Option=S,w.OptGroup=Z;var j=w,K=k.c=j},MI8n:function(Te,k,o){"use strict";o.d(k,"b",function(){return D}),o.d(k,"a",function(){return z}),o.d(k,"e",function(){return L}),o.d(k,"d",function(){return C}),o.d(k,"c",function(){return _}),o.d(k,"f",function(){return O});var le=o("/cxE"),J=o("C/vA"),Re=o("pmY6"),$=o("24hK"),x=function(){var u=function(g,m){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,p){b.__proto__=p}||function(b,p){for(var y in p)p.hasOwnProperty(y)&&(b[y]=p[y])},u(g,m)};return function(g,m){u(g,m);function b(){this.constructor=g}g.prototype=m===null?Object.create(m):(b.prototype=m.prototype,new b)}}(),D;(function(u){u.None=function(){return Re.a.None};function g(N){return function(H,w,j){w===void 0&&(w=null);var K=!1,ee;return ee=N(function(B){return K?void 0:(ee?ee.dispose():K=!0,H.call(w,B))},null,j),K&&ee.dispose(),ee}}u.once=g;function m(N,H){return Z(function(w,j,K){return j===void 0&&(j=null),N(function(ee){return w.call(j,H(ee))},null,K)})}u.map=m;function b(N,H){return Z(function(w,j,K){return j===void 0&&(j=null),N(function(ee){H(ee),w.call(j,ee)},null,K)})}u.forEach=b;function p(N,H){return Z(function(w,j,K){return j===void 0&&(j=null),N(function(ee){return H(ee)&&w.call(j,ee)},null,K)})}u.filter=p;function y(N){return N}u.signal=y;function S(){for(var N=[],H=0;H1)&&Pe.fire(Se),ye=0},w)})},onLastListenerRemove:function(){ee.dispose()}});return Pe.event}u.debounce=ne;function de(N){var H=new Date().getTime();return m(g(N),function(w){return new Date().getTime()-H})}u.stopwatch=de;function _e(N){var H=!0,w;return p(N,function(j){var K=H||j!==w;return H=!1,w=j,K})}u.latch=_e;function ae(N,H,w){H===void 0&&(H=!1),w===void 0&&(w=[]);var j=w.slice(),K=N(function(te){j?j.push(te):B.fire(te)}),ee=function(){j&&j.forEach(function(te){return B.fire(te)}),j=null},B=new z({onFirstListenerAdd:function(){K||(K=N(function(te){return B.fire(te)}))},onFirstListenerDidAdd:function(){j&&(H?setTimeout(ee):ee())},onLastListenerRemove:function(){K&&K.dispose(),K=null}});return B.event}u.buffer=ae;var T=function(){function N(H){this.event=H}return N.prototype.map=function(H){return new N(m(this.event,H))},N.prototype.forEach=function(H){return new N(b(this.event,H))},N.prototype.filter=function(H){return new N(p(this.event,H))},N.prototype.reduce=function(H,w){return new N(U(this.event,H,w))},N.prototype.latch=function(){return new N(_e(this.event))},N.prototype.debounce=function(H,w,j,K){return w===void 0&&(w=100),j===void 0&&(j=!1),new N(ne(this.event,H,w,j,K))},N.prototype.on=function(H,w,j){return this.event(H,w,j)},N.prototype.once=function(H,w,j){return g(this.event)(H,w,j)},N}();function d(N){return new T(N)}u.chain=d;function s(N,H,w){w===void 0&&(w=function(te){return te});var j=function(){for(var te=[],ye=0;ye=0||Y.relatedTarget.className.indexOf("".concat(w,"-next"))>=0))return;T.setState({goInputText:""}),H(T.getValidValue())},T.go=function(Y){var F=T.state.goInputText;if(F==="")return;(Y.keyCode===u.ENTER||Y.type==="click")&&(T.setState({goInputText:""}),T.props.quickGo(T.getValidValue()))},T}return Object(x.a)(ae,[{key:"getValidValue",value:function(){var d=this.state,s=d.goInputText,ue=d.current;return!s||isNaN(s)?ue:Number(s)}},{key:"getPageSizeOptions",value:function(){var d=this.props,s=d.pageSize,ue=d.pageSizeOptions;return ue.some(function(Y){return Y.toString()===s.toString()})?ue:ue.concat([s.toString()]).sort(function(Y,F){var N=isNaN(Number(Y))?0:Number(Y),H=isNaN(Number(F))?0:Number(F);return N-H})}},{key:"render",value:function(){var d=this,s=this.props,ue=s.pageSize,Y=s.locale,F=s.rootPrefixCls,N=s.changeSize,H=s.quickGo,w=s.goButton,j=s.selectComponentClass,K=s.buildOptionText,ee=s.selectPrefixCls,B=s.disabled,te=this.state.goInputText,ye="".concat(F,"-options"),Pe=j,xe=null,Se=null,X=null;if(!N&&!H)return null;var re=this.getPageSizeOptions();if(N&&Pe){var Ee=re.map(function(ie,Ce){return z.a.createElement(Pe.Option,{key:Ce,value:ie.toString()},(K||d.buildOptionText)(ie))});xe=z.a.createElement(Pe,{disabled:B,prefixCls:ee,showSearch:!1,className:"".concat(ye,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(ue||re[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Ce){return Ce.parentNode}},Ee)}return H&&(w&&(X=typeof w=="boolean"?z.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:B,className:"".concat(ye,"-quick-jumper-button")},Y.jump_to_confirm):z.a.createElement("span",{onClick:this.go,onKeyUp:this.go},w)),Se=z.a.createElement("div",{className:"".concat(ye,"-quick-jumper")},Y.jump_to,z.a.createElement("input",{disabled:B,type:"text",value:te,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),Y.page,X)),z.a.createElement("li",{className:"".concat(ye)},xe,Se)}}]),ae}(z.a.Component);g.defaultProps={pageSizeOptions:["10","20","50","100"]};var m=g,E=o("N2Kk");function p(){}function y(de){return typeof de=="number"&&isFinite(de)&&Math.floor(de)===de}function S(de,_e,ae){return ae}function U(de,_e,ae){var T=typeof de=="undefined"?_e.pageSize:de;return Math.floor((ae.total-1)/T)+1}var Z=function(de){Object(D.a)(ae,de);var _e=Object(fe.a)(ae);function ae(T){var d;Object($.a)(this,ae),d=_e.call(this,T),d.getJumpPrevPage=function(){return Math.max(1,d.state.current-(d.props.showLessItems?3:5))},d.getJumpNextPage=function(){return Math.min(U(void 0,d.state,d.props),d.state.current+(d.props.showLessItems?3:5))},d.getItemIcon=function(N,H){var w=d.props.prefixCls,j=N||z.a.createElement("button",{type:"button","aria-label":H,className:"".concat(w,"-item-link")});return typeof N=="function"&&(j=z.a.createElement(N,Object(Re.a)({},d.props))),j},d.savePaginationNode=function(N){d.paginationNode=N},d.isValid=function(N){return y(N)&&N!==d.state.current},d.shouldDisplayQuickJumper=function(){var N=d.props,H=N.showQuickJumper,w=N.pageSize,j=N.total;return j<=w?!1:H},d.handleKeyDown=function(N){(N.keyCode===u.ARROW_UP||N.keyCode===u.ARROW_DOWN)&&N.preventDefault()},d.handleKeyUp=function(N){var H=d.getValidValue(N),w=d.state.currentInputValue;H!==w&&d.setState({currentInputValue:H}),N.keyCode===u.ENTER?d.handleChange(H):N.keyCode===u.ARROW_UP?d.handleChange(H-1):N.keyCode===u.ARROW_DOWN&&d.handleChange(H+1)},d.changePageSize=function(N){var H=d.state.current,w=U(N,d.state,d.props);H=H>w?w:H,w===0&&(H=d.state.current),typeof N=="number"&&("pageSize"in d.props||d.setState({pageSize:N}),"current"in d.props||d.setState({current:H,currentInputValue:H})),d.props.onShowSizeChange(H,N),"onChange"in d.props&&d.props.onChange&&d.props.onChange(H,N)},d.handleChange=function(N){var H=d.props.disabled,w=N;if(d.isValid(w)&&!H){var j=U(void 0,d.state,d.props);w>j?w=j:w<1&&(w=1),"current"in d.props||d.setState({current:w,currentInputValue:w});var K=d.state.pageSize;return d.props.onChange(w,K),w}return d.state.current},d.prev=function(){d.hasPrev()&&d.handleChange(d.state.current-1)},d.next=function(){d.hasNext()&&d.handleChange(d.state.current+1)},d.jumpPrev=function(){d.handleChange(d.getJumpPrevPage())},d.jumpNext=function(){d.handleChange(d.getJumpNextPage())},d.hasPrev=function(){return d.state.current>1},d.hasNext=function(){return d.state.current2?w-2:0),K=2;K=ue?F=ue:F=Number(s),F}},{key:"getShowSizeChanger",value:function(){var d=this.props,s=d.showSizeChanger,ue=d.total,Y=d.totalBoundaryShowSizeChanger;return typeof s!="undefined"?s:ue>Y}},{key:"renderPrev",value:function(d){var s=this.props,ue=s.prevIcon,Y=s.itemRender,F=Y(d,"prev",this.getItemIcon(ue,"prev page")),N=!this.hasPrev();return Object(oe.isValidElement)(F)?Object(oe.cloneElement)(F,{disabled:N}):F}},{key:"renderNext",value:function(d){var s=this.props,ue=s.nextIcon,Y=s.itemRender,F=Y(d,"next",this.getItemIcon(ue,"next page")),N=!this.hasNext();return Object(oe.isValidElement)(F)?Object(oe.cloneElement)(F,{disabled:N}):F}},{key:"render",value:function(){var d=this,s=this.props,ue=s.prefixCls,Y=s.className,F=s.style,N=s.disabled,H=s.hideOnSinglePage,w=s.total,j=s.locale,K=s.showQuickJumper,ee=s.showLessItems,B=s.showTitle,te=s.showTotal,ye=s.simple,Pe=s.itemRender,xe=s.showPrevNextJumpers,Se=s.jumpPrevIcon,X=s.jumpNextIcon,re=s.selectComponentClass,Ee=s.selectPrefixCls,ie=s.pageSizeOptions,Ce=this.state,v=Ce.current,W=Ce.pageSize,P=Ce.currentInputValue;if(H===!0&&w<=W)return null;var ce=U(void 0,this.state,this.props),R=[],Q=null,be=null,De=null,Ie=null,Ge=null,qe=K&&K.goButton,Je=ee?1:2,$e=v-1>0?v-1:0,it=v+1=Je*2&&v!==1+2&&(R[0]=Object(oe.cloneElement)(R[0],{className:"".concat(ue,"-item-after-jump-prev")}),R.unshift(Q)),ce-v>=Je*2&&v!==ce-2&&(R[R.length-1]=Object(oe.cloneElement)(R[R.length-1],{className:"".concat(ue,"-item-before-jump-next")}),R.push(be)),ze!==1&&R.unshift(De),st!==ce&&R.push(Ie)}var ke=null;te&&(ke=z.a.createElement("li",{className:"".concat(ue,"-total-text")},te(w,[w===0?0:(v-1)*W+1,v*W>w?w:v*W])));var Ke=!this.hasPrev()||!ce,He=!this.hasNext()||!ce;return z.a.createElement("ul",Object(le.a)({className:C()(ue,Y,Object(J.a)({},"".concat(ue,"-disabled"),N)),style:F,unselectable:"unselectable",ref:this.savePaginationNode},xt),ke,z.a.createElement("li",{title:B?j.prev_page:null,onClick:this.prev,tabIndex:Ke?null:0,onKeyPress:this.runIfEnterPrev,className:C()("".concat(ue,"-prev"),Object(J.a)({},"".concat(ue,"-disabled"),Ke)),"aria-disabled":Ke},this.renderPrev($e)),R,z.a.createElement("li",{title:B?j.next_page:null,onClick:this.next,tabIndex:He?null:0,onKeyPress:this.runIfEnterNext,className:C()("".concat(ue,"-next"),Object(J.a)({},"".concat(ue,"-disabled"),He)),"aria-disabled":He},this.renderNext(it)),z.a.createElement(m,{disabled:N,locale:j,rootPrefixCls:ue,selectComponentClass:re,selectPrefixCls:Ee,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:v,pageSize:W,pageSizeOptions:ie,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:qe}))}}],[{key:"getDerivedStateFromProps",value:function(d,s){var ue={};if("current"in d&&(ue.current=d.current,d.current!==s.current&&(ue.currentInputValue=ue.current)),"pageSize"in d&&d.pageSize!==s.pageSize){var Y=s.current,F=U(d.pageSize,s,d);Y=Y>F?F:Y,"current"in d||(ue.current=Y,ue.currentInputValue=Y),ue.pageSize=d.pageSize}return ue}}]),ae}(z.a.Component);Z.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:p,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:p,locale:E.a,style:{},itemRender:S,totalBoundaryShowSizeChanger:50};var ne=Z},"6Fuo":function(Te,k,o){Te.exports={flex_box_center:"flex_box_center___3p8A0",flex_space_between:"flex_space_between___2wMwo",flex_box_vertical_center:"flex_box_vertical_center___2fKhV",flex_box_center_end:"flex_box_center_end___27Yk8",flex_box_column:"flex_box_column___3Khbo",rightMenu:"rightMenu___20Eel",joinMenu:"joinMenu___2blJt",joinBoard:"joinBoard___2XUXK",joinCol:"joinCol___3o5gp"}},"6RRn":function(Te,k,o){"use strict";var le=o("wCXF"),J=o("n6Qo");o.d(k,"b",function(){return J.a});var Re=o("IBYe"),$=o("6eGT"),x=o("hW8S");o.d(k,"a",function(){return x.a}),k.c=le.b},"6eGT":function(Te,k,o){"use strict";function le(J){return null}k.a=le},"746U":function(Te,k,o){"use strict";o.d(k,"d",function(){return J}),o.d(k,"j",function(){return Re}),o.d(k,"i",function(){return $}),o.d(k,"h",function(){return x}),o.d(k,"e",function(){return D}),o.d(k,"k",function(){return fe}),o.d(k,"l",function(){return oe}),o.d(k,"a",function(){return z}),o.d(k,"f",function(){return C}),o.d(k,"g",function(){return _}),o.d(k,"m",function(){return O}),o.d(k,"c",function(){return m}),o.d(k,"b",function(){return E}),o.d(k,"n",function(){return p}),o.d(k,"o",function(){return y});var le={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function J(S){return Array.isArray?Array.isArray(S):!!(S&&typeof S.length===le.number&&S.constructor===Array)}function Re(S){return typeof S===le.string||S instanceof String}function $(S){return typeof S===le.object&&S!==null&&!Array.isArray(S)&&!(S instanceof RegExp)&&!(S instanceof Date)}function x(S){return(typeof S===le.number||S instanceof Number)&&!isNaN(S)}function D(S){return S===!0||S===!1}function fe(S){return typeof S===le.undefined}function oe(S){return fe(S)||S===null}function z(S,U){if(!S)throw new Error(U?"Unexpected type, expected '"+U+"'":"Unexpected type")}var L=Object.prototype.hasOwnProperty;function C(S){if(!$(S))return!1;for(var U in S)if(L.call(S,U))return!1;return!0}function _(S){return typeof S===le.function}function O(S,U){for(var Z=Math.min(S.length,U.length),ne=0;ne0&&arguments[0]!==void 0?arguments[0]:[],m=new Map;function E(p){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(p||[]).forEach(function(S){var U=S.key,Z=S.children;Object(x.a)(U!=null,"Tree node must have a certain key: [".concat(y).concat(U,"]"));var ne=String(U);Object(x.a)(!m.has(ne)||U===null||U===void 0,"Same 'key' exist in the Tree: ".concat(ne)),m.set(ne,!0),E(Z,"".concat(y).concat(ne," > "))})}E(g)}function z(g){function m(E){var p=Object($.a)(E);return p.map(function(y){if(!Object(D.i)(y))return Object(x.a)(!y,"Tree/TreeNode can only accept TreeNode as children."),null;var S=y.key,U=y.props,Z=U.children,ne=Object(Re.a)(U,["children"]),de=Object(J.a)({key:S},ne),_e=m(Z);return _e.length&&(de.children=_e),de}).filter(function(y){return y})}return m(g)}function L(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],E=new Set(m===!0?[]:m),p=[];function y(S){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return S.map(function(Z,ne){var de=Object(D.h)(U?U.pos:"0",ne),_e=fe(Z.key,de),ae=Object(J.a)(Object(J.a)({},Z),{},{parent:U,pos:de,children:null,data:Z,isStart:[].concat(Object(le.a)(U?U.isStart:[]),[ne===0]),isEnd:[].concat(Object(le.a)(U?U.isEnd:[]),[ne===S.length-1])});return p.push(ae),m===!0||E.has(_e)?ae.children=y(Z.children||[],ae):ae.children=[],ae})}return y(g),p}function C(g,m,E){var p;E?typeof E=="string"?p=function(U){return U[E]}:typeof E=="function"&&(p=function(U){return E(U)}):p=function(U,Z){return fe(U.key,Z)};function y(S,U,Z){var ne=S?S.children:g,de=S?Object(D.h)(Z.pos,U):"0";if(S){var _e=p(S,de),ae={node:S,index:U,pos:de,key:_e,parentPos:Z.node?Z.pos:null,level:Z.level+1};m(ae)}ne&&ne.forEach(function(T,d){y(T,d,{node:S,pos:de,level:Z?Z.level+1:-1})})}y(null)}function _(g){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},E=m.initWrapper,p=m.processEntity,y=m.onProcessFinished,S=arguments.length>2?arguments[2]:void 0,U={},Z={},ne={posEntities:U,keyEntities:Z};return E&&(ne=E(ne)||ne),C(g,function(de){var _e=de.node,ae=de.index,T=de.pos,d=de.key,s=de.parentPos,ue=de.level,Y={node:_e,index:ae,key:d,pos:T,level:ue},F=fe(d,T);U[T]=Y,Z[F]=Y,Y.parent=U[s],Y.parent&&(Y.parent.children=Y.parent.children||[],Y.parent.children.push(Y)),p&&p(Y,ne)},S),y&&y(ne),ne}function O(g,m){var E=m.expandedKeys,p=m.selectedKeys,y=m.loadedKeys,S=m.loadingKeys,U=m.checkedKeys,Z=m.halfCheckedKeys,ne=m.dragOverNodeKey,de=m.dropPosition,_e=m.keyEntities,ae=_e[g],T={eventKey:g,expanded:E.indexOf(g)!==-1,selected:p.indexOf(g)!==-1,loaded:y.indexOf(g)!==-1,loading:S.indexOf(g)!==-1,checked:U.indexOf(g)!==-1,halfChecked:Z.indexOf(g)!==-1,pos:String(ae?ae.pos:""),dragOver:ne===g&&de===0,dragOverGapTop:ne===g&&de===-1,dragOverGapBottom:ne===g&&de===1};return T}function u(g){var m=g.data,E=g.expanded,p=g.selected,y=g.checked,S=g.loaded,U=g.loading,Z=g.halfChecked,ne=g.dragOver,de=g.dragOverGapTop,_e=g.dragOverGapBottom,ae=g.pos,T=g.active,d=Object(J.a)(Object(J.a)({},m),{},{expanded:E,selected:p,checked:y,loaded:S,loading:U,halfChecked:Z,dragOver:ne,dragOverGapTop:de,dragOverGapBottom:_e,pos:ae,active:T});return"props"in d||Object.defineProperty(d,"props",{get:function(){return Object(x.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),g}}),d}},"8HAY":function(Te,k,o){"use strict";o.d(k,"a",function(){return D}),o.d(k,"b",function(){return fe});var le=o("pmY6"),J=o("MI8n"),Re=function(){var oe=function(z,L){return oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,_){C.__proto__=_}||function(C,_){for(var O in _)_.hasOwnProperty(O)&&(C[O]=_[O])},oe(z,L)};return function(z,L){oe(z,L);function C(){this.constructor=z}z.prototype=L===null?Object.create(L):(C.prototype=L.prototype,new C)}}(),$=function(oe,z,L,C){function _(O){return O instanceof L?O:new L(function(u){u(O)})}return new(L||(L=Promise))(function(O,u){function g(p){try{E(C.next(p))}catch(y){u(y)}}function m(p){try{E(C.throw(p))}catch(y){u(y)}}function E(p){p.done?O(p.value):_(p.value).then(g,m)}E((C=C.apply(oe,z||[])).next())})},x=function(oe,z){var L={label:0,sent:function(){if(O[0]&1)throw O[1];return O[1]},trys:[],ops:[]},C,_,O,u;return u={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function g(E){return function(p){return m([E,p])}}function m(E){if(C)throw new TypeError("Generator is already executing.");for(;L;)try{if(C=1,_&&(O=E[0]&2?_.return:E[0]?_.throw||((O=_.return)&&O.call(_),0):_.next)&&!(O=O.call(_,E[1])).done)return O;(_=0,O)&&(E=[E[0]&2,O.value]);switch(E[0]){case 0:case 1:O=E;break;case 4:return L.label++,{value:E[1],done:!1};case 5:L.label++,_=E[1],E=[0];continue;case 7:E=L.ops.pop(),L.trys.pop();continue;default:if(!(O=L.trys,O=O.length>0&&O[O.length-1])&&(E[0]===6||E[0]===2)){L=0;continue}if(E[0]===3&&(!O||E[1]>O[0]&&E[1]1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(le.a)())return null;var L=document.createElement("style");if((oe=z.csp)===null||oe===void 0?void 0:oe.nonce){var C;L.nonce=(C=z.csp)===null||C===void 0?void 0:C.nonce}L.innerHTML=fe;var _=Re(z),O=_.firstChild;return z.prepend&&_.prepend?_.prepend(L):z.prepend&&O?_.insertBefore(L,O):_.appendChild(L),L}var x=new Map;function D(fe,oe){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},L=Re(z);if(!x.has(L)){var C=$("",z),_=C.parentNode;x.set(L,_),_.removeChild(C)}var O=Array.from(x.get(L).children).find(function(p){return p.tagName==="STYLE"&&p[J]===oe});if(O){var u,g;if(((u=z.csp)===null||u===void 0?void 0:u.nonce)&&O.nonce!==((g=z.csp)===null||g===void 0?void 0:g.nonce)){var m;O.nonce=(m=z.csp)===null||m===void 0?void 0:m.nonce}return O.innerHTML!==fe&&(O.innerHTML=fe),O}var E=$(fe,z);return E[J]=oe,E}},"C/vA":function(Te,k,o){"use strict";o.d(k,"a",function(){return le});function le(J){var Re=this,$=!1,x;return function(){return $||($=!0,x=J.apply(Re,arguments)),x}}},"Cg/j":function(Te,k,o){"use strict";o.d(k,"b",function(){return le}),o.d(k,"a",function(){return J}),o.d(k,"c",function(){return $}),o.d(k,"d",function(){return x});var le;(function(D){D.serviceIds=new Map,D.DI_TARGET="$di$target",D.DI_DEPENDENCIES="$di$dependencies";function fe(oe){return oe[D.DI_DEPENDENCIES]||[]}D.getServiceDependencies=fe})(le||(le={}));var J=$("instantiationService");function Re(D,fe,oe,z){fe[le.DI_TARGET]===fe?fe[le.DI_DEPENDENCIES].push({id:D,index:oe,optional:z}):(fe[le.DI_DEPENDENCIES]=[{id:D,index:oe,optional:z}],fe[le.DI_TARGET]=fe)}function $(D){if(le.serviceIds.has(D))return le.serviceIds.get(D);var fe=function(oe,z,L){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");Re(fe,oe,L,!1)};return fe.toString=function(){return D},le.serviceIds.set(D,fe),fe}function x(D){return function(fe,oe,z){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");Re(D,fe,z,!0)}}},"Cs+z":function(Te,k,o){Te.exports=o.p+"static/jqr.b801d45b.png"},"Ct/S":function(Te,k,o){Te.exports={tilte:"tilte___1Tz7i",flexRow:"flexRow___3w9_D",flexColumn:"flexColumn___2HzC_",footerWrap:"footerWrap___12F5M",img:"img___3ED9Z",content:"content___rqPDY",modalContent:"modalContent___2h4ne"}},Cy2x:function(Te,k,o){"use strict";var le=o("DjyN"),J=o("NUBc"),Re=o("cWXX"),$=o("/ezw"),x=o("+L6B"),D=o("2/Rp"),fe=o("miYZ"),oe=o("tsqr"),z=o("2qtc"),L=o("kLXV"),C=o("9og8"),_=o("tJVT"),O=o("WmNS"),u=o.n(O),g=o("q1tI"),m=o.n(g),E=o("Ty5D"),p=o("9kvl"),y=o("m3rI"),S=o("7Kak"),U=o("9yH6"),Z=o("PpiC"),ne=o("cU5J"),de=o.n(ne),_e=function(te){var ye=te.shixunsDetail,Pe=te.globalSetting,xe=te.loading,Se=te.dispatch,X=te.onReloadData,re=Object(Z.a)(te,["shixunsDetail","globalSetting","loading","dispatch","onReloadData"]),Ee=Object(g.useState)(),ie=Object(_.a)(Ee,2),Ce=ie[0],v=ie[1],W=Object(g.useState)([]),P=Object(_.a)(W,2),ce=P[0],R=P[1];Object(g.useEffect)(function(){ye.actionTabs.key==="Collaborators-ChangeManager"&&Q()},[ye.actionTabs.key]);var Q=function(){var Ge=Object(C.a)(u.a.mark(function qe(){var Je,$e;return u.a.wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:return xt.next=2,Se({type:"shixunsDetail/getChangeManager",payload:{id:(Je=ye.actionTabs.params)===null||Je===void 0?void 0:Je.id}});case 2:$e=xt.sent,R($e||[]);case 4:case"end":return xt.stop()}},qe)}));return function(){return Ge.apply(this,arguments)}}(),be=function(){var qe;Se({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:(qe=ye.actionTabs.params)===null||qe===void 0?void 0:qe.id}}})},De=function(){var Ge=Object(C.a)(u.a.mark(function qe(){var Je,$e;return u.a.wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:if(Ce){xt.next=3;break}return oe.b.info("\u6240\u9009\u4EBA\u5458\u4E3A\u7A7A\uFF0C\u6CA1\u6709\u66F4\u6362\u6210\u529F"),xt.abrupt("return");case 3:return xt.next=5,Se({type:"shixunsDetail/changeManager",payload:{id:(Je=ye.actionTabs.params)===null||Je===void 0?void 0:Je.id,user_id:Ce}});case 5:$e=xt.sent,Ie(),$e&&(X(),oe.b.info($e.message));case 8:case"end":return xt.stop()}},qe)}));return function(){return Ge.apply(this,arguments)}}(),Ie=function(){Se({type:"shixunsDetail/setActionTabs",payload:{}}),v(null)};return m.a.createElement(L.a,{centered:!0,keyboard:!1,closable:!1,title:"\u66F4\u6362\u7BA1\u7406\u5458",visible:ye.actionTabs.key==="Collaborators-ChangeManager",confirmLoading:xe.effects["shixunsDetail/changeManager"],onOk:De,onCancel:Ie},m.a.createElement("div",null,m.a.createElement("div",{className:de.a.title},"\u9009\u62E9\u7684\u6210\u5458\u5C06\u4F1A\u6210\u4E3A\u65B0\u7684\u7BA1\u7406\u5458",m.a.createElement("br",null),"\u60A8\u5C06\u4E0D\u518D\u62E5\u6709\u7BA1\u7406\u5458\u7684\u6743\u9650\uFF0C\u4F46\u60A8\u4ECD\u662F\u5408\u4F5C\u56E2\u961F\u7684\u4E00\u5458"),m.a.createElement("div",{className:de.a.content},ce.length?m.a.createElement(U.a.Group,{value:Ce,onChange:function(qe){return v(qe.target.value)}},ce.map(function(Ge,qe){return m.a.createElement(U.a,{className:de.a.radio,key:qe,value:Ge.user_id},Ge.name)})):m.a.createElement("div",{className:de.a.add},m.a.createElement("span",null,"\u8BF7\u5148\u5C06\u65B0\u7684\u7BA1\u7406\u5458\u901A\u8FC7",m.a.createElement("a",{className:de.a.colorBlue,onClick:be},'"\u6DFB\u52A0\u5408\u4F5C\u8005"'),"\u52A0\u5165\u5408\u4F5C\u8005\u5217\u8868")))))},ae=Object(p.a)(function(B){var te=B.shixunsDetail,ye=B.loading,Pe=B.globalSetting;return{shixunsDetail:te,globalSetting:Pe,loading:ye}})(_e),T=o("Znn+"),d=o("ZTPi"),s=o("ju9d"),ue=d.a.TabPane,Y=function(B){var te=B.visible,ye=B.onCancel,Pe=B.onSelectGroup,xe=B.shixunId,Se=B.onSelectCollaborator;return m.a.createElement(L.a,{title:"\u6DFB\u52A0\u5408\u4F5C\u8005",visible:te,width:1100,centered:!0,keyboard:!1,onCancel:ye,maskClosable:!1,destroyOnClose:!0,forceRender:!0,bodyStyle:{minHeight:400,padding:"0 20px 20px 20px"},footer:null},m.a.createElement(d.a,{defaultActiveKey:"1"},m.a.createElement(ue,{tab:"\u641C\u7D22\u6DFB\u52A0",key:"1"},m.a.createElement(s.a,{type:1,onCancel:ye,container_type:2,container_id:xe,onSelect:Se}))))},F=o("bL63"),N=o.n(F),H=o("xvlK"),w=o("ruvs"),j=o("ErOA"),K=function(te){var ye,Pe,xe,Se,X,re=te.shixunsDetail,Ee=te.globalSetting,ie=te.loading,Ce=te.user,v=te.dispatch,W=te.position,P=Object(g.useRef)(),ce=Object(g.useState)(0),R=Object(_.a)(ce,2),Q=R[0],be=R[1],De=Object(g.useState)([]),Ie=Object(_.a)(De,2),Ge=Ie[0],qe=Ie[1],Je=Object(g.useState)({id:null,page:1}),$e=Object(_.a)(Je,2),it=$e[0],xt=$e[1],vt=Object(E.i)(),Ut=Object(g.useState)({}),Ht=Object(_.a)(Ut,2),je=Ht[0],Le=Ht[1],ze=(ye=Ce.userInfo)===null||ye===void 0||((Pe=ye.shixun)===null||Pe===void 0)?void 0:Pe.editable,st=((xe=Ce.userInfo)===null||xe===void 0?void 0:xe.role)<=2||((Se=Ce.userInfo)===null||Se===void 0||((X=Se.shixun)===null||X===void 0)?void 0:X.is_creator);Object(g.useEffect)(function(){P.current=vt==null?void 0:vt.taskId,it.id=vt==null?void 0:vt.taskId,xt(it),rt(it)},[]);var rt=function(){var Xe=Object(C.a)(u.a.mark(function ut(lt){var Ct;return u.a.wrap(function(At){for(;;)switch(At.prev=At.next){case 0:return At.next=2,Object(j.a)("/api/sci/projects/".concat(vt==null?void 0:vt.taskId,"/get_project_partners.json"),{method:"get"});case 2:Ct=At.sent,Ct&&(qe(Ct.users||[]),be(Ct.users_count),Le(Ct));case 4:case"end":return At.stop()}},ut)}));return function(lt){return Xe.apply(this,arguments)}}(),Ue=function(){var Xe=Object(C.a)(u.a.mark(function ut(){var lt;return u.a.wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:return it.page=1,xt(it),lt=Object(w.b)(),bt.next=5,v({type:"user/getUserInfo",payload:lt});case 5:return bt.next=7,rt(it);case 7:case"end":return bt.stop()}},ut)}));return function(){return Xe.apply(this,arguments)}}(),ke=function(ut){it.page=ut,xt(it),rt(it)},Ke=function(ut){L.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:m.a.createElement("div",{className:N.a.modal},"\u786E\u5B9A\u8981\u5220\u9664\u5417\uFF1F"),onOk:function(){var lt=Object(C.a)(u.a.mark(function bt(){var At;return u.a.wrap(function(St){for(;;)switch(St.prev=St.next){case 0:return St.next=2,Object(j.a)("/api/sci/projects/".concat(vt==null?void 0:vt.taskId,"/del_project_partner.json"),{method:"DELETE",body:{user_id:ut}});case 2:At=St.sent,oe.b.info("\u5220\u9664\u6210\u529F"),it.page=1,xt(it),rt(it);case 7:case"end":return St.stop()}},bt)}));function Ct(){return lt.apply(this,arguments)}return Ct}()})},He=function(){v({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:P.current}}})};function Ze(){v({type:"shixunsDetail/setActionTabs",payload:{}})}var Be={visible:re.actionTabs.key==="Collaborators-AddCollaborator",onCancel:Ze,shixunId:P.current,onSelectCollaborator:function(){var Xe=Object(C.a)(u.a.mark(function lt(Ct){var bt;return u.a.wrap(function(kt){for(;;)switch(kt.prev=kt.next){case 0:return Ze(),kt.next=3,Object(j.a)("/api/sci/projects/".concat(P.current,"/bacht_add_project_partners.json"),{method:"POST",body:{user_ids:Ct}});case 3:bt=kt.sent,bt&&(oe.b.success("\u6DFB\u52A0\u6210\u529F"),Ue());case 5:case"end":return kt.stop()}},lt)}));function ut(lt){return Xe.apply(this,arguments)}return ut}(),onSelectGroup:function(){var Xe=Object(C.a)(u.a.mark(function lt(Ct){var bt;return u.a.wrap(function(kt){for(;;)switch(kt.prev=kt.next){case 0:return Ze(),kt.next=3,v({type:"shixunsDetail/addTeachGroupMember",payload:{identifier:P.current,group_id:Ct.group_id}});case 3:bt=kt.sent,bt&&(oe.b.success("\u6DFB\u52A0\u6210\u529F"),Ue());case 5:case"end":return kt.stop()}},lt)}));function ut(lt){return Xe.apply(this,arguments)}return ut}()};return m.a.createElement("section",null,m.a.createElement("div",{className:N.a.wrap},m.a.createElement("div",{className:N.a.content},m.a.createElement("div",{className:N.a.head},m.a.createElement("span",{className:N.a.headCount},"\u5408\u4F5C\u8005\uFF08",Q,"\u4EBA\uFF09"),m.a.createElement("div",null,m.a.createElement(D.a,{className:N.a.button,style:{marginRight:W==="detail"?0:"20px"},onClick:He,icon:m.a.createElement(H.a,null)},"\u6DFB\u52A0\u5408\u4F5C\u8005"))),m.a.createElement("div",{className:N.a.list},m.a.createElement($.a,{loading:!1,active:!0,avatar:{size:40},paragraph:{rows:3},className:"mt30"},Ge.map(function(Xe,ut){return m.a.createElement("div",{style:{display:"inline-block",width:"50%"},key:ut},m.a.createElement("div",{className:N.a.itemWrap},m.a.createElement("a",{target:"_blank",className:N.a.imgWrap},m.a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"48",width:"48",className:N.a.img,src:"".concat(y.a.IMG_SERVER,"/images/").concat(Xe==null?void 0:Xe.image_url)}),(Xe==null?void 0:Xe.is_creator)&&m.a.createElement("span",{className:N.a.manager},"\u521B\u5EFA\u8005")),m.a.createElement("div",{className:N.a.itemContent},m.a.createElement("div",{className:N.a.nameWrap},m.a.createElement("a",{target:"_blank",className:N.a.name},Xe==null?void 0:Xe.user_name),m.a.createElement("div",{className:N.a.actionGroup},!(Xe!=null&&Xe.is_creator)&&(st||je!=null&&je.current_user_is_creator)?m.a.createElement("a",{className:N.a.deletetitle,onClick:function(){return Ke(Xe.id)}},"\u5220\u9664"):null)),m.a.createElement("p",{className:N.a.schoolWrap},m.a.createElement("span",{className:N.a.school},Xe==null?void 0:Xe.school_name)))))})))),Q>10&&m.a.createElement("div",{className:N.a.countWrap},m.a.createElement(J.a,{showQuickJumper:!1,showSizeChanger:!1,total:Q,onChange:function(ut){return ke(ut)},pageSize:10,current:it.page}))),m.a.createElement(ae,{onReloadData:Ue}),m.a.createElement(Y,Be))},ee=k.a=Object(p.a)(function(B){var te=B.shixunsDetail,ye=B.loading,Pe=B.globalSetting,xe=B.user;return{shixunsDetail:te,globalSetting:Pe,user:xe,loading:ye}})(K)},E7E6:function(Te,k){Te.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADUCAYAAADZTGx+AAAgAElEQVR4Xu2dC3BU13nHv7MrIQkQQoCEtAIEAmxig4GACxhogpM6NY7jOKZO4nimwcFot23SNNNO02napJN0JjN9TNMm5eG3x4+YSeI3ftUGjCDGQMBgG4wxb+0u4mEeQhJI2tP539WR7i77uPfuvXfvar8zs7Mr7bnn8Z3vt9/5zlMQB5aAQQmsW7fO397eHujp6Rkfi8XGExFeDX2vABHVSSlrhBDDiKhdSnlOCBGWUu4mol1lZWWv3nfffccNZueJaMITpeBCeEICjz/++LCOjo5GIpogpWwUQjT2vU/A/wCClNJvtbBCCCml3CaEeGzChAmPLF269LLVtNx6jgFxS9IeyOehhx6q7OnpmSilnEhE2gsA4L0PhjHZillRUUHl5WUUf6+giopyKi+Pv8rKyrSX3++nnp4e7XXpUgedP3+ezp37lE6ebKPe3l4tCyFEhIj+UwjxaHNz8+ls+ebrewYkX5J3IN9169YNv3DhwsRYLIbXJAWBDoZRmbKFYkPRhw4dqgEwdCgAwOfyPiDKyefzWS454Dh58iQdPPiJBk0fKN1E9KyU8gehUKjVcuIOPciAOCRYJ5J95JFHyq9cuaJZACHEJCklIOgHQUqZ0QIAACg/FB+//niPwxD/H3793QqwJkePHqW2tjaSUsKinCOibwWDwfVulcFIPgyIESm5FGfDhg0lBw8ehOM7qbe3dxIggCXAe58VgBOcts0AgP6XfwCACho2bBgNGTLEpZoYz6arq4vee2+PBooQosvv999y//33bzaegrMxGRBn5ZuQOpR77dq1dVB4BQCsQB8AgGB8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1EUkzuNSKSEI7+eFkOelFOeFEOd8Pnz24fOZioqKcFVV1VmLVS3qx/4fQLyzKIIkCJoAAAAASUVORK5CYII="},E9nw:function(Te,k){Te.exports=function(){var o=document.getSelection();if(!o.rangeCount)return function(){};for(var le=document.activeElement,J=[],Re=0;Re0&&(ye.percent=ye.loaded/ye.total*100),j.onProgress(ye)});var ee=new FormData;j.data&&Object.keys(j.data).forEach(function(te){var ye=j.data[te];if(Array.isArray(ye)){ye.forEach(function(Pe){ee.append(te+"[]",Pe)});return}ee.append(te,j.data[te])}),j.file instanceof Blob?ee.append(j.filename,j.file,j.file.name):ee.append(j.filename,j.file),K.onerror=function(ye){j.onError(ye)},K.onload=function(){return K.status<200||K.status>=300?j.onError(x(j,K),D(K)):j.onSuccess(D(K),K)},K.open(j.method,j.action,!0),j.withCredentials&&"withCredentials"in K&&(K.withCredentials=!0);var B=j.headers||{};return B["X-Requested-With"]!==null&&K.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(B).forEach(function(te){B[te]!==null&&K.setRequestHeader(te,B[te])}),K.send(ee),{abort:function(){K.abort()}}}var oe=+new Date,z=0;function L(){return"rc-upload-"+oe+"-"+ ++z}function C(j,K){return j.indexOf(K,j.length-K.length)!==-1}var _=function(j,K){if(j&&K){var ee=Array.isArray(K)?K:K.split(","),B=j.name||"",te=j.type||"",ye=te.replace(/\/.*$/,"");return ee.some(function(Pe){var xe=Pe.trim();return xe.charAt(0)==="."?C(B.toLowerCase(),xe.toLowerCase()):/\/\*$/.test(xe)?ye===xe.replace(/\/.*$/,""):te===xe})}return!0};function O(j,K){var ee=j.createReader(),B=[];function te(){ee.readEntries(function(ye){var Pe=Array.prototype.slice.apply(ye);B=B.concat(Pe);var xe=!Pe.length;xe?K(B):te()})}te()}var u=function(K,ee,B){var te=function ye(Pe,xe){xe=xe||"",Pe.isFile?Pe.file(function(Se){B(Se)&&(Pe.fullPath&&!Se.webkitRelativePath&&(Object.defineProperties(Se,{webkitRelativePath:{writable:!0}}),Se.webkitRelativePath=Pe.fullPath.replace(/^\//,""),Object.defineProperties(Se,{webkitRelativePath:{writable:!1}})),ee([Se]))}):Pe.isDirectory&&O(Pe,function(Se){Se.forEach(function(X){ye(X,""+xe+Pe.name+"/")})})};K.forEach(function(ye){te(ye.webkitGetAsEntry())})},g=u,m=Object.assign||function(j){for(var K=1;K=0)continue;if(!Object.prototype.hasOwnProperty.call(j,B))continue;ee[B]=j[B]}return ee}function U(j,K){if(!(j instanceof K))throw new TypeError("Cannot call a class as a function")}function Z(j,K){if(!j)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return K&&(typeof K=="object"||typeof K=="function")?K:j}function ne(j,K){if(typeof K!="function"&&K!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof K);j.prototype=Object.create(K&&K.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}),K&&(Object.setPrototypeOf?Object.setPrototypeOf(j,K):j.__proto__=K)}var de=function(K){return Object.keys(K).reduce(function(ee,B){return(B.substr(0,5)==="data-"||B.substr(0,5)==="aria-"||B==="role")&&(ee[B]=K[B]),ee},{})},_e=function(j){ne(K,j);function K(){var ee,B,te,ye;U(this,K);for(var Pe=arguments.length,xe=Array(Pe),Se=0;Se=de?J:{done:!1,value:Z[ne++]}}}}z.fromArray=O;function u(Z){return{next:function(){var ne=Z.next();return ne.done?J:{done:!1,value:ne.value}}}}z.fromNativeIterator=u;function g(Z){return Z?Array.isArray(Z)?z.fromArray(Z):Z:z.empty()}z.from=g;function m(Z,ne){return{next:function(){var de=Z.next();return de.done?J:{done:!1,value:ne(de.value)}}}}z.map=m;function E(Z,ne){return{next:function(){for(;;){var de=Z.next();if(de.done)return J;if(ne(de.value))return{done:!1,value:de.value}}}}}z.filter=E;function p(Z,ne){for(var de=Z.next();!de.done;de=Z.next())ne(de.value)}z.forEach=p;function y(Z,ne){ne===void 0&&(ne=Number.POSITIVE_INFINITY);var de=[];if(ne===0)return de;for(var _e=0,ae=Z.next();!ae.done&&!(de.push(ae.value),++_e>=ne);ae=Z.next());return de}z.collect=y;function S(){for(var Z=[],ne=0;ne=Z.length)return J;var _e=Z[de],ae=_e.next();return ae.done?(de++,this.next()):ae}}}z.concat=S;function U(Z){return new $(Z)}z.chain=U})(Re||(Re={}));var $=function(){function z(L){this.it=L}return z.prototype.next=function(){return this.it.next()},z}();function x(z){return Array.isArray(z)?Re.fromArray(z):z||Re.empty()}var D=function(){function z(L,C,_,O){C===void 0&&(C=0),_===void 0&&(_=L.length),O===void 0&&(O=C-1),this.items=L,this.start=C,this.end=_,this.index=O}return z.prototype.first=function(){return this.index=this.start,this.current()},z.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},z.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},z}(),fe=function(z){le(L,z);function L(C,_,O,u){return _===void 0&&(_=0),O===void 0&&(O=C.length),u===void 0&&(u=_-1),z.call(this,C,_,O,u)||this}return L.prototype.current=function(){return z.prototype.current.call(this)},L.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},L.prototype.first=function(){return this.index=this.start,this.current()},L.prototype.last=function(){return this.index=this.end-1,this.current()},L.prototype.parent=function(){return null},L}(D),oe=function(){function z(L,C){this.iterator=L,this.fn=C}return z.prototype.next=function(){return this.fn(this.iterator.next())},z}()},JeFH:function(Te,k){Te.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAwCAYAAAD9wT87AAAe2UlEQVR4XtVcB5QUVbr+blV1T+ieGWaYBAwgOSgooJLjENeA6a2KCVfZNbum3VXXsG9VdFfc1TXtGlfXLCKgEiRnUAHJWRzAyTl3V9V957vV1dPTM+M4Hn2Pd8/xIHRV9f3vn77/+/9qgVaWlHIggHMB+AA8K4TIbe2ek/FzKWUmgLGw7THQtLlCiBUn4z6j9ySa26SUMg3A+ZDyaljBMTC87mXrAUwSQtT+fxBOSqmbpjnaMIyrYJnToRvtQ/sOAJgihFh1ssvRSEFSysEAroJlXQ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nQNL7Xs7W5g6mrq+sTExNDg6gM9eE5xFEM4HhLL4pJKYdwvg5msCsgg4AwFceueyptKZ/XNO3pkIdqkPaXVdAGjfwkt1FTzeXveCAN7QYNp/gMDEzxYFhaLAaneaH8xTY5hrvasu1/5ebmzuvcuXOTn8KRUpLZ5sQpWVD+EgvfAKEcBWQ1mjUK554XYFvnw7YEhAhCSr6pYULTv2R6aklBAwC5Y3uJief2VyqtEoHGG5rT/4nVVN+EPaCsBB0pkT0gyyyDpq+HEB8DWNTSa/PNbbgt/yal5NkxyzI90VRVdI3+HSFpmyuk0MeTeGXnkspgrE/0aGgfyxxqoJPPQGe/BxxcDYtiBiQ042to2mfsZwkheGA/ywr9NhJlIBekZBFqOrZ5kgCFhYUJqampbAWzp9LCsgDLrgB/t0foByDkdkB1UrdFv5j0s0j1Ax8qpfxdqP/U8h1mIABN5EEYhyHELgBUBv87IAS98/9utUhA19TUZMXFxc0AcCZbIqG5A+YFvhvEMEQXVm4s6Jon6VKzA053dTI46OH8hMARhbwa5OCbboU/9e8//BRH8j9mLdQoDqqNCwAAAABJRU5ErkJggg=="},Jky8:function(Te,k,o){"use strict";var le=o("sRBo"),J=o("kaz8"),Re=o("5NDa"),$=o("5rEg"),x=o("miYZ"),D=o("tsqr"),fe=o("9og8"),oe=o("2qtc"),z=o("kLXV"),L=o("tJVT"),C=o("WmNS"),_=o.n(C),O=o("q1tI"),u=o.n(O),g=o("9kvl"),m=o("6CvP"),E=o("1XHU"),p=o("1vsH"),y;(function(U){U[U.Professor=1]="Professor",U[U.AssistantProfessor=2]="AssistantProfessor",U[U.Student=3]="Student"})(y||(y={}));var S=function(Z){var ne=Z.visible,de=Z.user,_e=Z.onCancel,ae=_e===void 0?function(){}:_e,T=Object(O.useState)(),d=Object(L.a)(T,2),s=d[0],ue=d[1],Y=Object(O.useState)([]),F=Object(L.a)(Y,2),N=F[0],H=F[1],w=Object(O.useState)(!1),j=Object(L.a)(w,2),K=j[0],ee=j[1],B=Object(O.useState)(!1),te=Object(L.a)(B,2),ye=te[0],Pe=te[1],xe=Object(O.useState)(),Se=Object(L.a)(xe,2),X=Se[0],re=Se[1];Object(O.useEffect)(function(){var v;if(de!=null&&(v=de.userInfo)!==null&&v!==void 0&&v.identity){var W;H([(de==null||((W=de.userInfo)===null||W===void 0)?void 0:W.identity)==="student"?3:1])}},[de]);var Ee=function(W,P){if(N.includes(y.Professor)){z.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:u.a.createElement("div",{className:"tc"},P||"\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838"),onOk:function(){g.d.push("/classrooms/".concat(W,"/students"))}});return}g.d.push("/classrooms/".concat(W,"/students"))},ie=function(){var v=Object(fe.a)(_.a.mark(function W(){var P;return _.a.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:if(s){R.next=3;break}return D.b.info("\u9080\u8BF7\u7801\u4E0D\u80FD\u4E3A\u7A7A"),R.abrupt("return");case 3:return ee(!0),R.next=6,Object(m.c)({invite_code:s,professor:N.includes(y.Professor)?1:null,assistant_professor:N.includes(y.AssistantProfessor)?1:null,student:N.includes(y.Student)?1:null});case 6:if(P=R.sent,ee(!1),!((P==null?void 0:P.status)===-2)){R.next=22;break}if(Ce(),!(P.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1")){R.next=14;break}return Pe(!0),re(1),R.abrupt("return");case 14:if(!(P.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u804C\u4E1A\u8BA4\u8BC1")){R.next=18;break}return Pe(!0),re(2),R.abrupt("return");case 18:if(!(P.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u548C\u804C\u4E1A\u8BA4\u8BC1")){R.next=22;break}return Pe(!0),re(3),R.abrupt("return");case 22:if(!((P==null?void 0:P.status)===0)){R.next=27;break}return Object(p.Y)(["\u6559\u5B66\u8BFE\u5802","\u9996\u9875","\u52A0\u5165\u8BFE\u5802"]),Ce(),(P==null?void 0:P.course_id)&&Ee(P.course_id,P.message),R.abrupt("return");case 27:case"end":return R.stop()}},W)}));return function(){return v.apply(this,arguments)}}(),Ce=function(){var v=Object(fe.a)(_.a.mark(function W(){return _.a.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:ae();case 1:case"end":return ce.stop()}},W)}));return function(){return v.apply(this,arguments)}}();return u.a.createElement(u.a.Fragment,null,u.a.createElement(z.a,{centered:!0,keyboard:!1,closable:!1,title:"\u52A0\u5165\u8BFE\u5802",visible:ne,confirmLoading:K,onOk:ie,onCancel:Ce},u.a.createElement("div",{className:"tc"},u.a.createElement("div",null,u.a.createElement("span",null,"\u8BFE\u5802\u9080\u8BF7\u7801\uFF1A"),u.a.createElement($.a,{placeholder:"\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801",style:{width:270},value:s,onChange:function(W){if(W.target.value.length>=7){D.b.info("\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801\uFF01");return}ue(W.target.value)}})),u.a.createElement("div",{className:"mt10 font14"},u.a.createElement("span",null,"\u8EAB\u4EFD\uFF1A"),u.a.createElement(J.a.Group,{value:N,onChange:function(W){return H(W)}},u.a.createElement(J.a,{value:y.Professor,disabled:N.includes(2)},"\u6559\u5E08"),u.a.createElement(J.a,{value:y.AssistantProfessor,disabled:N.includes(1)},"\u52A9\u6559"),u.a.createElement(J.a,{value:y.Student},"\u5B66\u751F/\u53C2\u8D5B\u8005"))))),u.a.createElement(E.a,{visible:ye,onCancel:function(){return Pe(!1)},occupationValue:X}))};k.a=Object(g.a)(function(U){var Z=U.user;return{user:Z}})(S)},Jq4h:function(Te,k,o){Te.exports=o.p+"static/qrcode.54870d9b.png"},KUBS:function(Te,k,o){Te.exports={wrap:"wrap___3sliA",modal:"modal___1a97-",title:"title___2LzwK",path:"path___10GWZ",colorBlue:"colorBlue___2Bn0D",width240:"width240___2eUex",filePath:"filePath___3Oexf"}},LSTS:function(Te,k,o){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var le=function(){function _(O,u){for(var g=0;g=0)continue;if(!Object.prototype.hasOwnProperty.call(_,g))continue;u[g]=_[g]}return u}function oe(_,O){if(!(_ instanceof O))throw new TypeError("Cannot call a class as a function")}function z(_,O){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:_}function L(_,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);_.prototype=Object.create(O&&O.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(_,O):_.__proto__=O)}var C=function(_){L(O,_);function O(u){oe(this,O);var g=z(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,u));return g.scrollListener=g.scrollListener.bind(g),g.eventListenerOptions=g.eventListenerOptions.bind(g),g.mousewheelListener=g.mousewheelListener.bind(g),g}return le(O,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var g=this.getParentElement(this.scrollComponent);g.scrollTop=g.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var g=!1,m={get passive(){g=!0}};try{document.addEventListener("test",null,m),document.removeEventListener("test",null,m)}catch(E){}return g}},{key:"eventListenerOptions",value:function(){var g=this.props.useCapture;return this.isPassiveSupported()&&(g={useCapture:this.props.useCapture,passive:!0}),g}},{key:"setDefaultLoader",value:function(g){this.defaultLoader=g}},{key:"detachMousewheelListener",value:function(){var g=window;this.props.useWindow===!1&&(g=this.scrollComponent.parentNode),g.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var g=window;this.props.useWindow===!1&&(g=this.getParentElement(this.scrollComponent)),g.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),g.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(g){var m=this.props.getScrollParent&&this.props.getScrollParent();return m!=null?m:g&&g.parentNode}},{key:"filterProps",value:function(g){return g}},{key:"attachScrollListener",value:function(){var g=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!g)return;var m=window;this.props.useWindow===!1&&(m=g),m.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),m.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),m.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(g){g.deltaY===1&&!this.isPassiveSupported()&&g.preventDefault()}},{key:"scrollListener",value:function(){var g=this.scrollComponent,m=window,E=this.getParentElement(g),p=void 0;if(this.props.useWindow){var y=document.documentElement||document.body.parentNode||document.body,S=m.pageYOffset!==void 0?m.pageYOffset:y.scrollTop;this.props.isReverse?p=S:p=this.calculateOffset(g,S)}else this.props.isReverse?p=E.scrollTop:p=g.scrollHeight-E.scrollTop-E.clientHeight;p1&&arguments[1]!==void 0?arguments[1]:1,He=Je.length,Ze=0;Ze1&&arguments[1]!==void 0?arguments[1]:!1;return Object(de.a)(ee).map(function(te,ye){if(!x.isValidElement(te)||!te.type)return null;var Pe=te.type.isSelectOptGroup,xe=te.key,Se=te.props,X=Se.children,re=Object(fe.a)(Se,["children"]);return B||!Pe?_e(te):Object(ne.a)(Object(ne.a)({key:"__RC_SELECT_GRP__".concat(xe===null?ye:xe,"__"),label:xe},re),{},{options:ae(X)})}).filter(function(te){return te})}var T=o("2Qr1"),d=o("qNPg"),s=o("U8pU"),ue=o("Kwbf"),Y=o("WKfj");function F(ee){var B=ee.mode,te=ee.options,ye=ee.children,Pe=ee.backfill,xe=ee.allowClear,Se=ee.placeholder,X=ee.getInputElement,re=ee.showSearch,Ee=ee.onSearch,ie=ee.defaultOpen,Ce=ee.autoFocus,v=ee.labelInValue,W=ee.value,P=ee.inputValue,ce=ee.optionLabelProp,R=B==="multiple"||B==="tags",Q=re!==void 0?re:R||B==="combobox",be=te||ae(ye);if(Object(ue.a)(B!=="tags"||be.every(function(qe){return!qe.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),B==="tags"||B==="combobox"){var De=be.some(function(qe){return qe.options?qe.options.some(function(Je){return typeof("value"in Je?Je.value:Je.key)=="number"}):typeof("value"in qe?qe.value:qe.key)=="number"});Object(ue.a)(!De,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(ue.a)(B!=="combobox"||!ce,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(ue.a)(B==="combobox"||!Pe,"`backfill` only works with `combobox` mode."),Object(ue.a)(B==="combobox"||!X,"`getInputElement` only work with `combobox` mode."),Object(ue.b)(B!=="combobox"||!X||!xe||!Se,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Ee&&!Q&&B!=="combobox"&&B!=="tags"&&Object(ue.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(ue.b)(!ie||Ce,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),W!=null){var Ie=Object(Y.d)(W);Object(ue.a)(!v||Ie.every(function(qe){return Object(s.a)(qe)==="object"&&("key"in qe||"value"in qe)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(ue.a)(!R||Array.isArray(W),"`value` should be array when `mode` is `multiple` or `tags`")}if(ye){var Ge=null;Object(de.a)(ye).some(function(qe){if(!x.isValidElement(qe)||!qe.type)return!1;var Je=qe.type;if(Je.isSelectOption)return!1;if(Je.isSelectOptGroup){var $e=Object(de.a)(qe.props.children).every(function(it){return!x.isValidElement(it)||!qe.type||it.type.isSelectOption?!0:(Ge=it.type,!1)});return!$e}return Ge=Je,!0}),Ge&&Object(ue.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ge.displayName||Ge.name||Ge,"`.")),Object(ue.a)(P===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var N=F,H=Object(d.a)({prefixCls:"rc-select",components:{optionList:p},convertChildrenToData:ae,flattenOptions:T.d,getLabeledValue:T.e,filterOptions:T.b,isValueDisabled:T.g,findValueOption:T.c,warningProps:N,fillOptionsWithMissingValue:T.a}),w=function(ee){Object(Re.a)(te,ee);var B=Object($.a)(te);function te(){var ye;return Object(le.a)(this,te),ye=B.apply(this,arguments),ye.selectRef=x.createRef(),ye.focus=function(){ye.selectRef.current.focus()},ye.blur=function(){ye.selectRef.current.blur()},ye}return Object(J.a)(te,[{key:"render",value:function(){return x.createElement(H,Object.assign({ref:this.selectRef},this.props))}}]),te}(x.Component);w.Option=S,w.OptGroup=Z;var j=w,K=k.c=j},MI8n:function(Te,k,o){"use strict";o.d(k,"b",function(){return D}),o.d(k,"a",function(){return z}),o.d(k,"e",function(){return L}),o.d(k,"d",function(){return C}),o.d(k,"c",function(){return _}),o.d(k,"f",function(){return O});var le=o("/cxE"),J=o("C/vA"),Re=o("pmY6"),$=o("24hK"),x=function(){var u=function(g,m){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,p){E.__proto__=p}||function(E,p){for(var y in p)p.hasOwnProperty(y)&&(E[y]=p[y])},u(g,m)};return function(g,m){u(g,m);function E(){this.constructor=g}g.prototype=m===null?Object.create(m):(E.prototype=m.prototype,new E)}}(),D;(function(u){u.None=function(){return Re.a.None};function g(N){return function(H,w,j){w===void 0&&(w=null);var K=!1,ee;return ee=N(function(B){return K?void 0:(ee?ee.dispose():K=!0,H.call(w,B))},null,j),K&&ee.dispose(),ee}}u.once=g;function m(N,H){return Z(function(w,j,K){return j===void 0&&(j=null),N(function(ee){return w.call(j,H(ee))},null,K)})}u.map=m;function E(N,H){return Z(function(w,j,K){return j===void 0&&(j=null),N(function(ee){H(ee),w.call(j,ee)},null,K)})}u.forEach=E;function p(N,H){return Z(function(w,j,K){return j===void 0&&(j=null),N(function(ee){return H(ee)&&w.call(j,ee)},null,K)})}u.filter=p;function y(N){return N}u.signal=y;function S(){for(var N=[],H=0;H1)&&Pe.fire(Se),ye=0},w)})},onLastListenerRemove:function(){ee.dispose()}});return Pe.event}u.debounce=ne;function de(N){var H=new Date().getTime();return m(g(N),function(w){return new Date().getTime()-H})}u.stopwatch=de;function _e(N){var H=!0,w;return p(N,function(j){var K=H||j!==w;return H=!1,w=j,K})}u.latch=_e;function ae(N,H,w){H===void 0&&(H=!1),w===void 0&&(w=[]);var j=w.slice(),K=N(function(te){j?j.push(te):B.fire(te)}),ee=function(){j&&j.forEach(function(te){return B.fire(te)}),j=null},B=new z({onFirstListenerAdd:function(){K||(K=N(function(te){return B.fire(te)}))},onFirstListenerDidAdd:function(){j&&(H?setTimeout(ee):ee())},onLastListenerRemove:function(){K&&K.dispose(),K=null}});return B.event}u.buffer=ae;var T=function(){function N(H){this.event=H}return N.prototype.map=function(H){return new N(m(this.event,H))},N.prototype.forEach=function(H){return new N(E(this.event,H))},N.prototype.filter=function(H){return new N(p(this.event,H))},N.prototype.reduce=function(H,w){return new N(U(this.event,H,w))},N.prototype.latch=function(){return new N(_e(this.event))},N.prototype.debounce=function(H,w,j,K){return w===void 0&&(w=100),j===void 0&&(j=!1),new N(ne(this.event,H,w,j,K))},N.prototype.on=function(H,w,j){return this.event(H,w,j)},N.prototype.once=function(H,w,j){return g(this.event)(H,w,j)},N}();function d(N){return new T(N)}u.chain=d;function s(N,H,w){w===void 0&&(w=function(te){return te});var j=function(){for(var te=[],ye=0;ye0?new oe(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(u.prototype,"event",{get:function(){var g=this;return this._event||(this._event=function(m,b,p){g._listeners||(g._listeners=new $.a);var y=g._listeners.isEmpty();y&&g._options&&g._options.onFirstListenerAdd&&g._options.onFirstListenerAdd(g);var S=g._listeners.push(b?[m,b]:m);y&&g._options&&g._options.onFirstListenerDidAdd&&g._options.onFirstListenerDidAdd(g),g._options&&g._options.onListenerDidAdd&&g._options.onListenerDidAdd(g,m,b);var U;g._leakageMon&&(U=g._leakageMon.check(g._listeners.size));var Z;return Z={dispose:function(){if(U&&U(),Z.dispose=u._noop,!g._disposed&&(S(),g._options&&g._options.onLastListenerRemove)){var ne=g._listeners&&!g._listeners.isEmpty();ne||g._options.onLastListenerRemove(g)}}},p instanceof Re.b?p.add(Z):Array.isArray(p)&&p.push(Z),Z}),this._event},enumerable:!0,configurable:!0}),u.prototype.fire=function(g){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new $.a);for(var m=this._listeners.iterator(),b=m.next();!b.done;b=m.next())this._deliveryQueue.push([b.value,g]);for(;this._deliveryQueue.size>0;){var p=this._deliveryQueue.shift(),y=p[0],S=p[1];try{typeof y=="function"?y.call(void 0,S):y[0].call(y[1],S)}catch(U){Object(le.e)(U)}}}},u.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},u._noop=function(){},u}(),L=function(u){x(g,u);function g(m){var b=u.call(this,m)||this;return b._isPaused=0,b._eventQueue=new $.a,b._mergeFn=m&&m.merge,b}return g.prototype.pause=function(){this._isPaused++},g.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){var m=this._eventQueue.toArray();this._eventQueue.clear(),u.prototype.fire.call(this,this._mergeFn(m))}else for(;!this._isPaused&&this._eventQueue.size!==0;)u.prototype.fire.call(this,this._eventQueue.shift())},g.prototype.fire=function(m){this._listeners&&(this._isPaused!==0?this._eventQueue.push(m):u.prototype.fire.call(this,m))},g}(z),C=function(){function u(){var g=this;this.hasListeners=!1,this.events=[],this.emitter=new z({onFirstListenerAdd:function(){return g.onFirstListenerAdd()},onLastListenerRemove:function(){return g.onLastListenerRemove()}})}return Object.defineProperty(u.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),u.prototype.add=function(g){var m=this,b={event:g,listener:null};this.events.push(b),this.hasListeners&&this.hook(b);var p=function(){m.hasListeners&&m.unhook(b);var y=m.events.indexOf(b);m.events.splice(y,1)};return Object(Re.h)(Object(J.a)(p))},u.prototype.onFirstListenerAdd=function(){var g=this;this.hasListeners=!0,this.events.forEach(function(m){return g.hook(m)})},u.prototype.onLastListenerRemove=function(){var g=this;this.hasListeners=!1,this.events.forEach(function(m){return g.unhook(m)})},u.prototype.hook=function(g){var m=this;g.listener=g.event(function(b){return m.emitter.fire(b)})},u.prototype.unhook=function(g){g.listener&&g.listener.dispose(),g.listener=null},u.prototype.dispose=function(){this.emitter.dispose()},u}(),_=function(){function u(){this.buffers=[]}return u.prototype.wrapEvent=function(g){var m=this;return function(b,p,y){return g(function(S){var U=m.buffers[m.buffers.length-1];U?U.push(function(){return b.call(p,S)}):b.call(p,S)},void 0,y)}},u.prototype.bufferEvents=function(g){var m=[];this.buffers.push(m);var b=g();return this.buffers.pop(),m.forEach(function(p){return p()}),b},u}(),O=function(){function u(){var g=this;this.listening=!1,this.inputEvent=D.None,this.inputEventListener=Re.a.None,this.emitter=new z({onFirstListenerDidAdd:function(){g.listening=!0,g.inputEventListener=g.inputEvent(g.emitter.fire,g.emitter)},onLastListenerRemove:function(){g.listening=!1,g.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(u.prototype,"input",{set:function(g){this.inputEvent=g,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=g(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),u.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},u}()},N0LK:function(Te,k,o){"use strict";o.d(k,"x",function(){return le}),o.d(k,"F",function(){return J}),o.d(k,"r",function(){return $}),o.d(k,"o",function(){return x}),o.d(k,"p",function(){return D}),o.d(k,"Q",function(){return fe}),o.d(k,"K",function(){return z}),o.d(k,"k",function(){return L}),o.d(k,"N",function(){return C}),o.d(k,"m",function(){return _}),o.d(k,"l",function(){return O}),o.d(k,"I",function(){return u}),o.d(k,"H",function(){return g}),o.d(k,"q",function(){return m}),o.d(k,"t",function(){return b}),o.d(k,"D",function(){return p}),o.d(k,"e",function(){return y}),o.d(k,"f",function(){return S}),o.d(k,"B",function(){return U}),o.d(k,"C",function(){return Z}),o.d(k,"n",function(){return de}),o.d(k,"O",function(){return ae}),o.d(k,"c",function(){return T}),o.d(k,"d",function(){return d}),o.d(k,"z",function(){return s}),o.d(k,"A",function(){return ue}),o.d(k,"u",function(){return Y}),o.d(k,"E",function(){return N}),o.d(k,"G",function(){return H}),o.d(k,"i",function(){return j}),o.d(k,"g",function(){return ee}),o.d(k,"v",function(){return te}),o.d(k,"h",function(){return ye}),o.d(k,"y",function(){return Pe}),o.d(k,"w",function(){return xe}),o.d(k,"a",function(){return Se}),o.d(k,"P",function(){return X}),o.d(k,"L",function(){return re}),o.d(k,"J",function(){return be}),o.d(k,"j",function(){return ie}),o.d(k,"M",function(){return Ce}),o.d(k,"s",function(){return v}),o.d(k,"b",function(){return W});function le(R){return!R||typeof R!="string"?!0:R.trim().length===0}function J(R,Q,Ee){Ee===void 0&&(Ee="0");for(var De=""+R,Ie=[De],Ge=De.length;Ge=Q.length?De:Q[Ge]})}function x(R){return R.replace(/[<>&]/g,function(Q){switch(Q){case"<":return"<";case">":return">";case"&":return"&";default:return Q}})}function D(R){return R.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function fe(R,Q){Q===void 0&&(Q=" ");var Ee=oe(R,Q);return z(Ee,Q)}function oe(R,Q){if(!R||!Q)return R;var Ee=Q.length;if(Ee===0||R.length===0)return R;for(var De=0;R.indexOf(Q,De)===De;)De=De+Ee;return R.substring(De)}function z(R,Q){if(!R||!Q)return R;var Ee=Q.length,De=R.length;if(Ee===0||De===0)return R;for(var Ie=De,Ge=-1;!(Ge=R.lastIndexOf(Q,Ie-1),Ge===-1||Ge+Ee!==Ie);){if(Ge===0)return"";Ie=Ge}return R.substring(0,Ie)}function L(R){return R.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function C(R,Q){if(R.length0?R.indexOf(Q,Ee)===Ee:Ee===0?R===Q:!1}function O(R,Q,Ee){if(Ee===void 0&&(Ee={}),!R)throw new Error("Cannot create regex from empty string");Q||(R=D(R)),Ee.wholeWord&&(/\B/.test(R.charAt(0))||(R="\\b"+R),/\B/.test(R.charAt(R.length-1))||(R=R+"\\b"));var De="";return Ee.global&&(De+="g"),Ee.matchCase||(De+="i"),Ee.multiline&&(De+="m"),Ee.unicode&&(De+="u"),new RegExp(R,De)}function u(R){if(R.source==="^"||R.source==="^$"||R.source==="$"||R.source==="^\\s*$")return!1;var Q=R.exec("");return!!(Q&&R.lastIndex===0)}function g(R){return(R.global?"g":"")+(R.ignoreCase?"i":"")+(R.multiline?"m":"")+(R.unicode?"u":"")}function m(R){for(var Q=0,Ee=R.length;Q=0;Ee--){var De=R.charCodeAt(Ee);if(De!==32&&De!==9)return Ee}return-1}function y(R,Q){return RQ?1:0}function S(R,Q){for(var Ee=Math.min(R.length,Q.length),De=0;DeQ.length?1:0}function U(R){return R>=97&&R<=122}function Z(R){return R>=65&&R<=90}function ne(R){return U(R)||Z(R)}function de(R,Q){return R.length===Q.length&&_e(R,Q)}function _e(R,Q,Ee){Ee===void 0&&(Ee=R.length);for(var De=0;DeR.length?!1:_e(R,Q,Ee)}function T(R,Q){var Ee,De=Math.min(R.length,Q.length);for(Ee=0;Ee1){var De=R.charCodeAt(Q-2);if(s(De))return(De-55296<<10)+(Ee-56320)+65536}return Ee}function N(R,Q){var Ee=P.getInstance(),De=Q,Ie=R.length,Ge=Y(R,Ie,Q);Q+=Ge>=65536?2:1;for(var qe=Ee.getGraphemeBreakType(Ge);Q=65536?2:1,qe=$e}return Q-De}function H(R,Q){var Ee=P.getInstance(),De=Q,Ie=F(R,Q);Q-=Ie>=65536?2:1;for(var Ge=Ee.getGraphemeBreakType(Ie);Q>0;){var qe=F(R,Q),Je=Ee.getGraphemeBreakType(qe);if(W(Je,Ge))break;Q-=qe>=65536?2:1,Ge=Je}return De-Q}var w=/(?:[\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 j(R){return w.test(R)}var K=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function ee(R){return K.test(R)}var B=/^[\t\n\r\x20-\x7E]*$/;function te(R){return B.test(R)}function ye(R){for(var Q=0,Ee=R.length;Q=11904&&R<=55215||R>=63744&&R<=64255||R>=65281&&R<=65374}function xe(R){return R>=127462&&R<=127487||R>=9728&&R<=10175||R>=127744&&R<=128591||R>=128640&&R<=128764||R>=128992&&R<=129003||R>=129280&&R<=129535||R>=129648&&R<=129651||R>=129656&&R<=129666||R>=129680&&R<=129685}var Se=String.fromCharCode(65279);function X(R){return!!(R&&R.length>0&&R.charCodeAt(0)===65279)}function re(R){return btoa(encodeURIComponent(R))}function be(R,Q){for(var Ee="",De=0;DeEe[3*Ie+1])Ie=2*Ie+1;else return Ee[3*Ie+2];return 0},R._INSTANCE=null,R}();function ce(){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]")}},NLgs:function(Te,k,o){"use strict";o.d(k,"e",function(){return U}),o.d(k,"f",function(){return Z}),o.d(k,"d",function(){return de}),o.d(k,"c",function(){return _e}),o.d(k,"a",function(){return ae}),o.d(k,"b",function(){return T});var le=o("miYZ"),J=o("tsqr"),Re=o("9og8"),$=o("2qtc"),x=o("kLXV"),D=o("WmNS"),fe=o.n(D),oe=o("q1tI"),z=o.n(oe),L=o("9kvl"),C=o("xKgJ"),_=o("1vsH"),O=o("RCxd"),u=o("mOS8"),g=o.n(u),m=o("1ZF9"),b=o.n(m),p=o("WdTA"),y=o.n(p),S=o("m3rI"),U=function(s){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!!(Z(s)&&ne(ue))},Z=function(s){return Object(C.p)()?!0:(s({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},ne=function(){var s,ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Y=Object(L.c)()._store.getState(),F=Y.user;return(s=F.userInfo)!==null&&s!==void 0&&s.profile_completed?!0:(x.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:ue?"\u6309\u7167\u6709\u5173\u653F\u7B56\u89C4\u5B9A\uFF0C\u7279\u6B8A\u5B9E\u9A8C\u9700\u8981\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u624D\u80FD\u4F7F\u7528\uFF0C\u8BF7\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u7801":"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){L.d.push("/account/profile/edit")}}),!1)},de=function(){var s,ue=Object(L.c)()._store.getState(),Y=ue.user;return(s=Y.userInfo)!==null&&s!==void 0&&s.professional_certification?!0:(x.a.confirm({title:"\u63D0\u793A",centered:!0,content:z.a.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){Object(_.O)("/account/certification")}}),!1)},_e=function(){return Object(C.a)()?!0:(x.a.warning({centered:!0,width:530,title:"\u63D0\u793A",content:z.a.createElement("div",{className:"tc",style:{marginLeft:-38}},z.a.createElement("p",null,"\u60A8\u53EF\u4EE5\u626B\u7801\u52A0\u7FA4@\u7FA4\u7BA1\u7406\u5458\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650\u54E6\uFF01"),z.a.createElement("img",{src:Object(C.t)()?y.a:"".concat(S.a.IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1)},ae=function(s,ue){return s?!0:(x.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:z.a.createElement("div",null,z.a.createElement("p",null,ue||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),z.a.createElement("div",{style:{marginLeft:"110px"}},z.a.createElement("img",{src:b.a,width:200}),z.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(_.O)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},T=function(s){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",Y=Object(L.c)()._store.getState(),F=Y.shixunsDetail.detail;return(F==null?void 0:F.public)===2||(F==null?void 0:F.public)===1||(F==null?void 0:F.shixun_status)===3?(x.a.info({centered:!0,icon:z.a.createElement(O.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:z.a.createElement("div",{className:"tc",style:{marginLeft:-38}},z.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},z.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(F==null?void 0:F.public)===2?"\u5DF2\u516C\u5F00":(F==null?void 0:F.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",ue,"\u3002"),z.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),z.a.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:g.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(F==null?void 0:F.shixun_status)===2?(x.a.confirm({centered:!0,icon:z.a.createElement(O.a,null),title:"\u63D0\u793A",content:z.a.createElement("div",null,z.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",ue,"\u3002"),z.a.createElement("br",null),z.a.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){x.a.confirm({width:440,centered:!0,icon:z.a.createElement(O.a,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){var H=Object(Re.a)(fe.a.mark(function j(){var K;return fe.a.wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.next=2,s({type:"shixunsDetail/cancelRelease",payload:{id:F==null?void 0:F.identifier}});case 2:K=B.sent,K.status!==401&&(J.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),s({type:"shixunsDetail/getShixunsDetail",payload:{id:F==null?void 0:F.identifier}}),s({type:"practiceSetting/getCommonData",payload:{id:F==null?void 0:F.identifier}}));case 4:case"end":return B.stop()}},j)}));function w(){return H.apply(this,arguments)}return w}()})}}),!0):!1}},Nmxd:function(Te,k){Te.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAF4ElEQVRoQ91aW2wUVRj+/rPbSivURIgKjZcHjUYTgZ0lthgv3V0LSqB9IAQeN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1iz7qurxBlmDlrxlb5Pl5z8iC8LIVuHmjoueEtqjvddBwDa6JWHCQlnwyjjAu7wtxjPRK+4Ta7Y6XPskpvDqJLUdoMdTWTJOX9kWs+2bL9pN89U3GTdn3WKKxpvTmRuWglmPpKOtK91IiQ73vvJFL/YCa5UbLaVaDzXXTP2p4tmjvGREYnbruOgrn7MwKvlEg9gvLpG1E2000ntKNh5O82EznQobvkVF9S732LIgus6rg0RHTNCsdYJA7oWB7jLJdlOIxzfUwwbTHY+zSy+ccldAkbtRjimThroCYAzA46bqUl6JmxOh+IH8mbq1K65NXLuIIAnymqAMQbyNRrhtvT0qkQgqe4lRof7RHKdEe6Y9XEe0NVDBLzsnrMwcmbp/rOs8lXPQtzODHhY+/9LEq0aCcV0M22wX21jge5yiwdwGVW+RuPZnGUVM9FkP+NlYesaIFcJ8s+TLM9UQDwY1JYOx6Y3QPLXRpNqPzEiHpJfBOAD8KgHjoJQs3VIh+Kzlj3zDCzp63zEJ8QgCHeXW4AnPsZvGSkbLjR3/DCT5/+3vD7lTkl0bQHRPk9PrVxg5q1GpL3gZkvpLaZU93qW8r/dYhJiw3DTNudbTFMPb1lf5xIpxHEQ7i/XA7XFw/hZSLlmqLn094flLqWZzNzcZikO/JvbrCTkJjub3rYMZJ8YgwJJbSuBK7zRTb3pUGwfCGznTdk3MMm2tG/vIvL7tpJE1G3vlCeMMcYCvTye2TfSvP2qHeFTMY4NTI9Sek8AJFewlCGi7IEPc/JycmWYOUVCJMHitNmYOQF7NjAzmTK8v5Z/N4/biEYI1BN46riNeeTGvEazx21Ao5DmcRs5QHfV6UbQ+3GbvwHH7EQQahyMxwAAAABJRU5ErkJggg=="},NvD2:function(Te,k,o){"use strict";o.d(k,"a",function(){return D});var le=o("Kwbf");function J(fe,oe){var z=new Set;return fe.forEach(function(L){oe.has(L)||z.add(L)}),z}function Re(fe){var oe=fe||{},z=oe.disabled,L=oe.disableCheckbox,C=oe.checkable;return!!(z||L)||C===!1}function $(fe,oe,z,L){for(var C=new Set(fe),_=new Set,O=0;O<=z;O+=1){var u=oe.get(O)||new Set;u.forEach(function(p){var y=p.key,S=p.node,U=p.children,Z=U===void 0?[]:U;C.has(y)&&!L(S)&&Z.filter(function(ne){return!L(ne.node)}).forEach(function(ne){C.add(ne.key)})})}for(var g=new Set,m=z;m>=0;m-=1){var b=oe.get(m)||new Set;b.forEach(function(p){var y=p.parent,S=p.node;if(L(S)||!p.parent||g.has(p.parent.key))return;if(L(p.parent.node)){g.add(y.key);return}var U=!0,Z=!1;(y.children||[]).filter(function(ne){return!L(ne.node)}).forEach(function(ne){var de=ne.key,_e=C.has(de);U&&!_e&&(U=!1),!Z&&(_e||_.has(de))&&(Z=!0)}),U&&C.add(y.key),Z&&_.add(y.key),g.add(y.key)})}return{checkedKeys:Array.from(C),halfCheckedKeys:Array.from(J(_,C))}}function x(fe,oe,z,L,C){for(var _=new Set(fe),O=new Set(oe),u=0;u<=L;u+=1){var g=z.get(u)||new Set;g.forEach(function(y){var S=y.key,U=y.node,Z=y.children,ne=Z===void 0?[]:Z;!_.has(S)&&!O.has(S)&&!C(U)&&ne.filter(function(de){return!C(de.node)}).forEach(function(de){_.delete(de.key)})})}O=new Set;for(var m=new Set,b=L;b>=0;b-=1){var p=z.get(b)||new Set;p.forEach(function(y){var S=y.parent,U=y.node;if(C(U)||!y.parent||m.has(y.parent.key))return;if(C(y.parent.node)){m.add(S.key);return}var Z=!0,ne=!1;(S.children||[]).filter(function(de){return!C(de.node)}).forEach(function(de){var _e=de.key,ae=_.has(_e);Z&&!ae&&(Z=!1),!ne&&(ae||O.has(_e))&&(ne=!0)}),Z||_.delete(S.key),ne&&O.add(S.key),m.add(S.key)})}return{checkedKeys:Array.from(_),halfCheckedKeys:Array.from(J(O,_))}}function D(fe,oe,z,L){var C=[],_;L?_=L:_=Re;var O=new Set(fe.filter(function(b){var p=!!z[b];return p||C.push(b),p})),u=new Map,g=0;Object.keys(z).forEach(function(b){var p=z[b],y=p.level,S=u.get(y);S||(S=new Set,u.set(y,S)),S.add(p),g=Math.max(g,y)}),Object(le.a)(!C.length,"Tree missing follow keys: ".concat(C.slice(0,100).map(function(b){return"'".concat(b,"'")}).join(", ")));var m;return oe===!0?m=$(O,u,g,_):m=x(O,oe.halfCheckedKeys,u,g,_),m}},OZM5:function(Te,k,o){"use strict";o.d(k,"b",function(){return L}),o.d(k,"a",function(){return C}),o.d(k,"k",function(){return _}),o.d(k,"h",function(){return O}),o.d(k,"i",function(){return u}),o.d(k,"g",function(){return g}),o.d(k,"c",function(){return m}),o.d(k,"d",function(){return b}),o.d(k,"j",function(){return S}),o.d(k,"e",function(){return U}),o.d(k,"f",function(){return Z});var le=o("KQm4"),J=o("U8pU"),Re=o("Ff2n"),$=o("q1tI"),x=o.n($),D=o("Kwbf"),fe=o("WaYH"),oe=.25,z=2;function L(ne,de){var _e=ne.slice(),ae=_e.indexOf(de);return ae>=0&&_e.splice(ae,1),_e}function C(ne,de){var _e=ne.slice();return _e.indexOf(de)===-1&&_e.push(de),_e}function _(ne){return ne.split("-")}function O(ne,de){return"".concat(ne,"-").concat(de)}function u(ne){return ne&&ne.type&&ne.type.isTreeNode}function g(ne,de){var _e=[ne],ae=de[ne];function T(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];d.forEach(function(s){var ue=s.key,Y=s.children;_e.push(ue),T(Y)})}return T(ae.children),_e}function m(ne,de){var _e=ne.clientY,ae=de.selectHandle.getBoundingClientRect(),T=ae.top,d=ae.bottom,s=ae.height,ue=Math.max(s*oe,z);return _e<=T+ue?-1:_e>=d-ue?1:0}function b(ne,de){if(!ne)return;var _e=de.multiple;return _e?ne.slice():ne.length?[ne[0]]:ne}var p=function(de){return de};function y(ne,de){if(!ne)return[];var _e=de||{},ae=_e.processProps,T=ae===void 0?p:ae,d=Array.isArray(ne)?ne:[ne];return d.map(function(s){var ue=s.children,Y=Object(Re.a)(s,["children"]),F=y(ue,de);return x.a.createElement(fe.a,Object.assign({},T(Y)),F)})}function S(ne){if(!ne)return null;var de;if(Array.isArray(ne))de={checkedKeys:ne,halfCheckedKeys:void 0};else if(Object(J.a)(ne)==="object")de={checkedKeys:ne.checked||void 0,halfCheckedKeys:ne.halfChecked||void 0};else return Object(D.a)(!1,"`checkedKeys` is not an array or an object"),null;return de}function U(ne,de){var _e=new Set;function ae(T){if(_e.has(T))return;var d=de[T];if(!d)return;_e.add(T);var s=d.parent,ue=d.node;if(ue.disabled)return;s&&ae(s.key)}return(ne||[]).forEach(function(T){ae(T)}),Object(le.a)(_e)}function Z(ne){var de={};return Object.keys(ne).forEach(function(_e){(_e.startsWith("data-")||_e.startsWith("aria-"))&&(de[_e]=ne[_e])}),de}},Ohmc:function(Te,k,o){Te.exports=o.p+"static/certificate.fc32dc1b.jpg"},P5Jw:function(Te,k,o){"use strict";var le=o("rHrb"),J=le.CopyToClipboard;J.CopyToClipboard=J,Te.exports=J},QDVR:function(Te,k,o){"use strict";o.d(k,"e",function(){return J}),o.d(k,"d",function(){return Re}),o.d(k,"c",function(){return fe}),o.d(k,"b",function(){return oe}),o.d(k,"a",function(){return L});var le=function(){var C=function(_,O){return C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,g){u.__proto__=g}||function(u,g){for(var m in g)g.hasOwnProperty(m)&&(u[m]=g[m])},C(_,O)};return function(_,O){C(_,O);function u(){this.constructor=_}_.prototype=O===null?Object.create(O):(u.prototype=O.prototype,new u)}}();function J(C){var _=[];return C.forEach(function(O){return _.push(O)}),_}function Re(C){var _=[];return C.forEach(function(O,u){return _.push(u)}),_}var $=function(){function C(){this._value="",this._pos=0}return C.prototype.reset=function(_){return this._value=_,this._pos=0,this},C.prototype.next=function(){return this._pos+=1,this},C.prototype.hasNext=function(){return this._pos0)g.left||(g.left=new D,g.left.segment=u.value()),g=g.left;else if(m<0)g.right||(g.right=new D,g.right.segment=u.value()),g=g.right;else if(u.hasNext())u.next(),g.mid||(g.mid=new D,g.mid.segment=u.value()),g=g.mid;else break}var b=g.value;return g.value=O,g.key=_,b},C.prototype.get=function(_){for(var O=this._iter.reset(_),u=this._root;u;){var g=O.cmp(u.segment);if(g>0)u=u.left;else if(g<0)u=u.right;else if(O.hasNext())O.next(),u=u.mid;else break}return u?u.value:void 0},C.prototype.findSubstr=function(_){for(var O=this._iter.reset(_),u=this._root,g=void 0;u;){var m=O.cmp(u.segment);if(m>0)u=u.left;else if(m<0)u=u.right;else if(O.hasNext())O.next(),g=u.value||g,u=u.mid;else break}return u&&u.value||g},C.prototype.forEach=function(_){this._forEach(this._root,_)},C.prototype._forEach=function(_,O){_&&(this._forEach(_.left,O),_.value&&O(_.value,_.key),this._forEach(_.mid,O),this._forEach(_.right,O))},C}(),oe=function(){function C(){this.map=new Map,this.ignoreCase=!1}return C.prototype.set=function(_,O){this.map.set(this.toKey(_),O)},C.prototype.get=function(_){return this.map.get(this.toKey(_))},C.prototype.toKey=function(_){var O=_.toString();return this.ignoreCase&&(O=O.toLowerCase()),O},C}(),z=function(){function C(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return C.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(C.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),C.prototype.get=function(_,O){O===void 0&&(O=0);var u=this._map.get(_);return u?(O!==0&&this.touch(u,O),u.value):void 0},C.prototype.set=function(_,O,u){u===void 0&&(u=0);var g=this._map.get(_);if(g)g.value=O,u!==0&&this.touch(g,u);else{g={key:_,value:O,next:void 0,previous:void 0};switch(u){case 0:this.addItemLast(g);break;case 1:this.addItemFirst(g);break;case 2:this.addItemLast(g);break;default:this.addItemLast(g);break}this._map.set(_,g),this._size++}},C.prototype.delete=function(_){return!!this.remove(_)},C.prototype.remove=function(_){var O=this._map.get(_);return O?(this._map.delete(_),this.removeItem(O),this._size--,O.value):void 0},C.prototype.forEach=function(_,O){for(var u=this._head;u;)O?_.bind(O)(u.value,u.key,this):_(u.value,u.key,this),u=u.next},C.prototype.trimOld=function(_){if(_>=this.size)return;if(_===0){this.clear();return}for(var O=this._head,u=this.size;O&&u>_;)this._map.delete(O.key),O=O.next,u--;this._head=O,this._size=u,O&&(O.previous=void 0)},C.prototype.addItemFirst=function(_){if(!this._head&&!this._tail)this._tail=_;else if(this._head)_.next=this._head,this._head.previous=_;else throw new Error("Invalid list");this._head=_},C.prototype.addItemLast=function(_){if(!this._head&&!this._tail)this._head=_;else if(this._tail)_.previous=this._tail,this._tail.next=_;else throw new Error("Invalid list");this._tail=_},C.prototype.removeItem=function(_){if(_===this._head&&_===this._tail)this._head=void 0,this._tail=void 0;else if(_===this._head){if(!_.next)throw new Error("Invalid list");_.next.previous=void 0,this._head=_.next}else if(_===this._tail){if(!_.previous)throw new Error("Invalid list");_.previous.next=void 0,this._tail=_.previous}else{var O=_.next,u=_.previous;if(!O||!u)throw new Error("Invalid list");O.previous=u,u.next=O}_.next=void 0,_.previous=void 0},C.prototype.touch=function(_,O){if(!this._head||!this._tail)throw new Error("Invalid list");if(O!==1&&O!==2)return;if(O===1){if(_===this._head)return;var u=_.next,g=_.previous;_===this._tail?(g.next=void 0,this._tail=g):(u.previous=g,g.next=u),_.previous=void 0,_.next=this._head,this._head.previous=_,this._head=_}else if(O===2){if(_===this._tail)return;var u=_.next,g=_.previous;_===this._head?(u.previous=void 0,this._head=u):(u.previous=g,g.next=u),_.next=void 0,_.previous=this._tail,this._tail.next=_,this._tail=_}},C.prototype.toJSON=function(){var _=[];return this.forEach(function(O,u){_.push([u,O])}),_},C}(),L=function(C){le(_,C);function _(O,u){u===void 0&&(u=1);var g=C.call(this)||this;return g._limit=O,g._ratio=Math.min(Math.max(0,u),1),g}return _.prototype.get=function(O){return C.prototype.get.call(this,O,2)},_.prototype.peek=function(O){return C.prototype.get.call(this,O,0)},_.prototype.set=function(O,u){C.prototype.set.call(this,O,u,2),this.checkTrim()},_.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},_}(z)},RMFE:function(Te,k){Te.exports="data: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PUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IXAH7PYDOHnuk1pAAAAAElFTkSuQmCC"},RotF:function(Te,k,o){Te.exports=o("LSTS")},"SA+Z":function(Te,k,o){var le=o("wTVA"),J=o("EbDI"),Re=o("ZhPi"),$=o("wkBT");function x(D){return le(D)||J(D)||Re(D)||$()}Te.exports=x,Te.exports.__esModule=!0,Te.exports.default=Te.exports},SMhR:function(Te,k){Te.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcYAAAHGCAYAAADuYispAAAAAklEQVR4AewaftIAABHTSURBVO3BQY4cy5IEQdNA3//KNo2/8NU8XzCQyCpSReivSJKk/zmRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7yMiB/s7a5AWTTNhsgN9pmA2TTNp8MyI22uQHkv7TNDSCbttkAudE2bwJyo22eBGTTNhsgf7O2ecuJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpPGTD9c2nwzIk9p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mA2QDZNM2GyCbtrnRNk8BcqNtNkA2QN7UNhsgTwKyaZsNkE3bvAnIjbb5VCeSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqRxIkmSBv2VFwH5m7XNk4Bs2uZJQJ7UNjeA3GibTwXkRttsgNxomw2QG22zAXKjbW4AeVLbbIDcaJsNkCe1zVtOJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJA36K5Ik6X9OJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ4/8ATrCgy9kbxW8AAAAASUVORK5CYII="},T8No:function(Te,k,o){"use strict";o.d(k,"a",function(){return $}),o.d(k,"b",function(){return O}),o.d(k,"d",function(){return u}),o.d(k,"c",function(){return g}),o.d(k,"e",function(){return m});var le=o("N0LK"),J=o("Cg/j"),Re=function(){var b=function(p,y){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,U){S.__proto__=U}||function(S,U){for(var Z in U)U.hasOwnProperty(Z)&&(S[Z]=U[Z])},b(p,y)};return function(p,y){b(p,y);function S(){this.constructor=p}p.prototype=y===null?Object.create(y):(S.prototype=y.prototype,new S)}}(),$=function(){function b(){}return b.has=function(p){return D.create(p)},b.equals=function(p,y){return fe.create(p,y)},b.regex=function(p,y){return L.create(p,y)},b.not=function(p){return z.create(p)},b.and=function(){for(var p=[],y=0;y=0){var S=p.split("!=");return oe.create(S[0].trim(),this._deserializeValue(S[1],y))}if(p.indexOf("==")>=0){var S=p.split("==");return fe.create(S[0].trim(),this._deserializeValue(S[1],y))}if(p.indexOf("=~")>=0){var S=p.split("=~");return L.create(S[0].trim(),this._deserializeRegexValue(S[1],y))}return/^\!\s*/.test(p)?z.create(p.substr(1).trim()):D.create(p)},b._deserializeValue=function(p,y){if(p=p.trim(),p==="true")return!0;if(p==="false")return!1;var S=/^'([^']*)'$/.exec(p);return S?S[1].trim():p},b._deserializeRegexValue=function(p,y){if(Object(le.x)(p)){if(y)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var S=p.indexOf("/"),U=p.lastIndexOf("/");if(S===U||S<0){if(y)throw new Error("bad regexp-value '"+p+"', missing /-enclosure");return console.warn("bad regexp-value '"+p+"', missing /-enclosure"),null}var Z=p.slice(S+1,U),ne=p[U+1]==="i"?"i":"";try{return new RegExp(Z,ne)}catch(de){if(y)throw new Error("bad regexp-value '"+p+"', parse error: "+de);return console.warn("bad regexp-value '"+p+"', parse error: "+de),null}},b}();function x(b,p){var y=b.getType(),S=p.getType();if(y!==S)return y-S;switch(y){case 1:return b.cmp(p);case 2:return b.cmp(p);case 3:return b.cmp(p);case 4:return b.cmp(p);case 6:return b.cmp(p);case 7:return b.cmp(p);case 5:return b.cmp(p);default:throw new Error("Unknown ContextKeyExpr!")}}var D=function(){function b(p){this.key=p}return b.create=function(p){return new b(p)},b.prototype.getType=function(){return 1},b.prototype.cmp=function(p){return this.keyp.key?1:0},b.prototype.equals=function(p){return p instanceof b?this.key===p.key:!1},b.prototype.evaluate=function(p){return!!p.getValue(this.key)},b.prototype.keys=function(){return[this.key]},b.prototype.negate=function(){return z.create(this.key)},b}(),fe=function(){function b(p,y){this.key=p,this.value=y}return b.create=function(p,y){return typeof y=="boolean"?y?D.create(p):z.create(p):new b(p,y)},b.prototype.getType=function(){return 3},b.prototype.cmp=function(p){return this.keyp.key?1:this.valuep.value?1:0},b.prototype.equals=function(p){return p instanceof b?this.key===p.key&&this.value===p.value:!1},b.prototype.evaluate=function(p){return p.getValue(this.key)==this.value},b.prototype.keys=function(){return[this.key]},b.prototype.negate=function(){return oe.create(this.key,this.value)},b}(),oe=function(){function b(p,y){this.key=p,this.value=y}return b.create=function(p,y){return typeof y=="boolean"?y?z.create(p):D.create(p):new b(p,y)},b.prototype.getType=function(){return 4},b.prototype.cmp=function(p){return this.keyp.key?1:this.valuep.value?1:0},b.prototype.equals=function(p){return p instanceof b?this.key===p.key&&this.value===p.value:!1},b.prototype.evaluate=function(p){return p.getValue(this.key)!=this.value},b.prototype.keys=function(){return[this.key]},b.prototype.negate=function(){return fe.create(this.key,this.value)},b}(),z=function(){function b(p){this.key=p}return b.create=function(p){return new b(p)},b.prototype.getType=function(){return 2},b.prototype.cmp=function(p){return this.keyp.key?1:0},b.prototype.equals=function(p){return p instanceof b?this.key===p.key:!1},b.prototype.evaluate=function(p){return!p.getValue(this.key)},b.prototype.keys=function(){return[this.key]},b.prototype.negate=function(){return D.create(this.key)},b}(),L=function(){function b(p,y){this.key=p,this.regexp=y}return b.create=function(p,y){return new b(p,y)},b.prototype.getType=function(){return 6},b.prototype.cmp=function(p){if(this.keyp.key)return 1;var y=this.regexp?this.regexp.source:"",S=p.regexp?p.regexp.source:"";return yS?1:0},b.prototype.equals=function(p){if(p instanceof b){var y=this.regexp?this.regexp.source:"",S=p.regexp?p.regexp.source:"";return this.key===p.key&&y===S}return!1},b.prototype.evaluate=function(p){var y=p.getValue(this.key);return this.regexp?this.regexp.test(y):!1},b.prototype.keys=function(){return[this.key]},b.prototype.negate=function(){return C.create(this)},b}(),C=function(){function b(p){this._actual=p}return b.create=function(p){return new b(p)},b.prototype.getType=function(){return 7},b.prototype.cmp=function(p){return this._actual.cmp(p._actual)},b.prototype.equals=function(p){return p instanceof b?this._actual.equals(p._actual):!1},b.prototype.evaluate=function(p){return!this._actual.evaluate(p)},b.prototype.keys=function(){return this._actual.keys()},b.prototype.negate=function(){return this._actual},b}(),_=function(){function b(p){this.expr=p}return b.create=function(p){var y=b._normalizeArr(p);return y.length===0?void 0:y.length===1?y[0]:new b(y)},b.prototype.getType=function(){return 5},b.prototype.cmp=function(p){if(this.expr.lengthp.expr.length)return 1;for(var y=0,S=this.expr.length;y1;){for(var ne=p.shift(),de=p.shift(),_e=[],ae=0,T=Z(ne);ae=15&&(_=!1,z=!0);var ne=y&&(L||_&&(Z==null||Z<12.11)),de=Re||fe&&oe>=9;function _e(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var ae=function(e,t){var a=e.className,n=_e(t).exec(a);if(n){var r=a.slice(n.index+n[0].length);e.className=a.slice(0,n.index)+(r?n[1]+r:"")}};function T(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function d(e,t){return T(e).appendChild(t)}function s(e,t,a,n){var r=document.createElement(e);if(a&&(r.className=a),n&&(r.style.cssText=n),typeof t=="string")r.appendChild(document.createTextNode(t));else if(t)for(var i=0;i=t)return l+(t-i);l+=c-i,l+=a-l%a,i=c+1}}var te=function(){this.id=null,this.f=null,this.time=0,this.handler=K(this.onTimeout,this)};te.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},te.prototype.set=function(e,t){this.f=t;var a=+new Date+e;(!this.id||a=t)return n+Math.min(l,t-r);if(r+=i-n,r+=a-r%a,n=i+1,r>=t)return n}}var ie=[""];function Ce(e){for(;ie.length<=e;)ie.push(v(ie)+" ");return ie[e]}function v(e){return e[e.length-1]}function W(e,t){for(var a=[],n=0;n"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Q.test(e))}function De(e,t){return t?t.source.indexOf("\\w")>-1&&Ee(e)?!0:t.test(e):Ee(e)}function Ie(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Ge=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function qe(e){return e.charCodeAt(0)>=768&&Ge.test(e)}function Je(e,t,a){for(;(a<0?t>0:ta?-1:1;;){if(t==a)return t;var r=(t+a)/2,i=n<0?Math.ceil(r):Math.floor(r);if(i==t)return e(i)?t:a;e(i)?a=i:t=i+n}}function it(e,t,a,n){if(!e)return n(t,a,"ltr",0);for(var r=!1,i=0;it||t==a&&l.to==t)&&(n(Math.max(l.from,t),Math.min(l.to,a),l.level==1?"rtl":"ltr",i),r=!0)}r||n(t,a,"ltr")}var xt=null;function vt(e,t,a){var n;xt=null;for(var r=0;rt)return r;i.to==t&&(i.from!=i.to&&a=="before"?n=r:xt=r),i.from==t&&(i.from!=i.to&&a!="before"?n=r:xt=r)}return n!=null?n:xt}var Ut=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(A){return A<=247?e.charAt(A):1424<=A&&A<=1524?"R":1536<=A&&A<=1785?t.charAt(A-1536):1774<=A&&A<=2220?"r":8192<=A&&A<=8203?"w":A==8204?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,r=/[stwN]/,i=/[LRr]/,l=/[Lb1n]/,c=/[1n]/;function h(A,se,pe){this.level=A,this.from=se,this.to=pe}return function(A,se){var pe=se=="ltr"?"L":"R";if(A.length==0||se=="ltr"&&!n.test(A))return!1;for(var Ne=A.length,we=[],Qe=0;Qe-1&&(n[t]=r.slice(0,i).concat(r.slice(i+1)))}}}function rt(e,t){var a=ze(e,t);if(!a.length)return;for(var n=Array.prototype.slice.call(arguments,2),r=0;r0}function He(e){e.prototype.on=function(t,a){Le(this,t,a)},e.prototype.off=function(t,a){st(this,t,a)}}function Ze(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Be(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Xe(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function ut(e){Ze(e),Be(e)}function lt(e){return e.target||e.srcElement}function Ct(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),y&&e.ctrlKey&&t==1&&(t=3),t}var Et=function(){if(fe&&oe<9)return!1;var e=s("div");return"draggable"in e||"dragDrop"in e}(),At;function kt(e){if(At==null){var t=s("span","\u200B");d(e,s("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(At=t.offsetWidth<=1&&t.offsetHeight>2&&!(fe&&oe<8))}var a=At?s("span","\u200B"):s("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var St;function Wt(e){if(St!=null)return St;var t=d(e,document.createTextNode("A\u062EA")),a=Y(t,0,1).getBoundingClientRect(),n=Y(t,1,2).getBoundingClientRect();return T(e),!a||a.left==a.right?!1:St=n.right-a.right<3}var fn=` +`),y=this._stacks.get(p)||0;if(this._stacks.set(p,y+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=E*.5;var S,U=0;this._stacks.forEach(function(Z,ne){(!S||U0?new oe(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(u.prototype,"event",{get:function(){var g=this;return this._event||(this._event=function(m,E,p){g._listeners||(g._listeners=new $.a);var y=g._listeners.isEmpty();y&&g._options&&g._options.onFirstListenerAdd&&g._options.onFirstListenerAdd(g);var S=g._listeners.push(E?[m,E]:m);y&&g._options&&g._options.onFirstListenerDidAdd&&g._options.onFirstListenerDidAdd(g),g._options&&g._options.onListenerDidAdd&&g._options.onListenerDidAdd(g,m,E);var U;g._leakageMon&&(U=g._leakageMon.check(g._listeners.size));var Z;return Z={dispose:function(){if(U&&U(),Z.dispose=u._noop,!g._disposed&&(S(),g._options&&g._options.onLastListenerRemove)){var ne=g._listeners&&!g._listeners.isEmpty();ne||g._options.onLastListenerRemove(g)}}},p instanceof Re.b?p.add(Z):Array.isArray(p)&&p.push(Z),Z}),this._event},enumerable:!0,configurable:!0}),u.prototype.fire=function(g){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new $.a);for(var m=this._listeners.iterator(),E=m.next();!E.done;E=m.next())this._deliveryQueue.push([E.value,g]);for(;this._deliveryQueue.size>0;){var p=this._deliveryQueue.shift(),y=p[0],S=p[1];try{typeof y=="function"?y.call(void 0,S):y[0].call(y[1],S)}catch(U){Object(le.e)(U)}}}},u.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},u._noop=function(){},u}(),L=function(u){x(g,u);function g(m){var E=u.call(this,m)||this;return E._isPaused=0,E._eventQueue=new $.a,E._mergeFn=m&&m.merge,E}return g.prototype.pause=function(){this._isPaused++},g.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){var m=this._eventQueue.toArray();this._eventQueue.clear(),u.prototype.fire.call(this,this._mergeFn(m))}else for(;!this._isPaused&&this._eventQueue.size!==0;)u.prototype.fire.call(this,this._eventQueue.shift())},g.prototype.fire=function(m){this._listeners&&(this._isPaused!==0?this._eventQueue.push(m):u.prototype.fire.call(this,m))},g}(z),C=function(){function u(){var g=this;this.hasListeners=!1,this.events=[],this.emitter=new z({onFirstListenerAdd:function(){return g.onFirstListenerAdd()},onLastListenerRemove:function(){return g.onLastListenerRemove()}})}return Object.defineProperty(u.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),u.prototype.add=function(g){var m=this,E={event:g,listener:null};this.events.push(E),this.hasListeners&&this.hook(E);var p=function(){m.hasListeners&&m.unhook(E);var y=m.events.indexOf(E);m.events.splice(y,1)};return Object(Re.h)(Object(J.a)(p))},u.prototype.onFirstListenerAdd=function(){var g=this;this.hasListeners=!0,this.events.forEach(function(m){return g.hook(m)})},u.prototype.onLastListenerRemove=function(){var g=this;this.hasListeners=!1,this.events.forEach(function(m){return g.unhook(m)})},u.prototype.hook=function(g){var m=this;g.listener=g.event(function(E){return m.emitter.fire(E)})},u.prototype.unhook=function(g){g.listener&&g.listener.dispose(),g.listener=null},u.prototype.dispose=function(){this.emitter.dispose()},u}(),_=function(){function u(){this.buffers=[]}return u.prototype.wrapEvent=function(g){var m=this;return function(E,p,y){return g(function(S){var U=m.buffers[m.buffers.length-1];U?U.push(function(){return E.call(p,S)}):E.call(p,S)},void 0,y)}},u.prototype.bufferEvents=function(g){var m=[];this.buffers.push(m);var E=g();return this.buffers.pop(),m.forEach(function(p){return p()}),E},u}(),O=function(){function u(){var g=this;this.listening=!1,this.inputEvent=D.None,this.inputEventListener=Re.a.None,this.emitter=new z({onFirstListenerDidAdd:function(){g.listening=!0,g.inputEventListener=g.inputEvent(g.emitter.fire,g.emitter)},onLastListenerRemove:function(){g.listening=!1,g.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(u.prototype,"input",{set:function(g){this.inputEvent=g,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=g(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),u.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},u}()},N0LK:function(Te,k,o){"use strict";o.d(k,"x",function(){return le}),o.d(k,"F",function(){return J}),o.d(k,"r",function(){return $}),o.d(k,"o",function(){return x}),o.d(k,"p",function(){return D}),o.d(k,"Q",function(){return fe}),o.d(k,"K",function(){return z}),o.d(k,"k",function(){return L}),o.d(k,"N",function(){return C}),o.d(k,"m",function(){return _}),o.d(k,"l",function(){return O}),o.d(k,"I",function(){return u}),o.d(k,"H",function(){return g}),o.d(k,"q",function(){return m}),o.d(k,"t",function(){return E}),o.d(k,"D",function(){return p}),o.d(k,"e",function(){return y}),o.d(k,"f",function(){return S}),o.d(k,"B",function(){return U}),o.d(k,"C",function(){return Z}),o.d(k,"n",function(){return de}),o.d(k,"O",function(){return ae}),o.d(k,"c",function(){return T}),o.d(k,"d",function(){return d}),o.d(k,"z",function(){return s}),o.d(k,"A",function(){return ue}),o.d(k,"u",function(){return Y}),o.d(k,"E",function(){return N}),o.d(k,"G",function(){return H}),o.d(k,"i",function(){return j}),o.d(k,"g",function(){return ee}),o.d(k,"v",function(){return te}),o.d(k,"h",function(){return ye}),o.d(k,"y",function(){return Pe}),o.d(k,"w",function(){return xe}),o.d(k,"a",function(){return Se}),o.d(k,"P",function(){return X}),o.d(k,"L",function(){return re}),o.d(k,"J",function(){return Ee}),o.d(k,"j",function(){return ie}),o.d(k,"M",function(){return Ce}),o.d(k,"s",function(){return v}),o.d(k,"b",function(){return W});function le(R){return!R||typeof R!="string"?!0:R.trim().length===0}function J(R,Q,be){be===void 0&&(be="0");for(var De=""+R,Ie=[De],Ge=De.length;Ge=Q.length?De:Q[Ge]})}function x(R){return R.replace(/[<>&]/g,function(Q){switch(Q){case"<":return"<";case">":return">";case"&":return"&";default:return Q}})}function D(R){return R.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function fe(R,Q){Q===void 0&&(Q=" ");var be=oe(R,Q);return z(be,Q)}function oe(R,Q){if(!R||!Q)return R;var be=Q.length;if(be===0||R.length===0)return R;for(var De=0;R.indexOf(Q,De)===De;)De=De+be;return R.substring(De)}function z(R,Q){if(!R||!Q)return R;var be=Q.length,De=R.length;if(be===0||De===0)return R;for(var Ie=De,Ge=-1;!(Ge=R.lastIndexOf(Q,Ie-1),Ge===-1||Ge+be!==Ie);){if(Ge===0)return"";Ie=Ge}return R.substring(0,Ie)}function L(R){return R.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function C(R,Q){if(R.length0?R.indexOf(Q,be)===be:be===0?R===Q:!1}function O(R,Q,be){if(be===void 0&&(be={}),!R)throw new Error("Cannot create regex from empty string");Q||(R=D(R)),be.wholeWord&&(/\B/.test(R.charAt(0))||(R="\\b"+R),/\B/.test(R.charAt(R.length-1))||(R=R+"\\b"));var De="";return be.global&&(De+="g"),be.matchCase||(De+="i"),be.multiline&&(De+="m"),be.unicode&&(De+="u"),new RegExp(R,De)}function u(R){if(R.source==="^"||R.source==="^$"||R.source==="$"||R.source==="^\\s*$")return!1;var Q=R.exec("");return!!(Q&&R.lastIndex===0)}function g(R){return(R.global?"g":"")+(R.ignoreCase?"i":"")+(R.multiline?"m":"")+(R.unicode?"u":"")}function m(R){for(var Q=0,be=R.length;Q=0;be--){var De=R.charCodeAt(be);if(De!==32&&De!==9)return be}return-1}function y(R,Q){return RQ?1:0}function S(R,Q){for(var be=Math.min(R.length,Q.length),De=0;DeQ.length?1:0}function U(R){return R>=97&&R<=122}function Z(R){return R>=65&&R<=90}function ne(R){return U(R)||Z(R)}function de(R,Q){return R.length===Q.length&&_e(R,Q)}function _e(R,Q,be){be===void 0&&(be=R.length);for(var De=0;DeR.length?!1:_e(R,Q,be)}function T(R,Q){var be,De=Math.min(R.length,Q.length);for(be=0;be1){var De=R.charCodeAt(Q-2);if(s(De))return(De-55296<<10)+(be-56320)+65536}return be}function N(R,Q){var be=P.getInstance(),De=Q,Ie=R.length,Ge=Y(R,Ie,Q);Q+=Ge>=65536?2:1;for(var qe=be.getGraphemeBreakType(Ge);Q=65536?2:1,qe=$e}return Q-De}function H(R,Q){var be=P.getInstance(),De=Q,Ie=F(R,Q);Q-=Ie>=65536?2:1;for(var Ge=be.getGraphemeBreakType(Ie);Q>0;){var qe=F(R,Q),Je=be.getGraphemeBreakType(qe);if(W(Je,Ge))break;Q-=qe>=65536?2:1,Ge=Je}return De-Q}var w=/(?:[\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 j(R){return w.test(R)}var K=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function ee(R){return K.test(R)}var B=/^[\t\n\r\x20-\x7E]*$/;function te(R){return B.test(R)}function ye(R){for(var Q=0,be=R.length;Q=11904&&R<=55215||R>=63744&&R<=64255||R>=65281&&R<=65374}function xe(R){return R>=127462&&R<=127487||R>=9728&&R<=10175||R>=127744&&R<=128591||R>=128640&&R<=128764||R>=128992&&R<=129003||R>=129280&&R<=129535||R>=129648&&R<=129651||R>=129656&&R<=129666||R>=129680&&R<=129685}var Se=String.fromCharCode(65279);function X(R){return!!(R&&R.length>0&&R.charCodeAt(0)===65279)}function re(R){return btoa(encodeURIComponent(R))}function Ee(R,Q){for(var be="",De=0;Debe[3*Ie+1])Ie=2*Ie+1;else return be[3*Ie+2];return 0},R._INSTANCE=null,R}();function ce(){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]")}},NLgs:function(Te,k,o){"use strict";o.d(k,"e",function(){return U}),o.d(k,"f",function(){return Z}),o.d(k,"d",function(){return de}),o.d(k,"c",function(){return _e}),o.d(k,"a",function(){return ae}),o.d(k,"b",function(){return T});var le=o("miYZ"),J=o("tsqr"),Re=o("9og8"),$=o("2qtc"),x=o("kLXV"),D=o("WmNS"),fe=o.n(D),oe=o("q1tI"),z=o.n(oe),L=o("9kvl"),C=o("xKgJ"),_=o("1vsH"),O=o("RCxd"),u=o("mOS8"),g=o.n(u),m=o("1ZF9"),E=o.n(m),p=o("WdTA"),y=o.n(p),S=o("m3rI"),U=function(s){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!!(Z(s)&&ne(ue))},Z=function(s){return Object(C.p)()?!0:(s({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},ne=function(){var s,ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Y=Object(L.c)()._store.getState(),F=Y.user;return(s=F.userInfo)!==null&&s!==void 0&&s.profile_completed?!0:(x.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:ue?"\u6309\u7167\u6709\u5173\u653F\u7B56\u89C4\u5B9A\uFF0C\u7279\u6B8A\u5B9E\u9A8C\u9700\u8981\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u624D\u80FD\u4F7F\u7528\uFF0C\u8BF7\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u7801":"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){L.d.push("/account/profile/edit")}}),!1)},de=function(){var s,ue=Object(L.c)()._store.getState(),Y=ue.user;return(s=Y.userInfo)!==null&&s!==void 0&&s.professional_certification?!0:(x.a.confirm({title:"\u63D0\u793A",centered:!0,content:z.a.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){Object(_.O)("/account/certification")}}),!1)},_e=function(){return Object(C.a)()?!0:(x.a.warning({centered:!0,width:530,title:"\u63D0\u793A",content:z.a.createElement("div",{className:"tc",style:{marginLeft:-38}},z.a.createElement("p",null,"\u60A8\u53EF\u4EE5\u626B\u7801\u52A0\u7FA4@\u7FA4\u7BA1\u7406\u5458\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650\u54E6\uFF01"),z.a.createElement("img",{src:Object(C.t)()?y.a:"".concat(S.a.IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1)},ae=function(s,ue){return s?!0:(x.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:z.a.createElement("div",null,z.a.createElement("p",null,ue||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),z.a.createElement("div",{style:{marginLeft:"110px"}},z.a.createElement("img",{src:E.a,width:200}),z.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(_.O)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},T=function(s){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",Y=Object(L.c)()._store.getState(),F=Y.shixunsDetail.detail;return(F==null?void 0:F.public)===2||(F==null?void 0:F.public)===1||(F==null?void 0:F.shixun_status)===3?(x.a.info({centered:!0,icon:z.a.createElement(O.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:z.a.createElement("div",{className:"tc",style:{marginLeft:-38}},z.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},z.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(F==null?void 0:F.public)===2?"\u5DF2\u516C\u5F00":(F==null?void 0:F.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",ue,"\u3002"),z.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),z.a.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:g.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(F==null?void 0:F.shixun_status)===2?(x.a.confirm({centered:!0,icon:z.a.createElement(O.a,null),title:"\u63D0\u793A",content:z.a.createElement("div",null,z.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",ue,"\u3002"),z.a.createElement("br",null),z.a.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){x.a.confirm({width:440,centered:!0,icon:z.a.createElement(O.a,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){var H=Object(Re.a)(fe.a.mark(function j(){var K;return fe.a.wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.next=2,s({type:"shixunsDetail/cancelRelease",payload:{id:F==null?void 0:F.identifier}});case 2:K=B.sent,K.status!==401&&(J.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),s({type:"shixunsDetail/getShixunsDetail",payload:{id:F==null?void 0:F.identifier}}),s({type:"practiceSetting/getCommonData",payload:{id:F==null?void 0:F.identifier}}));case 4:case"end":return B.stop()}},j)}));function w(){return H.apply(this,arguments)}return w}()})}}),!0):!1}},Nmxd:function(Te,k){Te.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAF4ElEQVRoQ91aW2wUVRj+/rPbSivURIgKjZcHjUYTgZ0lthgv3V0LSqB9IAQeNNEIaKKwZbcFnuQJoZ1piyYawJjIiwZDwiVBaHd28QItaWeLD4KJPgimiA+YCAZj6Z7fzPZiu7e57WriJE0f5v++//tm/j3nn3MOoQyXcmJ/LdfeCBOjEUA9EdUzUA9g0ST9VQJGmXkU5n/CAN2q043Vm295TU9uCRS9MwCiFWBqAmD++R1yjQNIgTgF5tNGuCPtEJ8Nd2xgWarzPil9UbBsA1G1m6R5GOYxkOgRItM71NRxzQmnIwMBvStKoCiAB50kcRB7mcG96XB7r12MLQNPJXrvzdD4QQZW2yX2EkfACR/7N56PRH+14rE0sDSpLRaM4wA/YEVW3vt0RRLWjIRi35biLWkgmOhaz0SflleYMzZi3jAcaf+sGKqoAUVX3wbwnrN0FYveYoTj7xdiL2ggqKsvMnCyYnJcEBPw0nA4/kUuNM9AINX9MMnMIEDzXeSpIISvs/A1pJu2/TgzSZ4BRVf7ALxQQSVeqPuNcLy5qIHJcb7HS4ZKYxncNnOemH4DyqmehaiW58D8UKVFeOIn+gljYrmxsu2XWa2Eomt7AN7uidwd+CKBPy8EZdA7hSlprxGO7Zg2EPxSW8q35WDZehv7Ri4KEuuGQtu+y4UoSe0DML9ZkIp5jKpEw/BzsZFsCSkpNQYJ1X7eskQWF6+rbwD4sGQWgbjRFNcmDCS0oyBuKYsseyRFxS/TteWSZT+IaktSMR0zIrFWajzcXTM2X95w0c/bk5ofVVT8k6e77vT7qY+A5TbIx6uvizoKJNUVxDhlA1COkKLis5Wgq2bZmOVj62LCSlIS2m4Q77SF8BZkJd667nPzM71LSqLrExC94k2bJbqk+Im65xQIzr7wmA9RUFcTDIQtJWQDaB3A5lT+ur34bFRJ8WbdV1VRAowGB5wTagCdFF29BOAxSz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k,o){"use strict";o.d(k,"a",function(){return D});var le=o("Kwbf");function J(fe,oe){var z=new Set;return fe.forEach(function(L){oe.has(L)||z.add(L)}),z}function Re(fe){var oe=fe||{},z=oe.disabled,L=oe.disableCheckbox,C=oe.checkable;return!!(z||L)||C===!1}function $(fe,oe,z,L){for(var C=new Set(fe),_=new Set,O=0;O<=z;O+=1){var u=oe.get(O)||new Set;u.forEach(function(p){var y=p.key,S=p.node,U=p.children,Z=U===void 0?[]:U;C.has(y)&&!L(S)&&Z.filter(function(ne){return!L(ne.node)}).forEach(function(ne){C.add(ne.key)})})}for(var g=new Set,m=z;m>=0;m-=1){var E=oe.get(m)||new Set;E.forEach(function(p){var y=p.parent,S=p.node;if(L(S)||!p.parent||g.has(p.parent.key))return;if(L(p.parent.node)){g.add(y.key);return}var U=!0,Z=!1;(y.children||[]).filter(function(ne){return!L(ne.node)}).forEach(function(ne){var de=ne.key,_e=C.has(de);U&&!_e&&(U=!1),!Z&&(_e||_.has(de))&&(Z=!0)}),U&&C.add(y.key),Z&&_.add(y.key),g.add(y.key)})}return{checkedKeys:Array.from(C),halfCheckedKeys:Array.from(J(_,C))}}function x(fe,oe,z,L,C){for(var _=new Set(fe),O=new Set(oe),u=0;u<=L;u+=1){var g=z.get(u)||new Set;g.forEach(function(y){var S=y.key,U=y.node,Z=y.children,ne=Z===void 0?[]:Z;!_.has(S)&&!O.has(S)&&!C(U)&&ne.filter(function(de){return!C(de.node)}).forEach(function(de){_.delete(de.key)})})}O=new Set;for(var m=new Set,E=L;E>=0;E-=1){var p=z.get(E)||new Set;p.forEach(function(y){var S=y.parent,U=y.node;if(C(U)||!y.parent||m.has(y.parent.key))return;if(C(y.parent.node)){m.add(S.key);return}var Z=!0,ne=!1;(S.children||[]).filter(function(de){return!C(de.node)}).forEach(function(de){var _e=de.key,ae=_.has(_e);Z&&!ae&&(Z=!1),!ne&&(ae||O.has(_e))&&(ne=!0)}),Z||_.delete(S.key),ne&&O.add(S.key),m.add(S.key)})}return{checkedKeys:Array.from(_),halfCheckedKeys:Array.from(J(O,_))}}function D(fe,oe,z,L){var C=[],_;L?_=L:_=Re;var O=new Set(fe.filter(function(E){var p=!!z[E];return p||C.push(E),p})),u=new Map,g=0;Object.keys(z).forEach(function(E){var p=z[E],y=p.level,S=u.get(y);S||(S=new Set,u.set(y,S)),S.add(p),g=Math.max(g,y)}),Object(le.a)(!C.length,"Tree missing follow keys: ".concat(C.slice(0,100).map(function(E){return"'".concat(E,"'")}).join(", ")));var m;return oe===!0?m=$(O,u,g,_):m=x(O,oe.halfCheckedKeys,u,g,_),m}},OZM5:function(Te,k,o){"use strict";o.d(k,"b",function(){return L}),o.d(k,"a",function(){return C}),o.d(k,"k",function(){return _}),o.d(k,"h",function(){return O}),o.d(k,"i",function(){return u}),o.d(k,"g",function(){return g}),o.d(k,"c",function(){return m}),o.d(k,"d",function(){return E}),o.d(k,"j",function(){return S}),o.d(k,"e",function(){return U}),o.d(k,"f",function(){return Z});var le=o("KQm4"),J=o("U8pU"),Re=o("Ff2n"),$=o("q1tI"),x=o.n($),D=o("Kwbf"),fe=o("WaYH"),oe=.25,z=2;function L(ne,de){var _e=ne.slice(),ae=_e.indexOf(de);return ae>=0&&_e.splice(ae,1),_e}function C(ne,de){var _e=ne.slice();return _e.indexOf(de)===-1&&_e.push(de),_e}function _(ne){return ne.split("-")}function O(ne,de){return"".concat(ne,"-").concat(de)}function u(ne){return ne&&ne.type&&ne.type.isTreeNode}function g(ne,de){var _e=[ne],ae=de[ne];function T(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];d.forEach(function(s){var ue=s.key,Y=s.children;_e.push(ue),T(Y)})}return T(ae.children),_e}function m(ne,de){var _e=ne.clientY,ae=de.selectHandle.getBoundingClientRect(),T=ae.top,d=ae.bottom,s=ae.height,ue=Math.max(s*oe,z);return _e<=T+ue?-1:_e>=d-ue?1:0}function E(ne,de){if(!ne)return;var _e=de.multiple;return _e?ne.slice():ne.length?[ne[0]]:ne}var p=function(de){return de};function y(ne,de){if(!ne)return[];var _e=de||{},ae=_e.processProps,T=ae===void 0?p:ae,d=Array.isArray(ne)?ne:[ne];return d.map(function(s){var ue=s.children,Y=Object(Re.a)(s,["children"]),F=y(ue,de);return x.a.createElement(fe.a,Object.assign({},T(Y)),F)})}function S(ne){if(!ne)return null;var de;if(Array.isArray(ne))de={checkedKeys:ne,halfCheckedKeys:void 0};else if(Object(J.a)(ne)==="object")de={checkedKeys:ne.checked||void 0,halfCheckedKeys:ne.halfChecked||void 0};else return Object(D.a)(!1,"`checkedKeys` is not an array or an object"),null;return de}function U(ne,de){var _e=new Set;function ae(T){if(_e.has(T))return;var d=de[T];if(!d)return;_e.add(T);var s=d.parent,ue=d.node;if(ue.disabled)return;s&&ae(s.key)}return(ne||[]).forEach(function(T){ae(T)}),Object(le.a)(_e)}function Z(ne){var de={};return Object.keys(ne).forEach(function(_e){(_e.startsWith("data-")||_e.startsWith("aria-"))&&(de[_e]=ne[_e])}),de}},Ohmc:function(Te,k,o){Te.exports=o.p+"static/certificate.fc32dc1b.jpg"},P5Jw:function(Te,k,o){"use strict";var le=o("rHrb"),J=le.CopyToClipboard;J.CopyToClipboard=J,Te.exports=J},QDVR:function(Te,k,o){"use strict";o.d(k,"e",function(){return J}),o.d(k,"d",function(){return Re}),o.d(k,"c",function(){return fe}),o.d(k,"b",function(){return oe}),o.d(k,"a",function(){return L});var le=function(){var C=function(_,O){return C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,g){u.__proto__=g}||function(u,g){for(var m in g)g.hasOwnProperty(m)&&(u[m]=g[m])},C(_,O)};return function(_,O){C(_,O);function u(){this.constructor=_}_.prototype=O===null?Object.create(O):(u.prototype=O.prototype,new u)}}();function J(C){var _=[];return C.forEach(function(O){return _.push(O)}),_}function Re(C){var _=[];return C.forEach(function(O,u){return _.push(u)}),_}var $=function(){function C(){this._value="",this._pos=0}return C.prototype.reset=function(_){return this._value=_,this._pos=0,this},C.prototype.next=function(){return this._pos+=1,this},C.prototype.hasNext=function(){return this._pos0)g.left||(g.left=new D,g.left.segment=u.value()),g=g.left;else if(m<0)g.right||(g.right=new D,g.right.segment=u.value()),g=g.right;else if(u.hasNext())u.next(),g.mid||(g.mid=new D,g.mid.segment=u.value()),g=g.mid;else break}var E=g.value;return g.value=O,g.key=_,E},C.prototype.get=function(_){for(var O=this._iter.reset(_),u=this._root;u;){var g=O.cmp(u.segment);if(g>0)u=u.left;else if(g<0)u=u.right;else if(O.hasNext())O.next(),u=u.mid;else break}return u?u.value:void 0},C.prototype.findSubstr=function(_){for(var O=this._iter.reset(_),u=this._root,g=void 0;u;){var m=O.cmp(u.segment);if(m>0)u=u.left;else if(m<0)u=u.right;else if(O.hasNext())O.next(),g=u.value||g,u=u.mid;else break}return u&&u.value||g},C.prototype.forEach=function(_){this._forEach(this._root,_)},C.prototype._forEach=function(_,O){_&&(this._forEach(_.left,O),_.value&&O(_.value,_.key),this._forEach(_.mid,O),this._forEach(_.right,O))},C}(),oe=function(){function C(){this.map=new Map,this.ignoreCase=!1}return C.prototype.set=function(_,O){this.map.set(this.toKey(_),O)},C.prototype.get=function(_){return this.map.get(this.toKey(_))},C.prototype.toKey=function(_){var O=_.toString();return this.ignoreCase&&(O=O.toLowerCase()),O},C}(),z=function(){function C(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return C.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(C.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),C.prototype.get=function(_,O){O===void 0&&(O=0);var u=this._map.get(_);return u?(O!==0&&this.touch(u,O),u.value):void 0},C.prototype.set=function(_,O,u){u===void 0&&(u=0);var g=this._map.get(_);if(g)g.value=O,u!==0&&this.touch(g,u);else{g={key:_,value:O,next:void 0,previous:void 0};switch(u){case 0:this.addItemLast(g);break;case 1:this.addItemFirst(g);break;case 2:this.addItemLast(g);break;default:this.addItemLast(g);break}this._map.set(_,g),this._size++}},C.prototype.delete=function(_){return!!this.remove(_)},C.prototype.remove=function(_){var O=this._map.get(_);return O?(this._map.delete(_),this.removeItem(O),this._size--,O.value):void 0},C.prototype.forEach=function(_,O){for(var u=this._head;u;)O?_.bind(O)(u.value,u.key,this):_(u.value,u.key,this),u=u.next},C.prototype.trimOld=function(_){if(_>=this.size)return;if(_===0){this.clear();return}for(var O=this._head,u=this.size;O&&u>_;)this._map.delete(O.key),O=O.next,u--;this._head=O,this._size=u,O&&(O.previous=void 0)},C.prototype.addItemFirst=function(_){if(!this._head&&!this._tail)this._tail=_;else if(this._head)_.next=this._head,this._head.previous=_;else throw new Error("Invalid list");this._head=_},C.prototype.addItemLast=function(_){if(!this._head&&!this._tail)this._head=_;else if(this._tail)_.previous=this._tail,this._tail.next=_;else throw new Error("Invalid list");this._tail=_},C.prototype.removeItem=function(_){if(_===this._head&&_===this._tail)this._head=void 0,this._tail=void 0;else if(_===this._head){if(!_.next)throw new Error("Invalid list");_.next.previous=void 0,this._head=_.next}else if(_===this._tail){if(!_.previous)throw new Error("Invalid list");_.previous.next=void 0,this._tail=_.previous}else{var O=_.next,u=_.previous;if(!O||!u)throw new Error("Invalid list");O.previous=u,u.next=O}_.next=void 0,_.previous=void 0},C.prototype.touch=function(_,O){if(!this._head||!this._tail)throw new Error("Invalid list");if(O!==1&&O!==2)return;if(O===1){if(_===this._head)return;var u=_.next,g=_.previous;_===this._tail?(g.next=void 0,this._tail=g):(u.previous=g,g.next=u),_.previous=void 0,_.next=this._head,this._head.previous=_,this._head=_}else if(O===2){if(_===this._tail)return;var u=_.next,g=_.previous;_===this._head?(u.previous=void 0,this._head=u):(u.previous=g,g.next=u),_.next=void 0,_.previous=this._tail,this._tail.next=_,this._tail=_}},C.prototype.toJSON=function(){var _=[];return this.forEach(function(O,u){_.push([u,O])}),_},C}(),L=function(C){le(_,C);function _(O,u){u===void 0&&(u=1);var g=C.call(this)||this;return g._limit=O,g._ratio=Math.min(Math.max(0,u),1),g}return _.prototype.get=function(O){return C.prototype.get.call(this,O,2)},_.prototype.peek=function(O){return C.prototype.get.call(this,O,0)},_.prototype.set=function(O,u){C.prototype.set.call(this,O,u,2),this.checkTrim()},_.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},_}(z)},RMFE:function(Te,k){Te.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWgAAAFyCAYAAADYqEAoAAAAAXNSR0IArs4c6QAADetJREFUeAHt1jFqXUEQRUHLaP9b/jZObmYU9MAJSlGDxNBUPw76+vz9+eWHAAECBHICv3MbWYgAAQIE/gkItA+BAAECUQGBjh7GWgQIEBBo3wABAgSiAgIdPYy1CBAgINC+AQIECEQFBDp6GGsRIEBAoH0DBAgQiAoIdPQw1iJAgIBA+wYIECAQFRDo6GGsRYAAAYH2DRAgQCAqINDRw1iLAAECAu0bIECAQFRAoKOHsRYBAgQE2jdAgACBqIBARw9jLQIECAi0b4AAAQJRAYGOHsZaBAgQEGjfAAECBKICAh09jLUIECAg0L4BAgQIRAUEOnoYaxEgQECgfQMECBCICgh09DDWIkCAgED7BggQIBAVEOjoYaxFgAABgfYNECBAICog0NHDWIsAAQIC7RsgQIBAVECgo4exFgECBATaN0CAAIGogEBHD2MtAgQICLRvgAABAlEBgY4exloECBAQaN8AAQIEogICHT2MtQgQICDQvgECBAhEBQQ6ehhrESBAQKB9AwQIEIgKCHT0MNYiQICAQPsGCBAgEBUQ6OhhrEWAAAGB9g0QIEAgKiDQ0cNYiwABAgLtGyBAgEBUQKCjh7EWAQIEBNo3QIAAgaiAQEcPYy0CBAh8/5Tg6+vrp3/q7wgQIEDgPwKfz+c/v92v/Ac9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAik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gQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IXAH7PYDOHnuk1pAAAAAElFTkSuQmCC"},RotF:function(Te,k,o){Te.exports=o("LSTS")},"SA+Z":function(Te,k,o){var le=o("wTVA"),J=o("EbDI"),Re=o("ZhPi"),$=o("wkBT");function x(D){return le(D)||J(D)||Re(D)||$()}Te.exports=x,Te.exports.__esModule=!0,Te.exports.default=Te.exports},SMhR:function(Te,k){Te.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcYAAAHGCAYAAADuYispAAAAAklEQVR4AewaftIAABHTSURBVO3BQY4cy5IEQdNA3//KNo2/8NU8XzCQyCpSReivSJKk/zmRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjR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u3nEiSpHEiSZLGiSRJGieSJGmcSJKkcSJJksaJJEkaP9FHA3KjbTZAngRk0zafDMiTgPyptrkB5Eltc6Nt3gTkTW1zA8imbZ7UNt/qRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdL4yZdrm28G5JO1zQ0gN9pmA2QDZNM2GyCbtrnRNk8BcqNtNkA2QN7UNhsgTwKyaZsNkE3bvAnIjbb5VCeSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqRxIkmSBv2VFwH5m7XNk4Bs2uZJQJ7UNjeA3GibTwXkRttsgNxomw2QG22zAXKjbW4AeVLbbIDcaJsNkCe1zVtOJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJA36K5Ik6X9OJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ4/8ATrCgy9kbxW8AAAAASUVORK5CYII="},T8No:function(Te,k,o){"use strict";o.d(k,"a",function(){return $}),o.d(k,"b",function(){return O}),o.d(k,"d",function(){return u}),o.d(k,"c",function(){return g}),o.d(k,"e",function(){return m});var le=o("N0LK"),J=o("Cg/j"),Re=function(){var E=function(p,y){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,U){S.__proto__=U}||function(S,U){for(var Z in U)U.hasOwnProperty(Z)&&(S[Z]=U[Z])},E(p,y)};return function(p,y){E(p,y);function S(){this.constructor=p}p.prototype=y===null?Object.create(y):(S.prototype=y.prototype,new S)}}(),$=function(){function E(){}return E.has=function(p){return D.create(p)},E.equals=function(p,y){return fe.create(p,y)},E.regex=function(p,y){return L.create(p,y)},E.not=function(p){return z.create(p)},E.and=function(){for(var p=[],y=0;y=0){var S=p.split("!=");return oe.create(S[0].trim(),this._deserializeValue(S[1],y))}if(p.indexOf("==")>=0){var S=p.split("==");return fe.create(S[0].trim(),this._deserializeValue(S[1],y))}if(p.indexOf("=~")>=0){var S=p.split("=~");return L.create(S[0].trim(),this._deserializeRegexValue(S[1],y))}return/^\!\s*/.test(p)?z.create(p.substr(1).trim()):D.create(p)},E._deserializeValue=function(p,y){if(p=p.trim(),p==="true")return!0;if(p==="false")return!1;var S=/^'([^']*)'$/.exec(p);return S?S[1].trim():p},E._deserializeRegexValue=function(p,y){if(Object(le.x)(p)){if(y)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var S=p.indexOf("/"),U=p.lastIndexOf("/");if(S===U||S<0){if(y)throw new Error("bad regexp-value '"+p+"', missing /-enclosure");return console.warn("bad regexp-value '"+p+"', missing /-enclosure"),null}var Z=p.slice(S+1,U),ne=p[U+1]==="i"?"i":"";try{return new RegExp(Z,ne)}catch(de){if(y)throw new Error("bad regexp-value '"+p+"', parse error: "+de);return console.warn("bad regexp-value '"+p+"', parse error: "+de),null}},E}();function x(E,p){var y=E.getType(),S=p.getType();if(y!==S)return y-S;switch(y){case 1:return E.cmp(p);case 2:return E.cmp(p);case 3:return E.cmp(p);case 4:return E.cmp(p);case 6:return E.cmp(p);case 7:return E.cmp(p);case 5:return E.cmp(p);default:throw new Error("Unknown ContextKeyExpr!")}}var D=function(){function E(p){this.key=p}return E.create=function(p){return new E(p)},E.prototype.getType=function(){return 1},E.prototype.cmp=function(p){return this.keyp.key?1:0},E.prototype.equals=function(p){return p instanceof E?this.key===p.key:!1},E.prototype.evaluate=function(p){return!!p.getValue(this.key)},E.prototype.keys=function(){return[this.key]},E.prototype.negate=function(){return z.create(this.key)},E}(),fe=function(){function E(p,y){this.key=p,this.value=y}return E.create=function(p,y){return typeof y=="boolean"?y?D.create(p):z.create(p):new E(p,y)},E.prototype.getType=function(){return 3},E.prototype.cmp=function(p){return this.keyp.key?1:this.valuep.value?1:0},E.prototype.equals=function(p){return p instanceof E?this.key===p.key&&this.value===p.value:!1},E.prototype.evaluate=function(p){return p.getValue(this.key)==this.value},E.prototype.keys=function(){return[this.key]},E.prototype.negate=function(){return oe.create(this.key,this.value)},E}(),oe=function(){function E(p,y){this.key=p,this.value=y}return E.create=function(p,y){return typeof y=="boolean"?y?z.create(p):D.create(p):new E(p,y)},E.prototype.getType=function(){return 4},E.prototype.cmp=function(p){return this.keyp.key?1:this.valuep.value?1:0},E.prototype.equals=function(p){return p instanceof E?this.key===p.key&&this.value===p.value:!1},E.prototype.evaluate=function(p){return p.getValue(this.key)!=this.value},E.prototype.keys=function(){return[this.key]},E.prototype.negate=function(){return fe.create(this.key,this.value)},E}(),z=function(){function E(p){this.key=p}return E.create=function(p){return new E(p)},E.prototype.getType=function(){return 2},E.prototype.cmp=function(p){return this.keyp.key?1:0},E.prototype.equals=function(p){return p instanceof E?this.key===p.key:!1},E.prototype.evaluate=function(p){return!p.getValue(this.key)},E.prototype.keys=function(){return[this.key]},E.prototype.negate=function(){return D.create(this.key)},E}(),L=function(){function E(p,y){this.key=p,this.regexp=y}return E.create=function(p,y){return new E(p,y)},E.prototype.getType=function(){return 6},E.prototype.cmp=function(p){if(this.keyp.key)return 1;var y=this.regexp?this.regexp.source:"",S=p.regexp?p.regexp.source:"";return yS?1:0},E.prototype.equals=function(p){if(p instanceof E){var y=this.regexp?this.regexp.source:"",S=p.regexp?p.regexp.source:"";return this.key===p.key&&y===S}return!1},E.prototype.evaluate=function(p){var y=p.getValue(this.key);return this.regexp?this.regexp.test(y):!1},E.prototype.keys=function(){return[this.key]},E.prototype.negate=function(){return C.create(this)},E}(),C=function(){function E(p){this._actual=p}return E.create=function(p){return new E(p)},E.prototype.getType=function(){return 7},E.prototype.cmp=function(p){return this._actual.cmp(p._actual)},E.prototype.equals=function(p){return p instanceof E?this._actual.equals(p._actual):!1},E.prototype.evaluate=function(p){return!this._actual.evaluate(p)},E.prototype.keys=function(){return this._actual.keys()},E.prototype.negate=function(){return this._actual},E}(),_=function(){function E(p){this.expr=p}return E.create=function(p){var y=E._normalizeArr(p);return y.length===0?void 0:y.length===1?y[0]:new E(y)},E.prototype.getType=function(){return 5},E.prototype.cmp=function(p){if(this.expr.lengthp.expr.length)return 1;for(var y=0,S=this.expr.length;y1;){for(var ne=p.shift(),de=p.shift(),_e=[],ae=0,T=Z(ne);ae=15&&(_=!1,z=!0);var ne=y&&(L||_&&(Z==null||Z<12.11)),de=Re||fe&&oe>=9;function _e(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var ae=function(e,t){var a=e.className,n=_e(t).exec(a);if(n){var r=a.slice(n.index+n[0].length);e.className=a.slice(0,n.index)+(r?n[1]+r:"")}};function T(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function d(e,t){return T(e).appendChild(t)}function s(e,t,a,n){var r=document.createElement(e);if(a&&(r.className=a),n&&(r.style.cssText=n),typeof t=="string")r.appendChild(document.createTextNode(t));else if(t)for(var i=0;i=t)return l+(t-i);l+=c-i,l+=a-l%a,i=c+1}}var te=function(){this.id=null,this.f=null,this.time=0,this.handler=K(this.onTimeout,this)};te.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},te.prototype.set=function(e,t){this.f=t;var a=+new Date+e;(!this.id||a=t)return n+Math.min(l,t-r);if(r+=i-n,r+=a-r%a,n=i+1,r>=t)return n}}var ie=[""];function Ce(e){for(;ie.length<=e;)ie.push(v(ie)+" ");return ie[e]}function v(e){return e[e.length-1]}function W(e,t){for(var a=[],n=0;n"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Q.test(e))}function De(e,t){return t?t.source.indexOf("\\w")>-1&&be(e)?!0:t.test(e):be(e)}function Ie(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Ge=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function qe(e){return e.charCodeAt(0)>=768&&Ge.test(e)}function Je(e,t,a){for(;(a<0?t>0:ta?-1:1;;){if(t==a)return t;var r=(t+a)/2,i=n<0?Math.ceil(r):Math.floor(r);if(i==t)return e(i)?t:a;e(i)?a=i:t=i+n}}function it(e,t,a,n){if(!e)return n(t,a,"ltr",0);for(var r=!1,i=0;it||t==a&&l.to==t)&&(n(Math.max(l.from,t),Math.min(l.to,a),l.level==1?"rtl":"ltr",i),r=!0)}r||n(t,a,"ltr")}var xt=null;function vt(e,t,a){var n;xt=null;for(var r=0;rt)return r;i.to==t&&(i.from!=i.to&&a=="before"?n=r:xt=r),i.from==t&&(i.from!=i.to&&a!="before"?n=r:xt=r)}return n!=null?n:xt}var Ut=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(A){return A<=247?e.charAt(A):1424<=A&&A<=1524?"R":1536<=A&&A<=1785?t.charAt(A-1536):1774<=A&&A<=2220?"r":8192<=A&&A<=8203?"w":A==8204?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,r=/[stwN]/,i=/[LRr]/,l=/[Lb1n]/,c=/[1n]/;function h(A,se,pe){this.level=A,this.from=se,this.to=pe}return function(A,se){var pe=se=="ltr"?"L":"R";if(A.length==0||se=="ltr"&&!n.test(A))return!1;for(var Ne=A.length,we=[],Qe=0;Qe-1&&(n[t]=r.slice(0,i).concat(r.slice(i+1)))}}}function rt(e,t){var a=ze(e,t);if(!a.length)return;for(var n=Array.prototype.slice.call(arguments,2),r=0;r0}function He(e){e.prototype.on=function(t,a){Le(this,t,a)},e.prototype.off=function(t,a){st(this,t,a)}}function Ze(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Be(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Xe(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function ut(e){Ze(e),Be(e)}function lt(e){return e.target||e.srcElement}function Ct(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),y&&e.ctrlKey&&t==1&&(t=3),t}var bt=function(){if(fe&&oe<9)return!1;var e=s("div");return"draggable"in e||"dragDrop"in e}(),At;function kt(e){if(At==null){var t=s("span","\u200B");d(e,s("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(At=t.offsetWidth<=1&&t.offsetHeight>2&&!(fe&&oe<8))}var a=At?s("span","\u200B"):s("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var St;function Wt(e){if(St!=null)return St;var t=d(e,document.createTextNode("A\u062EA")),a=Y(t,0,1).getBoundingClientRect(),n=Y(t,1,2).getBoundingClientRect();return T(e),!a||a.left==a.right?!1:St=n.right-a.right<3}var fn=` b`.split(/\n/).length!=3?function(e){for(var t=0,a=[],n=e.length;t<=n;){var r=e.indexOf(` -`,t);r==-1&&(r=e.length);var i=e.slice(t,e.charAt(r-1)=="\r"?r-1:r),l=i.indexOf("\r");l!=-1?(a.push(i.slice(0,l)),t+=l+1):(a.push(i),t=r+1)}return a}:function(e){return e.split(/\r\n?|\n/)},vn=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(a){}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},An=function(){var e=s("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),zn=null;function sn(e){if(zn!=null)return zn;var t=d(e,s("span","x")),a=t.getBoundingClientRect(),n=Y(t,0,1).getBoundingClientRect();return zn=Math.abs(a.left-n.left)>1}var gn={},Kt={};function hn(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),gn[e]=t}function pn(e,t){Kt[e]=t}function Rt(e){if(typeof e=="string"&&Kt.hasOwnProperty(e))e=Kt[e];else if(e&&typeof e.name=="string"&&Kt.hasOwnProperty(e.name)){var t=Kt[e.name];typeof t=="string"&&(t={name:t}),e=R(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Rt("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Rt("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function pt(e,t){t=Rt(t);var a=gn[t.name];if(!a)return pt(e,"text/plain");var n=a(e,t);if(ot.hasOwnProperty(t.name)){var r=ot[t.name];for(var i in r){if(!r.hasOwnProperty(i))continue;n.hasOwnProperty(i)&&(n["_"+i]=n[i]),n[i]=r[i]}}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var l in t.modeProps)n[l]=t.modeProps[l];return n}var ot={};function Mt(e,t){var a=ot.hasOwnProperty(e)?ot[e]:ot[e]={};ee(t,a)}function Ft(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var a={};for(var n in t){var r=t[n];r instanceof Array&&(r=r.concat([])),a[n]=r}return a}function xn(e,t){for(var a;e.innerMode&&!(a=e.innerMode(t),!a||a.mode==e);)t=a.state,e=a.mode;return a||{mode:e,state:t}}function wn(e,t,a){return e.startState?e.startState(t,a):!0}var zt=function(e,t,a){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=a};zt.prototype.eol=function(){return this.pos>=this.string.length},zt.prototype.sol=function(){return this.pos==this.lineStart},zt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},zt.prototype.next=function(){if(this.post},zt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},zt.prototype.skipToEnd=function(){this.pos=this.string.length},zt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},zt.prototype.backUp=function(e){this.pos-=e},zt.prototype.column=function(){return this.lastColumnPos0?null:(i&&t!==!1&&(this.pos+=i[0].length),i)}},zt.prototype.current=function(){return this.string.slice(this.start,this.pos)},zt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},zt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},zt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function tt(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var a=e;!a.lines;)for(var n=0;;++n){var r=a.children[n],i=r.chunkSize();if(t=e.first&&ta?Me(a,tt(e,a).text.length):ht(t,tt(e,t.line).text.length)}function ht(e,t){var a=e.ch;return a==null||a>t?Me(e.line,t):a<0?Me(e.line,0):e}function Pt(e,t){for(var a=[],n=0;nthis.maxLookAhead&&(this.maxLookAhead=e),t},_t.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},_t.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},_t.fromSaved=function(e,t,a){return t instanceof Xt?new _t(e,Ft(e.mode,t.state),a,t.lookAhead):new _t(e,Ft(e.mode,t),a)},_t.prototype.save=function(e){var t=e!==!1?Ft(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Xt(t,this.maxLookAhead):t};function Zt(e,t,a,n){var r=[e.state.modeGen],i={};ha(e,t.text,e.doc.mode,a,function(A,se){return r.push(A,se)},i,n);for(var l=a.state,c=function(A){a.baseTokens=r;var se=e.state.overlays[A],pe=1,Ne=0;a.state=!0,ha(e,t.text,se.mode,a,function(we,Qe){for(var et=pe;Newe&&r.splice(pe,1,we,r[pe+1],ft),pe+=2,Ne=Math.min(we,ft)}if(!Qe)return;if(se.opaque)r.splice(et,pe-et,we,"overlay "+Qe),pe=et+2;else for(;ete.options.maxHighlightLength&&Ft(e.doc.mode,n.state),i=Zt(e,t,n);r&&(n.state=r),t.stateAfter=n.save(!r),t.styles=i.styles,i.classes?t.styleClasses=i.classes:t.styleClasses&&(t.styleClasses=null),a===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function qt(e,t,a){var n=e.doc,r=e.display;if(!n.mode.startState)return new _t(n,!0,t);var i=In(e,t,a),l=i>n.first&&tt(n,i-1).stateAfter,c=l?_t.fromSaved(n,l,i):new _t(n,wn(n.mode),i);return n.iter(i,t,function(h){Mn(e,h.text,c);var A=c.line;h.stateAfter=A==t-1||A%5==0||A>=r.viewFrom&&At.start)return i}throw new Error("Mode "+e.name+" failed to advance stream.")}var wt=function(e,t,a){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=a};function Hn(e,t,a,n){var r=e.doc,i=r.mode,l;t=Ye(r,t);var c=tt(r,t.line),h=qt(e,t.line,a),A=new zt(c.text,e.options.tabSize,h),se;for(n&&(se=[]);(n||A.pose.options.maxHighlightLength?(c=!1,l&&Mn(e,t,n,se.pos),se.pos=t.length,pe=null):pe=Jn(ct(a,se,n.state,Ne),i),Ne){var we=Ne[0].name;we&&(pe="m-"+(pe?we+" "+pe:we))}if(!c||A!=pe){for(;hl;--c){if(c<=i.first)return i.first;var h=tt(i,c-1),A=h.stateAfter;if(A&&(!a||c+(A instanceof Xt?A.lookAhead:0)<=i.modeFrontier))return c;var se=B(h.text,null,e.options.tabSize);(r==null||n>se)&&(r=c-1,n=se)}return r}function oa(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),e.highlightFrontiera;n--){var r=tt(e,n).stateAfter;if(r&&(!(r instanceof Xt)||n+r.lookAhead=t:i.to>t);(n||(n=[])).push(new _n(l,i.from,h?null:i.to))}}return n}function Kn(e,t,a){var n;if(e)for(var r=0;r=t:i.to>t);if(c||i.from==t&&l.type=="bookmark"&&(!a||i.marker.insertLeft)){var h=i.from==null||(l.inclusiveLeft?i.from<=t:i.from0&&c)for(var jt=0;jt0)continue;var se=[h,1],pe=Oe(A.from,c.from),Ne=Oe(A.to,c.to);(pe<0||!l.inclusiveLeft&&!pe)&&se.push({from:A.from,to:c.from}),(Ne>0||!l.inclusiveRight&&!Ne)&&se.push({from:c.to,to:A.to}),r.splice.apply(r,se),h+=se.length-3}return r}function ia(e){var t=e.markedSpans;if(!t)return;for(var a=0;at)&&(!n||ya(n,i.marker)<0)&&(n=i.marker)}return n}function ca(e,t,a,n,r){var i=tt(e,t),l=We&&i.markedSpans;if(l)for(var c=0;c=0&&pe<=0||se<=0&&pe>=0)continue;if(se<=0&&(h.marker.inclusiveRight&&r.inclusiveLeft?Oe(A.to,a)>=0:Oe(A.to,a)>0)||se>=0&&(h.marker.inclusiveRight&&r.inclusiveLeft?Oe(A.from,n)<=0:Oe(A.from,n)<0))return!0}}function Vn(e){for(var t;t=mn(e);)e=t.find(-1,!0).line;return e}function Xn(e){for(var t;t=Bt(e);)e=t.find(1,!0).line;return e}function vr(e){for(var t,a;t=Bt(e);)e=t.find(1,!0).line,(a||(a=[])).push(e);return a}function La(e,t){var a=tt(e,t),n=Vn(a);return a==n?t:$t(n)}function Fa(e,t){if(t>e.lastLine())return t;var a=tt(e,t),n;if(!Pa(e,a))return t;for(;n=Bt(a);)a=n.find(1,!0).line;return $t(a)+1}function Pa(e,t){var a=We&&t.markedSpans;if(a)for(var n=void 0,r=0;rt.maxLineLength&&(t.maxLineLength=r,t.maxLine=n)})}var Ha=function(e,t,a){this.text=e,qn(this,t),this.height=a?a(this):1};Ha.prototype.lineNo=function(){return $t(this)},He(Ha);function Fr(e,t,a,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),ia(e),qn(e,a);var r=n?n(e):1;r!=e.height&&ta(e,r)}function Br(e){e.parent=null,ia(e)}var sa={},Tn={};function $n(e,t){if(!e||/^\s*$/.test(e))return null;var a=t.addModeClass?Tn:sa;return a[e]||(a[e]=e.replace(/\S+/g,"cm-$&"))}function Ba(e,t){var a=ue("span",null,null,z?"padding-right: .1px":null),n={pre:ue("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var r=0;r<=(t.rest?t.rest.length:0);r++){var i=r?t.rest[r-1]:t.line,l=void 0;n.pos=0,n.addToken=cr,Wt(e.display.measure)&&(l=Ht(i,e.doc.direction))&&(n.addToken=Qa(n.addToken,l)),n.map=[];var c=t!=e.display.externalMeasured&&$t(i);Ga(i,n,Ln(e,i,c)),i.styleClasses&&(i.styleClasses.bgClass&&(n.bgClass=w(i.styleClasses.bgClass,n.bgClass||"")),i.styleClasses.textClass&&(n.textClass=w(i.styleClasses.textClass,n.textClass||""))),n.map.length==0&&n.map.push(0,0,n.content.appendChild(kt(e.display.measure))),r==0?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(z){var h=n.content.lastChild;(/\bcm-tab\b/.test(h.className)||h.querySelector&&h.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return rt(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=w(n.pre.className,n.textClass||"")),n}function Ka(e){var t=s("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function cr(e,t,a,n,r,i,l){if(!t)return;var c=e.splitSpaces?Ta(t,e.trailingSpace):t,h=e.cm.state.specialChars,A=!1,se;if(!h.test(t))e.col+=t.length,se=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,se),fe&&oe<9&&(A=!0),e.pos+=t.length;else{se=document.createDocumentFragment();for(var pe=0;;){h.lastIndex=pe;var Ne=h.exec(t),we=Ne?Ne.index-pe:t.length-pe;if(we){var Qe=document.createTextNode(c.slice(pe,pe+we));fe&&oe<9?se.appendChild(s("span",[Qe])):se.appendChild(Qe),e.map.push(e.pos,e.pos+we,Qe),e.col+=we,e.pos+=we}if(!Ne)break;pe+=we+1;var et=void 0;if(Ne[0]==" "){var ft=e.cm.options.tabSize,bt=ft-e.col%ft;et=se.appendChild(s("span",Ce(bt),"cm-tab")),et.setAttribute("role","presentation"),et.setAttribute("cm-text"," "),e.col+=bt}else Ne[0]=="\r"||Ne[0]==` -`?(et=se.appendChild(s("span",Ne[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),et.setAttribute("cm-text",Ne[0]),e.col+=1):(et=e.cm.options.specialCharPlaceholder(Ne[0]),et.setAttribute("cm-text",Ne[0]),fe&&oe<9?se.appendChild(s("span",[et])):se.appendChild(et),e.col+=1);e.map.push(e.pos,e.pos+1,et),e.pos++}}if(e.trailingSpace=c.charCodeAt(t.length-1)==32,a||n||r||A||i||l){var Ot=a||"";n&&(Ot+=n),r&&(Ot+=r);var yt=s("span",[se],Ot,i);if(l)for(var jt in l)l.hasOwnProperty(jt)&&jt!="style"&&jt!="class"&&yt.setAttribute(jt,l[jt]);return e.content.appendChild(yt)}e.content.appendChild(se)}function Ta(e,t){if(e.length>1&&!/ /.test(e))return e;for(var a=t,n="",r=0;rA&&pe.from<=A);Ne++);if(pe.to>=se)return e(a,n,r,i,l,c,h);e(a,n.slice(0,pe.to-A),r,i,null,c,h),i=null,n=n.slice(pe.to-A),A=pe.to}}}function Or(e,t,a,n){var r=!n&&a.widgetNode;r&&e.map.push(e.pos,e.pos+t,r),!n&&e.cm.display.input.needsContentAttribute&&(r||(r=e.content.appendChild(document.createElement("span"))),r.setAttribute("cm-marker",a.id)),r&&(e.cm.display.input.setUneditable(r),e.content.appendChild(r)),e.pos+=t,e.trailingSpace=!1}function Ga(e,t,a){var n=e.markedSpans,r=e.text,i=0;if(!n){for(var l=1;lh||jn.collapsed&&Vt.to==h&&Vt.from==h)){if(Vt.to!=null&&Vt.to!=h&&we>Vt.to&&(we=Vt.to,et=""),jn.className&&(Qe+=" "+jn.className),jn.css&&(Ne=(Ne?Ne+";":"")+jn.css),jn.startStyle&&Vt.from==h&&(ft+=" "+jn.startStyle),jn.endStyle&&Vt.to==we&&(jt||(jt=[])).push(jn.endStyle,Vt.to),jn.title&&((Ot||(Ot={})).title=jn.title),jn.attributes)for(var Aa in jn.attributes)(Ot||(Ot={}))[Aa]=jn.attributes[Aa];jn.collapsed&&(!bt||ya(bt.marker,jn)<0)&&(bt=Vt)}else Vt.from>h&&we>Vt.from&&(we=Vt.from)}if(jt)for(var er=0;er=c)break;for(var _r=Math.min(c,we);;){if(se){var Cr=h+se.length;if(!bt){var Wa=Cr>_r?se.slice(0,_r-h):se;t.addToken(t,Wa,pe?pe+Qe:Qe,ft,h+Wa.length==we?et:"",Ne,Ot)}if(Cr>=_r){se=se.slice(_r-h),h=_r;break}h=Cr,ft=""}se=r.slice(i,i=a[A++]),pe=$n(a[A++],t.cm.options)}}}function Lr(e,t,a){this.line=t,this.rest=vr(t),this.size=this.rest?$t(v(this.rest))-a+1:1,this.node=this.text=null,this.hidden=Pa(e,t)}function ar(e,t,a){for(var n=[],r,i=t;i2&&i.push((h.bottom+A.top)/2-a.top)}}i.push(a.bottom-a.top)}}function E(e,t,a){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var n=0;na)return{map:e.measure.maps[r],cache:e.measure.caches[r],before:!0}}function G(e,t){t=Vn(t);var a=$t(t),n=e.display.externalMeasured=new Lr(e.doc,t,a);n.lineN=a;var r=n.built=Ba(e,n);return n.text=r.pre,d(e.display.lineMeasure,r.pre),n}function q(e,t,a,n){return Ae(e,me(e,t),a,n)}function ve(e,t){if(t>=e.display.viewFrom&&t=a.lineN&&tt)&&(i=h-c,r=i-1,t>=h&&(l="right")),r!=null){if(n=e[A+2],c==h&&a==(n.insertLeft?"left":"right")&&(l=a),a=="left"&&r==0)for(;A&&e[A-2]==e[A-3]&&e[A-1].insertLeft;)n=e[(A-=3)+2],l="left";if(a=="right"&&r==h-c)for(;A=0&&!((a=e[r]).left!=a.right);r--);return a}function gt(e,t,a,n){var r=Ve(t.map,a,n),i=r.node,l=r.start,c=r.end,h=r.collapse,A;if(i.nodeType==3){for(var se=0;se<4;se++){for(;l&&qe(t.line.text.charAt(r.coverStart+l));)--l;for(;r.coverStart+c0&&(h=n="right");var pe;e.options.lineWrapping&&(pe=i.getClientRects()).length>1?A=pe[n=="right"?pe.length-1:0]:A=i.getBoundingClientRect()}if(fe&&oe<9&&!l&&(!A||!A.left&&!A.right)){var Ne=i.parentNode.getClientRects()[0];Ne?A={left:Ne.left,right:Ne.left+Va(e.display),top:Ne.top,bottom:Ne.bottom}:A=Fe}for(var we=A.top-t.rect.top,Qe=A.bottom-t.rect.top,et=(we+Qe)/2,ft=t.view.measure.heights,bt=0;bt=n.text.length?(h=n.text.length,A="before"):h<=0&&(h=0,A="after"),!c)return l(A=="before"?h-1:h,A=="before");function se(Qe,et,ft){var bt=c[et],Ot=bt.level==1;return l(ft?Qe-1:Qe,Ot!=ft)}var pe=vt(c,h,A),Ne=xt,we=se(h,pe,A=="before");return Ne!=null&&(we.other=se(h,Ne,A!="before")),we}function Yt(e,t){var a=0;t=Ye(e.doc,t),e.options.lineWrapping||(a=Va(e.display)*t.ch);var n=tt(e.doc,t.line),r=nr(n)+fo(e.display);return{left:a,right:a,top:r,bottom:r+n.height}}function Jt(e,t,a,n,r){var i=Me(e,t,a);return i.xRel=r,n&&(i.outside=n),i}function Wn(e,t,a){var n=e.doc;if(a+=e.display.viewOffset,a<0)return Jt(n.first,0,null,-1,-1);var r=Tt(n,a),i=n.first+n.size-1;if(r>i)return Jt(n.first+n.size-1,tt(n,i).text.length,null,1,1);t<0&&(t=0);for(var l=tt(n,r);;){var c=_a(e,l,r,t,a),h=dn(l,c.ch+(c.xRel>0||c.outside>0?1:0));if(!h)return c;var A=h.find(1);if(A.line==r)return A;l=tt(n,r=A.line)}}function Zn(e,t,a,n){n-=Sn(t);var r=t.text.length,i=$e(function(l){return Ae(e,a,l-1).bottom<=n},r,0);return r=$e(function(l){return Ae(e,a,l).top>n},i,r),{begin:i,end:r}}function It(e,t,a,n){a||(a=me(e,t));var r=Yn(e,t,Ae(e,a,n),"line").top;return Zn(e,t,a,r)}function ea(e,t,a,n){return e.bottom<=a?!1:e.top>a?!0:(n?e.left:e.right)>t}function _a(e,t,a,n,r){r-=nr(t);var i=me(e,t),l=Sn(t),c=0,h=t.text.length,A=!0,se=Ht(t,e.doc.direction);if(se){var pe=(e.options.lineWrapping?va:ra)(e,t,a,i,se,n,r);A=pe.level!=1,c=A?pe.from:pe.to-1,h=A?pe.to:pe.from-1}var Ne=null,we=null,Qe=$e(function(on){var Vt=Ae(e,i,on);return Vt.top+=l,Vt.bottom+=l,ea(Vt,n,r,!1)?(Vt.top<=r&&Vt.left<=n&&(Ne=on,we=Vt),!0):!1},c,h),et,ft,bt=!1;if(we){var Ot=n-we.left=jt.bottom?1:0}return Qe=Je(t.text,Qe,1),Jt(a,Qe,ft,bt,n-et)}function ra(e,t,a,n,r,i,l){var c=$e(function(pe){var Ne=r[pe],we=Ne.level!=1;return ea(Bn(e,Me(a,we?Ne.to:Ne.from,we?"before":"after"),"line",t,n),i,l,!0)},0,r.length-1),h=r[c];if(c>0){var A=h.level!=1,se=Bn(e,Me(a,A?h.from:h.to,A?"after":"before"),"line",t,n);ea(se,i,l,!0)&&se.top>l&&(h=r[c-1])}return h}function va(e,t,a,n,r,i,l){var c=Zn(e,t,n,l),h=c.begin,A=c.end;/\s/.test(t.text.charAt(A-1))&&A--;for(var se=null,pe=null,Ne=0;Ne=A||we.to<=h)continue;var Qe=we.level!=1,et=Ae(e,n,Qe?Math.min(A,we.to)-1:Math.max(h,we.from)).right,ft=etft)&&(se=we,pe=ft)}return se||(se=r[r.length-1]),se.fromA&&(se={from:se.from,to:A,level:se.level}),se}var pa;function ja(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(pa==null){pa=s("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)pa.appendChild(document.createTextNode("x")),pa.appendChild(s("br"));pa.appendChild(document.createTextNode("x"))}d(e.measure,pa);var a=pa.offsetHeight/50;return a>3&&(e.cachedTextHeight=a),T(e.measure),a||1}function Va(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=s("span","xxxxxxxxxx"),a=s("pre",[t],"CodeMirror-line-like");d(e.measure,a);var n=t.getBoundingClientRect(),r=(n.right-n.left)/10;return r>2&&(e.cachedCharWidth=r),r||10}function Ma(e){for(var t=e.display,a={},n={},r=t.gutters.clientLeft,i=t.gutters.firstChild,l=0;i;i=i.nextSibling,++l){var c=e.display.gutterSpecs[l].className;a[c]=i.offsetLeft+i.clientLeft+r,n[c]=i.clientWidth}return{fixedPos:sr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:a,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function sr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Dr(e){var t=ja(e.display),a=e.options.lineWrapping,n=a&&Math.max(5,e.display.scroller.clientWidth/Va(e.display)-3);return function(r){if(Pa(e.doc,r))return 0;var i=0;if(r.widgets)for(var l=0;l0&&(A=tt(e.doc,h.line).text).length==h.ch){var se=B(A,A.length,e.options.tabSize)-A.length;h=Me(h.line,Math.max(0,Math.round((i-ge(e.display).left)/Va(e.display))-se))}return h}function Ca(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var a=e.display.view,n=0;nt)&&(r.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=r.viewTo)We&&La(e.doc,t)r.viewFrom?Oa(e):(r.viewFrom+=n,r.viewTo+=n);else if(t<=r.viewFrom&&a>=r.viewTo)Oa(e);else if(t<=r.viewFrom){var i=Pr(e,a,a+n,1);i?(r.view=r.view.slice(i.index),r.viewFrom=i.lineN,r.viewTo+=n):Oa(e)}else if(a>=r.viewTo){var l=Pr(e,t,t,-1);l?(r.view=r.view.slice(0,l.index),r.viewTo=l.lineN):Oa(e)}else{var c=Pr(e,t,t,-1),h=Pr(e,a,a+n,1);c&&h?(r.view=r.view.slice(0,c.index).concat(ar(e,c.lineN,h.lineN)).concat(r.view.slice(h.index)),r.viewTo+=n):Oa(e)}var A=r.externalMeasured;A&&(a=r.lineN&&t=n.viewTo)return;var i=n.view[Ca(e,t)];if(i.node==null)return;var l=i.changes||(i.changes=[]);ye(l,a)==-1&&l.push(a)}function Oa(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Pr(e,t,a,n){var r=Ca(e,t),i,l=e.display.view;if(!We||a==e.doc.first+e.doc.size)return{index:r,lineN:a};for(var c=e.display.viewFrom,h=0;h0){if(r==l.length-1)return null;i=c+l[r].size-t,r++}else i=c-t;t+=i,a+=i}for(;La(e.doc,a)!=a;){if(r==(n<0?0:l.length-1))return null;a+=n*l[r-(n<0?1:0)].size,r+=n}return{index:r,lineN:a}}function Vr(e,t,a){var n=e.display,r=n.view;r.length==0||t>=n.viewTo||a<=n.viewFrom?(n.view=ar(e,t,a),n.viewFrom=t):(n.viewFrom>t?n.view=ar(e,t,n.viewFrom).concat(n.view):n.viewFroma&&(n.view=n.view.slice(0,Ca(e,a)))),n.viewTo=a}function Xr(e){for(var t=e.display.view,a=0,n=0;n=e.display.viewTo||c.to().line1}var gn={},Kt={};function hn(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),gn[e]=t}function pn(e,t){Kt[e]=t}function Rt(e){if(typeof e=="string"&&Kt.hasOwnProperty(e))e=Kt[e];else if(e&&typeof e.name=="string"&&Kt.hasOwnProperty(e.name)){var t=Kt[e.name];typeof t=="string"&&(t={name:t}),e=R(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Rt("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Rt("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function pt(e,t){t=Rt(t);var a=gn[t.name];if(!a)return pt(e,"text/plain");var n=a(e,t);if(ot.hasOwnProperty(t.name)){var r=ot[t.name];for(var i in r){if(!r.hasOwnProperty(i))continue;n.hasOwnProperty(i)&&(n["_"+i]=n[i]),n[i]=r[i]}}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var l in t.modeProps)n[l]=t.modeProps[l];return n}var ot={};function Mt(e,t){var a=ot.hasOwnProperty(e)?ot[e]:ot[e]={};ee(t,a)}function Ft(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var a={};for(var n in t){var r=t[n];r instanceof Array&&(r=r.concat([])),a[n]=r}return a}function xn(e,t){for(var a;e.innerMode&&!(a=e.innerMode(t),!a||a.mode==e);)t=a.state,e=a.mode;return a||{mode:e,state:t}}function wn(e,t,a){return e.startState?e.startState(t,a):!0}var zt=function(e,t,a){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=a};zt.prototype.eol=function(){return this.pos>=this.string.length},zt.prototype.sol=function(){return this.pos==this.lineStart},zt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},zt.prototype.next=function(){if(this.post},zt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},zt.prototype.skipToEnd=function(){this.pos=this.string.length},zt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},zt.prototype.backUp=function(e){this.pos-=e},zt.prototype.column=function(){return this.lastColumnPos0?null:(i&&t!==!1&&(this.pos+=i[0].length),i)}},zt.prototype.current=function(){return this.string.slice(this.start,this.pos)},zt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},zt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},zt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function tt(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var a=e;!a.lines;)for(var n=0;;++n){var r=a.children[n],i=r.chunkSize();if(t=e.first&&ta?Me(a,tt(e,a).text.length):ht(t,tt(e,t.line).text.length)}function ht(e,t){var a=e.ch;return a==null||a>t?Me(e.line,t):a<0?Me(e.line,0):e}function Pt(e,t){for(var a=[],n=0;nthis.maxLookAhead&&(this.maxLookAhead=e),t},_t.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},_t.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},_t.fromSaved=function(e,t,a){return t instanceof Xt?new _t(e,Ft(e.mode,t.state),a,t.lookAhead):new _t(e,Ft(e.mode,t),a)},_t.prototype.save=function(e){var t=e!==!1?Ft(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Xt(t,this.maxLookAhead):t};function Zt(e,t,a,n){var r=[e.state.modeGen],i={};ha(e,t.text,e.doc.mode,a,function(A,se){return r.push(A,se)},i,n);for(var l=a.state,c=function(A){a.baseTokens=r;var se=e.state.overlays[A],pe=1,Ne=0;a.state=!0,ha(e,t.text,se.mode,a,function(we,Qe){for(var et=pe;Newe&&r.splice(pe,1,we,r[pe+1],ft),pe+=2,Ne=Math.min(we,ft)}if(!Qe)return;if(se.opaque)r.splice(et,pe-et,we,"overlay "+Qe),pe=et+2;else for(;ete.options.maxHighlightLength&&Ft(e.doc.mode,n.state),i=Zt(e,t,n);r&&(n.state=r),t.stateAfter=n.save(!r),t.styles=i.styles,i.classes?t.styleClasses=i.classes:t.styleClasses&&(t.styleClasses=null),a===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function qt(e,t,a){var n=e.doc,r=e.display;if(!n.mode.startState)return new _t(n,!0,t);var i=In(e,t,a),l=i>n.first&&tt(n,i-1).stateAfter,c=l?_t.fromSaved(n,l,i):new _t(n,wn(n.mode),i);return n.iter(i,t,function(h){Mn(e,h.text,c);var A=c.line;h.stateAfter=A==t-1||A%5==0||A>=r.viewFrom&&At.start)return i}throw new Error("Mode "+e.name+" failed to advance stream.")}var wt=function(e,t,a){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=a};function Hn(e,t,a,n){var r=e.doc,i=r.mode,l;t=Ye(r,t);var c=tt(r,t.line),h=qt(e,t.line,a),A=new zt(c.text,e.options.tabSize,h),se;for(n&&(se=[]);(n||A.pose.options.maxHighlightLength?(c=!1,l&&Mn(e,t,n,se.pos),se.pos=t.length,pe=null):pe=Jn(ct(a,se,n.state,Ne),i),Ne){var we=Ne[0].name;we&&(pe="m-"+(pe?we+" "+pe:we))}if(!c||A!=pe){for(;hl;--c){if(c<=i.first)return i.first;var h=tt(i,c-1),A=h.stateAfter;if(A&&(!a||c+(A instanceof Xt?A.lookAhead:0)<=i.modeFrontier))return c;var se=B(h.text,null,e.options.tabSize);(r==null||n>se)&&(r=c-1,n=se)}return r}function oa(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),e.highlightFrontiera;n--){var r=tt(e,n).stateAfter;if(r&&(!(r instanceof Xt)||n+r.lookAhead=t:i.to>t);(n||(n=[])).push(new _n(l,i.from,h?null:i.to))}}return n}function Kn(e,t,a){var n;if(e)for(var r=0;r=t:i.to>t);if(c||i.from==t&&l.type=="bookmark"&&(!a||i.marker.insertLeft)){var h=i.from==null||(l.inclusiveLeft?i.from<=t:i.from0&&c)for(var jt=0;jt0)continue;var se=[h,1],pe=Oe(A.from,c.from),Ne=Oe(A.to,c.to);(pe<0||!l.inclusiveLeft&&!pe)&&se.push({from:A.from,to:c.from}),(Ne>0||!l.inclusiveRight&&!Ne)&&se.push({from:c.to,to:A.to}),r.splice.apply(r,se),h+=se.length-3}return r}function ia(e){var t=e.markedSpans;if(!t)return;for(var a=0;at)&&(!n||ya(n,i.marker)<0)&&(n=i.marker)}return n}function ca(e,t,a,n,r){var i=tt(e,t),l=We&&i.markedSpans;if(l)for(var c=0;c=0&&pe<=0||se<=0&&pe>=0)continue;if(se<=0&&(h.marker.inclusiveRight&&r.inclusiveLeft?Oe(A.to,a)>=0:Oe(A.to,a)>0)||se>=0&&(h.marker.inclusiveRight&&r.inclusiveLeft?Oe(A.from,n)<=0:Oe(A.from,n)<0))return!0}}function Vn(e){for(var t;t=mn(e);)e=t.find(-1,!0).line;return e}function Xn(e){for(var t;t=Bt(e);)e=t.find(1,!0).line;return e}function vr(e){for(var t,a;t=Bt(e);)e=t.find(1,!0).line,(a||(a=[])).push(e);return a}function La(e,t){var a=tt(e,t),n=Vn(a);return a==n?t:$t(n)}function Fa(e,t){if(t>e.lastLine())return t;var a=tt(e,t),n;if(!Pa(e,a))return t;for(;n=Bt(a);)a=n.find(1,!0).line;return $t(a)+1}function Pa(e,t){var a=We&&t.markedSpans;if(a)for(var n=void 0,r=0;rt.maxLineLength&&(t.maxLineLength=r,t.maxLine=n)})}var Ha=function(e,t,a){this.text=e,qn(this,t),this.height=a?a(this):1};Ha.prototype.lineNo=function(){return $t(this)},He(Ha);function Fr(e,t,a,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),ia(e),qn(e,a);var r=n?n(e):1;r!=e.height&&ta(e,r)}function Br(e){e.parent=null,ia(e)}var sa={},Tn={};function $n(e,t){if(!e||/^\s*$/.test(e))return null;var a=t.addModeClass?Tn:sa;return a[e]||(a[e]=e.replace(/\S+/g,"cm-$&"))}function Ba(e,t){var a=ue("span",null,null,z?"padding-right: .1px":null),n={pre:ue("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var r=0;r<=(t.rest?t.rest.length:0);r++){var i=r?t.rest[r-1]:t.line,l=void 0;n.pos=0,n.addToken=cr,Wt(e.display.measure)&&(l=Ht(i,e.doc.direction))&&(n.addToken=Qa(n.addToken,l)),n.map=[];var c=t!=e.display.externalMeasured&&$t(i);Ga(i,n,Ln(e,i,c)),i.styleClasses&&(i.styleClasses.bgClass&&(n.bgClass=w(i.styleClasses.bgClass,n.bgClass||"")),i.styleClasses.textClass&&(n.textClass=w(i.styleClasses.textClass,n.textClass||""))),n.map.length==0&&n.map.push(0,0,n.content.appendChild(kt(e.display.measure))),r==0?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(z){var h=n.content.lastChild;(/\bcm-tab\b/.test(h.className)||h.querySelector&&h.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return rt(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=w(n.pre.className,n.textClass||"")),n}function Ka(e){var t=s("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function cr(e,t,a,n,r,i,l){if(!t)return;var c=e.splitSpaces?Ta(t,e.trailingSpace):t,h=e.cm.state.specialChars,A=!1,se;if(!h.test(t))e.col+=t.length,se=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,se),fe&&oe<9&&(A=!0),e.pos+=t.length;else{se=document.createDocumentFragment();for(var pe=0;;){h.lastIndex=pe;var Ne=h.exec(t),we=Ne?Ne.index-pe:t.length-pe;if(we){var Qe=document.createTextNode(c.slice(pe,pe+we));fe&&oe<9?se.appendChild(s("span",[Qe])):se.appendChild(Qe),e.map.push(e.pos,e.pos+we,Qe),e.col+=we,e.pos+=we}if(!Ne)break;pe+=we+1;var et=void 0;if(Ne[0]==" "){var ft=e.cm.options.tabSize,Et=ft-e.col%ft;et=se.appendChild(s("span",Ce(Et),"cm-tab")),et.setAttribute("role","presentation"),et.setAttribute("cm-text"," "),e.col+=Et}else Ne[0]=="\r"||Ne[0]==` +`?(et=se.appendChild(s("span",Ne[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),et.setAttribute("cm-text",Ne[0]),e.col+=1):(et=e.cm.options.specialCharPlaceholder(Ne[0]),et.setAttribute("cm-text",Ne[0]),fe&&oe<9?se.appendChild(s("span",[et])):se.appendChild(et),e.col+=1);e.map.push(e.pos,e.pos+1,et),e.pos++}}if(e.trailingSpace=c.charCodeAt(t.length-1)==32,a||n||r||A||i||l){var Ot=a||"";n&&(Ot+=n),r&&(Ot+=r);var yt=s("span",[se],Ot,i);if(l)for(var jt in l)l.hasOwnProperty(jt)&&jt!="style"&&jt!="class"&&yt.setAttribute(jt,l[jt]);return e.content.appendChild(yt)}e.content.appendChild(se)}function Ta(e,t){if(e.length>1&&!/ /.test(e))return e;for(var a=t,n="",r=0;rA&&pe.from<=A);Ne++);if(pe.to>=se)return e(a,n,r,i,l,c,h);e(a,n.slice(0,pe.to-A),r,i,null,c,h),i=null,n=n.slice(pe.to-A),A=pe.to}}}function Or(e,t,a,n){var r=!n&&a.widgetNode;r&&e.map.push(e.pos,e.pos+t,r),!n&&e.cm.display.input.needsContentAttribute&&(r||(r=e.content.appendChild(document.createElement("span"))),r.setAttribute("cm-marker",a.id)),r&&(e.cm.display.input.setUneditable(r),e.content.appendChild(r)),e.pos+=t,e.trailingSpace=!1}function Ga(e,t,a){var n=e.markedSpans,r=e.text,i=0;if(!n){for(var l=1;lh||jn.collapsed&&Vt.to==h&&Vt.from==h)){if(Vt.to!=null&&Vt.to!=h&&we>Vt.to&&(we=Vt.to,et=""),jn.className&&(Qe+=" "+jn.className),jn.css&&(Ne=(Ne?Ne+";":"")+jn.css),jn.startStyle&&Vt.from==h&&(ft+=" "+jn.startStyle),jn.endStyle&&Vt.to==we&&(jt||(jt=[])).push(jn.endStyle,Vt.to),jn.title&&((Ot||(Ot={})).title=jn.title),jn.attributes)for(var Aa in jn.attributes)(Ot||(Ot={}))[Aa]=jn.attributes[Aa];jn.collapsed&&(!Et||ya(Et.marker,jn)<0)&&(Et=Vt)}else Vt.from>h&&we>Vt.from&&(we=Vt.from)}if(jt)for(var er=0;er=c)break;for(var _r=Math.min(c,we);;){if(se){var Cr=h+se.length;if(!Et){var Wa=Cr>_r?se.slice(0,_r-h):se;t.addToken(t,Wa,pe?pe+Qe:Qe,ft,h+Wa.length==we?et:"",Ne,Ot)}if(Cr>=_r){se=se.slice(_r-h),h=_r;break}h=Cr,ft=""}se=r.slice(i,i=a[A++]),pe=$n(a[A++],t.cm.options)}}}function Lr(e,t,a){this.line=t,this.rest=vr(t),this.size=this.rest?$t(v(this.rest))-a+1:1,this.node=this.text=null,this.hidden=Pa(e,t)}function ar(e,t,a){for(var n=[],r,i=t;i2&&i.push((h.bottom+A.top)/2-a.top)}}i.push(a.bottom-a.top)}}function b(e,t,a){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var n=0;na)return{map:e.measure.maps[r],cache:e.measure.caches[r],before:!0}}function G(e,t){t=Vn(t);var a=$t(t),n=e.display.externalMeasured=new Lr(e.doc,t,a);n.lineN=a;var r=n.built=Ba(e,n);return n.text=r.pre,d(e.display.lineMeasure,r.pre),n}function q(e,t,a,n){return Ae(e,me(e,t),a,n)}function ve(e,t){if(t>=e.display.viewFrom&&t=a.lineN&&tt)&&(i=h-c,r=i-1,t>=h&&(l="right")),r!=null){if(n=e[A+2],c==h&&a==(n.insertLeft?"left":"right")&&(l=a),a=="left"&&r==0)for(;A&&e[A-2]==e[A-3]&&e[A-1].insertLeft;)n=e[(A-=3)+2],l="left";if(a=="right"&&r==h-c)for(;A=0&&!((a=e[r]).left!=a.right);r--);return a}function gt(e,t,a,n){var r=Ve(t.map,a,n),i=r.node,l=r.start,c=r.end,h=r.collapse,A;if(i.nodeType==3){for(var se=0;se<4;se++){for(;l&&qe(t.line.text.charAt(r.coverStart+l));)--l;for(;r.coverStart+c0&&(h=n="right");var pe;e.options.lineWrapping&&(pe=i.getClientRects()).length>1?A=pe[n=="right"?pe.length-1:0]:A=i.getBoundingClientRect()}if(fe&&oe<9&&!l&&(!A||!A.left&&!A.right)){var Ne=i.parentNode.getClientRects()[0];Ne?A={left:Ne.left,right:Ne.left+Va(e.display),top:Ne.top,bottom:Ne.bottom}:A=Fe}for(var we=A.top-t.rect.top,Qe=A.bottom-t.rect.top,et=(we+Qe)/2,ft=t.view.measure.heights,Et=0;Et=n.text.length?(h=n.text.length,A="before"):h<=0&&(h=0,A="after"),!c)return l(A=="before"?h-1:h,A=="before");function se(Qe,et,ft){var Et=c[et],Ot=Et.level==1;return l(ft?Qe-1:Qe,Ot!=ft)}var pe=vt(c,h,A),Ne=xt,we=se(h,pe,A=="before");return Ne!=null&&(we.other=se(h,Ne,A!="before")),we}function Yt(e,t){var a=0;t=Ye(e.doc,t),e.options.lineWrapping||(a=Va(e.display)*t.ch);var n=tt(e.doc,t.line),r=nr(n)+fo(e.display);return{left:a,right:a,top:r,bottom:r+n.height}}function Jt(e,t,a,n,r){var i=Me(e,t,a);return i.xRel=r,n&&(i.outside=n),i}function Wn(e,t,a){var n=e.doc;if(a+=e.display.viewOffset,a<0)return Jt(n.first,0,null,-1,-1);var r=Tt(n,a),i=n.first+n.size-1;if(r>i)return Jt(n.first+n.size-1,tt(n,i).text.length,null,1,1);t<0&&(t=0);for(var l=tt(n,r);;){var c=_a(e,l,r,t,a),h=dn(l,c.ch+(c.xRel>0||c.outside>0?1:0));if(!h)return c;var A=h.find(1);if(A.line==r)return A;l=tt(n,r=A.line)}}function Zn(e,t,a,n){n-=Sn(t);var r=t.text.length,i=$e(function(l){return Ae(e,a,l-1).bottom<=n},r,0);return r=$e(function(l){return Ae(e,a,l).top>n},i,r),{begin:i,end:r}}function It(e,t,a,n){a||(a=me(e,t));var r=Yn(e,t,Ae(e,a,n),"line").top;return Zn(e,t,a,r)}function ea(e,t,a,n){return e.bottom<=a?!1:e.top>a?!0:(n?e.left:e.right)>t}function _a(e,t,a,n,r){r-=nr(t);var i=me(e,t),l=Sn(t),c=0,h=t.text.length,A=!0,se=Ht(t,e.doc.direction);if(se){var pe=(e.options.lineWrapping?va:ra)(e,t,a,i,se,n,r);A=pe.level!=1,c=A?pe.from:pe.to-1,h=A?pe.to:pe.from-1}var Ne=null,we=null,Qe=$e(function(on){var Vt=Ae(e,i,on);return Vt.top+=l,Vt.bottom+=l,ea(Vt,n,r,!1)?(Vt.top<=r&&Vt.left<=n&&(Ne=on,we=Vt),!0):!1},c,h),et,ft,Et=!1;if(we){var Ot=n-we.left=jt.bottom?1:0}return Qe=Je(t.text,Qe,1),Jt(a,Qe,ft,Et,n-et)}function ra(e,t,a,n,r,i,l){var c=$e(function(pe){var Ne=r[pe],we=Ne.level!=1;return ea(Bn(e,Me(a,we?Ne.to:Ne.from,we?"before":"after"),"line",t,n),i,l,!0)},0,r.length-1),h=r[c];if(c>0){var A=h.level!=1,se=Bn(e,Me(a,A?h.from:h.to,A?"after":"before"),"line",t,n);ea(se,i,l,!0)&&se.top>l&&(h=r[c-1])}return h}function va(e,t,a,n,r,i,l){var c=Zn(e,t,n,l),h=c.begin,A=c.end;/\s/.test(t.text.charAt(A-1))&&A--;for(var se=null,pe=null,Ne=0;Ne=A||we.to<=h)continue;var Qe=we.level!=1,et=Ae(e,n,Qe?Math.min(A,we.to)-1:Math.max(h,we.from)).right,ft=etft)&&(se=we,pe=ft)}return se||(se=r[r.length-1]),se.fromA&&(se={from:se.from,to:A,level:se.level}),se}var pa;function ja(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(pa==null){pa=s("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)pa.appendChild(document.createTextNode("x")),pa.appendChild(s("br"));pa.appendChild(document.createTextNode("x"))}d(e.measure,pa);var a=pa.offsetHeight/50;return a>3&&(e.cachedTextHeight=a),T(e.measure),a||1}function Va(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=s("span","xxxxxxxxxx"),a=s("pre",[t],"CodeMirror-line-like");d(e.measure,a);var n=t.getBoundingClientRect(),r=(n.right-n.left)/10;return r>2&&(e.cachedCharWidth=r),r||10}function Ma(e){for(var t=e.display,a={},n={},r=t.gutters.clientLeft,i=t.gutters.firstChild,l=0;i;i=i.nextSibling,++l){var c=e.display.gutterSpecs[l].className;a[c]=i.offsetLeft+i.clientLeft+r,n[c]=i.clientWidth}return{fixedPos:sr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:a,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function sr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Dr(e){var t=ja(e.display),a=e.options.lineWrapping,n=a&&Math.max(5,e.display.scroller.clientWidth/Va(e.display)-3);return function(r){if(Pa(e.doc,r))return 0;var i=0;if(r.widgets)for(var l=0;l0&&(A=tt(e.doc,h.line).text).length==h.ch){var se=B(A,A.length,e.options.tabSize)-A.length;h=Me(h.line,Math.max(0,Math.round((i-ge(e.display).left)/Va(e.display))-se))}return h}function Ca(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var a=e.display.view,n=0;nt)&&(r.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=r.viewTo)We&&La(e.doc,t)r.viewFrom?Oa(e):(r.viewFrom+=n,r.viewTo+=n);else if(t<=r.viewFrom&&a>=r.viewTo)Oa(e);else if(t<=r.viewFrom){var i=Pr(e,a,a+n,1);i?(r.view=r.view.slice(i.index),r.viewFrom=i.lineN,r.viewTo+=n):Oa(e)}else if(a>=r.viewTo){var l=Pr(e,t,t,-1);l?(r.view=r.view.slice(0,l.index),r.viewTo=l.lineN):Oa(e)}else{var c=Pr(e,t,t,-1),h=Pr(e,a,a+n,1);c&&h?(r.view=r.view.slice(0,c.index).concat(ar(e,c.lineN,h.lineN)).concat(r.view.slice(h.index)),r.viewTo+=n):Oa(e)}var A=r.externalMeasured;A&&(a=r.lineN&&t=n.viewTo)return;var i=n.view[Ca(e,t)];if(i.node==null)return;var l=i.changes||(i.changes=[]);ye(l,a)==-1&&l.push(a)}function Oa(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Pr(e,t,a,n){var r=Ca(e,t),i,l=e.display.view;if(!We||a==e.doc.first+e.doc.size)return{index:r,lineN:a};for(var c=e.display.viewFrom,h=0;h0){if(r==l.length-1)return null;i=c+l[r].size-t,r++}else i=c-t;t+=i,a+=i}for(;La(e.doc,a)!=a;){if(r==(n<0?0:l.length-1))return null;a+=n*l[r-(n<0?1:0)].size,r+=n}return{index:r,lineN:a}}function Vr(e,t,a){var n=e.display,r=n.view;r.length==0||t>=n.viewTo||a<=n.viewFrom?(n.view=ar(e,t,a),n.viewFrom=t):(n.viewFrom>t?n.view=ar(e,t,n.viewFrom).concat(n.view):n.viewFroma&&(n.view=n.view.slice(0,Ca(e,a)))),n.viewTo=a}function Xr(e){for(var t=e.display.view,a=0,n=0;n=e.display.viewTo||c.to().line0?t.blinker=setInterval(function(){e.hasFocus()||ho(e),t.cursorDiv.style.visibility=(a=!a)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}function Oi(e){e.state.focused||(e.display.input.focus(),Zr(e))}function ti(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,ho(e))},100)}function Zr(e,t){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(rt(e,"focus",e,t),e.state.focused=!0,H(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),z&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Ya(e)}function ho(e,t){if(e.state.delayingBlurEvent)return;e.state.focused&&(rt(e,"blur",e,t),e.state.focused=!1,ae(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function jo(e){for(var t=e.display,a=t.lineDiv.offsetTop,n=0;n.005||se<-.005)&&(ta(r.line,l),ni(r.line),r.rest))for(var pe=0;pee.display.sizerWidth){var Ne=Math.ceil(c/Va(e.display));Ne>e.display.maxLineLength&&(e.display.maxLineLength=Ne,e.display.maxLine=r.line,e.display.maxLineChanged=!0)}}}function ni(e){if(e.widgets)for(var t=0;t=l&&(i=Tt(t,nr(tt(t,h))-e.wrapper.clientHeight),l=h)}return{from:i,to:Math.max(l,i+1)}}function Ji(e,t){if(Ue(e,"scrollCursorIntoView"))return;var a=e.display,n=a.sizer.getBoundingClientRect(),r=null;if(t.top+n.top<0?r=!0:t.bottom+n.top>(window.innerHeight||document.documentElement.clientHeight)&&(r=!1),r!=null&&!g){var i=s("div","\u200B",null,`position: absolute; + height: `+(Vt-jt)+"px"))}function pe(yt,jt,on){var Vt=tt(r,yt),jn=Vt.text.length,Aa,er;function wa(Wa,Ar){return xa(e,Me(yt,Wa),"div",Vt,Ar)}function _r(Wa,Ar,or){var $a=It(e,Vt,null,Wa),za=Ar=="ltr"==(or=="after")?"left":"right",Na=or=="after"?$a.begin:$a.end-(/\s/.test(Vt.text.charAt($a.end-1))?2:1);return wa(Na,za)[za]}var Cr=Ht(Vt,r.direction);return it(Cr,jt||0,on==null?jn:on,function(Wa,Ar,or,$a){var za=or=="ltr",Na=wa(Wa,za?"left":"right"),xr=wa(Ar-1,za?"right":"left"),Zo=jt==null&&Wa==0,Ao=on==null&&Ar==jn,ur=$a==0,to=!Cr||$a==Cr.length-1;if(xr.top-Na.top<=3){var tr=(A?Zo:Ao)&&ur,ps=(A?Ao:Zo)&&to,lo=tr?c:(za?Na:xr).left,Do=ps?h:(za?xr:Na).right;se(lo,Na.top,Do-lo,Na.bottom)}else{var Po,mr,qo,ms;za?(Po=A&&Zo&&ur?c:Na.left,mr=A?h:_r(Wa,or,"before"),qo=A?c:_r(Ar,or,"after"),ms=A&&Ao&&to?h:xr.right):(Po=A?_r(Wa,or,"before"):c,mr=!A&&Zo&&ur?h:Na.right,qo=!A&&Ao&&to?c:xr.left,ms=A?_r(Ar,or,"after"):h),se(Po,Na.top,mr-Po,Na.bottom),Na.bottom0?t.blinker=setInterval(function(){e.hasFocus()||ho(e),t.cursorDiv.style.visibility=(a=!a)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}function Oi(e){e.state.focused||(e.display.input.focus(),Zr(e))}function ti(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,ho(e))},100)}function Zr(e,t){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(rt(e,"focus",e,t),e.state.focused=!0,H(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),z&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Ya(e)}function ho(e,t){if(e.state.delayingBlurEvent)return;e.state.focused&&(rt(e,"blur",e,t),e.state.focused=!1,ae(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function jo(e){for(var t=e.display,a=t.lineDiv.offsetTop,n=0;n.005||se<-.005)&&(ta(r.line,l),ni(r.line),r.rest))for(var pe=0;pee.display.sizerWidth){var Ne=Math.ceil(c/Va(e.display));Ne>e.display.maxLineLength&&(e.display.maxLineLength=Ne,e.display.maxLine=r.line,e.display.maxLineChanged=!0)}}}function ni(e){if(e.widgets)for(var t=0;t=l&&(i=Tt(t,nr(tt(t,h))-e.wrapper.clientHeight),l=h)}return{from:i,to:Math.max(l,i+1)}}function Ji(e,t){if(Ue(e,"scrollCursorIntoView"))return;var a=e.display,n=a.sizer.getBoundingClientRect(),r=null;if(t.top+n.top<0?r=!0:t.bottom+n.top>(window.innerHeight||document.documentElement.clientHeight)&&(r=!1),r!=null&&!g){var i=s("div","\u200B",null,`position: absolute; top: `+(t.top-a.viewOffset-fo(e.display))+`px; height: `+(t.bottom-t.top+he(e)+a.barHeight)+`px; - left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(i),i.scrollIntoView(r),e.display.lineSpace.removeChild(i)}}function Vi(e,t,a,n){n==null&&(n=0);var r;!e.options.lineWrapping&&t==a&&(t=t.ch?Me(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t,a=t.sticky=="before"?Me(t.line,t.ch+1,"before"):t);for(var i=0;i<5;i++){var l=!1,c=Bn(e,t),h=!a||a==t?c:Bn(e,a);r={left:Math.min(c.left,h.left),top:Math.min(c.top,h.top)-n,right:Math.max(c.left,h.left),bottom:Math.max(c.bottom,h.bottom)+n};var A=ai(e,r),se=e.doc.scrollTop,pe=e.doc.scrollLeft;if(A.scrollTop!=null&&(vo(e,A.scrollTop),Math.abs(e.doc.scrollTop-se)>1&&(l=!0)),A.scrollLeft!=null&&(wr(e,A.scrollLeft),Math.abs(e.doc.scrollLeft-pe)>1&&(l=!0)),!l)break}return r}function Si(e,t){var a=ai(e,t);a.scrollTop!=null&&vo(e,a.scrollTop),a.scrollLeft!=null&&wr(e,a.scrollLeft)}function ai(e,t){var a=e.display,n=ja(e.display);t.top<0&&(t.top=0);var r=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:a.scroller.scrollTop,i=f(e),l={};t.bottom-t.top>i&&(t.bottom=t.top+i);var c=e.doc.height+V(a),h=t.topc-n;if(t.topr+i){var se=Math.min(t.top,(A?c:t.bottom)-i);se!=r&&(l.scrollTop=se)}var pe=e.options.fixedGutter?0:a.gutters.offsetWidth,Ne=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:a.scroller.scrollLeft-pe,we=I(e)-a.gutters.offsetWidth,Qe=t.right-t.left>we;return Qe&&(t.right=t.left+we),t.left<10?l.scrollLeft=0:t.leftwe+Ne-3&&(l.scrollLeft=t.right+(Qe?0:10)-we),l}function ri(e,t){if(t==null)return;Lo(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t}function po(e){Lo(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function mo(e,t,a){(t!=null||a!=null)&&Lo(e),t!=null&&(e.curOp.scrollLeft=t),a!=null&&(e.curOp.scrollTop=a)}function Xi(e,t){Lo(e),e.curOp.scrollToPos=t}function Lo(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var a=Yt(e,t.from),n=Yt(e,t.to);_o(e,a,n,t.margin)}}function _o(e,t,a,n){var r=ai(e,{left:Math.min(t.left,a.left),top:Math.min(t.top,a.top)-n,right:Math.max(t.right,a.right),bottom:Math.max(t.bottom,a.bottom)+n});mo(e,r.scrollLeft,r.scrollTop)}function vo(e,t){if(Math.abs(e.doc.scrollTop-t)<2)return;Re||Mo(e,{top:t}),go(e,t,!0),Re&&Mo(e),So(e,100)}function go(e,t,a){if(t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),e.display.scroller.scrollTop==t&&!a)return;e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t)}function wr(e,t,a,n){if(t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(a?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n)return;e.doc.scrollLeft=t,Qn(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t)}function no(e){var t=e.display,a=t.gutters.offsetWidth,n=Math.round(e.doc.height+V(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?a:0,docHeight:n,scrollHeight:n+he(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:a}}var qr=function(e,t,a){this.cm=a;var n=this.vert=s("div",[s("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),r=this.horiz=s("div",[s("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=r.tabIndex=-1,e(n),e(r),Le(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),Le(r,"scroll",function(){r.clientWidth&&t(r.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,fe&&oe<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};qr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,a=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(a){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var r=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+r)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=a?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var i=e.viewWidth-e.barLeft-(a?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+i)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(n==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:a?n:0,bottom:t?n:0}},qr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},qr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},qr.prototype.zeroWidthHack=function(){var e=y&&!u?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new te,this.disableVert=new te},qr.prototype.enableZeroWidthBar=function(e,t,a){e.style.pointerEvents="auto";function n(){var r=e.getBoundingClientRect(),i=a=="vert"?document.elementFromPoint(r.right-1,(r.top+r.bottom)/2):document.elementFromPoint((r.right+r.left)/2,r.bottom-1);i!=e?e.style.pointerEvents="none":t.set(1e3,n)}t.set(1e3,n)},qr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Oo=function(){};Oo.prototype.update=function(){return{bottom:0,right:0}},Oo.prototype.setScrollLeft=function(){},Oo.prototype.setScrollTop=function(){},Oo.prototype.clear=function(){};function ao(e,t){t||(t=no(e));var a=e.display.barWidth,n=e.display.barHeight;Io(e,t);for(var r=0;r<4&&a!=e.display.barWidth||n!=e.display.barHeight;r++)a!=e.display.barWidth&&e.options.lineWrapping&&jo(e),Io(e,no(e)),a=e.display.barWidth,n=e.display.barHeight}function Io(e,t){var a=e.display,n=a.scrollbars.update(t);a.sizer.style.paddingRight=(a.barWidth=n.right)+"px",a.sizer.style.paddingBottom=(a.barHeight=n.bottom)+"px",a.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(a.scrollbarFiller.style.display="block",a.scrollbarFiller.style.height=n.bottom+"px",a.scrollbarFiller.style.width=n.right+"px"):a.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(a.gutterFiller.style.display="block",a.gutterFiller.style.height=n.bottom+"px",a.gutterFiller.style.width=t.gutterWidth+"px"):a.gutterFiller.style.display=""}var oi={native:qr,null:Oo};function Uo(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ae(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new oi[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Le(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,a){a=="horizontal"?wr(e,t):vo(e,t)},e),e.display.scrollbars.addClass&&H(e.display.wrapper,e.display.scrollbars.addClass)}var ii=0;function $r(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++ii},Kr(e.curOp)}function ro(e){var t=e.curOp;t&&Dn(t,function(a){for(var n=0;n=a.viewTo)||a.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Tr(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Zi(e){e.updatedDisplay=e.mustUpdate&&oo(e.cm,e.update)}function qi(e){var t=e.cm,a=t.display;e.updatedDisplay&&jo(t),e.barMeasure=no(t),a.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=q(t,a.maxLine,a.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(a.scroller.clientWidth,a.sizer.offsetLeft+e.adjustWidthTo+he(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+e.adjustWidthTo-I(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=a.input.prepareSelection())}function si(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)return;var a=+new Date+e.options.workTime,n=qt(e,t.highlightFrontier),r=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),function(i){if(n.line>=e.display.viewFrom){var l=i.styles,c=i.text.length>e.options.maxHighlightLength?Ft(t.mode,n.state):null,h=Zt(e,i,n,!0);c&&(n.state=c),i.styles=h.styles;var A=i.styleClasses,se=h.classes;se?i.styleClasses=se:A&&(i.styleClasses=null);for(var pe=!l||l.length!=i.styles.length||A!=se&&(!A||!se||A.bgClass!=se.bgClass||A.textClass!=se.textClass),Ne=0;!pe&&Nea)return So(e,e.options.workDelay),!0}),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),r.length&&fr(e,function(){for(var i=0;i=a.viewFrom&&t.visible.to<=a.viewTo&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo)&&a.renderedView==a.view&&Xr(e)==0)return!1;Za(e)&&(Oa(e),t.dims=Ma(e));var r=n.first+n.size,i=Math.max(t.visible.from-e.options.viewportMargin,n.first),l=Math.min(r,t.visible.to+e.options.viewportMargin);a.viewFroml&&a.viewTo-l<20&&(l=Math.min(r,a.viewTo)),We&&(i=La(e.doc,i),l=Fa(e.doc,l));var c=i!=a.viewFrom||l!=a.viewTo||a.lastWrapHeight!=t.wrapperHeight||a.lastWrapWidth!=t.wrapperWidth;Vr(e,i,l),a.viewOffset=nr(tt(e.doc,a.viewFrom)),e.display.mover.style.top=a.viewOffset+"px";var h=Xr(e);if(!c&&h==0&&!t.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var A=Di(e);return h>4&&(a.lineDiv.style.display="none"),wi(e,a.updateLineNumbers,t.dims),h>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,Pi(A),T(a.cursorDiv),T(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,c&&(a.lastWrapHeight=t.wrapperHeight,a.lastWrapWidth=t.wrapperWidth,So(e,400)),a.updateLineNumbers=null,!0}function ko(e,t){for(var a=t.viewport,n=!0;;n=!1){if(!n||!e.options.lineWrapping||t.oldDisplayWidth==I(e)){if(a&&a.top!=null&&(a={top:Math.min(e.doc.height+V(e.display)-f(e),a.top)}),t.visible=No(e.display,e.doc,a),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else n&&(t.visible=No(e.display,e.doc,a));if(!oo(e,t))break;jo(e);var r=no(e);ma(e),ao(e,r),da(e,r),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Mo(e,t){var a=new Tr(e,t);if(oo(e,a)){jo(e),ko(e,a);var n=no(e);ma(e),ao(e,n),da(e,n),a.finish()}}function wi(e,t,a){var n=e.display,r=e.options.lineNumbers,i=n.lineDiv,l=i.firstChild;function c(Qe){var et=Qe.nextSibling;return z&&y&&e.display.currentWheelTarget==Qe?Qe.style.display="none":Qe.parentNode.removeChild(Qe),et}for(var h=n.view,A=n.viewFrom,se=0;se-1&&(we=!1),Mr(e,pe,A,a)),we&&(T(pe.lineNumber),pe.lineNumber.appendChild(document.createTextNode(ua(e.options,A)))),l=pe.node.nextSibling}A+=pe.size}for(;l;)l=c(l)}function Fo(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function da(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+he(e)+"px"}function Qn(e){var t=e.display,a=t.view;if(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))return;for(var n=sr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,r=t.gutters.offsetWidth,i=n+"px",l=0;ll.clientWidth,h=l.scrollHeight>l.clientHeight;if(!(n&&c||r&&h))return;if(r&&y&&z){e:for(var A=t.target,se=i.view;A!=l;A=A.parentNode)for(var pe=0;pe=0&&Oe(e,n.to())<=0)return a}return-1};var la=function(e,t){this.anchor=e,this.head=t};la.prototype.from=function(){return Nt(this.anchor,this.head)},la.prototype.to=function(){return dt(this.anchor,this.head)},la.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function jr(e,t,a){var n=e&&e.options.selectionsMayTouch,r=t[a];t.sort(function(Ne,we){return Oe(Ne.from(),we.from())}),a=ye(t,r);for(var i=1;i0:h>=0){var A=Nt(c.from(),l.from()),se=dt(c.to(),l.to()),pe=c.empty()?l.from()==l.head:c.from()==c.head;i<=a&&--a,t.splice(--i,2,new la(pe?se:A,pe?A:se))}}return new pr(t,a)}function Hr(e,t){return new pr([new la(e,t||e)],0)}function Qr(e){return e.text?Me(e.from.line+e.text.length-1,v(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function ci(e,t){if(Oe(e,t.from)<0)return e;if(Oe(e,t.to)<=0)return Qr(t);var a=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=Qr(t).ch-t.to.ch),Me(a,n)}function Ko(e,t){for(var a=[],n=0;n1&&e.remove(c.line+1,Qe-1),e.insert(c.line+1,bt)}yn(e,"change",e,t)}function bo(e,t,a){function n(r,i,l){if(r.linked)for(var c=0;c1&&!e.done[e.done.length-2].ranges)return e.done.pop(),v(e.done)}function ys(e,t,a,n){var r=e.history;r.undone.length=0;var i=+new Date,l,c;if((r.lastOp==n||r.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&r.lastModTime>i-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(l=pl(r,r.lastOp==n)))c=v(l.changes),Oe(t.from,t.to)==0&&Oe(t.from,c.to)==0?c.to=Qr(t):l.changes.push(ns(e,t));else{var h=v(r.done);for((!h||!h.ranges)&&Li(e.sel,r.done),l={changes:[ns(e,t)],generation:r.generation},r.done.push(l);r.done.length>r.undoDepth;)r.done.shift(),r.done[0].ranges||r.done.shift()}r.done.push(a),r.generation=++r.maxGeneration,r.lastModTime=r.lastSelTime=i,r.lastOp=r.lastSelOp=n,r.lastOrigin=r.lastSelOrigin=t.origin,c||rt(e,"historyAdded")}function ml(e,t,a,n){var r=t.charAt(0);return r=="*"||r=="+"&&a.ranges.length==n.ranges.length&&a.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function vl(e,t,a,n){var r=e.history,i=n&&n.origin;a==r.lastSelOp||i&&r.lastSelOrigin==i&&(r.lastModTime==r.lastSelTime&&r.lastOrigin==i||ml(e,i,v(r.done),t))?r.done[r.done.length-1]=t:Li(t,r.done),r.lastSelTime=+new Date,r.lastSelOrigin=i,r.lastSelOp=a,n&&n.clearRedo!==!1&&bs(r.undone)}function Li(e,t){var a=v(t);a&&a.ranges&&a.equals(e)||t.push(e)}function Cs(e,t,a,n){var r=t["spans_"+e.id],i=0;e.iter(Math.max(e.first,a),Math.min(e.first+e.size,n),function(l){l.markedSpans&&((r||(r=t["spans_"+e.id]={}))[i]=l.markedSpans),++i})}function gl(e){if(!e)return null;for(var t,a=0;a-1&&(v(c)[pe]=A[pe],delete A[pe]))}}return n}function as(e,t,a,n){if(n){var r=e.anchor;if(a){var i=Oe(t,r)<0;i!=Oe(a,r)<0?(r=t,t=a):i!=Oe(t,a)<0&&(t=a)}return new la(r,t)}else return new la(a||t,t)}function Ii(e,t,a,n,r){r==null&&(r=e.cm&&(e.cm.display.shift||e.extend)),lr(e,new pr([as(e.sel.primary(),t,a,r)],0),n)}function xs(e,t,a){for(var n=[],r=e.cm&&(e.cm.display.shift||e.extend),i=0;i=t.ch:c.to>t.ch))){if(r&&(rt(h,"beforeCursorEnter"),h.explicitlyCleared))if(i.markedSpans){--l;continue}else break;if(!h.atomic)continue;if(a){var pe=h.find(n<0?1:-1),Ne=void 0;if((n<0?se:A)&&(pe=Ds(e,pe,-n,pe&&pe.line==t.line?i:null)),pe&&pe.line==t.line&&(Ne=Oe(pe,a))&&(n<0?Ne<0:Ne>0))return zo(e,pe,t,n,r)}var we=h.find(n<0?-1:1);return(n<0?A:se)&&(we=Ds(e,we,n,we.line==t.line?i:null)),we?zo(e,we,t,n,r):null}}return t}function ki(e,t,a,n,r){var i=n||1,l=zo(e,t,a,i,r)||!r&&zo(e,t,a,i,!0)||zo(e,t,a,-i,r)||!r&&zo(e,t,a,-i,!0);return l||(e.cantEdit=!0,Me(e.first,0))}function Ds(e,t,a,n){return a<0&&t.ch==0?t.line>e.first?Ye(e,Me(t.line-1)):null:a>0&&t.ch==(n||tt(e,t.line)).text.length?t.line=0;--r)Ts(e,{from:n[r].from,to:n[r].to,text:r?[""]:t.text,origin:t.origin});else Ts(e,t)}function Ts(e,t){if(t.text.length==1&&t.text[0]==""&&Oe(t.from,t.to)==0)return;var a=Ko(e,t);ys(e,t,a,e.cm?e.cm.curOp.id:NaN),fi(e,t,a,ln(e,t));var n=[];bo(e,function(r,i){!i&&ye(n,r.history)==-1&&(Is(r.history,t),n.push(r.history)),fi(r,t,null,ln(r,t))})}function Fi(e,t,a){var n=e.cm&&e.cm.state.suppressEdits;if(n&&!a)return;for(var r=e.history,i,l=e.sel,c=t=="undo"?r.done:r.undone,h=t=="undo"?r.undone:r.done,A=0;A=0;--we){var Qe=Ne(we);if(Qe)return Qe.v}}function js(e,t){if(t==0)return;if(e.first+=t,e.sel=new pr(W(e.sel.ranges,function(r){return new la(Me(r.anchor.line+t,r.anchor.ch),Me(r.head.line+t,r.head.ch))}),e.sel.primIndex),e.cm){ga(e.cm,e.first,e.first-t,t);for(var a=e.cm.display,n=a.viewFrom;ne.lastLine())return;if(t.from.linei&&(t={from:t.from,to:Me(i,tt(e,i).text.length),text:[t.text[0]],origin:t.origin}),t.removed=En(e,t.from,t.to),a||(a=Ko(e,t)),e.cm?yl(e.cm,t,n):ts(e,t,n),Ui(e,a,Se),e.cantEdit&&ki(e,Me(e.firstLine(),0))&&(e.cantEdit=!1)}function yl(e,t,a){var n=e.doc,r=e.display,i=t.from,l=t.to,c=!1,h=i.line;e.options.lineWrapping||(h=$t(Vn(tt(n,i.line))),n.iter(h,l.line+1,function(we){if(we==r.maxLine)return c=!0,!0})),n.sel.contains(t.from,t.to)>-1&&ke(e),ts(n,t,a,Dr(e)),e.options.lineWrapping||(n.iter(h,i.line+t.text.length,function(we){var Qe=gr(we);Qe>r.maxLineLength&&(r.maxLine=we,r.maxLineLength=Qe,r.maxLineChanged=!0,c=!1)}),c&&(e.curOp.updateMaxLine=!0)),oa(n,i.line),So(e,400);var A=t.text.length-(l.line-i.line)-1;t.full?ga(e):i.line==l.line&&t.text.length==1&&!vs(e.doc,t)?Ra(e,i.line,"text"):ga(e,i.line,l.line+1,A);var se=Ke(e,"changes"),pe=Ke(e,"change");if(pe||se){var Ne={from:i,to:l,text:t.text,removed:t.removed,origin:t.origin};pe&&yn(e,"change",e,Ne),se&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(Ne)}e.display.selForContextMenu=null}function Qo(e,t,a,n,r){var i;n||(n=a),Oe(n,a)<0&&(i=[n,a],a=i[0],n=i[1]),typeof t=="string"&&(t=e.splitLines(t)),Ho(e,{from:a,to:n,text:t,origin:r})}function Ns(e,t,a,n){a1||!(this.children[0]instanceof pi))){var c=[];this.collapse(c),this.children=[new pi(c)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var l=r.lines.length%25+25,c=l;c10);e.parent.maybeSpill()},iterN:function(e,t,a){for(var n=0;ne.display.maxLineLength&&(e.display.maxLine=A,e.display.maxLineLength=se,e.display.maxLineChanged=!0)}n!=null&&e&&this.collapsed&&ga(e,n,r+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Ms(e.doc)),e&&yn(e,"markerCleared",e,this,n,r),t&&ro(e),this.parent&&this.parent.clear()},yo.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var a,n,r=0;r0||l==0&&i.clearWhenEmpty!==!1)return i;if(i.replacedWith&&(i.collapsed=!0,i.widgetNode=ue("span",[i.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||i.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(i.widgetNode.insertLeft=!0)),i.collapsed){if(ca(e,t.line,t,a,i)||t.line!=a.line&&ca(e,a.line,t,a,i))throw new Error("Inserting collapsed marker partially overlapping an existing one");en()}i.addToHistory&&ys(e,{from:t,to:a,origin:"markText"},e.sel,NaN);var c=t.line,h=e.cm,A;if(e.iter(c,a.line+1,function(pe){h&&i.collapsed&&!h.options.lineWrapping&&Vn(pe)==h.display.maxLine&&(A=!0),i.collapsed&&c!=t.line&&ta(pe,0),tn(pe,new _n(i,c==t.line?t.ch:null,c==a.line?a.ch:null)),++c}),i.collapsed&&e.iter(t.line,a.line+1,function(pe){Pa(e,pe)&&ta(pe,0)}),i.clearOnEnter&&Le(i,"beforeCursorEnter",function(){return i.clear()}),i.readOnly&&(Qt(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),i.collapsed&&(i.id=++ks,i.atomic=!0),h){if(A&&(h.curOp.updateMaxLine=!0),i.collapsed)ga(h,t.line,a.line+1);else if(i.className||i.startStyle||i.endStyle||i.css||i.attributes||i.title)for(var se=t.line;se<=a.line;se++)Ra(h,se,"text");i.atomic&&Ms(h.doc),yn(h,"markerAdded",h,i)}return i}var gi=function(e,t){this.markers=e,this.primary=t;for(var a=0;a=0;h--)Ho(this,n[h]);c?Os(this,c):this.cm&&po(this.cm)}),undo:Ua(function(){Fi(this,"undo")}),redo:Ua(function(){Fi(this,"redo")}),undoSelection:Ua(function(){Fi(this,"undo",!0)}),redoSelection:Ua(function(){Fi(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,a=0,n=0;n=e.ch)&&t.push(r.marker.parent||r.marker)}return t},findMarks:function(e,t,a){e=Ye(this,e),t=Ye(this,t);var n=[],r=e.line;return this.iter(e.line,t.line+1,function(i){var l=i.markedSpans;if(l)for(var c=0;c=h.to||h.from==null&&r!=e.line||h.from!=null&&r==t.line&&h.from>=t.ch)&&(!a||a(h.marker))&&n.push(h.marker.parent||h.marker)}++r}),n},getAllMarks:function(){var e=[];return this.iter(function(t){var a=t.markedSpans;if(a)for(var n=0;ne)return t=e,!0;e-=i,++a}),Ye(this,Me(a,t))},indexFromPos:function(e){e=Ye(this,e);var t=e.ch;if(e.linet&&(t=e.from),e.to!=null&&e.to-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var se=e.dataTransfer.getData("Text");if(se){var pe;if(t.state.draggingText&&!t.state.draggingText.copy&&(pe=t.listSelections()),Ui(t.doc,Hr(a,a)),pe)for(var Ne=0;Ne=0;c--)Qo(e.doc,"",n[c].from,n[c].to,"+delete");po(e)})}function os(e,t,a){var n=Je(e.text,t+a,a);return n<0||n>e.text.length?null:n}function is(e,t,a){var n=os(e,t.ch,a);return n==null?null:new Me(t.line,n,a<0?"after":"before")}function ss(e,t,a,n,r){if(e){t.doc.direction=="rtl"&&(r=-r);var i=Ht(a,t.doc.direction);if(i){var l=r<0?v(i):i[0],c=r<0==(l.level==1),h=c?"after":"before",A;if(l.level>0||t.doc.direction=="rtl"){var se=me(t,a);A=r<0?a.text.length-1:0;var pe=Ae(t,se,A).top;A=$e(function(Ne){return Ae(t,se,Ne).top==pe},r<0==(l.level==1)?l.from:l.to-1,A),h=="before"&&(A=os(a,A,1))}else A=r<0?l.to:l.from;return new Me(n,A,h)}}return new Me(n,r<0?a.text.length:0,r<0?"before":"after")}function Nl(e,t,a,n){var r=Ht(t,e.doc.direction);if(!r)return is(t,a,n);a.ch>=t.text.length?(a.ch=t.text.length,a.sticky="before"):a.ch<=0&&(a.ch=0,a.sticky="after");var i=vt(r,a.ch,a.sticky),l=r[i];if(e.doc.direction=="ltr"&&l.level%2==0&&(n>0?l.to>a.ch:l.from=l.from&&Ne>=se.begin)){var we=pe?"before":"after";return new Me(a.line,Ne,we)}}var Qe=function(bt,Ot,yt){for(var jt=function(Aa,er){return er?new Me(a.line,c(Aa,1),"before"):new Me(a.line,Aa,"after")};bt>=0&&bt0==(on.level!=1),jn=Vt?yt.begin:c(yt.end,-1);if(on.from<=jn&&jn0?se.end:c(se.begin,-1);return ft!=null&&!(n>0&&ft==t.text.length)&&(et=Qe(n>0?0:r.length-1,n,A(ft)),et)?et:null}var yi={selectAll:Ps,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Se)},killLine:function(e){return Vo(e,function(t){if(t.empty()){var a=tt(e.doc,t.head.line).text.length;return t.head.ch==a&&t.head.line0)r=new Me(r.line,r.ch+1),e.replaceRange(i.charAt(r.ch-1)+i.charAt(r.ch-2),Me(r.line,r.ch-2),r,"+transpose");else if(r.line>e.doc.first){var l=tt(e.doc,r.line-1).text;l&&(r=new Me(r.line,1),e.replaceRange(i.charAt(0)+e.doc.lineSeparator()+l.charAt(l.length-1),Me(r.line-1,l.length-1),r,"+transpose"))}}a.push(new la(r,r))}e.setSelections(a)})},newlineAndIndent:function(e){return fr(e,function(){for(var t=e.listSelections(),a=t.length-1;a>=0;a--)e.replaceRange(e.doc.lineSeparator(),t[a].anchor,t[a].head,"+input");t=e.listSelections();for(var n=0;ne&&Oe(t,this.pos)==0&&a==this.button};var Ai,xi;function Kl(e,t){var a=+new Date;return xi&&xi.compare(a,e,t)?(Ai=xi=null,"triple"):Ai&&Ai.compare(a,e,t)?(xi=new us(a,e,t),Ai=null,"double"):(Ai=new us(a,e,t),xi=null,"single")}function el(e){var t=this,a=t.display;if(Ue(t,e)||a.activeTouch&&a.input.supportsTouch())return;if(a.input.ensurePolled(),a.shift=e.shiftKey,Ur(a,e)){z||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(cs(t,e))return;var n=Xa(t,e),r=Ct(e),i=n?Kl(n,r):"single";if(window.focus(),r==1&&t.state.selectingText&&t.state.selectingText(e),n&&Wl(t,r,n,i,e))return;r==1?n?Hl(t,n,i,e):lt(e)==a.scroller&&Ze(e):r==2?(n&&Ii(t.doc,n),setTimeout(function(){return a.input.focus()},20)):r==3&&(de?t.display.input.onContextMenu(e):ti(t))}function Wl(e,t,a,n,r){var i="Click";return n=="double"?i="Double"+i:n=="triple"&&(i="Triple"+i),i=(t==1?"Left":t==2?"Middle":"Right")+i,Ci(e,Qs(i,r),r,function(l){if(typeof l=="string"&&(l=yi[l]),!l)return!1;var c=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),c=l(e,a)!=xe}finally{e.state.suppressEdits=!1}return c})}function zl(e,t,a){var n=e.getOption("configureMouse"),r=n?n(e,t,a):{};if(r.unit==null){var i=S?a.shiftKey&&a.metaKey:a.altKey;r.unit=i?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(r.extend==null||e.doc.extend)&&(r.extend=e.doc.extend||a.shiftKey),r.addNew==null&&(r.addNew=y?a.metaKey:a.ctrlKey),r.moveOnDrag==null&&(r.moveOnDrag=!(y?a.altKey:a.ctrlKey)),r}function Hl(e,t,a,n){fe?setTimeout(K(Oi,e),0):e.curOp.focus=N();var r=zl(e,a,n),i=e.doc.sel,l;e.options.dragDrop&&Et&&!e.isReadOnly()&&a=="single"&&(l=i.contains(t))>-1&&(Oe((l=i.ranges[l]).from(),t)<0||t.xRel>0)&&(Oe(l.to(),t)>0||t.xRel<0)?Ql(e,n,t,r):Gl(e,n,t,r)}function Ql(e,t,a,n){var r=e.display,i=!1,l=Ia(e,function(A){z&&(r.scroller.draggable=!1),e.state.draggingText=!1,st(r.wrapper.ownerDocument,"mouseup",l),st(r.wrapper.ownerDocument,"mousemove",c),st(r.scroller,"dragstart",h),st(r.scroller,"drop",l),i||(Ze(A),n.addNew||Ii(e.doc,a,null,null,n.extend),z&&!O||fe&&oe==9?setTimeout(function(){r.wrapper.ownerDocument.body.focus({preventScroll:!0}),r.input.focus()},20):r.input.focus())}),c=function(A){i=i||Math.abs(t.clientX-A.clientX)+Math.abs(t.clientY-A.clientY)>=10},h=function(){return i=!0};z&&(r.scroller.draggable=!0),e.state.draggingText=l,l.copy=!n.moveOnDrag,r.scroller.dragDrop&&r.scroller.dragDrop(),Le(r.wrapper.ownerDocument,"mouseup",l),Le(r.wrapper.ownerDocument,"mousemove",c),Le(r.scroller,"dragstart",h),Le(r.scroller,"drop",l),ti(e),setTimeout(function(){return r.input.focus()},20)}function tl(e,t,a){if(a=="char")return new la(t,t);if(a=="word")return e.findWordAt(t);if(a=="line")return new la(Me(t.line,0),Ye(e.doc,Me(t.line+1,0)));var n=a(e,t);return new la(n.from,n.to)}function Gl(e,t,a,n){var r=e.display,i=e.doc;Ze(t);var l,c,h=i.sel,A=h.ranges;if(n.addNew&&!n.extend?(c=i.sel.contains(a),c>-1?l=A[c]:l=new la(a,a)):(l=i.sel.primary(),c=i.sel.primIndex),n.unit=="rectangle")n.addNew||(l=new la(a,a)),a=Xa(e,t,!0,!0),c=-1;else{var se=tl(e,a,n.unit);n.extend?l=as(l,se.anchor,se.head,n.extend):l=se}n.addNew?c==-1?(c=A.length,lr(i,jr(e,A.concat([l]),c),{scroll:!1,origin:"*mouse"})):A.length>1&&A[c].empty()&&n.unit=="char"&&!n.extend?(lr(i,jr(e,A.slice(0,c).concat(A.slice(c+1)),0),{scroll:!1,origin:"*mouse"}),h=i.sel):rs(i,c,l,X):(c=0,lr(i,new pr([l],0),X),h=i.sel);var pe=a;function Ne(yt){if(Oe(pe,yt)==0)return;if(pe=yt,n.unit=="rectangle"){for(var jt=[],on=e.options.tabSize,Vt=B(tt(i,a.line).text,a.ch,on),jn=B(tt(i,yt.line).text,yt.ch,on),Aa=Math.min(Vt,jn),er=Math.max(Vt,jn),wa=Math.min(a.line,yt.line),_r=Math.min(e.lastLine(),Math.max(a.line,yt.line));wa<=_r;wa++){var Cr=tt(i,wa).text,Wa=be(Cr,Aa,on);Aa==er?jt.push(new la(Me(wa,Wa),Me(wa,Wa))):Cr.length>Wa&&jt.push(new la(Me(wa,Wa),Me(wa,be(Cr,er,on))))}jt.length||jt.push(new la(a,a)),lr(i,jr(e,h.ranges.slice(0,c).concat(jt),c),{origin:"*mouse",scroll:!1}),e.scrollIntoView(yt)}else{var Ar=l,or=tl(e,yt,n.unit),$a=Ar.anchor,za;Oe(or.anchor,$a)>0?(za=or.head,$a=Nt(Ar.from(),or.anchor)):(za=or.anchor,$a=dt(Ar.to(),or.head));var Na=h.ranges.slice(0);Na[c]=Jl(e,new la(Ye(i,$a),za)),lr(i,jr(e,Na,c),X)}}var we=r.wrapper.getBoundingClientRect(),Qe=0;function et(yt){var jt=++Qe,on=Xa(e,yt,!0,n.unit=="rectangle");if(!on)return;if(Oe(on,pe)!=0){e.curOp.focus=N(),Ne(on);var Vt=No(r,i);(on.line>=Vt.to||on.linewe.bottom?20:0;jn&&setTimeout(Ia(e,function(){if(Qe!=jt)return;r.scroller.scrollTop+=jn,et(yt)}),50)}}function ft(yt){e.state.selectingText=!1,Qe=Infinity,yt&&(Ze(yt),r.input.focus()),st(r.wrapper.ownerDocument,"mousemove",bt),st(r.wrapper.ownerDocument,"mouseup",Ot),i.history.lastSelOrigin=null}var bt=Ia(e,function(yt){yt.buttons===0||!Ct(yt)?ft(yt):et(yt)}),Ot=Ia(e,ft);e.state.selectingText=Ot,Le(r.wrapper.ownerDocument,"mousemove",bt),Le(r.wrapper.ownerDocument,"mouseup",Ot)}function Jl(e,t){var a=t.anchor,n=t.head,r=tt(e.doc,a.line);if(Oe(a,n)==0&&a.sticky==n.sticky)return t;var i=Ht(r);if(!i)return t;var l=vt(i,a.ch,a.sticky),c=i[l];if(c.from!=a.ch&&c.to!=a.ch)return t;var h=l+(c.from==a.ch==(c.level!=1)?0:1);if(h==0||h==i.length)return t;var A;if(n.line!=a.line)A=(n.line-a.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var se=vt(i,n.ch,n.sticky),pe=se-l||(n.ch-a.ch)*(c.level==1?-1:1);se==h-1||se==h?A=pe<0:A=pe>0}var Ne=i[h+(A?-1:0)],we=A==(Ne.level==1),Qe=we?Ne.from:Ne.to,et=we?"after":"before";return a.ch==Qe&&a.sticky==et?t:new la(new Me(a.line,Qe,et),n)}function nl(e,t,a,n){var r,i;if(t.touches)r=t.touches[0].clientX,i=t.touches[0].clientY;else try{r=t.clientX,i=t.clientY}catch(Ne){return!1}if(r>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&Ze(t);var l=e.display,c=l.lineDiv.getBoundingClientRect();if(i>c.bottom||!Ke(e,a))return Xe(t);i-=c.top-l.viewOffset;for(var h=0;h=r){var se=Tt(e.doc,i),pe=e.display.gutterSpecs[h];return rt(e,a,e,se,pe.className,t),Xe(t)}}}function cs(e,t){return nl(e,t,"gutterClick",!0)}function al(e,t){if(Ur(e.display,t)||Vl(e,t))return;if(Ue(e,t,"contextmenu"))return;de||e.display.input.onContextMenu(t)}function Vl(e,t){return Ke(e,"gutterContextMenu")?nl(e,t,"gutterContextMenu",!1):!1}function rl(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),On(e)}var Xo={toString:function(){return"CodeMirror.Init"}},ol={},zi={};function Xl(e){var t=e.optionHandlers;function a(n,r,i,l){e.defaults[n]=r,i&&(t[n]=l?function(c,h,A){A!=Xo&&i(c,h,A)}:i)}e.defineOption=a,e.Init=Xo,a("value","",function(n,r){return n.setValue(r)},!0),a("mode",null,function(n,r){n.doc.modeOption=r,io(n)},!0),a("indentUnit",2,io,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(n){di(n),On(n),ga(n)},!0),a("lineSeparator",null,function(n,r){if(n.doc.lineSep=r,!r)return;var i=[],l=n.doc.first;n.doc.iter(function(h){for(var A=0;;){var se=h.text.indexOf(r,A);if(se==-1)break;A=se+r.length,i.push(Me(l,se))}l++});for(var c=i.length-1;c>=0;c--)Qo(n.doc,r,i[c],Me(i[c].line,i[c].ch+r.length))}),a("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(n,r,i){n.state.specialChars=new RegExp(r.source+(r.test(" ")?"":"| "),"g"),i!=Xo&&n.refresh()}),a("specialCharPlaceholder",Ka,function(n){return n.refresh()},!0),a("electricChars",!0),a("inputStyle",p?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),a("spellcheck",!1,function(n,r){return n.getInputField().spellcheck=r},!0),a("autocorrect",!1,function(n,r){return n.getInputField().autocorrect=r},!0),a("autocapitalize",!1,function(n,r){return n.getInputField().autocapitalize=r},!0),a("rtlMoveVisually",!U),a("wholeLineUpdateBefore",!0),a("theme","default",function(n){rl(n),zr(n)},!0),a("keyMap","default",function(n,r,i){var l=Ki(r),c=i!=Xo&&Ki(i);c&&c.detach&&c.detach(n,l),l.attach&&l.attach(n,c||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,Zl,!0),a("gutters",[],function(n,r){n.display.gutterSpecs=hr(r,n.options.lineNumbers),zr(n)},!0),a("fixedGutter",!0,function(n,r){n.display.gutters.style.left=r?sr(n.display)+"px":"0",n.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(n){return ao(n)},!0),a("scrollbarStyle","native",function(n){Uo(n),ao(n),n.display.scrollbars.setScrollTop(n.doc.scrollTop),n.display.scrollbars.setScrollLeft(n.doc.scrollLeft)},!0),a("lineNumbers",!1,function(n,r){n.display.gutterSpecs=hr(n.options.gutters,r),zr(n)},!0),a("firstLineNumber",1,zr,!0),a("lineNumberFormatter",function(n){return n},zr,!0),a("showCursorWhenSelecting",!1,ma,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(n,r){r=="nocursor"&&(ho(n),n.display.input.blur()),n.display.input.readOnlyChanged(r)}),a("screenReaderLabel",null,function(n,r){r=r===""?null:r,n.display.input.screenReaderLabelChanged(r)}),a("disableInput",!1,function(n,r){r||n.display.input.reset()},!0),a("dragDrop",!0,Yl),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,ma,!0),a("singleCursorHeightPerLine",!0,ma,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,di,!0),a("addModeClass",!1,di,!0),a("pollInterval",100),a("undoDepth",200,function(n,r){return n.doc.history.undoDepth=r}),a("historyEventDelay",1250),a("viewportMargin",10,function(n){return n.refresh()},!0),a("maxHighlightLength",1e4,di,!0),a("moveInputWithCursor",!0,function(n,r){r||n.display.input.resetPosition()}),a("tabindex",null,function(n,r){return n.display.input.getField().tabIndex=r||""}),a("autofocus",null),a("direction","ltr",function(n,r){return n.doc.setDirection(r)},!0),a("phrases",null)}function Yl(e,t,a){var n=a&&a!=Xo;if(!t!=!n){var r=e.display.dragFunctions,i=t?Le:st;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Zl(e){e.options.lineWrapping?(H(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(ae(e.display.wrapper,"CodeMirror-wrap"),Er(e)),dr(e),ga(e),On(e),setTimeout(function(){return ao(e)},100)}function Da(e,t){var a=this;if(!(this instanceof Da))return new Da(e,t);this.options=t=t?ee(t):{},ee(ol,t,!1);var n=t.value;typeof n=="string"?n=new yr(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var r=new Da.inputStyles[t.inputStyle](this),i=this.display=new Ro(e,n,r,t);i.wrapper.CodeMirror=this,rl(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Uo(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new te,keySeq:null,specialChars:null},t.autofocus&&!p&&i.input.focus(),fe&&oe<11&&setTimeout(function(){return a.display.input.reset(!0)},20),ql(this),Dl(),$r(this),this.curOp.forceUpdate=!0,gs(this,n),t.autofocus&&!p||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&Zr(a)},20):ho(this);for(var l in zi)zi.hasOwnProperty(l)&&zi[l](this,t[l],Xo);Za(this),t.finishInit&&t.finishInit(this);for(var c=0;c20*20}Le(t.scroller,"touchstart",function(h){if(!Ue(e,h)&&!i(h)&&!cs(e,h)){t.input.ensurePolled(),clearTimeout(a);var A=+new Date;t.activeTouch={start:A,moved:!1,prev:A-n.end<=300?n:null},h.touches.length==1&&(t.activeTouch.left=h.touches[0].pageX,t.activeTouch.top=h.touches[0].pageY)}}),Le(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),Le(t.scroller,"touchend",function(h){var A=t.activeTouch;if(A&&!Ur(t,h)&&A.left!=null&&!A.moved&&new Date-A.start<300){var se=e.coordsChar(t.activeTouch,"page"),pe;!A.prev||l(A,A.prev)?pe=new la(se,se):!A.prev.prev||l(A,A.prev.prev)?pe=e.findWordAt(se):pe=new la(Me(se.line,0),Ye(e.doc,Me(se.line+1,0))),e.setSelection(pe.anchor,pe.head),e.focus(),Ze(h)}r()}),Le(t.scroller,"touchcancel",r),Le(t.scroller,"scroll",function(){t.scroller.clientHeight&&(vo(e,t.scroller.scrollTop),wr(e,t.scroller.scrollLeft,!0),rt(e,"scroll",e))}),Le(t.scroller,"mousewheel",function(h){return ui(e,h)}),Le(t.scroller,"DOMMouseScroll",function(h){return ui(e,h)}),Le(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(h){Ue(e,h)||ut(h)},over:function(h){Ue(e,h)||(Rl(e,h),ut(h))},start:function(h){return Ml(e,h)},drop:Ia(e,Sl),leave:function(h){Ue(e,h)||Ks(e)}};var c=t.input.getField();Le(c,"keyup",function(h){return qs.call(e,h)}),Le(c,"keydown",Ia(e,Zs)),Le(c,"keypress",Ia(e,$s)),Le(c,"focus",function(h){return Zr(e,h)}),Le(c,"blur",function(h){return ho(e,h)})}var ds=[];Da.defineInitHook=function(e){return ds.push(e)};function _i(e,t,a,n){var r=e.doc,i;a==null&&(a="add"),a=="smart"&&(r.mode.indent?i=qt(e,t).state:a="prev");var l=e.options.tabSize,c=tt(r,t),h=B(c.text,null,l);c.stateAfter&&(c.stateAfter=null);var A=c.text.match(/^\s*/)[0],se;if(!n&&!/\S/.test(c.text))se=0,a="not";else if(a=="smart"&&(se=r.mode.indent(i,c.text.slice(A.length),c.text),se==xe||se>150)){if(!n)return;a="prev"}a=="prev"?t>r.first?se=B(tt(r,t-1).text,null,l):se=0:a=="add"?se=h+e.options.indentUnit:a=="subtract"?se=h-e.options.indentUnit:typeof a=="number"&&(se=h+a),se=Math.max(0,se);var pe="",Ne=0;if(e.options.indentWithTabs)for(var we=Math.floor(se/l);we;--we)Ne+=l,pe+=" ";if(Nel,h=fn(t),A=null;if(c&&n.ranges.length>1)if(Gr&&Gr.text.join(` -`)==t){if(n.ranges.length%Gr.text.length==0){A=[];for(var se=0;se=0;Ne--){var we=n.ranges[Ne],Qe=we.from(),et=we.to();we.empty()&&(a&&a>0?Qe=Me(Qe.line,Qe.ch-a):e.state.overwrite&&!c?et=Me(et.line,Math.min(tt(i,et.line).text.length,et.ch+v(h).length)):c&&Gr&&Gr.lineWise&&Gr.text.join(` + left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(i),i.scrollIntoView(r),e.display.lineSpace.removeChild(i)}}function Vi(e,t,a,n){n==null&&(n=0);var r;!e.options.lineWrapping&&t==a&&(t=t.ch?Me(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t,a=t.sticky=="before"?Me(t.line,t.ch+1,"before"):t);for(var i=0;i<5;i++){var l=!1,c=Bn(e,t),h=!a||a==t?c:Bn(e,a);r={left:Math.min(c.left,h.left),top:Math.min(c.top,h.top)-n,right:Math.max(c.left,h.left),bottom:Math.max(c.bottom,h.bottom)+n};var A=ai(e,r),se=e.doc.scrollTop,pe=e.doc.scrollLeft;if(A.scrollTop!=null&&(vo(e,A.scrollTop),Math.abs(e.doc.scrollTop-se)>1&&(l=!0)),A.scrollLeft!=null&&(wr(e,A.scrollLeft),Math.abs(e.doc.scrollLeft-pe)>1&&(l=!0)),!l)break}return r}function Si(e,t){var a=ai(e,t);a.scrollTop!=null&&vo(e,a.scrollTop),a.scrollLeft!=null&&wr(e,a.scrollLeft)}function ai(e,t){var a=e.display,n=ja(e.display);t.top<0&&(t.top=0);var r=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:a.scroller.scrollTop,i=f(e),l={};t.bottom-t.top>i&&(t.bottom=t.top+i);var c=e.doc.height+V(a),h=t.topc-n;if(t.topr+i){var se=Math.min(t.top,(A?c:t.bottom)-i);se!=r&&(l.scrollTop=se)}var pe=e.options.fixedGutter?0:a.gutters.offsetWidth,Ne=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:a.scroller.scrollLeft-pe,we=I(e)-a.gutters.offsetWidth,Qe=t.right-t.left>we;return Qe&&(t.right=t.left+we),t.left<10?l.scrollLeft=0:t.leftwe+Ne-3&&(l.scrollLeft=t.right+(Qe?0:10)-we),l}function ri(e,t){if(t==null)return;Lo(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t}function po(e){Lo(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function mo(e,t,a){(t!=null||a!=null)&&Lo(e),t!=null&&(e.curOp.scrollLeft=t),a!=null&&(e.curOp.scrollTop=a)}function Xi(e,t){Lo(e),e.curOp.scrollToPos=t}function Lo(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var a=Yt(e,t.from),n=Yt(e,t.to);_o(e,a,n,t.margin)}}function _o(e,t,a,n){var r=ai(e,{left:Math.min(t.left,a.left),top:Math.min(t.top,a.top)-n,right:Math.max(t.right,a.right),bottom:Math.max(t.bottom,a.bottom)+n});mo(e,r.scrollLeft,r.scrollTop)}function vo(e,t){if(Math.abs(e.doc.scrollTop-t)<2)return;Re||Mo(e,{top:t}),go(e,t,!0),Re&&Mo(e),So(e,100)}function go(e,t,a){if(t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),e.display.scroller.scrollTop==t&&!a)return;e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t)}function wr(e,t,a,n){if(t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(a?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n)return;e.doc.scrollLeft=t,Qn(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t)}function no(e){var t=e.display,a=t.gutters.offsetWidth,n=Math.round(e.doc.height+V(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?a:0,docHeight:n,scrollHeight:n+he(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:a}}var qr=function(e,t,a){this.cm=a;var n=this.vert=s("div",[s("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),r=this.horiz=s("div",[s("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=r.tabIndex=-1,e(n),e(r),Le(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),Le(r,"scroll",function(){r.clientWidth&&t(r.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,fe&&oe<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};qr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,a=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(a){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var r=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+r)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=a?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var i=e.viewWidth-e.barLeft-(a?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+i)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(n==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:a?n:0,bottom:t?n:0}},qr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},qr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},qr.prototype.zeroWidthHack=function(){var e=y&&!u?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new te,this.disableVert=new te},qr.prototype.enableZeroWidthBar=function(e,t,a){e.style.pointerEvents="auto";function n(){var r=e.getBoundingClientRect(),i=a=="vert"?document.elementFromPoint(r.right-1,(r.top+r.bottom)/2):document.elementFromPoint((r.right+r.left)/2,r.bottom-1);i!=e?e.style.pointerEvents="none":t.set(1e3,n)}t.set(1e3,n)},qr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Oo=function(){};Oo.prototype.update=function(){return{bottom:0,right:0}},Oo.prototype.setScrollLeft=function(){},Oo.prototype.setScrollTop=function(){},Oo.prototype.clear=function(){};function ao(e,t){t||(t=no(e));var a=e.display.barWidth,n=e.display.barHeight;Io(e,t);for(var r=0;r<4&&a!=e.display.barWidth||n!=e.display.barHeight;r++)a!=e.display.barWidth&&e.options.lineWrapping&&jo(e),Io(e,no(e)),a=e.display.barWidth,n=e.display.barHeight}function Io(e,t){var a=e.display,n=a.scrollbars.update(t);a.sizer.style.paddingRight=(a.barWidth=n.right)+"px",a.sizer.style.paddingBottom=(a.barHeight=n.bottom)+"px",a.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(a.scrollbarFiller.style.display="block",a.scrollbarFiller.style.height=n.bottom+"px",a.scrollbarFiller.style.width=n.right+"px"):a.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(a.gutterFiller.style.display="block",a.gutterFiller.style.height=n.bottom+"px",a.gutterFiller.style.width=t.gutterWidth+"px"):a.gutterFiller.style.display=""}var oi={native:qr,null:Oo};function Uo(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ae(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new oi[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Le(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,a){a=="horizontal"?wr(e,t):vo(e,t)},e),e.display.scrollbars.addClass&&H(e.display.wrapper,e.display.scrollbars.addClass)}var ii=0;function $r(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++ii},Kr(e.curOp)}function ro(e){var t=e.curOp;t&&Dn(t,function(a){for(var n=0;n=a.viewTo)||a.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Tr(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Zi(e){e.updatedDisplay=e.mustUpdate&&oo(e.cm,e.update)}function qi(e){var t=e.cm,a=t.display;e.updatedDisplay&&jo(t),e.barMeasure=no(t),a.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=q(t,a.maxLine,a.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(a.scroller.clientWidth,a.sizer.offsetLeft+e.adjustWidthTo+he(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+e.adjustWidthTo-I(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=a.input.prepareSelection())}function si(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)return;var a=+new Date+e.options.workTime,n=qt(e,t.highlightFrontier),r=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),function(i){if(n.line>=e.display.viewFrom){var l=i.styles,c=i.text.length>e.options.maxHighlightLength?Ft(t.mode,n.state):null,h=Zt(e,i,n,!0);c&&(n.state=c),i.styles=h.styles;var A=i.styleClasses,se=h.classes;se?i.styleClasses=se:A&&(i.styleClasses=null);for(var pe=!l||l.length!=i.styles.length||A!=se&&(!A||!se||A.bgClass!=se.bgClass||A.textClass!=se.textClass),Ne=0;!pe&&Nea)return So(e,e.options.workDelay),!0}),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),r.length&&fr(e,function(){for(var i=0;i=a.viewFrom&&t.visible.to<=a.viewTo&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo)&&a.renderedView==a.view&&Xr(e)==0)return!1;Za(e)&&(Oa(e),t.dims=Ma(e));var r=n.first+n.size,i=Math.max(t.visible.from-e.options.viewportMargin,n.first),l=Math.min(r,t.visible.to+e.options.viewportMargin);a.viewFroml&&a.viewTo-l<20&&(l=Math.min(r,a.viewTo)),We&&(i=La(e.doc,i),l=Fa(e.doc,l));var c=i!=a.viewFrom||l!=a.viewTo||a.lastWrapHeight!=t.wrapperHeight||a.lastWrapWidth!=t.wrapperWidth;Vr(e,i,l),a.viewOffset=nr(tt(e.doc,a.viewFrom)),e.display.mover.style.top=a.viewOffset+"px";var h=Xr(e);if(!c&&h==0&&!t.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var A=Di(e);return h>4&&(a.lineDiv.style.display="none"),wi(e,a.updateLineNumbers,t.dims),h>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,Pi(A),T(a.cursorDiv),T(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,c&&(a.lastWrapHeight=t.wrapperHeight,a.lastWrapWidth=t.wrapperWidth,So(e,400)),a.updateLineNumbers=null,!0}function ko(e,t){for(var a=t.viewport,n=!0;;n=!1){if(!n||!e.options.lineWrapping||t.oldDisplayWidth==I(e)){if(a&&a.top!=null&&(a={top:Math.min(e.doc.height+V(e.display)-f(e),a.top)}),t.visible=No(e.display,e.doc,a),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else n&&(t.visible=No(e.display,e.doc,a));if(!oo(e,t))break;jo(e);var r=no(e);ma(e),ao(e,r),da(e,r),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Mo(e,t){var a=new Tr(e,t);if(oo(e,a)){jo(e),ko(e,a);var n=no(e);ma(e),ao(e,n),da(e,n),a.finish()}}function wi(e,t,a){var n=e.display,r=e.options.lineNumbers,i=n.lineDiv,l=i.firstChild;function c(Qe){var et=Qe.nextSibling;return z&&y&&e.display.currentWheelTarget==Qe?Qe.style.display="none":Qe.parentNode.removeChild(Qe),et}for(var h=n.view,A=n.viewFrom,se=0;se-1&&(we=!1),Mr(e,pe,A,a)),we&&(T(pe.lineNumber),pe.lineNumber.appendChild(document.createTextNode(ua(e.options,A)))),l=pe.node.nextSibling}A+=pe.size}for(;l;)l=c(l)}function Fo(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function da(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+he(e)+"px"}function Qn(e){var t=e.display,a=t.view;if(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))return;for(var n=sr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,r=t.gutters.offsetWidth,i=n+"px",l=0;ll.clientWidth,h=l.scrollHeight>l.clientHeight;if(!(n&&c||r&&h))return;if(r&&y&&z){e:for(var A=t.target,se=i.view;A!=l;A=A.parentNode)for(var pe=0;pe=0&&Oe(e,n.to())<=0)return a}return-1};var la=function(e,t){this.anchor=e,this.head=t};la.prototype.from=function(){return Nt(this.anchor,this.head)},la.prototype.to=function(){return dt(this.anchor,this.head)},la.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function jr(e,t,a){var n=e&&e.options.selectionsMayTouch,r=t[a];t.sort(function(Ne,we){return Oe(Ne.from(),we.from())}),a=ye(t,r);for(var i=1;i0:h>=0){var A=Nt(c.from(),l.from()),se=dt(c.to(),l.to()),pe=c.empty()?l.from()==l.head:c.from()==c.head;i<=a&&--a,t.splice(--i,2,new la(pe?se:A,pe?A:se))}}return new pr(t,a)}function Hr(e,t){return new pr([new la(e,t||e)],0)}function Qr(e){return e.text?Me(e.from.line+e.text.length-1,v(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function ci(e,t){if(Oe(e,t.from)<0)return e;if(Oe(e,t.to)<=0)return Qr(t);var a=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=Qr(t).ch-t.to.ch),Me(a,n)}function Ko(e,t){for(var a=[],n=0;n1&&e.remove(c.line+1,Qe-1),e.insert(c.line+1,Et)}yn(e,"change",e,t)}function Eo(e,t,a){function n(r,i,l){if(r.linked)for(var c=0;c1&&!e.done[e.done.length-2].ranges)return e.done.pop(),v(e.done)}function ys(e,t,a,n){var r=e.history;r.undone.length=0;var i=+new Date,l,c;if((r.lastOp==n||r.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&r.lastModTime>i-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(l=pl(r,r.lastOp==n)))c=v(l.changes),Oe(t.from,t.to)==0&&Oe(t.from,c.to)==0?c.to=Qr(t):l.changes.push(ns(e,t));else{var h=v(r.done);for((!h||!h.ranges)&&Li(e.sel,r.done),l={changes:[ns(e,t)],generation:r.generation},r.done.push(l);r.done.length>r.undoDepth;)r.done.shift(),r.done[0].ranges||r.done.shift()}r.done.push(a),r.generation=++r.maxGeneration,r.lastModTime=r.lastSelTime=i,r.lastOp=r.lastSelOp=n,r.lastOrigin=r.lastSelOrigin=t.origin,c||rt(e,"historyAdded")}function ml(e,t,a,n){var r=t.charAt(0);return r=="*"||r=="+"&&a.ranges.length==n.ranges.length&&a.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function vl(e,t,a,n){var r=e.history,i=n&&n.origin;a==r.lastSelOp||i&&r.lastSelOrigin==i&&(r.lastModTime==r.lastSelTime&&r.lastOrigin==i||ml(e,i,v(r.done),t))?r.done[r.done.length-1]=t:Li(t,r.done),r.lastSelTime=+new Date,r.lastSelOrigin=i,r.lastSelOp=a,n&&n.clearRedo!==!1&&Es(r.undone)}function Li(e,t){var a=v(t);a&&a.ranges&&a.equals(e)||t.push(e)}function Cs(e,t,a,n){var r=t["spans_"+e.id],i=0;e.iter(Math.max(e.first,a),Math.min(e.first+e.size,n),function(l){l.markedSpans&&((r||(r=t["spans_"+e.id]={}))[i]=l.markedSpans),++i})}function gl(e){if(!e)return null;for(var t,a=0;a-1&&(v(c)[pe]=A[pe],delete A[pe]))}}return n}function as(e,t,a,n){if(n){var r=e.anchor;if(a){var i=Oe(t,r)<0;i!=Oe(a,r)<0?(r=t,t=a):i!=Oe(t,a)<0&&(t=a)}return new la(r,t)}else return new la(a||t,t)}function Ii(e,t,a,n,r){r==null&&(r=e.cm&&(e.cm.display.shift||e.extend)),lr(e,new pr([as(e.sel.primary(),t,a,r)],0),n)}function xs(e,t,a){for(var n=[],r=e.cm&&(e.cm.display.shift||e.extend),i=0;i=t.ch:c.to>t.ch))){if(r&&(rt(h,"beforeCursorEnter"),h.explicitlyCleared))if(i.markedSpans){--l;continue}else break;if(!h.atomic)continue;if(a){var pe=h.find(n<0?1:-1),Ne=void 0;if((n<0?se:A)&&(pe=Ds(e,pe,-n,pe&&pe.line==t.line?i:null)),pe&&pe.line==t.line&&(Ne=Oe(pe,a))&&(n<0?Ne<0:Ne>0))return zo(e,pe,t,n,r)}var we=h.find(n<0?-1:1);return(n<0?A:se)&&(we=Ds(e,we,n,we.line==t.line?i:null)),we?zo(e,we,t,n,r):null}}return t}function ki(e,t,a,n,r){var i=n||1,l=zo(e,t,a,i,r)||!r&&zo(e,t,a,i,!0)||zo(e,t,a,-i,r)||!r&&zo(e,t,a,-i,!0);return l||(e.cantEdit=!0,Me(e.first,0))}function Ds(e,t,a,n){return a<0&&t.ch==0?t.line>e.first?Ye(e,Me(t.line-1)):null:a>0&&t.ch==(n||tt(e,t.line)).text.length?t.line=0;--r)Ts(e,{from:n[r].from,to:n[r].to,text:r?[""]:t.text,origin:t.origin});else Ts(e,t)}function Ts(e,t){if(t.text.length==1&&t.text[0]==""&&Oe(t.from,t.to)==0)return;var a=Ko(e,t);ys(e,t,a,e.cm?e.cm.curOp.id:NaN),fi(e,t,a,ln(e,t));var n=[];Eo(e,function(r,i){!i&&ye(n,r.history)==-1&&(Is(r.history,t),n.push(r.history)),fi(r,t,null,ln(r,t))})}function Fi(e,t,a){var n=e.cm&&e.cm.state.suppressEdits;if(n&&!a)return;for(var r=e.history,i,l=e.sel,c=t=="undo"?r.done:r.undone,h=t=="undo"?r.undone:r.done,A=0;A=0;--we){var Qe=Ne(we);if(Qe)return Qe.v}}function js(e,t){if(t==0)return;if(e.first+=t,e.sel=new pr(W(e.sel.ranges,function(r){return new la(Me(r.anchor.line+t,r.anchor.ch),Me(r.head.line+t,r.head.ch))}),e.sel.primIndex),e.cm){ga(e.cm,e.first,e.first-t,t);for(var a=e.cm.display,n=a.viewFrom;ne.lastLine())return;if(t.from.linei&&(t={from:t.from,to:Me(i,tt(e,i).text.length),text:[t.text[0]],origin:t.origin}),t.removed=bn(e,t.from,t.to),a||(a=Ko(e,t)),e.cm?yl(e.cm,t,n):ts(e,t,n),Ui(e,a,Se),e.cantEdit&&ki(e,Me(e.firstLine(),0))&&(e.cantEdit=!1)}function yl(e,t,a){var n=e.doc,r=e.display,i=t.from,l=t.to,c=!1,h=i.line;e.options.lineWrapping||(h=$t(Vn(tt(n,i.line))),n.iter(h,l.line+1,function(we){if(we==r.maxLine)return c=!0,!0})),n.sel.contains(t.from,t.to)>-1&&ke(e),ts(n,t,a,Dr(e)),e.options.lineWrapping||(n.iter(h,i.line+t.text.length,function(we){var Qe=gr(we);Qe>r.maxLineLength&&(r.maxLine=we,r.maxLineLength=Qe,r.maxLineChanged=!0,c=!1)}),c&&(e.curOp.updateMaxLine=!0)),oa(n,i.line),So(e,400);var A=t.text.length-(l.line-i.line)-1;t.full?ga(e):i.line==l.line&&t.text.length==1&&!vs(e.doc,t)?Ra(e,i.line,"text"):ga(e,i.line,l.line+1,A);var se=Ke(e,"changes"),pe=Ke(e,"change");if(pe||se){var Ne={from:i,to:l,text:t.text,removed:t.removed,origin:t.origin};pe&&yn(e,"change",e,Ne),se&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(Ne)}e.display.selForContextMenu=null}function Qo(e,t,a,n,r){var i;n||(n=a),Oe(n,a)<0&&(i=[n,a],a=i[0],n=i[1]),typeof t=="string"&&(t=e.splitLines(t)),Ho(e,{from:a,to:n,text:t,origin:r})}function Ns(e,t,a,n){a1||!(this.children[0]instanceof pi))){var c=[];this.collapse(c),this.children=[new pi(c)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var l=r.lines.length%25+25,c=l;c10);e.parent.maybeSpill()},iterN:function(e,t,a){for(var n=0;ne.display.maxLineLength&&(e.display.maxLine=A,e.display.maxLineLength=se,e.display.maxLineChanged=!0)}n!=null&&e&&this.collapsed&&ga(e,n,r+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Ms(e.doc)),e&&yn(e,"markerCleared",e,this,n,r),t&&ro(e),this.parent&&this.parent.clear()},yo.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var a,n,r=0;r0||l==0&&i.clearWhenEmpty!==!1)return i;if(i.replacedWith&&(i.collapsed=!0,i.widgetNode=ue("span",[i.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||i.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(i.widgetNode.insertLeft=!0)),i.collapsed){if(ca(e,t.line,t,a,i)||t.line!=a.line&&ca(e,a.line,t,a,i))throw new Error("Inserting collapsed marker partially overlapping an existing one");en()}i.addToHistory&&ys(e,{from:t,to:a,origin:"markText"},e.sel,NaN);var c=t.line,h=e.cm,A;if(e.iter(c,a.line+1,function(pe){h&&i.collapsed&&!h.options.lineWrapping&&Vn(pe)==h.display.maxLine&&(A=!0),i.collapsed&&c!=t.line&&ta(pe,0),tn(pe,new _n(i,c==t.line?t.ch:null,c==a.line?a.ch:null)),++c}),i.collapsed&&e.iter(t.line,a.line+1,function(pe){Pa(e,pe)&&ta(pe,0)}),i.clearOnEnter&&Le(i,"beforeCursorEnter",function(){return i.clear()}),i.readOnly&&(Qt(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),i.collapsed&&(i.id=++ks,i.atomic=!0),h){if(A&&(h.curOp.updateMaxLine=!0),i.collapsed)ga(h,t.line,a.line+1);else if(i.className||i.startStyle||i.endStyle||i.css||i.attributes||i.title)for(var se=t.line;se<=a.line;se++)Ra(h,se,"text");i.atomic&&Ms(h.doc),yn(h,"markerAdded",h,i)}return i}var gi=function(e,t){this.markers=e,this.primary=t;for(var a=0;a=0;h--)Ho(this,n[h]);c?Os(this,c):this.cm&&po(this.cm)}),undo:Ua(function(){Fi(this,"undo")}),redo:Ua(function(){Fi(this,"redo")}),undoSelection:Ua(function(){Fi(this,"undo",!0)}),redoSelection:Ua(function(){Fi(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,a=0,n=0;n=e.ch)&&t.push(r.marker.parent||r.marker)}return t},findMarks:function(e,t,a){e=Ye(this,e),t=Ye(this,t);var n=[],r=e.line;return this.iter(e.line,t.line+1,function(i){var l=i.markedSpans;if(l)for(var c=0;c=h.to||h.from==null&&r!=e.line||h.from!=null&&r==t.line&&h.from>=t.ch)&&(!a||a(h.marker))&&n.push(h.marker.parent||h.marker)}++r}),n},getAllMarks:function(){var e=[];return this.iter(function(t){var a=t.markedSpans;if(a)for(var n=0;ne)return t=e,!0;e-=i,++a}),Ye(this,Me(a,t))},indexFromPos:function(e){e=Ye(this,e);var t=e.ch;if(e.linet&&(t=e.from),e.to!=null&&e.to-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var se=e.dataTransfer.getData("Text");if(se){var pe;if(t.state.draggingText&&!t.state.draggingText.copy&&(pe=t.listSelections()),Ui(t.doc,Hr(a,a)),pe)for(var Ne=0;Ne=0;c--)Qo(e.doc,"",n[c].from,n[c].to,"+delete");po(e)})}function os(e,t,a){var n=Je(e.text,t+a,a);return n<0||n>e.text.length?null:n}function is(e,t,a){var n=os(e,t.ch,a);return n==null?null:new Me(t.line,n,a<0?"after":"before")}function ss(e,t,a,n,r){if(e){t.doc.direction=="rtl"&&(r=-r);var i=Ht(a,t.doc.direction);if(i){var l=r<0?v(i):i[0],c=r<0==(l.level==1),h=c?"after":"before",A;if(l.level>0||t.doc.direction=="rtl"){var se=me(t,a);A=r<0?a.text.length-1:0;var pe=Ae(t,se,A).top;A=$e(function(Ne){return Ae(t,se,Ne).top==pe},r<0==(l.level==1)?l.from:l.to-1,A),h=="before"&&(A=os(a,A,1))}else A=r<0?l.to:l.from;return new Me(n,A,h)}}return new Me(n,r<0?a.text.length:0,r<0?"before":"after")}function Nl(e,t,a,n){var r=Ht(t,e.doc.direction);if(!r)return is(t,a,n);a.ch>=t.text.length?(a.ch=t.text.length,a.sticky="before"):a.ch<=0&&(a.ch=0,a.sticky="after");var i=vt(r,a.ch,a.sticky),l=r[i];if(e.doc.direction=="ltr"&&l.level%2==0&&(n>0?l.to>a.ch:l.from=l.from&&Ne>=se.begin)){var we=pe?"before":"after";return new Me(a.line,Ne,we)}}var Qe=function(Et,Ot,yt){for(var jt=function(Aa,er){return er?new Me(a.line,c(Aa,1),"before"):new Me(a.line,Aa,"after")};Et>=0&&Et0==(on.level!=1),jn=Vt?yt.begin:c(yt.end,-1);if(on.from<=jn&&jn0?se.end:c(se.begin,-1);return ft!=null&&!(n>0&&ft==t.text.length)&&(et=Qe(n>0?0:r.length-1,n,A(ft)),et)?et:null}var yi={selectAll:Ps,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Se)},killLine:function(e){return Vo(e,function(t){if(t.empty()){var a=tt(e.doc,t.head.line).text.length;return t.head.ch==a&&t.head.line0)r=new Me(r.line,r.ch+1),e.replaceRange(i.charAt(r.ch-1)+i.charAt(r.ch-2),Me(r.line,r.ch-2),r,"+transpose");else if(r.line>e.doc.first){var l=tt(e.doc,r.line-1).text;l&&(r=new Me(r.line,1),e.replaceRange(i.charAt(0)+e.doc.lineSeparator()+l.charAt(l.length-1),Me(r.line-1,l.length-1),r,"+transpose"))}}a.push(new la(r,r))}e.setSelections(a)})},newlineAndIndent:function(e){return fr(e,function(){for(var t=e.listSelections(),a=t.length-1;a>=0;a--)e.replaceRange(e.doc.lineSeparator(),t[a].anchor,t[a].head,"+input");t=e.listSelections();for(var n=0;ne&&Oe(t,this.pos)==0&&a==this.button};var Ai,xi;function Kl(e,t){var a=+new Date;return xi&&xi.compare(a,e,t)?(Ai=xi=null,"triple"):Ai&&Ai.compare(a,e,t)?(xi=new us(a,e,t),Ai=null,"double"):(Ai=new us(a,e,t),xi=null,"single")}function el(e){var t=this,a=t.display;if(Ue(t,e)||a.activeTouch&&a.input.supportsTouch())return;if(a.input.ensurePolled(),a.shift=e.shiftKey,Ur(a,e)){z||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(cs(t,e))return;var n=Xa(t,e),r=Ct(e),i=n?Kl(n,r):"single";if(window.focus(),r==1&&t.state.selectingText&&t.state.selectingText(e),n&&Wl(t,r,n,i,e))return;r==1?n?Hl(t,n,i,e):lt(e)==a.scroller&&Ze(e):r==2?(n&&Ii(t.doc,n),setTimeout(function(){return a.input.focus()},20)):r==3&&(de?t.display.input.onContextMenu(e):ti(t))}function Wl(e,t,a,n,r){var i="Click";return n=="double"?i="Double"+i:n=="triple"&&(i="Triple"+i),i=(t==1?"Left":t==2?"Middle":"Right")+i,Ci(e,Qs(i,r),r,function(l){if(typeof l=="string"&&(l=yi[l]),!l)return!1;var c=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),c=l(e,a)!=xe}finally{e.state.suppressEdits=!1}return c})}function zl(e,t,a){var n=e.getOption("configureMouse"),r=n?n(e,t,a):{};if(r.unit==null){var i=S?a.shiftKey&&a.metaKey:a.altKey;r.unit=i?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(r.extend==null||e.doc.extend)&&(r.extend=e.doc.extend||a.shiftKey),r.addNew==null&&(r.addNew=y?a.metaKey:a.ctrlKey),r.moveOnDrag==null&&(r.moveOnDrag=!(y?a.altKey:a.ctrlKey)),r}function Hl(e,t,a,n){fe?setTimeout(K(Oi,e),0):e.curOp.focus=N();var r=zl(e,a,n),i=e.doc.sel,l;e.options.dragDrop&&bt&&!e.isReadOnly()&&a=="single"&&(l=i.contains(t))>-1&&(Oe((l=i.ranges[l]).from(),t)<0||t.xRel>0)&&(Oe(l.to(),t)>0||t.xRel<0)?Ql(e,n,t,r):Gl(e,n,t,r)}function Ql(e,t,a,n){var r=e.display,i=!1,l=Ia(e,function(A){z&&(r.scroller.draggable=!1),e.state.draggingText=!1,st(r.wrapper.ownerDocument,"mouseup",l),st(r.wrapper.ownerDocument,"mousemove",c),st(r.scroller,"dragstart",h),st(r.scroller,"drop",l),i||(Ze(A),n.addNew||Ii(e.doc,a,null,null,n.extend),z&&!O||fe&&oe==9?setTimeout(function(){r.wrapper.ownerDocument.body.focus({preventScroll:!0}),r.input.focus()},20):r.input.focus())}),c=function(A){i=i||Math.abs(t.clientX-A.clientX)+Math.abs(t.clientY-A.clientY)>=10},h=function(){return i=!0};z&&(r.scroller.draggable=!0),e.state.draggingText=l,l.copy=!n.moveOnDrag,r.scroller.dragDrop&&r.scroller.dragDrop(),Le(r.wrapper.ownerDocument,"mouseup",l),Le(r.wrapper.ownerDocument,"mousemove",c),Le(r.scroller,"dragstart",h),Le(r.scroller,"drop",l),ti(e),setTimeout(function(){return r.input.focus()},20)}function tl(e,t,a){if(a=="char")return new la(t,t);if(a=="word")return e.findWordAt(t);if(a=="line")return new la(Me(t.line,0),Ye(e.doc,Me(t.line+1,0)));var n=a(e,t);return new la(n.from,n.to)}function Gl(e,t,a,n){var r=e.display,i=e.doc;Ze(t);var l,c,h=i.sel,A=h.ranges;if(n.addNew&&!n.extend?(c=i.sel.contains(a),c>-1?l=A[c]:l=new la(a,a)):(l=i.sel.primary(),c=i.sel.primIndex),n.unit=="rectangle")n.addNew||(l=new la(a,a)),a=Xa(e,t,!0,!0),c=-1;else{var se=tl(e,a,n.unit);n.extend?l=as(l,se.anchor,se.head,n.extend):l=se}n.addNew?c==-1?(c=A.length,lr(i,jr(e,A.concat([l]),c),{scroll:!1,origin:"*mouse"})):A.length>1&&A[c].empty()&&n.unit=="char"&&!n.extend?(lr(i,jr(e,A.slice(0,c).concat(A.slice(c+1)),0),{scroll:!1,origin:"*mouse"}),h=i.sel):rs(i,c,l,X):(c=0,lr(i,new pr([l],0),X),h=i.sel);var pe=a;function Ne(yt){if(Oe(pe,yt)==0)return;if(pe=yt,n.unit=="rectangle"){for(var jt=[],on=e.options.tabSize,Vt=B(tt(i,a.line).text,a.ch,on),jn=B(tt(i,yt.line).text,yt.ch,on),Aa=Math.min(Vt,jn),er=Math.max(Vt,jn),wa=Math.min(a.line,yt.line),_r=Math.min(e.lastLine(),Math.max(a.line,yt.line));wa<=_r;wa++){var Cr=tt(i,wa).text,Wa=Ee(Cr,Aa,on);Aa==er?jt.push(new la(Me(wa,Wa),Me(wa,Wa))):Cr.length>Wa&&jt.push(new la(Me(wa,Wa),Me(wa,Ee(Cr,er,on))))}jt.length||jt.push(new la(a,a)),lr(i,jr(e,h.ranges.slice(0,c).concat(jt),c),{origin:"*mouse",scroll:!1}),e.scrollIntoView(yt)}else{var Ar=l,or=tl(e,yt,n.unit),$a=Ar.anchor,za;Oe(or.anchor,$a)>0?(za=or.head,$a=Nt(Ar.from(),or.anchor)):(za=or.anchor,$a=dt(Ar.to(),or.head));var Na=h.ranges.slice(0);Na[c]=Jl(e,new la(Ye(i,$a),za)),lr(i,jr(e,Na,c),X)}}var we=r.wrapper.getBoundingClientRect(),Qe=0;function et(yt){var jt=++Qe,on=Xa(e,yt,!0,n.unit=="rectangle");if(!on)return;if(Oe(on,pe)!=0){e.curOp.focus=N(),Ne(on);var Vt=No(r,i);(on.line>=Vt.to||on.linewe.bottom?20:0;jn&&setTimeout(Ia(e,function(){if(Qe!=jt)return;r.scroller.scrollTop+=jn,et(yt)}),50)}}function ft(yt){e.state.selectingText=!1,Qe=Infinity,yt&&(Ze(yt),r.input.focus()),st(r.wrapper.ownerDocument,"mousemove",Et),st(r.wrapper.ownerDocument,"mouseup",Ot),i.history.lastSelOrigin=null}var Et=Ia(e,function(yt){yt.buttons===0||!Ct(yt)?ft(yt):et(yt)}),Ot=Ia(e,ft);e.state.selectingText=Ot,Le(r.wrapper.ownerDocument,"mousemove",Et),Le(r.wrapper.ownerDocument,"mouseup",Ot)}function Jl(e,t){var a=t.anchor,n=t.head,r=tt(e.doc,a.line);if(Oe(a,n)==0&&a.sticky==n.sticky)return t;var i=Ht(r);if(!i)return t;var l=vt(i,a.ch,a.sticky),c=i[l];if(c.from!=a.ch&&c.to!=a.ch)return t;var h=l+(c.from==a.ch==(c.level!=1)?0:1);if(h==0||h==i.length)return t;var A;if(n.line!=a.line)A=(n.line-a.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var se=vt(i,n.ch,n.sticky),pe=se-l||(n.ch-a.ch)*(c.level==1?-1:1);se==h-1||se==h?A=pe<0:A=pe>0}var Ne=i[h+(A?-1:0)],we=A==(Ne.level==1),Qe=we?Ne.from:Ne.to,et=we?"after":"before";return a.ch==Qe&&a.sticky==et?t:new la(new Me(a.line,Qe,et),n)}function nl(e,t,a,n){var r,i;if(t.touches)r=t.touches[0].clientX,i=t.touches[0].clientY;else try{r=t.clientX,i=t.clientY}catch(Ne){return!1}if(r>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&Ze(t);var l=e.display,c=l.lineDiv.getBoundingClientRect();if(i>c.bottom||!Ke(e,a))return Xe(t);i-=c.top-l.viewOffset;for(var h=0;h=r){var se=Tt(e.doc,i),pe=e.display.gutterSpecs[h];return rt(e,a,e,se,pe.className,t),Xe(t)}}}function cs(e,t){return nl(e,t,"gutterClick",!0)}function al(e,t){if(Ur(e.display,t)||Vl(e,t))return;if(Ue(e,t,"contextmenu"))return;de||e.display.input.onContextMenu(t)}function Vl(e,t){return Ke(e,"gutterContextMenu")?nl(e,t,"gutterContextMenu",!1):!1}function rl(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),On(e)}var Xo={toString:function(){return"CodeMirror.Init"}},ol={},zi={};function Xl(e){var t=e.optionHandlers;function a(n,r,i,l){e.defaults[n]=r,i&&(t[n]=l?function(c,h,A){A!=Xo&&i(c,h,A)}:i)}e.defineOption=a,e.Init=Xo,a("value","",function(n,r){return n.setValue(r)},!0),a("mode",null,function(n,r){n.doc.modeOption=r,io(n)},!0),a("indentUnit",2,io,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(n){di(n),On(n),ga(n)},!0),a("lineSeparator",null,function(n,r){if(n.doc.lineSep=r,!r)return;var i=[],l=n.doc.first;n.doc.iter(function(h){for(var A=0;;){var se=h.text.indexOf(r,A);if(se==-1)break;A=se+r.length,i.push(Me(l,se))}l++});for(var c=i.length-1;c>=0;c--)Qo(n.doc,r,i[c],Me(i[c].line,i[c].ch+r.length))}),a("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(n,r,i){n.state.specialChars=new RegExp(r.source+(r.test(" ")?"":"| "),"g"),i!=Xo&&n.refresh()}),a("specialCharPlaceholder",Ka,function(n){return n.refresh()},!0),a("electricChars",!0),a("inputStyle",p?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),a("spellcheck",!1,function(n,r){return n.getInputField().spellcheck=r},!0),a("autocorrect",!1,function(n,r){return n.getInputField().autocorrect=r},!0),a("autocapitalize",!1,function(n,r){return n.getInputField().autocapitalize=r},!0),a("rtlMoveVisually",!U),a("wholeLineUpdateBefore",!0),a("theme","default",function(n){rl(n),zr(n)},!0),a("keyMap","default",function(n,r,i){var l=Ki(r),c=i!=Xo&&Ki(i);c&&c.detach&&c.detach(n,l),l.attach&&l.attach(n,c||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,Zl,!0),a("gutters",[],function(n,r){n.display.gutterSpecs=hr(r,n.options.lineNumbers),zr(n)},!0),a("fixedGutter",!0,function(n,r){n.display.gutters.style.left=r?sr(n.display)+"px":"0",n.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(n){return ao(n)},!0),a("scrollbarStyle","native",function(n){Uo(n),ao(n),n.display.scrollbars.setScrollTop(n.doc.scrollTop),n.display.scrollbars.setScrollLeft(n.doc.scrollLeft)},!0),a("lineNumbers",!1,function(n,r){n.display.gutterSpecs=hr(n.options.gutters,r),zr(n)},!0),a("firstLineNumber",1,zr,!0),a("lineNumberFormatter",function(n){return n},zr,!0),a("showCursorWhenSelecting",!1,ma,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(n,r){r=="nocursor"&&(ho(n),n.display.input.blur()),n.display.input.readOnlyChanged(r)}),a("screenReaderLabel",null,function(n,r){r=r===""?null:r,n.display.input.screenReaderLabelChanged(r)}),a("disableInput",!1,function(n,r){r||n.display.input.reset()},!0),a("dragDrop",!0,Yl),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,ma,!0),a("singleCursorHeightPerLine",!0,ma,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,di,!0),a("addModeClass",!1,di,!0),a("pollInterval",100),a("undoDepth",200,function(n,r){return n.doc.history.undoDepth=r}),a("historyEventDelay",1250),a("viewportMargin",10,function(n){return n.refresh()},!0),a("maxHighlightLength",1e4,di,!0),a("moveInputWithCursor",!0,function(n,r){r||n.display.input.resetPosition()}),a("tabindex",null,function(n,r){return n.display.input.getField().tabIndex=r||""}),a("autofocus",null),a("direction","ltr",function(n,r){return n.doc.setDirection(r)},!0),a("phrases",null)}function Yl(e,t,a){var n=a&&a!=Xo;if(!t!=!n){var r=e.display.dragFunctions,i=t?Le:st;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Zl(e){e.options.lineWrapping?(H(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(ae(e.display.wrapper,"CodeMirror-wrap"),br(e)),dr(e),ga(e),On(e),setTimeout(function(){return ao(e)},100)}function Da(e,t){var a=this;if(!(this instanceof Da))return new Da(e,t);this.options=t=t?ee(t):{},ee(ol,t,!1);var n=t.value;typeof n=="string"?n=new yr(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var r=new Da.inputStyles[t.inputStyle](this),i=this.display=new Ro(e,n,r,t);i.wrapper.CodeMirror=this,rl(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Uo(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new te,keySeq:null,specialChars:null},t.autofocus&&!p&&i.input.focus(),fe&&oe<11&&setTimeout(function(){return a.display.input.reset(!0)},20),ql(this),Dl(),$r(this),this.curOp.forceUpdate=!0,gs(this,n),t.autofocus&&!p||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&Zr(a)},20):ho(this);for(var l in zi)zi.hasOwnProperty(l)&&zi[l](this,t[l],Xo);Za(this),t.finishInit&&t.finishInit(this);for(var c=0;c20*20}Le(t.scroller,"touchstart",function(h){if(!Ue(e,h)&&!i(h)&&!cs(e,h)){t.input.ensurePolled(),clearTimeout(a);var A=+new Date;t.activeTouch={start:A,moved:!1,prev:A-n.end<=300?n:null},h.touches.length==1&&(t.activeTouch.left=h.touches[0].pageX,t.activeTouch.top=h.touches[0].pageY)}}),Le(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),Le(t.scroller,"touchend",function(h){var A=t.activeTouch;if(A&&!Ur(t,h)&&A.left!=null&&!A.moved&&new Date-A.start<300){var se=e.coordsChar(t.activeTouch,"page"),pe;!A.prev||l(A,A.prev)?pe=new la(se,se):!A.prev.prev||l(A,A.prev.prev)?pe=e.findWordAt(se):pe=new la(Me(se.line,0),Ye(e.doc,Me(se.line+1,0))),e.setSelection(pe.anchor,pe.head),e.focus(),Ze(h)}r()}),Le(t.scroller,"touchcancel",r),Le(t.scroller,"scroll",function(){t.scroller.clientHeight&&(vo(e,t.scroller.scrollTop),wr(e,t.scroller.scrollLeft,!0),rt(e,"scroll",e))}),Le(t.scroller,"mousewheel",function(h){return ui(e,h)}),Le(t.scroller,"DOMMouseScroll",function(h){return ui(e,h)}),Le(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(h){Ue(e,h)||ut(h)},over:function(h){Ue(e,h)||(Rl(e,h),ut(h))},start:function(h){return Ml(e,h)},drop:Ia(e,Sl),leave:function(h){Ue(e,h)||Ks(e)}};var c=t.input.getField();Le(c,"keyup",function(h){return qs.call(e,h)}),Le(c,"keydown",Ia(e,Zs)),Le(c,"keypress",Ia(e,$s)),Le(c,"focus",function(h){return Zr(e,h)}),Le(c,"blur",function(h){return ho(e,h)})}var ds=[];Da.defineInitHook=function(e){return ds.push(e)};function _i(e,t,a,n){var r=e.doc,i;a==null&&(a="add"),a=="smart"&&(r.mode.indent?i=qt(e,t).state:a="prev");var l=e.options.tabSize,c=tt(r,t),h=B(c.text,null,l);c.stateAfter&&(c.stateAfter=null);var A=c.text.match(/^\s*/)[0],se;if(!n&&!/\S/.test(c.text))se=0,a="not";else if(a=="smart"&&(se=r.mode.indent(i,c.text.slice(A.length),c.text),se==xe||se>150)){if(!n)return;a="prev"}a=="prev"?t>r.first?se=B(tt(r,t-1).text,null,l):se=0:a=="add"?se=h+e.options.indentUnit:a=="subtract"?se=h-e.options.indentUnit:typeof a=="number"&&(se=h+a),se=Math.max(0,se);var pe="",Ne=0;if(e.options.indentWithTabs)for(var we=Math.floor(se/l);we;--we)Ne+=l,pe+=" ";if(Nel,h=fn(t),A=null;if(c&&n.ranges.length>1)if(Gr&&Gr.text.join(` +`)==t){if(n.ranges.length%Gr.text.length==0){A=[];for(var se=0;se=0;Ne--){var we=n.ranges[Ne],Qe=we.from(),et=we.to();we.empty()&&(a&&a>0?Qe=Me(Qe.line,Qe.ch-a):e.state.overwrite&&!c?et=Me(et.line,Math.min(tt(i,et.line).text.length,et.ch+v(h).length)):c&&Gr&&Gr.lineWise&&Gr.text.join(` `)==h.join(` `)&&(Qe=et=Me(Qe.line,0)));var ft={from:Qe,to:et,text:A?A[Ne%A.length]:h,origin:r||(c?"paste":e.state.cutIncoming>l?"cut":"+input")};Ho(e.doc,ft),yn(e,"inputRead",e,ft)}t&&!c&&sl(e,t),po(e),e.curOp.updateInput<2&&(e.curOp.updateInput=pe),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function il(e,t){var a=e.clipboardData&&e.clipboardData.getData("Text");if(a)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&fr(t,function(){return fs(t,a,0,null,"paste")}),!0}function sl(e,t){if(!e.options.electricChars||!e.options.smartIndent)return;for(var a=e.doc.sel,n=a.ranges.length-1;n>=0;n--){var r=a.ranges[n];if(r.head.ch>100||n&&a.ranges[n-1].head.line==r.head.line)continue;var i=e.getModeAt(r.head),l=!1;if(i.electricChars){for(var c=0;c-1){l=_i(e,r.head.line,"smart");break}}else i.electricInput&&(i.electricInput.test(tt(e.doc,r.head.line).text.slice(0,r.head.ch))&&(l=_i(e,r.head.line,"smart")));l&&yn(e,"electricInput",e,r.head.line)}}function ll(e){for(var t=[],a=[],n=0;ni&&(_i(this,c.head.line,n,!0),i=c.head.line,l==this.doc.sel.primIndex&&po(this));else{var h=c.from(),A=c.to(),se=Math.max(i,h.line);i=Math.min(this.lastLine(),A.line-(A.ch?0:1))+1;for(var pe=se;pe0&&rs(this.doc,l,new la(h,Ne[l].to()),Se)}}}),getTokenAt:function(n,r){return Hn(this,n,r)},getLineTokens:function(n,r){return Hn(this,Me(n),r,!0)},getTokenTypeAt:function(n){n=Ye(this.doc,n);var r=Ln(this,tt(this.doc,n.line)),i=0,l=(r.length-1)/2,c=n.ch,h;if(c==0)h=r[2];else for(;;){var A=i+l>>1;if((A?r[A*2-1]:0)>=c)l=A;else if(r[A*2+1]h&&(n=h,l=!0),c=tt(this.doc,n)}else c=n;return Yn(this,c,{top:0,left:0},r||"page",i||l).top+(l?this.doc.height-nr(c):0)},defaultTextHeight:function(){return ja(this.display)},defaultCharWidth:function(){return Va(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(n,r,i,l,c){var h=this.display;n=Bn(this,Ye(this.doc,n));var A=n.bottom,se=n.left;if(r.style.position="absolute",r.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(r),h.sizer.appendChild(r),l=="over")A=n.top;else if(l=="above"||l=="near"){var pe=Math.max(h.wrapper.clientHeight,this.doc.height),Ne=Math.max(h.sizer.clientWidth,h.lineSpace.clientWidth);(l=="above"||n.bottom+r.offsetHeight>pe)&&n.top>r.offsetHeight?A=n.top-r.offsetHeight:n.bottom+r.offsetHeight<=pe&&(A=n.bottom),se+r.offsetWidth>Ne&&(se=Ne-r.offsetWidth)}r.style.top=A+"px",r.style.left=r.style.right="",c=="right"?(se=h.sizer.clientWidth-r.offsetWidth,r.style.right="0px"):(c=="left"?se=0:c=="middle"&&(se=(h.sizer.clientWidth-r.offsetWidth)/2),r.style.left=se+"px"),i&&Si(this,{left:se,top:A,right:se+r.offsetWidth,bottom:A+r.offsetHeight})},triggerOnKeyDown:rr(Zs),triggerOnKeyPress:rr($s),triggerOnKeyUp:qs,triggerOnMouseDown:rr(el),execCommand:function(n){if(yi.hasOwnProperty(n))return yi[n].call(null,this)},triggerElectric:rr(function(n){sl(this,n)}),findPosH:function(n,r,i,l){var c=1;r<0&&(c=-1,r=-r);for(var h=Ye(this.doc,n),A=0;A0&&se(i.charAt(l-1));)--l;for(;c.5||this.options.lineWrapping)&&dr(this),rt(this,"refresh",this)}),swapDoc:rr(function(n){var r=this.doc;return r.cm=null,this.state.selectingText&&this.state.selectingText(),gs(this,n),On(this),this.display.input.reset(),mo(this,n.scrollLeft,n.scrollTop),this.curOp.forceScroll=!0,yn(this,"swapDoc",this,r),r}),phrase:function(n){var r=this.options.phrases;return r&&Object.prototype.hasOwnProperty.call(r,n)?r[n]:n},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},He(e),e.registerHelper=function(n,r,i){a.hasOwnProperty(n)||(a[n]=e[n]={_global:[]}),a[n][r]=i},e.registerGlobalHelper=function(n,r,i,l){e.registerHelper(n,r,l),a[n]._global.push({pred:i,val:l})}}function hs(e,t,a,n,r){var i=t,l=a,c=tt(e,t.line),h=r&&e.direction=="rtl"?-a:a;function A(){var Ot=t.line+h;return Ot=e.first+e.size?!1:(t=new Me(Ot,t.ch,t.sticky),c=tt(e,Ot))}function se(Ot){var yt;if(n=="codepoint"){var jt=c.text.charCodeAt(t.ch+(n>0?0:-1));isNaN(jt)?yt=null:yt=new Me(t.line,Math.max(0,Math.min(c.text.length,t.ch+a*(jt>=55296&&jt<56320?2:1))),-a)}else r?yt=Nl(e.cm,c,t,a):yt=is(c,t,a);if(yt==null)if(!Ot&&A())t=ss(r,e.cm,c,t.line,h);else return!1;else t=yt;return!0}if(n=="char"||n=="codepoint")se();else if(n=="column")se(!0);else if(n=="word"||n=="group")for(var pe=null,Ne=n=="group",we=e.cm&&e.cm.getHelper(t,"wordChars"),Qe=!0;!(a<0&&!se(!Qe));Qe=!1){var et=c.text.charAt(t.ch)||` `,ft=De(et,we)?"w":Ne&&et==` -`?"n":!Ne||/\s/.test(et)?null:"p";if(Ne&&!Qe&&!ft&&(ft="s"),pe&&pe!=ft){a<0&&(a=1,se(),t.sticky="after");break}if(ft&&(pe=ft),a>0&&!se(!Qe))break}var bt=ki(e,t,i,l,!0);return at(i,bt)&&(bt.hitSide=!0),bt}function dl(e,t,a,n){var r=e.doc,i=t.left,l;if(n=="page"){var c=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),h=Math.max(c-.5*ja(e.display),3);l=(a>0?t.bottom:t.top)+a*h}else n=="line"&&(l=a>0?t.bottom+3:t.top-3);for(var A;!(A=Wn(e,i,l),!A.outside);){if(a<0?l<=0:l>=r.height){A.hitSide=!0;break}l+=a*5}return A}var Ea=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new te,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ea.prototype.init=function(e){var t=this,a=this,n=a.cm,r=a.div=e.lineDiv;ul(r,n.options.spellcheck,n.options.autocorrect,n.options.autocapitalize);function i(c){for(var h=c.target;h;h=h.parentNode){if(h==r)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(h.className))break}return!1}Le(r,"paste",function(c){if(!i(c)||Ue(n,c)||il(c,n))return;oe<=11&&setTimeout(Ia(n,function(){return t.updateFromDOM()}),20)}),Le(r,"compositionstart",function(c){t.composing={data:c.data,done:!1}}),Le(r,"compositionupdate",function(c){t.composing||(t.composing={data:c.data,done:!1})}),Le(r,"compositionend",function(c){t.composing&&(c.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),Le(r,"touchstart",function(){return a.forceCompositionEnd()}),Le(r,"input",function(){t.composing||t.readFromDOMSoon()});function l(c){if(!i(c)||Ue(n,c))return;if(n.somethingSelected())Hi({lineWise:!1,text:n.getSelections()}),c.type=="cut"&&n.replaceSelection("",null,"cut");else if(n.options.lineWiseCopyCut){var h=ll(n);Hi({lineWise:!0,text:h.text}),c.type=="cut"&&n.operation(function(){n.setSelections(h.ranges,0,Se),n.replaceSelection("",null,"cut")})}else return;if(c.clipboardData){c.clipboardData.clearData();var A=Gr.text.join(` +`?"n":!Ne||/\s/.test(et)?null:"p";if(Ne&&!Qe&&!ft&&(ft="s"),pe&&pe!=ft){a<0&&(a=1,se(),t.sticky="after");break}if(ft&&(pe=ft),a>0&&!se(!Qe))break}var Et=ki(e,t,i,l,!0);return at(i,Et)&&(Et.hitSide=!0),Et}function dl(e,t,a,n){var r=e.doc,i=t.left,l;if(n=="page"){var c=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),h=Math.max(c-.5*ja(e.display),3);l=(a>0?t.bottom:t.top)+a*h}else n=="line"&&(l=a>0?t.bottom+3:t.top-3);for(var A;!(A=Wn(e,i,l),!A.outside);){if(a<0?l<=0:l>=r.height){A.hitSide=!0;break}l+=a*5}return A}var ba=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new te,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ba.prototype.init=function(e){var t=this,a=this,n=a.cm,r=a.div=e.lineDiv;ul(r,n.options.spellcheck,n.options.autocorrect,n.options.autocapitalize);function i(c){for(var h=c.target;h;h=h.parentNode){if(h==r)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(h.className))break}return!1}Le(r,"paste",function(c){if(!i(c)||Ue(n,c)||il(c,n))return;oe<=11&&setTimeout(Ia(n,function(){return t.updateFromDOM()}),20)}),Le(r,"compositionstart",function(c){t.composing={data:c.data,done:!1}}),Le(r,"compositionupdate",function(c){t.composing||(t.composing={data:c.data,done:!1})}),Le(r,"compositionend",function(c){t.composing&&(c.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),Le(r,"touchstart",function(){return a.forceCompositionEnd()}),Le(r,"input",function(){t.composing||t.readFromDOMSoon()});function l(c){if(!i(c)||Ue(n,c))return;if(n.somethingSelected())Hi({lineWise:!1,text:n.getSelections()}),c.type=="cut"&&n.replaceSelection("",null,"cut");else if(n.options.lineWiseCopyCut){var h=ll(n);Hi({lineWise:!0,text:h.text}),c.type=="cut"&&n.operation(function(){n.setSelections(h.ranges,0,Se),n.replaceSelection("",null,"cut")})}else return;if(c.clipboardData){c.clipboardData.clearData();var A=Gr.text.join(` `);if(c.clipboardData.setData("Text",A),c.clipboardData.getData("Text")==A){c.preventDefault();return}}var se=cl(),pe=se.firstChild;n.display.lineSpace.insertBefore(se,n.display.lineSpace.firstChild),pe.value=Gr.text.join(` -`);var Ne=document.activeElement;j(pe),setTimeout(function(){n.display.lineSpace.removeChild(se),Ne.focus(),Ne==r&&a.showPrimarySelection()},50)}Le(r,"copy",l),Le(r,"cut",l)},Ea.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Ea.prototype.prepareSelection=function(){var e=kr(this.cm,!1);return e.focus=document.activeElement==this.div,e},Ea.prototype.showSelection=function(e,t){if(!e||!this.cm.display.view.length)return;(e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e)},Ea.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ea.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,a=t.doc.sel.primary(),n=a.from(),r=a.to();if(t.display.viewTo==t.display.viewFrom||n.line>=t.display.viewTo||r.line=t.display.viewFrom&&fl(t,n)||{node:c[0].measure.map[2],offset:0},A=r.linee.firstLine()&&(n=Me(n.line-1,tt(e.doc,n.line-1).length)),r.ch==tt(e.doc,r.line).text.length&&r.linet.viewTo-1)return!1;var i,l,c;n.line==t.viewFrom||(i=Ca(e,n.line))==0?(l=$t(t.view[0].line),c=t.view[0].node):(l=$t(t.view[i].line),c=t.view[i-1].node.nextSibling);var h=Ca(e,r.line),A,se;if(h==t.view.length-1?(A=t.viewTo-1,se=t.lineDiv.lastChild):(A=$t(t.view[h+1].line)-1,se=t.view[h+1].node.previousSibling),!c)return!1;for(var pe=e.doc.splitLines(tu(e,c,se,l,A)),Ne=En(e.doc,Me(l,0),Me(A,tt(e.doc,A).text.length));pe.length>1&&Ne.length>1;)if(v(pe)==v(Ne))pe.pop(),Ne.pop(),A--;else if(pe[0]==Ne[0])pe.shift(),Ne.shift(),l++;else break;for(var we=0,Qe=0,et=pe[0],ft=Ne[0],bt=Math.min(et.length,ft.length);wen.ch&&Ot.charCodeAt(Ot.length-Qe-1)==yt.charCodeAt(yt.length-Qe-1);)we--,Qe++;pe[pe.length-1]=Ot.slice(0,Ot.length-Qe).replace(/^\u200b+/,""),pe[0]=pe[0].slice(we).replace(/\u200b+$/,"");var on=Me(l,we),Vt=Me(A,Ne.length?v(Ne).length-Qe:0);if(pe.length>1||pe[0]||Oe(on,Vt))return Qo(e.doc,pe,on,Vt,"+input"),!0},Ea.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ea.prototype.reset=function(){this.forceCompositionEnd()},Ea.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},Ea.prototype.readFromDOMSoon=function(){var e=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80)},Ea.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&fr(this.cm,function(){return ga(e.cm)})},Ea.prototype.setUneditable=function(e){e.contentEditable="false"},Ea.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||Ia(this.cm,fs)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},Ea.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Ea.prototype.onContextMenu=function(){},Ea.prototype.resetPosition=function(){},Ea.prototype.needsContentAttribute=!0;function fl(e,t){var a=ve(e,t.line);if(!a||a.hidden)return null;var n=tt(e.doc,t.line),r=E(a,n,t.line),i=Ht(n,e.doc.direction),l="left";if(i){var c=vt(i,t.ch);l=c%2?"right":"left"}var h=Ve(r.map,t.ch,l);return h.offset=h.collapse=="right"?h.end:h.start,h}function eu(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function Yo(e,t){return t&&(e.bad=!0),e}function tu(e,t,a,n,r){var i="",l=!1,c=e.doc.lineSeparator(),h=!1;function A(we){return function(Qe){return Qe.id==we}}function se(){l&&(i+=c,h&&(i+=c),l=h=!1)}function pe(we){we&&(se(),i+=we)}function Ne(we){if(we.nodeType==1){var Qe=we.getAttribute("cm-text");if(Qe){pe(Qe);return}var et=we.getAttribute("cm-marker"),ft;if(et){var bt=e.findMarks(Me(n,0),Me(r+1,0),A(+et));bt.length&&(ft=bt[0].find(0))&&pe(En(e.doc,ft.from,ft.to).join(c));return}if(we.getAttribute("contenteditable")=="false")return;var Ot=/^(pre|div|p|li|table|br)$/i.test(we.nodeName);if(!/^br$/i.test(we.nodeName)&&we.textContent.length==0)return;Ot&&se();for(var yt=0;yt=9&&t.hasSelection&&(t.hasSelection=null),a.poll()}),Le(r,"paste",function(l){if(Ue(n,l)||il(l,n))return;n.state.pasteIncoming=+new Date,a.fastPoll()});function i(l){if(Ue(n,l))return;if(n.somethingSelected())Hi({lineWise:!1,text:n.getSelections()});else if(n.options.lineWiseCopyCut){var c=ll(n);Hi({lineWise:!0,text:c.text}),l.type=="cut"?n.setSelections(c.ranges,null,Se):(a.prevInput="",r.value=c.text.join(` +`);var Ne=document.activeElement;j(pe),setTimeout(function(){n.display.lineSpace.removeChild(se),Ne.focus(),Ne==r&&a.showPrimarySelection()},50)}Le(r,"copy",l),Le(r,"cut",l)},ba.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},ba.prototype.prepareSelection=function(){var e=kr(this.cm,!1);return e.focus=document.activeElement==this.div,e},ba.prototype.showSelection=function(e,t){if(!e||!this.cm.display.view.length)return;(e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e)},ba.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ba.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,a=t.doc.sel.primary(),n=a.from(),r=a.to();if(t.display.viewTo==t.display.viewFrom||n.line>=t.display.viewTo||r.line=t.display.viewFrom&&fl(t,n)||{node:c[0].measure.map[2],offset:0},A=r.linee.firstLine()&&(n=Me(n.line-1,tt(e.doc,n.line-1).length)),r.ch==tt(e.doc,r.line).text.length&&r.linet.viewTo-1)return!1;var i,l,c;n.line==t.viewFrom||(i=Ca(e,n.line))==0?(l=$t(t.view[0].line),c=t.view[0].node):(l=$t(t.view[i].line),c=t.view[i-1].node.nextSibling);var h=Ca(e,r.line),A,se;if(h==t.view.length-1?(A=t.viewTo-1,se=t.lineDiv.lastChild):(A=$t(t.view[h+1].line)-1,se=t.view[h+1].node.previousSibling),!c)return!1;for(var pe=e.doc.splitLines(tu(e,c,se,l,A)),Ne=bn(e.doc,Me(l,0),Me(A,tt(e.doc,A).text.length));pe.length>1&&Ne.length>1;)if(v(pe)==v(Ne))pe.pop(),Ne.pop(),A--;else if(pe[0]==Ne[0])pe.shift(),Ne.shift(),l++;else break;for(var we=0,Qe=0,et=pe[0],ft=Ne[0],Et=Math.min(et.length,ft.length);wen.ch&&Ot.charCodeAt(Ot.length-Qe-1)==yt.charCodeAt(yt.length-Qe-1);)we--,Qe++;pe[pe.length-1]=Ot.slice(0,Ot.length-Qe).replace(/^\u200b+/,""),pe[0]=pe[0].slice(we).replace(/\u200b+$/,"");var on=Me(l,we),Vt=Me(A,Ne.length?v(Ne).length-Qe:0);if(pe.length>1||pe[0]||Oe(on,Vt))return Qo(e.doc,pe,on,Vt,"+input"),!0},ba.prototype.ensurePolled=function(){this.forceCompositionEnd()},ba.prototype.reset=function(){this.forceCompositionEnd()},ba.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},ba.prototype.readFromDOMSoon=function(){var e=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80)},ba.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&fr(this.cm,function(){return ga(e.cm)})},ba.prototype.setUneditable=function(e){e.contentEditable="false"},ba.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||Ia(this.cm,fs)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},ba.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},ba.prototype.onContextMenu=function(){},ba.prototype.resetPosition=function(){},ba.prototype.needsContentAttribute=!0;function fl(e,t){var a=ve(e,t.line);if(!a||a.hidden)return null;var n=tt(e.doc,t.line),r=b(a,n,t.line),i=Ht(n,e.doc.direction),l="left";if(i){var c=vt(i,t.ch);l=c%2?"right":"left"}var h=Ve(r.map,t.ch,l);return h.offset=h.collapse=="right"?h.end:h.start,h}function eu(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function Yo(e,t){return t&&(e.bad=!0),e}function tu(e,t,a,n,r){var i="",l=!1,c=e.doc.lineSeparator(),h=!1;function A(we){return function(Qe){return Qe.id==we}}function se(){l&&(i+=c,h&&(i+=c),l=h=!1)}function pe(we){we&&(se(),i+=we)}function Ne(we){if(we.nodeType==1){var Qe=we.getAttribute("cm-text");if(Qe){pe(Qe);return}var et=we.getAttribute("cm-marker"),ft;if(et){var Et=e.findMarks(Me(n,0),Me(r+1,0),A(+et));Et.length&&(ft=Et[0].find(0))&&pe(bn(e.doc,ft.from,ft.to).join(c));return}if(we.getAttribute("contenteditable")=="false")return;var Ot=/^(pre|div|p|li|table|br)$/i.test(we.nodeName);if(!/^br$/i.test(we.nodeName)&&we.textContent.length==0)return;Ot&&se();for(var yt=0;yt=9&&t.hasSelection&&(t.hasSelection=null),a.poll()}),Le(r,"paste",function(l){if(Ue(n,l)||il(l,n))return;n.state.pasteIncoming=+new Date,a.fastPoll()});function i(l){if(Ue(n,l))return;if(n.somethingSelected())Hi({lineWise:!1,text:n.getSelections()});else if(n.options.lineWiseCopyCut){var c=ll(n);Hi({lineWise:!0,text:c.text}),l.type=="cut"?n.setSelections(c.ranges,null,Se):(a.prevInput="",r.value=c.text.join(` `),j(r))}else return;l.type=="cut"&&(n.state.cutIncoming=+new Date)}Le(r,"cut",i),Le(r,"copy",i),Le(e.scroller,"paste",function(l){if(Ur(e,l)||Ue(n,l))return;if(!r.dispatchEvent){n.state.pasteIncoming=+new Date,a.focus();return}var c=new Event("paste");c.clipboardData=l.clipboardData,r.dispatchEvent(c)}),Le(e.lineSpace,"selectstart",function(l){Ur(e,l)||Ze(l)}),Le(r,"compositionstart",function(){var l=n.getCursor("from");a.composing&&a.composing.range.clear(),a.composing={start:l,range:n.markText(l,n.getCursor("to"),{className:"CodeMirror-composing"})}}),Le(r,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},ka.prototype.createField=function(e){this.wrapper=cl(),this.textarea=this.wrapper.firstChild},ka.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},ka.prototype.prepareSelection=function(){var e=this.cm,t=e.display,a=e.doc,n=kr(e);if(e.options.moveInputWithCursor){var r=Bn(e,a.sel.primary().head,"div"),i=t.wrapper.getBoundingClientRect(),l=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,r.top+l.top-i.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,r.left+l.left-i.left))}return n},ka.prototype.showSelection=function(e){var t=this.cm,a=t.display;d(a.cursorDiv,e.cursors),d(a.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},ka.prototype.reset=function(e){if(this.contextMenuPending||this.composing)return;var t=this.cm;if(t.somethingSelected()){this.prevInput="";var a=t.getSelection();this.textarea.value=a,t.state.focused&&j(this.textarea),fe&&oe>=9&&(this.hasSelection=a)}else e||(this.prevInput=this.textarea.value="",fe&&oe>=9&&(this.hasSelection=null))},ka.prototype.getField=function(){return this.textarea},ka.prototype.supportsTouch=function(){return!1},ka.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!p||N()!=this.textarea))try{this.textarea.focus()}catch(e){}},ka.prototype.blur=function(){this.textarea.blur()},ka.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ka.prototype.receivedFocus=function(){this.slowPoll()},ka.prototype.slowPoll=function(){var e=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},ka.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function a(){var n=t.poll();!n&&!e?(e=!0,t.polling.set(60,a)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,a)},ka.prototype.poll=function(){var e=this,t=this.cm,a=this.textarea,n=this.prevInput;if(this.contextMenuPending||!t.state.focused||vn(a)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var r=a.value;if(r==n&&!t.somethingSelected())return!1;if(fe&&oe>=9&&this.hasSelection===r||y&&/[\uf700-\uf7ff]/.test(r))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var i=r.charCodeAt(0);if(i==8203&&!n&&(n="\u200B"),i==8666)return this.reset(),this.cm.execCommand("undo")}for(var l=0,c=Math.min(n.length,r.length);l1e3||r.indexOf(` `)>-1?a.value=e.prevInput="":e.prevInput=r,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ka.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ka.prototype.onKeyPress=function(){fe&&oe>=9&&(this.hasSelection=null),this.fastPoll()},ka.prototype.onContextMenu=function(e){var t=this,a=t.cm,n=a.display,r=t.textarea;t.contextMenuPending&&t.contextMenuPending();var i=Xa(a,e),l=n.scroller.scrollTop;if(!i||_)return;var c=a.options.resetSelectionOnContextMenu;c&&a.doc.sel.contains(i)==-1&&Ia(a,lr)(a.doc,Hr(i),Se);var h=r.style.cssText,A=t.wrapper.style.cssText,se=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",r.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(e.clientY-se.top-5)+"px; left: "+(e.clientX-se.left-5)+`px; z-index: 1000; background: `+(fe?"rgba(255, 255, 255, .05)":"transparent")+`; - outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var pe;z&&(pe=window.scrollY),n.input.focus(),z&&window.scrollTo(null,pe),n.input.reset(),a.somethingSelected()||(r.value=t.prevInput=" "),t.contextMenuPending=we,n.selForContextMenu=a.doc.sel,clearTimeout(n.detectingSelectAll);function Ne(){if(r.selectionStart!=null){var et=a.somethingSelected(),ft="\u200B"+(et?r.value:"");r.value="\u21DA",r.value=ft,t.prevInput=et?"":"\u200B",r.selectionStart=1,r.selectionEnd=ft.length,n.selForContextMenu=a.doc.sel}}function we(){if(t.contextMenuPending!=we)return;if(t.contextMenuPending=!1,t.wrapper.style.cssText=A,r.style.cssText=h,fe&&oe<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=l),r.selectionStart!=null){(!fe||fe&&oe<9)&&Ne();var et=0,ft=function(){n.selForContextMenu==a.doc.sel&&r.selectionStart==0&&r.selectionEnd>0&&t.prevInput=="\u200B"?Ia(a,Ps)(a):et++<10?n.detectingSelectAll=setTimeout(ft,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(ft,200)}}if(fe&&oe>=9&&Ne(),de){ut(e);var Qe=function(){st(window,"mouseup",Qe),setTimeout(we,20)};Le(window,"mouseup",Qe)}else setTimeout(we,50)},ka.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},ka.prototype.setUneditable=function(){},ka.prototype.needsContentAttribute=!1;function au(e,t){if(t=t?ee(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var a=N();t.autofocus=a==e||e.getAttribute("autofocus")!=null&&a==document.body}function n(){e.value=c.getValue()}var r;if(e.form&&(Le(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var i=e.form;r=i.submit;try{var l=i.submit=function(){n(),i.submit=r,i.submit(),i.submit=l}}catch(h){}}t.finishInit=function(h){h.save=n,h.getTextArea=function(){return e},h.toTextArea=function(){h.toTextArea=isNaN,n(),e.parentNode.removeChild(h.getWrapperElement()),e.style.display="",e.form&&(st(e.form,"submit",n),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=r))}},e.style.display="none";var c=Da(function(h){return e.parentNode.insertBefore(h,e.nextSibling)},t);return c}function ru(e){e.off=st,e.on=Le,e.wheelEventPixels=li,e.Doc=yr,e.splitLines=fn,e.countColumn=B,e.findColumn=be,e.isWordChar=Ee,e.Pass=xe,e.signal=rt,e.Line=Ha,e.changeEnd=Qr,e.scrollbarModel=oi,e.Pos=Me,e.cmpPos=Oe,e.modes=gn,e.mimeModes=Kt,e.resolveMode=Rt,e.getMode=pt,e.modeExtensions=ot,e.extendMode=Mt,e.copyState=Ft,e.startState=wn,e.innerMode=xn,e.commands=yi,e.keyMap=so,e.keyName=Gs,e.isModifierKey=Hs,e.lookupKey=Jo,e.normalizeKeyMap=jl,e.StringStream=zt,e.SharedTextMarker=gi,e.TextMarker=yo,e.LineWidget=vi,e.e_preventDefault=Ze,e.e_stopPropagation=Be,e.e_stop=ut,e.addClass=H,e.contains=F,e.rmClass=ae,e.keyNames=Co}Xl(Da),$l(Da);var ou="iter insert remove copy getEditor constructor".split(" ");for(var Gi in yr.prototype)yr.prototype.hasOwnProperty(Gi)&&ye(ou,Gi)<0&&(Da.prototype[Gi]=function(e){return function(){return e.apply(this.doc,arguments)}}(yr.prototype[Gi]));return He(yr),Da.inputStyles={textarea:ka,contenteditable:Ea},Da.defineMode=function(e){!Da.defaults.mode&&e!="null"&&(Da.defaults.mode=e),hn.apply(this,arguments)},Da.defineMIME=pn,Da.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Da.defineMIME("text/plain","null"),Da.defineExtension=function(e,t){Da.prototype[e]=t},Da.defineDocExtension=function(e,t){yr.prototype[e]=t},Da.fromTextArea=au,ru(Da),Da.version="5.58.2",Da})},W6BS:function(Te,k){Te.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAVs0lEQVRoQ+2aa6xlZ3nff++677Xv+9zPHM/YHo+xwQ4E14GKKESkiFsSM8bYQBIEkaBEAkqbRmo/9FulSoX2Qz9GVVQJqUJBhKKA1KRJCIlowwdDDDa+jOd65syc275f1v1d1fOufYYE2ZhJZKRWXjOjvffaa6/1/p//8/yfyzuqLMuS/48P9RrA/8fZfY3B2yXQBHQpf185tBUK+SvH8uV2H/eK1/+jGfwRIBC5ks/Vq/yplq2Wqz+B/ONg5LNlrlz+Qhnot373iih+wgX/YIAivrJgjTKA9BKcYa/Uy/MnUEpD0S2AyzdKkMslZYklbwVYWZpXQSygrSVoc+4fcPzUAKtsom4xpIGiLCkMZbJGs1LkvOHPfJbrhRX5/CM/NDwJZlXiqBKlc7AEjg1aI2iVDXZpoeS9AFXlkmV1W8z+VACLE7dbMiWLE2CFADLgqig6SakCSs4jizcvAvBHMVkqxxhKkePqAs8S1mxyLUxqw6AYKLdtbMtGINpiKKUM07bc96dk9BUBykIFoNYVC/JewMkCDDh18p0so6w+GzfT+FoWC7Yl11curQpFVCoyJQsvDThP6crNdVldi0KLcwogyzJGssVrxYWXAOWzwWg84eXd92UByoK0WHEJqBCA4oC6ChstYHRJIW6lZHWQlsoYQH6rypyOLZ5Xuahx3NIi1TAvLBIcHIlUw8rfcWFLFmzhmPBUxi0NKIRdAVi5qmPAL88LrS9z/AigmHBpCcOaCIUA1BVj4ma6LCi1FkjLBZRoVRrLR9piXjhkysI2mqJxhY2lQUrDjG3iVv5k5YmgyHI1ngLPBqfUxg21nC5LbGUhHJbGUPKu8hTbUthKGcZP3Palks3fY/BECQVQLoDk0QWURYFVFuTaNudtS+Pb8mCNZcQEYmMQi8KymCSQGLJLIx7zKCFKi1uuJNZvNXxDvLBVszUtW5xSm0WL8Mh9hV0xoGFfKRItV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ff2n"),Re=o("VTBJ"),$=o("1OyB"),x=o("vuIU"),D=o("JX7q"),fe=o("Ji7U"),oe=o("LK+K"),z=o("q1tI"),L=o("TSYQ"),C=o.n(L),_=o("sboe"),O=o("OZM5"),u=function(de){var _e=de.prefixCls,ae=de.level,T=de.isStart,d=de.isEnd;if(!ae)return null;for(var s="".concat(_e,"-indent-unit"),ue=[],Y=0;Y0&&t.prevInput=="\u200B"?Ia(a,Ps)(a):et++<10?n.detectingSelectAll=setTimeout(ft,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(ft,200)}}if(fe&&oe>=9&&Ne(),de){ut(e);var Qe=function(){st(window,"mouseup",Qe),setTimeout(we,20)};Le(window,"mouseup",Qe)}else setTimeout(we,50)},ka.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},ka.prototype.setUneditable=function(){},ka.prototype.needsContentAttribute=!1;function au(e,t){if(t=t?ee(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var a=N();t.autofocus=a==e||e.getAttribute("autofocus")!=null&&a==document.body}function n(){e.value=c.getValue()}var r;if(e.form&&(Le(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var i=e.form;r=i.submit;try{var l=i.submit=function(){n(),i.submit=r,i.submit(),i.submit=l}}catch(h){}}t.finishInit=function(h){h.save=n,h.getTextArea=function(){return e},h.toTextArea=function(){h.toTextArea=isNaN,n(),e.parentNode.removeChild(h.getWrapperElement()),e.style.display="",e.form&&(st(e.form,"submit",n),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=r))}},e.style.display="none";var c=Da(function(h){return e.parentNode.insertBefore(h,e.nextSibling)},t);return c}function ru(e){e.off=st,e.on=Le,e.wheelEventPixels=li,e.Doc=yr,e.splitLines=fn,e.countColumn=B,e.findColumn=Ee,e.isWordChar=be,e.Pass=xe,e.signal=rt,e.Line=Ha,e.changeEnd=Qr,e.scrollbarModel=oi,e.Pos=Me,e.cmpPos=Oe,e.modes=gn,e.mimeModes=Kt,e.resolveMode=Rt,e.getMode=pt,e.modeExtensions=ot,e.extendMode=Mt,e.copyState=Ft,e.startState=wn,e.innerMode=xn,e.commands=yi,e.keyMap=so,e.keyName=Gs,e.isModifierKey=Hs,e.lookupKey=Jo,e.normalizeKeyMap=jl,e.StringStream=zt,e.SharedTextMarker=gi,e.TextMarker=yo,e.LineWidget=vi,e.e_preventDefault=Ze,e.e_stopPropagation=Be,e.e_stop=ut,e.addClass=H,e.contains=F,e.rmClass=ae,e.keyNames=Co}Xl(Da),$l(Da);var ou="iter insert remove copy getEditor constructor".split(" ");for(var Gi in yr.prototype)yr.prototype.hasOwnProperty(Gi)&&ye(ou,Gi)<0&&(Da.prototype[Gi]=function(e){return function(){return e.apply(this.doc,arguments)}}(yr.prototype[Gi]));return He(yr),Da.inputStyles={textarea:ka,contenteditable:ba},Da.defineMode=function(e){!Da.defaults.mode&&e!="null"&&(Da.defaults.mode=e),hn.apply(this,arguments)},Da.defineMIME=pn,Da.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Da.defineMIME("text/plain","null"),Da.defineExtension=function(e,t){Da.prototype[e]=t},Da.defineDocExtension=function(e,t){yr.prototype[e]=t},Da.fromTextArea=au,ru(Da),Da.version="5.58.2",Da})},W6BS:function(Te,k){Te.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAVs0lEQVRoQ+2aa6xlZ3nff++677Xv+9zPHM/YHo+xwQ4E14GKKESkiFsSM8bYQBIEkaBEAkqbRmo/9FulSoX2Qz9GVVQJqUJBhKKA1KRJCIlowwdDDDa+jOd65syc275f1v1d1fOufYYE2ZhJZKRWXjOjvffaa6/1/p//8/yfyzuqLMuS/48P9RrA/8fZfY3B2yXQBHQpf185tBUK+SvH8uV2H/eK1/+jGfwRIBC5ks/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k6RkbCgVfDsgN8ArP3N5juM5jdJD26xrOjq9TzCcfzkGYYcXrrbTz6xDs5OrrMeHzIjck+2eiA65OYdrjOPace5NzOw/hO10zW5ZDm27VDUxdLnMtwOctSk+NqtYDNzU3W1tfpdbvm2pc6bgE0u7IvsRUs56M4Yj6dmfJrOhwyGE8YjkaMxkNmszlpLDGbkeUx02RAlC2Y5UeUSZ+pdYyaz1k4Y9OdhE4D5dVoB6dZWbuLlneaXm2DPC1NR5BGCbF0CWVJEAQ0GnXanTb1sE69Xmdzc4uNjQ1ardZy4+dlN3fNF6+4R/9SP5eHJ0nMYhEh8TscDun3+0aoJuMJi8WCJMnRZgRZkJOR5FMKvWBz/QyN2gqqsEjTBE1q7iU5znZsfN83i2+32zSbTXq9HisrK6yurtJoNH4ympf49rYAvhzL1b5JSZqmZqGTyZT+4Jj+cd+4+mg4Yh7F5Kk0xqK4Jb7rVP87w1KGpU6nR6vVNMAEkPzrdDqGxX/McVsAb/dBsh0mKWgxnzMajxgOhhwf9+n3j5nNZ7RbbbrdrgElYE5Aua57u4962etfNYAvx7YISJIkxrXFxdvtlnFJW+Yiy+MnecrtIn/VAN7uQl6t618D+GpZ9md139cY/FlZ+tV6zmsMvlqW/Vnd9/8CAe3hZpCQX/4AAAAASUVORK5CYII="},WaYH:function(Te,k,o){"use strict";var le=o("rePB"),J=o("Ff2n"),Re=o("VTBJ"),$=o("1OyB"),x=o("vuIU"),D=o("JX7q"),fe=o("Ji7U"),oe=o("LK+K"),z=o("q1tI"),L=o("TSYQ"),C=o.n(L),_=o("sboe"),O=o("OZM5"),u=function(de){var _e=de.prefixCls,ae=de.level,T=de.isStart,d=de.isEnd;if(!ae)return null;for(var s="".concat(_e,"-indent-unit"),ue=[],Y=0;Y1&&arguments[1]!==void 0?arguments[1]:!1,re=Se.getAttribute("id")||Se.getAttribute("data-reactid")||Se.getAttribute("name");if(X&&N[re])return N[re];var be=window.getComputedStyle(Se),ie=be.getPropertyValue("box-sizing")||be.getPropertyValue("-moz-box-sizing")||be.getPropertyValue("-webkit-box-sizing"),Ce=parseFloat(be.getPropertyValue("padding-bottom"))+parseFloat(be.getPropertyValue("padding-top")),v=parseFloat(be.getPropertyValue("border-bottom-width"))+parseFloat(be.getPropertyValue("border-top-width")),W=F.map(function(ce){return"".concat(ce,":").concat(be.getPropertyValue(ce))}).join(";"),P={sizingStyle:W,paddingSize:Ce,borderSize:v,boxSizing:ie};return X&&re&&(N[re]=P),P}function j(Se){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,be=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;H||(H=document.createElement("textarea"),H.setAttribute("tab-index","-1"),H.setAttribute("aria-hidden","true"),document.body.appendChild(H)),Se.getAttribute("wrap")?H.setAttribute("wrap",Se.getAttribute("wrap")):H.removeAttribute("wrap");var ie=w(Se,X),Ce=ie.paddingSize,v=ie.borderSize,W=ie.boxSizing,P=ie.sizingStyle;H.setAttribute("style","".concat(P,";").concat(Y)),H.value=Se.value||Se.placeholder||"";var ce=Number.MIN_SAFE_INTEGER,R=Number.MAX_SAFE_INTEGER,Q=H.scrollHeight,Ee;if(W==="border-box"?Q+=v:W==="content-box"&&(Q-=Ce),re!==null||be!==null){H.value=" ";var De=H.scrollHeight-Ce;re!==null&&(ce=De*re,W==="border-box"&&(ce=ce+Ce+v),Q=Math.max(ce,Q)),be!==null&&(R=De*be,W==="border-box"&&(R=R+Ce+v),Ee=Q>R?"":"hidden",Q=Math.min(R,Q))}return{height:Q,minHeight:ce,maxHeight:R,overflowY:Ee,resize:"none"}}var K=o("Gytx"),ee=o.n(K),B;(function(Se){Se[Se.NONE=0]="NONE",Se[Se.RESIZING=1]="RESIZING",Se[Se.RESIZED=2]="RESIZED"})(B||(B={}));var te=function(Se){Object($.a)(re,Se);var X=Object(x.a)(re);function re(be){var ie;return Object(J.a)(this,re),ie=X.call(this,be),ie.nextFrameActionId=void 0,ie.resizeFrameId=void 0,ie.textArea=void 0,ie.saveTextArea=function(Ce){ie.textArea=Ce},ie.handleResize=function(Ce){var v=ie.state.resizeStatus,W=ie.props,P=W.autoSize,ce=W.onResize;if(v!==B.NONE)return;typeof ce=="function"&&ce(Ce),P&&ie.resizeOnNextFrame()},ie.resizeOnNextFrame=function(){cancelAnimationFrame(ie.nextFrameActionId),ie.nextFrameActionId=requestAnimationFrame(ie.resizeTextarea)},ie.resizeTextarea=function(){var Ce=ie.props.autoSize;if(!Ce||!ie.textArea)return;var v=Ce.minRows,W=Ce.maxRows,P=j(ie.textArea,!1,v,W);ie.setState({textareaStyles:P,resizeStatus:B.RESIZING},function(){cancelAnimationFrame(ie.resizeFrameId),ie.resizeFrameId=requestAnimationFrame(function(){ie.setState({resizeStatus:B.RESIZED},function(){ie.resizeFrameId=requestAnimationFrame(function(){ie.setState({resizeStatus:B.NONE}),ie.fixFirefoxAutoScroll()})})})})},ie.renderTextArea=function(){var Ce=ie.props,v=Ce.prefixCls,W=v===void 0?"rc-textarea":v,P=Ce.autoSize,ce=Ce.onResize,R=Ce.className,Q=Ce.disabled,Ee=ie.state,De=Ee.textareaStyles,Ie=Ee.resizeStatus,Ge=Object(d.a)(ie.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),qe=ue()(W,R,Object(oe.a)({},"".concat(W,"-disabled"),Q));"value"in Ge&&(Ge.value=Ge.value||"");var Je=Object(fe.a)(Object(fe.a)(Object(fe.a)({},ie.props.style),De),Ie===B.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return D.createElement(T,{onResize:ie.handleResize,disabled:!(P||ce)},D.createElement("textarea",Object(le.a)({},Ge,{className:qe,style:Je,ref:ie.saveTextArea})))},ie.state={textareaStyles:{},resizeStatus:B.NONE},ie}return Object(Re.a)(re,[{key:"componentDidUpdate",value:function(ie){(ie.value!==this.props.value||!ee()(ie.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var ie=this.textArea.selectionStart,Ce=this.textArea.selectionEnd;this.textArea.setSelectionRange(ie,Ce)}}catch(v){}}},{key:"render",value:function(){return this.renderTextArea()}}]),re}(D.Component),ye=te,Pe=function(Se){Object($.a)(re,Se);var X=Object(x.a)(re);function re(be){var ie;Object(J.a)(this,re),ie=X.call(this,be),ie.resizableTextArea=void 0,ie.focus=function(){ie.resizableTextArea.textArea.focus()},ie.saveTextArea=function(v){ie.resizableTextArea=v},ie.handleChange=function(v){var W=ie.props.onChange;ie.setValue(v.target.value,function(){ie.resizableTextArea.resizeTextarea()}),W&&W(v)},ie.handleKeyDown=function(v){var W=ie.props,P=W.onPressEnter,ce=W.onKeyDown;v.keyCode===13&&P&&P(v),ce&&ce(v)};var Ce=typeof be.value=="undefined"||be.value===null?be.defaultValue:be.value;return ie.state={value:Ce},ie}return Object(Re.a)(re,[{key:"setValue",value:function(ie,Ce){"value"in this.props||this.setState({value:ie},Ce)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return D.createElement(ye,Object(le.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(ie){return"value"in ie?{value:ie.value}:null}}]),re}(D.Component),xe=k.default=Pe},ZW9T:function(Te,k,o){"use strict";o.d(k,"a",function(){return T});var le=o("k1fw"),J=o("oBTY"),Re=o("9og8"),$=o("miYZ"),x=o("tsqr"),D=o("rAM+"),fe=o("tJVT"),oe=o("PpiC"),z=o("WmNS"),L=o.n(z),C=o("q1tI"),_=o.n(C),O=o("bdgK");function u(d,s,ue,Y,F){var N=s.getWordUntilPosition(ue),H={startLineNumber:ue.lineNumber,endLineNumber:ue.lineNumber,startColumn:N.startColumn,endColumn:N.endColumn},w=Y.map(function(j){return{label:j,kind:d.languages.CompletionItemKind.Keyword,insertText:j,insertTextRules:d.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:H}});return F.map(function(j){w.push(Object(le.a)(Object(le.a)({},j),{},{range:H}))}),w}var g=function(d){var s={label:"ifelse",kind:d.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {"," $0","} else {"," ","}"].join(` +`,F=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],N={},H;function w(Se){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,re=Se.getAttribute("id")||Se.getAttribute("data-reactid")||Se.getAttribute("name");if(X&&N[re])return N[re];var Ee=window.getComputedStyle(Se),ie=Ee.getPropertyValue("box-sizing")||Ee.getPropertyValue("-moz-box-sizing")||Ee.getPropertyValue("-webkit-box-sizing"),Ce=parseFloat(Ee.getPropertyValue("padding-bottom"))+parseFloat(Ee.getPropertyValue("padding-top")),v=parseFloat(Ee.getPropertyValue("border-bottom-width"))+parseFloat(Ee.getPropertyValue("border-top-width")),W=F.map(function(ce){return"".concat(ce,":").concat(Ee.getPropertyValue(ce))}).join(";"),P={sizingStyle:W,paddingSize:Ce,borderSize:v,boxSizing:ie};return X&&re&&(N[re]=P),P}function j(Se){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ee=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;H||(H=document.createElement("textarea"),H.setAttribute("tab-index","-1"),H.setAttribute("aria-hidden","true"),document.body.appendChild(H)),Se.getAttribute("wrap")?H.setAttribute("wrap",Se.getAttribute("wrap")):H.removeAttribute("wrap");var ie=w(Se,X),Ce=ie.paddingSize,v=ie.borderSize,W=ie.boxSizing,P=ie.sizingStyle;H.setAttribute("style","".concat(P,";").concat(Y)),H.value=Se.value||Se.placeholder||"";var ce=Number.MIN_SAFE_INTEGER,R=Number.MAX_SAFE_INTEGER,Q=H.scrollHeight,be;if(W==="border-box"?Q+=v:W==="content-box"&&(Q-=Ce),re!==null||Ee!==null){H.value=" ";var De=H.scrollHeight-Ce;re!==null&&(ce=De*re,W==="border-box"&&(ce=ce+Ce+v),Q=Math.max(ce,Q)),Ee!==null&&(R=De*Ee,W==="border-box"&&(R=R+Ce+v),be=Q>R?"":"hidden",Q=Math.min(R,Q))}return{height:Q,minHeight:ce,maxHeight:R,overflowY:be,resize:"none"}}var K=o("Gytx"),ee=o.n(K),B;(function(Se){Se[Se.NONE=0]="NONE",Se[Se.RESIZING=1]="RESIZING",Se[Se.RESIZED=2]="RESIZED"})(B||(B={}));var te=function(Se){Object($.a)(re,Se);var X=Object(x.a)(re);function re(Ee){var ie;return Object(J.a)(this,re),ie=X.call(this,Ee),ie.nextFrameActionId=void 0,ie.resizeFrameId=void 0,ie.textArea=void 0,ie.saveTextArea=function(Ce){ie.textArea=Ce},ie.handleResize=function(Ce){var v=ie.state.resizeStatus,W=ie.props,P=W.autoSize,ce=W.onResize;if(v!==B.NONE)return;typeof ce=="function"&&ce(Ce),P&&ie.resizeOnNextFrame()},ie.resizeOnNextFrame=function(){cancelAnimationFrame(ie.nextFrameActionId),ie.nextFrameActionId=requestAnimationFrame(ie.resizeTextarea)},ie.resizeTextarea=function(){var Ce=ie.props.autoSize;if(!Ce||!ie.textArea)return;var v=Ce.minRows,W=Ce.maxRows,P=j(ie.textArea,!1,v,W);ie.setState({textareaStyles:P,resizeStatus:B.RESIZING},function(){cancelAnimationFrame(ie.resizeFrameId),ie.resizeFrameId=requestAnimationFrame(function(){ie.setState({resizeStatus:B.RESIZED},function(){ie.resizeFrameId=requestAnimationFrame(function(){ie.setState({resizeStatus:B.NONE}),ie.fixFirefoxAutoScroll()})})})})},ie.renderTextArea=function(){var Ce=ie.props,v=Ce.prefixCls,W=v===void 0?"rc-textarea":v,P=Ce.autoSize,ce=Ce.onResize,R=Ce.className,Q=Ce.disabled,be=ie.state,De=be.textareaStyles,Ie=be.resizeStatus,Ge=Object(d.a)(ie.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),qe=ue()(W,R,Object(oe.a)({},"".concat(W,"-disabled"),Q));"value"in Ge&&(Ge.value=Ge.value||"");var Je=Object(fe.a)(Object(fe.a)(Object(fe.a)({},ie.props.style),De),Ie===B.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return D.createElement(T,{onResize:ie.handleResize,disabled:!(P||ce)},D.createElement("textarea",Object(le.a)({},Ge,{className:qe,style:Je,ref:ie.saveTextArea})))},ie.state={textareaStyles:{},resizeStatus:B.NONE},ie}return Object(Re.a)(re,[{key:"componentDidUpdate",value:function(ie){(ie.value!==this.props.value||!ee()(ie.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var ie=this.textArea.selectionStart,Ce=this.textArea.selectionEnd;this.textArea.setSelectionRange(ie,Ce)}}catch(v){}}},{key:"render",value:function(){return this.renderTextArea()}}]),re}(D.Component),ye=te,Pe=function(Se){Object($.a)(re,Se);var X=Object(x.a)(re);function re(Ee){var ie;Object(J.a)(this,re),ie=X.call(this,Ee),ie.resizableTextArea=void 0,ie.focus=function(){ie.resizableTextArea.textArea.focus()},ie.saveTextArea=function(v){ie.resizableTextArea=v},ie.handleChange=function(v){var W=ie.props.onChange;ie.setValue(v.target.value,function(){ie.resizableTextArea.resizeTextarea()}),W&&W(v)},ie.handleKeyDown=function(v){var W=ie.props,P=W.onPressEnter,ce=W.onKeyDown;v.keyCode===13&&P&&P(v),ce&&ce(v)};var Ce=typeof Ee.value=="undefined"||Ee.value===null?Ee.defaultValue:Ee.value;return ie.state={value:Ce},ie}return Object(Re.a)(re,[{key:"setValue",value:function(ie,Ce){"value"in this.props||this.setState({value:ie},Ce)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return D.createElement(ye,Object(le.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(ie){return"value"in ie?{value:ie.value}:null}}]),re}(D.Component),xe=k.default=Pe},ZW9T:function(Te,k,o){"use strict";o.d(k,"a",function(){return T});var le=o("k1fw"),J=o("oBTY"),Re=o("9og8"),$=o("miYZ"),x=o("tsqr"),D=o("rAM+"),fe=o("tJVT"),oe=o("PpiC"),z=o("WmNS"),L=o.n(z),C=o("q1tI"),_=o.n(C),O=o("bdgK");function u(d,s,ue,Y,F){var N=s.getWordUntilPosition(ue),H={startLineNumber:ue.lineNumber,endLineNumber:ue.lineNumber,startColumn:N.startColumn,endColumn:N.endColumn},w=Y.map(function(j){return{label:j,kind:d.languages.CompletionItemKind.Keyword,insertText:j,insertTextRules:d.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:H}});return F.map(function(j){w.push(Object(le.a)(Object(le.a)({},j),{},{range:H}))}),w}var g=function(d){var s={label:"ifelse",kind:d.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {"," $0","} else {"," ","}"].join(` `),insertTextRules:d.languages.CompletionItemInsertTextRule.InsertAsSnippet},ue=["auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while","inline","restrict","_Bool","_Complex","_Imaginary","_Alignas","_Alignof","_Atomic","_Static_assert","_Noreturn","_Thread_local","_Generic"];d.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(H,w){var j=u(d,H,w,ue,[s]);return{suggestions:j}}});var Y=["False","None","True","and","as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal","not","or","pass","raise","return","try","while","with","yield"];d.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(H,w){var j=[{label:"print",kind:d.languages.CompletionItemKind.Snippet,insertText:["print($0)"].join(` `),insertTextRules:d.languages.CompletionItemInsertTextRule.InsertAsSnippet}],K=u(d,H,w,Y,j);return{suggestions:K}}});var F=["abstract","assert","boolean","break","byte","case","catch","char","class","const","continue","default","do","double","else","enum","extends","final","finally","float","for","goto","if","implements","import","instance of","int","interface","long","native","new","package","private","protected","public","return","strictfp","short","static","super","switch","synchronized","this","throw","throws","transient","try","void","volatile","while"];d.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(H,w){var j=[s,{label:"main",kind:d.languages.CompletionItemKind.Snippet,insertText:["public static void main(String[] args) {"," $0","}"].join(` `),insertTextRules:d.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"System.out.print",kind:d.languages.CompletionItemKind.Snippet,insertText:["System.out.print($0)"].join(` -`),insertTextRules:d.languages.CompletionItemInsertTextRule.InsertAsSnippet}],K=u(d,H,w,F,j);return{suggestions:K}}})},m="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",b=o("fjLI"),p=o("LvDl"),y=o("+ua5");function S(d){return/^\d+$/.test(d)?"".concat(d,"px"):d}function U(){}var Z=!1,ne={"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",Scala:"scale"};function de(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=d;if(Array.isArray(d)){for(var ue=0;ue0||xn.target.offsetWidth>0)&&ze.current.instance.layout()}}catch(wn){Mt.e(wn)}finally{Mt.f()}}),pt.observe(Le.current)),pt}function lt(){x.b.warn({content:decodeURIComponent(m),key:"monaco-editor-tip"})}var Ct=function(){var ot=ze.current.instance;if(N!=null&&ot&&Be){var Mt=ot.getModel();Mt&&N!==Mt.getValue()&&(Z=!0,Mt.setValue(N),ot.layout(),Z=!1)}};Object(C.useEffect)(function(){try{var pt,ot=ze.current.instance;rt.current&&clearTimeout(rt.current),rt.current=setTimeout(function(){Ct()},500),ot==null||((pt=ot.updateOptions)===null||pt===void 0)||pt.call(ot,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(N.split(/\r\n|\r|\n/g).length))+3,5)})}catch(Mt){debugger}},[N,Be,ze.current]),Object(C.useEffect)(function(){try{if($e&&ze.current&&ze.current.instance){var pt=ze.current.instance;pt.changeViewZones(function(Mt){var Ft=document.createElement("div");Ft.style.padding="10px 20px",Ft.style.width="calc(100% - 20px)",Ft.className="my-error-line-wrp",Ft.innerHTML=xt,Mt.addZone({afterLineNumber:$e||11,heightInLines:3,domNode:Ft})});var ot={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}};pt.addOverlayWidget(ot),pt.revealPositionInCenter({lineNumber:20,column:1})}}catch(Mt){debugger}},[$e,ze.current,Be]),Object(C.useEffect)(function(){var pt;if((pt=ze.current)!==null&&pt!==void 0&&pt.instance&&Be&&Ht){var ot=ze.current.instance,Mt=ot.getModel();if(!Mt)return;var Ft=function(){var Oe=[],at=[],mt=Mt.getAllDecorations(),dt=Object(D.a)(mt),Nt;try{for(dt.s();!(Nt=dt.n()).done;){var Dt=Nt.value;if(Dt.options.className==="highlighted-line"){var Ye;Oe.push(Dt==null||((Ye=Dt.range)===null||Ye===void 0)?void 0:Ye.startLineNumber),at.push(Dt==null?void 0:Dt.id)}}}catch(Pt){dt.e(Pt)}finally{dt.f()}Mt.deltaDecorations(at,[]);var ht=Mt.getLineCount();!!vt&&vt<=ht&&(ot.deltaDecorations([],[{range:new _e.Range(vt,1,vt,Mt.getLineMaxColumn(vt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),ot.revealLineInCenter(vt))};Ft();var xn=function(){var Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,at=[],mt=[],dt=Mt.getAllDecorations(),Nt=Object(D.a)(dt),Dt;try{for(Nt.s();!(Dt=Nt.n()).done;){var Ye=Dt.value;if(Ye.options.linesDecorationsClassName==="breakpoints"){var ht;at.push(Ye==null||((ht=Ye.range)===null||ht===void 0)?void 0:ht.startLineNumber),mt.push(Ye==null?void 0:Ye.id)}}}catch(Pt){Nt.e(Pt)}finally{Nt.f()}if(Oe)return{lines:at,ids:mt};De(at)},wn=function(){var Me=Object(Re.a)(L.a.mark(function Oe(at){var mt;return L.a.wrap(function(Nt){for(;;)switch(Nt.prev=Nt.next){case 0:return mt={range:new _e.Range(at,1,at,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}},Nt.next=3,Mt.deltaDecorations([],[mt]);case 3:xn();case 4:case"end":return Nt.stop()}},Oe)}));return function(at){return Me.apply(this,arguments)}}(),zt=function(){var Me=Object(Re.a)(L.a.mark(function Oe(at){var mt,dt,Nt,Dt,Ye;return L.a.wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:mt=[],dt=ot.getLineDecorations(at),Nt=Object(D.a)(dt);try{for(Nt.s();!(Dt=Nt.n()).done;)Ye=Dt.value,Ye.options.linesDecorationsClassName==="breakpoints"&&mt.push(Ye.id)}catch(Xt){Nt.e(Xt)}finally{Nt.f()}return Pt.next=6,Mt.deltaDecorations(mt,[]);case 6:xn();case 7:case"end":return Pt.stop()}},Oe)}));return function(at){return Me.apply(this,arguments)}}(),tt=function(Oe){var at=ot.getLineDecorations(Oe),mt=Object(D.a)(at),dt;try{for(mt.s();!(dt=mt.n()).done;){var Nt=dt.value;if(Nt.options.linesDecorationsClassName==="breakpoints")return!0}}catch(Dt){mt.e(Dt)}finally{mt.f()}return!1};if(!Object(p.isEqual)(Ge,xn(!0).lines)){Mt.deltaDecorations(xn(!0).ids,[]);var En=Ge.map(function(Me){return{range:new _e.Range(Me,1,Me,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}}});Mt.deltaDecorations([],En)}var Gn=ot.onDidChangeModelContent(function(Me){var Oe=ot.getPosition();if(Oe){var at=Oe.lineNumber;Mt.getLineContent(at).trim()===""?zt(at):tt(at)&&(zt(at),wn(at))}}),ta=ot.onMouseDown(function(Me){var Oe,at,mt;if(Me.target.detail&&(Oe=Me.target)!==null&&Oe!==void 0&&(at=Oe.element)!==null&&at!==void 0&&(mt=at.className)!==null&&mt!==void 0&&mt.includes("line-numbers")){var dt=Me.target.position.lineNumber;if(Mt.getLineContent(dt).trim()==="")return;tt(dt)?zt(dt):wn(dt)}}),$t=function(Oe){var at={range:new _e.Range(Oe,1,Oe,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Ue.current=ot.deltaDecorations(Ue.current,[at])},Tt=function(){Ue.current=ot.deltaDecorations(Ue.current,[])},Nn=ot.onMouseMove(function(Me){var Oe,at,mt;if(Tt(),Me.target.detail&&(Oe=Me.target)!==null&&Oe!==void 0&&(at=Oe.element)!==null&&at!==void 0&&(mt=at.className)!==null&&mt!==void 0&&mt.includes("line-numbers")){var dt=Me.target.position.lineNumber;if(Mt.getLineContent(dt).trim()==="")return;$t(dt)}}),ua=ot.onMouseLeave(function(){Tt()});return function(){Gn.dispose(),ta.dispose(),Nn.dispose(),ua.dispose()}}},[ze.current,Be,Ge,vt,Ht]);function Et(){var pt=ze.current.instance;if(pt){var ot=pt.getSelection(),Mt=ze.current.pastePos||{},Ft=new _e.Range(Mt.startLineNumber||ot.endLineNumber,Mt.startColumn||ot.endColumn,Mt.endLineNumber||ot.endLineNumber,Mt.endColumn||ot.endColumn);setTimeout(function(){pt.executeEdits("",[{range:Ft,text:""}])},300)}}function At(pt){(window.navigator.platform.match("Mac")?pt.metaKey:pt.ctrlKey)&&pt.keyCode==83&&(pt.preventDefault(),X())}var kt=function(){if(be&&ze.current.instance){var ot=ze.current.instance.getContentHeight();pn(ot0||P.target.offsetWidth>0)&&be.layout()}}catch(ce){v.e(ce)}finally{v.f()}}),ie.observe(ee.current)),ie}Object(C.useEffect)(function(){return ee.current&&o.e(27).then(o.t.bind(null,"M/lh",7)).then(function(be){_e=be;var ie=_e.editor.createDiffEditor(ee.current,Object(le.a)(Object(le.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},K),{},{wordWrap:!0}));Pe(ie);var Ce=xe(ie);return function(){ie.dispose();var v=ie.getModel();v&&v.dispose(),Ce.unobserve(ee.current)}}),function(){window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}},[]),Object(C.useEffect)(function(){ye&&ye.setModel({original:_e.editor.createModel(N,w),modified:_e.editor.createModel(H,w)})},[N,H,w,ye]);var Se=S(ue),X=S(F),re={width:Se,height:X};return _.a.createElement("div",{className:"my-diff-editor",ref:ee,style:re})}},ZaFS:function(Te,k,o){Te.exports={wrap:"wrap___1Ov0Q",title:"title___qleZg",path:"path___3MTzj",colorBlue:"colorBlue___3MDCw"}},ZpRC:function(Te,k,o){"use strict";function le(C){return typeof C=="object"&&C!=null&&C.nodeType===1}function J(C,_){return(!_||C!=="hidden")&&C!=="visible"&&C!=="clip"}function Re(C,_){if(C.clientHeight_||m>C&&b<_?0:m<=C&&p<=O||b>=_&&p>=O?m-C-u:b>_&&pO?b-_+g:0}var x=function(C,_){var O=window,u=_.scrollMode,g=_.block,m=_.inline,b=_.boundary,p=_.skipOverflowHiddenElements,y=typeof b=="function"?b:function(De){return De!==b};if(!le(C))throw new TypeError("Invalid target");for(var S=document.scrollingElement||document.documentElement,U=[],Z=C;le(Z)&&y(Z);){if((Z=Z.parentElement)===S){U.push(Z);break}Z!=null&&Z===document.body&&Re(Z)&&!Re(document.documentElement)||Z!=null&&Re(Z,p)&&U.push(Z)}for(var ne=O.visualViewport?O.visualViewport.width:innerWidth,de=O.visualViewport?O.visualViewport.height:innerHeight,_e=window.scrollX||pageXOffset,ae=window.scrollY||pageYOffset,T=C.getBoundingClientRect(),d=T.height,s=T.width,ue=T.top,Y=T.right,F=T.bottom,N=T.left,H=g==="start"||g==="nearest"?ue:g==="end"?F:ue+d/2,w=m==="center"?N+s/2:m==="end"?Y:N,j=[],K=0;K=0&&N>=0&&F<=de&&Y<=ne&&ue>=Pe&&F<=Se&&N>=X&&Y<=xe)return j;var re=getComputedStyle(ee),be=parseInt(re.borderLeftWidth,10),ie=parseInt(re.borderTopWidth,10),Ce=parseInt(re.borderRightWidth,10),v=parseInt(re.borderBottomWidth,10),W=0,P=0,ce="offsetWidth"in ee?ee.offsetWidth-ee.clientWidth-be-Ce:0,R="offsetHeight"in ee?ee.offsetHeight-ee.clientHeight-ie-v:0;if(S===ee)W=g==="start"?H:g==="end"?H-de:g==="nearest"?$(ae,ae+de,de,ie,v,ae+H,ae+H+d,d):H-de/2,P=m==="start"?w:m==="center"?w-ne/2:m==="end"?w-ne:$(_e,_e+ne,ne,be,Ce,_e+w,_e+w+s,s),W=Math.max(0,W+ae),P=Math.max(0,P+_e);else{W=g==="start"?H-Pe-ie:g==="end"?H-Se+v+R:g==="nearest"?$(Pe,Se,te,ie,v+R,H,H+d,d):H-(Pe+te/2)+R/2,P=m==="start"?w-X-be:m==="center"?w-(X+ye/2)+ce/2:m==="end"?w-xe+Ce+ce:$(X,xe,ye,be,Ce+ce,w,w+s,s);var Q=ee.scrollLeft,Ee=ee.scrollTop;H+=Ee-(W=Math.max(0,Math.min(Ee+W,ee.scrollHeight-te+R))),w+=Q-(P=Math.max(0,Math.min(Q+P,ee.scrollWidth-ye+ce)))}j.push({el:ee,top:W,left:P})}return j};function D(C){return C===Object(C)&&Object.keys(C).length!==0}function fe(C,_){_===void 0&&(_="auto");var O="scrollBehavior"in document.body.style;C.forEach(function(u){var g=u.el,m=u.top,b=u.left;g.scroll&&O?g.scroll({top:m,left:b,behavior:_}):(g.scrollTop=m,g.scrollLeft=b)})}function oe(C){return C===!1?{block:"end",inline:"nearest"}:D(C)?C:{block:"start",inline:"nearest"}}function z(C,_){var O=!C.ownerDocument.documentElement.contains(C);if(D(_)&&typeof _.behavior=="function")return _.behavior(O?[]:x(C,_));if(O)return;var u=oe(_);return fe(x(C,u),u.behavior)}var L=k.a=z},Zss7:function(Te,k,o){var le;(function(J){var Re=/^\s+/,$=/\s+$/,x=0,D=J.round,fe=J.min,oe=J.max,z=J.random;function L(v,W){if(v=v||"",W=W||{},v instanceof L)return v;if(!(this instanceof L))return new L(v,W);var P=C(v);this._originalInput=v,this._r=P.r,this._g=P.g,this._b=P.b,this._a=P.a,this._roundA=D(100*this._a)/100,this._format=W.format||P.format,this._gradientType=W.gradientType,this._r<1&&(this._r=D(this._r)),this._g<1&&(this._g=D(this._g)),this._b<1&&(this._b=D(this._b)),this._ok=P.ok,this._tc_id=x++}L.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var v=this.toRgb();return(v.r*299+v.g*587+v.b*114)/1e3},getLuminance:function(){var v=this.toRgb(),W,P,ce,R,Q,Ee;return W=v.r/255,P=v.g/255,ce=v.b/255,W<=.03928?R=W/12.92:R=J.pow((W+.055)/1.055,2.4),P<=.03928?Q=P/12.92:Q=J.pow((P+.055)/1.055,2.4),ce<=.03928?Ee=ce/12.92:Ee=J.pow((ce+.055)/1.055,2.4),.2126*R+.7152*Q+.0722*Ee},setAlpha:function(v){return this._a=j(v),this._roundA=D(100*this._a)/100,this},toHsv:function(){var v=g(this._r,this._g,this._b);return{h:v.h*360,s:v.s,v:v.v,a:this._a}},toHsvString:function(){var v=g(this._r,this._g,this._b),W=D(v.h*360),P=D(v.s*100),ce=D(v.v*100);return this._a==1?"hsv("+W+", "+P+"%, "+ce+"%)":"hsva("+W+", "+P+"%, "+ce+"%, "+this._roundA+")"},toHsl:function(){var v=O(this._r,this._g,this._b);return{h:v.h*360,s:v.s,l:v.l,a:this._a}},toHslString:function(){var v=O(this._r,this._g,this._b),W=D(v.h*360),P=D(v.s*100),ce=D(v.l*100);return this._a==1?"hsl("+W+", "+P+"%, "+ce+"%)":"hsla("+W+", "+P+"%, "+ce+"%, "+this._roundA+")"},toHex:function(v){return b(this._r,this._g,this._b,v)},toHexString:function(v){return"#"+this.toHex(v)},toHex8:function(v){return p(this._r,this._g,this._b,this._a,v)},toHex8String:function(v){return"#"+this.toHex8(v)},toRgb:function(){return{r:D(this._r),g:D(this._g),b:D(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+D(this._r)+", "+D(this._g)+", "+D(this._b)+")":"rgba("+D(this._r)+", "+D(this._g)+", "+D(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:D(K(this._r,255)*100)+"%",g:D(K(this._g,255)*100)+"%",b:D(K(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+D(K(this._r,255)*100)+"%, "+D(K(this._g,255)*100)+"%, "+D(K(this._b,255)*100)+"%)":"rgba("+D(K(this._r,255)*100)+"%, "+D(K(this._g,255)*100)+"%, "+D(K(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:H[b(this._r,this._g,this._b,!0)]||!1},toFilter:function(v){var W="#"+y(this._r,this._g,this._b,this._a),P=W,ce=this._gradientType?"GradientType = 1, ":"";if(v){var R=L(v);P="#"+y(R._r,R._g,R._b,R._a)}return"progid:DXImageTransform.Microsoft.gradient("+ce+"startColorstr="+W+",endColorstr="+P+")"},toString:function(v){var W=!!v;v=v||this._format;var P=!1,ce=this._a<1&&this._a>=0,R=!W&&ce&&(v==="hex"||v==="hex6"||v==="hex3"||v==="hex4"||v==="hex8"||v==="name");return R?v==="name"&&this._a===0?this.toName():this.toRgbString():(v==="rgb"&&(P=this.toRgbString()),v==="prgb"&&(P=this.toPercentageRgbString()),(v==="hex"||v==="hex6")&&(P=this.toHexString()),v==="hex3"&&(P=this.toHexString(!0)),v==="hex4"&&(P=this.toHex8String(!0)),v==="hex8"&&(P=this.toHex8String()),v==="name"&&(P=this.toName()),v==="hsl"&&(P=this.toHslString()),v==="hsv"&&(P=this.toHsvString()),P||this.toHexString())},clone:function(){return L(this.toString())},_applyModification:function(v,W){var P=v.apply(null,[this].concat([].slice.call(W)));return this._r=P._r,this._g=P._g,this._b=P._b,this.setAlpha(P._a),this},lighten:function(){return this._applyModification(ne,arguments)},brighten:function(){return this._applyModification(de,arguments)},darken:function(){return this._applyModification(_e,arguments)},desaturate:function(){return this._applyModification(S,arguments)},saturate:function(){return this._applyModification(U,arguments)},greyscale:function(){return this._applyModification(Z,arguments)},spin:function(){return this._applyModification(ae,arguments)},_applyCombination:function(v,W){return v.apply(null,[this].concat([].slice.call(W)))},analogous:function(){return this._applyCombination(Y,arguments)},complement:function(){return this._applyCombination(T,arguments)},monochromatic:function(){return this._applyCombination(F,arguments)},splitcomplement:function(){return this._applyCombination(ue,arguments)},triad:function(){return this._applyCombination(d,arguments)},tetrad:function(){return this._applyCombination(s,arguments)}},L.fromRatio=function(v,W){if(typeof v=="object"){var P={};for(var ce in v)v.hasOwnProperty(ce)&&(ce==="a"?P[ce]=v[ce]:P[ce]=xe(v[ce]));v=P}return L(v,W)};function C(v){var W={r:0,g:0,b:0},P=1,ce=null,R=null,Q=null,Ee=!1,De=!1;return typeof v=="string"&&(v=ie(v)),typeof v=="object"&&(be(v.r)&&be(v.g)&&be(v.b)?(W=_(v.r,v.g,v.b),Ee=!0,De=String(v.r).substr(-1)==="%"?"prgb":"rgb"):be(v.h)&&be(v.s)&&be(v.v)?(ce=xe(v.s),R=xe(v.v),W=m(v.h,ce,R),Ee=!0,De="hsv"):be(v.h)&&be(v.s)&&be(v.l)&&(ce=xe(v.s),Q=xe(v.l),W=u(v.h,ce,Q),Ee=!0,De="hsl"),v.hasOwnProperty("a")&&(P=v.a)),P=j(P),{ok:Ee,format:v.format||De,r:fe(255,oe(W.r,0)),g:fe(255,oe(W.g,0)),b:fe(255,oe(W.b,0)),a:P}}function _(v,W,P){return{r:K(v,255)*255,g:K(W,255)*255,b:K(P,255)*255}}function O(v,W,P){v=K(v,255),W=K(W,255),P=K(P,255);var ce=oe(v,W,P),R=fe(v,W,P),Q,Ee,De=(ce+R)/2;if(ce==R)Q=Ee=0;else{var Ie=ce-R;Ee=De>.5?Ie/(2-ce-R):Ie/(ce+R);switch(ce){case v:Q=(W-P)/Ie+(W1&&(Je-=1),Je<1/6?Ge+(qe-Ge)*6*Je:Je<1/2?qe:Je<2/3?Ge+(qe-Ge)*(2/3-Je)*6:Ge}if(W===0)ce=R=Q=P;else{var De=P<.5?P*(1+W):P+W-P*W,Ie=2*P-De;ce=Ee(Ie,De,v+1/3),R=Ee(Ie,De,v),Q=Ee(Ie,De,v-1/3)}return{r:ce*255,g:R*255,b:Q*255}}function g(v,W,P){v=K(v,255),W=K(W,255),P=K(P,255);var ce=oe(v,W,P),R=fe(v,W,P),Q,Ee,De=ce,Ie=ce-R;if(Ee=ce===0?0:Ie/ce,ce==R)Q=0;else{switch(ce){case v:Q=(W-P)/Ie+(W>1)+720)%360;--W;)ce.h=(ce.h+R)%360,Q.push(L(ce));return Q}function F(v,W){W=W||6;for(var P=L(v).toHsv(),ce=P.h,R=P.s,Q=P.v,Ee=[],De=1/W;W--;)Ee.push(L({h:ce,s:R,v:Q})),Q=(Q+De)%1;return Ee}L.mix=function(v,W,P){P=P===0?0:P||50;var ce=L(v).toRgb(),R=L(W).toRgb(),Q=P/100,Ee={r:(R.r-ce.r)*Q+ce.r,g:(R.g-ce.g)*Q+ce.g,b:(R.b-ce.b)*Q+ce.b,a:(R.a-ce.a)*Q+ce.a};return L(Ee)},L.readability=function(v,W){var P=L(v),ce=L(W);return(J.max(P.getLuminance(),ce.getLuminance())+.05)/(J.min(P.getLuminance(),ce.getLuminance())+.05)},L.isReadable=function(v,W,P){var ce=L.readability(v,W),R,Q;Q=!1,R=Ce(P);switch(R.level+R.size){case"AAsmall":case"AAAlarge":Q=ce>=4.5;break;case"AAlarge":Q=ce>=3;break;case"AAAsmall":Q=ce>=7;break}return Q},L.mostReadable=function(v,W,P){var ce=null,R=0,Q,Ee,De,Ie;P=P||{},Ee=P.includeFallbackColors,De=P.level,Ie=P.size;for(var Ge=0;GeR&&(R=Q,ce=L(W[Ge]));return L.isReadable(v,ce,{level:De,size:Ie})||!Ee?ce:(P.includeFallbackColors=!1,L.mostReadable(v,["#fff","#000"],P))};var N=L.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},H=L.hexNames=w(N);function w(v){var W={};for(var P in v)v.hasOwnProperty(P)&&(W[v[P]]=P);return W}function j(v){return v=parseFloat(v),(isNaN(v)||v<0||v>1)&&(v=1),v}function K(v,W){te(v)&&(v="100%");var P=ye(v);return v=fe(W,oe(0,parseFloat(v))),P&&(v=parseInt(v*W,10)/100),J.abs(v-W)<1e-6?1:v%W/parseFloat(W)}function ee(v){return fe(1,oe(0,v))}function B(v){return parseInt(v,16)}function te(v){return typeof v=="string"&&v.indexOf(".")!=-1&&parseFloat(v)===1}function ye(v){return typeof v=="string"&&v.indexOf("%")!=-1}function Pe(v){return v.length==1?"0"+v:""+v}function xe(v){return v<=1&&(v=v*100+"%"),v}function Se(v){return J.round(parseFloat(v)*255).toString(16)}function X(v){return B(v)/255}var re=function(){var v="[-\\+]?\\d+%?",W="[-\\+]?\\d*\\.\\d+%?",P="(?:"+W+")|(?:"+v+")",ce="[\\s|\\(]+("+P+")[,|\\s]+("+P+")[,|\\s]+("+P+")\\s*\\)?",R="[\\s|\\(]+("+P+")[,|\\s]+("+P+")[,|\\s]+("+P+")[,|\\s]+("+P+")\\s*\\)?";return{CSS_UNIT:new RegExp(P),rgb:new RegExp("rgb"+ce),rgba:new RegExp("rgba"+R),hsl:new RegExp("hsl"+ce),hsla:new RegExp("hsla"+R),hsv:new RegExp("hsv"+ce),hsva:new RegExp("hsva"+R),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function be(v){return!!re.CSS_UNIT.exec(v)}function ie(v){v=v.replace(Re,"").replace($,"").toLowerCase();var W=!1;if(N[v])v=N[v],W=!0;else if(v=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var P;return(P=re.rgb.exec(v))?{r:P[1],g:P[2],b:P[3]}:(P=re.rgba.exec(v))?{r:P[1],g:P[2],b:P[3],a:P[4]}:(P=re.hsl.exec(v))?{h:P[1],s:P[2],l:P[3]}:(P=re.hsla.exec(v))?{h:P[1],s:P[2],l:P[3],a:P[4]}:(P=re.hsv.exec(v))?{h:P[1],s:P[2],v:P[3]}:(P=re.hsva.exec(v))?{h:P[1],s:P[2],v:P[3],a:P[4]}:(P=re.hex8.exec(v))?{r:B(P[1]),g:B(P[2]),b:B(P[3]),a:X(P[4]),format:W?"name":"hex8"}:(P=re.hex6.exec(v))?{r:B(P[1]),g:B(P[2]),b:B(P[3]),format:W?"name":"hex"}:(P=re.hex4.exec(v))?{r:B(P[1]+""+P[1]),g:B(P[2]+""+P[2]),b:B(P[3]+""+P[3]),a:X(P[4]+""+P[4]),format:W?"name":"hex8"}:(P=re.hex3.exec(v))?{r:B(P[1]+""+P[1]),g:B(P[2]+""+P[2]),b:B(P[3]+""+P[3]),format:W?"name":"hex"}:!1}function Ce(v){var W,P;return v=v||{level:"AA",size:"small"},W=(v.level||"AA").toUpperCase(),P=(v.size||"small").toLowerCase(),W!=="AA"&&W!=="AAA"&&(W="AA"),P!=="small"&&P!=="large"&&(P="small"),{level:W,size:P}}Te.exports?Te.exports=L:!(le=function(){return L}.call(k,o,k,Te),le!==void 0&&(Te.exports=le))})(Math)},bL63:function(Te,k,o){Te.exports={bg:"bg___1pgJK",wrap:"wrap___3w7gA",modal:"modal___Z863a",content:"content_____WML",head:"head___74qy3",headCount:"headCount___DydFZ",button:"button___FkPST",itemWrap:"itemWrap___2VFfI",imgWrap:"imgWrap___3YSCX",img:"img___31A6T",manager:"manager___7OBds",itemContent:"itemContent___NJ5LZ",nameWrap:"nameWrap___1nFjv",name:"name___1KHZI",actionGroup:"actionGroup___2FPTE",deleteIcon:"deleteIcon___OtxKH",schoolWrap:"schoolWrap___3vfoh",school:"school___2QmIS",countWrap:"countWrap___22ogC",deletetitle:"deletetitle___3lzPN",yseTitle:"yseTitle___3xmOc"}},bT9E:function(Te,k,o){"use strict";o.d(k,"a",function(){return J});var le=o("VTBJ");function J(Re,$){var x=Object(le.a)({},Re);return Array.isArray($)&&$.forEach(function(D){delete x[D]}),x}},bUJZ:function(Te,k){Te.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAABq1JREFUWAmVWGuIVVUU/vaZ2zjjOC9TwzFtwAjKHlJBNj4IYgJp/hghIWEE/ahAlCypqB8JoSiRJljQw6KoEGz6oQmNvxqdoB9hailZoZbj2xlndHzMvWf3rX3OOnefc888XLDv2nvttdda+1tr73PONbhJsnZdM64NPsll7YCZBYQtQMAmFPayz2ZPcNCFmvpdxrzR56bG+WPGqQc79PoShOEKGLMQ1hbcOstfsSA8j4wpcrIbQbDFTFzfmaeSlY0ZkB14bT5suIFBtGUXMzj6YzTChbQvXMifN+ghemtMw8Z90WT+74gBWbu9Cv0979HJyvyllI6JkKcjRkQ/MJvR1LbamKUlEWUpNyDbt6oJpeJ2GmCdeDQaAp7ayN14B4b1VVVYapo39Wd1KwJywVy/Tnjt3VnlcsHos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eRt2FXAj3IkgLDIdlY+ODMIJ/LfOB4b5rnPhV0LOADVlWsBn99Ix5VOo9/enLrb8H80nuXyh1Jldgek42Me0dJfTxB1qyiRy3bXfb+JxL/JIy9F3utxxSZrok+MWzjPgxjmxTG0ySKcjvKJ1m4UH+6L3oVK4JUehcpELioYOrWcdsUbmfRY9LrQmxEmBr7XztgHV5KKXciyBSSAaoM8ZA0kwc2R3tO4j4m1JWkTqIRopebLZy4G57/De2Q90PxshVt0ILPqGyPD74MBaPlIYmNoY3V6PefoY8+tefIUJhWtShSxoZIval4mz395l4fICbCNS1VOABV/GwRCZIx9HaOhhSJDxEYr7hr5jShCSsf16xiaYcGVyb+juEq2sgFU/5xXgvlfp/BrTV8M0vc+2Ue2nOdVTiLnZYLNZdnKVKkY1pKNC22reD10OKb+Ik5x7hSvFK7s/wNfhQ5uiYP7YCuxfV64Rh06MtI+22JbGYw7x6VGyd5XZztYmDPKl2OZ9KKpWDq+9Lb61/bkcRBUiww/F+vo2s+RYf3aFP3Z9u62pieHzU9q2pzAe7VHiVo4SgD8vH4gwS83z/algRCWdMreIqqJY98Ripm9z6phWpCC+9v1jL3096tr350GbtJ0XjLivSFkcU8LsJ7Xz+e6V/3dMRZFmBD6ixvRw+2vMC1f5oBuZxgxIl9oPq5ewCOVzaSFl0WPGd+gUMwEh/sPK8A+rl250qq3R+LgDUiN2a2Mzwsv8GJP6sjMp5xuna6LSGzXzL8HvQjBpp3n5Up9MjJf+B5WVB7lfjXHfAAAAAElFTkSuQmCC"},biw7:function(Te,k,o){"use strict";var le=o("q1tI"),J=o.n(le),Re=le.createContext(null);k.a=Re},c5Ni:function(Te,k,o){},cRFk:function(Te,k,o){Te.exports=o.p+"static/RepositoryNoneData.828085a8.png"},cU5J:function(Te,k,o){Te.exports={title:"title___3fOal",content:"content___3uANE",add:"add___1spp2",colorBlue:"colorBlue___hain-",radio:"radio___3M5zN"}},csWT:function(Te,k,o){Te.exports=o.p+"static/choose.4ad1045f.svg"},djh8:function(Te,k,o){Te.exports=o.p+"static/qrCode.42927872.png"},dmUQ:function(Te,k,o){"use strict";var le=o("Ff2n"),J=o("rePB"),Re=o("1OyB"),$=o("vuIU"),x=o("Ji7U"),D=o("md7G"),fe=o("foSv"),oe=o("q1tI"),z=o.n(oe),L=o("TSYQ"),C=o.n(L),_=o("4IlW");function O(d,s){var ue=Object.keys(d);if(Object.getOwnPropertySymbols){var Y=Object.getOwnPropertySymbols(d);s&&(Y=Y.filter(function(F){return Object.getOwnPropertyDescriptor(d,F).enumerable})),ue.push.apply(ue,Y)}return ue}function u(d){for(var s=1;s1?ye-1:0),xe=1;xe1?K-1:0),B=1;B=0)return parseInt(j.slice(j.indexOf("e-")+2),10);var K=0;return j.indexOf(".")>=0&&(K=j.length-j.indexOf(".")-1),K},F.getInputDisplayValue=function(w){var j=w||F.state,K=j.focused,ee=j.inputValue,B=j.value,te;K?te=ee:te=F.toPrecisionAsStep(B),te==null&&(te="");var ye=F.formatWrapper(te);return ne(F.props.decimalSeparator)&&(ye=ye.toString().replace(".",F.props.decimalSeparator)),ye},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(w){}},F.restoreByAfter=function(w){if(w===void 0)return!1;var j=F.input.value,K=j.lastIndexOf(w);if(K===-1)return!1;var ee=F.cursorBefore.length;return F.lastKeyCode===_.a.DELETE&&F.cursorBefore.charAt(ee-1)===w[0]?(F.fixCaret(ee,ee),!0):K+w.length===j.length?(F.fixCaret(K,K),!0):!1},F.partRestoreByAfter=function(w){return w===void 0?!1:Array.prototype.some.call(w,function(j,K){var ee=w.substring(K);return F.restoreByAfter(ee)})},F.isNotCompleteNumber=function(w){return isNaN(w)||w===""||w===null||w&&w.toString().indexOf(".")===w.toString().length-1},F.stop=function(){F.autoStepTimer&&clearTimeout(F.autoStepTimer)},F.down=function(w,j,K){F.pressingUpOrDown=!0,F.step("down",w,j,K)},F.up=function(w,j,K){F.pressingUpOrDown=!0,F.step("up",w,j,K)},F.saveInput=function(w){F.input=w};var N=Y.value;N===void 0&&(N=Y.defaultValue),F.state={focused:Y.autoFocus};var H=F.getValidValue(F.toNumber(N));return F.state=u(u({},F.state),{},{inputValue:F.toPrecisionAsStep(H),value:H}),F}return Object($.a)(ue,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(F){var N=this.props,H=N.value,w=N.onChange,j=N.max,K=N.min,ee=this.state.focused;if(F){if(!de(F.value,H)||!de(F.max,j)||!de(F.min,K)){var B=ee?H:this.getValidValue(H),te;this.pressingUpOrDown?te=B:this.inputting?te=this.rawInput:te=this.toPrecisionAsStep(B),this.setState({value:B,inputValue:te})}var ye="value"in this.props?H:this.state.value;"max"in this.props&&F.max!==j&&typeof ye=="number"&&ye>j&&w&&w(j),"min"in this.props&&F.min!==K&&typeof ye=="number"&&ye1&&arguments[1]!==void 0?arguments[1]:this.props.min,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,w=parseFloat(F);return isNaN(w)?F:(wH&&(w=H),w)}},{key:"setValue",value:function(F,N){var H=this.props.precision,w=this.isNotCompleteNumber(parseFloat(F))?null:parseFloat(F),j=this.state.value,K=j===void 0?null:j,ee=this.state.inputValue,B=ee===void 0?null:ee,te=typeof w=="number"?w.toFixed(H):"".concat(w),ye=w!==K||te!=="".concat(B);return"value"in this.props?(B=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:B},N)):this.setState({value:w,inputValue:this.toPrecisionAsStep(F)},N),ye&&this.props.onChange(w),w}},{key:"getMaxPrecision",value:function(F){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,H=this.props,w=H.precision,j=H.step;if(ne(w))return w;var K=this.getPrecision(N),ee=this.getPrecision(j),B=this.getPrecision(F);return F?Math.max(B,K+ee):K+ee}},{key:"getPrecisionFactor",value:function(F){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,H=this.getMaxPrecision(F,N);return Math.pow(10,H)}},{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 N=Math.abs(this.getMaxPrecision(F));return isNaN(N)?F.toString():Number(F).toFixed(N)}},{key:"toNumber",value:function(F){var N=this.props.precision,H=this.state.focused,w=F&&F.length>16&&H;return this.isNotCompleteNumber(F)||w?F:ne(N)?Math.round(F*Math.pow(10,N))/Math.pow(10,N):Number(F)}},{key:"upStep",value:function(F,N){var H=this.props.step,w=this.getPrecisionFactor(F,N),j=Math.abs(this.getMaxPrecision(F,N)),K=((w*F+w*H*N)/w).toFixed(j);return this.toNumber(K)}},{key:"downStep",value:function(F,N){var H=this.props.step,w=this.getPrecisionFactor(F,N),j=Math.abs(this.getMaxPrecision(F,N)),K=((w*F-w*H*N)/w).toFixed(j);return this.toNumber(K)}},{key:"step",value:function(F,N){var H=this,w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,j=arguments.length>3?arguments[3]:void 0;this.stop(),N&&(N.persist(),N.preventDefault());var K=this.props;if(K.disabled)return;var ee=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(ee))return;var B=this["".concat(F,"Step")](ee,w),te=B>K.max||BK.max?B=K.max:B=Pe),Ue=(Ut||Ut===0)&&(isNaN(Ut)||Number(Ut)<=xe),ke=rt||w||j,Ke=Ue||w||j,He=C()("".concat(H,"-handler"),"".concat(H,"-handler-up"),Object(J.a)({},"".concat(H,"-handler-up-disabled"),ke)),Ze=C()("".concat(H,"-handler"),"".concat(H,"-handler-down"),Object(J.a)({},"".concat(H,"-handler-down-disabled"),Ke)),Be=K?{onTouchStart:ke?b:this.up,onTouchEnd:this.stop}:{onMouseDown:ke?b:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},Xe=K?{onTouchStart:Ke?b:this.down,onTouchEnd:this.stop}:{onMouseDown:Ke?b:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return z.a.createElement("div",{className:je,style:Se,title:X,onMouseEnter:re,onMouseLeave:be,onMouseOver:ie,onMouseOut:Ce,onFocus:function(){return null},onBlur:function(){return null}},z.a.createElement("div",{className:"".concat(H,"-handler-wrap")},z.a.createElement("span",Object.assign({unselectable:"on"},Be,{role:"button","aria-label":"Increase Value","aria-disabled":ke,className:He}),B||z.a.createElement("span",{unselectable:"on",className:"".concat(H,"-handler-up-inner"),onClick:p})),z.a.createElement("span",Object.assign({unselectable:"on"},Xe,{role:"button","aria-label":"Decrease Value","aria-disabled":Ke,className:Ze}),te||z.a.createElement("span",{unselectable:"on",className:"".concat(H,"-handler-down-inner"),onClick:p}))),z.a.createElement("div",{className:"".concat(H,"-input-wrap")},z.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":xe,"aria-valuemax":Pe,"aria-valuenow":Ut,required:v,type:ce,placeholder:R,onPaste:$e,onClick:W,onMouseUp:this.onMouseUp,className:"".concat(H,"-input"),tabIndex:P,autoComplete:ee,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:ze?this.onKeyDown:b,onKeyUp:ze?this.onKeyUp:b,autoFocus:qe,maxLength:Ge,readOnly:j,disabled:w,max:Pe,min:xe,step:Ie,name:Je,title:X,id:Q,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(st),pattern:De,inputMode:Ee,onInput:it},Le))))}}]),ue}(z.a.Component);_e.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:Z,min:-Z,step:1,style:{},onChange:b,onKeyDown:b,onPressEnter:b,onFocus:b,onBlur:b,parser:y,required:!1,autoComplete:"off"};var ae=_e,T=k.a=ae},fAei:function(Te,k,o){"use strict";o.d(k,"a",function(){return S.a});var le=o("rePB"),J=o("VTBJ"),Re=o("KQm4"),$=o("1OyB"),x=o("vuIU"),D=o("Ji7U"),fe=o("LK+K"),oe=o("q1tI"),z=o("4IlW"),L=o("Kwbf"),C=o("TSYQ"),_=o.n(C),O=o("sboe"),u=o("OZM5"),g=o("815F"),m=o("ODXe"),b=o("Ff2n"),p=o("+nKL"),y=o("8XRh"),S=o("WaYH"),U=function(xe,Se){var X=xe.className,re=xe.style,be=xe.motion,ie=xe.motionNodes,Ce=xe.motionType,v=xe.onMotionStart,W=xe.onMotionEnd,P=xe.active,ce=xe.treeNodeRequiredProps,R=Object(b.a)(xe,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),Q=oe.useState(!0),Ee=Object(m.a)(Q,2),De=Ee[0],Ie=Ee[1],Ge=oe.useContext(O.a),qe=Ge.prefixCls,Je=oe.useRef(!1),$e=function(){Je.current||W(),Je.current=!0};return Object(oe.useEffect)(function(){ie&&Ce==="hide"&&De&&Ie(!1)},[ie]),Object(oe.useEffect)(function(){return ie&&v(),function(){ie&&$e()}},[]),ie?oe.createElement(y.default,Object.assign({ref:Se,visible:De},be,{motionAppear:Ce==="show",onAppearEnd:$e,onLeaveEnd:$e}),function(it,xt){var vt=it.className,Ut=it.style;return oe.createElement("div",{ref:xt,className:_()("".concat(qe,"-treenode-motion"),vt),style:Ut},ie.map(function(Ht){var je=Ht.data,Le=je.key,ze=Object(b.a)(je,["key"]),st=Ht.isStart,rt=Ht.isEnd;delete ze.children;var Ue=Object(g.f)(Le,ce);return oe.createElement(S.a,Object.assign({},ze,Ue,{active:P,data:Ht.data,key:Le,isStart:st,isEnd:rt}))}))}):oe.createElement(S.a,Object.assign({domRef:Se,className:X,style:re},R,{active:P}))};U.displayName="MotionTreeNode";var Z=oe.forwardRef(U),ne=Z;function de(){var Pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Se=Pe.length,X=xe.length;if(Math.abs(Se-X)!==1)return{add:!1,key:null};function re(be,ie){var Ce=new Map;be.forEach(function(W){Ce.set(W,!0)});var v=ie.filter(function(W){return!Ce.has(W)});return v.length===1?v[0]:null}return Se ").concat(xe);return xe}var w=function(xe,Se){var X=xe.prefixCls,re=xe.data,be=xe.selectable,ie=xe.checkable,Ce=xe.expandedKeys,v=xe.selectedKeys,W=xe.checkedKeys,P=xe.loadedKeys,ce=xe.loadingKeys,R=xe.halfCheckedKeys,Q=xe.keyEntities,Ee=xe.disabled,De=xe.dragging,Ie=xe.dragOverNodeKey,Ge=xe.dropPosition,qe=xe.motion,Je=xe.height,$e=xe.itemHeight,it=xe.virtual,xt=xe.focusable,vt=xe.activeItem,Ut=xe.focused,Ht=xe.tabIndex,je=xe.onKeyDown,Le=xe.onFocus,ze=xe.onBlur,st=xe.onActiveChange,rt=xe.onListChangeStart,Ue=xe.onListChangeEnd,ke=Object(b.a)(xe,["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"]),Ke=oe.useRef(null);oe.useImperativeHandle(Se,function(){return{scrollTo:function(Mt){Ke.current.scrollTo(Mt)}}});var He=oe.useState(Ce),Ze=Object(m.a)(He,2),Be=Ze[0],Xe=Ze[1],ut=oe.useState(re),lt=Object(m.a)(ut,2),Ct=lt[0],Et=lt[1],At=oe.useState(re),kt=Object(m.a)(At,2),St=kt[0],Wt=kt[1],fn=oe.useState([]),vn=Object(m.a)(fn,2),An=vn[0],zn=vn[1],sn=oe.useState(null),gn=Object(m.a)(sn,2),Kt=gn[0],hn=gn[1];function pn(){Et(re),Wt(re),zn([]),hn(null),Ue()}oe.useEffect(function(){Xe(Ce);var ot=de(Be,Ce);if(ot.key!==null)if(ot.add){var Mt=Ct.findIndex(function(En){var Gn=En.data.key;return Gn===ot.key}),Ft=F(_e(Ct,re,ot.key),it,Je,$e),xn=Ct.slice();xn.splice(Mt+1,0,Y),Wt(xn),zn(Ft),hn("show")}else{var wn=re.findIndex(function(En){var Gn=En.data.key;return Gn===ot.key}),zt=F(_e(re,Ct,ot.key),it,Je,$e),tt=re.slice();tt.splice(wn+1,0,Y),Wt(tt),zn(zt),hn("hide")}else Ct!==re&&(Et(re),Wt(re))},[Ce,re]),oe.useEffect(function(){De||pn()},[De]);var Rt=qe?St:re,pt={expandedKeys:Ce,selectedKeys:v,loadedKeys:P,loadingKeys:ce,checkedKeys:W,halfCheckedKeys:R,dragOverNodeKey:Ie,dropPosition:Ge,keyEntities:Q};return oe.createElement(oe.Fragment,null,Ut&&vt&&oe.createElement("span",{style:ae,"aria-live":"assertive"},H(vt)),oe.createElement("div",{role:"tree"},oe.createElement("input",{style:ae,disabled:xt===!1||Ee,tabIndex:xt!==!1?Ht:null,onKeyDown:je,onFocus:Le,onBlur:ze,value:"",onChange:T})),oe.createElement(p.a,Object.assign({},ke,{data:Rt,itemKey:N,height:Je,fullHeight:!1,virtual:it,itemHeight:$e,prefixCls:"".concat(X,"-list"),ref:Ke}),function(ot){var Mt=ot.pos,Ft=ot.data,xn=Ft.key,wn=Object(b.a)(Ft,["key"]),zt=ot.isStart,tt=ot.isEnd,En=Object(g.e)(xn,Mt);delete wn.children;var Gn=Object(g.f)(En,pt);return oe.createElement(ne,Object.assign({},wn,Gn,{active:vt&&xn===vt.data.key,pos:Mt,data:ot.data,isStart:zt,isEnd:tt,motion:qe,motionNodes:xn===d?An:null,motionType:Kt,onMotionStart:rt,onMotionEnd:pn,treeNodeRequiredProps:pt,onMouseMove:function(){st(null)}}))}))},j=oe.forwardRef(w);j.displayName="NodeList";var K=j,ee=o("NvD2"),B=function(Pe){Object(D.a)(Se,Pe);var xe=Object(fe.a)(Se);function Se(){var X;return Object($.a)(this,Se),X=xe.apply(this,arguments),X.destroyed=!1,X.state={keyEntities:{},selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],dragging:!1,dragNodesKeys:[],dragOverNodeKey:null,dropPosition:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null},X.listRef=oe.createRef(),X.onNodeDragStart=function(re,be){var ie=X.state,Ce=ie.expandedKeys,v=ie.keyEntities,W=X.props.onDragStart,P=be.props.eventKey;X.dragNode=be;var ce=Object(u.b)(Ce,P);X.setState({dragging:!0,dragNodesKeys:Object(u.g)(P,v)}),X.setExpandedKeys(ce),W&&W({event:re,node:Object(g.b)(be.props)})},X.onNodeDragEnter=function(re,be){var ie=X.state,Ce=ie.expandedKeys,v=ie.keyEntities,W=ie.dragNodesKeys,P=X.props.onDragEnter,ce=be.props,R=ce.pos,Q=ce.eventKey;if(!X.dragNode||W.indexOf(Q)!==-1)return;var Ee=Object(u.c)(re,be);if(X.dragNode.props.eventKey===Q&&Ee===0){X.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){X.setState({dragOverNodeKey:Q,dropPosition:Ee}),X.delayedDragEnterLogic||(X.delayedDragEnterLogic={}),Object.keys(X.delayedDragEnterLogic).forEach(function(De){clearTimeout(X.delayedDragEnterLogic[De])}),X.delayedDragEnterLogic[R]=window.setTimeout(function(){if(!X.state.dragging)return;var De=Object(Re.a)(Ce),Ie=v[Q];Ie&&(Ie.children||[]).length&&(De=Object(u.a)(Ce,Q)),"expandedKeys"in X.props||X.setExpandedKeys(De),P&&P({event:re,node:Object(g.b)(be.props),expandedKeys:De})},400)},0)},X.onNodeDragOver=function(re,be){var ie=X.state.dragNodesKeys,Ce=X.props.onDragOver,v=be.props.eventKey;if(ie.indexOf(v)!==-1)return;if(X.dragNode&&v===X.state.dragOverNodeKey){var W=Object(u.c)(re,be);if(W===X.state.dropPosition)return;X.setState({dropPosition:W})}Ce&&Ce({event:re,node:Object(g.b)(be.props)})},X.onNodeDragLeave=function(re,be){var ie=X.props.onDragLeave;X.setState({dragOverNodeKey:""}),ie&&ie({event:re,node:Object(g.b)(be.props)})},X.onNodeDragEnd=function(re,be){var ie=X.props.onDragEnd;X.setState({dragOverNodeKey:""}),X.cleanDragState(),ie&&ie({event:re,node:Object(g.b)(be.props)}),X.dragNode=null},X.onNodeDrop=function(re,be){var ie=X.state,Ce=ie.dragNodesKeys,v=Ce===void 0?[]:Ce,W=ie.dropPosition,P=X.props.onDrop,ce=be.props,R=ce.eventKey,Q=ce.pos;if(X.setState({dragOverNodeKey:""}),X.cleanDragState(),v.indexOf(R)!==-1){Object(L.a)(!1,"Can not drop to dragNode(include it's children node)");return}var Ee=Object(u.k)(Q),De={event:re,node:Object(g.b)(be.props),dragNode:X.dragNode?Object(g.b)(X.dragNode.props):null,dragNodesKeys:v.slice(),dropPosition:W+Number(Ee[Ee.length-1]),dropToGap:!1};W!==0&&(De.dropToGap=!0),P&&P(De),X.dragNode=null},X.cleanDragState=function(){var re=X.state.dragging;re&&X.setState({dragging:!1})},X.onNodeClick=function(re,be){var ie=X.props.onClick;ie&&ie(re,be)},X.onNodeDoubleClick=function(re,be){var ie=X.props.onDoubleClick;ie&&ie(re,be)},X.onNodeSelect=function(re,be){var ie=X.state.selectedKeys,Ce=X.state.keyEntities,v=X.props,W=v.onSelect,P=v.multiple,ce=be.selected,R=be.key,Q=!ce;Q?P?ie=Object(u.a)(ie,R):ie=[R]:ie=Object(u.b)(ie,R);var Ee=ie.map(function(De){var Ie=Ce[De];return Ie?Ie.node:null}).filter(function(De){return De});X.setUncontrolledState({selectedKeys:ie}),W&&W(ie,{event:"select",selected:Q,node:be,selectedNodes:Ee,nativeEvent:re.nativeEvent})},X.onNodeCheck=function(re,be,ie){var Ce=X.state,v=Ce.keyEntities,W=Ce.checkedKeys,P=Ce.halfCheckedKeys,ce=X.props,R=ce.checkStrictly,Q=ce.onCheck,Ee=be.key,De,Ie={event:"check",node:be,checked:ie,nativeEvent:re.nativeEvent};if(R){var Ge=ie?Object(u.a)(W,Ee):Object(u.b)(W,Ee),qe=Object(u.b)(P,Ee);De={checked:Ge,halfChecked:qe},Ie.checkedNodes=Ge.map(function(Ut){return v[Ut]}).filter(function(Ut){return Ut}).map(function(Ut){return Ut.node}),X.setUncontrolledState({checkedKeys:Ge})}else{var Je=Object(ee.a)([].concat(Object(Re.a)(W),[Ee]),!0,v),$e=Je.checkedKeys,it=Je.halfCheckedKeys;if(!ie){var xt=new Set($e);xt.delete(Ee);var vt=Object(ee.a)(Array.from(xt),{checked:!1,halfCheckedKeys:it},v);$e=vt.checkedKeys,it=vt.halfCheckedKeys}De=$e,Ie.checkedNodes=[],Ie.checkedNodesPositions=[],Ie.halfCheckedKeys=it,$e.forEach(function(Ut){var Ht=v[Ut];if(!Ht)return;var je=Ht.node,Le=Ht.pos;Ie.checkedNodes.push(je),Ie.checkedNodesPositions.push({node:je,pos:Le})}),X.setUncontrolledState({checkedKeys:$e},!1,{halfCheckedKeys:it})}Q&&Q(De,Ie)},X.onNodeLoad=function(re){return new Promise(function(be){X.setState(function(ie){var Ce=ie.loadedKeys,v=Ce===void 0?[]:Ce,W=ie.loadingKeys,P=W===void 0?[]:W,ce=X.props,R=ce.loadData,Q=ce.onLoad,Ee=re.key;if(!R||v.indexOf(Ee)!==-1||P.indexOf(Ee)!==-1)return{};var De=R(re);return De.then(function(){var Ie=X.state,Ge=Ie.loadedKeys,qe=Ie.loadingKeys,Je=Object(u.a)(Ge,Ee),$e=Object(u.b)(qe,Ee);Q&&Q(Je,{event:"load",node:re}),X.setUncontrolledState({loadedKeys:Je}),X.setState({loadingKeys:$e}),be()}),{loadingKeys:Object(u.a)(P,Ee)}})})},X.onNodeMouseEnter=function(re,be){var ie=X.props.onMouseEnter;ie&&ie({event:re,node:be})},X.onNodeMouseLeave=function(re,be){var ie=X.props.onMouseLeave;ie&&ie({event:re,node:be})},X.onNodeContextMenu=function(re,be){var ie=X.props.onRightClick;ie&&(re.preventDefault(),ie({event:re,node:be}))},X.onFocus=function(){var re=X.props.onFocus;X.setState({focused:!0}),re&&re.apply(void 0,arguments)},X.onBlur=function(){var re=X.props.onBlur;X.setState({focused:!1}),X.onActiveChange(null),re&&re.apply(void 0,arguments)},X.getTreeNodeRequiredProps=function(){var re=X.state,be=re.expandedKeys,ie=re.selectedKeys,Ce=re.loadedKeys,v=re.loadingKeys,W=re.checkedKeys,P=re.halfCheckedKeys,ce=re.dragOverNodeKey,R=re.dropPosition,Q=re.keyEntities;return{expandedKeys:be||[],selectedKeys:ie||[],loadedKeys:Ce||[],loadingKeys:v||[],checkedKeys:W||[],halfCheckedKeys:P||[],dragOverNodeKey:ce,dropPosition:R,keyEntities:Q}},X.setExpandedKeys=function(re){var be=X.state.treeData,ie=Object(g.d)(be,re);X.setUncontrolledState({expandedKeys:re,flattenNodes:ie},!0)},X.onNodeExpand=function(re,be){var ie=X.state.expandedKeys,Ce=X.state.listChanging,v=X.props,W=v.onExpand,P=v.loadData,ce=be.key,R=be.expanded;if(Ce)return;var Q=ie.indexOf(ce),Ee=!R;if(Object(L.a)(R&&Q!==-1||!R&&Q===-1,"Expand state not sync with index check"),Ee?ie=Object(u.a)(ie,ce):ie=Object(u.b)(ie,ce),X.setExpandedKeys(ie),W&&W(ie,{node:be,expanded:Ee,nativeEvent:re.nativeEvent}),Ee&&P){var De=X.onNodeLoad(be);De&&De.then(function(){var Ie=Object(g.d)(X.state.treeData,ie);X.setUncontrolledState({flattenNodes:Ie})})}},X.onListChangeStart=function(){X.setUncontrolledState({listChanging:!0})},X.onListChangeEnd=function(){setTimeout(function(){X.setUncontrolledState({listChanging:!1})})},X.onActiveChange=function(re){var be=X.state.activeKey,ie=X.props.onActiveChange;if(be===re)return;X.setState({activeKey:re}),re!==null&&X.scrollTo({key:re}),ie&&ie(re)},X.getActiveItem=function(){var re=X.state,be=re.activeKey,ie=re.flattenNodes;return be===null?null:ie.find(function(Ce){var v=Ce.data.key;return v===be})||null},X.offsetActiveKey=function(re){var be=X.state,ie=be.flattenNodes,Ce=be.activeKey,v=ie.findIndex(function(ce){var R=ce.data.key;return R===Ce});v===-1&&re<0&&(v=ie.length),v=(v+re+ie.length)%ie.length;var W=ie[v];if(W){var P=W.data.key;X.onActiveChange(P)}else X.onActiveChange(null)},X.onKeyDown=function(re){var be=X.state,ie=be.activeKey,Ce=be.expandedKeys,v=be.checkedKeys,W=X.props,P=W.onKeyDown,ce=W.checkable,R=W.selectable;switch(re.which){case z.a.UP:{X.offsetActiveKey(-1),re.preventDefault();break}case z.a.DOWN:{X.offsetActiveKey(1),re.preventDefault();break}}var Q=X.getActiveItem();if(Q&&Q.data){var Ee=X.getTreeNodeRequiredProps(),De=Q.data.isLeaf===!1||!!(Q.data.children||[]).length,Ie=Object(g.b)(Object(J.a)(Object(J.a)({},Object(g.f)(ie,Ee)),{},{data:Q.data,active:!0}));switch(re.which){case z.a.LEFT:{De&&Ce.includes(ie)?X.onNodeExpand({},Ie):Q.parent&&X.onActiveChange(Q.parent.data.key),re.preventDefault();break}case z.a.RIGHT:{De&&!Ce.includes(ie)?X.onNodeExpand({},Ie):Q.children&&Q.children.length&&X.onActiveChange(Q.children[0].data.key),re.preventDefault();break}case z.a.ENTER:case z.a.SPACE:{ce&&!Ie.disabled&&Ie.checkable!==!1&&!Ie.disableCheckbox?X.onNodeCheck({},Ie,!v.includes(ie)):!ce&&R&&!Ie.disabled&&Ie.selectable!==!1&&X.onNodeSelect({},Ie);break}}}P&&P(re)},X.setUncontrolledState=function(re){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(X.destroyed)return;var Ce=!1,v=!0,W={};Object.keys(re).forEach(function(P){if(P in X.props){v=!1;return}Ce=!0,W[P]=re[P]}),Ce&&(!be||v)&&X.setState(Object(J.a)(Object(J.a)({},W),ie))},X.scrollTo=function(re){X.listRef.current.scrollTo(re)},X}return Object(x.a)(Se,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var re,be=this.state,ie=be.focused,Ce=be.flattenNodes,v=be.keyEntities,W=be.dragging,P=be.activeKey,ce=this.props,R=ce.prefixCls,Q=ce.className,Ee=ce.style,De=ce.showLine,Ie=ce.focusable,Ge=ce.tabIndex,qe=Ge===void 0?0:Ge,Je=ce.selectable,$e=ce.showIcon,it=ce.icon,xt=ce.switcherIcon,vt=ce.draggable,Ut=ce.checkable,Ht=ce.checkStrictly,je=ce.disabled,Le=ce.motion,ze=ce.loadData,st=ce.filterTreeNode,rt=ce.height,Ue=ce.itemHeight,ke=ce.virtual,Ke=ce.titleRender,He=ce.onContextMenu,Ze=Object(u.f)(this.props);return oe.createElement(O.a.Provider,{value:{prefixCls:R,selectable:Je,showIcon:$e,icon:it,switcherIcon:xt,draggable:vt,checkable:Ut,checkStrictly:Ht,disabled:je,keyEntities:v,loadData:ze,filterTreeNode:st,titleRender:Ke,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},oe.createElement("div",{className:_()(R,Q,(re={},Object(le.a)(re,"".concat(R,"-show-line"),De),Object(le.a)(re,"".concat(R,"-focused"),ie),Object(le.a)(re,"".concat(R,"-active-focused"),P!==null),re))},oe.createElement(K,Object.assign({ref:this.listRef,prefixCls:R,style:Ee,data:Ce,disabled:je,selectable:Je,checkable:!!Ut,motion:Le,dragging:W,height:rt,itemHeight:Ue,virtual:ke,focusable:Ie,focused:ie,tabIndex:qe,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:He},this.getTreeNodeRequiredProps(),Ze))))}}],[{key:"getDerivedStateFromProps",value:function(re,be){var ie=be.prevProps,Ce={prevProps:re};function v(it){return!ie&&it in re||ie&&ie[it]!==re[it]}var W;if(v("treeData")?W=re.treeData:v("children")&&(Object(L.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),W=Object(g.c)(re.children)),W){Ce.treeData=W;var P=Object(g.a)(W);Ce.keyEntities=Object(J.a)(Object(le.a)({},d,ue),P.keyEntities)}var ce=Ce.keyEntities||be.keyEntities;if(v("expandedKeys")||ie&&v("autoExpandParent"))Ce.expandedKeys=re.autoExpandParent||!ie&&re.defaultExpandParent?Object(u.e)(re.expandedKeys,ce):re.expandedKeys;else if(!ie&&re.defaultExpandAll){var R=Object(J.a)({},ce);delete R[d],Ce.expandedKeys=Object.keys(R).map(function(it){return R[it].key})}else!ie&&re.defaultExpandedKeys&&(Ce.expandedKeys=re.autoExpandParent||re.defaultExpandParent?Object(u.e)(re.defaultExpandedKeys,ce):re.defaultExpandedKeys);if(Ce.expandedKeys||delete Ce.expandedKeys,W||Ce.expandedKeys){var Q=Object(g.d)(W||be.treeData,Ce.expandedKeys||be.expandedKeys);Ce.flattenNodes=Q}if(re.selectable&&(v("selectedKeys")?Ce.selectedKeys=Object(u.d)(re.selectedKeys,re):!ie&&re.defaultSelectedKeys&&(Ce.selectedKeys=Object(u.d)(re.defaultSelectedKeys,re))),re.checkable){var Ee;if(v("checkedKeys")?Ee=Object(u.j)(re.checkedKeys)||{}:!ie&&re.defaultCheckedKeys?Ee=Object(u.j)(re.defaultCheckedKeys)||{}:W&&(Ee=Object(u.j)(re.checkedKeys)||{checkedKeys:be.checkedKeys,halfCheckedKeys:be.halfCheckedKeys}),Ee){var De=Ee,Ie=De.checkedKeys,Ge=Ie===void 0?[]:Ie,qe=De.halfCheckedKeys,Je=qe===void 0?[]:qe;if(!re.checkStrictly){var $e=Object(ee.a)(Ge,!0,ce);Ge=$e.checkedKeys,Je=$e.halfCheckedKeys}Ce.checkedKeys=Ge,Ce.halfCheckedKeys=Je}}return v("loadedKeys")&&(Ce.loadedKeys=re.loadedKeys),Ce}}]),Se}(oe.Component);B.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[]},B.TreeNode=S.a;var te=B,ye=k.b=te},fjLI:function(Te,k,o){"use strict";o.d(k,"e",function(){return L}),o.d(k,"a",function(){return C}),o.d(k,"c",function(){return _}),o.d(k,"d",function(){return u}),o.d(k,"b",function(){return g});var le=o("8HAY"),J=o("Cg/j"),Re=o("T8No"),$=o("nnTU"),x=o("MI8n"),D=function(){var m=function(b,p){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,S){y.__proto__=S}||function(y,S){for(var U in S)S.hasOwnProperty(U)&&(y[U]=S[U])},m(b,p)};return function(b,p){m(b,p);function y(){this.constructor=b}b.prototype=p===null?Object.create(p):(y.prototype=p.prototype,new y)}}(),fe=function(m,b,p,y){var S=arguments.length,U=S<3?b:y===null?y=Object.getOwnPropertyDescriptor(b,p):y,Z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")U=Reflect.decorate(m,b,p,y);else for(var ne=m.length-1;ne>=0;ne--)(Z=m[ne])&&(U=(S<3?Z(U):S>3?Z(b,p,U):Z(b,p))||U);return S>3&&U&&Object.defineProperty(b,p,U),U},oe=function(m,b){return function(p,y){b(p,y,m)}},z=function(){for(var m=0,b=0,p=arguments.length;b=0&&(S.splice(U,1),y._onDidChangeMenu.fire(b))}}},m.prototype.getMenuItems=function(b){var p=(this._menuItems.get(b)||[]).slice(0);return b===0&&this._appendImplicitItems(p),p},m.prototype._appendImplicitItems=function(b){for(var p=new Set,y=b.filter(function(_e){return L(_e)}),S=0,U=y;SH.length)&&(w=H.length);for(var j=0,K=new Array(w);j=0)continue;if(!Object.prototype.propertyIsEnumerable.call(H,K))continue;j[K]=H[K]}}return j}function g(H,w){if(H==null)return{};var j={},K=Object.keys(H),ee,B;for(B=0;B=0)continue;j[ee]=H[ee]}return j}var m=function(w){var j=w.className,K=w.percent,ee=w.prefixCls,B=w.strokeColor,te=w.strokeLinecap,ye=w.strokeWidth,Pe=w.style,xe=w.trailColor,Se=w.trailWidth,X=w.transition,re=u(w,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete re.gapPosition;var be=Array.isArray(K)?K:[K],ie=Array.isArray(B)?B:[B],Ce=D(be),v=oe(Ce,1),W=v[0],P=ye/2,ce=100-ye/2,R="M ".concat(te==="round"?P:0,",").concat(P,` - L `).concat(te==="round"?ce:100,",").concat(P),Q="0 0 100 ".concat(ye),Ee=0;return J.a.createElement("svg",fe({className:$()("".concat(ee,"-line"),j),viewBox:Q,preserveAspectRatio:"none",style:Pe},re),J.a.createElement("path",{className:"".concat(ee,"-line-trail"),d:R,strokeLinecap:te,stroke:xe,strokeWidth:Se||ye,fillOpacity:"0"}),be.map(function(De,Ie){var Ge={strokeDasharray:"".concat(De,"px, 100px"),strokeDashoffset:"-".concat(Ee,"px"),transition:X||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},qe=ie[Ie]||ie[ie.length-1];return Ee+=De,J.a.createElement("path",{key:Ie,className:"".concat(ee,"-line-path"),d:R,strokeLinecap:te,stroke:qe,strokeWidth:ye,fillOpacity:"0",ref:W[Ie],style:Ge})}))};m.defaultProps=x;var b=m;function p(){return p=Object.assign||function(H){for(var w=1;w0&&arguments[0]!==void 0?arguments[0]:[],s=d;if(Array.isArray(d)){for(var ue=0;ue0||xn.target.offsetWidth>0)&&ze.current.instance.layout()}}catch(wn){Mt.e(wn)}finally{Mt.f()}}),pt.observe(Le.current)),pt}function lt(){x.b.warn({content:decodeURIComponent(m),key:"monaco-editor-tip"})}var Ct=function(){var ot=ze.current.instance;if(N!=null&&ot&&Be){var Mt=ot.getModel();Mt&&N!==Mt.getValue()&&(Z=!0,Mt.setValue(N),ot.layout(),Z=!1)}};Object(C.useEffect)(function(){try{var pt,ot=ze.current.instance;rt.current&&clearTimeout(rt.current),rt.current=setTimeout(function(){Ct()},500),ot==null||((pt=ot.updateOptions)===null||pt===void 0)||pt.call(ot,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(N.split(/\r\n|\r|\n/g).length))+3,5)})}catch(Mt){debugger}},[N,Be,ze.current]),Object(C.useEffect)(function(){try{if($e&&ze.current&&ze.current.instance){var pt=ze.current.instance;pt.changeViewZones(function(Mt){var Ft=document.createElement("div");Ft.style.padding="10px 20px",Ft.style.width="calc(100% - 20px)",Ft.className="my-error-line-wrp",Ft.innerHTML=xt,Mt.addZone({afterLineNumber:$e||11,heightInLines:3,domNode:Ft})});var ot={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}};pt.addOverlayWidget(ot),pt.revealPositionInCenter({lineNumber:20,column:1})}}catch(Mt){debugger}},[$e,ze.current,Be]),Object(C.useEffect)(function(){var pt;if((pt=ze.current)!==null&&pt!==void 0&&pt.instance&&Be&&Ht){var ot=ze.current.instance,Mt=ot.getModel();if(!Mt)return;var Ft=function(){var Oe=[],at=[],mt=Mt.getAllDecorations(),dt=Object(D.a)(mt),Nt;try{for(dt.s();!(Nt=dt.n()).done;){var Dt=Nt.value;if(Dt.options.className==="highlighted-line"){var Ye;Oe.push(Dt==null||((Ye=Dt.range)===null||Ye===void 0)?void 0:Ye.startLineNumber),at.push(Dt==null?void 0:Dt.id)}}}catch(Pt){dt.e(Pt)}finally{dt.f()}Mt.deltaDecorations(at,[]);var ht=Mt.getLineCount();!!vt&&vt<=ht&&(ot.deltaDecorations([],[{range:new _e.Range(vt,1,vt,Mt.getLineMaxColumn(vt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),ot.revealLineInCenter(vt))};Ft();var xn=function(){var Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,at=[],mt=[],dt=Mt.getAllDecorations(),Nt=Object(D.a)(dt),Dt;try{for(Nt.s();!(Dt=Nt.n()).done;){var Ye=Dt.value;if(Ye.options.linesDecorationsClassName==="breakpoints"){var ht;at.push(Ye==null||((ht=Ye.range)===null||ht===void 0)?void 0:ht.startLineNumber),mt.push(Ye==null?void 0:Ye.id)}}}catch(Pt){Nt.e(Pt)}finally{Nt.f()}if(Oe)return{lines:at,ids:mt};De(at)},wn=function(){var Me=Object(Re.a)(L.a.mark(function Oe(at){var mt;return L.a.wrap(function(Nt){for(;;)switch(Nt.prev=Nt.next){case 0:return mt={range:new _e.Range(at,1,at,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}},Nt.next=3,Mt.deltaDecorations([],[mt]);case 3:xn();case 4:case"end":return Nt.stop()}},Oe)}));return function(at){return Me.apply(this,arguments)}}(),zt=function(){var Me=Object(Re.a)(L.a.mark(function Oe(at){var mt,dt,Nt,Dt,Ye;return L.a.wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:mt=[],dt=ot.getLineDecorations(at),Nt=Object(D.a)(dt);try{for(Nt.s();!(Dt=Nt.n()).done;)Ye=Dt.value,Ye.options.linesDecorationsClassName==="breakpoints"&&mt.push(Ye.id)}catch(Xt){Nt.e(Xt)}finally{Nt.f()}return Pt.next=6,Mt.deltaDecorations(mt,[]);case 6:xn();case 7:case"end":return Pt.stop()}},Oe)}));return function(at){return Me.apply(this,arguments)}}(),tt=function(Oe){var at=ot.getLineDecorations(Oe),mt=Object(D.a)(at),dt;try{for(mt.s();!(dt=mt.n()).done;){var Nt=dt.value;if(Nt.options.linesDecorationsClassName==="breakpoints")return!0}}catch(Dt){mt.e(Dt)}finally{mt.f()}return!1};if(!Object(p.isEqual)(Ge,xn(!0).lines)){Mt.deltaDecorations(xn(!0).ids,[]);var bn=Ge.map(function(Me){return{range:new _e.Range(Me,1,Me,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}}});Mt.deltaDecorations([],bn)}var Gn=ot.onDidChangeModelContent(function(Me){var Oe=ot.getPosition();if(Oe){var at=Oe.lineNumber;Mt.getLineContent(at).trim()===""?zt(at):tt(at)&&(zt(at),wn(at))}}),ta=ot.onMouseDown(function(Me){var Oe,at,mt;if(Me.target.detail&&(Oe=Me.target)!==null&&Oe!==void 0&&(at=Oe.element)!==null&&at!==void 0&&(mt=at.className)!==null&&mt!==void 0&&mt.includes("line-numbers")){var dt=Me.target.position.lineNumber;if(Mt.getLineContent(dt).trim()==="")return;tt(dt)?zt(dt):wn(dt)}}),$t=function(Oe){var at={range:new _e.Range(Oe,1,Oe,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Ue.current=ot.deltaDecorations(Ue.current,[at])},Tt=function(){Ue.current=ot.deltaDecorations(Ue.current,[])},Nn=ot.onMouseMove(function(Me){var Oe,at,mt;if(Tt(),Me.target.detail&&(Oe=Me.target)!==null&&Oe!==void 0&&(at=Oe.element)!==null&&at!==void 0&&(mt=at.className)!==null&&mt!==void 0&&mt.includes("line-numbers")){var dt=Me.target.position.lineNumber;if(Mt.getLineContent(dt).trim()==="")return;$t(dt)}}),ua=ot.onMouseLeave(function(){Tt()});return function(){Gn.dispose(),ta.dispose(),Nn.dispose(),ua.dispose()}}},[ze.current,Be,Ge,vt,Ht]);function bt(){var pt=ze.current.instance;if(pt){var ot=pt.getSelection(),Mt=ze.current.pastePos||{},Ft=new _e.Range(Mt.startLineNumber||ot.endLineNumber,Mt.startColumn||ot.endColumn,Mt.endLineNumber||ot.endLineNumber,Mt.endColumn||ot.endColumn);setTimeout(function(){pt.executeEdits("",[{range:Ft,text:""}])},300)}}function At(pt){(window.navigator.platform.match("Mac")?pt.metaKey:pt.ctrlKey)&&pt.keyCode==83&&(pt.preventDefault(),X())}var kt=function(){if(Ee&&ze.current.instance){var ot=ze.current.instance.getContentHeight();pn(ot0||P.target.offsetWidth>0)&&Ee.layout()}}catch(ce){v.e(ce)}finally{v.f()}}),ie.observe(ee.current)),ie}Object(C.useEffect)(function(){return ee.current&&o.e(27).then(o.t.bind(null,"M/lh",7)).then(function(Ee){_e=Ee;var ie=_e.editor.createDiffEditor(ee.current,Object(le.a)(Object(le.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},K),{},{wordWrap:!0}));Pe(ie);var Ce=xe(ie);return function(){ie.dispose();var v=ie.getModel();v&&v.dispose(),Ce.unobserve(ee.current)}}),function(){window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}},[]),Object(C.useEffect)(function(){ye&&ye.setModel({original:_e.editor.createModel(N,w),modified:_e.editor.createModel(H,w)})},[N,H,w,ye]);var Se=S(ue),X=S(F),re={width:Se,height:X};return _.a.createElement("div",{className:"my-diff-editor",ref:ee,style:re})}},ZaFS:function(Te,k,o){Te.exports={wrap:"wrap___1Ov0Q",title:"title___qleZg",path:"path___3MTzj",colorBlue:"colorBlue___3MDCw"}},ZpRC:function(Te,k,o){"use strict";function le(C){return typeof C=="object"&&C!=null&&C.nodeType===1}function J(C,_){return(!_||C!=="hidden")&&C!=="visible"&&C!=="clip"}function Re(C,_){if(C.clientHeight_||m>C&&E<_?0:m<=C&&p<=O||E>=_&&p>=O?m-C-u:E>_&&pO?E-_+g:0}var x=function(C,_){var O=window,u=_.scrollMode,g=_.block,m=_.inline,E=_.boundary,p=_.skipOverflowHiddenElements,y=typeof E=="function"?E:function(De){return De!==E};if(!le(C))throw new TypeError("Invalid target");for(var S=document.scrollingElement||document.documentElement,U=[],Z=C;le(Z)&&y(Z);){if((Z=Z.parentElement)===S){U.push(Z);break}Z!=null&&Z===document.body&&Re(Z)&&!Re(document.documentElement)||Z!=null&&Re(Z,p)&&U.push(Z)}for(var ne=O.visualViewport?O.visualViewport.width:innerWidth,de=O.visualViewport?O.visualViewport.height:innerHeight,_e=window.scrollX||pageXOffset,ae=window.scrollY||pageYOffset,T=C.getBoundingClientRect(),d=T.height,s=T.width,ue=T.top,Y=T.right,F=T.bottom,N=T.left,H=g==="start"||g==="nearest"?ue:g==="end"?F:ue+d/2,w=m==="center"?N+s/2:m==="end"?Y:N,j=[],K=0;K=0&&N>=0&&F<=de&&Y<=ne&&ue>=Pe&&F<=Se&&N>=X&&Y<=xe)return j;var re=getComputedStyle(ee),Ee=parseInt(re.borderLeftWidth,10),ie=parseInt(re.borderTopWidth,10),Ce=parseInt(re.borderRightWidth,10),v=parseInt(re.borderBottomWidth,10),W=0,P=0,ce="offsetWidth"in ee?ee.offsetWidth-ee.clientWidth-Ee-Ce:0,R="offsetHeight"in ee?ee.offsetHeight-ee.clientHeight-ie-v:0;if(S===ee)W=g==="start"?H:g==="end"?H-de:g==="nearest"?$(ae,ae+de,de,ie,v,ae+H,ae+H+d,d):H-de/2,P=m==="start"?w:m==="center"?w-ne/2:m==="end"?w-ne:$(_e,_e+ne,ne,Ee,Ce,_e+w,_e+w+s,s),W=Math.max(0,W+ae),P=Math.max(0,P+_e);else{W=g==="start"?H-Pe-ie:g==="end"?H-Se+v+R:g==="nearest"?$(Pe,Se,te,ie,v+R,H,H+d,d):H-(Pe+te/2)+R/2,P=m==="start"?w-X-Ee:m==="center"?w-(X+ye/2)+ce/2:m==="end"?w-xe+Ce+ce:$(X,xe,ye,Ee,Ce+ce,w,w+s,s);var Q=ee.scrollLeft,be=ee.scrollTop;H+=be-(W=Math.max(0,Math.min(be+W,ee.scrollHeight-te+R))),w+=Q-(P=Math.max(0,Math.min(Q+P,ee.scrollWidth-ye+ce)))}j.push({el:ee,top:W,left:P})}return j};function D(C){return C===Object(C)&&Object.keys(C).length!==0}function fe(C,_){_===void 0&&(_="auto");var O="scrollBehavior"in document.body.style;C.forEach(function(u){var g=u.el,m=u.top,E=u.left;g.scroll&&O?g.scroll({top:m,left:E,behavior:_}):(g.scrollTop=m,g.scrollLeft=E)})}function oe(C){return C===!1?{block:"end",inline:"nearest"}:D(C)?C:{block:"start",inline:"nearest"}}function z(C,_){var O=!C.ownerDocument.documentElement.contains(C);if(D(_)&&typeof _.behavior=="function")return _.behavior(O?[]:x(C,_));if(O)return;var u=oe(_);return fe(x(C,u),u.behavior)}var L=k.a=z},Zss7:function(Te,k,o){var le;(function(J){var Re=/^\s+/,$=/\s+$/,x=0,D=J.round,fe=J.min,oe=J.max,z=J.random;function L(v,W){if(v=v||"",W=W||{},v instanceof L)return v;if(!(this instanceof L))return new L(v,W);var P=C(v);this._originalInput=v,this._r=P.r,this._g=P.g,this._b=P.b,this._a=P.a,this._roundA=D(100*this._a)/100,this._format=W.format||P.format,this._gradientType=W.gradientType,this._r<1&&(this._r=D(this._r)),this._g<1&&(this._g=D(this._g)),this._b<1&&(this._b=D(this._b)),this._ok=P.ok,this._tc_id=x++}L.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var v=this.toRgb();return(v.r*299+v.g*587+v.b*114)/1e3},getLuminance:function(){var v=this.toRgb(),W,P,ce,R,Q,be;return W=v.r/255,P=v.g/255,ce=v.b/255,W<=.03928?R=W/12.92:R=J.pow((W+.055)/1.055,2.4),P<=.03928?Q=P/12.92:Q=J.pow((P+.055)/1.055,2.4),ce<=.03928?be=ce/12.92:be=J.pow((ce+.055)/1.055,2.4),.2126*R+.7152*Q+.0722*be},setAlpha:function(v){return this._a=j(v),this._roundA=D(100*this._a)/100,this},toHsv:function(){var v=g(this._r,this._g,this._b);return{h:v.h*360,s:v.s,v:v.v,a:this._a}},toHsvString:function(){var v=g(this._r,this._g,this._b),W=D(v.h*360),P=D(v.s*100),ce=D(v.v*100);return this._a==1?"hsv("+W+", "+P+"%, "+ce+"%)":"hsva("+W+", "+P+"%, "+ce+"%, "+this._roundA+")"},toHsl:function(){var v=O(this._r,this._g,this._b);return{h:v.h*360,s:v.s,l:v.l,a:this._a}},toHslString:function(){var v=O(this._r,this._g,this._b),W=D(v.h*360),P=D(v.s*100),ce=D(v.l*100);return this._a==1?"hsl("+W+", "+P+"%, "+ce+"%)":"hsla("+W+", "+P+"%, "+ce+"%, "+this._roundA+")"},toHex:function(v){return E(this._r,this._g,this._b,v)},toHexString:function(v){return"#"+this.toHex(v)},toHex8:function(v){return p(this._r,this._g,this._b,this._a,v)},toHex8String:function(v){return"#"+this.toHex8(v)},toRgb:function(){return{r:D(this._r),g:D(this._g),b:D(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+D(this._r)+", "+D(this._g)+", "+D(this._b)+")":"rgba("+D(this._r)+", "+D(this._g)+", "+D(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:D(K(this._r,255)*100)+"%",g:D(K(this._g,255)*100)+"%",b:D(K(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+D(K(this._r,255)*100)+"%, "+D(K(this._g,255)*100)+"%, "+D(K(this._b,255)*100)+"%)":"rgba("+D(K(this._r,255)*100)+"%, "+D(K(this._g,255)*100)+"%, "+D(K(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:H[E(this._r,this._g,this._b,!0)]||!1},toFilter:function(v){var W="#"+y(this._r,this._g,this._b,this._a),P=W,ce=this._gradientType?"GradientType = 1, ":"";if(v){var R=L(v);P="#"+y(R._r,R._g,R._b,R._a)}return"progid:DXImageTransform.Microsoft.gradient("+ce+"startColorstr="+W+",endColorstr="+P+")"},toString:function(v){var W=!!v;v=v||this._format;var P=!1,ce=this._a<1&&this._a>=0,R=!W&&ce&&(v==="hex"||v==="hex6"||v==="hex3"||v==="hex4"||v==="hex8"||v==="name");return R?v==="name"&&this._a===0?this.toName():this.toRgbString():(v==="rgb"&&(P=this.toRgbString()),v==="prgb"&&(P=this.toPercentageRgbString()),(v==="hex"||v==="hex6")&&(P=this.toHexString()),v==="hex3"&&(P=this.toHexString(!0)),v==="hex4"&&(P=this.toHex8String(!0)),v==="hex8"&&(P=this.toHex8String()),v==="name"&&(P=this.toName()),v==="hsl"&&(P=this.toHslString()),v==="hsv"&&(P=this.toHsvString()),P||this.toHexString())},clone:function(){return L(this.toString())},_applyModification:function(v,W){var P=v.apply(null,[this].concat([].slice.call(W)));return this._r=P._r,this._g=P._g,this._b=P._b,this.setAlpha(P._a),this},lighten:function(){return this._applyModification(ne,arguments)},brighten:function(){return this._applyModification(de,arguments)},darken:function(){return this._applyModification(_e,arguments)},desaturate:function(){return this._applyModification(S,arguments)},saturate:function(){return this._applyModification(U,arguments)},greyscale:function(){return this._applyModification(Z,arguments)},spin:function(){return this._applyModification(ae,arguments)},_applyCombination:function(v,W){return v.apply(null,[this].concat([].slice.call(W)))},analogous:function(){return this._applyCombination(Y,arguments)},complement:function(){return this._applyCombination(T,arguments)},monochromatic:function(){return this._applyCombination(F,arguments)},splitcomplement:function(){return this._applyCombination(ue,arguments)},triad:function(){return this._applyCombination(d,arguments)},tetrad:function(){return this._applyCombination(s,arguments)}},L.fromRatio=function(v,W){if(typeof v=="object"){var P={};for(var ce in v)v.hasOwnProperty(ce)&&(ce==="a"?P[ce]=v[ce]:P[ce]=xe(v[ce]));v=P}return L(v,W)};function C(v){var W={r:0,g:0,b:0},P=1,ce=null,R=null,Q=null,be=!1,De=!1;return typeof v=="string"&&(v=ie(v)),typeof v=="object"&&(Ee(v.r)&&Ee(v.g)&&Ee(v.b)?(W=_(v.r,v.g,v.b),be=!0,De=String(v.r).substr(-1)==="%"?"prgb":"rgb"):Ee(v.h)&&Ee(v.s)&&Ee(v.v)?(ce=xe(v.s),R=xe(v.v),W=m(v.h,ce,R),be=!0,De="hsv"):Ee(v.h)&&Ee(v.s)&&Ee(v.l)&&(ce=xe(v.s),Q=xe(v.l),W=u(v.h,ce,Q),be=!0,De="hsl"),v.hasOwnProperty("a")&&(P=v.a)),P=j(P),{ok:be,format:v.format||De,r:fe(255,oe(W.r,0)),g:fe(255,oe(W.g,0)),b:fe(255,oe(W.b,0)),a:P}}function _(v,W,P){return{r:K(v,255)*255,g:K(W,255)*255,b:K(P,255)*255}}function O(v,W,P){v=K(v,255),W=K(W,255),P=K(P,255);var ce=oe(v,W,P),R=fe(v,W,P),Q,be,De=(ce+R)/2;if(ce==R)Q=be=0;else{var Ie=ce-R;be=De>.5?Ie/(2-ce-R):Ie/(ce+R);switch(ce){case v:Q=(W-P)/Ie+(W1&&(Je-=1),Je<1/6?Ge+(qe-Ge)*6*Je:Je<1/2?qe:Je<2/3?Ge+(qe-Ge)*(2/3-Je)*6:Ge}if(W===0)ce=R=Q=P;else{var De=P<.5?P*(1+W):P+W-P*W,Ie=2*P-De;ce=be(Ie,De,v+1/3),R=be(Ie,De,v),Q=be(Ie,De,v-1/3)}return{r:ce*255,g:R*255,b:Q*255}}function g(v,W,P){v=K(v,255),W=K(W,255),P=K(P,255);var ce=oe(v,W,P),R=fe(v,W,P),Q,be,De=ce,Ie=ce-R;if(be=ce===0?0:Ie/ce,ce==R)Q=0;else{switch(ce){case v:Q=(W-P)/Ie+(W>1)+720)%360;--W;)ce.h=(ce.h+R)%360,Q.push(L(ce));return Q}function F(v,W){W=W||6;for(var P=L(v).toHsv(),ce=P.h,R=P.s,Q=P.v,be=[],De=1/W;W--;)be.push(L({h:ce,s:R,v:Q})),Q=(Q+De)%1;return be}L.mix=function(v,W,P){P=P===0?0:P||50;var ce=L(v).toRgb(),R=L(W).toRgb(),Q=P/100,be={r:(R.r-ce.r)*Q+ce.r,g:(R.g-ce.g)*Q+ce.g,b:(R.b-ce.b)*Q+ce.b,a:(R.a-ce.a)*Q+ce.a};return L(be)},L.readability=function(v,W){var P=L(v),ce=L(W);return(J.max(P.getLuminance(),ce.getLuminance())+.05)/(J.min(P.getLuminance(),ce.getLuminance())+.05)},L.isReadable=function(v,W,P){var ce=L.readability(v,W),R,Q;Q=!1,R=Ce(P);switch(R.level+R.size){case"AAsmall":case"AAAlarge":Q=ce>=4.5;break;case"AAlarge":Q=ce>=3;break;case"AAAsmall":Q=ce>=7;break}return Q},L.mostReadable=function(v,W,P){var ce=null,R=0,Q,be,De,Ie;P=P||{},be=P.includeFallbackColors,De=P.level,Ie=P.size;for(var Ge=0;GeR&&(R=Q,ce=L(W[Ge]));return L.isReadable(v,ce,{level:De,size:Ie})||!be?ce:(P.includeFallbackColors=!1,L.mostReadable(v,["#fff","#000"],P))};var N=L.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},H=L.hexNames=w(N);function w(v){var W={};for(var P in v)v.hasOwnProperty(P)&&(W[v[P]]=P);return W}function j(v){return v=parseFloat(v),(isNaN(v)||v<0||v>1)&&(v=1),v}function K(v,W){te(v)&&(v="100%");var P=ye(v);return v=fe(W,oe(0,parseFloat(v))),P&&(v=parseInt(v*W,10)/100),J.abs(v-W)<1e-6?1:v%W/parseFloat(W)}function ee(v){return fe(1,oe(0,v))}function B(v){return parseInt(v,16)}function te(v){return typeof v=="string"&&v.indexOf(".")!=-1&&parseFloat(v)===1}function ye(v){return typeof v=="string"&&v.indexOf("%")!=-1}function Pe(v){return v.length==1?"0"+v:""+v}function xe(v){return v<=1&&(v=v*100+"%"),v}function Se(v){return J.round(parseFloat(v)*255).toString(16)}function X(v){return B(v)/255}var re=function(){var v="[-\\+]?\\d+%?",W="[-\\+]?\\d*\\.\\d+%?",P="(?:"+W+")|(?:"+v+")",ce="[\\s|\\(]+("+P+")[,|\\s]+("+P+")[,|\\s]+("+P+")\\s*\\)?",R="[\\s|\\(]+("+P+")[,|\\s]+("+P+")[,|\\s]+("+P+")[,|\\s]+("+P+")\\s*\\)?";return{CSS_UNIT:new RegExp(P),rgb:new RegExp("rgb"+ce),rgba:new RegExp("rgba"+R),hsl:new RegExp("hsl"+ce),hsla:new RegExp("hsla"+R),hsv:new RegExp("hsv"+ce),hsva:new RegExp("hsva"+R),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Ee(v){return!!re.CSS_UNIT.exec(v)}function ie(v){v=v.replace(Re,"").replace($,"").toLowerCase();var W=!1;if(N[v])v=N[v],W=!0;else if(v=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var P;return(P=re.rgb.exec(v))?{r:P[1],g:P[2],b:P[3]}:(P=re.rgba.exec(v))?{r:P[1],g:P[2],b:P[3],a:P[4]}:(P=re.hsl.exec(v))?{h:P[1],s:P[2],l:P[3]}:(P=re.hsla.exec(v))?{h:P[1],s:P[2],l:P[3],a:P[4]}:(P=re.hsv.exec(v))?{h:P[1],s:P[2],v:P[3]}:(P=re.hsva.exec(v))?{h:P[1],s:P[2],v:P[3],a:P[4]}:(P=re.hex8.exec(v))?{r:B(P[1]),g:B(P[2]),b:B(P[3]),a:X(P[4]),format:W?"name":"hex8"}:(P=re.hex6.exec(v))?{r:B(P[1]),g:B(P[2]),b:B(P[3]),format:W?"name":"hex"}:(P=re.hex4.exec(v))?{r:B(P[1]+""+P[1]),g:B(P[2]+""+P[2]),b:B(P[3]+""+P[3]),a:X(P[4]+""+P[4]),format:W?"name":"hex8"}:(P=re.hex3.exec(v))?{r:B(P[1]+""+P[1]),g:B(P[2]+""+P[2]),b:B(P[3]+""+P[3]),format:W?"name":"hex"}:!1}function Ce(v){var W,P;return v=v||{level:"AA",size:"small"},W=(v.level||"AA").toUpperCase(),P=(v.size||"small").toLowerCase(),W!=="AA"&&W!=="AAA"&&(W="AA"),P!=="small"&&P!=="large"&&(P="small"),{level:W,size:P}}Te.exports?Te.exports=L:!(le=function(){return L}.call(k,o,k,Te),le!==void 0&&(Te.exports=le))})(Math)},bL63:function(Te,k,o){Te.exports={bg:"bg___1pgJK",wrap:"wrap___3w7gA",modal:"modal___Z863a",content:"content_____WML",head:"head___74qy3",headCount:"headCount___DydFZ",button:"button___FkPST",itemWrap:"itemWrap___2VFfI",imgWrap:"imgWrap___3YSCX",img:"img___31A6T",manager:"manager___7OBds",itemContent:"itemContent___NJ5LZ",nameWrap:"nameWrap___1nFjv",name:"name___1KHZI",actionGroup:"actionGroup___2FPTE",deleteIcon:"deleteIcon___OtxKH",schoolWrap:"schoolWrap___3vfoh",school:"school___2QmIS",countWrap:"countWrap___22ogC",deletetitle:"deletetitle___3lzPN",yseTitle:"yseTitle___3xmOc"}},bT9E:function(Te,k,o){"use strict";o.d(k,"a",function(){return J});var le=o("VTBJ");function J(Re,$){var x=Object(le.a)({},Re);return Array.isArray($)&&$.forEach(function(D){delete x[D]}),x}},bUJZ:function(Te,k){Te.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAABq1JREFUWAmVWGuIVVUU/vaZ2zjjOC9TwzFtwAjKHlJBNj4IYgJp/hghIWEE/ahAlCypqB8JoSiRJljQw6KoEGz6oQmNvxqdoB9hailZoZbj2xlndHzMvWf3rX3OOnefc888XLDv2nvttdda+1tr73PONbhJsnZdM64NPsll7YCZBYQtQMAmFPayz2ZPcNCFmvpdxrzR56bG+WPGqQc79PoShOEKGLMQ1hbcOstfsSA8j4wpcrIbQbDFTFzfmaeSlY0ZkB14bT5suIFBtGUXMzj6YzTChbQvXMifN+ghemtMw8Z90WT+74gBWbu9Cv0979HJyvyllI6JkKcjRkQ/MJvR1LbamKUlEWUpNyDbt6oJpeJ2GmCdeDQaAp7ayN14B4b1VVVYapo39Wd1KwJywVy/Tnjt3VnlcsHosixEIleZrNa+cCF/3hzGhOq2bFBq2am7NJ3q2l1GZgSDQTMw9U2gqsmty/0pXQTOrmVMQ950xp4xXZjevthPX3RadMl/u1kzmTTpnM/Dy9xsDZ2FwBXWqG7L+aPJukepHQBF6oE6I5Ex7RCfwCpVUVOwx5/jabJ7dSKX+xucvBxoeBw4vRG4djBSl1M1kcFMfRHo5ym/9H3aTLYGNYVB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A0kwc2R3tO4j4m1JWkTqIRopebLZy4G57/De2Q90PxshVt0ILPqGyPD74MBaPlIYmNoY3V6PefoY8+tefIUJhWtShSxoZIval4mz395l4fICbCNS1VOABV/GwRCZIx9HaOhhSJDxEYr7hr5jShCSsf16xiaYcGVyb+juEq2sgFU/5xXgvlfp/BrTV8M0vc+2Ue2nOdVTiLnZYLNZdnKVKkY1pKNC22reD10OKb+Ik5x7hSvFK7s/wNfhQ5uiYP7YCuxfV64Rh06MtI+22JbGYw7x6VGyd5XZztYmDPKl2OZ9KKpWDq+9Lb61/bkcRBUiww/F+vo2s+RYf3aFP3Z9u62pieHzU9q2pzAe7VHiVo4SgD8vH4gwS83z/algRCWdMreIqqJY98Ripm9z6phWpCC+9v1jL3096tr350GbtJ0XjLivSFkcU8LsJ7Xz+e6V/3dMRZFmBD6ixvRw+2vMC1f5oBuZxgxIl9oPq5ewCOVzaSFl0WPGd+gUMwEh/sPK8A+rl250qq3R+LgDUiN2a2Mzwsv8GJP6sjMp5xuna6LSGzXzL8HvQjBpp3n5Up9MjJf+B5WVB7lfjXHfAAAAAElFTkSuQmCC"},biw7:function(Te,k,o){"use strict";var le=o("q1tI"),J=o.n(le),Re=le.createContext(null);k.a=Re},c5Ni:function(Te,k,o){},cRFk:function(Te,k,o){Te.exports=o.p+"static/RepositoryNoneData.828085a8.png"},cU5J:function(Te,k,o){Te.exports={title:"title___3fOal",content:"content___3uANE",add:"add___1spp2",colorBlue:"colorBlue___hain-",radio:"radio___3M5zN"}},csWT:function(Te,k,o){Te.exports=o.p+"static/choose.4ad1045f.svg"},djh8:function(Te,k,o){Te.exports=o.p+"static/qrCode.42927872.png"},dmUQ:function(Te,k,o){"use strict";var le=o("Ff2n"),J=o("rePB"),Re=o("1OyB"),$=o("vuIU"),x=o("Ji7U"),D=o("md7G"),fe=o("foSv"),oe=o("q1tI"),z=o.n(oe),L=o("TSYQ"),C=o.n(L),_=o("4IlW");function O(d,s){var ue=Object.keys(d);if(Object.getOwnPropertySymbols){var Y=Object.getOwnPropertySymbols(d);s&&(Y=Y.filter(function(F){return Object.getOwnPropertyDescriptor(d,F).enumerable})),ue.push.apply(ue,Y)}return ue}function u(d){for(var s=1;s1?ye-1:0),xe=1;xe1?K-1:0),B=1;B=0)return parseInt(j.slice(j.indexOf("e-")+2),10);var K=0;return j.indexOf(".")>=0&&(K=j.length-j.indexOf(".")-1),K},F.getInputDisplayValue=function(w){var j=w||F.state,K=j.focused,ee=j.inputValue,B=j.value,te;K?te=ee:te=F.toPrecisionAsStep(B),te==null&&(te="");var ye=F.formatWrapper(te);return ne(F.props.decimalSeparator)&&(ye=ye.toString().replace(".",F.props.decimalSeparator)),ye},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(w){}},F.restoreByAfter=function(w){if(w===void 0)return!1;var j=F.input.value,K=j.lastIndexOf(w);if(K===-1)return!1;var ee=F.cursorBefore.length;return F.lastKeyCode===_.a.DELETE&&F.cursorBefore.charAt(ee-1)===w[0]?(F.fixCaret(ee,ee),!0):K+w.length===j.length?(F.fixCaret(K,K),!0):!1},F.partRestoreByAfter=function(w){return w===void 0?!1:Array.prototype.some.call(w,function(j,K){var ee=w.substring(K);return F.restoreByAfter(ee)})},F.isNotCompleteNumber=function(w){return isNaN(w)||w===""||w===null||w&&w.toString().indexOf(".")===w.toString().length-1},F.stop=function(){F.autoStepTimer&&clearTimeout(F.autoStepTimer)},F.down=function(w,j,K){F.pressingUpOrDown=!0,F.step("down",w,j,K)},F.up=function(w,j,K){F.pressingUpOrDown=!0,F.step("up",w,j,K)},F.saveInput=function(w){F.input=w};var N=Y.value;N===void 0&&(N=Y.defaultValue),F.state={focused:Y.autoFocus};var H=F.getValidValue(F.toNumber(N));return F.state=u(u({},F.state),{},{inputValue:F.toPrecisionAsStep(H),value:H}),F}return Object($.a)(ue,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(F){var N=this.props,H=N.value,w=N.onChange,j=N.max,K=N.min,ee=this.state.focused;if(F){if(!de(F.value,H)||!de(F.max,j)||!de(F.min,K)){var B=ee?H:this.getValidValue(H),te;this.pressingUpOrDown?te=B:this.inputting?te=this.rawInput:te=this.toPrecisionAsStep(B),this.setState({value:B,inputValue:te})}var ye="value"in this.props?H:this.state.value;"max"in this.props&&F.max!==j&&typeof ye=="number"&&ye>j&&w&&w(j),"min"in this.props&&F.min!==K&&typeof ye=="number"&&ye1&&arguments[1]!==void 0?arguments[1]:this.props.min,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,w=parseFloat(F);return isNaN(w)?F:(wH&&(w=H),w)}},{key:"setValue",value:function(F,N){var H=this.props.precision,w=this.isNotCompleteNumber(parseFloat(F))?null:parseFloat(F),j=this.state.value,K=j===void 0?null:j,ee=this.state.inputValue,B=ee===void 0?null:ee,te=typeof w=="number"?w.toFixed(H):"".concat(w),ye=w!==K||te!=="".concat(B);return"value"in this.props?(B=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:B},N)):this.setState({value:w,inputValue:this.toPrecisionAsStep(F)},N),ye&&this.props.onChange(w),w}},{key:"getMaxPrecision",value:function(F){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,H=this.props,w=H.precision,j=H.step;if(ne(w))return w;var K=this.getPrecision(N),ee=this.getPrecision(j),B=this.getPrecision(F);return F?Math.max(B,K+ee):K+ee}},{key:"getPrecisionFactor",value:function(F){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,H=this.getMaxPrecision(F,N);return Math.pow(10,H)}},{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 N=Math.abs(this.getMaxPrecision(F));return isNaN(N)?F.toString():Number(F).toFixed(N)}},{key:"toNumber",value:function(F){var N=this.props.precision,H=this.state.focused,w=F&&F.length>16&&H;return this.isNotCompleteNumber(F)||w?F:ne(N)?Math.round(F*Math.pow(10,N))/Math.pow(10,N):Number(F)}},{key:"upStep",value:function(F,N){var H=this.props.step,w=this.getPrecisionFactor(F,N),j=Math.abs(this.getMaxPrecision(F,N)),K=((w*F+w*H*N)/w).toFixed(j);return this.toNumber(K)}},{key:"downStep",value:function(F,N){var H=this.props.step,w=this.getPrecisionFactor(F,N),j=Math.abs(this.getMaxPrecision(F,N)),K=((w*F-w*H*N)/w).toFixed(j);return this.toNumber(K)}},{key:"step",value:function(F,N){var H=this,w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,j=arguments.length>3?arguments[3]:void 0;this.stop(),N&&(N.persist(),N.preventDefault());var K=this.props;if(K.disabled)return;var ee=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(ee))return;var B=this["".concat(F,"Step")](ee,w),te=B>K.max||BK.max?B=K.max:B=Pe),Ue=(Ut||Ut===0)&&(isNaN(Ut)||Number(Ut)<=xe),ke=rt||w||j,Ke=Ue||w||j,He=C()("".concat(H,"-handler"),"".concat(H,"-handler-up"),Object(J.a)({},"".concat(H,"-handler-up-disabled"),ke)),Ze=C()("".concat(H,"-handler"),"".concat(H,"-handler-down"),Object(J.a)({},"".concat(H,"-handler-down-disabled"),Ke)),Be=K?{onTouchStart:ke?E:this.up,onTouchEnd:this.stop}:{onMouseDown:ke?E:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},Xe=K?{onTouchStart:Ke?E:this.down,onTouchEnd:this.stop}:{onMouseDown:Ke?E:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return z.a.createElement("div",{className:je,style:Se,title:X,onMouseEnter:re,onMouseLeave:Ee,onMouseOver:ie,onMouseOut:Ce,onFocus:function(){return null},onBlur:function(){return null}},z.a.createElement("div",{className:"".concat(H,"-handler-wrap")},z.a.createElement("span",Object.assign({unselectable:"on"},Be,{role:"button","aria-label":"Increase Value","aria-disabled":ke,className:He}),B||z.a.createElement("span",{unselectable:"on",className:"".concat(H,"-handler-up-inner"),onClick:p})),z.a.createElement("span",Object.assign({unselectable:"on"},Xe,{role:"button","aria-label":"Decrease Value","aria-disabled":Ke,className:Ze}),te||z.a.createElement("span",{unselectable:"on",className:"".concat(H,"-handler-down-inner"),onClick:p}))),z.a.createElement("div",{className:"".concat(H,"-input-wrap")},z.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":xe,"aria-valuemax":Pe,"aria-valuenow":Ut,required:v,type:ce,placeholder:R,onPaste:$e,onClick:W,onMouseUp:this.onMouseUp,className:"".concat(H,"-input"),tabIndex:P,autoComplete:ee,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:ze?this.onKeyDown:E,onKeyUp:ze?this.onKeyUp:E,autoFocus:qe,maxLength:Ge,readOnly:j,disabled:w,max:Pe,min:xe,step:Ie,name:Je,title:X,id:Q,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(st),pattern:De,inputMode:be,onInput:it},Le))))}}]),ue}(z.a.Component);_e.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:Z,min:-Z,step:1,style:{},onChange:E,onKeyDown:E,onPressEnter:E,onFocus:E,onBlur:E,parser:y,required:!1,autoComplete:"off"};var ae=_e,T=k.a=ae},fAei:function(Te,k,o){"use strict";o.d(k,"a",function(){return S.a});var le=o("rePB"),J=o("VTBJ"),Re=o("KQm4"),$=o("1OyB"),x=o("vuIU"),D=o("Ji7U"),fe=o("LK+K"),oe=o("q1tI"),z=o("4IlW"),L=o("Kwbf"),C=o("TSYQ"),_=o.n(C),O=o("sboe"),u=o("OZM5"),g=o("815F"),m=o("ODXe"),E=o("Ff2n"),p=o("+nKL"),y=o("8XRh"),S=o("WaYH"),U=function(xe,Se){var X=xe.className,re=xe.style,Ee=xe.motion,ie=xe.motionNodes,Ce=xe.motionType,v=xe.onMotionStart,W=xe.onMotionEnd,P=xe.active,ce=xe.treeNodeRequiredProps,R=Object(E.a)(xe,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),Q=oe.useState(!0),be=Object(m.a)(Q,2),De=be[0],Ie=be[1],Ge=oe.useContext(O.a),qe=Ge.prefixCls,Je=oe.useRef(!1),$e=function(){Je.current||W(),Je.current=!0};return Object(oe.useEffect)(function(){ie&&Ce==="hide"&&De&&Ie(!1)},[ie]),Object(oe.useEffect)(function(){return ie&&v(),function(){ie&&$e()}},[]),ie?oe.createElement(y.default,Object.assign({ref:Se,visible:De},Ee,{motionAppear:Ce==="show",onAppearEnd:$e,onLeaveEnd:$e}),function(it,xt){var vt=it.className,Ut=it.style;return oe.createElement("div",{ref:xt,className:_()("".concat(qe,"-treenode-motion"),vt),style:Ut},ie.map(function(Ht){var je=Ht.data,Le=je.key,ze=Object(E.a)(je,["key"]),st=Ht.isStart,rt=Ht.isEnd;delete ze.children;var Ue=Object(g.f)(Le,ce);return oe.createElement(S.a,Object.assign({},ze,Ue,{active:P,data:Ht.data,key:Le,isStart:st,isEnd:rt}))}))}):oe.createElement(S.a,Object.assign({domRef:Se,className:X,style:re},R,{active:P}))};U.displayName="MotionTreeNode";var Z=oe.forwardRef(U),ne=Z;function de(){var Pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Se=Pe.length,X=xe.length;if(Math.abs(Se-X)!==1)return{add:!1,key:null};function re(Ee,ie){var Ce=new Map;Ee.forEach(function(W){Ce.set(W,!0)});var v=ie.filter(function(W){return!Ce.has(W)});return v.length===1?v[0]:null}return Se ").concat(xe);return xe}var w=function(xe,Se){var X=xe.prefixCls,re=xe.data,Ee=xe.selectable,ie=xe.checkable,Ce=xe.expandedKeys,v=xe.selectedKeys,W=xe.checkedKeys,P=xe.loadedKeys,ce=xe.loadingKeys,R=xe.halfCheckedKeys,Q=xe.keyEntities,be=xe.disabled,De=xe.dragging,Ie=xe.dragOverNodeKey,Ge=xe.dropPosition,qe=xe.motion,Je=xe.height,$e=xe.itemHeight,it=xe.virtual,xt=xe.focusable,vt=xe.activeItem,Ut=xe.focused,Ht=xe.tabIndex,je=xe.onKeyDown,Le=xe.onFocus,ze=xe.onBlur,st=xe.onActiveChange,rt=xe.onListChangeStart,Ue=xe.onListChangeEnd,ke=Object(E.a)(xe,["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"]),Ke=oe.useRef(null);oe.useImperativeHandle(Se,function(){return{scrollTo:function(Mt){Ke.current.scrollTo(Mt)}}});var He=oe.useState(Ce),Ze=Object(m.a)(He,2),Be=Ze[0],Xe=Ze[1],ut=oe.useState(re),lt=Object(m.a)(ut,2),Ct=lt[0],bt=lt[1],At=oe.useState(re),kt=Object(m.a)(At,2),St=kt[0],Wt=kt[1],fn=oe.useState([]),vn=Object(m.a)(fn,2),An=vn[0],zn=vn[1],sn=oe.useState(null),gn=Object(m.a)(sn,2),Kt=gn[0],hn=gn[1];function pn(){bt(re),Wt(re),zn([]),hn(null),Ue()}oe.useEffect(function(){Xe(Ce);var ot=de(Be,Ce);if(ot.key!==null)if(ot.add){var Mt=Ct.findIndex(function(bn){var Gn=bn.data.key;return Gn===ot.key}),Ft=F(_e(Ct,re,ot.key),it,Je,$e),xn=Ct.slice();xn.splice(Mt+1,0,Y),Wt(xn),zn(Ft),hn("show")}else{var wn=re.findIndex(function(bn){var Gn=bn.data.key;return Gn===ot.key}),zt=F(_e(re,Ct,ot.key),it,Je,$e),tt=re.slice();tt.splice(wn+1,0,Y),Wt(tt),zn(zt),hn("hide")}else Ct!==re&&(bt(re),Wt(re))},[Ce,re]),oe.useEffect(function(){De||pn()},[De]);var Rt=qe?St:re,pt={expandedKeys:Ce,selectedKeys:v,loadedKeys:P,loadingKeys:ce,checkedKeys:W,halfCheckedKeys:R,dragOverNodeKey:Ie,dropPosition:Ge,keyEntities:Q};return oe.createElement(oe.Fragment,null,Ut&&vt&&oe.createElement("span",{style:ae,"aria-live":"assertive"},H(vt)),oe.createElement("div",{role:"tree"},oe.createElement("input",{style:ae,disabled:xt===!1||be,tabIndex:xt!==!1?Ht:null,onKeyDown:je,onFocus:Le,onBlur:ze,value:"",onChange:T})),oe.createElement(p.a,Object.assign({},ke,{data:Rt,itemKey:N,height:Je,fullHeight:!1,virtual:it,itemHeight:$e,prefixCls:"".concat(X,"-list"),ref:Ke}),function(ot){var Mt=ot.pos,Ft=ot.data,xn=Ft.key,wn=Object(E.a)(Ft,["key"]),zt=ot.isStart,tt=ot.isEnd,bn=Object(g.e)(xn,Mt);delete wn.children;var Gn=Object(g.f)(bn,pt);return oe.createElement(ne,Object.assign({},wn,Gn,{active:vt&&xn===vt.data.key,pos:Mt,data:ot.data,isStart:zt,isEnd:tt,motion:qe,motionNodes:xn===d?An:null,motionType:Kt,onMotionStart:rt,onMotionEnd:pn,treeNodeRequiredProps:pt,onMouseMove:function(){st(null)}}))}))},j=oe.forwardRef(w);j.displayName="NodeList";var K=j,ee=o("NvD2"),B=function(Pe){Object(D.a)(Se,Pe);var xe=Object(fe.a)(Se);function Se(){var X;return Object($.a)(this,Se),X=xe.apply(this,arguments),X.destroyed=!1,X.state={keyEntities:{},selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],dragging:!1,dragNodesKeys:[],dragOverNodeKey:null,dropPosition:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null},X.listRef=oe.createRef(),X.onNodeDragStart=function(re,Ee){var ie=X.state,Ce=ie.expandedKeys,v=ie.keyEntities,W=X.props.onDragStart,P=Ee.props.eventKey;X.dragNode=Ee;var ce=Object(u.b)(Ce,P);X.setState({dragging:!0,dragNodesKeys:Object(u.g)(P,v)}),X.setExpandedKeys(ce),W&&W({event:re,node:Object(g.b)(Ee.props)})},X.onNodeDragEnter=function(re,Ee){var ie=X.state,Ce=ie.expandedKeys,v=ie.keyEntities,W=ie.dragNodesKeys,P=X.props.onDragEnter,ce=Ee.props,R=ce.pos,Q=ce.eventKey;if(!X.dragNode||W.indexOf(Q)!==-1)return;var be=Object(u.c)(re,Ee);if(X.dragNode.props.eventKey===Q&&be===0){X.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){X.setState({dragOverNodeKey:Q,dropPosition:be}),X.delayedDragEnterLogic||(X.delayedDragEnterLogic={}),Object.keys(X.delayedDragEnterLogic).forEach(function(De){clearTimeout(X.delayedDragEnterLogic[De])}),X.delayedDragEnterLogic[R]=window.setTimeout(function(){if(!X.state.dragging)return;var De=Object(Re.a)(Ce),Ie=v[Q];Ie&&(Ie.children||[]).length&&(De=Object(u.a)(Ce,Q)),"expandedKeys"in X.props||X.setExpandedKeys(De),P&&P({event:re,node:Object(g.b)(Ee.props),expandedKeys:De})},400)},0)},X.onNodeDragOver=function(re,Ee){var ie=X.state.dragNodesKeys,Ce=X.props.onDragOver,v=Ee.props.eventKey;if(ie.indexOf(v)!==-1)return;if(X.dragNode&&v===X.state.dragOverNodeKey){var W=Object(u.c)(re,Ee);if(W===X.state.dropPosition)return;X.setState({dropPosition:W})}Ce&&Ce({event:re,node:Object(g.b)(Ee.props)})},X.onNodeDragLeave=function(re,Ee){var ie=X.props.onDragLeave;X.setState({dragOverNodeKey:""}),ie&&ie({event:re,node:Object(g.b)(Ee.props)})},X.onNodeDragEnd=function(re,Ee){var ie=X.props.onDragEnd;X.setState({dragOverNodeKey:""}),X.cleanDragState(),ie&&ie({event:re,node:Object(g.b)(Ee.props)}),X.dragNode=null},X.onNodeDrop=function(re,Ee){var ie=X.state,Ce=ie.dragNodesKeys,v=Ce===void 0?[]:Ce,W=ie.dropPosition,P=X.props.onDrop,ce=Ee.props,R=ce.eventKey,Q=ce.pos;if(X.setState({dragOverNodeKey:""}),X.cleanDragState(),v.indexOf(R)!==-1){Object(L.a)(!1,"Can not drop to dragNode(include it's children node)");return}var be=Object(u.k)(Q),De={event:re,node:Object(g.b)(Ee.props),dragNode:X.dragNode?Object(g.b)(X.dragNode.props):null,dragNodesKeys:v.slice(),dropPosition:W+Number(be[be.length-1]),dropToGap:!1};W!==0&&(De.dropToGap=!0),P&&P(De),X.dragNode=null},X.cleanDragState=function(){var re=X.state.dragging;re&&X.setState({dragging:!1})},X.onNodeClick=function(re,Ee){var ie=X.props.onClick;ie&&ie(re,Ee)},X.onNodeDoubleClick=function(re,Ee){var ie=X.props.onDoubleClick;ie&&ie(re,Ee)},X.onNodeSelect=function(re,Ee){var ie=X.state.selectedKeys,Ce=X.state.keyEntities,v=X.props,W=v.onSelect,P=v.multiple,ce=Ee.selected,R=Ee.key,Q=!ce;Q?P?ie=Object(u.a)(ie,R):ie=[R]:ie=Object(u.b)(ie,R);var be=ie.map(function(De){var Ie=Ce[De];return Ie?Ie.node:null}).filter(function(De){return De});X.setUncontrolledState({selectedKeys:ie}),W&&W(ie,{event:"select",selected:Q,node:Ee,selectedNodes:be,nativeEvent:re.nativeEvent})},X.onNodeCheck=function(re,Ee,ie){var Ce=X.state,v=Ce.keyEntities,W=Ce.checkedKeys,P=Ce.halfCheckedKeys,ce=X.props,R=ce.checkStrictly,Q=ce.onCheck,be=Ee.key,De,Ie={event:"check",node:Ee,checked:ie,nativeEvent:re.nativeEvent};if(R){var Ge=ie?Object(u.a)(W,be):Object(u.b)(W,be),qe=Object(u.b)(P,be);De={checked:Ge,halfChecked:qe},Ie.checkedNodes=Ge.map(function(Ut){return v[Ut]}).filter(function(Ut){return Ut}).map(function(Ut){return Ut.node}),X.setUncontrolledState({checkedKeys:Ge})}else{var Je=Object(ee.a)([].concat(Object(Re.a)(W),[be]),!0,v),$e=Je.checkedKeys,it=Je.halfCheckedKeys;if(!ie){var xt=new Set($e);xt.delete(be);var vt=Object(ee.a)(Array.from(xt),{checked:!1,halfCheckedKeys:it},v);$e=vt.checkedKeys,it=vt.halfCheckedKeys}De=$e,Ie.checkedNodes=[],Ie.checkedNodesPositions=[],Ie.halfCheckedKeys=it,$e.forEach(function(Ut){var Ht=v[Ut];if(!Ht)return;var je=Ht.node,Le=Ht.pos;Ie.checkedNodes.push(je),Ie.checkedNodesPositions.push({node:je,pos:Le})}),X.setUncontrolledState({checkedKeys:$e},!1,{halfCheckedKeys:it})}Q&&Q(De,Ie)},X.onNodeLoad=function(re){return new Promise(function(Ee){X.setState(function(ie){var Ce=ie.loadedKeys,v=Ce===void 0?[]:Ce,W=ie.loadingKeys,P=W===void 0?[]:W,ce=X.props,R=ce.loadData,Q=ce.onLoad,be=re.key;if(!R||v.indexOf(be)!==-1||P.indexOf(be)!==-1)return{};var De=R(re);return De.then(function(){var Ie=X.state,Ge=Ie.loadedKeys,qe=Ie.loadingKeys,Je=Object(u.a)(Ge,be),$e=Object(u.b)(qe,be);Q&&Q(Je,{event:"load",node:re}),X.setUncontrolledState({loadedKeys:Je}),X.setState({loadingKeys:$e}),Ee()}),{loadingKeys:Object(u.a)(P,be)}})})},X.onNodeMouseEnter=function(re,Ee){var ie=X.props.onMouseEnter;ie&&ie({event:re,node:Ee})},X.onNodeMouseLeave=function(re,Ee){var ie=X.props.onMouseLeave;ie&&ie({event:re,node:Ee})},X.onNodeContextMenu=function(re,Ee){var ie=X.props.onRightClick;ie&&(re.preventDefault(),ie({event:re,node:Ee}))},X.onFocus=function(){var re=X.props.onFocus;X.setState({focused:!0}),re&&re.apply(void 0,arguments)},X.onBlur=function(){var re=X.props.onBlur;X.setState({focused:!1}),X.onActiveChange(null),re&&re.apply(void 0,arguments)},X.getTreeNodeRequiredProps=function(){var re=X.state,Ee=re.expandedKeys,ie=re.selectedKeys,Ce=re.loadedKeys,v=re.loadingKeys,W=re.checkedKeys,P=re.halfCheckedKeys,ce=re.dragOverNodeKey,R=re.dropPosition,Q=re.keyEntities;return{expandedKeys:Ee||[],selectedKeys:ie||[],loadedKeys:Ce||[],loadingKeys:v||[],checkedKeys:W||[],halfCheckedKeys:P||[],dragOverNodeKey:ce,dropPosition:R,keyEntities:Q}},X.setExpandedKeys=function(re){var Ee=X.state.treeData,ie=Object(g.d)(Ee,re);X.setUncontrolledState({expandedKeys:re,flattenNodes:ie},!0)},X.onNodeExpand=function(re,Ee){var ie=X.state.expandedKeys,Ce=X.state.listChanging,v=X.props,W=v.onExpand,P=v.loadData,ce=Ee.key,R=Ee.expanded;if(Ce)return;var Q=ie.indexOf(ce),be=!R;if(Object(L.a)(R&&Q!==-1||!R&&Q===-1,"Expand state not sync with index check"),be?ie=Object(u.a)(ie,ce):ie=Object(u.b)(ie,ce),X.setExpandedKeys(ie),W&&W(ie,{node:Ee,expanded:be,nativeEvent:re.nativeEvent}),be&&P){var De=X.onNodeLoad(Ee);De&&De.then(function(){var Ie=Object(g.d)(X.state.treeData,ie);X.setUncontrolledState({flattenNodes:Ie})})}},X.onListChangeStart=function(){X.setUncontrolledState({listChanging:!0})},X.onListChangeEnd=function(){setTimeout(function(){X.setUncontrolledState({listChanging:!1})})},X.onActiveChange=function(re){var Ee=X.state.activeKey,ie=X.props.onActiveChange;if(Ee===re)return;X.setState({activeKey:re}),re!==null&&X.scrollTo({key:re}),ie&&ie(re)},X.getActiveItem=function(){var re=X.state,Ee=re.activeKey,ie=re.flattenNodes;return Ee===null?null:ie.find(function(Ce){var v=Ce.data.key;return v===Ee})||null},X.offsetActiveKey=function(re){var Ee=X.state,ie=Ee.flattenNodes,Ce=Ee.activeKey,v=ie.findIndex(function(ce){var R=ce.data.key;return R===Ce});v===-1&&re<0&&(v=ie.length),v=(v+re+ie.length)%ie.length;var W=ie[v];if(W){var P=W.data.key;X.onActiveChange(P)}else X.onActiveChange(null)},X.onKeyDown=function(re){var Ee=X.state,ie=Ee.activeKey,Ce=Ee.expandedKeys,v=Ee.checkedKeys,W=X.props,P=W.onKeyDown,ce=W.checkable,R=W.selectable;switch(re.which){case z.a.UP:{X.offsetActiveKey(-1),re.preventDefault();break}case z.a.DOWN:{X.offsetActiveKey(1),re.preventDefault();break}}var Q=X.getActiveItem();if(Q&&Q.data){var be=X.getTreeNodeRequiredProps(),De=Q.data.isLeaf===!1||!!(Q.data.children||[]).length,Ie=Object(g.b)(Object(J.a)(Object(J.a)({},Object(g.f)(ie,be)),{},{data:Q.data,active:!0}));switch(re.which){case z.a.LEFT:{De&&Ce.includes(ie)?X.onNodeExpand({},Ie):Q.parent&&X.onActiveChange(Q.parent.data.key),re.preventDefault();break}case z.a.RIGHT:{De&&!Ce.includes(ie)?X.onNodeExpand({},Ie):Q.children&&Q.children.length&&X.onActiveChange(Q.children[0].data.key),re.preventDefault();break}case z.a.ENTER:case z.a.SPACE:{ce&&!Ie.disabled&&Ie.checkable!==!1&&!Ie.disableCheckbox?X.onNodeCheck({},Ie,!v.includes(ie)):!ce&&R&&!Ie.disabled&&Ie.selectable!==!1&&X.onNodeSelect({},Ie);break}}}P&&P(re)},X.setUncontrolledState=function(re){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(X.destroyed)return;var Ce=!1,v=!0,W={};Object.keys(re).forEach(function(P){if(P in X.props){v=!1;return}Ce=!0,W[P]=re[P]}),Ce&&(!Ee||v)&&X.setState(Object(J.a)(Object(J.a)({},W),ie))},X.scrollTo=function(re){X.listRef.current.scrollTo(re)},X}return Object(x.a)(Se,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var re,Ee=this.state,ie=Ee.focused,Ce=Ee.flattenNodes,v=Ee.keyEntities,W=Ee.dragging,P=Ee.activeKey,ce=this.props,R=ce.prefixCls,Q=ce.className,be=ce.style,De=ce.showLine,Ie=ce.focusable,Ge=ce.tabIndex,qe=Ge===void 0?0:Ge,Je=ce.selectable,$e=ce.showIcon,it=ce.icon,xt=ce.switcherIcon,vt=ce.draggable,Ut=ce.checkable,Ht=ce.checkStrictly,je=ce.disabled,Le=ce.motion,ze=ce.loadData,st=ce.filterTreeNode,rt=ce.height,Ue=ce.itemHeight,ke=ce.virtual,Ke=ce.titleRender,He=ce.onContextMenu,Ze=Object(u.f)(this.props);return oe.createElement(O.a.Provider,{value:{prefixCls:R,selectable:Je,showIcon:$e,icon:it,switcherIcon:xt,draggable:vt,checkable:Ut,checkStrictly:Ht,disabled:je,keyEntities:v,loadData:ze,filterTreeNode:st,titleRender:Ke,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},oe.createElement("div",{className:_()(R,Q,(re={},Object(le.a)(re,"".concat(R,"-show-line"),De),Object(le.a)(re,"".concat(R,"-focused"),ie),Object(le.a)(re,"".concat(R,"-active-focused"),P!==null),re))},oe.createElement(K,Object.assign({ref:this.listRef,prefixCls:R,style:be,data:Ce,disabled:je,selectable:Je,checkable:!!Ut,motion:Le,dragging:W,height:rt,itemHeight:Ue,virtual:ke,focusable:Ie,focused:ie,tabIndex:qe,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:He},this.getTreeNodeRequiredProps(),Ze))))}}],[{key:"getDerivedStateFromProps",value:function(re,Ee){var ie=Ee.prevProps,Ce={prevProps:re};function v(it){return!ie&&it in re||ie&&ie[it]!==re[it]}var W;if(v("treeData")?W=re.treeData:v("children")&&(Object(L.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),W=Object(g.c)(re.children)),W){Ce.treeData=W;var P=Object(g.a)(W);Ce.keyEntities=Object(J.a)(Object(le.a)({},d,ue),P.keyEntities)}var ce=Ce.keyEntities||Ee.keyEntities;if(v("expandedKeys")||ie&&v("autoExpandParent"))Ce.expandedKeys=re.autoExpandParent||!ie&&re.defaultExpandParent?Object(u.e)(re.expandedKeys,ce):re.expandedKeys;else if(!ie&&re.defaultExpandAll){var R=Object(J.a)({},ce);delete R[d],Ce.expandedKeys=Object.keys(R).map(function(it){return R[it].key})}else!ie&&re.defaultExpandedKeys&&(Ce.expandedKeys=re.autoExpandParent||re.defaultExpandParent?Object(u.e)(re.defaultExpandedKeys,ce):re.defaultExpandedKeys);if(Ce.expandedKeys||delete Ce.expandedKeys,W||Ce.expandedKeys){var Q=Object(g.d)(W||Ee.treeData,Ce.expandedKeys||Ee.expandedKeys);Ce.flattenNodes=Q}if(re.selectable&&(v("selectedKeys")?Ce.selectedKeys=Object(u.d)(re.selectedKeys,re):!ie&&re.defaultSelectedKeys&&(Ce.selectedKeys=Object(u.d)(re.defaultSelectedKeys,re))),re.checkable){var be;if(v("checkedKeys")?be=Object(u.j)(re.checkedKeys)||{}:!ie&&re.defaultCheckedKeys?be=Object(u.j)(re.defaultCheckedKeys)||{}:W&&(be=Object(u.j)(re.checkedKeys)||{checkedKeys:Ee.checkedKeys,halfCheckedKeys:Ee.halfCheckedKeys}),be){var De=be,Ie=De.checkedKeys,Ge=Ie===void 0?[]:Ie,qe=De.halfCheckedKeys,Je=qe===void 0?[]:qe;if(!re.checkStrictly){var $e=Object(ee.a)(Ge,!0,ce);Ge=$e.checkedKeys,Je=$e.halfCheckedKeys}Ce.checkedKeys=Ge,Ce.halfCheckedKeys=Je}}return v("loadedKeys")&&(Ce.loadedKeys=re.loadedKeys),Ce}}]),Se}(oe.Component);B.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[]},B.TreeNode=S.a;var te=B,ye=k.b=te},fjLI:function(Te,k,o){"use strict";o.d(k,"e",function(){return L}),o.d(k,"a",function(){return C}),o.d(k,"c",function(){return _}),o.d(k,"d",function(){return u}),o.d(k,"b",function(){return g});var le=o("8HAY"),J=o("Cg/j"),Re=o("T8No"),$=o("nnTU"),x=o("MI8n"),D=function(){var m=function(E,p){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,S){y.__proto__=S}||function(y,S){for(var U in S)S.hasOwnProperty(U)&&(y[U]=S[U])},m(E,p)};return function(E,p){m(E,p);function y(){this.constructor=E}E.prototype=p===null?Object.create(p):(y.prototype=p.prototype,new y)}}(),fe=function(m,E,p,y){var S=arguments.length,U=S<3?E:y===null?y=Object.getOwnPropertyDescriptor(E,p):y,Z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")U=Reflect.decorate(m,E,p,y);else for(var ne=m.length-1;ne>=0;ne--)(Z=m[ne])&&(U=(S<3?Z(U):S>3?Z(E,p,U):Z(E,p))||U);return S>3&&U&&Object.defineProperty(E,p,U),U},oe=function(m,E){return function(p,y){E(p,y,m)}},z=function(){for(var m=0,E=0,p=arguments.length;E=0&&(S.splice(U,1),y._onDidChangeMenu.fire(E))}}},m.prototype.getMenuItems=function(E){var p=(this._menuItems.get(E)||[]).slice(0);return E===0&&this._appendImplicitItems(p),p},m.prototype._appendImplicitItems=function(E){for(var p=new Set,y=E.filter(function(_e){return L(_e)}),S=0,U=y;SH.length)&&(w=H.length);for(var j=0,K=new Array(w);j=0)continue;if(!Object.prototype.propertyIsEnumerable.call(H,K))continue;j[K]=H[K]}}return j}function g(H,w){if(H==null)return{};var j={},K=Object.keys(H),ee,B;for(B=0;B=0)continue;j[ee]=H[ee]}return j}var m=function(w){var j=w.className,K=w.percent,ee=w.prefixCls,B=w.strokeColor,te=w.strokeLinecap,ye=w.strokeWidth,Pe=w.style,xe=w.trailColor,Se=w.trailWidth,X=w.transition,re=u(w,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete re.gapPosition;var Ee=Array.isArray(K)?K:[K],ie=Array.isArray(B)?B:[B],Ce=D(Ee),v=oe(Ce,1),W=v[0],P=ye/2,ce=100-ye/2,R="M ".concat(te==="round"?P:0,",").concat(P,` + L `).concat(te==="round"?ce:100,",").concat(P),Q="0 0 100 ".concat(ye),be=0;return J.a.createElement("svg",fe({className:$()("".concat(ee,"-line"),j),viewBox:Q,preserveAspectRatio:"none",style:Pe},re),J.a.createElement("path",{className:"".concat(ee,"-line-trail"),d:R,strokeLinecap:te,stroke:xe,strokeWidth:Se||ye,fillOpacity:"0"}),Ee.map(function(De,Ie){var Ge={strokeDasharray:"".concat(De,"px, 100px"),strokeDashoffset:"-".concat(be,"px"),transition:X||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},qe=ie[Ie]||ie[ie.length-1];return be+=De,J.a.createElement("path",{key:Ie,className:"".concat(ee,"-line-path"),d:R,strokeLinecap:te,stroke:qe,strokeWidth:ye,fillOpacity:"0",ref:W[Ie],style:Ge})}))};m.defaultProps=x;var E=m;function p(){return p=Object.assign||function(H){for(var w=1;wH.length)&&(w=H.length);for(var j=0,K=new Array(w);j=0)continue;if(!Object.prototype.propertyIsEnumerable.call(H,K))continue;j[K]=H[K]}}return j}function ae(H,w){if(H==null)return{};var j={},K=Object.keys(H),ee,B;for(B=0;B=0)continue;j[ee]=H[ee]}return j}var T=0;function d(H){return+H.replace("%","")}function s(H){return Array.isArray(H)?H:[H]}function ue(H,w,j,K){var ee=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,B=arguments.length>5?arguments[5]:void 0,te=50-K/2,ye=0,Pe=-te,xe=0,Se=-2*te;switch(B){case"left":ye=-te,Pe=0,xe=2*te,Se=0;break;case"right":ye=te,Pe=0,xe=-2*te,Se=0;break;case"bottom":Pe=te,Se=2*te;break;default:}var X="M 50,50 m ".concat(ye,",").concat(Pe,` a `).concat(te,",").concat(te," 0 1 1 ").concat(xe,",").concat(-Se,` - a `).concat(te,",").concat(te," 0 1 1 ").concat(-xe,",").concat(Se),re=Math.PI*2*te,be={stroke:j,strokeDasharray:"".concat(w/100*(re-ee),"px ").concat(re,"px"),strokeDashoffset:"-".concat(ee/2+H/100*(re-ee),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:X,pathStyle:be}}var Y=function(w){var j=w.prefixCls,K=w.strokeWidth,ee=w.trailWidth,B=w.gapDegree,te=w.gapPosition,ye=w.trailColor,Pe=w.strokeLinecap,xe=w.style,Se=w.className,X=w.strokeColor,re=w.percent,be=_e(w,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),ie=Object(le.useMemo)(function(){return T+=1,T},[]),Ce=ue(0,100,ye,K,B,te),v=Ce.pathString,W=Ce.pathStyle,P=s(re),ce=s(X),R=ce.find(function(Ge){return Object.prototype.toString.call(Ge)==="[object Object]"}),Q=D(P),Ee=y(Q,1),De=Ee[0],Ie=function(){var qe=0;return P.map(function(Je,$e){var it=ce[$e]||ce[ce.length-1],xt=Object.prototype.toString.call(it)==="[object Object]"?"url(#".concat(j,"-gradient-").concat(ie,")"):"",vt=ue(qe,Je,it,K,B,te);return qe+=Je,J.a.createElement("path",{key:$e,className:"".concat(j,"-circle-path"),d:vt.pathString,stroke:xt,strokeLinecap:Pe,strokeWidth:K,opacity:Je===0?0:1,fillOpacity:"0",style:vt.pathStyle,ref:De[$e]})})};return J.a.createElement("svg",p({className:$()("".concat(j,"-circle"),Se),viewBox:"0 0 100 100",style:xe},be),R&&J.a.createElement("defs",null,J.a.createElement("linearGradient",{id:"".concat(j,"-gradient-").concat(ie),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(R).sort(function(Ge,qe){return d(Ge)-d(qe)}).map(function(Ge,qe){return J.a.createElement("stop",{key:qe,offset:Ge,stopColor:R[Ge]})}))),J.a.createElement("path",{className:"".concat(j,"-circle-trail"),d:v,stroke:ye,strokeLinecap:Pe,strokeWidth:ee||K,fillOpacity:"0",style:W}),Ie().reverse())};Y.defaultProps=x;var F=Y,N={Line:b,Circle:F}},hW8S:function(Te,k,o){"use strict";o.d(k,"a",function(){return $}),o.d(k,"c",function(){return x}),o.d(k,"b",function(){return D});var le=o("VTBJ"),J=o("Ff2n"),Re=o("Kwbf"),$="RC_TABLE_INTERNAL_COL_DEFINE";function x(fe){var oe=fe.expandable,z=Object(J.a)(fe,["expandable"]);return"expandable"in fe?Object(le.a)(Object(le.a)({},z),oe):z}function D(fe){return Object.keys(fe).reduce(function(oe,z){return(z.substr(0,5)==="data-"||z.substr(0,5)==="aria-")&&(oe[z]=fe[z]),oe},{})}},hkyu:function(Te,k,o){Te.exports={wrap:"wrap___hPGmS",content:"content___1XTHE",mainPathWrap:"mainPathWrap___11rfN",colorBlue:"colorBlue___2VVM9"}},izBO:function(Te,k,o){Te.exports={project_detail_wrapper:"project_detail_wrapper___rJ-Mx",nav:"nav___3BChd",title:"title___GTqUx",fork_btn:"fork_btn___nboaj",desc:"desc___1z6g-",info:"info___3PtJ2",create_time:"create_time___nwaZK",operation:"operation___1m5fw",delete_btn:"delete_btn___xeY9n",fork_modal:"fork_modal___Ei2wB",huanj:"huanj___PC6QJ",divtitle:"divtitle___1gI6J"}},jXuf:function(Te,k,o){Te.exports={flex_box_center:"flex_box_center___3Ouij",flex_space_between:"flex_space_between___3WHV3",flex_box_vertical_center:"flex_box_vertical_center___3K6xk",flex_box_center_end:"flex_box_center_end___3I9F3",flex_box_column:"flex_box_column___2SmSH",menu:"menu___2J6wm",warehouse:"warehouse___d9ftl",header:"header___hc_Il",title:"title___PreFj",content:"content___2IjnJ",left:"left___Fe2wU",right:"right___1Fnvj",loading:"loading___GJpKF",empty:"empty___16OZa",tabs:"tabs___2OSoH",line:"line___1Uk38",footer:"footer___2CyzV",commit:"commit___2v0hU",blueLight:"blueLight___2iJfz",filePathWrp:"filePathWrp___6LEw5",filePath:"filePath___4ZJkW",bottom0:"bottom0___4DQ3y"}},ji0R:function(Te,k,o){Te.exports=o.p+"static/douyu.3e6df9ee.jpg"},ju9d:function(Te,k,o){"use strict";var le=o("g9YV"),J=o("wCAj"),Re=o("miYZ"),$=o("tsqr"),x=o("5Dmo"),D=o("3S7+"),fe=o("sRBo"),oe=o("kaz8"),z=o("oBTY"),L=o("9og8"),C=o("tJVT"),_=o("k1fw"),O=o("+L6B"),u=o("2/Rp"),g=o("O3gP"),m=o("lrIw"),b=o("y8nQ"),p=o("Vl3Y"),y=o("5NDa"),S=o("5rEg"),U=o("WmNS"),Z=o.n(U),ne=o("q1tI"),de=o.n(ne),_e=o("55Ip"),ae=o("wd/R"),T=o.n(ae),d=o("RotF"),s=o.n(d),ue=o("E7E6"),Y=o.n(ue),F=o("oUNq"),N=[];function H(ee){var B=ee.onSearch,te=ee.schools;return de.a.createElement(p.a,{layout:"inline",onFinish:B,initialValues:{keyword:"",school_name:""},className:"search-form"},de.a.createElement(p.a.Item,{label:"\u59D3\u540D",name:"keyword",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u59D3\u540D"}]},de.a.createElement(S.a,{allowClear:!0,style:{width:370},size:"large"})),de.a.createElement(p.a.Item,{label:"\u5355\u4F4D",name:"school_name"},de.a.createElement(m.a,{options:te,style:{width:400},size:"large",showSearch:!0,filterOption:function(Pe,xe){return xe.value.toUpperCase().indexOf(Pe.toUpperCase())!==-1},placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0"})),de.a.createElement(p.a.Item,null,de.a.createElement(u.a,{type:"primary",htmlType:"submit"},"\u641C\u7D22")))}var w;(function(ee){ee[ee.INITDATA=0]="INITDATA",ee[ee.INITSCHOOLS=1]="INITSCHOOLS",ee[ee.SHOWLOADING=2]="SHOWLOADING",ee[ee.SELECTEDIDS=3]="SELECTEDIDS",ee[ee.SETQUERY=4]="SETQUERY",ee[ee.SETPAGE=5]="SETPAGE"})(w||(w={}));function j(ee,B){switch(B.type){case w.INITDATA:return Object(_.a)(Object(_.a)({},ee),B.payload);case w.SETQUERY:return Object(_.a)(Object(_.a)({},ee),B.payload);case w.SETPAGE:return Object(_.a)(Object(_.a)({},ee),{},{page:B.payload,reload:!1});case w.SHOWLOADING:return Object(_.a)(Object(_.a)({},ee),{},{loading:B.payload});case w.INITSCHOOLS:return Object(_.a)(Object(_.a)({},ee),{},{schools:B.payload});case w.SELECTEDIDS:return Object(_.a)(Object(_.a)({},ee),{},{selectedIds:B.payload});default:throw new Error}}var K={data:[],schools:[],loading:!1,selectedIds:[],query:null,page:1,count:0,reload:!1};k.a=function(ee){var B=ee.onSelect,te=ee.onCancel,ye=ee.container_id,Pe=ee.container_type,xe=Object(ne.useReducer)(j,K),Se=Object(C.a)(xe,2),X=Se[0],re=Se[1],be=X.data,ie=X.schools,Ce=X.loading,v=X.selectedIds,W=X.page,P=X.count,ce=X.query,R=X.reload;Object(ne.useEffect)(function(){function Je(){return $e.apply(this,arguments)}function $e(){return $e=Object(L.a)(Z.a.mark(function it(){var xt,vt,Ut;return Z.a.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return je.next=2,Object(F.wb)(Object(_.a)(Object(_.a)({},ce),{},{page:W,container_type:Pe,container_id:ye}));case 2:xt=je.sent,vt=xt.users,Ut=xt.user_count,re({type:w.INITDATA,payload:{data:R?vt:[].concat(Object(z.a)(be),Object(z.a)(vt)),count:Ut}});case 6:case"end":return je.stop()}},it)})),$e.apply(this,arguments)}ce&&Je()},[W,ce,R,ye,Pe]),Object(ne.useEffect)(function(){function Je(){return $e.apply(this,arguments)}function $e(){return $e=Object(L.a)(Z.a.mark(function it(){var xt,vt;return Z.a.wrap(function(Ht){for(;;)switch(Ht.prev=Ht.next){case 0:return Ht.next=2,Object(F.kb)({});case 2:xt=Ht.sent,vt=xt.school_names,re({type:w.INITSCHOOLS,payload:vt.map(function(je){return{value:je}})});case 5:case"end":return Ht.stop()}},it)})),$e.apply(this,arguments)}Je()},[]);var Q=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function($e,it){return de.a.createElement(oe.a,{value:it.numid,checked:v.includes(it.numid),disabled:!!$e})}},{title:"\u59D3\u540D",width:100,ellipsis:!0,dataIndex:"username",render:function($e,it){return de.a.createElement(D.a,{placement:"bottom",title:$e},de.a.createElement(_e.a,{className:"bold c-black",to:"/users/".concat(it.login),target:"_blank"},$e||"--"))}},{title:"\u624B\u673A",width:100,dataIndex:"phone",ellipsis:!0,render:function($e){return de.a.createElement(D.a,{placement:"bottom",title:$e},de.a.createElement("span",null,$e||"--"))}},{title:"\u90AE\u7BB1",dataIndex:"email",width:100,ellipsis:!0,render:function($e){return de.a.createElement(D.a,{placement:"bottom",title:$e},de.a.createElement("span",null,$e||"--"))}},{title:"\u5B66\u53F7/\u5DE5\u53F7",width:100,dataIndex:"student_number",ellipsis:!0,render:function($e){return de.a.createElement(D.a,{placement:"bottom",title:$e},de.a.createElement("span",null,$e||"--"))}},{title:"\u5B66\u6821/\u5355\u4F4D",width:150,dataIndex:"school_name",ellipsis:!0,render:function($e){return de.a.createElement(D.a,{placement:"bottom",title:$e},de.a.createElement("span",null,$e||"--"))}},{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"depart_name",width:130,ellipsis:!0,render:function($e){return de.a.createElement(D.a,{placement:"bottom",title:$e},de.a.createElement("span",null,$e||"--"))}},{title:"\u5B9E\u540D\u8BA4\u8BC1",dataIndex:"auth",width:100,render:function($e){return $e?"\u662F":"\u5426"}},{title:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_on",width:140,ellipsis:!0,render:function($e){return de.a.createElement(D.a,{placement:"bottom",title:$e},de.a.createElement("span",null,T()($e).format("YYYY-MM-DD HH:mm")))}},{title:"\u72B6\u6001",dataIndex:"added",width:80,render:function($e){if($e===1)return de.a.createElement("span",{className:"c-green"},"\u5DF2\u6DFB\u52A0")}}];function Ee(Je){re({type:w.SETQUERY,payload:{page:1,reload:!0,query:Je}})}function De(Je){re({type:w.SETPAGE,payload:Je})}function Ie(Je){var $e=v.indexOf(Je);$e>=0?v.splice($e,1):v.push(Je),re({type:w.SELECTEDIDS,payload:Object(z.a)(v)})}function Ge(){v.length===0?$.b.warn("\u8BF7\u5148\u5728\u4E0B\u9762\u5217\u8868\u4E2D\u9009\u62E9\u8981\u6DFB\u52A0\u6210\u5458"):(B(v,ye),re({type:w.INITDATA,payload:{data:[],count:0,page:1,selectedIds:[],query:null,reload:!1}}))}var qe=P>W*10;return de.a.createElement("div",{className:"select-user-container"},de.a.createElement(H,{onSearch:Ee,schools:ie}),ce?de.a.createElement(de.a.Fragment,null,de.a.createElement("div",{className:"flexd-table-header mt20"},de.a.createElement(J.a,{pagination:!1,dataSource:N,columns:Q})),de.a.createElement("div",{style:{maxHeight:260,overflow:"auto",marginBottom:20}},de.a.createElement(s.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:De,hasMore:qe,useWindow:!1},de.a.createElement(J.a,{loading:Ce,showHeader:!1,pagination:!1,dataSource:be,columns:Q,onRow:function($e){return{onClick:function(xt){$e.added!==1&&Ie($e.numid)}}}}))),de.a.createElement("div",{className:"flex-container flex-end"},de.a.createElement(u.a,{type:"ghost",style:{marginRight:10},onClick:te},"\u53D6\u6D88"),de.a.createElement(u.a,{type:"primary",onClick:Ge},"\u786E\u5B9A"))):de.a.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},de.a.createElement("img",{src:Y.a,width:"100",alt:""}),de.a.createElement("br",null),de.a.createElement("p",{className:"mt20"},"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458")))}},k3GJ:function(Te,k,o){"use strict";o.d(k,"a",function(){return wo});var le=o("rePB"),J=o("ODXe"),Re=o("Ff2n"),$=o("VTBJ"),x=o("q1tI"),D=o("TSYQ"),fe=o.n(D),oe=o("Zm9Q"),z=o("6cGi"),L=o("KQm4"),C=o("xEkU"),_=o.n(C),O=o("t23M");function u(V){var ge=Object(x.useRef)(),he=Object(x.useRef)(!1);function I(){for(var f=arguments.length,M=new Array(f),E=0;EAe&&(nt=Ae-Ve),Object(x.useMemo)(function(){if(!M.length)return[0,0];for(var gt=M.length,nn=gt,Gt=0;Gtme+nt){nn=Gt-1;break}}for(var On=0,Pn=gt-1;Pn>=0;Pn-=1){var Rn=V.get(M[Pn].key)||U;if(Rn[ve]1&&arguments[1]!==void 0?arguments[1]:!1,I=ge&&typeof ge.getBoundingClientRect=="function"&&ge.getBoundingClientRect().width;if(I){if(he){var f=getComputedStyle(ge),M=f.marginLeft,E=f.marginRight;I+=+M.replace("px","")+ +E.replace("px","")}I=+I.toFixed(6)}return I||0},qe=function(ge,he,I){ge&&Object(H.a)(ge.style)==="object"&&(ge.style[he]=I)},Je=function(){return P.any},$e=o("bdgK"),it=o("i8i4"),xt=o.n(it),vt=o("wgJM"),Ut=o("l4aY"),Ht=o("m+aA"),je=o("c+Xe"),Le=o("zT1h"),ze=o("QC+M");function st(V,ge,he){return he?V[0]===ge[0]:V[0]===ge[0]&&V[1]===ge[1]}function rt(V,ge,he){var I=V[ge]||{};return Object($.a)(Object($.a)({},I),he)}function Ue(V,ge,he,I){for(var f=he.points,M=Object.keys(V),E=0;E1&&arguments[1]!==void 0?arguments[1]:2;ge();var M=Object(vt.a)(function(){f<=1?I({isCanceled:function(){return M!==V.current}}):he(I,f-1)});V.current=M}return x.useEffect(function(){return function(){ge()}},[]),[he,ge]},xn=[Kt,hn,pn,Rt],wn=!1,zt=!0;function tt(V){return V===pn||V===Rt}var En=function(V,ge){var he=x.useState(gn),I=Object(J.a)(he,2),f=I[0],M=I[1],E=Ft(),G=Object(J.a)(E,2),q=G[0],ve=G[1];function me(){M(Kt)}return Mt(function(){if(f!==gn&&f!==Rt){var Ae=xn.indexOf(f),Fe=xn[Ae+1],Ve=ge(f);Ve===wn?M(Fe):q(function(nt){function gt(){if(nt.isCanceled())return;M(Fe)}Ve===!0?gt():Promise.resolve(Ve).then(gt)})}},[V,f]),x.useEffect(function(){return function(){ve()}},[]),[me,f]},Gn=function(V){var ge=Object(x.useRef)(),he=Object(x.useRef)(V);he.current=V;var I=x.useCallback(function(E){he.current(E)},[]);function f(E){E&&(E.removeEventListener(Wt,I),E.removeEventListener(St,I))}function M(E){ge.current&&ge.current!==E&&f(ge.current),E&&E!==ge.current&&(E.addEventListener(Wt,I),E.addEventListener(St,I),ge.current=E)}return x.useEffect(function(){return function(){f(ge.current)}},[]),[M,f]};function ta(V,ge,he,I){var f=I.motionEnter,M=f===void 0?!0:f,E=I.motionAppear,G=E===void 0?!0:E,q=I.motionLeave,ve=q===void 0?!0:q,me=I.motionDeadline,Ae=I.motionLeaveImmediately,Fe=I.onAppearPrepare,Ve=I.onEnterPrepare,nt=I.onLeavePrepare,gt=I.onAppearStart,nn=I.onEnterStart,Gt=I.onLeaveStart,Cn=I.onAppearActive,On=I.onEnterActive,Pn=I.onLeaveActive,Rn=I.onAppearEnd,Sn=I.onEnterEnd,Yn=I.onLeaveEnd,Fn=I.onVisibleChanged,xa=pt(),Bn=Object(J.a)(xa,2),Yt=Bn[0],Jt=Bn[1],Wn=pt(vn),Zn=Object(J.a)(Wn,2),It=Zn[0],ea=Zn[1],_a=pt(null),ra=Object(J.a)(_a,2),va=ra[0],pa=ra[1],ja=Object(x.useRef)(!1),Va=Object(x.useRef)(null),Ma=Object(x.useRef)(!1),sr=Object(x.useRef)(null);function Dr(){var ba=he();return ba||sr.current}var dr=Object(x.useRef)(!1);function Xa(ba){var fa=Dr();if(ba&&!ba.deadline&&ba.target!==fa)return;var Ya;It===An&&dr.current?Ya=Rn==null?void 0:Rn(fa,ba):It===zn&&dr.current?Ya=Sn==null?void 0:Sn(fa,ba):It===sn&&dr.current&&(Ya=Yn==null?void 0:Yn(fa,ba)),Ya!==!1&&!Ma.current&&(ea(vn),pa(null))}var Ca=Gn(Xa),ga=Object(J.a)(Ca,1),Ra=ga[0],Oa=x.useMemo(function(){var ba,fa,Ya;switch(It){case"appear":return ba={},Object(le.a)(ba,Kt,Fe),Object(le.a)(ba,hn,gt),Object(le.a)(ba,pn,Cn),ba;case"enter":return fa={},Object(le.a)(fa,Kt,Ve),Object(le.a)(fa,hn,nn),Object(le.a)(fa,pn,On),fa;case"leave":return Ya={},Object(le.a)(Ya,Kt,nt),Object(le.a)(Ya,hn,Gt),Object(le.a)(Ya,pn,Pn),Ya;default:return{}}},[It]),Pr=En(It,function(ba){if(ba===Kt){var fa=Oa[Kt];return fa?fa(Dr()):wn}if(ma in Oa){var Ya;pa(((Ya=Oa[ma])===null||Ya===void 0?void 0:Ya.call(Oa,Dr(),null))||null)}return ma===pn&&(Ra(Dr()),me>0&&(clearTimeout(Va.current),Va.current=setTimeout(function(){Xa({deadline:!0})},me))),zt}),Vr=Object(J.a)(Pr,2),Xr=Vr[0],ma=Vr[1],kr=tt(ma);dr.current=kr,Mt(function(){Jt(ge);var ba=ja.current;if(ja.current=!0,!V)return;var fa;!ba&&ge&&G&&(fa=An),ba&&ge&&M&&(fa=zn),(ba&&!ge&&ve||!ba&&Ae&&!ge&&ve)&&(fa=sn),fa&&(ea(fa),Xr())},[ge]),Object(x.useEffect)(function(){(It===An&&!G||It===zn&&!M||It===sn&&!ve)&&ea(vn)},[G,M,ve]),Object(x.useEffect)(function(){return function(){clearTimeout(Va.current),Ma.current=!0}},[]),Object(x.useEffect)(function(){Yt!==void 0&&It===vn&&(Fn==null||Fn(Yt))},[Yt,It]);var Yr=va;return Oa[Kt]&&ma===hn&&(Yr=Object($.a)({transition:"none"},Yr)),[It,ma,Yr,Yt!=null?Yt:ge]}var $t=function(V){Object(T.a)(he,V);var ge=Object(d.a)(he);function he(){return Object(de.a)(this,he),ge.apply(this,arguments)}return Object(_e.a)(he,[{key:"render",value:function(){return this.props.children}}]),he}(x.Component),Tt=$t;function Nn(V){var ge=V;Object(H.a)(V)==="object"&&(ge=V.transitionSupport);function he(f){return!!(f.motionName&&ge)}var I=x.forwardRef(function(f,M){var E=f.visible,G=E===void 0?!0:E,q=f.removeOnLeave,ve=q===void 0?!0:q,me=f.forceRender,Ae=f.children,Fe=f.motionName,Ve=f.leavedClassName,nt=f.eventProps,gt=he(f),nn=Object(x.useRef)(),Gt=Object(x.useRef)();function Cn(){try{return Object(Ht.a)(nn.current||Gt.current)}catch(ea){return null}}var On=ta(gt,G,Cn,f),Pn=Object(J.a)(On,4),Rn=Pn[0],Sn=Pn[1],Yn=Pn[2],Fn=Pn[3],xa=x.useRef(Fn);Fn&&(xa.current=!0);var Bn=Object(x.useRef)(M);Bn.current=M;var Yt=x.useCallback(function(ea){nn.current=ea,Object(je.b)(Bn.current,ea)},[]),Jt,Wn=Object($.a)(Object($.a)({},nt),{},{visible:G});if(!Ae)Jt=null;else if(Rn===vn||!he(f))Fn?Jt=Ae(Object($.a)({},Wn),Yt):!ve&&xa.current?Jt=Ae(Object($.a)(Object($.a)({},Wn),{},{className:Ve}),Yt):me?Jt=Ae(Object($.a)(Object($.a)({},Wn),{},{style:{display:"none"}}),Yt):Jt=null;else{var Zn,It;Sn===Kt?It="prepare":tt(Sn)?It="active":Sn===hn&&(It="start"),Jt=Ae(Object($.a)(Object($.a)({},Wn),{},{className:fe()(fn(Fe,Rn),(Zn={},Object(le.a)(Zn,fn(Fe,"".concat(Rn,"-").concat(It)),It),Object(le.a)(Zn,Fe,typeof Fe=="string"),Zn)),style:Yn}),Yt)}return x.createElement(Tt,{ref:Gt},Jt)});return I.displayName="CSSMotion",I}var ua=Nn(kt),Me="add",Oe="keep",at="remove",mt="removed";function dt(V){var ge;return V&&Object(H.a)(V)==="object"&&"key"in V?ge=V:ge={key:V},Object($.a)(Object($.a)({},ge),{},{key:String(ge.key)})}function Nt(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return V.map(dt)}function Dt(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],he=[],I=0,f=ge.length,M=Nt(V),E=Nt(ge);M.forEach(function(ve){for(var me=!1,Ae=I;Ae1});return q.forEach(function(ve){he=he.filter(function(me){var Ae=me.key,Fe=me.status;return Ae!==ve||Fe!==at}),he.forEach(function(me){me.key===ve&&(me.status=Oe)})}),he}var Ye=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function ht(V){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ua,he=function(I){Object(T.a)(M,I);var f=Object(d.a)(M);function M(){var E;return Object(de.a)(this,M),E=f.apply(this,arguments),E.state={keyEntities:[]},E.removeKey=function(G){E.setState(function(q){var ve=q.keyEntities;return{keyEntities:ve.map(function(me){return me.key!==G?me:Object($.a)(Object($.a)({},me),{},{status:mt})})}})},E}return Object(_e.a)(M,[{key:"render",value:function(){var G=this,q=this.state.keyEntities,ve=this.props,me=ve.component,Ae=ve.children,Fe=ve.onVisibleChanged,Ve=Object(Re.a)(ve,["component","children","onVisibleChanged"]),nt=me||x.Fragment,gt={};return Ye.forEach(function(nn){gt[nn]=Ve[nn],delete Ve[nn]}),delete Ve.keys,x.createElement(nt,Ve,q.map(function(nn){var Gt=nn.status,Cn=Object(Re.a)(nn,["status"]),On=Gt===Me||Gt===Oe;return x.createElement(ge,Object(ne.a)({},gt,{key:Cn.key,visible:On,eventProps:Cn,onVisibleChanged:function(Rn){Fe==null||Fe(Rn,{key:Cn.key}),Rn||G.removeKey(Cn.key)}}),Ae)}))}}],[{key:"getDerivedStateFromProps",value:function(G,q){var ve=G.keys,me=q.keyEntities,Ae=Nt(ve),Fe=Dt(me,Ae);return{keyEntities:Fe.filter(function(Ve){var nt=me.find(function(gt){var nn=gt.key;return Ve.key===nn});return!(nt&&nt.status===mt&&Ve.status===at)})}}}]),M}(x.Component);return he.defaultProps={component:"div"},he}var Pt=ht(kt),Xt=ua;function _t(V){var ge=V.prefixCls,he=V.motion,I=V.animation,f=V.transitionName;return he||(I?{motionName:"".concat(ge,"-").concat(I)}:f?{motionName:f}:null)}function Zt(V){var ge=V.prefixCls,he=V.visible,I=V.zIndex,f=V.mask,M=V.maskMotion,E=V.maskAnimation,G=V.maskTransitionName;if(!f)return null;var q={};return(M||G||E)&&(q=Object($.a)({motionAppear:!0},_t({motion:M,prefixCls:ge,transitionName:G,animation:E}))),x.createElement(Xt,Object(ne.a)({},q,{visible:he,removeOnLeave:!0}),function(ve){var me=ve.className;return x.createElement("div",{style:{zIndex:I},className:fe()("".concat(ge,"-mask"),me)})})}var Ln=o("9mu1"),qt=o("o0o1"),Mn=o.n(qt),un=o("HaE+"),ct=["measure","align",null,"motion"],wt=function(V,ge){var he=Object(x.useState)(null),I=Object(J.a)(he,2),f=I[0],M=I[1],E=Object(x.useRef)(),G=Object(x.useRef)(!1);function q(Ae){G.current||M(Ae)}function ve(){vt.a.cancel(E.current)}function me(Ae){ve(),E.current=Object(vt.a)(function(){q(function(Fe){switch(f){case"align":return"motion";case"motion":return"stable";default:}return Fe}),Ae==null||Ae()})}return Object(x.useEffect)(function(){q("measure")},[V]),Object(x.useEffect)(function(){switch(f){case"measure":ge();break;default:}f&&(E.current=Object(vt.a)(Object(un.a)(Mn.a.mark(function Ae(){var Fe,Ve;return Mn.a.wrap(function(gt){for(;;)switch(gt.prev=gt.next){case 0:Fe=ct.indexOf(f),Ve=ct[Fe+1],Ve&&Fe!==-1&&q(Ve);case 3:case"end":return gt.stop()}},Ae)}))))},[f]),Object(x.useEffect)(function(){return function(){G.current=!0,ve()}},[]),[f,me]},Hn=function(V){var ge=x.useState({width:0,height:0}),he=Object(J.a)(ge,2),I=he[0],f=he[1];function M(G){f({width:G.offsetWidth,height:G.offsetHeight})}var E=x.useMemo(function(){var G={};if(V){var q=I.width,ve=I.height;V.indexOf("height")!==-1&&ve?G.height=ve:V.indexOf("minHeight")!==-1&&ve&&(G.minHeight=ve),V.indexOf("width")!==-1&&q?G.width=q:V.indexOf("minWidth")!==-1&&q&&(G.minWidth=q)}return G},[V,I]);return[E,M]},Jn=x.forwardRef(function(V,ge){var he=V.visible,I=V.prefixCls,f=V.className,M=V.style,E=V.children,G=V.zIndex,q=V.stretch,ve=V.destroyPopupOnHide,me=V.forceRender,Ae=V.align,Fe=V.point,Ve=V.getRootDomNode,nt=V.getClassNameFromAlign,gt=V.onAlign,nn=V.onMouseEnter,Gt=V.onMouseLeave,Cn=V.onMouseDown,On=V.onTouchStart,Pn=Object(x.useRef)(),Rn=Object(x.useRef)(),Sn=Object(x.useState)(),Yn=Object(J.a)(Sn,2),Fn=Yn[0],xa=Yn[1],Bn=Hn(q),Yt=Object(J.a)(Bn,2),Jt=Yt[0],Wn=Yt[1];function Zn(){q&&Wn(Ve())}var It=wt(he,Zn),ea=Object(J.a)(It,2),_a=ea[0],ra=ea[1],va=Object(x.useRef)();function pa(){return Fe||Ve}function ja(){var Ca;(Ca=Pn.current)===null||Ca===void 0||Ca.forceAlign()}function Va(Ca,ga){var Ra=nt(ga);Fn!==Ra&&xa(Ra),_a==="align"&&(Fn!==Ra?Promise.resolve().then(function(){ja()}):ra(function(){var Oa;(Oa=va.current)===null||Oa===void 0||Oa.call(va)}),gt==null||gt(Ca,ga))}var Ma=Object($.a)({},_t(V));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Ca){var ga=Ma[Ca];Ma[Ca]=function(Ra,Oa){return ra(),ga==null?void 0:ga(Ra,Oa)}});function sr(){return new Promise(function(Ca){va.current=Ca})}x.useEffect(function(){!Ma.motionName&&_a==="motion"&&ra()},[Ma.motionName,_a]),x.useImperativeHandle(ge,function(){return{forceAlign:ja,getElement:function(){return Rn.current}}});var Dr=Object($.a)(Object($.a)({},Jt),{},{zIndex:G,opacity:_a==="motion"||_a==="stable"||!he?void 0:0,pointerEvents:_a==="stable"?void 0:"none"},M),dr=!0;(Ae==null?void 0:Ae.points)&&(_a==="align"||_a==="stable")&&(dr=!1);var Xa=E;return x.Children.count(E)>1&&(Xa=x.createElement("div",{className:"".concat(I,"-content")},E)),x.createElement(Xt,Object(ne.a)({visible:he,ref:Rn,leavedClassName:"".concat(I,"-hidden")},Ma,{onAppearPrepare:sr,onEnterPrepare:sr,removeOnLeave:ve,forceRender:me}),function(Ca,ga){var Ra=Ca.className,Oa=Ca.style,Pr=fe()(I,f,Fn,Ra);return x.createElement(Ln.a,{target:pa(),key:"popup",ref:Pn,monitorWindowResize:!0,disabled:dr,align:Ae,onAlign:Va},x.createElement("div",{ref:ga,className:Pr,onMouseEnter:nn,onMouseLeave:Gt,onMouseDownCapture:Cn,onTouchStartCapture:On,style:Object($.a)(Object($.a)({},Oa),Dr)},Xa))})});Jn.displayName="PopupInner";var ha=Jn,In=x.forwardRef(function(V,ge){var he=V.prefixCls,I=V.visible,f=V.zIndex,M=V.children,E=V.mobile;E=E===void 0?{}:E;var G=E.popupClassName,q=E.popupStyle,ve=E.popupMotion,me=ve===void 0?{}:ve,Ae=E.popupRender,Fe=x.useRef();x.useImperativeHandle(ge,function(){return{forceAlign:function(){},getElement:function(){return Fe.current}}});var Ve=Object($.a)({zIndex:f},q),nt=M;return x.Children.count(M)>1&&(nt=x.createElement("div",{className:"".concat(he,"-content")},M)),Ae&&(nt=Ae(nt)),x.createElement(Xt,Object(ne.a)({visible:I,ref:Fe,removeOnLeave:!0},me),function(gt,nn){var Gt=gt.className,Cn=gt.style,On=fe()(he,G,Gt);return x.createElement("div",{ref:nn,className:On,style:Object($.a)(Object($.a)({},Cn),Ve)},nt)})});In.displayName="MobilePopupInner";var oa=In,Lt=["visible","mobile"],We=x.forwardRef(function(V,ge){var he=V.visible,I=V.mobile,f=Object(Re.a)(V,Lt),M=Object(x.useState)(he),E=Object(J.a)(M,2),G=E[0],q=E[1],ve=Object(x.useState)(!1),me=Object(J.a)(ve,2),Ae=me[0],Fe=me[1],Ve=Object($.a)(Object($.a)({},f),{},{visible:G});Object(x.useEffect)(function(){q(he),he&&I&&Fe(ke())},[he,I]);var nt=Ae?x.createElement(oa,Object(ne.a)({},Ve,{mobile:I,ref:ge})):x.createElement(ha,Object(ne.a)({},Ve,{ref:ge}));return x.createElement("div",null,x.createElement(Zt,Ve),nt)});We.displayName="Popup";var Qt=We,en=x.createContext(null),_n=en;function an(){}function cn(){return""}function tn(V){return V?V.ownerDocument:window.document}var na=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Kn(V){var ge=function(he){Object(T.a)(f,he);var I=Object(d.a)(f);function f(M){var E;Object(de.a)(this,f),E=I.call(this,M),E.popupRef=x.createRef(),E.triggerRef=x.createRef(),E.attachId=void 0,E.clickOutsideHandler=void 0,E.touchOutsideHandler=void 0,E.contextMenuOutsideHandler1=void 0,E.contextMenuOutsideHandler2=void 0,E.mouseDownTimeout=void 0,E.focusTime=void 0,E.preClickTime=void 0,E.preTouchTime=void 0,E.delayTimer=void 0,E.hasPopupMouseDown=void 0,E.onMouseEnter=function(q){var ve=E.props.mouseEnterDelay;E.fireEvents("onMouseEnter",q),E.delaySetPopupVisible(!0,ve,ve?null:q)},E.onMouseMove=function(q){E.fireEvents("onMouseMove",q),E.setPoint(q)},E.onMouseLeave=function(q){E.fireEvents("onMouseLeave",q),E.delaySetPopupVisible(!1,E.props.mouseLeaveDelay)},E.onPopupMouseEnter=function(){E.clearDelayTimer()},E.onPopupMouseLeave=function(q){var ve;if(q.relatedTarget&&!q.relatedTarget.setTimeout&&Object(Ut.a)((ve=E.popupRef.current)===null||ve===void 0?void 0:ve.getElement(),q.relatedTarget))return;E.delaySetPopupVisible(!1,E.props.mouseLeaveDelay)},E.onFocus=function(q){E.fireEvents("onFocus",q),E.clearDelayTimer(),E.isFocusToShow()&&(E.focusTime=Date.now(),E.delaySetPopupVisible(!0,E.props.focusDelay))},E.onMouseDown=function(q){E.fireEvents("onMouseDown",q),E.preClickTime=Date.now()},E.onTouchStart=function(q){E.fireEvents("onTouchStart",q),E.preTouchTime=Date.now()},E.onBlur=function(q){E.fireEvents("onBlur",q),E.clearDelayTimer(),E.isBlurToHide()&&E.delaySetPopupVisible(!1,E.props.blurDelay)},E.onContextMenu=function(q){q.preventDefault(),E.fireEvents("onContextMenu",q),E.setPopupVisible(!0,q)},E.onContextMenuClose=function(){E.isContextMenuToShow()&&E.close()},E.onClick=function(q){if(E.fireEvents("onClick",q),E.focusTime){var ve;if(E.preClickTime&&E.preTouchTime?ve=Math.min(E.preClickTime,E.preTouchTime):E.preClickTime?ve=E.preClickTime:E.preTouchTime&&(ve=E.preTouchTime),Math.abs(ve-E.focusTime)<20)return;E.focusTime=0}E.preClickTime=0,E.preTouchTime=0,E.isClickToShow()&&(E.isClickToHide()||E.isBlurToHide())&&q&&q.preventDefault&&q.preventDefault();var me=!E.state.popupVisible;(E.isClickToHide()&&!me||me&&E.isClickToShow())&&E.setPopupVisible(!E.state.popupVisible,q)},E.onPopupMouseDown=function(){if(E.hasPopupMouseDown=!0,clearTimeout(E.mouseDownTimeout),E.mouseDownTimeout=window.setTimeout(function(){E.hasPopupMouseDown=!1},0),E.context){var q;(q=E.context).onPopupMouseDown.apply(q,arguments)}},E.onDocumentClick=function(q){if(E.props.mask&&!E.props.maskClosable)return;var ve=q.target,me=E.getRootDomNode(),Ae=E.getPopupDomNode();(!Object(Ut.a)(me,ve)||E.isContextMenuOnly())&&!Object(Ut.a)(Ae,ve)&&!E.hasPopupMouseDown&&E.close()},E.getRootDomNode=function(){var q=E.props.getTriggerDOMNode;if(q)return q(E.triggerRef.current);try{var ve=Object(Ht.a)(E.triggerRef.current);if(ve)return ve}catch(me){}return xt.a.findDOMNode(Object(ae.a)(E))},E.getPopupClassNameFromAlign=function(q){var ve=[],me=E.props,Ae=me.popupPlacement,Fe=me.builtinPlacements,Ve=me.prefixCls,nt=me.alignPoint,gt=me.getPopupClassNameFromAlign;return Ae&&Fe&&ve.push(Ue(Fe,Ve,q,nt)),gt&&ve.push(gt(q)),ve.join(" ")},E.getComponent=function(){var q=E.props,ve=q.prefixCls,me=q.destroyPopupOnHide,Ae=q.popupClassName,Fe=q.onPopupAlign,Ve=q.popupMotion,nt=q.popupAnimation,gt=q.popupTransitionName,nn=q.popupStyle,Gt=q.mask,Cn=q.maskAnimation,On=q.maskTransitionName,Pn=q.maskMotion,Rn=q.zIndex,Sn=q.popup,Yn=q.stretch,Fn=q.alignPoint,xa=q.mobile,Bn=q.forceRender,Yt=E.state,Jt=Yt.popupVisible,Wn=Yt.point,Zn=E.getPopupAlign(),It={};return E.isMouseEnterToShow()&&(It.onMouseEnter=E.onPopupMouseEnter),E.isMouseLeaveToHide()&&(It.onMouseLeave=E.onPopupMouseLeave),It.onMouseDown=E.onPopupMouseDown,It.onTouchStart=E.onPopupMouseDown,x.createElement(Qt,Object(ne.a)({prefixCls:ve,destroyPopupOnHide:me,visible:Jt,point:Fn&&Wn,className:Ae,align:Zn,onAlign:Fe,animation:nt,getClassNameFromAlign:E.getPopupClassNameFromAlign},It,{stretch:Yn,getRootDomNode:E.getRootDomNode,style:nn,mask:Gt,zIndex:Rn,transitionName:gt,maskAnimation:Cn,maskTransitionName:On,maskMotion:Pn,ref:E.popupRef,motion:Ve,mobile:xa,forceRender:Bn}),typeof Sn=="function"?Sn():Sn)},E.attachParent=function(q){vt.a.cancel(E.attachId);var ve=E.props,me=ve.getPopupContainer,Ae=ve.getDocument,Fe=E.getRootDomNode(),Ve;me?(Fe||me.length===0)&&(Ve=me(Fe)):Ve=Ae(E.getRootDomNode()).body,Ve?Ve.appendChild(q):E.attachId=Object(vt.a)(function(){E.attachParent(q)})},E.getContainer=function(){var q=E.props.getDocument,ve=q(E.getRootDomNode()).createElement("div");return ve.style.position="absolute",ve.style.top="0",ve.style.left="0",ve.style.width="100%",E.attachParent(ve),ve},E.setPoint=function(q){var ve=E.props.alignPoint;if(!ve||!q)return;E.setState({point:{pageX:q.pageX,pageY:q.pageY}})},E.handlePortalUpdate=function(){E.state.prevPopupVisible!==E.state.popupVisible&&E.props.afterPopupVisibleChange(E.state.popupVisible)},E.triggerContextValue={onPopupMouseDown:E.onPopupMouseDown};var G;return"popupVisible"in M?G=!!M.popupVisible:G=!!M.defaultPopupVisible,E.state={prevPopupVisible:G,popupVisible:G},na.forEach(function(q){E["fire".concat(q)]=function(ve){E.fireEvents(q,ve)}}),E}return Object(_e.a)(f,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var E=this.props,G=this.state;if(G.popupVisible){var q;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(q=E.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(Le.a)(q,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(q=q||E.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(Le.a)(q,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(q=q||E.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(Le.a)(q,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Le.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),vt.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var E;return((E=this.popupRef.current)===null||E===void 0?void 0:E.getElement())||null}},{key:"getPopupAlign",value:function(){var E=this.props,G=E.popupPlacement,q=E.popupAlign,ve=E.builtinPlacements;return G&&ve?rt(ve,G,q):q}},{key:"setPopupVisible",value:function(E,G){var q=this.props.alignPoint,ve=this.state.popupVisible;this.clearDelayTimer(),ve!==E&&("popupVisible"in this.props||this.setState({popupVisible:E,prevPopupVisible:ve}),this.props.onPopupVisibleChange(E)),q&&G&&E&&this.setPoint(G)}},{key:"delaySetPopupVisible",value:function(E,G,q){var ve=this,me=G*1e3;if(this.clearDelayTimer(),me){var Ae=q?{pageX:q.pageX,pageY:q.pageY}:null;this.delayTimer=window.setTimeout(function(){ve.setPopupVisible(E,Ae),ve.clearDelayTimer()},me)}else this.setPopupVisible(E,q)}},{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(E){var G=this.props.children.props,q=this.props;return G[E]&&q[E]?this["fire".concat(E)]:G[E]||q[E]}},{key:"isClickToShow",value:function(){var E=this.props,G=E.action,q=E.showAction;return G.indexOf("click")!==-1||q.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var E=this.props.action;return E==="contextMenu"||E.length===1&&E[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var E=this.props,G=E.action,q=E.showAction;return G.indexOf("contextMenu")!==-1||q.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var E=this.props,G=E.action,q=E.hideAction;return G.indexOf("click")!==-1||q.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var E=this.props,G=E.action,q=E.showAction;return G.indexOf("hover")!==-1||q.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var E=this.props,G=E.action,q=E.hideAction;return G.indexOf("hover")!==-1||q.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var E=this.props,G=E.action,q=E.showAction;return G.indexOf("focus")!==-1||q.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var E=this.props,G=E.action,q=E.hideAction;return G.indexOf("focus")!==-1||q.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var E;(E=this.popupRef.current)===null||E===void 0||E.forceAlign()}}},{key:"fireEvents",value:function(E,G){var q=this.props.children.props[E];q&&q(G);var ve=this.props[E];ve&&ve(G)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var E=this.state.popupVisible,G=this.props,q=G.children,ve=G.forceRender,me=G.alignPoint,Ae=G.className,Fe=G.autoDestroy,Ve=x.Children.only(q),nt={key:"trigger"};this.isContextMenuToShow()?nt.onContextMenu=this.onContextMenu:nt.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(nt.onClick=this.onClick,nt.onMouseDown=this.onMouseDown,nt.onTouchStart=this.onTouchStart):(nt.onClick=this.createTwoChains("onClick"),nt.onMouseDown=this.createTwoChains("onMouseDown"),nt.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(nt.onMouseEnter=this.onMouseEnter,me&&(nt.onMouseMove=this.onMouseMove)):nt.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?nt.onMouseLeave=this.onMouseLeave:nt.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(nt.onFocus=this.onFocus,nt.onBlur=this.onBlur):(nt.onFocus=this.createTwoChains("onFocus"),nt.onBlur=this.createTwoChains("onBlur"));var gt=fe()(Ve&&Ve.props&&Ve.props.className,Ae);gt&&(nt.className=gt);var nn=Object($.a)({},nt);Object(je.c)(Ve)&&(nn.ref=Object(je.a)(this.triggerRef,Ve.ref));var Gt=x.cloneElement(Ve,nn),Cn;return(E||this.popupRef.current||ve)&&(Cn=x.createElement(V,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!E&&Fe&&(Cn=null),x.createElement(_n.Provider,{value:this.triggerContextValue},Gt,Cn)}}],[{key:"getDerivedStateFromProps",value:function(E,G){var q=E.popupVisible,ve={};return q!==void 0&&G.popupVisible!==q&&(ve.popupVisible=q,ve.prevPopupVisible=G.popupVisible),ve}}]),f}(x.Component);return ge.contextType=_n,ge.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:cn,getDocument:tn,onPopupVisibleChange:an,afterPopupVisibleChange:an,onPopupAlign:an,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 ln=Kn(ze.a),rn={adjustX:1,adjustY:1},Sa={topLeft:{points:["bl","tl"],overflow:rn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:rn,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:rn,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:rn,offset:[4,0]}},ia={topLeft:{points:["bl","tl"],overflow:rn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:rn,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:rn,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:rn,offset:[4,0]}},qn=Sa,aa=0,Un={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ya=function(ge,he,I){var f=Q(he),M=ge.getState();ge.setState({defaultActiveFirst:Object($.a)(Object($.a)({},M.defaultActiveFirst),{},Object(le.a)({},f,I))})},kn=function(V){Object(T.a)(he,V);var ge=Object(d.a)(he);function he(I){var f;Object(de.a)(this,he),f=ge.call(this,I),f.onDestroy=function(me){f.props.onDestroy(me)},f.onKeyDown=function(me){var Ae=me.keyCode,Fe=f.menuInstance,Ve=f.props.store,nt=f.getVisible();if(Ae===m.a.ENTER)return f.onTitleClick(me),ya(Ve,f.props.eventKey,!0),!0;if(Ae===m.a.RIGHT)return nt?Fe.onKeyDown(me):(f.triggerOpenChange(!0),ya(Ve,f.props.eventKey,!0)),!0;if(Ae===m.a.LEFT){var gt;if(nt)gt=Fe.onKeyDown(me);else return;return gt||(f.triggerOpenChange(!1),gt=!0),gt}return nt&&(Ae===m.a.UP||Ae===m.a.DOWN)?Fe.onKeyDown(me):void 0},f.onOpenChange=function(me){f.props.onOpenChange(me)},f.onPopupVisibleChange=function(me){f.triggerOpenChange(me,me?"mouseenter":"mouseleave")},f.onMouseEnter=function(me){var Ae=f.props,Fe=Ae.eventKey,Ve=Ae.onMouseEnter,nt=Ae.store;ya(nt,f.props.eventKey,!1),Ve({key:Fe,domEvent:me})},f.onMouseLeave=function(me){var Ae=f.props,Fe=Ae.parentMenu,Ve=Ae.eventKey,nt=Ae.onMouseLeave;Fe.subMenuInstance=Object(ae.a)(f),nt({key:Ve,domEvent:me})},f.onTitleMouseEnter=function(me){var Ae=f.props,Fe=Ae.eventKey,Ve=Ae.onItemHover,nt=Ae.onTitleMouseEnter;Ve({key:Fe,hover:!0}),nt({key:Fe,domEvent:me})},f.onTitleMouseLeave=function(me){var Ae=f.props,Fe=Ae.parentMenu,Ve=Ae.eventKey,nt=Ae.onItemHover,gt=Ae.onTitleMouseLeave;Fe.subMenuInstance=Object(ae.a)(f),nt({key:Ve,hover:!1}),gt({key:Ve,domEvent:me})},f.onTitleClick=function(me){var Ae=Object(ae.a)(f),Fe=Ae.props;if(Fe.onTitleClick({key:Fe.eventKey,domEvent:me}),Fe.triggerSubMenuAction==="hover")return;f.triggerOpenChange(!f.getVisible(),"click"),ya(Fe.store,f.props.eventKey,!1)},f.onSubMenuClick=function(me){typeof f.props.onClick=="function"&&f.props.onClick(f.addKeyPath(me))},f.onSelect=function(me){f.props.onSelect(me)},f.onDeselect=function(me){f.props.onDeselect(me)},f.getPrefixCls=function(){return"".concat(f.props.rootPrefixCls,"-submenu")},f.getActiveClassName=function(){return"".concat(f.getPrefixCls(),"-active")},f.getDisabledClassName=function(){return"".concat(f.getPrefixCls(),"-disabled")},f.getSelectedClassName=function(){return"".concat(f.getPrefixCls(),"-selected")},f.getOpenClassName=function(){return"".concat(f.props.rootPrefixCls,"-submenu-open")},f.getVisible=function(){return f.state.isOpen},f.getMode=function(){return f.state.mode},f.saveMenuInstance=function(me){f.menuInstance=me},f.addKeyPath=function(me){return Object($.a)(Object($.a)({},me),{},{keyPath:(me.keyPath||[]).concat(f.props.eventKey)})},f.triggerOpenChange=function(me,Ae){var Fe=f.props.eventKey,Ve=function(){f.onOpenChange({key:Fe,item:Object(ae.a)(f),trigger:Ae,open:me})};Ae==="mouseenter"?f.mouseenterTimeout=setTimeout(function(){Ve()},0):Ve()},f.isChildrenSelected=function(){var me={find:!1};return De(f.props.children,f.props.selectedKeys,me),me.find},f.isInlineMode=function(){return f.getMode()==="inline"},f.adjustWidth=function(){if(!f.subMenuTitle||!f.menuInstance)return;var me=it.findDOMNode(f.menuInstance);if(me.offsetWidth>=f.subMenuTitle.offsetWidth)return;me.style.minWidth="".concat(f.subMenuTitle.offsetWidth,"px")},f.saveSubMenuTitle=function(me){f.subMenuTitle=me},f.getBaseProps=function(){var me=Object(ae.a)(f),Ae=me.props,Fe=f.getMode();return{mode:Fe==="horizontal"?"vertical":Fe,visible:f.getVisible(),level:Ae.level+1,inlineIndent:Ae.inlineIndent,focusable:!1,onClick:f.onSubMenuClick,onSelect:f.onSelect,onDeselect:f.onDeselect,onDestroy:f.onDestroy,selectedKeys:Ae.selectedKeys,eventKey:"".concat(Ae.eventKey,"-menu-"),openKeys:Ae.openKeys,motion:Ae.motion,onOpenChange:f.onOpenChange,subMenuOpenDelay:Ae.subMenuOpenDelay,parentMenu:Object(ae.a)(f),subMenuCloseDelay:Ae.subMenuCloseDelay,forceSubMenuRender:Ae.forceSubMenuRender,triggerSubMenuAction:Ae.triggerSubMenuAction,builtinPlacements:Ae.builtinPlacements,defaultActiveFirst:Ae.store.getState().defaultActiveFirst[Q(Ae.eventKey)],multiple:Ae.multiple,prefixCls:Ae.rootPrefixCls,id:f.internalMenuId,manualRef:f.saveMenuInstance,itemIcon:Ae.itemIcon,expandIcon:Ae.expandIcon,direction:Ae.direction}},f.getMotion=function(me,Ae){var Fe=Object(ae.a)(f),Ve=Fe.haveRendered,nt=f.props,gt=nt.motion,nn=nt.rootPrefixCls,Gt=Object($.a)(Object($.a)({},gt),{},{leavedClassName:"".concat(nn,"-hidden"),removeOnLeave:!1,motionAppear:Ve||!Ae||me!=="inline"});return Gt};var M=I.store,E=I.eventKey,G=M.getState(),q=G.defaultActiveFirst;f.isRootMenu=!1;var ve=!1;return q&&(ve=q[E]),ya(M,E,ve),f.state={mode:I.mode,isOpen:I.isOpen},f}return Object(_e.a)(he,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var f=this,M=this.props,E=M.mode,G=M.parentMenu,q=M.manualRef,ve=M.isOpen,me=function(){f.setState({mode:E,isOpen:ve})},Ae=ve!==this.state.isOpen,Fe=E!==this.state.mode;if((Fe||Ae)&&(vt.a.cancel(this.updateStateRaf),Fe?this.updateStateRaf=Object(vt.a)(me):me()),q&&q(this),E!=="horizontal"||!(G==null?void 0:G.isRootMenu)||!ve)return;this.minWidthTimeout=setTimeout(function(){return f.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var f=this.props,M=f.onDestroy,E=f.eventKey;M&&M(E),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),vt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(f,M){var E=this.getBaseProps();return x.createElement(Er,Object(ne.a)({},E,{id:this.internalMenuId,className:f,style:M}),this.props.children)}},{key:"renderChildren",value:function(){var f=this,M=this.getBaseProps(),E=M.mode,G=M.visible,q=M.forceSubMenuRender,ve=M.direction,me=this.getMotion(E,G);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||G||q,!this.haveOpened)return x.createElement("div",null);var Ae=fe()("".concat(M.prefixCls,"-sub"),Object(le.a)({},"".concat(M.prefixCls,"-rtl"),ve==="rtl"));return this.isInlineMode()?x.createElement(Xt,Object(ne.a)({visible:M.visible,forceRender:q},me),function(Fe){var Ve=Fe.className,nt=Fe.style,gt=fe()(Ae,Ve);return f.renderPopupMenu(gt,nt)}):this.renderPopupMenu(Ae)}},{key:"render",value:function(){var f,M,E,G=Object($.a)({},this.props),q=this.getVisible(),ve=this.getPrefixCls(),me=this.isInlineMode(),Ae=this.getMode(),Fe=fe()(ve,"".concat(ve,"-").concat(Ae),(f={},Object(le.a)(f,G.className,!!G.className),Object(le.a)(f,this.getOpenClassName(),q),Object(le.a)(f,this.getActiveClassName(),G.active||q&&!me),Object(le.a)(f,this.getDisabledClassName(),G.disabled),Object(le.a)(f,this.getSelectedClassName(),this.isChildrenSelected()),f));this.internalMenuId||(G.eventKey?this.internalMenuId="".concat(G.eventKey,"$Menu"):(aa+=1,this.internalMenuId="$__$".concat(aa,"$Menu")));var Ve={},nt={},gt={};G.disabled||(Ve={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},nt={onClick:this.onTitleClick},gt={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var nn={},Gt=G.direction,Cn=Gt==="rtl";me&&(Cn?nn.paddingRight=G.inlineIndent*G.level:nn.paddingLeft=G.inlineIndent*G.level);var On={};this.getVisible()&&(On={"aria-owns":this.internalMenuId});var Pn=null;Ae!=="horizontal"&&(Pn=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Pn=x.createElement(this.props.expandIcon,Object($.a)({},this.props))));var Rn=x.createElement("div",Object(ne.a)({ref:this.saveSubMenuTitle,style:nn,className:"".concat(ve,"-title"),role:"button"},gt,nt,{"aria-expanded":q},On,{"aria-haspopup":"true",title:typeof G.title=="string"?G.title:void 0}),G.title,Pn||x.createElement("i",{className:"".concat(ve,"-arrow")})),Sn=this.renderChildren(),Yn=((M=G.parentMenu)===null||M===void 0?void 0:M.isRootMenu)?G.parentMenu.props.getPopupContainer:function(pa){return pa.parentNode},Fn=Un[Ae],xa=G.popupOffset?{offset:G.popupOffset}:{},Bn=fe()((E={},Object(le.a)(E,G.popupClassName,G.popupClassName&&!me),Object(le.a)(E,"".concat(ve,"-rtl"),Cn),E)),Yt=G.disabled,Jt=G.triggerSubMenuAction,Wn=G.subMenuOpenDelay,Zn=G.forceSubMenuRender,It=G.subMenuCloseDelay,ea=G.builtinPlacements;Ie.forEach(function(pa){return delete G[pa]}),delete G.onClick;var _a=Cn?Object($.a)(Object($.a)({},ia),ea):Object($.a)(Object($.a)({},Sa),ea);delete G.direction;var ra=this.getBaseProps(),va=me?null:this.getMotion(ra.mode,ra.visible);return x.createElement("li",Object(ne.a)({},G,Ve,{className:Fe,role:"menuitem"}),x.createElement(ln,{prefixCls:ve,popupClassName:fe()("".concat(ve,"-popup"),Bn),getPopupContainer:Yn,builtinPlacements:_a,popupPlacement:Fn,popupVisible:me?!1:q,popupAlign:xa,popup:me?null:Sn,action:Yt||me?[]:[Jt],mouseEnterDelay:Wn,mouseLeaveDelay:It,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Zn,popupMotion:va},Rn),me?Sn:null)}}]),he}(x.Component);kn.defaultProps={onMouseEnter:ce,onMouseLeave:ce,onTitleMouseEnter:ce,onTitleMouseLeave:ce,onTitleClick:ce,manualRef:ce,mode:"vertical",title:""};var mn=Object(s.b)(function(V,ge){var he=V.openKeys,I=V.activeKey,f=V.selectedKeys,M=ge.eventKey,E=ge.subMenuKey;return{isOpen:he.indexOf(M)>-1,active:I[E]===M,selectedKeys:f}})(kn);mn.isSubMenu=!0;var Bt=mn,dn="menuitem-overflowed",ca=.5,Vn=function(V){Object(T.a)(he,V);var ge=Object(d.a)(he);function he(){var I;return Object(de.a)(this,he),I=ge.apply(this,arguments),I.resizeObserver=null,I.mutationObserver=null,I.originalTotalWidth=0,I.overflowedItems=[],I.menuItemSizes=[],I.cancelFrameId=null,I.state={lastVisibleIndex:void 0},I.childRef=x.createRef(),I.getMenuItemNodes=function(){var f=I.props.prefixCls,M=I.childRef.current;return M?[].slice.call(M.children).filter(function(E){return E.className.split(" ").indexOf("".concat(f,"-overflowed-submenu"))<0}):[]},I.getOverflowedSubMenuItem=function(f,M,E){var G=I.props,q=G.overflowedIndicator,ve=G.level,me=G.mode,Ae=G.prefixCls,Fe=G.theme;if(ve!==1||me!=="horizontal")return null;var Ve=I.props.children[0],nt=Ve.props,gt=nt.children,nn=nt.title,Gt=nt.style,Cn=Object(Re.a)(nt,["children","title","style"]),On=Object($.a)({},Gt),Pn="".concat(f,"-overflowed-indicator"),Rn="".concat(f,"-overflowed-indicator");M.length===0&&E!==!0?On=Object($.a)(Object($.a)({},On),{},{display:"none"}):E&&(On=Object($.a)(Object($.a)({},On),{},{visibility:"hidden",position:"absolute"}),Pn="".concat(Pn,"-placeholder"),Rn="".concat(Rn,"-placeholder"));var Sn=Fe?"".concat(Ae,"-").concat(Fe):"",Yn={};return Ie.forEach(function(Fn){Cn[Fn]!==void 0&&(Yn[Fn]=Cn[Fn])}),x.createElement(Bt,Object(ne.a)({title:q,className:"".concat(Ae,"-overflowed-submenu"),popupClassName:Sn},Yn,{key:Pn,eventKey:Rn,disabled:!1,style:On}),M)},I.setChildrenWidthAndResize=function(){if(I.props.mode!=="horizontal")return;var f=I.childRef.current;if(!f)return;var M=f.children;if(!M||M.length===0)return;var E=f.children[M.length-1];qe(E,"display","inline-block");var G=I.getMenuItemNodes(),q=G.filter(function(ve){return ve.className.split(" ").indexOf(dn)>=0});q.forEach(function(ve){qe(ve,"display","inline-block")}),I.menuItemSizes=G.map(function(ve){return Ge(ve,!0)}),q.forEach(function(ve){qe(ve,"display","none")}),I.overflowedIndicatorWidth=Ge(f.children[f.children.length-1],!0),I.originalTotalWidth=I.menuItemSizes.reduce(function(ve,me){return ve+me},0),I.handleResize(),qe(E,"display","none")},I.handleResize=function(){if(I.props.mode!=="horizontal")return;var f=I.childRef.current;if(!f)return;var M=Ge(f);I.overflowedItems=[];var E=0,G;I.originalTotalWidth>M+ca&&(G=-1,I.menuItemSizes.forEach(function(q){E+=q,E+I.overflowedIndicatorWidth<=M&&(G+=1)})),I.setState({lastVisibleIndex:G})},I}return Object(_e.a)(he,[{key:"componentDidMount",value:function(){var f=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var M=this.childRef.current;if(!M)return;this.resizeObserver=new $e.default(function(E){E.forEach(function(){var G=f.cancelFrameId;cancelAnimationFrame(G),f.cancelFrameId=requestAnimationFrame(f.setChildrenWidthAndResize)})}),[].slice.call(M.children).concat(M).forEach(function(E){f.resizeObserver.observe(E)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){f.resizeObserver.disconnect(),[].slice.call(M.children).concat(M).forEach(function(E){f.resizeObserver.observe(E)}),f.setChildrenWidthAndResize()}),this.mutationObserver.observe(M,{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(f){var M=this,E=this.state.lastVisibleIndex;return(f||[]).reduce(function(G,q,ve){var me=q;if(M.props.mode==="horizontal"){var Ae=M.getOverflowedSubMenuItem(q.props.eventKey,[]);E!==void 0&&M.props.className.indexOf("".concat(M.props.prefixCls,"-root"))!==-1&&(ve>E&&(me=x.cloneElement(q,{style:{display:"none"},eventKey:"".concat(q.props.eventKey,"-hidden"),className:"".concat(dn)})),ve===E+1&&(M.overflowedItems=f.slice(E+1).map(function(Ve){return x.cloneElement(Ve,{key:Ve.props.eventKey,mode:"vertical-left"})}),Ae=M.getOverflowedSubMenuItem(q.props.eventKey,M.overflowedItems)));var Fe=[].concat(Object(L.a)(G),[Ae,me]);return ve===f.length-1&&Fe.push(M.getOverflowedSubMenuItem(q.props.eventKey,[],!0)),Fe}return[].concat(Object(L.a)(G),[me])},[])}},{key:"render",value:function(){var f=this.props,M=f.visible,E=f.prefixCls,G=f.overflowedIndicator,q=f.mode,ve=f.level,me=f.tag,Ae=f.children,Fe=f.theme,Ve=Object(Re.a)(f,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),nt=me;return x.createElement(nt,Object(ne.a)({ref:this.childRef},Ve),this.renderChildren(Ae))}}]),he}(x.Component);Vn.defaultProps={tag:"div",className:""};var Xn=Vn;function vr(V){return V.length?V.every(function(ge){return!!ge.props.disabled}):!0}function La(V,ge,he){var I=V.getState();V.setState({activeKey:Object($.a)(Object($.a)({},I.activeKey),{},Object(le.a)({},ge,he))})}function Fa(V){return V.eventKey||"0-menu-"}function Pa(V,ge){var he=ge,I=V.children,f=V.eventKey;if(he){var M;if(Ee(I,function(E,G){E&&E.props&&!E.props.disabled&&he===R(E,f,G)&&(M=!0)}),M)return he}return he=null,V.defaultActiveFirst&&Ee(I,function(E,G){!he&&E&&!E.props.disabled&&(he=R(E,f,G))}),he}function Nr(V){if(!V)return;var ge=this.instanceArray.indexOf(V);ge!==-1?this.instanceArray[ge]=V:this.instanceArray.push(V)}var nr=function(V){Object(T.a)(he,V);var ge=Object(d.a)(he);function he(I){var f;return Object(de.a)(this,he),f=ge.call(this,I),f.onKeyDown=function(M,E){var G=M.keyCode,q;if(f.getFlatInstanceArray().forEach(function(me){me&&me.props.active&&me.onKeyDown&&(q=me.onKeyDown(M))}),q)return 1;var ve=null;return(G===m.a.UP||G===m.a.DOWN)&&(ve=f.step(G===m.a.UP?-1:1)),ve?(M.preventDefault(),La(f.props.store,Fa(f.props),ve.props.eventKey),typeof E=="function"&&E(ve),1):void 0},f.onItemHover=function(M){var E=M.key,G=M.hover;La(f.props.store,Fa(f.props),G?E:null)},f.onDeselect=function(M){f.props.onDeselect(M)},f.onSelect=function(M){f.props.onSelect(M)},f.onClick=function(M){f.props.onClick(M)},f.onOpenChange=function(M){f.props.onOpenChange(M)},f.onDestroy=function(M){f.props.onDestroy(M)},f.getFlatInstanceArray=function(){return f.instanceArray},f.step=function(M){var E=f.getFlatInstanceArray(),G=f.props.store.getState().activeKey[Fa(f.props)],q=E.length;if(!q)return null;M<0&&(E=E.concat().reverse());var ve=-1;if(E.every(function(Ve,nt){return Ve&&Ve.props.eventKey===G?(ve=nt,!1):!0}),!f.props.defaultActiveFirst&&ve!==-1&&vr(E.slice(ve,q-1)))return;var me=(ve+1)%q,Ae=me;do{var Fe=E[Ae];if(!Fe||Fe.props.disabled)Ae=(Ae+1)%q;else return Fe}while(Ae!==me);return null},f.renderCommonMenuItem=function(M,E,G){var q=f.props.store.getState(),ve=Object(ae.a)(f),me=ve.props,Ae=R(M,me.eventKey,E),Fe=M.props;if(!Fe||typeof M.type=="string")return M;var Ve=Ae===q.activeKey,nt=Object($.a)(Object($.a)({mode:Fe.mode||me.mode,level:me.level,inlineIndent:me.inlineIndent,renderMenuItem:f.renderMenuItem,rootPrefixCls:me.prefixCls,index:E,parentMenu:me.parentMenu,manualRef:Fe.disabled?void 0:Object(Y.a)(M.ref,Nr.bind(Object(ae.a)(f))),eventKey:Ae,active:!Fe.disabled&&Ve,multiple:me.multiple,onClick:function(nn){(Fe.onClick||ce)(nn),f.onClick(nn)},onItemHover:f.onItemHover,motion:me.motion,subMenuOpenDelay:me.subMenuOpenDelay,subMenuCloseDelay:me.subMenuCloseDelay,forceSubMenuRender:me.forceSubMenuRender,onOpenChange:f.onOpenChange,onDeselect:f.onDeselect,onSelect:f.onSelect,builtinPlacements:me.builtinPlacements,itemIcon:Fe.itemIcon||f.props.itemIcon,expandIcon:Fe.expandIcon||f.props.expandIcon},G),{},{direction:me.direction});return(me.mode==="inline"||Je())&&(nt.triggerSubMenuAction="click"),x.cloneElement(M,Object($.a)(Object($.a)({},nt),{},{key:Ae||E}))},f.renderMenuItem=function(M,E,G){if(!M)return null;var q=f.props.store.getState(),ve={openKeys:q.openKeys,selectedKeys:q.selectedKeys,triggerSubMenuAction:f.props.triggerSubMenuAction,subMenuKey:G};return f.renderCommonMenuItem(M,E,ve)},I.store.setState({activeKey:Object($.a)(Object($.a)({},I.store.getState().activeKey),{},Object(le.a)({},I.eventKey,Pa(I,I.activeKey)))}),f.instanceArray=[],f}return Object(_e.a)(he,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(f){return this.props.visible||f.visible||this.props.className!==f.className||!N()(this.props.style,f.style)}},{key:"componentDidUpdate",value:function(f){var M=this.props,E="activeKey"in M?M.activeKey:M.store.getState().activeKey[Fa(M)],G=Pa(M,E);if(G!==E)La(M.store,Fa(M),G);else if("activeKey"in f){var q=Pa(f,f.activeKey);G!==q&&La(M.store,Fa(M),G)}}},{key:"render",value:function(){var f=this,M=Object(ne.a)({},this.props);this.instanceArray=[];var E=fe()(M.prefixCls,M.className,"".concat(M.prefixCls,"-").concat(M.mode)),G={className:E,role:M.role||"menu"};M.id&&(G.id=M.id),M.focusable&&(G.tabIndex=0,G.onKeyDown=this.onKeyDown);var q=M.prefixCls,ve=M.eventKey,me=M.visible,Ae=M.level,Fe=M.mode,Ve=M.overflowedIndicator,nt=M.theme;return Ie.forEach(function(gt){return delete M[gt]}),delete M.onClick,x.createElement(Xn,Object(ne.a)({},M,{prefixCls:q,mode:Fe,tag:"ul",level:Ae,theme:nt,visible:me,overflowedIndicator:Ve},G),Object(oe.a)(M.children).map(function(gt,nn){return f.renderMenuItem(gt,nn,ve||"0-menu-")}))}}]),he}(x.Component);nr.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:ce};var gr=Object(s.b)()(nr),Er=gr,Ha=o("Kwbf");function Fr(V,ge,he){var I=V.prefixCls,f=V.motion,M=V.defaultMotions,E=M===void 0?{}:M,G=V.openAnimation,q=V.openTransitionName,ve=ge.switchingModeFromInline;if(f)return f;if(Object(H.a)(G)==="object"&&G)Object(Ha.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof G=="string")return{motionName:"".concat(I,"-open-").concat(G)};if(q)return{motionName:q};var me=E[he];return me||(ve?null:E.other)}var Br=function(V){Object(T.a)(he,V);var ge=Object(d.a)(he);function he(I){var f;Object(de.a)(this,he),f=ge.call(this,I),f.onSelect=function(G){var q=Object(ae.a)(f),ve=q.props;if(ve.selectable){var me=f.store.getState(),Ae=me.selectedKeys,Fe=G.key;ve.multiple?Ae=Ae.concat([Fe]):Ae=[Fe],"selectedKeys"in ve||f.store.setState({selectedKeys:Ae}),ve.onSelect(Object($.a)(Object($.a)({},G),{},{selectedKeys:Ae}))}},f.onClick=function(G){var q=f.getRealMenuMode(),ve=Object(ae.a)(f),me=ve.store,Ae=ve.props.onOpenChange;q!=="inline"&&!("openKeys"in f.props)&&(me.setState({openKeys:[]}),Ae([])),f.props.onClick(G)},f.onKeyDown=function(G,q){f.innerMenu.getWrappedInstance().onKeyDown(G,q)},f.onOpenChange=function(G){var q=Object(ae.a)(f),ve=q.props,me=f.store.getState().openKeys.concat(),Ae=!1,Fe=function(nt){var gt=!1;if(nt.open)gt=me.indexOf(nt.key)===-1,gt&&me.push(nt.key);else{var nn=me.indexOf(nt.key);gt=nn!==-1,gt&&me.splice(nn,1)}Ae=Ae||gt};Array.isArray(G)?G.forEach(Fe):Fe(G),Ae&&("openKeys"in f.props||f.store.setState({openKeys:me}),ve.onOpenChange(me))},f.onDeselect=function(G){var q=Object(ae.a)(f),ve=q.props;if(ve.selectable){var me=f.store.getState().selectedKeys.concat(),Ae=G.key,Fe=me.indexOf(Ae);Fe!==-1&&me.splice(Fe,1),"selectedKeys"in ve||f.store.setState({selectedKeys:me}),ve.onDeselect(Object($.a)(Object($.a)({},G),{},{selectedKeys:me}))}},f.onMouseEnter=function(G){f.restoreModeVerticalFromInline();var q=f.props.onMouseEnter;q&&q(G)},f.onTransitionEnd=function(G){var q=G.propertyName==="width"&&G.target===G.currentTarget,ve=G.target.className,me=Object.prototype.toString.call(ve)==="[object SVGAnimatedString]"?ve.animVal:ve,Ae=G.propertyName==="font-size"&&me.indexOf("anticon")>=0;(q||Ae)&&f.restoreModeVerticalFromInline()},f.setInnerMenu=function(G){f.innerMenu=G},f.isRootMenu=!0;var M=I.defaultSelectedKeys,E=I.defaultOpenKeys;return"selectedKeys"in I&&(M=I.selectedKeys||[]),"openKeys"in I&&(E=I.openKeys||[]),f.store=Object(s.c)({selectedKeys:M,openKeys:E,activeKey:{"0-menu-":Pa(I,I.activeKey)}}),f.state={switchingModeFromInline:!1,prevProps:I,inlineOpenKeys:[],store:f.store},f}return Object(_e.a)(he,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(f){var M=this.props,E=M.siderCollapsed,G=M.inlineCollapsed,q=M.onOpenChange;(!f.inlineCollapsed&&G||!f.siderCollapsed&&E)&&q([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var f=this.props.collapsedWidth,M=this.store,E=this.prevOpenKeys,G=this.getInlineCollapsed()&&(f===0||f==="0"||f==="0px");G?(this.prevOpenKeys=M.getState().openKeys.concat(),this.store.setState({openKeys:[]})):E&&(this.store.setState({openKeys:E}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var f=this.props.mode,M=this.state.switchingModeFromInline,E=this.getInlineCollapsed();return M&&E?"inline":E?"vertical":f}},{key:"getInlineCollapsed",value:function(){var f=this.props,M=f.inlineCollapsed,E=f.siderCollapsed;return E!==void 0?E:M}},{key:"restoreModeVerticalFromInline",value:function(){var f=this.state.switchingModeFromInline;f&&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 f=Object($.a)({},Object(ue.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),M=this.getRealMenuMode();return f.className+=" ".concat(f.prefixCls,"-root"),f.direction==="rtl"&&(f.className+=" ".concat(f.prefixCls,"-rtl")),f=Object($.a)(Object($.a)({},f),{},{mode:M,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Fr(this.props,this.state,M)}),delete f.openAnimation,delete f.openTransitionName,x.createElement(s.a,{store:this.store},x.createElement(Er,Object(ne.a)({},f,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(f,M){var E=M.prevProps,G=M.store,q=G.getState(),ve={},me={prevProps:f};return E.mode==="inline"&&f.mode!=="inline"&&(me.switchingModeFromInline=!0),"openKeys"in f?ve.openKeys=f.openKeys||[]:((f.inlineCollapsed&&!E.inlineCollapsed||f.siderCollapsed&&!E.siderCollapsed)&&(me.switchingModeFromInline=!0,me.inlineOpenKeys=q.openKeys,ve.openKeys=[]),(!f.inlineCollapsed&&E.inlineCollapsed||!f.siderCollapsed&&E.siderCollapsed)&&(ve.openKeys=M.inlineOpenKeys,me.inlineOpenKeys=[])),Object.keys(ve).length&&G.setState(ve),me}}]),he}(x.Component);Br.defaultProps={selectable:!0,onClick:ce,onSelect:ce,onOpenChange:ce,onDeselect:ce,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:x.createElement("span",null,"\xB7\xB7\xB7")};var sa=Br,Tn=function(V){Object(T.a)(he,V);var ge=Object(d.a)(he);function he(){var I;return Object(de.a)(this,he),I=ge.apply(this,arguments),I.onKeyDown=function(f){var M=f.keyCode;return M===m.a.ENTER?(I.onClick(f),!0):void 0},I.onMouseLeave=function(f){var M=I.props,E=M.eventKey,G=M.onItemHover,q=M.onMouseLeave;G({key:E,hover:!1}),q({key:E,domEvent:f})},I.onMouseEnter=function(f){var M=I.props,E=M.eventKey,G=M.onItemHover,q=M.onMouseEnter;G({key:E,hover:!0}),q({key:E,domEvent:f})},I.onClick=function(f){var M=I.props,E=M.eventKey,G=M.multiple,q=M.onClick,ve=M.onSelect,me=M.onDeselect,Ae=M.isSelected,Fe={key:E,keyPath:[E],item:Object(ae.a)(I),domEvent:f};q(Fe),G?Ae?me(Fe):ve(Fe):Ae||ve(Fe)},I.saveNode=function(f){I.node=f},I}return Object(_e.a)(he,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var f=this.props;f.onDestroy&&f.onDestroy(f.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 f,M=Object($.a)({},this.props),E=fe()(this.getPrefixCls(),M.className,(f={},Object(le.a)(f,this.getActiveClassName(),!M.disabled&&M.active),Object(le.a)(f,this.getSelectedClassName(),M.isSelected),Object(le.a)(f,this.getDisabledClassName(),M.disabled),f)),G=Object($.a)(Object($.a)({},M.attribute),{},{title:typeof M.title=="string"?M.title:void 0,className:E,role:M.role||"menuitem","aria-disabled":M.disabled});M.role==="option"?G=Object($.a)(Object($.a)({},G),{},{role:"option","aria-selected":M.isSelected}):(M.role===null||M.role==="none")&&(G.role="none");var q={onClick:M.disabled?null:this.onClick,onMouseLeave:M.disabled?null:this.onMouseLeave,onMouseEnter:M.disabled?null:this.onMouseEnter},ve=Object($.a)({},M.style);M.mode==="inline"&&(M.direction==="rtl"?ve.paddingRight=M.inlineIndent*M.level:ve.paddingLeft=M.inlineIndent*M.level),Ie.forEach(function(Ae){return delete M[Ae]}),delete M.direction;var me=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(me=x.createElement(this.props.itemIcon,this.props)),x.createElement("li",Object(ne.a)({},Object(ue.a)(M,["onClick","onMouseEnter","onMouseLeave","onSelect"]),G,q,{style:ve,ref:this.saveNode}),M.children,me)}}]),he}(x.Component);Tn.isMenuItem=!0,Tn.defaultProps={onSelect:ce,onMouseEnter:ce,onMouseLeave:ce,manualRef:ce};var $n=Object(s.b)(function(V,ge){var he=V.activeKey,I=V.selectedKeys,f=ge.eventKey,M=ge.subMenuKey;return{active:he[M]===f,isSelected:Array.isArray(I)?I.indexOf(f)!==-1:I===f}})(Tn),Ba=$n,Ka=function(V){Object(T.a)(he,V);var ge=Object(d.a)(he);function he(){var I;return Object(de.a)(this,he),I=ge.apply(this,arguments),I.renderInnerMenuItem=function(f){var M=I.props,E=M.renderMenuItem,G=M.index;return E(f,G,I.props.subMenuKey)},I}return Object(_e.a)(he,[{key:"render",value:function(){var f=Object(ne.a)({},this.props),M=f.className,E=M===void 0?"":M,G=f.rootPrefixCls,q="".concat(G,"-item-group-title"),ve="".concat(G,"-item-group-list"),me=f.title,Ae=f.children;return Ie.forEach(function(Fe){return delete f[Fe]}),delete f.direction,x.createElement("li",Object(ne.a)({},f,{onClick:function(Ve){return Ve.stopPropagation()},className:"".concat(E," ").concat(G,"-item-group")}),x.createElement("div",{className:q,title:typeof me=="string"?me:void 0},me),x.createElement("ul",{className:ve},x.Children.map(Ae,this.renderInnerMenuItem)))}}]),he}(x.Component);Ka.isMenuItemGroup=!0,Ka.defaultProps={disabled:!0};var cr=Ka,Ta=function(ge){var he=ge.className,I=ge.rootPrefixCls,f=ge.style;return x.createElement("li",{className:"".concat(he," ").concat(I,"-item-divider"),style:f})};Ta.defaultProps={disabled:!0,className:"",style:{}};var Qa=Ta,Or=sa,Ga=o("eDIo");function Lr(V,ge){var he=V.prefixCls,I=V.editable,f=V.locale,M=V.style;return!I||I.showAdd===!1?null:x.createElement("button",{ref:ge,type:"button",className:"".concat(he,"-nav-add"),style:M,"aria-label":(f==null?void 0:f.addAriaLabel)||"Add tab",onClick:function(G){I.onEdit("add",{event:G})}},I.addIcon||"+")}var ar=x.forwardRef(Lr);function br(V,ge){var he=V.prefixCls,I=V.id,f=V.tabs,M=V.locale,E=V.mobile,G=V.moreIcon,q=G===void 0?"More":G,ve=V.moreTransitionName,me=V.style,Ae=V.className,Fe=V.editable,Ve=V.tabBarGutter,nt=V.rtl,gt=V.onTabClick,nn=Object(x.useState)(!1),Gt=Object(J.a)(nn,2),Cn=Gt[0],On=Gt[1],Pn=Object(x.useState)(null),Rn=Object(J.a)(Pn,2),Sn=Rn[0],Yn=Rn[1],Fn="".concat(I,"-more-popup"),xa="".concat(he,"-dropdown"),Bn=Sn!==null?"".concat(Fn,"-").concat(Sn):null,Yt=M==null?void 0:M.dropdownAriaLabel,Jt=x.createElement(Or,{onClick:function(va){var pa=va.key,ja=va.domEvent;gt(pa,ja),On(!1)},id:Fn,tabIndex:-1,role:"listbox","aria-activedescendant":Bn,selectedKeys:[Sn],"aria-label":Yt!==void 0?Yt:"expanded dropdown"},f.map(function(ra){return x.createElement(Ba,{key:ra.key,id:"".concat(Fn,"-").concat(ra.key),role:"option","aria-controls":I&&"".concat(I,"-panel-").concat(ra.key),disabled:ra.disabled},ra.tab)}));function Wn(ra){for(var va=f.filter(function(sr){return!sr.disabled}),pa=va.findIndex(function(sr){return sr.key===Sn})||0,ja=va.length,Va=0;Vaea?(Zn=Jt,Fn.current="x"):(Zn=Wn,Fn.current="y");var _a=Date.now();_a-Sn.current>100&&(Yn.current=!1),(ge(-Zn,-Zn)||Yn.current)&&(Yt.preventDefault(),Yn.current=!0),Sn.current=_a}var Bn=Object(x.useRef)(null);Bn.current={onTouchStart:On,onTouchMove:Pn,onTouchEnd:Rn,onWheel:xa},x.useEffect(function(){function Yt(It){Bn.current.onTouchStart(It)}function Jt(It){Bn.current.onTouchMove(It)}function Wn(It){Bn.current.onTouchEnd(It)}function Zn(It){Bn.current.onWheel(It)}return document.addEventListener("touchmove",Jt,{passive:!1}),document.addEventListener("touchend",Wn,{passive:!1}),V.current.addEventListener("touchstart",Yt,{passive:!1}),V.current.addEventListener("wheel",Zn),function(){document.removeEventListener("touchmove",Jt),document.removeEventListener("touchend",Wn)}},[])}function Rr(){var V=Object(x.useRef)(new Map);function ge(I){return V.current.has(I)||V.current.set(I,x.createRef()),V.current.get(I)}function he(I){V.current.delete(I)}return[ge,he]}function Jr(V,ge){var he=x.useRef(V),I=x.useState({}),f=Object(J.a)(I,2),M=f[1];function E(G){var q=typeof G=="function"?G(he.current):G;q!==he.current&&ge(q,he.current),he.current=q,M({})}return[he.current,E]}var uo=function(ge){var he=ge.position,I=ge.prefixCls,f=ge.extra;if(!f)return null;var M,E=f;return he==="right"&&(M=E.right||!E.left&&E||null),he==="left"&&(M=E.left||null),M?x.createElement("div",{className:"".concat(I,"-extra-content")},M):null};function co(V,ge){var he,I=x.useContext(Sr),f=I.prefixCls,M=I.tabs,E=V.className,G=V.style,q=V.id,ve=V.animated,me=V.activeKey,Ae=V.rtl,Fe=V.extra,Ve=V.editable,nt=V.locale,gt=V.tabPosition,nn=V.tabBarGutter,Gt=V.children,Cn=V.onTabClick,On=V.onTabScroll,Pn=Object(x.useRef)(),Rn=Object(x.useRef)(),Sn=Object(x.useRef)(),Yn=Object(x.useRef)(),Fn=Rr(),xa=Object(J.a)(Fn,2),Bn=xa[0],Yt=xa[1],Jt=gt==="top"||gt==="bottom",Wn=Jr(0,function(da,Qn){Jt&&On&&On({direction:da>Qn?"left":"right"})}),Zn=Object(J.a)(Wn,2),It=Zn[0],ea=Zn[1],_a=Jr(0,function(da,Qn){!Jt&&On&&On({direction:da>Qn?"top":"bottom"})}),ra=Object(J.a)(_a,2),va=ra[0],pa=ra[1],ja=Object(x.useState)(0),Va=Object(J.a)(ja,2),Ma=Va[0],sr=Va[1],Dr=Object(x.useState)(0),dr=Object(J.a)(Dr,2),Xa=dr[0],Ca=dr[1],ga=Object(x.useState)(0),Ra=Object(J.a)(ga,2),Oa=Ra[0],Pr=Ra[1],Vr=Object(x.useState)(0),Xr=Object(J.a)(Vr,2),ma=Xr[0],kr=Xr[1],Yr=Object(x.useState)(null),ba=Object(J.a)(Yr,2),fa=ba[0],Ya=ba[1],Oi=Object(x.useState)(null),ti=Object(J.a)(Oi,2),Zr=ti[0],ho=ti[1],jo=Object(x.useState)(0),ni=Object(J.a)(jo,2),No=ni[0],Ji=ni[1],Vi=Object(x.useState)(0),Si=Object(J.a)(Vi,2),ai=Si[0],ri=Si[1],po=g(new Map),mo=Object(J.a)(po,2),Xi=mo[0],Lo=mo[1],_o=S(M,Xi,Ma),vo="".concat(f,"-nav-operations-hidden"),go=0,wr=0;Jt?Ae?(go=0,wr=Math.max(0,Ma-fa)):(go=Math.min(0,fa-Ma),wr=0):(go=Math.min(0,Zr-Xa),wr=0);function no(da){return dawr?[wr,!1]:[da,!0]}var qr=Object(x.useRef)(),Oo=Object(x.useState)(),ao=Object(J.a)(Oo,2),Io=ao[0],oi=ao[1];function Uo(){oi(Date.now())}function ii(){window.clearTimeout(qr.current)}Ir(Pn,function(da,Qn){var Za=!1;function hr(Eo,zr){Eo(function(Ro){var eo=no(Ro+zr),qa=Object(J.a)(eo,2),Bo=qa[0],li=qa[1];return Za=li,Bo})}if(Jt){if(fa>=Ma)return Za;hr(ea,da)}else{if(Zr>=Xa)return Za;hr(pa,Qn)}return ii(),Uo(),Za}),Object(x.useEffect)(function(){return ii(),Io&&(qr.current=window.setTimeout(function(){oi(0)},100)),ii},[Io]);function $r(){var da=arguments.length>0&&arguments[0]!==void 0?arguments[0]:me,Qn=_o.get(da);if(!Qn)return;if(Jt){var Za=It;Ae?Qn.rightIt+fa&&(Za=Qn.right+Qn.width-fa):Qn.left<-It?Za=-Qn.left:Qn.left+Qn.width>-It+fa&&(Za=-(Qn.left+Qn.width-fa)),pa(0),ea(no(Za)[0])}else{var hr=va;Qn.top<-va?hr=-Qn.top:Qn.top+Qn.height>-va+Zr&&(hr=-(Qn.top+Qn.height-Zr)),ea(0),pa(no(hr)[0])}}var ro=Z(_o,{width:fa,height:Zr,left:It,top:va},{width:Oa,height:ma},{width:No,height:ai},Object($.a)(Object($.a)({},V),{},{tabs:M})),Mi=Object(J.a)(ro,2),Yi=Mi[0],Zi=Mi[1],qi=M.map(function(da){var Qn=da.key;return x.createElement(p,{id:q,prefixCls:f,key:Qn,rtl:Ae,tab:da,closable:da.closable,editable:Ve,active:Qn===me,tabPosition:gt,tabBarGutter:nn,renderWrapper:Gt,removeAriaLabel:nt==null?void 0:nt.removeAriaLabel,ref:Bn(Qn),onClick:function(hr){Cn(Qn,hr)},onRemove:function(){Yt(Qn)},onFocus:function(){$r(Qn),Uo(),Ae||(Pn.current.scrollLeft=0),Pn.current.scrollTop=0}})}),si=u(function(){var da,Qn,Za,hr,Eo,zr,Ro,eo,qa,Bo=((da=Pn.current)===null||da===void 0?void 0:da.offsetWidth)||0,li=((Qn=Pn.current)===null||Qn===void 0?void 0:Qn.offsetHeight)||0,ui=((Za=Yn.current)===null||Za===void 0?void 0:Za.offsetWidth)||0,pr=((hr=Yn.current)===null||hr===void 0?void 0:hr.offsetHeight)||0,la=((Eo=Sn.current)===null||Eo===void 0?void 0:Eo.offsetWidth)||0,jr=((zr=Sn.current)===null||zr===void 0?void 0:zr.offsetHeight)||0;Ya(Bo),ho(li),Ji(ui),ri(pr);var Hr=(((Ro=Rn.current)===null||Ro===void 0?void 0:Ro.offsetWidth)||0)-ui,Qr=(((eo=Rn.current)===null||eo===void 0?void 0:eo.offsetHeight)||0)-pr;sr(Hr),Ca(Qr);var ci=(qa=Sn.current)===null||qa===void 0?void 0:qa.className.includes(vo);Pr(Hr-(ci?0:la)),kr(Qr-(ci?0:jr)),Lo(function(){var Ko=new Map;return M.forEach(function(Ti){var ji=Ti.key,io=Bn(ji).current;io&&Ko.set(ji,{width:io.offsetWidth,height:io.offsetHeight,left:io.offsetLeft,top:io.offsetTop})}),Ko})}),$i=M.slice(0,Yi),fr=M.slice(Zi+1),Ia=[].concat(Object(L.a)($i),Object(L.a)(fr)),rr=Object(x.useState)(),Ua=Object(J.a)(rr,2),So=Ua[0],es=Ua[1],Tr=_o.get(me),Ri=Object(x.useRef)();function Di(){_.a.cancel(Ri.current)}Object(x.useEffect)(function(){var da={};return Tr&&(Jt?(Ae?da.right=Tr.right:da.left=Tr.left,da.width=Tr.width):(da.top=Tr.top,da.height=Tr.height)),Di(),Ri.current=_()(function(){es(da)}),Di},[Tr,Jt,Ae]),Object(x.useEffect)(function(){$r()},[me,Tr,_o,Jt]),Object(x.useEffect)(function(){si()},[Ae,nn,me,M.map(function(da){return da.key}).join("_")]);var Pi=!!Ia.length,oo="".concat(f,"-nav-wrap"),ko,Mo,wi,Fo;return Jt?Ae?(Mo=It>0,ko=It+faIe&&(Y="other")),F&&(N.filename=F),Object(L.useEffect)(function(){var it,xt,vt=(it=document.cookie)===null||it===void 0||((xt=it.replace(/\s/g,""))===null||xt===void 0)?void 0:xt.split(";");vt==null||vt.map(function(Ut){var Ht=Ut.split("=");Ht[0]==="_educoder_session"&&Ce(Ht[1])})},[]),Object(L.useEffect)(function(){Y==="office"&&qe()},[Y,s]);var qe=function(){var it=Object(D.a)(z.a.mark(function xt(){var vt,Ut,Ht;return z.a.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return console.log("data:",s),vt=s,s.startsWith("http")||(vt=location.origin+vt),Ut=new URL(vt).pathname.split("/").pop(),Le.next=6,Object(b.U)({attachment_id:Ut});case 6:Ht=Le.sent,ce(Ht);case 8:case"end":return Le.stop()}},xt)}));return function(){return it.apply(this,arguments)}}(),Je=function(){if(s.startsWith("http")||s.startsWith("blob:")){$e();return}Object(m.x)(F||"educoder",s,F)},$e=function(){Object(m.v)(F||"educoder",decodeURIComponent(s))};return C.a.createElement("div",{style:Object(x.a)({},w||{}),className:"".concat(ee&&O.a.bgBlack," ").concat(Y?O.a.wrp:"hide")},j&&C.a.createElement("div",{className:O.a.close,ref:Ge},!!te&&C.a.createElement($.a,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:function(){return Ge.current}},C.a.createElement("span",{onClick:function(){K(),te()}},C.a.createElement("i",{className:"icon-yulanpizhu"}))),!B&&C.a.createElement($.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return Ge.current}},C.a.createElement("span",{onClick:$e},C.a.createElement("i",{className:"icon-quxiaozhiding"}))),C.a.createElement($.a,{title:"\u5173\u95ED",getPopupContainer:function(){return Ge.current}},C.a.createElement("span",{className:"",onClick:K},C.a.createElement("i",{className:"icon-guanbi1"})))),C.a.createElement("div",{className:"".concat(O.a[H]," ").concat(H," ").concat(O.a.monaco," ").concat(Y==="txt"?"show":"hide")},Y==="txt"&&C.a.createElement(g.b,N)),Y==="audio"&&C.a.createElement("audio",{src:"".concat(((U=s)===null||U===void 0?void 0:U.indexOf("http://"))>-1||((Z=s)===null||Z===void 0?void 0:Z.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(s),autoPlay:!0}),Y==="video"&&C.a.createElement(C.a.Fragment,null,((ne=s)===null||ne===void 0?void 0:ne.indexOf("http"))>-1?C.a.createElement("video",{controls:!0,src:"".concat(s),autoPlay:!0}):C.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(s),autoPlay:!0})),Y==="office"&&P&&C.a.createElement("iframe",{src:"".concat(R,"/office.html?key=").concat(P.key,"&url=").concat(Q+P.url,"&callbackUrl=").concat(Q+P.callbackUrl,"&fileType=").concat(P.fileType,"&title=").concat(P.title,"&model=").concat(T,"&officeServer=").concat(p.a.OFFICE_SERVER,"&disabledDownload=").concat(!!B)}),(Y==="xlsx"||Y==="doc"||Y==="pptx"||Y==="docx")&&C.a.createElement("iframe",{src:"/react/build/office.html?key=".concat(ye.key,"&url=").concat(p.a.API_SERVER+ye.url,"&callbackUrl=").concat(p.a.API_SERVER+ye.callbackUrl,"&fileType=").concat(ye.fileType,"&title=").concat(ye.title,"&model=").concat(ye.model)}),Y==="html"&&C.a.createElement("iframe",{src:s+"&disposition=inline"}),Y==="pdf"&&C.a.createElement("embed",{className:O.a.embed,src:s}),Y==="image"&&C.a.createElement("img",{src:"".concat(((de=s)===null||de===void 0?void 0:de.indexOf("http://"))>-1||((_e=s)===null||_e===void 0?void 0:_e.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(s)}),Y==="other"&&C.a.createElement("div",null,C.a.createElement(J.a,{type:"primary",size:"large",onClick:Je},C.a.createElement(u.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),Y==="download"&&C.a.createElement(J.a,{type:"primary",size:"large",onClick:Je},C.a.createElement(u.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(Te,k,o){},pmY6:function(Te,k,o){"use strict";o.d(k,"g",function(){return x}),o.d(k,"f",function(){return D}),o.d(k,"e",function(){return fe}),o.d(k,"h",function(){return oe}),o.d(k,"b",function(){return z}),o.d(k,"a",function(){return L}),o.d(k,"d",function(){return C}),o.d(k,"c",function(){return _});var le=!1,J="__is_disposable_tracked__";function Re(O){if(!le)return;if(O&&O!==L.None)try{O[J]=!0}catch(u){}}function $(O){if(!le)return O;var u=new Error("Potentially leaked disposable").stack;return setTimeout(function(){O[J]||console.log(u)},3e3),O}function x(O){return typeof O.dispose=="function"&&O.dispose.length===0}function D(O){return Array.isArray(O)?(O.forEach(function(u){u&&(Re(u),u.dispose())}),[]):O?(Re(O),O.dispose(),O):void 0}function fe(){for(var O=[],u=0;u=Re.length?{done:!0}:{done:!1,value:Re[D++]}},e:function(_){throw _},f:fe}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var oe=!0,z=!1,L;return{s:function(){x=Re[Symbol.iterator]()},n:function(){var _=x.next();return oe=_.done,_},e:function(_){z=!0,L=_},f:function(){try{!oe&&x.return!=null&&x.return()}finally{if(z)throw L}}}}},rHrb:function(Te,k,o){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.CopyToClipboard=void 0;var le=Re(o("q1tI")),J=Re(o("+QRC"));function Re(y){return y&&y.__esModule?y:{default:y}}function $(y){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$=function(U){return typeof U}:$=function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},$(y)}function x(y,S){var U=Object.keys(y);if(Object.getOwnPropertySymbols){var Z=Object.getOwnPropertySymbols(y);S&&(Z=Z.filter(function(ne){return Object.getOwnPropertyDescriptor(y,ne).enumerable})),U.push.apply(U,Z)}return U}function D(y){for(var S=1;S=0)continue;if(!Object.prototype.propertyIsEnumerable.call(y,Z))continue;U[Z]=y[Z]}}return U}function oe(y,S){if(y==null)return{};var U={},Z=Object.keys(y),ne,de;for(de=0;de=0)continue;U[ne]=y[ne]}return U}function z(y,S){if(!(y instanceof S))throw new TypeError("Cannot call a class as a function")}function L(y,S){for(var U=0;U=7){Y.b.info("\u8BF7\u8F93\u51656\u4F4D\u5F00\u53D1\u9879\u76EE\u9080\u8BF7\u7801\uFF01");return}lt(gn.target.value)}})),u.a.createElement("div",{className:"mt10 font14"},u.a.createElement("span",null,"\u8EAB\u4EFD\uFF1A"),u.a.createElement(N.a.Group,{value:At,onChange:function(gn){return kt(gn.target.value)}},u.a.createElement(N.a,{value:j.Manager},"\u7BA1\u7406\u4EBA\u5458"),u.a.createElement(N.a,{value:j.Developer},"\u5F00\u53D1\u4EBA\u5458"),u.a.createElement(N.a,{value:j.Reporter},"\u62A5\u544A\u4EBA\u5458"))))))},ee=K,B=o("Jky8"),te=o("6Fuo"),ye=o.n(te),Pe=o("NLgs"),xe;(function(Ue){Ue.Projects="projects",Ue.Shixuns="shixuns",Ue.Classrooms="classrooms"})(xe||(xe={}));var Se;(function(Ue){Ue.Classrooms="classrooms",Ue.Shixuns="shixuns",Ue.Paths="paths",Ue.Projects="projects",Ue.Videos="videos",Ue.Topics="topics"})(Se||(Se={}));var X=function(ke){var Ke,He,Ze,Be,Xe,ut,lt,Ct=ke.homePage,Et=ke.user,At=ke.globalSetting,kt=ke.loading,St=ke.dispatch,Wt=ke.location,fn=Object(x.a)(ke,["homePage","user","globalSetting","loading","dispatch","location"]),vn=Object(O.useState)(),An=Object($.a)(vn,2),zn=An[0],sn=An[1],gn=Object(O.useState)(),Kt=Object($.a)(gn,2),hn=Kt[0],pn=Kt[1],Rt=function(tt){var En;if(!Object(Pe.e)(St))return;if(tt===xe.Projects&&!((En=Et.userInfo)!==null&&En!==void 0&&En.email)){Y.b.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}tt===xe.Classrooms?sn(!0):tt===xe.Projects&&pn(!0)},pt=function(tt,En){var Gn;if(!Object(Pe.e)(St))return;if(En===xe.Projects&&!((Gn=Et.userInfo)!==null&&Gn!==void 0&&Gn.email)){Y.b.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}if(En===xe.Shixuns&&!Object(Pe.c)())return;tt&&(window.location.href=tt)},ot=(Ke=(((He=At.setting)===null||He===void 0?void 0:He.navbar)||[]).find(function(zt){return zt.link==="/".concat(Se.Classrooms)}))===null||Ke===void 0?void 0:Ke.hidden,Mt=(Ze=(((Be=At.setting)===null||Be===void 0?void 0:Be.navbar)||[]).find(function(zt){return zt.link==="/".concat(Se.Shixuns)}))===null||Ze===void 0?void 0:Ze.hidden,Ft=(Xe=(((ut=At.setting)===null||ut===void 0?void 0:ut.navbar)||[]).find(function(zt){return zt.link==="/".concat(Se.Paths)}))===null||Xe===void 0?void 0:Xe.hidden;if(At!=null&&(lt=At.setting)!==null&<!==void 0&<.is_local){var xn;Et!=null&&(xn=Et.userInfo)!==null&&xn!==void 0&&xn.is_shixun_marker||(Mt=!0)}var wn=function(tt){var En,Gn,ta,$t,Tt,Nn,ua,Me,Oe,at,mt,dt,Nt,Dt;return u.a.createElement(u.a.Fragment,null,u.a.createElement(_e.a,{justify:"space-around",className:"pt5 pb5"},u.a.createElement(T.a,{className:ye.a.joinCol},((En=Et.userInfo)===null||En===void 0?void 0:En.user_identity)!=="\u5B66\u751F"&&!ot&&u.a.createElement(s.a.Item,tt,u.a.createElement("a",{onClick:function(){return pt("/classrooms/new")}},(Gn=Et.userInfo)!==null&&Gn!==void 0&&Gn.main_site?"\u65B0\u5EFA\u6559\u5B66\u8BFE\u5802":"\u65B0\u5EFA\u8BFE\u5802")),!Mt&&u.a.createElement(s.a.Item,tt,u.a.createElement("a",{onClick:function(){return pt("/shixuns/new",xe.Shixuns)}},"\u65B0\u5EFA\u5B9E\u8DF5\u9879\u76EE")),(((ta=Et.userInfo)===null||ta===void 0?void 0:ta.main_site)&&(($t=Et.navigationInfo)===null||$t===void 0?void 0:$t.top)||!((Tt=Et.userInfo)!==null&&Tt!==void 0&&Tt.main_site)&&((Nn=Et.navigationInfo)===null||Nn===void 0?void 0:Nn.top)&&!Ft&&(((ua=Et.userInfo)===null||ua===void 0?void 0:ua.admin)||((Me=Et.userInfo)===null||Me===void 0?void 0:Me.is_teacher)||((Oe=Et.userInfo)===null||Oe===void 0?void 0:Oe.business)))&&u.a.createElement(s.a.Item,tt,u.a.createElement("a",{onClick:function(){return pt("/paths/new")}},"\u65B0\u5EFA\u5B9E\u8DF5\u8BFE\u7A0B")),!(At!=null&&(at=At.setting)!==null&&at!==void 0&&at.is_local)&&((mt=Et.userInfo)===null||mt===void 0?void 0:mt.main_site)&&u.a.createElement(s.a.Item,tt,u.a.createElement("a",{onClick:function(){var ht,Pt;return pt("".concat((ht=Et.navigationInfo)===null||ht===void 0||((Pt=ht.top)===null||Pt===void 0)?void 0:Pt.old_url,"/projects/deposit/new"),xe.Projects)}},"\u65B0\u5EFA\u5F00\u53D1\u9879\u76EE"))),u.a.createElement(T.a,null,u.a.createElement("div",{className:ye.a.joinBoard})),u.a.createElement(T.a,{className:ye.a.joinCol},!ot&&u.a.createElement(s.a.Item,tt,u.a.createElement("a",{onClick:function(){return Rt(xe.Classrooms)}},(dt=Et.userInfo)!==null&&dt!==void 0&&dt.main_site?"\u52A0\u5165\u6559\u5B66\u8BFE\u5802":"\u52A0\u5165\u8BFE\u5802")),((Nt=Et.userInfo)===null||Nt===void 0?void 0:Nt.main_site)&&!(At!=null&&(Dt=At.setting)!==null&&Dt!==void 0&&Dt.is_local)&&u.a.createElement(s.a.Item,tt,u.a.createElement("a",{onClick:function(){return Rt(xe.Projects)}},"\u52A0\u5165\u5F00\u53D1\u9879\u76EE")))))};return u.a.createElement("section",null,u.a.createElement(ne.a,{overlay:u.a.createElement(s.a,{className:"".concat(ye.a.rightMenu," ").concat(ye.a.joinMenu," mt10")},u.a.createElement(wn,null)),placement:"bottomRight"},u.a.createElement("span",{style:{lineHeight:"inherit"},className:"iconfont icon-tianjiafangda c-white font18 current ml15 mr15"})),u.a.createElement(B.a,{visible:zn,onCancel:function(){return sn(!1)}}),u.a.createElement(ee,{visible:hn,onCancel:function(){return pn(!1)}}))},re=Object(b.a)(function(Ue){var ke=Ue.homePage,Ke=Ue.loading,He=Ue.user,Ze=Ue.globalSetting;return{homePage:ke,user:He,globalSetting:Ze,loading:Ke.models.index}})(X),be=o("vToQ"),ie=o.n(be),Ce=o("xKgJ"),v=o("jb+D"),W=o("m3rI"),P=function(ke){var Ke,He=RegExp("(^| )"+ke+"=([^;]+)(;|$)");return(Ke=document.cookie.match(He))?decodeURIComponent(Ke[2]):null},ce=function(ke){var Ke=new Date;Ke.setTime(Ke.getTime()-1);var He=P(ke);He!=null&&(document.cookie=ke+"="+He+";expires="+Ke.toGMTString())},R;(function(Ue){Ue.Classrooms="classrooms",Ue.Shixuns="shixuns",Ue.Paths="paths",Ue.Projects="projects",Ue.Videos="videos",Ue.Topics="topics"})(R||(R={}));var Q=function(ke){var Ke,He,Ze,Be,Xe,ut,lt,Ct,Et,At,kt,St=ke.homePage,Wt=ke.user,fn=ke.globalSetting,vn=ke.loading,An=ke.dispatch,zn=ke.shixunHomeworks,sn=ke.location,gn=ke.payload,Kt=gn===void 0?{}:gn,hn=Object(x.a)(ke,["homePage","user","globalSetting","loading","dispatch","shixunHomeworks","location","payload"]),pn=(Ke=(((He=fn.setting)===null||He===void 0?void 0:He.navbar)||[]).find(function(zt){return zt.link==="/".concat(R.Classrooms)}))===null||Ke===void 0?void 0:Ke.hidden,Rt=(Ze=(((Be=fn.setting)===null||Be===void 0?void 0:Be.navbar)||[]).find(function(zt){return zt.link==="/".concat(R.Shixuns)}))===null||Ze===void 0?void 0:Ze.hidden,pt=(Xe=(((ut=fn.setting)===null||ut===void 0?void 0:ut.navbar)||[]).find(function(zt){return zt.link==="/".concat(R.Paths)}))===null||Xe===void 0?void 0:Xe.hidden,ot=((lt=Wt.userInfo)===null||lt===void 0?void 0:lt.admin)||((Ct=Wt.userInfo)===null||Ct===void 0?void 0:Ct.business)||((Et=Wt.userInfo)===null||Et===void 0?void 0:Et.is_shixun_marker)||((At=Wt.userInfo)===null||At===void 0?void 0:At.is_teacher)||((kt=Wt.userInfo)===null||kt===void 0?void 0:kt.user_identity)!=="\u5B66\u751F",Mt=function(){if(Object(w.p)())return u.a.createElement(s.a,{className:"".concat(ie.a.rightMenu," ").concat(ie.a.menuWrap)},u.a.createElement(s.a.Item,null,u.a.createElement(m.a,{to:"/account/profile"},"\u8D26\u53F7\u7BA1\u7406")));var tt,En,Gn,ta,$t,Tt,Nn,ua,Me,Oe,at,mt,dt,Nt,Dt,Ye,ht,Pt,Xt,_t,Zt,Ln,qt;return u.a.createElement(s.a,{className:"".concat(ie.a.rightMenu," ").concat(ie.a.menuWrap)},u.a.createElement(s.a.Item,null,u.a.createElement(m.a,{to:"/users/".concat((tt=Wt.userInfo)===null||tt===void 0?void 0:tt.login,"/classrooms")},"\u6211\u7684\u4E2A\u4EBA\u4E3B\u9875")),!pn&&u.a.createElement(s.a.Item,null,u.a.createElement(m.a,{to:"/users/".concat((En=Wt.userInfo)===null||En===void 0?void 0:En.login,"/classrooms")},(Gn=Wt.userInfo)!==null&&Gn!==void 0&&Gn.main_site?"\u6211\u7684\u6559\u5B66\u8BFE\u5802":"\u6211\u7684\u8BFE\u5802")),!Rt&&u.a.createElement(s.a.Item,null,u.a.createElement(m.a,{to:"/users/".concat((ta=Wt.userInfo)===null||ta===void 0?void 0:ta.login,"/shixuns")},"\u6211\u7684\u5B9E\u8DF5\u9879\u76EE")),!pt&&u.a.createElement(s.a.Item,null,u.a.createElement(m.a,{to:"/users/".concat(($t=Wt.userInfo)===null||$t===void 0?void 0:$t.login,"/paths")},(Tt=Wt.userInfo)!==null&&Tt!==void 0&&Tt.main_site?"\u6211\u7684\u5B9E\u8DF5\u8BFE\u7A0B":"\u6211\u7684\u8BFE\u7A0B")),((Nn=Wt.userInfo)===null||Nn===void 0?void 0:Nn.main_site)&&!((ua=fn.setting)!==null&&ua!==void 0&&ua.is_local)&&u.a.createElement(s.a.Item,null,u.a.createElement(m.a,{to:"/users/".concat((Me=Wt.userInfo)===null||Me===void 0?void 0:Me.login,"/projects")},"\u6211\u7684\u5F00\u53D1\u9879\u76EE")),u.a.createElement(s.a.Item,null,u.a.createElement(m.a,{to:"/users/".concat((Oe=Wt.userInfo)===null||Oe===void 0?void 0:Oe.login,"/teach-group")},"\u6211\u7684\u6559\u7814\u56E2\u961F")),u.a.createElement(s.a.Item,null,u.a.createElement(m.a,{to:"/users/".concat((at=Wt.userInfo)===null||at===void 0?void 0:at.login,"/vspaces")},"\u6211\u7684\u865A\u62DF\u793E\u533A")),u.a.createElement(s.a.Item,null,u.a.createElement("a",{onClick:function(){if(!Object(Pe.e)(An))return;b.d.push("/problemset")}},"\u8BD5\u9898\u5E93")),ot&&u.a.createElement(s.a.Item,null,u.a.createElement("a",{onClick:function(){if(!Object(Pe.e)(An))return;b.d.push("/paperlibrary")}},"\u8BD5\u5377\u5E93")),((mt=Wt.navigationInfo)===null||mt===void 0||((dt=mt.top)===null||dt===void 0)?void 0:dt.customer_management_url)&&u.a.createElement(s.a.Item,null,u.a.createElement("a",{href:(Nt=Wt.navigationInfo)===null||Nt===void 0||((Dt=Nt.top)===null||Dt===void 0)?void 0:Dt.customer_management_url},"\u5BA2\u6237\u7BA1\u7406")),((Ye=Wt.navigationInfo)===null||Ye===void 0||((ht=Ye.top)===null||ht===void 0)?void 0:ht.college_identifier)&&u.a.createElement(s.a.Item,null,u.a.createElement(m.a,{to:"/colleges/".concat((Pt=Wt.navigationInfo)===null||Pt===void 0||((Xt=Pt.top)===null||Xt===void 0)?void 0:Xt.college_identifier,"/statistics")},"\u5B66\u9662\u7EDF\u8BA1")),((_t=Wt.navigationInfo)===null||_t===void 0||((Zt=_t.top)===null||Zt===void 0)?void 0:Zt.laboratory_admin_url)&&u.a.createElement(s.a.Item,null,u.a.createElement("a",{href:(Ln=Wt.navigationInfo)===null||Ln===void 0||((qt=Ln.top)===null||qt===void 0)?void 0:qt.laboratory_admin_url},"\u540E\u53F0\u7BA1\u7406")),u.a.createElement(s.a.Item,null,u.a.createElement(m.a,{onClick:function(){localStorage.getItem("Noviceguide")==="0"||An({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:2,href:"/classrooms",text:u.a.createElement("div",null,"OK\uFF0C\u63A5\u4E0B\u6765\uFF0C\u8BA9\u6211\u4EEC\u5F00\u59CB\u65B0\u5EFA\u3010\u6559\u5B66\u8BFE\u5802\u3011\uFF0C\u8BF7\u60A8\u627E\u5230\u95EA\u5149\u6846\u5E76\u70B9\u51FB \u201C\u6559\u5B66\u8BFE\u5802\u201D\u3002")}})},to:"/account/profile"},"\u8D26\u53F7\u7BA1\u7406")),u.a.createElement(s.a.Item,{className:ie.a.exit},u.a.createElement("a",{onClick:Object(Re.a)(_.a.mark(function Mn(){var un;return _.a.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:return wt.next=2,Object(v.c)({});case 2:un=wt.sent,(un==null?void 0:un.status)===1&&(An({type:"user/getUserInfo",payload:Object(D.a)({},Kt)}),An({type:"user/getNavigationInfo",payload:Object(D.a)({},Kt)}),ce("autologin_trustie"),ce("_educoder_session"),localStorage.removeItem("isfirst"),localStorage.removeItem("SystemUpdateadvtime"),localStorage.removeItem("item"),localStorage.removeItem("iscreate"),Y.b.success(un==null?void 0:un.message),b.d.replace("/"));case 4:case"end":return wt.stop()}},Mn)}))},"\u9000\u51FA")))};if(Object(Ce.p)()){var Ft,xn;return u.a.createElement(ne.a,{className:"".concat(ie.a.height67," pr25"),overlay:Mt,placement:"bottomRight"},u.a.createElement("section",null,u.a.createElement("aside",null,u.a.createElement("div",{className:zn.actionTabs.type===1?ie.a.classromediv:""},u.a.createElement("img",{className:"".concat(ie.a.userPic," current ml15"),src:"".concat(W.a===null||W.a===void 0?void 0:W.a.IMG_SERVER,"/images/").concat((Ft=Wt.userInfo)===null||Ft===void 0?void 0:Ft.image_url),alt:"",onClick:function(){var tt;return b.d.push(Object(w.p)()?"/account/profile":"/users/".concat((tt=Wt.userInfo)===null||tt===void 0?void 0:tt.login,"/classrooms"))}}),Object(w.p)()&&u.a.createElement("span",{className:"ml10 font16"},(xn=Wt.userInfo)===null||xn===void 0?void 0:xn.username)))))}else{var wn;return u.a.createElement("div",{className:"font15 mr15 ".concat(fn.isIlearning?ie.a.login:"")},u.a.createElement("span",{className:"ml10 mr5 current c-white",onClick:function(){An({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}})}},"\u767B\u5F55"),!((wn=fn.setting)!==null&&wn!==void 0&&wn.close_register)&&u.a.createElement(u.a.Fragment,null,u.a.createElement("span",{className:"ml5 mr5"},"|"),u.a.createElement(m.a,{to:"/user/register",className:"ml5 current c-white pr25"},"\u6CE8\u518C")))}},Ee=Object(b.a)(function(Ue){var ke=Ue.homePage,Ke=Ue.loading,He=Ue.user,Ze=Ue.globalSetting,Be=Ue.shixunHomeworks;return{homePage:ke,user:He,globalSetting:Ze,shixunHomeworks:Be,loading:Ke.models.index}})(Q),De=o("+L6B"),Ie=o("2/Rp"),Ge=o("Cs+z"),qe=o.n(Ge),Je=["/","/classrooms","/account/profile","/account/profile/edit","/classrooms/new"],$e=function(ke){var Ke=ke.homePage,He=ke.user,Ze=ke.globalSetting,Be=ke.loading,Xe=ke.dispatch,ut=ke.location,lt=ke.text,Ct=ke.shixunHomeworks,Et=ke.payload,At=Et===void 0?{}:Et,kt=Object(x.a)(ke,["homePage","user","globalSetting","loading","dispatch","location","text","shixunHomeworks","payload"]),St=Object(O.useState)("none"),Wt=Object($.a)(St,2),fn=Wt[0],vn=Wt[1];return Object(O.useEffect)(function(){Ct.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"&&vn("flex")},[Ct.actionTabs.key]),Object(O.useEffect)(function(){Ct.actionTabs.key==="\u9690\u85CF"&&(vn("none"),localStorage.setItem("Noviceguide","0"))},[Ct.actionTabs.key]),u.a.createElement("div",{style:{display:fn,background:"#fff",width:"100%",height:"200px",position:"fixed",bottom:"0px",boxShadow:"0px -4px 6px 0px rgba(204, 204, 204, 0.2)",zIndex:"999"}},u.a.createElement("div",{style:{margin:"0 auto",width:"1200px"}},u.a.createElement("img",{src:qe.a,style:{position:"absolute",top:"-32px"}}),u.a.createElement("div",{style:{marginLeft:"151px",marginTop:"40px",fontSize:"18px",color:"#333333"}},Ct.actionTabs.text),Ct.actionTabs.type===9?u.a.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},u.a.createElement(Ie.a,{type:"primary",onClick:function(){localStorage.setItem("Noviceguide","0"),vn("none"),Xe({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},ghost:!0,style:{marginTop:"30px",width:"138px",height:"40px",position:"absolute",top:"124px"}},"\u5446\u4F1A\u89C1\uFF0C\u6709\u4E8B\u547C\u6211")):u.a.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},u.a.createElement(Ie.a,{type:"primary",onClick:function(){localStorage.setItem("Noviceguide","0"),Xe({type:"shixunHomeworks/setActionTabs",payload:{key:""}}),vn("none")},ghost:!0,style:{marginTop:"30px",width:"138px",height:"40px",position:"absolute",top:"124px"}},"\u8DF3\u8FC7\uFF0C\u6211\u81EA\u5DF1\u6765"))))},it=Object(b.a)(function(Ue){var ke=Ue.homePage,Ke=Ue.loading,He=Ue.user,Ze=Ue.globalSetting,Be=Ue.shixunHomeworks;return{homePage:ke,user:He,globalSetting:Ze,loading:Ke.models.index,shixunHomeworks:Be}})($e),xt=o("498V"),vt=o.n(xt),Ut=L.a.Header,Ht=oe.a.Search;function je(){var Ue,ke,Ke=window.location.pathname,He=Ke.split("/"),Ze={};return He[1]=="classrooms"&&He.length>3&&!((Ue=He[4])!==null&&Ue!==void 0&&Ue.includes("newgold"))&&!((ke=He[5])!==null&&ke!==void 0&&ke.includes("newgold"))&&He[2]!=="coursesId"&&(Ze.course_id=He[2]),He[1]==="shixuns"&&He.length>3&&(Ze.objective_type="shixun",Ze.objective_id=He[2]),He[1]==="paths"&&He.length>3&&(Ze.objective_type="path",Ze.objective_id=He[2]),Object(D.a)(Object(D.a)({},Ze),{school:1})}var Le={\u9996\u9875:"/","/paths":{link:"/paths",key:1},"/shixuns":{link:"/shixuns",key:2},"/classrooms":{link:"/classrooms",key:3},"/competitions":{link:"/competitions",key:4},"/moop_cases":{link:"/moop_cases",key:5},"/forums":{link:"/forums",key:6},"/recruitment":{link:"/competitions/index",key:7},"/three":{link:"/three",key:7}},ze=["/","/classrooms","/account/profile","/account/profile/edit","/classrooms/new"],st=function(ke){var Ke,He=ke.homePage,Ze=ke.user,Be=ke.globalSetting,Xe=ke.loading,ut=ke.dispatch,lt=ke.location,Ct=ke.isLogin,Et=Ct===void 0?!1:Ct,At=ke.shixunHomeworks,kt=Object(x.a)(ke,["homePage","user","globalSetting","loading","dispatch","location","isLogin","shixunHomeworks"]),St=Object(g.g)(),Wt=Object(O.useState)(!1),fn=Object($.a)(Wt,2),vn=fn[0],An=fn[1],zn=Object(O.useState)(-1),sn=Object($.a)(zn,2),gn=sn[0],Kt=sn[1],hn=Object(O.useState)(!1),pn=Object($.a)(hn,2),Rt=pn[0],pt=pn[1],ot=je(),Mt=lt.pathname;Object(O.useEffect)(function(){ut({type:"user/getNavigationInfo",payload:Object(D.a)({},ot)})},[Be.name]),Object(O.useEffect)(function(){At.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"&&(ze!=null&&ze.includes(lt==null?void 0:lt.pathname)||(lt==null?void 0:lt.pathname.indexOf("/classrooms"))===0||ut({type:"shixunHomeworks/setActionTabs",payload:{key:"\u9690\u85CF"}}))},[lt.pathname]),Object(O.useEffect)(function(){At.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"||(At.actionTabs.key||localStorage.setItem("Noviceguide","0"))},[At.actionTabs.key]),Object(O.useEffect)(function(){if(Be!=null&&Be.setting){var Tt,Nn;if(Be==null||((Tt=Be.setting)===null||Tt===void 0||((Nn=Tt.navbar)===null||Nn===void 0))||Nn.map(function(Me,Oe){lt.pathname.indexOf(Me.link)>-1&&Kt(Oe)}),gn===-1)Object(w.T)(Be.setting.name);else{var ua;Object(w.T)(((ua=Be.setting.navbar[gn])===null||ua===void 0?void 0:ua.name)||Be.setting.name)}}},[Be==null?void 0:Be.setting]);var Ft=Object(O.useMemo)(function(){var Tt;if(Be!=null&&(Tt=Be.setting)!==null&&Tt!==void 0&&Tt.nav_logo_url){var Nn;return"".concat(W.a.IMG_SERVER,"/").concat(Be==null||((Nn=Be.setting)===null||Nn===void 0)?void 0:Nn.nav_logo_url)}else return"".concat(W.a.IMG_SERVER,"/images/avatars/LaboratorySetting/1nav?t=").concat(new Date().getTime())},[Be==null||((Ke=Be.setting)===null||Ke===void 0)?void 0:Ke.nav_logo_url]);function xn(Tt){St.push("/search?value="+Tt)}var wn=function(){return vn?u.a.createElement("div",{onBlur:function(){setTimeout(function(){An(!1)},300)}},u.a.createElement(Ht,{placeholder:"\u5B9E\u8DF5\u8BFE\u7A0B/\u6559\u5B66\u8BFE\u5802/\u5B9E\u8DF5\u9879\u76EE/\u4EA4\u6D41\u95EE\u7B54",className:"search-input mr20",onSearch:xn,autoFocus:!0})):u.a.createElement("span",{className:"iconfont icon-sousuo font18 current ml15 mr15",onClick:function(){St.push("/search?value=")}})},zt=function(){var Tt=Object(Re.a)(_.a.mark(function Nn(ua){var Me,Oe,at;return _.a.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:return ua.preventDefault(),dt.next=3,Object(v.n)();case 3:Oe=dt.sent,Oe!=null&&(Me=Oe.data)!==null&&Me!==void 0&&Me.engineer_url?document.location.href=Oe==null||((at=Oe.data)===null||at===void 0)?void 0:at.engineer_url:(Oe==null?void 0:Oe.status)!=401&&pt(!0);case 5:case"end":return dt.stop()}},Nn)}));return function(ua){return Tt.apply(this,arguments)}}();if(Be.showHeader&&Be.showHeaderFooter){var tt,En,Gn,ta,$t;return u.a.createElement(L.a,{className:"".concat(Be.isIlearning?S.a["header-iearning"]:S.a.header," ").concat(Be.showHeaderFixed?S.a.headerFixed:"")},u.a.createElement(Ut,{className:"header"},u.a.createElement("section",{className:S.a["edu-menu"]},(!!Be.isIlearning||!!Be.isPaZhou)&&u.a.createElement(m.a,{style:{display:"flex",alignItems:"center"},onClick:function(){ut({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},to:"/"},u.a.createElement("img",{className:S.a.logo,title:(tt=Be.setting)===null||tt===void 0?void 0:tt.name,src:Be.isPaZhou?Ft:vt.a||Ft}),!Be.isPaZhou&&u.a.createElement("span",{className:S.a.title},"\u6DF7\u5408\u589E\u5F3A\u667A\u6167\u6559\u80B2i-Learning\u5E73\u53F0")),u.a.createElement("ul",{className:"".concat(S.a.menu," ").concat(Object(w.p)()&&"ml0")},Object(w.p)()&&u.a.createElement("li",null,u.a.createElement("a",{href:"/"},"\u8003\u8BD5\u7CFB\u7EDF")),!Object(w.p)()&&Be.setting&&Be.setting.navbar.map(function(Tt,Nn){if(!Tt.hidden)return u.a.createElement("li",{key:Nn,className:gn===Nn?S.a.actived:""},(Tt==null?void 0:Tt.name)==="\u6559\u5B66\u8BFE\u5802"&&u.a.createElement(m.a,{onClick:function(){localStorage.getItem("Noviceguide")==="0"||ut({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:5,text:u.a.createElement("div",null,"\u975E\u5E38\u68D2\uFF0C\u54B1\u4EEC\u5DF2\u7ECF\u5230\u8FBE\u3010\u6559\u5B66\u8BFE\u5802\u3011\uFF0C\u5E73\u53F0\u4E0A\u5DF2\u7ECF\u6709\u51E0\u5343\u4F4D\u8001\u5E08\u521B\u5EFA\u4E86\u81EA\u5DF1\u7684\u6559\u5B66\u8BFE\u5802\uFF0C\u4F60\u4E5F\u53EF\u4EE5\u8F7B\u677E\u5B8C\u6210\u54DF\uFF01\u73B0\u5728\u8BF7\u60A8\u70B9\u51FB\u9875\u9762\u4E0A \u201C\u65B0\u5EFA\u8BFE\u5802\u201D\u6309\u94AE\u5F00\u59CB\u65B0\u5EFA\u81EA\u5DF1\u7684\u8BFE\u5802~")}})},className:At.actionTabs.type===4?S.a.classromediv:"",dangerouslySetInnerHTML:{__html:Tt.name},to:Tt.link}),(Tt==null?void 0:Tt.name)!="\u6559\u5B66\u8BFE\u5802"&&Tt.link.indexOf("http")<0&&u.a.createElement(m.a,{onClick:function(){ut({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},dangerouslySetInnerHTML:{__html:Tt.name},to:Tt.link,target:Tt.link.indexOf("http")>-1?"_blank":"_self"}),(Tt==null?void 0:Tt.name)!="\u6559\u5B66\u8BFE\u5802"&&Tt.link.indexOf("http")>-1&&u.a.createElement("a",{target:Tt.link.indexOf("http")>-1?"_blank":"_self",dangerouslySetInnerHTML:{__html:Tt.name},href:Tt.link}))})),u.a.createElement("div",{className:"search-bar",style:{flex:Be.isIlearning?"initial":"1 0 auto"}},!Object(w.p)()&&!(Be!=null&&Be.isIlearning)&&u.a.createElement(u.a.Fragment,null,u.a.createElement(wn,null),!Et&&u.a.createElement(re,null),!Et&&!!(Ze!=null&&(En=Ze.userInfo)!==null&&En!==void 0&&En.login)&&u.a.createElement(m.a,{className:"iconfont icon-xiaoxilingdang c-white ml15 mr15 font18 relative",to:"/messages/".concat(Ze==null||((Gn=Ze.userInfo)===null||Gn===void 0)?void 0:Gn.login,"/user_tidings")},(Ze==null||((ta=Ze.navigationInfo)===null||ta===void 0||(($t=ta.top)===null||$t===void 0))?void 0:$t.new_message)&&u.a.createElement("span",{className:S.a.newslight}))),!Et&&u.a.createElement(Ee,{payload:ot}))),u.a.createElement(J.a,{centered:!0,destroyOnClose:!0,visible:Rt,title:"\u63D0\u793A",width:"500px",okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(w.O)("https://qm.qq.com/cgi-bin/qm/qr?k=DWdqQHAbbfw7_rqm0d-Q_vDn5H6bMp91&jump_from=webapi")},onCancel:function(){return pt(!1)}},u.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},u.a.createElement("p",null,"\u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650"),u.a.createElement("img",{src:p.C,width:200,height:200}),u.a.createElement("p",null,"\u7FA4\u53F7\uFF1A693542422 ")))),u.a.createElement(it,null))}else return u.a.createElement(u.a.Fragment,null)},rt=k.a=Object(b.a)(function(Ue){var ke=Ue.homePage,Ke=Ue.loading,He=Ue.user,Ze=Ue.globalSetting,Be=Ue.shixunHomeworks;return{homePage:ke,user:He,globalSetting:Ze,loading:Ke.models.index,shixunHomeworks:Be}})(st)},sR1s:function(Te,k,o){"use strict";o.d(k,"b",function(){return $}),o.d(k,"a",function(){return x}),o.d(k,"c",function(){return D}),o.d(k,"d",function(){return fe});var le=o("U8pU"),J="RC_TABLE_KEY";function Re(oe){return oe==null?[]:Array.isArray(oe)?oe:[oe]}function $(oe,z){if(!z&&typeof z!="number")return oe;for(var L=Re(z),C=oe,_=0;_1)Object(L.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(S.length===0)return Object(L.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var U=S[0];if(D.isValidElement(U)&&Object(C.c)(U)){var Z=U.ref;S[0]=D.cloneElement(U,{ref:Object(C.a)(Z,this.setChildNode)})}return S.length===1?S[0]:S.map(function(ne,de){return!D.isValidElement(ne)||"key"in ne&&ne.key!==null?ne:D.cloneElement(ne,{key:"".concat(O,"-").concat(de)})})}}]),b}(D.Component);u.displayName="ResizeObserver",k.a=u},tWlo:function(Te,k){Te.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVH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IHRjWMbzhd7/MqLaZxqzxfjVFU+UjhcZCs+gp7f9nowcszMhfg17SoptSKDyym9N9cbePt8O2GrQ5pbrDRMTkwbe6MQpN6hfFRUVWa+Qb+7je23ideLAtPdGZ/cUZpw1iTsTFtFLJcBwEc2RIryHqELvW2q/qQPT4JA4AmupL5aP/Saza8A0eDU2Jvr0DrWaNkEe3L32kULmhXV+cHHR8cOvV5tcDd9f8qvm9ouAW2Zm5yhpm5uwWi9HRoRXq1UqC9zt08cDe391VUiJPyaPo+F1zddaZy80XFyLRv52v2ViPrehiJSvz6Z7rthQpZI+t6E+K91yuj+3UXnkL+7PbYxCFdiIKfgYdTcohHZ23QTnEntd8Y8AAwCTubpzlq2wWAAAAABJRU5ErkJggg=="},vHTk:function(Te,k,o){Te.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},vToQ:function(Te,k,o){Te.exports={flex_box_center:"flex_box_center___3UWMh",flex_space_between:"flex_space_between___2nh9S",flex_box_vertical_center:"flex_box_vertical_center___2Neiq",flex_box_center_end:"flex_box_center_end___2_1FS",flex_box_column:"flex_box_column___2E-v7",userPic:"userPic___3Pu9t",rightMenu:"rightMenu___1qaVl",menuWrap:"menuWrap___3r9jm",exit:"exit___38Urs",classromediv:"classromediv___2R8_g",glow:"glow___323IR",height67:"height67___1DFRI",login:"login___20J7t"}},wCXF:function(Te,k,o){"use strict";o.d(k,"a",function(){return xt});var le=o("rePB"),J=o("VTBJ"),Re=o("KQm4"),$=o("U8pU"),x=o("ODXe"),D=o("q1tI"),fe=o("TSYQ"),oe=o.n(fe),z=o("Gytx"),L=o.n(z),C=o("Kwbf"),_=o("t23M"),O=o("qx4F"),u=o("6eGT"),g=o("IBYe"),m=o("Ff2n"),b=o("c+Xe"),p=o("fyJ8"),y=o("biw7");function S(je,Le,ze,st,rt){var Ue=ze[je]||{},ke=ze[Le]||{},Ke,He;Ue.fixed==="left"?Ke=st.left[je]:ke.fixed==="right"&&(He=st.right[Le]);var Ze=!1,Be=!1,Xe=!1,ut=!1,lt=ze[Le+1],Ct=ze[je-1];if(rt==="rtl"){if(Ke!==void 0){var Et=Ct&&Ct.fixed==="left";ut=!Et}else if(He!==void 0){var At=lt&<.fixed==="right";Xe=!At}}else if(Ke!==void 0){var kt=lt&<.fixed==="left";Ze=!kt}else if(He!==void 0){var St=Ct&&Ct.fixed==="right";Be=!St}return{fixLeft:Ke,fixRight:He,lastFixLeft:Ze,firstFixRight:Be,lastFixRight:Xe,firstFixLeft:ut,isSticky:st.isSticky}}var U=o("sR1s");function Z(je){var Le=je.cells,ze=je.stickyOffsets,st=je.flattenColumns,rt=je.rowComponent,Ue=je.cellComponent,ke=je.onHeaderRow,Ke=je.index,He=D.useContext(y.a),Ze=He.prefixCls,Be=He.direction,Xe;ke&&(Xe=ke(Le.map(function(lt){return lt.column}),Ke));var ut=Object(U.a)(Le.map(function(lt){return lt.column}));return D.createElement(rt,Object.assign({},Xe),Le.map(function(lt,Ct){var Et=lt.column,At=S(lt.colStart,lt.colEnd,st,ze,Be),kt;return Et&&Et.onHeaderCell&&(kt=lt.column.onHeaderCell(Et)),D.createElement(p.a,Object.assign({},lt,{ellipsis:Et.ellipsis,align:Et.align,component:Ue,prefixCls:Ze,key:ut[Ct]},At,{additionalProps:kt,rowType:"header"}))}))}Z.displayName="HeaderRow";var ne=Z;function de(je){var Le=[];function ze(ke,Ke){var He=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Le[He]=Le[He]||[];var Ze=Ke,Be=ke.filter(Boolean).map(function(Xe){var ut={key:Xe.key,className:Xe.className||"",children:Xe.title,column:Xe,colStart:Ze},lt=1,Ct=Xe.children;return Ct&&Ct.length>0&&(lt=ze(Ct,Ze,He+1).reduce(function(Et,At){return Et+At},0),ut.hasSubColumns=!0),"colSpan"in Xe&&(lt=Xe.colSpan),"rowSpan"in Xe&&(ut.rowSpan=Xe.rowSpan),ut.colSpan=lt,ut.colEnd=ut.colStart+lt-1,Le[He].push(ut),Ze+=lt,lt});return Be}ze(je,0);for(var st=Le.length,rt=function(Ke){Le[Ke].forEach(function(He){!("rowSpan"in He)&&!He.hasSubColumns&&(He.rowSpan=st-Ke)})},Ue=0;Ue=0;Ke-=1){var He=Le[Ke],Ze=ze&&ze[Ke],Be=Ze&&Ze[T.a];(He||Be||ke)&&(rt.unshift(D.createElement("col",Object.assign({key:Ke,style:{width:He,minWidth:He}},Be))),ke=!0)}return D.createElement("colgroup",null,rt)}var s=d;function ue(je,Le){return Object(D.useMemo)(function(){for(var ze=[],st=0;st1?Pt-1:0),_t=1;_t=Xe&&(Ft=Xe-ut),ke({scrollLeft:Ft/Xe*(Be+2)}),St.current.x=Rt.pageX},Kt=function(){var Rt=Object(Ie.b)(Ue.current).top,pt=Rt+Ue.current.offsetHeight,ot=document.documentElement.scrollTop+window.innerHeight;pt-Object(O.a)()<=ot||Rt>=ot-Ke?kt(function(Mt){return Object(J.a)(Object(J.a)({},Mt),{},{isHiddenScrollBar:!0})}):kt(function(Mt){return Object(J.a)(Object(J.a)({},Mt),{},{isHiddenScrollBar:!1})})},hn=function(Rt){kt(function(pt){return Object(J.a)(Object(J.a)({},pt),{},{scrollLeft:Rt/Be*Xe||0})})};return D.useImperativeHandle(ze,function(){return{setScrollLeft:hn}}),D.useEffect(function(){var pn=Object(De.a)(document.body,"mouseup",zn,!1),Rt=Object(De.a)(document.body,"mousemove",gn,!1);return Kt(),function(){pn.remove(),Rt.remove()}},[ut,vn]),D.useEffect(function(){var pn=Object(De.a)(window,"scroll",Kt,!1),Rt=Object(De.a)(window,"resize",Kt,!1);return function(){pn.remove(),Rt.remove()}},[]),D.useEffect(function(){At.isHiddenScrollBar||kt(function(pn){var Rt,pt;return Object(J.a)(Object(J.a)({},pn),{},{scrollLeft:Ue.current.scrollLeft/((Rt=Ue.current)===null||Rt===void 0?void 0:Rt.scrollWidth)*((pt=Ue.current)===null||pt===void 0?void 0:pt.clientWidth)})})},[At.isHiddenScrollBar]),Be<=Xe||!ut||At.isHiddenScrollBar?null:D.createElement("div",{style:{height:Object(O.a)(),width:Xe,bottom:Ke},className:"".concat(Ze,"-sticky-scroll")},D.createElement("div",{onMouseDown:sn,ref:lt,className:oe()("".concat(Ze,"-sticky-scroll-bar"),Object(le.a)({},"".concat(Ze,"-sticky-scroll-bar-active"),vn)),style:{width:"".concat(ut,"px"),transform:"translate3d(".concat(At.scrollLeft,"px, 0, 0)")}}))},qe=D.forwardRef(Ge);function Je(je,Le){return D.useMemo(function(){var ze=!!je;return{isSticky:ze,stickyClassName:ze?"".concat(Le,"-sticky-header"):"",offsetHeader:Object($.a)(je)==="object"&&je.offsetHeader||0,offsetScroll:Object($.a)(je)==="object"&&je.offsetScroll||0}},[je,Le])}var $e=[],it={},xt="rc-table-internal-hook",vt=D.memo(function(je){var Le=je.children;return Le},function(je,Le){return L()(je.props,Le.props)?je.pingLeft!==Le.pingLeft||je.pingRight!==Le.pingRight:!1});function Ut(je){var Le,ze=je.prefixCls,st=je.className,rt=je.rowClassName,Ue=je.style,ke=je.data,Ke=je.rowKey,He=je.scroll,Ze=je.tableLayout,Be=je.direction,Xe=je.title,ut=je.footer,lt=je.summary,Ct=je.id,Et=je.showHeader,At=je.components,kt=je.emptyText,St=je.onRow,Wt=je.onHeaderRow,fn=je.internalHooks,vn=je.transformColumns,An=je.internalRefs,zn=je.sticky,sn=ke||$e,gn=!!sn.length,Kt=D.useState(0),hn=Object(x.a)(Kt,2),pn=hn[0],Rt=hn[1];D.useEffect(function(){Rt(Object(O.a)())});var pt=D.useMemo(function(){return Object(U.c)(At,{})},[At]),ot=D.useCallback(function(Dn,bn){return Object(U.b)(pt,Dn)||bn},[pt]),Mt=D.useMemo(function(){return typeof Ke=="function"?Ke:function(Dn){var bn=Dn&&Dn[Ke];return bn}},[Ke]),Ft=Object(T.c)(je),xn=Ft.expandIcon,wn=Ft.expandedRowKeys,zt=Ft.defaultExpandedRowKeys,tt=Ft.defaultExpandAllRows,En=Ft.expandedRowRender,Gn=Ft.onExpand,ta=Ft.onExpandedRowsChange,$t=Ft.expandRowByClick,Tt=Ft.rowExpandable,Nn=Ft.expandIconColumnIndex,ua=Ft.expandedRowClassName,Me=Ft.childrenColumnName,Oe=Ft.indentSize,at=xn||Q,mt=Me||"children",dt=D.useMemo(function(){return En?"row":je.expandable&&fn===xt&&je.expandable.__PARENT_RENDER_ICON__||sn.some(function(Dn){return Dn&&Object($.a)(Dn)==="object"&&Dn[mt]})?"nest":!1},[!!En,sn]),Nt=D.useState(function(){return zt||(tt?Ee(sn,Mt,mt):[])}),Dt=Object(x.a)(Nt,2),Ye=Dt[0],ht=Dt[1],Pt=D.useMemo(function(){return new Set(wn||Ye||[])},[wn,Ye]),Xt=D.useCallback(function(Dn){var bn=Mt(Dn,sn.indexOf(Dn)),yn,Ja=Pt.has(bn);Ja?(Pt.delete(bn),yn=Object(Re.a)(Pt)):yn=[].concat(Object(Re.a)(Pt),[bn]),ht(yn),Gn&&Gn(!Ja,Dn),ta&&ta(yn)},[Mt,Pt,sn,Gn,ta]),_t=D.useState(0),Zt=Object(x.a)(_t,2),Ln=Zt[0],qt=Zt[1],Mn=Object(X.b)(Object(J.a)(Object(J.a)(Object(J.a)({},je),Ft),{},{expandable:!!En,expandedKeys:Pt,getRowKey:Mt,onTriggerExpand:Xt,expandIcon:at,expandIconColumnIndex:Nn,direction:Be}),fn===xt?vn:null),un=Object(x.a)(Mn,2),ct=un[0],wt=un[1],Hn=D.useMemo(function(){return{columns:ct,flattenColumns:wt}},[ct,wt]),Jn=D.useRef(),ha=D.useRef(),In=D.useRef(),oa=D.useState(!1),Lt=Object(x.a)(oa,2),We=Lt[0],Qt=Lt[1],en=D.useState(!1),_n=Object(x.a)(en,2),an=_n[0],cn=_n[1],tn=ie(new Map),na=Object(x.a)(tn,2),Kn=na[0],ln=na[1],rn=Object(U.a)(wt),Sa=rn.map(function(Dn){return Kn.get(Dn)}),ia=D.useMemo(function(){return Sa},[Sa.join("_")]),qn=W(ia,wt.length,Be),aa=He&&Object(U.d)(He.y),Un=He&&Object(U.d)(He.x),ya=Un&&wt.some(function(Dn){var bn=Dn.fixed;return bn}),kn=D.useRef(),mn=Je(zn,ze),Bt=mn.isSticky,dn=mn.offsetHeader,ca=mn.offsetScroll,Vn=mn.stickyClassName,Xn,vr,La;aa&&(vr={overflowY:"scroll",maxHeight:He.y}),Un&&(Xn={overflowX:"auto"},aa||(vr={overflowY:"hidden"}),La={width:He.x===!0?"auto":He.x,minWidth:"100%"});var Fa=D.useCallback(function(Dn,bn){ln(function(yn){var Ja=new Map(yn);return Ja.set(Dn,bn),Ja})},[]),Pa=Ce(null),Nr=Object(x.a)(Pa,2),nr=Nr[0],gr=Nr[1];function Er(Dn,bn){if(!bn)return;typeof bn=="function"?bn(Dn):bn.scrollLeft!==Dn&&(bn.scrollLeft=Dn)}var Ha=function(bn){var yn=bn.currentTarget,Ja=bn.scrollLeft,Mr=typeof Ja=="number"?Ja:yn.scrollLeft,Ir=yn||it;if(!gr()||gr()===Ir){var Rr;nr(Ir),Er(Mr,ha.current),Er(Mr,In.current),Er(Mr,(Rr=kn.current)===null||Rr===void 0?void 0:Rr.setScrollLeft)}if(yn){var Jr=yn.scrollWidth,uo=yn.clientWidth;Qt(Mr>0),cn(Mr0?[].concat(Object(J.a)(m),Object(J.a)(C(S).map(function(U){return Object(Re.a)({fixed:y},U)}))):[].concat(Object(J.a)(m),[Object(Re.a)(Object(Re.a)({},b),{},{fixed:y})])},[])}function _(g){for(var m=!0,b=0;b=0;S-=1){var U=g[S];if(y&&U.fixed!=="right")y=!1;else if(!y&&U.fixed==="right"){Object(fe.a)(!1,"Index ".concat(S+1," of `columns` missing `fixed='right'` prop."));break}}}function O(g){return g.map(function(m){var b=m.fixed,p=Object($.a)(m,["fixed"]),y=b;return b==="left"?y="right":b==="right"&&(y="left"),Object(Re.a)({fixed:y},p)})}function u(g,m){var b=g.prefixCls,p=g.columns,y=g.children,S=g.expandable,U=g.expandedKeys,Z=g.getRowKey,ne=g.onTriggerExpand,de=g.expandIcon,_e=g.rowExpandable,ae=g.expandIconColumnIndex,T=g.direction,d=g.expandRowByClick,s=x.useMemo(function(){return p||L(y)},[p,y]),ue=x.useMemo(function(){if(S){var N,H=ae||0,w=s[H],j=(N={},Object(le.a)(N,z.a,{className:"".concat(b,"-expand-icon-col")}),Object(le.a)(N,"title",""),Object(le.a)(N,"fixed",w?w.fixed:null),Object(le.a)(N,"className","".concat(b,"-row-expand-icon-cell")),Object(le.a)(N,"render",function(B,te,ye){var Pe=Z(te,ye),xe=U.has(Pe),Se=_e?_e(te):!0,X=de({prefixCls:b,expanded:xe,expandable:Se,record:te,onExpand:ne});return d?x.createElement("span",{onClick:function(be){return be.stopPropagation()}},X):X}),N),K=s.slice();return H>=0&&K.splice(H,0,j),K}return s},[S,s,Z,U,de,T]),Y=x.useMemo(function(){var N=ue;return m&&(N=m(N)),N.length||(N=[{render:function(){return null}}]),N},[m,ue,T]),F=x.useMemo(function(){return T==="rtl"?O(C(Y)):C(Y)},[Y,T]);return[Y,F]}k.b=u},xrsn:function(Te,k,o){Te.exports={flex_box_center:"flex_box_center___2cC1r",flex_space_between:"flex_space_between___9TeDx",flex_box_vertical_center:"flex_box_vertical_center___3EIYv",flex_box_center_end:"flex_box_center_end___1Uph0",flex_box_column:"flex_box_column___17_5w",header:"header___1E4MV",logo:"logo___R8PNJ",menu:"menu___Km2Uo",actived:"actived___12Ff0","edu-menu":"edu-menu___2hxbr",newslight:"newslight___jwZR3",classromediv:"classromediv___Cjpgf",glow:"glow___3Nuu5",spandiv:"spandiv___3YPu8","header-iearning":"header-iearning___2Us_L",title:"title___3TtoH",headerFixed:"headerFixed___1V7d4"}},"y0+3":function(Te,k,o){"use strict";o.d(k,"a",function(){return C}),o.d(k,"b",function(){return O});var le=/margin|padding|width|height|max|min|offset/,J={left:!0,top:!0},Re={cssFloat:1,styleFloat:1,float:1};function $(u){return u.nodeType===1?u.ownerDocument.defaultView.getComputedStyle(u,null):{}}function x(u,g,m){if(g=g.toLowerCase(),m==="auto"){if(g==="height")return u.offsetHeight;if(g==="width")return u.offsetWidth}return g in J||(J[g]=le.test(g)),J[g]?parseFloat(m)||0:m}function D(u,g){var m=arguments.length,b=$(u);return g=Re[g]?"cssFloat"in u.style?"cssFloat":"styleFloat":g,m===1?b:x(u,g,b[g]||u.style[g])}function fe(u,g,m){var b=arguments.length;if(g=Re[g]?"cssFloat"in u.style?"cssFloat":"styleFloat":g,b===3)return typeof m=="number"&&le.test(g)&&(m="".concat(m,"px")),u.style[g]=m,m;for(var p in g)g.hasOwnProperty(p)&&fe(u,p,g[p]);return $(u)}function oe(u){return u===document.body?document.documentElement.clientWidth:u.offsetWidth}function z(u){return u===document.body?window.innerHeight||document.documentElement.clientHeight:u.offsetHeight}function L(){var u=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),g=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:u,height:g}}function C(){var u=document.documentElement.clientWidth,g=window.innerHeight||document.documentElement.clientHeight;return{width:u,height:g}}function _(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function O(u){var g=u.getBoundingClientRect(),m=document.documentElement;return{left:g.left+(window.pageXOffset||m.scrollLeft)-(m.clientLeft||document.body.clientLeft||0),top:g.top+(window.pageYOffset||m.scrollTop)-(m.clientTop||document.body.clientTop||0)}}},yslc:function(Te,k){Te.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAOHklEQVR4Xu1dCXQURRr+emZyTO6D3BCEgKCInCKeK3IoiyIqlxLyQBRBV8DNhCCrS3Z9Cq66KOoi68ECKocCcutTLhUERM1MEpBLEuQmQMKEnDNd+6onEzKTuXqmJ5l0V/EeL+mp+qu+r77UVP1V9TcHffZbIJgOlhgDMmaAA8lTwVDxJQh5UMY4GTSFM8A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BkDHGhIZ/2R7QC5g9HEGJArAxzyde8D5Gm5AmS4GAO2c3TGB2OgFTLALR1KA6e5SByvUpEp7s+6tELwrMnKYcCl0DmYVOCyzOM3L2dCV44mZInUhdBrVFCPMmdt3MCmLrLsemWBcih0DlfVBMNNWVu2WdlgI7qydCE7tE2FzpVpVOqhdZkbaJSKhsSELruuVxYgG6FzOK+Bekjd+I16exaY0JWlC9mhbRA6h5PBCBpUM369w1jdTOiy63plAaoX+rEQNTewetzmEmfomdCVpQvZoeWWDi3UctrBlePXnHHpTZcdcgZIUQxErnk43vjI2ovuQP8faDGikjbF4FsAAAAASUVORK5CYII="},zXvr:function(Te,k,o){"use strict";o.r(k);var le=o("T2oS"),J=o("W9HT"),Re=o("giR+"),$=o("fyUT"),x=o("miYZ"),D=o("tsqr"),fe=o("9og8"),oe=o("k1fw"),z=o("2qtc"),L=o("kLXV"),C=o("/zsF"),_=o("PArb"),O=o("14J3"),u=o("BMrR"),g=o("jCWc"),m=o("kPKH"),b=o("+L6B"),p=o("2/Rp"),y=o("y8nQ"),S=o("Vl3Y"),U=o("tJVT"),Z=o("Znn+"),ne=o("ZTPi"),de=o("tU7J"),_e=o("wFql"),ae=o("WmNS"),T=o.n(ae),d=o("q1tI"),s=o.n(d),ue=o("0TN8"),Y=o("8Skl"),F=o("Ty5D"),N=o("9kvl"),H=o("izBO"),w=o.n(H),j=o("fr4D"),K=o("xKgJ"),ee=o("5NDa"),B=o("5rEg"),te=function(Oe){var at=Oe.dispatch,mt=Oe.innovation,dt=Oe.detail,Nt=S.a.useForm(),Dt=Object(U.a)(Nt,1),Ye=Dt[0],ht=Object(d.useState)("notyet"),Pt=Object(U.a)(ht,2),Xt=Pt[0],_t=Pt[1],Zt=Object(d.useRef)(),Ln=function(){var Hn=Object(fe.a)(T.a.mark(function Jn(){var ha,In;return T.a.wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:return Lt.prev=0,Lt.next=3,Ye.validateFields();case 3:return ha=Ye.getFieldValue("name"),_t("forking"),Lt.next=7,Object(j.d)("".concat(dt.id),{name:ha});case 7:In=Lt.sent,In.status===0&&(D.b.success("fork\u6210\u529F"),Zt.current=In.sci_project_id,mt.openForkModalPosition==="remindModal"&&window.localStorage.setItem("hideRemindModal","".concat(mt.hideRemindModal))),_t("success"),Lt.next=15;break;case 12:Lt.prev=12,Lt.t0=Lt.catch(0),_t("fail");case 15:case"end":return Lt.stop()}},Jn,null,[[0,12]])}));return function(){return Hn.apply(this,arguments)}}(),qt=function(){N.d.push("/innovation/project/detail/".concat(Zt.current)),location.reload()},Mn=function(){_t("notyet"),Ye.resetFields(),at({type:"innovation/closeModal"})},un=function(){Xt==="success"?qt():Ln()},ct=s.a.createElement(S.a,{autoComplete:"off",form:Ye,initialValues:{name:dt.sci_project.name}},s.a.createElement(S.a.Item,{label:"\u65B0\u9879\u76EE\u540D\u79F0",name:"name",required:!0,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"}]},s.a.createElement(B.a,{placeholder:"\u8BF7\u8F93\u5165",maxLength:60}))),wt={notyet:ct,forking:s.a.createElement("div",{style:{height:40}}),success:s.a.createElement("p",null,"\u9879\u76EE\u5DF2\u7ECFFork\u5B8C\u6210\uFF0C\u73B0\u5728\u5C31\u53BB\u67E5\u770B\u9879\u76EE\u5417\uFF1F"),fail:ct};return s.a.createElement(L.a,{title:"Fork\u9879\u76EE",width:600,visible:mt.visibleModalName==="fork-project",className:"".concat(w.a.fork_modal),destroyOnClose:!0,centered:!0,onCancel:Mn,onOk:un,okText:Xt==="success"?"\u67E5\u770B\u9879\u76EE":"\u786E\u5B9A"},s.a.createElement(J.a,{tip:"\u9879\u76EEFork\u4E2D",spinning:Xt==="forking"},wt[Xt]))},ye=Object(N.a)(function(Me){var Oe=Me.innovation;return{innovation:Oe}})(te),Pe=o("wd/R"),xe=o.n(Pe),Se=o("m3rI"),X=function(){var Oe=Object(d.useState)(xe()().valueOf()),at=Object(U.a)(Oe,2),mt=at[0],dt=at[1],Nt=Object(d.useMemo)(function(){return"".concat(Se.a.API_SERVER,"/rucaptcha?t=").concat(mt)},[mt]),Dt=function(){dt(xe()().valueOf())};return s.a.createElement(u.a,{align:"middle"},s.a.createElement("img",{src:Nt,alt:""}),s.a.createElement("span",{onClick:Dt,style:{fontSize:12,fontWeight:400,color:"#165DFF",marginLeft:10,cursor:"pointer"}},"\u770B\u4E0D\u6E05\u6362\u4E00\u5F20"))},re=X,be=function(Oe){var at=Oe.dispatch,mt=Oe.innovation,dt=Oe.projectId,Nt=S.a.useForm(),Dt=Object(U.a)(Nt,1),Ye=Dt[0],ht=function(){var Pt=Object(fe.a)(T.a.mark(function Xt(){var _t,Zt;return T.a.wrap(function(qt){for(;;)switch(qt.prev=qt.next){case 0:return qt.prev=0,qt.next=3,Ye.validateFields();case 3:return _t=Ye.getFieldsValue(),qt.next=6,Object(j.b)(dt,{code:_t.code});case 6:Zt=qt.sent,Zt.status===0&&(D.b.success("\u5220\u9664\u6210\u529F"),at({type:"innovation/closeModal"}),N.d.replace("/innovation/project")),qt.next=13;break;case 10:qt.prev=10,qt.t0=qt.catch(0),at({type:"innovation/closeModal"});case 13:case"end":return qt.stop()}},Xt,null,[[0,10]])}));return function(){return Pt.apply(this,arguments)}}();return s.a.createElement(L.a,{title:"\u5220\u9664\u9879\u76EE",width:600,okText:"\u786E\u5B9A\u5220\u9664",okButtonProps:{type:"primary",danger:!0},centered:!0,visible:mt.visibleModalName==="delete-project",destroyOnClose:!0,onCancel:function(){return at({type:"innovation/closeModal"})},onOk:ht},s.a.createElement(S.a,{autoComplete:"off",form:Ye,preserve:!1},s.a.createElement(S.a.Item,{label:"\u9A8C\u8BC1\u7801",required:!0},s.a.createElement(S.a.Item,{name:"code",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"}]},s.a.createElement(B.a,{placeholder:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"})),s.a.createElement("span",{style:{color:"#FA6400"}},"\u5220\u9664\u9879\u76EE\u540E\uFF0C\u5C06\u65E0\u6CD5\u6062\u590D\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C"),s.a.createElement(re,null))))},ie=Object(N.a)(function(Me){var Oe=Me.innovation;return{innovation:Oe}})(be),Ce=o("qVdP"),v=o("jsC+"),W=o("lUTK"),P=o("BvKs"),ce=o("5Dmo"),R=o("3S7+"),Q=o("PpiC"),Ee=o("jXuf"),De=o.n(Ee),Ie=o("oBTY"),Ge=o("ozfa"),qe=o("MJZm"),Je=o("P5Jw"),$e=o("KUBS"),it=o.n($e),xt=function(Oe){var at=Oe.shixunsDetail,mt=Oe.globalSetting,dt=Oe.loading,Nt=Oe.user,Dt=Oe.dispatch,Ye=Oe.isRepository,ht=Object(Q.a)(Oe,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Pt=Object(F.h)(),Xt=Object(F.i)(),_t=Object(d.useState)({}),Zt=Object(U.a)(_t,2),Ln=Zt[0],qt=Zt[1],Mn=Object(d.useRef)(),un=S.a.useForm(),ct=Object(U.a)(un,1),wt=ct[0],Hn=Object(d.useState)(""),Jn=Object(U.a)(Hn,2),ha=Jn[0],In=Jn[1];Object(d.useEffect)(function(){ht.visible&&wt.resetFields()},[ht.visible]),Object(d.useEffect)(function(){var We=sessionStorage.getItem("pathArray");if(We){var Qt=We.split(",").join("/"),en=Qt.indexOf("/")===0?Qt.substr(1):Qt;In(en)}},[]),Object(d.useEffect)(function(){var We,Qt;Mn.current=(We=Pt.pathname)===null||We===void 0||((Qt=We.split("/"))===null||Qt===void 0)?void 0:Qt[2]},[]);var oa=function(){var We=Object(fe.a)(T.a.mark(function Qt(){var en,_n,an=arguments;return T.a.wrap(function(tn){for(;;)switch(tn.prev=tn.next){case 0:return en=an.length>0&&an[0]!==void 0?an[0]:{},tn.next=3,Dt({type:"shixunsDetail/addRepositoryFiles",payload:{id:Xt.taskId,message:en.commitMessage,content:"",path:(ht.defaultPath?ht.defaultPath+"/":"")+en.path+"/"+(en.file||".gitkeep"),secret_repository:Ye?void 0:!0}});case 3:_n=tn.sent,_n!=null&&_n.url&&(D.b.success("\u6DFB\u52A0\u6210\u529F"),ht.onOK({path:(ht.defaultPath?ht.defaultPath+"/":"")+en.path+"/"+(en.file||".gitkeep"),name:en.path.split("/")[en.path.split("/").length-1]}),ht.onClose());case 5:case"end":return tn.stop()}},Qt)}));return function(){return We.apply(this,arguments)}}(),Lt=function(){var Qt,en;N.d.push("/shixuns/".concat(Mn.current,"/").concat((Qt=Pt.pathname)===null||Qt===void 0||((en=Qt.split("/"))===null||en===void 0)?void 0:en[3]).concat(ha?"/master/shixun_show/".concat(ha):""))};return s.a.createElement(L.a,{width:"60%",centered:!0,visible:ht.visible,wrapClassName:it.a.modal,onOk:function(){wt.submit()},onCancel:ht.onClose,title:"\u65B0\u5EFA\u6587\u4EF6\u5939"},s.a.createElement("section",{className:it.a.bg},s.a.createElement("div",{className:it.a.wrap},s.a.createElement(S.a,{className:"mt10",form:wt,scrollToFirstError:!0,layout:"vertical",onFinish:oa,onChange:function(){var Qt,en,_n,an,cn=Object(oe.a)({},wt.getFieldsValue()),tn=cn==null||((Qt=cn.path)===null||Qt===void 0)?void 0:Qt.split(""),na=cn==null||((en=cn.file)===null||en===void 0)?void 0:en.split("");tn!=null&&(_n=tn.filter(function(Kn){return Kn=="/"}))!==null&&_n!==void 0&&_n.length&&(cn.path=cn.path.substring(0,cn.path.length-1)),na!=null&&(an=na.filter(function(Kn){return Kn=="/"}))!==null&&an!==void 0&&an.length&&(cn.file=cn.file.substring(0,cn.path.length-1)),wt.setFieldsValue(Object(oe.a)({},cn)),qt(cn)}},s.a.createElement(S.a.Item,{label:"\u6587\u4EF6\u5939\u540D\u79F0\uFF1A",name:"path"},s.a.createElement(u.a,null,s.a.createElement(m.a,null,s.a.createElement("span",{className:it.a.filePath},ht.defaultPath+"/")),s.a.createElement(m.a,{flex:"1"},s.a.createElement(S.a.Item,{name:"path",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},s.a.createElement(B.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0",size:"large"}))))),s.a.createElement(S.a.Item,{label:"\u6587\u4EF6\u540D\u79F0\uFF1A",name:"file"},s.a.createElement(B.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0\uFF0C\u5982\u679C\u4E0D\u586B\u5199\u7CFB\u7EDF\u5C06\u5728\u6587\u4EF6\u5939\u4E0B\u521B\u5EFA.gitkeep\u7684\u9ED8\u8BA4\u6587\u4EF6",size:"large"})),s.a.createElement(S.a.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63D0\u4EA4\u4FE1\u606F"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},s.a.createElement(B.a,{placeholder:"\u8BF7\u8F93\u5165\u672C\u6B21\u63D0\u4EA4\u7684\u4E3B\u8981\u4FE1\u606F\uFF0C\u5408\u7406\u7684\u63CF\u8FF0\u4FE1\u606F\u6709\u5229\u4E8E\u4EE3\u7801\u5386\u53F2\u8BB0\u5F55\u7684\u7BA1\u7406",size:"large"}))))))},vt=Object(N.a)(function(Me){var Oe=Me.shixunsDetail,at=Me.loading,mt=Me.globalSetting,dt=Me.user;return{shixunsDetail:Oe,globalSetting:mt,user:dt,loading:at.models.index}})(xt),Ut=o("7ahc"),Ht=function(Oe){var at=Oe.shixunsDetail,mt=Oe.globalSetting,dt=Oe.loading,Nt=Oe.user,Dt=Oe.dispatch,Ye=Oe.isRepository,ht=Object(Q.a)(Oe,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Pt=Object(F.h)(),Xt=Object(F.i)(),_t=Object(d.useState)({}),Zt=Object(U.a)(_t,2),Ln=Zt[0],qt=Zt[1],Mn=Object(d.useRef)(),un=S.a.useForm(),ct=Object(U.a)(un,1),wt=ct[0],Hn=Object(d.useState)(""),Jn=Object(U.a)(Hn,2),ha=Jn[0],In=Jn[1];Object(d.useEffect)(function(){ht.visible&&wt.resetFields()},[ht.visible]),Object(d.useEffect)(function(){var We=sessionStorage.getItem("pathArray");if(We){var Qt=We.split(",").join("/"),en=Qt.indexOf("/")===0?Qt.substr(1):Qt;In(en)}},[]),Object(d.useEffect)(function(){var We,Qt;Mn.current=(We=Pt.pathname)===null||We===void 0||((Qt=We.split("/"))===null||Qt===void 0)?void 0:Qt[2]},[]);var oa=function(){var We=Object(fe.a)(T.a.mark(function Qt(){var en,_n,an=arguments;return T.a.wrap(function(tn){for(;;)switch(tn.prev=tn.next){case 0:return en=an.length>0&&an[0]!==void 0?an[0]:{},tn.next=3,Dt({type:"shixunsDetail/addRepositoryFiles",payload:{id:Xt.taskId,message:en.commitMessage,content:en.codeMirror,path:(ht.defaultPath?ht.defaultPath+"/":"")+en.path,secret_repository:Ye?void 0:!0}});case 3:_n=tn.sent,_n!=null&&_n.url&&(D.b.success("\u6DFB\u52A0\u6210\u529F"),ht.onOK({path:(ht.defaultPath?ht.defaultPath+"/":"")+en.path,name:en.path.split("/")[en.path.split("/").length-1]}),ht.onClose());case 5:case"end":return tn.stop()}},Qt)}));return function(){return We.apply(this,arguments)}}(),Lt=function(){var Qt,en;N.d.push("/shixuns/".concat(Mn.current,"/").concat((Qt=Pt.pathname)===null||Qt===void 0||((en=Qt.split("/"))===null||en===void 0)?void 0:en[3]).concat(ha?"/master/shixun_show/".concat(ha):""))};return s.a.createElement(L.a,{width:"60%",visible:ht.visible,wrapClassName:it.a.modal,centered:!0,onOk:function(){wt.submit()},onCancel:ht.onClose,title:"\u65B0\u5EFA\u6587\u4EF6"},s.a.createElement("section",{className:it.a.bg},s.a.createElement("div",{className:it.a.wrap},s.a.createElement(S.a,{className:"mt10",form:wt,scrollToFirstError:!0,layout:"vertical",onFinish:oa,onChange:function(){var Qt,en,_n=Object(oe.a)({},wt.getFieldsValue()),an=_n==null||((Qt=_n.path)===null||Qt===void 0)?void 0:Qt.split("");(an==null||((en=an.filter(function(cn){return cn=="/"}))===null||en===void 0)?void 0:en.length)>1&&(_n.path=_n.path.substring(0,_n.path.length-1)),wt.setFieldsValue(Object(oe.a)({},_n)),qt(_n)}},s.a.createElement(S.a.Item,{label:"\u6587\u4EF6\u540D\u79F0\u6216\u6587\u4EF6\u8DEF\u5F84\uFF1A",name:"path"},s.a.createElement(u.a,null,s.a.createElement(m.a,null,s.a.createElement("span",{className:it.a.filePath},ht.defaultPath+"/")),s.a.createElement(m.a,{flex:"1"},s.a.createElement(S.a.Item,{name:"path",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},s.a.createElement(B.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0",size:"large"}))))),s.a.createElement(S.a.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63D0\u4EA4\u4FE1\u606F"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},s.a.createElement(B.a,{placeholder:"\u8BF7\u8F93\u5165\u672C\u6B21\u63D0\u4EA4\u7684\u4E3B\u8981\u4FE1\u606F\uFF0C\u5408\u7406\u7684\u63CF\u8FF0\u4FE1\u606F\u6709\u5229\u4E8E\u4EE3\u7801\u5386\u53F2\u8BB0\u5F55\u7684\u7BA1\u7406",size:"large"})),s.a.createElement("div",{className:"mt10 mb20"},s.a.createElement(S.a.Item,{name:"codeMirror",label:"\u6587\u4EF6\u5185\u5BB9\uFF1A",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5185\u5BB9"}]},s.a.createElement(Ut.a,{options:{modal:"javascript",lineNumbers:!0,theme:"railscasts",indentUnit:4,matchBrackets:!0,autoRefresh:!0,smartIndent:!0,extraKeys:{"Alt-/":"autocomplete"},autofocus:!0,styleActiveLine:!0,lint:!0,linkurl:"",gutters:["CodeMirror-linenumbers","breakpoints","CodeMirror-lint-markers"]}})))))))},je=Object(N.a)(function(Me){var Oe=Me.shixunsDetail,at=Me.loading,mt=Me.globalSetting,dt=Me.user;return{shixunsDetail:Oe,globalSetting:mt,user:dt,loading:at.models.index}})(Ht),Le=function(Oe){var at=Oe.shixunsDetail,mt=Oe.globalSetting,dt=Oe.loading,Nt=Oe.user,Dt=Oe.dispatch,Ye=Oe.isRepository,ht=Object(Q.a)(Oe,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Pt=Object(F.h)(),Xt=Object(F.i)(),_t=Object(d.useState)({}),Zt=Object(U.a)(_t,2),Ln=Zt[0],qt=Zt[1],Mn=Object(d.useRef)(),un=S.a.useForm(),ct=Object(U.a)(un,1),wt=ct[0],Hn=Object(d.useState)(""),Jn=Object(U.a)(Hn,2),ha=Jn[0],In=Jn[1],oa=Object(d.useState)(""),Lt=Object(U.a)(oa,2),We=Lt[0],Qt=Lt[1];Object(d.useEffect)(function(){ht.visible&&wt.resetFields()},[ht.visible]),Object(d.useEffect)(function(){var an=ht.defaultPath.split("/");an.length===1?(In(""),Qt(ht.defaultPath)):(Qt(an.pop()),In(an.join("/")+"/"))},[ht.defaultPath]),Object(d.useEffect)(function(){var an,cn;Mn.current=(an=Pt.pathname)===null||an===void 0||((cn=an.split("/"))===null||cn===void 0)?void 0:cn[2]},[]);var en=function(){var an=Object(fe.a)(T.a.mark(function cn(){var tn,na,Kn=arguments;return T.a.wrap(function(rn){for(;;)switch(rn.prev=rn.next){case 0:return tn=Kn.length>0&&Kn[0]!==void 0?Kn[0]:{},rn.next=3,Dt({type:"shixunsDetail/moveGitFiles",payload:{id:Xt.taskId,from:ht.defaultPath,to:ha+tn.path,message:tn.commitMessage||"".concat(ht.defaultPath," rename to ").concat(ha).concat(tn.path," "),secret_repository:Ye}});case 3:na=rn.sent,(na==null?void 0:na.status)===0&&(D.b.success("\u6DFB\u52A0\u6210\u529F"),ht.onOK({path:tn.path,name:tn.path}),ht.onClose());case 5:case"end":return rn.stop()}},cn)}));return function(){return an.apply(this,arguments)}}(),_n=function(){var cn,tn;N.d.push("/shixuns/".concat(Mn.current,"/").concat((cn=Pt.pathname)===null||cn===void 0||((tn=cn.split("/"))===null||tn===void 0)?void 0:tn[3]).concat(ha?"/master/shixun_show/".concat(ha):""))};return s.a.createElement(L.a,{width:"40%",visible:ht.visible,wrapClassName:it.a.modal,centered:!0,onOk:function(){wt.submit()},onCancel:ht.onClose,title:"\u63D0\u4EA4\u8BF4\u660E"},s.a.createElement("section",{className:it.a.bg},s.a.createElement("div",{className:it.a.wrap},s.a.createElement(S.a,{className:"mt10",form:wt,scrollToFirstError:!0,layout:"vertical",onFinish:en,onChange:function(){var cn,tn,na=Object(oe.a)({},wt.getFieldsValue()),Kn=na==null||((cn=na.path)===null||cn===void 0)?void 0:cn.split("");(Kn==null||((tn=Kn.filter(function(ln){return ln=="/"}))===null||tn===void 0)?void 0:tn.length)>1&&(na.path=na.path.substring(0,na.path.length-1)),wt.setFieldsValue(Object(oe.a)({},na)),qt(na)}},s.a.createElement(S.a.Item,{label:"\u91CD\u547D\u540D\uFF1A",name:"path"},s.a.createElement(u.a,null,s.a.createElement(m.a,{flex:"1"},s.a.createElement(S.a.Item,{name:"path",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},s.a.createElement(B.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0",size:"large",defaultValue:We}))))),s.a.createElement(S.a.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage"},s.a.createElement(B.a,{placeholder:"\u5982\u4E0D\u586B\u5199\uFF0C\u9ED8\u8BA4\u63D0\u4EA4\u4FE1\u606F\u662F\uFF08".concat(ht.defaultPath," rename to \u65B0\u7684\u540D\u79F0 \uFF09"),size:"large"}))))))},ze=Object(N.a)(function(Me){var Oe=Me.shixunsDetail,at=Me.loading,mt=Me.globalSetting,dt=Me.user;return{shixunsDetail:Oe,globalSetting:mt,user:dt,loading:at.models.index}})(Le),st=o("DZo9"),rt=o("8z0m"),Ue=o("ZaFS"),ke=o.n(Ue),Ke=rt.a.Dragger,He=function(Oe){var at=Oe.shixunsDetail,mt=Oe.globalSetting,dt=Oe.loading,Nt=Oe.user,Dt=Oe.dispatch,Ye=Oe.isRepository,ht=Object(Q.a)(Oe,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Pt=Object(F.h)(),Xt=Object(F.i)(),_t=Object(d.useState)({}),Zt=Object(U.a)(_t,2),Ln=Zt[0],qt=Zt[1],Mn=Object(d.useRef)(),un=S.a.useForm(),ct=Object(U.a)(un,1),wt=ct[0],Hn=Object(d.useState)([]),Jn=Object(U.a)(Hn,2),ha=Jn[0],In=Jn[1],oa=Object(d.useState)(),Lt=Object(U.a)(oa,2),We=Lt[0],Qt=Lt[1],en;Object(d.useEffect)(function(){ht.visible&&(wt.resetFields(),In([]))},[ht.visible]),Object(d.useEffect)(function(){Mn.current=Xt.taskId},[]),Object(d.useEffect)(function(){var Kn=sessionStorage.getItem("pathArray");if(Kn){var ln=Kn.split(",").join("/"),rn=ln.indexOf("/")===0?ln.substr(1):ln;Qt(rn)}},[]);var _n=function(ln){if(en=ln.file.name,ln.file.status==="done"||ln.file.status==="uploading"){var rn,Sa,ia;if(In(ln.fileList),!ln.file.response)return;if(((rn=ln.file.response)===null||rn===void 0?void 0:rn.status)===0){D.b.success("\u4E0A\u4F20\u6210\u529F\uFF01");return}In(ha.filter(function(qn){return qn.uid!==ln.file.uid})),((Sa=ln.file.response)===null||Sa===void 0?void 0:Sa.message)&&D.b.info((ia=ln.file.response)===null||ia===void 0?void 0:ia.message)}},an=function(){var Kn=Object(fe.a)(T.a.mark(function ln(rn){var Sa;return T.a.wrap(function(qn){for(;;)switch(qn.prev=qn.next){case 0:if(rn.response){qn.next=3;break}return D.b.info("\u8FD8\u672A\u4E0A\u4F20\u5B8C\u6210\uFF0C\u65E0\u6CD5\u8FDB\u884C\u5220\u9664\u64CD\u4F5C\uFF01"),qn.abrupt("return");case 3:return qn.next=5,Dt({type:"shixunsDetail/deleteGitFile",payload:{id:Xt.taskId,path:We?"".concat(We,"/").concat(rn.name):rn.name,message:wt.getFieldValue("commitMessage")||"\u5220\u9664\u4E86".concat(We?"".concat(We,"/").concat(rn.name):rn.name),secret_repository:Ye?null:!0}});case 5:Sa=qn.sent,Sa.status===0&&(In(ha.filter(function(aa){return aa.uid!==rn.uid})),D.b.info("\u5220\u9664\u6210\u529F"));case 7:case"end":return qn.stop()}},ln)}));return function(rn){return Kn.apply(this,arguments)}}(),cn={height:300,multiple:!0,withCredentials:!0,data:function(){var Kn=Object(fe.a)(T.a.mark(function rn(){return T.a.wrap(function(ia){for(;;)switch(ia.prev=ia.next){case 0:return ia.abrupt("return",new Promise(function(){var qn=Object(fe.a)(T.a.mark(function aa(Un,ya){return T.a.wrap(function(mn){for(;;)switch(mn.prev=mn.next){case 0:setTimeout(Object(fe.a)(T.a.mark(function Bt(){var dn,ca;return T.a.wrap(function(Xn){for(;;)switch(Xn.prev=Xn.next){case 0:return Xn.next=2,wt.getFieldsValue();case 2:dn=Xn.sent,ca=Object(oe.a)(Object(oe.a)({},{path:ht.defaultPath?ht.defaultPath:"",message:Ln.commitMessage||"\u4E0A\u4F20\u4E86".concat(en)}),Ye?{}:{secret_repository:!0}),Un(ca);case 5:case"end":return Xn.stop()}},Bt)})),200);case 1:case"end":return mn.stop()}},aa)}));return function(aa,Un){return qn.apply(this,arguments)}}()));case 1:case"end":return ia.stop()}},rn)}));function ln(){return Kn.apply(this,arguments)}return ln}(),fileList:ha,method:"post",action:"".concat(Se.a.API_SERVER,"/api/sci/projects/").concat(Mn.current,"/upload_git_file.json"),onChange:_n,onRemove:an,beforeUpload:function(ln){en=ln.name}},tn=function(){var Kn=Object(fe.a)(T.a.mark(function ln(rn){return T.a.wrap(function(ia){for(;;)switch(ia.prev=ia.next){case 0:return ia.next=2,wt.validateFields();case 2:ht.onClose(),ht.onOK({path:ht.defaultPath});case 4:case"end":return ia.stop()}},ln)}));return function(rn){return Kn.apply(this,arguments)}}(),na=function(){var ln,rn;N.d.push("/shixuns/".concat(Mn.current,"/").concat((ln=Pt.pathname)===null||ln===void 0||((rn=ln.split("/"))===null||rn===void 0)?void 0:rn[3]).concat(We?"/master/shixun_show/".concat(We):""))};return s.a.createElement(L.a,{visible:ht.visible,onOk:tn,centered:!0,onCancel:ht.onClose,width:"70%"},s.a.createElement("section",{className:ke.a.bg},s.a.createElement("div",{className:ke.a.wrap},s.a.createElement("div",{className:ke.a.title},"\u4E0A\u4F20\u6587\u4EF6"),s.a.createElement(S.a,{className:"mt10",form:wt,scrollToFirstError:!0,layout:"vertical",onFinish:tn,onValuesChange:function(){return qt(Object(oe.a)({},wt.getFieldsValue()))}},s.a.createElement(S.a.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63D0\u4EA4\u4FE1\u606F"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},s.a.createElement(B.a,{placeholder:"\u5FC5\u586B\uFF0C\u63CF\u8FF0\u4E3B\u8981\u4FEE\u6539\u5185\u5BB9\uFF08\u76F8\u5F53\u4E8EGit Commit message\u7684Header\uFF09"})),s.a.createElement(S.a.Item,{label:"\u9009\u62E9\u6587\u4EF6",name:"file",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6"}]},s.a.createElement(Ke,cn,s.a.createElement("div",null,s.a.createElement("i",{className:"iconfont icon-shangchuan font50 ".concat(ke.a.colorBlue)})),s.a.createElement("div",{className:"font14 mt30"},"\u62D6\u62FD\u6587\u4EF6\u6216",s.a.createElement("span",{className:"".concat(ke.a.colorBlue," ml5")},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20"))))))))},Ze=Object(N.a)(function(Me){var Oe=Me.shixunsDetail,at=Me.loading,mt=Me.globalSetting,dt=Me.user;return{shixunsDetail:Oe,globalSetting:mt,user:dt,loading:at.models.index}})(He),Be=o("5vmQ"),Xe=o.n(Be),ut=o("hkyu"),lt=o.n(ut),Ct=function(Oe){var at=Oe.shixunsDetail,mt=Oe.globalSetting,dt=Oe.loading,Nt=Oe.dispatch,Dt=Oe.title,Ye=Oe.pathList,ht=Ye===void 0?[]:Ye,Pt=Oe.showInputPath,Xt=Pt===void 0?!1:Pt,_t=Oe.isMergeSelectFile,Zt=_t===void 0?!1:_t,Ln=Oe.onFinish,qt=Ln===void 0?function(){}:Ln,Mn=S.a.useForm(),un=Object(U.a)(Mn,1),ct=un[0],wt=Object(F.i)(),Hn=Object(F.h)(),Jn=Object(d.useRef)(),ha=Object(d.useState)(""),In=Object(U.a)(ha,2),oa=In[0],Lt=In[1],We=Object(d.useState)(""),Qt=Object(U.a)(We,2),en=Qt[0],_n=Qt[1],an=Object(d.useState)([]),cn=Object(U.a)(an,2),tn=cn[0],na=cn[1],Kn=Object(d.useState)([]),ln=Object(U.a)(Kn,2),rn=ln[0],Sa=ln[1];Object(d.useEffect)(function(){var kn,mn;Jn.current=((kn=Hn.pathname)===null||kn===void 0||((mn=kn.split("/"))===null||mn===void 0)?void 0:mn[3])==="repository"},[]),Object(d.useEffect)(function(){if(at.actionTabs.key!=="Repository-SelectFilePath")return;var kn=ht.join("/"),mn=[];ht.map(function(Bt,dn){dn===0?mn.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(Bt),path:kn}):mn.push({val:"/".concat(Bt),path:kn})}),na(mn),Lt(kn),_n(kn),ia(kn)},[at.actionTabs.key]);var ia=function(){var kn=Object(fe.a)(T.a.mark(function mn(Bt){var dn;return T.a.wrap(function(Vn){for(;;)switch(Vn.prev=Vn.next){case 0:return Vn.next=2,Nt({type:Jn.current?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:wt.taskId,path:Bt}});case 2:dn=Vn.sent,dn&&Sa(dn.trees||[]);case 4:case"end":return Vn.stop()}},mn)}));return function(Bt){return kn.apply(this,arguments)}}(),qn=function(mn){var Bt=oa;mn.type==="tree"&&(tn.length?tn.push({val:"/".concat(mn.name),path:mn.name}):tn.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(mn.name),path:mn.name}),na(tn),Bt=oa?"".concat(oa,"/").concat(mn.name):mn.name,Lt(Bt)),ia(Bt)},aa=function(mn,Bt){var dn=tn.filter(function(Vn,Xn){return Xn<=Bt});na(dn);var ca=dn.filter(function(Vn,Xn){return Xn!==0}).map(function(Vn){return Vn.val}).join("").substr(1);Lt(ca),ia(ca)},Un=function(){var kn=Object(fe.a)(T.a.mark(function mn(){var Bt,dn,ca;return T.a.wrap(function(Xn){for(;;)switch(Xn.prev=Xn.next){case 0:if(Bt=ct==null?void 0:ct.getFieldsValue(),dn=oa?"".concat(oa).concat(Bt!=null&&Bt.name?"/".concat(Bt==null?void 0:Bt.name):""):Bt==null?void 0:Bt.name,!Zt){Xn.next=6;break}return qt(dn),ya(),Xn.abrupt("return");case 6:if(!Xt){Xn.next=16;break}return Xn.next=9,ct.validateFields();case 9:return Xn.next=11,Nt({type:"shixunsDetail/uploadGitFolder",payload:Object(oe.a)(Object(oe.a)({},{id:wt.taskId,path:dn}),Jn.current?{}:{secret_repository:!0})});case 11:ca=Xn.sent,qt(en),ca.status===0&&D.b.info("\u65B0\u5EFA\u6210\u529F"),Xn.next=18;break;case 16:qt(dn),D.b.success("\u9009\u62E9\u6587\u4EF6\u76EE\u5F55\u6210\u529F");case 18:ya();case 19:case"end":return Xn.stop()}},mn)}));return function(){return kn.apply(this,arguments)}}(),ya=function(){Nt({type:"shixunsDetail/setActionTabs",payload:{}}),ct.resetFields()};return s.a.createElement(L.a,{centered:!0,title:Dt||"\u65B0\u5EFA\u6587\u4EF6\u5939",closable:!1,keyboard:!1,visible:at.actionTabs.key==="Repository-SelectFilePath",onOk:Un,onCancel:ya},s.a.createElement("div",{className:lt.a.wrap},s.a.createElement("div",{className:lt.a.content},s.a.createElement("div",{className:lt.a.mainPathWrap},!!(tn!=null&&tn.length)&&tn.map(function(kn,mn){return s.a.createElement("a",{key:mn,onClick:function(){return aa(kn,mn)}},kn.val)})),!!(rn!=null&&rn.length)&&rn.map(function(kn,mn){return kn.type==="tree"&&s.a.createElement("a",{key:mn,onClick:function(){return qn(kn)}},s.a.createElement("i",{className:"iconfont icon-wenjianjia ".concat(lt.a.colorBlue)}),kn.name)})),s.a.createElement("label",{className:"mt5"},"\u9009\u4E2D\u7684\u65B0\u5EFA\u6587\u4EF6\u5939\u76EE\u5F55\uFF1A"),s.a.createElement("div",{className:"mt5 mb5"},oa),Xt&&s.a.createElement(S.a,{form:ct,scrollToFirstError:!0,className:"mt20"},s.a.createElement(S.a.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},s.a.createElement(B.a,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u6587\u4EF6\u5939\u540D/\u5B50\u6587\u4EF6\u5939\u540D\u3002\uFF08\u5982\uFF1Asrc/step1\uFF09"})))))},Et=Object(N.a)(function(Me){var Oe=Me.shixunsDetail,at=Me.loading,mt=Me.globalSetting;return{shixunsDetail:Oe,globalSetting:mt,loading:at.models.index}})(Ct),At=o("GZ0F"),kt=o("HBuW"),St=o("1vsH"),Wt=o("NLgs"),fn=o("lzim"),vn=qe.a.DirectoryTree,An=function(Oe){var at,mt,dt=Oe.shixunsDetail,Nt=Oe.globalSetting,Dt=Oe.loading,Ye=Oe.user,ht=Oe.activeKey,Pt=Oe.dispatch,Xt=Oe.practiceSetting,_t=Oe.isRepository,Zt=Oe.treeData,Ln=Oe.setTreeData,qt=Oe.haveAuth,Mn=Object(Q.a)(Oe,["shixunsDetail","globalSetting","loading","user","activeKey","dispatch","practiceSetting","isRepository","treeData","setTreeData","haveAuth"]),un=Object(F.i)(),ct=Object(F.h)(),wt=Object(d.useState)(),Hn=Object(U.a)(wt,2),Jn=Hn[0],ha=Hn[1],In=Object(d.useState)(!1),oa=Object(U.a)(In,2),Lt=oa[0],We=oa[1],Qt=Object(d.useState)(!1),en=Object(U.a)(Qt,2),_n=en[0],an=en[1],cn=Object(d.useState)(!1),tn=Object(U.a)(cn,2),na=tn[0],Kn=tn[1],ln=Object(d.useState)(!1),rn=Object(U.a)(ln,2),Sa=rn[0],ia=rn[1],qn=Object(d.useState)(""),aa=Object(U.a)(qn,2),Un=aa[0],ya=aa[1],kn=Object(d.useState)([]),mn=Object(U.a)(kn,2),Bt=mn[0],dn=mn[1],ca=Object(d.useState)([]),Vn=Object(U.a)(ca,2),Xn=Vn[0],vr=Vn[1],La=Object(d.useState)([]),Fa=Object(U.a)(La,2),Pa=Fa[0],Nr=Fa[1],nr=Object(d.useState)(!1),gr=Object(U.a)(nr,2),Er=gr[0],Ha=gr[1],Fr=Object(d.useState)(),Br=Object(U.a)(Fr,2),sa=Br[0],Tn=Br[1],$n=Object(d.useState)(),Ba=Object(U.a)($n,2),Ka=Ba[0],cr=Ba[1],Ta=Object(d.useState)(""),Qa=Object(U.a)(Ta,2),Or=Qa[0],Ga=Qa[1],Lr=Object(d.useState)(),ar=Object(U.a)(Lr,2),br=ar[0],Kr=ar[1],Sr=Object(d.useState)(!1),Dn=Object(U.a)(Sr,2),bn=Dn[0],yn=Dn[1];Object(d.useEffect)(function(){Ln([]),ir(""),localStorage.warehouseHideTip||Ha(!0)},[ct.pathname,_t]);var Ja=function(){var he=Object(fe.a)(T.a.mark(function I(){var f,M,E=arguments;return T.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return f=E.length>0&&E[0]!==void 0?E[0]:"",q.next=3,Object(kt.Fb)({id:un.taskId,secret_dir_path:f});case 3:M=q.sent,M&&Kr(f);case 5:case"end":return q.stop()}},I)}));return function(){return he.apply(this,arguments)}}(),Mr=function(I){return s.a.createElement(P.a,{className:Xe.a.menu,onClick:function(M){ya(I.path||"");switch(M.key){case"1":Object(St.Y)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u65B0\u5EFA\u6587\u4EF6"]),We(!0);break;case"2":Object(St.Y)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u65B0\u5EFA\u6587\u4EF6\u5939"]),Kn(!0);break;case"3":Object(St.Y)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u4E0A\u4F20"]),ia(!0);break;case"4":Object(St.Y)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u91CD\u547D\u540D"]),an(!0);break;case"5":Object(St.Y)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u5220\u9664"]),xo(I.path,I.name,I);break;case"6":Object(St.Y)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u590D\u5236\u8DEF\u5F84"]),To(I);break}}},(I.type==="topTree"||I.type==="tree")&&s.a.createElement(P.a.Item,{key:"1"},"\u65B0\u5EFA\u6587\u4EF6"),(I.type==="topTree"||I.type==="tree")&&s.a.createElement(P.a.Item,{key:"2"},"\u65B0\u5EFA\u6587\u4EF6\u5939"),(I.type==="topTree"||I.type==="tree")&&s.a.createElement(P.a.Item,{key:"3"},"\u4E0A\u4F20"),I.type!=="topTree"&&I.type!=="tree"&&s.a.createElement(P.a.Item,{key:"4"},"\u91CD\u547D\u540D"),I.type!=="topTree"&&s.a.createElement(Je.CopyToClipboard,{text:"/data/workspace/myshixun/".concat(_t?"":"secret/").concat(I==null?void 0:I.path),onCopy:function(){return D.b.success("\u590D\u5236\u6210\u529F")}},s.a.createElement(P.a.Item,{key:"6"},s.a.createElement(s.a.Fragment,null,"\u590D\u5236\u8DEF\u5F84"))),I.type!=="topTree"&&s.a.createElement(P.a.Item,{key:"5"},"\u5220\u9664"))},Ir=function(I,f){return I.map(function(M){return f==""?M.path=f+M.name:M.path=f+"/"+M.name,M.title=s.a.createElement(u.a,{className:"font14"},s.a.createElement(m.a,{flex:"1"},s.a.createElement(u.a,null,s.a.createElement(m.a,{flex:"20px"},M.type==="blob"&&s.a.createElement("span",{className:"iconfont icon-wenjian11 font12"})),s.a.createElement(m.a,{flex:"1"},s.a.createElement("span",{className:" multi_ellipsis1"},M.name)))),qt&&s.a.createElement(m.a,null,(M.type==="blob"||M.type==="tree")&&s.a.createElement(v.a,{overlay:Mr(M),className:Xe.a.ellipsis},s.a.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"})))),M.disableCheckbox=Jn&&Jn!==M.name,M.className=M.type==="tree"?Xe.a.pl23:"",M.checkable=M.type!=="tree",M.isLeaf=M.type!=="tree",M.children=M.type==="tree"&&[],M.key=M.path,M})},Rr=function(I){Pt({type:"practiceSetting/setSideBarTabs",payload:{selectPath:I}})},Jr=function(){var he=Object(fe.a)(T.a.mark(function I(f,M){var E;return T.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return E=f.split("/"),q.next=3,ir(Un);case 3:setTimeout(function(){Rr(f),Bt=[E[0]||""],Xn=[f],vr(Object(Ie.a)(Xn)),dn(Object(Ie.a)(Bt))},150);case 4:case"end":return q.stop()}},I)}));return function(f,M){return he.apply(this,arguments)}}(),uo=function(I,f){if(f=="")Zt=Object(Ie.a)(I),Ln(Object(Ie.a)(I));else{var M=co(Zt,f,I);Zt=M,Ln(Object(Ie.a)(M))}};function co(he,I,f){return he.map(function(M){return M.key===I?(M.children=Object(Ie.a)(f),Object(oe.a)({},M)):M.children?Object(oe.a)(Object(oe.a)({},M),{},{children:co(M.children,I,f)}):M})}var ir=function(){var he=Object(fe.a)(T.a.mark(function I(){var f,M,E,G,q,ve=arguments;return T.a.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return f=ve.length>0&&ve[0]!==void 0?ve[0]:"",Ae.next=3,Pt({type:_t?"shixunsDetail/getRepositorys":"shixunsDetail/getSecretRepository",payload:{id:un.taskId,path:f}});case 3:return M=Ae.sent,M&&((E=M.trees)!==null&&E!==void 0&&E.length?(q=Ir(Object(Ie.a)(M.trees),f),uo(q,f),Nr(M.trees||[]),cr(f||""),console.log("handleGetRepository:",q,f),setTimeout(function(){return console.log(Zt,M.trees,f,999999)},2e3)):f==""&&Ln([]),Tn(((G=M.commits)===null||G===void 0?void 0:G[0])||{})),Ae.abrupt("return",M);case 6:case"end":return Ae.stop()}},I)}));return function(){return he.apply(this,arguments)}}(),$o=function(){var he=Object(fe.a)(T.a.mark(function I(f){return T.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.abrupt("return",new Promise(function(){var G=Object(fe.a)(T.a.mark(function q(ve,me){return T.a.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return f.children.length&&ve(),Ga(f.path),Fe.next=4,ir(f.path);case 4:ve();case 5:case"end":return Fe.stop()}},q)}));return function(q,ve){return G.apply(this,arguments)}}()));case 1:case"end":return E.stop()}},I)}));return function(f){return he.apply(this,arguments)}}(),wo=function(){var he=Object(fe.a)(T.a.mark(function I(f,M){var E,G;return T.a.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:if(console.log("handleSelectTree",f,M.nativeEvent.target.nodeName,M),E=function(){Rr(M.node.path),f=[M.node.path],vr(Object(Ie.a)(f))},!(M.nativeEvent.target.nodeName==="svg"||M.nativeEvent.target.nodeName==="LI"||M.nativeEvent.target.nodeName==="I")){ve.next=4;break}return ve.abrupt("return");case 4:M.node.type==="blob"&&(Xt!=null&&(G=Xt.sideBar)!==null&&G!==void 0&&G.confirmLeave?L.a.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){E(),Pt({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})}}):E());case 5:case"end":return ve.stop()}},I)}));return function(f,M){return he.apply(this,arguments)}}(),xo=function(I,f,M){L.a.confirm({centered:!0,title:"\u786E\u8BA4\u9700\u8981\u5220\u9664\u8BE5\u6587\u4EF6".concat(M.children?"\u5939":"","?"),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){var E=Object(fe.a)(T.a.mark(function q(){var ve,me,Ae;return T.a.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:return Ve.next=2,Pt({type:"shixunsDetail/deleteGitFiles",payload:{id:un.taskId,path:I,message:"\u5220\u9664".concat(I),secret_repository:_t?null:!0}});case 2:if(ve=Ve.sent,me=I.split("/"),!((ve==null?void 0:ve.status)===0)){Ve.next=20;break}return D.b.info("\u5220\u9664\u6210\u529F"),me.splice(me.length-1,1),Ve.next=9,ir(me.length>1?me.join("/"):"");case 9:if(Ae=Ve.sent,!(Ae!=null&&Ae.trees)){Ve.next=13;break}Ve.next=16;break;case 13:return me.splice(me.length-1,1),Ve.next=16,ir(me.length>1?me.join("/"):"");case 16:return Rr(""),Ve.abrupt("return",!0);case 20:(ve==null?void 0:ve.status)===-3&&L.a.confirm({title:"\u5220\u9664\u5931\u8D25",content:s.a.createElement("div",null,"\u8BE5\u6587\u4EF6\u201C",I,"\u201D\u5DF2\u7ECF\u88AB\u4EFB\u52A1\u5173\u5361\u7684\u5B66\u5458\u4EFB\u52A1\u6587\u4EF6\u6216\u8BC4\u6D4B\u6267\u884C\u6587\u4EF6\u4F7F\u7528\uFF0C\u8BF7\u5148\u4FEE\u6539\u4EFB\u52A1\u5173\u5361\u4E2D\u8BC4\u6D4B\u8BBE\u7F6E\u7684\u6587\u4EF6\u8DEF\u5F84\u540E\u518D\u5220\u9664\u3002"),okText:"\u524D\u5F80\u4FEE\u6539",cancelText:"\u53D6\u6D88",onOk:function(){window.location.href="/shixuns/".concat(un.taskId,"/edit/").concat(ve==null?void 0:ve.message,"/tab=2")}});case 21:case"end":return Ve.stop()}},q)}));function G(){return E.apply(this,arguments)}return G}()})},To=function(I){console.log(I,"item")},ei=function(){var he=Object(fe.a)(T.a.mark(function I(f,M){return T.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:if(console.log("handleExpand",M),!(M.nativeEvent.target.nodeName==="svg"||M.nativeEvent.target.nodeName==="path"||M.nativeEvent.target.nodeName==="LI")){G.next=5;break}return G.abrupt("return",!0);case 5:return G.next=7,$o(M.node);case 7:Bt.includes(M.node.path)?Bt.splice(Bt.indexOf(M.node.path),1):Bt.push(M.node.path);case 8:dn(Object(Ie.a)(Bt));case 9:case"end":return G.stop()}},I)}));return function(f,M){return he.apply(this,arguments)}}(),Wr=function(){Ha(!1),localStorage.warehouseHideTip=!0},Ur=function(){var he=Object(fe.a)(T.a.mark(function I(f){var M,E,G,q,ve;return T.a.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:G="",Ae.t0=_t,Ae.next=Ae.t0===!0?4:Ae.t0===!1?9:11;break;case 4:return G="\u5F00\u542F\u7248\u672C\u5E93",q="\u5F00\u542F",ve="\u4E0D\u5F00\u542F",E=s.a.createElement("div",null,"\u65B0\u5EFA\u5B9E\u8DF5\u9898\u5173\u5361\u65F6\uFF0C\u9700\u8981\u4F7F\u7528\u4EE3\u7801\u4ED3\u5E93\uFF1B\u5982\u679C\u53EA\u6709\u9009\u62E9\u9898\u5173\u5361\uFF0C\u5219\u4E0D\u9700\u8981\u4EE3\u7801\u4ED3\u5E93\u3002\u4EE3\u7801\u4ED3\u5E93\u542F\u7528\u540E\uFF0C\u5C06\u65E0\u6CD5\u5173\u95ED\u3002"),Ae.abrupt("break",11);case 9:return dt!=null&&(M=dt.detail)!==null&&M!==void 0&&M.secret_repository?(G="\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",q="\u786E\u5B9A",ve="\u53D6\u6D88",E=s.a.createElement("div",null,"\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93\u540E\uFF0C\u5DF2\u521B\u5EFA\u7684\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93\u53CA\u5176\u5185\u5BB9\uFF0C\u5C06\u88AB\u5220\u9664\u3002\u786E\u8BA4\u8981\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93\uFF1F")):(G="\u5F00\u542F\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",q="\u4E0D\u4F7F\u7528",ve="\u4F7F\u7528",E=s.a.createElement("div",null,"\u79C1\u5BC6\u7248\u672C\u5E93\u7684\u6587\u4EF6\u5BF9\u5B66\u5458\u59CB\u7EC8\u9690\u85CF\uFF0C\u65E0\u6CD5\u8BBF\u95EE\u67E5\u770B\u3002\u9002\u7528\u4E8E\u547D\u4EE4\u884C\u3001\u56FE\u5F62\u5316\u684C\u9762\u4E24\u7C7B\u5B9E\u8BAD\uFF0C\u5176\u4ED6\u7C7B\u578B\u5B9E\u8BAD\u4E0D\u5EFA\u8BAE\u4F7F\u7528\u79C1\u5BC6\u7248\u672C\u5E93\u3002")),Ae.abrupt("break",11);case 11:if(!(!_t&&Object(Wt.b)(Pt,"\u4E0D\u80FD\u5F00\u542F/\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93"))){Ae.next=13;break}return Ae.abrupt("return");case 13:L.a.confirm({title:G,okText:q,cancelText:ve,content:E,onOk:function(){var Ve;Object(St.Y)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93",G]),!_t&&!(dt!=null&&(Ve=dt.detail)!==null&&Ve!==void 0&&Ve.secret_repository)||fo(f)},onCancel:function(){var Ve;!_t&&!(dt!=null&&(Ve=dt.detail)!==null&&Ve!==void 0&&Ve.secret_repository)&&fo(f)}});case 14:case"end":return Ae.stop()}},I)}));return function(f){return he.apply(this,arguments)}}(),fo=function(){var he=Object(fe.a)(T.a.mark(function I(f){return T.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(!_t){E.next=6;break}return E.next=3,Object(kt.r)({id:un.taskId});case 3:Pt({type:"practiceSetting/getCommonData",payload:{id:un.taskId}}),E.next=8;break;case 6:return E.next=8,Object(kt.s)({id:un.taskId,is_secret_repository:f});case 8:ir(),Pt({type:"shixunsDetail/getShixunsDetail",payload:{id:un.taskId}});case 10:case"end":return E.stop()}},I)}));return function(f){return he.apply(this,arguments)}}(),V=function(I){console.log(I)},ge=function(){var he=Object(fe.a)(T.a.mark(function I(f){var M,E,G,q,ve,me,Ae,Fe,Ve,nt,gt;return T.a.wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:if(console.log(f),M=f.node.key,E=f.dragNode.key,G=f.node.pos.split("-"),q=f.dropPosition-Number(G[G.length-1]),!(f.dragNode.type==="tree")){Gt.next=8;break}return D.b.warn("\u4E0D\u652F\u6301\u6587\u4EF6\u5939\u79FB\u52A8\u76EE\u5F55"),Gt.abrupt("return");case 8:if(!(f.node.type!=="tree")){Gt.next=11;break}return D.b.warn("\u672A\u79FB\u52A8\u6587\u4EF6\u76EE\u5F55\u4F4D\u7F6E"),Gt.abrupt("return");case 11:return Gt.next=13,Pt({type:"shixunsDetail/moveGitFiles",payload:{id:un.taskId,from:f.dragNode.path,to:f.node.path+"/"+f.dragNode.name,message:"".concat(f.dragNode.path," move to ").concat(f.node.path+"/"+f.dragNode.name," ")}});case 13:if(ve=Gt.sent,!(ve.status===0)){Gt.next=26;break}return Rr(""),Gt.next=18,ir("");case 18:me=0;case 19:if(!(me=10&&!Object(K.v)()){qt({type:"innovation/openSimpleModal",payload:{title:"\u9879\u76EE\u6570\u91CF\u8FBE\u5230\u4E0A\u9650",children:"\u6BCF\u4F4D\u7528\u6237\u6700\u591A\u53EA\u80FD\u521B\u5EFA10\u4E2A\u9879\u76EE\uFF0C\u4F60\u7684\u9879\u76EE\u6570\u91CF\u5DF2\u7ECF\u8FBE\u5230\u4E0A\u9650\u3002",footer:s.a.createElement(p.a,{onClick:function(){return qt({type:"innovation/closeSimpleModal"})},type:"primary"},"\u6211\u77E5\u9053\u4E86")}});return}qt({type:"innovation/save",payload:{visibleModalName:"fork-project",openForkModalPosition:ca}})},mn=function(){N.d.push("/innovation/project/edit/".concat(Lt))},Bt=function(){qt({type:"innovation/openModal",payload:"delete-project"})};return s.a.createElement(J.a,{spinning:ha},ct&&s.a.createElement("div",{className:w.a.project_detail_wrapper},s.a.createElement(u.a,{justify:"space-between",align:"middle",style:{marginBottom:10}},s.a.createElement(m.a,{className:w.a.title,span:20},ct.sci_project.username," / ",ct.sci_project.name),s.a.createElement(m.a,{span:4,style:{textAlign:"right"}},s.a.createElement(p.a,{icon:s.a.createElement(ue.a,null),className:w.a.fork_btn,onClick:function(){return kn("forkButton")}},s.a.createElement("span",null,ct.sci_project.forked_count)))),s.a.createElement(ta,{ellipsis:{rows:3,expandable:!0,symbol:s.a.createElement("span",{style:{color:"#165dff"}},"\u5C55\u5F00",s.a.createElement(Y.a,null))},className:w.a.desc},ct.sci_project.description),s.a.createElement(u.a,{justify:"space-between"},s.a.createElement(m.a,{className:w.a.info},s.a.createElement("span",null,"\u9879\u76EE\u73AF\u5883\uFF1A",ct.mirror_repository_info.name),s.a.createElement("span",{className:w.a.create_time},"\u521B\u5EFA\u65F6\u95F4\uFF1A",xe()(ct.sci_project.created_at).format("YYYY-MM-DD HH:mm"))),an&&s.a.createElement(m.a,{className:w.a.operation},s.a.createElement("span",{onClick:mn},"\u7F16\u8F91"),cn&&s.a.createElement("span",{className:w.a.delete_btn,onClick:Bt},"\u5220\u9664"))),s.a.createElement(_.a,null),s.a.createElement(ne.a,{activeKey:en,onChange:function(ca){_n(ca)},tabBarExtraContent:{right:s.a.createElement(p.a,{type:"primary"},s.a.createElement("a",{onClick:function(){if(!an){window.localStorage.getItem("hideRemindModal")==="true"?kn("forkButton"):qt({type:"innovation/save",payload:{visibleModalName:"remindfork-project",hideRemindModal:!0}});return}Object(j.h)(Lt).then(function(ca){if(wt(ca),ca.verify_info.status===-1){ln(!0),ya.setFieldsValue({max_cpu:2,min_cpu:.2,max_memory:1024,min_memory:1024,max_disk:1e3,survival_time:.5});return}if(ca.verify_info.status===0){L.a.warning({title:"\u542F\u52A8\u73AF\u5883\u63D0\u793A",content:"\u73AF\u5883\u8D44\u6E90\u6B63\u5728\u3010\u5BA1\u6838\u4E2D\u3011\uFF0C\u5BA1\u6838\u901A\u8FC7\u540E\u624D\u80FD\u542F\u52A8\u73AF\u5883",okText:"\u67E5\u770B\u5BA1\u6838\u7ED3\u679C",onOk:function(){_n("3")}});return}if(ca.verify_info.status===1&&N.d.push("/innovation/tasks/".concat(Lt)),ca.verify_info.status===2){L.a.warning({title:"\u542F\u52A8\u73AF\u5883\u63D0\u793A",content:"\u60A8\u7533\u8BF7\u7684\u73AF\u5883\u8D44\u6E90\u3010\u672A\u901A\u8FC7\u3011\uFF0C\u65E0\u6CD5\u542F\u52A8\u73AF\u5883\u3002",okText:"\u67E5\u770B\u5BA1\u6838\u7ED3\u679C",onOk:function(){_n("3")}});return}})},target:"_blank"},"\u542F\u52A8\u73AF\u5883"))}},s.a.createElement($t,{tab:"\u4EE3\u7801",key:"1"},s.a.createElement(Mt,{haveAuth:an})),s.a.createElement($t,{tab:"\u6570\u636E\u96C6",key:"2"},s.a.createElement(Ft.a,{detail:ct})),s.a.createElement($t,{tab:"\u5408\u4F5C\u8005",key:"4"},s.a.createElement(xn.a,{position:"detail"})),s.a.createElement($t,{tab:"\u73AF\u5883\u4FE1\u606F",key:"3"},s.a.createElement("div",{className:w.a.huanj},s.a.createElement("div",{className:w.a.divtitle},s.a.createElement("p",null,"\u786C\u4EF6\u4FE1\u606F"),s.a.createElement("div",{style:{marginLeft:28}},s.a.createElement("div",null,s.a.createElement("label",null,"CPU\uFF1A"),s.a.createElement("span",null,(ct==null||((at=ct.sci_project_config)===null||at===void 0)?void 0:at.max_cpu)+"\u6838"||!1)),s.a.createElement("div",null,s.a.createElement("label",null,"\u6700\u4F4ECPU\uFF1A"),s.a.createElement("span",null,(ct==null||((mt=ct.sci_project_config)===null||mt===void 0)?void 0:mt.min_cpu)+"\u6838"||!1)),s.a.createElement("div",null,s.a.createElement("label",null,"\u5185\u5B58\u9650\u5236\uFF1A"),s.a.createElement("span",null,(ct==null||((dt=ct.sci_project_config)===null||dt===void 0)?void 0:dt.max_memory)+"M"||!1)),s.a.createElement("div",null,s.a.createElement("label",null,"\u5185\u5B58\u8981\u6C42\uFF1A"),s.a.createElement("span",null,(ct==null||((Nt=ct.sci_project_config)===null||Nt===void 0)?void 0:Nt.min_memory)+"M"||!1)),s.a.createElement("div",null,s.a.createElement("label",null,"\u78C1\u76D8\u9650\u5236\uFF1A"),s.a.createElement("span",null,(ct==null||((Dt=ct.sci_project_config)===null||Dt===void 0)?void 0:Dt.max_disk)+"G"||!1)),s.a.createElement("div",null,s.a.createElement("label",null,"GPU\u6570\u91CF\uFF1A"),s.a.createElement("span",null,(ct==null||((Ye=ct.sci_project_config)===null||Ye===void 0)?void 0:Ye.gpu)||"- -")))),s.a.createElement("div",{className:w.a.divtitle},s.a.createElement("p",null,"\u73AF\u5883\u65F6\u95F4"),s.a.createElement("div",{style:{marginLeft:28}},s.a.createElement("label",null,"\u73AF\u5883\u65F6\u957F\uFF1A"),s.a.createElement("span",null,(ct==null||((ht=ct.sci_project_config)===null||ht===void 0)?void 0:ht.survival_time)+"\u5C0F\u65F6"||!1))),s.a.createElement("div",{className:w.a.divtitle},s.a.createElement("p",null,"\u5BA1\u6838\u72B6\u6001"),s.a.createElement("div",{style:{marginLeft:28}},s.a.createElement("label",null,"\u5BA1\u6838\u72B6\u6001\uFF1A"),s.a.createElement("span",{style:{color:Tt[parseInt("".concat(ct==null||((Pt=ct.verify_info)===null||Pt===void 0)?void 0:Pt.status))+1]}},(ct==null||((Xt=ct.verify_info)===null||Xt===void 0)?void 0:Xt.status_cn)||"- -")),s.a.createElement("div",{style:{marginLeft:28,wordBreak:"break-all"}},s.a.createElement("label",null,"\u672A\u901A\u8FC7\u539F\u56E0\uFF1A"),s.a.createElement("span",null,(ct==null||((_t=ct.verify_info)===null||_t===void 0)?void 0:_t.refuse_reason)||"- -")))),s.a.createElement("div",{style:{textAlign:"center"}},s.a.createElement(p.a,{disabled:(ct==null||((Zt=ct.verify_info)===null||Zt===void 0)?void 0:Zt.status)<=0,onClick:function(){ya.setFieldsValue(Object(oe.a)({},ct==null?void 0:ct.sci_project_config)),ln(!0)},style:{marginTop:30,textAlign:"center"},type:"primary"},"\u91CD\u65B0\u7533\u8BF7")))),s.a.createElement(ye,{detail:ct}),s.a.createElement(ie,{projectId:Lt}),s.a.createElement(Gn,{openForkModal:kn})),s.a.createElement(L.a,{title:"\u542F\u52A8\u73AF\u5883",visible:Kn,okButtonProps:{loading:ia},onCancel:function(){ln(!1)},onOk:function(){ya.submit()}},s.a.createElement("div",null,s.a.createElement(S.a,{labelCol:{span:6},wrapperCol:{span:18},form:ya,preserve:!1,onFinish:function(){var dn=Object(fe.a)(T.a.mark(function ca(Vn){var Xn;return T.a.wrap(function(La){for(;;)switch(La.prev=La.next){case 0:return qn(!0),La.next=3,Object(wn.a)("/api/sci/projects/".concat(Lt,"/commit_verify.json"),{method:"POST",body:Object(oe.a)({},Vn)});case 3:Xn=La.sent,ln(!1),Object(j.h)(Lt).then(function(Fa){if(In(!1),Fa.status)return;wt(Fa)}),D.b.info("\u63D0\u4EA4\u5BA1\u6838\u6210\u529F"),qn(!1);case 8:case"end":return La.stop()}},ca)}));return function(ca){return dn.apply(this,arguments)}}()},s.a.createElement(S.a.Item,{label:"CPU(\u6838)",name:"max_cpu",rules:[{required:!0}]},s.a.createElement($.a,{min:0,style:{width:"100%"}})),s.a.createElement(S.a.Item,{label:"\u6700\u4F4ECPU(\u6838)",name:"min_cpu",rules:[{required:!0}]},s.a.createElement($.a,{min:0,style:{width:"100%"}})),s.a.createElement(S.a.Item,{label:"\u5185\u5B58\u9650\u5236(M)",name:"max_memory",rules:[{required:!0}]},s.a.createElement($.a,{min:0,style:{width:"100%"}})),s.a.createElement(S.a.Item,{label:"\u5185\u5B58\u8981\u6C42(M)",name:"min_memory",rules:[{required:!0}]},s.a.createElement($.a,{min:0,style:{width:"100%"}})),s.a.createElement(S.a.Item,{label:"\u78C1\u76D8\u9650\u5236(G)",name:"max_disk",rules:[{required:!0}],initialValue:1},s.a.createElement($.a,{min:0,style:{width:"100%"}})),s.a.createElement(S.a.Item,{label:"GPU\u6570\u91CF",name:"gpu"},s.a.createElement($.a,{min:0,style:{width:"100%"},precision:0})),s.a.createElement(S.a.Item,{label:"\u73AF\u5883\u65F6\u957F(\u5C0F\u65F6)",name:"survival_time",rules:[{required:!0}]},s.a.createElement($.a,{min:.1,style:{width:"100%"},precision:1}))))))},ua=k.default=Object(N.a)(function(Me){var Oe=Me.innovation,at=Me.user;return{innovation:Oe,user:at}})(Nn)}}]); + a `).concat(te,",").concat(te," 0 1 1 ").concat(-xe,",").concat(Se),re=Math.PI*2*te,Ee={stroke:j,strokeDasharray:"".concat(w/100*(re-ee),"px ").concat(re,"px"),strokeDashoffset:"-".concat(ee/2+H/100*(re-ee),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:X,pathStyle:Ee}}var Y=function(w){var j=w.prefixCls,K=w.strokeWidth,ee=w.trailWidth,B=w.gapDegree,te=w.gapPosition,ye=w.trailColor,Pe=w.strokeLinecap,xe=w.style,Se=w.className,X=w.strokeColor,re=w.percent,Ee=_e(w,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),ie=Object(le.useMemo)(function(){return T+=1,T},[]),Ce=ue(0,100,ye,K,B,te),v=Ce.pathString,W=Ce.pathStyle,P=s(re),ce=s(X),R=ce.find(function(Ge){return Object.prototype.toString.call(Ge)==="[object Object]"}),Q=D(P),be=y(Q,1),De=be[0],Ie=function(){var qe=0;return P.map(function(Je,$e){var it=ce[$e]||ce[ce.length-1],xt=Object.prototype.toString.call(it)==="[object Object]"?"url(#".concat(j,"-gradient-").concat(ie,")"):"",vt=ue(qe,Je,it,K,B,te);return qe+=Je,J.a.createElement("path",{key:$e,className:"".concat(j,"-circle-path"),d:vt.pathString,stroke:xt,strokeLinecap:Pe,strokeWidth:K,opacity:Je===0?0:1,fillOpacity:"0",style:vt.pathStyle,ref:De[$e]})})};return J.a.createElement("svg",p({className:$()("".concat(j,"-circle"),Se),viewBox:"0 0 100 100",style:xe},Ee),R&&J.a.createElement("defs",null,J.a.createElement("linearGradient",{id:"".concat(j,"-gradient-").concat(ie),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(R).sort(function(Ge,qe){return d(Ge)-d(qe)}).map(function(Ge,qe){return J.a.createElement("stop",{key:qe,offset:Ge,stopColor:R[Ge]})}))),J.a.createElement("path",{className:"".concat(j,"-circle-trail"),d:v,stroke:ye,strokeLinecap:Pe,strokeWidth:ee||K,fillOpacity:"0",style:W}),Ie().reverse())};Y.defaultProps=x;var F=Y,N={Line:E,Circle:F}},hW8S:function(Te,k,o){"use strict";o.d(k,"a",function(){return $}),o.d(k,"c",function(){return x}),o.d(k,"b",function(){return D});var le=o("VTBJ"),J=o("Ff2n"),Re=o("Kwbf"),$="RC_TABLE_INTERNAL_COL_DEFINE";function x(fe){var oe=fe.expandable,z=Object(J.a)(fe,["expandable"]);return"expandable"in fe?Object(le.a)(Object(le.a)({},z),oe):z}function D(fe){return Object.keys(fe).reduce(function(oe,z){return(z.substr(0,5)==="data-"||z.substr(0,5)==="aria-")&&(oe[z]=fe[z]),oe},{})}},hkyu:function(Te,k,o){Te.exports={wrap:"wrap___hPGmS",content:"content___1XTHE",mainPathWrap:"mainPathWrap___11rfN",colorBlue:"colorBlue___2VVM9"}},izBO:function(Te,k,o){Te.exports={project_detail_wrapper:"project_detail_wrapper___rJ-Mx",nav:"nav___3BChd",title:"title___GTqUx",fork_btn:"fork_btn___nboaj",desc:"desc___1z6g-",info:"info___3PtJ2",create_time:"create_time___nwaZK",operation:"operation___1m5fw",delete_btn:"delete_btn___xeY9n",fork_modal:"fork_modal___Ei2wB",huanj:"huanj___PC6QJ",divtitle:"divtitle___1gI6J"}},jXuf:function(Te,k,o){Te.exports={flex_box_center:"flex_box_center___3Ouij",flex_space_between:"flex_space_between___3WHV3",flex_box_vertical_center:"flex_box_vertical_center___3K6xk",flex_box_center_end:"flex_box_center_end___3I9F3",flex_box_column:"flex_box_column___2SmSH",menu:"menu___2J6wm",warehouse:"warehouse___d9ftl",header:"header___hc_Il",title:"title___PreFj",content:"content___2IjnJ",left:"left___Fe2wU",right:"right___1Fnvj",loading:"loading___GJpKF",empty:"empty___16OZa",tabs:"tabs___2OSoH",line:"line___1Uk38",footer:"footer___2CyzV",commit:"commit___2v0hU",blueLight:"blueLight___2iJfz",filePathWrp:"filePathWrp___6LEw5",filePath:"filePath___4ZJkW",bottom0:"bottom0___4DQ3y"}},ji0R:function(Te,k,o){Te.exports=o.p+"static/douyu.3e6df9ee.jpg"},ju9d:function(Te,k,o){"use strict";var le=o("g9YV"),J=o("wCAj"),Re=o("miYZ"),$=o("tsqr"),x=o("5Dmo"),D=o("3S7+"),fe=o("sRBo"),oe=o("kaz8"),z=o("oBTY"),L=o("9og8"),C=o("tJVT"),_=o("k1fw"),O=o("+L6B"),u=o("2/Rp"),g=o("O3gP"),m=o("lrIw"),E=o("y8nQ"),p=o("Vl3Y"),y=o("5NDa"),S=o("5rEg"),U=o("WmNS"),Z=o.n(U),ne=o("q1tI"),de=o.n(ne),_e=o("55Ip"),ae=o("wd/R"),T=o.n(ae),d=o("RotF"),s=o.n(d),ue=o("E7E6"),Y=o.n(ue),F=o("oUNq"),N=[];function H(ee){var B=ee.onSearch,te=ee.schools;return de.a.createElement(p.a,{layout:"inline",onFinish:B,initialValues:{keyword:"",school_name:""},className:"search-form"},de.a.createElement(p.a.Item,{label:"\u59D3\u540D",name:"keyword",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u59D3\u540D"}]},de.a.createElement(S.a,{allowClear:!0,style:{width:370},size:"large"})),de.a.createElement(p.a.Item,{label:"\u5355\u4F4D",name:"school_name"},de.a.createElement(m.a,{options:te,style:{width:400},size:"large",showSearch:!0,filterOption:function(Pe,xe){return xe.value.toUpperCase().indexOf(Pe.toUpperCase())!==-1},placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0"})),de.a.createElement(p.a.Item,null,de.a.createElement(u.a,{type:"primary",htmlType:"submit"},"\u641C\u7D22")))}var w;(function(ee){ee[ee.INITDATA=0]="INITDATA",ee[ee.INITSCHOOLS=1]="INITSCHOOLS",ee[ee.SHOWLOADING=2]="SHOWLOADING",ee[ee.SELECTEDIDS=3]="SELECTEDIDS",ee[ee.SETQUERY=4]="SETQUERY",ee[ee.SETPAGE=5]="SETPAGE"})(w||(w={}));function j(ee,B){switch(B.type){case w.INITDATA:return Object(_.a)(Object(_.a)({},ee),B.payload);case w.SETQUERY:return Object(_.a)(Object(_.a)({},ee),B.payload);case w.SETPAGE:return Object(_.a)(Object(_.a)({},ee),{},{page:B.payload,reload:!1});case w.SHOWLOADING:return Object(_.a)(Object(_.a)({},ee),{},{loading:B.payload});case w.INITSCHOOLS:return Object(_.a)(Object(_.a)({},ee),{},{schools:B.payload});case w.SELECTEDIDS:return Object(_.a)(Object(_.a)({},ee),{},{selectedIds:B.payload});default:throw new Error}}var K={data:[],schools:[],loading:!1,selectedIds:[],query:null,page:1,count:0,reload:!1};k.a=function(ee){var B=ee.onSelect,te=ee.onCancel,ye=ee.container_id,Pe=ee.container_type,xe=Object(ne.useReducer)(j,K),Se=Object(C.a)(xe,2),X=Se[0],re=Se[1],Ee=X.data,ie=X.schools,Ce=X.loading,v=X.selectedIds,W=X.page,P=X.count,ce=X.query,R=X.reload;Object(ne.useEffect)(function(){function Je(){return $e.apply(this,arguments)}function $e(){return $e=Object(L.a)(Z.a.mark(function it(){var xt,vt,Ut;return Z.a.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return je.next=2,Object(F.wb)(Object(_.a)(Object(_.a)({},ce),{},{page:W,container_type:Pe,container_id:ye}));case 2:xt=je.sent,vt=xt.users,Ut=xt.user_count,re({type:w.INITDATA,payload:{data:R?vt:[].concat(Object(z.a)(Ee),Object(z.a)(vt)),count:Ut}});case 6:case"end":return je.stop()}},it)})),$e.apply(this,arguments)}ce&&Je()},[W,ce,R,ye,Pe]),Object(ne.useEffect)(function(){function Je(){return $e.apply(this,arguments)}function $e(){return $e=Object(L.a)(Z.a.mark(function it(){var xt,vt;return Z.a.wrap(function(Ht){for(;;)switch(Ht.prev=Ht.next){case 0:return Ht.next=2,Object(F.kb)({});case 2:xt=Ht.sent,vt=xt.school_names,re({type:w.INITSCHOOLS,payload:vt.map(function(je){return{value:je}})});case 5:case"end":return Ht.stop()}},it)})),$e.apply(this,arguments)}Je()},[]);var Q=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function($e,it){return de.a.createElement(oe.a,{value:it.numid,checked:v.includes(it.numid),disabled:!!$e})}},{title:"\u59D3\u540D",width:100,ellipsis:!0,dataIndex:"username",render:function($e,it){return de.a.createElement(D.a,{placement:"bottom",title:$e},de.a.createElement(_e.a,{className:"bold c-black",to:"/users/".concat(it.login),target:"_blank"},$e||"--"))}},{title:"\u624B\u673A",width:100,dataIndex:"phone",ellipsis:!0,render:function($e){return de.a.createElement(D.a,{placement:"bottom",title:$e},de.a.createElement("span",null,$e||"--"))}},{title:"\u90AE\u7BB1",dataIndex:"email",width:100,ellipsis:!0,render:function($e){return de.a.createElement(D.a,{placement:"bottom",title:$e},de.a.createElement("span",null,$e||"--"))}},{title:"\u5B66\u53F7/\u5DE5\u53F7",width:100,dataIndex:"student_number",ellipsis:!0,render:function($e){return de.a.createElement(D.a,{placement:"bottom",title:$e},de.a.createElement("span",null,$e||"--"))}},{title:"\u5B66\u6821/\u5355\u4F4D",width:150,dataIndex:"school_name",ellipsis:!0,render:function($e){return de.a.createElement(D.a,{placement:"bottom",title:$e},de.a.createElement("span",null,$e||"--"))}},{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"depart_name",width:130,ellipsis:!0,render:function($e){return de.a.createElement(D.a,{placement:"bottom",title:$e},de.a.createElement("span",null,$e||"--"))}},{title:"\u5B9E\u540D\u8BA4\u8BC1",dataIndex:"auth",width:100,render:function($e){return $e?"\u662F":"\u5426"}},{title:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_on",width:140,ellipsis:!0,render:function($e){return de.a.createElement(D.a,{placement:"bottom",title:$e},de.a.createElement("span",null,T()($e).format("YYYY-MM-DD HH:mm")))}},{title:"\u72B6\u6001",dataIndex:"added",width:80,render:function($e){if($e===1)return de.a.createElement("span",{className:"c-green"},"\u5DF2\u6DFB\u52A0")}}];function be(Je){re({type:w.SETQUERY,payload:{page:1,reload:!0,query:Je}})}function De(Je){re({type:w.SETPAGE,payload:Je})}function Ie(Je){var $e=v.indexOf(Je);$e>=0?v.splice($e,1):v.push(Je),re({type:w.SELECTEDIDS,payload:Object(z.a)(v)})}function Ge(){v.length===0?$.b.warn("\u8BF7\u5148\u5728\u4E0B\u9762\u5217\u8868\u4E2D\u9009\u62E9\u8981\u6DFB\u52A0\u6210\u5458"):(B(v,ye),re({type:w.INITDATA,payload:{data:[],count:0,page:1,selectedIds:[],query:null,reload:!1}}))}var qe=P>W*10;return de.a.createElement("div",{className:"select-user-container"},de.a.createElement(H,{onSearch:be,schools:ie}),ce?de.a.createElement(de.a.Fragment,null,de.a.createElement("div",{className:"flexd-table-header mt20"},de.a.createElement(J.a,{pagination:!1,dataSource:N,columns:Q})),de.a.createElement("div",{style:{maxHeight:260,overflow:"auto",marginBottom:20}},de.a.createElement(s.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:De,hasMore:qe,useWindow:!1},de.a.createElement(J.a,{loading:Ce,showHeader:!1,pagination:!1,dataSource:Ee,columns:Q,onRow:function($e){return{onClick:function(xt){$e.added!==1&&Ie($e.numid)}}}}))),de.a.createElement("div",{className:"flex-container flex-end"},de.a.createElement(u.a,{type:"ghost",style:{marginRight:10},onClick:te},"\u53D6\u6D88"),de.a.createElement(u.a,{type:"primary",onClick:Ge},"\u786E\u5B9A"))):de.a.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},de.a.createElement("img",{src:Y.a,width:"100",alt:""}),de.a.createElement("br",null),de.a.createElement("p",{className:"mt20"},"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458")))}},k3GJ:function(Te,k,o){"use strict";o.d(k,"a",function(){return wo});var le=o("rePB"),J=o("ODXe"),Re=o("Ff2n"),$=o("VTBJ"),x=o("q1tI"),D=o("TSYQ"),fe=o.n(D),oe=o("Zm9Q"),z=o("6cGi"),L=o("KQm4"),C=o("xEkU"),_=o.n(C),O=o("t23M");function u(V){var ge=Object(x.useRef)(),he=Object(x.useRef)(!1);function I(){for(var f=arguments.length,M=new Array(f),b=0;bAe&&(nt=Ae-Ve),Object(x.useMemo)(function(){if(!M.length)return[0,0];for(var gt=M.length,nn=gt,Gt=0;Gtme+nt){nn=Gt-1;break}}for(var On=0,Pn=gt-1;Pn>=0;Pn-=1){var Rn=V.get(M[Pn].key)||U;if(Rn[ve]1&&arguments[1]!==void 0?arguments[1]:!1,I=ge&&typeof ge.getBoundingClientRect=="function"&&ge.getBoundingClientRect().width;if(I){if(he){var f=getComputedStyle(ge),M=f.marginLeft,b=f.marginRight;I+=+M.replace("px","")+ +b.replace("px","")}I=+I.toFixed(6)}return I||0},qe=function(ge,he,I){ge&&Object(H.a)(ge.style)==="object"&&(ge.style[he]=I)},Je=function(){return P.any},$e=o("bdgK"),it=o("i8i4"),xt=o.n(it),vt=o("wgJM"),Ut=o("l4aY"),Ht=o("m+aA"),je=o("c+Xe"),Le=o("zT1h"),ze=o("QC+M");function st(V,ge,he){return he?V[0]===ge[0]:V[0]===ge[0]&&V[1]===ge[1]}function rt(V,ge,he){var I=V[ge]||{};return Object($.a)(Object($.a)({},I),he)}function Ue(V,ge,he,I){for(var f=he.points,M=Object.keys(V),b=0;b1&&arguments[1]!==void 0?arguments[1]:2;ge();var M=Object(vt.a)(function(){f<=1?I({isCanceled:function(){return M!==V.current}}):he(I,f-1)});V.current=M}return x.useEffect(function(){return function(){ge()}},[]),[he,ge]},xn=[Kt,hn,pn,Rt],wn=!1,zt=!0;function tt(V){return V===pn||V===Rt}var bn=function(V,ge){var he=x.useState(gn),I=Object(J.a)(he,2),f=I[0],M=I[1],b=Ft(),G=Object(J.a)(b,2),q=G[0],ve=G[1];function me(){M(Kt)}return Mt(function(){if(f!==gn&&f!==Rt){var Ae=xn.indexOf(f),Fe=xn[Ae+1],Ve=ge(f);Ve===wn?M(Fe):q(function(nt){function gt(){if(nt.isCanceled())return;M(Fe)}Ve===!0?gt():Promise.resolve(Ve).then(gt)})}},[V,f]),x.useEffect(function(){return function(){ve()}},[]),[me,f]},Gn=function(V){var ge=Object(x.useRef)(),he=Object(x.useRef)(V);he.current=V;var I=x.useCallback(function(b){he.current(b)},[]);function f(b){b&&(b.removeEventListener(Wt,I),b.removeEventListener(St,I))}function M(b){ge.current&&ge.current!==b&&f(ge.current),b&&b!==ge.current&&(b.addEventListener(Wt,I),b.addEventListener(St,I),ge.current=b)}return x.useEffect(function(){return function(){f(ge.current)}},[]),[M,f]};function ta(V,ge,he,I){var f=I.motionEnter,M=f===void 0?!0:f,b=I.motionAppear,G=b===void 0?!0:b,q=I.motionLeave,ve=q===void 0?!0:q,me=I.motionDeadline,Ae=I.motionLeaveImmediately,Fe=I.onAppearPrepare,Ve=I.onEnterPrepare,nt=I.onLeavePrepare,gt=I.onAppearStart,nn=I.onEnterStart,Gt=I.onLeaveStart,Cn=I.onAppearActive,On=I.onEnterActive,Pn=I.onLeaveActive,Rn=I.onAppearEnd,Sn=I.onEnterEnd,Yn=I.onLeaveEnd,Fn=I.onVisibleChanged,xa=pt(),Bn=Object(J.a)(xa,2),Yt=Bn[0],Jt=Bn[1],Wn=pt(vn),Zn=Object(J.a)(Wn,2),It=Zn[0],ea=Zn[1],_a=pt(null),ra=Object(J.a)(_a,2),va=ra[0],pa=ra[1],ja=Object(x.useRef)(!1),Va=Object(x.useRef)(null),Ma=Object(x.useRef)(!1),sr=Object(x.useRef)(null);function Dr(){var Ea=he();return Ea||sr.current}var dr=Object(x.useRef)(!1);function Xa(Ea){var fa=Dr();if(Ea&&!Ea.deadline&&Ea.target!==fa)return;var Ya;It===An&&dr.current?Ya=Rn==null?void 0:Rn(fa,Ea):It===zn&&dr.current?Ya=Sn==null?void 0:Sn(fa,Ea):It===sn&&dr.current&&(Ya=Yn==null?void 0:Yn(fa,Ea)),Ya!==!1&&!Ma.current&&(ea(vn),pa(null))}var Ca=Gn(Xa),ga=Object(J.a)(Ca,1),Ra=ga[0],Oa=x.useMemo(function(){var Ea,fa,Ya;switch(It){case"appear":return Ea={},Object(le.a)(Ea,Kt,Fe),Object(le.a)(Ea,hn,gt),Object(le.a)(Ea,pn,Cn),Ea;case"enter":return fa={},Object(le.a)(fa,Kt,Ve),Object(le.a)(fa,hn,nn),Object(le.a)(fa,pn,On),fa;case"leave":return Ya={},Object(le.a)(Ya,Kt,nt),Object(le.a)(Ya,hn,Gt),Object(le.a)(Ya,pn,Pn),Ya;default:return{}}},[It]),Pr=bn(It,function(Ea){if(Ea===Kt){var fa=Oa[Kt];return fa?fa(Dr()):wn}if(ma in Oa){var Ya;pa(((Ya=Oa[ma])===null||Ya===void 0?void 0:Ya.call(Oa,Dr(),null))||null)}return ma===pn&&(Ra(Dr()),me>0&&(clearTimeout(Va.current),Va.current=setTimeout(function(){Xa({deadline:!0})},me))),zt}),Vr=Object(J.a)(Pr,2),Xr=Vr[0],ma=Vr[1],kr=tt(ma);dr.current=kr,Mt(function(){Jt(ge);var Ea=ja.current;if(ja.current=!0,!V)return;var fa;!Ea&&ge&&G&&(fa=An),Ea&&ge&&M&&(fa=zn),(Ea&&!ge&&ve||!Ea&&Ae&&!ge&&ve)&&(fa=sn),fa&&(ea(fa),Xr())},[ge]),Object(x.useEffect)(function(){(It===An&&!G||It===zn&&!M||It===sn&&!ve)&&ea(vn)},[G,M,ve]),Object(x.useEffect)(function(){return function(){clearTimeout(Va.current),Ma.current=!0}},[]),Object(x.useEffect)(function(){Yt!==void 0&&It===vn&&(Fn==null||Fn(Yt))},[Yt,It]);var Yr=va;return Oa[Kt]&&ma===hn&&(Yr=Object($.a)({transition:"none"},Yr)),[It,ma,Yr,Yt!=null?Yt:ge]}var $t=function(V){Object(T.a)(he,V);var ge=Object(d.a)(he);function he(){return Object(de.a)(this,he),ge.apply(this,arguments)}return Object(_e.a)(he,[{key:"render",value:function(){return this.props.children}}]),he}(x.Component),Tt=$t;function Nn(V){var ge=V;Object(H.a)(V)==="object"&&(ge=V.transitionSupport);function he(f){return!!(f.motionName&&ge)}var I=x.forwardRef(function(f,M){var b=f.visible,G=b===void 0?!0:b,q=f.removeOnLeave,ve=q===void 0?!0:q,me=f.forceRender,Ae=f.children,Fe=f.motionName,Ve=f.leavedClassName,nt=f.eventProps,gt=he(f),nn=Object(x.useRef)(),Gt=Object(x.useRef)();function Cn(){try{return Object(Ht.a)(nn.current||Gt.current)}catch(ea){return null}}var On=ta(gt,G,Cn,f),Pn=Object(J.a)(On,4),Rn=Pn[0],Sn=Pn[1],Yn=Pn[2],Fn=Pn[3],xa=x.useRef(Fn);Fn&&(xa.current=!0);var Bn=Object(x.useRef)(M);Bn.current=M;var Yt=x.useCallback(function(ea){nn.current=ea,Object(je.b)(Bn.current,ea)},[]),Jt,Wn=Object($.a)(Object($.a)({},nt),{},{visible:G});if(!Ae)Jt=null;else if(Rn===vn||!he(f))Fn?Jt=Ae(Object($.a)({},Wn),Yt):!ve&&xa.current?Jt=Ae(Object($.a)(Object($.a)({},Wn),{},{className:Ve}),Yt):me?Jt=Ae(Object($.a)(Object($.a)({},Wn),{},{style:{display:"none"}}),Yt):Jt=null;else{var Zn,It;Sn===Kt?It="prepare":tt(Sn)?It="active":Sn===hn&&(It="start"),Jt=Ae(Object($.a)(Object($.a)({},Wn),{},{className:fe()(fn(Fe,Rn),(Zn={},Object(le.a)(Zn,fn(Fe,"".concat(Rn,"-").concat(It)),It),Object(le.a)(Zn,Fe,typeof Fe=="string"),Zn)),style:Yn}),Yt)}return x.createElement(Tt,{ref:Gt},Jt)});return I.displayName="CSSMotion",I}var ua=Nn(kt),Me="add",Oe="keep",at="remove",mt="removed";function dt(V){var ge;return V&&Object(H.a)(V)==="object"&&"key"in V?ge=V:ge={key:V},Object($.a)(Object($.a)({},ge),{},{key:String(ge.key)})}function Nt(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return V.map(dt)}function Dt(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],he=[],I=0,f=ge.length,M=Nt(V),b=Nt(ge);M.forEach(function(ve){for(var me=!1,Ae=I;Ae1});return q.forEach(function(ve){he=he.filter(function(me){var Ae=me.key,Fe=me.status;return Ae!==ve||Fe!==at}),he.forEach(function(me){me.key===ve&&(me.status=Oe)})}),he}var Ye=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function ht(V){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ua,he=function(I){Object(T.a)(M,I);var f=Object(d.a)(M);function M(){var b;return Object(de.a)(this,M),b=f.apply(this,arguments),b.state={keyEntities:[]},b.removeKey=function(G){b.setState(function(q){var ve=q.keyEntities;return{keyEntities:ve.map(function(me){return me.key!==G?me:Object($.a)(Object($.a)({},me),{},{status:mt})})}})},b}return Object(_e.a)(M,[{key:"render",value:function(){var G=this,q=this.state.keyEntities,ve=this.props,me=ve.component,Ae=ve.children,Fe=ve.onVisibleChanged,Ve=Object(Re.a)(ve,["component","children","onVisibleChanged"]),nt=me||x.Fragment,gt={};return Ye.forEach(function(nn){gt[nn]=Ve[nn],delete Ve[nn]}),delete Ve.keys,x.createElement(nt,Ve,q.map(function(nn){var Gt=nn.status,Cn=Object(Re.a)(nn,["status"]),On=Gt===Me||Gt===Oe;return x.createElement(ge,Object(ne.a)({},gt,{key:Cn.key,visible:On,eventProps:Cn,onVisibleChanged:function(Rn){Fe==null||Fe(Rn,{key:Cn.key}),Rn||G.removeKey(Cn.key)}}),Ae)}))}}],[{key:"getDerivedStateFromProps",value:function(G,q){var ve=G.keys,me=q.keyEntities,Ae=Nt(ve),Fe=Dt(me,Ae);return{keyEntities:Fe.filter(function(Ve){var nt=me.find(function(gt){var nn=gt.key;return Ve.key===nn});return!(nt&&nt.status===mt&&Ve.status===at)})}}}]),M}(x.Component);return he.defaultProps={component:"div"},he}var Pt=ht(kt),Xt=ua;function _t(V){var ge=V.prefixCls,he=V.motion,I=V.animation,f=V.transitionName;return he||(I?{motionName:"".concat(ge,"-").concat(I)}:f?{motionName:f}:null)}function Zt(V){var ge=V.prefixCls,he=V.visible,I=V.zIndex,f=V.mask,M=V.maskMotion,b=V.maskAnimation,G=V.maskTransitionName;if(!f)return null;var q={};return(M||G||b)&&(q=Object($.a)({motionAppear:!0},_t({motion:M,prefixCls:ge,transitionName:G,animation:b}))),x.createElement(Xt,Object(ne.a)({},q,{visible:he,removeOnLeave:!0}),function(ve){var me=ve.className;return x.createElement("div",{style:{zIndex:I},className:fe()("".concat(ge,"-mask"),me)})})}var Ln=o("9mu1"),qt=o("o0o1"),Mn=o.n(qt),un=o("HaE+"),ct=["measure","align",null,"motion"],wt=function(V,ge){var he=Object(x.useState)(null),I=Object(J.a)(he,2),f=I[0],M=I[1],b=Object(x.useRef)(),G=Object(x.useRef)(!1);function q(Ae){G.current||M(Ae)}function ve(){vt.a.cancel(b.current)}function me(Ae){ve(),b.current=Object(vt.a)(function(){q(function(Fe){switch(f){case"align":return"motion";case"motion":return"stable";default:}return Fe}),Ae==null||Ae()})}return Object(x.useEffect)(function(){q("measure")},[V]),Object(x.useEffect)(function(){switch(f){case"measure":ge();break;default:}f&&(b.current=Object(vt.a)(Object(un.a)(Mn.a.mark(function Ae(){var Fe,Ve;return Mn.a.wrap(function(gt){for(;;)switch(gt.prev=gt.next){case 0:Fe=ct.indexOf(f),Ve=ct[Fe+1],Ve&&Fe!==-1&&q(Ve);case 3:case"end":return gt.stop()}},Ae)}))))},[f]),Object(x.useEffect)(function(){return function(){G.current=!0,ve()}},[]),[f,me]},Hn=function(V){var ge=x.useState({width:0,height:0}),he=Object(J.a)(ge,2),I=he[0],f=he[1];function M(G){f({width:G.offsetWidth,height:G.offsetHeight})}var b=x.useMemo(function(){var G={};if(V){var q=I.width,ve=I.height;V.indexOf("height")!==-1&&ve?G.height=ve:V.indexOf("minHeight")!==-1&&ve&&(G.minHeight=ve),V.indexOf("width")!==-1&&q?G.width=q:V.indexOf("minWidth")!==-1&&q&&(G.minWidth=q)}return G},[V,I]);return[b,M]},Jn=x.forwardRef(function(V,ge){var he=V.visible,I=V.prefixCls,f=V.className,M=V.style,b=V.children,G=V.zIndex,q=V.stretch,ve=V.destroyPopupOnHide,me=V.forceRender,Ae=V.align,Fe=V.point,Ve=V.getRootDomNode,nt=V.getClassNameFromAlign,gt=V.onAlign,nn=V.onMouseEnter,Gt=V.onMouseLeave,Cn=V.onMouseDown,On=V.onTouchStart,Pn=Object(x.useRef)(),Rn=Object(x.useRef)(),Sn=Object(x.useState)(),Yn=Object(J.a)(Sn,2),Fn=Yn[0],xa=Yn[1],Bn=Hn(q),Yt=Object(J.a)(Bn,2),Jt=Yt[0],Wn=Yt[1];function Zn(){q&&Wn(Ve())}var It=wt(he,Zn),ea=Object(J.a)(It,2),_a=ea[0],ra=ea[1],va=Object(x.useRef)();function pa(){return Fe||Ve}function ja(){var Ca;(Ca=Pn.current)===null||Ca===void 0||Ca.forceAlign()}function Va(Ca,ga){var Ra=nt(ga);Fn!==Ra&&xa(Ra),_a==="align"&&(Fn!==Ra?Promise.resolve().then(function(){ja()}):ra(function(){var Oa;(Oa=va.current)===null||Oa===void 0||Oa.call(va)}),gt==null||gt(Ca,ga))}var Ma=Object($.a)({},_t(V));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Ca){var ga=Ma[Ca];Ma[Ca]=function(Ra,Oa){return ra(),ga==null?void 0:ga(Ra,Oa)}});function sr(){return new Promise(function(Ca){va.current=Ca})}x.useEffect(function(){!Ma.motionName&&_a==="motion"&&ra()},[Ma.motionName,_a]),x.useImperativeHandle(ge,function(){return{forceAlign:ja,getElement:function(){return Rn.current}}});var Dr=Object($.a)(Object($.a)({},Jt),{},{zIndex:G,opacity:_a==="motion"||_a==="stable"||!he?void 0:0,pointerEvents:_a==="stable"?void 0:"none"},M),dr=!0;(Ae==null?void 0:Ae.points)&&(_a==="align"||_a==="stable")&&(dr=!1);var Xa=b;return x.Children.count(b)>1&&(Xa=x.createElement("div",{className:"".concat(I,"-content")},b)),x.createElement(Xt,Object(ne.a)({visible:he,ref:Rn,leavedClassName:"".concat(I,"-hidden")},Ma,{onAppearPrepare:sr,onEnterPrepare:sr,removeOnLeave:ve,forceRender:me}),function(Ca,ga){var Ra=Ca.className,Oa=Ca.style,Pr=fe()(I,f,Fn,Ra);return x.createElement(Ln.a,{target:pa(),key:"popup",ref:Pn,monitorWindowResize:!0,disabled:dr,align:Ae,onAlign:Va},x.createElement("div",{ref:ga,className:Pr,onMouseEnter:nn,onMouseLeave:Gt,onMouseDownCapture:Cn,onTouchStartCapture:On,style:Object($.a)(Object($.a)({},Oa),Dr)},Xa))})});Jn.displayName="PopupInner";var ha=Jn,In=x.forwardRef(function(V,ge){var he=V.prefixCls,I=V.visible,f=V.zIndex,M=V.children,b=V.mobile;b=b===void 0?{}:b;var G=b.popupClassName,q=b.popupStyle,ve=b.popupMotion,me=ve===void 0?{}:ve,Ae=b.popupRender,Fe=x.useRef();x.useImperativeHandle(ge,function(){return{forceAlign:function(){},getElement:function(){return Fe.current}}});var Ve=Object($.a)({zIndex:f},q),nt=M;return x.Children.count(M)>1&&(nt=x.createElement("div",{className:"".concat(he,"-content")},M)),Ae&&(nt=Ae(nt)),x.createElement(Xt,Object(ne.a)({visible:I,ref:Fe,removeOnLeave:!0},me),function(gt,nn){var Gt=gt.className,Cn=gt.style,On=fe()(he,G,Gt);return x.createElement("div",{ref:nn,className:On,style:Object($.a)(Object($.a)({},Cn),Ve)},nt)})});In.displayName="MobilePopupInner";var oa=In,Lt=["visible","mobile"],We=x.forwardRef(function(V,ge){var he=V.visible,I=V.mobile,f=Object(Re.a)(V,Lt),M=Object(x.useState)(he),b=Object(J.a)(M,2),G=b[0],q=b[1],ve=Object(x.useState)(!1),me=Object(J.a)(ve,2),Ae=me[0],Fe=me[1],Ve=Object($.a)(Object($.a)({},f),{},{visible:G});Object(x.useEffect)(function(){q(he),he&&I&&Fe(ke())},[he,I]);var nt=Ae?x.createElement(oa,Object(ne.a)({},Ve,{mobile:I,ref:ge})):x.createElement(ha,Object(ne.a)({},Ve,{ref:ge}));return x.createElement("div",null,x.createElement(Zt,Ve),nt)});We.displayName="Popup";var Qt=We,en=x.createContext(null),_n=en;function an(){}function cn(){return""}function tn(V){return V?V.ownerDocument:window.document}var na=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Kn(V){var ge=function(he){Object(T.a)(f,he);var I=Object(d.a)(f);function f(M){var b;Object(de.a)(this,f),b=I.call(this,M),b.popupRef=x.createRef(),b.triggerRef=x.createRef(),b.attachId=void 0,b.clickOutsideHandler=void 0,b.touchOutsideHandler=void 0,b.contextMenuOutsideHandler1=void 0,b.contextMenuOutsideHandler2=void 0,b.mouseDownTimeout=void 0,b.focusTime=void 0,b.preClickTime=void 0,b.preTouchTime=void 0,b.delayTimer=void 0,b.hasPopupMouseDown=void 0,b.onMouseEnter=function(q){var ve=b.props.mouseEnterDelay;b.fireEvents("onMouseEnter",q),b.delaySetPopupVisible(!0,ve,ve?null:q)},b.onMouseMove=function(q){b.fireEvents("onMouseMove",q),b.setPoint(q)},b.onMouseLeave=function(q){b.fireEvents("onMouseLeave",q),b.delaySetPopupVisible(!1,b.props.mouseLeaveDelay)},b.onPopupMouseEnter=function(){b.clearDelayTimer()},b.onPopupMouseLeave=function(q){var ve;if(q.relatedTarget&&!q.relatedTarget.setTimeout&&Object(Ut.a)((ve=b.popupRef.current)===null||ve===void 0?void 0:ve.getElement(),q.relatedTarget))return;b.delaySetPopupVisible(!1,b.props.mouseLeaveDelay)},b.onFocus=function(q){b.fireEvents("onFocus",q),b.clearDelayTimer(),b.isFocusToShow()&&(b.focusTime=Date.now(),b.delaySetPopupVisible(!0,b.props.focusDelay))},b.onMouseDown=function(q){b.fireEvents("onMouseDown",q),b.preClickTime=Date.now()},b.onTouchStart=function(q){b.fireEvents("onTouchStart",q),b.preTouchTime=Date.now()},b.onBlur=function(q){b.fireEvents("onBlur",q),b.clearDelayTimer(),b.isBlurToHide()&&b.delaySetPopupVisible(!1,b.props.blurDelay)},b.onContextMenu=function(q){q.preventDefault(),b.fireEvents("onContextMenu",q),b.setPopupVisible(!0,q)},b.onContextMenuClose=function(){b.isContextMenuToShow()&&b.close()},b.onClick=function(q){if(b.fireEvents("onClick",q),b.focusTime){var ve;if(b.preClickTime&&b.preTouchTime?ve=Math.min(b.preClickTime,b.preTouchTime):b.preClickTime?ve=b.preClickTime:b.preTouchTime&&(ve=b.preTouchTime),Math.abs(ve-b.focusTime)<20)return;b.focusTime=0}b.preClickTime=0,b.preTouchTime=0,b.isClickToShow()&&(b.isClickToHide()||b.isBlurToHide())&&q&&q.preventDefault&&q.preventDefault();var me=!b.state.popupVisible;(b.isClickToHide()&&!me||me&&b.isClickToShow())&&b.setPopupVisible(!b.state.popupVisible,q)},b.onPopupMouseDown=function(){if(b.hasPopupMouseDown=!0,clearTimeout(b.mouseDownTimeout),b.mouseDownTimeout=window.setTimeout(function(){b.hasPopupMouseDown=!1},0),b.context){var q;(q=b.context).onPopupMouseDown.apply(q,arguments)}},b.onDocumentClick=function(q){if(b.props.mask&&!b.props.maskClosable)return;var ve=q.target,me=b.getRootDomNode(),Ae=b.getPopupDomNode();(!Object(Ut.a)(me,ve)||b.isContextMenuOnly())&&!Object(Ut.a)(Ae,ve)&&!b.hasPopupMouseDown&&b.close()},b.getRootDomNode=function(){var q=b.props.getTriggerDOMNode;if(q)return q(b.triggerRef.current);try{var ve=Object(Ht.a)(b.triggerRef.current);if(ve)return ve}catch(me){}return xt.a.findDOMNode(Object(ae.a)(b))},b.getPopupClassNameFromAlign=function(q){var ve=[],me=b.props,Ae=me.popupPlacement,Fe=me.builtinPlacements,Ve=me.prefixCls,nt=me.alignPoint,gt=me.getPopupClassNameFromAlign;return Ae&&Fe&&ve.push(Ue(Fe,Ve,q,nt)),gt&&ve.push(gt(q)),ve.join(" ")},b.getComponent=function(){var q=b.props,ve=q.prefixCls,me=q.destroyPopupOnHide,Ae=q.popupClassName,Fe=q.onPopupAlign,Ve=q.popupMotion,nt=q.popupAnimation,gt=q.popupTransitionName,nn=q.popupStyle,Gt=q.mask,Cn=q.maskAnimation,On=q.maskTransitionName,Pn=q.maskMotion,Rn=q.zIndex,Sn=q.popup,Yn=q.stretch,Fn=q.alignPoint,xa=q.mobile,Bn=q.forceRender,Yt=b.state,Jt=Yt.popupVisible,Wn=Yt.point,Zn=b.getPopupAlign(),It={};return b.isMouseEnterToShow()&&(It.onMouseEnter=b.onPopupMouseEnter),b.isMouseLeaveToHide()&&(It.onMouseLeave=b.onPopupMouseLeave),It.onMouseDown=b.onPopupMouseDown,It.onTouchStart=b.onPopupMouseDown,x.createElement(Qt,Object(ne.a)({prefixCls:ve,destroyPopupOnHide:me,visible:Jt,point:Fn&&Wn,className:Ae,align:Zn,onAlign:Fe,animation:nt,getClassNameFromAlign:b.getPopupClassNameFromAlign},It,{stretch:Yn,getRootDomNode:b.getRootDomNode,style:nn,mask:Gt,zIndex:Rn,transitionName:gt,maskAnimation:Cn,maskTransitionName:On,maskMotion:Pn,ref:b.popupRef,motion:Ve,mobile:xa,forceRender:Bn}),typeof Sn=="function"?Sn():Sn)},b.attachParent=function(q){vt.a.cancel(b.attachId);var ve=b.props,me=ve.getPopupContainer,Ae=ve.getDocument,Fe=b.getRootDomNode(),Ve;me?(Fe||me.length===0)&&(Ve=me(Fe)):Ve=Ae(b.getRootDomNode()).body,Ve?Ve.appendChild(q):b.attachId=Object(vt.a)(function(){b.attachParent(q)})},b.getContainer=function(){var q=b.props.getDocument,ve=q(b.getRootDomNode()).createElement("div");return ve.style.position="absolute",ve.style.top="0",ve.style.left="0",ve.style.width="100%",b.attachParent(ve),ve},b.setPoint=function(q){var ve=b.props.alignPoint;if(!ve||!q)return;b.setState({point:{pageX:q.pageX,pageY:q.pageY}})},b.handlePortalUpdate=function(){b.state.prevPopupVisible!==b.state.popupVisible&&b.props.afterPopupVisibleChange(b.state.popupVisible)},b.triggerContextValue={onPopupMouseDown:b.onPopupMouseDown};var G;return"popupVisible"in M?G=!!M.popupVisible:G=!!M.defaultPopupVisible,b.state={prevPopupVisible:G,popupVisible:G},na.forEach(function(q){b["fire".concat(q)]=function(ve){b.fireEvents(q,ve)}}),b}return Object(_e.a)(f,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var b=this.props,G=this.state;if(G.popupVisible){var q;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(q=b.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(Le.a)(q,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(q=q||b.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(Le.a)(q,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(q=q||b.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(Le.a)(q,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Le.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),vt.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var b;return((b=this.popupRef.current)===null||b===void 0?void 0:b.getElement())||null}},{key:"getPopupAlign",value:function(){var b=this.props,G=b.popupPlacement,q=b.popupAlign,ve=b.builtinPlacements;return G&&ve?rt(ve,G,q):q}},{key:"setPopupVisible",value:function(b,G){var q=this.props.alignPoint,ve=this.state.popupVisible;this.clearDelayTimer(),ve!==b&&("popupVisible"in this.props||this.setState({popupVisible:b,prevPopupVisible:ve}),this.props.onPopupVisibleChange(b)),q&&G&&b&&this.setPoint(G)}},{key:"delaySetPopupVisible",value:function(b,G,q){var ve=this,me=G*1e3;if(this.clearDelayTimer(),me){var Ae=q?{pageX:q.pageX,pageY:q.pageY}:null;this.delayTimer=window.setTimeout(function(){ve.setPopupVisible(b,Ae),ve.clearDelayTimer()},me)}else this.setPopupVisible(b,q)}},{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(b){var G=this.props.children.props,q=this.props;return G[b]&&q[b]?this["fire".concat(b)]:G[b]||q[b]}},{key:"isClickToShow",value:function(){var b=this.props,G=b.action,q=b.showAction;return G.indexOf("click")!==-1||q.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var b=this.props.action;return b==="contextMenu"||b.length===1&&b[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var b=this.props,G=b.action,q=b.showAction;return G.indexOf("contextMenu")!==-1||q.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var b=this.props,G=b.action,q=b.hideAction;return G.indexOf("click")!==-1||q.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var b=this.props,G=b.action,q=b.showAction;return G.indexOf("hover")!==-1||q.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var b=this.props,G=b.action,q=b.hideAction;return G.indexOf("hover")!==-1||q.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var b=this.props,G=b.action,q=b.showAction;return G.indexOf("focus")!==-1||q.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var b=this.props,G=b.action,q=b.hideAction;return G.indexOf("focus")!==-1||q.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var b;(b=this.popupRef.current)===null||b===void 0||b.forceAlign()}}},{key:"fireEvents",value:function(b,G){var q=this.props.children.props[b];q&&q(G);var ve=this.props[b];ve&&ve(G)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var b=this.state.popupVisible,G=this.props,q=G.children,ve=G.forceRender,me=G.alignPoint,Ae=G.className,Fe=G.autoDestroy,Ve=x.Children.only(q),nt={key:"trigger"};this.isContextMenuToShow()?nt.onContextMenu=this.onContextMenu:nt.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(nt.onClick=this.onClick,nt.onMouseDown=this.onMouseDown,nt.onTouchStart=this.onTouchStart):(nt.onClick=this.createTwoChains("onClick"),nt.onMouseDown=this.createTwoChains("onMouseDown"),nt.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(nt.onMouseEnter=this.onMouseEnter,me&&(nt.onMouseMove=this.onMouseMove)):nt.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?nt.onMouseLeave=this.onMouseLeave:nt.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(nt.onFocus=this.onFocus,nt.onBlur=this.onBlur):(nt.onFocus=this.createTwoChains("onFocus"),nt.onBlur=this.createTwoChains("onBlur"));var gt=fe()(Ve&&Ve.props&&Ve.props.className,Ae);gt&&(nt.className=gt);var nn=Object($.a)({},nt);Object(je.c)(Ve)&&(nn.ref=Object(je.a)(this.triggerRef,Ve.ref));var Gt=x.cloneElement(Ve,nn),Cn;return(b||this.popupRef.current||ve)&&(Cn=x.createElement(V,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!b&&Fe&&(Cn=null),x.createElement(_n.Provider,{value:this.triggerContextValue},Gt,Cn)}}],[{key:"getDerivedStateFromProps",value:function(b,G){var q=b.popupVisible,ve={};return q!==void 0&&G.popupVisible!==q&&(ve.popupVisible=q,ve.prevPopupVisible=G.popupVisible),ve}}]),f}(x.Component);return ge.contextType=_n,ge.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:cn,getDocument:tn,onPopupVisibleChange:an,afterPopupVisibleChange:an,onPopupAlign:an,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 ln=Kn(ze.a),rn={adjustX:1,adjustY:1},Sa={topLeft:{points:["bl","tl"],overflow:rn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:rn,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:rn,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:rn,offset:[4,0]}},ia={topLeft:{points:["bl","tl"],overflow:rn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:rn,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:rn,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:rn,offset:[4,0]}},qn=Sa,aa=0,Un={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ya=function(ge,he,I){var f=Q(he),M=ge.getState();ge.setState({defaultActiveFirst:Object($.a)(Object($.a)({},M.defaultActiveFirst),{},Object(le.a)({},f,I))})},kn=function(V){Object(T.a)(he,V);var ge=Object(d.a)(he);function he(I){var f;Object(de.a)(this,he),f=ge.call(this,I),f.onDestroy=function(me){f.props.onDestroy(me)},f.onKeyDown=function(me){var Ae=me.keyCode,Fe=f.menuInstance,Ve=f.props.store,nt=f.getVisible();if(Ae===m.a.ENTER)return f.onTitleClick(me),ya(Ve,f.props.eventKey,!0),!0;if(Ae===m.a.RIGHT)return nt?Fe.onKeyDown(me):(f.triggerOpenChange(!0),ya(Ve,f.props.eventKey,!0)),!0;if(Ae===m.a.LEFT){var gt;if(nt)gt=Fe.onKeyDown(me);else return;return gt||(f.triggerOpenChange(!1),gt=!0),gt}return nt&&(Ae===m.a.UP||Ae===m.a.DOWN)?Fe.onKeyDown(me):void 0},f.onOpenChange=function(me){f.props.onOpenChange(me)},f.onPopupVisibleChange=function(me){f.triggerOpenChange(me,me?"mouseenter":"mouseleave")},f.onMouseEnter=function(me){var Ae=f.props,Fe=Ae.eventKey,Ve=Ae.onMouseEnter,nt=Ae.store;ya(nt,f.props.eventKey,!1),Ve({key:Fe,domEvent:me})},f.onMouseLeave=function(me){var Ae=f.props,Fe=Ae.parentMenu,Ve=Ae.eventKey,nt=Ae.onMouseLeave;Fe.subMenuInstance=Object(ae.a)(f),nt({key:Ve,domEvent:me})},f.onTitleMouseEnter=function(me){var Ae=f.props,Fe=Ae.eventKey,Ve=Ae.onItemHover,nt=Ae.onTitleMouseEnter;Ve({key:Fe,hover:!0}),nt({key:Fe,domEvent:me})},f.onTitleMouseLeave=function(me){var Ae=f.props,Fe=Ae.parentMenu,Ve=Ae.eventKey,nt=Ae.onItemHover,gt=Ae.onTitleMouseLeave;Fe.subMenuInstance=Object(ae.a)(f),nt({key:Ve,hover:!1}),gt({key:Ve,domEvent:me})},f.onTitleClick=function(me){var Ae=Object(ae.a)(f),Fe=Ae.props;if(Fe.onTitleClick({key:Fe.eventKey,domEvent:me}),Fe.triggerSubMenuAction==="hover")return;f.triggerOpenChange(!f.getVisible(),"click"),ya(Fe.store,f.props.eventKey,!1)},f.onSubMenuClick=function(me){typeof f.props.onClick=="function"&&f.props.onClick(f.addKeyPath(me))},f.onSelect=function(me){f.props.onSelect(me)},f.onDeselect=function(me){f.props.onDeselect(me)},f.getPrefixCls=function(){return"".concat(f.props.rootPrefixCls,"-submenu")},f.getActiveClassName=function(){return"".concat(f.getPrefixCls(),"-active")},f.getDisabledClassName=function(){return"".concat(f.getPrefixCls(),"-disabled")},f.getSelectedClassName=function(){return"".concat(f.getPrefixCls(),"-selected")},f.getOpenClassName=function(){return"".concat(f.props.rootPrefixCls,"-submenu-open")},f.getVisible=function(){return f.state.isOpen},f.getMode=function(){return f.state.mode},f.saveMenuInstance=function(me){f.menuInstance=me},f.addKeyPath=function(me){return Object($.a)(Object($.a)({},me),{},{keyPath:(me.keyPath||[]).concat(f.props.eventKey)})},f.triggerOpenChange=function(me,Ae){var Fe=f.props.eventKey,Ve=function(){f.onOpenChange({key:Fe,item:Object(ae.a)(f),trigger:Ae,open:me})};Ae==="mouseenter"?f.mouseenterTimeout=setTimeout(function(){Ve()},0):Ve()},f.isChildrenSelected=function(){var me={find:!1};return De(f.props.children,f.props.selectedKeys,me),me.find},f.isInlineMode=function(){return f.getMode()==="inline"},f.adjustWidth=function(){if(!f.subMenuTitle||!f.menuInstance)return;var me=it.findDOMNode(f.menuInstance);if(me.offsetWidth>=f.subMenuTitle.offsetWidth)return;me.style.minWidth="".concat(f.subMenuTitle.offsetWidth,"px")},f.saveSubMenuTitle=function(me){f.subMenuTitle=me},f.getBaseProps=function(){var me=Object(ae.a)(f),Ae=me.props,Fe=f.getMode();return{mode:Fe==="horizontal"?"vertical":Fe,visible:f.getVisible(),level:Ae.level+1,inlineIndent:Ae.inlineIndent,focusable:!1,onClick:f.onSubMenuClick,onSelect:f.onSelect,onDeselect:f.onDeselect,onDestroy:f.onDestroy,selectedKeys:Ae.selectedKeys,eventKey:"".concat(Ae.eventKey,"-menu-"),openKeys:Ae.openKeys,motion:Ae.motion,onOpenChange:f.onOpenChange,subMenuOpenDelay:Ae.subMenuOpenDelay,parentMenu:Object(ae.a)(f),subMenuCloseDelay:Ae.subMenuCloseDelay,forceSubMenuRender:Ae.forceSubMenuRender,triggerSubMenuAction:Ae.triggerSubMenuAction,builtinPlacements:Ae.builtinPlacements,defaultActiveFirst:Ae.store.getState().defaultActiveFirst[Q(Ae.eventKey)],multiple:Ae.multiple,prefixCls:Ae.rootPrefixCls,id:f.internalMenuId,manualRef:f.saveMenuInstance,itemIcon:Ae.itemIcon,expandIcon:Ae.expandIcon,direction:Ae.direction}},f.getMotion=function(me,Ae){var Fe=Object(ae.a)(f),Ve=Fe.haveRendered,nt=f.props,gt=nt.motion,nn=nt.rootPrefixCls,Gt=Object($.a)(Object($.a)({},gt),{},{leavedClassName:"".concat(nn,"-hidden"),removeOnLeave:!1,motionAppear:Ve||!Ae||me!=="inline"});return Gt};var M=I.store,b=I.eventKey,G=M.getState(),q=G.defaultActiveFirst;f.isRootMenu=!1;var ve=!1;return q&&(ve=q[b]),ya(M,b,ve),f.state={mode:I.mode,isOpen:I.isOpen},f}return Object(_e.a)(he,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var f=this,M=this.props,b=M.mode,G=M.parentMenu,q=M.manualRef,ve=M.isOpen,me=function(){f.setState({mode:b,isOpen:ve})},Ae=ve!==this.state.isOpen,Fe=b!==this.state.mode;if((Fe||Ae)&&(vt.a.cancel(this.updateStateRaf),Fe?this.updateStateRaf=Object(vt.a)(me):me()),q&&q(this),b!=="horizontal"||!(G==null?void 0:G.isRootMenu)||!ve)return;this.minWidthTimeout=setTimeout(function(){return f.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var f=this.props,M=f.onDestroy,b=f.eventKey;M&&M(b),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),vt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(f,M){var b=this.getBaseProps();return x.createElement(br,Object(ne.a)({},b,{id:this.internalMenuId,className:f,style:M}),this.props.children)}},{key:"renderChildren",value:function(){var f=this,M=this.getBaseProps(),b=M.mode,G=M.visible,q=M.forceSubMenuRender,ve=M.direction,me=this.getMotion(b,G);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||G||q,!this.haveOpened)return x.createElement("div",null);var Ae=fe()("".concat(M.prefixCls,"-sub"),Object(le.a)({},"".concat(M.prefixCls,"-rtl"),ve==="rtl"));return this.isInlineMode()?x.createElement(Xt,Object(ne.a)({visible:M.visible,forceRender:q},me),function(Fe){var Ve=Fe.className,nt=Fe.style,gt=fe()(Ae,Ve);return f.renderPopupMenu(gt,nt)}):this.renderPopupMenu(Ae)}},{key:"render",value:function(){var f,M,b,G=Object($.a)({},this.props),q=this.getVisible(),ve=this.getPrefixCls(),me=this.isInlineMode(),Ae=this.getMode(),Fe=fe()(ve,"".concat(ve,"-").concat(Ae),(f={},Object(le.a)(f,G.className,!!G.className),Object(le.a)(f,this.getOpenClassName(),q),Object(le.a)(f,this.getActiveClassName(),G.active||q&&!me),Object(le.a)(f,this.getDisabledClassName(),G.disabled),Object(le.a)(f,this.getSelectedClassName(),this.isChildrenSelected()),f));this.internalMenuId||(G.eventKey?this.internalMenuId="".concat(G.eventKey,"$Menu"):(aa+=1,this.internalMenuId="$__$".concat(aa,"$Menu")));var Ve={},nt={},gt={};G.disabled||(Ve={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},nt={onClick:this.onTitleClick},gt={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var nn={},Gt=G.direction,Cn=Gt==="rtl";me&&(Cn?nn.paddingRight=G.inlineIndent*G.level:nn.paddingLeft=G.inlineIndent*G.level);var On={};this.getVisible()&&(On={"aria-owns":this.internalMenuId});var Pn=null;Ae!=="horizontal"&&(Pn=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Pn=x.createElement(this.props.expandIcon,Object($.a)({},this.props))));var Rn=x.createElement("div",Object(ne.a)({ref:this.saveSubMenuTitle,style:nn,className:"".concat(ve,"-title"),role:"button"},gt,nt,{"aria-expanded":q},On,{"aria-haspopup":"true",title:typeof G.title=="string"?G.title:void 0}),G.title,Pn||x.createElement("i",{className:"".concat(ve,"-arrow")})),Sn=this.renderChildren(),Yn=((M=G.parentMenu)===null||M===void 0?void 0:M.isRootMenu)?G.parentMenu.props.getPopupContainer:function(pa){return pa.parentNode},Fn=Un[Ae],xa=G.popupOffset?{offset:G.popupOffset}:{},Bn=fe()((b={},Object(le.a)(b,G.popupClassName,G.popupClassName&&!me),Object(le.a)(b,"".concat(ve,"-rtl"),Cn),b)),Yt=G.disabled,Jt=G.triggerSubMenuAction,Wn=G.subMenuOpenDelay,Zn=G.forceSubMenuRender,It=G.subMenuCloseDelay,ea=G.builtinPlacements;Ie.forEach(function(pa){return delete G[pa]}),delete G.onClick;var _a=Cn?Object($.a)(Object($.a)({},ia),ea):Object($.a)(Object($.a)({},Sa),ea);delete G.direction;var ra=this.getBaseProps(),va=me?null:this.getMotion(ra.mode,ra.visible);return x.createElement("li",Object(ne.a)({},G,Ve,{className:Fe,role:"menuitem"}),x.createElement(ln,{prefixCls:ve,popupClassName:fe()("".concat(ve,"-popup"),Bn),getPopupContainer:Yn,builtinPlacements:_a,popupPlacement:Fn,popupVisible:me?!1:q,popupAlign:xa,popup:me?null:Sn,action:Yt||me?[]:[Jt],mouseEnterDelay:Wn,mouseLeaveDelay:It,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Zn,popupMotion:va},Rn),me?Sn:null)}}]),he}(x.Component);kn.defaultProps={onMouseEnter:ce,onMouseLeave:ce,onTitleMouseEnter:ce,onTitleMouseLeave:ce,onTitleClick:ce,manualRef:ce,mode:"vertical",title:""};var mn=Object(s.b)(function(V,ge){var he=V.openKeys,I=V.activeKey,f=V.selectedKeys,M=ge.eventKey,b=ge.subMenuKey;return{isOpen:he.indexOf(M)>-1,active:I[b]===M,selectedKeys:f}})(kn);mn.isSubMenu=!0;var Bt=mn,dn="menuitem-overflowed",ca=.5,Vn=function(V){Object(T.a)(he,V);var ge=Object(d.a)(he);function he(){var I;return Object(de.a)(this,he),I=ge.apply(this,arguments),I.resizeObserver=null,I.mutationObserver=null,I.originalTotalWidth=0,I.overflowedItems=[],I.menuItemSizes=[],I.cancelFrameId=null,I.state={lastVisibleIndex:void 0},I.childRef=x.createRef(),I.getMenuItemNodes=function(){var f=I.props.prefixCls,M=I.childRef.current;return M?[].slice.call(M.children).filter(function(b){return b.className.split(" ").indexOf("".concat(f,"-overflowed-submenu"))<0}):[]},I.getOverflowedSubMenuItem=function(f,M,b){var G=I.props,q=G.overflowedIndicator,ve=G.level,me=G.mode,Ae=G.prefixCls,Fe=G.theme;if(ve!==1||me!=="horizontal")return null;var Ve=I.props.children[0],nt=Ve.props,gt=nt.children,nn=nt.title,Gt=nt.style,Cn=Object(Re.a)(nt,["children","title","style"]),On=Object($.a)({},Gt),Pn="".concat(f,"-overflowed-indicator"),Rn="".concat(f,"-overflowed-indicator");M.length===0&&b!==!0?On=Object($.a)(Object($.a)({},On),{},{display:"none"}):b&&(On=Object($.a)(Object($.a)({},On),{},{visibility:"hidden",position:"absolute"}),Pn="".concat(Pn,"-placeholder"),Rn="".concat(Rn,"-placeholder"));var Sn=Fe?"".concat(Ae,"-").concat(Fe):"",Yn={};return Ie.forEach(function(Fn){Cn[Fn]!==void 0&&(Yn[Fn]=Cn[Fn])}),x.createElement(Bt,Object(ne.a)({title:q,className:"".concat(Ae,"-overflowed-submenu"),popupClassName:Sn},Yn,{key:Pn,eventKey:Rn,disabled:!1,style:On}),M)},I.setChildrenWidthAndResize=function(){if(I.props.mode!=="horizontal")return;var f=I.childRef.current;if(!f)return;var M=f.children;if(!M||M.length===0)return;var b=f.children[M.length-1];qe(b,"display","inline-block");var G=I.getMenuItemNodes(),q=G.filter(function(ve){return ve.className.split(" ").indexOf(dn)>=0});q.forEach(function(ve){qe(ve,"display","inline-block")}),I.menuItemSizes=G.map(function(ve){return Ge(ve,!0)}),q.forEach(function(ve){qe(ve,"display","none")}),I.overflowedIndicatorWidth=Ge(f.children[f.children.length-1],!0),I.originalTotalWidth=I.menuItemSizes.reduce(function(ve,me){return ve+me},0),I.handleResize(),qe(b,"display","none")},I.handleResize=function(){if(I.props.mode!=="horizontal")return;var f=I.childRef.current;if(!f)return;var M=Ge(f);I.overflowedItems=[];var b=0,G;I.originalTotalWidth>M+ca&&(G=-1,I.menuItemSizes.forEach(function(q){b+=q,b+I.overflowedIndicatorWidth<=M&&(G+=1)})),I.setState({lastVisibleIndex:G})},I}return Object(_e.a)(he,[{key:"componentDidMount",value:function(){var f=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var M=this.childRef.current;if(!M)return;this.resizeObserver=new $e.default(function(b){b.forEach(function(){var G=f.cancelFrameId;cancelAnimationFrame(G),f.cancelFrameId=requestAnimationFrame(f.setChildrenWidthAndResize)})}),[].slice.call(M.children).concat(M).forEach(function(b){f.resizeObserver.observe(b)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){f.resizeObserver.disconnect(),[].slice.call(M.children).concat(M).forEach(function(b){f.resizeObserver.observe(b)}),f.setChildrenWidthAndResize()}),this.mutationObserver.observe(M,{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(f){var M=this,b=this.state.lastVisibleIndex;return(f||[]).reduce(function(G,q,ve){var me=q;if(M.props.mode==="horizontal"){var Ae=M.getOverflowedSubMenuItem(q.props.eventKey,[]);b!==void 0&&M.props.className.indexOf("".concat(M.props.prefixCls,"-root"))!==-1&&(ve>b&&(me=x.cloneElement(q,{style:{display:"none"},eventKey:"".concat(q.props.eventKey,"-hidden"),className:"".concat(dn)})),ve===b+1&&(M.overflowedItems=f.slice(b+1).map(function(Ve){return x.cloneElement(Ve,{key:Ve.props.eventKey,mode:"vertical-left"})}),Ae=M.getOverflowedSubMenuItem(q.props.eventKey,M.overflowedItems)));var Fe=[].concat(Object(L.a)(G),[Ae,me]);return ve===f.length-1&&Fe.push(M.getOverflowedSubMenuItem(q.props.eventKey,[],!0)),Fe}return[].concat(Object(L.a)(G),[me])},[])}},{key:"render",value:function(){var f=this.props,M=f.visible,b=f.prefixCls,G=f.overflowedIndicator,q=f.mode,ve=f.level,me=f.tag,Ae=f.children,Fe=f.theme,Ve=Object(Re.a)(f,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),nt=me;return x.createElement(nt,Object(ne.a)({ref:this.childRef},Ve),this.renderChildren(Ae))}}]),he}(x.Component);Vn.defaultProps={tag:"div",className:""};var Xn=Vn;function vr(V){return V.length?V.every(function(ge){return!!ge.props.disabled}):!0}function La(V,ge,he){var I=V.getState();V.setState({activeKey:Object($.a)(Object($.a)({},I.activeKey),{},Object(le.a)({},ge,he))})}function Fa(V){return V.eventKey||"0-menu-"}function Pa(V,ge){var he=ge,I=V.children,f=V.eventKey;if(he){var M;if(be(I,function(b,G){b&&b.props&&!b.props.disabled&&he===R(b,f,G)&&(M=!0)}),M)return he}return he=null,V.defaultActiveFirst&&be(I,function(b,G){!he&&b&&!b.props.disabled&&(he=R(b,f,G))}),he}function Nr(V){if(!V)return;var ge=this.instanceArray.indexOf(V);ge!==-1?this.instanceArray[ge]=V:this.instanceArray.push(V)}var nr=function(V){Object(T.a)(he,V);var ge=Object(d.a)(he);function he(I){var f;return Object(de.a)(this,he),f=ge.call(this,I),f.onKeyDown=function(M,b){var G=M.keyCode,q;if(f.getFlatInstanceArray().forEach(function(me){me&&me.props.active&&me.onKeyDown&&(q=me.onKeyDown(M))}),q)return 1;var ve=null;return(G===m.a.UP||G===m.a.DOWN)&&(ve=f.step(G===m.a.UP?-1:1)),ve?(M.preventDefault(),La(f.props.store,Fa(f.props),ve.props.eventKey),typeof b=="function"&&b(ve),1):void 0},f.onItemHover=function(M){var b=M.key,G=M.hover;La(f.props.store,Fa(f.props),G?b:null)},f.onDeselect=function(M){f.props.onDeselect(M)},f.onSelect=function(M){f.props.onSelect(M)},f.onClick=function(M){f.props.onClick(M)},f.onOpenChange=function(M){f.props.onOpenChange(M)},f.onDestroy=function(M){f.props.onDestroy(M)},f.getFlatInstanceArray=function(){return f.instanceArray},f.step=function(M){var b=f.getFlatInstanceArray(),G=f.props.store.getState().activeKey[Fa(f.props)],q=b.length;if(!q)return null;M<0&&(b=b.concat().reverse());var ve=-1;if(b.every(function(Ve,nt){return Ve&&Ve.props.eventKey===G?(ve=nt,!1):!0}),!f.props.defaultActiveFirst&&ve!==-1&&vr(b.slice(ve,q-1)))return;var me=(ve+1)%q,Ae=me;do{var Fe=b[Ae];if(!Fe||Fe.props.disabled)Ae=(Ae+1)%q;else return Fe}while(Ae!==me);return null},f.renderCommonMenuItem=function(M,b,G){var q=f.props.store.getState(),ve=Object(ae.a)(f),me=ve.props,Ae=R(M,me.eventKey,b),Fe=M.props;if(!Fe||typeof M.type=="string")return M;var Ve=Ae===q.activeKey,nt=Object($.a)(Object($.a)({mode:Fe.mode||me.mode,level:me.level,inlineIndent:me.inlineIndent,renderMenuItem:f.renderMenuItem,rootPrefixCls:me.prefixCls,index:b,parentMenu:me.parentMenu,manualRef:Fe.disabled?void 0:Object(Y.a)(M.ref,Nr.bind(Object(ae.a)(f))),eventKey:Ae,active:!Fe.disabled&&Ve,multiple:me.multiple,onClick:function(nn){(Fe.onClick||ce)(nn),f.onClick(nn)},onItemHover:f.onItemHover,motion:me.motion,subMenuOpenDelay:me.subMenuOpenDelay,subMenuCloseDelay:me.subMenuCloseDelay,forceSubMenuRender:me.forceSubMenuRender,onOpenChange:f.onOpenChange,onDeselect:f.onDeselect,onSelect:f.onSelect,builtinPlacements:me.builtinPlacements,itemIcon:Fe.itemIcon||f.props.itemIcon,expandIcon:Fe.expandIcon||f.props.expandIcon},G),{},{direction:me.direction});return(me.mode==="inline"||Je())&&(nt.triggerSubMenuAction="click"),x.cloneElement(M,Object($.a)(Object($.a)({},nt),{},{key:Ae||b}))},f.renderMenuItem=function(M,b,G){if(!M)return null;var q=f.props.store.getState(),ve={openKeys:q.openKeys,selectedKeys:q.selectedKeys,triggerSubMenuAction:f.props.triggerSubMenuAction,subMenuKey:G};return f.renderCommonMenuItem(M,b,ve)},I.store.setState({activeKey:Object($.a)(Object($.a)({},I.store.getState().activeKey),{},Object(le.a)({},I.eventKey,Pa(I,I.activeKey)))}),f.instanceArray=[],f}return Object(_e.a)(he,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(f){return this.props.visible||f.visible||this.props.className!==f.className||!N()(this.props.style,f.style)}},{key:"componentDidUpdate",value:function(f){var M=this.props,b="activeKey"in M?M.activeKey:M.store.getState().activeKey[Fa(M)],G=Pa(M,b);if(G!==b)La(M.store,Fa(M),G);else if("activeKey"in f){var q=Pa(f,f.activeKey);G!==q&&La(M.store,Fa(M),G)}}},{key:"render",value:function(){var f=this,M=Object(ne.a)({},this.props);this.instanceArray=[];var b=fe()(M.prefixCls,M.className,"".concat(M.prefixCls,"-").concat(M.mode)),G={className:b,role:M.role||"menu"};M.id&&(G.id=M.id),M.focusable&&(G.tabIndex=0,G.onKeyDown=this.onKeyDown);var q=M.prefixCls,ve=M.eventKey,me=M.visible,Ae=M.level,Fe=M.mode,Ve=M.overflowedIndicator,nt=M.theme;return Ie.forEach(function(gt){return delete M[gt]}),delete M.onClick,x.createElement(Xn,Object(ne.a)({},M,{prefixCls:q,mode:Fe,tag:"ul",level:Ae,theme:nt,visible:me,overflowedIndicator:Ve},G),Object(oe.a)(M.children).map(function(gt,nn){return f.renderMenuItem(gt,nn,ve||"0-menu-")}))}}]),he}(x.Component);nr.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:ce};var gr=Object(s.b)()(nr),br=gr,Ha=o("Kwbf");function Fr(V,ge,he){var I=V.prefixCls,f=V.motion,M=V.defaultMotions,b=M===void 0?{}:M,G=V.openAnimation,q=V.openTransitionName,ve=ge.switchingModeFromInline;if(f)return f;if(Object(H.a)(G)==="object"&&G)Object(Ha.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof G=="string")return{motionName:"".concat(I,"-open-").concat(G)};if(q)return{motionName:q};var me=b[he];return me||(ve?null:b.other)}var Br=function(V){Object(T.a)(he,V);var ge=Object(d.a)(he);function he(I){var f;Object(de.a)(this,he),f=ge.call(this,I),f.onSelect=function(G){var q=Object(ae.a)(f),ve=q.props;if(ve.selectable){var me=f.store.getState(),Ae=me.selectedKeys,Fe=G.key;ve.multiple?Ae=Ae.concat([Fe]):Ae=[Fe],"selectedKeys"in ve||f.store.setState({selectedKeys:Ae}),ve.onSelect(Object($.a)(Object($.a)({},G),{},{selectedKeys:Ae}))}},f.onClick=function(G){var q=f.getRealMenuMode(),ve=Object(ae.a)(f),me=ve.store,Ae=ve.props.onOpenChange;q!=="inline"&&!("openKeys"in f.props)&&(me.setState({openKeys:[]}),Ae([])),f.props.onClick(G)},f.onKeyDown=function(G,q){f.innerMenu.getWrappedInstance().onKeyDown(G,q)},f.onOpenChange=function(G){var q=Object(ae.a)(f),ve=q.props,me=f.store.getState().openKeys.concat(),Ae=!1,Fe=function(nt){var gt=!1;if(nt.open)gt=me.indexOf(nt.key)===-1,gt&&me.push(nt.key);else{var nn=me.indexOf(nt.key);gt=nn!==-1,gt&&me.splice(nn,1)}Ae=Ae||gt};Array.isArray(G)?G.forEach(Fe):Fe(G),Ae&&("openKeys"in f.props||f.store.setState({openKeys:me}),ve.onOpenChange(me))},f.onDeselect=function(G){var q=Object(ae.a)(f),ve=q.props;if(ve.selectable){var me=f.store.getState().selectedKeys.concat(),Ae=G.key,Fe=me.indexOf(Ae);Fe!==-1&&me.splice(Fe,1),"selectedKeys"in ve||f.store.setState({selectedKeys:me}),ve.onDeselect(Object($.a)(Object($.a)({},G),{},{selectedKeys:me}))}},f.onMouseEnter=function(G){f.restoreModeVerticalFromInline();var q=f.props.onMouseEnter;q&&q(G)},f.onTransitionEnd=function(G){var q=G.propertyName==="width"&&G.target===G.currentTarget,ve=G.target.className,me=Object.prototype.toString.call(ve)==="[object SVGAnimatedString]"?ve.animVal:ve,Ae=G.propertyName==="font-size"&&me.indexOf("anticon")>=0;(q||Ae)&&f.restoreModeVerticalFromInline()},f.setInnerMenu=function(G){f.innerMenu=G},f.isRootMenu=!0;var M=I.defaultSelectedKeys,b=I.defaultOpenKeys;return"selectedKeys"in I&&(M=I.selectedKeys||[]),"openKeys"in I&&(b=I.openKeys||[]),f.store=Object(s.c)({selectedKeys:M,openKeys:b,activeKey:{"0-menu-":Pa(I,I.activeKey)}}),f.state={switchingModeFromInline:!1,prevProps:I,inlineOpenKeys:[],store:f.store},f}return Object(_e.a)(he,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(f){var M=this.props,b=M.siderCollapsed,G=M.inlineCollapsed,q=M.onOpenChange;(!f.inlineCollapsed&&G||!f.siderCollapsed&&b)&&q([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var f=this.props.collapsedWidth,M=this.store,b=this.prevOpenKeys,G=this.getInlineCollapsed()&&(f===0||f==="0"||f==="0px");G?(this.prevOpenKeys=M.getState().openKeys.concat(),this.store.setState({openKeys:[]})):b&&(this.store.setState({openKeys:b}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var f=this.props.mode,M=this.state.switchingModeFromInline,b=this.getInlineCollapsed();return M&&b?"inline":b?"vertical":f}},{key:"getInlineCollapsed",value:function(){var f=this.props,M=f.inlineCollapsed,b=f.siderCollapsed;return b!==void 0?b:M}},{key:"restoreModeVerticalFromInline",value:function(){var f=this.state.switchingModeFromInline;f&&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 f=Object($.a)({},Object(ue.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),M=this.getRealMenuMode();return f.className+=" ".concat(f.prefixCls,"-root"),f.direction==="rtl"&&(f.className+=" ".concat(f.prefixCls,"-rtl")),f=Object($.a)(Object($.a)({},f),{},{mode:M,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Fr(this.props,this.state,M)}),delete f.openAnimation,delete f.openTransitionName,x.createElement(s.a,{store:this.store},x.createElement(br,Object(ne.a)({},f,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(f,M){var b=M.prevProps,G=M.store,q=G.getState(),ve={},me={prevProps:f};return b.mode==="inline"&&f.mode!=="inline"&&(me.switchingModeFromInline=!0),"openKeys"in f?ve.openKeys=f.openKeys||[]:((f.inlineCollapsed&&!b.inlineCollapsed||f.siderCollapsed&&!b.siderCollapsed)&&(me.switchingModeFromInline=!0,me.inlineOpenKeys=q.openKeys,ve.openKeys=[]),(!f.inlineCollapsed&&b.inlineCollapsed||!f.siderCollapsed&&b.siderCollapsed)&&(ve.openKeys=M.inlineOpenKeys,me.inlineOpenKeys=[])),Object.keys(ve).length&&G.setState(ve),me}}]),he}(x.Component);Br.defaultProps={selectable:!0,onClick:ce,onSelect:ce,onOpenChange:ce,onDeselect:ce,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:x.createElement("span",null,"\xB7\xB7\xB7")};var sa=Br,Tn=function(V){Object(T.a)(he,V);var ge=Object(d.a)(he);function he(){var I;return Object(de.a)(this,he),I=ge.apply(this,arguments),I.onKeyDown=function(f){var M=f.keyCode;return M===m.a.ENTER?(I.onClick(f),!0):void 0},I.onMouseLeave=function(f){var M=I.props,b=M.eventKey,G=M.onItemHover,q=M.onMouseLeave;G({key:b,hover:!1}),q({key:b,domEvent:f})},I.onMouseEnter=function(f){var M=I.props,b=M.eventKey,G=M.onItemHover,q=M.onMouseEnter;G({key:b,hover:!0}),q({key:b,domEvent:f})},I.onClick=function(f){var M=I.props,b=M.eventKey,G=M.multiple,q=M.onClick,ve=M.onSelect,me=M.onDeselect,Ae=M.isSelected,Fe={key:b,keyPath:[b],item:Object(ae.a)(I),domEvent:f};q(Fe),G?Ae?me(Fe):ve(Fe):Ae||ve(Fe)},I.saveNode=function(f){I.node=f},I}return Object(_e.a)(he,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var f=this.props;f.onDestroy&&f.onDestroy(f.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 f,M=Object($.a)({},this.props),b=fe()(this.getPrefixCls(),M.className,(f={},Object(le.a)(f,this.getActiveClassName(),!M.disabled&&M.active),Object(le.a)(f,this.getSelectedClassName(),M.isSelected),Object(le.a)(f,this.getDisabledClassName(),M.disabled),f)),G=Object($.a)(Object($.a)({},M.attribute),{},{title:typeof M.title=="string"?M.title:void 0,className:b,role:M.role||"menuitem","aria-disabled":M.disabled});M.role==="option"?G=Object($.a)(Object($.a)({},G),{},{role:"option","aria-selected":M.isSelected}):(M.role===null||M.role==="none")&&(G.role="none");var q={onClick:M.disabled?null:this.onClick,onMouseLeave:M.disabled?null:this.onMouseLeave,onMouseEnter:M.disabled?null:this.onMouseEnter},ve=Object($.a)({},M.style);M.mode==="inline"&&(M.direction==="rtl"?ve.paddingRight=M.inlineIndent*M.level:ve.paddingLeft=M.inlineIndent*M.level),Ie.forEach(function(Ae){return delete M[Ae]}),delete M.direction;var me=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(me=x.createElement(this.props.itemIcon,this.props)),x.createElement("li",Object(ne.a)({},Object(ue.a)(M,["onClick","onMouseEnter","onMouseLeave","onSelect"]),G,q,{style:ve,ref:this.saveNode}),M.children,me)}}]),he}(x.Component);Tn.isMenuItem=!0,Tn.defaultProps={onSelect:ce,onMouseEnter:ce,onMouseLeave:ce,manualRef:ce};var $n=Object(s.b)(function(V,ge){var he=V.activeKey,I=V.selectedKeys,f=ge.eventKey,M=ge.subMenuKey;return{active:he[M]===f,isSelected:Array.isArray(I)?I.indexOf(f)!==-1:I===f}})(Tn),Ba=$n,Ka=function(V){Object(T.a)(he,V);var ge=Object(d.a)(he);function he(){var I;return Object(de.a)(this,he),I=ge.apply(this,arguments),I.renderInnerMenuItem=function(f){var M=I.props,b=M.renderMenuItem,G=M.index;return b(f,G,I.props.subMenuKey)},I}return Object(_e.a)(he,[{key:"render",value:function(){var f=Object(ne.a)({},this.props),M=f.className,b=M===void 0?"":M,G=f.rootPrefixCls,q="".concat(G,"-item-group-title"),ve="".concat(G,"-item-group-list"),me=f.title,Ae=f.children;return Ie.forEach(function(Fe){return delete f[Fe]}),delete f.direction,x.createElement("li",Object(ne.a)({},f,{onClick:function(Ve){return Ve.stopPropagation()},className:"".concat(b," ").concat(G,"-item-group")}),x.createElement("div",{className:q,title:typeof me=="string"?me:void 0},me),x.createElement("ul",{className:ve},x.Children.map(Ae,this.renderInnerMenuItem)))}}]),he}(x.Component);Ka.isMenuItemGroup=!0,Ka.defaultProps={disabled:!0};var cr=Ka,Ta=function(ge){var he=ge.className,I=ge.rootPrefixCls,f=ge.style;return x.createElement("li",{className:"".concat(he," ").concat(I,"-item-divider"),style:f})};Ta.defaultProps={disabled:!0,className:"",style:{}};var Qa=Ta,Or=sa,Ga=o("eDIo");function Lr(V,ge){var he=V.prefixCls,I=V.editable,f=V.locale,M=V.style;return!I||I.showAdd===!1?null:x.createElement("button",{ref:ge,type:"button",className:"".concat(he,"-nav-add"),style:M,"aria-label":(f==null?void 0:f.addAriaLabel)||"Add tab",onClick:function(G){I.onEdit("add",{event:G})}},I.addIcon||"+")}var ar=x.forwardRef(Lr);function Er(V,ge){var he=V.prefixCls,I=V.id,f=V.tabs,M=V.locale,b=V.mobile,G=V.moreIcon,q=G===void 0?"More":G,ve=V.moreTransitionName,me=V.style,Ae=V.className,Fe=V.editable,Ve=V.tabBarGutter,nt=V.rtl,gt=V.onTabClick,nn=Object(x.useState)(!1),Gt=Object(J.a)(nn,2),Cn=Gt[0],On=Gt[1],Pn=Object(x.useState)(null),Rn=Object(J.a)(Pn,2),Sn=Rn[0],Yn=Rn[1],Fn="".concat(I,"-more-popup"),xa="".concat(he,"-dropdown"),Bn=Sn!==null?"".concat(Fn,"-").concat(Sn):null,Yt=M==null?void 0:M.dropdownAriaLabel,Jt=x.createElement(Or,{onClick:function(va){var pa=va.key,ja=va.domEvent;gt(pa,ja),On(!1)},id:Fn,tabIndex:-1,role:"listbox","aria-activedescendant":Bn,selectedKeys:[Sn],"aria-label":Yt!==void 0?Yt:"expanded dropdown"},f.map(function(ra){return x.createElement(Ba,{key:ra.key,id:"".concat(Fn,"-").concat(ra.key),role:"option","aria-controls":I&&"".concat(I,"-panel-").concat(ra.key),disabled:ra.disabled},ra.tab)}));function Wn(ra){for(var va=f.filter(function(sr){return!sr.disabled}),pa=va.findIndex(function(sr){return sr.key===Sn})||0,ja=va.length,Va=0;Vaea?(Zn=Jt,Fn.current="x"):(Zn=Wn,Fn.current="y");var _a=Date.now();_a-Sn.current>100&&(Yn.current=!1),(ge(-Zn,-Zn)||Yn.current)&&(Yt.preventDefault(),Yn.current=!0),Sn.current=_a}var Bn=Object(x.useRef)(null);Bn.current={onTouchStart:On,onTouchMove:Pn,onTouchEnd:Rn,onWheel:xa},x.useEffect(function(){function Yt(It){Bn.current.onTouchStart(It)}function Jt(It){Bn.current.onTouchMove(It)}function Wn(It){Bn.current.onTouchEnd(It)}function Zn(It){Bn.current.onWheel(It)}return document.addEventListener("touchmove",Jt,{passive:!1}),document.addEventListener("touchend",Wn,{passive:!1}),V.current.addEventListener("touchstart",Yt,{passive:!1}),V.current.addEventListener("wheel",Zn),function(){document.removeEventListener("touchmove",Jt),document.removeEventListener("touchend",Wn)}},[])}function Rr(){var V=Object(x.useRef)(new Map);function ge(I){return V.current.has(I)||V.current.set(I,x.createRef()),V.current.get(I)}function he(I){V.current.delete(I)}return[ge,he]}function Jr(V,ge){var he=x.useRef(V),I=x.useState({}),f=Object(J.a)(I,2),M=f[1];function b(G){var q=typeof G=="function"?G(he.current):G;q!==he.current&&ge(q,he.current),he.current=q,M({})}return[he.current,b]}var uo=function(ge){var he=ge.position,I=ge.prefixCls,f=ge.extra;if(!f)return null;var M,b=f;return he==="right"&&(M=b.right||!b.left&&b||null),he==="left"&&(M=b.left||null),M?x.createElement("div",{className:"".concat(I,"-extra-content")},M):null};function co(V,ge){var he,I=x.useContext(Sr),f=I.prefixCls,M=I.tabs,b=V.className,G=V.style,q=V.id,ve=V.animated,me=V.activeKey,Ae=V.rtl,Fe=V.extra,Ve=V.editable,nt=V.locale,gt=V.tabPosition,nn=V.tabBarGutter,Gt=V.children,Cn=V.onTabClick,On=V.onTabScroll,Pn=Object(x.useRef)(),Rn=Object(x.useRef)(),Sn=Object(x.useRef)(),Yn=Object(x.useRef)(),Fn=Rr(),xa=Object(J.a)(Fn,2),Bn=xa[0],Yt=xa[1],Jt=gt==="top"||gt==="bottom",Wn=Jr(0,function(da,Qn){Jt&&On&&On({direction:da>Qn?"left":"right"})}),Zn=Object(J.a)(Wn,2),It=Zn[0],ea=Zn[1],_a=Jr(0,function(da,Qn){!Jt&&On&&On({direction:da>Qn?"top":"bottom"})}),ra=Object(J.a)(_a,2),va=ra[0],pa=ra[1],ja=Object(x.useState)(0),Va=Object(J.a)(ja,2),Ma=Va[0],sr=Va[1],Dr=Object(x.useState)(0),dr=Object(J.a)(Dr,2),Xa=dr[0],Ca=dr[1],ga=Object(x.useState)(0),Ra=Object(J.a)(ga,2),Oa=Ra[0],Pr=Ra[1],Vr=Object(x.useState)(0),Xr=Object(J.a)(Vr,2),ma=Xr[0],kr=Xr[1],Yr=Object(x.useState)(null),Ea=Object(J.a)(Yr,2),fa=Ea[0],Ya=Ea[1],Oi=Object(x.useState)(null),ti=Object(J.a)(Oi,2),Zr=ti[0],ho=ti[1],jo=Object(x.useState)(0),ni=Object(J.a)(jo,2),No=ni[0],Ji=ni[1],Vi=Object(x.useState)(0),Si=Object(J.a)(Vi,2),ai=Si[0],ri=Si[1],po=g(new Map),mo=Object(J.a)(po,2),Xi=mo[0],Lo=mo[1],_o=S(M,Xi,Ma),vo="".concat(f,"-nav-operations-hidden"),go=0,wr=0;Jt?Ae?(go=0,wr=Math.max(0,Ma-fa)):(go=Math.min(0,fa-Ma),wr=0):(go=Math.min(0,Zr-Xa),wr=0);function no(da){return dawr?[wr,!1]:[da,!0]}var qr=Object(x.useRef)(),Oo=Object(x.useState)(),ao=Object(J.a)(Oo,2),Io=ao[0],oi=ao[1];function Uo(){oi(Date.now())}function ii(){window.clearTimeout(qr.current)}Ir(Pn,function(da,Qn){var Za=!1;function hr(bo,zr){bo(function(Ro){var eo=no(Ro+zr),qa=Object(J.a)(eo,2),Bo=qa[0],li=qa[1];return Za=li,Bo})}if(Jt){if(fa>=Ma)return Za;hr(ea,da)}else{if(Zr>=Xa)return Za;hr(pa,Qn)}return ii(),Uo(),Za}),Object(x.useEffect)(function(){return ii(),Io&&(qr.current=window.setTimeout(function(){oi(0)},100)),ii},[Io]);function $r(){var da=arguments.length>0&&arguments[0]!==void 0?arguments[0]:me,Qn=_o.get(da);if(!Qn)return;if(Jt){var Za=It;Ae?Qn.rightIt+fa&&(Za=Qn.right+Qn.width-fa):Qn.left<-It?Za=-Qn.left:Qn.left+Qn.width>-It+fa&&(Za=-(Qn.left+Qn.width-fa)),pa(0),ea(no(Za)[0])}else{var hr=va;Qn.top<-va?hr=-Qn.top:Qn.top+Qn.height>-va+Zr&&(hr=-(Qn.top+Qn.height-Zr)),ea(0),pa(no(hr)[0])}}var ro=Z(_o,{width:fa,height:Zr,left:It,top:va},{width:Oa,height:ma},{width:No,height:ai},Object($.a)(Object($.a)({},V),{},{tabs:M})),Mi=Object(J.a)(ro,2),Yi=Mi[0],Zi=Mi[1],qi=M.map(function(da){var Qn=da.key;return x.createElement(p,{id:q,prefixCls:f,key:Qn,rtl:Ae,tab:da,closable:da.closable,editable:Ve,active:Qn===me,tabPosition:gt,tabBarGutter:nn,renderWrapper:Gt,removeAriaLabel:nt==null?void 0:nt.removeAriaLabel,ref:Bn(Qn),onClick:function(hr){Cn(Qn,hr)},onRemove:function(){Yt(Qn)},onFocus:function(){$r(Qn),Uo(),Ae||(Pn.current.scrollLeft=0),Pn.current.scrollTop=0}})}),si=u(function(){var da,Qn,Za,hr,bo,zr,Ro,eo,qa,Bo=((da=Pn.current)===null||da===void 0?void 0:da.offsetWidth)||0,li=((Qn=Pn.current)===null||Qn===void 0?void 0:Qn.offsetHeight)||0,ui=((Za=Yn.current)===null||Za===void 0?void 0:Za.offsetWidth)||0,pr=((hr=Yn.current)===null||hr===void 0?void 0:hr.offsetHeight)||0,la=((bo=Sn.current)===null||bo===void 0?void 0:bo.offsetWidth)||0,jr=((zr=Sn.current)===null||zr===void 0?void 0:zr.offsetHeight)||0;Ya(Bo),ho(li),Ji(ui),ri(pr);var Hr=(((Ro=Rn.current)===null||Ro===void 0?void 0:Ro.offsetWidth)||0)-ui,Qr=(((eo=Rn.current)===null||eo===void 0?void 0:eo.offsetHeight)||0)-pr;sr(Hr),Ca(Qr);var ci=(qa=Sn.current)===null||qa===void 0?void 0:qa.className.includes(vo);Pr(Hr-(ci?0:la)),kr(Qr-(ci?0:jr)),Lo(function(){var Ko=new Map;return M.forEach(function(Ti){var ji=Ti.key,io=Bn(ji).current;io&&Ko.set(ji,{width:io.offsetWidth,height:io.offsetHeight,left:io.offsetLeft,top:io.offsetTop})}),Ko})}),$i=M.slice(0,Yi),fr=M.slice(Zi+1),Ia=[].concat(Object(L.a)($i),Object(L.a)(fr)),rr=Object(x.useState)(),Ua=Object(J.a)(rr,2),So=Ua[0],es=Ua[1],Tr=_o.get(me),Ri=Object(x.useRef)();function Di(){_.a.cancel(Ri.current)}Object(x.useEffect)(function(){var da={};return Tr&&(Jt?(Ae?da.right=Tr.right:da.left=Tr.left,da.width=Tr.width):(da.top=Tr.top,da.height=Tr.height)),Di(),Ri.current=_()(function(){es(da)}),Di},[Tr,Jt,Ae]),Object(x.useEffect)(function(){$r()},[me,Tr,_o,Jt]),Object(x.useEffect)(function(){si()},[Ae,nn,me,M.map(function(da){return da.key}).join("_")]);var Pi=!!Ia.length,oo="".concat(f,"-nav-wrap"),ko,Mo,wi,Fo;return Jt?Ae?(Mo=It>0,ko=It+faIe&&(Y="other")),F&&(N.filename=F),Object(L.useEffect)(function(){var it,xt,vt=(it=document.cookie)===null||it===void 0||((xt=it.replace(/\s/g,""))===null||xt===void 0)?void 0:xt.split(";");vt==null||vt.map(function(Ut){var Ht=Ut.split("=");Ht[0]==="_educoder_session"&&Ce(Ht[1])})},[]),Object(L.useEffect)(function(){Y==="office"&&qe()},[Y,s]);var qe=function(){var it=Object(D.a)(z.a.mark(function xt(){var vt,Ut,Ht;return z.a.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return console.log("data:",s),vt=s,s.startsWith("http")||(vt=location.origin+vt),Ut=new URL(vt).pathname.split("/").pop(),Le.next=6,Object(E.U)({attachment_id:Ut});case 6:Ht=Le.sent,ce(Ht);case 8:case"end":return Le.stop()}},xt)}));return function(){return it.apply(this,arguments)}}(),Je=function(){if(s.startsWith("http")||s.startsWith("blob:")){$e();return}Object(m.x)(F||"educoder",s,F)},$e=function(){Object(m.v)(F||"educoder",decodeURIComponent(s))};return C.a.createElement("div",{style:Object(x.a)({},w||{}),className:"".concat(ee&&O.a.bgBlack," ").concat(Y?O.a.wrp:"hide")},j&&C.a.createElement("div",{className:O.a.close,ref:Ge},!!te&&C.a.createElement($.a,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:function(){return Ge.current}},C.a.createElement("span",{onClick:function(){K(),te()}},C.a.createElement("i",{className:"icon-yulanpizhu"}))),!B&&C.a.createElement($.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return Ge.current}},C.a.createElement("span",{onClick:$e},C.a.createElement("i",{className:"icon-quxiaozhiding"}))),C.a.createElement($.a,{title:"\u5173\u95ED",getPopupContainer:function(){return Ge.current}},C.a.createElement("span",{className:"",onClick:K},C.a.createElement("i",{className:"icon-guanbi1"})))),C.a.createElement("div",{className:"".concat(O.a[H]," ").concat(H," ").concat(O.a.monaco," ").concat(Y==="txt"?"show":"hide")},Y==="txt"&&C.a.createElement(g.b,N)),Y==="audio"&&C.a.createElement("audio",{src:"".concat(((U=s)===null||U===void 0?void 0:U.indexOf("http://"))>-1||((Z=s)===null||Z===void 0?void 0:Z.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(s),autoPlay:!0}),Y==="video"&&C.a.createElement(C.a.Fragment,null,((ne=s)===null||ne===void 0?void 0:ne.indexOf("http"))>-1?C.a.createElement("video",{controls:!0,src:"".concat(s),autoPlay:!0}):C.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(s),autoPlay:!0})),Y==="office"&&P&&C.a.createElement("iframe",{src:"".concat(R,"/office.html?key=").concat(P.key,"&url=").concat(Q+P.url,"&callbackUrl=").concat(Q+P.callbackUrl,"&fileType=").concat(P.fileType,"&title=").concat(P.title,"&model=").concat(T,"&officeServer=").concat(p.a.OFFICE_SERVER,"&disabledDownload=").concat(!!B)}),(Y==="xlsx"||Y==="doc"||Y==="pptx"||Y==="docx")&&C.a.createElement("iframe",{src:"/react/build/office.html?key=".concat(ye.key,"&url=").concat(p.a.API_SERVER+ye.url,"&callbackUrl=").concat(p.a.API_SERVER+ye.callbackUrl,"&fileType=").concat(ye.fileType,"&title=").concat(ye.title,"&model=").concat(ye.model)}),Y==="html"&&C.a.createElement("iframe",{src:s+"&disposition=inline"}),Y==="pdf"&&C.a.createElement("embed",{className:O.a.embed,src:s}),Y==="image"&&C.a.createElement("img",{src:"".concat(((de=s)===null||de===void 0?void 0:de.indexOf("http://"))>-1||((_e=s)===null||_e===void 0?void 0:_e.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(s)}),Y==="other"&&C.a.createElement("div",null,C.a.createElement(J.a,{type:"primary",size:"large",onClick:Je},C.a.createElement(u.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),Y==="download"&&C.a.createElement(J.a,{type:"primary",size:"large",onClick:Je},C.a.createElement(u.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(Te,k,o){},pmY6:function(Te,k,o){"use strict";o.d(k,"g",function(){return x}),o.d(k,"f",function(){return D}),o.d(k,"e",function(){return fe}),o.d(k,"h",function(){return oe}),o.d(k,"b",function(){return z}),o.d(k,"a",function(){return L}),o.d(k,"d",function(){return C}),o.d(k,"c",function(){return _});var le=!1,J="__is_disposable_tracked__";function Re(O){if(!le)return;if(O&&O!==L.None)try{O[J]=!0}catch(u){}}function $(O){if(!le)return O;var u=new Error("Potentially leaked disposable").stack;return setTimeout(function(){O[J]||console.log(u)},3e3),O}function x(O){return typeof O.dispose=="function"&&O.dispose.length===0}function D(O){return Array.isArray(O)?(O.forEach(function(u){u&&(Re(u),u.dispose())}),[]):O?(Re(O),O.dispose(),O):void 0}function fe(){for(var O=[],u=0;u=Re.length?{done:!0}:{done:!1,value:Re[D++]}},e:function(_){throw _},f:fe}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var oe=!0,z=!1,L;return{s:function(){x=Re[Symbol.iterator]()},n:function(){var _=x.next();return oe=_.done,_},e:function(_){z=!0,L=_},f:function(){try{!oe&&x.return!=null&&x.return()}finally{if(z)throw L}}}}},rHrb:function(Te,k,o){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.CopyToClipboard=void 0;var le=Re(o("q1tI")),J=Re(o("+QRC"));function Re(y){return y&&y.__esModule?y:{default:y}}function $(y){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$=function(U){return typeof U}:$=function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},$(y)}function x(y,S){var U=Object.keys(y);if(Object.getOwnPropertySymbols){var Z=Object.getOwnPropertySymbols(y);S&&(Z=Z.filter(function(ne){return Object.getOwnPropertyDescriptor(y,ne).enumerable})),U.push.apply(U,Z)}return U}function D(y){for(var S=1;S=0)continue;if(!Object.prototype.propertyIsEnumerable.call(y,Z))continue;U[Z]=y[Z]}}return U}function oe(y,S){if(y==null)return{};var U={},Z=Object.keys(y),ne,de;for(de=0;de=0)continue;U[ne]=y[ne]}return U}function z(y,S){if(!(y instanceof S))throw new TypeError("Cannot call a class as a function")}function L(y,S){for(var U=0;U=7){Y.b.info("\u8BF7\u8F93\u51656\u4F4D\u5F00\u53D1\u9879\u76EE\u9080\u8BF7\u7801\uFF01");return}lt(gn.target.value)}})),u.a.createElement("div",{className:"mt10 font14"},u.a.createElement("span",null,"\u8EAB\u4EFD\uFF1A"),u.a.createElement(N.a.Group,{value:At,onChange:function(gn){return kt(gn.target.value)}},u.a.createElement(N.a,{value:j.Manager},"\u7BA1\u7406\u4EBA\u5458"),u.a.createElement(N.a,{value:j.Developer},"\u5F00\u53D1\u4EBA\u5458"),u.a.createElement(N.a,{value:j.Reporter},"\u62A5\u544A\u4EBA\u5458"))))))},ee=K,B=o("Jky8"),te=o("6Fuo"),ye=o.n(te),Pe=o("NLgs"),xe;(function(Ue){Ue.Projects="projects",Ue.Shixuns="shixuns",Ue.Classrooms="classrooms"})(xe||(xe={}));var Se;(function(Ue){Ue.Classrooms="classrooms",Ue.Shixuns="shixuns",Ue.Paths="paths",Ue.Projects="projects",Ue.Videos="videos",Ue.Topics="topics"})(Se||(Se={}));var X=function(ke){var Ke,He,Ze,Be,Xe,ut,lt,Ct=ke.homePage,bt=ke.user,At=ke.globalSetting,kt=ke.loading,St=ke.dispatch,Wt=ke.location,fn=Object(x.a)(ke,["homePage","user","globalSetting","loading","dispatch","location"]),vn=Object(O.useState)(),An=Object($.a)(vn,2),zn=An[0],sn=An[1],gn=Object(O.useState)(),Kt=Object($.a)(gn,2),hn=Kt[0],pn=Kt[1],Rt=function(tt){var bn;if(!Object(Pe.e)(St))return;if(tt===xe.Projects&&!((bn=bt.userInfo)!==null&&bn!==void 0&&bn.email)){Y.b.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}tt===xe.Classrooms?sn(!0):tt===xe.Projects&&pn(!0)},pt=function(tt,bn){var Gn;if(!Object(Pe.e)(St))return;if(bn===xe.Projects&&!((Gn=bt.userInfo)!==null&&Gn!==void 0&&Gn.email)){Y.b.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}if(bn===xe.Shixuns&&!Object(Pe.c)())return;tt&&(window.location.href=tt)},ot=(Ke=(((He=At.setting)===null||He===void 0?void 0:He.navbar)||[]).find(function(zt){return zt.link==="/".concat(Se.Classrooms)}))===null||Ke===void 0?void 0:Ke.hidden,Mt=(Ze=(((Be=At.setting)===null||Be===void 0?void 0:Be.navbar)||[]).find(function(zt){return zt.link==="/".concat(Se.Shixuns)}))===null||Ze===void 0?void 0:Ze.hidden,Ft=(Xe=(((ut=At.setting)===null||ut===void 0?void 0:ut.navbar)||[]).find(function(zt){return zt.link==="/".concat(Se.Paths)}))===null||Xe===void 0?void 0:Xe.hidden;if(At!=null&&(lt=At.setting)!==null&<!==void 0&<.is_local){var xn;bt!=null&&(xn=bt.userInfo)!==null&&xn!==void 0&&xn.is_shixun_marker||(Mt=!0)}var wn=function(tt){var bn,Gn,ta,$t,Tt,Nn,ua,Me,Oe,at,mt,dt,Nt,Dt;return u.a.createElement(u.a.Fragment,null,u.a.createElement(_e.a,{justify:"space-around",className:"pt5 pb5"},u.a.createElement(T.a,{className:ye.a.joinCol},((bn=bt.userInfo)===null||bn===void 0?void 0:bn.user_identity)!=="\u5B66\u751F"&&!ot&&u.a.createElement(s.a.Item,tt,u.a.createElement("a",{onClick:function(){return pt("/classrooms/new")}},(Gn=bt.userInfo)!==null&&Gn!==void 0&&Gn.main_site?"\u65B0\u5EFA\u6559\u5B66\u8BFE\u5802":"\u65B0\u5EFA\u8BFE\u5802")),!Mt&&u.a.createElement(s.a.Item,tt,u.a.createElement("a",{onClick:function(){return pt("/shixuns/new",xe.Shixuns)}},"\u65B0\u5EFA\u5B9E\u8DF5\u9879\u76EE")),(((ta=bt.userInfo)===null||ta===void 0?void 0:ta.main_site)&&(($t=bt.navigationInfo)===null||$t===void 0?void 0:$t.top)||!((Tt=bt.userInfo)!==null&&Tt!==void 0&&Tt.main_site)&&((Nn=bt.navigationInfo)===null||Nn===void 0?void 0:Nn.top)&&!Ft&&(((ua=bt.userInfo)===null||ua===void 0?void 0:ua.admin)||((Me=bt.userInfo)===null||Me===void 0?void 0:Me.is_teacher)||((Oe=bt.userInfo)===null||Oe===void 0?void 0:Oe.business)))&&u.a.createElement(s.a.Item,tt,u.a.createElement("a",{onClick:function(){return pt("/paths/new")}},"\u65B0\u5EFA\u5B9E\u8DF5\u8BFE\u7A0B")),!(At!=null&&(at=At.setting)!==null&&at!==void 0&&at.is_local)&&((mt=bt.userInfo)===null||mt===void 0?void 0:mt.main_site)&&u.a.createElement(s.a.Item,tt,u.a.createElement("a",{onClick:function(){var ht,Pt;return pt("".concat((ht=bt.navigationInfo)===null||ht===void 0||((Pt=ht.top)===null||Pt===void 0)?void 0:Pt.old_url,"/projects/deposit/new"),xe.Projects)}},"\u65B0\u5EFA\u5F00\u53D1\u9879\u76EE"))),u.a.createElement(T.a,null,u.a.createElement("div",{className:ye.a.joinBoard})),u.a.createElement(T.a,{className:ye.a.joinCol},!ot&&u.a.createElement(s.a.Item,tt,u.a.createElement("a",{onClick:function(){return Rt(xe.Classrooms)}},(dt=bt.userInfo)!==null&&dt!==void 0&&dt.main_site?"\u52A0\u5165\u6559\u5B66\u8BFE\u5802":"\u52A0\u5165\u8BFE\u5802")),((Nt=bt.userInfo)===null||Nt===void 0?void 0:Nt.main_site)&&!(At!=null&&(Dt=At.setting)!==null&&Dt!==void 0&&Dt.is_local)&&u.a.createElement(s.a.Item,tt,u.a.createElement("a",{onClick:function(){return Rt(xe.Projects)}},"\u52A0\u5165\u5F00\u53D1\u9879\u76EE")))))};return u.a.createElement("section",null,u.a.createElement(ne.a,{overlay:u.a.createElement(s.a,{className:"".concat(ye.a.rightMenu," ").concat(ye.a.joinMenu," mt10")},u.a.createElement(wn,null)),placement:"bottomRight"},u.a.createElement("span",{style:{lineHeight:"inherit"},className:"iconfont icon-tianjiafangda c-white font18 current ml15 mr15"})),u.a.createElement(B.a,{visible:zn,onCancel:function(){return sn(!1)}}),u.a.createElement(ee,{visible:hn,onCancel:function(){return pn(!1)}}))},re=Object(E.a)(function(Ue){var ke=Ue.homePage,Ke=Ue.loading,He=Ue.user,Ze=Ue.globalSetting;return{homePage:ke,user:He,globalSetting:Ze,loading:Ke.models.index}})(X),Ee=o("vToQ"),ie=o.n(Ee),Ce=o("xKgJ"),v=o("jb+D"),W=o("m3rI"),P=function(ke){var Ke,He=RegExp("(^| )"+ke+"=([^;]+)(;|$)");return(Ke=document.cookie.match(He))?decodeURIComponent(Ke[2]):null},ce=function(ke){var Ke=new Date;Ke.setTime(Ke.getTime()-1);var He=P(ke);He!=null&&(document.cookie=ke+"="+He+";expires="+Ke.toGMTString())},R;(function(Ue){Ue.Classrooms="classrooms",Ue.Shixuns="shixuns",Ue.Paths="paths",Ue.Projects="projects",Ue.Videos="videos",Ue.Topics="topics"})(R||(R={}));var Q=function(ke){var Ke,He,Ze,Be,Xe,ut,lt,Ct,bt,At,kt,St=ke.homePage,Wt=ke.user,fn=ke.globalSetting,vn=ke.loading,An=ke.dispatch,zn=ke.shixunHomeworks,sn=ke.location,gn=ke.payload,Kt=gn===void 0?{}:gn,hn=Object(x.a)(ke,["homePage","user","globalSetting","loading","dispatch","shixunHomeworks","location","payload"]),pn=(Ke=(((He=fn.setting)===null||He===void 0?void 0:He.navbar)||[]).find(function(zt){return zt.link==="/".concat(R.Classrooms)}))===null||Ke===void 0?void 0:Ke.hidden,Rt=(Ze=(((Be=fn.setting)===null||Be===void 0?void 0:Be.navbar)||[]).find(function(zt){return zt.link==="/".concat(R.Shixuns)}))===null||Ze===void 0?void 0:Ze.hidden,pt=(Xe=(((ut=fn.setting)===null||ut===void 0?void 0:ut.navbar)||[]).find(function(zt){return zt.link==="/".concat(R.Paths)}))===null||Xe===void 0?void 0:Xe.hidden,ot=((lt=Wt.userInfo)===null||lt===void 0?void 0:lt.admin)||((Ct=Wt.userInfo)===null||Ct===void 0?void 0:Ct.business)||((bt=Wt.userInfo)===null||bt===void 0?void 0:bt.is_shixun_marker)||((At=Wt.userInfo)===null||At===void 0?void 0:At.is_teacher)||((kt=Wt.userInfo)===null||kt===void 0?void 0:kt.user_identity)!=="\u5B66\u751F",Mt=function(){if(Object(w.p)())return u.a.createElement(s.a,{className:"".concat(ie.a.rightMenu," ").concat(ie.a.menuWrap)},u.a.createElement(s.a.Item,null,u.a.createElement(m.a,{to:"/account/profile"},"\u8D26\u53F7\u7BA1\u7406")));var tt,bn,Gn,ta,$t,Tt,Nn,ua,Me,Oe,at,mt,dt,Nt,Dt,Ye,ht,Pt,Xt,_t,Zt,Ln,qt;return u.a.createElement(s.a,{className:"".concat(ie.a.rightMenu," ").concat(ie.a.menuWrap)},u.a.createElement(s.a.Item,null,u.a.createElement(m.a,{to:"/users/".concat((tt=Wt.userInfo)===null||tt===void 0?void 0:tt.login,"/classrooms")},"\u6211\u7684\u4E2A\u4EBA\u4E3B\u9875")),!pn&&u.a.createElement(s.a.Item,null,u.a.createElement(m.a,{to:"/users/".concat((bn=Wt.userInfo)===null||bn===void 0?void 0:bn.login,"/classrooms")},(Gn=Wt.userInfo)!==null&&Gn!==void 0&&Gn.main_site?"\u6211\u7684\u6559\u5B66\u8BFE\u5802":"\u6211\u7684\u8BFE\u5802")),!Rt&&u.a.createElement(s.a.Item,null,u.a.createElement(m.a,{to:"/users/".concat((ta=Wt.userInfo)===null||ta===void 0?void 0:ta.login,"/shixuns")},"\u6211\u7684\u5B9E\u8DF5\u9879\u76EE")),!pt&&u.a.createElement(s.a.Item,null,u.a.createElement(m.a,{to:"/users/".concat(($t=Wt.userInfo)===null||$t===void 0?void 0:$t.login,"/paths")},(Tt=Wt.userInfo)!==null&&Tt!==void 0&&Tt.main_site?"\u6211\u7684\u5B9E\u8DF5\u8BFE\u7A0B":"\u6211\u7684\u8BFE\u7A0B")),((Nn=Wt.userInfo)===null||Nn===void 0?void 0:Nn.main_site)&&!((ua=fn.setting)!==null&&ua!==void 0&&ua.is_local)&&u.a.createElement(s.a.Item,null,u.a.createElement(m.a,{to:"/users/".concat((Me=Wt.userInfo)===null||Me===void 0?void 0:Me.login,"/projects")},"\u6211\u7684\u5F00\u53D1\u9879\u76EE")),u.a.createElement(s.a.Item,null,u.a.createElement(m.a,{to:"/users/".concat((Oe=Wt.userInfo)===null||Oe===void 0?void 0:Oe.login,"/teach-group")},"\u6211\u7684\u6559\u7814\u56E2\u961F")),u.a.createElement(s.a.Item,null,u.a.createElement(m.a,{to:"/users/".concat((at=Wt.userInfo)===null||at===void 0?void 0:at.login,"/vspaces")},"\u6211\u7684\u865A\u62DF\u793E\u533A")),u.a.createElement(s.a.Item,null,u.a.createElement("a",{onClick:function(){if(!Object(Pe.e)(An))return;E.d.push("/problemset")}},"\u8BD5\u9898\u5E93")),ot&&u.a.createElement(s.a.Item,null,u.a.createElement("a",{onClick:function(){if(!Object(Pe.e)(An))return;E.d.push("/paperlibrary")}},"\u8BD5\u5377\u5E93")),((mt=Wt.navigationInfo)===null||mt===void 0||((dt=mt.top)===null||dt===void 0)?void 0:dt.customer_management_url)&&u.a.createElement(s.a.Item,null,u.a.createElement("a",{href:(Nt=Wt.navigationInfo)===null||Nt===void 0||((Dt=Nt.top)===null||Dt===void 0)?void 0:Dt.customer_management_url},"\u5BA2\u6237\u7BA1\u7406")),((Ye=Wt.navigationInfo)===null||Ye===void 0||((ht=Ye.top)===null||ht===void 0)?void 0:ht.college_identifier)&&u.a.createElement(s.a.Item,null,u.a.createElement(m.a,{to:"/colleges/".concat((Pt=Wt.navigationInfo)===null||Pt===void 0||((Xt=Pt.top)===null||Xt===void 0)?void 0:Xt.college_identifier,"/statistics")},"\u5B66\u9662\u7EDF\u8BA1")),((_t=Wt.navigationInfo)===null||_t===void 0||((Zt=_t.top)===null||Zt===void 0)?void 0:Zt.laboratory_admin_url)&&u.a.createElement(s.a.Item,null,u.a.createElement("a",{href:(Ln=Wt.navigationInfo)===null||Ln===void 0||((qt=Ln.top)===null||qt===void 0)?void 0:qt.laboratory_admin_url},"\u540E\u53F0\u7BA1\u7406")),u.a.createElement(s.a.Item,null,u.a.createElement(m.a,{onClick:function(){localStorage.getItem("Noviceguide")==="0"||An({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:2,href:"/classrooms",text:u.a.createElement("div",null,"OK\uFF0C\u63A5\u4E0B\u6765\uFF0C\u8BA9\u6211\u4EEC\u5F00\u59CB\u65B0\u5EFA\u3010\u6559\u5B66\u8BFE\u5802\u3011\uFF0C\u8BF7\u60A8\u627E\u5230\u95EA\u5149\u6846\u5E76\u70B9\u51FB \u201C\u6559\u5B66\u8BFE\u5802\u201D\u3002")}})},to:"/account/profile"},"\u8D26\u53F7\u7BA1\u7406")),u.a.createElement(s.a.Item,{className:ie.a.exit},u.a.createElement("a",{onClick:Object(Re.a)(_.a.mark(function Mn(){var un;return _.a.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:return wt.next=2,Object(v.c)({});case 2:un=wt.sent,(un==null?void 0:un.status)===1&&(An({type:"user/getUserInfo",payload:Object(D.a)({},Kt)}),An({type:"user/getNavigationInfo",payload:Object(D.a)({},Kt)}),ce("autologin_trustie"),ce("_educoder_session"),localStorage.removeItem("isfirst"),localStorage.removeItem("SystemUpdateadvtime"),localStorage.removeItem("item"),localStorage.removeItem("iscreate"),Y.b.success(un==null?void 0:un.message),E.d.replace("/"));case 4:case"end":return wt.stop()}},Mn)}))},"\u9000\u51FA")))};if(Object(Ce.p)()){var Ft,xn;return u.a.createElement(ne.a,{className:"".concat(ie.a.height67," pr25"),overlay:Mt,placement:"bottomRight"},u.a.createElement("section",null,u.a.createElement("aside",null,u.a.createElement("div",{className:zn.actionTabs.type===1?ie.a.classromediv:""},u.a.createElement("img",{className:"".concat(ie.a.userPic," current ml15"),src:"".concat(W.a===null||W.a===void 0?void 0:W.a.IMG_SERVER,"/images/").concat((Ft=Wt.userInfo)===null||Ft===void 0?void 0:Ft.image_url),alt:"",onClick:function(){var tt;return E.d.push(Object(w.p)()?"/account/profile":"/users/".concat((tt=Wt.userInfo)===null||tt===void 0?void 0:tt.login,"/classrooms"))}}),Object(w.p)()&&u.a.createElement("span",{className:"ml10 font16"},(xn=Wt.userInfo)===null||xn===void 0?void 0:xn.username)))))}else{var wn;return u.a.createElement("div",{className:"font15 mr15 ".concat(fn.isIlearning?ie.a.login:"")},u.a.createElement("span",{className:"ml10 mr5 current c-white",onClick:function(){An({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}})}},"\u767B\u5F55"),!((wn=fn.setting)!==null&&wn!==void 0&&wn.close_register)&&u.a.createElement(u.a.Fragment,null,u.a.createElement("span",{className:"ml5 mr5"},"|"),u.a.createElement(m.a,{to:"/user/register",className:"ml5 current c-white pr25"},"\u6CE8\u518C")))}},be=Object(E.a)(function(Ue){var ke=Ue.homePage,Ke=Ue.loading,He=Ue.user,Ze=Ue.globalSetting,Be=Ue.shixunHomeworks;return{homePage:ke,user:He,globalSetting:Ze,shixunHomeworks:Be,loading:Ke.models.index}})(Q),De=o("+L6B"),Ie=o("2/Rp"),Ge=o("Cs+z"),qe=o.n(Ge),Je=["/","/classrooms","/account/profile","/account/profile/edit","/classrooms/new"],$e=function(ke){var Ke=ke.homePage,He=ke.user,Ze=ke.globalSetting,Be=ke.loading,Xe=ke.dispatch,ut=ke.location,lt=ke.text,Ct=ke.shixunHomeworks,bt=ke.payload,At=bt===void 0?{}:bt,kt=Object(x.a)(ke,["homePage","user","globalSetting","loading","dispatch","location","text","shixunHomeworks","payload"]),St=Object(O.useState)("none"),Wt=Object($.a)(St,2),fn=Wt[0],vn=Wt[1];return Object(O.useEffect)(function(){Ct.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"&&vn("flex")},[Ct.actionTabs.key]),Object(O.useEffect)(function(){Ct.actionTabs.key==="\u9690\u85CF"&&(vn("none"),localStorage.setItem("Noviceguide","0"))},[Ct.actionTabs.key]),u.a.createElement("div",{style:{display:fn,background:"#fff",width:"100%",height:"200px",position:"fixed",bottom:"0px",boxShadow:"0px -4px 6px 0px rgba(204, 204, 204, 0.2)",zIndex:"999"}},u.a.createElement("div",{style:{margin:"0 auto",width:"1200px"}},u.a.createElement("img",{src:qe.a,style:{position:"absolute",top:"-32px"}}),u.a.createElement("div",{style:{marginLeft:"151px",marginTop:"40px",fontSize:"18px",color:"#333333"}},Ct.actionTabs.text),Ct.actionTabs.type===9?u.a.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},u.a.createElement(Ie.a,{type:"primary",onClick:function(){localStorage.setItem("Noviceguide","0"),vn("none"),Xe({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},ghost:!0,style:{marginTop:"30px",width:"138px",height:"40px",position:"absolute",top:"124px"}},"\u5446\u4F1A\u89C1\uFF0C\u6709\u4E8B\u547C\u6211")):u.a.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},u.a.createElement(Ie.a,{type:"primary",onClick:function(){localStorage.setItem("Noviceguide","0"),Xe({type:"shixunHomeworks/setActionTabs",payload:{key:""}}),vn("none")},ghost:!0,style:{marginTop:"30px",width:"138px",height:"40px",position:"absolute",top:"124px"}},"\u8DF3\u8FC7\uFF0C\u6211\u81EA\u5DF1\u6765"))))},it=Object(E.a)(function(Ue){var ke=Ue.homePage,Ke=Ue.loading,He=Ue.user,Ze=Ue.globalSetting,Be=Ue.shixunHomeworks;return{homePage:ke,user:He,globalSetting:Ze,loading:Ke.models.index,shixunHomeworks:Be}})($e),xt=o("498V"),vt=o.n(xt),Ut=L.a.Header,Ht=oe.a.Search;function je(){var Ue,ke,Ke=window.location.pathname,He=Ke.split("/"),Ze={};return He[1]=="classrooms"&&He.length>3&&!((Ue=He[4])!==null&&Ue!==void 0&&Ue.includes("newgold"))&&!((ke=He[5])!==null&&ke!==void 0&&ke.includes("newgold"))&&He[2]!=="coursesId"&&(Ze.course_id=He[2]),He[1]==="shixuns"&&He.length>3&&(Ze.objective_type="shixun",Ze.objective_id=He[2]),He[1]==="paths"&&He.length>3&&(Ze.objective_type="path",Ze.objective_id=He[2]),Object(D.a)(Object(D.a)({},Ze),{school:1})}var Le={\u9996\u9875:"/","/paths":{link:"/paths",key:1},"/shixuns":{link:"/shixuns",key:2},"/classrooms":{link:"/classrooms",key:3},"/competitions":{link:"/competitions",key:4},"/moop_cases":{link:"/moop_cases",key:5},"/forums":{link:"/forums",key:6},"/recruitment":{link:"/competitions/index",key:7},"/three":{link:"/three",key:7}},ze=["/","/classrooms","/account/profile","/account/profile/edit","/classrooms/new"],st=function(ke){var Ke,He=ke.homePage,Ze=ke.user,Be=ke.globalSetting,Xe=ke.loading,ut=ke.dispatch,lt=ke.location,Ct=ke.isLogin,bt=Ct===void 0?!1:Ct,At=ke.shixunHomeworks,kt=Object(x.a)(ke,["homePage","user","globalSetting","loading","dispatch","location","isLogin","shixunHomeworks"]),St=Object(g.g)(),Wt=Object(O.useState)(!1),fn=Object($.a)(Wt,2),vn=fn[0],An=fn[1],zn=Object(O.useState)(-1),sn=Object($.a)(zn,2),gn=sn[0],Kt=sn[1],hn=Object(O.useState)(!1),pn=Object($.a)(hn,2),Rt=pn[0],pt=pn[1],ot=je(),Mt=lt.pathname;Object(O.useEffect)(function(){ut({type:"user/getNavigationInfo",payload:Object(D.a)({},ot)})},[Be.name]),Object(O.useEffect)(function(){At.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"&&(ze!=null&&ze.includes(lt==null?void 0:lt.pathname)||(lt==null?void 0:lt.pathname.indexOf("/classrooms"))===0||ut({type:"shixunHomeworks/setActionTabs",payload:{key:"\u9690\u85CF"}}))},[lt.pathname]),Object(O.useEffect)(function(){At.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"||(At.actionTabs.key||localStorage.setItem("Noviceguide","0"))},[At.actionTabs.key]),Object(O.useEffect)(function(){if(Be!=null&&Be.setting){var Tt,Nn;if(Be==null||((Tt=Be.setting)===null||Tt===void 0||((Nn=Tt.navbar)===null||Nn===void 0))||Nn.map(function(Me,Oe){lt.pathname.indexOf(Me.link)>-1&&Kt(Oe)}),gn===-1)Object(w.T)(Be.setting.name);else{var ua;Object(w.T)(((ua=Be.setting.navbar[gn])===null||ua===void 0?void 0:ua.name)||Be.setting.name)}}},[Be==null?void 0:Be.setting]);var Ft=Object(O.useMemo)(function(){var Tt;if(Be!=null&&(Tt=Be.setting)!==null&&Tt!==void 0&&Tt.nav_logo_url){var Nn;return"".concat(W.a.IMG_SERVER,"/").concat(Be==null||((Nn=Be.setting)===null||Nn===void 0)?void 0:Nn.nav_logo_url)}else return"".concat(W.a.IMG_SERVER,"/images/avatars/LaboratorySetting/1nav?t=").concat(new Date().getTime())},[Be==null||((Ke=Be.setting)===null||Ke===void 0)?void 0:Ke.nav_logo_url]);function xn(Tt){St.push("/search?value="+Tt)}var wn=function(){return vn?u.a.createElement("div",{onBlur:function(){setTimeout(function(){An(!1)},300)}},u.a.createElement(Ht,{placeholder:"\u5B9E\u8DF5\u8BFE\u7A0B/\u6559\u5B66\u8BFE\u5802/\u5B9E\u8DF5\u9879\u76EE/\u4EA4\u6D41\u95EE\u7B54",className:"search-input mr20",onSearch:xn,autoFocus:!0})):u.a.createElement("span",{className:"iconfont icon-sousuo font18 current ml15 mr15",onClick:function(){St.push("/search?value=")}})},zt=function(){var Tt=Object(Re.a)(_.a.mark(function Nn(ua){var Me,Oe,at;return _.a.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:return ua.preventDefault(),dt.next=3,Object(v.n)();case 3:Oe=dt.sent,Oe!=null&&(Me=Oe.data)!==null&&Me!==void 0&&Me.engineer_url?document.location.href=Oe==null||((at=Oe.data)===null||at===void 0)?void 0:at.engineer_url:(Oe==null?void 0:Oe.status)!=401&&pt(!0);case 5:case"end":return dt.stop()}},Nn)}));return function(ua){return Tt.apply(this,arguments)}}();if(Be.showHeader&&Be.showHeaderFooter){var tt,bn,Gn,ta,$t;return u.a.createElement(L.a,{className:"".concat(Be.isIlearning?S.a["header-iearning"]:S.a.header," ").concat(Be.showHeaderFixed?S.a.headerFixed:"")},u.a.createElement(Ut,{className:"header"},u.a.createElement("section",{className:S.a["edu-menu"]},(!!Be.isIlearning||!!Be.isPaZhou)&&u.a.createElement(m.a,{style:{display:"flex",alignItems:"center"},onClick:function(){ut({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},to:"/"},u.a.createElement("img",{className:S.a.logo,title:(tt=Be.setting)===null||tt===void 0?void 0:tt.name,src:Be.isPaZhou?Ft:vt.a||Ft}),!Be.isPaZhou&&u.a.createElement("span",{className:S.a.title},"\u6DF7\u5408\u589E\u5F3A\u667A\u6167\u6559\u80B2i-Learning\u5E73\u53F0")),u.a.createElement("ul",{className:"".concat(S.a.menu," ").concat(Object(w.p)()&&"ml0")},Object(w.p)()&&u.a.createElement("li",null,u.a.createElement("a",{href:"/"},"\u8003\u8BD5\u7CFB\u7EDF")),!Object(w.p)()&&Be.setting&&Be.setting.navbar.map(function(Tt,Nn){if(!Tt.hidden)return u.a.createElement("li",{key:Nn,className:gn===Nn?S.a.actived:""},(Tt==null?void 0:Tt.name)==="\u6559\u5B66\u8BFE\u5802"&&u.a.createElement(m.a,{onClick:function(){localStorage.getItem("Noviceguide")==="0"||ut({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:5,text:u.a.createElement("div",null,"\u975E\u5E38\u68D2\uFF0C\u54B1\u4EEC\u5DF2\u7ECF\u5230\u8FBE\u3010\u6559\u5B66\u8BFE\u5802\u3011\uFF0C\u5E73\u53F0\u4E0A\u5DF2\u7ECF\u6709\u51E0\u5343\u4F4D\u8001\u5E08\u521B\u5EFA\u4E86\u81EA\u5DF1\u7684\u6559\u5B66\u8BFE\u5802\uFF0C\u4F60\u4E5F\u53EF\u4EE5\u8F7B\u677E\u5B8C\u6210\u54DF\uFF01\u73B0\u5728\u8BF7\u60A8\u70B9\u51FB\u9875\u9762\u4E0A \u201C\u65B0\u5EFA\u8BFE\u5802\u201D\u6309\u94AE\u5F00\u59CB\u65B0\u5EFA\u81EA\u5DF1\u7684\u8BFE\u5802~")}})},className:At.actionTabs.type===4?S.a.classromediv:"",dangerouslySetInnerHTML:{__html:Tt.name},to:Tt.link}),(Tt==null?void 0:Tt.name)!="\u6559\u5B66\u8BFE\u5802"&&Tt.link.indexOf("http")<0&&u.a.createElement(m.a,{onClick:function(){ut({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},dangerouslySetInnerHTML:{__html:Tt.name},to:Tt.link,target:Tt.link.indexOf("http")>-1?"_blank":"_self"}),(Tt==null?void 0:Tt.name)!="\u6559\u5B66\u8BFE\u5802"&&Tt.link.indexOf("http")>-1&&u.a.createElement("a",{target:Tt.link.indexOf("http")>-1?"_blank":"_self",dangerouslySetInnerHTML:{__html:Tt.name},href:Tt.link}))})),u.a.createElement("div",{className:"search-bar",style:{flex:Be.isIlearning?"initial":"1 0 auto"}},!Object(w.p)()&&!(Be!=null&&Be.isIlearning)&&u.a.createElement(u.a.Fragment,null,u.a.createElement(wn,null),!bt&&u.a.createElement(re,null),!bt&&!!(Ze!=null&&(bn=Ze.userInfo)!==null&&bn!==void 0&&bn.login)&&u.a.createElement(m.a,{className:"iconfont icon-xiaoxilingdang c-white ml15 mr15 font18 relative",to:"/messages/".concat(Ze==null||((Gn=Ze.userInfo)===null||Gn===void 0)?void 0:Gn.login,"/user_tidings")},(Ze==null||((ta=Ze.navigationInfo)===null||ta===void 0||(($t=ta.top)===null||$t===void 0))?void 0:$t.new_message)&&u.a.createElement("span",{className:S.a.newslight}))),!bt&&u.a.createElement(be,{payload:ot}))),u.a.createElement(J.a,{centered:!0,destroyOnClose:!0,visible:Rt,title:"\u63D0\u793A",width:"500px",okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(w.O)("https://qm.qq.com/cgi-bin/qm/qr?k=DWdqQHAbbfw7_rqm0d-Q_vDn5H6bMp91&jump_from=webapi")},onCancel:function(){return pt(!1)}},u.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},u.a.createElement("p",null,"\u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650"),u.a.createElement("img",{src:p.C,width:200,height:200}),u.a.createElement("p",null,"\u7FA4\u53F7\uFF1A693542422 ")))),u.a.createElement(it,null))}else return u.a.createElement(u.a.Fragment,null)},rt=k.a=Object(E.a)(function(Ue){var ke=Ue.homePage,Ke=Ue.loading,He=Ue.user,Ze=Ue.globalSetting,Be=Ue.shixunHomeworks;return{homePage:ke,user:He,globalSetting:Ze,loading:Ke.models.index,shixunHomeworks:Be}})(st)},sR1s:function(Te,k,o){"use strict";o.d(k,"b",function(){return $}),o.d(k,"a",function(){return x}),o.d(k,"c",function(){return D}),o.d(k,"d",function(){return fe});var le=o("U8pU"),J="RC_TABLE_KEY";function Re(oe){return oe==null?[]:Array.isArray(oe)?oe:[oe]}function $(oe,z){if(!z&&typeof z!="number")return oe;for(var L=Re(z),C=oe,_=0;_1)Object(L.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(S.length===0)return Object(L.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var U=S[0];if(D.isValidElement(U)&&Object(C.c)(U)){var Z=U.ref;S[0]=D.cloneElement(U,{ref:Object(C.a)(Z,this.setChildNode)})}return S.length===1?S[0]:S.map(function(ne,de){return!D.isValidElement(ne)||"key"in ne&&ne.key!==null?ne:D.cloneElement(ne,{key:"".concat(O,"-").concat(de)})})}}]),E}(D.Component);u.displayName="ResizeObserver",k.a=u},tWlo:function(Te,k){Te.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2Vo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iYCewNEPov3EK+G59k39BOp3Nt+YiUViLQKNjBH8sV7EXNivhslgb4xb2J28SMtMSRmbrwBBYpZPOI+xw4J2aka23tzB4VETrdct6zoCECC7wjjWIy1tbewZT//9R4RYzxZOtZTwK0C2vEjHjT2Ov3sx2d3TA7ZxPzuhrB5nVdiQ8pNPPvKP+XkEjjbYKtXm0VOpHe5x01KDDI72dFtmI+EGz1IkDyOeIvnlETH/T/digqKoLXeLLts3UNgY0REXGQZpmpqtCmrjV1/ZWcrEzIzEhnTtwQhwQb/5vNDc1dkinak4gDsMUFSEhwMJQ9vhueqihnWhYBMhnokYRGowGLZRwcW9fWLsGxTV6HqA8F6sMfR5z0qiDUKsjQpoEuPQ1SsSILVPDd1FJTrDA/Fwry9NDX1w9dxh7MSs2+ytTjcI+7gc0IkHwpMD+JnpbnZGdCXk4WPJSUKFlHzj0bGTrtGqhZNjJqgQHzIHRjWMbzhd7/MqLaZxqzxfjVFU+UjhcZCs+gp7f9nowcszMhfg17SoptSKDyym9N9cbePt8O2GrQ5pbrDRMTkwbe6MQpN6hfFRUVWa+Qb+7je23ideLAtPdGZ/cUZpw1iTsTFtFLJcBwEc2RIryHqELvW2q/qQPT4JA4AmupL5aP/Saza8A0eDU2Jvr0DrWaNkEe3L32kULmhXV+cHHR8cOvV5tcDd9f8qvm9ouAW2Zm5yhpm5uwWi9HRoRXq1UqC9zt08cDe391VUiJPyaPo+F1zddaZy80XFyLRv52v2ViPrehiJSvz6Z7rthQpZI+t6E+K91yuj+3UXnkL+7PbYxCFdiIKfgYdTcohHZ23QTnEntd8Y8AAwCTubpzlq2wWAAAAABJRU5ErkJggg=="},vHTk:function(Te,k,o){Te.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},vToQ:function(Te,k,o){Te.exports={flex_box_center:"flex_box_center___3UWMh",flex_space_between:"flex_space_between___2nh9S",flex_box_vertical_center:"flex_box_vertical_center___2Neiq",flex_box_center_end:"flex_box_center_end___2_1FS",flex_box_column:"flex_box_column___2E-v7",userPic:"userPic___3Pu9t",rightMenu:"rightMenu___1qaVl",menuWrap:"menuWrap___3r9jm",exit:"exit___38Urs",classromediv:"classromediv___2R8_g",glow:"glow___323IR",height67:"height67___1DFRI",login:"login___20J7t"}},wCXF:function(Te,k,o){"use strict";o.d(k,"a",function(){return xt});var le=o("rePB"),J=o("VTBJ"),Re=o("KQm4"),$=o("U8pU"),x=o("ODXe"),D=o("q1tI"),fe=o("TSYQ"),oe=o.n(fe),z=o("Gytx"),L=o.n(z),C=o("Kwbf"),_=o("t23M"),O=o("qx4F"),u=o("6eGT"),g=o("IBYe"),m=o("Ff2n"),E=o("c+Xe"),p=o("fyJ8"),y=o("biw7");function S(je,Le,ze,st,rt){var Ue=ze[je]||{},ke=ze[Le]||{},Ke,He;Ue.fixed==="left"?Ke=st.left[je]:ke.fixed==="right"&&(He=st.right[Le]);var Ze=!1,Be=!1,Xe=!1,ut=!1,lt=ze[Le+1],Ct=ze[je-1];if(rt==="rtl"){if(Ke!==void 0){var bt=Ct&&Ct.fixed==="left";ut=!bt}else if(He!==void 0){var At=lt&<.fixed==="right";Xe=!At}}else if(Ke!==void 0){var kt=lt&<.fixed==="left";Ze=!kt}else if(He!==void 0){var St=Ct&&Ct.fixed==="right";Be=!St}return{fixLeft:Ke,fixRight:He,lastFixLeft:Ze,firstFixRight:Be,lastFixRight:Xe,firstFixLeft:ut,isSticky:st.isSticky}}var U=o("sR1s");function Z(je){var Le=je.cells,ze=je.stickyOffsets,st=je.flattenColumns,rt=je.rowComponent,Ue=je.cellComponent,ke=je.onHeaderRow,Ke=je.index,He=D.useContext(y.a),Ze=He.prefixCls,Be=He.direction,Xe;ke&&(Xe=ke(Le.map(function(lt){return lt.column}),Ke));var ut=Object(U.a)(Le.map(function(lt){return lt.column}));return D.createElement(rt,Object.assign({},Xe),Le.map(function(lt,Ct){var bt=lt.column,At=S(lt.colStart,lt.colEnd,st,ze,Be),kt;return bt&&bt.onHeaderCell&&(kt=lt.column.onHeaderCell(bt)),D.createElement(p.a,Object.assign({},lt,{ellipsis:bt.ellipsis,align:bt.align,component:Ue,prefixCls:Ze,key:ut[Ct]},At,{additionalProps:kt,rowType:"header"}))}))}Z.displayName="HeaderRow";var ne=Z;function de(je){var Le=[];function ze(ke,Ke){var He=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Le[He]=Le[He]||[];var Ze=Ke,Be=ke.filter(Boolean).map(function(Xe){var ut={key:Xe.key,className:Xe.className||"",children:Xe.title,column:Xe,colStart:Ze},lt=1,Ct=Xe.children;return Ct&&Ct.length>0&&(lt=ze(Ct,Ze,He+1).reduce(function(bt,At){return bt+At},0),ut.hasSubColumns=!0),"colSpan"in Xe&&(lt=Xe.colSpan),"rowSpan"in Xe&&(ut.rowSpan=Xe.rowSpan),ut.colSpan=lt,ut.colEnd=ut.colStart+lt-1,Le[He].push(ut),Ze+=lt,lt});return Be}ze(je,0);for(var st=Le.length,rt=function(Ke){Le[Ke].forEach(function(He){!("rowSpan"in He)&&!He.hasSubColumns&&(He.rowSpan=st-Ke)})},Ue=0;Ue=0;Ke-=1){var He=Le[Ke],Ze=ze&&ze[Ke],Be=Ze&&Ze[T.a];(He||Be||ke)&&(rt.unshift(D.createElement("col",Object.assign({key:Ke,style:{width:He,minWidth:He}},Be))),ke=!0)}return D.createElement("colgroup",null,rt)}var s=d;function ue(je,Le){return Object(D.useMemo)(function(){for(var ze=[],st=0;st1?Pt-1:0),_t=1;_t=Xe&&(Ft=Xe-ut),ke({scrollLeft:Ft/Xe*(Be+2)}),St.current.x=Rt.pageX},Kt=function(){var Rt=Object(Ie.b)(Ue.current).top,pt=Rt+Ue.current.offsetHeight,ot=document.documentElement.scrollTop+window.innerHeight;pt-Object(O.a)()<=ot||Rt>=ot-Ke?kt(function(Mt){return Object(J.a)(Object(J.a)({},Mt),{},{isHiddenScrollBar:!0})}):kt(function(Mt){return Object(J.a)(Object(J.a)({},Mt),{},{isHiddenScrollBar:!1})})},hn=function(Rt){kt(function(pt){return Object(J.a)(Object(J.a)({},pt),{},{scrollLeft:Rt/Be*Xe||0})})};return D.useImperativeHandle(ze,function(){return{setScrollLeft:hn}}),D.useEffect(function(){var pn=Object(De.a)(document.body,"mouseup",zn,!1),Rt=Object(De.a)(document.body,"mousemove",gn,!1);return Kt(),function(){pn.remove(),Rt.remove()}},[ut,vn]),D.useEffect(function(){var pn=Object(De.a)(window,"scroll",Kt,!1),Rt=Object(De.a)(window,"resize",Kt,!1);return function(){pn.remove(),Rt.remove()}},[]),D.useEffect(function(){At.isHiddenScrollBar||kt(function(pn){var Rt,pt;return Object(J.a)(Object(J.a)({},pn),{},{scrollLeft:Ue.current.scrollLeft/((Rt=Ue.current)===null||Rt===void 0?void 0:Rt.scrollWidth)*((pt=Ue.current)===null||pt===void 0?void 0:pt.clientWidth)})})},[At.isHiddenScrollBar]),Be<=Xe||!ut||At.isHiddenScrollBar?null:D.createElement("div",{style:{height:Object(O.a)(),width:Xe,bottom:Ke},className:"".concat(Ze,"-sticky-scroll")},D.createElement("div",{onMouseDown:sn,ref:lt,className:oe()("".concat(Ze,"-sticky-scroll-bar"),Object(le.a)({},"".concat(Ze,"-sticky-scroll-bar-active"),vn)),style:{width:"".concat(ut,"px"),transform:"translate3d(".concat(At.scrollLeft,"px, 0, 0)")}}))},qe=D.forwardRef(Ge);function Je(je,Le){return D.useMemo(function(){var ze=!!je;return{isSticky:ze,stickyClassName:ze?"".concat(Le,"-sticky-header"):"",offsetHeader:Object($.a)(je)==="object"&&je.offsetHeader||0,offsetScroll:Object($.a)(je)==="object"&&je.offsetScroll||0}},[je,Le])}var $e=[],it={},xt="rc-table-internal-hook",vt=D.memo(function(je){var Le=je.children;return Le},function(je,Le){return L()(je.props,Le.props)?je.pingLeft!==Le.pingLeft||je.pingRight!==Le.pingRight:!1});function Ut(je){var Le,ze=je.prefixCls,st=je.className,rt=je.rowClassName,Ue=je.style,ke=je.data,Ke=je.rowKey,He=je.scroll,Ze=je.tableLayout,Be=je.direction,Xe=je.title,ut=je.footer,lt=je.summary,Ct=je.id,bt=je.showHeader,At=je.components,kt=je.emptyText,St=je.onRow,Wt=je.onHeaderRow,fn=je.internalHooks,vn=je.transformColumns,An=je.internalRefs,zn=je.sticky,sn=ke||$e,gn=!!sn.length,Kt=D.useState(0),hn=Object(x.a)(Kt,2),pn=hn[0],Rt=hn[1];D.useEffect(function(){Rt(Object(O.a)())});var pt=D.useMemo(function(){return Object(U.c)(At,{})},[At]),ot=D.useCallback(function(Dn,En){return Object(U.b)(pt,Dn)||En},[pt]),Mt=D.useMemo(function(){return typeof Ke=="function"?Ke:function(Dn){var En=Dn&&Dn[Ke];return En}},[Ke]),Ft=Object(T.c)(je),xn=Ft.expandIcon,wn=Ft.expandedRowKeys,zt=Ft.defaultExpandedRowKeys,tt=Ft.defaultExpandAllRows,bn=Ft.expandedRowRender,Gn=Ft.onExpand,ta=Ft.onExpandedRowsChange,$t=Ft.expandRowByClick,Tt=Ft.rowExpandable,Nn=Ft.expandIconColumnIndex,ua=Ft.expandedRowClassName,Me=Ft.childrenColumnName,Oe=Ft.indentSize,at=xn||Q,mt=Me||"children",dt=D.useMemo(function(){return bn?"row":je.expandable&&fn===xt&&je.expandable.__PARENT_RENDER_ICON__||sn.some(function(Dn){return Dn&&Object($.a)(Dn)==="object"&&Dn[mt]})?"nest":!1},[!!bn,sn]),Nt=D.useState(function(){return zt||(tt?be(sn,Mt,mt):[])}),Dt=Object(x.a)(Nt,2),Ye=Dt[0],ht=Dt[1],Pt=D.useMemo(function(){return new Set(wn||Ye||[])},[wn,Ye]),Xt=D.useCallback(function(Dn){var En=Mt(Dn,sn.indexOf(Dn)),yn,Ja=Pt.has(En);Ja?(Pt.delete(En),yn=Object(Re.a)(Pt)):yn=[].concat(Object(Re.a)(Pt),[En]),ht(yn),Gn&&Gn(!Ja,Dn),ta&&ta(yn)},[Mt,Pt,sn,Gn,ta]),_t=D.useState(0),Zt=Object(x.a)(_t,2),Ln=Zt[0],qt=Zt[1],Mn=Object(X.b)(Object(J.a)(Object(J.a)(Object(J.a)({},je),Ft),{},{expandable:!!bn,expandedKeys:Pt,getRowKey:Mt,onTriggerExpand:Xt,expandIcon:at,expandIconColumnIndex:Nn,direction:Be}),fn===xt?vn:null),un=Object(x.a)(Mn,2),ct=un[0],wt=un[1],Hn=D.useMemo(function(){return{columns:ct,flattenColumns:wt}},[ct,wt]),Jn=D.useRef(),ha=D.useRef(),In=D.useRef(),oa=D.useState(!1),Lt=Object(x.a)(oa,2),We=Lt[0],Qt=Lt[1],en=D.useState(!1),_n=Object(x.a)(en,2),an=_n[0],cn=_n[1],tn=ie(new Map),na=Object(x.a)(tn,2),Kn=na[0],ln=na[1],rn=Object(U.a)(wt),Sa=rn.map(function(Dn){return Kn.get(Dn)}),ia=D.useMemo(function(){return Sa},[Sa.join("_")]),qn=W(ia,wt.length,Be),aa=He&&Object(U.d)(He.y),Un=He&&Object(U.d)(He.x),ya=Un&&wt.some(function(Dn){var En=Dn.fixed;return En}),kn=D.useRef(),mn=Je(zn,ze),Bt=mn.isSticky,dn=mn.offsetHeader,ca=mn.offsetScroll,Vn=mn.stickyClassName,Xn,vr,La;aa&&(vr={overflowY:"scroll",maxHeight:He.y}),Un&&(Xn={overflowX:"auto"},aa||(vr={overflowY:"hidden"}),La={width:He.x===!0?"auto":He.x,minWidth:"100%"});var Fa=D.useCallback(function(Dn,En){ln(function(yn){var Ja=new Map(yn);return Ja.set(Dn,En),Ja})},[]),Pa=Ce(null),Nr=Object(x.a)(Pa,2),nr=Nr[0],gr=Nr[1];function br(Dn,En){if(!En)return;typeof En=="function"?En(Dn):En.scrollLeft!==Dn&&(En.scrollLeft=Dn)}var Ha=function(En){var yn=En.currentTarget,Ja=En.scrollLeft,Mr=typeof Ja=="number"?Ja:yn.scrollLeft,Ir=yn||it;if(!gr()||gr()===Ir){var Rr;nr(Ir),br(Mr,ha.current),br(Mr,In.current),br(Mr,(Rr=kn.current)===null||Rr===void 0?void 0:Rr.setScrollLeft)}if(yn){var Jr=yn.scrollWidth,uo=yn.clientWidth;Qt(Mr>0),cn(Mr0?[].concat(Object(J.a)(m),Object(J.a)(C(S).map(function(U){return Object(Re.a)({fixed:y},U)}))):[].concat(Object(J.a)(m),[Object(Re.a)(Object(Re.a)({},E),{},{fixed:y})])},[])}function _(g){for(var m=!0,E=0;E=0;S-=1){var U=g[S];if(y&&U.fixed!=="right")y=!1;else if(!y&&U.fixed==="right"){Object(fe.a)(!1,"Index ".concat(S+1," of `columns` missing `fixed='right'` prop."));break}}}function O(g){return g.map(function(m){var E=m.fixed,p=Object($.a)(m,["fixed"]),y=E;return E==="left"?y="right":E==="right"&&(y="left"),Object(Re.a)({fixed:y},p)})}function u(g,m){var E=g.prefixCls,p=g.columns,y=g.children,S=g.expandable,U=g.expandedKeys,Z=g.getRowKey,ne=g.onTriggerExpand,de=g.expandIcon,_e=g.rowExpandable,ae=g.expandIconColumnIndex,T=g.direction,d=g.expandRowByClick,s=x.useMemo(function(){return p||L(y)},[p,y]),ue=x.useMemo(function(){if(S){var N,H=ae||0,w=s[H],j=(N={},Object(le.a)(N,z.a,{className:"".concat(E,"-expand-icon-col")}),Object(le.a)(N,"title",""),Object(le.a)(N,"fixed",w?w.fixed:null),Object(le.a)(N,"className","".concat(E,"-row-expand-icon-cell")),Object(le.a)(N,"render",function(B,te,ye){var Pe=Z(te,ye),xe=U.has(Pe),Se=_e?_e(te):!0,X=de({prefixCls:E,expanded:xe,expandable:Se,record:te,onExpand:ne});return d?x.createElement("span",{onClick:function(Ee){return Ee.stopPropagation()}},X):X}),N),K=s.slice();return H>=0&&K.splice(H,0,j),K}return s},[S,s,Z,U,de,T]),Y=x.useMemo(function(){var N=ue;return m&&(N=m(N)),N.length||(N=[{render:function(){return null}}]),N},[m,ue,T]),F=x.useMemo(function(){return T==="rtl"?O(C(Y)):C(Y)},[Y,T]);return[Y,F]}k.b=u},xrsn:function(Te,k,o){Te.exports={flex_box_center:"flex_box_center___2cC1r",flex_space_between:"flex_space_between___9TeDx",flex_box_vertical_center:"flex_box_vertical_center___3EIYv",flex_box_center_end:"flex_box_center_end___1Uph0",flex_box_column:"flex_box_column___17_5w",header:"header___1E4MV",logo:"logo___R8PNJ",menu:"menu___Km2Uo",actived:"actived___12Ff0","edu-menu":"edu-menu___2hxbr",newslight:"newslight___jwZR3",classromediv:"classromediv___Cjpgf",glow:"glow___3Nuu5",spandiv:"spandiv___3YPu8","header-iearning":"header-iearning___2Us_L",title:"title___3TtoH",headerFixed:"headerFixed___1V7d4"}},"y0+3":function(Te,k,o){"use strict";o.d(k,"a",function(){return C}),o.d(k,"b",function(){return O});var le=/margin|padding|width|height|max|min|offset/,J={left:!0,top:!0},Re={cssFloat:1,styleFloat:1,float:1};function $(u){return u.nodeType===1?u.ownerDocument.defaultView.getComputedStyle(u,null):{}}function x(u,g,m){if(g=g.toLowerCase(),m==="auto"){if(g==="height")return u.offsetHeight;if(g==="width")return u.offsetWidth}return g in J||(J[g]=le.test(g)),J[g]?parseFloat(m)||0:m}function D(u,g){var m=arguments.length,E=$(u);return g=Re[g]?"cssFloat"in u.style?"cssFloat":"styleFloat":g,m===1?E:x(u,g,E[g]||u.style[g])}function fe(u,g,m){var E=arguments.length;if(g=Re[g]?"cssFloat"in u.style?"cssFloat":"styleFloat":g,E===3)return typeof m=="number"&&le.test(g)&&(m="".concat(m,"px")),u.style[g]=m,m;for(var p in g)g.hasOwnProperty(p)&&fe(u,p,g[p]);return $(u)}function oe(u){return u===document.body?document.documentElement.clientWidth:u.offsetWidth}function z(u){return u===document.body?window.innerHeight||document.documentElement.clientHeight:u.offsetHeight}function L(){var u=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),g=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:u,height:g}}function C(){var u=document.documentElement.clientWidth,g=window.innerHeight||document.documentElement.clientHeight;return{width:u,height:g}}function _(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function O(u){var g=u.getBoundingClientRect(),m=document.documentElement;return{left:g.left+(window.pageXOffset||m.scrollLeft)-(m.clientLeft||document.body.clientLeft||0),top:g.top+(window.pageYOffset||m.scrollTop)-(m.clientTop||document.body.clientTop||0)}}},yslc:function(Te,k){Te.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAOHklEQVR4Xu1dCXQURRr+emZyTO6D3BCEgKCInCKeK3IoiyIqlxLyQBRBV8DNhCCrS3Z9Cq66KOoi68ECKocCcutTLhUERM1MEpBLEuQmQMKEnDNd+6onEzKTuXqmJ5l0V/EeL+mp+qu+r77UVP1V9TcHffZbIJgOlhgDMmaAA8lTwVDxJQh5UMY4GTSFM8AJ+PW6cIDsBEEfhfPB4MuUAYvQaTowOwV1NXtB0E6mWBksBTNwTeiUBENud/CmHwBEKZgTBl2GDNgKnQIsyBkCM9kEEI0M8TJICmWgqdCFkT17MngsUignDLYMGXAsdAo0XzcPILkyxMwgKZAB50InhIMhZxUIGalAXhhkmTHgXOgU6PG8UFwxbgdBf5nhZnAUxoBroVMyjryQgMraPSDoqDBuGFwZMeBe6MLi9IWuIHW7QUisjLAzKApiwDOhC25H3T3g8TUICVYQPwyqTBjwXOgUsD4nC4RfIhPsDIaCGBAndEHsujwQMkdBHDGoMmBAvNAtPvZlAMmUAX4GQSEMeCf0wrxgmCu+ASF3K4QnBrOVM+Cd0Cnoorw4mIw/guD6Vs4Ba74CGPBe6IInJicDZn4PgDYK4IpBbMUM+CZ0Qey5t4M3bwUhoa2YB4dNT1CHIzkoEkZzDYrrLtvkCeU0aBsULTw7WntRbtARoQrGbWHtBVw/Vpaggq9t1Rh9F7qwOM0ZA45fDgJp7PmJ0i4hCegU3AabjAc9qmF24r14JeXP+MZ4GEN+/69NmVvD0rGn8zThWYghF7XE7JFN+0wL0x5BQfVZLL60D1X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maC519jjDIGApkB34Sen3sfOPPm1hKgKJA7grXNvwx4L/SiWZ1gMu1jb5P2bwcx69Iw4J3QaegKk5G+uyhgI+ZKQw+zIhcGxAudEA56Hd1tscRaYIkx0AoYEC90vW4OCMlrBdhYExkDDQyIE7oQHZesDfSXcrH+ZQzYM+C50Atm3gBeiLLVrIGHWJcxBqRgwDOhH8+LQXnFPoB0lqJSZoMx0NwMuBc6yVPBULERhAxt7sax+hgDUjHgXuiG7LngMUuqCpkdxkBLMOBa6AW60TCTlS3RMFYnY0BKBpwLnUa9NZl3B/LLtqQkgtmSNwOOhX7whXjU1NKz5e4DdcubH4ZOJgw0Fbrl7c9fg5B7ZYKRwWAMOLgio89+CwTTGTeMATkxYDui63OyQPglcgLIsDAGKAPXhF6YfQvM3HeBENKZdQ1jQGoGLEIvmJ0EvnZ/c79ES2owzB5jwBkDHGhIZ/2R7QC5g9HEGJArAxzyde8D5Gm5AmS4GAO2c3TGB2OgFTLALR1KA6e5SByvUpEp7s+6tELwrMnKYcCl0DmYVOCyzOM3L2dCV44mZInUhdBrVFCPMmdt3MCmLrLsemWBcih0DlfVBMNNWVu2WdlgI7qydCE7tE2FzpVpVOqhdZkbaJSKhsSELruuVxYgG6FzOK+Bekjd+I16exaY0JWlC9mhbRA6h5PBCBpUM369w1jdTOiy63plAaoX+rEQNTewetzmEmfomdCVpQvZoeWWDi3UctrBlePXnHHpTZcdcgZIUQxErnk43vjI2ovuQP8faDGikjbF4FsAAAAASUVORK5CYII="},zXvr:function(Te,k,o){"use strict";o.r(k);var le=o("T2oS"),J=o("W9HT"),Re=o("giR+"),$=o("fyUT"),x=o("miYZ"),D=o("tsqr"),fe=o("9og8"),oe=o("k1fw"),z=o("2qtc"),L=o("kLXV"),C=o("/zsF"),_=o("PArb"),O=o("14J3"),u=o("BMrR"),g=o("jCWc"),m=o("kPKH"),E=o("+L6B"),p=o("2/Rp"),y=o("y8nQ"),S=o("Vl3Y"),U=o("tJVT"),Z=o("Znn+"),ne=o("ZTPi"),de=o("tU7J"),_e=o("wFql"),ae=o("WmNS"),T=o.n(ae),d=o("q1tI"),s=o.n(d),ue=o("0TN8"),Y=o("8Skl"),F=o("Ty5D"),N=o("9kvl"),H=o("izBO"),w=o.n(H),j=o("fr4D"),K=o("xKgJ"),ee=o("5NDa"),B=o("5rEg"),te=function(Oe){var at=Oe.dispatch,mt=Oe.innovation,dt=Oe.detail,Nt=S.a.useForm(),Dt=Object(U.a)(Nt,1),Ye=Dt[0],ht=Object(d.useState)("notyet"),Pt=Object(U.a)(ht,2),Xt=Pt[0],_t=Pt[1],Zt=Object(d.useRef)(),Ln=function(){var Hn=Object(fe.a)(T.a.mark(function Jn(){var ha,In;return T.a.wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:return Lt.prev=0,Lt.next=3,Ye.validateFields();case 3:return ha=Ye.getFieldValue("name"),_t("forking"),Lt.next=7,Object(j.d)("".concat(dt.id),{name:ha});case 7:In=Lt.sent,In.status===0&&(D.b.success("fork\u6210\u529F"),Zt.current=In.sci_project_id,mt.openForkModalPosition==="remindModal"&&window.localStorage.setItem("hideRemindModal","".concat(mt.hideRemindModal))),_t("success"),Lt.next=15;break;case 12:Lt.prev=12,Lt.t0=Lt.catch(0),_t("fail");case 15:case"end":return Lt.stop()}},Jn,null,[[0,12]])}));return function(){return Hn.apply(this,arguments)}}(),qt=function(){N.d.push("/innovation/project/detail/".concat(Zt.current)),location.reload()},Mn=function(){_t("notyet"),Ye.resetFields(),at({type:"innovation/closeModal"})},un=function(){Xt==="success"?qt():Ln()},ct=s.a.createElement(S.a,{autoComplete:"off",form:Ye,initialValues:{name:dt.sci_project.name}},s.a.createElement(S.a.Item,{label:"\u65B0\u9879\u76EE\u540D\u79F0",name:"name",required:!0,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"}]},s.a.createElement(B.a,{placeholder:"\u8BF7\u8F93\u5165",maxLength:60}))),wt={notyet:ct,forking:s.a.createElement("div",{style:{height:40}}),success:s.a.createElement("p",null,"\u9879\u76EE\u5DF2\u7ECFFork\u5B8C\u6210\uFF0C\u73B0\u5728\u5C31\u53BB\u67E5\u770B\u9879\u76EE\u5417\uFF1F"),fail:ct};return s.a.createElement(L.a,{title:"Fork\u9879\u76EE",width:600,visible:mt.visibleModalName==="fork-project",className:"".concat(w.a.fork_modal),destroyOnClose:!0,centered:!0,onCancel:Mn,onOk:un,okText:Xt==="success"?"\u67E5\u770B\u9879\u76EE":"\u786E\u5B9A"},s.a.createElement(J.a,{tip:"\u9879\u76EEFork\u4E2D",spinning:Xt==="forking"},wt[Xt]))},ye=Object(N.a)(function(Me){var Oe=Me.innovation;return{innovation:Oe}})(te),Pe=o("wd/R"),xe=o.n(Pe),Se=o("m3rI"),X=function(){var Oe=Object(d.useState)(xe()().valueOf()),at=Object(U.a)(Oe,2),mt=at[0],dt=at[1],Nt=Object(d.useMemo)(function(){return"".concat(Se.a.API_SERVER,"/rucaptcha?t=").concat(mt)},[mt]),Dt=function(){dt(xe()().valueOf())};return s.a.createElement(u.a,{align:"middle"},s.a.createElement("img",{src:Nt,alt:""}),s.a.createElement("span",{onClick:Dt,style:{fontSize:12,fontWeight:400,color:"#165DFF",marginLeft:10,cursor:"pointer"}},"\u770B\u4E0D\u6E05\u6362\u4E00\u5F20"))},re=X,Ee=function(Oe){var at=Oe.dispatch,mt=Oe.innovation,dt=Oe.projectId,Nt=S.a.useForm(),Dt=Object(U.a)(Nt,1),Ye=Dt[0],ht=function(){var Pt=Object(fe.a)(T.a.mark(function Xt(){var _t,Zt;return T.a.wrap(function(qt){for(;;)switch(qt.prev=qt.next){case 0:return qt.prev=0,qt.next=3,Ye.validateFields();case 3:return _t=Ye.getFieldsValue(),qt.next=6,Object(j.b)(dt,{code:_t.code});case 6:Zt=qt.sent,Zt.status===0&&(D.b.success("\u5220\u9664\u6210\u529F"),at({type:"innovation/closeModal"}),N.d.replace("/innovation/project")),qt.next=13;break;case 10:qt.prev=10,qt.t0=qt.catch(0),at({type:"innovation/closeModal"});case 13:case"end":return qt.stop()}},Xt,null,[[0,10]])}));return function(){return Pt.apply(this,arguments)}}();return s.a.createElement(L.a,{title:"\u5220\u9664\u9879\u76EE",width:600,okText:"\u786E\u5B9A\u5220\u9664",okButtonProps:{type:"primary",danger:!0},centered:!0,visible:mt.visibleModalName==="delete-project",destroyOnClose:!0,onCancel:function(){return at({type:"innovation/closeModal"})},onOk:ht},s.a.createElement(S.a,{autoComplete:"off",form:Ye,preserve:!1},s.a.createElement(S.a.Item,{label:"\u9A8C\u8BC1\u7801",required:!0},s.a.createElement(S.a.Item,{name:"code",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"}]},s.a.createElement(B.a,{placeholder:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"})),s.a.createElement("span",{style:{color:"#FA6400"}},"\u5220\u9664\u9879\u76EE\u540E\uFF0C\u5C06\u65E0\u6CD5\u6062\u590D\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C"),s.a.createElement(re,null))))},ie=Object(N.a)(function(Me){var Oe=Me.innovation;return{innovation:Oe}})(Ee),Ce=o("qVdP"),v=o("jsC+"),W=o("lUTK"),P=o("BvKs"),ce=o("5Dmo"),R=o("3S7+"),Q=o("PpiC"),be=o("jXuf"),De=o.n(be),Ie=o("oBTY"),Ge=o("ozfa"),qe=o("MJZm"),Je=o("P5Jw"),$e=o("KUBS"),it=o.n($e),xt=function(Oe){var at=Oe.shixunsDetail,mt=Oe.globalSetting,dt=Oe.loading,Nt=Oe.user,Dt=Oe.dispatch,Ye=Oe.isRepository,ht=Object(Q.a)(Oe,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Pt=Object(F.h)(),Xt=Object(F.i)(),_t=Object(d.useState)({}),Zt=Object(U.a)(_t,2),Ln=Zt[0],qt=Zt[1],Mn=Object(d.useRef)(),un=S.a.useForm(),ct=Object(U.a)(un,1),wt=ct[0],Hn=Object(d.useState)(""),Jn=Object(U.a)(Hn,2),ha=Jn[0],In=Jn[1];Object(d.useEffect)(function(){ht.visible&&wt.resetFields()},[ht.visible]),Object(d.useEffect)(function(){var We=sessionStorage.getItem("pathArray");if(We){var Qt=We.split(",").join("/"),en=Qt.indexOf("/")===0?Qt.substr(1):Qt;In(en)}},[]),Object(d.useEffect)(function(){var We,Qt;Mn.current=(We=Pt.pathname)===null||We===void 0||((Qt=We.split("/"))===null||Qt===void 0)?void 0:Qt[2]},[]);var oa=function(){var We=Object(fe.a)(T.a.mark(function Qt(){var en,_n,an=arguments;return T.a.wrap(function(tn){for(;;)switch(tn.prev=tn.next){case 0:return en=an.length>0&&an[0]!==void 0?an[0]:{},tn.next=3,Dt({type:"shixunsDetail/addRepositoryFiles",payload:{id:Xt.taskId,message:en.commitMessage,content:"",path:(ht.defaultPath?ht.defaultPath+"/":"")+en.path+"/"+(en.file||".gitkeep"),secret_repository:Ye?void 0:!0}});case 3:_n=tn.sent,_n!=null&&_n.url&&(D.b.success("\u6DFB\u52A0\u6210\u529F"),ht.onOK({path:(ht.defaultPath?ht.defaultPath+"/":"")+en.path+"/"+(en.file||".gitkeep"),name:en.path.split("/")[en.path.split("/").length-1]}),ht.onClose());case 5:case"end":return tn.stop()}},Qt)}));return function(){return We.apply(this,arguments)}}(),Lt=function(){var Qt,en;N.d.push("/shixuns/".concat(Mn.current,"/").concat((Qt=Pt.pathname)===null||Qt===void 0||((en=Qt.split("/"))===null||en===void 0)?void 0:en[3]).concat(ha?"/master/shixun_show/".concat(ha):""))};return s.a.createElement(L.a,{width:"60%",centered:!0,visible:ht.visible,wrapClassName:it.a.modal,onOk:function(){wt.submit()},onCancel:ht.onClose,title:"\u65B0\u5EFA\u6587\u4EF6\u5939"},s.a.createElement("section",{className:it.a.bg},s.a.createElement("div",{className:it.a.wrap},s.a.createElement(S.a,{className:"mt10",form:wt,scrollToFirstError:!0,layout:"vertical",onFinish:oa,onChange:function(){var Qt,en,_n,an,cn=Object(oe.a)({},wt.getFieldsValue()),tn=cn==null||((Qt=cn.path)===null||Qt===void 0)?void 0:Qt.split(""),na=cn==null||((en=cn.file)===null||en===void 0)?void 0:en.split("");tn!=null&&(_n=tn.filter(function(Kn){return Kn=="/"}))!==null&&_n!==void 0&&_n.length&&(cn.path=cn.path.substring(0,cn.path.length-1)),na!=null&&(an=na.filter(function(Kn){return Kn=="/"}))!==null&&an!==void 0&&an.length&&(cn.file=cn.file.substring(0,cn.path.length-1)),wt.setFieldsValue(Object(oe.a)({},cn)),qt(cn)}},s.a.createElement(S.a.Item,{label:"\u6587\u4EF6\u5939\u540D\u79F0\uFF1A",name:"path"},s.a.createElement(u.a,null,s.a.createElement(m.a,null,s.a.createElement("span",{className:it.a.filePath},ht.defaultPath+"/")),s.a.createElement(m.a,{flex:"1"},s.a.createElement(S.a.Item,{name:"path",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},s.a.createElement(B.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0",size:"large"}))))),s.a.createElement(S.a.Item,{label:"\u6587\u4EF6\u540D\u79F0\uFF1A",name:"file"},s.a.createElement(B.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0\uFF0C\u5982\u679C\u4E0D\u586B\u5199\u7CFB\u7EDF\u5C06\u5728\u6587\u4EF6\u5939\u4E0B\u521B\u5EFA.gitkeep\u7684\u9ED8\u8BA4\u6587\u4EF6",size:"large"})),s.a.createElement(S.a.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63D0\u4EA4\u4FE1\u606F"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},s.a.createElement(B.a,{placeholder:"\u8BF7\u8F93\u5165\u672C\u6B21\u63D0\u4EA4\u7684\u4E3B\u8981\u4FE1\u606F\uFF0C\u5408\u7406\u7684\u63CF\u8FF0\u4FE1\u606F\u6709\u5229\u4E8E\u4EE3\u7801\u5386\u53F2\u8BB0\u5F55\u7684\u7BA1\u7406",size:"large"}))))))},vt=Object(N.a)(function(Me){var Oe=Me.shixunsDetail,at=Me.loading,mt=Me.globalSetting,dt=Me.user;return{shixunsDetail:Oe,globalSetting:mt,user:dt,loading:at.models.index}})(xt),Ut=o("7ahc"),Ht=function(Oe){var at=Oe.shixunsDetail,mt=Oe.globalSetting,dt=Oe.loading,Nt=Oe.user,Dt=Oe.dispatch,Ye=Oe.isRepository,ht=Object(Q.a)(Oe,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Pt=Object(F.h)(),Xt=Object(F.i)(),_t=Object(d.useState)({}),Zt=Object(U.a)(_t,2),Ln=Zt[0],qt=Zt[1],Mn=Object(d.useRef)(),un=S.a.useForm(),ct=Object(U.a)(un,1),wt=ct[0],Hn=Object(d.useState)(""),Jn=Object(U.a)(Hn,2),ha=Jn[0],In=Jn[1];Object(d.useEffect)(function(){ht.visible&&wt.resetFields()},[ht.visible]),Object(d.useEffect)(function(){var We=sessionStorage.getItem("pathArray");if(We){var Qt=We.split(",").join("/"),en=Qt.indexOf("/")===0?Qt.substr(1):Qt;In(en)}},[]),Object(d.useEffect)(function(){var We,Qt;Mn.current=(We=Pt.pathname)===null||We===void 0||((Qt=We.split("/"))===null||Qt===void 0)?void 0:Qt[2]},[]);var oa=function(){var We=Object(fe.a)(T.a.mark(function Qt(){var en,_n,an=arguments;return T.a.wrap(function(tn){for(;;)switch(tn.prev=tn.next){case 0:return en=an.length>0&&an[0]!==void 0?an[0]:{},tn.next=3,Dt({type:"shixunsDetail/addRepositoryFiles",payload:{id:Xt.taskId,message:en.commitMessage,content:en.codeMirror,path:(ht.defaultPath?ht.defaultPath+"/":"")+en.path,secret_repository:Ye?void 0:!0}});case 3:_n=tn.sent,_n!=null&&_n.url&&(D.b.success("\u6DFB\u52A0\u6210\u529F"),ht.onOK({path:(ht.defaultPath?ht.defaultPath+"/":"")+en.path,name:en.path.split("/")[en.path.split("/").length-1]}),ht.onClose());case 5:case"end":return tn.stop()}},Qt)}));return function(){return We.apply(this,arguments)}}(),Lt=function(){var Qt,en;N.d.push("/shixuns/".concat(Mn.current,"/").concat((Qt=Pt.pathname)===null||Qt===void 0||((en=Qt.split("/"))===null||en===void 0)?void 0:en[3]).concat(ha?"/master/shixun_show/".concat(ha):""))};return s.a.createElement(L.a,{width:"60%",visible:ht.visible,wrapClassName:it.a.modal,centered:!0,onOk:function(){wt.submit()},onCancel:ht.onClose,title:"\u65B0\u5EFA\u6587\u4EF6"},s.a.createElement("section",{className:it.a.bg},s.a.createElement("div",{className:it.a.wrap},s.a.createElement(S.a,{className:"mt10",form:wt,scrollToFirstError:!0,layout:"vertical",onFinish:oa,onChange:function(){var Qt,en,_n=Object(oe.a)({},wt.getFieldsValue()),an=_n==null||((Qt=_n.path)===null||Qt===void 0)?void 0:Qt.split("");(an==null||((en=an.filter(function(cn){return cn=="/"}))===null||en===void 0)?void 0:en.length)>1&&(_n.path=_n.path.substring(0,_n.path.length-1)),wt.setFieldsValue(Object(oe.a)({},_n)),qt(_n)}},s.a.createElement(S.a.Item,{label:"\u6587\u4EF6\u540D\u79F0\u6216\u6587\u4EF6\u8DEF\u5F84\uFF1A",name:"path"},s.a.createElement(u.a,null,s.a.createElement(m.a,null,s.a.createElement("span",{className:it.a.filePath},ht.defaultPath+"/")),s.a.createElement(m.a,{flex:"1"},s.a.createElement(S.a.Item,{name:"path",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},s.a.createElement(B.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0",size:"large"}))))),s.a.createElement(S.a.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63D0\u4EA4\u4FE1\u606F"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},s.a.createElement(B.a,{placeholder:"\u8BF7\u8F93\u5165\u672C\u6B21\u63D0\u4EA4\u7684\u4E3B\u8981\u4FE1\u606F\uFF0C\u5408\u7406\u7684\u63CF\u8FF0\u4FE1\u606F\u6709\u5229\u4E8E\u4EE3\u7801\u5386\u53F2\u8BB0\u5F55\u7684\u7BA1\u7406",size:"large"})),s.a.createElement("div",{className:"mt10 mb20"},s.a.createElement(S.a.Item,{name:"codeMirror",label:"\u6587\u4EF6\u5185\u5BB9\uFF1A",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5185\u5BB9"}]},s.a.createElement(Ut.a,{options:{modal:"javascript",lineNumbers:!0,theme:"railscasts",indentUnit:4,matchBrackets:!0,autoRefresh:!0,smartIndent:!0,extraKeys:{"Alt-/":"autocomplete"},autofocus:!0,styleActiveLine:!0,lint:!0,linkurl:"",gutters:["CodeMirror-linenumbers","breakpoints","CodeMirror-lint-markers"]}})))))))},je=Object(N.a)(function(Me){var Oe=Me.shixunsDetail,at=Me.loading,mt=Me.globalSetting,dt=Me.user;return{shixunsDetail:Oe,globalSetting:mt,user:dt,loading:at.models.index}})(Ht),Le=function(Oe){var at=Oe.shixunsDetail,mt=Oe.globalSetting,dt=Oe.loading,Nt=Oe.user,Dt=Oe.dispatch,Ye=Oe.isRepository,ht=Object(Q.a)(Oe,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Pt=Object(F.h)(),Xt=Object(F.i)(),_t=Object(d.useState)({}),Zt=Object(U.a)(_t,2),Ln=Zt[0],qt=Zt[1],Mn=Object(d.useRef)(),un=S.a.useForm(),ct=Object(U.a)(un,1),wt=ct[0],Hn=Object(d.useState)(""),Jn=Object(U.a)(Hn,2),ha=Jn[0],In=Jn[1],oa=Object(d.useState)(""),Lt=Object(U.a)(oa,2),We=Lt[0],Qt=Lt[1];Object(d.useEffect)(function(){ht.visible&&wt.resetFields()},[ht.visible]),Object(d.useEffect)(function(){var an=ht.defaultPath.split("/");an.length===1?(In(""),Qt(ht.defaultPath)):(Qt(an.pop()),In(an.join("/")+"/"))},[ht.defaultPath]),Object(d.useEffect)(function(){var an,cn;Mn.current=(an=Pt.pathname)===null||an===void 0||((cn=an.split("/"))===null||cn===void 0)?void 0:cn[2]},[]);var en=function(){var an=Object(fe.a)(T.a.mark(function cn(){var tn,na,Kn=arguments;return T.a.wrap(function(rn){for(;;)switch(rn.prev=rn.next){case 0:return tn=Kn.length>0&&Kn[0]!==void 0?Kn[0]:{},rn.next=3,Dt({type:"shixunsDetail/moveGitFiles",payload:{id:Xt.taskId,from:ht.defaultPath,to:ha+tn.path,message:tn.commitMessage||"".concat(ht.defaultPath," rename to ").concat(ha).concat(tn.path," "),secret_repository:Ye}});case 3:na=rn.sent,(na==null?void 0:na.status)===0&&(D.b.success("\u6DFB\u52A0\u6210\u529F"),ht.onOK({path:tn.path,name:tn.path}),ht.onClose());case 5:case"end":return rn.stop()}},cn)}));return function(){return an.apply(this,arguments)}}(),_n=function(){var cn,tn;N.d.push("/shixuns/".concat(Mn.current,"/").concat((cn=Pt.pathname)===null||cn===void 0||((tn=cn.split("/"))===null||tn===void 0)?void 0:tn[3]).concat(ha?"/master/shixun_show/".concat(ha):""))};return s.a.createElement(L.a,{width:"40%",visible:ht.visible,wrapClassName:it.a.modal,centered:!0,onOk:function(){wt.submit()},onCancel:ht.onClose,title:"\u63D0\u4EA4\u8BF4\u660E"},s.a.createElement("section",{className:it.a.bg},s.a.createElement("div",{className:it.a.wrap},s.a.createElement(S.a,{className:"mt10",form:wt,scrollToFirstError:!0,layout:"vertical",onFinish:en,onChange:function(){var cn,tn,na=Object(oe.a)({},wt.getFieldsValue()),Kn=na==null||((cn=na.path)===null||cn===void 0)?void 0:cn.split("");(Kn==null||((tn=Kn.filter(function(ln){return ln=="/"}))===null||tn===void 0)?void 0:tn.length)>1&&(na.path=na.path.substring(0,na.path.length-1)),wt.setFieldsValue(Object(oe.a)({},na)),qt(na)}},s.a.createElement(S.a.Item,{label:"\u91CD\u547D\u540D\uFF1A",name:"path"},s.a.createElement(u.a,null,s.a.createElement(m.a,{flex:"1"},s.a.createElement(S.a.Item,{name:"path",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},s.a.createElement(B.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0",size:"large",defaultValue:We}))))),s.a.createElement(S.a.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage"},s.a.createElement(B.a,{placeholder:"\u5982\u4E0D\u586B\u5199\uFF0C\u9ED8\u8BA4\u63D0\u4EA4\u4FE1\u606F\u662F\uFF08".concat(ht.defaultPath," rename to \u65B0\u7684\u540D\u79F0 \uFF09"),size:"large"}))))))},ze=Object(N.a)(function(Me){var Oe=Me.shixunsDetail,at=Me.loading,mt=Me.globalSetting,dt=Me.user;return{shixunsDetail:Oe,globalSetting:mt,user:dt,loading:at.models.index}})(Le),st=o("DZo9"),rt=o("8z0m"),Ue=o("ZaFS"),ke=o.n(Ue),Ke=rt.a.Dragger,He=function(Oe){var at=Oe.shixunsDetail,mt=Oe.globalSetting,dt=Oe.loading,Nt=Oe.user,Dt=Oe.dispatch,Ye=Oe.isRepository,ht=Object(Q.a)(Oe,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Pt=Object(F.h)(),Xt=Object(F.i)(),_t=Object(d.useState)({}),Zt=Object(U.a)(_t,2),Ln=Zt[0],qt=Zt[1],Mn=Object(d.useRef)(),un=S.a.useForm(),ct=Object(U.a)(un,1),wt=ct[0],Hn=Object(d.useState)([]),Jn=Object(U.a)(Hn,2),ha=Jn[0],In=Jn[1],oa=Object(d.useState)(),Lt=Object(U.a)(oa,2),We=Lt[0],Qt=Lt[1],en;Object(d.useEffect)(function(){ht.visible&&(wt.resetFields(),In([]))},[ht.visible]),Object(d.useEffect)(function(){Mn.current=Xt.taskId},[]),Object(d.useEffect)(function(){var Kn=sessionStorage.getItem("pathArray");if(Kn){var ln=Kn.split(",").join("/"),rn=ln.indexOf("/")===0?ln.substr(1):ln;Qt(rn)}},[]);var _n=function(ln){if(en=ln.file.name,ln.file.status==="done"||ln.file.status==="uploading"){var rn,Sa,ia;if(In(ln.fileList),!ln.file.response)return;if(((rn=ln.file.response)===null||rn===void 0?void 0:rn.status)===0){D.b.success("\u4E0A\u4F20\u6210\u529F\uFF01");return}In(ha.filter(function(qn){return qn.uid!==ln.file.uid})),((Sa=ln.file.response)===null||Sa===void 0?void 0:Sa.message)&&D.b.info((ia=ln.file.response)===null||ia===void 0?void 0:ia.message)}},an=function(){var Kn=Object(fe.a)(T.a.mark(function ln(rn){var Sa;return T.a.wrap(function(qn){for(;;)switch(qn.prev=qn.next){case 0:if(rn.response){qn.next=3;break}return D.b.info("\u8FD8\u672A\u4E0A\u4F20\u5B8C\u6210\uFF0C\u65E0\u6CD5\u8FDB\u884C\u5220\u9664\u64CD\u4F5C\uFF01"),qn.abrupt("return");case 3:return qn.next=5,Dt({type:"shixunsDetail/deleteGitFile",payload:{id:Xt.taskId,path:We?"".concat(We,"/").concat(rn.name):rn.name,message:wt.getFieldValue("commitMessage")||"\u5220\u9664\u4E86".concat(We?"".concat(We,"/").concat(rn.name):rn.name),secret_repository:Ye?null:!0}});case 5:Sa=qn.sent,Sa.status===0&&(In(ha.filter(function(aa){return aa.uid!==rn.uid})),D.b.info("\u5220\u9664\u6210\u529F"));case 7:case"end":return qn.stop()}},ln)}));return function(rn){return Kn.apply(this,arguments)}}(),cn={height:300,multiple:!0,withCredentials:!0,data:function(){var Kn=Object(fe.a)(T.a.mark(function rn(){return T.a.wrap(function(ia){for(;;)switch(ia.prev=ia.next){case 0:return ia.abrupt("return",new Promise(function(){var qn=Object(fe.a)(T.a.mark(function aa(Un,ya){return T.a.wrap(function(mn){for(;;)switch(mn.prev=mn.next){case 0:setTimeout(Object(fe.a)(T.a.mark(function Bt(){var dn,ca;return T.a.wrap(function(Xn){for(;;)switch(Xn.prev=Xn.next){case 0:return Xn.next=2,wt.getFieldsValue();case 2:dn=Xn.sent,ca=Object(oe.a)(Object(oe.a)({},{path:ht.defaultPath?ht.defaultPath:"",message:Ln.commitMessage||"\u4E0A\u4F20\u4E86".concat(en)}),Ye?{}:{secret_repository:!0}),Un(ca);case 5:case"end":return Xn.stop()}},Bt)})),200);case 1:case"end":return mn.stop()}},aa)}));return function(aa,Un){return qn.apply(this,arguments)}}()));case 1:case"end":return ia.stop()}},rn)}));function ln(){return Kn.apply(this,arguments)}return ln}(),fileList:ha,method:"post",action:"".concat(Se.a.API_SERVER,"/api/sci/projects/").concat(Mn.current,"/upload_git_file.json"),onChange:_n,onRemove:an,beforeUpload:function(ln){en=ln.name}},tn=function(){var Kn=Object(fe.a)(T.a.mark(function ln(rn){return T.a.wrap(function(ia){for(;;)switch(ia.prev=ia.next){case 0:return ia.next=2,wt.validateFields();case 2:ht.onClose(),ht.onOK({path:ht.defaultPath});case 4:case"end":return ia.stop()}},ln)}));return function(rn){return Kn.apply(this,arguments)}}(),na=function(){var ln,rn;N.d.push("/shixuns/".concat(Mn.current,"/").concat((ln=Pt.pathname)===null||ln===void 0||((rn=ln.split("/"))===null||rn===void 0)?void 0:rn[3]).concat(We?"/master/shixun_show/".concat(We):""))};return s.a.createElement(L.a,{visible:ht.visible,onOk:tn,centered:!0,onCancel:ht.onClose,width:"70%"},s.a.createElement("section",{className:ke.a.bg},s.a.createElement("div",{className:ke.a.wrap},s.a.createElement("div",{className:ke.a.title},"\u4E0A\u4F20\u6587\u4EF6"),s.a.createElement(S.a,{className:"mt10",form:wt,scrollToFirstError:!0,layout:"vertical",onFinish:tn,onValuesChange:function(){return qt(Object(oe.a)({},wt.getFieldsValue()))}},s.a.createElement(S.a.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63D0\u4EA4\u4FE1\u606F"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},s.a.createElement(B.a,{placeholder:"\u5FC5\u586B\uFF0C\u63CF\u8FF0\u4E3B\u8981\u4FEE\u6539\u5185\u5BB9\uFF08\u76F8\u5F53\u4E8EGit Commit message\u7684Header\uFF09"})),s.a.createElement(S.a.Item,{label:"\u9009\u62E9\u6587\u4EF6",name:"file",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6"}]},s.a.createElement(Ke,cn,s.a.createElement("div",null,s.a.createElement("i",{className:"iconfont icon-shangchuan font50 ".concat(ke.a.colorBlue)})),s.a.createElement("div",{className:"font14 mt30"},"\u62D6\u62FD\u6587\u4EF6\u6216",s.a.createElement("span",{className:"".concat(ke.a.colorBlue," ml5")},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20"))))))))},Ze=Object(N.a)(function(Me){var Oe=Me.shixunsDetail,at=Me.loading,mt=Me.globalSetting,dt=Me.user;return{shixunsDetail:Oe,globalSetting:mt,user:dt,loading:at.models.index}})(He),Be=o("5vmQ"),Xe=o.n(Be),ut=o("hkyu"),lt=o.n(ut),Ct=function(Oe){var at=Oe.shixunsDetail,mt=Oe.globalSetting,dt=Oe.loading,Nt=Oe.dispatch,Dt=Oe.title,Ye=Oe.pathList,ht=Ye===void 0?[]:Ye,Pt=Oe.showInputPath,Xt=Pt===void 0?!1:Pt,_t=Oe.isMergeSelectFile,Zt=_t===void 0?!1:_t,Ln=Oe.onFinish,qt=Ln===void 0?function(){}:Ln,Mn=S.a.useForm(),un=Object(U.a)(Mn,1),ct=un[0],wt=Object(F.i)(),Hn=Object(F.h)(),Jn=Object(d.useRef)(),ha=Object(d.useState)(""),In=Object(U.a)(ha,2),oa=In[0],Lt=In[1],We=Object(d.useState)(""),Qt=Object(U.a)(We,2),en=Qt[0],_n=Qt[1],an=Object(d.useState)([]),cn=Object(U.a)(an,2),tn=cn[0],na=cn[1],Kn=Object(d.useState)([]),ln=Object(U.a)(Kn,2),rn=ln[0],Sa=ln[1];Object(d.useEffect)(function(){var kn,mn;Jn.current=((kn=Hn.pathname)===null||kn===void 0||((mn=kn.split("/"))===null||mn===void 0)?void 0:mn[3])==="repository"},[]),Object(d.useEffect)(function(){if(at.actionTabs.key!=="Repository-SelectFilePath")return;var kn=ht.join("/"),mn=[];ht.map(function(Bt,dn){dn===0?mn.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(Bt),path:kn}):mn.push({val:"/".concat(Bt),path:kn})}),na(mn),Lt(kn),_n(kn),ia(kn)},[at.actionTabs.key]);var ia=function(){var kn=Object(fe.a)(T.a.mark(function mn(Bt){var dn;return T.a.wrap(function(Vn){for(;;)switch(Vn.prev=Vn.next){case 0:return Vn.next=2,Nt({type:Jn.current?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:wt.taskId,path:Bt}});case 2:dn=Vn.sent,dn&&Sa(dn.trees||[]);case 4:case"end":return Vn.stop()}},mn)}));return function(Bt){return kn.apply(this,arguments)}}(),qn=function(mn){var Bt=oa;mn.type==="tree"&&(tn.length?tn.push({val:"/".concat(mn.name),path:mn.name}):tn.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(mn.name),path:mn.name}),na(tn),Bt=oa?"".concat(oa,"/").concat(mn.name):mn.name,Lt(Bt)),ia(Bt)},aa=function(mn,Bt){var dn=tn.filter(function(Vn,Xn){return Xn<=Bt});na(dn);var ca=dn.filter(function(Vn,Xn){return Xn!==0}).map(function(Vn){return Vn.val}).join("").substr(1);Lt(ca),ia(ca)},Un=function(){var kn=Object(fe.a)(T.a.mark(function mn(){var Bt,dn,ca;return T.a.wrap(function(Xn){for(;;)switch(Xn.prev=Xn.next){case 0:if(Bt=ct==null?void 0:ct.getFieldsValue(),dn=oa?"".concat(oa).concat(Bt!=null&&Bt.name?"/".concat(Bt==null?void 0:Bt.name):""):Bt==null?void 0:Bt.name,!Zt){Xn.next=6;break}return qt(dn),ya(),Xn.abrupt("return");case 6:if(!Xt){Xn.next=16;break}return Xn.next=9,ct.validateFields();case 9:return Xn.next=11,Nt({type:"shixunsDetail/uploadGitFolder",payload:Object(oe.a)(Object(oe.a)({},{id:wt.taskId,path:dn}),Jn.current?{}:{secret_repository:!0})});case 11:ca=Xn.sent,qt(en),ca.status===0&&D.b.info("\u65B0\u5EFA\u6210\u529F"),Xn.next=18;break;case 16:qt(dn),D.b.success("\u9009\u62E9\u6587\u4EF6\u76EE\u5F55\u6210\u529F");case 18:ya();case 19:case"end":return Xn.stop()}},mn)}));return function(){return kn.apply(this,arguments)}}(),ya=function(){Nt({type:"shixunsDetail/setActionTabs",payload:{}}),ct.resetFields()};return s.a.createElement(L.a,{centered:!0,title:Dt||"\u65B0\u5EFA\u6587\u4EF6\u5939",closable:!1,keyboard:!1,visible:at.actionTabs.key==="Repository-SelectFilePath",onOk:Un,onCancel:ya},s.a.createElement("div",{className:lt.a.wrap},s.a.createElement("div",{className:lt.a.content},s.a.createElement("div",{className:lt.a.mainPathWrap},!!(tn!=null&&tn.length)&&tn.map(function(kn,mn){return s.a.createElement("a",{key:mn,onClick:function(){return aa(kn,mn)}},kn.val)})),!!(rn!=null&&rn.length)&&rn.map(function(kn,mn){return kn.type==="tree"&&s.a.createElement("a",{key:mn,onClick:function(){return qn(kn)}},s.a.createElement("i",{className:"iconfont icon-wenjianjia ".concat(lt.a.colorBlue)}),kn.name)})),s.a.createElement("label",{className:"mt5"},"\u9009\u4E2D\u7684\u65B0\u5EFA\u6587\u4EF6\u5939\u76EE\u5F55\uFF1A"),s.a.createElement("div",{className:"mt5 mb5"},oa),Xt&&s.a.createElement(S.a,{form:ct,scrollToFirstError:!0,className:"mt20"},s.a.createElement(S.a.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},s.a.createElement(B.a,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u6587\u4EF6\u5939\u540D/\u5B50\u6587\u4EF6\u5939\u540D\u3002\uFF08\u5982\uFF1Asrc/step1\uFF09"})))))},bt=Object(N.a)(function(Me){var Oe=Me.shixunsDetail,at=Me.loading,mt=Me.globalSetting;return{shixunsDetail:Oe,globalSetting:mt,loading:at.models.index}})(Ct),At=o("GZ0F"),kt=o("HBuW"),St=o("1vsH"),Wt=o("NLgs"),fn=o("lzim"),vn=qe.a.DirectoryTree,An=function(Oe){var at,mt,dt=Oe.shixunsDetail,Nt=Oe.globalSetting,Dt=Oe.loading,Ye=Oe.user,ht=Oe.activeKey,Pt=Oe.dispatch,Xt=Oe.practiceSetting,_t=Oe.isRepository,Zt=Oe.treeData,Ln=Oe.setTreeData,qt=Oe.haveAuth,Mn=Object(Q.a)(Oe,["shixunsDetail","globalSetting","loading","user","activeKey","dispatch","practiceSetting","isRepository","treeData","setTreeData","haveAuth"]),un=Object(F.i)(),ct=Object(F.h)(),wt=Object(d.useState)(),Hn=Object(U.a)(wt,2),Jn=Hn[0],ha=Hn[1],In=Object(d.useState)(!1),oa=Object(U.a)(In,2),Lt=oa[0],We=oa[1],Qt=Object(d.useState)(!1),en=Object(U.a)(Qt,2),_n=en[0],an=en[1],cn=Object(d.useState)(!1),tn=Object(U.a)(cn,2),na=tn[0],Kn=tn[1],ln=Object(d.useState)(!1),rn=Object(U.a)(ln,2),Sa=rn[0],ia=rn[1],qn=Object(d.useState)(""),aa=Object(U.a)(qn,2),Un=aa[0],ya=aa[1],kn=Object(d.useState)([]),mn=Object(U.a)(kn,2),Bt=mn[0],dn=mn[1],ca=Object(d.useState)([]),Vn=Object(U.a)(ca,2),Xn=Vn[0],vr=Vn[1],La=Object(d.useState)([]),Fa=Object(U.a)(La,2),Pa=Fa[0],Nr=Fa[1],nr=Object(d.useState)(!1),gr=Object(U.a)(nr,2),br=gr[0],Ha=gr[1],Fr=Object(d.useState)(),Br=Object(U.a)(Fr,2),sa=Br[0],Tn=Br[1],$n=Object(d.useState)(),Ba=Object(U.a)($n,2),Ka=Ba[0],cr=Ba[1],Ta=Object(d.useState)(""),Qa=Object(U.a)(Ta,2),Or=Qa[0],Ga=Qa[1],Lr=Object(d.useState)(),ar=Object(U.a)(Lr,2),Er=ar[0],Kr=ar[1],Sr=Object(d.useState)(!1),Dn=Object(U.a)(Sr,2),En=Dn[0],yn=Dn[1];Object(d.useEffect)(function(){Ln([]),ir(""),localStorage.warehouseHideTip||Ha(!0)},[ct.pathname,_t]);var Ja=function(){var he=Object(fe.a)(T.a.mark(function I(){var f,M,b=arguments;return T.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return f=b.length>0&&b[0]!==void 0?b[0]:"",q.next=3,Object(kt.Fb)({id:un.taskId,secret_dir_path:f});case 3:M=q.sent,M&&Kr(f);case 5:case"end":return q.stop()}},I)}));return function(){return he.apply(this,arguments)}}(),Mr=function(I){return s.a.createElement(P.a,{className:Xe.a.menu,onClick:function(M){ya(I.path||"");switch(M.key){case"1":Object(St.Y)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u65B0\u5EFA\u6587\u4EF6"]),We(!0);break;case"2":Object(St.Y)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u65B0\u5EFA\u6587\u4EF6\u5939"]),Kn(!0);break;case"3":Object(St.Y)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u4E0A\u4F20"]),ia(!0);break;case"4":Object(St.Y)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u91CD\u547D\u540D"]),an(!0);break;case"5":Object(St.Y)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u5220\u9664"]),xo(I.path,I.name,I);break;case"6":Object(St.Y)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u590D\u5236\u8DEF\u5F84"]),To(I);break}}},(I.type==="topTree"||I.type==="tree")&&s.a.createElement(P.a.Item,{key:"1"},"\u65B0\u5EFA\u6587\u4EF6"),(I.type==="topTree"||I.type==="tree")&&s.a.createElement(P.a.Item,{key:"2"},"\u65B0\u5EFA\u6587\u4EF6\u5939"),(I.type==="topTree"||I.type==="tree")&&s.a.createElement(P.a.Item,{key:"3"},"\u4E0A\u4F20"),I.type!=="topTree"&&I.type!=="tree"&&s.a.createElement(P.a.Item,{key:"4"},"\u91CD\u547D\u540D"),I.type!=="topTree"&&s.a.createElement(Je.CopyToClipboard,{text:"/data/workspace/myshixun/".concat(_t?"":"secret/").concat(I==null?void 0:I.path),onCopy:function(){return D.b.success("\u590D\u5236\u6210\u529F")}},s.a.createElement(P.a.Item,{key:"6"},s.a.createElement(s.a.Fragment,null,"\u590D\u5236\u8DEF\u5F84"))),I.type!=="topTree"&&s.a.createElement(P.a.Item,{key:"5"},"\u5220\u9664"))},Ir=function(I,f){return I.map(function(M){return f==""?M.path=f+M.name:M.path=f+"/"+M.name,M.title=s.a.createElement(u.a,{className:"font14"},s.a.createElement(m.a,{flex:"1"},s.a.createElement(u.a,null,s.a.createElement(m.a,{flex:"20px"},M.type==="blob"&&s.a.createElement("span",{className:"iconfont icon-wenjian11 font12"})),s.a.createElement(m.a,{flex:"1"},s.a.createElement("span",{className:" multi_ellipsis1"},M.name)))),qt&&s.a.createElement(m.a,null,(M.type==="blob"||M.type==="tree")&&s.a.createElement(v.a,{overlay:Mr(M),className:Xe.a.ellipsis},s.a.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"})))),M.disableCheckbox=Jn&&Jn!==M.name,M.className=M.type==="tree"?Xe.a.pl23:"",M.checkable=M.type!=="tree",M.isLeaf=M.type!=="tree",M.children=M.type==="tree"&&[],M.key=M.path,M})},Rr=function(I){Pt({type:"practiceSetting/setSideBarTabs",payload:{selectPath:I}})},Jr=function(){var he=Object(fe.a)(T.a.mark(function I(f,M){var b;return T.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return b=f.split("/"),q.next=3,ir(Un);case 3:setTimeout(function(){Rr(f),Bt=[b[0]||""],Xn=[f],vr(Object(Ie.a)(Xn)),dn(Object(Ie.a)(Bt))},150);case 4:case"end":return q.stop()}},I)}));return function(f,M){return he.apply(this,arguments)}}(),uo=function(I,f){if(f=="")Zt=Object(Ie.a)(I),Ln(Object(Ie.a)(I));else{var M=co(Zt,f,I);Zt=M,Ln(Object(Ie.a)(M))}};function co(he,I,f){return he.map(function(M){return M.key===I?(M.children=Object(Ie.a)(f),Object(oe.a)({},M)):M.children?Object(oe.a)(Object(oe.a)({},M),{},{children:co(M.children,I,f)}):M})}var ir=function(){var he=Object(fe.a)(T.a.mark(function I(){var f,M,b,G,q,ve=arguments;return T.a.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return f=ve.length>0&&ve[0]!==void 0?ve[0]:"",Ae.next=3,Pt({type:_t?"shixunsDetail/getRepositorys":"shixunsDetail/getSecretRepository",payload:{id:un.taskId,path:f}});case 3:return M=Ae.sent,M&&((b=M.trees)!==null&&b!==void 0&&b.length?(q=Ir(Object(Ie.a)(M.trees),f),uo(q,f),Nr(M.trees||[]),cr(f||""),console.log("handleGetRepository:",q,f),setTimeout(function(){return console.log(Zt,M.trees,f,999999)},2e3)):f==""&&Ln([]),Tn(((G=M.commits)===null||G===void 0?void 0:G[0])||{})),Ae.abrupt("return",M);case 6:case"end":return Ae.stop()}},I)}));return function(){return he.apply(this,arguments)}}(),$o=function(){var he=Object(fe.a)(T.a.mark(function I(f){return T.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.abrupt("return",new Promise(function(){var G=Object(fe.a)(T.a.mark(function q(ve,me){return T.a.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return f.children.length&&ve(),Ga(f.path),Fe.next=4,ir(f.path);case 4:ve();case 5:case"end":return Fe.stop()}},q)}));return function(q,ve){return G.apply(this,arguments)}}()));case 1:case"end":return b.stop()}},I)}));return function(f){return he.apply(this,arguments)}}(),wo=function(){var he=Object(fe.a)(T.a.mark(function I(f,M){var b,G;return T.a.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:if(console.log("handleSelectTree",f,M.nativeEvent.target.nodeName,M),b=function(){Rr(M.node.path),f=[M.node.path],vr(Object(Ie.a)(f))},!(M.nativeEvent.target.nodeName==="svg"||M.nativeEvent.target.nodeName==="LI"||M.nativeEvent.target.nodeName==="I")){ve.next=4;break}return ve.abrupt("return");case 4:M.node.type==="blob"&&(Xt!=null&&(G=Xt.sideBar)!==null&&G!==void 0&&G.confirmLeave?L.a.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){b(),Pt({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})}}):b());case 5:case"end":return ve.stop()}},I)}));return function(f,M){return he.apply(this,arguments)}}(),xo=function(I,f,M){L.a.confirm({centered:!0,title:"\u786E\u8BA4\u9700\u8981\u5220\u9664\u8BE5\u6587\u4EF6".concat(M.children?"\u5939":"","?"),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){var b=Object(fe.a)(T.a.mark(function q(){var ve,me,Ae;return T.a.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:return Ve.next=2,Pt({type:"shixunsDetail/deleteGitFiles",payload:{id:un.taskId,path:I,message:"\u5220\u9664".concat(I),secret_repository:_t?null:!0}});case 2:if(ve=Ve.sent,me=I.split("/"),!((ve==null?void 0:ve.status)===0)){Ve.next=20;break}return D.b.info("\u5220\u9664\u6210\u529F"),me.splice(me.length-1,1),Ve.next=9,ir(me.length>1?me.join("/"):"");case 9:if(Ae=Ve.sent,!(Ae!=null&&Ae.trees)){Ve.next=13;break}Ve.next=16;break;case 13:return me.splice(me.length-1,1),Ve.next=16,ir(me.length>1?me.join("/"):"");case 16:return Rr(""),Ve.abrupt("return",!0);case 20:(ve==null?void 0:ve.status)===-3&&L.a.confirm({title:"\u5220\u9664\u5931\u8D25",content:s.a.createElement("div",null,"\u8BE5\u6587\u4EF6\u201C",I,"\u201D\u5DF2\u7ECF\u88AB\u4EFB\u52A1\u5173\u5361\u7684\u5B66\u5458\u4EFB\u52A1\u6587\u4EF6\u6216\u8BC4\u6D4B\u6267\u884C\u6587\u4EF6\u4F7F\u7528\uFF0C\u8BF7\u5148\u4FEE\u6539\u4EFB\u52A1\u5173\u5361\u4E2D\u8BC4\u6D4B\u8BBE\u7F6E\u7684\u6587\u4EF6\u8DEF\u5F84\u540E\u518D\u5220\u9664\u3002"),okText:"\u524D\u5F80\u4FEE\u6539",cancelText:"\u53D6\u6D88",onOk:function(){window.location.href="/shixuns/".concat(un.taskId,"/edit/").concat(ve==null?void 0:ve.message,"/tab=2")}});case 21:case"end":return Ve.stop()}},q)}));function G(){return b.apply(this,arguments)}return G}()})},To=function(I){console.log(I,"item")},ei=function(){var he=Object(fe.a)(T.a.mark(function I(f,M){return T.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:if(console.log("handleExpand",M),!(M.nativeEvent.target.nodeName==="svg"||M.nativeEvent.target.nodeName==="path"||M.nativeEvent.target.nodeName==="LI")){G.next=5;break}return G.abrupt("return",!0);case 5:return G.next=7,$o(M.node);case 7:Bt.includes(M.node.path)?Bt.splice(Bt.indexOf(M.node.path),1):Bt.push(M.node.path);case 8:dn(Object(Ie.a)(Bt));case 9:case"end":return G.stop()}},I)}));return function(f,M){return he.apply(this,arguments)}}(),Wr=function(){Ha(!1),localStorage.warehouseHideTip=!0},Ur=function(){var he=Object(fe.a)(T.a.mark(function I(f){var M,b,G,q,ve;return T.a.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:G="",Ae.t0=_t,Ae.next=Ae.t0===!0?4:Ae.t0===!1?9:11;break;case 4:return G="\u5F00\u542F\u7248\u672C\u5E93",q="\u5F00\u542F",ve="\u4E0D\u5F00\u542F",b=s.a.createElement("div",null,"\u65B0\u5EFA\u5B9E\u8DF5\u9898\u5173\u5361\u65F6\uFF0C\u9700\u8981\u4F7F\u7528\u4EE3\u7801\u4ED3\u5E93\uFF1B\u5982\u679C\u53EA\u6709\u9009\u62E9\u9898\u5173\u5361\uFF0C\u5219\u4E0D\u9700\u8981\u4EE3\u7801\u4ED3\u5E93\u3002\u4EE3\u7801\u4ED3\u5E93\u542F\u7528\u540E\uFF0C\u5C06\u65E0\u6CD5\u5173\u95ED\u3002"),Ae.abrupt("break",11);case 9:return dt!=null&&(M=dt.detail)!==null&&M!==void 0&&M.secret_repository?(G="\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",q="\u786E\u5B9A",ve="\u53D6\u6D88",b=s.a.createElement("div",null,"\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93\u540E\uFF0C\u5DF2\u521B\u5EFA\u7684\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93\u53CA\u5176\u5185\u5BB9\uFF0C\u5C06\u88AB\u5220\u9664\u3002\u786E\u8BA4\u8981\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93\uFF1F")):(G="\u5F00\u542F\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",q="\u4E0D\u4F7F\u7528",ve="\u4F7F\u7528",b=s.a.createElement("div",null,"\u79C1\u5BC6\u7248\u672C\u5E93\u7684\u6587\u4EF6\u5BF9\u5B66\u5458\u59CB\u7EC8\u9690\u85CF\uFF0C\u65E0\u6CD5\u8BBF\u95EE\u67E5\u770B\u3002\u9002\u7528\u4E8E\u547D\u4EE4\u884C\u3001\u56FE\u5F62\u5316\u684C\u9762\u4E24\u7C7B\u5B9E\u8BAD\uFF0C\u5176\u4ED6\u7C7B\u578B\u5B9E\u8BAD\u4E0D\u5EFA\u8BAE\u4F7F\u7528\u79C1\u5BC6\u7248\u672C\u5E93\u3002")),Ae.abrupt("break",11);case 11:if(!(!_t&&Object(Wt.b)(Pt,"\u4E0D\u80FD\u5F00\u542F/\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93"))){Ae.next=13;break}return Ae.abrupt("return");case 13:L.a.confirm({title:G,okText:q,cancelText:ve,content:b,onOk:function(){var Ve;Object(St.Y)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93",G]),!_t&&!(dt!=null&&(Ve=dt.detail)!==null&&Ve!==void 0&&Ve.secret_repository)||fo(f)},onCancel:function(){var Ve;!_t&&!(dt!=null&&(Ve=dt.detail)!==null&&Ve!==void 0&&Ve.secret_repository)&&fo(f)}});case 14:case"end":return Ae.stop()}},I)}));return function(f){return he.apply(this,arguments)}}(),fo=function(){var he=Object(fe.a)(T.a.mark(function I(f){return T.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(!_t){b.next=6;break}return b.next=3,Object(kt.r)({id:un.taskId});case 3:Pt({type:"practiceSetting/getCommonData",payload:{id:un.taskId}}),b.next=8;break;case 6:return b.next=8,Object(kt.s)({id:un.taskId,is_secret_repository:f});case 8:ir(),Pt({type:"shixunsDetail/getShixunsDetail",payload:{id:un.taskId}});case 10:case"end":return b.stop()}},I)}));return function(f){return he.apply(this,arguments)}}(),V=function(I){console.log(I)},ge=function(){var he=Object(fe.a)(T.a.mark(function I(f){var M,b,G,q,ve,me,Ae,Fe,Ve,nt,gt;return T.a.wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:if(console.log(f),M=f.node.key,b=f.dragNode.key,G=f.node.pos.split("-"),q=f.dropPosition-Number(G[G.length-1]),!(f.dragNode.type==="tree")){Gt.next=8;break}return D.b.warn("\u4E0D\u652F\u6301\u6587\u4EF6\u5939\u79FB\u52A8\u76EE\u5F55"),Gt.abrupt("return");case 8:if(!(f.node.type!=="tree")){Gt.next=11;break}return D.b.warn("\u672A\u79FB\u52A8\u6587\u4EF6\u76EE\u5F55\u4F4D\u7F6E"),Gt.abrupt("return");case 11:return Gt.next=13,Pt({type:"shixunsDetail/moveGitFiles",payload:{id:un.taskId,from:f.dragNode.path,to:f.node.path+"/"+f.dragNode.name,message:"".concat(f.dragNode.path," move to ").concat(f.node.path+"/"+f.dragNode.name," ")}});case 13:if(ve=Gt.sent,!(ve.status===0)){Gt.next=26;break}return Rr(""),Gt.next=18,ir("");case 18:me=0;case 19:if(!(me=10&&!Object(K.v)()){qt({type:"innovation/openSimpleModal",payload:{title:"\u9879\u76EE\u6570\u91CF\u8FBE\u5230\u4E0A\u9650",children:"\u6BCF\u4F4D\u7528\u6237\u6700\u591A\u53EA\u80FD\u521B\u5EFA10\u4E2A\u9879\u76EE\uFF0C\u4F60\u7684\u9879\u76EE\u6570\u91CF\u5DF2\u7ECF\u8FBE\u5230\u4E0A\u9650\u3002",footer:s.a.createElement(p.a,{onClick:function(){return qt({type:"innovation/closeSimpleModal"})},type:"primary"},"\u6211\u77E5\u9053\u4E86")}});return}qt({type:"innovation/save",payload:{visibleModalName:"fork-project",openForkModalPosition:ca}})},mn=function(){N.d.push("/innovation/project/edit/".concat(Lt))},Bt=function(){qt({type:"innovation/openModal",payload:"delete-project"})};return s.a.createElement(J.a,{spinning:ha},ct&&s.a.createElement("div",{className:w.a.project_detail_wrapper},s.a.createElement(u.a,{justify:"space-between",align:"middle",style:{marginBottom:10}},s.a.createElement(m.a,{className:w.a.title,span:20},ct.sci_project.username," / ",ct.sci_project.name),s.a.createElement(m.a,{span:4,style:{textAlign:"right"}},s.a.createElement(p.a,{icon:s.a.createElement(ue.a,null),className:w.a.fork_btn,onClick:function(){return kn("forkButton")}},s.a.createElement("span",null,ct.sci_project.forked_count)))),s.a.createElement(ta,{ellipsis:{rows:3,expandable:!0,symbol:s.a.createElement("span",{style:{color:"#165dff"}},"\u5C55\u5F00",s.a.createElement(Y.a,null))},className:w.a.desc},ct.sci_project.description),s.a.createElement(u.a,{justify:"space-between"},s.a.createElement(m.a,{className:w.a.info},s.a.createElement("span",null,"\u9879\u76EE\u73AF\u5883\uFF1A",ct.mirror_repository_info.name),s.a.createElement("span",{className:w.a.create_time},"\u521B\u5EFA\u65F6\u95F4\uFF1A",xe()(ct.sci_project.created_at).format("YYYY-MM-DD HH:mm"))),an&&s.a.createElement(m.a,{className:w.a.operation},s.a.createElement("span",{onClick:mn},"\u7F16\u8F91"),cn&&s.a.createElement("span",{className:w.a.delete_btn,onClick:Bt},"\u5220\u9664"))),s.a.createElement(_.a,null),s.a.createElement(ne.a,{activeKey:en,onChange:function(ca){_n(ca)},tabBarExtraContent:{right:s.a.createElement(p.a,{type:"primary"},s.a.createElement("a",{onClick:function(){if(!an){window.localStorage.getItem("hideRemindModal")==="true"?kn("forkButton"):qt({type:"innovation/save",payload:{visibleModalName:"remindfork-project",hideRemindModal:!0}});return}Object(j.h)(Lt).then(function(ca){if(wt(ca),ca.verify_info.status===-1){ln(!0),ya.setFieldsValue({max_cpu:2,min_cpu:.2,max_memory:1024,min_memory:1024,max_disk:1e3,survival_time:.5});return}if(ca.verify_info.status===0){L.a.warning({title:"\u542F\u52A8\u73AF\u5883\u63D0\u793A",content:"\u73AF\u5883\u8D44\u6E90\u6B63\u5728\u3010\u5BA1\u6838\u4E2D\u3011\uFF0C\u5BA1\u6838\u901A\u8FC7\u540E\u624D\u80FD\u542F\u52A8\u73AF\u5883",okText:"\u67E5\u770B\u5BA1\u6838\u7ED3\u679C",onOk:function(){_n("3")}});return}if(ca.verify_info.status===1&&N.d.push("/innovation/tasks/".concat(Lt)),ca.verify_info.status===2){L.a.warning({title:"\u542F\u52A8\u73AF\u5883\u63D0\u793A",content:"\u60A8\u7533\u8BF7\u7684\u73AF\u5883\u8D44\u6E90\u3010\u672A\u901A\u8FC7\u3011\uFF0C\u65E0\u6CD5\u542F\u52A8\u73AF\u5883\u3002",okText:"\u67E5\u770B\u5BA1\u6838\u7ED3\u679C",onOk:function(){_n("3")}});return}})},target:"_blank"},"\u542F\u52A8\u73AF\u5883"))}},s.a.createElement($t,{tab:"\u4EE3\u7801",key:"1"},s.a.createElement(Mt,{haveAuth:an})),s.a.createElement($t,{tab:"\u6570\u636E\u96C6",key:"2"},s.a.createElement(Ft.a,{detail:ct})),s.a.createElement($t,{tab:"\u5408\u4F5C\u8005",key:"4"},s.a.createElement(xn.a,{position:"detail"})),s.a.createElement($t,{tab:"\u73AF\u5883\u4FE1\u606F",key:"3"},s.a.createElement("div",{className:w.a.huanj},s.a.createElement("div",{className:w.a.divtitle},s.a.createElement("p",null,"\u786C\u4EF6\u4FE1\u606F"),s.a.createElement("div",{style:{marginLeft:28}},s.a.createElement("div",null,s.a.createElement("label",null,"CPU\uFF1A"),s.a.createElement("span",null,(ct==null||((at=ct.sci_project_config)===null||at===void 0)?void 0:at.max_cpu)+"\u6838"||!1)),s.a.createElement("div",null,s.a.createElement("label",null,"\u6700\u4F4ECPU\uFF1A"),s.a.createElement("span",null,(ct==null||((mt=ct.sci_project_config)===null||mt===void 0)?void 0:mt.min_cpu)+"\u6838"||!1)),s.a.createElement("div",null,s.a.createElement("label",null,"\u5185\u5B58\u9650\u5236\uFF1A"),s.a.createElement("span",null,(ct==null||((dt=ct.sci_project_config)===null||dt===void 0)?void 0:dt.max_memory)+"M"||!1)),s.a.createElement("div",null,s.a.createElement("label",null,"\u5185\u5B58\u8981\u6C42\uFF1A"),s.a.createElement("span",null,(ct==null||((Nt=ct.sci_project_config)===null||Nt===void 0)?void 0:Nt.min_memory)+"M"||!1)),s.a.createElement("div",null,s.a.createElement("label",null,"\u78C1\u76D8\u9650\u5236\uFF1A"),s.a.createElement("span",null,(ct==null||((Dt=ct.sci_project_config)===null||Dt===void 0)?void 0:Dt.max_disk)+"G"||!1)),s.a.createElement("div",null,s.a.createElement("label",null,"GPU\u6570\u91CF\uFF1A"),s.a.createElement("span",null,(ct==null||((Ye=ct.sci_project_config)===null||Ye===void 0)?void 0:Ye.gpu)||"- -")))),s.a.createElement("div",{className:w.a.divtitle},s.a.createElement("p",null,"\u73AF\u5883\u65F6\u95F4"),s.a.createElement("div",{style:{marginLeft:28}},s.a.createElement("label",null,"\u73AF\u5883\u65F6\u957F\uFF1A"),s.a.createElement("span",null,(ct==null||((ht=ct.sci_project_config)===null||ht===void 0)?void 0:ht.survival_time)+"\u5C0F\u65F6"||!1))),s.a.createElement("div",{className:w.a.divtitle},s.a.createElement("p",null,"\u5BA1\u6838\u72B6\u6001"),s.a.createElement("div",{style:{marginLeft:28}},s.a.createElement("label",null,"\u5BA1\u6838\u72B6\u6001\uFF1A"),s.a.createElement("span",{style:{color:Tt[parseInt("".concat(ct==null||((Pt=ct.verify_info)===null||Pt===void 0)?void 0:Pt.status))+1]}},(ct==null||((Xt=ct.verify_info)===null||Xt===void 0)?void 0:Xt.status_cn)||"- -")),s.a.createElement("div",{style:{marginLeft:28,wordBreak:"break-all"}},s.a.createElement("label",null,"\u672A\u901A\u8FC7\u539F\u56E0\uFF1A"),s.a.createElement("span",null,(ct==null||((_t=ct.verify_info)===null||_t===void 0)?void 0:_t.refuse_reason)||"- -")))),s.a.createElement("div",{style:{textAlign:"center"}},s.a.createElement(p.a,{disabled:(ct==null||((Zt=ct.verify_info)===null||Zt===void 0)?void 0:Zt.status)<=0,onClick:function(){ya.setFieldsValue(Object(oe.a)({},ct==null?void 0:ct.sci_project_config)),ln(!0)},style:{marginTop:30,textAlign:"center"},type:"primary"},"\u91CD\u65B0\u7533\u8BF7")))),s.a.createElement(ye,{detail:ct}),s.a.createElement(ie,{projectId:Lt}),s.a.createElement(Gn,{openForkModal:kn})),s.a.createElement(L.a,{title:"\u542F\u52A8\u73AF\u5883",visible:Kn,okButtonProps:{loading:ia},onCancel:function(){ln(!1)},onOk:function(){ya.submit()}},s.a.createElement("div",null,s.a.createElement(S.a,{labelCol:{span:6},wrapperCol:{span:18},form:ya,preserve:!1,onFinish:function(){var dn=Object(fe.a)(T.a.mark(function ca(Vn){var Xn;return T.a.wrap(function(La){for(;;)switch(La.prev=La.next){case 0:return qn(!0),La.next=3,Object(wn.a)("/api/sci/projects/".concat(Lt,"/commit_verify.json"),{method:"POST",body:Object(oe.a)({},Vn)});case 3:Xn=La.sent,ln(!1),Object(j.h)(Lt).then(function(Fa){if(In(!1),Fa.status)return;wt(Fa)}),D.b.info("\u63D0\u4EA4\u5BA1\u6838\u6210\u529F"),qn(!1);case 8:case"end":return La.stop()}},ca)}));return function(ca){return dn.apply(this,arguments)}}()},s.a.createElement(S.a.Item,{label:"CPU(\u6838)",name:"max_cpu",rules:[{required:!0}]},s.a.createElement($.a,{min:0,style:{width:"100%"}})),s.a.createElement(S.a.Item,{label:"\u6700\u4F4ECPU(\u6838)",name:"min_cpu",rules:[{required:!0}]},s.a.createElement($.a,{min:0,style:{width:"100%"}})),s.a.createElement(S.a.Item,{label:"\u5185\u5B58\u9650\u5236(M)",name:"max_memory",rules:[{required:!0}]},s.a.createElement($.a,{min:0,style:{width:"100%"}})),s.a.createElement(S.a.Item,{label:"\u5185\u5B58\u8981\u6C42(M)",name:"min_memory",rules:[{required:!0}]},s.a.createElement($.a,{min:0,style:{width:"100%"}})),s.a.createElement(S.a.Item,{label:"\u78C1\u76D8\u9650\u5236(G)",name:"max_disk",rules:[{required:!0}],initialValue:1},s.a.createElement($.a,{min:0,style:{width:"100%"}})),s.a.createElement(S.a.Item,{label:"GPU\u6570\u91CF",name:"gpu"},s.a.createElement($.a,{min:0,style:{width:"100%"},precision:0})),s.a.createElement(S.a.Item,{label:"\u73AF\u5883\u65F6\u957F(\u5C0F\u65F6)",name:"survival_time",rules:[{required:!0}]},s.a.createElement($.a,{min:.1,style:{width:"100%"},precision:1}))))))},ua=k.default=Object(N.a)(function(Me){var Oe=Me.innovation,at=Me.user;return{innovation:Oe,user:at}})(Nn)}}]); diff --git a/p__Innovation__PublicMirror.71215435.async.js b/p__Innovation__PublicMirror.71215435.async.js index 19e5a16b82..e0261259c8 100644 --- a/p__Innovation__PublicMirror.71215435.async.js +++ b/p__Innovation__PublicMirror.71215435.async.js @@ -1,4 +1,4 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[162,8,10],{"+QRC":function(et,ee,o){"use strict";var C=o("E9nw"),y={"text/plain":"Text","text/html":"Url",default:"Text"},ce="Copy to clipboard: #{key}, Enter";function j(h){var F=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return h.replace(/#{\s*key\s*}/g,F)}function r(h,F){var q,R,ge,Q,pe,oe,H=!1;F||(F={}),q=F.debug||!1;try{ge=C(),Q=document.createRange(),pe=document.getSelection(),oe=document.createElement("span"),oe.textContent=h,oe.style.all="unset",oe.style.position="fixed",oe.style.top=0,oe.style.clip="rect(0, 0, 0, 0)",oe.style.whiteSpace="pre",oe.style.webkitUserSelect="text",oe.style.MozUserSelect="text",oe.style.msUserSelect="text",oe.style.userSelect="text",oe.addEventListener("copy",function(g){if(g.stopPropagation(),F.format)if(g.preventDefault(),typeof g.clipboardData=="undefined"){q&&console.warn("unable to use e.clipboardData"),q&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var z=y[F.format]||y.default;window.clipboardData.setData(z,h)}else g.clipboardData.clearData(),g.clipboardData.setData(F.format,h);F.onCopy&&(g.preventDefault(),F.onCopy(g.clipboardData))}),document.body.appendChild(oe),Q.selectNodeContents(oe),pe.addRange(Q);var O=document.execCommand("copy");if(!O)throw new Error("copy command was unsuccessful");H=!0}catch(g){q&&console.error("unable to copy using execCommand: ",g),q&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(F.format||"text",h),F.onCopy&&F.onCopy(window.clipboardData),H=!0}catch(z){q&&console.error("unable to copy using clipboardData: ",z),q&&console.error("falling back to prompt"),R=j("message"in F?F.message:ce),window.prompt(R,h)}}finally{pe&&(typeof pe.removeRange=="function"?pe.removeRange(Q):pe.removeAllRanges()),oe&&document.body.removeChild(oe),ge()}return H}et.exports=r},"6+eU":function(et,ee,o){"use strict";o.d(ee,"a",function(){return T});var C=o("wx14"),y=o("rePB"),ce=o("VTBJ"),j=o("1OyB"),r=o("vuIU"),h=o("Ji7U"),F=o("LK+K"),q=o("q1tI"),R=o.n(q),ge=o("TSYQ"),Q=o.n(ge),pe=function(w){var p,v="".concat(w.rootPrefixCls,"-item"),u=Q()(v,"".concat(v,"-").concat(w.page),(p={},Object(y.a)(p,"".concat(v,"-active"),w.active),Object(y.a)(p,w.className,!!w.className),Object(y.a)(p,"".concat(v,"-disabled"),!w.page),p)),M=function(){w.onClick(w.page)},S=function(ie){w.onKeyPress(ie,w.onClick,w.page)};return R.a.createElement("li",{title:w.showTitle?w.page:null,className:u,onClick:M,onKeyPress:S,tabIndex:"0"},w.itemRender(w.page,"page",R.a.createElement("a",{rel:"nofollow"},w.page)))},oe=pe,H={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},O=function(P){Object(h.a)(p,P);var w=Object(F.a)(p);function p(){var v;Object(j.a)(this,p);for(var u=arguments.length,M=new Array(u),S=0;S=0||N.relatedTarget.className.indexOf("".concat(me,"-next"))>=0))return;v.setState({goInputText:""}),ne(v.getValidValue())},v.go=function(N){var ie=v.state.goInputText;if(ie==="")return;(N.keyCode===H.ENTER||N.type==="click")&&(v.setState({goInputText:""}),v.props.quickGo(v.getValidValue()))},v}return Object(r.a)(p,[{key:"getValidValue",value:function(){var u=this.state,M=u.goInputText,S=u.current;return!M||isNaN(M)?S:Number(M)}},{key:"getPageSizeOptions",value:function(){var u=this.props,M=u.pageSize,S=u.pageSizeOptions;return S.some(function(N){return N.toString()===M.toString()})?S:S.concat([M.toString()]).sort(function(N,ie){var A=isNaN(Number(N))?0:Number(N),ne=isNaN(Number(ie))?0:Number(ie);return A-ne})}},{key:"render",value:function(){var u=this,M=this.props,S=M.pageSize,N=M.locale,ie=M.rootPrefixCls,A=M.changeSize,ne=M.quickGo,me=M.goButton,Se=M.selectComponentClass,Ye=M.buildOptionText,xe=M.selectPrefixCls,V=M.disabled,Me=this.state.goInputText,Re="".concat(ie,"-options"),Ne=Se,we=null,J=null,$=null;if(!A&&!ne)return null;var se=this.getPageSizeOptions();if(A&&Ne){var Z=se.map(function(_,K){return R.a.createElement(Ne.Option,{key:K,value:_.toString()},(Ye||u.buildOptionText)(_))});we=R.a.createElement(Ne,{disabled:V,prefixCls:xe,showSearch:!1,className:"".concat(Re,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(S||se[0]).toString(),onChange:this.changeSize,getPopupContainer:function(K){return K.parentNode}},Z)}return ne&&(me&&($=typeof me=="boolean"?R.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:V,className:"".concat(Re,"-quick-jumper-button")},N.jump_to_confirm):R.a.createElement("span",{onClick:this.go,onKeyUp:this.go},me)),J=R.a.createElement("div",{className:"".concat(Re,"-quick-jumper")},N.jump_to,R.a.createElement("input",{disabled:V,type:"text",value:Me,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),N.page,$)),R.a.createElement("li",{className:"".concat(Re)},we,J)}}]),p}(R.a.Component);O.defaultProps={pageSizeOptions:["10","20","50","100"]};var g=O,z=o("N2Kk");function D(){}function k(P){return typeof P=="number"&&isFinite(P)&&Math.floor(P)===P}function W(P,w,p){return p}function I(P,w,p){var v=typeof P=="undefined"?w.pageSize:P;return Math.floor((p.total-1)/v)+1}var he=function(P){Object(h.a)(p,P);var w=Object(F.a)(p);function p(v){var u;Object(j.a)(this,p),u=w.call(this,v),u.getJumpPrevPage=function(){return Math.max(1,u.state.current-(u.props.showLessItems?3:5))},u.getJumpNextPage=function(){return Math.min(I(void 0,u.state,u.props),u.state.current+(u.props.showLessItems?3:5))},u.getItemIcon=function(A,ne){var me=u.props.prefixCls,Se=A||R.a.createElement("button",{type:"button","aria-label":ne,className:"".concat(me,"-item-link")});return typeof A=="function"&&(Se=R.a.createElement(A,Object(ce.a)({},u.props))),Se},u.savePaginationNode=function(A){u.paginationNode=A},u.isValid=function(A){return k(A)&&A!==u.state.current},u.shouldDisplayQuickJumper=function(){var A=u.props,ne=A.showQuickJumper,me=A.pageSize,Se=A.total;return Se<=me?!1:ne},u.handleKeyDown=function(A){(A.keyCode===H.ARROW_UP||A.keyCode===H.ARROW_DOWN)&&A.preventDefault()},u.handleKeyUp=function(A){var ne=u.getValidValue(A),me=u.state.currentInputValue;ne!==me&&u.setState({currentInputValue:ne}),A.keyCode===H.ENTER?u.handleChange(ne):A.keyCode===H.ARROW_UP?u.handleChange(ne-1):A.keyCode===H.ARROW_DOWN&&u.handleChange(ne+1)},u.changePageSize=function(A){var ne=u.state.current,me=I(A,u.state,u.props);ne=ne>me?me:ne,me===0&&(ne=u.state.current),typeof A=="number"&&("pageSize"in u.props||u.setState({pageSize:A}),"current"in u.props||u.setState({current:ne,currentInputValue:ne})),u.props.onShowSizeChange(ne,A),"onChange"in u.props&&u.props.onChange&&u.props.onChange(ne,A)},u.handleChange=function(A){var ne=u.props.disabled,me=A;if(u.isValid(me)&&!ne){var Se=I(void 0,u.state,u.props);me>Se?me=Se:me<1&&(me=1),"current"in u.props||u.setState({current:me,currentInputValue:me});var Ye=u.state.pageSize;return u.props.onChange(me,Ye),me}return u.state.current},u.prev=function(){u.hasPrev()&&u.handleChange(u.state.current-1)},u.next=function(){u.hasNext()&&u.handleChange(u.state.current+1)},u.jumpPrev=function(){u.handleChange(u.getJumpPrevPage())},u.jumpNext=function(){u.handleChange(u.getJumpNextPage())},u.hasPrev=function(){return u.state.current>1},u.hasNext=function(){return u.state.current2?me-2:0),Ye=2;Ye=S?ie=S:ie=Number(M),ie}},{key:"getShowSizeChanger",value:function(){var u=this.props,M=u.showSizeChanger,S=u.total,N=u.totalBoundaryShowSizeChanger;return typeof M!="undefined"?M:S>N}},{key:"renderPrev",value:function(u){var M=this.props,S=M.prevIcon,N=M.itemRender,ie=N(u,"prev",this.getItemIcon(S,"prev page")),A=!this.hasPrev();return Object(q.isValidElement)(ie)?Object(q.cloneElement)(ie,{disabled:A}):ie}},{key:"renderNext",value:function(u){var M=this.props,S=M.nextIcon,N=M.itemRender,ie=N(u,"next",this.getItemIcon(S,"next page")),A=!this.hasNext();return Object(q.isValidElement)(ie)?Object(q.cloneElement)(ie,{disabled:A}):ie}},{key:"render",value:function(){var u=this,M=this.props,S=M.prefixCls,N=M.className,ie=M.style,A=M.disabled,ne=M.hideOnSinglePage,me=M.total,Se=M.locale,Ye=M.showQuickJumper,xe=M.showLessItems,V=M.showTitle,Me=M.showTotal,Re=M.simple,Ne=M.itemRender,we=M.showPrevNextJumpers,J=M.jumpPrevIcon,$=M.jumpNextIcon,se=M.selectComponentClass,Z=M.selectPrefixCls,_=M.pageSizeOptions,K=this.state,de=K.current,De=K.pageSize,He=K.currentInputValue;if(ne===!0&&me<=De)return null;var le=I(void 0,this.state,this.props),Pe=[],rt=null,$e=null,ht=null,xt=null,lt=null,_e=Ye&&Ye.goButton,Ke=xe?1:2,It=de-1>0?de-1:0,Lt=de+1=Ke*2&&de!==1+2&&(Pe[0]=Object(q.cloneElement)(Pe[0],{className:"".concat(S,"-item-after-jump-prev")}),Pe.unshift(rt)),le-de>=Ke*2&&de!==le-2&&(Pe[Pe.length-1]=Object(q.cloneElement)(Pe[Pe.length-1],{className:"".concat(S,"-item-before-jump-next")}),Pe.push($e)),X!==1&&Pe.unshift(ht),ue!==le&&Pe.push(xt)}var ae=null;Me&&(ae=R.a.createElement("li",{className:"".concat(S,"-total-text")},Me(me,[me===0?0:(de-1)*De+1,de*De>me?me:de*De])));var G=!this.hasPrev()||!le,te=!this.hasNext()||!le;return R.a.createElement("ul",Object(C.a)({className:Q()(S,N,Object(y.a)({},"".concat(S,"-disabled"),A)),style:ie,unselectable:"unselectable",ref:this.savePaginationNode},kt),ae,R.a.createElement("li",{title:V?Se.prev_page:null,onClick:this.prev,tabIndex:G?null:0,onKeyPress:this.runIfEnterPrev,className:Q()("".concat(S,"-prev"),Object(y.a)({},"".concat(S,"-disabled"),G)),"aria-disabled":G},this.renderPrev(It)),Pe,R.a.createElement("li",{title:V?Se.next_page:null,onClick:this.next,tabIndex:te?null:0,onKeyPress:this.runIfEnterNext,className:Q()("".concat(S,"-next"),Object(y.a)({},"".concat(S,"-disabled"),te)),"aria-disabled":te},this.renderNext(Lt)),R.a.createElement(g,{disabled:A,locale:Se,rootPrefixCls:S,selectComponentClass:se,selectPrefixCls:Z,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:de,pageSize:De,pageSizeOptions:_,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:_e}))}}],[{key:"getDerivedStateFromProps",value:function(u,M){var S={};if("current"in u&&(S.current=u.current,u.current!==M.current&&(S.currentInputValue=S.current)),"pageSize"in u&&u.pageSize!==M.pageSize){var N=M.current,ie=I(u.pageSize,M,u);N=N>ie?ie:N,"current"in u||(S.current=N,S.currentInputValue=N),S.pageSize=u.pageSize}return S}}]),p}(R.a.Component);he.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:D,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:D,locale:z.a,style:{},itemRender:W,totalBoundaryShowSizeChanger:50};var T=he},"6RRn":function(et,ee,o){"use strict";var C=o("wCXF"),y=o("n6Qo");o.d(ee,"b",function(){return y.a});var ce=o("IBYe"),j=o("6eGT"),r=o("hW8S");o.d(ee,"a",function(){return r.a}),ee.c=C.b},"6eGT":function(et,ee,o){"use strict";function C(y){return null}ee.a=C},"815F":function(et,ee,o){"use strict";o.d(ee,"e",function(){return F}),o.d(ee,"c",function(){return R}),o.d(ee,"d",function(){return ge}),o.d(ee,"a",function(){return pe}),o.d(ee,"f",function(){return oe}),o.d(ee,"b",function(){return H});var C=o("KQm4"),y=o("VTBJ"),ce=o("Ff2n"),j=o("Zm9Q"),r=o("Kwbf"),h=o("OZM5");function F(O,g){return O!=null?O:g}function q(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],g=new Map;function z(D){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(D||[]).forEach(function(W){var I=W.key,he=W.children;Object(r.a)(I!=null,"Tree node must have a certain key: [".concat(k).concat(I,"]"));var T=String(I);Object(r.a)(!g.has(T)||I===null||I===void 0,"Same 'key' exist in the Tree: ".concat(T)),g.set(T,!0),z(he,"".concat(k).concat(T," > "))})}z(O)}function R(O){function g(z){var D=Object(j.a)(z);return D.map(function(k){if(!Object(h.i)(k))return Object(r.a)(!k,"Tree/TreeNode can only accept TreeNode as children."),null;var W=k.key,I=k.props,he=I.children,T=Object(ce.a)(I,["children"]),P=Object(y.a)({key:W},T),w=g(he);return w.length&&(P.children=w),P}).filter(function(k){return k})}return g(O)}function ge(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],z=new Set(g===!0?[]:g),D=[];function k(W){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return W.map(function(he,T){var P=Object(h.h)(I?I.pos:"0",T),w=F(he.key,P),p=Object(y.a)(Object(y.a)({},he),{},{parent:I,pos:P,children:null,data:he,isStart:[].concat(Object(C.a)(I?I.isStart:[]),[T===0]),isEnd:[].concat(Object(C.a)(I?I.isEnd:[]),[T===W.length-1])});return D.push(p),g===!0||z.has(w)?p.children=k(he.children||[],p):p.children=[],p})}return k(O),D}function Q(O,g,z){var D;z?typeof z=="string"?D=function(I){return I[z]}:typeof z=="function"&&(D=function(I){return z(I)}):D=function(I,he){return F(I.key,he)};function k(W,I,he){var T=W?W.children:O,P=W?Object(h.h)(he.pos,I):"0";if(W){var w=D(W,P),p={node:W,index:I,pos:P,key:w,parentPos:he.node?he.pos:null,level:he.level+1};g(p)}T&&T.forEach(function(v,u){k(v,u,{node:W,pos:P,level:he?he.level+1:-1})})}k(null)}function pe(O){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z=g.initWrapper,D=g.processEntity,k=g.onProcessFinished,W=arguments.length>2?arguments[2]:void 0,I={},he={},T={posEntities:I,keyEntities:he};return z&&(T=z(T)||T),Q(O,function(P){var w=P.node,p=P.index,v=P.pos,u=P.key,M=P.parentPos,S=P.level,N={node:w,index:p,key:u,pos:v,level:S},ie=F(u,v);I[v]=N,he[ie]=N,N.parent=I[M],N.parent&&(N.parent.children=N.parent.children||[],N.parent.children.push(N)),D&&D(N,T)},W),k&&k(T),T}function oe(O,g){var z=g.expandedKeys,D=g.selectedKeys,k=g.loadedKeys,W=g.loadingKeys,I=g.checkedKeys,he=g.halfCheckedKeys,T=g.dragOverNodeKey,P=g.dropPosition,w=g.keyEntities,p=w[O],v={eventKey:O,expanded:z.indexOf(O)!==-1,selected:D.indexOf(O)!==-1,loaded:k.indexOf(O)!==-1,loading:W.indexOf(O)!==-1,checked:I.indexOf(O)!==-1,halfChecked:he.indexOf(O)!==-1,pos:String(p?p.pos:""),dragOver:T===O&&P===0,dragOverGapTop:T===O&&P===-1,dragOverGapBottom:T===O&&P===1};return v}function H(O){var g=O.data,z=O.expanded,D=O.selected,k=O.checked,W=O.loaded,I=O.loading,he=O.halfChecked,T=O.dragOver,P=O.dragOverGapTop,w=O.dragOverGapBottom,p=O.pos,v=O.active,u=Object(y.a)(Object(y.a)({},g),{},{expanded:z,selected:D,checked:k,loaded:W,loading:I,halfChecked:he,dragOver:T,dragOverGapTop:P,dragOverGapBottom:w,pos:p,active:v});return"props"in u||Object.defineProperty(u,"props",{get:function(){return Object(r.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),O}}),u}},E9nw:function(et,ee){et.exports=function(){var o=document.getSelection();if(!o.rangeCount)return function(){};for(var C=document.activeElement,y=[],ce=0;ce1&&arguments[1]!==void 0?arguments[1]:1,te=Ke.length,ye=0;ye1&&arguments[1]!==void 0?arguments[1]:!1;return Object(P.a)(xe).map(function(Me,Re){if(!r.isValidElement(Me)||!Me.type)return null;var Ne=Me.type.isSelectOptGroup,we=Me.key,J=Me.props,$=J.children,se=Object(F.a)(J,["children"]);return V||!Ne?w(Me):Object(T.a)(Object(T.a)({key:"__RC_SELECT_GRP__".concat(we===null?Re:we,"__"),label:we},se),{},{options:p($)})}).filter(function(Me){return Me})}var v=o("2Qr1"),u=o("qNPg"),M=o("U8pU"),S=o("Kwbf"),N=o("WKfj");function ie(xe){var V=xe.mode,Me=xe.options,Re=xe.children,Ne=xe.backfill,we=xe.allowClear,J=xe.placeholder,$=xe.getInputElement,se=xe.showSearch,Z=xe.onSearch,_=xe.defaultOpen,K=xe.autoFocus,de=xe.labelInValue,De=xe.value,He=xe.inputValue,le=xe.optionLabelProp,Pe=V==="multiple"||V==="tags",rt=se!==void 0?se:Pe||V==="combobox",$e=Me||p(Re);if(Object(S.a)(V!=="tags"||$e.every(function(_e){return!_e.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),V==="tags"||V==="combobox"){var ht=$e.some(function(_e){return _e.options?_e.options.some(function(Ke){return typeof("value"in Ke?Ke.value:Ke.key)=="number"}):typeof("value"in _e?_e.value:_e.key)=="number"});Object(S.a)(!ht,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(S.a)(V!=="combobox"||!le,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(S.a)(V==="combobox"||!Ne,"`backfill` only works with `combobox` mode."),Object(S.a)(V==="combobox"||!$,"`getInputElement` only work with `combobox` mode."),Object(S.b)(V!=="combobox"||!$||!we||!J,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Z&&!rt&&V!=="combobox"&&V!=="tags"&&Object(S.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(S.b)(!_||K,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),De!=null){var xt=Object(N.d)(De);Object(S.a)(!de||xt.every(function(_e){return Object(M.a)(_e)==="object"&&("key"in _e||"value"in _e)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(S.a)(!Pe||Array.isArray(De),"`value` should be array when `mode` is `multiple` or `tags`")}if(Re){var lt=null;Object(P.a)(Re).some(function(_e){if(!r.isValidElement(_e)||!_e.type)return!1;var Ke=_e.type;if(Ke.isSelectOption)return!1;if(Ke.isSelectOptGroup){var It=Object(P.a)(_e.props.children).every(function(Lt){return!r.isValidElement(Lt)||!_e.type||Lt.type.isSelectOption?!0:(lt=Lt.type,!1)});return!It}return lt=Ke,!0}),lt&&Object(S.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(lt.displayName||lt.name||lt,"`.")),Object(S.a)(He===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var A=ie,ne=Object(u.a)({prefixCls:"rc-select",components:{optionList:D},convertChildrenToData:p,flattenOptions:v.d,getLabeledValue:v.e,filterOptions:v.b,isValueDisabled:v.g,findValueOption:v.c,warningProps:A,fillOptionsWithMissingValue:v.a}),me=function(xe){Object(ce.a)(Me,xe);var V=Object(j.a)(Me);function Me(){var Re;return Object(C.a)(this,Me),Re=V.apply(this,arguments),Re.selectRef=r.createRef(),Re.focus=function(){Re.selectRef.current.focus()},Re.blur=function(){Re.selectRef.current.blur()},Re}return Object(y.a)(Me,[{key:"render",value:function(){return r.createElement(ne,Object.assign({ref:this.selectRef},this.props))}}]),Me}(r.Component);me.Option=W,me.OptGroup=he;var Se=me,Ye=ee.c=Se},NvD2:function(et,ee,o){"use strict";o.d(ee,"a",function(){return h});var C=o("Kwbf");function y(F,q){var R=new Set;return F.forEach(function(ge){q.has(ge)||R.add(ge)}),R}function ce(F){var q=F||{},R=q.disabled,ge=q.disableCheckbox,Q=q.checkable;return!!(R||ge)||Q===!1}function j(F,q,R,ge){for(var Q=new Set(F),pe=new Set,oe=0;oe<=R;oe+=1){var H=q.get(oe)||new Set;H.forEach(function(D){var k=D.key,W=D.node,I=D.children,he=I===void 0?[]:I;Q.has(k)&&!ge(W)&&he.filter(function(T){return!ge(T.node)}).forEach(function(T){Q.add(T.key)})})}for(var O=new Set,g=R;g>=0;g-=1){var z=q.get(g)||new Set;z.forEach(function(D){var k=D.parent,W=D.node;if(ge(W)||!D.parent||O.has(D.parent.key))return;if(ge(D.parent.node)){O.add(k.key);return}var I=!0,he=!1;(k.children||[]).filter(function(T){return!ge(T.node)}).forEach(function(T){var P=T.key,w=Q.has(P);I&&!w&&(I=!1),!he&&(w||pe.has(P))&&(he=!0)}),I&&Q.add(k.key),he&&pe.add(k.key),O.add(k.key)})}return{checkedKeys:Array.from(Q),halfCheckedKeys:Array.from(y(pe,Q))}}function r(F,q,R,ge,Q){for(var pe=new Set(F),oe=new Set(q),H=0;H<=ge;H+=1){var O=R.get(H)||new Set;O.forEach(function(k){var W=k.key,I=k.node,he=k.children,T=he===void 0?[]:he;!pe.has(W)&&!oe.has(W)&&!Q(I)&&T.filter(function(P){return!Q(P.node)}).forEach(function(P){pe.delete(P.key)})})}oe=new Set;for(var g=new Set,z=ge;z>=0;z-=1){var D=R.get(z)||new Set;D.forEach(function(k){var W=k.parent,I=k.node;if(Q(I)||!k.parent||g.has(k.parent.key))return;if(Q(k.parent.node)){g.add(W.key);return}var he=!0,T=!1;(W.children||[]).filter(function(P){return!Q(P.node)}).forEach(function(P){var w=P.key,p=pe.has(w);he&&!p&&(he=!1),!T&&(p||oe.has(w))&&(T=!0)}),he||pe.delete(W.key),T&&oe.add(W.key),g.add(W.key)})}return{checkedKeys:Array.from(pe),halfCheckedKeys:Array.from(y(oe,pe))}}function h(F,q,R,ge){var Q=[],pe;ge?pe=ge:pe=ce;var oe=new Set(F.filter(function(z){var D=!!R[z];return D||Q.push(z),D})),H=new Map,O=0;Object.keys(R).forEach(function(z){var D=R[z],k=D.level,W=H.get(k);W||(W=new Set,H.set(k,W)),W.add(D),O=Math.max(O,k)}),Object(C.a)(!Q.length,"Tree missing follow keys: ".concat(Q.slice(0,100).map(function(z){return"'".concat(z,"'")}).join(", ")));var g;return q===!0?g=j(oe,H,O,pe):g=r(oe,q.halfCheckedKeys,H,O,pe),g}},OZM5:function(et,ee,o){"use strict";o.d(ee,"b",function(){return ge}),o.d(ee,"a",function(){return Q}),o.d(ee,"k",function(){return pe}),o.d(ee,"h",function(){return oe}),o.d(ee,"i",function(){return H}),o.d(ee,"g",function(){return O}),o.d(ee,"c",function(){return g}),o.d(ee,"d",function(){return z}),o.d(ee,"j",function(){return W}),o.d(ee,"e",function(){return I}),o.d(ee,"f",function(){return he});var C=o("KQm4"),y=o("U8pU"),ce=o("Ff2n"),j=o("q1tI"),r=o.n(j),h=o("Kwbf"),F=o("WaYH"),q=.25,R=2;function ge(T,P){var w=T.slice(),p=w.indexOf(P);return p>=0&&w.splice(p,1),w}function Q(T,P){var w=T.slice();return w.indexOf(P)===-1&&w.push(P),w}function pe(T){return T.split("-")}function oe(T,P){return"".concat(T,"-").concat(P)}function H(T){return T&&T.type&&T.type.isTreeNode}function O(T,P){var w=[T],p=P[T];function v(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];u.forEach(function(M){var S=M.key,N=M.children;w.push(S),v(N)})}return v(p.children),w}function g(T,P){var w=T.clientY,p=P.selectHandle.getBoundingClientRect(),v=p.top,u=p.bottom,M=p.height,S=Math.max(M*q,R);return w<=v+S?-1:w>=u-S?1:0}function z(T,P){if(!T)return;var w=P.multiple;return w?T.slice():T.length?[T[0]]:T}var D=function(P){return P};function k(T,P){if(!T)return[];var w=P||{},p=w.processProps,v=p===void 0?D:p,u=Array.isArray(T)?T:[T];return u.map(function(M){var S=M.children,N=Object(ce.a)(M,["children"]),ie=k(S,P);return r.a.createElement(F.a,Object.assign({},v(N)),ie)})}function W(T){if(!T)return null;var P;if(Array.isArray(T))P={checkedKeys:T,halfCheckedKeys:void 0};else if(Object(y.a)(T)==="object")P={checkedKeys:T.checked||void 0,halfCheckedKeys:T.halfChecked||void 0};else return Object(h.a)(!1,"`checkedKeys` is not an array or an object"),null;return P}function I(T,P){var w=new Set;function p(v){if(w.has(v))return;var u=P[v];if(!u)return;w.add(v);var M=u.parent,S=u.node;if(S.disabled)return;M&&p(M.key)}return(T||[]).forEach(function(v){p(v)}),Object(C.a)(w)}function he(T){var P={};return Object.keys(T).forEach(function(w){(w.startsWith("data-")||w.startsWith("aria-"))&&(P[w]=T[w])}),P}},"SA+Z":function(et,ee,o){var C=o("wTVA"),y=o("EbDI"),ce=o("ZhPi"),j=o("wkBT");function r(h){return C(h)||y(h)||ce(h)||j()}et.exports=r,et.exports.__esModule=!0,et.exports.default=et.exports},WaYH:function(et,ee,o){"use strict";var C=o("rePB"),y=o("Ff2n"),ce=o("VTBJ"),j=o("1OyB"),r=o("vuIU"),h=o("JX7q"),F=o("Ji7U"),q=o("LK+K"),R=o("q1tI"),ge=o("TSYQ"),Q=o.n(ge),pe=o("sboe"),oe=o("OZM5"),H=function(P){var w=P.prefixCls,p=P.level,v=P.isStart,u=P.isEnd;if(!p)return null;for(var M="".concat(w,"-indent-unit"),S=[],N=0;N=0||N.relatedTarget.className.indexOf("".concat(me,"-next"))>=0))return;v.setState({goInputText:""}),ne(v.getValidValue())},v.go=function(N){var ie=v.state.goInputText;if(ie==="")return;(N.keyCode===H.ENTER||N.type==="click")&&(v.setState({goInputText:""}),v.props.quickGo(v.getValidValue()))},v}return Object(r.a)(p,[{key:"getValidValue",value:function(){var u=this.state,M=u.goInputText,T=u.current;return!M||isNaN(M)?T:Number(M)}},{key:"getPageSizeOptions",value:function(){var u=this.props,M=u.pageSize,T=u.pageSizeOptions;return T.some(function(N){return N.toString()===M.toString()})?T:T.concat([M.toString()]).sort(function(N,ie){var A=isNaN(Number(N))?0:Number(N),ne=isNaN(Number(ie))?0:Number(ie);return A-ne})}},{key:"render",value:function(){var u=this,M=this.props,T=M.pageSize,N=M.locale,ie=M.rootPrefixCls,A=M.changeSize,ne=M.quickGo,me=M.goButton,Te=M.selectComponentClass,Ye=M.buildOptionText,xe=M.selectPrefixCls,V=M.disabled,Me=this.state.goInputText,Re="".concat(ie,"-options"),Ne=Te,we=null,J=null,$=null;if(!A&&!ne)return null;var se=this.getPageSizeOptions();if(A&&Ne){var Z=se.map(function(_,K){return R.a.createElement(Ne.Option,{key:K,value:_.toString()},(Ye||u.buildOptionText)(_))});we=R.a.createElement(Ne,{disabled:V,prefixCls:xe,showSearch:!1,className:"".concat(Re,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(T||se[0]).toString(),onChange:this.changeSize,getPopupContainer:function(K){return K.parentNode}},Z)}return ne&&(me&&($=typeof me=="boolean"?R.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:V,className:"".concat(Re,"-quick-jumper-button")},N.jump_to_confirm):R.a.createElement("span",{onClick:this.go,onKeyUp:this.go},me)),J=R.a.createElement("div",{className:"".concat(Re,"-quick-jumper")},N.jump_to,R.a.createElement("input",{disabled:V,type:"text",value:Me,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),N.page,$)),R.a.createElement("li",{className:"".concat(Re)},we,J)}}]),p}(R.a.Component);O.defaultProps={pageSizeOptions:["10","20","50","100"]};var g=O,z=o("N2Kk");function D(){}function k(P){return typeof P=="number"&&isFinite(P)&&Math.floor(P)===P}function W(P,w,p){return p}function I(P,w,p){var v=typeof P=="undefined"?w.pageSize:P;return Math.floor((p.total-1)/v)+1}var he=function(P){Object(h.a)(p,P);var w=Object(F.a)(p);function p(v){var u;Object(j.a)(this,p),u=w.call(this,v),u.getJumpPrevPage=function(){return Math.max(1,u.state.current-(u.props.showLessItems?3:5))},u.getJumpNextPage=function(){return Math.min(I(void 0,u.state,u.props),u.state.current+(u.props.showLessItems?3:5))},u.getItemIcon=function(A,ne){var me=u.props.prefixCls,Te=A||R.a.createElement("button",{type:"button","aria-label":ne,className:"".concat(me,"-item-link")});return typeof A=="function"&&(Te=R.a.createElement(A,Object(ce.a)({},u.props))),Te},u.savePaginationNode=function(A){u.paginationNode=A},u.isValid=function(A){return k(A)&&A!==u.state.current},u.shouldDisplayQuickJumper=function(){var A=u.props,ne=A.showQuickJumper,me=A.pageSize,Te=A.total;return Te<=me?!1:ne},u.handleKeyDown=function(A){(A.keyCode===H.ARROW_UP||A.keyCode===H.ARROW_DOWN)&&A.preventDefault()},u.handleKeyUp=function(A){var ne=u.getValidValue(A),me=u.state.currentInputValue;ne!==me&&u.setState({currentInputValue:ne}),A.keyCode===H.ENTER?u.handleChange(ne):A.keyCode===H.ARROW_UP?u.handleChange(ne-1):A.keyCode===H.ARROW_DOWN&&u.handleChange(ne+1)},u.changePageSize=function(A){var ne=u.state.current,me=I(A,u.state,u.props);ne=ne>me?me:ne,me===0&&(ne=u.state.current),typeof A=="number"&&("pageSize"in u.props||u.setState({pageSize:A}),"current"in u.props||u.setState({current:ne,currentInputValue:ne})),u.props.onShowSizeChange(ne,A),"onChange"in u.props&&u.props.onChange&&u.props.onChange(ne,A)},u.handleChange=function(A){var ne=u.props.disabled,me=A;if(u.isValid(me)&&!ne){var Te=I(void 0,u.state,u.props);me>Te?me=Te:me<1&&(me=1),"current"in u.props||u.setState({current:me,currentInputValue:me});var Ye=u.state.pageSize;return u.props.onChange(me,Ye),me}return u.state.current},u.prev=function(){u.hasPrev()&&u.handleChange(u.state.current-1)},u.next=function(){u.hasNext()&&u.handleChange(u.state.current+1)},u.jumpPrev=function(){u.handleChange(u.getJumpPrevPage())},u.jumpNext=function(){u.handleChange(u.getJumpNextPage())},u.hasPrev=function(){return u.state.current>1},u.hasNext=function(){return u.state.current2?me-2:0),Ye=2;Ye=T?ie=T:ie=Number(M),ie}},{key:"getShowSizeChanger",value:function(){var u=this.props,M=u.showSizeChanger,T=u.total,N=u.totalBoundaryShowSizeChanger;return typeof M!="undefined"?M:T>N}},{key:"renderPrev",value:function(u){var M=this.props,T=M.prevIcon,N=M.itemRender,ie=N(u,"prev",this.getItemIcon(T,"prev page")),A=!this.hasPrev();return Object(q.isValidElement)(ie)?Object(q.cloneElement)(ie,{disabled:A}):ie}},{key:"renderNext",value:function(u){var M=this.props,T=M.nextIcon,N=M.itemRender,ie=N(u,"next",this.getItemIcon(T,"next page")),A=!this.hasNext();return Object(q.isValidElement)(ie)?Object(q.cloneElement)(ie,{disabled:A}):ie}},{key:"render",value:function(){var u=this,M=this.props,T=M.prefixCls,N=M.className,ie=M.style,A=M.disabled,ne=M.hideOnSinglePage,me=M.total,Te=M.locale,Ye=M.showQuickJumper,xe=M.showLessItems,V=M.showTitle,Me=M.showTotal,Re=M.simple,Ne=M.itemRender,we=M.showPrevNextJumpers,J=M.jumpPrevIcon,$=M.jumpNextIcon,se=M.selectComponentClass,Z=M.selectPrefixCls,_=M.pageSizeOptions,K=this.state,de=K.current,De=K.pageSize,He=K.currentInputValue;if(ne===!0&&me<=De)return null;var le=I(void 0,this.state,this.props),Pe=[],rt=null,$e=null,ht=null,xt=null,lt=null,_e=Ye&&Ye.goButton,Ke=xe?1:2,It=de-1>0?de-1:0,Lt=de+1=Ke*2&&de!==1+2&&(Pe[0]=Object(q.cloneElement)(Pe[0],{className:"".concat(T,"-item-after-jump-prev")}),Pe.unshift(rt)),le-de>=Ke*2&&de!==le-2&&(Pe[Pe.length-1]=Object(q.cloneElement)(Pe[Pe.length-1],{className:"".concat(T,"-item-before-jump-next")}),Pe.push($e)),X!==1&&Pe.unshift(ht),ue!==le&&Pe.push(xt)}var ae=null;Me&&(ae=R.a.createElement("li",{className:"".concat(T,"-total-text")},Me(me,[me===0?0:(de-1)*De+1,de*De>me?me:de*De])));var G=!this.hasPrev()||!le,te=!this.hasNext()||!le;return R.a.createElement("ul",Object(C.a)({className:Q()(T,N,Object(y.a)({},"".concat(T,"-disabled"),A)),style:ie,unselectable:"unselectable",ref:this.savePaginationNode},kt),ae,R.a.createElement("li",{title:V?Te.prev_page:null,onClick:this.prev,tabIndex:G?null:0,onKeyPress:this.runIfEnterPrev,className:Q()("".concat(T,"-prev"),Object(y.a)({},"".concat(T,"-disabled"),G)),"aria-disabled":G},this.renderPrev(It)),Pe,R.a.createElement("li",{title:V?Te.next_page:null,onClick:this.next,tabIndex:te?null:0,onKeyPress:this.runIfEnterNext,className:Q()("".concat(T,"-next"),Object(y.a)({},"".concat(T,"-disabled"),te)),"aria-disabled":te},this.renderNext(Lt)),R.a.createElement(g,{disabled:A,locale:Te,rootPrefixCls:T,selectComponentClass:se,selectPrefixCls:Z,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:de,pageSize:De,pageSizeOptions:_,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:_e}))}}],[{key:"getDerivedStateFromProps",value:function(u,M){var T={};if("current"in u&&(T.current=u.current,u.current!==M.current&&(T.currentInputValue=T.current)),"pageSize"in u&&u.pageSize!==M.pageSize){var N=M.current,ie=I(u.pageSize,M,u);N=N>ie?ie:N,"current"in u||(T.current=N,T.currentInputValue=N),T.pageSize=u.pageSize}return T}}]),p}(R.a.Component);he.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:D,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:D,locale:z.a,style:{},itemRender:W,totalBoundaryShowSizeChanger:50};var S=he},"6RRn":function(et,ee,o){"use strict";var C=o("wCXF"),y=o("n6Qo");o.d(ee,"b",function(){return y.a});var ce=o("IBYe"),j=o("6eGT"),r=o("hW8S");o.d(ee,"a",function(){return r.a}),ee.c=C.b},"6eGT":function(et,ee,o){"use strict";function C(y){return null}ee.a=C},"815F":function(et,ee,o){"use strict";o.d(ee,"e",function(){return F}),o.d(ee,"c",function(){return R}),o.d(ee,"d",function(){return ge}),o.d(ee,"a",function(){return pe}),o.d(ee,"f",function(){return oe}),o.d(ee,"b",function(){return H});var C=o("KQm4"),y=o("VTBJ"),ce=o("Ff2n"),j=o("Zm9Q"),r=o("Kwbf"),h=o("OZM5");function F(O,g){return O!=null?O:g}function q(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],g=new Map;function z(D){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(D||[]).forEach(function(W){var I=W.key,he=W.children;Object(r.a)(I!=null,"Tree node must have a certain key: [".concat(k).concat(I,"]"));var S=String(I);Object(r.a)(!g.has(S)||I===null||I===void 0,"Same 'key' exist in the Tree: ".concat(S)),g.set(S,!0),z(he,"".concat(k).concat(S," > "))})}z(O)}function R(O){function g(z){var D=Object(j.a)(z);return D.map(function(k){if(!Object(h.i)(k))return Object(r.a)(!k,"Tree/TreeNode can only accept TreeNode as children."),null;var W=k.key,I=k.props,he=I.children,S=Object(ce.a)(I,["children"]),P=Object(y.a)({key:W},S),w=g(he);return w.length&&(P.children=w),P}).filter(function(k){return k})}return g(O)}function ge(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],z=new Set(g===!0?[]:g),D=[];function k(W){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return W.map(function(he,S){var P=Object(h.h)(I?I.pos:"0",S),w=F(he.key,P),p=Object(y.a)(Object(y.a)({},he),{},{parent:I,pos:P,children:null,data:he,isStart:[].concat(Object(C.a)(I?I.isStart:[]),[S===0]),isEnd:[].concat(Object(C.a)(I?I.isEnd:[]),[S===W.length-1])});return D.push(p),g===!0||z.has(w)?p.children=k(he.children||[],p):p.children=[],p})}return k(O),D}function Q(O,g,z){var D;z?typeof z=="string"?D=function(I){return I[z]}:typeof z=="function"&&(D=function(I){return z(I)}):D=function(I,he){return F(I.key,he)};function k(W,I,he){var S=W?W.children:O,P=W?Object(h.h)(he.pos,I):"0";if(W){var w=D(W,P),p={node:W,index:I,pos:P,key:w,parentPos:he.node?he.pos:null,level:he.level+1};g(p)}S&&S.forEach(function(v,u){k(v,u,{node:W,pos:P,level:he?he.level+1:-1})})}k(null)}function pe(O){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z=g.initWrapper,D=g.processEntity,k=g.onProcessFinished,W=arguments.length>2?arguments[2]:void 0,I={},he={},S={posEntities:I,keyEntities:he};return z&&(S=z(S)||S),Q(O,function(P){var w=P.node,p=P.index,v=P.pos,u=P.key,M=P.parentPos,T=P.level,N={node:w,index:p,key:u,pos:v,level:T},ie=F(u,v);I[v]=N,he[ie]=N,N.parent=I[M],N.parent&&(N.parent.children=N.parent.children||[],N.parent.children.push(N)),D&&D(N,S)},W),k&&k(S),S}function oe(O,g){var z=g.expandedKeys,D=g.selectedKeys,k=g.loadedKeys,W=g.loadingKeys,I=g.checkedKeys,he=g.halfCheckedKeys,S=g.dragOverNodeKey,P=g.dropPosition,w=g.keyEntities,p=w[O],v={eventKey:O,expanded:z.indexOf(O)!==-1,selected:D.indexOf(O)!==-1,loaded:k.indexOf(O)!==-1,loading:W.indexOf(O)!==-1,checked:I.indexOf(O)!==-1,halfChecked:he.indexOf(O)!==-1,pos:String(p?p.pos:""),dragOver:S===O&&P===0,dragOverGapTop:S===O&&P===-1,dragOverGapBottom:S===O&&P===1};return v}function H(O){var g=O.data,z=O.expanded,D=O.selected,k=O.checked,W=O.loaded,I=O.loading,he=O.halfChecked,S=O.dragOver,P=O.dragOverGapTop,w=O.dragOverGapBottom,p=O.pos,v=O.active,u=Object(y.a)(Object(y.a)({},g),{},{expanded:z,selected:D,checked:k,loaded:W,loading:I,halfChecked:he,dragOver:S,dragOverGapTop:P,dragOverGapBottom:w,pos:p,active:v});return"props"in u||Object.defineProperty(u,"props",{get:function(){return Object(r.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),O}}),u}},E9nw:function(et,ee){et.exports=function(){var o=document.getSelection();if(!o.rangeCount)return function(){};for(var C=document.activeElement,y=[],ce=0;ce1&&arguments[1]!==void 0?arguments[1]:1,te=Ke.length,ye=0;ye1&&arguments[1]!==void 0?arguments[1]:!1;return Object(P.a)(xe).map(function(Me,Re){if(!r.isValidElement(Me)||!Me.type)return null;var Ne=Me.type.isSelectOptGroup,we=Me.key,J=Me.props,$=J.children,se=Object(F.a)(J,["children"]);return V||!Ne?w(Me):Object(S.a)(Object(S.a)({key:"__RC_SELECT_GRP__".concat(we===null?Re:we,"__"),label:we},se),{},{options:p($)})}).filter(function(Me){return Me})}var v=o("2Qr1"),u=o("qNPg"),M=o("U8pU"),T=o("Kwbf"),N=o("WKfj");function ie(xe){var V=xe.mode,Me=xe.options,Re=xe.children,Ne=xe.backfill,we=xe.allowClear,J=xe.placeholder,$=xe.getInputElement,se=xe.showSearch,Z=xe.onSearch,_=xe.defaultOpen,K=xe.autoFocus,de=xe.labelInValue,De=xe.value,He=xe.inputValue,le=xe.optionLabelProp,Pe=V==="multiple"||V==="tags",rt=se!==void 0?se:Pe||V==="combobox",$e=Me||p(Re);if(Object(T.a)(V!=="tags"||$e.every(function(_e){return!_e.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),V==="tags"||V==="combobox"){var ht=$e.some(function(_e){return _e.options?_e.options.some(function(Ke){return typeof("value"in Ke?Ke.value:Ke.key)=="number"}):typeof("value"in _e?_e.value:_e.key)=="number"});Object(T.a)(!ht,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(T.a)(V!=="combobox"||!le,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(T.a)(V==="combobox"||!Ne,"`backfill` only works with `combobox` mode."),Object(T.a)(V==="combobox"||!$,"`getInputElement` only work with `combobox` mode."),Object(T.b)(V!=="combobox"||!$||!we||!J,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Z&&!rt&&V!=="combobox"&&V!=="tags"&&Object(T.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(T.b)(!_||K,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),De!=null){var xt=Object(N.d)(De);Object(T.a)(!de||xt.every(function(_e){return Object(M.a)(_e)==="object"&&("key"in _e||"value"in _e)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(T.a)(!Pe||Array.isArray(De),"`value` should be array when `mode` is `multiple` or `tags`")}if(Re){var lt=null;Object(P.a)(Re).some(function(_e){if(!r.isValidElement(_e)||!_e.type)return!1;var Ke=_e.type;if(Ke.isSelectOption)return!1;if(Ke.isSelectOptGroup){var It=Object(P.a)(_e.props.children).every(function(Lt){return!r.isValidElement(Lt)||!_e.type||Lt.type.isSelectOption?!0:(lt=Lt.type,!1)});return!It}return lt=Ke,!0}),lt&&Object(T.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(lt.displayName||lt.name||lt,"`.")),Object(T.a)(He===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var A=ie,ne=Object(u.a)({prefixCls:"rc-select",components:{optionList:D},convertChildrenToData:p,flattenOptions:v.d,getLabeledValue:v.e,filterOptions:v.b,isValueDisabled:v.g,findValueOption:v.c,warningProps:A,fillOptionsWithMissingValue:v.a}),me=function(xe){Object(ce.a)(Me,xe);var V=Object(j.a)(Me);function Me(){var Re;return Object(C.a)(this,Me),Re=V.apply(this,arguments),Re.selectRef=r.createRef(),Re.focus=function(){Re.selectRef.current.focus()},Re.blur=function(){Re.selectRef.current.blur()},Re}return Object(y.a)(Me,[{key:"render",value:function(){return r.createElement(ne,Object.assign({ref:this.selectRef},this.props))}}]),Me}(r.Component);me.Option=W,me.OptGroup=he;var Te=me,Ye=ee.c=Te},NvD2:function(et,ee,o){"use strict";o.d(ee,"a",function(){return h});var C=o("Kwbf");function y(F,q){var R=new Set;return F.forEach(function(ge){q.has(ge)||R.add(ge)}),R}function ce(F){var q=F||{},R=q.disabled,ge=q.disableCheckbox,Q=q.checkable;return!!(R||ge)||Q===!1}function j(F,q,R,ge){for(var Q=new Set(F),pe=new Set,oe=0;oe<=R;oe+=1){var H=q.get(oe)||new Set;H.forEach(function(D){var k=D.key,W=D.node,I=D.children,he=I===void 0?[]:I;Q.has(k)&&!ge(W)&&he.filter(function(S){return!ge(S.node)}).forEach(function(S){Q.add(S.key)})})}for(var O=new Set,g=R;g>=0;g-=1){var z=q.get(g)||new Set;z.forEach(function(D){var k=D.parent,W=D.node;if(ge(W)||!D.parent||O.has(D.parent.key))return;if(ge(D.parent.node)){O.add(k.key);return}var I=!0,he=!1;(k.children||[]).filter(function(S){return!ge(S.node)}).forEach(function(S){var P=S.key,w=Q.has(P);I&&!w&&(I=!1),!he&&(w||pe.has(P))&&(he=!0)}),I&&Q.add(k.key),he&&pe.add(k.key),O.add(k.key)})}return{checkedKeys:Array.from(Q),halfCheckedKeys:Array.from(y(pe,Q))}}function r(F,q,R,ge,Q){for(var pe=new Set(F),oe=new Set(q),H=0;H<=ge;H+=1){var O=R.get(H)||new Set;O.forEach(function(k){var W=k.key,I=k.node,he=k.children,S=he===void 0?[]:he;!pe.has(W)&&!oe.has(W)&&!Q(I)&&S.filter(function(P){return!Q(P.node)}).forEach(function(P){pe.delete(P.key)})})}oe=new Set;for(var g=new Set,z=ge;z>=0;z-=1){var D=R.get(z)||new Set;D.forEach(function(k){var W=k.parent,I=k.node;if(Q(I)||!k.parent||g.has(k.parent.key))return;if(Q(k.parent.node)){g.add(W.key);return}var he=!0,S=!1;(W.children||[]).filter(function(P){return!Q(P.node)}).forEach(function(P){var w=P.key,p=pe.has(w);he&&!p&&(he=!1),!S&&(p||oe.has(w))&&(S=!0)}),he||pe.delete(W.key),S&&oe.add(W.key),g.add(W.key)})}return{checkedKeys:Array.from(pe),halfCheckedKeys:Array.from(y(oe,pe))}}function h(F,q,R,ge){var Q=[],pe;ge?pe=ge:pe=ce;var oe=new Set(F.filter(function(z){var D=!!R[z];return D||Q.push(z),D})),H=new Map,O=0;Object.keys(R).forEach(function(z){var D=R[z],k=D.level,W=H.get(k);W||(W=new Set,H.set(k,W)),W.add(D),O=Math.max(O,k)}),Object(C.a)(!Q.length,"Tree missing follow keys: ".concat(Q.slice(0,100).map(function(z){return"'".concat(z,"'")}).join(", ")));var g;return q===!0?g=j(oe,H,O,pe):g=r(oe,q.halfCheckedKeys,H,O,pe),g}},OZM5:function(et,ee,o){"use strict";o.d(ee,"b",function(){return ge}),o.d(ee,"a",function(){return Q}),o.d(ee,"k",function(){return pe}),o.d(ee,"h",function(){return oe}),o.d(ee,"i",function(){return H}),o.d(ee,"g",function(){return O}),o.d(ee,"c",function(){return g}),o.d(ee,"d",function(){return z}),o.d(ee,"j",function(){return W}),o.d(ee,"e",function(){return I}),o.d(ee,"f",function(){return he});var C=o("KQm4"),y=o("U8pU"),ce=o("Ff2n"),j=o("q1tI"),r=o.n(j),h=o("Kwbf"),F=o("WaYH"),q=.25,R=2;function ge(S,P){var w=S.slice(),p=w.indexOf(P);return p>=0&&w.splice(p,1),w}function Q(S,P){var w=S.slice();return w.indexOf(P)===-1&&w.push(P),w}function pe(S){return S.split("-")}function oe(S,P){return"".concat(S,"-").concat(P)}function H(S){return S&&S.type&&S.type.isTreeNode}function O(S,P){var w=[S],p=P[S];function v(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];u.forEach(function(M){var T=M.key,N=M.children;w.push(T),v(N)})}return v(p.children),w}function g(S,P){var w=S.clientY,p=P.selectHandle.getBoundingClientRect(),v=p.top,u=p.bottom,M=p.height,T=Math.max(M*q,R);return w<=v+T?-1:w>=u-T?1:0}function z(S,P){if(!S)return;var w=P.multiple;return w?S.slice():S.length?[S[0]]:S}var D=function(P){return P};function k(S,P){if(!S)return[];var w=P||{},p=w.processProps,v=p===void 0?D:p,u=Array.isArray(S)?S:[S];return u.map(function(M){var T=M.children,N=Object(ce.a)(M,["children"]),ie=k(T,P);return r.a.createElement(F.a,Object.assign({},v(N)),ie)})}function W(S){if(!S)return null;var P;if(Array.isArray(S))P={checkedKeys:S,halfCheckedKeys:void 0};else if(Object(y.a)(S)==="object")P={checkedKeys:S.checked||void 0,halfCheckedKeys:S.halfChecked||void 0};else return Object(h.a)(!1,"`checkedKeys` is not an array or an object"),null;return P}function I(S,P){var w=new Set;function p(v){if(w.has(v))return;var u=P[v];if(!u)return;w.add(v);var M=u.parent,T=u.node;if(T.disabled)return;M&&p(M.key)}return(S||[]).forEach(function(v){p(v)}),Object(C.a)(w)}function he(S){var P={};return Object.keys(S).forEach(function(w){(w.startsWith("data-")||w.startsWith("aria-"))&&(P[w]=S[w])}),P}},"SA+Z":function(et,ee,o){var C=o("wTVA"),y=o("EbDI"),ce=o("ZhPi"),j=o("wkBT");function r(h){return C(h)||y(h)||ce(h)||j()}et.exports=r,et.exports.__esModule=!0,et.exports.default=et.exports},WaYH:function(et,ee,o){"use strict";var C=o("rePB"),y=o("Ff2n"),ce=o("VTBJ"),j=o("1OyB"),r=o("vuIU"),h=o("JX7q"),F=o("Ji7U"),q=o("LK+K"),R=o("q1tI"),ge=o("TSYQ"),Q=o.n(ge),pe=o("sboe"),oe=o("OZM5"),H=function(P){var w=P.prefixCls,p=P.level,v=P.isStart,u=P.isEnd;if(!p)return null;for(var M="".concat(w,"-indent-unit"),T=[],N=0;N1&&arguments[1]!==void 0?arguments[1]:!1,se=J.getAttribute("id")||J.getAttribute("data-reactid")||J.getAttribute("name");if($&&A[se])return A[se];var Z=window.getComputedStyle(J),_=Z.getPropertyValue("box-sizing")||Z.getPropertyValue("-moz-box-sizing")||Z.getPropertyValue("-webkit-box-sizing"),K=parseFloat(Z.getPropertyValue("padding-bottom"))+parseFloat(Z.getPropertyValue("padding-top")),de=parseFloat(Z.getPropertyValue("border-bottom-width"))+parseFloat(Z.getPropertyValue("border-top-width")),De=ie.map(function(le){return"".concat(le,":").concat(Z.getPropertyValue(le))}).join(";"),He={sizingStyle:De,paddingSize:K,borderSize:de,boxSizing:_};return $&&se&&(A[se]=He),He}function Se(J){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ne||(ne=document.createElement("textarea"),ne.setAttribute("tab-index","-1"),ne.setAttribute("aria-hidden","true"),document.body.appendChild(ne)),J.getAttribute("wrap")?ne.setAttribute("wrap",J.getAttribute("wrap")):ne.removeAttribute("wrap");var _=me(J,$),K=_.paddingSize,de=_.borderSize,De=_.boxSizing,He=_.sizingStyle;ne.setAttribute("style","".concat(He,";").concat(N)),ne.value=J.value||J.placeholder||"";var le=Number.MIN_SAFE_INTEGER,Pe=Number.MAX_SAFE_INTEGER,rt=ne.scrollHeight,$e;if(De==="border-box"?rt+=de:De==="content-box"&&(rt-=K),se!==null||Z!==null){ne.value=" ";var ht=ne.scrollHeight-K;se!==null&&(le=ht*se,De==="border-box"&&(le=le+K+de),rt=Math.max(le,rt)),Z!==null&&(Pe=ht*Z,De==="border-box"&&(Pe=Pe+K+de),$e=rt>Pe?"":"hidden",rt=Math.min(Pe,rt))}return{height:rt,minHeight:le,maxHeight:Pe,overflowY:$e,resize:"none"}}var Ye=o("Gytx"),xe=o.n(Ye),V;(function(J){J[J.NONE=0]="NONE",J[J.RESIZING=1]="RESIZING",J[J.RESIZED=2]="RESIZED"})(V||(V={}));var Me=function(J){Object(j.a)(se,J);var $=Object(r.a)(se);function se(Z){var _;return Object(y.a)(this,se),_=$.call(this,Z),_.nextFrameActionId=void 0,_.resizeFrameId=void 0,_.textArea=void 0,_.saveTextArea=function(K){_.textArea=K},_.handleResize=function(K){var de=_.state.resizeStatus,De=_.props,He=De.autoSize,le=De.onResize;if(de!==V.NONE)return;typeof le=="function"&&le(K),He&&_.resizeOnNextFrame()},_.resizeOnNextFrame=function(){cancelAnimationFrame(_.nextFrameActionId),_.nextFrameActionId=requestAnimationFrame(_.resizeTextarea)},_.resizeTextarea=function(){var K=_.props.autoSize;if(!K||!_.textArea)return;var de=K.minRows,De=K.maxRows,He=Se(_.textArea,!1,de,De);_.setState({textareaStyles:He,resizeStatus:V.RESIZING},function(){cancelAnimationFrame(_.resizeFrameId),_.resizeFrameId=requestAnimationFrame(function(){_.setState({resizeStatus:V.RESIZED},function(){_.resizeFrameId=requestAnimationFrame(function(){_.setState({resizeStatus:V.NONE}),_.fixFirefoxAutoScroll()})})})})},_.renderTextArea=function(){var K=_.props,de=K.prefixCls,De=de===void 0?"rc-textarea":de,He=K.autoSize,le=K.onResize,Pe=K.className,rt=K.disabled,$e=_.state,ht=$e.textareaStyles,xt=$e.resizeStatus,lt=Object(u.a)(_.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),_e=S()(De,Pe,Object(q.a)({},"".concat(De,"-disabled"),rt));"value"in lt&&(lt.value=lt.value||"");var Ke=Object(F.a)(Object(F.a)(Object(F.a)({},_.props.style),ht),xt===V.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return h.createElement(v,{onResize:_.handleResize,disabled:!(He||le)},h.createElement("textarea",Object(C.a)({},lt,{className:_e,style:Ke,ref:_.saveTextArea})))},_.state={textareaStyles:{},resizeStatus:V.NONE},_}return Object(ce.a)(se,[{key:"componentDidUpdate",value:function(_){(_.value!==this.props.value||!xe()(_.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var _=this.textArea.selectionStart,K=this.textArea.selectionEnd;this.textArea.setSelectionRange(_,K)}}catch(de){}}},{key:"render",value:function(){return this.renderTextArea()}}]),se}(h.Component),Re=Me,Ne=function(J){Object(j.a)(se,J);var $=Object(r.a)(se);function se(Z){var _;Object(y.a)(this,se),_=$.call(this,Z),_.resizableTextArea=void 0,_.focus=function(){_.resizableTextArea.textArea.focus()},_.saveTextArea=function(de){_.resizableTextArea=de},_.handleChange=function(de){var De=_.props.onChange;_.setValue(de.target.value,function(){_.resizableTextArea.resizeTextarea()}),De&&De(de)},_.handleKeyDown=function(de){var De=_.props,He=De.onPressEnter,le=De.onKeyDown;de.keyCode===13&&He&&He(de),le&&le(de)};var K=typeof Z.value=="undefined"||Z.value===null?Z.defaultValue:Z.value;return _.state={value:K},_}return Object(ce.a)(se,[{key:"setValue",value:function(_,K){"value"in this.props||this.setState({value:_},K)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return h.createElement(Re,Object(C.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(_){return"value"in _?{value:_.value}:null}}]),se}(h.Component),we=ee.default=Ne},bT9E:function(et,ee,o){"use strict";o.d(ee,"a",function(){return y});var C=o("VTBJ");function y(ce,j){var r=Object(C.a)({},ce);return Array.isArray(j)&&j.forEach(function(h){delete r[h]}),r}},biw7:function(et,ee,o){"use strict";var C=o("q1tI"),y=o.n(C),ce=C.createContext(null);ee.a=ce},cVrb:function(et,ee,o){"use strict";o.r(ee);var C=o("DjyN"),y=o("NUBc"),ce=o("k1fw"),j=o("g9YV"),r=o("wCAj"),h=o("/zsF"),F=o("PArb"),q=o("+L6B"),R=o("2/Rp"),ge=o("9og8"),Q=o("tJVT"),pe=o("Znn+"),oe=o("ZTPi"),H=o("tU7J"),O=o("wFql"),g=o("WmNS"),z=o.n(g),D=o("q1tI"),k=o.n(D),W=o("9kvl"),I=o("ErOA"),he=o("wd/R"),T=o.n(he),P=o("xKgJ"),w=o("H84S"),p=o.n(w),v=O.a.Paragraph,u=oe.a.TabPane,M=function(N){var ie=N.dispatch,A=Object(D.useState)({limit:10,page:1,tab:"public"}),ne=Object(Q.a)(A,2),me=ne[0],Se=ne[1],Ye=Object(D.useState)([]),xe=Object(Q.a)(Ye,2),V=xe[0],Me=xe[1];Object(D.useEffect)(function(){Re()},[]);function Re(){return Ne.apply(this,arguments)}function Ne(){return Ne=Object(ge.a)(z.a.mark(function J(){var $;return z.a.wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return Z.next=2,Object(I.a)("/api/sci/projects/sci_mirror_repositories.json",{method:"get",params:me});case 2:$=Z.sent,Me($);case 4:case"end":return Z.stop()}},J)})),Ne.apply(this,arguments)}var we=function($,se){if((V==null?void 0:V.my_sci_projects_num)>=10&&!Object(P.v)()){ie({type:"innovation/openSimpleModal",payload:{title:"\u9879\u76EE\u6570\u91CF\u8FBE\u5230\u4E0A\u9650",children:"\u6BCF\u4F4D\u7528\u6237\u6700\u591A\u53EA\u80FD\u521B\u5EFA10\u4E2A\u9879\u76EE\uFF0C\u4F60\u7684\u9879\u76EE\u6570\u91CF\u5DF2\u7ECF\u8FBE\u5230\u4E0A\u9650\u3002",footer:k.a.createElement(R.a,{onClick:function(){return ie({type:"innovation/closeSimpleModal"})},type:"primary"},"\u6211\u77E5\u9053\u4E86")}});return}W.d.push("/innovation/project/create?mirror_type=".concat($,"&mirror_repository_id=").concat(se,"&tab=public"))};return k.a.createElement("div",null,k.a.createElement("div",{className:p.a.header},k.a.createElement("span",{className:p.a.title},"\u516C\u5F00\u955C\u50CF\u5217\u8868")),k.a.createElement(F.a,null),k.a.createElement(r.a,{dataSource:V==null?void 0:V.sci_mirrors,columns:[{title:"\u5E8F\u53F7",dataIndex:"filename",key:"filename",render:function($,se,Z){return me.limit*(me.page-1)+Z+1}},{title:"\u955C\u50CF\u540D\u79F0",dataIndex:"name",width:"20%",ellipsis:!0,key:"name"},{title:"\u955C\u50CF\u7C7B\u578B",dataIndex:"mirror_type_cn",key:"mirror_type_cn",width:"10%",ellipsis:!0},{title:"\u955C\u50CF\u63CF\u8FF0",dataIndex:"description",key:"description",width:"20%",ellipsis:!0},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_at",key:"created_at",width:"10%",ellipsis:!0,render:function($){return T()($).format("YYYY-MM-DD HH:mm")}},{title:"\u521B\u5EFA\u8005",dataIndex:"user_name",key:"user_name",width:"10%",ellipsis:!0},{title:"\u64CD\u4F5C",dataIndex:"id",key:"id",width:"20%",ellipsis:!0,render:function($,se){var Z=se.mirror_type,_=se.mirror_repository_id;return k.a.createElement("div",{className:p.a.link,onClick:function(){return we(Z,_)}},"\u521B\u5EFA\u9879\u76EE")}}],pagination:!1}),k.a.createElement(y.a,{style:{textAlign:"center",marginTop:20},current:me.page,total:V==null?void 0:V.count,showSizeChanger:!1,pageSize:10,hideOnSinglePage:!0,onChange:function($){me.page=$,Se(Object(ce.a)({},me)),Re()}}))};ee.default=Object(W.a)(function(S){var N=S.innovation;return{innovation:N}})(M)},fyJ8:function(et,ee,o){"use strict";var C=o("rePB"),y=o("VTBJ"),ce=o("Ff2n"),j=o("U8pU"),r=o("q1tI"),h=o.n(r),F=o("TSYQ"),q=o.n(F),R=o("c+Xe"),ge=o("sR1s");function Q(g){return g&&Object(j.a)(g)==="object"&&!Array.isArray(g)&&!r.isValidElement(g)}function pe(g){return typeof g=="string"?!0:Object(R.c)(g)}function oe(g,z){var D,k=g.prefixCls,W=g.className,I=g.record,he=g.index,T=g.dataIndex,P=g.render,w=g.children,p=g.component,v=p===void 0?"td":p,u=g.colSpan,M=g.rowSpan,S=g.fixLeft,N=g.fixRight,ie=g.firstFixLeft,A=g.lastFixLeft,ne=g.firstFixRight,me=g.lastFixRight,Se=g.appendNode,Ye=g.additionalProps,xe=Ye===void 0?{}:Ye,V=g.ellipsis,Me=g.align,Re=g.rowType,Ne=g.isSticky,we="".concat(k,"-cell"),J,$;if(w)$=w;else{var se=Object(ge.b)(I,T);if($=se,P){var Z=P(se,I,he);Q(Z)?($=Z.children,J=Z.props):$=Z}}Object(j.a)($)==="object"&&!Array.isArray($)&&!r.isValidElement($)&&($=null),V&&(A||ne)&&($=r.createElement("span",{className:"".concat(we,"-content")},$));var _=J||{},K=_.colSpan,de=_.rowSpan,De=_.style,He=_.className,le=Object(ce.a)(_,["colSpan","rowSpan","style","className"]),Pe=K!==void 0?K:u,rt=de!==void 0?de:M;if(Pe===0||rt===0)return null;var $e={},ht=typeof S=="number",xt=typeof N=="number";ht&&($e.position="sticky",$e.left=S),xt&&($e.position="sticky",$e.right=N);var lt={};Me&&(lt.textAlign=Me);var _e,Ke=V===!0?{showTitle:!0}:V;Ke&&(Ke.showTitle||Re==="header")&&(typeof $=="string"||typeof $=="number"?_e=$.toString():r.isValidElement($)&&typeof $.props.children=="string"&&(_e=$.props.children));var It=Object(y.a)(Object(y.a)(Object(y.a)({title:_e},le),xe),{},{colSpan:Pe&&Pe!==1?Pe:null,rowSpan:rt&&rt!==1?rt:null,className:q()(we,W,(D={},Object(C.a)(D,"".concat(we,"-fix-left"),ht),Object(C.a)(D,"".concat(we,"-fix-left-first"),ie),Object(C.a)(D,"".concat(we,"-fix-left-last"),A),Object(C.a)(D,"".concat(we,"-fix-right"),xt),Object(C.a)(D,"".concat(we,"-fix-right-first"),ne),Object(C.a)(D,"".concat(we,"-fix-right-last"),me),Object(C.a)(D,"".concat(we,"-ellipsis"),V),Object(C.a)(D,"".concat(we,"-with-append"),Se),Object(C.a)(D,"".concat(we,"-fix-sticky"),(ht||xt)&&Ne),D),xe.className,He),style:Object(y.a)(Object(y.a)(Object(y.a)(Object(y.a)({},xe.style),lt),$e),De),ref:pe(v)?z:null});return r.createElement(v,Object.assign({},It),Se,$)}var H=r.forwardRef(oe);H.displayName="Cell";var O=r.memo(H,function(g,z){return z.shouldCellUpdate?!z.shouldCellUpdate(z.record,g.record):!1});ee.a=O},hW8S:function(et,ee,o){"use strict";o.d(ee,"a",function(){return j}),o.d(ee,"c",function(){return r}),o.d(ee,"b",function(){return h});var C=o("VTBJ"),y=o("Ff2n"),ce=o("Kwbf"),j="RC_TABLE_INTERNAL_COL_DEFINE";function r(F){var q=F.expandable,R=Object(y.a)(F,["expandable"]);return"expandable"in F?Object(C.a)(Object(C.a)({},R),q):R}function h(F){return Object.keys(F).reduce(function(q,R){return(R.substr(0,5)==="data-"||R.substr(0,5)==="aria-")&&(q[R]=F[R]),q},{})}},k3GJ:function(et,ee,o){"use strict";o.d(ee,"a",function(){return po});var C=o("rePB"),y=o("ODXe"),ce=o("Ff2n"),j=o("VTBJ"),r=o("q1tI"),h=o("TSYQ"),F=o.n(h),q=o("Zm9Q"),R=o("6cGi"),ge=o("KQm4"),Q=o("xEkU"),pe=o.n(Q),oe=o("t23M");function H(a){var c=Object(r.useRef)(),f=Object(r.useRef)(!1);function s(){for(var e=arguments.length,n=new Array(e),t=0;tb&&(L=b-U),Object(r.useMemo)(function(){if(!n.length)return[0,0];for(var Y=n.length,Te=Y,Be=0;Bed+L){Te=Be-1;break}}for(var Ve=0,Fe=Y-1;Fe>=0;Fe-=1){var ke=a.get(n[Fe].key)||I;if(ke[m]1&&arguments[1]!==void 0?arguments[1]:!1,s=c&&typeof c.getBoundingClientRect=="function"&&c.getBoundingClientRect().width;if(s){if(f){var e=getComputedStyle(c),n=e.marginLeft,t=e.marginRight;s+=+n.replace("px","")+ +t.replace("px","")}s=+s.toFixed(6)}return s||0},_e=function(c,f,s){c&&Object(ne.a)(c.style)==="object"&&(c.style[f]=s)},Ke=function(){return He.any},It=o("bdgK"),Lt=o("i8i4"),kt=o.n(Lt),jt=o("wgJM"),wt=o("l4aY"),cn=o("m+aA"),E=o("c+Xe"),B=o("zT1h"),X=o("QC+M");function ue(a,c,f){return f?a[0]===c[0]:a[0]===c[0]&&a[1]===c[1]}function be(a,c,f){var s=a[c]||{};return Object(j.a)(Object(j.a)({},s),f)}function re(a,c,f,s){for(var e=f.points,n=Object.keys(a),t=0;t1&&arguments[1]!==void 0?arguments[1]:2;c();var n=Object(jt.a)(function(){e<=1?s({isCanceled:function(){return n!==a.current}}):f(s,e-1)});a.current=n}return r.useEffect(function(){return function(){c()}},[]),[f,c]},wn=[gt,bt,st,We],An=!1,Fn=!0;function on(a){return a===st||a===We}var hn=function(a,c){var f=r.useState(Ft),s=Object(y.a)(f,2),e=s[0],n=s[1],t=yt(),i=Object(y.a)(t,2),l=i[0],m=i[1];function d(){n(gt)}return Vt(function(){if(e!==Ft&&e!==We){var b=wn.indexOf(e),x=wn[b+1],U=c(e);U===An?n(x):l(function(L){function Y(){if(L.isCanceled())return;n(x)}U===!0?Y():Promise.resolve(U).then(Y)})}},[a,e]),r.useEffect(function(){return function(){m()}},[]),[d,e]},On=function(a){var c=Object(r.useRef)(),f=Object(r.useRef)(a);f.current=a;var s=r.useCallback(function(t){f.current(t)},[]);function e(t){t&&(t.removeEventListener(Bt,s),t.removeEventListener(Ie,s))}function n(t){c.current&&c.current!==t&&e(c.current),t&&t!==c.current&&(t.addEventListener(Bt,s),t.addEventListener(Ie,s),c.current=t)}return r.useEffect(function(){return function(){e(c.current)}},[]),[n,e]};function xn(a,c,f,s){var e=s.motionEnter,n=e===void 0?!0:e,t=s.motionAppear,i=t===void 0?!0:t,l=s.motionLeave,m=l===void 0?!0:l,d=s.motionDeadline,b=s.motionLeaveImmediately,x=s.onAppearPrepare,U=s.onEnterPrepare,L=s.onLeavePrepare,Y=s.onAppearStart,Te=s.onEnterStart,Be=s.onLeaveStart,Le=s.onAppearActive,Ve=s.onEnterActive,Fe=s.onLeaveActive,ke=s.onAppearEnd,Ue=s.onEnterEnd,nt=s.onLeaveEnd,Xe=s.onVisibleChanged,Dt=Tt(),dt=Object(y.a)(Dt,2),Oe=dt[0],Ce=dt[1],Ge=Tt(vt),Qe=Object(y.a)(Ge,2),ve=Qe[0],at=Qe[1],Ct=Tt(null),ot=Object(y.a)(Ct,2),pt=ot[0],St=ot[1],Xt=Object(r.useRef)(!1),nn=Object(r.useRef)(null),_t=Object(r.useRef)(!1),an=Object(r.useRef)(null);function gn(){var Ot=f();return Ot||an.current}var sn=Object(r.useRef)(!1);function ln(Ot){var ct=gn();if(Ot&&!Ot.deadline&&Ot.target!==ct)return;var Gt;ve===Pt&&sn.current?Gt=ke==null?void 0:ke(ct,Ot):ve===Ut&&sn.current?Gt=Ue==null?void 0:Ue(ct,Ot):ve===it&&sn.current&&(Gt=nt==null?void 0:nt(ct,Ot)),Gt!==!1&&!_t.current&&(at(vt),St(null))}var At=On(ln),Zt=Object(y.a)(At,1),$t=Zt[0],zt=r.useMemo(function(){var Ot,ct,Gt;switch(ve){case"appear":return Ot={},Object(C.a)(Ot,gt,x),Object(C.a)(Ot,bt,Y),Object(C.a)(Ot,st,Le),Ot;case"enter":return ct={},Object(C.a)(ct,gt,U),Object(C.a)(ct,bt,Te),Object(C.a)(ct,st,Ve),ct;case"leave":return Gt={},Object(C.a)(Gt,gt,L),Object(C.a)(Gt,bt,Be),Object(C.a)(Gt,st,Fe),Gt;default:return{}}},[ve]),Dn=hn(ve,function(Ot){if(Ot===gt){var ct=zt[gt];return ct?ct(gn()):An}if(Et in zt){var Gt;St(((Gt=zt[Et])===null||Gt===void 0?void 0:Gt.call(zt,gn(),null))||null)}return Et===st&&($t(gn()),d>0&&(clearTimeout(nn.current),nn.current=setTimeout(function(){ln({deadline:!0})},d))),Fn}),Pn=Object(y.a)(Dn,2),Wn=Pn[0],Et=Pn[1],Cn=on(Et);sn.current=Cn,Vt(function(){Ce(c);var Ot=Xt.current;if(Xt.current=!0,!a)return;var ct;!Ot&&c&&i&&(ct=Pt),Ot&&c&&n&&(ct=Ut),(Ot&&!c&&m||!Ot&&b&&!c&&m)&&(ct=it),ct&&(at(ct),Wn())},[c]),Object(r.useEffect)(function(){(ve===Pt&&!i||ve===Ut&&!n||ve===it&&!m)&&at(vt)},[i,n,m]),Object(r.useEffect)(function(){return function(){clearTimeout(nn.current),_t.current=!0}},[]),Object(r.useEffect)(function(){Oe!==void 0&&ve===vt&&(Xe==null||Xe(Oe))},[Oe,ve]);var Bn=pt;return zt[gt]&&Et===bt&&(Bn=Object(j.a)({transition:"none"},Bn)),[ve,Et,Bn,Oe!=null?Oe:c]}var Hn=function(a){Object(v.a)(f,a);var c=Object(u.a)(f);function f(){return Object(P.a)(this,f),c.apply(this,arguments)}return Object(w.a)(f,[{key:"render",value:function(){return this.props.children}}]),f}(r.Component),qt=Hn;function Ln(a){var c=a;Object(ne.a)(a)==="object"&&(c=a.transitionSupport);function f(e){return!!(e.motionName&&c)}var s=r.forwardRef(function(e,n){var t=e.visible,i=t===void 0?!0:t,l=e.removeOnLeave,m=l===void 0?!0:l,d=e.forceRender,b=e.children,x=e.motionName,U=e.leavedClassName,L=e.eventProps,Y=f(e),Te=Object(r.useRef)(),Be=Object(r.useRef)();function Le(){try{return Object(cn.a)(Te.current||Be.current)}catch(at){return null}}var Ve=xn(Y,i,Le,e),Fe=Object(y.a)(Ve,4),ke=Fe[0],Ue=Fe[1],nt=Fe[2],Xe=Fe[3],Dt=r.useRef(Xe);Xe&&(Dt.current=!0);var dt=Object(r.useRef)(n);dt.current=n;var Oe=r.useCallback(function(at){Te.current=at,Object(E.b)(dt.current,at)},[]),Ce,Ge=Object(j.a)(Object(j.a)({},L),{},{visible:i});if(!b)Ce=null;else if(ke===vt||!f(e))Xe?Ce=b(Object(j.a)({},Ge),Oe):!m&&Dt.current?Ce=b(Object(j.a)(Object(j.a)({},Ge),{},{className:U}),Oe):d?Ce=b(Object(j.a)(Object(j.a)({},Ge),{},{style:{display:"none"}}),Oe):Ce=null;else{var Qe,ve;Ue===gt?ve="prepare":on(Ue)?ve="active":Ue===bt&&(ve="start"),Ce=b(Object(j.a)(Object(j.a)({},Ge),{},{className:F()(Mt(x,ke),(Qe={},Object(C.a)(Qe,Mt(x,"".concat(ke,"-").concat(ve)),ve),Object(C.a)(Qe,x,typeof x=="string"),Qe)),style:nt}),Oe)}return r.createElement(qt,{ref:Be},Ce)});return s.displayName="CSSMotion",s}var En=Ln(ut),In="add",jn="keep",vn="remove",Mn="removed";function Vn(a){var c;return a&&Object(ne.a)(a)==="object"&&"key"in a?c=a:c={key:a},Object(j.a)(Object(j.a)({},c),{},{key:String(c.key)})}function Tn(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return a.map(Vn)}function Kt(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],f=[],s=0,e=c.length,n=Tn(a),t=Tn(c);n.forEach(function(m){for(var d=!1,b=s;b1});return l.forEach(function(m){f=f.filter(function(d){var b=d.key,x=d.status;return b!==m||x!==vn}),f.forEach(function(d){d.key===m&&(d.status=jn)})}),f}var Qt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function rn(a){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:En,f=function(s){Object(v.a)(n,s);var e=Object(u.a)(n);function n(){var t;return Object(P.a)(this,n),t=e.apply(this,arguments),t.state={keyEntities:[]},t.removeKey=function(i){t.setState(function(l){var m=l.keyEntities;return{keyEntities:m.map(function(d){return d.key!==i?d:Object(j.a)(Object(j.a)({},d),{},{status:Mn})})}})},t}return Object(w.a)(n,[{key:"render",value:function(){var i=this,l=this.state.keyEntities,m=this.props,d=m.component,b=m.children,x=m.onVisibleChanged,U=Object(ce.a)(m,["component","children","onVisibleChanged"]),L=d||r.Fragment,Y={};return Qt.forEach(function(Te){Y[Te]=U[Te],delete U[Te]}),delete U.keys,r.createElement(L,U,l.map(function(Te){var Be=Te.status,Le=Object(ce.a)(Te,["status"]),Ve=Be===In||Be===jn;return r.createElement(c,Object(T.a)({},Y,{key:Le.key,visible:Ve,eventProps:Le,onVisibleChanged:function(ke){x==null||x(ke,{key:Le.key}),ke||i.removeKey(Le.key)}}),b)}))}}],[{key:"getDerivedStateFromProps",value:function(i,l){var m=i.keys,d=l.keyEntities,b=Tn(m),x=Kt(d,b);return{keyEntities:x.filter(function(U){var L=d.find(function(Y){var Te=Y.key;return U.key===Te});return!(L&&L.status===Mn&&U.status===vn)})}}}]),n}(r.Component);return f.defaultProps={component:"div"},f}var Jt=rn(ut),en=En;function dn(a){var c=a.prefixCls,f=a.motion,s=a.animation,e=a.transitionName;return f||(s?{motionName:"".concat(c,"-").concat(s)}:e?{motionName:e}:null)}function Xn(a){var c=a.prefixCls,f=a.visible,s=a.zIndex,e=a.mask,n=a.maskMotion,t=a.maskAnimation,i=a.maskTransitionName;if(!e)return null;var l={};return(n||i||t)&&(l=Object(j.a)({motionAppear:!0},dn({motion:n,prefixCls:c,transitionName:i,animation:t}))),r.createElement(en,Object(T.a)({},l,{visible:f,removeOnLeave:!0}),function(m){var d=m.className;return r.createElement("div",{style:{zIndex:s},className:F()("".concat(c,"-mask"),d)})})}var kn=o("9mu1"),$n=o("o0o1"),Ta=o.n($n),Sa=o("HaE+"),Gn=["measure","align",null,"motion"],Rt=function(a,c){var f=Object(r.useState)(null),s=Object(y.a)(f,2),e=s[0],n=s[1],t=Object(r.useRef)(),i=Object(r.useRef)(!1);function l(b){i.current||n(b)}function m(){jt.a.cancel(t.current)}function d(b){m(),t.current=Object(jt.a)(function(){l(function(x){switch(e){case"align":return"motion";case"motion":return"stable";default:}return x}),b==null||b()})}return Object(r.useEffect)(function(){l("measure")},[a]),Object(r.useEffect)(function(){switch(e){case"measure":c();break;default:}e&&(t.current=Object(jt.a)(Object(Sa.a)(Ta.a.mark(function b(){var x,U;return Ta.a.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:x=Gn.indexOf(e),U=Gn[x+1],U&&x!==-1&&l(U);case 3:case"end":return Y.stop()}},b)}))))},[e]),Object(r.useEffect)(function(){return function(){i.current=!0,m()}},[]),[e,d]},Jn=function(a){var c=r.useState({width:0,height:0}),f=Object(y.a)(c,2),s=f[0],e=f[1];function n(i){e({width:i.offsetWidth,height:i.offsetHeight})}var t=r.useMemo(function(){var i={};if(a){var l=s.width,m=s.height;a.indexOf("height")!==-1&&m?i.height=m:a.indexOf("minHeight")!==-1&&m&&(i.minHeight=m),a.indexOf("width")!==-1&&l?i.width=l:a.indexOf("minWidth")!==-1&&l&&(i.minWidth=l)}return i},[a,s]);return[t,n]},Yn=r.forwardRef(function(a,c){var f=a.visible,s=a.prefixCls,e=a.className,n=a.style,t=a.children,i=a.zIndex,l=a.stretch,m=a.destroyPopupOnHide,d=a.forceRender,b=a.align,x=a.point,U=a.getRootDomNode,L=a.getClassNameFromAlign,Y=a.onAlign,Te=a.onMouseEnter,Be=a.onMouseLeave,Le=a.onMouseDown,Ve=a.onTouchStart,Fe=Object(r.useRef)(),ke=Object(r.useRef)(),Ue=Object(r.useState)(),nt=Object(y.a)(Ue,2),Xe=nt[0],Dt=nt[1],dt=Jn(l),Oe=Object(y.a)(dt,2),Ce=Oe[0],Ge=Oe[1];function Qe(){l&&Ge(U())}var ve=Rt(f,Qe),at=Object(y.a)(ve,2),Ct=at[0],ot=at[1],pt=Object(r.useRef)();function St(){return x||U}function Xt(){var At;(At=Fe.current)===null||At===void 0||At.forceAlign()}function nn(At,Zt){var $t=L(Zt);Xe!==$t&&Dt($t),Ct==="align"&&(Xe!==$t?Promise.resolve().then(function(){Xt()}):ot(function(){var zt;(zt=pt.current)===null||zt===void 0||zt.call(pt)}),Y==null||Y(At,Zt))}var _t=Object(j.a)({},dn(a));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(At){var Zt=_t[At];_t[At]=function($t,zt){return ot(),Zt==null?void 0:Zt($t,zt)}});function an(){return new Promise(function(At){pt.current=At})}r.useEffect(function(){!_t.motionName&&Ct==="motion"&&ot()},[_t.motionName,Ct]),r.useImperativeHandle(c,function(){return{forceAlign:Xt,getElement:function(){return ke.current}}});var gn=Object(j.a)(Object(j.a)({},Ce),{},{zIndex:i,opacity:Ct==="motion"||Ct==="stable"||!f?void 0:0,pointerEvents:Ct==="stable"?void 0:"none"},n),sn=!0;(b==null?void 0:b.points)&&(Ct==="align"||Ct==="stable")&&(sn=!1);var ln=t;return r.Children.count(t)>1&&(ln=r.createElement("div",{className:"".concat(s,"-content")},t)),r.createElement(en,Object(T.a)({visible:f,ref:ke,leavedClassName:"".concat(s,"-hidden")},_t,{onAppearPrepare:an,onEnterPrepare:an,removeOnLeave:m,forceRender:d}),function(At,Zt){var $t=At.className,zt=At.style,Dn=F()(s,e,Xe,$t);return r.createElement(kn.a,{target:St(),key:"popup",ref:Fe,monitorWindowResize:!0,disabled:sn,align:b,onAlign:nn},r.createElement("div",{ref:Zt,className:Dn,onMouseEnter:Te,onMouseLeave:Be,onMouseDownCapture:Le,onTouchStartCapture:Ve,style:Object(j.a)(Object(j.a)({},zt),gn)},ln))})});Yn.displayName="PopupInner";var Ra=Yn,fn=r.forwardRef(function(a,c){var f=a.prefixCls,s=a.visible,e=a.zIndex,n=a.children,t=a.mobile;t=t===void 0?{}:t;var i=t.popupClassName,l=t.popupStyle,m=t.popupMotion,d=m===void 0?{}:m,b=t.popupRender,x=r.useRef();r.useImperativeHandle(c,function(){return{forceAlign:function(){},getElement:function(){return x.current}}});var U=Object(j.a)({zIndex:e},l),L=n;return r.Children.count(n)>1&&(L=r.createElement("div",{className:"".concat(f,"-content")},n)),b&&(L=b(L)),r.createElement(en,Object(T.a)({visible:s,ref:x,removeOnLeave:!0},d),function(Y,Te){var Be=Y.className,Le=Y.style,Ve=F()(f,i,Be);return r.createElement("div",{ref:Te,className:Ve,style:Object(j.a)(Object(j.a)({},Le),U)},L)})});fn.displayName="MobilePopupInner";var Ha=fn,Na=["visible","mobile"],oa=r.forwardRef(function(a,c){var f=a.visible,s=a.mobile,e=Object(ce.a)(a,Na),n=Object(r.useState)(f),t=Object(y.a)(n,2),i=t[0],l=t[1],m=Object(r.useState)(!1),d=Object(y.a)(m,2),b=d[0],x=d[1],U=Object(j.a)(Object(j.a)({},e),{},{visible:i});Object(r.useEffect)(function(){l(f),f&&s&&x(ae())},[f,s]);var L=b?r.createElement(Ha,Object(T.a)({},U,{mobile:s,ref:c})):r.createElement(Ra,Object(T.a)({},U,{ref:c}));return r.createElement("div",null,r.createElement(Xn,U),L)});oa.displayName="Popup";var Va=oa,Xa=r.createContext(null),ra=Xa;function Qn(){}function $a(){return""}function Ga(a){return a?a.ownerDocument:window.document}var Da=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Ja(a){var c=function(f){Object(v.a)(e,f);var s=Object(u.a)(e);function e(n){var t;Object(P.a)(this,e),t=s.call(this,n),t.popupRef=r.createRef(),t.triggerRef=r.createRef(),t.attachId=void 0,t.clickOutsideHandler=void 0,t.touchOutsideHandler=void 0,t.contextMenuOutsideHandler1=void 0,t.contextMenuOutsideHandler2=void 0,t.mouseDownTimeout=void 0,t.focusTime=void 0,t.preClickTime=void 0,t.preTouchTime=void 0,t.delayTimer=void 0,t.hasPopupMouseDown=void 0,t.onMouseEnter=function(l){var m=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",l),t.delaySetPopupVisible(!0,m,m?null:l)},t.onMouseMove=function(l){t.fireEvents("onMouseMove",l),t.setPoint(l)},t.onMouseLeave=function(l){t.fireEvents("onMouseLeave",l),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(l){var m;if(l.relatedTarget&&!l.relatedTarget.setTimeout&&Object(wt.a)((m=t.popupRef.current)===null||m===void 0?void 0:m.getElement(),l.relatedTarget))return;t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(l){t.fireEvents("onFocus",l),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(l){t.fireEvents("onMouseDown",l),t.preClickTime=Date.now()},t.onTouchStart=function(l){t.fireEvents("onTouchStart",l),t.preTouchTime=Date.now()},t.onBlur=function(l){t.fireEvents("onBlur",l),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(l){l.preventDefault(),t.fireEvents("onContextMenu",l),t.setPopupVisible(!0,l)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(l){if(t.fireEvents("onClick",l),t.focusTime){var m;if(t.preClickTime&&t.preTouchTime?m=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?m=t.preClickTime:t.preTouchTime&&(m=t.preTouchTime),Math.abs(m-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&l&&l.preventDefault&&l.preventDefault();var d=!t.state.popupVisible;(t.isClickToHide()&&!d||d&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,l)},t.onPopupMouseDown=function(){if(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout(function(){t.hasPopupMouseDown=!1},0),t.context){var l;(l=t.context).onPopupMouseDown.apply(l,arguments)}},t.onDocumentClick=function(l){if(t.props.mask&&!t.props.maskClosable)return;var m=l.target,d=t.getRootDomNode(),b=t.getPopupDomNode();(!Object(wt.a)(d,m)||t.isContextMenuOnly())&&!Object(wt.a)(b,m)&&!t.hasPopupMouseDown&&t.close()},t.getRootDomNode=function(){var l=t.props.getTriggerDOMNode;if(l)return l(t.triggerRef.current);try{var m=Object(cn.a)(t.triggerRef.current);if(m)return m}catch(d){}return kt.a.findDOMNode(Object(p.a)(t))},t.getPopupClassNameFromAlign=function(l){var m=[],d=t.props,b=d.popupPlacement,x=d.builtinPlacements,U=d.prefixCls,L=d.alignPoint,Y=d.getPopupClassNameFromAlign;return b&&x&&m.push(re(x,U,l,L)),Y&&m.push(Y(l)),m.join(" ")},t.getComponent=function(){var l=t.props,m=l.prefixCls,d=l.destroyPopupOnHide,b=l.popupClassName,x=l.onPopupAlign,U=l.popupMotion,L=l.popupAnimation,Y=l.popupTransitionName,Te=l.popupStyle,Be=l.mask,Le=l.maskAnimation,Ve=l.maskTransitionName,Fe=l.maskMotion,ke=l.zIndex,Ue=l.popup,nt=l.stretch,Xe=l.alignPoint,Dt=l.mobile,dt=l.forceRender,Oe=t.state,Ce=Oe.popupVisible,Ge=Oe.point,Qe=t.getPopupAlign(),ve={};return t.isMouseEnterToShow()&&(ve.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(ve.onMouseLeave=t.onPopupMouseLeave),ve.onMouseDown=t.onPopupMouseDown,ve.onTouchStart=t.onPopupMouseDown,r.createElement(Va,Object(T.a)({prefixCls:m,destroyPopupOnHide:d,visible:Ce,point:Xe&&Ge,className:b,align:Qe,onAlign:x,animation:L,getClassNameFromAlign:t.getPopupClassNameFromAlign},ve,{stretch:nt,getRootDomNode:t.getRootDomNode,style:Te,mask:Be,zIndex:ke,transitionName:Y,maskAnimation:Le,maskTransitionName:Ve,maskMotion:Fe,ref:t.popupRef,motion:U,mobile:Dt,forceRender:dt}),typeof Ue=="function"?Ue():Ue)},t.attachParent=function(l){jt.a.cancel(t.attachId);var m=t.props,d=m.getPopupContainer,b=m.getDocument,x=t.getRootDomNode(),U;d?(x||d.length===0)&&(U=d(x)):U=b(t.getRootDomNode()).body,U?U.appendChild(l):t.attachId=Object(jt.a)(function(){t.attachParent(l)})},t.getContainer=function(){var l=t.props.getDocument,m=l(t.getRootDomNode()).createElement("div");return m.style.position="absolute",m.style.top="0",m.style.left="0",m.style.width="100%",t.attachParent(m),m},t.setPoint=function(l){var m=t.props.alignPoint;if(!m||!l)return;t.setState({point:{pageX:l.pageX,pageY:l.pageY}})},t.handlePortalUpdate=function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)},t.triggerContextValue={onPopupMouseDown:t.onPopupMouseDown};var i;return"popupVisible"in n?i=!!n.popupVisible:i=!!n.defaultPopupVisible,t.state={prevPopupVisible:i,popupVisible:i},Da.forEach(function(l){t["fire".concat(l)]=function(m){t.fireEvents(l,m)}}),t}return Object(w.a)(e,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t=this.props,i=this.state;if(i.popupVisible){var l;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(l=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(B.a)(l,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(l=l||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(B.a)(l,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(l=l||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(B.a)(l,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(B.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),jt.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var t;return((t=this.popupRef.current)===null||t===void 0?void 0:t.getElement())||null}},{key:"getPopupAlign",value:function(){var t=this.props,i=t.popupPlacement,l=t.popupAlign,m=t.builtinPlacements;return i&&m?be(m,i,l):l}},{key:"setPopupVisible",value:function(t,i){var l=this.props.alignPoint,m=this.state.popupVisible;this.clearDelayTimer(),m!==t&&("popupVisible"in this.props||this.setState({popupVisible:t,prevPopupVisible:m}),this.props.onPopupVisibleChange(t)),l&&i&&t&&this.setPoint(i)}},{key:"delaySetPopupVisible",value:function(t,i,l){var m=this,d=i*1e3;if(this.clearDelayTimer(),d){var b=l?{pageX:l.pageX,pageY:l.pageY}:null;this.delayTimer=window.setTimeout(function(){m.setPopupVisible(t,b),m.clearDelayTimer()},d)}else this.setPopupVisible(t,l)}},{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(t){var i=this.props.children.props,l=this.props;return i[t]&&l[t]?this["fire".concat(t)]:i[t]||l[t]}},{key:"isClickToShow",value:function(){var t=this.props,i=t.action,l=t.showAction;return i.indexOf("click")!==-1||l.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var t=this.props.action;return t==="contextMenu"||t.length===1&&t[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var t=this.props,i=t.action,l=t.showAction;return i.indexOf("contextMenu")!==-1||l.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var t=this.props,i=t.action,l=t.hideAction;return i.indexOf("click")!==-1||l.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var t=this.props,i=t.action,l=t.showAction;return i.indexOf("hover")!==-1||l.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var t=this.props,i=t.action,l=t.hideAction;return i.indexOf("hover")!==-1||l.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var t=this.props,i=t.action,l=t.showAction;return i.indexOf("focus")!==-1||l.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var t=this.props,i=t.action,l=t.hideAction;return i.indexOf("focus")!==-1||l.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var t;(t=this.popupRef.current)===null||t===void 0||t.forceAlign()}}},{key:"fireEvents",value:function(t,i){var l=this.props.children.props[t];l&&l(i);var m=this.props[t];m&&m(i)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,i=this.props,l=i.children,m=i.forceRender,d=i.alignPoint,b=i.className,x=i.autoDestroy,U=r.Children.only(l),L={key:"trigger"};this.isContextMenuToShow()?L.onContextMenu=this.onContextMenu:L.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(L.onClick=this.onClick,L.onMouseDown=this.onMouseDown,L.onTouchStart=this.onTouchStart):(L.onClick=this.createTwoChains("onClick"),L.onMouseDown=this.createTwoChains("onMouseDown"),L.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(L.onMouseEnter=this.onMouseEnter,d&&(L.onMouseMove=this.onMouseMove)):L.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?L.onMouseLeave=this.onMouseLeave:L.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(L.onFocus=this.onFocus,L.onBlur=this.onBlur):(L.onFocus=this.createTwoChains("onFocus"),L.onBlur=this.createTwoChains("onBlur"));var Y=F()(U&&U.props&&U.props.className,b);Y&&(L.className=Y);var Te=Object(j.a)({},L);Object(E.c)(U)&&(Te.ref=Object(E.a)(this.triggerRef,U.ref));var Be=r.cloneElement(U,Te),Le;return(t||this.popupRef.current||m)&&(Le=r.createElement(a,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&x&&(Le=null),r.createElement(ra.Provider,{value:this.triggerContextValue},Be,Le)}}],[{key:"getDerivedStateFromProps",value:function(t,i){var l=t.popupVisible,m={};return l!==void 0&&i.popupVisible!==l&&(m.popupVisible=l,m.prevPopupVisible=i.popupVisible),m}}]),e}(r.Component);return c.contextType=ra,c.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:$a,getDocument:Ga,onPopupVisibleChange:Qn,afterPopupVisibleChange:Qn,onPopupAlign:Qn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},c}var Ya=Ja(X.a),bn={adjustX:1,adjustY:1},ia={topLeft:{points:["bl","tl"],overflow:bn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:bn,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:bn,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:bn,offset:[4,0]}},Pa={topLeft:{points:["bl","tl"],overflow:bn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:bn,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:bn,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:bn,offset:[4,0]}},sa=ia,tn=0,mn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},pn=function(c,f,s){var e=rt(f),n=c.getState();c.setState({defaultActiveFirst:Object(j.a)(Object(j.a)({},n.defaultActiveFirst),{},Object(C.a)({},e,s))})},la=function(a){Object(v.a)(f,a);var c=Object(u.a)(f);function f(s){var e;Object(P.a)(this,f),e=c.call(this,s),e.onDestroy=function(d){e.props.onDestroy(d)},e.onKeyDown=function(d){var b=d.keyCode,x=e.menuInstance,U=e.props.store,L=e.getVisible();if(b===g.a.ENTER)return e.onTitleClick(d),pn(U,e.props.eventKey,!0),!0;if(b===g.a.RIGHT)return L?x.onKeyDown(d):(e.triggerOpenChange(!0),pn(U,e.props.eventKey,!0)),!0;if(b===g.a.LEFT){var Y;if(L)Y=x.onKeyDown(d);else return;return Y||(e.triggerOpenChange(!1),Y=!0),Y}return L&&(b===g.a.UP||b===g.a.DOWN)?x.onKeyDown(d):void 0},e.onOpenChange=function(d){e.props.onOpenChange(d)},e.onPopupVisibleChange=function(d){e.triggerOpenChange(d,d?"mouseenter":"mouseleave")},e.onMouseEnter=function(d){var b=e.props,x=b.eventKey,U=b.onMouseEnter,L=b.store;pn(L,e.props.eventKey,!1),U({key:x,domEvent:d})},e.onMouseLeave=function(d){var b=e.props,x=b.parentMenu,U=b.eventKey,L=b.onMouseLeave;x.subMenuInstance=Object(p.a)(e),L({key:U,domEvent:d})},e.onTitleMouseEnter=function(d){var b=e.props,x=b.eventKey,U=b.onItemHover,L=b.onTitleMouseEnter;U({key:x,hover:!0}),L({key:x,domEvent:d})},e.onTitleMouseLeave=function(d){var b=e.props,x=b.parentMenu,U=b.eventKey,L=b.onItemHover,Y=b.onTitleMouseLeave;x.subMenuInstance=Object(p.a)(e),L({key:U,hover:!1}),Y({key:U,domEvent:d})},e.onTitleClick=function(d){var b=Object(p.a)(e),x=b.props;if(x.onTitleClick({key:x.eventKey,domEvent:d}),x.triggerSubMenuAction==="hover")return;e.triggerOpenChange(!e.getVisible(),"click"),pn(x.store,e.props.eventKey,!1)},e.onSubMenuClick=function(d){typeof e.props.onClick=="function"&&e.props.onClick(e.addKeyPath(d))},e.onSelect=function(d){e.props.onSelect(d)},e.onDeselect=function(d){e.props.onDeselect(d)},e.getPrefixCls=function(){return"".concat(e.props.rootPrefixCls,"-submenu")},e.getActiveClassName=function(){return"".concat(e.getPrefixCls(),"-active")},e.getDisabledClassName=function(){return"".concat(e.getPrefixCls(),"-disabled")},e.getSelectedClassName=function(){return"".concat(e.getPrefixCls(),"-selected")},e.getOpenClassName=function(){return"".concat(e.props.rootPrefixCls,"-submenu-open")},e.getVisible=function(){return e.state.isOpen},e.getMode=function(){return e.state.mode},e.saveMenuInstance=function(d){e.menuInstance=d},e.addKeyPath=function(d){return Object(j.a)(Object(j.a)({},d),{},{keyPath:(d.keyPath||[]).concat(e.props.eventKey)})},e.triggerOpenChange=function(d,b){var x=e.props.eventKey,U=function(){e.onOpenChange({key:x,item:Object(p.a)(e),trigger:b,open:d})};b==="mouseenter"?e.mouseenterTimeout=setTimeout(function(){U()},0):U()},e.isChildrenSelected=function(){var d={find:!1};return ht(e.props.children,e.props.selectedKeys,d),d.find},e.isInlineMode=function(){return e.getMode()==="inline"},e.adjustWidth=function(){if(!e.subMenuTitle||!e.menuInstance)return;var d=Lt.findDOMNode(e.menuInstance);if(d.offsetWidth>=e.subMenuTitle.offsetWidth)return;d.style.minWidth="".concat(e.subMenuTitle.offsetWidth,"px")},e.saveSubMenuTitle=function(d){e.subMenuTitle=d},e.getBaseProps=function(){var d=Object(p.a)(e),b=d.props,x=e.getMode();return{mode:x==="horizontal"?"vertical":x,visible:e.getVisible(),level:b.level+1,inlineIndent:b.inlineIndent,focusable:!1,onClick:e.onSubMenuClick,onSelect:e.onSelect,onDeselect:e.onDeselect,onDestroy:e.onDestroy,selectedKeys:b.selectedKeys,eventKey:"".concat(b.eventKey,"-menu-"),openKeys:b.openKeys,motion:b.motion,onOpenChange:e.onOpenChange,subMenuOpenDelay:b.subMenuOpenDelay,parentMenu:Object(p.a)(e),subMenuCloseDelay:b.subMenuCloseDelay,forceSubMenuRender:b.forceSubMenuRender,triggerSubMenuAction:b.triggerSubMenuAction,builtinPlacements:b.builtinPlacements,defaultActiveFirst:b.store.getState().defaultActiveFirst[rt(b.eventKey)],multiple:b.multiple,prefixCls:b.rootPrefixCls,id:e.internalMenuId,manualRef:e.saveMenuInstance,itemIcon:b.itemIcon,expandIcon:b.expandIcon,direction:b.direction}},e.getMotion=function(d,b){var x=Object(p.a)(e),U=x.haveRendered,L=e.props,Y=L.motion,Te=L.rootPrefixCls,Be=Object(j.a)(Object(j.a)({},Y),{},{leavedClassName:"".concat(Te,"-hidden"),removeOnLeave:!1,motionAppear:U||!b||d!=="inline"});return Be};var n=s.store,t=s.eventKey,i=n.getState(),l=i.defaultActiveFirst;e.isRootMenu=!1;var m=!1;return l&&(m=l[t]),pn(n,t,m),e.state={mode:s.mode,isOpen:s.isOpen},e}return Object(w.a)(f,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,n=this.props,t=n.mode,i=n.parentMenu,l=n.manualRef,m=n.isOpen,d=function(){e.setState({mode:t,isOpen:m})},b=m!==this.state.isOpen,x=t!==this.state.mode;if((x||b)&&(jt.a.cancel(this.updateStateRaf),x?this.updateStateRaf=Object(jt.a)(d):d()),l&&l(this),t!=="horizontal"||!(i==null?void 0:i.isRootMenu)||!m)return;this.minWidthTimeout=setTimeout(function(){return e.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var e=this.props,n=e.onDestroy,t=e.eventKey;n&&n(t),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),jt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(e,n){var t=this.getBaseProps();return r.createElement(ea,Object(T.a)({},t,{id:this.internalMenuId,className:e,style:n}),this.props.children)}},{key:"renderChildren",value:function(){var e=this,n=this.getBaseProps(),t=n.mode,i=n.visible,l=n.forceSubMenuRender,m=n.direction,d=this.getMotion(t,i);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||i||l,!this.haveOpened)return r.createElement("div",null);var b=F()("".concat(n.prefixCls,"-sub"),Object(C.a)({},"".concat(n.prefixCls,"-rtl"),m==="rtl"));return this.isInlineMode()?r.createElement(en,Object(T.a)({visible:n.visible,forceRender:l},d),function(x){var U=x.className,L=x.style,Y=F()(b,U);return e.renderPopupMenu(Y,L)}):this.renderPopupMenu(b)}},{key:"render",value:function(){var e,n,t,i=Object(j.a)({},this.props),l=this.getVisible(),m=this.getPrefixCls(),d=this.isInlineMode(),b=this.getMode(),x=F()(m,"".concat(m,"-").concat(b),(e={},Object(C.a)(e,i.className,!!i.className),Object(C.a)(e,this.getOpenClassName(),l),Object(C.a)(e,this.getActiveClassName(),i.active||l&&!d),Object(C.a)(e,this.getDisabledClassName(),i.disabled),Object(C.a)(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(i.eventKey?this.internalMenuId="".concat(i.eventKey,"$Menu"):(tn+=1,this.internalMenuId="$__$".concat(tn,"$Menu")));var U={},L={},Y={};i.disabled||(U={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},L={onClick:this.onTitleClick},Y={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Te={},Be=i.direction,Le=Be==="rtl";d&&(Le?Te.paddingRight=i.inlineIndent*i.level:Te.paddingLeft=i.inlineIndent*i.level);var Ve={};this.getVisible()&&(Ve={"aria-owns":this.internalMenuId});var Fe=null;b!=="horizontal"&&(Fe=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Fe=r.createElement(this.props.expandIcon,Object(j.a)({},this.props))));var ke=r.createElement("div",Object(T.a)({ref:this.saveSubMenuTitle,style:Te,className:"".concat(m,"-title"),role:"button"},Y,L,{"aria-expanded":l},Ve,{"aria-haspopup":"true",title:typeof i.title=="string"?i.title:void 0}),i.title,Fe||r.createElement("i",{className:"".concat(m,"-arrow")})),Ue=this.renderChildren(),nt=((n=i.parentMenu)===null||n===void 0?void 0:n.isRootMenu)?i.parentMenu.props.getPopupContainer:function(St){return St.parentNode},Xe=mn[b],Dt=i.popupOffset?{offset:i.popupOffset}:{},dt=F()((t={},Object(C.a)(t,i.popupClassName,i.popupClassName&&!d),Object(C.a)(t,"".concat(m,"-rtl"),Le),t)),Oe=i.disabled,Ce=i.triggerSubMenuAction,Ge=i.subMenuOpenDelay,Qe=i.forceSubMenuRender,ve=i.subMenuCloseDelay,at=i.builtinPlacements;xt.forEach(function(St){return delete i[St]}),delete i.onClick;var Ct=Le?Object(j.a)(Object(j.a)({},Pa),at):Object(j.a)(Object(j.a)({},ia),at);delete i.direction;var ot=this.getBaseProps(),pt=d?null:this.getMotion(ot.mode,ot.visible);return r.createElement("li",Object(T.a)({},i,U,{className:x,role:"menuitem"}),r.createElement(Ya,{prefixCls:m,popupClassName:F()("".concat(m,"-popup"),dt),getPopupContainer:nt,builtinPlacements:Ct,popupPlacement:Xe,popupVisible:d?!1:l,popupAlign:Dt,popup:d?null:Ue,action:Oe||d?[]:[Ce],mouseEnterDelay:Ge,mouseLeaveDelay:ve,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Qe,popupMotion:pt},ke),d?Ue:null)}}]),f}(r.Component);la.defaultProps={onMouseEnter:le,onMouseLeave:le,onTitleMouseEnter:le,onTitleMouseLeave:le,onTitleClick:le,manualRef:le,mode:"vertical",title:""};var Un=Object(M.b)(function(a,c){var f=a.openKeys,s=a.activeKey,e=a.selectedKeys,n=c.eventKey,t=c.subMenuKey;return{isOpen:f.indexOf(n)>-1,active:s[t]===n,selectedKeys:e}})(la);Un.isSubMenu=!0;var Kn=Un,_a="menuitem-overflowed",Qa=.5,wa=function(a){Object(v.a)(f,a);var c=Object(u.a)(f);function f(){var s;return Object(P.a)(this,f),s=c.apply(this,arguments),s.resizeObserver=null,s.mutationObserver=null,s.originalTotalWidth=0,s.overflowedItems=[],s.menuItemSizes=[],s.cancelFrameId=null,s.state={lastVisibleIndex:void 0},s.childRef=r.createRef(),s.getMenuItemNodes=function(){var e=s.props.prefixCls,n=s.childRef.current;return n?[].slice.call(n.children).filter(function(t){return t.className.split(" ").indexOf("".concat(e,"-overflowed-submenu"))<0}):[]},s.getOverflowedSubMenuItem=function(e,n,t){var i=s.props,l=i.overflowedIndicator,m=i.level,d=i.mode,b=i.prefixCls,x=i.theme;if(m!==1||d!=="horizontal")return null;var U=s.props.children[0],L=U.props,Y=L.children,Te=L.title,Be=L.style,Le=Object(ce.a)(L,["children","title","style"]),Ve=Object(j.a)({},Be),Fe="".concat(e,"-overflowed-indicator"),ke="".concat(e,"-overflowed-indicator");n.length===0&&t!==!0?Ve=Object(j.a)(Object(j.a)({},Ve),{},{display:"none"}):t&&(Ve=Object(j.a)(Object(j.a)({},Ve),{},{visibility:"hidden",position:"absolute"}),Fe="".concat(Fe,"-placeholder"),ke="".concat(ke,"-placeholder"));var Ue=x?"".concat(b,"-").concat(x):"",nt={};return xt.forEach(function(Xe){Le[Xe]!==void 0&&(nt[Xe]=Le[Xe])}),r.createElement(Kn,Object(T.a)({title:l,className:"".concat(b,"-overflowed-submenu"),popupClassName:Ue},nt,{key:Fe,eventKey:ke,disabled:!1,style:Ve}),n)},s.setChildrenWidthAndResize=function(){if(s.props.mode!=="horizontal")return;var e=s.childRef.current;if(!e)return;var n=e.children;if(!n||n.length===0)return;var t=e.children[n.length-1];_e(t,"display","inline-block");var i=s.getMenuItemNodes(),l=i.filter(function(m){return m.className.split(" ").indexOf(_a)>=0});l.forEach(function(m){_e(m,"display","inline-block")}),s.menuItemSizes=i.map(function(m){return lt(m,!0)}),l.forEach(function(m){_e(m,"display","none")}),s.overflowedIndicatorWidth=lt(e.children[e.children.length-1],!0),s.originalTotalWidth=s.menuItemSizes.reduce(function(m,d){return m+d},0),s.handleResize(),_e(t,"display","none")},s.handleResize=function(){if(s.props.mode!=="horizontal")return;var e=s.childRef.current;if(!e)return;var n=lt(e);s.overflowedItems=[];var t=0,i;s.originalTotalWidth>n+Qa&&(i=-1,s.menuItemSizes.forEach(function(l){t+=l,t+s.overflowedIndicatorWidth<=n&&(i+=1)})),s.setState({lastVisibleIndex:i})},s}return Object(w.a)(f,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var n=this.childRef.current;if(!n)return;this.resizeObserver=new It.default(function(t){t.forEach(function(){var i=e.cancelFrameId;cancelAnimationFrame(i),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)})}),[].slice.call(n.children).concat(n).forEach(function(t){e.resizeObserver.observe(t)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){e.resizeObserver.disconnect(),[].slice.call(n.children).concat(n).forEach(function(t){e.resizeObserver.observe(t)}),e.setChildrenWidthAndResize()}),this.mutationObserver.observe(n,{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(e){var n=this,t=this.state.lastVisibleIndex;return(e||[]).reduce(function(i,l,m){var d=l;if(n.props.mode==="horizontal"){var b=n.getOverflowedSubMenuItem(l.props.eventKey,[]);t!==void 0&&n.props.className.indexOf("".concat(n.props.prefixCls,"-root"))!==-1&&(m>t&&(d=r.cloneElement(l,{style:{display:"none"},eventKey:"".concat(l.props.eventKey,"-hidden"),className:"".concat(_a)})),m===t+1&&(n.overflowedItems=e.slice(t+1).map(function(U){return r.cloneElement(U,{key:U.props.eventKey,mode:"vertical-left"})}),b=n.getOverflowedSubMenuItem(l.props.eventKey,n.overflowedItems)));var x=[].concat(Object(ge.a)(i),[b,d]);return m===e.length-1&&x.push(n.getOverflowedSubMenuItem(l.props.eventKey,[],!0)),x}return[].concat(Object(ge.a)(i),[d])},[])}},{key:"render",value:function(){var e=this.props,n=e.visible,t=e.prefixCls,i=e.overflowedIndicator,l=e.mode,m=e.level,d=e.tag,b=e.children,x=e.theme,U=Object(ce.a)(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),L=d;return r.createElement(L,Object(T.a)({ref:this.childRef},U),this.renderChildren(b))}}]),f}(r.Component);wa.defaultProps={tag:"div",className:""};var ua=wa;function Zn(a){return a.length?a.every(function(c){return!!c.props.disabled}):!0}function Sn(a,c,f){var s=a.getState();a.setState({activeKey:Object(j.a)(Object(j.a)({},s.activeKey),{},Object(C.a)({},c,f))})}function yn(a){return a.eventKey||"0-menu-"}function qn(a,c){var f=c,s=a.children,e=a.eventKey;if(f){var n;if($e(s,function(t,i){t&&t.props&&!t.props.disabled&&f===Pe(t,e,i)&&(n=!0)}),n)return f}return f=null,a.defaultActiveFirst&&$e(s,function(t,i){!f&&t&&!t.props.disabled&&(f=Pe(t,e,i))}),f}function Aa(a){if(!a)return;var c=this.instanceArray.indexOf(a);c!==-1?this.instanceArray[c]=a:this.instanceArray.push(a)}var La=function(a){Object(v.a)(f,a);var c=Object(u.a)(f);function f(s){var e;return Object(P.a)(this,f),e=c.call(this,s),e.onKeyDown=function(n,t){var i=n.keyCode,l;if(e.getFlatInstanceArray().forEach(function(d){d&&d.props.active&&d.onKeyDown&&(l=d.onKeyDown(n))}),l)return 1;var m=null;return(i===g.a.UP||i===g.a.DOWN)&&(m=e.step(i===g.a.UP?-1:1)),m?(n.preventDefault(),Sn(e.props.store,yn(e.props),m.props.eventKey),typeof t=="function"&&t(m),1):void 0},e.onItemHover=function(n){var t=n.key,i=n.hover;Sn(e.props.store,yn(e.props),i?t:null)},e.onDeselect=function(n){e.props.onDeselect(n)},e.onSelect=function(n){e.props.onSelect(n)},e.onClick=function(n){e.props.onClick(n)},e.onOpenChange=function(n){e.props.onOpenChange(n)},e.onDestroy=function(n){e.props.onDestroy(n)},e.getFlatInstanceArray=function(){return e.instanceArray},e.step=function(n){var t=e.getFlatInstanceArray(),i=e.props.store.getState().activeKey[yn(e.props)],l=t.length;if(!l)return null;n<0&&(t=t.concat().reverse());var m=-1;if(t.every(function(U,L){return U&&U.props.eventKey===i?(m=L,!1):!0}),!e.props.defaultActiveFirst&&m!==-1&&Zn(t.slice(m,l-1)))return;var d=(m+1)%l,b=d;do{var x=t[b];if(!x||x.props.disabled)b=(b+1)%l;else return x}while(b!==d);return null},e.renderCommonMenuItem=function(n,t,i){var l=e.props.store.getState(),m=Object(p.a)(e),d=m.props,b=Pe(n,d.eventKey,t),x=n.props;if(!x||typeof n.type=="string")return n;var U=b===l.activeKey,L=Object(j.a)(Object(j.a)({mode:x.mode||d.mode,level:d.level,inlineIndent:d.inlineIndent,renderMenuItem:e.renderMenuItem,rootPrefixCls:d.prefixCls,index:t,parentMenu:d.parentMenu,manualRef:x.disabled?void 0:Object(N.a)(n.ref,Aa.bind(Object(p.a)(e))),eventKey:b,active:!x.disabled&&U,multiple:d.multiple,onClick:function(Te){(x.onClick||le)(Te),e.onClick(Te)},onItemHover:e.onItemHover,motion:d.motion,subMenuOpenDelay:d.subMenuOpenDelay,subMenuCloseDelay:d.subMenuCloseDelay,forceSubMenuRender:d.forceSubMenuRender,onOpenChange:e.onOpenChange,onDeselect:e.onDeselect,onSelect:e.onSelect,builtinPlacements:d.builtinPlacements,itemIcon:x.itemIcon||e.props.itemIcon,expandIcon:x.expandIcon||e.props.expandIcon},i),{},{direction:d.direction});return(d.mode==="inline"||Ke())&&(L.triggerSubMenuAction="click"),r.cloneElement(n,Object(j.a)(Object(j.a)({},L),{},{key:b||t}))},e.renderMenuItem=function(n,t,i){if(!n)return null;var l=e.props.store.getState(),m={openKeys:l.openKeys,selectedKeys:l.selectedKeys,triggerSubMenuAction:e.props.triggerSubMenuAction,subMenuKey:i};return e.renderCommonMenuItem(n,t,m)},s.store.setState({activeKey:Object(j.a)(Object(j.a)({},s.store.getState().activeKey),{},Object(C.a)({},s.eventKey,qn(s,s.activeKey)))}),e.instanceArray=[],e}return Object(w.a)(f,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!A()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var n=this.props,t="activeKey"in n?n.activeKey:n.store.getState().activeKey[yn(n)],i=qn(n,t);if(i!==t)Sn(n.store,yn(n),i);else if("activeKey"in e){var l=qn(e,e.activeKey);i!==l&&Sn(n.store,yn(n),i)}}},{key:"render",value:function(){var e=this,n=Object(T.a)({},this.props);this.instanceArray=[];var t=F()(n.prefixCls,n.className,"".concat(n.prefixCls,"-").concat(n.mode)),i={className:t,role:n.role||"menu"};n.id&&(i.id=n.id),n.focusable&&(i.tabIndex=0,i.onKeyDown=this.onKeyDown);var l=n.prefixCls,m=n.eventKey,d=n.visible,b=n.level,x=n.mode,U=n.overflowedIndicator,L=n.theme;return xt.forEach(function(Y){return delete n[Y]}),delete n.onClick,r.createElement(ua,Object(T.a)({},n,{prefixCls:l,mode:x,tag:"ul",level:b,theme:L,visible:d,overflowedIndicator:U},i),Object(q.a)(n.children).map(function(Y,Te){return e.renderMenuItem(Y,Te,m||"0-menu-")}))}}]),f}(r.Component);La.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:le};var Ia=Object(M.b)()(La),ea=Ia,Rn=o("Kwbf");function ca(a,c,f){var s=a.prefixCls,e=a.motion,n=a.defaultMotions,t=n===void 0?{}:n,i=a.openAnimation,l=a.openTransitionName,m=c.switchingModeFromInline;if(e)return e;if(Object(ne.a)(i)==="object"&&i)Object(Rn.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof i=="string")return{motionName:"".concat(s,"-open-").concat(i)};if(l)return{motionName:l};var d=t[f];return d||(m?null:t.other)}var ka=function(a){Object(v.a)(f,a);var c=Object(u.a)(f);function f(s){var e;Object(P.a)(this,f),e=c.call(this,s),e.onSelect=function(i){var l=Object(p.a)(e),m=l.props;if(m.selectable){var d=e.store.getState(),b=d.selectedKeys,x=i.key;m.multiple?b=b.concat([x]):b=[x],"selectedKeys"in m||e.store.setState({selectedKeys:b}),m.onSelect(Object(j.a)(Object(j.a)({},i),{},{selectedKeys:b}))}},e.onClick=function(i){var l=e.getRealMenuMode(),m=Object(p.a)(e),d=m.store,b=m.props.onOpenChange;l!=="inline"&&!("openKeys"in e.props)&&(d.setState({openKeys:[]}),b([])),e.props.onClick(i)},e.onKeyDown=function(i,l){e.innerMenu.getWrappedInstance().onKeyDown(i,l)},e.onOpenChange=function(i){var l=Object(p.a)(e),m=l.props,d=e.store.getState().openKeys.concat(),b=!1,x=function(L){var Y=!1;if(L.open)Y=d.indexOf(L.key)===-1,Y&&d.push(L.key);else{var Te=d.indexOf(L.key);Y=Te!==-1,Y&&d.splice(Te,1)}b=b||Y};Array.isArray(i)?i.forEach(x):x(i),b&&("openKeys"in e.props||e.store.setState({openKeys:d}),m.onOpenChange(d))},e.onDeselect=function(i){var l=Object(p.a)(e),m=l.props;if(m.selectable){var d=e.store.getState().selectedKeys.concat(),b=i.key,x=d.indexOf(b);x!==-1&&d.splice(x,1),"selectedKeys"in m||e.store.setState({selectedKeys:d}),m.onDeselect(Object(j.a)(Object(j.a)({},i),{},{selectedKeys:d}))}},e.onMouseEnter=function(i){e.restoreModeVerticalFromInline();var l=e.props.onMouseEnter;l&&l(i)},e.onTransitionEnd=function(i){var l=i.propertyName==="width"&&i.target===i.currentTarget,m=i.target.className,d=Object.prototype.toString.call(m)==="[object SVGAnimatedString]"?m.animVal:m,b=i.propertyName==="font-size"&&d.indexOf("anticon")>=0;(l||b)&&e.restoreModeVerticalFromInline()},e.setInnerMenu=function(i){e.innerMenu=i},e.isRootMenu=!0;var n=s.defaultSelectedKeys,t=s.defaultOpenKeys;return"selectedKeys"in s&&(n=s.selectedKeys||[]),"openKeys"in s&&(t=s.openKeys||[]),e.store=Object(M.c)({selectedKeys:n,openKeys:t,activeKey:{"0-menu-":qn(s,s.activeKey)}}),e.state={switchingModeFromInline:!1,prevProps:s,inlineOpenKeys:[],store:e.store},e}return Object(w.a)(f,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){var n=this.props,t=n.siderCollapsed,i=n.inlineCollapsed,l=n.onOpenChange;(!e.inlineCollapsed&&i||!e.siderCollapsed&&t)&&l([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,n=this.store,t=this.prevOpenKeys,i=this.getInlineCollapsed()&&(e===0||e==="0"||e==="0px");i?(this.prevOpenKeys=n.getState().openKeys.concat(),this.store.setState({openKeys:[]})):t&&(this.store.setState({openKeys:t}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,n=this.state.switchingModeFromInline,t=this.getInlineCollapsed();return n&&t?"inline":t?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,n=e.inlineCollapsed,t=e.siderCollapsed;return t!==void 0?t:n}},{key:"restoreModeVerticalFromInline",value:function(){var e=this.state.switchingModeFromInline;e&&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 e=Object(j.a)({},Object(S.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),n=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),e.direction==="rtl"&&(e.className+=" ".concat(e.prefixCls,"-rtl")),e=Object(j.a)(Object(j.a)({},e),{},{mode:n,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:ca(this.props,this.state,n)}),delete e.openAnimation,delete e.openTransitionName,r.createElement(M.a,{store:this.store},r.createElement(ea,Object(T.a)({},e,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var t=n.prevProps,i=n.store,l=i.getState(),m={},d={prevProps:e};return t.mode==="inline"&&e.mode!=="inline"&&(d.switchingModeFromInline=!0),"openKeys"in e?m.openKeys=e.openKeys||[]:((e.inlineCollapsed&&!t.inlineCollapsed||e.siderCollapsed&&!t.siderCollapsed)&&(d.switchingModeFromInline=!0,d.inlineOpenKeys=l.openKeys,m.openKeys=[]),(!e.inlineCollapsed&&t.inlineCollapsed||!e.siderCollapsed&&t.siderCollapsed)&&(m.openKeys=n.inlineOpenKeys,d.inlineOpenKeys=[])),Object.keys(m).length&&i.setState(m),d}}]),f}(r.Component);ka.defaultProps={selectable:!0,onClick:le,onSelect:le,onOpenChange:le,onDeselect:le,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:r.createElement("span",null,"\xB7\xB7\xB7")};var Ua=ka,Nn=function(a){Object(v.a)(f,a);var c=Object(u.a)(f);function f(){var s;return Object(P.a)(this,f),s=c.apply(this,arguments),s.onKeyDown=function(e){var n=e.keyCode;return n===g.a.ENTER?(s.onClick(e),!0):void 0},s.onMouseLeave=function(e){var n=s.props,t=n.eventKey,i=n.onItemHover,l=n.onMouseLeave;i({key:t,hover:!1}),l({key:t,domEvent:e})},s.onMouseEnter=function(e){var n=s.props,t=n.eventKey,i=n.onItemHover,l=n.onMouseEnter;i({key:t,hover:!0}),l({key:t,domEvent:e})},s.onClick=function(e){var n=s.props,t=n.eventKey,i=n.multiple,l=n.onClick,m=n.onSelect,d=n.onDeselect,b=n.isSelected,x={key:t,keyPath:[t],item:Object(p.a)(s),domEvent:e};l(x),i?b?d(x):m(x):b||m(x)},s.saveNode=function(e){s.node=e},s}return Object(w.a)(f,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.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 e,n=Object(j.a)({},this.props),t=F()(this.getPrefixCls(),n.className,(e={},Object(C.a)(e,this.getActiveClassName(),!n.disabled&&n.active),Object(C.a)(e,this.getSelectedClassName(),n.isSelected),Object(C.a)(e,this.getDisabledClassName(),n.disabled),e)),i=Object(j.a)(Object(j.a)({},n.attribute),{},{title:typeof n.title=="string"?n.title:void 0,className:t,role:n.role||"menuitem","aria-disabled":n.disabled});n.role==="option"?i=Object(j.a)(Object(j.a)({},i),{},{role:"option","aria-selected":n.isSelected}):(n.role===null||n.role==="none")&&(i.role="none");var l={onClick:n.disabled?null:this.onClick,onMouseLeave:n.disabled?null:this.onMouseLeave,onMouseEnter:n.disabled?null:this.onMouseEnter},m=Object(j.a)({},n.style);n.mode==="inline"&&(n.direction==="rtl"?m.paddingRight=n.inlineIndent*n.level:m.paddingLeft=n.inlineIndent*n.level),xt.forEach(function(b){return delete n[b]}),delete n.direction;var d=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(d=r.createElement(this.props.itemIcon,this.props)),r.createElement("li",Object(T.a)({},Object(S.a)(n,["onClick","onMouseEnter","onMouseLeave","onSelect"]),i,l,{style:m,ref:this.saveNode}),n.children,d)}}]),f}(r.Component);Nn.isMenuItem=!0,Nn.defaultProps={onSelect:le,onMouseEnter:le,onMouseLeave:le,manualRef:le};var da=Object(M.b)(function(a,c){var f=a.activeKey,s=a.selectedKeys,e=c.eventKey,n=c.subMenuKey;return{active:f[n]===e,isSelected:Array.isArray(s)?s.indexOf(e)!==-1:s===e}})(Nn),fa=da,ma=function(a){Object(v.a)(f,a);var c=Object(u.a)(f);function f(){var s;return Object(P.a)(this,f),s=c.apply(this,arguments),s.renderInnerMenuItem=function(e){var n=s.props,t=n.renderMenuItem,i=n.index;return t(e,i,s.props.subMenuKey)},s}return Object(w.a)(f,[{key:"render",value:function(){var e=Object(T.a)({},this.props),n=e.className,t=n===void 0?"":n,i=e.rootPrefixCls,l="".concat(i,"-item-group-title"),m="".concat(i,"-item-group-list"),d=e.title,b=e.children;return xt.forEach(function(x){return delete e[x]}),delete e.direction,r.createElement("li",Object(T.a)({},e,{onClick:function(U){return U.stopPropagation()},className:"".concat(t," ").concat(i,"-item-group")}),r.createElement("div",{className:l,title:typeof d=="string"?d:void 0},d),r.createElement("ul",{className:m},r.Children.map(b,this.renderInnerMenuItem)))}}]),f}(r.Component);ma.isMenuItemGroup=!0,ma.defaultProps={disabled:!0};var Za=ma,pa=function(c){var f=c.className,s=c.rootPrefixCls,e=c.style;return r.createElement("li",{className:"".concat(f," ").concat(s,"-item-divider"),style:e})};pa.defaultProps={disabled:!0,className:"",style:{}};var qa=pa,Ka=Ua,ha=o("eDIo");function eo(a,c){var f=a.prefixCls,s=a.editable,e=a.locale,n=a.style;return!s||s.showAdd===!1?null:r.createElement("button",{ref:c,type:"button",className:"".concat(f,"-nav-add"),style:n,"aria-label":(e==null?void 0:e.addAriaLabel)||"Add tab",onClick:function(i){s.onEdit("add",{event:i})}},s.addIcon||"+")}var ta=r.forwardRef(eo);function to(a,c){var f=a.prefixCls,s=a.id,e=a.tabs,n=a.locale,t=a.mobile,i=a.moreIcon,l=i===void 0?"More":i,m=a.moreTransitionName,d=a.style,b=a.className,x=a.editable,U=a.tabBarGutter,L=a.rtl,Y=a.onTabClick,Te=Object(r.useState)(!1),Be=Object(y.a)(Te,2),Le=Be[0],Ve=Be[1],Fe=Object(r.useState)(null),ke=Object(y.a)(Fe,2),Ue=ke[0],nt=ke[1],Xe="".concat(s,"-more-popup"),Dt="".concat(f,"-dropdown"),dt=Ue!==null?"".concat(Xe,"-").concat(Ue):null,Oe=n==null?void 0:n.dropdownAriaLabel,Ce=r.createElement(Ka,{onClick:function(pt){var St=pt.key,Xt=pt.domEvent;Y(St,Xt),Ve(!1)},id:Xe,tabIndex:-1,role:"listbox","aria-activedescendant":dt,selectedKeys:[Ue],"aria-label":Oe!==void 0?Oe:"expanded dropdown"},e.map(function(ot){return r.createElement(fa,{key:ot.key,id:"".concat(Xe,"-").concat(ot.key),role:"option","aria-controls":s&&"".concat(s,"-panel-").concat(ot.key),disabled:ot.disabled},ot.tab)}));function Ge(ot){for(var pt=e.filter(function(an){return!an.disabled}),St=pt.findIndex(function(an){return an.key===Ue})||0,Xt=pt.length,nn=0;nnat?(Qe=Ce,Xe.current="x"):(Qe=Ge,Xe.current="y");var Ct=Date.now();Ct-Ue.current>100&&(nt.current=!1),(c(-Qe,-Qe)||nt.current)&&(Oe.preventDefault(),nt.current=!0),Ue.current=Ct}var dt=Object(r.useRef)(null);dt.current={onTouchStart:Ve,onTouchMove:Fe,onTouchEnd:ke,onWheel:Dt},r.useEffect(function(){function Oe(ve){dt.current.onTouchStart(ve)}function Ce(ve){dt.current.onTouchMove(ve)}function Ge(ve){dt.current.onTouchEnd(ve)}function Qe(ve){dt.current.onWheel(ve)}return document.addEventListener("touchmove",Ce,{passive:!1}),document.addEventListener("touchend",Ge,{passive:!1}),a.current.addEventListener("touchstart",Oe,{passive:!1}),a.current.addEventListener("wheel",Qe),function(){document.removeEventListener("touchmove",Ce),document.removeEventListener("touchend",Ge)}},[])}function ba(){var a=Object(r.useRef)(new Map);function c(s){return a.current.has(s)||a.current.set(s,r.createRef()),a.current.get(s)}function f(s){a.current.delete(s)}return[c,f]}function Wa(a,c){var f=r.useRef(a),s=r.useState({}),e=Object(y.a)(s,2),n=e[1];function t(i){var l=typeof i=="function"?i(f.current):i;l!==f.current&&c(l,f.current),f.current=l,n({})}return[f.current,t]}var Ba=function(c){var f=c.position,s=c.prefixCls,e=c.extra;if(!e)return null;var n,t=e;return f==="right"&&(n=t.right||!t.left&&t||null),f==="left"&&(n=t.left||null),n?r.createElement("div",{className:"".concat(s,"-extra-content")},n):null};function Wo(a,c){var f,s=r.useContext(va),e=s.prefixCls,n=s.tabs,t=a.className,i=a.style,l=a.id,m=a.animated,d=a.activeKey,b=a.rtl,x=a.extra,U=a.editable,L=a.locale,Y=a.tabPosition,Te=a.tabBarGutter,Be=a.children,Le=a.onTabClick,Ve=a.onTabScroll,Fe=Object(r.useRef)(),ke=Object(r.useRef)(),Ue=Object(r.useRef)(),nt=Object(r.useRef)(),Xe=ba(),Dt=Object(y.a)(Xe,2),dt=Dt[0],Oe=Dt[1],Ce=Y==="top"||Y==="bottom",Ge=Wa(0,function(ft,Je){Ce&&Ve&&Ve({direction:ft>Je?"left":"right"})}),Qe=Object(y.a)(Ge,2),ve=Qe[0],at=Qe[1],Ct=Wa(0,function(ft,Je){!Ce&&Ve&&Ve({direction:ft>Je?"top":"bottom"})}),ot=Object(y.a)(Ct,2),pt=ot[0],St=ot[1],Xt=Object(r.useState)(0),nn=Object(y.a)(Xt,2),_t=nn[0],an=nn[1],gn=Object(r.useState)(0),sn=Object(y.a)(gn,2),ln=sn[0],At=sn[1],Zt=Object(r.useState)(0),$t=Object(y.a)(Zt,2),zt=$t[0],Dn=$t[1],Pn=Object(r.useState)(0),Wn=Object(y.a)(Pn,2),Et=Wn[0],Cn=Wn[1],Bn=Object(r.useState)(null),Ot=Object(y.a)(Bn,2),ct=Ot[0],Gt=Ot[1],Xo=Object(r.useState)(null),bo=Object(y.a)(Xo,2),na=bo[0],$o=bo[1],Go=Object(r.useState)(0),go=Object(y.a)(Go,2),Jo=go[0],Yo=go[1],Qo=Object(r.useState)(0),Eo=Object(y.a)(Qo,2),Zo=Eo[0],qo=Eo[1],er=O(new Map),yo=Object(y.a)(er,2),tr=yo[0],nr=yo[1],Fa=W(n,tr,_t),Co="".concat(e,"-nav-operations-hidden"),ga=0,Ea=0;Ce?b?(ga=0,Ea=Math.max(0,_t-ct)):(ga=Math.min(0,ct-_t),Ea=0):(ga=Math.min(0,na-ln),Ea=0);function ao(ft){return ftEa?[Ea,!1]:[ft,!0]}var Oo=Object(r.useRef)(),ar=Object(r.useState)(),xo=Object(y.a)(ar,2),oo=xo[0],jo=xo[1];function ro(){jo(Date.now())}function io(){window.clearTimeout(Oo.current)}za(Fe,function(ft,Je){var Wt=!1;function un(Ca,Oa){Ca(function(xa){var ja=ao(xa+Oa),aa=Object(y.a)(ja,2),co=aa[0],fo=aa[1];return Wt=fo,co})}if(Ce){if(ct>=_t)return Wt;un(at,ft)}else{if(na>=ln)return Wt;un(St,Je)}return io(),ro(),Wt}),Object(r.useEffect)(function(){return io(),oo&&(Oo.current=window.setTimeout(function(){jo(0)},100)),io},[oo]);function Mo(){var ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d,Je=Fa.get(ft);if(!Je)return;if(Ce){var Wt=ve;b?Je.rightve+ct&&(Wt=Je.right+Je.width-ct):Je.left<-ve?Wt=-Je.left:Je.left+Je.width>-ve+ct&&(Wt=-(Je.left+Je.width-ct)),St(0),at(ao(Wt)[0])}else{var un=pt;Je.top<-pt?un=-Je.top:Je.top+Je.height>-pt+na&&(un=-(Je.top+Je.height-na)),at(0),St(ao(un)[0])}}var or=he(Fa,{width:ct,height:na,left:ve,top:pt},{width:zt,height:Et},{width:Jo,height:Zo},Object(j.a)(Object(j.a)({},a),{},{tabs:n})),To=Object(y.a)(or,2),rr=To[0],ir=To[1],sr=n.map(function(ft){var Je=ft.key;return r.createElement(D,{id:l,prefixCls:e,key:Je,rtl:b,tab:ft,closable:ft.closable,editable:U,active:Je===d,tabPosition:Y,tabBarGutter:Te,renderWrapper:Be,removeAriaLabel:L==null?void 0:L.removeAriaLabel,ref:dt(Je),onClick:function(un){Le(Je,un)},onRemove:function(){Oe(Je)},onFocus:function(){Mo(Je),ro(),b||(Fe.current.scrollLeft=0),Fe.current.scrollTop=0}})}),so=H(function(){var ft,Je,Wt,un,Ca,Oa,xa,ja,aa,co=((ft=Fe.current)===null||ft===void 0?void 0:ft.offsetWidth)||0,fo=((Je=Fe.current)===null||Je===void 0?void 0:Je.offsetHeight)||0,Ao=((Wt=nt.current)===null||Wt===void 0?void 0:Wt.offsetWidth)||0,Lo=((un=nt.current)===null||un===void 0?void 0:un.offsetHeight)||0,mr=((Ca=Ue.current)===null||Ca===void 0?void 0:Ca.offsetWidth)||0,pr=((Oa=Ue.current)===null||Oa===void 0?void 0:Oa.offsetHeight)||0;Gt(co),$o(fo),Yo(Ao),qo(Lo);var Io=(((xa=ke.current)===null||xa===void 0?void 0:xa.offsetWidth)||0)-Ao,ko=(((ja=ke.current)===null||ja===void 0?void 0:ja.offsetHeight)||0)-Lo;an(Io),At(ko);var Uo=(aa=Ue.current)===null||aa===void 0?void 0:aa.className.includes(Co);Dn(Io-(Uo?0:mr)),Cn(ko-(Uo?0:pr)),nr(function(){var Ko=new Map;return n.forEach(function(hr){var zo=hr.key,Ma=dt(zo).current;Ma&&Ko.set(zo,{width:Ma.offsetWidth,height:Ma.offsetHeight,left:Ma.offsetLeft,top:Ma.offsetTop})}),Ko})}),lr=n.slice(0,rr),ur=n.slice(ir+1),So=[].concat(Object(ge.a)(lr),Object(ge.a)(ur)),cr=Object(r.useState)(),Ro=Object(y.a)(cr,2),dr=Ro[0],fr=Ro[1],_n=Fa.get(d),No=Object(r.useRef)();function Do(){pe.a.cancel(No.current)}Object(r.useEffect)(function(){var ft={};return _n&&(Ce?(b?ft.right=_n.right:ft.left=_n.left,ft.width=_n.width):(ft.top=_n.top,ft.height=_n.height)),Do(),No.current=pe()(function(){fr(ft)}),Do},[_n,Ce,b]),Object(r.useEffect)(function(){Mo()},[d,_n,Fa,Ce]),Object(r.useEffect)(function(){so()},[b,Te,d,n.map(function(ft){return ft.key}).join("_")]);var Po=!!So.length,ya="".concat(e,"-nav-wrap"),lo,uo,_o,wo;return Ce?b?(uo=ve>0,lo=ve+ct<_t):(lo=ve<0,uo=-ve+ct<_t):(_o=pt<0,wo=-pt+na1)Object(ge.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(W.length===0)return Object(ge.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var I=W[0];if(h.isValidElement(I)&&Object(Q.c)(I)){var he=I.ref;W[0]=h.cloneElement(I,{ref:Object(Q.a)(he,this.setChildNode)})}return W.length===1?W[0]:W.map(function(T,P){return!h.isValidElement(T)||"key"in T&&T.key!==null?T:h.cloneElement(T,{key:"".concat(oe,"-").concat(P)})})}}]),z}(h.Component);H.displayName="ResizeObserver",ee.a=H},wCXF:function(et,ee,o){"use strict";o.d(ee,"a",function(){return kt});var C=o("rePB"),y=o("VTBJ"),ce=o("KQm4"),j=o("U8pU"),r=o("ODXe"),h=o("q1tI"),F=o("TSYQ"),q=o.n(F),R=o("Gytx"),ge=o.n(R),Q=o("Kwbf"),pe=o("t23M"),oe=o("qx4F"),H=o("6eGT"),O=o("IBYe"),g=o("Ff2n"),z=o("c+Xe"),D=o("fyJ8"),k=o("biw7");function W(E,B,X,ue,be){var re=X[E]||{},ae=X[B]||{},G,te;re.fixed==="left"?G=ue.left[E]:ae.fixed==="right"&&(te=ue.right[B]);var ye=!1,fe=!1,Ee=!1,Ae=!1,je=X[B+1],ze=X[E-1];if(be==="rtl"){if(G!==void 0){var mt=ze&&ze.fixed==="left";Ae=!mt}else if(te!==void 0){var tt=je&&je.fixed==="right";Ee=!tt}}else if(G!==void 0){var ut=je&&je.fixed==="left";ye=!ut}else if(te!==void 0){var Ie=ze&&ze.fixed==="right";fe=!Ie}return{fixLeft:G,fixRight:te,lastFixLeft:ye,firstFixRight:fe,lastFixRight:Ee,firstFixLeft:Ae,isSticky:ue.isSticky}}var I=o("sR1s");function he(E){var B=E.cells,X=E.stickyOffsets,ue=E.flattenColumns,be=E.rowComponent,re=E.cellComponent,ae=E.onHeaderRow,G=E.index,te=h.useContext(k.a),ye=te.prefixCls,fe=te.direction,Ee;ae&&(Ee=ae(B.map(function(je){return je.column}),G));var Ae=Object(I.a)(B.map(function(je){return je.column}));return h.createElement(be,Object.assign({},Ee),B.map(function(je,ze){var mt=je.column,tt=W(je.colStart,je.colEnd,ue,X,fe),ut;return mt&&mt.onHeaderCell&&(ut=je.column.onHeaderCell(mt)),h.createElement(D.a,Object.assign({},je,{ellipsis:mt.ellipsis,align:mt.align,component:re,prefixCls:ye,key:Ae[ze]},tt,{additionalProps:ut,rowType:"header"}))}))}he.displayName="HeaderRow";var T=he;function P(E){var B=[];function X(ae,G){var te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;B[te]=B[te]||[];var ye=G,fe=ae.filter(Boolean).map(function(Ee){var Ae={key:Ee.key,className:Ee.className||"",children:Ee.title,column:Ee,colStart:ye},je=1,ze=Ee.children;return ze&&ze.length>0&&(je=X(ze,ye,te+1).reduce(function(mt,tt){return mt+tt},0),Ae.hasSubColumns=!0),"colSpan"in Ee&&(je=Ee.colSpan),"rowSpan"in Ee&&(Ae.rowSpan=Ee.rowSpan),Ae.colSpan=je,Ae.colEnd=Ae.colStart+je-1,B[te].push(Ae),ye+=je,je});return fe}X(E,0);for(var ue=B.length,be=function(G){B[G].forEach(function(te){!("rowSpan"in te)&&!te.hasSubColumns&&(te.rowSpan=ue-G)})},re=0;re=0;G-=1){var te=B[G],ye=X&&X[G],fe=ye&&ye[v.a];(te||fe||ae)&&(be.unshift(h.createElement("col",Object.assign({key:G,style:{width:te,minWidth:te}},fe))),ae=!0)}return h.createElement("colgroup",null,be)}var M=u;function S(E,B){return Object(h.useMemo)(function(){for(var X=[],ue=0;ue1?Jt-1:0),dn=1;dn=Ee&&(yt=Ee-Ae),ae({scrollLeft:yt/Ee*(fe+2)}),Ie.current.x=We.pageX},gt=function(){var We=Object(xt.b)(re.current).top,Tt=We+re.current.offsetHeight,Ht=document.documentElement.scrollTop+window.innerHeight;Tt-Object(oe.a)()<=Ht||We>=Ht-G?ut(function(Vt){return Object(y.a)(Object(y.a)({},Vt),{},{isHiddenScrollBar:!0})}):ut(function(Vt){return Object(y.a)(Object(y.a)({},Vt),{},{isHiddenScrollBar:!1})})},bt=function(We){ut(function(Tt){return Object(y.a)(Object(y.a)({},Tt),{},{scrollLeft:We/fe*Ee||0})})};return h.useImperativeHandle(X,function(){return{setScrollLeft:bt}}),h.useEffect(function(){var st=Object(ht.a)(document.body,"mouseup",Ut,!1),We=Object(ht.a)(document.body,"mousemove",Ft,!1);return gt(),function(){st.remove(),We.remove()}},[Ae,vt]),h.useEffect(function(){var st=Object(ht.a)(window,"scroll",gt,!1),We=Object(ht.a)(window,"resize",gt,!1);return function(){st.remove(),We.remove()}},[]),h.useEffect(function(){tt.isHiddenScrollBar||ut(function(st){var We,Tt;return Object(y.a)(Object(y.a)({},st),{},{scrollLeft:re.current.scrollLeft/((We=re.current)===null||We===void 0?void 0:We.scrollWidth)*((Tt=re.current)===null||Tt===void 0?void 0:Tt.clientWidth)})})},[tt.isHiddenScrollBar]),fe<=Ee||!Ae||tt.isHiddenScrollBar?null:h.createElement("div",{style:{height:Object(oe.a)(),width:Ee,bottom:G},className:"".concat(ye,"-sticky-scroll")},h.createElement("div",{onMouseDown:it,ref:je,className:q()("".concat(ye,"-sticky-scroll-bar"),Object(C.a)({},"".concat(ye,"-sticky-scroll-bar-active"),vt)),style:{width:"".concat(Ae,"px"),transform:"translate3d(".concat(tt.scrollLeft,"px, 0, 0)")}}))},_e=h.forwardRef(lt);function Ke(E,B){return h.useMemo(function(){var X=!!E;return{isSticky:X,stickyClassName:X?"".concat(B,"-sticky-header"):"",offsetHeader:Object(j.a)(E)==="object"&&E.offsetHeader||0,offsetScroll:Object(j.a)(E)==="object"&&E.offsetScroll||0}},[E,B])}var It=[],Lt={},kt="rc-table-internal-hook",jt=h.memo(function(E){var B=E.children;return B},function(E,B){return ge()(E.props,B.props)?E.pingLeft!==B.pingLeft||E.pingRight!==B.pingRight:!1});function wt(E){var B,X=E.prefixCls,ue=E.className,be=E.rowClassName,re=E.style,ae=E.data,G=E.rowKey,te=E.scroll,ye=E.tableLayout,fe=E.direction,Ee=E.title,Ae=E.footer,je=E.summary,ze=E.id,mt=E.showHeader,tt=E.components,ut=E.emptyText,Ie=E.onRow,Bt=E.onHeaderRow,Mt=E.internalHooks,vt=E.transformColumns,Pt=E.internalRefs,Ut=E.sticky,it=ae||It,Ft=!!it.length,gt=h.useState(0),bt=Object(r.a)(gt,2),st=bt[0],We=bt[1];h.useEffect(function(){We(Object(oe.a)())});var Tt=h.useMemo(function(){return Object(I.c)(tt,{})},[tt]),Ht=h.useCallback(function(Ze,qe){return Object(I.b)(Tt,Ze)||qe},[Tt]),Vt=h.useMemo(function(){return typeof G=="function"?G:function(Ze){var qe=Ze&&Ze[G];return qe}},[G]),yt=Object(v.c)(E),wn=yt.expandIcon,An=yt.expandedRowKeys,Fn=yt.defaultExpandedRowKeys,on=yt.defaultExpandAllRows,hn=yt.expandedRowRender,On=yt.onExpand,xn=yt.onExpandedRowsChange,Hn=yt.expandRowByClick,qt=yt.rowExpandable,Ln=yt.expandIconColumnIndex,En=yt.expandedRowClassName,In=yt.childrenColumnName,jn=yt.indentSize,vn=wn||rt,Mn=In||"children",Vn=h.useMemo(function(){return hn?"row":E.expandable&&Mt===kt&&E.expandable.__PARENT_RENDER_ICON__||it.some(function(Ze){return Ze&&Object(j.a)(Ze)==="object"&&Ze[Mn]})?"nest":!1},[!!hn,it]),Tn=h.useState(function(){return Fn||(on?$e(it,Vt,Mn):[])}),Kt=Object(r.a)(Tn,2),Qt=Kt[0],rn=Kt[1],Jt=h.useMemo(function(){return new Set(An||Qt||[])},[An,Qt]),en=h.useCallback(function(Ze){var qe=Vt(Ze,it.indexOf(Ze)),Nt,Yt=Jt.has(qe);Yt?(Jt.delete(qe),Nt=Object(ce.a)(Jt)):Nt=[].concat(Object(ce.a)(Jt),[qe]),rn(Nt),On&&On(!Yt,Ze),xn&&xn(Nt)},[Vt,Jt,it,On,xn]),dn=h.useState(0),Xn=Object(r.a)(dn,2),kn=Xn[0],$n=Xn[1],Ta=Object($.b)(Object(y.a)(Object(y.a)(Object(y.a)({},E),yt),{},{expandable:!!hn,expandedKeys:Jt,getRowKey:Vt,onTriggerExpand:en,expandIcon:vn,expandIconColumnIndex:Ln,direction:fe}),Mt===kt?vt:null),Sa=Object(r.a)(Ta,2),Gn=Sa[0],Rt=Sa[1],Jn=h.useMemo(function(){return{columns:Gn,flattenColumns:Rt}},[Gn,Rt]),Yn=h.useRef(),Ra=h.useRef(),fn=h.useRef(),Ha=h.useState(!1),Na=Object(r.a)(Ha,2),oa=Na[0],Va=Na[1],Xa=h.useState(!1),ra=Object(r.a)(Xa,2),Qn=ra[0],$a=ra[1],Ga=_(new Map),Da=Object(r.a)(Ga,2),Ja=Da[0],Ya=Da[1],bn=Object(I.a)(Rt),ia=bn.map(function(Ze){return Ja.get(Ze)}),Pa=h.useMemo(function(){return ia},[ia.join("_")]),sa=De(Pa,Rt.length,fe),tn=te&&Object(I.d)(te.y),mn=te&&Object(I.d)(te.x),pn=mn&&Rt.some(function(Ze){var qe=Ze.fixed;return qe}),la=h.useRef(),Un=Ke(Ut,X),Kn=Un.isSticky,_a=Un.offsetHeader,Qa=Un.offsetScroll,wa=Un.stickyClassName,ua,Zn,Sn;tn&&(Zn={overflowY:"scroll",maxHeight:te.y}),mn&&(ua={overflowX:"auto"},tn||(Zn={overflowY:"hidden"}),Sn={width:te.x===!0?"auto":te.x,minWidth:"100%"});var yn=h.useCallback(function(Ze,qe){Ya(function(Nt){var Yt=new Map(Nt);return Yt.set(Ze,qe),Yt})},[]),qn=K(null),Aa=Object(r.a)(qn,2),La=Aa[0],Ia=Aa[1];function ea(Ze,qe){if(!qe)return;typeof qe=="function"?qe(Ze):qe.scrollLeft!==Ze&&(qe.scrollLeft=Ze)}var Rn=function(qe){var Nt=qe.currentTarget,Yt=qe.scrollLeft,zn=typeof Yt=="number"?Yt:Nt.scrollLeft,za=Nt||Lt;if(!Ia()||Ia()===za){var ba;La(za),ea(zn,Ra.current),ea(zn,fn.current),ea(zn,(ba=la.current)===null||ba===void 0?void 0:ba.setScrollLeft)}if(Nt){var Wa=Nt.scrollWidth,Ba=Nt.clientWidth;Va(zn>0),$a(zn0?[].concat(Object(y.a)(g),Object(y.a)(Q(W).map(function(I){return Object(ce.a)({fixed:k},I)}))):[].concat(Object(y.a)(g),[Object(ce.a)(Object(ce.a)({},z),{},{fixed:k})])},[])}function pe(O){for(var g=!0,z=0;z=0;W-=1){var I=O[W];if(k&&I.fixed!=="right")k=!1;else if(!k&&I.fixed==="right"){Object(F.a)(!1,"Index ".concat(W+1," of `columns` missing `fixed='right'` prop."));break}}}function oe(O){return O.map(function(g){var z=g.fixed,D=Object(j.a)(g,["fixed"]),k=z;return z==="left"?k="right":z==="right"&&(k="left"),Object(ce.a)({fixed:k},D)})}function H(O,g){var z=O.prefixCls,D=O.columns,k=O.children,W=O.expandable,I=O.expandedKeys,he=O.getRowKey,T=O.onTriggerExpand,P=O.expandIcon,w=O.rowExpandable,p=O.expandIconColumnIndex,v=O.direction,u=O.expandRowByClick,M=r.useMemo(function(){return D||ge(k)},[D,k]),S=r.useMemo(function(){if(W){var A,ne=p||0,me=M[ne],Se=(A={},Object(C.a)(A,R.a,{className:"".concat(z,"-expand-icon-col")}),Object(C.a)(A,"title",""),Object(C.a)(A,"fixed",me?me.fixed:null),Object(C.a)(A,"className","".concat(z,"-row-expand-icon-cell")),Object(C.a)(A,"render",function(V,Me,Re){var Ne=he(Me,Re),we=I.has(Ne),J=w?w(Me):!0,$=P({prefixCls:z,expanded:we,expandable:J,record:Me,onExpand:T});return u?r.createElement("span",{onClick:function(Z){return Z.stopPropagation()}},$):$}),A),Ye=M.slice();return ne>=0&&Ye.splice(ne,0,Se),Ye}return M},[W,M,he,I,P,v]),N=r.useMemo(function(){var A=S;return g&&(A=g(A)),A.length||(A=[{render:function(){return null}}]),A},[g,S,v]),ie=r.useMemo(function(){return v==="rtl"?oe(Q(N)):Q(N)},[N,v]);return[N,ie]}ee.b=H},"y0+3":function(et,ee,o){"use strict";o.d(ee,"a",function(){return Q}),o.d(ee,"b",function(){return oe});var C=/margin|padding|width|height|max|min|offset/,y={left:!0,top:!0},ce={cssFloat:1,styleFloat:1,float:1};function j(H){return H.nodeType===1?H.ownerDocument.defaultView.getComputedStyle(H,null):{}}function r(H,O,g){if(O=O.toLowerCase(),g==="auto"){if(O==="height")return H.offsetHeight;if(O==="width")return H.offsetWidth}return O in y||(y[O]=C.test(O)),y[O]?parseFloat(g)||0:g}function h(H,O){var g=arguments.length,z=j(H);return O=ce[O]?"cssFloat"in H.style?"cssFloat":"styleFloat":O,g===1?z:r(H,O,z[O]||H.style[O])}function F(H,O,g){var z=arguments.length;if(O=ce[O]?"cssFloat"in H.style?"cssFloat":"styleFloat":O,z===3)return typeof g=="number"&&C.test(O)&&(g="".concat(g,"px")),H.style[O]=g,g;for(var D in O)O.hasOwnProperty(D)&&F(H,D,O[D]);return j(H)}function q(H){return H===document.body?document.documentElement.clientWidth:H.offsetWidth}function R(H){return H===document.body?window.innerHeight||document.documentElement.clientHeight:H.offsetHeight}function ge(){var H=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),O=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:H,height:O}}function Q(){var H=document.documentElement.clientWidth,O=window.innerHeight||document.documentElement.clientHeight;return{width:H,height:O}}function pe(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function oe(H){var O=H.getBoundingClientRect(),g=document.documentElement;return{left:O.left+(window.pageXOffset||g.scrollLeft)-(g.clientLeft||document.body.clientLeft||0),top:O.top+(window.pageYOffset||g.scrollTop)-(g.clientTop||document.body.clientTop||0)}}}}]); +`,ie=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],A={},ne;function me(J){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,se=J.getAttribute("id")||J.getAttribute("data-reactid")||J.getAttribute("name");if($&&A[se])return A[se];var Z=window.getComputedStyle(J),_=Z.getPropertyValue("box-sizing")||Z.getPropertyValue("-moz-box-sizing")||Z.getPropertyValue("-webkit-box-sizing"),K=parseFloat(Z.getPropertyValue("padding-bottom"))+parseFloat(Z.getPropertyValue("padding-top")),de=parseFloat(Z.getPropertyValue("border-bottom-width"))+parseFloat(Z.getPropertyValue("border-top-width")),De=ie.map(function(le){return"".concat(le,":").concat(Z.getPropertyValue(le))}).join(";"),He={sizingStyle:De,paddingSize:K,borderSize:de,boxSizing:_};return $&&se&&(A[se]=He),He}function Te(J){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ne||(ne=document.createElement("textarea"),ne.setAttribute("tab-index","-1"),ne.setAttribute("aria-hidden","true"),document.body.appendChild(ne)),J.getAttribute("wrap")?ne.setAttribute("wrap",J.getAttribute("wrap")):ne.removeAttribute("wrap");var _=me(J,$),K=_.paddingSize,de=_.borderSize,De=_.boxSizing,He=_.sizingStyle;ne.setAttribute("style","".concat(He,";").concat(N)),ne.value=J.value||J.placeholder||"";var le=Number.MIN_SAFE_INTEGER,Pe=Number.MAX_SAFE_INTEGER,rt=ne.scrollHeight,$e;if(De==="border-box"?rt+=de:De==="content-box"&&(rt-=K),se!==null||Z!==null){ne.value=" ";var ht=ne.scrollHeight-K;se!==null&&(le=ht*se,De==="border-box"&&(le=le+K+de),rt=Math.max(le,rt)),Z!==null&&(Pe=ht*Z,De==="border-box"&&(Pe=Pe+K+de),$e=rt>Pe?"":"hidden",rt=Math.min(Pe,rt))}return{height:rt,minHeight:le,maxHeight:Pe,overflowY:$e,resize:"none"}}var Ye=o("Gytx"),xe=o.n(Ye),V;(function(J){J[J.NONE=0]="NONE",J[J.RESIZING=1]="RESIZING",J[J.RESIZED=2]="RESIZED"})(V||(V={}));var Me=function(J){Object(j.a)(se,J);var $=Object(r.a)(se);function se(Z){var _;return Object(y.a)(this,se),_=$.call(this,Z),_.nextFrameActionId=void 0,_.resizeFrameId=void 0,_.textArea=void 0,_.saveTextArea=function(K){_.textArea=K},_.handleResize=function(K){var de=_.state.resizeStatus,De=_.props,He=De.autoSize,le=De.onResize;if(de!==V.NONE)return;typeof le=="function"&&le(K),He&&_.resizeOnNextFrame()},_.resizeOnNextFrame=function(){cancelAnimationFrame(_.nextFrameActionId),_.nextFrameActionId=requestAnimationFrame(_.resizeTextarea)},_.resizeTextarea=function(){var K=_.props.autoSize;if(!K||!_.textArea)return;var de=K.minRows,De=K.maxRows,He=Te(_.textArea,!1,de,De);_.setState({textareaStyles:He,resizeStatus:V.RESIZING},function(){cancelAnimationFrame(_.resizeFrameId),_.resizeFrameId=requestAnimationFrame(function(){_.setState({resizeStatus:V.RESIZED},function(){_.resizeFrameId=requestAnimationFrame(function(){_.setState({resizeStatus:V.NONE}),_.fixFirefoxAutoScroll()})})})})},_.renderTextArea=function(){var K=_.props,de=K.prefixCls,De=de===void 0?"rc-textarea":de,He=K.autoSize,le=K.onResize,Pe=K.className,rt=K.disabled,$e=_.state,ht=$e.textareaStyles,xt=$e.resizeStatus,lt=Object(u.a)(_.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),_e=T()(De,Pe,Object(q.a)({},"".concat(De,"-disabled"),rt));"value"in lt&&(lt.value=lt.value||"");var Ke=Object(F.a)(Object(F.a)(Object(F.a)({},_.props.style),ht),xt===V.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return h.createElement(v,{onResize:_.handleResize,disabled:!(He||le)},h.createElement("textarea",Object(C.a)({},lt,{className:_e,style:Ke,ref:_.saveTextArea})))},_.state={textareaStyles:{},resizeStatus:V.NONE},_}return Object(ce.a)(se,[{key:"componentDidUpdate",value:function(_){(_.value!==this.props.value||!xe()(_.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var _=this.textArea.selectionStart,K=this.textArea.selectionEnd;this.textArea.setSelectionRange(_,K)}}catch(de){}}},{key:"render",value:function(){return this.renderTextArea()}}]),se}(h.Component),Re=Me,Ne=function(J){Object(j.a)(se,J);var $=Object(r.a)(se);function se(Z){var _;Object(y.a)(this,se),_=$.call(this,Z),_.resizableTextArea=void 0,_.focus=function(){_.resizableTextArea.textArea.focus()},_.saveTextArea=function(de){_.resizableTextArea=de},_.handleChange=function(de){var De=_.props.onChange;_.setValue(de.target.value,function(){_.resizableTextArea.resizeTextarea()}),De&&De(de)},_.handleKeyDown=function(de){var De=_.props,He=De.onPressEnter,le=De.onKeyDown;de.keyCode===13&&He&&He(de),le&&le(de)};var K=typeof Z.value=="undefined"||Z.value===null?Z.defaultValue:Z.value;return _.state={value:K},_}return Object(ce.a)(se,[{key:"setValue",value:function(_,K){"value"in this.props||this.setState({value:_},K)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return h.createElement(Re,Object(C.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(_){return"value"in _?{value:_.value}:null}}]),se}(h.Component),we=ee.default=Ne},bT9E:function(et,ee,o){"use strict";o.d(ee,"a",function(){return y});var C=o("VTBJ");function y(ce,j){var r=Object(C.a)({},ce);return Array.isArray(j)&&j.forEach(function(h){delete r[h]}),r}},biw7:function(et,ee,o){"use strict";var C=o("q1tI"),y=o.n(C),ce=C.createContext(null);ee.a=ce},cVrb:function(et,ee,o){"use strict";o.r(ee);var C=o("DjyN"),y=o("NUBc"),ce=o("k1fw"),j=o("g9YV"),r=o("wCAj"),h=o("/zsF"),F=o("PArb"),q=o("+L6B"),R=o("2/Rp"),ge=o("9og8"),Q=o("tJVT"),pe=o("Znn+"),oe=o("ZTPi"),H=o("tU7J"),O=o("wFql"),g=o("WmNS"),z=o.n(g),D=o("q1tI"),k=o.n(D),W=o("9kvl"),I=o("ErOA"),he=o("wd/R"),S=o.n(he),P=o("xKgJ"),w=o("H84S"),p=o.n(w),v=O.a.Paragraph,u=oe.a.TabPane,M=function(N){var ie=N.dispatch,A=Object(D.useState)({limit:10,page:1,tab:"public"}),ne=Object(Q.a)(A,2),me=ne[0],Te=ne[1],Ye=Object(D.useState)([]),xe=Object(Q.a)(Ye,2),V=xe[0],Me=xe[1];Object(D.useEffect)(function(){Re()},[]);function Re(){return Ne.apply(this,arguments)}function Ne(){return Ne=Object(ge.a)(z.a.mark(function J(){var $;return z.a.wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return Z.next=2,Object(I.a)("/api/sci/projects/sci_mirror_repositories.json",{method:"get",params:me});case 2:$=Z.sent,Me($);case 4:case"end":return Z.stop()}},J)})),Ne.apply(this,arguments)}var we=function($,se){if((V==null?void 0:V.my_sci_projects_num)>=10&&!Object(P.v)()){ie({type:"innovation/openSimpleModal",payload:{title:"\u9879\u76EE\u6570\u91CF\u8FBE\u5230\u4E0A\u9650",children:"\u6BCF\u4F4D\u7528\u6237\u6700\u591A\u53EA\u80FD\u521B\u5EFA10\u4E2A\u9879\u76EE\uFF0C\u4F60\u7684\u9879\u76EE\u6570\u91CF\u5DF2\u7ECF\u8FBE\u5230\u4E0A\u9650\u3002",footer:k.a.createElement(R.a,{onClick:function(){return ie({type:"innovation/closeSimpleModal"})},type:"primary"},"\u6211\u77E5\u9053\u4E86")}});return}W.d.push("/innovation/project/create?mirror_type=".concat($,"&mirror_repository_id=").concat(se,"&tab=public"))};return k.a.createElement("div",null,k.a.createElement("div",{className:p.a.header},k.a.createElement("span",{className:p.a.title},"\u516C\u5F00\u955C\u50CF\u5217\u8868")),k.a.createElement(F.a,null),k.a.createElement(r.a,{dataSource:V==null?void 0:V.sci_mirrors,columns:[{title:"\u5E8F\u53F7",dataIndex:"filename",key:"filename",render:function($,se,Z){return me.limit*(me.page-1)+Z+1}},{title:"\u955C\u50CF\u540D\u79F0",dataIndex:"name",width:"20%",ellipsis:!0,key:"name"},{title:"\u955C\u50CF\u7C7B\u578B",dataIndex:"mirror_type_cn",key:"mirror_type_cn",width:"10%",ellipsis:!0},{title:"\u955C\u50CF\u63CF\u8FF0",dataIndex:"description",key:"description",width:"20%",ellipsis:!0},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_at",key:"created_at",width:"10%",ellipsis:!0,render:function($){return S()($).format("YYYY-MM-DD HH:mm")}},{title:"\u521B\u5EFA\u8005",dataIndex:"user_name",key:"user_name",width:"10%",ellipsis:!0},{title:"\u64CD\u4F5C",dataIndex:"id",key:"id",width:"20%",ellipsis:!0,render:function($,se){var Z=se.mirror_type,_=se.mirror_repository_id;return k.a.createElement("div",{className:p.a.link,onClick:function(){return we(Z,_)}},"\u521B\u5EFA\u9879\u76EE")}}],pagination:!1}),k.a.createElement(y.a,{style:{textAlign:"center",marginTop:20},current:me.page,total:V==null?void 0:V.count,showSizeChanger:!1,pageSize:10,hideOnSinglePage:!0,onChange:function($){me.page=$,Te(Object(ce.a)({},me)),Re()}}))};ee.default=Object(W.a)(function(T){var N=T.innovation;return{innovation:N}})(M)},fyJ8:function(et,ee,o){"use strict";var C=o("rePB"),y=o("VTBJ"),ce=o("Ff2n"),j=o("U8pU"),r=o("q1tI"),h=o.n(r),F=o("TSYQ"),q=o.n(F),R=o("c+Xe"),ge=o("sR1s");function Q(g){return g&&Object(j.a)(g)==="object"&&!Array.isArray(g)&&!r.isValidElement(g)}function pe(g){return typeof g=="string"?!0:Object(R.c)(g)}function oe(g,z){var D,k=g.prefixCls,W=g.className,I=g.record,he=g.index,S=g.dataIndex,P=g.render,w=g.children,p=g.component,v=p===void 0?"td":p,u=g.colSpan,M=g.rowSpan,T=g.fixLeft,N=g.fixRight,ie=g.firstFixLeft,A=g.lastFixLeft,ne=g.firstFixRight,me=g.lastFixRight,Te=g.appendNode,Ye=g.additionalProps,xe=Ye===void 0?{}:Ye,V=g.ellipsis,Me=g.align,Re=g.rowType,Ne=g.isSticky,we="".concat(k,"-cell"),J,$;if(w)$=w;else{var se=Object(ge.b)(I,S);if($=se,P){var Z=P(se,I,he);Q(Z)?($=Z.children,J=Z.props):$=Z}}Object(j.a)($)==="object"&&!Array.isArray($)&&!r.isValidElement($)&&($=null),V&&(A||ne)&&($=r.createElement("span",{className:"".concat(we,"-content")},$));var _=J||{},K=_.colSpan,de=_.rowSpan,De=_.style,He=_.className,le=Object(ce.a)(_,["colSpan","rowSpan","style","className"]),Pe=K!==void 0?K:u,rt=de!==void 0?de:M;if(Pe===0||rt===0)return null;var $e={},ht=typeof T=="number",xt=typeof N=="number";ht&&($e.position="sticky",$e.left=T),xt&&($e.position="sticky",$e.right=N);var lt={};Me&&(lt.textAlign=Me);var _e,Ke=V===!0?{showTitle:!0}:V;Ke&&(Ke.showTitle||Re==="header")&&(typeof $=="string"||typeof $=="number"?_e=$.toString():r.isValidElement($)&&typeof $.props.children=="string"&&(_e=$.props.children));var It=Object(y.a)(Object(y.a)(Object(y.a)({title:_e},le),xe),{},{colSpan:Pe&&Pe!==1?Pe:null,rowSpan:rt&&rt!==1?rt:null,className:q()(we,W,(D={},Object(C.a)(D,"".concat(we,"-fix-left"),ht),Object(C.a)(D,"".concat(we,"-fix-left-first"),ie),Object(C.a)(D,"".concat(we,"-fix-left-last"),A),Object(C.a)(D,"".concat(we,"-fix-right"),xt),Object(C.a)(D,"".concat(we,"-fix-right-first"),ne),Object(C.a)(D,"".concat(we,"-fix-right-last"),me),Object(C.a)(D,"".concat(we,"-ellipsis"),V),Object(C.a)(D,"".concat(we,"-with-append"),Te),Object(C.a)(D,"".concat(we,"-fix-sticky"),(ht||xt)&&Ne),D),xe.className,He),style:Object(y.a)(Object(y.a)(Object(y.a)(Object(y.a)({},xe.style),lt),$e),De),ref:pe(v)?z:null});return r.createElement(v,Object.assign({},It),Te,$)}var H=r.forwardRef(oe);H.displayName="Cell";var O=r.memo(H,function(g,z){return z.shouldCellUpdate?!z.shouldCellUpdate(z.record,g.record):!1});ee.a=O},hW8S:function(et,ee,o){"use strict";o.d(ee,"a",function(){return j}),o.d(ee,"c",function(){return r}),o.d(ee,"b",function(){return h});var C=o("VTBJ"),y=o("Ff2n"),ce=o("Kwbf"),j="RC_TABLE_INTERNAL_COL_DEFINE";function r(F){var q=F.expandable,R=Object(y.a)(F,["expandable"]);return"expandable"in F?Object(C.a)(Object(C.a)({},R),q):R}function h(F){return Object.keys(F).reduce(function(q,R){return(R.substr(0,5)==="data-"||R.substr(0,5)==="aria-")&&(q[R]=F[R]),q},{})}},k3GJ:function(et,ee,o){"use strict";o.d(ee,"a",function(){return po});var C=o("rePB"),y=o("ODXe"),ce=o("Ff2n"),j=o("VTBJ"),r=o("q1tI"),h=o("TSYQ"),F=o.n(h),q=o("Zm9Q"),R=o("6cGi"),ge=o("KQm4"),Q=o("xEkU"),pe=o.n(Q),oe=o("t23M");function H(a){var c=Object(r.useRef)(),f=Object(r.useRef)(!1);function s(){for(var e=arguments.length,n=new Array(e),t=0;tb&&(L=b-U),Object(r.useMemo)(function(){if(!n.length)return[0,0];for(var Y=n.length,Se=Y,Be=0;Bed+L){Se=Be-1;break}}for(var Ve=0,Fe=Y-1;Fe>=0;Fe-=1){var ke=a.get(n[Fe].key)||I;if(ke[m]1&&arguments[1]!==void 0?arguments[1]:!1,s=c&&typeof c.getBoundingClientRect=="function"&&c.getBoundingClientRect().width;if(s){if(f){var e=getComputedStyle(c),n=e.marginLeft,t=e.marginRight;s+=+n.replace("px","")+ +t.replace("px","")}s=+s.toFixed(6)}return s||0},_e=function(c,f,s){c&&Object(ne.a)(c.style)==="object"&&(c.style[f]=s)},Ke=function(){return He.any},It=o("bdgK"),Lt=o("i8i4"),kt=o.n(Lt),jt=o("wgJM"),wt=o("l4aY"),cn=o("m+aA"),E=o("c+Xe"),B=o("zT1h"),X=o("QC+M");function ue(a,c,f){return f?a[0]===c[0]:a[0]===c[0]&&a[1]===c[1]}function be(a,c,f){var s=a[c]||{};return Object(j.a)(Object(j.a)({},s),f)}function re(a,c,f,s){for(var e=f.points,n=Object.keys(a),t=0;t1&&arguments[1]!==void 0?arguments[1]:2;c();var n=Object(jt.a)(function(){e<=1?s({isCanceled:function(){return n!==a.current}}):f(s,e-1)});a.current=n}return r.useEffect(function(){return function(){c()}},[]),[f,c]},wn=[gt,bt,st,We],An=!1,Fn=!0;function on(a){return a===st||a===We}var hn=function(a,c){var f=r.useState(Ft),s=Object(y.a)(f,2),e=s[0],n=s[1],t=yt(),i=Object(y.a)(t,2),l=i[0],m=i[1];function d(){n(gt)}return Vt(function(){if(e!==Ft&&e!==We){var b=wn.indexOf(e),x=wn[b+1],U=c(e);U===An?n(x):l(function(L){function Y(){if(L.isCanceled())return;n(x)}U===!0?Y():Promise.resolve(U).then(Y)})}},[a,e]),r.useEffect(function(){return function(){m()}},[]),[d,e]},On=function(a){var c=Object(r.useRef)(),f=Object(r.useRef)(a);f.current=a;var s=r.useCallback(function(t){f.current(t)},[]);function e(t){t&&(t.removeEventListener(Bt,s),t.removeEventListener(Ie,s))}function n(t){c.current&&c.current!==t&&e(c.current),t&&t!==c.current&&(t.addEventListener(Bt,s),t.addEventListener(Ie,s),c.current=t)}return r.useEffect(function(){return function(){e(c.current)}},[]),[n,e]};function xn(a,c,f,s){var e=s.motionEnter,n=e===void 0?!0:e,t=s.motionAppear,i=t===void 0?!0:t,l=s.motionLeave,m=l===void 0?!0:l,d=s.motionDeadline,b=s.motionLeaveImmediately,x=s.onAppearPrepare,U=s.onEnterPrepare,L=s.onLeavePrepare,Y=s.onAppearStart,Se=s.onEnterStart,Be=s.onLeaveStart,Le=s.onAppearActive,Ve=s.onEnterActive,Fe=s.onLeaveActive,ke=s.onAppearEnd,Ue=s.onEnterEnd,nt=s.onLeaveEnd,Xe=s.onVisibleChanged,Dt=St(),dt=Object(y.a)(Dt,2),Oe=dt[0],Ce=dt[1],Ge=St(vt),Qe=Object(y.a)(Ge,2),ve=Qe[0],at=Qe[1],Ct=St(null),ot=Object(y.a)(Ct,2),pt=ot[0],Tt=ot[1],Xt=Object(r.useRef)(!1),nn=Object(r.useRef)(null),_t=Object(r.useRef)(!1),an=Object(r.useRef)(null);function gn(){var Ot=f();return Ot||an.current}var sn=Object(r.useRef)(!1);function ln(Ot){var ct=gn();if(Ot&&!Ot.deadline&&Ot.target!==ct)return;var Gt;ve===Pt&&sn.current?Gt=ke==null?void 0:ke(ct,Ot):ve===Ut&&sn.current?Gt=Ue==null?void 0:Ue(ct,Ot):ve===it&&sn.current&&(Gt=nt==null?void 0:nt(ct,Ot)),Gt!==!1&&!_t.current&&(at(vt),Tt(null))}var At=On(ln),Zt=Object(y.a)(At,1),$t=Zt[0],zt=r.useMemo(function(){var Ot,ct,Gt;switch(ve){case"appear":return Ot={},Object(C.a)(Ot,gt,x),Object(C.a)(Ot,bt,Y),Object(C.a)(Ot,st,Le),Ot;case"enter":return ct={},Object(C.a)(ct,gt,U),Object(C.a)(ct,bt,Se),Object(C.a)(ct,st,Ve),ct;case"leave":return Gt={},Object(C.a)(Gt,gt,L),Object(C.a)(Gt,bt,Be),Object(C.a)(Gt,st,Fe),Gt;default:return{}}},[ve]),Dn=hn(ve,function(Ot){if(Ot===gt){var ct=zt[gt];return ct?ct(gn()):An}if(Et in zt){var Gt;Tt(((Gt=zt[Et])===null||Gt===void 0?void 0:Gt.call(zt,gn(),null))||null)}return Et===st&&($t(gn()),d>0&&(clearTimeout(nn.current),nn.current=setTimeout(function(){ln({deadline:!0})},d))),Fn}),Pn=Object(y.a)(Dn,2),Wn=Pn[0],Et=Pn[1],Cn=on(Et);sn.current=Cn,Vt(function(){Ce(c);var Ot=Xt.current;if(Xt.current=!0,!a)return;var ct;!Ot&&c&&i&&(ct=Pt),Ot&&c&&n&&(ct=Ut),(Ot&&!c&&m||!Ot&&b&&!c&&m)&&(ct=it),ct&&(at(ct),Wn())},[c]),Object(r.useEffect)(function(){(ve===Pt&&!i||ve===Ut&&!n||ve===it&&!m)&&at(vt)},[i,n,m]),Object(r.useEffect)(function(){return function(){clearTimeout(nn.current),_t.current=!0}},[]),Object(r.useEffect)(function(){Oe!==void 0&&ve===vt&&(Xe==null||Xe(Oe))},[Oe,ve]);var Bn=pt;return zt[gt]&&Et===bt&&(Bn=Object(j.a)({transition:"none"},Bn)),[ve,Et,Bn,Oe!=null?Oe:c]}var Hn=function(a){Object(v.a)(f,a);var c=Object(u.a)(f);function f(){return Object(P.a)(this,f),c.apply(this,arguments)}return Object(w.a)(f,[{key:"render",value:function(){return this.props.children}}]),f}(r.Component),qt=Hn;function Ln(a){var c=a;Object(ne.a)(a)==="object"&&(c=a.transitionSupport);function f(e){return!!(e.motionName&&c)}var s=r.forwardRef(function(e,n){var t=e.visible,i=t===void 0?!0:t,l=e.removeOnLeave,m=l===void 0?!0:l,d=e.forceRender,b=e.children,x=e.motionName,U=e.leavedClassName,L=e.eventProps,Y=f(e),Se=Object(r.useRef)(),Be=Object(r.useRef)();function Le(){try{return Object(cn.a)(Se.current||Be.current)}catch(at){return null}}var Ve=xn(Y,i,Le,e),Fe=Object(y.a)(Ve,4),ke=Fe[0],Ue=Fe[1],nt=Fe[2],Xe=Fe[3],Dt=r.useRef(Xe);Xe&&(Dt.current=!0);var dt=Object(r.useRef)(n);dt.current=n;var Oe=r.useCallback(function(at){Se.current=at,Object(E.b)(dt.current,at)},[]),Ce,Ge=Object(j.a)(Object(j.a)({},L),{},{visible:i});if(!b)Ce=null;else if(ke===vt||!f(e))Xe?Ce=b(Object(j.a)({},Ge),Oe):!m&&Dt.current?Ce=b(Object(j.a)(Object(j.a)({},Ge),{},{className:U}),Oe):d?Ce=b(Object(j.a)(Object(j.a)({},Ge),{},{style:{display:"none"}}),Oe):Ce=null;else{var Qe,ve;Ue===gt?ve="prepare":on(Ue)?ve="active":Ue===bt&&(ve="start"),Ce=b(Object(j.a)(Object(j.a)({},Ge),{},{className:F()(Mt(x,ke),(Qe={},Object(C.a)(Qe,Mt(x,"".concat(ke,"-").concat(ve)),ve),Object(C.a)(Qe,x,typeof x=="string"),Qe)),style:nt}),Oe)}return r.createElement(qt,{ref:Be},Ce)});return s.displayName="CSSMotion",s}var En=Ln(ut),In="add",jn="keep",vn="remove",Mn="removed";function Vn(a){var c;return a&&Object(ne.a)(a)==="object"&&"key"in a?c=a:c={key:a},Object(j.a)(Object(j.a)({},c),{},{key:String(c.key)})}function Sn(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return a.map(Vn)}function Kt(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],f=[],s=0,e=c.length,n=Sn(a),t=Sn(c);n.forEach(function(m){for(var d=!1,b=s;b1});return l.forEach(function(m){f=f.filter(function(d){var b=d.key,x=d.status;return b!==m||x!==vn}),f.forEach(function(d){d.key===m&&(d.status=jn)})}),f}var Qt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function rn(a){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:En,f=function(s){Object(v.a)(n,s);var e=Object(u.a)(n);function n(){var t;return Object(P.a)(this,n),t=e.apply(this,arguments),t.state={keyEntities:[]},t.removeKey=function(i){t.setState(function(l){var m=l.keyEntities;return{keyEntities:m.map(function(d){return d.key!==i?d:Object(j.a)(Object(j.a)({},d),{},{status:Mn})})}})},t}return Object(w.a)(n,[{key:"render",value:function(){var i=this,l=this.state.keyEntities,m=this.props,d=m.component,b=m.children,x=m.onVisibleChanged,U=Object(ce.a)(m,["component","children","onVisibleChanged"]),L=d||r.Fragment,Y={};return Qt.forEach(function(Se){Y[Se]=U[Se],delete U[Se]}),delete U.keys,r.createElement(L,U,l.map(function(Se){var Be=Se.status,Le=Object(ce.a)(Se,["status"]),Ve=Be===In||Be===jn;return r.createElement(c,Object(S.a)({},Y,{key:Le.key,visible:Ve,eventProps:Le,onVisibleChanged:function(ke){x==null||x(ke,{key:Le.key}),ke||i.removeKey(Le.key)}}),b)}))}}],[{key:"getDerivedStateFromProps",value:function(i,l){var m=i.keys,d=l.keyEntities,b=Sn(m),x=Kt(d,b);return{keyEntities:x.filter(function(U){var L=d.find(function(Y){var Se=Y.key;return U.key===Se});return!(L&&L.status===Mn&&U.status===vn)})}}}]),n}(r.Component);return f.defaultProps={component:"div"},f}var Jt=rn(ut),en=En;function dn(a){var c=a.prefixCls,f=a.motion,s=a.animation,e=a.transitionName;return f||(s?{motionName:"".concat(c,"-").concat(s)}:e?{motionName:e}:null)}function Xn(a){var c=a.prefixCls,f=a.visible,s=a.zIndex,e=a.mask,n=a.maskMotion,t=a.maskAnimation,i=a.maskTransitionName;if(!e)return null;var l={};return(n||i||t)&&(l=Object(j.a)({motionAppear:!0},dn({motion:n,prefixCls:c,transitionName:i,animation:t}))),r.createElement(en,Object(S.a)({},l,{visible:f,removeOnLeave:!0}),function(m){var d=m.className;return r.createElement("div",{style:{zIndex:s},className:F()("".concat(c,"-mask"),d)})})}var kn=o("9mu1"),$n=o("o0o1"),Sa=o.n($n),Ta=o("HaE+"),Gn=["measure","align",null,"motion"],Rt=function(a,c){var f=Object(r.useState)(null),s=Object(y.a)(f,2),e=s[0],n=s[1],t=Object(r.useRef)(),i=Object(r.useRef)(!1);function l(b){i.current||n(b)}function m(){jt.a.cancel(t.current)}function d(b){m(),t.current=Object(jt.a)(function(){l(function(x){switch(e){case"align":return"motion";case"motion":return"stable";default:}return x}),b==null||b()})}return Object(r.useEffect)(function(){l("measure")},[a]),Object(r.useEffect)(function(){switch(e){case"measure":c();break;default:}e&&(t.current=Object(jt.a)(Object(Ta.a)(Sa.a.mark(function b(){var x,U;return Sa.a.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:x=Gn.indexOf(e),U=Gn[x+1],U&&x!==-1&&l(U);case 3:case"end":return Y.stop()}},b)}))))},[e]),Object(r.useEffect)(function(){return function(){i.current=!0,m()}},[]),[e,d]},Jn=function(a){var c=r.useState({width:0,height:0}),f=Object(y.a)(c,2),s=f[0],e=f[1];function n(i){e({width:i.offsetWidth,height:i.offsetHeight})}var t=r.useMemo(function(){var i={};if(a){var l=s.width,m=s.height;a.indexOf("height")!==-1&&m?i.height=m:a.indexOf("minHeight")!==-1&&m&&(i.minHeight=m),a.indexOf("width")!==-1&&l?i.width=l:a.indexOf("minWidth")!==-1&&l&&(i.minWidth=l)}return i},[a,s]);return[t,n]},Yn=r.forwardRef(function(a,c){var f=a.visible,s=a.prefixCls,e=a.className,n=a.style,t=a.children,i=a.zIndex,l=a.stretch,m=a.destroyPopupOnHide,d=a.forceRender,b=a.align,x=a.point,U=a.getRootDomNode,L=a.getClassNameFromAlign,Y=a.onAlign,Se=a.onMouseEnter,Be=a.onMouseLeave,Le=a.onMouseDown,Ve=a.onTouchStart,Fe=Object(r.useRef)(),ke=Object(r.useRef)(),Ue=Object(r.useState)(),nt=Object(y.a)(Ue,2),Xe=nt[0],Dt=nt[1],dt=Jn(l),Oe=Object(y.a)(dt,2),Ce=Oe[0],Ge=Oe[1];function Qe(){l&&Ge(U())}var ve=Rt(f,Qe),at=Object(y.a)(ve,2),Ct=at[0],ot=at[1],pt=Object(r.useRef)();function Tt(){return x||U}function Xt(){var At;(At=Fe.current)===null||At===void 0||At.forceAlign()}function nn(At,Zt){var $t=L(Zt);Xe!==$t&&Dt($t),Ct==="align"&&(Xe!==$t?Promise.resolve().then(function(){Xt()}):ot(function(){var zt;(zt=pt.current)===null||zt===void 0||zt.call(pt)}),Y==null||Y(At,Zt))}var _t=Object(j.a)({},dn(a));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(At){var Zt=_t[At];_t[At]=function($t,zt){return ot(),Zt==null?void 0:Zt($t,zt)}});function an(){return new Promise(function(At){pt.current=At})}r.useEffect(function(){!_t.motionName&&Ct==="motion"&&ot()},[_t.motionName,Ct]),r.useImperativeHandle(c,function(){return{forceAlign:Xt,getElement:function(){return ke.current}}});var gn=Object(j.a)(Object(j.a)({},Ce),{},{zIndex:i,opacity:Ct==="motion"||Ct==="stable"||!f?void 0:0,pointerEvents:Ct==="stable"?void 0:"none"},n),sn=!0;(b==null?void 0:b.points)&&(Ct==="align"||Ct==="stable")&&(sn=!1);var ln=t;return r.Children.count(t)>1&&(ln=r.createElement("div",{className:"".concat(s,"-content")},t)),r.createElement(en,Object(S.a)({visible:f,ref:ke,leavedClassName:"".concat(s,"-hidden")},_t,{onAppearPrepare:an,onEnterPrepare:an,removeOnLeave:m,forceRender:d}),function(At,Zt){var $t=At.className,zt=At.style,Dn=F()(s,e,Xe,$t);return r.createElement(kn.a,{target:Tt(),key:"popup",ref:Fe,monitorWindowResize:!0,disabled:sn,align:b,onAlign:nn},r.createElement("div",{ref:Zt,className:Dn,onMouseEnter:Se,onMouseLeave:Be,onMouseDownCapture:Le,onTouchStartCapture:Ve,style:Object(j.a)(Object(j.a)({},zt),gn)},ln))})});Yn.displayName="PopupInner";var Ra=Yn,fn=r.forwardRef(function(a,c){var f=a.prefixCls,s=a.visible,e=a.zIndex,n=a.children,t=a.mobile;t=t===void 0?{}:t;var i=t.popupClassName,l=t.popupStyle,m=t.popupMotion,d=m===void 0?{}:m,b=t.popupRender,x=r.useRef();r.useImperativeHandle(c,function(){return{forceAlign:function(){},getElement:function(){return x.current}}});var U=Object(j.a)({zIndex:e},l),L=n;return r.Children.count(n)>1&&(L=r.createElement("div",{className:"".concat(f,"-content")},n)),b&&(L=b(L)),r.createElement(en,Object(S.a)({visible:s,ref:x,removeOnLeave:!0},d),function(Y,Se){var Be=Y.className,Le=Y.style,Ve=F()(f,i,Be);return r.createElement("div",{ref:Se,className:Ve,style:Object(j.a)(Object(j.a)({},Le),U)},L)})});fn.displayName="MobilePopupInner";var Ha=fn,Na=["visible","mobile"],oa=r.forwardRef(function(a,c){var f=a.visible,s=a.mobile,e=Object(ce.a)(a,Na),n=Object(r.useState)(f),t=Object(y.a)(n,2),i=t[0],l=t[1],m=Object(r.useState)(!1),d=Object(y.a)(m,2),b=d[0],x=d[1],U=Object(j.a)(Object(j.a)({},e),{},{visible:i});Object(r.useEffect)(function(){l(f),f&&s&&x(ae())},[f,s]);var L=b?r.createElement(Ha,Object(S.a)({},U,{mobile:s,ref:c})):r.createElement(Ra,Object(S.a)({},U,{ref:c}));return r.createElement("div",null,r.createElement(Xn,U),L)});oa.displayName="Popup";var Va=oa,Xa=r.createContext(null),ra=Xa;function Qn(){}function $a(){return""}function Ga(a){return a?a.ownerDocument:window.document}var Da=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Ja(a){var c=function(f){Object(v.a)(e,f);var s=Object(u.a)(e);function e(n){var t;Object(P.a)(this,e),t=s.call(this,n),t.popupRef=r.createRef(),t.triggerRef=r.createRef(),t.attachId=void 0,t.clickOutsideHandler=void 0,t.touchOutsideHandler=void 0,t.contextMenuOutsideHandler1=void 0,t.contextMenuOutsideHandler2=void 0,t.mouseDownTimeout=void 0,t.focusTime=void 0,t.preClickTime=void 0,t.preTouchTime=void 0,t.delayTimer=void 0,t.hasPopupMouseDown=void 0,t.onMouseEnter=function(l){var m=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",l),t.delaySetPopupVisible(!0,m,m?null:l)},t.onMouseMove=function(l){t.fireEvents("onMouseMove",l),t.setPoint(l)},t.onMouseLeave=function(l){t.fireEvents("onMouseLeave",l),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(l){var m;if(l.relatedTarget&&!l.relatedTarget.setTimeout&&Object(wt.a)((m=t.popupRef.current)===null||m===void 0?void 0:m.getElement(),l.relatedTarget))return;t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(l){t.fireEvents("onFocus",l),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(l){t.fireEvents("onMouseDown",l),t.preClickTime=Date.now()},t.onTouchStart=function(l){t.fireEvents("onTouchStart",l),t.preTouchTime=Date.now()},t.onBlur=function(l){t.fireEvents("onBlur",l),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(l){l.preventDefault(),t.fireEvents("onContextMenu",l),t.setPopupVisible(!0,l)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(l){if(t.fireEvents("onClick",l),t.focusTime){var m;if(t.preClickTime&&t.preTouchTime?m=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?m=t.preClickTime:t.preTouchTime&&(m=t.preTouchTime),Math.abs(m-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&l&&l.preventDefault&&l.preventDefault();var d=!t.state.popupVisible;(t.isClickToHide()&&!d||d&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,l)},t.onPopupMouseDown=function(){if(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout(function(){t.hasPopupMouseDown=!1},0),t.context){var l;(l=t.context).onPopupMouseDown.apply(l,arguments)}},t.onDocumentClick=function(l){if(t.props.mask&&!t.props.maskClosable)return;var m=l.target,d=t.getRootDomNode(),b=t.getPopupDomNode();(!Object(wt.a)(d,m)||t.isContextMenuOnly())&&!Object(wt.a)(b,m)&&!t.hasPopupMouseDown&&t.close()},t.getRootDomNode=function(){var l=t.props.getTriggerDOMNode;if(l)return l(t.triggerRef.current);try{var m=Object(cn.a)(t.triggerRef.current);if(m)return m}catch(d){}return kt.a.findDOMNode(Object(p.a)(t))},t.getPopupClassNameFromAlign=function(l){var m=[],d=t.props,b=d.popupPlacement,x=d.builtinPlacements,U=d.prefixCls,L=d.alignPoint,Y=d.getPopupClassNameFromAlign;return b&&x&&m.push(re(x,U,l,L)),Y&&m.push(Y(l)),m.join(" ")},t.getComponent=function(){var l=t.props,m=l.prefixCls,d=l.destroyPopupOnHide,b=l.popupClassName,x=l.onPopupAlign,U=l.popupMotion,L=l.popupAnimation,Y=l.popupTransitionName,Se=l.popupStyle,Be=l.mask,Le=l.maskAnimation,Ve=l.maskTransitionName,Fe=l.maskMotion,ke=l.zIndex,Ue=l.popup,nt=l.stretch,Xe=l.alignPoint,Dt=l.mobile,dt=l.forceRender,Oe=t.state,Ce=Oe.popupVisible,Ge=Oe.point,Qe=t.getPopupAlign(),ve={};return t.isMouseEnterToShow()&&(ve.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(ve.onMouseLeave=t.onPopupMouseLeave),ve.onMouseDown=t.onPopupMouseDown,ve.onTouchStart=t.onPopupMouseDown,r.createElement(Va,Object(S.a)({prefixCls:m,destroyPopupOnHide:d,visible:Ce,point:Xe&&Ge,className:b,align:Qe,onAlign:x,animation:L,getClassNameFromAlign:t.getPopupClassNameFromAlign},ve,{stretch:nt,getRootDomNode:t.getRootDomNode,style:Se,mask:Be,zIndex:ke,transitionName:Y,maskAnimation:Le,maskTransitionName:Ve,maskMotion:Fe,ref:t.popupRef,motion:U,mobile:Dt,forceRender:dt}),typeof Ue=="function"?Ue():Ue)},t.attachParent=function(l){jt.a.cancel(t.attachId);var m=t.props,d=m.getPopupContainer,b=m.getDocument,x=t.getRootDomNode(),U;d?(x||d.length===0)&&(U=d(x)):U=b(t.getRootDomNode()).body,U?U.appendChild(l):t.attachId=Object(jt.a)(function(){t.attachParent(l)})},t.getContainer=function(){var l=t.props.getDocument,m=l(t.getRootDomNode()).createElement("div");return m.style.position="absolute",m.style.top="0",m.style.left="0",m.style.width="100%",t.attachParent(m),m},t.setPoint=function(l){var m=t.props.alignPoint;if(!m||!l)return;t.setState({point:{pageX:l.pageX,pageY:l.pageY}})},t.handlePortalUpdate=function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)},t.triggerContextValue={onPopupMouseDown:t.onPopupMouseDown};var i;return"popupVisible"in n?i=!!n.popupVisible:i=!!n.defaultPopupVisible,t.state={prevPopupVisible:i,popupVisible:i},Da.forEach(function(l){t["fire".concat(l)]=function(m){t.fireEvents(l,m)}}),t}return Object(w.a)(e,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t=this.props,i=this.state;if(i.popupVisible){var l;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(l=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(B.a)(l,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(l=l||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(B.a)(l,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(l=l||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(B.a)(l,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(B.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),jt.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var t;return((t=this.popupRef.current)===null||t===void 0?void 0:t.getElement())||null}},{key:"getPopupAlign",value:function(){var t=this.props,i=t.popupPlacement,l=t.popupAlign,m=t.builtinPlacements;return i&&m?be(m,i,l):l}},{key:"setPopupVisible",value:function(t,i){var l=this.props.alignPoint,m=this.state.popupVisible;this.clearDelayTimer(),m!==t&&("popupVisible"in this.props||this.setState({popupVisible:t,prevPopupVisible:m}),this.props.onPopupVisibleChange(t)),l&&i&&t&&this.setPoint(i)}},{key:"delaySetPopupVisible",value:function(t,i,l){var m=this,d=i*1e3;if(this.clearDelayTimer(),d){var b=l?{pageX:l.pageX,pageY:l.pageY}:null;this.delayTimer=window.setTimeout(function(){m.setPopupVisible(t,b),m.clearDelayTimer()},d)}else this.setPopupVisible(t,l)}},{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(t){var i=this.props.children.props,l=this.props;return i[t]&&l[t]?this["fire".concat(t)]:i[t]||l[t]}},{key:"isClickToShow",value:function(){var t=this.props,i=t.action,l=t.showAction;return i.indexOf("click")!==-1||l.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var t=this.props.action;return t==="contextMenu"||t.length===1&&t[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var t=this.props,i=t.action,l=t.showAction;return i.indexOf("contextMenu")!==-1||l.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var t=this.props,i=t.action,l=t.hideAction;return i.indexOf("click")!==-1||l.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var t=this.props,i=t.action,l=t.showAction;return i.indexOf("hover")!==-1||l.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var t=this.props,i=t.action,l=t.hideAction;return i.indexOf("hover")!==-1||l.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var t=this.props,i=t.action,l=t.showAction;return i.indexOf("focus")!==-1||l.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var t=this.props,i=t.action,l=t.hideAction;return i.indexOf("focus")!==-1||l.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var t;(t=this.popupRef.current)===null||t===void 0||t.forceAlign()}}},{key:"fireEvents",value:function(t,i){var l=this.props.children.props[t];l&&l(i);var m=this.props[t];m&&m(i)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,i=this.props,l=i.children,m=i.forceRender,d=i.alignPoint,b=i.className,x=i.autoDestroy,U=r.Children.only(l),L={key:"trigger"};this.isContextMenuToShow()?L.onContextMenu=this.onContextMenu:L.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(L.onClick=this.onClick,L.onMouseDown=this.onMouseDown,L.onTouchStart=this.onTouchStart):(L.onClick=this.createTwoChains("onClick"),L.onMouseDown=this.createTwoChains("onMouseDown"),L.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(L.onMouseEnter=this.onMouseEnter,d&&(L.onMouseMove=this.onMouseMove)):L.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?L.onMouseLeave=this.onMouseLeave:L.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(L.onFocus=this.onFocus,L.onBlur=this.onBlur):(L.onFocus=this.createTwoChains("onFocus"),L.onBlur=this.createTwoChains("onBlur"));var Y=F()(U&&U.props&&U.props.className,b);Y&&(L.className=Y);var Se=Object(j.a)({},L);Object(E.c)(U)&&(Se.ref=Object(E.a)(this.triggerRef,U.ref));var Be=r.cloneElement(U,Se),Le;return(t||this.popupRef.current||m)&&(Le=r.createElement(a,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&x&&(Le=null),r.createElement(ra.Provider,{value:this.triggerContextValue},Be,Le)}}],[{key:"getDerivedStateFromProps",value:function(t,i){var l=t.popupVisible,m={};return l!==void 0&&i.popupVisible!==l&&(m.popupVisible=l,m.prevPopupVisible=i.popupVisible),m}}]),e}(r.Component);return c.contextType=ra,c.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:$a,getDocument:Ga,onPopupVisibleChange:Qn,afterPopupVisibleChange:Qn,onPopupAlign:Qn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},c}var Ya=Ja(X.a),bn={adjustX:1,adjustY:1},ia={topLeft:{points:["bl","tl"],overflow:bn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:bn,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:bn,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:bn,offset:[4,0]}},Pa={topLeft:{points:["bl","tl"],overflow:bn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:bn,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:bn,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:bn,offset:[4,0]}},sa=ia,tn=0,mn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},pn=function(c,f,s){var e=rt(f),n=c.getState();c.setState({defaultActiveFirst:Object(j.a)(Object(j.a)({},n.defaultActiveFirst),{},Object(C.a)({},e,s))})},la=function(a){Object(v.a)(f,a);var c=Object(u.a)(f);function f(s){var e;Object(P.a)(this,f),e=c.call(this,s),e.onDestroy=function(d){e.props.onDestroy(d)},e.onKeyDown=function(d){var b=d.keyCode,x=e.menuInstance,U=e.props.store,L=e.getVisible();if(b===g.a.ENTER)return e.onTitleClick(d),pn(U,e.props.eventKey,!0),!0;if(b===g.a.RIGHT)return L?x.onKeyDown(d):(e.triggerOpenChange(!0),pn(U,e.props.eventKey,!0)),!0;if(b===g.a.LEFT){var Y;if(L)Y=x.onKeyDown(d);else return;return Y||(e.triggerOpenChange(!1),Y=!0),Y}return L&&(b===g.a.UP||b===g.a.DOWN)?x.onKeyDown(d):void 0},e.onOpenChange=function(d){e.props.onOpenChange(d)},e.onPopupVisibleChange=function(d){e.triggerOpenChange(d,d?"mouseenter":"mouseleave")},e.onMouseEnter=function(d){var b=e.props,x=b.eventKey,U=b.onMouseEnter,L=b.store;pn(L,e.props.eventKey,!1),U({key:x,domEvent:d})},e.onMouseLeave=function(d){var b=e.props,x=b.parentMenu,U=b.eventKey,L=b.onMouseLeave;x.subMenuInstance=Object(p.a)(e),L({key:U,domEvent:d})},e.onTitleMouseEnter=function(d){var b=e.props,x=b.eventKey,U=b.onItemHover,L=b.onTitleMouseEnter;U({key:x,hover:!0}),L({key:x,domEvent:d})},e.onTitleMouseLeave=function(d){var b=e.props,x=b.parentMenu,U=b.eventKey,L=b.onItemHover,Y=b.onTitleMouseLeave;x.subMenuInstance=Object(p.a)(e),L({key:U,hover:!1}),Y({key:U,domEvent:d})},e.onTitleClick=function(d){var b=Object(p.a)(e),x=b.props;if(x.onTitleClick({key:x.eventKey,domEvent:d}),x.triggerSubMenuAction==="hover")return;e.triggerOpenChange(!e.getVisible(),"click"),pn(x.store,e.props.eventKey,!1)},e.onSubMenuClick=function(d){typeof e.props.onClick=="function"&&e.props.onClick(e.addKeyPath(d))},e.onSelect=function(d){e.props.onSelect(d)},e.onDeselect=function(d){e.props.onDeselect(d)},e.getPrefixCls=function(){return"".concat(e.props.rootPrefixCls,"-submenu")},e.getActiveClassName=function(){return"".concat(e.getPrefixCls(),"-active")},e.getDisabledClassName=function(){return"".concat(e.getPrefixCls(),"-disabled")},e.getSelectedClassName=function(){return"".concat(e.getPrefixCls(),"-selected")},e.getOpenClassName=function(){return"".concat(e.props.rootPrefixCls,"-submenu-open")},e.getVisible=function(){return e.state.isOpen},e.getMode=function(){return e.state.mode},e.saveMenuInstance=function(d){e.menuInstance=d},e.addKeyPath=function(d){return Object(j.a)(Object(j.a)({},d),{},{keyPath:(d.keyPath||[]).concat(e.props.eventKey)})},e.triggerOpenChange=function(d,b){var x=e.props.eventKey,U=function(){e.onOpenChange({key:x,item:Object(p.a)(e),trigger:b,open:d})};b==="mouseenter"?e.mouseenterTimeout=setTimeout(function(){U()},0):U()},e.isChildrenSelected=function(){var d={find:!1};return ht(e.props.children,e.props.selectedKeys,d),d.find},e.isInlineMode=function(){return e.getMode()==="inline"},e.adjustWidth=function(){if(!e.subMenuTitle||!e.menuInstance)return;var d=Lt.findDOMNode(e.menuInstance);if(d.offsetWidth>=e.subMenuTitle.offsetWidth)return;d.style.minWidth="".concat(e.subMenuTitle.offsetWidth,"px")},e.saveSubMenuTitle=function(d){e.subMenuTitle=d},e.getBaseProps=function(){var d=Object(p.a)(e),b=d.props,x=e.getMode();return{mode:x==="horizontal"?"vertical":x,visible:e.getVisible(),level:b.level+1,inlineIndent:b.inlineIndent,focusable:!1,onClick:e.onSubMenuClick,onSelect:e.onSelect,onDeselect:e.onDeselect,onDestroy:e.onDestroy,selectedKeys:b.selectedKeys,eventKey:"".concat(b.eventKey,"-menu-"),openKeys:b.openKeys,motion:b.motion,onOpenChange:e.onOpenChange,subMenuOpenDelay:b.subMenuOpenDelay,parentMenu:Object(p.a)(e),subMenuCloseDelay:b.subMenuCloseDelay,forceSubMenuRender:b.forceSubMenuRender,triggerSubMenuAction:b.triggerSubMenuAction,builtinPlacements:b.builtinPlacements,defaultActiveFirst:b.store.getState().defaultActiveFirst[rt(b.eventKey)],multiple:b.multiple,prefixCls:b.rootPrefixCls,id:e.internalMenuId,manualRef:e.saveMenuInstance,itemIcon:b.itemIcon,expandIcon:b.expandIcon,direction:b.direction}},e.getMotion=function(d,b){var x=Object(p.a)(e),U=x.haveRendered,L=e.props,Y=L.motion,Se=L.rootPrefixCls,Be=Object(j.a)(Object(j.a)({},Y),{},{leavedClassName:"".concat(Se,"-hidden"),removeOnLeave:!1,motionAppear:U||!b||d!=="inline"});return Be};var n=s.store,t=s.eventKey,i=n.getState(),l=i.defaultActiveFirst;e.isRootMenu=!1;var m=!1;return l&&(m=l[t]),pn(n,t,m),e.state={mode:s.mode,isOpen:s.isOpen},e}return Object(w.a)(f,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,n=this.props,t=n.mode,i=n.parentMenu,l=n.manualRef,m=n.isOpen,d=function(){e.setState({mode:t,isOpen:m})},b=m!==this.state.isOpen,x=t!==this.state.mode;if((x||b)&&(jt.a.cancel(this.updateStateRaf),x?this.updateStateRaf=Object(jt.a)(d):d()),l&&l(this),t!=="horizontal"||!(i==null?void 0:i.isRootMenu)||!m)return;this.minWidthTimeout=setTimeout(function(){return e.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var e=this.props,n=e.onDestroy,t=e.eventKey;n&&n(t),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),jt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(e,n){var t=this.getBaseProps();return r.createElement(ea,Object(S.a)({},t,{id:this.internalMenuId,className:e,style:n}),this.props.children)}},{key:"renderChildren",value:function(){var e=this,n=this.getBaseProps(),t=n.mode,i=n.visible,l=n.forceSubMenuRender,m=n.direction,d=this.getMotion(t,i);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||i||l,!this.haveOpened)return r.createElement("div",null);var b=F()("".concat(n.prefixCls,"-sub"),Object(C.a)({},"".concat(n.prefixCls,"-rtl"),m==="rtl"));return this.isInlineMode()?r.createElement(en,Object(S.a)({visible:n.visible,forceRender:l},d),function(x){var U=x.className,L=x.style,Y=F()(b,U);return e.renderPopupMenu(Y,L)}):this.renderPopupMenu(b)}},{key:"render",value:function(){var e,n,t,i=Object(j.a)({},this.props),l=this.getVisible(),m=this.getPrefixCls(),d=this.isInlineMode(),b=this.getMode(),x=F()(m,"".concat(m,"-").concat(b),(e={},Object(C.a)(e,i.className,!!i.className),Object(C.a)(e,this.getOpenClassName(),l),Object(C.a)(e,this.getActiveClassName(),i.active||l&&!d),Object(C.a)(e,this.getDisabledClassName(),i.disabled),Object(C.a)(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(i.eventKey?this.internalMenuId="".concat(i.eventKey,"$Menu"):(tn+=1,this.internalMenuId="$__$".concat(tn,"$Menu")));var U={},L={},Y={};i.disabled||(U={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},L={onClick:this.onTitleClick},Y={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Se={},Be=i.direction,Le=Be==="rtl";d&&(Le?Se.paddingRight=i.inlineIndent*i.level:Se.paddingLeft=i.inlineIndent*i.level);var Ve={};this.getVisible()&&(Ve={"aria-owns":this.internalMenuId});var Fe=null;b!=="horizontal"&&(Fe=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Fe=r.createElement(this.props.expandIcon,Object(j.a)({},this.props))));var ke=r.createElement("div",Object(S.a)({ref:this.saveSubMenuTitle,style:Se,className:"".concat(m,"-title"),role:"button"},Y,L,{"aria-expanded":l},Ve,{"aria-haspopup":"true",title:typeof i.title=="string"?i.title:void 0}),i.title,Fe||r.createElement("i",{className:"".concat(m,"-arrow")})),Ue=this.renderChildren(),nt=((n=i.parentMenu)===null||n===void 0?void 0:n.isRootMenu)?i.parentMenu.props.getPopupContainer:function(Tt){return Tt.parentNode},Xe=mn[b],Dt=i.popupOffset?{offset:i.popupOffset}:{},dt=F()((t={},Object(C.a)(t,i.popupClassName,i.popupClassName&&!d),Object(C.a)(t,"".concat(m,"-rtl"),Le),t)),Oe=i.disabled,Ce=i.triggerSubMenuAction,Ge=i.subMenuOpenDelay,Qe=i.forceSubMenuRender,ve=i.subMenuCloseDelay,at=i.builtinPlacements;xt.forEach(function(Tt){return delete i[Tt]}),delete i.onClick;var Ct=Le?Object(j.a)(Object(j.a)({},Pa),at):Object(j.a)(Object(j.a)({},ia),at);delete i.direction;var ot=this.getBaseProps(),pt=d?null:this.getMotion(ot.mode,ot.visible);return r.createElement("li",Object(S.a)({},i,U,{className:x,role:"menuitem"}),r.createElement(Ya,{prefixCls:m,popupClassName:F()("".concat(m,"-popup"),dt),getPopupContainer:nt,builtinPlacements:Ct,popupPlacement:Xe,popupVisible:d?!1:l,popupAlign:Dt,popup:d?null:Ue,action:Oe||d?[]:[Ce],mouseEnterDelay:Ge,mouseLeaveDelay:ve,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Qe,popupMotion:pt},ke),d?Ue:null)}}]),f}(r.Component);la.defaultProps={onMouseEnter:le,onMouseLeave:le,onTitleMouseEnter:le,onTitleMouseLeave:le,onTitleClick:le,manualRef:le,mode:"vertical",title:""};var Un=Object(M.b)(function(a,c){var f=a.openKeys,s=a.activeKey,e=a.selectedKeys,n=c.eventKey,t=c.subMenuKey;return{isOpen:f.indexOf(n)>-1,active:s[t]===n,selectedKeys:e}})(la);Un.isSubMenu=!0;var Kn=Un,_a="menuitem-overflowed",Qa=.5,wa=function(a){Object(v.a)(f,a);var c=Object(u.a)(f);function f(){var s;return Object(P.a)(this,f),s=c.apply(this,arguments),s.resizeObserver=null,s.mutationObserver=null,s.originalTotalWidth=0,s.overflowedItems=[],s.menuItemSizes=[],s.cancelFrameId=null,s.state={lastVisibleIndex:void 0},s.childRef=r.createRef(),s.getMenuItemNodes=function(){var e=s.props.prefixCls,n=s.childRef.current;return n?[].slice.call(n.children).filter(function(t){return t.className.split(" ").indexOf("".concat(e,"-overflowed-submenu"))<0}):[]},s.getOverflowedSubMenuItem=function(e,n,t){var i=s.props,l=i.overflowedIndicator,m=i.level,d=i.mode,b=i.prefixCls,x=i.theme;if(m!==1||d!=="horizontal")return null;var U=s.props.children[0],L=U.props,Y=L.children,Se=L.title,Be=L.style,Le=Object(ce.a)(L,["children","title","style"]),Ve=Object(j.a)({},Be),Fe="".concat(e,"-overflowed-indicator"),ke="".concat(e,"-overflowed-indicator");n.length===0&&t!==!0?Ve=Object(j.a)(Object(j.a)({},Ve),{},{display:"none"}):t&&(Ve=Object(j.a)(Object(j.a)({},Ve),{},{visibility:"hidden",position:"absolute"}),Fe="".concat(Fe,"-placeholder"),ke="".concat(ke,"-placeholder"));var Ue=x?"".concat(b,"-").concat(x):"",nt={};return xt.forEach(function(Xe){Le[Xe]!==void 0&&(nt[Xe]=Le[Xe])}),r.createElement(Kn,Object(S.a)({title:l,className:"".concat(b,"-overflowed-submenu"),popupClassName:Ue},nt,{key:Fe,eventKey:ke,disabled:!1,style:Ve}),n)},s.setChildrenWidthAndResize=function(){if(s.props.mode!=="horizontal")return;var e=s.childRef.current;if(!e)return;var n=e.children;if(!n||n.length===0)return;var t=e.children[n.length-1];_e(t,"display","inline-block");var i=s.getMenuItemNodes(),l=i.filter(function(m){return m.className.split(" ").indexOf(_a)>=0});l.forEach(function(m){_e(m,"display","inline-block")}),s.menuItemSizes=i.map(function(m){return lt(m,!0)}),l.forEach(function(m){_e(m,"display","none")}),s.overflowedIndicatorWidth=lt(e.children[e.children.length-1],!0),s.originalTotalWidth=s.menuItemSizes.reduce(function(m,d){return m+d},0),s.handleResize(),_e(t,"display","none")},s.handleResize=function(){if(s.props.mode!=="horizontal")return;var e=s.childRef.current;if(!e)return;var n=lt(e);s.overflowedItems=[];var t=0,i;s.originalTotalWidth>n+Qa&&(i=-1,s.menuItemSizes.forEach(function(l){t+=l,t+s.overflowedIndicatorWidth<=n&&(i+=1)})),s.setState({lastVisibleIndex:i})},s}return Object(w.a)(f,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var n=this.childRef.current;if(!n)return;this.resizeObserver=new It.default(function(t){t.forEach(function(){var i=e.cancelFrameId;cancelAnimationFrame(i),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)})}),[].slice.call(n.children).concat(n).forEach(function(t){e.resizeObserver.observe(t)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){e.resizeObserver.disconnect(),[].slice.call(n.children).concat(n).forEach(function(t){e.resizeObserver.observe(t)}),e.setChildrenWidthAndResize()}),this.mutationObserver.observe(n,{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(e){var n=this,t=this.state.lastVisibleIndex;return(e||[]).reduce(function(i,l,m){var d=l;if(n.props.mode==="horizontal"){var b=n.getOverflowedSubMenuItem(l.props.eventKey,[]);t!==void 0&&n.props.className.indexOf("".concat(n.props.prefixCls,"-root"))!==-1&&(m>t&&(d=r.cloneElement(l,{style:{display:"none"},eventKey:"".concat(l.props.eventKey,"-hidden"),className:"".concat(_a)})),m===t+1&&(n.overflowedItems=e.slice(t+1).map(function(U){return r.cloneElement(U,{key:U.props.eventKey,mode:"vertical-left"})}),b=n.getOverflowedSubMenuItem(l.props.eventKey,n.overflowedItems)));var x=[].concat(Object(ge.a)(i),[b,d]);return m===e.length-1&&x.push(n.getOverflowedSubMenuItem(l.props.eventKey,[],!0)),x}return[].concat(Object(ge.a)(i),[d])},[])}},{key:"render",value:function(){var e=this.props,n=e.visible,t=e.prefixCls,i=e.overflowedIndicator,l=e.mode,m=e.level,d=e.tag,b=e.children,x=e.theme,U=Object(ce.a)(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),L=d;return r.createElement(L,Object(S.a)({ref:this.childRef},U),this.renderChildren(b))}}]),f}(r.Component);wa.defaultProps={tag:"div",className:""};var ua=wa;function Zn(a){return a.length?a.every(function(c){return!!c.props.disabled}):!0}function Tn(a,c,f){var s=a.getState();a.setState({activeKey:Object(j.a)(Object(j.a)({},s.activeKey),{},Object(C.a)({},c,f))})}function yn(a){return a.eventKey||"0-menu-"}function qn(a,c){var f=c,s=a.children,e=a.eventKey;if(f){var n;if($e(s,function(t,i){t&&t.props&&!t.props.disabled&&f===Pe(t,e,i)&&(n=!0)}),n)return f}return f=null,a.defaultActiveFirst&&$e(s,function(t,i){!f&&t&&!t.props.disabled&&(f=Pe(t,e,i))}),f}function Aa(a){if(!a)return;var c=this.instanceArray.indexOf(a);c!==-1?this.instanceArray[c]=a:this.instanceArray.push(a)}var La=function(a){Object(v.a)(f,a);var c=Object(u.a)(f);function f(s){var e;return Object(P.a)(this,f),e=c.call(this,s),e.onKeyDown=function(n,t){var i=n.keyCode,l;if(e.getFlatInstanceArray().forEach(function(d){d&&d.props.active&&d.onKeyDown&&(l=d.onKeyDown(n))}),l)return 1;var m=null;return(i===g.a.UP||i===g.a.DOWN)&&(m=e.step(i===g.a.UP?-1:1)),m?(n.preventDefault(),Tn(e.props.store,yn(e.props),m.props.eventKey),typeof t=="function"&&t(m),1):void 0},e.onItemHover=function(n){var t=n.key,i=n.hover;Tn(e.props.store,yn(e.props),i?t:null)},e.onDeselect=function(n){e.props.onDeselect(n)},e.onSelect=function(n){e.props.onSelect(n)},e.onClick=function(n){e.props.onClick(n)},e.onOpenChange=function(n){e.props.onOpenChange(n)},e.onDestroy=function(n){e.props.onDestroy(n)},e.getFlatInstanceArray=function(){return e.instanceArray},e.step=function(n){var t=e.getFlatInstanceArray(),i=e.props.store.getState().activeKey[yn(e.props)],l=t.length;if(!l)return null;n<0&&(t=t.concat().reverse());var m=-1;if(t.every(function(U,L){return U&&U.props.eventKey===i?(m=L,!1):!0}),!e.props.defaultActiveFirst&&m!==-1&&Zn(t.slice(m,l-1)))return;var d=(m+1)%l,b=d;do{var x=t[b];if(!x||x.props.disabled)b=(b+1)%l;else return x}while(b!==d);return null},e.renderCommonMenuItem=function(n,t,i){var l=e.props.store.getState(),m=Object(p.a)(e),d=m.props,b=Pe(n,d.eventKey,t),x=n.props;if(!x||typeof n.type=="string")return n;var U=b===l.activeKey,L=Object(j.a)(Object(j.a)({mode:x.mode||d.mode,level:d.level,inlineIndent:d.inlineIndent,renderMenuItem:e.renderMenuItem,rootPrefixCls:d.prefixCls,index:t,parentMenu:d.parentMenu,manualRef:x.disabled?void 0:Object(N.a)(n.ref,Aa.bind(Object(p.a)(e))),eventKey:b,active:!x.disabled&&U,multiple:d.multiple,onClick:function(Se){(x.onClick||le)(Se),e.onClick(Se)},onItemHover:e.onItemHover,motion:d.motion,subMenuOpenDelay:d.subMenuOpenDelay,subMenuCloseDelay:d.subMenuCloseDelay,forceSubMenuRender:d.forceSubMenuRender,onOpenChange:e.onOpenChange,onDeselect:e.onDeselect,onSelect:e.onSelect,builtinPlacements:d.builtinPlacements,itemIcon:x.itemIcon||e.props.itemIcon,expandIcon:x.expandIcon||e.props.expandIcon},i),{},{direction:d.direction});return(d.mode==="inline"||Ke())&&(L.triggerSubMenuAction="click"),r.cloneElement(n,Object(j.a)(Object(j.a)({},L),{},{key:b||t}))},e.renderMenuItem=function(n,t,i){if(!n)return null;var l=e.props.store.getState(),m={openKeys:l.openKeys,selectedKeys:l.selectedKeys,triggerSubMenuAction:e.props.triggerSubMenuAction,subMenuKey:i};return e.renderCommonMenuItem(n,t,m)},s.store.setState({activeKey:Object(j.a)(Object(j.a)({},s.store.getState().activeKey),{},Object(C.a)({},s.eventKey,qn(s,s.activeKey)))}),e.instanceArray=[],e}return Object(w.a)(f,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!A()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var n=this.props,t="activeKey"in n?n.activeKey:n.store.getState().activeKey[yn(n)],i=qn(n,t);if(i!==t)Tn(n.store,yn(n),i);else if("activeKey"in e){var l=qn(e,e.activeKey);i!==l&&Tn(n.store,yn(n),i)}}},{key:"render",value:function(){var e=this,n=Object(S.a)({},this.props);this.instanceArray=[];var t=F()(n.prefixCls,n.className,"".concat(n.prefixCls,"-").concat(n.mode)),i={className:t,role:n.role||"menu"};n.id&&(i.id=n.id),n.focusable&&(i.tabIndex=0,i.onKeyDown=this.onKeyDown);var l=n.prefixCls,m=n.eventKey,d=n.visible,b=n.level,x=n.mode,U=n.overflowedIndicator,L=n.theme;return xt.forEach(function(Y){return delete n[Y]}),delete n.onClick,r.createElement(ua,Object(S.a)({},n,{prefixCls:l,mode:x,tag:"ul",level:b,theme:L,visible:d,overflowedIndicator:U},i),Object(q.a)(n.children).map(function(Y,Se){return e.renderMenuItem(Y,Se,m||"0-menu-")}))}}]),f}(r.Component);La.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:le};var Ia=Object(M.b)()(La),ea=Ia,Rn=o("Kwbf");function ca(a,c,f){var s=a.prefixCls,e=a.motion,n=a.defaultMotions,t=n===void 0?{}:n,i=a.openAnimation,l=a.openTransitionName,m=c.switchingModeFromInline;if(e)return e;if(Object(ne.a)(i)==="object"&&i)Object(Rn.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof i=="string")return{motionName:"".concat(s,"-open-").concat(i)};if(l)return{motionName:l};var d=t[f];return d||(m?null:t.other)}var ka=function(a){Object(v.a)(f,a);var c=Object(u.a)(f);function f(s){var e;Object(P.a)(this,f),e=c.call(this,s),e.onSelect=function(i){var l=Object(p.a)(e),m=l.props;if(m.selectable){var d=e.store.getState(),b=d.selectedKeys,x=i.key;m.multiple?b=b.concat([x]):b=[x],"selectedKeys"in m||e.store.setState({selectedKeys:b}),m.onSelect(Object(j.a)(Object(j.a)({},i),{},{selectedKeys:b}))}},e.onClick=function(i){var l=e.getRealMenuMode(),m=Object(p.a)(e),d=m.store,b=m.props.onOpenChange;l!=="inline"&&!("openKeys"in e.props)&&(d.setState({openKeys:[]}),b([])),e.props.onClick(i)},e.onKeyDown=function(i,l){e.innerMenu.getWrappedInstance().onKeyDown(i,l)},e.onOpenChange=function(i){var l=Object(p.a)(e),m=l.props,d=e.store.getState().openKeys.concat(),b=!1,x=function(L){var Y=!1;if(L.open)Y=d.indexOf(L.key)===-1,Y&&d.push(L.key);else{var Se=d.indexOf(L.key);Y=Se!==-1,Y&&d.splice(Se,1)}b=b||Y};Array.isArray(i)?i.forEach(x):x(i),b&&("openKeys"in e.props||e.store.setState({openKeys:d}),m.onOpenChange(d))},e.onDeselect=function(i){var l=Object(p.a)(e),m=l.props;if(m.selectable){var d=e.store.getState().selectedKeys.concat(),b=i.key,x=d.indexOf(b);x!==-1&&d.splice(x,1),"selectedKeys"in m||e.store.setState({selectedKeys:d}),m.onDeselect(Object(j.a)(Object(j.a)({},i),{},{selectedKeys:d}))}},e.onMouseEnter=function(i){e.restoreModeVerticalFromInline();var l=e.props.onMouseEnter;l&&l(i)},e.onTransitionEnd=function(i){var l=i.propertyName==="width"&&i.target===i.currentTarget,m=i.target.className,d=Object.prototype.toString.call(m)==="[object SVGAnimatedString]"?m.animVal:m,b=i.propertyName==="font-size"&&d.indexOf("anticon")>=0;(l||b)&&e.restoreModeVerticalFromInline()},e.setInnerMenu=function(i){e.innerMenu=i},e.isRootMenu=!0;var n=s.defaultSelectedKeys,t=s.defaultOpenKeys;return"selectedKeys"in s&&(n=s.selectedKeys||[]),"openKeys"in s&&(t=s.openKeys||[]),e.store=Object(M.c)({selectedKeys:n,openKeys:t,activeKey:{"0-menu-":qn(s,s.activeKey)}}),e.state={switchingModeFromInline:!1,prevProps:s,inlineOpenKeys:[],store:e.store},e}return Object(w.a)(f,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){var n=this.props,t=n.siderCollapsed,i=n.inlineCollapsed,l=n.onOpenChange;(!e.inlineCollapsed&&i||!e.siderCollapsed&&t)&&l([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,n=this.store,t=this.prevOpenKeys,i=this.getInlineCollapsed()&&(e===0||e==="0"||e==="0px");i?(this.prevOpenKeys=n.getState().openKeys.concat(),this.store.setState({openKeys:[]})):t&&(this.store.setState({openKeys:t}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,n=this.state.switchingModeFromInline,t=this.getInlineCollapsed();return n&&t?"inline":t?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,n=e.inlineCollapsed,t=e.siderCollapsed;return t!==void 0?t:n}},{key:"restoreModeVerticalFromInline",value:function(){var e=this.state.switchingModeFromInline;e&&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 e=Object(j.a)({},Object(T.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),n=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),e.direction==="rtl"&&(e.className+=" ".concat(e.prefixCls,"-rtl")),e=Object(j.a)(Object(j.a)({},e),{},{mode:n,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:ca(this.props,this.state,n)}),delete e.openAnimation,delete e.openTransitionName,r.createElement(M.a,{store:this.store},r.createElement(ea,Object(S.a)({},e,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var t=n.prevProps,i=n.store,l=i.getState(),m={},d={prevProps:e};return t.mode==="inline"&&e.mode!=="inline"&&(d.switchingModeFromInline=!0),"openKeys"in e?m.openKeys=e.openKeys||[]:((e.inlineCollapsed&&!t.inlineCollapsed||e.siderCollapsed&&!t.siderCollapsed)&&(d.switchingModeFromInline=!0,d.inlineOpenKeys=l.openKeys,m.openKeys=[]),(!e.inlineCollapsed&&t.inlineCollapsed||!e.siderCollapsed&&t.siderCollapsed)&&(m.openKeys=n.inlineOpenKeys,d.inlineOpenKeys=[])),Object.keys(m).length&&i.setState(m),d}}]),f}(r.Component);ka.defaultProps={selectable:!0,onClick:le,onSelect:le,onOpenChange:le,onDeselect:le,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:r.createElement("span",null,"\xB7\xB7\xB7")};var Ua=ka,Nn=function(a){Object(v.a)(f,a);var c=Object(u.a)(f);function f(){var s;return Object(P.a)(this,f),s=c.apply(this,arguments),s.onKeyDown=function(e){var n=e.keyCode;return n===g.a.ENTER?(s.onClick(e),!0):void 0},s.onMouseLeave=function(e){var n=s.props,t=n.eventKey,i=n.onItemHover,l=n.onMouseLeave;i({key:t,hover:!1}),l({key:t,domEvent:e})},s.onMouseEnter=function(e){var n=s.props,t=n.eventKey,i=n.onItemHover,l=n.onMouseEnter;i({key:t,hover:!0}),l({key:t,domEvent:e})},s.onClick=function(e){var n=s.props,t=n.eventKey,i=n.multiple,l=n.onClick,m=n.onSelect,d=n.onDeselect,b=n.isSelected,x={key:t,keyPath:[t],item:Object(p.a)(s),domEvent:e};l(x),i?b?d(x):m(x):b||m(x)},s.saveNode=function(e){s.node=e},s}return Object(w.a)(f,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.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 e,n=Object(j.a)({},this.props),t=F()(this.getPrefixCls(),n.className,(e={},Object(C.a)(e,this.getActiveClassName(),!n.disabled&&n.active),Object(C.a)(e,this.getSelectedClassName(),n.isSelected),Object(C.a)(e,this.getDisabledClassName(),n.disabled),e)),i=Object(j.a)(Object(j.a)({},n.attribute),{},{title:typeof n.title=="string"?n.title:void 0,className:t,role:n.role||"menuitem","aria-disabled":n.disabled});n.role==="option"?i=Object(j.a)(Object(j.a)({},i),{},{role:"option","aria-selected":n.isSelected}):(n.role===null||n.role==="none")&&(i.role="none");var l={onClick:n.disabled?null:this.onClick,onMouseLeave:n.disabled?null:this.onMouseLeave,onMouseEnter:n.disabled?null:this.onMouseEnter},m=Object(j.a)({},n.style);n.mode==="inline"&&(n.direction==="rtl"?m.paddingRight=n.inlineIndent*n.level:m.paddingLeft=n.inlineIndent*n.level),xt.forEach(function(b){return delete n[b]}),delete n.direction;var d=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(d=r.createElement(this.props.itemIcon,this.props)),r.createElement("li",Object(S.a)({},Object(T.a)(n,["onClick","onMouseEnter","onMouseLeave","onSelect"]),i,l,{style:m,ref:this.saveNode}),n.children,d)}}]),f}(r.Component);Nn.isMenuItem=!0,Nn.defaultProps={onSelect:le,onMouseEnter:le,onMouseLeave:le,manualRef:le};var da=Object(M.b)(function(a,c){var f=a.activeKey,s=a.selectedKeys,e=c.eventKey,n=c.subMenuKey;return{active:f[n]===e,isSelected:Array.isArray(s)?s.indexOf(e)!==-1:s===e}})(Nn),fa=da,ma=function(a){Object(v.a)(f,a);var c=Object(u.a)(f);function f(){var s;return Object(P.a)(this,f),s=c.apply(this,arguments),s.renderInnerMenuItem=function(e){var n=s.props,t=n.renderMenuItem,i=n.index;return t(e,i,s.props.subMenuKey)},s}return Object(w.a)(f,[{key:"render",value:function(){var e=Object(S.a)({},this.props),n=e.className,t=n===void 0?"":n,i=e.rootPrefixCls,l="".concat(i,"-item-group-title"),m="".concat(i,"-item-group-list"),d=e.title,b=e.children;return xt.forEach(function(x){return delete e[x]}),delete e.direction,r.createElement("li",Object(S.a)({},e,{onClick:function(U){return U.stopPropagation()},className:"".concat(t," ").concat(i,"-item-group")}),r.createElement("div",{className:l,title:typeof d=="string"?d:void 0},d),r.createElement("ul",{className:m},r.Children.map(b,this.renderInnerMenuItem)))}}]),f}(r.Component);ma.isMenuItemGroup=!0,ma.defaultProps={disabled:!0};var Za=ma,pa=function(c){var f=c.className,s=c.rootPrefixCls,e=c.style;return r.createElement("li",{className:"".concat(f," ").concat(s,"-item-divider"),style:e})};pa.defaultProps={disabled:!0,className:"",style:{}};var qa=pa,Ka=Ua,ha=o("eDIo");function eo(a,c){var f=a.prefixCls,s=a.editable,e=a.locale,n=a.style;return!s||s.showAdd===!1?null:r.createElement("button",{ref:c,type:"button",className:"".concat(f,"-nav-add"),style:n,"aria-label":(e==null?void 0:e.addAriaLabel)||"Add tab",onClick:function(i){s.onEdit("add",{event:i})}},s.addIcon||"+")}var ta=r.forwardRef(eo);function to(a,c){var f=a.prefixCls,s=a.id,e=a.tabs,n=a.locale,t=a.mobile,i=a.moreIcon,l=i===void 0?"More":i,m=a.moreTransitionName,d=a.style,b=a.className,x=a.editable,U=a.tabBarGutter,L=a.rtl,Y=a.onTabClick,Se=Object(r.useState)(!1),Be=Object(y.a)(Se,2),Le=Be[0],Ve=Be[1],Fe=Object(r.useState)(null),ke=Object(y.a)(Fe,2),Ue=ke[0],nt=ke[1],Xe="".concat(s,"-more-popup"),Dt="".concat(f,"-dropdown"),dt=Ue!==null?"".concat(Xe,"-").concat(Ue):null,Oe=n==null?void 0:n.dropdownAriaLabel,Ce=r.createElement(Ka,{onClick:function(pt){var Tt=pt.key,Xt=pt.domEvent;Y(Tt,Xt),Ve(!1)},id:Xe,tabIndex:-1,role:"listbox","aria-activedescendant":dt,selectedKeys:[Ue],"aria-label":Oe!==void 0?Oe:"expanded dropdown"},e.map(function(ot){return r.createElement(fa,{key:ot.key,id:"".concat(Xe,"-").concat(ot.key),role:"option","aria-controls":s&&"".concat(s,"-panel-").concat(ot.key),disabled:ot.disabled},ot.tab)}));function Ge(ot){for(var pt=e.filter(function(an){return!an.disabled}),Tt=pt.findIndex(function(an){return an.key===Ue})||0,Xt=pt.length,nn=0;nnat?(Qe=Ce,Xe.current="x"):(Qe=Ge,Xe.current="y");var Ct=Date.now();Ct-Ue.current>100&&(nt.current=!1),(c(-Qe,-Qe)||nt.current)&&(Oe.preventDefault(),nt.current=!0),Ue.current=Ct}var dt=Object(r.useRef)(null);dt.current={onTouchStart:Ve,onTouchMove:Fe,onTouchEnd:ke,onWheel:Dt},r.useEffect(function(){function Oe(ve){dt.current.onTouchStart(ve)}function Ce(ve){dt.current.onTouchMove(ve)}function Ge(ve){dt.current.onTouchEnd(ve)}function Qe(ve){dt.current.onWheel(ve)}return document.addEventListener("touchmove",Ce,{passive:!1}),document.addEventListener("touchend",Ge,{passive:!1}),a.current.addEventListener("touchstart",Oe,{passive:!1}),a.current.addEventListener("wheel",Qe),function(){document.removeEventListener("touchmove",Ce),document.removeEventListener("touchend",Ge)}},[])}function ba(){var a=Object(r.useRef)(new Map);function c(s){return a.current.has(s)||a.current.set(s,r.createRef()),a.current.get(s)}function f(s){a.current.delete(s)}return[c,f]}function Wa(a,c){var f=r.useRef(a),s=r.useState({}),e=Object(y.a)(s,2),n=e[1];function t(i){var l=typeof i=="function"?i(f.current):i;l!==f.current&&c(l,f.current),f.current=l,n({})}return[f.current,t]}var Ba=function(c){var f=c.position,s=c.prefixCls,e=c.extra;if(!e)return null;var n,t=e;return f==="right"&&(n=t.right||!t.left&&t||null),f==="left"&&(n=t.left||null),n?r.createElement("div",{className:"".concat(s,"-extra-content")},n):null};function Wo(a,c){var f,s=r.useContext(va),e=s.prefixCls,n=s.tabs,t=a.className,i=a.style,l=a.id,m=a.animated,d=a.activeKey,b=a.rtl,x=a.extra,U=a.editable,L=a.locale,Y=a.tabPosition,Se=a.tabBarGutter,Be=a.children,Le=a.onTabClick,Ve=a.onTabScroll,Fe=Object(r.useRef)(),ke=Object(r.useRef)(),Ue=Object(r.useRef)(),nt=Object(r.useRef)(),Xe=ba(),Dt=Object(y.a)(Xe,2),dt=Dt[0],Oe=Dt[1],Ce=Y==="top"||Y==="bottom",Ge=Wa(0,function(ft,Je){Ce&&Ve&&Ve({direction:ft>Je?"left":"right"})}),Qe=Object(y.a)(Ge,2),ve=Qe[0],at=Qe[1],Ct=Wa(0,function(ft,Je){!Ce&&Ve&&Ve({direction:ft>Je?"top":"bottom"})}),ot=Object(y.a)(Ct,2),pt=ot[0],Tt=ot[1],Xt=Object(r.useState)(0),nn=Object(y.a)(Xt,2),_t=nn[0],an=nn[1],gn=Object(r.useState)(0),sn=Object(y.a)(gn,2),ln=sn[0],At=sn[1],Zt=Object(r.useState)(0),$t=Object(y.a)(Zt,2),zt=$t[0],Dn=$t[1],Pn=Object(r.useState)(0),Wn=Object(y.a)(Pn,2),Et=Wn[0],Cn=Wn[1],Bn=Object(r.useState)(null),Ot=Object(y.a)(Bn,2),ct=Ot[0],Gt=Ot[1],Xo=Object(r.useState)(null),bo=Object(y.a)(Xo,2),na=bo[0],$o=bo[1],Go=Object(r.useState)(0),go=Object(y.a)(Go,2),Jo=go[0],Yo=go[1],Qo=Object(r.useState)(0),Eo=Object(y.a)(Qo,2),Zo=Eo[0],qo=Eo[1],er=O(new Map),yo=Object(y.a)(er,2),tr=yo[0],nr=yo[1],Fa=W(n,tr,_t),Co="".concat(e,"-nav-operations-hidden"),ga=0,Ea=0;Ce?b?(ga=0,Ea=Math.max(0,_t-ct)):(ga=Math.min(0,ct-_t),Ea=0):(ga=Math.min(0,na-ln),Ea=0);function ao(ft){return ftEa?[Ea,!1]:[ft,!0]}var Oo=Object(r.useRef)(),ar=Object(r.useState)(),xo=Object(y.a)(ar,2),oo=xo[0],jo=xo[1];function ro(){jo(Date.now())}function io(){window.clearTimeout(Oo.current)}za(Fe,function(ft,Je){var Wt=!1;function un(Ca,Oa){Ca(function(xa){var ja=ao(xa+Oa),aa=Object(y.a)(ja,2),co=aa[0],fo=aa[1];return Wt=fo,co})}if(Ce){if(ct>=_t)return Wt;un(at,ft)}else{if(na>=ln)return Wt;un(Tt,Je)}return io(),ro(),Wt}),Object(r.useEffect)(function(){return io(),oo&&(Oo.current=window.setTimeout(function(){jo(0)},100)),io},[oo]);function Mo(){var ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d,Je=Fa.get(ft);if(!Je)return;if(Ce){var Wt=ve;b?Je.rightve+ct&&(Wt=Je.right+Je.width-ct):Je.left<-ve?Wt=-Je.left:Je.left+Je.width>-ve+ct&&(Wt=-(Je.left+Je.width-ct)),Tt(0),at(ao(Wt)[0])}else{var un=pt;Je.top<-pt?un=-Je.top:Je.top+Je.height>-pt+na&&(un=-(Je.top+Je.height-na)),at(0),Tt(ao(un)[0])}}var or=he(Fa,{width:ct,height:na,left:ve,top:pt},{width:zt,height:Et},{width:Jo,height:Zo},Object(j.a)(Object(j.a)({},a),{},{tabs:n})),So=Object(y.a)(or,2),rr=So[0],ir=So[1],sr=n.map(function(ft){var Je=ft.key;return r.createElement(D,{id:l,prefixCls:e,key:Je,rtl:b,tab:ft,closable:ft.closable,editable:U,active:Je===d,tabPosition:Y,tabBarGutter:Se,renderWrapper:Be,removeAriaLabel:L==null?void 0:L.removeAriaLabel,ref:dt(Je),onClick:function(un){Le(Je,un)},onRemove:function(){Oe(Je)},onFocus:function(){Mo(Je),ro(),b||(Fe.current.scrollLeft=0),Fe.current.scrollTop=0}})}),so=H(function(){var ft,Je,Wt,un,Ca,Oa,xa,ja,aa,co=((ft=Fe.current)===null||ft===void 0?void 0:ft.offsetWidth)||0,fo=((Je=Fe.current)===null||Je===void 0?void 0:Je.offsetHeight)||0,Ao=((Wt=nt.current)===null||Wt===void 0?void 0:Wt.offsetWidth)||0,Lo=((un=nt.current)===null||un===void 0?void 0:un.offsetHeight)||0,mr=((Ca=Ue.current)===null||Ca===void 0?void 0:Ca.offsetWidth)||0,pr=((Oa=Ue.current)===null||Oa===void 0?void 0:Oa.offsetHeight)||0;Gt(co),$o(fo),Yo(Ao),qo(Lo);var Io=(((xa=ke.current)===null||xa===void 0?void 0:xa.offsetWidth)||0)-Ao,ko=(((ja=ke.current)===null||ja===void 0?void 0:ja.offsetHeight)||0)-Lo;an(Io),At(ko);var Uo=(aa=Ue.current)===null||aa===void 0?void 0:aa.className.includes(Co);Dn(Io-(Uo?0:mr)),Cn(ko-(Uo?0:pr)),nr(function(){var Ko=new Map;return n.forEach(function(hr){var zo=hr.key,Ma=dt(zo).current;Ma&&Ko.set(zo,{width:Ma.offsetWidth,height:Ma.offsetHeight,left:Ma.offsetLeft,top:Ma.offsetTop})}),Ko})}),lr=n.slice(0,rr),ur=n.slice(ir+1),To=[].concat(Object(ge.a)(lr),Object(ge.a)(ur)),cr=Object(r.useState)(),Ro=Object(y.a)(cr,2),dr=Ro[0],fr=Ro[1],_n=Fa.get(d),No=Object(r.useRef)();function Do(){pe.a.cancel(No.current)}Object(r.useEffect)(function(){var ft={};return _n&&(Ce?(b?ft.right=_n.right:ft.left=_n.left,ft.width=_n.width):(ft.top=_n.top,ft.height=_n.height)),Do(),No.current=pe()(function(){fr(ft)}),Do},[_n,Ce,b]),Object(r.useEffect)(function(){Mo()},[d,_n,Fa,Ce]),Object(r.useEffect)(function(){so()},[b,Se,d,n.map(function(ft){return ft.key}).join("_")]);var Po=!!To.length,ya="".concat(e,"-nav-wrap"),lo,uo,_o,wo;return Ce?b?(uo=ve>0,lo=ve+ct<_t):(lo=ve<0,uo=-ve+ct<_t):(_o=pt<0,wo=-pt+na1)Object(ge.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(W.length===0)return Object(ge.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var I=W[0];if(h.isValidElement(I)&&Object(Q.c)(I)){var he=I.ref;W[0]=h.cloneElement(I,{ref:Object(Q.a)(he,this.setChildNode)})}return W.length===1?W[0]:W.map(function(S,P){return!h.isValidElement(S)||"key"in S&&S.key!==null?S:h.cloneElement(S,{key:"".concat(oe,"-").concat(P)})})}}]),z}(h.Component);H.displayName="ResizeObserver",ee.a=H},wCXF:function(et,ee,o){"use strict";o.d(ee,"a",function(){return kt});var C=o("rePB"),y=o("VTBJ"),ce=o("KQm4"),j=o("U8pU"),r=o("ODXe"),h=o("q1tI"),F=o("TSYQ"),q=o.n(F),R=o("Gytx"),ge=o.n(R),Q=o("Kwbf"),pe=o("t23M"),oe=o("qx4F"),H=o("6eGT"),O=o("IBYe"),g=o("Ff2n"),z=o("c+Xe"),D=o("fyJ8"),k=o("biw7");function W(E,B,X,ue,be){var re=X[E]||{},ae=X[B]||{},G,te;re.fixed==="left"?G=ue.left[E]:ae.fixed==="right"&&(te=ue.right[B]);var ye=!1,fe=!1,Ee=!1,Ae=!1,je=X[B+1],ze=X[E-1];if(be==="rtl"){if(G!==void 0){var mt=ze&&ze.fixed==="left";Ae=!mt}else if(te!==void 0){var tt=je&&je.fixed==="right";Ee=!tt}}else if(G!==void 0){var ut=je&&je.fixed==="left";ye=!ut}else if(te!==void 0){var Ie=ze&&ze.fixed==="right";fe=!Ie}return{fixLeft:G,fixRight:te,lastFixLeft:ye,firstFixRight:fe,lastFixRight:Ee,firstFixLeft:Ae,isSticky:ue.isSticky}}var I=o("sR1s");function he(E){var B=E.cells,X=E.stickyOffsets,ue=E.flattenColumns,be=E.rowComponent,re=E.cellComponent,ae=E.onHeaderRow,G=E.index,te=h.useContext(k.a),ye=te.prefixCls,fe=te.direction,Ee;ae&&(Ee=ae(B.map(function(je){return je.column}),G));var Ae=Object(I.a)(B.map(function(je){return je.column}));return h.createElement(be,Object.assign({},Ee),B.map(function(je,ze){var mt=je.column,tt=W(je.colStart,je.colEnd,ue,X,fe),ut;return mt&&mt.onHeaderCell&&(ut=je.column.onHeaderCell(mt)),h.createElement(D.a,Object.assign({},je,{ellipsis:mt.ellipsis,align:mt.align,component:re,prefixCls:ye,key:Ae[ze]},tt,{additionalProps:ut,rowType:"header"}))}))}he.displayName="HeaderRow";var S=he;function P(E){var B=[];function X(ae,G){var te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;B[te]=B[te]||[];var ye=G,fe=ae.filter(Boolean).map(function(Ee){var Ae={key:Ee.key,className:Ee.className||"",children:Ee.title,column:Ee,colStart:ye},je=1,ze=Ee.children;return ze&&ze.length>0&&(je=X(ze,ye,te+1).reduce(function(mt,tt){return mt+tt},0),Ae.hasSubColumns=!0),"colSpan"in Ee&&(je=Ee.colSpan),"rowSpan"in Ee&&(Ae.rowSpan=Ee.rowSpan),Ae.colSpan=je,Ae.colEnd=Ae.colStart+je-1,B[te].push(Ae),ye+=je,je});return fe}X(E,0);for(var ue=B.length,be=function(G){B[G].forEach(function(te){!("rowSpan"in te)&&!te.hasSubColumns&&(te.rowSpan=ue-G)})},re=0;re=0;G-=1){var te=B[G],ye=X&&X[G],fe=ye&&ye[v.a];(te||fe||ae)&&(be.unshift(h.createElement("col",Object.assign({key:G,style:{width:te,minWidth:te}},fe))),ae=!0)}return h.createElement("colgroup",null,be)}var M=u;function T(E,B){return Object(h.useMemo)(function(){for(var X=[],ue=0;ue1?Jt-1:0),dn=1;dn=Ee&&(yt=Ee-Ae),ae({scrollLeft:yt/Ee*(fe+2)}),Ie.current.x=We.pageX},gt=function(){var We=Object(xt.b)(re.current).top,St=We+re.current.offsetHeight,Ht=document.documentElement.scrollTop+window.innerHeight;St-Object(oe.a)()<=Ht||We>=Ht-G?ut(function(Vt){return Object(y.a)(Object(y.a)({},Vt),{},{isHiddenScrollBar:!0})}):ut(function(Vt){return Object(y.a)(Object(y.a)({},Vt),{},{isHiddenScrollBar:!1})})},bt=function(We){ut(function(St){return Object(y.a)(Object(y.a)({},St),{},{scrollLeft:We/fe*Ee||0})})};return h.useImperativeHandle(X,function(){return{setScrollLeft:bt}}),h.useEffect(function(){var st=Object(ht.a)(document.body,"mouseup",Ut,!1),We=Object(ht.a)(document.body,"mousemove",Ft,!1);return gt(),function(){st.remove(),We.remove()}},[Ae,vt]),h.useEffect(function(){var st=Object(ht.a)(window,"scroll",gt,!1),We=Object(ht.a)(window,"resize",gt,!1);return function(){st.remove(),We.remove()}},[]),h.useEffect(function(){tt.isHiddenScrollBar||ut(function(st){var We,St;return Object(y.a)(Object(y.a)({},st),{},{scrollLeft:re.current.scrollLeft/((We=re.current)===null||We===void 0?void 0:We.scrollWidth)*((St=re.current)===null||St===void 0?void 0:St.clientWidth)})})},[tt.isHiddenScrollBar]),fe<=Ee||!Ae||tt.isHiddenScrollBar?null:h.createElement("div",{style:{height:Object(oe.a)(),width:Ee,bottom:G},className:"".concat(ye,"-sticky-scroll")},h.createElement("div",{onMouseDown:it,ref:je,className:q()("".concat(ye,"-sticky-scroll-bar"),Object(C.a)({},"".concat(ye,"-sticky-scroll-bar-active"),vt)),style:{width:"".concat(Ae,"px"),transform:"translate3d(".concat(tt.scrollLeft,"px, 0, 0)")}}))},_e=h.forwardRef(lt);function Ke(E,B){return h.useMemo(function(){var X=!!E;return{isSticky:X,stickyClassName:X?"".concat(B,"-sticky-header"):"",offsetHeader:Object(j.a)(E)==="object"&&E.offsetHeader||0,offsetScroll:Object(j.a)(E)==="object"&&E.offsetScroll||0}},[E,B])}var It=[],Lt={},kt="rc-table-internal-hook",jt=h.memo(function(E){var B=E.children;return B},function(E,B){return ge()(E.props,B.props)?E.pingLeft!==B.pingLeft||E.pingRight!==B.pingRight:!1});function wt(E){var B,X=E.prefixCls,ue=E.className,be=E.rowClassName,re=E.style,ae=E.data,G=E.rowKey,te=E.scroll,ye=E.tableLayout,fe=E.direction,Ee=E.title,Ae=E.footer,je=E.summary,ze=E.id,mt=E.showHeader,tt=E.components,ut=E.emptyText,Ie=E.onRow,Bt=E.onHeaderRow,Mt=E.internalHooks,vt=E.transformColumns,Pt=E.internalRefs,Ut=E.sticky,it=ae||It,Ft=!!it.length,gt=h.useState(0),bt=Object(r.a)(gt,2),st=bt[0],We=bt[1];h.useEffect(function(){We(Object(oe.a)())});var St=h.useMemo(function(){return Object(I.c)(tt,{})},[tt]),Ht=h.useCallback(function(Ze,qe){return Object(I.b)(St,Ze)||qe},[St]),Vt=h.useMemo(function(){return typeof G=="function"?G:function(Ze){var qe=Ze&&Ze[G];return qe}},[G]),yt=Object(v.c)(E),wn=yt.expandIcon,An=yt.expandedRowKeys,Fn=yt.defaultExpandedRowKeys,on=yt.defaultExpandAllRows,hn=yt.expandedRowRender,On=yt.onExpand,xn=yt.onExpandedRowsChange,Hn=yt.expandRowByClick,qt=yt.rowExpandable,Ln=yt.expandIconColumnIndex,En=yt.expandedRowClassName,In=yt.childrenColumnName,jn=yt.indentSize,vn=wn||rt,Mn=In||"children",Vn=h.useMemo(function(){return hn?"row":E.expandable&&Mt===kt&&E.expandable.__PARENT_RENDER_ICON__||it.some(function(Ze){return Ze&&Object(j.a)(Ze)==="object"&&Ze[Mn]})?"nest":!1},[!!hn,it]),Sn=h.useState(function(){return Fn||(on?$e(it,Vt,Mn):[])}),Kt=Object(r.a)(Sn,2),Qt=Kt[0],rn=Kt[1],Jt=h.useMemo(function(){return new Set(An||Qt||[])},[An,Qt]),en=h.useCallback(function(Ze){var qe=Vt(Ze,it.indexOf(Ze)),Nt,Yt=Jt.has(qe);Yt?(Jt.delete(qe),Nt=Object(ce.a)(Jt)):Nt=[].concat(Object(ce.a)(Jt),[qe]),rn(Nt),On&&On(!Yt,Ze),xn&&xn(Nt)},[Vt,Jt,it,On,xn]),dn=h.useState(0),Xn=Object(r.a)(dn,2),kn=Xn[0],$n=Xn[1],Sa=Object($.b)(Object(y.a)(Object(y.a)(Object(y.a)({},E),yt),{},{expandable:!!hn,expandedKeys:Jt,getRowKey:Vt,onTriggerExpand:en,expandIcon:vn,expandIconColumnIndex:Ln,direction:fe}),Mt===kt?vt:null),Ta=Object(r.a)(Sa,2),Gn=Ta[0],Rt=Ta[1],Jn=h.useMemo(function(){return{columns:Gn,flattenColumns:Rt}},[Gn,Rt]),Yn=h.useRef(),Ra=h.useRef(),fn=h.useRef(),Ha=h.useState(!1),Na=Object(r.a)(Ha,2),oa=Na[0],Va=Na[1],Xa=h.useState(!1),ra=Object(r.a)(Xa,2),Qn=ra[0],$a=ra[1],Ga=_(new Map),Da=Object(r.a)(Ga,2),Ja=Da[0],Ya=Da[1],bn=Object(I.a)(Rt),ia=bn.map(function(Ze){return Ja.get(Ze)}),Pa=h.useMemo(function(){return ia},[ia.join("_")]),sa=De(Pa,Rt.length,fe),tn=te&&Object(I.d)(te.y),mn=te&&Object(I.d)(te.x),pn=mn&&Rt.some(function(Ze){var qe=Ze.fixed;return qe}),la=h.useRef(),Un=Ke(Ut,X),Kn=Un.isSticky,_a=Un.offsetHeader,Qa=Un.offsetScroll,wa=Un.stickyClassName,ua,Zn,Tn;tn&&(Zn={overflowY:"scroll",maxHeight:te.y}),mn&&(ua={overflowX:"auto"},tn||(Zn={overflowY:"hidden"}),Tn={width:te.x===!0?"auto":te.x,minWidth:"100%"});var yn=h.useCallback(function(Ze,qe){Ya(function(Nt){var Yt=new Map(Nt);return Yt.set(Ze,qe),Yt})},[]),qn=K(null),Aa=Object(r.a)(qn,2),La=Aa[0],Ia=Aa[1];function ea(Ze,qe){if(!qe)return;typeof qe=="function"?qe(Ze):qe.scrollLeft!==Ze&&(qe.scrollLeft=Ze)}var Rn=function(qe){var Nt=qe.currentTarget,Yt=qe.scrollLeft,zn=typeof Yt=="number"?Yt:Nt.scrollLeft,za=Nt||Lt;if(!Ia()||Ia()===za){var ba;La(za),ea(zn,Ra.current),ea(zn,fn.current),ea(zn,(ba=la.current)===null||ba===void 0?void 0:ba.setScrollLeft)}if(Nt){var Wa=Nt.scrollWidth,Ba=Nt.clientWidth;Va(zn>0),$a(zn0?[].concat(Object(y.a)(g),Object(y.a)(Q(W).map(function(I){return Object(ce.a)({fixed:k},I)}))):[].concat(Object(y.a)(g),[Object(ce.a)(Object(ce.a)({},z),{},{fixed:k})])},[])}function pe(O){for(var g=!0,z=0;z=0;W-=1){var I=O[W];if(k&&I.fixed!=="right")k=!1;else if(!k&&I.fixed==="right"){Object(F.a)(!1,"Index ".concat(W+1," of `columns` missing `fixed='right'` prop."));break}}}function oe(O){return O.map(function(g){var z=g.fixed,D=Object(j.a)(g,["fixed"]),k=z;return z==="left"?k="right":z==="right"&&(k="left"),Object(ce.a)({fixed:k},D)})}function H(O,g){var z=O.prefixCls,D=O.columns,k=O.children,W=O.expandable,I=O.expandedKeys,he=O.getRowKey,S=O.onTriggerExpand,P=O.expandIcon,w=O.rowExpandable,p=O.expandIconColumnIndex,v=O.direction,u=O.expandRowByClick,M=r.useMemo(function(){return D||ge(k)},[D,k]),T=r.useMemo(function(){if(W){var A,ne=p||0,me=M[ne],Te=(A={},Object(C.a)(A,R.a,{className:"".concat(z,"-expand-icon-col")}),Object(C.a)(A,"title",""),Object(C.a)(A,"fixed",me?me.fixed:null),Object(C.a)(A,"className","".concat(z,"-row-expand-icon-cell")),Object(C.a)(A,"render",function(V,Me,Re){var Ne=he(Me,Re),we=I.has(Ne),J=w?w(Me):!0,$=P({prefixCls:z,expanded:we,expandable:J,record:Me,onExpand:S});return u?r.createElement("span",{onClick:function(Z){return Z.stopPropagation()}},$):$}),A),Ye=M.slice();return ne>=0&&Ye.splice(ne,0,Te),Ye}return M},[W,M,he,I,P,v]),N=r.useMemo(function(){var A=T;return g&&(A=g(A)),A.length||(A=[{render:function(){return null}}]),A},[g,T,v]),ie=r.useMemo(function(){return v==="rtl"?oe(Q(N)):Q(N)},[N,v]);return[N,ie]}ee.b=H},"y0+3":function(et,ee,o){"use strict";o.d(ee,"a",function(){return Q}),o.d(ee,"b",function(){return oe});var C=/margin|padding|width|height|max|min|offset/,y={left:!0,top:!0},ce={cssFloat:1,styleFloat:1,float:1};function j(H){return H.nodeType===1?H.ownerDocument.defaultView.getComputedStyle(H,null):{}}function r(H,O,g){if(O=O.toLowerCase(),g==="auto"){if(O==="height")return H.offsetHeight;if(O==="width")return H.offsetWidth}return O in y||(y[O]=C.test(O)),y[O]?parseFloat(g)||0:g}function h(H,O){var g=arguments.length,z=j(H);return O=ce[O]?"cssFloat"in H.style?"cssFloat":"styleFloat":O,g===1?z:r(H,O,z[O]||H.style[O])}function F(H,O,g){var z=arguments.length;if(O=ce[O]?"cssFloat"in H.style?"cssFloat":"styleFloat":O,z===3)return typeof g=="number"&&C.test(O)&&(g="".concat(g,"px")),H.style[O]=g,g;for(var D in O)O.hasOwnProperty(D)&&F(H,D,O[D]);return j(H)}function q(H){return H===document.body?document.documentElement.clientWidth:H.offsetWidth}function R(H){return H===document.body?window.innerHeight||document.documentElement.clientHeight:H.offsetHeight}function ge(){var H=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),O=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:H,height:O}}function Q(){var H=document.documentElement.clientWidth,O=window.innerHeight||document.documentElement.clientHeight;return{width:H,height:O}}function pe(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function oe(H){var O=H.getBoundingClientRect(),g=document.documentElement;return{left:O.left+(window.pageXOffset||g.scrollLeft)-(g.clientLeft||document.body.clientLeft||0),top:O.top+(window.pageYOffset||g.scrollTop)-(g.clientTop||document.body.clientTop||0)}}}}]); diff --git a/p__User__Detail__OtherResources__index.62fc5694.async.js b/p__User__Detail__OtherResources__index.62fc5694.async.js index 47420dfba7..19d9e80700 100644 --- a/p__User__Detail__OtherResources__index.62fc5694.async.js +++ b/p__User__Detail__OtherResources__index.62fc5694.async.js @@ -1,4 +1,4 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[243,8],{"6+eU":function(Te,k,e){"use strict";e.d(k,"a",function(){return m});var j=e("wx14"),x=e("rePB"),te=e("VTBJ"),ie=e("1OyB"),S=e("vuIU"),n=e("Ji7U"),le=e("LK+K"),B=e("q1tI"),c=e.n(B),se=e("TSYQ"),f=e.n(se),w=function(C){var a,o="".concat(C.rootPrefixCls,"-item"),t=f()(o,"".concat(o,"-").concat(C.page),(a={},Object(x.a)(a,"".concat(o,"-active"),C.active),Object(x.a)(a,C.className,!!C.className),Object(x.a)(a,"".concat(o,"-disabled"),!C.page),a)),i=function(){C.onClick(C.page)},d=function(H){C.onKeyPress(H,C.onClick,C.page)};return c.a.createElement("li",{title:C.showTitle?C.page:null,className:t,onClick:i,onKeyPress:d,tabIndex:"0"},C.itemRender(C.page,"page",c.a.createElement("a",{rel:"nofollow"},C.page)))},F=w,O={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},r=function(b){Object(n.a)(a,b);var C=Object(le.a)(a);function a(){var o;Object(ie.a)(this,a);for(var t=arguments.length,i=new Array(t),d=0;d=0||p.relatedTarget.className.indexOf("".concat($,"-next"))>=0))return;o.setState({goInputText:""}),L(o.getValidValue())},o.go=function(p){var H=o.state.goInputText;if(H==="")return;(p.keyCode===O.ENTER||p.type==="click")&&(o.setState({goInputText:""}),o.props.quickGo(o.getValidValue()))},o}return Object(S.a)(a,[{key:"getValidValue",value:function(){var t=this.state,i=t.goInputText,d=t.current;return!i||isNaN(i)?d:Number(i)}},{key:"getPageSizeOptions",value:function(){var t=this.props,i=t.pageSize,d=t.pageSizeOptions;return d.some(function(p){return p.toString()===i.toString()})?d:d.concat([i.toString()]).sort(function(p,H){var E=isNaN(Number(p))?0:Number(p),L=isNaN(Number(H))?0:Number(H);return E-L})}},{key:"render",value:function(){var t=this,i=this.props,d=i.pageSize,p=i.locale,H=i.rootPrefixCls,E=i.changeSize,L=i.quickGo,$=i.goButton,q=i.selectComponentClass,Ce=i.buildOptionText,Z=i.selectPrefixCls,_=i.disabled,ae=this.state.goInputText,ce="".concat(H,"-options"),be=q,fe=null,U=null,I=null;if(!E&&!L)return null;var J=this.getPageSizeOptions();if(E&&be){var W=J.map(function(h,Q){return c.a.createElement(be.Option,{key:Q,value:h.toString()},(Ce||t.buildOptionText)(h))});fe=c.a.createElement(be,{disabled:_,prefixCls:Z,showSearch:!1,className:"".concat(ce,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(d||J[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Q){return Q.parentNode}},W)}return L&&($&&(I=typeof $=="boolean"?c.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:_,className:"".concat(ce,"-quick-jumper-button")},p.jump_to_confirm):c.a.createElement("span",{onClick:this.go,onKeyUp:this.go},$)),U=c.a.createElement("div",{className:"".concat(ce,"-quick-jumper")},p.jump_to,c.a.createElement("input",{disabled:_,type:"text",value:ae,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),p.page,I)),c.a.createElement("li",{className:"".concat(ce)},fe,U)}}]),a}(c.a.Component);r.defaultProps={pageSizeOptions:["10","20","50","100"]};var l=r,R=e("N2Kk");function u(){}function y(b){return typeof b=="number"&&isFinite(b)&&Math.floor(b)===b}function v(b,C,a){return a}function g(b,C,a){var o=typeof b=="undefined"?C.pageSize:b;return Math.floor((a.total-1)/o)+1}var z=function(b){Object(n.a)(a,b);var C=Object(le.a)(a);function a(o){var t;Object(ie.a)(this,a),t=C.call(this,o),t.getJumpPrevPage=function(){return Math.max(1,t.state.current-(t.props.showLessItems?3:5))},t.getJumpNextPage=function(){return Math.min(g(void 0,t.state,t.props),t.state.current+(t.props.showLessItems?3:5))},t.getItemIcon=function(E,L){var $=t.props.prefixCls,q=E||c.a.createElement("button",{type:"button","aria-label":L,className:"".concat($,"-item-link")});return typeof E=="function"&&(q=c.a.createElement(E,Object(te.a)({},t.props))),q},t.savePaginationNode=function(E){t.paginationNode=E},t.isValid=function(E){return y(E)&&E!==t.state.current},t.shouldDisplayQuickJumper=function(){var E=t.props,L=E.showQuickJumper,$=E.pageSize,q=E.total;return q<=$?!1:L},t.handleKeyDown=function(E){(E.keyCode===O.ARROW_UP||E.keyCode===O.ARROW_DOWN)&&E.preventDefault()},t.handleKeyUp=function(E){var L=t.getValidValue(E),$=t.state.currentInputValue;L!==$&&t.setState({currentInputValue:L}),E.keyCode===O.ENTER?t.handleChange(L):E.keyCode===O.ARROW_UP?t.handleChange(L-1):E.keyCode===O.ARROW_DOWN&&t.handleChange(L+1)},t.changePageSize=function(E){var L=t.state.current,$=g(E,t.state,t.props);L=L>$?$:L,$===0&&(L=t.state.current),typeof E=="number"&&("pageSize"in t.props||t.setState({pageSize:E}),"current"in t.props||t.setState({current:L,currentInputValue:L})),t.props.onShowSizeChange(L,E),"onChange"in t.props&&t.props.onChange&&t.props.onChange(L,E)},t.handleChange=function(E){var L=t.props.disabled,$=E;if(t.isValid($)&&!L){var q=g(void 0,t.state,t.props);$>q?$=q:$<1&&($=1),"current"in t.props||t.setState({current:$,currentInputValue:$});var Ce=t.state.pageSize;return t.props.onChange($,Ce),$}return t.state.current},t.prev=function(){t.hasPrev()&&t.handleChange(t.state.current-1)},t.next=function(){t.hasNext()&&t.handleChange(t.state.current+1)},t.jumpPrev=function(){t.handleChange(t.getJumpPrevPage())},t.jumpNext=function(){t.handleChange(t.getJumpNextPage())},t.hasPrev=function(){return t.state.current>1},t.hasNext=function(){return t.state.current2?$-2:0),Ce=2;Ce<$;Ce++)q[Ce-2]=arguments[Ce];L.apply(void 0,q)}},t.runIfEnterPrev=function(E){t.runIfEnter(E,t.prev)},t.runIfEnterNext=function(E){t.runIfEnter(E,t.next)},t.runIfEnterJumpPrev=function(E){t.runIfEnter(E,t.jumpPrev)},t.runIfEnterJumpNext=function(E){t.runIfEnter(E,t.jumpNext)},t.handleGoTO=function(E){(E.keyCode===O.ENTER||E.type==="click")&&t.handleChange(t.state.currentInputValue)};var i=o.onChange!==u,d="current"in o;d&&!i&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var p=o.defaultCurrent;"current"in o&&(p=o.current);var H=o.defaultPageSize;return"pageSize"in o&&(H=o.pageSize),p=Math.min(p,g(H,void 0,o)),t.state={current:p,currentInputValue:p,pageSize:H},t}return Object(S.a)(a,[{key:"componentDidUpdate",value:function(t,i){var d=this.props.prefixCls;if(i.current!==this.state.current&&this.paginationNode){var p=this.paginationNode.querySelector(".".concat(d,"-item-").concat(i.current));p&&document.activeElement===p&&p.blur()}}},{key:"getValidValue",value:function(t){var i=t.target.value,d=g(void 0,this.state,this.props),p=this.state.currentInputValue,H;return i===""?H=i:isNaN(Number(i))?H=p:i>=d?H=d:H=Number(i),H}},{key:"getShowSizeChanger",value:function(){var t=this.props,i=t.showSizeChanger,d=t.total,p=t.totalBoundaryShowSizeChanger;return typeof i!="undefined"?i:d>p}},{key:"renderPrev",value:function(t){var i=this.props,d=i.prevIcon,p=i.itemRender,H=p(t,"prev",this.getItemIcon(d,"prev page")),E=!this.hasPrev();return Object(B.isValidElement)(H)?Object(B.cloneElement)(H,{disabled:E}):H}},{key:"renderNext",value:function(t){var i=this.props,d=i.nextIcon,p=i.itemRender,H=p(t,"next",this.getItemIcon(d,"next page")),E=!this.hasNext();return Object(B.isValidElement)(H)?Object(B.cloneElement)(H,{disabled:E}):H}},{key:"render",value:function(){var t=this,i=this.props,d=i.prefixCls,p=i.className,H=i.style,E=i.disabled,L=i.hideOnSinglePage,$=i.total,q=i.locale,Ce=i.showQuickJumper,Z=i.showLessItems,_=i.showTitle,ae=i.showTotal,ce=i.simple,be=i.itemRender,fe=i.showPrevNextJumpers,U=i.jumpPrevIcon,I=i.jumpNextIcon,J=i.selectComponentClass,W=i.selectPrefixCls,h=i.pageSizeOptions,Q=this.state,X=Q.current,oe=Q.pageSize,ue=Q.currentInputValue;if(L===!0&&$<=oe)return null;var ee=g(void 0,this.state,this.props),de=[],Oe=null,he=null,De=null,We=null,Ne=null,pe=Ce&&Ce.goButton,ve=Z?1:2,Be=X-1>0?X-1:0,Fe=X+1=ve*2&&X!==1+2&&(de[0]=Object(B.cloneElement)(de[0],{className:"".concat(d,"-item-after-jump-prev")}),de.unshift(Oe)),ee-X>=ve*2&&X!==ee-2&&(de[de.length-1]=Object(B.cloneElement)(de[de.length-1],{className:"".concat(d,"-item-before-jump-next")}),de.push(he)),M!==1&&de.unshift(De),K!==ee&&de.push(We)}var D=null;ae&&(D=c.a.createElement("li",{className:"".concat(d,"-total-text")},ae($,[$===0?0:(X-1)*oe+1,X*oe>$?$:X*oe])));var P=!this.hasPrev()||!ee,A=!this.hasNext()||!ee;return c.a.createElement("ul",Object(j.a)({className:f()(d,p,Object(x.a)({},"".concat(d,"-disabled"),E)),style:H,unselectable:"unselectable",ref:this.savePaginationNode},Le),D,c.a.createElement("li",{title:_?q.prev_page:null,onClick:this.prev,tabIndex:P?null:0,onKeyPress:this.runIfEnterPrev,className:f()("".concat(d,"-prev"),Object(x.a)({},"".concat(d,"-disabled"),P)),"aria-disabled":P},this.renderPrev(Be)),de,c.a.createElement("li",{title:_?q.next_page:null,onClick:this.next,tabIndex:A?null:0,onKeyPress:this.runIfEnterNext,className:f()("".concat(d,"-next"),Object(x.a)({},"".concat(d,"-disabled"),A)),"aria-disabled":A},this.renderNext(Fe)),c.a.createElement(l,{disabled:E,locale:q,rootPrefixCls:d,selectComponentClass:J,selectPrefixCls:W,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:X,pageSize:oe,pageSizeOptions:h,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:pe}))}}],[{key:"getDerivedStateFromProps",value:function(t,i){var d={};if("current"in t&&(d.current=t.current,t.current!==i.current&&(d.currentInputValue=d.current)),"pageSize"in t&&t.pageSize!==i.pageSize){var p=i.current,H=g(t.pageSize,i,t);p=p>H?H:p,"current"in t||(d.current=p,d.currentInputValue=p),d.pageSize=t.pageSize}return d}}]),a}(c.a.Component);z.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:u,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:u,locale:R.a,style:{},itemRender:v,totalBoundaryShowSizeChanger:50};var m=z},"6RRn":function(Te,k,e){"use strict";var j=e("wCXF"),x=e("n6Qo");e.d(k,"b",function(){return x.a});var te=e("IBYe"),ie=e("6eGT"),S=e("hW8S");e.d(k,"a",function(){return S.a}),k.c=j.b},"6eGT":function(Te,k,e){"use strict";function j(x){return null}k.a=j},"815F":function(Te,k,e){"use strict";e.d(k,"e",function(){return le}),e.d(k,"c",function(){return c}),e.d(k,"d",function(){return se}),e.d(k,"a",function(){return w}),e.d(k,"f",function(){return F}),e.d(k,"b",function(){return O});var j=e("KQm4"),x=e("VTBJ"),te=e("Ff2n"),ie=e("Zm9Q"),S=e("Kwbf"),n=e("OZM5");function le(r,l){return r!=null?r:l}function B(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=new Map;function R(u){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(u||[]).forEach(function(v){var g=v.key,z=v.children;Object(S.a)(g!=null,"Tree node must have a certain key: [".concat(y).concat(g,"]"));var m=String(g);Object(S.a)(!l.has(m)||g===null||g===void 0,"Same 'key' exist in the Tree: ".concat(m)),l.set(m,!0),R(z,"".concat(y).concat(m," > "))})}R(r)}function c(r){function l(R){var u=Object(ie.a)(R);return u.map(function(y){if(!Object(n.i)(y))return Object(S.a)(!y,"Tree/TreeNode can only accept TreeNode as children."),null;var v=y.key,g=y.props,z=g.children,m=Object(te.a)(g,["children"]),b=Object(x.a)({key:v},m),C=l(z);return C.length&&(b.children=C),b}).filter(function(y){return y})}return l(r)}function se(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],R=new Set(l===!0?[]:l),u=[];function y(v){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return v.map(function(z,m){var b=Object(n.h)(g?g.pos:"0",m),C=le(z.key,b),a=Object(x.a)(Object(x.a)({},z),{},{parent:g,pos:b,children:null,data:z,isStart:[].concat(Object(j.a)(g?g.isStart:[]),[m===0]),isEnd:[].concat(Object(j.a)(g?g.isEnd:[]),[m===v.length-1])});return u.push(a),l===!0||R.has(C)?a.children=y(z.children||[],a):a.children=[],a})}return y(r),u}function f(r,l,R){var u;R?typeof R=="string"?u=function(g){return g[R]}:typeof R=="function"&&(u=function(g){return R(g)}):u=function(g,z){return le(g.key,z)};function y(v,g,z){var m=v?v.children:r,b=v?Object(n.h)(z.pos,g):"0";if(v){var C=u(v,b),a={node:v,index:g,pos:b,key:C,parentPos:z.node?z.pos:null,level:z.level+1};l(a)}m&&m.forEach(function(o,t){y(o,t,{node:v,pos:b,level:z?z.level+1:-1})})}y(null)}function w(r){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},R=l.initWrapper,u=l.processEntity,y=l.onProcessFinished,v=arguments.length>2?arguments[2]:void 0,g={},z={},m={posEntities:g,keyEntities:z};return R&&(m=R(m)||m),f(r,function(b){var C=b.node,a=b.index,o=b.pos,t=b.key,i=b.parentPos,d=b.level,p={node:C,index:a,key:t,pos:o,level:d},H=le(t,o);g[o]=p,z[H]=p,p.parent=g[i],p.parent&&(p.parent.children=p.parent.children||[],p.parent.children.push(p)),u&&u(p,m)},v),y&&y(m),m}function F(r,l){var R=l.expandedKeys,u=l.selectedKeys,y=l.loadedKeys,v=l.loadingKeys,g=l.checkedKeys,z=l.halfCheckedKeys,m=l.dragOverNodeKey,b=l.dropPosition,C=l.keyEntities,a=C[r],o={eventKey:r,expanded:R.indexOf(r)!==-1,selected:u.indexOf(r)!==-1,loaded:y.indexOf(r)!==-1,loading:v.indexOf(r)!==-1,checked:g.indexOf(r)!==-1,halfChecked:z.indexOf(r)!==-1,pos:String(a?a.pos:""),dragOver:m===r&&b===0,dragOverGapTop:m===r&&b===-1,dragOverGapBottom:m===r&&b===1};return o}function O(r){var l=r.data,R=r.expanded,u=r.selected,y=r.checked,v=r.loaded,g=r.loading,z=r.halfChecked,m=r.dragOver,b=r.dragOverGapTop,C=r.dragOverGapBottom,a=r.pos,o=r.active,t=Object(x.a)(Object(x.a)({},l),{},{expanded:R,selected:u,checked:y,loaded:v,loading:g,halfChecked:z,dragOver:m,dragOverGapTop:b,dragOverGapBottom:C,pos:a,active:o});return"props"in t||Object.defineProperty(t,"props",{get:function(){return Object(S.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),r}}),t}},IBYe:function(Te,k,e){"use strict";function j(x){return null}k.a=j},LdHM:function(Te,k,e){"use strict";e.d(k,"b",function(){return v}),e.d(k,"a",function(){return z});var j=e("1OyB"),x=e("vuIU"),te=e("Ji7U"),ie=e("LK+K"),S=e("q1tI"),n=e("rePB"),le=e("Ff2n"),B=e("ODXe"),c=e("4IlW"),se=e("bX4T"),f=e("YrtM"),w=e("TSYQ"),F=e.n(w),O=e("+nKL"),r=e("8OUc"),l=function(_,ae){var ce=_.prefixCls,be=_.id,fe=_.flattenOptions,U=_.childrenAsData,I=_.values,J=_.searchValue,W=_.multiple,h=_.defaultActiveFirstOption,Q=_.height,X=_.itemHeight,oe=_.notFoundContent,ue=_.open,ee=_.menuItemSelectedIcon,de=_.virtual,Oe=_.onSelect,he=_.onToggleOpen,De=_.onActiveValue,We=_.onScroll,Ne=_.onMouseEnter,pe="".concat(ce,"-item"),ve=Object(f.a)(function(){return fe},[ue,fe],function(N,D){return D[0]&&N[1]!==D[1]}),Be=S.useRef(null),Fe=function(D){D.preventDefault()},Le=function(D){Be.current&&Be.current.scrollTo({index:D})},Ve=function(D){for(var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,A=ve.length,Y=0;Y1&&arguments[1]!==void 0?arguments[1]:!1;return Object(b.a)(Z).map(function(ae,ce){if(!S.isValidElement(ae)||!ae.type)return null;var be=ae.type.isSelectOptGroup,fe=ae.key,U=ae.props,I=U.children,J=Object(le.a)(U,["children"]);return _||!be?C(ae):Object(m.a)(Object(m.a)({key:"__RC_SELECT_GRP__".concat(fe===null?ce:fe,"__"),label:fe},J),{},{options:a(I)})}).filter(function(ae){return ae})}var o=e("2Qr1"),t=e("qNPg"),i=e("U8pU"),d=e("Kwbf"),p=e("WKfj");function H(Z){var _=Z.mode,ae=Z.options,ce=Z.children,be=Z.backfill,fe=Z.allowClear,U=Z.placeholder,I=Z.getInputElement,J=Z.showSearch,W=Z.onSearch,h=Z.defaultOpen,Q=Z.autoFocus,X=Z.labelInValue,oe=Z.value,ue=Z.inputValue,ee=Z.optionLabelProp,de=_==="multiple"||_==="tags",Oe=J!==void 0?J:de||_==="combobox",he=ae||a(ce);if(Object(d.a)(_!=="tags"||he.every(function(pe){return!pe.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),_==="tags"||_==="combobox"){var De=he.some(function(pe){return pe.options?pe.options.some(function(ve){return typeof("value"in ve?ve.value:ve.key)=="number"}):typeof("value"in pe?pe.value:pe.key)=="number"});Object(d.a)(!De,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(d.a)(_!=="combobox"||!ee,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(d.a)(_==="combobox"||!be,"`backfill` only works with `combobox` mode."),Object(d.a)(_==="combobox"||!I,"`getInputElement` only work with `combobox` mode."),Object(d.b)(_!=="combobox"||!I||!fe||!U,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),W&&!Oe&&_!=="combobox"&&_!=="tags"&&Object(d.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(d.b)(!h||Q,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),oe!=null){var We=Object(p.d)(oe);Object(d.a)(!X||We.every(function(pe){return Object(i.a)(pe)==="object"&&("key"in pe||"value"in pe)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(d.a)(!de||Array.isArray(oe),"`value` should be array when `mode` is `multiple` or `tags`")}if(ce){var Ne=null;Object(b.a)(ce).some(function(pe){if(!S.isValidElement(pe)||!pe.type)return!1;var ve=pe.type;if(ve.isSelectOption)return!1;if(ve.isSelectOptGroup){var Be=Object(b.a)(pe.props.children).every(function(Fe){return!S.isValidElement(Fe)||!pe.type||Fe.type.isSelectOption?!0:(Ne=Fe.type,!1)});return!Be}return Ne=ve,!0}),Ne&&Object(d.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ne.displayName||Ne.name||Ne,"`.")),Object(d.a)(ue===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var E=H,L=Object(t.a)({prefixCls:"rc-select",components:{optionList:u},convertChildrenToData:a,flattenOptions:o.d,getLabeledValue:o.e,filterOptions:o.b,isValueDisabled:o.g,findValueOption:o.c,warningProps:E,fillOptionsWithMissingValue:o.a}),$=function(Z){Object(te.a)(ae,Z);var _=Object(ie.a)(ae);function ae(){var ce;return Object(j.a)(this,ae),ce=_.apply(this,arguments),ce.selectRef=S.createRef(),ce.focus=function(){ce.selectRef.current.focus()},ce.blur=function(){ce.selectRef.current.blur()},ce}return Object(x.a)(ae,[{key:"render",value:function(){return S.createElement(L,Object.assign({ref:this.selectRef},this.props))}}]),ae}(S.Component);$.Option=v,$.OptGroup=z;var q=$,Ce=k.c=q},NvD2:function(Te,k,e){"use strict";e.d(k,"a",function(){return n});var j=e("Kwbf");function x(le,B){var c=new Set;return le.forEach(function(se){B.has(se)||c.add(se)}),c}function te(le){var B=le||{},c=B.disabled,se=B.disableCheckbox,f=B.checkable;return!!(c||se)||f===!1}function ie(le,B,c,se){for(var f=new Set(le),w=new Set,F=0;F<=c;F+=1){var O=B.get(F)||new Set;O.forEach(function(u){var y=u.key,v=u.node,g=u.children,z=g===void 0?[]:g;f.has(y)&&!se(v)&&z.filter(function(m){return!se(m.node)}).forEach(function(m){f.add(m.key)})})}for(var r=new Set,l=c;l>=0;l-=1){var R=B.get(l)||new Set;R.forEach(function(u){var y=u.parent,v=u.node;if(se(v)||!u.parent||r.has(u.parent.key))return;if(se(u.parent.node)){r.add(y.key);return}var g=!0,z=!1;(y.children||[]).filter(function(m){return!se(m.node)}).forEach(function(m){var b=m.key,C=f.has(b);g&&!C&&(g=!1),!z&&(C||w.has(b))&&(z=!0)}),g&&f.add(y.key),z&&w.add(y.key),r.add(y.key)})}return{checkedKeys:Array.from(f),halfCheckedKeys:Array.from(x(w,f))}}function S(le,B,c,se,f){for(var w=new Set(le),F=new Set(B),O=0;O<=se;O+=1){var r=c.get(O)||new Set;r.forEach(function(y){var v=y.key,g=y.node,z=y.children,m=z===void 0?[]:z;!w.has(v)&&!F.has(v)&&!f(g)&&m.filter(function(b){return!f(b.node)}).forEach(function(b){w.delete(b.key)})})}F=new Set;for(var l=new Set,R=se;R>=0;R-=1){var u=c.get(R)||new Set;u.forEach(function(y){var v=y.parent,g=y.node;if(f(g)||!y.parent||l.has(y.parent.key))return;if(f(y.parent.node)){l.add(v.key);return}var z=!0,m=!1;(v.children||[]).filter(function(b){return!f(b.node)}).forEach(function(b){var C=b.key,a=w.has(C);z&&!a&&(z=!1),!m&&(a||F.has(C))&&(m=!0)}),z||w.delete(v.key),m&&F.add(v.key),l.add(v.key)})}return{checkedKeys:Array.from(w),halfCheckedKeys:Array.from(x(F,w))}}function n(le,B,c,se){var f=[],w;se?w=se:w=te;var F=new Set(le.filter(function(R){var u=!!c[R];return u||f.push(R),u})),O=new Map,r=0;Object.keys(c).forEach(function(R){var u=c[R],y=u.level,v=O.get(y);v||(v=new Set,O.set(y,v)),v.add(u),r=Math.max(r,y)}),Object(j.a)(!f.length,"Tree missing follow keys: ".concat(f.slice(0,100).map(function(R){return"'".concat(R,"'")}).join(", ")));var l;return B===!0?l=ie(F,O,r,w):l=S(F,B.halfCheckedKeys,O,r,w),l}},OZM5:function(Te,k,e){"use strict";e.d(k,"b",function(){return se}),e.d(k,"a",function(){return f}),e.d(k,"k",function(){return w}),e.d(k,"h",function(){return F}),e.d(k,"i",function(){return O}),e.d(k,"g",function(){return r}),e.d(k,"c",function(){return l}),e.d(k,"d",function(){return R}),e.d(k,"j",function(){return v}),e.d(k,"e",function(){return g}),e.d(k,"f",function(){return z});var j=e("KQm4"),x=e("U8pU"),te=e("Ff2n"),ie=e("q1tI"),S=e.n(ie),n=e("Kwbf"),le=e("WaYH"),B=.25,c=2;function se(m,b){var C=m.slice(),a=C.indexOf(b);return a>=0&&C.splice(a,1),C}function f(m,b){var C=m.slice();return C.indexOf(b)===-1&&C.push(b),C}function w(m){return m.split("-")}function F(m,b){return"".concat(m,"-").concat(b)}function O(m){return m&&m.type&&m.type.isTreeNode}function r(m,b){var C=[m],a=b[m];function o(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];t.forEach(function(i){var d=i.key,p=i.children;C.push(d),o(p)})}return o(a.children),C}function l(m,b){var C=m.clientY,a=b.selectHandle.getBoundingClientRect(),o=a.top,t=a.bottom,i=a.height,d=Math.max(i*B,c);return C<=o+d?-1:C>=t-d?1:0}function R(m,b){if(!m)return;var C=b.multiple;return C?m.slice():m.length?[m[0]]:m}var u=function(b){return b};function y(m,b){if(!m)return[];var C=b||{},a=C.processProps,o=a===void 0?u:a,t=Array.isArray(m)?m:[m];return t.map(function(i){var d=i.children,p=Object(te.a)(i,["children"]),H=y(d,b);return S.a.createElement(le.a,Object.assign({},o(p)),H)})}function v(m){if(!m)return null;var b;if(Array.isArray(m))b={checkedKeys:m,halfCheckedKeys:void 0};else if(Object(x.a)(m)==="object")b={checkedKeys:m.checked||void 0,halfCheckedKeys:m.halfChecked||void 0};else return Object(n.a)(!1,"`checkedKeys` is not an array or an object"),null;return b}function g(m,b){var C=new Set;function a(o){if(C.has(o))return;var t=b[o];if(!t)return;C.add(o);var i=t.parent,d=t.node;if(d.disabled)return;i&&a(i.key)}return(m||[]).forEach(function(o){a(o)}),Object(j.a)(C)}function z(m){var b={};return Object.keys(m).forEach(function(C){(C.startsWith("data-")||C.startsWith("aria-"))&&(b[C]=m[C])}),b}},"SA+Z":function(Te,k,e){var j=e("wTVA"),x=e("EbDI"),te=e("ZhPi"),ie=e("wkBT");function S(n){return j(n)||x(n)||te(n)||ie()}Te.exports=S,Te.exports.__esModule=!0,Te.exports.default=Te.exports},WaYH:function(Te,k,e){"use strict";var j=e("rePB"),x=e("Ff2n"),te=e("VTBJ"),ie=e("1OyB"),S=e("vuIU"),n=e("JX7q"),le=e("Ji7U"),B=e("LK+K"),c=e("q1tI"),se=e("TSYQ"),f=e.n(se),w=e("sboe"),F=e("OZM5"),O=function(b){var C=b.prefixCls,a=b.level,o=b.isStart,t=b.isEnd;if(!a)return null;for(var i="".concat(C,"-indent-unit"),d=[],p=0;p=0||p.relatedTarget.className.indexOf("".concat($,"-next"))>=0))return;o.setState({goInputText:""}),L(o.getValidValue())},o.go=function(p){var H=o.state.goInputText;if(H==="")return;(p.keyCode===O.ENTER||p.type==="click")&&(o.setState({goInputText:""}),o.props.quickGo(o.getValidValue()))},o}return Object(S.a)(a,[{key:"getValidValue",value:function(){var t=this.state,i=t.goInputText,d=t.current;return!i||isNaN(i)?d:Number(i)}},{key:"getPageSizeOptions",value:function(){var t=this.props,i=t.pageSize,d=t.pageSizeOptions;return d.some(function(p){return p.toString()===i.toString()})?d:d.concat([i.toString()]).sort(function(p,H){var E=isNaN(Number(p))?0:Number(p),L=isNaN(Number(H))?0:Number(H);return E-L})}},{key:"render",value:function(){var t=this,i=this.props,d=i.pageSize,p=i.locale,H=i.rootPrefixCls,E=i.changeSize,L=i.quickGo,$=i.goButton,q=i.selectComponentClass,Ce=i.buildOptionText,Z=i.selectPrefixCls,_=i.disabled,ae=this.state.goInputText,ce="".concat(H,"-options"),be=q,fe=null,U=null,I=null;if(!E&&!L)return null;var J=this.getPageSizeOptions();if(E&&be){var k=J.map(function(h,Q){return c.a.createElement(be.Option,{key:Q,value:h.toString()},(Ce||t.buildOptionText)(h))});fe=c.a.createElement(be,{disabled:_,prefixCls:Z,showSearch:!1,className:"".concat(ce,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(d||J[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Q){return Q.parentNode}},k)}return L&&($&&(I=typeof $=="boolean"?c.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:_,className:"".concat(ce,"-quick-jumper-button")},p.jump_to_confirm):c.a.createElement("span",{onClick:this.go,onKeyUp:this.go},$)),U=c.a.createElement("div",{className:"".concat(ce,"-quick-jumper")},p.jump_to,c.a.createElement("input",{disabled:_,type:"text",value:ae,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),p.page,I)),c.a.createElement("li",{className:"".concat(ce)},fe,U)}}]),a}(c.a.Component);r.defaultProps={pageSizeOptions:["10","20","50","100"]};var l=r,R=e("N2Kk");function u(){}function y(b){return typeof b=="number"&&isFinite(b)&&Math.floor(b)===b}function v(b,C,a){return a}function g(b,C,a){var o=typeof b=="undefined"?C.pageSize:b;return Math.floor((a.total-1)/o)+1}var z=function(b){Object(n.a)(a,b);var C=Object(le.a)(a);function a(o){var t;Object(ie.a)(this,a),t=C.call(this,o),t.getJumpPrevPage=function(){return Math.max(1,t.state.current-(t.props.showLessItems?3:5))},t.getJumpNextPage=function(){return Math.min(g(void 0,t.state,t.props),t.state.current+(t.props.showLessItems?3:5))},t.getItemIcon=function(E,L){var $=t.props.prefixCls,q=E||c.a.createElement("button",{type:"button","aria-label":L,className:"".concat($,"-item-link")});return typeof E=="function"&&(q=c.a.createElement(E,Object(te.a)({},t.props))),q},t.savePaginationNode=function(E){t.paginationNode=E},t.isValid=function(E){return y(E)&&E!==t.state.current},t.shouldDisplayQuickJumper=function(){var E=t.props,L=E.showQuickJumper,$=E.pageSize,q=E.total;return q<=$?!1:L},t.handleKeyDown=function(E){(E.keyCode===O.ARROW_UP||E.keyCode===O.ARROW_DOWN)&&E.preventDefault()},t.handleKeyUp=function(E){var L=t.getValidValue(E),$=t.state.currentInputValue;L!==$&&t.setState({currentInputValue:L}),E.keyCode===O.ENTER?t.handleChange(L):E.keyCode===O.ARROW_UP?t.handleChange(L-1):E.keyCode===O.ARROW_DOWN&&t.handleChange(L+1)},t.changePageSize=function(E){var L=t.state.current,$=g(E,t.state,t.props);L=L>$?$:L,$===0&&(L=t.state.current),typeof E=="number"&&("pageSize"in t.props||t.setState({pageSize:E}),"current"in t.props||t.setState({current:L,currentInputValue:L})),t.props.onShowSizeChange(L,E),"onChange"in t.props&&t.props.onChange&&t.props.onChange(L,E)},t.handleChange=function(E){var L=t.props.disabled,$=E;if(t.isValid($)&&!L){var q=g(void 0,t.state,t.props);$>q?$=q:$<1&&($=1),"current"in t.props||t.setState({current:$,currentInputValue:$});var Ce=t.state.pageSize;return t.props.onChange($,Ce),$}return t.state.current},t.prev=function(){t.hasPrev()&&t.handleChange(t.state.current-1)},t.next=function(){t.hasNext()&&t.handleChange(t.state.current+1)},t.jumpPrev=function(){t.handleChange(t.getJumpPrevPage())},t.jumpNext=function(){t.handleChange(t.getJumpNextPage())},t.hasPrev=function(){return t.state.current>1},t.hasNext=function(){return t.state.current2?$-2:0),Ce=2;Ce<$;Ce++)q[Ce-2]=arguments[Ce];L.apply(void 0,q)}},t.runIfEnterPrev=function(E){t.runIfEnter(E,t.prev)},t.runIfEnterNext=function(E){t.runIfEnter(E,t.next)},t.runIfEnterJumpPrev=function(E){t.runIfEnter(E,t.jumpPrev)},t.runIfEnterJumpNext=function(E){t.runIfEnter(E,t.jumpNext)},t.handleGoTO=function(E){(E.keyCode===O.ENTER||E.type==="click")&&t.handleChange(t.state.currentInputValue)};var i=o.onChange!==u,d="current"in o;d&&!i&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var p=o.defaultCurrent;"current"in o&&(p=o.current);var H=o.defaultPageSize;return"pageSize"in o&&(H=o.pageSize),p=Math.min(p,g(H,void 0,o)),t.state={current:p,currentInputValue:p,pageSize:H},t}return Object(S.a)(a,[{key:"componentDidUpdate",value:function(t,i){var d=this.props.prefixCls;if(i.current!==this.state.current&&this.paginationNode){var p=this.paginationNode.querySelector(".".concat(d,"-item-").concat(i.current));p&&document.activeElement===p&&p.blur()}}},{key:"getValidValue",value:function(t){var i=t.target.value,d=g(void 0,this.state,this.props),p=this.state.currentInputValue,H;return i===""?H=i:isNaN(Number(i))?H=p:i>=d?H=d:H=Number(i),H}},{key:"getShowSizeChanger",value:function(){var t=this.props,i=t.showSizeChanger,d=t.total,p=t.totalBoundaryShowSizeChanger;return typeof i!="undefined"?i:d>p}},{key:"renderPrev",value:function(t){var i=this.props,d=i.prevIcon,p=i.itemRender,H=p(t,"prev",this.getItemIcon(d,"prev page")),E=!this.hasPrev();return Object(B.isValidElement)(H)?Object(B.cloneElement)(H,{disabled:E}):H}},{key:"renderNext",value:function(t){var i=this.props,d=i.nextIcon,p=i.itemRender,H=p(t,"next",this.getItemIcon(d,"next page")),E=!this.hasNext();return Object(B.isValidElement)(H)?Object(B.cloneElement)(H,{disabled:E}):H}},{key:"render",value:function(){var t=this,i=this.props,d=i.prefixCls,p=i.className,H=i.style,E=i.disabled,L=i.hideOnSinglePage,$=i.total,q=i.locale,Ce=i.showQuickJumper,Z=i.showLessItems,_=i.showTitle,ae=i.showTotal,ce=i.simple,be=i.itemRender,fe=i.showPrevNextJumpers,U=i.jumpPrevIcon,I=i.jumpNextIcon,J=i.selectComponentClass,k=i.selectPrefixCls,h=i.pageSizeOptions,Q=this.state,X=Q.current,oe=Q.pageSize,ue=Q.currentInputValue;if(L===!0&&$<=oe)return null;var ee=g(void 0,this.state,this.props),de=[],Oe=null,he=null,De=null,ke=null,Ne=null,pe=Ce&&Ce.goButton,ve=Z?1:2,Be=X-1>0?X-1:0,Fe=X+1=ve*2&&X!==1+2&&(de[0]=Object(B.cloneElement)(de[0],{className:"".concat(d,"-item-after-jump-prev")}),de.unshift(Oe)),ee-X>=ve*2&&X!==ee-2&&(de[de.length-1]=Object(B.cloneElement)(de[de.length-1],{className:"".concat(d,"-item-before-jump-next")}),de.push(he)),M!==1&&de.unshift(De),K!==ee&&de.push(ke)}var D=null;ae&&(D=c.a.createElement("li",{className:"".concat(d,"-total-text")},ae($,[$===0?0:(X-1)*oe+1,X*oe>$?$:X*oe])));var P=!this.hasPrev()||!ee,A=!this.hasNext()||!ee;return c.a.createElement("ul",Object(j.a)({className:f()(d,p,Object(x.a)({},"".concat(d,"-disabled"),E)),style:H,unselectable:"unselectable",ref:this.savePaginationNode},Le),D,c.a.createElement("li",{title:_?q.prev_page:null,onClick:this.prev,tabIndex:P?null:0,onKeyPress:this.runIfEnterPrev,className:f()("".concat(d,"-prev"),Object(x.a)({},"".concat(d,"-disabled"),P)),"aria-disabled":P},this.renderPrev(Be)),de,c.a.createElement("li",{title:_?q.next_page:null,onClick:this.next,tabIndex:A?null:0,onKeyPress:this.runIfEnterNext,className:f()("".concat(d,"-next"),Object(x.a)({},"".concat(d,"-disabled"),A)),"aria-disabled":A},this.renderNext(Fe)),c.a.createElement(l,{disabled:E,locale:q,rootPrefixCls:d,selectComponentClass:J,selectPrefixCls:k,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:X,pageSize:oe,pageSizeOptions:h,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:pe}))}}],[{key:"getDerivedStateFromProps",value:function(t,i){var d={};if("current"in t&&(d.current=t.current,t.current!==i.current&&(d.currentInputValue=d.current)),"pageSize"in t&&t.pageSize!==i.pageSize){var p=i.current,H=g(t.pageSize,i,t);p=p>H?H:p,"current"in t||(d.current=p,d.currentInputValue=p),d.pageSize=t.pageSize}return d}}]),a}(c.a.Component);z.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:u,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:u,locale:R.a,style:{},itemRender:v,totalBoundaryShowSizeChanger:50};var m=z},"6RRn":function(Te,W,e){"use strict";var j=e("wCXF"),x=e("n6Qo");e.d(W,"b",function(){return x.a});var te=e("IBYe"),ie=e("6eGT"),S=e("hW8S");e.d(W,"a",function(){return S.a}),W.c=j.b},"6eGT":function(Te,W,e){"use strict";function j(x){return null}W.a=j},"815F":function(Te,W,e){"use strict";e.d(W,"e",function(){return le}),e.d(W,"c",function(){return c}),e.d(W,"d",function(){return se}),e.d(W,"a",function(){return w}),e.d(W,"f",function(){return F}),e.d(W,"b",function(){return O});var j=e("KQm4"),x=e("VTBJ"),te=e("Ff2n"),ie=e("Zm9Q"),S=e("Kwbf"),n=e("OZM5");function le(r,l){return r!=null?r:l}function B(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=new Map;function R(u){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(u||[]).forEach(function(v){var g=v.key,z=v.children;Object(S.a)(g!=null,"Tree node must have a certain key: [".concat(y).concat(g,"]"));var m=String(g);Object(S.a)(!l.has(m)||g===null||g===void 0,"Same 'key' exist in the Tree: ".concat(m)),l.set(m,!0),R(z,"".concat(y).concat(m," > "))})}R(r)}function c(r){function l(R){var u=Object(ie.a)(R);return u.map(function(y){if(!Object(n.i)(y))return Object(S.a)(!y,"Tree/TreeNode can only accept TreeNode as children."),null;var v=y.key,g=y.props,z=g.children,m=Object(te.a)(g,["children"]),b=Object(x.a)({key:v},m),C=l(z);return C.length&&(b.children=C),b}).filter(function(y){return y})}return l(r)}function se(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],R=new Set(l===!0?[]:l),u=[];function y(v){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return v.map(function(z,m){var b=Object(n.h)(g?g.pos:"0",m),C=le(z.key,b),a=Object(x.a)(Object(x.a)({},z),{},{parent:g,pos:b,children:null,data:z,isStart:[].concat(Object(j.a)(g?g.isStart:[]),[m===0]),isEnd:[].concat(Object(j.a)(g?g.isEnd:[]),[m===v.length-1])});return u.push(a),l===!0||R.has(C)?a.children=y(z.children||[],a):a.children=[],a})}return y(r),u}function f(r,l,R){var u;R?typeof R=="string"?u=function(g){return g[R]}:typeof R=="function"&&(u=function(g){return R(g)}):u=function(g,z){return le(g.key,z)};function y(v,g,z){var m=v?v.children:r,b=v?Object(n.h)(z.pos,g):"0";if(v){var C=u(v,b),a={node:v,index:g,pos:b,key:C,parentPos:z.node?z.pos:null,level:z.level+1};l(a)}m&&m.forEach(function(o,t){y(o,t,{node:v,pos:b,level:z?z.level+1:-1})})}y(null)}function w(r){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},R=l.initWrapper,u=l.processEntity,y=l.onProcessFinished,v=arguments.length>2?arguments[2]:void 0,g={},z={},m={posEntities:g,keyEntities:z};return R&&(m=R(m)||m),f(r,function(b){var C=b.node,a=b.index,o=b.pos,t=b.key,i=b.parentPos,d=b.level,p={node:C,index:a,key:t,pos:o,level:d},H=le(t,o);g[o]=p,z[H]=p,p.parent=g[i],p.parent&&(p.parent.children=p.parent.children||[],p.parent.children.push(p)),u&&u(p,m)},v),y&&y(m),m}function F(r,l){var R=l.expandedKeys,u=l.selectedKeys,y=l.loadedKeys,v=l.loadingKeys,g=l.checkedKeys,z=l.halfCheckedKeys,m=l.dragOverNodeKey,b=l.dropPosition,C=l.keyEntities,a=C[r],o={eventKey:r,expanded:R.indexOf(r)!==-1,selected:u.indexOf(r)!==-1,loaded:y.indexOf(r)!==-1,loading:v.indexOf(r)!==-1,checked:g.indexOf(r)!==-1,halfChecked:z.indexOf(r)!==-1,pos:String(a?a.pos:""),dragOver:m===r&&b===0,dragOverGapTop:m===r&&b===-1,dragOverGapBottom:m===r&&b===1};return o}function O(r){var l=r.data,R=r.expanded,u=r.selected,y=r.checked,v=r.loaded,g=r.loading,z=r.halfChecked,m=r.dragOver,b=r.dragOverGapTop,C=r.dragOverGapBottom,a=r.pos,o=r.active,t=Object(x.a)(Object(x.a)({},l),{},{expanded:R,selected:u,checked:y,loaded:v,loading:g,halfChecked:z,dragOver:m,dragOverGapTop:b,dragOverGapBottom:C,pos:a,active:o});return"props"in t||Object.defineProperty(t,"props",{get:function(){return Object(S.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),r}}),t}},IBYe:function(Te,W,e){"use strict";function j(x){return null}W.a=j},LdHM:function(Te,W,e){"use strict";e.d(W,"b",function(){return v}),e.d(W,"a",function(){return z});var j=e("1OyB"),x=e("vuIU"),te=e("Ji7U"),ie=e("LK+K"),S=e("q1tI"),n=e("rePB"),le=e("Ff2n"),B=e("ODXe"),c=e("4IlW"),se=e("bX4T"),f=e("YrtM"),w=e("TSYQ"),F=e.n(w),O=e("+nKL"),r=e("8OUc"),l=function(_,ae){var ce=_.prefixCls,be=_.id,fe=_.flattenOptions,U=_.childrenAsData,I=_.values,J=_.searchValue,k=_.multiple,h=_.defaultActiveFirstOption,Q=_.height,X=_.itemHeight,oe=_.notFoundContent,ue=_.open,ee=_.menuItemSelectedIcon,de=_.virtual,Oe=_.onSelect,he=_.onToggleOpen,De=_.onActiveValue,ke=_.onScroll,Ne=_.onMouseEnter,pe="".concat(ce,"-item"),ve=Object(f.a)(function(){return fe},[ue,fe],function(N,D){return D[0]&&N[1]!==D[1]}),Be=S.useRef(null),Fe=function(D){D.preventDefault()},Le=function(D){Be.current&&Be.current.scrollTo({index:D})},Ve=function(D){for(var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,A=ve.length,Y=0;Y1&&arguments[1]!==void 0?arguments[1]:!1;return Object(b.a)(Z).map(function(ae,ce){if(!S.isValidElement(ae)||!ae.type)return null;var be=ae.type.isSelectOptGroup,fe=ae.key,U=ae.props,I=U.children,J=Object(le.a)(U,["children"]);return _||!be?C(ae):Object(m.a)(Object(m.a)({key:"__RC_SELECT_GRP__".concat(fe===null?ce:fe,"__"),label:fe},J),{},{options:a(I)})}).filter(function(ae){return ae})}var o=e("2Qr1"),t=e("qNPg"),i=e("U8pU"),d=e("Kwbf"),p=e("WKfj");function H(Z){var _=Z.mode,ae=Z.options,ce=Z.children,be=Z.backfill,fe=Z.allowClear,U=Z.placeholder,I=Z.getInputElement,J=Z.showSearch,k=Z.onSearch,h=Z.defaultOpen,Q=Z.autoFocus,X=Z.labelInValue,oe=Z.value,ue=Z.inputValue,ee=Z.optionLabelProp,de=_==="multiple"||_==="tags",Oe=J!==void 0?J:de||_==="combobox",he=ae||a(ce);if(Object(d.a)(_!=="tags"||he.every(function(pe){return!pe.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),_==="tags"||_==="combobox"){var De=he.some(function(pe){return pe.options?pe.options.some(function(ve){return typeof("value"in ve?ve.value:ve.key)=="number"}):typeof("value"in pe?pe.value:pe.key)=="number"});Object(d.a)(!De,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(d.a)(_!=="combobox"||!ee,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(d.a)(_==="combobox"||!be,"`backfill` only works with `combobox` mode."),Object(d.a)(_==="combobox"||!I,"`getInputElement` only work with `combobox` mode."),Object(d.b)(_!=="combobox"||!I||!fe||!U,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),k&&!Oe&&_!=="combobox"&&_!=="tags"&&Object(d.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(d.b)(!h||Q,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),oe!=null){var ke=Object(p.d)(oe);Object(d.a)(!X||ke.every(function(pe){return Object(i.a)(pe)==="object"&&("key"in pe||"value"in pe)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(d.a)(!de||Array.isArray(oe),"`value` should be array when `mode` is `multiple` or `tags`")}if(ce){var Ne=null;Object(b.a)(ce).some(function(pe){if(!S.isValidElement(pe)||!pe.type)return!1;var ve=pe.type;if(ve.isSelectOption)return!1;if(ve.isSelectOptGroup){var Be=Object(b.a)(pe.props.children).every(function(Fe){return!S.isValidElement(Fe)||!pe.type||Fe.type.isSelectOption?!0:(Ne=Fe.type,!1)});return!Be}return Ne=ve,!0}),Ne&&Object(d.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ne.displayName||Ne.name||Ne,"`.")),Object(d.a)(ue===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var E=H,L=Object(t.a)({prefixCls:"rc-select",components:{optionList:u},convertChildrenToData:a,flattenOptions:o.d,getLabeledValue:o.e,filterOptions:o.b,isValueDisabled:o.g,findValueOption:o.c,warningProps:E,fillOptionsWithMissingValue:o.a}),$=function(Z){Object(te.a)(ae,Z);var _=Object(ie.a)(ae);function ae(){var ce;return Object(j.a)(this,ae),ce=_.apply(this,arguments),ce.selectRef=S.createRef(),ce.focus=function(){ce.selectRef.current.focus()},ce.blur=function(){ce.selectRef.current.blur()},ce}return Object(x.a)(ae,[{key:"render",value:function(){return S.createElement(L,Object.assign({ref:this.selectRef},this.props))}}]),ae}(S.Component);$.Option=v,$.OptGroup=z;var q=$,Ce=W.c=q},NvD2:function(Te,W,e){"use strict";e.d(W,"a",function(){return n});var j=e("Kwbf");function x(le,B){var c=new Set;return le.forEach(function(se){B.has(se)||c.add(se)}),c}function te(le){var B=le||{},c=B.disabled,se=B.disableCheckbox,f=B.checkable;return!!(c||se)||f===!1}function ie(le,B,c,se){for(var f=new Set(le),w=new Set,F=0;F<=c;F+=1){var O=B.get(F)||new Set;O.forEach(function(u){var y=u.key,v=u.node,g=u.children,z=g===void 0?[]:g;f.has(y)&&!se(v)&&z.filter(function(m){return!se(m.node)}).forEach(function(m){f.add(m.key)})})}for(var r=new Set,l=c;l>=0;l-=1){var R=B.get(l)||new Set;R.forEach(function(u){var y=u.parent,v=u.node;if(se(v)||!u.parent||r.has(u.parent.key))return;if(se(u.parent.node)){r.add(y.key);return}var g=!0,z=!1;(y.children||[]).filter(function(m){return!se(m.node)}).forEach(function(m){var b=m.key,C=f.has(b);g&&!C&&(g=!1),!z&&(C||w.has(b))&&(z=!0)}),g&&f.add(y.key),z&&w.add(y.key),r.add(y.key)})}return{checkedKeys:Array.from(f),halfCheckedKeys:Array.from(x(w,f))}}function S(le,B,c,se,f){for(var w=new Set(le),F=new Set(B),O=0;O<=se;O+=1){var r=c.get(O)||new Set;r.forEach(function(y){var v=y.key,g=y.node,z=y.children,m=z===void 0?[]:z;!w.has(v)&&!F.has(v)&&!f(g)&&m.filter(function(b){return!f(b.node)}).forEach(function(b){w.delete(b.key)})})}F=new Set;for(var l=new Set,R=se;R>=0;R-=1){var u=c.get(R)||new Set;u.forEach(function(y){var v=y.parent,g=y.node;if(f(g)||!y.parent||l.has(y.parent.key))return;if(f(y.parent.node)){l.add(v.key);return}var z=!0,m=!1;(v.children||[]).filter(function(b){return!f(b.node)}).forEach(function(b){var C=b.key,a=w.has(C);z&&!a&&(z=!1),!m&&(a||F.has(C))&&(m=!0)}),z||w.delete(v.key),m&&F.add(v.key),l.add(v.key)})}return{checkedKeys:Array.from(w),halfCheckedKeys:Array.from(x(F,w))}}function n(le,B,c,se){var f=[],w;se?w=se:w=te;var F=new Set(le.filter(function(R){var u=!!c[R];return u||f.push(R),u})),O=new Map,r=0;Object.keys(c).forEach(function(R){var u=c[R],y=u.level,v=O.get(y);v||(v=new Set,O.set(y,v)),v.add(u),r=Math.max(r,y)}),Object(j.a)(!f.length,"Tree missing follow keys: ".concat(f.slice(0,100).map(function(R){return"'".concat(R,"'")}).join(", ")));var l;return B===!0?l=ie(F,O,r,w):l=S(F,B.halfCheckedKeys,O,r,w),l}},OZM5:function(Te,W,e){"use strict";e.d(W,"b",function(){return se}),e.d(W,"a",function(){return f}),e.d(W,"k",function(){return w}),e.d(W,"h",function(){return F}),e.d(W,"i",function(){return O}),e.d(W,"g",function(){return r}),e.d(W,"c",function(){return l}),e.d(W,"d",function(){return R}),e.d(W,"j",function(){return v}),e.d(W,"e",function(){return g}),e.d(W,"f",function(){return z});var j=e("KQm4"),x=e("U8pU"),te=e("Ff2n"),ie=e("q1tI"),S=e.n(ie),n=e("Kwbf"),le=e("WaYH"),B=.25,c=2;function se(m,b){var C=m.slice(),a=C.indexOf(b);return a>=0&&C.splice(a,1),C}function f(m,b){var C=m.slice();return C.indexOf(b)===-1&&C.push(b),C}function w(m){return m.split("-")}function F(m,b){return"".concat(m,"-").concat(b)}function O(m){return m&&m.type&&m.type.isTreeNode}function r(m,b){var C=[m],a=b[m];function o(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];t.forEach(function(i){var d=i.key,p=i.children;C.push(d),o(p)})}return o(a.children),C}function l(m,b){var C=m.clientY,a=b.selectHandle.getBoundingClientRect(),o=a.top,t=a.bottom,i=a.height,d=Math.max(i*B,c);return C<=o+d?-1:C>=t-d?1:0}function R(m,b){if(!m)return;var C=b.multiple;return C?m.slice():m.length?[m[0]]:m}var u=function(b){return b};function y(m,b){if(!m)return[];var C=b||{},a=C.processProps,o=a===void 0?u:a,t=Array.isArray(m)?m:[m];return t.map(function(i){var d=i.children,p=Object(te.a)(i,["children"]),H=y(d,b);return S.a.createElement(le.a,Object.assign({},o(p)),H)})}function v(m){if(!m)return null;var b;if(Array.isArray(m))b={checkedKeys:m,halfCheckedKeys:void 0};else if(Object(x.a)(m)==="object")b={checkedKeys:m.checked||void 0,halfCheckedKeys:m.halfChecked||void 0};else return Object(n.a)(!1,"`checkedKeys` is not an array or an object"),null;return b}function g(m,b){var C=new Set;function a(o){if(C.has(o))return;var t=b[o];if(!t)return;C.add(o);var i=t.parent,d=t.node;if(d.disabled)return;i&&a(i.key)}return(m||[]).forEach(function(o){a(o)}),Object(j.a)(C)}function z(m){var b={};return Object.keys(m).forEach(function(C){(C.startsWith("data-")||C.startsWith("aria-"))&&(b[C]=m[C])}),b}},"SA+Z":function(Te,W,e){var j=e("wTVA"),x=e("EbDI"),te=e("ZhPi"),ie=e("wkBT");function S(n){return j(n)||x(n)||te(n)||ie()}Te.exports=S,Te.exports.__esModule=!0,Te.exports.default=Te.exports},WaYH:function(Te,W,e){"use strict";var j=e("rePB"),x=e("Ff2n"),te=e("VTBJ"),ie=e("1OyB"),S=e("vuIU"),n=e("JX7q"),le=e("Ji7U"),B=e("LK+K"),c=e("q1tI"),se=e("TSYQ"),f=e.n(se),w=e("sboe"),F=e("OZM5"),O=function(b){var C=b.prefixCls,a=b.level,o=b.isStart,t=b.isEnd;if(!a)return null;for(var i="".concat(C,"-indent-unit"),d=[],p=0;p1&&arguments[1]!==void 0?arguments[1]:!1,J=U.getAttribute("id")||U.getAttribute("data-reactid")||U.getAttribute("name");if(I&&E[J])return E[J];var W=window.getComputedStyle(U),h=W.getPropertyValue("box-sizing")||W.getPropertyValue("-moz-box-sizing")||W.getPropertyValue("-webkit-box-sizing"),Q=parseFloat(W.getPropertyValue("padding-bottom"))+parseFloat(W.getPropertyValue("padding-top")),X=parseFloat(W.getPropertyValue("border-bottom-width"))+parseFloat(W.getPropertyValue("border-top-width")),oe=H.map(function(ee){return"".concat(ee,":").concat(W.getPropertyValue(ee))}).join(";"),ue={sizingStyle:oe,paddingSize:Q,borderSize:X,boxSizing:h};return I&&J&&(E[J]=ue),ue}function q(U){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,W=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;L||(L=document.createElement("textarea"),L.setAttribute("tab-index","-1"),L.setAttribute("aria-hidden","true"),document.body.appendChild(L)),U.getAttribute("wrap")?L.setAttribute("wrap",U.getAttribute("wrap")):L.removeAttribute("wrap");var h=$(U,I),Q=h.paddingSize,X=h.borderSize,oe=h.boxSizing,ue=h.sizingStyle;L.setAttribute("style","".concat(ue,";").concat(p)),L.value=U.value||U.placeholder||"";var ee=Number.MIN_SAFE_INTEGER,de=Number.MAX_SAFE_INTEGER,Oe=L.scrollHeight,he;if(oe==="border-box"?Oe+=X:oe==="content-box"&&(Oe-=Q),J!==null||W!==null){L.value=" ";var De=L.scrollHeight-Q;J!==null&&(ee=De*J,oe==="border-box"&&(ee=ee+Q+X),Oe=Math.max(ee,Oe)),W!==null&&(de=De*W,oe==="border-box"&&(de=de+Q+X),he=Oe>de?"":"hidden",Oe=Math.min(de,Oe))}return{height:Oe,minHeight:ee,maxHeight:de,overflowY:he,resize:"none"}}var Ce=e("Gytx"),Z=e.n(Ce),_;(function(U){U[U.NONE=0]="NONE",U[U.RESIZING=1]="RESIZING",U[U.RESIZED=2]="RESIZED"})(_||(_={}));var ae=function(U){Object(ie.a)(J,U);var I=Object(S.a)(J);function J(W){var h;return Object(x.a)(this,J),h=I.call(this,W),h.nextFrameActionId=void 0,h.resizeFrameId=void 0,h.textArea=void 0,h.saveTextArea=function(Q){h.textArea=Q},h.handleResize=function(Q){var X=h.state.resizeStatus,oe=h.props,ue=oe.autoSize,ee=oe.onResize;if(X!==_.NONE)return;typeof ee=="function"&&ee(Q),ue&&h.resizeOnNextFrame()},h.resizeOnNextFrame=function(){cancelAnimationFrame(h.nextFrameActionId),h.nextFrameActionId=requestAnimationFrame(h.resizeTextarea)},h.resizeTextarea=function(){var Q=h.props.autoSize;if(!Q||!h.textArea)return;var X=Q.minRows,oe=Q.maxRows,ue=q(h.textArea,!1,X,oe);h.setState({textareaStyles:ue,resizeStatus:_.RESIZING},function(){cancelAnimationFrame(h.resizeFrameId),h.resizeFrameId=requestAnimationFrame(function(){h.setState({resizeStatus:_.RESIZED},function(){h.resizeFrameId=requestAnimationFrame(function(){h.setState({resizeStatus:_.NONE}),h.fixFirefoxAutoScroll()})})})})},h.renderTextArea=function(){var Q=h.props,X=Q.prefixCls,oe=X===void 0?"rc-textarea":X,ue=Q.autoSize,ee=Q.onResize,de=Q.className,Oe=Q.disabled,he=h.state,De=he.textareaStyles,We=he.resizeStatus,Ne=Object(t.a)(h.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),pe=d()(oe,de,Object(B.a)({},"".concat(oe,"-disabled"),Oe));"value"in Ne&&(Ne.value=Ne.value||"");var ve=Object(le.a)(Object(le.a)(Object(le.a)({},h.props.style),De),We===_.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return n.createElement(o,{onResize:h.handleResize,disabled:!(ue||ee)},n.createElement("textarea",Object(j.a)({},Ne,{className:pe,style:ve,ref:h.saveTextArea})))},h.state={textareaStyles:{},resizeStatus:_.NONE},h}return Object(te.a)(J,[{key:"componentDidUpdate",value:function(h){(h.value!==this.props.value||!Z()(h.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var h=this.textArea.selectionStart,Q=this.textArea.selectionEnd;this.textArea.setSelectionRange(h,Q)}}catch(X){}}},{key:"render",value:function(){return this.renderTextArea()}}]),J}(n.Component),ce=ae,be=function(U){Object(ie.a)(J,U);var I=Object(S.a)(J);function J(W){var h;Object(x.a)(this,J),h=I.call(this,W),h.resizableTextArea=void 0,h.focus=function(){h.resizableTextArea.textArea.focus()},h.saveTextArea=function(X){h.resizableTextArea=X},h.handleChange=function(X){var oe=h.props.onChange;h.setValue(X.target.value,function(){h.resizableTextArea.resizeTextarea()}),oe&&oe(X)},h.handleKeyDown=function(X){var oe=h.props,ue=oe.onPressEnter,ee=oe.onKeyDown;X.keyCode===13&&ue&&ue(X),ee&&ee(X)};var Q=typeof W.value=="undefined"||W.value===null?W.defaultValue:W.value;return h.state={value:Q},h}return Object(te.a)(J,[{key:"setValue",value:function(h,Q){"value"in this.props||this.setState({value:h},Q)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return n.createElement(ce,Object(j.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(h){return"value"in h?{value:h.value}:null}}]),J}(n.Component),fe=k.default=be},ZpRC:function(Te,k,e){"use strict";function j(f){return typeof f=="object"&&f!=null&&f.nodeType===1}function x(f,w){return(!w||f!=="hidden")&&f!=="visible"&&f!=="clip"}function te(f,w){if(f.clientHeightw||l>f&&R=w&&u>=F?l-f-O:R>w&&uF?R-w+r:0}var S=function(f,w){var F=window,O=w.scrollMode,r=w.block,l=w.inline,R=w.boundary,u=w.skipOverflowHiddenElements,y=typeof R=="function"?R:function(De){return De!==R};if(!j(f))throw new TypeError("Invalid target");for(var v=document.scrollingElement||document.documentElement,g=[],z=f;j(z)&&y(z);){if((z=z.parentElement)===v){g.push(z);break}z!=null&&z===document.body&&te(z)&&!te(document.documentElement)||z!=null&&te(z,u)&&g.push(z)}for(var m=F.visualViewport?F.visualViewport.width:innerWidth,b=F.visualViewport?F.visualViewport.height:innerHeight,C=window.scrollX||pageXOffset,a=window.scrollY||pageYOffset,o=f.getBoundingClientRect(),t=o.height,i=o.width,d=o.top,p=o.right,H=o.bottom,E=o.left,L=r==="start"||r==="nearest"?d:r==="end"?H:d+t/2,$=l==="center"?E+i/2:l==="end"?p:E,q=[],Ce=0;Ce=0&&E>=0&&H<=b&&p<=m&&d>=be&&H<=U&&E>=I&&p<=fe)return q;var J=getComputedStyle(Z),W=parseInt(J.borderLeftWidth,10),h=parseInt(J.borderTopWidth,10),Q=parseInt(J.borderRightWidth,10),X=parseInt(J.borderBottomWidth,10),oe=0,ue=0,ee="offsetWidth"in Z?Z.offsetWidth-Z.clientWidth-W-Q:0,de="offsetHeight"in Z?Z.offsetHeight-Z.clientHeight-h-X:0;if(v===Z)oe=r==="start"?L:r==="end"?L-b:r==="nearest"?ie(a,a+b,b,h,X,a+L,a+L+t,t):L-b/2,ue=l==="start"?$:l==="center"?$-m/2:l==="end"?$-m:ie(C,C+m,m,W,Q,C+$,C+$+i,i),oe=Math.max(0,oe+a),ue=Math.max(0,ue+C);else{oe=r==="start"?L-be-h:r==="end"?L-U+X+de:r==="nearest"?ie(be,U,ae,h,X+de,L,L+t,t):L-(be+ae/2)+de/2,ue=l==="start"?$-I-W:l==="center"?$-(I+ce/2)+ee/2:l==="end"?$-fe+Q+ee:ie(I,fe,ce,W,Q+ee,$,$+i,i);var Oe=Z.scrollLeft,he=Z.scrollTop;L+=he-(oe=Math.max(0,Math.min(he+oe,Z.scrollHeight-ae+de))),$+=Oe-(ue=Math.max(0,Math.min(Oe+ue,Z.scrollWidth-ce+ee)))}q.push({el:Z,top:oe,left:ue})}return q};function n(f){return f===Object(f)&&Object.keys(f).length!==0}function le(f,w){w===void 0&&(w="auto");var F="scrollBehavior"in document.body.style;f.forEach(function(O){var r=O.el,l=O.top,R=O.left;r.scroll&&F?r.scroll({top:l,left:R,behavior:w}):(r.scrollTop=l,r.scrollLeft=R)})}function B(f){return f===!1?{block:"end",inline:"nearest"}:n(f)?f:{block:"start",inline:"nearest"}}function c(f,w){var F=!f.ownerDocument.documentElement.contains(f);if(n(w)&&typeof w.behavior=="function")return w.behavior(F?[]:S(f,w));if(F)return;var O=B(w);return le(S(f,O),O.behavior)}var se=k.a=c},bT9E:function(Te,k,e){"use strict";e.d(k,"a",function(){return x});var j=e("VTBJ");function x(te,ie){var S=Object(j.a)({},te);return Array.isArray(ie)&&ie.forEach(function(n){delete S[n]}),S}},biw7:function(Te,k,e){"use strict";var j=e("q1tI"),x=e.n(j),te=j.createContext(null);k.a=te},epD4:function(Te,k,e){"use strict";e.r(k);var j=e("5NDa"),x=e("5rEg"),te=e("g9YV"),ie=e("wCAj"),S=e("14J3"),n=e("BMrR"),le=e("+L6B"),B=e("2/Rp"),c=e("k1fw"),se=e("2qtc"),f=e("kLXV"),w=e("9og8"),F=e("y8nQ"),O=e("Vl3Y"),r=e("tJVT"),l=e("PpiC"),R=e("WmNS"),u=e.n(R),y=e("q1tI"),v=e.n(y),g=e("9kvl"),z=e("ErOA"),m=e("wd/R"),b=e.n(m);b.a.locale("ZH-cn");var C=function(o){var t=o.classroomList,i=o.globalSetting,d=o.loading,p=o.user,H=o.dispatch,E=Object(l.a)(o,["classroomList","globalSetting","loading","user","dispatch"]),L=Object(y.useState)(),$=Object(r.a)(L,2),q=$[0],Ce=$[1],Z=Object(y.useState)(1),_=Object(r.a)(Z,2),ae=_[0],ce=_[1],be=Object(y.useState)(null),fe=Object(r.a)(be,2),U=fe[0],I=fe[1],J=Object(y.useState)(!0),W=Object(r.a)(J,2),h=W[0],Q=W[1],X=Object(y.useState)(20),oe=Object(r.a)(X,2),ue=oe[0],ee=oe[1],de=Object(y.useState)(117),Oe=Object(r.a)(de,2),he=Oe[0],De=Oe[1],We=Object(y.useState)(!1),Ne=Object(r.a)(We,2),pe=Ne[0],ve=Ne[1],Be=O.a.useForm(),Fe=Object(r.a)(Be,1),Le=Fe[0];Object(y.useEffect)(function(){Ve()},[ae]);function Ve(K){return Ue.apply(this,arguments)}function Ue(){return Ue=Object(w.a)(u.a.mark(function K(V){var N,D;return u.a.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return Q(!0),N=V||ae,A.next=4,Object(z.a)("/api/school_portals/assets.json",{method:"get",params:{page:N,per_page:ue,school_id:he}});case 4:D=A.sent,D.assets&&Ce(D),Q(!1);case 7:case"end":return A.stop()}},K)})),Ue.apply(this,arguments)}var ot=function(V,N){f.a.confirm({centered:!0,width:424,okText:"\u786E\u5B9A\u5220\u9664",cancelText:"\u53D6\u6D88",title:"\u5220\u9664\u8D44\u6E90",icon:null,className:"custom-modal-divider",content:"\u5220\u9664\u540E\u5C06\u65E0\u6CD5\u6062\u590D\u8D44\u6E90\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u9700\u8981\u5220\u9664\u300A".concat(V,"\u300B\u8D44\u6E90\uFF1F"),onOk:function(){var D=Object(w.a)(u.a.mark(function A(){var Y,G,ne;return u.a.wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return re.next=2,Object(z.a)("/api/school_portals/remove_assets.json",{method:"post",body:{asset_id:N,school_id:he}});case 2:Y=re.sent,Y.status===0&&(ne=(q==null||((G=q.assets)===null||G===void 0)?void 0:G.length)===1&&ae>1?ae-1:ae,Ve(ne));case 4:case"end":return re.stop()}},A)}));function P(){return D.apply(this,arguments)}return P}()})},s=[{title:"\u5E8F\u53F7",dataIndex:"name",align:"center",key:"name",ellipsis:!0,width:50,render:function(V,N,D){return v.a.createElement("span",null,ue*(ae-1)+D+1)}},{title:"\u8D44\u6E90\u540D\u79F0",dataIndex:"content",align:"center",key:"content"},{title:"\u8D44\u6E90\u7C7B\u578B",dataIndex:"clazz",align:"center",key:"clazz"},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_at",align:"center",key:"created_at"},{title:"\u64CD\u4F5C",dataIndex:"remark",align:"center",key:"remark",ellipsis:!0,render:function(V,N,D){return v.a.createElement("span",null,v.a.createElement("a",{href:N.link,target:"_blank",style:{cursor:"pointer",color:"#0152d9",margin:"0 5px"}},"\u67E5\u770B"),(N==null?void 0:N.can_edit)&&v.a.createElement("span",{onClick:function(){Le.setFieldsValue({content:N.content,link:N.link,clazz:N.clazz}),ve(!0),I(N.id)},style:{cursor:"pointer",color:"#0152d9",margin:"0 5px"}},"\u7F16\u8F91"),v.a.createElement("span",{onClick:function(){ot(N.content,N.id)},style:{cursor:"pointer",color:"#0152d9",margin:"0 5px"}}," \u5220\u9664"))}}],T=function(){Le.resetFields(),I(null),ve(!1)},M=function(){var K=Object(w.a)(u.a.mark(function V(N){var D,P;return u.a.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(!U){Y.next=6;break}return Y.next=3,Object(z.a)("/api/school_portals/update_assets.json",{method:"post",body:Object(c.a)({asset_id:U,school_id:he},N)});case 3:return D=Y.sent,D.status===0&&(Ve(),T()),Y.abrupt("return");case 6:return Y.next=8,Object(z.a)("/api/school_portals/add_assets.json",{method:"post",body:Object(c.a)({school_id:he},N)});case 8:P=Y.sent,P.status===0&&(ce(1),Ve(1),T());case 10:case"end":return Y.stop()}},V)}));return function(N){return K.apply(this,arguments)}}();return v.a.createElement("div",{className:"edu-container minH500",style:{width:"1200px",marginTop:"40px",marginBottom:"20px"}},v.a.createElement(n.a,{justify:"space-between",align:"middle",className:"mb20"},v.a.createElement("span",{className:"ml15"},"\u5171",q==null?void 0:q.total_count,"\u4E2A\u5176\u4ED6\u5E73\u53F0\u8D44\u6E90"),v.a.createElement(B.a,{onClick:function(){ve(!0),I(null)},type:"primary"},"\u65B0\u5EFA\u8D44\u6E90")),v.a.createElement(ie.a,{className:"table-layout",columns:s,loading:h,dataSource:q==null?void 0:q.assets,pagination:{hideOnSinglePage:!0,pageSize:ue,showSizeChanger:!1,current:ae,position:["bottomCenter"],onChange:function(V,N){ce(V)},total:q==null?void 0:q.total_count}}),v.a.createElement(f.a,{title:U?"\u7F16\u8F91\u8D44\u6E90":"\u65B0\u5EFA\u8D44\u6E90",visible:pe,width:500,centered:!0,okText:U?"\u786E\u8BA4\u7F16\u8F91":"\u786E\u8BA4\u65B0\u5EFA",cancelText:"\u53D6\u6D88",onOk:function(){return Le.submit()},onCancel:T},v.a.createElement(O.a,{form:Le,onFinish:M},v.a.createElement(O.a.Item,{label:"\u8D44\u6E90\u540D\u79F0",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8D44\u6E90\u540D\u79F0"},{max:40,message:"\u8D44\u6E90\u540D\u79F0\u6700\u591A\u586B\u519940\u4E2A\u5B57\u7B26"}]},v.a.createElement(x.a,{maxLength:40})),v.a.createElement(O.a.Item,{label:"\u8D44\u6E90\u94FE\u63A5",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8D44\u6E90\u94FE\u63A5"}]},v.a.createElement(x.a,null)),v.a.createElement(O.a.Item,{label:"\u8D44\u6E90\u7C7B\u578B",name:"clazz",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8D44\u6E90\u7C7B\u578B"},{max:10,message:"\u8D44\u6E90\u540D\u79F0\u6700\u591A\u586B\u519910\u4E2A\u5B57\u7B26"}]},v.a.createElement(x.a,{maxLength:10})))))};k.default=Object(g.a)(function(a){var o=a.classroomList,t=a.loading,i=a.globalSetting,d=a.user;return{classroomList:o,globalSetting:i,loading:t.models.classroomList,user:d}})(C)},fyJ8:function(Te,k,e){"use strict";var j=e("rePB"),x=e("VTBJ"),te=e("Ff2n"),ie=e("U8pU"),S=e("q1tI"),n=e.n(S),le=e("TSYQ"),B=e.n(le),c=e("c+Xe"),se=e("sR1s");function f(l){return l&&Object(ie.a)(l)==="object"&&!Array.isArray(l)&&!S.isValidElement(l)}function w(l){return typeof l=="string"?!0:Object(c.c)(l)}function F(l,R){var u,y=l.prefixCls,v=l.className,g=l.record,z=l.index,m=l.dataIndex,b=l.render,C=l.children,a=l.component,o=a===void 0?"td":a,t=l.colSpan,i=l.rowSpan,d=l.fixLeft,p=l.fixRight,H=l.firstFixLeft,E=l.lastFixLeft,L=l.firstFixRight,$=l.lastFixRight,q=l.appendNode,Ce=l.additionalProps,Z=Ce===void 0?{}:Ce,_=l.ellipsis,ae=l.align,ce=l.rowType,be=l.isSticky,fe="".concat(y,"-cell"),U,I;if(C)I=C;else{var J=Object(se.b)(g,m);if(I=J,b){var W=b(J,g,z);f(W)?(I=W.children,U=W.props):I=W}}Object(ie.a)(I)==="object"&&!Array.isArray(I)&&!S.isValidElement(I)&&(I=null),_&&(E||L)&&(I=S.createElement("span",{className:"".concat(fe,"-content")},I));var h=U||{},Q=h.colSpan,X=h.rowSpan,oe=h.style,ue=h.className,ee=Object(te.a)(h,["colSpan","rowSpan","style","className"]),de=Q!==void 0?Q:t,Oe=X!==void 0?X:i;if(de===0||Oe===0)return null;var he={},De=typeof d=="number",We=typeof p=="number";De&&(he.position="sticky",he.left=d),We&&(he.position="sticky",he.right=p);var Ne={};ae&&(Ne.textAlign=ae);var pe,ve=_===!0?{showTitle:!0}:_;ve&&(ve.showTitle||ce==="header")&&(typeof I=="string"||typeof I=="number"?pe=I.toString():S.isValidElement(I)&&typeof I.props.children=="string"&&(pe=I.props.children));var Be=Object(x.a)(Object(x.a)(Object(x.a)({title:pe},ee),Z),{},{colSpan:de&&de!==1?de:null,rowSpan:Oe&&Oe!==1?Oe:null,className:B()(fe,v,(u={},Object(j.a)(u,"".concat(fe,"-fix-left"),De),Object(j.a)(u,"".concat(fe,"-fix-left-first"),H),Object(j.a)(u,"".concat(fe,"-fix-left-last"),E),Object(j.a)(u,"".concat(fe,"-fix-right"),We),Object(j.a)(u,"".concat(fe,"-fix-right-first"),L),Object(j.a)(u,"".concat(fe,"-fix-right-last"),$),Object(j.a)(u,"".concat(fe,"-ellipsis"),_),Object(j.a)(u,"".concat(fe,"-with-append"),q),Object(j.a)(u,"".concat(fe,"-fix-sticky"),(De||We)&&be),u),Z.className,ue),style:Object(x.a)(Object(x.a)(Object(x.a)(Object(x.a)({},Z.style),Ne),he),oe),ref:w(o)?R:null});return S.createElement(o,Object.assign({},Be),q,I)}var O=S.forwardRef(F);O.displayName="Cell";var r=S.memo(O,function(l,R){return R.shouldCellUpdate?!R.shouldCellUpdate(R.record,l.record):!1});k.a=r},hW8S:function(Te,k,e){"use strict";e.d(k,"a",function(){return ie}),e.d(k,"c",function(){return S}),e.d(k,"b",function(){return n});var j=e("VTBJ"),x=e("Ff2n"),te=e("Kwbf"),ie="RC_TABLE_INTERNAL_COL_DEFINE";function S(le){var B=le.expandable,c=Object(x.a)(le,["expandable"]);return"expandable"in le?Object(j.a)(Object(j.a)({},c),B):c}function n(le){return Object.keys(le).reduce(function(B,c){return(c.substr(0,5)==="data-"||c.substr(0,5)==="aria-")&&(B[c]=le[c]),B},{})}},n6Qo:function(Te,k,e){"use strict";e.d(k,"a",function(){return B});var j=e("q1tI"),x=e("biw7"),te=e("fyJ8");function ie(c){var se=c.className,f=c.index,w=c.children,F=c.colSpan,O=c.rowSpan,r=j.useContext(x.a),l=r.prefixCls,R=r.fixedInfoList,u=R[f];return j.createElement(te.a,Object.assign({className:se,index:f,component:"td",prefixCls:l,record:null,dataIndex:null,render:function(){return{children:w,props:{colSpan:F,rowSpan:O}}}},u))}function S(c){return j.createElement("tr",Object.assign({},c))}function n(c){var se=c.children,f=j.useContext(x.a),w=f.prefixCls;return j.createElement("tfoot",{className:"".concat(w,"-summary")},se)}var le=k.b=n,B={Cell:ie,Row:S}},sR1s:function(Te,k,e){"use strict";e.d(k,"b",function(){return ie}),e.d(k,"a",function(){return S}),e.d(k,"c",function(){return n}),e.d(k,"d",function(){return le});var j=e("U8pU"),x="RC_TABLE_KEY";function te(B){return B==null?[]:Array.isArray(B)?B:[B]}function ie(B,c){if(!c&&typeof c!="number")return B;for(var se=te(c),f=B,w=0;w1)Object(se.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(v.length===0)return Object(se.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var g=v[0];if(n.isValidElement(g)&&Object(f.c)(g)){var z=g.ref;v[0]=n.cloneElement(g,{ref:Object(f.a)(z,this.setChildNode)})}return v.length===1?v[0]:v.map(function(m,b){return!n.isValidElement(m)||"key"in m&&m.key!==null?m:n.cloneElement(m,{key:"".concat(F,"-").concat(b)})})}}]),R}(n.Component);O.displayName="ResizeObserver",k.a=O},wCXF:function(Te,k,e){"use strict";e.d(k,"a",function(){return Le});var j=e("rePB"),x=e("VTBJ"),te=e("KQm4"),ie=e("U8pU"),S=e("ODXe"),n=e("q1tI"),le=e("TSYQ"),B=e.n(le),c=e("Gytx"),se=e.n(c),f=e("Kwbf"),w=e("t23M"),F=e("qx4F"),O=e("6eGT"),r=e("IBYe"),l=e("Ff2n"),R=e("c+Xe"),u=e("fyJ8"),y=e("biw7");function v(s,T,M,K,V){var N=M[s]||{},D=M[T]||{},P,A;N.fixed==="left"?P=K.left[s]:D.fixed==="right"&&(A=K.right[T]);var Y=!1,G=!1,ne=!1,me=!1,re=M[T+1],ge=M[s-1];if(V==="rtl"){if(P!==void 0){var Me=ge&&ge.fixed==="left";me=!Me}else if(A!==void 0){var Re=re&&re.fixed==="right";ne=!Re}}else if(P!==void 0){var Pe=re&&re.fixed==="left";Y=!Pe}else if(A!==void 0){var Ee=ge&&ge.fixed==="right";G=!Ee}return{fixLeft:P,fixRight:A,lastFixLeft:Y,firstFixRight:G,lastFixRight:ne,firstFixLeft:me,isSticky:K.isSticky}}var g=e("sR1s");function z(s){var T=s.cells,M=s.stickyOffsets,K=s.flattenColumns,V=s.rowComponent,N=s.cellComponent,D=s.onHeaderRow,P=s.index,A=n.useContext(y.a),Y=A.prefixCls,G=A.direction,ne;D&&(ne=D(T.map(function(re){return re.column}),P));var me=Object(g.a)(T.map(function(re){return re.column}));return n.createElement(V,Object.assign({},ne),T.map(function(re,ge){var Me=re.column,Re=v(re.colStart,re.colEnd,K,M,G),Pe;return Me&&Me.onHeaderCell&&(Pe=re.column.onHeaderCell(Me)),n.createElement(u.a,Object.assign({},re,{ellipsis:Me.ellipsis,align:Me.align,component:N,prefixCls:Y,key:me[ge]},Re,{additionalProps:Pe,rowType:"header"}))}))}z.displayName="HeaderRow";var m=z;function b(s){var T=[];function M(D,P){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;T[A]=T[A]||[];var Y=P,G=D.filter(Boolean).map(function(ne){var me={key:ne.key,className:ne.className||"",children:ne.title,column:ne,colStart:Y},re=1,ge=ne.children;return ge&&ge.length>0&&(re=M(ge,Y,A+1).reduce(function(Me,Re){return Me+Re},0),me.hasSubColumns=!0),"colSpan"in ne&&(re=ne.colSpan),"rowSpan"in ne&&(me.rowSpan=ne.rowSpan),me.colSpan=re,me.colEnd=me.colStart+re-1,T[A].push(me),Y+=re,re});return G}M(s,0);for(var K=T.length,V=function(P){T[P].forEach(function(A){!("rowSpan"in A)&&!A.hasSubColumns&&(A.rowSpan=K-P)})},N=0;N=0;P-=1){var A=T[P],Y=M&&M[P],G=Y&&Y[o.a];(A||G||D)&&(V.unshift(n.createElement("col",Object.assign({key:P,style:{width:A,minWidth:A}},G))),D=!0)}return n.createElement("colgroup",null,V)}var i=t;function d(s,T){return Object(n.useMemo)(function(){for(var M=[],K=0;K1?Ye-1:0),ct=1;ct=ne&&(Ae=ne-me),D({scrollLeft:Ae/ne*(G+2)}),Ee.current.x=ye.pageX},$e=function(){var ye=Object(We.b)(N.current).top,ke=ye+N.current.offsetHeight,Je=document.documentElement.scrollTop+window.innerHeight;ke-Object(F.a)()<=Je||ye>=Je-P?Pe(function(et){return Object(x.a)(Object(x.a)({},et),{},{isHiddenScrollBar:!0})}):Pe(function(et){return Object(x.a)(Object(x.a)({},et),{},{isHiddenScrollBar:!1})})},Ke=function(ye){Pe(function(ke){return Object(x.a)(Object(x.a)({},ke),{},{scrollLeft:ye/G*ne||0})})};return n.useImperativeHandle(M,function(){return{setScrollLeft:Ke}}),n.useEffect(function(){var _e=Object(De.a)(document.body,"mouseup",Ze,!1),ye=Object(De.a)(document.body,"mousemove",qe,!1);return $e(),function(){_e.remove(),ye.remove()}},[me,we]),n.useEffect(function(){var _e=Object(De.a)(window,"scroll",$e,!1),ye=Object(De.a)(window,"resize",$e,!1);return function(){_e.remove(),ye.remove()}},[]),n.useEffect(function(){Re.isHiddenScrollBar||Pe(function(_e){var ye,ke;return Object(x.a)(Object(x.a)({},_e),{},{scrollLeft:N.current.scrollLeft/((ye=N.current)===null||ye===void 0?void 0:ye.scrollWidth)*((ke=N.current)===null||ke===void 0?void 0:ke.clientWidth)})})},[Re.isHiddenScrollBar]),G<=ne||!me||Re.isHiddenScrollBar?null:n.createElement("div",{style:{height:Object(F.a)(),width:ne,bottom:P},className:"".concat(Y,"-sticky-scroll")},n.createElement("div",{onMouseDown:Se,ref:re,className:B()("".concat(Y,"-sticky-scroll-bar"),Object(j.a)({},"".concat(Y,"-sticky-scroll-bar-active"),we)),style:{width:"".concat(me,"px"),transform:"translate3d(".concat(Re.scrollLeft,"px, 0, 0)")}}))},pe=n.forwardRef(Ne);function ve(s,T){return n.useMemo(function(){var M=!!s;return{isSticky:M,stickyClassName:M?"".concat(T,"-sticky-header"):"",offsetHeader:Object(ie.a)(s)==="object"&&s.offsetHeader||0,offsetScroll:Object(ie.a)(s)==="object"&&s.offsetScroll||0}},[s,T])}var Be=[],Fe={},Le="rc-table-internal-hook",Ve=n.memo(function(s){var T=s.children;return T},function(s,T){return se()(s.props,T.props)?s.pingLeft!==T.pingLeft||s.pingRight!==T.pingRight:!1});function Ue(s){var T,M=s.prefixCls,K=s.className,V=s.rowClassName,N=s.style,D=s.data,P=s.rowKey,A=s.scroll,Y=s.tableLayout,G=s.direction,ne=s.title,me=s.footer,re=s.summary,ge=s.id,Me=s.showHeader,Re=s.components,Pe=s.emptyText,Ee=s.onRow,Qe=s.onHeaderRow,Ie=s.internalHooks,we=s.transformColumns,He=s.internalRefs,Ze=s.sticky,Se=D||Be,qe=!!Se.length,$e=n.useState(0),Ke=Object(S.a)($e,2),_e=Ke[0],ye=Ke[1];n.useEffect(function(){ye(Object(F.a)())});var ke=n.useMemo(function(){return Object(g.c)(Re,{})},[Re]),Je=n.useCallback(function(xe,je){return Object(g.b)(ke,xe)||je},[ke]),et=n.useMemo(function(){return typeof P=="function"?P:function(xe){var je=xe&&xe[P];return je}},[P]),Ae=Object(o.c)(s),jt=Ae.expandIcon,Rt=Ae.expandedRowKeys,Nt=Ae.defaultExpandedRowKeys,st=Ae.defaultExpandAllRows,dt=Ae.expandedRowRender,mt=Ae.onExpand,ht=Ae.onExpandedRowsChange,St=Ae.expandRowByClick,at=Ae.rowExpandable,Et=Ae.expandIconColumnIndex,pt=Ae.expandedRowClassName,Kt=Ae.childrenColumnName,Tt=Ae.indentSize,vt=jt||Oe,gt=Kt||"children",Dt=n.useMemo(function(){return dt?"row":s.expandable&&Ie===Le&&s.expandable.__PARENT_RENDER_ICON__||Se.some(function(xe){return xe&&Object(ie.a)(xe)==="object"&&xe[gt]})?"nest":!1},[!!dt,Se]),Pt=n.useState(function(){return Nt||(st?he(Se,et,gt):[])}),Ge=Object(S.a)(Pt,2),tt=Ge[0],rt=Ge[1],Ye=n.useMemo(function(){return new Set(Rt||tt||[])},[Rt,tt]),ut=n.useCallback(function(xe){var je=et(xe,Se.indexOf(xe)),Xe,nt=Ye.has(je);nt?(Ye.delete(je),Xe=Object(te.a)(Ye)):Xe=[].concat(Object(te.a)(Ye),[je]),rt(Xe),mt&&mt(!nt,xe),ht&&ht(Xe)},[et,Ye,Se,mt,ht]),ct=n.useState(0),Mt=Object(S.a)(ct,2),Ct=Mt[0],_t=Mt[1],vn=Object(I.b)(Object(x.a)(Object(x.a)(Object(x.a)({},s),Ae),{},{expandable:!!dt,expandedKeys:Ye,getRowKey:et,onTriggerExpand:ut,expandIcon:vt,expandIconColumnIndex:Et,direction:G}),Ie===Le?we:null),Yt=Object(S.a)(vn,2),zt=Yt[0],ze=Yt[1],At=n.useMemo(function(){return{columns:zt,flattenColumns:ze}},[zt,ze]),Wt=n.useRef(),Qt=n.useRef(),ft=n.useRef(),bn=n.useState(!1),Zt=Object(S.a)(bn,2),qt=Zt[0],En=Zt[1],gn=n.useState(!1),en=Object(S.a)(gn,2),tn=en[0],Cn=en[1],yn=h(new Map),nn=Object(S.a)(yn,2),On=nn[0],xn=nn[1],jn=Object(g.a)(ze),an=jn.map(function(xe){return On.get(xe)}),on=n.useMemo(function(){return an},[an.join("_")]),Lt=oe(on,ze.length,G),lt=A&&Object(g.d)(A.y),it=A&&Object(g.d)(A.x),yt=it&&ze.some(function(xe){var je=xe.fixed;return je}),rn=n.useRef(),wt=ve(Ze,M),Ot=wt.isSticky,Rn=wt.offsetHeader,Nn=wt.offsetScroll,Sn=wt.stickyClassName,kt,Ut,Bt;lt&&(Ut={overflowY:"scroll",maxHeight:A.y}),it&&(kt={overflowX:"auto"},lt||(Ut={overflowY:"hidden"}),Bt={width:A.x===!0?"auto":A.x,minWidth:"100%"});var ln=n.useCallback(function(xe,je){xn(function(Xe){var nt=new Map(Xe);return nt.set(xe,je),nt})},[]),Tn=Q(null),sn=Object(S.a)(Tn,2),Dn=sn[0],dn=sn[1];function Ft(xe,je){if(!je)return;typeof je=="function"?je(xe):je.scrollLeft!==xe&&(je.scrollLeft=xe)}var bt=function(je){var Xe=je.currentTarget,nt=je.scrollLeft,xt=typeof nt=="number"?nt:Xe.scrollLeft,pn=Xe||Fe;if(!dn()||dn()===pn){var Jt;Dn(pn),Ft(xt,Qt.current),Ft(xt,ft.current),Ft(xt,(Jt=rn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(Xe){var Un=Xe.scrollWidth,In=Xe.clientWidth;En(xt>0),Cn(xt0?[].concat(Object(x.a)(l),Object(x.a)(f(v).map(function(g){return Object(te.a)({fixed:y},g)}))):[].concat(Object(x.a)(l),[Object(te.a)(Object(te.a)({},R),{},{fixed:y})])},[])}function w(r){for(var l=!0,R=0;R=0;v-=1){var g=r[v];if(y&&g.fixed!=="right")y=!1;else if(!y&&g.fixed==="right"){Object(le.a)(!1,"Index ".concat(v+1," of `columns` missing `fixed='right'` prop."));break}}}function F(r){return r.map(function(l){var R=l.fixed,u=Object(ie.a)(l,["fixed"]),y=R;return R==="left"?y="right":R==="right"&&(y="left"),Object(te.a)({fixed:y},u)})}function O(r,l){var R=r.prefixCls,u=r.columns,y=r.children,v=r.expandable,g=r.expandedKeys,z=r.getRowKey,m=r.onTriggerExpand,b=r.expandIcon,C=r.rowExpandable,a=r.expandIconColumnIndex,o=r.direction,t=r.expandRowByClick,i=S.useMemo(function(){return u||se(y)},[u,y]),d=S.useMemo(function(){if(v){var E,L=a||0,$=i[L],q=(E={},Object(j.a)(E,c.a,{className:"".concat(R,"-expand-icon-col")}),Object(j.a)(E,"title",""),Object(j.a)(E,"fixed",$?$.fixed:null),Object(j.a)(E,"className","".concat(R,"-row-expand-icon-cell")),Object(j.a)(E,"render",function(_,ae,ce){var be=z(ae,ce),fe=g.has(be),U=C?C(ae):!0,I=b({prefixCls:R,expanded:fe,expandable:U,record:ae,onExpand:m});return t?S.createElement("span",{onClick:function(W){return W.stopPropagation()}},I):I}),E),Ce=i.slice();return L>=0&&Ce.splice(L,0,q),Ce}return i},[v,i,z,g,b,o]),p=S.useMemo(function(){var E=d;return l&&(E=l(E)),E.length||(E=[{render:function(){return null}}]),E},[l,d,o]),H=S.useMemo(function(){return o==="rtl"?F(f(p)):f(p)},[p,o]);return[p,H]}k.b=O},"y0+3":function(Te,k,e){"use strict";e.d(k,"a",function(){return f}),e.d(k,"b",function(){return F});var j=/margin|padding|width|height|max|min|offset/,x={left:!0,top:!0},te={cssFloat:1,styleFloat:1,float:1};function ie(O){return O.nodeType===1?O.ownerDocument.defaultView.getComputedStyle(O,null):{}}function S(O,r,l){if(r=r.toLowerCase(),l==="auto"){if(r==="height")return O.offsetHeight;if(r==="width")return O.offsetWidth}return r in x||(x[r]=j.test(r)),x[r]?parseFloat(l)||0:l}function n(O,r){var l=arguments.length,R=ie(O);return r=te[r]?"cssFloat"in O.style?"cssFloat":"styleFloat":r,l===1?R:S(O,r,R[r]||O.style[r])}function le(O,r,l){var R=arguments.length;if(r=te[r]?"cssFloat"in O.style?"cssFloat":"styleFloat":r,R===3)return typeof l=="number"&&j.test(r)&&(l="".concat(l,"px")),O.style[r]=l,l;for(var u in r)r.hasOwnProperty(u)&&le(O,u,r[u]);return ie(O)}function B(O){return O===document.body?document.documentElement.clientWidth:O.offsetWidth}function c(O){return O===document.body?window.innerHeight||document.documentElement.clientHeight:O.offsetHeight}function se(){var O=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),r=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:O,height:r}}function f(){var O=document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight;return{width:O,height:r}}function w(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function F(O){var r=O.getBoundingClientRect(),l=document.documentElement;return{left:r.left+(window.pageXOffset||l.scrollLeft)-(l.clientLeft||document.body.clientLeft||0),top:r.top+(window.pageYOffset||l.scrollTop)-(l.clientTop||document.body.clientTop||0)}}}}]); +`,H=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],E={},L;function $(U){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,J=U.getAttribute("id")||U.getAttribute("data-reactid")||U.getAttribute("name");if(I&&E[J])return E[J];var k=window.getComputedStyle(U),h=k.getPropertyValue("box-sizing")||k.getPropertyValue("-moz-box-sizing")||k.getPropertyValue("-webkit-box-sizing"),Q=parseFloat(k.getPropertyValue("padding-bottom"))+parseFloat(k.getPropertyValue("padding-top")),X=parseFloat(k.getPropertyValue("border-bottom-width"))+parseFloat(k.getPropertyValue("border-top-width")),oe=H.map(function(ee){return"".concat(ee,":").concat(k.getPropertyValue(ee))}).join(";"),ue={sizingStyle:oe,paddingSize:Q,borderSize:X,boxSizing:h};return I&&J&&(E[J]=ue),ue}function q(U){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,k=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;L||(L=document.createElement("textarea"),L.setAttribute("tab-index","-1"),L.setAttribute("aria-hidden","true"),document.body.appendChild(L)),U.getAttribute("wrap")?L.setAttribute("wrap",U.getAttribute("wrap")):L.removeAttribute("wrap");var h=$(U,I),Q=h.paddingSize,X=h.borderSize,oe=h.boxSizing,ue=h.sizingStyle;L.setAttribute("style","".concat(ue,";").concat(p)),L.value=U.value||U.placeholder||"";var ee=Number.MIN_SAFE_INTEGER,de=Number.MAX_SAFE_INTEGER,Oe=L.scrollHeight,he;if(oe==="border-box"?Oe+=X:oe==="content-box"&&(Oe-=Q),J!==null||k!==null){L.value=" ";var De=L.scrollHeight-Q;J!==null&&(ee=De*J,oe==="border-box"&&(ee=ee+Q+X),Oe=Math.max(ee,Oe)),k!==null&&(de=De*k,oe==="border-box"&&(de=de+Q+X),he=Oe>de?"":"hidden",Oe=Math.min(de,Oe))}return{height:Oe,minHeight:ee,maxHeight:de,overflowY:he,resize:"none"}}var Ce=e("Gytx"),Z=e.n(Ce),_;(function(U){U[U.NONE=0]="NONE",U[U.RESIZING=1]="RESIZING",U[U.RESIZED=2]="RESIZED"})(_||(_={}));var ae=function(U){Object(ie.a)(J,U);var I=Object(S.a)(J);function J(k){var h;return Object(x.a)(this,J),h=I.call(this,k),h.nextFrameActionId=void 0,h.resizeFrameId=void 0,h.textArea=void 0,h.saveTextArea=function(Q){h.textArea=Q},h.handleResize=function(Q){var X=h.state.resizeStatus,oe=h.props,ue=oe.autoSize,ee=oe.onResize;if(X!==_.NONE)return;typeof ee=="function"&&ee(Q),ue&&h.resizeOnNextFrame()},h.resizeOnNextFrame=function(){cancelAnimationFrame(h.nextFrameActionId),h.nextFrameActionId=requestAnimationFrame(h.resizeTextarea)},h.resizeTextarea=function(){var Q=h.props.autoSize;if(!Q||!h.textArea)return;var X=Q.minRows,oe=Q.maxRows,ue=q(h.textArea,!1,X,oe);h.setState({textareaStyles:ue,resizeStatus:_.RESIZING},function(){cancelAnimationFrame(h.resizeFrameId),h.resizeFrameId=requestAnimationFrame(function(){h.setState({resizeStatus:_.RESIZED},function(){h.resizeFrameId=requestAnimationFrame(function(){h.setState({resizeStatus:_.NONE}),h.fixFirefoxAutoScroll()})})})})},h.renderTextArea=function(){var Q=h.props,X=Q.prefixCls,oe=X===void 0?"rc-textarea":X,ue=Q.autoSize,ee=Q.onResize,de=Q.className,Oe=Q.disabled,he=h.state,De=he.textareaStyles,ke=he.resizeStatus,Ne=Object(t.a)(h.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),pe=d()(oe,de,Object(B.a)({},"".concat(oe,"-disabled"),Oe));"value"in Ne&&(Ne.value=Ne.value||"");var ve=Object(le.a)(Object(le.a)(Object(le.a)({},h.props.style),De),ke===_.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return n.createElement(o,{onResize:h.handleResize,disabled:!(ue||ee)},n.createElement("textarea",Object(j.a)({},Ne,{className:pe,style:ve,ref:h.saveTextArea})))},h.state={textareaStyles:{},resizeStatus:_.NONE},h}return Object(te.a)(J,[{key:"componentDidUpdate",value:function(h){(h.value!==this.props.value||!Z()(h.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var h=this.textArea.selectionStart,Q=this.textArea.selectionEnd;this.textArea.setSelectionRange(h,Q)}}catch(X){}}},{key:"render",value:function(){return this.renderTextArea()}}]),J}(n.Component),ce=ae,be=function(U){Object(ie.a)(J,U);var I=Object(S.a)(J);function J(k){var h;Object(x.a)(this,J),h=I.call(this,k),h.resizableTextArea=void 0,h.focus=function(){h.resizableTextArea.textArea.focus()},h.saveTextArea=function(X){h.resizableTextArea=X},h.handleChange=function(X){var oe=h.props.onChange;h.setValue(X.target.value,function(){h.resizableTextArea.resizeTextarea()}),oe&&oe(X)},h.handleKeyDown=function(X){var oe=h.props,ue=oe.onPressEnter,ee=oe.onKeyDown;X.keyCode===13&&ue&&ue(X),ee&&ee(X)};var Q=typeof k.value=="undefined"||k.value===null?k.defaultValue:k.value;return h.state={value:Q},h}return Object(te.a)(J,[{key:"setValue",value:function(h,Q){"value"in this.props||this.setState({value:h},Q)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return n.createElement(ce,Object(j.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(h){return"value"in h?{value:h.value}:null}}]),J}(n.Component),fe=W.default=be},ZpRC:function(Te,W,e){"use strict";function j(f){return typeof f=="object"&&f!=null&&f.nodeType===1}function x(f,w){return(!w||f!=="hidden")&&f!=="visible"&&f!=="clip"}function te(f,w){if(f.clientHeightw||l>f&&R=w&&u>=F?l-f-O:R>w&&uF?R-w+r:0}var S=function(f,w){var F=window,O=w.scrollMode,r=w.block,l=w.inline,R=w.boundary,u=w.skipOverflowHiddenElements,y=typeof R=="function"?R:function(De){return De!==R};if(!j(f))throw new TypeError("Invalid target");for(var v=document.scrollingElement||document.documentElement,g=[],z=f;j(z)&&y(z);){if((z=z.parentElement)===v){g.push(z);break}z!=null&&z===document.body&&te(z)&&!te(document.documentElement)||z!=null&&te(z,u)&&g.push(z)}for(var m=F.visualViewport?F.visualViewport.width:innerWidth,b=F.visualViewport?F.visualViewport.height:innerHeight,C=window.scrollX||pageXOffset,a=window.scrollY||pageYOffset,o=f.getBoundingClientRect(),t=o.height,i=o.width,d=o.top,p=o.right,H=o.bottom,E=o.left,L=r==="start"||r==="nearest"?d:r==="end"?H:d+t/2,$=l==="center"?E+i/2:l==="end"?p:E,q=[],Ce=0;Ce=0&&E>=0&&H<=b&&p<=m&&d>=be&&H<=U&&E>=I&&p<=fe)return q;var J=getComputedStyle(Z),k=parseInt(J.borderLeftWidth,10),h=parseInt(J.borderTopWidth,10),Q=parseInt(J.borderRightWidth,10),X=parseInt(J.borderBottomWidth,10),oe=0,ue=0,ee="offsetWidth"in Z?Z.offsetWidth-Z.clientWidth-k-Q:0,de="offsetHeight"in Z?Z.offsetHeight-Z.clientHeight-h-X:0;if(v===Z)oe=r==="start"?L:r==="end"?L-b:r==="nearest"?ie(a,a+b,b,h,X,a+L,a+L+t,t):L-b/2,ue=l==="start"?$:l==="center"?$-m/2:l==="end"?$-m:ie(C,C+m,m,k,Q,C+$,C+$+i,i),oe=Math.max(0,oe+a),ue=Math.max(0,ue+C);else{oe=r==="start"?L-be-h:r==="end"?L-U+X+de:r==="nearest"?ie(be,U,ae,h,X+de,L,L+t,t):L-(be+ae/2)+de/2,ue=l==="start"?$-I-k:l==="center"?$-(I+ce/2)+ee/2:l==="end"?$-fe+Q+ee:ie(I,fe,ce,k,Q+ee,$,$+i,i);var Oe=Z.scrollLeft,he=Z.scrollTop;L+=he-(oe=Math.max(0,Math.min(he+oe,Z.scrollHeight-ae+de))),$+=Oe-(ue=Math.max(0,Math.min(Oe+ue,Z.scrollWidth-ce+ee)))}q.push({el:Z,top:oe,left:ue})}return q};function n(f){return f===Object(f)&&Object.keys(f).length!==0}function le(f,w){w===void 0&&(w="auto");var F="scrollBehavior"in document.body.style;f.forEach(function(O){var r=O.el,l=O.top,R=O.left;r.scroll&&F?r.scroll({top:l,left:R,behavior:w}):(r.scrollTop=l,r.scrollLeft=R)})}function B(f){return f===!1?{block:"end",inline:"nearest"}:n(f)?f:{block:"start",inline:"nearest"}}function c(f,w){var F=!f.ownerDocument.documentElement.contains(f);if(n(w)&&typeof w.behavior=="function")return w.behavior(F?[]:S(f,w));if(F)return;var O=B(w);return le(S(f,O),O.behavior)}var se=W.a=c},bT9E:function(Te,W,e){"use strict";e.d(W,"a",function(){return x});var j=e("VTBJ");function x(te,ie){var S=Object(j.a)({},te);return Array.isArray(ie)&&ie.forEach(function(n){delete S[n]}),S}},biw7:function(Te,W,e){"use strict";var j=e("q1tI"),x=e.n(j),te=j.createContext(null);W.a=te},epD4:function(Te,W,e){"use strict";e.r(W);var j=e("5NDa"),x=e("5rEg"),te=e("g9YV"),ie=e("wCAj"),S=e("14J3"),n=e("BMrR"),le=e("+L6B"),B=e("2/Rp"),c=e("k1fw"),se=e("2qtc"),f=e("kLXV"),w=e("9og8"),F=e("y8nQ"),O=e("Vl3Y"),r=e("tJVT"),l=e("PpiC"),R=e("WmNS"),u=e.n(R),y=e("q1tI"),v=e.n(y),g=e("9kvl"),z=e("ErOA"),m=e("wd/R"),b=e.n(m);b.a.locale("ZH-cn");var C=function(o){var t=o.classroomList,i=o.globalSetting,d=o.loading,p=o.user,H=o.dispatch,E=Object(l.a)(o,["classroomList","globalSetting","loading","user","dispatch"]),L=Object(y.useState)(),$=Object(r.a)(L,2),q=$[0],Ce=$[1],Z=Object(y.useState)(1),_=Object(r.a)(Z,2),ae=_[0],ce=_[1],be=Object(y.useState)(null),fe=Object(r.a)(be,2),U=fe[0],I=fe[1],J=Object(y.useState)(!0),k=Object(r.a)(J,2),h=k[0],Q=k[1],X=Object(y.useState)(20),oe=Object(r.a)(X,2),ue=oe[0],ee=oe[1],de=Object(y.useState)(117),Oe=Object(r.a)(de,2),he=Oe[0],De=Oe[1],ke=Object(y.useState)(!1),Ne=Object(r.a)(ke,2),pe=Ne[0],ve=Ne[1],Be=O.a.useForm(),Fe=Object(r.a)(Be,1),Le=Fe[0];Object(y.useEffect)(function(){Ve()},[ae]);function Ve(K){return Ue.apply(this,arguments)}function Ue(){return Ue=Object(w.a)(u.a.mark(function K(V){var N,D;return u.a.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return Q(!0),N=V||ae,A.next=4,Object(z.a)("/api/school_portals/assets.json",{method:"get",params:{page:N,per_page:ue,school_id:he}});case 4:D=A.sent,D.assets&&Ce(D),Q(!1);case 7:case"end":return A.stop()}},K)})),Ue.apply(this,arguments)}var ot=function(V,N){f.a.confirm({centered:!0,width:424,okText:"\u786E\u5B9A\u5220\u9664",cancelText:"\u53D6\u6D88",title:"\u5220\u9664\u8D44\u6E90",icon:null,className:"custom-modal-divider",content:"\u5220\u9664\u540E\u5C06\u65E0\u6CD5\u6062\u590D\u8D44\u6E90\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u9700\u8981\u5220\u9664\u300A".concat(V,"\u300B\u8D44\u6E90\uFF1F"),onOk:function(){var D=Object(w.a)(u.a.mark(function A(){var Y,G,ne;return u.a.wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return re.next=2,Object(z.a)("/api/school_portals/remove_assets.json",{method:"post",body:{asset_id:N,school_id:he}});case 2:Y=re.sent,Y.status===0&&(ne=(q==null||((G=q.assets)===null||G===void 0)?void 0:G.length)===1&&ae>1?ae-1:ae,Ve(ne));case 4:case"end":return re.stop()}},A)}));function P(){return D.apply(this,arguments)}return P}()})},s=[{title:"\u5E8F\u53F7",dataIndex:"name",align:"center",key:"name",ellipsis:!0,width:50,render:function(V,N,D){return v.a.createElement("span",null,ue*(ae-1)+D+1)}},{title:"\u8D44\u6E90\u540D\u79F0",dataIndex:"content",align:"center",key:"content"},{title:"\u8D44\u6E90\u7C7B\u578B",dataIndex:"clazz",align:"center",key:"clazz"},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_at",align:"center",key:"created_at"},{title:"\u64CD\u4F5C",dataIndex:"remark",align:"center",key:"remark",ellipsis:!0,render:function(V,N,D){return v.a.createElement("span",null,v.a.createElement("a",{href:N.link,target:"_blank",style:{cursor:"pointer",color:"#0152d9",margin:"0 5px"}},"\u67E5\u770B"),(N==null?void 0:N.can_edit)&&v.a.createElement("span",{onClick:function(){Le.setFieldsValue({content:N.content,link:N.link,clazz:N.clazz}),ve(!0),I(N.id)},style:{cursor:"pointer",color:"#0152d9",margin:"0 5px"}},"\u7F16\u8F91"),v.a.createElement("span",{onClick:function(){ot(N.content,N.id)},style:{cursor:"pointer",color:"#0152d9",margin:"0 5px"}}," \u5220\u9664"))}}],T=function(){Le.resetFields(),I(null),ve(!1)},M=function(){var K=Object(w.a)(u.a.mark(function V(N){var D,P;return u.a.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(!U){Y.next=6;break}return Y.next=3,Object(z.a)("/api/school_portals/update_assets.json",{method:"post",body:Object(c.a)({asset_id:U,school_id:he},N)});case 3:return D=Y.sent,D.status===0&&(Ve(),T()),Y.abrupt("return");case 6:return Y.next=8,Object(z.a)("/api/school_portals/add_assets.json",{method:"post",body:Object(c.a)({school_id:he},N)});case 8:P=Y.sent,P.status===0&&(ce(1),Ve(1),T());case 10:case"end":return Y.stop()}},V)}));return function(N){return K.apply(this,arguments)}}();return v.a.createElement("div",{className:"edu-container minH500",style:{width:"1200px",marginTop:"40px",marginBottom:"20px"}},v.a.createElement(n.a,{justify:"space-between",align:"middle",className:"mb20"},v.a.createElement("span",{className:"ml15"},"\u5171",q==null?void 0:q.total_count,"\u4E2A\u5176\u4ED6\u5E73\u53F0\u8D44\u6E90"),v.a.createElement(B.a,{onClick:function(){ve(!0),I(null)},type:"primary"},"\u65B0\u5EFA\u8D44\u6E90")),v.a.createElement(ie.a,{className:"table-layout",columns:s,loading:h,dataSource:q==null?void 0:q.assets,pagination:{hideOnSinglePage:!0,pageSize:ue,showSizeChanger:!1,current:ae,position:["bottomCenter"],onChange:function(V,N){ce(V)},total:q==null?void 0:q.total_count}}),v.a.createElement(f.a,{title:U?"\u7F16\u8F91\u8D44\u6E90":"\u65B0\u5EFA\u8D44\u6E90",visible:pe,width:500,centered:!0,okText:U?"\u786E\u8BA4\u7F16\u8F91":"\u786E\u8BA4\u65B0\u5EFA",cancelText:"\u53D6\u6D88",onOk:function(){return Le.submit()},onCancel:T},v.a.createElement(O.a,{form:Le,onFinish:M},v.a.createElement(O.a.Item,{label:"\u8D44\u6E90\u540D\u79F0",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8D44\u6E90\u540D\u79F0"},{max:40,message:"\u8D44\u6E90\u540D\u79F0\u6700\u591A\u586B\u519940\u4E2A\u5B57\u7B26"}]},v.a.createElement(x.a,{maxLength:40})),v.a.createElement(O.a.Item,{label:"\u8D44\u6E90\u94FE\u63A5",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8D44\u6E90\u94FE\u63A5"}]},v.a.createElement(x.a,null)),v.a.createElement(O.a.Item,{label:"\u8D44\u6E90\u7C7B\u578B",name:"clazz",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8D44\u6E90\u7C7B\u578B"},{max:10,message:"\u8D44\u6E90\u540D\u79F0\u6700\u591A\u586B\u519910\u4E2A\u5B57\u7B26"}]},v.a.createElement(x.a,{maxLength:10})))))};W.default=Object(g.a)(function(a){var o=a.classroomList,t=a.loading,i=a.globalSetting,d=a.user;return{classroomList:o,globalSetting:i,loading:t.models.classroomList,user:d}})(C)},fyJ8:function(Te,W,e){"use strict";var j=e("rePB"),x=e("VTBJ"),te=e("Ff2n"),ie=e("U8pU"),S=e("q1tI"),n=e.n(S),le=e("TSYQ"),B=e.n(le),c=e("c+Xe"),se=e("sR1s");function f(l){return l&&Object(ie.a)(l)==="object"&&!Array.isArray(l)&&!S.isValidElement(l)}function w(l){return typeof l=="string"?!0:Object(c.c)(l)}function F(l,R){var u,y=l.prefixCls,v=l.className,g=l.record,z=l.index,m=l.dataIndex,b=l.render,C=l.children,a=l.component,o=a===void 0?"td":a,t=l.colSpan,i=l.rowSpan,d=l.fixLeft,p=l.fixRight,H=l.firstFixLeft,E=l.lastFixLeft,L=l.firstFixRight,$=l.lastFixRight,q=l.appendNode,Ce=l.additionalProps,Z=Ce===void 0?{}:Ce,_=l.ellipsis,ae=l.align,ce=l.rowType,be=l.isSticky,fe="".concat(y,"-cell"),U,I;if(C)I=C;else{var J=Object(se.b)(g,m);if(I=J,b){var k=b(J,g,z);f(k)?(I=k.children,U=k.props):I=k}}Object(ie.a)(I)==="object"&&!Array.isArray(I)&&!S.isValidElement(I)&&(I=null),_&&(E||L)&&(I=S.createElement("span",{className:"".concat(fe,"-content")},I));var h=U||{},Q=h.colSpan,X=h.rowSpan,oe=h.style,ue=h.className,ee=Object(te.a)(h,["colSpan","rowSpan","style","className"]),de=Q!==void 0?Q:t,Oe=X!==void 0?X:i;if(de===0||Oe===0)return null;var he={},De=typeof d=="number",ke=typeof p=="number";De&&(he.position="sticky",he.left=d),ke&&(he.position="sticky",he.right=p);var Ne={};ae&&(Ne.textAlign=ae);var pe,ve=_===!0?{showTitle:!0}:_;ve&&(ve.showTitle||ce==="header")&&(typeof I=="string"||typeof I=="number"?pe=I.toString():S.isValidElement(I)&&typeof I.props.children=="string"&&(pe=I.props.children));var Be=Object(x.a)(Object(x.a)(Object(x.a)({title:pe},ee),Z),{},{colSpan:de&&de!==1?de:null,rowSpan:Oe&&Oe!==1?Oe:null,className:B()(fe,v,(u={},Object(j.a)(u,"".concat(fe,"-fix-left"),De),Object(j.a)(u,"".concat(fe,"-fix-left-first"),H),Object(j.a)(u,"".concat(fe,"-fix-left-last"),E),Object(j.a)(u,"".concat(fe,"-fix-right"),ke),Object(j.a)(u,"".concat(fe,"-fix-right-first"),L),Object(j.a)(u,"".concat(fe,"-fix-right-last"),$),Object(j.a)(u,"".concat(fe,"-ellipsis"),_),Object(j.a)(u,"".concat(fe,"-with-append"),q),Object(j.a)(u,"".concat(fe,"-fix-sticky"),(De||ke)&&be),u),Z.className,ue),style:Object(x.a)(Object(x.a)(Object(x.a)(Object(x.a)({},Z.style),Ne),he),oe),ref:w(o)?R:null});return S.createElement(o,Object.assign({},Be),q,I)}var O=S.forwardRef(F);O.displayName="Cell";var r=S.memo(O,function(l,R){return R.shouldCellUpdate?!R.shouldCellUpdate(R.record,l.record):!1});W.a=r},hW8S:function(Te,W,e){"use strict";e.d(W,"a",function(){return ie}),e.d(W,"c",function(){return S}),e.d(W,"b",function(){return n});var j=e("VTBJ"),x=e("Ff2n"),te=e("Kwbf"),ie="RC_TABLE_INTERNAL_COL_DEFINE";function S(le){var B=le.expandable,c=Object(x.a)(le,["expandable"]);return"expandable"in le?Object(j.a)(Object(j.a)({},c),B):c}function n(le){return Object.keys(le).reduce(function(B,c){return(c.substr(0,5)==="data-"||c.substr(0,5)==="aria-")&&(B[c]=le[c]),B},{})}},n6Qo:function(Te,W,e){"use strict";e.d(W,"a",function(){return B});var j=e("q1tI"),x=e("biw7"),te=e("fyJ8");function ie(c){var se=c.className,f=c.index,w=c.children,F=c.colSpan,O=c.rowSpan,r=j.useContext(x.a),l=r.prefixCls,R=r.fixedInfoList,u=R[f];return j.createElement(te.a,Object.assign({className:se,index:f,component:"td",prefixCls:l,record:null,dataIndex:null,render:function(){return{children:w,props:{colSpan:F,rowSpan:O}}}},u))}function S(c){return j.createElement("tr",Object.assign({},c))}function n(c){var se=c.children,f=j.useContext(x.a),w=f.prefixCls;return j.createElement("tfoot",{className:"".concat(w,"-summary")},se)}var le=W.b=n,B={Cell:ie,Row:S}},sR1s:function(Te,W,e){"use strict";e.d(W,"b",function(){return ie}),e.d(W,"a",function(){return S}),e.d(W,"c",function(){return n}),e.d(W,"d",function(){return le});var j=e("U8pU"),x="RC_TABLE_KEY";function te(B){return B==null?[]:Array.isArray(B)?B:[B]}function ie(B,c){if(!c&&typeof c!="number")return B;for(var se=te(c),f=B,w=0;w1)Object(se.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(v.length===0)return Object(se.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var g=v[0];if(n.isValidElement(g)&&Object(f.c)(g)){var z=g.ref;v[0]=n.cloneElement(g,{ref:Object(f.a)(z,this.setChildNode)})}return v.length===1?v[0]:v.map(function(m,b){return!n.isValidElement(m)||"key"in m&&m.key!==null?m:n.cloneElement(m,{key:"".concat(F,"-").concat(b)})})}}]),R}(n.Component);O.displayName="ResizeObserver",W.a=O},wCXF:function(Te,W,e){"use strict";e.d(W,"a",function(){return Le});var j=e("rePB"),x=e("VTBJ"),te=e("KQm4"),ie=e("U8pU"),S=e("ODXe"),n=e("q1tI"),le=e("TSYQ"),B=e.n(le),c=e("Gytx"),se=e.n(c),f=e("Kwbf"),w=e("t23M"),F=e("qx4F"),O=e("6eGT"),r=e("IBYe"),l=e("Ff2n"),R=e("c+Xe"),u=e("fyJ8"),y=e("biw7");function v(s,T,M,K,V){var N=M[s]||{},D=M[T]||{},P,A;N.fixed==="left"?P=K.left[s]:D.fixed==="right"&&(A=K.right[T]);var Y=!1,G=!1,ne=!1,me=!1,re=M[T+1],ge=M[s-1];if(V==="rtl"){if(P!==void 0){var Me=ge&&ge.fixed==="left";me=!Me}else if(A!==void 0){var Re=re&&re.fixed==="right";ne=!Re}}else if(P!==void 0){var Pe=re&&re.fixed==="left";Y=!Pe}else if(A!==void 0){var Ee=ge&&ge.fixed==="right";G=!Ee}return{fixLeft:P,fixRight:A,lastFixLeft:Y,firstFixRight:G,lastFixRight:ne,firstFixLeft:me,isSticky:K.isSticky}}var g=e("sR1s");function z(s){var T=s.cells,M=s.stickyOffsets,K=s.flattenColumns,V=s.rowComponent,N=s.cellComponent,D=s.onHeaderRow,P=s.index,A=n.useContext(y.a),Y=A.prefixCls,G=A.direction,ne;D&&(ne=D(T.map(function(re){return re.column}),P));var me=Object(g.a)(T.map(function(re){return re.column}));return n.createElement(V,Object.assign({},ne),T.map(function(re,ge){var Me=re.column,Re=v(re.colStart,re.colEnd,K,M,G),Pe;return Me&&Me.onHeaderCell&&(Pe=re.column.onHeaderCell(Me)),n.createElement(u.a,Object.assign({},re,{ellipsis:Me.ellipsis,align:Me.align,component:N,prefixCls:Y,key:me[ge]},Re,{additionalProps:Pe,rowType:"header"}))}))}z.displayName="HeaderRow";var m=z;function b(s){var T=[];function M(D,P){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;T[A]=T[A]||[];var Y=P,G=D.filter(Boolean).map(function(ne){var me={key:ne.key,className:ne.className||"",children:ne.title,column:ne,colStart:Y},re=1,ge=ne.children;return ge&&ge.length>0&&(re=M(ge,Y,A+1).reduce(function(Me,Re){return Me+Re},0),me.hasSubColumns=!0),"colSpan"in ne&&(re=ne.colSpan),"rowSpan"in ne&&(me.rowSpan=ne.rowSpan),me.colSpan=re,me.colEnd=me.colStart+re-1,T[A].push(me),Y+=re,re});return G}M(s,0);for(var K=T.length,V=function(P){T[P].forEach(function(A){!("rowSpan"in A)&&!A.hasSubColumns&&(A.rowSpan=K-P)})},N=0;N=0;P-=1){var A=T[P],Y=M&&M[P],G=Y&&Y[o.a];(A||G||D)&&(V.unshift(n.createElement("col",Object.assign({key:P,style:{width:A,minWidth:A}},G))),D=!0)}return n.createElement("colgroup",null,V)}var i=t;function d(s,T){return Object(n.useMemo)(function(){for(var M=[],K=0;K1?Ye-1:0),ct=1;ct=ne&&(Ae=ne-me),D({scrollLeft:Ae/ne*(G+2)}),Ee.current.x=ye.pageX},$e=function(){var ye=Object(ke.b)(N.current).top,We=ye+N.current.offsetHeight,Je=document.documentElement.scrollTop+window.innerHeight;We-Object(F.a)()<=Je||ye>=Je-P?Pe(function(et){return Object(x.a)(Object(x.a)({},et),{},{isHiddenScrollBar:!0})}):Pe(function(et){return Object(x.a)(Object(x.a)({},et),{},{isHiddenScrollBar:!1})})},Ke=function(ye){Pe(function(We){return Object(x.a)(Object(x.a)({},We),{},{scrollLeft:ye/G*ne||0})})};return n.useImperativeHandle(M,function(){return{setScrollLeft:Ke}}),n.useEffect(function(){var _e=Object(De.a)(document.body,"mouseup",Ze,!1),ye=Object(De.a)(document.body,"mousemove",qe,!1);return $e(),function(){_e.remove(),ye.remove()}},[me,we]),n.useEffect(function(){var _e=Object(De.a)(window,"scroll",$e,!1),ye=Object(De.a)(window,"resize",$e,!1);return function(){_e.remove(),ye.remove()}},[]),n.useEffect(function(){Re.isHiddenScrollBar||Pe(function(_e){var ye,We;return Object(x.a)(Object(x.a)({},_e),{},{scrollLeft:N.current.scrollLeft/((ye=N.current)===null||ye===void 0?void 0:ye.scrollWidth)*((We=N.current)===null||We===void 0?void 0:We.clientWidth)})})},[Re.isHiddenScrollBar]),G<=ne||!me||Re.isHiddenScrollBar?null:n.createElement("div",{style:{height:Object(F.a)(),width:ne,bottom:P},className:"".concat(Y,"-sticky-scroll")},n.createElement("div",{onMouseDown:Se,ref:re,className:B()("".concat(Y,"-sticky-scroll-bar"),Object(j.a)({},"".concat(Y,"-sticky-scroll-bar-active"),we)),style:{width:"".concat(me,"px"),transform:"translate3d(".concat(Re.scrollLeft,"px, 0, 0)")}}))},pe=n.forwardRef(Ne);function ve(s,T){return n.useMemo(function(){var M=!!s;return{isSticky:M,stickyClassName:M?"".concat(T,"-sticky-header"):"",offsetHeader:Object(ie.a)(s)==="object"&&s.offsetHeader||0,offsetScroll:Object(ie.a)(s)==="object"&&s.offsetScroll||0}},[s,T])}var Be=[],Fe={},Le="rc-table-internal-hook",Ve=n.memo(function(s){var T=s.children;return T},function(s,T){return se()(s.props,T.props)?s.pingLeft!==T.pingLeft||s.pingRight!==T.pingRight:!1});function Ue(s){var T,M=s.prefixCls,K=s.className,V=s.rowClassName,N=s.style,D=s.data,P=s.rowKey,A=s.scroll,Y=s.tableLayout,G=s.direction,ne=s.title,me=s.footer,re=s.summary,ge=s.id,Me=s.showHeader,Re=s.components,Pe=s.emptyText,Ee=s.onRow,Qe=s.onHeaderRow,Ie=s.internalHooks,we=s.transformColumns,He=s.internalRefs,Ze=s.sticky,Se=D||Be,qe=!!Se.length,$e=n.useState(0),Ke=Object(S.a)($e,2),_e=Ke[0],ye=Ke[1];n.useEffect(function(){ye(Object(F.a)())});var We=n.useMemo(function(){return Object(g.c)(Re,{})},[Re]),Je=n.useCallback(function(xe,je){return Object(g.b)(We,xe)||je},[We]),et=n.useMemo(function(){return typeof P=="function"?P:function(xe){var je=xe&&xe[P];return je}},[P]),Ae=Object(o.c)(s),jt=Ae.expandIcon,Rt=Ae.expandedRowKeys,Nt=Ae.defaultExpandedRowKeys,st=Ae.defaultExpandAllRows,dt=Ae.expandedRowRender,mt=Ae.onExpand,ht=Ae.onExpandedRowsChange,St=Ae.expandRowByClick,at=Ae.rowExpandable,Et=Ae.expandIconColumnIndex,pt=Ae.expandedRowClassName,Kt=Ae.childrenColumnName,Tt=Ae.indentSize,vt=jt||Oe,gt=Kt||"children",Dt=n.useMemo(function(){return dt?"row":s.expandable&&Ie===Le&&s.expandable.__PARENT_RENDER_ICON__||Se.some(function(xe){return xe&&Object(ie.a)(xe)==="object"&&xe[gt]})?"nest":!1},[!!dt,Se]),Pt=n.useState(function(){return Nt||(st?he(Se,et,gt):[])}),Ge=Object(S.a)(Pt,2),tt=Ge[0],rt=Ge[1],Ye=n.useMemo(function(){return new Set(Rt||tt||[])},[Rt,tt]),ut=n.useCallback(function(xe){var je=et(xe,Se.indexOf(xe)),Xe,nt=Ye.has(je);nt?(Ye.delete(je),Xe=Object(te.a)(Ye)):Xe=[].concat(Object(te.a)(Ye),[je]),rt(Xe),mt&&mt(!nt,xe),ht&&ht(Xe)},[et,Ye,Se,mt,ht]),ct=n.useState(0),Mt=Object(S.a)(ct,2),Ct=Mt[0],_t=Mt[1],vn=Object(I.b)(Object(x.a)(Object(x.a)(Object(x.a)({},s),Ae),{},{expandable:!!dt,expandedKeys:Ye,getRowKey:et,onTriggerExpand:ut,expandIcon:vt,expandIconColumnIndex:Et,direction:G}),Ie===Le?we:null),Yt=Object(S.a)(vn,2),zt=Yt[0],ze=Yt[1],At=n.useMemo(function(){return{columns:zt,flattenColumns:ze}},[zt,ze]),kt=n.useRef(),Qt=n.useRef(),ft=n.useRef(),bn=n.useState(!1),Zt=Object(S.a)(bn,2),qt=Zt[0],En=Zt[1],gn=n.useState(!1),en=Object(S.a)(gn,2),tn=en[0],Cn=en[1],yn=h(new Map),nn=Object(S.a)(yn,2),On=nn[0],xn=nn[1],jn=Object(g.a)(ze),an=jn.map(function(xe){return On.get(xe)}),on=n.useMemo(function(){return an},[an.join("_")]),Lt=oe(on,ze.length,G),lt=A&&Object(g.d)(A.y),it=A&&Object(g.d)(A.x),yt=it&&ze.some(function(xe){var je=xe.fixed;return je}),rn=n.useRef(),wt=ve(Ze,M),Ot=wt.isSticky,Rn=wt.offsetHeader,Nn=wt.offsetScroll,Sn=wt.stickyClassName,Wt,Ut,Bt;lt&&(Ut={overflowY:"scroll",maxHeight:A.y}),it&&(Wt={overflowX:"auto"},lt||(Ut={overflowY:"hidden"}),Bt={width:A.x===!0?"auto":A.x,minWidth:"100%"});var ln=n.useCallback(function(xe,je){xn(function(Xe){var nt=new Map(Xe);return nt.set(xe,je),nt})},[]),Tn=Q(null),sn=Object(S.a)(Tn,2),Dn=sn[0],dn=sn[1];function Ft(xe,je){if(!je)return;typeof je=="function"?je(xe):je.scrollLeft!==xe&&(je.scrollLeft=xe)}var bt=function(je){var Xe=je.currentTarget,nt=je.scrollLeft,xt=typeof nt=="number"?nt:Xe.scrollLeft,pn=Xe||Fe;if(!dn()||dn()===pn){var Jt;Dn(pn),Ft(xt,Qt.current),Ft(xt,ft.current),Ft(xt,(Jt=rn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(Xe){var Un=Xe.scrollWidth,In=Xe.clientWidth;En(xt>0),Cn(xt0?[].concat(Object(x.a)(l),Object(x.a)(f(v).map(function(g){return Object(te.a)({fixed:y},g)}))):[].concat(Object(x.a)(l),[Object(te.a)(Object(te.a)({},R),{},{fixed:y})])},[])}function w(r){for(var l=!0,R=0;R=0;v-=1){var g=r[v];if(y&&g.fixed!=="right")y=!1;else if(!y&&g.fixed==="right"){Object(le.a)(!1,"Index ".concat(v+1," of `columns` missing `fixed='right'` prop."));break}}}function F(r){return r.map(function(l){var R=l.fixed,u=Object(ie.a)(l,["fixed"]),y=R;return R==="left"?y="right":R==="right"&&(y="left"),Object(te.a)({fixed:y},u)})}function O(r,l){var R=r.prefixCls,u=r.columns,y=r.children,v=r.expandable,g=r.expandedKeys,z=r.getRowKey,m=r.onTriggerExpand,b=r.expandIcon,C=r.rowExpandable,a=r.expandIconColumnIndex,o=r.direction,t=r.expandRowByClick,i=S.useMemo(function(){return u||se(y)},[u,y]),d=S.useMemo(function(){if(v){var E,L=a||0,$=i[L],q=(E={},Object(j.a)(E,c.a,{className:"".concat(R,"-expand-icon-col")}),Object(j.a)(E,"title",""),Object(j.a)(E,"fixed",$?$.fixed:null),Object(j.a)(E,"className","".concat(R,"-row-expand-icon-cell")),Object(j.a)(E,"render",function(_,ae,ce){var be=z(ae,ce),fe=g.has(be),U=C?C(ae):!0,I=b({prefixCls:R,expanded:fe,expandable:U,record:ae,onExpand:m});return t?S.createElement("span",{onClick:function(k){return k.stopPropagation()}},I):I}),E),Ce=i.slice();return L>=0&&Ce.splice(L,0,q),Ce}return i},[v,i,z,g,b,o]),p=S.useMemo(function(){var E=d;return l&&(E=l(E)),E.length||(E=[{render:function(){return null}}]),E},[l,d,o]),H=S.useMemo(function(){return o==="rtl"?F(f(p)):f(p)},[p,o]);return[p,H]}W.b=O},"y0+3":function(Te,W,e){"use strict";e.d(W,"a",function(){return f}),e.d(W,"b",function(){return F});var j=/margin|padding|width|height|max|min|offset/,x={left:!0,top:!0},te={cssFloat:1,styleFloat:1,float:1};function ie(O){return O.nodeType===1?O.ownerDocument.defaultView.getComputedStyle(O,null):{}}function S(O,r,l){if(r=r.toLowerCase(),l==="auto"){if(r==="height")return O.offsetHeight;if(r==="width")return O.offsetWidth}return r in x||(x[r]=j.test(r)),x[r]?parseFloat(l)||0:l}function n(O,r){var l=arguments.length,R=ie(O);return r=te[r]?"cssFloat"in O.style?"cssFloat":"styleFloat":r,l===1?R:S(O,r,R[r]||O.style[r])}function le(O,r,l){var R=arguments.length;if(r=te[r]?"cssFloat"in O.style?"cssFloat":"styleFloat":r,R===3)return typeof l=="number"&&j.test(r)&&(l="".concat(l,"px")),O.style[r]=l,l;for(var u in r)r.hasOwnProperty(u)&&le(O,u,r[u]);return ie(O)}function B(O){return O===document.body?document.documentElement.clientWidth:O.offsetWidth}function c(O){return O===document.body?window.innerHeight||document.documentElement.clientHeight:O.offsetHeight}function se(){var O=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),r=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:O,height:r}}function f(){var O=document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight;return{width:O,height:r}}function w(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function F(O){var r=O.getBoundingClientRect(),l=document.documentElement;return{left:r.left+(window.pageXOffset||l.scrollLeft)-(l.clientLeft||document.body.clientLeft||0),top:r.top+(window.pageYOffset||l.scrollTop)-(l.clientTop||document.body.clientTop||0)}}}}]); diff --git a/umi.0ecacd5f.js b/umi.f82e3d89.js similarity index 94% rename from umi.0ecacd5f.js rename to umi.f82e3d89.js index 46dbc3159e..6aa8dcbf89 100644 --- a/umi.0ecacd5f.js +++ b/umi.f82e3d89.js @@ -16,7 +16,7 @@ The error may be correlated with this previous error: `+Le.current.stack+` -`),L}return Object(v.a)(function(){w.current=xe,te.current=Ae,ce.current=de,Le.current=void 0}),Object(v.a)(function(){function L(){try{var A=ue.getState();if(A===te.current)return;var V=w.current(A);if(Re(V,ce.current))return;ce.current=V,te.current=A}catch(Se){Le.current=Se}N()}return W.onStateChange=L,W.trySubscribe(),L(),function(){return W.tryUnsubscribe()}},[ue,W]),de}function Je(xe){xe===void 0&&(xe=t.a);var Re=xe===t.a?I:function(){return Object(a.useContext)(xe)};return function(K,k){k===void 0&&(k=Ce);var N=Re(),W=N.store,Le=N.subscription,w=Ge(K,k,W,Le);return Object(a.useDebugValue)(w),w}}var gt=Je(),ge=e("i8i4"),be=e("TfIc");Object(be.b)(ge.unstable_batchedUpdates)},"/R3g":function(x,g,e){var a=e("MMxC"),n=e("zTPR"),r=e("ls1J"),t=e("f1E4"),i=e("Acmb"),v=e("IuhT"),f=r.keys,l=r.toKey,s=function(u){var m=[];return v(u,m.push,m),m},p=function(u,m){var o=f(u,m),h=i(u);if(h===null)return o;var c=p(h,m);return c.length?o.length?s(new n(o.concat(c))):c:o};a({target:"Reflect",stat:!0},{getMetadataKeys:function(m){var o=arguments.length<2?void 0:l(arguments[1]);return p(t(m),o)}})},"/dTS":function(x,g,e){var a=e("f1E4"),n=e("cT1L"),r=e("2kyd"),t=r("species");x.exports=function(i,v){var f=a(i).constructor,l;return f===void 0||(l=a(f)[t])==null?v:n(l)}},"/gva":function(x,g,e){"use strict";var a=e("MMxC"),n=e("ukPv"),r=e("kkxG"),t=e("NMFW"),i=e("a5mf"),v=e("IuhT"),f=e("igoe"),l=e("tSXo"),s=e("MVys"),p=e("GPrf"),u=e("kiNa"),m=e("+vfm");x.exports=function(o,h,c){var b=o.indexOf("Map")!==-1,j=o.indexOf("Weak")!==-1,O=b?"set":"add",C=n[o],S=C&&C.prototype,M=C,P={},R=function(le){var se=S[le];t(S,le,le=="add"?function(Z){return se.call(this,Z===0?0:Z),this}:le=="delete"?function(q){return j&&!l(q)?!1:se.call(this,q===0?0:q)}:le=="get"?function(Z){return j&&!l(Z)?void 0:se.call(this,Z===0?0:Z)}:le=="has"?function(Z){return j&&!l(Z)?!1:se.call(this,Z===0?0:Z)}:function(Z,B){return se.call(this,Z===0?0:Z,B),this})};if(r(o,typeof C!="function"||!(j||S.forEach&&!s(function(){new C().entries().next()}))))M=c.getConstructor(h,o,b,O),i.REQUIRED=!0;else if(r(o,!0)){var z=new M,G=z[O](j?{}:-0,1)!=z,D=s(function(){z.has(1)}),F=p(function(le){new C(le)}),Oe=!j&&s(function(){for(var le=new C,se=5;se--;)le[O](se,se);return!le.has(-0)});F||(M=h(function(le,se){f(le,M,o);var q=m(new C,le,M);return se!=null&&v(se,q[O],q,b),q}),M.prototype=S,S.constructor=M),(D||Oe)&&(R("delete"),R("has"),b&&R("get")),(Oe||G)&&R(O),j&&S.clear&&delete S.clear}return P[o]=M,a({global:!0,forced:M!=C},P),u(M,o),j||c.setStrong(M,o,b),M}},"/mKc":function(x,g,e){"use strict";var a=e("MMxC"),n=e("Zcjx"),r=e("29mP"),t=e("f1E4"),i=e("cT1L"),v=e("7BAe"),f=e("/dTS"),l=e("jbR1"),s=e("IuhT");a({target:"Set",proto:!0,real:!0,forced:n},{filter:function(u){var m=t(this),o=l(m),h=v(u,arguments.length>1?arguments[1]:void 0,3),c=new(f(m,r("Set"))),b=i(c.add);return s(o,function(j){h(j,j,m)&&b.call(c,j)},void 0,!1,!0),c}})},"/vMi":function(x,g,e){"use strict";var a=e("/gva"),n=e("uz3g");a("WeakSet",function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},n)},"/yC2":function(x,g,e){var a=e("tny8"),n=e("MVys"),r=e("8w+9");x.exports=!a&&!n(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!=7})},0:function(x,g,e){x.exports=e("tB8F")},"02UQ":function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("B3m4"),i={namespace:"graduation",state:{name:"\u6BD5\u4E1A\u8BBE\u8BA1",loading:!0,actionTabs:{},detailList:{},detailTaskList:{},replyList:{},detail:{},addTopicData:{},editTopicData:{},editTasksData:{}},effects:{getTopisDetailList:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.o,s);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detailList:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),getTasksListDetail:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.m,s);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detailTaskList:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),getTopisDetail:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.n,s);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detail:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),getTasksDetail:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.l,s);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{tasksDetail:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),refuseTopic:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.p,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),agreeTopic:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.d,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getReplyList:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.k,s);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{replyList:Object(a.a)({},o)}});case 7:case"end":return c.stop()}},v)}),createReply:r.a.mark(function v(f,l){var s,p,u,m;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,h.next=4,u(t.e,s);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},v)}),replyLike:r.a.mark(function v(f,l){var s,p,u,m;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,h.next=4,u(t.q,s);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},v)}),replyUnLike:r.a.mark(function v(f,l){var s,p,u,m;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,h.next=4,u(t.r,s);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},v)}),deleteReply:r.a.mark(function v(f,l){var s,p,u,m;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,h.next=4,u(t.f,s);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},v)}),addTopicDefaultData:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.c,s);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{addTopicData:Object(a.a)({},o)}});case 7:case"end":return c.stop()}},v)}),editTopicDefaultData:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.j,s);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{editTopicData:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),editTasksDefaultData:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.h,s);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{editTasksData:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),addTopic:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.b,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),editTopic:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.i,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),addTasks:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.a,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),editTasks:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.g,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),setActionTabs:r.a.mark(function v(f,l){var s,p,u;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=f.payload,p=l.call,u=l.put,o.next=4,u({type:"save",payload:{actionTabs:Object(a.a)({},s)}});case 4:case"end":return o.stop()}},v)})},reducers:{save:function(f,l){return Object(a.a)(Object(a.a)({},f),l.payload)}},subscriptions:{setup:function(f){var l=f.dispatch,s=f.history}}};g.a=i},"0BeC":function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("Xq8v"),i={namespace:"attachment",state:{name:"\u8D44\u6E90",loading:!0,detail:{},actionTabs:{}},effects:{allAttachment:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.a,s);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{allList:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),mineAttachment:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.d,s);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{mineList:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),fileImport:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.b,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getDetail:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.c,s);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detail:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),updateVisits:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.f,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),setActionTabs:r.a.mark(function v(f,l){var s,p,u;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=f.payload,p=l.call,u=l.put,o.next=4,u({type:"save",payload:{actionTabs:Object(a.a)({},s)}});case 4:case"end":return o.stop()}},v)})},reducers:{save:function(f,l){return Object(a.a)(Object(a.a)({},f),l.payload)}},subscriptions:{setup:function(f){var l=f.dispatch,s=f.history}}};g.a=i},"0O5u":function(x,g,e){"use strict";var a=e("MMxC"),n=e("MVys"),r=e("Un+d"),t=e("tSXo"),i=e("cTDu"),v=e("oa35"),f=e("arQb"),l=e("nMuc"),s=e("jMDO"),p=e("2kyd"),u=e("hRxt"),m=p("isConcatSpreadable"),o=9007199254740991,h="Maximum allowed index exceeded",c=u>=51||!n(function(){var C=[];return C[m]=!1,C.concat()[0]!==C}),b=s("concat"),j=function(C){if(!t(C))return!1;var S=C[m];return S!==void 0?!!S:r(C)},O=!c||!b;a({target:"Array",proto:!0,forced:O},{concat:function(S){var M=i(this),P=l(M,0),R=0,z,G,D,F,Oe;for(z=-1,D=arguments.length;zo)throw TypeError(h);for(G=0;G=o)throw TypeError(h);f(P,R++,Oe)}return P.length=R,P}})},"0Owb":function(x,g,e){"use strict";e.d(g,"a",function(){return a});function a(){return a=Object.assign||function(n){for(var r=1;r1;){var O=j.pop(),C=O.obj[O.prop];if(r(C)){for(var S=[],M=0;M=48&&G<=57||G>=65&&G<=90||G>=97&&G<=122||M===a.RFC1738&&(G===40||G===41)){R+=P.charAt(z);continue}if(G<128){R=R+t[G];continue}if(G<2048){R=R+(t[192|G>>6]+t[128|G&63]);continue}if(G<55296||G>=57344){R=R+(t[224|G>>12]+t[128|G>>6&63]+t[128|G&63]);continue}z+=1,G=65536+((G&1023)<<10|P.charCodeAt(z)&1023),R+=t[240|G>>18]+t[128|G>>12&63]+t[128|G>>6&63]+t[128|G&63]}return R},u=function(j){for(var O=[{obj:{o:j},prop:"o"}],C=[],S=0;S1?arguments[1]:void 0,h=o!==void 0,c=f(p),b=0,j,O,C,S,M,P;if(h&&(o=a(o,m>2?arguments[2]:void 0,2)),c!=null&&!(u==Array&&t(c)))for(S=c.call(p),M=S.next,O=new u;!(C=M.call(S)).done;b++)P=h?r(S,o,[C.value,b],!0):C.value,v(O,b,P);else for(j=i(p.length),O=new u(j);j>b;b++)P=h?o(p[b],b):p[b],v(O,b,P);return O.length=b,O}},"1OyB":function(x,g,e){"use strict";e.d(g,"a",function(){return a});function a(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}},"1W/9":function(x,g,e){"use strict";var a=e("1OyB"),n=e("vuIU"),r=e("Ji7U"),t=e("LK+K"),i=e("U8pU"),v=e("q1tI"),f=e("wgJM"),l=e("QC+M"),s=e("MNnm"),p=e("qx4F");function u(se){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!se)return{};var Z=q.element,B=Z===void 0?document.body:Z,Q={},_=Object.keys(se);return _.forEach(function(Be){Q[Be]=B.style[Be]}),_.forEach(function(Be){B.style[Be]=se[Be]}),Q}var m=u;function o(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var h={},c=function(se){if(!o()&&!se)return;var q="ant-scrolling-effect",Z=new RegExp("".concat(q),"g"),B=document.body.className;if(se){if(!Z.test(B))return;m(h),h={},document.body.className=B.replace(Z,"").trim();return}var Q=Object(p.a)();if(Q&&(h=m({position:"relative",width:"calc(100% - ".concat(Q,"px)")}),!Z.test(B))){var _="".concat(B," ").concat(q);document.body.className=_.trim()}},b=e("KQm4"),j=[],O="ant-scrolling-effect",C=new RegExp("".concat(O),"g"),S=0,M=new Map,P=function se(q){var Z=this;Object(a.a)(this,se),this.lockTarget=void 0,this.options=void 0,this.getContainer=function(){var B;return(B=Z.options)===null||B===void 0?void 0:B.container},this.reLock=function(B){var Q=j.find(function(_){var Be=_.target;return Be===Z.lockTarget});Q&&Z.unLock(),Z.options=B,Q&&(Q.options=B,Z.lock())},this.lock=function(){var B;if(j.some(function(ct){var We=ct.target;return We===Z.lockTarget}))return;if(j.some(function(ct){var We,Ue=ct.options;return(Ue==null?void 0:Ue.container)===((We=Z.options)===null||We===void 0?void 0:We.container)})){j=[].concat(Object(b.a)(j),[{target:Z.lockTarget,options:Z.options}]);return}var Q=0,_=((B=Z.options)===null||B===void 0?void 0:B.container)||document.body;(_===document.body&&window.innerWidth-document.documentElement.clientWidth>0||_.scrollHeight>_.clientHeight)&&(Q=Object(p.a)());var Be=_.className;if(j.filter(function(ct){var We,Ue=ct.options;return(Ue==null?void 0:Ue.container)===((We=Z.options)===null||We===void 0?void 0:We.container)}).length===0&&M.set(_,m({width:Q!==0?"calc(100% - ".concat(Q,"px)"):void 0,overflow:"hidden",overflowX:"hidden",overflowY:"hidden"},{element:_})),!C.test(Be)){var Ke="".concat(Be," ").concat(O);_.className=Ke.trim()}j=[].concat(Object(b.a)(j),[{target:Z.lockTarget,options:Z.options}])},this.unLock=function(){var B,Q=j.find(function(Ke){var ct=Ke.target;return ct===Z.lockTarget});if(j=j.filter(function(Ke){var ct=Ke.target;return ct!==Z.lockTarget}),!Q||j.some(function(Ke){var ct,We=Ke.options;return(We==null?void 0:We.container)===((ct=Q.options)===null||ct===void 0?void 0:ct.container)}))return;var _=((B=Z.options)===null||B===void 0?void 0:B.container)||document.body,Be=_.className;if(!C.test(Be))return;m(M.get(_),{element:_}),M.delete(_),_.className=_.className.replace(C,"").trim()},this.lockTarget=S++,this.options=q},R=0,z=Object(s.a)();function G(){return 0}var D={},F=function(q){if(!z)return null;if(q){if(typeof q=="string")return document.querySelectorAll(q)[0];if(typeof q=="function")return q();if(Object(i.a)(q)==="object"&&q instanceof window.HTMLElement)return q}return document.body},Oe=function(se){Object(r.a)(Z,se);var q=Object(t.a)(Z);function Z(B){var Q;return Object(a.a)(this,Z),Q=q.call(this,B),Q.container=void 0,Q.componentRef=v.createRef(),Q.rafId=void 0,Q.scrollLocker=void 0,Q.renderComponent=void 0,Q.updateScrollLocker=function(_){var Be=_||{},Ke=Be.visible,ct=Q.props,We=ct.getContainer,Ue=ct.visible;Ue&&Ue!==Ke&&z&&F(We)!==Q.scrollLocker.getContainer()&&Q.scrollLocker.reLock({container:F(We)})},Q.updateOpenCount=function(_){var Be=_||{},Ke=Be.visible,ct=Be.getContainer,We=Q.props,Ue=We.visible,$=We.getContainer;Ue!==Ke&&z&&F($)===document.body&&(Ue&&!Ke?R+=1:_&&(R-=1));var ie=typeof $=="function"&&typeof ct=="function";(ie?$.toString()!==ct.toString():$!==ct)&&Q.removeCurrentContainer()},Q.attachToParent=function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(_||Q.container&&!Q.container.parentNode){var Be=F(Q.props.getContainer);return Be?(Be.appendChild(Q.container),!0):!1}return!0},Q.getContainer=function(){return z?(Q.container||(Q.container=document.createElement("div"),Q.attachToParent(!0)),Q.setWrapperClassName(),Q.container):null},Q.setWrapperClassName=function(){var _=Q.props.wrapperClassName;Q.container&&_&&_!==Q.container.className&&(Q.container.className=_)},Q.removeCurrentContainer=function(){var _,Be;(_=Q.container)===null||_===void 0||((Be=_.parentNode)===null||Be===void 0)||Be.removeChild(Q.container)},Q.switchScrollingEffect=function(){R===1&&!Object.keys(D).length?(c(),D=m({overflow:"hidden",overflowX:"hidden",overflowY:"hidden"})):R||(m(D),D={},c(!0))},Q.scrollLocker=new P({container:F(B.getContainer)}),Q}return Object(n.a)(Z,[{key:"componentDidMount",value:function(){var Q=this;this.updateOpenCount(),this.attachToParent()||(this.rafId=Object(f.a)(function(){Q.forceUpdate()}))}},{key:"componentDidUpdate",value:function(Q){this.updateOpenCount(Q),this.updateScrollLocker(Q),this.setWrapperClassName(),this.attachToParent()}},{key:"componentWillUnmount",value:function(){var Q=this.props,_=Q.visible,Be=Q.getContainer;z&&F(Be)===document.body&&(R=_&&R?R-1:R),this.removeCurrentContainer(),f.a.cancel(this.rafId)}},{key:"render",value:function(){var Q=this.props,_=Q.children,Be=Q.forceRender,Ke=Q.visible,ct=null,We={getOpenCount:function(){return R},getContainer:this.getContainer,switchScrollingEffect:this.switchScrollingEffect,scrollLocker:this.scrollLocker};return(Be||Ke||this.componentRef.current)&&(ct=v.createElement(l.a,{getContainer:this.getContainer,ref:this.componentRef},_(We))),ct}}]),Z}(v.Component),le=g.a=Oe},"1WJl":function(x,g,e){"use strict";x.exports=function a(n,r){if(n===r)return!0;if(n&&r&&typeof n=="object"&&typeof r=="object"){if(n.constructor!==r.constructor)return!1;var t,i,v;if(Array.isArray(n)){if(t=n.length,t!=r.length)return!1;for(i=t;i--!==0;)if(!a(n[i],r[i]))return!1;return!0}if(n.constructor===RegExp)return n.source===r.source&&n.flags===r.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===r.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===r.toString();if(v=Object.keys(n),t=v.length,t!==Object.keys(r).length)return!1;for(i=t;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,v[i]))return!1;for(i=t;i--!==0;){var f=v[i];if(!a(n[f],r[f]))return!1}return!0}return n!==n&&r!==r}},"1aI8":function(x,g,e){var a=e("ZkJ9"),n=e("ukPv"),r=e("tSXo"),t=e("lz10"),i=e("jtLI"),v=e("CjUg"),f=e("6ixQ"),l=n.WeakMap,s,p,u,m=function(C){return u(C)?p(C):s(C,{})},o=function(C){return function(S){var M;if(!r(S)||(M=p(S)).type!==C)throw TypeError("Incompatible receiver, "+C+" required");return M}};if(a){var h=new l,c=h.get,b=h.has,j=h.set;s=function(C,S){return j.call(h,C,S),S},p=function(C){return c.call(h,C)||{}},u=function(C){return b.call(h,C)}}else{var O=v("state");f[O]=!0,s=function(C,S){return t(C,O,S),S},p=function(C){return i(C,O)?C[O]:{}},u=function(C){return i(C,O)}}x.exports={set:s,get:p,has:u,enforce:m,getterFor:o}},"1cmj":function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("9og8"),i=e("ErOA");function v(m){return f.apply(this,arguments)}function f(){return f=Object(t.a)(r.a.mark(function m(o){return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",Object(i.a)("/api/shixuns/new.json",{method:"Get",params:o}));case 1:case"end":return c.stop()}},m)})),f.apply(this,arguments)}function l(m){return s.apply(this,arguments)}function s(){return s=Object(t.a)(r.a.mark(function m(o){return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",Object(i.a)("/api/shixuns/".concat(o.id,"/required_status.json"),{method:"Get",params:{}}));case 1:case"end":return c.stop()}},m)})),s.apply(this,arguments)}var p={namespace:"practiceSetting",state:{data:{},is_published:!0,updateIndex:1,id:"",questionName:"",base_info_warning:!1,challenges_warning:!1,repository_warning:!1,mirror_warning:!1,service_warning:!1,selectQuestionParams:{},newQuestion:null,user_name:"",user_image_url:"",title:"",windows_vnc:!0,isExistComplete:!1,sideBar:{tabsActive:"",selectPath:"",confirmLeave:!1}},effects:{setParams:r.a.mark(function m(o,h){var c,b,j;return r.a.wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return c=o.payload,b=h.call,j=h.put,C.next=4,j({type:"save",payload:Object(a.a)({},c)});case 4:case"end":return C.stop()}},m)}),getTestData:r.a.mark(function m(o,h){var c,b,j,O;return r.a.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return c=o.payload,b=h.call,j=h.put,S.next=4,b(v,c);case 4:return O=S.sent,S.next=7,j({type:"save",payload:{data:O}});case 7:case"end":return S.stop()}},m)}),setUpdateIndex:r.a.mark(function m(o,h){var c,b,j;return r.a.wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return c=o.payload,b=h.call,j=h.put,C.next=4,j({type:"save",payload:{updateIndex:Math.random()}});case 4:case"end":return C.stop()}},m)}),getCommonData:r.a.mark(function m(o,h){var c,b,j,O;return r.a.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return c=o.payload,b=h.call,j=h.put,S.next=4,b(l,c);case 4:return O=S.sent,S.next=7,j({type:"save",payload:Object(a.a)({},O.data)});case 7:case"end":return S.stop()}},m)}),setSideBarTabs:r.a.mark(function m(o,h){var c,b,j;return r.a.wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return c=o.payload,b=h.call,j=h.put,C.next=4,j({type:"sideBar",payload:Object(a.a)({},c)});case 4:case"end":return C.stop()}},m)})},reducers:{save:function(o,h){return Object(a.a)(Object(a.a)({},o),h.payload)},sideBar:function(o,h){return Object(a.a)(Object(a.a)({},o),{},{sideBar:Object(a.a)(Object(a.a)({},o.sideBar),h.payload)})}},subscriptions:{setup:function(o){var h=o.dispatch,c=o.history}}},u=g.a=p},"1jPx":function(x,g,e){"use strict";var a=e("8OQV"),n=e("FVwB").exportTypedArrayStaticMethod,r=e("Sn4z");n("from",r,a)},"1nhP":function(x,g,e){var a=e("m0kY");x.exports=function(n){var r=a(n);if(r<0)throw RangeError("The argument can't be less than 0");return r}},"1qEB":function(x,g,e){"use strict";var a=e("k1fw"),n={namespace:"innovation",state:{visibleModalName:"",hideRemindModal:!0,openForkModalPosition:"forkButton",simpleModalProps:{visible:!1}},reducers:{save:function(t,i){return Object(a.a)(Object(a.a)({},t),i.payload)},openModal:function(t,i){return Object(a.a)(Object(a.a)({},t),{},{visibleModalName:i.payload})},closeModal:function(t){return Object(a.a)(Object(a.a)({},t),{},{visibleModalName:""})},openSimpleModal:function(t,i){return Object(a.a)(Object(a.a)({},t),{},{simpleModalProps:Object(a.a)({visible:!0},i.payload)})},closeSimpleModal:function(t){return Object(a.a)(Object(a.a)({},t),{},{simpleModalProps:{visible:!1}})}}};g.a=n},"1vsH":function(x,g,e){"use strict";e.d(g,"m",function(){return Oe}),e.d(g,"h",function(){return le}),e.d(g,"j",function(){return se}),e.d(g,"z",function(){return Z}),e.d(g,"f",function(){return B}),e.d(g,"e",function(){return Q}),e.d(g,"l",function(){return _}),e.d(g,"c",function(){return Be}),e.d(g,"i",function(){return Ke}),e.d(g,"k",function(){return ct}),e.d(g,"y",function(){return We}),e.d(g,"a",function(){return $}),e.d(g,"X",function(){return I}),e.d(g,"Z",function(){return pe}),e.d(g,"H",function(){return me}),e.d(g,"E",function(){return tt}),e.d(g,"B",function(){return Ce}),e.d(g,"V",function(){return Ge}),e.d(g,"D",function(){return Je}),e.d(g,"S",function(){return gt}),e.d(g,"v",function(){return be}),e.d(g,"w",function(){return ue}),e.d(g,"u",function(){return K}),e.d(g,"t",function(){return k}),e.d(g,"U",function(){return N}),e.d(g,"K",function(){return W}),e.d(g,"O",function(){return ce}),e.d(g,"d",function(){return Y}),e.d(g,"b",function(){return L}),e.d(g,"R",function(){return ke}),e.d(g,"A",function(){return Ne}),e.d(g,"L",function(){return rt}),e.d(g,"G",function(){return bt}),e.d(g,"q",function(){return lt}),e.d(g,"I",function(){return Ct}),e.d(g,"W",function(){return Ot}),e.d(g,"P",function(){return Yt}),e.d(g,"x",function(){return Cn}),e.d(g,"Y",function(){return rn}),e.d(g,"N",function(){return cn}),e.d(g,"C",function(){return fn}),e.d(g,"o",function(){return xn}),e.d(g,"s",function(){return En}),e.d(g,"F",function(){return Tt}),e.d(g,"n",function(){return jt}),e.d(g,"T",function(){return Mt}),e.d(g,"p",function(){return Ft}),e.d(g,"M",function(){return De}),e.d(g,"g",function(){return _e}),e.d(g,"r",function(){return ne}),e.d(g,"J",function(){return J}),e.d(g,"Q",function(){return Pe});var a=e("oBTY"),n=e("miYZ"),r=e("tsqr"),t=e("sRBo"),i=e("kaz8"),v=e("14J3"),f=e("BMrR"),l=e("jCWc"),s=e("kPKH"),p=e("2qtc"),u=e("kLXV"),m=e("9og8"),o=e("k1fw"),h=e("jrin"),c=e("WmNS"),b=e.n(c),j=e("q1tI"),O=e.n(j),C=e("xKgJ"),S=e("s8TD"),M=e("V0Rq"),P=e("bntm"),R={load:"text/html","123":"application/vndlotus-1-2-3","3ds":"image/x-3ds","3g2":"video/3gpp","3ga":"video/3gpp","3gp":"video/3gpp","3gpp":"video/3gpp","602":"application/x-t602","669":"audio/x-mod","7z":"application/x-7z-compressed",a:"application/x-archive",aac:"audio/mp4",abw:"application/x-abiword",abwcrashed:"application/x-abiword",abwgz:"application/x-abiword",ac3:"audio/ac3",ace:"application/x-ace",adb:"text/x-adasrc",ads:"text/x-adasrc",afm:"application/x-font-afm",ag:"image/x-applix-graphics",ai:"application/illustrator",aif:"audio/x-aiff",aifc:"audio/x-aiff",aiff:"audio/x-aiff",al:"application/x-perl",alz:"application/x-alz",amr:"audio/amr",ani:"application/x-navi-animation","anim[1-9j]":"video/x-anim",anx:"application/annodex",ape:"audio/x-ape",arj:"application/x-arj",arw:"image/x-sony-arw",as:"application/x-applix-spreadsheet",asc:"text/plain",asf:"video/x-ms-asf",asp:"application/x-asp",ass:"text/x-ssa",asx:"audio/x-ms-asx",atom:"application/atom+xml",au:"audio/basic",avi:"video/x-msvideo",aw:"application/x-applix-word",awb:"audio/amr-wb",awk:"application/x-awk",axa:"audio/annodex",axv:"video/annodex",bak:"application/x-trash",bcpio:"application/x-bcpio",bdf:"application/x-font-bdf",bib:"text/x-bibtex",bin:"application/octet-stream",blend:"application/x-blender",blender:"application/x-blender",bmp:"image/bmp",bz:"application/x-bzip",bz2:"application/x-bzip",c:"text/x-csrc","c++":"text/x-c++src",cab:"application/vndms-cab-compressed",cb7:"application/x-cb7",cbr:"application/x-cbr",cbt:"application/x-cbt",cbz:"application/x-cbz",cc:"text/x-c++src",cdf:"application/x-netcdf",cdr:"application/vndcorel-draw",cer:"application/x-x509-ca-cert",cert:"application/x-x509-ca-cert",cgm:"image/cgm",chm:"application/x-chm",chrt:"application/x-kchart",class:"application/x-java",cls:"text/x-tex",cmake:"text/x-cmake",cpio:"application/x-cpio",cpiogz:"application/x-cpio-compressed",cpp:"text/x-c++src",cr2:"image/x-canon-cr2",crt:"application/x-x509-ca-cert",crw:"image/x-canon-crw",cs:"text/x-csharp",csh:"application/x-csh",css:"text/css",cssl:"text/css",csv:"text/csv",cue:"application/x-cue",cur:"image/x-win-bitmap",cxx:"text/x-c++src",d:"text/x-dsrc",dar:"application/x-dar",dbf:"application/x-dbf",dc:"application/x-dc-rom",dcl:"text/x-dcl",dcm:"application/dicom",dcr:"image/x-kodak-dcr",dds:"image/x-dds",deb:"application/x-deb",der:"application/x-x509-ca-cert",desktop:"application/x-desktop",dia:"application/x-dia-diagram",diff:"text/x-patch",divx:"video/x-msvideo",djv:"image/vnddjvu",djvu:"image/vnddjvu",dng:"image/x-adobe-dng",doc:"application/msword",docbook:"application/docbook+xml",docm:"application/vndopenxmlformats-officedocumentwordprocessingmldocument",docx:"application/vndopenxmlformats-officedocumentwordprocessingmldocument",dot:"text/vndgraphviz",dsl:"text/x-dsl",dtd:"application/xml-dtd",dtx:"text/x-tex",dv:"video/dv",dvi:"application/x-dvi",dvibz2:"application/x-bzdvi",dvigz:"application/x-gzdvi",dwg:"image/vnddwg",dxf:"image/vnddxf",e:"text/x-eiffel",egon:"application/x-egon",eif:"text/x-eiffel",el:"text/x-emacs-lisp",emf:"image/x-emf",emp:"application/vndemusic-emusic_package",ent:"application/xml-external-parsed-entity",eps:"image/x-eps",epsbz2:"image/x-bzeps",epsgz:"image/x-gzeps",epsf:"image/x-eps",epsfbz2:"image/x-bzeps",epsfgz:"image/x-gzeps",epsi:"image/x-eps",epsibz2:"image/x-bzeps",epsigz:"image/x-gzeps",epub:"application/epub+zip",erl:"text/x-erlang",es:"application/ecmascript",etheme:"application/x-e-theme",etx:"text/x-setext",exe:"application/x-ms-dos-executable",exr:"image/x-exr",ez:"application/andrew-inset",f:"text/x-fortran",f90:"text/x-fortran",f95:"text/x-fortran",fb2:"application/x-fictionbook+xml",fig:"image/x-xfig",fits:"image/fits",fl:"application/x-fluid",flac:"audio/x-flac",flc:"video/x-flic",fli:"video/x-flic",flv:"video/x-flv",flw:"application/x-kivio",fo:"text/x-xslfo",for:"text/x-fortran",g3:"image/fax-g3",gb:"application/x-gameboy-rom",gba:"application/x-gba-rom",gcrd:"text/directory",ged:"application/x-gedcom",gedcom:"application/x-gedcom",gen:"application/x-genesis-rom",gf:"application/x-tex-gf",gg:"application/x-sms-rom",gif:"image/gif",glade:"application/x-glade",gmo:"application/x-gettext-translation",gnc:"application/x-gnucash",gnd:"application/gnunet-directory",gnucash:"application/x-gnucash",gnumeric:"application/x-gnumeric",gnuplot:"application/x-gnuplot",gp:"application/x-gnuplot",gpg:"application/pgp-encrypted",gplt:"application/x-gnuplot",gra:"application/x-graphite",gsf:"application/x-font-type1",gsm:"audio/x-gsm",gtar:"application/x-tar",gv:"text/vndgraphviz",gvp:"text/x-google-video-pointer",gz:"application/x-gzip",h:"text/x-chdr","h++":"text/x-c++hdr",hdf:"application/x-hdf",hh:"text/x-c++hdr",hp:"text/x-c++hdr",hpgl:"application/vndhp-hpgl",hpp:"text/x-c++hdr",hs:"text/x-haskell",htm:"text/html",html:"text/html",hwp:"application/x-hwp",hwt:"application/x-hwt",hxx:"text/x-c++hdr",ica:"application/x-ica",icb:"image/x-tga",icns:"image/x-icns",ico:"image/vndmicrosofticon",ics:"text/calendar",idl:"text/x-idl",ief:"image/ief",iff:"image/x-iff",ilbm:"image/x-ilbm",ime:"text/x-imelody",imy:"text/x-imelody",ins:"text/x-tex",iptables:"text/x-iptables",iso:"application/x-cd-image",iso9660:"application/x-cd-image",it:"audio/x-it",j2k:"image/jp2",jad:"text/vndsunj2meapp-descriptor",jar:"application/x-java-archive",java:"text/x-java",jng:"image/x-jng",jnlp:"application/x-java-jnlp-file",jp2:"image/jp2",jpc:"image/jp2",jpe:"image/jpeg",jpeg:"image/jpeg",jpf:"image/jp2",jpg:"image/jpeg",jpr:"application/x-jbuilder-project",jpx:"image/jp2",js:"application/javascript",json:"application/json",jsonp:"application/jsonp",k25:"image/x-kodak-k25",kar:"audio/midi",karbon:"application/x-karbon",kdc:"image/x-kodak-kdc",kdelnk:"application/x-desktop",kexi:"application/x-kexiproject-sqlite3",kexic:"application/x-kexi-connectiondata",kexis:"application/x-kexiproject-shortcut",kfo:"application/x-kformula",kil:"application/x-killustrator",kino:"application/smil",kml:"application/vndgoogle-earthkml+xml",kmz:"application/vndgoogle-earthkmz",kon:"application/x-kontour",kpm:"application/x-kpovmodeler",kpr:"application/x-kpresenter",kpt:"application/x-kpresenter",kra:"application/x-krita",ksp:"application/x-kspread",kud:"application/x-kugar",kwd:"application/x-kword",kwt:"application/x-kword",la:"application/x-shared-library-la",latex:"text/x-tex",ldif:"text/x-ldif",lha:"application/x-lha",lhs:"text/x-literate-haskell",lhz:"application/x-lhz",log:"text/x-log",ltx:"text/x-tex",lua:"text/x-lua",lwo:"image/x-lwo",lwob:"image/x-lwo",lws:"image/x-lws",ly:"text/x-lilypond",lyx:"application/x-lyx",lz:"application/x-lzip",lzh:"application/x-lha",lzma:"application/x-lzma",lzo:"application/x-lzop",m:"text/x-matlab",m15:"audio/x-mod",m2t:"video/mpeg",m3u:"audio/x-mpegurl",m3u8:"audio/x-mpegurl",m4:"application/x-m4",m4a:"audio/mp4",m4b:"audio/x-m4b",m4v:"video/mp4",mab:"application/x-markaby",man:"application/x-troff-man",mbox:"application/mbox",md:"application/x-genesis-rom",mdb:"application/vndms-access",mdi:"image/vndms-modi",me:"text/x-troff-me",med:"audio/x-mod",metalink:"application/metalink+xml",mgp:"application/x-magicpoint",mid:"audio/midi",midi:"audio/midi",mif:"application/x-mif",minipsf:"audio/x-minipsf",mka:"audio/x-matroska",mkv:"video/x-matroska",ml:"text/x-ocaml",mli:"text/x-ocaml",mm:"text/x-troff-mm",mmf:"application/x-smaf",mml:"text/mathml",mng:"video/x-mng",mo:"application/x-gettext-translation",mo3:"audio/x-mo3",moc:"text/x-moc",mod:"audio/x-mod",mof:"text/x-mof",moov:"video/quicktime",mov:"video/quicktime",movie:"video/x-sgi-movie","mp+":"audio/x-musepack",mp2:"video/mpeg",mp3:"audio/mpeg",mp4:"video/mp4",mpc:"audio/x-musepack",mpe:"video/mpeg",mpeg:"video/mpeg",mpg:"video/mpeg",mpga:"audio/mpeg",mpp:"audio/x-musepack",mrl:"text/x-mrml",mrml:"text/x-mrml",mrw:"image/x-minolta-mrw",ms:"text/x-troff-ms",msi:"application/x-msi",msod:"image/x-msod",msx:"application/x-msx-rom",mtm:"audio/x-mod",mup:"text/x-mup",mxf:"application/mxf",n64:"application/x-n64-rom",nb:"application/mathematica",nc:"application/x-netcdf",nds:"application/x-nintendo-ds-rom",nef:"image/x-nikon-nef",nes:"application/x-nes-rom",nfo:"text/x-nfo",not:"text/x-mup",nsc:"application/x-netshow-channel",nsv:"video/x-nsv",o:"application/x-object",obj:"application/x-tgif",ocl:"text/x-ocl",oda:"application/oda",odb:"application/vndoasisopendocumentdatabase",odc:"application/vndoasisopendocumentchart",odf:"application/vndoasisopendocumentformula",odg:"application/vndoasisopendocumentgraphics",odi:"application/vndoasisopendocumentimage",odm:"application/vndoasisopendocumenttext-master",odp:"application/vndoasisopendocumentpresentation",ods:"application/vndoasisopendocumentspreadsheet",odt:"application/vndoasisopendocumenttext",oga:"audio/ogg",ogg:"video/x-theora+ogg",ogm:"video/x-ogm+ogg",ogv:"video/ogg",ogx:"application/ogg",old:"application/x-trash",oleo:"application/x-oleo",opml:"text/x-opml+xml",ora:"image/openraster",orf:"image/x-olympus-orf",otc:"application/vndoasisopendocumentchart-template",otf:"application/x-font-otf",otg:"application/vndoasisopendocumentgraphics-template",oth:"application/vndoasisopendocumenttext-web",otp:"application/vndoasisopendocumentpresentation-template",ots:"application/vndoasisopendocumentspreadsheet-template",ott:"application/vndoasisopendocumenttext-template",owl:"application/rdf+xml",oxt:"application/vndopenofficeorgextension",p:"text/x-pascal",p10:"application/pkcs10",p12:"application/x-pkcs12",p7b:"application/x-pkcs7-certificates",p7s:"application/pkcs7-signature",pack:"application/x-java-pack200",pak:"application/x-pak",par2:"application/x-par2",pas:"text/x-pascal",patch:"text/x-patch",pbm:"image/x-portable-bitmap",pcd:"image/x-photo-cd",pcf:"application/x-cisco-vpn-settings",pcfgz:"application/x-font-pcf",pcfz:"application/x-font-pcf",pcl:"application/vndhp-pcl",pcx:"image/x-pcx",pdb:"chemical/x-pdb",pdc:"application/x-aportisdoc",pdf:"application/pdf",pdfbz2:"application/x-bzpdf",pdfgz:"application/x-gzpdf",pef:"image/x-pentax-pef",pem:"application/x-x509-ca-cert",perl:"application/x-perl",pfa:"application/x-font-type1",pfb:"application/x-font-type1",pfx:"application/x-pkcs12",pgm:"image/x-portable-graymap",pgn:"application/x-chess-pgn",pgp:"application/pgp-encrypted",php:"application/x-php",php3:"application/x-php",php4:"application/x-php",pict:"image/x-pict",pict1:"image/x-pict",pict2:"image/x-pict",pickle:"application/python-pickle",pk:"application/x-tex-pk",pkipath:"application/pkix-pkipath",pkr:"application/pgp-keys",pl:"application/x-perl",pla:"audio/x-iriver-pla",pln:"application/x-planperfect",pls:"audio/x-scpls",pm:"application/x-perl",png:"image/png",pnm:"image/x-portable-anymap",pntg:"image/x-macpaint",po:"text/x-gettext-translation",por:"application/x-spss-por",pot:"text/x-gettext-translation-template",ppm:"image/x-portable-pixmap",pps:"application/vndms-powerpoint",ppt:"application/vndms-powerpoint",pptm:"application/vndopenxmlformats-officedocumentpresentationmlpresentation",pptx:"application/vndopenxmlformats-officedocumentpresentationmlpresentation",ppz:"application/vndms-powerpoint",prc:"application/x-palm-database",ps:"application/postscript",psbz2:"application/x-bzpostscript",psgz:"application/x-gzpostscript",psd:"image/vndadobephotoshop",psf:"audio/x-psf",psfgz:"application/x-gz-font-linux-psf",psflib:"audio/x-psflib",psid:"audio/prssid",psw:"application/x-pocket-word",pw:"application/x-pw",py:"text/x-python",pyc:"application/x-python-bytecode",pyo:"application/x-python-bytecode",qif:"image/x-quicktime",qt:"video/quicktime",qtif:"image/x-quicktime",qtl:"application/x-quicktime-media-link",qtvr:"video/quicktime",ra:"audio/vndrn-realaudio",raf:"image/x-fuji-raf",ram:"application/ram",rar:"application/x-rar",ras:"image/x-cmu-raster",raw:"image/x-panasonic-raw",rax:"audio/vndrn-realaudio",rb:"application/x-ruby",rdf:"application/rdf+xml",rdfs:"application/rdf+xml",reg:"text/x-ms-regedit",rej:"application/x-reject",rgb:"image/x-rgb",rle:"image/rle",rm:"application/vndrn-realmedia",rmj:"application/vndrn-realmedia",rmm:"application/vndrn-realmedia",rms:"application/vndrn-realmedia",rmvb:"application/vndrn-realmedia",rmx:"application/vndrn-realmedia",roff:"text/troff",rp:"image/vndrn-realpix",rpm:"application/x-rpm",rss:"application/rss+xml",rt:"text/vndrn-realtext",rtf:"application/rtf",rtx:"text/richtext",rv:"video/vndrn-realvideo",rvx:"video/vndrn-realvideo",s3m:"audio/x-s3m",sam:"application/x-amipro",sami:"application/x-sami",sav:"application/x-spss-sav",scm:"text/x-scheme",sda:"application/vndstardivisiondraw",sdc:"application/vndstardivisioncalc",sdd:"application/vndstardivisionimpress",sdp:"application/sdp",sds:"application/vndstardivisionchart",sdw:"application/vndstardivisionwriter",sgf:"application/x-go-sgf",sgi:"image/x-sgi",sgl:"application/vndstardivisionwriter",sgm:"text/sgml",sgml:"text/sgml",sh:"application/x-shellscript",shar:"application/x-shar",shn:"application/x-shorten",siag:"application/x-siag",sid:"audio/prssid",sik:"application/x-trash",sis:"application/vndsymbianinstall",sisx:"x-epoc/x-sisx-app",sit:"application/x-stuffit",siv:"application/sieve",sk:"image/x-skencil",sk1:"image/x-skencil",skr:"application/pgp-keys",slk:"text/spreadsheet",smaf:"application/x-smaf",smc:"application/x-snes-rom",smd:"application/vndstardivisionmail",smf:"application/vndstardivisionmath",smi:"application/x-sami",smil:"application/smil",sml:"application/smil",sms:"application/x-sms-rom",snd:"audio/basic",so:"application/x-sharedlib",spc:"application/x-pkcs7-certificates",spd:"application/x-font-speedo",spec:"text/x-rpm-spec",spl:"application/x-shockwave-flash",spx:"audio/x-speex",sql:"text/x-sql",sr2:"image/x-sony-sr2",src:"application/x-wais-source",srf:"image/x-sony-srf",srt:"application/x-subrip",ssa:"text/x-ssa",stc:"application/vndsunxmlcalctemplate",std:"application/vndsunxmldrawtemplate",sti:"application/vndsunxmlimpresstemplate",stm:"audio/x-stm",stw:"application/vndsunxmlwritertemplate",sty:"text/x-tex",sub:"text/x-subviewer",sun:"image/x-sun-raster",sv4cpio:"application/x-sv4cpio",sv4crc:"application/x-sv4crc",svg:"image/svg+xml",svgz:"image/svg+xml-compressed",swf:"application/x-shockwave-flash",sxc:"application/vndsunxmlcalc",sxd:"application/vndsunxmldraw",sxg:"application/vndsunxmlwriterglobal",sxi:"application/vndsunxmlimpress",sxm:"application/vndsunxmlmath",sxw:"application/vndsunxmlwriter",sylk:"text/spreadsheet",t:"text/troff",t2t:"text/x-txt2tags",tar:"application/x-tar",tarbz:"application/x-bzip-compressed-tar",tarbz2:"application/x-bzip-compressed-tar",targz:"application/x-compressed-tar",tarlzma:"application/x-lzma-compressed-tar",tarlzo:"application/x-tzo",tarxz:"application/x-xz-compressed-tar",tarz:"application/x-tarz",tbz:"application/x-bzip-compressed-tar",tbz2:"application/x-bzip-compressed-tar",tcl:"text/x-tcl",tex:"text/x-tex",texi:"text/x-texinfo",texinfo:"text/x-texinfo",tga:"image/x-tga",tgz:"application/x-compressed-tar",theme:"application/x-theme",themepack:"application/x-windows-themepack",tif:"image/tiff",tiff:"image/tiff",tk:"text/x-tcl",tlz:"application/x-lzma-compressed-tar",tnef:"application/vndms-tnef",tnf:"application/vndms-tnef",toc:"application/x-cdrdao-toc",torrent:"application/x-bittorrent",tpic:"image/x-tga",tr:"text/troff",ts:"application/x-linguist",tsv:"text/tab-separated-values",tta:"audio/x-tta",ttc:"application/x-font-ttf",ttf:"application/x-font-ttf",ttx:"application/x-font-ttx",txt:"text/plain",txz:"application/x-xz-compressed-tar",tzo:"application/x-tzo",ufraw:"application/x-ufraw",ui:"application/x-designer",uil:"text/x-uil",ult:"audio/x-mod",uni:"audio/x-mod",uri:"text/x-uri",url:"text/x-uri",ustar:"application/x-ustar",vala:"text/x-vala",vapi:"text/x-vala",vcf:"text/directory",vcs:"text/calendar",vct:"text/directory",vda:"image/x-tga",vhd:"text/x-vhdl",vhdl:"text/x-vhdl",viv:"video/vivo",vivo:"video/vivo",vlc:"audio/x-mpegurl",vob:"video/mpeg",voc:"audio/x-voc",vor:"application/vndstardivisionwriter",vst:"image/x-tga",wav:"audio/x-wav",wax:"audio/x-ms-asx",wb1:"application/x-quattropro",wb2:"application/x-quattropro",wb3:"application/x-quattropro",wbmp:"image/vndwapwbmp",wcm:"application/vndms-works",wdb:"application/vndms-works",webm:"video/webm",wk1:"application/vndlotus-1-2-3",wk3:"application/vndlotus-1-2-3",wk4:"application/vndlotus-1-2-3",wks:"application/vndms-works",wma:"audio/x-ms-wma",wmf:"image/x-wmf",wml:"text/vndwapwml",wmls:"text/vndwapwmlscript",wmv:"video/x-ms-wmv",wmx:"audio/x-ms-asx",wp:"application/vndwordperfect",wp4:"application/vndwordperfect",wp5:"application/vndwordperfect",wp6:"application/vndwordperfect",wpd:"application/vndwordperfect",wpg:"application/x-wpg",wpl:"application/vndms-wpl",wpp:"application/vndwordperfect",wps:"application/vndms-works",wri:"application/x-mswrite",wrl:"model/vrml",wv:"audio/x-wavpack",wvc:"audio/x-wavpack-correction",wvp:"audio/x-wavpack",wvx:"audio/x-ms-asx",x3f:"image/x-sigma-x3f",xac:"application/x-gnucash",xbel:"application/x-xbel",xbl:"application/xml",xbm:"image/x-xbitmap",xcf:"image/x-xcf",xcfbz2:"image/x-compressed-xcf",xcfgz:"image/x-compressed-xcf",xhtml:"application/xhtml+xml",xi:"audio/x-xi",xla:"application/vndms-excel",xlc:"application/vndms-excel",xld:"application/vndms-excel",xlf:"application/x-xliff",xliff:"application/x-xliff",xll:"application/vndms-excel",xlm:"application/vndms-excel",xls:"application/vndms-excel",xlsm:"application/vndopenxmlformats-officedocumentspreadsheetmlsheet",xlsx:"application/vndopenxmlformats-officedocumentspreadsheetmlsheet",xlt:"application/vndms-excel",xlw:"application/vndms-excel",xm:"audio/x-xm",xmf:"audio/x-xmf",xmi:"text/x-xmi",xml:"application/xml",xpm:"image/x-xpixmap",xps:"application/vndms-xpsdocument",xsl:"application/xml",xslfo:"text/x-xslfo",xslt:"application/xml",xspf:"application/xspf+xml",xul:"application/vndmozillaxul+xml",xwd:"image/x-xwindowdump",xyz:"chemical/x-pdb",xz:"application/x-xz",w2p:"application/w2p",z:"application/x-compress",zabw:"application/x-abiword",zip:"application/zip"},z=e("aCH8"),G=e.n(z),D=e("m3rI"),F=e("dhSg"),Oe=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],le=["\u6B63\u786E","\u9519\u8BEF"],se=["I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII","XIII","XIV","XV","XVI","XVII","XVIII","XIX","XX"],q=function(X){var re={\u5DF2\u622A\u6B62:{class:"tag-style bg-pink ml10"},\u63D0\u4EA4\u4E2D:{class:"tag-style bg-blue ml10"},\u8FDB\u884C\u4E2D:{class:"tag-style bg-blue ml10"},\u672A\u53D1\u5E03:{class:"tag-style bgB8B8B8 ml10"},\u8865\u4EA4\u4E2D:{class:"tag-style bg-blue ml10"}};return X.data&&X.data.map(function(dt,Rt){return O.a.createElement("span",{key:Rt,className:re[dt]&&re[dt].class},dt)})},Z=function(X){var re,dt=(re={},Object(h.a)(re,-1,"\u91CD\u505A\u4E2D"),Object(h.a)(re,0,"\u672A\u5F00\u542F"),Object(h.a)(re,1,"\u672A\u901A\u5173"),Object(h.a)(re,2,"\u6309\u65F6\u901A\u5173"),re);return dt[X]||"\u8FDF\u4EA4\u901A\u5173"},B=function(X){var re,dt,Rt,ut=(re={},Object(h.a)(re,-1,{name:"\u91CD\u505A\u4E2D",class:"c-orange"}),Object(h.a)(re,0,{name:"\u672A\u5F00\u542F",class:"c-black"}),Object(h.a)(re,1,{name:"\u672A\u901A\u5173",class:"c-red"}),Object(h.a)(re,2,{name:"\u6309\u65F6\u901A\u5173",class:"c-green"}),Object(h.a)(re,3,{name:"\u8FDF\u4EA4\u901A\u5173",class:"c-orange"}),re);return O.a.createElement("span",{className:ut==null||((dt=ut[X.status])===null||dt===void 0)?void 0:dt.class},ut==null||((Rt=ut[X.status])===null||Rt===void 0)?void 0:Rt.name)},Q=function(X){var re,dt,Rt,ut=(re={},Object(h.a)(re,-1,{name:"\u91CD\u505A\u4E2D",class:"c-orange",color:"#999999"}),Object(h.a)(re,0,{name:"\u672A\u5F00\u542F",class:"c-black",color:"#999999"}),Object(h.a)(re,1,{name:"\u672A\u901A\u5173",class:"c-red",color:"#d4443d"}),Object(h.a)(re,2,{name:"\u6309\u65F6\u901A\u5173",class:"c-green",color:"#57be40"}),Object(h.a)(re,3,{name:"\u8FDF\u4EA4\u901A\u5173",class:"c-orange",color:"#f09143"}),re);return O.a.createElement("span",{style:{marginLeft:"10px",color:"#fff",background:ut==null||((dt=ut[X.status])===null||dt===void 0)?void 0:dt.color,borderRadius:"20px",width:"65px",height:"18px",justifyContent:"center",display:"inline-flex",lineHeight:"18px"}},ut==null||((Rt=ut[X.status])===null||Rt===void 0)?void 0:Rt.name)},_=function(X){var re=X.status,dt={0:{class:"tag-style bg-blue ml10",name:"\u5F85\u9009\u4E2D"},1:{class:"tag-style bg-blue ml10",name:"\u5F85\u786E\u8BA4"},2:{class:"tag-style bg-pink ml10",name:"\u5DF2\u786E\u8BA4"}};try{return O.a.createElement("span",{className:dt[re].class},dt[re].name)}catch(Rt){console.log("utils.StatusGraduationProjectTags",X.status)}},Be={1:"\u672A\u53D1\u5E03",2:"\u8003\u8BD5\u4E2D",3:"\u5DF2\u622A\u6B62",4:"\u5DF2\u7ED3\u675F",99:"\u6A21\u62DF\u8003\u8BD5\u4E2D"},Ke={1:"\u672A\u53D1\u5E03",2:"\u63D0\u4EA4\u4E2D",3:"\u5DF2\u622A\u6B62",4:"\u5DF2\u7ED3\u675F"},ct=function(X){var re={\u6A21\u62DF\u8003\u8BD5\u4E2D:{class:"tag-style bg-light-pink ml10"},\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A:{class:"tag-style-fzb ml10 iconfont icon-fangzuobi"},\u516C\u5F00:{class:"tag-style bg-blue ml10"},\u5DF2\u5F00\u542F\u8865\u4EA4:{class:"tag-style bg-green ml10"},\u672A\u5F00\u542F\u8865\u4EA4:{class:"tag-style bg-pink ml10soft"},\u672A\u53D1\u5E03:{class:"tag-style bgB8B8B8 ml10soft"},\u672A\u5F00\u59CB:{class:"tag-style bg-c5d6ff ml10soft"},\u533F\u540D\u4F5C\u54C1:{class:"tag-style bg-cyan ml10"},\u5DF2\u9009\u62E9:{class:"tag-style bg-grey-ede ml10"},\u5DF2\u7ED3\u675F:{class:"tag-style bg-grey-ede ml10soft"},\u63D0\u4EA4\u4E2D:{class:"tag-style bg-blue ml10soft"},\u8FDB\u884C\u4E2D:{class:"tag-style bg-blue ml10soft"},\u533F\u8BC4\u4E2D:{class:"tag-style bg-blue ml10"},\u7533\u8BC9\u4E2D:{class:"tag-style bg-blue ml10"},\u8003\u8BD5\u4E2D:{class:"tag-style bg-light-blue ml10"},\u8865\u4EA4\u4E2D:{class:"tag-style bg-blue ml10soft"},\u8BC4\u9605\u4E2D:{class:"tag-style bg-blue ml10"},\u5F85\u9009\u4E2D:{class:"tag-style bg-blue ml10"},\u4EA4\u53C9\u8BC4\u9605\u4E2D:{class:"tag-style bg-light-orange ml10"},\u5DF2\u5F00\u542F\u4EA4\u53C9\u8BC4\u9605:{class:"tag-style bg-lightblue-purple ml10"},\u5F85\u786E\u8BA4:{class:"tag-style bg-lightblue-purple ml10"},\u5F85\u5904\u7406:{class:"tag-style bg-lightblue-purple ml10"},\u79C1\u6709:{class:"tag-style bg-lightblue-purple ml10"},\u672A\u63D0\u4EA4:{class:"tag-style bg-lightblue-purple ml10"},\u5DF2\u786E\u8BA4:{class:"tag-style bg-light-pink ml10"},\u5DF2\u53D1\u5E03:{class:"tag-style bg-light-blue ml10"},\u5DF2\u622A\u6B62:{class:"tag-style bg-light-pink ml10soft"},\u5F00\u53D1\u8BFE\u7A0B:{class:"tag-style bg-orange ml10"},\u5DF2\u5F00\u64AD:{class:"tag-style-border border-green c-green ml10"},\u672A\u5F00\u64AD:{class:"tag-style-border border-light-black ml10"},\u6309\u65F6\u901A\u5173:{class:"tag-style-border border-light-black ml10"},\u8FDF\u4EA4\u901A\u5173:{class:"tag-style-border border-light-black ml10"},\u672A\u901A\u5173:{class:"tag-style-border border-light-black ml10"},\u672A\u5F00\u542F:{class:"tag-style-border border-light-black ml10"}},dt={\u672A\u53D1\u5E03:{class:"tag-style bg-C6CED6 ml10soft"},\u672A\u5F00\u59CB:{class:"tag-style bg-C1E2FF ml10soft"},\u8FDB\u884C\u4E2D:{class:"tag-style bg-0152d9 ml10soft"},\u5DF2\u622A\u6B62:{class:"tag-style bg-E53333 ml10soft"},\u63D0\u4EA4\u4E2D:{class:"tag-style bg-0152d9 ml10soft"},\u8865\u4EA4\u4E2D:{class:"tag-style bg-44D7B6 ml10soft"}};X.temporary&&(re=Object(o.a)(Object(o.a)({},re),dt));var Rt=[];X.is_random&&Rt.push(O.a.createElement("span",{className:"tag-style bg-blue ml10"},"\u968F\u673A"));try{X.status&&X.status.map(function(ut,zt){Rt.push(O.a.createElement("span",{style:(X==null?void 0:X.style)||[],key:zt,className:re[ut]&&re[ut].class},ut))})}catch(ut){console.log("utils.status.tag:",ut,X.status)}return Rt},We=function(X){if(X===1)return O.a.createElement("span",{style:{backgroundColor:"#B8B8B8"},className:"tag-style ml5"},"\u672A\u5F00\u59CB");if(X===2)return O.a.createElement("span",{style:{backgroundColor:"#007AFF"},className:"tag-style ml5"},"\u8003\u8BD5\u4E2D");if(X===3)return O.a.createElement("span",{style:{backgroundColor:"#FC2D6B"},className:"tag-style ml5"},"\u5DF2\u7ED3\u675F")},Ue=function(X){var re,dt,Rt,ut=(re={},Object(h.a)(re,-1,{name:"\u91CD\u505A\u4E2D",class:"c-orange"}),Object(h.a)(re,0,{name:"\u672A\u63D0\u4EA4",class:"c-black"}),Object(h.a)(re,1,{name:"\u672A\u901A\u5173",class:"c-red"}),Object(h.a)(re,2,{name:"\u6309\u65F6\u901A\u5173",class:"c-green"}),Object(h.a)(re,3,{name:"\u8FDF\u4EA4\u901A\u5173",class:"c-orange"}),re);return O.a.createElement("span",{className:(dt=ut[X.status])===null||dt===void 0?void 0:dt.class},(Rt=ut[X.status])===null||Rt===void 0?void 0:Rt.name)},$=function(X){var re,dt,Rt={0:{name:"\u672A\u63D0\u4EA4",class:"c-black"},1:{name:"\u6309\u65F6\u63D0\u4EA4",class:"c-green"},2:{name:"\u5EF6\u65F6\u63D0\u4EA4",class:"c-red"}};return O.a.createElement("span",{className:(re=Rt[X.status])===null||re===void 0?void 0:re.class},(dt=Rt[X.status])===null||dt===void 0?void 0:dt.name)},ie=function(X){X=new Date(X).getTime();var re=1e3*60,dt=re*60,Rt=dt*24,ut="",zt=new Date().getTime(),ft=zt-X;if(ft<0)return console.log("\u65F6\u95F4\u4E0D\u5BF9\u52B2,\u670D\u52A1\u5668\u521B\u5EFA\u65F6\u95F4\u4E0E\u5F53\u524D\u65F6\u95F4\u4E0D\u540C\u6B65"),ut="\u521A\u521A";var mt=parseInt(ft/Rt,10),kt=parseInt(ft/dt,10),Ye=parseInt(ft/re,10);return mt>30?ut=""+ee(X,"yyyy-MM-dd"):mt>1?ut=""+mt+"\u5929\u524D":mt==1?ut="\u6628\u5929":kt>=1?ut=""+kt+"\u5C0F\u65F6\u524D":Ye>=5?ut=""+Ye+"\u5206\u949F\u524D":ut="\u521A\u521A",ut},ee=function(X,re){typeof X=="string"&&(X.indexOf("T")>=0&&(X=X.replace("T"," ")),X=new Date(Date.parse(X.replace(/-/g,"/")))),X=new Date(X);var dt={"M+":X.getMonth()+1,"d+":X.getDate(),"h+":X.getHours(),"m+":X.getMinutes(),"s+":X.getSeconds(),"q+":Math.floor((X.getMonth()+3)/3),S:X.getMilliseconds()},Rt=[["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"],["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]];/(y+)/.test(re)&&(re=re.replace(RegExp.$1,(X.getFullYear()+"").substr(4-RegExp.$1.length))),/(w+)/.test(re)&&(re=re.replace(RegExp.$1,Rt[RegExp.$1.length-1][X.getDay()]));for(var ut in dt)new RegExp("("+ut+")").test(re)&&(re=re.replace(RegExp.$1,RegExp.$1.length==1?dt[ut]:("00"+dt[ut]).substr((""+dt[ut]).length)));return re},I=function(X){if(!X||X<0)return"0\u79D2";console.log("time:",X);var re=60,dt=re*60,Rt=dt*24,ut=X/Rt,zt=X/dt,ft=X/re,mt=X%60;return ut>=1?parseInt(ut.toString())+"\u5929"+Math.floor(zt%24)+"\u65F6"+Math.floor(ft%60)+"\u5206"+Math.floor(X%60)+"\u79D2":zt>1?parseInt(zt.toString())+"\u65F6"+Math.floor(ft%60)+"\u5206"+Math.floor(X%60)+"\u79D2":ft>=1?parseInt(ft.toString())+"\u5206"+Math.floor(X%60)+"\u79D2":Math.ceil(X)+"\u79D2"},pe=function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100,dt=0;if(X){dt=X.length;for(var Rt=0;Rt=55296&&ut<=56319&&(dt--,Rt++)}}return dt<=re},Qe=function(X,re,dt){if(re){var Rt=/[`~!@#$%^&*()\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘’,。、]/im,ut=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/ig,zt=ut.test(re),ft=Rt.test(re);(zt===!0||ft===!0||(re.length<2||re.length>=21))&&dt("2-20\u4F4D\u4E2D\u82F1\u6587\u3001\u6570\u5B57\u53CA\u4E0B\u5212\u7EBF")}dt()},me=function(X,re,dt){if(re){var Rt=/[`~!@#$%^&()_\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥%……&()——\-+={}|《》?:“”【】、;‘’,。、]/im,ut=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/ig,zt=ut.test(re),ft=Rt.test(re);(zt===!0||ft===!0||(re.length<2||re.length>=11))&&dt("2-10\u4F4D\u4E2D\u82F1\u6587\u3001\u6570\u5B57")}dt()},tt=function(X){if(!X)return"";for(var re=X.length-1,dt="",Rt=0;Rt0){re=!1;break}return re}function Le(){var je=navigator.userAgent,X=["Chrome"];return X.some(function(re){return je.indexOf(re)>-1})}function w(){var je=navigator.userAgent,X=["Chrome","Firefox"];return X.some(function(re){return je.indexOf(re)>-1})}var te=function(){var X,re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return re==null||((X=re.toString())===null||X===void 0)?void 0:X.replace(/\B(?=(\d{3})+(?!\d))/g,",")},ce=function(X){var re=document.createElement("a");re.target="_blank",document.body.appendChild(re),re.href=X;var dt=document.createEvent("MouseEvents");dt.initEvent("click",!1,!1),re.dispatchEvent(dt),document.body.removeChild(re)},Ae=function(X){var re=document.createElement("a");document.body.appendChild(re),re.href=X;var dt=document.createEvent("MouseEvents");dt.initEvent("click",!1,!1),re.dispatchEvent(dt),document.body.removeChild(re)},de=function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return X.length<=6?X:"".concat(X.substring(0,3),"...").concat(X.substring(X.length-3,X.length))},Y=function(){var X=new Date().getHours(),re=new Date().getMinutes();return re>=30?(X++,re="00"):re="30",X+":"+re},L=function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"-",re=new Date().getHours(),dt=new Date().getMinutes();return dt>=30?(re++,dt="00"):dt="30",new Date().toLocaleDateString().replace(/\//g,X)+" "+re+":"+dt},A;(function(je){je.Number="Number",je.String="String",je.Boolean="Boolean",je.Object="Object",je.Array="Array",je.Function="Function"})(A||(A={}));var V=function(X){var re=Object.prototype.toString.call(X);return re.substring(8,re.length-1)},Se=function(X){return V(X)===A.Array?X.length===0:V(X)===A.Object?Object.keys(X).length===0:!X},ke=function(X,re){for(var dt=[],Rt=X;Rt1&&arguments[1]!==void 0?arguments[1]:12,dt=re/2-2,Rt=re/2+3;return X.length>re?X.substr(0,dt)+"..."+X.substr(Rt,re):X},Ne=function(X){return X>4.5?5:X>4&&X<=4.5?4.5:X>3.5&&X<=4?4:X>3&&X<=3.5?3.5:X>2.5&&X<=3?3:X>2&&X<=2.5?2.5:X>1.5&&X<=2?2:X>1&&X<=1.5?1.5:X>.5&&X<=1?1:X>0&&X<=.5?.5:0},rt=function(X){return X==null};function Fe(je,X){var re=new RegExp("(^|&)".concat(je,"=([^&]*)(&|$)"),"i"),dt=X.substr(1).match(re);return dt!=null?decodeURIComponent(dt[2]):null}var bt=function(X){if(X.link_url)return window.open(X.link_url);switch(X.container_type){case"ApplyUserAuthentication":if(X.tiding_type==="Apply"){if(X.auth_type===1)return window.open("/admins/identity_authentications");if(X.auth_type===2)return window.open("/admins/professional_authentications")}return X.tiding_type==="System"?window.open("/account/certification"):void 0;case"CancelUserAuthentication":return window.open("/account/certification");case"CancelUserProCertification":return window.open("/account/certification");case"ApplyAddDepartment":return X.tiding_type==="Apply"?window.open("/admins/department_applies"):X.tiding_type==="System"?window.open("/account/profile"):void 0;case"ApplyAddSchools":return X.tiding_type==="Apply"?window.open("/admins/unit_applies"):X.tiding_type==="System"?window.open("/account/profile"):void 0;case"ApplyAction":switch(X.parent_container_type){case"ApplyShixun":if(X.tiding_type==="Apply")return window.open("/admins/shixun_authorizations");if(X.tiding_type==="System")return window.open("/shixuns/".concat(X.identifier,"/challenges"));case"ApplySubject":if(X.tiding_type==="Apply")return window.open("/admins/subject_authorizations");if(X.tiding_type==="System")return window.open("/paths/".concat(X.parent_container_id));case"TrialAuthorization":if(X.tiding_type==="Apply")return window.open("/managements/trial_authorization");if(X.tiding_type==="System")return window.open("/account/profile")}return;case"JoinCourse":return window.open("/classrooms/".concat(X.belong_container_id,"/teachers"));case"StudentJoinCourse":if(X.tiding_type==="Apply")return window.open("/classrooms/".concat(X.belong_container_id,"/teachers"));if(X.tiding_type==="System")return window.open("/classrooms/".concat(X.belong_container_id,"/students"));case"DealCourse":return window.open("/classrooms/".concat(X.belong_container_id,"/shixun_homework/"));case"TeacherJoinCourse":return window.open("/classrooms/".concat(X.belong_container_id,"/shixun_homework/"));case"Course":return X.tiding_type==="Delete"?void 0:window.open("/classrooms/".concat(X.belong_container_id,"/shixun_homework/"));case"ArchiveCourse":return window.open("/classrooms/".concat(X.belong_container_id,"/shixun_homework/"));case"Shixun":return window.open("/shixuns/".concat(X.identifier,"/challenges"));case"Subject":return window.open("/paths/".concat(X.container_id));case"JournalsForMessage":switch(X.parent_container_type){case"Principal":return"";case"HomeworkCommon":return X.homework_type==="normal"?window.open("/classrooms/".concat(X.belong_container_id,"/common_homework/").concat(X.parent_container_id,"/question")):X.homework_type==="group"?window.open("/classrooms/".concat(X.belong_container_id,"/group_homework/").concat(X.parent_container_id,"/question")):X.homework_type==="practice"?window.open("/classrooms/".concat(X.belong_container_id,"/shixun_homework/").concat(X.parent_container_id,"/detail?tabs=1")):"";case"GraduationTopic":return window.open("/classrooms/".concat(X.belong_container_id,"/graduation_topics/").concat(X.parent_container_id,"/detail"));case"StudentWorksScore":return window.open(X.link_url)}case"Memo":return window.open("/forums/".concat(X.parent_container_id));case"Message":return window.open("/forums/");case"Watcher":return window.open("/users/".concat(X.trigger_user.login,"/classrooms"));case"PraiseTread":return"";case"Grade":return"";case"JoinProject":return window.open(D.a.FORGE+X.project_url);case"ReporterJoinProject":return window.open(D.a.FORGE+X.project_url);case"DealProject":return window.open(D.a.FORGE+X.project_url);case"ManagerJoinProject":return window.open(D.a.FORGE+X.project_url);case"Poll":switch(X.parent_container_type){case"CommitPoll":return window.open(" /classrooms/".concat(X.belong_container_id,"/poll/").concat(X.container_id,"/detail"));default:return window.open(" /classrooms/".concat(X.belong_container_id,"/poll/").concat(X.container_id,"/detail"))}case"Exercise":switch(X.parent_container_type){case"CommitExercise":return window.open(" /classrooms/".concat(X.belong_container_id,"/exercise/").concat(X.container_id,"/detail?tab=0"));case"ExerciseScore":return window.open(" /classrooms/".concat(X.belong_container_id,"/exercise/").concat(X.container_id,"/detail?tab=0"));default:return window.open("/classrooms/".concat(X.belong_container_id,"/exercise/").concat(X.container_id,"/detail?tab=0"))}case"StudentGraduationTopic":return window.open("/classrooms/".concat(X.belong_container_id,"/graduation_topics/").concat(X.parent_container_id,"/detail"));case"DealStudentTopicSelect":return window.open("/classrooms/".concat(X.belong_container_id,"/graduation_topics/").concat(X.parent_container_id,"/detail"));case"GraduationTask":return window.open("/classrooms/".concat(X.belong_container_id,"/graduation_tasks/").concat(X.container_id));case"GraduationWork":return window.open("/classrooms/".concat(X.belong_container_id,"/graduation_tasks/").concat(X.container_id));case"GraduationWorkScore":return window.open("/classrooms/".concat(X.belong_container_id,"/graduation_tasks/").concat(X.parent_container_id));case"HomeworkCommon":switch(X.parent_container_type){case"AnonymousCommentFail":if(X.homework_type==="normal")return window.open("/classrooms/".concat(X.belong_container_id,"/common_homework/").concat(X.parent_container_id,"/detail"));if(X.homework_type==="group")return window.open("/classrooms/".concat(X.belong_container_id,"/group_homework/").concat(X.parent_container_id,"/detail"));if(X.homework_type==="practice")return window.open("/classrooms/".concat(X.belong_container_id,"/shixun_homework/").concat(X.parent_container_id,"/detail?tabs=0"));case"HomeworkPublish":if(X.homework_type==="normal")return window.open("/classrooms/".concat(X.belong_container_id,"/common_homework/").concat(X.parent_container_id,"/detail"));if(X.homework_type==="group")return window.open("/classrooms/".concat(X.belong_container_id,"/group_homework/").concat(X.parent_container_id,"/detail"));if(X.homework_type==="practice")return window.open("/classrooms/".concat(X.belong_container_id,"/shixun_homework/").concat(X.parent_container_id,"/detail?tabs=0"));case"AnonymousAppeal":if(X.homework_type==="normal")return window.open("/classrooms/".concat(X.belong_container_id,"/common_homework/").concat(X.parent_container_id,"/detail"));if(X.homework_type==="group")return window.open("/classrooms/".concat(X.belong_container_id,"/group_homework/").concat(X.parent_container_id,"/detail"));if(X.homework_type==="practice")return window.open("/classrooms/".concat(X.belong_container_id,"/shixun_homework/").concat(X.parent_container_id,"/detail?tabs=0"));default:if(X.homework_type==="normal")return window.open("/classrooms/".concat(X.belong_container_id,"/common_homework/").concat(X.parent_container_id,"/detail"));if(X.homework_type==="group")return window.open("/classrooms/".concat(X.belong_container_id,"/group_homework/").concat(X.parent_container_id,"/detail"));if(X.homework_type==="practice")return window.open("/classrooms/".concat(X.belong_container_id,"/shixun_homework/").concat(X.parent_container_id,"/detail?tabs=0"))}case"StudentWork":if(X.homework_type==="normal")return window.open("/classrooms/".concat(X.belong_container_id,"/common_homework/").concat(X.parent_container_id,"/review/").concat(X.container_id));if(X.homework_type==="group")return window.open("/classrooms/".concat(X.belong_container_id,"/group_homework/").concat(X.parent_container_id,"/review/").concat(X.container_id));if(X.homework_type==="practice")return window.open("/classrooms/".concat(X.belong_container_id,"/shixun_homework/").concat(X.parent_container_id,"/detail"));case"StudentWorksScore":return window.open("/classrooms/".concat(X.belong_container_id,"/common_homework/").concat(X.trigger_user.id,"/review/").concat(X.parent_container_id));case"StudentWorksScoresAppeal":return window.open("/classrooms/".concat(X.belong_container_id,"/common_homework/").concat(X.trigger_user.id,"/review/").concat(X.parent_container_id));case"ChallengeWorkScore":return"";case"SendMessage":return window.open("".concat(D.a.API_SERVER,"/admins/mirror_repositories"));case"Journal":return window.open("/issues/".concat(X.parent_container_id));case"Issue":return window.open("/issues/".concat(X.container_id));case"PullRequest":return window.open(D.a.FORGE+X.project_url);case"Department":return window.open("/account/profile");case"Library":if(X.tiding_type==="Apply")return window.open("/admins/library_applies");if(X.tiding_type==="System")return window.open("/moop_cases/".concat(X.container_id));case"ProjectPackage":return X.tiding_type==="Destroyed"||X.tiding_type==="Destroyed_end"?void 0:X.tiding_type==="Apply"?window.open("/admins/project_package_applies"):window.open("/crowdsourcing/".concat(X.container_id));case"Discuss":return X.parent_container_type==="Hack"&&X.extra?window.open("/myproblems/".concat(X.extra,"/comment")):X.extra==="ai_reply"&&X.task_identifier?window.open("/tasks/".concat(X.task_identifier,"?extra=extra")):window.open("/shixuns/".concat(X.identifier,"/shixun_discuss"));case"Video":if(X.tiding_type==="Apply")return window.open("/admins/video_applies");if(X.tiding_type==="System"){var re;return window.open("/users/".concat((re=Object(C.x)())===null||re===void 0?void 0:re.login,"/videos"))}return"";case"PublicCourseStart":return window.open("/classrooms/".concat(X.container_id,"/informs"));case"SubjectStartCourse":return window.open("/paths/".concat(X.container_id));case"ResubmitStudentWork":if(X.homework_type==="normal")return window.open("/classrooms/".concat(X.belong_container_id,"/common_homework/").concat(X.parent_container_id,"/").concat(X.container_id,"/appraise"));if(X.homework_type==="group")return window.open("/classrooms/".concat(X.belong_container_id,"/group_homework/").concat(X.parent_container_id,"/").concat(X.container_id,"/appraise"));case"AdjustScore":if(X.homework_type==="normal")return window.open("/classrooms/".concat(X.belong_container_id,"/common_homework/").concat(X.parent_container_id));if(X.homework_type==="group")return window.open("/classrooms/".concat(X.belong_container_id,"/group_homework/").concat(X.parent_container_id));case"LiveLink":return window.open("/classrooms/".concat(X.belong_container_id,"/course_videos?open=live"));case"Hack":if(X.extra&&X.parent_container_type!=="HackDelete")return window.open("/problems/".concat(X.extra,"/edit"));default:return}},lt=function(X){var re,dt;return new Promise(function(){var Rt=Object(m.a)(b.a.mark(function ut(zt,ft){var mt;return b.a.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:if(!(X.ip_limit!=="no"||X.ip_bind)){Ye.next=4;break}return Ye.next=3,Object(S.a)({ip_limit:X==null?void 0:X.ip_limit,ip_bind:X==null?void 0:X.ip_bind});case 3:re=Ye.sent;case 4:return Ye.next=6,Object(M.f)({id:X.exerciseId,ip:re});case 6:if(mt=Ye.sent,mt.status===0?zt(mt):ft(mt),!X.errmsgHide){Ye.next=10;break}return Ye.abrupt("return",!0);case 10:if(!(mt.status===-1)){Ye.next=15;break}return dt=u.a.info({title:O.a.createElement(f.a,null,O.a.createElement(s.a,{flex:"1"},"\u63D0\u793A"),O.a.createElement(s.a,null,O.a.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:function(){return dt.destroy()}}))),icon:null,className:"custom-modal-divider",content:O.a.createElement("div",{className:"font16 p20"},"\u60A8\u7684IP\u4E0D\u5728\u8003\u8BD5\u5141\u8BB8\u7684\u8303\u56F4\u5185\uFF01"),okText:"\u6211\u77E5\u9053\u4E86"}),Ye.abrupt("return",!1);case 15:if(!(mt.status===-2)){Ye.next=18;break}return dt=u.a.info({title:O.a.createElement(f.a,null,O.a.createElement(s.a,{flex:"1"},"\u63D0\u793A"),O.a.createElement(s.a,null,O.a.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:function(){return dt.destroy()}}))),icon:null,className:"custom-modal-divider",content:O.a.createElement("div",{className:"font16 p20"},"\u60A8\u5DF2\u7ED1\u5B9A\u5F53\u524D\u8003\u8BD5IP\u5730\u5740\uFF1A",O.a.createElement("span",{className:"c-red"},mt.ip),"\u8BF7\u4F7F\u7528\u8BE5IP\u5730\u5740\u8FDB\u5165\u8003\u8BD5\u3002"),okText:"\u6211\u77E5\u9053\u4E86"}),Ye.abrupt("return",!1);case 18:case"end":return Ye.stop()}},ut)}));return function(ut,zt){return Rt.apply(this,arguments)}}())},Ct=function(){return location.pathname.indexOf("/classrooms/4RW9CYHY")>-1||location.pathname.indexOf("/classrooms/qb4ft587")>-1||location.pathname.indexOf("/classrooms/c5q9bsp2")>-1},Ot=function(){var je=Object(m.a)(b.a.mark(function X(re){var dt;return b.a.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:if(!((location.pathname.indexOf("/classrooms/4RW9CYHY")>-1||location.pathname.indexOf("/classrooms/qb4ft587")>-1||location.pathname.indexOf("/classrooms/c5q9bsp2")>-1)&&!W())){ut.next=3;break}return u.a.info({content:"\u8BF7\u4F7F\u7528\u7535\u8111\u53C2\u52A0\u8003\u8BD5\uFF01"}),ut.abrupt("return");case 3:if(!(re.ip_limit!=="no"||re.ip_bind)){ut.next=9;break}return ut.next=6,lt(re);case 6:if(Le()){ut.next=9;break}return u.a.info({icon:null,okText:"\u786E\u5B9A",width:500,content:O.a.createElement("div",{className:"font16"},"\u672C\u6B21\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A\u8BBE\u7F6E\uFF0C\u4EC5\u652F\u6301",O.a.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3002",O.a.createElement("br",null),"\u8BF7\u4F7F\u7528",O.a.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u6D4F\u89C8\u5668\u5F00\u59CB\u8003\u8BD5\u3002")}),ut.abrupt("return");case 9:if(!(re.open_camera||re.screen_open||re.ip_limit!=="no"||re.ip_bind||re.identity_verify)){ut.next=17;break}if(w()){ut.next=14;break}return u.a.info({icon:null,okText:"\u786E\u5B9A",width:500,content:O.a.createElement("div",{className:"font16"},"\u672C\u6B21\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A\u8BBE\u7F6E\uFF0C\u4EC5\u652F\u6301",O.a.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3001",O.a.createElement("span",{className:"c-red"},"\u706B\u72D0"),"\u6D4F\u89C8\u5668\u3002",O.a.createElement("br",null),"\u8BF7\u4F7F\u7528",O.a.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3001",O.a.createElement("span",{className:"c-red"},"\u706B\u72D0"),"\u6D4F\u89C8\u5668\u5F00\u59CB\u8003\u8BD5\u3002")}),ut.abrupt("return",!1);case 14:dt=u.a.info({title:O.a.createElement(f.a,null,O.a.createElement(s.a,{flex:"1"},"\u8003\u8BD5\u8BF4\u660E"),O.a.createElement(s.a,null,O.a.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:function(){return dt.destroy()}}))),width:700,icon:null,className:"custom-modal-divider",content:O.a.createElement("div",{className:"font16 p20"},re.identity_verify&&O.a.createElement(f.a,{align:"middle",justify:"start",className:"mt20"},O.a.createElement(s.a,{flex:"45px"},O.a.createElement("span",{className:"iconfont icon-kaiqishexiangtou c-blue mr20 font24"})),O.a.createElement(s.a,{flex:"1"},"\u8FDB\u5165\u8003\u8BD5\u524D\uFF0C\u8BF7\u5141\u8BB8\u6444\u50CF\u5934\u6388\u6743\uFF0C\u6388\u6743\u540E\u9700\u91C7\u96C6\u7167\u7247\u8BA4\u8BC1\uFF0C\u8BA4\u8BC1\u901A\u8FC7\u5E76\u5F00\u542F\u624B\u673A\u5F55\u5236\u624D\u53EF\u4EE5\u8FDB\u5165\u8003\u8BD5\u3002",!Ft()&&O.a.createElement("a",{target:"_blank",href:"https://www.educoder.net/forums/4459"},"\u65E0\u6CD5\u8C03\u7528\u6444\u50CF\u5934\uFF1F"))),re.open_camera&&O.a.createElement(f.a,{align:"middle",justify:"start",className:"mt20"},O.a.createElement(s.a,null,O.a.createElement("span",{className:"iconfont icon-kaiqishexiangtou c-blue mr20 font24"})),O.a.createElement(s.a,null,"\u8FDB\u5165\u8003\u8BD5\u540E\uFF0C\u8BF7\u5141\u8BB8\u6444\u50CF\u5934\u6388\u6743\uFF0C\u6388\u6743\u540E\u6253\u5F00\u6444\u50CF\u5934\u65B9\u53EF\u4F5C\u7B54\uFF01",!Ft()&&O.a.createElement("a",{target:"_blank",href:"https://www.educoder.net/forums/4459"},"\u65E0\u6CD5\u8C03\u7528\u6444\u50CF\u5934\uFF1F"))),re.screen_open&&O.a.createElement(f.a,{justify:"start",className:"mt20"},O.a.createElement(s.a,{flex:"24px",className:"mr20"},O.a.createElement("span",{className:"iconfont icon-kaiqifangqieping c-blue font24"})),O.a.createElement(s.a,{flex:"1"},"\u5F53\u524D\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u5207\u5C4F\uFF0C\u5207\u5C4F\u8D85\u8FC7",re.screen_num,"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377\u3002\uFF08\u9000\u51FA\u5168\u5C4F\u5C06\u5224\u5B9A\u4E3A\u5207\u5C4F\u4E00\u6B21\uFF0C\u8003\u8BD5\u8FC7\u7A0B\u4E2D\u8BF7\u52FF\u9000\u51FA\u5168\u5C4F\uFF09",!Ft()&&O.a.createElement("a",{target:"_blank",href:"https://www.educoder.net/forums/4460"},"\u6D4F\u89C8\u5668\u65E0\u6CD5\u81EA\u52A8\u5168\u5C4F\uFF1F"))),(re.inner_ip!==""||re.public_ip!=="")&&re.ip_limit!=="no"&&O.a.createElement(f.a,{justify:"start",className:"mt20"},O.a.createElement(s.a,{flex:"24px",className:"mr20"},O.a.createElement("span",{className:"iconfont icon-IP c-blue font24"})),O.a.createElement(s.a,{flex:"1"},"\u5F53\u524D\u8003\u8BD5\u5DF2\u5F00\u542FIP\u8303\u56F4\u9650\u5B9A\u3002IP\u5730\u5740\u4E0D\u5728\u8303\u56F4\u5185\u4E0D\u53EF\u53C2\u52A0\u8003\u8BD5\u3002",O.a.createElement("br",null),!Ft()&&O.a.createElement(O.a.Fragment,null,O.a.createElement("span",{className:"c-red"},"\uFF08\u53EA\u5141\u8BB8\u5728Chrome\u8C37\u6B4C\u6D4F\u89C8\u5668\u4F5C\u7B54\uFF0C\u5E76\u4E14\u9700\u8981\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6\uFF09"),O.a.createElement("br",null),O.a.createElement("a",{href:"https://www.educoder.net/forums/4478",target:"_blank"},"\u5982\u4F55\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6?")))),re.ip_bind&&O.a.createElement(f.a,{justify:"start",className:"mt20"},O.a.createElement(s.a,{flex:"24px",className:"mr20"},O.a.createElement("span",{className:"iconfont icon-IPbangding c-blue font24"})),O.a.createElement(s.a,{flex:"1"},"\u5F53\u524D\u8003\u8BD5\u5DF2\u542F\u7528\u8003\u8BD5\u671F\u95F4IP\u7ED1\u5B9A\u3002\u5F53\u60A8\u5F00\u59CB\u8003\u8BD5\u540E\uFF0C\u5C06\u81EA\u52A8\u7ED1\u5B9AIP\uFF0C\u8003\u8BD5\u671F\u95F4\u53EA\u5141\u8BB8\u4F7F\u7528\u552F\u4E00\u7684IP\u8FDB\u5165\u8003\u8BD5\u3002\u5982\u9047\u7279\u6B8A\u60C5\u51B5\uFF0C\u53EF\u5411\u8001\u5E08\u7533\u8BF7\u89E3\u9664IP\u7ED1\u5B9A\u3002",O.a.createElement("br",null),!Ft()&&O.a.createElement(O.a.Fragment,null,O.a.createElement("span",{className:"c-red"},"\uFF08\u53EA\u5141\u8BB8\u5728Chrome\u8C37\u6B4C\u6D4F\u89C8\u5668\u4F5C\u7B54\uFF0C\u5E76\u4E14\u9700\u8981\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6\uFF09"),O.a.createElement("br",null),O.a.createElement("a",{href:"https://www.educoder.net/forums/4478",target:"_blank"},"\u5982\u4F55\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6?")))),O.a.createElement("p",{className:"ml40 mt40"},O.a.createElement(i.a,{onChange:function(ft){return dt.update({okButtonProps:{disabled:!ft.target.checked}})}},"\u6211\u5DF2\u9605\u8BFB"))),onOk:function(){if(Object(P.d)(document.body),re.open_phone_video_recording){var ft;re.history.push("/classrooms/".concat(re.coursesId,"/exercise/").concat(re.exerciseId,"/users/").concat((ft=Object(C.x)())===null||ft===void 0?void 0:ft.login,"/check"))}else if(re.identity_verify&&re.current_status===2){var mt;re.history.push("/classrooms/".concat(re.coursesId,"/exercise/").concat(re.exerciseId,"/users/").concat((mt=Object(C.x)())===null||mt===void 0?void 0:mt.login,"/check"))}else{var kt;re.history.push("/classrooms/".concat(re.coursesId,"/exercise/").concat(re.exerciseId,"/users/").concat((kt=Object(C.x)())===null||kt===void 0?void 0:kt.login))}},okText:"\u8FDB\u5165\u8003\u8BD5",okButtonProps:{disabled:!0}}),ut.next=18;break;case 17:re.identity_verify&&re.current_status===2?re.history.push("/classrooms/".concat(re.coursesId,"/exercise/").concat(re.exerciseId,"/users/").concat(re.login,"/check")):re.history.push("/classrooms/".concat(re.coursesId,"/exercise/").concat(re.exerciseId,"/users/").concat(re.login));case 18:case"end":return ut.stop()}},X)}));return function(re){return je.apply(this,arguments)}}(),xt=[{name:"\u535A\u58EB\u7814\u7A76\u751F",id:8},{name:"\u7855\u58EB\u7814\u7A76\u751F",id:7},{name:"\u672C\u79D1",id:6},{name:"\u5927\u4E13",id:5},{name:"\u4E2D\u4E13",id:4},{name:"\u9AD8\u4E2D",id:3},{name:"\u521D\u4E2D",id:2},{name:"\u5C0F\u5B66",id:1},{name:"\u5176\u4ED6",id:9}],Yt=function(X){var re=/(\w+)=([^\#&]*)/ig,dt={};return X.replace(re,function(Rt,ut,zt){dt[ut]=decodeURI(zt)}),dt},pn=function(X,re){var dt={1:"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u6682\u672A\u53D1\u5E03\uFF0C\u8BF7\u8054\u7CFB\u672C\u8BFE\u5802\u6559\u5E08\u3002",2:"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u4E0D\u5B58\u5728\uFF0C\u8BF7\u8054\u7CFB\u672C\u8BFE\u5802\u6559\u5E08\u3002",3:"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u9762\u5411\u6307\u5B9A\u5355\u4F4D\u5F00\u653E\uFF0C\u8BF7\u8054\u7CFB\u672C\u8BFE\u5802\u6559\u5E08\u3002",4:"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u5C06\u4E8E".concat(re,"\u53D1\u5E03\uFF0C\u8BF7\u7B49\u5F85\u3002")},Rt=dt[X];r.b.warn(Rt)},nn=function(X,re){for(var dt,Rt,ut=window.atob(X),zt=ut.length,ft=new Uint8Array(zt),mt=0;mt0&&arguments[0]!==void 0?arguments[0]:"",re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,dt=document.createElement("textarea");dt.value=X,document.body.appendChild(dt),dt.select(),document.execCommand("Copy"),re||r.b.success("\u590D\u5236\u6210\u529F"),document.body.removeChild(dt)},Tt=function(X){X||(X=window.location.search);var re=X.substr(1),dt={};return re.split("&").forEach(function(Rt){var ut=Rt.split("=");dt[ut[0]]=decodeURIComponent(ut[1])}),dt},jt=function(X,re){if(!re)return null;var dt=[];return re.forEach(function(Rt,ut){var zt=Math.floor(ut/X);dt[zt]||(dt[zt]=[]),dt[zt].push(Rt)}),dt},Mt=function(X){Ft()?document.title="\u8003\u8BD5\u7CFB\u7EDF":document.title=X||"\u5B9E\u8DF5\u6559\u5B66\u5E73\u53F0"},Ft=function(){var X,re;return(X=window)===null||X===void 0||((re=X.localStorage)===null||re===void 0)?void 0:re.isClientExam},De={setItem:function(X,re,dt){var Rt=X,ut=localStorage.getItem(Rt),zt=ut!==null&&ut!=="[object Object]"?JSON.parse(ut):{};zt[dt]=re,localStorage.setItem(Rt,JSON.stringify(zt))},getItem:function(X,re){var dt=X,Rt=localStorage.getItem(dt),ut=Rt!==null&&Rt!=="[object Object]"?JSON.parse(Rt):{};return ut[re]}},_e=function(X){return X!=null&&X.startsWith("http")?X:D.a.IMG_SERVER+X},ne=function(X){for(var re=Me(),dt=X.split("."),Rt=re.split("."),ut=Math.max(dt.length,Rt.length);dt.lengthmt)return 1;if(ft-1};function Pe(je,X){var re=je.length,dt,Rt;X=X||1;for(var ut=function(){var ft=Math.sin(X++)*1e3;return ft-Math.floor(ft)};re!==0;)Rt=Math.floor(ut()*re),re-=1,dt=je[re],je[re]=je[Rt],je[Rt]=dt;return je}},"1vuE":function(x,g,e){var a=e("eNh0");a("flat")},2:function(x,g){},"22qN":function(x,g,e){},"25BE":function(x,g,e){"use strict";e.d(g,"a",function(){return a});function a(n){if(typeof Symbol!="undefined"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}},"284h":function(x,g,e){var a=e("cDf5").default;function n(t){if(typeof WeakMap!="function")return null;var i=new WeakMap,v=new WeakMap;return(n=function(l){return l?v:i})(t)}function r(t,i){if(!i&&t&&t.__esModule)return t;if(t===null||a(t)!=="object"&&typeof t!="function")return{default:t};var v=n(i);if(v&&v.has(t))return v.get(t);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var p=l?Object.getOwnPropertyDescriptor(t,s):null;p&&(p.get||p.set)?Object.defineProperty(f,s,p):f[s]=t[s]}return f.default=t,v&&v.set(t,f),f}x.exports=r,x.exports.__esModule=!0,x.exports.default=x.exports},"29mP":function(x,g,e){var a=e("nFn1"),n=e("ukPv"),r=function(t){return typeof t=="function"?t:void 0};x.exports=function(t,i){return arguments.length<2?r(a[t])||r(n[t]):a[t]&&a[t][i]||n[t]&&n[t][i]}},"2FZw":function(x,g,e){var a=e("oa35"),n=e("+rjg"),r=e("FCfD"),t=Math.ceil,i=function(v){return function(f,l,s){var p=String(r(f)),u=p.length,m=s===void 0?" ":String(s),o=a(l),h,c;return o<=u||m==""?p:(h=o-u,c=n.call(m,t(h/m.length)),c.length>h&&(c=c.slice(0,h)),v?p+c:c+p)}};x.exports={start:i(!1),end:i(!0)}},"2GS6":function(x,g,e){"use strict";e.d(g,"a",function(){return a});function a(){var n=[].slice.call(arguments,0);return n.length===1?n[0]:function(){for(var t=0;t1?f-1:0);for(var l=1;l2?f-2:0);for(var l=2;l1?arguments[1]:void 0,3),c=new(f(m,r("Map"))),b=i(c.set);return s(o,function(j,O){b.call(c,j,h(O,j,m))},void 0,!0,!0),c}})},"2j6C":function(x,g){x.exports=e;function e(a,n){if(!a)throw new Error(n||"Assertion failed")}e.equal=function(n,r,t){if(n!=r)throw new Error(t||"Assertion failed: "+n+" != "+r)}},"2kyd":function(x,g,e){var a=e("ukPv"),n=e("xxaU"),r=e("jtLI"),t=e("evbn"),i=e("Fs9M"),v=e("wgKq"),f=n("wks"),l=a.Symbol,s=v?l:l&&l.withoutSetter||t;x.exports=function(p){return r(f,p)||(i&&r(l,p)?f[p]=l[p]:f[p]=s("Symbol."+p)),f[p]}},"2mql":function(x,g,e){"use strict";var a=e("TOwV"),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},t={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},v={};v[a.ForwardRef]=t,v[a.Memo]=i;function f(c){return a.isMemo(c)?i:v[c.$$typeof]||n}var l=Object.defineProperty,s=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,o=Object.prototype;function h(c,b,j){if(typeof b!="string"){if(o){var O=m(b);O&&O!==o&&h(c,O,j)}var C=s(b);p&&(C=C.concat(p(b)));for(var S=f(c),M=f(b),P=0;P=0;s--){var p=v[s];p==="."?v.splice(s,1):p===".."?(v.splice(s,1),l++):l&&(v.splice(s,1),l--)}if(f)for(;l--;l)v.unshift("..");return v}g.resolve=function(){for(var v="",f=!1,l=arguments.length-1;l>=-1&&!f;l--){var s=l>=0?arguments[l]:a.cwd();if(typeof s!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!s)continue;v=s+"/"+v,f=s.charAt(0)==="/"}return v=n(t(v.split("/"),function(p){return!!p}),!f).join("/"),(f?"/":"")+v||"."},g.normalize=function(v){var f=g.isAbsolute(v),l=i(v,-1)==="/";return v=n(t(v.split("/"),function(s){return!!s}),!f).join("/"),!v&&!f&&(v="."),v&&l&&(v+="/"),(f?"/":"")+v},g.isAbsolute=function(v){return v.charAt(0)==="/"},g.join=function(){var v=Array.prototype.slice.call(arguments,0);return g.normalize(t(v,function(f,l){if(typeof f!="string")throw new TypeError("Arguments to path.join must be strings");return f}).join("/"))},g.relative=function(v,f){v=g.resolve(v).substr(1),f=g.resolve(f).substr(1);function l(c){for(var b=0;b=0&&!(c[j]!=="");j--);return b>j?[]:c.slice(b,j-b+1)}for(var s=l(v.split("/")),p=l(f.split("/")),u=Math.min(s.length,p.length),m=u,o=0;o=1;--u)if(f=v.charCodeAt(u),f===47){if(!p){s=u;break}}else p=!1;return s===-1?l?"/":".":l&&s===1?"/":v.slice(0,s)};function r(v){typeof v!="string"&&(v=v+"");var f=0,l=-1,s=!0,p;for(p=v.length-1;p>=0;--p)if(v.charCodeAt(p)===47){if(!s){f=p+1;break}}else l===-1&&(s=!1,l=p+1);return l===-1?"":v.slice(f,l)}g.basename=function(v,f){var l=r(v);return f&&l.substr(-1*f.length)===f&&(l=l.substr(0,l.length-f.length)),l},g.extname=function(v){typeof v!="string"&&(v=v+"");for(var f=-1,l=0,s=-1,p=!0,u=0,m=v.length-1;m>=0;--m){var o=v.charCodeAt(m);if(o===47){if(!p){l=m+1;break}continue}s===-1&&(p=!1,s=m+1),o===46?f===-1?f=m:u!==1&&(u=1):f!==-1&&(u=-1)}return f===-1||s===-1||u===0||u===1&&f===s-1&&f===l+1?"":v.slice(f,s)};function t(v,f){if(v.filter)return v.filter(f);for(var l=[],s=0;s>>0,l=t>>>0,s=i>>>0;return l-(v>>>0)-((~f&s|~(f^s)&f-s>>>0)>>>31)|0}})},"3Us1":function(x,g,e){var a=e("Mi8B");a("Float32",function(n){return function(t,i,v){return n(this,t,i,v)}})},"3blH":function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("hJwl"),i={namespace:"competitions",state:{name:"",loading:!0,listParams:{page:1,per_page:20,category:""},competitions:[],count:""},effects:{getList:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=l.call,u=l.put,m=s,c.next=5,p(t.v,s);case 5:return o=c.sent,c.next=8,u({type:"save",payload:Object(a.a)({listParams:m},o)});case 8:return c.abrupt("return",o);case 9:case"end":return c.stop()}},v)}),addApplytojoincourse:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.r,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),competitionTeams:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.s,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getStaff:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.A,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getHeader:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.x,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getItem:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.y,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),updateMdContent:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.H,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getTeamList:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.E,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getTeamDetail:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.D,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),UpTeam:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.q,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),DeleteTeam:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.f,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),ExitTeam:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.h,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),AddTeam:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.b,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),JoinTeam:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.i,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getTeacher:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.C,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getStudents:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.B,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),SubmitTeam:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.o,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),Reward:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.n,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),ChartRules:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.d,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),Charts:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.e,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),TabResults:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.p,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),Results:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.m,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),Prize:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.k,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),Accounts:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.a,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getVerification:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.F,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),PhoneBind:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.j,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),EmailBind:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.g,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),Authentication:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.c,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),Professional:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.l,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),setleader:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.G,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getShixun:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.z,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getCourse:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.w,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)})},reducers:{save:function(f,l){return Object(a.a)(Object(a.a)({},f),l.payload)}},subscriptions:{setup:function(f){var l=f.dispatch,s=f.history;return s.listen(function(p){var u=p.pathname;u==="/"&&l({type:"query"})})}}};g.a=i},"3dhw":function(x,g,e){"use strict";var a=e("NMFW"),n=e("f1E4"),r=e("MVys"),t=e("k/J9"),i="toString",v=RegExp.prototype,f=v[i],l=r(function(){return f.call({source:"a",flags:"b"})!="/a/b"}),s=f.name!=i;(l||s)&&a(RegExp.prototype,i,function(){var u=n(this),m=String(u.source),o=u.flags,h=String(o===void 0&&u instanceof RegExp&&!("flags"in v)?t.call(u):o);return"/"+m+"/"+h},{unsafe:!0})},"3tO9":function(x,g,e){var a=e("lSNA");function n(t,i){var v=Object.keys(t);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(t);i&&(f=f.filter(function(l){return Object.getOwnPropertyDescriptor(t,l).enumerable})),v.push.apply(v,f)}return v}function r(t){for(var i=1;i1?arguments[1]:void 0)}})},"4IlW":function(x,g,e){"use strict";var a={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(r){var t=r.keyCode;if(r.altKey&&!r.ctrlKey||r.metaKey||t>=a.F1&&t<=a.F12)return!1;switch(t){case a.ALT:case a.CAPS_LOCK:case a.CONTEXT_MENU:case a.CTRL:case a.DOWN:case a.END:case a.ESC:case a.HOME:case a.INSERT:case a.LEFT:case a.MAC_FF_META:case a.META:case a.NUMLOCK:case a.NUM_CENTER:case a.PAGE_DOWN:case a.PAGE_UP:case a.PAUSE:case a.PRINT_SCREEN:case a.RIGHT:case a.SHIFT:case a.UP:case a.WIN_KEY:case a.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(r){if(r>=a.ZERO&&r<=a.NINE)return!0;if(r>=a.NUM_ZERO&&r<=a.NUM_MULTIPLY)return!0;if(r>=a.A&&r<=a.Z)return!0;if(window.navigator.userAgent.indexOf("WebKit")!==-1&&r===0)return!0;switch(r){case a.SPACE:case a.QUESTION_MARK:case a.NUM_PLUS:case a.NUM_MINUS:case a.NUM_PERIOD:case a.NUM_DIVISION:case a.SEMICOLON:case a.DASH:case a.EQUALS:case a.COMMA:case a.PERIOD:case a.SLASH:case a.APOSTROPHE:case a.SINGLE_QUOTE:case a.OPEN_SQUARE_BRACKET:case a.BACKSLASH:case a.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};g.a=a},"4MGa":function(x,g,e){},"4Mzw":function(x,g,e){var a=e("ukPv"),n=e("kiNa");n(a.JSON,"JSON",!0)},"4rKd":function(x,g,e){var a=e("lz10"),n=e("aKVN"),r=e("2kyd"),t=r("toPrimitive"),i=Date.prototype;t in i||a(i,t,n)},"58Ye":function(x,g,e){},"5Blz":function(x,g,e){"use strict";var a=e("MMxC"),n=e("9RRT").right,r=e("R8iy"),t=e("kGMc"),i=r("reduceRight"),v=t("reduce",{1:0});a({target:"Array",proto:!0,forced:!i||!v},{reduceRight:function(l){return n(this,l,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"5FVT":function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("h+Ho"),i={namespace:"forumsDetail",state:{forumsDetailData:{}},effects:{getForumsDetailData:r.a.mark(function v(f,l){var s,p,u,m;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=f.payload,p=l.call,u=l.put,h.next=4,p(t.d,s);case 4:return m=h.sent,h.next=7,u({type:"save",payload:{forumsDetailData:Object(a.a)({},m)}});case 7:return h.abrupt("return",m);case 8:case"end":return h.stop()}},v)}),setForumsDetailData:r.a.mark(function v(f,l){var s,p,u;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=f.payload,p=l.call,u=l.put,o.next=4,u({type:"save",payload:{forumsDetailData:Object(a.a)({},s)}});case 4:case"end":return o.stop()}},v)})},reducers:{save:function(f,l){return Object(a.a)(Object(a.a)({},f),l.payload)}},subscriptions:{setup:function(f){var l=f.dispatch,s=f.history;return s.listen(function(p){var u=p.pathname;u==="/"&&l({type:"query"})})}}};g.a=i},"5JgN":function(x,g,e){"use strict";e("FbcW");var a=e("MMxC"),n=e("29mP"),r=e("lgSf"),t=e("NMFW"),i=e("ujhg"),v=e("kiNa"),f=e("uoF6"),l=e("1aI8"),s=e("igoe"),p=e("jtLI"),u=e("7BAe"),m=e("Ei+o"),o=e("f1E4"),h=e("tSXo"),c=e("u+7+"),b=e("HhvW"),j=e("qcmB"),O=e("9SZg"),C=e("2kyd"),S=n("fetch"),M=n("Headers"),P=C("iterator"),R="URLSearchParams",z=R+"Iterator",G=l.set,D=l.getterFor(R),F=l.getterFor(z),Oe=/\+/g,le=Array(4),se=function(ee){return le[ee-1]||(le[ee-1]=RegExp("((?:%[\\da-f]{2}){"+ee+"})","gi"))},q=function(ee){try{return decodeURIComponent(ee)}catch(I){return ee}},Z=function(ee){var I=ee.replace(Oe," "),pe=4;try{return decodeURIComponent(I)}catch(Qe){for(;pe;)I=I.replace(se(pe--),q);return I}},B=/[!'()~]|%20/g,Q={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},_=function(ee){return Q[ee]},Be=function(ee){return encodeURIComponent(ee).replace(B,_)},Ke=function(ee,I){if(I)for(var pe=I.split("&"),Qe=0,me,tt;Qe0?arguments[0]:void 0,pe=this,Qe=[],me,tt,Ce,Ge,Je,gt,ge,be,xe;if(G(pe,{type:R,entries:Qe,updateURL:function(){},updateSearchParams:ct}),I!==void 0)if(h(I))if(me=O(I),typeof me=="function")for(tt=me.call(I),Ce=tt.next;!(Ge=Ce.call(tt)).done;){if(Je=j(o(Ge.value)),gt=Je.next,(ge=gt.call(Je)).done||(be=gt.call(Je)).done||!gt.call(Je).done)throw TypeError("Expected sequence with length 2");Qe.push({key:ge.value+"",value:be.value+""})}else for(xe in I)p(I,xe)&&Qe.push({key:xe,value:I[xe]+""});else Ke(Qe,typeof I=="string"?I.charAt(0)==="?"?I.slice(1):I:I+"")},ie=$.prototype;i(ie,{append:function(I,pe){We(arguments.length,2);var Qe=D(this);Qe.entries.push({key:I+"",value:pe+""}),Qe.updateURL()},delete:function(ee){We(arguments.length,1);for(var I=D(this),pe=I.entries,Qe=ee+"",me=0;meme.key){pe.splice(tt,0,me);break}tt===Ce&&pe.push(me)}I.updateURL()},forEach:function(I){for(var pe=D(this).entries,Qe=u(I,arguments.length>1?arguments[1]:void 0,3),me=0,tt;me1&&(Qe=arguments[1],h(Qe)&&(me=Qe.body,m(me)===R&&(tt=Qe.headers?new M(Qe.headers):new M,tt.has("content-type")||tt.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),Qe=c(Qe,{body:b(0,String(me)),headers:b(0,tt)}))),pe.push(Qe)),S.apply(this,pe)}}),x.exports={URLSearchParams:$,getState:D}},"5QGz":function(x,g,e){var a=e("MMxC"),n=Math.atanh,r=Math.log;a({target:"Math",stat:!0,forced:!(n&&1/n(-0)<0)},{atanh:function(i){return(i=+i)==0?i:r((1+i)/(1-i))/2}})},"5WQS":function(x,g,e){"use strict";e.d(g,"e",function(){return v}),e.d(g,"h",function(){return l}),e.d(g,"c",function(){return p}),e.d(g,"g",function(){return m}),e.d(g,"d",function(){return h}),e.d(g,"f",function(){return b}),e.d(g,"b",function(){return O}),e.d(g,"a",function(){return S});var a=e("k1fw"),n=e("9og8"),r=e("WmNS"),t=e.n(r),i=e("ErOA");function v(P){return f.apply(this,arguments)}function f(){return f=Object(n.a)(t.a.mark(function P(R){return t.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.abrupt("return",Object(i.a)("/api/users/tidings.json",{method:"get",params:Object(a.a)({},R)}));case 1:case"end":return G.stop()}},P)})),f.apply(this,arguments)}function l(P){return s.apply(this,arguments)}function s(){return s=Object(n.a)(t.a.mark(function P(R){return t.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.abrupt("return",Object(i.a)("/api/users/".concat(R.userId,"/unread_message_info.json"),{method:"get",params:Object(a.a)({},R)}));case 1:case"end":return G.stop()}},P)})),s.apply(this,arguments)}function p(P){return u.apply(this,arguments)}function u(){return u=Object(n.a)(t.a.mark(function P(R){return t.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.abrupt("return",Object(i.a)("/api/users/".concat(R.userId,"/private_messages.json"),{method:"get",params:Object(a.a)({},R)}));case 1:case"end":return G.stop()}},P)})),u.apply(this,arguments)}function m(P){return o.apply(this,arguments)}function o(){return o=Object(n.a)(t.a.mark(function P(R){return t.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.abrupt("return",Object(i.a)("/api/users/".concat(R.userId,"/private_messages.json"),{method:"post",body:Object(a.a)({},R)}));case 1:case"end":return G.stop()}},P)})),o.apply(this,arguments)}function h(P){return c.apply(this,arguments)}function c(){return c=Object(n.a)(t.a.mark(function P(R){return t.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.abrupt("return",Object(i.a)("/api/users/".concat(R.id,"/recent_contacts.json"),{method:"get",params:Object(a.a)({},R)}));case 1:case"end":return G.stop()}},P)})),c.apply(this,arguments)}function b(P){return j.apply(this,arguments)}function j(){return j=Object(n.a)(t.a.mark(function P(R){return t.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.abrupt("return",Object(i.a)("/api/users_for_private_messages.json",{method:"get",params:Object(a.a)({},R)}));case 1:case"end":return G.stop()}},P)})),j.apply(this,arguments)}function O(P){return C.apply(this,arguments)}function C(){return C=Object(n.a)(t.a.mark(function P(R){return t.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.abrupt("return",Object(i.a)("/api/users/".concat(R.userId,"/private_message_details.json"),{method:"get",params:Object(a.a)({},R)}));case 1:case"end":return G.stop()}},P)})),C.apply(this,arguments)}function S(P){return M.apply(this,arguments)}function M(){return M=Object(n.a)(t.a.mark(function P(R){return t.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.abrupt("return",Object(i.a)("/api/users/".concat(R.userId,"/private_messages/").concat(R.id,".json"),{method:"delete"}));case 1:case"end":return G.stop()}},P)})),M.apply(this,arguments)}},"5mCs":function(x,g,e){"use strict";var a=e("oBTY"),n=e("k1fw"),r=e("WmNS"),t=e.n(r),i=e("oUNq"),v={namespace:"classroomList",state:{name:"",loading:!0,detailTopBanner:{},detailLeftMenus:{},detailLeftMenusNames:{},detailShixunsList:{},detailGraduationTopicsList:{},detailGraduationTaskList:{},detailExerciseList:{},detailPollsList:{},detailCommonHomeworksList:{},detailAttendancesList:{},detailAttendancesDetail:{},detailAnnouncementList:{},detailAttachmentList:{},detailCourseware:{},courseMine:{},detailVideoList:{},detailLiveVideoList:{},detailBoardList:{},courseGroups:{},allCourseGroups:{},detailCourseGroupsList:{},detailCoursStudentsList:{},detailCourseStatisticsList:{},detailAttendancesStatistic:{},detailCourseWorkscore:{},detailCourseActscore:{},coursesLists:{},shixunLists:{},schoolList:{},taskList:[],searchMemberList:{},actionTabs:{key:""},listParams:{order:"all",page:1,limit:16,search:""},shareStatus:!1},effects:{getClassroom:t.a.mark(function f(l,s){var p,u,m,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p=l.payload,u=s.call,m=s.put,o=p,b.next=5,u(i.O,p);case 5:return h=b.sent,b.next=8,m({type:"save",payload:Object(n.a)({listParams:o},h)});case 8:return b.abrupt("return",h);case 9:case"end":return b.stop()}},f)}),getClassroomTopBanner:t.a.mark(function f(l,s){var p,u,m,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p=l.payload,u=s.call,m=s.put,c.next=4,u(i.S,p);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detailTopBanner:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},f)}),getClassroomLeftMenus:t.a.mark(function f(l,s){var p,u,m,o,h,c;return t.a.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return p=l.payload,u=s.call,m=s.put,j.next=4,u(i.N,p);case 4:return o=j.sent,h=[].concat(Object(a.a)((o==null?void 0:o.course_modules)||[]),Object(a.a)((o==null?void 0:o.hidden_modules)||[])),c={},h==null||h.forEach(function(O){c[O.type]=O.name}),j.next=10,m({type:"save",payload:{detailLeftMenus:Object(n.a)({},o),detailLeftMenusNames:c}});case 10:return j.abrupt("return",o);case 11:case"end":return j.stop()}},f)}),getClassroomShixunsList:t.a.mark(function f(l,s){var p,u,m,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p=l.payload,u=s.call,m=s.put,c.next=4,u(i.Q,p);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detailShixunsList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},f)}),getClassroomTeacherShixunsList:t.a.mark(function f(l,s){var p,u,m,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p=l.payload,u=s.call,m=s.put,c.next=4,u(i.R,p);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detailShixunsList:Object(n.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},f)}),getClassroomCommonList:t.a.mark(function f(l,s){var p,u,m,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p=l.payload,u=s.call,m=s.put,c.next=4,u(i.Q,p);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detailCommonHomeworksList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},f)}),getClassroomTeacherCommonList:t.a.mark(function f(l,s){var p,u,m,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p=l.payload,u=s.call,m=s.put,c.next=4,u(i.R,p);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detailCommonHomeworksList:Object(n.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},f)}),getClassroomGraduationTopicsList:t.a.mark(function f(l,s){var p,u,m,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p=l.payload,u=s.call,m=s.put,c.next=4,u(i.M,p);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detailGraduationTopicsList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},f)}),getClassroomGraduationTaskList:t.a.mark(function f(l,s){var p,u,m,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p=l.payload,u=s.call,m=s.put,c.next=4,u(i.L,p);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detailGraduationTaskList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},f)}),getClassroomExercisesList:t.a.mark(function f(l,s){var p,u,m,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p=l.payload,u=s.call,m=s.put,c.next=4,u(i.K,p);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detailExerciseList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},f)}),getClassroomPollsList:t.a.mark(function f(l,s){var p,u,m,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p=l.payload,u=s.call,m=s.put,c.next=4,u(i.P,p);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detailPollsList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},f)}),getCourseGroups:t.a.mark(function f(l,s){var p,u,m,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p=l.payload,u=s.call,m=s.put,c.next=4,u(i.W,p);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{courseGroups:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},f)}),getAllCourseGroup:t.a.mark(function f(l,s){var p,u,m,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p=l.payload,u=s.call,m=s.put,c.next=4,u(i.A,p);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{allCourseGroups:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},f)}),getClassroomCommonHomeworksList:t.a.mark(function f(l,s){var p,u,m,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p=l.payload,u=s.call,m=s.put,c.next=4,u(i.J,p);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detailCommonHomeworksList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},f)}),getClassroomAttendancesList:t.a.mark(function f(l,s){var p,u,m,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p=l.payload,u=s.call,m=s.put,c.next=4,u(i.H,p);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detailAttendancesList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},f)}),getClassroomAttendancesStatistic:t.a.mark(function f(l,s){var p,u,m,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p=l.payload,u=s.call,m=s.put,c.next=4,u(i.I,p);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detailAttendancesStatistic:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},f)}),getAttendanceDetail:t.a.mark(function f(l,s){var p,u,m,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p=l.payload,u=s.call,m=s.put,c.next=4,u(i.E,p);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detailAttendancesDetail:Object(n.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},f)}),getAnnouncementList:t.a.mark(function f(l,s){var p,u,m,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p=l.payload,u=s.call,m=s.put,c.next=4,u(i.C,p);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detailAnnouncementList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},f)}),getAttachmentList:t.a.mark(function f(l,s){var p,u,m,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p=l.payload,u=s.call,m=s.put,c.next=4,u(i.D,p);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detailAttachmentList:Object(n.a)({},o.data)}});case 7:case"end":return c.stop()}},f)}),getCourseware:t.a.mark(function f(l,s){var p,u,m,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p=l.payload,u=s.call,m=s.put,c.next=4,u(i.eb,p);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detailCourseware:Object(n.a)({},o.data)}});case 7:case"end":return c.stop()}},f)}),getVideoList:t.a.mark(function f(l,s){var p,u,m,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p=l.payload,u=s.call,m=s.put,c.next=4,m({type:"save",payload:{detailVideoList:{}}});case 4:return c.next=6,u(i.ob,p);case 6:return o=c.sent,c.next=9,m({type:"save",payload:{detailVideoList:Object(n.a)({},o)}});case 9:case"end":return c.stop()}},f)}),getLiveVideoList:t.a.mark(function f(l,s){var p,u,m,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p=l.payload,u=s.call,m=s.put,c.next=4,u(i.gb,p);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detailLiveVideoList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},f)}),getCoursesMine:t.a.mark(function f(l,s){var p,u,m,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p=l.payload,u=l.callback,m=s.call,o=s.put,b.next=4,m(i.db,p);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{courseMine:Object(n.a)({},h)}});case 7:return b.abrupt("return",h.data);case 8:case"end":return b.stop()}},f)}),getBoardList:t.a.mark(function f(l,s){var p,u,m,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p=l.payload,u=l.callback,m=s.call,o=s.put,b.next=4,m(i.G,p);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{detailBoardList:Object(n.a)({},h.data)}});case 7:return b.abrupt("return",h.data);case 8:case"end":return b.stop()}},f)}),getCourseGroupsList:t.a.mark(function f(l,s){var p,u,m,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p=l.payload,u=l.callback,m=s.call,o=s.put,b.next=4,m(i.X,p);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{detailCourseGroupsList:Object(n.a)({},h)}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},f)}),getCourseStudentsList:t.a.mark(function f(l,s){var p,u,m,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p=l.payload,u=l.callback,m=s.call,o=s.put,b.next=4,m(i.ab,p);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{detailCoursStudentsList:Object(n.a)({},h)}});case 7:return b.abrupt("return",h.data);case 8:case"end":return b.stop()}},f)}),getCourseStatistics:t.a.mark(function f(l,s){var p,u,m,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p=l.payload,u=l.callback,m=s.call,o=s.put,b.next=4,m(i.Z,p);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{detailCourseStatisticsList:Object(n.a)({},h)}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},f)}),getCourseActscore:t.a.mark(function f(l,s){var p,u,m,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p=l.payload,u=l.callback,m=s.call,o=s.put,b.next=4,m(i.T,p);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{detailCourseActscore:Object(n.a)({},h)}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},f)}),getCourseWorkscore:t.a.mark(function f(l,s){var p,u,m,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p=l.payload,u=l.callback,m=s.call,o=s.put,b.next=4,m(i.bb,p);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{detailCourseWorkscore:Object(n.a)({},h)}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},f)}),getShixunLists:t.a.mark(function f(l,s){var p,u,m,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p=l.payload,u=l.callback,m=s.call,o=s.put,b.next=4,m(i.nb,p);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{shixunLists:Object(n.a)({},h)}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},f)}),getExperimentLists:t.a.mark(function f(l,s){var p,u,m,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p=l.payload,u=l.callback,m=s.call,o=s.put,b.next=4,m(i.fb,p);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{shixunLists:Object(n.a)({},h)}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},f)}),getShixunAiRecommendLists:t.a.mark(function f(l,s){var p,u,m,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p=l.payload,u=l.callback,m=s.call,o=s.put,b.next=4,m(i.mb,p);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{shixunAiRecommendLists:Object(n.a)({},h)}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},f)}),getCoursesLists:t.a.mark(function f(l,s){var p,u,m,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p=l.payload,u=l.callback,m=s.call,o=s.put,b.next=4,m(i.cb,p);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{coursesLists:Object(n.a)({},h)}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},f)}),createCoursesHomework:t.a.mark(function f(l,s){var p,u,m,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p=l.payload,u=l.callback,m=s.call,o=s.put,b.next=4,m(i.f,p);case 4:return h=b.sent,b.abrupt("return",h);case 6:case"end":return b.stop()}},f)}),createShixunHomework:t.a.mark(function f(l,s){var p,u,m,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p=l.payload,u=l.callback,m=s.call,o=s.put,b.next=4,m(i.i,p);case 4:return h=b.sent,b.abrupt("return",h);case 6:case"end":return b.stop()}},f)}),createExperiment:t.a.mark(function f(l,s){var p,u,m,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p=l.payload,u=l.callback,m=s.call,o=s.put,b.next=4,m(i.g,p);case 4:return h=b.sent,b.abrupt("return",h);case 6:case"end":return b.stop()}},f)}),getSchoolList:t.a.mark(function f(l,s){var p,u,m,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p=l.payload,u=l.callback,m=s.call,o=s.put,b.next=4,m(i.kb,p);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{schoolList:Object(n.a)({},h.school_names)}});case 7:return b.abrupt("return",h.school_names);case 8:case"end":return b.stop()}},f)}),searchSchoolTeacherList:t.a.mark(function f(l,s){var p,u,m,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p=l.payload,u=l.callback,m=s.call,o=s.put,b.next=4,m(i.wb,p);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{searchMemberList:Object(n.a)({},h)}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},f)}),getAllTaskList:t.a.mark(function f(l,s){var p,u,m,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p=l.payload,u=l.callback,m=s.call,o=s.put,b.next=4,m(i.B,p);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{taskList:Object(a.a)(h.tasks)}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},f)}),updateTaskPosition:t.a.mark(function f(l,s){var p,u,m,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p=l.payload,u=l.callback,m=s.call,o=s.put,b.next=4,m(i.Hb,p);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{actionTabs:{key:""}}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},f)}),setActionTabs:t.a.mark(function f(l,s){var p,u,m;return t.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return p=l.payload,u=s.call,m=s.put,h.next=4,m({type:"save",payload:{actionTabs:Object(n.a)({},p)}});case 4:case"end":return h.stop()}},f)})},reducers:{save:function(l,s){return Object(n.a)(Object(n.a)({},l),s.payload)}},subscriptions:{setup:function(l){var s=l.dispatch,p=l.history;return p.listen(function(u){var m=u.pathname;m==="/"&&s({type:"query"})})}}};g.a=v},"5wUe":function(x,g,e){var a=e("Q9SF"),n=e("MIOZ"),r=e("mGKP"),t=e("h0XC");function i(v,f){return a(v)||n(v,f)||r(v,f)||t()}x.exports=i},"5yw/":function(x,g){x.exports={}},"66pj":function(x,g,e){var a=e("MMxC"),n=e("u93E"),r=Math.abs,t=Math.pow;a({target:"Math",stat:!0},{cbrt:function(v){return n(v=+v)*t(r(v),1/3)}})},"6CvP":function(x,g,e){"use strict";e.d(g,"a",function(){return i}),e.d(g,"c",function(){return f}),e.d(g,"e",function(){return s}),e.d(g,"d",function(){return u}),e.d(g,"b",function(){return o});var a=e("9og8"),n=e("WmNS"),r=e.n(n),t=e("ErOA");function i(){return v.apply(this,arguments)}function v(){return v=Object(a.a)(r.a.mark(function c(){return r.a.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.abrupt("return",Object(t.a)("/api/home/index.json",{method:"Get"}));case 1:case"end":return j.stop()}},c)})),v.apply(this,arguments)}function f(c){return l.apply(this,arguments)}function l(){return l=Object(a.a)(r.a.mark(function c(b){return r.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",Object(t.a)("/api/courses/apply_to_join_course.json",{method:"post",body:b}));case 1:case"end":return O.stop()}},c)})),l.apply(this,arguments)}function s(c){return p.apply(this,arguments)}function p(){return p=Object(a.a)(r.a.mark(function c(b){return r.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",Object(t.a)("/api/project_applies.json",{method:"post",body:b}));case 1:case"end":return O.stop()}},c)})),p.apply(this,arguments)}function u(c){return m.apply(this,arguments)}function m(){return m=Object(a.a)(r.a.mark(function c(b){return r.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",Object(t.a)("/api/users/home_notice.json",{method:"Get"}));case 1:case"end":return O.stop()}},c)})),m.apply(this,arguments)}function o(c){return h.apply(this,arguments)}function h(){return h=Object(a.a)(r.a.mark(function c(b){return r.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",Object(t.a)("/api/users/view_notice.json",{method:"post",body:b}));case 1:case"end":return O.stop()}},c)})),h.apply(this,arguments)}},"6FCX":function(x,g,e){var a=e("MMxC"),n=e("qA1w");a({target:"WeakMap",stat:!0},{of:n})},"6YAi":function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("yMj0"),i={namespace:"announcement",state:{name:"\u666E\u901A\u8BD5\u5377\uFF0C\u968F\u673A\u8BD5\u5377\u8BE6\u60C5\u9875\u9762",loading:!0,actionTabs:{}},effects:{informDown:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.a,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),informUp:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.b,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),setActionTabs:r.a.mark(function v(f,l){var s,p,u;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=f.payload,p=l.call,u=l.put,o.next=4,u({type:"save",payload:{actionTabs:Object(a.a)({},s)}});case 4:case"end":return o.stop()}},v)})},reducers:{save:function(f,l){return Object(a.a)(Object(a.a)({},f),l.payload)}},subscriptions:{setup:function(f){var l=f.dispatch,s=f.history}}};g.a=i},"6cL7":function(x,g,e){"use strict";var a=e("ENif"),n=e("f1E4"),r=e("FCfD"),t=e("UPML"),i=e("dagG");a("search",1,function(v,f,l){return[function(p){var u=r(this),m=p==null?void 0:p[v];return m!==void 0?m.call(p,u):new RegExp(p)[v](String(u))},function(s){var p=l(f,s,this);if(p.done)return p.value;var u=n(s),m=String(this),o=u.lastIndex;t(o,0)||(u.lastIndex=0);var h=i(u,m);return t(u.lastIndex,o)||(u.lastIndex=o),h===null?-1:h.index}]})},"6fQ5":function(x,g,e){"use strict";e.d(g,"a",function(){return n}),e.d(g,"b",function(){return t});var a=e("k1fw"),n=function(v){return v==null?void 0:v.map(function(f){var l=(f.sub_disciplines||[]).map(function(s){return{value:s.id,label:s.name}});return{value:f.id,label:f.name,children:l}})},r={1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D",7:"\u4E03",8:"\u516B"},t=function(v){if(!v)return;var f=v||{},l=f.all_questions_count,s=f.all_score,p=f.single_questions,u=f.multiple_questions,m=f.judgement_questions,o=f.program_questions,h=f.completion_questions,c=f.subjective_questions,b=f.practical_questions,j=f.combination_questions,O=[Object(a.a)({type:"SINGLE",name:"\u5355\u9009\u9898"},p),Object(a.a)({type:"MULTIPLE",name:"\u591A\u9009\u9898"},u),Object(a.a)({type:"COMPLETION",name:"\u586B\u7A7A\u9898"},h),Object(a.a)({type:"JUDGMENT",name:"\u5224\u65AD\u9898"},m),Object(a.a)({type:"SUBJECTIVE",name:"\u7B80\u7B54\u9898"},c),Object(a.a)({type:"PROGRAM",name:"\u7F16\u7A0B\u9898"},o),Object(a.a)({type:"PRACTICAL",name:"\u5B9E\u8BAD\u9898"},b),Object(a.a)({type:"COMBINATION",name:"\u7EC4\u5408\u9898"},j)],C=O.filter(function(S){return S.questions_count>0}).map(function(S,M){return Object(a.a)(Object(a.a)({},S),{number:r[M+1]})});return{all_questions_count:l,all_score:s,questionList:C}}},"6ixQ":function(x,g){x.exports={}},"6koa":function(x,g,e){"use strict";function a(n,r){if(n===r)return!0;if(!n||!r)return!1;var t=Object.keys(n),i=Object.keys(r),v=t.length;if(i.length!==v)return!1;for(var f=0;f0?R[0]||P.data[0].ec_major_school_id:void 0}});case 14:case"end":return G.stop()}},o)}),getYearList:f.a.mark(function o(h,c){var b,j,O,C,S,M,P,R;return f.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return b=h.payload,j=c.call,O=c.put,C=c.select,G.next=4,j(l.k,b.id);case 4:return S=G.sent,G.next=7,C(function(D){return D.user});case 7:if(M=G.sent,P=M.userInfo,!(S&&S.data)){G.next=13;break}return R=s.a.getItem(P==null?void 0:P.login),G.next=13,O({type:"setMajorOrYearDataSource",payload:{key:u[1],value:S.data.map(function(D){return{label:D.year,value:D.ec_year_id}}),active:S.data.length>0?b.firstEnter?R[1]:S.data[0].ec_year_id:void 0}});case 13:case"end":return G.stop()}},o)}),getCourseResults:f.a.mark(function o(h,c){var b,j,O,C,S,M,P,R,z,G,D,F,Oe,le,se,q,Z;return f.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return b=h.payload,j=b===void 0?{}:b,O=c.call,C=c.put,S=c.select,M=j.calc,P=j.page,R=j.per_page,Q.next=5,S(function(_){return _.engineeringEvaluteList});case 5:return z=Q.sent,G=z.headerData,D=z.tabListData,Q.next=10,S(function(_){return _.user});case 10:if(F=Q.sent,Oe=F.userInfo,le=G.active[u[1]],!le){Q.next=26;break}return se={id:le,page:P||1,per_page:R||D.pageSize},M&&(se=Object(t.a)(Object(t.a)({},se),{},{page:D.pageNo})),Q.next=18,O(l.e,se);case 18:if(q=Q.sent,Z=[G.active[u[0]],G.active[u[1]]],s.a.setItem(Oe==null?void 0:Oe.login,Z),!(q&&q.ec_courses)){Q.next=24;break}return Q.next=24,C({type:"setCourseResults",payload:Object(t.a)(Object(t.a)({},D),{},{pageNo:se.page,total:q.count,pageSize:se.per_page||D.pageSize,dataSource:q.ec_courses.map(function(_,Be){return Object(t.a)(Object(t.a)({},_),{},{key:se.page>1?(se.page-1)*se.per_page+Be+1:Be+1})})})});case 24:Q.next=28;break;case 26:return Q.next=28,C({type:"setCourseResults",payload:Object(t.a)(Object(t.a)({},D),{},{pageNo:1,total:0,dataSource:[]})});case 28:case"end":return Q.stop()}},o)}),exportCourse:f.a.mark(function o(h,c){var b,j,O,C,S;return f.a.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return b=h.payload,j=c.call,O=c.select,P.next=4,O(function(R){return R.engineeringEvaluteList});case 4:if(C=P.sent,S=C.headerData,!S.active[u[1]]){P.next=9;break}return P.next=9,j(l.a,S.active[u[1]]);case 9:case"end":return P.stop()}},o)}),compute:f.a.mark(function o(h,c){var b,j,O,C,S,M;return f.a.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return b=h.payload,j=c.call,O=c.put,C=b.all,S=Object(r.a)(b,["all"]),R.next=5,j(C?l.m:l.n,S);case 5:if(M=R.sent,!(M&&M.status===0)){R.next=12;break}return n.b.success("\u8BA1\u7B97\u5B8C\u6210"),R.next=10,O({type:"getCourseResults",payload:{calc:!0}});case 10:R.next=13;break;case 12:n.b.error(M.message);case 13:case"end":return R.stop()}},o)})},reducers:{save:function(h,c){return Object(t.a)(Object(t.a)({},h),c.payload)},setMajorOrYearDataSource:function(h,c){var b=c.payload,j=h.headerData.active;return b.active&&(j=Object(t.a)(Object(t.a)({},j),{},Object(i.a)({},b.key,b.active))),Object(t.a)(Object(t.a)({},h),{},{headerData:Object(t.a)(Object(t.a)({},h.headerData),{},{dataSource:Object(t.a)(Object(t.a)({},h.headerData.dataSource),{},Object(i.a)({},b.key,Object(t.a)(Object(t.a)({},h.headerData.dataSource[b.key]),{},{dataList:b.value}))),active:j})})},setMajorOrYearActive:function(h,c){var b=c.payload;return Object(t.a)(Object(t.a)({},h),{},{headerData:Object(t.a)(Object(t.a)({},h.headerData),{},{active:Object(t.a)(Object(t.a)({},h.headerData.active),{},Object(i.a)({},b.key,b.value))})})},setCourseResults:function(h,c){var b=c.payload;return Object(t.a)(Object(t.a)({},h),{},{tabListData:Object(t.a)(Object(t.a)({},h.tabListData),b)})}},subscriptions:{setup:function(h){var c=h.dispatch,b=h.history;return b.listen(function(j){var O=j.pathname;O==="/"&&c({type:"query"})})}}};g.a=m},"7VZV":function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("9og8"),i=e("ErOA");function v(){return f.apply(this,arguments)}function f(){return f=Object(t.a)(r.a.mark(function h(){return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.abrupt("return",Object(i.a)("/api/setting.json",{method:"Get"}));case 1:case"end":return b.stop()}},h)})),f.apply(this,arguments)}function l(){return s.apply(this,arguments)}function s(){return s=Object(t.a)(r.a.mark(function h(){return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.abrupt("return",Object(i.a)("/api/users/system_update.json",{method:"Get"}));case 1:case"end":return b.stop()}},h)})),s.apply(this,arguments)}var p=e("m3rI"),u={namespace:"globalSetting",state:{name:"\u5168\u5C40\u914D\u7F6E",loading:!0,isIlearning:window.location.host.indexOf("learning.")>-1,isPaZhou:window.location.host.indexOf("local-pazhou.")>-1,showFooter:!0,showHeader:!0,showHeaderFooter:!0,showHeaderFixed:!1,onlyShowBackTop:!0,onlyShowBackTopIcons:!0,operateModel:!1,operateModelPath:"",showQuestionBackTop:!1,theme:"default",globalLoading:{show:!1,text:""},updateData:{end_time:"",start_time:"",subject:"",system_score:"",system_update:!1}},effects:{query:r.a.mark(function h(c,b){var j,O,C,S;return r.a.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return j=c.payload,O=b.call,C=b.put,P.next=4,O(v,j);case 4:return S=P.sent,o(S),P.next=8,C({type:"save",payload:Object(a.a)({},S)});case 8:case"end":return P.stop()}},h)}),getSystemUpdate:r.a.mark(function h(c,b){var j,O,C,S;return r.a.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return j=c.payload,O=b.call,C=b.put,P.next=4,O(l,j);case 4:return S=P.sent,P.next=7,C({type:"save",payload:{updateData:Object(a.a)({},S)}});case 7:case"end":return P.stop()}},h)}),setTheme:r.a.mark(function h(c,b){var j,O,C,S;return r.a.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return j=c.payload,O=b.call,C=b.put,P.next=4,O(l,j);case 4:return S=P.sent,P.next=7,C({type:"save",payload:{theme:j||"default"}});case 7:case"end":return P.stop()}},h)}),setGlobalLoading:r.a.mark(function h(c,b){var j,O,C;return r.a.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return j=c.payload,O=b.call,C=b.put,M.next=4,C({type:"save",payload:{globalLoading:Object(a.a)({},j)}});case 4:case"end":return M.stop()}},h)}),headerToggle:r.a.mark(function h(c,b){var j,O,C;return r.a.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return j=c.payload,O=b.call,C=b.put,M.next=4,C({type:"save",payload:{showHeader:j}});case 4:case"end":return M.stop()}},h)}),footerToggle:r.a.mark(function h(c,b){var j,O,C;return r.a.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return j=c.payload,O=b.call,C=b.put,M.next=4,C({type:"save",payload:{showFooter:j}});case 4:case"end":return M.stop()}},h)}),headerFooterToggle:r.a.mark(function h(c,b){var j,O,C;return r.a.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return j=c.payload,O=b.call,C=b.put,M.next=4,C({type:"save",payload:{showHeaderFooter:j}});case 4:case"end":return M.stop()}},h)}),headerFixedToggle:r.a.mark(function h(c,b){var j,O,C;return r.a.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return j=c.payload,O=b.call,C=b.put,M.next=4,C({type:"save",payload:{showHeaderFixed:j}});case 4:case"end":return M.stop()}},h)}),onlyShowBackTopToggle:r.a.mark(function h(c,b){var j,O,C;return r.a.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return j=c.payload,O=b.call,C=b.put,M.next=4,C({type:"save",payload:{onlyShowBackTop:j}});case 4:case"end":return M.stop()}},h)}),onlyShowBackTopIconToggle:r.a.mark(function h(c,b){var j,O,C;return r.a.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return j=c.payload,O=b.call,C=b.put,M.next=4,C({type:"save",payload:{onlyShowBackTopIcons:j}});case 4:case"end":return M.stop()}},h)}),setOperateModel:r.a.mark(function h(c,b){var j,O,C;return r.a.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return j=c.payload,O=b.call,C=b.put,M.next=4,C({type:"save",payload:{operateModel:j}});case 4:case"end":return M.stop()}},h)}),setOperateModelPath:r.a.mark(function h(c,b){var j,O,C;return r.a.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return j=c.payload,O=b.call,C=b.put,M.next=4,C({type:"save",payload:{operateModelPath:j}});case 4:case"end":return M.stop()}},h)}),setShowQuestionBackTop:r.a.mark(function h(c,b){var j,O,C;return r.a.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return j=c.payload,O=b.call,C=b.put,M.next=4,C({type:"save",payload:{showQuestionBackTop:j}});case 4:case"end":return M.stop()}},h)})},reducers:{save:function(c,b){return Object(a.a)(Object(a.a)({},c),b.payload)}},subscriptions:{setup:function(c){var b=c.dispatch,j=c.history;return j.listen(function(O){var C=O.pathname;C==="/"})}}},m=g.a=u,o=function(){var c,b,j,O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(c=O.setting)===null||c===void 0||c.tab_logo_url;var C=document.createElement("link"),S=document.getElementById("dynamic-favicon");C.id="dynamic-favicon",C.rel="shortcut icon",C.href=(b=O.setting)!==null&&b!==void 0&&b.tab_logo_url?"".concat(p.a.IMG_SERVER,"/").concat((j=O.setting)===null||j===void 0?void 0:j.tab_logo_url):"".concat(p.a.IMG_SERVER,"/react/build/./favicon.ico"),S&&document.head.removeChild(S),document.head.appendChild(C)}},"7W2i":function(x,g,e){var a=e("SksO");function n(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&a(r,t)}x.exports=n,x.exports.__esModule=!0,x.exports.default=x.exports},"7bO/":function(x,g,e){"use strict";e.d(g,"b",function(){return a});var a={};e.r(a),e.d(a,"take",function(){return Yt}),e.d(a,"takem",function(){return pn}),e.d(a,"put",function(){return nn}),e.d(a,"all",function(){return Cn}),e.d(a,"race",function(){return rn}),e.d(a,"call",function(){return cn}),e.d(a,"apply",function(){return fn}),e.d(a,"cps",function(){return xn}),e.d(a,"fork",function(){return En}),e.d(a,"spawn",function(){return Tt}),e.d(a,"join",function(){return jt}),e.d(a,"cancel",function(){return Mt}),e.d(a,"select",function(){return Ft}),e.d(a,"actionChannel",function(){return De}),e.d(a,"cancelled",function(){return _e}),e.d(a,"flush",function(){return ne}),e.d(a,"getContext",function(){return Me}),e.d(a,"setContext",function(){return J}),e.d(a,"takeEvery",function(){return kr}),e.d(a,"takeLatest",function(){return Jn}),e.d(a,"throttle",function(){return Nr});var n=Object.assign||function(ae){for(var oe=1;oe=0&&ae.splice(Ie,1)}var P={from:function(oe){var Ie=Array(oe.length);for(var ze in oe)O(oe,ze)&&(Ie[ze]=oe[ze]);return Ie}};function R(){var ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},oe=n({},ae),Ie=new Promise(function(ze,ht){oe.resolve=ze,oe.reject=ht});return oe.promise=Ie,oe}function z(ae){for(var oe=[],Ie=0;Ie1&&arguments[1]!==void 0?arguments[1]:!0,Ie=void 0,ze=new Promise(function(ht){Ie=setTimeout(function(){return ht(oe)},ae)});return ze[l]=function(){return clearTimeout(Ie)},ze}function D(){var ae,oe=!0,Ie=void 0,ze=void 0;return ae={},ae[i]=!0,ae.isRunning=function(){return oe},ae.result=function(){return Ie},ae.error=function(){return ze},ae.setRunning=function(Pt){return oe=Pt},ae.setResult=function(Pt){return Ie=Pt},ae.setError=function(Pt){return ze=Pt},ae}function F(){var ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return function(){return++ae}}var Oe=F(),le=function(oe){throw oe},se=function(oe){return{value:oe,done:!0}};function q(ae){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le,Ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",ze=arguments[3],ht={name:Ie,next:ae,throw:oe,return:se};return ze&&(ht[v]=!0),typeof Symbol!="undefined"&&(ht[Symbol.iterator]=function(){return ht}),ht}function Z(ae,oe){var Ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";typeof window=="undefined"?console.log("redux-saga "+ae+": "+oe+` +`),L}return Object(v.a)(function(){w.current=xe,te.current=Ae,ce.current=de,Le.current=void 0}),Object(v.a)(function(){function L(){try{var A=ue.getState();if(A===te.current)return;var V=w.current(A);if(Re(V,ce.current))return;ce.current=V,te.current=A}catch(Se){Le.current=Se}N()}return W.onStateChange=L,W.trySubscribe(),L(),function(){return W.tryUnsubscribe()}},[ue,W]),de}function Je(xe){xe===void 0&&(xe=t.a);var Re=xe===t.a?I:function(){return Object(a.useContext)(xe)};return function(K,k){k===void 0&&(k=Ce);var N=Re(),W=N.store,Le=N.subscription,w=Ge(K,k,W,Le);return Object(a.useDebugValue)(w),w}}var gt=Je(),ge=e("i8i4"),be=e("TfIc");Object(be.b)(ge.unstable_batchedUpdates)},"/R3g":function(x,g,e){var a=e("MMxC"),n=e("zTPR"),r=e("ls1J"),t=e("f1E4"),i=e("Acmb"),v=e("IuhT"),f=r.keys,l=r.toKey,s=function(u){var m=[];return v(u,m.push,m),m},p=function(u,m){var o=f(u,m),h=i(u);if(h===null)return o;var c=p(h,m);return c.length?o.length?s(new n(o.concat(c))):c:o};a({target:"Reflect",stat:!0},{getMetadataKeys:function(m){var o=arguments.length<2?void 0:l(arguments[1]);return p(t(m),o)}})},"/dTS":function(x,g,e){var a=e("f1E4"),n=e("cT1L"),r=e("2kyd"),t=r("species");x.exports=function(i,v){var f=a(i).constructor,l;return f===void 0||(l=a(f)[t])==null?v:n(l)}},"/gva":function(x,g,e){"use strict";var a=e("MMxC"),n=e("ukPv"),r=e("kkxG"),t=e("NMFW"),i=e("a5mf"),v=e("IuhT"),f=e("igoe"),l=e("tSXo"),s=e("MVys"),p=e("GPrf"),u=e("kiNa"),m=e("+vfm");x.exports=function(o,h,c){var b=o.indexOf("Map")!==-1,j=o.indexOf("Weak")!==-1,O=b?"set":"add",C=n[o],S=C&&C.prototype,M=C,P={},R=function(le){var se=S[le];t(S,le,le=="add"?function(Z){return se.call(this,Z===0?0:Z),this}:le=="delete"?function(q){return j&&!l(q)?!1:se.call(this,q===0?0:q)}:le=="get"?function(Z){return j&&!l(Z)?void 0:se.call(this,Z===0?0:Z)}:le=="has"?function(Z){return j&&!l(Z)?!1:se.call(this,Z===0?0:Z)}:function(Z,B){return se.call(this,Z===0?0:Z,B),this})};if(r(o,typeof C!="function"||!(j||S.forEach&&!s(function(){new C().entries().next()}))))M=c.getConstructor(h,o,b,O),i.REQUIRED=!0;else if(r(o,!0)){var z=new M,G=z[O](j?{}:-0,1)!=z,D=s(function(){z.has(1)}),F=p(function(le){new C(le)}),Oe=!j&&s(function(){for(var le=new C,se=5;se--;)le[O](se,se);return!le.has(-0)});F||(M=h(function(le,se){f(le,M,o);var q=m(new C,le,M);return se!=null&&v(se,q[O],q,b),q}),M.prototype=S,S.constructor=M),(D||Oe)&&(R("delete"),R("has"),b&&R("get")),(Oe||G)&&R(O),j&&S.clear&&delete S.clear}return P[o]=M,a({global:!0,forced:M!=C},P),u(M,o),j||c.setStrong(M,o,b),M}},"/mKc":function(x,g,e){"use strict";var a=e("MMxC"),n=e("Zcjx"),r=e("29mP"),t=e("f1E4"),i=e("cT1L"),v=e("7BAe"),f=e("/dTS"),l=e("jbR1"),s=e("IuhT");a({target:"Set",proto:!0,real:!0,forced:n},{filter:function(u){var m=t(this),o=l(m),h=v(u,arguments.length>1?arguments[1]:void 0,3),c=new(f(m,r("Set"))),b=i(c.add);return s(o,function(j){h(j,j,m)&&b.call(c,j)},void 0,!1,!0),c}})},"/vMi":function(x,g,e){"use strict";var a=e("/gva"),n=e("uz3g");a("WeakSet",function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},n)},"/yC2":function(x,g,e){var a=e("tny8"),n=e("MVys"),r=e("8w+9");x.exports=!a&&!n(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!=7})},0:function(x,g,e){x.exports=e("tB8F")},"02UQ":function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("B3m4"),i={namespace:"graduation",state:{name:"\u6BD5\u4E1A\u8BBE\u8BA1",loading:!0,actionTabs:{},detailList:{},detailTaskList:{},replyList:{},detail:{},addTopicData:{},editTopicData:{},editTasksData:{}},effects:{getTopisDetailList:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.o,s);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detailList:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),getTasksListDetail:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.m,s);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detailTaskList:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),getTopisDetail:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.n,s);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detail:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),getTasksDetail:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.l,s);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{tasksDetail:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),refuseTopic:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.p,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),agreeTopic:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.d,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getReplyList:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.k,s);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{replyList:Object(a.a)({},o)}});case 7:case"end":return c.stop()}},v)}),createReply:r.a.mark(function v(f,l){var s,p,u,m;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,h.next=4,u(t.e,s);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},v)}),replyLike:r.a.mark(function v(f,l){var s,p,u,m;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,h.next=4,u(t.q,s);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},v)}),replyUnLike:r.a.mark(function v(f,l){var s,p,u,m;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,h.next=4,u(t.r,s);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},v)}),deleteReply:r.a.mark(function v(f,l){var s,p,u,m;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,h.next=4,u(t.f,s);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},v)}),addTopicDefaultData:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.c,s);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{addTopicData:Object(a.a)({},o)}});case 7:case"end":return c.stop()}},v)}),editTopicDefaultData:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.j,s);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{editTopicData:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),editTasksDefaultData:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.h,s);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{editTasksData:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),addTopic:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.b,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),editTopic:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.i,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),addTasks:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.a,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),editTasks:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.g,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),setActionTabs:r.a.mark(function v(f,l){var s,p,u;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=f.payload,p=l.call,u=l.put,o.next=4,u({type:"save",payload:{actionTabs:Object(a.a)({},s)}});case 4:case"end":return o.stop()}},v)})},reducers:{save:function(f,l){return Object(a.a)(Object(a.a)({},f),l.payload)}},subscriptions:{setup:function(f){var l=f.dispatch,s=f.history}}};g.a=i},"0BeC":function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("Xq8v"),i={namespace:"attachment",state:{name:"\u8D44\u6E90",loading:!0,detail:{},actionTabs:{}},effects:{allAttachment:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.a,s);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{allList:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),mineAttachment:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.d,s);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{mineList:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),fileImport:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.b,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getDetail:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.c,s);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detail:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),updateVisits:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.f,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),setActionTabs:r.a.mark(function v(f,l){var s,p,u;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=f.payload,p=l.call,u=l.put,o.next=4,u({type:"save",payload:{actionTabs:Object(a.a)({},s)}});case 4:case"end":return o.stop()}},v)})},reducers:{save:function(f,l){return Object(a.a)(Object(a.a)({},f),l.payload)}},subscriptions:{setup:function(f){var l=f.dispatch,s=f.history}}};g.a=i},"0O5u":function(x,g,e){"use strict";var a=e("MMxC"),n=e("MVys"),r=e("Un+d"),t=e("tSXo"),i=e("cTDu"),v=e("oa35"),f=e("arQb"),l=e("nMuc"),s=e("jMDO"),p=e("2kyd"),u=e("hRxt"),m=p("isConcatSpreadable"),o=9007199254740991,h="Maximum allowed index exceeded",c=u>=51||!n(function(){var C=[];return C[m]=!1,C.concat()[0]!==C}),b=s("concat"),j=function(C){if(!t(C))return!1;var S=C[m];return S!==void 0?!!S:r(C)},O=!c||!b;a({target:"Array",proto:!0,forced:O},{concat:function(S){var M=i(this),P=l(M,0),R=0,z,G,D,F,Oe;for(z=-1,D=arguments.length;zo)throw TypeError(h);for(G=0;G=o)throw TypeError(h);f(P,R++,Oe)}return P.length=R,P}})},"0Owb":function(x,g,e){"use strict";e.d(g,"a",function(){return a});function a(){return a=Object.assign||function(n){for(var r=1;r1;){var O=j.pop(),C=O.obj[O.prop];if(r(C)){for(var S=[],M=0;M=48&&G<=57||G>=65&&G<=90||G>=97&&G<=122||M===a.RFC1738&&(G===40||G===41)){R+=P.charAt(z);continue}if(G<128){R=R+t[G];continue}if(G<2048){R=R+(t[192|G>>6]+t[128|G&63]);continue}if(G<55296||G>=57344){R=R+(t[224|G>>12]+t[128|G>>6&63]+t[128|G&63]);continue}z+=1,G=65536+((G&1023)<<10|P.charCodeAt(z)&1023),R+=t[240|G>>18]+t[128|G>>12&63]+t[128|G>>6&63]+t[128|G&63]}return R},u=function(j){for(var O=[{obj:{o:j},prop:"o"}],C=[],S=0;S1?arguments[1]:void 0,h=o!==void 0,c=f(p),b=0,j,O,C,S,M,P;if(h&&(o=a(o,m>2?arguments[2]:void 0,2)),c!=null&&!(u==Array&&t(c)))for(S=c.call(p),M=S.next,O=new u;!(C=M.call(S)).done;b++)P=h?r(S,o,[C.value,b],!0):C.value,v(O,b,P);else for(j=i(p.length),O=new u(j);j>b;b++)P=h?o(p[b],b):p[b],v(O,b,P);return O.length=b,O}},"1OyB":function(x,g,e){"use strict";e.d(g,"a",function(){return a});function a(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}},"1W/9":function(x,g,e){"use strict";var a=e("1OyB"),n=e("vuIU"),r=e("Ji7U"),t=e("LK+K"),i=e("U8pU"),v=e("q1tI"),f=e("wgJM"),l=e("QC+M"),s=e("MNnm"),p=e("qx4F");function u(se){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!se)return{};var Z=q.element,B=Z===void 0?document.body:Z,Q={},_=Object.keys(se);return _.forEach(function(Be){Q[Be]=B.style[Be]}),_.forEach(function(Be){B.style[Be]=se[Be]}),Q}var m=u;function o(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var h={},c=function(se){if(!o()&&!se)return;var q="ant-scrolling-effect",Z=new RegExp("".concat(q),"g"),B=document.body.className;if(se){if(!Z.test(B))return;m(h),h={},document.body.className=B.replace(Z,"").trim();return}var Q=Object(p.a)();if(Q&&(h=m({position:"relative",width:"calc(100% - ".concat(Q,"px)")}),!Z.test(B))){var _="".concat(B," ").concat(q);document.body.className=_.trim()}},b=e("KQm4"),j=[],O="ant-scrolling-effect",C=new RegExp("".concat(O),"g"),S=0,M=new Map,P=function se(q){var Z=this;Object(a.a)(this,se),this.lockTarget=void 0,this.options=void 0,this.getContainer=function(){var B;return(B=Z.options)===null||B===void 0?void 0:B.container},this.reLock=function(B){var Q=j.find(function(_){var Be=_.target;return Be===Z.lockTarget});Q&&Z.unLock(),Z.options=B,Q&&(Q.options=B,Z.lock())},this.lock=function(){var B;if(j.some(function(ct){var We=ct.target;return We===Z.lockTarget}))return;if(j.some(function(ct){var We,Ue=ct.options;return(Ue==null?void 0:Ue.container)===((We=Z.options)===null||We===void 0?void 0:We.container)})){j=[].concat(Object(b.a)(j),[{target:Z.lockTarget,options:Z.options}]);return}var Q=0,_=((B=Z.options)===null||B===void 0?void 0:B.container)||document.body;(_===document.body&&window.innerWidth-document.documentElement.clientWidth>0||_.scrollHeight>_.clientHeight)&&(Q=Object(p.a)());var Be=_.className;if(j.filter(function(ct){var We,Ue=ct.options;return(Ue==null?void 0:Ue.container)===((We=Z.options)===null||We===void 0?void 0:We.container)}).length===0&&M.set(_,m({width:Q!==0?"calc(100% - ".concat(Q,"px)"):void 0,overflow:"hidden",overflowX:"hidden",overflowY:"hidden"},{element:_})),!C.test(Be)){var Ke="".concat(Be," ").concat(O);_.className=Ke.trim()}j=[].concat(Object(b.a)(j),[{target:Z.lockTarget,options:Z.options}])},this.unLock=function(){var B,Q=j.find(function(Ke){var ct=Ke.target;return ct===Z.lockTarget});if(j=j.filter(function(Ke){var ct=Ke.target;return ct!==Z.lockTarget}),!Q||j.some(function(Ke){var ct,We=Ke.options;return(We==null?void 0:We.container)===((ct=Q.options)===null||ct===void 0?void 0:ct.container)}))return;var _=((B=Z.options)===null||B===void 0?void 0:B.container)||document.body,Be=_.className;if(!C.test(Be))return;m(M.get(_),{element:_}),M.delete(_),_.className=_.className.replace(C,"").trim()},this.lockTarget=S++,this.options=q},R=0,z=Object(s.a)();function G(){return 0}var D={},F=function(q){if(!z)return null;if(q){if(typeof q=="string")return document.querySelectorAll(q)[0];if(typeof q=="function")return q();if(Object(i.a)(q)==="object"&&q instanceof window.HTMLElement)return q}return document.body},Oe=function(se){Object(r.a)(Z,se);var q=Object(t.a)(Z);function Z(B){var Q;return Object(a.a)(this,Z),Q=q.call(this,B),Q.container=void 0,Q.componentRef=v.createRef(),Q.rafId=void 0,Q.scrollLocker=void 0,Q.renderComponent=void 0,Q.updateScrollLocker=function(_){var Be=_||{},Ke=Be.visible,ct=Q.props,We=ct.getContainer,Ue=ct.visible;Ue&&Ue!==Ke&&z&&F(We)!==Q.scrollLocker.getContainer()&&Q.scrollLocker.reLock({container:F(We)})},Q.updateOpenCount=function(_){var Be=_||{},Ke=Be.visible,ct=Be.getContainer,We=Q.props,Ue=We.visible,$=We.getContainer;Ue!==Ke&&z&&F($)===document.body&&(Ue&&!Ke?R+=1:_&&(R-=1));var ie=typeof $=="function"&&typeof ct=="function";(ie?$.toString()!==ct.toString():$!==ct)&&Q.removeCurrentContainer()},Q.attachToParent=function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(_||Q.container&&!Q.container.parentNode){var Be=F(Q.props.getContainer);return Be?(Be.appendChild(Q.container),!0):!1}return!0},Q.getContainer=function(){return z?(Q.container||(Q.container=document.createElement("div"),Q.attachToParent(!0)),Q.setWrapperClassName(),Q.container):null},Q.setWrapperClassName=function(){var _=Q.props.wrapperClassName;Q.container&&_&&_!==Q.container.className&&(Q.container.className=_)},Q.removeCurrentContainer=function(){var _,Be;(_=Q.container)===null||_===void 0||((Be=_.parentNode)===null||Be===void 0)||Be.removeChild(Q.container)},Q.switchScrollingEffect=function(){R===1&&!Object.keys(D).length?(c(),D=m({overflow:"hidden",overflowX:"hidden",overflowY:"hidden"})):R||(m(D),D={},c(!0))},Q.scrollLocker=new P({container:F(B.getContainer)}),Q}return Object(n.a)(Z,[{key:"componentDidMount",value:function(){var Q=this;this.updateOpenCount(),this.attachToParent()||(this.rafId=Object(f.a)(function(){Q.forceUpdate()}))}},{key:"componentDidUpdate",value:function(Q){this.updateOpenCount(Q),this.updateScrollLocker(Q),this.setWrapperClassName(),this.attachToParent()}},{key:"componentWillUnmount",value:function(){var Q=this.props,_=Q.visible,Be=Q.getContainer;z&&F(Be)===document.body&&(R=_&&R?R-1:R),this.removeCurrentContainer(),f.a.cancel(this.rafId)}},{key:"render",value:function(){var Q=this.props,_=Q.children,Be=Q.forceRender,Ke=Q.visible,ct=null,We={getOpenCount:function(){return R},getContainer:this.getContainer,switchScrollingEffect:this.switchScrollingEffect,scrollLocker:this.scrollLocker};return(Be||Ke||this.componentRef.current)&&(ct=v.createElement(l.a,{getContainer:this.getContainer,ref:this.componentRef},_(We))),ct}}]),Z}(v.Component),le=g.a=Oe},"1WJl":function(x,g,e){"use strict";x.exports=function a(n,r){if(n===r)return!0;if(n&&r&&typeof n=="object"&&typeof r=="object"){if(n.constructor!==r.constructor)return!1;var t,i,v;if(Array.isArray(n)){if(t=n.length,t!=r.length)return!1;for(i=t;i--!==0;)if(!a(n[i],r[i]))return!1;return!0}if(n.constructor===RegExp)return n.source===r.source&&n.flags===r.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===r.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===r.toString();if(v=Object.keys(n),t=v.length,t!==Object.keys(r).length)return!1;for(i=t;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,v[i]))return!1;for(i=t;i--!==0;){var f=v[i];if(!a(n[f],r[f]))return!1}return!0}return n!==n&&r!==r}},"1aI8":function(x,g,e){var a=e("ZkJ9"),n=e("ukPv"),r=e("tSXo"),t=e("lz10"),i=e("jtLI"),v=e("CjUg"),f=e("6ixQ"),l=n.WeakMap,s,p,u,m=function(C){return u(C)?p(C):s(C,{})},o=function(C){return function(S){var M;if(!r(S)||(M=p(S)).type!==C)throw TypeError("Incompatible receiver, "+C+" required");return M}};if(a){var h=new l,c=h.get,b=h.has,j=h.set;s=function(C,S){return j.call(h,C,S),S},p=function(C){return c.call(h,C)||{}},u=function(C){return b.call(h,C)}}else{var O=v("state");f[O]=!0,s=function(C,S){return t(C,O,S),S},p=function(C){return i(C,O)?C[O]:{}},u=function(C){return i(C,O)}}x.exports={set:s,get:p,has:u,enforce:m,getterFor:o}},"1cmj":function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("9og8"),i=e("ErOA");function v(m){return f.apply(this,arguments)}function f(){return f=Object(t.a)(r.a.mark(function m(o){return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",Object(i.a)("/api/shixuns/new.json",{method:"Get",params:o}));case 1:case"end":return c.stop()}},m)})),f.apply(this,arguments)}function l(m){return s.apply(this,arguments)}function s(){return s=Object(t.a)(r.a.mark(function m(o){return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",Object(i.a)("/api/shixuns/".concat(o.id,"/required_status.json"),{method:"Get",params:{}}));case 1:case"end":return c.stop()}},m)})),s.apply(this,arguments)}var p={namespace:"practiceSetting",state:{data:{},is_published:!0,updateIndex:1,id:"",questionName:"",base_info_warning:!1,challenges_warning:!1,repository_warning:!1,mirror_warning:!1,service_warning:!1,selectQuestionParams:{},newQuestion:null,user_name:"",user_image_url:"",title:"",windows_vnc:!0,isExistComplete:!1,sideBar:{tabsActive:"",selectPath:"",confirmLeave:!1}},effects:{setParams:r.a.mark(function m(o,h){var c,b,j;return r.a.wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return c=o.payload,b=h.call,j=h.put,C.next=4,j({type:"save",payload:Object(a.a)({},c)});case 4:case"end":return C.stop()}},m)}),getTestData:r.a.mark(function m(o,h){var c,b,j,O;return r.a.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return c=o.payload,b=h.call,j=h.put,S.next=4,b(v,c);case 4:return O=S.sent,S.next=7,j({type:"save",payload:{data:O}});case 7:case"end":return S.stop()}},m)}),setUpdateIndex:r.a.mark(function m(o,h){var c,b,j;return r.a.wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return c=o.payload,b=h.call,j=h.put,C.next=4,j({type:"save",payload:{updateIndex:Math.random()}});case 4:case"end":return C.stop()}},m)}),getCommonData:r.a.mark(function m(o,h){var c,b,j,O;return r.a.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return c=o.payload,b=h.call,j=h.put,S.next=4,b(l,c);case 4:return O=S.sent,S.next=7,j({type:"save",payload:Object(a.a)({},O.data)});case 7:case"end":return S.stop()}},m)}),setSideBarTabs:r.a.mark(function m(o,h){var c,b,j;return r.a.wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return c=o.payload,b=h.call,j=h.put,C.next=4,j({type:"sideBar",payload:Object(a.a)({},c)});case 4:case"end":return C.stop()}},m)})},reducers:{save:function(o,h){return Object(a.a)(Object(a.a)({},o),h.payload)},sideBar:function(o,h){return Object(a.a)(Object(a.a)({},o),{},{sideBar:Object(a.a)(Object(a.a)({},o.sideBar),h.payload)})}},subscriptions:{setup:function(o){var h=o.dispatch,c=o.history}}},u=g.a=p},"1jPx":function(x,g,e){"use strict";var a=e("8OQV"),n=e("FVwB").exportTypedArrayStaticMethod,r=e("Sn4z");n("from",r,a)},"1nhP":function(x,g,e){var a=e("m0kY");x.exports=function(n){var r=a(n);if(r<0)throw RangeError("The argument can't be less than 0");return r}},"1qEB":function(x,g,e){"use strict";var a=e("k1fw"),n={namespace:"innovation",state:{visibleModalName:"",hideRemindModal:!0,openForkModalPosition:"forkButton",simpleModalProps:{visible:!1}},reducers:{save:function(t,i){return Object(a.a)(Object(a.a)({},t),i.payload)},openModal:function(t,i){return Object(a.a)(Object(a.a)({},t),{},{visibleModalName:i.payload})},closeModal:function(t){return Object(a.a)(Object(a.a)({},t),{},{visibleModalName:""})},openSimpleModal:function(t,i){return Object(a.a)(Object(a.a)({},t),{},{simpleModalProps:Object(a.a)({visible:!0},i.payload)})},closeSimpleModal:function(t){return Object(a.a)(Object(a.a)({},t),{},{simpleModalProps:{visible:!1}})}}};g.a=n},"1vsH":function(x,g,e){"use strict";e.d(g,"m",function(){return Oe}),e.d(g,"h",function(){return le}),e.d(g,"j",function(){return se}),e.d(g,"z",function(){return Z}),e.d(g,"f",function(){return B}),e.d(g,"e",function(){return Q}),e.d(g,"l",function(){return _}),e.d(g,"c",function(){return Be}),e.d(g,"i",function(){return Ke}),e.d(g,"k",function(){return ct}),e.d(g,"y",function(){return We}),e.d(g,"a",function(){return $}),e.d(g,"X",function(){return I}),e.d(g,"Z",function(){return pe}),e.d(g,"H",function(){return me}),e.d(g,"E",function(){return tt}),e.d(g,"B",function(){return Ce}),e.d(g,"V",function(){return Ge}),e.d(g,"D",function(){return Je}),e.d(g,"S",function(){return gt}),e.d(g,"v",function(){return be}),e.d(g,"w",function(){return ue}),e.d(g,"u",function(){return K}),e.d(g,"t",function(){return k}),e.d(g,"U",function(){return N}),e.d(g,"K",function(){return W}),e.d(g,"O",function(){return ce}),e.d(g,"d",function(){return Y}),e.d(g,"b",function(){return L}),e.d(g,"R",function(){return ke}),e.d(g,"A",function(){return Ne}),e.d(g,"L",function(){return rt}),e.d(g,"G",function(){return bt}),e.d(g,"q",function(){return lt}),e.d(g,"I",function(){return Ct}),e.d(g,"W",function(){return Ot}),e.d(g,"P",function(){return Yt}),e.d(g,"x",function(){return Cn}),e.d(g,"Y",function(){return rn}),e.d(g,"N",function(){return cn}),e.d(g,"C",function(){return fn}),e.d(g,"o",function(){return xn}),e.d(g,"s",function(){return En}),e.d(g,"F",function(){return Tt}),e.d(g,"n",function(){return jt}),e.d(g,"T",function(){return Mt}),e.d(g,"p",function(){return Ft}),e.d(g,"M",function(){return De}),e.d(g,"g",function(){return _e}),e.d(g,"r",function(){return ne}),e.d(g,"J",function(){return J}),e.d(g,"Q",function(){return Pe});var a=e("oBTY"),n=e("miYZ"),r=e("tsqr"),t=e("sRBo"),i=e("kaz8"),v=e("14J3"),f=e("BMrR"),l=e("jCWc"),s=e("kPKH"),p=e("2qtc"),u=e("kLXV"),m=e("9og8"),o=e("k1fw"),h=e("jrin"),c=e("WmNS"),b=e.n(c),j=e("q1tI"),O=e.n(j),C=e("xKgJ"),S=e("s8TD"),M=e("V0Rq"),P=e("bntm"),R={load:"text/html","123":"application/vndlotus-1-2-3","3ds":"image/x-3ds","3g2":"video/3gpp","3ga":"video/3gpp","3gp":"video/3gpp","3gpp":"video/3gpp","602":"application/x-t602","669":"audio/x-mod","7z":"application/x-7z-compressed",a:"application/x-archive",aac:"audio/mp4",abw:"application/x-abiword",abwcrashed:"application/x-abiword",abwgz:"application/x-abiword",ac3:"audio/ac3",ace:"application/x-ace",adb:"text/x-adasrc",ads:"text/x-adasrc",afm:"application/x-font-afm",ag:"image/x-applix-graphics",ai:"application/illustrator",aif:"audio/x-aiff",aifc:"audio/x-aiff",aiff:"audio/x-aiff",al:"application/x-perl",alz:"application/x-alz",amr:"audio/amr",ani:"application/x-navi-animation","anim[1-9j]":"video/x-anim",anx:"application/annodex",ape:"audio/x-ape",arj:"application/x-arj",arw:"image/x-sony-arw",as:"application/x-applix-spreadsheet",asc:"text/plain",asf:"video/x-ms-asf",asp:"application/x-asp",ass:"text/x-ssa",asx:"audio/x-ms-asx",atom:"application/atom+xml",au:"audio/basic",avi:"video/x-msvideo",aw:"application/x-applix-word",awb:"audio/amr-wb",awk:"application/x-awk",axa:"audio/annodex",axv:"video/annodex",bak:"application/x-trash",bcpio:"application/x-bcpio",bdf:"application/x-font-bdf",bib:"text/x-bibtex",bin:"application/octet-stream",blend:"application/x-blender",blender:"application/x-blender",bmp:"image/bmp",bz:"application/x-bzip",bz2:"application/x-bzip",c:"text/x-csrc","c++":"text/x-c++src",cab:"application/vndms-cab-compressed",cb7:"application/x-cb7",cbr:"application/x-cbr",cbt:"application/x-cbt",cbz:"application/x-cbz",cc:"text/x-c++src",cdf:"application/x-netcdf",cdr:"application/vndcorel-draw",cer:"application/x-x509-ca-cert",cert:"application/x-x509-ca-cert",cgm:"image/cgm",chm:"application/x-chm",chrt:"application/x-kchart",class:"application/x-java",cls:"text/x-tex",cmake:"text/x-cmake",cpio:"application/x-cpio",cpiogz:"application/x-cpio-compressed",cpp:"text/x-c++src",cr2:"image/x-canon-cr2",crt:"application/x-x509-ca-cert",crw:"image/x-canon-crw",cs:"text/x-csharp",csh:"application/x-csh",css:"text/css",cssl:"text/css",csv:"text/csv",cue:"application/x-cue",cur:"image/x-win-bitmap",cxx:"text/x-c++src",d:"text/x-dsrc",dar:"application/x-dar",dbf:"application/x-dbf",dc:"application/x-dc-rom",dcl:"text/x-dcl",dcm:"application/dicom",dcr:"image/x-kodak-dcr",dds:"image/x-dds",deb:"application/x-deb",der:"application/x-x509-ca-cert",desktop:"application/x-desktop",dia:"application/x-dia-diagram",diff:"text/x-patch",divx:"video/x-msvideo",djv:"image/vnddjvu",djvu:"image/vnddjvu",dng:"image/x-adobe-dng",doc:"application/msword",docbook:"application/docbook+xml",docm:"application/vndopenxmlformats-officedocumentwordprocessingmldocument",docx:"application/vndopenxmlformats-officedocumentwordprocessingmldocument",dot:"text/vndgraphviz",dsl:"text/x-dsl",dtd:"application/xml-dtd",dtx:"text/x-tex",dv:"video/dv",dvi:"application/x-dvi",dvibz2:"application/x-bzdvi",dvigz:"application/x-gzdvi",dwg:"image/vnddwg",dxf:"image/vnddxf",e:"text/x-eiffel",egon:"application/x-egon",eif:"text/x-eiffel",el:"text/x-emacs-lisp",emf:"image/x-emf",emp:"application/vndemusic-emusic_package",ent:"application/xml-external-parsed-entity",eps:"image/x-eps",epsbz2:"image/x-bzeps",epsgz:"image/x-gzeps",epsf:"image/x-eps",epsfbz2:"image/x-bzeps",epsfgz:"image/x-gzeps",epsi:"image/x-eps",epsibz2:"image/x-bzeps",epsigz:"image/x-gzeps",epub:"application/epub+zip",erl:"text/x-erlang",es:"application/ecmascript",etheme:"application/x-e-theme",etx:"text/x-setext",exe:"application/x-ms-dos-executable",exr:"image/x-exr",ez:"application/andrew-inset",f:"text/x-fortran",f90:"text/x-fortran",f95:"text/x-fortran",fb2:"application/x-fictionbook+xml",fig:"image/x-xfig",fits:"image/fits",fl:"application/x-fluid",flac:"audio/x-flac",flc:"video/x-flic",fli:"video/x-flic",flv:"video/x-flv",flw:"application/x-kivio",fo:"text/x-xslfo",for:"text/x-fortran",g3:"image/fax-g3",gb:"application/x-gameboy-rom",gba:"application/x-gba-rom",gcrd:"text/directory",ged:"application/x-gedcom",gedcom:"application/x-gedcom",gen:"application/x-genesis-rom",gf:"application/x-tex-gf",gg:"application/x-sms-rom",gif:"image/gif",glade:"application/x-glade",gmo:"application/x-gettext-translation",gnc:"application/x-gnucash",gnd:"application/gnunet-directory",gnucash:"application/x-gnucash",gnumeric:"application/x-gnumeric",gnuplot:"application/x-gnuplot",gp:"application/x-gnuplot",gpg:"application/pgp-encrypted",gplt:"application/x-gnuplot",gra:"application/x-graphite",gsf:"application/x-font-type1",gsm:"audio/x-gsm",gtar:"application/x-tar",gv:"text/vndgraphviz",gvp:"text/x-google-video-pointer",gz:"application/x-gzip",h:"text/x-chdr","h++":"text/x-c++hdr",hdf:"application/x-hdf",hh:"text/x-c++hdr",hp:"text/x-c++hdr",hpgl:"application/vndhp-hpgl",hpp:"text/x-c++hdr",hs:"text/x-haskell",htm:"text/html",html:"text/html",hwp:"application/x-hwp",hwt:"application/x-hwt",hxx:"text/x-c++hdr",ica:"application/x-ica",icb:"image/x-tga",icns:"image/x-icns",ico:"image/vndmicrosofticon",ics:"text/calendar",idl:"text/x-idl",ief:"image/ief",iff:"image/x-iff",ilbm:"image/x-ilbm",ime:"text/x-imelody",imy:"text/x-imelody",ins:"text/x-tex",iptables:"text/x-iptables",iso:"application/x-cd-image",iso9660:"application/x-cd-image",it:"audio/x-it",j2k:"image/jp2",jad:"text/vndsunj2meapp-descriptor",jar:"application/x-java-archive",java:"text/x-java",jng:"image/x-jng",jnlp:"application/x-java-jnlp-file",jp2:"image/jp2",jpc:"image/jp2",jpe:"image/jpeg",jpeg:"image/jpeg",jpf:"image/jp2",jpg:"image/jpeg",jpr:"application/x-jbuilder-project",jpx:"image/jp2",js:"application/javascript",json:"application/json",jsonp:"application/jsonp",k25:"image/x-kodak-k25",kar:"audio/midi",karbon:"application/x-karbon",kdc:"image/x-kodak-kdc",kdelnk:"application/x-desktop",kexi:"application/x-kexiproject-sqlite3",kexic:"application/x-kexi-connectiondata",kexis:"application/x-kexiproject-shortcut",kfo:"application/x-kformula",kil:"application/x-killustrator",kino:"application/smil",kml:"application/vndgoogle-earthkml+xml",kmz:"application/vndgoogle-earthkmz",kon:"application/x-kontour",kpm:"application/x-kpovmodeler",kpr:"application/x-kpresenter",kpt:"application/x-kpresenter",kra:"application/x-krita",ksp:"application/x-kspread",kud:"application/x-kugar",kwd:"application/x-kword",kwt:"application/x-kword",la:"application/x-shared-library-la",latex:"text/x-tex",ldif:"text/x-ldif",lha:"application/x-lha",lhs:"text/x-literate-haskell",lhz:"application/x-lhz",log:"text/x-log",ltx:"text/x-tex",lua:"text/x-lua",lwo:"image/x-lwo",lwob:"image/x-lwo",lws:"image/x-lws",ly:"text/x-lilypond",lyx:"application/x-lyx",lz:"application/x-lzip",lzh:"application/x-lha",lzma:"application/x-lzma",lzo:"application/x-lzop",m:"text/x-matlab",m15:"audio/x-mod",m2t:"video/mpeg",m3u:"audio/x-mpegurl",m3u8:"audio/x-mpegurl",m4:"application/x-m4",m4a:"audio/mp4",m4b:"audio/x-m4b",m4v:"video/mp4",mab:"application/x-markaby",man:"application/x-troff-man",mbox:"application/mbox",md:"application/x-genesis-rom",mdb:"application/vndms-access",mdi:"image/vndms-modi",me:"text/x-troff-me",med:"audio/x-mod",metalink:"application/metalink+xml",mgp:"application/x-magicpoint",mid:"audio/midi",midi:"audio/midi",mif:"application/x-mif",minipsf:"audio/x-minipsf",mka:"audio/x-matroska",mkv:"video/x-matroska",ml:"text/x-ocaml",mli:"text/x-ocaml",mm:"text/x-troff-mm",mmf:"application/x-smaf",mml:"text/mathml",mng:"video/x-mng",mo:"application/x-gettext-translation",mo3:"audio/x-mo3",moc:"text/x-moc",mod:"audio/x-mod",mof:"text/x-mof",moov:"video/quicktime",mov:"video/quicktime",movie:"video/x-sgi-movie","mp+":"audio/x-musepack",mp2:"video/mpeg",mp3:"audio/mpeg",mp4:"video/mp4",mpc:"audio/x-musepack",mpe:"video/mpeg",mpeg:"video/mpeg",mpg:"video/mpeg",mpga:"audio/mpeg",mpp:"audio/x-musepack",mrl:"text/x-mrml",mrml:"text/x-mrml",mrw:"image/x-minolta-mrw",ms:"text/x-troff-ms",msi:"application/x-msi",msod:"image/x-msod",msx:"application/x-msx-rom",mtm:"audio/x-mod",mup:"text/x-mup",mxf:"application/mxf",n64:"application/x-n64-rom",nb:"application/mathematica",nc:"application/x-netcdf",nds:"application/x-nintendo-ds-rom",nef:"image/x-nikon-nef",nes:"application/x-nes-rom",nfo:"text/x-nfo",not:"text/x-mup",nsc:"application/x-netshow-channel",nsv:"video/x-nsv",o:"application/x-object",obj:"application/x-tgif",ocl:"text/x-ocl",oda:"application/oda",odb:"application/vndoasisopendocumentdatabase",odc:"application/vndoasisopendocumentchart",odf:"application/vndoasisopendocumentformula",odg:"application/vndoasisopendocumentgraphics",odi:"application/vndoasisopendocumentimage",odm:"application/vndoasisopendocumenttext-master",odp:"application/vndoasisopendocumentpresentation",ods:"application/vndoasisopendocumentspreadsheet",odt:"application/vndoasisopendocumenttext",oga:"audio/ogg",ogg:"video/x-theora+ogg",ogm:"video/x-ogm+ogg",ogv:"video/ogg",ogx:"application/ogg",old:"application/x-trash",oleo:"application/x-oleo",opml:"text/x-opml+xml",ora:"image/openraster",orf:"image/x-olympus-orf",otc:"application/vndoasisopendocumentchart-template",otf:"application/x-font-otf",otg:"application/vndoasisopendocumentgraphics-template",oth:"application/vndoasisopendocumenttext-web",otp:"application/vndoasisopendocumentpresentation-template",ots:"application/vndoasisopendocumentspreadsheet-template",ott:"application/vndoasisopendocumenttext-template",owl:"application/rdf+xml",oxt:"application/vndopenofficeorgextension",p:"text/x-pascal",p10:"application/pkcs10",p12:"application/x-pkcs12",p7b:"application/x-pkcs7-certificates",p7s:"application/pkcs7-signature",pack:"application/x-java-pack200",pak:"application/x-pak",par2:"application/x-par2",pas:"text/x-pascal",patch:"text/x-patch",pbm:"image/x-portable-bitmap",pcd:"image/x-photo-cd",pcf:"application/x-cisco-vpn-settings",pcfgz:"application/x-font-pcf",pcfz:"application/x-font-pcf",pcl:"application/vndhp-pcl",pcx:"image/x-pcx",pdb:"chemical/x-pdb",pdc:"application/x-aportisdoc",pdf:"application/pdf",pdfbz2:"application/x-bzpdf",pdfgz:"application/x-gzpdf",pef:"image/x-pentax-pef",pem:"application/x-x509-ca-cert",perl:"application/x-perl",pfa:"application/x-font-type1",pfb:"application/x-font-type1",pfx:"application/x-pkcs12",pgm:"image/x-portable-graymap",pgn:"application/x-chess-pgn",pgp:"application/pgp-encrypted",php:"application/x-php",php3:"application/x-php",php4:"application/x-php",pict:"image/x-pict",pict1:"image/x-pict",pict2:"image/x-pict",pickle:"application/python-pickle",pk:"application/x-tex-pk",pkipath:"application/pkix-pkipath",pkr:"application/pgp-keys",pl:"application/x-perl",pla:"audio/x-iriver-pla",pln:"application/x-planperfect",pls:"audio/x-scpls",pm:"application/x-perl",png:"image/png",pnm:"image/x-portable-anymap",pntg:"image/x-macpaint",po:"text/x-gettext-translation",por:"application/x-spss-por",pot:"text/x-gettext-translation-template",ppm:"image/x-portable-pixmap",pps:"application/vndms-powerpoint",ppt:"application/vndms-powerpoint",pptm:"application/vndopenxmlformats-officedocumentpresentationmlpresentation",pptx:"application/vndopenxmlformats-officedocumentpresentationmlpresentation",ppz:"application/vndms-powerpoint",prc:"application/x-palm-database",ps:"application/postscript",psbz2:"application/x-bzpostscript",psgz:"application/x-gzpostscript",psd:"image/vndadobephotoshop",psf:"audio/x-psf",psfgz:"application/x-gz-font-linux-psf",psflib:"audio/x-psflib",psid:"audio/prssid",psw:"application/x-pocket-word",pw:"application/x-pw",py:"text/x-python",pyc:"application/x-python-bytecode",pyo:"application/x-python-bytecode",qif:"image/x-quicktime",qt:"video/quicktime",qtif:"image/x-quicktime",qtl:"application/x-quicktime-media-link",qtvr:"video/quicktime",ra:"audio/vndrn-realaudio",raf:"image/x-fuji-raf",ram:"application/ram",rar:"application/x-rar",ras:"image/x-cmu-raster",raw:"image/x-panasonic-raw",rax:"audio/vndrn-realaudio",rb:"application/x-ruby",rdf:"application/rdf+xml",rdfs:"application/rdf+xml",reg:"text/x-ms-regedit",rej:"application/x-reject",rgb:"image/x-rgb",rle:"image/rle",rm:"application/vndrn-realmedia",rmj:"application/vndrn-realmedia",rmm:"application/vndrn-realmedia",rms:"application/vndrn-realmedia",rmvb:"application/vndrn-realmedia",rmx:"application/vndrn-realmedia",roff:"text/troff",rp:"image/vndrn-realpix",rpm:"application/x-rpm",rss:"application/rss+xml",rt:"text/vndrn-realtext",rtf:"application/rtf",rtx:"text/richtext",rv:"video/vndrn-realvideo",rvx:"video/vndrn-realvideo",s3m:"audio/x-s3m",sam:"application/x-amipro",sami:"application/x-sami",sav:"application/x-spss-sav",scm:"text/x-scheme",sda:"application/vndstardivisiondraw",sdc:"application/vndstardivisioncalc",sdd:"application/vndstardivisionimpress",sdp:"application/sdp",sds:"application/vndstardivisionchart",sdw:"application/vndstardivisionwriter",sgf:"application/x-go-sgf",sgi:"image/x-sgi",sgl:"application/vndstardivisionwriter",sgm:"text/sgml",sgml:"text/sgml",sh:"application/x-shellscript",shar:"application/x-shar",shn:"application/x-shorten",siag:"application/x-siag",sid:"audio/prssid",sik:"application/x-trash",sis:"application/vndsymbianinstall",sisx:"x-epoc/x-sisx-app",sit:"application/x-stuffit",siv:"application/sieve",sk:"image/x-skencil",sk1:"image/x-skencil",skr:"application/pgp-keys",slk:"text/spreadsheet",smaf:"application/x-smaf",smc:"application/x-snes-rom",smd:"application/vndstardivisionmail",smf:"application/vndstardivisionmath",smi:"application/x-sami",smil:"application/smil",sml:"application/smil",sms:"application/x-sms-rom",snd:"audio/basic",so:"application/x-sharedlib",spc:"application/x-pkcs7-certificates",spd:"application/x-font-speedo",spec:"text/x-rpm-spec",spl:"application/x-shockwave-flash",spx:"audio/x-speex",sql:"text/x-sql",sr2:"image/x-sony-sr2",src:"application/x-wais-source",srf:"image/x-sony-srf",srt:"application/x-subrip",ssa:"text/x-ssa",stc:"application/vndsunxmlcalctemplate",std:"application/vndsunxmldrawtemplate",sti:"application/vndsunxmlimpresstemplate",stm:"audio/x-stm",stw:"application/vndsunxmlwritertemplate",sty:"text/x-tex",sub:"text/x-subviewer",sun:"image/x-sun-raster",sv4cpio:"application/x-sv4cpio",sv4crc:"application/x-sv4crc",svg:"image/svg+xml",svgz:"image/svg+xml-compressed",swf:"application/x-shockwave-flash",sxc:"application/vndsunxmlcalc",sxd:"application/vndsunxmldraw",sxg:"application/vndsunxmlwriterglobal",sxi:"application/vndsunxmlimpress",sxm:"application/vndsunxmlmath",sxw:"application/vndsunxmlwriter",sylk:"text/spreadsheet",t:"text/troff",t2t:"text/x-txt2tags",tar:"application/x-tar",tarbz:"application/x-bzip-compressed-tar",tarbz2:"application/x-bzip-compressed-tar",targz:"application/x-compressed-tar",tarlzma:"application/x-lzma-compressed-tar",tarlzo:"application/x-tzo",tarxz:"application/x-xz-compressed-tar",tarz:"application/x-tarz",tbz:"application/x-bzip-compressed-tar",tbz2:"application/x-bzip-compressed-tar",tcl:"text/x-tcl",tex:"text/x-tex",texi:"text/x-texinfo",texinfo:"text/x-texinfo",tga:"image/x-tga",tgz:"application/x-compressed-tar",theme:"application/x-theme",themepack:"application/x-windows-themepack",tif:"image/tiff",tiff:"image/tiff",tk:"text/x-tcl",tlz:"application/x-lzma-compressed-tar",tnef:"application/vndms-tnef",tnf:"application/vndms-tnef",toc:"application/x-cdrdao-toc",torrent:"application/x-bittorrent",tpic:"image/x-tga",tr:"text/troff",ts:"application/x-linguist",tsv:"text/tab-separated-values",tta:"audio/x-tta",ttc:"application/x-font-ttf",ttf:"application/x-font-ttf",ttx:"application/x-font-ttx",txt:"text/plain",txz:"application/x-xz-compressed-tar",tzo:"application/x-tzo",ufraw:"application/x-ufraw",ui:"application/x-designer",uil:"text/x-uil",ult:"audio/x-mod",uni:"audio/x-mod",uri:"text/x-uri",url:"text/x-uri",ustar:"application/x-ustar",vala:"text/x-vala",vapi:"text/x-vala",vcf:"text/directory",vcs:"text/calendar",vct:"text/directory",vda:"image/x-tga",vhd:"text/x-vhdl",vhdl:"text/x-vhdl",viv:"video/vivo",vivo:"video/vivo",vlc:"audio/x-mpegurl",vob:"video/mpeg",voc:"audio/x-voc",vor:"application/vndstardivisionwriter",vst:"image/x-tga",wav:"audio/x-wav",wax:"audio/x-ms-asx",wb1:"application/x-quattropro",wb2:"application/x-quattropro",wb3:"application/x-quattropro",wbmp:"image/vndwapwbmp",wcm:"application/vndms-works",wdb:"application/vndms-works",webm:"video/webm",wk1:"application/vndlotus-1-2-3",wk3:"application/vndlotus-1-2-3",wk4:"application/vndlotus-1-2-3",wks:"application/vndms-works",wma:"audio/x-ms-wma",wmf:"image/x-wmf",wml:"text/vndwapwml",wmls:"text/vndwapwmlscript",wmv:"video/x-ms-wmv",wmx:"audio/x-ms-asx",wp:"application/vndwordperfect",wp4:"application/vndwordperfect",wp5:"application/vndwordperfect",wp6:"application/vndwordperfect",wpd:"application/vndwordperfect",wpg:"application/x-wpg",wpl:"application/vndms-wpl",wpp:"application/vndwordperfect",wps:"application/vndms-works",wri:"application/x-mswrite",wrl:"model/vrml",wv:"audio/x-wavpack",wvc:"audio/x-wavpack-correction",wvp:"audio/x-wavpack",wvx:"audio/x-ms-asx",x3f:"image/x-sigma-x3f",xac:"application/x-gnucash",xbel:"application/x-xbel",xbl:"application/xml",xbm:"image/x-xbitmap",xcf:"image/x-xcf",xcfbz2:"image/x-compressed-xcf",xcfgz:"image/x-compressed-xcf",xhtml:"application/xhtml+xml",xi:"audio/x-xi",xla:"application/vndms-excel",xlc:"application/vndms-excel",xld:"application/vndms-excel",xlf:"application/x-xliff",xliff:"application/x-xliff",xll:"application/vndms-excel",xlm:"application/vndms-excel",xls:"application/vndms-excel",xlsm:"application/vndopenxmlformats-officedocumentspreadsheetmlsheet",xlsx:"application/vndopenxmlformats-officedocumentspreadsheetmlsheet",xlt:"application/vndms-excel",xlw:"application/vndms-excel",xm:"audio/x-xm",xmf:"audio/x-xmf",xmi:"text/x-xmi",xml:"application/xml",xpm:"image/x-xpixmap",xps:"application/vndms-xpsdocument",xsl:"application/xml",xslfo:"text/x-xslfo",xslt:"application/xml",xspf:"application/xspf+xml",xul:"application/vndmozillaxul+xml",xwd:"image/x-xwindowdump",xyz:"chemical/x-pdb",xz:"application/x-xz",w2p:"application/w2p",z:"application/x-compress",zabw:"application/x-abiword",zip:"application/zip"},z=e("aCH8"),G=e.n(z),D=e("m3rI"),F=e("dhSg"),Oe=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],le=["\u6B63\u786E","\u9519\u8BEF"],se=["I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII","XIII","XIV","XV","XVI","XVII","XVIII","XIX","XX"],q=function(X){var re={\u5DF2\u622A\u6B62:{class:"tag-style bg-pink ml10"},\u63D0\u4EA4\u4E2D:{class:"tag-style bg-blue ml10"},\u8FDB\u884C\u4E2D:{class:"tag-style bg-blue ml10"},\u672A\u53D1\u5E03:{class:"tag-style bgB8B8B8 ml10"},\u8865\u4EA4\u4E2D:{class:"tag-style bg-blue ml10"}};return X.data&&X.data.map(function(dt,Rt){return O.a.createElement("span",{key:Rt,className:re[dt]&&re[dt].class},dt)})},Z=function(X){var re,dt=(re={},Object(h.a)(re,-1,"\u91CD\u505A\u4E2D"),Object(h.a)(re,0,"\u672A\u5F00\u542F"),Object(h.a)(re,1,"\u672A\u901A\u5173"),Object(h.a)(re,2,"\u6309\u65F6\u901A\u5173"),re);return dt[X]||"\u8FDF\u4EA4\u901A\u5173"},B=function(X){var re,dt,Rt,ut=(re={},Object(h.a)(re,-1,{name:"\u91CD\u505A\u4E2D",class:"c-orange"}),Object(h.a)(re,0,{name:"\u672A\u5F00\u542F",class:"c-black"}),Object(h.a)(re,1,{name:"\u672A\u901A\u5173",class:"c-red"}),Object(h.a)(re,2,{name:"\u6309\u65F6\u901A\u5173",class:"c-green"}),Object(h.a)(re,3,{name:"\u8FDF\u4EA4\u901A\u5173",class:"c-orange"}),re);return O.a.createElement("span",{className:ut==null||((dt=ut[X.status])===null||dt===void 0)?void 0:dt.class},ut==null||((Rt=ut[X.status])===null||Rt===void 0)?void 0:Rt.name)},Q=function(X){var re,dt,Rt,ut=(re={},Object(h.a)(re,-1,{name:"\u91CD\u505A\u4E2D",class:"c-orange",color:"#999999"}),Object(h.a)(re,0,{name:"\u672A\u5F00\u542F",class:"c-black",color:"#999999"}),Object(h.a)(re,1,{name:"\u672A\u901A\u5173",class:"c-red",color:"#d4443d"}),Object(h.a)(re,2,{name:"\u6309\u65F6\u901A\u5173",class:"c-green",color:"#57be40"}),Object(h.a)(re,3,{name:"\u8FDF\u4EA4\u901A\u5173",class:"c-orange",color:"#f09143"}),re);return O.a.createElement("span",{style:{marginLeft:"10px",color:"#fff",background:ut==null||((dt=ut[X.status])===null||dt===void 0)?void 0:dt.color,borderRadius:"20px",width:"65px",height:"18px",justifyContent:"center",display:"inline-flex",lineHeight:"18px"}},ut==null||((Rt=ut[X.status])===null||Rt===void 0)?void 0:Rt.name)},_=function(X){var re=X.status,dt={0:{class:"tag-style bg-blue ml10",name:"\u5F85\u9009\u4E2D"},1:{class:"tag-style bg-blue ml10",name:"\u5F85\u786E\u8BA4"},2:{class:"tag-style bg-pink ml10",name:"\u5DF2\u786E\u8BA4"}};try{return O.a.createElement("span",{className:dt[re].class},dt[re].name)}catch(Rt){console.log("utils.StatusGraduationProjectTags",X.status)}},Be={1:"\u672A\u53D1\u5E03",2:"\u8003\u8BD5\u4E2D",3:"\u5DF2\u622A\u6B62",4:"\u5DF2\u7ED3\u675F",99:"\u6A21\u62DF\u8003\u8BD5\u4E2D"},Ke={1:"\u672A\u53D1\u5E03",2:"\u63D0\u4EA4\u4E2D",3:"\u5DF2\u622A\u6B62",4:"\u5DF2\u7ED3\u675F"},ct=function(X){var re={\u6A21\u62DF\u8003\u8BD5\u4E2D:{class:"tag-style bg-light-pink ml10"},\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A:{class:"tag-style-fzb ml10 iconfont icon-fangzuobi"},\u516C\u5F00:{class:"tag-style bg-blue ml10"},\u5DF2\u5F00\u542F\u8865\u4EA4:{class:"tag-style bg-green ml10"},\u672A\u5F00\u542F\u8865\u4EA4:{class:"tag-style bg-pink ml10soft"},\u672A\u53D1\u5E03:{class:"tag-style bgB8B8B8 ml10soft"},\u672A\u5F00\u59CB:{class:"tag-style bg-c5d6ff ml10soft"},\u533F\u540D\u4F5C\u54C1:{class:"tag-style bg-cyan ml10"},\u5DF2\u9009\u62E9:{class:"tag-style bg-grey-ede ml10"},\u5DF2\u7ED3\u675F:{class:"tag-style bg-grey-ede ml10soft"},\u63D0\u4EA4\u4E2D:{class:"tag-style bg-blue ml10soft"},\u8FDB\u884C\u4E2D:{class:"tag-style bg-blue ml10soft"},\u533F\u8BC4\u4E2D:{class:"tag-style bg-blue ml10"},\u7533\u8BC9\u4E2D:{class:"tag-style bg-blue ml10"},\u8003\u8BD5\u4E2D:{class:"tag-style bg-light-blue ml10"},\u8865\u4EA4\u4E2D:{class:"tag-style bg-blue ml10soft"},\u8BC4\u9605\u4E2D:{class:"tag-style bg-blue ml10"},\u5F85\u9009\u4E2D:{class:"tag-style bg-blue ml10"},\u4EA4\u53C9\u8BC4\u9605\u4E2D:{class:"tag-style bg-light-orange ml10"},\u5DF2\u5F00\u542F\u4EA4\u53C9\u8BC4\u9605:{class:"tag-style bg-lightblue-purple ml10"},\u5F85\u786E\u8BA4:{class:"tag-style bg-lightblue-purple ml10"},\u5F85\u5904\u7406:{class:"tag-style bg-lightblue-purple ml10"},\u79C1\u6709:{class:"tag-style bg-lightblue-purple ml10"},\u672A\u63D0\u4EA4:{class:"tag-style bg-lightblue-purple ml10"},\u5DF2\u786E\u8BA4:{class:"tag-style bg-light-pink ml10"},\u5DF2\u53D1\u5E03:{class:"tag-style bg-light-blue ml10"},\u5DF2\u622A\u6B62:{class:"tag-style bg-light-pink ml10soft"},\u5F00\u53D1\u8BFE\u7A0B:{class:"tag-style bg-orange ml10"},\u5DF2\u5F00\u64AD:{class:"tag-style-border border-green c-green ml10"},\u672A\u5F00\u64AD:{class:"tag-style-border border-light-black ml10"},\u6309\u65F6\u901A\u5173:{class:"tag-style-border border-light-black ml10"},\u8FDF\u4EA4\u901A\u5173:{class:"tag-style-border border-light-black ml10"},\u672A\u901A\u5173:{class:"tag-style-border border-light-black ml10"},\u672A\u5F00\u542F:{class:"tag-style-border border-light-black ml10"}},dt={\u672A\u53D1\u5E03:{class:"tag-style bg-C6CED6 ml10soft"},\u672A\u5F00\u59CB:{class:"tag-style bg-C1E2FF ml10soft"},\u8FDB\u884C\u4E2D:{class:"tag-style bg-0152d9 ml10soft"},\u5DF2\u622A\u6B62:{class:"tag-style bg-E53333 ml10soft"},\u63D0\u4EA4\u4E2D:{class:"tag-style bg-0152d9 ml10soft"},\u8865\u4EA4\u4E2D:{class:"tag-style bg-44D7B6 ml10soft"}};X.temporary&&(re=Object(o.a)(Object(o.a)({},re),dt));var Rt=[];X.is_random&&Rt.push(O.a.createElement("span",{className:"tag-style bg-blue ml10"},"\u968F\u673A"));try{X.status&&X.status.map(function(ut,zt){Rt.push(O.a.createElement("span",{style:(X==null?void 0:X.style)||[],key:zt,className:re[ut]&&re[ut].class},ut))})}catch(ut){console.log("utils.status.tag:",ut,X.status)}return Rt},We=function(X){if(X===1)return O.a.createElement("span",{style:{backgroundColor:"#B8B8B8"},className:"tag-style ml5"},"\u672A\u5F00\u59CB");if(X===2)return O.a.createElement("span",{style:{backgroundColor:"#007AFF"},className:"tag-style ml5"},"\u8003\u8BD5\u4E2D");if(X===3)return O.a.createElement("span",{style:{backgroundColor:"#FC2D6B"},className:"tag-style ml5"},"\u5DF2\u7ED3\u675F")},Ue=function(X){var re,dt,Rt,ut=(re={},Object(h.a)(re,-1,{name:"\u91CD\u505A\u4E2D",class:"c-orange"}),Object(h.a)(re,0,{name:"\u672A\u63D0\u4EA4",class:"c-black"}),Object(h.a)(re,1,{name:"\u672A\u901A\u5173",class:"c-red"}),Object(h.a)(re,2,{name:"\u6309\u65F6\u901A\u5173",class:"c-green"}),Object(h.a)(re,3,{name:"\u8FDF\u4EA4\u901A\u5173",class:"c-orange"}),re);return O.a.createElement("span",{className:(dt=ut[X.status])===null||dt===void 0?void 0:dt.class},(Rt=ut[X.status])===null||Rt===void 0?void 0:Rt.name)},$=function(X){var re,dt,Rt={0:{name:"\u672A\u63D0\u4EA4",class:"c-black"},1:{name:"\u6309\u65F6\u63D0\u4EA4",class:"c-green"},2:{name:"\u5EF6\u65F6\u63D0\u4EA4",class:"c-red"}};return O.a.createElement("span",{className:(re=Rt[X.status])===null||re===void 0?void 0:re.class},(dt=Rt[X.status])===null||dt===void 0?void 0:dt.name)},ie=function(X){X=new Date(X).getTime();var re=1e3*60,dt=re*60,Rt=dt*24,ut="",zt=new Date().getTime(),ft=zt-X;if(ft<0)return console.log("\u65F6\u95F4\u4E0D\u5BF9\u52B2,\u670D\u52A1\u5668\u521B\u5EFA\u65F6\u95F4\u4E0E\u5F53\u524D\u65F6\u95F4\u4E0D\u540C\u6B65"),ut="\u521A\u521A";var mt=parseInt(ft/Rt,10),kt=parseInt(ft/dt,10),Ye=parseInt(ft/re,10);return mt>30?ut=""+ee(X,"yyyy-MM-dd"):mt>1?ut=""+mt+"\u5929\u524D":mt==1?ut="\u6628\u5929":kt>=1?ut=""+kt+"\u5C0F\u65F6\u524D":Ye>=5?ut=""+Ye+"\u5206\u949F\u524D":ut="\u521A\u521A",ut},ee=function(X,re){typeof X=="string"&&(X.indexOf("T")>=0&&(X=X.replace("T"," ")),X=new Date(Date.parse(X.replace(/-/g,"/")))),X=new Date(X);var dt={"M+":X.getMonth()+1,"d+":X.getDate(),"h+":X.getHours(),"m+":X.getMinutes(),"s+":X.getSeconds(),"q+":Math.floor((X.getMonth()+3)/3),S:X.getMilliseconds()},Rt=[["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"],["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]];/(y+)/.test(re)&&(re=re.replace(RegExp.$1,(X.getFullYear()+"").substr(4-RegExp.$1.length))),/(w+)/.test(re)&&(re=re.replace(RegExp.$1,Rt[RegExp.$1.length-1][X.getDay()]));for(var ut in dt)new RegExp("("+ut+")").test(re)&&(re=re.replace(RegExp.$1,RegExp.$1.length==1?dt[ut]:("00"+dt[ut]).substr((""+dt[ut]).length)));return re},I=function(X){if(!X||X<0)return"0\u79D2";console.log("time:",X);var re=60,dt=re*60,Rt=dt*24,ut=X/Rt,zt=X/dt,ft=X/re,mt=X%60;return ut>=1?parseInt(ut.toString())+"\u5929"+Math.floor(zt%24)+"\u65F6"+Math.floor(ft%60)+"\u5206"+Math.floor(X%60)+"\u79D2":zt>1?parseInt(zt.toString())+"\u65F6"+Math.floor(ft%60)+"\u5206"+Math.floor(X%60)+"\u79D2":ft>=1?parseInt(ft.toString())+"\u5206"+Math.floor(X%60)+"\u79D2":Math.ceil(X)+"\u79D2"},pe=function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100,dt=0;if(X){dt=X.length;for(var Rt=0;Rt=55296&&ut<=56319&&(dt--,Rt++)}}return dt<=re},Qe=function(X,re,dt){if(re){var Rt=/[`~!@#$%^&*()\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘’,。、]/im,ut=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/ig,zt=ut.test(re),ft=Rt.test(re);(zt===!0||ft===!0||(re.length<2||re.length>=21))&&dt("2-20\u4F4D\u4E2D\u82F1\u6587\u3001\u6570\u5B57\u53CA\u4E0B\u5212\u7EBF")}dt()},me=function(X,re,dt){if(re){var Rt=/[`~!@#$%^&()_\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥%……&()——\-+={}|《》?:“”【】、;‘’,。、]/im,ut=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/ig,zt=ut.test(re),ft=Rt.test(re);(zt===!0||ft===!0||(re.length<2||re.length>=11))&&dt("2-10\u4F4D\u4E2D\u82F1\u6587\u3001\u6570\u5B57")}dt()},tt=function(X){if(!X)return"";for(var re=X.length-1,dt="",Rt=0;Rt0){re=!1;break}return re}function Le(){var je=navigator.userAgent,X=["Chrome"];return X.some(function(re){return je.indexOf(re)>-1})}function w(){var je=navigator.userAgent,X=["Chrome","Firefox"];return X.some(function(re){return je.indexOf(re)>-1})}var te=function(){var X,re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return re==null||((X=re.toString())===null||X===void 0)?void 0:X.replace(/\B(?=(\d{3})+(?!\d))/g,",")},ce=function(X){var re=document.createElement("a");re.target="_blank",document.body.appendChild(re),re.href=X;var dt=document.createEvent("MouseEvents");dt.initEvent("click",!1,!1),re.dispatchEvent(dt),document.body.removeChild(re)},Ae=function(X){var re=document.createElement("a");document.body.appendChild(re),re.href=X;var dt=document.createEvent("MouseEvents");dt.initEvent("click",!1,!1),re.dispatchEvent(dt),document.body.removeChild(re)},de=function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return X.length<=6?X:"".concat(X.substring(0,3),"...").concat(X.substring(X.length-3,X.length))},Y=function(){var X=new Date().getHours(),re=new Date().getMinutes();return re>=30?(X++,re="00"):re="30",X+":"+re},L=function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"-",re=new Date().getHours(),dt=new Date().getMinutes();return dt>=30?(re++,dt="00"):dt="30",new Date().toLocaleDateString().replace(/\//g,X)+" "+re+":"+dt},A;(function(je){je.Number="Number",je.String="String",je.Boolean="Boolean",je.Object="Object",je.Array="Array",je.Function="Function"})(A||(A={}));var V=function(X){var re=Object.prototype.toString.call(X);return re.substring(8,re.length-1)},Se=function(X){return V(X)===A.Array?X.length===0:V(X)===A.Object?Object.keys(X).length===0:!X},ke=function(X,re){for(var dt=[],Rt=X;Rt1&&arguments[1]!==void 0?arguments[1]:12,dt=re/2-2,Rt=re/2+3;return X.length>re?X.substr(0,dt)+"..."+X.substr(Rt,re):X},Ne=function(X){return X>4.5?5:X>4&&X<=4.5?4.5:X>3.5&&X<=4?4:X>3&&X<=3.5?3.5:X>2.5&&X<=3?3:X>2&&X<=2.5?2.5:X>1.5&&X<=2?2:X>1&&X<=1.5?1.5:X>.5&&X<=1?1:X>0&&X<=.5?.5:0},rt=function(X){return X==null};function Fe(je,X){var re=new RegExp("(^|&)".concat(je,"=([^&]*)(&|$)"),"i"),dt=X.substr(1).match(re);return dt!=null?decodeURIComponent(dt[2]):null}var bt=function(X){if(X.link_url)return window.open(X.link_url);switch(X.container_type){case"ApplyUserAuthentication":if(X.tiding_type==="Apply"){if(X.auth_type===1)return window.open("/admins/identity_authentications");if(X.auth_type===2)return window.open("/admins/professional_authentications")}return X.tiding_type==="System"?window.open("/account/certification"):void 0;case"CancelUserAuthentication":return window.open("/account/certification");case"CancelUserProCertification":return window.open("/account/certification");case"ApplyAddDepartment":return X.tiding_type==="Apply"?window.open("/admins/department_applies"):X.tiding_type==="System"?window.open("/account/profile"):void 0;case"ApplyAddSchools":return X.tiding_type==="Apply"?window.open("/admins/unit_applies"):X.tiding_type==="System"?window.open("/account/profile"):void 0;case"ApplyAction":switch(X.parent_container_type){case"ApplyShixun":if(X.tiding_type==="Apply")return window.open("/admins/shixun_authorizations");if(X.tiding_type==="System")return window.open("/shixuns/".concat(X.identifier,"/challenges"));case"ApplySubject":if(X.tiding_type==="Apply")return window.open("/admins/subject_authorizations");if(X.tiding_type==="System")return window.open("/paths/".concat(X.parent_container_id));case"TrialAuthorization":if(X.tiding_type==="Apply")return window.open("/managements/trial_authorization");if(X.tiding_type==="System")return window.open("/account/profile")}return;case"JoinCourse":return window.open("/classrooms/".concat(X.belong_container_id,"/teachers"));case"StudentJoinCourse":if(X.tiding_type==="Apply")return window.open("/classrooms/".concat(X.belong_container_id,"/teachers"));if(X.tiding_type==="System")return window.open("/classrooms/".concat(X.belong_container_id,"/students"));case"DealCourse":return window.open("/classrooms/".concat(X.belong_container_id,"/shixun_homework/"));case"TeacherJoinCourse":return window.open("/classrooms/".concat(X.belong_container_id,"/shixun_homework/"));case"Course":return X.tiding_type==="Delete"?void 0:window.open("/classrooms/".concat(X.belong_container_id,"/shixun_homework/"));case"ArchiveCourse":return window.open("/classrooms/".concat(X.belong_container_id,"/shixun_homework/"));case"Shixun":return window.open("/shixuns/".concat(X.identifier,"/challenges"));case"Subject":return window.open("/paths/".concat(X.container_id));case"JournalsForMessage":switch(X.parent_container_type){case"Principal":return"";case"HomeworkCommon":return X.homework_type==="normal"?window.open("/classrooms/".concat(X.belong_container_id,"/common_homework/").concat(X.parent_container_id,"/question")):X.homework_type==="group"?window.open("/classrooms/".concat(X.belong_container_id,"/group_homework/").concat(X.parent_container_id,"/question")):X.homework_type==="practice"?window.open("/classrooms/".concat(X.belong_container_id,"/shixun_homework/").concat(X.parent_container_id,"/detail?tabs=1")):"";case"GraduationTopic":return window.open("/classrooms/".concat(X.belong_container_id,"/graduation_topics/").concat(X.parent_container_id,"/detail"));case"StudentWorksScore":return window.open(X.link_url)}case"Memo":return window.open("/forums/".concat(X.parent_container_id));case"Message":return window.open("/forums/");case"Watcher":return window.open("/users/".concat(X.trigger_user.login,"/classrooms"));case"PraiseTread":return"";case"Grade":return"";case"JoinProject":return window.open(D.a.FORGE+X.project_url);case"ReporterJoinProject":return window.open(D.a.FORGE+X.project_url);case"DealProject":return window.open(D.a.FORGE+X.project_url);case"ManagerJoinProject":return window.open(D.a.FORGE+X.project_url);case"Poll":switch(X.parent_container_type){case"CommitPoll":return window.open(" /classrooms/".concat(X.belong_container_id,"/poll/").concat(X.container_id,"/detail"));default:return window.open(" /classrooms/".concat(X.belong_container_id,"/poll/").concat(X.container_id,"/detail"))}case"Exercise":switch(X.parent_container_type){case"CommitExercise":return window.open(" /classrooms/".concat(X.belong_container_id,"/exercise/").concat(X.container_id,"/detail?tab=0"));case"ExerciseScore":return window.open(" /classrooms/".concat(X.belong_container_id,"/exercise/").concat(X.container_id,"/detail?tab=0"));default:return window.open("/classrooms/".concat(X.belong_container_id,"/exercise/").concat(X.container_id,"/detail?tab=0"))}case"StudentGraduationTopic":return window.open("/classrooms/".concat(X.belong_container_id,"/graduation_topics/").concat(X.parent_container_id,"/detail"));case"DealStudentTopicSelect":return window.open("/classrooms/".concat(X.belong_container_id,"/graduation_topics/").concat(X.parent_container_id,"/detail"));case"GraduationTask":return window.open("/classrooms/".concat(X.belong_container_id,"/graduation_tasks/").concat(X.container_id));case"GraduationWork":return window.open("/classrooms/".concat(X.belong_container_id,"/graduation_tasks/").concat(X.container_id));case"GraduationWorkScore":return window.open("/classrooms/".concat(X.belong_container_id,"/graduation_tasks/").concat(X.parent_container_id));case"HomeworkCommon":switch(X.parent_container_type){case"AnonymousCommentFail":if(X.homework_type==="normal")return window.open("/classrooms/".concat(X.belong_container_id,"/common_homework/").concat(X.parent_container_id,"/detail"));if(X.homework_type==="group")return window.open("/classrooms/".concat(X.belong_container_id,"/group_homework/").concat(X.parent_container_id,"/detail"));if(X.homework_type==="practice")return window.open("/classrooms/".concat(X.belong_container_id,"/shixun_homework/").concat(X.parent_container_id,"/detail?tabs=0"));case"HomeworkPublish":if(X.homework_type==="normal")return window.open("/classrooms/".concat(X.belong_container_id,"/common_homework/").concat(X.parent_container_id,"/detail"));if(X.homework_type==="group")return window.open("/classrooms/".concat(X.belong_container_id,"/group_homework/").concat(X.parent_container_id,"/detail"));if(X.homework_type==="practice")return window.open("/classrooms/".concat(X.belong_container_id,"/shixun_homework/").concat(X.parent_container_id,"/detail?tabs=0"));case"AnonymousAppeal":if(X.homework_type==="normal")return window.open("/classrooms/".concat(X.belong_container_id,"/common_homework/").concat(X.parent_container_id,"/detail"));if(X.homework_type==="group")return window.open("/classrooms/".concat(X.belong_container_id,"/group_homework/").concat(X.parent_container_id,"/detail"));if(X.homework_type==="practice")return window.open("/classrooms/".concat(X.belong_container_id,"/shixun_homework/").concat(X.parent_container_id,"/detail?tabs=0"));default:if(X.homework_type==="normal")return window.open("/classrooms/".concat(X.belong_container_id,"/common_homework/").concat(X.parent_container_id,"/detail"));if(X.homework_type==="group")return window.open("/classrooms/".concat(X.belong_container_id,"/group_homework/").concat(X.parent_container_id,"/detail"));if(X.homework_type==="practice")return window.open("/classrooms/".concat(X.belong_container_id,"/shixun_homework/").concat(X.parent_container_id,"/detail?tabs=0"))}case"StudentWork":if(X.homework_type==="normal")return window.open("/classrooms/".concat(X.belong_container_id,"/common_homework/").concat(X.parent_container_id,"/review/").concat(X.container_id));if(X.homework_type==="group")return window.open("/classrooms/".concat(X.belong_container_id,"/group_homework/").concat(X.parent_container_id,"/review/").concat(X.container_id));if(X.homework_type==="practice")return window.open("/classrooms/".concat(X.belong_container_id,"/shixun_homework/").concat(X.parent_container_id,"/detail"));case"StudentWorksScore":return window.open("/classrooms/".concat(X.belong_container_id,"/common_homework/").concat(X.trigger_user.id,"/review/").concat(X.parent_container_id));case"StudentWorksScoresAppeal":return window.open("/classrooms/".concat(X.belong_container_id,"/common_homework/").concat(X.trigger_user.id,"/review/").concat(X.parent_container_id));case"ChallengeWorkScore":return"";case"SendMessage":return window.open("".concat(D.a.API_SERVER,"/admins/mirror_repositories"));case"Journal":return window.open("/issues/".concat(X.parent_container_id));case"Issue":return window.open("/issues/".concat(X.container_id));case"PullRequest":return window.open(D.a.FORGE+X.project_url);case"Department":return window.open("/account/profile");case"Library":if(X.tiding_type==="Apply")return window.open("/admins/library_applies");if(X.tiding_type==="System")return window.open("/moop_cases/".concat(X.container_id));case"ProjectPackage":return X.tiding_type==="Destroyed"||X.tiding_type==="Destroyed_end"?void 0:X.tiding_type==="Apply"?window.open("/admins/project_package_applies"):window.open("/crowdsourcing/".concat(X.container_id));case"Discuss":return X.parent_container_type==="Hack"&&X.extra?window.open("/myproblems/".concat(X.extra,"/comment")):X.extra==="ai_reply"&&X.task_identifier?window.open("/tasks/".concat(X.task_identifier,"?extra=extra")):window.open("/shixuns/".concat(X.identifier,"/shixun_discuss"));case"Video":if(X.tiding_type==="Apply")return window.open("/admins/video_applies");if(X.tiding_type==="System"){var re;return window.open("/users/".concat((re=Object(C.x)())===null||re===void 0?void 0:re.login,"/videos"))}return"";case"PublicCourseStart":return window.open("/classrooms/".concat(X.container_id,"/informs"));case"SubjectStartCourse":return window.open("/paths/".concat(X.container_id));case"ResubmitStudentWork":if(X.homework_type==="normal")return window.open("/classrooms/".concat(X.belong_container_id,"/common_homework/").concat(X.parent_container_id,"/").concat(X.container_id,"/appraise"));if(X.homework_type==="group")return window.open("/classrooms/".concat(X.belong_container_id,"/group_homework/").concat(X.parent_container_id,"/").concat(X.container_id,"/appraise"));case"AdjustScore":if(X.homework_type==="normal")return window.open("/classrooms/".concat(X.belong_container_id,"/common_homework/").concat(X.parent_container_id));if(X.homework_type==="group")return window.open("/classrooms/".concat(X.belong_container_id,"/group_homework/").concat(X.parent_container_id));case"LiveLink":return window.open("/classrooms/".concat(X.belong_container_id,"/course_videos?open=live"));case"Hack":if(X.extra&&X.parent_container_type!=="HackDelete")return window.open("/problems/".concat(X.extra,"/edit"));default:return}},lt=function(X){var re,dt;return new Promise(function(){var Rt=Object(m.a)(b.a.mark(function ut(zt,ft){var mt;return b.a.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:if(!(X.ip_limit!=="no"||X.ip_bind)){Ye.next=4;break}return Ye.next=3,Object(S.a)({ip_limit:X==null?void 0:X.ip_limit,ip_bind:X==null?void 0:X.ip_bind});case 3:re=Ye.sent;case 4:return Ye.next=6,Object(M.f)({id:X.exerciseId,ip:re});case 6:if(mt=Ye.sent,mt.status===0?zt(mt):ft(mt),!X.errmsgHide){Ye.next=10;break}return Ye.abrupt("return",!0);case 10:if(!(mt.status===-1)){Ye.next=15;break}return dt=u.a.info({title:O.a.createElement(f.a,null,O.a.createElement(s.a,{flex:"1"},"\u63D0\u793A"),O.a.createElement(s.a,null,O.a.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:function(){return dt.destroy()}}))),icon:null,className:"custom-modal-divider",content:O.a.createElement("div",{className:"font16 p20"},"\u60A8\u7684IP\u4E0D\u5728\u8003\u8BD5\u5141\u8BB8\u7684\u8303\u56F4\u5185\uFF01"),okText:"\u6211\u77E5\u9053\u4E86"}),Ye.abrupt("return",!1);case 15:if(!(mt.status===-2)){Ye.next=18;break}return dt=u.a.info({title:O.a.createElement(f.a,null,O.a.createElement(s.a,{flex:"1"},"\u63D0\u793A"),O.a.createElement(s.a,null,O.a.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:function(){return dt.destroy()}}))),icon:null,className:"custom-modal-divider",content:O.a.createElement("div",{className:"font16 p20"},"\u60A8\u5DF2\u7ED1\u5B9A\u5F53\u524D\u8003\u8BD5IP\u5730\u5740\uFF1A",O.a.createElement("span",{className:"c-red"},mt.ip),"\u8BF7\u4F7F\u7528\u8BE5IP\u5730\u5740\u8FDB\u5165\u8003\u8BD5\u3002"),okText:"\u6211\u77E5\u9053\u4E86"}),Ye.abrupt("return",!1);case 18:case"end":return Ye.stop()}},ut)}));return function(ut,zt){return Rt.apply(this,arguments)}}())},Ct=function(){return location.pathname.indexOf("/classrooms/4RW9CYHY")>-1||location.pathname.indexOf("/classrooms/qb4ft587")>-1||location.pathname.indexOf("/classrooms/c5q9bsp2")>-1},Ot=function(){var je=Object(m.a)(b.a.mark(function X(re){var dt;return b.a.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:if(!((location.pathname.indexOf("/classrooms/4RW9CYHY")>-1||location.pathname.indexOf("/classrooms/qb4ft587")>-1||location.pathname.indexOf("/classrooms/c5q9bsp2")>-1)&&!W())){ut.next=3;break}return u.a.info({content:"\u8BF7\u4F7F\u7528\u7535\u8111\u53C2\u52A0\u8003\u8BD5\uFF01"}),ut.abrupt("return");case 3:if(!(re.ip_limit!=="no")){ut.next=9;break}return ut.next=6,lt(re);case 6:if(Le()){ut.next=9;break}return u.a.info({icon:null,okText:"\u786E\u5B9A",width:500,content:O.a.createElement("div",{className:"font16"},"\u672C\u6B21\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A\u8BBE\u7F6E\uFF0C\u4EC5\u652F\u6301",O.a.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3002",O.a.createElement("br",null),"\u8BF7\u4F7F\u7528",O.a.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u6D4F\u89C8\u5668\u5F00\u59CB\u8003\u8BD5\u3002")}),ut.abrupt("return");case 9:if(!(re.open_camera||re.screen_open||re.ip_limit!=="no"||re.ip_bind||re.identity_verify)){ut.next=17;break}if(w()){ut.next=14;break}return u.a.info({icon:null,okText:"\u786E\u5B9A",width:500,content:O.a.createElement("div",{className:"font16"},"\u672C\u6B21\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A\u8BBE\u7F6E\uFF0C\u4EC5\u652F\u6301",O.a.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3001",O.a.createElement("span",{className:"c-red"},"\u706B\u72D0"),"\u6D4F\u89C8\u5668\u3002",O.a.createElement("br",null),"\u8BF7\u4F7F\u7528",O.a.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3001",O.a.createElement("span",{className:"c-red"},"\u706B\u72D0"),"\u6D4F\u89C8\u5668\u5F00\u59CB\u8003\u8BD5\u3002")}),ut.abrupt("return",!1);case 14:dt=u.a.info({title:O.a.createElement(f.a,null,O.a.createElement(s.a,{flex:"1"},"\u8003\u8BD5\u8BF4\u660E"),O.a.createElement(s.a,null,O.a.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:function(){return dt.destroy()}}))),width:700,icon:null,className:"custom-modal-divider",content:O.a.createElement("div",{className:"font16 p20"},re.identity_verify&&O.a.createElement(f.a,{align:"middle",justify:"start",className:"mt20"},O.a.createElement(s.a,{flex:"45px"},O.a.createElement("span",{className:"iconfont icon-kaiqishexiangtou c-blue mr20 font24"})),O.a.createElement(s.a,{flex:"1"},"\u8FDB\u5165\u8003\u8BD5\u524D\uFF0C\u8BF7\u5141\u8BB8\u6444\u50CF\u5934\u6388\u6743\uFF0C\u6388\u6743\u540E\u9700\u91C7\u96C6\u7167\u7247\u8BA4\u8BC1\uFF0C\u8BA4\u8BC1\u901A\u8FC7\u5E76\u5F00\u542F\u624B\u673A\u5F55\u5236\u624D\u53EF\u4EE5\u8FDB\u5165\u8003\u8BD5\u3002",!Ft()&&O.a.createElement("a",{target:"_blank",href:"https://www.educoder.net/forums/4459"},"\u65E0\u6CD5\u8C03\u7528\u6444\u50CF\u5934\uFF1F"))),re.open_camera&&O.a.createElement(f.a,{align:"middle",justify:"start",className:"mt20"},O.a.createElement(s.a,null,O.a.createElement("span",{className:"iconfont icon-kaiqishexiangtou c-blue mr20 font24"})),O.a.createElement(s.a,null,"\u8FDB\u5165\u8003\u8BD5\u540E\uFF0C\u8BF7\u5141\u8BB8\u6444\u50CF\u5934\u6388\u6743\uFF0C\u6388\u6743\u540E\u6253\u5F00\u6444\u50CF\u5934\u65B9\u53EF\u4F5C\u7B54\uFF01",!Ft()&&O.a.createElement("a",{target:"_blank",href:"https://www.educoder.net/forums/4459"},"\u65E0\u6CD5\u8C03\u7528\u6444\u50CF\u5934\uFF1F"))),re.screen_open&&O.a.createElement(f.a,{justify:"start",className:"mt20"},O.a.createElement(s.a,{flex:"24px",className:"mr20"},O.a.createElement("span",{className:"iconfont icon-kaiqifangqieping c-blue font24"})),O.a.createElement(s.a,{flex:"1"},"\u5F53\u524D\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u5207\u5C4F\uFF0C\u5207\u5C4F\u8D85\u8FC7",re.screen_num,"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377\u3002\uFF08\u9000\u51FA\u5168\u5C4F\u5C06\u5224\u5B9A\u4E3A\u5207\u5C4F\u4E00\u6B21\uFF0C\u8003\u8BD5\u8FC7\u7A0B\u4E2D\u8BF7\u52FF\u9000\u51FA\u5168\u5C4F\uFF09",!Ft()&&O.a.createElement("a",{target:"_blank",href:"https://www.educoder.net/forums/4460"},"\u6D4F\u89C8\u5668\u65E0\u6CD5\u81EA\u52A8\u5168\u5C4F\uFF1F"))),(re.inner_ip!==""||re.public_ip!=="")&&re.ip_limit!=="no"&&O.a.createElement(f.a,{justify:"start",className:"mt20"},O.a.createElement(s.a,{flex:"24px",className:"mr20"},O.a.createElement("span",{className:"iconfont icon-IP c-blue font24"})),O.a.createElement(s.a,{flex:"1"},"\u5F53\u524D\u8003\u8BD5\u5DF2\u5F00\u542FIP\u8303\u56F4\u9650\u5B9A\u3002IP\u5730\u5740\u4E0D\u5728\u8303\u56F4\u5185\u4E0D\u53EF\u53C2\u52A0\u8003\u8BD5\u3002",O.a.createElement("br",null),!Ft()&&O.a.createElement(O.a.Fragment,null,O.a.createElement("span",{className:"c-red"},"\uFF08\u53EA\u5141\u8BB8\u5728Chrome\u8C37\u6B4C\u6D4F\u89C8\u5668\u4F5C\u7B54\uFF0C\u5E76\u4E14\u9700\u8981\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6\uFF09"),O.a.createElement("br",null),O.a.createElement("a",{href:"https://www.educoder.net/forums/4478",target:"_blank"},"\u5982\u4F55\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6?")))),O.a.createElement("p",{className:"ml40 mt40"},O.a.createElement(i.a,{onChange:function(ft){return dt.update({okButtonProps:{disabled:!ft.target.checked}})}},"\u6211\u5DF2\u9605\u8BFB"))),onOk:function(){if(Object(P.d)(document.body),re.open_phone_video_recording){var ft;re.history.push("/classrooms/".concat(re.coursesId,"/exercise/").concat(re.exerciseId,"/users/").concat((ft=Object(C.x)())===null||ft===void 0?void 0:ft.login,"/check"))}else if(re.identity_verify&&re.current_status===2){var mt;re.history.push("/classrooms/".concat(re.coursesId,"/exercise/").concat(re.exerciseId,"/users/").concat((mt=Object(C.x)())===null||mt===void 0?void 0:mt.login,"/check"))}else{var kt;re.history.push("/classrooms/".concat(re.coursesId,"/exercise/").concat(re.exerciseId,"/users/").concat((kt=Object(C.x)())===null||kt===void 0?void 0:kt.login))}},okText:"\u8FDB\u5165\u8003\u8BD5",okButtonProps:{disabled:!0}}),ut.next=18;break;case 17:re.identity_verify&&re.current_status===2?re.history.push("/classrooms/".concat(re.coursesId,"/exercise/").concat(re.exerciseId,"/users/").concat(re.login,"/check")):re.history.push("/classrooms/".concat(re.coursesId,"/exercise/").concat(re.exerciseId,"/users/").concat(re.login));case 18:case"end":return ut.stop()}},X)}));return function(re){return je.apply(this,arguments)}}(),xt=[{name:"\u535A\u58EB\u7814\u7A76\u751F",id:8},{name:"\u7855\u58EB\u7814\u7A76\u751F",id:7},{name:"\u672C\u79D1",id:6},{name:"\u5927\u4E13",id:5},{name:"\u4E2D\u4E13",id:4},{name:"\u9AD8\u4E2D",id:3},{name:"\u521D\u4E2D",id:2},{name:"\u5C0F\u5B66",id:1},{name:"\u5176\u4ED6",id:9}],Yt=function(X){var re=/(\w+)=([^\#&]*)/ig,dt={};return X.replace(re,function(Rt,ut,zt){dt[ut]=decodeURI(zt)}),dt},pn=function(X,re){var dt={1:"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u6682\u672A\u53D1\u5E03\uFF0C\u8BF7\u8054\u7CFB\u672C\u8BFE\u5802\u6559\u5E08\u3002",2:"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u4E0D\u5B58\u5728\uFF0C\u8BF7\u8054\u7CFB\u672C\u8BFE\u5802\u6559\u5E08\u3002",3:"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u9762\u5411\u6307\u5B9A\u5355\u4F4D\u5F00\u653E\uFF0C\u8BF7\u8054\u7CFB\u672C\u8BFE\u5802\u6559\u5E08\u3002",4:"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u5C06\u4E8E".concat(re,"\u53D1\u5E03\uFF0C\u8BF7\u7B49\u5F85\u3002")},Rt=dt[X];r.b.warn(Rt)},nn=function(X,re){for(var dt,Rt,ut=window.atob(X),zt=ut.length,ft=new Uint8Array(zt),mt=0;mt0&&arguments[0]!==void 0?arguments[0]:"",re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,dt=document.createElement("textarea");dt.value=X,document.body.appendChild(dt),dt.select(),document.execCommand("Copy"),re||r.b.success("\u590D\u5236\u6210\u529F"),document.body.removeChild(dt)},Tt=function(X){X||(X=window.location.search);var re=X.substr(1),dt={};return re.split("&").forEach(function(Rt){var ut=Rt.split("=");dt[ut[0]]=decodeURIComponent(ut[1])}),dt},jt=function(X,re){if(!re)return null;var dt=[];return re.forEach(function(Rt,ut){var zt=Math.floor(ut/X);dt[zt]||(dt[zt]=[]),dt[zt].push(Rt)}),dt},Mt=function(X){Ft()?document.title="\u8003\u8BD5\u7CFB\u7EDF":document.title=X||"\u5B9E\u8DF5\u6559\u5B66\u5E73\u53F0"},Ft=function(){var X,re;return(X=window)===null||X===void 0||((re=X.localStorage)===null||re===void 0)?void 0:re.isClientExam},De={setItem:function(X,re,dt){var Rt=X,ut=localStorage.getItem(Rt),zt=ut!==null&&ut!=="[object Object]"?JSON.parse(ut):{};zt[dt]=re,localStorage.setItem(Rt,JSON.stringify(zt))},getItem:function(X,re){var dt=X,Rt=localStorage.getItem(dt),ut=Rt!==null&&Rt!=="[object Object]"?JSON.parse(Rt):{};return ut[re]}},_e=function(X){return X!=null&&X.startsWith("http")?X:D.a.IMG_SERVER+X},ne=function(X){for(var re=Me(),dt=X.split("."),Rt=re.split("."),ut=Math.max(dt.length,Rt.length);dt.lengthmt)return 1;if(ft-1};function Pe(je,X){var re=je.length,dt,Rt;X=X||1;for(var ut=function(){var ft=Math.sin(X++)*1e3;return ft-Math.floor(ft)};re!==0;)Rt=Math.floor(ut()*re),re-=1,dt=je[re],je[re]=je[Rt],je[Rt]=dt;return je}},"1vuE":function(x,g,e){var a=e("eNh0");a("flat")},2:function(x,g){},"22qN":function(x,g,e){},"25BE":function(x,g,e){"use strict";e.d(g,"a",function(){return a});function a(n){if(typeof Symbol!="undefined"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}},"284h":function(x,g,e){var a=e("cDf5").default;function n(t){if(typeof WeakMap!="function")return null;var i=new WeakMap,v=new WeakMap;return(n=function(l){return l?v:i})(t)}function r(t,i){if(!i&&t&&t.__esModule)return t;if(t===null||a(t)!=="object"&&typeof t!="function")return{default:t};var v=n(i);if(v&&v.has(t))return v.get(t);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var p=l?Object.getOwnPropertyDescriptor(t,s):null;p&&(p.get||p.set)?Object.defineProperty(f,s,p):f[s]=t[s]}return f.default=t,v&&v.set(t,f),f}x.exports=r,x.exports.__esModule=!0,x.exports.default=x.exports},"29mP":function(x,g,e){var a=e("nFn1"),n=e("ukPv"),r=function(t){return typeof t=="function"?t:void 0};x.exports=function(t,i){return arguments.length<2?r(a[t])||r(n[t]):a[t]&&a[t][i]||n[t]&&n[t][i]}},"2FZw":function(x,g,e){var a=e("oa35"),n=e("+rjg"),r=e("FCfD"),t=Math.ceil,i=function(v){return function(f,l,s){var p=String(r(f)),u=p.length,m=s===void 0?" ":String(s),o=a(l),h,c;return o<=u||m==""?p:(h=o-u,c=n.call(m,t(h/m.length)),c.length>h&&(c=c.slice(0,h)),v?p+c:c+p)}};x.exports={start:i(!1),end:i(!0)}},"2GS6":function(x,g,e){"use strict";e.d(g,"a",function(){return a});function a(){var n=[].slice.call(arguments,0);return n.length===1?n[0]:function(){for(var t=0;t1?f-1:0);for(var l=1;l2?f-2:0);for(var l=2;l1?arguments[1]:void 0,3),c=new(f(m,r("Map"))),b=i(c.set);return s(o,function(j,O){b.call(c,j,h(O,j,m))},void 0,!0,!0),c}})},"2j6C":function(x,g){x.exports=e;function e(a,n){if(!a)throw new Error(n||"Assertion failed")}e.equal=function(n,r,t){if(n!=r)throw new Error(t||"Assertion failed: "+n+" != "+r)}},"2kyd":function(x,g,e){var a=e("ukPv"),n=e("xxaU"),r=e("jtLI"),t=e("evbn"),i=e("Fs9M"),v=e("wgKq"),f=n("wks"),l=a.Symbol,s=v?l:l&&l.withoutSetter||t;x.exports=function(p){return r(f,p)||(i&&r(l,p)?f[p]=l[p]:f[p]=s("Symbol."+p)),f[p]}},"2mql":function(x,g,e){"use strict";var a=e("TOwV"),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},t={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},v={};v[a.ForwardRef]=t,v[a.Memo]=i;function f(c){return a.isMemo(c)?i:v[c.$$typeof]||n}var l=Object.defineProperty,s=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,o=Object.prototype;function h(c,b,j){if(typeof b!="string"){if(o){var O=m(b);O&&O!==o&&h(c,O,j)}var C=s(b);p&&(C=C.concat(p(b)));for(var S=f(c),M=f(b),P=0;P=0;s--){var p=v[s];p==="."?v.splice(s,1):p===".."?(v.splice(s,1),l++):l&&(v.splice(s,1),l--)}if(f)for(;l--;l)v.unshift("..");return v}g.resolve=function(){for(var v="",f=!1,l=arguments.length-1;l>=-1&&!f;l--){var s=l>=0?arguments[l]:a.cwd();if(typeof s!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!s)continue;v=s+"/"+v,f=s.charAt(0)==="/"}return v=n(t(v.split("/"),function(p){return!!p}),!f).join("/"),(f?"/":"")+v||"."},g.normalize=function(v){var f=g.isAbsolute(v),l=i(v,-1)==="/";return v=n(t(v.split("/"),function(s){return!!s}),!f).join("/"),!v&&!f&&(v="."),v&&l&&(v+="/"),(f?"/":"")+v},g.isAbsolute=function(v){return v.charAt(0)==="/"},g.join=function(){var v=Array.prototype.slice.call(arguments,0);return g.normalize(t(v,function(f,l){if(typeof f!="string")throw new TypeError("Arguments to path.join must be strings");return f}).join("/"))},g.relative=function(v,f){v=g.resolve(v).substr(1),f=g.resolve(f).substr(1);function l(c){for(var b=0;b=0&&!(c[j]!=="");j--);return b>j?[]:c.slice(b,j-b+1)}for(var s=l(v.split("/")),p=l(f.split("/")),u=Math.min(s.length,p.length),m=u,o=0;o=1;--u)if(f=v.charCodeAt(u),f===47){if(!p){s=u;break}}else p=!1;return s===-1?l?"/":".":l&&s===1?"/":v.slice(0,s)};function r(v){typeof v!="string"&&(v=v+"");var f=0,l=-1,s=!0,p;for(p=v.length-1;p>=0;--p)if(v.charCodeAt(p)===47){if(!s){f=p+1;break}}else l===-1&&(s=!1,l=p+1);return l===-1?"":v.slice(f,l)}g.basename=function(v,f){var l=r(v);return f&&l.substr(-1*f.length)===f&&(l=l.substr(0,l.length-f.length)),l},g.extname=function(v){typeof v!="string"&&(v=v+"");for(var f=-1,l=0,s=-1,p=!0,u=0,m=v.length-1;m>=0;--m){var o=v.charCodeAt(m);if(o===47){if(!p){l=m+1;break}continue}s===-1&&(p=!1,s=m+1),o===46?f===-1?f=m:u!==1&&(u=1):f!==-1&&(u=-1)}return f===-1||s===-1||u===0||u===1&&f===s-1&&f===l+1?"":v.slice(f,s)};function t(v,f){if(v.filter)return v.filter(f);for(var l=[],s=0;s>>0,l=t>>>0,s=i>>>0;return l-(v>>>0)-((~f&s|~(f^s)&f-s>>>0)>>>31)|0}})},"3Us1":function(x,g,e){var a=e("Mi8B");a("Float32",function(n){return function(t,i,v){return n(this,t,i,v)}})},"3blH":function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("hJwl"),i={namespace:"competitions",state:{name:"",loading:!0,listParams:{page:1,per_page:20,category:""},competitions:[],count:""},effects:{getList:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=l.call,u=l.put,m=s,c.next=5,p(t.v,s);case 5:return o=c.sent,c.next=8,u({type:"save",payload:Object(a.a)({listParams:m},o)});case 8:return c.abrupt("return",o);case 9:case"end":return c.stop()}},v)}),addApplytojoincourse:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.r,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),competitionTeams:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.s,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getStaff:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.A,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getHeader:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.x,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getItem:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.y,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),updateMdContent:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.H,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getTeamList:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.E,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getTeamDetail:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.D,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),UpTeam:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.q,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),DeleteTeam:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.f,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),ExitTeam:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.h,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),AddTeam:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.b,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),JoinTeam:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.i,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getTeacher:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.C,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getStudents:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.B,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),SubmitTeam:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.o,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),Reward:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.n,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),ChartRules:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.d,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),Charts:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.e,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),TabResults:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.p,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),Results:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.m,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),Prize:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.k,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),Accounts:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.a,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getVerification:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.F,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),PhoneBind:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.j,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),EmailBind:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.g,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),Authentication:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.c,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),Professional:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.l,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),setleader:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.G,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getShixun:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.z,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getCourse:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.w,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)})},reducers:{save:function(f,l){return Object(a.a)(Object(a.a)({},f),l.payload)}},subscriptions:{setup:function(f){var l=f.dispatch,s=f.history;return s.listen(function(p){var u=p.pathname;u==="/"&&l({type:"query"})})}}};g.a=i},"3dhw":function(x,g,e){"use strict";var a=e("NMFW"),n=e("f1E4"),r=e("MVys"),t=e("k/J9"),i="toString",v=RegExp.prototype,f=v[i],l=r(function(){return f.call({source:"a",flags:"b"})!="/a/b"}),s=f.name!=i;(l||s)&&a(RegExp.prototype,i,function(){var u=n(this),m=String(u.source),o=u.flags,h=String(o===void 0&&u instanceof RegExp&&!("flags"in v)?t.call(u):o);return"/"+m+"/"+h},{unsafe:!0})},"3tO9":function(x,g,e){var a=e("lSNA");function n(t,i){var v=Object.keys(t);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(t);i&&(f=f.filter(function(l){return Object.getOwnPropertyDescriptor(t,l).enumerable})),v.push.apply(v,f)}return v}function r(t){for(var i=1;i1?arguments[1]:void 0)}})},"4IlW":function(x,g,e){"use strict";var a={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(r){var t=r.keyCode;if(r.altKey&&!r.ctrlKey||r.metaKey||t>=a.F1&&t<=a.F12)return!1;switch(t){case a.ALT:case a.CAPS_LOCK:case a.CONTEXT_MENU:case a.CTRL:case a.DOWN:case a.END:case a.ESC:case a.HOME:case a.INSERT:case a.LEFT:case a.MAC_FF_META:case a.META:case a.NUMLOCK:case a.NUM_CENTER:case a.PAGE_DOWN:case a.PAGE_UP:case a.PAUSE:case a.PRINT_SCREEN:case a.RIGHT:case a.SHIFT:case a.UP:case a.WIN_KEY:case a.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(r){if(r>=a.ZERO&&r<=a.NINE)return!0;if(r>=a.NUM_ZERO&&r<=a.NUM_MULTIPLY)return!0;if(r>=a.A&&r<=a.Z)return!0;if(window.navigator.userAgent.indexOf("WebKit")!==-1&&r===0)return!0;switch(r){case a.SPACE:case a.QUESTION_MARK:case a.NUM_PLUS:case a.NUM_MINUS:case a.NUM_PERIOD:case a.NUM_DIVISION:case a.SEMICOLON:case a.DASH:case a.EQUALS:case a.COMMA:case a.PERIOD:case a.SLASH:case a.APOSTROPHE:case a.SINGLE_QUOTE:case a.OPEN_SQUARE_BRACKET:case a.BACKSLASH:case a.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};g.a=a},"4MGa":function(x,g,e){},"4Mzw":function(x,g,e){var a=e("ukPv"),n=e("kiNa");n(a.JSON,"JSON",!0)},"4rKd":function(x,g,e){var a=e("lz10"),n=e("aKVN"),r=e("2kyd"),t=r("toPrimitive"),i=Date.prototype;t in i||a(i,t,n)},"58Ye":function(x,g,e){},"5Blz":function(x,g,e){"use strict";var a=e("MMxC"),n=e("9RRT").right,r=e("R8iy"),t=e("kGMc"),i=r("reduceRight"),v=t("reduce",{1:0});a({target:"Array",proto:!0,forced:!i||!v},{reduceRight:function(l){return n(this,l,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"5FVT":function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("h+Ho"),i={namespace:"forumsDetail",state:{forumsDetailData:{}},effects:{getForumsDetailData:r.a.mark(function v(f,l){var s,p,u,m;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=f.payload,p=l.call,u=l.put,h.next=4,p(t.d,s);case 4:return m=h.sent,h.next=7,u({type:"save",payload:{forumsDetailData:Object(a.a)({},m)}});case 7:return h.abrupt("return",m);case 8:case"end":return h.stop()}},v)}),setForumsDetailData:r.a.mark(function v(f,l){var s,p,u;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=f.payload,p=l.call,u=l.put,o.next=4,u({type:"save",payload:{forumsDetailData:Object(a.a)({},s)}});case 4:case"end":return o.stop()}},v)})},reducers:{save:function(f,l){return Object(a.a)(Object(a.a)({},f),l.payload)}},subscriptions:{setup:function(f){var l=f.dispatch,s=f.history;return s.listen(function(p){var u=p.pathname;u==="/"&&l({type:"query"})})}}};g.a=i},"5JgN":function(x,g,e){"use strict";e("FbcW");var a=e("MMxC"),n=e("29mP"),r=e("lgSf"),t=e("NMFW"),i=e("ujhg"),v=e("kiNa"),f=e("uoF6"),l=e("1aI8"),s=e("igoe"),p=e("jtLI"),u=e("7BAe"),m=e("Ei+o"),o=e("f1E4"),h=e("tSXo"),c=e("u+7+"),b=e("HhvW"),j=e("qcmB"),O=e("9SZg"),C=e("2kyd"),S=n("fetch"),M=n("Headers"),P=C("iterator"),R="URLSearchParams",z=R+"Iterator",G=l.set,D=l.getterFor(R),F=l.getterFor(z),Oe=/\+/g,le=Array(4),se=function(ee){return le[ee-1]||(le[ee-1]=RegExp("((?:%[\\da-f]{2}){"+ee+"})","gi"))},q=function(ee){try{return decodeURIComponent(ee)}catch(I){return ee}},Z=function(ee){var I=ee.replace(Oe," "),pe=4;try{return decodeURIComponent(I)}catch(Qe){for(;pe;)I=I.replace(se(pe--),q);return I}},B=/[!'()~]|%20/g,Q={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},_=function(ee){return Q[ee]},Be=function(ee){return encodeURIComponent(ee).replace(B,_)},Ke=function(ee,I){if(I)for(var pe=I.split("&"),Qe=0,me,tt;Qe0?arguments[0]:void 0,pe=this,Qe=[],me,tt,Ce,Ge,Je,gt,ge,be,xe;if(G(pe,{type:R,entries:Qe,updateURL:function(){},updateSearchParams:ct}),I!==void 0)if(h(I))if(me=O(I),typeof me=="function")for(tt=me.call(I),Ce=tt.next;!(Ge=Ce.call(tt)).done;){if(Je=j(o(Ge.value)),gt=Je.next,(ge=gt.call(Je)).done||(be=gt.call(Je)).done||!gt.call(Je).done)throw TypeError("Expected sequence with length 2");Qe.push({key:ge.value+"",value:be.value+""})}else for(xe in I)p(I,xe)&&Qe.push({key:xe,value:I[xe]+""});else Ke(Qe,typeof I=="string"?I.charAt(0)==="?"?I.slice(1):I:I+"")},ie=$.prototype;i(ie,{append:function(I,pe){We(arguments.length,2);var Qe=D(this);Qe.entries.push({key:I+"",value:pe+""}),Qe.updateURL()},delete:function(ee){We(arguments.length,1);for(var I=D(this),pe=I.entries,Qe=ee+"",me=0;meme.key){pe.splice(tt,0,me);break}tt===Ce&&pe.push(me)}I.updateURL()},forEach:function(I){for(var pe=D(this).entries,Qe=u(I,arguments.length>1?arguments[1]:void 0,3),me=0,tt;me1&&(Qe=arguments[1],h(Qe)&&(me=Qe.body,m(me)===R&&(tt=Qe.headers?new M(Qe.headers):new M,tt.has("content-type")||tt.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),Qe=c(Qe,{body:b(0,String(me)),headers:b(0,tt)}))),pe.push(Qe)),S.apply(this,pe)}}),x.exports={URLSearchParams:$,getState:D}},"5QGz":function(x,g,e){var a=e("MMxC"),n=Math.atanh,r=Math.log;a({target:"Math",stat:!0,forced:!(n&&1/n(-0)<0)},{atanh:function(i){return(i=+i)==0?i:r((1+i)/(1-i))/2}})},"5WQS":function(x,g,e){"use strict";e.d(g,"e",function(){return v}),e.d(g,"h",function(){return l}),e.d(g,"c",function(){return p}),e.d(g,"g",function(){return m}),e.d(g,"d",function(){return h}),e.d(g,"f",function(){return b}),e.d(g,"b",function(){return O}),e.d(g,"a",function(){return S});var a=e("k1fw"),n=e("9og8"),r=e("WmNS"),t=e.n(r),i=e("ErOA");function v(P){return f.apply(this,arguments)}function f(){return f=Object(n.a)(t.a.mark(function P(R){return t.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.abrupt("return",Object(i.a)("/api/users/tidings.json",{method:"get",params:Object(a.a)({},R)}));case 1:case"end":return G.stop()}},P)})),f.apply(this,arguments)}function l(P){return s.apply(this,arguments)}function s(){return s=Object(n.a)(t.a.mark(function P(R){return t.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.abrupt("return",Object(i.a)("/api/users/".concat(R.userId,"/unread_message_info.json"),{method:"get",params:Object(a.a)({},R)}));case 1:case"end":return G.stop()}},P)})),s.apply(this,arguments)}function p(P){return u.apply(this,arguments)}function u(){return u=Object(n.a)(t.a.mark(function P(R){return t.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.abrupt("return",Object(i.a)("/api/users/".concat(R.userId,"/private_messages.json"),{method:"get",params:Object(a.a)({},R)}));case 1:case"end":return G.stop()}},P)})),u.apply(this,arguments)}function m(P){return o.apply(this,arguments)}function o(){return o=Object(n.a)(t.a.mark(function P(R){return t.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.abrupt("return",Object(i.a)("/api/users/".concat(R.userId,"/private_messages.json"),{method:"post",body:Object(a.a)({},R)}));case 1:case"end":return G.stop()}},P)})),o.apply(this,arguments)}function h(P){return c.apply(this,arguments)}function c(){return c=Object(n.a)(t.a.mark(function P(R){return t.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.abrupt("return",Object(i.a)("/api/users/".concat(R.id,"/recent_contacts.json"),{method:"get",params:Object(a.a)({},R)}));case 1:case"end":return G.stop()}},P)})),c.apply(this,arguments)}function b(P){return j.apply(this,arguments)}function j(){return j=Object(n.a)(t.a.mark(function P(R){return t.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.abrupt("return",Object(i.a)("/api/users_for_private_messages.json",{method:"get",params:Object(a.a)({},R)}));case 1:case"end":return G.stop()}},P)})),j.apply(this,arguments)}function O(P){return C.apply(this,arguments)}function C(){return C=Object(n.a)(t.a.mark(function P(R){return t.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.abrupt("return",Object(i.a)("/api/users/".concat(R.userId,"/private_message_details.json"),{method:"get",params:Object(a.a)({},R)}));case 1:case"end":return G.stop()}},P)})),C.apply(this,arguments)}function S(P){return M.apply(this,arguments)}function M(){return M=Object(n.a)(t.a.mark(function P(R){return t.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.abrupt("return",Object(i.a)("/api/users/".concat(R.userId,"/private_messages/").concat(R.id,".json"),{method:"delete"}));case 1:case"end":return G.stop()}},P)})),M.apply(this,arguments)}},"5mCs":function(x,g,e){"use strict";var a=e("oBTY"),n=e("k1fw"),r=e("WmNS"),t=e.n(r),i=e("oUNq"),v={namespace:"classroomList",state:{name:"",loading:!0,detailTopBanner:{},detailLeftMenus:{},detailLeftMenusNames:{},detailShixunsList:{},detailGraduationTopicsList:{},detailGraduationTaskList:{},detailExerciseList:{},detailPollsList:{},detailCommonHomeworksList:{},detailAttendancesList:{},detailAttendancesDetail:{},detailAnnouncementList:{},detailAttachmentList:{},detailCourseware:{},courseMine:{},detailVideoList:{},detailLiveVideoList:{},detailBoardList:{},courseGroups:{},allCourseGroups:{},detailCourseGroupsList:{},detailCoursStudentsList:{},detailCourseStatisticsList:{},detailAttendancesStatistic:{},detailCourseWorkscore:{},detailCourseActscore:{},coursesLists:{},shixunLists:{},schoolList:{},taskList:[],searchMemberList:{},actionTabs:{key:""},listParams:{order:"all",page:1,limit:16,search:""},shareStatus:!1},effects:{getClassroom:t.a.mark(function f(l,s){var p,u,m,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p=l.payload,u=s.call,m=s.put,o=p,b.next=5,u(i.O,p);case 5:return h=b.sent,b.next=8,m({type:"save",payload:Object(n.a)({listParams:o},h)});case 8:return b.abrupt("return",h);case 9:case"end":return b.stop()}},f)}),getClassroomTopBanner:t.a.mark(function f(l,s){var p,u,m,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p=l.payload,u=s.call,m=s.put,c.next=4,u(i.S,p);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detailTopBanner:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},f)}),getClassroomLeftMenus:t.a.mark(function f(l,s){var p,u,m,o,h,c;return t.a.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return p=l.payload,u=s.call,m=s.put,j.next=4,u(i.N,p);case 4:return o=j.sent,h=[].concat(Object(a.a)((o==null?void 0:o.course_modules)||[]),Object(a.a)((o==null?void 0:o.hidden_modules)||[])),c={},h==null||h.forEach(function(O){c[O.type]=O.name}),j.next=10,m({type:"save",payload:{detailLeftMenus:Object(n.a)({},o),detailLeftMenusNames:c}});case 10:return j.abrupt("return",o);case 11:case"end":return j.stop()}},f)}),getClassroomShixunsList:t.a.mark(function f(l,s){var p,u,m,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p=l.payload,u=s.call,m=s.put,c.next=4,u(i.Q,p);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detailShixunsList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},f)}),getClassroomTeacherShixunsList:t.a.mark(function f(l,s){var p,u,m,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p=l.payload,u=s.call,m=s.put,c.next=4,u(i.R,p);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detailShixunsList:Object(n.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},f)}),getClassroomCommonList:t.a.mark(function f(l,s){var p,u,m,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p=l.payload,u=s.call,m=s.put,c.next=4,u(i.Q,p);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detailCommonHomeworksList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},f)}),getClassroomTeacherCommonList:t.a.mark(function f(l,s){var p,u,m,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p=l.payload,u=s.call,m=s.put,c.next=4,u(i.R,p);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detailCommonHomeworksList:Object(n.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},f)}),getClassroomGraduationTopicsList:t.a.mark(function f(l,s){var p,u,m,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p=l.payload,u=s.call,m=s.put,c.next=4,u(i.M,p);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detailGraduationTopicsList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},f)}),getClassroomGraduationTaskList:t.a.mark(function f(l,s){var p,u,m,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p=l.payload,u=s.call,m=s.put,c.next=4,u(i.L,p);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detailGraduationTaskList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},f)}),getClassroomExercisesList:t.a.mark(function f(l,s){var p,u,m,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p=l.payload,u=s.call,m=s.put,c.next=4,u(i.K,p);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detailExerciseList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},f)}),getClassroomPollsList:t.a.mark(function f(l,s){var p,u,m,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p=l.payload,u=s.call,m=s.put,c.next=4,u(i.P,p);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detailPollsList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},f)}),getCourseGroups:t.a.mark(function f(l,s){var p,u,m,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p=l.payload,u=s.call,m=s.put,c.next=4,u(i.W,p);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{courseGroups:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},f)}),getAllCourseGroup:t.a.mark(function f(l,s){var p,u,m,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p=l.payload,u=s.call,m=s.put,c.next=4,u(i.A,p);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{allCourseGroups:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},f)}),getClassroomCommonHomeworksList:t.a.mark(function f(l,s){var p,u,m,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p=l.payload,u=s.call,m=s.put,c.next=4,u(i.J,p);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detailCommonHomeworksList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},f)}),getClassroomAttendancesList:t.a.mark(function f(l,s){var p,u,m,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p=l.payload,u=s.call,m=s.put,c.next=4,u(i.H,p);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detailAttendancesList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},f)}),getClassroomAttendancesStatistic:t.a.mark(function f(l,s){var p,u,m,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p=l.payload,u=s.call,m=s.put,c.next=4,u(i.I,p);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detailAttendancesStatistic:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},f)}),getAttendanceDetail:t.a.mark(function f(l,s){var p,u,m,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p=l.payload,u=s.call,m=s.put,c.next=4,u(i.E,p);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detailAttendancesDetail:Object(n.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},f)}),getAnnouncementList:t.a.mark(function f(l,s){var p,u,m,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p=l.payload,u=s.call,m=s.put,c.next=4,u(i.C,p);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detailAnnouncementList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},f)}),getAttachmentList:t.a.mark(function f(l,s){var p,u,m,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p=l.payload,u=s.call,m=s.put,c.next=4,u(i.D,p);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detailAttachmentList:Object(n.a)({},o.data)}});case 7:case"end":return c.stop()}},f)}),getCourseware:t.a.mark(function f(l,s){var p,u,m,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p=l.payload,u=s.call,m=s.put,c.next=4,u(i.eb,p);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detailCourseware:Object(n.a)({},o.data)}});case 7:case"end":return c.stop()}},f)}),getVideoList:t.a.mark(function f(l,s){var p,u,m,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p=l.payload,u=s.call,m=s.put,c.next=4,m({type:"save",payload:{detailVideoList:{}}});case 4:return c.next=6,u(i.ob,p);case 6:return o=c.sent,c.next=9,m({type:"save",payload:{detailVideoList:Object(n.a)({},o)}});case 9:case"end":return c.stop()}},f)}),getLiveVideoList:t.a.mark(function f(l,s){var p,u,m,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p=l.payload,u=s.call,m=s.put,c.next=4,u(i.gb,p);case 4:return o=c.sent,c.next=7,m({type:"save",payload:{detailLiveVideoList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},f)}),getCoursesMine:t.a.mark(function f(l,s){var p,u,m,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p=l.payload,u=l.callback,m=s.call,o=s.put,b.next=4,m(i.db,p);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{courseMine:Object(n.a)({},h)}});case 7:return b.abrupt("return",h.data);case 8:case"end":return b.stop()}},f)}),getBoardList:t.a.mark(function f(l,s){var p,u,m,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p=l.payload,u=l.callback,m=s.call,o=s.put,b.next=4,m(i.G,p);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{detailBoardList:Object(n.a)({},h.data)}});case 7:return b.abrupt("return",h.data);case 8:case"end":return b.stop()}},f)}),getCourseGroupsList:t.a.mark(function f(l,s){var p,u,m,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p=l.payload,u=l.callback,m=s.call,o=s.put,b.next=4,m(i.X,p);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{detailCourseGroupsList:Object(n.a)({},h)}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},f)}),getCourseStudentsList:t.a.mark(function f(l,s){var p,u,m,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p=l.payload,u=l.callback,m=s.call,o=s.put,b.next=4,m(i.ab,p);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{detailCoursStudentsList:Object(n.a)({},h)}});case 7:return b.abrupt("return",h.data);case 8:case"end":return b.stop()}},f)}),getCourseStatistics:t.a.mark(function f(l,s){var p,u,m,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p=l.payload,u=l.callback,m=s.call,o=s.put,b.next=4,m(i.Z,p);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{detailCourseStatisticsList:Object(n.a)({},h)}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},f)}),getCourseActscore:t.a.mark(function f(l,s){var p,u,m,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p=l.payload,u=l.callback,m=s.call,o=s.put,b.next=4,m(i.T,p);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{detailCourseActscore:Object(n.a)({},h)}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},f)}),getCourseWorkscore:t.a.mark(function f(l,s){var p,u,m,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p=l.payload,u=l.callback,m=s.call,o=s.put,b.next=4,m(i.bb,p);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{detailCourseWorkscore:Object(n.a)({},h)}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},f)}),getShixunLists:t.a.mark(function f(l,s){var p,u,m,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p=l.payload,u=l.callback,m=s.call,o=s.put,b.next=4,m(i.nb,p);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{shixunLists:Object(n.a)({},h)}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},f)}),getExperimentLists:t.a.mark(function f(l,s){var p,u,m,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p=l.payload,u=l.callback,m=s.call,o=s.put,b.next=4,m(i.fb,p);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{shixunLists:Object(n.a)({},h)}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},f)}),getShixunAiRecommendLists:t.a.mark(function f(l,s){var p,u,m,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p=l.payload,u=l.callback,m=s.call,o=s.put,b.next=4,m(i.mb,p);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{shixunAiRecommendLists:Object(n.a)({},h)}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},f)}),getCoursesLists:t.a.mark(function f(l,s){var p,u,m,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p=l.payload,u=l.callback,m=s.call,o=s.put,b.next=4,m(i.cb,p);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{coursesLists:Object(n.a)({},h)}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},f)}),createCoursesHomework:t.a.mark(function f(l,s){var p,u,m,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p=l.payload,u=l.callback,m=s.call,o=s.put,b.next=4,m(i.f,p);case 4:return h=b.sent,b.abrupt("return",h);case 6:case"end":return b.stop()}},f)}),createShixunHomework:t.a.mark(function f(l,s){var p,u,m,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p=l.payload,u=l.callback,m=s.call,o=s.put,b.next=4,m(i.i,p);case 4:return h=b.sent,b.abrupt("return",h);case 6:case"end":return b.stop()}},f)}),createExperiment:t.a.mark(function f(l,s){var p,u,m,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p=l.payload,u=l.callback,m=s.call,o=s.put,b.next=4,m(i.g,p);case 4:return h=b.sent,b.abrupt("return",h);case 6:case"end":return b.stop()}},f)}),getSchoolList:t.a.mark(function f(l,s){var p,u,m,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p=l.payload,u=l.callback,m=s.call,o=s.put,b.next=4,m(i.kb,p);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{schoolList:Object(n.a)({},h.school_names)}});case 7:return b.abrupt("return",h.school_names);case 8:case"end":return b.stop()}},f)}),searchSchoolTeacherList:t.a.mark(function f(l,s){var p,u,m,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p=l.payload,u=l.callback,m=s.call,o=s.put,b.next=4,m(i.wb,p);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{searchMemberList:Object(n.a)({},h)}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},f)}),getAllTaskList:t.a.mark(function f(l,s){var p,u,m,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p=l.payload,u=l.callback,m=s.call,o=s.put,b.next=4,m(i.B,p);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{taskList:Object(a.a)(h.tasks)}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},f)}),updateTaskPosition:t.a.mark(function f(l,s){var p,u,m,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p=l.payload,u=l.callback,m=s.call,o=s.put,b.next=4,m(i.Hb,p);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{actionTabs:{key:""}}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},f)}),setActionTabs:t.a.mark(function f(l,s){var p,u,m;return t.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return p=l.payload,u=s.call,m=s.put,h.next=4,m({type:"save",payload:{actionTabs:Object(n.a)({},p)}});case 4:case"end":return h.stop()}},f)})},reducers:{save:function(l,s){return Object(n.a)(Object(n.a)({},l),s.payload)}},subscriptions:{setup:function(l){var s=l.dispatch,p=l.history;return p.listen(function(u){var m=u.pathname;m==="/"&&s({type:"query"})})}}};g.a=v},"5wUe":function(x,g,e){var a=e("Q9SF"),n=e("MIOZ"),r=e("mGKP"),t=e("h0XC");function i(v,f){return a(v)||n(v,f)||r(v,f)||t()}x.exports=i},"5yw/":function(x,g){x.exports={}},"66pj":function(x,g,e){var a=e("MMxC"),n=e("u93E"),r=Math.abs,t=Math.pow;a({target:"Math",stat:!0},{cbrt:function(v){return n(v=+v)*t(r(v),1/3)}})},"6CvP":function(x,g,e){"use strict";e.d(g,"a",function(){return i}),e.d(g,"c",function(){return f}),e.d(g,"e",function(){return s}),e.d(g,"d",function(){return u}),e.d(g,"b",function(){return o});var a=e("9og8"),n=e("WmNS"),r=e.n(n),t=e("ErOA");function i(){return v.apply(this,arguments)}function v(){return v=Object(a.a)(r.a.mark(function c(){return r.a.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.abrupt("return",Object(t.a)("/api/home/index.json",{method:"Get"}));case 1:case"end":return j.stop()}},c)})),v.apply(this,arguments)}function f(c){return l.apply(this,arguments)}function l(){return l=Object(a.a)(r.a.mark(function c(b){return r.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",Object(t.a)("/api/courses/apply_to_join_course.json",{method:"post",body:b}));case 1:case"end":return O.stop()}},c)})),l.apply(this,arguments)}function s(c){return p.apply(this,arguments)}function p(){return p=Object(a.a)(r.a.mark(function c(b){return r.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",Object(t.a)("/api/project_applies.json",{method:"post",body:b}));case 1:case"end":return O.stop()}},c)})),p.apply(this,arguments)}function u(c){return m.apply(this,arguments)}function m(){return m=Object(a.a)(r.a.mark(function c(b){return r.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",Object(t.a)("/api/users/home_notice.json",{method:"Get"}));case 1:case"end":return O.stop()}},c)})),m.apply(this,arguments)}function o(c){return h.apply(this,arguments)}function h(){return h=Object(a.a)(r.a.mark(function c(b){return r.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",Object(t.a)("/api/users/view_notice.json",{method:"post",body:b}));case 1:case"end":return O.stop()}},c)})),h.apply(this,arguments)}},"6FCX":function(x,g,e){var a=e("MMxC"),n=e("qA1w");a({target:"WeakMap",stat:!0},{of:n})},"6YAi":function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("yMj0"),i={namespace:"announcement",state:{name:"\u666E\u901A\u8BD5\u5377\uFF0C\u968F\u673A\u8BD5\u5377\u8BE6\u60C5\u9875\u9762",loading:!0,actionTabs:{}},effects:{informDown:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.a,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),informUp:r.a.mark(function v(f,l){var s,p,u,m,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=f.payload,p=f.callback,u=l.call,m=l.put,c.next=4,u(t.b,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),setActionTabs:r.a.mark(function v(f,l){var s,p,u;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=f.payload,p=l.call,u=l.put,o.next=4,u({type:"save",payload:{actionTabs:Object(a.a)({},s)}});case 4:case"end":return o.stop()}},v)})},reducers:{save:function(f,l){return Object(a.a)(Object(a.a)({},f),l.payload)}},subscriptions:{setup:function(f){var l=f.dispatch,s=f.history}}};g.a=i},"6cL7":function(x,g,e){"use strict";var a=e("ENif"),n=e("f1E4"),r=e("FCfD"),t=e("UPML"),i=e("dagG");a("search",1,function(v,f,l){return[function(p){var u=r(this),m=p==null?void 0:p[v];return m!==void 0?m.call(p,u):new RegExp(p)[v](String(u))},function(s){var p=l(f,s,this);if(p.done)return p.value;var u=n(s),m=String(this),o=u.lastIndex;t(o,0)||(u.lastIndex=0);var h=i(u,m);return t(u.lastIndex,o)||(u.lastIndex=o),h===null?-1:h.index}]})},"6fQ5":function(x,g,e){"use strict";e.d(g,"a",function(){return n}),e.d(g,"b",function(){return t});var a=e("k1fw"),n=function(v){return v==null?void 0:v.map(function(f){var l=(f.sub_disciplines||[]).map(function(s){return{value:s.id,label:s.name}});return{value:f.id,label:f.name,children:l}})},r={1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D",7:"\u4E03",8:"\u516B"},t=function(v){if(!v)return;var f=v||{},l=f.all_questions_count,s=f.all_score,p=f.single_questions,u=f.multiple_questions,m=f.judgement_questions,o=f.program_questions,h=f.completion_questions,c=f.subjective_questions,b=f.practical_questions,j=f.combination_questions,O=[Object(a.a)({type:"SINGLE",name:"\u5355\u9009\u9898"},p),Object(a.a)({type:"MULTIPLE",name:"\u591A\u9009\u9898"},u),Object(a.a)({type:"COMPLETION",name:"\u586B\u7A7A\u9898"},h),Object(a.a)({type:"JUDGMENT",name:"\u5224\u65AD\u9898"},m),Object(a.a)({type:"SUBJECTIVE",name:"\u7B80\u7B54\u9898"},c),Object(a.a)({type:"PROGRAM",name:"\u7F16\u7A0B\u9898"},o),Object(a.a)({type:"PRACTICAL",name:"\u5B9E\u8BAD\u9898"},b),Object(a.a)({type:"COMBINATION",name:"\u7EC4\u5408\u9898"},j)],C=O.filter(function(S){return S.questions_count>0}).map(function(S,M){return Object(a.a)(Object(a.a)({},S),{number:r[M+1]})});return{all_questions_count:l,all_score:s,questionList:C}}},"6ixQ":function(x,g){x.exports={}},"6koa":function(x,g,e){"use strict";function a(n,r){if(n===r)return!0;if(!n||!r)return!1;var t=Object.keys(n),i=Object.keys(r),v=t.length;if(i.length!==v)return!1;for(var f=0;f0?R[0]||P.data[0].ec_major_school_id:void 0}});case 14:case"end":return G.stop()}},o)}),getYearList:f.a.mark(function o(h,c){var b,j,O,C,S,M,P,R;return f.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return b=h.payload,j=c.call,O=c.put,C=c.select,G.next=4,j(l.k,b.id);case 4:return S=G.sent,G.next=7,C(function(D){return D.user});case 7:if(M=G.sent,P=M.userInfo,!(S&&S.data)){G.next=13;break}return R=s.a.getItem(P==null?void 0:P.login),G.next=13,O({type:"setMajorOrYearDataSource",payload:{key:u[1],value:S.data.map(function(D){return{label:D.year,value:D.ec_year_id}}),active:S.data.length>0?b.firstEnter?R[1]:S.data[0].ec_year_id:void 0}});case 13:case"end":return G.stop()}},o)}),getCourseResults:f.a.mark(function o(h,c){var b,j,O,C,S,M,P,R,z,G,D,F,Oe,le,se,q,Z;return f.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return b=h.payload,j=b===void 0?{}:b,O=c.call,C=c.put,S=c.select,M=j.calc,P=j.page,R=j.per_page,Q.next=5,S(function(_){return _.engineeringEvaluteList});case 5:return z=Q.sent,G=z.headerData,D=z.tabListData,Q.next=10,S(function(_){return _.user});case 10:if(F=Q.sent,Oe=F.userInfo,le=G.active[u[1]],!le){Q.next=26;break}return se={id:le,page:P||1,per_page:R||D.pageSize},M&&(se=Object(t.a)(Object(t.a)({},se),{},{page:D.pageNo})),Q.next=18,O(l.e,se);case 18:if(q=Q.sent,Z=[G.active[u[0]],G.active[u[1]]],s.a.setItem(Oe==null?void 0:Oe.login,Z),!(q&&q.ec_courses)){Q.next=24;break}return Q.next=24,C({type:"setCourseResults",payload:Object(t.a)(Object(t.a)({},D),{},{pageNo:se.page,total:q.count,pageSize:se.per_page||D.pageSize,dataSource:q.ec_courses.map(function(_,Be){return Object(t.a)(Object(t.a)({},_),{},{key:se.page>1?(se.page-1)*se.per_page+Be+1:Be+1})})})});case 24:Q.next=28;break;case 26:return Q.next=28,C({type:"setCourseResults",payload:Object(t.a)(Object(t.a)({},D),{},{pageNo:1,total:0,dataSource:[]})});case 28:case"end":return Q.stop()}},o)}),exportCourse:f.a.mark(function o(h,c){var b,j,O,C,S;return f.a.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return b=h.payload,j=c.call,O=c.select,P.next=4,O(function(R){return R.engineeringEvaluteList});case 4:if(C=P.sent,S=C.headerData,!S.active[u[1]]){P.next=9;break}return P.next=9,j(l.a,S.active[u[1]]);case 9:case"end":return P.stop()}},o)}),compute:f.a.mark(function o(h,c){var b,j,O,C,S,M;return f.a.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return b=h.payload,j=c.call,O=c.put,C=b.all,S=Object(r.a)(b,["all"]),R.next=5,j(C?l.m:l.n,S);case 5:if(M=R.sent,!(M&&M.status===0)){R.next=12;break}return n.b.success("\u8BA1\u7B97\u5B8C\u6210"),R.next=10,O({type:"getCourseResults",payload:{calc:!0}});case 10:R.next=13;break;case 12:n.b.error(M.message);case 13:case"end":return R.stop()}},o)})},reducers:{save:function(h,c){return Object(t.a)(Object(t.a)({},h),c.payload)},setMajorOrYearDataSource:function(h,c){var b=c.payload,j=h.headerData.active;return b.active&&(j=Object(t.a)(Object(t.a)({},j),{},Object(i.a)({},b.key,b.active))),Object(t.a)(Object(t.a)({},h),{},{headerData:Object(t.a)(Object(t.a)({},h.headerData),{},{dataSource:Object(t.a)(Object(t.a)({},h.headerData.dataSource),{},Object(i.a)({},b.key,Object(t.a)(Object(t.a)({},h.headerData.dataSource[b.key]),{},{dataList:b.value}))),active:j})})},setMajorOrYearActive:function(h,c){var b=c.payload;return Object(t.a)(Object(t.a)({},h),{},{headerData:Object(t.a)(Object(t.a)({},h.headerData),{},{active:Object(t.a)(Object(t.a)({},h.headerData.active),{},Object(i.a)({},b.key,b.value))})})},setCourseResults:function(h,c){var b=c.payload;return Object(t.a)(Object(t.a)({},h),{},{tabListData:Object(t.a)(Object(t.a)({},h.tabListData),b)})}},subscriptions:{setup:function(h){var c=h.dispatch,b=h.history;return b.listen(function(j){var O=j.pathname;O==="/"&&c({type:"query"})})}}};g.a=m},"7VZV":function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("9og8"),i=e("ErOA");function v(){return f.apply(this,arguments)}function f(){return f=Object(t.a)(r.a.mark(function h(){return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.abrupt("return",Object(i.a)("/api/setting.json",{method:"Get"}));case 1:case"end":return b.stop()}},h)})),f.apply(this,arguments)}function l(){return s.apply(this,arguments)}function s(){return s=Object(t.a)(r.a.mark(function h(){return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.abrupt("return",Object(i.a)("/api/users/system_update.json",{method:"Get"}));case 1:case"end":return b.stop()}},h)})),s.apply(this,arguments)}var p=e("m3rI"),u={namespace:"globalSetting",state:{name:"\u5168\u5C40\u914D\u7F6E",loading:!0,isIlearning:window.location.host.indexOf("learning.")>-1,isPaZhou:window.location.host.indexOf("local-pazhou.")>-1,showFooter:!0,showHeader:!0,showHeaderFooter:!0,showHeaderFixed:!1,onlyShowBackTop:!0,onlyShowBackTopIcons:!0,operateModel:!1,operateModelPath:"",showQuestionBackTop:!1,theme:"default",globalLoading:{show:!1,text:""},updateData:{end_time:"",start_time:"",subject:"",system_score:"",system_update:!1}},effects:{query:r.a.mark(function h(c,b){var j,O,C,S;return r.a.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return j=c.payload,O=b.call,C=b.put,P.next=4,O(v,j);case 4:return S=P.sent,o(S),P.next=8,C({type:"save",payload:Object(a.a)({},S)});case 8:case"end":return P.stop()}},h)}),getSystemUpdate:r.a.mark(function h(c,b){var j,O,C,S;return r.a.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return j=c.payload,O=b.call,C=b.put,P.next=4,O(l,j);case 4:return S=P.sent,P.next=7,C({type:"save",payload:{updateData:Object(a.a)({},S)}});case 7:case"end":return P.stop()}},h)}),setTheme:r.a.mark(function h(c,b){var j,O,C,S;return r.a.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return j=c.payload,O=b.call,C=b.put,P.next=4,O(l,j);case 4:return S=P.sent,P.next=7,C({type:"save",payload:{theme:j||"default"}});case 7:case"end":return P.stop()}},h)}),setGlobalLoading:r.a.mark(function h(c,b){var j,O,C;return r.a.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return j=c.payload,O=b.call,C=b.put,M.next=4,C({type:"save",payload:{globalLoading:Object(a.a)({},j)}});case 4:case"end":return M.stop()}},h)}),headerToggle:r.a.mark(function h(c,b){var j,O,C;return r.a.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return j=c.payload,O=b.call,C=b.put,M.next=4,C({type:"save",payload:{showHeader:j}});case 4:case"end":return M.stop()}},h)}),footerToggle:r.a.mark(function h(c,b){var j,O,C;return r.a.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return j=c.payload,O=b.call,C=b.put,M.next=4,C({type:"save",payload:{showFooter:j}});case 4:case"end":return M.stop()}},h)}),headerFooterToggle:r.a.mark(function h(c,b){var j,O,C;return r.a.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return j=c.payload,O=b.call,C=b.put,M.next=4,C({type:"save",payload:{showHeaderFooter:j}});case 4:case"end":return M.stop()}},h)}),headerFixedToggle:r.a.mark(function h(c,b){var j,O,C;return r.a.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return j=c.payload,O=b.call,C=b.put,M.next=4,C({type:"save",payload:{showHeaderFixed:j}});case 4:case"end":return M.stop()}},h)}),onlyShowBackTopToggle:r.a.mark(function h(c,b){var j,O,C;return r.a.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return j=c.payload,O=b.call,C=b.put,M.next=4,C({type:"save",payload:{onlyShowBackTop:j}});case 4:case"end":return M.stop()}},h)}),onlyShowBackTopIconToggle:r.a.mark(function h(c,b){var j,O,C;return r.a.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return j=c.payload,O=b.call,C=b.put,M.next=4,C({type:"save",payload:{onlyShowBackTopIcons:j}});case 4:case"end":return M.stop()}},h)}),setOperateModel:r.a.mark(function h(c,b){var j,O,C;return r.a.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return j=c.payload,O=b.call,C=b.put,M.next=4,C({type:"save",payload:{operateModel:j}});case 4:case"end":return M.stop()}},h)}),setOperateModelPath:r.a.mark(function h(c,b){var j,O,C;return r.a.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return j=c.payload,O=b.call,C=b.put,M.next=4,C({type:"save",payload:{operateModelPath:j}});case 4:case"end":return M.stop()}},h)}),setShowQuestionBackTop:r.a.mark(function h(c,b){var j,O,C;return r.a.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return j=c.payload,O=b.call,C=b.put,M.next=4,C({type:"save",payload:{showQuestionBackTop:j}});case 4:case"end":return M.stop()}},h)})},reducers:{save:function(c,b){return Object(a.a)(Object(a.a)({},c),b.payload)}},subscriptions:{setup:function(c){var b=c.dispatch,j=c.history;return j.listen(function(O){var C=O.pathname;C==="/"})}}},m=g.a=u,o=function(){var c,b,j,O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(c=O.setting)===null||c===void 0||c.tab_logo_url;var C=document.createElement("link"),S=document.getElementById("dynamic-favicon");C.id="dynamic-favicon",C.rel="shortcut icon",C.href=(b=O.setting)!==null&&b!==void 0&&b.tab_logo_url?"".concat(p.a.IMG_SERVER,"/").concat((j=O.setting)===null||j===void 0?void 0:j.tab_logo_url):"".concat(p.a.IMG_SERVER,"/react/build/./favicon.ico"),S&&document.head.removeChild(S),document.head.appendChild(C)}},"7W2i":function(x,g,e){var a=e("SksO");function n(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&a(r,t)}x.exports=n,x.exports.__esModule=!0,x.exports.default=x.exports},"7bO/":function(x,g,e){"use strict";e.d(g,"b",function(){return a});var a={};e.r(a),e.d(a,"take",function(){return Yt}),e.d(a,"takem",function(){return pn}),e.d(a,"put",function(){return nn}),e.d(a,"all",function(){return Cn}),e.d(a,"race",function(){return rn}),e.d(a,"call",function(){return cn}),e.d(a,"apply",function(){return fn}),e.d(a,"cps",function(){return xn}),e.d(a,"fork",function(){return En}),e.d(a,"spawn",function(){return Tt}),e.d(a,"join",function(){return jt}),e.d(a,"cancel",function(){return Mt}),e.d(a,"select",function(){return Ft}),e.d(a,"actionChannel",function(){return De}),e.d(a,"cancelled",function(){return _e}),e.d(a,"flush",function(){return ne}),e.d(a,"getContext",function(){return Me}),e.d(a,"setContext",function(){return J}),e.d(a,"takeEvery",function(){return kr}),e.d(a,"takeLatest",function(){return Jn}),e.d(a,"throttle",function(){return Nr});var n=Object.assign||function(ae){for(var oe=1;oe=0&&ae.splice(Ie,1)}var P={from:function(oe){var Ie=Array(oe.length);for(var ze in oe)O(oe,ze)&&(Ie[ze]=oe[ze]);return Ie}};function R(){var ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},oe=n({},ae),Ie=new Promise(function(ze,ht){oe.resolve=ze,oe.reject=ht});return oe.promise=Ie,oe}function z(ae){for(var oe=[],Ie=0;Ie1&&arguments[1]!==void 0?arguments[1]:!0,Ie=void 0,ze=new Promise(function(ht){Ie=setTimeout(function(){return ht(oe)},ae)});return ze[l]=function(){return clearTimeout(Ie)},ze}function D(){var ae,oe=!0,Ie=void 0,ze=void 0;return ae={},ae[i]=!0,ae.isRunning=function(){return oe},ae.result=function(){return Ie},ae.error=function(){return ze},ae.setRunning=function(Pt){return oe=Pt},ae.setResult=function(Pt){return Ie=Pt},ae.setError=function(Pt){return ze=Pt},ae}function F(){var ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return function(){return++ae}}var Oe=F(),le=function(oe){throw oe},se=function(oe){return{value:oe,done:!0}};function q(ae){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le,Ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",ze=arguments[3],ht={name:Ie,next:ae,throw:oe,return:se};return ze&&(ht[v]=!0),typeof Symbol!="undefined"&&(ht[Symbol.iterator]=function(){return ht}),ht}function Z(ae,oe){var Ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";typeof window=="undefined"?console.log("redux-saga "+ae+": "+oe+` `+(Ie&&Ie.stack||Ie)):console[ae](oe,Ie)}function B(ae,oe){return function(){return ae.apply(void 0,arguments)}}var Q=function(oe,Ie){return oe+" has been deprecated in favor of "+Ie+", please update your code"},_=function(oe){return new Error(` redux-saga: Error checking hooks detected an inconsistent state. This is likely a bug in redux-saga code and not yours. Thanks for reporting this in the project's github repo.