You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/21560.async.js

1 line
18 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[21560],{78673:function(e,n,t){"use strict";t.d(n,{Z:function(){return N}});var r=t(58617),i=t(92310),a=t.n(i),o=t(5016),c=t(18082),l=t(52456),u=t(5883),s=t(59301),d=t(18929),f=t(10228),p=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],g=s.forwardRef((function(e,n){var t,r=e.prefixCls,i=void 0===r?"rc-switch":r,g=e.className,h=e.checked,m=e.defaultChecked,v=e.disabled,b=e.loadingIcon,S=e.checkedChildren,w=e.unCheckedChildren,y=e.onClick,x=e.onChange,$=e.onKeyDown,k=(0,u.Z)(e,p),I=(0,d.Z)(!1,{value:h,defaultValue:m}),_=(0,l.Z)(I,2),E=_[0],O=_[1];function C(e,n){var t=E;return v||(O(t=e),null==x||x(t,n)),t}var j=a()(i,g,(t={},(0,c.Z)(t,"".concat(i,"-checked"),E),(0,c.Z)(t,"".concat(i,"-disabled"),v),t));return s.createElement("button",(0,o.Z)({},k,{type:"button",role:"switch","aria-checked":E,disabled:v,className:j,ref:n,onKeyDown:function(e){e.which===f.Z.LEFT?C(!1,e):e.which===f.Z.RIGHT&&C(!0,e),null==$||$(e)},onClick:function(e){var n=C(!E,e);null==y||y(n,e)}}),b,s.createElement("span",{className:"".concat(i,"-inner")},s.createElement("span",{className:"".concat(i,"-inner-checked")},S),s.createElement("span",{className:"".concat(i,"-inner-unchecked")},w)))}));g.displayName="Switch";var h=g,m=t(14088),v=t(36355),b=t(1684),S=t(19716),w=t(64993),y=t(17313),x=t(83116),$=t(37613);const k=e=>{const{componentCls:n,trackHeightSM:t,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:a,innerMaxMarginSM:o,handleSizeSM:c}=e,l=`${n}-inner`;return{[n]:{[`&${n}-small`]:{minWidth:i,height:t,lineHeight:`${t}px`,[`${n}-inner`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${c+2*r}px - ${2*o}px)`,marginInlineEnd:`calc(100% - ${c+2*r}px + ${2*o}px)`},[`${l}-unchecked`]:{marginTop:-t,marginInlineStart:0,marginInlineEnd:0}},[`${n}-handle`]:{width:c,height:c},[`${n}-loading-icon`]:{top:(c-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${n}-checked`]:{[`${n}-inner`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${c+2*r}px + ${2*o}px)`,marginInlineEnd:`calc(-100% + ${c+2*r}px - ${2*o}px)`}},[`${n}-handle`]:{insetInlineStart:`calc(100% - ${c+r}px)`}},[`&:not(${n}-disabled):active`]:{[`&:not(${n}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${n}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},I=e=>{const{componentCls:n,handleSize:t}=e;return{[n]:{[`${n}-loading-icon${e.iconCls}`]:{position:"relative",top:(t-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${n}-checked ${n}-loading-icon`]:{color:e.switchColor}}}},_=e=>{const{componentCls:n,motion:t,trackPadding:r,handleBg:i,handleShadow:a,handleSize:o}=e,c=`${n}-handle`;return{[n]:{[c]:{position:"absolute",top:r,insetInlineStart:r,width:o,height:o,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:i,borderRadius:o/2,boxShadow:a,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${n}-checked ${c}`]:{insetInlineStart:`calc(100% - ${o+r}px)`},[`&:not(${n}-disabled):active`]:t?{[`${c}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${n}-checked ${c}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}:{}}}},E=e=>{const{componentCls:n,trackHeight:t,trackPadding:r,innerMinMargin:i,innerMaxMargin:a,handleSize:o}=e,c=`${n}-inner`;return{[n]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:i,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${c}-checked, ${c}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${o+2*r}px - ${2*a}px)`,marginInlineEnd:`calc(100% - ${o+2*r}px + ${2*a}px)`},[`${c}-unchecked`]:{marginTop:-t,marginInlineStart:0,marginInlineEnd:0}},[`&${n}-checked ${c}`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${o+2*r}px + ${2*a}px)`,marginInlineEnd:`calc(-100% + ${o+2*r}px - ${2*a}px)`}},[`&:not(${n}-disabled):active`]:{[`&:not(${n}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:2*r,marginInlineEnd:2*-r}},[`&${n}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:2*-r,marginInlineEnd:2*r}}}}}},O=e=>{const{componentCls:n,trackHeight:t,trackMinWidth:r}=e;return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,y.Wf)(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:t,lineHeight:`${t}px`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${n}-disabled)`]:{background:e.colorTextTertiary}}),(0,y.Qy)(e)),{[`&${n}-checked`]:{background:e.switchColor,[`&:hover:not(${n}-disabled)`]:{background:e.colorPrimaryHover}},[`&${n}-loading, &${n}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${n}-rtl`]:{direction:"rtl"}})}};var C=(0,x.Z)("Switch",(e=>{const n=(0,$.TS)(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:.75*e.fontSizeIcon,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[O(n),E(n),_(n),I(n),k(n)]}),(e=>{const{fontSize:n,lineHeight:t,controlHeight:r,colorWhite:i}=e,a=n*t,o=r/2,c=a-4,l=o-4;return{trackHeight:a,trackHeightSM:o,trackMinWidth:2*c+8,trackMinWidthSM:2*l+4,trackPadding:2,handleBg:i,handleSize:c,handleSizeSM:l,handleShadow:`0 2px 4px 0 ${new w.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:c/2,innerMaxMargin:c+2+4,innerMinMarginSM:l/2,innerMaxMarginSM:l+2+4}})),j=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(t[r[i]]=e[r[i]])}return t};const M=s.forwardRef(((e,n)=>{const{prefixCls:t,size:i,disabled:o,loading:c,className:l,rootClassName:u,style:d}=e,f=j(e,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:p,direction:g,switch:w}=s.useContext(v.E_),y=s.useContext(b.Z),x=(null!=o?o:y)||c,$=p("switch",t),k=s.createElement("div",{className:`${$}-handle`},c&&s.createElement(r.Z,{className:`${$}-loading-icon`})),[I,_]=C($),E=(0,S.Z)(i),O=a()(null==w?void 0:w.className,{[`${$}-small`]:"small"===E,[`${$}-loading`]:c,[`${$}-rtl`]:"rtl"===g},l,u,_),M=Object.assign(Object.assign({},null==w?void 0:w.style),d);return I(s.createElement(m.Z,{component:"Switch"},s.createElement(h,Object.assign({},f,{prefixCls:$,className:O,style:M,disabled:x,ref:n,loadingIcon:k}))))}));M.__ANT_SWITCH=!0;var N=M},7062:function(e,n,t){var r=t(500),i=t(13412),a=[t(96627)];e.exports=r.createStore(i,a)},96627:function(e,n,t){e.exports=function(){return t(42424),{}}},42424:function(){"object"!=typeof JSON&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta,rep;function f(e){return e<10?"0"+e:e}function this_value(){return this.valueOf()}function quote(e){return rx_escapable.lastIndex=0,rx_escapable.test(e)?'"'+e.replace(rx_escapable,(function(e){var n=meta[e];return"string"==typeof n?n:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}function str(e,n){var t,r,i,a,o,c=gap,l=n[e];switch(l&&"object"==typeof l&&"function"==typeof l.toJSON&&(l=l.toJSON(e)),"function"==typeof rep&&(l=rep.call(n,e,l)),typeof l){case"string":return quote(l);case"number":return isFinite(l)?String(l):"null";case"boolean":case"null":return String(l);case"object":if(!l)return"null";if(gap+=indent,o=[],"[object Array]"===Object.prototype.toString.apply(l)){for(a=l.length,t=0;t<a;t+=1)o[t]=str(t,l)||"null";return i=0===o.length?"[]":gap?"[\n"+gap+o.join(",\n"+gap)+"\n"+c+"]":"["+o.join(",")+"]",gap=c,i}if(rep&&"object"==typeof rep)for(a=rep.length,t=0;t<a;t+=1)"string"==typeof rep[t]&&(i=str(r=rep[t],l))&&o.push(quote(r)+(gap?": ":":")+i);else for(r in l)Object.prototype.hasOwnProperty.call(l,r)&&(i=str(r,l))&&o.push(quote(r)+(gap?": ":":")+i);return i=0===o.length?"{}":gap?"{\n"+gap+o.join(",\n"+gap)+"\n"+c+"}":"{"+o.join(",")+"}",gap=c,i}}"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value),"function"!=typeof JSON.stringify&&(meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(e,n,t){var r;if(gap="",indent="","number"==typeof t)for(r=0;r<t;r+=1)indent+=" ";else"string"==typeof t&&(indent=t);if(rep=n,n&&"function"!=typeof n&&("object"!=typeof n||"number"!=typeof n.length))throw new Error("JSON.stringify");return str("",{"":e})}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){var j;function walk(e,n){var t,r,i=e[n];if(i&&"object"==typeof i)for(t in i)Object.prototype.hasOwnProperty.call(i,t)&&(void 0!==(r=walk(i,t))?i[t]=r:delete i[t]);return reviver.call(e,n,i)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,(function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},500:function(e,n,t){var r=t(67039),i=r.slice,a=r.pluck,o=r.each,c=r.bind,l=r.create,u=r.isList,s=r.isFunction,d=r.isObject;e.exports={createStore:p};var f={version:"2.0.12",enabled:!1,get:function(e,n){var t=this.storage.read(this._namespacePrefix+e);return this._deserialize(t,n)},set:function(e,n){return void 0===n?this.remove(e):(this.storage.write(this._namespacePrefix+e,this._serialize(n)),n)},remove:function(e){this.storage.remove(this._namespacePrefix+e)},each:function(e){var n=this;this.storage.each((function(t,r){e.call(n,n._deserialize(t),(r||"").replace(n._namespaceRegexp,""))}))},clearAll:function(){this.storage.clearAll()},hasNamespace:function(e){return this._namespacePrefix=="__storejs_"+e+"_"},createStore:function(){return p.apply(this,arguments)},addPlugin:function(e){this._addPlugin(e)},namespace:function(e){return p(this.storage,this.plugins,e)}};function p(e,n,t){t||(t=""),e&&!u(e)&&(e=[e]),n&&!u(n)&&(n=[n]);var r=t?"__storejs_"+t+"_":"",p=t?new RegExp("^"+r):null;if(!/^[a-zA-Z0-9_\-]*$/.test(t))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var g={_namespacePrefix:r,_namespaceRegexp:p,_testStorage:function(e){try{var n="__storejs__test__";e.write(n,n);var t=e.read(n)===n;return e.remove(n),t}catch(e){return!1}},_assignPluginFnProp:function(e,n){var t=this[n];this[n]=function(){var n=i(arguments,0),r=this;function a(){if(t)return o(arguments,(function(e,t){n[t]=e})),t.apply(r,n)}var c=[a].concat(n);return e.apply(r,c)}},_serialize:function(e){return JSON.stringify(e)},_deserialize:function(e,n){if(!e)return n;var t="";try{t=JSON.parse(e)}catch(n){t=e}return void 0!==t?t:n},_addStorage:function(e){this.enabled||this._testStorage(e)&&(this.storage=e,this.enabled=!0)},_addPlugin:function(e){var n=this;if(u(e))o(e,(function(e){n._addPlugin(e)}));else if(!a(this.plugins,(function(n){return e===n}))){if(this.plugins.push(e),!s(e))throw new Error("Plugins must be function values that return objects");var t=e.call(this);if(!d(t))throw new Error("Plugins must return an object of function properties");o(t,(function(t,r){if(!s(t))throw new Error("Bad plugin property: "+r+" from plugin "+e.name+". Plugins should only return functions.");n._assignPluginFnProp(t,r)}))}},addStorage:function(e){!function(){var e="undefined"==typeof console?null:console;if(e){(e.warn?e.warn:e.log).apply(e,arguments)}}("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(e)}},h=l(g,f,{plugins:[]});return h.raw={},o(h,(function(e,n){s(e)&&(h.raw[n]=c(h,e))})),o(e,(function(e){h._addStorage(e)})),o(n,(function(e){h._addPlugin(e)})),h}},67039:function(e,n,t){var r=Object.assign?Object.assign:function(e,n,t,r){for(var i=1;i<arguments.length;i++)l(Object(arguments[i]),(function(n,t){e[t]=n}));return e},i=function(){if(Object.create)return function(e,n,t,i){var a=c(arguments,1);return r.apply(this,[Object.create(e)].concat(a))};{function e(){}return function(n,t,i,a){var o=c(arguments,1);return e.prototype=n,r.apply(this,[new e].concat(o))}}}(),a=String.prototype.trim?function(e){return String.prototype.trim.call(e)}:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},o="undefined"!=typeof window?window:t.g;function c(e,n){return Array.prototype.slice.call(e,n||0)}function l(e,n){u(e,(function(e,t){return n(e,t),!1}))}function u(e,n){if(s(e)){for(var t=0;t<e.length;t++)if(n(e[t],t))return e[t]}else for(var r in e)if(e.hasOwnProperty(r)&&n(e[r],r))return e[r]}function s(e){return null!=e&&"function"!=typeof e&&"number"==typeof e.length}e.exports={assign:r,create:i,trim:a,bind:function(e,n){return function(){return n.apply(e,Array.prototype.slice.call(arguments,0))}},slice:c,each:l,map:function(e,n){var t=s(e)?[]:{};return u(e,(function(e,r){return t[r]=n(e,r),!1})),t},pluck:u,isList:s,isFunction:function(e){return e&&"[object Function]"==={}.toString.call(e)},isObject:function(e){return e&&"[object Object]"==={}.toString.call(e)},Global:o}},13412:function(e,n,t){e.exports=[t(52496),t(16436),t(76673),t(35701),t(65578),t(65300)]},35701:function(e,n,t){var r=t(67039),i=r.Global,a=r.trim;e.exports={name:"cookieStorage",read:function(e){if(!e||!u(e))return null;var n="(?:^|.*;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(o.cookie.replace(new RegExp(n),"$1"))},write:function(e,n){if(!e)return;o.cookie=escape(e)+"="+escape(n)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/"},each:c,remove:l,clearAll:function(){c((function(e,n){l(n)}))}};var o=i.document;function c(e){for(var n=o.cookie.split(/; ?/g),t=n.length-1;t>=0;t--)if(a(n[t])){var r=n[t].split("="),i=unescape(r[0]);e(unescape(r[1]),i)}}function l(e){e&&u(e)&&(o.cookie=escape(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function u(e){return new RegExp("(?:^|;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(o.cookie)}},52496:function(e,n,t){var r=t(67039).Global;function i(){return r.localStorage}function a(e){return i().getItem(e)}e.exports={name:"localStorage",read:a,write:function(e,n){return i().setItem(e,n)},each:function(e){for(var n=i().length-1;n>=0;n--){var t=i().key(n);e(a(t),t)}},remove:function(e){return i().removeItem(e)},clearAll:function(){return i().clear()}}},65300:function(e){e.exports={name:"memoryStorage",read:function(e){return n[e]},write:function(e,t){n[e]=t},each:function(e){for(var t in n)n.hasOwnProperty(t)&&e(n[t],t)},remove:function(e){delete n[e]},clearAll:function(e){n={}}};var n={}},16436:function(e,n,t){var r=t(67039).Global;e.exports={name:"oldFF-globalStorage",read:function(e){return i[e]},write:function(e,n){i[e]=n},each:a,remove:function(e){return i.removeItem(e)},clearAll:function(){a((function(e,n){delete i[e]}))}};var i=r.globalStorage;function a(e){for(var n=i.length-1;n>=0;n--){var t=i.key(n);e(i[t],t)}}},76673:function(e,n,t){var r=t(67039).Global;e.exports={name:"oldIE-userDataStorage",write:function(e,n){if(c)return;var t=u(e);o((function(e){e.setAttribute(t,n),e.save(i)}))},read:function(e){if(c)return;var n=u(e),t=null;return o((function(e){t=e.getAttribute(n)})),t},each:function(e){o((function(n){for(var t=n.XMLDocument.documentElement.attributes,r=t.length-1;r>=0;r--){var i=t[r];e(n.getAttribute(i.name),i.name)}}))},remove:function(e){var n=u(e);o((function(e){e.removeAttribute(n),e.save(i)}))},clearAll:function(){o((function(e){var n=e.XMLDocument.documentElement.attributes;e.load(i);for(var t=n.length-1;t>=0;t--)e.removeAttribute(n[t].name);e.save(i)}))}};var i="storejs",a=r.document,o=function(){if(!a||!a.documentElement||!a.documentElement.addBehavior)return null;var e,n,t,r="script";try{(n=new ActiveXObject("htmlfile")).open(),n.write("<"+r+">document.w=window</"+r+'><iframe src="/favicon.ico"></iframe>'),n.close(),e=n.w.frames[0].document,t=e.createElement("div")}catch(n){t=a.createElement("div"),e=a.body}return function(n){var r=[].slice.call(arguments,0);r.unshift(t),e.appendChild(t),t.addBehavior("#default#userData"),t.load(i),n.apply(this,r),e.removeChild(t)}}(),c=(r.navigator?r.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);var l=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function u(e){return e.replace(/^\d/,"___$&").replace(l,"___")}},65578:function(e,n,t){var r=t(67039).Global;function i(){return r.sessionStorage}function a(e){return i().getItem(e)}e.exports={name:"sessionStorage",read:a,write:function(e,n){return i().setItem(e,n)},each:function(e){for(var n=i().length-1;n>=0;n--){var t=i().key(n);e(a(t),t)}},remove:function(e){return i().removeItem(e)},clearAll:function(){return i().clear()}}}}]);