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/p__Shixuns__Edit.5faddb59.a...

589 lines
2.4 MiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

(window.webpackJsonp=window.webpackJsonp||[]).push([[240,3,5,6,7,8,9,10,13,20,247],{"+GGh":function(M,Y){M.exports="data:image/png;base64,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"},"+NIl":function(M,Y,o){(function(L){L(o("VrN/"))})(function(L){"use strict";L.defineMode("stex",function(g,A){"use strict";function b(a,n){a.cmdState.push(n)}function y(a){return a.cmdState.length>0?a.cmdState[a.cmdState.length-1]:null}function x(a){var n=a.cmdState.pop();n&&n.closeBracket()}function w(a){for(var n=a.cmdState,i=n.length-1;i>=0;i--){var h=n[i];if(h.name=="DEFAULT")continue;return h}return{styleIdentifier:function(){return null}}}function f(a,n,i){return function(){this.name=a,this.bracketNo=0,this.style=n,this.styles=i,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=f("importmodule","tag",["string","builtin"]),_.documentclass=f("documentclass","tag",["","atom"]),_.usepackage=f("usepackage","tag",["atom"]),_.begin=f("begin","tag",["atom"]),_.end=f("end","tag",["atom"]),_.label=f("label","tag",["atom"]),_.ref=f("ref","tag",["atom"]),_.eqref=f("eqref","tag",["atom"]),_.cite=f("cite","tag",["atom"]),_.bibitem=f("bibitem","tag",["atom"]),_.Bibitem=f("Bibitem","tag",["atom"]),_.RBibitem=f("RBibitem","tag",["atom"]),_.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function d(a,n){a.f=n}function r(a,n){var i;if(a.match(/^\\[a-zA-Z@]+/)){var h=a.current().slice(1);return i=_.hasOwnProperty(h)?_[h]:_.DEFAULT,i=new i,b(n,i),d(n,t),i.style}if(a.match(/^\\[$&%#{}_]/))return"tag";if(a.match(/^\\[,;!\/\\]/))return"tag";if(a.match("\\["))return d(n,function(s,p){return u(s,p,"\\]")}),"keyword";if(a.match("\\("))return d(n,function(s,p){return u(s,p,"\\)")}),"keyword";if(a.match("$$"))return d(n,function(s,p){return u(s,p,"$$")}),"keyword";if(a.match("$"))return d(n,function(s,p){return u(s,p,"$")}),"keyword";var l=a.next();if(l=="%")return a.skipToEnd(),"comment";if(l=="}"||l=="]"){if(i=y(n),i)i.closeBracket(l),d(n,t);else return"error";return"bracket"}else return l=="{"||l=="["?(i=_.DEFAULT,i=new i,b(n,i),"bracket"):/\d/.test(l)?(a.eatWhile(/[\w.%]/),"atom"):(a.eatWhile(/[\w\-_]/),i=w(n),i.name=="begin"&&(i.argument=a.current()),i.styleIdentifier())}function u(a,n,i){if(a.eatSpace())return null;if(i&&a.match(i))return d(n,r),"keyword";if(a.match(/^\\[a-zA-Z@]+/))return"tag";if(a.match(/^[a-zA-Z]+/))return"variable-2";if(a.match(/^\\[$&%#{}_]/))return"tag";if(a.match(/^\\[,;!\/]/))return"tag";if(a.match(/^[\^_&]/))return"tag";if(a.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(a.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var h=a.next();return h=="{"||h=="}"||h=="["||h=="]"||h=="("||h==")"?"bracket":h=="%"?(a.skipToEnd(),"comment"):"error"}function t(a,n){var i=a.peek(),h;return i=="{"||i=="["?(h=y(n),h.openBracket(i),a.eat(i),d(n,r),"bracket"):/[ \t\r]/.test(i)?(a.eat(i),null):(d(n,r),x(n),r(a,n))}return{startState:function(){var a=A.inMathMode?function(n,i){return u(n,i)}:r;return{cmdState:[],f:a}},copyState:function(a){return{cmdState:a.cmdState.slice(),f:a.f}},token:function(a,n){return n.f(a,n)},blankLine:function(a){a.f=r,a.cmdState.length=0},lineComment:"%"}}),L.defineMIME("text/x-stex","stex"),L.defineMIME("text/x-latex","stex")})},"+QRC":function(M,Y,o){"use strict";var L=o("E9nw"),g={"text/plain":"Text","text/html":"Url",default:"Text"},A="Copy to clipboard: #{key}, Enter";function b(x){var w=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return x.replace(/#{\s*key\s*}/g,w)}function y(x,w){var f,_,d,r,u,t,a=!1;w||(w={}),f=w.debug||!1;try{d=L(),r=document.createRange(),u=document.getSelection(),t=document.createElement("span"),t.textContent=x,t.style.all="unset",t.style.position="fixed",t.style.top=0,t.style.clip="rect(0, 0, 0, 0)",t.style.whiteSpace="pre",t.style.webkitUserSelect="text",t.style.MozUserSelect="text",t.style.msUserSelect="text",t.style.userSelect="text",t.addEventListener("copy",function(i){if(i.stopPropagation(),w.format)if(i.preventDefault(),typeof i.clipboardData=="undefined"){f&&console.warn("unable to use e.clipboardData"),f&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var h=g[w.format]||g.default;window.clipboardData.setData(h,x)}else i.clipboardData.clearData(),i.clipboardData.setData(w.format,x);w.onCopy&&(i.preventDefault(),w.onCopy(i.clipboardData))}),document.body.appendChild(t),r.selectNodeContents(t),u.addRange(r);var n=document.execCommand("copy");if(!n)throw new Error("copy command was unsuccessful");a=!0}catch(i){f&&console.error("unable to copy using execCommand: ",i),f&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(w.format||"text",x),w.onCopy&&w.onCopy(window.clipboardData),a=!0}catch(h){f&&console.error("unable to copy using clipboardData: ",h),f&&console.error("falling back to prompt"),_=b("message"in w?w.message:A),window.prompt(_,x)}}finally{u&&(typeof u.removeRange=="function"?u.removeRange(r):u.removeAllRanges()),t&&document.body.removeChild(t),d()}return a}M.exports=y},"+Xk9":function(M,Y,o){M.exports={btn:"btn___2veY9",s1:"s1___ZVDC_",s2:"s2___2Da-A"}},"+ua5":function(M,Y,o){},"/GNS":function(M,Y,o){M.exports=o.p+"static/search1.c4136dd4.png"},"11/R":function(module,__webpack_exports__,__webpack_require__){"use strict";var antd_es_switch_style__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("BoS7"),antd_es_switch__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("Sdc0"),antd_es_popover_style__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("Q9mQ"),antd_es_popover__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("diRs"),antd_es_tooltip_style__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("5Dmo"),antd_es_tooltip__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("3S7+"),antd_es_input_number_style__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("giR+"),antd_es_input_number__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("fyUT"),antd_es_input_style__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("5NDa"),antd_es_input__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("5rEg"),antd_es_space_style__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("DYRE"),antd_es_space__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("zeV3"),antd_es_date_picker_style__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("iQDF"),antd_es_date_picker__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("+eQT"),antd_es_badge_style__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("Awhp"),antd_es_badge__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("KrTs"),antd_es_auto_complete_style__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("O3gP"),antd_es_auto_complete__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("lrIw"),antd_es_radio_style__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("7Kak"),antd_es_radio__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("9yH6"),antd_es_checkbox_style__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("sRBo"),antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("kaz8"),antd_es_button_style__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("+L6B"),antd_es_button__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("2/Rp"),antd_es_menu_style__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("lUTK"),antd_es_menu__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("BvKs"),antd_es_modal_style__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("2qtc"),antd_es_modal__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("kLXV"),_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("jrin"),_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("k1fw"),_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("oBTY"),antd_es_message_style__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("miYZ"),antd_es_message__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__("tsqr"),_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__=__webpack_require__("9og8"),_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__=__webpack_require__("tJVT"),antd_es_select_style__WEBPACK_IMPORTED_MODULE_35__=__webpack_require__("OaEy"),antd_es_select__WEBPACK_IMPORTED_MODULE_36__=__webpack_require__("2fM7"),_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37__=__webpack_require__("WmNS"),_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default=__webpack_require__.n(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37__),react__WEBPACK_IMPORTED_MODULE_38__=__webpack_require__("q1tI"),react__WEBPACK_IMPORTED_MODULE_38___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_38__),umi__WEBPACK_IMPORTED_MODULE_39__=__webpack_require__("Ty5D"),umi__WEBPACK_IMPORTED_MODULE_40__=__webpack_require__("9kvl"),_index_less_modules__WEBPACK_IMPORTED_MODULE_41__=__webpack_require__("1nVM"),_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default=__webpack_require__.n(_index_less_modules__WEBPACK_IMPORTED_MODULE_41__),moment__WEBPACK_IMPORTED_MODULE_42__=__webpack_require__("wd/R"),moment__WEBPACK_IMPORTED_MODULE_42___default=__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_42__),antd_lib_date_picker_locale_zh_CN__WEBPACK_IMPORTED_MODULE_43__=__webpack_require__("Z0Lh"),antd_lib_date_picker_locale_zh_CN__WEBPACK_IMPORTED_MODULE_43___default=__webpack_require__.n(antd_lib_date_picker_locale_zh_CN__WEBPACK_IMPORTED_MODULE_43__),_ant_design_icons__WEBPACK_IMPORTED_MODULE_44__=__webpack_require__("w5pM"),_ant_design_icons__WEBPACK_IMPORTED_MODULE_45__=__webpack_require__("wlus"),_ant_design_icons__WEBPACK_IMPORTED_MODULE_46__=__webpack_require__("y3Kf"),_ant_design_icons__WEBPACK_IMPORTED_MODULE_47__=__webpack_require__("8Skl"),_ant_design_icons__WEBPACK_IMPORTED_MODULE_48__=__webpack_require__("RCxd"),_components_monaco_editor__WEBPACK_IMPORTED_MODULE_49__=__webpack_require__("ZW9T"),_utils_authority__WEBPACK_IMPORTED_MODULE_50__=__webpack_require__("xKgJ"),_pages_Shixuns_New_components_ApplyModal__WEBPACK_IMPORTED_MODULE_51__=__webpack_require__("FrRK"),_UseCustomScriptModal__WEBPACK_IMPORTED_MODULE_52__=__webpack_require__("QNag"),_utils_fetch__WEBPACK_IMPORTED_MODULE_53__=__webpack_require__("ErOA"),_components_Permission__WEBPACK_IMPORTED_MODULE_54__=__webpack_require__("sLOW"),_utils_env__WEBPACK_IMPORTED_MODULE_55__=__webpack_require__("m3rI"),_utils_verifyLogin_tsx__WEBPACK_IMPORTED_MODULE_56__=__webpack_require__("NLgs"),timeFormat="YYYY-MM-DD HH:mm",Option=antd_es_select__WEBPACK_IMPORTED_MODULE_36__.a.Option,handleDateString=function(Y){if(!Y)return Y;var o=Y.split(":");if(o[1]=="00"||o[1]=="30")return Y;var L=parseInt(o[1]);if(L<30||L==60)return[o[0],"30"].join(":");if(L<60){var g=[o[0],"00"].join(":"),A="YYYY-MM-DD HH:mm",b=moment__WEBPACK_IMPORTED_MODULE_42___default()(g,A);return b.add(1,"hours"),b.format(A)}return Y},radioStyle={display:"block",height:"30px",lineHeight:"30px"};function Setting(_ref){var _user$userInfo,_user$userInfo$shixun,_shixunsDetail$detail,_shixunsDetail$detail2,_shixunsDetail$detail3,_shixunsDetail$detail4,_shixunsDetail$detail5,_shixunsDetail$settin97,_shixunsDetail$settin98,_shixunsDetail$detail6,_shixunsDetail$detail7,_shixunsDetail$settin150,_shixunsDetail$settin151,_shixunsDetail$settin152,_shixunsDetail$settin153,_shixunsDetail$detail8,user=_ref.user,dispatch=_ref.dispatch,shixunsDetail=_ref.shixunsDetail,practiceSetting=_ref.practiceSetting,shixunId=Object(react__WEBPACK_IMPORTED_MODULE_38__.useRef)(),_useState=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(!0),_useState2=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState,2),isShowSetting=_useState2[0],setIsShowSetting=_useState2[1],_useState3=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState4=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState3,2),taskPass=_useState4[0],setTaskPass=_useState4[1],_useState5=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState6=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState5,2),testSetPermission=_useState6[0],setTestSetPermission=_useState6[1],_useState7=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState8=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState7,2),isCopy=_useState8[0],setIsCopy=_useState8[1],_useState9=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState10=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState9,2),openValue=_useState10[0],setOpenValue=_useState10[1],_useState11=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)([]),_useState12=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState11,2),selectDepartmentList=_useState12[0],setSelectDepartmentList=_useState12[1],_useState13=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)([]),_useState14=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState13,2),departmentList=_useState14[0],setDepartmentList=_useState14[1],_useState15=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(""),_useState16=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState15,2),departmentValue=_useState16[0],setDepartmentValue=_useState16[1],_useState17=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState18=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState17,2),isOpenTime=_useState18[0],setIsOpenTime=_useState18[1],_useState19=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState20=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState19,2),openTime=_useState20[0],setOpenTime=_useState20[1],_useState21=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState22=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState21,2),vnc=_useState22[0],setVNC=_useState22[1],_useState23=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState24=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState23,2),windows_vnc=_useState24[0],setWindowVNC=_useState24[1],_useState25=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState26=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState25,2),virtual_machine=_useState26[0],setVirtualMachine=_useState26[1],_useState27=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState28=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState27,2),linux_vnc=_useState28[0],setLinuxVNC=_useState28[1],_useState29=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(""),_useState30=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState29,2),windows_start_template=_useState30[0],setWindowVNCTemplate=_useState30[1],_useState31=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState32=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState31,2),websshShow=_useState32[0],setWebsshShow=_useState32[1],_useState33=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState34=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState33,2),sshRadioValue=_useState34[0],setSshRadioValue=_useState34[1],_useState35=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState36=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState35,2),multiWebssh=_useState36[0],setMultiWebssh=_useState36[1],_useState37=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(!1),_useState38=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState37,2),hideCode=_useState38[0],setHideCode=_useState38[1],_useState39=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState40=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState39,2),codeEditPermission=_useState40[0],setCodeEditPermission=_useState40[1],_useState41=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState42=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState41,2),codeHidden=_useState42[0],setCodeHidden=_useState42[1],_useState43=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState44=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState43,2),forbidCopy=_useState44[0],setForbidCopy=_useState44[1],_useState45=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState46=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState45,2),display_git_address=_useState46[0],set_display_git_address=_useState46[1],_useState47=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(!1),_useState48=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState47,2),advancedsettingshow=_useState48[0],setAdvancedSettingShow=_useState48[1],_useState49=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)("vnc"),_useState50=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState49,2),windows_connection_mode=_useState50[0],setWindowsConnectionMode=_useState50[1],_useState51=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState52=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState51,2),evaluateScript=_useState52[0],setEvaluateScript=_useState52[1],_useState53=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)([]),_useState54=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState53,2),serviceConfigList=_useState54[0],setServiceConfigList=_useState54[1],_useState55=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState56=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState55,2),evaluationScript=_useState56[0],setevaluationScript=_useState56[1],_useState57=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)([]),_useState58=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState57,2),standardScriptList=_useState58[0],setStandardScripts=_useState58[1],_useState59=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)("1"),_useState60=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState59,2),MenuSelectKey=_useState60[0],setMenuSelectKey=_useState60[1],_useState61=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(!1),_useState62=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState61,2),disableDiscuss=_useState62[0],setDisableDiscuss=_useState62[1],_useState63=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(!1),_useState64=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState63,2),Remote=_useState64[0],setRemote=_useState64[1],_useState65=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState66=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState65,2),createTitle=_useState66[0],setCreateTitle=_useState66[1],_useState67=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(!1),_useState68=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState67,2),isupdate=_useState68[0],setIsupdate=_useState68[1],_useState69=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(3),_useState70=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState69,2),terminal_count=_useState70[0],setterminal_count=_useState70[1],_useState71=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(!1),_useState72=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState71,2),port=_useState72[0],setport=_useState72[1],_useState73=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState74=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState73,2),webssh_cloud=_useState74[0],setWebsshCloud=_useState74[1],_useState75=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(0),_useState76=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState75,2),survival_time=_useState76[0],setSurvivalTime=_useState76[1],_useState77=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)([{template_name:"",template_identity:""}]),_useState78=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState77,2),shixun_virtual_templates=_useState78[0],setshixun_virtual_templates=_useState78[1],params=Object(umi__WEBPACK_IMPORTED_MODULE_39__.i)(),diffObj={forbid_copy:"forbidCopy",hide_code:"hideCode",multi_webssh:"multiWebssh",task_pass:"taskPass",test_set_permission:"testSetPermission",code_edit_permission:"codeEditPermission",can_copy:"isCopy",use_scope:"openValue",windows_vnc:"windows_vnc",windows_start_template:"windows_start_template",webssh_cloud:"webssh_cloud",opening_time:"openTime",webssh:"sshRadioValue",display_git_address:"display_git_address",show_code_dir:"codeHidden",choice_standard_scripts:"evaluationScript",evaluate_script:"evaluateScript"},_useState79=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState80=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState79,2),isRadiuvalue=_useState80[0],setIsRadiuValue=_useState80[1],editable=(_user$userInfo=user.userInfo)===null||_user$userInfo===void 0||((_user$userInfo$shixun=_user$userInfo.shixun)===null||_user$userInfo$shixun===void 0)?void 0:_user$userInfo$shixun.editable,handleGetDepartments=function(){var M=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function Y(o){var L;return _root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,dispatch({type:"shixunsDetail/getDepartments",payload:{q:o}});case 2:L=A.sent,L&&setDepartmentList(L.shools_name||[]);case 4:case"end":return A.stop()}},Y)}));return function(o){return M.apply(this,arguments)}}();Object(react__WEBPACK_IMPORTED_MODULE_38__.useEffect)(function(){var M,Y;(M=shixunsDetail.setting)!==null&&M!==void 0&&(Y=M.shixun)!==null&&Y!==void 0&&Y.main_type&&handleInitState()},[shixunsDetail.setting]),Object(react__WEBPACK_IMPORTED_MODULE_38__.useEffect)(function(){var M,Y;dispatch({type:"shixunsDetail/getSettingsData",payload:params}),shixunId.current=(M=location.pathname)===null||M===void 0||((Y=M.split("/"))===null||Y===void 0)?void 0:Y[2]},[]);var handleSelectDepartment=function(Y){if(selectDepartmentList.includes(Y)){antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.info("\u8BF7\u52FF\u6307\u5B9A\u76F8\u540C\u7684\u5355\u4F4D");return}setDepartmentValue(null),setSelectDepartmentList([].concat(Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(selectDepartmentList),[Y]))};function getRequiredStatus(){return _getRequiredStatus.apply(this,arguments)}function _getRequiredStatus(){return _getRequiredStatus=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function M(){var Y;return _root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,Object(_utils_fetch__WEBPACK_IMPORTED_MODULE_53__.a)("/api/shixuns/".concat(shixunId.current,"/required_status"),{method:"get",params:{}});case 2:Y=L.sent,Y&&setCreateTitle(Y==null?void 0:Y.data);case 4:case"end":return L.stop()}},M)})),_getRequiredStatus.apply(this,arguments)}var handleChangeSeviceConfig=function(Y,o,L){var g=serviceConfigList.map(function(A,b){return b===L?Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_29__.a)(Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_29__.a)({},A),{},Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_28__.a)({},o,Y)):A});setServiceConfigList(g)},handleInitState=function(){var Y,o,L,g,A,b,y,x,w,f,_,d,r,u,t,a,n,i,h,l,s,p,O,S,v,P,R,E,C,m,T,I,D,N,z,F,W,K,B,k,G,ne,fe,de,xe,Oe,ce,be,ve,ue,se,q,me,re,ie,we,le,$,J,te,De,Te,ke,tt,ot,gt,Et,xt=(shixunsDetail==null||((Y=shixunsDetail.setting)===null||Y===void 0)?void 0:Y.shixun)||{},St=xt.choice_main_type,Je=xt.main_type,Ue=xt.small_type,ft=xt.choice_small_type,kt=xt.is_secret_repository,ht=xt.standard_scripts,_t=xt.evaluate_script,Qe=xt.shixun_service_configs;if(setEvaluateScript(_t),setServiceConfigList(Qe),setStandardScripts(ht||[]),setWindowVNCTemplate((o=shixunsDetail.setting)===null||o===void 0||((L=o.shixun)===null||L===void 0)?void 0:L.windows_start_template),setWebsshCloud((g=shixunsDetail.setting)===null||g===void 0||((A=g.shixun)===null||A===void 0)?void 0:A.webssh_cloud),setWindowVNC((b=shixunsDetail.setting)===null||b===void 0||((y=b.shixun)===null||y===void 0)?void 0:y.windows_vnc),setVirtualMachine((x=shixunsDetail.setting)===null||x===void 0||((w=x.shixun)===null||w===void 0)?void 0:w.virtual_machine),setLinuxVNC((f=shixunsDetail.setting)===null||f===void 0||((_=f.shixun)===null||_===void 0)?void 0:_.linux_vnc),setWindowsConnectionMode(((d=shixunsDetail.setting)===null||d===void 0||((r=d.shixun)===null||r===void 0)?void 0:r.windows_connection_mode)||"vnc"),setVNC((u=shixunsDetail.setting)===null||u===void 0||((t=u.shixun)===null||t===void 0)?void 0:t.vnc),setWebsshShow(!!((a=shixunsDetail.setting)!==null&&a!==void 0&&(n=a.shixun)!==null&&n!==void 0&&n.webssh)),setSshRadioValue((i=shixunsDetail.setting)===null||i===void 0||((h=i.shixun)===null||h===void 0)?void 0:h.webssh),setMultiWebssh((l=shixunsDetail.setting)===null||l===void 0||((s=l.shixun)===null||s===void 0)?void 0:s.multi_webssh),setHideCode((p=shixunsDetail.setting)===null||p===void 0||((O=p.shixun)===null||O===void 0)?void 0:O.hide_code),setCodeEditPermission((S=shixunsDetail.setting)===null||S===void 0||((v=S.shixun)===null||v===void 0)?void 0:v.code_edit_permission),setCodeHidden((P=shixunsDetail.setting)===null||P===void 0||((R=P.shixun)===null||R===void 0)?void 0:R.show_code_dir),setForbidCopy((E=shixunsDetail.setting)===null||E===void 0||((C=E.shixun)===null||C===void 0)?void 0:C.forbid_copy),setTaskPass((m=shixunsDetail.setting)===null||m===void 0||((T=m.shixun)===null||T===void 0)?void 0:T.task_pass),setTestSetPermission((I=shixunsDetail.setting)===null||I===void 0||((D=I.shixun)===null||D===void 0)?void 0:D.test_set_permission),set_display_git_address((N=shixunsDetail.setting.shixun)===null||N===void 0?void 0:N.display_git_address),setIsCopy((z=shixunsDetail.setting)===null||z===void 0||((F=z.shixun)===null||F===void 0)?void 0:F.can_copy),setOpenValue((W=shixunsDetail.setting)===null||W===void 0||((K=W.shixun)===null||K===void 0)?void 0:K.use_scope),setIsOpenTime(!!((B=shixunsDetail.setting)!==null&&B!==void 0&&(k=B.shixun)!==null&&k!==void 0&&k.opening_time)),setOpenTime((G=shixunsDetail.setting)===null||G===void 0||((ne=G.shixun)===null||ne===void 0)?void 0:ne.opening_time),setSelectDepartmentList((fe=shixunsDetail.setting)===null||fe===void 0||((de=fe.shixun)===null||de===void 0)?void 0:de.scope_partment),setevaluationScript((xe=shixunsDetail.setting)===null||xe===void 0||((Oe=xe.shixun)===null||Oe===void 0)?void 0:Oe.choice_standard_scripts),setDisableDiscuss((ce=shixunsDetail.setting)===null||ce===void 0||((be=ce.shixun)===null||be===void 0)?void 0:be.is_disable_discuss),setterminal_count((ve=shixunsDetail.setting)===null||ve===void 0||((ue=ve.shixun)===null||ue===void 0)?void 0:ue.terminal_count),setSurvivalTime((se=shixunsDetail.setting)===null||se===void 0||((q=se.shixun)===null||q===void 0)?void 0:q.survival_time),(shixunsDetail==null||((me=shixunsDetail.setting)===null||me===void 0||((re=me.shixun)===null||re===void 0||((ie=re.shixun_virtual_templates)===null||ie===void 0)))?void 0:ie.length)>0){var He,Ge;setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(shixunsDetail==null||((He=shixunsDetail.setting)===null||He===void 0||((Ge=He.shixun)===null||Ge===void 0))?void 0:Ge.shixun_virtual_templates))}setport((we=shixunsDetail.setting)===null||we===void 0||((le=we.shixun)===null||le===void 0)?void 0:le.port_mapping),($=shixunsDetail.setting)!==null&&$!==void 0&&(J=$.shixun)!==null&&J!==void 0&&J.windows_vnc||(te=shixunsDetail.setting)!==null&&te!==void 0&&(De=te.shixun)!==null&&De!==void 0&&De.linux_vnc||(Te=shixunsDetail.setting)!==null&&Te!==void 0&&(ke=Te.shixun)!==null&&ke!==void 0&&ke.vnc||(tt=shixunsDetail.setting)!==null&&tt!==void 0&&(ot=tt.shixun)!==null&&ot!==void 0&&ot.virtual_machine?(setIsRadiuValue(5),setRemote(!0)):(gt=shixunsDetail.setting)!==null&&gt!==void 0&&(Et=gt.shixun)!==null&&Et!==void 0&&Et.webssh&&(setRemote(!0),setIsRadiuValue(3))};Object(react__WEBPACK_IMPORTED_MODULE_38__.useEffect)(function(){var _Object$keys$filter,_shixunsDetail$settin73,_shixunsDetail$settin74,_shixunsDetail$settin75,_shixunsDetail$settin76,_shixunsDetail$settin77,_shixunsDetail$settin78,_shixunsDetail$settin79,_shixunsDetail$settin82,_shixunsDetail$settin83,_shixunsDetail$settin84,confirmLeave=!1;(_Object$keys$filter=Object.keys(diffObj).filter(function(item){var _shixunsDetail$settin72;return((_shixunsDetail$settin72=shixunsDetail.setting)===null||_shixunsDetail$settin72===void 0?void 0:_shixunsDetail$settin72.shixun[item])!=eval(diffObj[item])}))!==null&&_Object$keys$filter!==void 0&&_Object$keys$filter.length&&(confirmLeave=!0),isOpenTime!=!!((_shixunsDetail$settin73=shixunsDetail.setting)!==null&&_shixunsDetail$settin73!==void 0&&(_shixunsDetail$settin74=_shixunsDetail$settin73.shixun)!==null&&_shixunsDetail$settin74!==void 0&&_shixunsDetail$settin74.opening_time)&&(confirmLeave=!0),disableDiscuss!=!!((_shixunsDetail$settin75=shixunsDetail.setting)!==null&&_shixunsDetail$settin75!==void 0&&(_shixunsDetail$settin76=_shixunsDetail$settin75.shixun)!==null&&_shixunsDetail$settin76!==void 0&&_shixunsDetail$settin76.is_disable_discuss)&&(confirmLeave=!0),selectDepartmentList.length!=((_shixunsDetail$settin77=shixunsDetail.setting)===null||_shixunsDetail$settin77===void 0||((_shixunsDetail$settin78=_shixunsDetail$settin77.shixun)===null||_shixunsDetail$settin78===void 0||((_shixunsDetail$settin79=_shixunsDetail$settin78.scope_partment)===null||_shixunsDetail$settin79===void 0))?void 0:_shixunsDetail$settin79.length)&&(confirmLeave=!0),selectDepartmentList==null||selectDepartmentList.map(function(M,Y){var o,L;M!=((o=shixunsDetail.setting)===null||o===void 0||((L=o.shixun)===null||L===void 0)?void 0:L.scope_partment[Y])&&(confirmLeave=!0)}),serviceConfigList.length!=((_shixunsDetail$settin82=shixunsDetail.setting)===null||_shixunsDetail$settin82===void 0||((_shixunsDetail$settin83=_shixunsDetail$settin82.shixun)===null||_shixunsDetail$settin83===void 0||((_shixunsDetail$settin84=_shixunsDetail$settin83.shixun_service_configs)===null||_shixunsDetail$settin84===void 0))?void 0:_shixunsDetail$settin84.length)&&(confirmLeave=!0),serviceConfigList==null||serviceConfigList.map(function(M,Y){var o,L,g,A,b,y,x,w,f,_,d,r;(M==null?void 0:M.cpu_limit)!=((o=shixunsDetail.setting)===null||o===void 0||((L=o.shixun)===null||L===void 0||((g=L.shixun_service_configs[Y])===null||g===void 0))?void 0:g.cpu_limit)&&(confirmLeave=!0),(M==null?void 0:M.lower_cpu_limit)!=((A=shixunsDetail.setting)===null||A===void 0||((b=A.shixun)===null||b===void 0||((y=b.shixun_service_configs[Y])===null||y===void 0))?void 0:y.lower_cpu_limit)&&(confirmLeave=!0),(M==null?void 0:M.memory_limit)!=((x=shixunsDetail.setting)===null||x===void 0||((w=x.shixun)===null||w===void 0||((f=w.shixun_service_configs[Y])===null||f===void 0))?void 0:f.memory_limit)&&(confirmLeave=!0),(M==null?void 0:M.request_limit)!=((_=shixunsDetail.setting)===null||_===void 0||((d=_.shixun)===null||d===void 0||((r=d.shixun_service_configs[Y])===null||r===void 0))?void 0:r.request_limit)&&(confirmLeave=!0)}),dispatch({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave}})},[taskPass,testSetPermission,isCopy,openValue,selectDepartmentList,isOpenTime,openTime,isRadiuvalue,sshRadioValue,multiWebssh,hideCode,display_git_address,codeHidden,codeEditPermission,forbidCopy,evaluationScript,evaluateScript,serviceConfigList,disableDiscuss,webssh_cloud]);var handleUseCustomScript=function(){dispatch({type:"shixunsDetail/setActionTabs",payload:{key:"Settings-UseCustomScript",params:{id:shixunId.current}}})};function handSubmeit(){return _handSubmeit.apply(this,arguments)}function _handSubmeit(){return _handSubmeit=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function M(){var Y,o,L,g;return _root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(!(isOpenTime&&!openTime)){b.next=3;break}return antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.info("\u8BF7\u9009\u62E9\u5F00\u542F\u65F6\u95F4"),b.abrupt("return");case 3:if(!(hideCode===1&&Remote===!1)){b.next=6;break}return antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.info("\u8BF7\u81F3\u5C11\u52FE\u9009\u4E00\u79CD\u7F16\u7A0B\u9875\u9762\uFF01"),b.abrupt("return");case 6:if(!(openValue===1&&!selectDepartmentList.length)){b.next=9;break}return antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.info("\u8BF7\u9009\u62E9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"),b.abrupt("return");case 9:if(o=(Y=shixunsDetail.detail)===null||Y===void 0?void 0:Y.is_jupyter,L=!1,isRadiuvalue==5&&virtual_machine&&(shixun_virtual_templates==null||shixun_virtual_templates.map(function(y){if(!(y!=null&&y.template_name)||!(y!=null&&y.template_identity)){antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.info("\u5B9E\u9A8C\u89D2\u8272\u540D\u79F0\u6216\u5B9E\u4F8B\u542F\u52A8\u6A21\u7248\u4E0D\u80FD\u4E3A\u7A7A"),L=!0;return}})),!L){b.next=14;break}return b.abrupt("return");case 14:return b.next=16,dispatch({type:"shixunsDetail/updateSetting",payload:{id:shixunId.current,scope_partment:openValue===0?null:selectDepartmentList,shixun:{show_code_dir:codeHidden,forbid_copy:forbidCopy,hide_code:hideCode,multi_webssh:multiWebssh,task_pass:taskPass,test_set_permission:testSetPermission,display_git_address,vnc,windows_vnc,virtual_machine,linux_vnc,windows_start_template,webssh_cloud,webssh:websshShow?sshRadioValue:0,code_edit_permission:codeEditPermission,can_copy:isCopy,use_scope:openValue,opening_time:openTime,mirror_script_id:o?null:evaluationScript,is_disable_discuss:disableDiscuss,terminal_count,port_mapping:port,survival_time,shixun_virtual_templates,windows_connection_mode:windows_vnc?windows_connection_mode:null},shixun_info:{evaluate_script:o?null:evaluateScript},shixun_service_configs:serviceConfigList.map(function(y){return{mirror_repository_id:y.mirror_repository_id,cpu_limit:y.cpu_limit,lower_cpu_limit:y.lower_cpu_limit,memory_limit:y.memory_limit,request_limit:y.request_limit}})}});case 16:g=b.sent,(g==null?void 0:g.status)===0&&(antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.info("\u4FEE\u6539\u6210\u529F"),dispatch({type:"shixunsDetail/getSettingsData",payload:params}),dispatch({type:"shixunsDetail/getShixunsDetail",payload:params}));case 18:case"end":return b.stop()}},M)})),_handSubmeit.apply(this,arguments)}var handleChangeEvaluationScript=function(Y){antd_es_modal__WEBPACK_IMPORTED_MODULE_27__.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"tc font16"},"\u539F\u6709\u811A\u672C\u5C06\u88AB\u65B0\u7684\u811A\u672C\u8986\u76D6\uFF0C\u65E0\u6CD5\u64A4\u9500",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u6267\u884C\u8986\u76D6\u64CD\u4F5C"),onOk:function(){var o=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function g(){return _root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,handleGetScriptContent(Y);case 2:antd_es_modal__WEBPACK_IMPORTED_MODULE_27__.a.info({centered:!0,title:"\u63D0\u793A",okText:"\u77E5\u9053\u5566",content:react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"tc font16"},"\u8BC4\u6D4B\u811A\u672C\u751F\u6210\u6210\u529F\uFF01")});case 3:case"end":return b.stop()}},g)}));function L(){return o.apply(this,arguments)}return L}()})},handleGetScriptContent=function(){var M=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function Y(o){var L;return _root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,dispatch({type:"shixunsDetail/getScriptContent",payload:{id:shixunId.current,script_id:o}});case 2:L=A.sent,L&&setEvaluateScript(L.content);case 4:case"end":return A.stop()}},Y)}));return function(o){return M.apply(this,arguments)}}(),handleDeleteShixun=function(){var M=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function Y(){var o,L,g,A,b,y,x;return _root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,dispatch({type:"shixunsDetail/getShixunQuote",payload:{id:shixunId.current}});case 2:if(f.t0=f.sent,f.t0){f.next=5;break}f.t0={};case 5:x=f.t0,antd_es_modal__WEBPACK_IMPORTED_MODULE_27__.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:520,content:react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"tc font14 ".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.modal)},!!((o=x.subjects)!==null&&o!==void 0&&o.length)&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_38___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230"," ",(L=x.subjects)===null||L===void 0||((g=L.splice(0,2))===null||g===void 0)?void 0:g.map(function(_){return"\u300A".concat(_,"\u300B")}),"\u7B49",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.colorOrange},x==null?void 0:x.subjects_count),"\u4E2A\u5B9E\u8BAD\u8BFE\u7A0B"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null)),!!((A=x.courses)!==null&&A!==void 0&&A.length)&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_38___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230",(b=x.courses)===null||b===void 0||((y=b.splice(0,2))===null||y===void 0)?void 0:y.map(function(_){return"\u300A".concat(_,"\u300B")}),"\u7B49",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.colorOrange},x==null?void 0:x.courses_count),"\u4E2A\u6559\u5B66\u8BFE\u5802"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null)),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.colorYellow," mt30")},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE\u5C06\u5F71\u54CD\u8BFE\u7A0B\u53CA\u8BFE\u5802\u5BF9\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u4F7F\u7528\uFF01\u8BF7\u8C28\u614E\u64CD\u4F5C\uFF01")),onOk:function(){var _=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function r(){var u;return _root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,dispatch({type:"shixunsDetail/deleteShixun",payload:{id:shixunId.current}});case 2:u=a.sent,u.status===1&&(antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.success("\u64CD\u4F5C\u6210\u529F"),umi__WEBPACK_IMPORTED_MODULE_40__.d.push("/shixuns"));case 4:case"end":return a.stop()}},r)}));function d(){return _.apply(this,arguments)}return d}()});case 7:case"end":return f.stop()}},Y)}));return function(){return M.apply(this,arguments)}}(),handleDeleteElseShixun=function(){if(Object(_utils_verifyLogin_tsx__WEBPACK_IMPORTED_MODULE_56__.b)(dispatch,"\u4E0D\u80FD\u8FDB\u884C\u5220\u9664"))return};function showExitmodel(M){antd_es_modal__WEBPACK_IMPORTED_MODULE_27__.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(){setMenuSelectKey(M),parseInt(M)===1?(setIsShowSetting(!0),handleInitState()):(setIsShowSetting(!1),getRequiredStatus()),dispatch({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})}})}return react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{height:"100%",display:"flex",background:"#fff",position:"relative"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{height:"100%",background:"#0A143D",width:"25%",maxWidth:"440px",padding:"20px 20px",color:"#ffffff"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{style:{padding:"0px 15px",fontSize:"16px"}},"\u8BBE\u7F6E"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_menu__WEBPACK_IMPORTED_MODULE_25__.a,{selectedKeys:[MenuSelectKey],theme:"dark",style:{background:"#0A143D",marginTop:"30px",fontSize:"14px"},onClick:function(Y){var o;if(practiceSetting!=null&&(o=practiceSetting.sideBar)!==null&&o!==void 0&&o.confirmLeave){showExitmodel(Y.key);return}setMenuSelectKey(Y.key),parseInt(Y.key)===1?(setIsShowSetting(!0),handleInitState()):(setIsShowSetting(!1),getRequiredStatus())}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_menu__WEBPACK_IMPORTED_MODULE_25__.a.Item,{key:1},"\u8BBE\u7F6E"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_menu__WEBPACK_IMPORTED_MODULE_25__.a.Item,{key:2},"\u5173\u4E8E\u5B9E\u8BAD"))),isShowSetting&&(shixunsDetail==null||((_shixunsDetail$detail=shixunsDetail.detail)===null||_shixunsDetail$detail===void 0)?void 0:_shixunsDetail$detail.is_jupyter_lab)&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_components_Permission__WEBPACK_IMPORTED_MODULE_54__.a,null),isShowSetting&&!(shixunsDetail!=null&&(_shixunsDetail$detail2=shixunsDetail.detail)!==null&&_shixunsDetail$detail2!==void 0&&_shixunsDetail$detail2.is_jupyter_lab)&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{width:"calc(100% - 24%)",overflow:"auto"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{padding:"40px 40px",marginBottom:"70px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.titlesize,style:{display:"flex"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{style:{flex:"1"}},"\u5173\u5361\u548C\u6D4B\u8BD5\u96C6"),(shixunsDetail==null||((_shixunsDetail$detail3=shixunsDetail.detail)===null||_shixunsDetail$detail3===void 0)?void 0:_shixunsDetail$detail3.shixun_status)!==2?react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_23__.a,{danger:!0,onClick:handleDeleteShixun},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE"):react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_23__.a,{danger:!0,onClick:handleDeleteElseShixun},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE")),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u8DF3\u5173\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:taskPass,disabled:!editable,onChange:function(Y){return setTaskPass(Y.target.checked)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u9009\u4E2D\u5219\u5141\u8BB8\u5B66\u5458\u8DF3\u5173\u5B66\u4E60\u5B9E\u8BAD\u5173\u5361\u4EFB\u52A1\uFF09")))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u6D4B\u8BD5\u96C6\u89E3\u9501\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:testSetPermission,disabled:!editable,onChange:function(Y){return setTestSetPermission(Y.target.checked)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u9009\u4E2D\u5219\u5141\u8BB8\u5B66\u5458\u901A\u8FC7\u91D1\u5E01\u89E3\u9501\u67E5\u770B\u9690\u85CF\u6D4B\u8BD5\u96C6\u7684\u5185\u5BB9\uFF09")))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.titlesize,style:{marginTop:"20px"}},"\u6743\u9650"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u590D\u5236/\u5408\u5E76:"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:isCopy,onChange:function(Y){return setIsCopy(Y.target.checked)},disabled:!editable}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999)},"\uFF08\u9009\u4E2D\u5219\u5141\u8BB8\u5DF2\u804C\u4E1A\u8BA4\u8BC1\u7684\u6559\u5E08\u590D\u5236\u8BE5\u5B9E\u8BAD\uFF09")))),!((((_shixunsDetail$detail4=shixunsDetail.detail)===null||_shixunsDetail$detail4===void 0?void 0:_shixunsDetail$detail4.shixun_status)>1||((_shixunsDetail$detail5=shixunsDetail.detail)===null||_shixunsDetail$detail5===void 0?void 0:_shixunsDetail$detail5.public)===2)&&((_shixunsDetail$settin97=shixunsDetail.setting)===null||_shixunsDetail$settin97===void 0||((_shixunsDetail$settin98=_shixunsDetail$settin97.shixun)===null||_shixunsDetail$settin98===void 0)?void 0:_shixunsDetail$settin98.use_scope)===0&&((_shixunsDetail$detail6=shixunsDetail.detail)===null||_shixunsDetail$detail6===void 0?void 0:_shixunsDetail$detail6.identity)>2)&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label,style:{padding:"4px 0px"}},"\u516C\u5F00\u7A0B\u5EA6:"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a.Group,{value:openValue,onChange:function(Y){return setOpenValue(Y.target.value)},disabled:!editable},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.radio,value:0},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u5BF9\u6240\u6709\u5355\u4F4D\u516C\u5F00"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999},"\uFF08\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.radio,style:{marginTop:"22px"},value:1},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u5BF9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999},"\uFF08\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u4EC5\u5BF9\u4E0B\u65B9\u6307\u5B9A\u5355\u4F4D\u7684\u7528\u6237\u53EF\u89C1\uFF09"))),openValue===1&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_38___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.graaytitle},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_auto_complete__WEBPACK_IMPORTED_MODULE_17__.a,{showSearch:!0,className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.selectSchool,bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u5E76\u9009\u62E9\u5355\u4F4D\u540D\u79F0",value:departmentValue,onChange:function(Y){setDepartmentValue(Y),handleGetDepartments(Y)},disabled:!editable,onSelect:handleSelectDepartment,options:departmentList==null?void 0:departmentList.map(function(M){return{value:M}})})),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"mt10"},selectDepartmentList==null?void 0:selectDepartmentList.map(function(M){return editable?react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_badge__WEBPACK_IMPORTED_MODULE_15__.a,{count:"x",className:"mr20 current",onClick:function(){return setSelectDepartmentList(selectDepartmentList.filter(function(o){return o!==M}))}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_23__.a,{type:"primary",ghost:!0},M)):react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_23__.a,{type:"primary",ghost:!0,className:"mr20"},M)}))))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u5F00\u542F\u65F6\u95F4:"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:isOpenTime,onChange:function(Y){setIsOpenTime(Y.target.checked),Y.target.checked||setOpenTime("")},disabled:!editable}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u9009\u4E2D\u5219\u5B66\u5458\u5728\u6307\u5B9A\u7684\u5F00\u542F\u65F6\u95F4\u540E\u624D\u80FD\u5F00\u542F\u6311\u6218\uFF09")),isOpenTime&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.graaytitle},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_date_picker__WEBPACK_IMPORTED_MODULE_13__.a,{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.dataPicker),format:timeFormat,locale:antd_lib_date_picker_locale_zh_CN__WEBPACK_IMPORTED_MODULE_43___default.a,bordered:!1,disabled:!editable,placeholder:"\u8BF7\u8F93\u5165\u5F00\u542F\u65F6\u95F4",showToday:!1,disabledDate:function(Y){return Y&&Y<moment__WEBPACK_IMPORTED_MODULE_42___default()().endOf("day").subtract(1,"days")},showTime:{minuteStep:30},value:openTime&&moment__WEBPACK_IMPORTED_MODULE_42___default()(openTime,timeFormat),onChange:function(Y,o){return setOpenTime(handleDateString(o))}})))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.titlesize,style:{marginTop:"20px"}},"\u5B9E\u9A8C\u6A21\u5F0F"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label,style:{padding:"5px 0px"}},"\u7F16\u7A0B\u754C\u9762\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{style:{marginTop:"5px"},value:0,checked:hideCode!=1,onChange:function(Y){var o=Y.target.checked;setHideCode(hideCode===1?0:1),o?setCodeEditPermission(!1):(setCodeEditPermission(!1),setCodeHidden(!1),setForbidCopy(!1))}},"IDE\u754C\u9762",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u5B66\u5458\u8FDB\u884C\u5B9E\u9A8C\u65F6\uFF0C\u4E3A\u5B66\u5458\u63D0\u4F9B\u4EE3\u7801\u7F16\u8F91\u5668\uFF0C\u7F16\u8BD1\u5668\uFF0C\u8C03\u8BD5\u5668\u7B49\u5DE5\u5177\uFF09")),hideCode!=1&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.graaymingl},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a.Group,{value:hideCode,className:"mt20",onChange:function(Y){setHideCode(Y.target.value)}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_space__WEBPACK_IMPORTED_MODULE_11__.a,{direction:"vertical"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{value:0},"\u9ED8\u8BA4\u7F16\u8F91\u5668"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{value:2},"VSCode\u7F16\u8F91\u5668"))),hideCode===2&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{style:{marginLeft:"30px",marginTop:"10px"},checked:port,disabled:!editable,onChange:function(Y){return setport(Y.target.checked)}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:" ml10",style:{marginTop:"22px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u542F\u7528\u5916\u7F51\u670D\u52A1\u8BBF\u95EE\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999},"\uFF08\u8BF7\u6CE8\u610F\u5C06\u670D\u52A1\u5668\u7A0B\u5E8F\u7684\u7AEF\u53E3\u53F7\u6620\u5C04\u52308081\u7AEF\u53E3\uFF09")))))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:Remote,onChange:function(Y){var o=Y.target.checked;setRemote(o),o?(setIsRadiuValue(3),setVNC(!1),setWebsshShow(!0),setWindowVNC(!1),setLinuxVNC(!1),setSshRadioValue(2)):(setVNC(!1),setLinuxVNC(!1),setWebsshShow(!1),setWindowVNC(!1),setshixun_virtual_templates([]),setVirtualMachine(!1))}},"\u8FDC\u7A0B\u8FDE\u63A5\u754C\u9762",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u5B66\u5458\u8FDB\u884C\u5B9E\u9A8C\u65F6\uFF0C\u4E3A\u5B66\u5458\u63D0\u4F9B\u8FDC\u7A0B\u8FDE\u63A5\u754C\u9762\uFF09")),Remote&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{marginTop:"5px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a.Group,{value:isRadiuvalue,onChange:function(Y){var o,L,g,A,b,y,x,w,f,_;if(setIsRadiuValue(Y.target.value),setSshRadioValue(1),setport(!1),Y.target.value===3&&((o=shixunsDetail.setting)===null||o===void 0||((L=o.shixun)===null||L===void 0)?void 0:L.webssh)===2&&!((g=shixunsDetail.setting)!==null&&g!==void 0&&(A=g.shixun)!==null&&A!==void 0&&A.vnc)){var d,r;setport((d=shixunsDetail.setting)===null||d===void 0||((r=d.shixun)===null||r===void 0)?void 0:r.port_mapping)}if(Y.target.value===5&&!((b=shixunsDetail.setting)!==null&&b!==void 0&&(y=b.shixun)!==null&&y!==void 0&&y.linux_vnc)&&!((x=shixunsDetail.setting)!==null&&x!==void 0&&(w=x.shixun)!==null&&w!==void 0&&w.windows_vnc)&&(f=shixunsDetail.setting)!==null&&f!==void 0&&(_=f.shixun)!==null&&_!==void 0&&_.vnc){var u,t;setport((u=shixunsDetail.setting)===null||u===void 0||((t=u.shixun)===null||t===void 0)?void 0:t.port_mapping)}Y.target.value===1?(setVNC(!1),setLinuxVNC(!1),setWebsshShow(!1),setWindowVNC(!1)):Y.target.value===2?(setWindowVNC(!1),setLinuxVNC(!1),setHideCode(!1),setCodeEditPermission(!1),setCodeHidden(!1),setForbidCopy(!1),setMultiWebssh(!1),setWebsshShow(!1),setVNC(!0)):Y.target.value===3?(setVNC(!1),setWebsshShow(!0),setWindowVNC(!1),setLinuxVNC(!1),setSshRadioValue(2),setshixun_virtual_templates([]),setVirtualMachine(!1)):Y.target.value===4?(setHideCode(!1),setCodeEditPermission(!1),setCodeHidden(!1),setForbidCopy(!1),setMultiWebssh(!1),setWebsshShow(!1),setVNC(!1)):Y.target.value===5&&(setCodeEditPermission(!1),setCodeHidden(!1),setForbidCopy(!1),setMultiWebssh(!1),setWebsshShow(!1),setVNC(!0))}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{value:3,className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.radio,style:{marginTop:"22px"}},"\u547D\u4EE4\u884C\u6A21\u5F0F",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u5B66\u5458\u8FDB\u884C\u5B9E\u9A8C\u65F6\uFF0C\u4E3A\u5B66\u5458\u63D0\u4F9B\u547D\u4EE4\u884C\u7A97\u53E3\uFF09")),websshShow&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.graaymingl," ml40"),style:{borderRadius:"8px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a.Group,{value:sshRadioValue,disabled:!editable,onChange:function(Y){var o,L,g,A,b,y,x=Y.target.value;if(setport(!1),x===1&&((o=shixunsDetail.setting)===null||o===void 0||((L=o.shixun)===null||L===void 0)?void 0:L.webssh)===1){var w,f;setport((w=shixunsDetail.setting)===null||w===void 0||((f=w.shixun)===null||f===void 0)?void 0:f.port_mapping)}else if(x===2&&((g=shixunsDetail.setting)===null||g===void 0||((A=g.shixun)===null||A===void 0)?void 0:A.webssh)===2){var _,d;setport((_=shixunsDetail.setting)===null||_===void 0||((d=_.shixun)===null||d===void 0)?void 0:d.port_mapping)}if(setSshRadioValue(x),x!==1&&setMultiWebssh(!1),setWindowVNCTemplate(""),setWebsshCloud(1),x===3&&((b=shixunsDetail.setting)===null||b===void 0||((y=b.shixun)===null||y===void 0)?void 0:y.webssh)===3){var r,u,t,a;setWebsshCloud((r=shixunsDetail.setting)===null||r===void 0||((u=r.shixun)===null||u===void 0)?void 0:u.webssh_cloud),setWindowVNCTemplate((t=shixunsDetail.setting)===null||t===void 0||((a=t.shixun)===null||a===void 0)?void 0:a.windows_start_template)}}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.radio,style:{marginTop:"22px"},value:2},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u8BC4\u6D4B\u7A97\u53E3"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999},"\uFF08\u9009\u4E2D\u5219\u7ED9\u5B66\u5458\u63D0\u4F9B\u7528\u4E8E\u8BC4\u6D4B\u64CD\u4F5C\u7684\u547D\u4EE4\u884C\uFF0C\u547D\u4EE4\u884C\u7684\u64CD\u4F5C\u53EF\u4EE5\u5BF9\u5B66\u751F\u7684\u5B9E\u9A8C\u73AF\u5883\u4EA7\u751F\u5F71\u54CD\uFF09")),sshRadioValue===2&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{style:{marginLeft:"30px",marginTop:"10px"},checked:multiWebssh,disabled:!editable,onChange:function(Y){return setMultiWebssh(Y.target.checked)}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:" ml10",style:{marginTop:"22px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u591A\u4E2A\u547D\u4EE4\u884C\u7A97\u53E3\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999},"\uFF08\u9009\u4E2D\u5219\u5141\u8BB8\u5B66\u5458\u540C\u65F6\u5F00\u542F\u591A\u4E2A\u547D\u4EE4\u884C\u7A97\u53E3\uFF09")))),sshRadioValue===2&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{style:{marginLeft:"30px",marginTop:"10px"},checked:port,disabled:!editable,onChange:function(Y){return setport(Y.target.checked)}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:" ml10",style:{marginTop:"22px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u542F\u7528\u5916\u7F51\u670D\u52A1\u8BBF\u95EE\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999},"\uFF08\u8BF7\u6CE8\u610F\u5C06\u670D\u52A1\u5668\u7A0B\u5E8F\u7684\u7AEF\u53E3\u53F7\u6620\u5C04\u52308081\u7AEF\u53E3\uFF09"))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.radio,style:{marginTop:"22px"},value:1},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u7EC3\u4E60\u7A97\u53E3"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999},"\uFF08\u9009\u4E2D\u5219\u7ED9\u5B66\u5458\u63D0\u4F9B\u7528\u4E8E\u7EC3\u4E60\u64CD\u4F5C\u7684\u547D\u4EE4\u884C\uFF0C\u547D\u4EE4\u884C\u7684\u64CD\u4F5C\u4E0D\u4F1A\u5BF9\u5B66\u751F\u7684\u5B9E\u9A8C\u73AF\u5883\u9020\u6210\u5F71\u54CD\uFF09")),sshRadioValue===1&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{style:{marginLeft:"30px",marginTop:"10px"},checked:port,disabled:!editable,onChange:function(Y){return setport(Y.target.checked)}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:" ml10",style:{marginTop:"22px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u542F\u7528\u5916\u7F51\u670D\u52A1\u8BBF\u95EE\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999},"\uFF08\u8BF7\u6CE8\u610F\u5C06\u670D\u52A1\u5668\u7A0B\u5E8F\u7684\u7AEF\u53E3\u53F7\u6620\u5C04\u52308081\u7AEF\u53E3\uFF09"))),webssh_cloud===1&&sshRadioValue===3&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap,style:{alignItems:"center"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u5B9E\u4F8B\u542F\u52A8\u6A21\u677F\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{value:windows_start_template,onChange:function(Y){return setWindowVNCTemplate(Y.target.value)},style:{width:500},placeholder:"\u8BF7\u8F93\u5165Linux\u5B9E\u4F8B\u542F\u52A8\u6A21\u677F\u540D\u79F0"})))),webssh_cloud===1&&sshRadioValue===3&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap,style:{alignItems:"center"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u4E91\u4E3B\u673A\u6570\u91CF\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input_number__WEBPACK_IMPORTED_MODULE_7__.a,{value:terminal_count,onChange:function(Y){setterminal_count(Y)},max:3,min:1,defaultValue:1}))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"c-grey-999 ml20 font14"},"(\u6CE8\u610F\uFF1A\u4E91\u4E3B\u673A\u4E0A\u9650\u662F10\u53F0)")))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{value:5,className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.radio,style:{marginTop:"22px"}},"\u56FE\u5F62\u5316\u754C\u9762",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u5B66\u5458\u8FDB\u884C\u5B9E\u9A8C\u65F6\uFF0C\u4F7F\u7528\u56FE\u5F62\u5316\u65B9\u5F0F\u663E\u793A\u64CD\u4F5C\u754C\u9762\uFF09")))),isRadiuvalue===5&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"".concat(sshRadioValue!=2?_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.graayminglthree:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.graaymingl," ml40")},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a.Group,{value:linux_vnc?"linux_vnc":windows_vnc?"windows_vnc":virtual_machine?"virtual_machine":"linux",disabled:!editable,onChange:function(Y){var o,L,g,A,b,y,x,w,f,_=Y.target.value;if(setWindowVNCTemplate(""),setport(!1),_==="linux_vnc"&&(o=shixunsDetail.setting)!==null&&o!==void 0&&(L=o.shixun)!==null&&L!==void 0&&L.linux_vnc){var d,r;setWindowVNCTemplate((d=shixunsDetail.setting)===null||d===void 0||((r=d.shixun)===null||r===void 0)?void 0:r.windows_start_template)}else if(_==="windows_vnc"&&(g=shixunsDetail.setting)!==null&&g!==void 0&&(A=g.shixun)!==null&&A!==void 0&&A.windows_vnc){var u,t;setWindowVNCTemplate((u=shixunsDetail.setting)===null||u===void 0||((t=u.shixun)===null||t===void 0)?void 0:t.windows_start_template)}else if(_==="virtual_machine"&&(b=shixunsDetail.setting)!==null&&b!==void 0&&(y=b.shixun)!==null&&y!==void 0&&y.virtual_machine){var a,n;setWindowVNCTemplate((a=shixunsDetail.setting)===null||a===void 0||((n=a.shixun)===null||n===void 0)?void 0:n.windows_start_template)}else{var i,h,l,s,p,O;_==="linux"&&!((i=shixunsDetail.setting)!==null&&i!==void 0&&(h=i.shixun)!==null&&h!==void 0&&h.linux_vnc)&&!((l=shixunsDetail.setting)!==null&&l!==void 0&&(s=l.shixun)!==null&&s!==void 0&&s.windows_vnc)&&setport((p=shixunsDetail.setting)===null||p===void 0||((O=p.shixun)===null||O===void 0)?void 0:O.port_mapping)}switch(_){case"linux_vnc":setLinuxVNC(!0),setWindowVNC(!1),setVirtualMachine(!1),setVNC(!1);break;case"windows_vnc":setLinuxVNC(!1),setWindowVNC(!0),setVirtualMachine(!1),setVNC(!1);break;case"linux":setWindowVNC(!1),setLinuxVNC(!1),setMultiWebssh(!1),setWebsshShow(!1),setVirtualMachine(!1),setVNC(!0);break;case"virtual_machine":if(setWindowVNC(!1),setLinuxVNC(!1),setMultiWebssh(!1),setWebsshShow(!1),setVNC(!1),setVirtualMachine(!0),(shixunsDetail==null||((x=shixunsDetail.setting)===null||x===void 0||((w=x.shixun)===null||w===void 0||((f=w.shixun_virtual_templates)===null||f===void 0)))?void 0:f.length)>0){var S,v;setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(shixunsDetail==null||((S=shixunsDetail.setting)===null||S===void 0||((v=S.shixun)===null||v===void 0))?void 0:v.shixun_virtual_templates))}else setshixun_virtual_templates([{template_name:"",template_identity:""}]);break}}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{value:"linux",className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.radio,style:{marginTop:"22px"}},"Linux\u5BB9\u5668",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u5B66\u5458\u8FDB\u884C\u5B9E\u9A8C\u65F6\uFF0C\u4F7F\u7528Linux\u56FE\u5F62\u5316\u65B9\u5F0F\u663E\u793A\u64CD\u4F5C\u754C\u9762\uFF09")),!linux_vnc&&!windows_vnc&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{style:{marginLeft:"30px",marginTop:"10px"},checked:port,disabled:!editable,onChange:function(Y){return setport(Y.target.checked)}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:" ml10",style:{marginTop:"22px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u542F\u7528\u5916\u7F51\u670D\u52A1\u8BBF\u95EE\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999},"\uFF08\u8BF7\u6CE8\u610F\u5C06\u670D\u52A1\u5668\u7A0B\u5E8F\u7684\u7AEF\u53E3\u53F7\u6620\u5C04\u5230\u6307\u5B9A\u7AEF\u53E3\uFF09"))),isRadiuvalue==5&&linux_vnc&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label,style:{paddingTop:"5px"}},"\u5B9E\u4F8B\u542F\u52A8\u6A21\u677F\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{value:windows_start_template,onChange:function(Y){return setWindowVNCTemplate(Y.target.value)},style:{width:500},placeholder:"\u8BF7\u8F93\u5165Linux\u5B9E\u4F8B\u542F\u52A8\u6A21\u677F\u540D\u79F0"})))),isRadiuvalue==5&&windows_vnc&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_38___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label,style:{paddingTop:"5px"}},"\u5B9E\u4F8B\u542F\u52A8\u6A21\u677F\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{value:windows_start_template,onChange:function(Y){return setWindowVNCTemplate(Y.target.value)},style:{width:500},placeholder:"\u8BF7\u8F93\u5165Windows\u5B9E\u4F8B\u542F\u52A8\u6A21\u677F\u540D\u79F0"})))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label,style:{paddingTop:"5px"}},"\u5B9E\u4F8B\u542F\u52A8\u65B9\u5F0F\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_select__WEBPACK_IMPORTED_MODULE_36__.a,{value:windows_connection_mode,onChange:function(Y){return setWindowsConnectionMode(Y)}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_select__WEBPACK_IMPORTED_MODULE_36__.a.Option,{value:"vnc"},"VNC\u65B9\u5F0F\u542F\u52A8"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_select__WEBPACK_IMPORTED_MODULE_36__.a.Option,{value:"rdp"},"RDP\u65B9\u5F0F\u542F\u52A8")))))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_tooltip__WEBPACK_IMPORTED_MODULE_5__.a,{title:Object(_utils_authority__WEBPACK_IMPORTED_MODULE_50__.o)()?"":"\u53EA\u6709\u5E73\u53F0\u7BA1\u7406\u5458\u6216\u8FD0\u8425\u4EBA\u5458\u624D\u80FD\u914D\u7F6E\u865A\u62DF\u673A\u6A21\u5F0F"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{disabled:!Object(_utils_authority__WEBPACK_IMPORTED_MODULE_50__.o)(),value:"virtual_machine",className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.radio,style:{marginTop:"22px"}},"\u865A\u62DF\u673A\u56FE\u5F62\u5316\u6A21\u5F0F",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u5B66\u5458\u8FDB\u884C\u5B9E\u9A8C\u65F6\uFF0C\u4F7F\u7528\u865A\u62DF\u673A\u56FE\u5F62\u5316\u65B9\u5F0F\u663E\u793A\u64CD\u4F5C\u754C\u9762\uFF09"))),isRadiuvalue==5&&virtual_machine&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:"14px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{style:{fontSize:"14px",width:213,marginRight:42,color:"#333333"}},"\u5B9E\u9A8C\u89D2\u8272\u540D\u79F0:"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{style:{fontSize:"14px",color:"#333333"}},"\u5B9E\u4F8B\u542F\u52A8\u6A21\u677F\uFF1A")),shixun_virtual_templates==null?void 0:shixun_virtual_templates.map(function(M,Y){return react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:"14px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{maxLength:8,style:{width:213,height:32,marginRight:42},placeholder:"\u8BF7\u8F93\u5165\u5B9E\u9A8C\u89D2\u8272\u540D\u79F0",value:M==null?void 0:M.template_name,onChange:function(L){M.template_name=L.target.value,setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(shixun_virtual_templates))}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{style:{width:380,height:32},placeholder:"\u8BF7\u8F93\u5165\u865A\u62DF\u673A\u5B9E\u4F8B\u542F\u52A8\u6A21\u7248\u540D\u79F0",value:M==null?void 0:M.template_identity,onChange:function(L){M.template_identity=L.target.value,setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(shixun_virtual_templates))}}),Object(_utils_authority__WEBPACK_IMPORTED_MODULE_50__.v)()&&(shixun_virtual_templates==null?void 0:shixun_virtual_templates.length)<5&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_44__.a,{style:{fontSize:"16px",marginLeft:15,color:"#165DFF"},onClick:function(){var L={};L.template_name="",L.template_identity="",shixun_virtual_templates.push(L),setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(shixun_virtual_templates))}}),Y!=0&&Object(_utils_authority__WEBPACK_IMPORTED_MODULE_50__.v)()&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_45__.a,{style:{fontSize:"16px",marginLeft:10,color:"#165DFF"},onClick:function(){shixun_virtual_templates.splice(Y,1),setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(shixun_virtual_templates))}}))}))))))),hideCode&&websshShow?null:react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u663E\u793A\u4EE3\u7801\u5E93\u5730\u5740\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:display_git_address,disabled:!editable,onChange:function(Y){return set_display_git_address(Y.target.checked)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")}," ","\uFF08\u9009\u4E2D\u5219\u5BF9\u5B66\u5458\u516C\u5F00\u4EE3\u7801\u5E93\u5730\u5740\uFF0C\u5B66\u5458\u53EF\u4EE5\u5C06\u6240\u6709\u4EE3\u7801\u4E0B\u8F7D\u5230\u672C\u5730\uFF09")))),!hideCode&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u663E\u793A\u4EE3\u7801\u76EE\u5F55\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:codeHidden,disabled:!editable,onChange:function(Y){return setCodeHidden(Y.target.checked)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u9009\u4E2D\u5219\u5B66\u5458\u9875\u9762\u663E\u793A\u7248\u672C\u5E93\u76EE\u5F55\uFF09")),codeHidden&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{height:"54px",background:"#f5f5f5",marginTop:"10px",borderRadius:"8px",display:"flex",justifyContent:"left",alignItems:"center",padding:"0px 20px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{display:"flex"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",null,"\u4EE3\u7801\u5E93\u6587\u4EF6\u4FEE\u6539\u6743\u9650\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent,style:{padding:"0px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:codeEditPermission,disabled:!editable,onChange:function(Y){return setCodeEditPermission(Y.target.checked)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u52FE\u9009\u540E\u5141\u8BB8\u5B66\u5458\u4FEE\u6539\u4EE3\u7801\u5E93\u6240\u6709\u6587\u4EF6\uFF0C\u5426\u5219\u4EC5\u53EF\u4FEE\u6539\u5B66\u5458\u4EFB\u52A1\u6587\u4EF6\uFF09"))))))),!hideCode&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u7981\u7528\u7C98\u8D34\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:forbidCopy,disabled:!editable,onChange:function(Y){return setForbidCopy(Y.target.checked)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u9009\u4E2D\u5219\u5B66\u5458\u5728\u7F16\u7801\u533A\u57DF\u65E0\u6CD5\u4F7F\u7528\u7C98\u8D34\u529F\u80FD\uFF09")))),Object(_utils_authority__WEBPACK_IMPORTED_MODULE_50__.v)()&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u5B9E\u9A8C\u73AF\u5883\u4F7F\u7528\u65F6\u957F\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input_number__WEBPACK_IMPORTED_MODULE_7__.a,{value:survival_time,onChange:function(Y){return setSurvivalTime(Y)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\u5206")))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.titlesize,style:{marginTop:"20px",display:"none"}},"\u9AD8\u7EA7\u8BBE\u7F6E"," ",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{onClick:function(){return setAdvancedSettingShow(!advancedsettingshow)},style:{color:"#0152d9",fontSize:"14px",cursor:"pointer",marginLeft:"20px"}},advancedsettingshow?"\u6536\u8D77":"\u5C55\u5F00",advancedsettingshow?react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_46__.a,null):react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_47__.a,null))),advancedsettingshow&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,!((_shixunsDetail$detail7=shixunsDetail.detail)!==null&&_shixunsDetail$detail7!==void 0&&_shixunsDetail$detail7.is_jupyter)&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_38___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.flexRow," ").concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.flexAlignCenter)},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{style:{fontSize:"16px"}},"\u8BC4\u6D4B\u811A\u672C\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_select__WEBPACK_IMPORTED_MODULE_36__.a,{style:{width:"200px"},value:evaluationScript,disabled:((_shixunsDetail$settin150=shixunsDetail.setting)===null||_shixunsDetail$settin150===void 0||((_shixunsDetail$settin151=_shixunsDetail$settin150.shixun)===null||_shixunsDetail$settin151===void 0)?void 0:_shixunsDetail$settin151.status)===2?!0:!editable,placeholder:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u811A\u672C",onChange:function(Y){handleChangeEvaluationScript(Y),setevaluationScript(Y)}},(standardScriptList||[]).map(function(M,Y){return react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(Option,{value:parseInt(M.id),name:M.scptname,key:Y},M.scptname)})))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color0152d9," font14 current ml10"),style:{marginTop:"2px"},onClick:handleUseCustomScript},"\u4F7F\u7528\u81EA\u5B9A\u4E49\u811A\u672C"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_popover__WEBPACK_IMPORTED_MODULE_3__.a,{overlayClassName:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.popover,placement:"bottomLeft",content:react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:"font12"},"\u4F7F\u7528\u81EA\u5B9A\u4E49\u6A21\u677F\uFF0C\u5E73\u53F0\u65E0\u6CD5\u81EA\u52A8\u66F4\u65B0\u811A\u672C\uFF0C\u8BF7\u5728\u5173\u5361\u521B\u5EFA\u5B8C\u540E\u624B\u52A8\u66F4\u65B0\u811A\u672C\u4E2D\u7684\u5FC5\u586B\u53C2",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u6570\u548C\u4EE5\u4E0B2\u4E2A\u6570\u7EC4\u5143\u7D20\uFF1A",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"challengeProgramNames",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"sourceClassNames",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u793A\u4F8B\uFF1A\u67092\u4E2A\u5173\u5361\u7684\u5B9E\u8BAD",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u5404\u5173\u5361\u7684\u5F85\u7F16\u8BD1\u6587\u4EF6\u4E3A\uFF1A",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"src/step1/HelloWorld.java",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"src/step2/Other.java",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u5404\u5173\u5361\u7684\u7F16\u8BD1\u540E\u751F\u6210\u7684\u6267\u884C\u6587\u4EF6\u4E3A\uFF1A",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"step1.HelloWorld",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"step2.Other",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u5219\u6570\u7EC4\u5143\u7D20\u66F4\u65B0\u5982\u4E0B\uFF1A",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),'ff challengeProgramNames=("src/step1/',react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),'HelloWorld.java" "src/step2/Other.java")',react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),'sourceClassNames=("step1.HelloWorld',react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),'" "step2.Other")',react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u5176\u5B83\u53C2\u6570\u53EF\u6309\u5B9E\u9645\u9700\u6C42\u5B9A\u5236"),trigger:"click"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{style:{marginTop:"2px"},className:"ml10 current font14"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_48__.a,null)))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_components_monaco_editor__WEBPACK_IMPORTED_MODULE_49__.b,{width:"90%",height:450,style:{border:"1px solid #ccc",background:"#f5f5f5",marginTop:"20px"},language:"shell",theme:"vs-light",value:evaluateScript,options:{readOnly:((_shixunsDetail$settin152=shixunsDetail.setting)===null||_shixunsDetail$settin152===void 0||((_shixunsDetail$settin153=_shixunsDetail$settin152.shixun)===null||_shixunsDetail$settin153===void 0)?void 0:_shixunsDetail$settin153.status)===2?!0:!editable},onChange:function(Y){return setEvaluateScript(Y)}})),((_shixunsDetail$detail8=shixunsDetail.detail)===null||_shixunsDetail$detail8===void 0?void 0:_shixunsDetail$detail8.identity)<3&&editable&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSettingWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSettingName},"\u670D\u52A1\u914D\u7F6E"),serviceConfigList==null?void 0:serviceConfigList.map(function(M,Y){var o,L,g,A,b,y,x,w;return react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{key:Y},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"font16"},M.name)),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"mb5"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetLeft},"CPU(\u6838)\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetInput,value:M.cpu_limit,disabled:((o=shixunsDetail.setting)===null||o===void 0||((L=o.shixun)===null||L===void 0)?void 0:L.status)===2?!0:!editable,onChange:function(_){return handleChangeSeviceConfig(_.target.value,"cpu_limit",Y)}})),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"mb5"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetLeft},"\u6700\u4F4ECPU(\u6838)\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetInput,value:M.lower_cpu_limit,disabled:((g=shixunsDetail.setting)===null||g===void 0||((A=g.shixun)===null||A===void 0)?void 0:A.status)===2?!0:!editable,onChange:function(_){return handleChangeSeviceConfig(_.target.value,"lower_cpu_limit",Y)}})),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"mb5"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetLeft},"\u5185\u5B58\u9650\u5236(M)\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetInput,value:M.memory_limit,disabled:((b=shixunsDetail.setting)===null||b===void 0||((y=b.shixun)===null||y===void 0)?void 0:y.status)===2?!0:!editable,onChange:function(_){return handleChangeSeviceConfig(_.target.value,"memory_limit",Y)}})),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"mb5"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetLeft},"\u5185\u5B58\u8981\u6C42(M)\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetMemoryInput,value:M.request_limit,disabled:((x=shixunsDetail.setting)===null||x===void 0||((w=x.shixun)===null||w===void 0)?void 0:w.status)===2?!0:!editable,onChange:function(_){return handleChangeSeviceConfig(_.target.value,"request_limit",Y)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetTip," ml5")},"\u6E29\u99A8\u63D0\u793A\uFF1A\u7EAF\u7F16\u7A0B\u7C7B\u578B\u5B9E\u8BAD\u5EFA\u8BAE\u4F7F\u7528\u9ED8\u8BA4\u503C\uFF0C\u5BF9\u4E8E\u5927\u6570\u636E\u7B49\u5EFA\u8BAE\u4F7F\u7528\u6700\u5927\u5185\u5B58\u768430%")))}))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.titlesize,style:{marginTop:"20px"}}," ","\u8BC4\u8BBA\u533A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u663E\u793A\u8BC4\u8BBA\u533A\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_switch__WEBPACK_IMPORTED_MODULE_1__.a,{checked:!disableDiscuss,onChange:function(Y){return setDisableDiscuss(!Y)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u5173\u95ED\u540E\uFF0C\u5B9E\u8DF5\u9879\u76EE\u8BE6\u60C5\u9875\u53CA\u5173\u5361\u6311\u6218\u9875\u9762\u4E0D\u663E\u793A\u4EFB\u4F55\u8BC4\u8BBA\uFF09"))))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{height:"70px",width:"76%",background:"#ffffff",boxShadow:"0px -4px 8px 1px #F1F1F1",position:"absolute",bottom:"0px",display:"flex",alignItems:"center",justifyContent:"center"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_23__.a,{style:{marginRight:"10px",width:"100px",height:"40px",borderRadius:"4px",border:"1px solid #0152d9",color:"#0152d9"},onClick:function(){umi__WEBPACK_IMPORTED_MODULE_40__.d.push("/shixuns/".concat(params.id,"/challenges"))}},"\u53D6\u6D88"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_23__.a,{style:{marginLeft:"10px",width:"100px",height:"40px",fontSize:"16px",background:"#0152d9",borderRadius:"4px"},type:"primary",onClick:function(){return handSubmeit()}},"\u4FDD\u5B58"))),!isShowSetting&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{padding:"40px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{style:{color:"#333333",fontSize:"16px"}},"\u521B\u5EFA\u8005"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.itemWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"60",width:"60",className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.img,src:"".concat(_utils_env__WEBPACK_IMPORTED_MODULE_55__.a.IMG_SERVER,"/images/").concat(createTitle==null?void 0:createTitle.user_image_url)}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.itemContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.nameWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.name},createTitle==null?void 0:createTitle.user_name),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.actionGroup})),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.schoolWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.school},createTitle==null?void 0:createTitle.user_school)),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{style:{color:"#333333",fontSize:"16px"}},"\u521B\u5EFA\u65F6\u95F4\uFF1A",createTitle==null?void 0:createTitle.created_at),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{style:{color:"#333333",fontSize:"16px"}},"\u66F4\u65B0\u65F6\u95F4\uFF1A",createTitle==null?void 0:createTitle.updated_at)))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_pages_Shixuns_New_components_ApplyModal__WEBPACK_IMPORTED_MODULE_51__.a,null),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_UseCustomScriptModal__WEBPACK_IMPORTED_MODULE_52__.a,{onFinish:function(Y){return setEvaluateScript(Y)}}))}__webpack_exports__.a=Object(umi__WEBPACK_IMPORTED_MODULE_40__.a)(function(M){var Y=M.user,o=M.shixunsDetail,L=M.practiceSetting;return{user:Y,shixunsDetail:o,practiceSetting:L}})(Setting)},"19Vz":function(M,Y,o){(function(L){L(o("VrN/"))})(function(L){L.defineOption("placeholder","",function(f,_,d){var r=d&&d!=L.Init;if(_&&!r)f.on("blur",y),f.on("change",x),f.on("swapDoc",x),L.on(f.getInputField(),"compositionupdate",f.state.placeholderCompose=function(){b(f)}),x(f);else if(!_&&r){f.off("blur",y),f.off("change",x),f.off("swapDoc",x),L.off(f.getInputField(),"compositionupdate",f.state.placeholderCompose),g(f);var u=f.getWrapperElement();u.className=u.className.replace(" CodeMirror-empty","")}_&&!f.hasFocus()&&y(f)});function g(f){f.state.placeholder&&(f.state.placeholder.parentNode.removeChild(f.state.placeholder),f.state.placeholder=null)}function A(f){g(f);var _=f.state.placeholder=document.createElement("pre");_.style.cssText="height: 0; overflow: visible",_.style.direction=f.getOption("direction"),_.className="CodeMirror-placeholder CodeMirror-line-like";var d=f.getOption("placeholder");typeof d=="string"&&(d=document.createTextNode(d)),_.appendChild(d),f.display.lineSpace.insertBefore(_,f.display.lineSpace.firstChild)}function b(f){setTimeout(function(){var _=!1,d=f.getInputField();d.nodeName=="TEXTAREA"?_=!d.value:f.lineCount()==1&&(_=!/[^\u200b]/.test(d.querySelector(".CodeMirror-line").textContent)),_?A(f):g(f)},20)}function y(f){w(f)&&A(f)}function x(f){var _=f.getWrapperElement(),d=w(f);_.className=_.className.replace(" CodeMirror-empty","")+(d?" CodeMirror-empty":""),d?A(f):g(f)}function w(f){return f.lineCount()===1&&f.getLine(0)===""}})},"1Sn+":function(M,Y,o){},"1XHU":function(M,Y,o){"use strict";var L=o("2qtc"),g=o("kLXV"),A=o("q1tI"),b=o.n(A),y=o("9kvl"),x=o("3wET"),w=o.n(x),f=o("bUJZ"),_=o.n(f),d=o("Ct/S"),r=o.n(d),u=function(a){var n=a.visible,i=a.occupationValue,h=a.onCancel,l=h===void 0?function(){}:h,s=function(){return b.a.createElement("div",{className:r.a.flexColumn},b.a.createElement("img",{className:r.a.img,src:_.a}),b.a.createElement("span",{className:r.a.content},"\u672A\u804C\u4E1A\u8BA4\u8BC1"))},p=function(){return b.a.createElement("div",{className:r.a.flexColumn},b.a.createElement("img",{className:r.a.img,src:w.a}),b.a.createElement("span",{className:r.a.content},"\u672A\u5B9E\u540D\u8BA4\u8BC1"))},O=function(){return i===3?b.a.createElement(b.a.Fragment,null,p(),s()):i===2?s():p()};return b.a.createElement(g.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:n,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(){l(),y.d.push("/account/certification")},onCancel:function(){l()}},b.a.createElement("div",{className:r.a.tilte},"\u8BF7\u5728\u5B8C\u6210\u6761\u4EF6\u540E\u91CD\u8BD5"),b.a.createElement("div",{className:r.a.flexRow},O()))};Y.a=Object(y.a)(function(t){var a=t.paperlibrary,n=t.loading,i=t.globalSetting;return{paperlibrary:a,globalSetting:i,loading:n.effects}})(u)},"1ZF9":function(M,Y,o){M.exports=o.p+"static/Authorize.cc9c212f.png"},"1eCo":function(M,Y,o){(function(L){L(o("VrN/"))})(function(L){"use strict";var g={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},A={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};L.defineMode("xml",function(b,y){var x=b.indentUnit,w={},f=y.htmlMode?g:A;for(var _ in f)w[_]=f[_];for(var _ in y)w[_]=y[_];var d,r;function u(T,I){function D(F){return I.tokenize=F,F(T,I)}var N=T.next();if(N=="<")return T.eat("!")?T.eat("[")?T.match("CDATA[")?D(n("atom","]]>")):null:T.match("--")?D(n("comment","-->")):T.match("DOCTYPE",!0,!0)?(T.eatWhile(/[\w\._\-]/),D(i(1))):null:T.eat("?")?(T.eatWhile(/[\w\._\-]/),I.tokenize=n("meta","?>"),"meta"):(d=T.eat("/")?"closeTag":"openTag",I.tokenize=t,"tag bracket");if(N=="&"){var z;return T.eat("#")?T.eat("x")?z=T.eatWhile(/[a-fA-F\d]/)&&T.eat(";"):z=T.eatWhile(/[\d]/)&&T.eat(";"):z=T.eatWhile(/[\w\.\-:]/)&&T.eat(";"),z?"atom":"error"}else return T.eatWhile(/[^&<]/),null}u.isInText=!0;function t(T,I){var D=T.next();if(D==">"||D=="/"&&T.eat(">"))return I.tokenize=u,d=D==">"?"endTag":"selfcloseTag","tag bracket";if(D=="=")return d="equals",null;if(D=="<"){I.tokenize=u,I.state=p,I.tagName=I.tagStart=null;var N=I.tokenize(T,I);return N?N+" tag error":"tag error"}else return/[\'\"]/.test(D)?(I.tokenize=a(D),I.stringStartCol=T.column(),I.tokenize(T,I)):(T.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function a(T){var I=function(D,N){for(;!D.eol();)if(D.next()==T){N.tokenize=t;break}return"string"};return I.isInAttribute=!0,I}function n(T,I){return function(D,N){for(;!D.eol();){if(D.match(I)){N.tokenize=u;break}D.next()}return T}}function i(T){return function(I,D){for(var N;(N=I.next())!=null;){if(N=="<")return D.tokenize=i(T+1),D.tokenize(I,D);if(N==">")if(T==1){D.tokenize=u;break}else return D.tokenize=i(T-1),D.tokenize(I,D)}return"meta"}}function h(T,I,D){this.prev=T.context,this.tagName=I,this.indent=T.indented,this.startOfLine=D,(w.doNotIndent.hasOwnProperty(I)||T.context&&T.context.noIndent)&&(this.noIndent=!0)}function l(T){T.context&&(T.context=T.context.prev)}function s(T,I){for(var D;;){if(!T.context)return;if(D=T.context.tagName,!w.contextGrabbers.hasOwnProperty(D)||!w.contextGrabbers[D].hasOwnProperty(I))return;l(T)}}function p(T,I,D){return T=="openTag"?(D.tagStart=I.column(),O):T=="closeTag"?S:p}function O(T,I,D){return T=="word"?(D.tagName=I.current(),r="tag",R):w.allowMissingTagName&&T=="endTag"?(r="tag bracket",R(T,I,D)):(r="error",O)}function S(T,I,D){if(T=="word"){var N=I.current();return D.context&&D.context.tagName!=N&&w.implicitlyClosed.hasOwnProperty(D.context.tagName)&&l(D),D.context&&D.context.tagName==N||w.matchClosing===!1?(r="tag",v):(r="tag error",P)}else return w.allowMissingTagName&&T=="endTag"?(r="tag bracket",v(T,I,D)):(r="error",P)}function v(T,I,D){return T!="endTag"?(r="error",v):(l(D),p)}function P(T,I,D){return r="error",v(T,I,D)}function R(T,I,D){if(T=="word")return r="attribute",E;if(T=="endTag"||T=="selfcloseTag"){var N=D.tagName,z=D.tagStart;return D.tagName=D.tagStart=null,T=="selfcloseTag"||w.autoSelfClosers.hasOwnProperty(N)?s(D,N):(s(D,N),D.context=new h(D,N,z==D.indented)),p}return r="error",R}function E(T,I,D){return T=="equals"?C:(w.allowMissing||(r="error"),R(T,I,D))}function C(T,I,D){return T=="string"?m:T=="word"&&w.allowUnquoted?(r="string",R):(r="error",R(T,I,D))}function m(T,I,D){return T=="string"?m:R(T,I,D)}return{startState:function(T){var I={tokenize:u,state:p,indented:T||0,tagName:null,tagStart:null,context:null};return T!=null&&(I.baseIndent=T),I},token:function(T,I){if(!I.tagName&&T.sol()&&(I.indented=T.indentation()),T.eatSpace())return null;d=null;var D=I.tokenize(T,I);return(D||d)&&D!="comment"&&(r=null,I.state=I.state(d||D,T,I),r&&(D=r=="error"?D+" error":r)),D},indent:function(T,I,D){var N=T.context;if(T.tokenize.isInAttribute)return T.tagStart==T.indented?T.stringStartCol+1:T.indented+x;if(N&&N.noIndent)return L.Pass;if(T.tokenize!=t&&T.tokenize!=u)return D?D.match(/^(\s*)/)[0].length:0;if(T.tagName)return w.multilineTagIndentPastTag!==!1?T.tagStart+T.tagName.length+2:T.tagStart+x*(w.multilineTagIndentFactor||1);if(w.alignCDATA&&/<!\[CDATA\[/.test(I))return 0;var z=I&&/^<(\/)?([\w_:\.-]*)/.exec(I);if(z&&z[1])for(;N;)if(N.tagName==z[2]){N=N.prev;break}else if(w.implicitlyClosed.hasOwnProperty(N.tagName))N=N.prev;else break;else if(z)for(;N;){var F=w.contextGrabbers[N.tagName];if(F&&F.hasOwnProperty(z[2]))N=N.prev;else break}for(;N&&N.prev&&!N.startOfLine;)N=N.prev;return N?N.indent+x:T.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:w.htmlMode?"html":"xml",helperType:w.htmlMode?"html":"xml",skipAttribute:function(T){T.state==C&&(T.state=R)},xmlCurrentTag:function(T){return T.tagName?{name:T.tagName,close:T.type=="closeTag"}:null},xmlCurrentContext:function(T){for(var I=[],D=T.context;D;D=D.prev)D.tagName&&I.push(D.tagName);return I.reverse()}}}),L.defineMIME("text/xml","xml"),L.defineMIME("application/xml","xml"),L.mimeModes.hasOwnProperty("text/html")||L.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1j5w":function(M,Y,o){"use strict";o.d(Y,"d",function(){return tt}),o.d(Y,"b",function(){return Ke}),o.d(Y,"c",function(){return Ot}),o.d(Y,"a",function(){return an});var L=o("VTBJ"),g=o("1OyB"),A=o("vuIU"),b=o("JX7q"),y=o("Ji7U"),x=o("LK+K"),w=o("q1tI"),f=o("I8Z2"),_=o("BGR+"),d=o("wx14"),r=o("rePB"),u=o("4IlW"),t=o("2GS6"),a=o("Gytx"),n=o.n(a),i=o("TSYQ"),h=o.n(i),l=o("U8pU"),s=o("ODXe"),p=/iPhone/i,O=/iPod/i,S=/iPad/i,v=/\bAndroid(?:.+)Mobile\b/i,P=/Android/i,R=/\bAndroid(?:.+)SD4930UR\b/i,E=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,C=/Windows Phone/i,m=/\bWindows(?:.+)ARM\b/i,T=/BlackBerry/i,I=/BB10/i,D=/Opera Mini/i,N=/\b(CriOS|Chrome)(?:.+)Mobile/i,z=/Mobile(?:.+)Firefox\b/i;function F(bt,Be){return bt.test(Be)}function W(bt){var Be=bt||(typeof navigator!="undefined"?navigator.userAgent:""),at=Be.split("[FBAN");if(typeof at[1]!="undefined"){var it=at,Me=Object(s.a)(it,1);Be=Me[0]}if(at=Be.split("Twitter"),typeof at[1]!="undefined"){var Ye=at,ut=Object(s.a)(Ye,1);Be=ut[0]}var mt={apple:{phone:F(p,Be)&&!F(C,Be),ipod:F(O,Be),tablet:!F(p,Be)&&F(S,Be)&&!F(C,Be),device:(F(p,Be)||F(O,Be)||F(S,Be))&&!F(C,Be)},amazon:{phone:F(R,Be),tablet:!F(R,Be)&&F(E,Be),device:F(R,Be)||F(E,Be)},android:{phone:!F(C,Be)&&F(R,Be)||!F(C,Be)&&F(v,Be),tablet:!F(C,Be)&&!F(R,Be)&&!F(v,Be)&&(F(E,Be)||F(P,Be)),device:!F(C,Be)&&(F(R,Be)||F(E,Be)||F(v,Be)||F(P,Be))||F(/\bokhttp\b/i,Be)},windows:{phone:F(C,Be),tablet:F(m,Be),device:F(C,Be)||F(m,Be)},other:{blackberry:F(T,Be),blackberry10:F(I,Be),opera:F(D,Be),firefox:F(z,Be),chrome:F(N,Be),device:F(T,Be)||F(I,Be)||F(D,Be)||F(z,Be)||F(N,Be)},any:null,phone:null,tablet:null};return mt.any=mt.apple.device||mt.android.device||mt.windows.device||mt.other.device,mt.phone=mt.apple.phone||mt.android.phone||mt.windows.phone,mt.tablet=mt.apple.tablet||mt.android.tablet||mt.windows.tablet,mt}var K=Object(L.a)(Object(L.a)({},W()),{},{isMobile:W}),B=K;function k(){}function G(bt,Be,at){var it=Be||"";return bt.key||"".concat(it,"item_").concat(at)}function ne(bt){return"".concat(bt,"-menu-")}function fe(bt,Be){var at=-1;w.Children.forEach(bt,function(it){at+=1,it&&it.type&&it.type.isMenuItemGroup?w.Children.forEach(it.props.children,function(Me){at+=1,Be(Me,at)}):Be(it,at)})}function de(bt,Be,at){if(!bt||at.find)return;w.Children.forEach(bt,function(it){if(it){var Me=it.type;if(!Me||!(Me.isSubMenu||Me.isMenuItem||Me.isMenuItemGroup))return;Be.indexOf(it.key)!==-1?at.find=!0:it.props.children&&de(it.props.children,Be,at)}})}var xe=["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"],Oe=function(Be){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,it=Be&&typeof Be.getBoundingClientRect=="function"&&Be.getBoundingClientRect().width;if(it){if(at){var Me=getComputedStyle(Be),Ye=Me.marginLeft,ut=Me.marginRight;it+=+Ye.replace("px","")+ +ut.replace("px","")}it=+it.toFixed(6)}return it||0},ce=function(Be,at,it){Be&&Object(l.a)(Be.style)==="object"&&(Be.style[at]=it)},be=function(){return B.any},ve=o("KQm4"),ue=o("Ff2n"),se=o("i8i4"),q=o("bdgK"),me=o("uciX"),re=o("8XRh"),ie={adjustX:1,adjustY:1},we={topLeft:{points:["bl","tl"],overflow:ie,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ie,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ie,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ie,offset:[4,0]}},le={topLeft:{points:["bl","tl"],overflow:ie,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ie,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ie,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ie,offset:[4,0]}},$=we,J=0,te={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},De=function(Be,at,it){var Me=ne(at),Ye=Be.getState();Be.setState({defaultActiveFirst:Object(L.a)(Object(L.a)({},Ye.defaultActiveFirst),{},Object(r.a)({},Me,it))})},Te=function(bt){Object(y.a)(at,bt);var Be=Object(x.a)(at);function at(it){var Me;Object(g.a)(this,at),Me=Be.call(this,it),Me.onDestroy=function(et){Me.props.onDestroy(et)},Me.onKeyDown=function(et){var Dt=et.keyCode,Ht=Me.menuInstance,bn=Me.props,Cn=bn.isOpen,Yn=bn.store;if(Dt===u.a.ENTER)return Me.onTitleClick(et),De(Yn,Me.props.eventKey,!0),!0;if(Dt===u.a.RIGHT)return Cn?Ht.onKeyDown(et):(Me.triggerOpenChange(!0),De(Yn,Me.props.eventKey,!0)),!0;if(Dt===u.a.LEFT){var qn;if(Cn)qn=Ht.onKeyDown(et);else return;return qn||(Me.triggerOpenChange(!1),qn=!0),qn}return Cn&&(Dt===u.a.UP||Dt===u.a.DOWN)?Ht.onKeyDown(et):void 0},Me.onOpenChange=function(et){Me.props.onOpenChange(et)},Me.onPopupVisibleChange=function(et){Me.triggerOpenChange(et,et?"mouseenter":"mouseleave")},Me.onMouseEnter=function(et){var Dt=Me.props,Ht=Dt.eventKey,bn=Dt.onMouseEnter,Cn=Dt.store;De(Cn,Me.props.eventKey,!1),bn({key:Ht,domEvent:et})},Me.onMouseLeave=function(et){var Dt=Me.props,Ht=Dt.parentMenu,bn=Dt.eventKey,Cn=Dt.onMouseLeave;Ht.subMenuInstance=Object(b.a)(Me),Cn({key:bn,domEvent:et})},Me.onTitleMouseEnter=function(et){var Dt=Me.props,Ht=Dt.eventKey,bn=Dt.onItemHover,Cn=Dt.onTitleMouseEnter;bn({key:Ht,hover:!0}),Cn({key:Ht,domEvent:et})},Me.onTitleMouseLeave=function(et){var Dt=Me.props,Ht=Dt.parentMenu,bn=Dt.eventKey,Cn=Dt.onItemHover,Yn=Dt.onTitleMouseLeave;Ht.subMenuInstance=Object(b.a)(Me),Cn({key:bn,hover:!1}),Yn({key:bn,domEvent:et})},Me.onTitleClick=function(et){var Dt=Object(b.a)(Me),Ht=Dt.props;if(Ht.onTitleClick({key:Ht.eventKey,domEvent:et}),Ht.triggerSubMenuAction==="hover")return;Me.triggerOpenChange(!Ht.isOpen,"click"),De(Ht.store,Me.props.eventKey,!1)},Me.onSubMenuClick=function(et){typeof Me.props.onClick=="function"&&Me.props.onClick(Me.addKeyPath(et))},Me.onSelect=function(et){Me.props.onSelect(et)},Me.onDeselect=function(et){Me.props.onDeselect(et)},Me.getPrefixCls=function(){return"".concat(Me.props.rootPrefixCls,"-submenu")},Me.getActiveClassName=function(){return"".concat(Me.getPrefixCls(),"-active")},Me.getDisabledClassName=function(){return"".concat(Me.getPrefixCls(),"-disabled")},Me.getSelectedClassName=function(){return"".concat(Me.getPrefixCls(),"-selected")},Me.getOpenClassName=function(){return"".concat(Me.props.rootPrefixCls,"-submenu-open")},Me.saveMenuInstance=function(et){Me.menuInstance=et},Me.addKeyPath=function(et){return Object(L.a)(Object(L.a)({},et),{},{keyPath:(et.keyPath||[]).concat(Me.props.eventKey)})},Me.triggerOpenChange=function(et,Dt){var Ht=Me.props.eventKey,bn=function(){Me.onOpenChange({key:Ht,item:Object(b.a)(Me),trigger:Dt,open:et})};Dt==="mouseenter"?Me.mouseenterTimeout=setTimeout(function(){bn()},0):bn()},Me.isChildrenSelected=function(){var et={find:!1};return de(Me.props.children,Me.props.selectedKeys,et),et.find},Me.isOpen=function(){return Me.props.openKeys.indexOf(Me.props.eventKey)!==-1},Me.adjustWidth=function(){if(!Me.subMenuTitle||!Me.menuInstance)return;var et=se.findDOMNode(Me.menuInstance);if(et.offsetWidth>=Me.subMenuTitle.offsetWidth)return;et.style.minWidth="".concat(Me.subMenuTitle.offsetWidth,"px")},Me.saveSubMenuTitle=function(et){Me.subMenuTitle=et},Me.getBaseProps=function(){var et=Object(b.a)(Me),Dt=et.props;return{mode:Dt.mode==="horizontal"?"vertical":Dt.mode,visible:Me.props.isOpen,level:Dt.level+1,inlineIndent:Dt.inlineIndent,focusable:!1,onClick:Me.onSubMenuClick,onSelect:Me.onSelect,onDeselect:Me.onDeselect,onDestroy:Me.onDestroy,selectedKeys:Dt.selectedKeys,eventKey:"".concat(Dt.eventKey,"-menu-"),openKeys:Dt.openKeys,motion:Dt.motion,onOpenChange:Me.onOpenChange,subMenuOpenDelay:Dt.subMenuOpenDelay,parentMenu:Object(b.a)(Me),subMenuCloseDelay:Dt.subMenuCloseDelay,forceSubMenuRender:Dt.forceSubMenuRender,triggerSubMenuAction:Dt.triggerSubMenuAction,builtinPlacements:Dt.builtinPlacements,defaultActiveFirst:Dt.store.getState().defaultActiveFirst[ne(Dt.eventKey)],multiple:Dt.multiple,prefixCls:Dt.rootPrefixCls,id:Me.internalMenuId,manualRef:Me.saveMenuInstance,itemIcon:Dt.itemIcon,expandIcon:Dt.expandIcon,direction:Dt.direction}},Me.getMotion=function(et,Dt){var Ht=Object(b.a)(Me),bn=Ht.haveRendered,Cn=Me.props,Yn=Cn.motion,qn=Cn.rootPrefixCls,Pn=Object(L.a)(Object(L.a)({},Yn),{},{leavedClassName:"".concat(qn,"-hidden"),removeOnLeave:!1,motionAppear:bn||!Dt||et!=="inline"});return Pn};var Ye=it.store,ut=it.eventKey,mt=Ye.getState(),Pt=mt.defaultActiveFirst;Me.isRootMenu=!1;var jt=!1;return Pt&&(jt=Pt[ut]),De(Ye,ut,jt),Me}return Object(A.a)(at,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Me=this,Ye=this.props,ut=Ye.mode,mt=Ye.parentMenu,Pt=Ye.manualRef;if(Pt&&Pt(this),ut!=="horizontal"||!mt.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return Me.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Me=this.props,Ye=Me.onDestroy,ut=Me.eventKey;Ye&&Ye(ut),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(Me){var Ye=this,ut=this.getBaseProps(),mt=this.getMotion(ut.mode,ut.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||ut.visible||ut.forceSubMenuRender,!this.haveOpened)return w.createElement("div",null);var Pt=ut.direction;return w.createElement(re.default,Object.assign({visible:ut.visible},mt),function(jt){var et=jt.className,Dt=jt.style,Ht=h()("".concat(ut.prefixCls,"-sub"),et,Object(r.a)({},"".concat(ut.prefixCls,"-rtl"),Pt==="rtl"));return w.createElement(Qe,Object.assign({},ut,{id:Ye.internalMenuId,className:Ht,style:Dt}),Me)})}},{key:"render",value:function(){var Me,Ye=Object(L.a)({},this.props),ut=Ye.isOpen,mt=this.getPrefixCls(),Pt=Ye.mode==="inline",jt=h()(mt,"".concat(mt,"-").concat(Ye.mode),(Me={},Object(r.a)(Me,Ye.className,!!Ye.className),Object(r.a)(Me,this.getOpenClassName(),ut),Object(r.a)(Me,this.getActiveClassName(),Ye.active||ut&&!Pt),Object(r.a)(Me,this.getDisabledClassName(),Ye.disabled),Object(r.a)(Me,this.getSelectedClassName(),this.isChildrenSelected()),Me));this.internalMenuId||(Ye.eventKey?this.internalMenuId="".concat(Ye.eventKey,"$Menu"):(J+=1,this.internalMenuId="$__$".concat(J,"$Menu")));var et={},Dt={},Ht={};Ye.disabled||(et={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Dt={onClick:this.onTitleClick},Ht={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var bn={},Cn=Ye.direction;Pt&&(Cn==="rtl"?bn.paddingRight=Ye.inlineIndent*Ye.level:bn.paddingLeft=Ye.inlineIndent*Ye.level);var Yn={};this.props.isOpen&&(Yn={"aria-owns":this.internalMenuId});var qn=null;Ye.mode!=="horizontal"&&(qn=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(qn=w.createElement(this.props.expandIcon,Object(L.a)({},this.props))));var Pn=w.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:bn,className:"".concat(mt,"-title"),role:"button"},Ht,Dt,{"aria-expanded":ut},Yn,{"aria-haspopup":"true",title:typeof Ye.title=="string"?Ye.title:void 0}),Ye.title,qn||w.createElement("i",{className:"".concat(mt,"-arrow")})),cn=this.renderChildren(Ye.children),xr=Ye.parentMenu.isRootMenu?Ye.parentMenu.props.getPopupContainer:function($n){return $n.parentNode},wr=te[Ye.mode],Rr=Ye.popupOffset?{offset:Ye.popupOffset}:{},cr=Ye.mode==="inline"?"":Ye.popupClassName;cr+=Cn==="rtl"?" ".concat(mt,"-rtl"):"";var Ur=Ye.disabled,yr=Ye.triggerSubMenuAction,sn=Ye.subMenuOpenDelay,Zt=Ye.forceSubMenuRender,Tn=Ye.subMenuCloseDelay,jr=Ye.builtinPlacements;xe.forEach(function($n){return delete Ye[$n]}),delete Ye.onClick;var jn=Cn==="rtl"?Object.assign({},le,jr):Object.assign({},we,jr);return delete Ye.direction,w.createElement("li",Object.assign({},Ye,et,{className:jt,role:"menuitem"}),Pt&&Pn,Pt&&cn,!Pt&&w.createElement(me.a,{prefixCls:mt,popupClassName:h()("".concat(mt,"-popup"),cr),getPopupContainer:xr,builtinPlacements:jn,popupPlacement:wr,popupVisible:ut,popupAlign:Rr,popup:cn,action:Ur?[]:[yr],mouseEnterDelay:sn,mouseLeaveDelay:Tn,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Zt},Pn))}}]),at}(w.Component);Te.defaultProps={onMouseEnter:k,onMouseLeave:k,onTitleMouseEnter:k,onTitleMouseLeave:k,onTitleClick:k,manualRef:k,mode:"vertical",title:""};var ke=Object(f.b)(function(bt,Be){var at=bt.openKeys,it=bt.activeKey,Me=bt.selectedKeys,Ye=Be.eventKey,ut=Be.subMenuKey;return{isOpen:at.indexOf(Ye)>-1,active:it[ut]===Ye,selectedKeys:Me}})(Te);ke.isSubMenu=!0;var tt=ke,ot="menuitem-overflowed",gt=.5,Et=function(bt){Object(y.a)(at,bt);var Be=Object(x.a)(at);function at(){var it;return Object(g.a)(this,at),it=Be.apply(this,arguments),it.resizeObserver=null,it.mutationObserver=null,it.originalTotalWidth=0,it.overflowedItems=[],it.menuItemSizes=[],it.cancelFrameId=null,it.state={lastVisibleIndex:void 0},it.getMenuItemNodes=function(){var Me=it.props.prefixCls,Ye=se.findDOMNode(Object(b.a)(it));return Ye?[].slice.call(Ye.children).filter(function(ut){return ut.className.split(" ").indexOf("".concat(Me,"-overflowed-submenu"))<0}):[]},it.getOverflowedSubMenuItem=function(Me,Ye,ut){var mt=it.props,Pt=mt.overflowedIndicator,jt=mt.level,et=mt.mode,Dt=mt.prefixCls,Ht=mt.theme;if(jt!==1||et!=="horizontal")return null;var bn=it.props.children[0],Cn=bn.props,Yn=Cn.children,qn=Cn.title,Pn=Cn.style,cn=Object(ue.a)(Cn,["children","title","style"]),xr=Object(L.a)({},Pn),wr="".concat(Me,"-overflowed-indicator"),Rr="".concat(Me,"-overflowed-indicator");Ye.length===0&&ut!==!0?xr=Object(L.a)(Object(L.a)({},xr),{},{display:"none"}):ut&&(xr=Object(L.a)(Object(L.a)({},xr),{},{visibility:"hidden",position:"absolute"}),wr="".concat(wr,"-placeholder"),Rr="".concat(Rr,"-placeholder"));var cr=Ht?"".concat(Dt,"-").concat(Ht):"",Ur={};return xe.forEach(function(yr){cn[yr]!==void 0&&(Ur[yr]=cn[yr])}),w.createElement(tt,Object.assign({title:Pt,className:"".concat(Dt,"-overflowed-submenu"),popupClassName:cr},Ur,{key:wr,eventKey:Rr,disabled:!1,style:xr}),Ye)},it.setChildrenWidthAndResize=function(){if(it.props.mode!=="horizontal")return;var Me=se.findDOMNode(Object(b.a)(it));if(!Me)return;var Ye=Me.children;if(!Ye||Ye.length===0)return;var ut=Me.children[Ye.length-1];ce(ut,"display","inline-block");var mt=it.getMenuItemNodes(),Pt=mt.filter(function(jt){return jt.className.split(" ").indexOf(ot)>=0});Pt.forEach(function(jt){ce(jt,"display","inline-block")}),it.menuItemSizes=mt.map(function(jt){return Oe(jt,!0)}),Pt.forEach(function(jt){ce(jt,"display","none")}),it.overflowedIndicatorWidth=Oe(Me.children[Me.children.length-1],!0),it.originalTotalWidth=it.menuItemSizes.reduce(function(jt,et){return jt+et},0),it.handleResize(),ce(ut,"display","none")},it.handleResize=function(){if(it.props.mode!=="horizontal")return;var Me=se.findDOMNode(Object(b.a)(it));if(!Me)return;var Ye=Oe(Me);it.overflowedItems=[];var ut=0,mt;it.originalTotalWidth>Ye+gt&&(mt=-1,it.menuItemSizes.forEach(function(Pt){ut+=Pt,ut+it.overflowedIndicatorWidth<=Ye&&(mt+=1)})),it.setState({lastVisibleIndex:mt})},it}return Object(A.a)(at,[{key:"componentDidMount",value:function(){var Me=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Ye=se.findDOMNode(this);if(!Ye)return;this.resizeObserver=new q.default(function(ut){ut.forEach(function(){var mt=Me.cancelFrameId;cancelAnimationFrame(mt),Me.cancelFrameId=requestAnimationFrame(Me.setChildrenWidthAndResize)})}),[].slice.call(Ye.children).concat(Ye).forEach(function(ut){Me.resizeObserver.observe(ut)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Me.resizeObserver.disconnect(),[].slice.call(Ye.children).concat(Ye).forEach(function(ut){Me.resizeObserver.observe(ut)}),Me.setChildrenWidthAndResize()}),this.mutationObserver.observe(Ye,{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(Me){var Ye=this,ut=this.state.lastVisibleIndex;return(Me||[]).reduce(function(mt,Pt,jt){var et=Pt;if(Ye.props.mode==="horizontal"){var Dt=Ye.getOverflowedSubMenuItem(Pt.props.eventKey,[]);ut!==void 0&&Ye.props.className.indexOf("".concat(Ye.props.prefixCls,"-root"))!==-1&&(jt>ut&&(et=w.cloneElement(Pt,{style:{display:"none"},eventKey:"".concat(Pt.props.eventKey,"-hidden"),className:"".concat(ot)})),jt===ut+1&&(Ye.overflowedItems=Me.slice(ut+1).map(function(bn){return w.cloneElement(bn,{key:bn.props.eventKey,mode:"vertical-left"})}),Dt=Ye.getOverflowedSubMenuItem(Pt.props.eventKey,Ye.overflowedItems)));var Ht=[].concat(Object(ve.a)(mt),[Dt,et]);return jt===Me.length-1&&Ht.push(Ye.getOverflowedSubMenuItem(Pt.props.eventKey,[],!0)),Ht}return[].concat(Object(ve.a)(mt),[et])},[])}},{key:"render",value:function(){var Me=this.props,Ye=Me.visible,ut=Me.prefixCls,mt=Me.overflowedIndicator,Pt=Me.mode,jt=Me.level,et=Me.tag,Dt=Me.children,Ht=Me.theme,bn=Object(ue.a)(Me,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Cn=et;return w.createElement(Cn,Object.assign({},bn),this.renderChildren(Dt))}}]),at}(w.Component);Et.defaultProps={tag:"div",className:""};var xt=Et;function St(bt){return bt.length?bt.every(function(Be){return!!Be.props.disabled}):!0}function Je(bt,Be,at){var it=bt.getState();bt.setState({activeKey:Object(L.a)(Object(L.a)({},it.activeKey),{},Object(r.a)({},Be,at))})}function Ue(bt){return bt.eventKey||"0-menu-"}function ft(bt,Be){var at=Be,it=bt.children,Me=bt.eventKey;if(at){var Ye;if(fe(it,function(ut,mt){ut&&ut.props&&!ut.props.disabled&&at===G(ut,Me,mt)&&(Ye=!0)}),Ye)return at}return at=null,bt.defaultActiveFirst&&fe(it,function(ut,mt){!at&&ut&&!ut.props.disabled&&(at=G(ut,Me,mt))}),at}function kt(bt){if(bt){var Be=this.instanceArray.indexOf(bt);Be!==-1?this.instanceArray[Be]=bt:this.instanceArray.push(bt)}}var ht=function(bt){Object(y.a)(at,bt);var Be=Object(x.a)(at);function at(it){var Me;return Object(g.a)(this,at),Me=Be.call(this,it),Me.onKeyDown=function(Ye,ut){var mt=Ye.keyCode,Pt;if(Me.getFlatInstanceArray().forEach(function(et){et&&et.props.active&&et.onKeyDown&&(Pt=et.onKeyDown(Ye))}),Pt)return 1;var jt=null;return(mt===u.a.UP||mt===u.a.DOWN)&&(jt=Me.step(mt===u.a.UP?-1:1)),jt?(Ye.preventDefault(),Je(Me.props.store,Ue(Me.props),jt.props.eventKey),typeof ut=="function"&&ut(jt),1):void 0},Me.onItemHover=function(Ye){var ut=Ye.key,mt=Ye.hover;Je(Me.props.store,Ue(Me.props),mt?ut:null)},Me.onDeselect=function(Ye){Me.props.onDeselect(Ye)},Me.onSelect=function(Ye){Me.props.onSelect(Ye)},Me.onClick=function(Ye){Me.props.onClick(Ye)},Me.onOpenChange=function(Ye){Me.props.onOpenChange(Ye)},Me.onDestroy=function(Ye){Me.props.onDestroy(Ye)},Me.getFlatInstanceArray=function(){return Me.instanceArray},Me.step=function(Ye){var ut=Me.getFlatInstanceArray(),mt=Me.props.store.getState().activeKey[Ue(Me.props)],Pt=ut.length;if(!Pt)return null;Ye<0&&(ut=ut.concat().reverse());var jt=-1;if(ut.every(function(bn,Cn){return bn&&bn.props.eventKey===mt?(jt=Cn,!1):!0}),!Me.props.defaultActiveFirst&&jt!==-1&&St(ut.slice(jt,Pt-1)))return;var et=(jt+1)%Pt,Dt=et;do{var Ht=ut[Dt];if(!Ht||Ht.props.disabled)Dt=(Dt+1)%Pt;else return Ht}while(Dt!==et);return null},Me.renderCommonMenuItem=function(Ye,ut,mt){var Pt=Me.props.store.getState(),jt=Object(b.a)(Me),et=jt.props,Dt=G(Ye,et.eventKey,ut),Ht=Ye.props;if(!Ht||typeof Ye.type=="string")return Ye;var bn=Dt===Pt.activeKey,Cn=Object(L.a)(Object(L.a)({mode:Ht.mode||et.mode,level:et.level,inlineIndent:et.inlineIndent,renderMenuItem:Me.renderMenuItem,rootPrefixCls:et.prefixCls,index:ut,parentMenu:et.parentMenu,manualRef:Ht.disabled?void 0:Object(t.a)(Ye.ref,kt.bind(Object(b.a)(Me))),eventKey:Dt,active:!Ht.disabled&&bn,multiple:et.multiple,onClick:function(qn){(Ht.onClick||k)(qn),Me.onClick(qn)},onItemHover:Me.onItemHover,motion:et.motion,subMenuOpenDelay:et.subMenuOpenDelay,subMenuCloseDelay:et.subMenuCloseDelay,forceSubMenuRender:et.forceSubMenuRender,onOpenChange:Me.onOpenChange,onDeselect:Me.onDeselect,onSelect:Me.onSelect,builtinPlacements:et.builtinPlacements,itemIcon:Ht.itemIcon||Me.props.itemIcon,expandIcon:Ht.expandIcon||Me.props.expandIcon},mt),{},{direction:et.direction});return(et.mode==="inline"||be())&&(Cn.triggerSubMenuAction="click"),w.cloneElement(Ye,Cn)},Me.renderMenuItem=function(Ye,ut,mt){if(!Ye)return null;var Pt=Me.props.store.getState(),jt={openKeys:Pt.openKeys,selectedKeys:Pt.selectedKeys,triggerSubMenuAction:Me.props.triggerSubMenuAction,subMenuKey:mt};return Me.renderCommonMenuItem(Ye,ut,jt)},it.store.setState({activeKey:Object(L.a)(Object(L.a)({},it.store.getState().activeKey),{},Object(r.a)({},it.eventKey,ft(it,it.activeKey)))}),Me.instanceArray=[],Me}return Object(A.a)(at,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Me){return this.props.visible||Me.visible||this.props.className!==Me.className||!n()(this.props.style,Me.style)}},{key:"componentDidUpdate",value:function(Me){var Ye=this.props,ut="activeKey"in Ye?Ye.activeKey:Ye.store.getState().activeKey[Ue(Ye)],mt=ft(Ye,ut);if(mt!==ut)Je(Ye.store,Ue(Ye),mt);else if("activeKey"in Me){var Pt=ft(Me,Me.activeKey);mt!==Pt&&Je(Ye.store,Ue(Ye),mt)}}},{key:"render",value:function(){var Me=this,Ye=Object(d.a)({},this.props);this.instanceArray=[];var ut=h()(Ye.prefixCls,Ye.className,"".concat(Ye.prefixCls,"-").concat(Ye.mode)),mt={className:ut,role:Ye.role||"menu"};Ye.id&&(mt.id=Ye.id),Ye.focusable&&(mt.tabIndex=0,mt.onKeyDown=this.onKeyDown);var Pt=Ye.prefixCls,jt=Ye.eventKey,et=Ye.visible,Dt=Ye.level,Ht=Ye.mode,bn=Ye.overflowedIndicator,Cn=Ye.theme;return xe.forEach(function(Yn){return delete Ye[Yn]}),delete Ye.onClick,w.createElement(xt,Object.assign({},Ye,{prefixCls:Pt,mode:Ht,tag:"ul",level:Dt,theme:Cn,visible:et,overflowedIndicator:bn},mt),w.Children.map(Ye.children,function(Yn,qn){return Me.renderMenuItem(Yn,qn,jt||"0-menu-")}))}}]),at}(w.Component);ht.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:k};var _t=Object(f.b)()(ht),Qe=_t,He=o("Kwbf");function Ge(bt,Be,at){var it=bt.prefixCls,Me=bt.motion,Ye=bt.defaultMotions,ut=Ye===void 0?{}:Ye,mt=bt.openAnimation,Pt=bt.openTransitionName,jt=Be.switchingModeFromInline;if(Me)return Me;if(Object(l.a)(mt)==="object"&&mt)Object(He.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof mt=="string")return{motionName:"".concat(it,"-open-").concat(mt)};if(Pt)return{motionName:Pt};var et=ut[at];return et||(jt?null:ut.other)}var Ee=function(bt){Object(y.a)(at,bt);var Be=Object(x.a)(at);function at(it){var Me;Object(g.a)(this,at),Me=Be.call(this,it),Me.inlineOpenKeys=[],Me.onSelect=function(mt){var Pt=Object(b.a)(Me),jt=Pt.props;if(jt.selectable){var et=Me.store.getState(),Dt=et.selectedKeys,Ht=mt.key;jt.multiple?Dt=Dt.concat([Ht]):Dt=[Ht],"selectedKeys"in jt||Me.store.setState({selectedKeys:Dt}),jt.onSelect(Object(L.a)(Object(L.a)({},mt),{},{selectedKeys:Dt}))}},Me.onClick=function(mt){var Pt=Me.getRealMenuMode(),jt=Object(b.a)(Me),et=jt.store,Dt=jt.props.onOpenChange;Pt!=="inline"&&!("openKeys"in Me.props)&&(et.setState({openKeys:[]}),Dt([])),Me.props.onClick(mt)},Me.onKeyDown=function(mt,Pt){Me.innerMenu.getWrappedInstance().onKeyDown(mt,Pt)},Me.onOpenChange=function(mt){var Pt=Object(b.a)(Me),jt=Pt.props,et=Me.store.getState().openKeys.concat(),Dt=!1,Ht=function(Cn){var Yn=!1;if(Cn.open)Yn=et.indexOf(Cn.key)===-1,Yn&&et.push(Cn.key);else{var qn=et.indexOf(Cn.key);Yn=qn!==-1,Yn&&et.splice(qn,1)}Dt=Dt||Yn};Array.isArray(mt)?mt.forEach(Ht):Ht(mt),Dt&&("openKeys"in Me.props||Me.store.setState({openKeys:et}),jt.onOpenChange(et))},Me.onDeselect=function(mt){var Pt=Object(b.a)(Me),jt=Pt.props;if(jt.selectable){var et=Me.store.getState().selectedKeys.concat(),Dt=mt.key,Ht=et.indexOf(Dt);Ht!==-1&&et.splice(Ht,1),"selectedKeys"in jt||Me.store.setState({selectedKeys:et}),jt.onDeselect(Object(L.a)(Object(L.a)({},mt),{},{selectedKeys:et}))}},Me.onMouseEnter=function(mt){Me.restoreModeVerticalFromInline();var Pt=Me.props.onMouseEnter;Pt&&Pt(mt)},Me.onTransitionEnd=function(mt){var Pt=mt.propertyName==="width"&&mt.target===mt.currentTarget,jt=mt.target.className,et=Object.prototype.toString.call(jt)==="[object SVGAnimatedString]"?jt.animVal:jt,Dt=mt.propertyName==="font-size"&&et.indexOf("anticon")>=0;(Pt||Dt)&&Me.restoreModeVerticalFromInline()},Me.setInnerMenu=function(mt){Me.innerMenu=mt},Me.isRootMenu=!0;var Ye=it.defaultSelectedKeys,ut=it.defaultOpenKeys;return"selectedKeys"in it&&(Ye=it.selectedKeys||[]),"openKeys"in it&&(ut=it.openKeys||[]),Me.store=Object(f.c)({selectedKeys:Ye,openKeys:ut,activeKey:{"0-menu-":ft(it,it.activeKey)}}),Me.state={switchingModeFromInline:!1},Me}return Object(A.a)(at,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Me){this.updateOpentKeysWhenSwitchMode(Me),this.updateMiniStore();var Ye=this.props,ut=Ye.siderCollapsed,mt=Ye.inlineCollapsed,Pt=Ye.onOpenChange;(!Me.inlineCollapsed&&mt||!Me.siderCollapsed&&ut)&&Pt([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(Me){var Ye=this.props,ut=this.store,mt=this.inlineOpenKeys,Pt=ut.getState(),jt={};Me.mode==="inline"&&Ye.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in Ye||((Ye.inlineCollapsed&&!Me.inlineCollapsed||Ye.siderCollapsed&&!Me.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=Pt.openKeys.concat(),jt.openKeys=[]),(!Ye.inlineCollapsed&&Me.inlineCollapsed||!Ye.siderCollapsed&&Me.siderCollapsed)&&(jt.openKeys=mt,this.inlineOpenKeys=[])),Object.keys(jt).length&&ut.setState(jt)}},{key:"updateMenuDisplay",value:function(){var Me=this.props.collapsedWidth,Ye=this.store,ut=this.prevOpenKeys,mt=this.getInlineCollapsed()&&(Me===0||Me==="0"||Me==="0px");mt?(this.prevOpenKeys=Ye.getState().openKeys.concat(),this.store.setState({openKeys:[]})):ut&&(this.store.setState({openKeys:ut}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Me=this.props.mode,Ye=this.state.switchingModeFromInline,ut=this.getInlineCollapsed();return Ye&&ut?"inline":ut?"vertical":Me}},{key:"getInlineCollapsed",value:function(){var Me=this.props,Ye=Me.inlineCollapsed,ut=Me.siderCollapsed;return ut!==void 0?ut:Ye}},{key:"restoreModeVerticalFromInline",value:function(){var Me=this.state.switchingModeFromInline;Me&&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 Me=Object(L.a)({},Object(_.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Ye=this.getRealMenuMode();return Me.className+=" ".concat(Me.prefixCls,"-root"),Me.direction==="rtl"&&(Me.className+=" ".concat(Me.prefixCls,"-rtl")),Me=Object(L.a)(Object(L.a)({},Me),{},{mode:Ye,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Ge(this.props,this.state,Ye)}),delete Me.openAnimation,delete Me.openTransitionName,w.createElement(f.a,{store:this.store},w.createElement(Qe,Object.assign({},Me,{ref:this.setInnerMenu}),this.props.children))}}]),at}(w.Component);Ee.defaultProps={selectable:!0,onClick:k,onSelect:k,onOpenChange:k,onDeselect:k,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:w.createElement("span",null,"\xB7\xB7\xB7")};var Ae=Ee,Fe=function(bt){Object(y.a)(at,bt);var Be=Object(x.a)(at);function at(){var it;return Object(g.a)(this,at),it=Be.apply(this,arguments),it.onKeyDown=function(Me){var Ye=Me.keyCode;return Ye===u.a.ENTER?(it.onClick(Me),!0):void 0},it.onMouseLeave=function(Me){var Ye=it.props,ut=Ye.eventKey,mt=Ye.onItemHover,Pt=Ye.onMouseLeave;mt({key:ut,hover:!1}),Pt({key:ut,domEvent:Me})},it.onMouseEnter=function(Me){var Ye=it.props,ut=Ye.eventKey,mt=Ye.onItemHover,Pt=Ye.onMouseEnter;mt({key:ut,hover:!0}),Pt({key:ut,domEvent:Me})},it.onClick=function(Me){var Ye=it.props,ut=Ye.eventKey,mt=Ye.multiple,Pt=Ye.onClick,jt=Ye.onSelect,et=Ye.onDeselect,Dt=Ye.isSelected,Ht={key:ut,keyPath:[ut],item:Object(b.a)(it),domEvent:Me};Pt(Ht),mt?Dt?et(Ht):jt(Ht):Dt||jt(Ht)},it.saveNode=function(Me){it.node=Me},it}return Object(A.a)(at,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Me=this.props;Me.onDestroy&&Me.onDestroy(Me.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 Me,Ye=Object(L.a)({},this.props),ut=h()(this.getPrefixCls(),Ye.className,(Me={},Object(r.a)(Me,this.getActiveClassName(),!Ye.disabled&&Ye.active),Object(r.a)(Me,this.getSelectedClassName(),Ye.isSelected),Object(r.a)(Me,this.getDisabledClassName(),Ye.disabled),Me)),mt=Object(L.a)(Object(L.a)({},Ye.attribute),{},{title:typeof Ye.title=="string"?Ye.title:void 0,className:ut,role:Ye.role||"menuitem","aria-disabled":Ye.disabled});Ye.role==="option"?mt=Object(L.a)(Object(L.a)({},mt),{},{role:"option","aria-selected":Ye.isSelected}):(Ye.role===null||Ye.role==="none")&&(mt.role="none");var Pt={onClick:Ye.disabled?null:this.onClick,onMouseLeave:Ye.disabled?null:this.onMouseLeave,onMouseEnter:Ye.disabled?null:this.onMouseEnter},jt=Object(L.a)({},Ye.style);Ye.mode==="inline"&&(Ye.direction==="rtl"?jt.paddingRight=Ye.inlineIndent*Ye.level:jt.paddingLeft=Ye.inlineIndent*Ye.level),xe.forEach(function(Dt){return delete Ye[Dt]}),delete Ye.direction;var et=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(et=w.createElement(this.props.itemIcon,this.props)),w.createElement("li",Object.assign({},Object(_.default)(Ye,["onClick","onMouseEnter","onMouseLeave","onSelect"]),mt,Pt,{style:jt,ref:this.saveNode}),Ye.children,et)}}]),at}(w.Component);Fe.isMenuItem=!0,Fe.defaultProps={onSelect:k,onMouseEnter:k,onMouseLeave:k,manualRef:k};var We=Object(f.b)(function(bt,Be){var at=bt.activeKey,it=bt.selectedKeys,Me=Be.eventKey,Ye=Be.subMenuKey;return{active:at[Ye]===Me,isSelected:it.indexOf(Me)!==-1}})(Fe),Ke=We,st=function(bt){Object(y.a)(at,bt);var Be=Object(x.a)(at);function at(){var it;return Object(g.a)(this,at),it=Be.apply(this,arguments),it.renderInnerMenuItem=function(Me){var Ye=it.props,ut=Ye.renderMenuItem,mt=Ye.index;return ut(Me,mt,it.props.subMenuKey)},it}return Object(A.a)(at,[{key:"render",value:function(){var Me=Object(d.a)({},this.props),Ye=Me.className,ut=Ye===void 0?"":Ye,mt=Me.rootPrefixCls,Pt="".concat(mt,"-item-group-title"),jt="".concat(mt,"-item-group-list"),et=Me.title,Dt=Me.children;return xe.forEach(function(Ht){return delete Me[Ht]}),delete Me.onClick,delete Me.direction,w.createElement("li",Object.assign({},Me,{className:"".concat(ut," ").concat(mt,"-item-group")}),w.createElement("div",{className:Pt,title:typeof et=="string"?et:void 0},et),w.createElement("ul",{className:jt},w.Children.map(Dt,this.renderInnerMenuItem)))}}]),at}(w.Component);st.isMenuItemGroup=!0,st.defaultProps={disabled:!0};var Ot=st,Bt=function(Be){var at=Be.className,it=Be.rootPrefixCls,Me=Be.style;return w.createElement("li",{className:"".concat(at," ").concat(it,"-item-divider"),style:Me})};Bt.defaultProps={disabled:!0,className:"",style:{}};var an=Bt,Kt=Y.e=Ae},"1nVM":function(M,Y,o){M.exports={titlesize:"titlesize___3R6Gt",wrap:"wrap___33HQq",labelWrap:"labelWrap___1iqwF",label:"label___27cm-",labelContent:"labelContent___1fVMu",flexRow:"flexRow___PEsIJ",color999:"color999___2Yr8Q",radio:"radio___OcreT",color0152d9:"color0152d9___1FV6h",popover:"popover___2xk-c",serviceSettingName:"serviceSettingName___Ld9Mm",flexJustifyCenter:"flexJustifyCenter___18x9a",flexAlignEnd:"flexAlignEnd___1C-X3",flexAlignCenter:"flexAlignCenter___2oSmu",flexColumn:"flexColumn___2ysFR",formWrap:"formWrap___EPA-v",titleWrap:"titleWrap___3_rFr",fieldWrap:"fieldWrap___2jAZP",button:"button___3XvNW",buttonFixed:"buttonFixed___2Zm2R",buttonWrap:"buttonWrap___1OYLR",width180:"width180___jK9Il",width100:"width100___3krQH",width280:"width280___2XLRF",difficultyHint:"difficultyHint___haMiD",color888:"color888___N5haY",serviceSettingWrap:"serviceSettingWrap___2mA8Y",serviceSetLeft:"serviceSetLeft___15ZiZ",serviceSetInput:"serviceSetInput___1xV8R",serviceSetMemoryInput:"serviceSetMemoryInput___1b9Wn",serviceSetTip:"serviceSetTip___3OSZX",installPackage:"installPackage___2Q149",selectSchool:"selectSchool___3jjwJ",dataPicker:"dataPicker___3FMTF",bg:"bg___SWlll",content:"content___3UkVO",head:"head___35V3S",headCount:"headCount___2pjjr",itemWrap:"itemWrap___1yg5K",imgWrap:"imgWrap___R0ss7",img:"img___VI1B8",manager:"manager___8Zuo9",itemContent:"itemContent___2pnzz",nameWrap:"nameWrap___3Ntoy",name:"name___3v0W9",actionGroup:"actionGroup___nzwV5",deleteIcon:"deleteIcon___tZStC",schoolWrap:"schoolWrap___qVkuP",school:"school___2WDSB",countWrap:"countWrap___1ZPyo",deletetitle:"deletetitle___3PnVP",yseTitle:"yseTitle___2rGJC",modal:"modal___TzuWu",colorOrange:"colorOrange___WAQOi",colorYellow:"colorYellow___giatj",graaytitle:"graaytitle___1xud8",graaymingl:"graaymingl___KdIA9",graayminglthree:"graayminglthree___1To0y",graaymingltow:"graaymingltow___2ZE_h"}},"1uat":function(M,Y,o){(function(L,g,A){M.exports=Y=g(o("Ib8C"),o("MlIO"))})(this,function(L){return function(){var g=L,A=g.lib,b=A.Hasher,y=g.x64,x=y.Word,w=y.WordArray,f=g.algo;function _(){return x.create.apply(x,arguments)}var d=[_(1116352408,3609767458),_(1899447441,602891725),_(3049323471,3964484399),_(3921009573,2173295548),_(961987163,4081628472),_(1508970993,3053834265),_(2453635748,2937671579),_(2870763221,3664609560),_(3624381080,2734883394),_(310598401,1164996542),_(607225278,1323610764),_(1426881987,3590304994),_(1925078388,4068182383),_(2162078206,991336113),_(2614888103,633803317),_(3248222580,3479774868),_(3835390401,2666613458),_(4022224774,944711139),_(264347078,2341262773),_(604807628,2007800933),_(770255983,1495990901),_(1249150122,1856431235),_(1555081692,3175218132),_(1996064986,2198950837),_(2554220882,3999719339),_(2821834349,766784016),_(2952996808,2566594879),_(3210313671,3203337956),_(3336571891,1034457026),_(3584528711,2466948901),_(113926993,3758326383),_(338241895,168717936),_(666307205,1188179964),_(773529912,1546045734),_(1294757372,1522805485),_(1396182291,2643833823),_(1695183700,2343527390),_(1986661051,1014477480),_(2177026350,1206759142),_(2456956037,344077627),_(2730485921,1290863460),_(2820302411,3158454273),_(3259730800,3505952657),_(3345764771,106217008),_(3516065817,3606008344),_(3600352804,1432725776),_(4094571909,1467031594),_(275423344,851169720),_(430227734,3100823752),_(506948616,1363258195),_(659060556,3750685593),_(883997877,3785050280),_(958139571,3318307427),_(1322822218,3812723403),_(1537002063,2003034995),_(1747873779,3602036899),_(1955562222,1575990012),_(2024104815,1125592928),_(2227730452,2716904306),_(2361852424,442776044),_(2428436474,593698344),_(2756734187,3733110249),_(3204031479,2999351573),_(3329325298,3815920427),_(3391569614,3928383900),_(3515267271,566280711),_(3940187606,3454069534),_(4118630271,4000239992),_(116418474,1914138554),_(174292421,2731055270),_(289380356,3203993006),_(460393269,320620315),_(685471733,587496836),_(852142971,1086792851),_(1017036298,365543100),_(1126000580,2618297676),_(1288033470,3409855158),_(1501505948,4234509866),_(1607167915,987167468),_(1816402316,1246189591)],r=[];(function(){for(var t=0;t<80;t++)r[t]=_()})();var u=f.SHA512=b.extend({_doReset:function(){this._hash=new w.init([new x.init(1779033703,4089235720),new x.init(3144134277,2227873595),new x.init(1013904242,4271175723),new x.init(2773480762,1595750129),new x.init(1359893119,2917565137),new x.init(2600822924,725511199),new x.init(528734635,4215389547),new x.init(1541459225,327033209)])},_doProcessBlock:function(t,a){for(var n=this._hash.words,i=n[0],h=n[1],l=n[2],s=n[3],p=n[4],O=n[5],S=n[6],v=n[7],P=i.high,R=i.low,E=h.high,C=h.low,m=l.high,T=l.low,I=s.high,D=s.low,N=p.high,z=p.low,F=O.high,W=O.low,K=S.high,B=S.low,k=v.high,G=v.low,ne=P,fe=R,de=E,xe=C,Oe=m,ce=T,be=I,ve=D,ue=N,se=z,q=F,me=W,re=K,ie=B,we=k,le=G,$=0;$<80;$++){var J,te,De=r[$];if($<16)te=De.high=t[a+$*2]|0,J=De.low=t[a+$*2+1]|0;else{var Te=r[$-15],ke=Te.high,tt=Te.low,ot=(ke>>>1|tt<<31)^(ke>>>8|tt<<24)^ke>>>7,gt=(tt>>>1|ke<<31)^(tt>>>8|ke<<24)^(tt>>>7|ke<<25),Et=r[$-2],xt=Et.high,St=Et.low,Je=(xt>>>19|St<<13)^(xt<<3|St>>>29)^xt>>>6,Ue=(St>>>19|xt<<13)^(St<<3|xt>>>29)^(St>>>6|xt<<26),ft=r[$-7],kt=ft.high,ht=ft.low,_t=r[$-16],Qe=_t.high,He=_t.low;J=gt+ht,te=ot+kt+(J>>>0<gt>>>0?1:0),J=J+Ue,te=te+Je+(J>>>0<Ue>>>0?1:0),J=J+He,te=te+Qe+(J>>>0<He>>>0?1:0),De.high=te,De.low=J}var Ge=ue&q^~ue&re,Ee=se&me^~se&ie,Ae=ne&de^ne&Oe^de&Oe,Fe=fe&xe^fe&ce^xe&ce,We=(ne>>>28|fe<<4)^(ne<<30|fe>>>2)^(ne<<25|fe>>>7),Ke=(fe>>>28|ne<<4)^(fe<<30|ne>>>2)^(fe<<25|ne>>>7),st=(ue>>>14|se<<18)^(ue>>>18|se<<14)^(ue<<23|se>>>9),Ot=(se>>>14|ue<<18)^(se>>>18|ue<<14)^(se<<23|ue>>>9),Bt=d[$],an=Bt.high,Kt=Bt.low,bt=le+Ot,Be=we+st+(bt>>>0<le>>>0?1:0),bt=bt+Ee,Be=Be+Ge+(bt>>>0<Ee>>>0?1:0),bt=bt+Kt,Be=Be+an+(bt>>>0<Kt>>>0?1:0),bt=bt+J,Be=Be+te+(bt>>>0<J>>>0?1:0),at=Ke+Fe,it=We+Ae+(at>>>0<Ke>>>0?1:0);we=re,le=ie,re=q,ie=me,q=ue,me=se,se=ve+bt|0,ue=be+Be+(se>>>0<ve>>>0?1:0)|0,be=Oe,ve=ce,Oe=de,ce=xe,de=ne,xe=fe,fe=bt+at|0,ne=Be+it+(fe>>>0<bt>>>0?1:0)|0}R=i.low=R+fe,i.high=P+ne+(R>>>0<fe>>>0?1:0),C=h.low=C+xe,h.high=E+de+(C>>>0<xe>>>0?1:0),T=l.low=T+ce,l.high=m+Oe+(T>>>0<ce>>>0?1:0),D=s.low=D+ve,s.high=I+be+(D>>>0<ve>>>0?1:0),z=p.low=z+se,p.high=N+ue+(z>>>0<se>>>0?1:0),W=O.low=W+me,O.high=F+q+(W>>>0<me>>>0?1:0),B=S.low=B+ie,S.high=K+re+(B>>>0<ie>>>0?1:0),G=v.low=G+le,v.high=k+we+(G>>>0<le>>>0?1:0)},_doFinalize:function(){var t=this._data,a=t.words,n=this._nDataBytes*8,i=t.sigBytes*8;a[i>>>5]|=128<<24-i%32,a[(i+128>>>10<<5)+30]=Math.floor(n/4294967296),a[(i+128>>>10<<5)+31]=n,t.sigBytes=a.length*4,this._process();var h=this._hash.toX32();return h},clone:function(){var t=b.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:1024/32});g.SHA512=b._createHelper(u),g.HmacSHA512=b._createHmacHelper(u)}(),L.SHA512})},"3d99":function(M,Y,o){M.exports={flex_box_center:"flex_box_center___29402",flex_space_between:"flex_space_between___1DQkL",flex_box_vertical_center:"flex_box_vertical_center___2c5rw",flex_box_center_end:"flex_box_center_end___31UwQ",flex_box_column:"flex_box_column___27HfP",dataset:"dataset___1COtX",header:"header___3oVtK",title:"title___pTdL6",dataPath:"dataPath___2IjLi",pathTitle:"pathTitle___3y3r0",btns:"btns___3HrP1",content:"content___2DtrV",customTable:"customTable____cu3-",row:"row___18XmF",empty:"empty___1WFDJ",path:"path___2fzVn",text:"text___5NWvD",actionsBtns:"actionsBtns___YB-ud",customModal:"customModal___S24dW",shareModal:"shareModal___1fTc3",fileName:"fileName___3b0gK",renameModal:"renameModal___3antI",errorDes:"errorDes___3PXc9",uploadFileModal:"uploadFileModal___3cGWq"}},"3wET":function(M,Y){M.exports="data:image/png;base64,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"},"3y9D":function(M,Y,o){(function(L,g){M.exports=Y=g(o("Ib8C"))})(this,function(L){return function(){var g=L,A=g.lib,b=A.WordArray,y=A.Hasher,x=g.algo,w=[],f=x.SHA1=y.extend({_doReset:function(){this._hash=new b.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(_,d){for(var r=this._hash.words,u=r[0],t=r[1],a=r[2],n=r[3],i=r[4],h=0;h<80;h++){if(h<16)w[h]=_[d+h]|0;else{var l=w[h-3]^w[h-8]^w[h-14]^w[h-16];w[h]=l<<1|l>>>31}var s=(u<<5|u>>>27)+i+w[h];h<20?s+=(t&a|~t&n)+1518500249:h<40?s+=(t^a^n)+1859775393:h<60?s+=(t&a|t&n|a&n)-1894007588:s+=(t^a^n)-899497514,i=n,n=a,a=t<<30|t>>>2,t=u,u=s}r[0]=r[0]+u|0,r[1]=r[1]+t|0,r[2]=r[2]+a|0,r[3]=r[3]+n|0,r[4]=r[4]+i|0},_doFinalize:function(){var _=this._data,d=_.words,r=this._nDataBytes*8,u=_.sigBytes*8;return d[u>>>5]|=128<<24-u%32,d[(u+64>>>9<<4)+14]=Math.floor(r/4294967296),d[(u+64>>>9<<4)+15]=r,_.sigBytes=d.length*4,this._process(),this._hash},clone:function(){var _=y.clone.call(this);return _._hash=this._hash.clone(),_}});g.SHA1=y._createHelper(f),g.HmacSHA1=y._createHmacHelper(f)}(),L.SHA1})},4:function(M,Y){},"498V":function(M,Y,o){M.exports=o.p+"static/logo.22b9a281.svg"},"4SAo":function(M,Y,o){M.exports={footerWrap:"footerWrap___2ePEu"}},"4qgm":function(M,Y){M.exports="data:image/png;base64,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"},"4u4S":function(M,Y){M.exports="data:image/png;base64,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"},"55Ip":function(M,Y,o){"use strict";o.d(Y,"a",function(){return s});var L=o("Ty5D"),g=o("dI71"),A=o("q1tI"),b=o.n(A),y=o("YS25"),x=o("17x9"),w=o.n(x),f=o("wx14"),_=o("zLVn"),d=o("9R94"),r=function(C){Object(g.a)(m,C);function m(){for(var I,D=arguments.length,N=new Array(D),z=0;z<D;z++)N[z]=arguments[z];return I=C.call.apply(C,[this].concat(N))||this,I.history=Object(y.a)(I.props),I}var T=m.prototype;return T.render=function(){return b.a.createElement(L.c,{history:this.history,children:this.props.children})},m}(b.a.Component),u=function(C){Object(g.a)(m,C);function m(){for(var I,D=arguments.length,N=new Array(D),z=0;z<D;z++)N[z]=arguments[z];return I=C.call.apply(C,[this].concat(N))||this,I.history=Object(y.b)(I.props),I}var T=m.prototype;return T.render=function(){return b.a.createElement(L.c,{history:this.history,children:this.props.children})},m}(b.a.Component),t=function(m,T){return typeof m=="function"?m(T):m},a=function(m,T){return typeof m=="string"?Object(y.c)(m,null,null,T):m},n=function(m){return m},i=b.a.forwardRef;typeof i=="undefined"&&(i=n);function h(C){return!!(C.metaKey||C.altKey||C.ctrlKey||C.shiftKey)}var l=i(function(C,m){var T=C.innerRef,I=C.navigate,D=C.onClick,N=Object(_.a)(C,["innerRef","navigate","onClick"]),z=N.target,F=Object(f.a)({},N,{onClick:function(K){try{D&&D(K)}catch(B){throw K.preventDefault(),B}!K.defaultPrevented&&K.button===0&&(!z||z==="_self")&&!h(K)&&(K.preventDefault(),I())}});return n!==i?F.ref=m||T:F.ref=T,b.a.createElement("a",F)}),s=i(function(C,m){var T=C.component,I=T===void 0?l:T,D=C.replace,N=C.to,z=C.innerRef,F=Object(_.a)(C,["component","replace","to","innerRef"]);return b.a.createElement(L.e.Consumer,null,function(W){W||Object(d.a)(!1);var K=W.history,B=a(t(N,W.location),W.location),k=B?K.createHref(B):"",G=Object(f.a)({},F,{href:k,navigate:function(){var fe=t(N,W.location),de=D?K.replace:K.push;de(fe)}});return n!==i?G.ref=m||z:G.innerRef=z,b.a.createElement(I,G)})});if(!1)var p,O;var S=function(m){return m},v=b.a.forwardRef;typeof v=="undefined"&&(v=S);function P(){for(var C=arguments.length,m=new Array(C),T=0;T<C;T++)m[T]=arguments[T];return m.filter(function(I){return I}).join(" ")}var R=v(function(C,m){var T=C["aria-current"],I=T===void 0?"page":T,D=C.activeClassName,N=D===void 0?"active":D,z=C.activeStyle,F=C.className,W=C.exact,K=C.isActive,B=C.location,k=C.sensitive,G=C.strict,ne=C.style,fe=C.to,de=C.innerRef,xe=Object(_.a)(C,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return b.a.createElement(L.e.Consumer,null,function(Oe){Oe||Object(d.a)(!1);var ce=B||Oe.location,be=a(t(fe,ce),ce),ve=be.pathname,ue=ve&&ve.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),se=ue?Object(L.f)(ce.pathname,{path:ue,exact:W,sensitive:k,strict:G}):null,q=!!(K?K(se,ce):se),me=q?P(F,N):F,re=q?Object(f.a)({},ne,{},z):ne,ie=Object(f.a)({"aria-current":q&&I||null,className:me,style:re,to:be},xe);return S!==v?ie.ref=m||de:ie.innerRef=de,b.a.createElement(s,ie)})});if(!1)var E},"5D2P":function(M,Y){M.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAFTklEQVRoQ91aS4xURRQ993UzUUZcqFEc4meh0cQFSlwgrvAHSgQWhOhCk4GZqmdw+ERUWDkrBMUBnIzzqqYjcTaaGBLFxA8MjIk/3PhZCCa6UAyKC11ARnDo6Wvu+HrS0/R7r96nWVBJpxfv3nPPrbp169aHUEAzxsxl5gcB3AdgAREtkH8AXSH87wBOMfMp+QfwFREd0Vr/k9c8ZQUwxixi5mWe5y1l5qUAyimxqkQ0XqvVxonoE631Nyn1p8VTO7B///75Fy5c2MzMWwB0ZDHaQmeSiPbMmTNnb3d39+k0mKkcMMZsBiC/W9IYSSH7K4C9Wuu9rjpODoyMjNxQq9VGADzuCpxT7gPP83p7e3v/TMJJdCAIgoVEdBDAzUlgBX8/ycwrfd//Pg431gFr7RPM/HbBxFLBEdGTSql3opQiHQiCoI+IXk9lrU3CzLzR9/3BVvAtHbDWPsrMH7aJTyZYInpMKfVRs/JFDlQqlduq1eoxIro2k6U2KTHzX+VyeXFPT8/PjSYucsBae4iZH24Tj1ywRHRYKfVIpANhnt+Ty0r7lbc0rhMzI2CMuRHAlwBubT+HXBZ+AbBEa/3HrFLCWruTmV/MBZ1N+TiAdyNUX2qZeYh2KaW2zThQqVTumZqaOlZgbePqynEiWquU+qFZwRjzBoBnIoAmS6WSTOhvp0PIGPMcgN2uVguSiyQfBIFPRMMJdrZqrV+bdsBa+x4zryqImAtMJHlr7RJmPgxgbhwQEb2vlFpNAwMDV3Z2dp7JUM+7EG0lE0l+dHS089y5c4dkkjqAVycmJq4ma+0yZv7YQaEIkUjyAh4EwTAR+a6GiGg5BUGwg4i2uyrlkEsi7xL3s8wz88syAm8x89M5iLmoxpIP4348bRYkolEyxowBkA25S1sLQJbyHhfhUCaWvMT9+fPnx5h5cQrMuugRceAEgDsdlKfTVph2rwMgC4mk37gWSz5L3DcZ+1EckAw0L44FM4/4vq+aZfr7+zu6urq2MbPMoSuavieSt9b6zJyU7+OonXVygIjWKKUOxCGFhaA4cj0AF/KS7z8D4DmMfpTIGdcQOgtgldZaJlpss9auA/B1q/Kgrhjm+08B3JuEF/ediE44T2IikiOP1Uqp7/IYDePeElFvXhwAY2nTqJCXkTiZ1XgBcT9jmplHxYEd4SR04kRER0ul0ur169dLWKVqYb7/IpVSjHB9IctSShzQWq9JQySMeyG/MI1ewhxYnqeYq2itnePYGPMmgO6iyAP4v5gTwBzl9Cta68RdnDHmWQAtz3WyOjRTTodZYSsRvZoRbLvWemeU7vDw8P2e532eETtSjZmf931/d31HtkguHdIWUw3oWmttm60NDQ1dVS6XZat6V8EOTMplitwpNJ5K7ALwQg5Da7XWszbnxphRAE/lwIxSnQnd5mMVGYWsZ///MvMK3/ePiFVjjFyADLSBvCyo0vuzj1VCo3J5kflgi5lPE9EKIprHzFIqtKO1PtiqWzLGyIb6oRyW5ZynBOCOHBhRqmNa61nHnhedjQZBcDsRycS7pg0E8kD+LZse3/d/agS5/I7XG0JpI4B9ebqsQN1NWuuWly2X7xVTvfestXfXarWDRHRTgT2aCMXMv3metzJp/5F4SymWhoaG5pfLZVlpL9k1a7VaVRs2bEi89HZyIOwu2b1tukQX3TL3OHGYsjw1GBwc7Oro6Kg7UthTA7mhn5yc3NfX1ycPQ5xbmhGYBSqPPYhINkMPAJDHHrJ4pWlTAOShx1FmvnSPPVoxbHxu43neAmauP7eRf2nTz2yI6FStViv0uc1/ndZCH8rgOooAAAAASUVORK5CYII="},"5VLF":function(M,Y,o){"use strict";var L,g;function A(b,y,x){var w=function(f,_){return b.js_beautify(f,_)};return w.js=b.js_beautify,w.css=y.css_beautify,w.html=x.html_beautify,w.js_beautify=b.js_beautify,w.css_beautify=y.css_beautify,w.html_beautify=x.html_beautify,w}!(L=[o("6UM0"),o("TXwP"),o("psGv")],g=function(b,y,x){return A(b,y,x)}.apply(Y,L),g!==void 0&&(M.exports=g))},"5hvy":function(M,Y,o){(function(L,g,A){M.exports=Y=g(o("Ib8C"),o("MlIO"))})(this,function(L){return function(g){var A=L,b=A.lib,y=b.WordArray,x=b.Hasher,w=A.x64,f=w.Word,_=A.algo,d=[],r=[],u=[];(function(){for(var n=1,i=0,h=0;h<24;h++){d[n+5*i]=(h+1)*(h+2)/2%64;var l=i%5,s=(2*n+3*i)%5;n=l,i=s}for(var n=0;n<5;n++)for(var i=0;i<5;i++)r[n+5*i]=i+(2*n+3*i)%5*5;for(var p=1,O=0;O<24;O++){for(var S=0,v=0,P=0;P<7;P++){if(p&1){var R=(1<<P)-1;R<32?v^=1<<R:S^=1<<R-32}p&128?p=p<<1^113:p<<=1}u[O]=f.create(S,v)}})();var t=[];(function(){for(var n=0;n<25;n++)t[n]=f.create()})();var a=_.SHA3=x.extend({cfg:x.cfg.extend({outputLength:512}),_doReset:function(){for(var n=this._state=[],i=0;i<25;i++)n[i]=new f.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(n,i){for(var h=this._state,l=this.blockSize/2,s=0;s<l;s++){var p=n[i+2*s],O=n[i+2*s+1];p=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,O=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360;var S=h[s];S.high^=O,S.low^=p}for(var v=0;v<24;v++){for(var P=0;P<5;P++){for(var R=0,E=0,C=0;C<5;C++){var S=h[P+5*C];R^=S.high,E^=S.low}var m=t[P];m.high=R,m.low=E}for(var P=0;P<5;P++)for(var T=t[(P+4)%5],I=t[(P+1)%5],D=I.high,N=I.low,R=T.high^(D<<1|N>>>31),E=T.low^(N<<1|D>>>31),C=0;C<5;C++){var S=h[P+5*C];S.high^=R,S.low^=E}for(var z=1;z<25;z++){var R,E,S=h[z],F=S.high,W=S.low,K=d[z];K<32?(R=F<<K|W>>>32-K,E=W<<K|F>>>32-K):(R=W<<K-32|F>>>64-K,E=F<<K-32|W>>>64-K);var B=t[r[z]];B.high=R,B.low=E}var k=t[0],G=h[0];k.high=G.high,k.low=G.low;for(var P=0;P<5;P++)for(var C=0;C<5;C++){var z=P+5*C,S=h[z],ne=t[z],fe=t[(P+1)%5+5*C],de=t[(P+2)%5+5*C];S.high=ne.high^~fe.high&de.high,S.low=ne.low^~fe.low&de.low}var S=h[0],xe=u[v];S.high^=xe.high,S.low^=xe.low}},_doFinalize:function(){var n=this._data,i=n.words,h=this._nDataBytes*8,l=n.sigBytes*8,s=this.blockSize*32;i[l>>>5]|=1<<24-l%32,i[(g.ceil((l+1)/s)*s>>>5)-1]|=128,n.sigBytes=i.length*4,this._process();for(var p=this._state,O=this.cfg.outputLength/8,S=O/8,v=[],P=0;P<S;P++){var R=p[P],E=R.high,C=R.low;E=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,v.push(C),v.push(E)}return new y.init(v,O)},clone:function(){for(var n=x.clone.call(this),i=n._state=this._state.slice(0),h=0;h<25;h++)i[h]=i[h].clone();return n}});A.SHA3=x._createHelper(a),A.HmacSHA3=x._createHmacHelper(a)}(Math),L.SHA3})},"6+eU":function(M,Y,o){"use strict";o.d(Y,"a",function(){return v});var L=o("wx14"),g=o("rePB"),A=o("VTBJ"),b=o("1OyB"),y=o("vuIU"),x=o("Ji7U"),w=o("LK+K"),f=o("q1tI"),_=o.n(f),d=o("TSYQ"),r=o.n(d),u=function(R){var E,C="".concat(R.rootPrefixCls,"-item"),m=r()(C,"".concat(C,"-").concat(R.page),(E={},Object(g.a)(E,"".concat(C,"-active"),R.active),Object(g.a)(E,R.className,!!R.className),Object(g.a)(E,"".concat(C,"-disabled"),!R.page),E)),T=function(){R.onClick(R.page)},I=function(N){R.onKeyPress(N,R.onClick,R.page)};return _.a.createElement("li",{title:R.showTitle?R.page:null,className:m,onClick:T,onKeyPress:I,tabIndex:"0"},R.itemRender(R.page,"page",_.a.createElement("a",{rel:"nofollow"},R.page)))},t=u,a={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},n=function(P){Object(x.a)(E,P);var R=Object(w.a)(E);function E(){var C;Object(b.a)(this,E);for(var m=arguments.length,T=new Array(m),I=0;I<m;I++)T[I]=arguments[I];return C=R.call.apply(R,[this].concat(T)),C.state={goInputText:""},C.buildOptionText=function(D){return"".concat(D," ").concat(C.props.locale.items_per_page)},C.changeSize=function(D){C.props.changeSize(Number(D))},C.handleChange=function(D){C.setState({goInputText:D.target.value})},C.handleBlur=function(D){var N=C.props,z=N.goButton,F=N.quickGo,W=N.rootPrefixCls,K=C.state.goInputText;if(z||K==="")return;if(D.relatedTarget&&(D.relatedTarget.className.indexOf("".concat(W,"-prev"))>=0||D.relatedTarget.className.indexOf("".concat(W,"-next"))>=0))return;C.setState({goInputText:""}),F(C.getValidValue())},C.go=function(D){var N=C.state.goInputText;if(N==="")return;(D.keyCode===a.ENTER||D.type==="click")&&(C.setState({goInputText:""}),C.props.quickGo(C.getValidValue()))},C}return Object(y.a)(E,[{key:"getValidValue",value:function(){var m=this.state,T=m.goInputText,I=m.current;return!T||isNaN(T)?I:Number(T)}},{key:"getPageSizeOptions",value:function(){var m=this.props,T=m.pageSize,I=m.pageSizeOptions;return I.some(function(D){return D.toString()===T.toString()})?I:I.concat([T.toString()]).sort(function(D,N){var z=isNaN(Number(D))?0:Number(D),F=isNaN(Number(N))?0:Number(N);return z-F})}},{key:"render",value:function(){var m=this,T=this.props,I=T.pageSize,D=T.locale,N=T.rootPrefixCls,z=T.changeSize,F=T.quickGo,W=T.goButton,K=T.selectComponentClass,B=T.buildOptionText,k=T.selectPrefixCls,G=T.disabled,ne=this.state.goInputText,fe="".concat(N,"-options"),de=K,xe=null,Oe=null,ce=null;if(!z&&!F)return null;var be=this.getPageSizeOptions();if(z&&de){var ve=be.map(function(ue,se){return _.a.createElement(de.Option,{key:se,value:ue.toString()},(B||m.buildOptionText)(ue))});xe=_.a.createElement(de,{disabled:G,prefixCls:k,showSearch:!1,className:"".concat(fe,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(I||be[0]).toString(),onChange:this.changeSize,getPopupContainer:function(se){return se.parentNode}},ve)}return F&&(W&&(ce=typeof W=="boolean"?_.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:G,className:"".concat(fe,"-quick-jumper-button")},D.jump_to_confirm):_.a.createElement("span",{onClick:this.go,onKeyUp:this.go},W)),Oe=_.a.createElement("div",{className:"".concat(fe,"-quick-jumper")},D.jump_to,_.a.createElement("input",{disabled:G,type:"text",value:ne,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),D.page,ce)),_.a.createElement("li",{className:"".concat(fe)},xe,Oe)}}]),E}(_.a.Component);n.defaultProps={pageSizeOptions:["10","20","50","100"]};var i=n,h=o("N2Kk");function l(){}function s(P){return typeof P=="number"&&isFinite(P)&&Math.floor(P)===P}function p(P,R,E){return E}function O(P,R,E){var C=typeof P=="undefined"?R.pageSize:P;return Math.floor((E.total-1)/C)+1}var S=function(P){Object(x.a)(E,P);var R=Object(w.a)(E);function E(C){var m;Object(b.a)(this,E),m=R.call(this,C),m.getJumpPrevPage=function(){return Math.max(1,m.state.current-(m.props.showLessItems?3:5))},m.getJumpNextPage=function(){return Math.min(O(void 0,m.state,m.props),m.state.current+(m.props.showLessItems?3:5))},m.getItemIcon=function(z,F){var W=m.props.prefixCls,K=z||_.a.createElement("button",{type:"button","aria-label":F,className:"".concat(W,"-item-link")});return typeof z=="function"&&(K=_.a.createElement(z,Object(A.a)({},m.props))),K},m.savePaginationNode=function(z){m.paginationNode=z},m.isValid=function(z){return s(z)&&z!==m.state.current},m.shouldDisplayQuickJumper=function(){var z=m.props,F=z.showQuickJumper,W=z.pageSize,K=z.total;return K<=W?!1:F},m.handleKeyDown=function(z){(z.keyCode===a.ARROW_UP||z.keyCode===a.ARROW_DOWN)&&z.preventDefault()},m.handleKeyUp=function(z){var F=m.getValidValue(z),W=m.state.currentInputValue;F!==W&&m.setState({currentInputValue:F}),z.keyCode===a.ENTER?m.handleChange(F):z.keyCode===a.ARROW_UP?m.handleChange(F-1):z.keyCode===a.ARROW_DOWN&&m.handleChange(F+1)},m.changePageSize=function(z){var F=m.state.current,W=O(z,m.state,m.props);F=F>W?W:F,W===0&&(F=m.state.current),typeof z=="number"&&("pageSize"in m.props||m.setState({pageSize:z}),"current"in m.props||m.setState({current:F,currentInputValue:F})),m.props.onShowSizeChange(F,z),"onChange"in m.props&&m.props.onChange&&m.props.onChange(F,z)},m.handleChange=function(z){var F=m.props.disabled,W=z;if(m.isValid(W)&&!F){var K=O(void 0,m.state,m.props);W>K?W=K:W<1&&(W=1),"current"in m.props||m.setState({current:W,currentInputValue:W});var B=m.state.pageSize;return m.props.onChange(W,B),W}return m.state.current},m.prev=function(){m.hasPrev()&&m.handleChange(m.state.current-1)},m.next=function(){m.hasNext()&&m.handleChange(m.state.current+1)},m.jumpPrev=function(){m.handleChange(m.getJumpPrevPage())},m.jumpNext=function(){m.handleChange(m.getJumpNextPage())},m.hasPrev=function(){return m.state.current>1},m.hasNext=function(){return m.state.current<O(void 0,m.state,m.props)},m.runIfEnter=function(z,F){if(z.key==="Enter"||z.charCode===13){for(var W=arguments.length,K=new Array(W>2?W-2:0),B=2;B<W;B++)K[B-2]=arguments[B];F.apply(void 0,K)}},m.runIfEnterPrev=function(z){m.runIfEnter(z,m.prev)},m.runIfEnterNext=function(z){m.runIfEnter(z,m.next)},m.runIfEnterJumpPrev=function(z){m.runIfEnter(z,m.jumpPrev)},m.runIfEnterJumpNext=function(z){m.runIfEnter(z,m.jumpNext)},m.handleGoTO=function(z){(z.keyCode===a.ENTER||z.type==="click")&&m.handleChange(m.state.currentInputValue)};var T=C.onChange!==l,I="current"in C;I&&!T&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var D=C.defaultCurrent;"current"in C&&(D=C.current);var N=C.defaultPageSize;return"pageSize"in C&&(N=C.pageSize),D=Math.min(D,O(N,void 0,C)),m.state={current:D,currentInputValue:D,pageSize:N},m}return Object(y.a)(E,[{key:"componentDidUpdate",value:function(m,T){var I=this.props.prefixCls;if(T.current!==this.state.current&&this.paginationNode){var D=this.paginationNode.querySelector(".".concat(I,"-item-").concat(T.current));D&&document.activeElement===D&&D.blur()}}},{key:"getValidValue",value:function(m){var T=m.target.value,I=O(void 0,this.state,this.props),D=this.state.currentInputValue,N;return T===""?N=T:isNaN(Number(T))?N=D:T>=I?N=I:N=Number(T),N}},{key:"getShowSizeChanger",value:function(){var m=this.props,T=m.showSizeChanger,I=m.total,D=m.totalBoundaryShowSizeChanger;return typeof T!="undefined"?T:I>D}},{key:"renderPrev",value:function(m){var T=this.props,I=T.prevIcon,D=T.itemRender,N=D(m,"prev",this.getItemIcon(I,"prev page")),z=!this.hasPrev();return Object(f.isValidElement)(N)?Object(f.cloneElement)(N,{disabled:z}):N}},{key:"renderNext",value:function(m){var T=this.props,I=T.nextIcon,D=T.itemRender,N=D(m,"next",this.getItemIcon(I,"next page")),z=!this.hasNext();return Object(f.isValidElement)(N)?Object(f.cloneElement)(N,{disabled:z}):N}},{key:"render",value:function(){var m=this,T=this.props,I=T.prefixCls,D=T.className,N=T.style,z=T.disabled,F=T.hideOnSinglePage,W=T.total,K=T.locale,B=T.showQuickJumper,k=T.showLessItems,G=T.showTitle,ne=T.showTotal,fe=T.simple,de=T.itemRender,xe=T.showPrevNextJumpers,Oe=T.jumpPrevIcon,ce=T.jumpNextIcon,be=T.selectComponentClass,ve=T.selectPrefixCls,ue=T.pageSizeOptions,se=this.state,q=se.current,me=se.pageSize,re=se.currentInputValue;if(F===!0&&W<=me)return null;var ie=O(void 0,this.state,this.props),we=[],le=null,$=null,J=null,te=null,De=null,Te=B&&B.goButton,ke=k?1:2,tt=q-1>0?q-1:0,ot=q+1<ie?q+1:ie,gt=Object.keys(this.props).reduce(function(Ee,Ae){return(Ae.substr(0,5)==="data-"||Ae.substr(0,5)==="aria-"||Ae==="role")&&(Ee[Ae]=m.props[Ae]),Ee},{});if(fe)return Te&&(typeof Te=="boolean"?De=_.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},K.jump_to_confirm):De=_.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Te),De=_.a.createElement("li",{title:G?"".concat(K.jump_to).concat(q,"/").concat(ie):null,className:"".concat(I,"-simple-pager")},De)),_.a.createElement("ul",Object(L.a)({className:r()(I,"".concat(I,"-simple"),Object(g.a)({},"".concat(I,"-disabled"),z),D),style:N,ref:this.savePaginationNode},gt),_.a.createElement("li",{title:G?K.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:r()("".concat(I,"-prev"),Object(g.a)({},"".concat(I,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(tt)),_.a.createElement("li",{title:G?"".concat(q,"/").concat(ie):null,className:"".concat(I,"-simple-pager")},_.a.createElement("input",{type:"text",value:re,disabled:z,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),_.a.createElement("span",{className:"".concat(I,"-slash")},"/"),ie),_.a.createElement("li",{title:G?K.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:r()("".concat(I,"-next"),Object(g.a)({},"".concat(I,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(ot)),De);if(ie<=3+ke*2){var Et={locale:K,rootPrefixCls:I,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:G,itemRender:de};ie||we.push(_.a.createElement(t,Object(L.a)({},Et,{key:"noPager",page:ie,className:"".concat(I,"-disabled")})));for(var xt=1;xt<=ie;xt+=1){var St=q===xt;we.push(_.a.createElement(t,Object(L.a)({},Et,{key:xt,page:xt,active:St})))}}else{var Je=k?K.prev_3:K.prev_5,Ue=k?K.next_3:K.next_5;xe&&(le=_.a.createElement("li",{title:G?Je:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:r()("".concat(I,"-jump-prev"),Object(g.a)({},"".concat(I,"-jump-prev-custom-icon"),!!Oe))},de(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Oe,"prev page"))),$=_.a.createElement("li",{title:G?Ue:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:r()("".concat(I,"-jump-next"),Object(g.a)({},"".concat(I,"-jump-next-custom-icon"),!!ce))},de(this.getJumpNextPage(),"jump-next",this.getItemIcon(ce,"next page")))),te=_.a.createElement(t,{locale:K,last:!0,rootPrefixCls:I,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ie,page:ie,active:!1,showTitle:G,itemRender:de}),J=_.a.createElement(t,{locale:K,rootPrefixCls:I,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:G,itemRender:de});var ft=Math.max(1,q-ke),kt=Math.min(q+ke,ie);q-1<=ke&&(kt=1+ke*2),ie-q<=ke&&(ft=ie-ke*2);for(var ht=ft;ht<=kt;ht+=1){var _t=q===ht;we.push(_.a.createElement(t,{locale:K,rootPrefixCls:I,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ht,page:ht,active:_t,showTitle:G,itemRender:de}))}q-1>=ke*2&&q!==1+2&&(we[0]=Object(f.cloneElement)(we[0],{className:"".concat(I,"-item-after-jump-prev")}),we.unshift(le)),ie-q>=ke*2&&q!==ie-2&&(we[we.length-1]=Object(f.cloneElement)(we[we.length-1],{className:"".concat(I,"-item-before-jump-next")}),we.push($)),ft!==1&&we.unshift(J),kt!==ie&&we.push(te)}var Qe=null;ne&&(Qe=_.a.createElement("li",{className:"".concat(I,"-total-text")},ne(W,[W===0?0:(q-1)*me+1,q*me>W?W:q*me])));var He=!this.hasPrev()||!ie,Ge=!this.hasNext()||!ie;return _.a.createElement("ul",Object(L.a)({className:r()(I,D,Object(g.a)({},"".concat(I,"-disabled"),z)),style:N,unselectable:"unselectable",ref:this.savePaginationNode},gt),Qe,_.a.createElement("li",{title:G?K.prev_page:null,onClick:this.prev,tabIndex:He?null:0,onKeyPress:this.runIfEnterPrev,className:r()("".concat(I,"-prev"),Object(g.a)({},"".concat(I,"-disabled"),He)),"aria-disabled":He},this.renderPrev(tt)),we,_.a.createElement("li",{title:G?K.next_page:null,onClick:this.next,tabIndex:Ge?null:0,onKeyPress:this.runIfEnterNext,className:r()("".concat(I,"-next"),Object(g.a)({},"".concat(I,"-disabled"),Ge)),"aria-disabled":Ge},this.renderNext(ot)),_.a.createElement(i,{disabled:z,locale:K,rootPrefixCls:I,selectComponentClass:be,selectPrefixCls:ve,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:q,pageSize:me,pageSizeOptions:ue,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Te}))}}],[{key:"getDerivedStateFromProps",value:function(m,T){var I={};if("current"in m&&(I.current=m.current,m.current!==T.current&&(I.currentInputValue=I.current)),"pageSize"in m&&m.pageSize!==T.pageSize){var D=T.current,N=O(m.pageSize,T,m);D=D>N?N:D,"current"in m||(I.current=D,I.currentInputValue=D),I.pageSize=m.pageSize}return I}}]),E}(_.a.Component);S.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:h.a,style:{},itemRender:p,totalBoundaryShowSizeChanger:50};var v=S},"6Fuo":function(M,Y,o){M.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(M,Y,o){"use strict";var L=o("wCXF"),g=o("n6Qo");o.d(Y,"b",function(){return g.a});var A=o("IBYe"),b=o("6eGT"),y=o("hW8S");o.d(Y,"a",function(){return y.a}),Y.c=L.b},"6UM0":function(M,Y,o){var L,g;(function(){var A;(function(){"use strict";var y=[function(_,d,r){var u=r(1).Beautifier,t=r(5).Options;function a(n,i){var h=new u(n,i);return h.beautify()}_.exports=a,_.exports.defaultOptions=function(){return new t}},function(_,d,r){var u=r(2).Output,t=r(3).Token,a=r(4),n=r(5).Options,i=r(7).Tokenizer,h=r(7).line_starters,l=r(7).positionable_operators,s=r(7).TOKEN;function p(k,G){return G.indexOf(k)!==-1}function O(k){return k.replace(/^\s+/g,"")}function S(k){for(var G={},ne=0;ne<k.length;ne++)G[k[ne].replace(/-/g,"_")]=k[ne];return G}function v(k,G){return k&&k.type===s.RESERVED&&k.text===G}function P(k,G){return k&&k.type===s.RESERVED&&p(k.text,G)}var R=["case","return","do","if","throw","else","await","break","continue","async"],E=["before-newline","after-newline","preserve-newline"],C=S(E),m=[C.before_newline,C.preserve_newline],T={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function I(k,G){if(G.multiline_frame||G.mode===T.ForInitializer||G.mode===T.Conditional)return;k.remove_indent(G.start_line_index)}function D(k){k=k.replace(a.allLineBreaks,`
`);for(var G=[],ne=k.indexOf(`
`);ne!==-1;)G.push(k.substring(0,ne)),k=k.substring(ne+1),ne=k.indexOf(`
`);return k.length&&G.push(k),G}function N(k){return k===T.ArrayLiteral}function z(k){return p(k,[T.Expression,T.ForInitializer,T.Conditional])}function F(k,G){for(var ne=0;ne<k.length;ne++){var fe=k[ne].trim();if(fe.charAt(0)!==G)return!1}return!0}function W(k,G){for(var ne=0,fe=k.length,de;ne<fe;ne++)if(de=k[ne],de&&de.indexOf(G)!==0)return!1;return!0}function K(k,G){G=G||{},this._source_text=k||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new n(G)}K.prototype.create_flags=function(k,G){var ne=0;k&&(ne=k.indentation_level,!this._output.just_added_newline()&&k.line_indent_level>ne&&(ne=k.line_indent_level));var fe={mode:G,parent:k,last_token:k?k.last_token:new t(s.START_BLOCK,""),last_word:k?k.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:ne,alignment:0,line_indent_level:k?k.line_indent_level:ne,start_line_index:this._output.get_line_number(),ternary_depth:0};return fe},K.prototype._reset=function(k){var G=k.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new u(this._options,G),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(T.BlockStatement);var ne=new i(k,this._options);return this._tokens=ne.tokenize(),k},K.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var k,G=this._reset(this._source_text),ne=this._options.eol;this._options.eol==="auto"&&(ne=`
`,G&&a.lineBreak.test(G||"")&&(ne=G.match(a.lineBreak)[0]));for(var fe=this._tokens.next();fe;)this.handle_token(fe),this._last_last_text=this._flags.last_token.text,this._flags.last_token=fe,fe=this._tokens.next();return k=this._output.get_code(ne),k},K.prototype.handle_token=function(k,G){k.type===s.START_EXPR?this.handle_start_expr(k):k.type===s.END_EXPR?this.handle_end_expr(k):k.type===s.START_BLOCK?this.handle_start_block(k):k.type===s.END_BLOCK?this.handle_end_block(k):k.type===s.WORD?this.handle_word(k):k.type===s.RESERVED?this.handle_word(k):k.type===s.SEMICOLON?this.handle_semicolon(k):k.type===s.STRING?this.handle_string(k):k.type===s.EQUALS?this.handle_equals(k):k.type===s.OPERATOR?this.handle_operator(k):k.type===s.COMMA?this.handle_comma(k):k.type===s.BLOCK_COMMENT?this.handle_block_comment(k,G):k.type===s.COMMENT?this.handle_comment(k,G):k.type===s.DOT?this.handle_dot(k):k.type===s.EOF?this.handle_eof(k):k.type===s.UNKNOWN?this.handle_unknown(k,G):this.handle_unknown(k,G)},K.prototype.handle_whitespace_and_comments=function(k,G){var ne=k.newlines,fe=this._options.keep_array_indentation&&N(this._flags.mode);if(k.comments_before)for(var de=k.comments_before.next();de;)this.handle_whitespace_and_comments(de,G),this.handle_token(de,G),de=k.comments_before.next();if(fe)for(var xe=0;xe<ne;xe+=1)this.print_newline(xe>0,G);else if(this._options.max_preserve_newlines&&ne>this._options.max_preserve_newlines&&(ne=this._options.max_preserve_newlines),this._options.preserve_newlines&&ne>1){this.print_newline(!1,G);for(var Oe=1;Oe<ne;Oe+=1)this.print_newline(!0,G)}};var B=["async","break","continue","return","throw","yield"];K.prototype.allow_wrap_or_preserved_newline=function(k,G){if(G=G===void 0?!1:G,this._output.just_added_newline())return;var ne=this._options.preserve_newlines&&k.newlines||G,fe=p(this._flags.last_token.text,l)||p(k.text,l);if(fe){var de=p(this._flags.last_token.text,l)&&p(this._options.operator_position,m)||p(k.text,l);ne=ne&&de}if(ne)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(P(this._flags.last_token,B))return;this._output.set_wrap_point()}},K.prototype.print_newline=function(k,G){if(!G&&(this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==s.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")))for(var ne=this._tokens.peek();this._flags.mode===T.Statement&&!(this._flags.if_block&&v(ne,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(k)&&(this._flags.multiline_frame=!0)},K.prototype.print_token_line_indentation=function(k){this._output.just_added_newline()&&(this._options.keep_array_indentation&&k.newlines&&(k.text==="["||N(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(k.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},K.prototype.print_token=function(k){if(this._output.raw){this._output.add_raw_token(k);return}if(this._options.comma_first&&k.previous&&k.previous.type===s.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var G=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(G),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(k),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(k),this._output.non_breaking_space=!0,this._output.add_token(k.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},K.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},K.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},K.prototype.set_mode=function(k){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,k),this._flags=this.create_flags(this._previous_flags,k),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},K.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===T.Statement&&I(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},K.prototype.start_of_object_property=function(){return this._flags.parent.mode===T.ObjectLiteral&&this._flags.mode===T.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||P(this._flags.last_token,["get","set"]))},K.prototype.start_of_statement=function(k){var G=!1;return G=G||P(this._flags.last_token,["var","let","const"])&&k.type===s.WORD,G=G||v(this._flags.last_token,"do"),G=G||!(this._flags.parent.mode===T.ObjectLiteral&&this._flags.mode===T.Statement)&&P(this._flags.last_token,B)&&!k.newlines,G=G||v(this._flags.last_token,"else")&&!(v(k,"if")&&!k.comments_before),G=G||this._flags.last_token.type===s.END_EXPR&&(this._previous_flags.mode===T.ForInitializer||this._previous_flags.mode===T.Conditional),G=G||this._flags.last_token.type===s.WORD&&this._flags.mode===T.BlockStatement&&!this._flags.in_case&&!(k.text==="--"||k.text==="++")&&this._last_last_text!=="function"&&k.type!==s.WORD&&k.type!==s.RESERVED,G=G||this._flags.mode===T.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||P(this._flags.last_token,["get","set"])),G?(this.set_mode(T.Statement),this.indent(),this.handle_whitespace_and_comments(k,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(k,P(k,["do","for","if","while"])),!0):!1},K.prototype.handle_start_expr=function(k){this.start_of_statement(k)||this.handle_whitespace_and_comments(k);var G=T.Expression;if(k.text==="["){if(this._flags.last_token.type===s.WORD||this._flags.last_token.text===")"){P(this._flags.last_token,h)&&(this._output.space_before_token=!0),this.print_token(k),this.set_mode(G),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}G=T.ArrayLiteral,N(this._flags.mode)&&((this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline())),p(this._flags.last_token.type,[s.START_EXPR,s.END_EXPR,s.WORD,s.OPERATOR,s.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===s.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,G=T.ForInitializer):p(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,G=T.Conditional):p(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&k.whitespace_before===""?this._output.space_before_token=!1:(p(this._flags.last_token.text,h)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===s.EQUALS||this._flags.last_token.type===s.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(k);else if(this._flags.last_token.type===s.WORD){this._output.space_before_token=!1;var ne=this._tokens.peek(-3);if(this._options.space_after_named_function&&ne){var fe=this._tokens.peek(-4);P(ne,["async","function"])||ne.text==="*"&&P(fe,["async","function"])?this._output.space_before_token=!0:this._flags.mode===T.ObjectLiteral?(ne.text==="{"||ne.text===","||ne.text==="*"&&(fe.text==="{"||fe.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(k);(this._flags.last_token.type===s.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(p(this._last_last_text,["function","yield"])||this._flags.mode===T.ObjectLiteral&&p(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===s.START_BLOCK?this.print_newline():(this._flags.last_token.type===s.END_EXPR||this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===s.COMMA)&&this.allow_wrap_or_preserved_newline(k,k.newlines),this.print_token(k),this.set_mode(G),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},K.prototype.handle_end_expr=function(k){for(;this._flags.mode===T.Statement;)this.restore_mode();this.handle_whitespace_and_comments(k),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(k,k.text==="]"&&N(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===s.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(k),this.restore_mode(),I(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===T.Conditional&&(this._previous_flags.mode=T.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},K.prototype.handle_start_block=function(k){this.handle_whitespace_and_comments(k);var G=this._tokens.peek(),ne=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===s.END_EXPR?(this.set_mode(T.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(T.BlockStatement):ne&&(p(ne.text,[":",","])&&p(G.type,[s.STRING,s.WORD,s.RESERVED])||p(G.text,["get","set","..."])&&p(ne.type,[s.WORD,s.RESERVED]))?p(this._last_last_text,["class","interface"])&&!p(ne.text,[":",","])?this.set_mode(T.BlockStatement):this.set_mode(T.ObjectLiteral):this._flags.last_token.type===s.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(T.BlockStatement):p(this._flags.last_token.type,[s.EQUALS,s.START_EXPR,s.COMMA,s.OPERATOR])||P(this._flags.last_token,["return","throw","import","default"])?this.set_mode(T.ObjectLiteral):this.set_mode(T.BlockStatement),this._flags.last_token&&(P(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0));var fe=!G.comments_before&&G.text==="}",de=fe&&this._flags.last_word==="function"&&this._flags.last_token.type===s.END_EXPR;if(this._options.brace_preserve_inline){var xe=0,Oe=null;this._flags.inline_frame=!0;do if(xe+=1,Oe=this._tokens.peek(xe-1),Oe.newlines){this._flags.inline_frame=!1;break}while(Oe.type!==s.EOF&&!(Oe.type===s.END_BLOCK&&Oe.opened===k))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&k.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==s.OPERATOR&&(de||this._flags.last_token.type===s.EQUALS||P(this._flags.last_token,R)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(N(this._previous_flags.mode)&&(this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.COMMA)&&((this._flags.last_token.type===s.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(k),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==s.OPERATOR&&this._flags.last_token.type!==s.START_EXPR&&(this._flags.last_token.type===s.START_BLOCK&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(k),this.indent(),!fe&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},K.prototype.handle_end_block=function(k){for(this.handle_whitespace_and_comments(k);this._flags.mode===T.Statement;)this.restore_mode();var G=this._flags.last_token.type===s.START_BLOCK;this._flags.inline_frame&&!G?this._output.space_before_token=!0:this._options.brace_style==="expand"?G||this.print_newline():G||(N(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(k)},K.prototype.handle_word=function(k){if(k.type===s.RESERVED){if(p(k.text,["set","get"])&&this._flags.mode!==T.ObjectLiteral)k.type=s.WORD;else if(k.text==="import"&&p(this._tokens.peek().text,["(","."]))k.type=s.WORD;else if(p(k.text,["as","from"])&&!this._flags.import_block)k.type=s.WORD;else if(this._flags.mode===T.ObjectLiteral){var G=this._tokens.peek();G.text===":"&&(k.type=s.WORD)}}if(this.start_of_statement(k)?P(this._flags.last_token,["var","let","const"])&&k.type===s.WORD&&(this._flags.declaration_statement=!0):k.newlines&&!z(this._flags.mode)&&(this._flags.last_token.type!==s.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==s.EQUALS&&(this._options.preserve_newlines||!P(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(k),this.print_newline()):this.handle_whitespace_and_comments(k),this._flags.do_block&&!this._flags.do_while)if(v(k,"while")){this._output.space_before_token=!0,this.print_token(k),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&v(k,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===T.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&P(k,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(k),this._flags.in_case=!0;return}if((this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.EQUALS||this._flags.last_token.type===s.OPERATOR)&&(this.start_of_object_property()||this.allow_wrap_or_preserved_newline(k)),v(k,"function")){(p(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(p(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===s.OPERATOR))&&(!this._output.just_added_blankline()&&!k.comments_before&&(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD?P(this._flags.last_token,["get","set","new","export"])||P(this._flags.last_token,B)?this._output.space_before_token=!0:v(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===s.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(z(this._flags.mode)||N(this._flags.mode))||this.print_newline(),this.print_token(k),this._flags.last_word=k.text;return}var ne="NONE";if(this._flags.last_token.type===s.END_BLOCK?this._previous_flags.inline_frame?ne="SPACE":P(k,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&k.newlines?ne="NEWLINE":(ne="SPACE",this._output.space_before_token=!0):ne="NEWLINE":this._flags.last_token.type===s.SEMICOLON&&this._flags.mode===T.BlockStatement?ne="NEWLINE":this._flags.last_token.type===s.SEMICOLON&&z(this._flags.mode)?ne="SPACE":this._flags.last_token.type===s.STRING?ne="NEWLINE":this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD||this._flags.last_token.text==="*"&&(p(this._last_last_text,["function","yield"])||this._flags.mode===T.ObjectLiteral&&p(this._last_last_text,["{",","]))?ne="SPACE":this._flags.last_token.type===s.START_BLOCK?this._flags.inline_frame?ne="SPACE":ne="NEWLINE":this._flags.last_token.type===s.END_EXPR&&(this._output.space_before_token=!0,ne="NEWLINE"),P(k,h)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?ne="SPACE":ne="NEWLINE"),P(k,["else","catch","finally"]))if((!(this._flags.last_token.type===s.END_BLOCK&&this._previous_flags.mode===T.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&k.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var fe=this._output.current_line;fe.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else ne==="NEWLINE"?P(this._flags.last_token,R)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&P(k,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==s.END_EXPR?(this._flags.last_token.type!==s.START_EXPR||!P(k,["var","let","const"]))&&this._flags.last_token.text!==":"&&(v(k,"if")&&v(k.previous,"else")?this._output.space_before_token=!0:this.print_newline()):P(k,h)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&N(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():ne==="SPACE"&&(this._output.space_before_token=!0);k.previous&&(k.previous.type===s.WORD||k.previous.type===s.RESERVED)&&(this._output.space_before_token=!0),this.print_token(k),this._flags.last_word=k.text,k.type===s.RESERVED&&(k.text==="do"?this._flags.do_block=!0:k.text==="if"?this._flags.if_block=!0:k.text==="import"?this._flags.import_block=!0:this._flags.import_block&&v(k,"from")&&(this._flags.import_block=!1))},K.prototype.handle_semicolon=function(k){this.start_of_statement(k)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(k);for(var G=this._tokens.peek();this._flags.mode===T.Statement&&!(this._flags.if_block&&v(G,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(k)},K.prototype.handle_string=function(k){k.text.startsWith("`")&&k.newlines===0&&k.whitespace_before===""&&(k.previous.text===")"||this._flags.last_token.type===s.WORD)||(this.start_of_statement(k)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(k),this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.EQUALS||this._flags.last_token.type===s.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(k):k.text.startsWith("`")&&this._flags.last_token.type===s.END_EXPR&&(k.previous.text==="]"||k.previous.text===")")&&k.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(k)},K.prototype.handle_equals=function(k){this.start_of_statement(k)||this.handle_whitespace_and_comments(k),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(k),this._output.space_before_token=!0},K.prototype.handle_comma=function(k){this.handle_whitespace_and_comments(k,!0),this.print_token(k),this._output.space_before_token=!0,this._flags.declaration_statement?(z(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(k)):this._flags.mode===T.ObjectLiteral||this._flags.mode===T.Statement&&this._flags.parent.mode===T.ObjectLiteral?(this._flags.mode===T.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(k)},K.prototype.handle_operator=function(k){var G=k.text==="*"&&(P(this._flags.last_token,["function","yield"])||p(this._flags.last_token.type,[s.START_BLOCK,s.COMMA,s.END_BLOCK,s.SEMICOLON])),ne=p(k.text,["-","+"])&&(p(this._flags.last_token.type,[s.START_BLOCK,s.START_EXPR,s.EQUALS,s.OPERATOR])||p(this._flags.last_token.text,h)||this._flags.last_token.text===",");if(!this.start_of_statement(k)){var fe=!G;this.handle_whitespace_and_comments(k,fe)}if(k.text==="*"&&this._flags.last_token.type===s.DOT){this.print_token(k);return}if(k.text==="::"){this.print_token(k);return}if(this._flags.last_token.type===s.OPERATOR&&p(this._options.operator_position,m)&&this.allow_wrap_or_preserved_newline(k),k.text===":"&&this._flags.in_case){this.print_token(k),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==s.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var de=!0,xe=!0,Oe=!1;if(k.text===":"?this._flags.ternary_depth===0?de=!1:(this._flags.ternary_depth-=1,Oe=!0):k.text==="?"&&(this._flags.ternary_depth+=1),!ne&&!G&&this._options.preserve_newlines&&p(k.text,l)){var ce=k.text===":",be=ce&&Oe,ve=ce&&!Oe;switch(this._options.operator_position){case C.before_newline:this._output.space_before_token=!ve,this.print_token(k),(!ce||be)&&this.allow_wrap_or_preserved_newline(k),this._output.space_before_token=!0;return;case C.after_newline:this._output.space_before_token=!0,!ce||be?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(k):this._output.space_before_token=!1,this.print_token(k),this._output.space_before_token=!0;return;case C.preserve_newline:ve||this.allow_wrap_or_preserved_newline(k),de=!(this._output.just_added_newline()||ve),this._output.space_before_token=de,this.print_token(k),this._output.space_before_token=!0;return}}if(G){this.allow_wrap_or_preserved_newline(k),de=!1;var ue=this._tokens.peek();xe=ue&&p(ue.type,[s.WORD,s.RESERVED])}else if(k.text==="...")this.allow_wrap_or_preserved_newline(k),de=this._flags.last_token.type===s.START_BLOCK,xe=!1;else if(p(k.text,["--","++","!","~"])||ne){if((this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR)&&this.allow_wrap_or_preserved_newline(k),de=!1,xe=!1,k.newlines&&(k.text==="--"||k.text==="++"||k.text==="~")){var se=P(this._flags.last_token,R)&&k.newlines;se&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(se,!0)}this._flags.last_token.text===";"&&z(this._flags.mode)&&(de=!0),this._flags.last_token.type===s.RESERVED?de=!0:this._flags.last_token.type===s.END_EXPR?de=!(this._flags.last_token.text==="]"&&(k.text==="--"||k.text==="++")):this._flags.last_token.type===s.OPERATOR&&(de=p(k.text,["--","-","++","+"])&&p(this._flags.last_token.text,["--","-","++","+"]),p(k.text,["+","-"])&&p(this._flags.last_token.text,["--","++"])&&(xe=!0)),(this._flags.mode===T.BlockStatement&&!this._flags.inline_frame||this._flags.mode===T.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||de,this.print_token(k),this._output.space_before_token=xe},K.prototype.handle_block_comment=function(k,G){if(this._output.raw){this._output.add_raw_token(k),k.directives&&k.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(k.directives){this.print_newline(!1,G),this.print_token(k),k.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!a.newline.test(k.text)&&!k.newlines){this._output.space_before_token=!0,this.print_token(k),this._output.space_before_token=!0;return}else this.print_block_commment(k,G)},K.prototype.print_block_commment=function(k,G){var ne=D(k.text),fe,de=!1,xe=!1,Oe=k.whitespace_before,ce=Oe.length;if(this.print_newline(!1,G),this.print_token_line_indentation(k),this._output.add_token(ne[0]),this.print_newline(!1,G),ne.length>1){for(ne=ne.slice(1),de=F(ne,"*"),xe=W(ne,Oe),de&&(this._flags.alignment=1),fe=0;fe<ne.length;fe++)de?(this.print_token_line_indentation(k),this._output.add_token(O(ne[fe]))):xe&&ne[fe]?(this.print_token_line_indentation(k),this._output.add_token(ne[fe].substring(ce))):(this._output.current_line.set_indent(-1),this._output.add_token(ne[fe])),this.print_newline(!1,G);this._flags.alignment=0}},K.prototype.handle_comment=function(k,G){k.newlines?this.print_newline(!1,G):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(k),this.print_newline(!1,G)},K.prototype.handle_dot=function(k){this.start_of_statement(k)||this.handle_whitespace_and_comments(k,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),P(this._flags.last_token,R)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(k,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(k)},K.prototype.handle_unknown=function(k,G){this.print_token(k),k.text[k.text.length-1]===`
`&&this.print_newline(!1,G)},K.prototype.handle_eof=function(k){for(;this._flags.mode===T.Statement;)this.restore_mode();this.handle_whitespace_and_comments(k)},_.exports.Beautifier=K},function(_){function d(t){this.__parent=t,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}d.prototype.clone_empty=function(){var t=new d(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},d.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},d.prototype.has_match=function(t){for(var a=this.__items.length-1;a>=0;a--)if(this.__items[a].match(t))return!0;return!1},d.prototype.set_indent=function(t,a){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=a||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},d.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},d.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},d.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,t.__items[0]===" "&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1},d.prototype.is_empty=function(){return this.__items.length===0},d.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},d.prototype.push=function(t){this.__items.push(t);var a=t.lastIndexOf(`
`);a!==-1?this.__character_count=t.length-a:this.__character_count+=t.length},d.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},d.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},d.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},d.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},d.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t};function r(t,a){this.__cache=[""],this.__indent_size=t.indent_size,this.__indent_string=t.indent_char,t.indent_with_tabs||(this.__indent_string=new Array(t.indent_size+1).join(t.indent_char)),a=a||"",t.indent_level>0&&(a=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=a,this.__base_string_length=a.length}r.prototype.get_indent_size=function(t,a){var n=this.__base_string_length;return a=a||0,t<0&&(n=0),n+=t*this.__indent_size,n+=a,n},r.prototype.get_indent_string=function(t,a){var n=this.__base_string;return a=a||0,t<0&&(t=0,n=""),a+=t*this.__indent_size,this.__ensure_cache(a),n+=this.__cache[a],n},r.prototype.__ensure_cache=function(t){for(;t>=this.__cache.length;)this.__add_column()},r.prototype.__add_column=function(){var t=this.__cache.length,a=0,n="";this.__indent_size&&t>=this.__indent_size&&(a=Math.floor(t/this.__indent_size),t-=a*this.__indent_size,n=new Array(a+1).join(this.__indent_string)),t&&(n+=new Array(t+1).join(" ")),this.__cache.push(n)};function u(t,a){this.__indent_cache=new r(t,a),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new d(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}u.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},u.prototype.get_line_number=function(){return this.__lines.length},u.prototype.get_indent_string=function(t,a){return this.__indent_cache.get_indent_string(t,a)},u.prototype.get_indent_size=function(t,a){return this.__indent_cache.get_indent_size(t,a)},u.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},u.prototype.add_new_line=function(t){return this.is_empty()||!t&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},u.prototype.get_code=function(t){this.trim(!0);var a=this.current_line.pop();a&&(a[a.length-1]===`
`&&(a=a.replace(/\n+$/g,"")),this.current_line.push(a)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join(`
`);return t!==`
`&&(n=n.replace(/[\n]/g,t)),n},u.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},u.prototype.set_indent=function(t,a){return t=t||0,a=a||0,this.next_line.set_indent(t,a),this.__lines.length>1?(this.current_line.set_indent(t,a),!0):(this.current_line.set_indent(),!1)},u.prototype.add_raw_token=function(t){for(var a=0;a<t.newlines;a++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(t.whitespace_before),this.current_line.push(t.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},u.prototype.add_token=function(t){this.__add_space_before_token(),this.current_line.push(t),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},u.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},u.prototype.remove_indent=function(t){for(var a=this.__lines.length;t<a;)this.__lines[t]._remove_indent(),t++;this.current_line._remove_wrap_indent()},u.prototype.trim=function(t){for(t=t===void 0?!1:t,this.current_line.trim();t&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},u.prototype.just_added_newline=function(){return this.current_line.is_empty()},u.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},u.prototype.ensure_empty_line_above=function(t,a){for(var n=this.__lines.length-2;n>=0;){var i=this.__lines[n];if(i.is_empty())break;if(i.item(0).indexOf(t)!==0&&i.item(-1)!==a){this.__lines.splice(n+1,0,new d(this)),this.previous_line=this.__lines[this.__lines.length-2];break}n--}},_.exports.Output=u},function(_){function d(r,u,t,a){this.type=r,this.text=u,this.comments_before=null,this.newlines=t||0,this.whitespace_before=a||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}_.exports.Token=d},function(_,d){var r="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",u="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",t="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",a="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",n="(?:\\\\u[0-9a-fA-F]{4}|["+r+t+"])",i="(?:\\\\u[0-9a-fA-F]{4}|["+u+t+a+"])*";d.identifier=new RegExp(n+i,"g"),d.identifierStart=new RegExp(n),d.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+u+t+a+"])+");var h=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;d.newline=/[\n\r\u2028\u2029]/,d.lineBreak=new RegExp(`\r
|`+d.newline.source),d.allLineBreaks=new RegExp(d.lineBreak.source,"g")},function(_,d,r){var u=r(6).Options,t=["before-newline","after-newline","preserve-newline"];function a(n){u.call(this,n,"js");var i=this.raw_options.brace_style||null;i==="expand-strict"?this.raw_options.brace_style="expand":i==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var h=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var l=0;l<h.length;l++)h[l]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=h[l];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",t),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}a.prototype=new u,_.exports.Options=a},function(_){function d(t,a){this.raw_options=r(t,a),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}d.prototype._get_array=function(t,a){var n=this.raw_options[t],i=a||[];return typeof n=="object"?n!==null&&typeof n.concat=="function"&&(i=n.concat()):typeof n=="string"&&(i=n.split(/[^a-zA-Z0-9_\/\-]+/)),i},d.prototype._get_boolean=function(t,a){var n=this.raw_options[t],i=n===void 0?!!a:!!n;return i},d.prototype._get_characters=function(t,a){var n=this.raw_options[t],i=a||"";return typeof n=="string"&&(i=n.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),i},d.prototype._get_number=function(t,a){var n=this.raw_options[t];a=parseInt(a,10),isNaN(a)&&(a=0);var i=parseInt(n,10);return isNaN(i)&&(i=a),i},d.prototype._get_selection=function(t,a,n){var i=this._get_selection_list(t,a,n);if(i.length!==1)throw new Error("Invalid Option Value: The option '"+t+`' can only be one of the following values:
`+a+`
You passed in: '`+this.raw_options[t]+"'");return i[0]},d.prototype._get_selection_list=function(t,a,n){if(!a||a.length===0)throw new Error("Selection list cannot be empty.");if(n=n||[a[0]],!this._is_valid_selection(n,a))throw new Error("Invalid Default Value!");var i=this._get_array(t,n);if(!this._is_valid_selection(i,a))throw new Error("Invalid Option Value: The option '"+t+`' can contain only the following values:
`+a+`
You passed in: '`+this.raw_options[t]+"'");return i},d.prototype._is_valid_selection=function(t,a){return t.length&&a.length&&!t.some(function(n){return a.indexOf(n)===-1})};function r(t,a){var n={};t=u(t);var i;for(i in t)i!==a&&(n[i]=t[i]);if(a&&t[a])for(i in t[a])n[i]=t[a][i];return n}function u(t){var a={},n;for(n in t){var i=n.replace(/-/g,"_");a[i]=t[n]}return a}_.exports.Options=d,_.exports.normalizeOpts=u,_.exports.mergeOpts=r},function(_,d,r){var u=r(8).InputScanner,t=r(9).Tokenizer,a=r(9).TOKEN,n=r(13).Directives,i=r(4),h=r(12).Pattern,l=r(14).TemplatablePattern;function s(F,W){return W.indexOf(F)!==-1}var p={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:a.START,RAW:a.RAW,EOF:a.EOF},O=new n(/\/\*/,/\*\//),S=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,v=/[0-9]/,P=/[^\d\.]/,R=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),E=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";E=E.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),E="\\?\\.(?!\\d) "+E,E=E.replace(/ /g,"|");var C=new RegExp(E),m="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),T=m.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),I=new RegExp("^(?:"+T.join("|")+")$"),D,N=function(F,W){t.call(this,F,W),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var K=new h(this._input),B=new l(this._input).read_options(this._options);this.__patterns={template:B,identifier:B.starting_with(i.identifier).matching(i.identifierMatch),number:K.matching(S),punct:K.matching(C),comment:K.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:K.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:K.matching(/<!--/),html_comment_end:K.matching(/-->/),include:K.starting_with(/#include/).until_after(i.lineBreak),shebang:K.starting_with(/#!/).until_after(i.lineBreak),xml:K.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:B.until(/['\\\n\r\u2028\u2029]/),double_quote:B.until(/["\\\n\r\u2028\u2029]/),template_text:B.until(/[`\\$]/),template_expression:B.until(/[`}\\]/)}};N.prototype=new t,N.prototype._is_comment=function(F){return F.type===p.COMMENT||F.type===p.BLOCK_COMMENT||F.type===p.UNKNOWN},N.prototype._is_opening=function(F){return F.type===p.START_BLOCK||F.type===p.START_EXPR},N.prototype._is_closing=function(F,W){return(F.type===p.END_BLOCK||F.type===p.END_EXPR)&&W&&(F.text==="]"&&W.text==="["||F.text===")"&&W.text==="("||F.text==="}"&&W.text==="{")},N.prototype._reset=function(){D=!1},N.prototype._get_next_token=function(F,W){var K=null;this._readWhitespace();var B=this._input.peek();return B===null?this._create_token(p.EOF,""):(K=K||this._read_non_javascript(B),K=K||this._read_string(B),K=K||this._read_word(F),K=K||this._read_singles(B),K=K||this._read_comment(B),K=K||this._read_regexp(B,F),K=K||this._read_xml(B,F),K=K||this._read_punctuation(),K=K||this._create_token(p.UNKNOWN,this._input.next()),K)},N.prototype._read_word=function(F){var W;if(W=this.__patterns.identifier.read(),W!=="")return W=W.replace(i.allLineBreaks,`
`),!(F.type===p.DOT||F.type===p.RESERVED&&(F.text==="set"||F.text==="get"))&&I.test(W)?(W==="in"||W==="of")&&(F.type===p.WORD||F.type===p.STRING)?this._create_token(p.OPERATOR,W):this._create_token(p.RESERVED,W):this._create_token(p.WORD,W);if(W=this.__patterns.number.read(),W!=="")return this._create_token(p.WORD,W)},N.prototype._read_singles=function(F){var W=null;return F==="("||F==="["?W=this._create_token(p.START_EXPR,F):F===")"||F==="]"?W=this._create_token(p.END_EXPR,F):F==="{"?W=this._create_token(p.START_BLOCK,F):F==="}"?W=this._create_token(p.END_BLOCK,F):F===";"?W=this._create_token(p.SEMICOLON,F):F==="."&&P.test(this._input.peek(1))?W=this._create_token(p.DOT,F):F===","&&(W=this._create_token(p.COMMA,F)),W&&this._input.next(),W},N.prototype._read_punctuation=function(){var F=this.__patterns.punct.read();if(F!=="")return F==="="?this._create_token(p.EQUALS,F):F==="?."?this._create_token(p.DOT,F):this._create_token(p.OPERATOR,F)},N.prototype._read_non_javascript=function(F){var W="";if(F==="#"){if(this._is_first_token()&&(W=this.__patterns.shebang.read(),W))return this._create_token(p.UNKNOWN,W.trim()+`
`);if(W=this.__patterns.include.read(),W)return this._create_token(p.UNKNOWN,W.trim()+`
`);F=this._input.next();var K="#";if(this._input.hasNext()&&this._input.testChar(v)){do F=this._input.next(),K+=F;while(this._input.hasNext()&&F!=="#"&&F!=="=");return F==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(K+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(K+="{}",this._input.next(),this._input.next())),this._create_token(p.WORD,K)}this._input.back()}else if(F==="<"&&this._is_first_token()){if(W=this.__patterns.html_comment_start.read(),W){for(;this._input.hasNext()&&!this._input.testChar(i.newline);)W+=this._input.next();return D=!0,this._create_token(p.COMMENT,W)}}else if(D&&F==="-"&&(W=this.__patterns.html_comment_end.read(),W))return D=!1,this._create_token(p.COMMENT,W);return null},N.prototype._read_comment=function(F){var W=null;if(F==="/"){var K="";if(this._input.peek(1)==="*"){K=this.__patterns.block_comment.read();var B=O.get_directives(K);B&&B.ignore==="start"&&(K+=O.readIgnored(this._input)),K=K.replace(i.allLineBreaks,`
`),W=this._create_token(p.BLOCK_COMMENT,K),W.directives=B}else this._input.peek(1)==="/"&&(K=this.__patterns.comment.read(),W=this._create_token(p.COMMENT,K))}return W},N.prototype._read_string=function(F){if(F==="`"||F==="'"||F==='"'){var W=this._input.next();return this.has_char_escapes=!1,F==="`"?W+=this._read_string_recursive("`",!0,"${"):W+=this._read_string_recursive(F),this.has_char_escapes&&this._options.unescape_strings&&(W=z(W)),this._input.peek()===F&&(W+=this._input.next()),W=W.replace(i.allLineBreaks,`
`),this._create_token(p.STRING,W)}return null},N.prototype._allow_regexp_or_xml=function(F){return F.type===p.RESERVED&&s(F.text,["return","case","throw","else","do","typeof","yield"])||F.type===p.END_EXPR&&F.text===")"&&F.opened.previous.type===p.RESERVED&&s(F.opened.previous.text,["if","while","for"])||s(F.type,[p.COMMENT,p.START_EXPR,p.START_BLOCK,p.START,p.END_BLOCK,p.OPERATOR,p.EQUALS,p.EOF,p.SEMICOLON,p.COMMA])},N.prototype._read_regexp=function(F,W){if(F==="/"&&this._allow_regexp_or_xml(W)){for(var K=this._input.next(),B=!1,k=!1;this._input.hasNext()&&(B||k||this._input.peek()!==F)&&!this._input.testChar(i.newline);)K+=this._input.peek(),B?B=!1:(B=this._input.peek()==="\\",this._input.peek()==="["?k=!0:this._input.peek()==="]"&&(k=!1)),this._input.next();return this._input.peek()===F&&(K+=this._input.next(),K+=this._input.read(i.identifier)),this._create_token(p.STRING,K)}return null},N.prototype._read_xml=function(F,W){if(this._options.e4x&&F==="<"&&this._allow_regexp_or_xml(W)){var K="",B=this.__patterns.xml.read_match();if(B){for(var k=B[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),G=k.indexOf("{")===0,ne=0;B;){var fe=!!B[1],de=B[2],xe=!!B[B.length-1]||de.slice(0,8)==="![CDATA[";if(!xe&&(de===k||G&&de.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(fe?--ne:++ne),K+=B[0],ne<=0)break;B=this.__patterns.xml.read_match()}return B||(K+=this._input.match(/[\s\S]*/g)[0]),K=K.replace(i.allLineBreaks,`
`),this._create_token(p.STRING,K)}}return null};function z(F){for(var W="",K=0,B=new u(F),k=null;B.hasNext();)if(k=B.match(/([\s]|[^\\]|\\\\)+/g),k&&(W+=k[0]),B.peek()==="\\"){if(B.next(),B.peek()==="x")k=B.match(/x([0-9A-Fa-f]{2})/g);else if(B.peek()==="u")k=B.match(/u([0-9A-Fa-f]{4})/g);else{W+="\\",B.hasNext()&&(W+=B.next());continue}if(!k)return F;if(K=parseInt(k[1],16),K>126&&K<=255&&k[0].indexOf("x")===0)return F;if(K>=0&&K<32){W+="\\"+k[0];continue}else K===34||K===39||K===92?W+="\\"+String.fromCharCode(K):W+=String.fromCharCode(K)}return W}N.prototype._read_string_recursive=function(F,W,K){var B,k;F==="'"?k=this.__patterns.single_quote:F==='"'?k=this.__patterns.double_quote:F==="`"?k=this.__patterns.template_text:F==="}"&&(k=this.__patterns.template_expression);for(var G=k.read(),ne="";this._input.hasNext();){if(ne=this._input.next(),ne===F||!W&&i.newline.test(ne)){this._input.back();break}else ne==="\\"&&this._input.hasNext()?(B=this._input.peek(),B==="x"||B==="u"?this.has_char_escapes=!0:B==="\r"&&this._input.peek(1)===`
`&&this._input.next(),ne+=this._input.next()):K&&(K==="${"&&ne==="$"&&this._input.peek()==="{"&&(ne+=this._input.next()),K===ne&&(F==="`"?ne+=this._read_string_recursive("}",W,"`"):ne+=this._read_string_recursive("`",W,"${"),this._input.hasNext()&&(ne+=this._input.next())));ne+=k.read(),G+=ne}return G},_.exports.Tokenizer=N,_.exports.TOKEN=p,_.exports.positionable_operators=R.slice(),_.exports.line_starters=m.slice()},function(_){var d=RegExp.prototype.hasOwnProperty("sticky");function r(u){this.__input=u||"",this.__input_length=this.__input.length,this.__position=0}r.prototype.restart=function(){this.__position=0},r.prototype.back=function(){this.__position>0&&(this.__position-=1)},r.prototype.hasNext=function(){return this.__position<this.__input_length},r.prototype.next=function(){var u=null;return this.hasNext()&&(u=this.__input.charAt(this.__position),this.__position+=1),u},r.prototype.peek=function(u){var t=null;return u=u||0,u+=this.__position,u>=0&&u<this.__input_length&&(t=this.__input.charAt(u)),t},r.prototype.__match=function(u,t){u.lastIndex=t;var a=u.exec(this.__input);return a&&!(d&&u.sticky)&&(a.index!==t&&(a=null)),a},r.prototype.test=function(u,t){return t=t||0,t+=this.__position,t>=0&&t<this.__input_length?!!this.__match(u,t):!1},r.prototype.testChar=function(u,t){var a=this.peek(t);return u.lastIndex=0,a!==null&&u.test(a)},r.prototype.match=function(u){var t=this.__match(u,this.__position);return t?this.__position+=t[0].length:t=null,t},r.prototype.read=function(u,t,a){var n="",i;return u&&(i=this.match(u),i&&(n+=i[0])),t&&(i||!u)&&(n+=this.readUntil(t,a)),n},r.prototype.readUntil=function(u,t){var a="",n=this.__position;u.lastIndex=this.__position;var i=u.exec(this.__input);return i?(n=i.index,t&&(n+=i[0].length)):n=this.__input_length,a=this.__input.substring(this.__position,n),this.__position=n,a},r.prototype.readUntilAfter=function(u){return this.readUntil(u,!0)},r.prototype.get_regexp=function(u,t){var a=null,n="g";return t&&d&&(n="y"),typeof u=="string"&&u!==""?a=new RegExp(u,n):u&&(a=new RegExp(u.source,n)),a},r.prototype.get_literal_regexp=function(u){return RegExp(u.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},r.prototype.peekUntilAfter=function(u){var t=this.__position,a=this.readUntilAfter(u);return this.__position=t,a},r.prototype.lookBack=function(u){var t=this.__position-1;return t>=u.length&&this.__input.substring(t-u.length,t).toLowerCase()===u},_.exports.InputScanner=r},function(_,d,r){var u=r(8).InputScanner,t=r(3).Token,a=r(10).TokenStream,n=r(11).WhitespacePattern,i={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},h=function(l,s){this._input=new u(l),this._options=s||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new n(this._input)};h.prototype.tokenize=function(){this._input.restart(),this.__tokens=new a,this._reset();for(var l,s=new t(i.START,""),p=null,O=[],S=new a;s.type!==i.EOF;){for(l=this._get_next_token(s,p);this._is_comment(l);)S.add(l),l=this._get_next_token(s,p);S.isEmpty()||(l.comments_before=S,S=new a),l.parent=p,this._is_opening(l)?(O.push(p),p=l):p&&this._is_closing(l,p)&&(l.opened=p,p.closed=l,p=O.pop(),l.parent=p),l.previous=s,s.next=l,this.__tokens.add(l),s=l}return this.__tokens},h.prototype._is_first_token=function(){return this.__tokens.isEmpty()},h.prototype._reset=function(){},h.prototype._get_next_token=function(l,s){this._readWhitespace();var p=this._input.read(/.+/g);return p?this._create_token(i.RAW,p):this._create_token(i.EOF,"")},h.prototype._is_comment=function(l){return!1},h.prototype._is_opening=function(l){return!1},h.prototype._is_closing=function(l,s){return!1},h.prototype._create_token=function(l,s){var p=new t(l,s,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return p},h.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},_.exports.Tokenizer=h,_.exports.TOKEN=i},function(_){function d(r){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=r}d.prototype.restart=function(){this.__position=0},d.prototype.isEmpty=function(){return this.__tokens_length===0},d.prototype.hasNext=function(){return this.__position<this.__tokens_length},d.prototype.next=function(){var r=null;return this.hasNext()&&(r=this.__tokens[this.__position],this.__position+=1),r},d.prototype.peek=function(r){var u=null;return r=r||0,r+=this.__position,r>=0&&r<this.__tokens_length&&(u=this.__tokens[r]),u},d.prototype.add=function(r){this.__parent_token&&(r.parent=this.__parent_token),this.__tokens.push(r),this.__tokens_length+=1},_.exports.TokenStream=d},function(_,d,r){var u=r(12).Pattern;function t(a,n){u.call(this,a,n),n?this._line_regexp=this._input.get_regexp(n._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}t.prototype=new u,t.prototype.__set_whitespace_patterns=function(a,n){a+="\\t ",n+="\\n\\r",this._match_pattern=this._input.get_regexp("["+a+n+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+n+"]")},t.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var a=this._input.read(this._match_pattern);if(a===" ")this.whitespace_before_token=" ";else if(a){var n=this.__split(this._newline_regexp,a);this.newline_count=n.length-1,this.whitespace_before_token=n[this.newline_count]}return a},t.prototype.matching=function(a,n){var i=this._create();return i.__set_whitespace_patterns(a,n),i._update(),i},t.prototype._create=function(){return new t(this._input,this)},t.prototype.__split=function(a,n){a.lastIndex=0;for(var i=0,h=[],l=a.exec(n);l;)h.push(n.substring(i,l.index)),i=l.index+l[0].length,l=a.exec(n);return i<n.length?h.push(n.substring(i,n.length)):h.push(""),h},_.exports.WhitespacePattern=t},function(_){function d(r,u){this._input=r,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,u&&(this._starting_pattern=this._input.get_regexp(u._starting_pattern,!0),this._match_pattern=this._input.get_regexp(u._match_pattern,!0),this._until_pattern=this._input.get_regexp(u._until_pattern),this._until_after=u._until_after)}d.prototype.read=function(){var r=this._input.read(this._starting_pattern);return(!this._starting_pattern||r)&&(r+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),r},d.prototype.read_match=function(){return this._input.match(this._match_pattern)},d.prototype.until_after=function(r){var u=this._create();return u._until_after=!0,u._until_pattern=this._input.get_regexp(r),u._update(),u},d.prototype.until=function(r){var u=this._create();return u._until_after=!1,u._until_pattern=this._input.get_regexp(r),u._update(),u},d.prototype.starting_with=function(r){var u=this._create();return u._starting_pattern=this._input.get_regexp(r,!0),u._update(),u},d.prototype.matching=function(r){var u=this._create();return u._match_pattern=this._input.get_regexp(r,!0),u._update(),u},d.prototype._create=function(){return new d(this._input,this)},d.prototype._update=function(){},_.exports.Pattern=d},function(_){function d(r,u){r=typeof r=="string"?r:r.source,u=typeof u=="string"?u:u.source,this.__directives_block_pattern=new RegExp(r+/ beautify( \w+[:]\w+)+ /.source+u,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(r+/\sbeautify\signore:end\s/.source+u,"g")}d.prototype.get_directives=function(r){if(!r.match(this.__directives_block_pattern))return null;var u={};this.__directive_pattern.lastIndex=0;for(var t=this.__directive_pattern.exec(r);t;)u[t[1]]=t[2],t=this.__directive_pattern.exec(r);return u},d.prototype.readIgnored=function(r){return r.readUntilAfter(this.__directives_end_ignore_pattern)},_.exports.Directives=d},function(_,d,r){var u=r(12).Pattern,t={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function a(n,i){u.call(this,n,i),this.__template_pattern=null,this._disabled=Object.assign({},t),this._excluded=Object.assign({},t),i&&(this.__template_pattern=this._input.get_regexp(i.__template_pattern),this._excluded=Object.assign(this._excluded,i._excluded),this._disabled=Object.assign(this._disabled,i._disabled));var h=new u(n);this.__patterns={handlebars_comment:h.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:h.starting_with(/{{{/).until_after(/}}}/),handlebars:h.starting_with(/{{/).until_after(/}}/),php:h.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:h.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:h.starting_with(/{%/).until_after(/%}/),django_value:h.starting_with(/{{/).until_after(/}}/),django_comment:h.starting_with(/{#/).until_after(/#}/),smarty:h.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:h.starting_with(/{\*/).until_after(/\*}/),smarty_literal:h.starting_with(/{literal}/).until_after(/{\/literal}/)}}a.prototype=new u,a.prototype._create=function(){return new a(this._input,this)},a.prototype._update=function(){this.__set_templated_pattern()},a.prototype.disable=function(n){var i=this._create();return i._disabled[n]=!0,i._update(),i},a.prototype.read_options=function(n){var i=this._create();for(var h in t)i._disabled[h]=n.templating.indexOf(h)===-1;return i._update(),i},a.prototype.exclude=function(n){var i=this._create();return i._excluded[n]=!0,i._update(),i},a.prototype.read=function(){var n="";this._match_pattern?n=this._input.read(this._starting_pattern):n=this._input.read(this._starting_pattern,this.__template_pattern);for(var i=this._read_template();i;)this._match_pattern?i+=this._input.read(this._match_pattern):i+=this._input.readUntil(this.__template_pattern),n+=i,i=this._read_template();return this._until_after&&(n+=this._input.readUntilAfter(this._until_pattern)),n},a.prototype.__set_templated_pattern=function(){var n=[];this._disabled.php||n.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||n.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||n.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(n.push(this.__patterns.django._starting_pattern.source),n.push(this.__patterns.django_value._starting_pattern.source),n.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||n.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&n.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+n.join("|")+")")},a.prototype._read_template=function(){var n="",i=this._input.peek();if(i==="<"){var h=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&h==="?"&&(n=n||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&h==="%"&&(n=n||this.__patterns.erb.read())}else i==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(n=n||this.__patterns.handlebars_comment.read(),n=n||this.__patterns.handlebars_unescaped.read(),n=n||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(n=n||this.__patterns.django_value.read()),this._excluded.django||(n=n||this.__patterns.django_comment.read(),n=n||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(n=n||this.__patterns.smarty_comment.read(),n=n||this.__patterns.smarty_literal.read(),n=n||this.__patterns.smarty.read()));return n},_.exports.TemplatablePattern=a}],x={};function w(_){var d=x[_];if(d!==void 0)return d.exports;var r=x[_]={exports:{}};return y[_](r,r.exports,w),r.exports}var f=w(0);A=f})();var b=A;!(L=[],g=function(){return{js_beautify:b}}.apply(Y,L),g!==void 0&&(M.exports=g))})()},"6eGT":function(M,Y,o){"use strict";function L(g){return null}Y.a=L},"6nfa":function(M,Y,o){M.exports={flex_box_center:"flex_box_center___24EuS",flex_space_between:"flex_space_between___H0sq_",flex_box_vertical_center:"flex_box_vertical_center___lroQv",flex_box_center_end:"flex_box_center_end___2zqAg",flex_box_column:"flex_box_column___1sePp",row:"row___FQAuJ",title:"title___1l3-g",tagsWrap:"tagsWrap___18FE-",action:"action___asdVT",bar:"bar___M_nl0",name:"name___BKyJY",active:"active___1eybt",tagsBorderWrap:"tagsBorderWrap___1NzgL"}},"7Cbv":function(M,Y,o){"use strict";var L=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),g=new Uint8Array(16);function A(){if(!L)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return L(g)}var b=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function y(t){return typeof t=="string"&&b.test(t)}for(var x=y,w=[],f=0;f<256;++f)w.push((f+256).toString(16).substr(1));function _(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(w[t[a+0]]+w[t[a+1]]+w[t[a+2]]+w[t[a+3]]+"-"+w[t[a+4]]+w[t[a+5]]+"-"+w[t[a+6]]+w[t[a+7]]+"-"+w[t[a+8]]+w[t[a+9]]+"-"+w[t[a+10]]+w[t[a+11]]+w[t[a+12]]+w[t[a+13]]+w[t[a+14]]+w[t[a+15]]).toLowerCase();if(!x(n))throw TypeError("Stringified UUID is invalid");return n}var d=_;function r(t,a,n){t=t||{};var i=t.random||(t.rng||A)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,a){n=n||0;for(var h=0;h<16;++h)a[n+h]=i[h];return a}return d(i)}var u=Y.a=r},"7ZXX":function(M,Y,o){M.exports=o.p+"static/err.6e7c5817.png"},"7ahc":function(M,Y,o){"use strict";o.d(Y,"a",function(){return O});var L=o("k1fw"),g=o("0Owb"),A=o("+L6B"),b=o("2/Rp"),y=o("y8nQ"),x=o("Vl3Y"),w=o("tJVT"),f=o("OaEy"),_=o("2fM7"),d=o("q1tI"),r=o.n(d),u=o("VrN/"),t=o.n(u),a=o("p77/"),n=o.n(a),i=o("c5Ni"),h=o.n(i),l=_.a.Option,s={labelCol:{span:4},wrapperCol:{span:20}},p={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"]};Y.b=function(S){var v=S.callback,P=S.onCancel,R=Object(d.useState)("python"),E=Object(w.a)(R,2),C=E[0],m=E[1];function T(D){m(p[D][1])}function I(D){v(D)}return r.a.createElement(x.a,Object(g.a)({},s,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:I}),r.a.createElement(x.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},r.a.createElement(_.a,{onChange:T},Object.keys(p).map(function(D){return r.a.createElement(l,{key:D,value:D},p[D][0])}))),r.a.createElement(x.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},r.a.createElement(O,{mode:C})),r.a.createElement("div",{className:"flex-container flex-end"},r.a.createElement(b.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),r.a.createElement(b.a,{type:"ghost",onClick:P},"\u53D6\u6D88")))};function O(S){var v=S.value,P=S.onChange,R=S.mode,E=S.options,C=E===void 0?{}:E,m=Object(d.useRef)(),T=Object(d.useState)(),I=Object(w.a)(T,2),D=I[0],N=I[1];return Object(d.useEffect)(function(){if(D){function z(F){var W=F.getValue();P&&P(W)}return D.on("change",z),function(){D.off("change",z)}}},[D,P]),Object(d.useEffect)(function(){D&&D.setOption("mode",R)},[D,R]),Object(d.useEffect)(function(){D&&((v!==D.getValue()||v==="")&&setTimeout(function(){D.setValue(v||" ")},300))},[D,v]),Object(d.useEffect)(function(){if(m.current&&!D){var z=t.a.fromTextArea(m.current,Object(L.a)({mode:R,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},C));N(z)}},[m.current,D]),r.a.createElement("div",{className:"my-codemirror-container"},r.a.createElement("textarea",{ref:m}))}},"7ixt":function(M,Y,o){"use strict";o.d(Y,"a",function(){return A});var L={adjustX:1,adjustY:1},g=[0,0],A={left:{points:["cr","cl"],overflow:L,offset:[-4,0],targetOffset:g},right:{points:["cl","cr"],overflow:L,offset:[4,0],targetOffset:g},top:{points:["bc","tc"],overflow:L,offset:[0,-4],targetOffset:g},bottom:{points:["tc","bc"],overflow:L,offset:[0,4],targetOffset:g},topLeft:{points:["bl","tl"],overflow:L,offset:[0,-4],targetOffset:g},leftTop:{points:["tr","tl"],overflow:L,offset:[-4,0],targetOffset:g},topRight:{points:["br","tr"],overflow:L,offset:[0,-4],targetOffset:g},rightTop:{points:["tl","tr"],overflow:L,offset:[4,0],targetOffset:g},bottomRight:{points:["tr","br"],overflow:L,offset:[0,4],targetOffset:g},rightBottom:{points:["bl","br"],overflow:L,offset:[4,0],targetOffset:g},bottomLeft:{points:["tl","bl"],overflow:L,offset:[0,4],targetOffset:g},leftBottom:{points:["br","bl"],overflow:L,offset:[-4,0],targetOffset:g}},b=A},"7v3h":function(M,Y,o){M.exports=o.p+"static/empty2.dd73f390.png"},"8/bI":function(M,Y,o){M.exports=o.p+"static/empty.8918e228.png"},"815F":function(M,Y,o){"use strict";o.d(Y,"e",function(){return w}),o.d(Y,"c",function(){return _}),o.d(Y,"d",function(){return d}),o.d(Y,"a",function(){return u}),o.d(Y,"f",function(){return t}),o.d(Y,"b",function(){return a});var L=o("KQm4"),g=o("VTBJ"),A=o("Ff2n"),b=o("Zm9Q"),y=o("Kwbf"),x=o("OZM5");function w(n,i){return n!=null?n:i}function f(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],i=new Map;function h(l){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(l||[]).forEach(function(p){var O=p.key,S=p.children;Object(y.a)(O!=null,"Tree node must have a certain key: [".concat(s).concat(O,"]"));var v=String(O);Object(y.a)(!i.has(v)||O===null||O===void 0,"Same 'key' exist in the Tree: ".concat(v)),i.set(v,!0),h(S,"".concat(s).concat(v," > "))})}h(n)}function _(n){function i(h){var l=Object(b.a)(h);return l.map(function(s){if(!Object(x.i)(s))return Object(y.a)(!s,"Tree/TreeNode can only accept TreeNode as children."),null;var p=s.key,O=s.props,S=O.children,v=Object(A.a)(O,["children"]),P=Object(g.a)({key:p},v),R=i(S);return R.length&&(P.children=R),P}).filter(function(s){return s})}return i(n)}function d(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],h=new Set(i===!0?[]:i),l=[];function s(p){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return p.map(function(S,v){var P=Object(x.h)(O?O.pos:"0",v),R=w(S.key,P),E=Object(g.a)(Object(g.a)({},S),{},{parent:O,pos:P,children:null,data:S,isStart:[].concat(Object(L.a)(O?O.isStart:[]),[v===0]),isEnd:[].concat(Object(L.a)(O?O.isEnd:[]),[v===p.length-1])});return l.push(E),i===!0||h.has(R)?E.children=s(S.children||[],E):E.children=[],E})}return s(n),l}function r(n,i,h){var l;h?typeof h=="string"?l=function(O){return O[h]}:typeof h=="function"&&(l=function(O){return h(O)}):l=function(O,S){return w(O.key,S)};function s(p,O,S){var v=p?p.children:n,P=p?Object(x.h)(S.pos,O):"0";if(p){var R=l(p,P),E={node:p,index:O,pos:P,key:R,parentPos:S.node?S.pos:null,level:S.level+1};i(E)}v&&v.forEach(function(C,m){s(C,m,{node:p,pos:P,level:S?S.level+1:-1})})}s(null)}function u(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=i.initWrapper,l=i.processEntity,s=i.onProcessFinished,p=arguments.length>2?arguments[2]:void 0,O={},S={},v={posEntities:O,keyEntities:S};return h&&(v=h(v)||v),r(n,function(P){var R=P.node,E=P.index,C=P.pos,m=P.key,T=P.parentPos,I=P.level,D={node:R,index:E,key:m,pos:C,level:I},N=w(m,C);O[C]=D,S[N]=D,D.parent=O[T],D.parent&&(D.parent.children=D.parent.children||[],D.parent.children.push(D)),l&&l(D,v)},p),s&&s(v),v}function t(n,i){var h=i.expandedKeys,l=i.selectedKeys,s=i.loadedKeys,p=i.loadingKeys,O=i.checkedKeys,S=i.halfCheckedKeys,v=i.dragOverNodeKey,P=i.dropPosition,R=i.keyEntities,E=R[n],C={eventKey:n,expanded:h.indexOf(n)!==-1,selected:l.indexOf(n)!==-1,loaded:s.indexOf(n)!==-1,loading:p.indexOf(n)!==-1,checked:O.indexOf(n)!==-1,halfChecked:S.indexOf(n)!==-1,pos:String(E?E.pos:""),dragOver:v===n&&P===0,dragOverGapTop:v===n&&P===-1,dragOverGapBottom:v===n&&P===1};return C}function a(n){var i=n.data,h=n.expanded,l=n.selected,s=n.checked,p=n.loaded,O=n.loading,S=n.halfChecked,v=n.dragOver,P=n.dragOverGapTop,R=n.dragOverGapBottom,E=n.pos,C=n.active,m=Object(g.a)(Object(g.a)({},i),{},{expanded:h,selected:l,checked:s,loaded:p,loading:O,halfChecked:S,dragOver:v,dragOverGapTop:P,dragOverGapBottom:R,pos:E,active:C});return"props"in m||Object.defineProperty(m,"props",{get:function(){return Object(y.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),n}}),m}},"8EBN":function(M,Y,o){(function(L){L(o("VrN/"))})(function(L){"use strict";L.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 g=0;g<L.modeInfo.length;g++){var A=L.modeInfo[g];A.mimes&&(A.mime=A.mimes[0])}L.findModeByMIME=function(b){b=b.toLowerCase();for(var y=0;y<L.modeInfo.length;y++){var x=L.modeInfo[y];if(x.mime==b)return x;if(x.mimes){for(var w=0;w<x.mimes.length;w++)if(x.mimes[w]==b)return x}}if(/\+xml$/.test(b))return L.findModeByMIME("application/xml");if(/\+json$/.test(b))return L.findModeByMIME("application/json")},L.findModeByExtension=function(b){b=b.toLowerCase();for(var y=0;y<L.modeInfo.length;y++){var x=L.modeInfo[y];if(x.ext){for(var w=0;w<x.ext.length;w++)if(x.ext[w]==b)return x}}},L.findModeByFileName=function(b){for(var y=0;y<L.modeInfo.length;y++){var x=L.modeInfo[y];if(x.file&&x.file.test(b))return x}var w=b.lastIndexOf("."),f=w>-1&&b.substring(w+1,b.length);if(f)return L.findModeByExtension(f)},L.findModeByName=function(b){b=b.toLowerCase();for(var y=0;y<L.modeInfo.length;y++){var x=L.modeInfo[y];if(x.name.toLowerCase()==b)return x;if(x.alias){for(var w=0;w<x.alias.length;w++)if(x.alias[w].toLowerCase()==b)return x}}}})},"8WcF":function(M,Y,o){M.exports={flex_box_center:"flex_box_center___2fahw",flex_space_between:"flex_space_between___1h4HM",flex_box_vertical_center:"flex_box_vertical_center___2kxeE",flex_box_center_end:"flex_box_center_end___OjPB4",flex_box_column:"flex_box_column___3zY1h",orderWrap:"orderWrap___VQuq1",orderIconWrap:"orderIconWrap___18q7W",orderAsc:"orderAsc___3WBGg",orderDesc:"orderDesc____ipxK",active:"active___3EMfI",cursorPointer:"cursorPointer___3og_L",orderTextWrap:"orderTextWrap___XQlmv"}},"8hTe":function(M,Y,o){M.exports={button:"button___1wy9m"}},"8j3D":function(M,Y,o){"use strict";var L=o("2qtc"),g=o("kLXV"),A=o("5NDa"),b=o("5rEg"),y=o("miYZ"),x=o("tsqr"),w=o("k1fw"),f=o("9og8"),_=o("y8nQ"),d=o("Vl3Y"),r=o("tJVT"),u=o("WmNS"),t=o.n(u),a=o("q1tI"),n=o.n(a),i=o("Ty5D"),h=o("9kvl"),l=o("KVXO"),s=o.n(l),p=function(S){var v=S.shixunsDetail,P=S.globalSetting,R=S.loading,E=S.dispatch,C=S.title,m=S.pathList,T=m===void 0?[]:m,I=S.showInputPath,D=I===void 0?!1:I,N=S.isMergeSelectFile,z=N===void 0?!1:N,F=S.onFinish,W=F===void 0?function(){}:F,K=d.a.useForm(),B=Object(r.a)(K,1),k=B[0],G=Object(i.i)(),ne=Object(i.h)(),fe=Object(a.useRef)(),de=Object(a.useState)(""),xe=Object(r.a)(de,2),Oe=xe[0],ce=xe[1],be=Object(a.useState)(""),ve=Object(r.a)(be,2),ue=ve[0],se=ve[1],q=Object(a.useState)([]),me=Object(r.a)(q,2),re=me[0],ie=me[1],we=Object(a.useState)([]),le=Object(r.a)(we,2),$=le[0],J=le[1];Object(a.useEffect)(function(){var ot,gt;fe.current=((ot=ne.pathname)===null||ot===void 0||((gt=ot.split("/"))===null||gt===void 0)?void 0:gt[3])==="repository"},[]),Object(a.useEffect)(function(){if(v.actionTabs.key!=="Repository-SelectFilePath")return;var ot=T.join("/"),gt=[];T.map(function(Et,xt){xt===0?gt.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(Et),path:ot}):gt.push({val:"/".concat(Et),path:ot})}),ie(gt),ce(ot),se(ot),te(ot)},[v.actionTabs.key]);var te=function(){var ot=Object(f.a)(t.a.mark(function gt(Et){var xt;return t.a.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:return Je.next=2,E({type:fe.current?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:G.id,path:Et}});case 2:xt=Je.sent,xt&&J(xt.trees||[]);case 4:case"end":return Je.stop()}},gt)}));return function(Et){return ot.apply(this,arguments)}}(),De=function(gt){var Et=Oe;gt.type==="tree"&&(re.length?re.push({val:"/".concat(gt.name),path:gt.name}):re.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(gt.name),path:gt.name}),ie(re),Et=Oe?"".concat(Oe,"/").concat(gt.name):gt.name,ce(Et)),te(Et)},Te=function(gt,Et){var xt=re.filter(function(Je,Ue){return Ue<=Et});ie(xt);var St=xt.filter(function(Je,Ue){return Ue!==0}).map(function(Je){return Je.val}).join("").substr(1);ce(St),te(St)},ke=function(){var ot=Object(f.a)(t.a.mark(function gt(){var Et,xt,St;return t.a.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:if(Et=k==null?void 0:k.getFieldsValue(),xt=Oe?"".concat(Oe).concat(Et!=null&&Et.name?"/".concat(Et==null?void 0:Et.name):""):Et==null?void 0:Et.name,!z){Ue.next=6;break}return W(xt),tt(),Ue.abrupt("return");case 6:if(!D){Ue.next=16;break}return Ue.next=9,k.validateFields();case 9:return Ue.next=11,E({type:"shixunsDetail/uploadGitFolder",payload:Object(w.a)(Object(w.a)({},{id:G.id,path:xt}),fe.current?{}:{secret_repository:!0})});case 11:St=Ue.sent,W(ue),St.status===0&&x.b.info("\u65B0\u5EFA\u6210\u529F"),Ue.next=18;break;case 16:W(xt),x.b.success("\u9009\u62E9\u6587\u4EF6\u76EE\u5F55\u6210\u529F");case 18:tt();case 19:case"end":return Ue.stop()}},gt)}));return function(){return ot.apply(this,arguments)}}(),tt=function(){E({type:"shixunsDetail/setActionTabs",payload:{}}),k.resetFields()};return n.a.createElement(g.a,{centered:!0,title:C||"\u65B0\u5EFA\u6587\u4EF6\u5939",closable:!1,keyboard:!1,visible:v.actionTabs.key==="Repository-SelectFilePath",onOk:ke,onCancel:tt},n.a.createElement("div",{className:s.a.wrap},n.a.createElement("div",{className:s.a.content},n.a.createElement("div",{className:s.a.mainPathWrap},!!(re!=null&&re.length)&&re.map(function(ot,gt){return n.a.createElement("a",{key:gt,onClick:function(){return Te(ot,gt)}},ot.val)})),!!($!=null&&$.length)&&$.map(function(ot,gt){return ot.type==="tree"&&n.a.createElement("a",{key:gt,onClick:function(){return De(ot)}},n.a.createElement("i",{className:"iconfont icon-wenjianjia ".concat(s.a.colorBlue)}),ot.name)})),n.a.createElement("label",{className:"mt5"},"\u9009\u4E2D\u7684\u65B0\u5EFA\u6587\u4EF6\u5939\u76EE\u5F55\uFF1A"),n.a.createElement("div",{className:"mt5 mb5"},Oe),D&&n.a.createElement(d.a,{form:k,scrollToFirstError:!0,className:"mt20"},n.a.createElement(d.a.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},n.a.createElement(b.a,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u6587\u4EF6\u5939\u540D/\u5B50\u6587\u4EF6\u5939\u540D\u3002\uFF08\u5982\uFF1Asrc/step1\uFF09"})))))};Y.a=Object(h.a)(function(O){var S=O.shixunsDetail,v=O.loading,P=O.globalSetting;return{shixunsDetail:S,globalSetting:P,loading:v.models.index}})(p)},"8mKB":function(M,Y,o){"use strict";var L=o("rePB"),g=o("1OyB"),A=o("vuIU"),b=o("Ji7U"),y=o("md7G"),x=o("foSv"),w=o("q1tI"),f=o.n(w),_=o("m+aA"),d=o("TSYQ"),r=o.n(d),u=o("4IlW");function t(C){var m=C.pageXOffset,T="scrollLeft";if(typeof m!="number"){var I=C.document;m=I.documentElement[T],typeof m!="number"&&(m=I.body[T])}return m}function a(C){var m,T,I=C.ownerDocument,D=I.body,N=I&&I.documentElement,z=C.getBoundingClientRect();return m=z.left,T=z.top,m-=N.clientLeft||D.clientLeft||0,T-=N.clientTop||D.clientTop||0,{left:m,top:T}}function n(C){var m=a(C),T=C.ownerDocument,I=T.defaultView||T.parentWindow;return m.left+=t(I),m.left}function i(C){var m=h();return function(){var I=Object(x.a)(C),D;if(m){var N=Object(x.a)(this).constructor;D=Reflect.construct(I,arguments,N)}else D=I.apply(this,arguments);return Object(y.a)(this,D)}}function h(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(C){return!1}}var l=function(C){Object(b.a)(T,C);var m=i(T);function T(){var I;return Object(g.a)(this,T),I=m.apply(this,arguments),I.onHover=function(D){var N=I.props,z=N.onHover,F=N.index;z(D,F)},I.onClick=function(D){var N=I.props,z=N.onClick,F=N.index;z(D,F)},I.onKeyDown=function(D){var N=I.props,z=N.onClick,F=N.index;D.keyCode===13&&z(D,F)},I}return Object(A.a)(T,[{key:"getClassName",value:function(){var D=this.props,N=D.prefixCls,z=D.index,F=D.value,W=D.allowHalf,K=D.focused,B=z+1,k=N;return F===0&&z===0&&K?k+=" ".concat(N,"-focused"):W&&F+.5>=B&&F<B?(k+=" ".concat(N,"-half ").concat(N,"-active"),K&&(k+=" ".concat(N,"-focused"))):(k+=B<=F?" ".concat(N,"-full"):" ".concat(N,"-zero"),B===F&&K&&(k+=" ".concat(N,"-focused"))),k}},{key:"render",value:function(){var D=this.onHover,N=this.onClick,z=this.onKeyDown,F=this.props,W=F.disabled,K=F.prefixCls,B=F.character,k=F.characterRender,G=F.index,ne=F.count,fe=F.value,de=typeof B=="function"?B(this.props):B,xe=f.a.createElement("li",{className:this.getClassName()},f.a.createElement("div",{onClick:W?null:N,onKeyDown:W?null:z,onMouseMove:W?null:D,role:"radio","aria-checked":fe>G?"true":"false","aria-posinset":G+1,"aria-setsize":ne,tabIndex:W?-1:0},f.a.createElement("div",{className:"".concat(K,"-first")},de),f.a.createElement("div",{className:"".concat(K,"-second")},de)));return k&&(xe=k(xe,this.props)),xe}}]),T}(f.a.Component);function s(C,m){var T=Object.keys(C);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(C);m&&(I=I.filter(function(D){return Object.getOwnPropertyDescriptor(C,D).enumerable})),T.push.apply(T,I)}return T}function p(C){for(var m=1;m<arguments.length;m++){var T=arguments[m]!=null?arguments[m]:{};m%2?s(Object(T),!0).forEach(function(I){Object(L.a)(C,I,T[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(T)):s(Object(T)).forEach(function(I){Object.defineProperty(C,I,Object.getOwnPropertyDescriptor(T,I))})}return C}function O(C){var m=S();return function(){var I=Object(x.a)(C),D;if(m){var N=Object(x.a)(this).constructor;D=Reflect.construct(I,arguments,N)}else D=I.apply(this,arguments);return Object(y.a)(this,D)}}function S(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(C){return!1}}function v(){}var P=function(C){Object(b.a)(T,C);var m=O(T);function T(I){var D;Object(g.a)(this,T),D=m.call(this,I),D.onHover=function(z,F){var W=D.props.onHoverChange,K=D.getStarValue(F,z.pageX),B=D.state.cleanedValue;K!==B&&D.setState({hoverValue:K,cleanedValue:null}),W(K)},D.onMouseLeave=function(){var z=D.props.onHoverChange;D.setState({hoverValue:void 0,cleanedValue:null}),z(void 0)},D.onClick=function(z,F){var W=D.props.allowClear,K=D.state.value,B=D.getStarValue(F,z.pageX),k=!1;W&&(k=B===K),D.onMouseLeave(),D.changeValue(k?0:B),D.setState({cleanedValue:k?B:null})},D.onFocus=function(){var z=D.props.onFocus;D.setState({focused:!0}),z&&z()},D.onBlur=function(){var z=D.props.onBlur;D.setState({focused:!1}),z&&z()},D.onKeyDown=function(z){var F=z.keyCode,W=D.props,K=W.count,B=W.allowHalf,k=W.onKeyDown,G=W.direction,ne=G==="rtl",fe=D.state.value;F===u.a.RIGHT&&fe<K&&!ne?(B?fe+=.5:fe+=1,D.changeValue(fe),z.preventDefault()):F===u.a.LEFT&&fe>0&&!ne||F===u.a.RIGHT&&fe>0&&ne?(B?fe-=.5:fe-=1,D.changeValue(fe),z.preventDefault()):F===u.a.LEFT&&fe<K&&ne&&(B?fe+=.5:fe+=1,D.changeValue(fe),z.preventDefault()),k&&k(z)},D.saveRef=function(z){return function(F){D.stars[z]=F}},D.saveRate=function(z){D.rate=z};var N=I.value;return N===void 0&&(N=I.defaultValue),D.stars={},D.state={value:N,focused:!1,cleanedValue:null},D}return Object(A.a)(T,[{key:"componentDidMount",value:function(){var D=this.props,N=D.autoFocus,z=D.disabled;N&&!z&&this.focus()}},{key:"getStarDOM",value:function(D){return Object(_.a)(this.stars[D])}},{key:"getStarValue",value:function(D,N){var z=this.props,F=z.allowHalf,W=z.direction,K=W==="rtl",B=D+1;if(F){var k=this.getStarDOM(D),G=n(k),ne=k.clientWidth;(K&&N-G>ne/2||!K&&N-G<ne/2)&&(B-=.5)}return B}},{key:"focus",value:function(){var D=this.props.disabled;D||this.rate.focus()}},{key:"blur",value:function(){var D=this.props.disabled;D||this.rate.blur()}},{key:"changeValue",value:function(D){var N=this.props.onChange;"value"in this.props||this.setState({value:D}),N(D)}},{key:"render",value:function(){for(var D=this.props,N=D.count,z=D.allowHalf,F=D.style,W=D.prefixCls,K=D.disabled,B=D.className,k=D.character,G=D.characterRender,ne=D.tabIndex,fe=D.direction,de=this.state,xe=de.value,Oe=de.hoverValue,ce=de.focused,be=[],ve=K?"".concat(W,"-disabled"):"",ue=0;ue<N;ue+=1)be.push(f.a.createElement(l,{ref:this.saveRef(ue),index:ue,count:N,disabled:K,prefixCls:"".concat(W,"-star"),allowHalf:z,value:Oe===void 0?xe:Oe,onClick:this.onClick,onHover:this.onHover,key:ue,character:k,characterRender:G,focused:ce}));var se=r()(W,ve,B,Object(L.a)({},"".concat(W,"-rtl"),fe==="rtl"));return f.a.createElement("ul",{className:se,style:F,onMouseLeave:K?null:this.onMouseLeave,tabIndex:K?-1:ne,onFocus:K?null:this.onFocus,onBlur:K?null:this.onBlur,onKeyDown:K?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},be)}}],[{key:"getDerivedStateFromProps",value:function(D,N){return"value"in D&&D.value!==void 0?p(p({},N),{},{value:D.value}):N}}]),T}(f.a.Component);P.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:"rc-rate",onChange:v,character:"\u2605",onHoverChange:v,tabIndex:0,direction:"ltr"};var R=P,E=Y.a=R},"9Bee":function(M,Y,o){"use strict";var L=o("DYRE"),g=o("zeV3"),A=o("+L6B"),b=o("2/Rp"),y=o("k1fw"),x=o("9og8"),w=o("tJVT"),f=o("WmNS"),_=o.n(f),d=o("q1tI"),r=o.n(d),u=o("vg9a"),t=o("DlQD"),a=o.n(t),n=o("rUJ1");function i(pe,V){var Z=pe.match(/^(\s+)(?:```)/);if(Z===null)return V;var oe=Z[1];return V.split(`
`).map(function(Ce){var he=Ce.match(/^\s+/);if(he===null)return Ce;var ct=Object(w.a)(he,1),rn=ct[0];return rn.length>=oe.length?Ce.slice(oe.length):Ce}).join(`
`)}var h=[],l=["<ul>"],s=new a.a.Renderer,p=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function O(){h.length=0,l=["<ul>"]}var S={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function v(pe,V,Z,oe){if(V>=pe.length||pe[V].level<=Z)return V;var Ce=pe[V];oe.push("<li><a href='#"+Ce.anchor+"'>"+Ce.text+"</a>"),V++;var he=[];return V=v(pe,V,Ce.level,he),he.length>0&&(oe.push("<ul>"),he.forEach(function(ct){oe.push(ct)}),oe.push("</ul>")),oe.push("</li>"),V=v(pe,V,Z,oe),V}function P(){return v(h,0,0,l),l.push("</ul>"),l.join("")}var R={heading:function(V){var Z=p.exec(V);if(Z)return{type:"heading",raw:Z[0],depth:Z[1].length,text:Z[2]}},fences:function(V){var Z=this.rules.block.fences.exec(V);if(Z){var oe=Z[0],Ce=i(oe,Z[3]||""),he=Z[2]?Z[2].trim():Z[2];if(["latex","katex","math"].indexOf(he)>=0){var ct=m(),rn=Ce;Ce=ct,T[ct]={type:"block",expression:rn}}return{type:"code",raw:oe,lang:he,text:Ce}}}},E=/(?:\${2})([^\n`]+?)(?:\${2})/gi,C=0,m=function(){return"__special_katext_id_".concat(C++,"__")},T={};function I(){return T}function D(){C=0,T={}}function N(pe){return pe=pe.replace(E,function(V,Z){var oe=m();return T[oe]={type:"inline",expression:Z},oe}),pe}var z=s.listitem;s.listitem=function(pe){return z(N(pe))};var F=s.paragraph;s.paragraph=function(pe){return F(N(pe))};var W=s.tablecell;s.tablecell=function(pe,V){return W(N(pe),V)},s.code=function(pe,V,Z){var oe=(V||"").match(/\S*/)[0];return oe?["latex","katex","math"].indexOf(oe)>=0?"<p class='editormd-tex'>".concat(pe,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(V,'">').concat(Z?pe:Object(n.escape)(pe,!0),`</code></pre>
`):'<pre class="prettyprint linenums"><code>'+(Z?pe:Object(n.escape)(pe,!0))+"</code></pre>"},s.heading=function(pe,V,Z){var oe=this.options.headerPrefix+Z.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return h.push({anchor:oe,level:V,text:pe}),"<h"+V+' id="'+oe+'">'+pe+"</h"+V+">"},a.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),a.a.use({tokenizer:R,renderer:s});var K=a.a,B=o("SJMd"),k=o("ulZh"),G=o.n(k),ne=o("m3rI"),fe=o("Oy/b"),de=o("p5ED"),xe=o("ErOA");/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
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 Oe=function(pe,V){return(Oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Z,oe){Z.__proto__=oe}||function(Z,oe){for(var Ce in oe)Object.prototype.hasOwnProperty.call(oe,Ce)&&(Z[Ce]=oe[Ce])})(pe,V)};function ce(pe,V){function Z(){this.constructor=pe}Oe(pe,V),pe.prototype=V===null?Object.create(V):(Z.prototype=V.prototype,new Z)}function be(pe,V,Z,oe){return new(Z||(Z=Promise))(function(Ce,he){function ct(Vn){try{In(oe.next(Vn))}catch(tn){he(tn)}}function rn(Vn){try{In(oe.throw(Vn))}catch(tn){he(tn)}}function In(Vn){var tn;Vn.done?Ce(Vn.value):(tn=Vn.value,tn instanceof Z?tn:new Z(function(En){En(tn)})).then(ct,rn)}In((oe=oe.apply(pe,V||[])).next())})}function ve(pe,V){var Z,oe,Ce,he,ct={label:0,sent:function(){if(1&Ce[0])throw Ce[1];return Ce[1]},trys:[],ops:[]};return he={next:rn(0),throw:rn(1),return:rn(2)},typeof Symbol=="function"&&(he[Symbol.iterator]=function(){return this}),he;function rn(In){return function(Vn){return function(tn){if(Z)throw new TypeError("Generator is already executing.");for(;ct;)try{if(Z=1,oe&&(Ce=2&tn[0]?oe.return:tn[0]?oe.throw||((Ce=oe.return)&&Ce.call(oe),0):oe.next)&&!(Ce=Ce.call(oe,tn[1])).done)return Ce;switch(oe=0,Ce&&(tn=[2&tn[0],Ce.value]),tn[0]){case 0:case 1:Ce=tn;break;case 4:return ct.label++,{value:tn[1],done:!1};case 5:ct.label++,oe=tn[1],tn=[0];continue;case 7:tn=ct.ops.pop(),ct.trys.pop();continue;default:if(!(Ce=ct.trys,(Ce=Ce.length>0&&Ce[Ce.length-1])||tn[0]!==6&&tn[0]!==2)){ct=0;continue}if(tn[0]===3&&(!Ce||tn[1]>Ce[0]&&tn[1]<Ce[3])){ct.label=tn[1];break}if(tn[0]===6&&ct.label<Ce[1]){ct.label=Ce[1],Ce=tn;break}if(Ce&&ct.label<Ce[2]){ct.label=Ce[2],ct.ops.push(tn);break}Ce[2]&&ct.ops.pop(),ct.trys.pop();continue}tn=V.call(pe,ct)}catch(En){tn=[6,En],oe=0}finally{Z=Ce=0}if(5&tn[0])throw tn[1];return{value:tn[0]?tn[1]:void 0,done:!0}}([In,Vn])}}}function ue(){for(var pe=0,V=0,Z=arguments.length;V<Z;V++)pe+=arguments[V].length;var oe=Array(pe),Ce=0;for(V=0;V<Z;V++)for(var he=arguments[V],ct=0,rn=he.length;ct<rn;ct++,Ce++)oe[Ce]=he[ct];return oe}var se=function(){function pe(){}return pe.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},pe.setAttributes=function(V,Z){for(var oe=0,Ce=Z;oe<Ce.length;oe++){var he=Ce[oe],ct=he[0],rn=he[1];V.setAttribute(ct,rn)}},pe.createRect=function(V,Z,oe){var Ce=document.createElementNS("http://www.w3.org/2000/svg","rect");return Ce.setAttribute("width",V.toString()),Ce.setAttribute("height",Z.toString()),oe&&pe.setAttributes(Ce,oe),Ce},pe.createLine=function(V,Z,oe,Ce,he){var ct=document.createElementNS("http://www.w3.org/2000/svg","line");return ct.setAttribute("x1",V.toString()),ct.setAttribute("y1",Z.toString()),ct.setAttribute("x2",oe.toString()),ct.setAttribute("y2",Ce.toString()),he&&pe.setAttributes(ct,he),ct},pe.createPolygon=function(V,Z){var oe=document.createElementNS("http://www.w3.org/2000/svg","polygon");return oe.setAttribute("points",V),Z&&pe.setAttributes(oe,Z),oe},pe.createCircle=function(V,Z){var oe=document.createElementNS("http://www.w3.org/2000/svg","circle");return oe.setAttribute("cx",(V/2).toString()),oe.setAttribute("cy",(V/2).toString()),oe.setAttribute("r",V.toString()),Z&&pe.setAttributes(oe,Z),oe},pe.createEllipse=function(V,Z,oe){var Ce=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Ce.setAttribute("cx",(V/2).toString()),Ce.setAttribute("cy",(Z/2).toString()),Ce.setAttribute("rx",(V/2).toString()),Ce.setAttribute("ry",(Z/2).toString()),oe&&pe.setAttributes(Ce,oe),Ce},pe.createGroup=function(V){var Z=document.createElementNS("http://www.w3.org/2000/svg","g");return V&&pe.setAttributes(Z,V),Z},pe.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},pe.createMarker=function(V,Z,oe,Ce,he,ct,rn){var In=document.createElementNS("http://www.w3.org/2000/svg","marker");return pe.setAttributes(In,[["id",V],["orient",Z],["markerWidth",oe.toString()],["markerHeight",Ce.toString()],["refX",he.toString()],["refY",ct.toString()]]),In.appendChild(rn),In},pe.createText=function(V){var Z=document.createElementNS("http://www.w3.org/2000/svg","text");return Z.setAttribute("x","0"),Z.setAttribute("y","0"),V&&pe.setAttributes(Z,V),Z},pe.createTSpan=function(V,Z){var oe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return oe.textContent=V,Z&&pe.setAttributes(oe,Z),oe},pe.createImage=function(V){var Z=document.createElementNS("http://www.w3.org/2000/svg","image");return V&&pe.setAttributes(Z,V),Z},pe.createPoint=function(V,Z){var oe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return oe.x=V,oe.y=Z,oe},pe.createPath=function(V,Z){var oe=document.createElementNS("http://www.w3.org/2000/svg","path");return oe.setAttribute("d",V),Z&&pe.setAttributes(oe,Z),oe},pe}(),q=function(){function pe(){}return pe.addKey=function(V){pe.key=V},Object.defineProperty(pe,"isLicensed",{get:function(){return!!pe.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(pe.key)},enumerable:!1,configurable:!0}),pe}(),me=function(){function pe(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return pe.prototype.rasterize=function(V,Z,oe){var Ce=this;return new Promise(function(he){var ct=oe!==void 0?oe:document.createElement("canvas");V===null&&(Ce.markersOnly=!0,Ce.naturalSize=!1);var rn=document.createElementNS("http://www.w3.org/2000/svg","svg");rn.setAttribute("xmlns","http://www.w3.org/2000/svg"),rn.setAttribute("width",Z.width.baseVal.valueAsString),rn.setAttribute("height",Z.height.baseVal.valueAsString),rn.setAttribute("viewBox","0 0 "+Z.viewBox.baseVal.width.toString()+" "+Z.viewBox.baseVal.height.toString()),rn.innerHTML=Z.innerHTML,Ce.naturalSize===!0?(rn.width.baseVal.value=V.naturalWidth,rn.height.baseVal.value=V.naturalHeight):Ce.width!==void 0&&Ce.height!==void 0&&(rn.width.baseVal.value=Ce.width,rn.height.baseVal.value=Ce.height),ct.width=rn.width.baseVal.value,ct.height=rn.height.baseVal.value;var In=rn.outerHTML,Vn=ct.getContext("2d");Ce.markersOnly!==!0&&Vn.drawImage(V,0,0,ct.width,ct.height);var tn=window.URL,En=new Image(ct.width,ct.height);En.setAttribute("crossOrigin","anonymous");var Xn=new Blob([In],{type:"image/svg+xml"}),$r=tn.createObjectURL(Xn);En.onload=function(){Vn.drawImage(En,0,0),tn.revokeObjectURL($r);var ga=ct.toDataURL(Ce.imageType,Ce.imageQuality);he(ga)},En.src=$r})},pe}(),re=function(){},ie=function(){function pe(V){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+V+"_"}return Object.defineProperty(pe.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),pe.prototype.addClass=function(V){return this.styleSheet===void 0&&this.addStyleSheet(),V.name=""+this.classNamePrefix+V.localName,this.classes.push(V),this.styleSheet.sheet.insertRule("."+V.name+" {"+V.style+"}",this.styleSheet.sheet.cssRules.length),V},pe.prototype.addRule=function(V){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(V),this.styleSheet.sheet.insertRule(V.selector+" {"+V.style+"}",this.styleSheet.sheet.cssRules.length)},pe.prototype.addStyleSheet=function(){var V;this.styleSheet=document.createElement("style"),((V=this.styleSheetRoot)!==null&&V!==void 0?V:document.head).appendChild(this.styleSheet),this.addRule(new we("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new we("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new we("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new le("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new le("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},pe.prototype.removeStyleSheet=function(){var V;this.styleSheet&&(((V=this.styleSheetRoot)!==null&&V!==void 0?V:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},pe}(),we=function(pe,V){this.selector=pe,this.style=V},le=function(pe,V){this.localName=pe,this.style=V},$=function(){function pe(V,Z,oe,Ce,he){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=V,this.displayMode=Z,this.markerItems=oe,this.uiStyleSettings=Ce,this.styles=he,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return pe.prototype.show=function(V){var Z=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=V,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var oe=document.createElement("div");oe.className=this.toolbarBlockStyleClass.name,oe.style.whiteSpace="nowrap",this.uiContainer.appendChild(oe),this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(he){var ct=document.createElement("div");ct.className=""+Z.toolbarButtonStyleClass.name,ct.setAttribute("data-type-name",he.typeName),ct.innerHTML=he.icon,ct.addEventListener("click",function(){Z.markerToolbarButtonClicked(ct,he)}),Z.buttons.push(ct),Z.markerButtons.push(ct)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var Ce=document.createElement("div");Ce.className=this.toolbarBlockStyleClass.name,Ce.style.whiteSpace="nowrap",Ce.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Ce),this.addActionButton(Ce,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(Ce,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},pe.prototype.addButtonClickListener=function(V){this.buttonClickListeners.push(V)},pe.prototype.removeButtonClickListener=function(V){this.buttonClickListeners.indexOf(V)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(V),1)},pe.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},pe.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var V=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var Z=0;Z<this.markerButtons.length;Z++)Z<V||Z===V&&this.markerButtons.length-1===V?this.markerButtonBlock.appendChild(this.markerButtons[Z]):(Z===V&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[Z]))}},pe.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},pe.prototype.resetButtonStyles=function(){var V=this;this.buttons.forEach(function(Z){Z.className=Z.className.replace(V.uiStyleSettings.toolbarButtonStyleColorsClassName?V.uiStyleSettings.toolbarButtonStyleColorsClassName:V.toolbarButtonStyleColorsClass.name,"").trim(),Z.className=Z.className.replace(V.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?V.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:V.toolbarActiveButtonStyleColorsClass.name,"").trim(),Z.className+=" "+(V.uiStyleSettings.toolbarButtonStyleColorsClassName?V.uiStyleSettings.toolbarButtonStyleColorsClassName:V.toolbarButtonStyleColorsClass.name)})},pe.prototype.addActionButton=function(V,Z,oe){var Ce=this,he=document.createElement("div");switch(he.className=""+this.toolbarButtonStyleClass.name,he.innerHTML=Z,he.setAttribute("data-action",oe),he.addEventListener("click",function(){Ce.actionToolbarButtonClicked(he,oe)}),oe){case"select":he.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":he.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":he.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":he.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":he.style.fill=this.uiStyleSettings.closeButtonColor}V.appendChild(he),this.buttons.push(he)},pe.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new le("toolbar",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.uiStyleSettings.toolbarHeight+`px;
box-sizing: content-box;
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new le("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new le("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new le("toolbar-overflow-block",`
position: absolute;
top: `+this.uiStyleSettings.toolbarHeight+`px;
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
z-index: 10;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new le("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var V=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new le("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*V)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*V)+`px;
padding: `+V+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new le("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new le("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new we("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new we("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},pe.prototype.markerToolbarButtonClicked=function(V,Z){this.setActiveButton(V),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(oe){return oe("marker",Z)}),this.markerButtonOverflowBlock.style.display="none"},pe.prototype.actionToolbarButtonClicked=function(V,Z){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(oe){return oe("action",Z)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},pe.prototype.setActiveButton=function(V){this.resetButtonStyles(),V.className=V.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),V.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},pe.prototype.setActiveMarkerButton=function(V){var Z=this.markerButtons.find(function(oe){return oe.getAttribute("data-type-name")===V});Z&&this.setActiveButton(Z)},pe.prototype.setCurrentMarker=function(V){var Z=this;this.currentMarker=V,this.buttons.filter(function(oe){return/delete|notes/.test(oe.getAttribute("data-action"))}).forEach(function(oe){Z.currentMarker===void 0?(oe.style.fillOpacity="0.4",oe.style.pointerEvents="none"):(oe.style.fillOpacity="1",oe.style.pointerEvents="all")})},pe}(),J=function(){function pe(V,Z,oe,Ce){this.panels=[],this.panelButtons=[],this.markerjsContainer=V,this.displayMode=Z,this.uiStyleSettings=oe,this.styles=Ce,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return pe.prototype.addStyles=function(){var V;this.toolboxStyleClass=this.styles.addClass(new le("toolbox",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: column;
font-family: sans-serif;
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
box-sizing: content-box;
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolboxStyleColorsClass=this.styles.addClass(new le("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var Z=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new le("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new le("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new le("toolbox-panel-row",`
display: flex;
`+(this.displayMode==="inline"?"position: absolute;":"")+`
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
cursor: default;
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
`+(this.displayMode==="inline"?"width: 100%;":"")+`
box-sizing: content-box;
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new le("toolbox-panel-row_colors",`
background-color: `+((V=this.uiStyleSettings.toolboxBackgroundColor)!==null&&V!==void 0?V:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new le("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*Z)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*Z)+`px;
padding: `+Z+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new le("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new le("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new we("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new we("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},pe.prototype.show=function(V){var Z;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=V,this.uiContainer.className=this.toolboxStyleClass.name+" "+((Z=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&Z!==void 0?Z:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},pe.prototype.setPanelButtons=function(V){var Z,oe,Ce=this;this.panels=V,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((Z=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&Z!==void 0?Z:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((oe=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&oe!==void 0?oe:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(he){var ct;he.uiStyleSettings=Ce.uiStyleSettings;var rn=document.createElement("div");rn.className=Ce.toolboxButtonStyleClass.name+" "+((ct=Ce.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ct!==void 0?ct:Ce.toolboxButtonStyleColorsClass.name),rn.innerHTML=he.icon,rn.title=he.title,rn.addEventListener("click",function(){Ce.panelButtonClick(he)}),Ce.panelButtons.push(rn),Ce.buttonRow.appendChild(rn)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},pe.prototype.panelButtonClick=function(V){var Z=this,oe=-1;if(V!==this.activePanel){oe=this.panels.indexOf(V),this.panelRow.innerHTML="";var Ce=V.getUi();Ce.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Ce),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=V}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){Z.displayMode==="inline"?Z.panelRow.style.display="none":Z.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(he,ct){var rn,In;he.className=Z.toolboxButtonStyleClass.name+" "+(ct===oe?""+((rn=Z.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&rn!==void 0?rn:Z.toolboxActiveButtonStyleColorsClass.name):""+((In=Z.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&In!==void 0?In:Z.toolboxButtonStyleColorsClass.name))})},pe}(),te=function(pe,V){this.title=pe,this.icon=V},De=function(pe){function V(Z,oe,Ce,he){var ct=pe.call(this,Z,he||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return ct.colors=[],ct.addTransparent=!1,ct.colorBoxes=[],ct.colors=oe,ct.currentColor=Ce,ct.setCurrentColor=ct.setCurrentColor.bind(ct),ct.getColorBox=ct.getColorBox.bind(ct),ct}return ce(V,pe),V.prototype.getUi=function(){var Z=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.whiteSpace="nowrap",this.colors.forEach(function(Ce){var he=Z.getColorBox(Ce);oe.appendChild(he),Z.colorBoxes.push(he)}),oe},V.prototype.getColorBox=function(Z){var oe=this,Ce=this.uiStyleSettings.toolbarHeight/4,he=this.uiStyleSettings.toolbarHeight-Ce,ct=document.createElement("div");ct.style.display="inline-block",ct.style.boxSizing="content-box",ct.style.width=he-2+"px",ct.style.height=he-2+"px",ct.style.padding="1px",ct.style.marginRight="2px",ct.style.marginBottom="2px",ct.style.borderWidth="2px",ct.style.borderStyle="solid",ct.style.borderRadius=(he+2)/2+"px",ct.style.borderColor=Z===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ct.addEventListener("click",function(){oe.setCurrentColor(Z,ct)});var rn=document.createElement("div");return rn.style.display="inline-block",rn.style.width=he-2+"px",rn.style.height=he-2+"px",rn.style.backgroundColor=Z,rn.style.borderRadius=he/2+"px",Z==="transparent"&&(rn.style.fill=this.uiStyleSettings.toolboxAccentColor,rn.innerHTML=`<svg viewBox="0 0 24 24">
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
</svg>`),ct.appendChild(rn),ct},V.prototype.setCurrentColor=function(Z,oe){var Ce=this;this.currentColor=Z,this.colorBoxes.forEach(function(he){he.style.borderColor=he===oe?Ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(Z)},V}(te),Te=function(){function pe(V,Z,oe){this._state="new",this._isSelected=!1,this._container=V,this._overlayContainer=Z,this.globalSettings=oe,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(pe.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),pe.prototype.ownsTarget=function(V){return!1},Object.defineProperty(pe.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),pe.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},pe.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},pe.prototype.pointerDown=function(V,Z){},pe.prototype.dblClick=function(V,Z){},pe.prototype.manipulate=function(V){},pe.prototype.pointerUp=function(V){this.stateChanged()},pe.prototype.dispose=function(){},pe.prototype.addMarkerVisualToContainer=function(V){this.container.childNodes.length>0?this.container.insertBefore(V,this.container.childNodes[0]):this.container.appendChild(V)},pe.prototype.getState=function(){return{typeName:pe.typeName,state:this.state,notes:this.notes}},pe.prototype.restoreState=function(V){this._state=V.state,this.notes=V.notes},pe.prototype.scale=function(V,Z){},pe.prototype.colorChanged=function(V){this.onColorChanged&&this.onColorChanged(V),this.stateChanged()},pe.prototype.fillColorChanged=function(V){this.onFillColorChanged&&this.onFillColorChanged(V),this.stateChanged()},pe.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var V=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),V.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(V)&&this.onStateChanged(this)}},pe.typeName="MarkerBase",pe}(),ke=function(){function pe(){this.findGripByVisual=this.findGripByVisual.bind(this)}return pe.prototype.findGripByVisual=function(V){return this.topLeft.ownsTarget(V)?this.topLeft:this.topCenter.ownsTarget(V)?this.topCenter:this.topRight.ownsTarget(V)?this.topRight:this.centerLeft.ownsTarget(V)?this.centerLeft:this.centerRight.ownsTarget(V)?this.centerRight:this.bottomLeft.ownsTarget(V)?this.bottomLeft:this.bottomCenter.ownsTarget(V)?this.bottomCenter:this.bottomRight.ownsTarget(V)?this.bottomRight:void 0},pe}(),tt=function(){function pe(){this.GRIP_SIZE=10,this.visual=se.createGroup(),this.visual.appendChild(se.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(se.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return pe.prototype.ownsTarget=function(V){return V===this.visual||V===this.visual.childNodes[0]||V===this.visual.childNodes[1]},pe}(),ot=function(){function pe(){}return pe.toITransformMatrix=function(V){return{a:V.a,b:V.b,c:V.c,d:V.d,e:V.e,f:V.f}},pe.toSVGMatrix=function(V,Z){return V.a=Z.a,V.b=Z.b,V.c=Z.c,V.d=Z.d,V.e=Z.e,V.f=Z.f,V},pe}(),gt=function(pe){function V(Z,oe,Ce){var he=pe.call(this,Z,oe,Ce)||this;return he.left=0,he.top=0,he.width=0,he.height=0,he.defaultSize={x:50,y:20},he.offsetX=0,he.offsetY=0,he.rotationAngle=0,he.CB_DISTANCE=10,he._suppressMarkerCreateEvent=!1,he.container.transform.baseVal.appendItem(se.createTransform()),he.setupControlBox(),he}return ce(V,pe),Object.defineProperty(V.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"visual",{get:function(){return this._visual},set:function(Z){this._visual=Z;var oe=se.createTransform();this._visual.transform.baseVal.appendItem(oe)},enumerable:!1,configurable:!0}),V.prototype.ownsTarget=function(Z){return!!pe.prototype.ownsTarget.call(this,Z)||!!(this.controlGrips.findGripByVisual(Z)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Z))},V.prototype.pointerDown=function(Z,oe){pe.prototype.pointerDown.call(this,Z,oe),this.state==="new"&&(this.left=Z.x,this.top=Z.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Ce=this.unrotatePoint(Z);if(this.manipulationStartX=Ce.x,this.manipulationStartY=Ce.y,this.offsetX=Ce.x-this.left,this.offsetY=Ce.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(oe),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(oe)){this.activeGrip=this.rotatorGrip;var he=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=he.x-this.width/2,this.top=he.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var ct=this.container.transform.baseVal.getItem(0);ct.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ct,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},V.prototype.pointerUp=function(Z){var oe=this.state;pe.prototype.pointerUp.call(this,Z),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(Z),this._state="select",oe==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},V.prototype.moveVisual=function(Z){this.visual.style.transform="translate("+Z.x+"px, "+Z.y+"px)"},V.prototype.manipulate=function(Z){var oe=this.unrotatePoint(Z);this.state==="creating"?this.resize(Z):this.state==="move"?(this.left=this.manipulationStartLeft+(oe.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(oe.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(oe):this.state==="rotate"&&this.rotate(Z)},V.prototype.resize=function(Z){var oe=this.manipulationStartLeft,Ce=this.manipulationStartWidth,he=this.manipulationStartTop,ct=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:oe=this.manipulationStartLeft+Z.x-this.manipulationStartX,Ce=this.manipulationStartWidth+this.manipulationStartLeft-oe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Ce=this.manipulationStartWidth+Z.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:he=this.manipulationStartTop+Z.y-this.manipulationStartY,ct=this.manipulationStartHeight+this.manipulationStartTop-he;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ct=this.manipulationStartHeight+Z.y-this.manipulationStartY}Ce>=0?(this.left=oe,this.width=Ce):(this.left=oe+Ce,this.width=-Ce),ct>=0?(this.top=he,this.height=ct):(this.top=he+ct,this.height=-ct),this.setSize()},V.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},V.prototype.rotate=function(Z){if(Math.abs(Z.x-this.centerX)>.1){var oe=Math.sign(Z.x-this.centerX);this.rotationAngle=180*Math.atan((Z.y-this.centerY)/(Z.x-this.centerX))/Math.PI+90*oe,this.applyRotation()}},V.prototype.applyRotation=function(){var Z=this.container.transform.baseVal.getItem(0);Z.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Z,0)},V.prototype.rotatePoint=function(Z){if(this.rotationAngle===0)return Z;var oe=this.container.getCTM(),Ce=se.createPoint(Z.x,Z.y);return{x:(Ce=Ce.matrixTransform(oe)).x,y:Ce.y}},V.prototype.unrotatePoint=function(Z){if(this.rotationAngle===0)return Z;var oe=this.container.getCTM();oe=oe.inverse();var Ce=se.createPoint(Z.x,Z.y);return{x:(Ce=Ce.matrixTransform(oe)).x,y:Ce.y}},V.prototype.select=function(){pe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},V.prototype.deselect=function(){pe.prototype.deselect.call(this),this.controlBox.style.display="none"},V.prototype.setupControlBox=function(){this.controlBox=se.createGroup();var Z=se.createTransform();Z.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(Z),this.container.appendChild(this.controlBox),this.controlRect=se.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=se.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new ke,this.addControlGrips(),this.controlBox.style.display="none"},V.prototype.adjustControlBox=function(){var Z=this.controlBox.transform.baseVal.getItem(0);Z.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(Z,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},V.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},V.prototype.createGrip=function(){var Z=new tt;return Z.visual.transform.baseVal.appendItem(se.createTransform()),this.controlBox.appendChild(Z.visual),Z},V.prototype.positionGrips=function(){var Z=this.controlGrips.topLeft.GRIP_SIZE,oe=-Z/2,Ce=oe,he=(this.width+this.CB_DISTANCE)/2-Z/2,ct=(this.height+this.CB_DISTANCE)/2-Z/2,rn=this.height+this.CB_DISTANCE-Z/2,In=this.width+this.CB_DISTANCE-Z/2;this.positionGrip(this.controlGrips.topLeft.visual,oe,Ce),this.positionGrip(this.controlGrips.topCenter.visual,he,Ce),this.positionGrip(this.controlGrips.topRight.visual,In,Ce),this.positionGrip(this.controlGrips.centerLeft.visual,oe,ct),this.positionGrip(this.controlGrips.centerRight.visual,In,ct),this.positionGrip(this.controlGrips.bottomLeft.visual,oe,rn),this.positionGrip(this.controlGrips.bottomCenter.visual,he,rn),this.positionGrip(this.controlGrips.bottomRight.visual,In,rn),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,he,Ce-3*this.CB_DISTANCE)},V.prototype.positionGrip=function(Z,oe,Ce){var he=Z.transform.baseVal.getItem(0);he.setTranslate(oe,Ce),Z.transform.baseVal.replaceItem(he,0)},V.prototype.hideControlBox=function(){this.controlBox.style.display="none"},V.prototype.showControlBox=function(){this.controlBox.style.display=""},V.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:ot.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:ot.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},pe.prototype.getState.call(this))},V.prototype.restoreState=function(Z){pe.prototype.restoreState.call(this,Z);var oe=Z;this.left=oe.left,this.top=oe.top,this.width=oe.width,this.height=oe.height,this.rotationAngle=oe.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(ot.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,oe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(ot.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,oe.containerTransformMatrix))},V.prototype.scale=function(Z,oe){pe.prototype.scale.call(this,Z,oe);var Ce=this.rotatePoint({x:this.left,y:this.top}),he=this.unrotatePoint({x:Ce.x*Z,y:Ce.y*oe});this.left=he.x,this.top=he.y,this.width=this.width*Z,this.height=this.height*oe,this.adjustControlBox()},V}(Te),Et=function(pe){function V(Z,oe,Ce){var he=pe.call(this,Z,oe,Ce)||this;return he.fillColor="transparent",he.strokeColor="transparent",he.strokeWidth=0,he.strokeDasharray="",he.opacity=1,he.setStrokeColor=he.setStrokeColor.bind(he),he.setFillColor=he.setFillColor.bind(he),he.setStrokeWidth=he.setStrokeWidth.bind(he),he.setStrokeDasharray=he.setStrokeDasharray.bind(he),he.createVisual=he.createVisual.bind(he),he}return ce(V,pe),V.prototype.ownsTarget=function(Z){return!(!pe.prototype.ownsTarget.call(this,Z)&&Z!==this.visual)},V.prototype.createVisual=function(){this.visual=se.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},V.prototype.pointerDown=function(Z,oe){pe.prototype.pointerDown.call(this,Z,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(Z),this._state="creating")},V.prototype.manipulate=function(Z){pe.prototype.manipulate.call(this,Z)},V.prototype.resize=function(Z){pe.prototype.resize.call(this,Z),this.setSize()},V.prototype.setSize=function(){pe.prototype.setSize.call(this),se.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},V.prototype.pointerUp=function(Z){pe.prototype.pointerUp.call(this,Z),this.setSize()},V.prototype.setStrokeColor=function(Z){this.strokeColor=Z,this.visual&&se.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Z),this.stateChanged()},V.prototype.setFillColor=function(Z){this.fillColor=Z,this.visual&&se.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},V.prototype.setStrokeWidth=function(Z){this.strokeWidth=Z,this.visual&&se.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},V.prototype.setStrokeDasharray=function(Z){this.strokeDasharray=Z,this.visual&&se.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},V.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},pe.prototype.getState.call(this))},V.prototype.restoreState=function(Z){var oe=Z;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.opacity=oe.opacity,this.createVisual(),pe.prototype.restoreState.call(this,Z),this.setSize()},V.prototype.scale=function(Z,oe){pe.prototype.scale.call(this,Z,oe),this.setSize()},V.title="Rectangle marker",V}(gt),xt=function(pe){function V(Z,oe,Ce,he){var ct=pe.call(this,Z,he||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return ct.widths=[],ct.widthBoxes=[],ct.widths=oe,ct.currentWidth=Ce,ct.setCurrentWidth=ct.setCurrentWidth.bind(ct),ct}return ce(V,pe),V.prototype.getUi=function(){var Z=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.widths.forEach(function(Ce){var he=document.createElement("div");he.style.display="flex",he.style.flexGrow="2",he.style.alignItems="center",he.style.justifyContent="space-between",he.style.padding="5px",he.style.borderWidth="2px",he.style.borderStyle="solid",he.style.borderColor=Ce===Z.currentWidth?Z.uiStyleSettings.toolboxAccentColor:"transparent",he.addEventListener("click",function(){Z.setCurrentWidth(Ce,he)}),oe.appendChild(he);var ct=document.createElement("div");ct.innerText=Ce.toString(),ct.style.marginRight="5px",he.appendChild(ct);var rn=document.createElement("div");rn.style.minHeight="20px",rn.style.flexGrow="2",rn.style.display="flex",rn.style.alignItems="center";var In=document.createElement("hr");In.style.minWidth="20px",In.style.border="0px",In.style.borderTop=Ce+"px solid "+Z.uiStyleSettings.toolboxColor,In.style.flexGrow="2",rn.appendChild(In),he.appendChild(rn),Z.widthBoxes.push(he)}),oe},V.prototype.setCurrentWidth=function(Z,oe){var Ce=this;this.currentWidth=Z,this.widthBoxes.forEach(function(he){he.style.borderColor=he===oe?Ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},V}(te),St=function(pe){function V(Z,oe,Ce,he){var ct=pe.call(this,Z,he||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return ct.styles=[],ct.styleBoxes=[],ct.styles=oe,ct.currentStyle=Ce,ct.setCurrentStyle=ct.setCurrentStyle.bind(ct),ct}return ce(V,pe),V.prototype.getUi=function(){var Z=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.styles.forEach(function(Ce){var he=document.createElement("div");he.style.display="flex",he.style.alignItems="center",he.style.justifyContent="space-between",he.style.padding="5px",he.style.borderWidth="2px",he.style.borderStyle="solid",he.style.overflow="hidden",he.style.maxWidth=100/Z.styles.length-5+"%",he.style.borderColor=Ce===Z.currentStyle?Z.uiStyleSettings.toolboxAccentColor:"transparent",he.addEventListener("click",function(){Z.setCurrentStyle(Ce,he)}),oe.appendChild(he);var ct=document.createElement("div");ct.style.minHeight="20px",ct.style.flexGrow="2",ct.style.overflow="hidden";var rn=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+Z.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Ce!==""?'stroke-dasharray="'+Ce+'"':"")+` />
</svg>`;ct.innerHTML=rn,he.appendChild(ct),Z.styleBoxes.push(he)}),oe},V.prototype.setCurrentStyle=function(Z,oe){var Ce=this;this.currentStyle=Z,this.styleBoxes.forEach(function(he){he.style.borderColor=he===oe?Ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},V}(te),Je=function(pe){function V(Z,oe,Ce){var he=pe.call(this,Z,oe,Ce)||this;return he.strokeColor=Ce.defaultColor,he.strokeWidth=Ce.defaultStrokeWidth,he.strokeDasharray=Ce.defaultStrokeDasharray,he.strokePanel=new De("Line color",Ce.defaultColorSet,Ce.defaultColor),he.strokePanel.onColorChanged=he.setStrokeColor,he.strokeWidthPanel=new xt("Line width",Ce.defaultStrokeWidths,Ce.defaultStrokeWidth),he.strokeWidthPanel.onWidthChanged=he.setStrokeWidth,he.strokeStylePanel=new St("Line style",Ce.defaultStrokeDasharrays,Ce.defaultStrokeDasharray),he.strokeStylePanel.onStyleChanged=he.setStrokeDasharray,he}return ce(V,pe),Object.defineProperty(V.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),V.prototype.getState=function(){var Z=pe.prototype.getState.call(this);return Z.typeName=V.typeName,Z},V.typeName="FrameMarker",V.title="Frame marker",V.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',V}(Et),Ue=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1},ft=function(pe){function V(Z,oe,Ce){var he=pe.call(this,Z,oe,Ce)||this;return he.x1=0,he.y1=0,he.x2=0,he.y2=0,he.defaultLength=50,he.manipulationStartX=0,he.manipulationStartY=0,he.manipulationStartX1=0,he.manipulationStartY1=0,he.manipulationStartX2=0,he.manipulationStartY2=0,he.setupControlBox(),he}return ce(V,pe),V.prototype.ownsTarget=function(Z){return!!pe.prototype.ownsTarget.call(this,Z)||!(!this.grip1.ownsTarget(Z)&&!this.grip2.ownsTarget(Z))},V.prototype.pointerDown=function(Z,oe){pe.prototype.pointerDown.call(this,Z,oe),this.manipulationStartX=Z.x,this.manipulationStartY=Z.y,this.state==="new"&&(this.x1=Z.x,this.y1=Z.y,this.x2=Z.x,this.y2=Z.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(oe)?this.activeGrip=this.grip1:this.grip2.ownsTarget(oe)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},V.prototype.pointerUp=function(Z){var oe=this.state;pe.prototype.pointerUp.call(this,Z),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(Z),this._state="select",oe==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},V.prototype.adjustVisual=function(){},V.prototype.manipulate=function(Z){this.state==="creating"?this.resize(Z):this.state==="move"?(this.x1=this.manipulationStartX1+Z.x-this.manipulationStartX,this.y1=this.manipulationStartY1+Z.y-this.manipulationStartY,this.x2=this.manipulationStartX2+Z.x-this.manipulationStartX,this.y2=this.manipulationStartY2+Z.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(Z)},V.prototype.resize=function(Z){switch(this.activeGrip){case this.grip1:this.x1=Z.x,this.y1=Z.y;break;case this.grip2:case void 0:this.x2=Z.x,this.y2=Z.y}this.adjustVisual(),this.adjustControlBox()},V.prototype.select=function(){pe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},V.prototype.deselect=function(){pe.prototype.deselect.call(this),this.controlBox.style.display="none"},V.prototype.setupControlBox=function(){this.controlBox=se.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},V.prototype.adjustControlBox=function(){this.positionGrips()},V.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},V.prototype.createGrip=function(){var Z=new tt;return Z.visual.transform.baseVal.appendItem(se.createTransform()),this.controlBox.appendChild(Z.visual),Z},V.prototype.positionGrips=function(){var Z=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-Z/2,this.y1-Z/2),this.positionGrip(this.grip2.visual,this.x2-Z/2,this.y2-Z/2)},V.prototype.positionGrip=function(Z,oe,Ce){var he=Z.transform.baseVal.getItem(0);he.setTranslate(oe,Ce),Z.transform.baseVal.replaceItem(he,0)},V.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},pe.prototype.getState.call(this))},V.prototype.restoreState=function(Z){pe.prototype.restoreState.call(this,Z);var oe=Z;this.x1=oe.x1,this.y1=oe.y1,this.x2=oe.x2,this.y2=oe.y2},V.prototype.scale=function(Z,oe){pe.prototype.scale.call(this,Z,oe),this.x1=this.x1*Z,this.y1=this.y1*oe,this.x2=this.x2*Z,this.y2=this.y2*oe,this.adjustVisual(),this.adjustControlBox()},V}(Te),kt=function(pe){function V(Z,oe,Ce){var he=pe.call(this,Z,oe,Ce)||this;return he.strokeColor="transparent",he.strokeWidth=0,he.strokeDasharray="",he.setStrokeColor=he.setStrokeColor.bind(he),he.setStrokeWidth=he.setStrokeWidth.bind(he),he.setStrokeDasharray=he.setStrokeDasharray.bind(he),he.strokeColor=Ce.defaultColor,he.strokeWidth=Ce.defaultStrokeWidth,he.strokeDasharray=Ce.defaultStrokeDasharray,he.strokePanel=new De("Line color",Ce.defaultColorSet,Ce.defaultColor),he.strokePanel.onColorChanged=he.setStrokeColor,he.strokeWidthPanel=new xt("Line width",Ce.defaultStrokeWidths,Ce.defaultStrokeWidth),he.strokeWidthPanel.onWidthChanged=he.setStrokeWidth,he.strokeStylePanel=new St("Line style",Ce.defaultStrokeDasharrays,Ce.defaultStrokeDasharray),he.strokeStylePanel.onStyleChanged=he.setStrokeDasharray,he}return ce(V,pe),V.prototype.ownsTarget=function(Z){return!(!pe.prototype.ownsTarget.call(this,Z)&&Z!==this.visual&&Z!==this.selectorLine&&Z!==this.visibleLine)},V.prototype.createVisual=function(){this.visual=se.createGroup(),this.selectorLine=se.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=se.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},V.prototype.pointerDown=function(Z,oe){pe.prototype.pointerDown.call(this,Z,oe),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},V.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),se.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),se.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),se.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},V.prototype.setStrokeColor=function(Z){this.strokeColor=Z,this.adjustVisual(),this.colorChanged(Z)},V.prototype.setStrokeWidth=function(Z){this.strokeWidth=Z,this.adjustVisual()},V.prototype.setStrokeDasharray=function(Z){this.strokeDasharray=Z,this.adjustVisual(),this.stateChanged()},Object.defineProperty(V.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),V.prototype.getState=function(){var Z=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},pe.prototype.getState.call(this));return Z.typeName=V.typeName,Z},V.prototype.restoreState=function(Z){pe.prototype.restoreState.call(this,Z);var oe=Z;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.createVisual(),this.adjustVisual()},V.typeName="LineMarker",V.title="Line marker",V.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',V}(ft),ht=function(pe){function V(Z,oe,Ce,he){var ct=pe.call(this,Z,he||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return ct.fonts=[],ct.fontBoxes=[],ct.fonts=oe,ct.currentFont=Ce,ct.setCurrentFont=ct.setCurrentFont.bind(ct),ct}return ce(V,pe),V.prototype.getUi=function(){var Z=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.flexGrow="2",this.fonts.forEach(function(Ce){var he=document.createElement("div");he.style.display="inline-block",he.style.alignItems="center",he.style.justifyContent="space-between",he.style.padding="5px",he.style.borderWidth="2px",he.style.borderStyle="solid",he.style.overflow="hidden",he.style.maxWidth=100/Z.fonts.length-5+"%",he.style.borderColor=Ce===Z.currentFont?Z.uiStyleSettings.toolboxAccentColor:"transparent",he.addEventListener("click",function(){Z.setCurrentFont(Ce,he)}),oe.appendChild(he);var ct=document.createElement("div");ct.style.display="flex",ct.style.minHeight="20px",ct.style.flexGrow="2",ct.style.fontFamily=Ce,ct.style.overflow="hidden";var rn=document.createElement("div");rn.style.whiteSpace="nowrap",rn.style.overflow="hidden",rn.style.textOverflow="ellipsis",rn.innerHTML="The quick brown fox jumps over the lazy dog",ct.appendChild(rn),he.appendChild(ct),Z.fontBoxes.push(he)}),oe},V.prototype.setCurrentFont=function(Z,oe){var Ce=this;this.currentFont=Z,this.fontBoxes.forEach(function(he){he.style.borderColor=he===oe?Ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},V}(te),_t=function(pe){function V(Z,oe,Ce){var he=pe.call(this,Z,oe,Ce)||this;return he.color="transparent",he.padding=5,he.DEFAULT_TEXT="your text here",he.text=he.DEFAULT_TEXT,he.isMoved=!1,he.color=Ce.defaultColor,he.fontFamily=Ce.defaultFontFamily,he.defaultSize={x:100,y:30},he.setColor=he.setColor.bind(he),he.setFont=he.setFont.bind(he),he.renderText=he.renderText.bind(he),he.sizeText=he.sizeText.bind(he),he.textEditDivClicked=he.textEditDivClicked.bind(he),he.showTextEditor=he.showTextEditor.bind(he),he.setSize=he.setSize.bind(he),he.positionTextEditor=he.positionTextEditor.bind(he),he.colorPanel=new De("Color",Ce.defaultColorSet,Ce.defaultColor),he.colorPanel.onColorChanged=he.setColor,he.fontFamilyPanel=new ht("Font",Ce.defaultFontFamilies,Ce.defaultFontFamily),he.fontFamilyPanel.onFontChanged=he.setFont,he}return ce(V,pe),V.prototype.ownsTarget=function(Z){if(pe.prototype.ownsTarget.call(this,Z)||Z===this.visual||Z===this.textElement||Z===this.bgRectangle)return!0;var oe=!1;return this.textElement.childNodes.forEach(function(Ce){Ce===Z&&(oe=!0)}),oe},V.prototype.createVisual=function(){this.visual=se.createGroup(),this.bgRectangle=se.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=se.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(se.createTransform()),this.textElement.transform.baseVal.appendItem(se.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},V.prototype.pointerDown=function(Z,oe){pe.prototype.pointerDown.call(this,Z,oe),this.isMoved=!1,this.pointerDownPoint=Z,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Z),this._state="creating")},V.prototype.renderText=function(){var Z=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(oe){Z.textElement.appendChild(se.createTSpan(oe.trim()===""?" ":oe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},V.prototype.getTextScale=function(){var Z=this.textElement.getBBox(),oe=1;if(Z.width>0&&Z.height>0){var Ce=(1*this.width-this.width*this.padding*2/100)/Z.width,he=(1*this.height-this.height*this.padding*2/100)/Z.height;oe=Math.min(Ce,he)}return oe},V.prototype.getTextPosition=function(Z){var oe=this.textElement.getBBox(),Ce=0,he=0;return oe.width>0&&oe.height>0&&(Ce=(this.width-oe.width*Z)/2,he=this.height/2-oe.height*Z/2),{x:Ce,y:he}},V.prototype.sizeText=function(){var Z=this.textElement.getBBox(),oe=this.getTextScale(),Ce=this.getTextPosition(oe);Ce.y-=Z.y*oe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Ce.x+"px, "+Ce.y+"px) scale("+oe+", "+oe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Ce.x,Ce.y),this.textElement.transform.baseVal.getItem(1).setScale(oe,oe))},V.prototype.manipulate=function(Z){pe.prototype.manipulate.call(this,Z),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Z.x-this.pointerDownPoint.x)>5||Math.abs(Z.y-this.pointerDownPoint.y)>5)},V.prototype.resize=function(Z){pe.prototype.resize.call(this,Z),this.isMoved=!0,this.setSize(),this.sizeText()},V.prototype.setSize=function(){pe.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(se.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),se.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},V.prototype.pointerUp=function(Z){var oe=this.state;oe==="creating"&&(this._suppressMarkerCreateEvent=!0),pe.prototype.pointerUp.call(this,Z),this.setSize(),(oe==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},V.prototype.showTextEditor=function(){var Z=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(oe){oe.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var oe=Number.parseFloat(Z.textEditor.style.fontSize);Z.textEditor.clientWidth>=Number.parseInt(Z.textEditor.style.maxWidth)&&oe>.9;)oe-=.1,Z.textEditor.style.fontSize=Math.max(oe,.9)+"em"}),this.textEditor.addEventListener("keyup",function(oe){oe.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(oe){if(oe.clipboardData){var Ce=oe.clipboardData.getData("text"),he=window.getSelection();if(!he.rangeCount)return!1;he.deleteFromDocument(),he.getRangeAt(0).insertNode(document.createTextNode(Ce)),oe.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){Z.textEditDivClicked(Z.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},V.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var Z=this.getTextScale(),oe=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Ce=this.textElement.getBBox(),he={x:Ce.width*Z,y:Ce.height*Z};oe.x-=he.x/2,oe.y-=he.y/2,this.textEditor.style.top=oe.y+"px",this.textEditor.style.left=oe.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-oe.x+"px",this.textEditor.style.fontSize=Math.max(16*Z,12)+"px",this.textElement.style.display="none"}},V.prototype.textEditDivClicked=function(Z){this.text=Z.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},V.prototype.select=function(){pe.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},V.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),pe.prototype.deselect.call(this)},V.prototype.dblClick=function(Z,oe){pe.prototype.dblClick.call(this,Z,oe),this.showTextEditor()},V.prototype.setColor=function(Z){this.textElement&&se.setAttributes(this.textElement,[["fill",Z]]),this.color=Z,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(Z)},V.prototype.setFont=function(Z){this.textElement&&se.setAttributes(this.textElement,[["font-family",Z]]),this.fontFamily=Z,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},V.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},V.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(V.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),V.prototype.getState=function(){var Z=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},pe.prototype.getState.call(this));return Z.typeName=V.typeName,Z},V.prototype.restoreState=function(Z){var oe=Z;this.color=oe.color,this.fontFamily=oe.fontFamily,this.padding=oe.padding,this.text=oe.text,this.createVisual(),pe.prototype.restoreState.call(this,Z),this.setSize()},V.prototype.scale=function(Z,oe){pe.prototype.scale.call(this,Z,oe),this.setSize(),this.sizeText(),this.positionTextEditor()},V.typeName="TextMarker",V.title="Text marker",V.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',V}(gt),Qe=function(pe){function V(Z,oe,Ce){var he=pe.call(this,Z,oe,Ce)||this;return he.color="transparent",he.lineWidth=3,he.drawing=!1,he.pixelRatio=1,he.color=Ce.defaultColor,he.lineWidth=Ce.defaultStrokeWidth,he.pixelRatio=Ce.freehandPixelRatio,he.setColor=he.setColor.bind(he),he.addCanvas=he.addCanvas.bind(he),he.finishCreation=he.finishCreation.bind(he),he.setLineWidth=he.setLineWidth.bind(he),he.colorPanel=new De("Color",Ce.defaultColorSet,Ce.defaultColor),he.colorPanel.onColorChanged=he.setColor,he.lineWidthPanel=new xt("Line width",Ce.defaultStrokeWidths,Ce.defaultStrokeWidth),he.lineWidthPanel.onWidthChanged=he.setLineWidth,he}return ce(V,pe),V.prototype.ownsTarget=function(Z){return!(!pe.prototype.ownsTarget.call(this,Z)&&Z!==this.visual&&Z!==this.drawingImage)},V.prototype.createVisual=function(){this.visual=se.createGroup(),this.drawingImage=se.createImage(),this.visual.appendChild(this.drawingImage);var Z=se.createTransform();this.visual.transform.baseVal.appendItem(Z),this.addMarkerVisualToContainer(this.visual)},V.prototype.pointerDown=function(Z,oe){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(Z.x,Z.y),this.drawing=!0):pe.prototype.pointerDown.call(this,Z,oe)},V.prototype.manipulate=function(Z){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(Z.x,Z.y),this.canvasContext.stroke()):pe.prototype.manipulate.call(this,Z)},V.prototype.resize=function(Z){pe.prototype.resize.call(this,Z),se.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),se.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},V.prototype.pointerUp=function(Z){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):pe.prototype.pointerUp.call(this,Z)},V.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},V.prototype.select=function(){this.state==="creating"&&this.finishCreation(),pe.prototype.select.call(this)},V.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),pe.prototype.deselect.call(this)},V.prototype.finishCreation=function(){for(var Z=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),oe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Ce=oe[0],he=oe[1],ct=oe[2],rn=oe[3],In=!1,Vn=0;Vn<this.canvasElement.height;Vn++)for(var tn=0;tn<this.canvasElement.width;tn++)Z.data[Vn*this.canvasElement.width*4+4*tn+3]>0&&(In=!0,Vn<he&&(he=Vn),tn<Ce&&(Ce=tn),Vn>rn&&(rn=Vn),tn>ct&&(ct=tn));if(In){this.left=Ce/this.pixelRatio,this.top=he/this.pixelRatio,this.width=(ct-Ce)/this.pixelRatio,this.height=(rn-he)/this.pixelRatio;var En=document.createElement("canvas");En.width=ct-Ce,En.height=rn-he,En.getContext("2d").putImageData(this.canvasContext.getImageData(Ce,he,ct-Ce,rn-he),0,0),this.drawingImgUrl=En.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},V.prototype.setDrawingImage=function(){se.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),se.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},V.prototype.setColor=function(Z){this.color=Z,this.colorChanged(Z)},V.prototype.setLineWidth=function(Z){this.lineWidth=Z},Object.defineProperty(V.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),V.prototype.getState=function(){var Z=Object.assign({drawingImgUrl:this.drawingImgUrl},pe.prototype.getState.call(this));return Z.typeName=V.typeName,Z},V.prototype.restoreState=function(Z){this.createVisual(),pe.prototype.restoreState.call(this,Z),this.drawingImgUrl=Z.drawingImgUrl,this.setDrawingImage()},V.prototype.scale=function(Z,oe){pe.prototype.scale.call(this,Z,oe),this.setDrawingImage()},V.typeName="FreehandMarker",V.title="Freehand marker",V.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',V}(gt),He=function(pe){function V(Z,oe,Ce){var he=pe.call(this,Z,Ce||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return he.typeBoxes=[],he.currentType=oe,he.setCurrentType=he.setCurrentType.bind(he),he}return ce(V,pe),V.prototype.getUi=function(){var Z=this,oe=document.createElement("div");oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2";for(var Ce=function(rn){var In="both";switch(rn){case 0:In="both";break;case 1:In="start";break;case 2:In="end";break;case 3:In="none"}var Vn=document.createElement("div");if(Vn.style.display="flex",Vn.style.flexGrow="2",Vn.style.alignItems="center",Vn.style.justifyContent="space-between",Vn.style.padding="5px",Vn.style.borderWidth="2px",Vn.style.borderStyle="solid",Vn.style.borderColor=In===he.currentType?he.uiStyleSettings.toolboxAccentColor:"transparent",Vn.addEventListener("click",function(){Z.setCurrentType(In,Vn)}),oe.appendChild(Vn),In==="both"||In==="start"){var tn=document.createElement("div");tn.style.display="flex",tn.style.alignItems="center",tn.style.minHeight="20px",tn.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,5 10,0 10,10" fill="`+(he.uiStyleSettings!==void 0?he.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,tn.style.marginLeft="5px",Vn.appendChild(tn)}var En=document.createElement("div");En.style.display="flex",En.style.alignItems="center",En.style.minHeight="20px",En.style.flexGrow="2";var Xn=document.createElement("hr");if(Xn.style.minWidth="20px",Xn.style.border="0px",Xn.style.borderTop="3px solid "+(he.uiStyleSettings!==void 0?he.uiStyleSettings.toolboxColor:"#eeeeee"),Xn.style.flexGrow="2",En.appendChild(Xn),Vn.appendChild(En),In==="both"||In==="end"){var $r=document.createElement("div");$r.style.display="flex",$r.style.alignItems="center",$r.style.minHeight="20px",$r.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,0 10,5 0,10" fill="`+(he.uiStyleSettings!==void 0?he.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,$r.style.marginRight="5px",Vn.appendChild($r)}he.typeBoxes.push(Vn)},he=this,ct=0;ct<4;ct++)Ce(ct);return oe},V.prototype.setCurrentType=function(Z,oe){var Ce=this;this.currentType=Z,this.typeBoxes.forEach(function(he){he.style.borderColor=he===oe?Ce.uiStyleSettings!==void 0?Ce.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},V}(te),Ge=function(pe){function V(Z,oe,Ce){var he=pe.call(this,Z,oe,Ce)||this;return he.arrowType="end",he.arrowBaseHeight=10,he.arrowBaseWidth=10,he.getArrowPoints=he.getArrowPoints.bind(he),he.setArrowType=he.setArrowType.bind(he),he.arrowTypePanel=new He("Arrow type","end"),he.arrowTypePanel.onArrowTypeChanged=he.setArrowType,he}return ce(V,pe),V.prototype.ownsTarget=function(Z){return!(!pe.prototype.ownsTarget.call(this,Z)&&Z!==this.arrow1&&Z!==this.arrow2)},V.prototype.getArrowPoints=function(Z,oe){var Ce=this.arrowBaseWidth+2*this.strokeWidth,he=this.arrowBaseHeight+2*this.strokeWidth;return Z-Ce/2+","+(oe+he/2)+" "+Z+","+(oe-he/2)+" "+(Z+Ce/2)+","+(oe+he/2)},V.prototype.createTips=function(){this.arrow1=se.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(se.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=se.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(se.createTransform()),this.visual.appendChild(this.arrow2)},V.prototype.pointerDown=function(Z,oe){pe.prototype.pointerDown.call(this,Z,oe),this.state==="creating"&&this.createTips()},V.prototype.adjustVisual=function(){if(pe.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",se.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),se.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var Z=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),oe=this.arrow1.transform.baseVal.getItem(0);oe.setRotate(Z,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(oe,0);var Ce=this.arrow2.transform.baseVal.getItem(0);Ce.setRotate(Z+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Ce,0)}},V.prototype.setArrowType=function(Z){this.arrowType=Z,this.adjustVisual(),this.stateChanged()},Object.defineProperty(V.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),V.prototype.getState=function(){var Z=Object.assign({arrowType:this.arrowType},pe.prototype.getState.call(this));return Z.typeName=V.typeName,Z},V.prototype.restoreState=function(Z){pe.prototype.restoreState.call(this,Z);var oe=Z;this.arrowType=oe.arrowType,this.createTips(),this.adjustVisual()},V.typeName="ArrowMarker",V.title="Arrow marker",V.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',V}(kt),Ee=function(pe){function V(Z,oe,Ce){var he=pe.call(this,Z,oe,Ce)||this;return he.fillColor=Ce.defaultFillColor,he.strokeWidth=0,he.fillPanel=new De("Color",Ce.defaultColorSet,Ce.defaultFillColor),he.fillPanel.onColorChanged=he.setFillColor,he}return ce(V,pe),Object.defineProperty(V.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),V.prototype.getState=function(){var Z=pe.prototype.getState.call(this);return Z.typeName=V.typeName,Z},V.typeName="CoverMarker",V.title="Cover marker",V.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',V}(Et),Ae=function(pe){function V(Z,oe,Ce,he){var ct=pe.call(this,Z,he||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return ct.opacities=[],ct.opacityBoxes=[],ct.opacities=oe,ct.currentOpacity=Ce,ct.setCurrentOpacity=ct.setCurrentOpacity.bind(ct),ct}return ce(V,pe),V.prototype.getUi=function(){var Z=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",oe.style.justifyContent="space-between",this.opacities.forEach(function(Ce){var he=document.createElement("div");he.style.display="flex",he.style.alignItems="center",he.style.justifyContent="center",he.style.padding="5px",he.style.borderWidth="2px",he.style.borderStyle="solid",he.style.borderColor=Ce===Z.currentOpacity?Z.uiStyleSettings.toolboxAccentColor:"transparent",he.addEventListener("click",function(){Z.setCurrentOpacity(Ce,he)}),oe.appendChild(he);var ct=document.createElement("div");ct.innerText=100*Ce+"%",he.appendChild(ct),Z.opacityBoxes.push(he)}),oe},V.prototype.setCurrentOpacity=function(Z,oe){var Ce=this;this.currentOpacity=Z,this.opacityBoxes.forEach(function(he){he.style.borderColor=he===oe?Ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},V}(te),Fe=function(pe){function V(Z,oe,Ce){var he=pe.call(this,Z,oe,Ce)||this;return he.setOpacity=he.setOpacity.bind(he),he.fillColor=Ce.defaultHighlightColor,he.strokeWidth=0,he.opacity=Ce.defaultHighlightOpacity,he.fillPanel=new De("Color",Ce.defaultColorSet,he.fillColor),he.fillPanel.onColorChanged=he.setFillColor,he.opacityPanel=new Ae("Opacity",Ce.defaultOpacitySteps,he.opacity),he.opacityPanel.onOpacityChanged=he.setOpacity,he}return ce(V,pe),V.prototype.setOpacity=function(Z){this.opacity=Z,this.visual&&se.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(V.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),V.prototype.getState=function(){var Z=pe.prototype.getState.call(this);return Z.typeName=V.typeName,Z},V.typeName="HighlightMarker",V.title="Highlight marker",V.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',V}(Ee),We='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',Ke=function(pe){function V(Z,oe,Ce){var he=pe.call(this,Z,oe,Ce)||this;return he.bgColor="transparent",he.tipPosition={x:0,y:0},he.tipBase1Position={x:0,y:0},he.tipBase2Position={x:0,y:0},he.tipMoving=!1,he.color=Ce.defaultStrokeColor,he.bgColor=Ce.defaultFillColor,he.fontFamily=Ce.defaultFontFamily,he.defaultSize={x:100,y:30},he.setBgColor=he.setBgColor.bind(he),he.getTipPoints=he.getTipPoints.bind(he),he.positionTip=he.positionTip.bind(he),he.setTipPoints=he.setTipPoints.bind(he),he.colorPanel=new De("Text color",Ce.defaultColorSet,he.color,'<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>'),he.colorPanel.onColorChanged=he.setColor,he.bgColorPanel=new De("Fill color",Ce.defaultColorSet,he.bgColor,We),he.bgColorPanel.onColorChanged=he.setBgColor,he.fontFamilyPanel=new ht("Font",Ce.defaultFontFamilies,Ce.defaultFontFamily),he.fontFamilyPanel.onFontChanged=he.setFont,he.tipGrip=new tt,he.tipGrip.visual.transform.baseVal.appendItem(se.createTransform()),he.controlBox.appendChild(he.tipGrip.visual),he}return ce(V,pe),V.prototype.ownsTarget=function(Z){return pe.prototype.ownsTarget.call(this,Z)||this.tipGrip.ownsTarget(Z)||this.tip===Z},V.prototype.createTip=function(){se.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=se.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},V.prototype.pointerDown=function(Z,oe){this.state==="new"&&pe.prototype.pointerDown.call(this,Z,oe),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(oe)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):pe.prototype.pointerDown.call(this,Z,oe)},V.prototype.pointerUp=function(Z){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,pe.prototype.pointerUp.call(this,Z);else{var oe=this.state==="creating";pe.prototype.pointerUp.call(this,Z),this.setTipPoints(oe),this.positionTip()}},V.prototype.manipulate=function(Z){if(this.tipMoving){var oe=this.unrotatePoint(Z);this.tipPosition={x:oe.x-this.manipulationStartLeft,y:oe.y-this.manipulationStartTop},this.positionTip()}else pe.prototype.manipulate.call(this,Z)},V.prototype.setBgColor=function(Z){this.bgRectangle&&this.tip&&(se.setAttributes(this.bgRectangle,[["fill",Z]]),se.setAttributes(this.tip,[["fill",Z]])),this.bgColor=Z,this.fillColorChanged(Z)},V.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},V.prototype.setTipPoints=function(Z){Z===void 0&&(Z=!1);var oe=Math.min(this.height/2,15),Ce=this.height/5;Z&&(this.tipPosition={x:oe+Ce/2,y:this.height+20});var he=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?he<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Ce=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:0},this.tipBase2Position={x:oe+Ce,y:0}):(this.tipBase1Position={x:0,y:oe},this.tipBase2Position={x:0,y:oe+Ce}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?he<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Ce=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-Ce,y:0},this.tipBase2Position={x:this.width-oe,y:0}):(this.tipBase1Position={x:this.width,y:oe},this.tipBase2Position={x:this.width,y:oe+Ce}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?he<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Ce=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-Ce,y:this.height},this.tipBase2Position={x:this.width-oe,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-oe-Ce},this.tipBase2Position={x:this.width,y:this.height-oe}):he<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Ce=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:this.height},this.tipBase2Position={x:oe+Ce,y:this.height}):(this.tipBase1Position={x:0,y:this.height-oe},this.tipBase2Position={x:0,y:this.height-oe-Ce})},V.prototype.resize=function(Z){pe.prototype.resize.call(this,Z),this.positionTip()},V.prototype.positionTip=function(){se.setAttributes(this.tip,[["points",this.getTipPoints()]]);var Z=this.tipGrip.visual.transform.baseVal.getItem(0);Z.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(Z,0)},Object.defineProperty(V.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),V.prototype.select=function(){this.positionTip(),pe.prototype.select.call(this)},V.prototype.getState=function(){var Z=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},pe.prototype.getState.call(this));return Z.typeName=V.typeName,Z},V.prototype.restoreState=function(Z){var oe=Z;this.bgColor=oe.bgColor,this.tipPosition=oe.tipPosition,pe.prototype.restoreState.call(this,Z),this.createTip(),this.setTipPoints()},V.prototype.scale=function(Z,oe){pe.prototype.scale.call(this,Z,oe),this.tipPosition={x:this.tipPosition.x*Z,y:this.tipPosition.y*oe},this.positionTip()},V.typeName="CalloutMarker",V.title="Callout marker",V.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',V}(_t),st=function(pe){function V(Z,oe,Ce){var he=pe.call(this,Z,oe,Ce)||this;return he.fillColor="transparent",he.strokeColor="transparent",he.strokeWidth=0,he.strokeDasharray="",he.opacity=1,he.strokeColor=Ce.defaultColor,he.strokeWidth=Ce.defaultStrokeWidth,he.strokeDasharray=Ce.defaultStrokeDasharray,he.fillColor=Ce.defaultFillColor,he.setStrokeColor=he.setStrokeColor.bind(he),he.setFillColor=he.setFillColor.bind(he),he.setStrokeWidth=he.setStrokeWidth.bind(he),he.setStrokeDasharray=he.setStrokeDasharray.bind(he),he.setOpacity=he.setOpacity.bind(he),he.createVisual=he.createVisual.bind(he),he.strokePanel=new De("Line color",ue(Ce.defaultColorSet,["transparent"]),Ce.defaultColor),he.strokePanel.onColorChanged=he.setStrokeColor,he.fillPanel=new De("Fill color",ue(Ce.defaultColorSet,["transparent"]),he.fillColor,We),he.fillPanel.onColorChanged=he.setFillColor,he.strokeWidthPanel=new xt("Line width",Ce.defaultStrokeWidths,Ce.defaultStrokeWidth),he.strokeWidthPanel.onWidthChanged=he.setStrokeWidth,he.strokeStylePanel=new St("Line style",Ce.defaultStrokeDasharrays,Ce.defaultStrokeDasharray),he.strokeStylePanel.onStyleChanged=he.setStrokeDasharray,he.opacityPanel=new Ae("Opacity",Ce.defaultOpacitySteps,he.opacity),he.opacityPanel.onOpacityChanged=he.setOpacity,he}return ce(V,pe),V.prototype.ownsTarget=function(Z){return!(!pe.prototype.ownsTarget.call(this,Z)&&Z!==this.visual)},V.prototype.createVisual=function(){this.visual=se.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},V.prototype.pointerDown=function(Z,oe){pe.prototype.pointerDown.call(this,Z,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(Z),this._state="creating")},V.prototype.manipulate=function(Z){pe.prototype.manipulate.call(this,Z)},V.prototype.resize=function(Z){pe.prototype.resize.call(this,Z),this.setSize()},V.prototype.setSize=function(){pe.prototype.setSize.call(this),se.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},V.prototype.pointerUp=function(Z){pe.prototype.pointerUp.call(this,Z),this.setSize()},V.prototype.setStrokeColor=function(Z){this.strokeColor=Z,this.visual&&se.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Z),this.stateChanged()},V.prototype.setFillColor=function(Z){this.fillColor=Z,this.visual&&se.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(Z),this.stateChanged()},V.prototype.setStrokeWidth=function(Z){this.strokeWidth=Z,this.visual&&se.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},V.prototype.setStrokeDasharray=function(Z){this.strokeDasharray=Z,this.visual&&se.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},V.prototype.setOpacity=function(Z){this.opacity=Z,this.visual&&se.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(V.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),V.prototype.getState=function(){var Z=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},pe.prototype.getState.call(this));return Z.typeName=V.typeName,Z},V.prototype.restoreState=function(Z){var oe=Z;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.opacity=oe.opacity,this.createVisual(),pe.prototype.restoreState.call(this,Z),this.setSize()},V.prototype.scale=function(Z,oe){pe.prototype.scale.call(this,Z,oe),this.setSize()},V.typeName="EllipseMarker",V.title="Ellipse marker",V.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',V}(gt),Ot=function(pe){function V(Z,oe,Ce){return pe.call(this,Z,oe,Ce)||this}return ce(V,pe),Object.defineProperty(V.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),V.prototype.ownsTarget=function(Z){return!(!pe.prototype.ownsTarget.call(this,Z)&&Z!==this.tip1&&Z!==this.tip2)},V.prototype.createTips=function(){this.tip1=se.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(se.createTransform()),this.visual.appendChild(this.tip1),this.tip2=se.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(se.createTransform()),this.visual.appendChild(this.tip2)},V.prototype.pointerDown=function(Z,oe){pe.prototype.pointerDown.call(this,Z,oe),this.state==="creating"&&this.createTips()},V.prototype.adjustVisual=function(){if(pe.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(se.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),se.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var Z=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),oe=this.tip1.transform.baseVal.getItem(0);oe.setRotate(Z,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(oe,0);var Ce=this.tip2.transform.baseVal.getItem(0);Ce.setRotate(Z+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Ce,0)}},Object.defineProperty(V.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),V.prototype.getState=function(){var Z=pe.prototype.getState.call(this);return Z.typeName=V.typeName,Z},V.prototype.restoreState=function(Z){pe.prototype.restoreState.call(this,Z),this.createTips(),this.adjustVisual()},V.typeName="MeasurementMarker",V.title="Measurement marker",V.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',V}(kt),Bt=function(pe){function V(Z,oe,Ce){var he=pe.call(this,Z,oe,Ce)||this;return he.strokePanel.colors=Ce.defaultColorSet,he.fillColor="transparent",he}return ce(V,pe),Object.defineProperty(V.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),V.prototype.getState=function(){var Z=pe.prototype.getState.call(this);return Z.typeName=V.typeName,Z},V.typeName="EllipseFrameMarker",V.title="Ellipse frame marker",V.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',V}(st),an=function(){function pe(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(pe.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),pe.prototype.addUndoStep=function(V){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(V)||(this.undoStack.push(V),JSON.stringify(this.lastRedoStep)!==JSON.stringify(V)&&this.redoStack.splice(0,this.redoStack.length))},pe.prototype.replaceLastUndoStep=function(V){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=V)},pe.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},pe.prototype.undo=function(){if(this.undoStack.length>1){var V=this.undoStack.pop();return V!==void 0&&this.redoStack.push(V),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},pe.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},pe}(),Kt=function(pe){function V(Z,oe,Ce){var he=pe.call(this,Z,oe,Ce)||this;return he.strokeColor="transparent",he.strokeWidth=0,he.strokeDasharray="",he.curveX=0,he.curveY=0,he.manipulationStartCurveX=0,he.manipulationStartCurveY=0,he.setStrokeColor=he.setStrokeColor.bind(he),he.setStrokeWidth=he.setStrokeWidth.bind(he),he.setStrokeDasharray=he.setStrokeDasharray.bind(he),he.positionGrips=he.positionGrips.bind(he),he.addControlGrips=he.addControlGrips.bind(he),he.adjustVisual=he.adjustVisual.bind(he),he.setupControlBox=he.setupControlBox.bind(he),he.resize=he.resize.bind(he),he.strokeColor=Ce.defaultColor,he.strokeWidth=Ce.defaultStrokeWidth,he.strokeDasharray=Ce.defaultStrokeDasharray,he.strokePanel=new De("Line color",Ce.defaultColorSet,Ce.defaultColor),he.strokePanel.onColorChanged=he.setStrokeColor,he.strokeWidthPanel=new xt("Line width",Ce.defaultStrokeWidths,Ce.defaultStrokeWidth),he.strokeWidthPanel.onWidthChanged=he.setStrokeWidth,he.strokeStylePanel=new St("Line style",Ce.defaultStrokeDasharrays,Ce.defaultStrokeDasharray),he.strokeStylePanel.onStyleChanged=he.setStrokeDasharray,he}return ce(V,pe),V.prototype.ownsTarget=function(Z){return!(!pe.prototype.ownsTarget.call(this,Z)&&Z!==this.visual&&Z!==this.selectorCurve&&Z!==this.visibleCurve&&!this.curveGrip.ownsTarget(Z))},V.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},V.prototype.createVisual=function(){this.visual=se.createGroup(),this.selectorCurve=se.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=se.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)},V.prototype.pointerDown=function(Z,oe){pe.prototype.pointerDown.call(this,Z,oe),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=Z.x,this.curveY=Z.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(oe)&&(this.activeGrip=this.curveGrip,this._state="resize")},V.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),se.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),se.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),se.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},V.prototype.setupControlBox=function(){pe.prototype.setupControlBox.call(this),this.curveControlLine1=se.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=se.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)},V.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,pe.prototype.addControlGrips.call(this)},V.prototype.positionGrips=function(){pe.prototype.positionGrips.call(this);var Z=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-Z/2,this.curveY-Z/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()))},V.prototype.manipulate=function(Z){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+Z.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+Z.y-this.manipulationStartY),pe.prototype.manipulate.call(this,Z)},V.prototype.resize=function(Z){this.activeGrip===this.curveGrip&&(this.curveX=Z.x,this.curveY=Z.y),pe.prototype.resize.call(this,Z),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},V.prototype.setStrokeColor=function(Z){this.strokeColor=Z,this.adjustVisual(),this.colorChanged(Z)},V.prototype.setStrokeWidth=function(Z){this.strokeWidth=Z,this.adjustVisual()},V.prototype.setStrokeDasharray=function(Z){this.strokeDasharray=Z,this.adjustVisual()},V.prototype.scale=function(Z,oe){this.curveX=this.curveX*Z,this.curveY=this.curveY*oe,pe.prototype.scale.call(this,Z,oe)},Object.defineProperty(V.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),V.prototype.getState=function(){var Z=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},pe.prototype.getState.call(this));return Z.typeName=V.typeName,Z},V.prototype.restoreState=function(Z){pe.prototype.restoreState.call(this,Z);var oe=Z;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.curveX=oe.curveX,this.curveY=oe.curveY,this.createVisual(),this.adjustVisual()},V.typeName="CurveMarker",V.title="Curve marker",V.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',V}(ft),bt=function(){function pe(V,Z){Z===void 0&&(Z=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=V,this.cancelable=Z}return Object.defineProperty(pe.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),pe.prototype.preventDefault=function(){this._defaultPrevented=!0},pe}(),Be=function(pe){function V(Z,oe,Ce){var he=pe.call(this,Z,!1)||this;return he.dataUrl=oe,he.state=Ce,he}return ce(V,pe),V}(bt),at=function(pe){function V(Z,oe,Ce){Ce===void 0&&(Ce=!1);var he=pe.call(this,Z,Ce)||this;return he.marker=oe,he}return ce(V,pe),V}(bt),it=function(){function pe(){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 pe.prototype.addEventListener=function(V,Z){this[V].push(Z)},pe.prototype.removeEventListener=function(V,Z){var oe=this[V].indexOf(Z);oe>-1&&this[V].splice(oe,1)},pe}(),Me=function(){function pe(V){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Ue,this._isOpen=!1,this.undoRedoManager=new an,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 it,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=pe.instanceCounter++,this.styles=new ie(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=V,this.targetRoot=document.body,this.width=V.clientWidth,this.height=V.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(pe.prototype,"ALL_MARKER_TYPES",{get:function(){return[Je,Qe,Ge,_t,Bt,st,Fe,Ke,Ot,Ee,kt,Kt]},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Je,Qe,Ge,_t,st,Fe,Ke]},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Je,Qe,Ge,_t,Fe]},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(V){var Z=this;this._availableMarkerTypes.splice(0),V.forEach(function(oe){if(typeof oe=="string"){var Ce=Z.ALL_MARKER_TYPES.find(function(he){return he.typeName===oe});Ce!==void 0&&Z._availableMarkerTypes.push(Ce)}else Z._availableMarkerTypes.push(oe)})},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(V){this._zoomLevel=V,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(pe.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),pe.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),q.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},pe.prototype.show=function(){var V=this;this.styles.styleSheetRoot===void 0&&re.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=re.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(Z){return Z(new bt(V))})},pe.prototype.render=function(){return be(this,void 0,void 0,function(){var V;return ve(this,function(Z){switch(Z.label){case 0:return this.setCurrentMarker(),(V=new me).naturalSize=this.renderAtNaturalSize,V.imageType=this.renderImageType,V.imageQuality=this.renderImageQuality,V.markersOnly=this.renderMarkersOnly,V.width=this.renderWidth,V.height=this.renderHeight,[4,V.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return Z.sent(),[4,V.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,Z.sent()]}})})},pe.prototype.close=function(V){var Z=this;if(V===void 0&&(V=!1),this.isOpen){var oe=!1;V||this.eventListeners.beforeclose.forEach(function(Ce){var he=new bt(Z,!0);Ce(he),he.defaultPrevented&&(oe=!0)}),oe||(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(Ce){return Ce(new bt(Z))}),this.detachEvents(),this._isOpen=!1)}},pe.prototype.addMarkersToToolbar=function(){for(var V,Z=[],oe=0;oe<arguments.length;oe++)Z[oe]=arguments[oe];(V=this._availableMarkerTypes).push.apply(V,Z)},pe.prototype.addRenderEventListener=function(V){this.addEventListener("render",function(Z){V(Z.dataUrl,Z.state)})},pe.prototype.removeRenderEventListener=function(V){},pe.prototype.addCloseEventListener=function(V){this.addEventListener("close",function(){V()})},pe.prototype.removeCloseEventListener=function(V){},pe.prototype.setupResizeObserver=function(){var V=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){V.resize(V.target.clientWidth,V.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return V.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},pe.prototype.onPopupTargetResize=function(){var V=1*this.target.clientWidth/this.target.clientHeight,Z=this.editorCanvas.clientWidth/V>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*V:this.editorCanvas.clientWidth,oe=Z<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/V;this.resize(Z,oe)},pe.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},pe.prototype.resize=function(V,Z){this._isResizing=!0;var oe=V/this.imageWidth,Ce=Z/this.imageHeight;this.imageWidth=Math.round(V),this.imageHeight=Math.round(Z),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(oe,Ce),this._isResizing=!1},pe.prototype.scaleMarkers=function(V,Z){var oe,Ce=this;this._currentMarker&&this._currentMarker instanceof _t?this._currentMarker.scale(V,Z):(oe=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(he){he!==Ce._currentMarker&&he.scale(V,Z)}),oe!==void 0&&this.setCurrentMarker(oe)},pe.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},pe.prototype.setTopLeft=function(){var V=this.editingTarget.getBoundingClientRect(),Z=this.editorCanvas.getBoundingClientRect();this.left=V.left-Z.left,this.top=V.top-Z.top},pe.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},pe.prototype.addDefs=function(){for(var V,Z=[],oe=0;oe<arguments.length;oe++)Z[oe]=arguments[oe];this.defs=se.createDefs(),this.addDefsToImage(),(V=this.defs).append.apply(V,Z)},pe.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},pe.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},pe.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},pe.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},pe.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},pe.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},pe.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},pe.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var V=document.createElement("a");V.href="https://markerjs.com/",V.target="_blank",V.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',V.title="Powered by marker.js",V.style.display="grid",V.style.alignItems="center",V.style.justifyItems="center",V.style.padding="3px",V.style.width="20px",V.style.height="20px",this.logoUI.appendChild(V),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},pe.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")},pe.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"},pe.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},pe.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 V=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=V+"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 $(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<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new J(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},pe.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},pe.prototype.removeMarker=function(V){this.markerImage.removeChild(V.container),this.markers.indexOf(V)>-1&&this.markers.splice(this.markers.indexOf(V),1),V.dispose()},pe.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())},pe.prototype.toolbarButtonClicked=function(V,Z){if(V==="marker"&&Z!==void 0)this.createNewMarker(Z);else if(V==="action")switch(Z){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()}},pe.prototype.deleteSelectedMarker=function(){var V=this;if(this._currentMarker!==void 0){var Z=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Ce){var he=new at(V,V._currentMarker,!0);Ce(he),he.defaultPrevented&&(Z=!0)}),!Z){var oe=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(Ce){return Ce(new at(V,oe))})}}},pe.prototype.clear=function(){var V=this,Z=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ct){var rn=new at(V,void 0,!0);ct(rn),rn.defaultPrevented&&(Z=!0)}),!Z)){this.setCurrentMarker();for(var oe=function(ct){var rn=Ce.markers[ct];Ce.setCurrentMarker(Ce.markers[ct]),Ce._currentMarker.dispose(),Ce.markerImage.removeChild(Ce._currentMarker.container),Ce.markers.splice(Ce.markers.indexOf(Ce._currentMarker),1),Ce.eventListeners.markerdelete.forEach(function(In){return In(new at(V,rn))})},Ce=this,he=this.markers.length-1;he>=0;he--)oe(he);this.addUndoStep()}},Object.defineProperty(pe.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),pe.prototype.showNotesEditor=function(){var V;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=(V=this._currentMarker.notes)!==null&&V!==void 0?V:"",this.overlayContainer.appendChild(this.notesArea))},pe.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)},pe.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},pe.prototype.addUndoStep=function(){var V=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var Z=this.getState(),oe=this.undoRedoManager.getLastUndoStep();if(!oe||oe.width===Z.width&&oe.height===Z.height){var Ce=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(Z),Ce<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(he){return he(new bt(V))})}else this.undoRedoManager.replaceLastUndoStep(Z),this.eventListeners.statechange.forEach(function(he){return he(new bt(V))})}},pe.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},pe.prototype.undoStep=function(){var V=this,Z=this.undoRedoManager.undo();Z!==void 0&&(this.restoreState(Z),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(oe){return oe(new bt(V))}))},pe.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},pe.prototype.redoStep=function(){var V=this,Z=this.undoRedoManager.redo();Z!==void 0&&(this.restoreState(Z),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(oe){return oe(new bt(V))}))},pe.prototype.stepZoom=function(){var V=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=V<this.zoomSteps.length-1?this.zoomSteps[V+1]:this.zoomSteps[0]},pe.prototype.panTo=function(V){this.contentDiv.scrollBy({left:this.prevPanPoint.x-V.x,top:this.prevPanPoint.y-V.y}),this.prevPanPoint=V},pe.prototype.startRenderAndClose=function(){return be(this,void 0,void 0,function(){var V,Z,oe=this;return ve(this,function(Ce){switch(Ce.label){case 0:return[4,this.render()];case 1:return V=Ce.sent(),Z=this.getState(),this.eventListeners.render.forEach(function(he){return he(new Be(oe,V,Z))}),this.close(!0),[2]}})})},pe.prototype.getState=function(V){V===!0&&this.setCurrentMarker();var Z={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(oe){return Z.markers.push(oe.getState())}),Z},pe.prototype.restoreState=function(V){var Z=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);V.markers.forEach(function(oe){var Ce=Z._availableMarkerTypes.find(function(ct){return ct.typeName===oe.typeName});if(Ce!==void 0){var he=Z.addNewMarker(Ce);he.restoreState(oe),Z.markers.push(he)}}),V.width&&V.height&&(V.width!==this.imageWidth||V.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/V.width,this.imageHeight/V.height),this.eventListeners.restorestate.forEach(function(oe){return oe(new bt(Z))})},pe.prototype.addNewMarker=function(V){var Z=se.createGroup();return this.markerImage.appendChild(Z),new V(Z,this.overlayContainer,this.settings)},pe.prototype.createNewMarker=function(V){var Z,oe=this;(Z=typeof V=="string"?this._availableMarkerTypes.find(function(Ce){return Ce.typeName===V}):V)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(Z),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(Z.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(Ce){return Ce(new at(oe,oe._currentMarker))}))},pe.prototype.markerCreated=function(V){var Z=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(V),this.setCurrentMarker(V),V instanceof Qe&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Qe):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(oe){return oe(new at(Z,Z._currentMarker))})},pe.prototype.colorChanged=function(V){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=V,this.settings.defaultStrokeColor=V)},pe.prototype.fillColorChanged=function(V){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=V)},pe.prototype.markerStateChanged=function(V){var Z=this;this.eventListeners.markerchange.forEach(function(oe){return oe(new at(Z,V))})},pe.prototype.setCurrentMarker=function(V){var Z=this;this._currentMarker!==V&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(oe){return oe(new at(Z,Z._currentMarker))})),this._currentMarker=V,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(oe){return oe(new at(Z,Z._currentMarker))}))},pe.prototype.onPointerDown=function(V){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||V.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var Z=this.markers.find(function(oe){return oe.ownsTarget(V.target)});Z!==void 0?(this.setCurrentMarker(Z),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(V.clientX,V.clientY),V.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:V.clientX,y:V.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(V.clientX,V.clientY))},pe.prototype.onDblClick=function(V){if(this._isFocused||this.focus(),this.mode==="select"){var Z=this.markers.find(function(oe){return oe.ownsTarget(V.target)});Z!==void 0&&Z!==this._currentMarker&&this.setCurrentMarker(Z),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(V.clientX,V.clientY),V.target):this.setCurrentMarker()}},pe.prototype.onPointerMove=function(V){this.touchPoints!==1&&V.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||V.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(V.clientX,V.clientY)):this.zoomLevel>1&&this.panTo({x:V.clientX,y:V.clientY}))},pe.prototype.onPointerUp=function(V){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(V.clientX,V.clientY)),this.isDragging=!1,this.addUndoStep()},pe.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},pe.prototype.onKeyUp=function(V){this._currentMarker===void 0||this.notesArea!==void 0||V.key!=="Delete"&&V.key!=="Backspace"||this.deleteSelectedMarker()},pe.prototype.clientToLocalCoordinates=function(V,Z){var oe=this.markerImage.getBoundingClientRect();return{x:(V-oe.left)/this.zoomLevel,y:(Z-oe.top)/this.zoomLevel}},pe.prototype.onWindowResize=function(){this.positionUI()},pe.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var V=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=V+"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()},pe.prototype.addLicenseKey=function(V){q.addKey(V)},pe.prototype.addEventListener=function(V,Z){this.eventListeners.addEventListener(V,Z)},pe.prototype.removeEventListener=function(V,Z){this.eventListeners.removeEventListener(V,Z)},pe.prototype.renderState=function(V){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(V),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(pe.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),pe.prototype.focus=function(){var V=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(Z){return Z(new bt(V))}))},pe.prototype.blur=function(){var V=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(Z){return Z(new bt(V))}))},pe.instanceCounter=0,pe}();/* **********************************
cropro version 1.2.0
@license SEE LICENSE IN LICENSE
copyright Alan Mendelevich
see README and LICENSE for details
********************************** *//*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
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 Ye=function(pe,V){return(Ye=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Z,oe){Z.__proto__=oe}||function(Z,oe){for(var Ce in oe)Object.prototype.hasOwnProperty.call(oe,Ce)&&(Z[Ce]=oe[Ce])})(pe,V)};function ut(pe,V){if(typeof V!="function"&&V!==null)throw new TypeError("Class extends value "+String(V)+" is not a constructor or null");function Z(){this.constructor=pe}Ye(pe,V),pe.prototype=V===null?Object.create(V):(Z.prototype=V.prototype,new Z)}function mt(pe,V,Z,oe){return new(Z||(Z=Promise))(function(Ce,he){function ct(Vn){try{In(oe.next(Vn))}catch(tn){he(tn)}}function rn(Vn){try{In(oe.throw(Vn))}catch(tn){he(tn)}}function In(Vn){var tn;Vn.done?Ce(Vn.value):(tn=Vn.value,tn instanceof Z?tn:new Z(function(En){En(tn)})).then(ct,rn)}In((oe=oe.apply(pe,V||[])).next())})}function Pt(pe,V){var Z,oe,Ce,he,ct={label:0,sent:function(){if(1&Ce[0])throw Ce[1];return Ce[1]},trys:[],ops:[]};return he={next:rn(0),throw:rn(1),return:rn(2)},typeof Symbol=="function"&&(he[Symbol.iterator]=function(){return this}),he;function rn(In){return function(Vn){return function(tn){if(Z)throw new TypeError("Generator is already executing.");for(;ct;)try{if(Z=1,oe&&(Ce=2&tn[0]?oe.return:tn[0]?oe.throw||((Ce=oe.return)&&Ce.call(oe),0):oe.next)&&!(Ce=Ce.call(oe,tn[1])).done)return Ce;switch(oe=0,Ce&&(tn=[2&tn[0],Ce.value]),tn[0]){case 0:case 1:Ce=tn;break;case 4:return ct.label++,{value:tn[1],done:!1};case 5:ct.label++,oe=tn[1],tn=[0];continue;case 7:tn=ct.ops.pop(),ct.trys.pop();continue;default:if(!(Ce=ct.trys,(Ce=Ce.length>0&&Ce[Ce.length-1])||tn[0]!==6&&tn[0]!==2)){ct=0;continue}if(tn[0]===3&&(!Ce||tn[1]>Ce[0]&&tn[1]<Ce[3])){ct.label=tn[1];break}if(tn[0]===6&&ct.label<Ce[1]){ct.label=Ce[1],Ce=tn;break}if(Ce&&ct.label<Ce[2]){ct.label=Ce[2],ct.ops.push(tn);break}Ce[2]&&ct.ops.pop(),ct.trys.pop();continue}tn=V.call(pe,ct)}catch(En){tn=[6,En],oe=0}finally{Z=Ce=0}if(5&tn[0])throw tn[1];return{value:tn[0]?tn[1]:void 0,done:!0}}([In,Vn])}}}var jt=function(){function pe(){}return pe.addKey=function(V){pe.key=V},Object.defineProperty(pe,"isLicensed",{get:function(){return!!pe.key&&new RegExp(/^CRPR-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(pe.key)},enumerable:!1,configurable:!0}),pe}(),et=function(){function pe(){}return pe.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},pe.setAttributes=function(V,Z){for(var oe=0,Ce=Z;oe<Ce.length;oe++){var he=Ce[oe],ct=he[0],rn=he[1];V.setAttribute(ct,rn)}},pe.createRect=function(V,Z,oe){var Ce=document.createElementNS("http://www.w3.org/2000/svg","rect");return Ce.setAttribute("width",V.toString()),Ce.setAttribute("height",Z.toString()),oe&&pe.setAttributes(Ce,oe),Ce},pe.createLine=function(V,Z,oe,Ce,he){var ct=document.createElementNS("http://www.w3.org/2000/svg","line");return ct.setAttribute("x1",V.toString()),ct.setAttribute("y1",Z.toString()),ct.setAttribute("x2",oe.toString()),ct.setAttribute("y2",Ce.toString()),he&&pe.setAttributes(ct,he),ct},pe.createPolygon=function(V,Z){var oe=document.createElementNS("http://www.w3.org/2000/svg","polygon");return oe.setAttribute("points",V),Z&&pe.setAttributes(oe,Z),oe},pe.createCircle=function(V,Z){var oe=document.createElementNS("http://www.w3.org/2000/svg","circle");return oe.setAttribute("cx",(V/2).toString()),oe.setAttribute("cy",(V/2).toString()),oe.setAttribute("r",V.toString()),Z&&pe.setAttributes(oe,Z),oe},pe.createEllipse=function(V,Z,oe){var Ce=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Ce.setAttribute("cx",(V/2).toString()),Ce.setAttribute("cy",(Z/2).toString()),Ce.setAttribute("rx",(V/2).toString()),Ce.setAttribute("ry",(Z/2).toString()),oe&&pe.setAttributes(Ce,oe),Ce},pe.createGroup=function(V){var Z=document.createElementNS("http://www.w3.org/2000/svg","g");return V&&pe.setAttributes(Z,V),Z},pe.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},pe.createMarker=function(V,Z,oe,Ce,he,ct,rn){var In=document.createElementNS("http://www.w3.org/2000/svg","marker");return pe.setAttributes(In,[["id",V],["orient",Z],["markerWidth",oe.toString()],["markerHeight",Ce.toString()],["refX",he.toString()],["refY",ct.toString()]]),In.appendChild(rn),In},pe.createText=function(V){var Z=document.createElementNS("http://www.w3.org/2000/svg","text");return Z.setAttribute("x","0"),Z.setAttribute("y","0"),V&&pe.setAttributes(Z,V),Z},pe.createTSpan=function(V,Z){var oe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return oe.textContent=V,Z&&pe.setAttributes(oe,Z),oe},pe.createImage=function(V){var Z=document.createElementNS("http://www.w3.org/2000/svg","image");return V&&pe.setAttributes(Z,V),Z},pe.createPoint=function(V,Z){var oe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return oe.x=V,oe.y=Z,oe},pe.createPath=function(V,Z){var oe=document.createElementNS("http://www.w3.org/2000/svg","path");return oe.setAttribute("d",V),Z&&pe.setAttributes(oe,Z),oe},pe.createElement=function(V,Z){var oe=document.createElementNS("http://www.w3.org/2000/svg",V);return Z&&pe.setAttributes(oe,Z),oe},pe.getHollowRectanglePath=function(V,Z,oe,Ce,he,ct,rn,In){return"M"+V+","+Z+"V"+(Z+Ce)+"H"+(V+oe)+"V"+Z+"H"+he+"V"+ct+"H"+(he+rn)+"V"+(ct+In)+"H"+he+"V"+Z+"Z"},pe}(),Dt=function(){function pe(V){this._classNamePrefixBase="__cropro_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+V+"_"}return Object.defineProperty(pe.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#333333",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarBackgroundActiveColor:"#282828",toolbarColor:"#eeeeee",cropShadeColor:"#ffffff",cropFrameColor:"#ffffff",gripColor:"#333333",gripFillColor:"#cccccc",toolbarHeight:40}},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_out"},enumerable:!1,configurable:!0}),pe.prototype.addClass=function(V){return this.styleSheet===void 0&&this.addStyleSheet(),V.name=""+this.classNamePrefix+V.localName,this.classes.push(V),this.styleSheet.sheet.insertRule("."+V.name+" {"+V.style+"}",this.styleSheet.sheet.cssRules.length),V},pe.prototype.addRule=function(V){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(V),this.styleSheet.sheet.insertRule(V.selector+" {"+V.style+"}",this.styleSheet.sheet.cssRules.length)},pe.prototype.addStyleSheet=function(){var V;this.styleSheet=document.createElement("style"),((V=this.styleSheetRoot)!==null&&V!==void 0?V:document.head).appendChild(this.styleSheet),this.addRule(new Ht("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Ht("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new Ht("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new bn("_fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new bn("_fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},pe.prototype.removeStyleSheet=function(){var V;this.styleSheet&&(((V=this.styleSheetRoot)!==null&&V!==void 0?V:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},pe}(),Ht=function(pe,V){this.selector=pe,this.style=V},bn=function(pe,V){this.localName=pe,this.style=V},Cn=function(){function pe(){this.blocks=[],this.display=""}return pe.prototype.addButtonBlock=function(V){V.className=this.blockClassName,V.buttonClassName=this.buttonClassName,V.buttonColorsClassName=this.buttonColorsClassName,V.buttonActiveColorsClassName=this.buttonActiveColorsClassName,this.blocks.push(V)},pe.prototype.addElementBlock=function(V){V.className===void 0&&(V.className=this.blockClassName),this.blocks.push(V)},pe.prototype.getUI=function(){var V=document.createElement("div");return V.className=this.className+" "+this.colorsClassName+" "+this.fadeInClassName,V.style.display=this.display,this.blocks.forEach(function(Z){return V.appendChild(Z.getUI())}),V},pe}(),Yn=function(){function pe(){}return pe.prototype.getUI=function(){var V=document.createElement("div");if(V.className=this.className,this.minWidth!==void 0&&(V.style.minWidth=this.minWidth),this.contentAlign!==void 0)switch(this.contentAlign){case"start":V.style.justifyContent="flex-start";break;case"center":V.style.justifyContent="center";break;case"end":V.style.justifyContent="flex-end"}return V.style.whiteSpace="nowrap",V},pe}(),qn=function(pe){function V(){var Z=pe!==null&&pe.apply(this,arguments)||this;return Z.buttons=[],Z}return ut(V,pe),V.prototype.addButton=function(Z){Z.className=this.buttonClassName,Z.colorsClassName=this.buttonColorsClassName,Z.activeColorsClassName=this.buttonActiveColorsClassName,this.buttons.push(Z)},V.prototype.getUI=function(){var Z=pe.prototype.getUI.call(this);return this.buttons.forEach(function(oe){return Z.appendChild(oe.getUI())}),Z},V}(Yn),Pn=function(){function pe(V,Z){this._isActive=!1,this._isHidden=!1,this._icon=V,this.title=Z,this.uiContainer=document.createElement("div"),this.adjustClassName=this.adjustClassName.bind(this)}return Object.defineProperty(pe.prototype,"icon",{get:function(){return this._icon},set:function(V){this._icon=V,this.buttonContainer.innerHTML=this._icon},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isActive",{get:function(){return this._isActive},set:function(V){this._isActive=V,this.adjustClassName()},enumerable:!1,configurable:!0}),pe.prototype.getUI=function(){var V=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 V.onClick()}),this.uiContainer.appendChild(this.buttonContainer),this.uiContainer.style.display=this._isHidden?"none":"inline-block",this.uiContainer},pe.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,"")))},pe.prototype.hide=function(){this._isHidden=!0},pe}(),cn=function(pe){function V(){var Z=pe!==null&&pe.apply(this,arguments)||this;return Z.elements=[],Z}return ut(V,pe),V.prototype.addElement=function(Z){this.elements.push(Z)},V.prototype.getUI=function(){var Z=pe.prototype.getUI.call(this);return this.elements.forEach(function(oe){return Z.appendChild(oe)}),Z},V}(Yn),xr=function(){function pe(V,Z){this.horizontal=V,this.vertical=Z}return Object.defineProperty(pe.prototype,"ratio",{get:function(){return 1*this.horizontal/this.vertical},enumerable:!1,configurable:!0}),pe.prototype.getVerticalLength=function(V){return V/this.ratio},pe.prototype.getHorizontalLength=function(V){return V*this.ratio},pe}(),wr=function(){function pe(){}return pe.getIcon=function(V,Z){if(V>0&&Z>0){var oe=new xr(V,Z),Ce=oe.ratio>=1?20:oe.getHorizontalLength(20),he=oe.ratio<1?20:oe.getVerticalLength(20),ct=document.createElementNS("http://www.w3.org/2000/svg","svg");ct.setAttribute("xmlns","http://www.w3.org/2000/svg"),ct.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(ct);var rn=et.createDefs();ct.appendChild(rn);var In=et.createElement("clipPath",[["id","text-bg-clip"]]);rn.appendChild(In);var Vn=et.createPath(et.getHollowRectanglePath((24-Ce)/2,(24-he)/2,Ce,he,(24-Ce)/2+2,(24-he)/2+2,Ce-4,he-4));ct.appendChild(Vn);var tn=et.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);tn.appendChild(et.createTSpan(V+":"+Z)),ct.appendChild(tn);var En=tn.getBBox();et.setAttributes(tn,[["x",((24-En.width)/2).toString()],["y",((24-En.height)/2-En.y).toString()]]);var Xn=et.createPath(et.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(En.width))/2,(24-Math.ceil(En.height))/2,Math.ceil(En.width),Math.ceil(En.height)));return In.appendChild(Xn),et.setAttributes(Vn,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(ct),ct.outerHTML}return'<svg viewBox="0 0 24 24"><path d="M19 12h-2v3h-3v2h5v-5M7 9h3V7H5v5h2V9m14-6H3a2 2 0 00-2 2v14a2 2 0 002 2h18a2 2 0 002-2V5a2 2 0 00-2-2m0 16H3V5h18v14z"/></svg>'},pe}(),Rr=function(pe){function V(Z,oe,Ce){var he=pe.call(this,Z,oe)||this;return he.isDropdownOpen=!1,he.onClick=he.dropdownButtonClicked,he.dropdownButtons=Ce,he}return ut(V,pe),V.prototype.setupDropdown=function(){var Z=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(oe){oe.className=Z.className,oe.colorsClassName=Z.colorsClassName,Z.dropdownBlock.appendChild(oe.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},V.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},V.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},V.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},V.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},V.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},V}(Pn),cr=function(){function pe(V,Z){this.GRIP_SIZE=10,this.color=V,this.fillColor=Z,this.visual=et.createGroup(),this.visual.appendChild(et.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(et.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return pe.prototype.ownsTarget=function(V){return V===this.visual||V===this.visual.childNodes[0]||V===this.visual.childNodes[1]},pe.prototype.setCenter=function(V,Z){this.visual.childNodes.forEach(function(oe){return et.setAttributes(oe,[["cx",V.toString()],["cy",Z.toString()]])})},pe}(),Ur=function(){function pe(V,Z,oe,Ce){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=V,this.canvasHeight=Z,this.margin=oe,this.container=Ce,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(pe.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(V){this._aspectRatio=V,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(V){this._isGridVisible=V,this.gridContainer&&et.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(V){this._zoomFactor=V,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),pe.prototype.open=function(){var V=this;this.cropShadeElement=et.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=et.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var Z=0;Z<this.numberOfGridLines;Z++)this.horizontalGridLines.push(et.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]])),this.verticalGridLines.push(et.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]]));this.horizontalGridLines.forEach(function(oe){return V.gridContainer.appendChild(oe)}),this.verticalGridLines.forEach(function(oe){return V.gridContainer.appendChild(oe)}),this.cropRectElement=et.createRect(0,0,[["stroke",this.cropFrameColor],["stroke-width","3"],["fill","transparent"]]),this.container.appendChild(this.cropRectElement),this.topLeftGrip=new cr(this.gripColor,this.gripFillColor),this.container.appendChild(this.topLeftGrip.visual),this.topRightGrip=new cr(this.gripColor,this.gripFillColor),this.container.appendChild(this.topRightGrip.visual),this.bottomLeftGrip=new cr(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomLeftGrip.visual),this.bottomRightGrip=new cr(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomRightGrip.visual),this.attachEvents()},pe.prototype.setCropRectangle=function(V){this.cropRect=V;var Z=Object.assign({},this.cropRect);this.zoomFactor!==1&&(Z.width=this.cropRect.width*this.zoomFactor,Z.height=this.cropRect.height*this.zoomFactor,Z.x=this.cropRect.height/this.cropRect.width<this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasWidth/2-Z.width/2,Z.y=this.cropRect.height/this.cropRect.width>this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-Z.height/2),et.setAttributes(this.cropRectElement,[["x",Z.x.toString()],["y",Z.y.toString()],["width",Z.width.toString()],["height",Z.height.toString()]]);var oe=Z.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(he,ct){var rn=Z.y+oe*(ct+1);et.setAttributes(he,[["x1",""+Z.x],["y1",""+rn],["x2",""+(Z.x+Z.width)],["y2",""+rn]])});var Ce=Z.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(he,ct){var rn=Z.x+Ce*(ct+1);et.setAttributes(he,[["x1",""+rn],["y1",""+Z.y],["x2",""+rn],["y2",""+(Z.y+Z.height)]])}),et.setAttributes(this.cropShadeElement,[["d",et.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,Z.x,Z.y,Z.width,Z.height)]]),this.topLeftGrip.setCenter(Z.x,Z.y),this.topRightGrip.setCenter(Z.x+Z.width,Z.y),this.bottomLeftGrip.setCenter(Z.x,Z.y+Z.height),this.bottomRightGrip.setCenter(Z.x+Z.width,Z.y+Z.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},pe.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)},pe.prototype.clientToLocalCoordinates=function(V,Z){var oe=this.container.getBoundingClientRect();return{x:V-oe.left+this.margin,y:Z-oe.top+this.margin}},pe.prototype.onPointerDown=function(V){this.container.setPointerCapture(V.pointerId),this.previousPoint=this.clientToLocalCoordinates(V.clientX,V.clientY),this.cropRectElement===V.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(V.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(V.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(V.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(V.target)&&(this.activeGrip=this.bottomRightGrip)},pe.prototype.onPointerMove=function(V){if(this.isMoving)this.move(this.clientToLocalCoordinates(V.clientX,V.clientY));else if(this.activeGrip){var Z=this.clientToLocalCoordinates(V.clientX,V.clientY);this.resize(Z)}V.preventDefault()},pe.prototype.onPointerUp=function(V){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(V.pointerId)},pe.prototype.move=function(V){var Z=V.x-this.previousPoint.x,oe=V.y-this.previousPoint.y;this.zoomFactor!==1&&(Z=-Z/this.zoomFactor,oe=-oe/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+Z),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+oe),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=V},pe.prototype.resize=function(V){var Z=Object.assign({},this.cropRect),oe=V.x-this.previousPoint.x,Ce=V.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:Z.x+oe<this.margin&&(oe=this.margin-Z.x),Z.x+=oe,Z.width=this.cropRect.x+this.cropRect.width-Z.x;break;case this.bottomRightGrip:case this.topRightGrip:Z.width+oe>this.canvasWidth*this.zoomFactor&&(oe=this.canvasWidth*this.zoomFactor-Z.width),Z.width+=oe}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(Z.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(oe),Z.height=this.aspectRatio.getVerticalLength(Z.width)):(Z.y+=Ce,Z.height=this.cropRect.y+this.cropRect.height-Z.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?Z.height=this.aspectRatio.getVerticalLength(Z.width):Z.height+=Ce}Z.width<10&&(Z.x=this.cropRect.x,Z.width=10),Z.height<10&&(Z.y=this.cropRect.y,Z.height=10),this.previousPoint=V,Z.x>=this.margin&&Z.y>=this.margin&&Z.x-this.margin+Z.width<=this.canvasWidth&&Z.y-this.margin+Z.height<=this.canvasHeight&&(this.cropRect=Z,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},pe.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var V=this.cropRect.x+this.cropRect.width/2,Z=this.cropRect.y+this.cropRect.height/2,oe=this.aspectRatio.getHorizontalLength(this.cropRect.height),Ce=this.aspectRatio.getVerticalLength(this.cropRect.width);oe/this.canvasWidth<Ce/this.canvasHeight?this.cropRect.width=oe:this.cropRect.height=Ce,this.cropRect.width>this.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=V-this.cropRect.width/2,this.cropRect.y=Z-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)}},pe.prototype.getRescaledRect=function(V,Z,oe,Ce,he,ct){var rn=oe/V,In=Ce/Z;return{x:(he.x-ct)*rn+ct,y:(he.y-ct)*In+ct,width:he.width*rn,height:he.height*In}},pe.prototype.scaleCanvas=function(V,Z){var oe=this.getRescaledRect(this.canvasWidth,this.canvasHeight,V,Z,this.cropRect,this.margin);this.canvasWidth=V,this.canvasHeight=Z,this.onCropChange&&this.onCropChange(oe),this.setCropRectangle(oe)},pe}(),yr=function(){function pe(V){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=V,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(pe.prototype,"angle",{get:function(){return this._angle},set:function(V){this._angle=V,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),pe.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},pe.prototype.onPointerDown=function(V){this.controlContainer.setPointerCapture(V.pointerId),this.isDragging=!0,this.previousPoint={x:V.clientX,y:V.clientY}},pe.prototype.onPointerMove=function(V){this.isDragging&&(this.onAngleChange&&this.onAngleChange((V.clientX-this.previousPoint.x)/5),this.previousPoint.x=V.clientX)},pe.prototype.onPointerUp=function(V){this.isDragging&&this.onAngleChange&&this.onAngleChange((V.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(V.pointerId)},pe.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var V=this.angleLabelText.getBBox();et.setAttributes(this.angleLabelElement,[["x",((this.width-V.width)/2).toString()],["y",(this.height/2).toString()]])}},pe.prototype.positionScaleShape=function(){if(this.scaleShape){var V=this.scaleShape.transform.baseVal.getItem(0);V.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(V,0)}},pe.prototype.getVisual=function(){var V=document.createElementNS("http://www.w3.org/2000/svg","svg");V.setAttribute("xmlns","http://www.w3.org/2000/svg"),V.setAttribute("width",this.width+"px"),V.setAttribute("height",this.height+"px"),V.setAttribute("viewBox","0 0 "+this.width+" "+this.height),V.style.flexShrink="0",document.body.appendChild(V);for(var Z="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,oe=1;oe<=this.width/5+10;oe++){var Ce=oe%5==0?this.height/3:this.height/6;Z+="h4v"+-Ce+"h1v"+Ce}Z+="v1H0Z",this.scaleShape=et.createPath(Z);var he=et.createTransform();this.scaleShape.transform.baseVal.appendItem(he),V.appendChild(this.scaleShape),this.angleLabelElement=et.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=et.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var ct=et.createTSpan("");return ct.innerHTML="&deg;",this.angleLabelElement.appendChild(ct),V.appendChild(this.angleLabelElement),document.body.removeChild(V),V},pe}(),sn=function(){function pe(){this.naturalSize=!1,this.imageType="image/png"}return pe.prototype.rasterize=function(V,Z,oe,Ce,he,ct,rn){var In=this;return new Promise(function(Vn){var tn=document.createElement("canvas");tn.width=V.width.baseVal.value-2*Ce,tn.height=V.height.baseVal.value-2*Ce;var En=1,Xn=1;In.naturalSize===!0?(En=Z.naturalWidth/(V.width.baseVal.value-2*Ce)/ct,Xn=Z.naturalHeight/(V.height.baseVal.value-2*Ce)/rn,tn.width=Z.naturalWidth/ct,tn.height=Z.naturalHeight/rn):In.width!==void 0&&In.height!==void 0&&(En=In.width/oe.width,Xn=In.height/oe.height,tn.width*=En,tn.height*=Xn);var $r=tn.getContext("2d");$r.translate(tn.width/2,tn.height/2),$r.rotate(he*Math.PI/180),$r.scale(ct,rn),$r.translate(-tn.width/2,-tn.height/2),$r.drawImage(Z,0,0,tn.width,tn.height);var ga=document.createElement("canvas");ga.width=oe.width*En,ga.height=oe.height*Xn,ga.getContext("2d").putImageData($r.getImageData((oe.x-Ce)*En,(oe.y-Ce)*Xn,oe.width*En,oe.height*Xn),0,0),Vn(ga.toDataURL(In.imageType,In.imageQuality))})},pe}(),Zt=function(){function pe(V){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=pe.instanceCounter++,this.styles=new Dt(this.instanceNo),this.target=V,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(pe.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(V){this._zoomToCropEnabled=V,V?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(V){this._isGridVisible=V,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"gridLines",{get:function(){return this._gridLines},set:function(V){this._gridLines=V,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(V){this._rotationAngle=V,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"aspectRatio",{get:function(){var V;return(V=this._aspectRatio)!==null&&V!==void 0?V:this.aspectRatios[0]},set:function(V){this._aspectRatio=V},enumerable:!1,configurable:!0}),pe.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},pe.prototype.show=function(){this.showUI(),this.open()},pe.prototype.close=function(V){V===void 0&&(V=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),V||this.closeEventListeners.forEach(function(Z){return Z()}),this._isOpen=!1)},pe.prototype.addRenderEventListener=function(V){this.renderEventListeners.push(V)},pe.prototype.removeRenderEventListener=function(V){this.renderEventListeners.indexOf(V)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(V),1)},pe.prototype.addCloseEventListener=function(V){this.closeEventListeners.push(V)},pe.prototype.removeCloseEventListener=function(V){this.closeEventListeners.indexOf(V)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(V),1)},pe.prototype.setupResizeObserver=function(){var V=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){V.resize(V.target.clientWidth,V.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))},pe.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var V=1*this.target.clientWidth/this.target.clientHeight,Z=this.contentDiv.clientWidth/V>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*V:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,oe=Z+2*this.CANVAS_MARGIN<this.contentDiv.clientWidth?this.contentDiv.clientHeight-2*this.CANVAS_MARGIN:(this.contentDiv.clientWidth-2*this.CANVAS_MARGIN)/V;this.resize(Z,oe)}},pe.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},pe.prototype.setEditingTargetSize=function(){this.editorCanvas.style.width=this.imageWidth+2*this.CANVAS_MARGIN+"px",this.editorCanvas.style.height=this.imageHeight+2*this.CANVAS_MARGIN+"px",et.setAttributes(this.editingTarget,[["width",""+this.imageWidth],["height",""+this.imageHeight]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px"},pe.prototype.resize=function(V,Z){this.imageWidth=Math.round(V),this.imageHeight=Math.round(Z),this.setEditingTargetSize(),this.cropImage.setAttribute("width",this.paddedImageWidth.toString()),this.cropImage.setAttribute("height",this.paddedImageHeight.toString()),this.cropImage.setAttribute("viewBox","0 0 "+this.paddedImageWidth.toString()+" "+this.paddedImageHeight.toString()),this.cropImageHolder.style.width=this.paddedImageWidth+"px",this.cropImageHolder.style.height=this.paddedImageHeight+"px",this.displayMode!=="popup"?this.coverDiv.style.width=this.paddedImageWidth+"px":(this.setTopLeft(),this.positionCropImage()),this.cropLayer.scaleCanvas(this.imageWidth,this.imageHeight),this.applyRotation()},pe.prototype.setEditingTarget=function(){var V=document.createElement("canvas");V.width=this.target.naturalWidth,V.height=this.target.naturalHeight,V.getContext("2d").drawImage(this.target,0,0,this.target.naturalWidth,this.target.naturalHeight);var Z=V.toDataURL();et.setAttributes(this.editingTarget,[["href",Z]]),this.setEditingTargetSize()},pe.prototype.setTopLeft=function(){var V=this.target.getBoundingClientRect(),Z=this.editorCanvas.getBoundingClientRect();this.left=V.left-Z.left-this.CANVAS_MARGIN,this.top=V.top-Z.top-this.CANVAS_MARGIN},pe.prototype.initCropCanvas=function(){this.cropImageHolder=document.createElement("div"),this.cropImageHolder.style.setProperty("touch-action","none"),this.cropImageHolder.style.setProperty("-ms-touch-action","none"),this.cropImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.cropImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.cropImage.setAttribute("width",this.paddedImageWidth.toString()),this.cropImage.setAttribute("height",this.paddedImageHeight.toString()),this.cropImage.setAttribute("viewBox","0 0 "+this.paddedImageWidth.toString()+" "+this.paddedImageHeight.toString()),this.cropImage.style.pointerEvents="auto",this.cropImageHolder.style.width=this.paddedImageWidth+"px",this.cropImageHolder.style.height=this.paddedImageHeight+"px",this.cropImageHolder.style.transformOrigin="top left",this.positionCropImage(),this.defs=et.createDefs(),this.cropImage.appendChild(this.defs),this.editingTarget=et.createImage([["href",""]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationContainer=et.createGroup(),this.editingTargetRotationScaleContainer=et.createGroup(),this.editingTargetRotationScaleContainer.appendChild(this.editingTarget),this.editingTargetRotationContainer.appendChild(this.editingTargetRotationScaleContainer);var V=et.createTransform();this.editingTargetRotationContainer.transform.baseVal.appendItem(V);var Z=et.createTransform();this.editingTargetRotationScaleContainer.transform.baseVal.appendItem(Z),this.editingTargetContainer=et.createGroup(),this.editingTargetContainer.style.transform="translate("+this.CANVAS_MARGIN+"px, "+this.CANVAS_MARGIN+"px)",this.editingTargetContainer.appendChild(this.editingTargetRotationContainer),this.cropImage.appendChild(this.editingTargetContainer),this.cropImageHolder.appendChild(this.cropImage),this.editorCanvas.appendChild(this.cropImageHolder)},pe.prototype.positionCropImage=function(){this.cropImageHolder.style.top=this.top+"px",this.cropImageHolder.style.left=this.left+"px"},pe.prototype.initCropLayer=function(){this.cropRect={x:this.CANVAS_MARGIN,y:this.CANVAS_MARGIN,width:this.imageWidth,height:this.imageHeight},this.cropLayerContainer=et.createGroup(),this.cropImage.appendChild(this.cropLayerContainer),this.cropLayer=new Ur(this.imageWidth,this.imageHeight,this.CANVAS_MARGIN,this.cropLayerContainer),this.cropLayer.onCropChange=this.cropRectChanged,this.cropLayer.numberOfGridLines=this.gridLines,this.cropLayer.isGridVisible=this.isGridVisible,this.cropLayer.cropShadeColor=this.styles.settings.cropShadeColor,this.cropLayer.cropFrameColor=this.styles.settings.cropFrameColor,this.cropLayer.gripColor=this.styles.settings.gripColor,this.cropLayer.gripFillColor=this.styles.settings.gripFillColor,this.cropLayer.open(),this.cropLayer.setCropRectangle(this.cropRect),this.zoomToCropEnabled&&this.zoomToCrop()},pe.prototype.zoomToCrop=function(){if(this.cropRect){var V=this.cropRect.x-this.CANVAS_MARGIN+this.cropRect.width/2,Z=this.cropRect.y-this.CANVAS_MARGIN+this.cropRect.height/2;this.zoomFactor=Math.min(this.imageWidth/this.cropRect.width,this.imageHeight/this.cropRect.height),this.editingTargetContainer&&this.cropLayer&&(this.editingTargetContainer.style.transformOrigin=V+"px "+Z+"px",this.editingTargetContainer.style.transform="translate("+(this.imageWidth/2-V+this.CANVAS_MARGIN)+"px,"+(this.imageHeight/2-Z+this.CANVAS_MARGIN)+"px) scale("+this.zoomFactor+")",this.cropLayer.zoomFactor=this.zoomFactor)}},pe.prototype.unzoomFromCrop=function(){this.zoomFactor=1,this.editingTargetContainer&&this.cropLayer&&(this.editingTargetContainer.style.transformOrigin="center",this.editingTargetContainer.style.transform="translate("+this.CANVAS_MARGIN+"px, "+this.CANVAS_MARGIN+"px) scale(1)",this.cropLayer.zoomFactor=this.zoomFactor)},pe.prototype.cropRectChanged=function(V){this.cropRect=V,this.zoomToCropEnabled?this.zoomToCrop():this.cropLayer.zoomFactor=1},pe.prototype.attachEvents=function(){window.addEventListener("resize",this.onWindowResize)},pe.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"},pe.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},pe.prototype.showUI=function(){switch(this.addStyles(),this.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.displayMode){case"inline":this.coverDiv.style.position="absolute";var V=this.styles.settings.hideTopToolbar?0:this.toolbarHeight,Z=this.target.offsetTop>V+this.CANVAS_MARGIN?this.target.offsetTop-(V+this.CANVAS_MARGIN):0;this.coverDiv.style.top=Z+"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},pe.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},pe.prototype.addTopToolbar=function(){var V=this;this.topToolbar=new Cn,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 Z=new qn;Z.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(Z);var oe=[];this.aspectRatios.forEach(function(Xn){var $r=new Pn(wr.getIcon(Xn.horizontal,Xn.vertical),Xn.horizontal===0&&Xn.vertical===0?"FREE":Xn.horizontal+":"+Xn.vertical);$r.onClick=function(){return V.ratioButtonClicked(Xn)},oe.push($r)}),this.aspectRatioButton=new Rr(wr.getIcon(0,0),"Aspect ratio",oe),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,Z.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var Ce=new Pn('<svg viewBox="0 0 24 24"><path d="M10 4v4h4V4h-4m6 0v4h4V4h-4m0 6v4h4v-4h-4m0 6v4h4v-4h-4m-2 4v-4h-4v4h4m-6 0v-4H4v4h4m0-6v-4H4v4h4m0-6V4H4v4h4m2 6h4v-4h-4v4M4 2h16a2 2 0 012 2v16a2 2 0 01-2 2H4c-1.08 0-2-.9-2-2V4a2 2 0 012-2z"/></svg>',"Toggle grid");Ce.isActive=this.isGridVisible,Ce.onClick=function(){V.isGridVisible=!V.isGridVisible,Ce.isActive=V.isGridVisible},Z.addButton(Ce);var he=new Pn('<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"Zoom to selection");if(he.isActive=this.zoomToCropEnabled,he.onClick=function(){V.zoomToCropEnabled=!V.zoomToCropEnabled,he.isActive=V.zoomToCropEnabled},Z.addButton(he),!jt.isLicensed){var ct=new cn;this.topToolbar.addElementBlock(ct);var rn=document.createElement("div");rn.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var In=document.createElement("a");In.style.color="currentColor",In.href="https://markerjs.com/products/cropro",In.target="_blank",In.innerHTML='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2"><path d="M16.326 14.895c0 1.126-.558 1.688-1.673 1.688H9.931c-1.116 0-1.674-.562-1.674-1.688V3.733c0-1.126.558-1.688 1.674-1.688h4.722c1.115 0 1.673.562 1.673 1.688v2.899h-1.957V3.793h-4.124v11.042h4.124v-3.242h1.957v3.302z" fill="currentColor"/><path d="M15.94 7.364a.783.783 0 00-1.065-.304l-11.01 6.126a.783.783 0 00-.303 1.065l4.498 8.085a.783.783 0 001.065.304l11.01-6.126a.783.783 0 00.303-1.065L15.94 7.364zM5.311 14.173l3.737 6.718 9.641-5.364-3.737-6.718-9.641 5.364z" fill="#eef762"/></svg>',rn.appendChild(In),ct.addElement(rn)}var Vn=new qn;Vn.minWidth=3*this.toolbarHeight+"px",Vn.contentAlign="end",this.topToolbar.addButtonBlock(Vn);var tn=new Pn('<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"OK");tn.onClick=this.startRenderAndClose,Vn.addButton(tn),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(tn.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var En=new Pn('<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"Close");En.onClick=this.close,Vn.addButton(En),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(En.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},pe.prototype.addBottomToolbar=function(){var V=this;this.bottomToolbar=new Cn,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 Z=new qn;Z.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(Z);var oe=new Pn('<svg viewBox="0 0 24 24"><path d="M13 4.07V1L8.45 5.55 13 10V6.09c2.84.48 5 2.94 5 5.91s-2.16 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93s-3.05-7.44-7-7.93M7.1 18.32c1.16.9 2.51 1.44 3.9 1.61V17.9c-.87-.15-1.71-.49-2.46-1.03L7.1 18.32M6.09 13H4.07c.17 1.39.72 2.73 1.62 3.89l1.41-1.42c-.52-.75-.87-1.59-1.01-2.47m1.02-4.47L5.7 7.11C4.8 8.27 4.24 9.61 4.07 11h2.02c.14-.87.49-1.72 1.02-2.47z"/></svg>',"Rotate left");oe.onClick=this.rotateLeftButtonClicked,Z.addButton(oe);var Ce=new Pn('<svg viewBox="0 0 24 24"><path d="M16.89 15.5l1.42 1.39c.9-1.16 1.45-2.5 1.62-3.89h-2.02c-.14.87-.48 1.72-1.02 2.5M13 17.9v2.02c1.39-.17 2.74-.71 3.9-1.61l-1.44-1.44c-.75.54-1.59.89-2.46 1.03m6.93-6.9a7.906 7.906 0 00-1.62-3.89l-1.42 1.42c.54.75.88 1.6 1.02 2.47m-2.36-5.45L11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10l4.55-4.45z"/></svg>',"Rotate right");Ce.onClick=this.rotateRightButtonClicked,Z.addButton(Ce);var he=new cn;he.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(he),this.straightener=new yr("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(Vn){V.rotateBy(Vn),V.straightener.angle=V.rotationAngle},he.addElement(this.straightener.getUI());var ct=new qn;ct.minWidth=2*this.toolbarHeight+"px",ct.contentAlign="end",this.bottomToolbar.addButtonBlock(ct);var rn=new Pn('<svg viewBox="0 0 24 24"><path d="M15 21h2v-2h-2m4-10h2V7h-2M3 5v14c0 1.1.9 2 2 2h4v-2H5V5h4V3H5c-1.1 0-2 .9-2 2m16-2v2h2c0-1.1-.9-2-2-2m-8 20h2V1h-2m8 16h2v-2h-2M15 5h2V3h-2m4 10h2v-2h-2m0 10c1.1 0 2-.9 2-2h-2z"/></svg>',"Flip horizontal");rn.onClick=this.flipHorizontallyButtonClicked,ct.addButton(rn);var In=new Pn('<svg viewBox="0 0 24 24"><path d="M3 15v2h2v-2m10 4v2h2v-2m2-16H5c-1.1 0-2 .9-2 2v4h2V5h14v4h2V5c0-1.1-.9-2-2-2m2 16h-2v2c1.1 0 2-.9 2-2M1 11v2h22v-2M7 19v2h2v-2m10-4v2h2v-2m-10 4v2h2v-2M3 19c0 1.1.9 2 2 2v-2z"/></svg>',"Flip vertical");In.onClick=this.flipVerticallyButtonClicked,ct.addButton(In)},pe.prototype.ratioButtonClicked=function(V){this.aspectRatio=V,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},pe.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=wr.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},pe.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new xr(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},pe.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},pe.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},pe.prototype.restoreState=function(V){if(V){var Z=this.cropLayer.getRescaledRect(V.width,V.height,this.imageWidth,this.imageHeight,V.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(Z),this.cropRectChanged(Z),this.flippedHorizontally=V.flippedHorizontally,this.flippedVertically=V.flippedVertically,this.applyFlip(),this.rotationAngle=V.rotationAngle,this.applyRotation()}},pe.prototype.clientToLocalCoordinates=function(V,Z){var oe=this.cropImage.getBoundingClientRect();return{x:V-oe.left,y:Z-oe.top}},pe.prototype.onWindowResize=function(){this.positionUI()},pe.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var V=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=V+"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()},pe.prototype.rotateLeftButtonClicked=function(){var V=this.rotationAngle-90;this.rotationAngle%90!=0&&(V+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(V)},pe.prototype.rotateRightButtonClicked=function(){var V=this.rotationAngle+90;this.rotationAngle%90!=0&&(V-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(V)},pe.prototype.rotateTo=function(V){V=(V=V>180?V-360:V)<=-180?V+360:V,this.rotationAngle=V,this.applyRotation()},pe.prototype.rotateBy=function(V){this.rotateTo((this.rotationAngle+V)%360)},pe.prototype.applyRotation=function(){var V=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var Z=this.editingTargetRotationContainer.transform.baseVal.getItem(0);Z.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(Z,0);var oe=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/oe.width,this.imageHeight/oe.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=V},pe.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},pe.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},pe.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},pe.prototype.startRenderAndClose=function(){return mt(this,void 0,void 0,function(){var V,Z;return Pt(this,function(oe){switch(oe.label){case 0:return[4,this.render()];case 1:return V=oe.sent(),Z=this.getState(),this.renderEventListeners.forEach(function(Ce){return Ce(V,Z)}),this.close(!0),[2]}})})},pe.prototype.render=function(){return mt(this,void 0,void 0,function(){var V;return Pt(this,function(Z){switch(Z.label){case 0:return(V=new sn).naturalSize=this.renderAtNaturalSize,V.imageType=this.renderImageType,V.imageQuality=this.renderImageQuality,V.width=this.renderWidth,V.height=this.renderHeight,this.unzoomFromCrop(),et.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,V.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 Z.sent(),[4,V.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,Z.sent()]}})})},pe.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new bn("toolbar",`
width: `+(this.displayMode==="inline"?"100%":"calc(100vw - "+2*this.popupMargin+"px)")+`;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.toolbarHeight+`px;
box-sizing: content-box;
overflow: hidden;
line-height: 0px;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new bn("toolbar_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarBlockStyleClass=this.styles.addClass(new bn("toolbar-block",`
display: flex;
align-items: center;
box-sizing: content-box;
`));var V=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new bn("toolbar_button",`
display: inline-block;
width: `+(this.toolbarHeight-2*V)+`px;
height: `+(this.toolbarHeight-2*V)+`px;
padding: `+V+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new bn("toolbar_button_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new bn("toolbar_active_button",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
background-color: `+this.styles.settings.toolbarBackgroundActiveColor+`
`)),this.styles.addRule(new Ht("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.toolbarHeight/2+`px;
`)),this.styles.addRule(new Ht("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.styles.settings.toolbarBackgroundHoverColor+`
`)),this.toolbarDropdownStyleClass=this.styles.addClass(new bn("toolbar_dropdown",`
position: absolute;
max-width: `+4*this.toolbarHeight+`px;
z-index: 20;
white-space: normal;
box-sizing: content-box;
box-shadow: 3px 3px rgba(33, 33, 33, 0.1);
margin: `+(this.displayMode==="inline"?"0":this.popupMargin)+`px;
line-height: 0px;
`)),this.toolbarDropdownStyleColorsClass=this.styles.addClass(new bn("toolbar_dropdown_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new bn("toolbar_straightener_block",`
display: flex;
overflow: hidden;
justify-content: center;
-webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 30%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
`)),this.toolbarStraightenerStyleClass=this.styles.addClass(new bn("toolbar_straightener",`
display: flex;
overflow: hidden;
justify-content: center;
height: `+(this.toolbarHeight-2*V)+`px;
padding: `+V+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new bn("toolbar_straightener_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`))},pe.instanceCounter=0,pe}(),Tn=o("8hTe"),jr=o.n(Tn),jn=/<pre[^>]*>/g;function $n(pe){var V=document.createElement("div");return V.innerHTML=pe,V.childNodes.length===0?"":V.childNodes[0].nodeValue}var Wn=Y.a=function(pe){var V=pe.value,Z=V===void 0?"":V,oe=pe.edit,Ce=oe===void 0?!1:oe,he=pe.className,ct=pe.showTextOnly,rn=pe.showLines,In=pe.replaces,Vn=pe.zoomImg,tn=pe.hasMask,En=pe.style,Xn=En===void 0?{}:En,$r=pe.stylesPrev,ga=$r===void 0?{}:$r,pa=String(Z),dr=Object(d.useRef)(),za=Object(d.useRef)(),ja=Object(d.useState)(""),Ra=Object(w.a)(ja,2),Ha=Ra[0],Sa=Ra[1],Ja=Object(d.useState)("office"),ka=Object(w.a)(Ja,2),li=ka[0],oi=ka[1],ua=function(){var Lt=new Zt(za.current);Lt.displayMode="popup",Lt.addRenderEventListener(function(){var Xt=Object(x.a)(_.a.mark(function en(vn){var pn;return _.a.wrap(function(wn){for(;;)switch(wn.prev=wn.next){case 0:return dr.current.style.display="none",wn.next=3,Object(xe.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:vn}});case 3:pn=wn.sent,pn!=null&&pn.id&&In(za.current.getAttribute("src").replace(ne.a.API_SERVER,""),"/api/attachments/".concat(pn==null?void 0:pn.id,"?type=").concat(pn.content_type));case 5:case"end":return wn.stop()}},en)}));return function(en){return Xt.apply(this,arguments)}}()),Lt.show()},fa=function(){var Lt=new Me(za.current);Lt.settings.displayMode="popup",Lt.addEventListener("render",function(){var Xt=Object(x.a)(_.a.mark(function en(vn){var pn;return _.a.wrap(function(wn){for(;;)switch(wn.prev=wn.next){case 0:if(dr.current.style.display="none",!za.current){wn.next=6;break}return wn.next=4,Object(xe.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:vn.dataUrl}});case 4:pn=wn.sent,pn!=null&&pn.id&&In(za.current.getAttribute("src").replace(ne.a.API_SERVER,""),"/api/attachments/".concat(pn==null?void 0:pn.id,"?type=").concat(pn.content_type));case 6:case"end":return wn.stop()}},en)}));return function(en){return Xt.apply(this,arguments)}}()),Lt.show(),window.markerArea=Lt},oa=Object(d.useMemo)(function(){dr.current&&(dr.current.style.zIndex=-1);try{var Wt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Lt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Xt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;pa=pa.replace(Wt,"("+ne.a.API_SERVER+"/api/attachments/").replace(Lt,'"'+ne.a.API_SERVER+"/api/attachments/").replace(Xt,'"'+ne.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,`
`)}catch(Nn){}var en=K(pa),vn=I();if(pa.match(/\[TOC\]/)&&(en=en.replace("<p>[TOC]</p>",P()),O()),en=en.replace(/(__special_katext_id_\d+__)/g,function(Nn,wn){var nn=vn[wn],Rn=nn.type,gn=nn.expression;return Object(fe.renderToString)($n(gn)||"",{displayMode:Rn==="block",throwOnError:!1,output:"html"})}),en=en.replace(/▁/g,"\u2581\u2581\u2581"),D(),ct){var pn=document.createElement("div");return pn.innerHTML=en,pn.innerText}return setTimeout(function(){return Mt()},500),en},[pa]),ye=Object(d.useRef)();S.WebkitLineClamp=rn,rn&&(Xn=Object(y.a)(Object(y.a)({},Xn),S));function lt(Wt){var Lt=Wt.target;if(Lt.tagName.toUpperCase()==="IMG"){if(Vn){var Xt=Lt.getAttribute("src");Sa(Xt),oi("image")}}else if(Lt.tagName.toUpperCase()==="A"){var en=Lt.getAttribute("href");if(en.indexOf("office")>-1)Wt.preventDefault(),Sa(en),oi("office");else if(en.indexOf("application/pdf")>-1)Wt.preventDefault(),Sa(en),oi("pdf");else if(en.indexOf("text/html")>-1)Wt.preventDefault(),Sa(en),oi("html");else if(en.startsWith("#")){Wt.preventDefault();var vn=document.getElementById(en.replace("#",""));vn&&vn.scrollIntoView(!0)}}}var Mt=function(){var Lt,Xt=(Lt=ye.current)===null||Lt===void 0?void 0:Lt.querySelectorAll("video");Xt==null||Xt.forEach(function(en){if(en.oncontextmenu=function(){return!1},en.src.indexOf(".m3u8")>-1&&!en.canPlayType("application/vnd.apple.mpegurl")){if(G.a.isSupported()){var vn=new G.a;vn.loadSource(en.src),vn.attachMedia(en)}}})};Object(d.useEffect)(function(){if(ye.current&&oa&&(oa.match(jn)&&window.PR.prettyPrint()),ye.current)return ye.current.addEventListener("click",lt),function(){ye.current.removeEventListener("click",lt),D(),O()}},[oa,ye.current,lt]);var wt=function(Lt){if(!Ce)return;Lt.target.nodeName==="IMG"?(dr.current.style.zIndex=1,dr.current.style.display="flex",dr.current.style.width=Lt.target.clientWidth+"px",dr.current.style.height=Lt.target.clientHeight+"px",dr.current.style.top=Lt.target.offsetTop+"px",dr.current.style.left=Lt.target.offsetLeft+"px",za.current.src=Lt.target.getAttribute("src")):dr.current.style.display="none"};return r.a.createElement("div",{style:{position:"relative"}},r.a.createElement("div",{ref:ye,style:Object(y.a)({},Xn),className:"".concat(he||""," markdown-body ").concat(jr.a.mdBody),onMouseOver:wt,dangerouslySetInnerHTML:{__html:oa}}),r.a.createElement("div",{ref:dr,className:jr.a.button},r.a.createElement(g.a,null,r.a.createElement(b.a,{onClick:function(){return ua()}},"\u88C1\u526A"),r.a.createElement(b.a,{onClick:function(){return fa()}},"\u7F16\u8F91"))),r.a.createElement("img",{ref:za,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),r.a.createElement(de.a,{close:!0,data:Ha,type:Ha!=null&&Ha.length?li:"",style:Object(y.a)({},ga),onClose:function(){return Sa("")}}))}},"9JIy":function(M,Y,o){M.exports={flex_box_center:"flex_box_center___Hq8-r",flex_space_between:"flex_space_between___3Nl1U",flex_box_vertical_center:"flex_box_vertical_center___1hgum",flex_box_center_end:"flex_box_center_end___i5ldC",flex_box_column:"flex_box_column____1u-K",table:"table___2yPMl"}},"9OqN":function(M,Y,o){(function(L,g,A){M.exports=Y=g(o("Ib8C"),o("OLod"))})(this,function(L){return L.mode.CTR=function(){var g=L.lib.BlockCipherMode.extend(),A=g.Encryptor=g.extend({processBlock:function(b,y){var x=this._cipher,w=x.blockSize,f=this._iv,_=this._counter;f&&(_=this._counter=f.slice(0),this._iv=void 0);var d=_.slice(0);x.encryptBlock(d,0),_[w-1]=_[w-1]+1|0;for(var r=0;r<w;r++)b[y+r]^=d[r]}});return g.Decryptor=A,g}(),L.mode.CTR})},"9VGf":function(M,Y,o){"use strict";o.d(Y,"a",function(){return A});var L=o("q1tI"),g=o.n(L);function A(b,y){var x=Object(L.useRef)();Object(L.useEffect)(function(){x.current=b}),Object(L.useEffect)(function(){function w(){x.current()}if(y!==null){var f=setInterval(w,y);return function(){return clearInterval(f)}}},[y])}},"9ZNV":function(M,Y,o){"use strict";o.d(Y,"a",function(){return d});var L=o("0Owb"),g=o("+L6B"),A=o("2/Rp"),b=o("q1tI"),y=o.n(b),x=o("UUDw"),w=o.n(x),f=o("TSYQ"),_=o.n(f),d=function(u){var t=u.cancelText,a=t===void 0?"\u53D6\u6D88":t,n=u.okText,i=n===void 0?"\u786E\u5B9A":n,h=u.loading,l=h===void 0?!1:h,s=u.hasOkBtn,p=s===void 0?!0:s,O=u.okButtonProps,S=O===void 0?{}:O,v=u.onCancel,P=v===void 0?function(){}:v,R=u.onOk,E=R===void 0?function(){}:R,C=u.className,m=C===void 0?"":C;return y.a.createElement("div",{className:_()(w.a.buttonFixed,m)},y.a.createElement("div",{className:w.a.buttonWrap},y.a.createElement(A.a,{size:"large",className:"".concat(w.a.button," mr20"),onClick:P},a),p&&y.a.createElement(A.a,Object(L.a)({size:"large",type:"primary",className:"".concat(w.a.button," mr20"),loading:l,onClick:E},S),i)))}},"A/g1":function(M,Y){M.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF92lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDMgNzkuMTY0NTI3LCAyMDIwLzEwLzE1LTE3OjQ4OjMyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgeG1wOkNyZWF0ZURhdGU9IjIwMjEtMDctMDJUMTk6Mzg6MjMrMDg6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiBkYzpmb3JtYXQ9ImltYWdlL3BuZyIgcGhvdG9zaG9wOkNvbG9yTW9kZT0iMyIgcGhvdG9zaG9wOklDQ1Byb2ZpbGU9InNSR0IgSUVDNjE5NjYtMi4xIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOmVkYzRhODM0LTVjNWQtNDQ1My04MDYzLWNkNzcwODQyODg5ZSIgeG1wTU06RG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOjQ4MTE0OTVlLTVkMDctZTk0YS1iNWEwLWYxOWJmZmM0NGUyNyIgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOmMwNjQyYzA1LTg5MzQtNDdlYy04MTFiLTlkYjdhZGNkYjFiMCI+IDx4bXBNTTpIaXN0b3J5PiA8cmRmOlNlcT4gPHJkZjpsaSBzdEV2dDphY3Rpb249ImNyZWF0ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6YzA2NDJjMDUtODkzNC00N2VjLTgxMWItOWRiN2FkY2RiMWIwIiBzdEV2dDp3aGVuPSIyMDIxLTA3LTAyVDE5OjM4OjIzKzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6ZWRjNGE4MzQtNWM1ZC00NDUzLTgwNjMtY2Q3NzA4NDI4ODllIiBzdEV2dDp3aGVuPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5fJkpyAAAGoElEQVRogc2abWxbVxnH/8+59/rdTpx2GW3UNWJJV7Ylaxp3LUFsWgJDiI5R8bK2GppAmsgQLKQthS8IEJ9okibrREf3gX2Y1K2bxAoDtog60RBSVxKnWUO7kpSppXJZK2ja2HFi33vPw4cmpbN9r++1k8Lv2znnf577f+zje95Mhw4dQqUkwljpF7kuv0EdHkm1HklRr6TQq2tn5xcklwhIMnMSQJIJxykTiSce+1am0mer5XacqM7uDJjiqbAuWlvSygrBnmKyxcoIA+tBBAAgAAikjNZ47zCIh8E8mOjYO1aOD3L7DYzXZJurs8qhuzLqFsH22hcbUs6CMudAol8Ic2Dkkb0fuvEj3IinwvobjTOeRP1safOuIPIA/AMpxbsb4z3fc9PVUQLvRY37L/vMDxtT2peCBpU97BywlkD9sXjvbzcfG7jTSYeSCZyK6l9tTCkn75xXHAVcChh4zCDzLy1DfQ+U0tomcDaSO9A8rb0WWN5P3QK+SzCPx471bLdTWSYwFdZfXz/j+e7SG3MHE73SGu+19FE0gTNV+o8aU9pXls+Waw7E4r2fL9ZQkMB4jd5xd1r96fJ7cgeDX944vL8hv74ggdUZccRrLsw4/1fQCpLyYH7tRxKYCutv1M4rK26fKdd8Nn+euJnAySp9w+o5dettt+QSItHV+nb/qsXyzddj1KAXlnmSsuIMgV8v1sCgHxdWcj002QXgh8BCAqdq9B33T2tbltOlBWcEia+NtO86nd/QOtR3EGyxXmHZHXun78jow7tPCgAI6NixpGsbZ1ibj/d2gvkZy55EHpbcDiz8BkK62LRsNotjaX5TvK8NzH0lI5j0aQAQ4z69pjarfGwZTFphab55sCdogntAFCgZhfgLn3xtv19oPnTexuFjaR4ANJV6CWhzGEvNrpQPiYBOt+vVaWu+Nd7bCaDTTUCS9LDwSNQuiT17bM3fGPd4zn1YWSc8kqJO5e9H9P6LAeNvLp9ia755sCcoiftAKLqptoOI6oRXUsiJ+FxIf/MTM9quNRl1/XhN7p7zQWPUQTdb88CNcQ9GWXMQA3XCb5JWSngxYJxtSGtfXCxvuOqZrJ9VN53wpcMfhIxhs8jSb0aT2VLmyxn3edQ52hOnNf5dsfrN86H0x9Nqu8KgqbBxdF5hCdwwfyFkPmFnflO8rw3AL8qy/V9YzCmsl1I1pNTdp6N6t52mMaVu85mkTEb0ly6EzCeaprXfWGmbB3uCTHgOLk9FCqGkmhWcBlBjJ9MkUX1K3TcRzV5qmvYesdOum9G+Weqxmop+Zo65dFsAEydFTvC0E3HQIHVNWnvpvRVGRYu+G+Oenq4kxiIk+ZLIKbjitEO1Lvyr0/SHieD8qtLqQhbG/Qvl9C2OSIqMWvwHasUdWSW6Umojbh/VPNgTlOCCLWElsOB3hO7BL6XLHfCqOaXuYsA466aPR6XnAZQ8qHKB4fWJP4kNV7SrV3ymqwNVAFiTUe85HzLedaKNxfd/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=="},ALsQ:function(M,Y,o){(function(L,g,A){M.exports=Y=g(o("Ib8C"),o("OLod"))})(this,function(L){return L.mode.CFB=function(){var g=L.lib.BlockCipherMode.extend();g.Encryptor=g.extend({processBlock:function(b,y){var x=this._cipher,w=x.blockSize;A.call(this,b,y,w,x),this._prevBlock=b.slice(y,y+w)}}),g.Decryptor=g.extend({processBlock:function(b,y){var x=this._cipher,w=x.blockSize,f=b.slice(y,y+w);A.call(this,b,y,w,x),this._prevBlock=f}});function A(b,y,x,w){var f,_=this._iv;_?(f=_.slice(0),this._iv=void 0):f=this._prevBlock,w.encryptBlock(f,0);for(var d=0;d<x;d++)b[y+d]^=f[d]}return g}(),L.mode.CFB})},B6bo:function(M,Y,o){M.exports={flex_box_center:"flex_box_center___1czbK",flex_space_between:"flex_space_between___NcbCS",flex_box_vertical_center:"flex_box_vertical_center___3bgyw",flex_box_center_end:"flex_box_center_end___1RYM-",flex_box_column:"flex_box_column___siFqq",menu:"menu___3LJ87",warehouse:"warehouse___1AVuS",header:"header___2hqXC",title:"title___2N2dQ",content:"content___252cM",left:"left___DCxzF",right:"right___3XU0c",loading:"loading___393Js",empty:"empty___-D3br",tabs:"tabs___1B5_7",line:"line___1qrlH",footer:"footer___1MBb_",commit:"commit___aa_yX",blueLight:"blueLight___oW1lR",filePathWrp:"filePathWrp___sw_To",filePath:"filePath___2Xa_Q",bottom0:"bottom0___3zeb-"}},BMKw:function(M,Y,o){M.exports={wrap:"wrap___1gcMR",content:"content___31AN8",mainPathWrap:"mainPathWrap___1HrSg",colorBlue:"colorBlue___2eq2Y"}},BU3w:function(M,Y,o){"use strict";o.d(Y,"a",function(){return x});var L=o("MNnm"),g="rc-util-key";function A(w){if(w.attachTo)return w.attachTo;var f=document.querySelector("head");return f||document.body}function b(w){var f,_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(L.a)())return null;var d=document.createElement("style");if((f=_.csp)===null||f===void 0?void 0:f.nonce){var r;d.nonce=(r=_.csp)===null||r===void 0?void 0:r.nonce}d.innerHTML=w;var u=A(_),t=u.firstChild;return _.prepend&&u.prepend?u.prepend(d):_.prepend&&t?u.insertBefore(d,t):u.appendChild(d),d}var y=new Map;function x(w,f){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d=A(_);if(!y.has(d)){var r=b("",_),u=r.parentNode;y.set(d,u),u.removeChild(r)}var t=Array.from(y.get(d).children).find(function(l){return l.tagName==="STYLE"&&l[g]===f});if(t){var a,n;if(((a=_.csp)===null||a===void 0?void 0:a.nonce)&&t.nonce!==((n=_.csp)===null||n===void 0?void 0:n.nonce)){var i;t.nonce=(i=_.csp)===null||i===void 0?void 0:i.nonce}return t.innerHTML!==w&&(t.innerHTML=w),t}var h=b(w,_);return h[g]=f,h}},Bbdw:function(M,Y,o){M.exports={flex_box_center:"flex_box_center___1d7HC",flex_space_between:"flex_space_between___2tGvG",flex_box_vertical_center:"flex_box_vertical_center___3lO4f",flex_box_center_end:"flex_box_center_end___22Avr",flex_box_column:"flex_box_column___3SksD",headLeft:"headLeft___9XMDS",colorBlue:"colorBlue___1Qpec",wrap:"wrap___1u-Va",nodata:"nodata___V_2Oo",nodataText:"nodataText___1G_zo",content:"content___314Bx",gitCode:"gitCode___2GwFG",ellipsis:"ellipsis___2M7s4",menu:"menu___3Tf01",overlayClass:"overlayClass___3ckGv",tips:"tips___-Fisb"}},Bd2K:function(M,Y,o){(function(L){L(o("VrN/"),o("osHv"))})(function(L){L.defineOption("autoCloseTags",!1,function(_,d,r){if(r!=L.Init&&r&&_.removeKeyMap("autoCloseTags"),!d)return;var u={name:"autoCloseTags"};(typeof d!="object"||d.whenClosing!==!1)&&(u["'/'"]=function(t){return x(t)}),(typeof d!="object"||d.whenOpening!==!1)&&(u["'>'"]=function(t){return b(t)}),_.addKeyMap(u)});var g=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],A=["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 b(_){if(_.getOption("disableInput"))return L.Pass;for(var d=_.listSelections(),r=[],u=_.getOption("autoCloseTags"),t=0;t<d.length;t++){if(!d[t].empty())return L.Pass;var a=d[t].head,n=_.getTokenAt(a),i=L.innerMode(_.getMode(),n.state),h=i.state,l=i.mode.xmlCurrentTag&&i.mode.xmlCurrentTag(h),s=l&&l.name;if(!s)return L.Pass;var p=i.mode.configuration=="html",O=typeof u=="object"&&u.dontCloseTags||p&&g,S=typeof u=="object"&&u.indentTags||p&&A;n.end>a.ch&&(s=s.slice(0,s.length-n.end+a.ch));var v=s.toLowerCase();if(!s||n.type=="string"&&(n.end!=a.ch||!/[\"\']/.test(n.string.charAt(n.string.length-1))||n.string.length==1)||n.type=="tag"&&l.close||n.string.indexOf("/")==a.ch-n.start-1||O&&w(O,v)>-1||f(_,i.mode.xmlCurrentContext&&i.mode.xmlCurrentContext(h)||[],s,a,!0))return L.Pass;var P=typeof u=="object"&&u.emptyTags;if(P&&w(P,s)>-1){r[t]={text:"/>",newPos:L.Pos(a.line,a.ch+2)};continue}var R=S&&w(S,v)>-1;r[t]={indent:R,text:">"+(R?`
`:"")+"</"+s+">",newPos:R?L.Pos(a.line+1,0):L.Pos(a.line,a.ch+1)}}for(var E=typeof u=="object"&&u.dontIndentOnAutoClose,t=d.length-1;t>=0;t--){var C=r[t];_.replaceRange(C.text,d[t].head,d[t].anchor,"+insert");var m=_.listSelections().slice(0);m[t]={head:C.newPos,anchor:C.newPos},_.setSelections(m),!E&&C.indent&&(_.indentLine(C.newPos.line,null,!0),_.indentLine(C.newPos.line+1,null,!0))}}function y(_,d){for(var r=_.listSelections(),u=[],t=d?"/":"</",a=_.getOption("autoCloseTags"),n=typeof a=="object"&&a.dontIndentOnSlash,i=0;i<r.length;i++){if(!r[i].empty())return L.Pass;var h=r[i].head,l=_.getTokenAt(h),s=L.innerMode(_.getMode(),l.state),p=s.state;if(d&&(l.type=="string"||l.string.charAt(0)!="<"||l.start!=h.ch-1))return L.Pass;var O,S=s.mode.name!="xml"&&_.getMode().name=="htmlmixed";if(S&&s.mode.name=="javascript")O=t+"script";else if(S&&s.mode.name=="css")O=t+"style";else{var v=s.mode.xmlCurrentContext&&s.mode.xmlCurrentContext(p);if(!v||v.length&&f(_,v,v[v.length-1],h))return L.Pass;O=t+v[v.length-1]}_.getLine(h.line).charAt(l.end)!=">"&&(O+=">"),u[i]=O}if(_.replaceSelections(u),r=_.listSelections(),!n)for(var i=0;i<r.length;i++)(i==r.length-1||r[i].head.line<r[i+1].head.line)&&_.indentLine(r[i].head.line)}function x(_){return _.getOption("disableInput")?L.Pass:y(_,!0)}L.commands.closeTag=function(_){return y(_)};function w(_,d){if(_.indexOf)return _.indexOf(d);for(var r=0,u=_.length;r<u;++r)if(_[r]==d)return r;return-1}function f(_,d,r,u,t){if(!L.scanForClosingTag)return!1;var a=Math.min(_.lastLine()+1,u.line+500),n=L.scanForClosingTag(_,u,null,a);if(!n||n.tag!=r)return!1;for(var i=t?1:0,h=d.length-1;h>=0&&d[h]==r;h--)++i;u=n.to;for(var h=1;h<i;h++){var l=L.scanForClosingTag(_,u,null,a);if(!l||l.tag!=r)return!1;u=l.to}return!0}})},BdwD:function(M,Y,o){"use strict";var L=o("+L6B"),g=o("2/Rp"),A=o("0Owb"),b=o("k1fw"),y=o("q1tI"),x=o.n(y),w=o("FOrL"),f=o.n(w),_=function(r){var u=r.buttonProps,t=u===void 0?{}:u,a=r.styles,n=a===void 0?{}:a,i=r.customText,h=r.ButtonText,l=r.ButtonClick,s=r.Buttonclass,p=r.ButtonTwo;return x.a.createElement("section",{className:"tc animated fadeIn",style:Object(b.a)(Object(b.a)({},{color:"#999",margin:"200px auto"}),n)},x.a.createElement("img",{src:f.a}),x.a.createElement("p",{className:"mt20 font14"},i||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),h&&x.a.createElement(g.a,Object(A.a)({className:s,onClick:l},t),h),p&&p)};Y.a=_},BjJ7:function(M,Y,o){"use strict";o.d(Y,"d",function(){return g}),o.d(Y,"c",function(){return A}),o.d(Y,"e",function(){return b}),o.d(Y,"b",function(){return y}),o.d(Y,"a",function(){return w});var L=o("m3rI");function g(f){var _=!0;if(f.length>0){for(var d=0;d<f.length;d++)if(f[d].compile_success==0||!f[d].compile_success){_=!1;break}}else _=!1;return _}function A(f){for(var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",d=[],r=0;r<f.length;r++){var u=f[r],t=_?"".concat(_,"/").concat(u.name):"".concat(u.name);d.push({title:u.name,isLeaf:!(u.type==="tree"),key:t})}return d}function b(f,_,d){for(var r=0;r<f.length;r++){var u=f[r];if(u.key===_){u.children=d;break}u.children&&b(u.children,_,d)}return f}function y(f,_,d){var r;return function(){var u=this,t=arguments,a=function(){r=null,d||f.apply(u,t)},n=d&&!r;clearTimeout(r),r=setTimeout(a,_),n&&f.apply(u,t)}}var x=!0,w=L.a.API_SERVER},Bq7L:function(M,Y){M.exports="data:image/png;base64,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"},"C+DQ":function(M,Y,o){},"Cs+z":function(M,Y,o){M.exports=o.p+"static/jqr.b801d45b.png"},"Ct/S":function(M,Y,o){M.exports={tilte:"tilte___1Tz7i",flexRow:"flexRow___3w9_D",flexColumn:"flexColumn___2HzC_",footerWrap:"footerWrap___12F5M",img:"img___3ED9Z",content:"content___rqPDY",modalContent:"modalContent___2h4ne"}},"DDK+":function(M,Y,o){"use strict";var L=o("+L6B"),g=o("2/Rp"),A=o("y8nQ"),b=o("Vl3Y"),y=o("cWXX"),x=o("/ezw"),w=o("rAM+"),f=o("9og8"),_=o("tJVT"),d=o("7Kak"),r=o("9yH6"),u=o("WmNS"),t=o.n(u),a=o("q1tI"),n=o.n(a),i=o("ErOA"),h=o("2qtc"),l=o("kLXV"),s=o("k1fw"),p=o("Se0u"),O=o("pUFm"),S=o.n(O);function v(){return Object(i.c)("teach_groups.json")}function P(q){return Object(i.f)("teach_groups.json",q)}function R(q,me){return Object(i.g)("teach_groups/".concat(q,".json"),me)}function E(q){return Object(i.f)("teach_group_members.json",q)}function C(q){return Object(i.b)("teach_group_members/".concat(q,".json"))}function m(q,me){return Object(i.b)("teach_groups/".concat(q,"/del_member.json?member_id=").concat(me))}function T(q){return Object(i.b)("teach_groups/".concat(q,".json"))}var I=o("5NDa"),D=o("5rEg"),N=function(q){var me=q.callback,re=q.visible,ie=q.onCancel,we=q.id,le=q.name;function $(Te){me(Te)}var J=b.a.useForm(),te=Object(_.a)(J,1),De=te[0];return Object(a.useEffect)(function(){De.setFieldsValue({name:le})},[le]),n.a.createElement(l.a,{centered:!0,title:we?"\u6539\u540D":"\u65B0\u5EFA",visible:re,onCancel:ie,footer:null},n.a.createElement(b.a,{layout:"vertical",form:De,initialValues:{name:le},onFinish:$},n.a.createElement(b.a.Item,{label:"\u6559\u7814\u56E2\u961F\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u540D\u79F0"}]},n.a.createElement(D.a,{placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u540D\u79F0",maxLength:20})),n.a.createElement(b.a.Item,null,n.a.createElement("div",{className:"flex-container flex-end"},n.a.createElement(g.a,{type:"ghost",onClick:ie,style:{marginRight:20}}," \u53D6\u6D88 ")," ",n.a.createElement(g.a,{type:"primary",htmlType:"submit"}," \u786E\u5B9A ")))))},z=o("Fxgj"),F=o("3ouR"),W=o("xGfz"),K=50,B=function(q){var me=q.data,re=q.isAdminOrTeacher,ie=q.onDelGroup,we=q.onChangeGroupName,le=q.onPlusMember,$=q.onDelMember,J=q.onExitGroup,te=Object(a.useState)(0),De=Object(_.a)(te,2),Te=De[0],ke=De[1],tt=Object(a.useState)(0),ot=Object(_.a)(tt,2),gt=ot[0],Et=ot[1];function xt(Ue){var ft=parseInt(Ue.target.id,10);l.a.confirm({title:"\u89E3\u6563\u63D0\u793A",content:"\u89E3\u6563\u6559\u7814\u56E2\u961F\u5C06\u5BF9\u56E2\u961F\u6210\u5458\u4E4B\u95F4\u5171\u4EAB\u5B9E\u8BAD\u3001\u8BD5\u5377\u7B49\u529F\u80FD\u9020\u6210\u4E0D\u4FBF\u3002\u60A8\u786E\u5B9A\u8981\u89E3\u6563\u672C\u6559\u7814\u56E2\u961F\u5417\uFF1F",onOk:function(){ie(ft)}})}function St(Ue){var ft=parseInt(Ue.target.id,10);l.a.confirm({title:"\u9000\u51FA\u63D0\u793A",content:"\u9000\u51FA\u5C06\u5BF9\u60A8\u4E0E\u7EC4\u5185\u6210\u5458\u5171\u540C\u5F00\u5C55\u6559\u7814\u6D3B\u52A8\u9020\u6210\u4E0D\u4FBF\u3002\u60A8\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F",onOk:function(){J(ft)}})}function Je(Ue,ft){l.a.confirm({title:"\u6E29\u99A8\u63D0\u793A",icon:null,content:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u7EC4\u5458\u5417?",onOk:function(){$(Ue,ft)}})}return n.a.createElement("ul",{className:"teaching-list"},me.map(function(Ue,ft){return n.a.createElement("li",{key:Ue.id,onClick:function(){return ke(ft)}},n.a.createElement("div",{className:"item-group"},n.a.createElement("span",null,Ue.name," \xA0 ",ft!==Te&&n.a.createElement("i",{className:"iconfont icon-jiantou9"})," "),n.a.createElement("div",{className:"action-group"},re?n.a.createElement("a",{onClick:function(){we(Ue)},style:{marginRight:40}},"\u4FEE\u6539\u540D2222\u79F0"):null,Ue.is_creat?n.a.createElement("a",{id:Ue.id+"",className:"c-grey-c",onClick:xt},"\u89E3\u6563"):n.a.createElement("a",{id:Ue.id+"",className:"c-grey-c",onClick:St},"\u9000\u51FA"))),ft===Te?n.a.createElement("ul",{className:"info"},Ue.memers.map(function(kt){return n.a.createElement("li",{key:kt.id||kt.name,onClick:function(){Et(kt.id)},className:gt===kt.id?"active":""},n.a.createElement("div",null,kt.name),Ue.is_creat&&kt.id&&gt===kt.id?n.a.createElement("a",{className:"btn-del",onClick:function(_t){_t.preventDefault(),_t.stopPropagation(),Je(Ue.id,gt)}},n.a.createElement(F.a,null)):null)}),re?n.a.createElement("li",null,n.a.createElement(g.a,{type:"link",disabled:Ue.memers.length>=50,title:Ue.memers.length>=50?"\u672C\u7EC4\u6210\u5458\u5DF2\u6EE1":"\u6DFB12312\u52A0\u6210\u5458",onClick:function(){le(Ue)}}," ",n.a.createElement(W.a,null)," \u6DFB\u52A0\u7EC4\u5458 ")):null):null)}))},k=o("9kvl"),G=o("ju9d");function ne(q){var me=q.children;return n.a.createElement("div",{className:"no-data"},n.a.createElement("img",{src:S.a,alt:"no-data",width:300}),me)}var fe={data:[],loading:!0,selectedGroup:{},showFormPanel:!1,showMemberPanel:!1,index:0},de;(function(q){q[q.INITDATA=0]="INITDATA",q[q.SHOWLOADING=1]="SHOWLOADING",q[q.SHOWFORMPANEL=2]="SHOWFORMPANEL",q[q.SHOWMEMBERPANEL=3]="SHOWMEMBERPANEL",q[q.SELECTGROUP=4]="SELECTGROUP",q[q.SETINDEX=5]="SETINDEX"})(de||(de={}));function xe(q,me){switch(me.type){case de.INITDATA:return Object(s.a)(Object(s.a)({},q),me.payload);case de.SHOWLOADING:return Object(s.a)(Object(s.a)({},q),{},{loading:me.payload});case de.SETINDEX:return Object(s.a)(Object(s.a)({},q),{},{index:me.payload});case de.SHOWFORMPANEL:return Object(s.a)(Object(s.a)({},q),me.payload);case de.SHOWMEMBERPANEL:return Object(s.a)(Object(s.a)({},q),me.payload);case de.SELECTGROUP:return Object(s.a)(Object(s.a)({},q),{},{selectedGroup:me.payload,showFormPanel:!0});default:throw new Error}}function Oe(q){var me,re=q.user,ie=Object(a.useReducer)(xe,fe),we=Object(_.a)(ie,2),le=we[0],$=we[1],J=le.data,te=le.index,De=le.loading,Te=le.showFormPanel,ke=le.selectedGroup,tt=le.showMemberPanel,ot=(me=re.userInfo)===null||me===void 0?void 0:me.role,gt=Object(a.useMemo)(function(){var Ot=[],Bt=[],an=Object(w.a)(J),Kt;try{for(an.s();!(Kt=an.n()).done;){var bt=Kt.value;bt.is_creat?Ot.push(bt):Bt.push(bt)}}catch(Be){an.e(Be)}finally{an.f()}return[Ot,Bt]},[J]);Object(a.useEffect)(function(){ot===15&&$({type:de.SETINDEX,payload:1})},[ot]);function Et(){return xt.apply(this,arguments)}function xt(){return xt=Object(f.a)(t.a.mark(function Ot(){var Bt;return t.a.wrap(function(Kt){for(;;)switch(Kt.prev=Kt.next){case 0:return Kt.next=2,v();case 2:Bt=Kt.sent,$({type:de.INITDATA,payload:{loading:!1,showFormPanel:!1,data:Bt.groups}});case 4:case"end":return Kt.stop()}},Ot)})),xt.apply(this,arguments)}Object(a.useEffect)(function(){Et()},[]);function St(Ot){return Je.apply(this,arguments)}function Je(){return Je=Object(f.a)(t.a.mark(function Ot(Bt){return t.a.wrap(function(Kt){for(;;)switch(Kt.prev=Kt.next){case 0:if(!ke.id){Kt.next=5;break}return Kt.next=3,R(ke.id,Bt);case 3:Kt.next=7;break;case 5:return Kt.next=7,P(Bt);case 7:Et();case 8:case"end":return Kt.stop()}},Ot)})),Je.apply(this,arguments)}function Ue(){$({type:de.SHOWFORMPANEL,payload:{showFormPanel:!0,selectedGroup:{}}})}function ft(Ot){$({type:de.SELECTGROUP,payload:Ot})}function kt(){$({type:de.SHOWFORMPANEL,payload:{showFormPanel:!1}})}function ht(){$({type:de.SHOWMEMBERPANEL,payload:{showMemberPanel:!1,selectedGroup:{}}})}function _t(Ot){$({type:de.SHOWMEMBERPANEL,payload:{showMemberPanel:!0,selectedGroup:Ot}})}function Qe(Ot,Bt){return He.apply(this,arguments)}function He(){return He=Object(f.a)(t.a.mark(function Ot(Bt,an){return t.a.wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:return bt.next=2,m(Bt,an);case 2:Et();case 3:case"end":return bt.stop()}},Ot)})),He.apply(this,arguments)}function Ge(Ot){return Ee.apply(this,arguments)}function Ee(){return Ee=Object(f.a)(t.a.mark(function Ot(Bt){return t.a.wrap(function(Kt){for(;;)switch(Kt.prev=Kt.next){case 0:return Kt.next=2,T(Bt);case 2:Et();case 3:case"end":return Kt.stop()}},Ot)})),Ee.apply(this,arguments)}function Ae(Ot){return Fe.apply(this,arguments)}function Fe(){return Fe=Object(f.a)(t.a.mark(function Ot(Bt){return t.a.wrap(function(Kt){for(;;)switch(Kt.prev=Kt.next){case 0:return Kt.next=2,C(Bt);case 2:Et();case 3:case"end":return Kt.stop()}},Ot)})),Fe.apply(this,arguments)}function We(Ot){$({type:de.SETINDEX,payload:parseInt(Ot.target.id,10)})}function Ke(Ot,Bt){return st.apply(this,arguments)}function st(){return st=Object(f.a)(t.a.mark(function Ot(Bt,an){return t.a.wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:return ht(),bt.next=3,E({user_ids:Bt,group_id:an});case 3:Et();case 4:case"end":return bt.stop()}},Ot)})),st.apply(this,arguments)}return n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:"teaching-circling-container"},n.a.createElement("h3",null," \u6559\u7814\u56E2\u961F ",ot<=12&&n.a.createElement(g.a,{type:"primary",disabled:J.length>=50,title:J.length>=50?"\u60A8\u52A0\u5165\u7684\u6559\u7814\u7EC4\u5DF2\u8FBE\u4E0A\u9650":"",onClick:Ue},"\u65B0\u5EFA")," "),n.a.createElement("div",{className:"teaching-circling-body"},ot===15?null:n.a.createElement("ul",{className:"navs"},n.a.createElement("li",{className:te===0?"active":""},n.a.createElement("a",{id:"0",onClick:We},"\u6211\u521B\u5EFA\u7684")),n.a.createElement("li",{className:te===1?"active":""},n.a.createElement("a",{id:"1",onClick:We},"\u6211\u52A0\u5165\u7684"))),n.a.createElement("div",{className:gt[te].length===0?"nodata-content":"main-content"},gt[te].length===0?n.a.createElement(ne,null,ot<=12?n.a.createElement(n.a.Fragment,null," ",n.a.createElement("p",null,"\u6559\u7814\u56E2\u961F\u6709\u52A9\u4E8E\u4F60\u548C\u4F60\u7684\u4F19\u4F34\u4EEC\u4E00\u8D77\u521B\u5EFA\u5B9E\u8BAD\u3001\u534F\u540C\u6559\u5B66\uFF0C\u6216\u5F00\u5C55\u5176\u4ED6\u6559\u7814\u6D3B\u52A8\u3002")," ",n.a.createElement("p",null,"\u5F53\u524D\u60A8\u5C1A\u672A\u7EC4\u5EFA\u5C5E\u4E8E\u81EA\u5DF1\u6559\u7814\u56E2\u961F\uFF0C\u5FEB\u53BB\u7EC4\u5EFA\u5427\uFF01")," "):n.a.createElement("p",null," \u60A8\u5C1A\u672A\u52A0\u5165\u4EFB\u4F55\u6559\u7814\u5C0F\u7EC4\uFF0C\u8BF7\u7B49\u5F85\u8001\u5E08\u7684\u53EC\u5524\u5427\uFF01 ")):n.a.createElement(B,{onExitGroup:Ae,onPlusMember:_t,onDelMember:Qe,onDelGroup:Ge,isAdminOrTeacher:ot<=12,onChangeGroupName:ft,data:gt[te]}))),n.a.createElement("p",{style:{width:1200,margin:"0 auto 40px auto"},className:"desc"}," * \u6211\u4EEC\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732 ")),n.a.createElement(N,{callback:St,visible:Te,onCancel:kt,id:ke.id,name:ke.name}),n.a.createElement(l.a,{centered:!0,title:"\u6DFB\u52A0\u6210\u5458",visible:tt,onCancel:ht,footer:null,width:1100,bodyStyle:{minHeight:200}},n.a.createElement(G.a,{container_id:ke.id,container_type:4,onSelect:Ke,onCancel:ht})))}var ce=Object(k.a)(function(q){var me=q.user;return{user:me}})(Oe),be=o("SLjR"),ve=o("55Ip"),ue=r.a.Group,se=Y.a=function(q){var me=q.onSelect,re=q.onCancel,ie=Object(a.useState)([]),we=Object(_.a)(ie,2),le=we[0],$=we[1],J=Object(a.useState)(!0),te=Object(_.a)(J,2),De=te[0],Te=te[1];Object(a.useEffect)(function(){function ot(){return gt.apply(this,arguments)}function gt(){return gt=Object(f.a)(t.a.mark(function Et(){var xt,St;return t.a.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return Ue.next=2,Object(i.c)("teach_groups/my.json");case 2:xt=Ue.sent,St=xt.groups,$(St),Te(!1);case 6:case"end":return Ue.stop()}},Et)})),gt.apply(this,arguments)}ot()},[]);var ke=Object(a.useMemo)(function(){var ot=[],gt=[],Et=Object(w.a)(le),xt;try{for(Et.s();!(xt=Et.n()).done;){var St=xt.value;St.is_creat?ot.push(St):gt.push(St)}}catch(Je){Et.e(Je)}finally{Et.f()}return[ot,gt]},[le]);function tt(ot){me(ot)}return n.a.createElement(b.a,{className:"select-teach-group",onFinish:tt},De?n.a.createElement(x.a,{paragraph:!0}):le.length===0?n.a.createElement(ne,null,"\u60A8\u5C1A\u672A\u521B\u5EFA\u60A8\u7684\u6559\u7814\u56E2\u961F\uFF0C\u5FEB\u53BB",n.a.createElement(ve.a,{to:"/account/teach-group"},"\u521B\u5EFA"),"\u5427"):n.a.createElement(n.a.Fragment,null,n.a.createElement(b.a.Item,{name:"group_id"},n.a.createElement(ue,null,n.a.createElement("p",{style:{fontSize:"12px"}},"\u6211\u521B\u5EFA\u7684\uFF1A"),n.a.createElement("ul",{className:"groups"},ke[0].map(function(ot){return n.a.createElement("li",{key:ot.id},n.a.createElement(r.a,{value:ot.id},ot.name))})),n.a.createElement("p",{style:{fontSize:"12px"}},"\u6211\u52A0\u5165\u7684\uFF1A"),n.a.createElement("ul",{className:"groups"},ke[1].map(function(ot){return n.a.createElement("li",{key:ot.id},n.a.createElement(r.a,{value:ot.id},ot.name))})))),n.a.createElement("div",{className:"btn-actions"},n.a.createElement(g.a,{type:"ghost",onClick:re,style:{marginRight:10}},"\u53D6\u6D88"),n.a.createElement(g.a,{type:"primary",htmlType:"submit"},"\u786E\u5B9A"))))}},DlQD:function(M,Y,o){(function(L,g){M.exports=g()})(this,function(){"use strict";function L(Qe,He){for(var Ge=0;Ge<He.length;Ge++){var Ee=He[Ge];Ee.enumerable=Ee.enumerable||!1,Ee.configurable=!0,"value"in Ee&&(Ee.writable=!0),Object.defineProperty(Qe,Ee.key,Ee)}}function g(Qe,He,Ge){return He&&L(Qe.prototype,He),Ge&&L(Qe,Ge),Qe}function A(Qe,He){if(!Qe)return;if(typeof Qe=="string")return b(Qe,He);var Ge=Object.prototype.toString.call(Qe).slice(8,-1);if(Ge==="Object"&&Qe.constructor&&(Ge=Qe.constructor.name),Ge==="Map"||Ge==="Set")return Array.from(Qe);if(Ge==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ge))return b(Qe,He)}function b(Qe,He){(He==null||He>Qe.length)&&(He=Qe.length);for(var Ge=0,Ee=new Array(He);Ge<He;Ge++)Ee[Ge]=Qe[Ge];return Ee}function y(Qe,He){var Ge;if(typeof Symbol=="undefined"||Qe[Symbol.iterator]==null){if(Array.isArray(Qe)||(Ge=A(Qe))||He&&Qe&&typeof Qe.length=="number"){Ge&&(Qe=Ge);var Ee=0;return function(){return Ee>=Qe.length?{done:!0}:{done:!1,value:Qe[Ee++]}}}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 Ge=Qe[Symbol.iterator](),Ge.next.bind(Ge)}function x(Qe,He){return He={exports:{}},Qe(He,He.exports),He.exports}var w=x(function(Qe){function He(){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 Ge(Ee){Qe.exports.defaults=Ee}Qe.exports={defaults:He(),getDefaults:He,changeDefaults:Ge}}),f=w.defaults,_=w.getDefaults,d=w.changeDefaults,r=/[&<>"']/,u=/[&<>"']/g,t=/[<>"']|&(?!#?\w+;)/,a=/[<>"']|&(?!#?\w+;)/g,n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},i=function(He){return n[He]};function h(Qe,He){if(He){if(r.test(Qe))return Qe.replace(u,i)}else if(t.test(Qe))return Qe.replace(a,i);return Qe}var l=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function s(Qe){return Qe.replace(l,function(He,Ge){return Ge=Ge.toLowerCase(),Ge==="colon"?":":Ge.charAt(0)==="#"?Ge.charAt(1)==="x"?String.fromCharCode(parseInt(Ge.substring(2),16)):String.fromCharCode(+Ge.substring(1)):""})}var p=/(^|[^\[])\^/g;function O(Qe,He){Qe=Qe.source||Qe,He=He||"";var Ge={replace:function(Ae,Fe){return Fe=Fe.source||Fe,Fe=Fe.replace(p,"$1"),Qe=Qe.replace(Ae,Fe),Ge},getRegex:function(){return new RegExp(Qe,He)}};return Ge}var S=/[^\w:]/g,v=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function P(Qe,He,Ge){if(Qe){var Ee;try{Ee=decodeURIComponent(s(Ge)).replace(S,"").toLowerCase()}catch(Ae){return null}if(Ee.indexOf("javascript:")===0||Ee.indexOf("vbscript:")===0||Ee.indexOf("data:")===0)return null}He&&!v.test(Ge)&&(Ge=T(He,Ge));try{Ge=encodeURI(Ge).replace(/%25/g,"%")}catch(Ae){return null}return Ge}var R={},E=/^[^:]+:\/*[^/]*$/,C=/^([^:]+:)[\s\S]*$/,m=/^([^:]+:\/*[^/]*)[\s\S]*$/;function T(Qe,He){R[" "+Qe]||(E.test(Qe)?R[" "+Qe]=Qe+"/":R[" "+Qe]=z(Qe,"/",!0)),Qe=R[" "+Qe];var Ge=Qe.indexOf(":")===-1;return He.substring(0,2)==="//"?Ge?He:Qe.replace(C,"$1")+He:He.charAt(0)==="/"?Ge?He:Qe.replace(m,"$1")+He:Qe+He}var I={exec:function(){}};function D(Qe){for(var He=1,Ge,Ee;He<arguments.length;He++){Ge=arguments[He];for(Ee in Ge)Object.prototype.hasOwnProperty.call(Ge,Ee)&&(Qe[Ee]=Ge[Ee])}return Qe}function N(Qe,He){var Ge=Qe.replace(/\|/g,function(Fe,We,Ke){for(var st=!1,Ot=We;--Ot>=0&&Ke[Ot]==="\\";)st=!st;return st?"|":" |"}),Ee=Ge.split(/ \|/),Ae=0;if(Ee.length>He)Ee.splice(He);else for(;Ee.length<He;)Ee.push("");for(;Ae<Ee.length;Ae++)Ee[Ae]=Ee[Ae].trim().replace(/\\\|/g,"|");return Ee}function z(Qe,He,Ge){var Ee=Qe.length;if(Ee===0)return"";for(var Ae=0;Ae<Ee;){var Fe=Qe.charAt(Ee-Ae-1);if(Fe===He&&!Ge)Ae++;else if(Fe!==He&&Ge)Ae++;else break}return Qe.substr(0,Ee-Ae)}function F(Qe,He){if(Qe.indexOf(He[1])===-1)return-1;for(var Ge=Qe.length,Ee=0,Ae=0;Ae<Ge;Ae++)if(Qe[Ae]==="\\")Ae++;else if(Qe[Ae]===He[0])Ee++;else if(Qe[Ae]===He[1]&&(Ee--,Ee<0))return Ae;return-1}function W(Qe){Qe&&Qe.sanitize&&!Qe.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}var K={escape:h,unescape:s,edit:O,cleanUrl:P,resolveUrl:T,noopTest:I,merge:D,splitCells:N,rtrim:z,findClosingBracket:F,checkSanitizeDeprecation:W},B=w.defaults,k=K.rtrim,G=K.splitCells,ne=K.escape,fe=K.findClosingBracket;function de(Qe,He,Ge){var Ee=He.href,Ae=He.title?ne(He.title):null,Fe=Qe[1].replace(/\\([\[\]])/g,"$1");return Qe[0].charAt(0)!=="!"?{type:"link",raw:Ge,href:Ee,title:Ae,text:Fe}:{type:"image",raw:Ge,href:Ee,title:Ae,text:ne(Fe)}}function xe(Qe,He){var Ge=Qe.match(/^(\s+)(?:```)/);if(Ge===null)return He;var Ee=Ge[1];return He.split(`
`).map(function(Ae){var Fe=Ae.match(/^\s+/);if(Fe===null)return Ae;var We=Fe[0];return We.length>=Ee.length?Ae.slice(Ee.length):Ae}).join(`
`)}var Oe=function(){function Qe(Ge){this.options=Ge||B}var He=Qe.prototype;return He.space=function(Ee){var Ae=this.rules.block.newline.exec(Ee);if(Ae)return Ae[0].length>1?{type:"space",raw:Ae[0]}:{raw:`
`}},He.code=function(Ee,Ae){var Fe=this.rules.block.code.exec(Ee);if(Fe){var We=Ae[Ae.length-1];if(We&&We.type==="paragraph")return{raw:Fe[0],text:Fe[0].trimRight()};var Ke=Fe[0].replace(/^ {4}/gm,"");return{type:"code",raw:Fe[0],codeBlockStyle:"indented",text:this.options.pedantic?Ke:k(Ke,`
`)}}},He.fences=function(Ee){var Ae=this.rules.block.fences.exec(Ee);if(Ae){var Fe=Ae[0],We=xe(Fe,Ae[3]||"");return{type:"code",raw:Fe,lang:Ae[2]?Ae[2].trim():Ae[2],text:We}}},He.heading=function(Ee){var Ae=this.rules.block.heading.exec(Ee);if(Ae)return{type:"heading",raw:Ae[0],depth:Ae[1].length,text:Ae[2]}},He.nptable=function(Ee){var Ae=this.rules.block.nptable.exec(Ee);if(Ae){var Fe={type:"table",header:G(Ae[1].replace(/^ *| *\| *$/g,"")),align:Ae[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Ae[3]?Ae[3].replace(/\n$/,"").split(`
`):[],raw:Ae[0]};if(Fe.header.length===Fe.align.length){var We=Fe.align.length,Ke;for(Ke=0;Ke<We;Ke++)/^ *-+: *$/.test(Fe.align[Ke])?Fe.align[Ke]="right":/^ *:-+: *$/.test(Fe.align[Ke])?Fe.align[Ke]="center":/^ *:-+ *$/.test(Fe.align[Ke])?Fe.align[Ke]="left":Fe.align[Ke]=null;for(We=Fe.cells.length,Ke=0;Ke<We;Ke++)Fe.cells[Ke]=G(Fe.cells[Ke],Fe.header.length);return Fe}}},He.hr=function(Ee){var Ae=this.rules.block.hr.exec(Ee);if(Ae)return{type:"hr",raw:Ae[0]}},He.blockquote=function(Ee){var Ae=this.rules.block.blockquote.exec(Ee);if(Ae){var Fe=Ae[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:Ae[0],text:Fe}}},He.list=function(Ee){var Ae=this.rules.block.list.exec(Ee);if(Ae){for(var Fe=Ae[0],We=Ae[2],Ke=We.length>1,st=We[We.length-1]===")",Ot={type:"list",raw:Fe,ordered:Ke,start:Ke?+We.slice(0,-1):"",loose:!1,items:[]},Bt=Ae[0].match(this.rules.block.item),an=!1,Kt,bt,Be,at,it,Me,Ye,ut=Bt.length,mt=0;mt<ut;mt++)Kt=Bt[mt],Fe=Kt,bt=Kt.length,Kt=Kt.replace(/^ *([*+-]|\d+[.)]) */,""),~Kt.indexOf(`
`)&&(bt-=Kt.length,Kt=this.options.pedantic?Kt.replace(/^ {1,4}/gm,""):Kt.replace(new RegExp("^ {1,"+bt+"}","gm"),"")),mt!==ut-1&&(Be=this.rules.block.bullet.exec(Bt[mt+1])[0],(Ke?Be.length===1||!st&&Be[Be.length-1]===")":Be.length>1||this.options.smartLists&&Be!==We)&&(at=Bt.slice(mt+1).join(`
`),Ot.raw=Ot.raw.substring(0,Ot.raw.length-at.length),mt=ut-1)),it=an||/\n\n(?!\s*$)/.test(Kt),mt!==ut-1&&(an=Kt.charAt(Kt.length-1)===`
`,it||(it=an)),it&&(Ot.loose=!0),Me=/^\[[ xX]\] /.test(Kt),Ye=void 0,Me&&(Ye=Kt[1]!==" ",Kt=Kt.replace(/^\[[ xX]\] +/,"")),Ot.items.push({type:"list_item",raw:Fe,task:Me,checked:Ye,loose:it,text:Kt});return Ot}},He.html=function(Ee){var Ae=this.rules.block.html.exec(Ee);if(Ae)return{type:this.options.sanitize?"paragraph":"html",raw:Ae[0],pre:!this.options.sanitizer&&(Ae[1]==="pre"||Ae[1]==="script"||Ae[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ae[0]):ne(Ae[0]):Ae[0]}},He.def=function(Ee){var Ae=this.rules.block.def.exec(Ee);if(Ae){Ae[3]&&(Ae[3]=Ae[3].substring(1,Ae[3].length-1));var Fe=Ae[1].toLowerCase().replace(/\s+/g," ");return{tag:Fe,raw:Ae[0],href:Ae[2],title:Ae[3]}}},He.table=function(Ee){var Ae=this.rules.block.table.exec(Ee);if(Ae){var Fe={type:"table",header:G(Ae[1].replace(/^ *| *\| *$/g,"")),align:Ae[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Ae[3]?Ae[3].replace(/\n$/,"").split(`
`):[]};if(Fe.header.length===Fe.align.length){Fe.raw=Ae[0];var We=Fe.align.length,Ke;for(Ke=0;Ke<We;Ke++)/^ *-+: *$/.test(Fe.align[Ke])?Fe.align[Ke]="right":/^ *:-+: *$/.test(Fe.align[Ke])?Fe.align[Ke]="center":/^ *:-+ *$/.test(Fe.align[Ke])?Fe.align[Ke]="left":Fe.align[Ke]=null;for(We=Fe.cells.length,Ke=0;Ke<We;Ke++)Fe.cells[Ke]=G(Fe.cells[Ke].replace(/^ *\| *| *\| *$/g,""),Fe.header.length);return Fe}}},He.lheading=function(Ee){var Ae=this.rules.block.lheading.exec(Ee);if(Ae)return{type:"heading",raw:Ae[0],depth:Ae[2].charAt(0)==="="?1:2,text:Ae[1]}},He.paragraph=function(Ee){var Ae=this.rules.block.paragraph.exec(Ee);if(Ae)return{type:"paragraph",raw:Ae[0],text:Ae[1].charAt(Ae[1].length-1)===`
`?Ae[1].slice(0,-1):Ae[1]}},He.text=function(Ee,Ae){var Fe=this.rules.block.text.exec(Ee);if(Fe){var We=Ae[Ae.length-1];return We&&We.type==="text"?{raw:Fe[0],text:Fe[0]}:{type:"text",raw:Fe[0],text:Fe[0]}}},He.escape=function(Ee){var Ae=this.rules.inline.escape.exec(Ee);if(Ae)return{type:"escape",raw:Ae[0],text:ne(Ae[1])}},He.tag=function(Ee,Ae,Fe){var We=this.rules.inline.tag.exec(Ee);if(We)return!Ae&&/^<a /i.test(We[0])?Ae=!0:Ae&&/^<\/a>/i.test(We[0])&&(Ae=!1),!Fe&&/^<(pre|code|kbd|script)(\s|>)/i.test(We[0])?Fe=!0:Fe&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(We[0])&&(Fe=!1),{type:this.options.sanitize?"text":"html",raw:We[0],inLink:Ae,inRawBlock:Fe,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(We[0]):ne(We[0]):We[0]}},He.link=function(Ee){var Ae=this.rules.inline.link.exec(Ee);if(Ae){var Fe=fe(Ae[2],"()");if(Fe>-1){var We=Ae[0].indexOf("!")===0?5:4,Ke=We+Ae[1].length+Fe;Ae[2]=Ae[2].substring(0,Fe),Ae[0]=Ae[0].substring(0,Ke).trim(),Ae[3]=""}var st=Ae[2],Ot="";if(this.options.pedantic){var Bt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(st);Bt?(st=Bt[1],Ot=Bt[3]):Ot=""}else Ot=Ae[3]?Ae[3].slice(1,-1):"";st=st.trim().replace(/^<([\s\S]*)>$/,"$1");var an=de(Ae,{href:st&&st.replace(this.rules.inline._escapes,"$1"),title:Ot&&Ot.replace(this.rules.inline._escapes,"$1")},Ae[0]);return an}},He.reflink=function(Ee,Ae){var Fe;if((Fe=this.rules.inline.reflink.exec(Ee))||(Fe=this.rules.inline.nolink.exec(Ee))){var We=(Fe[2]||Fe[1]).replace(/\s+/g," ");if(We=Ae[We.toLowerCase()],!We||!We.href){var Ke=Fe[0].charAt(0);return{type:"text",raw:Ke,text:Ke}}var st=de(Fe,We,Fe[0]);return st}},He.strong=function(Ee,Ae,Fe){Fe===void 0&&(Fe="");var We=this.rules.inline.strong.start.exec(Ee);if(We&&(!We[1]||We[1]&&(Fe===""||this.rules.inline.punctuation.exec(Fe)))){Ae=Ae.slice(-1*Ee.length);var Ke=We[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;Ke.lastIndex=0;for(var st;(We=Ke.exec(Ae))!=null;)if(st=this.rules.inline.strong.middle.exec(Ae.slice(0,We.index+3)),st)return{type:"strong",raw:Ee.slice(0,st[0].length),text:Ee.slice(2,st[0].length-2)}}},He.em=function(Ee,Ae,Fe){Fe===void 0&&(Fe="");var We=this.rules.inline.em.start.exec(Ee);if(We&&(!We[1]||We[1]&&(Fe===""||this.rules.inline.punctuation.exec(Fe)))){Ae=Ae.slice(-1*Ee.length);var Ke=We[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;Ke.lastIndex=0;for(var st;(We=Ke.exec(Ae))!=null;)if(st=this.rules.inline.em.middle.exec(Ae.slice(0,We.index+2)),st)return{type:"em",raw:Ee.slice(0,st[0].length),text:Ee.slice(1,st[0].length-1)}}},He.codespan=function(Ee){var Ae=this.rules.inline.code.exec(Ee);if(Ae){var Fe=Ae[2].replace(/\n/g," "),We=/[^ ]/.test(Fe),Ke=Fe.startsWith(" ")&&Fe.endsWith(" ");return We&&Ke&&(Fe=Fe.substring(1,Fe.length-1)),Fe=ne(Fe,!0),{type:"codespan",raw:Ae[0],text:Fe}}},He.br=function(Ee){var Ae=this.rules.inline.br.exec(Ee);if(Ae)return{type:"br",raw:Ae[0]}},He.del=function(Ee){var Ae=this.rules.inline.del.exec(Ee);if(Ae)return{type:"del",raw:Ae[0],text:Ae[1]}},He.autolink=function(Ee,Ae){var Fe=this.rules.inline.autolink.exec(Ee);if(Fe){var We,Ke;return Fe[2]==="@"?(We=ne(this.options.mangle?Ae(Fe[1]):Fe[1]),Ke="mailto:"+We):(We=ne(Fe[1]),Ke=We),{type:"link",raw:Fe[0],text:We,href:Ke,tokens:[{type:"text",raw:We,text:We}]}}},He.url=function(Ee,Ae){var Fe;if(Fe=this.rules.inline.url.exec(Ee)){var We,Ke;if(Fe[2]==="@")We=ne(this.options.mangle?Ae(Fe[0]):Fe[0]),Ke="mailto:"+We;else{var st;do st=Fe[0],Fe[0]=this.rules.inline._backpedal.exec(Fe[0])[0];while(st!==Fe[0]);We=ne(Fe[0]),Fe[1]==="www."?Ke="http://"+We:Ke=We}return{type:"link",raw:Fe[0],text:We,href:Ke,tokens:[{type:"text",raw:We,text:We}]}}},He.inlineText=function(Ee,Ae,Fe){var We=this.rules.inline.text.exec(Ee);if(We){var Ke;return Ae?Ke=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(We[0]):ne(We[0]):We[0]:Ke=ne(this.options.smartypants?Fe(We[0]):We[0]),{type:"text",raw:We[0],text:Ke}}},Qe}(),ce=K.noopTest,be=K.edit,ve=K.merge,ue={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]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:ce,table:ce,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};ue._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,ue._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,ue.def=be(ue.def).replace("label",ue._label).replace("title",ue._title).getRegex(),ue.bullet=/(?:[*+-]|\d{1,9}[.)])/,ue.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,ue.item=be(ue.item,"gm").replace(/bull/g,ue.bullet).getRegex(),ue.list=be(ue.list).replace(/bull/g,ue.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ue.def.source+")").getRegex(),ue._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",ue._comment=/<!--(?!-?>)[\s\S]*?-->/,ue.html=be(ue.html,"i").replace("comment",ue._comment).replace("tag",ue._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ue.paragraph=be(ue._paragraph).replace("hr",ue.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","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",ue._tag).getRegex(),ue.blockquote=be(ue.blockquote).replace("paragraph",ue.paragraph).getRegex(),ue.normal=ve({},ue),ue.gfm=ve({},ue.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*|$)"}),ue.gfm.nptable=be(ue.gfm.nptable).replace("hr",ue.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","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",ue._tag).getRegex(),ue.gfm.table=be(ue.gfm.table).replace("hr",ue.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","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",ue._tag).getRegex(),ue.pedantic=ve({},ue.normal,{html:be(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ue._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:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:ce,paragraph:be(ue.normal._paragraph).replace("hr",ue.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",ue.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var se={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ce,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\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:ce,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/};se._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",se.punctuation=be(se.punctuation).replace(/punctuation/g,se._punctuation).getRegex(),se._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",se._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",se.em.start=be(se.em.start).replace(/punctuation/g,se._punctuation).getRegex(),se.em.middle=be(se.em.middle).replace(/punctuation/g,se._punctuation).replace(/overlapSkip/g,se._overlapSkip).getRegex(),se.em.endAst=be(se.em.endAst,"g").replace(/punctuation/g,se._punctuation).getRegex(),se.em.endUnd=be(se.em.endUnd,"g").replace(/punctuation/g,se._punctuation).getRegex(),se.strong.start=be(se.strong.start).replace(/punctuation/g,se._punctuation).getRegex(),se.strong.middle=be(se.strong.middle).replace(/punctuation/g,se._punctuation).replace(/blockSkip/g,se._blockSkip).getRegex(),se.strong.endAst=be(se.strong.endAst,"g").replace(/punctuation/g,se._punctuation).getRegex(),se.strong.endUnd=be(se.strong.endUnd,"g").replace(/punctuation/g,se._punctuation).getRegex(),se.blockSkip=be(se._blockSkip,"g").getRegex(),se.overlapSkip=be(se._overlapSkip,"g").getRegex(),se._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,se._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,se._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])?)+(?![-_])/,se.autolink=be(se.autolink).replace("scheme",se._scheme).replace("email",se._email).getRegex(),se._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,se.tag=be(se.tag).replace("comment",ue._comment).replace("attribute",se._attribute).getRegex(),se._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,se._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,se._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,se.link=be(se.link).replace("label",se._label).replace("href",se._href).replace("title",se._title).getRegex(),se.reflink=be(se.reflink).replace("label",se._label).getRegex(),se.reflinkSearch=be(se.reflinkSearch,"g").replace("reflink",se.reflink).replace("nolink",se.nolink).getRegex(),se.normal=ve({},se),se.pedantic=ve({},se.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:be(/^!?\[(label)\]\((.*?)\)/).replace("label",se._label).getRegex(),reflink:be(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",se._label).getRegex()}),se.gfm=ve({},se.normal,{escape:be(se.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]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),se.gfm.url=be(se.gfm.url,"i").replace("email",se.gfm._extended_email).getRegex(),se.breaks=ve({},se.gfm,{br:be(se.br).replace("{2,}","*").getRegex(),text:be(se.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var q={block:ue,inline:se},me=w.defaults,re=q.block,ie=q.inline;function we(Qe){return Qe.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function le(Qe){var He="",Ge,Ee,Ae=Qe.length;for(Ge=0;Ge<Ae;Ge++)Ee=Qe.charCodeAt(Ge),Math.random()>.5&&(Ee="x"+Ee.toString(16)),He+="&#"+Ee+";";return He}var $=function(){function Qe(Ge){this.tokens=[],this.tokens.links=Object.create(null),this.options=Ge||me,this.options.tokenizer=this.options.tokenizer||new Oe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Ee={block:re.normal,inline:ie.normal};this.options.pedantic?(Ee.block=re.pedantic,Ee.inline=ie.pedantic):this.options.gfm&&(Ee.block=re.gfm,this.options.breaks?Ee.inline=ie.breaks:Ee.inline=ie.gfm),this.tokenizer.rules=Ee}Qe.lex=function(Ee,Ae){var Fe=new Qe(Ae);return Fe.lex(Ee)};var He=Qe.prototype;return He.lex=function(Ee){return Ee=Ee.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(Ee,this.tokens,!0),this.inline(this.tokens),this.tokens},He.blockTokens=function(Ee,Ae,Fe){Ae===void 0&&(Ae=[]),Fe===void 0&&(Fe=!0),Ee=Ee.replace(/^ +$/gm,"");for(var We,Ke,st,Ot;Ee;){if(We=this.tokenizer.space(Ee)){Ee=Ee.substring(We.raw.length),We.type&&Ae.push(We);continue}if(We=this.tokenizer.code(Ee,Ae)){Ee=Ee.substring(We.raw.length),We.type?Ae.push(We):(Ot=Ae[Ae.length-1],Ot.raw+=`
`+We.raw,Ot.text+=`
`+We.text);continue}if(We=this.tokenizer.fences(Ee)){Ee=Ee.substring(We.raw.length),Ae.push(We);continue}if(We=this.tokenizer.heading(Ee)){Ee=Ee.substring(We.raw.length),Ae.push(We);continue}if(We=this.tokenizer.nptable(Ee)){Ee=Ee.substring(We.raw.length),Ae.push(We);continue}if(We=this.tokenizer.hr(Ee)){Ee=Ee.substring(We.raw.length),Ae.push(We);continue}if(We=this.tokenizer.blockquote(Ee)){Ee=Ee.substring(We.raw.length),We.tokens=this.blockTokens(We.text,[],Fe),Ae.push(We);continue}if(We=this.tokenizer.list(Ee)){for(Ee=Ee.substring(We.raw.length),st=We.items.length,Ke=0;Ke<st;Ke++)We.items[Ke].tokens=this.blockTokens(We.items[Ke].text,[],!1);Ae.push(We);continue}if(We=this.tokenizer.html(Ee)){Ee=Ee.substring(We.raw.length),Ae.push(We);continue}if(Fe&&(We=this.tokenizer.def(Ee))){Ee=Ee.substring(We.raw.length),this.tokens.links[We.tag]||(this.tokens.links[We.tag]={href:We.href,title:We.title});continue}if(We=this.tokenizer.table(Ee)){Ee=Ee.substring(We.raw.length),Ae.push(We);continue}if(We=this.tokenizer.lheading(Ee)){Ee=Ee.substring(We.raw.length),Ae.push(We);continue}if(Fe&&(We=this.tokenizer.paragraph(Ee))){Ee=Ee.substring(We.raw.length),Ae.push(We);continue}if(We=this.tokenizer.text(Ee,Ae)){Ee=Ee.substring(We.raw.length),We.type?Ae.push(We):(Ot=Ae[Ae.length-1],Ot.raw+=`
`+We.raw,Ot.text+=`
`+We.text);continue}if(Ee){var Bt="Infinite loop on byte: "+Ee.charCodeAt(0);if(this.options.silent){console.error(Bt);break}else throw new Error(Bt)}}return Ae},He.inline=function(Ee){var Ae,Fe,We,Ke,st,Ot,Bt=Ee.length;for(Ae=0;Ae<Bt;Ae++){Ot=Ee[Ae];switch(Ot.type){case"paragraph":case"text":case"heading":{Ot.tokens=[],this.inlineTokens(Ot.text,Ot.tokens);break}case"table":{for(Ot.tokens={header:[],cells:[]},Ke=Ot.header.length,Fe=0;Fe<Ke;Fe++)Ot.tokens.header[Fe]=[],this.inlineTokens(Ot.header[Fe],Ot.tokens.header[Fe]);for(Ke=Ot.cells.length,Fe=0;Fe<Ke;Fe++)for(st=Ot.cells[Fe],Ot.tokens.cells[Fe]=[],We=0;We<st.length;We++)Ot.tokens.cells[Fe][We]=[],this.inlineTokens(st[We],Ot.tokens.cells[Fe][We]);break}case"blockquote":{this.inline(Ot.tokens);break}case"list":{for(Ke=Ot.items.length,Fe=0;Fe<Ke;Fe++)this.inline(Ot.items[Fe].tokens);break}}}return Ee},He.inlineTokens=function(Ee,Ae,Fe,We,Ke){Ae===void 0&&(Ae=[]),Fe===void 0&&(Fe=!1),We===void 0&&(We=!1),Ke===void 0&&(Ke="");var st,Ot=Ee,Bt;if(this.tokens.links){var an=Object.keys(this.tokens.links);if(an.length>0)for(;(Bt=this.tokenizer.rules.inline.reflinkSearch.exec(Ot))!=null;)an.includes(Bt[0].slice(Bt[0].lastIndexOf("[")+1,-1))&&(Ot=Ot.slice(0,Bt.index)+"["+"a".repeat(Bt[0].length-2)+"]"+Ot.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Bt=this.tokenizer.rules.inline.blockSkip.exec(Ot))!=null;)Ot=Ot.slice(0,Bt.index)+"["+"a".repeat(Bt[0].length-2)+"]"+Ot.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;Ee;){if(st=this.tokenizer.escape(Ee)){Ee=Ee.substring(st.raw.length),Ae.push(st);continue}if(st=this.tokenizer.tag(Ee,Fe,We)){Ee=Ee.substring(st.raw.length),Fe=st.inLink,We=st.inRawBlock,Ae.push(st);continue}if(st=this.tokenizer.link(Ee)){Ee=Ee.substring(st.raw.length),st.type==="link"&&(st.tokens=this.inlineTokens(st.text,[],!0,We)),Ae.push(st);continue}if(st=this.tokenizer.reflink(Ee,this.tokens.links)){Ee=Ee.substring(st.raw.length),st.type==="link"&&(st.tokens=this.inlineTokens(st.text,[],!0,We)),Ae.push(st);continue}if(st=this.tokenizer.strong(Ee,Ot,Ke)){Ee=Ee.substring(st.raw.length),st.tokens=this.inlineTokens(st.text,[],Fe,We),Ae.push(st);continue}if(st=this.tokenizer.em(Ee,Ot,Ke)){Ee=Ee.substring(st.raw.length),st.tokens=this.inlineTokens(st.text,[],Fe,We),Ae.push(st);continue}if(st=this.tokenizer.codespan(Ee)){Ee=Ee.substring(st.raw.length),Ae.push(st);continue}if(st=this.tokenizer.br(Ee)){Ee=Ee.substring(st.raw.length),Ae.push(st);continue}if(st=this.tokenizer.del(Ee)){Ee=Ee.substring(st.raw.length),st.tokens=this.inlineTokens(st.text,[],Fe,We),Ae.push(st);continue}if(st=this.tokenizer.autolink(Ee,le)){Ee=Ee.substring(st.raw.length),Ae.push(st);continue}if(!Fe&&(st=this.tokenizer.url(Ee,le))){Ee=Ee.substring(st.raw.length),Ae.push(st);continue}if(st=this.tokenizer.inlineText(Ee,We,we)){Ee=Ee.substring(st.raw.length),Ke=st.raw.slice(-1),Ae.push(st);continue}if(Ee){var Kt="Infinite loop on byte: "+Ee.charCodeAt(0);if(this.options.silent){console.error(Kt);break}else throw new Error(Kt)}}return Ae},g(Qe,null,[{key:"rules",get:function(){return{block:re,inline:ie}}}]),Qe}(),J=w.defaults,te=K.cleanUrl,De=K.escape,Te=function(){function Qe(Ge){this.options=Ge||J}var He=Qe.prototype;return He.code=function(Ee,Ae,Fe){var We=(Ae||"").match(/\S*/)[0];if(this.options.highlight){var Ke=this.options.highlight(Ee,We);Ke!=null&&Ke!==Ee&&(Fe=!0,Ee=Ke)}return We?'<pre><code class="'+this.options.langPrefix+De(We,!0)+'">'+(Fe?Ee:De(Ee,!0))+`</code></pre>
`:"<pre><code>"+(Fe?Ee:De(Ee,!0))+`</code></pre>
`},He.blockquote=function(Ee){return`<blockquote>
`+Ee+`</blockquote>
`},He.html=function(Ee){return Ee},He.heading=function(Ee,Ae,Fe,We){return this.options.headerIds?"<h"+Ae+' id="'+this.options.headerPrefix+We.slug(Fe)+'">'+Ee+"</h"+Ae+`>
`:"<h"+Ae+">"+Ee+"</h"+Ae+`>
`},He.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},He.list=function(Ee,Ae,Fe){var We=Ae?"ol":"ul",Ke=Ae&&Fe!==1?' start="'+Fe+'"':"";return"<"+We+Ke+`>
`+Ee+"</"+We+`>
`},He.listitem=function(Ee){return"<li>"+Ee+`</li>
`},He.checkbox=function(Ee){return"<input "+(Ee?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},He.paragraph=function(Ee){return"<p>"+Ee+`</p>
`},He.table=function(Ee,Ae){return Ae&&(Ae="<tbody>"+Ae+"</tbody>"),`<table>
<thead>
`+Ee+`</thead>
`+Ae+`</table>
`},He.tablerow=function(Ee){return`<tr>
`+Ee+`</tr>
`},He.tablecell=function(Ee,Ae){var Fe=Ae.header?"th":"td",We=Ae.align?"<"+Fe+' align="'+Ae.align+'">':"<"+Fe+">";return We+Ee+"</"+Fe+`>
`},He.strong=function(Ee){return"<strong>"+Ee+"</strong>"},He.em=function(Ee){return"<em>"+Ee+"</em>"},He.codespan=function(Ee){return"<code>"+Ee+"</code>"},He.br=function(){return this.options.xhtml?"<br/>":"<br>"},He.del=function(Ee){return"<del>"+Ee+"</del>"},He.link=function(Ee,Ae,Fe){if(Ee=te(this.options.sanitize,this.options.baseUrl,Ee),Ee===null)return Fe;var We='<a href="'+De(Ee)+'"';return Ae&&(We+=' title="'+Ae+'"'),We+=">"+Fe+"</a>",We},He.image=function(Ee,Ae,Fe){if(Ee=te(this.options.sanitize,this.options.baseUrl,Ee),Ee===null)return Fe;var We='<img src="'+Ee+'" alt="'+Fe+'"';return Ae&&(We+=' title="'+Ae+'"'),We+=this.options.xhtml?"/>":">",We},He.text=function(Ee){return Ee},Qe}(),ke=function(){function Qe(){}var He=Qe.prototype;return He.strong=function(Ee){return Ee},He.em=function(Ee){return Ee},He.codespan=function(Ee){return Ee},He.del=function(Ee){return Ee},He.html=function(Ee){return Ee},He.text=function(Ee){return Ee},He.link=function(Ee,Ae,Fe){return""+Fe},He.image=function(Ee,Ae,Fe){return""+Fe},He.br=function(){return""},Qe}(),tt=function(){function Qe(){this.seen={}}var He=Qe.prototype;return He.slug=function(Ee){var Ae=Ee.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(Ae)){var Fe=Ae;do this.seen[Fe]++,Ae=Fe+"-"+this.seen[Fe];while(this.seen.hasOwnProperty(Ae))}return this.seen[Ae]=0,Ae},Qe}(),ot=w.defaults,gt=K.unescape,Et=function(){function Qe(Ge){this.options=Ge||ot,this.options.renderer=this.options.renderer||new Te,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ke,this.slugger=new tt}Qe.parse=function(Ee,Ae){var Fe=new Qe(Ae);return Fe.parse(Ee)};var He=Qe.prototype;return He.parse=function(Ee,Ae){Ae===void 0&&(Ae=!0);var Fe="",We,Ke,st,Ot,Bt,an,Kt,bt,Be,at,it,Me,Ye,ut,mt,Pt,jt,et,Dt=Ee.length;for(We=0;We<Dt;We++){at=Ee[We];switch(at.type){case"space":continue;case"hr":{Fe+=this.renderer.hr();continue}case"heading":{Fe+=this.renderer.heading(this.parseInline(at.tokens),at.depth,gt(this.parseInline(at.tokens,this.textRenderer)),this.slugger);continue}case"code":{Fe+=this.renderer.code(at.text,at.lang,at.escaped);continue}case"table":{for(bt="",Kt="",Ot=at.header.length,Ke=0;Ke<Ot;Ke++)Kt+=this.renderer.tablecell(this.parseInline(at.tokens.header[Ke]),{header:!0,align:at.align[Ke]});for(bt+=this.renderer.tablerow(Kt),Be="",Ot=at.cells.length,Ke=0;Ke<Ot;Ke++){for(an=at.tokens.cells[Ke],Kt="",Bt=an.length,st=0;st<Bt;st++)Kt+=this.renderer.tablecell(this.parseInline(an[st]),{header:!1,align:at.align[st]});Be+=this.renderer.tablerow(Kt)}Fe+=this.renderer.table(bt,Be);continue}case"blockquote":{Be=this.parse(at.tokens),Fe+=this.renderer.blockquote(Be);continue}case"list":{for(it=at.ordered,Me=at.start,Ye=at.loose,Ot=at.items.length,Be="",Ke=0;Ke<Ot;Ke++)mt=at.items[Ke],Pt=mt.checked,jt=mt.task,ut="",mt.task&&(et=this.renderer.checkbox(Pt),Ye?mt.tokens.length>0&&mt.tokens[0].type==="text"?(mt.tokens[0].text=et+" "+mt.tokens[0].text,mt.tokens[0].tokens&&mt.tokens[0].tokens.length>0&&mt.tokens[0].tokens[0].type==="text"&&(mt.tokens[0].tokens[0].text=et+" "+mt.tokens[0].tokens[0].text)):mt.tokens.unshift({type:"text",text:et}):ut+=et),ut+=this.parse(mt.tokens,Ye),Be+=this.renderer.listitem(ut,jt,Pt);Fe+=this.renderer.list(Be,it,Me);continue}case"html":{Fe+=this.renderer.html(at.text);continue}case"paragraph":{Fe+=this.renderer.paragraph(this.parseInline(at.tokens));continue}case"text":{for(Be=at.tokens?this.parseInline(at.tokens):at.text;We+1<Dt&&Ee[We+1].type==="text";)at=Ee[++We],Be+=`
`+(at.tokens?this.parseInline(at.tokens):at.text);Fe+=Ae?this.renderer.paragraph(Be):Be;continue}default:{var Ht='Token with "'+at.type+'" type was not found.';if(this.options.silent){console.error(Ht);return}else throw new Error(Ht)}}}return Fe},He.parseInline=function(Ee,Ae){Ae=Ae||this.renderer;var Fe="",We,Ke,st=Ee.length;for(We=0;We<st;We++){Ke=Ee[We];switch(Ke.type){case"escape":{Fe+=Ae.text(Ke.text);break}case"html":{Fe+=Ae.html(Ke.text);break}case"link":{Fe+=Ae.link(Ke.href,Ke.title,this.parseInline(Ke.tokens,Ae));break}case"image":{Fe+=Ae.image(Ke.href,Ke.title,Ke.text);break}case"strong":{Fe+=Ae.strong(this.parseInline(Ke.tokens,Ae));break}case"em":{Fe+=Ae.em(this.parseInline(Ke.tokens,Ae));break}case"codespan":{Fe+=Ae.codespan(Ke.text);break}case"br":{Fe+=Ae.br();break}case"del":{Fe+=Ae.del(this.parseInline(Ke.tokens,Ae));break}case"text":{Fe+=Ae.text(Ke.text);break}default:{var Ot='Token with "'+Ke.type+'" type was not found.';if(this.options.silent){console.error(Ot);return}else throw new Error(Ot)}}}return Fe},Qe}(),xt=K.merge,St=K.checkSanitizeDeprecation,Je=K.escape,Ue=w.getDefaults,ft=w.changeDefaults,kt=w.defaults;function ht(Qe,He,Ge){if(typeof Qe=="undefined"||Qe===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Qe!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Qe)+", string expected");if(typeof He=="function"&&(Ge=He,He=null),He=xt({},ht.defaults,He||{}),St(He),Ge){var Ee=He.highlight,Ae;try{Ae=$.lex(Qe,He)}catch(st){return Ge(st)}var Fe=function(Ot){var Bt;if(!Ot)try{Bt=Et.parse(Ae,He)}catch(an){Ot=an}return He.highlight=Ee,Ot?Ge(Ot):Ge(null,Bt)};if(!Ee||Ee.length<3)return Fe();if(delete He.highlight,!Ae.length)return Fe();var We=0;ht.walkTokens(Ae,function(st){st.type==="code"&&(We++,setTimeout(function(){Ee(st.text,st.lang,function(Ot,Bt){if(Ot)return Fe(Ot);Bt!=null&&Bt!==st.text&&(st.text=Bt,st.escaped=!0),We--,We===0&&Fe()})},0))}),We===0&&Fe();return}try{var Ke=$.lex(Qe,He);return He.walkTokens&&ht.walkTokens(Ke,He.walkTokens),Et.parse(Ke,He)}catch(st){if(st.message+=`
Please report this to https://github.com/markedjs/marked.`,He.silent)return"<p>An error occurred:</p><pre>"+Je(st.message+"",!0)+"</pre>";throw st}}ht.options=ht.setOptions=function(Qe){return xt(ht.defaults,Qe),ft(ht.defaults),ht},ht.getDefaults=Ue,ht.defaults=kt,ht.use=function(Qe){var He=xt({},Qe);if(Qe.renderer&&function(){var Ee=ht.defaults.renderer||new Te,Ae=function(Ke){var st=Ee[Ke];Ee[Ke]=function(){for(var Ot=arguments.length,Bt=new Array(Ot),an=0;an<Ot;an++)Bt[an]=arguments[an];var Kt=Qe.renderer[Ke].apply(Ee,Bt);return Kt===!1&&(Kt=st.apply(Ee,Bt)),Kt}};for(var Fe in Qe.renderer)Ae(Fe);He.renderer=Ee}(),Qe.tokenizer&&function(){var Ee=ht.defaults.tokenizer||new Oe,Ae=function(Ke){var st=Ee[Ke];Ee[Ke]=function(){for(var Ot=arguments.length,Bt=new Array(Ot),an=0;an<Ot;an++)Bt[an]=arguments[an];var Kt=Qe.tokenizer[Ke].apply(Ee,Bt);return Kt===!1&&(Kt=st.apply(Ee,Bt)),Kt}};for(var Fe in Qe.tokenizer)Ae(Fe);He.tokenizer=Ee}(),Qe.walkTokens){var Ge=ht.defaults.walkTokens;He.walkTokens=function(Ee){Qe.walkTokens(Ee),Ge&&Ge(Ee)}}ht.setOptions(He)},ht.walkTokens=function(Qe,He){for(var Ge=y(Qe),Ee;!(Ee=Ge()).done;){var Ae=Ee.value;He(Ae);switch(Ae.type){case"table":{for(var Fe=y(Ae.tokens.header),We;!(We=Fe()).done;){var Ke=We.value;ht.walkTokens(Ke,He)}for(var st=y(Ae.tokens.cells),Ot;!(Ot=st()).done;)for(var Bt=Ot.value,an=y(Bt),Kt;!(Kt=an()).done;){var bt=Kt.value;ht.walkTokens(bt,He)}break}case"list":{ht.walkTokens(Ae.items,He);break}default:Ae.tokens&&ht.walkTokens(Ae.tokens,He)}}},ht.Parser=Et,ht.parser=Et.parse,ht.Renderer=Te,ht.TextRenderer=ke,ht.Lexer=$,ht.lexer=$.lex,ht.Tokenizer=Oe,ht.Slugger=tt,ht.parse=ht;var _t=ht;return _t})},E4JC:function(M,Y,o){(function(L,g,A){M.exports=Y=g(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(L){return function(){var g=L,A=g.lib,b=A.StreamCipher,y=g.algo,x=[],w=[],f=[],_=y.Rabbit=b.extend({_doReset:function(){for(var r=this._key.words,u=this.cfg.iv,t=0;t<4;t++)r[t]=(r[t]<<8|r[t]>>>24)&16711935|(r[t]<<24|r[t]>>>8)&4278255360;var a=this._X=[r[0],r[3]<<16|r[2]>>>16,r[1],r[0]<<16|r[3]>>>16,r[2],r[1]<<16|r[0]>>>16,r[3],r[2]<<16|r[1]>>>16],n=this._C=[r[2]<<16|r[2]>>>16,r[0]&4294901760|r[1]&65535,r[3]<<16|r[3]>>>16,r[1]&4294901760|r[2]&65535,r[0]<<16|r[0]>>>16,r[2]&4294901760|r[3]&65535,r[1]<<16|r[1]>>>16,r[3]&4294901760|r[0]&65535];this._b=0;for(var t=0;t<4;t++)d.call(this);for(var t=0;t<8;t++)n[t]^=a[t+4&7];if(u){var i=u.words,h=i[0],l=i[1],s=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,p=(l<<8|l>>>24)&16711935|(l<<24|l>>>8)&4278255360,O=s>>>16|p&4294901760,S=p<<16|s&65535;n[0]^=s,n[1]^=O,n[2]^=p,n[3]^=S,n[4]^=s,n[5]^=O,n[6]^=p,n[7]^=S;for(var t=0;t<4;t++)d.call(this)}},_doProcessBlock:function(r,u){var t=this._X;d.call(this),x[0]=t[0]^t[5]>>>16^t[3]<<16,x[1]=t[2]^t[7]>>>16^t[5]<<16,x[2]=t[4]^t[1]>>>16^t[7]<<16,x[3]=t[6]^t[3]>>>16^t[1]<<16;for(var a=0;a<4;a++)x[a]=(x[a]<<8|x[a]>>>24)&16711935|(x[a]<<24|x[a]>>>8)&4278255360,r[u+a]^=x[a]},blockSize:128/32,ivSize:64/32});function d(){for(var r=this._X,u=this._C,t=0;t<8;t++)w[t]=u[t];u[0]=u[0]+1295307597+this._b|0,u[1]=u[1]+3545052371+(u[0]>>>0<w[0]>>>0?1:0)|0,u[2]=u[2]+886263092+(u[1]>>>0<w[1]>>>0?1:0)|0,u[3]=u[3]+1295307597+(u[2]>>>0<w[2]>>>0?1:0)|0,u[4]=u[4]+3545052371+(u[3]>>>0<w[3]>>>0?1:0)|0,u[5]=u[5]+886263092+(u[4]>>>0<w[4]>>>0?1:0)|0,u[6]=u[6]+1295307597+(u[5]>>>0<w[5]>>>0?1:0)|0,u[7]=u[7]+3545052371+(u[6]>>>0<w[6]>>>0?1:0)|0,this._b=u[7]>>>0<w[7]>>>0?1:0;for(var t=0;t<8;t++){var a=r[t]+u[t],n=a&65535,i=a>>>16,h=((n*n>>>17)+n*i>>>15)+i*i,l=((a&4294901760)*a|0)+((a&65535)*a|0);f[t]=h^l}r[0]=f[0]+(f[7]<<16|f[7]>>>16)+(f[6]<<16|f[6]>>>16)|0,r[1]=f[1]+(f[0]<<8|f[0]>>>24)+f[7]|0,r[2]=f[2]+(f[1]<<16|f[1]>>>16)+(f[0]<<16|f[0]>>>16)|0,r[3]=f[3]+(f[2]<<8|f[2]>>>24)+f[1]|0,r[4]=f[4]+(f[3]<<16|f[3]>>>16)+(f[2]<<16|f[2]>>>16)|0,r[5]=f[5]+(f[4]<<8|f[4]>>>24)+f[3]|0,r[6]=f[6]+(f[5]<<16|f[5]>>>16)+(f[4]<<16|f[4]>>>16)|0,r[7]=f[7]+(f[6]<<8|f[6]>>>24)+f[5]|0}g.Rabbit=b._createHelper(_)}(),L.Rabbit})},E7E6:function(M,Y){M.exports="data:image/png;base64,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"},E9nw:function(M,Y){M.exports=function(){var o=document.getSelection();if(!o.rangeCount)return function(){};for(var L=document.activeElement,g=[],A=0;A<o.rangeCount;A++)g.push(o.getRangeAt(A));switch(L.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":L.blur();break;default:L=null;break}return o.removeAllRanges(),function(){o.type==="Caret"&&o.removeAllRanges(),o.rangeCount||g.forEach(function(b){o.addRange(b)}),L&&L.focus()}}},EGTK:function(M,Y,o){"use strict";var L=o("R9oj"),g=o("ECub"),A=o("T2oS"),b=o("W9HT"),y=o("5NDa"),x=o("5rEg"),w=o("k1fw"),f=o("9og8"),_=o("tJVT"),d=o("WmNS"),r=o.n(d),u=o("q1tI"),t=o.n(u),a=o("TSYQ"),n=o.n(a),i=o("dGDm"),h=o.n(i),l=o("Lai7"),s=o.n(l),p=o("ErOA"),O=o("LvDl"),S=o.n(O),v=function(E){var C=E.className,m=E.dispatch,T=E.skin,I=T===void 0?"white":T,D=E.value,N=D===void 0?null:D,z=E.loading,F=z===void 0?!1:z,W=E.data,K=W===void 0?[]:W,B=E.otherData,k=B===void 0?[]:B,G=E.tags,ne=G===void 0?[]:G,fe=E.onChange,de=fe===void 0?function(){}:fe,xe=Object(u.useState)(""),Oe=Object(_.a)(xe,2),ce=Oe[0],be=Oe[1],ve=Object(u.useState)(!1),ue=Object(_.a)(ve,2),se=ue[0],q=ue[1],me=Object(u.useState)([]),re=Object(_.a)(me,2),ie=re[0],we=re[1],le=Object(u.useState)(0),$=Object(_.a)(le,2),J=$[0],te=$[1],De=Object(u.useRef)(null),Te=Object(u.useRef)(String(Math.floor(Math.random()*1e6))).current,ke=Object(u.useRef)(),tt=Object(u.useRef)(null),ot=Object(u.useRef)(0),gt=Object(u.useRef)([]);Object(u.useEffect)(function(){return window.addEventListener("keydown",Et),function(){window.removeEventListener("keydown",Et)}},[ce,se,ie]);var Et=function(Ke){if(!se||Ke.keyCode!==40&&Ke.keyCode!==38)return;var st=0;Ke.keyCode===40&&se&&(J<ie.length-1?st=J+1:st=0,console.log("\u4E0B"),Ue(st,"down")),Ke.keyCode===38&&se&&(J===0?st=ie.length-1:st=J-1,Ue(st,"up")),te(st),St(ce,st,!0)},xt=function(Ke,st){var Ot=function(Kt){var bt=/[\^\.\\\|\(\)\*\+\-\$\[\]\?]/g,Be={};return Be["^"]="\\^",Be["."]="\\.",Be["\\"]="\\\\",Be["|"]="\\|",Be["("]="\\(",Be[")"]="\\)",Be["*"]="\\*",Be["+"]="\\+",Be["-"]="\\-",Be.$="$",Be["["]="\\[",Be["]"]="\\]",Be["?"]="\\?",Kt=Kt.replace(bt,function(at){return Be[at]}),Kt},Bt=new RegExp(Ot(st),"gi");return Ke=Ke.replace(Bt,function(an){return"<span style='color:#0152d9;'>"+an+"</span>"}),Ke},St=function(){var We=Object(f.a)(r.a.mark(function Ke(st,Ot,Bt){var an,Kt,bt;return r.a.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:if(an=ot.current+1,ot.current=an,Kt=function(Me){var Ye=Me==null?void 0:Me.map(function(ut,mt){var Pt=ut.id,jt=ut.name,et=Object(w.a)(Object(w.a)({},ut),{},{label:t.a.createElement("ul",{id:"search-".concat(Te,"-").concat(mt),onClick:function(){return ht(Pt,et)},className:mt===Ot?h.a.searchListActive:h.a.searchList},t.a.createElement("li",{className:h.a.name,dangerouslySetInnerHTML:{__html:xt(jt,st)}}),ut.private&&t.a.createElement("li",{className:h.a.tag},"\u79C1\u6709"))});return et});return Ye},!Bt){at.next=7;break}return bt=Kt(gt.current),we(bt),at.abrupt("return");case 7:clearTimeout(tt.current),tt.current=setTimeout(Object(f.a)(r.a.mark(function it(){var Me,Ye,ut,mt;return r.a.wrap(function(jt){for(;;)switch(jt.prev=jt.next){case 0:return jt.next=2,Object(p.a)("/api/shixuns/search_image.json",{method:"get",params:{keywords:st,page:1,limit:1e5}});case 2:Me=jt.sent,(Me==null?void 0:Me.status)===0&&(ut=Kt((Me==null||((Ye=Me.data)===null||Ye===void 0)?void 0:Ye.mirrors)||[]),an===ot.current&&(we(ut),gt.current=Object(O.cloneDeep)((Me==null||((mt=Me.data)===null||mt===void 0)?void 0:mt.mirrors)||[])));case 4:case"end":return jt.stop()}},it)})),300);case 9:case"end":return at.stop()}},Ke)}));return function(st,Ot,Bt){return We.apply(this,arguments)}}(),Je=function(Ke){var st=document.getElementById("scroll-".concat(Te,"-").concat(Ke));if(!st)return;var Ot=document.getElementById("scroll-".concat(Te));Ot.scrollTo(0,st.offsetTop)},Ue=function(Ke,st){var Ot=document.getElementById("search-".concat(Te,"-").concat(Ke));if(!Ot)return;var Bt=document.getElementById("search-".concat(Te)),an=Ot.offsetTop-Bt.scrollTop>0&&Ot.offsetTop-Bt.scrollTop<Bt.clientHeight;if(an)return;st==="down"?Bt.scrollTo(0,Ot.offsetTop-Bt.clientHeight+Ot.clientHeight):Bt.scrollTo(0,Ot.offsetTop)},ft=function(Ke){St(Ke,0),be(Ke)},kt=function(Ke){var st,Ot;if(!ie.length)return;var Bt=ie==null||((st=ie[J])===null||st===void 0)?void 0:st.id;de(Bt),we([]),te(0),be(ie==null||((Ot=ie[J])===null||Ot===void 0)?void 0:Ot.name),Je(Bt),ke.current.blur()},ht=function(Ke,st){de(Ke),we([]),te(0),be(st==null?void 0:st.name),Je(Ke)},_t=function(){we([]),be("")},Qe=function(Ke){de(Ke),we([]),be("")},He=function(){return ce===""?t.a.createElement("i",{style:{pointerEvents:"none"},className:"iconfont icon-sousuo2 c-grey-c"}):t.a.createElement("i",{onClick:_t,className:"iconfont icon-shanchu4 c-grey-c"})},Ge=function(){m({type:"newShixuns/setActionTabs",payload:{key:"NewShixuns-Apply"}})},Ee=function(){m({type:"newShixuns/setActionTabs",payload:{key:"Create-Environment"}})},Ae=function(){De.current=setTimeout(function(){q(!1),te(0)},200)},Fe=!(K!=null&&K.length)&&!(k!=null&&k.length);return t.a.createElement("div",{className:n()(I==="night"?h.a.darklySelectEnvironment:h.a.selectEnvironment,C)},!Fe&&t.a.createElement("div",{className:h.a.search},t.a.createElement(x.a,{suffix:He(),bordered:!1,ref:ke,value:ce,onKeyDown:function(Ke){(Ke.keyCode===40||Ke.keyCode===38)&&Ke.preventDefault()},size:"large",onFocus:function(){clearTimeout(De.current),ft(ce),q(!0)},onBlur:Ae,onChange:function(Ke){return ft(Ke.target.value)},placeholder:"\u641C\u7D22\u60A8\u9700\u8981\u7684\u5B9E\u9A8C\u73AF\u5883",onPressEnter:kt}),se&&t.a.createElement("div",{id:"search-".concat(Te),className:h.a.searchListWrap},ie.map(function(We,Ke){return t.a.createElement(t.a.Fragment,{key:Ke}," ",We.label)}))),F?t.a.createElement(b.a,{className:h.a.spin}):t.a.createElement(t.a.Fragment,null,Fe&&t.a.createElement(g.a,{style:{margin:"60px 0"},image:s.a,description:t.a.createElement("span",{className:"c-grey-999"},"\u6682\u65E0\u5B9E\u9A8C\u73AF\u5883")}),!!ne.length&&t.a.createElement("aside",{className:h.a.common},t.a.createElement("div",{className:h.a.title},"\u63A8\u8350\u73AF\u5883:"),t.a.createElement("ul",{className:h.a.tags},ne.map(function(We,Ke){return t.a.createElement("li",{key:Ke,onClick:function(){return Qe(We.id)},className:N===We.id?"".concat(h.a.tag," ").concat(h.a.tagActive):h.a.tag},We.name)}))),t.a.createElement("aside",{className:h.a.wrap,id:"scroll-".concat(Te)},K.map(function(We,Ke){var st;return We!=null&&(st=We.image)!==null&&st!==void 0&&st.length?t.a.createElement(P,{key:Ke,data:We,id:N,handleClick:function(Bt){return Qe(Bt)}}):null}),t.a.createElement("ul",{className:h.a.allList},k.map(function(We){return t.a.createElement("li",{key:"key-".concat(We.id),id:"scroll-".concat(Te,"-").concat(We.id),className:We.id===N?"".concat(h.a.item," ").concat(h.a.itemActive):h.a.item,onClick:function(){return de(We.id)}},t.a.createElement("div",{className:h.a.name},We.name),We.private&&t.a.createElement("div",{className:h.a.tag},"\u79C1\u6709"))})))),t.a.createElement("div",{className:h.a.apply},t.a.createElement("span",{className:h.a.p1},"\u6CA1\u6709\u5B9E\u9A8C\u73AF\u5883\uFF1F"),t.a.createElement("span",{className:h.a.p2,onClick:Ge}," \u7533\u8BF7\u65B0\u5EFA"),t.a.createElement("span",{className:h.a.p2,onClick:Ee}," \u5728\u7EBF\u521B\u5EFA")))},P=function(E){var C=E.data,m=E.id,T=E.handleClick,I=Object(u.useState)(!0),D=Object(_.a)(I,2),N=D[0],z=D[1],F=C.name,W=C.image;return t.a.createElement("div",{className:h.a.list},t.a.createElement("header",{onClick:function(){return z(!N)}},t.a.createElement("div",{className:h.a.title},F),t.a.createElement("i",{style:{transition:"0.5s",transform:N?"rotate(0deg)":"rotate(180deg)"},className:"iconfont icon-shangjiantou c-grey-999"})),t.a.createElement("ul",{className:h.a.items,style:{height:N?"auto":0}},W.map(function(K){return t.a.createElement("li",{key:K.id,className:K.id===m?"".concat(h.a.item," ").concat(h.a.itemActive):h.a.item,onClick:function(){return T(K.id)}},t.a.createElement("div",{className:h.a.name},K.name),K.private&&t.a.createElement("div",{className:h.a.tag},"\u79C1\u6709"))}),t.a.createElement("li",{className:h.a.line})))};Y.a=v},ELLl:function(M,Y,o){(function(L){L(o("VrN/"))})(function(L){var g={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},A=L.Pos;L.defineOption("autoCloseBrackets",!1,function(n,i,h){h&&h!=L.Init&&(n.removeKeyMap(y),n.state.closeBrackets=null),i&&(x(b(i,"pairs")),n.state.closeBrackets=i,n.addKeyMap(y))});function b(n,i){return i=="pairs"&&typeof n=="string"?n:typeof n=="object"&&n[i]!=null?n[i]:g[i]}var y={Backspace:_,Enter:d};function x(n){for(var i=0;i<n.length;i++){var h=n.charAt(i),l="'"+h+"'";y[l]||(y[l]=w(h))}}x(g.pairs+"`");function w(n){return function(i){return u(i,n)}}function f(n){var i=n.state.closeBrackets;if(!i||i.override)return i;var h=n.getModeAt(n.getCursor());return h.closeBrackets||i}function _(n){var i=f(n);if(!i||n.getOption("disableInput"))return L.Pass;for(var h=b(i,"pairs"),l=n.listSelections(),s=0;s<l.length;s++){if(!l[s].empty())return L.Pass;var p=t(n,l[s].head);if(!p||h.indexOf(p)%2!=0)return L.Pass}for(var s=l.length-1;s>=0;s--){var O=l[s].head;n.replaceRange("",A(O.line,O.ch-1),A(O.line,O.ch+1),"+delete")}}function d(n){var i=f(n),h=i&&b(i,"explode");if(!h||n.getOption("disableInput"))return L.Pass;for(var l=n.listSelections(),s=0;s<l.length;s++){if(!l[s].empty())return L.Pass;var p=t(n,l[s].head);if(!p||h.indexOf(p)%2!=0)return L.Pass}n.operation(function(){var O=n.lineSeparator()||`
`;n.replaceSelection(O+O,null),n.execCommand("goCharLeft"),l=n.listSelections();for(var S=0;S<l.length;S++){var v=l[S].head.line;n.indentLine(v,null,!0),n.indentLine(v+1,null,!0)}})}function r(n){var i=L.cmpPos(n.anchor,n.head)>0;return{anchor:new A(n.anchor.line,n.anchor.ch+(i?-1:1)),head:new A(n.head.line,n.head.ch+(i?1:-1))}}function u(n,i){var h=f(n);if(!h||n.getOption("disableInput"))return L.Pass;var l=b(h,"pairs"),s=l.indexOf(i);if(s==-1)return L.Pass;for(var p=b(h,"closeBefore"),O=b(h,"triples"),S=l.charAt(s+1)==i,v=n.listSelections(),P=s%2==0,R,E=0;E<v.length;E++){var C=v[E],m=C.head,T,I=n.getRange(m,A(m.line,m.ch+1));if(P&&!C.empty())T="surround";else if((S||!P)&&I==i)S&&a(n,m)?T="both":O.indexOf(i)>=0&&n.getRange(m,A(m.line,m.ch+3))==i+i+i?T="skipThree":T="skip";else if(S&&m.ch>1&&O.indexOf(i)>=0&&n.getRange(A(m.line,m.ch-2),m)==i+i){if(m.ch>2&&/\bstring/.test(n.getTokenTypeAt(A(m.line,m.ch-2))))return L.Pass;T="addFour"}else if(S){var D=m.ch==0?" ":n.getRange(A(m.line,m.ch-1),m);if(!L.isWordChar(I)&&D!=i&&!L.isWordChar(D))T="both";else return L.Pass}else if(P&&(I.length===0||/\s/.test(I)||p.indexOf(I)>-1))T="both";else return L.Pass;if(!R)R=T;else if(R!=T)return L.Pass}var N=s%2?l.charAt(s-1):i,z=s%2?i:l.charAt(s+1);n.operation(function(){if(R=="skip")n.execCommand("goCharRight");else if(R=="skipThree")for(var F=0;F<3;F++)n.execCommand("goCharRight");else if(R=="surround"){for(var W=n.getSelections(),F=0;F<W.length;F++)W[F]=N+W[F]+z;n.replaceSelections(W,"around"),W=n.listSelections().slice();for(var F=0;F<W.length;F++)W[F]=r(W[F]);n.setSelections(W)}else R=="both"?(n.replaceSelection(N+z,null),n.triggerElectric(N+z),n.execCommand("goCharLeft")):R=="addFour"&&(n.replaceSelection(N+N+N+N,"before"),n.execCommand("goCharRight"))})}function t(n,i){var h=n.getRange(A(i.line,i.ch-1),A(i.line,i.ch+1));return h.length==2?h:null}function a(n,i){var h=n.getTokenAt(A(i.line,i.ch+1));return/\bstring/.test(h.type)&&h.start==i.ch&&(i.ch==0||!/\bstring/.test(n.getTokenTypeAt(i)))}})},ELcG:function(M,Y,o){(function(L,g){M.exports=Y=g(o("Ib8C"))})(this,function(L){/** @preserve
(c) 2012 by Cédric Mesnil. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/return function(g){var A=L,b=A.lib,y=b.WordArray,x=b.Hasher,w=A.algo,f=y.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),_=y.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),d=y.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),r=y.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=y.create([0,1518500249,1859775393,2400959708,2840853838]),t=y.create([1352829926,1548603684,1836072691,2053994217,0]),a=w.RIPEMD160=x.extend({_doReset:function(){this._hash=y.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(O,S){for(var v=0;v<16;v++){var P=S+v,R=O[P];O[P]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360}var E=this._hash.words,C=u.words,m=t.words,T=f.words,I=_.words,D=d.words,N=r.words,z,F,W,K,B,k,G,ne,fe,de;k=z=E[0],G=F=E[1],ne=W=E[2],fe=K=E[3],de=B=E[4];for(var xe,v=0;v<80;v+=1)xe=z+O[S+T[v]]|0,v<16?xe+=n(F,W,K)+C[0]:v<32?xe+=i(F,W,K)+C[1]:v<48?xe+=h(F,W,K)+C[2]:v<64?xe+=l(F,W,K)+C[3]:xe+=s(F,W,K)+C[4],xe=xe|0,xe=p(xe,D[v]),xe=xe+B|0,z=B,B=K,K=p(W,10),W=F,F=xe,xe=k+O[S+I[v]]|0,v<16?xe+=s(G,ne,fe)+m[0]:v<32?xe+=l(G,ne,fe)+m[1]:v<48?xe+=h(G,ne,fe)+m[2]:v<64?xe+=i(G,ne,fe)+m[3]:xe+=n(G,ne,fe)+m[4],xe=xe|0,xe=p(xe,N[v]),xe=xe+de|0,k=de,de=fe,fe=p(ne,10),ne=G,G=xe;xe=E[1]+W+fe|0,E[1]=E[2]+K+de|0,E[2]=E[3]+B+k|0,E[3]=E[4]+z+G|0,E[4]=E[0]+F+ne|0,E[0]=xe},_doFinalize:function(){var O=this._data,S=O.words,v=this._nDataBytes*8,P=O.sigBytes*8;S[P>>>5]|=128<<24-P%32,S[(P+64>>>9<<4)+14]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,O.sigBytes=(S.length+1)*4,this._process();for(var R=this._hash,E=R.words,C=0;C<5;C++){var m=E[C];E[C]=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360}return R},clone:function(){var O=x.clone.call(this);return O._hash=this._hash.clone(),O}});function n(O,S,v){return O^S^v}function i(O,S,v){return O&S|~O&v}function h(O,S,v){return(O|~S)^v}function l(O,S,v){return O&v|S&~v}function s(O,S,v){return O^(S|~v)}function p(O,S){return O<<S|O>>>32-S}A.RIPEMD160=x._createHelper(a),A.HmacRIPEMD160=x._createHmacHelper(a)}(Math),L.RIPEMD160})},ETIr:function(M,Y,o){(function(L,g){M.exports=Y=g(o("Ib8C"))})(this,function(L){return function(){var g=L,A=g.lib,b=A.WordArray,y=g.enc,x=y.Base64={stringify:function(f){var _=f.words,d=f.sigBytes,r=this._map;f.clamp();for(var u=[],t=0;t<d;t+=3)for(var a=_[t>>>2]>>>24-t%4*8&255,n=_[t+1>>>2]>>>24-(t+1)%4*8&255,i=_[t+2>>>2]>>>24-(t+2)%4*8&255,h=a<<16|n<<8|i,l=0;l<4&&t+l*.75<d;l++)u.push(r.charAt(h>>>6*(3-l)&63));var s=r.charAt(64);if(s)for(;u.length%4;)u.push(s);return u.join("")},parse:function(f){var _=f.length,d=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var u=0;u<d.length;u++)r[d.charCodeAt(u)]=u}var t=d.charAt(64);if(t){var a=f.indexOf(t);a!==-1&&(_=a)}return w(f,_,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function w(f,_,d){for(var r=[],u=0,t=0;t<_;t++)if(t%4){var a=d[f.charCodeAt(t-1)]<<t%4*2,n=d[f.charCodeAt(t)]>>>6-t%4*2,i=a|n;r[u>>>2]|=i<<24-u%4*8,u++}return b.create(r,u)}}(),L.enc.Base64})},EkPF:function(M,Y,o){M.exports={practiceSetting:"practiceSetting___2ttNt",wrapHeader:"wrapHeader___2dgOY",wrapLayout:"wrapLayout___3zol1",wrapSidebar:"wrapSidebar___3imKs",wrapContent:"wrapContent___3L8H_"}},"F+F2":function(M,Y,o){(function(L,g){M.exports=Y=g(o("Ib8C"))})(this,function(L){return function(){if(typeof ArrayBuffer!="function")return;var g=L,A=g.lib,b=A.WordArray,y=b.init,x=b.init=function(w){if(w instanceof ArrayBuffer&&(w=new Uint8Array(w)),(w instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&w instanceof Uint8ClampedArray||w instanceof Int16Array||w instanceof Uint16Array||w instanceof Int32Array||w instanceof Uint32Array||w instanceof Float32Array||w instanceof Float64Array)&&(w=new Uint8Array(w.buffer,w.byteOffset,w.byteLength)),w instanceof Uint8Array){for(var f=w.byteLength,_=[],d=0;d<f;d++)_[d>>>2]|=w[d]<<24-d%4*8;y.call(this,_,f)}else y.apply(this,arguments)};x.prototype=b}(),L.lib.WordArray})},FOrL:function(M,Y,o){M.exports=o.p+"static/nodata.a6b3f948.png"},FPkq:function(M,Y,o){M.exports=o.p+"static/qrCode.dd0fe9b2.png"},FTkQ:function(M,Y){M.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABjUlEQVQ4T61VsUoDQRB9s+eVYifkUlqIWCW3sbBMqYUR0cbfUPETxPgZ2giigpZaCnKXpBK1sMydpIx25+7ISu5ILhsjclvuzLx5M292lmA57PtuF2gIYIMBSYBn3BiICAg1cF0GrqjVSvLhlL+IqtVNEDUZWLAlS+8IeAPzvtduXw77ZYAMiEjKI2LeY2AskQ2cAGaiEy8MDwnQxicL7Ep5bDL+xmqijahZDsODDHBQ5sVfmVn6xmDeMuWTESAGnqf1bBpz09MSsESx729r4DwfIIA6hPjUSt2AaP7Hztwj5nXHdd0vpR7yMQzsUOT7pwzsjgEKsVIKgiCu1Za1UvfGLhynXgqCp6hSkSxEYCn9jLq+/wJgcawk5l4KYECN3YBlCVLWo4GvhmGfgVlrj4ZAjX0KmBmZD8Owj4IAMQAsvGSrKKR1zet0QpsosZQrmvnRKsqksZlxnFWVJAkT3Y6MDbAmgDlFdGcdm8IH22Qp9OmltAtdDoPlWez6SpkWtmCHFTNCvQMN/scX8A1e4fnIOEHt8AAAAABJRU5ErkJggg=="},Fhpe:function(M,Y,o){M.exports={flex_box_center:"flex_box_center___1W7Bl",flex_space_between:"flex_space_between___3S4Sp",flex_box_vertical_center:"flex_box_vertical_center___5mGEA",flex_box_center_end:"flex_box_center_end___1blqp",flex_box_column:"flex_box_column___4i1E0",CustomCss:"CustomCss___3thFA",CustomTipsModalCss:"CustomTipsModalCss___2aNwC",dropdownmenus:"dropdownmenus___19dGk",popupClassNames:"popupClassNames___3LOFQ",selectdown:"selectdown___1_utH"}},FrRK:function(M,Y,o){"use strict";var L=o("+L6B"),g=o("2/Rp"),A=o("DZo9"),b=o("8z0m"),y=o("miYZ"),x=o("tsqr"),w=o("9og8"),f=o("2qtc"),_=o("kLXV"),d=o("y8nQ"),r=o("Vl3Y"),u=o("tJVT"),t=o("PpiC"),a=o("5NDa"),n=o("5rEg"),i=o("WmNS"),h=o.n(i),l=o("q1tI"),s=o.n(l),p=o("9kvl"),O=o("m3rI"),S=o("FPkq"),v=o.n(S),P=o("qB8g"),R=o.n(P),E=n.a.TextArea,C=function(T){var I=T.newShixuns,D=T.globalSetting,N=T.loading,z=T.dispatch,F=Object(t.a)(T,["newShixuns","globalSetting","loading","dispatch"]),W=r.a.useForm(),K=Object(u.a)(W,1),B=K[0],k=Object(l.useState)([]),G=Object(u.a)(k,2),ne=G[0],fe=G[1],de=function(ue){var se=["uploading","done","removed"];se.includes(ue.file.status)&&fe(ue.fileList)},xe=function(ue){if(!ue.percent||ue.percent==100){var se,q=(se=ue.response)===null||se===void 0?void 0:se.id;return _.a.confirm({centered:!0,title:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u9644\u4EF6\u5417?",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){var me=Object(w.a)(h.a.mark(function ie(){var we;return h.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.next=2,z({type:"newShixuns/deleteAttachment",payload:{id:q}});case 2:we=$.sent,we&&fe(ne.filter(function(J){var te;return((te=J.response)===null||te===void 0?void 0:te.id)!==q}));case 4:case"end":return $.stop()}},ie)}));function re(){return me.apply(this,arguments)}return re}()}),!1}},Oe=function(ue){if(ne.length)return!1;var se=ue.size/1024/1024>50;return se?(x.b.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E50MB"),!1):!0},ce=function(){var ve=Object(w.a)(h.a.mark(function ue(se){var q,me,re,ie,we,le,$,J;return h.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return re=se||{},ie=re.language,we=re.env,le=re.mode,$=re.code,De.next=3,z({type:"newShixuns/applyShixunMirror",payload:{language:ie,runtime:we,run_method:le,attachment_id:ne==null||((q=ne[0])===null||q===void 0||((me=q.response)===null||me===void 0))?void 0:me.id}});case 3:J=De.sent,z({type:"newShixuns/setActionTabs",payload:{}}),J&&x.b.success("\u65B0\u5EFA\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u7BA1\u7406\u5458\u5BA1\u6838\u3002");case 6:case"end":return De.stop()}},ue)}));return function(se){return ve.apply(this,arguments)}}(),be=function(){B.resetFields(),fe([])};return s.a.createElement(_.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:I.actionTabs.key==="NewShixuns-Apply",title:"\u7533\u8BF7\u65B0\u5EFA",width:"1000px",footer:null,afterClose:be},s.a.createElement("section",{className:R.a.qrCode},s.a.createElement("aside",{className:R.a.a1},s.a.createElement("div",{className:R.a.code},s.a.createElement("img",{width:120,height:120,src:v.a,alt:"\u4E8C\u7EF4\u7801"})),s.a.createElement("div",{className:R.a.group},"\u5B9E\u9A8C\u73AF\u5883\u7533\u8BF7QQ\u7FA4"),s.a.createElement("div",{className:R.a.groupNumber},"\u7FA4\u53F7\uFF1A740157011")),s.a.createElement("aside",{className:R.a.a2},"\u5C0A\u656C\u7684\u8001\u5E08/\u540C\u5B66\u60A8\u597D\uFF0C",s.a.createElement("br",null),"\u5982\u679C\u60A8\u60F3\u65B0\u5EFA\u5B9E\u9A8C\u73AF\u5883\uFF0C\u53EF\u4EE5\u626B\u63CF\u5DE6\u4FA7\u4E8C\u7EF4\u7801\u8FDB\u7FA4\uFF0C\u76F4\u63A5\u5411\u6211\u4EEC\u7684\u5DE5\u4F5C\u4EBA\u5458\u7533\u8BF7\u54E6~ \u4E5F\u53EF\u4EE5\u63D0\u4EA4\u4E0B\u9762\u7684\u8868\u5355\u7533\u8BF7\uFF0C\u6211\u4EEC\u7684\u5DE5\u4F5C\u4EBA\u5458\u6536\u5230\u7533\u8BF7\u4FE1\u606F\u5C06\u4F1A\u7B2C\u4E00\u65F6\u95F4\u8054\u7CFB\u60A8\uFF01")),s.a.createElement(r.a,{className:R.a.formWrap,form:B,labelCol:{span:4},wrapperCol:{span:20},onFinish:ce},s.a.createElement(r.a.Item,{label:"\u8BED\u8A00\uFF1A",name:"language",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u8BED\u8A00"}]},s.a.createElement(E,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u662F\u57FA\u4E8E\u4EC0\u4E48\u8BED\u8A00\uFF1A\u793A\u4F8B\uFF1APython",rows:4})),s.a.createElement(r.a.Item,{label:"\u7CFB\u7EDF\u73AF\u5883\uFF1A",name:"env",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u8BED\u8A00\u7CFB\u7EDF\u73AF\u5883"}]},s.a.createElement(E,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u662F\u57FA\u4E8E\u4EC0\u4E48linux\u7CFB\u7EDF\u73AF\u5883,\u4EE3\u7801\u8FD0\u884C\u73AF\u5883",rows:4})),s.a.createElement(r.a.Item,{label:"\u6D4B\u8BD5\u4EE3\u7801\u8FD0\u884C\u65B9\u5F0F\uFF1A",name:"mode",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u6D4B\u8BD5\u4EE3\u7801\u8FD0\u884C\u65B9\u5F0F"}]},s.a.createElement(E,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u4E2D\u6D4B\u8BD5\u4EE3\u7801\u8FD0\u884C\u65B9\u5F0F",rows:4})),s.a.createElement(r.a.Item,{label:"\u6D4B\u8BD5\u4EE3\u7801\uFF1A",name:"code",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u9644\u4EF6"}]},s.a.createElement("div",{className:R.a.upload},s.a.createElement(b.a,{fileList:ne,action:"".concat(O.a.API_SERVER,"/api/attachments.json?client_key=6d57f8c3dd186c5ada392546ace9620a"),onChange:de,onRemove:xe,beforeUpload:Oe,withCredentials:!0},s.a.createElement("span",{className:"".concat(R.a.color0152d9," current")},"\u4E0A\u4F20\u9644\u4EF6"),s.a.createElement("span",{className:"".concat(R.a.colorCCC," ml10")},"(\u5355\u4E2A\u6587\u4EF650M\u4EE5\u5185)")))),s.a.createElement("div",{className:R.a.footerWrap},s.a.createElement(r.a.Item,null,s.a.createElement(g.a,{className:"mr5",size:"large",onClick:function(){z({type:"newShixuns/setActionTabs",payload:{}})}},"\u53D6\u6D88"),s.a.createElement(g.a,{size:"large",type:"primary",htmlType:"submit",loading:N["newShixuns/applyShixunMirror"]},"\u4FDD\u5B58")))))};Y.a=Object(p.a)(function(m){var T=m.newShixuns,I=m.loading,D=m.globalSetting;return{newShixuns:T,globalSetting:D,loading:I.effects}})(C)},Fxgj:function(M,Y,o){},GABl:function(M,Y){M.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAKi0lEQVRoQ71ae3BU1Rn//e7dzYuioNRsHlSqRiUB2eUx0hbaKAHEAMWxiQ6PTUAUGCuIQNVOZ0xnrHUE5GHHIqOwCag8BlQiQnnUokgt5AEIK5GnBpIFXwjkAdl7vs7dkJCETXLvEj3/5d7v9/u+337nfN8554bowBHo16+3YRh3K7IPBHcRSIDI9QJ0AWkA8h0E3xM8DWAvde5x6Pqe+D17jnVUGLxWogqPp78SGSeC3wP4ZUR8pJ+Ct50O7e344uKjEXFcBkUkSERY6e43RkE9JcCgawngaiw3O6A/l7CvaHckvLYFhTKi5B8C3B2JQ6sYEhvpcMxKKioqs4ox7SwLkvT0mFNnz82HqKkCaHacRGxL1gDybHJp6WKSYoXHkqBytzuF4FoR6WOFtKNtCP4b0c7s5N27v22Pu11B5e7+6ZTgBgE6t0f2Y74n8IUjOuo+1+7dx9vy06agcrf7fgjXARLzYwZrnZsB6BzevaRkf2uYVgWdcruHKnAjRJzWHf4ElmSl5nTcnbRnT3k4b2EFVfTt29NQ8l+zKf4EIUbi4kAnhz7ohuLiH1qCwwo62cf9ccf3l0jibh1DckPy3lKzmTcbYQWV9+k7HlArOjaEjmejRm9yaWmzOMMKMncCp9x9dwlkYEeEQUCBrO0IrqYcApx1xsV6XLt2nWl43kyQqyB38dQJPZ7MY56qdLsHGIL/iY3m24R0p2jc6BDZrkVHf3XTiBFfMy9PdbSgNotCYv6kDAPGVhCTT3vz3zCNT7o9PhHJsRoIwUJN518TS0qKrWI62q4xQ/H5uTsB+Q3I0521zrcfGf/KuTMDBrguXar7or2mSuCCRm1q4t6SN5sGOGZBTQ9DsRdgJEFpQeo8pRvRJe/MYeMUMe2lYlQczl4cBki7jT78DyCVTN32qfkuRJC8Mrd3nSGNzYoa5wYm+P5kvivv43kakBdbbWTk1zqRnlBa6jdt8j4UR1Fx9WQAUyG4aqtEUIHYBWJh4ay4dQ28ciBjJiAvR5Qx8jtEOROZsuliSFBCQc4LSvBs4xogLjmjolPLH156VLKyok4ePuKHyK1XOSN/0Bz6PUlFRaXmuzELLrmNYHCVQO6wEhjBT5zReHj99LiToUwdGPIYgNesYMPE8hDTtq0JCYovyD0KkVuaGZHvnfb6xpjPTnk8o5WS91qSNC2bo+fWZiqq1RDpZDOggMPhHPHuzKi99aIy8gHx2uQwJ9t69tr2IBPfyr3TqJPPwxE4dGScGp+//XKB2CIiQ6/YcXP3faUjGjITNII7IxBTT0eeitJjB6yfyUr5MrMrLtT6IXDZFHUWaTd0Y8LKieOVEb6JkjgwOCbTvTY726j0eFINwT4RcYRi0LVfJZeUfGqumeKimgNWp1kbQX7w/pxOmaEsHRw6BaKW2BRkBjWQCQUTFylR01td9ODjgRzfq6Gp18ezSEGmEyxJ3lfaz3w2en7VNKUQen+tQ9O0ezfMiv1QjmZcj1oJQGBvl09tKl0Fuf8Rkd+1Koj4NkqPS/lq3D+/PztoUNcLF6oOQ7AweV/p8yZm5LyqveGqWSTiSK4pnB33UH2WMtZAJMsWD7HIFHRQRFLbBnLR6Rzfk6G15PFM05R2NHFf8RazzwSDqs0Dl52ACJ6PuTm229psXhJ/xjQosZl5vs/4/NxKQNpegERQd7B3xVjfIcnK0iuPHYtOLC6uHjW/dqQoo9BO0O3ZRkfpt6+bEXNY/BmZUPJ+e/bN3pM76crPrRVIdHtAkpsDXl+oqjWMUfOrpoiC/cXbhjPqWnrhU7E75NB9dyFYt6+9uFq838/4gpwfILjOCpBkZsDr+6DBduTcmomAWmYFa9VGc3DQhplxn4h/aAqU+sIqLmRHfkZXQU6ZCG63AiRZlpQa1bu4/9K6UEGYXzMESm2zgrVqQ2i3FM6JPS7+jIEwT832xi668nN2CPBbqziN2lOV3uULTPusl6uTahTKIZFuKpt7JXGm36y4hDxSiX/YI1DG61bjupyhzaag1QJkWwfyrO6MSqkYu/QbEzNqXvV2EbnXOr51S2p4o3BWJ3Nja5btAohMsMfLV80qtxCQGXaAJJcEvL5pJmb0vJpxStRKO/hwtuYunE7ds+HJ6P1yfEwXVJ+vgCDWFi8xg64Vk7JFGattAg2nw9n35NjX92etEb32qxpzn3dNWSKxvHB2p0n12RkyHYJFtmIyjXUtnT3eye1Sc16+gUC3Q0CyJCk1aqBZIB6YKzfVsdrcMSTY4WiwJbC/C+J+vWIOq0TyHPDvNI8rKba4iBpERXUNHR9cBTkfi9j/LEJqLwW8y582OR6Ye7FXHYx3gTDnpjYiM8U4o5nZeCbyD50BpRbaEmMaE1uZtn3Y5fPQxGch6gXbJKDSdW1ExfhlW0zsmAXSxQjW+ARy1X1ZS+76k6vkd5G4J8zMhKZa2ahuqKs+DPOLn91BPsK0bctCghJXTLrDUMoPiO3PJAQvApwSyFme3xDD6PmXPCJ1MwA+KCI/axqbWZpBFFJ3LDYLQNN3cnDIEgim2NWC+unmYsqmc42XEq6C3FUiEtrpRjIIzBscm/mMeXZqih+9UOIhNbeFMhBkRb/ZMV+afaalDykb3gdBowRi/0cFtcVM2xqq1FcErZyYKoZ8FkmWGoMjjwGy6MaYTsv82a9eaOuHue2DJ6KP3P/KxQYbOThkB8R6g2/i8xwcsbfyjsJQX2x50XhNWboigGcBrKam7RKRMqce+vodYwiSIOihREYAPN5wJJGDGdkQsdc6Gpxp/AtTt/2t4c9mghIKJvcU1O0VQVQk084yhjgHxKac9i45I+VZsTj3/SGI/MIyvjF6VqBrbAoTC6vDCjIfulZM/KMo9YptchsAEk8HvPkvhdbVwYznIJJnA97EVBvLXlvfblZ0whG58nPWCvCHyJy0gyKPde7WOdVcP3JkWHfUqkOAxNn2Rcxn2vbZLXFhr15vW/nEdeeNcyUArr5ctO25OUAjH6z0+tZfzs4qRFJZiU1IHTySvPoDQKt3yeb1cFDJNhHcdI0amhQk7gh4fen1YoYPhgQ/ss/NzxHtHGj2nHDYNi/Hk9/MTQka2CoiN9t3fNVkUDr0/hU5b5SK5Gnw7yyCiMcWL+GH5sxkz80nWsO1e9uftHJysqHqtoigpy3nLYxJLgt4fY+EsnMg41FAltriIzciyjm2tcy0WuXCOUnKf/xGg1VvishwW0Fc8XIhNoYpJ7J9gfpLRByGyM8tc5FzkTromXBrxlJRaM2ReW0sSi0QQTfLwZiG1P582rv876Hs+DNehpKZFvEnoWE2U7dbbrrtTrmWjhPfeqybEby0ECLjrARF8ETML9DzxD2+WikbdifqDHND2vb/PpDm5/oXcV3XRey+tsaKH1tTLhyh661H0xCsmyaQCW1dg1HTHwpMWLbmcpneBJH7Wg+QVdCwFKI/z7R/fWdHyDULaiCIL5jdScM3Y6X+m04/aXIPQGJnwJs/OCTm8yEjYSDMLSurQPkI5CrcoK2ja0vobBTpsD3l2nKU/mGe43DFiV5Ksb8SNUCj9lrlhOUl5r8JwG9evjMBhDmdjkJYBp2luLPHHrL+nq8jxv8BV2A7FHmr6w0AAAAASUVORK5CYII="},GRuw:function(M,Y,o){(function(L,g,A){M.exports=Y=g(o("Ib8C"),o("lPiR"))})(this,function(L){return function(){var g=L,A=g.lib,b=A.WordArray,y=g.algo,x=y.SHA256,w=y.SHA224=x.extend({_doReset:function(){this._hash=new b.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var f=x._doFinalize.call(this);return f.sigBytes-=4,f}});g.SHA224=x._createHelper(w),g.HmacSHA224=x._createHmacHelper(w)}(),L.SHA224})},GfqC:function(M,Y,o){"use strict";var L=o("q1tI"),g=o.n(L),A=o("TSYQ"),b=o.n(A);function y(K,B){var k="cannot "+K.method+" "+K.action+" "+B.status+"'",G=new Error(k);return G.status=B.status,G.method=K.method,G.url=K.action,G}function x(K){var B=K.responseText||K.response;if(!B)return B;try{return JSON.parse(B)}catch(k){return B}}function w(K){var B=new XMLHttpRequest;K.onProgress&&B.upload&&(B.upload.onprogress=function(fe){fe.total>0&&(fe.percent=fe.loaded/fe.total*100),K.onProgress(fe)});var k=new FormData;K.data&&Object.keys(K.data).forEach(function(ne){var fe=K.data[ne];if(Array.isArray(fe)){fe.forEach(function(de){k.append(ne+"[]",de)});return}k.append(ne,K.data[ne])}),K.file instanceof Blob?k.append(K.filename,K.file,K.file.name):k.append(K.filename,K.file),B.onerror=function(fe){K.onError(fe)},B.onload=function(){return B.status<200||B.status>=300?K.onError(y(K,B),x(B)):K.onSuccess(x(B),B)},B.open(K.method,K.action,!0),K.withCredentials&&"withCredentials"in B&&(B.withCredentials=!0);var G=K.headers||{};return G["X-Requested-With"]!==null&&B.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(G).forEach(function(ne){G[ne]!==null&&B.setRequestHeader(ne,G[ne])}),B.send(k),{abort:function(){B.abort()}}}var f=+new Date,_=0;function d(){return"rc-upload-"+f+"-"+ ++_}function r(K,B){return K.indexOf(B,K.length-B.length)!==-1}var u=function(K,B){if(K&&B){var k=Array.isArray(B)?B:B.split(","),G=K.name||"",ne=K.type||"",fe=ne.replace(/\/.*$/,"");return k.some(function(de){var xe=de.trim();return xe.charAt(0)==="."?r(G.toLowerCase(),xe.toLowerCase()):/\/\*$/.test(xe)?fe===xe.replace(/\/.*$/,""):ne===xe})}return!0};function t(K,B){var k=K.createReader(),G=[];function ne(){k.readEntries(function(fe){var de=Array.prototype.slice.apply(fe);G=G.concat(de);var xe=!de.length;xe?B(G):ne()})}ne()}var a=function(B,k,G){var ne=function fe(de,xe){xe=xe||"",de.isFile?de.file(function(Oe){G(Oe)&&(de.fullPath&&!Oe.webkitRelativePath&&(Object.defineProperties(Oe,{webkitRelativePath:{writable:!0}}),Oe.webkitRelativePath=de.fullPath.replace(/^\//,""),Object.defineProperties(Oe,{webkitRelativePath:{writable:!1}})),k([Oe]))}):de.isDirectory&&t(de,function(Oe){Oe.forEach(function(ce){fe(ce,""+xe+de.name+"/")})})};B.forEach(function(fe){ne(fe.webkitGetAsEntry())})},n=a,i=Object.assign||function(K){for(var B=1;B<arguments.length;B++){var k=arguments[B];for(var G in k)Object.prototype.hasOwnProperty.call(k,G)&&(K[G]=k[G])}return K},h=function(){function K(B,k){var G=[],ne=!0,fe=!1,de=void 0;try{for(var xe=B[Symbol.iterator](),Oe;!(ne=(Oe=xe.next()).done)&&!(G.push(Oe.value),k&&G.length===k);ne=!0);}catch(ce){fe=!0,de=ce}finally{try{!ne&&xe.return&&xe.return()}finally{if(fe)throw de}}return G}return function(B,k){if(Array.isArray(B))return B;if(Symbol.iterator in Object(B))return K(B,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function K(B,k){for(var G=0;G<k.length;G++){var ne=k[G];ne.enumerable=ne.enumerable||!1,ne.configurable=!0,"value"in ne&&(ne.writable=!0),Object.defineProperty(B,ne.key,ne)}}return function(B,k,G){return k&&K(B.prototype,k),G&&K(B,G),B}}();function s(K,B,k){return B in K?Object.defineProperty(K,B,{value:k,enumerable:!0,configurable:!0,writable:!0}):K[B]=k,K}function p(K,B){var k={};for(var G in K){if(B.indexOf(G)>=0)continue;if(!Object.prototype.hasOwnProperty.call(K,G))continue;k[G]=K[G]}return k}function O(K,B){if(!(K instanceof B))throw new TypeError("Cannot call a class as a function")}function S(K,B){if(!K)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B&&(typeof B=="object"||typeof B=="function")?B:K}function v(K,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof B);K.prototype=Object.create(B&&B.prototype,{constructor:{value:K,enumerable:!1,writable:!0,configurable:!0}}),B&&(Object.setPrototypeOf?Object.setPrototypeOf(K,B):K.__proto__=B)}var P=function(B){return Object.keys(B).reduce(function(k,G){return(G.substr(0,5)==="data-"||G.substr(0,5)==="aria-"||G==="role")&&(k[G]=B[G]),k},{})},R=function(K){v(B,K);function B(){var k,G,ne,fe;O(this,B);for(var de=arguments.length,xe=Array(de),Oe=0;Oe<de;Oe++)xe[Oe]=arguments[Oe];return fe=(G=(ne=S(this,(k=B.__proto__||Object.getPrototypeOf(B)).call.apply(k,[this].concat(xe))),ne),ne.state={uid:d()},ne.reqs={},ne.onChange=function(ce){var be=ce.target.files;ne.uploadFiles(be),ne.reset()},ne.onClick=function(ce){var be=ne.fileInput;if(!be)return;var ve=ne.props,ue=ve.children,se=ve.onClick;ue&&ue.type==="button"&&(be.parentNode.focus(),be.parentNode.querySelector("button").blur()),be.click(),se&&se(ce)},ne.onKeyDown=function(ce){ce.key==="Enter"&&ne.onClick()},ne.onFileDrop=function(ce){var be=ne.props.multiple;if(ce.preventDefault(),ce.type==="dragover")return;if(ne.props.directory)n(Array.prototype.slice.call(ce.dataTransfer.items),ne.uploadFiles,function(ue){return u(ue,ne.props.accept)});else{var ve=Array.prototype.slice.call(ce.dataTransfer.files).filter(function(ue){return u(ue,ne.props.accept)});be===!1&&(ve=ve.slice(0,1)),ne.uploadFiles(ve)}},ne.uploadFiles=function(ce){var be=Array.prototype.slice.call(ce);be.map(function(ve){return ve.uid=d(),ve}).forEach(function(ve){ne.upload(ve,be)})},ne.saveFileInput=function(ce){ne.fileInput=ce},G),S(ne,fe)}return l(B,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(G,ne){var fe=this,de=this.props;if(!de.beforeUpload)return setTimeout(function(){return fe.post(G)},0);var xe=de.beforeUpload(G,ne);xe&&xe.then?xe.then(function(Oe){var ce=Object.prototype.toString.call(Oe);return ce==="[object File]"||ce==="[object Blob]"?fe.post(Oe):fe.post(G)}).catch(function(Oe){console.log(Oe)}):xe!==!1&&setTimeout(function(){return fe.post(G)},0);return}},{key:"post",value:function(G){var ne=this;if(!this._isMounted)return;var fe=this.props,de=fe.onStart,xe=fe.onProgress,Oe=fe.transformFile,ce=Oe===void 0?function(be){return be}:Oe;new Promise(function(be){var ve=fe.action;return typeof ve=="function"&&(ve=ve(G)),be(ve)}).then(function(be){var ve=G.uid,ue=fe.customRequest||w,se=Promise.resolve(ce(G)).then(function(q){var me=fe.data;return typeof me=="function"&&(me=me(q)),Promise.all([q,me])}).catch(function(q){console.error(q)});se.then(function(q){var me=h(q,2),re=me[0],ie=me[1],we={action:be,filename:fe.name,data:ie,file:re,headers:fe.headers,withCredentials:fe.withCredentials,method:fe.method||"post",onProgress:xe?function(le){xe(le,G)}:null,onSuccess:function($,J){delete ne.reqs[ve],fe.onSuccess($,G,J)},onError:function($,J){delete ne.reqs[ve],fe.onError($,J,G)}};de(G),ne.reqs[ve]=ue(we)})})}},{key:"reset",value:function(){this.setState({uid:d()})}},{key:"abort",value:function(G){var ne=this.reqs;if(G){var fe=G;G&&G.uid&&(fe=G.uid),ne[fe]&&ne[fe].abort&&ne[fe].abort(),delete ne[fe]}else Object.keys(ne).forEach(function(de){ne[de]&&ne[de].abort&&ne[de].abort(),delete ne[de]})}},{key:"render",value:function(){var G,ne=this.props,fe=ne.component,de=ne.prefixCls,xe=ne.className,Oe=ne.disabled,ce=ne.id,be=ne.style,ve=ne.multiple,ue=ne.accept,se=ne.children,q=ne.directory,me=ne.openFileDialogOnClick,re=ne.onMouseEnter,ie=ne.onMouseLeave,we=p(ne,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),le=b()((G={},s(G,de,!0),s(G,de+"-disabled",Oe),s(G,xe,xe),G)),$=Oe?{}:{onClick:me?this.onClick:function(){},onKeyDown:me?this.onKeyDown:function(){},onMouseEnter:re,onMouseLeave:ie,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return g.a.createElement(fe,i({},$,{className:le,role:"button",style:be}),g.a.createElement("input",i({},P(we),{id:ce,type:"file",ref:this.saveFileInput,onClick:function(te){return te.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:ue,directory:q?"directory":null,webkitdirectory:q?"webkitdirectory":null,multiple:ve,onChange:this.onChange})),se)}}]),B}(L.Component),E=R,C=Object.assign||function(K){for(var B=1;B<arguments.length;B++){var k=arguments[B];for(var G in k)Object.prototype.hasOwnProperty.call(k,G)&&(K[G]=k[G])}return K},m=function(){function K(B,k){for(var G=0;G<k.length;G++){var ne=k[G];ne.enumerable=ne.enumerable||!1,ne.configurable=!0,"value"in ne&&(ne.writable=!0),Object.defineProperty(B,ne.key,ne)}}return function(B,k,G){return k&&K(B.prototype,k),G&&K(B,G),B}}();function T(K,B){if(!(K instanceof B))throw new TypeError("Cannot call a class as a function")}function I(K,B){if(!K)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B&&(typeof B=="object"||typeof B=="function")?B:K}function D(K,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof B);K.prototype=Object.create(B&&B.prototype,{constructor:{value:K,enumerable:!1,writable:!0,configurable:!0}}),B&&(Object.setPrototypeOf?Object.setPrototypeOf(K,B):K.__proto__=B)}function N(){}var z=function(K){D(B,K);function B(){var k,G,ne,fe;T(this,B);for(var de=arguments.length,xe=Array(de),Oe=0;Oe<de;Oe++)xe[Oe]=arguments[Oe];return fe=(G=(ne=I(this,(k=B.__proto__||Object.getPrototypeOf(B)).call.apply(k,[this].concat(xe))),ne),ne.saveUploader=function(ce){ne.uploader=ce},G),I(ne,fe)}return m(B,[{key:"abort",value:function(G){this.uploader.abort(G)}},{key:"render",value:function(){return g.a.createElement(E,C({},this.props,{ref:this.saveUploader}))}}]),B}(L.Component);z.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:N,onError:N,onSuccess:N,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var F=z,W=Y.a=F},Gytx:function(M,Y){M.exports=function(L,g,A,b){var y=A?A.call(b,L,g):void 0;if(y!==void 0)return!!y;if(L===g)return!0;if(typeof L!="object"||!L||typeof g!="object"||!g)return!1;var x=Object.keys(L),w=Object.keys(g);if(x.length!==w.length)return!1;for(var f=Object.prototype.hasOwnProperty.bind(g),_=0;_<x.length;_++){var d=x[_];if(!f(d))return!1;var r=L[d],u=g[d];if(y=A?A.call(b,r,u,d):void 0,y===!1||y===void 0&&r!==u)return!1}return!0}},HjOm:function(M,Y,o){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.default=void 0;var L={locale:"zh_CN",today:"\u4ECA\u5929",now:"\u6B64\u523B",backToToday:"\u8FD4\u56DE\u4ECA\u5929",ok:"\u786E\u5B9A",timeSelect:"\u9009\u62E9\u65F6\u95F4",dateSelect:"\u9009\u62E9\u65E5\u671F",weekSelect:"\u9009\u62E9\u5468",clear:"\u6E05\u9664",month:"\u6708",year:"\u5E74",previousMonth:"\u4E0A\u4E2A\u6708 (\u7FFB\u9875\u4E0A\u952E)",nextMonth:"\u4E0B\u4E2A\u6708 (\u7FFB\u9875\u4E0B\u952E)",monthSelect:"\u9009\u62E9\u6708\u4EFD",yearSelect:"\u9009\u62E9\u5E74\u4EFD",decadeSelect:"\u9009\u62E9\u5E74\u4EE3",yearFormat:"YYYY\u5E74",dayFormat:"D\u65E5",dateFormat:"YYYY\u5E74M\u6708D\u65E5",dateTimeFormat:"YYYY\u5E74M\u6708D\u65E5 HH\u65F6mm\u5206ss\u79D2",previousYear:"\u4E0A\u4E00\u5E74 (Control\u952E\u52A0\u5DE6\u65B9\u5411\u952E)",nextYear:"\u4E0B\u4E00\u5E74 (Control\u952E\u52A0\u53F3\u65B9\u5411\u952E)",previousDecade:"\u4E0A\u4E00\u5E74\u4EE3",nextDecade:"\u4E0B\u4E00\u5E74\u4EE3",previousCentury:"\u4E0A\u4E00\u4E16\u7EAA",nextCentury:"\u4E0B\u4E00\u4E16\u7EAA"},g=L;Y.default=g},HmJG:function(M,Y,o){},HpTS:function(M,Y,o){M.exports=o.p+"static/small_program.f74069ec.png"},HpfO:function(M,Y,o){M.exports={wrap:"wrap___r5XlG",content:"content___1KVgv",mainPathWrap:"mainPathWrap___256K2",colorBlue:"colorBlue___3S7DM"}},I8Z2:function(M,Y,o){"use strict";o.d(Y,"a",function(){return b}),o.d(Y,"b",function(){return t}),o.d(Y,"c",function(){return n});var L=o("q1tI"),g=function(){var i=function(h,l){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,p){s.__proto__=p}||function(s,p){for(var O in p)p.hasOwnProperty(O)&&(s[O]=p[O])},i(h,l)};return function(h,l){i(h,l);function s(){this.constructor=h}h.prototype=l===null?Object.create(l):(s.prototype=l.prototype,new s)}}(),A=L.createContext(null),b=function(i){g(h,i);function h(){return i!==null&&i.apply(this,arguments)||this}return h.prototype.render=function(){return L.createElement(A.Provider,{value:this.props.store},this.props.children)},h}(L.Component),y=o("Gytx"),x=o.n(y),w=o("2mql"),f=o.n(w),_=function(){var i=function(h,l){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,p){s.__proto__=p}||function(s,p){for(var O in p)p.hasOwnProperty(O)&&(s[O]=p[O])},i(h,l)};return function(h,l){i(h,l);function s(){this.constructor=h}h.prototype=l===null?Object.create(l):(s.prototype=l.prototype,new s)}}(),d=function(){return d=Object.assign||function(i){for(var h,l=1,s=arguments.length;l<s;l++){h=arguments[l];for(var p in h)Object.prototype.hasOwnProperty.call(h,p)&&(i[p]=h[p])}return i},d.apply(this,arguments)};function r(i){return i.displayName||i.name||"Component"}var u=function(){return{}};function t(i,h){h===void 0&&(h={});var l=!!i,s=i||u;return function(O){var S=function(P){_(R,P);function R(E,C){var m=P.call(this,E,C)||this;return m.unsubscribe=null,m.handleChange=function(){if(!m.unsubscribe)return;var T=s(m.store.getState(),m.props);m.setState({subscribed:T})},m.store=m.context,m.state={subscribed:s(m.store.getState(),E),store:m.store,props:E},m}return R.getDerivedStateFromProps=function(E,C){return i&&i.length===2&&E!==C.props?{subscribed:s(C.store.getState(),E),props:E}:{props:E}},R.prototype.componentDidMount=function(){this.trySubscribe()},R.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},R.prototype.shouldComponentUpdate=function(E,C){return!x()(this.props,E)||!x()(this.state.subscribed,C.subscribed)},R.prototype.trySubscribe=function(){l&&(this.unsubscribe=this.store.subscribe(this.handleChange),this.handleChange())},R.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},R.prototype.render=function(){var E=d(d(d({},this.props),this.state.subscribed),{store:this.store});return L.createElement(O,d({},E,{ref:this.props.miniStoreForwardedRef}))},R.displayName="Connect("+r(O)+")",R.contextType=A,R}(L.Component);if(h.forwardRef){var v=L.forwardRef(function(P,R){return L.createElement(S,d({},P,{miniStoreForwardedRef:R}))});return f()(v,O)}return f()(S,O)}}var a=function(){return a=Object.assign||function(i){for(var h,l=1,s=arguments.length;l<s;l++){h=arguments[l];for(var p in h)Object.prototype.hasOwnProperty.call(h,p)&&(i[p]=h[p])}return i},a.apply(this,arguments)};function n(i){var h=i,l=[];function s(S){h=a(a({},h),S);for(var v=0;v<l.length;v++)l[v]()}function p(){return h}function O(S){return l.push(S),function(){var P=l.indexOf(S);l.splice(P,1)}}return{setState:s,getState:p,subscribe:O}}},IBYe:function(M,Y,o){"use strict";function L(g){return null}Y.a=L},Ib8C:function(M,Y,o){(function(L){(function(g,A){M.exports=Y=A()})(this,function(){var g=g||function(A,b){var y;if(typeof window!="undefined"&&window.crypto&&(y=window.crypto),typeof self!="undefined"&&self.crypto&&(y=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(y=globalThis.crypto),!y&&typeof window!="undefined"&&window.msCrypto&&(y=window.msCrypto),!y&&typeof L!="undefined"&&L.crypto&&(y=L.crypto),!y&&!0)try{y=o(4)}catch(s){}var x=function(){if(y){if(typeof y.getRandomValues=="function")try{return y.getRandomValues(new Uint32Array(1))[0]}catch(s){}if(typeof y.randomBytes=="function")try{return y.randomBytes(4).readInt32LE()}catch(s){}}throw new Error("Native crypto module could not be used to get secure random number.")},w=Object.create||function(){function s(){}return function(p){var O;return s.prototype=p,O=new s,s.prototype=null,O}}(),f={},_=f.lib={},d=_.Base=function(){return{extend:function(s){var p=w(this);return s&&p.mixIn(s),(!p.hasOwnProperty("init")||this.init===p.init)&&(p.init=function(){p.$super.init.apply(this,arguments)}),p.init.prototype=p,p.$super=this,p},create:function(){var s=this.extend();return s.init.apply(s,arguments),s},init:function(){},mixIn:function(s){for(var p in s)s.hasOwnProperty(p)&&(this[p]=s[p]);s.hasOwnProperty("toString")&&(this.toString=s.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),r=_.WordArray=d.extend({init:function(s,p){s=this.words=s||[],p!=b?this.sigBytes=p:this.sigBytes=s.length*4},toString:function(s){return(s||t).stringify(this)},concat:function(s){var p=this.words,O=s.words,S=this.sigBytes,v=s.sigBytes;if(this.clamp(),S%4)for(var P=0;P<v;P++){var R=O[P>>>2]>>>24-P%4*8&255;p[S+P>>>2]|=R<<24-(S+P)%4*8}else for(var E=0;E<v;E+=4)p[S+E>>>2]=O[E>>>2];return this.sigBytes+=v,this},clamp:function(){var s=this.words,p=this.sigBytes;s[p>>>2]&=4294967295<<32-p%4*8,s.length=A.ceil(p/4)},clone:function(){var s=d.clone.call(this);return s.words=this.words.slice(0),s},random:function(s){for(var p=[],O=0;O<s;O+=4)p.push(x());return new r.init(p,s)}}),u=f.enc={},t=u.Hex={stringify:function(s){for(var p=s.words,O=s.sigBytes,S=[],v=0;v<O;v++){var P=p[v>>>2]>>>24-v%4*8&255;S.push((P>>>4).toString(16)),S.push((P&15).toString(16))}return S.join("")},parse:function(s){for(var p=s.length,O=[],S=0;S<p;S+=2)O[S>>>3]|=parseInt(s.substr(S,2),16)<<24-S%8*4;return new r.init(O,p/2)}},a=u.Latin1={stringify:function(s){for(var p=s.words,O=s.sigBytes,S=[],v=0;v<O;v++){var P=p[v>>>2]>>>24-v%4*8&255;S.push(String.fromCharCode(P))}return S.join("")},parse:function(s){for(var p=s.length,O=[],S=0;S<p;S++)O[S>>>2]|=(s.charCodeAt(S)&255)<<24-S%4*8;return new r.init(O,p)}},n=u.Utf8={stringify:function(s){try{return decodeURIComponent(escape(a.stringify(s)))}catch(p){throw new Error("Malformed UTF-8 data")}},parse:function(s){return a.parse(unescape(encodeURIComponent(s)))}},i=_.BufferedBlockAlgorithm=d.extend({reset:function(){this._data=new r.init,this._nDataBytes=0},_append:function(s){typeof s=="string"&&(s=n.parse(s)),this._data.concat(s),this._nDataBytes+=s.sigBytes},_process:function(s){var p,O=this._data,S=O.words,v=O.sigBytes,P=this.blockSize,R=P*4,E=v/R;s?E=A.ceil(E):E=A.max((E|0)-this._minBufferSize,0);var C=E*P,m=A.min(C*4,v);if(C){for(var T=0;T<C;T+=P)this._doProcessBlock(S,T);p=S.splice(0,C),O.sigBytes-=m}return new r.init(p,m)},clone:function(){var s=d.clone.call(this);return s._data=this._data.clone(),s},_minBufferSize:0}),h=_.Hasher=i.extend({cfg:d.extend(),init:function(s){this.cfg=this.cfg.extend(s),this.reset()},reset:function(){i.reset.call(this),this._doReset()},update:function(s){return this._append(s),this._process(),this},finalize:function(s){s&&this._append(s);var p=this._doFinalize();return p},blockSize:512/32,_createHelper:function(s){return function(p,O){return new s.init(O).finalize(p)}},_createHmacHelper:function(s){return function(p,O){return new l.HMAC.init(s,O).finalize(p)}}}),l=f.algo={};return f}(Math);return g})}).call(this,o("IyRk"))},JAbv:function(M,Y){M.exports="data:image/png;base64,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"},JFl9:function(M,Y,o){M.exports={footerWrap:"footerWrap___3bmMI"}},JWDV:function(M,Y,o){M.exports=o.p+"static/charpter-white.5fa14f93.svg"},JeFH:function(M,Y){M.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+FEHTwVhc96CoAbzy9txJP7KpAPKWKWFRQrCawZEoHZHnN4yEFVbX65DZeIKW8DVI+DiHimrtVSnlCCDFUCHGihc+TYJl7jwf1DlOW5KHWltCiLqSCfndqIm7vlwDLsi41DOP9Nm6z1cullL0BLATAP1tavxZCvNTqw5iDpJSnwrZ2rC60tKvXFTayOCc/AXGGwNIpHdDRCOZA9/QXQtASfrIlpdQg5TYpxMDXDlVhf7mJ/DoLZQEbNabEnf0TMbVTLL+PCHJZy15kL5EQk6ctK8De8mATWaige09LxC19lYIuMQxj7k8mROhBUsrbAfydOW/pd3XIr7VQXG+jImjjtHYePHlmMmDb7wpdv/yHfDcV5Idt7c0NalmTl+Sh2pTh8OYqiF5FBXXwWEeh6acKIWp+yMPbco2U9icS4pyJSwuwsywQDrM1lsQDA5JwW78EPu4iIcS8lhUkHwfw+1s3l2LesRrE6o2jARV032mJuLlv689qy94bRRwpL2YIe3F/Fe7bVqYiEqMs82CvBAOrpmQA0vpUaAZry1ZXCMXZS22ISVM/L8CBSlPFbnfRg/53FCQfAXD/7VtKMTen4XB5qDf38eO+AUm0+usMw3j1exR0GYB3nttXicd2VSDu/0ZB/WCZuzaU2NqMNYUKZHFRQR3jdKyclgGvZa0XhjGqVe2EYbZlzYGm3fmbjSX47EQtYiIEaxTiPNa3IQ/6SUOc46nyUgDvRh8uFXRlNx+eGKKg8d1CiDktCRYIBM7wGPrW5flBce36IgVuIldkiANwsRDiox9ySG25RkqZEIpInRiRGKKFAGwJtPNqWD4tE8nC3AXNOEMIYbX2bLcOugbA63N2V+CpvZWNLK8RSPCYx6ErFPdzgIRBsK2tn+ebuG5Dw+HWWRLnZsXhxWEERnhMCHH/93hQMqzggaP1RuovPs9TsDpSRZEgAcAvhRAftHZAP+ZzadurLCHGTl5agMNVTkRyz3HxlA7o7LVyoOk/KJe7ChoKyE0Lj9fhpk0ljT0oBLs/m9QBp8SYuSEF/eQwW0oZDyuYc7BWb3/usjyY0qmiA7bEqLQYvD0mlWf1ohDixu9RkICUGwJCDJu4OB/HaixERrn/RZj9NIDbZq4vxvLcOnWeVBBR5fzsTPT3WaXQPb2FEEWtGYBSUHV1dYd4r+fA7hrNf8HyfBCgu5bHB//UhaqUkoVIOoBhAPrRBmzbLtSAWyul1mnSkjzk19nqcIO2xMBkLxZOSCP6eU/oOvNMRI6UQgjBbaolpXwZwHUz1hRhXWF9ozBHBf2UhaqUMgYA+T3Wb8Nh2+2haWUASDBf/PDX5XjpYFU4ItHo3hmThuFJMgiPt4sQIu/7ZOFnrgcZsO3tFdBOzV6Up2BhZKFKzX+cnYFTfXZFdV2gt9/v/1FUjySdBDkLltUVUqbD8BjRFsRYfeGqQmwvCSiYTKG6+XR8PjkDBuQ2CLEItt0NQrSDgAe2TIG0bWh6IYTYzLINwB/u31qG149UNwrXVND1Pf340xlJ/NofTfXU19f39Xq9s2Gb/WHLTjA8ityLXm8crsa928rCe6i3JF4a3h5TM3UJ3fMEbDsTQhB3xwOaH9KKhRAVEPpRAK8KIdaEQ7S07XkQ4oJzlxcqmBtZgfPQPhiXjiGJdn2IizvWmmtGfy6lZFW9RwKxJC4Lak10idPw6M5yFNbb+GXXeFzcNV7ddsvmEnx8rFbBZKKf9FgNi7LTkRLTUHrSy/k3opWgDSRqzt8BnABkp1cPVeOB7eVNFBQBOO4RQjzZVjlCXsrcdUlREDhaaSIzVmDZd3X49EQtuvkN/On0JFU7rs6rw9Xri8NnSQN5cnA7XO6QtY0WQ0CpBcTrjoUBKCAb0aAgKWfT8m7cVIKFx53DcRfDzH9Gp2F0CiQML0HC/rYKpmgcK7hnY4kUV68rUjH53yPb456vSrG33MRV3X145uxk9di/7KrA0/scsELj8BsCn2WnI8unozJo48ZNpThYaeLBgYnYWFiPuTm1qgh8a0wqvJBFsILJK4ulPnNdUSNDI+C4oHMcnh2qAMd/CyEeaqscIQV9CuAXF64sxLqCekUd8bQe31WBjDgNyyZloFO8joMVJs5fUYiAdMAKEd0fByTiJqcOwz8PVOH1w1U4MyUGl54Shxs3l6qQPOesZIzLYItHnBGpoGvpVpGH426ervmv4e0xrRNDrhgshNjWVsEU/LTMfTlBvePUJXmqsv7nsBS8eaQaq/LrMSkzFm+Odto17x2twV1fliojoSKJguaPT0PfJI8SctLnBYoE/duZyYoxeOVQNXonGlg5NQMeKbfBtjKP1GkdiOSCIbDB51KOiR1i8dpI9T1/F0Lc0VY5Qgr6C4B7fr2xRBXE/9UlHqPSY3DP1jL4DIF549JwajuPYkKmLisI51N6ENn0+weoEKsMcfaucozJiFVsyTXrihXyZBg8t5MHEPrASAWNAbD6g6M1uCN0OO7m+WAexi9PUSFoLGPjjxLMNldYQh9PtmBPWQCzB7XDzrIg3jlag8EpHiwYn6YKu/UF9bhibTGMUMyiF707JhVnp3ph2sD0lYX4orgejw9uh5wqCy8erELfRAMrpmRAk3I5YPtroA9lPs0LgQ3ul4hwWGoM3h+bSsDxutB1GmWbl5TySgBv/m1PpTrg4WkxuKG3Hzdsckj+N0elYkxGjArPF6wsxI5SJ2XwHGd08+GvTk2Hlw86bMPZqTGKgmI4DNAZRrTHtEwD0IwBkQrqBjO4f0s5PJeuLmwCTx8+PQmzevn53POFECQD27yklH8D8NvrNhRj/rFaxSxz46y9uvsNLMpOQ5JXw+FKE+etKAzXMTzYV4a3x6SOTnS+bE0RluXW4bFB7VBYZ+Mf+yrRN8nAyikZENL6BEJUAtrl01cUYnvocHgfQzUtm+ESkB8LoV3YZiEcpDgYtvXVkrwgfrWhGF19BmYPSsJvNpWi0rTxzFnJ4XxKL1sUKv7pwdM6xeFfw1WIxYff1uCWLaUYlOzBg6cn4ep1xUqJLzUo6LRIBfnJBp8IGllTluaiNlQB80G86bd9E3DPaYqmv0YI8caPFGwmgNfo2k/srsDlp8Qr6/n91jKkxmjq4Dr79CahgbnjqQYPBhmPD3Nq8OczklAdlHhyTwX6JXlCCpLzIcQOAA+wplsQkU9p0V18uvI0XVqrhWaM+5FyJMMyD3xTr6VOXZoHQwhVSN/5ZamqvR6MyDN/+roc/wpB7UYeDCgjo1JoNGwiXrWuSHGhLSlIwLLWB3R9+ITF+ar76OIEKmhmD5/bibxTCEFPaPOSUp4FaW9ZeCKAK9cWIjszFtf38mPWphIFBOaOS1PJngfJ5LorhCb5/Q8NTMKveysPxj1fluLFA1UqxFF5j+wsR/8kD9ZOy2SIWwCHwnl99s4KPLu/gRlhqGwf49AticLeAaExn7ZKt0QLKqXkWa0L6vqIMZ/l43BVEO+NTsXsXRXYURpU3OEDpzt55pWDVXjwawdN0oO5zwUT0lTk2FJUjwtWFqFPoqFY7l+uLkKVaePVkak4p0NUiOPDpGW9BU2bcdGqQnxV3AC1eQjnd47D8w76mS2EuK/N2nFCQxos8+CROi3pmT3lGJcRi3GZMThQEYTf0NAtwQjDYoaOz79zqnAq6Na+CfiD48F4dl8l3v6mBvcPSFR55aUDVciM1/HyiPZU0GIIQVZ7Fa8hSnRJUwIO/j97W508P5xuaU5WaVkvQdOuZzTgc6/p4VP1I/dDUjQjTle3LT5Ri1kbHXaGhpcVr6tQ7vdoCuUxb9Eo7+yfgPu3laOo3sJ9A5MwJt3DQqIBxSkFSevPgPbHyDqE/67olvQYvD1a0S0vCyFm/UgFMe0vAHBOa/f/cVsZXjvsFJqKMO3uwxODneRKS9SEaJQnSeqSlARAmuVvsM0ja4tsjZ7q1nSN6Ra7HLpBuoX1RpuXlJKMxluhcqzF+1lwX7LaKSu4Rw6tUEHpcboqIUwpm5C6vFYA3wEYFD3Vo6B2dGhwkqsXn2Wn8VsWCE2b3maJQjdIy3oWmnbzoUoTu0sD4J8Mp2VBG+MzY1U9xPX8/ipVxFJBTK6/6BSHf4aSKwWl0tgrMm2pckCiV7iCPsueECwz51Cd3v6cz3PDvB6fy+v/MyYNo5Jhw/D2FUKw5d/mFQgEzvZ4PBtKA7bOsMYocLTKVF6UYGi4f2CiYq+P11j4xfICVAUdVpvjBJ9MSEP3BIdEoWyUg+iNy+fRVLiHo6Ah0QrKZu76z5Fqlbjd0MB7WXitmJoBr5QbhaaNaLNEroKkZKv3+ivWOkhMF05Di0ZwVmqMgtr8+8c5DsJhLUQPJpR9zyFMwVKAwIAWqLwJAt0SdLwxJg0+2NugaUMh7a8qpDYgmrpiuH5uaAqmdyYiFMOEQw+1eUkpR3IqjWiUYcqlxnig3Ne8cakYmhajCutpywuVEfIafv7h2FSckeLF8WoLszYWozhgKzaEi2TJY4OSMaFDDEzTHButIDabdq8sssQ16xoof35hokdg2bQOSBXBQ8Lw9mqzRA0Kuo1h6IHtZSAdE2kEGaR0JqarMECGYMba4jBhyuRKwpR10ltHqnHXV2WID6EY7o/UysppHZCpBQ/C8PRh11IKfdoUNiErzHBNRc8jFUNwYprmVI/Hs+THyCKl7MjWxs4qzXfhinwVwtzD5HfMGZKMy7rFK2WRcXDhPg3qjVGpGJsRg9waC5OXFaAiKMPhmt7E8uFXPX1sUJ4TraBUwsd9NVry+cvyQHjDC9xqfmF2Jnr7ZAU0/WYyF5ZlBXVdZ+uBtHkhgJLWUJGUcjyAFe+G2ILIBO4RAgsmpKJ3ogeHKkyct7IAAduxSCZXwvAEj8CSUOL1hhTkTh4tntwBXY3AMeGN6SKlfB7AjVeuLcaagrpwnHc6tAm4zxm9eoZgIiQiaT1WmoW5ublFHTt2/N62vpTSoJdWSW1g9uI8VY+5XsTvuK1vAn4fAjXXbyjGkhDgoQeTaiLlRDZl2rJCfFcbgZhNiQcGJuGGPgqxXhKtIC9sc0exbfSZuCgX5cGG+QTGblbgrFuaLCtILZZBEzmAthuatgXAJgC7opt7UsosWOb+rytF/EUr8xs11BTnNyoVozNiUFRnYeryQpTUO77PeM7kSnS0pSigilXG9EgD+nRSB/SMDeZB92ax+0p67O4vy/Du0eowt8jDu7RrPJ46y+H9Gi9m7WA9OH+uaQcgxVZo2kYAXzU3TSSl/A/Ht/5rdRE2FzW0NqiECzvH4x9Dne+4f1sZXncBjynxyKAkXNvTr8IzywnSVW5rnB70+9DkkRoNa7LFEB2TvSQfR6ut8HwCFXR1D78q9MgxsQ3AhMeDIyLJ8nnQJUFHsoMunWWrIRNO4XDQYzWngVQNIe2vK0P5gUx2ZL311JBkXNotXiXPc1YUKhDBz0kiMrn2SDAUPD1vRUGYZ6MH8WvnT8xEvzirCIansxr9Bd5+anclntxbEQ6HlKN/Oy+u6BavWHQeJnOyz9CQGqujY7yBLgkecIgozJ1bZiU0fSOEmA/gUyHEtxRPSnkngDkPbCvHq4cb+j7MmUNDlBIP+B97SQk5I200kDv7JeAuZzYPl68pwvqIvlXU5zObKsiy3oCmXXXxKvJdgUYQkBqnYoii3EUrpiAMN0keTYUi4nomyKEZcch05+5tcz804zXCdABPsKl2yaoibClusDxu7u7+ibijv8P2snDbVFQfhslMroNSvMirtVTiLQ84YcWN//MmZGCAzy6F4ekCgHPmq9/5pgZ3R9RCym4kFI0ULQc/Y5jlQTIf9kr04Mz2XgzPiMOApJDlUVm6MS8YDD7r8XiINFa/d7RGuOQun+H2sBiSmRvfP1qjWAYCnqiiHzdvLlG0l9s9iKr5rm+qIOlM1xCZfBLVdmgmJoT/ycX5lnSUyAezah+c4sW5WfGY2iUOPgVx7G+gaXyFZURkrcMHcXNXdPPhLyEy8abNJVgQ2jyN4/WR7RUUJ2SdtrxAQVh6l2svH43PwOl+uxyGh72nNNjmvpWFtrhmXWGTWqM1WYhc6W18NsEIPZdM+PSufvTya4AVtKF7lsK2sr8utz00aNdQ3AERNySvyqvDNaG+ED32vKw4vODMWOCh0ESvm4sV493bj/sHKibixuYUdAOAF6Lbtc0JFIlcmvvchcG8jo2sy06Jx8zeCfCFYke0dTOsTciMxb9HOW0HjiO/dMgJHRTs6RAJGc0Su8Yxd3w6BiXKSuieHirxm8HDe2q0xOlRbfwmYT0CgbUkJ5VFKEwyl3u8oU8CBrRzapnSehtTlxegIMScu6Dq4/FpiiPcWRoE2RlmUxrayLQYvBMqGUj0so8UqaAbeoWpojuaU9D5DOccvPtzqFBsbtOM26xhyoO2StbMEU0eFnEjvYqxmXCZMHdkeoxqa7PKdhc3f1o7L+YTTgsWq5V4dKez+Wg+jiTjyvw6lQe5qDR2fc9MlNUwPD0BFMO29hVYeveJi3OV10VNYYW/l8+vNKkAp6qPGqdrJD4Pn8aSYAjF7nOgkgn+stVF2BgBFKhQth0IeFjvqGLVlGCEcUqGdAX93/3GKRkiFeS25W3bvrc5BZ0NyM3zcupw65aSJtOZ7mEwRr8wNEX1c5Z8V4ttJQGF+qIH1qOVSyUxIb86IgUDkr3IXpoftjx3uI+MBS2VdPxvv2iI3bf2ScAfHHiMO74oxQffNgw48t73xqbj7CS7FoaX7zB9J01zY0DXh41flN8IykbuiV5Lqp9Tn5wJZIf0WLXDn5IiakmpjA40mut6+vDIoHaNvJ33Rno8cyVzZm6t81wW/Qx/CR5NFevkHd0ZPj7zVz39iqlnBGxOQd3ZF9pQCmPGmoIw/IsUyn0Dgl/S1e+4OamOJSfqlJD7Kkz1by1ZIjcxOdTZvDTC8sLt7YnpCmxExu7oZtdjO8rx3IHGEzPvjk3DsCRZF1LQCWnbH0GIC5ubs3DlIay9JwKYENZTSQuP1SqPYK0SPQDp3suQReiwYnK6Ipdd5oOfc78kc2/qk6A8k/0twmlGHRofzy4zTse24gAuWeNEESqD913bw1E6gEeaU1AKK+QDofk0WmZzoYskH2sWkqiRix7yRVFAdQpzqhvPpbnXEUGNSY/BW6NTG1meS2Z+NC4NA5I9qhN58aoiFbvJVU3uGItXRjj5iQz2wzsahkIYUt4Zm47h7WR4sEVKSV7uZhUO8xxmPHrR0i/uEo+nQ/MQkZ/nVJsKIr//bU2TQXxe5+6XHs9zohLckTUe9KyefjzseEIYTtMrvRoUpUWU+E2liXNXFKIuNGTJ+8iMk00g2m1OQSxWdxbZRm8Wq6QhmnNzh85oh8u6NZ5QIXTlLNjf91Y2mex0hWdTikPst/ZLULxaZIs9Eq19W+Vsntczdg9J8aqeEXNeJFfH51JBb49Jx4hkOwAjhm8B5kgp2RZ59M4vStUhRw/T8z4a1NntY/DBuNQmhsgcee/WMhURmosGBA0MjQuz05SXTF3mhDFeq1o0WXF4PoTWIuE0IwV5xbNSvYpc5dyCO+qmFNTdh8cc5v6pZvO6NM11AV0fOWFRPk5E0BCR1sUH3d43Ab8L0Rn8jNwS0R/Hj2itzT2c3tPDb+DDcWmqixqJcHh9ZPeU4YZwmuiI1trDr+PT7HR10Gvz63HVuoa5BSrorTHpGJksAzC8bCN868zhNWXnI+Wg5XcO0Uh+TmiGPOONQ9X4y+4K1cJuLsRxP/Tqv4eQJf9OApjhkddHd08f3F6OV0KIVPWwhrXHlE6xSt5zlheGR4R5rld392G2o6B/NK8g254LIS4i8thd1vQ9G94ZNcKkRlypnCNVZpO3CsKhzZJIi9Xx0vAUDGmvKlirPGjrfJ8nt9ZhFLhB9x0efgeti/PNZKzTYjUsmZiu6ivuiwMZbkihBb/ltBGCIQUdlVKy7/QJhzMeCnU1o0McrZmTOJ9mp6GLz1Dv8/x5RznmH69VRWtz0YP38JDZRAzxbWpMj/ex00tERtRK7yL7QWNlRGEbh0Uw5XpySDtc0d2nDI811JchUoDyX9XNh8edWvCF5hUk5XOcvKRFrA1ZRLRgbmh4dWQKnttXpV6fpBVHDjy691Agbur0ZA/+OiQZpyWzWwjONbAiunJGhOU5yMiP/z4jSVX6v95UonIRn8HD+mBMKrr4DQe6rnD6LG67Qs3uJUsTHhXiqKCz+eotK3WGmOZCHDfCZ88dm6qg9h+3l6mhlehXVyKNjAq9q38iZjkt+BO2bc/RNDw1L6c+jHzpmWkxDjtPg/oop0bVOxSYaeOWvn4FILhmbSjG4ojuccRw5cstKehBAH+6dUsp5kW8qxOpJB4eebgOcbqi0psLaS6lQgqI3NftpybB7zAmfHn3N7ZtX6tp2ov0vGdCg4pU5PSsOLzqzK6pxR81CNJrTaB9aFiY0JXexbEqV0Fvjk7D2BSYMLx80fmIlLIXrODedSVSvzLiXZ1oY6MVD2znwd4KE7Wm3fQtw1CByetGcMhlQJIaEwPkIUCws3oIZvDYvlo9gQM3zE0uA7F0UrpiIbiIbflfre30fZw5WuAPX5XhzW8cQleh1VPinTfxgH+3pKDf8E2C1tgEKoDJO9JruDGGG1oQc8yUjnG4rlcC+iTqpHlKoWlU/nMceJdSjgawhvnk42M1yIo3kBqroXeiF0NTlZftA+R+SMpix4PDj0KvghBZpo0uVNCByqCK+QpcjErD+BRuKIY56JDk/LcZPLCnRk+avjyv0UsB0Uri/Sw4Iw+EMjBSsBgelOLBzB5+nNfZfYXWfh/Q7uJvRvAHMyDlF3UQgx7dXoZYQ1NcXlqsgeyOsTTKenBWAjYhbxxs6YemG3B+EGQY5xo4ekbPZF7j/OEcR0FzW1IQmeCPommI5iyPnkQlURgqhxU26Y3JHeNwXhcfsuL4/p9pQTdIzfP9ngPuc6SU3AU7mo0bgCYrXg/Hi2dETrHyXVa+HS2l5Ft21+6usMBuhMtidE/UECdlDYSggk6oV1psa893Qb3rlCW54ZepouXg37l3d0aAfzL/cNSYZcT0LvEYnuqyvnIrIChHo/dbZYjDbPxslSFLAfGUEIIcZ3gppTpvd6zLqweOVZuI0TUVDRgSOzjVy5yWFKSmTNn6vv2LxlMx7jdEMtiZcbR6h/kdmh7nkIlctlUCiLnQNL7Xs7W5g6mrq+sTExNDg6gM9eE5xFEM4HhLL4pJKYdwvg5msCsgg4AwFceueyptKZ/XNO3pkIdqkPaXVdAGjfwkt1FTzeXveCAN7QYNp/gMDEzxYFhaLAaneaH8xTY5hrvasu1/5ebmzuvcuXOTn8KRUpLZ5sQpWVD+EgvfAKEcBWQ1mjUK554XYFvnw7YEhAhCSr6pYULTv2R6aklBAwC5Y3uJief2VyqtEoHGG5rT/4nVVN+EPaCsBB0pkT0gyyyDpq+HEB8DWNTSa/PNbbgt/yal5NkxyzI90VRVdI3+HSFpmyuk0MeTeGXnkspgrE/0aGgfyxxqoJPPQGe/BxxcDYtiBiQ042to2mfsZwkheGA/ywr9NhJlIBekZBFqOrZ5kgCFhYUJqampbAWzp9LCsgDLrgB/t0foByDkdkB1UrdFv5j0s0j1Ax8qpfxdqP/U8h1mIABN5EEYhyHELgBUBv87IAS98/9utUhA19TUZMXFxc0AcCZbIqG5A+YFvhvEMEQXVm4s6Jon6VKzA053dTI46OH8hMARhbwa5OCbboU/9e8//BRH8j9mLdQoDqqNCwAAAABJRU5ErkJggg=="},Jky8:function(M,Y,o){"use strict";var L=o("sRBo"),g=o("kaz8"),A=o("5NDa"),b=o("5rEg"),y=o("miYZ"),x=o("tsqr"),w=o("9og8"),f=o("2qtc"),_=o("kLXV"),d=o("tJVT"),r=o("WmNS"),u=o.n(r),t=o("q1tI"),a=o.n(t),n=o("9kvl"),i=o("6CvP"),h=o("1XHU"),l=o("1vsH"),s;(function(O){O[O.Professor=1]="Professor",O[O.AssistantProfessor=2]="AssistantProfessor",O[O.Student=3]="Student"})(s||(s={}));var p=function(S){var v=S.visible,P=S.user,R=S.onCancel,E=R===void 0?function(){}:R,C=Object(t.useState)(),m=Object(d.a)(C,2),T=m[0],I=m[1],D=Object(t.useState)([]),N=Object(d.a)(D,2),z=N[0],F=N[1],W=Object(t.useState)(!1),K=Object(d.a)(W,2),B=K[0],k=K[1],G=Object(t.useState)(!1),ne=Object(d.a)(G,2),fe=ne[0],de=ne[1],xe=Object(t.useState)(),Oe=Object(d.a)(xe,2),ce=Oe[0],be=Oe[1];Object(t.useEffect)(function(){var q;if(P!=null&&(q=P.userInfo)!==null&&q!==void 0&&q.identity){var me;F([(P==null||((me=P.userInfo)===null||me===void 0)?void 0:me.identity)==="student"?3:1])}},[P]);var ve=function(me,re){if(z.includes(s.Professor)){_.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:a.a.createElement("div",{className:"tc"},re||"\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838"),onOk:function(){n.d.push("/classrooms/".concat(me,"/students"))}});return}n.d.push("/classrooms/".concat(me,"/students"))},ue=function(){var q=Object(w.a)(u.a.mark(function me(){var re;return u.a.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:if(T){we.next=3;break}return x.b.info("\u9080\u8BF7\u7801\u4E0D\u80FD\u4E3A\u7A7A"),we.abrupt("return");case 3:return k(!0),we.next=6,Object(i.c)({invite_code:T,professor:z.includes(s.Professor)?1:null,assistant_professor:z.includes(s.AssistantProfessor)?1:null,student:z.includes(s.Student)?1:null});case 6:if(re=we.sent,k(!1),!((re==null?void 0:re.status)===-2)){we.next=22;break}if(se(),!(re.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1")){we.next=14;break}return de(!0),be(1),we.abrupt("return");case 14:if(!(re.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u804C\u4E1A\u8BA4\u8BC1")){we.next=18;break}return de(!0),be(2),we.abrupt("return");case 18:if(!(re.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u548C\u804C\u4E1A\u8BA4\u8BC1")){we.next=22;break}return de(!0),be(3),we.abrupt("return");case 22:if(!((re==null?void 0:re.status)===0)){we.next=27;break}return Object(l.cb)(["\u6559\u5B66\u8BFE\u5802","\u9996\u9875","\u52A0\u5165\u8BFE\u5802"]),se(),(re==null?void 0:re.course_id)&&ve(re.course_id,re.message),we.abrupt("return");case 27:case"end":return we.stop()}},me)}));return function(){return q.apply(this,arguments)}}(),se=function(){var q=Object(w.a)(u.a.mark(function me(){return u.a.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:E();case 1:case"end":return ie.stop()}},me)}));return function(){return q.apply(this,arguments)}}();return a.a.createElement(a.a.Fragment,null,a.a.createElement(_.a,{centered:!0,keyboard:!1,closable:!1,title:"\u52A0\u5165\u8BFE\u5802",visible:v,confirmLoading:B,onOk:ue,onCancel:se},a.a.createElement("div",{className:"tc"},a.a.createElement("div",null,a.a.createElement("span",null,"\u8BFE\u5802\u9080\u8BF7\u7801\uFF1A"),a.a.createElement(b.a,{placeholder:"\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801",style:{width:270},value:T,onChange:function(me){if(me.target.value.length>=7){x.b.info("\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801\uFF01");return}I(me.target.value)}})),a.a.createElement("div",{className:"mt10 font14"},a.a.createElement("span",null,"\u8EAB\u4EFD\uFF1A"),a.a.createElement(g.a.Group,{value:z,onChange:function(me){return F(me)}},a.a.createElement(g.a,{value:s.Professor,disabled:z.includes(2)||z.includes(3)},"\u6559\u5E08"),a.a.createElement(g.a,{value:s.AssistantProfessor,disabled:z.includes(1)},"\u52A9\u6559"),a.a.createElement(g.a,{value:s.Student,disabled:z.includes(1)},"\u5B66\u751F/\u53C2\u8D5B\u8005"))))),a.a.createElement(h.a,{visible:fe,onCancel:function(){return de(!1)},occupationValue:ce}))};Y.a=Object(n.a)(function(O){var S=O.user;return{user:S}})(p)},Jq4h:function(M,Y,o){M.exports=o.p+"static/qrcode.2267e4d5.png"},Jv0p:function(M,Y,o){M.exports={flex_box_center:"flex_box_center___2RVge",flex_space_between:"flex_space_between___2f-dJ",flex_box_vertical_center:"flex_box_vertical_center___2UjfS",flex_box_center_end:"flex_box_center_end___1RfMW",flex_box_column:"flex_box_column___3uuIq",sidebar:"sidebar___Ik5Ae",items:"items___2qrP5",item:"item___24ylH",name:"name___1UcvU",itemActive:"itemActive___1Bj1D",question:"question___2fGw1"}},K3mO:function(M,Y,o){(function(L,g,A){M.exports=Y=g(o("Ib8C"),o("3y9D"),o("WYAk"))})(this,function(L){return function(){var g=L,A=g.lib,b=A.Base,y=A.WordArray,x=g.algo,w=x.MD5,f=x.EvpKDF=b.extend({cfg:b.extend({keySize:128/32,hasher:w,iterations:1}),init:function(_){this.cfg=this.cfg.extend(_)},compute:function(_,d){for(var r,u=this.cfg,t=u.hasher.create(),a=y.create(),n=a.words,i=u.keySize,h=u.iterations;n.length<i;){r&&t.update(r),r=t.update(_).finalize(d),t.reset();for(var l=1;l<h;l++)r=t.finalize(r),t.reset();a.concat(r)}return a.sigBytes=i*4,a}});g.EvpKDF=function(_,d,r){return f.create(r).compute(_,d)}}(),L.EvpKDF})},KOXS:function(M,Y,o){M.exports={flex_box_center:"flex_box_center___4BHX-",flex_space_between:"flex_space_between___fH2oM",flex_box_vertical_center:"flex_box_vertical_center___TgSS9",flex_box_center_end:"flex_box_center_end___1vKaD",flex_box_column:"flex_box_column___1kCgI",input:"input___2mV-b",dropdown:"dropdown___1QKW2",menu:"menu___37CBn",text:"text___159fF",b1:"b1___2uGyF",b2:"b2___2DXw1"}},KVXO:function(M,Y,o){M.exports={wrap:"wrap___1VfLE",content:"content___20B4M",mainPathWrap:"mainPathWrap___3qDeg",colorBlue:"colorBlue___2ZjUq"}},KeGQ:function(M,Y,o){M.exports=o.p+"static/noLevelData.36460f71.png"},KhGG:function(M,Y,o){"use strict";o.d(Y,"a",function(){return v}),o.d(Y,"c",function(){return E});var L=o("0Owb"),g=o("miYZ"),A=o("tsqr"),b=o("oBTY"),y=o("tJVT"),x=o("PpiC"),w=o("k1fw"),f=o("9og8"),_=o("DZo9"),d=o("8z0m"),r=o("WmNS"),u=o.n(r),t=o("q1tI"),a=o.n(t),n=o("ErOA"),i=o("NFKh"),h=o.n(i),l=o("7Cbv"),s=o("9kvl"),p=o("mxV5"),O=o.n(p),S=d.a.Dragger,v=function(T){var I="bf3c199c2470cb477d907b1e0917c17b",D="5183666c72eec9e4",N=h.a.enc.Utf8.parse(I),z=h.a.enc.Utf8.parse(D),F=h.a.AES.decrypt(T,N,{iv:z,mode:h.a.mode.CBC});return F.toString(h.a.enc.Utf8)},P,R=function(){var m=Object(f.a)(u.a.mark(function T(I){var D,N,z,F,W,K,B,k,G,ne,fe;return u.a.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return B=I.identifier,k=I.oldFilename,G=I.newFilename,xe.next=3,Object(n.a)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});case 3:return ne=xe.sent,ne.data=JSON.parse(v(ne.data)),fe=new O.a({endpoint:ne==null||((D=ne.data)===null||D===void 0)?void 0:D.end_point,region:ne==null||((N=ne.data)===null||N===void 0)?void 0:N.region,accessKeyId:ne==null||((z=ne.data)===null||z===void 0)?void 0:z.access_key_id,accessKeySecret:ne==null||((F=ne.data)===null||F===void 0)?void 0:F.access_key_secret,bucket:ne==null||((W=ne.data)===null||W===void 0)?void 0:W.bucket,stsToken:ne==null||((K=ne.data)===null||K===void 0)?void 0:K.security_token}),xe.abrupt("return",new Promise(function(Oe,ce){console.log(11111,"".concat(B,"/").concat(k),"".concat(B,"/").concat(G),ne.data),fe.copy("/".concat(B,"/").concat(k),"/".concat(B,"/").concat(G)).then(function(be){console.log("\u62F7\u8D1D\u6210\u529F",be)}).catch(function(be){console.log(be)})}));case 7:case"end":return xe.stop()}},T)}));return function(I){return m.apply(this,arguments)}}(),E=function(){var m=Object(f.a)(u.a.mark(function T(I,D,N){var z,F,W,K,B,k,G,ne,fe,de;return u.a.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return D.file_name=I.name,Oe.next=3,Object(n.a)("/api/buckets/get_upload_token.json",{method:"get"});case 3:return G=Oe.sent,console.log("decrypt(res.data):",v(G.data)),G.data=JSON.parse(v(G.data)),ne=I.name.split("."),ne.pop(),fe=D.realFileName?ne:Object(l.a)(),de=new O.a({endpoint:G==null||((z=G.data)===null||z===void 0)?void 0:z.end_point,region:G==null||((F=G.data)===null||F===void 0)?void 0:F.region,accessKeyId:G==null||((W=G.data)===null||W===void 0)?void 0:W.access_key_id,accessKeySecret:G==null||((K=G.data)===null||K===void 0)?void 0:K.access_key_secret,bucket:G==null||((B=G.data)===null||B===void 0)?void 0:B.bucket,stsToken:G==null||((k=G.data)===null||k===void 0)?void 0:k.security_token}),Oe.abrupt("return",new Promise(function(ce,be){var ve;de.multipartUpload("".concat(fe),new Blob([I],{type:I.type}),Object(w.a)(Object(w.a)({timeout:200*1e3,partSize:102400},N),{},{callback:{url:G==null||((ve=G.data)===null||ve===void 0)?void 0:ve.callback_url,host:G==null?void 0:G.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+Object(n.e)(D)}})).then(function(ue){var se;I.response=(se=ue.data)===null||se===void 0?void 0:se.data,ce(ue==null?void 0:ue.data)}).catch(function(ue){be(ue),console.log("err:",ue)})}));case 11:case"end":return Oe.stop()}},T)}));return function(I,D,N){return m.apply(this,arguments)}}(),C=function(T){var I=T.user,D=T.cancelUpload,N=Object(x.a)(T,["user","cancelUpload"]),z=Object(t.useState)([]),F=Object(y.a)(z,2),W=F[0],K=F[1],B=Object(t.useState)(),k=Object(y.a)(B,2),G=k[0],ne=k[1],fe={onRemove:function(Oe){K(Object(b.a)(W.filter(function(ce){return ce.name!==Oe.name}))),N.onChange(W.filter(function(ce){return ce.name!==Oe.name}))},disabled:N.disabled,multiple:!0,fileList:W==null?void 0:W.map(function(xe){return xe.file}),customRequest:function(){},beforeUpload:function(){var xe=Object(f.a)(u.a.mark(function ce(be){var ve;return u.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:if(ve=N.maxSize||1024*1024*1024*1,!W.filter(function(q){return q.name===be.name}).length){se.next=4;break}return A.b.info("".concat(be.name,"\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9")),se.abrupt("return");case 4:if(!((be==null?void 0:be.size)>ve)){se.next=7;break}return A.b.info("\u6587\u4EF6\u8D85\u8FC7".concat(ve/1024/1024/1024,"GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42")),se.abrupt("return",!1);case 7:return W.push({name:be.name,file:be}),K(Object(b.a)(W)),N.onChange(W),se.abrupt("return",!1);case 11:case"end":return se.stop()}},ce)}));function Oe(ce){return xe.apply(this,arguments)}return Oe}()},de=function(){var xe=Object(f.a)(u.a.mark(function Oe(ce,be){var ve,ue,se,q,me,re,ie,we,le,$;return u.a.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return be.file_name=ce.name,ie=ce.name,te.next=4,Object(n.a)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});case 4:if(we=te.sent,we.data=JSON.parse(v(we.data)),!((we==null?void 0:we.status)!==0)){te.next=12;break}return W[W.findIndex(function(De){return De.name===ie})].status="error",W[W.findIndex(function(De){return De.name===ie})].file.status="error",N.onChange(W),A.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),te.abrupt("return");case 12:return G=new O.a({endpoint:we==null||((ve=we.data)===null||ve===void 0)?void 0:ve.end_point,region:we==null||((ue=we.data)===null||ue===void 0)?void 0:ue.region,accessKeyId:we==null||((se=we.data)===null||se===void 0)?void 0:se.access_key_id,accessKeySecret:we==null||((q=we.data)===null||q===void 0)?void 0:q.access_key_secret,bucket:we==null||((me=we.data)===null||me===void 0)?void 0:me.bucket,stsToken:we==null||((re=we.data)===null||re===void 0)?void 0:re.security_token}),console.log(ce,"file"),ne(G),le=ce.name.split("."),le.pop(),$=be.realFileName?le:Object(l.a)(),te.abrupt("return",new Promise(function(De,Te){try{var ke;G.multipartUpload("".concat(N.identifier,"/").concat($).concat(ie.indexOf(".")>-1?"."+ie.split(".").pop():""),new Blob([ce.file],{type:ce.file.type}),{timeout:3600*1e3,partSize:1002400,progress:function(ot,gt,Et){try{console.log("\u8FDB\u5EA6",ot,gt,Et);var xt=W.findIndex(function(St){return St.name===ie});W[xt].file.percent=ot*100,W[xt].tempCheckpoint=gt,K(Object(b.a)(W))}catch(St){}},checkpoint:W[W.findIndex(function(tt){return tt.name===ie})].tempCheckpoint,callback:{customValue:{id:ie+""},url:we==null||((ke=we.data)===null||ke===void 0)?void 0:ke.callback_url,host:we==null?void 0:we.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+Object(n.e)(be)}}).then(function(tt){var ot,gt=W.findIndex(function(Ue){return Ue.name===ie}),Et="done";if(((ot=tt.data)===null||ot===void 0?void 0:ot.status)===0){var xt;ce.response=(xt=tt.data)===null||xt===void 0?void 0:xt.data;var St=W.findIndex(function(Ue){return Ue.name===ie});W[St].status="done",W[St].file.status="done"}else{var Je;A.b.warn((Je=tt.data)===null||Je===void 0?void 0:Je.message),Et="error"}W[gt].status=Et,W[gt].file.status=Et,N.onChange(W),De(tt==null?void 0:tt.data)}).catch(function(tt){W[W.findIndex(function(ot){return ot.name===ie})].status="error",W[W.findIndex(function(ot){return ot.name===ie})].file.status="error",A.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),K(Object(b.a)(W)),N.onChange(W),Te(tt),console.log("err:",tt)})}catch(tt){}}));case 19:case"end":return te.stop()}},Oe)}));return function(ce,be){return xe.apply(this,arguments)}}();return Object(t.useEffect)(function(){W.every(function(xe){return xe==="done"||xe==="error"})&&N.onComplete(W)},[W]),Object(t.useEffect)(function(){if(D){var xe;(xe=G)===null||xe===void 0||xe.cancel()}},[D]),Object(t.useEffect)(function(){N.uploading&&W.map(function(){var xe=Object(f.a)(u.a.mark(function Oe(ce){var be,ve;return u.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:if(!((!ce.status||ce.status==="error")&&!D)){se.next=6;break}return ce.status="uploading",ce.file.status="uploading",se.next=5,de(ce,{login:I==null||((be=I.userInfo)===null||be===void 0)?void 0:be.login,container_type:N.container_type,container_id:N.container_id,description:N.description,realFileName:N.realFileName});case 5:ve=se.sent;case 6:case"end":return se.stop()}},Oe)}));return function(Oe){return xe.apply(this,arguments)}}())},[N.uploading]),a.a.createElement(S,Object(L.a)({},fe,{height:N.height,className:N.className}),a.a.createElement("p",{className:"ant-upload-hint"},N.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};Y.b=Object(s.a)(function(m){var T=m.loading,I=m.globalSetting,D=m.user;return{globalSetting:I,loading:T.models.competitions,user:D}})(C)},KmYQ:function(M,Y,o){(function(L,g,A){M.exports=Y=g(o("Ib8C"),o("OLod"))})(this,function(L){return L.pad.ZeroPadding={pad:function(g,A){var b=A*4;g.clamp(),g.sigBytes+=b-(g.sigBytes%b||b)},unpad:function(g){for(var A=g.words,b=g.sigBytes-1,b=g.sigBytes-1;b>=0;b--)if(A[b>>>2]>>>24-b%4*8&255){g.sigBytes=b+1;break}}},L.pad.ZeroPadding})},"L+Ii":function(M,Y,o){M.exports={wrap:"wrap___3xyR8",labelWrap:"labelWrap___1IxCy",label:"label___22JJP",labelContent:"labelContent___3L5_8",flexRow:"flexRow___15gwv",color999:"color999___i4XxJ",radio:"radio___2Vrn9",selectSchool:"selectSchool___20PAH",dataPicker:"dataPicker___3ZrBg",modal:"modal___3_BbV",colorOrange:"colorOrange___3BuSt",colorYellow:"colorYellow___brbb2"}},LSTS:function(M,Y,o){"use strict";Object.defineProperty(Y,"__esModule",{value:!0});var L=function(){function u(t,a){for(var n=0;n<a.length;n++){var i=a[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,a,n){return a&&u(t.prototype,a),n&&u(t,n),t}}(),g=o("q1tI"),A=x(g),b=o("17x9"),y=x(b);function x(u){return u&&u.__esModule?u:{default:u}}function w(u,t){var a={};for(var n in u){if(t.indexOf(n)>=0)continue;if(!Object.prototype.hasOwnProperty.call(u,n))continue;a[n]=u[n]}return a}function f(u,t){if(!(u instanceof t))throw new TypeError("Cannot call a class as a function")}function _(u,t){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:u}function d(u,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);u.prototype=Object.create(t&&t.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(u,t):u.__proto__=t)}var r=function(u){d(t,u);function t(a){f(this,t);var n=_(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,a));return n.scrollListener=n.scrollListener.bind(n),n.eventListenerOptions=n.eventListenerOptions.bind(n),n.mousewheelListener=n.mousewheelListener.bind(n),n}return L(t,[{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 n=this.getParentElement(this.scrollComponent);n.scrollTop=n.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var n=!1,i={get passive(){n=!0}};try{document.addEventListener("test",null,i),document.removeEventListener("test",null,i)}catch(h){}return n}},{key:"eventListenerOptions",value:function(){var n=this.props.useCapture;return this.isPassiveSupported()&&(n={useCapture:this.props.useCapture,passive:!0}),n}},{key:"setDefaultLoader",value:function(n){this.defaultLoader=n}},{key:"detachMousewheelListener",value:function(){var n=window;this.props.useWindow===!1&&(n=this.scrollComponent.parentNode),n.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var n=window;this.props.useWindow===!1&&(n=this.getParentElement(this.scrollComponent)),n.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),n.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(n){var i=this.props.getScrollParent&&this.props.getScrollParent();return i!=null?i:n&&n.parentNode}},{key:"filterProps",value:function(n){return n}},{key:"attachScrollListener",value:function(){var n=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!n)return;var i=window;this.props.useWindow===!1&&(i=n),i.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),i.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),i.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(n){n.deltaY===1&&!this.isPassiveSupported()&&n.preventDefault()}},{key:"scrollListener",value:function(){var n=this.scrollComponent,i=window,h=this.getParentElement(n),l=void 0;if(this.props.useWindow){var s=document.documentElement||document.body.parentNode||document.body,p=i.pageYOffset!==void 0?i.pageYOffset:s.scrollTop;this.props.isReverse?l=p:l=this.calculateOffset(n,p)}else this.props.isReverse?l=h.scrollTop:l=n.scrollHeight-h.scrollTop-h.clientHeight;l<Number(this.props.threshold)&&n&&n.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=h.scrollHeight,this.beforeScrollTop=h.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(n,i){return n?this.calculateTopPosition(n)+(n.offsetHeight-i-window.innerHeight):0}},{key:"calculateTopPosition",value:function(n){return n?n.offsetTop+this.calculateTopPosition(n.offsetParent):0}},{key:"render",value:function(){var n=this,i=this.filterProps(this.props),h=i.children,l=i.element,s=i.hasMore,p=i.initialLoad,O=i.isReverse,S=i.loader,v=i.loadMore,P=i.pageStart,R=i.ref,E=i.threshold,C=i.useCapture,m=i.useWindow,T=i.getScrollParent,I=w(i,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);I.ref=function(N){n.scrollComponent=N,R&&R(N)};var D=[h];return s&&(S?O?D.unshift(S):D.push(S):this.defaultLoader&&(O?D.unshift(this.defaultLoader):D.push(this.defaultLoader))),A.default.createElement(l,I,D)}}]),t}(g.Component);r.propTypes={children:y.default.node.isRequired,element:y.default.node,hasMore:y.default.bool,initialLoad:y.default.bool,isReverse:y.default.bool,loader:y.default.node,loadMore:y.default.func.isRequired,pageStart:y.default.number,ref:y.default.func,getScrollParent:y.default.func,threshold:y.default.number,useCapture:y.default.bool,useWindow:y.default.bool},r.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},Y.default=r,M.exports=Y.default},Lai7:function(M,Y,o){M.exports=o.p+"static/noEnvData.6108fa6c.png"},LdHM:function(M,Y,o){"use strict";o.d(Y,"b",function(){return p}),o.d(Y,"a",function(){return S});var L=o("1OyB"),g=o("vuIU"),A=o("Ji7U"),b=o("LK+K"),y=o("q1tI"),x=o("rePB"),w=o("Ff2n"),f=o("ODXe"),_=o("4IlW"),d=o("bX4T"),r=o("YrtM"),u=o("TSYQ"),t=o.n(u),a=o("+nKL"),n=o("8OUc"),i=function(G,ne){var fe=G.prefixCls,de=G.id,xe=G.flattenOptions,Oe=G.childrenAsData,ce=G.values,be=G.searchValue,ve=G.multiple,ue=G.defaultActiveFirstOption,se=G.height,q=G.itemHeight,me=G.notFoundContent,re=G.open,ie=G.menuItemSelectedIcon,we=G.virtual,le=G.onSelect,$=G.onToggleOpen,J=G.onActiveValue,te=G.onScroll,De=G.onMouseEnter,Te="".concat(fe,"-item"),ke=Object(r.a)(function(){return xe},[re,xe],function(_t,Qe){return Qe[0]&&_t[1]!==Qe[1]}),tt=y.useRef(null),ot=function(Qe){Qe.preventDefault()},gt=function(Qe){tt.current&&tt.current.scrollTo({index:Qe})},Et=function(Qe){for(var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Ge=ke.length,Ee=0;Ee<Ge;Ee+=1){var Ae=(Qe+Ee*He+Ge)%Ge,Fe=ke[Ae],We=Fe.group,Ke=Fe.data;if(!We&&!Ke.disabled)return Ae}return-1},xt=y.useState(function(){return Et(0)}),St=Object(f.a)(xt,2),Je=St[0],Ue=St[1],ft=function(Qe){Ue(Qe);var He=ke[Qe];if(!He){J(null,-1);return}J(He.data.value,Qe)};y.useEffect(function(){ft(ue!==!1?Et(0):-1)},[ke.length,be]),y.useEffect(function(){var _t=setTimeout(function(){if(!ve&&re&&ce.size===1){var Qe=Array.from(ce)[0],He=ke.findIndex(function(Ge){var Ee=Ge.data;return Ee.value===Qe});ft(He),gt(He)}});return function(){return clearTimeout(_t)}},[re]);var kt=function(Qe){Qe!==void 0&&le(Qe,{selected:!ce.has(Qe)}),ve||$(!1)};if(y.useImperativeHandle(ne,function(){return{onKeyDown:function(Qe){var He=Qe.which;switch(He){case _.a.UP:case _.a.DOWN:{var Ge=0;if(He===_.a.UP?Ge=-1:He===_.a.DOWN&&(Ge=1),Ge!==0){var Ee=Et(Je+Ge,Ge);gt(Ee),ft(Ee)}break}case _.a.ENTER:{var Ae=ke[Je];Ae&&!Ae.data.disabled?kt(Ae.data.value):kt(void 0),re&&Qe.preventDefault();break}case _.a.ESC:$(!1)}},onKeyUp:function(){},scrollTo:function(Qe){gt(Qe)}}}),ke.length===0)return y.createElement("div",{role:"listbox",id:"".concat(de,"_list"),className:"".concat(Te,"-empty"),onMouseDown:ot},me);function ht(_t){var Qe=ke[_t];if(!Qe)return null;var He=Qe.data||{},Ge=He.value,Ee=He.label,Ae=He.children,Fe=Object(d.a)(He,!0),We=Oe?Ae:Ee;return Qe?y.createElement("div",Object.assign({"aria-label":typeof We=="string"?We:null},Fe,{key:_t,role:"option",id:"".concat(de,"_list_").concat(_t),"aria-selected":ce.has(Ge)}),Ge):null}return y.createElement(y.Fragment,null,y.createElement("div",{role:"listbox",id:"".concat(de,"_list"),style:{height:0,width:0,overflow:"hidden"}},ht(Je-1),ht(Je),ht(Je+1)),y.createElement(a.a,{itemKey:"key",ref:tt,data:ke,height:se,itemHeight:q,fullHeight:!1,onMouseDown:ot,onScroll:te,virtual:we,onMouseEnter:De},function(_t,Qe){var He,Ge=_t.group,Ee=_t.groupOption,Ae=_t.data,Fe=Ae.label,We=Ae.key;if(Ge)return y.createElement("div",{className:t()(Te,"".concat(Te,"-group"))},Fe!==void 0?Fe:We);var Ke=Ae.disabled,st=Ae.value,Ot=Ae.title,Bt=Ae.children,an=Ae.style,Kt=Ae.className,bt=Object(w.a)(Ae,["disabled","value","title","children","style","className"]),Be=ce.has(st),at="".concat(Te,"-option"),it=t()(Te,at,Kt,(He={},Object(x.a)(He,"".concat(at,"-grouped"),Ee),Object(x.a)(He,"".concat(at,"-active"),Je===Qe&&!Ke),Object(x.a)(He,"".concat(at,"-disabled"),Ke),Object(x.a)(He,"".concat(at,"-selected"),Be),He)),Me=Oe?Bt:Fe,Ye=!ie||typeof ie=="function"||Be;return y.createElement("div",Object.assign({},bt,{"aria-selected":Be,className:it,title:Ot,onMouseMove:function(){if(Je===Qe||Ke)return;ft(Qe)},onClick:function(){Ke||kt(st)},style:an}),y.createElement("div",{className:"".concat(at,"-content")},Me||st),y.isValidElement(ie)||Be,Ye&&y.createElement(n.a,{className:"".concat(Te,"-option-state"),customizeIcon:ie,customizeIconProps:{isSelected:Be}},Be?"\u2713":null))}))},h=y.forwardRef(i);h.displayName="OptionList";var l=h,s=function(){return null};s.isSelectOption=!0;var p=s,O=function(){return null};O.isSelectOptGroup=!0;var S=O,v=o("VTBJ"),P=o("Zm9Q");function R(k){var G=k.key,ne=k.props,fe=ne.children,de=ne.value,xe=Object(w.a)(ne,["children","value"]);return Object(v.a)({key:G,value:de!==void 0?de:G,children:fe},xe)}function E(k){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(P.a)(k).map(function(ne,fe){if(!y.isValidElement(ne)||!ne.type)return null;var de=ne.type.isSelectOptGroup,xe=ne.key,Oe=ne.props,ce=Oe.children,be=Object(w.a)(Oe,["children"]);return G||!de?R(ne):Object(v.a)(Object(v.a)({key:"__RC_SELECT_GRP__".concat(xe===null?fe:xe,"__"),label:xe},be),{},{options:E(ce)})}).filter(function(ne){return ne})}var C=o("2Qr1"),m=o("qNPg"),T=o("U8pU"),I=o("Kwbf"),D=o("WKfj");function N(k){var G=k.mode,ne=k.options,fe=k.children,de=k.backfill,xe=k.allowClear,Oe=k.placeholder,ce=k.getInputElement,be=k.showSearch,ve=k.onSearch,ue=k.defaultOpen,se=k.autoFocus,q=k.labelInValue,me=k.value,re=k.inputValue,ie=k.optionLabelProp,we=G==="multiple"||G==="tags",le=be!==void 0?be:we||G==="combobox",$=ne||E(fe);if(Object(I.a)(G!=="tags"||$.every(function(Te){return!Te.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),G==="tags"||G==="combobox"){var J=$.some(function(Te){return Te.options?Te.options.some(function(ke){return typeof("value"in ke?ke.value:ke.key)=="number"}):typeof("value"in Te?Te.value:Te.key)=="number"});Object(I.a)(!J,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(I.a)(G!=="combobox"||!ie,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(I.a)(G==="combobox"||!de,"`backfill` only works with `combobox` mode."),Object(I.a)(G==="combobox"||!ce,"`getInputElement` only work with `combobox` mode."),Object(I.b)(G!=="combobox"||!ce||!xe||!Oe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ve&&!le&&G!=="combobox"&&G!=="tags"&&Object(I.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(I.b)(!ue||se,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),me!=null){var te=Object(D.d)(me);Object(I.a)(!q||te.every(function(Te){return Object(T.a)(Te)==="object"&&("key"in Te||"value"in Te)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(I.a)(!we||Array.isArray(me),"`value` should be array when `mode` is `multiple` or `tags`")}if(fe){var De=null;Object(P.a)(fe).some(function(Te){if(!y.isValidElement(Te)||!Te.type)return!1;var ke=Te.type;if(ke.isSelectOption)return!1;if(ke.isSelectOptGroup){var tt=Object(P.a)(Te.props.children).every(function(ot){return!y.isValidElement(ot)||!Te.type||ot.type.isSelectOption?!0:(De=ot.type,!1)});return!tt}return De=ke,!0}),De&&Object(I.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(De.displayName||De.name||De,"`.")),Object(I.a)(re===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var z=N,F=Object(m.a)({prefixCls:"rc-select",components:{optionList:l},convertChildrenToData:E,flattenOptions:C.d,getLabeledValue:C.e,filterOptions:C.b,isValueDisabled:C.g,findValueOption:C.c,warningProps:z,fillOptionsWithMissingValue:C.a}),W=function(k){Object(A.a)(ne,k);var G=Object(b.a)(ne);function ne(){var fe;return Object(L.a)(this,ne),fe=G.apply(this,arguments),fe.selectRef=y.createRef(),fe.focus=function(){fe.selectRef.current.focus()},fe.blur=function(){fe.selectRef.current.blur()},fe}return Object(g.a)(ne,[{key:"render",value:function(){return y.createElement(F,Object.assign({ref:this.selectRef},this.props))}}]),ne}(y.Component);W.Option=p,W.OptGroup=S;var K=W,B=Y.c=K},Lf5v:function(M,Y,o){"use strict";var L=o("5NDa"),g=o("5rEg"),A=o("2qtc"),b=o("kLXV"),y=o("k1fw"),x=o("oBTY"),w=o("9og8"),f=o("miYZ"),_=o("tsqr"),d=o("y8nQ"),r=o("Vl3Y"),u=o("tJVT"),t=o("DZo9"),a=o("8z0m"),n=o("WmNS"),i=o.n(n),h=o("q1tI"),l=o.n(h),s=o("m3rI"),p=o("ErOA"),O=o("sckv"),S=o.n(O),v=o("KhGG"),P=o("1vsH"),R=a.a.Dragger,E=function(m){var T,I=m.dispatch,D=m.id,N=m.onClose,z=m.onOK,F=m.visible,W=m.wrapClassName,K=m.local,B=m.containerId,k=m.rootIdentifier,G=Object(h.useState)({}),ne=Object(u.a)(G,2),fe=ne[0],de=ne[1],xe=Object(h.useState)([]),Oe=Object(u.a)(xe,2),ce=Oe[0],be=Oe[1],ve=Object(h.useState)([]),ue=Object(u.a)(ve,2),se=ue[0],q=ue[1],me=Object(h.useState)(0),re=Object(u.a)(me,2),ie=re[0],we=re[1],le=Object(h.useState)(!1),$=Object(u.a)(le,2),J=$[0],te=$[1],De=Object(h.useState)(!1),Te=Object(u.a)(De,2),ke=Te[0],tt=Te[1],ot=r.a.useForm(),gt=Object(u.a)(ot,1),Et=gt[0],xt=Object(h.useState)([]),St=Object(u.a)(xt,2),Je=St[0],Ue=St[1],ft=Object(h.useRef)([]);Object(h.useEffect)(function(){F&&(Et.resetFields(),Ue([]),q([]),be([]),we(0),tt(!1),te(!1))},[F]);var kt=function(Be){if(Be.file.status==="done"||Be.file.status==="uploading"){var at,it,Me;if(Ue(Be.fileList),!Be.file.response)return;if((at=Be.file.response)!==null&&at!==void 0&&at.id){_.b.success("\u4E0A\u4F20\u6210\u529F\uFF01");return}Ue(Je.filter(function(Ye){return Ye.uid!==Be.file.uid})),((it=Be.file.response)===null||it===void 0?void 0:it.message)&&_.b.info((Me=Be.file.response)===null||Me===void 0?void 0:Me.message)}},ht=function(){var bt=Object(w.a)(i.a.mark(function Be(at){var it,Me,Ye;return i.a.wrap(function(mt){for(;;)switch(mt.prev=mt.next){case 0:if(ie){mt.next=8;break}return Me=Je.filter(function(Pt){return Pt.uid!==at.uid}),Ue(Me),ft.current=Object(x.a)(Me),be(ce.filter(function(Pt){return Pt!==at.name})),_.b.info("\u5220\u9664\u6210\u529F"),Me.length||(Et.setFieldsValue({file:void 0}),Et.validateFields()),mt.abrupt("return");case 8:if(at.response){mt.next=11;break}return _.b.info("\u8FD8\u672A\u4E0A\u4F20\u5B8C\u6210\uFF0C\u65E0\u6CD5\u8FDB\u884C\u5220\u9664\u64CD\u4F5C\uFF01"),mt.abrupt("return");case 11:return mt.next=13,Object(p.a)("/api/shixuns/".concat(D,"/destroy_data_sets.json"),{method:"Delete",body:{id:[at==null||((it=at.response)===null||it===void 0)?void 0:it.id]}});case 13:Ye=mt.sent,Ye.status===0&&(Ue(Je.filter(function(Pt){return Pt.uid!==at.uid})),_.b.info("\u5220\u9664\u6210\u529F"));case 15:case"end":return mt.stop()}},Be)}));return function(at){return bt.apply(this,arguments)}}(),_t=function(Be){if(Je!=null&&Je.some(function(it){return it.name===Be.name}))return _.b.info("".concat(Be.name,"\u6587\u4EF6\u5DF2\u5B58\u5728")),!1;var at={name:Be.name,uid:Be.uid,file:Be,percent:0};return Je.push(at),ft.current=Object(x.a)(Je),Ue(Object(x.a)(Je)),!1},Qe={height:300,multiple:!0,disabled:ie>0,withCredentials:!0,fileList:Je,action:"".concat(s.a.API_SERVER,"/api/attachments.json"),onChange:kt,onRemove:ht,beforeUpload:_t},He=function(Be,at,it,Me,Ye){var ut=new FormData;Object.keys(Be).forEach(function(Pt){ut.append(Pt,Be[Pt])});var mt=new window.XMLHttpRequest;return mt.withCredentials=!0,mt.addEventListener("load",function(Pt){var jt;it(JSON.parse(Pt==null||((jt=Pt.target)===null||jt===void 0)?void 0:jt.response))},!1),mt.addEventListener("error",function(Pt){Ye&&Ye(Pt)},!1),mt.upload.onprogress=function(Pt){Me&&Me(Pt)},mt.open("POST",at),mt.send(ut),mt},Ge=function(Be,at){if(Be.lengthComputable){var it=Math.floor(Be.loaded/Be.total*100),Me=Object(y.a)(Object(y.a)({},at),{},{percent:it,status:it===100?"done":"uploading"});console.log(ft.current,333),ft.current=ft.current.map(function(Ye){return Ye.uid===at.uid?Me:Ye}),Ue(ft.current)}},Ee=function(Be,at){var it=Object(y.a)(Object(y.a)({},at),{},{status:"error"});_.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),ft.current=ft.current.map(function(Me){return Me.uid===at.uid?it:Me}),ft.current.every(function(Me){return Me.status==="done"||Me.status==="error"})&&(tt(!1),we(2)),Ue(ft.current)},Ae=function(Be,at){var it=Object(y.a)(Object(y.a)({},at),{},{status:"done"});if(Be.status===0||(it=Object(y.a)(Object(y.a)({},at),{},{status:"error"}),_.b.error("\u4E0A\u4F20\u5931\u8D25!")),ft.current=ft.current.map(function(Me){return Me.uid===at.uid?it:Me}),ft.current.every(function(Me){return Me.status==="done"})){_.b.success("\u4E0A\u4F20\u5B8C\u6210!"),Ot(!0);return}ft.current.every(function(Me){return Me.status==="done"||Me.status==="error"})&&(tt(!1),we(2)),Ue(ft.current)},Fe=function(){var Be=!0;return window.navigator.onLine==!0?Be=!0:Be=!1,Be},We=function(){var bt=Object(w.a)(i.a.mark(function Be(at){var it,Me,Ye,ut,mt,Pt,jt,et;return i.a.wrap(function(Ht){for(;;)switch(Ht.prev=Ht.next){case 0:if(tt(!0),!(ie===3)){Ht.next=4;break}return we(2),Ht.abrupt("return");case 4:if(!(ie===2||ie===1)){Ht.next=7;break}return Ke(),Ht.abrupt("return");case 7:return it=at||{},Me=it.commitMessage,Ye=Me===void 0?"":Me,ut=it.fileOss,mt=ut===void 0?[]:ut,Pt=K?Je:mt,jt=Pt.map(function(bn){return bn.name}),Ht.next=12,Object(p.a)("/api/shixuns/".concat(D,"/check_data_sets"),{method:"post",body:{files_name:jt}});case 12:if(et=Ht.sent,!(et.status===-3)){Ht.next=17;break}return be(et==null?void 0:et.exist_files),tt(!1),Ht.abrupt("return");case 17:if(!(JSON.stringify(et)==="{}")){Ht.next=21;break}return tt(!1),_.b.error("\u7F51\u7EDC\u5DF2\u65AD\u5F00,\u8BF7\u7A0D\u540E\u91CD\u8BD5!"),Ht.abrupt("return");case 21:et.status===0&&(Je.forEach(function(bn){var Cn=He({file:bn.file,description:Ye},"".concat(s.a.API_SERVER,"/api/shixuns/").concat(D,"/upload_data_sets.json"),function(Yn){return Ae(Yn,bn)},function(Yn){return Ge(Yn,bn)},function(Yn){return Ee(Yn,bn)});se.push(Cn)}),we(1));case 22:case"end":return Ht.stop()}},Be)}));return function(at){return bt.apply(this,arguments)}}(),Ke=function(){var Be=Object(y.a)({},Et.getFieldsValue())||{},at=Be.commitMessage,it=at===void 0?"":at,Me=ft.current.filter(function(ut){return ut.status==="error"}),Ye=ft.current.map(function(ut){return Object(y.a)(Object(y.a)({},ut),{},{status:ut.status==="error"?"uploading":ut.status})});Ue(Ye),Me.forEach(function(ut){var mt=He({file:ut.file,description:it},"".concat(s.a.API_SERVER,"/api/shixuns/").concat(D,"/upload_data_sets.json"),function(Pt){return Ae(Pt,ut)},function(Pt){return Ge(Pt,ut)},function(Pt){return Ee(Pt,ut)});se.push(mt)})},st=function(Be){if(console.log(Be,"changedValues"),"fileOss"in Be){var at,it;if(Be!=null&&Be.fileOss.every(function(Me){return Me.status==="done"})&&Be!==null&&Be!==void 0&&(at=Be.fileOss)!==null&&at!==void 0&&at.length){_.b.success("\u4E0A\u4F20\u5B8C\u6210!"),Ot(!0);return}if(Be!=null&&Be.fileOss.every(function(Me){return Me.status==="done"||Me.status==="error"})&&Be!==null&&Be!==void 0&&(it=Be.fileOss)!==null&&it!==void 0&&it.length){we(3),tt(!1);return}be(ce.filter(function(Me){var Ye;return Be==null||((Ye=Be.fileOss)===null||Ye===void 0)?void 0:Ye.some(function(ut){return ut.name===Me})}))}de(Object(y.a)({},Et.getFieldsValue()))},Ot=function(Be){Be||(te(!0),se.forEach(function(at){at.abort()})),z(),N()},Bt=function(){var Be=Object(y.a)({},Et.getFieldsValue())||{},at=Be.fileOss,it=at===void 0?[]:at,Me=Je==null?void 0:Je.every(function(ut){return ut.status==="done"}),Ye=it==null?void 0:it.every(function(ut){return ut.status==="done"});if(!Me||!Ye){b.a.confirm({title:"\u5173\u95ED\u5F39\u6846\u63D0\u793A",content:"\u6709\u6587\u4EF6\u672A\u4E0A\u4F20,\u662F\u5426\u786E\u5B9A\u79BB\u5F00\uFF1F",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){Ot()}});return}Ot()},an=function(){return l.a.createElement(l.a.Fragment,null,l.a.createElement("div",null,l.a.createElement("i",{className:"iconfont icon-shangchuan font50 ".concat(S.a.colorBlue)})),l.a.createElement("div",{className:"font14 mt30"},"\u62D6\u62FD\u6587\u4EF6\u6216",l.a.createElement("span",{className:"".concat(S.a.colorBlue," ml5")},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))},Kt=function(Be){console.log(Be,444)};return l.a.createElement(b.a,{visible:F,wrapClassName:W,onOk:function(){Object(P.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u4E0A\u4F20\u6587\u4EF6"]),Et.submit()},centered:!0,okText:ie===0?"\u786E\u5B9A":ie===1?"\u4E0A\u4F20\u4E2D":"\u91CD\u65B0\u4E0A\u4F20",okButtonProps:{loading:ke},onCancel:Bt,width:"1000px",title:"\u4E0A\u4F20\u6587\u4EF6"},l.a.createElement("div",{className:S.a.wrap},l.a.createElement(r.a,{className:"mt10",form:Et,scrollToFirstError:!0,layout:"vertical",onFinish:We,onValuesChange:st},K?l.a.createElement(r.a.Item,{label:l.a.createElement("div",null,"\u9009\u62E9\u6587\u4EF6 ",l.a.createElement("span",{style:{visibility:"hidden"},className:"c-light-black"},"(\u5355\u4E2A\u6587\u4EF6\u4E0D\u8D85\u8FC7500M)")),name:"file",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6"}]},l.a.createElement(R,Qe," ",an())):l.a.createElement(r.a.Item,{label:l.a.createElement("div",null,"\u9009\u62E9\u6587\u4EF6 ",l.a.createElement("span",{className:"c-light-black"},"(\u5355\u4E2A\u6587\u4EF6\u4E0D\u8D85\u8FC7100GB)")),name:"fileOss",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6"}]},l.a.createElement(v.b,{identifier:k,cancelUpload:J,container_type:"Shixun",container_id:B,uploading:ie<3?ie:0,disabled:ie>0,height:300,maxSize:100*1024*1024*1024,description:fe.commitMessage||"",text:an(),onComplete:Kt,realFileName:!0})),!!ce.length&&l.a.createElement("span",{className:S.a.repeatedName},ce.join("\u3001"),"\u5DF2\u5B58\u5728,\u8BF7\u5220\u9664\u540E\u518D\u4E0A\u4F20"),l.a.createElement(r.a.Item,{name:"commitMessage",label:"\u5907\u6CE8:",rules:[{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},l.a.createElement(g.a,{bordered:!1,disabled:ie>0,maxLength:100,suffix:"".concat(((T=fe.commitMessage)===null||T===void 0?void 0:T.length)||0,"/100"),placeholder:"\u8BF7\u586B\u5199\u5907\u6CE8\u4FE1\u606F"})))))};Y.a=E},LicW:function(M,Y,o){"use strict";var L=o("T2oS"),g=o("W9HT"),A=o("5Dmo"),b=o("3S7+"),y=o("q1tI"),x=o.n(y),w=o("ZJlW"),f=o.n(w),_=o("m3rI"),d=o("TSYQ"),r=o.n(d),u=o("1vsH"),t=o("z4EP"),a=o.n(t),n=o("+GGh"),i=o.n(n),h=o("cFMs"),l=o.n(h),s=o("BdwD"),p=function(S){var v=S.className,P=S.dataSource,R=P===void 0?[]:P,E=S.col,C=E===void 0?4:E,m=S.right,T=S.bottom,I=T===void 0?23:T,D=S.precision,N=D===void 0?0:D,z=S.wrapWidth,F=z===void 0?1200:z,W=S.trackEventItems,K=S.loading;debugger;var B=Math.floor((F-(C-1)*m)/C);return x.a.createElement(g.a,{spinning:K},x.a.createElement("div",{className:r()(f.a.list,v)},!!R.length&&R.map(function(k,G){var ne=k.name,fe=k.id,de=k.identifier,xe=k.featured,Oe=k.school_name,ce=k.image_url,be=k.excellent;return x.a.createElement("div",{key:fe,className:f.a.wrap,style:{width:B,marginRight:(1+G)%C===0?0:m+N,marginBottom:I}},x.a.createElement("a",{target:"_blank",href:"/paths/".concat(de),className:f.a.li,onClick:function(ue){ue.preventDefault(),W&&Object(u.cb)([W]),Object(u.S)("/paths/".concat(de))}},x.a.createElement("div",{className:f.a.img},x.a.createElement("img",{className:f.a.cover,src:"".concat(_.a.IMG_SERVER,"/").concat(ce)}),xe===1&&x.a.createElement("img",{className:f.a.sign,src:a.a}),xe===2&&x.a.createElement("img",{className:f.a.sign,src:""}),xe===3&&x.a.createElement("img",{className:f.a.sign,src:i.a}),xe===4&&x.a.createElement("img",{className:f.a.sign,src:""}),xe===5&&x.a.createElement("img",{className:f.a.sign,src:l.a})),x.a.createElement("div",{className:f.a.name},x.a.createElement(b.a,{title:ne},x.a.createElement("span",{className:f.a.e},ne))),x.a.createElement(b.a,{title:"\u53D1\u5E03\u5355\u4F4D\uFF1A".concat(Oe)},x.a.createElement("div",{className:f.a.unit},x.a.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Oe)),x.a.createElement("div",{className:f.a.tags},x.a.createElement(b.a,{placement:"bottom",title:"\u7AE0\u8282\u6570"},x.a.createElement("span",null,x.a.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),x.a.createElement("span",null,k.stages_count))),x.a.createElement(b.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},x.a.createElement("span",null,x.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),x.a.createElement("span",null,k.members_count))),be&&x.a.createElement("div",{className:f.a.tag},"\u5F00\u653E\u8BFE\u7A0B"))))}),!R.length&&x.a.createElement(s.a,null)))};Y.a=p},M8RZ:function(M,Y,o){"use strict";o.d(Y,"a",function(){return _});var L=o("fWQN"),g=o("mtLc"),A=o("yKVA"),b=o("879j"),y=o("q1tI"),x=o.n(y),w=o("i8i4"),f=o.n(w),_=function(d){Object(A.a)(u,d);var r=Object(b.a)(u);function u(t){var a;Object(L.a)(this,u),a=r.call(this,t);var n=window.document;return a.node=n.createElement("div"),n.body.appendChild(a.node),a}return Object(g.a)(u,[{key:"render",value:function(){var a=this.props.children;return Object(w.createPortal)(a,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),u}(x.a.Component)},MEgm:function(M,Y){M.exports="data:image/png;base64,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"},MlIO:function(M,Y,o){(function(L,g){M.exports=Y=g(o("Ib8C"))})(this,function(L){return function(g){var A=L,b=A.lib,y=b.Base,x=b.WordArray,w=A.x64={},f=w.Word=y.extend({init:function(d,r){this.high=d,this.low=r}}),_=w.WordArray=y.extend({init:function(d,r){d=this.words=d||[],r!=g?this.sigBytes=r:this.sigBytes=d.length*8},toX32:function(){for(var d=this.words,r=d.length,u=[],t=0;t<r;t++){var a=d[t];u.push(a.high),u.push(a.low)}return x.create(u,this.sigBytes)},clone:function(){for(var d=y.clone.call(this),r=d.words=this.words.slice(0),u=r.length,t=0;t<u;t++)r[t]=r[t].clone();return d}})}(),L})},N3QO:function(M,Y,o){"use strict";var L=o("2qtc"),g=o("kLXV"),A=o("tJVT"),b=o("q1tI"),y=o.n(b),x=o("9kvl"),w=o("FPkq"),f=o.n(w),_=function(r){var u,t=r.newShixuns,a=r.dispatch,n=r.user,i=Object(b.useState)(!1),h=Object(A.a)(i,2),l=h[0],s=h[1];Object(b.useEffect)(function(){t.actionTabs.key==="Create-Environment"&&O()},[t==null||((u=t.actionTabs)===null||u===void 0)?void 0:u.key]);var p=function(){a({type:"newShixuns/setActionTabs",payload:{}})},O=function(){var v,P,R;p(),((v=n.userInfo)===null||v===void 0?void 0:v.mirror_marker_status)===0?s(!0):((P=n.userInfo)===null||P===void 0?void 0:P.mirror_marker_status)===1?x.d.push("/shixuns/new/CreateImg"):((R=n.userInfo)===null||R===void 0?void 0:R.mirror_marker_status)===2&&g.a.confirm({title:"\u60A8\u4ECA\u65E5\u5DF2\u8FBE\u5230\u7533\u8BF7\u4E0A\u9650\uFF0C\u662F\u5426\u8DF3\u8F6C\u81F3\u4E91\u4E3B\u673A\u5217\u8868\uFF1F",content:"\u63D0\u793A\uFF1A\u6BCF\u5929\u6700\u591A\u5141\u8BB8\u7533\u8BF7\u4E00\u53F0\u4E91\u4E3B\u673A",okText:"\u8DF3\u8F6C",cancelText:"\u53D6\u6D88",onOk:function(){var C;x.d.push("/users/".concat((C=n.userInfo)===null||C===void 0?void 0:C.login,"/experiment-img"))}})};return y.a.createElement(g.a,{title:"\u52A0\u5165qq\u7FA4\u63D0\u793A",visible:l,footer:null,onCancel:function(){s(!1)}},y.a.createElement("div",{style:{textAlign:"center"}},y.a.createElement("br",null),y.a.createElement("img",{width:120,height:120,style:{marginTop:"20px"},src:f.a,alt:"\u4E8C\u7EF4\u7801"})),y.a.createElement("img",null))};Y.a=Object(x.a)(function(d){var r=d.newShixuns,u=d.user,t=d.globalSetting;return{newShixuns:r,globalSetting:t,user:u}})(_)},NFKh:function(M,Y,o){(function(L,g,A){M.exports=Y=g(o("Ib8C"),o("MlIO"),o("F+F2"),o("qM6L"),o("ETIr"),o("wbyO"),o("cv67"),o("3y9D"),o("lPiR"),o("GRuw"),o("1uat"),o("uGsb"),o("5hvy"),o("ELcG"),o("WYAk"),o("e7zE"),o("K3mO"),o("OLod"),o("ALsQ"),o("9OqN"),o("qu8F"),o("S6kV"),o("gb/T"),o("qBft"),o("oRuE"),o("jO9C"),o("KmYQ"),o("uGxW"),o("bQjk"),o("wZgz"),o("pA7S"),o("w7YG"),o("E4JC"),o("PVpz"))})(this,function(L){return L})},NLgs:function(M,Y,o){"use strict";o.d(Y,"e",function(){return p}),o.d(Y,"f",function(){return O}),o.d(Y,"d",function(){return v}),o.d(Y,"c",function(){return P}),o.d(Y,"a",function(){return R}),o.d(Y,"b",function(){return E});var L=o("miYZ"),g=o("tsqr"),A=o("9og8"),b=o("2qtc"),y=o("kLXV"),x=o("WmNS"),w=o.n(x),f=o("q1tI"),_=o.n(f),d=o("9kvl"),r=o("xKgJ"),u=o("1vsH"),t=o("RCxd"),a=o("yTi+"),n=o.n(a),i=o("1ZF9"),h=o.n(i),l=o("NoGO"),s=o.n(l),p=function(m){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!!(O(m)&&S(T))},O=function(m){return Object(r.p)()?!0:(m({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},S=function(){var m,T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,I=Object(d.c)()._store.getState(),D=I.user;return(m=D.userInfo)!==null&&m!==void 0&&m.profile_completed?!0:(y.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:T?"\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(){d.d.push("/account/profile/edit")}}),!1)},v=function(){var m,T=Object(d.c)()._store.getState(),I=T.user;return(m=I.userInfo)!==null&&m!==void 0&&m.professional_certification?!0:(y.a.confirm({title:"\u63D0\u793A",centered:!0,content:_.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(u.S)("/account/certification")}}),!1)},P=function(){return Object(r.a)()?!0:(y.a.warning({centered:!0,width:530,title:"\u63D0\u793A",content:_.a.createElement("div",{className:"tc",style:{marginLeft:-38}},_.a.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),_.a.createElement("img",{src:s.a,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1)},R=function(m,T){return m?!0:(y.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:_.a.createElement("div",null,_.a.createElement("p",null,T||"\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"),_.a.createElement("div",{style:{marginLeft:"110px"}},_.a.createElement("img",{src:h.a,width:200}),_.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(u.S)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},E=function(m){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",I=Object(d.c)()._store.getState(),D=I.shixunsDetail.detail;return(D==null?void 0:D.public)===2||(D==null?void 0:D.public)===1||(D==null?void 0:D.shixun_status)===3?(y.a.info({centered:!0,icon:_.a.createElement(t.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:_.a.createElement("div",{className:"tc",style:{marginLeft:-38}},_.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},_.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(D==null?void 0:D.public)===2?"\u5DF2\u516C\u5F00":(D==null?void 0:D.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",T,"\u3002"),_.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),_.a.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:n.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(D==null?void 0:D.shixun_status)===2?(y.a.confirm({centered:!0,icon:_.a.createElement(t.a,null),title:"\u63D0\u793A",content:_.a.createElement("div",null,_.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",T,"\u3002"),_.a.createElement("br",null),_.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(){y.a.confirm({width:440,centered:!0,icon:_.a.createElement(t.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 z=Object(A.a)(w.a.mark(function W(){var K;return w.a.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return k.next=2,m({type:"shixunsDetail/cancelRelease",payload:{id:D==null?void 0:D.identifier}});case 2:K=k.sent,K.status!==401&&(g.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),m({type:"shixunsDetail/getShixunsDetail",payload:{id:D==null?void 0:D.identifier}}),m({type:"practiceSetting/getCommonData",payload:{id:D==null?void 0:D.identifier}}));case 4:case"end":return k.stop()}},W)}));function F(){return z.apply(this,arguments)}return F}()})}}),!0):!1}},NQs2:function(M,Y,o){M.exports={flex_box_center:"flex_box_center___3K14R",flex_space_between:"flex_space_between___1KE7t",flex_box_vertical_center:"flex_box_vertical_center___3Yslx",flex_box_center_end:"flex_box_center_end___2RmV-",flex_box_column:"flex_box_column___3k3IQ",banner:"banner___3caau",content:"content___fxe_p",btns:"btns___Vv-WB"}},Nf5h:function(M,Y,o){"use strict";o.d(Y,"a",function(){return f}),o.d(Y,"h",function(){return n}),o.d(Y,"l",function(){return s}),o.d(Y,"e",function(){return R}),o.d(Y,"i",function(){return T}),o.d(Y,"j",function(){return ue}),o.d(Y,"c",function(){return se.a}),o.d(Y,"b",function(){return we}),o.d(Y,"g",function(){return te}),o.d(Y,"f",function(){return tt}),o.d(Y,"k",function(){return kt}),o.d(Y,"d",function(){return He});var L=o("q1tI"),g=o.n(L),A=o("NQs2"),b=o.n(A),y=o("ygoZ"),x=o.n(y),w=function(Ee){var Ae=Ee.dataSource,Fe=Ae===void 0?[]:Ae,We=Ee.img,Ke=Ee.imgWidth,st=Ke===void 0?346:Ke,Ot=Ee.title,Bt=Ee.sunTitle,an=Ee.bannerExtraContent;return g.a.createElement("div",{className:b.a.banner},g.a.createElement("div",{className:b.a.content},g.a.createElement("aside",null,g.a.createElement("p",null,g.a.createElement("b",null,Ot),g.a.createElement("span",null,Bt)),Fe.length>0&&g.a.createElement("div",{className:b.a.btns},Fe.map(function(Kt,bt){return g.a.createElement("div",{key:bt,onClick:Kt.click},Kt.name,Kt.sign?g.a.createElement("img",{src:x.a,width:39}):null)})),an),g.a.createElement("img",{style:{marginTop:33,marginRight:38},src:We,width:st})))},f=w,_=o("tJVT"),d=o("6nfa"),r=o.n(d),u=o("TSYQ"),t=o.n(u),a=function(Ee){var Ae=Ee.dataSource,Fe=Ae===void 0?[]:Ae,We=Ee.value,Ke=Ee.onChange,st=Ee.className,Ot=Ee.title,Bt=Ee.titleWidth,an=Bt===void 0?41:Bt,Kt=Ee.style,bt=Kt===void 0?{}:Kt,Be=Ee.fontColor,at=Be===void 0?"#6A7283":Be,it=Object(L.useState)(0),Me=Object(_.a)(it,2),Ye=Me[0],ut=Me[1],mt=Object(L.useState)(!1),Pt=Object(_.a)(mt,2),jt=Pt[0],et=Pt[1],Dt=Object(L.useRef)(null);return Object(L.useEffect)(function(){if(Fe.length!==0){var Ht;(Dt==null||((Ht=Dt.current)===null||Ht===void 0)?void 0:Ht.clientHeight)>92?ut(1):ut(0)}Fe.length===0&&ut(0)},[Fe]),g.a.createElement("div",{className:t()(r.a.row,st),style:bt},g.a.createElement("div",{style:{width:an,marginTop:jt?12:4},className:r.a.title},Ot),g.a.createElement("div",{className:jt?"".concat(r.a.tagsWrap," ").concat(r.a.tagsBorderWrap):r.a.tagsWrap},g.a.createElement("div",{className:r.a.bar,style:Ye>0?{height:Ye===1?92:"auto",overflow:Ye===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},g.a.createElement("div",{className:r.a.name,ref:Dt},Fe==null?void 0:Fe.map(function(Ht){return g.a.createElement("span",{onClick:function(){return Ke(Ht.id)},key:Ht.id,title:Ht.name,style:{color:at},className:We===Ht.id?r.a.active:""},Ht.name)}))),!!Ye&&g.a.createElement(L.Fragment,null,Ye===1?g.a.createElement("div",{onClick:function(){var bn;ut(2),(Dt==null||((bn=Dt.current)===null||bn===void 0)?void 0:bn.clientHeight)>205?et(!0):et(!1)},className:r.a.action},"\u5C55\u5F00",g.a.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):g.a.createElement("div",{onClick:function(){ut(1),et(!1)},className:r.a.action},"\u6536\u8D77",g.a.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},n=a,i=o("cz0n"),h=o.n(i),l=function(Ee){var Ae=Ee.dataSource,Fe=Ae===void 0?[]:Ae,We=Ee.value,Ke=Ee.onChange,st=Ee.className;return g.a.createElement("div",{className:t()(h.a.tabs,st)},Fe.map(function(Ot){return g.a.createElement("span",{onClick:function(){return Ke(Ot.id)},className:We===Ot.id?h.a.active:"",key:Ot.id},Ot.name)}))},s=l,p=o("5NDa"),O=o("5rEg"),S=o("KOXS"),v=o.n(S),P=function(Ee){var Ae,Fe=Ee.dataSource,We=Fe===void 0?[]:Fe,Ke=Ee.value,st=Ee.onChange,Ot=Ee.className,Bt=Ee.style,an=Bt===void 0?{}:Bt,Kt=Ee.placeholder,bt=Object(L.useState)(""),Be=Object(_.a)(bt,2),at=Be[0],it=Be[1],Me=Object(L.useState)(""),Ye=Object(_.a)(Me,2),ut=Ye[0],mt=Ye[1];Object(L.useEffect)(function(){var et;(et=JSON.stringify(Ke))!==null&&et!==void 0&&et.includes("{")?(it(Ke.id),mt(Ke.value)):mt(Ke)},[Ke]);var Pt=function(){st(ut,at||null)},jt=function(Dt){if(Dt===at)return;it(Dt),st(ut,Dt)};return g.a.createElement("div",{className:t()(v.a.input,Ot),style:an},!!We.length&&g.a.createElement("div",{className:v.a.dropdown},g.a.createElement("div",{className:v.a.text},(Ae=We.find(function(et){return et.id===at}))===null||Ae===void 0?void 0:Ae.name,g.a.createElement("i",{className:"iconfont icon-zhankai4"}),g.a.createElement("b",{className:v.a.b1}),g.a.createElement("b",{className:v.a.b2})),g.a.createElement("div",{className:v.a.menu},We.map(function(et,Dt){return g.a.createElement("div",{key:Dt,onClick:function(){return jt(et.id)}},et.name)}))),g.a.createElement(O.a,{onPressEnter:Pt,value:ut,onChange:function(Dt){return mt(Dt.target.value)},bordered:!1,placeholder:Kt}),g.a.createElement("i",{onClick:Pt,className:"iconfont icon-sousuo9 font14 pl10 current"}))},R=P,E=o("f9pc"),C=o.n(E),m=function(Ee){var Ae=Ee.value,Fe=Ee.onChange,We=Ee.className,Ke=Ee.total,st=Ee.pageSize,Ot=Ee.style,Bt=Ot===void 0?{}:Ot,an=Ae<2,Kt=Ae>=Math.ceil(Ke/st);return Ke<=st?g.a.createElement(g.a.Fragment,null):g.a.createElement("div",{className:t()(C.a.quickPager,We),style:Bt},g.a.createElement("div",{onClick:function(){an||Fe(Ae-1,"prev")},className:an?C.a.disabled:""},"\u4E0A\u4E00\u9875"),g.a.createElement("div",{onClick:function(){Kt||Fe(Ae+1,"next")},className:Kt?C.a.disabled:""},"\u4E0B\u4E00\u9875"))},T=m,I=o("T2oS"),D=o("W9HT"),N=o("pC0b"),z=o("GzdX"),F=o("5Dmo"),W=o("3S7+"),K=o("Oe0F"),B=o.n(K),k=o("m3rI"),G=o("1vsH"),ne=o("JAbv"),fe=o.n(ne),de=o("Bq7L"),xe=o.n(de),Oe=o("MEgm"),ce=o.n(Oe),be=o("BdwD"),ve=function(Ee){var Ae=Ee.className,Fe=Ee.dataSource,We=Fe===void 0?[]:Fe,Ke=Ee.col,st=Ke===void 0?4:Ke,Ot=Ee.right,Bt=Ee.bottom,an=Bt===void 0?23:Bt,Kt=Ee.precision,bt=Kt===void 0?0:Kt,Be=Ee.wrapWidth,at=Be===void 0?1200:Be,it=Ee.trackEventItems,Me=Ee.loading,Ye=Math.floor((at-(st-1)*Ot)/st);return g.a.createElement(D.a,{spinning:Me},g.a.createElement("div",{className:t()(B.a.list,Ae)},!!We.length&&We.map(function(ut,mt){var Pt=ut.name,jt=ut.id,et=ut.identifier,Dt=ut.power,Ht=ut.cover_image_id,bn=ut.pic;return g.a.createElement("div",{className:B.a.wrap,key:jt,style:{width:Ye,marginRight:(1+mt)%st===0?0:Ot+bt,marginBottom:an}},g.a.createElement("a",{target:"_blank",href:"/shixuns/".concat(et,"/challenges"),className:B.a.li,onClick:function(Yn){Yn.preventDefault(),it&&Object(G.cb)([it]),Dt&&Object(G.S)("/shixuns/".concat(et,"/challenges"))}},g.a.createElement("div",{className:B.a.img},g.a.createElement("img",{className:B.a.cover,src:Ht?"".concat(k.a.API_SERVER,"/api/attachments/").concat(Ht):"".concat(k.a.IMG_SERVER,"/").concat(bn)}),ut.is_jupyter&&g.a.createElement("img",{className:B.a.sign,src:fe.a}),ut.is_jupyter_lab&&g.a.createElement("img",{className:B.a.sign,src:xe.a}),ut.is_unity_3d&&g.a.createElement("img",{className:B.a.sign,src:ce.a})),g.a.createElement("div",{className:B.a.name},g.a.createElement(W.a,{title:Pt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},g.a.createElement("span",{className:B.a.e},Pt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),g.a.createElement("div",{className:B.a.tags},g.a.createElement(W.a,{placement:"bottom",title:"\u5173\u5361\u6570"},g.a.createElement("span",null,g.a.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr3"}),g.a.createElement("span",null,ut.challenges_count))),!!ut.myshixuns_count&&g.a.createElement(W.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},g.a.createElement("span",null,g.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),g.a.createElement("span",null,ut.myshixuns_count))),g.a.createElement(W.a,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},g.a.createElement("span",null,g.a.createElement("span",null,ut.level))),g.a.createElement("div",{className:B.a.rate},g.a.createElement(z.a,{allowHalf:!0,disabled:!0,defaultValue:ut.score_info}),g.a.createElement("span",null,"\xA0",ut.score_info?"".concat(ut.score_info,"\u5206"):"5\u5206")))),!Dt&&g.a.createElement("div",{className:B.a.lockWrap},g.a.createElement("img",{src:"".concat(k.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),g.a.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!We.length&&g.a.createElement(be.a,null)))},ue=ve,se=o("LicW"),q=o("iL++"),me=o.n(q),re=o("xiVL"),ie=function(Ee){var Ae=Ee.className,Fe=Ee.dataSource,We=Fe===void 0?[]:Fe,Ke=Ee.col,st=Ke===void 0?4:Ke,Ot=Ee.right,Bt=Ee.bottom,an=Bt===void 0?23:Bt,Kt=Ee.precision,bt=Kt===void 0?0:Kt,Be=Ee.wrapWidth,at=Be===void 0?1200:Be,it=Ee.trackEventItems,Me=Ee.loading,Ye=Math.floor((at-(st-1)*Ot)/st);return g.a.createElement(D.a,{spinning:Me},g.a.createElement("div",{className:t()(me.a.list,Ae)},!!We.length&&We.map(function(ut,mt){var Pt=ut.subject_identifier,jt=ut.id,et=ut.identifier,Dt=ut.power,Ht=ut.is_public!=0&&ut.is_public;return g.a.createElement("div",{className:me.a.wrap,key:jt,style:{width:Ye,marginRight:(1+mt)%st===0?0:Ot+bt,marginBottom:an}},g.a.createElement("a",{className:me.a.li,onClick:function(Cn){Cn.preventDefault()}},g.a.createElement("div",{className:me.a.top},g.a.createElement(W.a,{title:ut.name},g.a.createElement("div",{className:me.a.name},ut.name)),g.a.createElement("img",{className:me.a.img,src:k.a.IMG_SERVER+"/images/"+ut.avatar_url}),g.a.createElement("div",{className:me.a.text},ut.creator),Pt&&g.a.createElement("div",{className:me.a.btns},g.a.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),g.a.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Ht&&g.a.createElement("div",{className:me.a.sign},"\u516C\u5F00")),g.a.createElement("div",{className:me.a.bottom},ut.visits>0&&g.a.createElement(W.a,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},g.a.createElement("span",null,g.a.createElement("i",{className:"iconfont icon-liulanyan"}),g.a.createElement("span",null,ut.visits))),ut.course_members_count>0&&g.a.createElement(W.a,{title:"\u6210\u5458",placement:"bottom"},g.a.createElement("span",null,g.a.createElement("i",{className:"iconfont icon-chengyuan"}),ut.course_members_count)),ut.tasks_count>0&&g.a.createElement(W.a,{title:"\u4F5C\u4E1A",placement:"bottom"},g.a.createElement("span",null,g.a.createElement("i",{className:"iconfont icon-zuoye"}),ut.tasks_count)),ut.is_end?g.a.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):g.a.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),g.a.createElement("div",{className:me.a.lockWrap},ut.is_accessible?g.a.createElement(g.a.Fragment,null,Pt&&g.a.createElement("div",{onClick:function(){return Object(G.S)("/paths/".concat(Pt))}},"\u8FDB\u5165\u5B9E\u8DF5\u8BFE\u7A0B"),g.a.createElement("div",{onClick:function(Cn){it&&Object(G.cb)([it]),Object(G.S)(ut.first_category_url)}},"\u8FDB\u5165\u6559\u5B66\u8BFE\u5802")):g.a.createElement(g.a.Fragment,null,g.a.createElement("img",{src:"".concat(k.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),g.a.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165"))))}),!We.length&&g.a.createElement(be.a,null)))},we=ie,le=o("f0W+"),$=o.n(le),J=function(Ee){var Ae=Ee.dataSource,Fe=Ae===void 0?[]:Ae,We=Ee.value,Ke=Ee.onChange,st=Ee.className,Ot=Ee.style,Bt=Ot===void 0?{}:Ot,an=Ee.tabBarExtraContent;return g.a.createElement("div",{className:t()($.a.tabs,st),style:Bt},g.a.createElement("div",{className:$.a.tabsWrap},Fe.map(function(Kt,bt){return g.a.createElement("div",{onClick:function(){return Ke(Kt.id)},className:We===Kt.id?$.a.active:"",key:bt},Kt.name)})),g.a.createElement("div",{className:$.a.tabBar},an))},te=J,De=o("9JIy"),Te=o.n(De),ke=function(Ee){var Ae=Ee.className,Fe=Ee.style,We=Fe===void 0?{}:Fe,Ke=Ee.children;return g.a.createElement("div",{className:t()(Te.a.table,Ae),style:We},Ke)},tt=ke,ot=o("qVdP"),gt=o("jsC+"),Et=o("lUTK"),xt=o("BvKs"),St=o("8WcF"),Je=o.n(St),Ue=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}],ft=function(Ee){var Ae,Fe=Ee.sortValue,We=Ee.dropValue,Ke=Ee.className,st=Ee.onSort,Ot=Ee.onDrop,Bt=Ee.dataSource,an=Bt===void 0?Ue:Bt;return g.a.createElement("div",{className:t()(Je.a.orderWrap,Ke)},g.a.createElement(gt.a,{overlay:g.a.createElement(xt.a,null,an.map(function(Kt,bt){return g.a.createElement(xt.a.Item,{key:bt,onClick:function(){return Ot(Kt.id)}},Kt.name)}))},g.a.createElement("span",{className:Je.a.orderTextWrap},(Ae=an.find(function(Kt){return We===Kt.id}))===null||Ae===void 0?void 0:Ae.name)),g.a.createElement("span",{className:Je.a.orderIconWrap},g.a.createElement("span",{className:Je.a.orderAsc},g.a.createElement("i",{className:Fe==="asc"?"iconfont icon-sanjiaoxing-up font12 ".concat(Je.a.cursorPointer," ").concat(Je.a.active):"iconfont icon-sanjiaoxing-up font12 ".concat(Je.a.cursorPointer),onClick:function(){return st(Fe==="asc"?"desc":"asc")}})),g.a.createElement("span",{className:Je.a.orderDesc},g.a.createElement("i",{className:Fe==="desc"?"iconfont icon-sanjiaoxing-down font12 ".concat(Je.a.cursorPointer," ").concat(Je.a.active):"iconfont icon-sanjiaoxing-down font12 ".concat(Je.a.cursorPointer),onClick:function(){return st(Fe==="asc"?"desc":"asc")}}))))},kt=ft,ht=o("siWv"),_t=o.n(ht),Qe=function(Ee){var Ae=Ee.className,Fe=Ee.style,We=Ee.children,Ke=Ee.onClick;return g.a.createElement("div",{onClick:Ke,className:t()(_t.a.btn,Ae),style:Fe},We)},He=Qe},Nmxd:function(M,Y){M.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+ur34bFRJ8WbdV1VRAowGB5wTagCdFF29BOAxSzAjbkTiWrZWU+oCSJgTScwCV1K8m7rPyfe9acAcgeaVFsIHjXD7ptyYxw/vqq5ZMHcHGOZvaE7OfTvindf97CQ3bRkgorXDodiRUiYDuhYlZAeDe6zKxuTJ1j34awDC8u0XD7hht4RuwkctxvOxlFWyYFJ7jUDnC7UHU1iz7qurxBlmDlrxlb5Pl5z8iC8LIVuHmjoueEtqjvddBwDa6JWHCQlnwyjjAu7wtxjPRK+4Ta7Y6XPskpvDqJLUdoMdTWTJOX9kWs+2bL9pN89U3GTdn3WKKxpvTmRuWglmPpKOtK91IiQ73vvJFL/YCa5UbLaVaDzXXTP2p4tmjvGREYnbruOgrn7MwKvlEg9gvLpG1E2000ntKNh5O82EznQobvkVF9S732LIgus6rg0RHTNCsdYJA7oWB7jLJdlOIxzfUwwbTHY+zSy+ccldAkbtRjimThroCYAzA46bqUl6JmxOh+IH8mbq1K65NXLuIIAnymqAMQbyNRrhtvT0qkQgqe4lRof7RHKdEe6Y9XEe0NVDBLzsnrMwcmbp/rOs8lXPQtzODHhY+/9LEq0aCcV0M22wX21jge5yiwdwGVW+RuPZnGUVM9FkP+NlYesaIFcJ8s+TLM9UQDwY1JYOx6Y3QPLXRpNqPzEiHpJfBOAD8KgHjoJQs3VIh+Kzlj3zDCzp63zEJ8QgCHeXW4AnPsZvGSkbLjR3/DCT5/+3vD7lTkl0bQHRPk9PrVxg5q1GpL3gZkvpLaZU93qW8r/dYhJiw3DTNudbTFMPb1lf5xIpxHEQ7i/XA7XFw/hZSLlmqLn094flLqWZzNzcZikO/JvbrCTkJjub3rYMZJ8YgwJJbSuBK7zRTb3pUGwfCGznTdk3MMm2tG/vIvL7tpJE1G3vlCeMMcYCvTye2TfSvP2qHeFTMY4NTI9Sek8AJFewlCGi7IEPc/JycmWYOUVCJMHitNmYOQF7NjAzmTK8v5Z/N4/biEYI1BN46riNeeTGvEazx21Ao5DmcRs5QHfV6UbQ+3GbvwHH7EQQahyMxwAAAABJRU5ErkJggg=="},NoGO:function(M,Y,o){M.exports=o.p+"static/newqrcode.d852fdfc.png"},NvD2:function(M,Y,o){"use strict";o.d(Y,"a",function(){return x});var L=o("Kwbf");function g(w,f){var _=new Set;return w.forEach(function(d){f.has(d)||_.add(d)}),_}function A(w){var f=w||{},_=f.disabled,d=f.disableCheckbox,r=f.checkable;return!!(_||d)||r===!1}function b(w,f,_,d){for(var r=new Set(w),u=new Set,t=0;t<=_;t+=1){var a=f.get(t)||new Set;a.forEach(function(l){var s=l.key,p=l.node,O=l.children,S=O===void 0?[]:O;r.has(s)&&!d(p)&&S.filter(function(v){return!d(v.node)}).forEach(function(v){r.add(v.key)})})}for(var n=new Set,i=_;i>=0;i-=1){var h=f.get(i)||new Set;h.forEach(function(l){var s=l.parent,p=l.node;if(d(p)||!l.parent||n.has(l.parent.key))return;if(d(l.parent.node)){n.add(s.key);return}var O=!0,S=!1;(s.children||[]).filter(function(v){return!d(v.node)}).forEach(function(v){var P=v.key,R=r.has(P);O&&!R&&(O=!1),!S&&(R||u.has(P))&&(S=!0)}),O&&r.add(s.key),S&&u.add(s.key),n.add(s.key)})}return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(g(u,r))}}function y(w,f,_,d,r){for(var u=new Set(w),t=new Set(f),a=0;a<=d;a+=1){var n=_.get(a)||new Set;n.forEach(function(s){var p=s.key,O=s.node,S=s.children,v=S===void 0?[]:S;!u.has(p)&&!t.has(p)&&!r(O)&&v.filter(function(P){return!r(P.node)}).forEach(function(P){u.delete(P.key)})})}t=new Set;for(var i=new Set,h=d;h>=0;h-=1){var l=_.get(h)||new Set;l.forEach(function(s){var p=s.parent,O=s.node;if(r(O)||!s.parent||i.has(s.parent.key))return;if(r(s.parent.node)){i.add(p.key);return}var S=!0,v=!1;(p.children||[]).filter(function(P){return!r(P.node)}).forEach(function(P){var R=P.key,E=u.has(R);S&&!E&&(S=!1),!v&&(E||t.has(R))&&(v=!0)}),S||u.delete(p.key),v&&t.add(p.key),i.add(p.key)})}return{checkedKeys:Array.from(u),halfCheckedKeys:Array.from(g(t,u))}}function x(w,f,_,d){var r=[],u;d?u=d:u=A;var t=new Set(w.filter(function(h){var l=!!_[h];return l||r.push(h),l})),a=new Map,n=0;Object.keys(_).forEach(function(h){var l=_[h],s=l.level,p=a.get(s);p||(p=new Set,a.set(s,p)),p.add(l),n=Math.max(n,s)}),Object(L.a)(!r.length,"Tree missing follow keys: ".concat(r.slice(0,100).map(function(h){return"'".concat(h,"'")}).join(", ")));var i;return f===!0?i=b(t,a,n,u):i=y(t,f.halfCheckedKeys,a,n,u),i}},OLES:function(M,Y,o){"use strict";var L=o("U8pU"),g=o("VTBJ"),A=o("Ff2n"),b=o("q1tI"),y=o("uciX"),x=o("7ixt"),w=function(t){var a=t.overlay,n=t.prefixCls,i=t.id,h=t.overlayInnerStyle;return b.createElement("div",{className:"".concat(n,"-inner"),id:i,role:"tooltip",style:h},typeof a=="function"?a():a)},f=w,_=function(t,a){var n=t.overlayClassName,i=t.trigger,h=i===void 0?["hover"]:i,l=t.mouseEnterDelay,s=l===void 0?0:l,p=t.mouseLeaveDelay,O=p===void 0?.1:p,S=t.overlayStyle,v=t.prefixCls,P=v===void 0?"rc-tooltip":v,R=t.children,E=t.onVisibleChange,C=t.afterVisibleChange,m=t.transitionName,T=t.animation,I=t.placement,D=I===void 0?"right":I,N=t.align,z=N===void 0?{}:N,F=t.destroyTooltipOnHide,W=F===void 0?!1:F,K=t.defaultVisible,B=t.getTooltipContainer,k=t.overlayInnerStyle,G=Object(A.a)(t,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),ne=Object(b.useRef)(null);Object(b.useImperativeHandle)(a,function(){return ne.current});var fe=Object(g.a)({},G);"visible"in t&&(fe.popupVisible=t.visible);var de=function(){var ve=t.arrowContent,ue=ve===void 0?null:ve,se=t.overlay,q=t.id;return[b.createElement("div",{className:"".concat(P,"-arrow"),key:"arrow"},ue),b.createElement(f,{key:"content",prefixCls:P,id:q,overlay:se,overlayInnerStyle:k})]},xe=!1,Oe=!1;if(typeof W=="boolean")xe=W;else if(W&&Object(L.a)(W)==="object"){var ce=W.keepParent;xe=ce===!0,Oe=ce===!1}return b.createElement(y.a,Object.assign({popupClassName:n,prefixCls:P,popup:de,action:h,builtinPlacements:x.a,popupPlacement:D,ref:ne,popupAlign:z,getPopupContainer:B,onPopupVisibleChange:E,afterPopupVisibleChange:C,popupTransitionName:m,popupAnimation:T,defaultPopupVisible:K,destroyPopupOnHide:xe,autoDestroy:Oe,mouseLeaveDelay:O,popupStyle:S,mouseEnterDelay:s},fe),R)},d=Object(b.forwardRef)(_),r=Y.a=d},OLod:function(M,Y,o){(function(L,g,A){M.exports=Y=g(o("Ib8C"),o("K3mO"))})(this,function(L){L.lib.Cipher||function(g){var A=L,b=A.lib,y=b.Base,x=b.WordArray,w=b.BufferedBlockAlgorithm,f=A.enc,_=f.Utf8,d=f.Base64,r=A.algo,u=r.EvpKDF,t=b.Cipher=w.extend({cfg:y.extend(),createEncryptor:function(m,T){return this.create(this._ENC_XFORM_MODE,m,T)},createDecryptor:function(m,T){return this.create(this._DEC_XFORM_MODE,m,T)},init:function(m,T,I){this.cfg=this.cfg.extend(I),this._xformMode=m,this._key=T,this.reset()},reset:function(){w.reset.call(this),this._doReset()},process:function(m){return this._append(m),this._process()},finalize:function(m){m&&this._append(m);var T=this._doFinalize();return T},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function m(T){return typeof T=="string"?C:P}return function(T){return{encrypt:function(I,D,N){return m(D).encrypt(T,I,D,N)},decrypt:function(I,D,N){return m(D).decrypt(T,I,D,N)}}}}()}),a=b.StreamCipher=t.extend({_doFinalize:function(){var m=this._process(!0);return m},blockSize:1}),n=A.mode={},i=b.BlockCipherMode=y.extend({createEncryptor:function(m,T){return this.Encryptor.create(m,T)},createDecryptor:function(m,T){return this.Decryptor.create(m,T)},init:function(m,T){this._cipher=m,this._iv=T}}),h=n.CBC=function(){var m=i.extend();m.Encryptor=m.extend({processBlock:function(I,D){var N=this._cipher,z=N.blockSize;T.call(this,I,D,z),N.encryptBlock(I,D),this._prevBlock=I.slice(D,D+z)}}),m.Decryptor=m.extend({processBlock:function(I,D){var N=this._cipher,z=N.blockSize,F=I.slice(D,D+z);N.decryptBlock(I,D),T.call(this,I,D,z),this._prevBlock=F}});function T(I,D,N){var z,F=this._iv;F?(z=F,this._iv=g):z=this._prevBlock;for(var W=0;W<N;W++)I[D+W]^=z[W]}return m}(),l=A.pad={},s=l.Pkcs7={pad:function(m,T){for(var I=T*4,D=I-m.sigBytes%I,N=D<<24|D<<16|D<<8|D,z=[],F=0;F<D;F+=4)z.push(N);var W=x.create(z,D);m.concat(W)},unpad:function(m){var T=m.words[m.sigBytes-1>>>2]&255;m.sigBytes-=T}},p=b.BlockCipher=t.extend({cfg:t.cfg.extend({mode:h,padding:s}),reset:function(){var m;t.reset.call(this);var T=this.cfg,I=T.iv,D=T.mode;this._xformMode==this._ENC_XFORM_MODE?m=D.createEncryptor:(m=D.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==m?this._mode.init(this,I&&I.words):(this._mode=m.call(D,this,I&&I.words),this._mode.__creator=m)},_doProcessBlock:function(m,T){this._mode.processBlock(m,T)},_doFinalize:function(){var m,T=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(T.pad(this._data,this.blockSize),m=this._process(!0)):(m=this._process(!0),T.unpad(m)),m},blockSize:128/32}),O=b.CipherParams=y.extend({init:function(m){this.mixIn(m)},toString:function(m){return(m||this.formatter).stringify(this)}}),S=A.format={},v=S.OpenSSL={stringify:function(m){var T,I=m.ciphertext,D=m.salt;return D?T=x.create([1398893684,1701076831]).concat(D).concat(I):T=I,T.toString(d)},parse:function(m){var T,I=d.parse(m),D=I.words;return D[0]==1398893684&&D[1]==1701076831&&(T=x.create(D.slice(2,4)),D.splice(0,4),I.sigBytes-=16),O.create({ciphertext:I,salt:T})}},P=b.SerializableCipher=y.extend({cfg:y.extend({format:v}),encrypt:function(m,T,I,D){D=this.cfg.extend(D);var N=m.createEncryptor(I,D),z=N.finalize(T),F=N.cfg;return O.create({ciphertext:z,key:I,iv:F.iv,algorithm:m,mode:F.mode,padding:F.padding,blockSize:m.blockSize,formatter:D.format})},decrypt:function(m,T,I,D){D=this.cfg.extend(D),T=this._parse(T,D.format);var N=m.createDecryptor(I,D).finalize(T.ciphertext);return N},_parse:function(m,T){return typeof m=="string"?T.parse(m,this):m}}),R=A.kdf={},E=R.OpenSSL={execute:function(m,T,I,D){D||(D=x.random(64/8));var N=u.create({keySize:T+I}).compute(m,D),z=x.create(N.words.slice(T),I*4);return N.sigBytes=T*4,O.create({key:N,iv:z,salt:D})}},C=b.PasswordBasedCipher=P.extend({cfg:P.cfg.extend({kdf:E}),encrypt:function(m,T,I,D){D=this.cfg.extend(D);var N=D.kdf.execute(I,m.keySize,m.ivSize);D.iv=N.iv;var z=P.encrypt.call(this,m,T,N.key,D);return z.mixIn(N),z},decrypt:function(m,T,I,D){D=this.cfg.extend(D),T=this._parse(T,D.format);var N=D.kdf.execute(I,m.keySize,m.ivSize,T.salt);D.iv=N.iv;var z=P.decrypt.call(this,m,T,N.key,D);return z}})}()})},OZM5:function(M,Y,o){"use strict";o.d(Y,"b",function(){return d}),o.d(Y,"a",function(){return r}),o.d(Y,"k",function(){return u}),o.d(Y,"h",function(){return t}),o.d(Y,"i",function(){return a}),o.d(Y,"g",function(){return n}),o.d(Y,"c",function(){return i}),o.d(Y,"d",function(){return h}),o.d(Y,"j",function(){return p}),o.d(Y,"e",function(){return O}),o.d(Y,"f",function(){return S});var L=o("KQm4"),g=o("U8pU"),A=o("Ff2n"),b=o("q1tI"),y=o.n(b),x=o("Kwbf"),w=o("WaYH"),f=.25,_=2;function d(v,P){var R=v.slice(),E=R.indexOf(P);return E>=0&&R.splice(E,1),R}function r(v,P){var R=v.slice();return R.indexOf(P)===-1&&R.push(P),R}function u(v){return v.split("-")}function t(v,P){return"".concat(v,"-").concat(P)}function a(v){return v&&v.type&&v.type.isTreeNode}function n(v,P){var R=[v],E=P[v];function C(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];m.forEach(function(T){var I=T.key,D=T.children;R.push(I),C(D)})}return C(E.children),R}function i(v,P){var R=v.clientY,E=P.selectHandle.getBoundingClientRect(),C=E.top,m=E.bottom,T=E.height,I=Math.max(T*f,_);return R<=C+I?-1:R>=m-I?1:0}function h(v,P){if(!v)return;var R=P.multiple;return R?v.slice():v.length?[v[0]]:v}var l=function(P){return P};function s(v,P){if(!v)return[];var R=P||{},E=R.processProps,C=E===void 0?l:E,m=Array.isArray(v)?v:[v];return m.map(function(T){var I=T.children,D=Object(A.a)(T,["children"]),N=s(I,P);return y.a.createElement(w.a,Object.assign({},C(D)),N)})}function p(v){if(!v)return null;var P;if(Array.isArray(v))P={checkedKeys:v,halfCheckedKeys:void 0};else if(Object(g.a)(v)==="object")P={checkedKeys:v.checked||void 0,halfCheckedKeys:v.halfChecked||void 0};else return Object(x.a)(!1,"`checkedKeys` is not an array or an object"),null;return P}function O(v,P){var R=new Set;function E(C){if(R.has(C))return;var m=P[C];if(!m)return;R.add(C);var T=m.parent,I=m.node;if(I.disabled)return;T&&E(T.key)}return(v||[]).forEach(function(C){E(C)}),Object(L.a)(R)}function S(v){var P={};return Object.keys(v).forEach(function(R){(R.startsWith("data-")||R.startsWith("aria-"))&&(P[R]=v[R])}),P}},Oe0F:function(M,Y,o){M.exports={flex_box_center:"flex_box_center___1lU21",flex_space_between:"flex_space_between___3CfJd",flex_box_vertical_center:"flex_box_vertical_center___20q2h",flex_box_center_end:"flex_box_center_end___1jeZT",flex_box_column:"flex_box_column___2EyZF",list:"list___3Kz8E",wrap:"wrap___12_X7",lockWrap:"lockWrap___9zL4z",li:"li___2bcH1",cover:"cover___1j6mq",img:"img___3itdG",sign:"sign___1Bm21",name:"name___3H1zU",e:"e___1W7k4",tags:"tags___G1tID",rate:"rate___aZiJa"}},Ohmc:function(M,Y,o){M.exports=o.p+"static/certificate.fc32dc1b.jpg"},Ot1p:function(M,Y,o){"use strict";var L=o("2qtc"),g=o("kLXV"),A=o("rAM+"),b=o("miYZ"),y=o("tsqr"),x=o("9og8"),w=o("tJVT"),f=o("jrin"),_=o("WmNS"),d=o.n(_),r=o("q1tI"),u=o.n(r),t=o("VrN/"),a=o.n(t),n=o("bdgK"),i=o("p77/"),h=o("Bd2K"),l=o("ELLl"),s=o("19Vz"),p=o("lZu9"),O=o("+NIl"),S=o("kSUc"),v=o("9Bee"),P=function(Ke){var st=Ke.value,Ot=st===void 0?"":st,Bt=Ke.className,an=Ke.showTextOnly,Kt=Ke.showLines,bt=Ke.style,Be=bt===void 0?{}:bt,at=Object(r.useMemo)(function(){return""},[Ot]);return u.a.createElement(u.a.Fragment,null,u.a.createElement("div",{dangerouslySetInnerHTML:{__html:at}}))},R=o("0Owb"),E=o("dejd"),C=o("C+DQ"),m=o("1vsH"),T=o("m3rI"),I=[{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 D(Ke){var st=Ke.onActionCallback,Ot=Ke.title,Bt=Ke.icon,an=Ke.actionName,Kt=Ke.className,bt=Kt===void 0?"":Kt,Be=Ke.children;function at(){st(an)}return u.a.createElement("a",{title:Ot,className:bt,onClick:at},u.a.createElement("i",{className:"md-iconfont ".concat(Bt)}),Be)}var N=function(Ke){var st=Ke.watch,Ot=Ke.showNullButton,Bt=Ke.onActionCallback,an=Ke.fullScreen,Kt=Ke.insertTemp,bt=Ke.hidetoolBar,Be=Ke.uuid,at=Ke.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(m.F)("_educoder_session_login"),"&_educoder_session=").concat(Object(m.F)("_educoder_session"),"&key=").concat(Be,"&api=").concat(encodeURIComponent(T.a.PROXY_SERVER)));var it=[].concat(I,[{title:"".concat(st?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(st?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return u.a.createElement("ul",{className:"markdown-toolbar-container"},!bt&&it.map(function(Me,Ye){return u.a.createElement("li",{key:Ye},Me.actionName?u.a.createElement(D,Object(R.a)({},Me,{onActionCallback:Bt})):u.a.createElement("span",{className:"v-line"}))}),Ot?u.a.createElement("li",null,u.a.createElement(D,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Bt},u.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Kt&&u.a.createElement("li",null,u.a.createElement(D,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(Kt),onActionCallback:Bt},u.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),u.a.createElement("li",{className:"btn-full-screen"},u.a.createElement(D,{icon:"".concat(an?"icon-shrink":"icon-enlarge"),title:an?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Bt})))},z=o("M8RZ"),F=o("+L6B"),W=o("2/Rp"),K=o("y8nQ"),B=o("Vl3Y"),k=o("5NDa"),G=o("5rEg"),ne={labelCol:{span:4},wrapperCol:{span:20}},fe=function(Ke){var st=Ke.callback,Ot=Ke.onCancel;function Bt(an){st(an)}return u.a.createElement(B.a,Object(R.a)({},ne,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Bt}),u.a.createElement(B.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},u.a.createElement(G.a,null)),u.a.createElement(B.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},u.a.createElement(G.a,null)),u.a.createElement("div",{className:"flex-container flex-end"},u.a.createElement(W.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),u.a.createElement(W.a,{type:"ghost",onClick:Ot},"\u53D6\u6D88")))},de=o("7ahc"),xe=o("HmJG"),Oe=o("BjJ7"),ce=B.a.useForm,be={width:280,marginRight:10},ve={labelCol:{span:5},wrapperCol:{span:19}},ue=function(Ke){var st=Ke.callback,Ot=Ke.onCancel,Bt=ce(),an=Object(w.a)(Bt,1),Kt=an[0];function bt(it){st(it)}function Be(it,Me){if(it.status===-1){y.b.error(it.message);return}Kt.setFieldsValue({src:"/api/attachments/".concat(it.id),type:Me.type})}function at(it){var Me=it.target.files[0];q(Me,Be)}return u.a.createElement(B.a,Object(R.a)({form:Kt},ve,{className:"upload-image-panel",onFinish:bt}),u.a.createElement(B.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},u.a.createElement("div",{className:"flex-container"},u.a.createElement(B.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},u.a.createElement(G.a,{style:be})),u.a.createElement(se,{onFileChange:at}))),u.a.createElement(B.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},u.a.createElement(G.a,{style:{width:264}})),u.a.createElement(B.a.Item,{style:{textAlign:"right"}},u.a.createElement(W.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),u.a.createElement(W.a,{type:"ghost",onClick:Ot},"\u53D6\u6D88")))};function se(Ke){var st=Ke.onFileChange;return u.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",u.a.createElement("input",{type:"file",onChange:st}))}function q(Ke,st){if(!Ke)throw new String("\u6CA1\u6709\u6587\u4EF6");var Ot=new FormData;Ot.append("editormd-image-file",Ke),Ot.append("file_param_name","editormd-image-file"),Ot.append("byxhr","true");var Bt=new window.XMLHttpRequest;Bt.withCredentials=!0,Bt.addEventListener("load",function(an){st(JSON.parse(an.target.responseText),Ke)},!1),Bt.addEventListener("error",function(an){console.error(an)},!1),Bt.open("POST","".concat(Oe.a,"/api/attachments.json")),Bt.send(Ot)}var me=o("giR+"),re=o("fyUT"),ie=o("7Kak"),we=o("9yH6"),le=we.a.Group,$={margin:"0 8px"},J=function(Ke){var st=Ke.callback,Ot=Ke.onCancel;function Bt(an){st(an)}return u.a.createElement(B.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Bt},u.a.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},u.a.createElement("span",{style:$},"\u5355\u5143\u683C\u6570\uFF1A"),u.a.createElement("span",{style:$},"\u884C\u6570"),u.a.createElement(B.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},u.a.createElement(re.a,null)),u.a.createElement("span",{style:$},"\u5217\u6570"),u.a.createElement(B.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},u.a.createElement(re.a,null))),u.a.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},u.a.createElement("span",{style:$},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),u.a.createElement(B.a.Item,{name:"align"},u.a.createElement(le,null,u.a.createElement(we.a,{value:"default"},u.a.createElement("i",{className:"fa fa-align-justify"})),u.a.createElement(we.a,{value:"left"},u.a.createElement("i",{className:"fa fa-align-left"})),u.a.createElement(we.a,{value:"center"},u.a.createElement("i",{className:"fa fa-align-center"})),u.a.createElement(we.a,{value:"right"},u.a.createElement("i",{className:"fa fa-align-right"}))))),u.a.createElement("div",{className:"flex-container flex-end"},u.a.createElement(W.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),u.a.createElement(W.a,{type:"ghost",onClick:Ot},"\u53D6\u6D88")))},te=o("ErOA"),De=o("7Cbv"),Te="link",ke="upload-image",tt="code-block",ot="add-table",gt="------------",Et={default:gt,left:":".concat(gt),center:":".concat(gt,":"),right:"".concat(gt,":")},xt=o("9VGf"),St,Je;function Ue(){}var ft=0,kt=1e4,ht="\u2581",_t=`
**\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 Qe(Ke){return/^\d+$/.test(Ke)?"".concat(Ke,"px"):Ke}var He=navigator.platform.toUpperCase().indexOf("MAC")>=0,Ge=He?"Cmd":"Ctrl",Ee=["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"],Ae=(St={},Object(f.a)(St,Ge+"-B","bold"),Object(f.a)(St,Ge+"-I","italic"),St),Fe=(Je={},Object(f.a)(Je,Te,"\u6DFB\u52A0\u94FE\u63A5"),Object(f.a)(Je,tt,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(f.a)(Je,ke,"\u6DFB\u52A0\u6587\u4EF6"),Object(f.a)(Je,ot,"\u6DFB\u52A0\u8868\u683C"),Je),We=Y.a=function(Ke){var st=Ke.defaultValue,Ot=st===void 0?"":st,Bt=Ke.onChange,an=Ke.width,Kt=an===void 0?"100%":an,bt=Ke.height,Be=bt===void 0?400:bt,at=Ke.miniToolbar,it=at===void 0?!1:at,Me=Ke.isFocus,Ye=Me===void 0?!1:Me,ut=Ke.watch,mt=Ke.insertTemp,Pt=Ke.mode,jt=Pt===void 0?"markdown":Pt,et=Ke.id,Dt=et===void 0?"markdown-editor-id":et,Ht=Ke.showResizeBar,bn=Ht===void 0?!1:Ht,Cn=Ke.noStorage,Yn=Cn===void 0?!1:Cn,qn=Ke.showNullButton,Pn=qn===void 0?!1:qn,cn=Ke.hidetoolBar,xr=cn===void 0?!1:cn,wr=Ke.fullScreen,Rr=wr===void 0?!1:wr,cr=Ke.onBlur,Ur=Ke.onCMBeforeChange,yr=Ke.onFullScreen,sn=Ke.className,Zt=sn===void 0?"":sn,Tn=Ke.disablePaste,jr=Tn===void 0?!1:Tn,jn=Ke.placeholder,$n=jn===void 0?"":jn,Wn=Ke.values,pe=Wn===void 0?"":Wn,V=Object(r.useState)(null),Z=Object(w.a)(V,2),oe=Z[0],Ce=Z[1],he=Object(r.useState)(Ot),ct=Object(w.a)(he,2),rn=ct[0],In=ct[1],Vn=Object(r.useState)(ut),tn=Object(w.a)(Vn,2),En=tn[0],Xn=tn[1],$r=Object(r.useState)(Rr),ga=Object(w.a)($r,2),pa=ga[0],dr=ga[1],za=Object(r.useState)(""),ja=Object(w.a)(za,2),Ra=ja[0],Ha=ja[1],Sa=Object(r.useState)(0),Ja=Object(w.a)(Sa,2),ka=Ja[0],li=Ja[1],oi=Object(r.useState)(Be),ua=Object(w.a)(oi,2),fa=ua[0],oa=ua[1],ye=Object(r.useState)(!1),lt=Object(w.a)(ye,2),Mt=lt[0],wt=lt[1],Wt=Object(r.useRef)(Object(De.a)()),Lt=Object(r.useRef)(!1),Xt=Object(r.useRef)(),en=Object(r.useRef)(),vn=Object(r.useRef)(),pn=Object(r.useRef)(),Nn=Object(r.useRef)(),wn=function(){var qt=Object(x.a)(d.a.mark(function Sn(){var mn,Mn;return d.a.wrap(function(ir){for(;;)switch(ir.prev=ir.next){case 0:return ir.next=2,Object(te.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Wt.current}});case 2:Mn=ir.sent,Mn!=null&&(mn=Mn.attachments)!==null&&mn!==void 0&&mn.length&&(console.log("cm:",oe,en),Mn.attachments.map(function(er){er.content_type.indexOf("image")>-1?oe.replaceSelection("![,](/api/attachments/".concat(er.id,"?type=").concat(er.content_type,")")):er.content_type.indexOf("video")>-1?oe.replaceSelection('<video width="100%" controls src="'.concat(T.a.API_SERVER,"/api/attachments/").concat(data.id,'"></video>')):er.content_type.indexOf("pdf")>-1?oe.replaceSelection('<a href="'.concat(T.a.API_SERVER,"/api/attachments/").concat(er.id,"?type=").concat(er.content_type,'&disposition=inline" target="_blank">').concat(er.name,"</a>")):oe.replaceSelection("[".concat(er.name,"](").concat(T.a.API_SERVER,"/api/attachments/").concat(er.id,"?type=").concat(er.content_type,")"))}));case 4:case"end":return ir.stop()}},Sn)}));return function(){return qt.apply(this,arguments)}}();Object(r.useEffect)(function(){In(pe),oe==null||oe.setValue(pe)},[pe]),Object(r.useEffect)(function(){yr==null||yr(pa)},[pa]),Object(r.useEffect)(function(){if(en.current){var qt=a.a.fromTextArea(en.current,{mode:jt,lineNumbers:!it,lineWrapping:!0,value:Ot,autoCloseTags:!0,autoCloseBrackets:!0});Ye&&qt.focus();function Sn(mn,Mn){if(jr){Mn.preventDefault();return}var Un=Mn.clipboardData;if(Un){var ir=Un.types.toString(),er=Un.items;if(ir==="Files"||Un.types.indexOf("Files")>-1){if(Mn.preventDefault(),jt=="stex")return;try{var Ar,Mr=er[1];((Ar=er[0])===null||Ar===void 0?void 0:Ar.kind)==="file"&&(Mr=er[0]);var Qn=Mr.getAsFile(),Tr=Qn.name.split(".").pop();q(Qn,function(mr){if(mr.id){var Gr,Ir,qr;(Qn==null||((Gr=Qn.type)===null||Gr===void 0)?void 0:Gr.indexOf("image"))>-1?qt.replaceSelection("![,](/api/attachments/".concat(mr.id,"?type=").concat(mr.content_type,")")):(Qn==null||((Ir=Qn.type)===null||Ir===void 0)?void 0:Ir.indexOf("video"))>-1?qt.replaceSelection('<video width="100%" controls src="'.concat(T.a.API_SERVER,"/api/attachments/").concat(mr.id,'"></video>')):(Qn==null||((qr=Qn.type)===null||qr===void 0)?void 0:qr.indexOf("pdf"))>-1?qt.replaceSelection('<a href="'.concat(T.a.API_SERVER,"/api/attachments/").concat(mr.id,"?type=").concat(Qn.type,'&disposition=inline" target="_blank">').concat(Qn.name,"</a>")):Ee.includes(Tr)?qt.replaceSelection('<a href="'.concat(T.a.API_SERVER,"/api/attachments/").concat(mr.id,'?type=office&disposition=inline" target="_blank">').concat(Qn.name,"</a>")):qt.replaceSelection("[".concat(Qn.name,"](").concat(T.a.API_SERVER,"/api/attachments/").concat(mr.id,"?type=").concat(mr.content_type,")"))}else(mr==null?void 0:mr.status)===401&&(document.location.href="/user/login")})}catch(mr){y.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return qt.on("paste",Sn),qt.on("dragleave",function(mn,Mn){vn.current.classList.remove("mouse-hover-md")}),qt.on("dragover",function(mn,Mn){vn.current.classList.add("mouse-hover-md")}),qt.on("drop",function(mn,Mn){vn.current.classList.add("mouse-hover-md");var Un;if(Un=Mn.dataTransfer.files,Un.length>0){Mn.preventDefault(),Mn.stopPropagation();for(var ir=function(Mr){var Qn=Un[Mr],Tr=Qn.name.split(".").pop();q(Qn,function(mr){if(mr.id){var Gr,Ir,qr;(Qn==null||((Gr=Qn.type)===null||Gr===void 0)?void 0:Gr.indexOf("image"))>-1?qt.replaceSelection("![,](/api/attachments/".concat(mr.id,"?type=").concat(mr.content_type,")")):(Qn==null||((Ir=Qn.type)===null||Ir===void 0)?void 0:Ir.indexOf("video"))>-1?qt.replaceSelection('<video width="100%" controls src="'.concat(T.a.API_SERVER,"/api/attachments/").concat(mr.id,'"></video>')):(Qn==null||((qr=Qn.type)===null||qr===void 0)?void 0:qr.indexOf("pdf"))>-1?qt.replaceSelection('<a href="'.concat(T.a.API_SERVER,"/api/attachments/").concat(mr.id,"?type=").concat(Qn.type,'&disposition=inline" target="_blank">').concat(Qn.name,"</a>")):Ee.includes(Tr)?qt.replaceSelection('<a href="'.concat(T.a.API_SERVER,"/api/attachments/").concat(mr.id,'?type=office&disposition=inline" target="_blank">').concat(Qn.name,"</a>")):qt.replaceSelection("[".concat(Qn.name,"](").concat(T.a.API_SERVER,"/api/attachments/").concat(mr.id,"?type=").concat(mr.content_type,")"))}else(mr==null?void 0:mr.status)===401&&(document.location.href="/user/login")})},er=0;er<Un.length;er++)ir(er)}}),Ce(qt),function(){qt.off("paste",Sn)}}},[]);var nn=Object(r.useCallback)(function(){if(vn.current)try{}catch(qt){console.log(qt,"---- to set md editor body height")}},[fa,vn,pa]);Object(r.useEffect)(function(){function qt(){var mn=new n.default(function(Mn){var Un=Object(A.a)(Mn),ir;try{for(Un.s();!(ir=Un.n()).done;){var er=ir.value;(er.target.offsetHeight>0||er.target.offsetWidth>0)&&(nn(),oe.setSize("100%","100%"),oe.refresh())}}catch(Ar){Un.e(Ar)}finally{Un.f()}});return mn.observe(en.current.parentElement),mn}if(oe){var Sn=qt();return function(){Sn.unobserve(en.current.parentElement)}}},[oe,nn]),Object(r.useEffect)(function(){if(oe){for(var qt=[],Sn=function(){var er=Mn[mn];Un=Object(w.a)(er,2);var Ar=Un[0],Mr=Un[1],Qn=Object(f.a)({},Ar,function(){Rn(Mr)});qt.push(Qn),oe.addKeyMap(Qn)},mn=0,Mn=Object.entries(Ae);mn<Mn.length;mn++){var Un;Sn()}return Xt.current=setInterval(function(){Lt.current&&wn()},4e3),function(){clearInterval(Xt.current);var ir=Object(A.a)(qt),er;try{for(ir.s();!(er=ir.n()).done;){var Ar=er.value;oe.removeKeyMap(Ar)}}catch(Mr){ir.e(Mr)}finally{ir.f()}}}},[oe]),Object(r.useEffect)(function(){Rr!==pa&&dr(Rr)},[Rr]),Object(xt.a)(function(){if(!Yn&&ka>0){var qt=new Date().getTime(),Sn=window.sessionStorage.getItem(Dt);qt>=ka+kt&&(!Sn||Sn!==rn)&&(window.sessionStorage.setItem(Dt,rn),wt(!0))}},kt),Object(r.useEffect)(function(){Xn(ut)},[oe,ut]),Object(r.useEffect)(function(){oe&&(Ye&&oe.focus())},[oe,Ye]),Object(r.useEffect)(function(){if(En&&oe){var qt=oe.getScrollerElement();function Sn(mn){var Mn=mn.target;if(Nn.current){var Un=Mn.scrollTop/Mn.scrollHeight;Nn.current.scrollTop=Nn.current.scrollHeight*Un}}return qt.addEventListener("scroll",Sn),function(){qt.removeEventListener("scroll",Sn)}}},[oe,En]),Object(r.useEffect)(function(){if(oe&&Ur){function qt(Sn,mn){Ur(Sn,mn)}return oe.on("beforeChange",qt),function(){oe.off("beforeChange",qt)}}},[oe,Ur]),Object(r.useEffect)(function(){if(oe&&cr){function qt(){cr(oe.getValue())}return oe.on("blur",qt),function(){oe.off("blur",qt)}}},[oe,cr]),Object(r.useEffect)(function(){if(oe){function qt(Sn){var mn=Sn.getValue();In(mn),li(new Date().getTime()),Sn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Bt&&Bt(mn)}return oe.on("change",qt),function(){oe.off("change",qt)}}},[oe,Bt]),Object(r.useEffect)(function(){oe&&(Ot==null?(oe.setValue(""),In("")):Ot!==oe.getValue()&&(oe.setValue(Ot),In(Ot),oe.setCursor(oe.lineCount(),0)))},[oe,Ot]);var Rn=Object(r.useCallback)(function(qt){var Sn=oe.getCursor(),mn=oe.getSelection(),Mn=mn.split(`
`);switch(qt){case"bold":return oe.replaceSelection("**"+mn+"**"),mn===""&&oe.setCursor(Sn.line,Sn.ch+2),oe.focus();case"italic":return oe.replaceSelection("*"+mn+"*"),mn===""&&oe.setCursor(Sn.line,Sn.ch+1),oe.focus();case"code":return oe.replaceSelection("`"+mn+"`"),mn===""&&oe.setCursor(Sn.line,Sn.ch+1),oe.focus();case"inline-latex":return oe.replaceSelection("`$$"+mn+"$$`"),mn===""&&oe.setCursor(Sn.line,Sn.ch+3),oe.focus();case"latex":return oe.replaceSelection("```latex\n"+mn+"\n```"),oe.setCursor(Sn.line+1,mn.length+1),oe.focus();case"line-break":return oe.replaceSelection(`<br/>
`),oe.focus();case"list-ul":return mn===""?oe.replaceSelection("- "+mn):oe.replaceSelection(Mn.map(function(Un){return Un===""?"":"- ".concat(Un)}).join(`
`)),oe.focus();case"list-ol":return mn===""?oe.replaceSelection("1. "+mn):oe.replaceSelection(Mn.map(function(Un,ir){return Un===""?"":"".concat(ir+1,". ").concat(Un)}).join(`
`)),oe.focus();case"add-null-ch":return mn===""&&oe.setCursor(Sn.line,Sn.ch+1),oe.replaceSelection(ht),oe.focus();case"inster-template-1":return mn===""&&oe.setCursor(Sn.line,Sn.ch),oe.replaceSelection(_t),oe.focus();case"eraser":return oe.setValue(""),oe.focus();case"trigger-watch":return Xn(!En),oe.focus();case"trigger-full-screen":return dr(!pa),oe.focus();case Te:Ha(Te);return;case tt:Ha(tt);return;case ke:Ha(ke);return;case ot:Ha(ot);return;default:throw new Error}},[oe,En,pa]),gn=Object(r.useCallback)(function(qt){Ha("");switch(Ra){case Te:var Sn=qt.title,mn=qt.link;return oe.replaceSelection("[".concat(Sn,"](").concat(mn,")")),oe.focus();case tt:var Mn=qt.language,Un=qt.content;return oe.replaceSelection(["```"+Mn,Un,"```"].join(`
`)),oe.focus();case ke:var ir=qt.src,er=qt.alt;return er?oe.replaceSelection("![ ".concat(er," ]( ").concat(ir,' "').concat(er,'" )')):oe.replaceSelection("![,](".concat(ir,")")),oe.focus();case ot:for(var Ar=qt.row,Mr=qt.col,Qn=qt.align,Tr=`
`,mr=0;mr<Ar;mr++){for(var Gr=[],Ir=[],qr=0;qr<Mr;qr++)mr===1&&Ir.push(Et[Qn]),Gr.push(" ");mr===1&&(Tr+="| ".concat(Ir.join(" | "),` |
`)),Tr+="| ".concat(Gr.join(Mr===1?"":" | "),` |
`)}return oe.replaceSelection(Tr+`
`),oe.focus();default:throw new Error}},[oe,Ra]),kn=Object(r.useMemo)(function(){switch(Ra){case Te:return u.a.createElement(fe,{callback:gn,onCancel:Dn});case tt:return u.a.createElement(de.b,{callback:gn,onCancel:Dn});case ke:return u.a.createElement(ue,{callback:gn,onCancel:Dn});case ot:return u.a.createElement(J,{callback:gn,onCancel:Dn});default:return null}},[Ra]);function Dn(){Ha("")}Object(r.useEffect)(function(){if(pn.current){var qt=pn.current,Sn=!1,mn=0;function Mn(er){Sn=!0,mn=er.pageY}function Un(){Sn=!1}function ir(er){if(Sn){var Ar=er.pageY-mn;Ar<0&&(Ar=0),Ar>300&&(Ar=300);var Mr=Be+Ar+"px";oa(Mr)}}return qt.addEventListener("mousedown",Mn),document.addEventListener("mousemove",ir),document.addEventListener("mouseup",Un),function(){qt.removeEventListener("mousedown",Mn),document.removeEventListener("mousemove",ir),document.removeEventListener("mouseup",Un)}}},[oe,pn]),Object(r.useEffect)(function(){oa(Be)},[Be]);var Jn=Qe(Kt),hr=Qe(fa),Br={width:Jn,height:hr},xn=Object(r.useMemo)(function(){if(ka){var qt=new Date(ka),Sn=qt.getHours(),mn=qt.getMinutes(),Mn=qt.getSeconds();return Sn=Sn<10?"0"+Sn:Sn,mn=mn<10?"0"+mn:mn,Mn=Mn<10?"0"+Mn:Mn,"".concat(Sn,":").concat(mn,":").concat(Mn)}return 0},[ka]);function Yt(){window.sessionStorage.removeItem(Dt),wt(!1),li(0)}function dn(){wt(!1),li(0),oe.setValue(window.sessionStorage.getItem(Dt))}function An(qt,Sn){var mn=oe.getValue();mn=mn.replace(qt,Sn),In(mn),oe==null||oe.setValue(mn)}return u.a.createElement(r.Fragment,null,u.a.createElement("div",{className:"markdown-editor-wrapper",ref:vn},u.a.createElement("div",{className:"markdown-editor-container ".concat(Zt," ").concat(En?"on-preview":""," ").concat(it?"mini":""," ").concat(pa?"full-screen":""),style:Br},u.a.createElement(N,{insertTemp:mt,watch:En,fullScreen:pa,showNullButton:Pn,onActionCallback:Rn,hidetoolBar:xr,uuid:Wt.current,setOpenPhones:function(){Lt.current=!0}}),u.a.createElement("div",{className:"markdown-editor-body"},u.a.createElement("div",{className:"codemirror-container"},u.a.createElement("textarea",{ref:en,placeholder:$n})),En?u.a.createElement("div",{ref:Nn,className:"preview-container"},jt==="stex"&&u.a.createElement(P,{value:rn}),jt!=="stex"&&u.a.createElement(v.a,{edit:!0,value:rn,replaces:An})):null))),bn?u.a.createElement("a",{ref:pn,className:"editor-resize"}):null,u.a.createElement(z.a,null,Fe[Ra]?u.a.createElement(g.a,{centered:!0,title:Fe[Ra],visible:!0,onCancel:Dn,footer:null,className:"markdown-popup-form"},kn):null))}},P5Jw:function(M,Y,o){"use strict";var L=o("rHrb"),g=L.CopyToClipboard;g.CopyToClipboard=g,M.exports=g},PVpz:function(M,Y,o){(function(L,g,A){M.exports=Y=g(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(L){return function(){var g=L,A=g.lib,b=A.StreamCipher,y=g.algo,x=[],w=[],f=[],_=y.RabbitLegacy=b.extend({_doReset:function(){var r=this._key.words,u=this.cfg.iv,t=this._X=[r[0],r[3]<<16|r[2]>>>16,r[1],r[0]<<16|r[3]>>>16,r[2],r[1]<<16|r[0]>>>16,r[3],r[2]<<16|r[1]>>>16],a=this._C=[r[2]<<16|r[2]>>>16,r[0]&4294901760|r[1]&65535,r[3]<<16|r[3]>>>16,r[1]&4294901760|r[2]&65535,r[0]<<16|r[0]>>>16,r[2]&4294901760|r[3]&65535,r[1]<<16|r[1]>>>16,r[3]&4294901760|r[0]&65535];this._b=0;for(var n=0;n<4;n++)d.call(this);for(var n=0;n<8;n++)a[n]^=t[n+4&7];if(u){var i=u.words,h=i[0],l=i[1],s=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,p=(l<<8|l>>>24)&16711935|(l<<24|l>>>8)&4278255360,O=s>>>16|p&4294901760,S=p<<16|s&65535;a[0]^=s,a[1]^=O,a[2]^=p,a[3]^=S,a[4]^=s,a[5]^=O,a[6]^=p,a[7]^=S;for(var n=0;n<4;n++)d.call(this)}},_doProcessBlock:function(r,u){var t=this._X;d.call(this),x[0]=t[0]^t[5]>>>16^t[3]<<16,x[1]=t[2]^t[7]>>>16^t[5]<<16,x[2]=t[4]^t[1]>>>16^t[7]<<16,x[3]=t[6]^t[3]>>>16^t[1]<<16;for(var a=0;a<4;a++)x[a]=(x[a]<<8|x[a]>>>24)&16711935|(x[a]<<24|x[a]>>>8)&4278255360,r[u+a]^=x[a]},blockSize:128/32,ivSize:64/32});function d(){for(var r=this._X,u=this._C,t=0;t<8;t++)w[t]=u[t];u[0]=u[0]+1295307597+this._b|0,u[1]=u[1]+3545052371+(u[0]>>>0<w[0]>>>0?1:0)|0,u[2]=u[2]+886263092+(u[1]>>>0<w[1]>>>0?1:0)|0,u[3]=u[3]+1295307597+(u[2]>>>0<w[2]>>>0?1:0)|0,u[4]=u[4]+3545052371+(u[3]>>>0<w[3]>>>0?1:0)|0,u[5]=u[5]+886263092+(u[4]>>>0<w[4]>>>0?1:0)|0,u[6]=u[6]+1295307597+(u[5]>>>0<w[5]>>>0?1:0)|0,u[7]=u[7]+3545052371+(u[6]>>>0<w[6]>>>0?1:0)|0,this._b=u[7]>>>0<w[7]>>>0?1:0;for(var t=0;t<8;t++){var a=r[t]+u[t],n=a&65535,i=a>>>16,h=((n*n>>>17)+n*i>>>15)+i*i,l=((a&4294901760)*a|0)+((a&65535)*a|0);f[t]=h^l}r[0]=f[0]+(f[7]<<16|f[7]>>>16)+(f[6]<<16|f[6]>>>16)|0,r[1]=f[1]+(f[0]<<8|f[0]>>>24)+f[7]|0,r[2]=f[2]+(f[1]<<16|f[1]>>>16)+(f[0]<<16|f[0]>>>16)|0,r[3]=f[3]+(f[2]<<8|f[2]>>>24)+f[1]|0,r[4]=f[4]+(f[3]<<16|f[3]>>>16)+(f[2]<<16|f[2]>>>16)|0,r[5]=f[5]+(f[4]<<8|f[4]>>>24)+f[3]|0,r[6]=f[6]+(f[5]<<16|f[5]>>>16)+(f[4]<<16|f[4]>>>16)|0,r[7]=f[7]+(f[6]<<8|f[6]>>>24)+f[5]|0}g.RabbitLegacy=b._createHelper(_)}(),L.RabbitLegacy})},QNag:function(M,Y,o){"use strict";var L=o("2qtc"),g=o("kLXV"),A=o("+L6B"),b=o("2/Rp"),y=o("9og8"),x=o("y8nQ"),w=o("Vl3Y"),f=o("tJVT"),_=o("PpiC"),d=o("5NDa"),r=o("5rEg"),u=o("WmNS"),t=o.n(u),a=o("q1tI"),n=o.n(a),i=o("9kvl"),h=o("JFl9"),l=o.n(h),s=r.a.TextArea,p=function(S){var v=S.shixunsDetail,P=S.globalSetting,R=S.loading,E=S.dispatch,C=S.onFinish,m=C===void 0?function(){}:C,T=Object(_.a)(S,["shixunsDetail","globalSetting","loading","dispatch","onFinish"]),I=w.a.useForm(),D=Object(f.a)(I,1),N=D[0],z=function(){var W=Object(y.a)(t.a.mark(function K(B){var k,G;return t.a.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return fe.next=2,E({type:"shixunsDetail/getCustomScript",payload:{id:(k=v.actionTabs.params)===null||k===void 0?void 0:k.id,compile:B.execute,excutive:B.compile}});case 2:G=fe.sent,F(),G&&m(G==null?void 0:G.shixun_script);case 5:case"end":return fe.stop()}},K)}));return function(B){return W.apply(this,arguments)}}(),F=function(){E({type:"shixunsDetail/setActionTabs",payload:{}})};return n.a.createElement(g.a,{centered:!0,title:"\u81EA\u5B9A\u4E49\u6A21\u677F",visible:v.actionTabs.key==="Settings-UseCustomScript",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",footer:null,onCancel:F},n.a.createElement(w.a,{form:N,scrollToFirstError:!0,layout:"vertical",onFinish:z},n.a.createElement(w.a.Item,{name:"execute",label:"\u6267\u884C\u547D\u4EE4\uFF1A",rules:[{required:!0,message:"\u6267\u884C\u547D\u4EE4\u4E0D\u80FD\u4E3A\u7A7A"}]},n.a.createElement(s,{rows:4})),n.a.createElement(w.a.Item,{name:"compile",label:"\u7F16\u8BD1\u547D\u4EE4\uFF1A"},n.a.createElement(s,{rows:4})),n.a.createElement("div",{className:l.a.footerWrap},n.a.createElement(w.a.Item,null,n.a.createElement(b.a,{className:"mr5",size:"large",onClick:F},"\u53D6\u6D88"),n.a.createElement(b.a,{size:"large",type:"primary",htmlType:"submit",loading:R.effects["shixunsDetail/getCustomScript"]},"\u4FDD\u5B58")))))};Y.a=Object(i.a)(function(O){var S=O.shixunsDetail,v=O.loading,P=O.globalSetting;return{shixunsDetail:S,globalSetting:P,loading:v}})(p)},Qvpy:function(M,Y,o){M.exports={title:"title___39Oep",content:"content___Xl7wK",add:"add___1luKB",colorBlue:"colorBlue___c0Swt",radio:"radio___OK4CQ"}},RC3E:function(M,Y,o){M.exports={wrap:"wrap___2zh4E",title:"title___Os-Oa",path:"path___eUXXC",colorBlue:"colorBlue___2IORo"}},RMFE:function(M,Y){M.exports="data:image/png;base64,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"},RotF:function(M,Y,o){M.exports=o("LSTS")},RxwV:function(M,Y,o){"use strict";var L=o("q1tI"),g=o("uciX"),A=o("2W6z"),b=o.n(A),y=o("4IlW"),x=o("uK0f"),w=o.n(x);function f(be,ve){if(be===ve)return!0;if(!be||!ve)return!1;var ue=be.length;if(ve.length!==ue)return!1;for(var se=0;se<ue;se++)if(be[se]!==ve[se])return!1;return!0}function _(be){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_=function(ue){return typeof ue}:_=function(ue){return ue&&typeof Symbol=="function"&&ue.constructor===Symbol&&ue!==Symbol.prototype?"symbol":typeof ue},_(be)}function d(be,ve){if(!(be instanceof ve))throw new TypeError("Cannot call a class as a function")}function r(be,ve){for(var ue=0;ue<ve.length;ue++){var se=ve[ue];se.enumerable=se.enumerable||!1,se.configurable=!0,"value"in se&&(se.writable=!0),Object.defineProperty(be,se.key,se)}}function u(be,ve,ue){return ve&&r(be.prototype,ve),ue&&r(be,ue),be}function t(be,ve){if(typeof ve!="function"&&ve!==null)throw new TypeError("Super expression must either be null or a function");be.prototype=Object.create(ve&&ve.prototype,{constructor:{value:be,writable:!0,configurable:!0}}),ve&&a(be,ve)}function a(be,ve){return a=Object.setPrototypeOf||function(se,q){return se.__proto__=q,se},a(be,ve)}function n(be){var ve=l();return function(){var ue=s(be),se;if(ve){var q=s(this).constructor;se=Reflect.construct(ue,arguments,q)}else se=ue.apply(this,arguments);return i(this,se)}}function i(be,ve){return ve&&(_(ve)==="object"||typeof ve=="function")?ve:h(be)}function h(be){if(be===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return be}function l(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(be){return!1}}function s(be){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(ue){return ue.__proto__||Object.getPrototypeOf(ue)},s(be)}var p=function(){var be=function(ve){t(se,ve);var ue=n(se);function se(){var q;return d(this,se),q=ue.apply(this,arguments),q.menuItems={},q.saveMenuItem=function(me){return function(re){q.menuItems[me]=re}},q}return u(se,[{key:"componentDidMount",value:function(){this.scrollActiveItemToView()}},{key:"componentDidUpdate",value:function(me){!me.visible&&this.props.visible&&this.scrollActiveItemToView()}},{key:"getFieldName",value:function(me){var re=this.props,ie=re.fieldNames,we=re.defaultFieldNames;return ie[me]||we[me]}},{key:"getOption",value:function(me,re){var ie=this.props,we=ie.prefixCls,le=ie.expandTrigger,$=ie.expandIcon,J=ie.loadingIcon,te=this.props.onSelect.bind(this,me,re),De=this.props.onItemDoubleClick.bind(this,me,re),Te={onClick:te,onDoubleClick:De},ke="".concat(we,"-menu-item"),tt=null,ot=me[this.getFieldName("children")]&&me[this.getFieldName("children")].length>0;(ot||me.isLeaf===!1)&&(ke+=" ".concat(we,"-menu-item-expand"),me.loading||(tt=L.createElement("span",{className:"".concat(we,"-menu-item-expand-icon")},$))),le==="hover"&&(ot||me.isLeaf===!1)&&(Te={onMouseEnter:this.delayOnSelect.bind(this,te),onMouseLeave:this.delayOnSelect.bind(this),onClick:te}),this.isActiveOption(me,re)&&(ke+=" ".concat(we,"-menu-item-active"),Te.ref=this.saveMenuItem(re)),me.disabled&&(ke+=" ".concat(we,"-menu-item-disabled"));var gt=null;me.loading&&(ke+=" ".concat(we,"-menu-item-loading"),gt=J||null);var Et="";return"title"in me?Et=me.title:typeof me[this.getFieldName("label")]=="string"&&(Et=me[this.getFieldName("label")]),L.createElement("li",Object.assign({key:me[this.getFieldName("value")],className:ke,title:Et},Te,{role:"menuitem",onMouseDown:function(St){return St.preventDefault()}}),me[this.getFieldName("label")],tt,gt)}},{key:"getActiveOptions",value:function(me){var re=this,ie=this.props.options,we=me||this.props.activeValue;return w()(ie,function(le,$){return le[re.getFieldName("value")]===we[$]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var me=this,re=this.props.options,ie=this.getActiveOptions().map(function(we){return we[me.getFieldName("children")]}).filter(function(we){return!!we});return ie.unshift(re),ie}},{key:"delayOnSelect",value:function(me){for(var re=this,ie=arguments.length,we=new Array(ie>1?ie-1:0),le=1;le<ie;le++)we[le-1]=arguments[le];this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null),typeof me=="function"&&(this.delayTimer=window.setTimeout(function(){me(we),re.delayTimer=null},150))}},{key:"scrollActiveItemToView",value:function(){for(var me=this.getShowOptions().length,re=0;re<me;re++){var ie=this.menuItems[re];ie&&ie.parentElement&&(ie.parentElement.scrollTop=ie.offsetTop)}}},{key:"isActiveOption",value:function(me,re){var ie=this.props.activeValue,we=ie===void 0?[]:ie;return we[re]===me[this.getFieldName("value")]}},{key:"render",value:function(){var me=this,re=this.props,ie=re.prefixCls,we=re.dropdownMenuColumnStyle;return L.createElement("div",null,this.getShowOptions().map(function(le,$){return L.createElement("ul",{className:"".concat(ie,"-menu"),key:$,style:we},le.map(function(J){return me.getOption(J,$)}))}))}}]),se}(L.Component);return be.defaultProps={options:[],value:[],activeValue:[],onSelect:function(){},prefixCls:"rc-cascader-menus",visible:!1,expandTrigger:"click"},be}(),O=p,S={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}}},v=S;function P(be){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?P=function(ue){return typeof ue}:P=function(ue){return ue&&typeof Symbol=="function"&&ue.constructor===Symbol&&ue!==Symbol.prototype?"symbol":typeof ue},P(be)}function R(be,ve){if(be==null)return{};var ue=E(be,ve),se,q;if(Object.getOwnPropertySymbols){var me=Object.getOwnPropertySymbols(be);for(q=0;q<me.length;q++){if(se=me[q],ve.indexOf(se)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(be,se))continue;ue[se]=be[se]}}return ue}function E(be,ve){if(be==null)return{};var ue={},se=Object.keys(be),q,me;for(me=0;me<se.length;me++){if(q=se[me],ve.indexOf(q)>=0)continue;ue[q]=be[q]}return ue}function C(be){return D(be)||I(be)||T(be)||m()}function m(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T(be,ve){if(!be)return;if(typeof be=="string")return N(be,ve);var ue=Object.prototype.toString.call(be).slice(8,-1);if(ue==="Object"&&be.constructor&&(ue=be.constructor.name),ue==="Map"||ue==="Set")return Array.from(be);if(ue==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ue))return N(be,ve)}function I(be){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(be))return Array.from(be)}function D(be){if(Array.isArray(be))return N(be)}function N(be,ve){(ve==null||ve>be.length)&&(ve=be.length);for(var ue=0,se=new Array(ve);ue<ve;ue++)se[ue]=be[ue];return se}function z(be,ve){if(!(be instanceof ve))throw new TypeError("Cannot call a class as a function")}function F(be,ve){for(var ue=0;ue<ve.length;ue++){var se=ve[ue];se.enumerable=se.enumerable||!1,se.configurable=!0,"value"in se&&(se.writable=!0),Object.defineProperty(be,se.key,se)}}function W(be,ve,ue){return ve&&F(be.prototype,ve),ue&&F(be,ue),be}function K(be,ve){if(typeof ve!="function"&&ve!==null)throw new TypeError("Super expression must either be null or a function");be.prototype=Object.create(ve&&ve.prototype,{constructor:{value:be,writable:!0,configurable:!0}}),ve&&B(be,ve)}function B(be,ve){return B=Object.setPrototypeOf||function(se,q){return se.__proto__=q,se},B(be,ve)}function k(be){var ve=fe();return function(){var ue=de(be),se;if(ve){var q=de(this).constructor;se=Reflect.construct(ue,arguments,q)}else se=ue.apply(this,arguments);return G(this,se)}}function G(be,ve){return ve&&(P(ve)==="object"||typeof ve=="function")?ve:ne(be)}function ne(be){if(be===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return be}function fe(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(be){return!1}}function de(be){return de=Object.setPrototypeOf?Object.getPrototypeOf:function(ue){return ue.__proto__||Object.getPrototypeOf(ue)},de(be)}var xe=function(){var be=function(ve){K(se,ve);var ue=k(se);function se(q){var me;z(this,se),me=ue.call(this,q),me.setPopupVisible=function(ie){var we=me.state.value;"popupVisible"in me.props||me.setState({popupVisible:ie}),ie&&!me.state.popupVisible&&me.setState({activeValue:we}),me.props.onPopupVisibleChange(ie)},me.handleChange=function(ie,we,le){var $=we.visible;(le.type!=="keydown"||le.keyCode===y.a.ENTER)&&(me.props.onChange(ie.map(function(J){return J[me.getFieldName("value")]}),ie),me.setPopupVisible($))},me.handlePopupVisibleChange=function(ie){me.setPopupVisible(ie)},me.handleMenuSelect=function(ie,we,le){var $=me.trigger.getRootDomNode();$&&$.focus&&$.focus();var J=me.props,te=J.changeOnSelect,De=J.loadData,Te=J.expandTrigger;if(!ie||ie.disabled)return;var ke=me.state.activeValue;ke=ke.slice(0,we+1),ke[we]=ie[me.getFieldName("value")];var tt=me.getActiveOptions(ke);if(ie.isLeaf===!1&&!ie[me.getFieldName("children")]&&De){te&&me.handleChange(tt,{visible:!0},le),me.setState({activeValue:ke}),De(tt);return}var ot={};!ie[me.getFieldName("children")]||!ie[me.getFieldName("children")].length?(me.handleChange(tt,{visible:!1},le),ot.value=ke):te&&(le.type==="click"||le.type==="keydown")&&(Te==="hover"?me.handleChange(tt,{visible:!1},le):me.handleChange(tt,{visible:!0},le),ot.value=ke),ot.activeValue=ke,("value"in me.props||le.type==="keydown"&&le.keyCode!==y.a.ENTER)&&delete ot.value,me.setState(ot)},me.handleItemDoubleClick=function(){var ie=me.props.changeOnSelect;ie&&me.setPopupVisible(!1)},me.handleKeyDown=function(ie){var we=me.props.children;if(we&&we.props.onKeyDown){we.props.onKeyDown(ie);return}var le=C(me.state.activeValue),$=le.length-1<0?0:le.length-1,J=me.getCurrentLevelOptions(),te=J.map(function(tt){return tt[me.getFieldName("value")]}).indexOf(le[$]);if(ie.keyCode!==y.a.DOWN&&ie.keyCode!==y.a.UP&&ie.keyCode!==y.a.LEFT&&ie.keyCode!==y.a.RIGHT&&ie.keyCode!==y.a.ENTER&&ie.keyCode!==y.a.SPACE&&ie.keyCode!==y.a.BACKSPACE&&ie.keyCode!==y.a.ESC&&ie.keyCode!==y.a.TAB)return;if(!me.state.popupVisible&&ie.keyCode!==y.a.BACKSPACE&&ie.keyCode!==y.a.LEFT&&ie.keyCode!==y.a.RIGHT&&ie.keyCode!==y.a.ESC&&ie.keyCode!==y.a.TAB){me.setPopupVisible(!0);return}if(ie.keyCode===y.a.DOWN||ie.keyCode===y.a.UP){ie.preventDefault();var De=te;De!==-1?ie.keyCode===y.a.DOWN?(De+=1,De=De>=J.length?0:De):(De-=1,De=De<0?J.length-1:De):De=0,le[$]=J[De][me.getFieldName("value")]}else if(ie.keyCode===y.a.LEFT||ie.keyCode===y.a.BACKSPACE)ie.preventDefault(),le.splice(le.length-1,1);else if(ie.keyCode===y.a.RIGHT)ie.preventDefault(),J[te]&&J[te][me.getFieldName("children")]&&le.push(J[te][me.getFieldName("children")][0][me.getFieldName("value")]);else if(ie.keyCode===y.a.ESC||ie.keyCode===y.a.TAB){me.setPopupVisible(!1);return}(!le||le.length===0)&&me.setPopupVisible(!1);var Te=me.getActiveOptions(le),ke=Te[Te.length-1];me.handleMenuSelect(ke,Te.length-1,ie),me.props.onKeyDown&&me.props.onKeyDown(ie)},me.saveTrigger=function(ie){me.trigger=ie};var re=[];return"value"in q?re=q.value||[]:"defaultValue"in q&&(re=q.defaultValue||[]),b()(!("filedNames"in q),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),me.state={popupVisible:q.popupVisible,activeValue:re,value:re,prevProps:q},me.defaultFieldNames={label:"label",value:"value",children:"children"},me}return W(se,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(me){var re=this.defaultFieldNames,ie=this.props,we=ie.fieldNames,le=ie.filedNames;return"filedNames"in this.props?le[me]||re[me]:we[me]||re[me]}},{key:"getFieldNames",value:function(){var me=this.props,re=me.fieldNames,ie=me.filedNames;return"filedNames"in this.props?ie:re}},{key:"getCurrentLevelOptions",value:function(){var me=this,re=this.props.options,ie=re===void 0?[]:re,we=this.state.activeValue,le=we===void 0?[]:we,$=w()(ie,function(J,te){return J[me.getFieldName("value")]===le[te]},{childrenKeyName:this.getFieldName("children")});return $[$.length-2]?$[$.length-2][this.getFieldName("children")]:C(ie).filter(function(J){return!J.disabled})}},{key:"getActiveOptions",value:function(me){var re=this;return w()(this.props.options||[],function(ie,we){return ie[re.getFieldName("value")]===me[we]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var me=this.props,re=me.prefixCls,ie=me.transitionName,we=me.popupClassName,le=me.options,$=le===void 0?[]:le,J=me.disabled,te=me.builtinPlacements,De=me.popupPlacement,Te=me.children,ke=me.dropdownRender,tt=R(me,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),ot=L.createElement("div",null),gt="";$&&$.length>0?ot=L.createElement(O,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):gt=" ".concat(re,"-menus-empty");var Et=ot;return ke&&(Et=ke(ot)),L.createElement(g.a,Object.assign({ref:this.saveTrigger},tt,{popupPlacement:De,builtinPlacements:te,popupTransitionName:ie,action:J?[]:["click"],popupVisible:J?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(re,"-menus"),popupClassName:we+gt,popup:Et}),L.cloneElement(Te,{onKeyDown:this.handleKeyDown,tabIndex:J?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(me,re){var ie=re.prevProps,we=ie===void 0?{}:ie,le={prevProps:me};return"value"in me&&!f(we.value,me.value)&&(le.value=me.value||[],"loadData"in me||(le.activeValue=me.value||[])),"popupVisible"in me&&(le.popupVisible=me.popupVisible),le}}]),se}(L.Component);return be.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:v,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},be}(),Oe=xe,ce=Y.a=Oe},S6kV:function(M,Y,o){(function(L,g,A){M.exports=Y=g(o("Ib8C"),o("OLod"))})(this,function(L){return L.mode.OFB=function(){var g=L.lib.BlockCipherMode.extend(),A=g.Encryptor=g.extend({processBlock:function(b,y){var x=this._cipher,w=x.blockSize,f=this._iv,_=this._keystream;f&&(_=this._keystream=f.slice(0),this._iv=void 0),x.encryptBlock(_,0);for(var d=0;d<w;d++)b[y+d]^=_[d]}});return g.Decryptor=A,g}(),L.mode.OFB})},"SA+Z":function(M,Y,o){var L=o("wTVA"),g=o("EbDI"),A=o("ZhPi"),b=o("wkBT");function y(x){return L(x)||g(x)||A(x)||b()}M.exports=y,M.exports.__esModule=!0,M.exports.default=M.exports},SJMd:function(M,Y){/**
* @license
* Copyright (C) 2006 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* 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 o,L,g,A=!1,b,y;window.PR_SHOULD_USE_CONTINUATION=!0;var x,w;(function(){var f=window,_=["break,continue,do,else,for,if,return,while"],d=[_,"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"],r=[d,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],u=[r,"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"],t=[r,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],a=[r,"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"],n="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",i=[r,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],h="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",l=[_,"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"],s=[_,"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"],p=[_,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],O=[u,a,t,i,h,l,s,p],S=/^(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",P="kwd",R="com",E="typ",C="lit",m="pun",T="pln",I="tag",D="dec",N="src",z="atn",F="atv",W="nocode",K="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function B(le){for(var $=0,J=!1,te=!1,De=0,Te=le.length;De<Te;++De){var ke=le[De];if(ke.ignoreCase)te=!0;else if(/[a-z]/i.test(ke.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){J=!0,te=!1;break}}var tt={b:8,t:9,n:10,v:11,f:12,r:13};function ot(Je){var Ue=Je.charCodeAt(0);if(Ue!==92)return Ue;var ft=Je.charAt(1);return Ue=tt[ft],Ue||("0"<=ft&&ft<="7"?parseInt(Je.substring(1),8):ft==="u"||ft==="x"?parseInt(Je.substring(2),16):Je.charCodeAt(1))}function gt(Je){if(Je<32)return(Je<16?"\\x0":"\\x")+Je.toString(16);var Ue=String.fromCharCode(Je);return Ue==="\\"||Ue==="-"||Ue==="]"||Ue==="^"?"\\"+Ue:Ue}function Et(Je){var Ue=Je.substring(1,Je.length-1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g")),ft=[],kt=Ue[0]==="^",ht=["["];kt&&ht.push("^");for(var _t=kt?1:0,Qe=Ue.length;_t<Qe;++_t){var He=Ue[_t];if(/\\[bdsw]/i.test(He))ht.push(He);else{var Ge=ot(He),Ee;_t+2<Qe&&Ue[_t+1]==="-"?(Ee=ot(Ue[_t+2]),_t+=2):Ee=Ge,ft.push([Ge,Ee]),Ee<65||Ge>122||(Ee<65||Ge>90||ft.push([Math.max(65,Ge)|32,Math.min(Ee,90)|32]),Ee<97||Ge>122||ft.push([Math.max(97,Ge)&~32,Math.min(Ee,122)&~32]))}}ft.sort(function(Ke,st){return Ke[0]-st[0]||st[1]-Ke[1]});for(var Ae=[],Fe=[],_t=0;_t<ft.length;++_t){var We=ft[_t];We[0]<=Fe[1]+1?Fe[1]=Math.max(Fe[1],We[1]):Ae.push(Fe=We)}for(var _t=0;_t<Ae.length;++_t){var We=Ae[_t];ht.push(gt(We[0])),We[1]>We[0]&&(We[1]+1>We[0]&&ht.push("-"),ht.push(gt(We[1])))}return ht.push("]"),ht.join("")}function xt(Je){for(var Ue=Je.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")),ft=Ue.length,kt=[],ht=0,_t=0;ht<ft;++ht){var Qe=Ue[ht];if(Qe==="(")++_t;else if(Qe.charAt(0)==="\\"){var He=+Qe.substring(1);He&&(He<=_t?kt[He]=-1:Ue[ht]=gt(He))}}for(var ht=1;ht<kt.length;++ht)kt[ht]===-1&&(kt[ht]=++$);for(var ht=0,_t=0;ht<ft;++ht){var Qe=Ue[ht];if(Qe==="(")++_t,kt[_t]||(Ue[ht]="(?:");else if(Qe.charAt(0)==="\\"){var He=+Qe.substring(1);He&&He<=_t&&(Ue[ht]="\\"+kt[He])}}for(var ht=0;ht<ft;++ht)Ue[ht]==="^"&&Ue[ht+1]!=="^"&&(Ue[ht]="");if(Je.ignoreCase&&J)for(var ht=0;ht<ft;++ht){var Qe=Ue[ht],Ge=Qe.charAt(0);Qe.length>=2&&Ge==="["?Ue[ht]=Et(Qe):Ge!=="\\"&&(Ue[ht]=Qe.replace(/[a-zA-Z]/g,function(Fe){var We=Fe.charCodeAt(0);return"["+String.fromCharCode(We&~32,We|32)+"]"}))}return Ue.join("")}for(var St=[],De=0,Te=le.length;De<Te;++De){var ke=le[De];if(ke.global||ke.multiline)throw new Error(""+ke);St.push("(?:"+xt(ke)+")")}return new RegExp(St.join("|"),te?"gi":"g")}function k(le,$){var J=/(?:^|\s)nocode(?:\s|$)/,te=[],De=0,Te=[],ke=0;function tt(ot){var gt=ot.nodeType;if(gt==1){if(J.test(ot.className))return;for(var Et=ot.firstChild;Et;Et=Et.nextSibling)tt(Et);var xt=ot.nodeName.toLowerCase();(xt==="br"||xt==="li")&&(te[ke]=`
`,Te[ke<<1]=De++,Te[ke++<<1|1]=ot)}else if(gt==3||gt==4){var St=ot.nodeValue;St.length&&($?St=St.replace(/\r\n?/g,`
`):St=St.replace(/[ \t\r\n]+/g," "),te[ke]=St,Te[ke<<1]=De,De+=St.length,Te[ke++<<1|1]=ot)}}return tt(le),{sourceCode:te.join("").replace(/\n$/,""),spans:Te}}function G(le,$,J,te,De){if(!J)return;var Te={sourceNode:le,pre:1,langExtension:null,numberLines:null,sourceCode:J,spans:null,basePos:$,decorations:null};te(Te),De.push.apply(De,Te.decorations)}var ne=/\S/;function fe(le){for(var $=void 0,J=le.firstChild;J;J=J.nextSibling){var te=J.nodeType;$=te===1?$?le:J:te===3&&ne.test(J.nodeValue)?le:$}return $===le?void 0:$}function de(le,$){var J={},te;(function(){for(var ke=le.concat($),tt=[],ot={},gt=0,Et=ke.length;gt<Et;++gt){var xt=ke[gt],St=xt[3];if(St)for(var Je=St.length;--Je>=0;)J[St.charAt(Je)]=xt;var Ue=xt[1],ft=""+Ue;ot.hasOwnProperty(ft)||(tt.push(Ue),ot[ft]=null)}tt.push(/[\0-\uffff]/),te=B(tt)})();var De=$.length,Te=function(ke){for(var tt=ke.sourceCode,ot=ke.basePos,gt=ke.sourceNode,Et=[ot,T],xt=0,St=tt.match(te)||[],Je={},Ue=0,ft=St.length;Ue<ft;++Ue){var kt=St[Ue],ht=Je[kt],_t=void 0,Qe;if(typeof ht=="string")Qe=!1;else{var He=J[kt.charAt(0)];if(He)_t=kt.match(He[1]),ht=He[0];else{for(var Ge=0;Ge<De;++Ge)if(He=$[Ge],_t=kt.match(He[1]),_t){ht=He[0];break}_t||(ht=T)}Qe=ht.length>=5&&ht.substring(0,5)==="lang-",Qe&&!(_t&&typeof _t[1]=="string")&&(Qe=!1,ht=N),Qe||(Je[kt]=ht)}var Ee=xt;if(xt+=kt.length,!Qe)Et.push(ot+Ee,ht);else{var Ae=_t[1],Fe=kt.indexOf(Ae),We=Fe+Ae.length;_t[2]&&(We=kt.length-_t[2].length,Fe=We-Ae.length);var Ke=ht.substring(5);G(gt,ot+Ee,kt.substring(0,Fe),Te,Et),G(gt,ot+Ee+Fe,Ae,se(Ke,Ae),Et),G(gt,ot+Ee+We,kt.substring(We),Te,Et)}}ke.decorations=Et};return Te}function xe(le){var $=[],J=[];le.tripleQuotedStrings?$.push([v,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):le.multiLineStrings?$.push([v,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):$.push([v,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),le.verbatimStrings&&J.push([v,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var te=le.hashComments;te&&(le.cStyleComments?(te>1?$.push([R,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):$.push([R,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),J.push([v,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):$.push([R,/^#[^\r\n]*/,null,"#"])),le.cStyleComments&&(J.push([R,/^\/\/[^\r\n]*/,null]),J.push([R,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var De=le.regexLiterals;if(De){var Te=De>1?"":`
\r`,ke=Te?".":"[\\S\\s]",tt="/(?=[^/*"+Te+"])(?:[^/\\x5B\\x5C"+Te+"]|\\x5C"+ke+"|\\x5B(?:[^\\x5C\\x5D"+Te+"]|\\x5C"+ke+")*(?:\\x5D|$))+/";J.push(["lang-regex",RegExp("^"+K+"("+tt+")")])}var ot=le.types;ot&&J.push([E,ot]);var gt=(""+le.keywords).replace(/^ | $/g,"");gt.length&&J.push([P,new RegExp("^(?:"+gt.replace(/[\s,]+/g,"|")+")\\b"),null]),$.push([T,/^\s+/,null,` \r
\xA0`]);var Et="^.[^\\s\\w.$@'\"`/\\\\]*";return le.regexLiterals&&(Et+="(?!s*/)"),J.push([C,/^@[a-z_$][a-z_$@0-9]*/i,null],[E,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[T,/^[a-z_$][a-z_$@0-9]*/i,null],[C,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[T,/^\\[\s\S]?/,null],[m,new RegExp(Et),null]),de($,J)}var Oe=xe({keywords:O,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function ce(le,$,J){for(var te=/(?:^|\s)nocode(?:\s|$)/,De=/\r\n?|\n/,Te=le.ownerDocument,ke=Te.createElement("li");le.firstChild;)ke.appendChild(le.firstChild);var tt=[ke];function ot(Ue){var ft=Ue.nodeType;if(ft==1&&!te.test(Ue.className))if(Ue.nodeName==="br")gt(Ue),Ue.parentNode&&Ue.parentNode.removeChild(Ue);else for(var kt=Ue.firstChild;kt;kt=kt.nextSibling)ot(kt);else if((ft==3||ft==4)&&J){var ht=Ue.nodeValue,_t=ht.match(De);if(_t){var Qe=ht.substring(0,_t.index);Ue.nodeValue=Qe;var He=ht.substring(_t.index+_t[0].length);if(He){var Ge=Ue.parentNode;Ge.insertBefore(Te.createTextNode(He),Ue.nextSibling)}gt(Ue),Qe||Ue.parentNode.removeChild(Ue)}}}function gt(Ue){for(;!Ue.nextSibling;)if(Ue=Ue.parentNode,!Ue)return;function ft(_t,Qe){var He=Qe?_t.cloneNode(!1):_t,Ge=_t.parentNode;if(Ge){var Ee=ft(Ge,1),Ae=_t.nextSibling;Ee.appendChild(He);for(var Fe=Ae;Fe;Fe=Ae)Ae=Fe.nextSibling,Ee.appendChild(Fe)}return He}for(var kt=ft(Ue.nextSibling,0),ht;(ht=kt.parentNode)&&ht.nodeType===1;)kt=ht;tt.push(kt)}for(var Et=0;Et<tt.length;++Et)ot(tt[Et]);$===($|0)&&tt[0].setAttribute("value",$);var xt=Te.createElement("ol");xt.className="linenums";for(var St=Math.max(0,$-1|0)||0,Et=0,Je=tt.length;Et<Je;++Et)ke=tt[Et],ke.className="L"+(Et+St)%10,ke.firstChild||ke.appendChild(Te.createTextNode("\xA0")),xt.appendChild(ke);le.appendChild(xt)}function be(le){var $=/\bMSIE\s(\d+)/.exec(navigator.userAgent);$=$&&+$[1]<=8;var J=/\n/g,te=le.sourceCode,De=te.length,Te=0,ke=le.spans,tt=ke.length,ot=0,gt=le.decorations,Et=gt.length,xt=0;gt[Et]=De;var St,Je;for(Je=St=0;Je<Et;)gt[Je]!==gt[Je+2]?(gt[St++]=gt[Je++],gt[St++]=gt[Je++]):Je+=2;for(Et=St,Je=St=0;Je<Et;){for(var Ue=gt[Je],ft=gt[Je+1],kt=Je+2;kt+2<=Et&&gt[kt+1]===ft;)kt+=2;gt[St++]=Ue,gt[St++]=ft,Je=kt}Et=gt.length=St;var ht=le.sourceNode,_t="";ht&&(_t=ht.style.display,ht.style.display="none");try{for(var Qe=null;ot<tt;){var He=ke[ot],Ge=ke[ot+2]||De,Ee=gt[xt+2]||De,kt=Math.min(Ge,Ee),Ae=ke[ot+1],Fe;if(Ae.nodeType!==1&&(Fe=te.substring(Te,kt))){$&&(Fe=Fe.replace(J,"\r")),Ae.nodeValue=Fe;var We=Ae.ownerDocument,Ke=We.createElement("span");Ke.className=gt[xt+1];var st=Ae.parentNode;st.replaceChild(Ke,Ae),Ke.appendChild(Ae),Te<Ge&&(ke[ot+1]=Ae=We.createTextNode(te.substring(kt,Ge)),st.insertBefore(Ae,Ke.nextSibling))}Te=kt,Te>=Ge&&(ot+=2),Te>=Ee&&(xt+=2)}}finally{ht&&(ht.style.display=_t)}}var ve={};function ue(le,$){for(var J=$.length;--J>=0;){var te=$[J];ve.hasOwnProperty(te)?f.console&&console.warn("cannot override language handler %s",te):ve[te]=le}}function se(le,$){return le&&ve.hasOwnProperty(le)||(le=/^\s*</.test($)?"default-markup":"default-code"),ve[le]}ue(Oe,["default-code"]),ue(de([],[[T,/^[^<?]+/],[D,/^<!\w[^>]*(?:>|$)/],[R,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[m,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),ue(de([[T,/^[\s]+/,null,` \r
`],[F,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[I,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[z,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[m,/^[=<>\/]+/],["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"]),ue(de([],[[F,/^[\s\S]+/]]),["uq.val"]),ue(xe({keywords:u,hashComments:!0,cStyleComments:!0,types:S}),["c","cc","cpp","cxx","cyc","m"]),ue(xe({keywords:"null,true,false"}),["json"]),ue(xe({keywords:a,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:S}),["cs"]),ue(xe({keywords:t,cStyleComments:!0}),["java"]),ue(xe({keywords:p,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),ue(xe({keywords:l,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),ue(xe({keywords:h,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),ue(xe({keywords:s,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),ue(xe({keywords:i,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),ue(xe({keywords:n,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),ue(de([],[[v,/^[\s\S]+/]]),["regex"]);function q(le){var $=le.langExtension;try{var J=k(le.sourceNode,le.pre),te=J.sourceCode;le.sourceCode=te,le.spans=J.spans,le.basePos=0,se($,te)(le),be(le)}catch(De){f.console&&console.log(De&&De.stack||De)}}function me(le,$,J){var te=J||!1,De=$||null,Te=document.createElement("div");Te.innerHTML="<pre>"+le+"</pre>",Te=Te.firstChild,te&&ce(Te,te,!0);var ke={langExtension:De,numberLines:te,sourceNode:Te,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return q(ke),Te.innerHTML}function re(le,$){var J=$||document.body,te=J.ownerDocument||document;function De(He){return J.getElementsByTagName(He)}for(var Te=[De("pre"),De("code"),De("xmp")],ke=[],tt=0;tt<Te.length;++tt)for(var ot=0,gt=Te[tt].length;ot<gt;++ot)ke.push(Te[tt][ot]);Te=null;var Et=Date;Et.now||(Et={now:function(){return+new Date}});var xt=0,St=/\blang(?:uage)?-([\w.]+)(?!\S)/,Je=/\bprettyprint\b/,Ue=/\bprettyprinted\b/,ft=/pre|xmp/i,kt=/^code$/i,ht=/^(?:pre|code|xmp)$/i,_t={};function Qe(){for(var He=f.PR_SHOULD_USE_CONTINUATION?Et.now()+250:Infinity;xt<ke.length&&Et.now()<He;xt++){for(var Ge=ke[xt],Ee=_t,Ae=Ge;Ae=Ae.previousSibling;){var Fe=Ae.nodeType,We=(Fe===7||Fe===8)&&Ae.nodeValue;if(We?!/^\??prettify\b/.test(We):Fe!==3||/\S/.test(Ae.nodeValue))break;if(We){Ee={},We.replace(/\b(\w+)=([\w:.%+-]+)/g,function(ut,mt,Pt){Ee[mt]=Pt});break}}var Ke=Ge.className;if((Ee!==_t||Je.test(Ke))&&!Ue.test(Ke)){for(var st=!1,Ot=Ge.parentNode;Ot;Ot=Ot.parentNode){var Bt=Ot.tagName;if(ht.test(Bt)&&Ot.className&&Je.test(Ot.className)){st=!0;break}}if(!st){Ge.className+=" prettyprinted";var an=Ee.lang;if(!an){an=Ke.match(St);var Kt;!an&&(Kt=fe(Ge))&&kt.test(Kt.tagName)&&(an=Kt.className.match(St)),an&&(an=an[1])}var bt;if(ft.test(Ge.tagName))bt=1;else{var Be=Ge.currentStyle,at=te.defaultView,it=Be?Be.whiteSpace:at&&at.getComputedStyle?at.getComputedStyle(Ge,null).getPropertyValue("white-space"):0;bt=it&&it.substring(0,3)==="pre"}var Me=Ee.linenums;(Me=Me==="true"||+Me)||(Me=Ke.match(/\blinenums\b(?::(\d+))?/),Me=Me?Me[1]&&Me[1].length?+Me[1]:!0:!1),Me&&ce(Ge,Me,bt);var Ye={langExtension:an,sourceNode:Ge,numberLines:Me,pre:bt,sourceCode:null,basePos:null,spans:null,decorations:null};q(Ye)}}}xt<ke.length?f.setTimeout(Qe,250):typeof le=="function"&&le()}Qe()}var ie=f.PR={createSimpleLexer:de,registerLangHandler:ue,sourceDecorator:xe,PR_ATTRIB_NAME:z,PR_ATTRIB_VALUE:F,PR_COMMENT:R,PR_DECLARATION:D,PR_KEYWORD:P,PR_LITERAL:C,PR_NOCODE:W,PR_PLAIN:T,PR_PUNCTUATION:m,PR_SOURCE:N,PR_STRING:v,PR_TAG:I,PR_TYPE:E,prettyPrintOne:A?f.prettyPrintOne=me:x=me,prettyPrint:w=A?f.prettyPrint=re:w=re},we=f.define;typeof we=="function"&&we.amd&&we("google-code-prettify",[],function(){return ie})})()},SLjR:function(M,Y,o){},SMhR:function(M,Y){M.exports="data:image/png;base64,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"},Se0u:function(M,Y,o){},TGq3:function(M,Y,o){M.exports=o.p+"static/lockclose.365036e8.svg"},TXwP:function(M,Y,o){var L,g;(function(){var A;(function(){"use strict";var y=[,,function(_){function d(t){this.__parent=t,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}d.prototype.clone_empty=function(){var t=new d(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},d.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},d.prototype.has_match=function(t){for(var a=this.__items.length-1;a>=0;a--)if(this.__items[a].match(t))return!0;return!1},d.prototype.set_indent=function(t,a){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=a||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},d.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},d.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},d.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,t.__items[0]===" "&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1},d.prototype.is_empty=function(){return this.__items.length===0},d.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},d.prototype.push=function(t){this.__items.push(t);var a=t.lastIndexOf(`
`);a!==-1?this.__character_count=t.length-a:this.__character_count+=t.length},d.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},d.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},d.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},d.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},d.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t};function r(t,a){this.__cache=[""],this.__indent_size=t.indent_size,this.__indent_string=t.indent_char,t.indent_with_tabs||(this.__indent_string=new Array(t.indent_size+1).join(t.indent_char)),a=a||"",t.indent_level>0&&(a=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=a,this.__base_string_length=a.length}r.prototype.get_indent_size=function(t,a){var n=this.__base_string_length;return a=a||0,t<0&&(n=0),n+=t*this.__indent_size,n+=a,n},r.prototype.get_indent_string=function(t,a){var n=this.__base_string;return a=a||0,t<0&&(t=0,n=""),a+=t*this.__indent_size,this.__ensure_cache(a),n+=this.__cache[a],n},r.prototype.__ensure_cache=function(t){for(;t>=this.__cache.length;)this.__add_column()},r.prototype.__add_column=function(){var t=this.__cache.length,a=0,n="";this.__indent_size&&t>=this.__indent_size&&(a=Math.floor(t/this.__indent_size),t-=a*this.__indent_size,n=new Array(a+1).join(this.__indent_string)),t&&(n+=new Array(t+1).join(" ")),this.__cache.push(n)};function u(t,a){this.__indent_cache=new r(t,a),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new d(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}u.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},u.prototype.get_line_number=function(){return this.__lines.length},u.prototype.get_indent_string=function(t,a){return this.__indent_cache.get_indent_string(t,a)},u.prototype.get_indent_size=function(t,a){return this.__indent_cache.get_indent_size(t,a)},u.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},u.prototype.add_new_line=function(t){return this.is_empty()||!t&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},u.prototype.get_code=function(t){this.trim(!0);var a=this.current_line.pop();a&&(a[a.length-1]===`
`&&(a=a.replace(/\n+$/g,"")),this.current_line.push(a)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join(`
`);return t!==`
`&&(n=n.replace(/[\n]/g,t)),n},u.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},u.prototype.set_indent=function(t,a){return t=t||0,a=a||0,this.next_line.set_indent(t,a),this.__lines.length>1?(this.current_line.set_indent(t,a),!0):(this.current_line.set_indent(),!1)},u.prototype.add_raw_token=function(t){for(var a=0;a<t.newlines;a++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(t.whitespace_before),this.current_line.push(t.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},u.prototype.add_token=function(t){this.__add_space_before_token(),this.current_line.push(t),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},u.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},u.prototype.remove_indent=function(t){for(var a=this.__lines.length;t<a;)this.__lines[t]._remove_indent(),t++;this.current_line._remove_wrap_indent()},u.prototype.trim=function(t){for(t=t===void 0?!1:t,this.current_line.trim();t&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},u.prototype.just_added_newline=function(){return this.current_line.is_empty()},u.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},u.prototype.ensure_empty_line_above=function(t,a){for(var n=this.__lines.length-2;n>=0;){var i=this.__lines[n];if(i.is_empty())break;if(i.item(0).indexOf(t)!==0&&i.item(-1)!==a){this.__lines.splice(n+1,0,new d(this)),this.previous_line=this.__lines[this.__lines.length-2];break}n--}},_.exports.Output=u},,,,function(_){function d(t,a){this.raw_options=r(t,a),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}d.prototype._get_array=function(t,a){var n=this.raw_options[t],i=a||[];return typeof n=="object"?n!==null&&typeof n.concat=="function"&&(i=n.concat()):typeof n=="string"&&(i=n.split(/[^a-zA-Z0-9_\/\-]+/)),i},d.prototype._get_boolean=function(t,a){var n=this.raw_options[t],i=n===void 0?!!a:!!n;return i},d.prototype._get_characters=function(t,a){var n=this.raw_options[t],i=a||"";return typeof n=="string"&&(i=n.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),i},d.prototype._get_number=function(t,a){var n=this.raw_options[t];a=parseInt(a,10),isNaN(a)&&(a=0);var i=parseInt(n,10);return isNaN(i)&&(i=a),i},d.prototype._get_selection=function(t,a,n){var i=this._get_selection_list(t,a,n);if(i.length!==1)throw new Error("Invalid Option Value: The option '"+t+`' can only be one of the following values:
`+a+`
You passed in: '`+this.raw_options[t]+"'");return i[0]},d.prototype._get_selection_list=function(t,a,n){if(!a||a.length===0)throw new Error("Selection list cannot be empty.");if(n=n||[a[0]],!this._is_valid_selection(n,a))throw new Error("Invalid Default Value!");var i=this._get_array(t,n);if(!this._is_valid_selection(i,a))throw new Error("Invalid Option Value: The option '"+t+`' can contain only the following values:
`+a+`
You passed in: '`+this.raw_options[t]+"'");return i},d.prototype._is_valid_selection=function(t,a){return t.length&&a.length&&!t.some(function(n){return a.indexOf(n)===-1})};function r(t,a){var n={};t=u(t);var i;for(i in t)i!==a&&(n[i]=t[i]);if(a&&t[a])for(i in t[a])n[i]=t[a][i];return n}function u(t){var a={},n;for(n in t){var i=n.replace(/-/g,"_");a[i]=t[n]}return a}_.exports.Options=d,_.exports.normalizeOpts=u,_.exports.mergeOpts=r},,function(_){var d=RegExp.prototype.hasOwnProperty("sticky");function r(u){this.__input=u||"",this.__input_length=this.__input.length,this.__position=0}r.prototype.restart=function(){this.__position=0},r.prototype.back=function(){this.__position>0&&(this.__position-=1)},r.prototype.hasNext=function(){return this.__position<this.__input_length},r.prototype.next=function(){var u=null;return this.hasNext()&&(u=this.__input.charAt(this.__position),this.__position+=1),u},r.prototype.peek=function(u){var t=null;return u=u||0,u+=this.__position,u>=0&&u<this.__input_length&&(t=this.__input.charAt(u)),t},r.prototype.__match=function(u,t){u.lastIndex=t;var a=u.exec(this.__input);return a&&!(d&&u.sticky)&&(a.index!==t&&(a=null)),a},r.prototype.test=function(u,t){return t=t||0,t+=this.__position,t>=0&&t<this.__input_length?!!this.__match(u,t):!1},r.prototype.testChar=function(u,t){var a=this.peek(t);return u.lastIndex=0,a!==null&&u.test(a)},r.prototype.match=function(u){var t=this.__match(u,this.__position);return t?this.__position+=t[0].length:t=null,t},r.prototype.read=function(u,t,a){var n="",i;return u&&(i=this.match(u),i&&(n+=i[0])),t&&(i||!u)&&(n+=this.readUntil(t,a)),n},r.prototype.readUntil=function(u,t){var a="",n=this.__position;u.lastIndex=this.__position;var i=u.exec(this.__input);return i?(n=i.index,t&&(n+=i[0].length)):n=this.__input_length,a=this.__input.substring(this.__position,n),this.__position=n,a},r.prototype.readUntilAfter=function(u){return this.readUntil(u,!0)},r.prototype.get_regexp=function(u,t){var a=null,n="g";return t&&d&&(n="y"),typeof u=="string"&&u!==""?a=new RegExp(u,n):u&&(a=new RegExp(u.source,n)),a},r.prototype.get_literal_regexp=function(u){return RegExp(u.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},r.prototype.peekUntilAfter=function(u){var t=this.__position,a=this.readUntilAfter(u);return this.__position=t,a},r.prototype.lookBack=function(u){var t=this.__position-1;return t>=u.length&&this.__input.substring(t-u.length,t).toLowerCase()===u},_.exports.InputScanner=r},,,,,function(_){function d(r,u){r=typeof r=="string"?r:r.source,u=typeof u=="string"?u:u.source,this.__directives_block_pattern=new RegExp(r+/ beautify( \w+[:]\w+)+ /.source+u,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(r+/\sbeautify\signore:end\s/.source+u,"g")}d.prototype.get_directives=function(r){if(!r.match(this.__directives_block_pattern))return null;var u={};this.__directive_pattern.lastIndex=0;for(var t=this.__directive_pattern.exec(r);t;)u[t[1]]=t[2],t=this.__directive_pattern.exec(r);return u},d.prototype.readIgnored=function(r){return r.readUntilAfter(this.__directives_end_ignore_pattern)},_.exports.Directives=d},,function(_,d,r){var u=r(16).Beautifier,t=r(17).Options;function a(n,i){var h=new u(n,i);return h.beautify()}_.exports=a,_.exports.defaultOptions=function(){return new t}},function(_,d,r){var u=r(17).Options,t=r(2).Output,a=r(8).InputScanner,n=r(13).Directives,i=new n(/\/\*/,/\*\//),h=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,s=/\s/,p=/(?:\s|\n)+/g,O=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,S=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function v(P,R){this._source_text=P||"",this._options=new u(R),this._ch=null,this._input=null,this.NESTED_AT_RULE={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},this.CONDITIONAL_GROUP_RULE={"@media":!0,"@supports":!0,"@document":!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}v.prototype.eatString=function(P){var R="";for(this._ch=this._input.next();this._ch;){if(R+=this._ch,this._ch==="\\")R+=this._input.next();else if(P.indexOf(this._ch)!==-1||this._ch===`
`)break;this._ch=this._input.next()}return R},v.prototype.eatWhitespace=function(P){for(var R=s.test(this._input.peek()),E=0;s.test(this._input.peek());)this._ch=this._input.next(),P&&this._ch===`
`&&((E===0||E<this._options.max_preserve_newlines)&&(E++,this._output.add_new_line(!0)));return R},v.prototype.foundNestedPseudoClass=function(){for(var P=0,R=1,E=this._input.peek(R);E;){if(E==="{")return!0;if(E==="(")P+=1;else if(E===")"){if(P===0)return!1;P-=1}else if(E===";"||E==="}")return!1;R++,E=this._input.peek(R)}return!1},v.prototype.print_string=function(P){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(P)},v.prototype.preserveSingleSpace=function(P){P&&(this._output.space_before_token=!0)},v.prototype.indent=function(){this._indentLevel++},v.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},v.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var P=this._source_text,R=this._options.eol;R==="auto"&&(R=`
`,P&&h.test(P||"")&&(R=P.match(h)[0])),P=P.replace(l,`
`);var E=P.match(/^[\t ]*/)[0];this._output=new t(this._options,E),this._input=new a(P),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var C=0,m=!1,T=!1,I=!1,D=!1,N=!1,z=!1,F=this._ch,W=!1,K,B,k;K=this._input.read(p),B=K!=="",k=F,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),F=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var G=this._input.read(O),ne=i.get_directives(G);ne&&ne.ignore==="start"&&(G+=i.readIgnored(this._input)),this.print_string(G),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(S)),this.eatWhitespace(!0);else if(this._ch==="@"||this._ch==="$")if(this.preserveSingleSpace(B),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var fe=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);fe.match(/[ :]$/)&&(fe=this.eatString(": ").replace(/\s$/,""),this.print_string(fe),this._output.space_before_token=!0),fe=fe.replace(/\s$/,""),fe==="extend"?D=!0:fe==="import"&&(N=!0),fe in this.NESTED_AT_RULE?(this._nestedLevel+=1,fe in this.CONDITIONAL_GROUP_RULE&&(I=!0)):!m&&C===0&&fe.indexOf(":")!==-1&&(T=!0,this.indent())}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(B),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")T&&(T=!1,this.outdent()),I?(I=!1,m=this._indentLevel>=this._nestedLevel):m=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&m&&(this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",",")),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(k==="("?this._output.space_before_token=!1:k!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),k==="{"&&this._output.trim(!0),N=!1,D=!1,T&&(this.outdent(),T=!1),this.print_string(this._ch),m=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&(this._input.peek()!=="}"&&this._output.add_new_line(!0)),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var de=0;de<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;de++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[de])){W=!0;break}(m||I)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!D&&C===0?(this.print_string(":"),T||(T=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var xe=k==='"'||k==="'";this.preserveSingleSpace(xe||B),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")W=!1,C===0?(T&&(this.outdent(),T=!1),D=!1,N=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),C++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),C&&(C--,this.outdent()));else{var Oe=!1;this._input.lookBack("with")&&(Oe=!0),this.preserveSingleSpace(B||Oe),this.print_string(this._ch),T&&k==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),z=!0):(this.eatWhitespace(),C++,this.indent())}else if(this._ch===")")C&&(C--,this.outdent()),z&&this._input.peek()===";"&&this._options.selector_separator_newline&&(z=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!T||z)&&C===0&&!N&&!D?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!T&&C===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&s.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(B),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),s.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var ce=k==='"'||k==="'";this.preserveSingleSpace(ce||B),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
`&&W&&this._output.add_new_line()}var be=this._output.get_code(R);return be},_.exports.Beautifier=v},function(_,d,r){var u=r(6).Options;function t(a){u.call(this,a,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var n=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||n;var i=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var h=0;h<i.length;h++)i[h]!=="expand"?this.brace_style="collapse":this.brace_style=i[h]}t.prototype=new u,_.exports.Options=t}],x={};function w(_){var d=x[_];if(d!==void 0)return d.exports;var r=x[_]={exports:{}};return y[_](r,r.exports,w),r.exports}var f=w(15);A=f})();var b=A;!(L=[],g=function(){return{css_beautify:b}}.apply(Y,L),g!==void 0&&(M.exports=g))})()},UGPy:function(M,Y,o){M.exports={practice:"practice___3ZVzw",right:"right___QGXbw",title:"title___1fvdS",content:"content___10SYj",des:"des___V2RYR",mainBody:"mainBody___3vP2d",selectBox:"selectBox___1vC0V",smallType:"smallType___2CvJP",evaluating:"evaluating___rLyh5",evaluatingLabel:"evaluatingLabel___3RsVg",mask:"mask___2kc6a",evaluatingS1:"evaluatingS1___2HzdH",serviceSettingWrap:"serviceSettingWrap___250aS",serviceBox:"serviceBox___1BL80",serviceSetLeft:"serviceSetLeft___2q-GU",serviceSetInput:"serviceSetInput___2hDqz",serviceSetTip:"serviceSetTip___29Bop",btns:"btns___1NoLi",popover:"popover___1Xuw5"}},UUDw:function(M,Y,o){M.exports={buttonFixed:"buttonFixed___2zLVJ",button:"button___-JgFH",buttonWrap:"buttonWrap___aZhhk"}},"Ufr+":function(M,Y){M.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAACL0lEQVRIS72WvU9TURTAf4e+qBUritRXoYkaB0w0alz4B3RQExTSbjpooouiddGVxf0hTjKQ+MkANhiVwYTNwcHFRuNgdIHGYiMmVWnja6+5La8ttq99Vesd3/n4nXPuOec+ocHpu6nCecVJFCcUHBDo0eoK0gKvEZ76hNnFy7Lg5kbqCXrGVa8vzyhwVsBoFIQCG5jM+xhNj0jyd90agGmpQVHcQwg0clwjU2SUcDoVk8fVsjUAc0yNiMICOlpyXlEuKCGWuiLjzqcyoBg5xP/CueOzoGDIyaQI0DU3bN61XBa3NBUZ22CvvpMiwLTUbYHzf1gWDpmw9B2S3yoeFEykYnJBdCvaBT4265Z6cEMgNgBn9sPQNHz4ugZgGx3sltCYuojiVqvRd/th4jjsC0J0BhKf63gQLknIUs+AY60A+rfB3UEIboTIDLz65Go9J6alFgT6vAIOboeHp2CrH64+h6m37pYKFnUGWWB9tZrfAOso5Gy4Ng/ZfEl62ISpYQisgzsJuD7fNKxcXUCoE+JR2NUFiSU49wQ2GDAbBV3798tw5D7kVsENMDnXEoUDEI9AeDN8WYGsDb0B0FM0PA0va7ZOLcYpkesl7+wqQXZsqhh7LI1jMNe0TfdsKUGCnfDjJwxMQnqlae1LCrpNvQxafzc8isCDN3DjhTfneo0XB83rqtADlczAsu45D6e8Kv7LslvNon3r2sm4rQ9OGdLOJ9OBtPXRr26Qf/Hb8gvtaezbqqd4vgAAAABJRU5ErkJggg=="},UqFu:function(M,Y,o){"use strict";o.d(Y,"a",function(){return L});var L=function(A){var b=document.createElement("textarea");return b.value=A,b.value}},"VrN/":function(M,Y,o){(function(L,g){M.exports=g()})(this,function(){"use strict";var L=navigator.userAgent,g=navigator.platform,A=/gecko\/\d/i.test(L),b=/MSIE \d/.test(L),y=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(L),x=/Edge\/(\d+)/.exec(L),w=b||y||x,f=w&&(b?document.documentMode||6:+(x||y)[1]),_=!x&&/WebKit\//.test(L),d=_&&/Qt\/\d+\.\d+/.test(L),r=!x&&/Chrome\//.test(L),u=/Opera\//.test(L),t=/Apple Computer/.test(navigator.vendor),a=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(L),n=/PhantomJS/.test(L),i=!x&&/AppleWebKit/.test(L)&&/Mobile\/\w+/.test(L),h=/Android/.test(L),l=i||h||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(L),s=i||/Mac/.test(g),p=/\bCrOS\b/.test(L),O=/win/i.test(g),S=u&&L.match(/Version\/(\d*\.\d*)/);S&&(S=Number(S[1])),S&&S>=15&&(u=!1,_=!0);var v=s&&(d||u&&(S==null||S<12.11)),P=A||w&&f>=9;function R(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var E=function(e,c){var j=e.className,U=R(c).exec(j);if(U){var H=j.slice(U.index+U[0].length);e.className=j.slice(0,U.index)+(H?U[1]+H:"")}};function C(e){for(var c=e.childNodes.length;c>0;--c)e.removeChild(e.firstChild);return e}function m(e,c){return C(e).appendChild(c)}function T(e,c,j,U){var H=document.createElement(e);if(j&&(H.className=j),U&&(H.style.cssText=U),typeof c=="string")H.appendChild(document.createTextNode(c));else if(c)for(var ee=0;ee<c.length;++ee)H.appendChild(c[ee]);return H}function I(e,c,j,U){var H=T(e,c,j,U);return H.setAttribute("role","presentation"),H}var D;document.createRange?D=function(e,c,j,U){var H=document.createRange();return H.setEnd(U||e,j),H.setStart(e,c),H}:D=function(e,c,j){var U=document.body.createTextRange();try{U.moveToElementText(e.parentNode)}catch(H){return U}return U.collapse(!0),U.moveEnd("character",j),U.moveStart("character",c),U};function N(e,c){if(c.nodeType==3&&(c=c.parentNode),e.contains)return e.contains(c);do if(c.nodeType==11&&(c=c.host),c==e)return!0;while(c=c.parentNode)}function z(){var e;try{e=document.activeElement}catch(c){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function F(e,c){var j=e.className;R(c).test(j)||(e.className+=(j?" ":"")+c)}function W(e,c){for(var j=e.split(" "),U=0;U<j.length;U++)j[U]&&!R(j[U]).test(c)&&(c+=" "+j[U]);return c}var K=function(e){e.select()};i?K=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:w&&(K=function(e){try{e.select()}catch(c){}});function B(e){var c=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,c)}}function k(e,c,j){c||(c={});for(var U in e)e.hasOwnProperty(U)&&(j!==!1||!c.hasOwnProperty(U))&&(c[U]=e[U]);return c}function G(e,c,j,U,H){c==null&&(c=e.search(/[^\s\u00a0]/),c==-1&&(c=e.length));for(var ee=U||0,ge=H||0;;){var Se=e.indexOf(" ",ee);if(Se<0||Se>=c)return ge+(c-ee);ge+=Se-ee,ge+=j-ge%j,ee=Se+1}}var ne=function(){this.id=null,this.f=null,this.time=0,this.handler=B(this.onTimeout,this)};ne.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ne.prototype.set=function(e,c){this.f=c;var j=+new Date+e;(!this.id||j<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=j)};function fe(e,c){for(var j=0;j<e.length;++j)if(e[j]==c)return j;return-1}var de=50,xe={toString:function(){return"CodeMirror.Pass"}},Oe={scroll:!1},ce={origin:"*mouse"},be={origin:"+move"};function ve(e,c,j){for(var U=0,H=0;;){var ee=e.indexOf(" ",U);ee==-1&&(ee=e.length);var ge=ee-U;if(ee==e.length||H+ge>=c)return U+Math.min(ge,c-H);if(H+=ee-U,H+=j-H%j,U=ee+1,H>=c)return U}}var ue=[""];function se(e){for(;ue.length<=e;)ue.push(q(ue)+" ");return ue[e]}function q(e){return e[e.length-1]}function me(e,c){for(var j=[],U=0;U<e.length;U++)j[U]=c(e[U],U);return j}function re(e,c,j){for(var U=0,H=j(c);U<e.length&&j(e[U])<=H;)U++;e.splice(U,0,c)}function ie(){}function we(e,c){var j;return Object.create?j=Object.create(e):(ie.prototype=e,j=new ie),c&&k(c,j),j}var le=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function $(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||le.test(e))}function J(e,c){return c?c.source.indexOf("\\w")>-1&&$(e)?!0:c.test(e):$(e)}function te(e){for(var c in e)if(e.hasOwnProperty(c)&&e[c])return!1;return!0}var De=/[\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 Te(e){return e.charCodeAt(0)>=768&&De.test(e)}function ke(e,c,j){for(;(j<0?c>0:c<e.length)&&Te(e.charAt(c));)c+=j;return c}function tt(e,c,j){for(var U=c>j?-1:1;;){if(c==j)return c;var H=(c+j)/2,ee=U<0?Math.ceil(H):Math.floor(H);if(ee==c)return e(ee)?c:j;e(ee)?j=ee:c=ee+U}}function ot(e,c,j,U){if(!e)return U(c,j,"ltr",0);for(var H=!1,ee=0;ee<e.length;++ee){var ge=e[ee];(ge.from<j&&ge.to>c||c==j&&ge.to==c)&&(U(Math.max(ge.from,c),Math.min(ge.to,j),ge.level==1?"rtl":"ltr",ee),H=!0)}H||U(c,j,"ltr")}var gt=null;function Et(e,c,j){var U;gt=null;for(var H=0;H<e.length;++H){var ee=e[H];if(ee.from<c&&ee.to>c)return H;ee.to==c&&(ee.from!=ee.to&&j=="before"?U=H:gt=H),ee.from==c&&(ee.from!=ee.to&&j!="before"?U=H:gt=H)}return U!=null?U:gt}var xt=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",c="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function j(je){return je<=247?e.charAt(je):1424<=je&&je<=1524?"R":1536<=je&&je<=1785?c.charAt(je-1536):1774<=je&&je<=2220?"r":8192<=je&&je<=8203?"w":je==8204?"b":"L"}var U=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,H=/[stwN]/,ee=/[LRr]/,ge=/[Lb1n]/,Se=/[1n]/;function Re(je,vt,Rt){this.level=je,this.from=vt,this.to=Rt}return function(je,vt){var Rt=vt=="ltr"?"L":"R";if(je.length==0||vt=="ltr"&&!U.test(je))return!1;for(var $t=je.length,zt=[],On=0;On<$t;++On)zt.push(j(je.charCodeAt(On)));for(var Fn=0,Zn=Rt;Fn<$t;++Fn){var _r=zt[Fn];_r=="m"?zt[Fn]=Zn:Zn=_r}for(var Nr=0,br=Rt;Nr<$t;++Nr){var Vr=zt[Nr];Vr=="1"&&br=="r"?zt[Nr]="n":ee.test(Vr)&&(br=Vr,Vr=="r"&&(zt[Nr]="R"))}for(var aa=1,ea=zt[0];aa<$t-1;++aa){var Ca=zt[aa];Ca=="+"&&ea=="1"&&zt[aa+1]=="1"?zt[aa]="1":Ca==","&&ea==zt[aa+1]&&(ea=="1"||ea=="n")&&(zt[aa]=ea),ea=Ca}for(var Va=0;Va<$t;++Va){var vi=zt[Va];if(vi==",")zt[Va]="N";else if(vi=="%"){var ti=void 0;for(ti=Va+1;ti<$t&&zt[ti]=="%";++ti);for(var zi=Va&&zt[Va-1]=="!"||ti<$t&&zt[ti]=="1"?"1":"N",Ui=Va;Ui<ti;++Ui)zt[Ui]=zi;Va=ti-1}}for(var ci=0,ji=Rt;ci<$t;++ci){var Ci=zt[ci];ji=="L"&&Ci=="1"?zt[ci]="L":ee.test(Ci)&&(ji=Ci)}for(var pi=0;pi<$t;++pi)if(H.test(zt[pi])){var di=void 0;for(di=pi+1;di<$t&&H.test(zt[di]);++di);for(var ii=(pi?zt[pi-1]:Rt)=="L",Bi=(di<$t?zt[di]:Rt)=="L",Ts=ii==Bi?ii?"L":"R":Rt,es=pi;es<di;++es)zt[es]=Ts;pi=di-1}for(var wi=[],Po,_i=0;_i<$t;)if(ge.test(zt[_i])){var ru=_i;for(++_i;_i<$t&&ge.test(zt[_i]);++_i);wi.push(new Re(0,ru,_i))}else{var Fo=_i,ds=wi.length,fs=vt=="rtl"?1:0;for(++_i;_i<$t&&zt[_i]!="L";++_i);for(var Mi=Fo;Mi<_i;)if(Se.test(zt[Mi])){Fo<Mi&&(wi.splice(ds,0,new Re(1,Fo,Mi)),ds+=fs);var ws=Mi;for(++Mi;Mi<_i&&Se.test(zt[Mi]);++Mi);wi.splice(ds,0,new Re(2,ws,Mi)),ds+=fs,Fo=Mi}else++Mi;Fo<_i&&wi.splice(ds,0,new Re(1,Fo,_i))}return vt=="ltr"&&(wi[0].level==1&&(Po=je.match(/^\s+/))&&(wi[0].from=Po[0].length,wi.unshift(new Re(0,0,Po[0].length))),q(wi).level==1&&(Po=je.match(/\s+$/))&&(q(wi).to-=Po[0].length,wi.push(new Re(0,$t-Po[0].length,$t)))),vt=="rtl"?wi.reverse():wi}}();function St(e,c){var j=e.order;return j==null&&(j=e.order=xt(e.text,c)),j}var Je=[],Ue=function(e,c,j){if(e.addEventListener)e.addEventListener(c,j,!1);else if(e.attachEvent)e.attachEvent("on"+c,j);else{var U=e._handlers||(e._handlers={});U[c]=(U[c]||Je).concat(j)}};function ft(e,c){return e._handlers&&e._handlers[c]||Je}function kt(e,c,j){if(e.removeEventListener)e.removeEventListener(c,j,!1);else if(e.detachEvent)e.detachEvent("on"+c,j);else{var U=e._handlers,H=U&&U[c];if(H){var ee=fe(H,j);ee>-1&&(U[c]=H.slice(0,ee).concat(H.slice(ee+1)))}}}function ht(e,c){var j=ft(e,c);if(!j.length)return;for(var U=Array.prototype.slice.call(arguments,2),H=0;H<j.length;++H)j[H].apply(null,U)}function _t(e,c,j){return typeof c=="string"&&(c={type:c,preventDefault:function(){this.defaultPrevented=!0}}),ht(e,j||c.type,e,c),Fe(c)||c.codemirrorIgnore}function Qe(e){var c=e._handlers&&e._handlers.cursorActivity;if(!c)return;for(var j=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),U=0;U<c.length;++U)fe(j,c[U])==-1&&j.push(c[U])}function He(e,c){return ft(e,c).length>0}function Ge(e){e.prototype.on=function(c,j){Ue(this,c,j)},e.prototype.off=function(c,j){kt(this,c,j)}}function Ee(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ae(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Fe(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function We(e){Ee(e),Ae(e)}function Ke(e){return e.target||e.srcElement}function st(e){var c=e.which;return c==null&&(e.button&1?c=1:e.button&2?c=3:e.button&4&&(c=2)),s&&e.ctrlKey&&c==1&&(c=3),c}var Ot=function(){if(w&&f<9)return!1;var e=T("div");return"draggable"in e||"dragDrop"in e}(),Bt;function an(e){if(Bt==null){var c=T("span","\u200B");m(e,T("span",[c,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Bt=c.offsetWidth<=1&&c.offsetHeight>2&&!(w&&f<8))}var j=Bt?T("span","\u200B"):T("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return j.setAttribute("cm-text",""),j}var Kt;function bt(e){if(Kt!=null)return Kt;var c=m(e,document.createTextNode("A\u062EA")),j=D(c,0,1).getBoundingClientRect(),U=D(c,1,2).getBoundingClientRect();return C(e),!j||j.left==j.right?!1:Kt=U.right-j.right<3}var Be=`
b`.split(/\n/).length!=3?function(e){for(var c=0,j=[],U=e.length;c<=U;){var H=e.indexOf(`
`,c);H==-1&&(H=e.length);var ee=e.slice(c,e.charAt(H-1)=="\r"?H-1:H),ge=ee.indexOf("\r");ge!=-1?(j.push(ee.slice(0,ge)),c+=ge+1):(j.push(ee),c=H+1)}return j}:function(e){return e.split(/\r\n?|\n/)},at=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(c){return!1}}:function(e){var c;try{c=e.ownerDocument.selection.createRange()}catch(j){}return!c||c.parentElement()!=e?!1:c.compareEndPoints("StartToEnd",c)!=0},it=function(){var e=T("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Me=null;function Ye(e){if(Me!=null)return Me;var c=m(e,T("span","x")),j=c.getBoundingClientRect(),U=D(c,0,1).getBoundingClientRect();return Me=Math.abs(j.left-U.left)>1}var ut={},mt={};function Pt(e,c){arguments.length>2&&(c.dependencies=Array.prototype.slice.call(arguments,2)),ut[e]=c}function jt(e,c){mt[e]=c}function et(e){if(typeof e=="string"&&mt.hasOwnProperty(e))e=mt[e];else if(e&&typeof e.name=="string"&&mt.hasOwnProperty(e.name)){var c=mt[e.name];typeof c=="string"&&(c={name:c}),e=we(c,e),e.name=c.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return et("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return et("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Dt(e,c){c=et(c);var j=ut[c.name];if(!j)return Dt(e,"text/plain");var U=j(e,c);if(Ht.hasOwnProperty(c.name)){var H=Ht[c.name];for(var ee in H){if(!H.hasOwnProperty(ee))continue;U.hasOwnProperty(ee)&&(U["_"+ee]=U[ee]),U[ee]=H[ee]}}if(U.name=c.name,c.helperType&&(U.helperType=c.helperType),c.modeProps)for(var ge in c.modeProps)U[ge]=c.modeProps[ge];return U}var Ht={};function bn(e,c){var j=Ht.hasOwnProperty(e)?Ht[e]:Ht[e]={};k(c,j)}function Cn(e,c){if(c===!0)return c;if(e.copyState)return e.copyState(c);var j={};for(var U in c){var H=c[U];H instanceof Array&&(H=H.concat([])),j[U]=H}return j}function Yn(e,c){for(var j;e.innerMode&&!(j=e.innerMode(c),!j||j.mode==e);)c=j.state,e=j.mode;return j||{mode:e,state:c}}function qn(e,c,j){return e.startState?e.startState(c,j):!0}var Pn=function(e,c,j){this.pos=this.start=0,this.string=e,this.tabSize=c||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=j};Pn.prototype.eol=function(){return this.pos>=this.string.length},Pn.prototype.sol=function(){return this.pos==this.lineStart},Pn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Pn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Pn.prototype.eat=function(e){var c=this.string.charAt(this.pos),j;if(typeof e=="string"?j=c==e:j=c&&(e.test?e.test(c):e(c)),j)return++this.pos,c},Pn.prototype.eatWhile=function(e){for(var c=this.pos;this.eat(e););return this.pos>c},Pn.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Pn.prototype.skipToEnd=function(){this.pos=this.string.length},Pn.prototype.skipTo=function(e){var c=this.string.indexOf(e,this.pos);if(c>-1)return this.pos=c,!0},Pn.prototype.backUp=function(e){this.pos-=e},Pn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=G(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?G(this.string,this.lineStart,this.tabSize):0)},Pn.prototype.indentation=function(){return G(this.string,null,this.tabSize)-(this.lineStart?G(this.string,this.lineStart,this.tabSize):0)},Pn.prototype.match=function(e,c,j){if(typeof e=="string"){var U=function(ge){return j?ge.toLowerCase():ge},H=this.string.substr(this.pos,e.length);if(U(H)==U(e))return c!==!1&&(this.pos+=e.length),!0}else{var ee=this.string.slice(this.pos).match(e);return ee&&ee.index>0?null:(ee&&c!==!1&&(this.pos+=ee[0].length),ee)}},Pn.prototype.current=function(){return this.string.slice(this.start,this.pos)},Pn.prototype.hideFirstChars=function(e,c){this.lineStart+=e;try{return c()}finally{this.lineStart-=e}},Pn.prototype.lookAhead=function(e){var c=this.lineOracle;return c&&c.lookAhead(e)},Pn.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function cn(e,c){if(c-=e.first,c<0||c>=e.size)throw new Error("There is no line "+(c+e.first)+" in the document.");for(var j=e;!j.lines;)for(var U=0;;++U){var H=j.children[U],ee=H.chunkSize();if(c<ee){j=H;break}c-=ee}return j.lines[c]}function xr(e,c,j){var U=[],H=c.line;return e.iter(c.line,j.line+1,function(ee){var ge=ee.text;H==j.line&&(ge=ge.slice(0,j.ch)),H==c.line&&(ge=ge.slice(c.ch)),U.push(ge),++H}),U}function wr(e,c,j){var U=[];return e.iter(c,j,function(H){U.push(H.text)}),U}function Rr(e,c){var j=c-e.height;if(j)for(var U=e;U;U=U.parent)U.height+=j}function cr(e){if(e.parent==null)return null;for(var c=e.parent,j=fe(c.lines,e),U=c.parent;U;c=U,U=U.parent)for(var H=0;!(U.children[H]==c);++H)j+=U.children[H].chunkSize();return j+c.first}function Ur(e,c){var j=e.first;e:do{for(var U=0;U<e.children.length;++U){var H=e.children[U],ee=H.height;if(c<ee){e=H;continue e}c-=ee,j+=H.chunkSize()}return j}while(!e.lines);for(var ge=0;ge<e.lines.length;++ge){var Se=e.lines[ge],Re=Se.height;if(c<Re)break;c-=Re}return j+ge}function yr(e,c){return c>=e.first&&c<e.first+e.size}function sn(e,c){return String(e.lineNumberFormatter(c+e.firstLineNumber))}function Zt(e,c,j){if(j===void 0&&(j=null),!(this instanceof Zt))return new Zt(e,c,j);this.line=e,this.ch=c,this.sticky=j}function Tn(e,c){return e.line-c.line||e.ch-c.ch}function jr(e,c){return e.sticky==c.sticky&&Tn(e,c)==0}function jn(e){return Zt(e.line,e.ch)}function $n(e,c){return Tn(e,c)<0?c:e}function Wn(e,c){return Tn(e,c)<0?e:c}function pe(e,c){return Math.max(e.first,Math.min(c,e.first+e.size-1))}function V(e,c){if(c.line<e.first)return Zt(e.first,0);var j=e.first+e.size-1;return c.line>j?Zt(j,cn(e,j).text.length):Z(c,cn(e,c.line).text.length)}function Z(e,c){var j=e.ch;return j==null||j>c?Zt(e.line,c):j<0?Zt(e.line,0):e}function oe(e,c){for(var j=[],U=0;U<c.length;U++)j[U]=V(e,c[U]);return j}var Ce=function(e,c){this.state=e,this.lookAhead=c},he=function(e,c,j,U){this.state=c,this.doc=e,this.line=j,this.maxLookAhead=U||0,this.baseTokens=null,this.baseTokenPos=1};he.prototype.lookAhead=function(e){var c=this.doc.getLine(this.line+e);return c!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),c},he.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var c=this.baseTokens[this.baseTokenPos+1];return{type:c&&c.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},he.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},he.fromSaved=function(e,c,j){return c instanceof Ce?new he(e,Cn(e.mode,c.state),j,c.lookAhead):new he(e,Cn(e.mode,c),j)},he.prototype.save=function(e){var c=e!==!1?Cn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Ce(c,this.maxLookAhead):c};function ct(e,c,j,U){var H=[e.state.modeGen],ee={};pa(e,c.text,e.doc.mode,j,function(je,vt){return H.push(je,vt)},ee,U);for(var ge=j.state,Se=function(je){j.baseTokens=H;var vt=e.state.overlays[je],Rt=1,$t=0;j.state=!0,pa(e,c.text,vt.mode,j,function(zt,On){for(var Fn=Rt;$t<zt;){var Zn=H[Rt];Zn>zt&&H.splice(Rt,1,zt,H[Rt+1],Zn),Rt+=2,$t=Math.min(zt,Zn)}if(!On)return;if(vt.opaque)H.splice(Fn,Rt-Fn,zt,"overlay "+On),Rt=Fn+2;else for(;Fn<Rt;Fn+=2){var _r=H[Fn+1];H[Fn+1]=(_r?_r+" ":"")+"overlay "+On}},ee),j.state=ge,j.baseTokens=null,j.baseTokenPos=1},Re=0;Re<e.state.overlays.length;++Re)Se(Re);return{styles:H,classes:ee.bgClass||ee.textClass?ee:null}}function rn(e,c,j){if(!c.styles||c.styles[0]!=e.state.modeGen){var U=In(e,cr(c)),H=c.text.length>e.options.maxHighlightLength&&Cn(e.doc.mode,U.state),ee=ct(e,c,U);H&&(U.state=H),c.stateAfter=U.save(!H),c.styles=ee.styles,ee.classes?c.styleClasses=ee.classes:c.styleClasses&&(c.styleClasses=null),j===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return c.styles}function In(e,c,j){var U=e.doc,H=e.display;if(!U.mode.startState)return new he(U,!0,c);var ee=dr(e,c,j),ge=ee>U.first&&cn(U,ee-1).stateAfter,Se=ge?he.fromSaved(U,ge,ee):new he(U,qn(U.mode),ee);return U.iter(ee,c,function(Re){Vn(e,Re.text,Se);var je=Se.line;Re.stateAfter=je==c-1||je%5==0||je>=H.viewFrom&&je<H.viewTo?Se.save():null,Se.nextLine()}),j&&(U.modeFrontier=Se.line),Se}function Vn(e,c,j,U){var H=e.doc.mode,ee=new Pn(c,e.options.tabSize,j);for(ee.start=ee.pos=U||0,c==""&&tn(H,j.state);!ee.eol();)En(H,ee,j.state),ee.start=ee.pos}function tn(e,c){if(e.blankLine)return e.blankLine(c);if(!e.innerMode)return;var j=Yn(e,c);if(j.mode.blankLine)return j.mode.blankLine(j.state)}function En(e,c,j,U){for(var H=0;H<10;H++){U&&(U[0]=Yn(e,j).mode);var ee=e.token(c,j);if(c.pos>c.start)return ee}throw new Error("Mode "+e.name+" failed to advance stream.")}var Xn=function(e,c,j){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=c||null,this.state=j};function $r(e,c,j,U){var H=e.doc,ee=H.mode,ge;c=V(H,c);var Se=cn(H,c.line),Re=In(e,c.line,j),je=new Pn(Se.text,e.options.tabSize,Re),vt;for(U&&(vt=[]);(U||je.pos<c.ch)&&!je.eol();)je.start=je.pos,ge=En(ee,je,Re.state),U&&vt.push(new Xn(je,ge,Cn(H.mode,Re.state)));return U?vt:new Xn(je,ge,Re.state)}function ga(e,c){if(e)for(;;){var j=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!j)break;e=e.slice(0,j.index)+e.slice(j.index+j[0].length);var U=j[1]?"bgClass":"textClass";c[U]==null?c[U]=j[2]:new RegExp("(?:^|\\s)"+j[2]+"(?:$|\\s)").test(c[U])||(c[U]+=" "+j[2])}return e}function pa(e,c,j,U,H,ee,ge){var Se=j.flattenSpans;Se==null&&(Se=e.options.flattenSpans);var Re=0,je=null,vt=new Pn(c,e.options.tabSize,U),Rt,$t=e.options.addModeClass&&[null];for(c==""&&ga(tn(j,U.state),ee);!vt.eol();){if(vt.pos>e.options.maxHighlightLength?(Se=!1,ge&&Vn(e,c,U,vt.pos),vt.pos=c.length,Rt=null):Rt=ga(En(j,vt,U.state,$t),ee),$t){var zt=$t[0].name;zt&&(Rt="m-"+(Rt?zt+" "+Rt:zt))}if(!Se||je!=Rt){for(;Re<vt.start;)Re=Math.min(vt.start,Re+5e3),H(Re,je);je=Rt}vt.start=vt.pos}for(;Re<vt.pos;){var On=Math.min(vt.pos,Re+5e3);H(On,je),Re=On}}function dr(e,c,j){for(var U,H,ee=e.doc,ge=j?-1:c-(e.doc.mode.innerMode?1e3:100),Se=c;Se>ge;--Se){if(Se<=ee.first)return ee.first;var Re=cn(ee,Se-1),je=Re.stateAfter;if(je&&(!j||Se+(je instanceof Ce?je.lookAhead:0)<=ee.modeFrontier))return Se;var vt=G(Re.text,null,e.options.tabSize);(H==null||U>vt)&&(H=Se-1,U=vt)}return H}function za(e,c){if(e.modeFrontier=Math.min(e.modeFrontier,c),e.highlightFrontier<c-10)return;for(var j=e.first,U=c-1;U>j;U--){var H=cn(e,U).stateAfter;if(H&&(!(H instanceof Ce)||U+H.lookAhead<c)){j=U+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,j)}var ja=!1,Ra=!1;function Ha(){ja=!0}function Sa(){Ra=!0}function Ja(e,c,j){this.marker=e,this.from=c,this.to=j}function ka(e,c){if(e)for(var j=0;j<e.length;++j){var U=e[j];if(U.marker==c)return U}}function li(e,c){for(var j,U=0;U<e.length;++U)e[U]!=c&&(j||(j=[])).push(e[U]);return j}function oi(e,c){e.markedSpans=e.markedSpans?e.markedSpans.concat([c]):[c],c.marker.attachLine(e)}function ua(e,c,j){var U;if(e)for(var H=0;H<e.length;++H){var ee=e[H],ge=ee.marker,Se=ee.from==null||(ge.inclusiveLeft?ee.from<=c:ee.from<c);if(Se||ee.from==c&&ge.type=="bookmark"&&(!j||!ee.marker.insertLeft)){var Re=ee.to==null||(ge.inclusiveRight?ee.to>=c:ee.to>c);(U||(U=[])).push(new Ja(ge,ee.from,Re?null:ee.to))}}return U}function fa(e,c,j){var U;if(e)for(var H=0;H<e.length;++H){var ee=e[H],ge=ee.marker,Se=ee.to==null||(ge.inclusiveRight?ee.to>=c:ee.to>c);if(Se||ee.from==c&&ge.type=="bookmark"&&(!j||ee.marker.insertLeft)){var Re=ee.from==null||(ge.inclusiveLeft?ee.from<=c:ee.from<c);(U||(U=[])).push(new Ja(ge,Re?null:ee.from-c,ee.to==null?null:ee.to-c))}}return U}function oa(e,c){if(c.full)return null;var j=yr(e,c.from.line)&&cn(e,c.from.line).markedSpans,U=yr(e,c.to.line)&&cn(e,c.to.line).markedSpans;if(!j&&!U)return null;var H=c.from.ch,ee=c.to.ch,ge=Tn(c.from,c.to)==0,Se=ua(j,H,ge),Re=fa(U,ee,ge),je=c.text.length==1,vt=q(c.text).length+(je?H:0);if(Se)for(var Rt=0;Rt<Se.length;++Rt){var $t=Se[Rt];if($t.to==null){var zt=ka(Re,$t.marker);zt?je&&($t.to=zt.to==null?null:zt.to+vt):$t.to=H}}if(Re)for(var On=0;On<Re.length;++On){var Fn=Re[On];if(Fn.to!=null&&(Fn.to+=vt),Fn.from==null){var Zn=ka(Se,Fn.marker);Zn||(Fn.from=vt,je&&(Se||(Se=[])).push(Fn))}else Fn.from+=vt,je&&(Se||(Se=[])).push(Fn)}Se&&(Se=ye(Se)),Re&&Re!=Se&&(Re=ye(Re));var _r=[Se];if(!je){var Nr=c.text.length-2,br;if(Nr>0&&Se)for(var Vr=0;Vr<Se.length;++Vr)Se[Vr].to==null&&(br||(br=[])).push(new Ja(Se[Vr].marker,null,null));for(var aa=0;aa<Nr;++aa)_r.push(br);_r.push(Re)}return _r}function ye(e){for(var c=0;c<e.length;++c){var j=e[c];j.from!=null&&j.from==j.to&&j.marker.clearWhenEmpty!==!1&&e.splice(c--,1)}return e.length?e:null}function lt(e,c,j){var U=null;if(e.iter(c.line,j.line+1,function(zt){if(zt.markedSpans)for(var On=0;On<zt.markedSpans.length;++On){var Fn=zt.markedSpans[On].marker;Fn.readOnly&&(!U||fe(U,Fn)==-1)&&(U||(U=[])).push(Fn)}}),!U)return null;for(var H=[{from:c,to:j}],ee=0;ee<U.length;++ee)for(var ge=U[ee],Se=ge.find(0),Re=0;Re<H.length;++Re){var je=H[Re];if(Tn(je.to,Se.from)<0||Tn(je.from,Se.to)>0)continue;var vt=[Re,1],Rt=Tn(je.from,Se.from),$t=Tn(je.to,Se.to);(Rt<0||!ge.inclusiveLeft&&!Rt)&&vt.push({from:je.from,to:Se.from}),($t>0||!ge.inclusiveRight&&!$t)&&vt.push({from:Se.to,to:je.to}),H.splice.apply(H,vt),Re+=vt.length-3}return H}function Mt(e){var c=e.markedSpans;if(!c)return;for(var j=0;j<c.length;++j)c[j].marker.detachLine(e);e.markedSpans=null}function wt(e,c){if(!c)return;for(var j=0;j<c.length;++j)c[j].marker.attachLine(e);e.markedSpans=c}function Wt(e){return e.inclusiveLeft?-1:0}function Lt(e){return e.inclusiveRight?1:0}function Xt(e,c){var j=e.lines.length-c.lines.length;if(j!=0)return j;var U=e.find(),H=c.find(),ee=Tn(U.from,H.from)||Wt(e)-Wt(c);if(ee)return-ee;var ge=Tn(U.to,H.to)||Lt(e)-Lt(c);return ge||c.id-e.id}function en(e,c){var j=Ra&&e.markedSpans,U;if(j)for(var H=void 0,ee=0;ee<j.length;++ee)H=j[ee],H.marker.collapsed&&(c?H.from:H.to)==null&&(!U||Xt(U,H.marker)<0)&&(U=H.marker);return U}function vn(e){return en(e,!0)}function pn(e){return en(e,!1)}function Nn(e,c){var j=Ra&&e.markedSpans,U;if(j)for(var H=0;H<j.length;++H){var ee=j[H];ee.marker.collapsed&&(ee.from==null||ee.from<c)&&(ee.to==null||ee.to>c)&&(!U||Xt(U,ee.marker)<0)&&(U=ee.marker)}return U}function wn(e,c,j,U,H){var ee=cn(e,c),ge=Ra&&ee.markedSpans;if(ge)for(var Se=0;Se<ge.length;++Se){var Re=ge[Se];if(!Re.marker.collapsed)continue;var je=Re.marker.find(0),vt=Tn(je.from,j)||Wt(Re.marker)-Wt(H),Rt=Tn(je.to,U)||Lt(Re.marker)-Lt(H);if(vt>=0&&Rt<=0||vt<=0&&Rt>=0)continue;if(vt<=0&&(Re.marker.inclusiveRight&&H.inclusiveLeft?Tn(je.to,j)>=0:Tn(je.to,j)>0)||vt>=0&&(Re.marker.inclusiveRight&&H.inclusiveLeft?Tn(je.from,U)<=0:Tn(je.from,U)<0))return!0}}function nn(e){for(var c;c=vn(e);)e=c.find(-1,!0).line;return e}function Rn(e){for(var c;c=pn(e);)e=c.find(1,!0).line;return e}function gn(e){for(var c,j;c=pn(e);)e=c.find(1,!0).line,(j||(j=[])).push(e);return j}function kn(e,c){var j=cn(e,c),U=nn(j);return j==U?c:cr(U)}function Dn(e,c){if(c>e.lastLine())return c;var j=cn(e,c),U;if(!Jn(e,j))return c;for(;U=pn(j);)j=U.find(1,!0).line;return cr(j)+1}function Jn(e,c){var j=Ra&&c.markedSpans;if(j)for(var U=void 0,H=0;H<j.length;++H){if(U=j[H],!U.marker.collapsed)continue;if(U.from==null)return!0;if(U.marker.widgetNode)continue;if(U.from==0&&U.marker.inclusiveLeft&&hr(e,c,U))return!0}}function hr(e,c,j){if(j.to==null){var U=j.marker.find(1,!0);return hr(e,U.line,ka(U.line.markedSpans,j.marker))}if(j.marker.inclusiveRight&&j.to==c.text.length)return!0;for(var H=void 0,ee=0;ee<c.markedSpans.length;++ee)if(H=c.markedSpans[ee],H.marker.collapsed&&!H.marker.widgetNode&&H.from==j.to&&(H.to==null||H.to!=j.from)&&(H.marker.inclusiveLeft||j.marker.inclusiveRight)&&hr(e,c,H))return!0}function Br(e){e=nn(e);for(var c=0,j=e.parent,U=0;U<j.lines.length;++U){var H=j.lines[U];if(H==e)break;c+=H.height}for(var ee=j.parent;ee;j=ee,ee=j.parent)for(var ge=0;ge<ee.children.length;++ge){var Se=ee.children[ge];if(Se==j)break;c+=Se.height}return c}function xn(e){if(e.height==0)return 0;for(var c=e.text.length,j,U=e;j=vn(U);){var H=j.find(0,!0);U=H.from.line,c+=H.from.ch-H.to.ch}for(U=e;j=pn(U);){var ee=j.find(0,!0);c-=U.text.length-ee.from.ch,U=ee.to.line,c+=U.text.length-ee.to.ch}return c}function Yt(e){var c=e.display,j=e.doc;c.maxLine=cn(j,j.first),c.maxLineLength=xn(c.maxLine),c.maxLineChanged=!0,j.iter(function(U){var H=xn(U);H>c.maxLineLength&&(c.maxLineLength=H,c.maxLine=U)})}var dn=function(e,c,j){this.text=e,wt(this,c),this.height=j?j(this):1};dn.prototype.lineNo=function(){return cr(this)},Ge(dn);function An(e,c,j,U){e.text=c,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Mt(e),wt(e,j);var H=U?U(e):1;H!=e.height&&Rr(e,H)}function qt(e){e.parent=null,Mt(e)}var Sn={},mn={};function Mn(e,c){if(!e||/^\s*$/.test(e))return null;var j=c.addModeClass?mn:Sn;return j[e]||(j[e]=e.replace(/\S+/g,"cm-$&"))}function Un(e,c){var j=I("span",null,null,_?"padding-right: .1px":null),U={pre:I("pre",[j],"CodeMirror-line"),content:j,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};c.measure={};for(var H=0;H<=(c.rest?c.rest.length:0);H++){var ee=H?c.rest[H-1]:c.line,ge=void 0;U.pos=0,U.addToken=er,bt(e.display.measure)&&(ge=St(ee,e.doc.direction))&&(U.addToken=Mr(U.addToken,ge)),U.map=[];var Se=c!=e.display.externalMeasured&&cr(ee);Tr(ee,U,rn(e,ee,Se)),ee.styleClasses&&(ee.styleClasses.bgClass&&(U.bgClass=W(ee.styleClasses.bgClass,U.bgClass||"")),ee.styleClasses.textClass&&(U.textClass=W(ee.styleClasses.textClass,U.textClass||""))),U.map.length==0&&U.map.push(0,0,U.content.appendChild(an(e.display.measure))),H==0?(c.measure.map=U.map,c.measure.cache={}):((c.measure.maps||(c.measure.maps=[])).push(U.map),(c.measure.caches||(c.measure.caches=[])).push({}))}if(_){var Re=U.content.lastChild;(/\bcm-tab\b/.test(Re.className)||Re.querySelector&&Re.querySelector(".cm-tab"))&&(U.content.className="cm-tab-wrap-hack")}return ht(e,"renderLine",e,c.line,U.pre),U.pre.className&&(U.textClass=W(U.pre.className,U.textClass||"")),U}function ir(e){var c=T("span","\u2022","cm-invalidchar");return c.title="\\u"+e.charCodeAt(0).toString(16),c.setAttribute("aria-label",c.title),c}function er(e,c,j,U,H,ee,ge){if(!c)return;var Se=e.splitSpaces?Ar(c,e.trailingSpace):c,Re=e.cm.state.specialChars,je=!1,vt;if(!Re.test(c))e.col+=c.length,vt=document.createTextNode(Se),e.map.push(e.pos,e.pos+c.length,vt),w&&f<9&&(je=!0),e.pos+=c.length;else{vt=document.createDocumentFragment();for(var Rt=0;;){Re.lastIndex=Rt;var $t=Re.exec(c),zt=$t?$t.index-Rt:c.length-Rt;if(zt){var On=document.createTextNode(Se.slice(Rt,Rt+zt));w&&f<9?vt.appendChild(T("span",[On])):vt.appendChild(On),e.map.push(e.pos,e.pos+zt,On),e.col+=zt,e.pos+=zt}if(!$t)break;Rt+=zt+1;var Fn=void 0;if($t[0]==" "){var Zn=e.cm.options.tabSize,_r=Zn-e.col%Zn;Fn=vt.appendChild(T("span",se(_r),"cm-tab")),Fn.setAttribute("role","presentation"),Fn.setAttribute("cm-text"," "),e.col+=_r}else $t[0]=="\r"||$t[0]==`
`?(Fn=vt.appendChild(T("span",$t[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Fn.setAttribute("cm-text",$t[0]),e.col+=1):(Fn=e.cm.options.specialCharPlaceholder($t[0]),Fn.setAttribute("cm-text",$t[0]),w&&f<9?vt.appendChild(T("span",[Fn])):vt.appendChild(Fn),e.col+=1);e.map.push(e.pos,e.pos+1,Fn),e.pos++}}if(e.trailingSpace=Se.charCodeAt(c.length-1)==32,j||U||H||je||ee||ge){var Nr=j||"";U&&(Nr+=U),H&&(Nr+=H);var br=T("span",[vt],Nr,ee);if(ge)for(var Vr in ge)ge.hasOwnProperty(Vr)&&Vr!="style"&&Vr!="class"&&br.setAttribute(Vr,ge[Vr]);return e.content.appendChild(br)}e.content.appendChild(vt)}function Ar(e,c){if(e.length>1&&!/ /.test(e))return e;for(var j=c,U="",H=0;H<e.length;H++){var ee=e.charAt(H);ee==" "&&j&&(H==e.length-1||e.charCodeAt(H+1)==32)&&(ee="\xA0"),U+=ee,j=ee==" "}return U}function Mr(e,c){return function(j,U,H,ee,ge,Se,Re){H=H?H+" cm-force-border":"cm-force-border";for(var je=j.pos,vt=je+U.length;;){for(var Rt=void 0,$t=0;$t<c.length&&!(Rt=c[$t],Rt.to>je&&Rt.from<=je);$t++);if(Rt.to>=vt)return e(j,U,H,ee,ge,Se,Re);e(j,U.slice(0,Rt.to-je),H,ee,null,Se,Re),ee=null,U=U.slice(Rt.to-je),je=Rt.to}}}function Qn(e,c,j,U){var H=!U&&j.widgetNode;H&&e.map.push(e.pos,e.pos+c,H),!U&&e.cm.display.input.needsContentAttribute&&(H||(H=e.content.appendChild(document.createElement("span"))),H.setAttribute("cm-marker",j.id)),H&&(e.cm.display.input.setUneditable(H),e.content.appendChild(H)),e.pos+=c,e.trailingSpace=!1}function Tr(e,c,j){var U=e.markedSpans,H=e.text,ee=0;if(!U){for(var ge=1;ge<j.length;ge+=2)c.addToken(c,H.slice(ee,ee=j[ge]),Mn(j[ge+1],c.cm.options));return}for(var Se=H.length,Re=0,je=1,vt="",Rt,$t,zt=0,On,Fn,Zn,_r,Nr;;){if(zt==Re){On=Fn=Zn=$t="",Nr=null,_r=null,zt=Infinity;for(var br=[],Vr=void 0,aa=0;aa<U.length;++aa){var ea=U[aa],Ca=ea.marker;if(Ca.type=="bookmark"&&ea.from==Re&&Ca.widgetNode)br.push(Ca);else if(ea.from<=Re&&(ea.to==null||ea.to>Re||Ca.collapsed&&ea.to==Re&&ea.from==Re)){if(ea.to!=null&&ea.to!=Re&&zt>ea.to&&(zt=ea.to,Fn=""),Ca.className&&(On+=" "+Ca.className),Ca.css&&($t=($t?$t+";":"")+Ca.css),Ca.startStyle&&ea.from==Re&&(Zn+=" "+Ca.startStyle),Ca.endStyle&&ea.to==zt&&(Vr||(Vr=[])).push(Ca.endStyle,ea.to),Ca.title&&((Nr||(Nr={})).title=Ca.title),Ca.attributes)for(var Va in Ca.attributes)(Nr||(Nr={}))[Va]=Ca.attributes[Va];Ca.collapsed&&(!_r||Xt(_r.marker,Ca)<0)&&(_r=ea)}else ea.from>Re&&zt>ea.from&&(zt=ea.from)}if(Vr)for(var vi=0;vi<Vr.length;vi+=2)Vr[vi+1]==zt&&(Fn+=" "+Vr[vi]);if(!_r||_r.from==Re)for(var ti=0;ti<br.length;++ti)Qn(c,0,br[ti]);if(_r&&(_r.from||0)==Re){if(Qn(c,(_r.to==null?Se+1:_r.to)-Re,_r.marker,_r.from==null),_r.to==null)return;_r.to==Re&&(_r=!1)}}if(Re>=Se)break;for(var zi=Math.min(Se,zt);;){if(vt){var Ui=Re+vt.length;if(!_r){var ci=Ui>zi?vt.slice(0,zi-Re):vt;c.addToken(c,ci,Rt?Rt+On:On,Zn,Re+ci.length==zt?Fn:"",$t,Nr)}if(Ui>=zi){vt=vt.slice(zi-Re),Re=zi;break}Re=Ui,Zn=""}vt=H.slice(ee,ee=j[je++]),Rt=Mn(j[je++],c.cm.options)}}}function mr(e,c,j){this.line=c,this.rest=gn(c),this.size=this.rest?cr(q(this.rest))-j+1:1,this.node=this.text=null,this.hidden=Jn(e,c)}function Gr(e,c,j){for(var U=[],H,ee=c;ee<j;ee=H){var ge=new mr(e.doc,cn(e.doc,ee),ee);H=ee+ge.size,U.push(ge)}return U}var Ir=null;function qr(e){Ir?Ir.ops.push(e):e.ownsGroup=Ir={ops:[e],delayedCallbacks:[]}}function rr(e){var c=e.delayedCallbacks,j=0;do{for(;j<c.length;j++)c[j].call(null);for(var U=0;U<e.ops.length;U++){var H=e.ops[U];if(H.cursorActivityHandlers)for(;H.cursorActivityCalled<H.cursorActivityHandlers.length;)H.cursorActivityHandlers[H.cursorActivityCalled++].call(null,H.cm)}}while(j<c.length)}function Gt(e,c){var j=e.ownsGroup;if(!j)return;try{rr(j)}finally{Ir=null,c(j)}}var Qt=null;function Jt(e,c){var j=ft(e,c);if(!j.length)return;var U=Array.prototype.slice.call(arguments,2),H;Ir?H=Ir.delayedCallbacks:Qt?H=Qt:(H=Qt=[],setTimeout(zn,0));for(var ee=function(Se){H.push(function(){return j[Se].apply(null,U)})},ge=0;ge<j.length;++ge)ee(ge)}function zn(){var e=Qt;Qt=null;for(var c=0;c<e.length;++c)e[c]()}function tr(e,c,j,U){for(var H=0;H<c.changes.length;H++){var ee=c.changes[H];ee=="text"?or(e,c):ee=="gutter"?sr(e,c,j,U):ee=="class"?Zr(e,c):ee=="widget"&&la(e,c,U)}c.changes=null}function Ln(e){return e.node==e.text&&(e.node=T("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),w&&f<8&&(e.node.style.zIndex=2)),e.node}function ar(e,c){var j=c.bgClass?c.bgClass+" "+(c.line.bgClass||""):c.line.bgClass;if(j&&(j+=" CodeMirror-linebackground"),c.background)j?c.background.className=j:(c.background.parentNode.removeChild(c.background),c.background=null);else if(j){var U=Ln(c);c.background=U.insertBefore(T("div",null,j),U.firstChild),e.display.input.setUneditable(c.background)}}function ur(e,c){var j=e.display.externalMeasured;return j&&j.line==c.line?(e.display.externalMeasured=null,c.measure=j.measure,j.built):Un(e,c)}function or(e,c){var j=c.text.className,U=ur(e,c);c.text==c.node&&(c.node=U.pre),c.text.parentNode.replaceChild(U.pre,c.text),c.text=U.pre,U.bgClass!=c.bgClass||U.textClass!=c.textClass?(c.bgClass=U.bgClass,c.textClass=U.textClass,Zr(e,c)):j&&(c.text.className=j)}function Zr(e,c){ar(e,c),c.line.wrapClass?Ln(c).className=c.line.wrapClass:c.node!=c.text&&(c.node.className="");var j=c.textClass?c.textClass+" "+(c.line.textClass||""):c.line.textClass;c.text.className=j||""}function sr(e,c,j,U){if(c.gutter&&(c.node.removeChild(c.gutter),c.gutter=null),c.gutterBackground&&(c.node.removeChild(c.gutterBackground),c.gutterBackground=null),c.line.gutterClass){var H=Ln(c);c.gutterBackground=T("div",null,"CodeMirror-gutter-background "+c.line.gutterClass,"left: "+(e.options.fixedGutter?U.fixedPos:-U.gutterTotalWidth)+"px; width: "+U.gutterTotalWidth+"px"),e.display.input.setUneditable(c.gutterBackground),H.insertBefore(c.gutterBackground,c.text)}var ee=c.line.gutterMarkers;if(e.options.lineNumbers||ee){var ge=Ln(c),Se=c.gutter=T("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?U.fixedPos:-U.gutterTotalWidth)+"px");if(e.display.input.setUneditable(Se),ge.insertBefore(Se,c.text),c.line.gutterClass&&(Se.className+=" "+c.line.gutterClass),e.options.lineNumbers&&(!ee||!ee["CodeMirror-linenumbers"])&&(c.lineNumber=Se.appendChild(T("div",sn(e.options,j),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+U.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),ee)for(var Re=0;Re<e.display.gutterSpecs.length;++Re){var je=e.display.gutterSpecs[Re].className,vt=ee.hasOwnProperty(je)&&ee[je];vt&&Se.appendChild(T("div",[vt],"CodeMirror-gutter-elt","left: "+U.gutterLeft[je]+"px; width: "+U.gutterWidth[je]+"px"))}}}function la(e,c,j){c.alignable&&(c.alignable=null);for(var U=R("CodeMirror-linewidget"),H=c.node.firstChild,ee=void 0;H;H=ee)ee=H.nextSibling,U.test(H.className)&&c.node.removeChild(H);gr(e,c,j)}function Xr(e,c,j,U){var H=ur(e,c);return c.text=c.node=H.pre,H.bgClass&&(c.bgClass=H.bgClass),H.textClass&&(c.textClass=H.textClass),Zr(e,c),sr(e,c,j,U),gr(e,c,U),c.node}function gr(e,c,j){if(Cr(e,c.line,c,j,!0),c.rest)for(var U=0;U<c.rest.length;U++)Cr(e,c.rest[U],c,j,!1)}function Cr(e,c,j,U,H){if(!c.widgets)return;for(var ee=Ln(j),ge=0,Se=c.widgets;ge<Se.length;++ge){var Re=Se[ge],je=T("div",[Re.node],"CodeMirror-linewidget"+(Re.className?" "+Re.className:""));Re.handleMouseEvents||je.setAttribute("cm-ignore-events","true"),Hr(Re,je,j,U),e.display.input.setUneditable(je),H&&Re.above?ee.insertBefore(je,j.gutter||j.text):ee.appendChild(je),Jt(Re,"redraw")}}function Hr(e,c,j,U){if(e.noHScroll){(j.alignable||(j.alignable=[])).push(c);var H=U.wrapperWidth;c.style.left=U.fixedPos+"px",e.coverGutter||(H-=U.gutterTotalWidth,c.style.paddingLeft=U.gutterTotalWidth+"px"),c.style.width=H+"px"}e.coverGutter&&(c.style.zIndex=5,c.style.position="relative",e.noHScroll||(c.style.marginLeft=-U.gutterTotalWidth+"px"))}function Yr(e){if(e.height!=null)return e.height;var c=e.doc.cm;if(!c)return 0;if(!N(document.body,e.node)){var j="position: relative;";e.coverGutter&&(j+="margin-left: -"+c.display.gutters.offsetWidth+"px;"),e.noHScroll&&(j+="width: "+c.display.wrapper.clientWidth+"px;"),m(c.display.measure,T("div",[e.node],null,j))}return e.height=e.node.parentNode.offsetHeight}function Oa(e,c){for(var j=Ke(c);j!=e.wrapper;j=j.parentNode)if(!j||j.nodeType==1&&j.getAttribute("cm-ignore-events")=="true"||j.parentNode==e.sizer&&j!=e.mover)return!0}function va(e){return e.lineSpace.offsetTop}function Ze(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function dt(e){if(e.cachedPaddingH)return e.cachedPaddingH;var c=m(e.measure,T("pre","x","CodeMirror-line-like")),j=window.getComputedStyle?window.getComputedStyle(c):c.currentStyle,U={left:parseInt(j.paddingLeft),right:parseInt(j.paddingRight)};return!isNaN(U.left)&&!isNaN(U.right)&&(e.cachedPaddingH=U),U}function yt(e){return de-e.display.nativeBarWidth}function nt(e){return e.display.scroller.clientWidth-yt(e)-e.display.barWidth}function Pe(e){return e.display.scroller.clientHeight-yt(e)-e.display.barHeight}function Xe(e,c,j){var U=e.options.lineWrapping,H=U&&nt(e);if(!c.measure.heights||U&&c.measure.width!=H){var ee=c.measure.heights=[];if(U){c.measure.width=H;for(var ge=c.text.firstChild.getClientRects(),Se=0;Se<ge.length-1;Se++){var Re=ge[Se],je=ge[Se+1];Math.abs(Re.bottom-je.bottom)>2&&ee.push((Re.bottom+je.top)/2-j.top)}}ee.push(j.bottom-j.top)}}function Ie(e,c,j){if(e.line==c)return{map:e.measure.map,cache:e.measure.cache};for(var U=0;U<e.rest.length;U++)if(e.rest[U]==c)return{map:e.measure.maps[U],cache:e.measure.caches[U]};for(var H=0;H<e.rest.length;H++)if(cr(e.rest[H])>j)return{map:e.measure.maps[H],cache:e.measure.caches[H],before:!0}}function $e(e,c){c=nn(c);var j=cr(c),U=e.display.externalMeasured=new mr(e.doc,c,j);U.lineN=j;var H=U.built=Un(e,U);return U.text=H.pre,m(e.display.lineMeasure,H.pre),U}function qe(e,c,j,U){return It(e,rt(e,c),j,U)}function pt(e,c){if(c>=e.display.viewFrom&&c<e.display.viewTo)return e.display.view[ha(e,c)];var j=e.display.externalMeasured;if(j&&c>=j.lineN&&c<j.lineN+j.size)return j}function rt(e,c){var j=cr(c),U=pt(e,j);U&&!U.text?U=null:U&&U.changes&&(tr(e,U,j,nr(e)),e.curOp.forceUpdate=!0),U||(U=$e(e,c));var H=Ie(U,c,j);return{line:c,view:U,rect:null,map:H.map,cache:H.cache,before:H.before,hasHeights:!1}}function It(e,c,j,U,H){c.before&&(j=-1);var ee=j+(U||""),ge;return c.cache.hasOwnProperty(ee)?ge=c.cache[ee]:(c.rect||(c.rect=c.view.text.getBoundingClientRect()),c.hasHeights||(Xe(e,c.view,c.rect),c.hasHeights=!0),ge=un(e,c,j,U),ge.bogus||(c.cache[ee]=ge)),{left:ge.left,right:ge.right,top:H?ge.rtop:ge.top,bottom:H?ge.rbottom:ge.bottom}}var Vt={left:0,right:0,top:0,bottom:0};function fn(e,c,j){for(var U,H,ee,ge,Se,Re,je=0;je<e.length;je+=3)if(Se=e[je],Re=e[je+1],c<Se?(H=0,ee=1,ge="left"):c<Re?(H=c-Se,ee=H+1):(je==e.length-3||c==Re&&e[je+3]>c)&&(ee=Re-Se,H=ee-1,c>=Re&&(ge="right")),H!=null){if(U=e[je+2],Se==Re&&j==(U.insertLeft?"left":"right")&&(ge=j),j=="left"&&H==0)for(;je&&e[je-2]==e[je-3]&&e[je-1].insertLeft;)U=e[(je-=3)+2],ge="left";if(j=="right"&&H==Re-Se)for(;je<e.length-3&&e[je+3]==e[je+4]&&!e[je+5].insertLeft;)U=e[(je+=3)+2],ge="right";break}return{node:U,start:H,end:ee,collapse:ge,coverStart:Se,coverEnd:Re}}function on(e,c){var j=Vt;if(c=="left")for(var U=0;U<e.length&&!((j=e[U]).left!=j.right);U++);else for(var H=e.length-1;H>=0&&!((j=e[H]).left!=j.right);H--);return j}function un(e,c,j,U){var H=fn(c.map,j,U),ee=H.node,ge=H.start,Se=H.end,Re=H.collapse,je;if(ee.nodeType==3){for(var vt=0;vt<4;vt++){for(;ge&&Te(c.line.text.charAt(H.coverStart+ge));)--ge;for(;H.coverStart+Se<H.coverEnd&&Te(c.line.text.charAt(H.coverStart+Se));)++Se;if(w&&f<9&&ge==0&&Se==H.coverEnd-H.coverStart?je=ee.parentNode.getBoundingClientRect():je=on(D(ee,ge,Se).getClientRects(),U),je.left||je.right||ge==0)break;Se=ge,ge=ge-1,Re="right"}w&&f<11&&(je=ln(e.display.measure,je))}else{ge>0&&(Re=U="right");var Rt;e.options.lineWrapping&&(Rt=ee.getClientRects()).length>1?je=Rt[U=="right"?Rt.length-1:0]:je=ee.getBoundingClientRect()}if(w&&f<9&&!ge&&(!je||!je.left&&!je.right)){var $t=ee.parentNode.getClientRects()[0];$t?je={left:$t.left,right:$t.left+Pr(e.display),top:$t.top,bottom:$t.bottom}:je=Vt}for(var zt=je.top-c.rect.top,On=je.bottom-c.rect.top,Fn=(zt+On)/2,Zn=c.view.measure.heights,_r=0;_r<Zn.length-1&&!(Fn<Zn[_r]);_r++);var Nr=_r?Zn[_r-1]:0,br=Zn[_r],Vr={left:(Re=="right"?je.right:je.left)-c.rect.left,right:(Re=="left"?je.left:je.right)-c.rect.left,top:Nr,bottom:br};return!je.left&&!je.right&&(Vr.bogus=!0),e.options.singleCursorHeightPerLine||(Vr.rtop=zt,Vr.rbottom=On),Vr}function ln(e,c){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Ye(e))return c;var j=screen.logicalXDPI/screen.deviceXDPI,U=screen.logicalYDPI/screen.deviceYDPI;return{left:c.left*j,right:c.right*j,top:c.top*U,bottom:c.bottom*U}}function Hn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var c=0;c<e.rest.length;c++)e.measure.caches[c]={}}function yn(e){e.display.externalMeasure=null,C(e.display.lineMeasure);for(var c=0;c<e.display.view.length;c++)Hn(e.display.view[c])}function kr(e){yn(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Dr(){return r&&h?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Jr(){return r&&h?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Fr(e){var c=0;if(e.widgets)for(var j=0;j<e.widgets.length;++j)e.widgets[j].above&&(c+=Yr(e.widgets[j]));return c}function ta(e,c,j,U,H){if(!H){var ee=Fr(c);j.top+=ee,j.bottom+=ee}if(U=="line")return j;U||(U="local");var ge=Br(c);if(U=="local"?ge+=va(e.display):ge-=e.display.viewOffset,U=="page"||U=="window"){var Se=e.display.lineSpace.getBoundingClientRect();ge+=Se.top+(U=="window"?0:Jr());var Re=Se.left+(U=="window"?0:Dr());j.left+=Re,j.right+=Re}return j.top+=ge,j.bottom+=ge,j}function Kn(e,c,j){if(j=="div")return c;var U=c.left,H=c.top;if(j=="page")U-=Dr(),H-=Jr();else if(j=="local"||!j){var ee=e.display.sizer.getBoundingClientRect();U+=ee.left,H+=ee.top}var ge=e.display.lineSpace.getBoundingClientRect();return{left:U-ge.left,top:H-ge.top}}function Sr(e,c,j,U,H){return U||(U=cn(e.doc,c.line)),ta(e,U,qe(e,U,c.ch,H),j)}function Gn(e,c,j,U,H,ee){U=U||cn(e.doc,c.line),H||(H=rt(e,U));function ge(On,Fn){var Zn=It(e,H,On,Fn?"right":"left",ee);return Fn?Zn.left=Zn.right:Zn.right=Zn.left,ta(e,U,Zn,j)}var Se=St(U,e.doc.direction),Re=c.ch,je=c.sticky;if(Re>=U.text.length?(Re=U.text.length,je="before"):Re<=0&&(Re=0,je="after"),!Se)return ge(je=="before"?Re-1:Re,je=="before");function vt(On,Fn,Zn){var _r=Se[Fn],Nr=_r.level==1;return ge(Zn?On-1:On,Nr!=Zn)}var Rt=Et(Se,Re,je),$t=gt,zt=vt(Re,Rt,je=="before");return $t!=null&&(zt.other=vt(Re,$t,je!="before")),zt}function _n(e,c){var j=0;c=V(e.doc,c),e.options.lineWrapping||(j=Pr(e.display)*c.ch);var U=cn(e.doc,c.line),H=Br(U)+va(e.display);return{left:j,right:j,top:H,bottom:H+U.height}}function Bn(e,c,j,U,H){var ee=Zt(e,c,j);return ee.xRel=H,U&&(ee.outside=U),ee}function zr(e,c,j){var U=e.doc;if(j+=e.display.viewOffset,j<0)return Bn(U.first,0,null,-1,-1);var H=Ur(U,j),ee=U.first+U.size-1;if(H>ee)return Bn(U.first+U.size-1,cn(U,ee).text.length,null,1,1);c<0&&(c=0);for(var ge=cn(U,H);;){var Se=Ea(e,ge,H,c,j),Re=Nn(ge,Se.ch+(Se.xRel>0||Se.outside>0?1:0));if(!Re)return Se;var je=Re.find(1);if(je.line==H)return je;ge=cn(U,H=je.line)}}function sa(e,c,j,U){U-=Fr(c);var H=c.text.length,ee=tt(function(ge){return It(e,j,ge-1).bottom<=U},H,0);return H=tt(function(ge){return It(e,j,ge).top>U},ee,H),{begin:ee,end:H}}function fr(e,c,j,U){j||(j=rt(e,c));var H=ta(e,c,It(e,j,U),"line").top;return sa(e,c,j,H)}function ra(e,c,j,U){return e.bottom<=j?!1:e.top>j?!0:(U?e.left:e.right)>c}function Ea(e,c,j,U,H){H-=Br(c);var ee=rt(e,c),ge=Fr(c),Se=0,Re=c.text.length,je=!0,vt=St(c,e.doc.direction);if(vt){var Rt=(e.options.lineWrapping?xa:ca)(e,c,j,ee,vt,U,H);je=Rt.level!=1,Se=je?Rt.from:Rt.to-1,Re=je?Rt.to:Rt.from-1}var $t=null,zt=null,On=tt(function(aa){var ea=It(e,ee,aa);return ea.top+=ge,ea.bottom+=ge,ra(ea,U,H,!1)?(ea.top<=H&&ea.left<=U&&($t=aa,zt=ea),!0):!1},Se,Re),Fn,Zn,_r=!1;if(zt){var Nr=U-zt.left<zt.right-U,br=Nr==je;On=$t+(br?0:1),Zn=br?"after":"before",Fn=Nr?zt.left:zt.right}else{!je&&(On==Re||On==Se)&&On++,Zn=On==0?"after":On==c.text.length?"before":It(e,ee,On-(je?1:0)).bottom+ge<=H==je?"after":"before";var Vr=Gn(e,Zt(j,On,Zn),"line",c,ee);Fn=Vr.left,_r=H<Vr.top?-1:H>=Vr.bottom?1:0}return On=ke(c.text,On,1),Bn(j,On,Zn,_r,U-Fn)}function ca(e,c,j,U,H,ee,ge){var Se=tt(function(Rt){var $t=H[Rt],zt=$t.level!=1;return ra(Gn(e,Zt(j,zt?$t.to:$t.from,zt?"before":"after"),"line",c,U),ee,ge,!0)},0,H.length-1),Re=H[Se];if(Se>0){var je=Re.level!=1,vt=Gn(e,Zt(j,je?Re.from:Re.to,je?"after":"before"),"line",c,U);ra(vt,ee,ge,!0)&&vt.top>ge&&(Re=H[Se-1])}return Re}function xa(e,c,j,U,H,ee,ge){var Se=sa(e,c,U,ge),Re=Se.begin,je=Se.end;/\s/.test(c.text.charAt(je-1))&&je--;for(var vt=null,Rt=null,$t=0;$t<H.length;$t++){var zt=H[$t];if(zt.from>=je||zt.to<=Re)continue;var On=zt.level!=1,Fn=It(e,U,On?Math.min(je,zt.to)-1:Math.max(Re,zt.from)).right,Zn=Fn<ee?ee-Fn+1e9:Fn-ee;(!vt||Rt>Zn)&&(vt=zt,Rt=Zn)}return vt||(vt=H[H.length-1]),vt.from<Re&&(vt={from:Re,to:vt.to,level:vt.level}),vt.to>je&&(vt={from:vt.from,to:je,level:vt.level}),vt}var Or;function vr(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Or==null){Or=T("pre",null,"CodeMirror-line-like");for(var c=0;c<49;++c)Or.appendChild(document.createTextNode("x")),Or.appendChild(T("br"));Or.appendChild(document.createTextNode("x"))}m(e.measure,Or);var j=Or.offsetHeight/50;return j>3&&(e.cachedTextHeight=j),C(e.measure),j||1}function Pr(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var c=T("span","xxxxxxxxxx"),j=T("pre",[c],"CodeMirror-line-like");m(e.measure,j);var U=c.getBoundingClientRect(),H=(U.right-U.left)/10;return H>2&&(e.cachedCharWidth=H),H||10}function nr(e){for(var c=e.display,j={},U={},H=c.gutters.clientLeft,ee=c.gutters.firstChild,ge=0;ee;ee=ee.nextSibling,++ge){var Se=e.display.gutterSpecs[ge].className;j[Se]=ee.offsetLeft+ee.clientLeft+H,U[Se]=ee.clientWidth}return{fixedPos:da(c),gutterTotalWidth:c.gutters.offsetWidth,gutterLeft:j,gutterWidth:U,wrapperWidth:c.wrapper.clientWidth}}function da(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function ya(e){var c=vr(e.display),j=e.options.lineWrapping,U=j&&Math.max(5,e.display.scroller.clientWidth/Pr(e.display)-3);return function(H){if(Jn(e.doc,H))return 0;var ee=0;if(H.widgets)for(var ge=0;ge<H.widgets.length;ge++)H.widgets[ge].height&&(ee+=H.widgets[ge].height);return j?ee+(Math.ceil(H.text.length/U)||1)*c:ee+c}}function _a(e){var c=e.doc,j=ya(e);c.iter(function(U){var H=j(U);H!=U.height&&Rr(U,H)})}function Ta(e,c,j,U){var H=e.display;if(!j&&Ke(c).getAttribute("cm-not-content")=="true")return null;var ee,ge,Se=H.lineSpace.getBoundingClientRect();try{ee=c.clientX-Se.left,ge=c.clientY-Se.top}catch(Rt){return null}var Re=zr(e,ee,ge),je;if(U&&Re.xRel>0&&(je=cn(e.doc,Re.line).text).length==Re.ch){var vt=G(je,je.length,e.options.tabSize)-je.length;Re=Zt(Re.line,Math.max(0,Math.round((ee-dt(e.display).left)/Pr(e.display))-vt))}return Re}function ha(e,c){if(c>=e.display.viewTo)return null;if(c-=e.display.viewFrom,c<0)return null;for(var j=e.display.view,U=0;U<j.length;U++)if(c-=j[U].size,c<0)return U}function La(e,c,j,U){c==null&&(c=e.doc.first),j==null&&(j=e.doc.first+e.doc.size),U||(U=0);var H=e.display;if(U&&j<H.viewTo&&(H.updateLineNumbers==null||H.updateLineNumbers>c)&&(H.updateLineNumbers=c),e.curOp.viewChanged=!0,c>=H.viewTo)Ra&&kn(e.doc,c)<H.viewTo&&Ba(e);else if(j<=H.viewFrom)Ra&&Dn(e.doc,j+U)>H.viewFrom?Ba(e):(H.viewFrom+=U,H.viewTo+=U);else if(c<=H.viewFrom&&j>=H.viewTo)Ba(e);else if(c<=H.viewFrom){var ee=ni(e,j,j+U,1);ee?(H.view=H.view.slice(ee.index),H.viewFrom=ee.lineN,H.viewTo+=U):Ba(e)}else if(j>=H.viewTo){var ge=ni(e,c,c,-1);ge?(H.view=H.view.slice(0,ge.index),H.viewTo=ge.lineN):Ba(e)}else{var Se=ni(e,c,c,-1),Re=ni(e,j,j+U,1);Se&&Re?(H.view=H.view.slice(0,Se.index).concat(Gr(e,Se.lineN,Re.lineN)).concat(H.view.slice(Re.index)),H.viewTo+=U):Ba(e)}var je=H.externalMeasured;je&&(j<je.lineN?je.lineN+=U:c<je.lineN+je.size&&(H.externalMeasured=null))}function Na(e,c,j){e.curOp.viewChanged=!0;var U=e.display,H=e.display.externalMeasured;if(H&&c>=H.lineN&&c<H.lineN+H.size&&(U.externalMeasured=null),c<U.viewFrom||c>=U.viewTo)return;var ee=U.view[ha(e,c)];if(ee.node==null)return;var ge=ee.changes||(ee.changes=[]);fe(ge,j)==-1&&ge.push(j)}function Ba(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function ni(e,c,j,U){var H=ha(e,c),ee,ge=e.display.view;if(!Ra||j==e.doc.first+e.doc.size)return{index:H,lineN:j};for(var Se=e.display.viewFrom,Re=0;Re<H;Re++)Se+=ge[Re].size;if(Se!=c){if(U>0){if(H==ge.length-1)return null;ee=Se+ge[H].size-c,H++}else ee=Se-c;c+=ee,j+=ee}for(;kn(e.doc,j)!=j;){if(H==(U<0?0:ge.length-1))return null;j+=U*ge[H-(U<0?1:0)].size,H+=U}return{index:H,lineN:j}}function Fi(e,c,j){var U=e.display,H=U.view;H.length==0||c>=U.viewTo||j<=U.viewFrom?(U.view=Gr(e,c,j),U.viewFrom=c):(U.viewFrom>c?U.view=Gr(e,c,U.viewFrom).concat(U.view):U.viewFrom<c&&(U.view=U.view.slice(ha(e,c))),U.viewFrom=c,U.viewTo<j?U.view=U.view.concat(Gr(e,U.viewTo,j)):U.viewTo>j&&(U.view=U.view.slice(0,ha(e,j)))),U.viewTo=j}function Ai(e){for(var c=e.display.view,j=0,U=0;U<c.length;U++){var H=c[U];!H.hidden&&(!H.node||H.changes)&&++j}return j}function Ia(e){e.display.input.showSelection(e.display.input.prepareSelection())}function bi(e,c){c===void 0&&(c=!0);for(var j=e.doc,U={},H=U.cursors=document.createDocumentFragment(),ee=U.selection=document.createDocumentFragment(),ge=0;ge<j.sel.ranges.length;ge++){if(!c&&ge==j.sel.primIndex)continue;var Se=j.sel.ranges[ge];if(Se.from().line>=e.display.viewTo||Se.to().line<e.display.viewFrom)continue;var Re=Se.empty();(Re||e.options.showCursorWhenSelecting)&&Si(e,Se.head,H),Re||Pa(e,Se,ee)}return U}function Si(e,c,j){var U=Gn(e,c,"div",null,null,!e.options.singleCursorHeightPerLine),H=j.appendChild(T("div","\xA0","CodeMirror-cursor"));if(H.style.left=U.left+"px",H.style.top=U.top+"px",H.style.height=Math.max(0,U.bottom-U.top)*e.options.cursorHeight+"px",U.other){var ee=j.appendChild(T("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));ee.style.display="",ee.style.left=U.other.left+"px",ee.style.top=U.other.top+"px",ee.style.height=(U.other.bottom-U.other.top)*.85+"px"}}function Ua(e,c){return e.top-c.top||e.left-c.left}function Pa(e,c,j){var U=e.display,H=e.doc,ee=document.createDocumentFragment(),ge=dt(e.display),Se=ge.left,Re=Math.max(U.sizerWidth,nt(e)-U.sizer.offsetLeft)-ge.right,je=H.direction=="ltr";function vt(br,Vr,aa,ea){Vr<0&&(Vr=0),Vr=Math.round(Vr),ea=Math.round(ea),ee.appendChild(T("div",null,"CodeMirror-selected","position: absolute; left: "+br+`px;
top: `+Vr+"px; width: "+(aa==null?Re-br:aa)+`px;
height: `+(ea-Vr)+"px"))}function Rt(br,Vr,aa){var ea=cn(H,br),Ca=ea.text.length,Va,vi;function ti(ci,ji){return Sr(e,Zt(br,ci),"div",ea,ji)}function zi(ci,ji,Ci){var pi=fr(e,ea,null,ci),di=ji=="ltr"==(Ci=="after")?"left":"right",ii=Ci=="after"?pi.begin:pi.end-(/\s/.test(ea.text.charAt(pi.end-1))?2:1);return ti(ii,di)[di]}var Ui=St(ea,H.direction);return ot(Ui,Vr||0,aa==null?Ca:aa,function(ci,ji,Ci,pi){var di=Ci=="ltr",ii=ti(ci,di?"left":"right"),Bi=ti(ji-1,di?"right":"left"),Ts=Vr==null&&ci==0,es=aa==null&&ji==Ca,wi=pi==0,Po=!Ui||pi==Ui.length-1;if(Bi.top-ii.top<=3){var _i=(je?Ts:es)&&wi,ru=(je?es:Ts)&&Po,Fo=_i?Se:(di?ii:Bi).left,ds=ru?Re:(di?Bi:ii).right;vt(Fo,ii.top,ds-Fo,ii.bottom)}else{var fs,Mi,ws,au;di?(fs=je&&Ts&&wi?Se:ii.left,Mi=je?Re:zi(ci,Ci,"before"),ws=je?Se:zi(ji,Ci,"after"),au=je&&es&&Po?Re:Bi.right):(fs=je?zi(ci,Ci,"before"):Se,Mi=!je&&Ts&&wi?Re:ii.right,ws=!je&&es&&Po?Se:Bi.left,au=je?zi(ji,Ci,"after"):Re),vt(fs,ii.top,Mi-fs,ii.bottom),ii.bottom<Bi.top&&vt(Se,ii.bottom,null,Bi.top),vt(ws,Bi.top,au-ws,Bi.bottom)}(!Va||Ua(ii,Va)<0)&&(Va=ii),Ua(Bi,Va)<0&&(Va=Bi),(!vi||Ua(ii,vi)<0)&&(vi=ii),Ua(Bi,vi)<0&&(vi=Bi)}),{start:Va,end:vi}}var $t=c.from(),zt=c.to();if($t.line==zt.line)Rt($t.line,$t.ch,zt.ch);else{var On=cn(H,$t.line),Fn=cn(H,zt.line),Zn=nn(On)==nn(Fn),_r=Rt($t.line,$t.ch,Zn?On.text.length+1:null).end,Nr=Rt(zt.line,Zn?0:null,zt.ch).start;Zn&&(_r.top<Nr.top-2?(vt(_r.right,_r.top,null,_r.bottom),vt(Se,Nr.top,Nr.left,Nr.bottom)):vt(_r.right,_r.top,Nr.left-_r.right,_r.bottom)),_r.bottom<Nr.top&&vt(Se,_r.bottom,null,Nr.top)}j.appendChild(ee)}function Za(e){if(!e.state.focused)return;var c=e.display;clearInterval(c.blinker);var j=!0;c.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?c.blinker=setInterval(function(){e.hasFocus()||no(e),c.cursorDiv.style.visibility=(j=!j)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(c.cursorDiv.style.visibility="hidden")}function to(e){e.state.focused||(e.display.input.focus(),Ii(e))}function Mo(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,no(e))},100)}function Ii(e,c){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(ht(e,"focus",e,c),e.state.focused=!0,F(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()),Za(e)}function no(e,c){if(e.state.delayingBlurEvent)return;e.state.focused&&(ht(e,"blur",e,c),e.state.focused=!1,E(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function ro(e){for(var c=e.display,j=c.lineDiv.offsetTop,U=0;U<c.view.length;U++){var H=c.view[U],ee=e.options.lineWrapping,ge=void 0,Se=0;if(H.hidden)continue;if(w&&f<8){var Re=H.node.offsetTop+H.node.offsetHeight;ge=Re-j,j=Re}else{var je=H.node.getBoundingClientRect();ge=je.bottom-je.top,!ee&&H.text.firstChild&&(Se=H.text.firstChild.getBoundingClientRect().right-je.left-1)}var vt=H.line.height-ge;if((vt>.005||vt<-.005)&&(Rr(H.line,ge),mi(H.line),H.rest))for(var Rt=0;Rt<H.rest.length;Rt++)mi(H.rest[Rt]);if(Se>e.display.sizerWidth){var $t=Math.ceil(Se/Pr(e.display));$t>e.display.maxLineLength&&(e.display.maxLineLength=$t,e.display.maxLine=H.line,e.display.maxLineChanged=!0)}}}function mi(e){if(e.widgets)for(var c=0;c<e.widgets.length;++c){var j=e.widgets[c],U=j.node.parentNode;U&&(j.height=U.offsetHeight)}}function uo(e,c,j){var U=j&&j.top!=null?Math.max(0,j.top):e.scroller.scrollTop;U=Math.floor(U-va(e));var H=j&&j.bottom!=null?j.bottom:U+e.wrapper.clientHeight,ee=Ur(c,U),ge=Ur(c,H);if(j&&j.ensure){var Se=j.ensure.from.line,Re=j.ensure.to.line;Se<ee?(ee=Se,ge=Ur(c,Br(cn(c,Se))+e.wrapper.clientHeight)):Math.min(Re,c.lastLine())>=ge&&(ee=Ur(c,Br(cn(c,Re))-e.wrapper.clientHeight),ge=Re)}return{from:ee,to:Math.max(ge,ee+1)}}function Io(e,c){if(_t(e,"scrollCursorIntoView"))return;var j=e.display,U=j.sizer.getBoundingClientRect(),H=null;if(c.top+U.top<0?H=!0:c.bottom+U.top>(window.innerHeight||document.documentElement.clientHeight)&&(H=!1),H!=null&&!n){var ee=T("div","\u200B",null,`position: absolute;
top: `+(c.top-j.viewOffset-va(e.display))+`px;
height: `+(c.bottom-c.top+yt(e)+j.barHeight)+`px;
left: `+c.left+"px; width: "+Math.max(2,c.right-c.left)+"px;");e.display.lineSpace.appendChild(ee),ee.scrollIntoView(H),e.display.lineSpace.removeChild(ee)}}function Lo(e,c,j,U){U==null&&(U=0);var H;!e.options.lineWrapping&&c==j&&(c=c.ch?Zt(c.line,c.sticky=="before"?c.ch-1:c.ch,"after"):c,j=c.sticky=="before"?Zt(c.line,c.ch+1,"before"):c);for(var ee=0;ee<5;ee++){var ge=!1,Se=Gn(e,c),Re=!j||j==c?Se:Gn(e,j);H={left:Math.min(Se.left,Re.left),top:Math.min(Se.top,Re.top)-U,right:Math.max(Se.left,Re.left),bottom:Math.max(Se.bottom,Re.bottom)+U};var je=Vi(e,H),vt=e.doc.scrollTop,Rt=e.doc.scrollLeft;if(je.scrollTop!=null&&(Ji(e,je.scrollTop),Math.abs(e.doc.scrollTop-vt)>1&&(ge=!0)),je.scrollLeft!=null&&(ei(e,je.scrollLeft),Math.abs(e.doc.scrollLeft-Rt)>1&&(ge=!0)),!ge)break}return H}function bo(e,c){var j=Vi(e,c);j.scrollTop!=null&&Ji(e,j.scrollTop),j.scrollLeft!=null&&ei(e,j.scrollLeft)}function Vi(e,c){var j=e.display,U=vr(e.display);c.top<0&&(c.top=0);var H=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:j.scroller.scrollTop,ee=Pe(e),ge={};c.bottom-c.top>ee&&(c.bottom=c.top+ee);var Se=e.doc.height+Ze(j),Re=c.top<U,je=c.bottom>Se-U;if(c.top<H)ge.scrollTop=Re?0:c.top;else if(c.bottom>H+ee){var vt=Math.min(c.top,(je?Se:c.bottom)-ee);vt!=H&&(ge.scrollTop=vt)}var Rt=e.options.fixedGutter?0:j.gutters.offsetWidth,$t=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:j.scroller.scrollLeft-Rt,zt=nt(e)-j.gutters.offsetWidth,On=c.right-c.left>zt;return On&&(c.right=c.left+zt),c.left<10?ge.scrollLeft=0:c.left<$t?ge.scrollLeft=Math.max(0,c.left+Rt-(On?0:10)):c.right>zt+$t-3&&(ge.scrollLeft=c.right+(On?0:10)-zt),ge}function co(e,c){if(c==null)return;yo(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+c}function Xi(e){yo(e);var c=e.getCursor();e.curOp.scrollToPos={from:c,to:c,margin:e.options.cursorScrollMargin}}function Yi(e,c,j){(c!=null||j!=null)&&yo(e),c!=null&&(e.curOp.scrollLeft=c),j!=null&&(e.curOp.scrollTop=j)}function No(e,c){yo(e),e.curOp.scrollToPos=c}function yo(e){var c=e.curOp.scrollToPos;if(c){e.curOp.scrollToPos=null;var j=_n(e,c.from),U=_n(e,c.to);ao(e,j,U,c.margin)}}function ao(e,c,j,U){var H=Vi(e,{left:Math.min(c.left,j.left),top:Math.min(c.top,j.top)-U,right:Math.max(c.right,j.right),bottom:Math.max(c.bottom,j.bottom)+U});Yi(e,H.scrollLeft,H.scrollTop)}function Ji(e,c){if(Math.abs(e.doc.scrollTop-c)<2)return;A||fo(e,{top:c}),Qi(e,c,!0),A&&fo(e),ai(e,100)}function Qi(e,c,j){if(c=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,c)),e.display.scroller.scrollTop==c&&!j)return;e.doc.scrollTop=c,e.display.scrollbars.setScrollTop(c),e.display.scroller.scrollTop!=c&&(e.display.scroller.scrollTop=c)}function ei(e,c,j,U){if(c=Math.max(0,Math.min(c,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(j?c==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-c)<2)&&!U)return;e.doc.scrollLeft=c,ba(e),e.display.scroller.scrollLeft!=c&&(e.display.scroller.scrollLeft=c),e.display.scrollbars.setScrollLeft(c)}function Li(e){var c=e.display,j=c.gutters.offsetWidth,U=Math.round(e.doc.height+Ze(e.display));return{clientHeight:c.scroller.clientHeight,viewHeight:c.wrapper.clientHeight,scrollWidth:c.scroller.scrollWidth,clientWidth:c.scroller.clientWidth,viewWidth:c.wrapper.clientWidth,barLeft:e.options.fixedGutter?j:0,docHeight:U,scrollHeight:U+yt(e)+c.barHeight,nativeBarWidth:c.nativeBarWidth,gutterWidth:j}}var Di=function(e,c,j){this.cm=j;var U=this.vert=T("div",[T("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),H=this.horiz=T("div",[T("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");U.tabIndex=H.tabIndex=-1,e(U),e(H),Ue(U,"scroll",function(){U.clientHeight&&c(U.scrollTop,"vertical")}),Ue(H,"scroll",function(){H.clientWidth&&c(H.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,w&&f<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Di.prototype.update=function(e){var c=e.scrollWidth>e.clientWidth+1,j=e.scrollHeight>e.clientHeight+1,U=e.nativeBarWidth;if(j){this.vert.style.display="block",this.vert.style.bottom=c?U+"px":"0";var H=e.viewHeight-(c?U:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+H)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(c){this.horiz.style.display="block",this.horiz.style.right=j?U+"px":"0",this.horiz.style.left=e.barLeft+"px";var ee=e.viewWidth-e.barLeft-(j?U:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+ee)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(U==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:j?U:0,bottom:c?U:0}},Di.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Di.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Di.prototype.zeroWidthHack=function(){var e=s&&!a?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ne,this.disableVert=new ne},Di.prototype.enableZeroWidthBar=function(e,c,j){e.style.pointerEvents="auto";function U(){var H=e.getBoundingClientRect(),ee=j=="vert"?document.elementFromPoint(H.right-1,(H.top+H.bottom)/2):document.elementFromPoint((H.right+H.left)/2,H.bottom-1);ee!=e?e.style.pointerEvents="none":c.set(1e3,U)}c.set(1e3,U)},Di.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Zi=function(){};Zi.prototype.update=function(){return{bottom:0,right:0}},Zi.prototype.setScrollLeft=function(){},Zi.prototype.setScrollTop=function(){},Zi.prototype.clear=function(){};function Ri(e,c){c||(c=Li(e));var j=e.display.barWidth,U=e.display.barHeight;Eo(e,c);for(var H=0;H<4&&j!=e.display.barWidth||U!=e.display.barHeight;H++)j!=e.display.barWidth&&e.options.lineWrapping&&ro(e),Eo(e,Li(e)),j=e.display.barWidth,U=e.display.barHeight}function Eo(e,c){var j=e.display,U=j.scrollbars.update(c);j.sizer.style.paddingRight=(j.barWidth=U.right)+"px",j.sizer.style.paddingBottom=(j.barHeight=U.bottom)+"px",j.heightForcer.style.borderBottom=U.bottom+"px solid transparent",U.right&&U.bottom?(j.scrollbarFiller.style.display="block",j.scrollbarFiller.style.height=U.bottom+"px",j.scrollbarFiller.style.width=U.right+"px"):j.scrollbarFiller.style.display="",U.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(j.gutterFiller.style.display="block",j.gutterFiller.style.height=U.bottom+"px",j.gutterFiller.style.width=c.gutterWidth+"px"):j.gutterFiller.style.display=""}var xo={native:Di,null:Zi};function Co(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&E(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new xo[e.options.scrollbarStyle](function(c){e.display.wrapper.insertBefore(c,e.display.scrollbarFiller),Ue(c,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),c.setAttribute("cm-not-content","true")},function(c,j){j=="horizontal"?ei(e,c):Ji(e,c)},e),e.display.scrollbars.addClass&&F(e.display.wrapper,e.display.scrollbars.addClass)}var io=0;function Ni(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:++io},qr(e.curOp)}function qi(e){var c=e.curOp;c&&Gt(c,function(j){for(var U=0;U<j.ops.length;U++)j.ops[U].cm.curOp=null;ko(j)})}function ko(e){for(var c=e.ops,j=0;j<c.length;j++)oo(c[j]);for(var U=0;U<c.length;U++)so(c[U]);for(var H=0;H<c.length;H++)So(c[H]);for(var ee=0;ee<c.length;ee++)Uo(c[ee]);for(var ge=0;ge<c.length;ge++)jo(c[ge])}function oo(e){var c=e.cm,j=c.display;Bo(c),e.updateMaxLine&&Yt(c),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<j.viewFrom||e.scrollToPos.to.line>=j.viewTo)||j.maxLineChanged&&c.options.lineWrapping,e.update=e.mustUpdate&&new yi(c,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function so(e){e.updatedDisplay=e.mustUpdate&&Wi(e.cm,e.update)}function So(e){var c=e.cm,j=c.display;e.updatedDisplay&&ro(c),e.barMeasure=Li(c),j.maxLineChanged&&!c.options.lineWrapping&&(e.adjustWidthTo=qe(c,j.maxLine,j.maxLine.text.length).left+3,c.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(j.scroller.clientWidth,j.sizer.offsetLeft+e.adjustWidthTo+yt(c)+c.display.barWidth),e.maxScrollLeft=Math.max(0,j.sizer.offsetLeft+e.adjustWidthTo-nt(c))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=j.input.prepareSelection())}function Uo(e){var c=e.cm;e.adjustWidthTo!=null&&(c.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<c.doc.scrollLeft&&ei(c,Math.min(c.display.scroller.scrollLeft,e.maxScrollLeft),!0),c.display.maxLineChanged=!1);var j=e.focus&&e.focus==z();e.preparedSelection&&c.display.input.showSelection(e.preparedSelection,j),(e.updatedDisplay||e.startHeight!=c.doc.height)&&Ri(c,e.barMeasure),e.updatedDisplay&&wa(c,e.barMeasure),e.selectionChanged&&Za(c),c.state.focused&&e.updateInput&&c.display.input.reset(e.typing),j&&to(e.cm)}function jo(e){var c=e.cm,j=c.display,U=c.doc;if(e.updatedDisplay&&wo(c,e.update),j.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(j.wheelStartX=j.wheelStartY=null),e.scrollTop!=null&&Qi(c,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&ei(c,e.scrollLeft,!0,!0),e.scrollToPos){var H=Lo(c,V(U,e.scrollToPos.from),V(U,e.scrollToPos.to),e.scrollToPos.margin);Io(c,H)}var ee=e.maybeHiddenMarkers,ge=e.maybeUnhiddenMarkers;if(ee)for(var Se=0;Se<ee.length;++Se)ee[Se].lines.length||ht(ee[Se],"hide");if(ge)for(var Re=0;Re<ge.length;++Re)ge[Re].lines.length&&ht(ge[Re],"unhide");j.wrapper.offsetHeight&&(U.scrollTop=c.display.scroller.scrollTop),e.changeObjs&&ht(c,"changes",c,e.changeObjs),e.update&&e.update.finish()}function fi(e,c){if(e.curOp)return c();Ni(e);try{return c()}finally{qi(e)}}function Wa(e,c){return function(){if(e.curOp)return c.apply(e,arguments);Ni(e);try{return c.apply(e,arguments)}finally{qi(e)}}}function ri(e){return function(){if(this.curOp)return e.apply(this,arguments);Ni(this);try{return e.apply(this,arguments)}finally{qi(this)}}}function Xa(e){return function(){var c=this.cm;if(!c||c.curOp)return e.apply(this,arguments);Ni(c);try{return e.apply(this,arguments)}finally{qi(c)}}}function ai(e,c){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(c,B(Oo,e))}function Oo(e){var c=e.doc;if(c.highlightFrontier>=e.display.viewTo)return;var j=+new Date+e.options.workTime,U=In(e,c.highlightFrontier),H=[];c.iter(U.line,Math.min(c.first+c.size,e.display.viewTo+500),function(ee){if(U.line>=e.display.viewFrom){var ge=ee.styles,Se=ee.text.length>e.options.maxHighlightLength?Cn(c.mode,U.state):null,Re=ct(e,ee,U,!0);Se&&(U.state=Se),ee.styles=Re.styles;var je=ee.styleClasses,vt=Re.classes;vt?ee.styleClasses=vt:je&&(ee.styleClasses=null);for(var Rt=!ge||ge.length!=ee.styles.length||je!=vt&&(!je||!vt||je.bgClass!=vt.bgClass||je.textClass!=vt.textClass),$t=0;!Rt&&$t<ge.length;++$t)Rt=ge[$t]!=ee.styles[$t];Rt&&H.push(U.line),ee.stateAfter=U.save(),U.nextLine()}else ee.text.length<=e.options.maxHighlightLength&&Vn(e,ee.text,U),ee.stateAfter=U.line%5==0?U.save():null,U.nextLine();if(+new Date>j)return ai(e,e.options.workDelay),!0}),c.highlightFrontier=U.line,c.modeFrontier=Math.max(c.modeFrontier,U.line),H.length&&fi(e,function(){for(var ee=0;ee<H.length;ee++)Na(e,H[ee],"text")})}var yi=function(e,c,j){var U=e.display;this.viewport=c,this.visible=uo(U,e.doc,c),this.editorIsHidden=!U.wrapper.offsetWidth,this.wrapperHeight=U.wrapper.clientHeight,this.wrapperWidth=U.wrapper.clientWidth,this.oldDisplayWidth=nt(e),this.force=j,this.dims=nr(e),this.events=[]};yi.prototype.signal=function(e,c){He(e,c)&&this.events.push(arguments)},yi.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ht.apply(null,this.events[e])};function Bo(e){var c=e.display;!c.scrollbarsClipped&&c.scroller.offsetWidth&&(c.nativeBarWidth=c.scroller.offsetWidth-c.scroller.clientWidth,c.heightForcer.style.height=yt(e)+"px",c.sizer.style.marginBottom=-c.nativeBarWidth+"px",c.sizer.style.borderRightWidth=yt(e)+"px",c.scrollbarsClipped=!0)}function To(e){if(e.hasFocus())return null;var c=z();if(!c||!N(e.display.lineDiv,c))return null;var j={activeElt:c};if(window.getSelection){var U=window.getSelection();U.anchorNode&&U.extend&&N(e.display.lineDiv,U.anchorNode)&&(j.anchorNode=U.anchorNode,j.anchorOffset=U.anchorOffset,j.focusNode=U.focusNode,j.focusOffset=U.focusOffset)}return j}function $i(e){if(!e||!e.activeElt||e.activeElt==z())return;if(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&N(document.body,e.anchorNode)&&N(document.body,e.focusNode)){var c=window.getSelection(),j=document.createRange();j.setEnd(e.anchorNode,e.anchorOffset),j.collapse(!1),c.removeAllRanges(),c.addRange(j),c.extend(e.focusNode,e.focusOffset)}}function Wi(e,c){var j=e.display,U=e.doc;if(c.editorIsHidden)return Ba(e),!1;if(!c.force&&c.visible.from>=j.viewFrom&&c.visible.to<=j.viewTo&&(j.updateLineNumbers==null||j.updateLineNumbers>=j.viewTo)&&j.renderedView==j.view&&Ai(e)==0)return!1;Ka(e)&&(Ba(e),c.dims=nr(e));var H=U.first+U.size,ee=Math.max(c.visible.from-e.options.viewportMargin,U.first),ge=Math.min(H,c.visible.to+e.options.viewportMargin);j.viewFrom<ee&&ee-j.viewFrom<20&&(ee=Math.max(U.first,j.viewFrom)),j.viewTo>ge&&j.viewTo-ge<20&&(ge=Math.min(H,j.viewTo)),Ra&&(ee=kn(e.doc,ee),ge=Dn(e.doc,ge));var Se=ee!=j.viewFrom||ge!=j.viewTo||j.lastWrapHeight!=c.wrapperHeight||j.lastWrapWidth!=c.wrapperWidth;Fi(e,ee,ge),j.viewOffset=Br(cn(e.doc,j.viewFrom)),e.display.mover.style.top=j.viewOffset+"px";var Re=Ai(e);if(!Se&&Re==0&&!c.force&&j.renderedView==j.view&&(j.updateLineNumbers==null||j.updateLineNumbers>=j.viewTo))return!1;var je=To(e);return Re>4&&(j.lineDiv.style.display="none"),Wo(e,j.updateLineNumbers,c.dims),Re>4&&(j.lineDiv.style.display=""),j.renderedView=j.view,$i(je),C(j.cursorDiv),C(j.selectionDiv),j.gutters.style.height=j.sizer.style.minHeight=0,Se&&(j.lastWrapHeight=c.wrapperHeight,j.lastWrapWidth=c.wrapperWidth,ai(e,400)),j.updateLineNumbers=null,!0}function wo(e,c){for(var j=c.viewport,U=!0;;U=!1){if(!U||!e.options.lineWrapping||c.oldDisplayWidth==nt(e)){if(j&&j.top!=null&&(j={top:Math.min(e.doc.height+Ze(e.display)-Pe(e),j.top)}),c.visible=uo(e.display,e.doc,j),c.visible.from>=e.display.viewFrom&&c.visible.to<=e.display.viewTo)break}else U&&(c.visible=uo(e.display,e.doc,j));if(!Wi(e,c))break;ro(e);var H=Li(e);Ia(e),Ri(e,H),wa(e,H),c.force=!1}c.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(c.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,c){var j=new yi(e,c);if(Wi(e,j)){ro(e),wo(e,j);var U=Li(e);Ia(e),Ri(e,U),wa(e,U),j.finish()}}function Wo(e,c,j){var U=e.display,H=e.options.lineNumbers,ee=U.lineDiv,ge=ee.firstChild;function Se(On){var Fn=On.nextSibling;return _&&s&&e.display.currentWheelTarget==On?On.style.display="none":On.parentNode.removeChild(On),Fn}for(var Re=U.view,je=U.viewFrom,vt=0;vt<Re.length;vt++){var Rt=Re[vt];if(!Rt.hidden)if(!Rt.node||Rt.node.parentNode!=ee){var $t=Xr(e,Rt,je,j);ee.insertBefore($t,ge)}else{for(;ge!=Rt.node;)ge=Se(ge);var zt=H&&c!=null&&c<=je&&Rt.lineNumber;Rt.changes&&(fe(Rt.changes,"gutter")>-1&&(zt=!1),tr(e,Rt,je,j)),zt&&(C(Rt.lineNumber),Rt.lineNumber.appendChild(document.createTextNode(sn(e.options,je)))),ge=Rt.node.nextSibling}je+=Rt.size}for(;ge;)ge=Se(ge)}function lo(e){var c=e.gutters.offsetWidth;e.sizer.style.marginLeft=c+"px"}function wa(e,c){e.display.sizer.style.minHeight=c.docHeight+"px",e.display.heightForcer.style.top=c.docHeight+"px",e.display.gutters.style.height=c.docHeight+e.display.barHeight+yt(e)+"px"}function ba(e){var c=e.display,j=c.view;if(!c.alignWidgets&&(!c.gutters.firstChild||!e.options.fixedGutter))return;for(var U=da(c)-c.scroller.scrollLeft+e.doc.scrollLeft,H=c.gutters.offsetWidth,ee=U+"px",ge=0;ge<j.length;ge++)if(!j[ge].hidden){e.options.fixedGutter&&(j[ge].gutter&&(j[ge].gutter.style.left=ee),j[ge].gutterBackground&&(j[ge].gutterBackground.style.left=ee));var Se=j[ge].alignable;if(Se)for(var Re=0;Re<Se.length;Re++)Se[Re].style.left=ee}e.options.fixedGutter&&(c.gutters.style.left=U+H+"px")}function Ka(e){if(!e.options.lineNumbers)return!1;var c=e.doc,j=sn(e.options,c.first+c.size-1),U=e.display;if(j.length!=U.lineNumChars){var H=U.measure.appendChild(T("div",[T("div",j)],"CodeMirror-linenumber CodeMirror-gutter-elt")),ee=H.firstChild.offsetWidth,ge=H.offsetWidth-ee;return U.lineGutter.style.width="",U.lineNumInnerWidth=Math.max(ee,U.lineGutter.offsetWidth-ge)+1,U.lineNumWidth=U.lineNumInnerWidth+ge,U.lineNumChars=U.lineNumInnerWidth?j.length:-1,U.lineGutter.style.width=U.lineNumWidth+"px",lo(e.display),!0}return!1}function ui(e,c){for(var j=[],U=!1,H=0;H<e.length;H++){var ee=e[H],ge=null;if(typeof ee!="string"&&(ge=ee.style,ee=ee.className),ee=="CodeMirror-linenumbers")if(c)U=!0;else continue;j.push({className:ee,style:ge})}return c&&!U&&j.push({className:"CodeMirror-linenumbers",style:null}),j}function eo(e){var c=e.gutters,j=e.gutterSpecs;C(c),e.lineGutter=null;for(var U=0;U<j.length;++U){var H=j[U],ee=H.className,ge=H.style,Se=c.appendChild(T("div",null,"CodeMirror-gutter "+ee));ge&&(Se.style.cssText=ge),ee=="CodeMirror-linenumbers"&&(e.lineGutter=Se,Se.style.width=(e.lineNumWidth||1)+"px")}c.style.display=j.length?"":"none",lo(e)}function ki(e){eo(e.display),La(e),ba(e)}function ho(e,c,j,U){var H=this;this.input=j,H.scrollbarFiller=T("div",null,"CodeMirror-scrollbar-filler"),H.scrollbarFiller.setAttribute("cm-not-content","true"),H.gutterFiller=T("div",null,"CodeMirror-gutter-filler"),H.gutterFiller.setAttribute("cm-not-content","true"),H.lineDiv=I("div",null,"CodeMirror-code"),H.selectionDiv=T("div",null,null,"position: relative; z-index: 1"),H.cursorDiv=T("div",null,"CodeMirror-cursors"),H.measure=T("div",null,"CodeMirror-measure"),H.lineMeasure=T("div",null,"CodeMirror-measure"),H.lineSpace=I("div",[H.measure,H.lineMeasure,H.selectionDiv,H.cursorDiv,H.lineDiv],null,"position: relative; outline: none");var ee=I("div",[H.lineSpace],"CodeMirror-lines");H.mover=T("div",[ee],null,"position: relative"),H.sizer=T("div",[H.mover],"CodeMirror-sizer"),H.sizerWidth=null,H.heightForcer=T("div",null,null,"position: absolute; height: "+de+"px; width: 1px;"),H.gutters=T("div",null,"CodeMirror-gutters"),H.lineGutter=null,H.scroller=T("div",[H.sizer,H.heightForcer,H.gutters],"CodeMirror-scroll"),H.scroller.setAttribute("tabIndex","-1"),H.wrapper=T("div",[H.scrollbarFiller,H.gutterFiller,H.scroller],"CodeMirror"),w&&f<8&&(H.gutters.style.zIndex=-1,H.scroller.style.paddingRight=0),!_&&!(A&&l)&&(H.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(H.wrapper):e(H.wrapper)),H.viewFrom=H.viewTo=c.first,H.reportedViewFrom=H.reportedViewTo=c.first,H.view=[],H.renderedView=null,H.externalMeasured=null,H.viewOffset=0,H.lastWrapHeight=H.lastWrapWidth=0,H.updateLineNumbers=null,H.nativeBarWidth=H.barHeight=H.barWidth=0,H.scrollbarsClipped=!1,H.lineNumWidth=H.lineNumInnerWidth=H.lineNumChars=null,H.alignWidgets=!1,H.cachedCharWidth=H.cachedTextHeight=H.cachedPaddingH=null,H.maxLine=null,H.maxLineLength=0,H.maxLineChanged=!1,H.wheelDX=H.wheelDY=H.wheelStartX=H.wheelStartY=null,H.shift=!1,H.selForContextMenu=null,H.activeTouch=null,H.gutterSpecs=ui(U.gutters,U.lineNumbers),eo(H),j.init(H)}var Oi=0,qa=null;w?qa=-.53:A?qa=15:r?qa=-.7:t&&(qa=-1/3);function po(e){var c=e.wheelDeltaX,j=e.wheelDeltaY;return c==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(c=e.detail),j==null&&e.detail&&e.axis==e.VERTICAL_AXIS?j=e.detail:j==null&&(j=e.wheelDelta),{x:c,y:j}}function Hi(e){var c=po(e);return c.x*=qa,c.y*=qa,c}function mo(e,c){var j=po(c),U=j.x,H=j.y,ee=e.display,ge=ee.scroller,Se=ge.scrollWidth>ge.clientWidth,Re=ge.scrollHeight>ge.clientHeight;if(!(U&&Se||H&&Re))return;if(H&&s&&_){e:for(var je=c.target,vt=ee.view;je!=ge;je=je.parentNode)for(var Rt=0;Rt<vt.length;Rt++)if(vt[Rt].node==je){e.display.currentWheelTarget=je;break e}}if(U&&!A&&!u&&qa!=null){H&&Re&&Ji(e,Math.max(0,ge.scrollTop+H*qa)),ei(e,Math.max(0,ge.scrollLeft+U*qa)),(!H||H&&Re)&&Ee(c),ee.wheelStartX=null;return}if(H&&qa!=null){var $t=H*qa,zt=e.doc.scrollTop,On=zt+ee.wrapper.clientHeight;$t<0?zt=Math.max(0,zt+$t-50):On=Math.min(e.doc.height,On+$t+50),fo(e,{top:zt,bottom:On})}Oi<20&&(ee.wheelStartX==null?(ee.wheelStartX=ge.scrollLeft,ee.wheelStartY=ge.scrollTop,ee.wheelDX=U,ee.wheelDY=H,setTimeout(function(){if(ee.wheelStartX==null)return;var Fn=ge.scrollLeft-ee.wheelStartX,Zn=ge.scrollTop-ee.wheelStartY,_r=Zn&&ee.wheelDY&&Zn/ee.wheelDY||Fn&&ee.wheelDX&&Fn/ee.wheelDX;if(ee.wheelStartX=ee.wheelStartY=null,!_r)return;qa=(qa*Oi+_r)/(Oi+1),++Oi},200)):(ee.wheelDX+=U,ee.wheelDY+=H))}var hi=function(e,c){this.ranges=e,this.primIndex=c};hi.prototype.primary=function(){return this.ranges[this.primIndex]},hi.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var c=0;c<this.ranges.length;c++){var j=this.ranges[c],U=e.ranges[c];if(!jr(j.anchor,U.anchor)||!jr(j.head,U.head))return!1}return!0},hi.prototype.deepCopy=function(){for(var e=[],c=0;c<this.ranges.length;c++)e[c]=new Da(jn(this.ranges[c].anchor),jn(this.ranges[c].head));return new hi(e,this.primIndex)},hi.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},hi.prototype.contains=function(e,c){c||(c=e);for(var j=0;j<this.ranges.length;j++){var U=this.ranges[j];if(Tn(c,U.from())>=0&&Tn(e,U.to())<=0)return j}return-1};var Da=function(e,c){this.anchor=e,this.head=c};Da.prototype.from=function(){return Wn(this.anchor,this.head)},Da.prototype.to=function(){return $n(this.anchor,this.head)},Da.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ia(e,c,j){var U=e&&e.options.selectionsMayTouch,H=c[j];c.sort(function($t,zt){return Tn($t.from(),zt.from())}),j=fe(c,H);for(var ee=1;ee<c.length;ee++){var ge=c[ee],Se=c[ee-1],Re=Tn(Se.to(),ge.from());if(U&&!ge.empty()?Re>0:Re>=0){var je=Wn(Se.from(),ge.from()),vt=$n(Se.to(),ge.to()),Rt=Se.empty()?ge.from()==ge.head:Se.from()==Se.head;ee<=j&&--j,c.splice(--ee,2,new Da(Rt?vt:je,Rt?je:vt))}}return new hi(c,j)}function Er(e,c){return new hi([new Da(e,c||e)],0)}function Qr(e){return e.text?Zt(e.from.line+e.text.length-1,q(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function ma(e,c){if(Tn(e,c.from)<0)return e;if(Tn(e,c.to)<=0)return Qr(c);var j=e.line+c.text.length-(c.to.line-c.from.line)-1,U=e.ch;return e.line==c.to.line&&(U+=Qr(c).ch-c.to.ch),Zt(j,U)}function Fa(e,c){for(var j=[],U=0;U<e.sel.ranges.length;U++){var H=e.sel.ranges[U];j.push(new Da(ma(H.anchor,c),ma(H.head,c)))}return ia(e.cm,j,e.sel.primIndex)}function Ei(e,c,j){return e.line==c.line?Zt(j.line,e.ch-c.ch+j.ch):Zt(j.line+(e.line-c.line),e.ch)}function Pi(e,c,j){for(var U=[],H=Zt(e.first,0),ee=H,ge=0;ge<c.length;ge++){var Se=c[ge],Re=Ei(Se.from,H,ee),je=Ei(Qr(Se),H,ee);if(H=Se.to,ee=je,j=="around"){var vt=e.sel.ranges[ge],Rt=Tn(vt.head,vt.anchor)<0;U[ge]=new Da(Rt?je:Re,Rt?Re:je)}else U[ge]=new Da(Re,Re)}return new hi(U,e.sel.primIndex)}function $a(e){e.doc.mode=Dt(e.options,e.doc.modeOption),xi(e)}function xi(e){e.doc.iter(function(c){c.stateAfter&&(c.stateAfter=null),c.styles&&(c.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ai(e,100),e.state.modeGen++,e.curOp&&La(e)}function Ki(e,c){return c.from.ch==0&&c.to.ch==0&&q(c.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function go(e,c,j,U){function H(Nr){return j?j[Nr]:null}function ee(Nr,br,Vr){An(Nr,br,Vr,U),Jt(Nr,"change",Nr,c)}function ge(Nr,br){for(var Vr=[],aa=Nr;aa<br;++aa)Vr.push(new dn(je[aa],H(aa),U));return Vr}var Se=c.from,Re=c.to,je=c.text,vt=cn(e,Se.line),Rt=cn(e,Re.line),$t=q(je),zt=H(je.length-1),On=Re.line-Se.line;if(c.full)e.insert(0,ge(0,je.length)),e.remove(je.length,e.size-je.length);else if(Ki(e,c)){var Fn=ge(0,je.length-1);ee(Rt,Rt.text,zt),On&&e.remove(Se.line,On),Fn.length&&e.insert(Se.line,Fn)}else if(vt==Rt)if(je.length==1)ee(vt,vt.text.slice(0,Se.ch)+$t+vt.text.slice(Re.ch),zt);else{var Zn=ge(1,je.length-1);Zn.push(new dn($t+vt.text.slice(Re.ch),zt,U)),ee(vt,vt.text.slice(0,Se.ch)+je[0],H(0)),e.insert(Se.line+1,Zn)}else if(je.length==1)ee(vt,vt.text.slice(0,Se.ch)+je[0]+Rt.text.slice(Re.ch),H(0)),e.remove(Se.line+1,On);else{ee(vt,vt.text.slice(0,Se.ch)+je[0],H(0)),ee(Rt,$t+Rt.text.slice(Re.ch),zt);var _r=ge(1,je.length-1);On>1&&e.remove(Se.line+1,On-1),e.insert(Se.line+1,_r)}Jt(e,"change",e,c)}function Qa(e,c,j){function U(H,ee,ge){if(H.linked)for(var Se=0;Se<H.linked.length;++Se){var Re=H.linked[Se];if(Re.doc==ee)continue;var je=ge&&Re.sharedHist;if(j&&!je)continue;c(Re.doc,je),U(Re.doc,H,je)}}U(e,null,!0)}function As(e,c){if(c.cm)throw new Error("This document is already in use.");e.doc=c,c.cm=e,_a(e),$a(e),Ys(e),e.options.lineWrapping||Yt(e),e.options.mode=c.modeOption,La(e)}function Ys(e){(e.doc.direction=="rtl"?F:E)(e.display.lineDiv,"CodeMirror-rtl")}function Pl(e){fi(e,function(){Ys(e),La(e)})}function hs(e){this.done=[],this.undone=[],this.undoDepth=Infinity,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function Ds(e,c){var j={from:jn(c.from),to:Qr(c),text:xr(e,c.from,c.to)};return Rs(e,j,c.from.line,c.to.line+1),Qa(e,function(U){return Rs(U,j,c.from.line,c.to.line+1)},!0),j}function Js(e){for(;e.length;){var c=q(e);if(c.ranges)e.pop();else break}}function Ml(e,c){if(c)return Js(e.done),q(e.done);if(e.done.length&&!q(e.done).ranges)return q(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),q(e.done)}function Qs(e,c,j,U){var H=e.history;H.undone.length=0;var ee=+new Date,ge,Se;if((H.lastOp==U||H.lastOrigin==c.origin&&c.origin&&(c.origin.charAt(0)=="+"&&H.lastModTime>ee-(e.cm?e.cm.options.historyEventDelay:500)||c.origin.charAt(0)=="*"))&&(ge=Ml(H,H.lastOp==U)))Se=q(ge.changes),Tn(c.from,c.to)==0&&Tn(c.from,Se.to)==0?Se.to=Qr(c):ge.changes.push(Ds(e,c));else{var Re=q(H.done);for((!Re||!Re.ranges)&&ms(e.sel,H.done),ge={changes:[Ds(e,c)],generation:H.generation},H.done.push(ge);H.done.length>H.undoDepth;)H.done.shift(),H.done[0].ranges||H.done.shift()}H.done.push(j),H.generation=++H.maxGeneration,H.lastModTime=H.lastSelTime=ee,H.lastOp=H.lastSelOp=U,H.lastOrigin=H.lastSelOrigin=c.origin,Se||ht(e,"historyAdded")}function Il(e,c,j,U){var H=c.charAt(0);return H=="*"||H=="+"&&j.ranges.length==U.ranges.length&&j.somethingSelected()==U.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function ps(e,c,j,U){var H=e.history,ee=U&&U.origin;j==H.lastSelOp||ee&&H.lastSelOrigin==ee&&(H.lastModTime==H.lastSelTime&&H.lastOrigin==ee||Il(e,ee,q(H.done),c))?H.done[H.done.length-1]=c:ms(c,H.done),H.lastSelTime=+new Date,H.lastSelOrigin=ee,H.lastSelOp=j,U&&U.clearRedo!==!1&&Js(H.undone)}function ms(e,c){var j=q(c);j&&j.ranges&&j.equals(e)||c.push(e)}function Rs(e,c,j,U){var H=c["spans_"+e.id],ee=0;e.iter(Math.max(e.first,j),Math.min(e.first+e.size,U),function(ge){ge.markedSpans&&((H||(H=c["spans_"+e.id]={}))[ee]=ge.markedSpans),++ee})}function gs(e){if(!e)return null;for(var c,j=0;j<e.length;++j)e[j].marker.explicitlyCleared?c||(c=e.slice(0,j)):c&&c.push(e[j]);return c?c.length?c:null:e}function Zs(e,c){var j=c["spans_"+e.id];if(!j)return null;for(var U=[],H=0;H<c.text.length;++H)U.push(gs(j[H]));return U}function Ps(e,c){var j=Zs(e,c),U=oa(e,c);if(!j)return U;if(!U)return j;for(var H=0;H<j.length;++H){var ee=j[H],ge=U[H];if(ee&&ge){e:for(var Se=0;Se<ge.length;++Se){for(var Re=ge[Se],je=0;je<ee.length;++je)if(ee[je].marker==Re.marker)continue e;ee.push(Re)}}else ge&&(j[H]=ge)}return j}function Ho(e,c,j){for(var U=[],H=0;H<e.length;++H){var ee=e[H];if(ee.ranges){U.push(j?hi.prototype.deepCopy.call(ee):ee);continue}var ge=ee.changes,Se=[];U.push({changes:Se});for(var Re=0;Re<ge.length;++Re){var je=ge[Re],vt=void 0;if(Se.push({from:je.from,to:je.to,text:je.text}),c)for(var Rt in je)(vt=Rt.match(/^spans_(\d+)$/))&&(fe(c,Number(vt[1]))>-1&&(q(Se)[Rt]=je[Rt],delete je[Rt]))}}return U}function vs(e,c,j,U){if(U){var H=e.anchor;if(j){var ee=Tn(c,H)<0;ee!=Tn(j,H)<0?(H=c,c=j):ee!=Tn(c,j)<0&&(c=j)}return new Da(H,c)}else return new Da(j||c,c)}function _s(e,c,j,U,H){H==null&&(H=e.cm&&(e.cm.display.shift||e.extend)),gi(e,new hi([vs(e.sel.primary(),c,j,H)],0),U)}function $s(e,c,j){for(var U=[],H=e.cm&&(e.cm.display.shift||e.extend),ee=0;ee<e.sel.ranges.length;ee++)U[ee]=vs(e.sel.ranges[ee],c[ee],null,H);var ge=ia(e.cm,U,e.sel.primIndex);gi(e,ge,j)}function Ao(e,c,j,U){var H=e.sel.ranges.slice(0);H[c]=j,gi(e,ia(e.cm,H,e.sel.primIndex),U)}function el(e,c,j,U){gi(e,Er(c,j),U)}function Ll(e,c,j){var U={ranges:c.ranges,update:function(H){this.ranges=[];for(var ee=0;ee<H.length;ee++)this.ranges[ee]=new Da(V(e,H[ee].anchor),V(e,H[ee].head))},origin:j&&j.origin};return ht(e,"beforeSelectionChange",e,U),e.cm&&ht(e.cm,"beforeSelectionChange",e.cm,U),U.ranges!=c.ranges?ia(e.cm,U.ranges,U.ranges.length-1):c}function tl(e,c,j){var U=e.history.done,H=q(U);H&&H.ranges?(U[U.length-1]=c,Ko(e,c,j)):gi(e,c,j)}function gi(e,c,j){Ko(e,c,j),ps(e,e.sel,e.cm?e.cm.curOp.id:NaN,j)}function Ko(e,c,j){(He(e,"beforeSelectionChange")||e.cm&&He(e.cm,"beforeSelectionChange"))&&(c=Ll(e,c,j));var U=j&&j.bias||(Tn(c.primary().head,e.sel.primary().head)<0?-1:1);nl(e,al(e,c,U,!0)),!(j&&j.scroll===!1)&&e.cm&&Xi(e.cm)}function nl(e,c){if(c.equals(e.sel))return;e.sel=c,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Qe(e.cm)),Jt(e,"cursorActivity",e)}function rl(e){nl(e,al(e,e.sel,null,!1))}function al(e,c,j,U){for(var H,ee=0;ee<c.ranges.length;ee++){var ge=c.ranges[ee],Se=c.ranges.length==e.sel.ranges.length&&e.sel.ranges[ee],Re=bs(e,ge.anchor,Se&&Se.anchor,j,U),je=bs(e,ge.head,Se&&Se.head,j,U);(H||Re!=ge.anchor||je!=ge.head)&&(H||(H=c.ranges.slice(0,ee)),H[ee]=new Da(Re,je))}return H?ia(e.cm,H,c.primIndex):c}function Go(e,c,j,U,H){var ee=cn(e,c.line);if(ee.markedSpans)for(var ge=0;ge<ee.markedSpans.length;++ge){var Se=ee.markedSpans[ge],Re=Se.marker,je="selectLeft"in Re?!Re.selectLeft:Re.inclusiveLeft,vt="selectRight"in Re?!Re.selectRight:Re.inclusiveRight;if((Se.from==null||(je?Se.from<=c.ch:Se.from<c.ch))&&(Se.to==null||(vt?Se.to>=c.ch:Se.to>c.ch))){if(H&&(ht(Re,"beforeCursorEnter"),Re.explicitlyCleared))if(ee.markedSpans){--ge;continue}else break;if(!Re.atomic)continue;if(j){var Rt=Re.find(U<0?1:-1),$t=void 0;if((U<0?vt:je)&&(Rt=il(e,Rt,-U,Rt&&Rt.line==c.line?ee:null)),Rt&&Rt.line==c.line&&($t=Tn(Rt,j))&&(U<0?$t<0:$t>0))return Go(e,Rt,c,U,H)}var zt=Re.find(U<0?-1:1);return(U<0?je:vt)&&(zt=il(e,zt,U,zt.line==c.line?ee:null)),zt?Go(e,zt,c,U,H):null}}return c}function bs(e,c,j,U,H){var ee=U||1,ge=Go(e,c,j,ee,H)||!H&&Go(e,c,j,ee,!0)||Go(e,c,j,-ee,H)||!H&&Go(e,c,j,-ee,!0);return ge||(e.cantEdit=!0,Zt(e.first,0))}function il(e,c,j,U){return j<0&&c.ch==0?c.line>e.first?V(e,Zt(c.line-1)):null:j>0&&c.ch==(U||cn(e,c.line)).text.length?c.line<e.first+e.size-1?Zt(c.line+1,0):null:new Zt(c.line,c.ch+j)}function ol(e){e.setSelection(Zt(e.firstLine(),0),Zt(e.lastLine()),Oe)}function Ms(e,c,j){var U={canceled:!1,from:c.from,to:c.to,text:c.text,origin:c.origin,cancel:function(){return U.canceled=!0}};return j&&(U.update=function(H,ee,ge,Se){H&&(U.from=V(e,H)),ee&&(U.to=V(e,ee)),ge&&(U.text=ge),Se!==void 0&&(U.origin=Se)}),ht(e,"beforeChange",e,U),e.cm&&ht(e.cm,"beforeChange",e.cm,U),U.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:U.from,to:U.to,text:U.text,origin:U.origin}}function zo(e,c,j){if(e.cm){if(!e.cm.curOp)return Wa(e.cm,zo)(e,c,j);if(e.cm.state.suppressEdits)return}if((He(e,"beforeChange")||e.cm&&He(e.cm,"beforeChange"))&&(c=Ms(e,c,!0),!c))return;var U=ja&&!j&&lt(e,c.from,c.to);if(U)for(var H=U.length-1;H>=0;--H)sl(e,{from:U[H].from,to:U[H].to,text:H?[""]:c.text,origin:c.origin});else sl(e,c)}function sl(e,c){if(c.text.length==1&&c.text[0]==""&&Tn(c.from,c.to)==0)return;var j=Fa(e,c);Qs(e,c,j,e.cm?e.cm.curOp.id:NaN),Vo(e,c,j,oa(e,c));var U=[];Qa(e,function(H,ee){!ee&&fe(U,H.history)==-1&&(dl(H.history,c),U.push(H.history)),Vo(H,c,null,oa(H,c))})}function ys(e,c,j){var U=e.cm&&e.cm.state.suppressEdits;if(U&&!j)return;for(var H=e.history,ee,ge=e.sel,Se=c=="undo"?H.done:H.undone,Re=c=="undo"?H.undone:H.done,je=0;je<Se.length&&!(ee=Se[je],j?ee.ranges&&!ee.equals(e.sel):!ee.ranges);je++);if(je==Se.length)return;for(H.lastOrigin=H.lastSelOrigin=null;;)if(ee=Se.pop(),ee.ranges){if(ms(ee,Re),j&&!ee.equals(e.sel)){gi(e,ee,{clearRedo:!1});return}ge=ee}else if(U){Se.push(ee);return}else break;var vt=[];ms(ge,Re),Re.push({changes:vt,generation:H.generation}),H.generation=ee.generation||++H.maxGeneration;for(var Rt=He(e,"beforeChange")||e.cm&&He(e.cm,"beforeChange"),$t=function(Fn){var Zn=ee.changes[Fn];if(Zn.origin=c,Rt&&!Ms(e,Zn,!1))return Se.length=0,{};vt.push(Ds(e,Zn));var _r=Fn?Fa(e,Zn):q(Se);Vo(e,Zn,_r,Ps(e,Zn)),!Fn&&e.cm&&e.cm.scrollIntoView({from:Zn.from,to:Qr(Zn)});var Nr=[];Qa(e,function(br,Vr){!Vr&&fe(Nr,br.history)==-1&&(dl(br.history,Zn),Nr.push(br.history)),Vo(br,Zn,null,Ps(br,Zn))})},zt=ee.changes.length-1;zt>=0;--zt){var On=$t(zt);if(On)return On.v}}function ll(e,c){if(c==0)return;if(e.first+=c,e.sel=new hi(me(e.sel.ranges,function(H){return new Da(Zt(H.anchor.line+c,H.anchor.ch),Zt(H.head.line+c,H.head.ch))}),e.sel.primIndex),e.cm){La(e.cm,e.first,e.first-c,c);for(var j=e.cm.display,U=j.viewFrom;U<j.viewTo;U++)Na(e.cm,U,"gutter")}}function Vo(e,c,j,U){if(e.cm&&!e.cm.curOp)return Wa(e.cm,Vo)(e,c,j,U);if(c.to.line<e.first){ll(e,c.text.length-1-(c.to.line-c.from.line));return}if(c.from.line>e.lastLine())return;if(c.from.line<e.first){var H=c.text.length-1-(e.first-c.from.line);ll(e,H),c={from:Zt(e.first,0),to:Zt(c.to.line+H,c.to.ch),text:[q(c.text)],origin:c.origin}}var ee=e.lastLine();c.to.line>ee&&(c={from:c.from,to:Zt(ee,cn(e,ee).text.length),text:[c.text[0]],origin:c.origin}),c.removed=xr(e,c.from,c.to),j||(j=Fa(e,c)),e.cm?Nl(e.cm,c,U):go(e,c,U),Ko(e,j,Oe),e.cantEdit&&bs(e,Zt(e.firstLine(),0))&&(e.cantEdit=!1)}function Nl(e,c,j){var U=e.doc,H=e.display,ee=c.from,ge=c.to,Se=!1,Re=ee.line;e.options.lineWrapping||(Re=cr(nn(cn(U,ee.line))),U.iter(Re,ge.line+1,function(zt){if(zt==H.maxLine)return Se=!0,!0})),U.sel.contains(c.from,c.to)>-1&&Qe(e),go(U,c,j,ya(e)),e.options.lineWrapping||(U.iter(Re,ee.line+c.text.length,function(zt){var On=xn(zt);On>H.maxLineLength&&(H.maxLine=zt,H.maxLineLength=On,H.maxLineChanged=!0,Se=!1)}),Se&&(e.curOp.updateMaxLine=!0)),za(U,ee.line),ai(e,400);var je=c.text.length-(ge.line-ee.line)-1;c.full?La(e):ee.line==ge.line&&c.text.length==1&&!Ki(e.doc,c)?Na(e,ee.line,"text"):La(e,ee.line,ge.line+1,je);var vt=He(e,"changes"),Rt=He(e,"change");if(Rt||vt){var $t={from:ee,to:ge,text:c.text,removed:c.removed,origin:c.origin};Rt&&Jt(e,"change",e,$t),vt&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push($t)}e.display.selForContextMenu=null}function Xo(e,c,j,U,H){var ee;U||(U=j),Tn(U,j)<0&&(ee=[U,j],j=ee[0],U=ee[1]),typeof c=="string"&&(c=e.splitLines(c)),zo(e,{from:j,to:U,text:c,origin:H})}function ul(e,c,j,U){j<e.line?e.line+=U:c<e.line&&(e.line=c,e.ch=0)}function cl(e,c,j,U){for(var H=0;H<e.length;++H){var ee=e[H],ge=!0;if(ee.ranges){ee.copied||(ee=e[H]=ee.deepCopy(),ee.copied=!0);for(var Se=0;Se<ee.ranges.length;Se++)ul(ee.ranges[Se].anchor,c,j,U),ul(ee.ranges[Se].head,c,j,U);continue}for(var Re=0;Re<ee.changes.length;++Re){var je=ee.changes[Re];if(j<je.from.line)je.from=Zt(je.from.line+U,je.from.ch),je.to=Zt(je.to.line+U,je.to.ch);else if(c<=je.to.line){ge=!1;break}}ge||(e.splice(0,H+1),H=0)}}function dl(e,c){var j=c.from.line,U=c.to.line,H=c.text.length-(U-j)-1;cl(e.done,j,U,H),cl(e.undone,j,U,H)}function ts(e,c,j,U){var H=c,ee=c;return typeof c=="number"?ee=cn(e,pe(e,c)):H=cr(c),H==null?null:(U(ee,H)&&e.cm&&Na(e.cm,H,j),ee)}function Do(e){this.lines=e,this.parent=null;for(var c=0,j=0;j<e.length;++j)e[j].parent=this,c+=e[j].height;this.height=c}Do.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,c){for(var j=e,U=e+c;j<U;++j){var H=this.lines[j];this.height-=H.height,qt(H),Jt(H,"delete")}this.lines.splice(e,c)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,c,j){this.height+=j,this.lines=this.lines.slice(0,e).concat(c).concat(this.lines.slice(e));for(var U=0;U<c.length;++U)c[U].parent=this},iterN:function(e,c,j){for(var U=e+c;e<U;++e)if(j(this.lines[e]))return!0}};function Yo(e){this.children=e;for(var c=0,j=0,U=0;U<e.length;++U){var H=e[U];c+=H.chunkSize(),j+=H.height,H.parent=this}this.size=c,this.height=j,this.parent=null}Yo.prototype={chunkSize:function(){return this.size},removeInner:function(e,c){this.size-=c;for(var j=0;j<this.children.length;++j){var U=this.children[j],H=U.chunkSize();if(e<H){var ee=Math.min(c,H-e),ge=U.height;if(U.removeInner(e,ee),this.height-=ge-U.height,H==ee&&(this.children.splice(j--,1),U.parent=null),(c-=ee)==0)break;e=0}else e-=H}if(this.size-c<25&&(this.children.length>1||!(this.children[0]instanceof Do))){var Se=[];this.collapse(Se),this.children=[new Do(Se)],this.children[0].parent=this}},collapse:function(e){for(var c=0;c<this.children.length;++c)this.children[c].collapse(e)},insertInner:function(e,c,j){this.size+=c.length,this.height+=j;for(var U=0;U<this.children.length;++U){var H=this.children[U],ee=H.chunkSize();if(e<=ee){if(H.insertInner(e,c,j),H.lines&&H.lines.length>50){for(var ge=H.lines.length%25+25,Se=ge;Se<H.lines.length;){var Re=new Do(H.lines.slice(Se,Se+=25));H.height-=Re.height,this.children.splice(++U,0,Re),Re.parent=this}H.lines=H.lines.slice(0,ge),this.maybeSpill()}break}e-=ee}},maybeSpill:function(){if(this.children.length<=10)return;var e=this;do{var c=e.children.splice(e.children.length-5,5),j=new Yo(c);if(e.parent){e.size-=j.size,e.height-=j.height;var H=fe(e.parent.children,e);e.parent.children.splice(H+1,0,j)}else{var U=new Yo(e.children);U.parent=e,e.children=[U,j],e=U}j.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()},iterN:function(e,c,j){for(var U=0;U<this.children.length;++U){var H=this.children[U],ee=H.chunkSize();if(e<ee){var ge=Math.min(c,ee-e);if(H.iterN(e,ge,j))return!0;if((c-=ge)==0)break;e=0}else e-=ee}}};var ns=function(e,c,j){if(j)for(var U in j)j.hasOwnProperty(U)&&(this[U]=j[U]);this.doc=e,this.node=c};ns.prototype.clear=function(){var e=this.doc.cm,c=this.line.widgets,j=this.line,U=cr(j);if(U==null||!c)return;for(var H=0;H<c.length;++H)c[H]==this&&c.splice(H--,1);c.length||(j.widgets=null);var ee=Yr(this);Rr(j,Math.max(0,j.height-ee)),e&&(fi(e,function(){fl(e,j,-ee),Na(e,U,"widget")}),Jt(e,"lineWidgetCleared",e,this,U))},ns.prototype.changed=function(){var e=this,c=this.height,j=this.doc.cm,U=this.line;this.height=null;var H=Yr(this)-c;if(!H)return;Jn(this.doc,U)||Rr(U,U.height+H),j&&fi(j,function(){j.curOp.forceUpdate=!0,fl(j,U,H),Jt(j,"lineWidgetChanged",j,e,cr(U))})},Ge(ns);function fl(e,c,j){Br(c)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&co(e,j)}function kl(e,c,j,U){var H=new ns(e,j,U),ee=e.cm;return ee&&H.noHScroll&&(ee.display.alignWidgets=!0),ts(e,c,"widget",function(ge){var Se=ge.widgets||(ge.widgets=[]);if(H.insertAt==null?Se.push(H):Se.splice(Math.min(Se.length-1,Math.max(0,H.insertAt)),0,H),H.line=ge,ee&&!Jn(e,ge)){var Re=Br(ge)<e.scrollTop;Rr(ge,ge.height+Yr(H)),Re&&co(ee,H.height),ee.curOp.forceUpdate=!0}return!0}),ee&&Jt(ee,"lineWidgetAdded",ee,H,typeof c=="number"?c:cr(c)),H}var hl=0,Gi=function(e,c){this.lines=[],this.type=c,this.doc=e,this.id=++hl};Gi.prototype.clear=function(){if(this.explicitlyCleared)return;var e=this.doc.cm,c=e&&!e.curOp;if(c&&Ni(e),He(this,"clear")){var j=this.find();j&&Jt(this,"clear",j.from,j.to)}for(var U=null,H=null,ee=0;ee<this.lines.length;++ee){var ge=this.lines[ee],Se=ka(ge.markedSpans,this);e&&!this.collapsed?Na(e,cr(ge),"text"):e&&(Se.to!=null&&(H=cr(ge)),Se.from!=null&&(U=cr(ge))),ge.markedSpans=li(ge.markedSpans,Se),Se.from==null&&this.collapsed&&!Jn(this.doc,ge)&&e&&Rr(ge,vr(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var Re=0;Re<this.lines.length;++Re){var je=nn(this.lines[Re]),vt=xn(je);vt>e.display.maxLineLength&&(e.display.maxLine=je,e.display.maxLineLength=vt,e.display.maxLineChanged=!0)}U!=null&&e&&this.collapsed&&La(e,U,H+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&rl(e.doc)),e&&Jt(e,"markerCleared",e,this,U,H),c&&qi(e),this.parent&&this.parent.clear()},Gi.prototype.find=function(e,c){e==null&&this.type=="bookmark"&&(e=1);for(var j,U,H=0;H<this.lines.length;++H){var ee=this.lines[H],ge=ka(ee.markedSpans,this);if(ge.from!=null&&(j=Zt(c?ee:cr(ee),ge.from),e==-1))return j;if(ge.to!=null&&(U=Zt(c?ee:cr(ee),ge.to),e==1))return U}return j&&{from:j,to:U}},Gi.prototype.changed=function(){var e=this,c=this.find(-1,!0),j=this,U=this.doc.cm;if(!c||!U)return;fi(U,function(){var H=c.line,ee=cr(c.line),ge=pt(U,ee);if(ge&&(Hn(ge),U.curOp.selectionChanged=U.curOp.forceUpdate=!0),U.curOp.updateMaxLine=!0,!Jn(j.doc,H)&&j.height!=null){var Se=j.height;j.height=null;var Re=Yr(j)-Se;Re&&Rr(H,H.height+Re)}Jt(U,"markerChanged",U,e)})},Gi.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var c=this.doc.cm.curOp;(!c.maybeHiddenMarkers||fe(c.maybeHiddenMarkers,this)==-1)&&(c.maybeUnhiddenMarkers||(c.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Gi.prototype.detachLine=function(e){if(this.lines.splice(fe(this.lines,e),1),!this.lines.length&&this.doc.cm){var c=this.doc.cm.curOp;(c.maybeHiddenMarkers||(c.maybeHiddenMarkers=[])).push(this)}},Ge(Gi);function Jo(e,c,j,U,H){if(U&&U.shared)return Ul(e,c,j,U,H);if(e.cm&&!e.cm.curOp)return Wa(e.cm,Jo)(e,c,j,U,H);var ee=new Gi(e,H),ge=Tn(c,j);if(U&&k(U,ee,!1),ge>0||ge==0&&ee.clearWhenEmpty!==!1)return ee;if(ee.replacedWith&&(ee.collapsed=!0,ee.widgetNode=I("span",[ee.replacedWith],"CodeMirror-widget"),U.handleMouseEvents||ee.widgetNode.setAttribute("cm-ignore-events","true"),U.insertLeft&&(ee.widgetNode.insertLeft=!0)),ee.collapsed){if(wn(e,c.line,c,j,ee)||c.line!=j.line&&wn(e,j.line,c,j,ee))throw new Error("Inserting collapsed marker partially overlapping an existing one");Sa()}ee.addToHistory&&Qs(e,{from:c,to:j,origin:"markText"},e.sel,NaN);var Se=c.line,Re=e.cm,je;if(e.iter(Se,j.line+1,function(Rt){Re&&ee.collapsed&&!Re.options.lineWrapping&&nn(Rt)==Re.display.maxLine&&(je=!0),ee.collapsed&&Se!=c.line&&Rr(Rt,0),oi(Rt,new Ja(ee,Se==c.line?c.ch:null,Se==j.line?j.ch:null)),++Se}),ee.collapsed&&e.iter(c.line,j.line+1,function(Rt){Jn(e,Rt)&&Rr(Rt,0)}),ee.clearOnEnter&&Ue(ee,"beforeCursorEnter",function(){return ee.clear()}),ee.readOnly&&(Ha(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),ee.collapsed&&(ee.id=++hl,ee.atomic=!0),Re){if(je&&(Re.curOp.updateMaxLine=!0),ee.collapsed)La(Re,c.line,j.line+1);else if(ee.className||ee.startStyle||ee.endStyle||ee.css||ee.attributes||ee.title)for(var vt=c.line;vt<=j.line;vt++)Na(Re,vt,"text");ee.atomic&&rl(Re.doc),Jt(Re,"markerAdded",Re,ee)}return ee}var Qo=function(e,c){this.markers=e,this.primary=c;for(var j=0;j<e.length;++j)e[j].parent=this};Qo.prototype.clear=function(){if(this.explicitlyCleared)return;this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Jt(this,"clear")},Qo.prototype.find=function(e,c){return this.primary.find(e,c)},Ge(Qo);function Ul(e,c,j,U,H){U=k(U),U.shared=!1;var ee=[Jo(e,c,j,U,H)],ge=ee[0],Se=U.widgetNode;return Qa(e,function(Re){Se&&(U.widgetNode=Se.cloneNode(!0)),ee.push(Jo(Re,V(Re,c),V(Re,j),U,H));for(var je=0;je<Re.linked.length;++je)if(Re.linked[je].isParent)return;ge=q(ee)}),new Qo(ee,ge)}function pl(e){return e.findMarks(Zt(e.first,0),e.clipPos(Zt(e.lastLine())),function(c){return c.parent})}function iu(e,c){for(var j=0;j<c.length;j++){var U=c[j],H=U.find(),ee=e.clipPos(H.from),ge=e.clipPos(H.to);if(Tn(ee,ge)){var Se=Jo(e,ee,ge,U.primary,U.primary.type);U.markers.push(Se),Se.parent=U}}}function jl(e){for(var c=function(U){var H=e[U],ee=[H.primary.doc];Qa(H.primary.doc,function(Re){return ee.push(Re)});for(var ge=0;ge<H.markers.length;ge++){var Se=H.markers[ge];fe(ee,Se.doc)==-1&&(Se.parent=null,H.markers.splice(ge--,1))}},j=0;j<e.length;j++)c(j)}var Is=0,Ti=function(e,c,j,U,H){if(!(this instanceof Ti))return new Ti(e,c,j,U,H);j==null&&(j=0),Yo.call(this,[new Do([new dn("",null)])]),this.first=j,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=j;var ee=Zt(j,0);this.sel=Er(ee),this.history=new hs(null),this.id=++Is,this.modeOption=c,this.lineSep=U,this.direction=H=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),go(this,{from:ee,to:ee,text:e}),gi(this,Er(ee),Oe)};Ti.prototype=we(Yo.prototype,{constructor:Ti,iter:function(e,c,j){j?this.iterN(e-this.first,c-e,j):this.iterN(this.first,this.first+this.size,e)},insert:function(e,c){for(var j=0,U=0;U<c.length;++U)j+=c[U].height;this.insertInner(e-this.first,c,j)},remove:function(e,c){this.removeInner(e-this.first,c)},getValue:function(e){var c=wr(this,this.first,this.first+this.size);return e===!1?c:c.join(e||this.lineSeparator())},setValue:Xa(function(e){var c=Zt(this.first,0),j=this.first+this.size-1;zo(this,{from:c,to:Zt(j,cn(this,j).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Yi(this.cm,0,0),gi(this,Er(c),Oe)}),replaceRange:function(e,c,j,U){c=V(this,c),j=j?V(this,j):c,Xo(this,e,c,j,U)},getRange:function(e,c,j){var U=xr(this,V(this,e),V(this,c));return j===!1?U:U.join(j||this.lineSeparator())},getLine:function(e){var c=this.getLineHandle(e);return c&&c.text},getLineHandle:function(e){if(yr(this,e))return cn(this,e)},getLineNumber:function(e){return cr(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=cn(this,e)),nn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return V(this,e)},getCursor:function(e){var c=this.sel.primary(),j;return e==null||e=="head"?j=c.head:e=="anchor"?j=c.anchor:e=="end"||e=="to"||e===!1?j=c.to():j=c.from(),j},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Xa(function(e,c,j){el(this,V(this,typeof e=="number"?Zt(e,c||0):e),null,j)}),setSelection:Xa(function(e,c,j){el(this,V(this,e),V(this,c||e),j)}),extendSelection:Xa(function(e,c,j){_s(this,V(this,e),c&&V(this,c),j)}),extendSelections:Xa(function(e,c){$s(this,oe(this,e),c)}),extendSelectionsBy:Xa(function(e,c){var j=me(this.sel.ranges,e);$s(this,oe(this,j),c)}),setSelections:Xa(function(e,c,j){if(!e.length)return;for(var U=[],H=0;H<e.length;H++)U[H]=new Da(V(this,e[H].anchor),V(this,e[H].head));c==null&&(c=Math.min(e.length-1,this.sel.primIndex)),gi(this,ia(this.cm,U,c),j)}),addSelection:Xa(function(e,c,j){var U=this.sel.ranges.slice(0);U.push(new Da(V(this,e),V(this,c||e))),gi(this,ia(this.cm,U,U.length-1),j)}),getSelection:function(e){for(var c=this.sel.ranges,j,U=0;U<c.length;U++){var H=xr(this,c[U].from(),c[U].to());j=j?j.concat(H):H}return e===!1?j:j.join(e||this.lineSeparator())},getSelections:function(e){for(var c=[],j=this.sel.ranges,U=0;U<j.length;U++){var H=xr(this,j[U].from(),j[U].to());e!==!1&&(H=H.join(e||this.lineSeparator())),c[U]=H}return c},replaceSelection:function(e,c,j){for(var U=[],H=0;H<this.sel.ranges.length;H++)U[H]=e;this.replaceSelections(U,c,j||"+input")},replaceSelections:Xa(function(e,c,j){for(var U=[],H=this.sel,ee=0;ee<H.ranges.length;ee++){var ge=H.ranges[ee];U[ee]={from:ge.from(),to:ge.to(),text:this.splitLines(e[ee]),origin:j}}for(var Se=c&&c!="end"&&Pi(this,U,c),Re=U.length-1;Re>=0;Re--)zo(this,U[Re]);Se?tl(this,Se):this.cm&&Xi(this.cm)}),undo:Xa(function(){ys(this,"undo")}),redo:Xa(function(){ys(this,"redo")}),undoSelection:Xa(function(){ys(this,"undo",!0)}),redoSelection:Xa(function(){ys(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,c=0,j=0,U=0;U<e.done.length;U++)e.done[U].ranges||++c;for(var H=0;H<e.undone.length;H++)e.undone[H].ranges||++j;return{undo:c,redo:j}},clearHistory:function(){var e=this;this.history=new hs(this.history.maxGeneration),Qa(this,function(c){return c.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Ho(this.history.done),undone:Ho(this.history.undone)}},setHistory:function(e){var c=this.history=new hs(this.history.maxGeneration);c.done=Ho(e.done.slice(0),null,!0),c.undone=Ho(e.undone.slice(0),null,!0)},setGutterMarker:Xa(function(e,c,j){return ts(this,e,"gutter",function(U){var H=U.gutterMarkers||(U.gutterMarkers={});return H[c]=j,!j&&te(H)&&(U.gutterMarkers=null),!0})}),clearGutter:Xa(function(e){var c=this;this.iter(function(j){j.gutterMarkers&&j.gutterMarkers[e]&&ts(c,j,"gutter",function(){return j.gutterMarkers[e]=null,te(j.gutterMarkers)&&(j.gutterMarkers=null),!0})})}),lineInfo:function(e){var c;if(typeof e=="number"){if(!yr(this,e))return null;if(c=e,e=cn(this,e),!e)return null}else if(c=cr(e),c==null)return null;return{line:c,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Xa(function(e,c,j){return ts(this,e,c=="gutter"?"gutter":"class",function(U){var H=c=="text"?"textClass":c=="background"?"bgClass":c=="gutter"?"gutterClass":"wrapClass";if(!U[H])U[H]=j;else{if(R(j).test(U[H]))return!1;U[H]+=" "+j}return!0})}),removeLineClass:Xa(function(e,c,j){return ts(this,e,c=="gutter"?"gutter":"class",function(U){var H=c=="text"?"textClass":c=="background"?"bgClass":c=="gutter"?"gutterClass":"wrapClass",ee=U[H];if(ee)if(j==null)U[H]=null;else{var ge=ee.match(R(j));if(!ge)return!1;var Se=ge.index+ge[0].length;U[H]=ee.slice(0,ge.index)+(!ge.index||Se==ee.length?"":" ")+ee.slice(Se)||null}else return!1;return!0})}),addLineWidget:Xa(function(e,c,j){return kl(this,e,c,j)}),removeLineWidget:function(e){e.clear()},markText:function(e,c,j){return Jo(this,V(this,e),V(this,c),j,j&&j.type||"range")},setBookmark:function(e,c){var j={replacedWith:c&&(c.nodeType==null?c.widget:c),insertLeft:c&&c.insertLeft,clearWhenEmpty:!1,shared:c&&c.shared,handleMouseEvents:c&&c.handleMouseEvents};return e=V(this,e),Jo(this,e,e,j,"bookmark")},findMarksAt:function(e){e=V(this,e);var c=[],j=cn(this,e.line).markedSpans;if(j)for(var U=0;U<j.length;++U){var H=j[U];(H.from==null||H.from<=e.ch)&&(H.to==null||H.to>=e.ch)&&c.push(H.marker.parent||H.marker)}return c},findMarks:function(e,c,j){e=V(this,e),c=V(this,c);var U=[],H=e.line;return this.iter(e.line,c.line+1,function(ee){var ge=ee.markedSpans;if(ge)for(var Se=0;Se<ge.length;Se++){var Re=ge[Se];!(Re.to!=null&&H==e.line&&e.ch>=Re.to||Re.from==null&&H!=e.line||Re.from!=null&&H==c.line&&Re.from>=c.ch)&&(!j||j(Re.marker))&&U.push(Re.marker.parent||Re.marker)}++H}),U},getAllMarks:function(){var e=[];return this.iter(function(c){var j=c.markedSpans;if(j)for(var U=0;U<j.length;++U)j[U].from!=null&&e.push(j[U].marker)}),e},posFromIndex:function(e){var c,j=this.first,U=this.lineSeparator().length;return this.iter(function(H){var ee=H.text.length+U;if(ee>e)return c=e,!0;e-=ee,++j}),V(this,Zt(j,c))},indexFromPos:function(e){e=V(this,e);var c=e.ch;if(e.line<this.first||e.ch<0)return 0;var j=this.lineSeparator().length;return this.iter(this.first,e.line,function(U){c+=U.text.length+j}),c},copy:function(e){var c=new Ti(wr(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return c.scrollTop=this.scrollTop,c.scrollLeft=this.scrollLeft,c.sel=this.sel,c.extend=!1,e&&(c.history.undoDepth=this.history.undoDepth,c.setHistory(this.getHistory())),c},linkedDoc:function(e){e||(e={});var c=this.first,j=this.first+this.size;e.from!=null&&e.from>c&&(c=e.from),e.to!=null&&e.to<j&&(j=e.to);var U=new Ti(wr(this,c,j),e.mode||this.modeOption,c,this.lineSep,this.direction);return e.sharedHist&&(U.history=this.history),(this.linked||(this.linked=[])).push({doc:U,sharedHist:e.sharedHist}),U.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],iu(U,pl(this)),U},unlinkDoc:function(e){if(e instanceof Ya&&(e=e.doc),this.linked)for(var c=0;c<this.linked.length;++c){var j=this.linked[c];if(j.doc!=e)continue;this.linked.splice(c,1),e.unlinkDoc(this),jl(pl(this));break}if(e.history==this.history){var U=[e.id];Qa(e,function(H){return U.push(H.id)},!0),e.history=new hs(null),e.history.done=Ho(this.history.done,U),e.history.undone=Ho(this.history.undone,U)}},iterLinkedDocs:function(e){Qa(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Be(e)},lineSeparator:function(){return this.lineSep||`
`},setDirection:Xa(function(e){if(e!="rtl"&&(e="ltr"),e==this.direction)return;this.direction=e,this.iter(function(c){return c.order=null}),this.cm&&Pl(this.cm)})}),Ti.prototype.eachLine=Ti.prototype.iter;var ml=0;function Bl(e){var c=this;if(Ls(c),_t(c,e)||Oa(c.display,e))return;Ee(e),w&&(ml=+new Date);var j=Ta(c,e,!0),U=e.dataTransfer.files;if(!j||c.isReadOnly())return;if(U&&U.length&&window.FileReader&&window.File)for(var H=U.length,ee=Array(H),ge=0,Se=function(){++ge==H&&Wa(c,function(){j=V(c.doc,j);var zt={from:j,to:j,text:c.doc.splitLines(ee.filter(function(On){return On!=null}).join(c.doc.lineSeparator())),origin:"paste"};zo(c.doc,zt),tl(c.doc,Er(V(c.doc,j),V(c.doc,Qr(zt))))})()},Re=function(zt,On){if(c.options.allowDropFileTypes&&fe(c.options.allowDropFileTypes,zt.type)==-1){Se();return}var Fn=new FileReader;Fn.onerror=function(){return Se()},Fn.onload=function(){var Zn=Fn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Zn)){Se();return}ee[On]=Zn,Se()},Fn.readAsText(zt)},je=0;je<U.length;je++)Re(U[je],je);else{if(c.state.draggingText&&c.doc.sel.contains(j)>-1){c.state.draggingText(e),setTimeout(function(){return c.display.input.focus()},20);return}try{var vt=e.dataTransfer.getData("Text");if(vt){var Rt;if(c.state.draggingText&&!c.state.draggingText.copy&&(Rt=c.listSelections()),Ko(c.doc,Er(j,j)),Rt)for(var $t=0;$t<Rt.length;++$t)Xo(c.doc,"",Rt[$t].anchor,Rt[$t].head,"drag");c.replaceSelection(vt,"around","paste"),c.display.input.focus()}}catch(zt){}}}function gl(e,c){if(w&&(!e.state.draggingText||+new Date-ml<100)){We(c);return}if(_t(e,c)||Oa(e.display,c))return;if(c.dataTransfer.setData("Text",e.getSelection()),c.dataTransfer.effectAllowed="copyMove",c.dataTransfer.setDragImage&&!t){var j=T("img",null,null,"position: fixed; left: 0; top: 0;");j.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",u&&(j.width=j.height=1,e.display.wrapper.appendChild(j),j._top=j.offsetTop),c.dataTransfer.setDragImage(j,0,0),u&&j.parentNode.removeChild(j)}}function Fl(e,c){var j=Ta(e,c);if(!j)return;var U=document.createDocumentFragment();Si(e,j,U),e.display.dragCursor||(e.display.dragCursor=T("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),m(e.display.dragCursor,U)}function Ls(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function vl(e){if(!document.getElementsByClassName)return;for(var c=document.getElementsByClassName("CodeMirror"),j=[],U=0;U<c.length;U++){var H=c[U].CodeMirror;H&&j.push(H)}j.length&&j[0].operation(function(){for(var ee=0;ee<j.length;ee++)e(j[ee])})}var Ns=!1;function ou(){if(Ns)return;ks(),Ns=!0}function ks(){var e;Ue(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,vl(Wl)},100))}),Ue(window,"blur",function(){return vl(no)})}function Wl(e){var c=e.display;c.cachedCharWidth=c.cachedTextHeight=c.cachedPaddingH=null,c.scrollbarsClipped=!1,e.setSize()}for(var Ro={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},rs=0;rs<10;rs++)Ro[rs+48]=Ro[rs+96]=String(rs);for(var Es=65;Es<=90;Es++)Ro[Es]=String.fromCharCode(Es);for(var as=1;as<=12;as++)Ro[as+111]=Ro[as+63235]="F"+as;var vo={};vo.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},vo.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},vo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},vo.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},vo.default=s?vo.macDefault:vo.pcDefault;function Hl(e){var c=e.split(/-(?!$)/);e=c[c.length-1];for(var j,U,H,ee,ge=0;ge<c.length-1;ge++){var Se=c[ge];if(/^(cmd|meta|m)$/i.test(Se))ee=!0;else if(/^a(lt)?$/i.test(Se))j=!0;else if(/^(c|ctrl|control)$/i.test(Se))U=!0;else if(/^s(hift)?$/i.test(Se))H=!0;else throw new Error("Unrecognized modifier name: "+Se)}return j&&(e="Alt-"+e),U&&(e="Ctrl-"+e),ee&&(e="Cmd-"+e),H&&(e="Shift-"+e),e}function _l(e){var c={};for(var j in e)if(e.hasOwnProperty(j)){var U=e[j];if(/^(name|fallthrough|(de|at)tach)$/.test(j))continue;if(U=="..."){delete e[j];continue}for(var H=me(j.split(" "),Hl),ee=0;ee<H.length;ee++){var ge=void 0,Se=void 0;ee==H.length-1?(Se=H.join(" "),ge=U):(Se=H.slice(0,ee+1).join(" "),ge="...");var Re=c[Se];if(!Re)c[Se]=ge;else if(Re!=ge)throw new Error("Inconsistent bindings for "+Se)}delete e[j]}for(var je in c)e[je]=c[je];return e}function _o(e,c,j,U){c=os(c);var H=c.call?c.call(e,U):c[e];if(H===!1)return"nothing";if(H==="...")return"multi";if(H!=null&&j(H))return"handled";if(c.fallthrough){if(Object.prototype.toString.call(c.fallthrough)!="[object Array]")return _o(e,c.fallthrough,j,U);for(var ee=0;ee<c.fallthrough.length;ee++){var ge=_o(e,c.fallthrough[ee],j,U);if(ge)return ge}}}function is(e){var c=typeof e=="string"?e:Ro[e.keyCode];return c=="Ctrl"||c=="Alt"||c=="Shift"||c=="Mod"}function bl(e,c,j){var U=e;return c.altKey&&U!="Alt"&&(e="Alt-"+e),(v?c.metaKey:c.ctrlKey)&&U!="Ctrl"&&(e="Ctrl-"+e),(v?c.ctrlKey:c.metaKey)&&U!="Mod"&&(e="Cmd-"+e),!j&&c.shiftKey&&U!="Shift"&&(e="Shift-"+e),e}function xs(e,c){if(u&&e.keyCode==34&&e.char)return!1;var j=Ro[e.keyCode];return j==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(j=e.code),bl(j,e,c))}function os(e){return typeof e=="string"?vo[e]:e}function Zo(e,c){for(var j=e.doc.sel.ranges,U=[],H=0;H<j.length;H++){for(var ee=c(j[H]);U.length&&Tn(ee.from,q(U).to)<=0;){var ge=U.pop();if(Tn(ge.from,ee.from)<0){ee.from=ge.from;break}}U.push(ee)}fi(e,function(){for(var Se=U.length-1;Se>=0;Se--)Xo(e.doc,"",U[Se].from,U[Se].to,"+delete");Xi(e)})}function Us(e,c,j){var U=ke(e.text,c+j,j);return U<0||U>e.text.length?null:U}function js(e,c,j){var U=Us(e,c.ch,j);return U==null?null:new Zt(c.line,U,j<0?"after":"before")}function Bs(e,c,j,U,H){if(e){c.doc.direction=="rtl"&&(H=-H);var ee=St(j,c.doc.direction);if(ee){var ge=H<0?q(ee):ee[0],Se=H<0==(ge.level==1),Re=Se?"after":"before",je;if(ge.level>0||c.doc.direction=="rtl"){var vt=rt(c,j);je=H<0?j.text.length-1:0;var Rt=It(c,vt,je).top;je=tt(function($t){return It(c,vt,$t).top==Rt},H<0==(ge.level==1)?ge.from:ge.to-1,je),Re=="before"&&(je=Us(j,je,1))}else je=H<0?ge.to:ge.from;return new Zt(U,je,Re)}}return new Zt(U,H<0?j.text.length:0,H<0?"before":"after")}function Fs(e,c,j,U){var H=St(c,e.doc.direction);if(!H)return js(c,j,U);j.ch>=c.text.length?(j.ch=c.text.length,j.sticky="before"):j.ch<=0&&(j.ch=0,j.sticky="after");var ee=Et(H,j.ch,j.sticky),ge=H[ee];if(e.doc.direction=="ltr"&&ge.level%2==0&&(U>0?ge.to>j.ch:ge.from<j.ch))return js(c,j,U);var Se=function(_r,Nr){return Us(c,_r instanceof Zt?_r.ch:_r,Nr)},Re,je=function(_r){return e.options.lineWrapping?(Re=Re||rt(e,c),fr(e,c,Re,_r)):{begin:0,end:c.text.length}},vt=je(j.sticky=="before"?Se(j,-1):j.ch);if(e.doc.direction=="rtl"||ge.level==1){var Rt=ge.level==1==U<0,$t=Se(j,Rt?1:-1);if($t!=null&&(Rt?$t<=ge.to&&$t<=vt.end:$t>=ge.from&&$t>=vt.begin)){var zt=Rt?"before":"after";return new Zt(j.line,$t,zt)}}var On=function(_r,Nr,br){for(var Vr=function(Va,vi){return vi?new Zt(j.line,Se(Va,1),"before"):new Zt(j.line,Va,"after")};_r>=0&&_r<H.length;_r+=Nr){var aa=H[_r],ea=Nr>0==(aa.level!=1),Ca=ea?br.begin:Se(br.end,-1);if(aa.from<=Ca&&Ca<aa.to)return Vr(Ca,ea);if(Ca=ea?aa.from:Se(aa.to,-1),br.begin<=Ca&&Ca<br.end)return Vr(Ca,ea)}},Fn=On(ee+U,U,vt);if(Fn)return Fn;var Zn=U>0?vt.end:Se(vt.begin,-1);return Zn!=null&&!(U>0&&Zn==c.text.length)&&(Fn=On(U>0?0:H.length-1,U,je(Zn)),Fn)?Fn:null}var qo={selectAll:ol,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Oe)},killLine:function(e){return Zo(e,function(c){if(c.empty()){var j=cn(e.doc,c.head.line).text.length;return c.head.ch==j&&c.head.line<e.lastLine()?{from:c.head,to:Zt(c.head.line+1,0)}:{from:c.head,to:Zt(c.head.line,j)}}else return{from:c.from(),to:c.to()}})},deleteLine:function(e){return Zo(e,function(c){return{from:Zt(c.from().line,0),to:V(e.doc,Zt(c.to().line+1,0))}})},delLineLeft:function(e){return Zo(e,function(c){return{from:Zt(c.from().line,0),to:c.from()}})},delWrappedLineLeft:function(e){return Zo(e,function(c){var j=e.charCoords(c.head,"div").top+5,U=e.coordsChar({left:0,top:j},"div");return{from:U,to:c.from()}})},delWrappedLineRight:function(e){return Zo(e,function(c){var j=e.charCoords(c.head,"div").top+5,U=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:j},"div");return{from:c.from(),to:U}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(Zt(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(Zt(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(c){return Cs(e,c.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(c){return yl(e,c.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(c){return Ws(e,c.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(c){var j=e.cursorCoords(c.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:j},"div")},be)},goLineLeft:function(e){return e.extendSelectionsBy(function(c){var j=e.cursorCoords(c.head,"div").top+5;return e.coordsChar({left:0,top:j},"div")},be)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(c){var j=e.cursorCoords(c.head,"div").top+5,U=e.coordsChar({left:0,top:j},"div");return U.ch<e.getLine(U.line).search(/\S/)?yl(e,c.head):U},be)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var c=[],j=e.listSelections(),U=e.options.tabSize,H=0;H<j.length;H++){var ee=j[H].from(),ge=G(e.getLine(ee.line),ee.ch,U);c.push(se(U-ge%U))}e.replaceSelections(c)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return fi(e,function(){for(var c=e.listSelections(),j=[],U=0;U<c.length;U++){if(!c[U].empty())continue;var H=c[U].head,ee=cn(e.doc,H.line).text;if(ee){if(H.ch==ee.length&&(H=new Zt(H.line,H.ch-1)),H.ch>0)H=new Zt(H.line,H.ch+1),e.replaceRange(ee.charAt(H.ch-1)+ee.charAt(H.ch-2),Zt(H.line,H.ch-2),H,"+transpose");else if(H.line>e.doc.first){var ge=cn(e.doc,H.line-1).text;ge&&(H=new Zt(H.line,1),e.replaceRange(ee.charAt(0)+e.doc.lineSeparator()+ge.charAt(ge.length-1),Zt(H.line-1,ge.length-1),H,"+transpose"))}}j.push(new Da(H,H))}e.setSelections(j)})},newlineAndIndent:function(e){return fi(e,function(){for(var c=e.listSelections(),j=c.length-1;j>=0;j--)e.replaceRange(e.doc.lineSeparator(),c[j].anchor,c[j].head,"+input");c=e.listSelections();for(var U=0;U<c.length;U++)e.indentLine(c[U].from().line,null,!0);Xi(e)})},openLine:function(e){return e.replaceSelection(`
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Cs(e,c){var j=cn(e.doc,c),U=nn(j);return U!=j&&(c=cr(U)),Bs(!0,e,U,c,1)}function Ws(e,c){var j=cn(e.doc,c),U=Rn(j);return U!=j&&(c=cr(U)),Bs(!0,e,j,c,-1)}function yl(e,c){var j=Cs(e,c.line),U=cn(e.doc,j.line),H=St(U,e.doc.direction);if(!H||H[0].level==0){var ee=Math.max(j.ch,U.text.search(/\S/)),ge=c.line==j.line&&c.ch<=ee&&c.ch;return Zt(j.line,ge?0:ee,j.sticky)}return j}function Ss(e,c,j){if(typeof c=="string"&&(c=qo[c],!c))return!1;e.display.input.ensurePolled();var U=e.display.shift,H=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),j&&(e.display.shift=!1),H=c(e)!=xe}finally{e.display.shift=U,e.state.suppressEdits=!1}return H}function Kl(e,c,j){for(var U=0;U<e.state.keyMaps.length;U++){var H=_o(c,e.state.keyMaps[U],j,e);if(H)return H}return e.options.extraKeys&&_o(c,e.options.extraKeys,j,e)||_o(c,e.options.keyMap,j,e)}var Gl=new ne;function ss(e,c,j,U){var H=e.state.keySeq;if(H){if(is(c))return"handled";if(/\'$/.test(c)?e.state.keySeq=null:Gl.set(50,function(){e.state.keySeq==H&&(e.state.keySeq=null,e.display.input.reset())}),Hs(e,H+" "+c,j,U))return!0}return Hs(e,c,j,U)}function Hs(e,c,j,U){var H=Kl(e,c,U);return H=="multi"&&(e.state.keySeq=c),H=="handled"&&Jt(e,"keyHandled",e,c,j),(H=="handled"||H=="multi")&&(Ee(j),Za(e)),!!H}function El(e,c){var j=xs(c,!0);return j?c.shiftKey&&!e.state.keySeq?ss(e,"Shift-"+j,c,function(U){return Ss(e,U,!0)})||ss(e,j,c,function(U){if(typeof U=="string"?/^go[A-Z]/.test(U):U.motion)return Ss(e,U)}):ss(e,j,c,function(U){return Ss(e,U)}):!1}function zl(e,c,j){return ss(e,"'"+j+"'",c,function(U){return Ss(e,U,!0)})}var Ks=null;function xl(e){var c=this;if(e.target&&e.target!=c.display.input.getField())return;if(c.curOp.focus=z(),_t(c,e))return;w&&f<11&&e.keyCode==27&&(e.returnValue=!1);var j=e.keyCode;c.display.shift=j==16||e.shiftKey;var U=El(c,e);u&&(Ks=U?j:null,!U&&j==88&&!it&&(s?e.metaKey:e.ctrlKey)&&c.replaceSelection("",null,"cut")),A&&!s&&!U&&j==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),j==18&&!/\bCodeMirror-crosshair\b/.test(c.display.lineDiv.className)&&Vl(c)}function Vl(e){var c=e.display.lineDiv;F(c,"CodeMirror-crosshair");function j(U){(U.keyCode==18||!U.altKey)&&(E(c,"CodeMirror-crosshair"),kt(document,"keyup",j),kt(document,"mouseover",j))}Ue(document,"keyup",j),Ue(document,"mouseover",j)}function Cl(e){e.keyCode==16&&(this.doc.sel.shift=!1),_t(this,e)}function Sl(e){var c=this;if(e.target&&e.target!=c.display.input.getField())return;if(Oa(c.display,e)||_t(c,e)||e.ctrlKey&&!e.altKey||s&&e.metaKey)return;var j=e.keyCode,U=e.charCode;if(u&&j==Ks){Ks=null,Ee(e);return}if(u&&(!e.which||e.which<10)&&El(c,e))return;var H=String.fromCharCode(U==null?j:U);if(H=="\b")return;if(zl(c,e,H))return;c.display.input.onKeyPress(e)}var Xl=400,Gs=function(e,c,j){this.time=e,this.pos=c,this.button=j};Gs.prototype.compare=function(e,c,j){return this.time+Xl>e&&Tn(c,this.pos)==0&&j==this.button};var ls,us;function Yl(e,c){var j=+new Date;return us&&us.compare(j,e,c)?(ls=us=null,"triple"):ls&&ls.compare(j,e,c)?(us=new Gs(j,e,c),ls=null,"double"):(ls=new Gs(j,e,c),us=null,"single")}function zs(e){var c=this,j=c.display;if(_t(c,e)||j.activeTouch&&j.input.supportsTouch())return;if(j.input.ensurePolled(),j.shift=e.shiftKey,Oa(j,e)){_||(j.scroller.draggable=!1,setTimeout(function(){return j.scroller.draggable=!0},100));return}if(Xs(c,e))return;var U=Ta(c,e),H=st(e),ee=U?Yl(U,H):"single";if(window.focus(),H==1&&c.state.selectingText&&c.state.selectingText(e),U&&Ol(c,H,U,ee,e))return;H==1?U?Ql(c,U,ee,e):Ke(e)==j.scroller&&Ee(e):H==2?(U&&_s(c.doc,U),setTimeout(function(){return j.input.focus()},20)):H==3&&(P?c.display.input.onContextMenu(e):Mo(c))}function Ol(e,c,j,U,H){var ee="Click";return U=="double"?ee="Double"+ee:U=="triple"&&(ee="Triple"+ee),ee=(c==1?"Left":c==2?"Middle":"Right")+ee,ss(e,bl(ee,H),H,function(ge){if(typeof ge=="string"&&(ge=qo[ge]),!ge)return!1;var Se=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),Se=ge(e,j)!=xe}finally{e.state.suppressEdits=!1}return Se})}function Jl(e,c,j){var U=e.getOption("configureMouse"),H=U?U(e,c,j):{};if(H.unit==null){var ee=p?j.shiftKey&&j.metaKey:j.altKey;H.unit=ee?"rectangle":c=="single"?"char":c=="double"?"word":"line"}return(H.extend==null||e.doc.extend)&&(H.extend=e.doc.extend||j.shiftKey),H.addNew==null&&(H.addNew=s?j.metaKey:j.ctrlKey),H.moveOnDrag==null&&(H.moveOnDrag=!(s?j.altKey:j.ctrlKey)),H}function Ql(e,c,j,U){w?setTimeout(B(to,e),0):e.curOp.focus=z();var H=Jl(e,j,U),ee=e.doc.sel,ge;e.options.dragDrop&&Ot&&!e.isReadOnly()&&j=="single"&&(ge=ee.contains(c))>-1&&(Tn((ge=ee.ranges[ge]).from(),c)<0||c.xRel>0)&&(Tn(ge.to(),c)>0||c.xRel<0)?Zl(e,U,c,H):ql(e,U,c,H)}function Zl(e,c,j,U){var H=e.display,ee=!1,ge=Wa(e,function(je){_&&(H.scroller.draggable=!1),e.state.draggingText=!1,kt(H.wrapper.ownerDocument,"mouseup",ge),kt(H.wrapper.ownerDocument,"mousemove",Se),kt(H.scroller,"dragstart",Re),kt(H.scroller,"drop",ge),ee||(Ee(je),U.addNew||_s(e.doc,j,null,null,U.extend),_&&!t||w&&f==9?setTimeout(function(){H.wrapper.ownerDocument.body.focus({preventScroll:!0}),H.input.focus()},20):H.input.focus())}),Se=function(je){ee=ee||Math.abs(c.clientX-je.clientX)+Math.abs(c.clientY-je.clientY)>=10},Re=function(){return ee=!0};_&&(H.scroller.draggable=!0),e.state.draggingText=ge,ge.copy=!U.moveOnDrag,H.scroller.dragDrop&&H.scroller.dragDrop(),Ue(H.wrapper.ownerDocument,"mouseup",ge),Ue(H.wrapper.ownerDocument,"mousemove",Se),Ue(H.scroller,"dragstart",Re),Ue(H.scroller,"drop",ge),Mo(e),setTimeout(function(){return H.input.focus()},20)}function Vs(e,c,j){if(j=="char")return new Da(c,c);if(j=="word")return e.findWordAt(c);if(j=="line")return new Da(Zt(c.line,0),V(e.doc,Zt(c.line+1,0)));var U=j(e,c);return new Da(U.from,U.to)}function ql(e,c,j,U){var H=e.display,ee=e.doc;Ee(c);var ge,Se,Re=ee.sel,je=Re.ranges;if(U.addNew&&!U.extend?(Se=ee.sel.contains(j),Se>-1?ge=je[Se]:ge=new Da(j,j)):(ge=ee.sel.primary(),Se=ee.sel.primIndex),U.unit=="rectangle")U.addNew||(ge=new Da(j,j)),j=Ta(e,c,!0,!0),Se=-1;else{var vt=Vs(e,j,U.unit);U.extend?ge=vs(ge,vt.anchor,vt.head,U.extend):ge=vt}U.addNew?Se==-1?(Se=je.length,gi(ee,ia(e,je.concat([ge]),Se),{scroll:!1,origin:"*mouse"})):je.length>1&&je[Se].empty()&&U.unit=="char"&&!U.extend?(gi(ee,ia(e,je.slice(0,Se).concat(je.slice(Se+1)),0),{scroll:!1,origin:"*mouse"}),Re=ee.sel):Ao(ee,Se,ge,ce):(Se=0,gi(ee,new hi([ge],0),ce),Re=ee.sel);var Rt=j;function $t(br){if(Tn(Rt,br)==0)return;if(Rt=br,U.unit=="rectangle"){for(var Vr=[],aa=e.options.tabSize,ea=G(cn(ee,j.line).text,j.ch,aa),Ca=G(cn(ee,br.line).text,br.ch,aa),Va=Math.min(ea,Ca),vi=Math.max(ea,Ca),ti=Math.min(j.line,br.line),zi=Math.min(e.lastLine(),Math.max(j.line,br.line));ti<=zi;ti++){var Ui=cn(ee,ti).text,ci=ve(Ui,Va,aa);Va==vi?Vr.push(new Da(Zt(ti,ci),Zt(ti,ci))):Ui.length>ci&&Vr.push(new Da(Zt(ti,ci),Zt(ti,ve(Ui,vi,aa))))}Vr.length||Vr.push(new Da(j,j)),gi(ee,ia(e,Re.ranges.slice(0,Se).concat(Vr),Se),{origin:"*mouse",scroll:!1}),e.scrollIntoView(br)}else{var ji=ge,Ci=Vs(e,br,U.unit),pi=ji.anchor,di;Tn(Ci.anchor,pi)>0?(di=Ci.head,pi=Wn(ji.from(),Ci.anchor)):(di=Ci.anchor,pi=$n(ji.to(),Ci.head));var ii=Re.ranges.slice(0);ii[Se]=$l(e,new Da(V(ee,pi),di)),gi(ee,ia(e,ii,Se),ce)}}var zt=H.wrapper.getBoundingClientRect(),On=0;function Fn(br){var Vr=++On,aa=Ta(e,br,!0,U.unit=="rectangle");if(!aa)return;if(Tn(aa,Rt)!=0){e.curOp.focus=z(),$t(aa);var ea=uo(H,ee);(aa.line>=ea.to||aa.line<ea.from)&&setTimeout(Wa(e,function(){On==Vr&&Fn(br)}),150)}else{var Ca=br.clientY<zt.top?-20:br.clientY>zt.bottom?20:0;Ca&&setTimeout(Wa(e,function(){if(On!=Vr)return;H.scroller.scrollTop+=Ca,Fn(br)}),50)}}function Zn(br){e.state.selectingText=!1,On=Infinity,br&&(Ee(br),H.input.focus()),kt(H.wrapper.ownerDocument,"mousemove",_r),kt(H.wrapper.ownerDocument,"mouseup",Nr),ee.history.lastSelOrigin=null}var _r=Wa(e,function(br){br.buttons===0||!st(br)?Zn(br):Fn(br)}),Nr=Wa(e,Zn);e.state.selectingText=Nr,Ue(H.wrapper.ownerDocument,"mousemove",_r),Ue(H.wrapper.ownerDocument,"mouseup",Nr)}function $l(e,c){var j=c.anchor,U=c.head,H=cn(e.doc,j.line);if(Tn(j,U)==0&&j.sticky==U.sticky)return c;var ee=St(H);if(!ee)return c;var ge=Et(ee,j.ch,j.sticky),Se=ee[ge];if(Se.from!=j.ch&&Se.to!=j.ch)return c;var Re=ge+(Se.from==j.ch==(Se.level!=1)?0:1);if(Re==0||Re==ee.length)return c;var je;if(U.line!=j.line)je=(U.line-j.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var vt=Et(ee,U.ch,U.sticky),Rt=vt-ge||(U.ch-j.ch)*(Se.level==1?-1:1);vt==Re-1||vt==Re?je=Rt<0:je=Rt>0}var $t=ee[Re+(je?-1:0)],zt=je==($t.level==1),On=zt?$t.from:$t.to,Fn=zt?"after":"before";return j.ch==On&&j.sticky==Fn?c:new Da(new Zt(j.line,On,Fn),U)}function Tl(e,c,j,U){var H,ee;if(c.touches)H=c.touches[0].clientX,ee=c.touches[0].clientY;else try{H=c.clientX,ee=c.clientY}catch($t){return!1}if(H>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;U&&Ee(c);var ge=e.display,Se=ge.lineDiv.getBoundingClientRect();if(ee>Se.bottom||!He(e,j))return Fe(c);ee-=Se.top-ge.viewOffset;for(var Re=0;Re<e.display.gutterSpecs.length;++Re){var je=ge.gutters.childNodes[Re];if(je&&je.getBoundingClientRect().right>=H){var vt=Ur(e.doc,ee),Rt=e.display.gutterSpecs[Re];return ht(e,j,e,vt,Rt.className,c),Fe(c)}}}function Xs(e,c){return Tl(e,c,"gutterClick",!0)}function wl(e,c){if(Oa(e.display,c)||Al(e,c))return;if(_t(e,c,"contextmenu"))return;P||e.display.input.onContextMenu(c)}function Al(e,c){return He(e,"gutterContextMenu")?Tl(e,c,"gutterContextMenu",!1):!1}function Dl(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),kr(e)}var $o={toString:function(){return"CodeMirror.Init"}},Os={},cs={};function eu(e){var c=e.optionHandlers;function j(U,H,ee,ge){e.defaults[U]=H,ee&&(c[U]=ge?function(Se,Re,je){je!=$o&&ee(Se,Re,je)}:ee)}e.defineOption=j,e.Init=$o,j("value","",function(U,H){return U.setValue(H)},!0),j("mode",null,function(U,H){U.doc.modeOption=H,$a(U)},!0),j("indentUnit",2,$a,!0),j("indentWithTabs",!1),j("smartIndent",!0),j("tabSize",4,function(U){xi(U),kr(U),La(U)},!0),j("lineSeparator",null,function(U,H){if(U.doc.lineSep=H,!H)return;var ee=[],ge=U.doc.first;U.doc.iter(function(Re){for(var je=0;;){var vt=Re.text.indexOf(H,je);if(vt==-1)break;je=vt+H.length,ee.push(Zt(ge,vt))}ge++});for(var Se=ee.length-1;Se>=0;Se--)Xo(U.doc,H,ee[Se],Zt(ee[Se].line,ee[Se].ch+H.length))}),j("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(U,H,ee){U.state.specialChars=new RegExp(H.source+(H.test(" ")?"":"| "),"g"),ee!=$o&&U.refresh()}),j("specialCharPlaceholder",ir,function(U){return U.refresh()},!0),j("electricChars",!0),j("inputStyle",l?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),j("spellcheck",!1,function(U,H){return U.getInputField().spellcheck=H},!0),j("autocorrect",!1,function(U,H){return U.getInputField().autocorrect=H},!0),j("autocapitalize",!1,function(U,H){return U.getInputField().autocapitalize=H},!0),j("rtlMoveVisually",!O),j("wholeLineUpdateBefore",!0),j("theme","default",function(U){Dl(U),ki(U)},!0),j("keyMap","default",function(U,H,ee){var ge=os(H),Se=ee!=$o&&os(ee);Se&&Se.detach&&Se.detach(U,ge),ge.attach&&ge.attach(U,Se||null)}),j("extraKeys",null),j("configureMouse",null),j("lineWrapping",!1,nu,!0),j("gutters",[],function(U,H){U.display.gutterSpecs=ui(H,U.options.lineNumbers),ki(U)},!0),j("fixedGutter",!0,function(U,H){U.display.gutters.style.left=H?da(U.display)+"px":"0",U.refresh()},!0),j("coverGutterNextToScrollbar",!1,function(U){return Ri(U)},!0),j("scrollbarStyle","native",function(U){Co(U),Ri(U),U.display.scrollbars.setScrollTop(U.doc.scrollTop),U.display.scrollbars.setScrollLeft(U.doc.scrollLeft)},!0),j("lineNumbers",!1,function(U,H){U.display.gutterSpecs=ui(U.options.gutters,H),ki(U)},!0),j("firstLineNumber",1,ki,!0),j("lineNumberFormatter",function(U){return U},ki,!0),j("showCursorWhenSelecting",!1,Ia,!0),j("resetSelectionOnContextMenu",!0),j("lineWiseCopyCut",!0),j("pasteLinesPerSelection",!0),j("selectionsMayTouch",!1),j("readOnly",!1,function(U,H){H=="nocursor"&&(no(U),U.display.input.blur()),U.display.input.readOnlyChanged(H)}),j("screenReaderLabel",null,function(U,H){H=H===""?null:H,U.display.input.screenReaderLabelChanged(H)}),j("disableInput",!1,function(U,H){H||U.display.input.reset()},!0),j("dragDrop",!0,tu),j("allowDropFileTypes",null),j("cursorBlinkRate",530),j("cursorScrollMargin",0),j("cursorHeight",1,Ia,!0),j("singleCursorHeightPerLine",!0,Ia,!0),j("workTime",100),j("workDelay",100),j("flattenSpans",!0,xi,!0),j("addModeClass",!1,xi,!0),j("pollInterval",100),j("undoDepth",200,function(U,H){return U.doc.history.undoDepth=H}),j("historyEventDelay",1250),j("viewportMargin",10,function(U){return U.refresh()},!0),j("maxHighlightLength",1e4,xi,!0),j("moveInputWithCursor",!0,function(U,H){H||U.display.input.resetPosition()}),j("tabindex",null,function(U,H){return U.display.input.getField().tabIndex=H||""}),j("autofocus",null),j("direction","ltr",function(U,H){return U.doc.setDirection(H)},!0),j("phrases",null)}function tu(e,c,j){var U=j&&j!=$o;if(!c!=!U){var H=e.display.dragFunctions,ee=c?Ue:kt;ee(e.display.scroller,"dragstart",H.start),ee(e.display.scroller,"dragenter",H.enter),ee(e.display.scroller,"dragover",H.over),ee(e.display.scroller,"dragleave",H.leave),ee(e.display.scroller,"drop",H.drop)}}function nu(e){e.options.lineWrapping?(F(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(E(e.display.wrapper,"CodeMirror-wrap"),Yt(e)),_a(e),La(e),kr(e),setTimeout(function(){return Ri(e)},100)}function Ya(e,c){var j=this;if(!(this instanceof Ya))return new Ya(e,c);this.options=c=c?k(c):{},k(Os,c,!1);var U=c.value;typeof U=="string"?U=new Ti(U,c.mode,null,c.lineSeparator,c.direction):c.mode&&(U.modeOption=c.mode),this.doc=U;var H=new Ya.inputStyles[c.inputStyle](this),ee=this.display=new ho(e,U,H,c);ee.wrapper.CodeMirror=this,Dl(this),c.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Co(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 ne,keySeq:null,specialChars:null},c.autofocus&&!l&&ee.input.focus(),w&&f<11&&setTimeout(function(){return j.display.input.reset(!0)},20),Rl(this),ou(),Ni(this),this.curOp.forceUpdate=!0,As(this,U),c.autofocus&&!l||this.hasFocus()?setTimeout(function(){j.hasFocus()&&!j.state.focused&&Ii(j)},20):no(this);for(var ge in cs)cs.hasOwnProperty(ge)&&cs[ge](this,c[ge],$o);Ka(this),c.finishInit&&c.finishInit(this);for(var Se=0;Se<X.length;++Se)X[Se](this);qi(this),_&&c.lineWrapping&&getComputedStyle(ee.lineDiv).textRendering=="optimizelegibility"&&(ee.lineDiv.style.textRendering="auto")}Ya.defaults=Os,Ya.optionHandlers=cs;function Rl(e){var c=e.display;Ue(c.scroller,"mousedown",Wa(e,zs)),w&&f<11?Ue(c.scroller,"dblclick",Wa(e,function(Re){if(_t(e,Re))return;var je=Ta(e,Re);if(!je||Xs(e,Re)||Oa(e.display,Re))return;Ee(Re);var vt=e.findWordAt(je);_s(e.doc,vt.anchor,vt.head)})):Ue(c.scroller,"dblclick",function(Re){return _t(e,Re)||Ee(Re)}),Ue(c.scroller,"contextmenu",function(Re){return wl(e,Re)}),Ue(c.input.getField(),"contextmenu",function(Re){c.scroller.contains(Re.target)||wl(e,Re)});var j,U={end:0};function H(){c.activeTouch&&(j=setTimeout(function(){return c.activeTouch=null},1e3),U=c.activeTouch,U.end=+new Date)}function ee(Re){if(Re.touches.length!=1)return!1;var je=Re.touches[0];return je.radiusX<=1&&je.radiusY<=1}function ge(Re,je){if(je.left==null)return!0;var vt=je.left-Re.left,Rt=je.top-Re.top;return vt*vt+Rt*Rt>20*20}Ue(c.scroller,"touchstart",function(Re){if(!_t(e,Re)&&!ee(Re)&&!Xs(e,Re)){c.input.ensurePolled(),clearTimeout(j);var je=+new Date;c.activeTouch={start:je,moved:!1,prev:je-U.end<=300?U:null},Re.touches.length==1&&(c.activeTouch.left=Re.touches[0].pageX,c.activeTouch.top=Re.touches[0].pageY)}}),Ue(c.scroller,"touchmove",function(){c.activeTouch&&(c.activeTouch.moved=!0)}),Ue(c.scroller,"touchend",function(Re){var je=c.activeTouch;if(je&&!Oa(c,Re)&&je.left!=null&&!je.moved&&new Date-je.start<300){var vt=e.coordsChar(c.activeTouch,"page"),Rt;!je.prev||ge(je,je.prev)?Rt=new Da(vt,vt):!je.prev.prev||ge(je,je.prev.prev)?Rt=e.findWordAt(vt):Rt=new Da(Zt(vt.line,0),V(e.doc,Zt(vt.line+1,0))),e.setSelection(Rt.anchor,Rt.head),e.focus(),Ee(Re)}H()}),Ue(c.scroller,"touchcancel",H),Ue(c.scroller,"scroll",function(){c.scroller.clientHeight&&(Ji(e,c.scroller.scrollTop),ei(e,c.scroller.scrollLeft,!0),ht(e,"scroll",e))}),Ue(c.scroller,"mousewheel",function(Re){return mo(e,Re)}),Ue(c.scroller,"DOMMouseScroll",function(Re){return mo(e,Re)}),Ue(c.wrapper,"scroll",function(){return c.wrapper.scrollTop=c.wrapper.scrollLeft=0}),c.dragFunctions={enter:function(Re){_t(e,Re)||We(Re)},over:function(Re){_t(e,Re)||(Fl(e,Re),We(Re))},start:function(Re){return gl(e,Re)},drop:Wa(e,Bl),leave:function(Re){_t(e,Re)||Ls(e)}};var Se=c.input.getField();Ue(Se,"keyup",function(Re){return Cl.call(e,Re)}),Ue(Se,"keydown",Wa(e,xl)),Ue(Se,"keypress",Wa(e,Sl)),Ue(Se,"focus",function(Re){return Ii(e,Re)}),Ue(Se,"blur",function(Re){return no(e,Re)})}var X=[];Ya.defineInitHook=function(e){return X.push(e)};function Q(e,c,j,U){var H=e.doc,ee;j==null&&(j="add"),j=="smart"&&(H.mode.indent?ee=In(e,c).state:j="prev");var ge=e.options.tabSize,Se=cn(H,c),Re=G(Se.text,null,ge);Se.stateAfter&&(Se.stateAfter=null);var je=Se.text.match(/^\s*/)[0],vt;if(!U&&!/\S/.test(Se.text))vt=0,j="not";else if(j=="smart"&&(vt=H.mode.indent(ee,Se.text.slice(je.length),Se.text),vt==xe||vt>150)){if(!U)return;j="prev"}j=="prev"?c>H.first?vt=G(cn(H,c-1).text,null,ge):vt=0:j=="add"?vt=Re+e.options.indentUnit:j=="subtract"?vt=Re-e.options.indentUnit:typeof j=="number"&&(vt=Re+j),vt=Math.max(0,vt);var Rt="",$t=0;if(e.options.indentWithTabs)for(var zt=Math.floor(vt/ge);zt;--zt)$t+=ge,Rt+=" ";if($t<vt&&(Rt+=se(vt-$t)),Rt!=je)return Xo(H,Rt,Zt(c,0),Zt(c,je.length),"+input"),Se.stateAfter=null,!0;for(var On=0;On<H.sel.ranges.length;On++){var Fn=H.sel.ranges[On];if(Fn.head.line==c&&Fn.head.ch<je.length){var Zn=Zt(c,je.length);Ao(H,On,new Da(Zn,Zn));break}}}var ae=null;function _e(e){ae=e}function Le(e,c,j,U,H){var ee=e.doc;e.display.shift=!1,U||(U=ee.sel);var ge=+new Date-200,Se=H=="paste"||e.state.pasteIncoming>ge,Re=Be(c),je=null;if(Se&&U.ranges.length>1)if(ae&&ae.text.join(`
`)==c){if(U.ranges.length%ae.text.length==0){je=[];for(var vt=0;vt<ae.text.length;vt++)je.push(ee.splitLines(ae.text[vt]))}}else Re.length==U.ranges.length&&e.options.pasteLinesPerSelection&&(je=me(Re,function(_r){return[_r]}));for(var Rt=e.curOp.updateInput,$t=U.ranges.length-1;$t>=0;$t--){var zt=U.ranges[$t],On=zt.from(),Fn=zt.to();zt.empty()&&(j&&j>0?On=Zt(On.line,On.ch-j):e.state.overwrite&&!Se?Fn=Zt(Fn.line,Math.min(cn(ee,Fn.line).text.length,Fn.ch+q(Re).length)):Se&&ae&&ae.lineWise&&ae.text.join(`
`)==Re.join(`
`)&&(On=Fn=Zt(On.line,0)));var Zn={from:On,to:Fn,text:je?je[$t%je.length]:Re,origin:H||(Se?"paste":e.state.cutIncoming>ge?"cut":"+input")};zo(e.doc,Zn),Jt(e,"inputRead",e,Zn)}c&&!Se&&ze(e,c),Xi(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Rt),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ne(e,c){var j=e.clipboardData&&e.clipboardData.getData("Text");if(j)return e.preventDefault(),!c.isReadOnly()&&!c.options.disableInput&&fi(c,function(){return Le(c,j,0,null,"paste")}),!0}function ze(e,c){if(!e.options.electricChars||!e.options.smartIndent)return;for(var j=e.doc.sel,U=j.ranges.length-1;U>=0;U--){var H=j.ranges[U];if(H.head.ch>100||U&&j.ranges[U-1].head.line==H.head.line)continue;var ee=e.getModeAt(H.head),ge=!1;if(ee.electricChars){for(var Se=0;Se<ee.electricChars.length;Se++)if(c.indexOf(ee.electricChars.charAt(Se))>-1){ge=Q(e,H.head.line,"smart");break}}else ee.electricInput&&(ee.electricInput.test(cn(e.doc,H.head.line).text.slice(0,H.head.ch))&&(ge=Q(e,H.head.line,"smart")));ge&&Jt(e,"electricInput",e,H.head.line)}}function Ve(e){for(var c=[],j=[],U=0;U<e.doc.sel.ranges.length;U++){var H=e.doc.sel.ranges[U].head.line,ee={anchor:Zt(H,0),head:Zt(H+1,0)};j.push(ee),c.push(e.getRange(ee.anchor,ee.head))}return{text:c,ranges:j}}function Ct(e,c,j,U){e.setAttribute("autocorrect",j?"":"off"),e.setAttribute("autocapitalize",U?"":"off"),e.setAttribute("spellcheck",!!c)}function Ut(){var e=T("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),c=T("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return _?e.style.width="1000px":e.setAttribute("wrap","off"),i&&(e.style.border="1px solid black"),Ct(e),c}function Ft(e){var c=e.optionHandlers,j=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(U,H){var ee=this.options,ge=ee[U];if(ee[U]==H&&U!="mode")return;ee[U]=H,c.hasOwnProperty(U)&&Wa(this,c[U])(this,H,ge),ht(this,"optionChange",this,U)},getOption:function(U){return this.options[U]},getDoc:function(){return this.doc},addKeyMap:function(U,H){this.state.keyMaps[H?"push":"unshift"](os(U))},removeKeyMap:function(U){for(var H=this.state.keyMaps,ee=0;ee<H.length;++ee)if(H[ee]==U||H[ee].name==U)return H.splice(ee,1),!0},addOverlay:ri(function(U,H){var ee=U.token?U:e.getMode(this.options,U);if(ee.startState)throw new Error("Overlays may not be stateful.");re(this.state.overlays,{mode:ee,modeSpec:U,opaque:H&&H.opaque,priority:H&&H.priority||0},function(ge){return ge.priority}),this.state.modeGen++,La(this)}),removeOverlay:ri(function(U){for(var H=this.state.overlays,ee=0;ee<H.length;++ee){var ge=H[ee].modeSpec;if(ge==U||typeof U=="string"&&ge.name==U){H.splice(ee,1),this.state.modeGen++,La(this);return}}}),indentLine:ri(function(U,H,ee){typeof H!="string"&&typeof H!="number"&&(H==null?H=this.options.smartIndent?"smart":"prev":H=H?"add":"subtract"),yr(this.doc,U)&&Q(this,U,H,ee)}),indentSelection:ri(function(U){for(var H=this.doc.sel.ranges,ee=-1,ge=0;ge<H.length;ge++){var Se=H[ge];if(Se.empty())Se.head.line>ee&&(Q(this,Se.head.line,U,!0),ee=Se.head.line,ge==this.doc.sel.primIndex&&Xi(this));else{var Re=Se.from(),je=Se.to(),vt=Math.max(ee,Re.line);ee=Math.min(this.lastLine(),je.line-(je.ch?0:1))+1;for(var Rt=vt;Rt<ee;++Rt)Q(this,Rt,U);var $t=this.doc.sel.ranges;Re.ch==0&&H.length==$t.length&&$t[ge].from().ch>0&&Ao(this.doc,ge,new Da(Re,$t[ge].to()),Oe)}}}),getTokenAt:function(U,H){return $r(this,U,H)},getLineTokens:function(U,H){return $r(this,Zt(U),H,!0)},getTokenTypeAt:function(U){U=V(this.doc,U);var H=rn(this,cn(this.doc,U.line)),ee=0,ge=(H.length-1)/2,Se=U.ch,Re;if(Se==0)Re=H[2];else for(;;){var je=ee+ge>>1;if((je?H[je*2-1]:0)>=Se)ge=je;else if(H[je*2+1]<Se)ee=je+1;else{Re=H[je*2+2];break}}var vt=Re?Re.indexOf("overlay "):-1;return vt<0?Re:vt==0?null:Re.slice(0,vt-1)},getModeAt:function(U){var H=this.doc.mode;return H.innerMode?e.innerMode(H,this.getTokenAt(U).state).mode:H},getHelper:function(U,H){return this.getHelpers(U,H)[0]},getHelpers:function(U,H){var ee=[];if(!j.hasOwnProperty(H))return ee;var ge=j[H],Se=this.getModeAt(U);if(typeof Se[H]=="string")ge[Se[H]]&&ee.push(ge[Se[H]]);else if(Se[H])for(var Re=0;Re<Se[H].length;Re++){var je=ge[Se[H][Re]];je&&ee.push(je)}else Se.helperType&&ge[Se.helperType]?ee.push(ge[Se.helperType]):ge[Se.name]&&ee.push(ge[Se.name]);for(var vt=0;vt<ge._global.length;vt++){var Rt=ge._global[vt];Rt.pred(Se,this)&&fe(ee,Rt.val)==-1&&ee.push(Rt.val)}return ee},getStateAfter:function(U,H){var ee=this.doc;return U=pe(ee,U==null?ee.first+ee.size-1:U),In(this,U+1,H).state},cursorCoords:function(U,H){var ee,ge=this.doc.sel.primary();return U==null?ee=ge.head:typeof U=="object"?ee=V(this.doc,U):ee=U?ge.from():ge.to(),Gn(this,ee,H||"page")},charCoords:function(U,H){return Sr(this,V(this.doc,U),H||"page")},coordsChar:function(U,H){return U=Kn(this,U,H||"page"),zr(this,U.left,U.top)},lineAtHeight:function(U,H){return U=Kn(this,{top:U,left:0},H||"page").top,Ur(this.doc,U+this.display.viewOffset)},heightAtLine:function(U,H,ee){var ge=!1,Se;if(typeof U=="number"){var Re=this.doc.first+this.doc.size-1;U<this.doc.first?U=this.doc.first:U>Re&&(U=Re,ge=!0),Se=cn(this.doc,U)}else Se=U;return ta(this,Se,{top:0,left:0},H||"page",ee||ge).top+(ge?this.doc.height-Br(Se):0)},defaultTextHeight:function(){return vr(this.display)},defaultCharWidth:function(){return Pr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(U,H,ee,ge,Se){var Re=this.display;U=Gn(this,V(this.doc,U));var je=U.bottom,vt=U.left;if(H.style.position="absolute",H.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(H),Re.sizer.appendChild(H),ge=="over")je=U.top;else if(ge=="above"||ge=="near"){var Rt=Math.max(Re.wrapper.clientHeight,this.doc.height),$t=Math.max(Re.sizer.clientWidth,Re.lineSpace.clientWidth);(ge=="above"||U.bottom+H.offsetHeight>Rt)&&U.top>H.offsetHeight?je=U.top-H.offsetHeight:U.bottom+H.offsetHeight<=Rt&&(je=U.bottom),vt+H.offsetWidth>$t&&(vt=$t-H.offsetWidth)}H.style.top=je+"px",H.style.left=H.style.right="",Se=="right"?(vt=Re.sizer.clientWidth-H.offsetWidth,H.style.right="0px"):(Se=="left"?vt=0:Se=="middle"&&(vt=(Re.sizer.clientWidth-H.offsetWidth)/2),H.style.left=vt+"px"),ee&&bo(this,{left:vt,top:je,right:vt+H.offsetWidth,bottom:je+H.offsetHeight})},triggerOnKeyDown:ri(xl),triggerOnKeyPress:ri(Sl),triggerOnKeyUp:Cl,triggerOnMouseDown:ri(zs),execCommand:function(U){if(qo.hasOwnProperty(U))return qo[U].call(null,this)},triggerElectric:ri(function(U){ze(this,U)}),findPosH:function(U,H,ee,ge){var Se=1;H<0&&(Se=-1,H=-H);for(var Re=V(this.doc,U),je=0;je<H&&!(Re=At(this.doc,Re,Se,ee,ge),Re.hitSide);++je);return Re},moveH:ri(function(U,H){var ee=this;this.extendSelectionsBy(function(ge){return ee.display.shift||ee.doc.extend||ge.empty()?At(ee.doc,ge.head,U,H,ee.options.rtlMoveVisually):U<0?ge.from():ge.to()},be)}),deleteH:ri(function(U,H){var ee=this.doc.sel,ge=this.doc;ee.somethingSelected()?ge.replaceSelection("",null,"+delete"):Zo(this,function(Se){var Re=At(ge,Se.head,U,H,!1);return U<0?{from:Re,to:Se.head}:{from:Se.head,to:Re}})}),findPosV:function(U,H,ee,ge){var Se=1,Re=ge;H<0&&(Se=-1,H=-H);for(var je=V(this.doc,U),vt=0;vt<H;++vt){var Rt=Gn(this,je,"div");if(Re==null?Re=Rt.left:Rt.left=Re,je=Tt(this,Rt,Se,ee),je.hitSide)break}return je},moveV:ri(function(U,H){var ee=this,ge=this.doc,Se=[],Re=!this.display.shift&&!ge.extend&&ge.sel.somethingSelected();if(ge.extendSelectionsBy(function(vt){if(Re)return U<0?vt.from():vt.to();var Rt=Gn(ee,vt.head,"div");vt.goalColumn!=null&&(Rt.left=vt.goalColumn),Se.push(Rt.left);var $t=Tt(ee,Rt,U,H);return H=="page"&&vt==ge.sel.primary()&&co(ee,Sr(ee,$t,"div").top-Rt.top),$t},be),Se.length)for(var je=0;je<ge.sel.ranges.length;je++)ge.sel.ranges[je].goalColumn=Se[je]}),findWordAt:function(U){var H=this.doc,ee=cn(H,U.line).text,ge=U.ch,Se=U.ch;if(ee){var Re=this.getHelper(U,"wordChars");(U.sticky=="before"||Se==ee.length)&&ge?--ge:++Se;for(var je=ee.charAt(ge),vt=J(je,Re)?function(Rt){return J(Rt,Re)}:/\s/.test(je)?function(Rt){return/\s/.test(Rt)}:function(Rt){return!/\s/.test(Rt)&&!J(Rt)};ge>0&&vt(ee.charAt(ge-1));)--ge;for(;Se<ee.length&&vt(ee.charAt(Se));)++Se}return new Da(Zt(U.line,ge),Zt(U.line,Se))},toggleOverwrite:function(U){if(U!=null&&U==this.state.overwrite)return;(this.state.overwrite=!this.state.overwrite)?F(this.display.cursorDiv,"CodeMirror-overwrite"):E(this.display.cursorDiv,"CodeMirror-overwrite"),ht(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==z()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:ri(function(U,H){Yi(this,U,H)}),getScrollInfo:function(){var U=this.display.scroller;return{left:U.scrollLeft,top:U.scrollTop,height:U.scrollHeight-yt(this)-this.display.barHeight,width:U.scrollWidth-yt(this)-this.display.barWidth,clientHeight:Pe(this),clientWidth:nt(this)}},scrollIntoView:ri(function(U,H){U==null?(U={from:this.doc.sel.primary().head,to:null},H==null&&(H=this.options.cursorScrollMargin)):typeof U=="number"?U={from:Zt(U,0),to:null}:U.from==null&&(U={from:U,to:null}),U.to||(U.to=U.from),U.margin=H||0,U.from.line!=null?No(this,U):ao(this,U.from,U.to,U.margin)}),setSize:ri(function(U,H){var ee=this,ge=function(Re){return typeof Re=="number"||/^\d+$/.test(String(Re))?Re+"px":Re};U!=null&&(this.display.wrapper.style.width=ge(U)),H!=null&&(this.display.wrapper.style.height=ge(H)),this.options.lineWrapping&&yn(this);var Se=this.display.viewFrom;this.doc.iter(Se,this.display.viewTo,function(Re){if(Re.widgets){for(var je=0;je<Re.widgets.length;je++)if(Re.widgets[je].noHScroll){Na(ee,Se,"widget");break}}++Se}),this.curOp.forceUpdate=!0,ht(this,"refresh",this)}),operation:function(U){return fi(this,U)},startOperation:function(){return Ni(this)},endOperation:function(){return qi(this)},refresh:ri(function(){var U=this.display.cachedTextHeight;La(this),this.curOp.forceUpdate=!0,kr(this),Yi(this,this.doc.scrollLeft,this.doc.scrollTop),lo(this.display),(U==null||Math.abs(U-vr(this.display))>.5||this.options.lineWrapping)&&_a(this),ht(this,"refresh",this)}),swapDoc:ri(function(U){var H=this.doc;return H.cm=null,this.state.selectingText&&this.state.selectingText(),As(this,U),kr(this),this.display.input.reset(),Yi(this,U.scrollLeft,U.scrollTop),this.curOp.forceScroll=!0,Jt(this,"swapDoc",this,H),H}),phrase:function(U){var H=this.options.phrases;return H&&Object.prototype.hasOwnProperty.call(H,U)?H[U]:U},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}},Ge(e),e.registerHelper=function(U,H,ee){j.hasOwnProperty(U)||(j[U]=e[U]={_global:[]}),j[U][H]=ee},e.registerGlobalHelper=function(U,H,ee,ge){e.registerHelper(U,H,ge),j[U]._global.push({pred:ee,val:ge})}}function At(e,c,j,U,H){var ee=c,ge=j,Se=cn(e,c.line),Re=H&&e.direction=="rtl"?-j:j;function je(){var Nr=c.line+Re;return Nr<e.first||Nr>=e.first+e.size?!1:(c=new Zt(Nr,c.ch,c.sticky),Se=cn(e,Nr))}function vt(Nr){var br;if(U=="codepoint"){var Vr=Se.text.charCodeAt(c.ch+(U>0?0:-1));isNaN(Vr)?br=null:br=new Zt(c.line,Math.max(0,Math.min(Se.text.length,c.ch+j*(Vr>=55296&&Vr<56320?2:1))),-j)}else H?br=Fs(e.cm,Se,c,j):br=js(Se,c,j);if(br==null)if(!Nr&&je())c=Bs(H,e.cm,Se,c.line,Re);else return!1;else c=br;return!0}if(U=="char"||U=="codepoint")vt();else if(U=="column")vt(!0);else if(U=="word"||U=="group")for(var Rt=null,$t=U=="group",zt=e.cm&&e.cm.getHelper(c,"wordChars"),On=!0;!(j<0&&!vt(!On));On=!1){var Fn=Se.text.charAt(c.ch)||`
`,Zn=J(Fn,zt)?"w":$t&&Fn==`
`?"n":!$t||/\s/.test(Fn)?null:"p";if($t&&!On&&!Zn&&(Zn="s"),Rt&&Rt!=Zn){j<0&&(j=1,vt(),c.sticky="after");break}if(Zn&&(Rt=Zn),j>0&&!vt(!On))break}var _r=bs(e,c,ee,ge,!0);return jr(ee,_r)&&(_r.hitSide=!0),_r}function Tt(e,c,j,U){var H=e.doc,ee=c.left,ge;if(U=="page"){var Se=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Re=Math.max(Se-.5*vr(e.display),3);ge=(j>0?c.bottom:c.top)+j*Re}else U=="line"&&(ge=j>0?c.bottom+3:c.top-3);for(var je;!(je=zr(e,ee,ge),!je.outside);){if(j<0?ge<=0:ge>=H.height){je.hitSide=!0;break}ge+=j*5}return je}var Nt=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ne,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Nt.prototype.init=function(e){var c=this,j=this,U=j.cm,H=j.div=e.lineDiv;Ct(H,U.options.spellcheck,U.options.autocorrect,U.options.autocapitalize);function ee(Se){for(var Re=Se.target;Re;Re=Re.parentNode){if(Re==H)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Re.className))break}return!1}Ue(H,"paste",function(Se){if(!ee(Se)||_t(U,Se)||Ne(Se,U))return;f<=11&&setTimeout(Wa(U,function(){return c.updateFromDOM()}),20)}),Ue(H,"compositionstart",function(Se){c.composing={data:Se.data,done:!1}}),Ue(H,"compositionupdate",function(Se){c.composing||(c.composing={data:Se.data,done:!1})}),Ue(H,"compositionend",function(Se){c.composing&&(Se.data!=c.composing.data&&c.readFromDOMSoon(),c.composing.done=!0)}),Ue(H,"touchstart",function(){return j.forceCompositionEnd()}),Ue(H,"input",function(){c.composing||c.readFromDOMSoon()});function ge(Se){if(!ee(Se)||_t(U,Se))return;if(U.somethingSelected())_e({lineWise:!1,text:U.getSelections()}),Se.type=="cut"&&U.replaceSelection("",null,"cut");else if(U.options.lineWiseCopyCut){var Re=Ve(U);_e({lineWise:!0,text:Re.text}),Se.type=="cut"&&U.operation(function(){U.setSelections(Re.ranges,0,Oe),U.replaceSelection("",null,"cut")})}else return;if(Se.clipboardData){Se.clipboardData.clearData();var je=ae.text.join(`
`);if(Se.clipboardData.setData("Text",je),Se.clipboardData.getData("Text")==je){Se.preventDefault();return}}var vt=Ut(),Rt=vt.firstChild;U.display.lineSpace.insertBefore(vt,U.display.lineSpace.firstChild),Rt.value=ae.text.join(`
`);var $t=document.activeElement;K(Rt),setTimeout(function(){U.display.lineSpace.removeChild(vt),$t.focus(),$t==H&&j.showPrimarySelection()},50)}Ue(H,"copy",ge),Ue(H,"cut",ge)},Nt.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Nt.prototype.prepareSelection=function(){var e=bi(this.cm,!1);return e.focus=document.activeElement==this.div,e},Nt.prototype.showSelection=function(e,c){if(!e||!this.cm.display.view.length)return;(e.focus||c)&&this.showPrimarySelection(),this.showMultipleSelections(e)},Nt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Nt.prototype.showPrimarySelection=function(){var e=this.getSelection(),c=this.cm,j=c.doc.sel.primary(),U=j.from(),H=j.to();if(c.display.viewTo==c.display.viewFrom||U.line>=c.display.viewTo||H.line<c.display.viewFrom){e.removeAllRanges();return}var ee=Kr(c,e.anchorNode,e.anchorOffset),ge=Kr(c,e.focusNode,e.focusOffset);if(ee&&!ee.bad&&ge&&!ge.bad&&Tn(Wn(ee,ge),U)==0&&Tn($n(ee,ge),H)==0)return;var Se=c.display.view,Re=U.line>=c.display.viewFrom&&hn(c,U)||{node:Se[0].measure.map[2],offset:0},je=H.line<c.display.viewTo&&hn(c,H);if(!je){var vt=Se[Se.length-1].measure,Rt=vt.maps?vt.maps[vt.maps.length-1]:vt.map;je={node:Rt[Rt.length-1],offset:Rt[Rt.length-2]-Rt[Rt.length-3]}}if(!Re||!je){e.removeAllRanges();return}var $t=e.rangeCount&&e.getRangeAt(0),zt;try{zt=D(Re.node,Re.offset,je.offset,je.node)}catch(On){}zt&&(!A&&c.state.focused?(e.collapse(Re.node,Re.offset),zt.collapsed||(e.removeAllRanges(),e.addRange(zt))):(e.removeAllRanges(),e.addRange(zt)),$t&&e.anchorNode==null?e.addRange($t):A&&this.startGracePeriod()),this.rememberSelection()},Nt.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},Nt.prototype.showMultipleSelections=function(e){m(this.cm.display.cursorDiv,e.cursors),m(this.cm.display.selectionDiv,e.selection)},Nt.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Nt.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var c=e.getRangeAt(0).commonAncestorContainer;return N(this.div,c)},Nt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Nt.prototype.blur=function(){this.div.blur()},Nt.prototype.getField=function(){return this.div},Nt.prototype.supportsTouch=function(){return!0},Nt.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():fi(this.cm,function(){return e.cm.curOp.selectionChanged=!0});function c(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,c))}this.polling.set(this.cm.options.pollInterval,c)},Nt.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Nt.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;var e=this.getSelection(),c=this.cm;if(h&&r&&this.cm.display.gutterSpecs.length&&lr(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(this.composing)return;this.rememberSelection();var j=Kr(c,e.anchorNode,e.anchorOffset),U=Kr(c,e.focusNode,e.focusOffset);j&&U&&fi(c,function(){gi(c.doc,Er(j,U),Oe),(j.bad||U.bad)&&(c.curOp.selectionChanged=!0)})},Nt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,c=e.display,j=e.doc.sel.primary(),U=j.from(),H=j.to();if(U.ch==0&&U.line>e.firstLine()&&(U=Zt(U.line-1,cn(e.doc,U.line-1).length)),H.ch==cn(e.doc,H.line).text.length&&H.line<e.lastLine()&&(H=Zt(H.line+1,0)),U.line<c.viewFrom||H.line>c.viewTo-1)return!1;var ee,ge,Se;U.line==c.viewFrom||(ee=ha(e,U.line))==0?(ge=cr(c.view[0].line),Se=c.view[0].node):(ge=cr(c.view[ee].line),Se=c.view[ee-1].node.nextSibling);var Re=ha(e,H.line),je,vt;if(Re==c.view.length-1?(je=c.viewTo-1,vt=c.lineDiv.lastChild):(je=cr(c.view[Re+1].line)-1,vt=c.view[Re+1].node.previousSibling),!Se)return!1;for(var Rt=e.doc.splitLines(Lr(e,Se,vt,ge,je)),$t=xr(e.doc,Zt(ge,0),Zt(je,cn(e.doc,je).text.length));Rt.length>1&&$t.length>1;)if(q(Rt)==q($t))Rt.pop(),$t.pop(),je--;else if(Rt[0]==$t[0])Rt.shift(),$t.shift(),ge++;else break;for(var zt=0,On=0,Fn=Rt[0],Zn=$t[0],_r=Math.min(Fn.length,Zn.length);zt<_r&&Fn.charCodeAt(zt)==Zn.charCodeAt(zt);)++zt;for(var Nr=q(Rt),br=q($t),Vr=Math.min(Nr.length-(Rt.length==1?zt:0),br.length-($t.length==1?zt:0));On<Vr&&Nr.charCodeAt(Nr.length-On-1)==br.charCodeAt(br.length-On-1);)++On;if(Rt.length==1&&$t.length==1&&ge==U.line)for(;zt&&zt>U.ch&&Nr.charCodeAt(Nr.length-On-1)==br.charCodeAt(br.length-On-1);)zt--,On++;Rt[Rt.length-1]=Nr.slice(0,Nr.length-On).replace(/^\u200b+/,""),Rt[0]=Rt[0].slice(zt).replace(/\u200b+$/,"");var aa=Zt(ge,zt),ea=Zt(je,$t.length?q($t).length-On:0);if(Rt.length>1||Rt[0]||Tn(aa,ea))return Xo(e.doc,Rt,aa,ea,"+input"),!0},Nt.prototype.ensurePolled=function(){this.forceCompositionEnd()},Nt.prototype.reset=function(){this.forceCompositionEnd()},Nt.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},Nt.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)},Nt.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&fi(this.cm,function(){return La(e.cm)})},Nt.prototype.setUneditable=function(e){e.contentEditable="false"},Nt.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||Wa(this.cm,Le)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},Nt.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Nt.prototype.onContextMenu=function(){},Nt.prototype.resetPosition=function(){},Nt.prototype.needsContentAttribute=!0;function hn(e,c){var j=pt(e,c.line);if(!j||j.hidden)return null;var U=cn(e.doc,c.line),H=Ie(j,U,c.line),ee=St(U,e.doc.direction),ge="left";if(ee){var Se=Et(ee,c.ch);ge=Se%2?"right":"left"}var Re=fn(H.map,c.ch,ge);return Re.offset=Re.collapse=="right"?Re.end:Re.start,Re}function lr(e){for(var c=e;c;c=c.parentNode)if(/CodeMirror-gutter-wrapper/.test(c.className))return!0;return!1}function pr(e,c){return c&&(e.bad=!0),e}function Lr(e,c,j,U,H){var ee="",ge=!1,Se=e.doc.lineSeparator(),Re=!1;function je(zt){return function(On){return On.id==zt}}function vt(){ge&&(ee+=Se,Re&&(ee+=Se),ge=Re=!1)}function Rt(zt){zt&&(vt(),ee+=zt)}function $t(zt){if(zt.nodeType==1){var On=zt.getAttribute("cm-text");if(On){Rt(On);return}var Fn=zt.getAttribute("cm-marker"),Zn;if(Fn){var _r=e.findMarks(Zt(U,0),Zt(H+1,0),je(+Fn));_r.length&&(Zn=_r[0].find(0))&&Rt(xr(e.doc,Zn.from,Zn.to).join(Se));return}if(zt.getAttribute("contenteditable")=="false")return;var Nr=/^(pre|div|p|li|table|br)$/i.test(zt.nodeName);if(!/^br$/i.test(zt.nodeName)&&zt.textContent.length==0)return;Nr&&vt();for(var br=0;br<zt.childNodes.length;br++)$t(zt.childNodes[br]);/^(pre|p)$/i.test(zt.nodeName)&&(Re=!0),Nr&&(ge=!0)}else zt.nodeType==3&&Rt(zt.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!($t(c),c==j);)c=c.nextSibling,Re=!1;return ee}function Kr(e,c,j){var U;if(c==e.display.lineDiv){if(U=e.display.lineDiv.childNodes[j],!U)return pr(e.clipPos(Zt(e.display.viewTo-1)),!0);c=null,j=0}else for(U=c;;U=U.parentNode){if(!U||U==e.display.lineDiv)return null;if(U.parentNode&&U.parentNode==e.display.lineDiv)break}for(var H=0;H<e.display.view.length;H++){var ee=e.display.view[H];if(ee.node==U)return na(ee,c,j)}}function na(e,c,j){var U=e.text.firstChild,H=!1;if(!c||!N(U,c))return pr(Zt(cr(e.line),0),!0);if(c==U&&(H=!0,c=U.childNodes[j],j=0,!c)){var ee=e.rest?q(e.rest):e.line;return pr(Zt(cr(ee),ee.text.length),H)}var ge=c.nodeType==3?c:null,Se=c;for(!ge&&c.childNodes.length==1&&c.firstChild.nodeType==3&&(ge=c.firstChild,j&&(j=ge.nodeValue.length));Se.parentNode!=U;)Se=Se.parentNode;var Re=e.measure,je=Re.maps;function vt(Zn,_r,Nr){for(var br=-1;br<(je?je.length:0);br++)for(var Vr=br<0?Re.map:je[br],aa=0;aa<Vr.length;aa+=3){var ea=Vr[aa+2];if(ea==Zn||ea==_r){var Ca=cr(br<0?e.line:e.rest[br]),Va=Vr[aa]+Nr;return(Nr<0||ea!=Zn)&&(Va=Vr[aa+(Nr?1:0)]),Zt(Ca,Va)}}}var Rt=vt(ge,Se,j);if(Rt)return pr(Rt,H);for(var $t=Se.nextSibling,zt=ge?ge.nodeValue.length-j:0;$t;$t=$t.nextSibling){if(Rt=vt($t,$t.firstChild,0),Rt)return pr(Zt(Rt.line,Rt.ch-zt),H);zt+=$t.textContent.length}for(var On=Se.previousSibling,Fn=j;On;On=On.previousSibling){if(Rt=vt(On,On.firstChild,-1),Rt)return pr(Zt(Rt.line,Rt.ch+Fn),H);Fn+=On.textContent.length}}var Wr=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new ne,this.hasSelection=!1,this.composing=null};Wr.prototype.init=function(e){var c=this,j=this,U=this.cm;this.createField(e);var H=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),i&&(H.style.width="0px"),Ue(H,"input",function(){w&&f>=9&&c.hasSelection&&(c.hasSelection=null),j.poll()}),Ue(H,"paste",function(ge){if(_t(U,ge)||Ne(ge,U))return;U.state.pasteIncoming=+new Date,j.fastPoll()});function ee(ge){if(_t(U,ge))return;if(U.somethingSelected())_e({lineWise:!1,text:U.getSelections()});else if(U.options.lineWiseCopyCut){var Se=Ve(U);_e({lineWise:!0,text:Se.text}),ge.type=="cut"?U.setSelections(Se.ranges,null,Oe):(j.prevInput="",H.value=Se.text.join(`
`),K(H))}else return;ge.type=="cut"&&(U.state.cutIncoming=+new Date)}Ue(H,"cut",ee),Ue(H,"copy",ee),Ue(e.scroller,"paste",function(ge){if(Oa(e,ge)||_t(U,ge))return;if(!H.dispatchEvent){U.state.pasteIncoming=+new Date,j.focus();return}var Se=new Event("paste");Se.clipboardData=ge.clipboardData,H.dispatchEvent(Se)}),Ue(e.lineSpace,"selectstart",function(ge){Oa(e,ge)||Ee(ge)}),Ue(H,"compositionstart",function(){var ge=U.getCursor("from");j.composing&&j.composing.range.clear(),j.composing={start:ge,range:U.markText(ge,U.getCursor("to"),{className:"CodeMirror-composing"})}}),Ue(H,"compositionend",function(){j.composing&&(j.poll(),j.composing.range.clear(),j.composing=null)})},Wr.prototype.createField=function(e){this.wrapper=Ut(),this.textarea=this.wrapper.firstChild},Wr.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Wr.prototype.prepareSelection=function(){var e=this.cm,c=e.display,j=e.doc,U=bi(e);if(e.options.moveInputWithCursor){var H=Gn(e,j.sel.primary().head,"div"),ee=c.wrapper.getBoundingClientRect(),ge=c.lineDiv.getBoundingClientRect();U.teTop=Math.max(0,Math.min(c.wrapper.clientHeight-10,H.top+ge.top-ee.top)),U.teLeft=Math.max(0,Math.min(c.wrapper.clientWidth-10,H.left+ge.left-ee.left))}return U},Wr.prototype.showSelection=function(e){var c=this.cm,j=c.display;m(j.cursorDiv,e.cursors),m(j.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Wr.prototype.reset=function(e){if(this.contextMenuPending||this.composing)return;var c=this.cm;if(c.somethingSelected()){this.prevInput="";var j=c.getSelection();this.textarea.value=j,c.state.focused&&K(this.textarea),w&&f>=9&&(this.hasSelection=j)}else e||(this.prevInput=this.textarea.value="",w&&f>=9&&(this.hasSelection=null))},Wr.prototype.getField=function(){return this.textarea},Wr.prototype.supportsTouch=function(){return!1},Wr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!l||z()!=this.textarea))try{this.textarea.focus()}catch(e){}},Wr.prototype.blur=function(){this.textarea.blur()},Wr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Wr.prototype.receivedFocus=function(){this.slowPoll()},Wr.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()})},Wr.prototype.fastPoll=function(){var e=!1,c=this;c.pollingFast=!0;function j(){var U=c.poll();!U&&!e?(e=!0,c.polling.set(60,j)):(c.pollingFast=!1,c.slowPoll())}c.polling.set(20,j)},Wr.prototype.poll=function(){var e=this,c=this.cm,j=this.textarea,U=this.prevInput;if(this.contextMenuPending||!c.state.focused||at(j)&&!U&&!this.composing||c.isReadOnly()||c.options.disableInput||c.state.keySeq)return!1;var H=j.value;if(H==U&&!c.somethingSelected())return!1;if(w&&f>=9&&this.hasSelection===H||s&&/[\uf700-\uf7ff]/.test(H))return c.display.input.reset(),!1;if(c.doc.sel==c.display.selForContextMenu){var ee=H.charCodeAt(0);if(ee==8203&&!U&&(U="\u200B"),ee==8666)return this.reset(),this.cm.execCommand("undo")}for(var ge=0,Se=Math.min(U.length,H.length);ge<Se&&U.charCodeAt(ge)==H.charCodeAt(ge);)++ge;return fi(c,function(){Le(c,H.slice(ge),U.length-ge,null,e.composing?"*compose":null),H.length>1e3||H.indexOf(`
`)>-1?j.value=e.prevInput="":e.prevInput=H,e.composing&&(e.composing.range.clear(),e.composing.range=c.markText(e.composing.start,c.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Wr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Wr.prototype.onKeyPress=function(){w&&f>=9&&(this.hasSelection=null),this.fastPoll()},Wr.prototype.onContextMenu=function(e){var c=this,j=c.cm,U=j.display,H=c.textarea;c.contextMenuPending&&c.contextMenuPending();var ee=Ta(j,e),ge=U.scroller.scrollTop;if(!ee||u)return;var Se=j.options.resetSelectionOnContextMenu;Se&&j.doc.sel.contains(ee)==-1&&Wa(j,gi)(j.doc,Er(ee),Oe);var Re=H.style.cssText,je=c.wrapper.style.cssText,vt=c.wrapper.offsetParent.getBoundingClientRect();c.wrapper.style.cssText="position: static",H.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(e.clientY-vt.top-5)+"px; left: "+(e.clientX-vt.left-5)+`px;
z-index: 1000; background: `+(w?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Rt;_&&(Rt=window.scrollY),U.input.focus(),_&&window.scrollTo(null,Rt),U.input.reset(),j.somethingSelected()||(H.value=c.prevInput=" "),c.contextMenuPending=zt,U.selForContextMenu=j.doc.sel,clearTimeout(U.detectingSelectAll);function $t(){if(H.selectionStart!=null){var Fn=j.somethingSelected(),Zn="\u200B"+(Fn?H.value:"");H.value="\u21DA",H.value=Zn,c.prevInput=Fn?"":"\u200B",H.selectionStart=1,H.selectionEnd=Zn.length,U.selForContextMenu=j.doc.sel}}function zt(){if(c.contextMenuPending!=zt)return;if(c.contextMenuPending=!1,c.wrapper.style.cssText=je,H.style.cssText=Re,w&&f<9&&U.scrollbars.setScrollTop(U.scroller.scrollTop=ge),H.selectionStart!=null){(!w||w&&f<9)&&$t();var Fn=0,Zn=function(){U.selForContextMenu==j.doc.sel&&H.selectionStart==0&&H.selectionEnd>0&&c.prevInput=="\u200B"?Wa(j,ol)(j):Fn++<10?U.detectingSelectAll=setTimeout(Zn,500):(U.selForContextMenu=null,U.input.reset())};U.detectingSelectAll=setTimeout(Zn,200)}}if(w&&f>=9&&$t(),P){We(e);var On=function(){kt(window,"mouseup",On),setTimeout(zt,20)};Ue(window,"mouseup",On)}else setTimeout(zt,50)},Wr.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Wr.prototype.setUneditable=function(){},Wr.prototype.needsContentAttribute=!1;function Ma(e,c){if(c=c?k(c):{},c.value=e.value,!c.tabindex&&e.tabIndex&&(c.tabindex=e.tabIndex),!c.placeholder&&e.placeholder&&(c.placeholder=e.placeholder),c.autofocus==null){var j=z();c.autofocus=j==e||e.getAttribute("autofocus")!=null&&j==document.body}function U(){e.value=Se.getValue()}var H;if(e.form&&(Ue(e.form,"submit",U),!c.leaveSubmitMethodAlone)){var ee=e.form;H=ee.submit;try{var ge=ee.submit=function(){U(),ee.submit=H,ee.submit(),ee.submit=ge}}catch(Re){}}c.finishInit=function(Re){Re.save=U,Re.getTextArea=function(){return e},Re.toTextArea=function(){Re.toTextArea=isNaN,U(),e.parentNode.removeChild(Re.getWrapperElement()),e.style.display="",e.form&&(kt(e.form,"submit",U),!c.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=H))}},e.style.display="none";var Se=Ya(function(Re){return e.parentNode.insertBefore(Re,e.nextSibling)},c);return Se}function Aa(e){e.off=kt,e.on=Ue,e.wheelEventPixels=Hi,e.Doc=Ti,e.splitLines=Be,e.countColumn=G,e.findColumn=ve,e.isWordChar=$,e.Pass=xe,e.signal=ht,e.Line=dn,e.changeEnd=Qr,e.scrollbarModel=xo,e.Pos=Zt,e.cmpPos=Tn,e.modes=ut,e.mimeModes=mt,e.resolveMode=et,e.getMode=Dt,e.modeExtensions=Ht,e.extendMode=bn,e.copyState=Cn,e.startState=qn,e.innerMode=Yn,e.commands=qo,e.keyMap=vo,e.keyName=xs,e.isModifierKey=is,e.lookupKey=_o,e.normalizeKeyMap=_l,e.StringStream=Pn,e.SharedTextMarker=Qo,e.TextMarker=Gi,e.LineWidget=ns,e.e_preventDefault=Ee,e.e_stopPropagation=Ae,e.e_stop=We,e.addClass=F,e.contains=N,e.rmClass=E,e.keyNames=Ro}eu(Ya),Ft(Ya);var Ga="iter insert remove copy getEditor constructor".split(" ");for(var si in Ti.prototype)Ti.prototype.hasOwnProperty(si)&&fe(Ga,si)<0&&(Ya.prototype[si]=function(e){return function(){return e.apply(this.doc,arguments)}}(Ti.prototype[si]));return Ge(Ti),Ya.inputStyles={textarea:Wr,contenteditable:Nt},Ya.defineMode=function(e){!Ya.defaults.mode&&e!="null"&&(Ya.defaults.mode=e),Pt.apply(this,arguments)},Ya.defineMIME=jt,Ya.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Ya.defineMIME("text/plain","null"),Ya.defineExtension=function(e,c){Ya.prototype[e]=c},Ya.defineDocExtension=function(e,c){Ti.prototype[e]=c},Ya.fromTextArea=Ma,Aa(Ya),Ya.version="5.58.2",Ya})},W6BS:function(M,Y){M.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+Pb8mCNZcQEYmMQi8KymCSQGLJLIx7zKCFKi1uuJNZvNXxDvLBVszUtW5xSm0WL8Mh9hV0xoGFfKRItVzjYJmaFSQtHAFqVwY3i/pi7Kl2e6N9SOJaxkJk4q0CmqcZVBaGtybFY5OIaCscqKqsaUYBE6LYU08Jimi/dxrIYjudM5ynCohzCyvZaw3iCLEviqW3ntDxR1SreTDCbQ1OI65c2qZKQsY0RKlUVFoVxWcsS5DLdnHisKk6iX1iTeBOXlNgqK4kXxmTdgapAVlWKYpKLsuVYykSJictxVtKPNMq1K0saFiym8wWzKKkiSnKeDSud9i1llOe0XE3PrUTMLEmerys1zpVEYCVWIjqVS1aGEjYlJKrvKvYrAVoWGcKgxIkBYmKuurlRTuOqmkIrdCEOJ8qpyIuc/iInL7R5oAEoOVEXRv0cx8HyHBZxZAySJilplqFE8i3bGLHXqZvFlEp4qOJOKM6zrJKkUuN7Lp6t8GxxxcqIEtfCsnFNw1yViuQuxlVNbJ6AFNUuSjEUmbFWBfJEZITF6rywalW5ryyJc21czpSSy/RmErpSFIU2bJWWRRTFVcqwHPOdo3I8HbO60mVi1Y31qwqmYkN+Ox5Nl/Kv2V7t4DhWJWoSfZZFzy3whTUJCxNA4m02meVWgAWcASr31Kgk1+XJwitfl3ykDaPyWdzTiIeW9xKDBWlREkkgVmloWTdWorBIcwajiTlryZOkJClSVDRARUN0HvPut7+NuarxbD8hKqrEbcJTjDePTfiJiKy267iOu8yBot6KrgC0xWMkHiUMSiNsri2GqAoCCYETJlWU6VJcRpiTxUp6yMU1JQ7lPMJKFZvGXUXic4ijtKodxY7KIs8LFlFElC4rEbFwFsGsTzk74sbNI/70UsQDd67zyXe9mSKes3XnnVxZKK7sz8yzxcWWkWMW3mk3cB1xzyqXmtRg2LRMvMn13tItxXVFeBwJF0kfAlIqHgEoYPJSJFjyU0kugITJQlVgTYo4UVlFlmvyRFxUtNliMl2wWLqlZTuUyZxkvE/Wv8rFG2P+aq/g/yR1Um+dT53L+MyvvoUXD2esFGPO7qyhWqs8f3PGMMEsrCpQFM1miOvYOLbCtW2U5EgKE2+uFANWWamnI6AroTEKWyocAxDULClKEXsBUrEkqlm5ZxQXZLkIx7INEoYtG5NC4qxSYsthOJ+RZZp8MSUeXGF84wYv7A74q8OSZ4Yp+dadnGpYvKkW88vr8L5feQffGyo8yyU/usIDpwJ2du7gRuJyaRBRaI1rKxqdLkVekC5mzIaHnFnv4DRWsFWBrWxciTeTSKRIKAlcSTlV2hG3NwAnaVFKjFUsanItLiklmMUsTsky0dOTvk5R2DapUaXCKKhtW+xd36W/+zyH13Z5+uox3+6XXKWH17D4OTfi/tWQerLg2qjgvtNNPvbrv8K1m4c49R5Huk6jHtCY3eTcVkh9ZZtn+xnXb+4zH+9x/cJFJkf7BI7iNz78OO3tc9xc5NSEIaEsLxhNMpo1m9W2Z0SryqXiriVqnIjICIPaMJMLuKIqdhdJsgQoNQMMo4RUa0rbMbknGRxwcOUZLj73It/dnfA3U8U4Vpzq+Lxho8YOBcPpnCuJy1z5lG6Dd52Gjzx+nmf6BSvJDWppjFrZ5jj2qLs5O/6cuzZX+fZ3nuS//+GXTBz11k/R7K7yofe/lzu21om8JoeLAlvUM8lJC00YWKw0PcNelUbEVUvUKClLkf7MKKcxyDIdWEQnDJYWgac4mMdEGYz3d7n5/JNcuHCZJ/cWPD0u0Y7L2Y0G9wXgZDHXJhl7sUWSlnTXemzVYcsvOde1eeyD57kwUEROm3h0zE4zJcgXxO0dJrGibo24by0kmy/4ytf+mJuHx3RX1njiA49gez5NV+H1Nrl0nOFIzyhdia/otURxJVVonGUNqwaxLiVXSb4TIalctYrJJMlMvSe+/fyFF/iDL/1PvLCGH+3zv184Znde0Gp1eF3PYtWF/qzg4njBOLOot2qcabqc8nNCzyaKNLtzhwd26nzqo49xae+ItZpN4nWIW6tMR2N27DmBnTMPegwjm1P1jJ265vf/4IvYrsfjH3iUYPUU2XxA09J47TVujIQQi1oAnaazLCGlIKjKctWP88pFDbglwEK0o2oFnn3+Al/6+p/x7aeukRSKaf8Kd6+vMCngbCekKHN2+ykHixw3CNgRUC2bhl0yTkpuTguGqkFpe4jCvn1b87GPfYQfzBp0VETQ32WzV6OwA7LmNkk8o82Y0C4ZuqvU0hHf/PrXSCn5zQ9+AK97iv7xDVp1H0+VtFpdrs5sfNun2zzpMERdq/e3AIqWSCKXMksi8LtPP88Xv/a/+NZTV8nckE5vlWQ8ZHF4kbee7nF5EHMwzU2SXW/4nGo51FyYRQV7EfQz1whVqFLarQYbtYL1oGDdhw9/8AOo+ip7WY3RPKPXaaCm+3TtCK/WQNfXiZKYlrWg6RR8+ctfQyv40KPncbobFOni1vjEL2Ka7R6TMsCWErEs8BwIPZMt/w5AuUNZ8L3v/5D/9kd/yp8/dY1ZaRHW5IeKmhdiJxGL4R4bjYBpUrDTklbHYZzAzUXJsLDNA9qBzXrDZTVMWbczPJWT5jAvA+qBy71ntui26txz5gy9nTNE3gr9eY5da6KSEV0VmfxXNnqo6JBvfPUbaKX4yGOP0tjc4ehgn3araepbycV2HtNqNJmoJnkSUQsCVpoOlkwNbrmoFMXzOe/55L/nuVFCKwywpf6TYrdWJ2h2SKcT5jee5+c26xzNcg4XmrEWkCVrocVGqFi1clyVkOUpi8Iz8ZSqOkVjg6y+wYP+DX73n3+YZy5cZTE6IjoesNkOWNvcpLW6Req0SLyAdD6l5cQ0SPnDr3wdbdt86PwjWO0ViiTC93ziNMb1fMosMa+DhUWjXqfmO6w07R8HqEgWc9772f/M1cEY31Km0pdaUqoL16uhkgXp+AYrgccwKdgKNWtuQSiAsoJRDlOrSeT2SFtr0tNj1+u4cUJYU0S5zZnkAr/z6c8xi2BnewWdxswnxyz6+4wPbtDwLLa3t2msbuGvbZH29/jjr3wV7Xg88egjhJtnGPf3qbmeSc8iMKpIsL0ax4uSXqtJ4Dn0mnZVthkGpZBGkUYR7/7MF7g6nOJL3yWjBNfFDgLCRodiPjYJ/RdWC/L5hJG2megaU7tDFrSw7Rp23aNt2fRaHuuhzXY7pBfa3H/XFg/9k7dw/dJz2BtneXFvhvbq6DwhsApWuy08pyAeDTjcvUg02SdUDmfvOcuf/OW3cJ2Ax87/GrG3SjQfs73eIY1j07WUeY7teAwSixWpX215vsx8LNQgLpbdBESLiPd++j9ydTjDcaW6kxYILFtUyiFfLJiOD+gGAX4yZNy+h17DpRf6bPd8tkOHjW6dhqcME4WCRZwxj1LuP3c373/fO43r1ms1U8DPEs3hLGV3MKe/kM8JUvkHrk27XuNo90W+9T++SKfbpdXu8eivvYeodZpo2qfu26gix5f8kEZYtscwdel1mqau3Oh4+I6NGsZSqkFSwmgScf53/xPX+hPDoJQ7ruPg+QFOo0OnXKDGN7h7Z53NsKTVWaHpS5uSsUil77N5dnfI6TWfb//wiMZaB3824Wri8W/Pv4kHf+k9PHPtJg+tWBzqBmE559RaD6U1YehXRUSiORhF9Oea4+Njvvnl368YWVvn8fe/jwNrnWgyYLXbrCZudombx3h+jWHqGE+QY7O9BDgyAEtSA3DB+c99gWujObbkQXFyS4avVWvyxBtabDUcRrOUSVS1TtcOI06thTy1N+EX7+rx/Rsj3nhmhfF0SiMMaDnC4oI3PvB6nnjsPP3RhHbD5zD2IBkztQLy+QisOg07QzkO6w1PujrT9gyPjti7ecizL77Im99wP/vuafJkTCusUeYyJbDwSHFdj1R5rHVbpszcarumWVaTWGpRTYZiNIt55LNf4NJghGu7ph0x/ZhfpxO43FeLqXslea6o+VIO2SRFSTdUHExj1kOPZ/s59/U8vrM7YbXXppgOuZGF/Kt338tb3/M437uyyy+s+xxlLr4V0wzqFDqiXu9CnphFinpHmSbRBTXXIQzrXHnuaXScct2/h2S+T7veQBUpjhuaKYHjunhByEq3bXjZ7Mj9S9Q0LctqyFRw4dI1/sV/+K8cLyK6niKwLZM0m3aKVh5d1yJzfKJE5iZVz9Wf5ex0PK4Mc16/6nBtmnNn1zV5re471FTGPNE8/MbX8Vsf/U1GozHtekA/d3CKiKT0ydMZuRXg6oyFVrQ8mftUfZ909rWgxqXnnyXPUi6rM+hE7tEwY/6isPDLBa4XENbrZqxhpgwWPHimi5qnupQkOhsN+czv/TuSLEZJ01qYmbXpEeVGMq5r1VxKp40uJcFKV20xiXN6fsneXHNHy+IHfYsHVkue2Yuot+t48Zy9LOR33nGGdz72cf724lUe2nA50CENEiyvgU6m1MI6vjTctk3o2qSZNN/g26IZFrsXLpDGC75nvw4VjWj5MrbQxvA15vhuwFqnUc1mtAzKSt567ypqkelSW4pR/5hPfvbfEEuBbfYKSjKkMpFZSEGuLDphCH6DPNfVwMjCjCg6gc0gUWzVUo5ih9VAM4+1WV1YZIzTkrf9/Dk+8clPMZjO6dUcxri42YKs9CjSOTpo4Ocps1yKe5uiyMhKaXxdiiJl/9JFoijiyDmFThY4gWcmfalWODrFdXy2N1bJZcBVajNyfMu5VVSSlbJlwHH/iI9/4tNMU/BktKRcclVgaRtLi2UVnaAOQYM0l8FrhrJtJqliJdDsRTZ3hylPj33e0Em51M+pd3uEi0P2dIPf/qen+PWPfoKnL+/x4JrPXuYTFlMIOuTRGK/eoVbGLAqLRijViSbTOTU3QArR65dfZL6IcdbvIs1TdocF3bpPJ3RMzGWzASvr22C7ZpIn/x6+W+LUzPXgsN/nN574CEmSUtrVjo4lvaFTYDlSiSt6Gx1Cv0vhxliJTe6UlEnN7CRpw7QiLmVvopoOoF0sO2MclfzSm+/hM//y95guUtpShARtnCJmEeUoFeM1mziZJo4WeEHN7EUUSUpk73P95vfZvTYAvUa+ukGez9g7njPqF7Rd6RwKiugKi/llHMfHsnwzZG76ddTBwWGZZinD4YjPfvpzTGYzijwxsxBJxt07MlpnE1RmYbuKQG+iuhP0wEe1c+ILr8d2UhOrWldjDKu7TznaJFjbZX58Cqt2mTfd+y5+6+Nv53jyIr3mvYRunX5ymZ71MK6q4Qc+cVYwi2IaNR/PtdGpx7Xoqzx3+CeE84d54NR5IYhWo8Zf/s03+Oo3/wtrvW1Ct0PgrhA6K9TcDqV2jSAJc+rzn/98OZ1Ol/MVl7IsiOOINM0YTw4ZRJeJ9ZDpZEzQ9fGKDexmRJkVqMBn+twOyo5pNJsEYcjx8QG9h55kcel1hGcvMnvhHGrlBR66/1f55X+2zQvX/5q13r2QOQzzH/Lz7X/NYfEAvaZiePOQsrfOSnJIOwiNmz23+xccHr3AweGc8RjCIOD05lksakyjIzrBnRRimNmYXGdmHTs7pzh37pypadW1a9dKqRgODg7Y399nMhmTZZm5ecIxUTpgkR4yiQ+IFhPiLCeOZpSFB3GTXDdwdIv17hmarR4//MGT3PGL+1z/bo/em6/S/84pmg89zwPrj/COd55mMDkirNWwkx3G0QsUB2/Ba57jjq0OZTxGOS46ryYJ82jApetPcTDYJ6yt4tshtVoIuUMz7NI/HqJ1SthscMfOHZy9+y62trbwPO/WbuHf3z7TmvlcLDVmMBgwHIwYjSbMJ3Nm0ZxI5p3JjHk6RkbCgVfDsgN8ArP3N5juM5jdJD26xrOjq9TzCcfzkGYYcXrrbTz6xDs5OrrMeHzIjck+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="},WO9J:function(M,Y,o){"use strict";o.r(Y);var L=o("0Owb"),g=o("PpiC"),A=o("q1tI"),b=o.n(A),y=o("EkPF"),x=o.n(y),w=o("miYZ"),f=o("tsqr"),_=o("2qtc"),d=o("kLXV"),r=o("9og8"),u=o("WmNS"),t=o.n(u),a=o("auZk"),n=o.n(a),i=o("1vsH"),h=o("Ufr+"),l=o.n(h),s=o("HBuW"),p=o("ErOA"),O=o("Ty5D"),S=o("9kvl"),v=function(Yt){var dn,An,qt=Yt.globalSetting,Sn=Yt.loading,mn=Yt.dispatch,Mn=Yt.practiceSetting,Un=Yt.shixunsDetail,ir=Object(g.a)(Yt,["globalSetting","loading","dispatch","practiceSetting","shixunsDetail"]),er=Object(O.h)(),Ar=Object(A.useRef)(""),Mr=Object(O.i)(),Qn=Mn.title,Tr=Mn.base_info_warning,mr=Mn.challenges_warning,Gr=Mn.service_warning,Ir=Mn.repository_warning,qr=Mn.mirror_warning;Object(A.useEffect)(function(){var ur;Ar.current=(ur=er.pathname.split("/"))===null||ur===void 0?void 0:ur[2],mn({type:"practiceSetting/setParams",payload:{id:Ar.current}}),mn({type:"practiceSetting/getCommonData",payload:{id:Ar.current}})},[er.pathname]),Object(A.useEffect)(function(){return Object(i.X)(Qn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"),function(){Object(i.X)()}});var rr=function(){var ur=Object(r.a)(t.a.mark(function or(){return t.a.wrap(function(sr){for(;;)switch(sr.prev=sr.next){case 0:return sr.next=2,Gt();case 2:S.d.push("/shixuns/".concat(Ar.current,"/challenges"));case 3:case"end":return sr.stop()}},or)}));return function(){return ur.apply(this,arguments)}}(),Gt=function(){return new Promise(function(or,Zr){var sr;Mn!=null&&(sr=Mn.sideBar)!==null&&sr!==void 0&&sr.confirmLeave?d.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(){mn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),or()},onCancel:function(){Zr()}}):or()})},Qt=function(or){var Zr;if(or===(Mn==null?void 0:Mn.sideBar.tabsActive))return;var sr=function(){S.d.push("/shixuns/".concat(Ar.current,"/edit?tabId=").concat(or)),mn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:or,selectPath:"",confirmLeave:!1}})};Mn!=null&&(Zr=Mn.sideBar)!==null&&Zr!==void 0&&Zr.confirmLeave?d.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(){sr()}}):sr()},Jt=function ur(or){var Zr;or=(Zr=or)!==null&&Zr!==void 0&&Zr.includes(".json")?or:"".concat(or,".json"),d.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:b.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var sr=Object(r.a)(t.a.mark(function Xr(){var gr,Cr;return t.a.wrap(function(Yr){for(;;)switch(Yr.prev=Yr.next){case 0:return Yr.next=2,Object(p.a)("/api"+or,{method:"get"});case 2:if(gr=Yr.sent,gr){Yr.next=5;break}return Yr.abrupt("return");case 5:return f.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),Yr.next=8,Object(s.E)({id:gr.shixun_identifier});case 8:if(Cr=Yr.sent,!(Cr!=null&&Cr.game_identifier)){Yr.next=12;break}return Object(i.S)("/tasks/".concat(Cr.game_identifier)),Yr.abrupt("return");case 12:(Cr==null?void 0:Cr.status)===2?ur(Cr==null?void 0:Cr.message):(Cr==null?void 0:Cr.status)===3&&zn(Cr==null?void 0:Cr.message);case 13:case"end":return Yr.stop()}},Xr)}));function la(){return sr.apply(this,arguments)}return la}()})},zn=function(or){d.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:b.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",or,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},tr=function(){var ur=Object(r.a)(t.a.mark(function or(Zr,sr){var la,Xr,gr;return t.a.wrap(function(Hr){for(;;)switch(Hr.prev=Hr.next){case 0:return Hr.next=2,Gt();case 2:if(Object(i.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6A21\u62DF\u5B9E\u6218"]),!((la=Un.detail)!==null&&la!==void 0&&la.is_jupyter||(Xr=Un.detail)!==null&&Xr!==void 0&&Xr.is_jupyter_lab)){Hr.next=6;break}return mn({type:"shixunsDetail/execJupyter",payload:{id:Ar.current}}).then(function(Yr){Yr!=null&&Yr.identifier&&(S.d===null||S.d===void 0||S.d.push("/tasks/".concat(Yr.identifier,"/jupyter")))}),Hr.abrupt("return");case 6:if(mn({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!sr){Hr.next=13;break}return Hr.next=10,Object(s.D)({id:Zr});case 10:Hr.t0=Hr.sent,Hr.next=16;break;case 13:return Hr.next=15,Object(s.E)({id:Zr});case 15:Hr.t0=Hr.sent;case 16:if(gr=Hr.t0,mn({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!(gr!=null&&gr.game_identifier||gr!=null&&gr.identifier)){Hr.next=21;break}return Object(i.S)(sr?"/tasks/".concat(gr==null?void 0:gr.identifier,"/jupyter"):"/tasks/".concat(gr.game_identifier)),Hr.abrupt("return");case 21:(gr==null?void 0:gr.status)===-3?Object(i.q)():(gr==null?void 0:gr.status)===2?Jt(gr==null?void 0:gr.message):(gr==null?void 0:gr.status)===3&&zn(gr==null?void 0:gr.message);case 22:case"end":return Hr.stop()}},or)}));return function(Zr,sr){return ur.apply(this,arguments)}}(),Ln=function(){var ur=Object(r.a)(t.a.mark(function or(){return t.a.wrap(function(sr){for(;;)switch(sr.prev=sr.next){case 0:return sr.next=2,Gt();case 2:mn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"information"}});case 3:case"end":return sr.stop()}},or)}));return function(){return ur.apply(this,arguments)}}(),ar=function(or){var Zr={borderBottomColor:(Mn==null?void 0:Mn.sideBar.tabsActive)===or?"#0152d9":"transparent"};return Zr};return b.a.createElement("div",{className:n.a.header},b.a.createElement("aside",{className:n.a.title},b.a.createElement("i",{onClick:rr,style:{color:"#fff",marginRight:20},className:"icon iconfont icon-fanhui1"}),b.a.createElement("span",{className:n.a.edit},Qn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"),b.a.createElement("i",{onClick:Ln,className:"icon iconfont icon-xiugai1"})),b.a.createElement("aside",{className:n.a.schedule},b.a.createElement("div",null,b.a.createElement("span",{style:ar("information"),className:n.a.clickWarp,onClick:function(){return Qt("information")}},Tr?b.a.createElement("span",{className:n.a.num},"1"):b.a.createElement("img",{src:l.a}),b.a.createElement("span",{className:n.a.subject},"\u57FA\u672C\u4FE1\u606F")),b.a.createElement("i",{className:"iconfont icon-lujing"})),b.a.createElement("div",null,b.a.createElement("span",{style:ar("warehouse"),className:n.a.clickWarp,onClick:function(){return Qt("warehouse")}},Ir?b.a.createElement("span",{className:n.a.num},"2"):b.a.createElement("img",{src:l.a}),b.a.createElement("span",{className:n.a.subject},"\u4EE3\u7801\u4ED3\u5E93")),b.a.createElement("i",{className:"iconfont icon-lujing"})),(Un==null?void 0:Un.detail)&&!(Un!=null&&(dn=Un.detail)!==null&&dn!==void 0&&dn.is_jupyter_lab)&&b.a.createElement("div",null,b.a.createElement("span",{style:ar("level"),className:n.a.clickWarp,onClick:function(){return Qt("level")}},mr?b.a.createElement("span",{className:n.a.num},"3"):b.a.createElement("img",{src:l.a}),b.a.createElement("span",{className:n.a.subject},"\u4EFB\u52A1\u5173\u5361")),b.a.createElement("i",{className:"iconfont icon-lujing"})),(Un==null?void 0:Un.detail)&&(Un==null||((An=Un.detail)===null||An===void 0)?void 0:An.is_jupyter_lab)&&b.a.createElement("div",null,b.a.createElement("span",{style:ar("service"),className:n.a.clickWarp,onClick:function(){return Qt("service")}},Gr?b.a.createElement("span",{className:n.a.num},"3"):b.a.createElement("img",{src:l.a}),b.a.createElement("span",{className:n.a.subject},"\u670D\u52A1")),b.a.createElement("i",{className:"iconfont icon-lujing"})),b.a.createElement("div",null,b.a.createElement("span",{style:ar("environment"),className:n.a.clickWarp,onClick:function(){return Qt("environment")}},qr?b.a.createElement("span",{className:n.a.num},"4"):b.a.createElement("img",{src:l.a}),b.a.createElement("span",{className:n.a.subject},"\u5B9E\u9A8C\u73AF\u5883")))),b.a.createElement("aside",{className:n.a.btns},b.a.createElement("div",{className:n.a.simulate,onClick:function(){return tr(Ar.current,!1)}},"\u6A21\u62DF\u5B9E\u6218")))},P=Object(S.a)(function(xn){var Yt=xn.loading,dn=xn.globalSetting,An=xn.practiceSetting,qt=xn.shixunsDetail;return{globalSetting:dn,loading:Yt,practiceSetting:An,shixunsDetail:qt}})(v),R=o("sRBo"),E=o("kaz8"),C=o("14J3"),m=o("BMrR"),T=o("jCWc"),I=o("kPKH"),D=o("DZo9"),N=o("8z0m"),z=o("6UJt"),F=o("DFOY"),W=o("5NDa"),K=o("5rEg"),B=o("+L6B"),k=o("2/Rp"),G=o("k1fw"),ne=o("y8nQ"),fe=o("Vl3Y"),de=o("tJVT"),xe=o("h/E3"),Oe=o.n(xe),ce=o("Ot1p"),be=o("oBTY"),ve=o("+Xk9"),ue=o.n(ve),se=o("FTkQ"),q=o.n(se),me=function(Yt){var dn=Yt.InputRight,An=Yt.value,qt=An===void 0?[]:An,Sn=Yt.onChange,mn=Object(g.a)(Yt,["InputRight","value","onChange"]),Mn=Object(A.useState)(),Un=Object(de.a)(Mn,2),ir=Un[0],er=Un[1],Ar=function(Tr){var mr=qt.filter(function(Gr,Ir){return Ir!==Tr});Sn(mr)},Mr=function(Tr){if(Tr.preventDefault(),!ir)return;if(qt.findIndex(function(mr){return mr.name===ir})>-1){f.b.warn("\u4E0D\u5141\u8BB8\u6DFB\u52A0\u76F8\u540C\u6807\u7B7E");return}Sn([].concat(Object(be.a)(qt),[{id:null,name:ir}])),er(null)};return b.a.createElement("div",null,b.a.createElement(K.a,Object(L.a)({bordered:!1,style:{width:600},value:ir,onChange:function(Tr){return er(Tr.target.value)},onPressEnter:Mr,onBlur:Mr},mn)),dn||b.a.createElement("span",{className:"pl20 font14 c-light-black"},"\u56DE\u8F66\u6DFB\u52A0\u6807\u7B7E"),b.a.createElement("div",{className:"mt20"},qt==null?void 0:qt.map(function(Qn,Tr){return b.a.createElement("div",{key:Tr,className:ue.a.btn},b.a.createElement("span",{className:ue.a.s1},Qn.name),b.a.createElement("img",{src:q.a,className:ue.a.s2,onClick:function(){return Ar(Tr)}}))})))},re=me,ie=o("LvDl"),we=o("m3rI"),le=o("hW5Z"),$=o.n(le),J=function(Yt){var dn=Yt.dispatch,An=Yt.onCancel,qt=Yt.onSave,Sn=Yt.loading,mn=Sn===void 0?!1:Sn;return b.a.createElement("div",{className:$.a.complete},b.a.createElement("div",{onClick:An,className:$.a.cancel},"\u53D6\u6D88"),b.a.createElement(k.a,{type:"primary",loading:mn,onClick:qt,className:$.a.save},"\u4FDD\u5B58"))},te=Object(S.a)()(J),De=o("UqFu"),Te=o("z7Xi"),ke=o("jN4g"),tt=function(Yt){var dn,An,qt=Yt.globalSetting,Sn=Yt.loading,mn=Yt.dispatch,Mn=Yt.practiceSetting,Un=Yt.problemset,ir=Yt.shixunsDetail,er=Object(g.a)(Yt,["globalSetting","loading","dispatch","practiceSetting","problemset","shixunsDetail"]),Ar=fe.a.useForm(),Mr=Object(de.a)(Ar,1),Qn=Mr[0],Tr=Object(A.useState)({}),mr=Object(de.a)(Tr,2),Gr=mr[0],Ir=mr[1],qr=Object(A.useState)(!1),rr=Object(de.a)(qr,2),Gt=rr[0],Qt=rr[1],Jt=Object(A.useState)(!1),zn=Object(de.a)(Jt,2),tr=zn[0],Ln=zn[1],ar=Object(A.useState)(""),ur=Object(de.a)(ar,2),or=ur[0],Zr=ur[1],sr=Object(A.useState)(""),la=Object(de.a)(sr,2),Xr=la[0],gr=la[1],Cr=Object(A.useRef)({}),Hr=Object(A.useRef)(""),Yr=Object(A.useRef)(null),Oa=Object(A.useRef)(Object(ie.throttle)(function(){return Pe()},2e3,{leading:!0,trailing:!1})).current,va=Mn.id;Object(A.useEffect)(function(){if(!va)return;dt()},[va]),Object(A.useEffect)(function(){return JSON.stringify(Gr)!=="{}"&&Ze(),function(){clearTimeout(Yr.current)}},[Gr,or,Xr]);var Ze=function(){clearTimeout(Yr.current),Yr.current=setTimeout(function(){!Object(ie.isEqual)(Gr,Cr.current)||or!==Hr.current||Xr!==Hr.current?mn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!0}}):mn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})},500)},dt=function(){var un=Object(r.a)(t.a.mark(function ln(){var Hn,yn,kr,Dr,Jr,Fr,ta,Kn,Sr;return t.a.wrap(function(_n){for(;;)switch(_n.prev=_n.next){case 0:return mn({type:"problemset/getEditDisciplines",payload:{source:"shixun"}}),_n.next=3,Object(p.a)("/api/shixuns/".concat(va,"/edit_base_info.json"),{method:"get"});case 3:Hn=_n.sent,Hn.status===0&&(Kn=Object(G.a)(Object(G.a)({},Hn.data),{},{description:Object(De.a)(Hn.data.description)}),Sr={description:Kn.description,shixun_tags:Kn.shixun_tags,name:Kn.name,course:(Kn==null||((yn=Kn.disciplines)===null||yn===void 0)?void 0:yn.length)>0?[Kn==null||((kr=Kn.disciplines)===null||kr===void 0||((Dr=kr[0])===null||Dr===void 0))?void 0:Dr.id,Kn==null||((Jr=Kn.disciplines)===null||Jr===void 0||((Fr=Jr[0])===null||Fr===void 0||((ta=Fr.sub_discipline)===null||ta===void 0)))?void 0:ta.id]:[],jupyter_show_description:Hn.data.jupyter_show_description},Qn.setFieldsValue(Sr),Cr.current=Object(G.a)({},Sr),Hr.current=Kn.attachment_id||"",Ir(Object(G.a)({},Sr)),Zr(Kn.attachment_id||""),gr(Kn.cover_image_id||""));case 5:case"end":return _n.stop()}},ln)}));return function(){return un.apply(this,arguments)}}(),yt=function(ln,Hn){Ir(Object(G.a)({},Hn))},nt=function(){Ie()},Pe=function(){Object(i.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u57FA\u672C\u4FE1\u606F","\u4FDD\u5B58"]),Qn.submit()},Xe=function(ln){var Hn,yn=ln.name,kr=ln.description,Dr=ln.shixun_tags,Jr=ln.course,Fr=ln.jupyter_show_description,ta=Fr===void 0?!1:Fr,Kn={name:yn,description:kr,shixun_tags:Dr,attachment_id:or,cover_image_id:Xr,sub_discipline_ids:Jr[1]};(Hn=ir.detail)!==null&&Hn!==void 0&&Hn.is_jupyter_lab&&(Kn=Object(G.a)(Object(G.a)({},Kn),{},{jupyter_show_description:ta}));var Sr=Object(p.a)("/api/shixuns/".concat(va,"/base_info_save.json"),{method:"post",body:{shixun:Object(G.a)({},Kn)}});Sr.then(function(Gn){Gn.status===0&&(f.b.success("\u4FDD\u5B58\u6210\u529F"),mn({type:"practiceSetting/getCommonData",payload:{id:va}}),mn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),Cr.current={description:Gr.description,shixun_tags:Gr.shixun_tags,name:Gr.name},Hr.current=or)})},Ie=function(){var ln,Hn=function(){S.d.push("/shixuns/".concat(va,"/challenges")),mn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};Mn!=null&&(ln=Mn.sideBar)!==null&&ln!==void 0&&ln.confirmLeave?d.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(){Hn()}}):Hn()};function $e(un){var ln=un.type==="image/jpeg"||un.type==="image/png";return ln||f.b.error("\u8BF7\u4E0A\u4F20jpg\u6216png\u7684\u56FE\u7247!"),ln}var qe=b.a.createElement(k.a,{loading:Gt,icon:b.a.createElement(Te.a,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6"),pt=b.a.createElement(k.a,{loading:tr,icon:b.a.createElement(Te.a,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");function rt(un,ln){var Hn=new FileReader;Hn.addEventListener("load",function(){return ln(Hn.result)}),Hn.readAsDataURL(un)}var It=function(ln){if(ln.file.status==="uploading"){Qt(!0);return}if(ln.file.status==="done"){var Hn,yn;Qt(!1),Zr(ln==null||((Hn=ln.file)===null||Hn===void 0||((yn=Hn.response)===null||yn===void 0))?void 0:yn.id)}},Vt=function(){return b.a.createElement("div",{className:Oe.a.img},b.a.createElement("img",{src:we.a.API_SERVER+"/api/attachments/"+or,alt:"avatar",style:{width:"100%"}}),b.a.createElement("div",null,b.a.createElement(ke.a,{onClick:function(){return Zr("")},style:{fontSize:"16px",color:"red"}})))},fn=function(ln){if(ln.file.status==="uploading"){Ln(!0);return}if(ln.file.status==="done"){var Hn,yn;Ln(!1),gr(ln==null||((Hn=ln.file)===null||Hn===void 0||((yn=Hn.response)===null||yn===void 0))?void 0:yn.id)}},on=function(){return b.a.createElement("div",{className:Oe.a.img},b.a.createElement("img",{src:we.a.API_SERVER+"/api/attachments/"+Xr,alt:"avatar",style:{width:"100%"}}),b.a.createElement("div",null,b.a.createElement(ke.a,{onClick:function(){return gr("")},style:{fontSize:"16px",color:"red"}})))};return b.a.createElement("div",{className:Oe.a.information},b.a.createElement("section",{className:Oe.a.scroll},b.a.createElement("header",null,"\u57FA\u672C\u4FE1\u606F"),b.a.createElement("div",{className:Oe.a.formWrap}," ",b.a.createElement(fe.a,{form:Qn,scrollToFirstError:!0,layout:"vertical",onValuesChange:yt,onFinish:Xe},b.a.createElement(fe.a.Item,{name:"name",label:"\u540D\u79F0:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"},{max:60,message:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},b.a.createElement(K.a,{bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26",suffix:"".concat(((dn=Gr.name)===null||dn===void 0?void 0:dn.length)||0,"/60")})),b.a.createElement(fe.a.Item,{className:"customAddTags",name:"shixun_tags",label:b.a.createElement("div",null,"\u6280\u80FD\u6807\u7B7E :"," ",b.a.createElement("span",{className:"pl10 font14 c-light-black"},"\u5B66\u5458\u901A\u8FC7\u6240\u6709\u4EFB\u52A1\u5173\u5361\uFF0C\u5C06\u83B7\u5F97\u6280\u80FD\u6807\u7B7E")),rules:[{required:!0,message:"\u8BF7\u9009\u8F93\u5165\u6280\u80FD\u6807\u7B7E"}]},b.a.createElement(re,{placeholder:"\u6DFB\u52A0\u6807\u7B7E"})),b.a.createElement(fe.a.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B\uFF1A",name:"course",labelCol:{span:5},wrapperCol:{span:5}},b.a.createElement(F.a,{placeholder:"\u8BF7\u9009\u62E9...",allowClear:!1,options:Un.courseOptions})),b.a.createElement(m.a,null,b.a.createElement(I.a,null,b.a.createElement(fe.a.Item,{label:"\u9876\u90E8\u80CC\u666F\u56FE:"},or?Vt():b.a.createElement(N.a,{withCredentials:!0,name:"file",showUploadList:!1,action:"".concat(we.a.API_SERVER,"/api/attachments.json"),beforeUpload:$e,onChange:It},qe))),b.a.createElement(I.a,{className:"c-grey-999"},b.a.createElement("div",{style:{marginTop:71,marginLeft:20}},"\u8BF4\u660E\uFF1A\u652F\u6301\u4E0A\u4F20jpg/png\u7B49\u683C\u5F0F\u6587\u4EF6\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72M,\u5EFA\u8BAE\u4F7F\u75281920*200\u50CF\u7D20\uFF1B\u5982\u4E0D\u4E0A\u4F20\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u56FE\u7247\u3002"))),b.a.createElement(m.a,null,b.a.createElement(I.a,null,b.a.createElement(fe.a.Item,{label:"\u5217\u8868\u5C01\u9762\u56FE:"},Xr?on():b.a.createElement(N.a,{withCredentials:!0,name:"file",showUploadList:!1,action:"".concat(we.a.API_SERVER,"/api/attachments.json"),beforeUpload:$e,onChange:fn},pt))),b.a.createElement(I.a,{className:"c-grey-999"},b.a.createElement("div",{style:{marginTop:71,marginLeft:20}},"\u8BF4\u660E\uFF1A\u652F\u6301\u4E0A\u4F20jpg/png\u7B49\u683C\u5F0F\u6587\u4EF6\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72M,\u5EFA\u8BAE\u4F7F\u7528290*218\u50CF\u7D20\uFF1B\u5982\u4E0D\u4E0A\u4F20\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u56FE\u7247\u3002"))),b.a.createElement(fe.a.Item,{name:"description",label:"\u7B80\u4ECB:"},b.a.createElement(ce.a,{defaultValue:Gr.description||"",watch:!0})),((An=ir.detail)===null||An===void 0?void 0:An.is_jupyter_lab)&&b.a.createElement(fe.a.Item,{name:"jupyter_show_description",valuePropName:"checked"},b.a.createElement(E.a,null,"\u663E\u793A\u4EFB\u52A1\u8981\u6C42\uFF08\u52FE\u9009\u540E\uFF0C\u5C06\u7B80\u4ECB\u4F5C\u4E3A\u4EFB\u52A1\u8981\u6C42\u663E\u793A\u5728\u5B9E\u8DF5\u9879\u76EE\u6311\u6218\u9875\u9762\uFF09"))))),b.a.createElement(te,{onSave:Oa,onCancel:nt,loading:Gt||tr}))},ot=Object(S.a)(function(xn){var Yt=xn.problemset,dn=xn.loading,An=xn.globalSetting,qt=xn.practiceSetting,Sn=xn.shixunsDetail;return{globalSetting:An,loading:dn,practiceSetting:qt,problemset:Yt,shixunsDetail:Sn}})(tt),gt=o("ch0t"),Et=o("R9oj"),xt=o("ECub"),St=o("T2oS"),Je=o("W9HT"),Ue=o("bKvZ"),ft=o.n(Ue),kt=o("KeGQ"),ht=o.n(kt),_t=o("NLgs"),Qe=o("ngQI"),He=function(Yt){var dn=Yt.globalSetting,An=Yt.dispatch,qt=Yt.practiceSetting,Sn=Object(g.a)(Yt,["globalSetting","dispatch","practiceSetting"]),mn=Object(A.useState)(!1),Mn=Object(de.a)(mn,2),Un=Mn[0],ir=Mn[1],er=Object(A.useState)({}),Ar=Object(de.a)(er,2),Mr=Ar[0],Qn=Ar[1],Tr=Object(A.useState)(!0),mr=Object(de.a)(Tr,2),Gr=mr[0],Ir=mr[1],qr=Object(A.useState)(!1),rr=Object(de.a)(qr,2),Gt=rr[0],Qt=rr[1],Jt=Object(A.useState)(null),zn=Object(de.a)(Jt,2),tr=zn[0],Ln=zn[1],ar=Object(A.useRef)(!1),ur=qt.id,or=qt.updateIndex,Zr=qt.is_published,sr=qt.newQuestion,la=Mr.challenge_list,Xr=la===void 0?[]:la;Object(A.useEffect)(function(){return ur?(Cr(),function(){An({type:"practiceSetting/setParams",payload:{newQuestion:null}})}):void 0},[ur,or]),Object(A.useEffect)(function(){gr()},[Sn.location]);var gr=function(){var $e,qe=Sn.location,pt=qe.pathname.split("/");(pt.includes("newquestion")||pt.includes("new")||qe!=null&&($e=qe.query)!==null&&$e!==void 0&&$e.tabId)&&(ar.current=!0)},Cr=function(){var Ie=Object(r.a)(t.a.mark(function $e(){var qe,pt,rt,It,Vt,fn,on;return t.a.wrap(function(ln){for(;;)switch(ln.prev=ln.next){case 0:return Ir(!0),ln.next=3,Object(s.J)({id:ur});case 3:rt=ln.sent,rt!=null&&(qe=rt.challenge_list)!==null&&qe!==void 0&&qe.length&&(It=Sn.location.pathname.split("/"),Vt=rt.challenge_list.find(function(Hn){return String(Hn.challenge_id)===It[4]}),It.includes("newquestion")||It.includes("new")?(on=rt.challenge_list[((fn=rt.challenge_list)===null||fn===void 0?void 0:fn.length)-1],An({type:"practiceSetting/setParams",payload:{newQuestion:{st:It.includes("new")?0:1,name:""}}}),Ln(void 0),Ze(on)):It[4]&&Vt?Hr(Vt,!1):Hr(rt.challenge_list[0])),rt!=null&&(pt=rt.challenge_list)!==null&&pt!==void 0&&pt.length||Ln(null),Qn(rt),Ir(!1);case 8:case"end":return ln.stop()}},$e)}));return function(){return Ie.apply(this,arguments)}}(),Hr=function($e){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(Ln($e.challenge_id),Ze($e),qe){var pt="/shixuns/".concat(ur,"/edit/").concat($e.challenge_id,"/").concat($e.st===1?"editquestion":"editcheckpoint");S.d.push(pt)}},Yr=function($e,qe){qe.stopPropagation();var pt=$e.challenge_id,rt=function(){var It=Object(r.a)(t.a.mark(function Vt(){var fn,on,un,ln;return t.a.wrap(function(yn){for(;;)switch(yn.prev=yn.next){case 0:return yn.next=2,Object(s.v)({id:ur,challengesId:pt});case 2:if(fn=yn.sent,!(fn.status===1)){yn.next=12;break}return yn.next=6,Object(s.J)({id:ur});case 6:if(ln=yn.sent,Qn(ln),!(pt===tr&&(on=ln.challenge_list)!==null&&on!==void 0&&on.length)){yn.next=11;break}return Hr(ln.challenge_list[0]),yn.abrupt("return");case 11:(un=ln.challenge_list)!==null&&un!==void 0&&un.length||(Ln(null),ar.current=!0,Ze({}),S.d.push("/shixuns/".concat(ur,"/edit?tabId=level")));case 12:case"end":return yn.stop()}},Vt)}));return function(){return It.apply(this,arguments)}}();d.a.confirm({title:"\u63D0\u793A",content:"\u662F\u5426\u5220\u9664\u8BE5\u5173\u5361!",centered:!0,onOk:rt})},Oa=function($e,qe,pt){var rt=Array.from($e),It=rt.splice(qe,1),Vt=Object(de.a)(It,1),fn=Vt[0];return rt.splice(pt,0,fn),rt},va=function($e,qe){if(!$e.destination)return;var pt=Oa(qe,$e.source.index,$e.destination.index);Qn(Object(G.a)(Object(G.a)({},Mr),{},{challenge_list:pt}));var rt=pt.map(function(It){return It.challenge_id});Object(s.Kb)({id:ur,ids:rt}).then(function(It){It.status!==0&&Qn(Object(G.a)(Object(G.a)({},Mr),{},{challenge_list:qe}))})},Ze=function($e){An({type:"practiceSetting/setParams",payload:{selectQuestionParams:$e}})},dt=function(){var Ie=Object(r.a)(t.a.mark(function $e(qe,pt){var rt;return t.a.wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:if(!(qe===tr)){Vt.next=2;break}return Vt.abrupt("return");case 2:return Vt.next=4,yt();case 4:Ln(qe),Ze(pt),An({type:"practiceSetting/setParams",payload:{newQuestion:null}}),rt="/shixuns/".concat(ur,"/edit/").concat(qe,"/").concat(pt.st===1?"editquestion":"editcheckpoint"),S.d.push(rt);case 9:case"end":return Vt.stop()}},$e)}));return function(qe,pt){return Ie.apply(this,arguments)}}(),yt=function(){return new Promise(function($e,qe){var pt;qt!=null&&(pt=qt.sideBar)!==null&&pt!==void 0&&pt.confirmLeave?d.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(){An({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),$e()},onCancel:function(){qe()}}):$e()})},nt=function($e){return b.a.createElement(b.a.Fragment,null,b.a.createElement(Qe.a,{onDragEnd:function(pt){return va(pt,$e)}},b.a.createElement(Qe.c,{droppableId:"droppable"},function(qe,pt){return b.a.createElement("div",Object(L.a)({ref:qe.innerRef},qe.droppableProps,{style:{width:"100%"}}),$e.map(function(rt,It){var Vt=rt.st,fn=rt.name,on=rt.challenge_id;return b.a.createElement(Qe.b,{key:on,draggableId:on.toString(),index:It,isDragDisabled:Zr},function(un,ln){return b.a.createElement("div",Object(L.a)({ref:un.innerRef},un.draggableProps,un.dragHandleProps,{className:tr===on?ft.a.listActive:ft.a.list,onClick:function(){return dt(on,rt)}}),b.a.createElement("span",{className:ft.a.s1},Vt===0?b.a.createElement("i",{className:"iconfont icon-shixunti",style:{color:"#0152d9"}}):b.a.createElement("i",{className:"iconfont icon-xuanzeti3",style:{color:"#44D7B6"}})),b.a.createElement("span",{className:ft.a.s2},"\u7B2C",It+1,"\u5173: ",fn),!Zr&&b.a.createElement("span",{className:ft.a.s3,onClick:function(yn){return Yr(rt,yn)}},b.a.createElement("i",{className:"iconfont icon-shanchu7"})))})}))})),sr&&b.a.createElement("div",{className:ft.a.listActive},b.a.createElement("span",{className:ft.a.s1},(sr==null?void 0:sr.st)===0?b.a.createElement("i",{className:"iconfont icon-shixunti",style:{color:"#0152d9"}}):b.a.createElement("i",{className:"iconfont icon-xuanzeti3",style:{color:"#44D7B6"}})),b.a.createElement("span",{className:ft.a.s2},"\u7B2C",$e.length+1,"\u5173: ",sr==null?void 0:sr.name)),!Zr&&b.a.createElement("div",{className:ft.a.os},"--\u62D6\u62FD\u4EFB\u52A1\u5173\u5361\u8FDB\u884C\u6392\u5E8F--"))},Pe=function(){var Ie=Object(r.a)(t.a.mark(function $e(qe){return t.a.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:return rt.next=2,yt();case 2:qe==="new"?S.d.push("/shixuns/".concat(ur,"/edit/new")):S.d.push("/shixuns/".concat(ur,"/edit/newquestion")),ir(!1),Ln(void 0),An({type:"practiceSetting/setParams",payload:{newQuestion:{st:qe==="new"?0:1,name:""}}});case 6:case"end":return rt.stop()}},$e)}));return function(qe){return Ie.apply(this,arguments)}}(),Xe=function(){if(Object(_t.b)(An,"\u4E0D\u80FD\u65B0\u5EFA\u4EFB\u52A1\u5173\u5361"))return;ir(!Un)};return b.a.createElement("div",{className:ft.a.level},b.a.createElement("aside",{className:ft.a.left,style:{width:Gt?"0":"25%"}},b.a.createElement("div",{className:ft.a.container},b.a.createElement("div",{className:ft.a.title},"\u4EFB\u52A1\u5173\u5361(",Xr.length,")"),b.a.createElement("div",{className:ft.a.listWrap},Gr?b.a.createElement(Je.a,{size:"large"}):!!Xr.length||!!sr?nt(Xr):b.a.createElement(xt.a,{image:ht.a,description:"\u6682\u65E0\u4EFB\u52A1\u5173\u5361!"}))),!Gt&&b.a.createElement("div",{className:ft.a.btns},b.a.createElement("aside",{className:ft.a.btnsWrap},b.a.createElement("div",{style:{transform:Un?"rotate(45deg)":"rotate(0deg)"},className:ft.a.icon,onClick:Xe},"+"),b.a.createElement("div",{className:ft.a.btn,style:{left:Un?20:-154}},b.a.createElement("div",{className:ft.a.d1,onClick:function(){return Pe("new")}},"\u65B0\u5EFA\u5B9E\u8DF5\u9898\u5173\u5361"),b.a.createElement("div",{className:ft.a.d2,onClick:function(){return Pe("newquestion")}},"\u65B0\u5EFA\u7406\u8BBA\u9898\u5173\u5361")))),b.a.createElement("div",{className:Gt?ft.a.elseShrink:ft.a.shrink,onClick:function(){return Qt(!Gt)}},b.a.createElement("i",{className:"iconfont icon-zuoyouzhankai"}))),b.a.createElement("aside",{className:ft.a.right,id:"modal-level-question"},tr===null&&ar.current?b.a.createElement("div",{className:ft.a.addIcon},b.a.createElement("span",null,"\u5728\u5DE6\u4FA7\u70B9\u51FB\u201C+\u201D\u53F7\u65B0\u5EFA\u5173\u5361\u3002")):Sn.children))},Ge=Object(S.a)(function(xn){var Yt=xn.globalSetting,dn=xn.practiceSetting;return{globalSetting:Yt,practiceSetting:dn}})(He),Ee=o("DjyN"),Ae=o("NUBc"),Fe=o("cWXX"),We=o("/ezw"),Ke=o("qVdP"),st=o("jsC+"),Ot=o("lUTK"),Bt=o("BvKs"),an=o("7Kak"),Kt=o("9yH6"),bt=o("Qvpy"),Be=o.n(bt),at=function(Yt){var dn=Yt.shixunsDetail,An=Yt.globalSetting,qt=Yt.loading,Sn=Yt.dispatch,mn=Yt.onReloadData,Mn=Object(g.a)(Yt,["shixunsDetail","globalSetting","loading","dispatch","onReloadData"]),Un=Object(A.useState)(),ir=Object(de.a)(Un,2),er=ir[0],Ar=ir[1],Mr=Object(A.useState)([]),Qn=Object(de.a)(Mr,2),Tr=Qn[0],mr=Qn[1];Object(A.useEffect)(function(){dn.actionTabs.key==="Collaborators-ChangeManager"&&Gr()},[dn.actionTabs.key]);var Gr=function(){var Gt=Object(r.a)(t.a.mark(function Qt(){var Jt,zn;return t.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:return Ln.next=2,Sn({type:"shixunsDetail/getChangeManager",payload:{id:(Jt=dn.actionTabs.params)===null||Jt===void 0?void 0:Jt.id}});case 2:zn=Ln.sent,mr(zn||[]);case 4:case"end":return Ln.stop()}},Qt)}));return function(){return Gt.apply(this,arguments)}}(),Ir=function(){var Qt;Sn({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:(Qt=dn.actionTabs.params)===null||Qt===void 0?void 0:Qt.id}}})},qr=function(){var Gt=Object(r.a)(t.a.mark(function Qt(){var Jt,zn;return t.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:if(er){Ln.next=3;break}return f.b.info("\u6240\u9009\u4EBA\u5458\u4E3A\u7A7A\uFF0C\u6CA1\u6709\u66F4\u6362\u6210\u529F"),Ln.abrupt("return");case 3:return Ln.next=5,Sn({type:"shixunsDetail/changeManager",payload:{id:(Jt=dn.actionTabs.params)===null||Jt===void 0?void 0:Jt.id,user_id:er}});case 5:zn=Ln.sent,rr(),zn&&(mn(),f.b.info(zn.message));case 8:case"end":return Ln.stop()}},Qt)}));return function(){return Gt.apply(this,arguments)}}(),rr=function(){Sn({type:"shixunsDetail/setActionTabs",payload:{}}),Ar(null)};return b.a.createElement(d.a,{centered:!0,keyboard:!1,closable:!1,title:"\u66F4\u6362\u7BA1\u7406\u5458",visible:dn.actionTabs.key==="Collaborators-ChangeManager",confirmLoading:qt.effects["shixunsDetail/changeManager"],onOk:qr,onCancel:rr},b.a.createElement("div",null,b.a.createElement("div",{className:Be.a.title},"\u9009\u62E9\u7684\u6210\u5458\u5C06\u4F1A\u6210\u4E3A\u65B0\u7684\u7BA1\u7406\u5458",b.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"),b.a.createElement("div",{className:Be.a.content},Tr.length?b.a.createElement(Kt.a.Group,{value:er,onChange:function(Qt){return Ar(Qt.target.value)}},Tr.map(function(Gt,Qt){return b.a.createElement(Kt.a,{className:Be.a.radio,key:Qt,value:Gt.user_id},Gt.name)})):b.a.createElement("div",{className:Be.a.add},b.a.createElement("span",null,"\u8BF7\u5148\u5C06\u65B0\u7684\u7BA1\u7406\u5458\u901A\u8FC7",b.a.createElement("a",{className:Be.a.colorBlue,onClick:Ir},'"\u6DFB\u52A0\u5408\u4F5C\u8005"'),"\u52A0\u5165\u5408\u4F5C\u8005\u5217\u8868")))))},it=Object(S.a)(function(xn){var Yt=xn.shixunsDetail,dn=xn.loading,An=xn.globalSetting;return{shixunsDetail:Yt,globalSetting:An,loading:dn}})(at),Me=o("Znn+"),Ye=o("ZTPi"),ut=o("ju9d"),mt=o("DDK+"),Pt=Ye.a.TabPane,jt=function(xn){var Yt=xn.visible,dn=xn.onCancel,An=xn.onSelectGroup,qt=xn.shixunId,Sn=xn.onSelectCollaborator;return b.a.createElement(d.a,{title:"\u6DFB\u52A0\u5408\u4F5C\u8005",visible:Yt,width:1100,centered:!0,keyboard:!1,onCancel:dn,maskClosable:!1,destroyOnClose:!0,forceRender:!0,bodyStyle:{minHeight:400,padding:"0 20px 20px 20px"},footer:null},b.a.createElement(Ye.a,{defaultActiveKey:"1"},b.a.createElement(Pt,{tab:"\u641C\u7D22\u6DFB\u52A0",key:"1"},b.a.createElement(ut.a,{onCancel:dn,container_type:2,container_id:qt,onSelect:Sn})),b.a.createElement(Pt,{tab:"\u56E2\u961F\u6DFB\u52A0",key:"2"},b.a.createElement(mt.a,{onCancel:dn,onSelect:An}))))},et=o("oaGz"),Dt=o.n(et),Ht=o("8Skl"),bn=o("ruvs"),Cn=function(Yt){var dn,An,qt,Sn,mn,Mn,Un=Yt.shixunsDetail,ir=Yt.globalSetting,er=Yt.loading,Ar=Yt.user,Mr=Yt.dispatch,Qn=Object(g.a)(Yt,["shixunsDetail","globalSetting","loading","user","dispatch"]),Tr=Object(A.useRef)(),mr=Object(A.useState)(0),Gr=Object(de.a)(mr,2),Ir=Gr[0],qr=Gr[1],rr=Object(A.useState)([]),Gt=Object(de.a)(rr,2),Qt=Gt[0],Jt=Gt[1],zn=Object(A.useState)({id:null,page:1}),tr=Object(de.a)(zn,2),Ln=tr[0],ar=tr[1],ur=(dn=Ar.userInfo)===null||dn===void 0||((An=dn.shixun)===null||An===void 0)?void 0:An.editable,or=((qt=Ar.userInfo)===null||qt===void 0?void 0:qt.role)<=2||((Sn=Ar.userInfo)===null||Sn===void 0||((mn=Sn.shixun)===null||mn===void 0)?void 0:mn.is_creator);Object(A.useEffect)(function(){Tr.current=Qn.match.params.id,Ln.id=Tr.current,ar(Ln),Zr(Ln)},[]);var Zr=function(){var Ze=Object(r.a)(t.a.mark(function dt(yt){var nt;return t.a.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Xe.next=2,Mr({type:"shixunsDetail/getCollaboratorsData",payload:yt});case 2:nt=Xe.sent,nt&&(Jt(nt.members||[]),qr(nt.member_count));case 4:case"end":return Xe.stop()}},dt)}));return function(yt){return Ze.apply(this,arguments)}}(),sr=function(){var Ze=Object(r.a)(t.a.mark(function dt(){var yt;return t.a.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return Ln.page=1,ar(Ln),yt=Object(bn.b)(),Pe.next=5,Mr({type:"user/getUserInfo",payload:yt});case 5:return Pe.next=7,Zr(Ln);case 7:case"end":return Pe.stop()}},dt)}));return function(){return Ze.apply(this,arguments)}}(),la=function(dt){Ln.page=dt,ar(Ln),Zr(Ln)},Xr=function(dt){d.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:b.a.createElement("div",{className:Dt.a.modal},"\u786E\u5B9A\u8981\u5220\u9664\u5417\uFF1F"),onOk:function(){var yt=Object(r.a)(t.a.mark(function Pe(){var Xe,Ie;return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.next=2,Mr({type:"shixunsDetail/deleteCollaborators",payload:{id:Tr.current,userId:dt}});case 2:if(Ie=qe.sent,!(((Xe=Ar.userInfo)===null||Xe===void 0?void 0:Xe.user_id)===dt)){qe.next=6;break}return S.d.push("/shixuns"),qe.abrupt("return");case 6:f.b.info(Ie==null?void 0:Ie.message),Ln.page=1,ar(Ln),Zr(Ln);case 10:case"end":return qe.stop()}},Pe)}));function nt(){return yt.apply(this,arguments)}return nt}()})},gr=function(){Mr({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-ChangeManager",params:{id:Tr.current}}})};function Cr(Ze,dt,yt,nt){return Hr.apply(this,arguments)}function Hr(){return Hr=Object(r.a)(t.a.mark(function Ze(dt,yt,nt,Pe){return t.a.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return Ie.next=2,Mr({type:"shixunsDetail/updateCollaboratorEditable",payload:{identifier:dt,user_id:yt,editable:nt?0:1}});case 2:Zr(Ln);case 3:case"end":return Ie.stop()}},Ze)})),Hr.apply(this,arguments)}var Yr=function(){Mr({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:Tr.current}}})};function Oa(){Mr({type:"shixunsDetail/setActionTabs",payload:{}})}var va={visible:Un.actionTabs.key==="Collaborators-AddCollaborator",onCancel:Oa,shixunId:Tr.current,onSelectCollaborator:function(){var Ze=Object(r.a)(t.a.mark(function yt(nt){var Pe;return t.a.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return Oa(),Ie.next=3,Mr({type:"shixunsDetail/addCollaborator",payload:{id:Tr.current,user_ids:nt}});case 3:Pe=Ie.sent,Pe&&(f.b.success("\u6DFB\u52A0\u6210\u529F"),sr());case 5:case"end":return Ie.stop()}},yt)}));function dt(yt){return Ze.apply(this,arguments)}return dt}(),onSelectGroup:function(){var Ze=Object(r.a)(t.a.mark(function yt(nt){var Pe;return t.a.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return Oa(),Ie.next=3,Mr({type:"shixunsDetail/addTeachGroupMember",payload:{identifier:Tr.current,group_id:nt.group_id}});case 3:Pe=Ie.sent,Pe&&(f.b.success("\u6DFB\u52A0\u6210\u529F"),sr());case 5:case"end":return Ie.stop()}},yt)}));function dt(yt){return Ze.apply(this,arguments)}return dt}()};return b.a.createElement("section",null,b.a.createElement("div",{className:Dt.a.wrap},b.a.createElement("div",{className:Dt.a.content},((Mn=Un.detail)===null||Mn===void 0?void 0:Mn.identity)<5&&b.a.createElement("div",{className:Dt.a.head},b.a.createElement("span",{className:Dt.a.headCount},"\u5408\u4F5C\u6210\u5458\uFF08",Ir,"\u4EBA\uFF09"),b.a.createElement("div",null,or&&b.a.createElement(k.a,{type:"primary",ghost:!0,className:Dt.a.button,style:{marginRight:"20px"},onClick:gr},"\u66F4\u6362\u7BA1\u7406\u5458"),ur&&b.a.createElement(k.a,{type:"primary",className:Dt.a.button,style:{marginRight:"40px"},onClick:Yr},"\u6DFB\u52A0\u5408\u4F5C\u8005"))),b.a.createElement("div",{className:Dt.a.list},b.a.createElement(We.a,{loading:er.effects["shixunsDetail/getCollaboratorsData"],active:!0,avatar:{size:40},paragraph:{rows:3},className:"mt30"},Qt.map(function(Ze,dt){var yt,nt,Pe,Xe,Ie,$e,qe,pt;return b.a.createElement("div",{style:{display:"inline-block",width:"50%"}},b.a.createElement("div",{className:Dt.a.itemWrap,key:dt},b.a.createElement("a",{href:(yt=Ze.user)===null||yt===void 0?void 0:yt.user_url,target:"_blank",className:Dt.a.imgWrap},b.a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"48",width:"48",className:Dt.a.img,src:"".concat(we.a.IMG_SERVER,"/images/").concat((nt=Ze.user)===null||nt===void 0?void 0:nt.image_url)}),((Pe=Ze.user)===null||Pe===void 0?void 0:Pe.shixun_manager)&&b.a.createElement("span",{className:Dt.a.manager},"\u521B\u5EFA\u8005")),b.a.createElement("div",{className:Dt.a.itemContent},b.a.createElement("p",{className:Dt.a.nameWrap},b.a.createElement("a",{href:Ze.user.user_url,target:"_blank",className:Dt.a.name},(Xe=Ze.user)===null||Xe===void 0?void 0:Xe.name,Ze.user.user_id===((Ie=Ar.userInfo)===null||Ie===void 0?void 0:Ie.user_id)?b.a.createElement("span",null,"\u6211"):null),b.a.createElement("div",{className:Dt.a.actionGroup},or?($e=Ze.user)!==null&&$e!==void 0&&$e.shixun_manager?null:b.a.createElement(st.a,{overlay:b.a.createElement(Bt.a,{selectedKeys:[Ze.editable?"1":"2"],onClick:function(){var It;Cr(Un.detail.identifier,Ze.user.user_id,Ze.editable,(It=Ze.user)===null||It===void 0?void 0:It.name)}},b.a.createElement(Bt.a.Item,{key:1},"\u7F16\u8F91\u6743\u9650"),b.a.createElement(Bt.a.Item,{key:2},"\u67E5\u770B\u6743\u9650"))},b.a.createElement("div",null,Ze.editable?b.a.createElement("span",{style:{fontSize:"16px"},className:"c-grey-c"},"\u7F16\u8F91\u6743\u9650"):b.a.createElement("span",{style:{fontSize:"16px"},className:"c-grey-c"},"\u67E5\u770B\u6743\u9650")," ",b.a.createElement(Ht.a,{style:{fontSize:"14px",color:"#888888"}}))):Ze.editable?b.a.createElement("span",{style:{fontSize:"16px"},className:"c-grey-c"},"\u7F16\u8F91\u6743\u9650"):b.a.createElement("span",{style:{fontSize:"16px"},className:"c-grey-c"},"\u67E5\u770B\u6743\u9650"),!((qe=Ze.user)!==null&&qe!==void 0&&qe.shixun_manager)&&ur?b.a.createElement("a",{className:Dt.a.deletetitle,onClick:function(){var It;return Xr((It=Ze.user)===null||It===void 0?void 0:It.user_id)}},"\u5220\u9664"):null)),b.a.createElement("p",{className:Dt.a.schoolWrap},b.a.createElement("span",{className:Dt.a.school},(pt=Ze.user)===null||pt===void 0?void 0:pt.school_name)))))})))),Ir>10&&b.a.createElement("div",{className:Dt.a.countWrap},b.a.createElement(Ae.a,{showQuickJumper:!1,showSizeChanger:!1,total:Ir,onChange:function(dt){return la(dt)},pageSize:10,current:Ln.page}))),b.a.createElement(it,{onReloadData:sr}),b.a.createElement(jt,va))},Yn=Object(S.a)(function(xn){var Yt=xn.shixunsDetail,dn=xn.loading,An=xn.globalSetting,qt=xn.user;return{shixunsDetail:Yt,globalSetting:An,user:qt,loading:dn}})(Cn),qn=o("11/R"),Pn=o("Q9mQ"),cn=o("diRs"),xr=o("jrin"),wr=o("OaEy"),Rr=o("2fM7"),cr=o("ZW9T"),Ur=o("RCxd"),yr=o("4SAo"),sn=o.n(yr),Zt=K.a.TextArea,Tn=function(Yt){var dn=Yt.shixunsDetail,An=Yt.globalSetting,qt=Yt.loading,Sn=Yt.dispatch,mn=Yt.onFinish,Mn=mn===void 0?function(){}:mn,Un=Object(g.a)(Yt,["shixunsDetail","globalSetting","loading","dispatch","onFinish"]),ir=fe.a.useForm(),er=Object(de.a)(ir,1),Ar=er[0],Mr=function(){var Tr=Object(r.a)(t.a.mark(function mr(Gr){var Ir,qr;return t.a.wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:return Gt.next=2,Sn({type:"shixunsDetail/getCustomScript",payload:{id:(Ir=dn.actionTabs.params)===null||Ir===void 0?void 0:Ir.id,compile:Gr.execute,excutive:Gr.compile}});case 2:qr=Gt.sent,Qn(),qr&&Mn(qr==null?void 0:qr.shixun_script);case 5:case"end":return Gt.stop()}},mr)}));return function(Gr){return Tr.apply(this,arguments)}}(),Qn=function(){Sn({type:"shixunsDetail/setActionTabs",payload:{}})};return b.a.createElement(d.a,{centered:!0,title:"\u81EA\u5B9A\u4E49\u6A21\u677F",visible:dn.actionTabs.key==="Settings-UseCustomScript",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",footer:null,onCancel:Qn},b.a.createElement(fe.a,{form:Ar,scrollToFirstError:!0,layout:"vertical",onFinish:Mr},b.a.createElement(fe.a.Item,{name:"execute",label:"\u6267\u884C\u547D\u4EE4\uFF1A",rules:[{required:!0,message:"\u6267\u884C\u547D\u4EE4\u4E0D\u80FD\u4E3A\u7A7A"}]},b.a.createElement(Zt,{rows:4})),b.a.createElement(fe.a.Item,{name:"compile",label:"\u7F16\u8BD1\u547D\u4EE4\uFF1A"},b.a.createElement(Zt,{rows:4})),b.a.createElement("div",{className:sn.a.footerWrap},b.a.createElement(fe.a.Item,null,b.a.createElement(k.a,{className:"mr5",size:"large",onClick:Qn},"\u53D6\u6D88"),b.a.createElement(k.a,{size:"large",type:"primary",htmlType:"submit",loading:qt.effects["shixunsDetail/getCustomScript"]},"\u4FDD\u5B58")))))},jr=Object(S.a)(function(xn){var Yt=xn.shixunsDetail,dn=xn.loading,An=xn.globalSetting;return{shixunsDetail:Yt,globalSetting:An,loading:dn}})(Tn),jn=o("Lai7"),$n=o.n(jn),Wn=o("EGTK"),pe=o("UGPy"),V=o.n(pe),Z=o("FrRK"),oe=o("9Bee"),Ce=o("N3QO"),he=Rr.a.Option,ct=function(Yt){var dn,An,qt=Yt.practiceSetting,Sn=Yt.dispatch,mn=Yt.shixunsDetail,Mn=Yt.user,Un=Object(A.useState)(null),ir=Object(de.a)(Un,2),er=ir[0],Ar=ir[1],Mr=Object(A.useState)([]),Qn=Object(de.a)(Mr,2),Tr=Qn[0],mr=Qn[1],Gr=Object(A.useState)(!0),Ir=Object(de.a)(Gr,2),qr=Ir[0],rr=Ir[1],Gt=Object(A.useState)({}),Qt=Object(de.a)(Gt,2),Jt=Qt[0],zn=Qt[1],tr=Object(A.useState)([]),Ln=Object(de.a)(tr,2),ar=Ln[0],ur=Ln[1],or=Object(A.useState)(),Zr=Object(de.a)(or,2),sr=Zr[0],la=Zr[1],Xr=Object(A.useState)(),gr=Object(de.a)(Xr,2),Cr=gr[0],Hr=gr[1],Yr=Object(A.useState)([]),Oa=Object(de.a)(Yr,2),va=Oa[0],Ze=Oa[1],dt=Object(A.useState)({}),yt=Object(de.a)(dt,2),nt=yt[0],Pe=yt[1],Xe=Object(A.useRef)(null),Ie=Object(A.useRef)(!0),$e=Object(A.useRef)({activeId:null,selectId:null,serviceConfigList:null,evaluateScript:null,evaluationScript:null}),qe=Object(A.useRef)(null),pt=qt.id,rt=qt.is_published,It=nt.frequence_image,Vt=It===void 0?[]:It,fn=nt.environments,on=fn===void 0?[]:fn,un=nt.choice_small_type,ln=un===void 0?[]:un,Hn=nt.other_image,yn=Hn===void 0?[]:Hn,kr=Jt.name,Dr=Jt.description,Jr=Jt.authorization,Fr=Jt.small_type,ta=Fr===void 0?[]:Fr;Object(A.useEffect)(function(){if(er===null)return;Gn(),Xe.current.scrollTop=0},[er]),Object(A.useEffect)(function(){if(!pt)return;Sr()},[pt]),Object(A.useEffect)(function(){return er===null?void 0:(Kn(),function(){clearTimeout(qe.current)})},[er,Tr,ar,sr,Cr]);var Kn=function(){clearTimeout(qe.current),qe.current=setTimeout(function(){!Object(ie.isEqual)($e.current.activeId,er)||!Object(ie.isEqual)($e.current.selectId,Tr)||!Object(ie.isEqual)($e.current.serviceConfigList,ar)||!Object(ie.isEqual)($e.current.evaluateScript,sr)||!Object(ie.isEqual)($e.current.evaluationScript,Cr)?Sn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!0}}):Sn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})},500)},Sr=function(){var Or=Object(r.a)(t.a.mark(function vr(){var Pr,nr,da,ya;return t.a.wrap(function(Ta){for(;;)switch(Ta.prev=Ta.next){case 0:return rr(!0),Ta.next=3,Object(p.a)("/api/shixuns/".concat(pt,"/edit_environment_info.json"),{method:"get"});case 3:Pr=Ta.sent,Pr.status===0&&(Pe(Object(G.a)({},Pr.data)),rr(!1),Pr!=null&&(nr=Pr.data)!==null&&nr!==void 0&&nr.id?($e.current.activeId=Pr==null||((da=Pr.data)===null||da===void 0)?void 0:da.id,Ar(Pr==null||((ya=Pr.data)===null||ya===void 0)?void 0:ya.id)):Ar(null));case 5:case"end":return Ta.stop()}},vr)}));return function(){return Or.apply(this,arguments)}}(),Gn=function(){var Or=Object(r.a)(t.a.mark(function vr(){var Pr,nr,da,ya,_a;return t.a.wrap(function(ha){for(;;)switch(ha.prev=ha.next){case 0:return ha.next=2,Object(p.a)("/api/shixuns/".concat(pt,"/edit_environment_info.json"),{method:"get",params:{mirror_repository_id:er}});case 2:_a=ha.sent,zn(_a.data),$e.current.selectId=(Pr=_a.data)===null||Pr===void 0?void 0:Pr.choice_small_type,mr((nr=_a.data)===null||nr===void 0?void 0:nr.choice_small_type),$e.current.serviceConfigList=(da=_a.data)===null||da===void 0?void 0:da.shixun_service_configs,ur((ya=_a.data)===null||ya===void 0?void 0:ya.shixun_service_configs),$e.current.evaluateScript=_a.data.evaluate_script,la(_a.data.evaluate_script),$e.current.evaluationScript=_a.data.choice_standard_scripts,Hr(_a.data.choice_standard_scripts),Ze(_a.data.standard_scripts);case 13:case"end":return ha.stop()}},vr)}));return function(){return Or.apply(this,arguments)}}(),_n=function(){var vr,Pr=function(){S.d.push("/shixuns/".concat(pt,"/challenges")),Sn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};qt!=null&&(vr=qt.sideBar)!==null&&vr!==void 0&&vr.confirmLeave?d.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(){Pr()}}):Pr()},Bn=function(){var Or=Object(r.a)(t.a.mark(function vr(){var Pr,nr,da,ya=arguments;return t.a.wrap(function(Ta){for(;;)switch(Ta.prev=Ta.next){case 0:if(Pr=ya.length>0&&ya[0]!==void 0?ya[0]:!1,!Object(_t.b)(Sn,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883")){Ta.next=3;break}return Ta.abrupt("return");case 3:return nr={sub_type:Tr,main_type:er,shixun:{mirror_script_id:Cr},shixun_info:{evaluate_script:sr},shixun_service_configs:ar.map(function(ha){return{mirror_repository_id:ha.mirror_repository_id,cpu_limit:ha.cpu_limit,lower_cpu_limit:ha.lower_cpu_limit,memory_limit:ha.memory_limit,request_limit:ha.request_limit,resource_limit:ha.resource_limit}})},Ta.next=6,Object(p.a)("/api/shixuns/".concat(pt),{method:"put",body:nr});case 6:da=Ta.sent,da.status===0&&(f.b.success("\u7F16\u8F91\u6210\u529F"),$e.current={activeId:er,selectId:Tr,serviceConfigList:ar,evaluateScript:sr,evaluationScript:Cr},Sn({type:"practiceSetting/getCommonData",payload:{id:pt}}),Sn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}));case 8:case"end":return Ta.stop()}},vr)}));return function(){return Or.apply(this,arguments)}}(),zr=ta.filter(function(Or){return Tr.includes(Or.id)}),sa=function(){_n()},fr=function(vr,Pr,nr){var da=ar.map(function(ya,_a){return _a===nr?Object(G.a)(Object(G.a)({},ya),{},Object(xr.a)({},Pr,vr)):ya});ur(da)},ra=function(){if(Object(_t.b)(Sn,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883"))return;Sn({type:"shixunsDetail/setActionTabs",payload:{key:"Settings-UseCustomScript",params:{id:pt}}})},Ea=function(){var Or=Object(r.a)(t.a.mark(function vr(Pr){var nr;return t.a.wrap(function(ya){for(;;)switch(ya.prev=ya.next){case 0:return ya.next=2,Sn({type:"shixunsDetail/getScriptContent",payload:{id:pt,script_id:Pr}});case 2:nr=ya.sent,nr&&la(nr.content);case 4:case"end":return ya.stop()}},vr)}));return function(Pr){return Or.apply(this,arguments)}}(),ca=function(vr){d.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:b.a.createElement("div",{className:"tc font16"},"\u539F\u6709\u811A\u672C\u5C06\u88AB\u65B0\u7684\u811A\u672C\u8986\u76D6\uFF0C\u65E0\u6CD5\u64A4\u9500",b.a.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u6267\u884C\u8986\u76D6\u64CD\u4F5C"),onOk:function(){var Pr=Object(r.a)(t.a.mark(function da(){return t.a.wrap(function(_a){for(;;)switch(_a.prev=_a.next){case 0:return _a.next=2,Ea(vr);case 2:d.a.info({centered:!0,title:"\u63D0\u793A",okText:"\u77E5\u9053\u5566",content:b.a.createElement("div",{className:"tc font16"},"\u8BC4\u6D4B\u811A\u672C\u751F\u6210\u6210\u529F\uFF01")});case 3:case"end":return _a.stop()}},da)}));function nr(){return Pr.apply(this,arguments)}return nr}()})},xa=function(vr,Pr){var nr=ar[0]?[ar[0]]:[];Pr.forEach(function(da){var ya=ar.find(function(ha){return ha.mirror_repository_id===Number(da.key)});if(ya)nr.push(ya);else{var _a=ta.find(function(ha){return ha.id===Number(da.key)});if(_a.mirror_name){var Ta={cpu_limit:1,lower_cpu_limit:.1,memory_limit:1024,mirror_repository_id:Number(da.key),name:_a.mirror_name,request_limit:10};nr.push(Ta)}}}),ur(nr),mr(vr)};return b.a.createElement("div",{className:V.a.practice},b.a.createElement(Wn.a,{loading:qr,skin:"night",className:V.a.left,dispatch:Sn,value:er,data:on,otherData:yn,tags:Vt,onChange:function(vr){return Ar(vr)}}),b.a.createElement("div",{className:V.a.right},b.a.createElement("header",null,b.a.createElement("div",{className:V.a.title},"\u5B9E\u9A8C\u73AF\u5883:\xA0",er===null?"\u2014 \u2014":kr)),b.a.createElement("div",{className:V.a.content,ref:Xe},er===null&&b.a.createElement(xt.a,{image:$n.a,description:"\u8BF7\u9009\u62E9\u5B9E\u9A8C\u73AF\u5883"}),er!==null&&b.a.createElement("div",{className:V.a.des},b.a.createElement("div",{className:V.a.mainBody},b.a.createElement(oe.a,{value:Dr})),b.a.createElement("div",{className:V.a.title},"\u9644\u5E26\u73AF\u5883"),b.a.createElement("div",{className:V.a.selectBox},b.a.createElement(Rr.a,{onChange:function(vr,Pr){return xa(vr,Pr)},getPopupContainer:function(vr){return vr.parentNode},mode:"multiple",bordered:!1,value:Tr,optionFilterProp:"children",placeholder:"\u8BF7\u9009\u62E9\u9644\u5E26\u73AF\u5883",style:{width:400},maxTagCount:6},ta.map(function(Or,vr){return b.a.createElement(he,{key:Or.id,value:Or.id},Or.type_name)})),b.a.createElement("div",{className:V.a.smallType},zr.map(function(Or){return Or.description?b.a.createElement("span",{key:Or.id},Or.description):null}))),!(mn!=null&&(dn=mn.detail)!==null&&dn!==void 0&&dn.is_jupyter_lab)&&b.a.createElement(b.a.Fragment,null,b.a.createElement("div",{className:V.a.title},"\u8BC4\u6D4B\u811A\u672C"),b.a.createElement("div",{className:V.a.evaluating},b.a.createElement("div",{className:V.a.evaluatingLabel},rt&&b.a.createElement("div",{onClick:function(){if(Object(_t.b)(Sn,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883"))return},className:V.a.mask}),b.a.createElement(Rr.a,{style:{width:400},bordered:!1,getPopupContainer:function(vr){return vr.parentNode},value:Cr,placeholder:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u811A\u672C",onChange:function(vr){ca(vr),Hr(vr)}},(va||[]).map(function(Or,vr){return b.a.createElement(he,{value:parseInt(Or.id),name:Or.scptname,key:vr},Or.scptname)})),b.a.createElement("span",{className:V.a.evaluatingS1,onClick:ra},"\u4F7F\u7528\u81EA\u5B9A\u4E49\u811A\u672C"),b.a.createElement(cn.a,{overlayClassName:V.a.popover,placement:"bottomLeft",content:b.a.createElement("p",{className:"font12"},"\u4F7F\u7528\u81EA\u5B9A\u4E49\u6A21\u677F\uFF0C\u5E73\u53F0\u65E0\u6CD5\u81EA\u52A8\u66F4\u65B0\u811A\u672C\uFF0C\u8BF7\u5728\u5173\u5361\u521B\u5EFA\u5B8C\u540E\u624B\u52A8\u66F4\u65B0\u811A\u672C\u4E2D\u7684\u5FC5\u586B\u53C2",b.a.createElement("br",null),"\u6570\u548C\u4EE5\u4E0B2\u4E2A\u6570\u7EC4\u5143\u7D20\uFF1A",b.a.createElement("br",null),"challengeProgramNames",b.a.createElement("br",null),"sourceClassNames",b.a.createElement("br",null),b.a.createElement("br",null),"\u793A\u4F8B\uFF1A\u67092\u4E2A\u5173\u5361\u7684\u5B9E\u8BAD",b.a.createElement("br",null),b.a.createElement("br",null),"\u5404\u5173\u5361\u7684\u5F85\u7F16\u8BD1\u6587\u4EF6\u4E3A\uFF1A",b.a.createElement("br",null),"src/step1/HelloWorld.java",b.a.createElement("br",null),"src/step2/Other.java",b.a.createElement("br",null),b.a.createElement("br",null),"\u5404\u5173\u5361\u7684\u7F16\u8BD1\u540E\u751F\u6210\u7684\u6267\u884C\u6587\u4EF6\u4E3A\uFF1A",b.a.createElement("br",null),"step1.HelloWorld",b.a.createElement("br",null),"step2.Other",b.a.createElement("br",null),b.a.createElement("br",null),"\u5219\u6570\u7EC4\u5143\u7D20\u66F4\u65B0\u5982\u4E0B\uFF1A",b.a.createElement("br",null),'ff challengeProgramNames=("src/step1/',b.a.createElement("br",null),'HelloWorld.java" "src/step2/Other.java")',b.a.createElement("br",null),'sourceClassNames=("step1.HelloWorld',b.a.createElement("br",null),'" "step2.Other")',b.a.createElement("br",null),b.a.createElement("br",null),"\u5176\u5B83\u53C2\u6570\u53EF\u6309\u5B9E\u9645\u9700\u6C42\u5B9A\u5236"),trigger:"click"},b.a.createElement("span",{style:{marginTop:"2px"},className:"ml10 current font14"},b.a.createElement(Ur.a,null)))),b.a.createElement(cr.b,{width:"90%",height:450,style:{border:"1px solid #ccc",background:"#f5f5f5",marginTop:"20px"},language:"shell",theme:"vs-light",value:sr,onChange:function(vr){if(Ie.current){Ie.current=!1;return}la(vr),Object(_t.b)(Sn,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883")&&setTimeout(function(){Ie.current=!0,la($e.current.evaluateScript)},200)}}))),((An=mn.detail)===null||An===void 0?void 0:An.identity)<3&&!!ar.length&&b.a.createElement(b.a.Fragment,null,b.a.createElement("div",{className:V.a.title},"\u670D\u52A1\u914D\u7F6E"),b.a.createElement("div",{className:V.a.serviceSettingWrap},ar==null?void 0:ar.map(function(Or,vr){return b.a.createElement("div",{key:vr,className:"mb30"},b.a.createElement("div",null,b.a.createElement("span",{className:"font16"},Or.name)),b.a.createElement("div",{className:V.a.serviceBox},b.a.createElement("label",{className:V.a.serviceSetLeft},"CPU(\u6838)\uFF1A"),b.a.createElement(K.a,{className:V.a.serviceSetInput,value:Or.cpu_limit,disabled:rt,onChange:function(nr){return fr(nr.target.value,"cpu_limit",vr)}})),b.a.createElement("div",{className:V.a.serviceBox},b.a.createElement("label",{className:V.a.serviceSetLeft},"\u6700\u4F4ECPU(\u6838)\uFF1A"),b.a.createElement(K.a,{className:V.a.serviceSetInput,value:Or.lower_cpu_limit,disabled:rt,onChange:function(nr){return fr(nr.target.value,"lower_cpu_limit",vr)}})),b.a.createElement("div",{className:V.a.serviceBox},b.a.createElement("label",{className:V.a.serviceSetLeft},"\u5185\u5B58\u9650\u5236(M)\uFF1A"),b.a.createElement(K.a,{className:V.a.serviceSetInput,value:Or.memory_limit,disabled:rt,onChange:function(nr){return fr(nr.target.value,"memory_limit",vr)}})),b.a.createElement("div",{className:V.a.serviceBox},b.a.createElement("label",{className:V.a.serviceSetLeft},"\u5185\u5B58\u8981\u6C42(M)\uFF1A"),b.a.createElement(K.a,{className:V.a.serviceSetInput,value:Or.request_limit,style:{width:300},disabled:rt,onChange:function(nr){return fr(nr.target.value,"request_limit",vr)}}),b.a.createElement("label",{className:V.a.serviceSetTip},"\u6E29\u99A8\u63D0\u793A\uFF1A\u7EAF\u7F16\u7A0B\u7C7B\u578B\u5B9E\u8BAD\u5EFA\u8BAE\u4F7F\u7528\u9ED8\u8BA4\u503C\uFF0C\u5BF9\u4E8E\u5927\u6570\u636E\u7B49\u5EFA\u8BAE\u4F7F\u7528\u6700\u5927\u5185\u5B58\u768430%")),b.a.createElement("div",{className:V.a.serviceBox},b.a.createElement("label",{className:V.a.serviceSetLeft},"\u78C1\u76D8\u9650\u5236(K)\uFF1A"),b.a.createElement(K.a,{className:V.a.serviceSetInput,value:Or.resource_limit,style:{width:300},disabled:rt,maxLength:8,onChange:function(nr){var da=nr.target.value,ya=/^\d*(\.\d*)?$/;da.match(ya)&&fr(nr.target.value,"resource_limit",vr)}})))}))))),b.a.createElement("div",{className:V.a.btns},b.a.createElement(k.a,{size:"large",style:{marginRight:20},onClick:sa},"\u53D6\u6D88"),b.a.createElement(k.a,{size:"large",type:"primary",disabled:er===null,onClick:function(){return Bn()}},"\u4FDD\u5B58"))),b.a.createElement(Z.a,null),b.a.createElement(jr,{onFinish:function(vr){return la(vr)}}),b.a.createElement(Ce.a,null))},rn=Object(S.a)(function(xn){var Yt=xn.practiceSetting,dn=xn.globalSetting,An=xn.shixunsDetail,qt=xn.user;return{practiceSetting:Yt,globalSetting:dn,shixunsDetail:An,user:qt}})(ct),In=o("g9YV"),Vn=o("wCAj"),tn=o("5Dmo"),En=o("3S7+"),Xn=o("P5Jw"),$r=o("wd/R"),ga=o.n($r),pa=o("3d99"),dr=o.n(pa),za=o("Lf5v"),ja=o("xKgJ"),Ra=o("lzim"),Ha=b.a.Fragment,Sa=function(Yt){var dn,An,qt,Sn,mn=Yt.globalSetting,Mn=Yt.dispatch,Un=Yt.practiceSetting,ir=Yt.shixunsDetail,er=Yt.user,Ar=Object(g.a)(Yt,["globalSetting","dispatch","practiceSetting","shixunsDetail","user"]),Mr=Un.id,Qn=Object(A.useState)([]),Tr=Object(de.a)(Qn,2),mr=Tr[0],Gr=Tr[1],Ir=Object(A.useState)({}),qr=Object(de.a)(Ir,2),rr=qr[0],Gt=qr[1],Qt=Object(A.useState)(!1),Jt=Object(de.a)(Qt,2),zn=Jt[0],tr=Jt[1],Ln=Object(A.useState)(!0),ar=Object(de.a)(Ln,2),ur=ar[0],or=ar[1],Zr=Object(A.useState)(!1),sr=Object(de.a)(Zr,2),la=sr[0],Xr=sr[1],gr=Object(A.useState)(!1),Cr=Object(de.a)(gr,2),Hr=Cr[0],Yr=Cr[1],Oa=Object(A.useState)([]),va=Object(de.a)(Oa,2),Ze=va[0],dt=va[1],yt=Object(A.useState)(!1),nt=Object(de.a)(yt,2),Pe=nt[0],Xe=nt[1],Ie=Object(A.useState)({}),$e=Object(de.a)(Ie,2),qe=$e[0],pt=$e[1],rt=Object(A.useState)({page:1,limit:10,total:0}),It=Object(de.a)(rt,2),Vt=It[0],fn=It[1];Object(A.useEffect)(function(){if(!Mr)return;un()},[Mr]);var on=function(Sr){var Gn=Object(G.a)(Object(G.a)({},Vt),{},{page:Sr});dt([]),fn(Gn),un(Gn)},un=function(){var Kn=Object(r.a)(t.a.mark(function Sr(Gn){var _n,Bn,zr;return t.a.wrap(function(fr){for(;;)switch(fr.prev=fr.next){case 0:return _n={page:1,limit:10,total:0},Bn=Gn||_n,tr(!0),fr.next=5,Mn({type:"shixunsDetail/getSetData",payload:Object(G.a)(Object(G.a)({},Bn),{},{id:Mr})});case 5:zr=fr.sent,zr!=null&&zr.data_sets&&(tr(!1),Gr(Object(be.a)(zr.data_sets)),fn(Object(G.a)(Object(G.a)({},Bn),{},{total:zr==null?void 0:zr.data_sets_count})),or(!1),Gt(Object(G.a)({},zr)));case 7:case"end":return fr.stop()}},Sr)}));return function(Gn){return Kn.apply(this,arguments)}}(),ln=function(){return b.a.createElement("div",{className:dr.a.empty},b.a.createElement("img",{src:Ra.j,width:"258"}),b.a.createElement("span",{className:"c-grey-c"},"\u6682\u65E0\u6570\u636E\u96C6\u6587\u4EF6~"))},Hn=function(Sr){console.log("selectedRowKeys changed: ",Sr),dt(Sr)},yn={selectedRowKeys:Ze,columnWidth:70,onChange:Hn},kr=function(Sr){Object(i.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5220\u9664"]);var Gn=Sr?[Sr]:Ze;d.a.confirm({centered:!0,title:"\u786E\u5B9A\u8981\u5220\u9664\u6587\u4EF6\u5417\uFF1F",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){var _n=Object(r.a)(t.a.mark(function zr(){var sa,fr;return t.a.wrap(function(Ea){for(;;)switch(Ea.prev=Ea.next){case 0:return Ea.next=2,Object(p.a)("/api/shixuns/".concat(Mr,"/destroy_data_sets.json"),{method:"Delete",body:{id:Gn}});case 2:sa=Ea.sent,sa.status===0&&(fr=Gn.length===mr.length&&Vt.page>1?Vt.page-1:Vt.page,f.b.success("\u5220\u9664\u6210\u529F"),un(Object(G.a)(Object(G.a)({},Vt),{},{page:fr})),dt([]));case 4:case"end":return Ea.stop()}},zr)}));function Bn(){return _n.apply(this,arguments)}return Bn}()})},Dr=function(){var Kn=Object(r.a)(t.a.mark(function Sr(){var Gn,_n,Bn,zr,sa;return t.a.wrap(function(ra){for(;;)switch(ra.prev=ra.next){case 0:if(Gn=qe.title,_n=null,console.log(Gn,"title"),!(Gn==="")){ra.next=7;break}return _n="\u6587\u4EF6\u540D\u4E0D\u80FD\u4E3A\u7A7A",pt(Object(G.a)(Object(G.a)({},qe),{},{errorDes:_n})),ra.abrupt("return");case 7:if(Bn=mr.find(function(Ea){return Ea.id===(qe==null?void 0:qe.id)}).title,!(Gn===Bn.substring(0,Bn.lastIndexOf("."))||Gn===Bn)){ra.next=12;break}return _n="\u6587\u4EF6\u540D\u4E0D\u80FD\u91CD\u540D",pt(Object(G.a)(Object(G.a)({},qe),{},{errorDes:_n})),ra.abrupt("return");case 12:return zr=Bn.includes(".")?Bn.substring(Bn.lastIndexOf("."),Bn.length):"",ra.next=15,Object(p.a)("/api/shixuns/".concat(Mr,"/rename_data_sets.json"),{method:"post",body:{id:qe==null?void 0:qe.id,new_file_name:Gn+zr}});case 15:sa=ra.sent,sa.status===0&&(f.b.success("\u91CD\u547D\u540D\u6210\u529F"),un(Vt),Xr(!1),pt({}));case 17:case"end":return ra.stop()}},Sr)}));return function(){return Kn.apply(this,arguments)}}(),Jr=function(){var Sr=qe.download_url;Fr(Sr),f.b.success("\u590D\u5236\u6210\u529F"),Yr(!1),pt({})},Fr=function(Sr){var Gn=Sr,_n=document.createElement("input");_n.value=Gn,document.body.appendChild(_n),_n.select(),document.execCommand("Copy"),_n.style.display="none"},ta=[{title:"\u6587\u4EF6",dataIndex:"title",key:"title",align:"left",ellipsis:!0,render:function(Sr){return b.a.createElement(En.a,{title:Sr},b.a.createElement("span",null,Sr))}},{title:"\u5907\u6CE8",dataIndex:"description",key:"description",align:"left",ellipsis:!0,render:function(Sr){return b.a.createElement(En.a,{title:Sr},b.a.createElement("span",null,Sr||"--"))}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_on",key:"created_on",align:"left",width:180,render:function(Sr,Gn){return ga()(Gn.created_on).format("YYYY-MM-DD HH:mm")}},{title:"\u6587\u4EF6\u8DEF\u5F84",dataIndex:"file_path",key:"file_path",align:"left",render:function(Sr,Gn){return b.a.createElement("div",{className:dr.a.path},b.a.createElement(En.a,{title:Sr},b.a.createElement("span",{className:dr.a.text},Sr)),b.a.createElement(Xn.CopyToClipboard,{text:Sr,onCopy:function(){return f.b.success("\u590D\u5236\u6210\u529F")}},b.a.createElement(En.a,{title:"\u590D\u5236"},b.a.createElement("i",{className:"iconfont icon-fuzhi6 ml5"}))))}},{title:"\u6700\u540E\u4FEE\u6539\u4EBA",dataIndex:"author",key:"author",align:"left",width:120},{title:"\u6587\u4EF6\u5927\u5C0F",dataIndex:"filesize",key:"filesize",align:"left",width:100},{title:"\u64CD\u4F5C",dataIndex:"operation",key:"operation",align:"left",width:Object(ja.v)()?200:120,render:function(Sr,Gn){return b.a.createElement("div",{className:dr.a.actionsBtns},b.a.createElement(En.a,{title:"\u91CD\u547D\u540D"},b.a.createElement("span",{className:"iconfont icon-zhongmingming",onClick:function(){var Bn;pt(Object(ie.clone)(Object(G.a)(Object(G.a)({},Gn),{},{title:Gn!=null&&Gn.title.includes(".")?Gn==null||((Bn=Gn.title)===null||Bn===void 0)?void 0:Bn.substring(0,Gn.title.lastIndexOf(".")):Gn==null?void 0:Gn.title}))),Xr(!0),Object(i.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u91CD\u547D\u540D"])}})),Object(ja.v)()&&b.a.createElement(En.a,{title:"\u5206\u4EAB"},b.a.createElement("span",{className:"iconfont icon-fenxiang",onClick:function(){Object(i.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5206\u4EAB"]),pt(Object(ie.clone)(Gn)),Yr(!0)}})),Object(ja.v)()&&b.a.createElement(En.a,{title:"\u4E0B\u8F7D"},b.a.createElement("span",{className:"iconfont icon-xiazai3",onClick:function(){Object(i.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u4E0B\u8F7D"]),Object(i.x)(Gn.title,Gn==null?void 0:Gn.download_url)}})),b.a.createElement(En.a,{title:"\u5220\u9664"},b.a.createElement("span",{className:"iconfont icon-shanchu8",onClick:function(){Object(i.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5220\u9664"]),kr(Gn.id)}})))}}];return b.a.createElement("div",{className:dr.a.dataset},b.a.createElement("div",{className:dr.a.header},b.a.createElement("div",{className:dr.a.title},"\u6570\u636E\u96C6(",Vt.total,")"),b.a.createElement("div",{className:dr.a.dataPath},b.a.createElement("span",{className:dr.a.pathTitle},"\u6570\u636E\u96C6\u8DEF\u5F84:"),b.a.createElement("input",{value:rr==null?void 0:rr.folder_name,disabled:!0}),b.a.createElement(Xn.CopyToClipboard,{text:rr==null?void 0:rr.folder_name,onCopy:function(){return f.b.success("\u590D\u5236\u6210\u529F")}},b.a.createElement(En.a,{placement:"topLeft",title:"\u70B9\u51FB\u590D\u5236\u6570\u636E\u96C6\u8DEF\u5F84"},b.a.createElement("i",{className:"iconfont icon-fuzhi2 current ml5 mr40"})))),b.a.createElement("div",{className:dr.a.btns},b.a.createElement(k.a,{type:"primary",ghost:!0,onClick:function(){return kr()},disabled:!Ze.length},"\u5220\u9664"),b.a.createElement(k.a,{type:"primary",onClick:function(){return Xe(!0)}},"\u4E0A\u4F20\u6587\u4EF6"))),b.a.createElement("div",{className:dr.a.content},b.a.createElement(We.a,{loading:ur,active:!0,paragraph:{rows:5}},Vt.total?b.a.createElement(Vn.a,{rowSelection:yn,className:dr.a.customTable,dataSource:mr,bordered:!1,rowKey:function(Sr){return Sr.id},rowClassName:dr.a.row,columns:ta,loading:zn,pagination:{pageSize:Vt.limit,total:Vt.total,current:Vt.page,onChange:on,showQuickJumper:!0,hideOnSinglePage:!0,position:["bottomCenter"]}}):ln())),b.a.createElement(za.a,{rootIdentifier:ir==null||((dn=ir.detail)===null||dn===void 0)?void 0:dn.root_identifier,wrapClassName:dr.a.uploadFileModal,id:Mr,containerId:ir==null||((An=ir.detail)===null||An===void 0)?void 0:An.id,local:mn==null||((qt=mn.setting)===null||qt===void 0)?void 0:qt.is_local,dispatch:Mn,visible:Pe,onClose:function(){return Xe(!1)},onOK:un}),b.a.createElement(d.a,{title:"\u91CD\u547D\u540D",visible:la,onOk:Dr,centered:!0,wrapClassName:dr.a.renameModal,onCancel:function(){Xr(!1),pt({})},width:"1000px"},b.a.createElement("div",null,b.a.createElement("div",{className:dr.a.fileName},b.a.createElement("sup",null,"*"),"\u6587\u4EF6\u540D\xA0:"),b.a.createElement(K.a,{value:qe==null?void 0:qe.title,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u5B57",bordered:!1,onChange:function(Sr){pt(Object(G.a)(Object(G.a)({},qe),{},{title:Sr.target.value,errorDes:null}))},maxLength:60,suffix:"".concat((qe==null||((Sn=qe.title)===null||Sn===void 0)?void 0:Sn.length)||0,"/60")}),(qe==null?void 0:qe.errorDes)&&b.a.createElement("div",{className:dr.a.errorDes},qe==null?void 0:qe.errorDes))),b.a.createElement(d.a,{title:"\u5206\u4EAB\u4E0B\u8F7D\u94FE\u63A5",visible:Hr,onOk:Jr,centered:!0,wrapClassName:dr.a.shareModal,onCancel:function(){Yr(!1),pt({})},width:"1000px",okText:"\u590D\u5236\u94FE\u63A5"},b.a.createElement("div",null,b.a.createElement("div",{className:dr.a.fileName},"\u53D1\u9001\u94FE\u63A5\uFF0C\u522B\u4EBA\u53EF\u4EE5\u901A\u8FC7\u94FE\u63A5\u4E0B\u8F7D\u6587\u4EF6",b.a.createElement("span",null,"(\u6709\u6548\u671F\u4E3A3\u5929)")),b.a.createElement(K.a,{bordered:!1,addonBefore:"\u94FE\u63A5",value:qe==null?void 0:qe.download_url}))))},Ja=Object(S.a)(function(xn){var Yt=xn.globalSetting,dn=xn.shixunsDetail,An=xn.practiceSetting,qt=xn.user;return{globalSetting:Yt,shixunsDetail:dn,user:qt,practiceSetting:An}})(Sa),ka=o("aHsQ"),li=o("sGsY"),oi=o("fKo2"),ua=o.n(oi),fa=o("BMKw"),oa=o.n(fa),ye=function(Yt){return Yt!=null&&Yt.length?Yt.filter(function(dn,An){return An!==0}).map(function(dn){return dn.val}).join("").substr(1):""},lt=function(Yt){var dn=Yt.shixunsDetail,An=Yt.globalSetting,qt=Yt.loading,Sn=Yt.dispatch,mn=Yt.fileType,Mn=Yt.path,Un=Yt.onFinish,ir=Un===void 0?function(){}:Un,er=Object(O.i)(),Ar=Object(A.useState)(""),Mr=Object(de.a)(Ar,2),Qn=Mr[0],Tr=Mr[1],mr=Object(A.useState)([]),Gr=Object(de.a)(mr,2),Ir=Gr[0],qr=Gr[1],rr=Object(A.useState)([]),Gt=Object(de.a)(rr,2),Qt=Gt[0],Jt=Gt[1],zn=[Xt.OriginalPicturePath,Xt.ExpectPicturePath,Xt.PicturePath],tr=zn.includes(mn);Object(A.useEffect)(function(){if(dn.actionTabs.key!=="EditPracticeSetting-SelectFilePath")return;Tr(Mn||""),Ln()},[dn.actionTabs.key]);var Ln=function(){var Xr=Object(r.a)(t.a.mark(function gr(){var Cr,Hr,Yr,Oa,va=arguments;return t.a.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:return Hr=va.length>0&&va[0]!==void 0?va[0]:"",dt.next=3,Sn({type:"shixunsDetail/getRepository",payload:{id:er.id,path:Hr}});case 3:Yr=dt.sent,Hr===""&&!(Yr!=null&&(Cr=Yr.trees)!==null&&Cr!==void 0&&Cr.length)&&f.b.warn("\u8BF7\u5148\u53BB\u4EE3\u7801\u4ED3\u5E93\u63D0\u4EA4\u6587\u4EF6"),Yr!=null&&Yr.trees&&(Oa=Yr.trees.map(function(yt){return Object(G.a)(Object(G.a)({},yt),{name:yt.name,val:yt.name})}),Jt(Oa||[]));case 6:case"end":return dt.stop()}},gr)}));return function(){return Xr.apply(this,arguments)}}(),ar=function(gr){var Cr=ye(Ir),Hr="".concat(Cr&&"".concat(Cr,"/")).concat(gr);mn===Xt.Path?!(Qn!=null&&Qn.includes("".concat(Hr,"\uFF1B")))&&Tr("".concat(Qn).concat(Hr,"\uFF1B")):mn===Xt.ExecPath&&Tr(Hr)},ur=function(gr){if(gr.type==="tree"){Ir.length?Ir.push({val:"/".concat(gr.val),path:gr.val}):Ir.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(gr.val),path:gr.val}),qr(Ir);var Cr=ye(Ir);tr&&Tr(Cr),Ln(Cr)}},or=function(gr,Cr){var Hr=Ir.filter(function(Oa,va){return va<=Cr});qr(Hr);var Yr=ye(Hr);tr&&Tr(Yr),Ln(Yr)},Zr=function(){var Xr=Object(r.a)(t.a.mark(function gr(){return t.a.wrap(function(Hr){for(;;)switch(Hr.prev=Hr.next){case 0:ir(Qn),sr();case 2:case"end":return Hr.stop()}},gr)}));return function(){return Xr.apply(this,arguments)}}(),sr=function(){Tr(""),qr([]),Jt([]),Sn({type:"shixunsDetail/setActionTabs",payload:{}})},la=ye(Ir);return b.a.createElement(d.a,{centered:!0,title:"\u6587\u4EF6\u8DEF\u5F84",closable:!1,keyboard:!1,visible:dn.actionTabs.key==="EditPracticeSetting-SelectFilePath",onOk:Zr,onCancel:sr},b.a.createElement("div",{className:oa.a.wrap},b.a.createElement("div",{className:oa.a.content},b.a.createElement("div",{className:oa.a.mainPathWrap},!!(Ir!=null&&Ir.length)&&Ir.map(function(Xr,gr){return b.a.createElement("a",{key:gr,onClick:function(){return or(Xr,gr)}},Xr.val)})),!!(Qt!=null&&Qt.length)&&Qt.map(function(Xr,gr){return Xr.type==="tree"?b.a.createElement("a",{key:gr,onClick:function(){return ur(Xr)}},b.a.createElement("i",{className:"iconfont icon-wenjianjia ".concat(oa.a.colorBlue)}),la&&"".concat(la,"/"),Xr.name):b.a.createElement("a",{key:gr,onClick:function(){return ar("".concat(Xr.name))}},b.a.createElement("i",{className:"iconfont icon-zuoye ".concat(oa.a.colorBlue)}),la&&"".concat(la,"/"),Xr.name)})),b.a.createElement("label",{className:"mt5"},"\u9009\u4E2D\u7684\u65B0\u5EFA\u6587\u4EF6\u5939\u76EE\u5F55\uFF1A"),b.a.createElement(K.a,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u6587\u4EF6\u5939\u540D/\u5B50\u6587\u4EF6\u5939\u540D\u3002\uFF08\u5982\uFF1Asrc/step1\uFF09",value:Qn,onChange:function(gr){return Tr(gr.target.value)}})))},Mt=Object(S.a)(function(xn){var Yt=xn.shixunsDetail,dn=xn.loading,An=xn.globalSetting;return{shixunsDetail:Yt,globalSetting:An,loading:dn.models.index}})(lt),wt=o("dhSg"),Wt=li.a.Countdown,Lt;(function(xn){xn[xn.LoadingFail=1]="LoadingFail",xn[xn.Loading=2]="Loading",xn[xn.Finish=3]="Finish"})(Lt||(Lt={}));var Xt;(function(xn){xn.Path="path",xn.ExecPath="exec_path",xn.OriginalPicturePath="original_picture_path",xn.ExpectPicturePath="expect_picture_path",xn.PicturePath="picture_path"})(Xt||(Xt={}));var en=function(Yt){var dn=Yt.globalSetting,An=Yt.loading,qt=Yt.dispatch,Sn=Yt.practiceSetting,mn=Yt.shixunsDetail,Mn=Object(g.a)(Yt,["globalSetting","loading","dispatch","practiceSetting","shixunsDetail"]),Un=Object(A.useState)(),ir=Object(de.a)(Un,2),er=ir[0],Ar=ir[1],Mr=Object(A.useState)(),Qn=Object(de.a)(Mr,2),Tr=Qn[0],mr=Qn[1],Gr=Object(A.useRef)(),Ir=Object(A.useState)(),qr=Object(de.a)(Ir,2),rr=qr[0],Gt=qr[1],Qt=Object(A.useState)(),Jt=Object(de.a)(Qt,2),zn=Jt[0],tr=Jt[1],Ln=Object(A.useState)(),ar=Object(de.a)(Ln,2),ur=ar[0],or=ar[1],Zr=Object(A.useRef)(!0),sr=Object(A.useState)(!0),la=Object(de.a)(sr,2),Xr=la[0],gr=la[1],Cr=Object(A.useState)(700),Hr=Object(de.a)(Cr,2),Yr=Hr[0],Oa=Hr[1],va=Object(A.useState)(""),Ze=Object(de.a)(va,2),dt=Ze[0],yt=Ze[1],nt=Object(A.useRef)(),Pe=Object(O.i)();Object(A.useEffect)(function(){Ie()},[]);var Xe=function(){var on=Object(r.a)(t.a.mark(function un(){var ln,Hn,yn;return t.a.wrap(function(Dr){for(;;)switch(Dr.prev=Dr.next){case 0:return Dr.next=2,qt({type:"shixunsDetail/updateRepositoryFile",payload:{id:Pe.id,path:mn==null||((ln=mn.fileContent)===null||ln===void 0||((Hn=ln.params)===null||Hn===void 0))?void 0:Hn.path,content:er,secret_repository:Xr?null:!0}});case 2:yn=Dr.sent,yn!=null&&yn.content&&(f.b.info("\u4FDD\u5B58\u6210\u529F"),qt({type:"practiceSetting/setSideBarTabs",payload:Object(G.a)(Object(G.a)({},Sn.sideBar),{},{confirmLeave:!1})}));case 4:case"end":return Dr.stop()}},un)}));return function(){return on.apply(this,arguments)}}(),Ie=function(){var on=Object(r.a)(t.a.mark(function un(){var ln,Hn,yn,kr,Dr;return t.a.wrap(function(Fr){for(;;)switch(Fr.prev=Fr.next){case 0:return Fr.next=2,Object(s.X)({identifier:Pe.id});case 2:if(yn=Fr.sent,!(yn!=null&&(ln=yn.data)!==null&&ln!==void 0&&(Hn=ln.data_list)!==null&&Hn!==void 0&&Hn.length)){Fr.next=6;break}return wt.a.publish("pod-restrict-data",{identifier:yn==null||((kr=yn.data)===null||kr===void 0)?void 0:kr.identifier,data_list:yn==null||((Dr=yn.data)===null||Dr===void 0)?void 0:Dr.data_list}),Fr.abrupt("return");case 6:yn!=null&&yn.url&&yt(yn==null?void 0:yn.url);case 7:case"end":return Fr.stop()}},un)}));return function(){return on.apply(this,arguments)}}(),$e=function(){var on=Object(r.a)(t.a.mark(function un(){var ln;return t.a.wrap(function(yn){for(;;)switch(yn.prev=yn.next){case 0:return yn.next=2,Object(s.rb)({identifier:Pe.id});case 2:if(ln=yn.sent,!((ln==null?void 0:ln.status)!==0)){yn.next=5;break}return yn.abrupt("return");case 5:ln!=null&&ln.remainingSeconds?(Gt(Date.now()+ln.remainingSeconds*1e3),tr(ln.remainingSeconds-300<=0?Date.now()+1e3:Date.now()+(ln.remainingSeconds-300)*1e3)):qe();case 6:case"end":return yn.stop()}},un)}));return function(){return on.apply(this,arguments)}}(),qe=function(){d.a.confirm({centered:!0,title:"\u91CD\u7F6E\u73AF\u5883",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",zIndex:9999,content:b.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u5B9A\u91CD\u7F6E\u73AF\u5883\uFF1F"),onOk:function(){var un=Object(r.a)(t.a.mark(function Hn(){return t.a.wrap(function(kr){for(;;)switch(kr.prev=kr.next){case 0:pt();case 1:case"end":return kr.stop()}},Hn)}));function ln(){return un.apply(this,arguments)}return ln}()})},pt=function(){var on=Object(r.a)(t.a.mark(function un(){var ln;return t.a.wrap(function(yn){for(;;)switch(yn.prev=yn.next){case 0:return mr(Lt.Loading),yn.next=3,Object(s.Cb)({identifier:Pe.id});case 3:if(ln=yn.sent,!((ln==null?void 0:ln.status)!==0)){yn.next=6;break}return yn.abrupt("return");case 6:mr(Lt.Finish),yt(ln.url),Gr.current=ln.port,f.b.success("\u91CD\u7F6E\u73AF\u5883\u6210\u529F!");case 10:case"end":return yn.stop()}},un)}));return function(){return on.apply(this,arguments)}}(),rt=function(){d.a.destroyAll(),d.a.confirm({centered:!0,title:"\u670D\u52A1\u4E2D\u65AD\u63D0\u9192",content:b.a.createElement("div",{className:"tc font14"},"jupyter\u5C06\u4E8E",b.a.createElement("span",null,b.a.createElement(Wt,{value:rr,format:"HH:mm:ss",onFinish:It})),"\u65F6\u95F4\u540E\u670D\u52A1\u4E2D\u65AD\uFF0C\u662F\u5426\u9700\u8981\u5EF6\u957F\u4F7F\u7528\u65F6\u95F4\uFF1F"),okText:"\u7ACB\u5373\u5EF6\u957F",cancelText:"\u4E0D\u9700\u8981",onOk:function(){var un=Object(r.a)(t.a.mark(function Hn(){var yn;return t.a.wrap(function(Dr){for(;;)switch(Dr.prev=Dr.next){case 0:return Dr.next=2,Object(s.a)({identifier:Pe.id});case 2:if(yn=Dr.sent,!(yn.status===0)){Dr.next=7;break}return Dr.next=6,$e();case 6:f.b.success("\u5EF6\u957F\u6210\u529F!");case 7:case"end":return Dr.stop()}},Hn)}));function ln(){return un.apply(this,arguments)}return ln}()})},It=function(){d.a.destroyAll(),d.a.confirm({centered:!0,title:"\u5012\u8BA1\u65F6\u622A\u6B62",content:b.a.createElement("p",{className:"tc font14"},"\u670D\u52A1\u5DF2\u4E2D\u65AD\uFF0C\u662F\u5426\u786E\u8BA4\u91CD\u7F6E\u5B9E\u9A8C\u73AF\u5883\uFF1F"),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){pt()}})},Vt=function(un){qt({type:"shixunsDetail/setActionTabs",payload:{key:"EditPracticeSetting-SelectFilePath"}})},fn=function(){var on=Object(r.a)(t.a.mark(function un(ln){return t.a.wrap(function(yn){for(;;)switch(yn.prev=yn.next){case 0:return yn.next=2,Object(s.Pb)({id:Pe.id,startup_file:ln});case 2:Ie(),qt({type:"practiceSetting/getCommonData",payload:Object(G.a)({},Pe)});case 4:case"end":return yn.stop()}},un)}));return function(ln){return on.apply(this,arguments)}}();return b.a.createElement("div",{className:ua.a.warehouse},b.a.createElement(m.a,{className:"mt20 ml20 font14",align:"middle"},b.a.createElement(I.a,null,b.a.createElement("span",{className:"c-red"},"* "),"\u9ED8\u8BA4\u6253\u5F00\u6587\u4EF6\uFF1A"),b.a.createElement(I.a,{flex:"300px",onClick:function(){return Vt(Xt.ExecPath)}},b.a.createElement(K.a,{value:dt})),b.a.createElement(I.a,{flex:"1"},b.a.createElement(k.a,{type:"primary",className:"ml10",onClick:function(){return Vt(Xt.ExecPath)}},"\u8BBE\u7F6E"))),b.a.createElement("iframe",{onLoad:function(un){},src:dt,scrolling:"no",style:{height:"calc(100vh - 120px)"},className:"mt10",id:"frame",name:"framename",width:"100%",frameBorder:"0"}),b.a.createElement(Mt,{fileType:"path",path:"",onFinish:function(un){return fn(un)}}))},vn=Object(S.a)(function(xn){var Yt=xn.loading,dn=xn.globalSetting,An=xn.practiceSetting,qt=xn.shixunsDetail;return{globalSetting:dn,loading:Yt,practiceSetting:An,shixunsDetail:qt}})(en),pn=function(Yt){var dn=Yt.tabsActive,An=Object(g.a)(Yt,["tabsActive"]);return b.a.createElement(b.a.Fragment,null,dn==="information"&&b.a.createElement(ot,null),dn==="warehouse"&&b.a.createElement(gt.default,null),dn==="level"&&b.a.createElement(Ge,An),dn==="collaborate"&&b.a.createElement(Yn,An),dn==="setting"&&b.a.createElement(qn.a,null),dn==="environment"&&b.a.createElement(rn,An),dn==="dataset"&&b.a.createElement(Ja,null),dn==="service"&&b.a.createElement(vn,An))},Nn=pn,wn=o("Jv0p"),nn=o.n(wn),Rn=o("luix"),gn=o.n(Rn),kn=[{name:"\u57FA\u672C\u4FE1\u606F",icon:b.a.createElement("i",{className:"icon iconfont icon-jibenxinxi1"}),tabId:"information"},{name:"\u4EE3\u7801\u4ED3\u5E93",icon:b.a.createElement("i",{className:"icon iconfont icon-daimacangku"}),tabId:"warehouse"},{name:"\u4EFB\u52A1\u5173\u5361",icon:b.a.createElement("i",{className:"icon iconfont icon-renwuguanka"}),tabId:"level"},{name:"\u5B9E\u9A8C\u73AF\u5883",icon:b.a.createElement("i",{className:"icon iconfont icon-shiyanhuanjing"}),tabId:"environment"},{name:"\u6570\u636E\u96C6",icon:b.a.createElement("i",{className:"icon iconfont icon-shujuji",style:{fontSize:25}}),tabId:"dataset"},{name:"\u670D\u52A1",icon:b.a.createElement("i",{className:"icon iconfont icon-renwuguanka"}),tabId:"service"},{name:"\u5408\u4F5C\u4EBA\u5458",icon:b.a.createElement("i",{className:"icon iconfont icon-hezuochengyuan"}),tabId:"collaborate"},{name:"\u8BBE\u7F6E",icon:b.a.createElement("i",{className:"icon iconfont icon-shezhi5"}),tabId:"setting"}],Dn=function(Yt){var dn,An=Yt.globalSetting,qt=Yt.loading,Sn=Yt.dispatch,mn=Yt.shixunsDetail,Mn=Yt.practiceSetting,Un=Object(g.a)(Yt,["globalSetting","loading","dispatch","shixunsDetail","practiceSetting"]),ir=Mn.base_info_warning,er=Mn.challenges_warning,Ar=Mn.id,Mr=Mn.repository_warning,Qn=Mn.sideBar,Tr=Mn.service_warning,mr=Object(O.h)(),Gr=Object(O.i)();Object(A.useEffect)(function(){var rr,Gt,Qt=mr==null||((rr=mr.query)===null||rr===void 0)?void 0:rr.tabId,Jt=mr.pathname.split("/").length,zn=mn!=null&&(Gt=mn.detail)!==null&&Gt!==void 0&&Gt.windows_vnc?kn.filter(function(Ln){return Ln.tabId!=="dataset"}):kn,tr=zn.map(function(Ln){return Ln.tabId}).includes(Qt);if(Qt&&tr){Sn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:Qt}});return}if(Jt>4){Sn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"level"}});return}if(!Qt||Qt&&!tr){Sn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"information"}});return}},[mn==null||((dn=mn.detail)===null||dn===void 0)?void 0:dn.windows_vnc]),Object(A.useEffect)(function(){return function(){Sn({type:"practiceSetting/setSideBarTabs",payload:Object(G.a)(Object(G.a)({},Mn.sideBar),{},{selectPath:""})})}},[Gr.id]);var Ir=function(Gt){var Qt;if(Gt===Qn.tabsActive)return;var Jt=function(){S.d.push("/shixuns/".concat(Ar,"/edit?tabId=").concat(Gt)),Sn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:Gt,selectPath:"",confirmLeave:!1}})};Mn!=null&&(Qt=Mn.sideBar)!==null&&Qt!==void 0&&Qt.confirmLeave?d.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(){Jt()}}):Jt()},qr=function(){var Gt,Qt=mn!=null&&(Gt=mn.detail)!==null&&Gt!==void 0&&Gt.windows_vnc?kn.filter(function(Jt){return Jt.tabId!=="dataset"}):kn;return Qt.filter(function(Jt){var zn;return mn!=null&&(zn=mn.detail)!==null&&zn!==void 0&&zn.is_jupyter_lab?Jt.tabId!=="level":Jt.tabId!=="service"}).map(function(Jt){var zn=Jt.name,tr=Jt.icon,Ln=Jt.tabId;return b.a.createElement("div",{key:Ln,className:Mn.sideBar.tabsActive===Ln?nn.a.itemActive:nn.a.item,onClick:function(){return Ir(Ln)}},tr,b.a.createElement("span",{className:nn.a.name},zn),Ln==="information"&&ir&&b.a.createElement(En.a,{title:"\u8BF7\u5B8C\u5584\u57FA\u672C\u4FE1\u606F"},b.a.createElement("img",{src:gn.a,alt:""})),Ln==="level"&&er&&b.a.createElement(En.a,{title:"\u8BF7\u521B\u5EFA\u4EFB\u52A1\u5173\u5361"},b.a.createElement("img",{src:gn.a,alt:""})),Ln==="service"&&Tr&&b.a.createElement(En.a,{title:"\u8BF7\u8BBE\u7F6E\u9ED8\u8BA4\u6253\u5F00\u6587\u4EF6"},b.a.createElement("img",{src:gn.a,alt:""})),Ln==="warehouse"&&Mr&&b.a.createElement(En.a,{title:"\u8BF7\u5F00\u542F\u4EE3\u7801\u4ED3\u5E93"},b.a.createElement("img",{src:gn.a,alt:""})))})};return b.a.createElement("div",{className:nn.a.sidebar},b.a.createElement("div",{className:nn.a.items},qr()),b.a.createElement("div",{className:nn.a.question},b.a.createElement(En.a,{placement:"right",title:"\u5E38\u89C1\u95EE\u9898"},b.a.createElement("span",{style:{cursor:"pointer"},onClick:function(){return window.open("https://www.educoder.net/forums/4692")}},b.a.createElement("img",{src:Ra.u,height:44,width:44,alt:""})))))},Jn=Object(S.a)(function(xn){var Yt=xn.loading,dn=xn.globalSetting,An=xn.shixunsDetail,qt=xn.practiceSetting;return{globalSetting:dn,loading:Yt,practiceSetting:qt,shixunsDetail:An}})(Dn),hr=function(Yt){var dn=Yt.globalSetting,An=Yt.loading,qt=Yt.dispatch,Sn=Yt.practiceSetting,mn=Object(g.a)(Yt,["globalSetting","loading","dispatch","practiceSetting"]),Mn=Sn.sideBar,Un=Mn.tabsActive,ir=Object(O.i)();return Object(A.useEffect)(function(){return qt({type:"globalSetting/headerFooterToggle",payload:!1}),qt({type:"shixunsDetail/getShixunsDetail",payload:ir}),qt({type:"shixunsDetail/getSettingsData",payload:ir}),function(){qt({type:"globalSetting/headerFooterToggle",payload:!0}),qt({type:"practiceSetting/setParams",payload:{id:""}})}},[]),b.a.createElement("div",{className:x.a.practiceSetting},b.a.createElement("div",{className:x.a.wrapHeader},b.a.createElement(P,null)),b.a.createElement("div",{className:x.a.wrapLayout},b.a.createElement("div",{className:x.a.wrapSidebar},b.a.createElement(Jn,null)),b.a.createElement("div",{className:x.a.wrapContent},b.a.createElement(Nn,Object(L.a)({},mn,{tabsActive:Sn.sideBar.tabsActive})))))},Br=Y.default=Object(S.a)(function(xn){var Yt=xn.loading,dn=xn.globalSetting,An=xn.practiceSetting;return{globalSetting:dn,loading:Yt,practiceSetting:An}})(hr)},WYAk:function(M,Y,o){(function(L,g){M.exports=Y=g(o("Ib8C"))})(this,function(L){(function(){var g=L,A=g.lib,b=A.Base,y=g.enc,x=y.Utf8,w=g.algo,f=w.HMAC=b.extend({init:function(_,d){_=this._hasher=new _.init,typeof d=="string"&&(d=x.parse(d));var r=_.blockSize,u=r*4;d.sigBytes>u&&(d=_.finalize(d)),d.clamp();for(var t=this._oKey=d.clone(),a=this._iKey=d.clone(),n=t.words,i=a.words,h=0;h<r;h++)n[h]^=1549556828,i[h]^=909522486;t.sigBytes=a.sigBytes=u,this.reset()},reset:function(){var _=this._hasher;_.reset(),_.update(this._iKey)},update:function(_){return this._hasher.update(_),this},finalize:function(_){var d=this._hasher,r=d.finalize(_);d.reset();var u=d.finalize(this._oKey.clone().concat(r));return u}})})()})},WaYH:function(M,Y,o){"use strict";var L=o("rePB"),g=o("Ff2n"),A=o("VTBJ"),b=o("1OyB"),y=o("vuIU"),x=o("JX7q"),w=o("Ji7U"),f=o("LK+K"),_=o("q1tI"),d=o("TSYQ"),r=o.n(d),u=o("sboe"),t=o("OZM5"),a=function(P){var R=P.prefixCls,E=P.level,C=P.isStart,m=P.isEnd;if(!E)return null;for(var T="".concat(R,"-indent-unit"),I=[],D=0;D<E;D+=1){var N;I.push(_.createElement("span",{key:D,className:r()(T,(N={},Object(L.a)(N,"".concat(T,"-start"),C[D+1]),Object(L.a)(N,"".concat(T,"-end"),m[D+1]),Object(L.a)(N,"".concat(T,"-end-first-level"),!D&&m[0]),N))}))}return _.createElement("span",{"aria-hidden":"true",className:"".concat(R,"-indent")},I)},n=a,i=o("815F"),h="open",l="close",s="---",p=function(v){Object(w.a)(R,v);var P=Object(f.a)(R);function R(){var E;return Object(b.a)(this,R),E=P.apply(this,arguments),E.state={dragNodeHighlight:!1},E.onSelectorClick=function(C){var m=E.props.context.onNodeClick;m(C,Object(i.b)(E.props)),E.isSelectable()?E.onSelect(C):E.onCheck(C)},E.onSelectorDoubleClick=function(C){var m=E.props.context.onNodeDoubleClick;m(C,Object(i.b)(E.props))},E.onSelect=function(C){if(E.isDisabled())return;var m=E.props.context.onNodeSelect;C.preventDefault(),m(C,Object(i.b)(E.props))},E.onCheck=function(C){if(E.isDisabled())return;var m=E.props,T=m.disableCheckbox,I=m.checked,D=E.props.context.onNodeCheck;if(!E.isCheckable()||T)return;C.preventDefault();var N=!I;D(C,Object(i.b)(E.props),N)},E.onMouseEnter=function(C){var m=E.props.context.onNodeMouseEnter;m(C,Object(i.b)(E.props))},E.onMouseLeave=function(C){var m=E.props.context.onNodeMouseLeave;m(C,Object(i.b)(E.props))},E.onContextMenu=function(C){var m=E.props.context.onNodeContextMenu;m(C,Object(i.b)(E.props))},E.onDragStart=function(C){var m=E.props.context.onNodeDragStart;C.stopPropagation(),E.setState({dragNodeHighlight:!0}),m(C,Object(x.a)(E));try{C.dataTransfer.setData("text/plain","")}catch(T){}},E.onDragEnter=function(C){var m=E.props.context.onNodeDragEnter;C.preventDefault(),C.stopPropagation(),m(C,Object(x.a)(E))},E.onDragOver=function(C){var m=E.props.context.onNodeDragOver;C.preventDefault(),C.stopPropagation(),m(C,Object(x.a)(E))},E.onDragLeave=function(C){var m=E.props.context.onNodeDragLeave;C.stopPropagation(),m(C,Object(x.a)(E))},E.onDragEnd=function(C){var m=E.props.context.onNodeDragEnd;C.stopPropagation(),E.setState({dragNodeHighlight:!1}),m(C,Object(x.a)(E))},E.onDrop=function(C){var m=E.props.context.onNodeDrop;C.preventDefault(),C.stopPropagation(),E.setState({dragNodeHighlight:!1}),m(C,Object(x.a)(E))},E.onExpand=function(C){var m=E.props.context.onNodeExpand;m(C,Object(i.b)(E.props))},E.setSelectHandle=function(C){E.selectHandle=C},E.getNodeState=function(){var C=E.props.expanded;return E.isLeaf()?null:C?h:l},E.hasChildren=function(){var C=E.props.eventKey,m=E.props.context.keyEntities,T=m[C]||{},I=T.children;return!!(I||[]).length},E.isLeaf=function(){var C=E.props,m=C.isLeaf,T=C.loaded,I=E.props.context.loadData,D=E.hasChildren();return m===!1?!1:m||!I&&!D||I&&T&&!D},E.isDisabled=function(){var C=E.props.disabled,m=E.props.context.disabled;return!!(m||C)},E.isCheckable=function(){var C=E.props.checkable,m=E.props.context.checkable;return!m||C===!1?!1:m},E.syncLoadData=function(C){var m=C.expanded,T=C.loading,I=C.loaded,D=E.props.context,N=D.loadData,z=D.onNodeLoad;if(T)return;N&&m&&!E.isLeaf()&&(!E.hasChildren()&&!I&&z(Object(i.b)(E.props)))},E.renderSwitcher=function(){var C=E.props,m=C.expanded,T=C.switcherIcon,I=E.props.context,D=I.prefixCls,N=I.switcherIcon,z=T||N;if(E.isLeaf())return _.createElement("span",{className:r()("".concat(D,"-switcher"),"".concat(D,"-switcher-noop"))},typeof z=="function"?z(Object(A.a)(Object(A.a)({},E.props),{},{isLeaf:!0})):z);var F=r()("".concat(D,"-switcher"),"".concat(D,"-switcher_").concat(m?h:l));return _.createElement("span",{onClick:E.onExpand,className:F},typeof z=="function"?z(Object(A.a)(Object(A.a)({},E.props),{},{isLeaf:!1})):z)},E.renderCheckbox=function(){var C=E.props,m=C.checked,T=C.halfChecked,I=C.disableCheckbox,D=E.props.context.prefixCls,N=E.isDisabled(),z=E.isCheckable();if(!z)return null;var F=typeof z!="boolean"?z:null;return _.createElement("span",{className:r()("".concat(D,"-checkbox"),m&&"".concat(D,"-checkbox-checked"),!m&&T&&"".concat(D,"-checkbox-indeterminate"),(N||I)&&"".concat(D,"-checkbox-disabled")),onClick:E.onCheck},F)},E.renderIcon=function(){var C=E.props.loading,m=E.props.context.prefixCls;return _.createElement("span",{className:r()("".concat(m,"-iconEle"),"".concat(m,"-icon__").concat(E.getNodeState()||"docu"),C&&"".concat(m,"-icon_loading"))})},E.renderSelector=function(){var C=E.state.dragNodeHighlight,m=E.props,T=m.title,I=m.selected,D=m.icon,N=m.loading,z=m.data,F=E.props.context,W=F.prefixCls,K=F.showIcon,B=F.icon,k=F.draggable,G=F.loadData,ne=F.titleRender,fe=E.isDisabled(),de="".concat(W,"-node-content-wrapper"),xe;if(K){var Oe=D||B;xe=Oe?_.createElement("span",{className:r()("".concat(W,"-iconEle"),"".concat(W,"-icon__customize"))},typeof Oe=="function"?Oe(E.props):Oe):E.renderIcon()}else G&&N&&(xe=E.renderIcon());var ce;typeof T=="function"?ce=T(z):ne?ce=ne(z):ce=T;var be=_.createElement("span",{className:"".concat(W,"-title")},ce);return _.createElement("span",{ref:E.setSelectHandle,title:typeof T=="string"?T:"",className:r()("".concat(de),"".concat(de,"-").concat(E.getNodeState()||"normal"),!fe&&(I||C)&&"".concat(W,"-node-selected"),!fe&&k&&"draggable"),draggable:!fe&&k||void 0,"aria-grabbed":!fe&&k||void 0,onMouseEnter:E.onMouseEnter,onMouseLeave:E.onMouseLeave,onContextMenu:E.onContextMenu,onClick:E.onSelectorClick,onDoubleClick:E.onSelectorDoubleClick,onDragStart:k?E.onDragStart:void 0},xe,be)},E}return Object(y.a)(R,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var C=this.props.selectable,m=this.props.context.selectable;return typeof C=="boolean"?C:m}},{key:"render",value:function(){var C,m=this.props,T=m.eventKey,I=m.className,D=m.style,N=m.dragOver,z=m.dragOverGapTop,F=m.dragOverGapBottom,W=m.isLeaf,K=m.isStart,B=m.isEnd,k=m.expanded,G=m.selected,ne=m.checked,fe=m.halfChecked,de=m.loading,xe=m.domRef,Oe=m.active,ce=m.onMouseMove,be=Object(g.a)(m,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),ve=this.props.context,ue=ve.prefixCls,se=ve.filterTreeNode,q=ve.draggable,me=ve.keyEntities,re=this.isDisabled(),ie=Object(t.f)(be),we=me[T]||{},le=we.level,$=B[B.length-1];return _.createElement("div",Object.assign({ref:xe,className:r()(I,"".concat(ue,"-treenode"),(C={},Object(L.a)(C,"".concat(ue,"-treenode-disabled"),re),Object(L.a)(C,"".concat(ue,"-treenode-switcher-").concat(k?"open":"close"),!W),Object(L.a)(C,"".concat(ue,"-treenode-checkbox-checked"),ne),Object(L.a)(C,"".concat(ue,"-treenode-checkbox-indeterminate"),fe),Object(L.a)(C,"".concat(ue,"-treenode-selected"),G),Object(L.a)(C,"".concat(ue,"-treenode-loading"),de),Object(L.a)(C,"".concat(ue,"-treenode-active"),Oe),Object(L.a)(C,"".concat(ue,"-treenode-leaf-last"),$),Object(L.a)(C,"drag-over",!re&&N),Object(L.a)(C,"drag-over-gap-top",!re&&z),Object(L.a)(C,"drag-over-gap-bottom",!re&&F),Object(L.a)(C,"filter-node",se&&se(Object(i.b)(this.props))),C)),style:D,onDragEnter:q?this.onDragEnter:void 0,onDragOver:q?this.onDragOver:void 0,onDragLeave:q?this.onDragLeave:void 0,onDrop:q?this.onDrop:void 0,onDragEnd:q?this.onDragEnd:void 0,onMouseMove:ce},ie),_.createElement(n,{prefixCls:ue,level:le,isStart:K,isEnd:B}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),R}(_.Component),O=function(P){return _.createElement(u.a.Consumer,null,function(R){return _.createElement(p,Object.assign({},P,{context:R}))})};O.displayName="TreeNode",O.defaultProps={title:s},O.isTreeNode=1;var S=Y.a=O},XIdC:function(M,Y,o){"use strict";var L=o("rePB"),g=o("ODXe"),A=o("Ff2n"),b=o("q1tI"),y=o.n(b),x=o("TSYQ"),w=o.n(x),f=o("6cGi"),_=o("4IlW"),d=b.forwardRef(function(r,u){var t,a=r.prefixCls,n=a===void 0?"rc-switch":a,i=r.className,h=r.checked,l=r.defaultChecked,s=r.disabled,p=r.loadingIcon,O=r.checkedChildren,S=r.unCheckedChildren,v=r.onClick,P=r.onChange,R=r.onKeyDown,E=Object(A.a)(r,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),C=Object(f.a)(!1,{value:h,defaultValue:l}),m=Object(g.a)(C,2),T=m[0],I=m[1];function D(W,K){var B=T;return s||(B=W,I(B),P==null||P(B,K)),B}function N(W){W.which===_.a.LEFT?D(!1,W):W.which===_.a.RIGHT&&D(!0,W),R==null||R(W)}function z(W){var K=D(!T,W);v==null||v(K,W)}var F=w()(n,i,(t={},Object(L.a)(t,"".concat(n,"-checked"),T),Object(L.a)(t,"".concat(n,"-disabled"),s),t));return b.createElement("button",Object.assign({},E,{type:"button",role:"switch","aria-checked":T,disabled:s,className:F,ref:u,onKeyDown:N,onClick:z}),p,b.createElement("span",{className:"".concat(n,"-inner")},T?O:S))});d.displayName="Switch",Y.a=d},Xsq0:function(M,Y,o){M.exports=o.p+"static/mainbanner.0a951716.jpg"},Y1PL:function(M,Y,o){"use strict";o.r(Y),o.d(Y,"ResizableTextArea",function(){return fe});var L=o("wx14"),g=o("1OyB"),A=o("vuIU"),b=o("Ji7U"),y=o("LK+K"),x=o("q1tI"),w=o("VTBJ"),f=o("rePB"),_=o("Zm9Q"),d=o("Kwbf"),r=o("c+Xe"),u=o("m+aA"),t=o("bdgK"),a=new Map;function n(Oe){Oe.forEach(function(ce){var be,ve=ce.target;(be=a.get(ve))===null||be===void 0||be.forEach(function(ue){return ue(ve)})})}var i=new t.default(n),h=null,l=null;function s(Oe,ce){a.has(Oe)||(a.set(Oe,new Set),i.observe(Oe)),a.get(Oe).add(ce)}function p(Oe,ce){a.has(Oe)&&(a.get(Oe).delete(ce),a.get(Oe).size||(i.unobserve(Oe),a.delete(Oe)))}var O=function(Oe){Object(b.a)(be,Oe);var ce=Object(y.a)(be);function be(){return Object(g.a)(this,be),ce.apply(this,arguments)}return Object(A.a)(be,[{key:"render",value:function(){return this.props.children}}]),be}(x.Component),S=x.createContext(null);function v(Oe){var ce=Oe.children,be=Oe.onBatchResize,ve=x.useRef(0),ue=x.useRef([]),se=x.useContext(S),q=x.useCallback(function(me,re,ie){ve.current+=1;var we=ve.current;ue.current.push({size:me,element:re,data:ie}),Promise.resolve().then(function(){we===ve.current&&(be==null||be(ue.current),ue.current=[])}),se==null||se(me,re,ie)},[be,se]);return x.createElement(S.Provider,{value:q},ce)}function P(Oe){var ce=Oe.children,be=Oe.disabled,ve=x.useRef(null),ue=x.useRef(null),se=x.useContext(S),q=x.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),me=x.isValidElement(ce)&&Object(r.c)(ce),re=me?ce.ref:null,ie=x.useMemo(function(){return Object(r.a)(re,ve)},[re,ve]),we=x.useRef(Oe);we.current=Oe;var le=x.useCallback(function($){var J=we.current,te=J.onResize,De=J.data,Te=$.getBoundingClientRect(),ke=Te.width,tt=Te.height,ot=$.offsetWidth,gt=$.offsetHeight,Et=Math.floor(ke),xt=Math.floor(tt);if(q.current.width!==Et||q.current.height!==xt||q.current.offsetWidth!==ot||q.current.offsetHeight!==gt){var St={width:Et,height:xt,offsetWidth:ot,offsetHeight:gt};q.current=St;var Je=ot===Math.round(ke)?ke:ot,Ue=gt===Math.round(tt)?tt:gt,ft=Object(w.a)(Object(w.a)({},St),{},{offsetWidth:Je,offsetHeight:Ue});se==null||se(ft,$,De),te&&Promise.resolve().then(function(){te(ft,$)})}},[]);return x.useEffect(function(){var $=Object(u.a)(ve.current)||Object(u.a)(ue.current);return $&&!be&&s($,le),function(){return p($,le)}},[ve.current,be]),x.createElement(O,{ref:ue},me?x.cloneElement(ce,{ref:ie}):ce)}var R="rc-observer-key";function E(Oe){var ce=Oe.children,be=Object(_.a)(ce);return be.map(function(ve,ue){var se=(ve==null?void 0:ve.key)||"".concat(R,"-").concat(ue);return x.createElement(P,Object(L.a)({},Oe,{key:se}),ve)})}E.Collection=v;var C=E,m=o("bT9E"),T=o("TSYQ"),I=o.n(T),D=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important
`,N=["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"],z={},F;function W(Oe){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,be=Oe.getAttribute("id")||Oe.getAttribute("data-reactid")||Oe.getAttribute("name");if(ce&&z[be])return z[be];var ve=window.getComputedStyle(Oe),ue=ve.getPropertyValue("box-sizing")||ve.getPropertyValue("-moz-box-sizing")||ve.getPropertyValue("-webkit-box-sizing"),se=parseFloat(ve.getPropertyValue("padding-bottom"))+parseFloat(ve.getPropertyValue("padding-top")),q=parseFloat(ve.getPropertyValue("border-bottom-width"))+parseFloat(ve.getPropertyValue("border-top-width")),me=N.map(function(ie){return"".concat(ie,":").concat(ve.getPropertyValue(ie))}).join(";"),re={sizingStyle:me,paddingSize:se,borderSize:q,boxSizing:ue};return ce&&be&&(z[be]=re),re}function K(Oe){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ve=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;F||(F=document.createElement("textarea"),F.setAttribute("tab-index","-1"),F.setAttribute("aria-hidden","true"),document.body.appendChild(F)),Oe.getAttribute("wrap")?F.setAttribute("wrap",Oe.getAttribute("wrap")):F.removeAttribute("wrap");var ue=W(Oe,ce),se=ue.paddingSize,q=ue.borderSize,me=ue.boxSizing,re=ue.sizingStyle;F.setAttribute("style","".concat(re,";").concat(D)),F.value=Oe.value||Oe.placeholder||"";var ie=Number.MIN_SAFE_INTEGER,we=Number.MAX_SAFE_INTEGER,le=F.scrollHeight,$;if(me==="border-box"?le+=q:me==="content-box"&&(le-=se),be!==null||ve!==null){F.value=" ";var J=F.scrollHeight-se;be!==null&&(ie=J*be,me==="border-box"&&(ie=ie+se+q),le=Math.max(ie,le)),ve!==null&&(we=J*ve,me==="border-box"&&(we=we+se+q),$=le>we?"":"hidden",le=Math.min(we,le))}return{height:le,minHeight:ie,maxHeight:we,overflowY:$,resize:"none"}}var B=o("Gytx"),k=o.n(B),G;(function(Oe){Oe[Oe.NONE=0]="NONE",Oe[Oe.RESIZING=1]="RESIZING",Oe[Oe.RESIZED=2]="RESIZED"})(G||(G={}));var ne=function(Oe){Object(b.a)(be,Oe);var ce=Object(y.a)(be);function be(ve){var ue;return Object(g.a)(this,be),ue=ce.call(this,ve),ue.nextFrameActionId=void 0,ue.resizeFrameId=void 0,ue.textArea=void 0,ue.saveTextArea=function(se){ue.textArea=se},ue.handleResize=function(se){var q=ue.state.resizeStatus,me=ue.props,re=me.autoSize,ie=me.onResize;if(q!==G.NONE)return;typeof ie=="function"&&ie(se),re&&ue.resizeOnNextFrame()},ue.resizeOnNextFrame=function(){cancelAnimationFrame(ue.nextFrameActionId),ue.nextFrameActionId=requestAnimationFrame(ue.resizeTextarea)},ue.resizeTextarea=function(){var se=ue.props.autoSize;if(!se||!ue.textArea)return;var q=se.minRows,me=se.maxRows,re=K(ue.textArea,!1,q,me);ue.setState({textareaStyles:re,resizeStatus:G.RESIZING},function(){cancelAnimationFrame(ue.resizeFrameId),ue.resizeFrameId=requestAnimationFrame(function(){ue.setState({resizeStatus:G.RESIZED},function(){ue.resizeFrameId=requestAnimationFrame(function(){ue.setState({resizeStatus:G.NONE}),ue.fixFirefoxAutoScroll()})})})})},ue.renderTextArea=function(){var se=ue.props,q=se.prefixCls,me=q===void 0?"rc-textarea":q,re=se.autoSize,ie=se.onResize,we=se.className,le=se.disabled,$=ue.state,J=$.textareaStyles,te=$.resizeStatus,De=Object(m.a)(ue.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Te=I()(me,we,Object(f.a)({},"".concat(me,"-disabled"),le));"value"in De&&(De.value=De.value||"");var ke=Object(w.a)(Object(w.a)(Object(w.a)({},ue.props.style),J),te===G.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return x.createElement(C,{onResize:ue.handleResize,disabled:!(re||ie)},x.createElement("textarea",Object(L.a)({},De,{className:Te,style:ke,ref:ue.saveTextArea})))},ue.state={textareaStyles:{},resizeStatus:G.NONE},ue}return Object(A.a)(be,[{key:"componentDidUpdate",value:function(ue){(ue.value!==this.props.value||!k()(ue.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 ue=this.textArea.selectionStart,se=this.textArea.selectionEnd;this.textArea.setSelectionRange(ue,se)}}catch(q){}}},{key:"render",value:function(){return this.renderTextArea()}}]),be}(x.Component),fe=ne,de=function(Oe){Object(b.a)(be,Oe);var ce=Object(y.a)(be);function be(ve){var ue;Object(g.a)(this,be),ue=ce.call(this,ve),ue.resizableTextArea=void 0,ue.focus=function(){ue.resizableTextArea.textArea.focus()},ue.saveTextArea=function(q){ue.resizableTextArea=q},ue.handleChange=function(q){var me=ue.props.onChange;ue.setValue(q.target.value,function(){ue.resizableTextArea.resizeTextarea()}),me&&me(q)},ue.handleKeyDown=function(q){var me=ue.props,re=me.onPressEnter,ie=me.onKeyDown;q.keyCode===13&&re&&re(q),ie&&ie(q)};var se=typeof ve.value=="undefined"||ve.value===null?ve.defaultValue:ve.value;return ue.state={value:se},ue}return Object(A.a)(be,[{key:"setValue",value:function(ue,se){"value"in this.props||this.setState({value:ue},se)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return x.createElement(fe,Object(L.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(ue){return"value"in ue?{value:ue.value}:null}}]),be}(x.Component),xe=Y.default=de},ZJlW:function(M,Y,o){M.exports={flex_box_center:"flex_box_center___XZ1Hd",flex_space_between:"flex_space_between___2oG4i",flex_box_vertical_center:"flex_box_vertical_center___1UWtb",flex_box_center_end:"flex_box_center_end___1o2xT",flex_box_column:"flex_box_column___SlAE0",list:"list___1HvWe",wrap:"wrap___10sri",lockWrap:"lockWrap___2djiu",li:"li___2W_zn",cover:"cover___2FS3L",img:"img___cyxrw",sign:"sign___1cxDK",name:"name___3tYlu",e:"e___1-orw",unit:"unit___ycOgg",tags:"tags___2FRpJ",tag:"tag___1e0XO"}},ZW9T:function(M,Y,o){"use strict";o.d(Y,"a",function(){return K});var L=o("k1fw"),g=o("miYZ"),A=o("tsqr"),b=o("rAM+"),y=o("tJVT"),x=o("PpiC"),w=o("q1tI"),f=o.n(w),_=o("bdgK"),d=o("oBTY"),r=o("9og8"),u=o("WmNS"),t=o.n(u),a={keywords:["print","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"]},n={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},i={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","for","friend","gcnew","generic","goto","if","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`)},{label:"#include",content:'include "$0"'},{label:"printf",content:"printf($0)"},{label:"main",content:["int main () {"," $0","}"].join(`
`)},{label:"for",content:["for( ; ; ){"," $0","}"].join(`
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
`)},{label:"#include <iostream>",content:["#include <iostream>"].join(`
`)},{label:"#include <vector>",content:["#include <vector>"].join(`
`)},{label:"#include <sstream>",content:["#include <sstream>"].join(`
`)},{label:"#include <string>",content:["#include <string>"].join(`
`)},{label:"#include <cmath>",content:["#include <cmath>"].join(`
`)}]},h={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
`)}]},l=o("5VLF"),s=o.n(l),p={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},O=function(k,G){return G.map(function(ne){return{label:ne,kind:k.languages.CompletionItemKind.Keyword,insertText:ne}})},S=function(k){return Object.keys(p.tables).map(function(G){return{label:G,kind:k.languages.CompletionItemKind.Variable,insertText:G}})},v=function(k,G){var ne=p.tables[k];return ne?ne.map(function(fe){return{label:fe,kind:G.languages.CompletionItemKind.Field,insertText:fe}}):[]};function P(B,k,G,ne,fe){var de=k.getWordUntilPosition(G),xe={startLineNumber:G.lineNumber,endLineNumber:G.lineNumber,startColumn:de.startColumn,endColumn:de.endColumn},Oe=ne.map(function(ce){return{label:ce,kind:B.languages.CompletionItemKind.Keyword,insertText:ce,insertTextRules:B.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:xe}});return fe.map(function(ce){Oe.push(Object(L.a)(Object(L.a)({},ce),{},{range:xe}))}),Oe}var R=function(B){p.languages.map(function(fe){return B.languages.registerDocumentFormattingEditProvider(fe,{provideDocumentFormattingEdits:function(xe,Oe,ce){return Object(r.a)(t.a.mark(function be(){var ve;return t.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return ve=s()(xe.getValue(),{indent_size:"2",indent_char:" ",max_preserve_newlines:"2",preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"0",indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1}),se.abrupt("return",[{range:xe.getFullModelRange(),text:ve}]);case 2:case"end":return se.stop()}},be)}))()}}),fe});var k=i.quickKey.map(function(fe){return{label:fe.label,kind:B.languages.CompletionItemKind.Method,insertText:fe.content,insertTextRules:B.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),G=h.quickKey.map(function(fe){return{label:fe.label,kind:B.languages.CompletionItemKind.Method,insertText:fe.content,insertTextRules:B.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),ne=n.quickKey.map(function(fe){return{label:fe.label,kind:B.languages.CompletionItemKind.Method,insertText:fe.content,insertTextRules:B.languages.CompletionItemInsertTextRule.InsertAsSnippet}});B.languages.registerCompletionItemProvider("cpp",{triggerCharacters:["."," ","#"].concat(Object(d.a)(i.keywords),Object(d.a)(i.quickKey.map(function(fe){return fe.label}))),provideCompletionItems:function(de,xe){var Oe=de.getValueInRange({startLineNumber:xe.lineNumber,startColumn:1,endLineNumber:xe.lineNumber,endColumn:xe.column}),ce=Oe.match(/cu/gim);console.log("match:",ce,xe,Oe,de);var be=[],ve=xe.lineNumber,ue=xe.column,se=de.getValueInRange({startLineNumber:ve,startColumn:0,endLineNumber:ve,endColumn:ue}),q=se.trim().split(/\s+/),me=q[q.length-1];if(me.endsWith(".")){var re=me.slice(0,me.length-1);Object.keys(p.tables).includes(re)&&(be=Object(d.a)(v(re,B)))}else me==="."?be=[]:be=[].concat(Object(d.a)(S(B)),Object(d.a)(O(B,i.keywords)),Object(d.a)(k));return{suggestions:be}}}),B.languages.registerCompletionItemProvider("c",{triggerCharacters:["."," ","#"].concat(Object(d.a)(a.keywords)),provideCompletionItems:function(de,xe){var Oe=de.getValueInRange({startLineNumber:xe.lineNumber,startColumn:1,endLineNumber:xe.lineNumber,endColumn:xe.column}),ce=Oe.match(/cu/gim);console.log("match:",ce,xe,Oe,de);var be=[],ve=xe.lineNumber,ue=xe.column,se=de.getValueInRange({startLineNumber:ve,startColumn:0,endLineNumber:ve,endColumn:ue}),q=se.trim().split(/\s+/),me=q[q.length-1];if(me.endsWith(".")){var re=me.slice(0,me.length-1);Object.keys(p.tables).includes(re)&&(be=Object(d.a)(v(re,B)))}else me==="."?be=[]:be=[].concat(Object(d.a)(S(B)),Object(d.a)(O(B,a.keywords)));return{suggestions:be}}}),B.languages.registerCompletionItemProvider("java",{triggerCharacters:["."," "].concat(Object(d.a)(n.keywords)),provideCompletionItems:function(de,xe){var Oe=[],ce=xe.lineNumber,be=xe.column,ve=de.getValueInRange({startLineNumber:ce,startColumn:0,endLineNumber:ce,endColumn:be}),ue=ve.trim().split(/\s+/),se=ue[ue.length-1];if(se.endsWith(".")){var q=se.slice(0,se.length-1);Object.keys(p.tables).includes(q)&&(Oe=Object(d.a)(v(q,B)))}else se==="."?Oe=[]:Oe=[].concat(Object(d.a)(S(B)),Object(d.a)(O(B,n.keywords)),Object(d.a)(ne));return{suggestions:Oe}}}),B.languages.registerCompletionItemProvider("python",{triggerCharacters:["."," "].concat(Object(d.a)(h.keywords)),provideCompletionItems:function(de,xe){var Oe=[],ce=xe.lineNumber,be=xe.column,ve=de.getValueInRange({startLineNumber:ce,startColumn:0,endLineNumber:ce,endColumn:be}),ue=ve.trim().split(/\s+/),se=ue[ue.length-1];if(se.endsWith(".")){var q=se.slice(0,se.length-1);Object.keys(p.tables).includes(q)&&(Oe=Object(d.a)(v(q,B)))}else se==="."?Oe=[]:Oe=[].concat(Object(d.a)(S(B)),Object(d.a)(O(B,h.keywords)),Object(d.a)(G));return{suggestions:Oe}}})},E="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",C=o("LvDl"),m=o("+ua5");function T(B){return/^\d+$/.test(B)?"".concat(B,"px"):B}function I(){}var D=!1,N={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python"};function z(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],k=B;if(Array.isArray(B)){for(var G=0;G<B.length;G++){var ne=N[B[G]];if(ne)return ne}return k[0]}return N[k]||k}var F=null,W=Y.b=function(B){var k=B.width,G=k===void 0?"100%":k,ne=B.height,fe=ne===void 0?"100%":ne,de=B.value,xe=B.language,Oe=xe===void 0?"javascript":xe,ce=B.style,be=ce===void 0?{}:ce,ve=B.options,ue=ve===void 0?{}:ve,se=B.overrideServices,q=se===void 0?{}:se,me=B.theme,re=me===void 0?"vs-dark":me,ie=B.onEditBlur,we=B.onSave,le=B.autoHeight,$=le===void 0?!1:le,J=B.forbidCopy,te=J===void 0?!1:J,De=B.onChange,Te=De===void 0?I:De,ke=B.editorDidMount,tt=ke===void 0?I:ke,ot=B.onFocus,gt=ot===void 0?I:ot,Et=B.filename,xt=Et===void 0?"educoder.txt":Et,St=B.errorLine,Je=B.errorContent,Ue=Je===void 0?"":Je,ft=Object(x.a)(B,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","filename","errorLine","errorContent"]),kt=Object(w.useRef)(),ht=Object(w.useRef)({}),_t=Object(w.useRef)(),Qe=Object(w.useRef)(!1),He=Object(w.useRef)(),Ge=Object(w.useState)(!1),Ee=Object(y.a)(Ge,2),Ae=Ee[0],Fe=Ee[1];function We(){var et;return kt.current&&(et=new _.default(function(Dt){var Ht=Object(b.a)(Dt),bn;try{for(Ht.s();!(bn=Ht.n()).done;){var Cn=bn.value;(Cn.target.offsetHeight>0||Cn.target.offsetWidth>0)&&ht.current.instance.layout()}}catch(Yn){Ht.e(Yn)}finally{Ht.f()}}),et.observe(kt.current)),et}function Ke(){A.b.warn(decodeURIComponent(E))}var st=function(){var Dt=ht.current.instance;if(de!=null&&Dt&&Ae){var Ht=Dt.getModel();Ht&&de!==Ht.getValue()&&(D=!0,Ht.setValue(de),Dt.layout(),D=!1)}};Object(w.useEffect)(function(){_t.current&&clearTimeout(_t.current),_t.current=setTimeout(function(){st()},500)},[de,Ae,ht.current]),Object(w.useEffect)(function(){if(St&&ht.current&&ht.current.instance){var et=ht.current.instance;et.changeViewZones(function(Ht){var bn=document.createElement("div");bn.style.padding="10px 20px",bn.style.width="calc(100% - 20px)",bn.className="my-error-line-wrp",bn.innerHTML=Ue,Ht.addZone({afterLineNumber:St||11,heightInLines:3,domNode:bn})});var Dt={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}};et.addOverlayWidget(Dt),et.revealPositionInCenter({lineNumber:20,column:1})}},[St,ht.current,Ae]);function Ot(){var et=ht.current.instance;if(et){var Dt=et.getSelection(),Ht=ht.current.pastePos||{},bn=new F.Range(Ht.startLineNumber||Dt.endLineNumber,Ht.startColumn||Dt.endColumn,Ht.endLineNumber||Dt.endLineNumber,Ht.endColumn||Dt.endColumn);setTimeout(function(){et.executeEdits("",[{range:bn,text:""}])},300)}}function Bt(et){(window.navigator.platform.match("Mac")?et.metaKey:et.ctrlKey)&&et.keyCode==83&&(et.preventDefault(),we())}var an=function(){if($&&ht.current.instance){var Dt=ht.current.instance.getContentHeight();Pt(Dt<fe?fe:Dt)}else Pt(fe)};function Kt(et){var Dt=document.createEvent("MouseEvents");Dt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),et.dispatchEvent(Dt)}function bt(et,Dt){var Ht=window.URL||window.webkitURL||window,bn=new Blob([Dt]),Cn=document.createElementNS("http://www.w3.org/1999/xhtml","a");Cn.href=Ht.createObjectURL(bn),Cn.download=et,Kt(Cn)}Object(w.useEffect)(function(){an()},[an]),Object(w.useEffect)(function(){kt.current&&!Ae&&o.e(27).then(o.t.bind(null,"M/lh",7)).then(function(et){try{F=et,ht.current.instance=F.editor.create(kt.current,{value:de,language:z(Oe),theme:re,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0},q);var Dt=ht.current.instance;if(tt(Dt,F),setTimeout(function(){an(),ht.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:function(){bt(xt||"educoder.txt",Dt.getValue())}})},500),ht.current.subscription=Dt.onDidChangeModelContent(function(bn){Qe.current?clearTimeout(He.current):(an(),Te(Dt.getValue(),bn)),He.current=setTimeout(function(){Qe.current=!1},500)}),window.Monaco||R(F),te&&(Dt.addCommand(F.KeyMod.CtrlCmd|F.KeyMod.Shift|F.KeyCode.KEY_V,function(){return Ke(),null}),Dt.addCommand(F.KeyMod.CtrlCmd|F.KeyCode.KEY_C,function(){return Ke(),null})),window.Monaco=F,ie&&Dt.onDidBlurEditorWidget(function(){ie(Dt.getValue())}),gt&&Dt.onDidFocusEditorText(function(){gt(Dt.getValue())}),te){Dt.addCommand(F.KeyMod.CtrlCmd|F.KeyCode.KEY_V,function(){return Ke(),null}),Dt.onDidPaste(function(bn){ht.current.pastePos=bn});try{window.addEventListener("paste",Ot)}catch(bn){}}var Ht=We();return Fe(!0),function(){var bn=ht.current.instance;bn.dispose();var Cn=bn.getModel();Cn&&Cn.dispose(),ht.current.subscription&&ht.current.subscription.dispose(),te&&window.removeEventListener("paste",Ot),Ht.unobserve(kt.current)}}catch(bn){}})},[]),Object(w.useEffect)(function(){var et=ht.current.instance;if(et&&Ae)return document.addEventListener("keydown",Bt,!1),function(){document.removeEventListener("keydown",Bt)}},[we,Ae]),Object(w.useEffect)(function(){var et=ht.current.instance;if(et&&Ae){var Dt=z(Oe);F.editor.setModelLanguage(et.getModel(),Dt),console.log("language:",Oe,et.getModel(),Dt)}},[Oe,Ae]),Object(w.useEffect)(function(){var et=ht.current.instance;et&&Ae&&F.editor.setTheme(re)},[re,Ae]),Object(w.useEffect)(function(){var et=ht.current.instance;et&&Ae&&(et.updateOptions(Object(L.a)({},ue)),setTimeout(function(){et.getModel().updateOptions(Object(L.a)({},ue))},200))},[JSON.stringify(ue),Ae]),Object(w.useEffect)(function(){var et=ht.current.instance;et&&Ae&&et.layout()},[G,fe,Ae]);var Be=Object(w.useState)(T(G)),at=Object(y.a)(Be,2),it=at[0],Me=at[1],Ye=Object(w.useState)(T(fe)),ut=Object(y.a)(Ye,2),mt=ut[0],Pt=ut[1],jt=Object(L.a)(Object(L.a)({},be),{},{width:it,height:mt});return f.a.createElement("div",{className:"my-monaco-editor",ref:kt,style:jt})};function K(B){var k=B.width,G=k===void 0?"100%":k,ne=B.height,fe=ne===void 0?"100%":ne,de=B.original,xe=B.modified,Oe=B.language,ce=B.options,be=ce===void 0?{}:ce,ve=Object(w.useRef)(),ue=Object(w.useState)(null),se=Object(y.a)(ue,2),q=se[0],me=se[1];function re($){var J;return ve.current&&(J=new _.default(function(te){var De=Object(b.a)(te),Te;try{for(De.s();!(Te=De.n()).done;){var ke=Te.value;(ke.target.offsetHeight>0||ke.target.offsetWidth>0)&&$.layout()}}catch(tt){De.e(tt)}finally{De.f()}}),J.observe(ve.current)),J}Object(w.useEffect)(function(){ve.current&&o.e(27).then(o.t.bind(null,"M/lh",7)).then(function($){F=$;var J=F.editor.createDiffEditor(ve.current,Object(L.a)(Object(L.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",ignoreTrimWhitespace:!1,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},be),{},{wordWrap:!0}));me(J);var te=re(J);return function(){J.dispose();var De=J.getModel();De&&De.dispose(),te.unobserve(ve.current)}})},[]),Object(w.useEffect)(function(){q&&q.setModel({original:F.editor.createModel(de,Oe),modified:F.editor.createModel(xe,Oe)})},[de,xe,Oe,q]);var ie=T(G),we=T(fe),le={width:ie,height:we};return f.a.createElement("div",{className:"my-diff-editor",ref:ve,style:le})}},ZpRC:function(M,Y,o){"use strict";function L(r){return typeof r=="object"&&r!=null&&r.nodeType===1}function g(r,u){return(!u||r!=="hidden")&&r!=="visible"&&r!=="clip"}function A(r,u){if(r.clientHeight<r.scrollHeight||r.clientWidth<r.scrollWidth){var t=getComputedStyle(r,null);return g(t.overflowY,u)||g(t.overflowX,u)||function(a){var n=function(i){if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch(h){return null}}(a);return!!n&&(n.clientHeight<a.scrollHeight||n.clientWidth<a.scrollWidth)}(r)}return!1}function b(r,u,t,a,n,i,h,l){return i<r&&h>u||i>r&&h<u?0:i<=r&&l<=t||h>=u&&l>=t?i-r-a:h>u&&l<t||i<r&&l>t?h-u+n:0}var y=function(r,u){var t=window,a=u.scrollMode,n=u.block,i=u.inline,h=u.boundary,l=u.skipOverflowHiddenElements,s=typeof h=="function"?h:function(J){return J!==h};if(!L(r))throw new TypeError("Invalid target");for(var p=document.scrollingElement||document.documentElement,O=[],S=r;L(S)&&s(S);){if((S=S.parentElement)===p){O.push(S);break}S!=null&&S===document.body&&A(S)&&!A(document.documentElement)||S!=null&&A(S,l)&&O.push(S)}for(var v=t.visualViewport?t.visualViewport.width:innerWidth,P=t.visualViewport?t.visualViewport.height:innerHeight,R=window.scrollX||pageXOffset,E=window.scrollY||pageYOffset,C=r.getBoundingClientRect(),m=C.height,T=C.width,I=C.top,D=C.right,N=C.bottom,z=C.left,F=n==="start"||n==="nearest"?I:n==="end"?N:I+m/2,W=i==="center"?z+T/2:i==="end"?D:z,K=[],B=0;B<O.length;B++){var k=O[B],G=k.getBoundingClientRect(),ne=G.height,fe=G.width,de=G.top,xe=G.right,Oe=G.bottom,ce=G.left;if(a==="if-needed"&&I>=0&&z>=0&&N<=P&&D<=v&&I>=de&&N<=Oe&&z>=ce&&D<=xe)return K;var be=getComputedStyle(k),ve=parseInt(be.borderLeftWidth,10),ue=parseInt(be.borderTopWidth,10),se=parseInt(be.borderRightWidth,10),q=parseInt(be.borderBottomWidth,10),me=0,re=0,ie="offsetWidth"in k?k.offsetWidth-k.clientWidth-ve-se:0,we="offsetHeight"in k?k.offsetHeight-k.clientHeight-ue-q:0;if(p===k)me=n==="start"?F:n==="end"?F-P:n==="nearest"?b(E,E+P,P,ue,q,E+F,E+F+m,m):F-P/2,re=i==="start"?W:i==="center"?W-v/2:i==="end"?W-v:b(R,R+v,v,ve,se,R+W,R+W+T,T),me=Math.max(0,me+E),re=Math.max(0,re+R);else{me=n==="start"?F-de-ue:n==="end"?F-Oe+q+we:n==="nearest"?b(de,Oe,ne,ue,q+we,F,F+m,m):F-(de+ne/2)+we/2,re=i==="start"?W-ce-ve:i==="center"?W-(ce+fe/2)+ie/2:i==="end"?W-xe+se+ie:b(ce,xe,fe,ve,se+ie,W,W+T,T);var le=k.scrollLeft,$=k.scrollTop;F+=$-(me=Math.max(0,Math.min($+me,k.scrollHeight-ne+we))),W+=le-(re=Math.max(0,Math.min(le+re,k.scrollWidth-fe+ie)))}K.push({el:k,top:me,left:re})}return K};function x(r){return r===Object(r)&&Object.keys(r).length!==0}function w(r,u){u===void 0&&(u="auto");var t="scrollBehavior"in document.body.style;r.forEach(function(a){var n=a.el,i=a.top,h=a.left;n.scroll&&t?n.scroll({top:i,left:h,behavior:u}):(n.scrollTop=i,n.scrollLeft=h)})}function f(r){return r===!1?{block:"end",inline:"nearest"}:x(r)?r:{block:"start",inline:"nearest"}}function _(r,u){var t=!r.ownerDocument.documentElement.contains(r);if(x(u)&&typeof u.behavior=="function")return u.behavior(t?[]:y(r,u));if(t)return;var a=f(u);return w(y(r,a),a.behavior)}var d=Y.a=_},Zss7:function(M,Y,o){var L;(function(g){var A=/^\s+/,b=/\s+$/,y=0,x=g.round,w=g.min,f=g.max,_=g.random;function d(q,me){if(q=q||"",me=me||{},q instanceof d)return q;if(!(this instanceof d))return new d(q,me);var re=r(q);this._originalInput=q,this._r=re.r,this._g=re.g,this._b=re.b,this._a=re.a,this._roundA=x(100*this._a)/100,this._format=me.format||re.format,this._gradientType=me.gradientType,this._r<1&&(this._r=x(this._r)),this._g<1&&(this._g=x(this._g)),this._b<1&&(this._b=x(this._b)),this._ok=re.ok,this._tc_id=y++}d.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 q=this.toRgb();return(q.r*299+q.g*587+q.b*114)/1e3},getLuminance:function(){var q=this.toRgb(),me,re,ie,we,le,$;return me=q.r/255,re=q.g/255,ie=q.b/255,me<=.03928?we=me/12.92:we=g.pow((me+.055)/1.055,2.4),re<=.03928?le=re/12.92:le=g.pow((re+.055)/1.055,2.4),ie<=.03928?$=ie/12.92:$=g.pow((ie+.055)/1.055,2.4),.2126*we+.7152*le+.0722*$},setAlpha:function(q){return this._a=K(q),this._roundA=x(100*this._a)/100,this},toHsv:function(){var q=n(this._r,this._g,this._b);return{h:q.h*360,s:q.s,v:q.v,a:this._a}},toHsvString:function(){var q=n(this._r,this._g,this._b),me=x(q.h*360),re=x(q.s*100),ie=x(q.v*100);return this._a==1?"hsv("+me+", "+re+"%, "+ie+"%)":"hsva("+me+", "+re+"%, "+ie+"%, "+this._roundA+")"},toHsl:function(){var q=t(this._r,this._g,this._b);return{h:q.h*360,s:q.s,l:q.l,a:this._a}},toHslString:function(){var q=t(this._r,this._g,this._b),me=x(q.h*360),re=x(q.s*100),ie=x(q.l*100);return this._a==1?"hsl("+me+", "+re+"%, "+ie+"%)":"hsla("+me+", "+re+"%, "+ie+"%, "+this._roundA+")"},toHex:function(q){return h(this._r,this._g,this._b,q)},toHexString:function(q){return"#"+this.toHex(q)},toHex8:function(q){return l(this._r,this._g,this._b,this._a,q)},toHex8String:function(q){return"#"+this.toHex8(q)},toRgb:function(){return{r:x(this._r),g:x(this._g),b:x(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+x(this._r)+", "+x(this._g)+", "+x(this._b)+")":"rgba("+x(this._r)+", "+x(this._g)+", "+x(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:x(B(this._r,255)*100)+"%",g:x(B(this._g,255)*100)+"%",b:x(B(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+x(B(this._r,255)*100)+"%, "+x(B(this._g,255)*100)+"%, "+x(B(this._b,255)*100)+"%)":"rgba("+x(B(this._r,255)*100)+"%, "+x(B(this._g,255)*100)+"%, "+x(B(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:F[h(this._r,this._g,this._b,!0)]||!1},toFilter:function(q){var me="#"+s(this._r,this._g,this._b,this._a),re=me,ie=this._gradientType?"GradientType = 1, ":"";if(q){var we=d(q);re="#"+s(we._r,we._g,we._b,we._a)}return"progid:DXImageTransform.Microsoft.gradient("+ie+"startColorstr="+me+",endColorstr="+re+")"},toString:function(q){var me=!!q;q=q||this._format;var re=!1,ie=this._a<1&&this._a>=0,we=!me&&ie&&(q==="hex"||q==="hex6"||q==="hex3"||q==="hex4"||q==="hex8"||q==="name");return we?q==="name"&&this._a===0?this.toName():this.toRgbString():(q==="rgb"&&(re=this.toRgbString()),q==="prgb"&&(re=this.toPercentageRgbString()),(q==="hex"||q==="hex6")&&(re=this.toHexString()),q==="hex3"&&(re=this.toHexString(!0)),q==="hex4"&&(re=this.toHex8String(!0)),q==="hex8"&&(re=this.toHex8String()),q==="name"&&(re=this.toName()),q==="hsl"&&(re=this.toHslString()),q==="hsv"&&(re=this.toHsvString()),re||this.toHexString())},clone:function(){return d(this.toString())},_applyModification:function(q,me){var re=q.apply(null,[this].concat([].slice.call(me)));return this._r=re._r,this._g=re._g,this._b=re._b,this.setAlpha(re._a),this},lighten:function(){return this._applyModification(v,arguments)},brighten:function(){return this._applyModification(P,arguments)},darken:function(){return this._applyModification(R,arguments)},desaturate:function(){return this._applyModification(p,arguments)},saturate:function(){return this._applyModification(O,arguments)},greyscale:function(){return this._applyModification(S,arguments)},spin:function(){return this._applyModification(E,arguments)},_applyCombination:function(q,me){return q.apply(null,[this].concat([].slice.call(me)))},analogous:function(){return this._applyCombination(D,arguments)},complement:function(){return this._applyCombination(C,arguments)},monochromatic:function(){return this._applyCombination(N,arguments)},splitcomplement:function(){return this._applyCombination(I,arguments)},triad:function(){return this._applyCombination(m,arguments)},tetrad:function(){return this._applyCombination(T,arguments)}},d.fromRatio=function(q,me){if(typeof q=="object"){var re={};for(var ie in q)q.hasOwnProperty(ie)&&(ie==="a"?re[ie]=q[ie]:re[ie]=xe(q[ie]));q=re}return d(q,me)};function r(q){var me={r:0,g:0,b:0},re=1,ie=null,we=null,le=null,$=!1,J=!1;return typeof q=="string"&&(q=ue(q)),typeof q=="object"&&(ve(q.r)&&ve(q.g)&&ve(q.b)?(me=u(q.r,q.g,q.b),$=!0,J=String(q.r).substr(-1)==="%"?"prgb":"rgb"):ve(q.h)&&ve(q.s)&&ve(q.v)?(ie=xe(q.s),we=xe(q.v),me=i(q.h,ie,we),$=!0,J="hsv"):ve(q.h)&&ve(q.s)&&ve(q.l)&&(ie=xe(q.s),le=xe(q.l),me=a(q.h,ie,le),$=!0,J="hsl"),q.hasOwnProperty("a")&&(re=q.a)),re=K(re),{ok:$,format:q.format||J,r:w(255,f(me.r,0)),g:w(255,f(me.g,0)),b:w(255,f(me.b,0)),a:re}}function u(q,me,re){return{r:B(q,255)*255,g:B(me,255)*255,b:B(re,255)*255}}function t(q,me,re){q=B(q,255),me=B(me,255),re=B(re,255);var ie=f(q,me,re),we=w(q,me,re),le,$,J=(ie+we)/2;if(ie==we)le=$=0;else{var te=ie-we;$=J>.5?te/(2-ie-we):te/(ie+we);switch(ie){case q:le=(me-re)/te+(me<re?6:0);break;case me:le=(re-q)/te+2;break;case re:le=(q-me)/te+4;break}le/=6}return{h:le,s:$,l:J}}function a(q,me,re){var ie,we,le;q=B(q,360),me=B(me,100),re=B(re,100);function $(De,Te,ke){return ke<0&&(ke+=1),ke>1&&(ke-=1),ke<1/6?De+(Te-De)*6*ke:ke<1/2?Te:ke<2/3?De+(Te-De)*(2/3-ke)*6:De}if(me===0)ie=we=le=re;else{var J=re<.5?re*(1+me):re+me-re*me,te=2*re-J;ie=$(te,J,q+1/3),we=$(te,J,q),le=$(te,J,q-1/3)}return{r:ie*255,g:we*255,b:le*255}}function n(q,me,re){q=B(q,255),me=B(me,255),re=B(re,255);var ie=f(q,me,re),we=w(q,me,re),le,$,J=ie,te=ie-we;if($=ie===0?0:te/ie,ie==we)le=0;else{switch(ie){case q:le=(me-re)/te+(me<re?6:0);break;case me:le=(re-q)/te+2;break;case re:le=(q-me)/te+4;break}le/=6}return{h:le,s:$,v:J}}function i(q,me,re){q=B(q,360)*6,me=B(me,100),re=B(re,100);var ie=g.floor(q),we=q-ie,le=re*(1-me),$=re*(1-we*me),J=re*(1-(1-we)*me),te=ie%6,De=[re,$,le,le,J,re][te],Te=[J,re,re,$,le,le][te],ke=[le,le,J,re,re,$][te];return{r:De*255,g:Te*255,b:ke*255}}function h(q,me,re,ie){var we=[de(x(q).toString(16)),de(x(me).toString(16)),de(x(re).toString(16))];return ie&&we[0].charAt(0)==we[0].charAt(1)&&we[1].charAt(0)==we[1].charAt(1)&&we[2].charAt(0)==we[2].charAt(1)?we[0].charAt(0)+we[1].charAt(0)+we[2].charAt(0):we.join("")}function l(q,me,re,ie,we){var le=[de(x(q).toString(16)),de(x(me).toString(16)),de(x(re).toString(16)),de(Oe(ie))];return we&&le[0].charAt(0)==le[0].charAt(1)&&le[1].charAt(0)==le[1].charAt(1)&&le[2].charAt(0)==le[2].charAt(1)&&le[3].charAt(0)==le[3].charAt(1)?le[0].charAt(0)+le[1].charAt(0)+le[2].charAt(0)+le[3].charAt(0):le.join("")}function s(q,me,re,ie){var we=[de(Oe(ie)),de(x(q).toString(16)),de(x(me).toString(16)),de(x(re).toString(16))];return we.join("")}d.equals=function(q,me){return!q||!me?!1:d(q).toRgbString()==d(me).toRgbString()},d.random=function(){return d.fromRatio({r:_(),g:_(),b:_()})};function p(q,me){me=me===0?0:me||10;var re=d(q).toHsl();return re.s-=me/100,re.s=k(re.s),d(re)}function O(q,me){me=me===0?0:me||10;var re=d(q).toHsl();return re.s+=me/100,re.s=k(re.s),d(re)}function S(q){return d(q).desaturate(100)}function v(q,me){me=me===0?0:me||10;var re=d(q).toHsl();return re.l+=me/100,re.l=k(re.l),d(re)}function P(q,me){me=me===0?0:me||10;var re=d(q).toRgb();return re.r=f(0,w(255,re.r-x(255*-(me/100)))),re.g=f(0,w(255,re.g-x(255*-(me/100)))),re.b=f(0,w(255,re.b-x(255*-(me/100)))),d(re)}function R(q,me){me=me===0?0:me||10;var re=d(q).toHsl();return re.l-=me/100,re.l=k(re.l),d(re)}function E(q,me){var re=d(q).toHsl(),ie=(re.h+me)%360;return re.h=ie<0?360+ie:ie,d(re)}function C(q){var me=d(q).toHsl();return me.h=(me.h+180)%360,d(me)}function m(q){var me=d(q).toHsl(),re=me.h;return[d(q),d({h:(re+120)%360,s:me.s,l:me.l}),d({h:(re+240)%360,s:me.s,l:me.l})]}function T(q){var me=d(q).toHsl(),re=me.h;return[d(q),d({h:(re+90)%360,s:me.s,l:me.l}),d({h:(re+180)%360,s:me.s,l:me.l}),d({h:(re+270)%360,s:me.s,l:me.l})]}function I(q){var me=d(q).toHsl(),re=me.h;return[d(q),d({h:(re+72)%360,s:me.s,l:me.l}),d({h:(re+216)%360,s:me.s,l:me.l})]}function D(q,me,re){me=me||6,re=re||30;var ie=d(q).toHsl(),we=360/re,le=[d(q)];for(ie.h=(ie.h-(we*me>>1)+720)%360;--me;)ie.h=(ie.h+we)%360,le.push(d(ie));return le}function N(q,me){me=me||6;for(var re=d(q).toHsv(),ie=re.h,we=re.s,le=re.v,$=[],J=1/me;me--;)$.push(d({h:ie,s:we,v:le})),le=(le+J)%1;return $}d.mix=function(q,me,re){re=re===0?0:re||50;var ie=d(q).toRgb(),we=d(me).toRgb(),le=re/100,$={r:(we.r-ie.r)*le+ie.r,g:(we.g-ie.g)*le+ie.g,b:(we.b-ie.b)*le+ie.b,a:(we.a-ie.a)*le+ie.a};return d($)},d.readability=function(q,me){var re=d(q),ie=d(me);return(g.max(re.getLuminance(),ie.getLuminance())+.05)/(g.min(re.getLuminance(),ie.getLuminance())+.05)},d.isReadable=function(q,me,re){var ie=d.readability(q,me),we,le;le=!1,we=se(re);switch(we.level+we.size){case"AAsmall":case"AAAlarge":le=ie>=4.5;break;case"AAlarge":le=ie>=3;break;case"AAAsmall":le=ie>=7;break}return le},d.mostReadable=function(q,me,re){var ie=null,we=0,le,$,J,te;re=re||{},$=re.includeFallbackColors,J=re.level,te=re.size;for(var De=0;De<me.length;De++)le=d.readability(q,me[De]),le>we&&(we=le,ie=d(me[De]));return d.isReadable(q,ie,{level:J,size:te})||!$?ie:(re.includeFallbackColors=!1,d.mostReadable(q,["#fff","#000"],re))};var z=d.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"},F=d.hexNames=W(z);function W(q){var me={};for(var re in q)q.hasOwnProperty(re)&&(me[q[re]]=re);return me}function K(q){return q=parseFloat(q),(isNaN(q)||q<0||q>1)&&(q=1),q}function B(q,me){ne(q)&&(q="100%");var re=fe(q);return q=w(me,f(0,parseFloat(q))),re&&(q=parseInt(q*me,10)/100),g.abs(q-me)<1e-6?1:q%me/parseFloat(me)}function k(q){return w(1,f(0,q))}function G(q){return parseInt(q,16)}function ne(q){return typeof q=="string"&&q.indexOf(".")!=-1&&parseFloat(q)===1}function fe(q){return typeof q=="string"&&q.indexOf("%")!=-1}function de(q){return q.length==1?"0"+q:""+q}function xe(q){return q<=1&&(q=q*100+"%"),q}function Oe(q){return g.round(parseFloat(q)*255).toString(16)}function ce(q){return G(q)/255}var be=function(){var q="[-\\+]?\\d+%?",me="[-\\+]?\\d*\\.\\d+%?",re="(?:"+me+")|(?:"+q+")",ie="[\\s|\\(]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")\\s*\\)?",we="[\\s|\\(]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")\\s*\\)?";return{CSS_UNIT:new RegExp(re),rgb:new RegExp("rgb"+ie),rgba:new RegExp("rgba"+we),hsl:new RegExp("hsl"+ie),hsla:new RegExp("hsla"+we),hsv:new RegExp("hsv"+ie),hsva:new RegExp("hsva"+we),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 ve(q){return!!be.CSS_UNIT.exec(q)}function ue(q){q=q.replace(A,"").replace(b,"").toLowerCase();var me=!1;if(z[q])q=z[q],me=!0;else if(q=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var re;return(re=be.rgb.exec(q))?{r:re[1],g:re[2],b:re[3]}:(re=be.rgba.exec(q))?{r:re[1],g:re[2],b:re[3],a:re[4]}:(re=be.hsl.exec(q))?{h:re[1],s:re[2],l:re[3]}:(re=be.hsla.exec(q))?{h:re[1],s:re[2],l:re[3],a:re[4]}:(re=be.hsv.exec(q))?{h:re[1],s:re[2],v:re[3]}:(re=be.hsva.exec(q))?{h:re[1],s:re[2],v:re[3],a:re[4]}:(re=be.hex8.exec(q))?{r:G(re[1]),g:G(re[2]),b:G(re[3]),a:ce(re[4]),format:me?"name":"hex8"}:(re=be.hex6.exec(q))?{r:G(re[1]),g:G(re[2]),b:G(re[3]),format:me?"name":"hex"}:(re=be.hex4.exec(q))?{r:G(re[1]+""+re[1]),g:G(re[2]+""+re[2]),b:G(re[3]+""+re[3]),a:ce(re[4]+""+re[4]),format:me?"name":"hex8"}:(re=be.hex3.exec(q))?{r:G(re[1]+""+re[1]),g:G(re[2]+""+re[2]),b:G(re[3]+""+re[3]),format:me?"name":"hex"}:!1}function se(q){var me,re;return q=q||{level:"AA",size:"small"},me=(q.level||"AA").toUpperCase(),re=(q.size||"small").toLowerCase(),me!=="AA"&&me!=="AAA"&&(me="AA"),re!=="small"&&re!=="large"&&(re="small"),{level:me,size:re}}M.exports?M.exports=d:!(L=function(){return d}.call(Y,o,Y,M),L!==void 0&&(M.exports=L))})(Math)},aBPH:function(M,Y,o){M.exports={wrap:"wrap___1eujs",modal:"modal___3NBln",title:"title___26WI_",path:"path___HzdTG",colorBlue:"colorBlue___3sufs",width240:"width240___DJhZ8",filePath:"filePath___13aFg"}},auZk:function(M,Y,o){M.exports={flex_box_center:"flex_box_center___3qTxW",flex_space_between:"flex_space_between___3ea87",flex_box_vertical_center:"flex_box_vertical_center___3pRKY",flex_box_center_end:"flex_box_center_end___1knqW",flex_box_column:"flex_box_column___2jnF_",header:"header___1jftB","flex-center":"flex-center___2n5vX",title:"title___JYziX",schedule:"schedule___3dZqv",clickWarp:"clickWarp___Nw-Yv",num:"num___2kh_y",subject:"subject___3cFDa",btns:"btns___jk1p6",btn:"btn___2VKv5",simulate:"simulate___3PtJU",exit:"exit___3vlKF"}},bKvZ:function(M,Y,o){M.exports={flex_box_center:"flex_box_center___2dXfh",flex_space_between:"flex_space_between___2BhUa",flex_box_vertical_center:"flex_box_vertical_center___15ksZ",flex_box_center_end:"flex_box_center_end___3JbfY",flex_box_column:"flex_box_column___1raS-",level:"level___W4wcy",left:"left___1XwUw",container:"container___16wfS",title:"title___2mqN2",listWrap:"listWrap___U0Df3",list:"list___2YNXa",s3:"s3___25biP",s2:"s2___3z1Hl",listActive:"listActive___1B21p",os:"os___2rPuf",btns:"btns___3SwkA",btnsWrap:"btnsWrap___30oSS",icon:"icon___IUU5o",btn:"btn___GdOfs",d1:"d1___uGVV7",d2:"d2___12wBt",shrink:"shrink___tBEU_",elseShrink:"elseShrink___1vnuF",right:"right___27lwg",addIcon:"addIcon___3jWNX"}},bQjk:function(M,Y,o){(function(L,g,A){M.exports=Y=g(o("Ib8C"),o("OLod"))})(this,function(L){return function(g){var A=L,b=A.lib,y=b.CipherParams,x=A.enc,w=x.Hex,f=A.format,_=f.Hex={stringify:function(d){return d.ciphertext.toString(w)},parse:function(d){var r=w.parse(d);return y.create({ciphertext:r})}}}(),L.format.Hex})},bT9E:function(M,Y,o){"use strict";o.d(Y,"a",function(){return g});var L=o("VTBJ");function g(A,b){var y=Object(L.a)({},A);return Array.isArray(b)&&b.forEach(function(x){delete y[x]}),y}},bUJZ:function(M,Y){M.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAABq1JREFUWAmVWGuIVVUU/vaZ2zjjOC9TwzFtwAjKHlJBNj4IYgJp/hghIWEE/ahAlCypqB8JoSiRJljQw6KoEGz6oQmNvxqdoB9hailZoZbj2xlndHzMvWf3rX3OOnefc888XLDv2nvttdda+1tr73PONbhJsnZdM64NPsll7YCZBYQtQMAmFPayz2ZPcNCFmvpdxrzR56bG+WPGqQc79PoShOEKGLMQ1hbcOstfsSA8j4wpcrIbQbDFTFzfmaeSlY0ZkB14bT5suIFBtGUXMzj6YzTChbQvXMifN+ghemtMw8Z90WT+74gBWbu9Cv0979HJyvyllI6JkKcjRkQ/MJvR1LbamKUlEWUpNyDbt6oJpeJ2GmCdeDQaAp7ayN14B4b1VVVYapo39Wd1KwJywVy/Tnjt3VnlcsHosixEIleZrNa+cCF/3hzGhOq2bFBq2am7NJ3q2l1GZgSDQTMw9U2gqsmty/0pXQTOrmVMQ950xp4xXZjevthPX3RadMl/u1kzmTTpnM/Dy9xsDZ2FwBXWqG7L+aPJukepHQBF6oE6I5Ex7RCfwCpVUVOwx5/jabJ7dSKX+xucvBxoeBw4vRG4djBSl1M1kcFMfRHo5ym/9H3aTLYGNYVBsMDc8YU7fdxGTMXiBhR5bZTYhOe1kAdD5MIv/RgtrH+MY6IgTebqGaQl799DW7G+8LwmdpxOaYOG4RCyfz3DS89+p8Jx8xlvEZF7GcyN8pKgGhjkmTj9QVk2nl5gnjJ3ftsZ1VBxeIU7EAqhFkUWYv+iEydnPgcmd7BTJaOIBJ0LOyKkVZZw2b/mXbrsJzaxgpJOY48va8bg0FkO0gVOQQUli+PS8w1WKN+0oIj6idMKGBjsYNBRMBq8cKHMhlI7ijSAFhZwze06Aq6fBE5+FI/HMJi2z1iGOgoYLrVrhnIdll1VBjihFZjCB39xgCm6yszVAZMeAM7/AFz9hyvTHsvpinecjTcotRd4Yma6QMRxxXqu0DS5eSpommRc/6D8Akff5n10GGheBMxmodc9xMI+yomsx4yDzJAHa6YE1JIEpM6EC2UXRNLyb8PDRGeQzhmMXID9vzAGHuVGBtT7VY6BMQJkARR4d7REOyn7GVcvqGV6eOQv/sR0xce+xNQN/k7k7qEJ3uSlK2lTFRvOIA7DgMJhCytQCGV3EElzfxtZKwHPwsWf6ZioOOJ6GTfcz6Dm8vgz2MRmrJJiGX/G2IDGTrnbWW5od3PGXG9R5dmbtukR+qLBCxIQ17jGwM67JwAg8ypL5lVPOfUTHdc/VWBAvTR8VypwHWhBCxfyIW+eB1z+k6fpDCfieWEDR3j0z/HC5LxsQmQChKMKRMo2Zd6glwgVTyTPIjEgz6QEDdmJ7oJ9N0deMwuonR6hoTIfBUFpwjTqtMYIxIiornBp7rkY8+jZeSLgK8SeCDZxGDsXLs0tiLn0xalw2b3Que5IpvpuQ9QXuZCipPPF4dguud/XeRt2FXAj3IkgLDIdlY+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(M,Y,o){"use strict";var L=o("q1tI"),g=o.n(L),A=L.createContext(null);Y.a=A},c5Ni:function(M,Y,o){},cFMs:function(M,Y){M.exports="data:image/png;base64,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"},cRFk:function(M,Y,o){M.exports=o.p+"static/RepositoryNoneData.828085a8.png"},ch0t:function(M,Y,o){"use strict";o.r(Y);var L=o("+L6B"),g=o("2/Rp"),A=o("T2oS"),b=o("W9HT"),y=o("14J3"),x=o("BMrR"),w=o("2qtc"),f=o("kLXV"),_=o("jCWc"),d=o("kPKH"),r=o("qVdP"),u=o("jsC+"),t=o("k1fw"),a=o("lUTK"),n=o("BvKs"),i=o("9og8"),h=o("miYZ"),l=o("tsqr"),s=o("5Dmo"),p=o("3S7+"),O=o("tJVT"),S=o("PpiC"),v=o("Znn+"),P=o("ZTPi"),R=o("WmNS"),E=o.n(R),C=o("q1tI"),m=o.n(C),T=o("B6bo"),I=o.n(T),D=o("Ty5D"),N=o("9kvl"),z=o("BoS7"),F=o("Sdc0"),W=o("oBTY"),K=o("ozfa"),B=o("MJZm"),k=o("P5Jw"),G=o("5NDa"),ne=o("5rEg"),fe=o("y8nQ"),de=o("Vl3Y"),xe=o("aBPH"),Oe=o.n(xe),ce=function(Be){var at=Be.shixunsDetail,it=Be.globalSetting,Me=Be.loading,Ye=Be.user,ut=Be.dispatch,mt=Be.isRepository,Pt=Object(S.a)(Be,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),jt=Object(D.h)(),et=Object(D.i)(),Dt=Object(C.useState)({}),Ht=Object(O.a)(Dt,2),bn=Ht[0],Cn=Ht[1],Yn=Object(C.useRef)(),qn=de.a.useForm(),Pn=Object(O.a)(qn,1),cn=Pn[0],xr=Object(C.useState)(""),wr=Object(O.a)(xr,2),Rr=wr[0],cr=wr[1];Object(C.useEffect)(function(){Pt.visible&&cn.resetFields()},[Pt.visible]),Object(C.useEffect)(function(){var sn=sessionStorage.getItem("pathArray");if(sn){var Zt=sn.split(",").join("/"),Tn=Zt.indexOf("/")===0?Zt.substr(1):Zt;cr(Tn)}},[]),Object(C.useEffect)(function(){var sn,Zt;Yn.current=(sn=jt.pathname)===null||sn===void 0||((Zt=sn.split("/"))===null||Zt===void 0)?void 0:Zt[2]},[]);var Ur=function(){var sn=Object(i.a)(E.a.mark(function Zt(){var Tn,jr,jn=arguments;return E.a.wrap(function(Wn){for(;;)switch(Wn.prev=Wn.next){case 0:return Tn=jn.length>0&&jn[0]!==void 0?jn[0]:{},Wn.next=3,ut({type:"shixunsDetail/addRepositoryFile",payload:{id:et.id,message:Tn.commitMessage,content:"",path:(Pt.defaultPath?Pt.defaultPath+"/":"")+Tn.path+"/"+(Tn.file||".gitkeep"),secret_repository:mt?void 0:!0}});case 3:jr=Wn.sent,jr!=null&&jr.url&&(l.b.success("\u6DFB\u52A0\u6210\u529F"),Pt.onOK({path:(Pt.defaultPath?Pt.defaultPath+"/":"")+Tn.path+"/"+(Tn.file||".gitkeep"),name:Tn.path.split("/")[Tn.path.split("/").length-1]}),Pt.onClose());case 5:case"end":return Wn.stop()}},Zt)}));return function(){return sn.apply(this,arguments)}}(),yr=function(){var Zt,Tn;N.d.push("/shixuns/".concat(Yn.current,"/").concat((Zt=jt.pathname)===null||Zt===void 0||((Tn=Zt.split("/"))===null||Tn===void 0)?void 0:Tn[3]).concat(Rr?"/master/shixun_show/".concat(Rr):""))};return m.a.createElement(f.a,{width:"60%",centered:!0,visible:Pt.visible,wrapClassName:Oe.a.modal,onOk:function(){cn.submit()},onCancel:Pt.onClose,title:"\u65B0\u5EFA\u6587\u4EF6\u5939"},m.a.createElement("section",{className:Oe.a.bg},m.a.createElement("div",{className:Oe.a.wrap},m.a.createElement(de.a,{className:"mt10",form:cn,scrollToFirstError:!0,layout:"vertical",onFinish:Ur,onChange:function(){var Zt,Tn,jr,jn,$n=Object(t.a)({},cn.getFieldsValue()),Wn=$n==null||((Zt=$n.path)===null||Zt===void 0)?void 0:Zt.split(""),pe=$n==null||((Tn=$n.file)===null||Tn===void 0)?void 0:Tn.split("");Wn!=null&&(jr=Wn.filter(function(V){return V=="/"}))!==null&&jr!==void 0&&jr.length&&($n.path=$n.path.substring(0,$n.path.length-1)),pe!=null&&(jn=pe.filter(function(V){return V=="/"}))!==null&&jn!==void 0&&jn.length&&($n.file=$n.file.substring(0,$n.path.length-1)),cn.setFieldsValue(Object(t.a)({},$n)),Cn($n)}},m.a.createElement(de.a.Item,{label:"\u6587\u4EF6\u5939\u540D\u79F0\uFF1A",name:"path"},m.a.createElement(x.a,null,m.a.createElement(d.a,null,m.a.createElement("span",{className:Oe.a.filePath},Pt.defaultPath+"/")),m.a.createElement(d.a,{flex:"1"},m.a.createElement(de.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"}]},m.a.createElement(ne.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0",size:"large"}))))),m.a.createElement(de.a.Item,{label:"\u6587\u4EF6\u540D\u79F0\uFF1A",name:"file"},m.a.createElement(ne.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"})),m.a.createElement(de.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"}]},m.a.createElement(ne.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"}))))))},be=Object(N.a)(function(bt){var Be=bt.shixunsDetail,at=bt.loading,it=bt.globalSetting,Me=bt.user;return{shixunsDetail:Be,globalSetting:it,user:Me,loading:at.models.index}})(ce),ve=o("7ahc"),ue=function(Be){var at=Be.shixunsDetail,it=Be.globalSetting,Me=Be.loading,Ye=Be.user,ut=Be.dispatch,mt=Be.isRepository,Pt=Object(S.a)(Be,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),jt=Object(D.h)(),et=Object(D.i)(),Dt=Object(C.useState)({}),Ht=Object(O.a)(Dt,2),bn=Ht[0],Cn=Ht[1],Yn=Object(C.useRef)(),qn=de.a.useForm(),Pn=Object(O.a)(qn,1),cn=Pn[0],xr=Object(C.useState)(""),wr=Object(O.a)(xr,2),Rr=wr[0],cr=wr[1];Object(C.useEffect)(function(){Pt.visible&&cn.resetFields()},[Pt.visible]),Object(C.useEffect)(function(){var sn=sessionStorage.getItem("pathArray");if(sn){var Zt=sn.split(",").join("/"),Tn=Zt.indexOf("/")===0?Zt.substr(1):Zt;cr(Tn)}},[]),Object(C.useEffect)(function(){var sn,Zt;Yn.current=(sn=jt.pathname)===null||sn===void 0||((Zt=sn.split("/"))===null||Zt===void 0)?void 0:Zt[2]},[]);var Ur=function(){var sn=Object(i.a)(E.a.mark(function Zt(){var Tn,jr,jn=arguments;return E.a.wrap(function(Wn){for(;;)switch(Wn.prev=Wn.next){case 0:return Tn=jn.length>0&&jn[0]!==void 0?jn[0]:{},Wn.next=3,ut({type:"shixunsDetail/addRepositoryFile",payload:{id:et.id,message:Tn.commitMessage,content:Tn.codeMirror,path:(Pt.defaultPath?Pt.defaultPath+"/":"")+Tn.path,secret_repository:mt?void 0:!0}});case 3:jr=Wn.sent,jr!=null&&jr.url&&(l.b.success("\u6DFB\u52A0\u6210\u529F"),Pt.onOK({path:(Pt.defaultPath?Pt.defaultPath+"/":"")+Tn.path,name:Tn.path.split("/")[Tn.path.split("/").length-1]}),Pt.onClose());case 5:case"end":return Wn.stop()}},Zt)}));return function(){return sn.apply(this,arguments)}}(),yr=function(){var Zt,Tn;N.d.push("/shixuns/".concat(Yn.current,"/").concat((Zt=jt.pathname)===null||Zt===void 0||((Tn=Zt.split("/"))===null||Tn===void 0)?void 0:Tn[3]).concat(Rr?"/master/shixun_show/".concat(Rr):""))};return m.a.createElement(f.a,{width:"60%",visible:Pt.visible,wrapClassName:Oe.a.modal,centered:!0,onOk:function(){cn.submit()},onCancel:Pt.onClose,title:"\u65B0\u5EFA\u6587\u4EF6"},m.a.createElement("section",{className:Oe.a.bg},m.a.createElement("div",{className:Oe.a.wrap},m.a.createElement(de.a,{className:"mt10",form:cn,scrollToFirstError:!0,layout:"vertical",onFinish:Ur,onChange:function(){var Zt,Tn,jr=Object(t.a)({},cn.getFieldsValue()),jn=jr==null||((Zt=jr.path)===null||Zt===void 0)?void 0:Zt.split("");(jn==null||((Tn=jn.filter(function($n){return $n=="/"}))===null||Tn===void 0)?void 0:Tn.length)>1&&(jr.path=jr.path.substring(0,jr.path.length-1)),cn.setFieldsValue(Object(t.a)({},jr)),Cn(jr)}},m.a.createElement(de.a.Item,{label:"\u6587\u4EF6\u540D\u79F0\u6216\u6587\u4EF6\u8DEF\u5F84\uFF1A",name:"path"},m.a.createElement(x.a,null,m.a.createElement(d.a,null,m.a.createElement("span",{className:Oe.a.filePath},Pt.defaultPath+"/")),m.a.createElement(d.a,{flex:"1"},m.a.createElement(de.a.Item,{name:"path",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},m.a.createElement(ne.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0",size:"large"}))))),m.a.createElement(de.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"}]},m.a.createElement(ne.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"})),m.a.createElement("div",{className:"mt10 mb20"},m.a.createElement(de.a.Item,{name:"codeMirror",label:"\u6587\u4EF6\u5185\u5BB9\uFF1A",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5185\u5BB9"}]},m.a.createElement(ve.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"]}})))))))},se=Object(N.a)(function(bt){var Be=bt.shixunsDetail,at=bt.loading,it=bt.globalSetting,Me=bt.user;return{shixunsDetail:Be,globalSetting:it,user:Me,loading:at.models.index}})(ue),q=function(Be){var at=Be.shixunsDetail,it=Be.globalSetting,Me=Be.loading,Ye=Be.user,ut=Be.dispatch,mt=Be.isRepository,Pt=Object(S.a)(Be,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),jt=Object(D.h)(),et=Object(D.i)(),Dt=Object(C.useState)({}),Ht=Object(O.a)(Dt,2),bn=Ht[0],Cn=Ht[1],Yn=Object(C.useRef)(),qn=de.a.useForm(),Pn=Object(O.a)(qn,1),cn=Pn[0],xr=Object(C.useState)(""),wr=Object(O.a)(xr,2),Rr=wr[0],cr=wr[1],Ur=Object(C.useState)(""),yr=Object(O.a)(Ur,2),sn=yr[0],Zt=yr[1];Object(C.useEffect)(function(){Pt.visible&&cn.resetFields()},[Pt.visible]),Object(C.useEffect)(function(){var jn=Pt.defaultPath.split("/");jn.length===1?(cr(""),Zt(Pt.defaultPath)):(Zt(jn.pop()),cr(jn.join("/")+"/"))},[Pt.defaultPath]),Object(C.useEffect)(function(){var jn,$n;Yn.current=(jn=jt.pathname)===null||jn===void 0||(($n=jn.split("/"))===null||$n===void 0)?void 0:$n[2]},[]);var Tn=function(){var jn=Object(i.a)(E.a.mark(function $n(){var Wn,pe,V=arguments;return E.a.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return Wn=V.length>0&&V[0]!==void 0?V[0]:{},oe.next=3,ut({type:"shixunsDetail/moveGitFile",payload:{id:et.id,from:Pt.defaultPath,to:Rr+Wn.path,message:Wn.commitMessage||"".concat(Pt.defaultPath," rename to ").concat(Rr).concat(Wn.path," "),secret_repository:mt}});case 3:pe=oe.sent,(pe==null?void 0:pe.status)===0&&(l.b.success("\u6DFB\u52A0\u6210\u529F"),Pt.onOK({path:Wn.path,name:Wn.path}),Pt.onClose());case 5:case"end":return oe.stop()}},$n)}));return function(){return jn.apply(this,arguments)}}(),jr=function(){var $n,Wn;N.d.push("/shixuns/".concat(Yn.current,"/").concat(($n=jt.pathname)===null||$n===void 0||((Wn=$n.split("/"))===null||Wn===void 0)?void 0:Wn[3]).concat(Rr?"/master/shixun_show/".concat(Rr):""))};return m.a.createElement(f.a,{width:"40%",visible:Pt.visible,wrapClassName:Oe.a.modal,centered:!0,onOk:function(){cn.submit()},onCancel:Pt.onClose,title:"\u63D0\u4EA4\u8BF4\u660E"},m.a.createElement("section",{className:Oe.a.bg},m.a.createElement("div",{className:Oe.a.wrap},m.a.createElement(de.a,{className:"mt10",form:cn,scrollToFirstError:!0,layout:"vertical",onFinish:Tn,onChange:function(){var $n,Wn,pe=Object(t.a)({},cn.getFieldsValue()),V=pe==null||(($n=pe.path)===null||$n===void 0)?void 0:$n.split("");(V==null||((Wn=V.filter(function(Z){return Z=="/"}))===null||Wn===void 0)?void 0:Wn.length)>1&&(pe.path=pe.path.substring(0,pe.path.length-1)),cn.setFieldsValue(Object(t.a)({},pe)),Cn(pe)}},m.a.createElement(de.a.Item,{label:"\u91CD\u547D\u540D\uFF1A",name:"path"},m.a.createElement(x.a,null,m.a.createElement(d.a,{flex:"1"},m.a.createElement(de.a.Item,{name:"path",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},m.a.createElement(ne.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0",size:"large",defaultValue:sn}))))),m.a.createElement(de.a.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage"},m.a.createElement(ne.a,{placeholder:"\u5982\u4E0D\u586B\u5199\uFF0C\u9ED8\u8BA4\u63D0\u4EA4\u4FE1\u606F\u662F\uFF08".concat(Pt.defaultPath," rename to \u65B0\u7684\u540D\u79F0 \uFF09"),size:"large"}))))))},me=Object(N.a)(function(bt){var Be=bt.shixunsDetail,at=bt.loading,it=bt.globalSetting,Me=bt.user;return{shixunsDetail:Be,globalSetting:it,user:Me,loading:at.models.index}})(q),re=o("DZo9"),ie=o("8z0m"),we=o("m3rI"),le=o("8j3D"),$=o("RC3E"),J=o.n($),te=ie.a.Dragger,De=function(Be){var at=Be.shixunsDetail,it=Be.globalSetting,Me=Be.loading,Ye=Be.user,ut=Be.dispatch,mt=Be.isRepository,Pt=Object(S.a)(Be,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),jt=Object(D.h)(),et=Object(D.i)(),Dt=Object(C.useState)({}),Ht=Object(O.a)(Dt,2),bn=Ht[0],Cn=Ht[1],Yn=Object(C.useRef)(),qn=de.a.useForm(),Pn=Object(O.a)(qn,1),cn=Pn[0],xr=Object(C.useState)([]),wr=Object(O.a)(xr,2),Rr=wr[0],cr=wr[1],Ur=Object(C.useState)(),yr=Object(O.a)(Ur,2),sn=yr[0],Zt=yr[1],Tn;Object(C.useEffect)(function(){Pt.visible&&(cn.resetFields(),cr([]))},[Pt.visible]),Object(C.useEffect)(function(){Yn.current=et.id},[]),Object(C.useEffect)(function(){var V=sessionStorage.getItem("pathArray");if(V){var Z=V.split(",").join("/"),oe=Z.indexOf("/")===0?Z.substr(1):Z;Zt(oe)}},[]);var jr=function(Z){if(Tn=Z.file.name,Z.file.status==="done"||Z.file.status==="uploading"){var oe,Ce,he;if(cr(Z.fileList),!Z.file.response)return;if(((oe=Z.file.response)===null||oe===void 0?void 0:oe.status)===0){l.b.success("\u4E0A\u4F20\u6210\u529F\uFF01");return}cr(Rr.filter(function(ct){return ct.uid!==Z.file.uid})),((Ce=Z.file.response)===null||Ce===void 0?void 0:Ce.message)&&l.b.info((he=Z.file.response)===null||he===void 0?void 0:he.message)}},jn=function(){var V=Object(i.a)(E.a.mark(function Z(oe){var Ce;return E.a.wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:if(oe.response){ct.next=3;break}return l.b.info("\u8FD8\u672A\u4E0A\u4F20\u5B8C\u6210\uFF0C\u65E0\u6CD5\u8FDB\u884C\u5220\u9664\u64CD\u4F5C\uFF01"),ct.abrupt("return");case 3:return ct.next=5,ut({type:"shixunsDetail/deleteGitFile",payload:{id:et.id,path:sn?"".concat(sn,"/").concat(oe.name):oe.name,message:cn.getFieldValue("commitMessage")||"\u5220\u9664\u4E86".concat(sn?"".concat(sn,"/").concat(oe.name):oe.name),secret_repository:mt?null:!0}});case 5:Ce=ct.sent,Ce.status===0&&(cr(Rr.filter(function(rn){return rn.uid!==oe.uid})),l.b.info("\u5220\u9664\u6210\u529F"));case 7:case"end":return ct.stop()}},Z)}));return function(oe){return V.apply(this,arguments)}}(),$n={height:300,multiple:!0,withCredentials:!0,data:function(){var V=Object(i.a)(E.a.mark(function oe(){return E.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.abrupt("return",new Promise(function(){var ct=Object(i.a)(E.a.mark(function rn(In,Vn){return E.a.wrap(function(En){for(;;)switch(En.prev=En.next){case 0:setTimeout(Object(i.a)(E.a.mark(function Xn(){var $r,ga;return E.a.wrap(function(dr){for(;;)switch(dr.prev=dr.next){case 0:return dr.next=2,cn.getFieldsValue();case 2:$r=dr.sent,ga=Object(t.a)(Object(t.a)({},{path:Pt.defaultPath?Pt.defaultPath:"",message:bn.commitMessage||"\u4E0A\u4F20\u4E86".concat(Tn)}),mt?{}:{secret_repository:!0}),In(ga);case 5:case"end":return dr.stop()}},Xn)})),200);case 1:case"end":return En.stop()}},rn)}));return function(rn,In){return ct.apply(this,arguments)}}()));case 1:case"end":return he.stop()}},oe)}));function Z(){return V.apply(this,arguments)}return Z}(),fileList:Rr,method:"post",action:"".concat(we.a.API_SERVER,"/api/shixuns/").concat(Yn.current,"/upload_git_file.json"),onChange:jr,onRemove:jn,beforeUpload:function(Z){Tn=Z.name}},Wn=function(){var V=Object(i.a)(E.a.mark(function Z(oe){return E.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,cn.validateFields();case 2:Pt.onClose(),Pt.onOK({path:Pt.defaultPath}),pe();case 5:case"end":return he.stop()}},Z)}));return function(oe){return V.apply(this,arguments)}}(),pe=function(){var Z,oe;N.d.push("/shixuns/".concat(Yn.current,"/").concat((Z=jt.pathname)===null||Z===void 0||((oe=Z.split("/"))===null||oe===void 0)?void 0:oe[3]).concat(sn?"/master/shixun_show/".concat(sn):""))};return m.a.createElement(f.a,{visible:Pt.visible,onOk:Wn,centered:!0,onCancel:Pt.onClose,width:"70%"},m.a.createElement("section",{className:J.a.bg},m.a.createElement("div",{className:J.a.wrap},m.a.createElement("div",{className:J.a.title},"\u4E0A\u4F20\u6587\u4EF6"),m.a.createElement(de.a,{className:"mt10",form:cn,scrollToFirstError:!0,layout:"vertical",onFinish:Wn,onValuesChange:function(){return Cn(Object(t.a)({},cn.getFieldsValue()))}},m.a.createElement(de.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"}]},m.a.createElement(ne.a,{placeholder:"\u5FC5\u586B\uFF0C\u63CF\u8FF0\u4E3B\u8981\u4FEE\u6539\u5185\u5BB9\uFF08\u76F8\u5F53\u4E8EGit Commit message\u7684Header\uFF09"})),m.a.createElement(de.a.Item,{label:"\u9009\u62E9\u6587\u4EF6",name:"file",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6"}]},m.a.createElement(te,$n,m.a.createElement("div",null,m.a.createElement("i",{className:"iconfont icon-shangchuan font50 ".concat(J.a.colorBlue)})),m.a.createElement("div",{className:"font14 mt30"},"\u62D6\u62FD\u6587\u4EF6\u6216",m.a.createElement("span",{className:"".concat(J.a.colorBlue," ml5")},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))))),m.a.createElement(le.a,{onFinish:function(Z){return Zt(Z)}})))},Te=Object(N.a)(function(bt){var Be=bt.shixunsDetail,at=bt.loading,it=bt.globalSetting,Me=bt.user;return{shixunsDetail:Be,globalSetting:it,user:Me,loading:at.models.index}})(De),ke=o("Bbdw"),tt=o.n(ke),ot=o("HpfO"),gt=o.n(ot),Et=function(Be){var at=Be.shixunsDetail,it=Be.globalSetting,Me=Be.loading,Ye=Be.dispatch,ut=Be.title,mt=Be.pathList,Pt=mt===void 0?[]:mt,jt=Be.showInputPath,et=jt===void 0?!1:jt,Dt=Be.isMergeSelectFile,Ht=Dt===void 0?!1:Dt,bn=Be.onFinish,Cn=bn===void 0?function(){}:bn,Yn=de.a.useForm(),qn=Object(O.a)(Yn,1),Pn=qn[0],cn=Object(D.i)(),xr=Object(D.h)(),wr=Object(C.useRef)(),Rr=Object(C.useState)(""),cr=Object(O.a)(Rr,2),Ur=cr[0],yr=cr[1],sn=Object(C.useState)(""),Zt=Object(O.a)(sn,2),Tn=Zt[0],jr=Zt[1],jn=Object(C.useState)([]),$n=Object(O.a)(jn,2),Wn=$n[0],pe=$n[1],V=Object(C.useState)([]),Z=Object(O.a)(V,2),oe=Z[0],Ce=Z[1];Object(C.useEffect)(function(){var tn,En;wr.current=((tn=xr.pathname)===null||tn===void 0||((En=tn.split("/"))===null||En===void 0)?void 0:En[3])==="repository"},[]),Object(C.useEffect)(function(){if(at.actionTabs.key!=="Repository-SelectFilePath")return;var tn=Pt.join("/"),En=[];Pt.map(function(Xn,$r){$r===0?En.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(Xn),path:tn}):En.push({val:"/".concat(Xn),path:tn})}),pe(En),yr(tn),jr(tn),he(tn)},[at.actionTabs.key]);var he=function(){var tn=Object(i.a)(E.a.mark(function En(Xn){var $r;return E.a.wrap(function(pa){for(;;)switch(pa.prev=pa.next){case 0:return pa.next=2,Ye({type:wr.current?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:cn.id,path:Xn}});case 2:$r=pa.sent,$r&&Ce($r.trees||[]);case 4:case"end":return pa.stop()}},En)}));return function(Xn){return tn.apply(this,arguments)}}(),ct=function(En){var Xn=Ur;En.type==="tree"&&(Wn.length?Wn.push({val:"/".concat(En.name),path:En.name}):Wn.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(En.name),path:En.name}),pe(Wn),Xn=Ur?"".concat(Ur,"/").concat(En.name):En.name,yr(Xn)),he(Xn)},rn=function(En,Xn){var $r=Wn.filter(function(pa,dr){return dr<=Xn});pe($r);var ga=$r.filter(function(pa,dr){return dr!==0}).map(function(pa){return pa.val}).join("").substr(1);yr(ga),he(ga)},In=function(){var tn=Object(i.a)(E.a.mark(function En(){var Xn,$r,ga;return E.a.wrap(function(dr){for(;;)switch(dr.prev=dr.next){case 0:if(Xn=Pn==null?void 0:Pn.getFieldsValue(),$r=Ur?"".concat(Ur).concat(Xn!=null&&Xn.name?"/".concat(Xn==null?void 0:Xn.name):""):Xn==null?void 0:Xn.name,!Ht){dr.next=6;break}return Cn($r),Vn(),dr.abrupt("return");case 6:if(!et){dr.next=16;break}return dr.next=9,Pn.validateFields();case 9:return dr.next=11,Ye({type:"shixunsDetail/uploadGitFolder",payload:Object(t.a)(Object(t.a)({},{id:cn.id,path:$r}),wr.current?{}:{secret_repository:!0})});case 11:ga=dr.sent,Cn(Tn),ga.status===0&&l.b.info("\u65B0\u5EFA\u6210\u529F"),dr.next=18;break;case 16:Cn($r),l.b.success("\u9009\u62E9\u6587\u4EF6\u76EE\u5F55\u6210\u529F");case 18:Vn();case 19:case"end":return dr.stop()}},En)}));return function(){return tn.apply(this,arguments)}}(),Vn=function(){Ye({type:"shixunsDetail/setActionTabs",payload:{}}),Pn.resetFields()};return m.a.createElement(f.a,{centered:!0,title:ut||"\u65B0\u5EFA\u6587\u4EF6\u5939",closable:!1,keyboard:!1,visible:at.actionTabs.key==="Repository-SelectFilePath",onOk:In,onCancel:Vn},m.a.createElement("div",{className:gt.a.wrap},m.a.createElement("div",{className:gt.a.content},m.a.createElement("div",{className:gt.a.mainPathWrap},!!(Wn!=null&&Wn.length)&&Wn.map(function(tn,En){return m.a.createElement("a",{key:En,onClick:function(){return rn(tn,En)}},tn.val)})),!!(oe!=null&&oe.length)&&oe.map(function(tn,En){return tn.type==="tree"&&m.a.createElement("a",{key:En,onClick:function(){return ct(tn)}},m.a.createElement("i",{className:"iconfont icon-wenjianjia ".concat(gt.a.colorBlue)}),tn.name)})),m.a.createElement("label",{className:"mt5"},"\u9009\u4E2D\u7684\u65B0\u5EFA\u6587\u4EF6\u5939\u76EE\u5F55\uFF1A"),m.a.createElement("div",{className:"mt5 mb5"},Ur),et&&m.a.createElement(de.a,{form:Pn,scrollToFirstError:!0,className:"mt20"},m.a.createElement(de.a.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},m.a.createElement(ne.a,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u6587\u4EF6\u5939\u540D/\u5B50\u6587\u4EF6\u5939\u540D\u3002\uFF08\u5982\uFF1Asrc/step1\uFF09"})))))},xt=Object(N.a)(function(bt){var Be=bt.shixunsDetail,at=bt.loading,it=bt.globalSetting;return{shixunsDetail:Be,globalSetting:it,loading:at.models.index}})(Et),St=o("GZ0F"),Je=o("8Skl"),Ue=o("HBuW"),ft=o("1vsH"),kt=o("NLgs"),ht=o("lzim"),_t=B.a.DirectoryTree,Qe=function(Be){var at,it,Me,Ye,ut,mt,Pt,jt=Be.shixunsDetail,et=Be.globalSetting,Dt=Be.loading,Ht=Be.user,bn=Be.activeKey,Cn=Be.dispatch,Yn=Be.practiceSetting,qn=Be.isRepository,Pn=Be.treeData,cn=Be.setTreeData,xr=Object(S.a)(Be,["shixunsDetail","globalSetting","loading","user","activeKey","dispatch","practiceSetting","isRepository","treeData","setTreeData"]),wr=Object(D.i)(),Rr=Object(D.h)(),cr=Object(C.useState)(),Ur=Object(O.a)(cr,2),yr=Ur[0],sn=Ur[1],Zt=Object(C.useState)(!1),Tn=Object(O.a)(Zt,2),jr=Tn[0],jn=Tn[1],$n=Object(C.useState)(!1),Wn=Object(O.a)($n,2),pe=Wn[0],V=Wn[1],Z=Object(C.useState)(!1),oe=Object(O.a)(Z,2),Ce=oe[0],he=oe[1],ct=Object(C.useState)(!1),rn=Object(O.a)(ct,2),In=rn[0],Vn=rn[1],tn=Object(C.useState)(""),En=Object(O.a)(tn,2),Xn=En[0],$r=En[1],ga=Object(C.useState)([]),pa=Object(O.a)(ga,2),dr=pa[0],za=pa[1],ja=Object(C.useState)([]),Ra=Object(O.a)(ja,2),Ha=Ra[0],Sa=Ra[1],Ja=Object(C.useState)([]),ka=Object(O.a)(Ja,2),li=ka[0],oi=ka[1],ua=Object(C.useState)(!1),fa=Object(O.a)(ua,2),oa=fa[0],ye=fa[1],lt=Object(C.useState)(),Mt=Object(O.a)(lt,2),wt=Mt[0],Wt=Mt[1],Lt=Object(C.useState)(),Xt=Object(O.a)(Lt,2),en=Xt[0],vn=Xt[1],pn=Object(C.useState)(""),Nn=Object(O.a)(pn,2),wn=Nn[0],nn=Nn[1],Rn=Object(C.useState)(),gn=Object(O.a)(Rn,2),kn=gn[0],Dn=gn[1],Jn=Object(C.useState)(!1),hr=Object(O.a)(Jn,2),Br=hr[0],xn=hr[1];Object(C.useEffect)(function(){cn([]),Un(""),localStorage.warehouseHideTip||ye(!0)},[Rr.pathname,qn]);var Yt=function(){var rr=Object(i.a)(E.a.mark(function Gt(){var Qt,Jt,zn=arguments;return E.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:return Qt=zn.length>0&&zn[0]!==void 0?zn[0]:"",Ln.next=3,Object(Ue.Gb)({id:wr.id,secret_dir_path:Qt});case 3:Jt=Ln.sent,Jt&&Dn(Qt);case 5:case"end":return Ln.stop()}},Gt)}));return function(){return rr.apply(this,arguments)}}(),dn=function(Gt){var Qt;return m.a.createElement(n.a,{className:tt.a.menu,onClick:function(zn){$r(Gt.path||"");switch(zn.key){case"1":Object(ft.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u65B0\u5EFA\u6587\u4EF6"]),jn(!0);break;case"2":Object(ft.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u65B0\u5EFA\u6587\u4EF6\u5939"]),he(!0);break;case"3":Object(ft.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u4E0A\u4F20"]),Vn(!0);break;case"4":Object(ft.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u91CD\u547D\u540D"]),V(!0);break;case"5":Object(ft.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u5220\u9664"]),Ar(Gt.path,Gt.name,Gt);break;case"6":Object(ft.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u590D\u5236\u8DEF\u5F84"]),Mr(Gt);break}}},(Gt.type==="topTree"||Gt.type==="tree")&&m.a.createElement(n.a.Item,{key:"1"},"\u65B0\u5EFA\u6587\u4EF6"),(Gt.type==="topTree"||Gt.type==="tree")&&m.a.createElement(n.a.Item,{key:"2"},"\u65B0\u5EFA\u6587\u4EF6\u5939"),(Gt.type==="topTree"||Gt.type==="tree")&&m.a.createElement(n.a.Item,{key:"3"},"\u4E0A\u4F20"),Gt.type!=="topTree"&&Gt.type!=="tree"&&(jt==null||((Qt=jt.detail)===null||Qt===void 0)?void 0:Qt.public)<2&&m.a.createElement(n.a.Item,{key:"4"},"\u91CD\u547D\u540D"),Gt.type!=="topTree"&&m.a.createElement(k.CopyToClipboard,{text:"/data/workspace/myshixun/".concat(qn?"":"secret/").concat(Gt==null?void 0:Gt.path),onCopy:function(){return l.b.success("\u590D\u5236\u6210\u529F")}},m.a.createElement(n.a.Item,{key:"6"},m.a.createElement(m.a.Fragment,null,"\u590D\u5236\u8DEF\u5F84"))),Gt.type!=="topTree"&&m.a.createElement(n.a.Item,{key:"5"},"\u5220\u9664"))},An=function(Gt,Qt){return Gt.map(function(Jt){return Qt==""?Jt.path=Qt+Jt.name:Jt.path=Qt+"/"+Jt.name,Jt.title=m.a.createElement(x.a,{className:"font14"},m.a.createElement(d.a,{flex:"1"},m.a.createElement(x.a,null,m.a.createElement(d.a,{flex:"20px"},Jt.type==="blob"&&m.a.createElement("span",{className:"iconfont icon-wenjian11 font12"})),m.a.createElement(d.a,{flex:"1"},m.a.createElement("span",{className:" multi_ellipsis1"},Jt.name)))),m.a.createElement(d.a,null,(Jt.type==="blob"||Jt.type==="tree")&&m.a.createElement(u.a,{overlay:dn(Jt),className:tt.a.ellipsis},m.a.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"})))),Jt.disableCheckbox=yr&&yr!==Jt.name,Jt.className=Jt.type==="tree"?tt.a.pl23:"",Jt.checkable=Jt.type!=="tree",Jt.isLeaf=Jt.type!=="tree",Jt.children=Jt.type==="tree"&&[],Jt.key=Jt.path,Jt})},qt=function(Gt){Cn({type:"practiceSetting/setSideBarTabs",payload:{selectPath:Gt}})},Sn=function(){var rr=Object(i.a)(E.a.mark(function Gt(Qt,Jt){var zn;return E.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:return zn=Qt.split("/"),Ln.next=3,Un(Xn);case 3:setTimeout(function(){qt(Qt),dr=[zn[0]||""],Ha=[Qt],Sa(Object(W.a)(Ha)),za(Object(W.a)(dr))},150);case 4:case"end":return Ln.stop()}},Gt)}));return function(Qt,Jt){return rr.apply(this,arguments)}}(),mn=function(Gt,Qt){if(Qt=="")Pn=Object(W.a)(Gt),cn(Object(W.a)(Gt));else{var Jt=Mn(Pn,Qt,Gt);Pn=Jt,cn(Object(W.a)(Jt))}};function Mn(rr,Gt,Qt){return rr.map(function(Jt){return Jt.key===Gt?(Jt.children=Object(W.a)(Qt),Object(t.a)({},Jt)):Jt.children?Object(t.a)(Object(t.a)({},Jt),{},{children:Mn(Jt.children,Gt,Qt)}):Jt})}var Un=function(){var rr=Object(i.a)(E.a.mark(function Gt(){var Qt,Jt,zn,tr,Ln,ar=arguments;return E.a.wrap(function(or){for(;;)switch(or.prev=or.next){case 0:return Qt=ar.length>0&&ar[0]!==void 0?ar[0]:"",or.next=3,Cn({type:qn?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:wr.id,path:Qt}});case 3:return Jt=or.sent,Jt&&((zn=Jt.trees)!==null&&zn!==void 0&&zn.length?(Ln=An(Object(W.a)(Jt.trees),Qt),mn(Ln,Qt),oi(Jt.trees||[]),vn(Qt||""),console.log("handleGetRepository:",Ln,Qt),setTimeout(function(){return console.log(Pn,Jt.trees,Qt,999999)},2e3)):Qt==""&&cn([]),Wt(((tr=Jt.commits)===null||tr===void 0?void 0:tr[0])||{})),or.abrupt("return",Jt);case 6:case"end":return or.stop()}},Gt)}));return function(){return rr.apply(this,arguments)}}(),ir=function(){var rr=Object(i.a)(E.a.mark(function Gt(Qt){return E.a.wrap(function(zn){for(;;)switch(zn.prev=zn.next){case 0:return zn.abrupt("return",new Promise(function(){var tr=Object(i.a)(E.a.mark(function Ln(ar,ur){return E.a.wrap(function(Zr){for(;;)switch(Zr.prev=Zr.next){case 0:return Qt.children.length&&ar(),nn(Qt.path),Zr.next=4,Un(Qt.path);case 4:ar();case 5:case"end":return Zr.stop()}},Ln)}));return function(Ln,ar){return tr.apply(this,arguments)}}()));case 1:case"end":return zn.stop()}},Gt)}));return function(Qt){return rr.apply(this,arguments)}}(),er=function(){var rr=Object(i.a)(E.a.mark(function Gt(Qt,Jt){var zn,tr;return E.a.wrap(function(ar){for(;;)switch(ar.prev=ar.next){case 0:if(console.log("handleSelectTree",Qt,Jt.nativeEvent.target.nodeName,Jt),zn=function(){qt(Jt.node.path),Qt=[Jt.node.path],Sa(Object(W.a)(Qt))},!(Jt.nativeEvent.target.nodeName==="svg"||Jt.nativeEvent.target.nodeName==="LI"||Jt.nativeEvent.target.nodeName==="I")){ar.next=4;break}return ar.abrupt("return");case 4:Jt.node.type==="blob"&&(Yn!=null&&(tr=Yn.sideBar)!==null&&tr!==void 0&&tr.confirmLeave?f.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(){zn(),Cn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})}}):zn());case 5:case"end":return ar.stop()}},Gt)}));return function(Qt,Jt){return rr.apply(this,arguments)}}(),Ar=function(Gt,Qt,Jt){f.a.confirm({centered:!0,title:"\u786E\u8BA4\u9700\u8981\u5220\u9664\u8BE5\u6587\u4EF6".concat(Jt.children?"\u5939":"","?"),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){var zn=Object(i.a)(E.a.mark(function Ln(){var ar,ur,or;return E.a.wrap(function(sr){for(;;)switch(sr.prev=sr.next){case 0:return sr.next=2,Cn({type:"shixunsDetail/deleteGitFile",payload:{id:wr.id,path:Gt,message:"\u5220\u9664".concat(Gt),secret_repository:qn?null:!0}});case 2:if(ar=sr.sent,ur=Gt.split("/"),!((ar==null?void 0:ar.status)===0)){sr.next=20;break}return l.b.info("\u5220\u9664\u6210\u529F"),ur.splice(ur.length-1,1),sr.next=9,Un(ur.length>1?ur.join("/"):"");case 9:if(or=sr.sent,!(or!=null&&or.trees)){sr.next=13;break}sr.next=16;break;case 13:return ur.splice(ur.length-1,1),sr.next=16,Un(ur.length>1?ur.join("/"):"");case 16:return qt(""),sr.abrupt("return",!0);case 20:(ar==null?void 0:ar.status)===-3&&f.a.confirm({title:"\u5220\u9664\u5931\u8D25",content:m.a.createElement("div",null,"\u8BE5\u6587\u4EF6\u201C",Gt,"\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(wr.id,"/edit/").concat(ar==null?void 0:ar.message,"/tab=2")}});case 21:case"end":return sr.stop()}},Ln)}));function tr(){return zn.apply(this,arguments)}return tr}()})},Mr=function(Gt){console.log(Gt,"item")},Qn=function(){var rr=Object(i.a)(E.a.mark(function Gt(Qt,Jt){return E.a.wrap(function(tr){for(;;)switch(tr.prev=tr.next){case 0:if(console.log("handleExpand",Jt),!(Jt.nativeEvent.target.nodeName==="svg"||Jt.nativeEvent.target.nodeName==="path"||Jt.nativeEvent.target.nodeName==="LI")){tr.next=5;break}return tr.abrupt("return",!0);case 5:return tr.next=7,ir(Jt.node);case 7:dr.includes(Jt.node.path)?dr.splice(dr.indexOf(Jt.node.path),1):dr.push(Jt.node.path);case 8:za(Object(W.a)(dr));case 9:case"end":return tr.stop()}},Gt)}));return function(Qt,Jt){return rr.apply(this,arguments)}}(),Tr=function(){ye(!1),localStorage.warehouseHideTip=!0},mr=function(){var rr=Object(i.a)(E.a.mark(function Gt(Qt){var Jt,zn,tr,Ln,ar;return E.a.wrap(function(or){for(;;)switch(or.prev=or.next){case 0:tr="",or.t0=qn,or.next=or.t0===!0?4:or.t0===!1?9:11;break;case 4:return tr="\u5F00\u542F\u7248\u672C\u5E93",Ln="\u5F00\u542F",ar="\u4E0D\u5F00\u542F",zn=m.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"),or.abrupt("break",11);case 9:return jt!=null&&(Jt=jt.detail)!==null&&Jt!==void 0&&Jt.secret_repository?(tr="\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",Ln="\u786E\u5B9A",ar="\u53D6\u6D88",zn=m.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")):(tr="\u5F00\u542F\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",Ln="\u4E0D\u4F7F\u7528",ar="\u4F7F\u7528",zn=m.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")),or.abrupt("break",11);case 11:if(!(!qn&&Object(kt.b)(Cn,"\u4E0D\u80FD\u5F00\u542F/\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93"))){or.next=13;break}return or.abrupt("return");case 13:f.a.confirm({title:tr,okText:Ln,cancelText:ar,content:zn,onOk:function(){var sr;Object(ft.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93",tr]),!qn&&!(jt!=null&&(sr=jt.detail)!==null&&sr!==void 0&&sr.secret_repository)||Gr(Qt)},onCancel:function(){var sr;!qn&&!(jt!=null&&(sr=jt.detail)!==null&&sr!==void 0&&sr.secret_repository)&&Gr(Qt)}});case 14:case"end":return or.stop()}},Gt)}));return function(Qt){return rr.apply(this,arguments)}}(),Gr=function(){var rr=Object(i.a)(E.a.mark(function Gt(Qt){return E.a.wrap(function(zn){for(;;)switch(zn.prev=zn.next){case 0:if(!qn){zn.next=6;break}return zn.next=3,Object(Ue.r)(Object(t.a)({},wr));case 3:Cn({type:"practiceSetting/getCommonData",payload:Object(t.a)({},wr)}),zn.next=8;break;case 6:return zn.next=8,Object(Ue.t)(Object(t.a)(Object(t.a)({},wr),{},{is_secret_repository:Qt}));case 8:Un(),Cn({type:"shixunsDetail/getShixunsDetail",payload:{id:wr.id}});case 10:case"end":return zn.stop()}},Gt)}));return function(Qt){return rr.apply(this,arguments)}}(),Ir=function(Gt){console.log(Gt)},qr=function(){var rr=Object(i.a)(E.a.mark(function Gt(Qt){var Jt,zn,tr,Ln,ar,ur,or,Zr,sr,la,Xr;return E.a.wrap(function(Cr){for(;;)switch(Cr.prev=Cr.next){case 0:if(console.log(Qt),Jt=Qt.node.key,zn=Qt.dragNode.key,tr=Qt.node.pos.split("-"),Ln=Qt.dropPosition-Number(tr[tr.length-1]),!(Qt.dragNode.type==="tree")){Cr.next=8;break}return l.b.warn("\u4E0D\u652F\u6301\u6587\u4EF6\u5939\u79FB\u52A8\u76EE\u5F55"),Cr.abrupt("return");case 8:if(!(Qt.node.type!=="tree")){Cr.next=11;break}return l.b.warn("\u672A\u79FB\u52A8\u6587\u4EF6\u76EE\u5F55\u4F4D\u7F6E"),Cr.abrupt("return");case 11:return Cr.next=13,Cn({type:"shixunsDetail/moveGitFile",payload:{id:wr.id,from:Qt.dragNode.path,to:Qt.node.path+"/"+Qt.dragNode.name,message:"".concat(Qt.dragNode.path," move to ").concat(Qt.node.path+"/"+Qt.dragNode.name," ")}});case 13:if(ar=Cr.sent,!(ar.status===0)){Cr.next=26;break}return qt(""),Cr.next=18,Un("");case 18:ur=0;case 19:if(!(ur<dr.length)){Cr.next=26;break}if(!(dr[ur]!="")){Cr.next=23;break}return Cr.next=23,Un(dr[ur]);case 23:ur++,Cr.next=19;break;case 26:return Cr.abrupt("return");case 32:case"end":return Cr.stop()}},Gt)}));return function(Qt){return rr.apply(this,arguments)}}();return m.a.createElement("section",{className:tt.a.bg},m.a.createElement("div",{className:tt.a.contentbg},m.a.createElement("div",{className:tt.a.wrap},m.a.createElement(x.a,{className:tt.a.gitCode},m.a.createElement(d.a,{flex:"1"},m.a.createElement("span",{className:"iconfont icon-daimacangku2 mr8"}),qn?"\u4EE3\u7801\u4ED3\u5E93":"\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",m.a.createElement(F.a,{className:qn&&jt!==null&&jt!==void 0&&(at=jt.detail)!==null&&at!==void 0&&at.init_repository?"hide":"ml10",checked:qn?jt==null||((Me=jt.detail)===null||Me===void 0)?void 0:Me.init_repository:jt==null||((it=jt.detail)===null||it===void 0)?void 0:it.secret_repository,checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED",onChange:mr})),m.a.createElement(d.a,null,m.a.createElement(u.a,{overlay:dn({type:"topTree"}),className:"current"},m.a.createElement(p.a,{visible:oa,title:m.a.createElement("div",{className:"font16"},m.a.createElement(St.a,{style:{position:"relative",left:-35},onClick:function(){return Tr()}}),"\u70B9\u51FB\u6B64\u5904\u65B0\u5EFA\u6587\u4EF6\u3001\u65B0\u5EFA\u6587\u4EF6\u5939\u3001\u4E0A\u4F20\u6587\u4EF6\u3002",m.a.createElement("span",{onClick:function(){return Tr()},className:"iconfont icon-guanbi1 ml8 current font14"})),overlayClassName:tt.a.overlayClass,overlayStyle:{maxWidth:500},arrowPointAtCenter:!0,placement:"right",color:"#F7B500"},qn&&(jt==null||((Ye=jt.detail)===null||Ye===void 0)?void 0:Ye.init_repository)&&m.a.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"}),!qn&&(jt==null||((ut=jt.detail)===null||ut===void 0)?void 0:ut.secret_repository)&&m.a.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"}))))),!!Pn.length&&!qn&&m.a.createElement("div",{className:"mt20 pl20 pr20 font14 c-white"},m.a.createElement("div",null,"\u5B9E\u8BAD\u8BC4\u6D4B\u7684\u65F6\u5019\uFF0C\u7CFB\u7EDF\u4F1A\u4E34\u65F6\u5C06\u79C1\u5BC6\u4EE3\u7801\u5E93\u79FB\u52A8\u666E\u901A\u4EE3\u7801\u5E93\u7684secret\u76EE\u5F55\u4E0B\u9762\uFF0C\u8BC4\u6D4B\u7ED3\u675F\u4F1A\u6E05\u7A7Asecret\u76EE\u5F55\u5185\u5BB9\u3002\u5982\u679C\u79C1\u5BC6\u4EE3\u7801\u5E93\u4E2D\u5B58\u5728\u6587\u4EF6src/test.sh\uFF0C\u5728\u666E\u901A\u4EE3\u7801\u5E93\u8C03\u7528\u8BE5\u6587\u4EF6\u5219\u4F7F\u7528\u8DEF\u5F84\uFF1Asecret/src/test.sh")),Pn.length?m.a.createElement(m.a.Fragment,null,m.a.createElement("div",{className:tt.a.content},bn==="1"&&m.a.createElement("div",{className:tt.a.tips},"\u63D0\u793A\uFF1A",m.a.createElement("br",null),'\u4EE3\u7801\u8FD0\u884C\u5728\u670D\u52A1\u5668/data/workspace/myshixun/\u4E0B\uFF0C\u5982\u679C\u4EE3\u7801 \u9700\u8981\u7528\u5230\u6587\u4EF6\u8DEF\u5F84\u65F6\uFF0C\u60A8\u5C06\u9F20\u6807\u79FB\u5165\u4ED3\u5E93\u6587\u4EF6\u6216\u76EE\u5F55\u53F3\u4FA7\u7684"..." \u56FE\u6807\uFF0C\u9009\u62E9\u590D\u5236\u8DEF\u5F84\u5F97\u5230\u6587\u4EF6\u7684\u7EDD\u5BF9\u8DEF\u5F84\u3002'),m.a.createElement(_t,{disabled:!!Dt.effects["shixunsDetail/getFileContent"],multiple:!0,showIcon:!1,treeData:Pn,switcherIcon:m.a.createElement(Je.a,{style:{fontWeight:"bold",fontSize:14,position:"relative",top:3,marginLeft:22}}),onExpand:Qn,expandedKeys:dr,selectedKeys:Ha,onSelect:er,draggable:!0,onDragEnter:Ir,onDrop:qr,allowDrop:function(Gt){var Qt=Gt.dropNode,Jt=Gt.dropPosition;return!1}}))):"",!Pn.length&&qn&&(jt==null||((mt=jt.detail)===null||mt===void 0)?void 0:mt.init_repository)&&m.a.createElement(He,null),!Pn.length&&!qn&&(jt==null||((Pt=jt.detail)===null||Pt===void 0)?void 0:Pt.secret_repository)&&m.a.createElement(He,null))),m.a.createElement(me,{visible:pe,defaultPath:Xn,onClose:function(){return V(!1)},isRepository:!qn,onOK:function(){var rr=Object(i.a)(E.a.mark(function Gt(Qt){var Jt;return E.a.wrap(function(tr){for(;;)switch(tr.prev=tr.next){case 0:return Jt=Xn.split("/"),Jt.pop(),tr.next=4,Un(Jt.join("/"));case 4:qt("");case 5:case"end":return tr.stop()}},Gt)}));return function(Gt){return rr.apply(this,arguments)}}()}),m.a.createElement(se,{visible:jr,defaultPath:Xn,onClose:function(){return jn(!1)},isRepository:qn,onOK:function(Gt){Sn(Gt.path,Gt.name)}}),m.a.createElement(be,{visible:Ce,defaultPath:Xn,onClose:function(){return he(!1)},isRepository:qn,onOK:function(Gt){Sn(Gt.path,Gt.name)}}),m.a.createElement(Te,{defaultPath:Xn,visible:In,isRepository:qn,onClose:function(){return Vn(!1)},onOK:function(){var rr=Object(i.a)(E.a.mark(function Gt(Qt){var Jt;return E.a.wrap(function(tr){for(;;)switch(tr.prev=tr.next){case 0:return Jt=Xn.split("/"),tr.next=3,Un(Xn);case 3:dr=[Jt[0]||""],Ha=[Xn],Sa(Object(W.a)(Ha)),za(Object(W.a)(dr));case 7:case"end":return tr.stop()}},Gt)}));return function(Gt){return rr.apply(this,arguments)}}()}),m.a.createElement(xt,{pathList:Xn==null?void 0:Xn.split("/"),showInputPath:!0,isMergeSelectFile:Br,onFinish:function(Gt){Br?Yt(Gt):Un(Gt),xn(!1)}}))},He=function(){return m.a.createElement("div",{className:"mt20 pb50 ".concat(tt.a.nodata)},m.a.createElement("div",{className:tt.a.headLeft},"\u63D0\u793A\uFF1A",m.a.createElement("br",null),"\u6B64\u5904\u5B58\u653E\u672C\u5B9E\u8BAD\u6240\u9700\u7684\u6240\u6709\u4EE3\u7801\u7B49\u76F8\u5173\u6587\u4EF6\uFF0C\u4F60\u53EF\u4EE5\u76F4\u63A5\u5728\u5E73\u53F0\u4E0A\u521B\u5EFA\u6587\u4EF6\u76EE\u5F55\u4EE5\u53CA\u76F8\u5173\u4EE3\u7801\u6587\u4EF6",m.a.createElement("br",null)),m.a.createElement("img",{width:"100%",src:ht.v}))},Ge=Object(N.a)(function(bt){var Be=bt.shixunsDetail,at=bt.loading,it=bt.globalSetting,Me=bt.practiceSetting,Ye=bt.user;return{shixunsDetail:Be,globalSetting:it,user:Ye,practiceSetting:Me,loading:at}})(Qe),Ee=o("/zsF"),Ae=o("PArb"),Fe=o("yDYP"),We=o.n(Fe),Ke=function(Be){var at=Be.shixunsDetail,it=Be.globalSetting,Me=Be.loading,Ye=Be.user,ut=Be.dispatch,mt=Be.isRepository,Pt=Object(S.a)(Be,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),jt=Object(D.i)(),et=Object(C.useState)([]),Dt=Object(O.a)(et,2),Ht=Dt[0],bn=Dt[1];Object(C.useEffect)(function(){Cn()},[mt]);var Cn=function(){var Yn=Object(i.a)(E.a.mark(function qn(){var Pn;return E.a.wrap(function(xr){for(;;)switch(xr.prev=xr.next){case 0:return xr.next=2,ut({type:"shixunsDetail/getRepositoryCommit",payload:{id:jt.id,secret_repository:mt?void 0:!0}});case 2:Pn=xr.sent,Pn&&bn(Pn.commits||[]);case 4:case"end":return xr.stop()}},qn)}));return function(){return Yn.apply(this,arguments)}}();return m.a.createElement(m.a.Fragment,null,Ht==""&&m.a.createElement("div",{className:We.a.empty},m.a.createElement("img",{src:ht.k,width:"258"}),m.a.createElement("br",null),m.a.createElement("span",{className:"c-grey-c font14"},"\u6682\u65E0\u63D0\u4EA4\u8BB0\u5F55")),Ht!=""&&m.a.createElement("section",{className:We.a.bg},m.a.createElement("div",{className:We.a.wrap},m.a.createElement("div",{className:We.a.content},Ht==null?void 0:Ht.map(function(Yn){var qn,Pn;return m.a.createElement("div",null,m.a.createElement(x.a,{align:"middle",className:"c-white font16"},m.a.createElement(d.a,null,Yn.title)),m.a.createElement(x.a,{align:"middle",className:"mt20 "},m.a.createElement(d.a,null,m.a.createElement("img",{className:We.a.imageUrl,src:we.a.IMG_SERVER+"/"+((qn=Yn.author)===null||qn===void 0?void 0:qn.image_url)})),m.a.createElement(d.a,{className:We.a.blueLight},m.a.createElement("span",{className:"ml20"},(Pn=Yn.author)===null||Pn===void 0?void 0:Pn.username)),m.a.createElement(d.a,null,m.a.createElement("span",{className:"ml20 ".concat(We.a.blueLight)},"\u63D0\u4EA4\u4E8E"),m.a.createElement("span",{className:"ml20 ".concat(We.a.blueLight)},Yn.time))),m.a.createElement(Ae.a,{className:We.a.divider}))})))))},st=Object(N.a)(function(bt){var Be=bt.shixunsDetail,at=bt.loading,it=bt.globalSetting,Me=bt.user;return{shixunsDetail:Be,globalSetting:it,user:Me,loading:at.models.index}})(Ke),Ot=o("p5ED"),Bt=P.a.TabPane,an=function(Be){var at,it,Me,Ye,ut,mt,Pt,jt,et,Dt,Ht,bn,Cn,Yn,qn,Pn,cn,xr,wr,Rr=Be.globalSetting,cr=Be.loading,Ur=Be.dispatch,yr=Be.practiceSetting,sn=Be.shixunsDetail,Zt=Object(S.a)(Be,["globalSetting","loading","dispatch","practiceSetting","shixunsDetail"]),Tn=Object(C.useState)("1"),jr=Object(O.a)(Tn,2),jn=jr[0],$n=jr[1],Wn=Object(C.useState)("1"),pe=Object(O.a)(Wn,2),V=pe[0],Z=pe[1],oe=Object(C.useState)(),Ce=Object(O.a)(oe,2),he=Ce[0],ct=Ce[1],rn=Object(C.useRef)(),In=Object(C.useState)(!0),Vn=Object(O.a)(In,2),tn=Vn[0],En=Vn[1],Xn=Object(C.useState)(["2","1"]),$r=Object(O.a)(Xn,2),ga=$r[0],pa=$r[1],dr=Object(C.useState)([]),za=Object(O.a)(dr,2),ja=za[0],Ra=za[1],Ha=Object(C.useRef)(),Sa=Object(D.i)(),Ja=[{id:"1",name:"\u4EE3\u7801\u4ED3\u5E93"},{id:"2",name:m.a.createElement("span",null,m.a.createElement("span",null,"\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93"),m.a.createElement(p.a,{title:"\u79C1\u5BC6\u7248\u672C\u5E93\u7684\u6587\u4EF6\u5BF9\u5B66\u5458\u59CB\u7EC8\u9690\u85CF\uFF0C\u65E0\u6CD5\u8BBF\u95EE\u67E5\u770B\u3002"},m.a.createElement("i",{className:"iconfont icon-xiaowenhao",style:{marginLeft:2,fontSize:14}})))}];Object(C.useEffect)(function(){try{var ua,fa,oa,ye,lt;if(!!(sn!=null&&(ua=sn.fileContent)!==null&&ua!==void 0&&(fa=ua.content)!==null&&fa!==void 0&&(oa=fa.content)!==null&&oa!==void 0&&oa.length)||(sn==null||((ye=sn.fileContent)===null||ye===void 0||((lt=ye.content)===null||lt===void 0))?void 0:lt.content)==""){var Mt;if((sn==null||((Mt=sn.fileContent)===null||Mt===void 0)?void 0:Mt.file_type)==="txt"){var wt,Wt,Lt,Xt;rn.current=window.decodeURIComponent(escape(window.atob(sn==null||((wt=sn.fileContent)===null||wt===void 0||((Wt=wt.content)===null||Wt===void 0))?void 0:Wt.content))),he=window.decodeURIComponent(escape(window.atob(sn==null||((Lt=sn.fileContent)===null||Lt===void 0||((Xt=Lt.content)===null||Xt===void 0))?void 0:Xt.content))),ct(he)}else{var en,vn,pn,Nn;rn.current=sn==null||((en=sn.fileContent)===null||en===void 0||((vn=en.content)===null||vn===void 0))?void 0:vn.content,he=sn==null||((pn=sn.fileContent)===null||pn===void 0||((Nn=pn.content)===null||Nn===void 0))?void 0:Nn.content,ct(he)}}}catch(kn){var wn,nn,Rn,gn;rn.current=window.atob(sn==null||((wn=sn.fileContent)===null||wn===void 0||((nn=wn.content)===null||nn===void 0))?void 0:nn.content),he=window.atob(sn==null||((Rn=sn.fileContent)===null||Rn===void 0||((gn=Rn.content)===null||gn===void 0))?void 0:gn.content),ct(he),l.b.warn("\u8BF7\u786E\u8BA4\u6587\u4EF6\u5B57\u7B26\u96C6\u7F16\u7801\u662F\u5426\u4E3AUTF-8")}console.log("codeMirrorSourceValue1212:12",sn.fileContent.content)},[sn==null||((at=sn.fileContent)===null||at===void 0)?void 0:at.content]),Object(C.useEffect)(function(){var ua,fa=yr==null||((ua=yr.sideBar)===null||ua===void 0)?void 0:ua.selectPath.split("/");pa(fa)},[yr==null||((it=yr.sideBar)===null||it===void 0)?void 0:it.selectPath]);var ka=function(fa){ct(fa);var oa=-1;fa===rn.current?oa=0:oa=1,oa!==-1,Ur({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!!oa}})};Object(C.useEffect)(function(){new Promise(function(){var ua=Object(i.a)(E.a.mark(function fa(oa,ye){var lt,Mt,wt,Wt;return E.a.wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:if(!((yr==null||((lt=yr.sideBar)===null||lt===void 0)?void 0:lt.selectPath)!==""&&yr!==null&&yr!==void 0&&(Mt=yr.sideBar)!==null&&Mt!==void 0&&Mt.selectPath)){Xt.next=5;break}return Xt.next=3,Ur({type:"shixunsDetail/getFileContent",payload:{id:Sa.id,path:yr==null||((wt=yr.sideBar)===null||wt===void 0)?void 0:wt.selectPath,secret_repository:tn?null:!0}});case 3:Wt=Xt.sent,Wt!=null&&Wt.content||(Wt==null?void 0:Wt.content)==""||Ur({type:"practiceSetting/setSideBarTabs",payload:{selectPath:""}});case 5:case"end":return Xt.stop()}},fa)}));return function(fa,oa){return ua.apply(this,arguments)}}())},[yr==null||((Me=yr.sideBar)===null||Me===void 0)?void 0:Me.selectPath]);var li=m.a.createElement(n.a,{className:I.a.menu,onClick:function(fa){var oa;!(sn!=null&&(oa=sn.detail)!==null&&oa!==void 0&&oa.secret_repository)&&fa.key==="2"&&Z("1"),$n(fa.key),fa.key==="1"?En(!0):En(!1)}},m.a.createElement(n.a.Item,{disabled:!0,key:"0"},"\u5207\u6362\u4ED3\u5E93"),Ja.filter(function(ua){var fa,oa;return!(sn!=null&&(fa=sn.detail)!==null&&fa!==void 0&&fa.init_repository)||sn!=null&&(oa=sn.detail)!==null&&oa!==void 0&&oa.is_jupyter_lab?ua.id!=="2":ua}).map(function(ua,fa){return m.a.createElement(n.a.Item,{className:"leaveClick",key:ua.id},ua.name)})),oi=function(){var ua=Object(i.a)(E.a.mark(function fa(){var oa,ye,lt;return E.a.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:return wt.next=2,Ur({type:"shixunsDetail/updateRepositoryFile",payload:{id:Sa.id,path:sn==null||((oa=sn.fileContent)===null||oa===void 0||((ye=oa.params)===null||ye===void 0))?void 0:ye.path,content:he,secret_repository:tn?null:!0}});case 2:lt=wt.sent,lt!=null&&lt.content&&(l.b.info("\u4FDD\u5B58\u6210\u529F"),Ur({type:"practiceSetting/setSideBarTabs",payload:Object(t.a)(Object(t.a)({},yr.sideBar),{},{confirmLeave:!1})}));case 4:case"end":return wt.stop()}},fa)}));return function(){return ua.apply(this,arguments)}}();return m.a.createElement("div",{className:I.a.warehouse},m.a.createElement("div",{className:I.a.header},m.a.createElement(x.a,{align:"middle",className:"w100 c-white",style:{height:60}},m.a.createElement(d.a,{flex:"1"},m.a.createElement(x.a,{align:"middle"},m.a.createElement(d.a,null,m.a.createElement(u.a,{overlay:li,className:I.a.menu},m.a.createElement("span",{className:"font16 c-white current ml20"},Ja.find(function(ua){return ua.id===jn}).name," ",m.a.createElement("span",{style:{color:"#B0B5D6"},className:"iconfont icon-sanjiaoxing font12"})))),m.a.createElement(d.a,{flex:"81px"},m.a.createElement("div",{className:I.a.line})),m.a.createElement(d.a,null,m.a.createElement(P.a,{className:I.a.tabs,activeKey:V,onChange:function(fa){var oa;yr!=null&&(oa=yr.sideBar)!==null&&oa!==void 0&&oa.confirmLeave?f.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(){Z(fa),Ur({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1,selectPath:""}})}}):(Z(fa),Ur({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1,selectPath:""}}))}},m.a.createElement(Bt,{tab:m.a.createElement("span",{className:"leaveClick"},"\u4EE3\u7801\u6587\u4EF6"),key:"1"}),tn&&(sn==null||((Ye=sn.detail)===null||Ye===void 0)?void 0:Ye.init_repository)&&m.a.createElement(Bt,{tab:"\u63D0\u4EA4\u8BB0\u5F55",key:"2",className:"leaveClick"}),!tn&&(sn==null||((ut=sn.detail)===null||ut===void 0)?void 0:ut.secret_repository)&&m.a.createElement(Bt,{tab:"\u63D0\u4EA4\u8BB0\u5F55",key:"2",className:"leaveClick"}))))),(tn&&(sn==null||((mt=sn.repository)===null||mt===void 0)?void 0:mt.git_url)||!tn&&(sn==null||((Pt=sn.secretRepository)===null||Pt===void 0)?void 0:Pt.git_url))&&m.a.createElement(m.a.Fragment,null,m.a.createElement(d.a,null,m.a.createElement("span",{className:I.a.title},"\u4ED3\u5E93\u5730\u5740:"),m.a.createElement("input",{value:tn?sn==null||((jt=sn.repository)===null||jt===void 0)?void 0:jt.git_url:sn==null||((et=sn.secretRepository)===null||et===void 0)?void 0:et.git_url}),m.a.createElement(k.CopyToClipboard,{text:tn?sn==null||((Dt=sn.repository)===null||Dt===void 0)?void 0:Dt.git_url:sn==null||((Ht=sn.secretRepository)===null||Ht===void 0)?void 0:Ht.git_url,onCopy:function(){return l.b.success("\u590D\u5236\u6210\u529F")}},m.a.createElement(p.a,{placement:"topLeft",title:"\u70B9\u51FB\u590D\u5236\u7248\u672C\u5E93"},m.a.createElement("i",{className:"iconfont icon-fuzhi2 current ml5 mr40"}))))))),m.a.createElement("div",{className:I.a.content,style:{overflow:"auto"}},V==="1"&&m.a.createElement(m.a.Fragment,null,m.a.createElement("aside",{className:I.a.left},m.a.createElement(b.a,{spinning:!!cr.effects["shixunsDetail/getRepository"],wrapperClassName:"".concat(I.a.loading," ").concat(I.a.bottom0)},m.a.createElement(Ge,{setTreeData:Ra,treeData:ja,activeKey:jn,isRepository:tn}))),m.a.createElement("aside",{className:I.a.right,ref:Ha},(yr==null||((bn=yr.sideBar)===null||bn===void 0)?void 0:bn.selectPath)!==""&&m.a.createElement(m.a.Fragment,null,m.a.createElement(b.a,{spinning:!!cr.effects["shixunsDetail/getFileContent"],wrapperClassName:I.a.loading},m.a.createElement("div",{className:I.a.filePathWrp},m.a.createElement(x.a,{align:"middle",className:"w100"},m.a.createElement(d.a,null,m.a.createElement("span",{className:"iconfont icon-daimacangku2 c-white"})),m.a.createElement(d.a,{flex:"40px"},m.a.createElement("div",{className:I.a.line,style:{marginLeft:20}})),m.a.createElement(d.a,{className:I.a.filePath},ga.map(function(ua,fa){return m.a.createElement("span",{className:"c-blue"},ua)})))),m.a.createElement("div",{className:cr.effects["shixunsDetail/getFileContent"]?"hide":"show"},m.a.createElement(Ot.a,{className:"darkBlue",style:{top:66,height:"calc(100% - 60px)",position:"absolute",zIndex:1},filename:sn==null||((Cn=sn.fileContent)===null||Cn===void 0)?void 0:Cn.filename,type:(sn==null||((Yn=sn.fileContent)===null||Yn===void 0)?void 0:Yn.file_type)==="office"?"download":sn==null||((qn=sn.fileContent)===null||qn===void 0)?void 0:qn.file_type,data:he,monacoEditor:{value:he,language:sn==null||((Pn=sn.fileContent)===null||Pn===void 0)?void 0:Pn.language,onChange:function(fa){return ka(fa)},options:{fontSize:14}}}))),(sn==null||((cn=sn.fileContent)===null||cn===void 0)?void 0:cn.file_type)==="txt"&&m.a.createElement(x.a,{align:"middle",justify:"center",className:I.a.footer},m.a.createElement(d.a,null,m.a.createElement(g.a,{type:"primary",size:"large",ghost:!0,onClick:function(){N.d.push("/shixuns/".concat(Sa.id,"/challenges"))}},"\u53D6\u6D88"),m.a.createElement(g.a,{type:"primary",size:"large",className:"ml40",onClick:oi},"\u63D0\u4EA4")))),(yr==null||((xr=yr.sideBar)===null||xr===void 0)?void 0:xr.selectPath)==""&&(sn==null||((wr=sn.detail)===null||wr===void 0)?void 0:wr.init_repository)&&m.a.createElement("div",{className:I.a.empty},m.a.createElement("img",{src:ht.j,width:"258"}),m.a.createElement("br",null),m.a.createElement("span",{className:"c-grey-c"},!!(ja!=null&&ja.length)&&"\u5728\u5DE6\u4FA7\u4EE3\u7801\u4ED3\u5E93\u533A\u57DF\u70B9\u51FB\u76EE\u5F55\u6253\u5F00\u6587\u4EF6",!(ja!=null&&ja.length)&&"\u8BF7\u5148\u5728\u5DE6\u4FA7\u4E0A\u4F20\u6587\u4EF6\u6216\u65B0\u5EFA\u6587\u4EF6\uFF01")))),V==="2"&&m.a.createElement("div",{className:I.a.commit},m.a.createElement(st,{isRepository:tn}))))},Kt=Y.default=Object(N.a)(function(bt){var Be=bt.loading,at=bt.globalSetting,it=bt.practiceSetting,Me=bt.shixunsDetail;return{globalSetting:at,loading:Be,practiceSetting:it,shixunsDetail:Me}})(an)},csWT:function(M,Y,o){M.exports=o.p+"static/choose.4ad1045f.svg"},cv67:function(M,Y,o){(function(L,g){M.exports=Y=g(o("Ib8C"))})(this,function(L){return function(g){var A=L,b=A.lib,y=b.WordArray,x=b.Hasher,w=A.algo,f=[];(function(){for(var a=0;a<64;a++)f[a]=g.abs(g.sin(a+1))*4294967296|0})();var _=w.MD5=x.extend({_doReset:function(){this._hash=new y.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(a,n){for(var i=0;i<16;i++){var h=n+i,l=a[h];a[h]=(l<<8|l>>>24)&16711935|(l<<24|l>>>8)&4278255360}var s=this._hash.words,p=a[n+0],O=a[n+1],S=a[n+2],v=a[n+3],P=a[n+4],R=a[n+5],E=a[n+6],C=a[n+7],m=a[n+8],T=a[n+9],I=a[n+10],D=a[n+11],N=a[n+12],z=a[n+13],F=a[n+14],W=a[n+15],K=s[0],B=s[1],k=s[2],G=s[3];K=d(K,B,k,G,p,7,f[0]),G=d(G,K,B,k,O,12,f[1]),k=d(k,G,K,B,S,17,f[2]),B=d(B,k,G,K,v,22,f[3]),K=d(K,B,k,G,P,7,f[4]),G=d(G,K,B,k,R,12,f[5]),k=d(k,G,K,B,E,17,f[6]),B=d(B,k,G,K,C,22,f[7]),K=d(K,B,k,G,m,7,f[8]),G=d(G,K,B,k,T,12,f[9]),k=d(k,G,K,B,I,17,f[10]),B=d(B,k,G,K,D,22,f[11]),K=d(K,B,k,G,N,7,f[12]),G=d(G,K,B,k,z,12,f[13]),k=d(k,G,K,B,F,17,f[14]),B=d(B,k,G,K,W,22,f[15]),K=r(K,B,k,G,O,5,f[16]),G=r(G,K,B,k,E,9,f[17]),k=r(k,G,K,B,D,14,f[18]),B=r(B,k,G,K,p,20,f[19]),K=r(K,B,k,G,R,5,f[20]),G=r(G,K,B,k,I,9,f[21]),k=r(k,G,K,B,W,14,f[22]),B=r(B,k,G,K,P,20,f[23]),K=r(K,B,k,G,T,5,f[24]),G=r(G,K,B,k,F,9,f[25]),k=r(k,G,K,B,v,14,f[26]),B=r(B,k,G,K,m,20,f[27]),K=r(K,B,k,G,z,5,f[28]),G=r(G,K,B,k,S,9,f[29]),k=r(k,G,K,B,C,14,f[30]),B=r(B,k,G,K,N,20,f[31]),K=u(K,B,k,G,R,4,f[32]),G=u(G,K,B,k,m,11,f[33]),k=u(k,G,K,B,D,16,f[34]),B=u(B,k,G,K,F,23,f[35]),K=u(K,B,k,G,O,4,f[36]),G=u(G,K,B,k,P,11,f[37]),k=u(k,G,K,B,C,16,f[38]),B=u(B,k,G,K,I,23,f[39]),K=u(K,B,k,G,z,4,f[40]),G=u(G,K,B,k,p,11,f[41]),k=u(k,G,K,B,v,16,f[42]),B=u(B,k,G,K,E,23,f[43]),K=u(K,B,k,G,T,4,f[44]),G=u(G,K,B,k,N,11,f[45]),k=u(k,G,K,B,W,16,f[46]),B=u(B,k,G,K,S,23,f[47]),K=t(K,B,k,G,p,6,f[48]),G=t(G,K,B,k,C,10,f[49]),k=t(k,G,K,B,F,15,f[50]),B=t(B,k,G,K,R,21,f[51]),K=t(K,B,k,G,N,6,f[52]),G=t(G,K,B,k,v,10,f[53]),k=t(k,G,K,B,I,15,f[54]),B=t(B,k,G,K,O,21,f[55]),K=t(K,B,k,G,m,6,f[56]),G=t(G,K,B,k,W,10,f[57]),k=t(k,G,K,B,E,15,f[58]),B=t(B,k,G,K,z,21,f[59]),K=t(K,B,k,G,P,6,f[60]),G=t(G,K,B,k,D,10,f[61]),k=t(k,G,K,B,S,15,f[62]),B=t(B,k,G,K,T,21,f[63]),s[0]=s[0]+K|0,s[1]=s[1]+B|0,s[2]=s[2]+k|0,s[3]=s[3]+G|0},_doFinalize:function(){var a=this._data,n=a.words,i=this._nDataBytes*8,h=a.sigBytes*8;n[h>>>5]|=128<<24-h%32;var l=g.floor(i/4294967296),s=i;n[(h+64>>>9<<4)+15]=(l<<8|l>>>24)&16711935|(l<<24|l>>>8)&4278255360,n[(h+64>>>9<<4)+14]=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360,a.sigBytes=(n.length+1)*4,this._process();for(var p=this._hash,O=p.words,S=0;S<4;S++){var v=O[S];O[S]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}return p},clone:function(){var a=x.clone.call(this);return a._hash=this._hash.clone(),a}});function d(a,n,i,h,l,s,p){var O=a+(n&i|~n&h)+l+p;return(O<<s|O>>>32-s)+n}function r(a,n,i,h,l,s,p){var O=a+(n&h|i&~h)+l+p;return(O<<s|O>>>32-s)+n}function u(a,n,i,h,l,s,p){var O=a+(n^i^h)+l+p;return(O<<s|O>>>32-s)+n}function t(a,n,i,h,l,s,p){var O=a+(i^(n|~h))+l+p;return(O<<s|O>>>32-s)+n}A.MD5=x._createHelper(_),A.HmacMD5=x._createHmacHelper(_)}(Math),L.MD5})},cz0n:function(M,Y,o){M.exports={flex_box_center:"flex_box_center___G8W6i",flex_space_between:"flex_space_between___1p_ZB",flex_box_vertical_center:"flex_box_vertical_center___2wivF",flex_box_center_end:"flex_box_center_end___y5a20",flex_box_column:"flex_box_column___6oXp3",tabs:"tabs___sKski",active:"active___10xGM"}},dGDm:function(M,Y,o){M.exports={selectEnvironment:"selectEnvironment___1zrTT",search:"search___2Sku-",searchListWrap:"searchListWrap___30F5Q",searchList:"searchList___dxlP6",name:"name___28Ilk",tag:"tag___GYHhS",searchListActive:"searchListActive___1H-dL",spin:"spin___2GYcy",common:"common___JE3ZS",title:"title___11-q3",tags:"tags___3vE7b",tagActive:"tagActive___1c0bT",wrap:"wrap___fFVWs",allList:"allList___2mVBv",item:"item___2NPtB",itemActive:"itemActive___2aQTm",line:"line___yjjYk",apply:"apply___3NyxD",p1:"p1___2xNuY",p2:"p2___uGM8U",list:"list___1jtVf",items:"items___3gafm",darklySelectEnvironment:"darklySelectEnvironment___2KS0W"}},dejd:function(M,Y,o){},djh8:function(M,Y,o){M.exports=o.p+"static/qrCode.d852fdfc.png"},dmUQ:function(M,Y,o){"use strict";var L=o("Ff2n"),g=o("rePB"),A=o("1OyB"),b=o("vuIU"),y=o("Ji7U"),x=o("md7G"),w=o("foSv"),f=o("q1tI"),_=o.n(f),d=o("TSYQ"),r=o.n(d),u=o("4IlW");function t(m,T){var I=Object.keys(m);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(m);T&&(D=D.filter(function(N){return Object.getOwnPropertyDescriptor(m,N).enumerable})),I.push.apply(I,D)}return I}function a(m){for(var T=1;T<arguments.length;T++){var I=arguments[T]!=null?arguments[T]:{};T%2?t(Object(I),!0).forEach(function(D){Object(g.a)(m,D,I[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(I)):t(Object(I)).forEach(function(D){Object.defineProperty(m,D,Object.getOwnPropertyDescriptor(I,D))})}return m}function n(m){var T=i();return function(){var D=Object(w.a)(m),N;if(T){var z=Object(w.a)(this).constructor;N=Reflect.construct(D,arguments,z)}else N=D.apply(this,arguments);return Object(x.a)(this,N)}}function i(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(m){return!1}}function h(){}function l(m){m.preventDefault()}var s=function(T){return T.replace(/[^\w.-]+/g,"")},p=200,O=600,S=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,v=function(T){return T!=null},P=function(T,I){return I===T||typeof I=="number"&&typeof T=="number"&&isNaN(I)&&isNaN(T)},R=function(m){Object(y.a)(I,m);var T=n(I);function I(D){var N;Object(A.a)(this,I),N=T.call(this,D),N.onKeyDown=function(W){var K=N.props,B=K.onKeyDown,k=K.onPressEnter;if(W.keyCode===u.a.UP){var G=N.getRatio(W);N.up(W,G,null),N.stop()}else if(W.keyCode===u.a.DOWN){var ne=N.getRatio(W);N.down(W,ne,null),N.stop()}else W.keyCode===u.a.ENTER&&k&&k(W);if(N.recordCursorPosition(),N.lastKeyCode=W.keyCode,B){for(var fe=arguments.length,de=new Array(fe>1?fe-1:0),xe=1;xe<fe;xe++)de[xe-1]=arguments[xe];B.apply(void 0,[W].concat(de))}},N.onKeyUp=function(W){var K=N.props.onKeyUp;if(N.stop(),N.recordCursorPosition(),K){for(var B=arguments.length,k=new Array(B>1?B-1:0),G=1;G<B;G++)k[G-1]=arguments[G];K.apply(void 0,[W].concat(k))}},N.onChange=function(W){var K=N.props.onChange;N.state.focused&&(N.inputting=!0),N.rawInput=N.props.parser(N.getValueFromEvent(W)),N.setState({inputValue:N.rawInput}),K(N.toNumber(N.rawInput))},N.onMouseUp=function(){var W=N.props.onMouseUp;N.recordCursorPosition(),W&&W.apply(void 0,arguments)},N.onFocus=function(){var W;N.setState({focused:!0}),(W=N.props).onFocus.apply(W,arguments)},N.onBlur=function(){var W=N.props.onBlur;N.inputting=!1,N.setState({focused:!1});var K=N.getCurrentValidValue(N.state.inputValue),B=N.setValue(K,h);if(W){var k=N.input.value,G=N.getInputDisplayValue({focus:!1,value:B});N.input.value=G&&Number(G),W.apply(void 0,arguments),N.input.value=k}},N.getRatio=function(W){var K=1;return W.metaKey||W.ctrlKey?K=.1:W.shiftKey&&(K=10),K},N.getFullNum=function(W){return isNaN(W)?W:/e/i.test(String(W))?Number(W).toFixed(18).replace(/\.?0+$/,""):W},N.getPrecision=function(W){if(v(N.props.precision))return N.props.precision;var K=String(W);if(K.indexOf("e-")>=0)return parseInt(K.slice(K.indexOf("e-")+2),10);var B=0;return K.indexOf(".")>=0&&(B=K.length-K.indexOf(".")-1),B},N.getInputDisplayValue=function(W){var K=W||N.state,B=K.focused,k=K.inputValue,G=K.value,ne;B?ne=k:ne=N.toPrecisionAsStep(G),ne==null&&(ne="");var fe=N.formatWrapper(ne);return v(N.props.decimalSeparator)&&(fe=fe.toString().replace(".",N.props.decimalSeparator)),fe},N.recordCursorPosition=function(){try{N.cursorStart=N.input.selectionStart,N.cursorEnd=N.input.selectionEnd,N.currentValue=N.input.value,N.cursorBefore=N.input.value.substring(0,N.cursorStart),N.cursorAfter=N.input.value.substring(N.cursorEnd)}catch(W){}},N.restoreByAfter=function(W){if(W===void 0)return!1;var K=N.input.value,B=K.lastIndexOf(W);if(B===-1)return!1;var k=N.cursorBefore.length;return N.lastKeyCode===u.a.DELETE&&N.cursorBefore.charAt(k-1)===W[0]?(N.fixCaret(k,k),!0):B+W.length===K.length?(N.fixCaret(B,B),!0):!1},N.partRestoreByAfter=function(W){return W===void 0?!1:Array.prototype.some.call(W,function(K,B){var k=W.substring(B);return N.restoreByAfter(k)})},N.isNotCompleteNumber=function(W){return isNaN(W)||W===""||W===null||W&&W.toString().indexOf(".")===W.toString().length-1},N.stop=function(){N.autoStepTimer&&clearTimeout(N.autoStepTimer)},N.down=function(W,K,B){N.pressingUpOrDown=!0,N.step("down",W,K,B)},N.up=function(W,K,B){N.pressingUpOrDown=!0,N.step("up",W,K,B)},N.saveInput=function(W){N.input=W};var z=D.value;z===void 0&&(z=D.defaultValue),N.state={focused:D.autoFocus};var F=N.getValidValue(N.toNumber(z));return N.state=a(a({},N.state),{},{inputValue:N.toPrecisionAsStep(F),value:F}),N}return Object(b.a)(I,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(N){var z=this.props,F=z.value,W=z.onChange,K=z.max,B=z.min,k=this.state.focused;if(N){if(!P(N.value,F)||!P(N.max,K)||!P(N.min,B)){var G=k?F:this.getValidValue(F),ne;this.pressingUpOrDown?ne=G:this.inputting?ne=this.rawInput:ne=this.toPrecisionAsStep(G),this.setState({value:G,inputValue:ne})}var fe="value"in this.props?F:this.state.value;"max"in this.props&&N.max!==K&&typeof fe=="number"&&fe>K&&W&&W(K),"min"in this.props&&N.min!==B&&typeof fe=="number"&&fe<B&&W&&W(B)}try{if(this.cursorStart!==void 0&&this.state.focused){if(!this.partRestoreByAfter(this.cursorAfter)&&this.state.value!==this.props.value){var de=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===u.a.BACKSPACE?de=this.cursorStart-1:this.lastKeyCode===u.a.DELETE&&(de=this.cursorStart):de=this.input.value.length,this.fixCaret(de,de)}else if(this.currentValue===this.input.value)switch(this.lastKeyCode){case u.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case u.a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1);break;default:}}}catch(xe){}if(this.lastKeyCode=null,!this.pressingUpOrDown)return;this.props.focusOnUpDown&&this.state.focused&&(document.activeElement!==this.input&&this.focus())}},{key:"componentWillUnmount",value:function(){this.stop()}},{key:"getCurrentValidValue",value:function(N){var z=N;return z===""?z="":this.isNotCompleteNumber(parseFloat(z))?z=this.state.value:z=this.getValidValue(z),this.toNumber(z)}},{key:"getValueFromEvent",value:function(N){var z=N.target.value.trim().replace(/。/g,".");return v(this.props.decimalSeparator)&&(z=z.replace(this.props.decimalSeparator,".")),z}},{key:"getValidValue",value:function(N){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.props.min,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,W=parseFloat(N);return isNaN(W)?N:(W<z&&(W=z),W>F&&(W=F),W)}},{key:"setValue",value:function(N,z){var F=this.props.precision,W=this.isNotCompleteNumber(parseFloat(N))?null:parseFloat(N),K=this.state.value,B=K===void 0?null:K,k=this.state.inputValue,G=k===void 0?null:k,ne=typeof W=="number"?W.toFixed(F):"".concat(W),fe=W!==B||ne!=="".concat(G);return"value"in this.props?(G=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:G},z)):this.setState({value:W,inputValue:this.toPrecisionAsStep(N)},z),fe&&this.props.onChange(W),W}},{key:"getMaxPrecision",value:function(N){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,F=this.props,W=F.precision,K=F.step;if(v(W))return W;var B=this.getPrecision(z),k=this.getPrecision(K),G=this.getPrecision(N);return N?Math.max(G,B+k):B+k}},{key:"getPrecisionFactor",value:function(N){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,F=this.getMaxPrecision(N,z);return Math.pow(10,F)}},{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(N){return this.props.formatter?this.props.formatter(N):N}},{key:"toPrecisionAsStep",value:function(N){if(this.isNotCompleteNumber(N)||N==="")return N;var z=Math.abs(this.getMaxPrecision(N));return isNaN(z)?N.toString():Number(N).toFixed(z)}},{key:"toNumber",value:function(N){var z=this.props.precision,F=this.state.focused,W=N&&N.length>16&&F;return this.isNotCompleteNumber(N)||W?N:v(z)?Math.round(N*Math.pow(10,z))/Math.pow(10,z):Number(N)}},{key:"upStep",value:function(N,z){var F=this.props.step,W=this.getPrecisionFactor(N,z),K=Math.abs(this.getMaxPrecision(N,z)),B=((W*N+W*F*z)/W).toFixed(K);return this.toNumber(B)}},{key:"downStep",value:function(N,z){var F=this.props.step,W=this.getPrecisionFactor(N,z),K=Math.abs(this.getMaxPrecision(N,z)),B=((W*N-W*F*z)/W).toFixed(K);return this.toNumber(B)}},{key:"step",value:function(N,z){var F=this,W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,K=arguments.length>3?arguments[3]:void 0;this.stop(),z&&(z.persist(),z.preventDefault());var B=this.props;if(B.disabled)return;var k=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(k))return;var G=this["".concat(N,"Step")](k,W),ne=G>B.max||G<B.min;if(G>B.max?G=B.max:G<B.min&&(G=B.min),this.setValue(G,null),this.setState({focused:!0},function(){F.pressingUpOrDown=!1}),ne)return;this.autoStepTimer=setTimeout(function(){F[N](z,W,!0)},K?p:O)}},{key:"fixCaret",value:function(N,z){if(N===void 0||z===void 0||!this.input||!this.input.value)return;try{var F=this.input.selectionStart,W=this.input.selectionEnd;(N!==F||z!==W)&&this.input.setSelectionRange(N,z)}catch(K){}}},{key:"render",value:function(){var N,z=this.props,F=z.prefixCls,W=z.disabled,K=z.readOnly,B=z.useTouch,k=z.autoComplete,G=z.upHandler,ne=z.downHandler,fe=z.className,de=z.max,xe=z.min,Oe=z.style,ce=z.title,be=z.onMouseEnter,ve=z.onMouseLeave,ue=z.onMouseOver,se=z.onMouseOut,q=z.required,me=z.onClick,re=z.tabIndex,ie=z.type,we=z.placeholder,le=z.id,$=z.inputMode,J=z.pattern,te=z.step,De=z.maxLength,Te=z.autoFocus,ke=z.name,tt=z.onPaste,ot=z.onInput,gt=Object(L.a)(z,["prefixCls","disabled","readOnly","useTouch","autoComplete","upHandler","downHandler","className","max","min","style","title","onMouseEnter","onMouseLeave","onMouseOver","onMouseOut","required","onClick","tabIndex","type","placeholder","id","inputMode","pattern","step","maxLength","autoFocus","name","onPaste","onInput"]),Et=this.state,xt=Et.value,St=Et.focused,Je=r()(F,(N={},Object(g.a)(N,fe,!!fe),Object(g.a)(N,"".concat(F,"-disabled"),W),Object(g.a)(N,"".concat(F,"-focused"),St),N)),Ue={};Object.keys(gt).forEach(function(We){(We.substr(0,5)==="data-"||We.substr(0,5)==="aria-"||We==="role")&&(Ue[We]=gt[We])});var ft=!K&&!W,kt=this.getInputDisplayValue(null),ht=(xt||xt===0)&&(isNaN(xt)||Number(xt)>=de),_t=(xt||xt===0)&&(isNaN(xt)||Number(xt)<=xe),Qe=ht||W||K,He=_t||W||K,Ge=r()("".concat(F,"-handler"),"".concat(F,"-handler-up"),Object(g.a)({},"".concat(F,"-handler-up-disabled"),Qe)),Ee=r()("".concat(F,"-handler"),"".concat(F,"-handler-down"),Object(g.a)({},"".concat(F,"-handler-down-disabled"),He)),Ae=B?{onTouchStart:Qe?h:this.up,onTouchEnd:this.stop}:{onMouseDown:Qe?h:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},Fe=B?{onTouchStart:He?h:this.down,onTouchEnd:this.stop}:{onMouseDown:He?h:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return _.a.createElement("div",{className:Je,style:Oe,title:ce,onMouseEnter:be,onMouseLeave:ve,onMouseOver:ue,onMouseOut:se,onFocus:function(){return null},onBlur:function(){return null}},_.a.createElement("div",{className:"".concat(F,"-handler-wrap")},_.a.createElement("span",Object.assign({unselectable:"on"},Ae,{role:"button","aria-label":"Increase Value","aria-disabled":Qe,className:Ge}),G||_.a.createElement("span",{unselectable:"on",className:"".concat(F,"-handler-up-inner"),onClick:l})),_.a.createElement("span",Object.assign({unselectable:"on"},Fe,{role:"button","aria-label":"Decrease Value","aria-disabled":He,className:Ee}),ne||_.a.createElement("span",{unselectable:"on",className:"".concat(F,"-handler-down-inner"),onClick:l}))),_.a.createElement("div",{className:"".concat(F,"-input-wrap")},_.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":xe,"aria-valuemax":de,"aria-valuenow":xt,required:q,type:ie,placeholder:we,onPaste:tt,onClick:me,onMouseUp:this.onMouseUp,className:"".concat(F,"-input"),tabIndex:re,autoComplete:k,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:ft?this.onKeyDown:h,onKeyUp:ft?this.onKeyUp:h,autoFocus:Te,maxLength:De,readOnly:K,disabled:W,max:de,min:xe,step:te,name:ke,title:ce,id:le,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(kt),pattern:J,inputMode:$,onInput:ot},Ue))))}}]),I}(_.a.Component);R.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:S,min:-S,step:1,style:{},onChange:h,onKeyDown:h,onPressEnter:h,onFocus:h,onBlur:h,parser:s,required:!1,autoComplete:"off"};var E=R,C=Y.a=E},e7zE:function(M,Y,o){(function(L,g,A){M.exports=Y=g(o("Ib8C"),o("3y9D"),o("WYAk"))})(this,function(L){return function(){var g=L,A=g.lib,b=A.Base,y=A.WordArray,x=g.algo,w=x.SHA1,f=x.HMAC,_=x.PBKDF2=b.extend({cfg:b.extend({keySize:128/32,hasher:w,iterations:1}),init:function(d){this.cfg=this.cfg.extend(d)},compute:function(d,r){for(var u=this.cfg,t=f.create(u.hasher,d),a=y.create(),n=y.create([1]),i=a.words,h=n.words,l=u.keySize,s=u.iterations;i.length<l;){var p=t.update(r).finalize(n);t.reset();for(var O=p.words,S=O.length,v=p,P=1;P<s;P++){v=t.finalize(v),t.reset();for(var R=v.words,E=0;E<S;E++)O[E]^=R[E]}a.concat(p),h[0]++}return a.sigBytes=l*4,a}});g.PBKDF2=function(d,r,u){return _.create(u).compute(d,r)}}(),L.PBKDF2})},"f0W+":function(M,Y,o){M.exports={flex_box_center:"flex_box_center___2AWuG",flex_space_between:"flex_space_between___4j1zo",flex_box_vertical_center:"flex_box_vertical_center___3dWcm",flex_box_center_end:"flex_box_center_end___qvHJi",flex_box_column:"flex_box_column___3Eier",tabs:"tabs___25WKT",tabsWrap:"tabsWrap___2lPJE",active:"active___gGp9s"}},f9pc:function(M,Y,o){M.exports={flex_box_center:"flex_box_center___fO1Sq",flex_space_between:"flex_space_between___2MANs",flex_box_vertical_center:"flex_box_vertical_center___2x-su",flex_box_center_end:"flex_box_center_end___6bZNq",flex_box_column:"flex_box_column___CGTHC",quickPager:"quickPager___2XH6F",disabled:"disabled___2gPWV"}},fAei:function(M,Y,o){"use strict";o.d(Y,"a",function(){return p.a});var L=o("rePB"),g=o("VTBJ"),A=o("KQm4"),b=o("1OyB"),y=o("vuIU"),x=o("Ji7U"),w=o("LK+K"),f=o("q1tI"),_=o("4IlW"),d=o("Kwbf"),r=o("TSYQ"),u=o.n(r),t=o("sboe"),a=o("OZM5"),n=o("815F"),i=o("ODXe"),h=o("Ff2n"),l=o("+nKL"),s=o("8XRh"),p=o("WaYH"),O=function(xe,Oe){var ce=xe.className,be=xe.style,ve=xe.motion,ue=xe.motionNodes,se=xe.motionType,q=xe.onMotionStart,me=xe.onMotionEnd,re=xe.active,ie=xe.treeNodeRequiredProps,we=Object(h.a)(xe,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),le=f.useState(!0),$=Object(i.a)(le,2),J=$[0],te=$[1],De=f.useContext(t.a),Te=De.prefixCls,ke=f.useRef(!1),tt=function(){ke.current||me(),ke.current=!0};return Object(f.useEffect)(function(){ue&&se==="hide"&&J&&te(!1)},[ue]),Object(f.useEffect)(function(){return ue&&q(),function(){ue&&tt()}},[]),ue?f.createElement(s.default,Object.assign({ref:Oe,visible:J},ve,{motionAppear:se==="show",onAppearEnd:tt,onLeaveEnd:tt}),function(ot,gt){var Et=ot.className,xt=ot.style;return f.createElement("div",{ref:gt,className:u()("".concat(Te,"-treenode-motion"),Et),style:xt},ue.map(function(St){var Je=St.data,Ue=Je.key,ft=Object(h.a)(Je,["key"]),kt=St.isStart,ht=St.isEnd;delete ft.children;var _t=Object(n.f)(Ue,ie);return f.createElement(p.a,Object.assign({},ft,_t,{active:re,data:St.data,key:Ue,isStart:kt,isEnd:ht}))}))}):f.createElement(p.a,Object.assign({domRef:Oe,className:ce,style:be},we,{active:re}))};O.displayName="MotionTreeNode";var S=f.forwardRef(O),v=S;function P(){var de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Oe=de.length,ce=xe.length;if(Math.abs(Oe-ce)!==1)return{add:!1,key:null};function be(ve,ue){var se=new Map;ve.forEach(function(me){se.set(me,!0)});var q=ue.filter(function(me){return!se.has(me)});return q.length===1?q[0]:null}return Oe<ce?{add:!0,key:be(de,xe)}:{add:!1,key:be(xe,de)}}function R(de,xe,Oe){var ce=de.findIndex(function(se){var q=se.data;return q.key===Oe}),be=de[ce+1],ve=xe.findIndex(function(se){var q=se.data;return q.key===Oe});if(be){var ue=xe.findIndex(function(se){var q=se.data;return q.key===be.data.key});return xe.slice(ve+1,ue)}return xe.slice(ve+1)}var E={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},C=function(){},m="RC_TREE_MOTION_".concat(Math.random()),T={key:m},I={key:m,level:0,index:0,pos:"0",node:T},D={parent:null,children:[],pos:I.pos,data:T,isStart:[],isEnd:[]};function N(de,xe,Oe,ce){return xe===!1||!Oe?de:de.slice(0,Math.ceil(Oe/ce)+1)}function z(de){var xe=de.data.key,Oe=de.pos;return Object(n.e)(xe,Oe)}function F(de){for(var xe=String(de.data.key),Oe=de;Oe.parent;)Oe=Oe.parent,xe="".concat(Oe.data.key," > ").concat(xe);return xe}var W=function(xe,Oe){var ce=xe.prefixCls,be=xe.data,ve=xe.selectable,ue=xe.checkable,se=xe.expandedKeys,q=xe.selectedKeys,me=xe.checkedKeys,re=xe.loadedKeys,ie=xe.loadingKeys,we=xe.halfCheckedKeys,le=xe.keyEntities,$=xe.disabled,J=xe.dragging,te=xe.dragOverNodeKey,De=xe.dropPosition,Te=xe.motion,ke=xe.height,tt=xe.itemHeight,ot=xe.virtual,gt=xe.focusable,Et=xe.activeItem,xt=xe.focused,St=xe.tabIndex,Je=xe.onKeyDown,Ue=xe.onFocus,ft=xe.onBlur,kt=xe.onActiveChange,ht=xe.onListChangeStart,_t=xe.onListChangeEnd,Qe=Object(h.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"]),He=f.useRef(null);f.useImperativeHandle(Oe,function(){return{scrollTo:function(bn){He.current.scrollTo(bn)}}});var Ge=f.useState(se),Ee=Object(i.a)(Ge,2),Ae=Ee[0],Fe=Ee[1],We=f.useState(be),Ke=Object(i.a)(We,2),st=Ke[0],Ot=Ke[1],Bt=f.useState(be),an=Object(i.a)(Bt,2),Kt=an[0],bt=an[1],Be=f.useState([]),at=Object(i.a)(Be,2),it=at[0],Me=at[1],Ye=f.useState(null),ut=Object(i.a)(Ye,2),mt=ut[0],Pt=ut[1];function jt(){Ot(be),bt(be),Me([]),Pt(null),_t()}f.useEffect(function(){Fe(se);var Ht=P(Ae,se);if(Ht.key!==null)if(Ht.add){var bn=st.findIndex(function(xr){var wr=xr.data.key;return wr===Ht.key}),Cn=N(R(st,be,Ht.key),ot,ke,tt),Yn=st.slice();Yn.splice(bn+1,0,D),bt(Yn),Me(Cn),Pt("show")}else{var qn=be.findIndex(function(xr){var wr=xr.data.key;return wr===Ht.key}),Pn=N(R(be,st,Ht.key),ot,ke,tt),cn=be.slice();cn.splice(qn+1,0,D),bt(cn),Me(Pn),Pt("hide")}else st!==be&&(Ot(be),bt(be))},[se,be]),f.useEffect(function(){J||jt()},[J]);var et=Te?Kt:be,Dt={expandedKeys:se,selectedKeys:q,loadedKeys:re,loadingKeys:ie,checkedKeys:me,halfCheckedKeys:we,dragOverNodeKey:te,dropPosition:De,keyEntities:le};return f.createElement(f.Fragment,null,xt&&Et&&f.createElement("span",{style:E,"aria-live":"assertive"},F(Et)),f.createElement("div",{role:"tree"},f.createElement("input",{style:E,disabled:gt===!1||$,tabIndex:gt!==!1?St:null,onKeyDown:Je,onFocus:Ue,onBlur:ft,value:"",onChange:C})),f.createElement(l.a,Object.assign({},Qe,{data:et,itemKey:z,height:ke,fullHeight:!1,virtual:ot,itemHeight:tt,prefixCls:"".concat(ce,"-list"),ref:He}),function(Ht){var bn=Ht.pos,Cn=Ht.data,Yn=Cn.key,qn=Object(h.a)(Cn,["key"]),Pn=Ht.isStart,cn=Ht.isEnd,xr=Object(n.e)(Yn,bn);delete qn.children;var wr=Object(n.f)(xr,Dt);return f.createElement(v,Object.assign({},qn,wr,{active:Et&&Yn===Et.data.key,pos:bn,data:Ht.data,isStart:Pn,isEnd:cn,motion:Te,motionNodes:Yn===m?it:null,motionType:mt,onMotionStart:ht,onMotionEnd:jt,treeNodeRequiredProps:Dt,onMouseMove:function(){kt(null)}}))}))},K=f.forwardRef(W);K.displayName="NodeList";var B=K,k=o("NvD2"),G=function(de){Object(x.a)(Oe,de);var xe=Object(w.a)(Oe);function Oe(){var ce;return Object(b.a)(this,Oe),ce=xe.apply(this,arguments),ce.destroyed=!1,ce.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},ce.listRef=f.createRef(),ce.onNodeDragStart=function(be,ve){var ue=ce.state,se=ue.expandedKeys,q=ue.keyEntities,me=ce.props.onDragStart,re=ve.props.eventKey;ce.dragNode=ve;var ie=Object(a.b)(se,re);ce.setState({dragging:!0,dragNodesKeys:Object(a.g)(re,q)}),ce.setExpandedKeys(ie),me&&me({event:be,node:Object(n.b)(ve.props)})},ce.onNodeDragEnter=function(be,ve){var ue=ce.state,se=ue.expandedKeys,q=ue.keyEntities,me=ue.dragNodesKeys,re=ce.props.onDragEnter,ie=ve.props,we=ie.pos,le=ie.eventKey;if(!ce.dragNode||me.indexOf(le)!==-1)return;var $=Object(a.c)(be,ve);if(ce.dragNode.props.eventKey===le&&$===0){ce.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){ce.setState({dragOverNodeKey:le,dropPosition:$}),ce.delayedDragEnterLogic||(ce.delayedDragEnterLogic={}),Object.keys(ce.delayedDragEnterLogic).forEach(function(J){clearTimeout(ce.delayedDragEnterLogic[J])}),ce.delayedDragEnterLogic[we]=window.setTimeout(function(){if(!ce.state.dragging)return;var J=Object(A.a)(se),te=q[le];te&&(te.children||[]).length&&(J=Object(a.a)(se,le)),"expandedKeys"in ce.props||ce.setExpandedKeys(J),re&&re({event:be,node:Object(n.b)(ve.props),expandedKeys:J})},400)},0)},ce.onNodeDragOver=function(be,ve){var ue=ce.state.dragNodesKeys,se=ce.props.onDragOver,q=ve.props.eventKey;if(ue.indexOf(q)!==-1)return;if(ce.dragNode&&q===ce.state.dragOverNodeKey){var me=Object(a.c)(be,ve);if(me===ce.state.dropPosition)return;ce.setState({dropPosition:me})}se&&se({event:be,node:Object(n.b)(ve.props)})},ce.onNodeDragLeave=function(be,ve){var ue=ce.props.onDragLeave;ce.setState({dragOverNodeKey:""}),ue&&ue({event:be,node:Object(n.b)(ve.props)})},ce.onNodeDragEnd=function(be,ve){var ue=ce.props.onDragEnd;ce.setState({dragOverNodeKey:""}),ce.cleanDragState(),ue&&ue({event:be,node:Object(n.b)(ve.props)}),ce.dragNode=null},ce.onNodeDrop=function(be,ve){var ue=ce.state,se=ue.dragNodesKeys,q=se===void 0?[]:se,me=ue.dropPosition,re=ce.props.onDrop,ie=ve.props,we=ie.eventKey,le=ie.pos;if(ce.setState({dragOverNodeKey:""}),ce.cleanDragState(),q.indexOf(we)!==-1){Object(d.a)(!1,"Can not drop to dragNode(include it's children node)");return}var $=Object(a.k)(le),J={event:be,node:Object(n.b)(ve.props),dragNode:ce.dragNode?Object(n.b)(ce.dragNode.props):null,dragNodesKeys:q.slice(),dropPosition:me+Number($[$.length-1]),dropToGap:!1};me!==0&&(J.dropToGap=!0),re&&re(J),ce.dragNode=null},ce.cleanDragState=function(){var be=ce.state.dragging;be&&ce.setState({dragging:!1})},ce.onNodeClick=function(be,ve){var ue=ce.props.onClick;ue&&ue(be,ve)},ce.onNodeDoubleClick=function(be,ve){var ue=ce.props.onDoubleClick;ue&&ue(be,ve)},ce.onNodeSelect=function(be,ve){var ue=ce.state.selectedKeys,se=ce.state.keyEntities,q=ce.props,me=q.onSelect,re=q.multiple,ie=ve.selected,we=ve.key,le=!ie;le?re?ue=Object(a.a)(ue,we):ue=[we]:ue=Object(a.b)(ue,we);var $=ue.map(function(J){var te=se[J];return te?te.node:null}).filter(function(J){return J});ce.setUncontrolledState({selectedKeys:ue}),me&&me(ue,{event:"select",selected:le,node:ve,selectedNodes:$,nativeEvent:be.nativeEvent})},ce.onNodeCheck=function(be,ve,ue){var se=ce.state,q=se.keyEntities,me=se.checkedKeys,re=se.halfCheckedKeys,ie=ce.props,we=ie.checkStrictly,le=ie.onCheck,$=ve.key,J,te={event:"check",node:ve,checked:ue,nativeEvent:be.nativeEvent};if(we){var De=ue?Object(a.a)(me,$):Object(a.b)(me,$),Te=Object(a.b)(re,$);J={checked:De,halfChecked:Te},te.checkedNodes=De.map(function(xt){return q[xt]}).filter(function(xt){return xt}).map(function(xt){return xt.node}),ce.setUncontrolledState({checkedKeys:De})}else{var ke=Object(k.a)([].concat(Object(A.a)(me),[$]),!0,q),tt=ke.checkedKeys,ot=ke.halfCheckedKeys;if(!ue){var gt=new Set(tt);gt.delete($);var Et=Object(k.a)(Array.from(gt),{checked:!1,halfCheckedKeys:ot},q);tt=Et.checkedKeys,ot=Et.halfCheckedKeys}J=tt,te.checkedNodes=[],te.checkedNodesPositions=[],te.halfCheckedKeys=ot,tt.forEach(function(xt){var St=q[xt];if(!St)return;var Je=St.node,Ue=St.pos;te.checkedNodes.push(Je),te.checkedNodesPositions.push({node:Je,pos:Ue})}),ce.setUncontrolledState({checkedKeys:tt},!1,{halfCheckedKeys:ot})}le&&le(J,te)},ce.onNodeLoad=function(be){return new Promise(function(ve){ce.setState(function(ue){var se=ue.loadedKeys,q=se===void 0?[]:se,me=ue.loadingKeys,re=me===void 0?[]:me,ie=ce.props,we=ie.loadData,le=ie.onLoad,$=be.key;if(!we||q.indexOf($)!==-1||re.indexOf($)!==-1)return{};var J=we(be);return J.then(function(){var te=ce.state,De=te.loadedKeys,Te=te.loadingKeys,ke=Object(a.a)(De,$),tt=Object(a.b)(Te,$);le&&le(ke,{event:"load",node:be}),ce.setUncontrolledState({loadedKeys:ke}),ce.setState({loadingKeys:tt}),ve()}),{loadingKeys:Object(a.a)(re,$)}})})},ce.onNodeMouseEnter=function(be,ve){var ue=ce.props.onMouseEnter;ue&&ue({event:be,node:ve})},ce.onNodeMouseLeave=function(be,ve){var ue=ce.props.onMouseLeave;ue&&ue({event:be,node:ve})},ce.onNodeContextMenu=function(be,ve){var ue=ce.props.onRightClick;ue&&(be.preventDefault(),ue({event:be,node:ve}))},ce.onFocus=function(){var be=ce.props.onFocus;ce.setState({focused:!0}),be&&be.apply(void 0,arguments)},ce.onBlur=function(){var be=ce.props.onBlur;ce.setState({focused:!1}),ce.onActiveChange(null),be&&be.apply(void 0,arguments)},ce.getTreeNodeRequiredProps=function(){var be=ce.state,ve=be.expandedKeys,ue=be.selectedKeys,se=be.loadedKeys,q=be.loadingKeys,me=be.checkedKeys,re=be.halfCheckedKeys,ie=be.dragOverNodeKey,we=be.dropPosition,le=be.keyEntities;return{expandedKeys:ve||[],selectedKeys:ue||[],loadedKeys:se||[],loadingKeys:q||[],checkedKeys:me||[],halfCheckedKeys:re||[],dragOverNodeKey:ie,dropPosition:we,keyEntities:le}},ce.setExpandedKeys=function(be){var ve=ce.state.treeData,ue=Object(n.d)(ve,be);ce.setUncontrolledState({expandedKeys:be,flattenNodes:ue},!0)},ce.onNodeExpand=function(be,ve){var ue=ce.state.expandedKeys,se=ce.state.listChanging,q=ce.props,me=q.onExpand,re=q.loadData,ie=ve.key,we=ve.expanded;if(se)return;var le=ue.indexOf(ie),$=!we;if(Object(d.a)(we&&le!==-1||!we&&le===-1,"Expand state not sync with index check"),$?ue=Object(a.a)(ue,ie):ue=Object(a.b)(ue,ie),ce.setExpandedKeys(ue),me&&me(ue,{node:ve,expanded:$,nativeEvent:be.nativeEvent}),$&&re){var J=ce.onNodeLoad(ve);J&&J.then(function(){var te=Object(n.d)(ce.state.treeData,ue);ce.setUncontrolledState({flattenNodes:te})})}},ce.onListChangeStart=function(){ce.setUncontrolledState({listChanging:!0})},ce.onListChangeEnd=function(){setTimeout(function(){ce.setUncontrolledState({listChanging:!1})})},ce.onActiveChange=function(be){var ve=ce.state.activeKey,ue=ce.props.onActiveChange;if(ve===be)return;ce.setState({activeKey:be}),be!==null&&ce.scrollTo({key:be}),ue&&ue(be)},ce.getActiveItem=function(){var be=ce.state,ve=be.activeKey,ue=be.flattenNodes;return ve===null?null:ue.find(function(se){var q=se.data.key;return q===ve})||null},ce.offsetActiveKey=function(be){var ve=ce.state,ue=ve.flattenNodes,se=ve.activeKey,q=ue.findIndex(function(ie){var we=ie.data.key;return we===se});q===-1&&be<0&&(q=ue.length),q=(q+be+ue.length)%ue.length;var me=ue[q];if(me){var re=me.data.key;ce.onActiveChange(re)}else ce.onActiveChange(null)},ce.onKeyDown=function(be){var ve=ce.state,ue=ve.activeKey,se=ve.expandedKeys,q=ve.checkedKeys,me=ce.props,re=me.onKeyDown,ie=me.checkable,we=me.selectable;switch(be.which){case _.a.UP:{ce.offsetActiveKey(-1),be.preventDefault();break}case _.a.DOWN:{ce.offsetActiveKey(1),be.preventDefault();break}}var le=ce.getActiveItem();if(le&&le.data){var $=ce.getTreeNodeRequiredProps(),J=le.data.isLeaf===!1||!!(le.data.children||[]).length,te=Object(n.b)(Object(g.a)(Object(g.a)({},Object(n.f)(ue,$)),{},{data:le.data,active:!0}));switch(be.which){case _.a.LEFT:{J&&se.includes(ue)?ce.onNodeExpand({},te):le.parent&&ce.onActiveChange(le.parent.data.key),be.preventDefault();break}case _.a.RIGHT:{J&&!se.includes(ue)?ce.onNodeExpand({},te):le.children&&le.children.length&&ce.onActiveChange(le.children[0].data.key),be.preventDefault();break}case _.a.ENTER:case _.a.SPACE:{ie&&!te.disabled&&te.checkable!==!1&&!te.disableCheckbox?ce.onNodeCheck({},te,!q.includes(ue)):!ie&&we&&!te.disabled&&te.selectable!==!1&&ce.onNodeSelect({},te);break}}}re&&re(be)},ce.setUncontrolledState=function(be){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(ce.destroyed)return;var se=!1,q=!0,me={};Object.keys(be).forEach(function(re){if(re in ce.props){q=!1;return}se=!0,me[re]=be[re]}),se&&(!ve||q)&&ce.setState(Object(g.a)(Object(g.a)({},me),ue))},ce.scrollTo=function(be){ce.listRef.current.scrollTo(be)},ce}return Object(y.a)(Oe,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var be,ve=this.state,ue=ve.focused,se=ve.flattenNodes,q=ve.keyEntities,me=ve.dragging,re=ve.activeKey,ie=this.props,we=ie.prefixCls,le=ie.className,$=ie.style,J=ie.showLine,te=ie.focusable,De=ie.tabIndex,Te=De===void 0?0:De,ke=ie.selectable,tt=ie.showIcon,ot=ie.icon,gt=ie.switcherIcon,Et=ie.draggable,xt=ie.checkable,St=ie.checkStrictly,Je=ie.disabled,Ue=ie.motion,ft=ie.loadData,kt=ie.filterTreeNode,ht=ie.height,_t=ie.itemHeight,Qe=ie.virtual,He=ie.titleRender,Ge=ie.onContextMenu,Ee=Object(a.f)(this.props);return f.createElement(t.a.Provider,{value:{prefixCls:we,selectable:ke,showIcon:tt,icon:ot,switcherIcon:gt,draggable:Et,checkable:xt,checkStrictly:St,disabled:Je,keyEntities:q,loadData:ft,filterTreeNode:kt,titleRender:He,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}},f.createElement("div",{className:u()(we,le,(be={},Object(L.a)(be,"".concat(we,"-show-line"),J),Object(L.a)(be,"".concat(we,"-focused"),ue),Object(L.a)(be,"".concat(we,"-active-focused"),re!==null),be))},f.createElement(B,Object.assign({ref:this.listRef,prefixCls:we,style:$,data:se,disabled:Je,selectable:ke,checkable:!!xt,motion:Ue,dragging:me,height:ht,itemHeight:_t,virtual:Qe,focusable:te,focused:ue,tabIndex:Te,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Ge},this.getTreeNodeRequiredProps(),Ee))))}}],[{key:"getDerivedStateFromProps",value:function(be,ve){var ue=ve.prevProps,se={prevProps:be};function q(ot){return!ue&&ot in be||ue&&ue[ot]!==be[ot]}var me;if(q("treeData")?me=be.treeData:q("children")&&(Object(d.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),me=Object(n.c)(be.children)),me){se.treeData=me;var re=Object(n.a)(me);se.keyEntities=Object(g.a)(Object(L.a)({},m,I),re.keyEntities)}var ie=se.keyEntities||ve.keyEntities;if(q("expandedKeys")||ue&&q("autoExpandParent"))se.expandedKeys=be.autoExpandParent||!ue&&be.defaultExpandParent?Object(a.e)(be.expandedKeys,ie):be.expandedKeys;else if(!ue&&be.defaultExpandAll){var we=Object(g.a)({},ie);delete we[m],se.expandedKeys=Object.keys(we).map(function(ot){return we[ot].key})}else!ue&&be.defaultExpandedKeys&&(se.expandedKeys=be.autoExpandParent||be.defaultExpandParent?Object(a.e)(be.defaultExpandedKeys,ie):be.defaultExpandedKeys);if(se.expandedKeys||delete se.expandedKeys,me||se.expandedKeys){var le=Object(n.d)(me||ve.treeData,se.expandedKeys||ve.expandedKeys);se.flattenNodes=le}if(be.selectable&&(q("selectedKeys")?se.selectedKeys=Object(a.d)(be.selectedKeys,be):!ue&&be.defaultSelectedKeys&&(se.selectedKeys=Object(a.d)(be.defaultSelectedKeys,be))),be.checkable){var $;if(q("checkedKeys")?$=Object(a.j)(be.checkedKeys)||{}:!ue&&be.defaultCheckedKeys?$=Object(a.j)(be.defaultCheckedKeys)||{}:me&&($=Object(a.j)(be.checkedKeys)||{checkedKeys:ve.checkedKeys,halfCheckedKeys:ve.halfCheckedKeys}),$){var J=$,te=J.checkedKeys,De=te===void 0?[]:te,Te=J.halfCheckedKeys,ke=Te===void 0?[]:Te;if(!be.checkStrictly){var tt=Object(k.a)(De,!0,ie);De=tt.checkedKeys,ke=tt.halfCheckedKeys}se.checkedKeys=De,se.halfCheckedKeys=ke}}return q("loadedKeys")&&(se.loadedKeys=be.loadedKeys),se}}]),Oe}(f.Component);G.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:[]},G.TreeNode=p.a;var ne=G,fe=Y.b=ne},fKo2:function(M,Y,o){},fyJ8:function(M,Y,o){"use strict";var L=o("rePB"),g=o("VTBJ"),A=o("Ff2n"),b=o("U8pU"),y=o("q1tI"),x=o.n(y),w=o("TSYQ"),f=o.n(w),_=o("c+Xe"),d=o("sR1s");function r(i){return i&&Object(b.a)(i)==="object"&&!Array.isArray(i)&&!y.isValidElement(i)}function u(i){return typeof i=="string"?!0:Object(_.c)(i)}function t(i,h){var l,s=i.prefixCls,p=i.className,O=i.record,S=i.index,v=i.dataIndex,P=i.render,R=i.children,E=i.component,C=E===void 0?"td":E,m=i.colSpan,T=i.rowSpan,I=i.fixLeft,D=i.fixRight,N=i.firstFixLeft,z=i.lastFixLeft,F=i.firstFixRight,W=i.lastFixRight,K=i.appendNode,B=i.additionalProps,k=B===void 0?{}:B,G=i.ellipsis,ne=i.align,fe=i.rowType,de=i.isSticky,xe="".concat(s,"-cell"),Oe,ce;if(R)ce=R;else{var be=Object(d.b)(O,v);if(ce=be,P){var ve=P(be,O,S);r(ve)?(ce=ve.children,Oe=ve.props):ce=ve}}Object(b.a)(ce)==="object"&&!Array.isArray(ce)&&!y.isValidElement(ce)&&(ce=null),G&&(z||F)&&(ce=y.createElement("span",{className:"".concat(xe,"-content")},ce));var ue=Oe||{},se=ue.colSpan,q=ue.rowSpan,me=ue.style,re=ue.className,ie=Object(A.a)(ue,["colSpan","rowSpan","style","className"]),we=se!==void 0?se:m,le=q!==void 0?q:T;if(we===0||le===0)return null;var $={},J=typeof I=="number",te=typeof D=="number";J&&($.position="sticky",$.left=I),te&&($.position="sticky",$.right=D);var De={};ne&&(De.textAlign=ne);var Te,ke=G===!0?{showTitle:!0}:G;ke&&(ke.showTitle||fe==="header")&&(typeof ce=="string"||typeof ce=="number"?Te=ce.toString():y.isValidElement(ce)&&typeof ce.props.children=="string"&&(Te=ce.props.children));var tt=Object(g.a)(Object(g.a)(Object(g.a)({title:Te},ie),k),{},{colSpan:we&&we!==1?we:null,rowSpan:le&&le!==1?le:null,className:f()(xe,p,(l={},Object(L.a)(l,"".concat(xe,"-fix-left"),J),Object(L.a)(l,"".concat(xe,"-fix-left-first"),N),Object(L.a)(l,"".concat(xe,"-fix-left-last"),z),Object(L.a)(l,"".concat(xe,"-fix-right"),te),Object(L.a)(l,"".concat(xe,"-fix-right-first"),F),Object(L.a)(l,"".concat(xe,"-fix-right-last"),W),Object(L.a)(l,"".concat(xe,"-ellipsis"),G),Object(L.a)(l,"".concat(xe,"-with-append"),K),Object(L.a)(l,"".concat(xe,"-fix-sticky"),(J||te)&&de),l),k.className,re),style:Object(g.a)(Object(g.a)(Object(g.a)(Object(g.a)({},k.style),De),$),me),ref:u(C)?h:null});return y.createElement(C,Object.assign({},tt),K,ce)}var a=y.forwardRef(t);a.displayName="Cell";var n=y.memo(a,function(i,h){return h.shouldCellUpdate?!h.shouldCellUpdate(h.record,i.record):!1});Y.a=n},"gb/T":function(M,Y,o){(function(L,g,A){M.exports=Y=g(o("Ib8C"),o("OLod"))})(this,function(L){return L.mode.ECB=function(){var g=L.lib.BlockCipherMode.extend();return g.Encryptor=g.extend({processBlock:function(A,b){this._cipher.encryptBlock(A,b)}}),g.Decryptor=g.extend({processBlock:function(A,b){this._cipher.decryptBlock(A,b)}}),g}(),L.mode.ECB})},"h/E3":function(M,Y,o){M.exports={information:"information___wfVJL",scroll:"scroll___2bOg0",formWrap:"formWrap___3qgTO",img:"img___2zP-8"}},h78n:function(M,Y,o){"use strict";o.d(Y,"a",function(){return N});var L=o("q1tI"),g=o.n(L),A=o("TSYQ"),b=o.n(A),y={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},x=function(W){var K=W.map(function(){return Object(L.useRef)()}),B=Object(L.useRef)();return Object(L.useEffect)(function(){var k=Date.now(),G=!1;Object.keys(K).forEach(function(ne){var fe=K[ne].current;if(!fe)return;G=!0;var de=fe.style;de.transitionDuration=".3s, .3s, .3s, .06s",B.current&&k-B.current<100&&(de.transitionDuration="0s, 0s")}),G&&(B.current=Date.now())}),[K]};function w(){return w=Object.assign||function(F){for(var W=1;W<arguments.length;W++){var K=arguments[W];for(var B in K)Object.prototype.hasOwnProperty.call(K,B)&&(F[B]=K[B])}return F},w.apply(this,arguments)}function f(F,W){return t(F)||u(F,W)||d(F,W)||_()}function _(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d(F,W){if(!F)return;if(typeof F=="string")return r(F,W);var K=Object.prototype.toString.call(F).slice(8,-1);if(K==="Object"&&F.constructor&&(K=F.constructor.name),K==="Map"||K==="Set")return Array.from(F);if(K==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(K))return r(F,W)}function r(F,W){(W==null||W>F.length)&&(W=F.length);for(var K=0,B=new Array(W);K<W;K++)B[K]=F[K];return B}function u(F,W){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(F)))return;var K=[],B=!0,k=!1,G=void 0;try{for(var ne=F[Symbol.iterator](),fe;!(B=(fe=ne.next()).done)&&!(K.push(fe.value),W&&K.length===W);B=!0);}catch(de){k=!0,G=de}finally{try{!B&&ne.return!=null&&ne.return()}finally{if(k)throw G}}return K}function t(F){if(Array.isArray(F))return F}function a(F,W){if(F==null)return{};var K=n(F,W),B,k;if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(F);for(k=0;k<G.length;k++){if(B=G[k],W.indexOf(B)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(F,B))continue;K[B]=F[B]}}return K}function n(F,W){if(F==null)return{};var K={},B=Object.keys(F),k,G;for(G=0;G<B.length;G++){if(k=B[G],W.indexOf(k)>=0)continue;K[k]=F[k]}return K}var i=function(W){var K=W.className,B=W.percent,k=W.prefixCls,G=W.strokeColor,ne=W.strokeLinecap,fe=W.strokeWidth,de=W.style,xe=W.trailColor,Oe=W.trailWidth,ce=W.transition,be=a(W,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete be.gapPosition;var ve=Array.isArray(B)?B:[B],ue=Array.isArray(G)?G:[G],se=x(ve),q=f(se,1),me=q[0],re=fe/2,ie=100-fe/2,we="M ".concat(ne==="round"?re:0,",").concat(re,`
L `).concat(ne==="round"?ie:100,",").concat(re),le="0 0 100 ".concat(fe),$=0;return g.a.createElement("svg",w({className:b()("".concat(k,"-line"),K),viewBox:le,preserveAspectRatio:"none",style:de},be),g.a.createElement("path",{className:"".concat(k,"-line-trail"),d:we,strokeLinecap:ne,stroke:xe,strokeWidth:Oe||fe,fillOpacity:"0"}),ve.map(function(J,te){var De={strokeDasharray:"".concat(J,"px, 100px"),strokeDashoffset:"-".concat($,"px"),transition:ce||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Te=ue[te]||ue[ue.length-1];return $+=J,g.a.createElement("path",{key:te,className:"".concat(k,"-line-path"),d:we,strokeLinecap:ne,stroke:Te,strokeWidth:fe,fillOpacity:"0",ref:me[te],style:De})}))};i.defaultProps=y;var h=i;function l(){return l=Object.assign||function(F){for(var W=1;W<arguments.length;W++){var K=arguments[W];for(var B in K)Object.prototype.hasOwnProperty.call(K,B)&&(F[B]=K[B])}return F},l.apply(this,arguments)}function s(F,W){return P(F)||v(F,W)||O(F,W)||p()}function p(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O(F,W){if(!F)return;if(typeof F=="string")return S(F,W);var K=Object.prototype.toString.call(F).slice(8,-1);if(K==="Object"&&F.constructor&&(K=F.constructor.name),K==="Map"||K==="Set")return Array.from(F);if(K==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(K))return S(F,W)}function S(F,W){(W==null||W>F.length)&&(W=F.length);for(var K=0,B=new Array(W);K<W;K++)B[K]=F[K];return B}function v(F,W){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(F)))return;var K=[],B=!0,k=!1,G=void 0;try{for(var ne=F[Symbol.iterator](),fe;!(B=(fe=ne.next()).done)&&!(K.push(fe.value),W&&K.length===W);B=!0);}catch(de){k=!0,G=de}finally{try{!B&&ne.return!=null&&ne.return()}finally{if(k)throw G}}return K}function P(F){if(Array.isArray(F))return F}function R(F,W){if(F==null)return{};var K=E(F,W),B,k;if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(F);for(k=0;k<G.length;k++){if(B=G[k],W.indexOf(B)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(F,B))continue;K[B]=F[B]}}return K}function E(F,W){if(F==null)return{};var K={},B=Object.keys(F),k,G;for(G=0;G<B.length;G++){if(k=B[G],W.indexOf(k)>=0)continue;K[k]=F[k]}return K}var C=0;function m(F){return+F.replace("%","")}function T(F){return Array.isArray(F)?F:[F]}function I(F,W,K,B){var k=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,G=arguments.length>5?arguments[5]:void 0,ne=50-B/2,fe=0,de=-ne,xe=0,Oe=-2*ne;switch(G){case"left":fe=-ne,de=0,xe=2*ne,Oe=0;break;case"right":fe=ne,de=0,xe=-2*ne,Oe=0;break;case"bottom":de=ne,Oe=2*ne;break;default:}var ce="M 50,50 m ".concat(fe,",").concat(de,`
a `).concat(ne,",").concat(ne," 0 1 1 ").concat(xe,",").concat(-Oe,`
a `).concat(ne,",").concat(ne," 0 1 1 ").concat(-xe,",").concat(Oe),be=Math.PI*2*ne,ve={stroke:K,strokeDasharray:"".concat(W/100*(be-k),"px ").concat(be,"px"),strokeDashoffset:"-".concat(k/2+F/100*(be-k),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:ce,pathStyle:ve}}var D=function(W){var K=W.prefixCls,B=W.strokeWidth,k=W.trailWidth,G=W.gapDegree,ne=W.gapPosition,fe=W.trailColor,de=W.strokeLinecap,xe=W.style,Oe=W.className,ce=W.strokeColor,be=W.percent,ve=R(W,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),ue=Object(L.useMemo)(function(){return C+=1,C},[]),se=I(0,100,fe,B,G,ne),q=se.pathString,me=se.pathStyle,re=T(be),ie=T(ce),we=ie.find(function(De){return Object.prototype.toString.call(De)==="[object Object]"}),le=x(re),$=s(le,1),J=$[0],te=function(){var Te=0;return re.map(function(ke,tt){var ot=ie[tt]||ie[ie.length-1],gt=Object.prototype.toString.call(ot)==="[object Object]"?"url(#".concat(K,"-gradient-").concat(ue,")"):"",Et=I(Te,ke,ot,B,G,ne);return Te+=ke,g.a.createElement("path",{key:tt,className:"".concat(K,"-circle-path"),d:Et.pathString,stroke:gt,strokeLinecap:de,strokeWidth:B,opacity:ke===0?0:1,fillOpacity:"0",style:Et.pathStyle,ref:J[tt]})})};return g.a.createElement("svg",l({className:b()("".concat(K,"-circle"),Oe),viewBox:"0 0 100 100",style:xe},ve),we&&g.a.createElement("defs",null,g.a.createElement("linearGradient",{id:"".concat(K,"-gradient-").concat(ue),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(we).sort(function(De,Te){return m(De)-m(Te)}).map(function(De,Te){return g.a.createElement("stop",{key:Te,offset:De,stopColor:we[De]})}))),g.a.createElement("path",{className:"".concat(K,"-circle-trail"),d:q,stroke:fe,strokeLinecap:de,strokeWidth:k||B,fillOpacity:"0",style:me}),te().reverse())};D.defaultProps=y;var N=D,z={Line:h,Circle:N}},hW5Z:function(M,Y,o){M.exports={flex_box_center:"flex_box_center___2rjmw",flex_space_between:"flex_space_between___1LywI",flex_box_vertical_center:"flex_box_vertical_center___S66g_",flex_box_center_end:"flex_box_center_end___1QDp6",flex_box_column:"flex_box_column___12YxX",complete:"complete___2qtu-",cancel:"cancel___3WJG4",save:"save___oTylI"}},hW8S:function(M,Y,o){"use strict";o.d(Y,"a",function(){return b}),o.d(Y,"c",function(){return y}),o.d(Y,"b",function(){return x});var L=o("VTBJ"),g=o("Ff2n"),A=o("Kwbf"),b="RC_TABLE_INTERNAL_COL_DEFINE";function y(w){var f=w.expandable,_=Object(g.a)(w,["expandable"]);return"expandable"in w?Object(L.a)(Object(L.a)({},_),f):_}function x(w){return Object.keys(w).reduce(function(f,_){return(_.substr(0,5)==="data-"||_.substr(0,5)==="aria-")&&(f[_]=w[_]),f},{})}},"iL++":function(M,Y,o){M.exports={flex_box_center:"flex_box_center___2pHUo",flex_space_between:"flex_space_between___3Bfes",flex_box_vertical_center:"flex_box_vertical_center___1thiW",flex_box_center_end:"flex_box_center_end___3Zr7k",flex_box_column:"flex_box_column___3xe1a",list:"list___3rlGv",wrap:"wrap____oZzM",lockWrap:"lockWrap___24eY2",top:"top___3SCOc",sign:"sign____uZ_B",name:"name___2nHyM",img:"img___3Spn7",text:"text___1Pg2L",btns:"btns___Kr_Ti",bottom:"bottom___2_iOx"}},jO9C:function(M,Y,o){(function(L,g,A){M.exports=Y=g(o("Ib8C"),o("OLod"))})(this,function(L){return L.pad.Iso97971={pad:function(g,A){g.concat(L.lib.WordArray.create([2147483648],1)),L.pad.ZeroPadding.pad(g,A)},unpad:function(g){L.pad.ZeroPadding.unpad(g),g.sigBytes--}},L.pad.Iso97971})},ji0R:function(M,Y,o){M.exports=o.p+"static/douyu.3e6df9ee.jpg"},ju9d:function(M,Y,o){"use strict";var L=o("g9YV"),g=o("wCAj"),A=o("miYZ"),b=o("tsqr"),y=o("5Dmo"),x=o("3S7+"),w=o("sRBo"),f=o("kaz8"),_=o("oBTY"),d=o("9og8"),r=o("tJVT"),u=o("k1fw"),t=o("+L6B"),a=o("2/Rp"),n=o("O3gP"),i=o("lrIw"),h=o("5NDa"),l=o("5rEg"),s=o("y8nQ"),p=o("Vl3Y"),O=o("OaEy"),S=o("2fM7"),v=o("WmNS"),P=o.n(v),R=o("q1tI"),E=o.n(R),C=o("55Ip"),m=o("wd/R"),T=o.n(m),I=o("RotF"),D=o.n(I),N=o("E7E6"),z=o.n(N),F=o("oUNq"),W=o("Nf5h"),K=o("Fhpe"),B=o.n(K),k=[];function G(xe){var Oe=xe.onSearch,ce=xe.schools;return E.a.createElement(p.a,{colon:!1,layout:"inline",onFinish:Oe,initialValues:{keyword:"",school_name:"",search_type:"1"},className:"search-form"},E.a.createElement(p.a.Item,{name:"search_type",label:"\u641C\u7D22\u7C7B\u578B"},E.a.createElement(S.a,{dropdownClassName:B.a.selectdown,style:{width:148}},E.a.createElement(S.a.Option,{value:"1"},"\u59D3\u540D"),E.a.createElement(S.a.Option,{value:"2"},"\u624B\u673A\u53F7"),E.a.createElement(S.a.Option,{value:"3"},"\u90AE\u7BB1"))),E.a.createElement(p.a.Item,{label:"\u641C\u7D22\u5185\u5BB9",name:"keyword",style:{marginLeft:44},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9"}]},E.a.createElement(l.a,{allowClear:!0,style:{width:170},size:"large"})),E.a.createElement(p.a.Item,{label:"\u5355\u4F4D",name:"school_name",style:{marginLeft:10}},E.a.createElement(i.a,{options:ce,style:{width:383},size:"large",showSearch:!0,filterOption:function(ve,ue){return ue.value.toUpperCase().indexOf(ve.toUpperCase())!==-1},placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0"})),E.a.createElement(p.a.Item,null,E.a.createElement(a.a,{type:"primary",style:{background:"#F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%)",boxShadow:"0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255,255,255,0.5)",borderRadius:16,color:"#165DFF",border:"1px solid #BACFFE"},htmlType:"submit"},"\u641C\u7D22")))}var ne;(function(xe){xe[xe.INITDATA=0]="INITDATA",xe[xe.INITSCHOOLS=1]="INITSCHOOLS",xe[xe.SHOWLOADING=2]="SHOWLOADING",xe[xe.SELECTEDIDS=3]="SELECTEDIDS",xe[xe.SETQUERY=4]="SETQUERY",xe[xe.SETPAGE=5]="SETPAGE"})(ne||(ne={}));function fe(xe,Oe){switch(Oe.type){case ne.INITDATA:return Object(u.a)(Object(u.a)({},xe),Oe.payload);case ne.SETQUERY:return Object(u.a)(Object(u.a)({},xe),Oe.payload);case ne.SETPAGE:return Object(u.a)(Object(u.a)({},xe),{},{page:Oe.payload,reload:!1});case ne.SHOWLOADING:return Object(u.a)(Object(u.a)({},xe),{},{loading:Oe.payload});case ne.INITSCHOOLS:return Object(u.a)(Object(u.a)({},xe),{},{schools:Oe.payload});case ne.SELECTEDIDS:return Object(u.a)(Object(u.a)({},xe),{},{selectedIds:Oe.payload});default:throw new Error}}var de={data:[],schools:[],loading:!1,selectedIds:[],query:null,page:1,count:0,reload:!1};Y.a=function(xe){var Oe=xe.onSelect,ce=xe.onCancel,be=xe.container_id,ve=xe.container_type,ue=Object(R.useReducer)(fe,de),se=Object(r.a)(ue,2),q=se[0],me=se[1],re=q.data,ie=q.schools,we=q.loading,le=q.selectedIds,$=q.page,J=q.count,te=q.query,De=q.reload;Object(R.useEffect)(function(){function xt(){return St.apply(this,arguments)}function St(){return St=Object(d.a)(P.a.mark(function Je(){var Ue,ft,kt;return P.a.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return _t.next=2,Object(F.Ab)(Object(u.a)(Object(u.a)({},te),{},{page:$,container_type:ve,container_id:be}));case 2:Ue=_t.sent,ft=Ue.users,kt=Ue.user_count,me({type:ne.INITDATA,payload:{data:De?ft:[].concat(Object(_.a)(re),Object(_.a)(ft)),count:kt}});case 6:case"end":return _t.stop()}},Je)})),St.apply(this,arguments)}te&&xt()},[$,te,De,be,ve]),Object(R.useEffect)(function(){function xt(){return St.apply(this,arguments)}function St(){return St=Object(d.a)(P.a.mark(function Je(){var Ue,ft;return P.a.wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:return ht.next=2,Object(F.nb)({});case 2:Ue=ht.sent,ft=Ue.school_names,me({type:ne.INITSCHOOLS,payload:ft.map(function(_t){return{value:_t}})});case 5:case"end":return ht.stop()}},Je)})),St.apply(this,arguments)}xt()},[]);var Te=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(St,Je){return E.a.createElement(f.a,{value:Je.numid,checked:le.includes(Je.numid),disabled:!!St})}},{title:"\u59D3\u540D",width:100,ellipsis:!0,align:"left",dataIndex:"username",render:function(St,Je){return E.a.createElement("div",null,E.a.createElement(x.a,{placement:"bottom",title:St},E.a.createElement(C.a,{style:{color:"#000000"},className:"bold c-black",to:"/users/".concat(Je.login),target:"_blank"},St||"--")))}},{title:"\u624B\u673A",width:100,dataIndex:"phone",ellipsis:!0,render:function(St){return E.a.createElement(x.a,{placement:"bottom",title:St},E.a.createElement("span",{style:{color:"#000000"}},St||"--"))}},{title:"\u90AE\u7BB1",dataIndex:"email",width:100,ellipsis:!0,render:function(St){return E.a.createElement(x.a,{placement:"bottom",title:St},E.a.createElement("span",{style:{color:"#000000"}},St||"--"))}},{title:"\u5B66\u53F7/\u5DE5\u53F7",width:100,dataIndex:"student_number",ellipsis:!0,render:function(St){return E.a.createElement(x.a,{placement:"bottom",title:St},E.a.createElement("span",{style:{color:"#000000"}},St||"--"))}},{title:"\u5B66\u6821/\u5355\u4F4D",width:150,dataIndex:"school_name",ellipsis:!0,render:function(St){return E.a.createElement(x.a,{placement:"bottom",title:St},E.a.createElement("span",{style:{color:"#000000"}},St||"--"))}},{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"depart_name",width:130,ellipsis:!0,render:function(St){return E.a.createElement(x.a,{placement:"bottom",title:St},E.a.createElement("span",{style:{color:"#000000"}},St||"--"))}},{title:"\u5B9E\u540D\u8BA4\u8BC1",dataIndex:"auth",width:100,render:function(St){return E.a.createElement("span",{style:{color:"#000000"}},St?"\u662F":"\u5426")}},{title:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_on",width:140,ellipsis:!0,render:function(St){return E.a.createElement(x.a,{placement:"bottom",title:St},E.a.createElement("span",{style:{color:"#000000"}},T()(St).format("YYYY-MM-DD HH:mm")))}},{title:"\u72B6\u6001",dataIndex:"added",width:80,render:function(St){if(St===1)return E.a.createElement("span",{style:{color:"#000000"}},"\u5DF2\u6DFB\u52A0")}}];function ke(xt){me({type:ne.SETQUERY,payload:{page:1,reload:!0,query:xt}})}function tt(xt){me({type:ne.SETPAGE,payload:xt})}function ot(xt){var St=le.indexOf(xt);St>=0?le.splice(St,1):le.push(xt),me({type:ne.SELECTEDIDS,payload:Object(_.a)(le)})}function gt(){le.length===0?b.b.warn("\u8BF7\u5148\u5728\u4E0B\u9762\u5217\u8868\u4E2D\u9009\u62E9\u8981\u6DFB\u52A0\u6210\u5458"):(Oe(le,be),me({type:ne.INITDATA,payload:{data:[],count:0,page:1,selectedIds:[],query:null,reload:!1}}))}var Et=J>$*10;return E.a.createElement("div",{className:"select-user-container",style:{paddingBottom:20}},E.a.createElement(G,{onSearch:ke,schools:ie}),te?E.a.createElement(E.a.Fragment,null,E.a.createElement("div",{className:"flexd-table-header mt20"},E.a.createElement(W.f,null,E.a.createElement(g.a,{pagination:!1,dataSource:k,columns:Te}))),E.a.createElement("div",{style:{maxHeight:260,overflow:"auto",marginBottom:20}},E.a.createElement(D.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:tt,hasMore:Et,useWindow:!1},E.a.createElement(W.f,null,E.a.createElement(g.a,{loading:we,showHeader:!1,pagination:!1,dataSource:re,columns:Te,onRow:function(St){return{onClick:function(Ue){St.added!==1&&ot(St.numid)}}}})))),E.a.createElement("div",{className:"flex-container flex-end"},E.a.createElement(a.a,{type:"ghost",style:{marginRight:10,border:"1px solid #C3CFE0",color:"#464F66"},onClick:ce},"\u53D6\u6D88"),E.a.createElement(a.a,{style:{background:"#F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%)",boxShadow:"0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255,255,255,0.5)",borderRadius:2,color:"#165DFF",border:"1px solid #BACFFE"},type:"primary",onClick:gt},"\u786E\u5B9A"))):E.a.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},E.a.createElement("img",{src:z.a,width:"100",alt:""}),E.a.createElement("br",null),E.a.createElement("p",{className:"mt20"},"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458")))}},k3GJ:function(M,Y,o){"use strict";o.d(Y,"a",function(){return Xr});var L=o("rePB"),g=o("ODXe"),A=o("Ff2n"),b=o("VTBJ"),y=o("q1tI"),x=o("TSYQ"),w=o.n(x),f=o("Zm9Q"),_=o("6cGi"),d=o("KQm4"),r=o("xEkU"),u=o.n(r),t=o("t23M");function a(Ze){var dt=Object(y.useRef)(),yt=Object(y.useRef)(!1);function nt(){for(var Pe=arguments.length,Xe=new Array(Pe),Ie=0;Ie<Pe;Ie++)Xe[Ie]=arguments[Ie];yt.current||(u.a.cancel(dt.current),dt.current=u()(function(){Ze.apply(void 0,Xe)}))}return Object(y.useEffect)(function(){return function(){yt.current=!0,u.a.cancel(dt.current)}},[]),nt}function n(Ze){var dt=Object(y.useRef)([]),yt=Object(y.useState)({}),nt=Object(g.a)(yt,2),Pe=nt[1],Xe=Object(y.useRef)(typeof Ze=="function"?Ze():Ze),Ie=a(function(){var qe=Xe.current;dt.current.forEach(function(pt){qe=pt(qe)}),dt.current=[],Xe.current=qe,Pe({})});function $e(qe){dt.current.push(qe),Ie()}return[Xe.current,$e]}var i=o("4IlW");function h(Ze,dt){var yt,nt=Ze.prefixCls,Pe=Ze.id,Xe=Ze.active,Ie=Ze.rtl,$e=Ze.tab,qe=$e.key,pt=$e.tab,rt=$e.disabled,It=$e.closeIcon,Vt=Ze.tabBarGutter,fn=Ze.tabPosition,on=Ze.closable,un=Ze.renderWrapper,ln=Ze.removeAriaLabel,Hn=Ze.editable,yn=Ze.onClick,kr=Ze.onRemove,Dr=Ze.onFocus,Jr="".concat(nt,"-tab");y.useEffect(function(){return kr},[]);var Fr={};fn==="top"||fn==="bottom"?Fr[Ie?"marginLeft":"marginRight"]=Vt:Fr.marginBottom=Vt;var ta=Hn&&on!==!1&&!rt;function Kn(_n){if(rt)return;yn(_n)}function Sr(_n){_n.preventDefault(),_n.stopPropagation(),Hn.onEdit("remove",{key:qe,event:_n})}var Gn=y.createElement("div",{key:qe,ref:dt,className:w()(Jr,(yt={},Object(L.a)(yt,"".concat(Jr,"-with-remove"),ta),Object(L.a)(yt,"".concat(Jr,"-active"),Xe),Object(L.a)(yt,"".concat(Jr,"-disabled"),rt),yt)),style:Fr,onClick:Kn},y.createElement("div",{role:"tab","aria-selected":Xe,id:Pe&&"".concat(Pe,"-tab-").concat(qe),className:"".concat(Jr,"-btn"),"aria-controls":Pe&&"".concat(Pe,"-panel-").concat(qe),"aria-disabled":rt,tabIndex:rt?null:0,onClick:function(Bn){Bn.stopPropagation(),Kn(Bn)},onKeyDown:function(Bn){[i.a.SPACE,i.a.ENTER].includes(Bn.which)&&(Bn.preventDefault(),Kn(Bn))},onFocus:Dr},pt),ta&&y.createElement("button",{type:"button","aria-label":ln||"remove",tabIndex:0,className:"".concat(Jr,"-remove"),onClick:function(Bn){Bn.stopPropagation(),Sr(Bn)}},It||Hn.removeIcon||"\xD7"));return un&&(Gn=un(Gn)),Gn}var l=y.forwardRef(h),s={width:0,height:0,left:0,top:0};function p(Ze,dt,yt){return Object(y.useMemo)(function(){for(var nt,Pe=new Map,Xe=dt.get((nt=Ze[0])===null||nt===void 0?void 0:nt.key)||s,Ie=Xe.left+Xe.width,$e=0;$e<Ze.length;$e+=1){var qe=Ze[$e].key,pt=dt.get(qe);if(!pt){var rt;pt=dt.get((rt=Ze[$e-1])===null||rt===void 0?void 0:rt.key)||s}var It=Pe.get(qe)||Object(b.a)({},pt);It.right=Ie-It.left-It.width,Pe.set(qe,It)}return Pe},[Ze.map(function(nt){return nt.key}).join("_"),dt,yt])}var O={width:0,height:0,left:0,top:0,right:0};function S(Ze,dt,yt,nt,Pe){var Xe=Pe.tabs,Ie=Pe.tabPosition,$e=Pe.rtl,qe,pt,rt;["top","bottom"].includes(Ie)?(qe="width",pt=$e?"right":"left",rt=Math.abs(dt.left)):(qe="height",pt="top",rt=-dt.top);var It=dt[qe],Vt=yt[qe],fn=nt[qe],on=It;return Vt+fn>It&&(on=It-fn),Object(y.useMemo)(function(){if(!Xe.length)return[0,0];for(var un=Xe.length,ln=un,Hn=0;Hn<un;Hn+=1){var yn=Ze.get(Xe[Hn].key)||O;if(yn[pt]+yn[qe]>rt+on){ln=Hn-1;break}}for(var kr=0,Dr=un-1;Dr>=0;Dr-=1){var Jr=Ze.get(Xe[Dr].key)||O;if(Jr[pt]<rt){kr=Dr+1;break}}return[kr,ln]},[Ze,rt,on,Ie,Xe.map(function(un){return un.key}).join("_"),$e])}var v=o("wx14"),P=o("1OyB"),R=o("vuIU"),E=o("JX7q"),C=o("Ji7U"),m=o("LK+K"),T=o("I8Z2"),I=o("bT9E"),D=o("2GS6"),N=o("Gytx"),z=o.n(N),F=o("U8pU"),W=/iPhone/i,K=/iPod/i,B=/iPad/i,k=/\bAndroid(?:.+)Mobile\b/i,G=/Android/i,ne=/\bAndroid(?:.+)SD4930UR\b/i,fe=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,de=/Windows Phone/i,xe=/\bWindows(?:.+)ARM\b/i,Oe=/BlackBerry/i,ce=/BB10/i,be=/Opera Mini/i,ve=/\b(CriOS|Chrome)(?:.+)Mobile/i,ue=/Mobile(?:.+)Firefox\b/i;function se(Ze,dt){return Ze.test(dt)}function q(Ze){var dt=Ze||(typeof navigator!="undefined"?navigator.userAgent:""),yt=(dt||"").split("[FBAN");if(typeof yt[1]!="undefined"){var nt=yt,Pe=Object(g.a)(nt,1);dt=Pe[0]}if(yt=dt.split("Twitter"),typeof yt[1]!="undefined"){var Xe=yt,Ie=Object(g.a)(Xe,1);dt=Ie[0]}var $e={apple:{phone:se(W,dt)&&!se(de,dt),ipod:se(K,dt),tablet:!se(W,dt)&&se(B,dt)&&!se(de,dt),device:(se(W,dt)||se(K,dt)||se(B,dt))&&!se(de,dt)},amazon:{phone:se(ne,dt),tablet:!se(ne,dt)&&se(fe,dt),device:se(ne,dt)||se(fe,dt)},android:{phone:!se(de,dt)&&se(ne,dt)||!se(de,dt)&&se(k,dt),tablet:!se(de,dt)&&!se(ne,dt)&&!se(k,dt)&&(se(fe,dt)||se(G,dt)),device:!se(de,dt)&&(se(ne,dt)||se(fe,dt)||se(k,dt)||se(G,dt))||se(/\bokhttp\b/i,dt)},windows:{phone:se(de,dt),tablet:se(xe,dt),device:se(de,dt)||se(xe,dt)},other:{blackberry:se(Oe,dt),blackberry10:se(ce,dt),opera:se(be,dt),firefox:se(ue,dt),chrome:se(ve,dt),device:se(Oe,dt)||se(ce,dt)||se(be,dt)||se(ue,dt)||se(ve,dt)},any:null,phone:null,tablet:null};return $e.any=$e.apple.device||$e.android.device||$e.windows.device||$e.other.device,$e.phone=$e.apple.phone||$e.android.phone||$e.windows.phone,$e.tablet=$e.apple.tablet||$e.android.tablet||$e.windows.tablet,$e}var me=Object(b.a)(Object(b.a)({},q()),{},{isMobile:q}),re=me;function ie(){}function we(Ze,dt,yt){var nt=dt||"";return Ze.key||"".concat(nt,"item_").concat(yt)}function le(Ze){return"".concat(Ze,"-menu-")}function $(Ze,dt){var yt=-1;y.Children.forEach(Ze,function(nt){yt+=1,nt&&nt.type&&nt.type.isMenuItemGroup?y.Children.forEach(nt.props.children,function(Pe){yt+=1,dt(Pe,yt)}):dt(nt,yt)})}function J(Ze,dt,yt){if(!Ze||yt.find)return;y.Children.forEach(Ze,function(nt){if(nt){var Pe=nt.type;if(!Pe||!(Pe.isSubMenu||Pe.isMenuItem||Pe.isMenuItemGroup))return;dt.indexOf(nt.key)!==-1?yt.find=!0:nt.props.children&&J(nt.props.children,dt,yt)}})}var te=["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"],De=function(dt){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,nt=dt&&typeof dt.getBoundingClientRect=="function"&&dt.getBoundingClientRect().width;if(nt){if(yt){var Pe=getComputedStyle(dt),Xe=Pe.marginLeft,Ie=Pe.marginRight;nt+=+Xe.replace("px","")+ +Ie.replace("px","")}nt=+nt.toFixed(6)}return nt||0},Te=function(dt,yt,nt){dt&&Object(F.a)(dt.style)==="object"&&(dt.style[yt]=nt)},ke=function(){return re.any},tt=o("bdgK"),ot=o("i8i4"),gt=o.n(ot),Et=o("wgJM"),xt=o("l4aY"),St=o("m+aA"),Je=o("c+Xe"),Ue=o("zT1h"),ft=o("QC+M");function kt(Ze,dt,yt){return yt?Ze[0]===dt[0]:Ze[0]===dt[0]&&Ze[1]===dt[1]}function ht(Ze,dt,yt){var nt=Ze[dt]||{};return Object(b.a)(Object(b.a)({},nt),yt)}function _t(Ze,dt,yt,nt){for(var Pe=yt.points,Xe=Object.keys(Ze),Ie=0;Ie<Xe.length;Ie+=1){var $e=Xe[Ie];if(kt(Ze[$e].points,Pe,nt))return"".concat(dt,"-placement-").concat($e)}return""}var Qe=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var Ze=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(Ze)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(Ze==null?void 0:Ze.substr(0,4)))},He=o("MNnm");function Ge(Ze,dt){var yt={};return yt[Ze.toLowerCase()]=dt.toLowerCase(),yt["Webkit".concat(Ze)]="webkit".concat(dt),yt["Moz".concat(Ze)]="moz".concat(dt),yt["ms".concat(Ze)]="MS".concat(dt),yt["O".concat(Ze)]="o".concat(dt.toLowerCase()),yt}function Ee(Ze,dt){var yt={animationend:Ge("Animation","AnimationEnd"),transitionend:Ge("Transition","TransitionEnd")};return Ze&&("AnimationEvent"in dt||delete yt.animationend.animation,"TransitionEvent"in dt||delete yt.transitionend.transition),yt}var Ae=Ee(Object(He.a)(),typeof window!="undefined"?window:{}),Fe={};if(Object(He.a)()){var We=document.createElement("div");Fe=We.style}var Ke={};function st(Ze){if(Ke[Ze])return Ke[Ze];var dt=Ae[Ze];if(dt)for(var yt=Object.keys(dt),nt=yt.length,Pe=0;Pe<nt;Pe+=1){var Xe=yt[Pe];if(Object.prototype.hasOwnProperty.call(dt,Xe)&&Xe in Fe)return Ke[Ze]=dt[Xe],Ke[Ze]}return""}var Ot=st("animationend"),Bt=st("transitionend"),an=!!(Ot&&Bt),Kt=Ot||"animationend",bt=Bt||"transitionend";function Be(Ze,dt){if(!Ze)return null;if(Object(F.a)(Ze)==="object"){var yt=dt.replace(/-\w/g,function(nt){return nt[1].toUpperCase()});return Ze[yt]}return"".concat(Ze,"-").concat(dt)}var at="none",it="appear",Me="enter",Ye="leave",ut="none",mt="prepare",Pt="start",jt="active",et="end";function Dt(Ze){var dt=Object(y.useRef)(!1),yt=Object(y.useState)(Ze),nt=Object(g.a)(yt,2),Pe=nt[0],Xe=nt[1];function Ie($e){dt.current||Xe($e)}return Object(y.useEffect)(function(){return function(){dt.current=!0}},[]),[Pe,Ie]}var Ht=Object(He.a)()?y.useLayoutEffect:y.useEffect,bn=Ht,Cn=function(){var Ze=y.useRef(null);function dt(){Et.a.cancel(Ze.current)}function yt(nt){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;dt();var Xe=Object(Et.a)(function(){Pe<=1?nt({isCanceled:function(){return Xe!==Ze.current}}):yt(nt,Pe-1)});Ze.current=Xe}return y.useEffect(function(){return function(){dt()}},[]),[yt,dt]},Yn=[mt,Pt,jt,et],qn=!1,Pn=!0;function cn(Ze){return Ze===jt||Ze===et}var xr=function(Ze,dt){var yt=y.useState(ut),nt=Object(g.a)(yt,2),Pe=nt[0],Xe=nt[1],Ie=Cn(),$e=Object(g.a)(Ie,2),qe=$e[0],pt=$e[1];function rt(){Xe(mt)}return bn(function(){if(Pe!==ut&&Pe!==et){var It=Yn.indexOf(Pe),Vt=Yn[It+1],fn=dt(Pe);fn===qn?Xe(Vt):qe(function(on){function un(){if(on.isCanceled())return;Xe(Vt)}fn===!0?un():Promise.resolve(fn).then(un)})}},[Ze,Pe]),y.useEffect(function(){return function(){pt()}},[]),[rt,Pe]},wr=function(Ze){var dt=Object(y.useRef)(),yt=Object(y.useRef)(Ze);yt.current=Ze;var nt=y.useCallback(function(Ie){yt.current(Ie)},[]);function Pe(Ie){Ie&&(Ie.removeEventListener(bt,nt),Ie.removeEventListener(Kt,nt))}function Xe(Ie){dt.current&&dt.current!==Ie&&Pe(dt.current),Ie&&Ie!==dt.current&&(Ie.addEventListener(bt,nt),Ie.addEventListener(Kt,nt),dt.current=Ie)}return y.useEffect(function(){return function(){Pe(dt.current)}},[]),[Xe,Pe]};function Rr(Ze,dt,yt,nt){var Pe=nt.motionEnter,Xe=Pe===void 0?!0:Pe,Ie=nt.motionAppear,$e=Ie===void 0?!0:Ie,qe=nt.motionLeave,pt=qe===void 0?!0:qe,rt=nt.motionDeadline,It=nt.motionLeaveImmediately,Vt=nt.onAppearPrepare,fn=nt.onEnterPrepare,on=nt.onLeavePrepare,un=nt.onAppearStart,ln=nt.onEnterStart,Hn=nt.onLeaveStart,yn=nt.onAppearActive,kr=nt.onEnterActive,Dr=nt.onLeaveActive,Jr=nt.onAppearEnd,Fr=nt.onEnterEnd,ta=nt.onLeaveEnd,Kn=nt.onVisibleChanged,Sr=Dt(),Gn=Object(g.a)(Sr,2),_n=Gn[0],Bn=Gn[1],zr=Dt(at),sa=Object(g.a)(zr,2),fr=sa[0],ra=sa[1],Ea=Dt(null),ca=Object(g.a)(Ea,2),xa=ca[0],Or=ca[1],vr=Object(y.useRef)(!1),Pr=Object(y.useRef)(null),nr=Object(y.useRef)(!1),da=Object(y.useRef)(null);function ya(){var Ua=yt();return Ua||da.current}var _a=Object(y.useRef)(!1);function Ta(Ua){var Pa=ya();if(Ua&&!Ua.deadline&&Ua.target!==Pa)return;var Za;fr===it&&_a.current?Za=Jr==null?void 0:Jr(Pa,Ua):fr===Me&&_a.current?Za=Fr==null?void 0:Fr(Pa,Ua):fr===Ye&&_a.current&&(Za=ta==null?void 0:ta(Pa,Ua)),Za!==!1&&!nr.current&&(ra(at),Or(null))}var ha=wr(Ta),La=Object(g.a)(ha,1),Na=La[0],Ba=y.useMemo(function(){var Ua,Pa,Za;switch(fr){case"appear":return Ua={},Object(L.a)(Ua,mt,Vt),Object(L.a)(Ua,Pt,un),Object(L.a)(Ua,jt,yn),Ua;case"enter":return Pa={},Object(L.a)(Pa,mt,fn),Object(L.a)(Pa,Pt,ln),Object(L.a)(Pa,jt,kr),Pa;case"leave":return Za={},Object(L.a)(Za,mt,on),Object(L.a)(Za,Pt,Hn),Object(L.a)(Za,jt,Dr),Za;default:return{}}},[fr]),ni=xr(fr,function(Ua){if(Ua===mt){var Pa=Ba[mt];return Pa?Pa(ya()):qn}if(Ia in Ba){var Za;Or(((Za=Ba[Ia])===null||Za===void 0?void 0:Za.call(Ba,ya(),null))||null)}return Ia===jt&&(Na(ya()),rt>0&&(clearTimeout(Pr.current),Pr.current=setTimeout(function(){Ta({deadline:!0})},rt))),Pn}),Fi=Object(g.a)(ni,2),Ai=Fi[0],Ia=Fi[1],bi=cn(Ia);_a.current=bi,bn(function(){Bn(dt);var Ua=vr.current;if(vr.current=!0,!Ze)return;var Pa;!Ua&&dt&&$e&&(Pa=it),Ua&&dt&&Xe&&(Pa=Me),(Ua&&!dt&&pt||!Ua&&It&&!dt&&pt)&&(Pa=Ye),Pa&&(ra(Pa),Ai())},[dt]),Object(y.useEffect)(function(){(fr===it&&!$e||fr===Me&&!Xe||fr===Ye&&!pt)&&ra(at)},[$e,Xe,pt]),Object(y.useEffect)(function(){return function(){clearTimeout(Pr.current),nr.current=!0}},[]),Object(y.useEffect)(function(){_n!==void 0&&fr===at&&(Kn==null||Kn(_n))},[_n,fr]);var Si=xa;return Ba[mt]&&Ia===Pt&&(Si=Object(b.a)({transition:"none"},Si)),[fr,Ia,Si,_n!=null?_n:dt]}var cr=function(Ze){Object(C.a)(yt,Ze);var dt=Object(m.a)(yt);function yt(){return Object(P.a)(this,yt),dt.apply(this,arguments)}return Object(R.a)(yt,[{key:"render",value:function(){return this.props.children}}]),yt}(y.Component),Ur=cr;function yr(Ze){var dt=Ze;Object(F.a)(Ze)==="object"&&(dt=Ze.transitionSupport);function yt(Pe){return!!(Pe.motionName&&dt)}var nt=y.forwardRef(function(Pe,Xe){var Ie=Pe.visible,$e=Ie===void 0?!0:Ie,qe=Pe.removeOnLeave,pt=qe===void 0?!0:qe,rt=Pe.forceRender,It=Pe.children,Vt=Pe.motionName,fn=Pe.leavedClassName,on=Pe.eventProps,un=yt(Pe),ln=Object(y.useRef)(),Hn=Object(y.useRef)();function yn(){try{return Object(St.a)(ln.current||Hn.current)}catch(ra){return null}}var kr=Rr(un,$e,yn,Pe),Dr=Object(g.a)(kr,4),Jr=Dr[0],Fr=Dr[1],ta=Dr[2],Kn=Dr[3],Sr=y.useRef(Kn);Kn&&(Sr.current=!0);var Gn=Object(y.useRef)(Xe);Gn.current=Xe;var _n=y.useCallback(function(ra){ln.current=ra,Object(Je.b)(Gn.current,ra)},[]),Bn,zr=Object(b.a)(Object(b.a)({},on),{},{visible:$e});if(!It)Bn=null;else if(Jr===at||!yt(Pe))Kn?Bn=It(Object(b.a)({},zr),_n):!pt&&Sr.current?Bn=It(Object(b.a)(Object(b.a)({},zr),{},{className:fn}),_n):rt?Bn=It(Object(b.a)(Object(b.a)({},zr),{},{style:{display:"none"}}),_n):Bn=null;else{var sa,fr;Fr===mt?fr="prepare":cn(Fr)?fr="active":Fr===Pt&&(fr="start"),Bn=It(Object(b.a)(Object(b.a)({},zr),{},{className:w()(Be(Vt,Jr),(sa={},Object(L.a)(sa,Be(Vt,"".concat(Jr,"-").concat(fr)),fr),Object(L.a)(sa,Vt,typeof Vt=="string"),sa)),style:ta}),_n)}return y.createElement(Ur,{ref:Hn},Bn)});return nt.displayName="CSSMotion",nt}var sn=yr(an),Zt="add",Tn="keep",jr="remove",jn="removed";function $n(Ze){var dt;return Ze&&Object(F.a)(Ze)==="object"&&"key"in Ze?dt=Ze:dt={key:Ze},Object(b.a)(Object(b.a)({},dt),{},{key:String(dt.key)})}function Wn(){var Ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Ze.map($n)}function pe(){var Ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],yt=[],nt=0,Pe=dt.length,Xe=Wn(Ze),Ie=Wn(dt);Xe.forEach(function(pt){for(var rt=!1,It=nt;It<Pe;It+=1){var Vt=Ie[It];if(Vt.key===pt.key){nt<It&&(yt=yt.concat(Ie.slice(nt,It).map(function(fn){return Object(b.a)(Object(b.a)({},fn),{},{status:Zt})})),nt=It),yt.push(Object(b.a)(Object(b.a)({},Vt),{},{status:Tn})),nt+=1,rt=!0;break}}rt||yt.push(Object(b.a)(Object(b.a)({},pt),{},{status:jr}))}),nt<Pe&&(yt=yt.concat(Ie.slice(nt).map(function(pt){return Object(b.a)(Object(b.a)({},pt),{},{status:Zt})})));var $e={};yt.forEach(function(pt){var rt=pt.key;$e[rt]=($e[rt]||0)+1});var qe=Object.keys($e).filter(function(pt){return $e[pt]>1});return qe.forEach(function(pt){yt=yt.filter(function(rt){var It=rt.key,Vt=rt.status;return It!==pt||Vt!==jr}),yt.forEach(function(rt){rt.key===pt&&(rt.status=Tn)})}),yt}var V=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Z(Ze){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:sn,yt=function(nt){Object(C.a)(Xe,nt);var Pe=Object(m.a)(Xe);function Xe(){var Ie;return Object(P.a)(this,Xe),Ie=Pe.apply(this,arguments),Ie.state={keyEntities:[]},Ie.removeKey=function($e){Ie.setState(function(qe){var pt=qe.keyEntities;return{keyEntities:pt.map(function(rt){return rt.key!==$e?rt:Object(b.a)(Object(b.a)({},rt),{},{status:jn})})}})},Ie}return Object(R.a)(Xe,[{key:"render",value:function(){var $e=this,qe=this.state.keyEntities,pt=this.props,rt=pt.component,It=pt.children,Vt=pt.onVisibleChanged,fn=Object(A.a)(pt,["component","children","onVisibleChanged"]),on=rt||y.Fragment,un={};return V.forEach(function(ln){un[ln]=fn[ln],delete fn[ln]}),delete fn.keys,y.createElement(on,fn,qe.map(function(ln){var Hn=ln.status,yn=Object(A.a)(ln,["status"]),kr=Hn===Zt||Hn===Tn;return y.createElement(dt,Object(v.a)({},un,{key:yn.key,visible:kr,eventProps:yn,onVisibleChanged:function(Jr){Vt==null||Vt(Jr,{key:yn.key}),Jr||$e.removeKey(yn.key)}}),It)}))}}],[{key:"getDerivedStateFromProps",value:function($e,qe){var pt=$e.keys,rt=qe.keyEntities,It=Wn(pt),Vt=pe(rt,It);return{keyEntities:Vt.filter(function(fn){var on=rt.find(function(un){var ln=un.key;return fn.key===ln});return!(on&&on.status===jn&&fn.status===jr)})}}}]),Xe}(y.Component);return yt.defaultProps={component:"div"},yt}var oe=Z(an),Ce=sn;function he(Ze){var dt=Ze.prefixCls,yt=Ze.motion,nt=Ze.animation,Pe=Ze.transitionName;return yt||(nt?{motionName:"".concat(dt,"-").concat(nt)}:Pe?{motionName:Pe}:null)}function ct(Ze){var dt=Ze.prefixCls,yt=Ze.visible,nt=Ze.zIndex,Pe=Ze.mask,Xe=Ze.maskMotion,Ie=Ze.maskAnimation,$e=Ze.maskTransitionName;if(!Pe)return null;var qe={};return(Xe||$e||Ie)&&(qe=Object(b.a)({motionAppear:!0},he({motion:Xe,prefixCls:dt,transitionName:$e,animation:Ie}))),y.createElement(Ce,Object(v.a)({},qe,{visible:yt,removeOnLeave:!0}),function(pt){var rt=pt.className;return y.createElement("div",{style:{zIndex:nt},className:w()("".concat(dt,"-mask"),rt)})})}var rn=o("9mu1"),In=o("o0o1"),Vn=o.n(In),tn=o("HaE+"),En=["measure","align",null,"motion"],Xn=function(Ze,dt){var yt=Object(y.useState)(null),nt=Object(g.a)(yt,2),Pe=nt[0],Xe=nt[1],Ie=Object(y.useRef)(),$e=Object(y.useRef)(!1);function qe(It){$e.current||Xe(It)}function pt(){Et.a.cancel(Ie.current)}function rt(It){pt(),Ie.current=Object(Et.a)(function(){qe(function(Vt){switch(Pe){case"align":return"motion";case"motion":return"stable";default:}return Vt}),It==null||It()})}return Object(y.useEffect)(function(){qe("measure")},[Ze]),Object(y.useEffect)(function(){switch(Pe){case"measure":dt();break;default:}Pe&&(Ie.current=Object(Et.a)(Object(tn.a)(Vn.a.mark(function It(){var Vt,fn;return Vn.a.wrap(function(un){for(;;)switch(un.prev=un.next){case 0:Vt=En.indexOf(Pe),fn=En[Vt+1],fn&&Vt!==-1&&qe(fn);case 3:case"end":return un.stop()}},It)}))))},[Pe]),Object(y.useEffect)(function(){return function(){$e.current=!0,pt()}},[]),[Pe,rt]},$r=function(Ze){var dt=y.useState({width:0,height:0}),yt=Object(g.a)(dt,2),nt=yt[0],Pe=yt[1];function Xe($e){Pe({width:$e.offsetWidth,height:$e.offsetHeight})}var Ie=y.useMemo(function(){var $e={};if(Ze){var qe=nt.width,pt=nt.height;Ze.indexOf("height")!==-1&&pt?$e.height=pt:Ze.indexOf("minHeight")!==-1&&pt&&($e.minHeight=pt),Ze.indexOf("width")!==-1&&qe?$e.width=qe:Ze.indexOf("minWidth")!==-1&&qe&&($e.minWidth=qe)}return $e},[Ze,nt]);return[Ie,Xe]},ga=y.forwardRef(function(Ze,dt){var yt=Ze.visible,nt=Ze.prefixCls,Pe=Ze.className,Xe=Ze.style,Ie=Ze.children,$e=Ze.zIndex,qe=Ze.stretch,pt=Ze.destroyPopupOnHide,rt=Ze.forceRender,It=Ze.align,Vt=Ze.point,fn=Ze.getRootDomNode,on=Ze.getClassNameFromAlign,un=Ze.onAlign,ln=Ze.onMouseEnter,Hn=Ze.onMouseLeave,yn=Ze.onMouseDown,kr=Ze.onTouchStart,Dr=Object(y.useRef)(),Jr=Object(y.useRef)(),Fr=Object(y.useState)(),ta=Object(g.a)(Fr,2),Kn=ta[0],Sr=ta[1],Gn=$r(qe),_n=Object(g.a)(Gn,2),Bn=_n[0],zr=_n[1];function sa(){qe&&zr(fn())}var fr=Xn(yt,sa),ra=Object(g.a)(fr,2),Ea=ra[0],ca=ra[1],xa=Object(y.useRef)();function Or(){return Vt||fn}function vr(){var ha;(ha=Dr.current)===null||ha===void 0||ha.forceAlign()}function Pr(ha,La){var Na=on(La);Kn!==Na&&Sr(Na),Ea==="align"&&(Kn!==Na?Promise.resolve().then(function(){vr()}):ca(function(){var Ba;(Ba=xa.current)===null||Ba===void 0||Ba.call(xa)}),un==null||un(ha,La))}var nr=Object(b.a)({},he(Ze));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(ha){var La=nr[ha];nr[ha]=function(Na,Ba){return ca(),La==null?void 0:La(Na,Ba)}});function da(){return new Promise(function(ha){xa.current=ha})}y.useEffect(function(){!nr.motionName&&Ea==="motion"&&ca()},[nr.motionName,Ea]),y.useImperativeHandle(dt,function(){return{forceAlign:vr,getElement:function(){return Jr.current}}});var ya=Object(b.a)(Object(b.a)({},Bn),{},{zIndex:$e,opacity:Ea==="motion"||Ea==="stable"||!yt?void 0:0,pointerEvents:Ea==="stable"?void 0:"none"},Xe),_a=!0;(It==null?void 0:It.points)&&(Ea==="align"||Ea==="stable")&&(_a=!1);var Ta=Ie;return y.Children.count(Ie)>1&&(Ta=y.createElement("div",{className:"".concat(nt,"-content")},Ie)),y.createElement(Ce,Object(v.a)({visible:yt,ref:Jr,leavedClassName:"".concat(nt,"-hidden")},nr,{onAppearPrepare:da,onEnterPrepare:da,removeOnLeave:pt,forceRender:rt}),function(ha,La){var Na=ha.className,Ba=ha.style,ni=w()(nt,Pe,Kn,Na);return y.createElement(rn.a,{target:Or(),key:"popup",ref:Dr,monitorWindowResize:!0,disabled:_a,align:It,onAlign:Pr},y.createElement("div",{ref:La,className:ni,onMouseEnter:ln,onMouseLeave:Hn,onMouseDownCapture:yn,onTouchStartCapture:kr,style:Object(b.a)(Object(b.a)({},Ba),ya)},Ta))})});ga.displayName="PopupInner";var pa=ga,dr=y.forwardRef(function(Ze,dt){var yt=Ze.prefixCls,nt=Ze.visible,Pe=Ze.zIndex,Xe=Ze.children,Ie=Ze.mobile;Ie=Ie===void 0?{}:Ie;var $e=Ie.popupClassName,qe=Ie.popupStyle,pt=Ie.popupMotion,rt=pt===void 0?{}:pt,It=Ie.popupRender,Vt=y.useRef();y.useImperativeHandle(dt,function(){return{forceAlign:function(){},getElement:function(){return Vt.current}}});var fn=Object(b.a)({zIndex:Pe},qe),on=Xe;return y.Children.count(Xe)>1&&(on=y.createElement("div",{className:"".concat(yt,"-content")},Xe)),It&&(on=It(on)),y.createElement(Ce,Object(v.a)({visible:nt,ref:Vt,removeOnLeave:!0},rt),function(un,ln){var Hn=un.className,yn=un.style,kr=w()(yt,$e,Hn);return y.createElement("div",{ref:ln,className:kr,style:Object(b.a)(Object(b.a)({},yn),fn)},on)})});dr.displayName="MobilePopupInner";var za=dr,ja=["visible","mobile"],Ra=y.forwardRef(function(Ze,dt){var yt=Ze.visible,nt=Ze.mobile,Pe=Object(A.a)(Ze,ja),Xe=Object(y.useState)(yt),Ie=Object(g.a)(Xe,2),$e=Ie[0],qe=Ie[1],pt=Object(y.useState)(!1),rt=Object(g.a)(pt,2),It=rt[0],Vt=rt[1],fn=Object(b.a)(Object(b.a)({},Pe),{},{visible:$e});Object(y.useEffect)(function(){qe(yt),yt&&nt&&Vt(Qe())},[yt,nt]);var on=It?y.createElement(za,Object(v.a)({},fn,{mobile:nt,ref:dt})):y.createElement(pa,Object(v.a)({},fn,{ref:dt}));return y.createElement("div",null,y.createElement(ct,fn),on)});Ra.displayName="Popup";var Ha=Ra,Sa=y.createContext(null),Ja=Sa;function ka(){}function li(){return""}function oi(Ze){return Ze?Ze.ownerDocument:window.document}var ua=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function fa(Ze){var dt=function(yt){Object(C.a)(Pe,yt);var nt=Object(m.a)(Pe);function Pe(Xe){var Ie;Object(P.a)(this,Pe),Ie=nt.call(this,Xe),Ie.popupRef=y.createRef(),Ie.triggerRef=y.createRef(),Ie.attachId=void 0,Ie.clickOutsideHandler=void 0,Ie.touchOutsideHandler=void 0,Ie.contextMenuOutsideHandler1=void 0,Ie.contextMenuOutsideHandler2=void 0,Ie.mouseDownTimeout=void 0,Ie.focusTime=void 0,Ie.preClickTime=void 0,Ie.preTouchTime=void 0,Ie.delayTimer=void 0,Ie.hasPopupMouseDown=void 0,Ie.onMouseEnter=function(qe){var pt=Ie.props.mouseEnterDelay;Ie.fireEvents("onMouseEnter",qe),Ie.delaySetPopupVisible(!0,pt,pt?null:qe)},Ie.onMouseMove=function(qe){Ie.fireEvents("onMouseMove",qe),Ie.setPoint(qe)},Ie.onMouseLeave=function(qe){Ie.fireEvents("onMouseLeave",qe),Ie.delaySetPopupVisible(!1,Ie.props.mouseLeaveDelay)},Ie.onPopupMouseEnter=function(){Ie.clearDelayTimer()},Ie.onPopupMouseLeave=function(qe){var pt;if(qe.relatedTarget&&!qe.relatedTarget.setTimeout&&Object(xt.a)((pt=Ie.popupRef.current)===null||pt===void 0?void 0:pt.getElement(),qe.relatedTarget))return;Ie.delaySetPopupVisible(!1,Ie.props.mouseLeaveDelay)},Ie.onFocus=function(qe){Ie.fireEvents("onFocus",qe),Ie.clearDelayTimer(),Ie.isFocusToShow()&&(Ie.focusTime=Date.now(),Ie.delaySetPopupVisible(!0,Ie.props.focusDelay))},Ie.onMouseDown=function(qe){Ie.fireEvents("onMouseDown",qe),Ie.preClickTime=Date.now()},Ie.onTouchStart=function(qe){Ie.fireEvents("onTouchStart",qe),Ie.preTouchTime=Date.now()},Ie.onBlur=function(qe){Ie.fireEvents("onBlur",qe),Ie.clearDelayTimer(),Ie.isBlurToHide()&&Ie.delaySetPopupVisible(!1,Ie.props.blurDelay)},Ie.onContextMenu=function(qe){qe.preventDefault(),Ie.fireEvents("onContextMenu",qe),Ie.setPopupVisible(!0,qe)},Ie.onContextMenuClose=function(){Ie.isContextMenuToShow()&&Ie.close()},Ie.onClick=function(qe){if(Ie.fireEvents("onClick",qe),Ie.focusTime){var pt;if(Ie.preClickTime&&Ie.preTouchTime?pt=Math.min(Ie.preClickTime,Ie.preTouchTime):Ie.preClickTime?pt=Ie.preClickTime:Ie.preTouchTime&&(pt=Ie.preTouchTime),Math.abs(pt-Ie.focusTime)<20)return;Ie.focusTime=0}Ie.preClickTime=0,Ie.preTouchTime=0,Ie.isClickToShow()&&(Ie.isClickToHide()||Ie.isBlurToHide())&&qe&&qe.preventDefault&&qe.preventDefault();var rt=!Ie.state.popupVisible;(Ie.isClickToHide()&&!rt||rt&&Ie.isClickToShow())&&Ie.setPopupVisible(!Ie.state.popupVisible,qe)},Ie.onPopupMouseDown=function(){if(Ie.hasPopupMouseDown=!0,clearTimeout(Ie.mouseDownTimeout),Ie.mouseDownTimeout=window.setTimeout(function(){Ie.hasPopupMouseDown=!1},0),Ie.context){var qe;(qe=Ie.context).onPopupMouseDown.apply(qe,arguments)}},Ie.onDocumentClick=function(qe){if(Ie.props.mask&&!Ie.props.maskClosable)return;var pt=qe.target,rt=Ie.getRootDomNode(),It=Ie.getPopupDomNode();(!Object(xt.a)(rt,pt)||Ie.isContextMenuOnly())&&!Object(xt.a)(It,pt)&&!Ie.hasPopupMouseDown&&Ie.close()},Ie.getRootDomNode=function(){var qe=Ie.props.getTriggerDOMNode;if(qe)return qe(Ie.triggerRef.current);try{var pt=Object(St.a)(Ie.triggerRef.current);if(pt)return pt}catch(rt){}return gt.a.findDOMNode(Object(E.a)(Ie))},Ie.getPopupClassNameFromAlign=function(qe){var pt=[],rt=Ie.props,It=rt.popupPlacement,Vt=rt.builtinPlacements,fn=rt.prefixCls,on=rt.alignPoint,un=rt.getPopupClassNameFromAlign;return It&&Vt&&pt.push(_t(Vt,fn,qe,on)),un&&pt.push(un(qe)),pt.join(" ")},Ie.getComponent=function(){var qe=Ie.props,pt=qe.prefixCls,rt=qe.destroyPopupOnHide,It=qe.popupClassName,Vt=qe.onPopupAlign,fn=qe.popupMotion,on=qe.popupAnimation,un=qe.popupTransitionName,ln=qe.popupStyle,Hn=qe.mask,yn=qe.maskAnimation,kr=qe.maskTransitionName,Dr=qe.maskMotion,Jr=qe.zIndex,Fr=qe.popup,ta=qe.stretch,Kn=qe.alignPoint,Sr=qe.mobile,Gn=qe.forceRender,_n=Ie.state,Bn=_n.popupVisible,zr=_n.point,sa=Ie.getPopupAlign(),fr={};return Ie.isMouseEnterToShow()&&(fr.onMouseEnter=Ie.onPopupMouseEnter),Ie.isMouseLeaveToHide()&&(fr.onMouseLeave=Ie.onPopupMouseLeave),fr.onMouseDown=Ie.onPopupMouseDown,fr.onTouchStart=Ie.onPopupMouseDown,y.createElement(Ha,Object(v.a)({prefixCls:pt,destroyPopupOnHide:rt,visible:Bn,point:Kn&&zr,className:It,align:sa,onAlign:Vt,animation:on,getClassNameFromAlign:Ie.getPopupClassNameFromAlign},fr,{stretch:ta,getRootDomNode:Ie.getRootDomNode,style:ln,mask:Hn,zIndex:Jr,transitionName:un,maskAnimation:yn,maskTransitionName:kr,maskMotion:Dr,ref:Ie.popupRef,motion:fn,mobile:Sr,forceRender:Gn}),typeof Fr=="function"?Fr():Fr)},Ie.attachParent=function(qe){Et.a.cancel(Ie.attachId);var pt=Ie.props,rt=pt.getPopupContainer,It=pt.getDocument,Vt=Ie.getRootDomNode(),fn;rt?(Vt||rt.length===0)&&(fn=rt(Vt)):fn=It(Ie.getRootDomNode()).body,fn?fn.appendChild(qe):Ie.attachId=Object(Et.a)(function(){Ie.attachParent(qe)})},Ie.getContainer=function(){var qe=Ie.props.getDocument,pt=qe(Ie.getRootDomNode()).createElement("div");return pt.style.position="absolute",pt.style.top="0",pt.style.left="0",pt.style.width="100%",Ie.attachParent(pt),pt},Ie.setPoint=function(qe){var pt=Ie.props.alignPoint;if(!pt||!qe)return;Ie.setState({point:{pageX:qe.pageX,pageY:qe.pageY}})},Ie.handlePortalUpdate=function(){Ie.state.prevPopupVisible!==Ie.state.popupVisible&&Ie.props.afterPopupVisibleChange(Ie.state.popupVisible)},Ie.triggerContextValue={onPopupMouseDown:Ie.onPopupMouseDown};var $e;return"popupVisible"in Xe?$e=!!Xe.popupVisible:$e=!!Xe.defaultPopupVisible,Ie.state={prevPopupVisible:$e,popupVisible:$e},ua.forEach(function(qe){Ie["fire".concat(qe)]=function(pt){Ie.fireEvents(qe,pt)}}),Ie}return Object(R.a)(Pe,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Ie=this.props,$e=this.state;if($e.popupVisible){var qe;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(qe=Ie.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(Ue.a)(qe,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(qe=qe||Ie.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(Ue.a)(qe,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(qe=qe||Ie.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(Ue.a)(qe,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Ue.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Et.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var Ie;return((Ie=this.popupRef.current)===null||Ie===void 0?void 0:Ie.getElement())||null}},{key:"getPopupAlign",value:function(){var Ie=this.props,$e=Ie.popupPlacement,qe=Ie.popupAlign,pt=Ie.builtinPlacements;return $e&&pt?ht(pt,$e,qe):qe}},{key:"setPopupVisible",value:function(Ie,$e){var qe=this.props.alignPoint,pt=this.state.popupVisible;this.clearDelayTimer(),pt!==Ie&&("popupVisible"in this.props||this.setState({popupVisible:Ie,prevPopupVisible:pt}),this.props.onPopupVisibleChange(Ie)),qe&&$e&&Ie&&this.setPoint($e)}},{key:"delaySetPopupVisible",value:function(Ie,$e,qe){var pt=this,rt=$e*1e3;if(this.clearDelayTimer(),rt){var It=qe?{pageX:qe.pageX,pageY:qe.pageY}:null;this.delayTimer=window.setTimeout(function(){pt.setPopupVisible(Ie,It),pt.clearDelayTimer()},rt)}else this.setPopupVisible(Ie,qe)}},{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(Ie){var $e=this.props.children.props,qe=this.props;return $e[Ie]&&qe[Ie]?this["fire".concat(Ie)]:$e[Ie]||qe[Ie]}},{key:"isClickToShow",value:function(){var Ie=this.props,$e=Ie.action,qe=Ie.showAction;return $e.indexOf("click")!==-1||qe.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var Ie=this.props.action;return Ie==="contextMenu"||Ie.length===1&&Ie[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var Ie=this.props,$e=Ie.action,qe=Ie.showAction;return $e.indexOf("contextMenu")!==-1||qe.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Ie=this.props,$e=Ie.action,qe=Ie.hideAction;return $e.indexOf("click")!==-1||qe.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Ie=this.props,$e=Ie.action,qe=Ie.showAction;return $e.indexOf("hover")!==-1||qe.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Ie=this.props,$e=Ie.action,qe=Ie.hideAction;return $e.indexOf("hover")!==-1||qe.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Ie=this.props,$e=Ie.action,qe=Ie.showAction;return $e.indexOf("focus")!==-1||qe.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Ie=this.props,$e=Ie.action,qe=Ie.hideAction;return $e.indexOf("focus")!==-1||qe.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var Ie;(Ie=this.popupRef.current)===null||Ie===void 0||Ie.forceAlign()}}},{key:"fireEvents",value:function(Ie,$e){var qe=this.props.children.props[Ie];qe&&qe($e);var pt=this.props[Ie];pt&&pt($e)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Ie=this.state.popupVisible,$e=this.props,qe=$e.children,pt=$e.forceRender,rt=$e.alignPoint,It=$e.className,Vt=$e.autoDestroy,fn=y.Children.only(qe),on={key:"trigger"};this.isContextMenuToShow()?on.onContextMenu=this.onContextMenu:on.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(on.onClick=this.onClick,on.onMouseDown=this.onMouseDown,on.onTouchStart=this.onTouchStart):(on.onClick=this.createTwoChains("onClick"),on.onMouseDown=this.createTwoChains("onMouseDown"),on.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(on.onMouseEnter=this.onMouseEnter,rt&&(on.onMouseMove=this.onMouseMove)):on.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?on.onMouseLeave=this.onMouseLeave:on.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(on.onFocus=this.onFocus,on.onBlur=this.onBlur):(on.onFocus=this.createTwoChains("onFocus"),on.onBlur=this.createTwoChains("onBlur"));var un=w()(fn&&fn.props&&fn.props.className,It);un&&(on.className=un);var ln=Object(b.a)({},on);Object(Je.c)(fn)&&(ln.ref=Object(Je.a)(this.triggerRef,fn.ref));var Hn=y.cloneElement(fn,ln),yn;return(Ie||this.popupRef.current||pt)&&(yn=y.createElement(Ze,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Ie&&Vt&&(yn=null),y.createElement(Ja.Provider,{value:this.triggerContextValue},Hn,yn)}}],[{key:"getDerivedStateFromProps",value:function(Ie,$e){var qe=Ie.popupVisible,pt={};return qe!==void 0&&$e.popupVisible!==qe&&(pt.popupVisible=qe,pt.prevPopupVisible=$e.popupVisible),pt}}]),Pe}(y.Component);return dt.contextType=Ja,dt.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:li,getDocument:oi,onPopupVisibleChange:ka,afterPopupVisibleChange:ka,onPopupAlign:ka,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},dt}var oa=fa(ft.a),ye={adjustX:1,adjustY:1},lt={topLeft:{points:["bl","tl"],overflow:ye,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ye,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ye,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ye,offset:[4,0]}},Mt={topLeft:{points:["bl","tl"],overflow:ye,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ye,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ye,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ye,offset:[4,0]}},wt=lt,Wt=0,Lt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Xt=function(dt,yt,nt){var Pe=le(yt),Xe=dt.getState();dt.setState({defaultActiveFirst:Object(b.a)(Object(b.a)({},Xe.defaultActiveFirst),{},Object(L.a)({},Pe,nt))})},en=function(Ze){Object(C.a)(yt,Ze);var dt=Object(m.a)(yt);function yt(nt){var Pe;Object(P.a)(this,yt),Pe=dt.call(this,nt),Pe.onDestroy=function(rt){Pe.props.onDestroy(rt)},Pe.onKeyDown=function(rt){var It=rt.keyCode,Vt=Pe.menuInstance,fn=Pe.props.store,on=Pe.getVisible();if(It===i.a.ENTER)return Pe.onTitleClick(rt),Xt(fn,Pe.props.eventKey,!0),!0;if(It===i.a.RIGHT)return on?Vt.onKeyDown(rt):(Pe.triggerOpenChange(!0),Xt(fn,Pe.props.eventKey,!0)),!0;if(It===i.a.LEFT){var un;if(on)un=Vt.onKeyDown(rt);else return;return un||(Pe.triggerOpenChange(!1),un=!0),un}return on&&(It===i.a.UP||It===i.a.DOWN)?Vt.onKeyDown(rt):void 0},Pe.onOpenChange=function(rt){Pe.props.onOpenChange(rt)},Pe.onPopupVisibleChange=function(rt){Pe.triggerOpenChange(rt,rt?"mouseenter":"mouseleave")},Pe.onMouseEnter=function(rt){var It=Pe.props,Vt=It.eventKey,fn=It.onMouseEnter,on=It.store;Xt(on,Pe.props.eventKey,!1),fn({key:Vt,domEvent:rt})},Pe.onMouseLeave=function(rt){var It=Pe.props,Vt=It.parentMenu,fn=It.eventKey,on=It.onMouseLeave;Vt.subMenuInstance=Object(E.a)(Pe),on({key:fn,domEvent:rt})},Pe.onTitleMouseEnter=function(rt){var It=Pe.props,Vt=It.eventKey,fn=It.onItemHover,on=It.onTitleMouseEnter;fn({key:Vt,hover:!0}),on({key:Vt,domEvent:rt})},Pe.onTitleMouseLeave=function(rt){var It=Pe.props,Vt=It.parentMenu,fn=It.eventKey,on=It.onItemHover,un=It.onTitleMouseLeave;Vt.subMenuInstance=Object(E.a)(Pe),on({key:fn,hover:!1}),un({key:fn,domEvent:rt})},Pe.onTitleClick=function(rt){var It=Object(E.a)(Pe),Vt=It.props;if(Vt.onTitleClick({key:Vt.eventKey,domEvent:rt}),Vt.triggerSubMenuAction==="hover")return;Pe.triggerOpenChange(!Pe.getVisible(),"click"),Xt(Vt.store,Pe.props.eventKey,!1)},Pe.onSubMenuClick=function(rt){typeof Pe.props.onClick=="function"&&Pe.props.onClick(Pe.addKeyPath(rt))},Pe.onSelect=function(rt){Pe.props.onSelect(rt)},Pe.onDeselect=function(rt){Pe.props.onDeselect(rt)},Pe.getPrefixCls=function(){return"".concat(Pe.props.rootPrefixCls,"-submenu")},Pe.getActiveClassName=function(){return"".concat(Pe.getPrefixCls(),"-active")},Pe.getDisabledClassName=function(){return"".concat(Pe.getPrefixCls(),"-disabled")},Pe.getSelectedClassName=function(){return"".concat(Pe.getPrefixCls(),"-selected")},Pe.getOpenClassName=function(){return"".concat(Pe.props.rootPrefixCls,"-submenu-open")},Pe.getVisible=function(){return Pe.state.isOpen},Pe.getMode=function(){return Pe.state.mode},Pe.saveMenuInstance=function(rt){Pe.menuInstance=rt},Pe.addKeyPath=function(rt){return Object(b.a)(Object(b.a)({},rt),{},{keyPath:(rt.keyPath||[]).concat(Pe.props.eventKey)})},Pe.triggerOpenChange=function(rt,It){var Vt=Pe.props.eventKey,fn=function(){Pe.onOpenChange({key:Vt,item:Object(E.a)(Pe),trigger:It,open:rt})};It==="mouseenter"?Pe.mouseenterTimeout=setTimeout(function(){fn()},0):fn()},Pe.isChildrenSelected=function(){var rt={find:!1};return J(Pe.props.children,Pe.props.selectedKeys,rt),rt.find},Pe.isInlineMode=function(){return Pe.getMode()==="inline"},Pe.adjustWidth=function(){if(!Pe.subMenuTitle||!Pe.menuInstance)return;var rt=ot.findDOMNode(Pe.menuInstance);if(rt.offsetWidth>=Pe.subMenuTitle.offsetWidth)return;rt.style.minWidth="".concat(Pe.subMenuTitle.offsetWidth,"px")},Pe.saveSubMenuTitle=function(rt){Pe.subMenuTitle=rt},Pe.getBaseProps=function(){var rt=Object(E.a)(Pe),It=rt.props,Vt=Pe.getMode();return{mode:Vt==="horizontal"?"vertical":Vt,visible:Pe.getVisible(),level:It.level+1,inlineIndent:It.inlineIndent,focusable:!1,onClick:Pe.onSubMenuClick,onSelect:Pe.onSelect,onDeselect:Pe.onDeselect,onDestroy:Pe.onDestroy,selectedKeys:It.selectedKeys,eventKey:"".concat(It.eventKey,"-menu-"),openKeys:It.openKeys,motion:It.motion,onOpenChange:Pe.onOpenChange,subMenuOpenDelay:It.subMenuOpenDelay,parentMenu:Object(E.a)(Pe),subMenuCloseDelay:It.subMenuCloseDelay,forceSubMenuRender:It.forceSubMenuRender,triggerSubMenuAction:It.triggerSubMenuAction,builtinPlacements:It.builtinPlacements,defaultActiveFirst:It.store.getState().defaultActiveFirst[le(It.eventKey)],multiple:It.multiple,prefixCls:It.rootPrefixCls,id:Pe.internalMenuId,manualRef:Pe.saveMenuInstance,itemIcon:It.itemIcon,expandIcon:It.expandIcon,direction:It.direction}},Pe.getMotion=function(rt,It){var Vt=Object(E.a)(Pe),fn=Vt.haveRendered,on=Pe.props,un=on.motion,ln=on.rootPrefixCls,Hn=Object(b.a)(Object(b.a)({},un),{},{leavedClassName:"".concat(ln,"-hidden"),removeOnLeave:!1,motionAppear:fn||!It||rt!=="inline"});return Hn};var Xe=nt.store,Ie=nt.eventKey,$e=Xe.getState(),qe=$e.defaultActiveFirst;Pe.isRootMenu=!1;var pt=!1;return qe&&(pt=qe[Ie]),Xt(Xe,Ie,pt),Pe.state={mode:nt.mode,isOpen:nt.isOpen},Pe}return Object(R.a)(yt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Pe=this,Xe=this.props,Ie=Xe.mode,$e=Xe.parentMenu,qe=Xe.manualRef,pt=Xe.isOpen,rt=function(){Pe.setState({mode:Ie,isOpen:pt})},It=pt!==this.state.isOpen,Vt=Ie!==this.state.mode;if((Vt||It)&&(Et.a.cancel(this.updateStateRaf),Vt?this.updateStateRaf=Object(Et.a)(rt):rt()),qe&&qe(this),Ie!=="horizontal"||!($e==null?void 0:$e.isRootMenu)||!pt)return;this.minWidthTimeout=setTimeout(function(){return Pe.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Pe=this.props,Xe=Pe.onDestroy,Ie=Pe.eventKey;Xe&&Xe(Ie),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Et.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(Pe,Xe){var Ie=this.getBaseProps();return y.createElement(Yt,Object(v.a)({},Ie,{id:this.internalMenuId,className:Pe,style:Xe}),this.props.children)}},{key:"renderChildren",value:function(){var Pe=this,Xe=this.getBaseProps(),Ie=Xe.mode,$e=Xe.visible,qe=Xe.forceSubMenuRender,pt=Xe.direction,rt=this.getMotion(Ie,$e);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||$e||qe,!this.haveOpened)return y.createElement("div",null);var It=w()("".concat(Xe.prefixCls,"-sub"),Object(L.a)({},"".concat(Xe.prefixCls,"-rtl"),pt==="rtl"));return this.isInlineMode()?y.createElement(Ce,Object(v.a)({visible:Xe.visible,forceRender:qe},rt),function(Vt){var fn=Vt.className,on=Vt.style,un=w()(It,fn);return Pe.renderPopupMenu(un,on)}):this.renderPopupMenu(It)}},{key:"render",value:function(){var Pe,Xe,Ie,$e=Object(b.a)({},this.props),qe=this.getVisible(),pt=this.getPrefixCls(),rt=this.isInlineMode(),It=this.getMode(),Vt=w()(pt,"".concat(pt,"-").concat(It),(Pe={},Object(L.a)(Pe,$e.className,!!$e.className),Object(L.a)(Pe,this.getOpenClassName(),qe),Object(L.a)(Pe,this.getActiveClassName(),$e.active||qe&&!rt),Object(L.a)(Pe,this.getDisabledClassName(),$e.disabled),Object(L.a)(Pe,this.getSelectedClassName(),this.isChildrenSelected()),Pe));this.internalMenuId||($e.eventKey?this.internalMenuId="".concat($e.eventKey,"$Menu"):(Wt+=1,this.internalMenuId="$__$".concat(Wt,"$Menu")));var fn={},on={},un={};$e.disabled||(fn={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},on={onClick:this.onTitleClick},un={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var ln={},Hn=$e.direction,yn=Hn==="rtl";rt&&(yn?ln.paddingRight=$e.inlineIndent*$e.level:ln.paddingLeft=$e.inlineIndent*$e.level);var kr={};this.getVisible()&&(kr={"aria-owns":this.internalMenuId});var Dr=null;It!=="horizontal"&&(Dr=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Dr=y.createElement(this.props.expandIcon,Object(b.a)({},this.props))));var Jr=y.createElement("div",Object(v.a)({ref:this.saveSubMenuTitle,style:ln,className:"".concat(pt,"-title"),role:"button"},un,on,{"aria-expanded":qe},kr,{"aria-haspopup":"true",title:typeof $e.title=="string"?$e.title:void 0}),$e.title,Dr||y.createElement("i",{className:"".concat(pt,"-arrow")})),Fr=this.renderChildren(),ta=((Xe=$e.parentMenu)===null||Xe===void 0?void 0:Xe.isRootMenu)?$e.parentMenu.props.getPopupContainer:function(Or){return Or.parentNode},Kn=Lt[It],Sr=$e.popupOffset?{offset:$e.popupOffset}:{},Gn=w()((Ie={},Object(L.a)(Ie,$e.popupClassName,$e.popupClassName&&!rt),Object(L.a)(Ie,"".concat(pt,"-rtl"),yn),Ie)),_n=$e.disabled,Bn=$e.triggerSubMenuAction,zr=$e.subMenuOpenDelay,sa=$e.forceSubMenuRender,fr=$e.subMenuCloseDelay,ra=$e.builtinPlacements;te.forEach(function(Or){return delete $e[Or]}),delete $e.onClick;var Ea=yn?Object(b.a)(Object(b.a)({},Mt),ra):Object(b.a)(Object(b.a)({},lt),ra);delete $e.direction;var ca=this.getBaseProps(),xa=rt?null:this.getMotion(ca.mode,ca.visible);return y.createElement("li",Object(v.a)({},$e,fn,{className:Vt,role:"menuitem"}),y.createElement(oa,{prefixCls:pt,popupClassName:w()("".concat(pt,"-popup"),Gn),getPopupContainer:ta,builtinPlacements:Ea,popupPlacement:Kn,popupVisible:rt?!1:qe,popupAlign:Sr,popup:rt?null:Fr,action:_n||rt?[]:[Bn],mouseEnterDelay:zr,mouseLeaveDelay:fr,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:sa,popupMotion:xa},Jr),rt?Fr:null)}}]),yt}(y.Component);en.defaultProps={onMouseEnter:ie,onMouseLeave:ie,onTitleMouseEnter:ie,onTitleMouseLeave:ie,onTitleClick:ie,manualRef:ie,mode:"vertical",title:""};var vn=Object(T.b)(function(Ze,dt){var yt=Ze.openKeys,nt=Ze.activeKey,Pe=Ze.selectedKeys,Xe=dt.eventKey,Ie=dt.subMenuKey;return{isOpen:yt.indexOf(Xe)>-1,active:nt[Ie]===Xe,selectedKeys:Pe}})(en);vn.isSubMenu=!0;var pn=vn,Nn="menuitem-overflowed",wn=.5,nn=function(Ze){Object(C.a)(yt,Ze);var dt=Object(m.a)(yt);function yt(){var nt;return Object(P.a)(this,yt),nt=dt.apply(this,arguments),nt.resizeObserver=null,nt.mutationObserver=null,nt.originalTotalWidth=0,nt.overflowedItems=[],nt.menuItemSizes=[],nt.cancelFrameId=null,nt.state={lastVisibleIndex:void 0},nt.childRef=y.createRef(),nt.getMenuItemNodes=function(){var Pe=nt.props.prefixCls,Xe=nt.childRef.current;return Xe?[].slice.call(Xe.children).filter(function(Ie){return Ie.className.split(" ").indexOf("".concat(Pe,"-overflowed-submenu"))<0}):[]},nt.getOverflowedSubMenuItem=function(Pe,Xe,Ie){var $e=nt.props,qe=$e.overflowedIndicator,pt=$e.level,rt=$e.mode,It=$e.prefixCls,Vt=$e.theme;if(pt!==1||rt!=="horizontal")return null;var fn=nt.props.children[0],on=fn.props,un=on.children,ln=on.title,Hn=on.style,yn=Object(A.a)(on,["children","title","style"]),kr=Object(b.a)({},Hn),Dr="".concat(Pe,"-overflowed-indicator"),Jr="".concat(Pe,"-overflowed-indicator");Xe.length===0&&Ie!==!0?kr=Object(b.a)(Object(b.a)({},kr),{},{display:"none"}):Ie&&(kr=Object(b.a)(Object(b.a)({},kr),{},{visibility:"hidden",position:"absolute"}),Dr="".concat(Dr,"-placeholder"),Jr="".concat(Jr,"-placeholder"));var Fr=Vt?"".concat(It,"-").concat(Vt):"",ta={};return te.forEach(function(Kn){yn[Kn]!==void 0&&(ta[Kn]=yn[Kn])}),y.createElement(pn,Object(v.a)({title:qe,className:"".concat(It,"-overflowed-submenu"),popupClassName:Fr},ta,{key:Dr,eventKey:Jr,disabled:!1,style:kr}),Xe)},nt.setChildrenWidthAndResize=function(){if(nt.props.mode!=="horizontal")return;var Pe=nt.childRef.current;if(!Pe)return;var Xe=Pe.children;if(!Xe||Xe.length===0)return;var Ie=Pe.children[Xe.length-1];Te(Ie,"display","inline-block");var $e=nt.getMenuItemNodes(),qe=$e.filter(function(pt){return pt.className.split(" ").indexOf(Nn)>=0});qe.forEach(function(pt){Te(pt,"display","inline-block")}),nt.menuItemSizes=$e.map(function(pt){return De(pt,!0)}),qe.forEach(function(pt){Te(pt,"display","none")}),nt.overflowedIndicatorWidth=De(Pe.children[Pe.children.length-1],!0),nt.originalTotalWidth=nt.menuItemSizes.reduce(function(pt,rt){return pt+rt},0),nt.handleResize(),Te(Ie,"display","none")},nt.handleResize=function(){if(nt.props.mode!=="horizontal")return;var Pe=nt.childRef.current;if(!Pe)return;var Xe=De(Pe);nt.overflowedItems=[];var Ie=0,$e;nt.originalTotalWidth>Xe+wn&&($e=-1,nt.menuItemSizes.forEach(function(qe){Ie+=qe,Ie+nt.overflowedIndicatorWidth<=Xe&&($e+=1)})),nt.setState({lastVisibleIndex:$e})},nt}return Object(R.a)(yt,[{key:"componentDidMount",value:function(){var Pe=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Xe=this.childRef.current;if(!Xe)return;this.resizeObserver=new tt.default(function(Ie){Ie.forEach(function(){var $e=Pe.cancelFrameId;cancelAnimationFrame($e),Pe.cancelFrameId=requestAnimationFrame(Pe.setChildrenWidthAndResize)})}),[].slice.call(Xe.children).concat(Xe).forEach(function(Ie){Pe.resizeObserver.observe(Ie)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Pe.resizeObserver.disconnect(),[].slice.call(Xe.children).concat(Xe).forEach(function(Ie){Pe.resizeObserver.observe(Ie)}),Pe.setChildrenWidthAndResize()}),this.mutationObserver.observe(Xe,{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(Pe){var Xe=this,Ie=this.state.lastVisibleIndex;return(Pe||[]).reduce(function($e,qe,pt){var rt=qe;if(Xe.props.mode==="horizontal"){var It=Xe.getOverflowedSubMenuItem(qe.props.eventKey,[]);Ie!==void 0&&Xe.props.className.indexOf("".concat(Xe.props.prefixCls,"-root"))!==-1&&(pt>Ie&&(rt=y.cloneElement(qe,{style:{display:"none"},eventKey:"".concat(qe.props.eventKey,"-hidden"),className:"".concat(Nn)})),pt===Ie+1&&(Xe.overflowedItems=Pe.slice(Ie+1).map(function(fn){return y.cloneElement(fn,{key:fn.props.eventKey,mode:"vertical-left"})}),It=Xe.getOverflowedSubMenuItem(qe.props.eventKey,Xe.overflowedItems)));var Vt=[].concat(Object(d.a)($e),[It,rt]);return pt===Pe.length-1&&Vt.push(Xe.getOverflowedSubMenuItem(qe.props.eventKey,[],!0)),Vt}return[].concat(Object(d.a)($e),[rt])},[])}},{key:"render",value:function(){var Pe=this.props,Xe=Pe.visible,Ie=Pe.prefixCls,$e=Pe.overflowedIndicator,qe=Pe.mode,pt=Pe.level,rt=Pe.tag,It=Pe.children,Vt=Pe.theme,fn=Object(A.a)(Pe,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),on=rt;return y.createElement(on,Object(v.a)({ref:this.childRef},fn),this.renderChildren(It))}}]),yt}(y.Component);nn.defaultProps={tag:"div",className:""};var Rn=nn;function gn(Ze){return Ze.length?Ze.every(function(dt){return!!dt.props.disabled}):!0}function kn(Ze,dt,yt){var nt=Ze.getState();Ze.setState({activeKey:Object(b.a)(Object(b.a)({},nt.activeKey),{},Object(L.a)({},dt,yt))})}function Dn(Ze){return Ze.eventKey||"0-menu-"}function Jn(Ze,dt){var yt=dt,nt=Ze.children,Pe=Ze.eventKey;if(yt){var Xe;if($(nt,function(Ie,$e){Ie&&Ie.props&&!Ie.props.disabled&&yt===we(Ie,Pe,$e)&&(Xe=!0)}),Xe)return yt}return yt=null,Ze.defaultActiveFirst&&$(nt,function(Ie,$e){!yt&&Ie&&!Ie.props.disabled&&(yt=we(Ie,Pe,$e))}),yt}function hr(Ze){if(!Ze)return;var dt=this.instanceArray.indexOf(Ze);dt!==-1?this.instanceArray[dt]=Ze:this.instanceArray.push(Ze)}var Br=function(Ze){Object(C.a)(yt,Ze);var dt=Object(m.a)(yt);function yt(nt){var Pe;return Object(P.a)(this,yt),Pe=dt.call(this,nt),Pe.onKeyDown=function(Xe,Ie){var $e=Xe.keyCode,qe;if(Pe.getFlatInstanceArray().forEach(function(rt){rt&&rt.props.active&&rt.onKeyDown&&(qe=rt.onKeyDown(Xe))}),qe)return 1;var pt=null;return($e===i.a.UP||$e===i.a.DOWN)&&(pt=Pe.step($e===i.a.UP?-1:1)),pt?(Xe.preventDefault(),kn(Pe.props.store,Dn(Pe.props),pt.props.eventKey),typeof Ie=="function"&&Ie(pt),1):void 0},Pe.onItemHover=function(Xe){var Ie=Xe.key,$e=Xe.hover;kn(Pe.props.store,Dn(Pe.props),$e?Ie:null)},Pe.onDeselect=function(Xe){Pe.props.onDeselect(Xe)},Pe.onSelect=function(Xe){Pe.props.onSelect(Xe)},Pe.onClick=function(Xe){Pe.props.onClick(Xe)},Pe.onOpenChange=function(Xe){Pe.props.onOpenChange(Xe)},Pe.onDestroy=function(Xe){Pe.props.onDestroy(Xe)},Pe.getFlatInstanceArray=function(){return Pe.instanceArray},Pe.step=function(Xe){var Ie=Pe.getFlatInstanceArray(),$e=Pe.props.store.getState().activeKey[Dn(Pe.props)],qe=Ie.length;if(!qe)return null;Xe<0&&(Ie=Ie.concat().reverse());var pt=-1;if(Ie.every(function(fn,on){return fn&&fn.props.eventKey===$e?(pt=on,!1):!0}),!Pe.props.defaultActiveFirst&&pt!==-1&&gn(Ie.slice(pt,qe-1)))return;var rt=(pt+1)%qe,It=rt;do{var Vt=Ie[It];if(!Vt||Vt.props.disabled)It=(It+1)%qe;else return Vt}while(It!==rt);return null},Pe.renderCommonMenuItem=function(Xe,Ie,$e){var qe=Pe.props.store.getState(),pt=Object(E.a)(Pe),rt=pt.props,It=we(Xe,rt.eventKey,Ie),Vt=Xe.props;if(!Vt||typeof Xe.type=="string")return Xe;var fn=It===qe.activeKey,on=Object(b.a)(Object(b.a)({mode:Vt.mode||rt.mode,level:rt.level,inlineIndent:rt.inlineIndent,renderMenuItem:Pe.renderMenuItem,rootPrefixCls:rt.prefixCls,index:Ie,parentMenu:rt.parentMenu,manualRef:Vt.disabled?void 0:Object(D.a)(Xe.ref,hr.bind(Object(E.a)(Pe))),eventKey:It,active:!Vt.disabled&&fn,multiple:rt.multiple,onClick:function(ln){(Vt.onClick||ie)(ln),Pe.onClick(ln)},onItemHover:Pe.onItemHover,motion:rt.motion,subMenuOpenDelay:rt.subMenuOpenDelay,subMenuCloseDelay:rt.subMenuCloseDelay,forceSubMenuRender:rt.forceSubMenuRender,onOpenChange:Pe.onOpenChange,onDeselect:Pe.onDeselect,onSelect:Pe.onSelect,builtinPlacements:rt.builtinPlacements,itemIcon:Vt.itemIcon||Pe.props.itemIcon,expandIcon:Vt.expandIcon||Pe.props.expandIcon},$e),{},{direction:rt.direction});return(rt.mode==="inline"||ke())&&(on.triggerSubMenuAction="click"),y.cloneElement(Xe,Object(b.a)(Object(b.a)({},on),{},{key:It||Ie}))},Pe.renderMenuItem=function(Xe,Ie,$e){if(!Xe)return null;var qe=Pe.props.store.getState(),pt={openKeys:qe.openKeys,selectedKeys:qe.selectedKeys,triggerSubMenuAction:Pe.props.triggerSubMenuAction,subMenuKey:$e};return Pe.renderCommonMenuItem(Xe,Ie,pt)},nt.store.setState({activeKey:Object(b.a)(Object(b.a)({},nt.store.getState().activeKey),{},Object(L.a)({},nt.eventKey,Jn(nt,nt.activeKey)))}),Pe.instanceArray=[],Pe}return Object(R.a)(yt,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Pe){return this.props.visible||Pe.visible||this.props.className!==Pe.className||!z()(this.props.style,Pe.style)}},{key:"componentDidUpdate",value:function(Pe){var Xe=this.props,Ie="activeKey"in Xe?Xe.activeKey:Xe.store.getState().activeKey[Dn(Xe)],$e=Jn(Xe,Ie);if($e!==Ie)kn(Xe.store,Dn(Xe),$e);else if("activeKey"in Pe){var qe=Jn(Pe,Pe.activeKey);$e!==qe&&kn(Xe.store,Dn(Xe),$e)}}},{key:"render",value:function(){var Pe=this,Xe=Object(v.a)({},this.props);this.instanceArray=[];var Ie=w()(Xe.prefixCls,Xe.className,"".concat(Xe.prefixCls,"-").concat(Xe.mode)),$e={className:Ie,role:Xe.role||"menu"};Xe.id&&($e.id=Xe.id),Xe.focusable&&($e.tabIndex=0,$e.onKeyDown=this.onKeyDown);var qe=Xe.prefixCls,pt=Xe.eventKey,rt=Xe.visible,It=Xe.level,Vt=Xe.mode,fn=Xe.overflowedIndicator,on=Xe.theme;return te.forEach(function(un){return delete Xe[un]}),delete Xe.onClick,y.createElement(Rn,Object(v.a)({},Xe,{prefixCls:qe,mode:Vt,tag:"ul",level:It,theme:on,visible:rt,overflowedIndicator:fn},$e),Object(f.a)(Xe.children).map(function(un,ln){return Pe.renderMenuItem(un,ln,pt||"0-menu-")}))}}]),yt}(y.Component);Br.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:ie};var xn=Object(T.b)()(Br),Yt=xn,dn=o("Kwbf");function An(Ze,dt,yt){var nt=Ze.prefixCls,Pe=Ze.motion,Xe=Ze.defaultMotions,Ie=Xe===void 0?{}:Xe,$e=Ze.openAnimation,qe=Ze.openTransitionName,pt=dt.switchingModeFromInline;if(Pe)return Pe;if(Object(F.a)($e)==="object"&&$e)Object(dn.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof $e=="string")return{motionName:"".concat(nt,"-open-").concat($e)};if(qe)return{motionName:qe};var rt=Ie[yt];return rt||(pt?null:Ie.other)}var qt=function(Ze){Object(C.a)(yt,Ze);var dt=Object(m.a)(yt);function yt(nt){var Pe;Object(P.a)(this,yt),Pe=dt.call(this,nt),Pe.onSelect=function($e){var qe=Object(E.a)(Pe),pt=qe.props;if(pt.selectable){var rt=Pe.store.getState(),It=rt.selectedKeys,Vt=$e.key;pt.multiple?It=It.concat([Vt]):It=[Vt],"selectedKeys"in pt||Pe.store.setState({selectedKeys:It}),pt.onSelect(Object(b.a)(Object(b.a)({},$e),{},{selectedKeys:It}))}},Pe.onClick=function($e){var qe=Pe.getRealMenuMode(),pt=Object(E.a)(Pe),rt=pt.store,It=pt.props.onOpenChange;qe!=="inline"&&!("openKeys"in Pe.props)&&(rt.setState({openKeys:[]}),It([])),Pe.props.onClick($e)},Pe.onKeyDown=function($e,qe){Pe.innerMenu.getWrappedInstance().onKeyDown($e,qe)},Pe.onOpenChange=function($e){var qe=Object(E.a)(Pe),pt=qe.props,rt=Pe.store.getState().openKeys.concat(),It=!1,Vt=function(on){var un=!1;if(on.open)un=rt.indexOf(on.key)===-1,un&&rt.push(on.key);else{var ln=rt.indexOf(on.key);un=ln!==-1,un&&rt.splice(ln,1)}It=It||un};Array.isArray($e)?$e.forEach(Vt):Vt($e),It&&("openKeys"in Pe.props||Pe.store.setState({openKeys:rt}),pt.onOpenChange(rt))},Pe.onDeselect=function($e){var qe=Object(E.a)(Pe),pt=qe.props;if(pt.selectable){var rt=Pe.store.getState().selectedKeys.concat(),It=$e.key,Vt=rt.indexOf(It);Vt!==-1&&rt.splice(Vt,1),"selectedKeys"in pt||Pe.store.setState({selectedKeys:rt}),pt.onDeselect(Object(b.a)(Object(b.a)({},$e),{},{selectedKeys:rt}))}},Pe.onMouseEnter=function($e){Pe.restoreModeVerticalFromInline();var qe=Pe.props.onMouseEnter;qe&&qe($e)},Pe.onTransitionEnd=function($e){var qe=$e.propertyName==="width"&&$e.target===$e.currentTarget,pt=$e.target.className,rt=Object.prototype.toString.call(pt)==="[object SVGAnimatedString]"?pt.animVal:pt,It=$e.propertyName==="font-size"&&rt.indexOf("anticon")>=0;(qe||It)&&Pe.restoreModeVerticalFromInline()},Pe.setInnerMenu=function($e){Pe.innerMenu=$e},Pe.isRootMenu=!0;var Xe=nt.defaultSelectedKeys,Ie=nt.defaultOpenKeys;return"selectedKeys"in nt&&(Xe=nt.selectedKeys||[]),"openKeys"in nt&&(Ie=nt.openKeys||[]),Pe.store=Object(T.c)({selectedKeys:Xe,openKeys:Ie,activeKey:{"0-menu-":Jn(nt,nt.activeKey)}}),Pe.state={switchingModeFromInline:!1,prevProps:nt,inlineOpenKeys:[],store:Pe.store},Pe}return Object(R.a)(yt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Pe){var Xe=this.props,Ie=Xe.siderCollapsed,$e=Xe.inlineCollapsed,qe=Xe.onOpenChange;(!Pe.inlineCollapsed&&$e||!Pe.siderCollapsed&&Ie)&&qe([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var Pe=this.props.collapsedWidth,Xe=this.store,Ie=this.prevOpenKeys,$e=this.getInlineCollapsed()&&(Pe===0||Pe==="0"||Pe==="0px");$e?(this.prevOpenKeys=Xe.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Ie&&(this.store.setState({openKeys:Ie}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Pe=this.props.mode,Xe=this.state.switchingModeFromInline,Ie=this.getInlineCollapsed();return Xe&&Ie?"inline":Ie?"vertical":Pe}},{key:"getInlineCollapsed",value:function(){var Pe=this.props,Xe=Pe.inlineCollapsed,Ie=Pe.siderCollapsed;return Ie!==void 0?Ie:Xe}},{key:"restoreModeVerticalFromInline",value:function(){var Pe=this.state.switchingModeFromInline;Pe&&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 Pe=Object(b.a)({},Object(I.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Xe=this.getRealMenuMode();return Pe.className+=" ".concat(Pe.prefixCls,"-root"),Pe.direction==="rtl"&&(Pe.className+=" ".concat(Pe.prefixCls,"-rtl")),Pe=Object(b.a)(Object(b.a)({},Pe),{},{mode:Xe,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:An(this.props,this.state,Xe)}),delete Pe.openAnimation,delete Pe.openTransitionName,y.createElement(T.a,{store:this.store},y.createElement(Yt,Object(v.a)({},Pe,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(Pe,Xe){var Ie=Xe.prevProps,$e=Xe.store,qe=$e.getState(),pt={},rt={prevProps:Pe};return Ie.mode==="inline"&&Pe.mode!=="inline"&&(rt.switchingModeFromInline=!0),"openKeys"in Pe?pt.openKeys=Pe.openKeys||[]:((Pe.inlineCollapsed&&!Ie.inlineCollapsed||Pe.siderCollapsed&&!Ie.siderCollapsed)&&(rt.switchingModeFromInline=!0,rt.inlineOpenKeys=qe.openKeys,pt.openKeys=[]),(!Pe.inlineCollapsed&&Ie.inlineCollapsed||!Pe.siderCollapsed&&Ie.siderCollapsed)&&(pt.openKeys=Xe.inlineOpenKeys,rt.inlineOpenKeys=[])),Object.keys(pt).length&&$e.setState(pt),rt}}]),yt}(y.Component);qt.defaultProps={selectable:!0,onClick:ie,onSelect:ie,onOpenChange:ie,onDeselect:ie,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:y.createElement("span",null,"\xB7\xB7\xB7")};var Sn=qt,mn=function(Ze){Object(C.a)(yt,Ze);var dt=Object(m.a)(yt);function yt(){var nt;return Object(P.a)(this,yt),nt=dt.apply(this,arguments),nt.onKeyDown=function(Pe){var Xe=Pe.keyCode;return Xe===i.a.ENTER?(nt.onClick(Pe),!0):void 0},nt.onMouseLeave=function(Pe){var Xe=nt.props,Ie=Xe.eventKey,$e=Xe.onItemHover,qe=Xe.onMouseLeave;$e({key:Ie,hover:!1}),qe({key:Ie,domEvent:Pe})},nt.onMouseEnter=function(Pe){var Xe=nt.props,Ie=Xe.eventKey,$e=Xe.onItemHover,qe=Xe.onMouseEnter;$e({key:Ie,hover:!0}),qe({key:Ie,domEvent:Pe})},nt.onClick=function(Pe){var Xe=nt.props,Ie=Xe.eventKey,$e=Xe.multiple,qe=Xe.onClick,pt=Xe.onSelect,rt=Xe.onDeselect,It=Xe.isSelected,Vt={key:Ie,keyPath:[Ie],item:Object(E.a)(nt),domEvent:Pe};qe(Vt),$e?It?rt(Vt):pt(Vt):It||pt(Vt)},nt.saveNode=function(Pe){nt.node=Pe},nt}return Object(R.a)(yt,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Pe=this.props;Pe.onDestroy&&Pe.onDestroy(Pe.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 Pe,Xe=Object(b.a)({},this.props),Ie=w()(this.getPrefixCls(),Xe.className,(Pe={},Object(L.a)(Pe,this.getActiveClassName(),!Xe.disabled&&Xe.active),Object(L.a)(Pe,this.getSelectedClassName(),Xe.isSelected),Object(L.a)(Pe,this.getDisabledClassName(),Xe.disabled),Pe)),$e=Object(b.a)(Object(b.a)({},Xe.attribute),{},{title:typeof Xe.title=="string"?Xe.title:void 0,className:Ie,role:Xe.role||"menuitem","aria-disabled":Xe.disabled});Xe.role==="option"?$e=Object(b.a)(Object(b.a)({},$e),{},{role:"option","aria-selected":Xe.isSelected}):(Xe.role===null||Xe.role==="none")&&($e.role="none");var qe={onClick:Xe.disabled?null:this.onClick,onMouseLeave:Xe.disabled?null:this.onMouseLeave,onMouseEnter:Xe.disabled?null:this.onMouseEnter},pt=Object(b.a)({},Xe.style);Xe.mode==="inline"&&(Xe.direction==="rtl"?pt.paddingRight=Xe.inlineIndent*Xe.level:pt.paddingLeft=Xe.inlineIndent*Xe.level),te.forEach(function(It){return delete Xe[It]}),delete Xe.direction;var rt=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(rt=y.createElement(this.props.itemIcon,this.props)),y.createElement("li",Object(v.a)({},Object(I.a)(Xe,["onClick","onMouseEnter","onMouseLeave","onSelect"]),$e,qe,{style:pt,ref:this.saveNode}),Xe.children,rt)}}]),yt}(y.Component);mn.isMenuItem=!0,mn.defaultProps={onSelect:ie,onMouseEnter:ie,onMouseLeave:ie,manualRef:ie};var Mn=Object(T.b)(function(Ze,dt){var yt=Ze.activeKey,nt=Ze.selectedKeys,Pe=dt.eventKey,Xe=dt.subMenuKey;return{active:yt[Xe]===Pe,isSelected:Array.isArray(nt)?nt.indexOf(Pe)!==-1:nt===Pe}})(mn),Un=Mn,ir=function(Ze){Object(C.a)(yt,Ze);var dt=Object(m.a)(yt);function yt(){var nt;return Object(P.a)(this,yt),nt=dt.apply(this,arguments),nt.renderInnerMenuItem=function(Pe){var Xe=nt.props,Ie=Xe.renderMenuItem,$e=Xe.index;return Ie(Pe,$e,nt.props.subMenuKey)},nt}return Object(R.a)(yt,[{key:"render",value:function(){var Pe=Object(v.a)({},this.props),Xe=Pe.className,Ie=Xe===void 0?"":Xe,$e=Pe.rootPrefixCls,qe="".concat($e,"-item-group-title"),pt="".concat($e,"-item-group-list"),rt=Pe.title,It=Pe.children;return te.forEach(function(Vt){return delete Pe[Vt]}),delete Pe.direction,y.createElement("li",Object(v.a)({},Pe,{onClick:function(fn){return fn.stopPropagation()},className:"".concat(Ie," ").concat($e,"-item-group")}),y.createElement("div",{className:qe,title:typeof rt=="string"?rt:void 0},rt),y.createElement("ul",{className:pt},y.Children.map(It,this.renderInnerMenuItem)))}}]),yt}(y.Component);ir.isMenuItemGroup=!0,ir.defaultProps={disabled:!0};var er=ir,Ar=function(dt){var yt=dt.className,nt=dt.rootPrefixCls,Pe=dt.style;return y.createElement("li",{className:"".concat(yt," ").concat(nt,"-item-divider"),style:Pe})};Ar.defaultProps={disabled:!0,className:"",style:{}};var Mr=Ar,Qn=Sn,Tr=o("eDIo");function mr(Ze,dt){var yt=Ze.prefixCls,nt=Ze.editable,Pe=Ze.locale,Xe=Ze.style;return!nt||nt.showAdd===!1?null:y.createElement("button",{ref:dt,type:"button",className:"".concat(yt,"-nav-add"),style:Xe,"aria-label":(Pe==null?void 0:Pe.addAriaLabel)||"Add tab",onClick:function($e){nt.onEdit("add",{event:$e})}},nt.addIcon||"+")}var Gr=y.forwardRef(mr);function Ir(Ze,dt){var yt=Ze.prefixCls,nt=Ze.id,Pe=Ze.tabs,Xe=Ze.locale,Ie=Ze.mobile,$e=Ze.moreIcon,qe=$e===void 0?"More":$e,pt=Ze.moreTransitionName,rt=Ze.style,It=Ze.className,Vt=Ze.editable,fn=Ze.tabBarGutter,on=Ze.rtl,un=Ze.onTabClick,ln=Object(y.useState)(!1),Hn=Object(g.a)(ln,2),yn=Hn[0],kr=Hn[1],Dr=Object(y.useState)(null),Jr=Object(g.a)(Dr,2),Fr=Jr[0],ta=Jr[1],Kn="".concat(nt,"-more-popup"),Sr="".concat(yt,"-dropdown"),Gn=Fr!==null?"".concat(Kn,"-").concat(Fr):null,_n=Xe==null?void 0:Xe.dropdownAriaLabel,Bn=y.createElement(Qn,{onClick:function(xa){var Or=xa.key,vr=xa.domEvent;un(Or,vr),kr(!1)},id:Kn,tabIndex:-1,role:"listbox","aria-activedescendant":Gn,selectedKeys:[Fr],"aria-label":_n!==void 0?_n:"expanded dropdown"},Pe.map(function(ca){return y.createElement(Un,{key:ca.key,id:"".concat(Kn,"-").concat(ca.key),role:"option","aria-controls":nt&&"".concat(nt,"-panel-").concat(ca.key),disabled:ca.disabled},ca.tab)}));function zr(ca){for(var xa=Pe.filter(function(da){return!da.disabled}),Or=xa.findIndex(function(da){return da.key===Fr})||0,vr=xa.length,Pr=0;Pr<vr;Pr+=1){Or=(Or+ca+vr)%vr;var nr=xa[Or];if(!nr.disabled){ta(nr.key);return}}}function sa(ca){var xa=ca.which;if(!yn){[i.a.DOWN,i.a.SPACE,i.a.ENTER].includes(xa)&&(kr(!0),ca.preventDefault());return}switch(xa){case i.a.UP:zr(-1),ca.preventDefault();break;case i.a.DOWN:zr(1),ca.preventDefault();break;case i.a.ESC:kr(!1);break;case i.a.SPACE:case i.a.ENTER:Fr!==null&&un(Fr,ca);break}}Object(y.useEffect)(function(){var ca=document.getElementById(Gn);ca&&ca.scrollIntoView&&ca.scrollIntoView(!1)},[Fr]),Object(y.useEffect)(function(){yn||ta(null)},[yn]);var fr=Object(L.a)({},on?"marginLeft":"marginRight",fn);Pe.length||(fr.visibility="hidden",fr.order=1);var ra=w()(Object(L.a)({},"".concat(Sr,"-rtl"),on)),Ea=Ie?null:y.createElement(Tr.a,{prefixCls:Sr,overlay:Bn,trigger:["hover"],visible:yn,transitionName:pt,onVisibleChange:kr,overlayClassName:ra,mouseEnterDelay:.1,mouseLeaveDelay:.1},y.createElement("button",{type:"button",className:"".concat(yt,"-nav-more"),style:fr,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":Kn,id:"".concat(nt,"-more"),"aria-expanded":yn,onKeyDown:sa},qe));return y.createElement("div",{className:w()("".concat(yt,"-nav-operations"),It),style:rt,ref:dt},Ea,y.createElement(Gr,{prefixCls:yt,locale:Xe,editable:Vt}))}var qr=y.forwardRef(Ir),rr=Object(y.createContext)(null),Gt=.1,Qt=.01,Jt=20,zn=Math.pow(.995,Jt);function tr(){var Ze=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(Ze)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(Ze.substr(0,4)))}function Ln(Ze,dt){var yt=Object(y.useState)(),nt=Object(g.a)(yt,2),Pe=nt[0],Xe=nt[1],Ie=Object(y.useState)(0),$e=Object(g.a)(Ie,2),qe=$e[0],pt=$e[1],rt=Object(y.useState)(0),It=Object(g.a)(rt,2),Vt=It[0],fn=It[1],on=Object(y.useState)(),un=Object(g.a)(on,2),ln=un[0],Hn=un[1],yn=Object(y.useRef)();function kr(_n){var Bn=_n.touches[0],zr=Bn.screenX,sa=Bn.screenY;Xe({x:zr,y:sa}),window.clearInterval(yn.current)}function Dr(_n){if(!Pe)return;_n.preventDefault();var Bn=_n.touches[0],zr=Bn.screenX,sa=Bn.screenY;Xe({x:zr,y:sa});var fr=zr-Pe.x,ra=sa-Pe.y;dt(fr,ra);var Ea=Date.now();pt(Ea),fn(Ea-qe),Hn({x:fr,y:ra})}function Jr(){if(!Pe)return;if(Xe(null),Hn(null),ln){var _n=ln.x/Vt,Bn=ln.y/Vt,zr=Math.abs(_n),sa=Math.abs(Bn);if(Math.max(zr,sa)<Gt)return;var fr=_n,ra=Bn;yn.current=window.setInterval(function(){if(Math.abs(fr)<Qt&&Math.abs(ra)<Qt){window.clearInterval(yn.current);return}fr*=zn,ra*=zn,dt(fr*Jt,ra*Jt)},Jt)}}var Fr=Object(y.useRef)(0),ta=Object(y.useRef)(!1),Kn=Object(y.useRef)();function Sr(_n){var Bn=_n.deltaX,zr=_n.deltaY,sa=0,fr=Math.abs(Bn),ra=Math.abs(zr);fr===ra?sa=Kn.current==="x"?Bn:zr:fr>ra?(sa=Bn,Kn.current="x"):(sa=zr,Kn.current="y");var Ea=Date.now();Ea-Fr.current>100&&(ta.current=!1),(dt(-sa,-sa)||ta.current)&&(_n.preventDefault(),ta.current=!0),Fr.current=Ea}var Gn=Object(y.useRef)(null);Gn.current={onTouchStart:kr,onTouchMove:Dr,onTouchEnd:Jr,onWheel:Sr},y.useEffect(function(){function _n(fr){Gn.current.onTouchStart(fr)}function Bn(fr){Gn.current.onTouchMove(fr)}function zr(fr){Gn.current.onTouchEnd(fr)}function sa(fr){Gn.current.onWheel(fr)}return document.addEventListener("touchmove",Bn,{passive:!1}),document.addEventListener("touchend",zr,{passive:!1}),Ze.current.addEventListener("touchstart",_n,{passive:!1}),Ze.current.addEventListener("wheel",sa),function(){document.removeEventListener("touchmove",Bn),document.removeEventListener("touchend",zr)}},[])}function ar(){var Ze=Object(y.useRef)(new Map);function dt(nt){return Ze.current.has(nt)||Ze.current.set(nt,y.createRef()),Ze.current.get(nt)}function yt(nt){Ze.current.delete(nt)}return[dt,yt]}function ur(Ze,dt){var yt=y.useRef(Ze),nt=y.useState({}),Pe=Object(g.a)(nt,2),Xe=Pe[1];function Ie($e){var qe=typeof $e=="function"?$e(yt.current):$e;qe!==yt.current&&dt(qe,yt.current),yt.current=qe,Xe({})}return[yt.current,Ie]}var or=function(dt){var yt=dt.position,nt=dt.prefixCls,Pe=dt.extra;if(!Pe)return null;var Xe,Ie=Pe;return yt==="right"&&(Xe=Ie.right||!Ie.left&&Ie||null),yt==="left"&&(Xe=Ie.left||null),Xe?y.createElement("div",{className:"".concat(nt,"-extra-content")},Xe):null};function Zr(Ze,dt){var yt,nt=y.useContext(rr),Pe=nt.prefixCls,Xe=nt.tabs,Ie=Ze.className,$e=Ze.style,qe=Ze.id,pt=Ze.animated,rt=Ze.activeKey,It=Ze.rtl,Vt=Ze.extra,fn=Ze.editable,on=Ze.locale,un=Ze.tabPosition,ln=Ze.tabBarGutter,Hn=Ze.children,yn=Ze.onTabClick,kr=Ze.onTabScroll,Dr=Object(y.useRef)(),Jr=Object(y.useRef)(),Fr=Object(y.useRef)(),ta=Object(y.useRef)(),Kn=ar(),Sr=Object(g.a)(Kn,2),Gn=Sr[0],_n=Sr[1],Bn=un==="top"||un==="bottom",zr=ur(0,function(wa,ba){Bn&&kr&&kr({direction:wa>ba?"left":"right"})}),sa=Object(g.a)(zr,2),fr=sa[0],ra=sa[1],Ea=ur(0,function(wa,ba){!Bn&&kr&&kr({direction:wa>ba?"top":"bottom"})}),ca=Object(g.a)(Ea,2),xa=ca[0],Or=ca[1],vr=Object(y.useState)(0),Pr=Object(g.a)(vr,2),nr=Pr[0],da=Pr[1],ya=Object(y.useState)(0),_a=Object(g.a)(ya,2),Ta=_a[0],ha=_a[1],La=Object(y.useState)(0),Na=Object(g.a)(La,2),Ba=Na[0],ni=Na[1],Fi=Object(y.useState)(0),Ai=Object(g.a)(Fi,2),Ia=Ai[0],bi=Ai[1],Si=Object(y.useState)(null),Ua=Object(g.a)(Si,2),Pa=Ua[0],Za=Ua[1],to=Object(y.useState)(null),Mo=Object(g.a)(to,2),Ii=Mo[0],no=Mo[1],ro=Object(y.useState)(0),mi=Object(g.a)(ro,2),uo=mi[0],Io=mi[1],Lo=Object(y.useState)(0),bo=Object(g.a)(Lo,2),Vi=bo[0],co=bo[1],Xi=n(new Map),Yi=Object(g.a)(Xi,2),No=Yi[0],yo=Yi[1],ao=p(Xe,No,nr),Ji="".concat(Pe,"-nav-operations-hidden"),Qi=0,ei=0;Bn?It?(Qi=0,ei=Math.max(0,nr-Pa)):(Qi=Math.min(0,Pa-nr),ei=0):(Qi=Math.min(0,Ii-Ta),ei=0);function Li(wa){return wa<Qi?[Qi,!1]:wa>ei?[ei,!1]:[wa,!0]}var Di=Object(y.useRef)(),Zi=Object(y.useState)(),Ri=Object(g.a)(Zi,2),Eo=Ri[0],xo=Ri[1];function Co(){xo(Date.now())}function io(){window.clearTimeout(Di.current)}Ln(Dr,function(wa,ba){var Ka=!1;function ui(eo,ki){eo(function(ho){var Oi=Li(ho+ki),qa=Object(g.a)(Oi,2),po=qa[0],Hi=qa[1];return Ka=Hi,po})}if(Bn){if(Pa>=nr)return Ka;ui(ra,wa)}else{if(Ii>=Ta)return Ka;ui(Or,ba)}return io(),Co(),Ka}),Object(y.useEffect)(function(){return io(),Eo&&(Di.current=window.setTimeout(function(){xo(0)},100)),io},[Eo]);function Ni(){var wa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:rt,ba=ao.get(wa);if(!ba)return;if(Bn){var Ka=fr;It?ba.right<fr?Ka=ba.right:ba.right+ba.width>fr+Pa&&(Ka=ba.right+ba.width-Pa):ba.left<-fr?Ka=-ba.left:ba.left+ba.width>-fr+Pa&&(Ka=-(ba.left+ba.width-Pa)),Or(0),ra(Li(Ka)[0])}else{var ui=xa;ba.top<-xa?ui=-ba.top:ba.top+ba.height>-xa+Ii&&(ui=-(ba.top+ba.height-Ii)),ra(0),Or(Li(ui)[0])}}var qi=S(ao,{width:Pa,height:Ii,left:fr,top:xa},{width:Ba,height:Ia},{width:uo,height:Vi},Object(b.a)(Object(b.a)({},Ze),{},{tabs:Xe})),ko=Object(g.a)(qi,2),oo=ko[0],so=ko[1],So=Xe.map(function(wa){var ba=wa.key;return y.createElement(l,{id:qe,prefixCls:Pe,key:ba,rtl:It,tab:wa,closable:wa.closable,editable:fn,active:ba===rt,tabPosition:un,tabBarGutter:ln,renderWrapper:Hn,removeAriaLabel:on==null?void 0:on.removeAriaLabel,ref:Gn(ba),onClick:function(ui){yn(ba,ui)},onRemove:function(){_n(ba)},onFocus:function(){Ni(ba),Co(),It||(Dr.current.scrollLeft=0),Dr.current.scrollTop=0}})}),Uo=a(function(){var wa,ba,Ka,ui,eo,ki,ho,Oi,qa,po=((wa=Dr.current)===null||wa===void 0?void 0:wa.offsetWidth)||0,Hi=((ba=Dr.current)===null||ba===void 0?void 0:ba.offsetHeight)||0,mo=((Ka=ta.current)===null||Ka===void 0?void 0:Ka.offsetWidth)||0,hi=((ui=ta.current)===null||ui===void 0?void 0:ui.offsetHeight)||0,Da=((eo=Fr.current)===null||eo===void 0?void 0:eo.offsetWidth)||0,ia=((ki=Fr.current)===null||ki===void 0?void 0:ki.offsetHeight)||0;Za(po),no(Hi),Io(mo),co(hi);var Er=(((ho=Jr.current)===null||ho===void 0?void 0:ho.offsetWidth)||0)-mo,Qr=(((Oi=Jr.current)===null||Oi===void 0?void 0:Oi.offsetHeight)||0)-hi;da(Er),ha(Qr);var ma=(qa=Fr.current)===null||qa===void 0?void 0:qa.className.includes(Ji);ni(Er-(ma?0:Da)),bi(Qr-(ma?0:ia)),yo(function(){var Fa=new Map;return Xe.forEach(function(Ei){var Pi=Ei.key,$a=Gn(Pi).current;$a&&Fa.set(Pi,{width:$a.offsetWidth,height:$a.offsetHeight,left:$a.offsetLeft,top:$a.offsetTop})}),Fa})}),jo=Xe.slice(0,oo),fi=Xe.slice(so+1),Wa=[].concat(Object(d.a)(jo),Object(d.a)(fi)),ri=Object(y.useState)(),Xa=Object(g.a)(ri,2),ai=Xa[0],Oo=Xa[1],yi=ao.get(rt),Bo=Object(y.useRef)();function To(){u.a.cancel(Bo.current)}Object(y.useEffect)(function(){var wa={};return yi&&(Bn?(It?wa.right=yi.right:wa.left=yi.left,wa.width=yi.width):(wa.top=yi.top,wa.height=yi.height)),To(),Bo.current=u()(function(){Oo(wa)}),To},[yi,Bn,It]),Object(y.useEffect)(function(){Ni()},[rt,yi,ao,Bn]),Object(y.useEffect)(function(){Uo()},[It,ln,rt,Xe.map(function(wa){return wa.key}).join("_")]);var $i=!!Wa.length,Wi="".concat(Pe,"-nav-wrap"),wo,fo,Wo,lo;return Bn?It?(fo=fr>0,wo=fr+Pa<nr):(wo=fr<0,fo=-fr+Pa<nr):(Wo=xa<0,lo=-xa+Ii<Ta),y.createElement("div",{ref:dt,role:"tablist",className:w()("".concat(Pe,"-nav"),Ie),style:$e,onKeyDown:function(){Co()}},y.createElement(or,{position:"left",extra:Vt,prefixCls:Pe}),y.createElement(t.a,{onResize:Uo},y.createElement("div",{className:w()(Wi,(yt={},Object(L.a)(yt,"".concat(Wi,"-ping-left"),wo),Object(L.a)(yt,"".concat(Wi,"-ping-right"),fo),Object(L.a)(yt,"".concat(Wi,"-ping-top"),Wo),Object(L.a)(yt,"".concat(Wi,"-ping-bottom"),lo),yt)),ref:Dr},y.createElement(t.a,{onResize:Uo},y.createElement("div",{ref:Jr,className:"".concat(Pe,"-nav-list"),style:{transform:"translate(".concat(fr,"px, ").concat(xa,"px)"),transition:Eo?"none":void 0}},So,y.createElement(Gr,{ref:ta,prefixCls:Pe,locale:on,editable:fn,style:{visibility:$i?"hidden":null}}),y.createElement("div",{className:w()("".concat(Pe,"-ink-bar"),Object(L.a)({},"".concat(Pe,"-ink-bar-animated"),pt.inkBar)),style:ai}))))),y.createElement(qr,Object.assign({},Ze,{ref:Fr,prefixCls:Pe,tabs:Wa,className:!$i&&Ji})),y.createElement(or,{position:"right",extra:Vt,prefixCls:Pe}))}var sr=y.forwardRef(Zr);function la(Ze){var dt=Ze.id,yt=Ze.activeKey,nt=Ze.animated,Pe=Ze.tabPosition,Xe=Ze.rtl,Ie=Ze.destroyInactiveTabPane,$e=y.useContext(rr),qe=$e.prefixCls,pt=$e.tabs,rt=nt.tabPane,It=pt.findIndex(function(Vt){return Vt.key===yt});return y.createElement("div",{className:w()("".concat(qe,"-content-holder"))},y.createElement("div",{className:w()("".concat(qe,"-content"),"".concat(qe,"-content-").concat(Pe),Object(L.a)({},"".concat(qe,"-content-animated"),rt)),style:It&&rt?Object(L.a)({},Xe?"marginRight":"marginLeft","-".concat(It,"00%")):null},pt.map(function(Vt){return y.cloneElement(Vt.node,{key:Vt.key,prefixCls:qe,tabKey:Vt.key,id:dt,animated:rt,active:Vt.key===yt,destroyInactiveTabPane:Ie})})))}function Xr(Ze){var dt=Ze.prefixCls,yt=Ze.forceRender,nt=Ze.className,Pe=Ze.style,Xe=Ze.id,Ie=Ze.active,$e=Ze.animated,qe=Ze.destroyInactiveTabPane,pt=Ze.tabKey,rt=Ze.children,It=y.useState(yt),Vt=Object(g.a)(It,2),fn=Vt[0],on=Vt[1];y.useEffect(function(){Ie?on(!0):qe&&on(!1)},[Ie,qe]);var un={};return Ie||($e?(un.visibility="hidden",un.height=0,un.overflowY="hidden"):un.display="none"),y.createElement("div",{id:Xe&&"".concat(Xe,"-panel-").concat(pt),role:"tabpanel",tabIndex:Ie?0:-1,"aria-labelledby":Xe&&"".concat(Xe,"-tab-").concat(pt),"aria-hidden":!Ie,style:Object(b.a)(Object(b.a)({},un),Pe),className:w()("".concat(dt,"-tabpane"),Ie&&"".concat(dt,"-tabpane-active"),nt)},(Ie||fn||yt)&&rt)}var gr=0;function Cr(Ze){return Object(f.a)(Ze).map(function(dt){if(y.isValidElement(dt)){var yt=dt.key!==void 0?String(dt.key):void 0;return Object(b.a)(Object(b.a)({key:yt},dt.props),{},{node:dt})}return null}).filter(function(dt){return dt})}function Hr(Ze,dt){var yt,nt=Ze.id,Pe=Ze.prefixCls,Xe=Pe===void 0?"rc-tabs":Pe,Ie=Ze.className,$e=Ze.children,qe=Ze.direction,pt=Ze.activeKey,rt=Ze.defaultActiveKey,It=Ze.editable,Vt=Ze.animated,fn=Ze.tabPosition,on=fn===void 0?"top":fn,un=Ze.tabBarGutter,ln=Ze.tabBarStyle,Hn=Ze.tabBarExtraContent,yn=Ze.locale,kr=Ze.moreIcon,Dr=Ze.moreTransitionName,Jr=Ze.destroyInactiveTabPane,Fr=Ze.renderTabBar,ta=Ze.onChange,Kn=Ze.onTabClick,Sr=Ze.onTabScroll,Gn=Object(A.a)(Ze,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),_n=Cr($e),Bn=qe==="rtl",zr;Vt===!1?zr={inkBar:!1,tabPane:!1}:zr=Object(b.a)({inkBar:!0,tabPane:!1},Vt!==!0?Vt:null);var sa=Object(y.useState)(!1),fr=Object(g.a)(sa,2),ra=fr[0],Ea=fr[1];Object(y.useEffect)(function(){Ea(tr())},[]);var ca=Object(_.a)(function(){var Ia;return(Ia=_n[0])===null||Ia===void 0?void 0:Ia.key},{value:pt,defaultValue:rt}),xa=Object(g.a)(ca,2),Or=xa[0],vr=xa[1],Pr=Object(y.useState)(function(){return _n.findIndex(function(Ia){return Ia.key===Or})}),nr=Object(g.a)(Pr,2),da=nr[0],ya=nr[1];Object(y.useEffect)(function(){var Ia=_n.findIndex(function(Si){return Si.key===Or});if(Ia===-1){var bi;Ia=Math.max(0,Math.min(da,_n.length-1)),vr((bi=_n[Ia])===null||bi===void 0?void 0:bi.key)}ya(Ia)},[_n.map(function(Ia){return Ia.key}).join("_"),Or,da]);var _a=Object(_.a)(null,{value:nt}),Ta=Object(g.a)(_a,2),ha=Ta[0],La=Ta[1],Na=on;ra&&!["left","right"].includes(on)&&(Na="top"),Object(y.useEffect)(function(){nt||(La("rc-tabs-".concat(gr)),gr+=1)},[]);function Ba(Ia,bi){Kn==null||Kn(Ia,bi),vr(Ia),ta==null||ta(Ia)}var ni={id:ha,activeKey:Or,animated:zr,tabPosition:Na,rtl:Bn,mobile:ra},Fi,Ai=Object(b.a)(Object(b.a)({},ni),{},{editable:It,locale:yn,moreIcon:kr,moreTransitionName:Dr,tabBarGutter:un,onTabClick:Ba,onTabScroll:Sr,extra:Hn,style:ln,panes:$e});return Fr?Fi=Fr(Ai,sr):Fi=y.createElement(sr,Object.assign({},Ai)),y.createElement(rr.Provider,{value:{tabs:_n,prefixCls:Xe}},y.createElement("div",Object.assign({ref:dt,id:nt,className:w()(Xe,"".concat(Xe,"-").concat(Na),(yt={},Object(L.a)(yt,"".concat(Xe,"-mobile"),ra),Object(L.a)(yt,"".concat(Xe,"-editable"),It),Object(L.a)(yt,"".concat(Xe,"-rtl"),Bn),yt),Ie)},Gn),Fi,y.createElement(la,Object.assign({destroyInactiveTabPane:Jr},ni,{animated:zr}))))}var Yr=y.forwardRef(Hr);Yr.TabPane=Xr;var Oa=Yr,va=Y.b=Oa},kPWJ:function(M,Y,o){M.exports=o.p+"static/question.cb52bef9.gif"},kPYp:function(M,Y){M.exports="data:image/png;base64,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"},kSUc:function(M,Y,o){},l2Kq:function(M,Y,o){M.exports=o.p+"static/match_ad.24dc22fd.jpg"},lPiR:function(M,Y,o){(function(L,g){M.exports=Y=g(o("Ib8C"))})(this,function(L){return function(g){var A=L,b=A.lib,y=b.WordArray,x=b.Hasher,w=A.algo,f=[],_=[];(function(){function u(i){for(var h=g.sqrt(i),l=2;l<=h;l++)if(!(i%l))return!1;return!0}function t(i){return(i-(i|0))*4294967296|0}for(var a=2,n=0;n<64;)u(a)&&(n<8&&(f[n]=t(g.pow(a,1/2))),_[n]=t(g.pow(a,1/3)),n++),a++})();var d=[],r=w.SHA256=x.extend({_doReset:function(){this._hash=new y.init(f.slice(0))},_doProcessBlock:function(u,t){for(var a=this._hash.words,n=a[0],i=a[1],h=a[2],l=a[3],s=a[4],p=a[5],O=a[6],S=a[7],v=0;v<64;v++){if(v<16)d[v]=u[t+v]|0;else{var P=d[v-15],R=(P<<25|P>>>7)^(P<<14|P>>>18)^P>>>3,E=d[v-2],C=(E<<15|E>>>17)^(E<<13|E>>>19)^E>>>10;d[v]=R+d[v-7]+C+d[v-16]}var m=s&p^~s&O,T=n&i^n&h^i&h,I=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),D=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),N=S+D+m+_[v]+d[v],z=I+T;S=O,O=p,p=s,s=l+N|0,l=h,h=i,i=n,n=N+z|0}a[0]=a[0]+n|0,a[1]=a[1]+i|0,a[2]=a[2]+h|0,a[3]=a[3]+l|0,a[4]=a[4]+s|0,a[5]=a[5]+p|0,a[6]=a[6]+O|0,a[7]=a[7]+S|0},_doFinalize:function(){var u=this._data,t=u.words,a=this._nDataBytes*8,n=u.sigBytes*8;return t[n>>>5]|=128<<24-n%32,t[(n+64>>>9<<4)+14]=g.floor(a/4294967296),t[(n+64>>>9<<4)+15]=a,u.sigBytes=t.length*4,this._process(),this._hash},clone:function(){var u=x.clone.call(this);return u._hash=this._hash.clone(),u}});A.SHA256=x._createHelper(r),A.HmacSHA256=x._createHmacHelper(r)}(Math),L.SHA256})},lZu9:function(M,Y,o){(function(L){L(o("VrN/"),o("1eCo"),o("8EBN"))})(function(L){"use strict";L.defineMode("markdown",function(g,A){var b=L.getMode(g,"text/html"),y=b.name=="null";function x(B){if(L.findModeByName){var k=L.findModeByName(B);k&&(B=k.mime||k.mimes[0])}var G=L.getMode(g,B);return G.name=="null"?null:G}A.highlightFormatting===void 0&&(A.highlightFormatting=!1),A.maxBlockquoteDepth===void 0&&(A.maxBlockquoteDepth=0),A.taskLists===void 0&&(A.taskLists=!1),A.strikethrough===void 0&&(A.strikethrough=!1),A.emoji===void 0&&(A.emoji=!1),A.fencedCodeBlockHighlighting===void 0&&(A.fencedCodeBlockHighlighting=!0),A.fencedCodeBlockDefaultMode===void 0&&(A.fencedCodeBlockDefaultMode="text/plain"),A.xml===void 0&&(A.xml=!0),A.tokenTypeOverrides===void 0&&(A.tokenTypeOverrides={});var w={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 f in w)w.hasOwnProperty(f)&&A.tokenTypeOverrides[f]&&(w[f]=A.tokenTypeOverrides[f]);var _=/^([*\-_])(?:\s*\1){2,}\s*$/,d=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,r=/^\[(x| )\](?=\s)/i,u=A.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,t=/^ {0,3}(?:\={1,}|-{2,})\s*$/,a=/^[^#!\[\]*_\\<>` "'(~:]+/,n=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,i=/^\s*\[[^\]]+?\]:.*$/,h=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,l=" ";function s(B,k,G){return k.f=k.inline=G,G(B,k)}function p(B,k,G){return k.f=k.block=G,G(B,k)}function O(B){return!B||!/\S/.test(B.string)}function S(B){if(B.linkTitle=!1,B.linkHref=!1,B.linkText=!1,B.em=!1,B.strong=!1,B.strikethrough=!1,B.quote=0,B.indentedCode=!1,B.f==P){var k=y;if(!k){var G=L.innerMode(b,B.htmlState);k=G.mode.name=="xml"&&G.state.tagStart===null&&!G.state.context&&G.state.tokenize.isInText}k&&(B.f=m,B.block=v,B.htmlState=null)}return B.trailingSpace=0,B.trailingSpaceNewLine=!1,B.prevLine=B.thisLine,B.thisLine={stream:null},null}function v(B,k){var G=B.column()===k.indentation,ne=O(k.prevLine.stream),fe=k.indentedCode,de=k.prevLine.hr,xe=k.list!==!1,Oe=(k.listStack[k.listStack.length-1]||0)+3;k.indentedCode=!1;var ce=k.indentation;if(k.indentationDiff===null&&(k.indentationDiff=k.indentation,xe)){for(k.list=null;ce<k.listStack[k.listStack.length-1];)k.listStack.pop(),k.listStack.length?k.indentation=k.listStack[k.listStack.length-1]:k.list=!1;k.list!==!1&&(k.indentationDiff=ce-k.listStack[k.listStack.length-1])}var be=!ne&&!de&&!k.prevLine.header&&(!xe||!fe)&&!k.prevLine.fencedCodeEnd,ve=(k.list===!1||de||ne)&&k.indentation<=Oe&&B.match(_),ue=null;if(k.indentationDiff>=4&&(fe||k.prevLine.fencedCodeEnd||k.prevLine.header||ne))return B.skipToEnd(),k.indentedCode=!0,w.code;if(B.eatSpace())return null;if(G&&k.indentation<=Oe&&(ue=B.match(u))&&ue[1].length<=6)return k.quote=0,k.header=ue[1].length,k.thisLine.header=!0,A.highlightFormatting&&(k.formatting="header"),k.f=k.inline,E(k);if(k.indentation<=Oe&&B.eat(">"))return k.quote=G?1:k.quote+1,A.highlightFormatting&&(k.formatting="quote"),B.eatSpace(),E(k);if(!ve&&!k.setext&&G&&k.indentation<=Oe&&(ue=B.match(d))){var se=ue[1]?"ol":"ul";return k.indentation=ce+B.current().length,k.list=!0,k.quote=0,k.listStack.push(k.indentation),k.em=!1,k.strong=!1,k.code=!1,k.strikethrough=!1,A.taskLists&&B.match(r,!1)&&(k.taskList=!0),k.f=k.inline,A.highlightFormatting&&(k.formatting=["list","list-"+se]),E(k)}else{if(G&&k.indentation<=Oe&&(ue=B.match(n,!0)))return k.quote=0,k.fencedEndRE=new RegExp(ue[1]+"+ *$"),k.localMode=A.fencedCodeBlockHighlighting&&x(ue[2]||A.fencedCodeBlockDefaultMode),k.localMode&&(k.localState=L.startState(k.localMode)),k.f=k.block=R,A.highlightFormatting&&(k.formatting="code-block"),k.code=-1,E(k);if(k.setext||(!be||!xe)&&!k.quote&&k.list===!1&&!k.code&&!ve&&!i.test(B.string)&&(ue=B.lookAhead(1))&&(ue=ue.match(t)))return k.setext?(k.header=k.setext,k.setext=0,B.skipToEnd(),A.highlightFormatting&&(k.formatting="header")):(k.header=ue[0].charAt(0)=="="?1:2,k.setext=k.header),k.thisLine.header=!0,k.f=k.inline,E(k);if(ve)return B.skipToEnd(),k.hr=!0,k.thisLine.hr=!0,w.hr;if(B.peek()==="[")return s(B,k,z)}return s(B,k,k.inline)}function P(B,k){var G=b.token(B,k.htmlState);if(!y){var ne=L.innerMode(b,k.htmlState);(ne.mode.name=="xml"&&ne.state.tagStart===null&&!ne.state.context&&ne.state.tokenize.isInText||k.md_inside&&B.current().indexOf(">")>-1)&&(k.f=m,k.block=v,k.htmlState=null)}return G}function R(B,k){var G=k.listStack[k.listStack.length-1]||0,ne=k.indentation<G,fe=G+3;if(k.fencedEndRE&&k.indentation<=fe&&(ne||B.match(k.fencedEndRE))){A.highlightFormatting&&(k.formatting="code-block");var de;return ne||(de=E(k)),k.localMode=k.localState=null,k.block=v,k.f=m,k.fencedEndRE=null,k.code=0,k.thisLine.fencedCodeEnd=!0,ne?p(B,k,k.block):de}else return k.localMode?k.localMode.token(B,k.localState):(B.skipToEnd(),w.code)}function E(B){var k=[];if(B.formatting){k.push(w.formatting),typeof B.formatting=="string"&&(B.formatting=[B.formatting]);for(var G=0;G<B.formatting.length;G++)k.push(w.formatting+"-"+B.formatting[G]),B.formatting[G]==="header"&&k.push(w.formatting+"-"+B.formatting[G]+"-"+B.header),B.formatting[G]==="quote"&&(!A.maxBlockquoteDepth||A.maxBlockquoteDepth>=B.quote?k.push(w.formatting+"-"+B.formatting[G]+"-"+B.quote):k.push("error"))}if(B.taskOpen)return k.push("meta"),k.length?k.join(" "):null;if(B.taskClosed)return k.push("property"),k.length?k.join(" "):null;if(B.linkHref?k.push(w.linkHref,"url"):(B.strong&&k.push(w.strong),B.em&&k.push(w.em),B.strikethrough&&k.push(w.strikethrough),B.emoji&&k.push(w.emoji),B.linkText&&k.push(w.linkText),B.code&&k.push(w.code),B.image&&k.push(w.image),B.imageAltText&&k.push(w.imageAltText,"link"),B.imageMarker&&k.push(w.imageMarker)),B.header&&k.push(w.header,w.header+"-"+B.header),B.quote&&(k.push(w.quote),!A.maxBlockquoteDepth||A.maxBlockquoteDepth>=B.quote?k.push(w.quote+"-"+B.quote):k.push(w.quote+"-"+A.maxBlockquoteDepth)),B.list!==!1){var ne=(B.listStack.length-1)%3;ne?ne===1?k.push(w.list2):k.push(w.list3):k.push(w.list1)}return B.trailingSpaceNewLine?k.push("trailing-space-new-line"):B.trailingSpace&&k.push("trailing-space-"+(B.trailingSpace%2?"a":"b")),k.length?k.join(" "):null}function C(B,k){return B.match(a,!0)?E(k):void 0}function m(B,k){var G=k.text(B,k);if(typeof G!="undefined")return G;if(k.list)return k.list=null,E(k);if(k.taskList){var ne=B.match(r,!0)[1]===" ";return ne?k.taskOpen=!0:k.taskClosed=!0,A.highlightFormatting&&(k.formatting="task"),k.taskList=!1,E(k)}if(k.taskOpen=!1,k.taskClosed=!1,k.header&&B.match(/^#+$/,!0))return A.highlightFormatting&&(k.formatting="header"),E(k);var fe=B.next();if(k.linkTitle){k.linkTitle=!1;var de=fe;fe==="("&&(de=")"),de=(de+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var xe="^\\s*(?:[^"+de+"\\\\]+|\\\\\\\\|\\\\.)"+de;if(B.match(new RegExp(xe),!0))return w.linkHref}if(fe==="`"){var Oe=k.formatting;A.highlightFormatting&&(k.formatting="code"),B.eatWhile("`");var ce=B.current().length;if(k.code==0&&(!k.quote||ce==1))return k.code=ce,E(k);if(ce==k.code){var be=E(k);return k.code=0,be}else return k.formatting=Oe,E(k)}else if(k.code)return E(k);if(fe==="\\"&&(B.next(),A.highlightFormatting)){var ve=E(k),ue=w.formatting+"-escape";return ve?ve+" "+ue:ue}if(fe==="!"&&B.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return k.imageMarker=!0,k.image=!0,A.highlightFormatting&&(k.formatting="image"),E(k);if(fe==="["&&k.imageMarker&&B.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return k.imageMarker=!1,k.imageAltText=!0,A.highlightFormatting&&(k.formatting="image"),E(k);if(fe==="]"&&k.imageAltText){A.highlightFormatting&&(k.formatting="image");var ve=E(k);return k.imageAltText=!1,k.image=!1,k.inline=k.f=I,ve}if(fe==="["&&!k.image)return k.linkText&&B.match(/^.*?\]/)||(k.linkText=!0,A.highlightFormatting&&(k.formatting="link")),E(k);if(fe==="]"&&k.linkText){A.highlightFormatting&&(k.formatting="link");var ve=E(k);return k.linkText=!1,k.inline=k.f=B.match(/\(.*?\)| ?\[.*?\]/,!1)?I:m,ve}if(fe==="<"&&B.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){k.f=k.inline=T,A.highlightFormatting&&(k.formatting="link");var ve=E(k);return ve?ve+=" ":ve="",ve+w.linkInline}if(fe==="<"&&B.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){k.f=k.inline=T,A.highlightFormatting&&(k.formatting="link");var ve=E(k);return ve?ve+=" ":ve="",ve+w.linkEmail}if(A.xml&&fe==="<"&&B.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var se=B.string.indexOf(">",B.pos);if(se!=-1){var q=B.string.substring(B.start,se);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(q)&&(k.md_inside=!0)}return B.backUp(1),k.htmlState=L.startState(b),p(B,k,P)}if(A.xml&&fe==="<"&&B.match(/^\/\w*?>/))return k.md_inside=!1,"tag";if(fe==="*"||fe==="_"){for(var me=1,re=B.pos==1?" ":B.string.charAt(B.pos-2);me<3&&B.eat(fe);)me++;var ie=B.peek()||" ",we=!/\s/.test(ie)&&(!h.test(ie)||/\s/.test(re)||h.test(re)),le=!/\s/.test(re)&&(!h.test(re)||/\s/.test(ie)||h.test(ie)),$=null,J=null;if(me%2&&(!k.em&&we&&(fe==="*"||!le||h.test(re))?$=!0:k.em==fe&&le&&(fe==="*"||!we||h.test(ie))&&($=!1)),me>1&&(!k.strong&&we&&(fe==="*"||!le||h.test(re))?J=!0:k.strong==fe&&le&&(fe==="*"||!we||h.test(ie))&&(J=!1)),J!=null||$!=null){A.highlightFormatting&&(k.formatting=$==null?"strong":J==null?"em":"strong em"),$===!0&&(k.em=fe),J===!0&&(k.strong=fe);var be=E(k);return $===!1&&(k.em=!1),J===!1&&(k.strong=!1),be}}else if(fe===" "&&(B.eat("*")||B.eat("_"))){if(B.peek()===" ")return E(k);B.backUp(1)}if(A.strikethrough){if(fe==="~"&&B.eatWhile(fe)){if(k.strikethrough){A.highlightFormatting&&(k.formatting="strikethrough");var be=E(k);return k.strikethrough=!1,be}else if(B.match(/^[^\s]/,!1))return k.strikethrough=!0,A.highlightFormatting&&(k.formatting="strikethrough"),E(k)}else if(fe===" "&&B.match(/^~~/,!0)){if(B.peek()===" ")return E(k);B.backUp(2)}}if(A.emoji&&fe===":"&&B.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){k.emoji=!0,A.highlightFormatting&&(k.formatting="emoji");var te=E(k);return k.emoji=!1,te}return fe===" "&&(B.match(/^ +$/,!1)?k.trailingSpace++:k.trailingSpace&&(k.trailingSpaceNewLine=!0)),E(k)}function T(B,k){var G=B.next();if(G===">"){k.f=k.inline=m,A.highlightFormatting&&(k.formatting="link");var ne=E(k);return ne?ne+=" ":ne="",ne+w.linkInline}return B.match(/^[^>]+/,!0),w.linkInline}function I(B,k){if(B.eatSpace())return null;var G=B.next();return G==="("||G==="["?(k.f=k.inline=N(G==="("?")":"]"),A.highlightFormatting&&(k.formatting="link-string"),k.linkHref=!0,E(k)):"error"}var D={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function N(B){return function(k,G){var ne=k.next();if(ne===B){G.f=G.inline=m,A.highlightFormatting&&(G.formatting="link-string");var fe=E(G);return G.linkHref=!1,fe}return k.match(D[B]),G.linkHref=!0,E(G)}}function z(B,k){return B.match(/^([^\]\\]|\\.)*\]:/,!1)?(k.f=F,B.next(),A.highlightFormatting&&(k.formatting="link"),k.linkText=!0,E(k)):s(B,k,m)}function F(B,k){if(B.match(/^\]:/,!0)){k.f=k.inline=W,A.highlightFormatting&&(k.formatting="link");var G=E(k);return k.linkText=!1,G}return B.match(/^([^\]\\]|\\.)+/,!0),w.linkText}function W(B,k){return B.eatSpace()?null:(B.match(/^[^\s]+/,!0),B.peek()===void 0?k.linkTitle=!0:B.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),k.f=k.inline=m,w.linkHref+" url")}var K={startState:function(){return{f:v,prevLine:{stream:null},thisLine:{stream:null},block:v,htmlState:null,indentation:0,inline:m,text:C,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(B){return{f:B.f,prevLine:B.prevLine,thisLine:B.thisLine,block:B.block,htmlState:B.htmlState&&L.copyState(b,B.htmlState),indentation:B.indentation,localMode:B.localMode,localState:B.localMode?L.copyState(B.localMode,B.localState):null,inline:B.inline,text:B.text,formatting:!1,linkText:B.linkText,linkTitle:B.linkTitle,linkHref:B.linkHref,code:B.code,em:B.em,strong:B.strong,strikethrough:B.strikethrough,emoji:B.emoji,header:B.header,setext:B.setext,hr:B.hr,taskList:B.taskList,list:B.list,listStack:B.listStack.slice(0),quote:B.quote,indentedCode:B.indentedCode,trailingSpace:B.trailingSpace,trailingSpaceNewLine:B.trailingSpaceNewLine,md_inside:B.md_inside,fencedEndRE:B.fencedEndRE}},token:function(B,k){if(k.formatting=!1,B!=k.thisLine.stream){if(k.header=0,k.hr=!1,B.match(/^\s*$/,!0))return S(k),null;if(k.prevLine=k.thisLine,k.thisLine={stream:B},k.taskList=!1,k.trailingSpace=0,k.trailingSpaceNewLine=!1,!k.localState&&(k.f=k.block,k.f!=P)){var G=B.match(/^\s*/,!0)[0].replace(/\t/g,l).length;if(k.indentation=G,k.indentationDiff=null,G>0)return null}}return k.f(B,k)},innerMode:function(B){return B.block==P?{state:B.htmlState,mode:b}:B.localState?{state:B.localState,mode:B.localMode}:{state:B,mode:K}},indent:function(B,k,G){return B.block==P&&b.indent?b.indent(B.htmlState,k,G):B.localState&&B.localMode.indent?B.localMode.indent(B.localState,k,G):L.Pass},blankLine:S,getType:E,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return K},"xml"),L.defineMIME("text/markdown","markdown"),L.defineMIME("text/x-markdown","markdown")})},luix:function(M,Y,o){M.exports=o.p+"static/tips.2ae2707a.svg"},lzim:function(M,Y,o){"use strict";var L=o("E7E6"),g=o.n(L);o.d(Y,"x",function(){return g.a});var A=o("/GNS"),b=o.n(A);o.d(Y,"w",function(){return b.a});var y=o("FOrL"),x=o.n(y);o.d(Y,"q",function(){return x.a});var w=o("HpTS"),f=o.n(w);o.d(Y,"y",function(){return f.a});var _=o("tWlo"),d=o.n(_);o.d(Y,"a",function(){return d.a});var r=o("7ZXX"),u=o.n(r);o.d(Y,"l",function(){return u.a});var t=o("GABl"),a=o.n(t);o.d(Y,"e",function(){return a.a});var n=o("onxn"),i=o.n(n);o.d(Y,"n",function(){return i.a});var h=o("nKGa"),l=o.n(h);o.d(Y,"m",function(){return l.a});var s=o("4qgm"),p=o.n(s);o.d(Y,"A",function(){return p.a});var O=o("JeFH"),S=o.n(O);o.d(Y,"b",function(){return S.a});var v=o("ji0R"),P=o.n(v);o.d(Y,"i",function(){return P.a});var R=o("W6BS"),E=o.n(R);o.d(Y,"B",function(){return E.a});var C=o("kPYp"),m=o.n(C);o.d(Y,"C",function(){return m.a});var T=o("nukY"),I=o.n(T),D=o("4u4S"),N=o.n(D),z=o("yslc"),F=o.n(z),W=o("l2Kq"),K=o.n(W),B=o("RMFE"),k=o.n(B);o.d(Y,"o",function(){return k.a});var G=o("TGq3"),ne=o.n(G),fe=o("SMhR"),de=o.n(fe);o.d(Y,"z",function(){return de.a});var xe=o("8/bI"),Oe=o.n(xe);o.d(Y,"j",function(){return Oe.a});var ce=o("JWDV"),be=o.n(ce),ve=o("Xsq0"),ue=o.n(ve);o.d(Y,"p",function(){return ue.a});var se=o("Ohmc"),q=o.n(se);o.d(Y,"c",function(){return q.a});var me=o("csWT"),re=o.n(me);o.d(Y,"d",function(){return re.a});var ie=o("7v3h"),we=o.n(ie);o.d(Y,"k",function(){return we.a});var le=o("cRFk"),$=o.n(le);o.d(Y,"v",function(){return $.a});var J=o("kPWJ"),te=o.n(J);o.d(Y,"u",function(){return te.a});var De=o("qgvg"),Te=o.n(De);o.d(Y,"r",function(){return Te.a});var ke=o("FPkq"),tt=o.n(ke);o.d(Y,"t",function(){return tt.a});var ot=o("A/g1"),gt=o.n(ot);o.d(Y,"f",function(){return gt.a});var Et=o("Nmxd"),xt=o.n(Et);o.d(Y,"g",function(){return xt.a});var St=o("5D2P"),Je=o.n(St);o.d(Y,"h",function(){return Je.a});var Ue=o("djh8"),ft=o.n(Ue);o.d(Y,"s",function(){return ft.a});var kt=o("Jq4h"),ht=o.n(kt)},mxV5:function(module,exports,__webpack_require__){(function(global){var require,require;(function(M){if(!0)module.exports=M();else var Y})(function(){var define,module,exports;return function(){function M(Y,o,L){function g(y,x){if(!o[y]){if(!Y[y]){var w=typeof require=="function"&&require;if(!x&&w)return require(y,!0);if(A)return A(y,!0);var f=new Error("Cannot find module '"+y+"'");throw f.code="MODULE_NOT_FOUND",f}var _=o[y]={exports:{}};Y[y][0].call(_.exports,function(d){var r=Y[y][1][d];return g(r||d)},_,_.exports,M,Y,o,L)}return o[y].exports}for(var A=typeof require=="function"&&require,b=0;b<L.length;b++)g(L[b]);return g}return M}()({1:[function(M,Y,o){"use strict";var L=M("./browser/client");L.Buffer=M("buffer").Buffer,L.urllib=M("../shims/xhr"),L.version=M("./browser/version").version,Y.exports=L},{"../shims/xhr":291,"./browser/client":2,"./browser/version":5,buffer:73}],2:[function(M,Y,o){(function(L,g){"use strict";var A=M("babel-runtime/core-js/promise"),b=_(A),y=M("babel-runtime/regenerator"),x=_(y),w=M("babel-runtime/core-js/object/assign"),f=_(w);function _(z){return z&&z.__esModule?z:{default:z}}var d=M("debug")("ali-oss"),r=M("copy-to"),u=M("xml2js"),t=M("agentkeepalive"),a=M("merge-descriptors"),n=M("url"),i=M("is-type-of"),h=M("platform"),l=M("utility"),s=M("urllib"),p=M("./version"),O=M("bowser"),S=M("../common/signUtils"),v=M("../common/utils/isIP"),P=v.isIP,R=M("../common/client/initOptions"),E=M("../common/utils/createRequest"),C=E.createRequest,m=new t;function T(){var z=h.name,F=h.version;z&&z.toLowerCase&&z.toLowerCase()==="ie"&&F.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function I(){return location&&location.protocol==="https:"}function D(z,F){if(T(),!(this instanceof D))return new D(z,F);z&&z.inited?this.options=z:this.options=D.initOptions(z),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=s,this.agent=this.options.agent||m),this.ctx=F,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}Y.exports=D,D.initOptions=function(F){F.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var W=(0,f.default)({secure:I(),useFetch:!1},F);return R(W)};var N=D.prototype;N.debug=d,a(N,M("./object")),a(N,M("../common/bucket/getBucketWebsite")),a(N,M("../common/bucket/putBucketWebsite")),a(N,M("../common/bucket/deleteBucketWebsite")),a(N,M("../common/bucket/getBucketLifecycle")),a(N,M("../common/bucket/putBucketLifecycle")),a(N,M("../common/bucket/deleteBucketLifecycle")),a(N,M("../common/bucket/putBucketVersioning")),a(N,M("../common/bucket/getBucketVersioning")),a(N,M("./managed-upload")),a(N,M("../common/multipart")),a(N,M("../common/parallel")),N.signature=function(F){return this.debug("authorization stringToSign: %s",F,"info"),S.computeSignature(this.options.accessKeySecret,F)},N.authorization=function(F,W,K,B){var k=S.buildCanonicalString(F.toUpperCase(),W,{headers:B,parameters:K});return S.authorization(this.options.accessKeyId,this.options.accessKeySecret,k)},N.request=function(F){var W,K,B,k,G,ne;return x.default.async(function(de){for(;;)switch(de.prev=de.next){case 0:return W=C.call(this,F),this.options.useFetch||(W.params.mode="disable-fetch"),K=void 0,B=void 0,k=!!F.stream,de.prev=5,de.next=8,x.default.awrap(this.urllib.request(W.url,W.params));case 8:K=de.sent,this.debug("response %s %s, got %s, headers: %j",F.method,W.url,K.status,K.headers,"info"),de.next=15;break;case 12:de.prev=12,de.t0=de.catch(5),B=de.t0;case 15:if(G=void 0,!(K&&F.successStatuses&&F.successStatuses.indexOf(K.status)===-1)){de.next=28;break}return de.next=19,x.default.awrap(this.requestError(K));case 19:if(G=de.sent,!(G.code==="RequestTimeTooSkewed"&&!k)){de.next=25;break}return this.options.amendTimeSkewed=+new Date(G.serverTime)-new Date,de.next=24,x.default.awrap(this.request(F));case 24:return de.abrupt("return",de.sent);case 25:G.params=F,de.next=32;break;case 28:if(!B){de.next=32;break}return de.next=31,x.default.awrap(this.requestError(B));case 31:G=de.sent;case 32:if(!G){de.next=34;break}throw G;case 34:if(!F.xmlResponse){de.next=39;break}return de.next=37,x.default.awrap(this.parseXML(K.data));case 37:ne=de.sent,K.data=ne;case 39:return de.abrupt("return",K);case 40:case"end":return de.stop()}},null,this,[[5,12]])},N._getResource=function(F){var W="/";return F.bucket&&(W+=F.bucket+"/"),F.object&&(W+=F.object),W},N._isIP=P,N._escape=function(F){return l.encodeURIComponent(F).replace(/%2F/g,"/")},N._getReqUrl=function(F){var W={};r(this.options.endpoint).to(W);var K=this._isIP(W.hostname),B=this.options.cname;F.bucket&&!B&&!K&&(W.host=F.bucket+"."+W.host);var k="/";F.bucket&&K&&(k+=F.bucket+"/"),F.object&&(k+=this._escape(F.object).replace(/\+/g,"%2B")),W.pathname=k;var G={};if(F.query&&a(G,F.query),F.subres){var ne={};i.string(F.subres)?ne[F.subres]="":i.array(F.subres)?F.subres.forEach(function(fe){ne[fe]=""}):ne=F.subres,a(G,ne)}return W.query=G,n.format(W)},N._getUserAgent=function(){var F=g&&g.browser?"js":"nodejs",W="aliyun-sdk-"+F+"/"+p.version,K=h.description;return!K&&g&&(K="Node.js "+g.version.slice(1)+" on "+g.platform+" "+g.arch),this._checkUserAgent(W+" "+K)},N._checkUserAgent=function(F){var W=F.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return W},N.checkBrowserAndVersion=function(F,W){return O.name===F&&O.version.split(".")[0]===W},N.parseXML=function(F){return new b.default(function(W,K){L.isBuffer(F)&&(F=F.toString()),u.parseString(F,{explicitRoot:!1,explicitArray:!1},function(B,k){B?K(B):W(k)})})},N.requestError=function(F){var W,K,B,k;return x.default.async(function(ne){for(;;)switch(ne.prev=ne.next){case 0:if(W=null,!(!F.data||!F.data.length)){ne.next=5;break}F.status===-1||F.status===-2?(W=new Error(F.message),W.name=F.name,W.status=F.status,W.code=F.name):(F.status===404?(W=new Error("Object not exists"),W.name="NoSuchKeyError",W.status=404,W.code="NoSuchKey"):F.status===412?(W=new Error("Pre condition failed"),W.name="PreconditionFailedError",W.status=412,W.code="PreconditionFailed"):(W=new Error("Unknow error, status: "+F.status),W.name="UnknowError",W.status=F.status),W.requestId=F.headers["x-oss-request-id"],W.host=""),ne.next=33;break;case 5:return K=String(F.data),this.debug("request response error data: %s",K,"error"),B=void 0,ne.prev=8,ne.next=11,x.default.awrap(this.parseXML(K));case 11:if(ne.t0=ne.sent,ne.t0){ne.next=14;break}ne.t0={};case 14:B=ne.t0,ne.next=24;break;case 17:return ne.prev=17,ne.t1=ne.catch(8),this.debug(K,"error"),ne.t1.message+=`
raw xml: `+K,ne.t1.status=F.status,ne.t1.requestId=F.headers["x-oss-request-id"],ne.abrupt("return",ne.t1);case 24:k=B.Message||"unknow request error, status: "+F.status,B.Condition&&(k+=" (condition: "+B.Condition+")"),W=new Error(k),W.name=B.Code?B.Code+"Error":"UnknowError",W.status=F.status,W.code=B.Code,W.requestId=B.RequestId,W.hostId=B.HostId,W.serverTime=B.ServerTime;case 33:return this.debug("generate error %j",W,"error"),ne.abrupt("return",W);case 35:case"end":return ne.stop()}},null,this,[[8,17]])}}).call(this,{isBuffer:M("../../node_modules/is-buffer/index.js")},M("_process"))},{"../../node_modules/is-buffer/index.js":197,"../common/bucket/deleteBucketLifecycle":6,"../common/bucket/deleteBucketWebsite":7,"../common/bucket/getBucketLifecycle":8,"../common/bucket/getBucketVersioning":9,"../common/bucket/getBucketWebsite":10,"../common/bucket/putBucketLifecycle":11,"../common/bucket/putBucketVersioning":12,"../common/bucket/putBucketWebsite":13,"../common/client/initOptions":15,"../common/multipart":18,"../common/parallel":33,"../common/signUtils":34,"../common/utils/createRequest":38,"../common/utils/isIP":45,"./managed-upload":3,"./object":4,"./version":5,_process:208,agentkeepalive:48,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,bowser:70,"copy-to":76,debug:288,"is-type-of":289,"merge-descriptors":200,platform:206,url:238,urllib:291,utility:290,xml2js:249}],3:[function(M,Y,o){(function(L){"use strict";var g=M("babel-runtime/core-js/array/from"),A=f(g),b=M("babel-runtime/core-js/promise"),y=f(b),x=M("babel-runtime/regenerator"),w=f(x);function f(S){return S&&S.__esModule?S:{default:S}}var _=M("is-type-of"),d=M("util"),r=M("path"),u=M("mime"),t=M("copy-to"),a=M("../common/utils/isBlob"),n=a.isBlob,i=M("../common/utils/isFile"),h=i.isFile,l=o;l.multipartUpload=function(v,P,R){var E,C,m,T,I,D,N,z,F;return w.default.async(function(K){for(;;)switch(K.prev=K.next){case 0:if(this.resetCancelFlag(),R=R||{},!(R.checkpoint&&R.checkpoint.uploadId)){K.next=6;break}return K.next=5,w.default.awrap(this._resumeMultipart(R.checkpoint,R));case 5:return K.abrupt("return",K.sent);case 6:return E=100*1024,R.mime||(h(P)?R.mime=u.getType(r.extname(P.name)):n(P)?R.mime=P.type:R.mime=u.getType(r.extname(P))),R.headers=R.headers||{},this._convertMetaToHeaders(R.meta,R.headers),K.next=12,w.default.awrap(this._getFileSize(P));case 12:if(C=K.sent,!(C<E)){K.next=25;break}return m=this._createStream(P,0,C),R.contentLength=C,K.next=18,w.default.awrap(this.putStream(v,m,R));case 18:if(T=K.sent,!(R&&R.progress)){K.next=22;break}return K.next=22,w.default.awrap(R.progress(1));case 22:return I={res:T.res,bucket:this.options.bucket,name:v,etag:T.res.headers.etag},(R.headers&&R.headers["x-oss-callback"]||R.callback)&&(I.data=T.data),K.abrupt("return",I);case 25:if(!(R.partSize&&!(parseInt(R.partSize,10)===R.partSize))){K.next=27;break}throw new Error("partSize must be int number");case 27:if(!(R.partSize&&R.partSize<E)){K.next=29;break}throw new Error("partSize must not be smaller than "+E);case 29:return K.next=31,w.default.awrap(this.initMultipartUpload(v,R));case 31:if(D=K.sent,N=D.uploadId,z=this._getPartSize(C,R.partSize),F={file:P,name:v,fileSize:C,partSize:z,uploadId:N,doneParts:[]},!(R&&R.progress)){K.next=38;break}return K.next=38,w.default.awrap(R.progress(0,F,D.res));case 38:return K.next=40,w.default.awrap(this._resumeMultipart(F,R));case 40:return K.abrupt("return",K.sent);case 41:case"end":return K.stop()}},null,this)},l._resumeMultipart=function(v,P){var R,E,C,m,T,I,D,N,z,F,W,K,B,k,G,ne,fe,de;return w.default.async(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(R=this,!this.isCancel()){Oe.next=3;break}throw this._makeCancelEvent();case 3:return E=v.file,C=v.fileSize,m=v.partSize,T=v.uploadId,I=v.doneParts,D=v.name,N=[],I.length>0&&t(I).to(N),z=this._divideParts(C,m),F=z.length,W=!1,K=function(be,ve){var ue=this;return new y.default(function(q,me){var re,ie,we,le;return w.default.async(function(J){for(;;)switch(J.prev=J.next){case 0:if(J.prev=0,be.isCancel()){J.next=18;break}return re=z[ve-1],ie={stream:be._createStream(E,re.start,re.end),size:re.end-re.start},J.next=6,w.default.awrap(be._uploadPart(D,T,ve,ie));case 6:if(we=J.sent,!(!be.isCancel()&&!W)){J.next=15;break}if(v.doneParts.push({number:ve,etag:we.res.headers.etag}),!P.progress){J.next=12;break}return J.next=12,w.default.awrap(P.progress(I.length/F,v,we.res));case 12:q({number:ve,etag:we.res.headers.etag}),J.next=16;break;case 15:q();case 16:J.next=19;break;case 18:q();case 19:J.next=30;break;case 21:J.prev=21,J.t0=J.catch(0),le=new Error,le.name=J.t0.name,le.message=J.t0.message,le.stack=J.t0.stack,le.partNum=ve,t(J.t0).to(le),me(le);case 30:case"end":return J.stop()}},null,ue,[[0,21]])})},B=(0,A.default)(new Array(F),function(ce,be){return be+1}),k=N.map(function(ce){return ce.number}),G=B.filter(function(ce){return k.indexOf(ce)<0}),ne=5,fe=P.parallel||ne,Oe.next=17,w.default.awrap(this._parallel(G,fe,function(ce){return new y.default(function(be,ve){K(R,ce).then(function(ue){ue&&N.push(ue),be()}).catch(function(ue){ve(ue)})})}));case 17:if(de=Oe.sent,W=!0,!this.isCancel()){Oe.next=22;break}throw K=null,this._makeCancelEvent();case 22:if(!(de&&de.length>0)){Oe.next=25;break}throw de[0].message="Failed to upload some parts with error: "+de[0].toString()+" part_num: "+de[0].partNum,de[0];case 25:return Oe.next=27,w.default.awrap(this.completeMultipartUpload(D,T,N,P));case 27:return Oe.abrupt("return",Oe.sent);case 28:case"end":return Oe.stop()}},null,this)},l._getFileSize=function(v){return w.default.async(function(R){for(;;)switch(R.prev=R.next){case 0:if(!_.buffer(v)){R.next=4;break}return R.abrupt("return",v.length);case 4:if(!(n(v)||h(v))){R.next=6;break}return R.abrupt("return",v.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return R.stop()}},null,this)};var s=M("stream"),p=s.Readable;function O(S,v){if(!(this instanceof O))return new O(S,v);p.call(this,v),this.file=S,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}d.inherits(O,p),O.prototype.readFileAndPush=function(v){if(this.fileBuffer)for(var P=!0;P&&this.fileBuffer&&this.start<this.fileBuffer.length;){var R=this.start,E=R+v;E=E>this.fileBuffer.length?this.fileBuffer.length:E,this.start=E,P=this.push(this.fileBuffer.slice(R,E))}},O.prototype._read=function(v){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file){this.finish||(this.fileBuffer=null,this.finish=!0),this.push(null);return}var P=16*1024;v=v||P;var R=this;this.reader.onload=function(C){R.fileBuffer=L.from(new Uint8Array(C.target.result)),R.file=null,R.readFileAndPush(v)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(v)},l._createStream=function(v,P,R){if(n(v)||h(v))return new O(v.slice(P,R));throw new Error("_createStream requires File/Blob.")},l._getPartSize=function(v,P){var R=10*1e3,E=1024*1024;return P?Math.max(Math.ceil(v/R),P):E},l._divideParts=function(v,P){for(var R=Math.ceil(v/P),E=[],C=0;C<R;C++){var m=P*C,T=Math.min(m+P,v);E.push({start:m,end:T})}return E}}).call(this,M("buffer").Buffer)},{"../common/utils/isBlob":43,"../common/utils/isFile":44,"babel-runtime/core-js/array/from":52,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,buffer:73,"copy-to":76,"is-type-of":289,mime:202,path:205,stream:230,util:243}],4:[function(M,Y,o){"use strict";var L=M("babel-runtime/core-js/promise"),g=_(L),A=M("babel-runtime/core-js/object/keys"),b=_(A),y=M("babel-runtime/core-js/object/assign"),x=_(y),w=M("babel-runtime/regenerator"),f=_(w);function _(R){return R&&R.__esModule?R:{default:R}}var d=M("utility"),r=M("fs"),u=M("is-type-of"),t=M("url"),a=M("copy-to"),n=M("path"),i=M("mime"),h=M("../common/callback"),l=M("../common/signUtils"),s=M("merge-descriptors"),p=M("../common/utils/isBlob"),O=p.isBlob,S=M("../common/utils/isFile"),v=S.isFile,P=o;P.append=function(E,C,m){var T;return f.default.async(function(D){for(;;)switch(D.prev=D.next){case 0:return m=m||{},m.position===void 0&&(m.position="0"),m.subres={append:"",position:m.position},m.method="POST",D.next=6,f.default.awrap(this.put(E,C,m));case 6:return T=D.sent,T.nextAppendPosition=T.res.headers["x-oss-next-append-position"],D.abrupt("return",T);case 9:case"end":return D.stop()}},null,this)},P.put=function(E,C,m){var T,I,D,N,z,F,W;return f.default.async(function(B){for(;;)switch(B.prev=B.next){case 0:if(T=void 0,m=m||{},E=this._objectName(E),!u.buffer(C)){B.next=7;break}T=C,B.next=33;break;case 7:if(!(O(C)||v(C))){B.next=32;break}return m.mime||(v(C)?m.mime=i.getType(n.extname(C.name)):m.mime=C.type),I=this._createStream(C,0,C.size),B.next=12,f.default.awrap(this._getFileSize(C));case 12:return m.contentLength=B.sent,B.prev=13,B.next=16,f.default.awrap(this.putStream(E,I,m));case 16:return D=B.sent,B.abrupt("return",D);case 20:if(B.prev=20,B.t0=B.catch(13),!(B.t0.code==="RequestTimeTooSkewed")){B.next=29;break}return this.options.amendTimeSkewed=+new Date(B.t0.serverTime)-new Date,B.next=26,f.default.awrap(this.put(E,C,m));case 26:return B.abrupt("return",B.sent);case 29:throw B.t0;case 30:B.next=33;break;case 32:throw new TypeError("Must provide Buffer/Blob/File for put.");case 33:return m.headers=m.headers||{},this._convertMetaToHeaders(m.meta,m.headers),N=m.method||"PUT",z=this._objectRequestParams(N,E,m),h.encodeCallback(z,m),z.mime=m.mime,z.content=T,z.successStatuses=[200],B.next=43,f.default.awrap(this.request(z));case 43:return F=B.sent,W={name:E,url:this._objectUrl(E),res:F.res},z.headers&&z.headers["x-oss-callback"]&&(W.data=JSON.parse(F.data.toString())),B.abrupt("return",W);case 47:case"end":return B.stop()}},null,this,[[13,20]])},P.putStream=function(E,C,m){var T,I,D,N;return f.default.async(function(F){for(;;)switch(F.prev=F.next){case 0:return m=m||{},m.headers=m.headers||{},E=this._objectName(E),m.contentLength?m.headers["Content-Length"]=m.contentLength:m.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(m.meta,m.headers),T=m.method||"PUT",I=this._objectRequestParams(T,E,m),h.encodeCallback(I,m),I.mime=m.mime,I.stream=C,I.successStatuses=[200],F.next=13,f.default.awrap(this.request(I));case 13:return D=F.sent,N={name:E,url:this._objectUrl(E),res:D.res},I.headers&&I.headers["x-oss-callback"]&&(N.data=JSON.parse(D.data.toString())),F.abrupt("return",N);case 17:case"end":return F.stop()}},null,this)},s(P,M("../common/object/copyObject")),s(P,M("../common/object/getObjectTagging")),s(P,M("../common/object/putObjectTagging")),s(P,M("../common/object/deleteObjectTagging")),s(P,M("../common/image")),s(P,M("../common/object/getBucketVersions")),s(P,M("../common/object/getACL")),s(P,M("../common/object/putACL")),s(P,M("../common/object/head")),s(P,M("../common/object/delete")),s(P,M("../common/object/get")),s(P,M("../common/object/putSymlink")),s(P,M("../common/object/getSymlink")),s(P,M("../common/object/deleteMulti")),s(P,M("../common/object/getObjectMeta")),P.putMeta=function(E,C,m){var T;return f.default.async(function(D){for(;;)switch(D.prev=D.next){case 0:return D.next=2,f.default.awrap(this.copy(E,E,{meta:C||{},timeout:m&&m.timeout,ctx:m&&m.ctx}));case 2:return T=D.sent,D.abrupt("return",T);case 4:case"end":return D.stop()}},null,this)},P.list=function(E,C){var m,T,I,D,N;return f.default.async(function(F){for(;;)switch(F.prev=F.next){case 0:return m=this._objectRequestParams("GET","",C),m.query=E,m.xmlResponse=!0,m.successStatuses=[200],F.next=6,f.default.awrap(this.request(m));case 6:return T=F.sent,I=T.data.Contents,D=this,I&&(Array.isArray(I)||(I=[I]),I=I.map(function(W){return{name:W.Key,url:D._objectUrl(W.Key),lastModified:W.LastModified,etag:W.ETag,type:W.Type,size:Number(W.Size),storageClass:W.StorageClass,owner:{id:W.Owner.ID,displayName:W.Owner.DisplayName}}})),N=T.data.CommonPrefixes||null,N&&(Array.isArray(N)||(N=[N]),N=N.map(function(W){return W.Prefix})),F.abrupt("return",{res:T.res,objects:I,prefixes:N,nextMarker:T.data.NextMarker||null,isTruncated:T.data.IsTruncated==="true"});case 13:case"end":return F.stop()}},null,this)},P.restore=function(E,C){var m,T;return f.default.async(function(D){for(;;)switch(D.prev=D.next){case 0:return C=C||{},C.subres=(0,x.default)({restore:""},C.subres),C.versionId&&(C.subres.versionId=C.versionId),m=this._objectRequestParams("POST",E,C),m.successStatuses=[202],D.next=7,f.default.awrap(this.request(m));case 7:return T=D.sent,D.abrupt("return",{res:T.res});case 9:case"end":return D.stop()}},null,this)},P.signatureUrl=function(E,C){C=C||{},E=this._objectName(E),C.method=C.method||"GET";var m=d.timestamp()+(C.expires||1800),T={bucket:this.options.bucket,object:E},I=this._getResource(T);this.options.stsToken&&(C["security-token"]=this.options.stsToken);var D=l._signatureForURL(this.options.accessKeySecret,C,I,m),N=t.parse(this._getReqUrl(T));return N.query={OSSAccessKeyId:this.options.accessKeyId,Expires:m,Signature:D.Signature},a(D.subResource).to(N.query),N.format()},P.getObjectUrl=function(E,C){return C?C[C.length-1]!=="/"&&(C+="/"):C=this.options.endpoint.format(),C+this._escape(this._objectName(E))},P._objectUrl=function(E){return this._getReqUrl({bucket:this.options.bucket,object:E})},P.generateObjectUrl=function(R,E){if(E)E[E.length-1]!=="/"&&(E+="/");else{E=this.options.endpoint.format();var C=t.parse(E),m=this.options.bucket;C.hostname=m+"."+C.hostname,C.host=m+"."+C.host,E=C.format()}return E+this._escape(this._objectName(R))},P._objectRequestParams=function(E,C,m){if(!this.options.bucket)throw new Error("Please create a bucket first");m=m||{},C=this._objectName(C);var T={object:C,bucket:this.options.bucket,method:E,subres:m&&m.subres,timeout:m&&m.timeout,ctx:m&&m.ctx};return m.headers&&(T.headers={},a(m.headers).to(T.headers)),T},P._objectName=function(E){return E.replace(/^\/+/,"")},P._convertMetaToHeaders=function(E,C){if(!E)return;(0,b.default)(E).forEach(function(m){C["x-oss-meta-"+m]=E[m]})},P._deleteFileSafe=function(E){var C=this;return new g.default(function(m){r.exists(E,function(T){T?r.unlink(E,function(I){I&&C.debug("unlink %j error: %s",E,I,"error"),m()}):m()})})}},{"../common/callback":14,"../common/image":16,"../common/object/copyObject":19,"../common/object/delete":20,"../common/object/deleteMulti":21,"../common/object/deleteObjectTagging":22,"../common/object/get":23,"../common/object/getACL":24,"../common/object/getBucketVersions":25,"../common/object/getObjectMeta":26,"../common/object/getObjectTagging":27,"../common/object/getSymlink":28,"../common/object/head":29,"../common/object/putACL":30,"../common/object/putObjectTagging":31,"../common/object/putSymlink":32,"../common/signUtils":34,"../common/utils/isBlob":43,"../common/utils/isFile":44,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,"copy-to":76,fs:71,"is-type-of":289,"merge-descriptors":200,mime:202,path:205,url:238,utility:290}],5:[function(M,Y,o){"use strict";o.version="6.10.0"},{}],6:[function(M,Y,o){"use strict";var L=M("babel-runtime/regenerator"),g=A(L);function A(w){return w&&w.__esModule?w:{default:w}}var b=M("../utils/checkBucketName"),y=b.checkBucketName,x=o;x.deleteBucketLifecycle=function(f,_){var d,r;return g.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return y(f),d=this._bucketRequestParams("DELETE",f,"lifecycle",_),d.successStatuses=[204],t.next=5,g.default.awrap(this.request(d));case 5:return r=t.sent,t.abrupt("return",{res:r.res});case 7:case"end":return t.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],7:[function(M,Y,o){"use strict";var L=M("babel-runtime/regenerator"),g=A(L);function A(w){return w&&w.__esModule?w:{default:w}}var b=M("../utils/checkBucketName"),y=b.checkBucketName,x=o;x.deleteBucketWebsite=function(f,_){var d,r;return g.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return y(f),d=this._bucketRequestParams("DELETE",f,"website",_),d.successStatuses=[204],t.next=5,g.default.awrap(this.request(d));case 5:return r=t.sent,t.abrupt("return",{res:r.res});case 7:case"end":return t.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],8:[function(M,Y,o){"use strict";var L=M("babel-runtime/regenerator"),g=A(L);function A(r){return r&&r.__esModule?r:{default:r}}var b=M("../utils/checkBucketName"),y=b.checkBucketName,x=M("../utils/isArray"),w=x.isArray,f=M("../utils/formatObjKey"),_=f.formatObjKey,d=o;d.getBucketLifecycle=function(u,t){var a,n,i;return g.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return y(u),a=this._bucketRequestParams("GET",u,"lifecycle",t),a.successStatuses=[200],a.xmlResponse=!0,l.next=6,g.default.awrap(this.request(a));case 6:return n=l.sent,i=n.data.Rule||null,i&&(w(i)||(i=[i]),i=i.map(function(s){return s.ID&&(s.id=s.ID,delete s.ID),s.Tag&&!w(s.Tag)&&(s.Tag=[s.Tag]),_(s,"firstLowerCase")})),l.abrupt("return",{rules:i,res:n.res});case 10:case"end":return l.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/formatObjKey":40,"../utils/isArray":42,"babel-runtime/regenerator":68}],9:[function(M,Y,o){"use strict";var L=M("babel-runtime/regenerator"),g=A(L);function A(w){return w&&w.__esModule?w:{default:w}}var b=M("../utils/checkBucketName"),y=b.checkBucketName,x=o;x.getBucketVersioning=function(f,_){var d,r,u;return g.default.async(function(a){for(;;)switch(a.prev=a.next){case 0:return y(f),d=this._bucketRequestParams("GET",f,"versioning",_),d.xmlResponse=!0,d.successStatuses=[200],a.next=6,g.default.awrap(this.request(d));case 6:return r=a.sent,u=r.data.Status,a.abrupt("return",{status:r.status,versionStatus:u,res:r.res});case 9:case"end":return a.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],10:[function(M,Y,o){"use strict";var L=M("babel-runtime/regenerator"),g=A(L);function A(_){return _&&_.__esModule?_:{default:_}}var b=M("../utils/checkBucketName"),y=b.checkBucketName,x=M("../utils/isObject"),w=x.isObject,f=o;f.getBucketWebsite=function(d,r){var u,t,a;return g.default.async(function(i){for(;;)switch(i.prev=i.next){case 0:return y(d),u=this._bucketRequestParams("GET",d,"website",r),u.successStatuses=[200],u.xmlResponse=!0,i.next=6,g.default.awrap(this.request(u));case 6:return t=i.sent,a=[],t.data.RoutingRules&&t.data.RoutingRules.RoutingRule&&(w(t.data.RoutingRules.RoutingRule)?a=[t.data.RoutingRules.RoutingRule]:a=t.data.RoutingRules.RoutingRule),i.abrupt("return",{index:t.data.IndexDocument&&t.data.IndexDocument.Suffix||"",supportSubDir:t.data.IndexDocument&&t.data.IndexDocument.SupportSubDir||"false",type:t.data.IndexDocument&&t.data.IndexDocument.Type,routingRules:a,error:t.data.ErrorDocument&&t.data.ErrorDocument.Key||null,res:t.res});case 10:case"end":return i.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isObject":46,"babel-runtime/regenerator":68}],11:[function(M,Y,o){"use strict";var L=M("babel-runtime/regenerator"),g=A(L);function A(v){return v&&v.__esModule?v:{default:v}}var b=M("../utils/checkBucketName"),y=b.checkBucketName,x=M("../utils/isArray"),w=x.isArray,f=M("../utils/deepCopy"),_=f.deepCopy,d=M("../utils/isObject"),r=d.isObject,u=M("../utils/obj2xml"),t=u.obj2xml,a=M("../utils/checkObjectTag"),n=a.checkObjectTag,i=M("../utils/getStrBytesCount"),h=i.getStrBytesCount,l=o;l.putBucketLifecycle=function(P,R,E){var C,m,T,I,D;return g.default.async(function(z){for(;;)switch(z.prev=z.next){case 0:if(y(P),w(R)){z.next=3;break}throw new Error("rules must be Array");case 3:return C=this._bucketRequestParams("PUT",P,"lifecycle",E),m=[],T={LifecycleConfiguration:{Rule:m}},R.forEach(function(F){s(F),S(F),F.id&&(F.ID=F.id,delete F.id),m.push(F)}),I=t(T,{headers:!0,firstUpperCase:!0}),C.content=I,C.mime="xml",C.successStatuses=[200],z.next=13,g.default.awrap(this.request(C));case 13:return D=z.sent,z.abrupt("return",{res:D.res});case 15:case"end":return z.stop()}},null,this)};function s(v){v.days&&(v.expiration={days:v.days}),v.date&&(v.expiration={createdBeforeDate:v.date})}function p(v,P){var R=v.days,E=v.createdBeforeDate;if(!R&&!E)throw new Error(P+" must includes days or createdBeforeDate");if(R&&!/^[1-9][0-9]*$/.test(R))throw new Error("days must be a positive integer");if(E&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(E))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function O(v){if(!w(v)&&!r(v))throw new Error("tag must be Object or Array");v=r(v)?[v]:v;var P={},R=_(v);R.forEach(function(E){P[E.key]=E.value}),n(P)}function S(v){if(v.id&&h(v.id)>255)throw new Error("ID is composed of 255 bytes at most");if(v.prefix===""||v.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(v.status))throw new Error("Status must be Enabled or Disabled");if(v.transition){if(!["IA","Archive"].includes(v.transition.storageClass))throw new Error("StorageClass must be IA or Archive");p(v.transition,"Transition")}if(v.expiration){if(!v.expiration.expiredObjectDeleteMarker)p(v.expiration,"Expiration");else if(v.expiration.days||v.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(v.abortMultipartUpload&&p(v.abortMultipartUpload,"AbortMultipartUpload"),!v.expiration&&!v.abortMultipartUpload&&!v.transition&&!v.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(v.tag){if(v.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");O(v.tag)}}},{"../utils/checkBucketName":35,"../utils/checkObjectTag":36,"../utils/deepCopy":39,"../utils/getStrBytesCount":41,"../utils/isArray":42,"../utils/isObject":46,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],12:[function(M,Y,o){"use strict";var L=M("babel-runtime/regenerator"),g=A(L);function A(_){return _&&_.__esModule?_:{default:_}}var b=M("../utils/checkBucketName"),y=b.checkBucketName,x=M("../utils/obj2xml"),w=x.obj2xml,f=o;f.putBucketVersioning=function(d,r){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},t,a,n;return g.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:if(y(d),["Enabled","Suspended"].includes(r)){h.next=3;break}throw new Error("status must be Enabled or Suspended");case 3:return t=this._bucketRequestParams("PUT",d,"versioning",u),a={VersioningConfiguration:{Status:r}},t.mime="xml",t.content=w(a,{headers:!0}),h.next=9,g.default.awrap(this.request(t));case 9:return n=h.sent,h.abrupt("return",{res:n.res,status:n.status});case 11:case"end":return h.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],13:[function(M,Y,o){"use strict";var L=M("babel-runtime/regenerator"),g=A(L);function A(r){return r&&r.__esModule?r:{default:r}}var b=M("../utils/checkBucketName"),y=b.checkBucketName,x=M("../utils/obj2xml"),w=x.obj2xml,f=M("../utils/isArray"),_=f.isArray,d=o;d.putBucketWebsite=function(u){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments[2],n,i,h,l,s;return g.default.async(function(O){for(;;)switch(O.prev=O.next){case 0:if(y(u),n=this._bucketRequestParams("PUT",u,"website",a),i={Suffix:t.index||"index.html"},h={IndexDocument:i},l={WebsiteConfiguration:h},t.supportSubDir&&(i.SupportSubDir=t.supportSubDir),t.type&&(i.Type=t.type),t.error&&(h.ErrorDocument={Key:t.error}),!(t.routingRules!==void 0)){O.next=12;break}if(_(t.routingRules)){O.next=11;break}throw new Error("RoutingRules must be Array");case 11:h.RoutingRules={RoutingRule:t.routingRules};case 12:return l=w(l),n.content=l,n.mime="xml",n.successStatuses=[200],O.next=18,g.default.awrap(this.request(n));case 18:return s=O.sent,O.abrupt("return",{res:s.res});case 20:case"end":return O.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isArray":42,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],14:[function(M,Y,o){(function(L){"use strict";var g=M("babel-runtime/core-js/object/keys"),A=x(g),b=M("babel-runtime/core-js/json/stringify"),y=x(b);function x(w){return w&&w.__esModule?w:{default:w}}o.encodeCallback=function(f,_){if(f.headers=f.headers||{},!Object.prototype.hasOwnProperty.call(f.headers,"x-oss-callback")&&_.callback){var d={callbackUrl:encodeURI(_.callback.url),callbackBody:_.callback.body};_.callback.host&&(d.callbackHost=_.callback.host),_.callback.contentType&&(d.callbackBodyType=_.callback.contentType);var r=L.from((0,y.default)(d)).toString("base64");if(f.headers["x-oss-callback"]=r,_.callback.customValue){var u={};(0,A.default)(_.callback.customValue).forEach(function(t){u["x:"+t]=_.callback.customValue[t]}),f.headers["x-oss-callback-var"]=L.from((0,y.default)(u)).toString("base64")}}}}).call(this,M("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73}],15:[function(M,Y,o){"use strict";var L=M("babel-runtime/core-js/object/assign"),g=A(L);function A(d){return d&&d.__esModule?d:{default:d}}var b=M("humanize-ms"),y=M("url"),x=M("../utils/checkBucketName"),w=x.checkBucketName;function f(d,r){var u=y.parse(d);if(u.protocol||(u=y.parse("http"+(r?"s":"")+"://"+d)),u.protocol!=="http:"&&u.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return u}function _(d,r,u){var t=u?"https://":"http://",a=r?"-internal.aliyuncs.com":".aliyuncs.com",n="vpc100-oss-cn-";return d.substr(0,n.length)===n&&(a=".aliyuncs.com"),y.parse(t+d+a)}Y.exports=function(d){if(!d||!d.accessKeyId||!d.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");d.bucket&&w(d.bucket);var r=(0,g.default)({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1},d);if(r.accessKeyId=r.accessKeyId.trim(),r.accessKeySecret=r.accessKeySecret.trim(),r.timeout&&(r.timeout=b(r.timeout)),r.endpoint)r.endpoint=f(r.endpoint,r.secure);else if(r.region)r.endpoint=_(r.region,r.internal,r.secure);else throw new Error("require options.endpoint or options.region");return r.inited=!0,r}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/assign":54,"humanize-ms":194,url:238}],16:[function(M,Y,o){"use strict";var L=M("merge-descriptors"),g=o;L(g,M("./processObjectSave"))},{"./processObjectSave":17,"merge-descriptors":200}],17:[function(M,Y,o){"use strict";var L=M("babel-runtime/regenerator"),g=A(L);function A(r){return r&&r.__esModule?r:{default:r}}var b=M("../utils/checkBucketName"),y=b.checkBucketName,x=M("querystring"),w=M("js-base64"),f=w.Base64.encode,_=o;_.processObjectSave=function(u,t,a,n){var i,h,l,s;return g.default.async(function(O){for(;;)switch(O.prev=O.next){case 0:return d(u,"sourceObject"),d(t,"targetObject"),d(a,"process"),t=this._objectName(t),n&&y(n),i=this._objectRequestParams("POST",u,{subres:"x-oss-process"}),h=n?",b_"+f(n):"",t=f(t),l={"x-oss-process":a+"|sys/saveas,o_"+t+h},i.content=x.stringify(l),O.next=12,g.default.awrap(this.request(i));case 12:return s=O.sent,O.abrupt("return",{res:s.res,status:s.res.status});case 14:case"end":return O.stop()}},null,this)};function d(r,u){if(!r)throw new Error(u+" is required");if(typeof r!="string")throw new Error(u+" must be String")}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68,"js-base64":199,querystring:212}],18:[function(M,Y,o){"use strict";var L=M("babel-runtime/regenerator"),g=A(L);function A(_){return _&&_.__esModule?_:{default:_}}var b=M("copy-to"),y=M("./callback"),x=M("./utils/deepCopy"),w=x.deepCopy,f=o;f.listUploads=function(d,r){var u,t,a,n;return g.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return r=r||{},u={},b(r).to(u),u.subres="uploads",t=this._objectRequestParams("GET","",u),t.query=d,t.xmlResponse=!0,t.successStatuses=[200],h.next=10,g.default.awrap(this.request(t));case 10:return a=h.sent,n=a.data.Upload||[],Array.isArray(n)||(n=[n]),n=n.map(function(l){return{name:l.Key,uploadId:l.UploadId,initiated:l.Initiated}}),h.abrupt("return",{res:a.res,uploads:n,bucket:a.data.Bucket,nextKeyMarker:a.data.NextKeyMarker,nextUploadIdMarker:a.data.NextUploadIdMarker,isTruncated:a.data.IsTruncated==="true"});case 15:case"end":return h.stop()}},null,this)},f.listParts=function(d,r,u,t){var a,n,i;return g.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return t=t||{},a={},b(t).to(a),a.subres={uploadId:r},n=this._objectRequestParams("GET",d,a),n.query=u,n.xmlResponse=!0,n.successStatuses=[200],l.next=10,g.default.awrap(this.request(n));case 10:return i=l.sent,l.abrupt("return",{res:i.res,uploadId:i.data.UploadId,bucket:i.data.Bucket,name:i.data.Key,partNumberMarker:i.data.PartNumberMarker,nextPartNumberMarker:i.data.NextPartNumberMarker,maxParts:i.data.MaxParts,isTruncated:i.data.IsTruncated,parts:i.data.Part||[]});case 12:case"end":return l.stop()}},null,this)},f.abortMultipartUpload=function(d,r,u){var t,a,n;return g.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return this._stop(),u=u||{},t={},b(u).to(t),t.subres={uploadId:r},a=this._objectRequestParams("DELETE",d,t),a.successStatuses=[204],h.next=9,g.default.awrap(this.request(a));case 9:return n=h.sent,h.abrupt("return",{res:n.res});case 11:case"end":return h.stop()}},null,this)},f.initMultipartUpload=function(d,r){var u,t,a;return g.default.async(function(i){for(;;)switch(i.prev=i.next){case 0:return r=r||{},u={},b(r).to(u),u.headers=u.headers||{},this._convertMetaToHeaders(r.meta,u.headers),u.subres="uploads",t=this._objectRequestParams("POST",d,u),t.mime=r.mime,t.xmlResponse=!0,t.successStatuses=[200],i.next=12,g.default.awrap(this.request(t));case 12:return a=i.sent,i.abrupt("return",{res:a.res,bucket:a.data.Bucket,name:a.data.Key,uploadId:a.data.UploadId});case 14:case"end":return i.stop()}},null,this)},f.uploadPart=function(d,r,u,t,a,n,i){var h;return g.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return h={stream:this._createStream(t,a,n),size:n-a},s.next=3,g.default.awrap(this._uploadPart(d,r,u,h,i));case 3:return s.abrupt("return",s.sent);case 4:case"end":return s.stop()}},null,this)},f.completeMultipartUpload=function(d,r,u,t){var a,n,i,h,l,s,p,O;return g.default.async(function(v){for(;;)switch(v.prev=v.next){case 0:for(a=u.concat().sort(function(P,R){return P.number-R.number}).filter(function(P,R,E){return!R||P.number!==E[R-1].number}),n=`<?xml version="1.0" encoding="UTF-8"?>
<CompleteMultipartUpload>
`,i=0;i<a.length;i++)h=a[i],n+=`<Part>
`,n+="<PartNumber>"+h.number+`</PartNumber>
`,n+="<ETag>"+h.etag+`</ETag>
`,n+=`</Part>
`;return n+="</CompleteMultipartUpload>",t=t||{},l={},l=w(t),l.headers&&delete l.headers["x-oss-server-side-encryption"],l.subres={uploadId:r},s=this._objectRequestParams("POST",d,l),y.encodeCallback(s,l),s.mime="xml",s.content=n,s.headers&&s.headers["x-oss-callback"]||(s.xmlResponse=!0),s.successStatuses=[200],v.next=17,g.default.awrap(this.request(s));case 17:return p=v.sent,O={res:p.res,bucket:s.bucket,name:d,etag:p.res.headers.etag},s.headers&&s.headers["x-oss-callback"]&&(O.data=JSON.parse(p.data.toString())),v.abrupt("return",O);case 21:case"end":return v.stop()}},null,this)},f._uploadPart=function(d,r,u,t,a){var n,i,h;return g.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return a=a||{},n={},b(a).to(n),n.headers={"Content-Length":t.size},n.subres={partNumber:u,uploadId:r},i=this._objectRequestParams("PUT",d,n),i.mime=n.mime,i.stream=t.stream,i.successStatuses=[200],s.next=11,g.default.awrap(this.request(i));case 11:if(h=s.sent,h.res.headers.etag){s.next=14;break}throw new Error(`Please set the etag of expose-headers in OSS
https://help.aliyun.com/document_detail/32069.html`);case 14:return t.stream=null,i.stream=null,s.abrupt("return",{name:d,etag:h.res.headers.etag,res:h.res});case 17:case"end":return s.stop()}},null,this)}},{"./callback":14,"./utils/deepCopy":39,"babel-runtime/regenerator":68,"copy-to":76}],19:[function(M,Y,o){"use strict";var L=M("babel-runtime/regenerator"),g=w(L),A=M("babel-runtime/core-js/object/keys"),b=w(A),y=M("babel-runtime/helpers/typeof"),x=w(y);function w(r){return r&&r.__esModule?r:{default:r}}var f=M("../utils/checkBucketName"),_=f.checkBucketName,d=o;d.copy=function(u,t,a,n){var i,h,l;return g.default.async(function(p){for(;;)switch(p.prev=p.next){case 0:return(typeof a=="undefined"?"undefined":(0,x.default)(a))==="object"&&(n=a),n=n||{},n.headers=n.headers||{},(0,b.default)(n.headers).forEach(function(O){n.headers["x-oss-copy-source-"+O.toLowerCase()]=n.headers[O]}),n.meta&&(n.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(n.meta,n.headers),t=this._getSourceName(t,a),n.versionId&&(t=t+"?versionId="+n.versionId),n.headers["x-oss-copy-source"]=t,i=this._objectRequestParams("PUT",u,n),i.xmlResponse=!0,i.successStatuses=[200,304],p.next=14,g.default.awrap(this.request(i));case 14:return h=p.sent,l=h.data,l&&(l={etag:l.ETag,lastModified:l.LastModified}),p.abrupt("return",{data:l,res:h.res});case 18:case"end":return p.stop()}},null,this)},d._getSourceName=function(u,t){return typeof t=="string"?u=this._objectName(u):u[0]!=="/"?t=this.options.bucket:(t=u.replace(/\/(.+?)(\/.*)/,"$1"),u=u.replace(/(\/.+?\/)(.*)/,"$2")),_(t),u=encodeURI(u),u="/"+t+"/"+u,u}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,"babel-runtime/regenerator":68}],20:[function(M,Y,o){"use strict";var L=M("babel-runtime/regenerator"),g=y(L),A=M("babel-runtime/core-js/object/assign"),b=y(A);function y(w){return w&&w.__esModule?w:{default:w}}var x=o;x.delete=function(f){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d,r;return g.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return _.subres=(0,b.default)({},_.subres),_.versionId&&(_.subres.versionId=_.versionId),d=this._objectRequestParams("DELETE",f,_),d.successStatuses=[204],t.next=6,g.default.awrap(this.request(d));case 6:return r=t.sent,t.abrupt("return",{res:r.res});case 8:case"end":return t.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],21:[function(M,Y,o){"use strict";var L=M("babel-runtime/regenerator"),g=y(L),A=M("babel-runtime/core-js/object/assign"),b=y(A);function y(d){return d&&d.__esModule?d:{default:d}}var x=M("utility"),w=M("../utils/obj2xml"),f=w.obj2xml,_=o;_.deleteMulti=function(r){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t,a,n,i,h,l,s,p,O,S,v,P;return g.default.async(function(E){for(;;)switch(E.prev=E.next){case 0:if(t=[],!(!r||!r.length)){E.next=3;break}throw new Error("names is required");case 3:for(a=0;a<r.length;a++)n={},typeof r[a]=="string"?n.Key=x.escape(this._objectName(r[a])):(i=r[a],h=i.key,l=i.versionId,n.Key=x.escape(this._objectName(h)),n.VersionId=l),t.push(n);return s={Delete:{Quiet:!!u.quiet,Object:t}},p=f(s,{headers:!0}),u.subres=(0,b.default)({delete:""},u.subres),u.versionId&&(u.subres.versionId=u.versionId),O=this._objectRequestParams("POST","",u),O.mime="xml",O.content=p,O.xmlResponse=!0,O.successStatuses=[200],E.next=15,g.default.awrap(this.request(O));case 15:return S=E.sent,v=S.data,P=v&&v.Deleted||null,P&&(Array.isArray(P)||(P=[P])),E.abrupt("return",{res:S.res,deleted:P||[]});case 20:case"end":return E.stop()}},null,this)}},{"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,utility:290}],22:[function(M,Y,o){"use strict";var L=M("babel-runtime/regenerator"),g=y(L),A=M("babel-runtime/core-js/object/assign"),b=y(A);function y(w){return w&&w.__esModule?w:{default:w}}var x=o;x.deleteObjectTagging=function(f){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d,r;return g.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return _.subres=(0,b.default)({tagging:""},_.subres),_.versionId&&(_.subres.versionId=_.versionId),f=this._objectName(f),d=this._objectRequestParams("DELETE",f,_),d.successStatuses=[204],t.next=7,g.default.awrap(this.request(d));case 7:return r=t.sent,t.abrupt("return",{status:r.status,res:r.res});case 9:case"end":return t.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],23:[function(M,Y,o){"use strict";var L=M("babel-runtime/regenerator"),g=y(L),A=M("babel-runtime/core-js/object/assign"),b=y(A);function y(_){return _&&_.__esModule?_:{default:_}}var x=M("fs"),w=M("is-type-of"),f=o;f.get=function(d,r){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},t,a,n,i;return g.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return t=null,a=!1,w.writableStream(r)?t=r:w.string(r)?(t=x.createWriteStream(r),a=!0):u=r,u=u||{},u.subres=(0,b.default)({},u.subres),u.versionId&&(u.subres.versionId=u.versionId),u.process&&(u.subres["x-oss-process"]=u.process),n=void 0,l.prev=8,i=this._objectRequestParams("GET",d,u),i.writeStream=t,i.successStatuses=[200,206,304],l.next=14,g.default.awrap(this.request(i));case 14:n=l.sent,a&&t.destroy(),l.next=25;break;case 18:if(l.prev=18,l.t0=l.catch(8),!a){l.next=24;break}return t.destroy(),l.next=24,g.default.awrap(this._deleteFileSafe(r));case 24:throw l.t0;case 25:return l.abrupt("return",{res:n.res,content:n.data});case 26:case"end":return l.stop()}},null,this,[[8,18]])}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,fs:71,"is-type-of":289}],24:[function(M,Y,o){"use strict";var L=M("babel-runtime/regenerator"),g=y(L),A=M("babel-runtime/core-js/object/assign"),b=y(A);function y(w){return w&&w.__esModule?w:{default:w}}var x=o;x.getACL=function(f){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d,r;return g.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return _.subres=(0,b.default)({acl:""},_.subres),_.versionId&&(_.subres.versionId=_.versionId),f=this._objectName(f),d=this._objectRequestParams("GET",f,_),d.successStatuses=[200],d.xmlResponse=!0,t.next=8,g.default.awrap(this.request(d));case 8:return r=t.sent,t.abrupt("return",{acl:r.data.AccessControlList.Grant,owner:{id:r.data.Owner.ID,displayName:r.data.Owner.DisplayName},res:r.res});case 10:case"end":return t.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],25:[function(M,Y,o){"use strict";var L=M("babel-runtime/core-js/object/keys"),g=w(L),A=M("babel-runtime/regenerator"),b=w(A),y=M("babel-runtime/core-js/object/assign"),x=w(y);function w(i){return i&&i.__esModule?i:{default:i}}var f=o,_=M("../utils/isObject"),d=_.isObject,r=M("../utils/isArray"),u=r.isArray;f.getBucketVersions=t,f.listObjectVersions=t;function t(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l,s,p,O,S,v;return b.default.async(function(R){for(;;)switch(R.prev=R.next){case 0:if(!(i.versionIdMarker&&i.keyMarker===void 0)){R.next=2;break}throw new Error("A version-id marker cannot be specified without a key marker");case 2:return h.subres=(0,x.default)({versions:""},h.subres),h.versionId&&(h.subres.versionId=h.versionId),l=this._objectRequestParams("GET","",h),l.xmlResponse=!0,l.successStatuses=[200],l.query=n(i),R.next=10,b.default.awrap(this.request(l));case 10:return s=R.sent,p=s.data.Version||[],O=s.data.DeleteMarker||[],S=this,p&&(Array.isArray(p)||(p=[p]),p=p.map(function(E){return{name:E.Key,url:S._objectUrl(E.Key),lastModified:E.LastModified,isLatest:E.IsLatest==="true",versionId:E.VersionId,etag:E.ETag,type:E.Type,size:Number(E.Size),storageClass:E.StorageClass,owner:{id:E.Owner.ID,displayName:E.Owner.DisplayName}}})),O&&(u(O)||(O=[O]),O=O.map(function(E){return{name:E.Key,lastModified:E.LastModified,versionId:E.VersionId,owner:{id:E.Owner.ID,displayName:E.Owner.DisplayName}}})),v=s.data.CommonPrefixes||null,v&&(u(v)||(v=[v]),v=v.map(function(E){return E.Prefix})),R.abrupt("return",{res:s.res,objects:p,deleteMarker:O,prefixes:v,nextMarker:s.data.NextMarker||null,NextVersionIdMarker:s.data.NextVersionIdMarker||null,isTruncated:s.data.IsTruncated==="true"});case 19:case"end":return R.stop()}},null,this)}function a(i){return i.replace(/([A-Z])/g,"-$1").toLowerCase()}function n(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h={};return d(i)&&(0,g.default)(i).forEach(function(l){h[a(l)]=i[l]}),h}},{"../utils/isArray":42,"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],26:[function(M,Y,o){"use strict";var L=M("babel-runtime/regenerator"),g=y(L),A=M("babel-runtime/core-js/object/assign"),b=y(A);function y(w){return w&&w.__esModule?w:{default:w}}var x=o;x.getObjectMeta=function(f,_){var d,r;return g.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return _=_||{},f=this._objectName(f),_.subres=(0,b.default)({objectMeta:""},_.subres),_.versionId&&(_.subres.versionId=_.versionId),d=this._objectRequestParams("HEAD",f,_),d.successStatuses=[200],t.next=8,g.default.awrap(this.request(d));case 8:return r=t.sent,t.abrupt("return",{status:r.status,res:r.res});case 10:case"end":return t.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],27:[function(M,Y,o){"use strict";var L=M("babel-runtime/regenerator"),g=y(L),A=M("babel-runtime/core-js/object/assign"),b=y(A);function y(_){return _&&_.__esModule?_:{default:_}}var x=o,w=M("../utils/isObject"),f=w.isObject;x.getObjectTagging=function(d){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u,t,a,n,i;return g.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return r.subres=(0,b.default)({tagging:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),d=this._objectName(d),u=this._objectRequestParams("GET",d,r),u.successStatuses=[200],l.next=7,g.default.awrap(this.request(u));case 7:return t=l.sent,l.next=10,g.default.awrap(this.parseXML(t.data));case 10:return a=l.sent,n=a.TagSet.Tag,n=n&&f(n)?[n]:n||[],i={},n.forEach(function(s){i[s.Key]=s.Value}),l.abrupt("return",{status:t.status,res:t.res,tag:i});case 16:case"end":return l.stop()}},null,this)}},{"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],28:[function(M,Y,o){"use strict";var L=M("babel-runtime/regenerator"),g=y(L),A=M("babel-runtime/core-js/object/assign"),b=y(A);function y(w){return w&&w.__esModule?w:{default:w}}var x=o;x.getSymlink=function(f){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d,r,u;return g.default.async(function(a){for(;;)switch(a.prev=a.next){case 0:return _.subres=(0,b.default)({symlink:""},_.subres),_.versionId&&(_.subres.versionId=_.versionId),f=this._objectName(f),d=this._objectRequestParams("GET",f,_),d.successStatuses=[200],a.next=7,g.default.awrap(this.request(d));case 7:return r=a.sent,u=r.res.headers["x-oss-symlink-target"],a.abrupt("return",{targetName:decodeURIComponent(u),res:r.res});case 10:case"end":return a.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],29:[function(M,Y,o){"use strict";var L=M("babel-runtime/regenerator"),g=w(L),A=M("babel-runtime/core-js/object/keys"),b=w(A),y=M("babel-runtime/core-js/object/assign"),x=w(y);function w(_){return _&&_.__esModule?_:{default:_}}var f=o;f.head=function(d){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u,t,a;return g.default.async(function(i){for(;;)switch(i.prev=i.next){case 0:return r.subres=(0,x.default)({},r.subres),r.versionId&&(r.subres.versionId=r.versionId),u=this._objectRequestParams("HEAD",d,r),u.successStatuses=[200,304],i.next=6,g.default.awrap(this.request(u));case 6:return t=i.sent,a={meta:null,res:t.res,status:t.status},t.status===200&&(0,b.default)(t.headers).forEach(function(h){h.indexOf("x-oss-meta-")===0&&(a.meta||(a.meta={}),a.meta[h.substring(11)]=t.headers[h])}),i.abrupt("return",a);case 10:case"end":return i.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],30:[function(M,Y,o){"use strict";var L=M("babel-runtime/regenerator"),g=y(L),A=M("babel-runtime/core-js/object/assign"),b=y(A);function y(w){return w&&w.__esModule?w:{default:w}}var x=o;x.putACL=function(f,_,d){var r,u;return g.default.async(function(a){for(;;)switch(a.prev=a.next){case 0:return d=d||{},d.subres=(0,b.default)({acl:""},d.subres),d.versionId&&(d.subres.versionId=d.versionId),d.headers=d.headers||{},d.headers["x-oss-object-acl"]=_,f=this._objectName(f),r=this._objectRequestParams("PUT",f,d),r.successStatuses=[200],a.next=10,g.default.awrap(this.request(r));case 10:return u=a.sent,a.abrupt("return",{res:u.res});case 12:case"end":return a.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],31:[function(M,Y,o){"use strict";var L=M("babel-runtime/regenerator"),g=w(L),A=M("babel-runtime/core-js/object/keys"),b=w(A),y=M("babel-runtime/core-js/object/assign"),x=w(y);function w(t){return t&&t.__esModule?t:{default:t}}var f=M("../utils/obj2xml"),_=f.obj2xml,d=M("../utils/checkObjectTag"),r=d.checkObjectTag,u=o;u.putObjectTagging=function(a,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},h,l,s;return g.default.async(function(O){for(;;)switch(O.prev=O.next){case 0:return r(n),i.subres=(0,x.default)({tagging:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),a=this._objectName(a),h=this._objectRequestParams("PUT",a,i),h.successStatuses=[200],n=(0,b.default)(n).map(function(S){return{Key:S,Value:n[S]}}),l={Tagging:{TagSet:{Tag:n}}},h.mime="xml",h.content=_(l),O.next=12,g.default.awrap(this.request(h));case 12:return s=O.sent,O.abrupt("return",{res:s.res,status:s.status});case 14:case"end":return O.stop()}},null,this)}},{"../utils/checkObjectTag":36,"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],32:[function(M,Y,o){"use strict";var L=M("babel-runtime/regenerator"),g=y(L),A=M("babel-runtime/core-js/object/assign"),b=y(A);function y(w){return w&&w.__esModule?w:{default:w}}var x=o;x.putSymlink=function(f,_,d){var r,u;return g.default.async(function(a){for(;;)switch(a.prev=a.next){case 0:return d=d||{},d.headers=d.headers||{},_=this._escape(this._objectName(_)),this._convertMetaToHeaders(d.meta,d.headers),d.headers["x-oss-symlink-target"]=_,d.subres=(0,b.default)({symlink:""},d.subres),d.versionId&&(d.subres.versionId=d.versionId),d.storageClass&&(d.headers["x-oss-storage-class"]=d.storageClass),f=this._objectName(f),r=this._objectRequestParams("PUT",f,d),r.successStatuses=[200],a.next=13,g.default.awrap(this.request(r));case 13:return u=a.sent,a.abrupt("return",{res:u.res});case 15:case"end":return a.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],33:[function(M,Y,o){"use strict";var L=M("babel-runtime/regenerator"),g=y(L),A=M("babel-runtime/core-js/promise"),b=y(A);function y(w){return w&&w.__esModule?w:{default:w}}var x=o;x._parallelNode=function(f,_,d,r){var u,t,a,n,i,h,l,s;return g.default.async(function(O){for(;;)switch(O.prev=O.next){case 0:u=this,t=[],a=[],n=f.length/_,i=f.length%_,h=i===0?n:(f.length-i)/_+1,l=1,s=0;case 8:if(!(s<f.length)){O.next=26;break}if(!u.isCancel()){O.next=11;break}return O.abrupt("break",26);case 11:if(r?a.push(d(u,f[s],r)):a.push(d(u,f[s])),!(a.length===_||l===h&&s===f.length-1)){O.next=23;break}return O.prev=13,l+=1,O.next=17,g.default.awrap(b.default.all(a));case 17:O.next=22;break;case 19:O.prev=19,O.t0=O.catch(13),t.push(O.t0);case 22:a=[];case 23:s++,O.next=8;break;case 26:return O.abrupt("return",t);case 27:case"end":return O.stop()}},null,this,[[13,19]])},x._parallel=function(f,_,d){var r=this;return new b.default(function(u){var t=[];if(_<=0||!f){u(t);return}function a(v){return function(){if(v===null)throw new Error("Callback was already called.");var P=v;v=null;for(var R=arguments.length,E=Array(R),C=0;C<R;C++)E[C]=arguments[C];P.apply(this,E)}}function n(v){var P=-1,R=v.length;return function(){return++P<R&&!r.isCancel()?{value:v[P],key:P}:null}}var i=n(f),h=!1,l=0,s=!1;function p(v,P){l-=1,v?(h=!0,t.push(v),u(t)):P==={}||h&&l<=0?(h=!0,u(t)):s||(r.isCancel()?u(t):S())}function O(v,P){d(v).then(function(R){P(null,R)}).catch(function(R){P(R)})}function S(){for(s=!0;l<_&&!h&&!r.isCancel();){var v=i();if(v===null||t.length>0){h=!0,l<=0&&u(t);return}l+=1,O(v.value,a(p))}s=!1}S()})},x.cancel=function(f){this.options.cancelFlag=!0,f&&this.abortMultipartUpload(f.name,f.uploadId,f.options)},x.isCancel=function(){return this.options.cancelFlag},x.resetCancelFlag=function(){this.options.cancelFlag=!1},x._stop=function(){this.options.cancelFlag=!0},x._makeCancelEvent=function(){var f={status:0,name:"cancel"};return f}},{"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68}],34:[function(M,Y,o){(function(L){"use strict";var g=M("babel-runtime/core-js/json/stringify"),A=x(g),b=M("babel-runtime/core-js/object/keys"),y=x(b);function x(_){return _&&_.__esModule?_:{default:_}}var w=M("./../../shims/crypto/crypto.js"),f=M("is-type-of");o.buildCanonicalizedResource=function(d,r){var u=""+d,t="?";if(f.string(r)&&r.trim()!=="")u+=t+r;else if(f.array(r))r.sort(),u+=t+r.join("&");else if(r){var a=function(h,l){return h[0]>l[0]?1:h[0]<l[0]?-1:0},n=function(h){u+=t+h,r[h]&&(u+="="+r[h]),t="&"};(0,y.default)(r).sort(a).forEach(n)}return u},o.buildCanonicalString=function(d,r,u,t){u=u||{};var a=u.headers||{},n="x-oss-",i=[],h={},l=[d.toUpperCase(),a["Content-Md5"]||"",a["Content-Type"]||a["Content-Type".toLowerCase()],t||a["x-oss-date"]];return(0,y.default)(a).forEach(function(s){var p=s.toLowerCase();p.indexOf(n)===0&&(h[p]=String(a[s]).trim())}),(0,y.default)(h).sort().forEach(function(s){i.push(s+":"+h[s])}),l=l.concat(i),l.push(this.buildCanonicalizedResource(r,u.parameters)),l.join(`
`)},o.computeSignature=function(d,r){var u=w.createHmac("sha1",d);return u.update(L.from(r,"utf8")).digest("base64")},o.authorization=function(d,r,u){return"OSS "+d+":"+this.computeSignature(r,u)},o._signatureForURL=function(d){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=arguments[2],t=arguments[3],a={},n=r.subResource,i=n===void 0?{}:n;if(r.process){var h="x-oss-process";i[h]=r.process}if(r.trafficLimit){var l="x-oss-traffic-limit";i[l]=r.trafficLimit}if(r.response&&(0,y.default)(r.response).forEach(function(S){var v="response-"+S.toLowerCase();i[v]=r.response[S]}),(0,y.default)(r).forEach(function(S){var v=S.toLowerCase(),P=r[S];v.indexOf("x-oss-")===0?a[v]=P:(v.indexOf("content-md5")===0||v.indexOf("content-type")===0)&&(a[S]=P)}),Object.prototype.hasOwnProperty.call(r,"security-token")&&(i["security-token"]=r["security-token"]),Object.prototype.hasOwnProperty.call(r,"callback")){var s={callbackUrl:encodeURI(r.callback.url),callbackBody:r.callback.body};if(r.callback.host&&(s.callbackHost=r.callback.host),r.callback.contentType&&(s.callbackBodyType=r.callback.contentType),i.callback=L.from((0,A.default)(s)).toString("base64"),r.callback.customValue){var p={};(0,y.default)(r.callback.customValue).forEach(function(S){p["x:"+S]=r.callback.customValue[S]}),i["callback-var"]=L.from((0,A.default)(p)).toString("base64")}}var O=this.buildCanonicalString(r.method,u,{headers:a,parameters:i},t.toString());return{Signature:this.computeSignature(d,O),subResource:i}}}).call(this,M("buffer").Buffer)},{"./../../shims/crypto/crypto.js":284,"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73,"is-type-of":289}],35:[function(M,Y,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.checkBucketName=void 0,o.checkBucketName=function(L,g){var A=g?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!A.test(L))throw new Error("The bucket must be conform to the specifications")}},{}],36:[function(M,Y,o){"use strict";var L=M("babel-runtime/core-js/object/entries"),g=A(L);function A(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(o,"__esModule",{value:!0}),o.checkObjectTag=void 0;var b=M("./checkValid"),y=b.checkValid,x=M("./isObject"),w=x.isObject,f=[{validator:function(u){if(typeof u!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],_={key:[].concat(f,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(f,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function d(r){if(!w(r))throw new Error("tag must be Object");var u=(0,g.default)(r);if(u.length>10)throw new Error("maximum of 10 tags for a object");var t=["key","value"];u.forEach(function(a){a.forEach(function(n,i){y(n,_[t[i]])})})}o.checkObjectTag=d},{"./checkValid":37,"./isObject":46,"babel-runtime/core-js/object/entries":57}],37:[function(M,Y,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.checkValid=void 0;function L(g,A){A.forEach(function(b){if(b.validator)b.validator(g);else if(b.pattern&&!b.pattern.test(g))throw new Error(b.msg)})}o.checkValid=L},{}],38:[function(M,Y,o){(function(L){"use strict";var g=M("babel-runtime/core-js/object/assign"),A=b(g);function b(a){return a&&a.__esModule?a:{default:a}}Object.defineProperty(o,"__esModule",{value:!0}),o.createRequest=void 0;var y=M("./../../../shims/crypto/crypto.js"),x=M("debug")("ali-oss"),w=M("mime"),f=M("dateformat"),_=M("copy-to"),d=M("path");function r(a,n){return a[n]||a[n.toLowerCase()]}function u(a,n){delete a[n],delete a[n.toLowerCase()]}function t(a){var n=new Date;this.options.amendTimeSkewed&&(n=+new Date+this.options.amendTimeSkewed);var i={"x-oss-date":f(n,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.userAgent.includes("nodejs")&&(i["User-Agent"]=this.userAgent),this.options.isRequestPay&&(0,A.default)(i,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(i["x-oss-security-token"]=this.options.stsToken),_(a.headers).to(i),r(i,"Content-Type")||(a.mime&&a.mime.indexOf("/")>0?i["Content-Type"]=a.mime:i["Content-Type"]=w.getType(a.mime||d.extname(a.object||""))),r(i,"Content-Type")||u(i,"Content-Type"),a.content&&(i["Content-Md5"]=y.createHash("md5").update(L.from(a.content,"utf8")).digest("base64"),i["Content-Length"]||(i["Content-Length"]=a.content.length));var h=this._getResource(a);i.authorization=this.authorization(a.method,h,a.subres,i);var l=this._getReqUrl(a);x("request %s %s, with headers %j, !!stream: %s",a.method,l,i,!!a.stream);var s=a.timeout||this.options.timeout,p={method:a.method,content:a.content,stream:a.stream,headers:i,timeout:s,writeStream:a.writeStream,customResponse:a.customResponse,ctx:a.ctx||this.ctx};return this.agent&&(p.agent=this.agent),this.httpsAgent&&(p.httpsAgent=this.httpsAgent),{url:l,params:p}}o.createRequest=t}).call(this,M("buffer").Buffer)},{"./../../../shims/crypto/crypto.js":284,"babel-runtime/core-js/object/assign":54,buffer:73,"copy-to":76,dateformat:190,debug:288,mime:202,path:205}],39:[function(M,Y,o){"use strict";var L=M("babel-runtime/core-js/object/keys"),g=y(L),A=M("babel-runtime/helpers/typeof"),b=y(A);function y(x){return x&&x.__esModule?x:{default:x}}Object.defineProperty(o,"__esModule",{value:!0}),o.deepCopy=void 0,o.deepCopy=function(x){if(x===null||(typeof x=="undefined"?"undefined":(0,b.default)(x))!=="object")return x;var w=Array.isArray(x)?[]:{};return(0,g.default)(x).forEach(function(f){w[f]=o.deepCopy(x[f])}),w}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],40:[function(M,Y,o){"use strict";var L=M("babel-runtime/core-js/object/keys"),g=y(L),A=M("babel-runtime/helpers/typeof"),b=y(A);function y(f){return f&&f.__esModule?f:{default:f}}Object.defineProperty(o,"__esModule",{value:!0}),o.formatObjKey=void 0;function x(f,_){if(f===null||(typeof f=="undefined"?"undefined":(0,b.default)(f))!=="object")return f;var d=void 0;if(Array.isArray(f)){d=[];for(var r=0;r<f.length;r++)d.push(x(f[r],_))}else d={},(0,g.default)(f).forEach(function(u){d[w(u,_)]=x(f[u],_)});return d}o.formatObjKey=x;function w(f,_){return _==="firstUpperCase"?f=f.replace(/^./,function(d){return d.toUpperCase()}):_==="firstLowerCase"&&(f=f.replace(/^./,function(d){return d.toLowerCase()})),f}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],41:[function(M,Y,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.getStrBytesCount=void 0;function L(g){for(var A=0,b=0;b<g.length;b++){var y=g.charAt(b);/^[\u00-\uff]$/.test(y)?A+=1:A+=2}return A}o.getStrBytesCount=L},{}],42:[function(M,Y,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isArray=void 0,o.isArray=function(L){return Object.prototype.toString.call(L)==="[object Array]"}},{}],43:[function(M,Y,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isBlob=void 0;function L(g){return typeof Blob!="undefined"&&g instanceof Blob}o.isBlob=L},{}],44:[function(M,Y,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isFile=void 0,o.isFile=function(L){return typeof File!="undefined"&&L instanceof File}},{}],45:[function(M,Y,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isIP=void 0,o.isIP=function(L){var g=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,A=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return g.test(L)||A.test(L)}},{}],46:[function(M,Y,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isObject=void 0,o.isObject=function(L){return Object.prototype.toString.call(L)==="[object Object]"}},{}],47:[function(M,Y,o){"use strict";var L=M("babel-runtime/core-js/object/keys"),g=A(L);function A(w){return w&&w.__esModule?w:{default:w}}Object.defineProperty(o,"__esModule",{value:!0}),o.obj2xml=void 0;var b=M("./formatObjKey");function y(w){return Object.prototype.toString.call(w).replace(/(.*? |])/g,"").toLowerCase()}function x(w,f){var _="";return f&&f.headers&&(_=`<?xml version="1.0" encoding="UTF-8"?>
`),f&&f.firstUpperCase&&(w=b.formatObjKey(w,"firstUpperCase")),y(w)==="object"?(0,g.default)(w).forEach(function(d){y(w[d])==="string"||y(w[d])==="number"?_+="<"+d+">"+w[d]+"</"+d+">":y(w[d])==="object"?_+="<"+d+">"+x(w[d])+"</"+d+">":y(w[d])==="array"?_+=w[d].map(function(r){return"<"+d+">"+x(r)+"</"+d+">"}).join(""):_+="<"+d+">"+w[d].toString()+"</"+d+">"}):_+=w.toString(),_}o.obj2xml=x},{"./formatObjKey":40,"babel-runtime/core-js/object/keys":60}],48:[function(M,Y,o){Y.exports=L,Y.exports.HttpsAgent=L;function L(){}},{}],49:[function(M,Y,o){Y.exports=M("./register")().Promise},{"./register":51}],50:[function(M,Y,o){"use strict";var L="@@any-promise/REGISTRATION",g=null;Y.exports=function(A,b){return function(x,w){x=x||null,w=w||{};var f=w.global!==!1;if(g===null&&f&&(g=A[L]||null),g!==null&&x!==null&&g.implementation!==x)throw new Error('any-promise already defined as "'+g.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return g===null&&(x!==null&&typeof w.Promise!="undefined"?g={Promise:w.Promise,implementation:x}:g=b(x),f&&(A[L]=g)),g}}},{}],51:[function(M,Y,o){"use strict";Y.exports=M("./loader")(window,L);function L(){if(typeof window.Promise=="undefined")throw new Error("any-promise browser requires a polyfill or explicit registration e.g: require('any-promise/register/bluebird')");return{Promise:window.Promise,implementation:"window.Promise"}}},{"./loader":50}],52:[function(M,Y,o){Y.exports={default:M("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":77}],53:[function(M,Y,o){Y.exports={default:M("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":78}],54:[function(M,Y,o){Y.exports={default:M("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":79}],55:[function(M,Y,o){Y.exports={default:M("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":80}],56:[function(M,Y,o){Y.exports={default:M("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":81}],57:[function(M,Y,o){Y.exports={default:M("core-js/library/fn/object/entries"),__esModule:!0}},{"core-js/library/fn/object/entries":82}],58:[function(M,Y,o){Y.exports={default:M("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":83}],59:[function(M,Y,o){Y.exports={default:M("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":84}],60:[function(M,Y,o){Y.exports={default:M("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":85}],61:[function(M,Y,o){Y.exports={default:M("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":86}],62:[function(M,Y,o){Y.exports={default:M("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":87}],63:[function(M,Y,o){Y.exports={default:M("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":88}],64:[function(M,Y,o){Y.exports={default:M("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":90}],65:[function(M,Y,o){Y.exports={default:M("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":89}],66:[function(M,Y,o){Y.exports={default:M("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":91}],67:[function(M,Y,o){"use strict";o.__esModule=!0;var L=M("../core-js/symbol/iterator"),g=x(L),A=M("../core-js/symbol"),b=x(A),y=typeof b.default=="function"&&typeof g.default=="symbol"?function(w){return typeof w}:function(w){return w&&typeof b.default=="function"&&w.constructor===b.default&&w!==b.default.prototype?"symbol":typeof w};function x(w){return w&&w.__esModule?w:{default:w}}o.default=typeof b.default=="function"&&y(g.default)==="symbol"?function(w){return typeof w=="undefined"?"undefined":y(w)}:function(w){return w&&typeof b.default=="function"&&w.constructor===b.default&&w!==b.default.prototype?"symbol":typeof w=="undefined"?"undefined":y(w)}},{"../core-js/symbol":64,"../core-js/symbol/iterator":66}],68:[function(M,Y,o){Y.exports=M("regenerator-runtime")},{"regenerator-runtime":226}],69:[function(M,Y,o){"use strict";o.byteLength=f,o.toByteArray=d,o.fromByteArray=t;for(var L=[],g=[],A=typeof Uint8Array!="undefined"?Uint8Array:Array,b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y=0,x=b.length;y<x;++y)L[y]=b[y],g[b.charCodeAt(y)]=y;g["-".charCodeAt(0)]=62,g["_".charCodeAt(0)]=63;function w(a){var n=a.length;if(n%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=a.indexOf("=");i===-1&&(i=n);var h=i===n?0:4-i%4;return[i,h]}function f(a){var n=w(a),i=n[0],h=n[1];return(i+h)*3/4-h}function _(a,n,i){return(n+i)*3/4-i}function d(a){var n,i=w(a),h=i[0],l=i[1],s=new A(_(a,h,l)),p=0,O=l>0?h-4:h,S;for(S=0;S<O;S+=4)n=g[a.charCodeAt(S)]<<18|g[a.charCodeAt(S+1)]<<12|g[a.charCodeAt(S+2)]<<6|g[a.charCodeAt(S+3)],s[p++]=n>>16&255,s[p++]=n>>8&255,s[p++]=n&255;return l===2&&(n=g[a.charCodeAt(S)]<<2|g[a.charCodeAt(S+1)]>>4,s[p++]=n&255),l===1&&(n=g[a.charCodeAt(S)]<<10|g[a.charCodeAt(S+1)]<<4|g[a.charCodeAt(S+2)]>>2,s[p++]=n>>8&255,s[p++]=n&255),s}function r(a){return L[a>>18&63]+L[a>>12&63]+L[a>>6&63]+L[a&63]}function u(a,n,i){for(var h,l=[],s=n;s<i;s+=3)h=(a[s]<<16&16711680)+(a[s+1]<<8&65280)+(a[s+2]&255),l.push(r(h));return l.join("")}function t(a){for(var n,i=a.length,h=i%3,l=[],s=16383,p=0,O=i-h;p<O;p+=s)l.push(u(a,p,p+s>O?O:p+s));return h===1?(n=a[i-1],l.push(L[n>>2]+L[n<<4&63]+"==")):h===2&&(n=(a[i-2]<<8)+a[i-1],l.push(L[n>>10]+L[n>>4&63]+L[n<<2&63]+"=")),l.join("")}},{}],70:[function(M,Y,o){/*!
* Bowser - a browser detector
* https://github.com/ded/bowser
* MIT License | (c) Dustin Diaz 2015
*/!function(L,g,A){typeof Y!="undefined"&&Y.exports?Y.exports=A():typeof define=="function"&&define.amd?define(g,A):L[g]=A()}(this,"bowser",function(){var L=!0;function g(_){function d(K){var B=_.match(K);return B&&B.length>1&&B[1]||""}function r(K){var B=_.match(K);return B&&B.length>1&&B[2]||""}var u=d(/(ipod|iphone|ipad)/i).toLowerCase(),t=/like android/i.test(_),a=!t&&/android/i.test(_),n=/nexus\s*[0-6]\s*/i.test(_),i=!n&&/nexus\s*[0-9]+/i.test(_),h=/CrOS/.test(_),l=/silk/i.test(_),s=/sailfish/i.test(_),p=/tizen/i.test(_),O=/(web|hpw)(o|0)s/i.test(_),S=/windows phone/i.test(_),v=/SamsungBrowser/i.test(_),P=!S&&/windows/i.test(_),R=!u&&!l&&/macintosh/i.test(_),E=!a&&!s&&!p&&!O&&/linux/i.test(_),C=r(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),m=d(/version\/(\d+(\.\d+)?)/i),T=/tablet/i.test(_)&&!/tablet pc/i.test(_),I=!T&&/[^-]mobi/i.test(_),D=/xbox/i.test(_),N;/opera/i.test(_)?N={name:"Opera",opera:L,version:m||d(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(_)?N={name:"Opera",opera:L,version:d(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||m}:/SamsungBrowser/i.test(_)?N={name:"Samsung Internet for Android",samsungBrowser:L,version:m||d(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(_)?N={name:"NAVER Whale browser",whale:L,version:d(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(_)?N={name:"MZ Browser",mzbrowser:L,version:d(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(_)?N={name:"Opera Coast",coast:L,version:m||d(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(_)?N={name:"Focus",focus:L,version:d(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(_)?N={name:"Yandex Browser",yandexbrowser:L,version:m||d(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(_)?N={name:"UC Browser",ucbrowser:L,version:d(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(_)?N={name:"Maxthon",maxthon:L,version:d(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(_)?N={name:"Epiphany",epiphany:L,version:d(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(_)?N={name:"Puffin",puffin:L,version:d(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(_)?N={name:"Sleipnir",sleipnir:L,version:d(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(_)?N={name:"K-Meleon",kMeleon:L,version:d(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:S?(N={name:"Windows Phone",osname:"Windows Phone",windowsphone:L},C?(N.msedge=L,N.version=C):(N.msie=L,N.version=d(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(_)?N={name:"Internet Explorer",msie:L,version:d(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:h?N={name:"Chrome",osname:"Chrome OS",chromeos:L,chromeBook:L,chrome:L,version:d(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(_)?N={name:"Microsoft Edge",msedge:L,version:C}:/vivaldi/i.test(_)?N={name:"Vivaldi",vivaldi:L,version:d(/vivaldi\/(\d+(\.\d+)?)/i)||m}:s?N={name:"Sailfish",osname:"Sailfish OS",sailfish:L,version:d(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(_)?N={name:"SeaMonkey",seamonkey:L,version:d(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(_)?(N={name:"Firefox",firefox:L,version:d(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(_)&&(N.firefoxos=L,N.osname="Firefox OS")):l?N={name:"Amazon Silk",silk:L,version:d(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(_)?N={name:"PhantomJS",phantom:L,version:d(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(_)?N={name:"SlimerJS",slimer:L,version:d(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(_)||/rim\stablet/i.test(_)?N={name:"BlackBerry",osname:"BlackBerry OS",blackberry:L,version:m||d(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:O?(N={name:"WebOS",osname:"WebOS",webos:L,version:m||d(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(_)&&(N.touchpad=L)):/bada/i.test(_)?N={name:"Bada",osname:"Bada",bada:L,version:d(/dolfin\/(\d+(\.\d+)?)/i)}:p?N={name:"Tizen",osname:"Tizen",tizen:L,version:d(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||m}:/qupzilla/i.test(_)?N={name:"QupZilla",qupzilla:L,version:d(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||m}:/chromium/i.test(_)?N={name:"Chromium",chromium:L,version:d(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||m}:/chrome|crios|crmo/i.test(_)?N={name:"Chrome",chrome:L,version:d(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:a?N={name:"Android",version:m}:/safari|applewebkit/i.test(_)?(N={name:"Safari",safari:L},m&&(N.version=m)):u?(N={name:u=="iphone"?"iPhone":u=="ipad"?"iPad":"iPod"},m&&(N.version=m)):/googlebot/i.test(_)?N={name:"Googlebot",googlebot:L,version:d(/googlebot\/(\d+(\.\d+))/i)||m}:N={name:d(/^(.*)\/(.*) /),version:r(/^(.*)\/(.*) /)},!N.msedge&&/(apple)?webkit/i.test(_)?(/(apple)?webkit\/537\.36/i.test(_)?(N.name=N.name||"Blink",N.blink=L):(N.name=N.name||"Webkit",N.webkit=L),!N.version&&m&&(N.version=m)):!N.opera&&/gecko\//i.test(_)&&(N.name=N.name||"Gecko",N.gecko=L,N.version=N.version||d(/gecko\/(\d+(\.\d+)?)/i)),!N.windowsphone&&(a||N.silk)?(N.android=L,N.osname="Android"):!N.windowsphone&&u?(N[u]=L,N.ios=L,N.osname="iOS"):R?(N.mac=L,N.osname="macOS"):D?(N.xbox=L,N.osname="Xbox"):P?(N.windows=L,N.osname="Windows"):E&&(N.linux=L,N.osname="Linux");function z(K){switch(K){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var F="";N.windows?F=z(d(/Windows ((NT|XP)( \d\d?.\d)?)/i)):N.windowsphone?F=d(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):N.mac?(F=d(/Mac OS X (\d+([_\.\s]\d+)*)/i),F=F.replace(/[_\s]/g,".")):u?(F=d(/os (\d+([_\s]\d+)*) like mac os x/i),F=F.replace(/[_\s]/g,".")):a?F=d(/android[ \/-](\d+(\.\d+)*)/i):N.webos?F=d(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):N.blackberry?F=d(/rim\stablet\sos\s(\d+(\.\d+)*)/i):N.bada?F=d(/bada\/(\d+(\.\d+)*)/i):N.tizen&&(F=d(/tizen[\/\s](\d+(\.\d+)*)/i)),F&&(N.osversion=F);var W=!N.windows&&F.split(".")[0];return T||i||u=="ipad"||a&&(W==3||W>=4&&!I)||N.silk?N.tablet=L:(I||u=="iphone"||u=="ipod"||a||n||N.blackberry||N.webos||N.bada)&&(N.mobile=L),N.msedge||N.msie&&N.version>=10||N.yandexbrowser&&N.version>=15||N.vivaldi&&N.version>=1||N.chrome&&N.version>=20||N.samsungBrowser&&N.version>=4||N.whale&&x([N.version,"1.0"])===1||N.mzbrowser&&x([N.version,"6.0"])===1||N.focus&&x([N.version,"1.0"])===1||N.firefox&&N.version>=20||N.safari&&N.version>=6||N.opera&&N.version>=10||N.ios&&N.osversion&&N.osversion.split(".")[0]>=6||N.blackberry&&N.version>=10.1||N.chromium&&N.version>=20?N.a=L:N.msie&&N.version<10||N.chrome&&N.version<20||N.firefox&&N.version<20||N.safari&&N.version<6||N.opera&&N.version<10||N.ios&&N.osversion&&N.osversion.split(".")[0]<6||N.chromium&&N.version<20?N.c=L:N.x=L,N}var A=g(typeof navigator!="undefined"&&navigator.userAgent||"");A.test=function(_){for(var d=0;d<_.length;++d){var r=_[d];if(typeof r=="string"&&r in A)return!0}return!1};function b(_){return _.split(".").length}function y(_,d){var r=[],u;if(Array.prototype.map)return Array.prototype.map.call(_,d);for(u=0;u<_.length;u++)r.push(d(_[u]));return r}function x(_){for(var d=Math.max(b(_[0]),b(_[1])),r=y(_,function(u){var t=d-b(u);return u=u+new Array(t+1).join(".0"),y(u.split("."),function(a){return new Array(20-a.length).join("0")+a}).reverse()});--d>=0;){if(r[0][d]>r[1][d])return 1;if(r[0][d]===r[1][d]){if(d===0)return 0}else return-1}}function w(_,d,r){var u=A;typeof d=="string"&&(r=d,d=void 0),d===void 0&&(d=!1),r&&(u=g(r));var t=""+u.version;for(var a in _)if(_.hasOwnProperty(a)&&u[a]){if(typeof _[a]!="string")throw new Error("Browser version in the minVersion map should be a string: "+a+": "+String(_));return x([t,_[a]])<0}return d}function f(_,d,r){return!w(_,d,r)}return A.isUnsupportedBrowser=w,A.compareVersions=x,A.check=f,A._detect=g,A.detect=g,A})},{}],71:[function(M,Y,o){},{}],72:[function(M,Y,o){var L=M("buffer").Buffer,g=L.isEncoding||function(f){switch(f&&f.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function A(f){if(f&&!g(f))throw new Error("Unknown encoding: "+f)}var b=o.StringDecoder=function(f){this.encoding=(f||"utf8").toLowerCase().replace(/[-_]/,""),A(f);switch(this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=x;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=w;break;default:this.write=y;return}this.charBuffer=new L(6),this.charReceived=0,this.charLength=0};b.prototype.write=function(f){for(var _="";this.charLength;){var d=f.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:f.length;if(f.copy(this.charBuffer,this.charReceived,0,d),this.charReceived+=d,this.charReceived<this.charLength)return"";f=f.slice(d,f.length),_=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var u=_.charCodeAt(_.length-1);if(u>=55296&&u<=56319){this.charLength+=this.surrogateSize,_="";continue}if(this.charReceived=this.charLength=0,f.length===0)return _;break}this.detectIncompleteChar(f);var r=f.length;this.charLength&&(f.copy(this.charBuffer,0,f.length-this.charReceived,r),r-=this.charReceived),_+=f.toString(this.encoding,0,r);var r=_.length-1,u=_.charCodeAt(r);if(u>=55296&&u<=56319){var t=this.surrogateSize;return this.charLength+=t,this.charReceived+=t,this.charBuffer.copy(this.charBuffer,t,0,t),f.copy(this.charBuffer,0,0,t),_.substring(0,r)}return _},b.prototype.detectIncompleteChar=function(f){for(var _=f.length>=3?3:f.length;_>0;_--){var d=f[f.length-_];if(_==1&&d>>5==6){this.charLength=2;break}if(_<=2&&d>>4==14){this.charLength=3;break}if(_<=3&&d>>3==30){this.charLength=4;break}}this.charReceived=_},b.prototype.end=function(f){var _="";if(f&&f.length&&(_=this.write(f)),this.charReceived){var d=this.charReceived,r=this.charBuffer,u=this.encoding;_+=r.slice(0,d).toString(u)}return _};function y(f){return f.toString(this.encoding)}function x(f){this.charReceived=f.length%2,this.charLength=this.charReceived?2:0}function w(f){this.charReceived=f.length%3,this.charLength=this.charReceived?3:0}},{buffer:73}],73:[function(M,Y,o){(function(L,g){/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/"use strict";var A=M("base64-js"),b=M("ieee754"),y=M("isarray");o.Buffer=g,o.SlowBuffer=l,o.INSPECT_MAX_BYTES=50,g.TYPED_ARRAY_SUPPORT=L.TYPED_ARRAY_SUPPORT!==void 0?L.TYPED_ARRAY_SUPPORT:x(),o.kMaxLength=w();function x(){try{var le=new Uint8Array(1);return le.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},le.foo()===42&&typeof le.subarray=="function"&&le.subarray(1,1).byteLength===0}catch($){return!1}}function w(){return g.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function f(le,$){if(w()<$)throw new RangeError("Invalid typed array length");return g.TYPED_ARRAY_SUPPORT?(le=new Uint8Array($),le.__proto__=g.prototype):(le===null&&(le=new g($)),le.length=$),le}function g(le,$,J){if(!g.TYPED_ARRAY_SUPPORT&&!(this instanceof g))return new g(le,$,J);if(typeof le=="number"){if(typeof $=="string")throw new Error("If encoding is specified then the first argument must be a string");return u(this,le)}return _(this,le,$,J)}g.poolSize=8192,g._augment=function(le){return le.__proto__=g.prototype,le};function _(le,$,J,te){if(typeof $=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&$ instanceof ArrayBuffer?n(le,$,J,te):typeof $=="string"?t(le,$,J):i(le,$)}g.from=function(le,$,J){return _(null,le,$,J)},g.TYPED_ARRAY_SUPPORT&&(g.prototype.__proto__=Uint8Array.prototype,g.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&g[Symbol.species]===g&&Object.defineProperty(g,Symbol.species,{value:null,configurable:!0}));function d(le){if(typeof le!="number")throw new TypeError('"size" argument must be a number');if(le<0)throw new RangeError('"size" argument must not be negative')}function r(le,$,J,te){return d($),$<=0?f(le,$):J!==void 0?typeof te=="string"?f(le,$).fill(J,te):f(le,$).fill(J):f(le,$)}g.alloc=function(le,$,J){return r(null,le,$,J)};function u(le,$){if(d($),le=f(le,$<0?0:h($)|0),!g.TYPED_ARRAY_SUPPORT)for(var J=0;J<$;++J)le[J]=0;return le}g.allocUnsafe=function(le){return u(null,le)},g.allocUnsafeSlow=function(le){return u(null,le)};function t(le,$,J){if((typeof J!="string"||J==="")&&(J="utf8"),!g.isEncoding(J))throw new TypeError('"encoding" must be a valid string encoding');var te=s($,J)|0;le=f(le,te);var De=le.write($,J);return De!==te&&(le=le.slice(0,De)),le}function a(le,$){var J=$.length<0?0:h($.length)|0;le=f(le,J);for(var te=0;te<J;te+=1)le[te]=$[te]&255;return le}function n(le,$,J,te){if($.byteLength,J<0||$.byteLength<J)throw new RangeError("'offset' is out of bounds");if($.byteLength<J+(te||0))throw new RangeError("'length' is out of bounds");return J===void 0&&te===void 0?$=new Uint8Array($):te===void 0?$=new Uint8Array($,J):$=new Uint8Array($,J,te),g.TYPED_ARRAY_SUPPORT?(le=$,le.__proto__=g.prototype):le=a(le,$),le}function i(le,$){if(g.isBuffer($)){var J=h($.length)|0;return le=f(le,J),le.length===0||$.copy(le,0,0,J),le}if($){if(typeof ArrayBuffer!="undefined"&&$.buffer instanceof ArrayBuffer||"length"in $)return typeof $.length!="number"||we($.length)?f(le,0):a(le,$);if($.type==="Buffer"&&y($.data))return a(le,$.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function h(le){if(le>=w())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+w().toString(16)+" bytes");return le|0}function l(le){return+le!=le&&(le=0),g.alloc(+le)}g.isBuffer=function($){return!!($!=null&&$._isBuffer)},g.compare=function($,J){if(!g.isBuffer($)||!g.isBuffer(J))throw new TypeError("Arguments must be Buffers");if($===J)return 0;for(var te=$.length,De=J.length,Te=0,ke=Math.min(te,De);Te<ke;++Te)if($[Te]!==J[Te]){te=$[Te],De=J[Te];break}return te<De?-1:De<te?1:0},g.isEncoding=function($){switch(String($).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.concat=function($,J){if(!y($))throw new TypeError('"list" argument must be an Array of Buffers');if($.length===0)return g.alloc(0);var te;if(J===void 0)for(J=0,te=0;te<$.length;++te)J+=$[te].length;var De=g.allocUnsafe(J),Te=0;for(te=0;te<$.length;++te){var ke=$[te];if(!g.isBuffer(ke))throw new TypeError('"list" argument must be an Array of Buffers');ke.copy(De,Te),Te+=ke.length}return De};function s(le,$){if(g.isBuffer(le))return le.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(le)||le instanceof ArrayBuffer))return le.byteLength;typeof le!="string"&&(le=""+le);var J=le.length;if(J===0)return 0;for(var te=!1;;)switch($){case"ascii":case"latin1":case"binary":return J;case"utf8":case"utf-8":case void 0:return se(le).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J*2;case"hex":return J>>>1;case"base64":return re(le).length;default:if(te)return se(le).length;$=(""+$).toLowerCase(),te=!0}}g.byteLength=s;function p(le,$,J){var te=!1;if(($===void 0||$<0)&&($=0),$>this.length)return"";if((J===void 0||J>this.length)&&(J=this.length),J<=0)return"";if(J>>>=0,$>>>=0,J<=$)return"";for(le||(le="utf8");;)switch(le){case"hex":return K(this,$,J);case"utf8":case"utf-8":return D(this,$,J);case"ascii":return F(this,$,J);case"latin1":case"binary":return W(this,$,J);case"base64":return I(this,$,J);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,$,J);default:if(te)throw new TypeError("Unknown encoding: "+le);le=(le+"").toLowerCase(),te=!0}}g.prototype._isBuffer=!0;function O(le,$,J){var te=le[$];le[$]=le[J],le[J]=te}g.prototype.swap16=function(){var $=this.length;if($%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var J=0;J<$;J+=2)O(this,J,J+1);return this},g.prototype.swap32=function(){var $=this.length;if($%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var J=0;J<$;J+=4)O(this,J,J+3),O(this,J+1,J+2);return this},g.prototype.swap64=function(){var $=this.length;if($%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var J=0;J<$;J+=8)O(this,J,J+7),O(this,J+1,J+6),O(this,J+2,J+5),O(this,J+3,J+4);return this},g.prototype.toString=function(){var $=this.length|0;return $===0?"":arguments.length===0?D(this,0,$):p.apply(this,arguments)},g.prototype.equals=function($){if(!g.isBuffer($))throw new TypeError("Argument must be a Buffer");return this===$?!0:g.compare(this,$)===0},g.prototype.inspect=function(){var $="",J=o.INSPECT_MAX_BYTES;return this.length>0&&($=this.toString("hex",0,J).match(/.{2}/g).join(" "),this.length>J&&($+=" ... ")),"<Buffer "+$+">"},g.prototype.compare=function($,J,te,De,Te){if(!g.isBuffer($))throw new TypeError("Argument must be a Buffer");if(J===void 0&&(J=0),te===void 0&&(te=$?$.length:0),De===void 0&&(De=0),Te===void 0&&(Te=this.length),J<0||te>$.length||De<0||Te>this.length)throw new RangeError("out of range index");if(De>=Te&&J>=te)return 0;if(De>=Te)return-1;if(J>=te)return 1;if(J>>>=0,te>>>=0,De>>>=0,Te>>>=0,this===$)return 0;for(var ke=Te-De,tt=te-J,ot=Math.min(ke,tt),gt=this.slice(De,Te),Et=$.slice(J,te),xt=0;xt<ot;++xt)if(gt[xt]!==Et[xt]){ke=gt[xt],tt=Et[xt];break}return ke<tt?-1:tt<ke?1:0};function S(le,$,J,te,De){if(le.length===0)return-1;if(typeof J=="string"?(te=J,J=0):J>2147483647?J=2147483647:J<-2147483648&&(J=-2147483648),J=+J,isNaN(J)&&(J=De?0:le.length-1),J<0&&(J=le.length+J),J>=le.length){if(De)return-1;J=le.length-1}else if(J<0)if(De)J=0;else return-1;if(typeof $=="string"&&($=g.from($,te)),g.isBuffer($))return $.length===0?-1:v(le,$,J,te,De);if(typeof $=="number")return $=$&255,g.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?De?Uint8Array.prototype.indexOf.call(le,$,J):Uint8Array.prototype.lastIndexOf.call(le,$,J):v(le,[$],J,te,De);throw new TypeError("val must be string, number or Buffer")}function v(le,$,J,te,De){var Te=1,ke=le.length,tt=$.length;if(te!==void 0&&(te=String(te).toLowerCase(),te==="ucs2"||te==="ucs-2"||te==="utf16le"||te==="utf-16le")){if(le.length<2||$.length<2)return-1;Te=2,ke/=2,tt/=2,J/=2}function ot(Je,Ue){return Te===1?Je[Ue]:Je.readUInt16BE(Ue*Te)}var gt;if(De){var Et=-1;for(gt=J;gt<ke;gt++)if(ot(le,gt)===ot($,Et===-1?0:gt-Et)){if(Et===-1&&(Et=gt),gt-Et+1===tt)return Et*Te}else Et!==-1&&(gt-=gt-Et),Et=-1}else for(J+tt>ke&&(J=ke-tt),gt=J;gt>=0;gt--){for(var xt=!0,St=0;St<tt;St++)if(ot(le,gt+St)!==ot($,St)){xt=!1;break}if(xt)return gt}return-1}g.prototype.includes=function($,J,te){return this.indexOf($,J,te)!==-1},g.prototype.indexOf=function($,J,te){return S(this,$,J,te,!0)},g.prototype.lastIndexOf=function($,J,te){return S(this,$,J,te,!1)};function P(le,$,J,te){J=Number(J)||0;var De=le.length-J;te?(te=Number(te),te>De&&(te=De)):te=De;var Te=$.length;if(Te%2!==0)throw new TypeError("Invalid hex string");te>Te/2&&(te=Te/2);for(var ke=0;ke<te;++ke){var tt=parseInt($.substr(ke*2,2),16);if(isNaN(tt))return ke;le[J+ke]=tt}return ke}function R(le,$,J,te){return ie(se($,le.length-J),le,J,te)}function E(le,$,J,te){return ie(q($),le,J,te)}function C(le,$,J,te){return E(le,$,J,te)}function m(le,$,J,te){return ie(re($),le,J,te)}function T(le,$,J,te){return ie(me($,le.length-J),le,J,te)}g.prototype.write=function($,J,te,De){if(J===void 0)De="utf8",te=this.length,J=0;else if(te===void 0&&typeof J=="string")De=J,te=this.length,J=0;else if(isFinite(J))J=J|0,isFinite(te)?(te=te|0,De===void 0&&(De="utf8")):(De=te,te=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Te=this.length-J;if((te===void 0||te>Te)&&(te=Te),$.length>0&&(te<0||J<0)||J>this.length)throw new RangeError("Attempt to write outside buffer bounds");De||(De="utf8");for(var ke=!1;;)switch(De){case"hex":return P(this,$,J,te);case"utf8":case"utf-8":return R(this,$,J,te);case"ascii":return E(this,$,J,te);case"latin1":case"binary":return C(this,$,J,te);case"base64":return m(this,$,J,te);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,$,J,te);default:if(ke)throw new TypeError("Unknown encoding: "+De);De=(""+De).toLowerCase(),ke=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function I(le,$,J){return $===0&&J===le.length?A.fromByteArray(le):A.fromByteArray(le.slice($,J))}function D(le,$,J){J=Math.min(le.length,J);for(var te=[],De=$;De<J;){var Te=le[De],ke=null,tt=Te>239?4:Te>223?3:Te>191?2:1;if(De+tt<=J){var ot,gt,Et,xt;switch(tt){case 1:Te<128&&(ke=Te);break;case 2:ot=le[De+1],(ot&192)===128&&(xt=(Te&31)<<6|ot&63,xt>127&&(ke=xt));break;case 3:ot=le[De+1],gt=le[De+2],(ot&192)===128&&(gt&192)===128&&(xt=(Te&15)<<12|(ot&63)<<6|gt&63,xt>2047&&(xt<55296||xt>57343)&&(ke=xt));break;case 4:ot=le[De+1],gt=le[De+2],Et=le[De+3],(ot&192)===128&&(gt&192)===128&&(Et&192)===128&&(xt=(Te&15)<<18|(ot&63)<<12|(gt&63)<<6|Et&63,xt>65535&&xt<1114112&&(ke=xt))}}ke===null?(ke=65533,tt=1):ke>65535&&(ke-=65536,te.push(ke>>>10&1023|55296),ke=56320|ke&1023),te.push(ke),De+=tt}return z(te)}var N=4096;function z(le){var $=le.length;if($<=N)return String.fromCharCode.apply(String,le);for(var J="",te=0;te<$;)J+=String.fromCharCode.apply(String,le.slice(te,te+=N));return J}function F(le,$,J){var te="";J=Math.min(le.length,J);for(var De=$;De<J;++De)te+=String.fromCharCode(le[De]&127);return te}function W(le,$,J){var te="";J=Math.min(le.length,J);for(var De=$;De<J;++De)te+=String.fromCharCode(le[De]);return te}function K(le,$,J){var te=le.length;(!$||$<0)&&($=0),(!J||J<0||J>te)&&(J=te);for(var De="",Te=$;Te<J;++Te)De+=ue(le[Te]);return De}function B(le,$,J){for(var te=le.slice($,J),De="",Te=0;Te<te.length;Te+=2)De+=String.fromCharCode(te[Te]+te[Te+1]*256);return De}g.prototype.slice=function($,J){var te=this.length;$=~~$,J=J===void 0?te:~~J,$<0?($+=te,$<0&&($=0)):$>te&&($=te),J<0?(J+=te,J<0&&(J=0)):J>te&&(J=te),J<$&&(J=$);var De;if(g.TYPED_ARRAY_SUPPORT)De=this.subarray($,J),De.__proto__=g.prototype;else{var Te=J-$;De=new g(Te,void 0);for(var ke=0;ke<Te;++ke)De[ke]=this[ke+$]}return De};function k(le,$,J){if(le%1!==0||le<0)throw new RangeError("offset is not uint");if(le+$>J)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUIntLE=function($,J,te){$=$|0,J=J|0,te||k($,J,this.length);for(var De=this[$],Te=1,ke=0;++ke<J&&(Te*=256);)De+=this[$+ke]*Te;return De},g.prototype.readUIntBE=function($,J,te){$=$|0,J=J|0,te||k($,J,this.length);for(var De=this[$+--J],Te=1;J>0&&(Te*=256);)De+=this[$+--J]*Te;return De},g.prototype.readUInt8=function($,J){return J||k($,1,this.length),this[$]},g.prototype.readUInt16LE=function($,J){return J||k($,2,this.length),this[$]|this[$+1]<<8},g.prototype.readUInt16BE=function($,J){return J||k($,2,this.length),this[$]<<8|this[$+1]},g.prototype.readUInt32LE=function($,J){return J||k($,4,this.length),(this[$]|this[$+1]<<8|this[$+2]<<16)+this[$+3]*16777216},g.prototype.readUInt32BE=function($,J){return J||k($,4,this.length),this[$]*16777216+(this[$+1]<<16|this[$+2]<<8|this[$+3])},g.prototype.readIntLE=function($,J,te){$=$|0,J=J|0,te||k($,J,this.length);for(var De=this[$],Te=1,ke=0;++ke<J&&(Te*=256);)De+=this[$+ke]*Te;return Te*=128,De>=Te&&(De-=Math.pow(2,8*J)),De},g.prototype.readIntBE=function($,J,te){$=$|0,J=J|0,te||k($,J,this.length);for(var De=J,Te=1,ke=this[$+--De];De>0&&(Te*=256);)ke+=this[$+--De]*Te;return Te*=128,ke>=Te&&(ke-=Math.pow(2,8*J)),ke},g.prototype.readInt8=function($,J){return J||k($,1,this.length),this[$]&128?(255-this[$]+1)*-1:this[$]},g.prototype.readInt16LE=function($,J){J||k($,2,this.length);var te=this[$]|this[$+1]<<8;return te&32768?te|4294901760:te},g.prototype.readInt16BE=function($,J){J||k($,2,this.length);var te=this[$+1]|this[$]<<8;return te&32768?te|4294901760:te},g.prototype.readInt32LE=function($,J){return J||k($,4,this.length),this[$]|this[$+1]<<8|this[$+2]<<16|this[$+3]<<24},g.prototype.readInt32BE=function($,J){return J||k($,4,this.length),this[$]<<24|this[$+1]<<16|this[$+2]<<8|this[$+3]},g.prototype.readFloatLE=function($,J){return J||k($,4,this.length),b.read(this,$,!0,23,4)},g.prototype.readFloatBE=function($,J){return J||k($,4,this.length),b.read(this,$,!1,23,4)},g.prototype.readDoubleLE=function($,J){return J||k($,8,this.length),b.read(this,$,!0,52,8)},g.prototype.readDoubleBE=function($,J){return J||k($,8,this.length),b.read(this,$,!1,52,8)};function G(le,$,J,te,De,Te){if(!g.isBuffer(le))throw new TypeError('"buffer" argument must be a Buffer instance');if($>De||$<Te)throw new RangeError('"value" argument is out of bounds');if(J+te>le.length)throw new RangeError("Index out of range")}g.prototype.writeUIntLE=function($,J,te,De){if($=+$,J=J|0,te=te|0,!De){var Te=Math.pow(2,8*te)-1;G(this,$,J,te,Te,0)}var ke=1,tt=0;for(this[J]=$&255;++tt<te&&(ke*=256);)this[J+tt]=$/ke&255;return J+te},g.prototype.writeUIntBE=function($,J,te,De){if($=+$,J=J|0,te=te|0,!De){var Te=Math.pow(2,8*te)-1;G(this,$,J,te,Te,0)}var ke=te-1,tt=1;for(this[J+ke]=$&255;--ke>=0&&(tt*=256);)this[J+ke]=$/tt&255;return J+te},g.prototype.writeUInt8=function($,J,te){return $=+$,J=J|0,te||G(this,$,J,1,255,0),g.TYPED_ARRAY_SUPPORT||($=Math.floor($)),this[J]=$&255,J+1};function ne(le,$,J,te){$<0&&($=65535+$+1);for(var De=0,Te=Math.min(le.length-J,2);De<Te;++De)le[J+De]=($&255<<8*(te?De:1-De))>>>(te?De:1-De)*8}g.prototype.writeUInt16LE=function($,J,te){return $=+$,J=J|0,te||G(this,$,J,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[J]=$&255,this[J+1]=$>>>8):ne(this,$,J,!0),J+2},g.prototype.writeUInt16BE=function($,J,te){return $=+$,J=J|0,te||G(this,$,J,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[J]=$>>>8,this[J+1]=$&255):ne(this,$,J,!1),J+2};function fe(le,$,J,te){$<0&&($=4294967295+$+1);for(var De=0,Te=Math.min(le.length-J,4);De<Te;++De)le[J+De]=$>>>(te?De:3-De)*8&255}g.prototype.writeUInt32LE=function($,J,te){return $=+$,J=J|0,te||G(this,$,J,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[J+3]=$>>>24,this[J+2]=$>>>16,this[J+1]=$>>>8,this[J]=$&255):fe(this,$,J,!0),J+4},g.prototype.writeUInt32BE=function($,J,te){return $=+$,J=J|0,te||G(this,$,J,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[J]=$>>>24,this[J+1]=$>>>16,this[J+2]=$>>>8,this[J+3]=$&255):fe(this,$,J,!1),J+4},g.prototype.writeIntLE=function($,J,te,De){if($=+$,J=J|0,!De){var Te=Math.pow(2,8*te-1);G(this,$,J,te,Te-1,-Te)}var ke=0,tt=1,ot=0;for(this[J]=$&255;++ke<te&&(tt*=256);)$<0&&ot===0&&this[J+ke-1]!==0&&(ot=1),this[J+ke]=($/tt>>0)-ot&255;return J+te},g.prototype.writeIntBE=function($,J,te,De){if($=+$,J=J|0,!De){var Te=Math.pow(2,8*te-1);G(this,$,J,te,Te-1,-Te)}var ke=te-1,tt=1,ot=0;for(this[J+ke]=$&255;--ke>=0&&(tt*=256);)$<0&&ot===0&&this[J+ke+1]!==0&&(ot=1),this[J+ke]=($/tt>>0)-ot&255;return J+te},g.prototype.writeInt8=function($,J,te){return $=+$,J=J|0,te||G(this,$,J,1,127,-128),g.TYPED_ARRAY_SUPPORT||($=Math.floor($)),$<0&&($=255+$+1),this[J]=$&255,J+1},g.prototype.writeInt16LE=function($,J,te){return $=+$,J=J|0,te||G(this,$,J,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[J]=$&255,this[J+1]=$>>>8):ne(this,$,J,!0),J+2},g.prototype.writeInt16BE=function($,J,te){return $=+$,J=J|0,te||G(this,$,J,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[J]=$>>>8,this[J+1]=$&255):ne(this,$,J,!1),J+2},g.prototype.writeInt32LE=function($,J,te){return $=+$,J=J|0,te||G(this,$,J,4,2147483647,-2147483648),g.TYPED_ARRAY_SUPPORT?(this[J]=$&255,this[J+1]=$>>>8,this[J+2]=$>>>16,this[J+3]=$>>>24):fe(this,$,J,!0),J+4},g.prototype.writeInt32BE=function($,J,te){return $=+$,J=J|0,te||G(this,$,J,4,2147483647,-2147483648),$<0&&($=4294967295+$+1),g.TYPED_ARRAY_SUPPORT?(this[J]=$>>>24,this[J+1]=$>>>16,this[J+2]=$>>>8,this[J+3]=$&255):fe(this,$,J,!1),J+4};function de(le,$,J,te,De,Te){if(J+te>le.length)throw new RangeError("Index out of range");if(J<0)throw new RangeError("Index out of range")}function xe(le,$,J,te,De){return De||de(le,$,J,4,34028234663852886e22,-34028234663852886e22),b.write(le,$,J,te,23,4),J+4}g.prototype.writeFloatLE=function($,J,te){return xe(this,$,J,!0,te)},g.prototype.writeFloatBE=function($,J,te){return xe(this,$,J,!1,te)};function Oe(le,$,J,te,De){return De||de(le,$,J,8,17976931348623157e292,-17976931348623157e292),b.write(le,$,J,te,52,8),J+8}g.prototype.writeDoubleLE=function($,J,te){return Oe(this,$,J,!0,te)},g.prototype.writeDoubleBE=function($,J,te){return Oe(this,$,J,!1,te)},g.prototype.copy=function($,J,te,De){if(te||(te=0),!De&&De!==0&&(De=this.length),J>=$.length&&(J=$.length),J||(J=0),De>0&&De<te&&(De=te),De===te)return 0;if($.length===0||this.length===0)return 0;if(J<0)throw new RangeError("targetStart out of bounds");if(te<0||te>=this.length)throw new RangeError("sourceStart out of bounds");if(De<0)throw new RangeError("sourceEnd out of bounds");De>this.length&&(De=this.length),$.length-J<De-te&&(De=$.length-J+te);var Te=De-te,ke;if(this===$&&te<J&&J<De)for(ke=Te-1;ke>=0;--ke)$[ke+J]=this[ke+te];else if(Te<1e3||!g.TYPED_ARRAY_SUPPORT)for(ke=0;ke<Te;++ke)$[ke+J]=this[ke+te];else Uint8Array.prototype.set.call($,this.subarray(te,te+Te),J);return Te},g.prototype.fill=function($,J,te,De){if(typeof $=="string"){if(typeof J=="string"?(De=J,J=0,te=this.length):typeof te=="string"&&(De=te,te=this.length),$.length===1){var Te=$.charCodeAt(0);Te<256&&($=Te)}if(De!==void 0&&typeof De!="string")throw new TypeError("encoding must be a string");if(typeof De=="string"&&!g.isEncoding(De))throw new TypeError("Unknown encoding: "+De)}else typeof $=="number"&&($=$&255);if(J<0||this.length<J||this.length<te)throw new RangeError("Out of range index");if(te<=J)return this;J=J>>>0,te=te===void 0?this.length:te>>>0,$||($=0);var ke;if(typeof $=="number")for(ke=J;ke<te;++ke)this[ke]=$;else{var tt=g.isBuffer($)?$:se(new g($,De).toString()),ot=tt.length;for(ke=0;ke<te-J;++ke)this[ke+J]=tt[ke%ot]}return this};var ce=/[^+\/0-9A-Za-z-_]/g;function be(le){if(le=ve(le).replace(ce,""),le.length<2)return"";for(;le.length%4!==0;)le=le+"=";return le}function ve(le){return le.trim?le.trim():le.replace(/^\s+|\s+$/g,"")}function ue(le){return le<16?"0"+le.toString(16):le.toString(16)}function se(le,$){$=$||Infinity;for(var J,te=le.length,De=null,Te=[],ke=0;ke<te;++ke){if(J=le.charCodeAt(ke),J>55295&&J<57344){if(!De){if(J>56319){($-=3)>-1&&Te.push(239,191,189);continue}else if(ke+1===te){($-=3)>-1&&Te.push(239,191,189);continue}De=J;continue}if(J<56320){($-=3)>-1&&Te.push(239,191,189),De=J;continue}J=(De-55296<<10|J-56320)+65536}else De&&(($-=3)>-1&&Te.push(239,191,189));if(De=null,J<128){if(($-=1)<0)break;Te.push(J)}else if(J<2048){if(($-=2)<0)break;Te.push(J>>6|192,J&63|128)}else if(J<65536){if(($-=3)<0)break;Te.push(J>>12|224,J>>6&63|128,J&63|128)}else if(J<1114112){if(($-=4)<0)break;Te.push(J>>18|240,J>>12&63|128,J>>6&63|128,J&63|128)}else throw new Error("Invalid code point")}return Te}function q(le){for(var $=[],J=0;J<le.length;++J)$.push(le.charCodeAt(J)&255);return $}function me(le,$){for(var J,te,De,Te=[],ke=0;ke<le.length&&!(($-=2)<0);++ke)J=le.charCodeAt(ke),te=J>>8,De=J%256,Te.push(De),Te.push(te);return Te}function re(le){return A.toByteArray(be(le))}function ie(le,$,J,te){for(var De=0;De<te&&!(De+J>=$.length||De>=le.length);++De)$[De+J]=le[De];return De}function we(le){return le!==le}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},M("buffer").Buffer)},{"base64-js":69,buffer:73,ieee754:195,isarray:198}],74:[function(M,Y,o){Y.exports={"100":"Continue","101":"Switching Protocols","102":"Processing","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Unordered Collection","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}},{}],75:[function(M,Y,o){Y.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_ECDH:16,ENGINE_METHOD_ECDSA:32,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_STORE:256,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_UDP_REUSEADDR:4}},{}],76:[function(M,Y,o){/*!
* copy-to - index.js
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
* MIT Licensed
*/"use strict";var L=Array.prototype.slice;Y.exports=g;function g(b,y){if(!(this instanceof g))return new g(b,y);this.src=b,this._withAccess=y}g.prototype.withAccess=function(b){return this._withAccess=b!==!1,this},g.prototype.pick=function(b){return Array.isArray(b)||(b=L.call(arguments)),b.length&&(this.keys=b),this},g.prototype.to=function(b){if(b=b||{},!this.src)return b;var y=this.keys||Object.keys(this.src);if(!this._withAccess){for(var x=0;x<y.length;x++){if(w=y[x],b[w]!==void 0)continue;b[w]=this.src[w]}return b}for(var x=0;x<y.length;x++){var w=y[x];if(!A(b,w))continue;var f=this.src.__lookupGetter__(w),_=this.src.__lookupSetter__(w);f&&b.__defineGetter__(w,f),_&&b.__defineSetter__(w,_),!f&&!_&&(b[w]=this.src[w])}return b},g.prototype.toCover=function(b){for(var y=this.keys||Object.keys(this.src),x=0;x<y.length;x++){var w=y[x];delete b[w];var f=this.src.__lookupGetter__(w),_=this.src.__lookupSetter__(w);f&&b.__defineGetter__(w,f),_&&b.__defineSetter__(w,_),!f&&!_&&(b[w]=this.src[w])}},g.prototype.override=g.prototype.toCover,g.prototype.and=function(b){var y={};return this.to(y),this.src=b,this.to(y),this.src=y,this};function A(b,y){return b[y]===void 0&&b.__lookupGetter__(y)===void 0&&b.__lookupSetter__(y)===void 0}},{}],77:[function(M,Y,o){M("../../modules/es6.string.iterator"),M("../../modules/es6.array.from"),Y.exports=M("../../modules/_core").Array.from},{"../../modules/_core":99,"../../modules/es6.array.from":168,"../../modules/es6.string.iterator":180}],78:[function(M,Y,o){var L=M("../../modules/_core"),g=L.JSON||(L.JSON={stringify:JSON.stringify});Y.exports=function(b){return g.stringify.apply(g,arguments)}},{"../../modules/_core":99}],79:[function(M,Y,o){M("../../modules/es6.object.assign"),Y.exports=M("../../modules/_core").Object.assign},{"../../modules/_core":99,"../../modules/es6.object.assign":171}],80:[function(M,Y,o){M("../../modules/es6.object.create");var L=M("../../modules/_core").Object;Y.exports=function(A,b){return L.create(A,b)}},{"../../modules/_core":99,"../../modules/es6.object.create":172}],81:[function(M,Y,o){M("../../modules/es6.object.define-property");var L=M("../../modules/_core").Object;Y.exports=function(A,b,y){return L.defineProperty(A,b,y)}},{"../../modules/_core":99,"../../modules/es6.object.define-property":173}],82:[function(M,Y,o){M("../../modules/es7.object.entries"),Y.exports=M("../../modules/_core").Object.entries},{"../../modules/_core":99,"../../modules/es7.object.entries":182}],83:[function(M,Y,o){M("../../modules/es6.object.get-own-property-names");var L=M("../../modules/_core").Object;Y.exports=function(A){return L.getOwnPropertyNames(A)}},{"../../modules/_core":99,"../../modules/es6.object.get-own-property-names":174}],84:[function(M,Y,o){M("../../modules/es6.object.get-prototype-of"),Y.exports=M("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":99,"../../modules/es6.object.get-prototype-of":175}],85:[function(M,Y,o){M("../../modules/es6.object.keys"),Y.exports=M("../../modules/_core").Object.keys},{"../../modules/_core":99,"../../modules/es6.object.keys":176}],86:[function(M,Y,o){M("../modules/es6.object.to-string"),M("../modules/es6.string.iterator"),M("../modules/web.dom.iterable"),M("../modules/es6.promise"),M("../modules/es7.promise.finally"),M("../modules/es7.promise.try"),Y.exports=M("../modules/_core").Promise},{"../modules/_core":99,"../modules/es6.object.to-string":177,"../modules/es6.promise":178,"../modules/es6.string.iterator":180,"../modules/es7.promise.finally":183,"../modules/es7.promise.try":184,"../modules/web.dom.iterable":187}],87:[function(M,Y,o){M("../modules/web.immediate"),Y.exports=M("../modules/_core").setImmediate},{"../modules/_core":99,"../modules/web.immediate":188}],88:[function(M,Y,o){M("../../modules/es6.string.from-code-point"),Y.exports=M("../../modules/_core").String.fromCodePoint},{"../../modules/_core":99,"../../modules/es6.string.from-code-point":179}],89:[function(M,Y,o){M("../../modules/es6.function.has-instance"),Y.exports=M("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":165,"../../modules/es6.function.has-instance":170}],90:[function(M,Y,o){M("../../modules/es6.symbol"),M("../../modules/es6.object.to-string"),M("../../modules/es7.symbol.async-iterator"),M("../../modules/es7.symbol.observable"),Y.exports=M("../../modules/_core").Symbol},{"../../modules/_core":99,"../../modules/es6.object.to-string":177,"../../modules/es6.symbol":181,"../../modules/es7.symbol.async-iterator":185,"../../modules/es7.symbol.observable":186}],91:[function(M,Y,o){M("../../modules/es6.string.iterator"),M("../../modules/web.dom.iterable"),Y.exports=M("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":165,"../../modules/es6.string.iterator":180,"../../modules/web.dom.iterable":187}],92:[function(M,Y,o){Y.exports=function(L){if(typeof L!="function")throw TypeError(L+" is not a function!");return L}},{}],93:[function(M,Y,o){Y.exports=function(){}},{}],94:[function(M,Y,o){Y.exports=function(L,g,A,b){if(!(L instanceof g)||b!==void 0&&b in L)throw TypeError(A+": incorrect invocation!");return L}},{}],95:[function(M,Y,o){var L=M("./_is-object");Y.exports=function(g){if(!L(g))throw TypeError(g+" is not an object!");return g}},{"./_is-object":119}],96:[function(M,Y,o){var L=M("./_to-iobject"),g=M("./_to-length"),A=M("./_to-absolute-index");Y.exports=function(b){return function(y,x,w){var f=L(y),_=g(f.length),d=A(w,_),r;if(b&&x!=x){for(;_>d;)if(r=f[d++],r!=r)return!0}else for(;_>d;d++)if((b||d in f)&&f[d]===x)return b||d||0;return!b&&-1}}},{"./_to-absolute-index":156,"./_to-iobject":158,"./_to-length":159}],97:[function(M,Y,o){var L=M("./_cof"),g=M("./_wks")("toStringTag"),A=L(function(){return arguments}())=="Arguments",b=function(y,x){try{return y[x]}catch(w){}};Y.exports=function(y){var x,w,f;return y===void 0?"Undefined":y===null?"Null":typeof(w=b(x=Object(y),g))=="string"?w:A?L(x):(f=L(x))=="Object"&&typeof x.callee=="function"?"Arguments":f}},{"./_cof":98,"./_wks":166}],98:[function(M,Y,o){var L={}.toString;Y.exports=function(g){return L.call(g).slice(8,-1)}},{}],99:[function(M,Y,o){var L=Y.exports={version:"2.6.11"};typeof __e=="number"&&(__e=L)},{}],100:[function(M,Y,o){"use strict";var L=M("./_object-dp"),g=M("./_property-desc");Y.exports=function(A,b,y){b in A?L.f(A,b,g(0,y)):A[b]=y}},{"./_object-dp":132,"./_property-desc":146}],101:[function(M,Y,o){var L=M("./_a-function");Y.exports=function(g,A,b){if(L(g),A===void 0)return g;switch(b){case 1:return function(y){return g.call(A,y)};case 2:return function(y,x){return g.call(A,y,x)};case 3:return function(y,x,w){return g.call(A,y,x,w)}}return function(){return g.apply(A,arguments)}}},{"./_a-function":92}],102:[function(M,Y,o){Y.exports=function(L){if(L==null)throw TypeError("Can't call method on "+L);return L}},{}],103:[function(M,Y,o){Y.exports=!M("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":108}],104:[function(M,Y,o){var L=M("./_is-object"),g=M("./_global").document,A=L(g)&&L(g.createElement);Y.exports=function(b){return A?g.createElement(b):{}}},{"./_global":110,"./_is-object":119}],105:[function(M,Y,o){Y.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],106:[function(M,Y,o){var L=M("./_object-keys"),g=M("./_object-gops"),A=M("./_object-pie");Y.exports=function(b){var y=L(b),x=g.f;if(x)for(var w=x(b),f=A.f,_=0,d;w.length>_;)f.call(b,d=w[_++])&&y.push(d);return y}},{"./_object-gops":137,"./_object-keys":140,"./_object-pie":141}],107:[function(M,Y,o){var L=M("./_global"),g=M("./_core"),A=M("./_ctx"),b=M("./_hide"),y=M("./_has"),x="prototype",w=function(f,_,d){var r=f&w.F,u=f&w.G,t=f&w.S,a=f&w.P,n=f&w.B,i=f&w.W,h=u?g:g[_]||(g[_]={}),l=h[x],s=u?L:t?L[_]:(L[_]||{})[x],p,O,S;u&&(d=_);for(p in d){if(O=!r&&s&&s[p]!==void 0,O&&y(h,p))continue;S=O?s[p]:d[p],h[p]=u&&typeof s[p]!="function"?d[p]:n&&O?A(S,L):i&&s[p]==S?function(v){var P=function(R,E,C){if(this instanceof v){switch(arguments.length){case 0:return new v;case 1:return new v(R);case 2:return new v(R,E)}return new v(R,E,C)}return v.apply(this,arguments)};return P[x]=v[x],P}(S):a&&typeof S=="function"?A(Function.call,S):S,a&&((h.virtual||(h.virtual={}))[p]=S,f&w.R&&l&&!l[p]&&b(l,p,S))}};w.F=1,w.G=2,w.S=4,w.P=8,w.B=16,w.W=32,w.U=64,w.R=128,Y.exports=w},{"./_core":99,"./_ctx":101,"./_global":110,"./_has":111,"./_hide":112}],108:[function(M,Y,o){Y.exports=function(L){try{return!!L()}catch(g){return!0}}},{}],109:[function(M,Y,o){var L=M("./_ctx"),g=M("./_iter-call"),A=M("./_is-array-iter"),b=M("./_an-object"),y=M("./_to-length"),x=M("./core.get-iterator-method"),w={},f={},o=Y.exports=function(_,d,r,u,t){var a=t?function(){return _}:x(_),n=L(r,u,d?2:1),i=0,h,l,s,p;if(typeof a!="function")throw TypeError(_+" is not iterable!");if(A(a)){for(h=y(_.length);h>i;i++)if(p=d?n(b(l=_[i])[0],l[1]):n(_[i]),p===w||p===f)return p}else for(s=a.call(_);!(l=s.next()).done;)if(p=g(s,n,l.value,d),p===w||p===f)return p};o.BREAK=w,o.RETURN=f},{"./_an-object":95,"./_ctx":101,"./_is-array-iter":117,"./_iter-call":120,"./_to-length":159,"./core.get-iterator-method":167}],110:[function(M,Y,o){var L=Y.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=L)},{}],111:[function(M,Y,o){var L={}.hasOwnProperty;Y.exports=function(g,A){return L.call(g,A)}},{}],112:[function(M,Y,o){var L=M("./_object-dp"),g=M("./_property-desc");Y.exports=M("./_descriptors")?function(A,b,y){return L.f(A,b,g(1,y))}:function(A,b,y){return A[b]=y,A}},{"./_descriptors":103,"./_object-dp":132,"./_property-desc":146}],113:[function(M,Y,o){var L=M("./_global").document;Y.exports=L&&L.documentElement},{"./_global":110}],114:[function(M,Y,o){Y.exports=!M("./_descriptors")&&!M("./_fails")(function(){return Object.defineProperty(M("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":103,"./_dom-create":104,"./_fails":108}],115:[function(M,Y,o){Y.exports=function(L,g,A){var b=A===void 0;switch(g.length){case 0:return b?L():L.call(A);case 1:return b?L(g[0]):L.call(A,g[0]);case 2:return b?L(g[0],g[1]):L.call(A,g[0],g[1]);case 3:return b?L(g[0],g[1],g[2]):L.call(A,g[0],g[1],g[2]);case 4:return b?L(g[0],g[1],g[2],g[3]):L.call(A,g[0],g[1],g[2],g[3])}return L.apply(A,g)}},{}],116:[function(M,Y,o){var L=M("./_cof");Y.exports=Object("z").propertyIsEnumerable(0)?Object:function(g){return L(g)=="String"?g.split(""):Object(g)}},{"./_cof":98}],117:[function(M,Y,o){var L=M("./_iterators"),g=M("./_wks")("iterator"),A=Array.prototype;Y.exports=function(b){return b!==void 0&&(L.Array===b||A[g]===b)}},{"./_iterators":125,"./_wks":166}],118:[function(M,Y,o){var L=M("./_cof");Y.exports=Array.isArray||function(A){return L(A)=="Array"}},{"./_cof":98}],119:[function(M,Y,o){Y.exports=function(L){return typeof L=="object"?L!==null:typeof L=="function"}},{}],120:[function(M,Y,o){var L=M("./_an-object");Y.exports=function(g,A,b,y){try{return y?A(L(b)[0],b[1]):A(b)}catch(w){var x=g.return;throw x!==void 0&&L(x.call(g)),w}}},{"./_an-object":95}],121:[function(M,Y,o){"use strict";var L=M("./_object-create"),g=M("./_property-desc"),A=M("./_set-to-string-tag"),b={};M("./_hide")(b,M("./_wks")("iterator"),function(){return this}),Y.exports=function(y,x,w){y.prototype=L(b,{next:g(1,w)}),A(y,x+" Iterator")}},{"./_hide":112,"./_object-create":131,"./_property-desc":146,"./_set-to-string-tag":150,"./_wks":166}],122:[function(M,Y,o){"use strict";var L=M("./_library"),g=M("./_export"),A=M("./_redefine"),b=M("./_hide"),y=M("./_iterators"),x=M("./_iter-create"),w=M("./_set-to-string-tag"),f=M("./_object-gpo"),_=M("./_wks")("iterator"),d=!([].keys&&"next"in[].keys()),r="@@iterator",u="keys",t="values",a=function(){return this};Y.exports=function(n,i,h,l,s,p,O){x(h,i,l);var S=function(F){if(!d&&F in E)return E[F];switch(F){case u:return function(){return new h(this,F)};case t:return function(){return new h(this,F)}}return function(){return new h(this,F)}},v=i+" Iterator",P=s==t,R=!1,E=n.prototype,C=E[_]||E[r]||s&&E[s],m=C||S(s),T=s?P?S("entries"):m:void 0,I=i=="Array"&&E.entries||C,D,N,z;if(I&&(z=f(I.call(new n)),z!==Object.prototype&&z.next&&(w(z,v,!0),!L&&typeof z[_]!="function"&&b(z,_,a))),P&&C&&C.name!==t&&(R=!0,m=function(){return C.call(this)}),(!L||O)&&(d||R||!E[_])&&b(E,_,m),y[i]=m,y[v]=a,s)if(D={values:P?m:S(t),keys:p?m:S(u),entries:T},O)for(N in D)N in E||A(E,N,D[N]);else g(g.P+g.F*(d||R),i,D);return D}},{"./_export":107,"./_hide":112,"./_iter-create":121,"./_iterators":125,"./_library":126,"./_object-gpo":138,"./_redefine":148,"./_set-to-string-tag":150,"./_wks":166}],123:[function(M,Y,o){var L=M("./_wks")("iterator"),g=!1;try{var A=[7][L]();A.return=function(){g=!0},Array.from(A,function(){throw 2})}catch(b){}Y.exports=function(b,y){if(!y&&!g)return!1;var x=!1;try{var w=[7],f=w[L]();f.next=function(){return{done:x=!0}},w[L]=function(){return f},b(w)}catch(_){}return x}},{"./_wks":166}],124:[function(M,Y,o){Y.exports=function(L,g){return{value:g,done:!!L}}},{}],125:[function(M,Y,o){Y.exports={}},{}],126:[function(M,Y,o){Y.exports=!0},{}],127:[function(M,Y,o){var L=M("./_uid")("meta"),g=M("./_is-object"),A=M("./_has"),b=M("./_object-dp").f,y=0,x=Object.isExtensible||function(){return!0},w=!M("./_fails")(function(){return x(Object.preventExtensions({}))}),f=function(t){b(t,L,{value:{i:"O"+ ++y,w:{}}})},_=function(t,a){if(!g(t))return typeof t=="symbol"?t:(typeof t=="string"?"S":"P")+t;if(!A(t,L)){if(!x(t))return"F";if(!a)return"E";f(t)}return t[L].i},d=function(t,a){if(!A(t,L)){if(!x(t))return!0;if(!a)return!1;f(t)}return t[L].w},r=function(t){return w&&u.NEED&&x(t)&&!A(t,L)&&f(t),t},u=Y.exports={KEY:L,NEED:!1,fastKey:_,getWeak:d,onFreeze:r}},{"./_fails":108,"./_has":111,"./_is-object":119,"./_object-dp":132,"./_uid":162}],128:[function(M,Y,o){var L=M("./_global"),g=M("./_task").set,A=L.MutationObserver||L.WebKitMutationObserver,b=L.process,y=L.Promise,x=M("./_cof")(b)=="process";Y.exports=function(){var w,f,_,d=function(){var a,n;for(x&&(a=b.domain)&&a.exit();w;){n=w.fn,w=w.next;try{n()}catch(i){throw w?_():f=void 0,i}}f=void 0,a&&a.enter()};if(x)_=function(){b.nextTick(d)};else if(A&&!(L.navigator&&L.navigator.standalone)){var r=!0,u=document.createTextNode("");new A(d).observe(u,{characterData:!0}),_=function(){u.data=r=!r}}else if(y&&y.resolve){var t=y.resolve(void 0);_=function(){t.then(d)}}else _=function(){g.call(L,d)};return function(a){var n={fn:a,next:void 0};f&&(f.next=n),w||(w=n,_()),f=n}}},{"./_cof":98,"./_global":110,"./_task":155}],129:[function(M,Y,o){"use strict";var L=M("./_a-function");function g(A){var b,y;this.promise=new A(function(x,w){if(b!==void 0||y!==void 0)throw TypeError("Bad Promise constructor");b=x,y=w}),this.resolve=L(b),this.reject=L(y)}Y.exports.f=function(A){return new g(A)}},{"./_a-function":92}],130:[function(M,Y,o){"use strict";var L=M("./_descriptors"),g=M("./_object-keys"),A=M("./_object-gops"),b=M("./_object-pie"),y=M("./_to-object"),x=M("./_iobject"),w=Object.assign;Y.exports=!w||M("./_fails")(function(){var f={},_={},d=Symbol(),r="abcdefghijklmnopqrst";return f[d]=7,r.split("").forEach(function(u){_[u]=u}),w({},f)[d]!=7||Object.keys(w({},_)).join("")!=r})?function(_,d){for(var r=y(_),u=arguments.length,t=1,a=A.f,n=b.f;u>t;)for(var i=x(arguments[t++]),h=a?g(i).concat(a(i)):g(i),l=h.length,s=0,p;l>s;)p=h[s++],(!L||n.call(i,p))&&(r[p]=i[p]);return r}:w},{"./_descriptors":103,"./_fails":108,"./_iobject":116,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_to-object":160}],131:[function(M,Y,o){var L=M("./_an-object"),g=M("./_object-dps"),A=M("./_enum-bug-keys"),b=M("./_shared-key")("IE_PROTO"),y=function(){},x="prototype",w=function(){var f=M("./_dom-create")("iframe"),_=A.length,d="<",r=">",u;for(f.style.display="none",M("./_html").appendChild(f),f.src="javascript:",u=f.contentWindow.document,u.open(),u.write(d+"script"+r+"document.F=Object"+d+"/script"+r),u.close(),w=u.F;_--;)delete w[x][A[_]];return w()};Y.exports=Object.create||function(_,d){var r;return _!==null?(y[x]=L(_),r=new y,y[x]=null,r[b]=_):r=w(),d===void 0?r:g(r,d)}},{"./_an-object":95,"./_dom-create":104,"./_enum-bug-keys":105,"./_html":113,"./_object-dps":133,"./_shared-key":151}],132:[function(M,Y,o){var L=M("./_an-object"),g=M("./_ie8-dom-define"),A=M("./_to-primitive"),b=Object.defineProperty;o.f=M("./_descriptors")?Object.defineProperty:function(x,w,f){if(L(x),w=A(w,!0),L(f),g)try{return b(x,w,f)}catch(_){}if("get"in f||"set"in f)throw TypeError("Accessors not supported!");return"value"in f&&(x[w]=f.value),x}},{"./_an-object":95,"./_descriptors":103,"./_ie8-dom-define":114,"./_to-primitive":161}],133:[function(M,Y,o){var L=M("./_object-dp"),g=M("./_an-object"),A=M("./_object-keys");Y.exports=M("./_descriptors")?Object.defineProperties:function(y,x){g(y);for(var w=A(x),f=w.length,_=0,d;f>_;)L.f(y,d=w[_++],x[d]);return y}},{"./_an-object":95,"./_descriptors":103,"./_object-dp":132,"./_object-keys":140}],134:[function(M,Y,o){var L=M("./_object-pie"),g=M("./_property-desc"),A=M("./_to-iobject"),b=M("./_to-primitive"),y=M("./_has"),x=M("./_ie8-dom-define"),w=Object.getOwnPropertyDescriptor;o.f=M("./_descriptors")?w:function(_,d){if(_=A(_),d=b(d,!0),x)try{return w(_,d)}catch(r){}if(y(_,d))return g(!L.f.call(_,d),_[d])}},{"./_descriptors":103,"./_has":111,"./_ie8-dom-define":114,"./_object-pie":141,"./_property-desc":146,"./_to-iobject":158,"./_to-primitive":161}],135:[function(M,Y,o){var L=M("./_to-iobject"),g=M("./_object-gopn").f,A={}.toString,b=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],y=function(x){try{return g(x)}catch(w){return b.slice()}};Y.exports.f=function(w){return b&&A.call(w)=="[object Window]"?y(w):g(L(w))}},{"./_object-gopn":136,"./_to-iobject":158}],136:[function(M,Y,o){var L=M("./_object-keys-internal"),g=M("./_enum-bug-keys").concat("length","prototype");o.f=Object.getOwnPropertyNames||function(b){return L(b,g)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],137:[function(M,Y,o){o.f=Object.getOwnPropertySymbols},{}],138:[function(M,Y,o){var L=M("./_has"),g=M("./_to-object"),A=M("./_shared-key")("IE_PROTO"),b=Object.prototype;Y.exports=Object.getPrototypeOf||function(y){return y=g(y),L(y,A)?y[A]:typeof y.constructor=="function"&&y instanceof y.constructor?y.constructor.prototype:y instanceof Object?b:null}},{"./_has":111,"./_shared-key":151,"./_to-object":160}],139:[function(M,Y,o){var L=M("./_has"),g=M("./_to-iobject"),A=M("./_array-includes")(!1),b=M("./_shared-key")("IE_PROTO");Y.exports=function(y,x){var w=g(y),f=0,_=[],d;for(d in w)d!=b&&(L(w,d)&&_.push(d));for(;x.length>f;)L(w,d=x[f++])&&(~A(_,d)||_.push(d));return _}},{"./_array-includes":96,"./_has":111,"./_shared-key":151,"./_to-iobject":158}],140:[function(M,Y,o){var L=M("./_object-keys-internal"),g=M("./_enum-bug-keys");Y.exports=Object.keys||function(b){return L(b,g)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],141:[function(M,Y,o){o.f={}.propertyIsEnumerable},{}],142:[function(M,Y,o){var L=M("./_export"),g=M("./_core"),A=M("./_fails");Y.exports=function(b,y){var x=(g.Object||{})[b]||Object[b],w={};w[b]=y(x),L(L.S+L.F*A(function(){x(1)}),"Object",w)}},{"./_core":99,"./_export":107,"./_fails":108}],143:[function(M,Y,o){var L=M("./_descriptors"),g=M("./_object-keys"),A=M("./_to-iobject"),b=M("./_object-pie").f;Y.exports=function(y){return function(x){for(var w=A(x),f=g(w),_=f.length,d=0,r=[],u;_>d;)u=f[d++],(!L||b.call(w,u))&&r.push(y?[u,w[u]]:w[u]);return r}}},{"./_descriptors":103,"./_object-keys":140,"./_object-pie":141,"./_to-iobject":158}],144:[function(M,Y,o){Y.exports=function(L){try{return{e:!1,v:L()}}catch(g){return{e:!0,v:g}}}},{}],145:[function(M,Y,o){var L=M("./_an-object"),g=M("./_is-object"),A=M("./_new-promise-capability");Y.exports=function(b,y){if(L(b),g(y)&&y.constructor===b)return y;var x=A.f(b),w=x.resolve;return w(y),x.promise}},{"./_an-object":95,"./_is-object":119,"./_new-promise-capability":129}],146:[function(M,Y,o){Y.exports=function(L,g){return{enumerable:!(L&1),configurable:!(L&2),writable:!(L&4),value:g}}},{}],147:[function(M,Y,o){var L=M("./_hide");Y.exports=function(g,A,b){for(var y in A)b&&g[y]?g[y]=A[y]:L(g,y,A[y]);return g}},{"./_hide":112}],148:[function(M,Y,o){Y.exports=M("./_hide")},{"./_hide":112}],149:[function(M,Y,o){"use strict";var L=M("./_global"),g=M("./_core"),A=M("./_object-dp"),b=M("./_descriptors"),y=M("./_wks")("species");Y.exports=function(x){var w=typeof g[x]=="function"?g[x]:L[x];b&&w&&!w[y]&&A.f(w,y,{configurable:!0,get:function(){return this}})}},{"./_core":99,"./_descriptors":103,"./_global":110,"./_object-dp":132,"./_wks":166}],150:[function(M,Y,o){var L=M("./_object-dp").f,g=M("./_has"),A=M("./_wks")("toStringTag");Y.exports=function(b,y,x){b&&!g(b=x?b:b.prototype,A)&&L(b,A,{configurable:!0,value:y})}},{"./_has":111,"./_object-dp":132,"./_wks":166}],151:[function(M,Y,o){var L=M("./_shared")("keys"),g=M("./_uid");Y.exports=function(A){return L[A]||(L[A]=g(A))}},{"./_shared":152,"./_uid":162}],152:[function(M,Y,o){var L=M("./_core"),g=M("./_global"),A="__core-js_shared__",b=g[A]||(g[A]={});(Y.exports=function(y,x){return b[y]||(b[y]=x!==void 0?x:{})})("versions",[]).push({version:L.version,mode:M("./_library")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":99,"./_global":110,"./_library":126}],153:[function(M,Y,o){var L=M("./_an-object"),g=M("./_a-function"),A=M("./_wks")("species");Y.exports=function(b,y){var x=L(b).constructor,w;return x===void 0||(w=L(x)[A])==null?y:g(w)}},{"./_a-function":92,"./_an-object":95,"./_wks":166}],154:[function(M,Y,o){var L=M("./_to-integer"),g=M("./_defined");Y.exports=function(A){return function(b,y){var x=String(g(b)),w=L(y),f=x.length,_,d;return w<0||w>=f?A?"":void 0:(_=x.charCodeAt(w),_<55296||_>56319||w+1===f||(d=x.charCodeAt(w+1))<56320||d>57343?A?x.charAt(w):_:A?x.slice(w,w+2):(_-55296<<10)+(d-56320)+65536)}}},{"./_defined":102,"./_to-integer":157}],155:[function(M,Y,o){var L=M("./_ctx"),g=M("./_invoke"),A=M("./_html"),b=M("./_dom-create"),y=M("./_global"),x=y.process,w=y.setImmediate,f=y.clearImmediate,_=y.MessageChannel,d=y.Dispatch,r=0,u={},t="onreadystatechange",a,n,i,h=function(){var s=+this;if(u.hasOwnProperty(s)){var p=u[s];delete u[s],p()}},l=function(s){h.call(s.data)};(!w||!f)&&(w=function(p){for(var O=[],S=1;arguments.length>S;)O.push(arguments[S++]);return u[++r]=function(){g(typeof p=="function"?p:Function(p),O)},a(r),r},f=function(p){delete u[p]},M("./_cof")(x)=="process"?a=function(s){x.nextTick(L(h,s,1))}:d&&d.now?a=function(s){d.now(L(h,s,1))}:_?(n=new _,i=n.port2,n.port1.onmessage=l,a=L(i.postMessage,i,1)):y.addEventListener&&typeof postMessage=="function"&&!y.importScripts?(a=function(s){y.postMessage(s+"","*")},y.addEventListener("message",l,!1)):t in b("script")?a=function(s){A.appendChild(b("script"))[t]=function(){A.removeChild(this),h.call(s)}}:a=function(s){setTimeout(L(h,s,1),0)}),Y.exports={set:w,clear:f}},{"./_cof":98,"./_ctx":101,"./_dom-create":104,"./_global":110,"./_html":113,"./_invoke":115}],156:[function(M,Y,o){var L=M("./_to-integer"),g=Math.max,A=Math.min;Y.exports=function(b,y){return b=L(b),b<0?g(b+y,0):A(b,y)}},{"./_to-integer":157}],157:[function(M,Y,o){var L=Math.ceil,g=Math.floor;Y.exports=function(A){return isNaN(A=+A)?0:(A>0?g:L)(A)}},{}],158:[function(M,Y,o){var L=M("./_iobject"),g=M("./_defined");Y.exports=function(A){return L(g(A))}},{"./_defined":102,"./_iobject":116}],159:[function(M,Y,o){var L=M("./_to-integer"),g=Math.min;Y.exports=function(A){return A>0?g(L(A),9007199254740991):0}},{"./_to-integer":157}],160:[function(M,Y,o){var L=M("./_defined");Y.exports=function(g){return Object(L(g))}},{"./_defined":102}],161:[function(M,Y,o){var L=M("./_is-object");Y.exports=function(g,A){if(!L(g))return g;var b,y;if(A&&typeof(b=g.toString)=="function"&&!L(y=b.call(g)))return y;if(typeof(b=g.valueOf)=="function"&&!L(y=b.call(g)))return y;if(!A&&typeof(b=g.toString)=="function"&&!L(y=b.call(g)))return y;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":119}],162:[function(M,Y,o){var L=0,g=Math.random();Y.exports=function(A){return"Symbol(".concat(A===void 0?"":A,")_",(++L+g).toString(36))}},{}],163:[function(M,Y,o){var L=M("./_global"),g=L.navigator;Y.exports=g&&g.userAgent||""},{"./_global":110}],164:[function(M,Y,o){var L=M("./_global"),g=M("./_core"),A=M("./_library"),b=M("./_wks-ext"),y=M("./_object-dp").f;Y.exports=function(x){var w=g.Symbol||(g.Symbol=A?{}:L.Symbol||{});x.charAt(0)!="_"&&!(x in w)&&y(w,x,{value:b.f(x)})}},{"./_core":99,"./_global":110,"./_library":126,"./_object-dp":132,"./_wks-ext":165}],165:[function(M,Y,o){o.f=M("./_wks")},{"./_wks":166}],166:[function(M,Y,o){var L=M("./_shared")("wks"),g=M("./_uid"),A=M("./_global").Symbol,b=typeof A=="function",y=Y.exports=function(x){return L[x]||(L[x]=b&&A[x]||(b?A:g)("Symbol."+x))};y.store=L},{"./_global":110,"./_shared":152,"./_uid":162}],167:[function(M,Y,o){var L=M("./_classof"),g=M("./_wks")("iterator"),A=M("./_iterators");Y.exports=M("./_core").getIteratorMethod=function(b){if(b!=null)return b[g]||b["@@iterator"]||A[L(b)]}},{"./_classof":97,"./_core":99,"./_iterators":125,"./_wks":166}],168:[function(M,Y,o){"use strict";var L=M("./_ctx"),g=M("./_export"),A=M("./_to-object"),b=M("./_iter-call"),y=M("./_is-array-iter"),x=M("./_to-length"),w=M("./_create-property"),f=M("./core.get-iterator-method");g(g.S+g.F*!M("./_iter-detect")(function(_){Array.from(_)}),"Array",{from:function(d){var r=A(d),u=typeof this=="function"?this:Array,t=arguments.length,a=t>1?arguments[1]:void 0,n=a!==void 0,i=0,h=f(r),l,s,p,O;if(n&&(a=L(a,t>2?arguments[2]:void 0,2)),h!=null&&!(u==Array&&y(h)))for(O=h.call(r),s=new u;!(p=O.next()).done;i++)w(s,i,n?b(O,a,[p.value,i],!0):p.value);else for(l=x(r.length),s=new u(l);l>i;i++)w(s,i,n?a(r[i],i):r[i]);return s.length=i,s}})},{"./_create-property":100,"./_ctx":101,"./_export":107,"./_is-array-iter":117,"./_iter-call":120,"./_iter-detect":123,"./_to-length":159,"./_to-object":160,"./core.get-iterator-method":167}],169:[function(M,Y,o){"use strict";var L=M("./_add-to-unscopables"),g=M("./_iter-step"),A=M("./_iterators"),b=M("./_to-iobject");Y.exports=M("./_iter-define")(Array,"Array",function(y,x){this._t=b(y),this._i=0,this._k=x},function(){var y=this._t,x=this._k,w=this._i++;return!y||w>=y.length?(this._t=void 0,g(1)):x=="keys"?g(0,w):x=="values"?g(0,y[w]):g(0,[w,y[w]])},"values"),A.Arguments=A.Array,L("keys"),L("values"),L("entries")},{"./_add-to-unscopables":93,"./_iter-define":122,"./_iter-step":124,"./_iterators":125,"./_to-iobject":158}],170:[function(M,Y,o){"use strict";var L=M("./_is-object"),g=M("./_object-gpo"),A=M("./_wks")("hasInstance"),b=Function.prototype;A in b||M("./_object-dp").f(b,A,{value:function(y){if(typeof this!="function"||!L(y))return!1;if(!L(this.prototype))return y instanceof this;for(;y=g(y);)if(this.prototype===y)return!0;return!1}})},{"./_is-object":119,"./_object-dp":132,"./_object-gpo":138,"./_wks":166}],171:[function(M,Y,o){var L=M("./_export");L(L.S+L.F,"Object",{assign:M("./_object-assign")})},{"./_export":107,"./_object-assign":130}],172:[function(M,Y,o){var L=M("./_export");L(L.S,"Object",{create:M("./_object-create")})},{"./_export":107,"./_object-create":131}],173:[function(M,Y,o){var L=M("./_export");L(L.S+L.F*!M("./_descriptors"),"Object",{defineProperty:M("./_object-dp").f})},{"./_descriptors":103,"./_export":107,"./_object-dp":132}],174:[function(M,Y,o){M("./_object-sap")("getOwnPropertyNames",function(){return M("./_object-gopn-ext").f})},{"./_object-gopn-ext":135,"./_object-sap":142}],175:[function(M,Y,o){var L=M("./_to-object"),g=M("./_object-gpo");M("./_object-sap")("getPrototypeOf",function(){return function(b){return g(L(b))}})},{"./_object-gpo":138,"./_object-sap":142,"./_to-object":160}],176:[function(M,Y,o){var L=M("./_to-object"),g=M("./_object-keys");M("./_object-sap")("keys",function(){return function(b){return g(L(b))}})},{"./_object-keys":140,"./_object-sap":142,"./_to-object":160}],177:[function(M,Y,o){arguments[4][71][0].apply(o,arguments)},{dup:71}],178:[function(M,Y,o){"use strict";var L=M("./_library"),g=M("./_global"),A=M("./_ctx"),b=M("./_classof"),y=M("./_export"),x=M("./_is-object"),w=M("./_a-function"),f=M("./_an-instance"),_=M("./_for-of"),d=M("./_species-constructor"),r=M("./_task").set,u=M("./_microtask")(),t=M("./_new-promise-capability"),a=M("./_perform"),n=M("./_user-agent"),i=M("./_promise-resolve"),h="Promise",l=g.TypeError,s=g.process,p=s&&s.versions,O=p&&p.v8||"",S=g[h],v=b(s)=="process",P=function(){},R,E,C,m,T=E=t.f,I=!!function(){try{var k=S.resolve(1),G=(k.constructor={})[M("./_wks")("species")]=function(ne){ne(P,P)};return(v||typeof PromiseRejectionEvent=="function")&&k.then(P)instanceof G&&O.indexOf("6.6")!==0&&n.indexOf("Chrome/66")===-1}catch(ne){}}(),D=function(k){var G;return x(k)&&typeof(G=k.then)=="function"?G:!1},N=function(k,G){if(k._n)return;k._n=!0;var ne=k._c;u(function(){for(var fe=k._v,de=k._s==1,xe=0,Oe=function(ce){var be=de?ce.ok:ce.fail,ve=ce.resolve,ue=ce.reject,se=ce.domain,q,me,re;try{be?(de||(k._h==2&&W(k),k._h=1),be===!0?q=fe:(se&&se.enter(),q=be(fe),se&&(se.exit(),re=!0)),q===ce.promise?ue(l("Promise-chain cycle")):(me=D(q))?me.call(q,ve,ue):ve(q)):ue(fe)}catch(ie){se&&!re&&se.exit(),ue(ie)}};ne.length>xe;)Oe(ne[xe++]);k._c=[],k._n=!1,G&&!k._h&&z(k)})},z=function(k){r.call(g,function(){var G=k._v,ne=F(k),fe,de,xe;if(ne&&(fe=a(function(){v?s.emit("unhandledRejection",G,k):(de=g.onunhandledrejection)?de({promise:k,reason:G}):(xe=g.console)&&xe.error&&xe.error("Unhandled promise rejection",G)}),k._h=v||F(k)?2:1),k._a=void 0,ne&&fe.e)throw fe.v})},F=function(k){return k._h!==1&&(k._a||k._c).length===0},W=function(k){r.call(g,function(){var G;v?s.emit("rejectionHandled",k):(G=g.onrejectionhandled)&&G({promise:k,reason:k._v})})},K=function(k){var G=this;if(G._d)return;G._d=!0,G=G._w||G,G._v=k,G._s=2,G._a||(G._a=G._c.slice()),N(G,!0)},B=function(k){var G=this,ne;if(G._d)return;G._d=!0,G=G._w||G;try{if(G===k)throw l("Promise can't be resolved itself");(ne=D(k))?u(function(){var fe={_w:G,_d:!1};try{ne.call(k,A(B,fe,1),A(K,fe,1))}catch(de){K.call(fe,de)}}):(G._v=k,G._s=1,N(G,!1))}catch(fe){K.call({_w:G,_d:!1},fe)}};I||(S=function(G){f(this,S,h,"_h"),w(G),R.call(this);try{G(A(B,this,1),A(K,this,1))}catch(ne){K.call(this,ne)}},R=function(G){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},R.prototype=M("./_redefine-all")(S.prototype,{then:function(G,ne){var fe=T(d(this,S));return fe.ok=typeof G=="function"?G:!0,fe.fail=typeof ne=="function"&&ne,fe.domain=v?s.domain:void 0,this._c.push(fe),this._a&&this._a.push(fe),this._s&&N(this,!1),fe.promise},catch:function(k){return this.then(void 0,k)}}),C=function(){var k=new R;this.promise=k,this.resolve=A(B,k,1),this.reject=A(K,k,1)},t.f=T=function(k){return k===S||k===m?new C(k):E(k)}),y(y.G+y.W+y.F*!I,{Promise:S}),M("./_set-to-string-tag")(S,h),M("./_set-species")(h),m=M("./_core")[h],y(y.S+y.F*!I,h,{reject:function(G){var ne=T(this),fe=ne.reject;return fe(G),ne.promise}}),y(y.S+y.F*(L||!I),h,{resolve:function(G){return i(L&&this===m?S:this,G)}}),y(y.S+y.F*!(I&&M("./_iter-detect")(function(k){S.all(k).catch(P)})),h,{all:function(G){var ne=this,fe=T(ne),de=fe.resolve,xe=fe.reject,Oe=a(function(){var ce=[],be=0,ve=1;_(G,!1,function(ue){var se=be++,q=!1;ce.push(void 0),ve++,ne.resolve(ue).then(function(me){if(q)return;q=!0,ce[se]=me,--ve||de(ce)},xe)}),--ve||de(ce)});return Oe.e&&xe(Oe.v),fe.promise},race:function(G){var ne=this,fe=T(ne),de=fe.reject,xe=a(function(){_(G,!1,function(Oe){ne.resolve(Oe).then(fe.resolve,de)})});return xe.e&&de(xe.v),fe.promise}})},{"./_a-function":92,"./_an-instance":94,"./_classof":97,"./_core":99,"./_ctx":101,"./_export":107,"./_for-of":109,"./_global":110,"./_is-object":119,"./_iter-detect":123,"./_library":126,"./_microtask":128,"./_new-promise-capability":129,"./_perform":144,"./_promise-resolve":145,"./_redefine-all":147,"./_set-species":149,"./_set-to-string-tag":150,"./_species-constructor":153,"./_task":155,"./_user-agent":163,"./_wks":166}],179:[function(M,Y,o){var L=M("./_export"),g=M("./_to-absolute-index"),A=String.fromCharCode,b=String.fromCodePoint;L(L.S+L.F*(!!b&&b.length!=1),"String",{fromCodePoint:function(x){for(var w=[],f=arguments.length,_=0,d;f>_;){if(d=+arguments[_++],g(d,1114111)!==d)throw RangeError(d+" is not a valid code point");w.push(d<65536?A(d):A(((d-=65536)>>10)+55296,d%1024+56320))}return w.join("")}})},{"./_export":107,"./_to-absolute-index":156}],180:[function(M,Y,o){"use strict";var L=M("./_string-at")(!0);M("./_iter-define")(String,"String",function(g){this._t=String(g),this._i=0},function(){var g=this._t,A=this._i,b;return A>=g.length?{value:void 0,done:!0}:(b=L(g,A),this._i+=b.length,{value:b,done:!1})})},{"./_iter-define":122,"./_string-at":154}],181:[function(M,Y,o){"use strict";var L=M("./_global"),g=M("./_has"),A=M("./_descriptors"),b=M("./_export"),y=M("./_redefine"),x=M("./_meta").KEY,w=M("./_fails"),f=M("./_shared"),_=M("./_set-to-string-tag"),d=M("./_uid"),r=M("./_wks"),u=M("./_wks-ext"),t=M("./_wks-define"),a=M("./_enum-keys"),n=M("./_is-array"),i=M("./_an-object"),h=M("./_is-object"),l=M("./_to-object"),s=M("./_to-iobject"),p=M("./_to-primitive"),O=M("./_property-desc"),S=M("./_object-create"),v=M("./_object-gopn-ext"),P=M("./_object-gopd"),R=M("./_object-gops"),E=M("./_object-dp"),C=M("./_object-keys"),m=P.f,T=E.f,I=v.f,D=L.Symbol,N=L.JSON,z=N&&N.stringify,F="prototype",W=r("_hidden"),K=r("toPrimitive"),B={}.propertyIsEnumerable,k=f("symbol-registry"),G=f("symbols"),ne=f("op-symbols"),fe=Object[F],de=typeof D=="function"&&!!R.f,xe=L.QObject,Oe=!xe||!xe[F]||!xe[F].findChild,ce=A&&w(function(){return S(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a!=7})?function(Te,ke,tt){var ot=m(fe,ke);ot&&delete fe[ke],T(Te,ke,tt),ot&&Te!==fe&&T(fe,ke,ot)}:T,be=function(Te){var ke=G[Te]=S(D[F]);return ke._k=Te,ke},ve=de&&typeof D.iterator=="symbol"?function(Te){return typeof Te=="symbol"}:function(Te){return Te instanceof D},ue=function(ke,tt,ot){return ke===fe&&ue(ne,tt,ot),i(ke),tt=p(tt,!0),i(ot),g(G,tt)?(ot.enumerable?(g(ke,W)&&ke[W][tt]&&(ke[W][tt]=!1),ot=S(ot,{enumerable:O(0,!1)})):(g(ke,W)||T(ke,W,O(1,{})),ke[W][tt]=!0),ce(ke,tt,ot)):T(ke,tt,ot)},se=function(ke,tt){i(ke);for(var ot=a(tt=s(tt)),gt=0,Et=ot.length,xt;Et>gt;)ue(ke,xt=ot[gt++],tt[xt]);return ke},q=function(ke,tt){return tt===void 0?S(ke):se(S(ke),tt)},me=function(ke){var tt=B.call(this,ke=p(ke,!0));return this===fe&&g(G,ke)&&!g(ne,ke)?!1:tt||!g(this,ke)||!g(G,ke)||g(this,W)&&this[W][ke]?tt:!0},re=function(ke,tt){if(ke=s(ke),tt=p(tt,!0),ke===fe&&g(G,tt)&&!g(ne,tt))return;var ot=m(ke,tt);return ot&&g(G,tt)&&!(g(ke,W)&&ke[W][tt])&&(ot.enumerable=!0),ot},ie=function(ke){for(var tt=I(s(ke)),ot=[],gt=0,Et;tt.length>gt;)!g(G,Et=tt[gt++])&&Et!=W&&Et!=x&&ot.push(Et);return ot},we=function(ke){for(var tt=ke===fe,ot=I(tt?ne:s(ke)),gt=[],Et=0,xt;ot.length>Et;)g(G,xt=ot[Et++])&&(tt?g(fe,xt):!0)&&gt.push(G[xt]);return gt};de||(D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var ke=d(arguments.length>0?arguments[0]:void 0),tt=function(ot){this===fe&&tt.call(ne,ot),g(this,W)&&g(this[W],ke)&&(this[W][ke]=!1),ce(this,ke,O(1,ot))};return A&&Oe&&ce(fe,ke,{configurable:!0,set:tt}),be(ke)},y(D[F],"toString",function(){return this._k}),P.f=re,E.f=ue,M("./_object-gopn").f=v.f=ie,M("./_object-pie").f=me,R.f=we,A&&!M("./_library")&&y(fe,"propertyIsEnumerable",me,!0),u.f=function(Te){return be(r(Te))}),b(b.G+b.W+b.F*!de,{Symbol:D});for(var le="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),$=0;le.length>$;)r(le[$++]);for(var J=C(r.store),te=0;J.length>te;)t(J[te++]);b(b.S+b.F*!de,"Symbol",{for:function(Te){return g(k,Te+="")?k[Te]:k[Te]=D(Te)},keyFor:function(ke){if(!ve(ke))throw TypeError(ke+" is not a symbol!");for(var tt in k)if(k[tt]===ke)return tt},useSetter:function(){Oe=!0},useSimple:function(){Oe=!1}}),b(b.S+b.F*!de,"Object",{create:q,defineProperty:ue,defineProperties:se,getOwnPropertyDescriptor:re,getOwnPropertyNames:ie,getOwnPropertySymbols:we});var De=w(function(){R.f(1)});b(b.S+b.F*De,"Object",{getOwnPropertySymbols:function(ke){return R.f(l(ke))}}),N&&b(b.S+b.F*(!de||w(function(){var Te=D();return z([Te])!="[null]"||z({a:Te})!="{}"||z(Object(Te))!="{}"})),"JSON",{stringify:function(ke){for(var tt=[ke],ot=1,gt,Et;arguments.length>ot;)tt.push(arguments[ot++]);return Et=gt=tt[1],!h(gt)&&ke===void 0||ve(ke)?void 0:(n(gt)||(gt=function(xt,St){if(typeof Et=="function"&&(St=Et.call(this,xt,St)),!ve(St))return St}),tt[1]=gt,z.apply(N,tt))}}),D[F][K]||M("./_hide")(D[F],K,D[F].valueOf),_(D,"Symbol"),_(Math,"Math",!0),_(L.JSON,"JSON",!0)},{"./_an-object":95,"./_descriptors":103,"./_enum-keys":106,"./_export":107,"./_fails":108,"./_global":110,"./_has":111,"./_hide":112,"./_is-array":118,"./_is-object":119,"./_library":126,"./_meta":127,"./_object-create":131,"./_object-dp":132,"./_object-gopd":134,"./_object-gopn":136,"./_object-gopn-ext":135,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_property-desc":146,"./_redefine":148,"./_set-to-string-tag":150,"./_shared":152,"./_to-iobject":158,"./_to-object":160,"./_to-primitive":161,"./_uid":162,"./_wks":166,"./_wks-define":164,"./_wks-ext":165}],182:[function(M,Y,o){var L=M("./_export"),g=M("./_object-to-array")(!0);L(L.S,"Object",{entries:function(b){return g(b)}})},{"./_export":107,"./_object-to-array":143}],183:[function(M,Y,o){"use strict";var L=M("./_export"),g=M("./_core"),A=M("./_global"),b=M("./_species-constructor"),y=M("./_promise-resolve");L(L.P+L.R,"Promise",{finally:function(x){var w=b(this,g.Promise||A.Promise),f=typeof x=="function";return this.then(f?function(_){return y(w,x()).then(function(){return _})}:x,f?function(_){return y(w,x()).then(function(){throw _})}:x)}})},{"./_core":99,"./_export":107,"./_global":110,"./_promise-resolve":145,"./_species-constructor":153}],184:[function(M,Y,o){"use strict";var L=M("./_export"),g=M("./_new-promise-capability"),A=M("./_perform");L(L.S,"Promise",{try:function(b){var y=g.f(this),x=A(b);return(x.e?y.reject:y.resolve)(x.v),y.promise}})},{"./_export":107,"./_new-promise-capability":129,"./_perform":144}],185:[function(M,Y,o){M("./_wks-define")("asyncIterator")},{"./_wks-define":164}],186:[function(M,Y,o){M("./_wks-define")("observable")},{"./_wks-define":164}],187:[function(M,Y,o){M("./es6.array.iterator");for(var L=M("./_global"),g=M("./_hide"),A=M("./_iterators"),b=M("./_wks")("toStringTag"),y="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),x=0;x<y.length;x++){var w=y[x],f=L[w],_=f&&f.prototype;_&&!_[b]&&g(_,b,w),A[w]=A.Array}},{"./_global":110,"./_hide":112,"./_iterators":125,"./_wks":166,"./es6.array.iterator":169}],188:[function(M,Y,o){var L=M("./_export"),g=M("./_task");L(L.G+L.B,{setImmediate:g.set,clearImmediate:g.clear})},{"./_export":107,"./_task":155}],189:[function(M,Y,o){(function(L){"use strict";var g=M("babel-runtime/helpers/typeof"),A=b(g);function b(p){return p&&p.__esModule?p:{default:p}}function y(p){return Array.isArray?Array.isArray(p):s(p)==="[object Array]"}o.isArray=y;function x(p){return typeof p=="boolean"}o.isBoolean=x;function w(p){return p===null}o.isNull=w;function f(p){return p==null}o.isNullOrUndefined=f;function _(p){return typeof p=="number"}o.isNumber=_;function d(p){return typeof p=="string"}o.isString=d;function r(p){return(typeof p=="undefined"?"undefined":(0,A.default)(p))==="symbol"}o.isSymbol=r;function u(p){return p===void 0}o.isUndefined=u;function t(p){return s(p)==="[object RegExp]"}o.isRegExp=t;function a(p){return(typeof p=="undefined"?"undefined":(0,A.default)(p))==="object"&&p!==null}o.isObject=a;function n(p){return s(p)==="[object Date]"}o.isDate=n;function i(p){return s(p)==="[object Error]"||p instanceof Error}o.isError=i;function h(p){return typeof p=="function"}o.isFunction=h;function l(p){return p===null||typeof p=="boolean"||typeof p=="number"||typeof p=="string"||(typeof p=="undefined"?"undefined":(0,A.default)(p))==="symbol"||typeof p=="undefined"}o.isPrimitive=l,o.isBuffer=L.isBuffer;function s(p){return Object.prototype.toString.call(p)}}).call(this,{isBuffer:M("../../is-buffer/index.js")})},{"../../is-buffer/index.js":197,"babel-runtime/helpers/typeof":67}],190:[function(M,Y,o){"use strict";var L=M("babel-runtime/helpers/typeof"),g=A(L);function A(b){return b&&b.__esModule?b:{default:b}}(function(b){"use strict";var y=function(){var d=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,r=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,u=/[^-+\dA-Z]/g;return function(t,a,n,i){if(arguments.length===1&&_(t)==="string"&&!/\d/.test(t)&&(a=t,t=void 0),t=t||new Date,t instanceof Date||(t=new Date(t)),isNaN(t))throw TypeError("Invalid date");a=String(y.masks[a]||a||y.masks.default);var h=a.slice(0,4);(h==="UTC:"||h==="GMT:")&&(a=a.slice(4),n=!0,h==="GMT:"&&(i=!0));var l=n?"getUTC":"get",s=t[l+"Date"](),p=t[l+"Day"](),O=t[l+"Month"](),S=t[l+"FullYear"](),v=t[l+"Hours"](),P=t[l+"Minutes"](),R=t[l+"Seconds"](),E=t[l+"Milliseconds"](),C=n?0:t.getTimezoneOffset(),m=w(t),T=f(t),I={d:s,dd:x(s),ddd:y.i18n.dayNames[p],dddd:y.i18n.dayNames[p+7],m:O+1,mm:x(O+1),mmm:y.i18n.monthNames[O],mmmm:y.i18n.monthNames[O+12],yy:String(S).slice(2),yyyy:S,h:v%12||12,hh:x(v%12||12),H:v,HH:x(v),M:P,MM:x(P),s:R,ss:x(R),l:x(E,3),L:x(Math.round(E/10)),t:v<12?"a":"p",tt:v<12?"am":"pm",T:v<12?"A":"P",TT:v<12?"AM":"PM",Z:i?"GMT":n?"UTC":(String(t).match(r)||[""]).pop().replace(u,""),o:(C>0?"-":"+")+x(Math.floor(Math.abs(C)/60)*100+Math.abs(C)%60,4),S:["th","st","nd","rd"][s%10>3?0:(s%100-s%10!=10)*s%10],W:m,N:T};return a.replace(d,function(D){return D in I?I[D]:D.slice(1,D.length-1)})}}();y.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},y.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};function x(d,r){for(d=String(d),r=r||2;d.length<r;)d="0"+d;return d}function w(d){var r=new Date(d.getFullYear(),d.getMonth(),d.getDate());r.setDate(r.getDate()-(r.getDay()+6)%7+3);var u=new Date(r.getFullYear(),0,4);u.setDate(u.getDate()-(u.getDay()+6)%7+3);var t=r.getTimezoneOffset()-u.getTimezoneOffset();r.setHours(r.getHours()-t);var a=(r-u)/(864e5*7);return 1+Math.floor(a)}function f(d){var r=d.getDay();return r===0&&(r=7),r}function _(d){return d===null?"null":d===void 0?"undefined":(typeof d=="undefined"?"undefined":(0,g.default)(d))!=="object"?typeof d=="undefined"?"undefined":(0,g.default)(d):Array.isArray(d)?"array":{}.toString.call(d).slice(8,-1).toLowerCase()}typeof define=="function"&&define.amd?define(function(){return y}):(typeof o=="undefined"?"undefined":(0,g.default)(o))==="object"?Y.exports=y:b.dateFormat=y})(void 0)},{"babel-runtime/helpers/typeof":67}],191:[function(M,Y,o){/*!
* escape-html
* Copyright(c) 2012-2013 TJ Holowaychuk
* Copyright(c) 2015 Andreas Lubbe
* Copyright(c) 2015 Tiancheng "Timothy" Gu
* MIT Licensed
*/"use strict";var L=/["'&<>]/;Y.exports=g;function g(A){var b=""+A,y=L.exec(b);if(!y)return b;var x,w="",f=0,_=0;for(f=y.index;f<b.length;f++){switch(b.charCodeAt(f)){case 34:x="&quot;";break;case 38:x="&amp;";break;case 39:x="&#39;";break;case 60:x="&lt;";break;case 62:x="&gt;";break;default:continue}_!==f&&(w+=b.substring(_,f)),_=f+1,w+=x}return _!==f?w+b.substring(_,f):w}},{}],192:[function(M,Y,o){function L(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}Y.exports=L,L.EventEmitter=L,L.prototype._events=void 0,L.prototype._maxListeners=void 0,L.defaultMaxListeners=10,L.prototype.setMaxListeners=function(x){if(!A(x)||x<0||isNaN(x))throw TypeError("n must be a positive number");return this._maxListeners=x,this},L.prototype.emit=function(x){var w,f,_,d,r,u;if(this._events||(this._events={}),x==="error"&&(!this._events.error||b(this._events.error)&&!this._events.error.length)){if(w=arguments[1],w instanceof Error)throw w;var t=new Error('Uncaught, unspecified "error" event. ('+w+")");throw t.context=w,t}if(f=this._events[x],y(f))return!1;if(g(f))switch(arguments.length){case 1:f.call(this);break;case 2:f.call(this,arguments[1]);break;case 3:f.call(this,arguments[1],arguments[2]);break;default:d=Array.prototype.slice.call(arguments,1),f.apply(this,d)}else if(b(f))for(d=Array.prototype.slice.call(arguments,1),u=f.slice(),_=u.length,r=0;r<_;r++)u[r].apply(this,d);return!0},L.prototype.addListener=function(x,w){var f;if(!g(w))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",x,g(w.listener)?w.listener:w),this._events[x]?b(this._events[x])?this._events[x].push(w):this._events[x]=[this._events[x],w]:this._events[x]=w,b(this._events[x])&&!this._events[x].warned&&(y(this._maxListeners)?f=L.defaultMaxListeners:f=this._maxListeners,f&&f>0&&this._events[x].length>f&&(this._events[x].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[x].length),typeof console.trace=="function"&&console.trace())),this},L.prototype.on=L.prototype.addListener,L.prototype.once=function(x,w){if(!g(w))throw TypeError("listener must be a function");var f=!1;function _(){this.removeListener(x,_),f||(f=!0,w.apply(this,arguments))}return _.listener=w,this.on(x,_),this},L.prototype.removeListener=function(x,w){var f,_,d,r;if(!g(w))throw TypeError("listener must be a function");if(!this._events||!this._events[x])return this;if(f=this._events[x],d=f.length,_=-1,f===w||g(f.listener)&&f.listener===w)delete this._events[x],this._events.removeListener&&this.emit("removeListener",x,w);else if(b(f)){for(r=d;r-- >0;)if(f[r]===w||f[r].listener&&f[r].listener===w){_=r;break}if(_<0)return this;f.length===1?(f.length=0,delete this._events[x]):f.splice(_,1),this._events.removeListener&&this.emit("removeListener",x,w)}return this},L.prototype.removeAllListeners=function(x){var w,f;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[x]&&delete this._events[x],this;if(arguments.length===0){for(w in this._events){if(w==="removeListener")continue;this.removeAllListeners(w)}return this.removeAllListeners("removeListener"),this._events={},this}if(f=this._events[x],g(f))this.removeListener(x,f);else if(f)for(;f.length;)this.removeListener(x,f[f.length-1]);return delete this._events[x],this},L.prototype.listeners=function(x){var w;return!this._events||!this._events[x]?w=[]:g(this._events[x])?w=[this._events[x]]:w=this._events[x].slice(),w},L.prototype.listenerCount=function(x){if(this._events){var w=this._events[x];if(g(w))return 1;if(w)return w.length}return 0},L.listenerCount=function(x,w){return x.listenerCount(w)};function g(x){return typeof x=="function"}function A(x){return typeof x=="number"}function b(x){return typeof x=="object"&&x!==null}function y(x){return x===void 0}},{}],193:[function(M,Y,o){var L=M("http"),g=Y.exports;for(var A in L)L.hasOwnProperty(A)&&(g[A]=L[A]);g.request=function(b,y){return b||(b={}),b.scheme="https",b.protocol="https:",L.request.call(this,b,y)}},{http:231}],194:[function(M,Y,o){/*!
* humanize-ms - index.js
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
* MIT Licensed
*/"use strict";var L=M("util"),g=M("ms");Y.exports=function(A){if(typeof A=="number")return A;var b=g(A);if(b===void 0){var y=new Error(L.format("humanize-ms(%j) result undefined",A));console.warn(y.stack)}return b}},{ms:204,util:243}],195:[function(M,Y,o){o.read=function(L,g,A,b,y){var x,w,f=y*8-b-1,_=(1<<f)-1,d=_>>1,r=-7,u=A?y-1:0,t=A?-1:1,a=L[g+u];for(u+=t,x=a&(1<<-r)-1,a>>=-r,r+=f;r>0;x=x*256+L[g+u],u+=t,r-=8);for(w=x&(1<<-r)-1,x>>=-r,r+=b;r>0;w=w*256+L[g+u],u+=t,r-=8);if(x===0)x=1-d;else{if(x===_)return w?NaN:(a?-1:1)*Infinity;w=w+Math.pow(2,b),x=x-d}return(a?-1:1)*w*Math.pow(2,x-b)},o.write=function(L,g,A,b,y,x){var w,f,_,d=x*8-y-1,r=(1<<d)-1,u=r>>1,t=y===23?Math.pow(2,-24)-Math.pow(2,-77):0,a=b?0:x-1,n=b?1:-1,i=g<0||g===0&&1/g<0?1:0;for(g=Math.abs(g),isNaN(g)||g===Infinity?(f=isNaN(g)?1:0,w=r):(w=Math.floor(Math.log(g)/Math.LN2),g*(_=Math.pow(2,-w))<1&&(w--,_*=2),w+u>=1?g+=t/_:g+=t*Math.pow(2,1-u),g*_>=2&&(w++,_/=2),w+u>=r?(f=0,w=r):w+u>=1?(f=(g*_-1)*Math.pow(2,y),w=w+u):(f=g*Math.pow(2,u-1)*Math.pow(2,y),w=0));y>=8;L[A+a]=f&255,a+=n,f/=256,y-=8);for(w=w<<y|f,d+=y;d>0;L[A+a]=w&255,a+=n,w/=256,d-=8);L[A+a-n]|=i*128}},{}],196:[function(M,Y,o){typeof Object.create=="function"?Y.exports=function(g,A){A&&(g.super_=A,g.prototype=Object.create(A.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}))}:Y.exports=function(g,A){if(A){g.super_=A;var b=function(){};b.prototype=A.prototype,g.prototype=new b,g.prototype.constructor=g}}},{}],197:[function(M,Y,o){/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/Y.exports=function(A){return A!=null&&(L(A)||g(A)||!!A._isBuffer)};function L(A){return!!A.constructor&&typeof A.constructor.isBuffer=="function"&&A.constructor.isBuffer(A)}function g(A){return typeof A.readFloatLE=="function"&&typeof A.slice=="function"&&L(A.slice(0,0))}},{}],198:[function(M,Y,o){var L={}.toString;Y.exports=Array.isArray||function(g){return L.call(g)=="[object Array]"}},{}],199:[function(require,module,exports){(function(global){(function(M,Y){typeof exports=="object"&&typeof module!="undefined"?module.exports=Y(M):typeof define=="function"&&define.amd?define(Y):Y(M)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:this,function(global){"use strict";global=global||{};var _Base64=global.Base64,version="2.5.2",buffer;if(typeof module!="undefined"&&module.exports)try{buffer=eval("require('buffer').Buffer")}catch(M){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(M){for(var Y={},o=0,L=M.length;o<L;o++)Y[M.charAt(o)]=o;return Y}(b64chars),fromCharCode=String.fromCharCode,cb_utob=function(M){if(M.length<2){var Y=M.charCodeAt(0);return Y<128?M:Y<2048?fromCharCode(192|Y>>>6)+fromCharCode(128|Y&63):fromCharCode(224|Y>>>12&15)+fromCharCode(128|Y>>>6&63)+fromCharCode(128|Y&63)}else{var Y=65536+(M.charCodeAt(0)-55296)*1024+(M.charCodeAt(1)-56320);return fromCharCode(240|Y>>>18&7)+fromCharCode(128|Y>>>12&63)+fromCharCode(128|Y>>>6&63)+fromCharCode(128|Y&63)}},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(M){return M.replace(re_utob,cb_utob)},cb_encode=function(M){var Y=[0,2,1][M.length%3],o=M.charCodeAt(0)<<16|(M.length>1?M.charCodeAt(1):0)<<8|(M.length>2?M.charCodeAt(2):0),L=[b64chars.charAt(o>>>18),b64chars.charAt(o>>>12&63),Y>=2?"=":b64chars.charAt(o>>>6&63),Y>=1?"=":b64chars.charAt(o&63)];return L.join("")},btoa=global.btoa?function(M){return global.btoa(M)}:function(M){return M.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=function(M){var Y=Object.prototype.toString.call(M)==="[object Uint8Array]";return Y?M.toString("base64"):btoa(utob(String(M)))},encode=function(M,Y){return Y?_encode(String(M)).replace(/[+\/]/g,function(o){return o=="+"?"-":"_"}).replace(/=/g,""):_encode(M)},encodeURI=function(M){return encode(M,!0)},re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=function(M){switch(M.length){case 4:var Y=(7&M.charCodeAt(0))<<18|(63&M.charCodeAt(1))<<12|(63&M.charCodeAt(2))<<6|63&M.charCodeAt(3),o=Y-65536;return fromCharCode((o>>>10)+55296)+fromCharCode((o&1023)+56320);case 3:return fromCharCode((15&M.charCodeAt(0))<<12|(63&M.charCodeAt(1))<<6|63&M.charCodeAt(2));default:return fromCharCode((31&M.charCodeAt(0))<<6|63&M.charCodeAt(1))}},btou=function(M){return M.replace(re_btou,cb_btou)},cb_decode=function(M){var Y=M.length,o=Y%4,L=(Y>0?b64tab[M.charAt(0)]<<18:0)|(Y>1?b64tab[M.charAt(1)]<<12:0)|(Y>2?b64tab[M.charAt(2)]<<6:0)|(Y>3?b64tab[M.charAt(3)]:0),g=[fromCharCode(L>>>16),fromCharCode(L>>>8&255),fromCharCode(L&255)];return g.length-=[0,0,2,1][o],g.join("")},_atob=global.atob?function(M){return global.atob(M)}:function(M){return M.replace(/\S{1,4}/g,cb_decode)},atob=function(M){return _atob(String(M).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(M){return(M.constructor===buffer.constructor?M:buffer.from(M,"base64")).toString()}:function(M){return(M.constructor===buffer.constructor?M:new buffer(M,"base64")).toString()}:function(M){return btou(_atob(M))},decode=function(M){return _decode(String(M).replace(/[-_]/g,function(Y){return Y=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var M=global.Base64;return global.Base64=_Base64,M};if(global.Base64={VERSION:version,atob,btoa,fromBase64:decode,toBase64:encode,utob,encode,encodeURI,btou,decode,noConflict,__buffer__:buffer},typeof Object.defineProperty=="function"){var noEnum=function(M){return{value:M,enumerable:!1,writable:!0,configurable:!0}};global.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",noEnum(function(){return decode(this)})),Object.defineProperty(String.prototype,"toBase64",noEnum(function(M){return encode(this,M)})),Object.defineProperty(String.prototype,"toBase64URI",noEnum(function(){return encode(this,!0)}))}}return global.Meteor&&(Base64=global.Base64),typeof module!="undefined"&&module.exports?module.exports.Base64=global.Base64:typeof define=="function"&&define.amd&&define([],function(){return global.Base64}),{Base64:global.Base64}})}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],200:[function(M,Y,o){/*!
* merge-descriptors
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/"use strict";Y.exports=g;var L=Object.prototype.hasOwnProperty;function g(A,b,y){if(!A)throw new TypeError("argument dest is required");if(!b)throw new TypeError("argument src is required");return y===void 0&&(y=!0),Object.getOwnPropertyNames(b).forEach(function(w){if(!y&&L.call(A,w))return;var f=Object.getOwnPropertyDescriptor(b,w);Object.defineProperty(A,w,f)}),A}},{}],201:[function(M,Y,o){"use strict";function L(){this._types=Object.create(null),this._extensions=Object.create(null);for(var g=0;g<arguments.length;g++)this.define(arguments[g]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}L.prototype.define=function(g,A){for(var b in g){var y=g[b].map(function(f){return f.toLowerCase()});b=b.toLowerCase();for(var x=0;x<y.length;x++){var w=y[x];if(w[0]=="*")continue;if(!A&&w in this._types)throw new Error('Attempt to change mapping for "'+w+'" extension from "'+this._types[w]+'" to "'+b+'". Pass `force=true` to allow this, otherwise remove "'+w+'" from the list of extensions for "'+b+'".');this._types[w]=b}if(A||!this._extensions[b]){var w=y[0];this._extensions[b]=w[0]!="*"?w:w.substr(1)}}},L.prototype.getType=function(g){g=String(g);var A=g.replace(/^.*[/\\]/,"").toLowerCase(),b=A.replace(/^.*\./,"").toLowerCase(),y=A.length<g.length,x=b.length<A.length-1;return(x||!y)&&this._types[b]||null},L.prototype.getExtension=function(g){return g=/^\s*([^;\s]*)/.test(g)&&RegExp.$1,g&&this._extensions[g.toLowerCase()]||null},Y.exports=L},{}],202:[function(M,Y,o){"use strict";var L=M("./Mime");Y.exports=new L(M("./types/standard"))},{"./Mime":201,"./types/standard":203}],203:[function(M,Y,o){Y.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma","es"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/mrb-consumer+xml":["*xdf"],"application/mrb-publish+xml":["*xdf"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["*xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/ttml+xml":["ttml"],"application/urc-ressheet+xml":["rsheet"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-error+xml":["xer"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}],204:[function(M,Y,o){var L=1e3,g=L*60,A=g*60,b=A*24,y=b*7,x=b*365.25;Y.exports=function(r,u){u=u||{};var t=typeof r;if(t==="string"&&r.length>0)return w(r);if(t==="number"&&isFinite(r))return u.long?_(r):f(r);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(r))};function w(r){if(r=String(r),r.length>100)return;var u=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(r);if(!u)return;var t=parseFloat(u[1]),a=(u[2]||"ms").toLowerCase();switch(a){case"years":case"year":case"yrs":case"yr":case"y":return t*x;case"weeks":case"week":case"w":return t*y;case"days":case"day":case"d":return t*b;case"hours":case"hour":case"hrs":case"hr":case"h":return t*A;case"minutes":case"minute":case"mins":case"min":case"m":return t*g;case"seconds":case"second":case"secs":case"sec":case"s":return t*L;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}function f(r){var u=Math.abs(r);return u>=b?Math.round(r/b)+"d":u>=A?Math.round(r/A)+"h":u>=g?Math.round(r/g)+"m":u>=L?Math.round(r/L)+"s":r+"ms"}function _(r){var u=Math.abs(r);return u>=b?d(r,u,b,"day"):u>=A?d(r,u,A,"hour"):u>=g?d(r,u,g,"minute"):u>=L?d(r,u,L,"second"):r+" ms"}function d(r,u,t,a){var n=u>=t*1.5;return Math.round(r/t)+" "+a+(n?"s":"")}},{}],205:[function(M,Y,o){(function(L){function g(x,w){for(var f=0,_=x.length-1;_>=0;_--){var d=x[_];d==="."?x.splice(_,1):d===".."?(x.splice(_,1),f++):f&&(x.splice(_,1),f--)}if(w)for(;f--;f)x.unshift("..");return x}o.resolve=function(){for(var x="",w=!1,f=arguments.length-1;f>=-1&&!w;f--){var _=f>=0?arguments[f]:L.cwd();if(typeof _!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!_)continue;x=_+"/"+x,w=_.charAt(0)==="/"}return x=g(b(x.split("/"),function(d){return!!d}),!w).join("/"),(w?"/":"")+x||"."},o.normalize=function(x){var w=o.isAbsolute(x),f=y(x,-1)==="/";return x=g(b(x.split("/"),function(_){return!!_}),!w).join("/"),!x&&!w&&(x="."),x&&f&&(x+="/"),(w?"/":"")+x},o.isAbsolute=function(x){return x.charAt(0)==="/"},o.join=function(){var x=Array.prototype.slice.call(arguments,0);return o.normalize(b(x,function(w,f){if(typeof w!="string")throw new TypeError("Arguments to path.join must be strings");return w}).join("/"))},o.relative=function(x,w){x=o.resolve(x).substr(1),w=o.resolve(w).substr(1);function f(n){for(var i=0;i<n.length&&!(n[i]!=="");i++);for(var h=n.length-1;h>=0&&!(n[h]!=="");h--);return i>h?[]:n.slice(i,h-i+1)}for(var _=f(x.split("/")),d=f(w.split("/")),r=Math.min(_.length,d.length),u=r,t=0;t<r;t++)if(_[t]!==d[t]){u=t;break}for(var a=[],t=u;t<_.length;t++)a.push("..");return a=a.concat(d.slice(u)),a.join("/")},o.sep="/",o.delimiter=":",o.dirname=function(x){if(typeof x!="string"&&(x=x+""),x.length===0)return".";for(var w=x.charCodeAt(0),f=w===47,_=-1,d=!0,r=x.length-1;r>=1;--r)if(w=x.charCodeAt(r),w===47){if(!d){_=r;break}}else d=!1;return _===-1?f?"/":".":f&&_===1?"/":x.slice(0,_)};function A(x){typeof x!="string"&&(x=x+"");var w=0,f=-1,_=!0,d;for(d=x.length-1;d>=0;--d)if(x.charCodeAt(d)===47){if(!_){w=d+1;break}}else f===-1&&(_=!1,f=d+1);return f===-1?"":x.slice(w,f)}o.basename=function(x,w){var f=A(x);return w&&f.substr(-1*w.length)===w&&(f=f.substr(0,f.length-w.length)),f},o.extname=function(x){typeof x!="string"&&(x=x+"");for(var w=-1,f=0,_=-1,d=!0,r=0,u=x.length-1;u>=0;--u){var t=x.charCodeAt(u);if(t===47){if(!d){f=u+1;break}continue}_===-1&&(d=!1,_=u+1),t===46?w===-1?w=u:r!==1&&(r=1):w!==-1&&(r=-1)}return w===-1||_===-1||r===0||r===1&&w===_-1&&w===f+1?"":x.slice(w,_)};function b(x,w){if(x.filter)return x.filter(w);for(var f=[],_=0;_<x.length;_++)w(x[_],_,x)&&f.push(x[_]);return f}var y="ab".substr(-1)==="b"?function(x,w,f){return x.substr(w,f)}:function(x,w,f){return w<0&&(w=x.length+w),x.substr(w,f)}}).call(this,M("_process"))},{_process:208}],206:[function(M,Y,o){(function(L){/*!
* Platform.js <https://mths.be/platform>
* Copyright 2014-2018 Benjamin Tan <https://bnjmnt4n.now.sh/>
* Copyright 2011-2013 John-David Dalton <http://allyoucanleet.com/>
* Available under MIT license <https://mths.be/mit>
*/(function(){"use strict";var g={function:!0,object:!0},A=g[typeof window]&&window||this,b=A,y=g[typeof o]&&o,x=g[typeof Y]&&Y&&!Y.nodeType&&Y,w=y&&x&&typeof L=="object"&&L;w&&(w.global===w||w.window===w||w.self===w)&&(A=w);var f=Math.pow(2,53)-1,_=/\bOpera/,d=this,r=Object.prototype,u=r.hasOwnProperty,t=r.toString;function a(E){return E=String(E),E.charAt(0).toUpperCase()+E.slice(1)}function n(E,C,m){var T={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return C&&m&&/^Win/i.test(E)&&!/^Windows Phone /i.test(E)&&(T=T[/[\d.]+$/.exec(E)])&&(E="Windows "+T),E=String(E),C&&m&&(E=E.replace(RegExp(C,"i"),m)),E=h(E.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),E}function i(E,C){var m=-1,T=E?E.length:0;if(typeof T=="number"&&T>-1&&T<=f)for(;++m<T;)C(E[m],m,E);else l(E,C)}function h(E){return E=v(E),/^(?:webOS|i(?:OS|P))/.test(E)?E:a(E)}function l(E,C){for(var m in E)u.call(E,m)&&C(E[m],m,E)}function s(E){return E==null?a(E):t.call(E).slice(8,-1)}function p(E,C){var m=E!=null?typeof E[C]:"number";return!/^(?:boolean|number|string|undefined)$/.test(m)&&(m=="object"?!!E[C]:!0)}function O(E){return String(E).replace(/([ -])(?!$)/g,"$1?")}function S(E,C){var m=null;return i(E,function(T,I){m=C(m,T,I,E)}),m}function v(E){return String(E).replace(/^ +| +$/g,"")}function P(E){var C=A,m=E&&typeof E=="object"&&s(E)!="String";m&&(C=E,E=null);var T=C.navigator||{},I=T.userAgent||"";E||(E=I);var D=m||d==b,N=m?!!T.likeChrome:/\bChrome\b/.test(E)&&!/internal|\n/i.test(t.toString()),z="Object",F=m?z:"ScriptBridgingProxyObject",W=m?z:"Environment",K=m&&C.java?"JavaPackage":s(C.java),B=m?z:"RuntimeObject",k=/\bJava/.test(K)&&C.java,G=k&&s(C.environment)==W,ne=k?"a":"\u03B1",fe=k?"b":"\u03B2",de=C.document||{},xe=C.operamini||C.opera,Oe=_.test(Oe=m&&xe?xe["[[Class]]"]:s(xe))?Oe:xe=null,ce,be=E,ve=[],ue=null,se=E==I,q=se&&xe&&typeof xe.version=="function"&&xe.version(),me,re=J([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),ie=De(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"Edge"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Waterfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),we=ke([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),le=te({Apple:{iPad:1,iPhone:1,iPod:1},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1}}),$=Te(["Windows Phone","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian","Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function J(Et){return S(Et,function(xt,St){return xt||RegExp("\\b"+(St.pattern||O(St))+"\\b","i").exec(E)&&(St.label||St)})}function te(Et){return S(Et,function(xt,St,Je){return xt||(St[we]||St[/^[a-z]+(?: +[a-z]+\b)*/i.exec(we)]||RegExp("\\b"+O(Je)+"(?:\\b|\\w*\\d)","i").exec(E))&&Je})}function De(Et){return S(Et,function(xt,St){return xt||RegExp("\\b"+(St.pattern||O(St))+"\\b","i").exec(E)&&(St.label||St)})}function Te(Et){return S(Et,function(xt,St){var Je=St.pattern||O(St);return!xt&&(xt=RegExp("\\b"+Je+"(?:/[\\d.]+|[ \\w.]*)","i").exec(E))&&(xt=n(xt,Je,St.label||St)),xt})}function ke(Et){return S(Et,function(xt,St){var Je=St.pattern||O(St);return!xt&&(xt=RegExp("\\b"+Je+" *\\d+[.\\w_]*","i").exec(E)||RegExp("\\b"+Je+" *\\w+-[\\w]*","i").exec(E)||RegExp("\\b"+Je+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(E))&&((xt=String(St.label&&!RegExp(Je,"i").test(St.label)?St.label:xt).split("/"))[1]&&!/[\d.]+/.test(xt[0])&&(xt[0]+=" "+xt[1]),St=St.label||St,xt=h(xt[0].replace(RegExp(Je,"i"),St).replace(RegExp("; *(?:"+St+"[_-])?","i")," ").replace(RegExp("("+St+")[-_.]?(\\w)","i"),"$1 $2"))),xt})}function tt(Et){return S(Et,function(xt,St){return xt||(RegExp(St+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(E)||0)[1]||null})}function ot(){return this.description||""}if(re&&(re=[re]),le&&!we&&(we=ke([le])),(ce=/\bGoogle TV\b/.exec(we))&&(we=ce[0]),/\bSimulator\b/i.test(E)&&(we=(we?we+" ":"")+"Simulator"),ie=="Opera Mini"&&/\bOPiOS\b/.test(E)&&ve.push("running in Turbo/Uncompressed mode"),ie=="IE"&&/\blike iPhone OS\b/.test(E)?(ce=P(E.replace(/like iPhone OS/,"")),le=ce.manufacturer,we=ce.product):/^iP/.test(we)?(ie||(ie="Safari"),$="iOS"+((ce=/ OS ([\d_]+)/i.exec(E))?" "+ce[1].replace(/_/g,"."):"")):ie=="Konqueror"&&!/buntu/i.test($)?$="Kubuntu":le&&le!="Google"&&(/Chrome/.test(ie)&&!/\bMobile Safari\b/i.test(E)||/\bVita\b/.test(we))||/\bAndroid\b/.test($)&&/^Chrome/.test(ie)&&/\bVersion\//i.test(E)?(ie="Android Browser",$=/\bAndroid\b/.test($)?$:"Android"):ie=="Silk"?(/\bMobi/i.test(E)||($="Android",ve.unshift("desktop mode")),/Accelerated *= *true/i.test(E)&&ve.unshift("accelerated")):ie=="PaleMoon"&&(ce=/\bFirefox\/([\d.]+)\b/.exec(E))?ve.push("identifying as Firefox "+ce[1]):ie=="Firefox"&&(ce=/\b(Mobile|Tablet|TV)\b/i.exec(E))?($||($="Firefox OS"),we||(we=ce[1])):!ie||(ce=!/\bMinefield\b/i.test(E)&&/\b(?:Firefox|Safari)\b/.exec(ie))?(ie&&!we&&/[\/,]|^[^(]+?\)/.test(E.slice(E.indexOf(ce+"/")+8))&&(ie=null),(ce=we||le||$)&&(we||le||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test($))&&(ie=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test($)?$:ce)+" Browser")):ie=="Electron"&&(ce=(/\bChrome\/([\d.]+)\b/.exec(E)||0)[1])&&ve.push("Chromium "+ce),q||(q=tt(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",O(ie),"(?:Firefox|Minefield|NetFront)"])),(ce=re=="iCab"&&parseFloat(q)>3&&"WebKit"||/\bOpera\b/.test(ie)&&(/\bOPR\b/.test(E)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(E)&&!/^(?:Trident|EdgeHTML)$/.test(re)&&"WebKit"||!re&&/\bMSIE\b/i.test(E)&&($=="Mac OS"?"Tasman":"Trident")||re=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(ie)&&"NetFront")&&(re=[ce]),ie=="IE"&&(ce=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(E)||0)[1])?(ie+=" Mobile",$="Windows Phone "+(/\+$/.test(ce)?ce:ce+".x"),ve.unshift("desktop mode")):/\bWPDesktop\b/i.test(E)?(ie="IE Mobile",$="Windows Phone 8.x",ve.unshift("desktop mode"),q||(q=(/\brv:([\d.]+)/.exec(E)||0)[1])):ie!="IE"&&re=="Trident"&&(ce=/\brv:([\d.]+)/.exec(E))&&(ie&&ve.push("identifying as "+ie+(q?" "+q:"")),ie="IE",q=ce[1]),se){if(p(C,"global"))if(k&&(ce=k.lang.System,be=ce.getProperty("os.arch"),$=$||ce.getProperty("os.name")+" "+ce.getProperty("os.version")),G){try{q=C.require("ringo/engine").version.join("."),ie="RingoJS"}catch(Et){(ce=C.system)&&ce.global.system==C.system&&(ie="Narwhal",$||($=ce[0].os||null))}ie||(ie="Rhino")}else typeof C.process=="object"&&!C.process.browser&&(ce=C.process)&&(typeof ce.versions=="object"&&(typeof ce.versions.electron=="string"?(ve.push("Node "+ce.versions.node),ie="Electron",q=ce.versions.electron):typeof ce.versions.nw=="string"&&(ve.push("Chromium "+q,"Node "+ce.versions.node),ie="NW.js",q=ce.versions.nw)),ie||(ie="Node.js",be=ce.arch,$=ce.platform,q=/[\d.]+/.exec(ce.version),q=q?q[0]:null));else s(ce=C.runtime)==F?(ie="Adobe AIR",$=ce.flash.system.Capabilities.os):s(ce=C.phantom)==B?(ie="PhantomJS",q=(ce=ce.version||null)&&ce.major+"."+ce.minor+"."+ce.patch):typeof de.documentMode=="number"&&(ce=/\bTrident\/(\d+)/i.exec(E))?(q=[q,de.documentMode],(ce=+ce[1]+4)!=q[1]&&(ve.push("IE "+q[1]+" mode"),re&&(re[1]=""),q[1]=ce),q=ie=="IE"?String(q[1].toFixed(1)):q[0]):typeof de.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(ie)&&(ve.push("masking as "+ie+" "+q),ie="IE",q="11.0",re=["Trident"],$="Windows");$=$&&h($)}if(q&&(ce=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(q)||/(?:alpha|beta)(?: ?\d)?/i.exec(E+";"+(se&&T.appMinorVersion))||/\bMinefield\b/i.test(E)&&"a")&&(ue=/b/i.test(ce)?"beta":"alpha",q=q.replace(RegExp(ce+"\\+?$"),"")+(ue=="beta"?fe:ne)+(/\d+\+?/.exec(ce)||"")),ie=="Fennec"||ie=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test($))ie="Firefox Mobile";else if(ie=="Maxthon"&&q)q=q.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(we))we=="Xbox 360"&&($=null),we=="Xbox 360"&&/\bIEMobile\b/.test(E)&&ve.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(ie)||ie&&!we&&!/Browser|Mobi/.test(ie))&&($=="Windows CE"||/Mobi/i.test(E)))ie+=" Mobile";else if(ie=="IE"&&se)try{C.external===null&&ve.unshift("platform preview")}catch(Et){ve.unshift("embedded")}else(/\bBlackBerry\b/.test(we)||/\bBB10\b/.test(E))&&(ce=(RegExp(we.replace(/ +/g," *")+"/([.\\d]+)","i").exec(E)||0)[1]||q)?(ce=[ce,/BB10/.test(E)],$=(ce[1]?(we=null,le="BlackBerry"):"Device Software")+" "+ce[0],q=null):this!=l&&we!="Wii"&&(se&&xe||/Opera/.test(ie)&&/\b(?:MSIE|Firefox)\b/i.test(E)||ie=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test($)||ie=="IE"&&($&&!/^Win/.test($)&&q>5.5||/\bWindows XP\b/.test($)&&q>8||q==8&&!/\bTrident\b/.test(E)))&&!_.test(ce=P.call(l,E.replace(_,"")+";"))&&ce.name&&(ce="ing as "+ce.name+((ce=ce.version)?" "+ce:""),_.test(ie)?(/\bIE\b/.test(ce)&&$=="Mac OS"&&($=null),ce="identify"+ce):(ce="mask"+ce,Oe?ie=h(Oe.replace(/([a-z])([A-Z])/g,"$1 $2")):ie="Opera",/\bIE\b/.test(ce)&&($=null),se||(q=null)),re=["Presto"],ve.push(ce));(ce=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(E)||0)[1])&&(ce=[parseFloat(ce.replace(/\.(\d)$/,".0$1")),ce],ie=="Safari"&&ce[1].slice(-1)=="+"?(ie="WebKit Nightly",ue="alpha",q=ce[1].slice(0,-1)):(q==ce[1]||q==(ce[2]=(/\bSafari\/([\d.]+\+?)/i.exec(E)||0)[1]))&&(q=null),ce[1]=(/\bChrome\/([\d.]+)/i.exec(E)||0)[1],ce[0]==537.36&&ce[2]==537.36&&parseFloat(ce[1])>=28&&re=="WebKit"&&(re=["Blink"]),!se||!N&&!ce[1]?(re&&(re[1]="like Safari"),ce=(ce=ce[0],ce<400?1:ce<500?2:ce<526?3:ce<533?4:ce<534?"4+":ce<535?5:ce<537?6:ce<538?7:ce<601?8:"8")):(re&&(re[1]="like Chrome"),ce=ce[1]||(ce=ce[0],ce<530?1:ce<532?2:ce<532.05?3:ce<533?4:ce<534.03?5:ce<534.07?6:ce<534.1?7:ce<534.13?8:ce<534.16?9:ce<534.24?10:ce<534.3?11:ce<535.01?12:ce<535.02?"13+":ce<535.07?15:ce<535.11?16:ce<535.19?17:ce<536.05?18:ce<536.1?19:ce<537.01?20:ce<537.11?"21+":ce<537.13?23:ce<537.18?24:ce<537.24?25:ce<537.36?26:re!="Blink"?"27":"28")),re&&(re[1]+=" "+(ce+=typeof ce=="number"?".x":/[.+]/.test(ce)?"":"+")),ie=="Safari"&&(!q||parseInt(q)>45)&&(q=ce)),ie=="Opera"&&(ce=/\bzbov|zvav$/.exec($))?(ie+=" ",ve.unshift("desktop mode"),ce=="zvav"?(ie+="Mini",q=null):ie+="Mobile",$=$.replace(RegExp(" *"+ce+"$"),"")):ie=="Safari"&&/\bChrome\b/.exec(re&&re[1])&&(ve.unshift("desktop mode"),ie="Chrome Mobile",q=null,/\bOS X\b/.test($)?(le="Apple",$="iOS 4.3+"):$=null),q&&q.indexOf(ce=/[\d.]+$/.exec($))==0&&E.indexOf("/"+ce+"-")>-1&&($=v($.replace(ce,""))),re&&!/\b(?:Avant|Nook)\b/.test(ie)&&(/Browser|Lunascape|Maxthon/.test(ie)||ie!="Safari"&&/^iOS/.test($)&&/\bSafari\b/.test(re[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(ie)&&re[1])&&((ce=re[re.length-1])&&ve.push(ce)),ve.length&&(ve=["("+ve.join("; ")+")"]),le&&we&&we.indexOf(le)<0&&ve.push("on "+le),we&&ve.push((/^on /.test(ve[ve.length-1])?"":"on ")+we),$&&(ce=/ ([\d.+]+)$/.exec($),me=ce&&$.charAt($.length-ce[0].length-1)=="/",$={architecture:32,family:ce&&!me?$.replace(ce[0],""):$,version:ce?ce[1]:null,toString:function(){var Et=this.version;return this.family+(Et&&!me?" "+Et:"")+(this.architecture==64?" 64-bit":"")}}),(ce=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(be))&&!/\bi686\b/i.test(be)?($&&($.architecture=64,$.family=$.family.replace(RegExp(" *"+ce),"")),ie&&(/\bWOW64\b/i.test(E)||se&&/\w(?:86|32)$/.test(T.cpuClass||T.platform)&&!/\bWin64; x64\b/i.test(E))&&ve.unshift("32-bit")):$&&/^OS X/.test($.family)&&ie=="Chrome"&&parseFloat(q)>=39&&($.architecture=64),E||(E=null);var gt={};return gt.description=E,gt.layout=re&&re[0],gt.manufacturer=le,gt.name=ie,gt.prerelease=ue,gt.product=we,gt.ua=E,gt.version=ie&&q,gt.os=$||{architecture:null,family:null,version:null,toString:function(){return"null"}},gt.parse=P,gt.toString=ot,gt.version&&ve.unshift(q),gt.name&&ve.unshift(ie),$&&ie&&!($==String($).split(" ")[0]&&($==ie.split(" ")[0]||we))&&ve.push(we?"("+$+")":"on "+$),ve.length&&(gt.description=ve.join(" ")),gt}var R=P();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(A.platform=R,define(function(){return R})):y&&x?l(R,function(E,C){y[C]=E}):A.platform=R}).call(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],207:[function(M,Y,o){(function(L){"use strict";typeof L=="undefined"||!L.version||L.version.indexOf("v0.")===0||L.version.indexOf("v1.")===0&&L.version.indexOf("v1.8.")!==0?Y.exports={nextTick:g}:Y.exports=L;function g(A,b,y,x){if(typeof A!="function")throw new TypeError('"callback" argument must be a function');var w=arguments.length,f,_;switch(w){case 0:case 1:return L.nextTick(A);case 2:return L.nextTick(function(){A.call(null,b)});case 3:return L.nextTick(function(){A.call(null,b,y)});case 4:return L.nextTick(function(){A.call(null,b,y,x)});default:for(f=new Array(w-1),_=0;_<f.length;)f[_++]=arguments[_];return L.nextTick(function(){A.apply(null,f)})}}}).call(this,M("_process"))},{_process:208}],208:[function(M,Y,o){var L=Y.exports={},g,A;function b(){throw new Error("setTimeout has not been defined")}function y(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?g=setTimeout:g=b}catch(i){g=b}try{typeof clearTimeout=="function"?A=clearTimeout:A=y}catch(i){A=y}})();function x(i){if(g===setTimeout)return setTimeout(i,0);if((g===b||!g)&&setTimeout)return g=setTimeout,setTimeout(i,0);try{return g(i,0)}catch(h){try{return g.call(null,i,0)}catch(l){return g.call(this,i,0)}}}function w(i){if(A===clearTimeout)return clearTimeout(i);if((A===y||!A)&&clearTimeout)return A=clearTimeout,clearTimeout(i);try{return A(i)}catch(h){try{return A.call(null,i)}catch(l){return A.call(this,i)}}}var f=[],_=!1,d,r=-1;function u(){if(!_||!d)return;_=!1,d.length?f=d.concat(f):r=-1,f.length&&t()}function t(){if(_)return;var i=x(u);_=!0;for(var h=f.length;h;){for(d=f,f=[];++r<h;)d&&d[r].run();r=-1,h=f.length}d=null,_=!1,w(i)}L.nextTick=function(i){var h=new Array(arguments.length-1);if(arguments.length>1)for(var l=1;l<arguments.length;l++)h[l-1]=arguments[l];f.push(new a(i,h)),f.length===1&&!_&&x(t)};function a(i,h){this.fun=i,this.array=h}a.prototype.run=function(){this.fun.apply(null,this.array)},L.title="browser",L.browser=!0,L.env={},L.argv=[],L.version="",L.versions={};function n(){}L.on=n,L.addListener=n,L.once=n,L.off=n,L.removeListener=n,L.removeAllListeners=n,L.emit=n,L.prependListener=n,L.prependOnceListener=n,L.listeners=function(i){return[]},L.binding=function(i){throw new Error("process.binding is not supported")},L.cwd=function(){return"/"},L.chdir=function(i){throw new Error("process.chdir is not supported")},L.umask=function(){return 0}},{}],209:[function(M,Y,o){(function(L){/*! https://mths.be/punycode v1.4.1 by @mathias */(function(g){var A=typeof o=="object"&&o&&!o.nodeType&&o,b=typeof Y=="object"&&Y&&!Y.nodeType&&Y,y=typeof L=="object"&&L;(y.global===y||y.window===y||y.self===y)&&(g=y);var x,w=2147483647,f=36,_=1,d=26,r=38,u=700,t=72,a=128,n="-",i=/^xn--/,h=/[^\x20-\x7E]/,l=/[\x2E\u3002\uFF0E\uFF61]/g,s={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=f-_,O=Math.floor,S=String.fromCharCode,v;function P(K){throw new RangeError(s[K])}function R(K,B){for(var k=K.length,G=[];k--;)G[k]=B(K[k]);return G}function E(K,B){var k=K.split("@"),G="";k.length>1&&(G=k[0]+"@",K=k[1]),K=K.replace(l,".");var ne=K.split("."),fe=R(ne,B).join(".");return G+fe}function C(K){for(var B=[],k=0,G=K.length,ne,fe;k<G;)ne=K.charCodeAt(k++),ne>=55296&&ne<=56319&&k<G?(fe=K.charCodeAt(k++),(fe&64512)==56320?B.push(((ne&1023)<<10)+(fe&1023)+65536):(B.push(ne),k--)):B.push(ne);return B}function m(K){return R(K,function(B){var k="";return B>65535&&(B-=65536,k+=S(B>>>10&1023|55296),B=56320|B&1023),k+=S(B),k}).join("")}function T(K){return K-48<10?K-22:K-65<26?K-65:K-97<26?K-97:f}function I(K,B){return K+22+75*(K<26)-((B!=0)<<5)}function D(K,B,k){var G=0;for(K=k?O(K/u):K>>1,K+=O(K/B);K>p*d>>1;G+=f)K=O(K/p);return O(G+(p+1)*K/(K+r))}function N(K){var B=[],k=K.length,G,ne=0,fe=a,de=t,xe,Oe,ce,be,ve,ue,se,q,me;for(xe=K.lastIndexOf(n),xe<0&&(xe=0),Oe=0;Oe<xe;++Oe)K.charCodeAt(Oe)>=128&&P("not-basic"),B.push(K.charCodeAt(Oe));for(ce=xe>0?xe+1:0;ce<k;){for(be=ne,ve=1,ue=f;!(ce>=k&&P("invalid-input"),se=T(K.charCodeAt(ce++)),(se>=f||se>O((w-ne)/ve))&&P("overflow"),ne+=se*ve,q=ue<=de?_:ue>=de+d?d:ue-de,se<q);ue+=f)me=f-q,ve>O(w/me)&&P("overflow"),ve*=me;G=B.length+1,de=D(ne-be,G,be==0),O(ne/G)>w-fe&&P("overflow"),fe+=O(ne/G),ne%=G,B.splice(ne++,0,fe)}return m(B)}function z(K){var B,k,G,ne,fe,de,xe,Oe,ce,be,ve,ue=[],se,q,me,re;for(K=C(K),se=K.length,B=a,k=0,fe=t,de=0;de<se;++de)ve=K[de],ve<128&&ue.push(S(ve));for(G=ne=ue.length,ne&&ue.push(n);G<se;){for(xe=w,de=0;de<se;++de)ve=K[de],ve>=B&&ve<xe&&(xe=ve);for(q=G+1,xe-B>O((w-k)/q)&&P("overflow"),k+=(xe-B)*q,B=xe,de=0;de<se;++de)if(ve=K[de],ve<B&&++k>w&&P("overflow"),ve==B){for(Oe=k,ce=f;!(be=ce<=fe?_:ce>=fe+d?d:ce-fe,Oe<be);ce+=f)re=Oe-be,me=f-be,ue.push(S(I(be+re%me,0))),Oe=O(re/me);ue.push(S(I(Oe,0))),fe=D(k,q,G==ne),k=0,++G}++k,++B}return ue.join("")}function F(K){return E(K,function(B){return i.test(B)?N(B.slice(4).toLowerCase()):B})}function W(K){return E(K,function(B){return h.test(B)?"xn--"+z(B):B})}if(x={version:"1.4.1",ucs2:{decode:C,encode:m},decode:N,encode:z,toASCII:W,toUnicode:F},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return x});else if(A&&b)if(Y.exports==A)b.exports=x;else for(v in x)x.hasOwnProperty(v)&&(A[v]=x[v]);else g.punycode=x})(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],210:[function(M,Y,o){"use strict";function L(A,b){return Object.prototype.hasOwnProperty.call(A,b)}Y.exports=function(A,b,y,x){b=b||"&",y=y||"=";var w={};if(typeof A!="string"||A.length===0)return w;var f=/\+/g;A=A.split(b);var _=1e3;x&&typeof x.maxKeys=="number"&&(_=x.maxKeys);var d=A.length;_>0&&d>_&&(d=_);for(var r=0;r<d;++r){var u=A[r].replace(f,"%20"),t=u.indexOf(y),a,n,i,h;t>=0?(a=u.substr(0,t),n=u.substr(t+1)):(a=u,n=""),i=decodeURIComponent(a),h=decodeURIComponent(n),L(w,i)?g(w[i])?w[i].push(h):w[i]=[w[i],h]:w[i]=h}return w};var g=Array.isArray||function(A){return Object.prototype.toString.call(A)==="[object Array]"}},{}],211:[function(M,Y,o){"use strict";var L=function(y){switch(typeof y){case"string":return y;case"boolean":return y?"true":"false";case"number":return isFinite(y)?y:"";default:return""}};Y.exports=function(y,x,w,f){return x=x||"&",w=w||"=",y===null&&(y=void 0),typeof y=="object"?A(b(y),function(_){var d=encodeURIComponent(L(_))+w;return g(y[_])?A(y[_],function(r){return d+encodeURIComponent(L(r))}).join(x):d+encodeURIComponent(L(y[_]))}).join(x):f?encodeURIComponent(L(f))+w+encodeURIComponent(L(y)):""};var g=Array.isArray||function(y){return Object.prototype.toString.call(y)==="[object Array]"};function A(y,x){if(y.map)return y.map(x);for(var w=[],f=0;f<y.length;f++)w.push(x(y[f],f));return w}var b=Object.keys||function(y){var x=[];for(var w in y)Object.prototype.hasOwnProperty.call(y,w)&&x.push(w);return x}},{}],212:[function(M,Y,o){"use strict";o.decode=o.parse=M("./decode"),o.encode=o.stringify=M("./encode")},{"./decode":210,"./encode":211}],213:[function(M,Y,o){Y.exports=M("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":214}],214:[function(M,Y,o){"use strict";var L=M("babel-runtime/core-js/object/create"),g=y(L),A=M("babel-runtime/core-js/object/keys"),b=y(A);function y(h){return h&&h.__esModule?h:{default:h}}var x=M("process-nextick-args"),w=b.default||function(h){var l=[];for(var s in h)l.push(s);return l};Y.exports=a;var f=(0,g.default)(M("core-util-is"));f.inherits=M("inherits");var _=M("./_stream_readable"),d=M("./_stream_writable");f.inherits(a,_);for(var r=w(d.prototype),u=0;u<r.length;u++){var t=r[u];a.prototype[t]||(a.prototype[t]=d.prototype[t])}function a(h){if(!(this instanceof a))return new a(h);_.call(this,h),d.call(this,h),h&&h.readable===!1&&(this.readable=!1),h&&h.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,h&&h.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",n)}Object.defineProperty(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function n(){if(this.allowHalfOpen||this._writableState.ended)return;x.nextTick(i,this)}function i(h){h.end()}Object.defineProperty(a.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(l){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=l,this._writableState.destroyed=l}}),a.prototype._destroy=function(h,l){this.push(null),this.end(),x.nextTick(l,h)}},{"./_stream_readable":216,"./_stream_writable":218,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60,"core-util-is":189,inherits:196,"process-nextick-args":207}],215:[function(M,Y,o){"use strict";var L=M("babel-runtime/core-js/object/create"),g=A(L);function A(w){return w&&w.__esModule?w:{default:w}}Y.exports=x;var b=M("./_stream_transform"),y=(0,g.default)(M("core-util-is"));y.inherits=M("inherits"),y.inherits(x,b);function x(w){if(!(this instanceof x))return new x(w);b.call(this,w)}x.prototype._transform=function(w,f,_){_(null,w)}},{"./_stream_transform":217,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],216:[function(M,Y,o){(function(L,g){"use strict";var A=M("babel-runtime/core-js/object/get-prototype-of"),b=w(A),y=M("babel-runtime/core-js/object/create"),x=w(y);function w(re){return re&&re.__esModule?re:{default:re}}var f=M("process-nextick-args");Y.exports=C;var _=M("isarray"),d;C.ReadableState=E;var r=M("events").EventEmitter,u=function(ie,we){return ie.listeners(we).length},t=M("./internal/streams/stream"),a=M("safe-buffer").Buffer,n=g.Uint8Array||function(){};function i(re){return a.from(re)}function h(re){return a.isBuffer(re)||re instanceof n}var l=(0,x.default)(M("core-util-is"));l.inherits=M("inherits");var s=M("util"),p=void 0;s&&s.debuglog?p=s.debuglog("stream"):p=function(){};var O=M("./internal/streams/BufferList"),S=M("./internal/streams/destroy"),v;l.inherits(C,t);var P=["error","close","destroy","pause","resume"];function R(re,ie,we){if(typeof re.prependListener=="function")return re.prependListener(ie,we);!re._events||!re._events[ie]?re.on(ie,we):_(re._events[ie])?re._events[ie].unshift(we):re._events[ie]=[we,re._events[ie]]}function E(re,ie){d=d||M("./_stream_duplex"),re=re||{};var we=ie instanceof d;this.objectMode=!!re.objectMode,we&&(this.objectMode=this.objectMode||!!re.readableObjectMode);var le=re.highWaterMark,$=re.readableHighWaterMark,J=this.objectMode?16:16*1024;le||le===0?this.highWaterMark=le:we&&($||$===0)?this.highWaterMark=$:this.highWaterMark=J,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new O,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=re.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,re.encoding&&(v||(v=M("string_decoder/").StringDecoder),this.decoder=new v(re.encoding),this.encoding=re.encoding)}function C(re){if(d=d||M("./_stream_duplex"),!(this instanceof C))return new C(re);this._readableState=new E(re,this),this.readable=!0,re&&(typeof re.read=="function"&&(this._read=re.read),typeof re.destroy=="function"&&(this._destroy=re.destroy)),t.call(this)}Object.defineProperty(C.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(ie){if(!this._readableState)return;this._readableState.destroyed=ie}}),C.prototype.destroy=S.destroy,C.prototype._undestroy=S.undestroy,C.prototype._destroy=function(re,ie){this.push(null),ie(re)},C.prototype.push=function(re,ie){var we=this._readableState,le;return we.objectMode?le=!0:typeof re=="string"&&(ie=ie||we.defaultEncoding,ie!==we.encoding&&(re=a.from(re,ie),ie=""),le=!0),m(this,re,ie,!1,le)},C.prototype.unshift=function(re){return m(this,re,null,!0,!1)};function m(re,ie,we,le,$){var J=re._readableState;if(ie===null)J.reading=!1,W(re,J);else{var te;$||(te=I(J,ie)),te?re.emit("error",te):J.objectMode||ie&&ie.length>0?(typeof ie!="string"&&!J.objectMode&&(0,b.default)(ie)!==a.prototype&&(ie=i(ie)),le?J.endEmitted?re.emit("error",new Error("stream.unshift() after end event")):T(re,J,ie,!0):J.ended?re.emit("error",new Error("stream.push() after EOF")):(J.reading=!1,J.decoder&&!we?(ie=J.decoder.write(ie),J.objectMode||ie.length!==0?T(re,J,ie,!1):k(re,J)):T(re,J,ie,!1))):le||(J.reading=!1)}return D(J)}function T(re,ie,we,le){ie.flowing&&ie.length===0&&!ie.sync?(re.emit("data",we),re.read(0)):(ie.length+=ie.objectMode?1:we.length,le?ie.buffer.unshift(we):ie.buffer.push(we),ie.needReadable&&K(re)),k(re,ie)}function I(re,ie){var we;return!h(ie)&&typeof ie!="string"&&ie!==void 0&&!re.objectMode&&(we=new TypeError("Invalid non-string/buffer chunk")),we}function D(re){return!re.ended&&(re.needReadable||re.length<re.highWaterMark||re.length===0)}C.prototype.isPaused=function(){return this._readableState.flowing===!1},C.prototype.setEncoding=function(re){return v||(v=M("string_decoder/").StringDecoder),this._readableState.decoder=new v(re),this._readableState.encoding=re,this};var N=8388608;function z(re){return re>=N?re=N:(re--,re|=re>>>1,re|=re>>>2,re|=re>>>4,re|=re>>>8,re|=re>>>16,re++),re}function F(re,ie){return re<=0||ie.length===0&&ie.ended?0:ie.objectMode?1:re!==re?ie.flowing&&ie.length?ie.buffer.head.data.length:ie.length:(re>ie.highWaterMark&&(ie.highWaterMark=z(re)),re<=ie.length?re:ie.ended?ie.length:(ie.needReadable=!0,0))}C.prototype.read=function(re){p("read",re),re=parseInt(re,10);var ie=this._readableState,we=re;if(re!==0&&(ie.emittedReadable=!1),re===0&&ie.needReadable&&(ie.length>=ie.highWaterMark||ie.ended))return p("read: emitReadable",ie.length,ie.ended),ie.length===0&&ie.ended?se(this):K(this),null;if(re=F(re,ie),re===0&&ie.ended)return ie.length===0&&se(this),null;var le=ie.needReadable;p("need readable",le),(ie.length===0||ie.length-re<ie.highWaterMark)&&(le=!0,p("length less than watermark",le)),ie.ended||ie.reading?(le=!1,p("reading or ended",le)):le&&(p("do read"),ie.reading=!0,ie.sync=!0,ie.length===0&&(ie.needReadable=!0),this._read(ie.highWaterMark),ie.sync=!1,ie.reading||(re=F(we,ie)));var $;return re>0?$=ce(re,ie):$=null,$===null?(ie.needReadable=!0,re=0):ie.length-=re,ie.length===0&&(ie.ended||(ie.needReadable=!0),we!==re&&ie.ended&&se(this)),$!==null&&this.emit("data",$),$};function W(re,ie){if(ie.ended)return;if(ie.decoder){var we=ie.decoder.end();we&&we.length&&(ie.buffer.push(we),ie.length+=ie.objectMode?1:we.length)}ie.ended=!0,K(re)}function K(re){var ie=re._readableState;ie.needReadable=!1,ie.emittedReadable||(p("emitReadable",ie.flowing),ie.emittedReadable=!0,ie.sync?f.nextTick(B,re):B(re))}function B(re){p("emit readable"),re.emit("readable"),Oe(re)}function k(re,ie){ie.readingMore||(ie.readingMore=!0,f.nextTick(G,re,ie))}function G(re,ie){for(var we=ie.length;!ie.reading&&!ie.flowing&&!ie.ended&&ie.length<ie.highWaterMark&&!(p("maybeReadMore read 0"),re.read(0),we===ie.length);)we=ie.length;ie.readingMore=!1}C.prototype._read=function(re){this.emit("error",new Error("_read() is not implemented"))},C.prototype.pipe=function(re,ie){var we=this,le=this._readableState;switch(le.pipesCount){case 0:le.pipes=re;break;case 1:le.pipes=[le.pipes,re];break;default:le.pipes.push(re);break}le.pipesCount+=1,p("pipe count=%d opts=%j",le.pipesCount,ie);var $=(!ie||ie.end!==!1)&&re!==L.stdout&&re!==L.stderr,J=$?De:Je;le.endEmitted?f.nextTick(J):we.once("end",J),re.on("unpipe",te);function te(Ue,ft){p("onunpipe"),Ue===we&&(ft&&ft.hasUnpiped===!1&&(ft.hasUnpiped=!0,tt()))}function De(){p("onend"),re.end()}var Te=ne(we);re.on("drain",Te);var ke=!1;function tt(){p("cleanup"),re.removeListener("close",xt),re.removeListener("finish",St),re.removeListener("drain",Te),re.removeListener("error",Et),re.removeListener("unpipe",te),we.removeListener("end",De),we.removeListener("end",Je),we.removeListener("data",gt),ke=!0,le.awaitDrain&&(!re._writableState||re._writableState.needDrain)&&Te()}var ot=!1;we.on("data",gt);function gt(Ue){p("ondata"),ot=!1;var ft=re.write(Ue);ft===!1&&!ot&&((le.pipesCount===1&&le.pipes===re||le.pipesCount>1&&me(le.pipes,re)!==-1)&&!ke&&(p("false write response, pause",we._readableState.awaitDrain),we._readableState.awaitDrain++,ot=!0),we.pause())}function Et(Ue){p("onerror",Ue),Je(),re.removeListener("error",Et),u(re,"error")===0&&re.emit("error",Ue)}R(re,"error",Et);function xt(){re.removeListener("finish",St),Je()}re.once("close",xt);function St(){p("onfinish"),re.removeListener("close",xt),Je()}re.once("finish",St);function Je(){p("unpipe"),we.unpipe(re)}return re.emit("pipe",we),le.flowing||(p("pipe resume"),we.resume()),re};function ne(re){return function(){var ie=re._readableState;p("pipeOnDrain",ie.awaitDrain),ie.awaitDrain&&ie.awaitDrain--,ie.awaitDrain===0&&u(re,"data")&&(ie.flowing=!0,Oe(re))}}C.prototype.unpipe=function(re){var ie=this._readableState,we={hasUnpiped:!1};if(ie.pipesCount===0)return this;if(ie.pipesCount===1)return re&&re!==ie.pipes?this:(re||(re=ie.pipes),ie.pipes=null,ie.pipesCount=0,ie.flowing=!1,re&&re.emit("unpipe",this,we),this);if(!re){var le=ie.pipes,$=ie.pipesCount;ie.pipes=null,ie.pipesCount=0,ie.flowing=!1;for(var J=0;J<$;J++)le[J].emit("unpipe",this,we);return this}var te=me(ie.pipes,re);return te===-1?this:(ie.pipes.splice(te,1),ie.pipesCount-=1,ie.pipesCount===1&&(ie.pipes=ie.pipes[0]),re.emit("unpipe",this,we),this)},C.prototype.on=function(re,ie){var we=t.prototype.on.call(this,re,ie);if(re==="data")this._readableState.flowing!==!1&&this.resume();else if(re==="readable"){var le=this._readableState;!le.endEmitted&&!le.readableListening&&(le.readableListening=le.needReadable=!0,le.emittedReadable=!1,le.reading?le.length&&K(this):f.nextTick(fe,this))}return we},C.prototype.addListener=C.prototype.on;function fe(re){p("readable nexttick read 0"),re.read(0)}C.prototype.resume=function(){var re=this._readableState;return re.flowing||(p("resume"),re.flowing=!0,de(this,re)),this};function de(re,ie){ie.resumeScheduled||(ie.resumeScheduled=!0,f.nextTick(xe,re,ie))}function xe(re,ie){ie.reading||(p("resume read 0"),re.read(0)),ie.resumeScheduled=!1,ie.awaitDrain=0,re.emit("resume"),Oe(re),ie.flowing&&!ie.reading&&re.read(0)}C.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Oe(re){var ie=re._readableState;for(p("flow",ie.flowing);ie.flowing&&re.read()!==null;);}C.prototype.wrap=function(re){var ie=this,we=this._readableState,le=!1;re.on("end",function(){if(p("wrapped end"),we.decoder&&!we.ended){var te=we.decoder.end();te&&te.length&&ie.push(te)}ie.push(null)}),re.on("data",function(te){if(p("wrapped data"),we.decoder&&(te=we.decoder.write(te)),we.objectMode&&te==null)return;if(!we.objectMode&&(!te||!te.length))return;var De=ie.push(te);De||(le=!0,re.pause())});for(var $ in re)this[$]===void 0&&typeof re[$]=="function"&&(this[$]=function(te){return function(){return re[te].apply(re,arguments)}}($));for(var J=0;J<P.length;J++)re.on(P[J],this.emit.bind(this,P[J]));return this._read=function(te){p("wrapped _read",te),le&&(le=!1,re.resume())},this},Object.defineProperty(C.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),C._fromList=ce;function ce(re,ie){if(ie.length===0)return null;var we;return ie.objectMode?we=ie.buffer.shift():!re||re>=ie.length?(ie.decoder?we=ie.buffer.join(""):ie.buffer.length===1?we=ie.buffer.head.data:we=ie.buffer.concat(ie.length),ie.buffer.clear()):we=be(re,ie.buffer,ie.decoder),we}function be(re,ie,we){var le;return re<ie.head.data.length?(le=ie.head.data.slice(0,re),ie.head.data=ie.head.data.slice(re)):re===ie.head.data.length?le=ie.shift():le=we?ve(re,ie):ue(re,ie),le}function ve(re,ie){var we=ie.head,le=1,$=we.data;for(re-=$.length;we=we.next;){var J=we.data,te=re>J.length?J.length:re;if(te===J.length?$+=J:$+=J.slice(0,re),re-=te,re===0){te===J.length?(++le,we.next?ie.head=we.next:ie.head=ie.tail=null):(ie.head=we,we.data=J.slice(te));break}++le}return ie.length-=le,$}function ue(re,ie){var we=a.allocUnsafe(re),le=ie.head,$=1;for(le.data.copy(we),re-=le.data.length;le=le.next;){var J=le.data,te=re>J.length?J.length:re;if(J.copy(we,we.length-re,0,te),re-=te,re===0){te===J.length?(++$,le.next?ie.head=le.next:ie.head=ie.tail=null):(ie.head=le,le.data=J.slice(te));break}++$}return ie.length-=$,we}function se(re){var ie=re._readableState;if(ie.length>0)throw new Error('"endReadable()" called on non-empty stream');ie.endEmitted||(ie.ended=!0,f.nextTick(q,ie,re))}function q(re,ie){!re.endEmitted&&re.length===0&&(re.endEmitted=!0,ie.readable=!1,ie.emit("end"))}function me(re,ie){for(var we=0,le=re.length;we<le;we++)if(re[we]===ie)return we;return-1}}).call(this,M("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":214,"./internal/streams/BufferList":219,"./internal/streams/destroy":220,"./internal/streams/stream":221,_process:208,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/get-prototype-of":59,"core-util-is":189,events:192,inherits:196,isarray:198,"process-nextick-args":207,"safe-buffer":228,"string_decoder/":235,util:71}],217:[function(M,Y,o){"use strict";var L=M("babel-runtime/core-js/object/create"),g=A(L);function A(d){return d&&d.__esModule?d:{default:d}}Y.exports=w;var b=M("./_stream_duplex"),y=(0,g.default)(M("core-util-is"));y.inherits=M("inherits"),y.inherits(w,b);function x(d,r){var u=this._transformState;u.transforming=!1;var t=u.writecb;if(!t)return this.emit("error",new Error("write callback called multiple times"));u.writechunk=null,u.writecb=null,r!=null&&this.push(r),t(d);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function w(d){if(!(this instanceof w))return new w(d);b.call(this,d),this._transformState={afterTransform:x.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,d&&(typeof d.transform=="function"&&(this._transform=d.transform),typeof d.flush=="function"&&(this._flush=d.flush)),this.on("prefinish",f)}function f(){var d=this;typeof this._flush=="function"?this._flush(function(r,u){_(d,r,u)}):_(this,null,null)}w.prototype.push=function(d,r){return this._transformState.needTransform=!1,b.prototype.push.call(this,d,r)},w.prototype._transform=function(d,r,u){throw new Error("_transform() is not implemented")},w.prototype._write=function(d,r,u){var t=this._transformState;if(t.writecb=u,t.writechunk=d,t.writeencoding=r,!t.transforming){var a=this._readableState;(t.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}},w.prototype._read=function(d){var r=this._transformState;r.writechunk!==null&&r.writecb&&!r.transforming?(r.transforming=!0,this._transform(r.writechunk,r.writeencoding,r.afterTransform)):r.needTransform=!0},w.prototype._destroy=function(d,r){var u=this;b.prototype._destroy.call(this,d,function(t){r(t),u.emit("close")})};function _(d,r,u){if(r)return d.emit("error",r);if(u!=null&&d.push(u),d._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(d._transformState.transforming)throw new Error("Calling transform done when still transforming");return d.push(null)}},{"./_stream_duplex":214,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],218:[function(M,Y,o){(function(L,g){"use strict";var A=M("babel-runtime/core-js/object/define-property"),b=t(A),y=M("babel-runtime/core-js/symbol/has-instance"),x=t(y),w=M("babel-runtime/core-js/symbol"),f=t(w),_=M("babel-runtime/core-js/object/create"),d=t(_),r=M("babel-runtime/core-js/set-immediate"),u=t(r);function t(ue){return ue&&ue.__esModule?ue:{default:ue}}var a=M("process-nextick-args");Y.exports=I;function n(ue,se,q){this.chunk=ue,this.encoding=se,this.callback=q,this.next=null}function i(ue){var se=this;this.next=null,this.entry=null,this.finish=function(){ve(se,ue)}}var h=!L.browser&&["v0.10","v0.9."].indexOf(L.version.slice(0,5))>-1?u.default:a.nextTick,l;I.WritableState=m;var s=(0,d.default)(M("core-util-is"));s.inherits=M("inherits");var p={deprecate:M("util-deprecate")},O=M("./internal/streams/stream"),S=M("safe-buffer").Buffer,v=g.Uint8Array||function(){};function P(ue){return S.from(ue)}function R(ue){return S.isBuffer(ue)||ue instanceof v}var E=M("./internal/streams/destroy");s.inherits(I,O);function C(){}function m(ue,se){l=l||M("./_stream_duplex"),ue=ue||{};var q=se instanceof l;this.objectMode=!!ue.objectMode,q&&(this.objectMode=this.objectMode||!!ue.writableObjectMode);var me=ue.highWaterMark,re=ue.writableHighWaterMark,ie=this.objectMode?16:16*1024;me||me===0?this.highWaterMark=me:q&&(re||re===0)?this.highWaterMark=re:this.highWaterMark=ie,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var we=ue.decodeStrings===!1;this.decodeStrings=!we,this.defaultEncoding=ue.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(le){k(se,le)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}m.prototype.getBuffer=function(){for(var se=this.bufferedRequest,q=[];se;)q.push(se),se=se.next;return q},function(){try{Object.defineProperty(m.prototype,"buffer",{get:p.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(ue){}}();var T;typeof f.default=="function"&&x.default&&typeof Function.prototype[x.default]=="function"?(T=Function.prototype[x.default],(0,b.default)(I,x.default,{value:function(se){return T.call(this,se)?!0:this!==I?!1:se&&se._writableState instanceof m}})):T=function(se){return se instanceof this};function I(ue){if(l=l||M("./_stream_duplex"),!T.call(I,this)&&!(this instanceof l))return new I(ue);this._writableState=new m(ue,this),this.writable=!0,ue&&(typeof ue.write=="function"&&(this._write=ue.write),typeof ue.writev=="function"&&(this._writev=ue.writev),typeof ue.destroy=="function"&&(this._destroy=ue.destroy),typeof ue.final=="function"&&(this._final=ue.final)),O.call(this)}I.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function D(ue,se){var q=new Error("write after end");ue.emit("error",q),a.nextTick(se,q)}function N(ue,se,q,me){var re=!0,ie=!1;return q===null?ie=new TypeError("May not write null values to stream"):typeof q!="string"&&q!==void 0&&!se.objectMode&&(ie=new TypeError("Invalid non-string/buffer chunk")),ie&&(ue.emit("error",ie),a.nextTick(me,ie),re=!1),re}I.prototype.write=function(ue,se,q){var me=this._writableState,re=!1,ie=!me.objectMode&&R(ue);return ie&&!S.isBuffer(ue)&&(ue=P(ue)),typeof se=="function"&&(q=se,se=null),ie?se="buffer":se||(se=me.defaultEncoding),typeof q!="function"&&(q=C),me.ended?D(this,q):(ie||N(this,me,ue,q))&&(me.pendingcb++,re=F(this,me,ie,ue,se,q)),re},I.prototype.cork=function(){var ue=this._writableState;ue.corked++},I.prototype.uncork=function(){var ue=this._writableState;ue.corked&&(ue.corked--,!ue.writing&&!ue.corked&&!ue.finished&&!ue.bufferProcessing&&ue.bufferedRequest&&fe(this,ue))},I.prototype.setDefaultEncoding=function(se){if(typeof se=="string"&&(se=se.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((se+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+se);return this._writableState.defaultEncoding=se,this};function z(ue,se,q){return!ue.objectMode&&ue.decodeStrings!==!1&&typeof se=="string"&&(se=S.from(se,q)),se}Object.defineProperty(I.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function F(ue,se,q,me,re,ie){if(!q){var we=z(se,me,re);me!==we&&(q=!0,re="buffer",me=we)}var le=se.objectMode?1:me.length;se.length+=le;var $=se.length<se.highWaterMark;if($||(se.needDrain=!0),se.writing||se.corked){var J=se.lastBufferedRequest;se.lastBufferedRequest={chunk:me,encoding:re,isBuf:q,callback:ie,next:null},J?J.next=se.lastBufferedRequest:se.bufferedRequest=se.lastBufferedRequest,se.bufferedRequestCount+=1}else W(ue,se,!1,le,me,re,ie);return $}function W(ue,se,q,me,re,ie,we){se.writelen=me,se.writecb=we,se.writing=!0,se.sync=!0,q?ue._writev(re,se.onwrite):ue._write(re,ie,se.onwrite),se.sync=!1}function K(ue,se,q,me,re){--se.pendingcb,q?(a.nextTick(re,me),a.nextTick(ce,ue,se),ue._writableState.errorEmitted=!0,ue.emit("error",me)):(re(me),ue._writableState.errorEmitted=!0,ue.emit("error",me),ce(ue,se))}function B(ue){ue.writing=!1,ue.writecb=null,ue.length-=ue.writelen,ue.writelen=0}function k(ue,se){var q=ue._writableState,me=q.sync,re=q.writecb;if(B(q),se)K(ue,q,me,se,re);else{var ie=de(q);!ie&&!q.corked&&!q.bufferProcessing&&q.bufferedRequest&&fe(ue,q),me?h(G,ue,q,ie,re):G(ue,q,ie,re)}}function G(ue,se,q,me){q||ne(ue,se),se.pendingcb--,me(),ce(ue,se)}function ne(ue,se){se.length===0&&se.needDrain&&(se.needDrain=!1,ue.emit("drain"))}function fe(ue,se){se.bufferProcessing=!0;var q=se.bufferedRequest;if(ue._writev&&q&&q.next){var me=se.bufferedRequestCount,re=new Array(me),ie=se.corkedRequestsFree;ie.entry=q;for(var we=0,le=!0;q;)re[we]=q,q.isBuf||(le=!1),q=q.next,we+=1;re.allBuffers=le,W(ue,se,!0,se.length,re,"",ie.finish),se.pendingcb++,se.lastBufferedRequest=null,ie.next?(se.corkedRequestsFree=ie.next,ie.next=null):se.corkedRequestsFree=new i(se),se.bufferedRequestCount=0}else{for(;q;){var $=q.chunk,J=q.encoding,te=q.callback,De=se.objectMode?1:$.length;if(W(ue,se,!1,De,$,J,te),q=q.next,se.bufferedRequestCount--,se.writing)break}q===null&&(se.lastBufferedRequest=null)}se.bufferedRequest=q,se.bufferProcessing=!1}I.prototype._write=function(ue,se,q){q(new Error("_write() is not implemented"))},I.prototype._writev=null,I.prototype.end=function(ue,se,q){var me=this._writableState;typeof ue=="function"?(q=ue,ue=null,se=null):typeof se=="function"&&(q=se,se=null),ue!=null&&this.write(ue,se),me.corked&&(me.corked=1,this.uncork()),!me.ending&&!me.finished&&be(this,me,q)};function de(ue){return ue.ending&&ue.length===0&&ue.bufferedRequest===null&&!ue.finished&&!ue.writing}function xe(ue,se){ue._final(function(q){se.pendingcb--,q&&ue.emit("error",q),se.prefinished=!0,ue.emit("prefinish"),ce(ue,se)})}function Oe(ue,se){!se.prefinished&&!se.finalCalled&&(typeof ue._final=="function"?(se.pendingcb++,se.finalCalled=!0,a.nextTick(xe,ue,se)):(se.prefinished=!0,ue.emit("prefinish")))}function ce(ue,se){var q=de(se);return q&&(Oe(ue,se),se.pendingcb===0&&(se.finished=!0,ue.emit("finish"))),q}function be(ue,se,q){se.ending=!0,ce(ue,se),q&&(se.finished?a.nextTick(q):ue.once("finish",q)),se.ended=!0,ue.writable=!1}function ve(ue,se,q){var me=ue.entry;for(ue.entry=null;me;){var re=me.callback;se.pendingcb--,re(q),me=me.next}se.corkedRequestsFree?se.corkedRequestsFree.next=ue:se.corkedRequestsFree=ue}Object.defineProperty(I.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(se){if(!this._writableState)return;this._writableState.destroyed=se}}),I.prototype.destroy=E.destroy,I.prototype._undestroy=E.undestroy,I.prototype._destroy=function(ue,se){this.end(),se(ue)}}).call(this,M("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":214,"./internal/streams/destroy":220,"./internal/streams/stream":221,_process:208,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/set-immediate":62,"babel-runtime/core-js/symbol":64,"babel-runtime/core-js/symbol/has-instance":65,"core-util-is":189,inherits:196,"process-nextick-args":207,"safe-buffer":228,"util-deprecate":240}],219:[function(M,Y,o){"use strict";function L(y,x){if(!(y instanceof x))throw new TypeError("Cannot call a class as a function")}var g=M("safe-buffer").Buffer,A=M("util");function b(y,x,w){y.copy(x,w)}Y.exports=function(){function y(){L(this,y),this.head=null,this.tail=null,this.length=0}return y.prototype.push=function(w){var f={data:w,next:null};this.length>0?this.tail.next=f:this.head=f,this.tail=f,++this.length},y.prototype.unshift=function(w){var f={data:w,next:this.head};this.length===0&&(this.tail=f),this.head=f,++this.length},y.prototype.shift=function(){if(this.length===0)return;var w=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,w},y.prototype.clear=function(){this.head=this.tail=null,this.length=0},y.prototype.join=function(w){if(this.length===0)return"";for(var f=this.head,_=""+f.data;f=f.next;)_+=w+f.data;return _},y.prototype.concat=function(w){if(this.length===0)return g.alloc(0);if(this.length===1)return this.head.data;for(var f=g.allocUnsafe(w>>>0),_=this.head,d=0;_;)b(_.data,f,d),d+=_.data.length,_=_.next;return f},y}(),A&&A.inspect&&A.inspect.custom&&(Y.exports.prototype[A.inspect.custom]=function(){var y=A.inspect({length:this.length});return this.constructor.name+" "+y})},{"safe-buffer":228,util:71}],220:[function(M,Y,o){"use strict";var L=M("process-nextick-args");function g(y,x){var w=this,f=this._readableState&&this._readableState.destroyed,_=this._writableState&&this._writableState.destroyed;return f||_?(x?x(y):y&&(!this._writableState||!this._writableState.errorEmitted)&&L.nextTick(b,this,y),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(y||null,function(d){!x&&d?(L.nextTick(b,w,d),w._writableState&&(w._writableState.errorEmitted=!0)):x&&x(d)}),this)}function A(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function b(y,x){y.emit("error",x)}Y.exports={destroy:g,undestroy:A}},{"process-nextick-args":207}],221:[function(M,Y,o){"use strict";Y.exports=M("events").EventEmitter},{events:192}],222:[function(M,Y,o){Y.exports=M("./readable").PassThrough},{"./readable":223}],223:[function(M,Y,o){o=Y.exports=M("./lib/_stream_readable.js"),o.Stream=o,o.Readable=o,o.Writable=M("./lib/_stream_writable.js"),o.Duplex=M("./lib/_stream_duplex.js"),o.Transform=M("./lib/_stream_transform.js"),o.PassThrough=M("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":214,"./lib/_stream_passthrough.js":215,"./lib/_stream_readable.js":216,"./lib/_stream_transform.js":217,"./lib/_stream_writable.js":218}],224:[function(M,Y,o){Y.exports=M("./readable").Transform},{"./readable":223}],225:[function(M,Y,o){Y.exports=M("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":218}],226:[function(M,Y,o){var L=function(){return this}()||Function("return this")(),g=L.regeneratorRuntime&&Object.getOwnPropertyNames(L).indexOf("regeneratorRuntime")>=0,A=g&&L.regeneratorRuntime;if(L.regeneratorRuntime=void 0,Y.exports=M("./runtime"),g)L.regeneratorRuntime=A;else try{delete L.regeneratorRuntime}catch(b){L.regeneratorRuntime=void 0}},{"./runtime":227}],227:[function(M,Y,o){!function(L){"use strict";var g=Object.prototype,A=g.hasOwnProperty,b,y=typeof Symbol=="function"?Symbol:{},x=y.iterator||"@@iterator",w=y.asyncIterator||"@@asyncIterator",f=y.toStringTag||"@@toStringTag",_=typeof Y=="object",d=L.regeneratorRuntime;if(d){_&&(Y.exports=d);return}d=L.regeneratorRuntime=_?Y.exports:{};function r(F,W,K,B){var k=W&&W.prototype instanceof l?W:l,G=Object.create(k.prototype),ne=new D(B||[]);return G._invoke=C(F,K,ne),G}d.wrap=r;function u(F,W,K){try{return{type:"normal",arg:F.call(W,K)}}catch(B){return{type:"throw",arg:B}}}var t="suspendedStart",a="suspendedYield",n="executing",i="completed",h={};function l(){}function s(){}function p(){}var O={};O[x]=function(){return this};var S=Object.getPrototypeOf,v=S&&S(S(N([])));v&&v!==g&&A.call(v,x)&&(O=v);var P=p.prototype=l.prototype=Object.create(O);s.prototype=P.constructor=p,p.constructor=s,p[f]=s.displayName="GeneratorFunction";function R(F){["next","throw","return"].forEach(function(W){F[W]=function(K){return this._invoke(W,K)}})}d.isGeneratorFunction=function(F){var W=typeof F=="function"&&F.constructor;return W?W===s||(W.displayName||W.name)==="GeneratorFunction":!1},d.mark=function(F){return Object.setPrototypeOf?Object.setPrototypeOf(F,p):(F.__proto__=p,f in F||(F[f]="GeneratorFunction")),F.prototype=Object.create(P),F},d.awrap=function(F){return{__await:F}};function E(F){function W(k,G,ne,fe){var de=u(F[k],F,G);if(de.type==="throw")fe(de.arg);else{var xe=de.arg,Oe=xe.value;return Oe&&typeof Oe=="object"&&A.call(Oe,"__await")?Promise.resolve(Oe.__await).then(function(ce){W("next",ce,ne,fe)},function(ce){W("throw",ce,ne,fe)}):Promise.resolve(Oe).then(function(ce){xe.value=ce,ne(xe)},fe)}}var K;function B(k,G){function ne(){return new Promise(function(fe,de){W(k,G,fe,de)})}return K=K?K.then(ne,ne):ne()}this._invoke=B}R(E.prototype),E.prototype[w]=function(){return this},d.AsyncIterator=E,d.async=function(F,W,K,B){var k=new E(r(F,W,K,B));return d.isGeneratorFunction(W)?k:k.next().then(function(G){return G.done?G.value:k.next()})};function C(F,W,K){var B=t;return function(G,ne){if(B===n)throw new Error("Generator is already running");if(B===i){if(G==="throw")throw ne;return z()}for(K.method=G,K.arg=ne;;){var fe=K.delegate;if(fe){var de=m(fe,K);if(de){if(de===h)continue;return de}}if(K.method==="next")K.sent=K._sent=K.arg;else if(K.method==="throw"){if(B===t)throw B=i,K.arg;K.dispatchException(K.arg)}else K.method==="return"&&K.abrupt("return",K.arg);B=n;var xe=u(F,W,K);if(xe.type==="normal"){if(B=K.done?i:a,xe.arg===h)continue;return{value:xe.arg,done:K.done}}else xe.type==="throw"&&(B=i,K.method="throw",K.arg=xe.arg)}}}function m(F,W){var K=F.iterator[W.method];if(K===b){if(W.delegate=null,W.method==="throw"){if(F.iterator.return&&(W.method="return",W.arg=b,m(F,W),W.method==="throw"))return h;W.method="throw",W.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var B=u(K,F.iterator,W.arg);if(B.type==="throw")return W.method="throw",W.arg=B.arg,W.delegate=null,h;var k=B.arg;if(!k)return W.method="throw",W.arg=new TypeError("iterator result is not an object"),W.delegate=null,h;if(k.done)W[F.resultName]=k.value,W.next=F.nextLoc,W.method!=="return"&&(W.method="next",W.arg=b);else return k;return W.delegate=null,h}R(P),P[f]="Generator",P[x]=function(){return this},P.toString=function(){return"[object Generator]"};function T(F){var W={tryLoc:F[0]};1 in F&&(W.catchLoc=F[1]),2 in F&&(W.finallyLoc=F[2],W.afterLoc=F[3]),this.tryEntries.push(W)}function I(F){var W=F.completion||{};W.type="normal",delete W.arg,F.completion=W}function D(F){this.tryEntries=[{tryLoc:"root"}],F.forEach(T,this),this.reset(!0)}d.keys=function(F){var W=[];for(var K in F)W.push(K);return W.reverse(),function B(){for(;W.length;){var k=W.pop();if(k in F)return B.value=k,B.done=!1,B}return B.done=!0,B}};function N(F){if(F){var W=F[x];if(W)return W.call(F);if(typeof F.next=="function")return F;if(!isNaN(F.length)){var K=-1,B=function k(){for(;++K<F.length;)if(A.call(F,K))return k.value=F[K],k.done=!1,k;return k.value=b,k.done=!0,k};return B.next=B}}return{next:z}}d.values=N;function z(){return{value:b,done:!0}}D.prototype={constructor:D,reset:function(F){if(this.prev=0,this.next=0,this.sent=this._sent=b,this.done=!1,this.delegate=null,this.method="next",this.arg=b,this.tryEntries.forEach(I),!F)for(var W in this)W.charAt(0)==="t"&&A.call(this,W)&&!isNaN(+W.slice(1))&&(this[W]=b)},stop:function(){this.done=!0;var F=this.tryEntries[0],W=F.completion;if(W.type==="throw")throw W.arg;return this.rval},dispatchException:function(F){if(this.done)throw F;var W=this;function K(de,xe){return G.type="throw",G.arg=F,W.next=de,xe&&(W.method="next",W.arg=b),!!xe}for(var B=this.tryEntries.length-1;B>=0;--B){var k=this.tryEntries[B],G=k.completion;if(k.tryLoc==="root")return K("end");if(k.tryLoc<=this.prev){var ne=A.call(k,"catchLoc"),fe=A.call(k,"finallyLoc");if(ne&&fe){if(this.prev<k.catchLoc)return K(k.catchLoc,!0);if(this.prev<k.finallyLoc)return K(k.finallyLoc)}else if(ne){if(this.prev<k.catchLoc)return K(k.catchLoc,!0)}else if(fe){if(this.prev<k.finallyLoc)return K(k.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(F,W){for(var K=this.tryEntries.length-1;K>=0;--K){var B=this.tryEntries[K];if(B.tryLoc<=this.prev&&A.call(B,"finallyLoc")&&this.prev<B.finallyLoc){var k=B;break}}k&&(F==="break"||F==="continue")&&k.tryLoc<=W&&W<=k.finallyLoc&&(k=null);var G=k?k.completion:{};return G.type=F,G.arg=W,k?(this.method="next",this.next=k.finallyLoc,h):this.complete(G)},complete:function(F,W){if(F.type==="throw")throw F.arg;return F.type==="break"||F.type==="continue"?this.next=F.arg:F.type==="return"?(this.rval=this.arg=F.arg,this.method="return",this.next="end"):F.type==="normal"&&W&&(this.next=W),h},finish:function(F){for(var W=this.tryEntries.length-1;W>=0;--W){var K=this.tryEntries[W];if(K.finallyLoc===F)return this.complete(K.completion,K.afterLoc),I(K),h}},catch:function(F){for(var W=this.tryEntries.length-1;W>=0;--W){var K=this.tryEntries[W];if(K.tryLoc===F){var B=K.completion;if(B.type==="throw"){var k=B.arg;I(K)}return k}}throw new Error("illegal catch attempt")},delegateYield:function(F,W,K){return this.delegate={iterator:N(F),resultName:W,nextLoc:K},this.method==="next"&&(this.arg=b),h}}}(function(){return this}()||Function("return this")())},{}],228:[function(M,Y,o){var L=M("buffer"),g=L.Buffer;function A(y,x){for(var w in y)x[w]=y[w]}g.from&&g.alloc&&g.allocUnsafe&&g.allocUnsafeSlow?Y.exports=L:(A(L,o),o.Buffer=b);function b(y,x,w){return g(y,x,w)}A(g,b),b.from=function(y,x,w){if(typeof y=="number")throw new TypeError("Argument must not be a number");return g(y,x,w)},b.alloc=function(y,x,w){if(typeof y!="number")throw new TypeError("Argument must be a number");var f=g(y);return x!==void 0?typeof w=="string"?f.fill(x,w):f.fill(x):f.fill(0),f},b.allocUnsafe=function(y){if(typeof y!="number")throw new TypeError("Argument must be a number");return g(y)},b.allocUnsafeSlow=function(y){if(typeof y!="number")throw new TypeError("Argument must be a number");return L.SlowBuffer(y)}},{buffer:73}],229:[function(M,Y,o){(function(L){"use strict";var g=M("babel-runtime/core-js/string/from-code-point"),A=a(g),b=M("babel-runtime/core-js/json/stringify"),y=a(b),x=M("babel-runtime/helpers/typeof"),w=a(x),f=M("babel-runtime/core-js/object/define-property"),_=a(f),d=M("babel-runtime/core-js/object/keys"),r=a(d),u=M("babel-runtime/core-js/object/create"),t=a(u);function a(n){return n&&n.__esModule?n:{default:n}}(function(n){n.parser=function(J,te){return new h(J,te)},n.SAXParser=h,n.SAXStream=P,n.createStream=v,n.MAX_BUFFER_LENGTH=64*1024;var i=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];n.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function h(J,te){if(!(this instanceof h))return new h(J,te);var De=this;s(De),De.q=De.c="",De.bufferCheckPosition=n.MAX_BUFFER_LENGTH,De.opt=te||{},De.opt.lowercase=De.opt.lowercase||De.opt.lowercasetags,De.looseCase=De.opt.lowercase?"toLowerCase":"toUpperCase",De.tags=[],De.closed=De.closedRoot=De.sawRoot=!1,De.tag=De.error=null,De.strict=!!J,De.noscript=!!(J||De.opt.noscript),De.state=G.BEGIN,De.strictEntities=De.opt.strictEntities,De.ENTITIES=De.strictEntities?(0,t.default)(n.XML_ENTITIES):(0,t.default)(n.ENTITIES),De.attribList=[],De.opt.xmlns&&(De.ns=(0,t.default)(T)),De.trackPosition=De.opt.position!==!1,De.trackPosition&&(De.position=De.line=De.column=0),fe(De,"onready")}t.default||(Object.create=function(J){function te(){}te.prototype=J;var De=new te;return De}),r.default||(Object.keys=function(J){var te=[];for(var De in J)J.hasOwnProperty(De)&&te.push(De);return te});function l(J){for(var te=Math.max(n.MAX_BUFFER_LENGTH,10),De=0,Te=0,ke=i.length;Te<ke;Te++){var tt=J[i[Te]].length;if(tt>te)switch(i[Te]){case"textNode":xe(J);break;case"cdata":de(J,"oncdata",J.cdata),J.cdata="";break;case"script":de(J,"onscript",J.script),J.script="";break;default:ce(J,"Max buffer length exceeded: "+i[Te])}De=Math.max(De,tt)}var ot=n.MAX_BUFFER_LENGTH-De;J.bufferCheckPosition=ot+J.position}function s(J){for(var te=0,De=i.length;te<De;te++)J[i[te]]=""}function p(J){xe(J),J.cdata!==""&&(de(J,"oncdata",J.cdata),J.cdata=""),J.script!==""&&(de(J,"onscript",J.script),J.script="")}h.prototype={end:function(){be(this)},write:$,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){p(this)}};var O;try{O=M("stream").Stream}catch(J){O=function(){}}var S=n.EVENTS.filter(function(J){return J!=="error"&&J!=="end"});function v(J,te){return new P(J,te)}function P(J,te){if(!(this instanceof P))return new P(J,te);O.apply(this),this._parser=new h(J,te),this.writable=!0,this.readable=!0;var De=this;this._parser.onend=function(){De.emit("end")},this._parser.onerror=function(Te){De.emit("error",Te),De._parser.error=null},this._decoder=null,S.forEach(function(Te){(0,_.default)(De,"on"+Te,{get:function(){return De._parser["on"+Te]},set:function(tt){if(!tt)return De.removeAllListeners(Te),De._parser["on"+Te]=tt,tt;De.on(Te,tt)},enumerable:!0,configurable:!1})})}P.prototype=(0,t.default)(O.prototype,{constructor:{value:P}}),P.prototype.write=function(J){if(typeof L=="function"&&typeof L.isBuffer=="function"&&L.isBuffer(J)){if(!this._decoder){var te=M("string_decoder").StringDecoder;this._decoder=new te("utf8")}J=this._decoder.write(J)}return this._parser.write(J.toString()),this.emit("data",J),!0},P.prototype.end=function(J){return J&&J.length&&this.write(J),this._parser.end(),!0},P.prototype.on=function(J,te){var De=this;return!De._parser["on"+J]&&S.indexOf(J)!==-1&&(De._parser["on"+J]=function(){var Te=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);Te.splice(0,0,J),De.emit.apply(De,Te)}),O.prototype.on.call(De,J,te)};var R="[CDATA[",E="DOCTYPE",C="http://www.w3.org/XML/1998/namespace",m="http://www.w3.org/2000/xmlns/",T={xml:C,xmlns:m},I=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,D=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,N=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,z=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function F(J){return J===" "||J===`
`||J==="\r"||J===" "}function W(J){return J==='"'||J==="'"}function K(J){return J===">"||F(J)}function B(J,te){return J.test(te)}function k(J,te){return!B(J,te)}var G=0;n.STATE={BEGIN:G++,BEGIN_WHITESPACE:G++,TEXT:G++,TEXT_ENTITY:G++,OPEN_WAKA:G++,SGML_DECL:G++,SGML_DECL_QUOTED:G++,DOCTYPE:G++,DOCTYPE_QUOTED:G++,DOCTYPE_DTD:G++,DOCTYPE_DTD_QUOTED:G++,COMMENT_STARTING:G++,COMMENT:G++,COMMENT_ENDING:G++,COMMENT_ENDED:G++,CDATA:G++,CDATA_ENDING:G++,CDATA_ENDING_2:G++,PROC_INST:G++,PROC_INST_BODY:G++,PROC_INST_ENDING:G++,OPEN_TAG:G++,OPEN_TAG_SLASH:G++,ATTRIB:G++,ATTRIB_NAME:G++,ATTRIB_NAME_SAW_WHITE:G++,ATTRIB_VALUE:G++,ATTRIB_VALUE_QUOTED:G++,ATTRIB_VALUE_CLOSED:G++,ATTRIB_VALUE_UNQUOTED:G++,ATTRIB_VALUE_ENTITY_Q:G++,ATTRIB_VALUE_ENTITY_U:G++,CLOSE_TAG:G++,CLOSE_TAG_SAW_WHITE:G++,SCRIPT:G++,SCRIPT_ENDING:G++},n.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},n.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},(0,r.default)(n.ENTITIES).forEach(function(J){var te=n.ENTITIES[J],De=typeof te=="number"?String.fromCharCode(te):te;n.ENTITIES[J]=De});for(var ne in n.STATE)n.STATE[n.STATE[ne]]=ne;G=n.STATE;function fe(J,te,De){J[te]&&J[te](De)}function de(J,te,De){J.textNode&&xe(J),fe(J,te,De)}function xe(J){J.textNode=Oe(J.opt,J.textNode),J.textNode&&fe(J,"ontext",J.textNode),J.textNode=""}function Oe(J,te){return J.trim&&(te=te.trim()),J.normalize&&(te=te.replace(/\s+/g," ")),te}function ce(J,te){return xe(J),J.trackPosition&&(te+=`
Line: `+J.line+`
Column: `+J.column+`
Char: `+J.c),te=new Error(te),J.error=te,fe(J,"onerror",te),J}function be(J){return J.sawRoot&&!J.closedRoot&&ve(J,"Unclosed root tag"),J.state!==G.BEGIN&&J.state!==G.BEGIN_WHITESPACE&&J.state!==G.TEXT&&ce(J,"Unexpected end"),xe(J),J.c="",J.closed=!0,fe(J,"onend"),h.call(J,J.strict,J.opt),J}function ve(J,te){if((typeof J=="undefined"?"undefined":(0,w.default)(J))!=="object"||!(J instanceof h))throw new Error("bad call to strictFail");J.strict&&ce(J,te)}function ue(J){J.strict||(J.tagName=J.tagName[J.looseCase]());var te=J.tags[J.tags.length-1]||J,De=J.tag={name:J.tagName,attributes:{}};J.opt.xmlns&&(De.ns=te.ns),J.attribList.length=0,de(J,"onopentagstart",De)}function se(J,te){var De=J.indexOf(":"),Te=De<0?["",J]:J.split(":"),ke=Te[0],tt=Te[1];return te&&J==="xmlns"&&(ke="xmlns",tt=""),{prefix:ke,local:tt}}function q(J){if(J.strict||(J.attribName=J.attribName[J.looseCase]()),J.attribList.indexOf(J.attribName)!==-1||J.tag.attributes.hasOwnProperty(J.attribName)){J.attribName=J.attribValue="";return}if(J.opt.xmlns){var te=se(J.attribName,!0),De=te.prefix,Te=te.local;if(De==="xmlns")if(Te==="xml"&&J.attribValue!==C)ve(J,"xml: prefix must be bound to "+C+`
Actual: `+J.attribValue);else if(Te==="xmlns"&&J.attribValue!==m)ve(J,"xmlns: prefix must be bound to "+m+`
Actual: `+J.attribValue);else{var ke=J.tag,tt=J.tags[J.tags.length-1]||J;ke.ns===tt.ns&&(ke.ns=(0,t.default)(tt.ns)),ke.ns[Te]=J.attribValue}J.attribList.push([J.attribName,J.attribValue])}else J.tag.attributes[J.attribName]=J.attribValue,de(J,"onattribute",{name:J.attribName,value:J.attribValue});J.attribName=J.attribValue=""}function me(J,te){if(J.opt.xmlns){var De=J.tag,Te=se(J.tagName);De.prefix=Te.prefix,De.local=Te.local,De.uri=De.ns[Te.prefix]||"",De.prefix&&!De.uri&&(ve(J,"Unbound namespace prefix: "+(0,y.default)(J.tagName)),De.uri=Te.prefix);var ke=J.tags[J.tags.length-1]||J;De.ns&&ke.ns!==De.ns&&(0,r.default)(De.ns).forEach(function(ht){de(J,"onopennamespace",{prefix:ht,uri:De.ns[ht]})});for(var tt=0,ot=J.attribList.length;tt<ot;tt++){var gt=J.attribList[tt],Et=gt[0],xt=gt[1],St=se(Et,!0),Je=St.prefix,Ue=St.local,ft=Je===""?"":De.ns[Je]||"",kt={name:Et,value:xt,prefix:Je,local:Ue,uri:ft};Je&&Je!=="xmlns"&&!ft&&(ve(J,"Unbound namespace prefix: "+(0,y.default)(Je)),kt.uri=Je),J.tag.attributes[Et]=kt,de(J,"onattribute",kt)}J.attribList.length=0}J.tag.isSelfClosing=!!te,J.sawRoot=!0,J.tags.push(J.tag),de(J,"onopentag",J.tag),te||(!J.noscript&&J.tagName.toLowerCase()==="script"?J.state=G.SCRIPT:J.state=G.TEXT,J.tag=null,J.tagName=""),J.attribName=J.attribValue="",J.attribList.length=0}function re(J){if(!J.tagName){ve(J,"Weird empty close tag."),J.textNode+="</>",J.state=G.TEXT;return}if(J.script){if(J.tagName!=="script"){J.script+="</"+J.tagName+">",J.tagName="",J.state=G.SCRIPT;return}de(J,"onscript",J.script),J.script=""}var te=J.tags.length,De=J.tagName;J.strict||(De=De[J.looseCase]());for(var Te=De;te--;){var ke=J.tags[te];if(ke.name!==Te)ve(J,"Unexpected close tag");else break}if(te<0){ve(J,"Unmatched closing tag: "+J.tagName),J.textNode+="</"+J.tagName+">",J.state=G.TEXT;return}J.tagName=De;for(var tt=J.tags.length;tt-- >te;){var ot=J.tag=J.tags.pop();J.tagName=J.tag.name,de(J,"onclosetag",J.tagName);var gt={};for(var Et in ot.ns)gt[Et]=ot.ns[Et];var xt=J.tags[J.tags.length-1]||J;J.opt.xmlns&&ot.ns!==xt.ns&&(0,r.default)(ot.ns).forEach(function(St){var Je=ot.ns[St];de(J,"onclosenamespace",{prefix:St,uri:Je})})}te===0&&(J.closedRoot=!0),J.tagName=J.attribValue=J.attribName="",J.attribList.length=0,J.state=G.TEXT}function ie(J){var te=J.entity,De=te.toLowerCase(),Te,ke="";return J.ENTITIES[te]?J.ENTITIES[te]:J.ENTITIES[De]?J.ENTITIES[De]:(te=De,te.charAt(0)==="#"&&(te.charAt(1)==="x"?(te=te.slice(2),Te=parseInt(te,16),ke=Te.toString(16)):(te=te.slice(1),Te=parseInt(te,10),ke=Te.toString(10))),te=te.replace(/^0+/,""),isNaN(Te)||ke.toLowerCase()!==te?(ve(J,"Invalid character entity"),"&"+J.entity+";"):(0,A.default)(Te))}function we(J,te){te==="<"?(J.state=G.OPEN_WAKA,J.startTagPosition=J.position):F(te)||(ve(J,"Non-whitespace before first tag."),J.textNode=te,J.state=G.TEXT)}function le(J,te){var De="";return te<J.length&&(De=J.charAt(te)),De}function $(J){var te=this;if(this.error)throw this.error;if(te.closed)return ce(te,"Cannot write after close. Assign an onready handler.");if(J===null)return be(te);(typeof J=="undefined"?"undefined":(0,w.default)(J))==="object"&&(J=J.toString());for(var De=0,Te="";!(Te=le(J,De++),te.c=Te,!Te);){te.trackPosition&&(te.position++,Te===`
`?(te.line++,te.column=0):te.column++);switch(te.state){case G.BEGIN:if(te.state=G.BEGIN_WHITESPACE,Te==="\uFEFF")continue;we(te,Te);continue;case G.BEGIN_WHITESPACE:we(te,Te);continue;case G.TEXT:if(te.sawRoot&&!te.closedRoot){for(var ke=De-1;Te&&Te!=="<"&&Te!=="&";)Te=le(J,De++),Te&&te.trackPosition&&(te.position++,Te===`
`?(te.line++,te.column=0):te.column++);te.textNode+=J.substring(ke,De-1)}Te==="<"&&!(te.sawRoot&&te.closedRoot&&!te.strict)?(te.state=G.OPEN_WAKA,te.startTagPosition=te.position):(!F(Te)&&(!te.sawRoot||te.closedRoot)&&ve(te,"Text data outside of root node."),Te==="&"?te.state=G.TEXT_ENTITY:te.textNode+=Te);continue;case G.SCRIPT:Te==="<"?te.state=G.SCRIPT_ENDING:te.script+=Te;continue;case G.SCRIPT_ENDING:Te==="/"?te.state=G.CLOSE_TAG:(te.script+="<"+Te,te.state=G.SCRIPT);continue;case G.OPEN_WAKA:if(Te==="!")te.state=G.SGML_DECL,te.sgmlDecl="";else if(!F(Te))if(B(I,Te))te.state=G.OPEN_TAG,te.tagName=Te;else if(Te==="/")te.state=G.CLOSE_TAG,te.tagName="";else if(Te==="?")te.state=G.PROC_INST,te.procInstName=te.procInstBody="";else{if(ve(te,"Unencoded <"),te.startTagPosition+1<te.position){var tt=te.position-te.startTagPosition;Te=new Array(tt).join(" ")+Te}te.textNode+="<"+Te,te.state=G.TEXT}continue;case G.SGML_DECL:(te.sgmlDecl+Te).toUpperCase()===R?(de(te,"onopencdata"),te.state=G.CDATA,te.sgmlDecl="",te.cdata=""):te.sgmlDecl+Te==="--"?(te.state=G.COMMENT,te.comment="",te.sgmlDecl=""):(te.sgmlDecl+Te).toUpperCase()===E?(te.state=G.DOCTYPE,(te.doctype||te.sawRoot)&&ve(te,"Inappropriately located doctype declaration"),te.doctype="",te.sgmlDecl=""):Te===">"?(de(te,"onsgmldeclaration",te.sgmlDecl),te.sgmlDecl="",te.state=G.TEXT):(W(Te)&&(te.state=G.SGML_DECL_QUOTED),te.sgmlDecl+=Te);continue;case G.SGML_DECL_QUOTED:Te===te.q&&(te.state=G.SGML_DECL,te.q=""),te.sgmlDecl+=Te;continue;case G.DOCTYPE:Te===">"?(te.state=G.TEXT,de(te,"ondoctype",te.doctype),te.doctype=!0):(te.doctype+=Te,Te==="["?te.state=G.DOCTYPE_DTD:W(Te)&&(te.state=G.DOCTYPE_QUOTED,te.q=Te));continue;case G.DOCTYPE_QUOTED:te.doctype+=Te,Te===te.q&&(te.q="",te.state=G.DOCTYPE);continue;case G.DOCTYPE_DTD:te.doctype+=Te,Te==="]"?te.state=G.DOCTYPE:W(Te)&&(te.state=G.DOCTYPE_DTD_QUOTED,te.q=Te);continue;case G.DOCTYPE_DTD_QUOTED:te.doctype+=Te,Te===te.q&&(te.state=G.DOCTYPE_DTD,te.q="");continue;case G.COMMENT:Te==="-"?te.state=G.COMMENT_ENDING:te.comment+=Te;continue;case G.COMMENT_ENDING:Te==="-"?(te.state=G.COMMENT_ENDED,te.comment=Oe(te.opt,te.comment),te.comment&&de(te,"oncomment",te.comment),te.comment=""):(te.comment+="-"+Te,te.state=G.COMMENT);continue;case G.COMMENT_ENDED:Te!==">"?(ve(te,"Malformed comment"),te.comment+="--"+Te,te.state=G.COMMENT):te.state=G.TEXT;continue;case G.CDATA:Te==="]"?te.state=G.CDATA_ENDING:te.cdata+=Te;continue;case G.CDATA_ENDING:Te==="]"?te.state=G.CDATA_ENDING_2:(te.cdata+="]"+Te,te.state=G.CDATA);continue;case G.CDATA_ENDING_2:Te===">"?(te.cdata&&de(te,"oncdata",te.cdata),de(te,"onclosecdata"),te.cdata="",te.state=G.TEXT):Te==="]"?te.cdata+="]":(te.cdata+="]]"+Te,te.state=G.CDATA);continue;case G.PROC_INST:Te==="?"?te.state=G.PROC_INST_ENDING:F(Te)?te.state=G.PROC_INST_BODY:te.procInstName+=Te;continue;case G.PROC_INST_BODY:if(!te.procInstBody&&F(Te))continue;Te==="?"?te.state=G.PROC_INST_ENDING:te.procInstBody+=Te;continue;case G.PROC_INST_ENDING:Te===">"?(de(te,"onprocessinginstruction",{name:te.procInstName,body:te.procInstBody}),te.procInstName=te.procInstBody="",te.state=G.TEXT):(te.procInstBody+="?"+Te,te.state=G.PROC_INST_BODY);continue;case G.OPEN_TAG:B(D,Te)?te.tagName+=Te:(ue(te),Te===">"?me(te):Te==="/"?te.state=G.OPEN_TAG_SLASH:(F(Te)||ve(te,"Invalid character in tag name"),te.state=G.ATTRIB));continue;case G.OPEN_TAG_SLASH:Te===">"?(me(te,!0),re(te)):(ve(te,"Forward-slash in opening tag not followed by >"),te.state=G.ATTRIB);continue;case G.ATTRIB:if(F(Te))continue;Te===">"?me(te):Te==="/"?te.state=G.OPEN_TAG_SLASH:B(I,Te)?(te.attribName=Te,te.attribValue="",te.state=G.ATTRIB_NAME):ve(te,"Invalid attribute name");continue;case G.ATTRIB_NAME:Te==="="?te.state=G.ATTRIB_VALUE:Te===">"?(ve(te,"Attribute without value"),te.attribValue=te.attribName,q(te),me(te)):F(Te)?te.state=G.ATTRIB_NAME_SAW_WHITE:B(D,Te)?te.attribName+=Te:ve(te,"Invalid attribute name");continue;case G.ATTRIB_NAME_SAW_WHITE:if(Te==="=")te.state=G.ATTRIB_VALUE;else{if(F(Te))continue;ve(te,"Attribute without value"),te.tag.attributes[te.attribName]="",te.attribValue="",de(te,"onattribute",{name:te.attribName,value:""}),te.attribName="",Te===">"?me(te):B(I,Te)?(te.attribName=Te,te.state=G.ATTRIB_NAME):(ve(te,"Invalid attribute name"),te.state=G.ATTRIB)}continue;case G.ATTRIB_VALUE:if(F(Te))continue;W(Te)?(te.q=Te,te.state=G.ATTRIB_VALUE_QUOTED):(ve(te,"Unquoted attribute value"),te.state=G.ATTRIB_VALUE_UNQUOTED,te.attribValue=Te);continue;case G.ATTRIB_VALUE_QUOTED:if(Te!==te.q){Te==="&"?te.state=G.ATTRIB_VALUE_ENTITY_Q:te.attribValue+=Te;continue}q(te),te.q="",te.state=G.ATTRIB_VALUE_CLOSED;continue;case G.ATTRIB_VALUE_CLOSED:F(Te)?te.state=G.ATTRIB:Te===">"?me(te):Te==="/"?te.state=G.OPEN_TAG_SLASH:B(I,Te)?(ve(te,"No whitespace between attributes"),te.attribName=Te,te.attribValue="",te.state=G.ATTRIB_NAME):ve(te,"Invalid attribute name");continue;case G.ATTRIB_VALUE_UNQUOTED:if(!K(Te)){Te==="&"?te.state=G.ATTRIB_VALUE_ENTITY_U:te.attribValue+=Te;continue}q(te),Te===">"?me(te):te.state=G.ATTRIB;continue;case G.CLOSE_TAG:if(te.tagName)Te===">"?re(te):B(D,Te)?te.tagName+=Te:te.script?(te.script+="</"+te.tagName,te.tagName="",te.state=G.SCRIPT):(F(Te)||ve(te,"Invalid tagname in closing tag"),te.state=G.CLOSE_TAG_SAW_WHITE);else{if(F(Te))continue;k(I,Te)?te.script?(te.script+="</"+Te,te.state=G.SCRIPT):ve(te,"Invalid tagname in closing tag."):te.tagName=Te}continue;case G.CLOSE_TAG_SAW_WHITE:if(F(Te))continue;Te===">"?re(te):ve(te,"Invalid characters in closing tag");continue;case G.TEXT_ENTITY:case G.ATTRIB_VALUE_ENTITY_Q:case G.ATTRIB_VALUE_ENTITY_U:var ot,gt;switch(te.state){case G.TEXT_ENTITY:ot=G.TEXT,gt="textNode";break;case G.ATTRIB_VALUE_ENTITY_Q:ot=G.ATTRIB_VALUE_QUOTED,gt="attribValue";break;case G.ATTRIB_VALUE_ENTITY_U:ot=G.ATTRIB_VALUE_UNQUOTED,gt="attribValue";break}Te===";"?(te[gt]+=ie(te),te.entity="",te.state=ot):B(te.entity.length?z:N,Te)?te.entity+=Te:(ve(te,"Invalid character in entity name"),te[gt]+="&"+te.entity+Te,te.entity="",te.state=ot);continue;default:throw new Error(te,"Unknown state: "+te.state)}}return te.position>=te.bufferCheckPosition&&l(te),te}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */A.default||function(){var J=String.fromCharCode,te=Math.floor,De=function(){var ke=16384,tt=[],ot,gt,Et=-1,xt=arguments.length;if(!xt)return"";for(var St="";++Et<xt;){var Je=Number(arguments[Et]);if(!isFinite(Je)||Je<0||Je>1114111||te(Je)!==Je)throw RangeError("Invalid code point: "+Je);Je<=65535?tt.push(Je):(Je-=65536,ot=(Je>>10)+55296,gt=Je%1024+56320,tt.push(ot,gt)),(Et+1===xt||tt.length>ke)&&(St+=J.apply(null,tt),tt.length=0)}return St};_.default?Object.defineProperty(String,"fromCodePoint",{value:De,configurable:!0,writable:!0}):String.fromCodePoint=De}()})(typeof o=="undefined"?(void 0).sax={}:o)}).call(this,M("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/string/from-code-point":63,"babel-runtime/helpers/typeof":67,buffer:73,stream:230,string_decoder:72}],230:[function(M,Y,o){Y.exports=A;var L=M("events").EventEmitter,g=M("inherits");g(A,L),A.Readable=M("readable-stream/readable.js"),A.Writable=M("readable-stream/writable.js"),A.Duplex=M("readable-stream/duplex.js"),A.Transform=M("readable-stream/transform.js"),A.PassThrough=M("readable-stream/passthrough.js"),A.Stream=A;function A(){L.call(this)}A.prototype.pipe=function(b,y){var x=this;function w(a){b.writable&&(b.write(a)===!1&&x.pause&&x.pause())}x.on("data",w);function f(){x.readable&&x.resume&&x.resume()}b.on("drain",f),!b._isStdio&&(!y||y.end!==!1)&&(x.on("end",d),x.on("close",r));var _=!1;function d(){if(_)return;_=!0,b.end()}function r(){if(_)return;_=!0,typeof b.destroy=="function"&&b.destroy()}function u(a){if(t(),L.listenerCount(this,"error")===0)throw a}x.on("error",u),b.on("error",u);function t(){x.removeListener("data",w),b.removeListener("drain",f),x.removeListener("end",d),x.removeListener("close",r),x.removeListener("error",u),b.removeListener("error",u),x.removeListener("end",t),x.removeListener("close",t),b.removeListener("close",t)}return x.on("end",t),x.on("close",t),b.on("close",t),b.emit("pipe",x),b}},{events:192,inherits:196,"readable-stream/duplex.js":213,"readable-stream/passthrough.js":222,"readable-stream/readable.js":223,"readable-stream/transform.js":224,"readable-stream/writable.js":225}],231:[function(M,Y,o){(function(L){var g=M("./lib/request"),A=M("./lib/response"),b=M("xtend"),y=M("builtin-status-codes"),x=M("url"),w=o;w.request=function(f,_){typeof f=="string"?f=x.parse(f):f=b(f);var d=L.location.protocol.search(/^https?:$/)===-1?"http:":"",r=f.protocol||d,u=f.hostname||f.host,t=f.port,a=f.path||"/";u&&u.indexOf(":")!==-1&&(u="["+u+"]"),f.url=(u?r+"//"+u:"")+(t?":"+t:"")+a,f.method=(f.method||"GET").toUpperCase(),f.headers=f.headers||{};var n=new g(f);return _&&n.on("response",_),n},w.get=function(_,d){var r=w.request(_,d);return r.end(),r},w.ClientRequest=g,w.IncomingMessage=A.IncomingMessage,w.Agent=function(){},w.Agent.defaultMaxSockets=4,w.globalAgent=new w.Agent,w.STATUS_CODES=y,w.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":233,"./lib/response":234,"builtin-status-codes":74,url:238,xtend:283}],232:[function(M,Y,o){(function(L){"use strict";o.fetch=w(L.fetch)&&w(L.ReadableStream),o.writableStream=w(L.WritableStream),o.abortController=w(L.AbortController),o.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),o.blobConstructor=!0}catch(f){}var g;function A(){if(g!==void 0)return g;if(L.XMLHttpRequest){g=new L.XMLHttpRequest;try{g.open("GET",L.XDomainRequest?"/":"https://example.com")}catch(f){g=null}}else g=null;return g}function b(f){var _=A();if(!_)return!1;try{return _.responseType=f,_.responseType===f}catch(d){}return!1}var y=typeof L.ArrayBuffer!="undefined",x=y&&w(L.ArrayBuffer.prototype.slice);o.arraybuffer=o.fetch||y&&b("arraybuffer"),o.msstream=!o.fetch&&x&&b("ms-stream"),o.mozchunkedarraybuffer=!o.fetch&&y&&b("moz-chunked-arraybuffer"),o.overrideMimeType=o.fetch||(A()?w(A().overrideMimeType):!1),o.vbArray=w(L.VBArray);function w(f){return typeof f=="function"}g=null}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],233:[function(M,Y,o){(function(L,g,A){"use strict";var b=M("babel-runtime/core-js/object/keys"),y=x(b);function x(l){return l&&l.__esModule?l:{default:l}}var w=M("./capability"),f=M("inherits"),_=M("./response"),d=M("readable-stream"),r=M("to-arraybuffer"),u=_.IncomingMessage,t=_.readyStates;function a(l,s){return w.fetch&&s?"fetch":w.mozchunkedarraybuffer?"moz-chunked-arraybuffer":w.msstream?"ms-stream":w.arraybuffer&&l?"arraybuffer":w.vbArray&&l?"text:vbarray":"text"}var n=Y.exports=function(l){var s=this;d.Writable.call(s),s._opts=l,s._body=[],s._headers={},l.auth&&s.setHeader("Authorization","Basic "+new A(l.auth).toString("base64")),(0,y.default)(l.headers).forEach(function(S){s.setHeader(S,l.headers[S])});var p,O=!0;if(l.mode==="disable-fetch"||"requestTimeout"in l&&!w.abortController)O=!1,p=!0;else if(l.mode==="prefer-streaming")p=!1;else if(l.mode==="allow-wrong-content-type")p=!w.overrideMimeType;else if(!l.mode||l.mode==="default"||l.mode==="prefer-fast")p=!0;else throw new Error("Invalid value for opts.mode");s._mode=a(p,O),s._fetchTimer=null,s.on("finish",function(){s._onFinish()})};f(n,d.Writable),n.prototype.setHeader=function(l,s){var p=this,O=l.toLowerCase();if(h.indexOf(O)!==-1)return;p._headers[O]={name:l,value:s}},n.prototype.getHeader=function(l){var s=this._headers[l.toLowerCase()];return s?s.value:null},n.prototype.removeHeader=function(l){var s=this;delete s._headers[l.toLowerCase()]},n.prototype._onFinish=function(){var l=this;if(l._destroyed)return;var s=l._opts,p=l._headers,O=null;s.method!=="GET"&&s.method!=="HEAD"&&(w.arraybuffer?O=r(A.concat(l._body)):w.blobConstructor?O=new g.Blob(l._body.map(function(C){return r(C)}),{type:(p["content-type"]||{}).value||""}):O=A.concat(l._body).toString());var S=[];if((0,y.default)(p).forEach(function(C){var m=p[C].name,T=p[C].value;Array.isArray(T)?T.forEach(function(I){S.push([m,I])}):S.push([m,T])}),l._mode==="fetch"){var v=null,P=null;if(w.abortController){var R=new AbortController;v=R.signal,l._fetchAbortController=R,"requestTimeout"in s&&s.requestTimeout!==0&&(l._fetchTimer=g.setTimeout(function(){l.emit("requestTimeout"),l._fetchAbortController&&l._fetchAbortController.abort()},s.requestTimeout))}g.fetch(l._opts.url,{method:l._opts.method,headers:S,body:O||void 0,mode:"cors",credentials:s.withCredentials?"include":"same-origin",signal:v}).then(function(C){l._fetchResponse=C,l._connect()},function(C){g.clearTimeout(l._fetchTimer),l._destroyed||l.emit("error",C)})}else{var E=l._xhr=new g.XMLHttpRequest;try{E.open(l._opts.method,l._opts.url,!0)}catch(C){L.nextTick(function(){l.emit("error",C)});return}"responseType"in E&&(E.responseType=l._mode.split(":")[0]),"withCredentials"in E&&(E.withCredentials=!!s.withCredentials),l._mode==="text"&&"overrideMimeType"in E&&E.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in s&&(E.timeout=s.requestTimeout,E.ontimeout=function(){l.emit("requestTimeout")}),S.forEach(function(C){E.setRequestHeader(C[0],C[1])}),l._response=null,E.onreadystatechange=function(){switch(E.readyState){case t.LOADING:case t.DONE:l._onXHRProgress();break}},l._mode==="moz-chunked-arraybuffer"&&(E.onprogress=function(){l._onXHRProgress()}),E.onerror=function(){if(l._destroyed)return;l.emit("error",new Error("XHR error"))};try{E.send(O)}catch(C){L.nextTick(function(){l.emit("error",C)});return}}};function i(l){try{var s=l.status;return s!==null&&s!==0}catch(p){return!1}}n.prototype._onXHRProgress=function(){var l=this;if(!i(l._xhr)||l._destroyed)return;l._response||l._connect(),l._response._onXHRProgress()},n.prototype._connect=function(){var l=this;if(l._destroyed)return;l._response=new u(l._xhr,l._fetchResponse,l._mode,l._fetchTimer),l._response.on("error",function(s){l.emit("error",s)}),l.emit("response",l._response)},n.prototype._write=function(l,s,p){var O=this;O._body.push(l),p()},n.prototype.abort=n.prototype.destroy=function(){var l=this;l._destroyed=!0,g.clearTimeout(l._fetchTimer),l._response&&(l._response._destroyed=!0),l._xhr?l._xhr.abort():l._fetchAbortController&&l._fetchAbortController.abort()},n.prototype.end=function(l,s,p){var O=this;typeof l=="function"&&(p=l,l=void 0),d.Writable.prototype.end.call(O,l,s,p)},n.prototype.flushHeaders=function(){},n.prototype.setTimeout=function(){},n.prototype.setNoDelay=function(){},n.prototype.setSocketKeepAlive=function(){};var h=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,M("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},M("buffer").Buffer)},{"./capability":232,"./response":234,_process:208,"babel-runtime/core-js/object/keys":60,buffer:73,inherits:196,"readable-stream":223,"to-arraybuffer":237}],234:[function(M,Y,o){(function(L,g,A){"use strict";var b=M("babel-runtime/core-js/promise"),y=x(b);function x(u){return u&&u.__esModule?u:{default:u}}var w=M("./capability"),f=M("inherits"),_=M("readable-stream"),d=o.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},r=o.IncomingMessage=function(u,t,a,n){var i=this;if(_.Readable.call(i),i._mode=a,i.headers={},i.rawHeaders=[],i.trailers={},i.rawTrailers=[],i.on("end",function(){L.nextTick(function(){i.emit("close")})}),a==="fetch"){var h=function v(){s.read().then(function(P){if(i._destroyed)return;if(P.done){g.clearTimeout(n),i.push(null);return}i.push(new A(P.value)),v()}).catch(function(P){g.clearTimeout(n),i._destroyed||i.emit("error",P)})};if(i._fetchResponse=t,i.url=t.url,i.statusCode=t.status,i.statusMessage=t.statusText,t.headers.forEach(function(v,P){i.headers[P.toLowerCase()]=v,i.rawHeaders.push(P,v)}),w.writableStream){var l=new WritableStream({write:function(P){return new y.default(function(R,E){i._destroyed?E():i.push(new A(P))?R():i._resumeFetch=R})},close:function(){g.clearTimeout(n),i._destroyed||i.push(null)},abort:function(P){i._destroyed||i.emit("error",P)}});try{t.body.pipeTo(l).catch(function(v){g.clearTimeout(n),i._destroyed||i.emit("error",v)});return}catch(v){}}var s=t.body.getReader();h()}else{i._xhr=u,i._pos=0,i.url=u.responseURL,i.statusCode=u.status,i.statusMessage=u.statusText;var p=u.getAllResponseHeaders().split(/\r?\n/);if(p.forEach(function(v){var P=v.match(/^([^:]+):\s*(.*)/);if(P){var R=P[1].toLowerCase();R==="set-cookie"?(i.headers[R]===void 0&&(i.headers[R]=[]),i.headers[R].push(P[2])):i.headers[R]!==void 0?i.headers[R]+=", "+P[2]:i.headers[R]=P[2],i.rawHeaders.push(P[1],P[2])}}),i._charset="x-user-defined",!w.overrideMimeType){var O=i.rawHeaders["mime-type"];if(O){var S=O.match(/;\s*charset=([^;])(;|$)/);S&&(i._charset=S[1].toLowerCase())}i._charset||(i._charset="utf-8")}}};f(r,_.Readable),r.prototype._read=function(){var u=this,t=u._resumeFetch;t&&(u._resumeFetch=null,t())},r.prototype._onXHRProgress=function(){var u=this,t=u._xhr,a=null;switch(u._mode){case"text:vbarray":if(t.readyState!==d.DONE)break;try{a=new g.VBArray(t.responseBody).toArray()}catch(s){}if(a!==null){u.push(new A(a));break}case"text":try{a=t.responseText}catch(s){u._mode="text:vbarray";break}if(a.length>u._pos){var n=a.substr(u._pos);if(u._charset==="x-user-defined"){for(var i=new A(n.length),h=0;h<n.length;h++)i[h]=n.charCodeAt(h)&255;u.push(i)}else u.push(n,u._charset);u._pos=a.length}break;case"arraybuffer":if(t.readyState!==d.DONE||!t.response)break;a=t.response,u.push(new A(new Uint8Array(a)));break;case"moz-chunked-arraybuffer":if(a=t.response,t.readyState!==d.LOADING||!a)break;u.push(new A(new Uint8Array(a)));break;case"ms-stream":if(a=t.response,t.readyState!==d.LOADING)break;var l=new g.MSStreamReader;l.onprogress=function(){l.result.byteLength>u._pos&&(u.push(new A(new Uint8Array(l.result.slice(u._pos)))),u._pos=l.result.byteLength)},l.onload=function(){u.push(null)},l.readAsArrayBuffer(a);break}u._xhr.readyState===d.DONE&&u._mode!=="ms-stream"&&u.push(null)}}).call(this,M("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},M("buffer").Buffer)},{"./capability":232,_process:208,"babel-runtime/core-js/promise":61,buffer:73,inherits:196,"readable-stream":223}],235:[function(M,Y,o){"use strict";var L=M("safe-buffer").Buffer,g=L.isEncoding||function(l){l=""+l;switch(l&&l.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function A(l){if(!l)return"utf8";for(var s;;)switch(l){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return l;default:if(s)return;l=(""+l).toLowerCase(),s=!0}}function b(l){var s=A(l);if(typeof s!="string"&&(L.isEncoding===g||!g(l)))throw new Error("Unknown encoding: "+l);return s||l}o.StringDecoder=y;function y(l){this.encoding=b(l);var s;switch(this.encoding){case"utf16le":this.text=u,this.end=t,s=4;break;case"utf8":this.fillLast=_,s=4;break;case"base64":this.text=a,this.end=n,s=3;break;default:this.write=i,this.end=h;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=L.allocUnsafe(s)}y.prototype.write=function(l){if(l.length===0)return"";var s,p;if(this.lastNeed){if(s=this.fillLast(l),s===void 0)return"";p=this.lastNeed,this.lastNeed=0}else p=0;return p<l.length?s?s+this.text(l,p):this.text(l,p):s||""},y.prototype.end=r,y.prototype.text=d,y.prototype.fillLast=function(l){if(this.lastNeed<=l.length)return l.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);l.copy(this.lastChar,this.lastTotal-this.lastNeed,0,l.length),this.lastNeed-=l.length};function x(l){return l<=127?0:l>>5===6?2:l>>4===14?3:l>>3===30?4:l>>6===2?-1:-2}function w(l,s,p){var O=s.length-1;if(O<p)return 0;var S=x(s[O]);return S>=0?(S>0&&(l.lastNeed=S-1),S):--O<p||S===-2?0:(S=x(s[O]),S>=0?(S>0&&(l.lastNeed=S-2),S):--O<p||S===-2?0:(S=x(s[O]),S>=0?(S>0&&(S===2?S=0:l.lastNeed=S-3),S):0))}function f(l,s,p){if((s[0]&192)!==128)return l.lastNeed=0,"\uFFFD";if(l.lastNeed>1&&s.length>1){if((s[1]&192)!==128)return l.lastNeed=1,"\uFFFD";if(l.lastNeed>2&&s.length>2&&(s[2]&192)!==128)return l.lastNeed=2,"\uFFFD"}}function _(l){var s=this.lastTotal-this.lastNeed,p=f(this,l,s);if(p!==void 0)return p;if(this.lastNeed<=l.length)return l.copy(this.lastChar,s,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);l.copy(this.lastChar,s,0,l.length),this.lastNeed-=l.length}function d(l,s){var p=w(this,l,s);if(!this.lastNeed)return l.toString("utf8",s);this.lastTotal=p;var O=l.length-(p-this.lastNeed);return l.copy(this.lastChar,0,O),l.toString("utf8",s,O)}function r(l){var s=l&&l.length?this.write(l):"";return this.lastNeed?s+"\uFFFD":s}function u(l,s){if((l.length-s)%2===0){var p=l.toString("utf16le",s);if(p){var O=p.charCodeAt(p.length-1);if(O>=55296&&O<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=l[l.length-2],this.lastChar[1]=l[l.length-1],p.slice(0,-1)}return p}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=l[l.length-1],l.toString("utf16le",s,l.length-1)}function t(l){var s=l&&l.length?this.write(l):"";if(this.lastNeed){var p=this.lastTotal-this.lastNeed;return s+this.lastChar.toString("utf16le",0,p)}return s}function a(l,s){var p=(l.length-s)%3;return p===0?l.toString("base64",s):(this.lastNeed=3-p,this.lastTotal=3,p===1?this.lastChar[0]=l[l.length-1]:(this.lastChar[0]=l[l.length-2],this.lastChar[1]=l[l.length-1]),l.toString("base64",s,l.length-p))}function n(l){var s=l&&l.length?this.write(l):"";return this.lastNeed?s+this.lastChar.toString("base64",0,3-this.lastNeed):s}function i(l){return l.toString(this.encoding)}function h(l){return l&&l.length?this.write(l):""}},{"safe-buffer":228}],236:[function(M,Y,o){(function(L,g){var A=M("process/browser.js").nextTick,b=Function.prototype.apply,y=Array.prototype.slice,x={},w=0;o.setTimeout=function(){return new f(b.call(setTimeout,window,arguments),clearTimeout)},o.setInterval=function(){return new f(b.call(setInterval,window,arguments),clearInterval)},o.clearTimeout=o.clearInterval=function(_){_.close()};function f(_,d){this._id=_,this._clearFn=d}f.prototype.unref=f.prototype.ref=function(){},f.prototype.close=function(){this._clearFn.call(window,this._id)},o.enroll=function(_,d){clearTimeout(_._idleTimeoutId),_._idleTimeout=d},o.unenroll=function(_){clearTimeout(_._idleTimeoutId),_._idleTimeout=-1},o._unrefActive=o.active=function(_){clearTimeout(_._idleTimeoutId);var d=_._idleTimeout;d>=0&&(_._idleTimeoutId=setTimeout(function(){_._onTimeout&&_._onTimeout()},d))},o.setImmediate=typeof L=="function"?L:function(_){var d=w++,r=arguments.length<2?!1:y.call(arguments,1);return x[d]=!0,A(function(){x[d]&&(r?_.apply(null,r):_.call(null),o.clearImmediate(d))}),d},o.clearImmediate=typeof g=="function"?g:function(_){delete x[_]}}).call(this,M("timers").setImmediate,M("timers").clearImmediate)},{"process/browser.js":208,timers:236}],237:[function(M,Y,o){var L=M("buffer").Buffer;Y.exports=function(g){if(g instanceof Uint8Array){if(g.byteOffset===0&&g.byteLength===g.buffer.byteLength)return g.buffer;if(typeof g.buffer.slice=="function")return g.buffer.slice(g.byteOffset,g.byteOffset+g.byteLength)}if(L.isBuffer(g)){for(var A=new Uint8Array(g.length),b=g.length,y=0;y<b;y++)A[y]=g[y];return A.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:73}],238:[function(M,Y,o){"use strict";var L=M("punycode"),g=M("./util");o.parse=s,o.resolve=O,o.resolveObject=S,o.format=p,o.Url=A;function A(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var b=/^([a-z0-9.+-]+:)/i,y=/:[0-9]*$/,x=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,w=["<",">",'"',"`"," ","\r",`
`," "],f=["{","}","|","\\","^","`"].concat(w),_=["'"].concat(f),d=["%","/","?",";","#"].concat(_),r=["/","?","#"],u=255,t=/^[+a-z0-9A-Z_-]{0,63}$/,a=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,n={javascript:!0,"javascript:":!0},i={javascript:!0,"javascript:":!0},h={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},l=M("querystring");function s(v,P,R){if(v&&g.isObject(v)&&v instanceof A)return v;var E=new A;return E.parse(v,P,R),E}A.prototype.parse=function(v,P,R){if(!g.isString(v))throw new TypeError("Parameter 'url' must be a string, not "+typeof v);var E=v.indexOf("?"),C=E!==-1&&E<v.indexOf("#")?"?":"#",m=v.split(C),T=/\\/g;m[0]=m[0].replace(T,"/"),v=m.join(C);var I=v;if(I=I.trim(),!R&&v.split("#").length===1){var D=x.exec(I);if(D)return this.path=I,this.href=I,this.pathname=D[1],D[2]?(this.search=D[2],P?this.query=l.parse(this.search.substr(1)):this.query=this.search.substr(1)):P&&(this.search="",this.query={}),this}var N=b.exec(I);if(N){N=N[0];var z=N.toLowerCase();this.protocol=z,I=I.substr(N.length)}if(R||N||I.match(/^\/\/[^@\/]+@[^@\/]+/)){var F=I.substr(0,2)==="//";F&&!(N&&i[N])&&(I=I.substr(2),this.slashes=!0)}if(!i[N]&&(F||N&&!h[N])){for(var W=-1,K=0;K<r.length;K++){var B=I.indexOf(r[K]);B!==-1&&(W===-1||B<W)&&(W=B)}var k,G;W===-1?G=I.lastIndexOf("@"):G=I.lastIndexOf("@",W),G!==-1&&(k=I.slice(0,G),I=I.slice(G+1),this.auth=decodeURIComponent(k)),W=-1;for(var K=0;K<d.length;K++){var B=I.indexOf(d[K]);B!==-1&&(W===-1||B<W)&&(W=B)}W===-1&&(W=I.length),this.host=I.slice(0,W),I=I.slice(W),this.parseHost(),this.hostname=this.hostname||"";var ne=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!ne)for(var fe=this.hostname.split(/\./),K=0,de=fe.length;K<de;K++){var xe=fe[K];if(!xe)continue;if(!xe.match(t)){for(var Oe="",ce=0,be=xe.length;ce<be;ce++)xe.charCodeAt(ce)>127?Oe+="x":Oe+=xe[ce];if(!Oe.match(t)){var ve=fe.slice(0,K),ue=fe.slice(K+1),se=xe.match(a);se&&(ve.push(se[1]),ue.unshift(se[2])),ue.length&&(I="/"+ue.join(".")+I),this.hostname=ve.join(".");break}}}this.hostname.length>u?this.hostname="":this.hostname=this.hostname.toLowerCase(),ne||(this.hostname=L.toASCII(this.hostname));var q=this.port?":"+this.port:"",me=this.hostname||"";this.host=me+q,this.href+=this.host,ne&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),I[0]!=="/"&&(I="/"+I))}if(!n[z])for(var K=0,de=_.length;K<de;K++){var re=_[K];if(I.indexOf(re)===-1)continue;var ie=encodeURIComponent(re);ie===re&&(ie=escape(re)),I=I.split(re).join(ie)}var we=I.indexOf("#");we!==-1&&(this.hash=I.substr(we),I=I.slice(0,we));var le=I.indexOf("?");if(le!==-1?(this.search=I.substr(le),this.query=I.substr(le+1),P&&(this.query=l.parse(this.query)),I=I.slice(0,le)):P&&(this.search="",this.query={}),I&&(this.pathname=I),h[z]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var q=this.pathname||"",$=this.search||"";this.path=q+$}return this.href=this.format(),this};function p(v){return g.isString(v)&&(v=s(v)),v instanceof A?v.format():A.prototype.format.call(v)}A.prototype.format=function(){var v=this.auth||"";v&&(v=encodeURIComponent(v),v=v.replace(/%3A/i,":"),v+="@");var P=this.protocol||"",R=this.pathname||"",E=this.hash||"",C=!1,m="";this.host?C=v+this.host:this.hostname&&(C=v+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(C+=":"+this.port)),this.query&&g.isObject(this.query)&&Object.keys(this.query).length&&(m=l.stringify(this.query));var T=this.search||m&&"?"+m||"";return P&&P.substr(-1)!==":"&&(P+=":"),this.slashes||(!P||h[P])&&C!==!1?(C="//"+(C||""),R&&R.charAt(0)!=="/"&&(R="/"+R)):C||(C=""),E&&E.charAt(0)!=="#"&&(E="#"+E),T&&T.charAt(0)!=="?"&&(T="?"+T),R=R.replace(/[?#]/g,function(I){return encodeURIComponent(I)}),T=T.replace("#","%23"),P+C+R+T+E};function O(v,P){return s(v,!1,!0).resolve(P)}A.prototype.resolve=function(v){return this.resolveObject(s(v,!1,!0)).format()};function S(v,P){return v?s(v,!1,!0).resolveObject(P):P}A.prototype.resolveObject=function(v){if(g.isString(v)){var P=new A;P.parse(v,!1,!0),v=P}for(var R=new A,E=Object.keys(this),C=0;C<E.length;C++){var m=E[C];R[m]=this[m]}if(R.hash=v.hash,v.href==="")return R.href=R.format(),R;if(v.slashes&&!v.protocol){for(var T=Object.keys(v),I=0;I<T.length;I++){var D=T[I];D!=="protocol"&&(R[D]=v[D])}return h[R.protocol]&&R.hostname&&!R.pathname&&(R.path=R.pathname="/"),R.href=R.format(),R}if(v.protocol&&v.protocol!==R.protocol){if(!h[v.protocol]){for(var N=Object.keys(v),z=0;z<N.length;z++){var F=N[z];R[F]=v[F]}return R.href=R.format(),R}if(R.protocol=v.protocol,!v.host&&!i[v.protocol]){for(var de=(v.pathname||"").split("/");de.length&&!(v.host=de.shift()););v.host||(v.host=""),v.hostname||(v.hostname=""),de[0]!==""&&de.unshift(""),de.length<2&&de.unshift(""),R.pathname=de.join("/")}else R.pathname=v.pathname;if(R.search=v.search,R.query=v.query,R.host=v.host||"",R.auth=v.auth,R.hostname=v.hostname||v.host,R.port=v.port,R.pathname||R.search){var W=R.pathname||"",K=R.search||"";R.path=W+K}return R.slashes=R.slashes||v.slashes,R.href=R.format(),R}var B=R.pathname&&R.pathname.charAt(0)==="/",k=v.host||v.pathname&&v.pathname.charAt(0)==="/",G=k||B||R.host&&v.pathname,ne=G,fe=R.pathname&&R.pathname.split("/")||[],de=v.pathname&&v.pathname.split("/")||[],xe=R.protocol&&!h[R.protocol];if(xe&&(R.hostname="",R.port=null,R.host&&(fe[0]===""?fe[0]=R.host:fe.unshift(R.host)),R.host="",v.protocol&&(v.hostname=null,v.port=null,v.host&&(de[0]===""?de[0]=v.host:de.unshift(v.host)),v.host=null),G=G&&(de[0]===""||fe[0]==="")),k)R.host=v.host||v.host===""?v.host:R.host,R.hostname=v.hostname||v.hostname===""?v.hostname:R.hostname,R.search=v.search,R.query=v.query,fe=de;else if(de.length)fe||(fe=[]),fe.pop(),fe=fe.concat(de),R.search=v.search,R.query=v.query;else if(!g.isNullOrUndefined(v.search)){if(xe){R.hostname=R.host=fe.shift();var Oe=R.host&&R.host.indexOf("@")>0?R.host.split("@"):!1;Oe&&(R.auth=Oe.shift(),R.host=R.hostname=Oe.shift())}return R.search=v.search,R.query=v.query,(!g.isNull(R.pathname)||!g.isNull(R.search))&&(R.path=(R.pathname?R.pathname:"")+(R.search?R.search:"")),R.href=R.format(),R}if(!fe.length)return R.pathname=null,R.search?R.path="/"+R.search:R.path=null,R.href=R.format(),R;for(var ce=fe.slice(-1)[0],be=(R.host||v.host||fe.length>1)&&(ce==="."||ce==="..")||ce==="",ve=0,ue=fe.length;ue>=0;ue--)ce=fe[ue],ce==="."?fe.splice(ue,1):ce===".."?(fe.splice(ue,1),ve++):ve&&(fe.splice(ue,1),ve--);if(!G&&!ne)for(;ve--;ve)fe.unshift("..");G&&fe[0]!==""&&(!fe[0]||fe[0].charAt(0)!=="/")&&fe.unshift(""),be&&fe.join("/").substr(-1)!=="/"&&fe.push("");var se=fe[0]===""||fe[0]&&fe[0].charAt(0)==="/";if(xe){R.hostname=R.host=se?"":fe.length?fe.shift():"";var Oe=R.host&&R.host.indexOf("@")>0?R.host.split("@"):!1;Oe&&(R.auth=Oe.shift(),R.host=R.hostname=Oe.shift())}return G=G||R.host&&fe.length,G&&!se&&fe.unshift(""),fe.length?R.pathname=fe.join("/"):(R.pathname=null,R.path=null),(!g.isNull(R.pathname)||!g.isNull(R.search))&&(R.path=(R.pathname?R.pathname:"")+(R.search?R.search:"")),R.auth=v.auth||R.auth,R.slashes=R.slashes||v.slashes,R.href=R.format(),R},A.prototype.parseHost=function(){var v=this.host,P=y.exec(v);P&&(P=P[0],P!==":"&&(this.port=P.substr(1)),v=v.substr(0,v.length-P.length)),v&&(this.hostname=v)}},{"./util":239,punycode:209,querystring:212}],239:[function(M,Y,o){"use strict";Y.exports={isString:function(L){return typeof L=="string"},isObject:function(L){return typeof L=="object"&&L!==null},isNull:function(L){return L===null},isNullOrUndefined:function(L){return L==null}}},{}],240:[function(M,Y,o){(function(L){Y.exports=g;function g(b,y){if(A("noDeprecation"))return b;var x=!1;function w(){if(!x){if(A("throwDeprecation"))throw new Error(y);A("traceDeprecation")?console.trace(y):console.warn(y),x=!0}return b.apply(this,arguments)}return w}function A(b){try{if(!L.localStorage)return!1}catch(x){return!1}var y=L.localStorage[b];return y==null?!1:String(y).toLowerCase()==="true"}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],241:[function(M,Y,o){typeof Object.create=="function"?Y.exports=function(g,A){g.super_=A,g.prototype=Object.create(A.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}})}:Y.exports=function(g,A){g.super_=A;var b=function(){};b.prototype=A.prototype,g.prototype=new b,g.prototype.constructor=g}},{}],242:[function(M,Y,o){Y.exports=function(g){return g&&typeof g=="object"&&typeof g.copy=="function"&&typeof g.fill=="function"&&typeof g.readUInt8=="function"}},{}],243:[function(M,Y,o){(function(L,g){var A=/%[sdj%]/g;o.format=function(W){if(!O(W)){for(var K=[],B=0;B<arguments.length;B++)K.push(x(arguments[B]));return K.join(" ")}for(var B=1,k=arguments,G=k.length,ne=String(W).replace(A,function(de){if(de==="%%")return"%";if(B>=G)return de;switch(de){case"%s":return String(k[B++]);case"%d":return Number(k[B++]);case"%j":try{return JSON.stringify(k[B++])}catch(xe){return"[Circular]"}default:return de}}),fe=k[B];B<G;fe=k[++B])l(fe)||!R(fe)?ne+=" "+fe:ne+=" "+x(fe);return ne},o.deprecate=function(W,K){if(v(g.process))return function(){return o.deprecate(W,K).apply(this,arguments)};if(L.noDeprecation===!0)return W;var B=!1;function k(){if(!B){if(L.throwDeprecation)throw new Error(K);L.traceDeprecation?console.trace(K):console.error(K),B=!0}return W.apply(this,arguments)}return k};var b={},y;o.debuglog=function(W){if(v(y)&&(y=L.env.NODE_DEBUG||""),W=W.toUpperCase(),!b[W])if(new RegExp("\\b"+W+"\\b","i").test(y)){var K=L.pid;b[W]=function(){var B=o.format.apply(o,arguments);console.error("%s %d: %s",W,K,B)}}else b[W]=function(){};return b[W]};function x(W,K){var B={seen:[],stylize:f};return arguments.length>=3&&(B.depth=arguments[2]),arguments.length>=4&&(B.colors=arguments[3]),h(K)?B.showHidden=K:K&&o._extend(B,K),v(B.showHidden)&&(B.showHidden=!1),v(B.depth)&&(B.depth=2),v(B.colors)&&(B.colors=!1),v(B.customInspect)&&(B.customInspect=!0),B.colors&&(B.stylize=w),d(B,W,B.depth)}o.inspect=x,x.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},x.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function w(W,K){var B=x.styles[K];return B?"["+x.colors[B][0]+"m"+W+"["+x.colors[B][1]+"m":W}function f(W,K){return W}function _(W){var K={};return W.forEach(function(B,k){K[B]=!0}),K}function d(W,K,B){if(W.customInspect&&K&&m(K.inspect)&&K.inspect!==o.inspect&&!(K.constructor&&K.constructor.prototype===K)){var k=K.inspect(B,W);return O(k)||(k=d(W,k,B)),k}var G=r(W,K);if(G)return G;var ne=Object.keys(K),fe=_(ne);if(W.showHidden&&(ne=Object.getOwnPropertyNames(K)),C(K)&&(ne.indexOf("message")>=0||ne.indexOf("description")>=0))return u(K);if(ne.length===0){if(m(K)){var de=K.name?": "+K.name:"";return W.stylize("[Function"+de+"]","special")}if(P(K))return W.stylize(RegExp.prototype.toString.call(K),"regexp");if(E(K))return W.stylize(Date.prototype.toString.call(K),"date");if(C(K))return u(K)}var xe="",Oe=!1,ce=["{","}"];if(i(K)&&(Oe=!0,ce=["[","]"]),m(K)){var be=K.name?": "+K.name:"";xe=" [Function"+be+"]"}if(P(K)&&(xe=" "+RegExp.prototype.toString.call(K)),E(K)&&(xe=" "+Date.prototype.toUTCString.call(K)),C(K)&&(xe=" "+u(K)),ne.length===0&&(!Oe||K.length==0))return ce[0]+xe+ce[1];if(B<0)return P(K)?W.stylize(RegExp.prototype.toString.call(K),"regexp"):W.stylize("[Object]","special");W.seen.push(K);var ve;return Oe?ve=t(W,K,B,fe,ne):ve=ne.map(function(ue){return a(W,K,B,fe,ue,Oe)}),W.seen.pop(),n(ve,xe,ce)}function r(W,K){if(v(K))return W.stylize("undefined","undefined");if(O(K)){var B="'"+JSON.stringify(K).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return W.stylize(B,"string")}if(p(K))return W.stylize(""+K,"number");if(h(K))return W.stylize(""+K,"boolean");if(l(K))return W.stylize("null","null")}function u(W){return"["+Error.prototype.toString.call(W)+"]"}function t(W,K,B,k,G){for(var ne=[],fe=0,de=K.length;fe<de;++fe)F(K,String(fe))?ne.push(a(W,K,B,k,String(fe),!0)):ne.push("");return G.forEach(function(xe){xe.match(/^\d+$/)||ne.push(a(W,K,B,k,xe,!0))}),ne}function a(W,K,B,k,G,ne){var fe,de,xe;if(xe=Object.getOwnPropertyDescriptor(K,G)||{value:K[G]},xe.get?xe.set?de=W.stylize("[Getter/Setter]","special"):de=W.stylize("[Getter]","special"):xe.set&&(de=W.stylize("[Setter]","special")),F(k,G)||(fe="["+G+"]"),de||(W.seen.indexOf(xe.value)<0?(l(B)?de=d(W,xe.value,null):de=d(W,xe.value,B-1),de.indexOf(`
`)>-1&&(ne?de=de.split(`
`).map(function(Oe){return" "+Oe}).join(`
`).substr(2):de=`
`+de.split(`
`).map(function(Oe){return" "+Oe}).join(`
`))):de=W.stylize("[Circular]","special")),v(fe)){if(ne&&G.match(/^\d+$/))return de;fe=JSON.stringify(""+G),fe.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(fe=fe.substr(1,fe.length-2),fe=W.stylize(fe,"name")):(fe=fe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),fe=W.stylize(fe,"string"))}return fe+": "+de}function n(W,K,B){var k=0,G=W.reduce(function(ne,fe){return k++,fe.indexOf(`
`)>=0&&k++,ne+fe.replace(/\u001b\[\d\d?m/g,"").length+1},0);return G>60?B[0]+(K===""?"":K+`
`)+" "+W.join(`,
`)+" "+B[1]:B[0]+K+" "+W.join(", ")+" "+B[1]}function i(W){return Array.isArray(W)}o.isArray=i;function h(W){return typeof W=="boolean"}o.isBoolean=h;function l(W){return W===null}o.isNull=l;function s(W){return W==null}o.isNullOrUndefined=s;function p(W){return typeof W=="number"}o.isNumber=p;function O(W){return typeof W=="string"}o.isString=O;function S(W){return typeof W=="symbol"}o.isSymbol=S;function v(W){return W===void 0}o.isUndefined=v;function P(W){return R(W)&&I(W)==="[object RegExp]"}o.isRegExp=P;function R(W){return typeof W=="object"&&W!==null}o.isObject=R;function E(W){return R(W)&&I(W)==="[object Date]"}o.isDate=E;function C(W){return R(W)&&(I(W)==="[object Error]"||W instanceof Error)}o.isError=C;function m(W){return typeof W=="function"}o.isFunction=m;function T(W){return W===null||typeof W=="boolean"||typeof W=="number"||typeof W=="string"||typeof W=="symbol"||typeof W=="undefined"}o.isPrimitive=T,o.isBuffer=M("./support/isBuffer");function I(W){return Object.prototype.toString.call(W)}function D(W){return W<10?"0"+W.toString(10):W.toString(10)}var N=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function z(){var W=new Date,K=[D(W.getHours()),D(W.getMinutes()),D(W.getSeconds())].join(":");return[W.getDate(),N[W.getMonth()],K].join(" ")}o.log=function(){console.log("%s - %s",z(),o.format.apply(o,arguments))},o.inherits=M("inherits"),o._extend=function(W,K){if(!K||!R(K))return W;for(var B=Object.keys(K),k=B.length;k--;)W[B[k]]=K[B[k]];return W};function F(W,K){return Object.prototype.hasOwnProperty.call(W,K)}}).call(this,M("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":242,_process:208,inherits:241}],244:[function(M,Y,o){"use strict";(function(){"use strict";o.stripBOM=function(L){return L[0]==="\uFEFF"?L.substring(1):L}}).call(void 0)},{}],245:[function(M,Y,o){"use strict";var L=M("babel-runtime/helpers/typeof"),g=y(L),A=M("babel-runtime/core-js/object/keys"),b=y(A);function y(x){return x&&x.__esModule?x:{default:x}}(function(){"use strict";var x,w,f,_,d,r={}.hasOwnProperty;x=M("xmlbuilder"),w=M("./defaults").defaults,_=function(t){return typeof t=="string"&&(t.indexOf("&")>=0||t.indexOf(">")>=0||t.indexOf("<")>=0)},d=function(t){return"<![CDATA["+f(t)+"]]>"},f=function(t){return t.replace("]]>","]]]]><![CDATA[>")},o.Builder=function(){function u(t){var a,n,i;this.options={},n=w["0.2"];for(a in n){if(!r.call(n,a))continue;i=n[a],this.options[a]=i}for(a in t){if(!r.call(t,a))continue;i=t[a],this.options[a]=i}}return u.prototype.buildObject=function(t){var a,n,i,h,l;return a=this.options.attrkey,n=this.options.charkey,(0,b.default)(t).length===1&&this.options.rootName===w["0.2"].rootName?(l=(0,b.default)(t)[0],t=t[l]):l=this.options.rootName,i=function(s){return function(p,O){var S,v,P,R,E,C;if((typeof O=="undefined"?"undefined":(0,g.default)(O))!=="object")s.options.cdata&&_(O)?p.raw(d(O)):p.txt(O);else if(Array.isArray(O))for(R in O){if(!r.call(O,R))continue;v=O[R];for(E in v)P=v[E],p=i(p.ele(E),P).up()}else for(E in O){if(!r.call(O,E))continue;if(v=O[E],E===a){if((typeof v=="undefined"?"undefined":(0,g.default)(v))==="object")for(S in v)C=v[S],p=p.att(S,C)}else if(E===n)s.options.cdata&&_(v)?p=p.raw(d(v)):p=p.txt(v);else if(Array.isArray(v))for(R in v){if(!r.call(v,R))continue;P=v[R],typeof P=="string"?s.options.cdata&&_(P)?p=p.ele(E).raw(d(P)).up():p=p.ele(E,P).up():p=i(p.ele(E),P).up()}else(typeof v=="undefined"?"undefined":(0,g.default)(v))==="object"?p=i(p.ele(E),v).up():typeof v=="string"&&s.options.cdata&&_(v)?p=p.ele(E).raw(d(v)).up():(v==null&&(v=""),p=p.ele(E,v.toString()).up())}return p}}(this),h=x.create(l,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),i(h,t).end(this.options.renderOpts)},u}()}).call(void 0)},{"./defaults":246,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,xmlbuilder:282}],246:[function(M,Y,o){"use strict";(function(){o.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(void 0)},{}],247:[function(M,Y,o){"use strict";var L=M("babel-runtime/core-js/promise"),g=_(L),A=M("babel-runtime/core-js/object/get-own-property-names"),b=_(A),y=M("babel-runtime/core-js/object/keys"),x=_(y),w=M("babel-runtime/helpers/typeof"),f=_(w);function _(d){return d&&d.__esModule?d:{default:d}}(function(){"use strict";var d,r,u,t,a,n,i,h,l=function(S,v){return function(){return S.apply(v,arguments)}},s=function(S,v){for(var P in v)p.call(v,P)&&(S[P]=v[P]);function R(){this.constructor=S}return R.prototype=v.prototype,S.prototype=new R,S.__super__=v.prototype,S},p={}.hasOwnProperty;i=M("sax"),u=M("events"),d=M("./bom"),n=M("./processors"),h=M("timers").setImmediate,r=M("./defaults").defaults,t=function(S){return(typeof S=="undefined"?"undefined":(0,f.default)(S))==="object"&&S!=null&&(0,x.default)(S).length===0},a=function(S,v,P){var R,E,C;for(R=0,E=S.length;R<E;R++)C=S[R],v=C(v,P);return v},o.Parser=function(O){s(S,O);function S(v){this.parseStringPromise=l(this.parseStringPromise,this),this.parseString=l(this.parseString,this),this.reset=l(this.reset,this),this.assignOrPush=l(this.assignOrPush,this),this.processAsync=l(this.processAsync,this);var P,R,E;if(!(this instanceof o.Parser))return new o.Parser(v);this.options={},R=r["0.2"];for(P in R){if(!p.call(R,P))continue;E=R[P],this.options[P]=E}for(P in v){if(!p.call(v,P))continue;E=v[P],this.options[P]=E}this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(n.normalize)),this.reset()}return S.prototype.processAsync=function(){var v,P;try{return this.remaining.length<=this.options.chunkSize?(v=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(v),this.saxParser.close()):(v=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(v),h(this.processAsync))}catch(R){if(P=R,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(P)}},S.prototype.assignOrPush=function(v,P,R){return P in v?(v[P]instanceof Array||(v[P]=[v[P]]),v[P].push(R)):this.options.explicitArray?v[P]=[R]:v[P]=R},S.prototype.reset=function(){var v,P,R,E;return this.removeAllListeners(),this.saxParser=i.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(C){return function(m){if(C.saxParser.resume(),!C.saxParser.errThrown)return C.saxParser.errThrown=!0,C.emit("error",m)}}(this),this.saxParser.onend=function(C){return function(){if(!C.saxParser.ended)return C.saxParser.ended=!0,C.emit("end",C.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,E=[],v=this.options.attrkey,P=this.options.charkey,this.saxParser.onopentag=function(C){return function(m){var T,I,D,N,z;if(D={},D[P]="",!C.options.ignoreAttrs){z=m.attributes;for(T in z){if(!p.call(z,T))continue;!(v in D)&&!C.options.mergeAttrs&&(D[v]={}),I=C.options.attrValueProcessors?a(C.options.attrValueProcessors,m.attributes[T],T):m.attributes[T],N=C.options.attrNameProcessors?a(C.options.attrNameProcessors,T):T,C.options.mergeAttrs?C.assignOrPush(D,N,I):D[v][N]=I}}return D["#name"]=C.options.tagNameProcessors?a(C.options.tagNameProcessors,m.name):m.name,C.options.xmlns&&(D[C.options.xmlnskey]={uri:m.uri,local:m.local}),E.push(D)}}(this),this.saxParser.onclosetag=function(C){return function(){var m,T,I,D,N,z,F,W,K,B;if(z=E.pop(),N=z["#name"],(!C.options.explicitChildren||!C.options.preserveChildrenOrder)&&delete z["#name"],z.cdata===!0&&(m=z.cdata,delete z.cdata),K=E[E.length-1],z[P].match(/^\s*$/)&&!m?(T=z[P],delete z[P]):(C.options.trim&&(z[P]=z[P].trim()),C.options.normalize&&(z[P]=z[P].replace(/\s{2,}/g," ").trim()),z[P]=C.options.valueProcessors?a(C.options.valueProcessors,z[P],N):z[P],(0,x.default)(z).length===1&&P in z&&!C.EXPLICIT_CHARKEY&&(z=z[P])),t(z)&&(z=C.options.emptyTag!==""?C.options.emptyTag:T),C.options.validator!=null&&(B="/"+function(){var k,G,ne;for(ne=[],k=0,G=E.length;k<G;k++)D=E[k],ne.push(D["#name"]);return ne}().concat(N).join("/"),function(){var k;try{return z=C.options.validator(B,K&&K[N],z)}catch(G){return k=G,C.emit("error",k)}}()),C.options.explicitChildren&&!C.options.mergeAttrs&&(typeof z=="undefined"?"undefined":(0,f.default)(z))==="object"){if(!C.options.preserveChildrenOrder)D={},C.options.attrkey in z&&(D[C.options.attrkey]=z[C.options.attrkey],delete z[C.options.attrkey]),!C.options.charsAsChildren&&C.options.charkey in z&&(D[C.options.charkey]=z[C.options.charkey],delete z[C.options.charkey]),(0,b.default)(z).length>0&&(D[C.options.childkey]=z),z=D;else if(K){K[C.options.childkey]=K[C.options.childkey]||[],F={};for(I in z){if(!p.call(z,I))continue;F[I]=z[I]}K[C.options.childkey].push(F),delete z["#name"],(0,x.default)(z).length===1&&P in z&&!C.EXPLICIT_CHARKEY&&(z=z[P])}}return E.length>0?C.assignOrPush(K,N,z):(C.options.explicitRoot&&(W=z,z={},z[N]=W),C.resultObject=z,C.saxParser.ended=!0,C.emit("end",C.resultObject))}}(this),R=function(C){return function(m){var T,I;if(I=E[E.length-1],I)return I[P]+=m,C.options.explicitChildren&&C.options.preserveChildrenOrder&&C.options.charsAsChildren&&(C.options.includeWhiteChars||m.replace(/\\n/g,"").trim()!=="")&&(I[C.options.childkey]=I[C.options.childkey]||[],T={"#name":"__text__"},T[P]=m,C.options.normalize&&(T[P]=T[P].replace(/\s{2,}/g," ").trim()),I[C.options.childkey].push(T)),I}}(this),this.saxParser.ontext=R,this.saxParser.oncdata=function(C){return function(m){var T;if(T=R(m),T)return T.cdata=!0}}(this)},S.prototype.parseString=function(v,P){var R;P!=null&&typeof P=="function"&&(this.on("end",function(E){return this.reset(),P(null,E)}),this.on("error",function(E){return this.reset(),P(E)}));try{return v=v.toString(),v.trim()===""?(this.emit("end",null),!0):(v=d.stripBOM(v),this.options.async?(this.remaining=v,h(this.processAsync),this.saxParser):this.saxParser.write(v).close())}catch(E){if(R=E,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw R}else return this.emit("error",R),this.saxParser.errThrown=!0}},S.prototype.parseStringPromise=function(v){return new g.default(function(P){return function(R,E){return P.parseString(v,function(C,m){return C?E(C):R(m)})}}(this))},S}(u),o.parseString=function(O,S,v){var P,R,E;return v!=null?(typeof v=="function"&&(P=v),(typeof S=="undefined"?"undefined":(0,f.default)(S))==="object"&&(R=S)):(typeof S=="function"&&(P=S),R={}),E=new o.Parser(R),E.parseString(O,P)},o.parseStringPromise=function(O,S){var v,P;return(typeof S=="undefined"?"undefined":(0,f.default)(S))==="object"&&(v=S),P=new o.Parser(v),P.parseStringPromise(O)}}).call(void 0)},{"./bom":244,"./defaults":246,"./processors":248,"babel-runtime/core-js/object/get-own-property-names":58,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/helpers/typeof":67,events:192,sax:229,timers:236}],248:[function(M,Y,o){"use strict";(function(){"use strict";var L;L=new RegExp(/(?!xmlns)^.*:/),o.normalize=function(g){return g.toLowerCase()},o.firstCharLowerCase=function(g){return g.charAt(0).toLowerCase()+g.slice(1)},o.stripPrefix=function(g){return g.replace(L,"")},o.parseNumbers=function(g){return isNaN(g)||(g=g%1===0?parseInt(g,10):parseFloat(g)),g},o.parseBooleans=function(g){return/^(?:true|false)$/i.test(g)&&(g=g.toLowerCase()==="true"),g}}).call(void 0)},{}],249:[function(M,Y,o){"use strict";(function(){"use strict";var L,g,A,b,y=function(f,_){for(var d in _)x.call(_,d)&&(f[d]=_[d]);function r(){this.constructor=f}return r.prototype=_.prototype,f.prototype=new r,f.__super__=_.prototype,f},x={}.hasOwnProperty;g=M("./defaults"),L=M("./builder"),A=M("./parser"),b=M("./processors"),o.defaults=g.defaults,o.processors=b,o.ValidationError=function(w){y(f,w);function f(_){this.message=_}return f}(Error),o.Builder=L.Builder,o.Parser=A.Parser,o.parseString=A.parseString,o.parseStringPromise=A.parseStringPromise}).call(void 0)},{"./builder":245,"./defaults":246,"./parser":247,"./processors":248}],250:[function(M,Y,o){"use strict";(function(){Y.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(void 0)},{}],251:[function(M,Y,o){"use strict";(function(){Y.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(void 0)},{}],252:[function(M,Y,o){"use strict";var L=M("babel-runtime/core-js/object/get-prototype-of"),g=w(L),A=M("babel-runtime/helpers/typeof"),b=w(A),y=M("babel-runtime/core-js/object/assign"),x=w(y);function w(f){return f&&f.__esModule?f:{default:f}}(function(){var f,_,d,r,u,t,a,n=[].slice,i={}.hasOwnProperty;f=function(){var l,s,p,O,S,v;if(v=arguments[0],S=2<=arguments.length?n.call(arguments,1):[],u(x.default))x.default.apply(null,arguments);else for(l=0,p=S.length;l<p;l++)if(O=S[l],O!=null)for(s in O){if(!i.call(O,s))continue;v[s]=O[s]}return v},u=function(l){return!!l&&Object.prototype.toString.call(l)==="[object Function]"},t=function(l){var s;return!!l&&((s=typeof l=="undefined"?"undefined":(0,b.default)(l))==="function"||s==="object")},d=function(l){return u(Array.isArray)?Array.isArray(l):Object.prototype.toString.call(l)==="[object Array]"},r=function(l){var s;if(d(l))return!l.length;for(s in l){if(!i.call(l,s))continue;return!1}return!0},a=function(l){var s,p;return t(l)&&(p=(0,g.default)(l))&&(s=p.constructor)&&typeof s=="function"&&s instanceof s&&Function.prototype.toString.call(s)===Function.prototype.toString.call(Object)},_=function(l){return u(l.valueOf)?l.valueOf():l},Y.exports.assign=f,Y.exports.isFunction=u,Y.exports.isObject=t,Y.exports.isArray=d,Y.exports.isEmpty=r,Y.exports.isPlainObject=a,Y.exports.getValue=_}).call(void 0)},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/get-prototype-of":59,"babel-runtime/helpers/typeof":67}],253:[function(M,Y,o){"use strict";(function(){Y.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(void 0)},{}],254:[function(M,Y,o){"use strict";var L=M("babel-runtime/core-js/object/create"),g=A(L);function A(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,x;b=M("./NodeType"),x=M("./XMLNode"),Y.exports=y=function(){function w(f,_,d){if(this.parent=f,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),_==null)throw new Error("Missing attribute name. "+this.debugInfo(_));this.name=this.stringify.name(_),this.value=this.stringify.attValue(d),this.type=b.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(w.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(w.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(w.prototype,"textContent",{get:function(){return this.value},set:function(_){return this.value=_||""}}),Object.defineProperty(w.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(w.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(w.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(w.prototype,"specified",{get:function(){return!0}}),w.prototype.clone=function(){return(0,g.default)(this)},w.prototype.toString=function(f){return this.options.writer.attribute(this,this.options.writer.filterOptions(f))},w.prototype.debugInfo=function(f){return f=f||this.name,f==null?"parent: <"+this.parent.name+">":"attribute: {"+f+"}, parent: <"+this.parent.name+">"},w.prototype.isEqualNode=function(f){return f.namespaceURI!==this.namespaceURI||(f.prefix!==this.prefix||f.localName!==this.localName)?!1:!(f.value!==this.value)},w}()}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],255:[function(M,Y,o){"use strict";var L=M("babel-runtime/core-js/object/create"),g=A(L);function A(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,x,w=function(d,r){for(var u in r)f.call(r,u)&&(d[u]=r[u]);function t(){this.constructor=d}return t.prototype=r.prototype,d.prototype=new t,d.__super__=r.prototype,d},f={}.hasOwnProperty;b=M("./NodeType"),x=M("./XMLCharacterData"),Y.exports=y=function(_){w(d,_);function d(r,u){if(d.__super__.constructor.call(this,r),u==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=b.CData,this.value=this.stringify.cdata(u)}return d.prototype.clone=function(){return(0,g.default)(this)},d.prototype.toString=function(r){return this.options.writer.cdata(this,this.options.writer.filterOptions(r))},d}(x)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],256:[function(M,Y,o){"use strict";var L=M("babel-runtime/core-js/object/create"),g=A(L);function A(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,x=function(_,d){for(var r in d)w.call(d,r)&&(_[r]=d[r]);function u(){this.constructor=_}return u.prototype=d.prototype,_.prototype=new u,_.__super__=d.prototype,_},w={}.hasOwnProperty;y=M("./XMLNode"),Y.exports=b=function(f){x(_,f);function _(d){_.__super__.constructor.call(this,d),this.value=""}return Object.defineProperty(_.prototype,"data",{get:function(){return this.value},set:function(r){return this.value=r||""}}),Object.defineProperty(_.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(_.prototype,"textContent",{get:function(){return this.value},set:function(r){return this.value=r||""}}),_.prototype.clone=function(){return(0,g.default)(this)},_.prototype.substringData=function(d,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},_.prototype.appendData=function(d){throw new Error("This DOM method is not implemented."+this.debugInfo())},_.prototype.insertData=function(d,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},_.prototype.deleteData=function(d,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},_.prototype.replaceData=function(d,r,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},_.prototype.isEqualNode=function(d){return _.__super__.isEqualNode.apply(this,arguments).isEqualNode(d)?!(d.data!==this.data):!1},_}(y)}).call(void 0)},{"./XMLNode":273,"babel-runtime/core-js/object/create":55}],257:[function(M,Y,o){"use strict";var L=M("babel-runtime/core-js/object/create"),g=A(L);function A(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,x,w=function(d,r){for(var u in r)f.call(r,u)&&(d[u]=r[u]);function t(){this.constructor=d}return t.prototype=r.prototype,d.prototype=new t,d.__super__=r.prototype,d},f={}.hasOwnProperty;b=M("./NodeType"),y=M("./XMLCharacterData"),Y.exports=x=function(_){w(d,_);function d(r,u){if(d.__super__.constructor.call(this,r),u==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=b.Comment,this.value=this.stringify.comment(u)}return d.prototype.clone=function(){return(0,g.default)(this)},d.prototype.toString=function(r){return this.options.writer.comment(this,this.options.writer.filterOptions(r))},d}(y)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],258:[function(M,Y,o){"use strict";var L=M("babel-runtime/core-js/object/keys"),g=y(L),A=M("babel-runtime/core-js/object/create"),b=y(A);function y(x){return x&&x.__esModule?x:{default:x}}(function(){var x,w,f;w=M("./XMLDOMErrorHandler"),f=M("./XMLDOMStringList"),Y.exports=x=function(){function _(){var d;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new w,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=d=(0,b.default)(this.defaultParams)}return Object.defineProperty(_.prototype,"parameterNames",{get:function(){return new f((0,g.default)(this.defaultParams))}}),_.prototype.getParameter=function(d){return this.params.hasOwnProperty(d)?this.params[d]:null},_.prototype.canSetParameter=function(d,r){return!0},_.prototype.setParameter=function(d,r){return r!=null?this.params[d]=r:delete this.params[d]},_}()}).call(void 0)},{"./XMLDOMErrorHandler":259,"./XMLDOMStringList":261,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60}],259:[function(M,Y,o){"use strict";(function(){var L;Y.exports=L=function(){function g(){}return g.prototype.handleError=function(A){throw new Error(A)},g}()}).call(void 0)},{}],260:[function(M,Y,o){"use strict";(function(){var L;Y.exports=L=function(){function g(){}return g.prototype.hasFeature=function(A,b){return!0},g.prototype.createDocumentType=function(A,b,y){throw new Error("This DOM method is not implemented.")},g.prototype.createDocument=function(A,b,y){throw new Error("This DOM method is not implemented.")},g.prototype.createHTMLDocument=function(A){throw new Error("This DOM method is not implemented.")},g.prototype.getFeature=function(A,b){throw new Error("This DOM method is not implemented.")},g}()}).call(void 0)},{}],261:[function(M,Y,o){"use strict";(function(){var L;Y.exports=L=function(){function g(A){this.arr=A||[]}return Object.defineProperty(g.prototype,"length",{get:function(){return this.arr.length}}),g.prototype.item=function(A){return this.arr[A]||null},g.prototype.contains=function(A){return this.arr.indexOf(A)!==-1},g}()}).call(void 0)},{}],262:[function(M,Y,o){"use strict";(function(){var L,g,A,b=function(w,f){for(var _ in f)y.call(f,_)&&(w[_]=f[_]);function d(){this.constructor=w}return d.prototype=f.prototype,w.prototype=new d,w.__super__=f.prototype,w},y={}.hasOwnProperty;A=M("./XMLNode"),L=M("./NodeType"),Y.exports=g=function(x){b(w,x);function w(f,_,d,r,u,t){if(w.__super__.constructor.call(this,f),_==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(d==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(_));if(!r)throw new Error("Missing DTD attribute type. "+this.debugInfo(_));if(!u)throw new Error("Missing DTD attribute default. "+this.debugInfo(_));if(u.indexOf("#")!==0&&(u="#"+u),!u.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(_));if(t&&!u.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(_));this.elementName=this.stringify.name(_),this.type=L.AttributeDeclaration,this.attributeName=this.stringify.name(d),this.attributeType=this.stringify.dtdAttType(r),t&&(this.defaultValue=this.stringify.dtdAttDefault(t)),this.defaultValueType=u}return w.prototype.toString=function(f){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(f))},w}(A)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],263:[function(M,Y,o){"use strict";(function(){var L,g,A,b=function(w,f){for(var _ in f)y.call(f,_)&&(w[_]=f[_]);function d(){this.constructor=w}return d.prototype=f.prototype,w.prototype=new d,w.__super__=f.prototype,w},y={}.hasOwnProperty;A=M("./XMLNode"),L=M("./NodeType"),Y.exports=g=function(x){b(w,x);function w(f,_,d){if(w.__super__.constructor.call(this,f),_==null)throw new Error("Missing DTD element name. "+this.debugInfo());d||(d="(#PCDATA)"),Array.isArray(d)&&(d="("+d.join(",")+")"),this.name=this.stringify.name(_),this.type=L.ElementDeclaration,this.value=this.stringify.dtdElementValue(d)}return w.prototype.toString=function(f){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(f))},w}(A)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],264:[function(M,Y,o){"use strict";(function(){var L,g,A,b,y=function(f,_){for(var d in _)x.call(_,d)&&(f[d]=_[d]);function r(){this.constructor=f}return r.prototype=_.prototype,f.prototype=new r,f.__super__=_.prototype,f},x={}.hasOwnProperty;b=M("./Utility").isObject,A=M("./XMLNode"),L=M("./NodeType"),Y.exports=g=function(w){y(f,w);function f(_,d,r,u){if(f.__super__.constructor.call(this,_),r==null)throw new Error("Missing DTD entity name. "+this.debugInfo(r));if(u==null)throw new Error("Missing DTD entity value. "+this.debugInfo(r));if(this.pe=!!d,this.name=this.stringify.name(r),this.type=L.EntityDeclaration,!b(u))this.value=this.stringify.dtdEntityValue(u),this.internal=!0;else{if(!u.pubID&&!u.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(r));if(u.pubID&&!u.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(r));if(this.internal=!1,u.pubID!=null&&(this.pubID=this.stringify.dtdPubID(u.pubID)),u.sysID!=null&&(this.sysID=this.stringify.dtdSysID(u.sysID)),u.nData!=null&&(this.nData=this.stringify.dtdNData(u.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(r))}}return Object.defineProperty(f.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(f.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(f.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(f.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(f.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(f.prototype,"xmlVersion",{get:function(){return null}}),f.prototype.toString=function(_){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(_))},f}(A)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],265:[function(M,Y,o){"use strict";(function(){var L,g,A,b=function(w,f){for(var _ in f)y.call(f,_)&&(w[_]=f[_]);function d(){this.constructor=w}return d.prototype=f.prototype,w.prototype=new d,w.__super__=f.prototype,w},y={}.hasOwnProperty;A=M("./XMLNode"),L=M("./NodeType"),Y.exports=g=function(x){b(w,x);function w(f,_,d){if(w.__super__.constructor.call(this,f),_==null)throw new Error("Missing DTD notation name. "+this.debugInfo(_));if(!d.pubID&&!d.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(_));this.name=this.stringify.name(_),this.type=L.NotationDeclaration,d.pubID!=null&&(this.pubID=this.stringify.dtdPubID(d.pubID)),d.sysID!=null&&(this.sysID=this.stringify.dtdSysID(d.sysID))}return Object.defineProperty(w.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(w.prototype,"systemId",{get:function(){return this.sysID}}),w.prototype.toString=function(f){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(f))},w}(A)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],266:[function(M,Y,o){"use strict";(function(){var L,g,A,b,y=function(f,_){for(var d in _)x.call(_,d)&&(f[d]=_[d]);function r(){this.constructor=f}return r.prototype=_.prototype,f.prototype=new r,f.__super__=_.prototype,f},x={}.hasOwnProperty;b=M("./Utility").isObject,A=M("./XMLNode"),L=M("./NodeType"),Y.exports=g=function(w){y(f,w);function f(_,d,r,u){var t;f.__super__.constructor.call(this,_),b(d)&&(t=d,d=t.version,r=t.encoding,u=t.standalone),d||(d="1.0"),this.type=L.Declaration,this.version=this.stringify.xmlVersion(d),r!=null&&(this.encoding=this.stringify.xmlEncoding(r)),u!=null&&(this.standalone=this.stringify.xmlStandalone(u))}return f.prototype.toString=function(_){return this.options.writer.declaration(this,this.options.writer.filterOptions(_))},f}(A)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],267:[function(M,Y,o){"use strict";(function(){var L,g,A,b,y,x,w,f,_,d=function(t,a){for(var n in a)r.call(a,n)&&(t[n]=a[n]);function i(){this.constructor=t}return i.prototype=a.prototype,t.prototype=new i,t.__super__=a.prototype,t},r={}.hasOwnProperty;_=M("./Utility").isObject,f=M("./XMLNode"),L=M("./NodeType"),g=M("./XMLDTDAttList"),b=M("./XMLDTDEntity"),A=M("./XMLDTDElement"),y=M("./XMLDTDNotation"),w=M("./XMLNamedNodeMap"),Y.exports=x=function(u){d(t,u);function t(a,n,i){var h,l,s,p,O,S;if(t.__super__.constructor.call(this,a),this.type=L.DocType,a.children){for(p=a.children,l=0,s=p.length;l<s;l++)if(h=p[l],h.type===L.Element){this.name=h.name;break}}this.documentObject=a,_(n)&&(O=n,n=O.pubID,i=O.sysID),i==null&&(S=[n,i],i=S[0],n=S[1]),n!=null&&(this.pubID=this.stringify.dtdPubID(n)),i!=null&&(this.sysID=this.stringify.dtdSysID(i))}return Object.defineProperty(t.prototype,"entities",{get:function(){var n,i,h,l,s;for(l={},s=this.children,i=0,h=s.length;i<h;i++)n=s[i],n.type===L.EntityDeclaration&&!n.pe&&(l[n.name]=n);return new w(l)}}),Object.defineProperty(t.prototype,"notations",{get:function(){var n,i,h,l,s;for(l={},s=this.children,i=0,h=s.length;i<h;i++)n=s[i],n.type===L.NotationDeclaration&&(l[n.name]=n);return new w(l)}}),Object.defineProperty(t.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(t.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(t.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),t.prototype.element=function(a,n){var i;return i=new A(this,a,n),this.children.push(i),this},t.prototype.attList=function(a,n,i,h,l){var s;return s=new g(this,a,n,i,h,l),this.children.push(s),this},t.prototype.entity=function(a,n){var i;return i=new b(this,!1,a,n),this.children.push(i),this},t.prototype.pEntity=function(a,n){var i;return i=new b(this,!0,a,n),this.children.push(i),this},t.prototype.notation=function(a,n){var i;return i=new y(this,a,n),this.children.push(i),this},t.prototype.toString=function(a){return this.options.writer.docType(this,this.options.writer.filterOptions(a))},t.prototype.ele=function(a,n){return this.element(a,n)},t.prototype.att=function(a,n,i,h,l){return this.attList(a,n,i,h,l)},t.prototype.ent=function(a,n){return this.entity(a,n)},t.prototype.pent=function(a,n){return this.pEntity(a,n)},t.prototype.not=function(a,n){return this.notation(a,n)},t.prototype.up=function(){return this.root()||this.documentObject},t.prototype.isEqualNode=function(a){return t.__super__.isEqualNode.apply(this,arguments).isEqualNode(a)?a.name!==this.name||a.publicId!==this.publicId?!1:!(a.systemId!==this.systemId):!1},t}(f)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLNamedNodeMap":272,"./XMLNode":273}],268:[function(M,Y,o){"use strict";(function(){var L,g,A,b,y,x,w,f,_=function(u,t){for(var a in t)d.call(t,a)&&(u[a]=t[a]);function n(){this.constructor=u}return n.prototype=t.prototype,u.prototype=new n,u.__super__=t.prototype,u},d={}.hasOwnProperty;f=M("./Utility").isPlainObject,A=M("./XMLDOMImplementation"),g=M("./XMLDOMConfiguration"),y=M("./XMLNode"),L=M("./NodeType"),w=M("./XMLStringifier"),x=M("./XMLStringWriter"),Y.exports=b=function(r){_(u,r);function u(t){u.__super__.constructor.call(this,null),this.name="#document",this.type=L.Document,this.documentURI=null,this.domConfig=new g,t||(t={}),t.writer||(t.writer=new x),this.options=t,this.stringify=new w(t)}return Object.defineProperty(u.prototype,"implementation",{value:new A}),Object.defineProperty(u.prototype,"doctype",{get:function(){var a,n,i,h;for(h=this.children,n=0,i=h.length;n<i;n++)if(a=h[n],a.type===L.DocType)return a;return null}}),Object.defineProperty(u.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(u.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(u.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(u.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===L.Declaration?this.children[0].encoding:null}}),Object.defineProperty(u.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===L.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(u.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===L.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(u.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(u.prototype,"origin",{get:function(){return null}}),Object.defineProperty(u.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(u.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(u.prototype,"contentType",{get:function(){return null}}),u.prototype.end=function(t){var a;return a={},t?f(t)&&(a=t,t=this.options.writer):t=this.options.writer,t.document(this,t.filterOptions(a))},u.prototype.toString=function(t){return this.options.writer.document(this,this.options.writer.filterOptions(t))},u.prototype.createElement=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.createTextNode=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.createComment=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.createCDATASection=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.createProcessingInstruction=function(t,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.createAttribute=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.createEntityReference=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.getElementsByTagName=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.importNode=function(t,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.createElementNS=function(t,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.createAttributeNS=function(t,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.getElementsByTagNameNS=function(t,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.getElementById=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.adoptNode=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.renameNode=function(t,a,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.getElementsByClassName=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.createEvent=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.createNodeIterator=function(t,a,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.createTreeWalker=function(t,a,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},u}(y)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDOMConfiguration":258,"./XMLDOMImplementation":260,"./XMLNode":273,"./XMLStringWriter":278,"./XMLStringifier":279}],269:[function(M,Y,o){"use strict";(function(){var L,g,A,b,y,x,w,f,_,d,r,u,t,a,n,i,h,l,s,p,O,S,v,P,R={}.hasOwnProperty;P=M("./Utility"),S=P.isObject,O=P.isFunction,v=P.isPlainObject,p=P.getValue,L=M("./NodeType"),u=M("./XMLDocument"),a=M("./XMLElement"),b=M("./XMLCData"),y=M("./XMLComment"),i=M("./XMLRaw"),s=M("./XMLText"),n=M("./XMLProcessingInstruction"),d=M("./XMLDeclaration"),r=M("./XMLDocType"),x=M("./XMLDTDAttList"),f=M("./XMLDTDEntity"),w=M("./XMLDTDElement"),_=M("./XMLDTDNotation"),A=M("./XMLAttribute"),l=M("./XMLStringifier"),h=M("./XMLStringWriter"),g=M("./WriterState"),Y.exports=t=function(){function E(C,m,T){var I;this.name="?xml",this.type=L.Document,C||(C={}),I={},C.writer?v(C.writer)&&(I=C.writer,C.writer=new h):C.writer=new h,this.options=C,this.writer=C.writer,this.writerOptions=this.writer.filterOptions(I),this.stringify=new l(C),this.onDataCallback=m||function(){},this.onEndCallback=T||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return E.prototype.createChildNode=function(C){var m,T,I,D,N,z,F,W;switch(C.type){case L.CData:this.cdata(C.value);break;case L.Comment:this.comment(C.value);break;case L.Element:I={},F=C.attribs;for(T in F){if(!R.call(F,T))continue;m=F[T],I[T]=m.value}this.node(C.name,I);break;case L.Dummy:this.dummy();break;case L.Raw:this.raw(C.value);break;case L.Text:this.text(C.value);break;case L.ProcessingInstruction:this.instruction(C.target,C.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+C.constructor.name)}for(W=C.children,N=0,z=W.length;N<z;N++)D=W[N],this.createChildNode(D),D.type===L.Element&&this.up();return this},E.prototype.dummy=function(){return this},E.prototype.node=function(C,m,T){var I;if(C==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(C));return this.openCurrent(),C=p(C),m==null&&(m={}),m=p(m),S(m)||(I=[m,T],T=I[0],m=I[1]),this.currentNode=new a(this,C,m),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,T!=null&&this.text(T),this},E.prototype.element=function(C,m,T){var I,D,N,z,F,W;if(this.currentNode&&this.currentNode.type===L.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(C)||S(C)||O(C))for(z=this.options.noValidation,this.options.noValidation=!0,W=new u(this.options).element("TEMP_ROOT"),W.element(C),this.options.noValidation=z,F=W.children,D=0,N=F.length;D<N;D++)I=F[D],this.createChildNode(I),I.type===L.Element&&this.up();else this.node(C,m,T);return this},E.prototype.attribute=function(C,m){var T,I;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(C));if(C!=null&&(C=p(C)),S(C))for(T in C){if(!R.call(C,T))continue;I=C[T],this.attribute(T,I)}else O(m)&&(m=m.apply()),this.options.keepNullAttributes&&m==null?this.currentNode.attribs[C]=new A(this,C,""):m!=null&&(this.currentNode.attribs[C]=new A(this,C,m));return this},E.prototype.text=function(C){var m;return this.openCurrent(),m=new s(this,C),this.onData(this.writer.text(m,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},E.prototype.cdata=function(C){var m;return this.openCurrent(),m=new b(this,C),this.onData(this.writer.cdata(m,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},E.prototype.comment=function(C){var m;return this.openCurrent(),m=new y(this,C),this.onData(this.writer.comment(m,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},E.prototype.raw=function(C){var m;return this.openCurrent(),m=new i(this,C),this.onData(this.writer.raw(m,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},E.prototype.instruction=function(C,m){var T,I,D,N,z;if(this.openCurrent(),C!=null&&(C=p(C)),m!=null&&(m=p(m)),Array.isArray(C))for(T=0,N=C.length;T<N;T++)I=C[T],this.instruction(I);else if(S(C))for(I in C){if(!R.call(C,I))continue;D=C[I],this.instruction(I,D)}else O(m)&&(m=m.apply()),z=new n(this,C,m),this.onData(this.writer.processingInstruction(z,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},E.prototype.declaration=function(C,m,T){var I;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return I=new d(this,C,m,T),this.onData(this.writer.declaration(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},E.prototype.doctype=function(C,m,T){if(this.openCurrent(),C==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new r(this,m,T),this.currentNode.rootNodeName=C,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},E.prototype.dtdElement=function(C,m){var T;return this.openCurrent(),T=new w(this,C,m),this.onData(this.writer.dtdElement(T,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},E.prototype.attList=function(C,m,T,I,D){var N;return this.openCurrent(),N=new x(this,C,m,T,I,D),this.onData(this.writer.dtdAttList(N,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},E.prototype.entity=function(C,m){var T;return this.openCurrent(),T=new f(this,!1,C,m),this.onData(this.writer.dtdEntity(T,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},E.prototype.pEntity=function(C,m){var T;return this.openCurrent(),T=new f(this,!0,C,m),this.onData(this.writer.dtdEntity(T,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},E.prototype.notation=function(C,m){var T;return this.openCurrent(),T=new _(this,C,m),this.onData(this.writer.dtdNotation(T,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},E.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},E.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},E.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},E.prototype.openNode=function(C){var m,T,I,D;if(!C.isOpen){if(!this.root&&this.currentLevel===0&&C.type===L.Element&&(this.root=C),T="",C.type===L.Element){this.writerOptions.state=g.OpenTag,T=this.writer.indent(C,this.writerOptions,this.currentLevel)+"<"+C.name,D=C.attribs;for(I in D){if(!R.call(D,I))continue;m=D[I],T+=this.writer.attribute(m,this.writerOptions,this.currentLevel)}T+=(C.children?">":"/>")+this.writer.endline(C,this.writerOptions,this.currentLevel),this.writerOptions.state=g.InsideTag}else this.writerOptions.state=g.OpenTag,T=this.writer.indent(C,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+C.rootNodeName,C.pubID&&C.sysID?T+=' PUBLIC "'+C.pubID+'" "'+C.sysID+'"':C.sysID&&(T+=' SYSTEM "'+C.sysID+'"'),C.children?(T+=" [",this.writerOptions.state=g.InsideTag):(this.writerOptions.state=g.CloseTag,T+=">"),T+=this.writer.endline(C,this.writerOptions,this.currentLevel);return this.onData(T,this.currentLevel),C.isOpen=!0}},E.prototype.closeNode=function(C){var m;if(!C.isClosed)return m="",this.writerOptions.state=g.CloseTag,C.type===L.Element?m=this.writer.indent(C,this.writerOptions,this.currentLevel)+"</"+C.name+">"+this.writer.endline(C,this.writerOptions,this.currentLevel):m=this.writer.indent(C,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(C,this.writerOptions,this.currentLevel),this.writerOptions.state=g.None,this.onData(m,this.currentLevel),C.isClosed=!0},E.prototype.onData=function(C,m){return this.documentStarted=!0,this.onDataCallback(C,m+1)},E.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},E.prototype.debugInfo=function(C){return C==null?"":"node: <"+C+">"},E.prototype.ele=function(){return this.element.apply(this,arguments)},E.prototype.nod=function(C,m,T){return this.node(C,m,T)},E.prototype.txt=function(C){return this.text(C)},E.prototype.dat=function(C){return this.cdata(C)},E.prototype.com=function(C){return this.comment(C)},E.prototype.ins=function(C,m){return this.instruction(C,m)},E.prototype.dec=function(C,m,T){return this.declaration(C,m,T)},E.prototype.dtd=function(C,m,T){return this.doctype(C,m,T)},E.prototype.e=function(C,m,T){return this.element(C,m,T)},E.prototype.n=function(C,m,T){return this.node(C,m,T)},E.prototype.t=function(C){return this.text(C)},E.prototype.d=function(C){return this.cdata(C)},E.prototype.c=function(C){return this.comment(C)},E.prototype.r=function(C){return this.raw(C)},E.prototype.i=function(C,m){return this.instruction(C,m)},E.prototype.att=function(){return this.currentNode&&this.currentNode.type===L.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},E.prototype.a=function(){return this.currentNode&&this.currentNode.type===L.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},E.prototype.ent=function(C,m){return this.entity(C,m)},E.prototype.pent=function(C,m){return this.pEntity(C,m)},E.prototype.not=function(C,m){return this.notation(C,m)},E}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLAttribute":254,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDocument":268,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLStringWriter":278,"./XMLStringifier":279,"./XMLText":280}],270:[function(M,Y,o){"use strict";var L=M("babel-runtime/core-js/object/create"),g=A(L);function A(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,x,w=function(d,r){for(var u in r)f.call(r,u)&&(d[u]=r[u]);function t(){this.constructor=d}return t.prototype=r.prototype,d.prototype=new t,d.__super__=r.prototype,d},f={}.hasOwnProperty;x=M("./XMLNode"),b=M("./NodeType"),Y.exports=y=function(_){w(d,_);function d(r){d.__super__.constructor.call(this,r),this.type=b.Dummy}return d.prototype.clone=function(){return(0,g.default)(this)},d.prototype.toString=function(r){return""},d}(x)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],271:[function(M,Y,o){"use strict";var L=M("babel-runtime/core-js/object/create"),g=A(L);function A(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,x,w,f,_,d,r,u,t=function(i,h){for(var l in h)a.call(h,l)&&(i[l]=h[l]);function s(){this.constructor=i}return s.prototype=h.prototype,i.prototype=new s,i.__super__=h.prototype,i},a={}.hasOwnProperty;u=M("./Utility"),r=u.isObject,d=u.isFunction,_=u.getValue,f=M("./XMLNode"),b=M("./NodeType"),y=M("./XMLAttribute"),w=M("./XMLNamedNodeMap"),Y.exports=x=function(n){t(i,n);function i(h,l,s){var p,O,S,v;if(i.__super__.constructor.call(this,h),l==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(l),this.type=b.Element,this.attribs={},this.schemaTypeInfo=null,s!=null&&this.attribute(s),h.type===b.Document&&(this.isRoot=!0,this.documentObject=h,h.rootObject=this,h.children)){for(v=h.children,O=0,S=v.length;O<S;O++)if(p=v[O],p.type===b.DocType){p.name=this.name;break}}}return Object.defineProperty(i.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(i.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(i.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(i.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(i.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(i.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(i.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(i.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new w(this.attribs)),this.attributeMap}}),i.prototype.clone=function(){var h,l,s,p;s=(0,g.default)(this),s.isRoot&&(s.documentObject=null),s.attribs={},p=this.attribs;for(l in p){if(!a.call(p,l))continue;h=p[l],s.attribs[l]=h.clone()}return s.children=[],this.children.forEach(function(O){var S;return S=O.clone(),S.parent=s,s.children.push(S)}),s},i.prototype.attribute=function(h,l){var s,p;if(h!=null&&(h=_(h)),r(h))for(s in h){if(!a.call(h,s))continue;p=h[s],this.attribute(s,p)}else d(l)&&(l=l.apply()),this.options.keepNullAttributes&&l==null?this.attribs[h]=new y(this,h,""):l!=null&&(this.attribs[h]=new y(this,h,l));return this},i.prototype.removeAttribute=function(h){var l,s,p;if(h==null)throw new Error("Missing attribute name. "+this.debugInfo());if(h=_(h),Array.isArray(h))for(s=0,p=h.length;s<p;s++)l=h[s],delete this.attribs[l];else delete this.attribs[h];return this},i.prototype.toString=function(h){return this.options.writer.element(this,this.options.writer.filterOptions(h))},i.prototype.att=function(h,l){return this.attribute(h,l)},i.prototype.a=function(h,l){return this.attribute(h,l)},i.prototype.getAttribute=function(h){return this.attribs.hasOwnProperty(h)?this.attribs[h].value:null},i.prototype.setAttribute=function(h,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.getAttributeNode=function(h){return this.attribs.hasOwnProperty(h)?this.attribs[h]:null},i.prototype.setAttributeNode=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.removeAttributeNode=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.getElementsByTagName=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.getAttributeNS=function(h,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.setAttributeNS=function(h,l,s){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.removeAttributeNS=function(h,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.getAttributeNodeNS=function(h,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.setAttributeNodeNS=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.getElementsByTagNameNS=function(h,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.hasAttribute=function(h){return this.attribs.hasOwnProperty(h)},i.prototype.hasAttributeNS=function(h,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.setIdAttribute=function(h,l){return this.attribs.hasOwnProperty(h)?this.attribs[h].isId:l},i.prototype.setIdAttributeNS=function(h,l,s){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.setIdAttributeNode=function(h,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.getElementsByTagName=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.getElementsByTagNameNS=function(h,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.getElementsByClassName=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.isEqualNode=function(h){var l,s,p;if(!i.__super__.isEqualNode.apply(this,arguments).isEqualNode(h))return!1;if(h.namespaceURI!==this.namespaceURI)return!1;if(h.prefix!==this.prefix)return!1;if(h.localName!==this.localName)return!1;if(h.attribs.length!==this.attribs.length)return!1;for(l=s=0,p=this.attribs.length-1;0<=p?s<=p:s>=p;l=0<=p?++s:--s)if(!this.attribs[l].isEqualNode(h.attribs[l]))return!1;return!0},i}(f)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLAttribute":254,"./XMLNamedNodeMap":272,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],272:[function(M,Y,o){"use strict";var L=M("babel-runtime/core-js/object/keys"),g=A(L);function A(b){return b&&b.__esModule?b:{default:b}}(function(){var b;Y.exports=b=function(){function y(x){this.nodes=x}return Object.defineProperty(y.prototype,"length",{get:function(){return(0,g.default)(this.nodes).length||0}}),y.prototype.clone=function(){return this.nodes=null},y.prototype.getNamedItem=function(x){return this.nodes[x]},y.prototype.setNamedItem=function(x){var w;return w=this.nodes[x.nodeName],this.nodes[x.nodeName]=x,w||null},y.prototype.removeNamedItem=function(x){var w;return w=this.nodes[x],delete this.nodes[x],w||null},y.prototype.item=function(x){return this.nodes[(0,g.default)(this.nodes)[x]]||null},y.prototype.getNamedItemNS=function(x,w){throw new Error("This DOM method is not implemented.")},y.prototype.setNamedItemNS=function(x){throw new Error("This DOM method is not implemented.")},y.prototype.removeNamedItemNS=function(x,w){throw new Error("This DOM method is not implemented.")},y}()}).call(void 0)},{"babel-runtime/core-js/object/keys":60}],273:[function(M,Y,o){"use strict";(function(){var L,g,A,b,y,x,w,f,_,d,r,u,t,a,n,i,h,l,s,p={}.hasOwnProperty;s=M("./Utility"),l=s.isObject,h=s.isFunction,i=s.isEmpty,n=s.getValue,f=null,A=null,b=null,y=null,x=null,t=null,a=null,u=null,w=null,g=null,r=null,_=null,L=null,Y.exports=d=function(){function O(S){this.parent=S,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,f||(f=M("./XMLElement"),A=M("./XMLCData"),b=M("./XMLComment"),y=M("./XMLDeclaration"),x=M("./XMLDocType"),t=M("./XMLRaw"),a=M("./XMLText"),u=M("./XMLProcessingInstruction"),w=M("./XMLDummy"),g=M("./NodeType"),r=M("./XMLNodeList"),_=M("./XMLNamedNodeMap"),L=M("./DocumentPosition"))}return Object.defineProperty(O.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(O.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(O.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(O.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(O.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new r(this.children)),this.childNodeList}}),Object.defineProperty(O.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(O.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(O.prototype,"previousSibling",{get:function(){var v;return v=this.parent.children.indexOf(this),this.parent.children[v-1]||null}}),Object.defineProperty(O.prototype,"nextSibling",{get:function(){var v;return v=this.parent.children.indexOf(this),this.parent.children[v+1]||null}}),Object.defineProperty(O.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(O.prototype,"textContent",{get:function(){var v,P,R,E,C;if(this.nodeType===g.Element||this.nodeType===g.DocumentFragment){for(C="",E=this.children,P=0,R=E.length;P<R;P++)v=E[P],v.textContent&&(C+=v.textContent);return C}else return null},set:function(v){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),O.prototype.setParent=function(S){var v,P,R,E,C;for(this.parent=S,S&&(this.options=S.options,this.stringify=S.stringify),E=this.children,C=[],P=0,R=E.length;P<R;P++)v=E[P],C.push(v.setParent(this));return C},O.prototype.element=function(S,v,P){var R,E,C,m,T,I,D,N,z,F,W;if(I=null,v===null&&P==null&&(z=[{},null],v=z[0],P=z[1]),v==null&&(v={}),v=n(v),l(v)||(F=[v,P],P=F[0],v=F[1]),S!=null&&(S=n(S)),Array.isArray(S))for(C=0,D=S.length;C<D;C++)E=S[C],I=this.element(E);else if(h(S))I=this.element(S.apply());else if(l(S))for(T in S){if(!p.call(S,T))continue;if(W=S[T],h(W)&&(W=W.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&T.indexOf(this.stringify.convertAttKey)===0)I=this.attribute(T.substr(this.stringify.convertAttKey.length),W);else if(!this.options.separateArrayItems&&Array.isArray(W)&&i(W))I=this.dummy();else if(l(W)&&i(W))I=this.element(T);else if(!this.options.keepNullNodes&&W==null)I=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(W))for(m=0,N=W.length;m<N;m++)E=W[m],R={},R[T]=E,I=this.element(R);else l(W)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&T.indexOf(this.stringify.convertTextKey)===0?I=this.element(W):(I=this.element(T),I.element(W)):I=this.element(T,W)}else!this.options.keepNullNodes&&P===null?I=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&S.indexOf(this.stringify.convertTextKey)===0?I=this.text(P):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&S.indexOf(this.stringify.convertCDataKey)===0?I=this.cdata(P):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&S.indexOf(this.stringify.convertCommentKey)===0?I=this.comment(P):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&S.indexOf(this.stringify.convertRawKey)===0?I=this.raw(P):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&S.indexOf(this.stringify.convertPIKey)===0?I=this.instruction(S.substr(this.stringify.convertPIKey.length),P):I=this.node(S,v,P);if(I==null)throw new Error("Could not create any elements with: "+S+". "+this.debugInfo());return I},O.prototype.insertBefore=function(S,v,P){var R,E,C,m,T;if(S!=null?S.type:void 0)return C=S,m=v,C.setParent(this),m?(E=children.indexOf(m),T=children.splice(E),children.push(C),Array.prototype.push.apply(children,T)):children.push(C),C;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(S));return E=this.parent.children.indexOf(this),T=this.parent.children.splice(E),R=this.parent.element(S,v,P),Array.prototype.push.apply(this.parent.children,T),R},O.prototype.insertAfter=function(S,v,P){var R,E,C;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(S));return E=this.parent.children.indexOf(this),C=this.parent.children.splice(E+1),R=this.parent.element(S,v,P),Array.prototype.push.apply(this.parent.children,C),R},O.prototype.remove=function(){var S,v;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return S=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[S,S-S+1].concat(v=[])),this.parent},O.prototype.node=function(S,v,P){var R,E;return S!=null&&(S=n(S)),v||(v={}),v=n(v),l(v)||(E=[v,P],P=E[0],v=E[1]),R=new f(this,S,v),P!=null&&R.text(P),this.children.push(R),R},O.prototype.text=function(S){var v;return l(S)&&this.element(S),v=new a(this,S),this.children.push(v),this},O.prototype.cdata=function(S){var v;return v=new A(this,S),this.children.push(v),this},O.prototype.comment=function(S){var v;return v=new b(this,S),this.children.push(v),this},O.prototype.commentBefore=function(S){var v,P,R;return P=this.parent.children.indexOf(this),R=this.parent.children.splice(P),v=this.parent.comment(S),Array.prototype.push.apply(this.parent.children,R),this},O.prototype.commentAfter=function(S){var v,P,R;return P=this.parent.children.indexOf(this),R=this.parent.children.splice(P+1),v=this.parent.comment(S),Array.prototype.push.apply(this.parent.children,R),this},O.prototype.raw=function(S){var v;return v=new t(this,S),this.children.push(v),this},O.prototype.dummy=function(){var S;return S=new w(this),S},O.prototype.instruction=function(S,v){var P,R,E,C,m;if(S!=null&&(S=n(S)),v!=null&&(v=n(v)),Array.isArray(S))for(C=0,m=S.length;C<m;C++)P=S[C],this.instruction(P);else if(l(S))for(P in S){if(!p.call(S,P))continue;R=S[P],this.instruction(P,R)}else h(v)&&(v=v.apply()),E=new u(this,S,v),this.children.push(E);return this},O.prototype.instructionBefore=function(S,v){var P,R,E;return R=this.parent.children.indexOf(this),E=this.parent.children.splice(R),P=this.parent.instruction(S,v),Array.prototype.push.apply(this.parent.children,E),this},O.prototype.instructionAfter=function(S,v){var P,R,E;return R=this.parent.children.indexOf(this),E=this.parent.children.splice(R+1),P=this.parent.instruction(S,v),Array.prototype.push.apply(this.parent.children,E),this},O.prototype.declaration=function(S,v,P){var R,E;return R=this.document(),E=new y(R,S,v,P),R.children.length===0?R.children.unshift(E):R.children[0].type===g.Declaration?R.children[0]=E:R.children.unshift(E),R.root()||R},O.prototype.dtd=function(S,v){var P,R,E,C,m,T,I,D,N,z;for(R=this.document(),E=new x(R,S,v),N=R.children,C=m=0,I=N.length;m<I;C=++m)if(P=N[C],P.type===g.DocType)return R.children[C]=E,E;for(z=R.children,C=T=0,D=z.length;T<D;C=++T)if(P=z[C],P.isRoot)return R.children.splice(C,0,E),E;return R.children.push(E),E},O.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},O.prototype.root=function(){var S;for(S=this;S;){if(S.type===g.Document)return S.rootObject;if(S.isRoot)return S;S=S.parent}},O.prototype.document=function(){var S;for(S=this;S;){if(S.type===g.Document)return S;S=S.parent}},O.prototype.end=function(S){return this.document().end(S)},O.prototype.prev=function(){var S;if(S=this.parent.children.indexOf(this),S<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[S-1]},O.prototype.next=function(){var S;if(S=this.parent.children.indexOf(this),S===-1||S===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[S+1]},O.prototype.importDocument=function(S){var v;return v=S.root().clone(),v.parent=this,v.isRoot=!1,this.children.push(v),this},O.prototype.debugInfo=function(S){var v,P;return S=S||this.name,S==null&&!((v=this.parent)!=null?v.name:void 0)?"":S==null?"parent: <"+this.parent.name+">":((P=this.parent)!=null?P.name:void 0)?"node: <"+S+">, parent: <"+this.parent.name+">":"node: <"+S+">"},O.prototype.ele=function(S,v,P){return this.element(S,v,P)},O.prototype.nod=function(S,v,P){return this.node(S,v,P)},O.prototype.txt=function(S){return this.text(S)},O.prototype.dat=function(S){return this.cdata(S)},O.prototype.com=function(S){return this.comment(S)},O.prototype.ins=function(S,v){return this.instruction(S,v)},O.prototype.doc=function(){return this.document()},O.prototype.dec=function(S,v,P){return this.declaration(S,v,P)},O.prototype.e=function(S,v,P){return this.element(S,v,P)},O.prototype.n=function(S,v,P){return this.node(S,v,P)},O.prototype.t=function(S){return this.text(S)},O.prototype.d=function(S){return this.cdata(S)},O.prototype.c=function(S){return this.comment(S)},O.prototype.r=function(S){return this.raw(S)},O.prototype.i=function(S,v){return this.instruction(S,v)},O.prototype.u=function(){return this.up()},O.prototype.importXMLBuilder=function(S){return this.importDocument(S)},O.prototype.replaceChild=function(S,v){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.removeChild=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.appendChild=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.hasChildNodes=function(){return this.children.length!==0},O.prototype.cloneNode=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.isSupported=function(S,v){return!0},O.prototype.hasAttributes=function(){return this.attribs.length!==0},O.prototype.compareDocumentPosition=function(S){var v,P;return v=this,v===S?0:this.document()!==S.document()?(P=L.Disconnected|L.ImplementationSpecific,Math.random()<.5?P|=L.Preceding:P|=L.Following,P):v.isAncestor(S)?L.Contains|L.Preceding:v.isDescendant(S)?L.Contains|L.Following:v.isPreceding(S)?L.Preceding:L.Following},O.prototype.isSameNode=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.lookupPrefix=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.isDefaultNamespace=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.lookupNamespaceURI=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.isEqualNode=function(S){var v,P,R;if(S.nodeType!==this.nodeType)return!1;if(S.children.length!==this.children.length)return!1;for(v=P=0,R=this.children.length-1;0<=R?P<=R:P>=R;v=0<=R?++P:--P)if(!this.children[v].isEqualNode(S.children[v]))return!1;return!0},O.prototype.getFeature=function(S,v){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.setUserData=function(S,v,P){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.getUserData=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.contains=function(S){return S?S===this||this.isDescendant(S):!1},O.prototype.isDescendant=function(S){var v,P,R,E,C;for(C=this.children,R=0,E=C.length;R<E;R++){if(v=C[R],S===v)return!0;if(P=v.isDescendant(S),P)return!0}return!1},O.prototype.isAncestor=function(S){return S.isDescendant(this)},O.prototype.isPreceding=function(S){var v,P;return v=this.treePosition(S),P=this.treePosition(this),v===-1||P===-1?!1:v<P},O.prototype.isFollowing=function(S){var v,P;return v=this.treePosition(S),P=this.treePosition(this),v===-1||P===-1?!1:v>P},O.prototype.treePosition=function(S){var v,P;return P=0,v=!1,this.foreachTreeNode(this.document(),function(R){if(P++,!v&&R===S)return v=!0}),v?P:-1},O.prototype.foreachTreeNode=function(S,v){var P,R,E,C,m;for(S||(S=this.document()),C=S.children,R=0,E=C.length;R<E;R++){if(P=C[R],m=v(P))return m;if(m=this.foreachTreeNode(P,v),m)return m}},O}()}).call(void 0)},{"./DocumentPosition":250,"./NodeType":251,"./Utility":252,"./XMLCData":255,"./XMLComment":257,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLNamedNodeMap":272,"./XMLNodeList":274,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],274:[function(M,Y,o){"use strict";(function(){var L;Y.exports=L=function(){function g(A){this.nodes=A}return Object.defineProperty(g.prototype,"length",{get:function(){return this.nodes.length||0}}),g.prototype.clone=function(){return this.nodes=null},g.prototype.item=function(A){return this.nodes[A]||null},g}()}).call(void 0)},{}],275:[function(M,Y,o){"use strict";var L=M("babel-runtime/core-js/object/create"),g=A(L);function A(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,x,w=function(d,r){for(var u in r)f.call(r,u)&&(d[u]=r[u]);function t(){this.constructor=d}return t.prototype=r.prototype,d.prototype=new t,d.__super__=r.prototype,d},f={}.hasOwnProperty;b=M("./NodeType"),y=M("./XMLCharacterData"),Y.exports=x=function(_){w(d,_);function d(r,u,t){if(d.__super__.constructor.call(this,r),u==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=b.ProcessingInstruction,this.target=this.stringify.insTarget(u),this.name=this.target,t&&(this.value=this.stringify.insValue(t))}return d.prototype.clone=function(){return(0,g.default)(this)},d.prototype.toString=function(r){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(r))},d.prototype.isEqualNode=function(r){return d.__super__.isEqualNode.apply(this,arguments).isEqualNode(r)?!(r.target!==this.target):!1},d}(y)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],276:[function(M,Y,o){"use strict";var L=M("babel-runtime/core-js/object/create"),g=A(L);function A(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,x,w=function(d,r){for(var u in r)f.call(r,u)&&(d[u]=r[u]);function t(){this.constructor=d}return t.prototype=r.prototype,d.prototype=new t,d.__super__=r.prototype,d},f={}.hasOwnProperty;b=M("./NodeType"),y=M("./XMLNode"),Y.exports=x=function(_){w(d,_);function d(r,u){if(d.__super__.constructor.call(this,r),u==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=b.Raw,this.value=this.stringify.raw(u)}return d.prototype.clone=function(){return(0,g.default)(this)},d.prototype.toString=function(r){return this.options.writer.raw(this,this.options.writer.filterOptions(r))},d}(y)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],277:[function(M,Y,o){"use strict";(function(){var L,g,A,b,y=function(f,_){for(var d in _)x.call(_,d)&&(f[d]=_[d]);function r(){this.constructor=f}return r.prototype=_.prototype,f.prototype=new r,f.__super__=_.prototype,f},x={}.hasOwnProperty;L=M("./NodeType"),b=M("./XMLWriterBase"),g=M("./WriterState"),Y.exports=A=function(w){y(f,w);function f(_,d){this.stream=_,f.__super__.constructor.call(this,d)}return f.prototype.endline=function(_,d,r){return _.isLastRootNode&&d.state===g.CloseTag?"":f.__super__.endline.call(this,_,d,r)},f.prototype.document=function(_,d){var r,u,t,a,n,i,h,l,s;for(h=_.children,u=t=0,n=h.length;t<n;u=++t)r=h[u],r.isLastRootNode=u===_.children.length-1;for(d=this.filterOptions(d),l=_.children,s=[],a=0,i=l.length;a<i;a++)r=l[a],s.push(this.writeChildNode(r,d,0));return s},f.prototype.attribute=function(_,d,r){return this.stream.write(f.__super__.attribute.call(this,_,d,r))},f.prototype.cdata=function(_,d,r){return this.stream.write(f.__super__.cdata.call(this,_,d,r))},f.prototype.comment=function(_,d,r){return this.stream.write(f.__super__.comment.call(this,_,d,r))},f.prototype.declaration=function(_,d,r){return this.stream.write(f.__super__.declaration.call(this,_,d,r))},f.prototype.docType=function(_,d,r){var u,t,a,n;if(r||(r=0),this.openNode(_,d,r),d.state=g.OpenTag,this.stream.write(this.indent(_,d,r)),this.stream.write("<!DOCTYPE "+_.root().name),_.pubID&&_.sysID?this.stream.write(' PUBLIC "'+_.pubID+'" "'+_.sysID+'"'):_.sysID&&this.stream.write(' SYSTEM "'+_.sysID+'"'),_.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(_,d,r)),d.state=g.InsideTag,n=_.children,t=0,a=n.length;t<a;t++)u=n[t],this.writeChildNode(u,d,r+1);d.state=g.CloseTag,this.stream.write("]")}return d.state=g.CloseTag,this.stream.write(d.spaceBeforeSlash+">"),this.stream.write(this.endline(_,d,r)),d.state=g.None,this.closeNode(_,d,r)},f.prototype.element=function(_,d,r){var u,t,a,n,i,h,l,s,p,O;r||(r=0),this.openNode(_,d,r),d.state=g.OpenTag,this.stream.write(this.indent(_,d,r)+"<"+_.name),p=_.attribs;for(l in p){if(!x.call(p,l))continue;u=p[l],this.attribute(u,d,r)}if(a=_.children.length,n=a===0?null:_.children[0],a===0||_.children.every(function(S){return(S.type===L.Text||S.type===L.Raw)&&S.value===""}))d.allowEmpty?(this.stream.write(">"),d.state=g.CloseTag,this.stream.write("</"+_.name+">")):(d.state=g.CloseTag,this.stream.write(d.spaceBeforeSlash+"/>"));else if(d.pretty&&a===1&&(n.type===L.Text||n.type===L.Raw)&&n.value!=null)this.stream.write(">"),d.state=g.InsideTag,d.suppressPrettyCount++,s=!0,this.writeChildNode(n,d,r+1),d.suppressPrettyCount--,s=!1,d.state=g.CloseTag,this.stream.write("</"+_.name+">");else{for(this.stream.write(">"+this.endline(_,d,r)),d.state=g.InsideTag,O=_.children,i=0,h=O.length;i<h;i++)t=O[i],this.writeChildNode(t,d,r+1);d.state=g.CloseTag,this.stream.write(this.indent(_,d,r)+"</"+_.name+">")}return this.stream.write(this.endline(_,d,r)),d.state=g.None,this.closeNode(_,d,r)},f.prototype.processingInstruction=function(_,d,r){return this.stream.write(f.__super__.processingInstruction.call(this,_,d,r))},f.prototype.raw=function(_,d,r){return this.stream.write(f.__super__.raw.call(this,_,d,r))},f.prototype.text=function(_,d,r){return this.stream.write(f.__super__.text.call(this,_,d,r))},f.prototype.dtdAttList=function(_,d,r){return this.stream.write(f.__super__.dtdAttList.call(this,_,d,r))},f.prototype.dtdElement=function(_,d,r){return this.stream.write(f.__super__.dtdElement.call(this,_,d,r))},f.prototype.dtdEntity=function(_,d,r){return this.stream.write(f.__super__.dtdEntity.call(this,_,d,r))},f.prototype.dtdNotation=function(_,d,r){return this.stream.write(f.__super__.dtdNotation.call(this,_,d,r))},f}(b)}).call(void 0)},{"./NodeType":251,"./WriterState":253,"./XMLWriterBase":281}],278:[function(M,Y,o){"use strict";(function(){var L,g,A=function(x,w){for(var f in w)b.call(w,f)&&(x[f]=w[f]);function _(){this.constructor=x}return _.prototype=w.prototype,x.prototype=new _,x.__super__=w.prototype,x},b={}.hasOwnProperty;g=M("./XMLWriterBase"),Y.exports=L=function(y){A(x,y);function x(w){x.__super__.constructor.call(this,w)}return x.prototype.document=function(w,f){var _,d,r,u,t;for(f=this.filterOptions(f),u="",t=w.children,d=0,r=t.length;d<r;d++)_=t[d],u+=this.writeChildNode(_,f,0);return f.pretty&&u.slice(-f.newline.length)===f.newline&&(u=u.slice(0,-f.newline.length)),u},x}(g)}).call(void 0)},{"./XMLWriterBase":281}],279:[function(M,Y,o){"use strict";(function(){var L,g=function(y,x){return function(){return y.apply(x,arguments)}},A={}.hasOwnProperty;Y.exports=L=function(){function b(y){this.assertLegalName=g(this.assertLegalName,this),this.assertLegalChar=g(this.assertLegalChar,this);var x,w,f;y||(y={}),this.options=y,this.options.version||(this.options.version="1.0"),w=y.stringify||{};for(x in w){if(!A.call(w,x))continue;f=w[x],this[x]=f}}return b.prototype.name=function(y){return this.options.noValidation?y:this.assertLegalName(""+y||"")},b.prototype.text=function(y){return this.options.noValidation?y:this.assertLegalChar(this.textEscape(""+y||""))},b.prototype.cdata=function(y){return this.options.noValidation?y:(y=""+y||"",y=y.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(y))},b.prototype.comment=function(y){if(this.options.noValidation)return y;if(y=""+y||"",y.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+y);return this.assertLegalChar(y)},b.prototype.raw=function(y){return this.options.noValidation?y:""+y||""},b.prototype.attValue=function(y){return this.options.noValidation?y:this.assertLegalChar(this.attEscape(y=""+y||""))},b.prototype.insTarget=function(y){return this.options.noValidation?y:this.assertLegalChar(""+y||"")},b.prototype.insValue=function(y){if(this.options.noValidation)return y;if(y=""+y||"",y.match(/\?>/))throw new Error("Invalid processing instruction value: "+y);return this.assertLegalChar(y)},b.prototype.xmlVersion=function(y){if(this.options.noValidation)return y;if(y=""+y||"",!y.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+y);return y},b.prototype.xmlEncoding=function(y){if(this.options.noValidation)return y;if(y=""+y||"",!y.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+y);return this.assertLegalChar(y)},b.prototype.xmlStandalone=function(y){return this.options.noValidation?y:y?"yes":"no"},b.prototype.dtdPubID=function(y){return this.options.noValidation?y:this.assertLegalChar(""+y||"")},b.prototype.dtdSysID=function(y){return this.options.noValidation?y:this.assertLegalChar(""+y||"")},b.prototype.dtdElementValue=function(y){return this.options.noValidation?y:this.assertLegalChar(""+y||"")},b.prototype.dtdAttType=function(y){return this.options.noValidation?y:this.assertLegalChar(""+y||"")},b.prototype.dtdAttDefault=function(y){return this.options.noValidation?y:this.assertLegalChar(""+y||"")},b.prototype.dtdEntityValue=function(y){return this.options.noValidation?y:this.assertLegalChar(""+y||"")},b.prototype.dtdNData=function(y){return this.options.noValidation?y:this.assertLegalChar(""+y||"")},b.prototype.convertAttKey="@",b.prototype.convertPIKey="?",b.prototype.convertTextKey="#text",b.prototype.convertCDataKey="#cdata",b.prototype.convertCommentKey="#comment",b.prototype.convertRawKey="#raw",b.prototype.assertLegalChar=function(y){var x,w;if(this.options.noValidation)return y;if(x="",this.options.version==="1.0"){if(x=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,w=y.match(x))throw new Error("Invalid character in string: "+y+" at index "+w.index)}else if(this.options.version==="1.1"&&(x=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,w=y.match(x)))throw new Error("Invalid character in string: "+y+" at index "+w.index);return y},b.prototype.assertLegalName=function(y){var x;if(this.options.noValidation)return y;if(this.assertLegalChar(y),x=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!y.match(x))throw new Error("Invalid character in name");return y},b.prototype.textEscape=function(y){var x;return this.options.noValidation?y:(x=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,y.replace(x,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},b.prototype.attEscape=function(y){var x;return this.options.noValidation?y:(x=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,y.replace(x,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},b}()}).call(void 0)},{}],280:[function(M,Y,o){"use strict";var L=M("babel-runtime/core-js/object/create"),g=A(L);function A(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,x,w=function(d,r){for(var u in r)f.call(r,u)&&(d[u]=r[u]);function t(){this.constructor=d}return t.prototype=r.prototype,d.prototype=new t,d.__super__=r.prototype,d},f={}.hasOwnProperty;b=M("./NodeType"),y=M("./XMLCharacterData"),Y.exports=x=function(_){w(d,_);function d(r,u){if(d.__super__.constructor.call(this,r),u==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=b.Text,this.value=this.stringify.text(u)}return Object.defineProperty(d.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(d.prototype,"wholeText",{get:function(){var u,t,a;for(a="",t=this.previousSibling;t;)a=t.data+a,t=t.previousSibling;for(a+=this.data,u=this.nextSibling;u;)a=a+u.data,u=u.nextSibling;return a}}),d.prototype.clone=function(){return(0,g.default)(this)},d.prototype.toString=function(r){return this.options.writer.text(this,this.options.writer.filterOptions(r))},d.prototype.splitText=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())},d.prototype.replaceWholeText=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())},d}(y)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],281:[function(M,Y,o){"use strict";(function(){var L,g,A,b,y,x,w,f,_,d,r,u,t,a,n,i,h,l={}.hasOwnProperty;h=M("./Utility").assign,L=M("./NodeType"),_=M("./XMLDeclaration"),d=M("./XMLDocType"),A=M("./XMLCData"),b=M("./XMLComment"),u=M("./XMLElement"),a=M("./XMLRaw"),n=M("./XMLText"),t=M("./XMLProcessingInstruction"),r=M("./XMLDummy"),y=M("./XMLDTDAttList"),x=M("./XMLDTDElement"),w=M("./XMLDTDEntity"),f=M("./XMLDTDNotation"),g=M("./WriterState"),Y.exports=i=function(){function s(p){var O,S,v;p||(p={}),this.options=p,S=p.writer||{};for(O in S){if(!l.call(S,O))continue;v=S[O],this["_"+O]=this[O],this[O]=v}}return s.prototype.filterOptions=function(p){var O,S,v,P,R,E,C,m;return p||(p={}),p=h({},this.options,p),O={writer:this},O.pretty=p.pretty||!1,O.allowEmpty=p.allowEmpty||!1,O.indent=(S=p.indent)!=null?S:" ",O.newline=(v=p.newline)!=null?v:`
`,O.offset=(P=p.offset)!=null?P:0,O.dontPrettyTextNodes=(R=(E=p.dontPrettyTextNodes)!=null?E:p.dontprettytextnodes)!=null?R:0,O.spaceBeforeSlash=(C=(m=p.spaceBeforeSlash)!=null?m:p.spacebeforeslash)!=null?C:"",O.spaceBeforeSlash===!0&&(O.spaceBeforeSlash=" "),O.suppressPrettyCount=0,O.user={},O.state=g.None,O},s.prototype.indent=function(p,O,S){var v;return!O.pretty||O.suppressPrettyCount?"":O.pretty&&(v=(S||0)+O.offset+1,v>0)?new Array(v).join(O.indent):""},s.prototype.endline=function(p,O,S){return!O.pretty||O.suppressPrettyCount?"":O.newline},s.prototype.attribute=function(p,O,S){var v;return this.openAttribute(p,O,S),v=" "+p.name+'="'+p.value+'"',this.closeAttribute(p,O,S),v},s.prototype.cdata=function(p,O,S){var v;return this.openNode(p,O,S),O.state=g.OpenTag,v=this.indent(p,O,S)+"<![CDATA[",O.state=g.InsideTag,v+=p.value,O.state=g.CloseTag,v+="]]>"+this.endline(p,O,S),O.state=g.None,this.closeNode(p,O,S),v},s.prototype.comment=function(p,O,S){var v;return this.openNode(p,O,S),O.state=g.OpenTag,v=this.indent(p,O,S)+"<!-- ",O.state=g.InsideTag,v+=p.value,O.state=g.CloseTag,v+=" -->"+this.endline(p,O,S),O.state=g.None,this.closeNode(p,O,S),v},s.prototype.declaration=function(p,O,S){var v;return this.openNode(p,O,S),O.state=g.OpenTag,v=this.indent(p,O,S)+"<?xml",O.state=g.InsideTag,v+=' version="'+p.version+'"',p.encoding!=null&&(v+=' encoding="'+p.encoding+'"'),p.standalone!=null&&(v+=' standalone="'+p.standalone+'"'),O.state=g.CloseTag,v+=O.spaceBeforeSlash+"?>",v+=this.endline(p,O,S),O.state=g.None,this.closeNode(p,O,S),v},s.prototype.docType=function(p,O,S){var v,P,R,E,C;if(S||(S=0),this.openNode(p,O,S),O.state=g.OpenTag,E=this.indent(p,O,S),E+="<!DOCTYPE "+p.root().name,p.pubID&&p.sysID?E+=' PUBLIC "'+p.pubID+'" "'+p.sysID+'"':p.sysID&&(E+=' SYSTEM "'+p.sysID+'"'),p.children.length>0){for(E+=" [",E+=this.endline(p,O,S),O.state=g.InsideTag,C=p.children,P=0,R=C.length;P<R;P++)v=C[P],E+=this.writeChildNode(v,O,S+1);O.state=g.CloseTag,E+="]"}return O.state=g.CloseTag,E+=O.spaceBeforeSlash+">",E+=this.endline(p,O,S),O.state=g.None,this.closeNode(p,O,S),E},s.prototype.element=function(p,O,S){var v,P,R,E,C,m,T,I,D,N,z,F,W,K;S||(S=0),N=!1,z="",this.openNode(p,O,S),O.state=g.OpenTag,z+=this.indent(p,O,S)+"<"+p.name,F=p.attribs;for(D in F){if(!l.call(F,D))continue;v=F[D],z+=this.attribute(v,O,S)}if(R=p.children.length,E=R===0?null:p.children[0],R===0||p.children.every(function(B){return(B.type===L.Text||B.type===L.Raw)&&B.value===""}))O.allowEmpty?(z+=">",O.state=g.CloseTag,z+="</"+p.name+">"+this.endline(p,O,S)):(O.state=g.CloseTag,z+=O.spaceBeforeSlash+"/>"+this.endline(p,O,S));else if(O.pretty&&R===1&&(E.type===L.Text||E.type===L.Raw)&&E.value!=null)z+=">",O.state=g.InsideTag,O.suppressPrettyCount++,N=!0,z+=this.writeChildNode(E,O,S+1),O.suppressPrettyCount--,N=!1,O.state=g.CloseTag,z+="</"+p.name+">"+this.endline(p,O,S);else{if(O.dontPrettyTextNodes){for(W=p.children,C=0,T=W.length;C<T;C++)if(P=W[C],(P.type===L.Text||P.type===L.Raw)&&P.value!=null){O.suppressPrettyCount++,N=!0;break}}for(z+=">"+this.endline(p,O,S),O.state=g.InsideTag,K=p.children,m=0,I=K.length;m<I;m++)P=K[m],z+=this.writeChildNode(P,O,S+1);O.state=g.CloseTag,z+=this.indent(p,O,S)+"</"+p.name+">",N&&O.suppressPrettyCount--,z+=this.endline(p,O,S),O.state=g.None}return this.closeNode(p,O,S),z},s.prototype.writeChildNode=function(p,O,S){switch(p.type){case L.CData:return this.cdata(p,O,S);case L.Comment:return this.comment(p,O,S);case L.Element:return this.element(p,O,S);case L.Raw:return this.raw(p,O,S);case L.Text:return this.text(p,O,S);case L.ProcessingInstruction:return this.processingInstruction(p,O,S);case L.Dummy:return"";case L.Declaration:return this.declaration(p,O,S);case L.DocType:return this.docType(p,O,S);case L.AttributeDeclaration:return this.dtdAttList(p,O,S);case L.ElementDeclaration:return this.dtdElement(p,O,S);case L.EntityDeclaration:return this.dtdEntity(p,O,S);case L.NotationDeclaration:return this.dtdNotation(p,O,S);default:throw new Error("Unknown XML node type: "+p.constructor.name)}},s.prototype.processingInstruction=function(p,O,S){var v;return this.openNode(p,O,S),O.state=g.OpenTag,v=this.indent(p,O,S)+"<?",O.state=g.InsideTag,v+=p.target,p.value&&(v+=" "+p.value),O.state=g.CloseTag,v+=O.spaceBeforeSlash+"?>",v+=this.endline(p,O,S),O.state=g.None,this.closeNode(p,O,S),v},s.prototype.raw=function(p,O,S){var v;return this.openNode(p,O,S),O.state=g.OpenTag,v=this.indent(p,O,S),O.state=g.InsideTag,v+=p.value,O.state=g.CloseTag,v+=this.endline(p,O,S),O.state=g.None,this.closeNode(p,O,S),v},s.prototype.text=function(p,O,S){var v;return this.openNode(p,O,S),O.state=g.OpenTag,v=this.indent(p,O,S),O.state=g.InsideTag,v+=p.value,O.state=g.CloseTag,v+=this.endline(p,O,S),O.state=g.None,this.closeNode(p,O,S),v},s.prototype.dtdAttList=function(p,O,S){var v;return this.openNode(p,O,S),O.state=g.OpenTag,v=this.indent(p,O,S)+"<!ATTLIST",O.state=g.InsideTag,v+=" "+p.elementName+" "+p.attributeName+" "+p.attributeType,p.defaultValueType!=="#DEFAULT"&&(v+=" "+p.defaultValueType),p.defaultValue&&(v+=' "'+p.defaultValue+'"'),O.state=g.CloseTag,v+=O.spaceBeforeSlash+">"+this.endline(p,O,S),O.state=g.None,this.closeNode(p,O,S),v},s.prototype.dtdElement=function(p,O,S){var v;return this.openNode(p,O,S),O.state=g.OpenTag,v=this.indent(p,O,S)+"<!ELEMENT",O.state=g.InsideTag,v+=" "+p.name+" "+p.value,O.state=g.CloseTag,v+=O.spaceBeforeSlash+">"+this.endline(p,O,S),O.state=g.None,this.closeNode(p,O,S),v},s.prototype.dtdEntity=function(p,O,S){var v;return this.openNode(p,O,S),O.state=g.OpenTag,v=this.indent(p,O,S)+"<!ENTITY",O.state=g.InsideTag,p.pe&&(v+=" %"),v+=" "+p.name,p.value?v+=' "'+p.value+'"':(p.pubID&&p.sysID?v+=' PUBLIC "'+p.pubID+'" "'+p.sysID+'"':p.sysID&&(v+=' SYSTEM "'+p.sysID+'"'),p.nData&&(v+=" NDATA "+p.nData)),O.state=g.CloseTag,v+=O.spaceBeforeSlash+">"+this.endline(p,O,S),O.state=g.None,this.closeNode(p,O,S),v},s.prototype.dtdNotation=function(p,O,S){var v;return this.openNode(p,O,S),O.state=g.OpenTag,v=this.indent(p,O,S)+"<!NOTATION",O.state=g.InsideTag,v+=" "+p.name,p.pubID&&p.sysID?v+=' PUBLIC "'+p.pubID+'" "'+p.sysID+'"':p.pubID?v+=' PUBLIC "'+p.pubID+'"':p.sysID&&(v+=' SYSTEM "'+p.sysID+'"'),O.state=g.CloseTag,v+=O.spaceBeforeSlash+">"+this.endline(p,O,S),O.state=g.None,this.closeNode(p,O,S),v},s.prototype.openNode=function(p,O,S){},s.prototype.closeNode=function(p,O,S){},s.prototype.openAttribute=function(p,O,S){},s.prototype.closeAttribute=function(p,O,S){},s}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],282:[function(M,Y,o){"use strict";(function(){var L,g,A,b,y,x,w,f,_,d;d=M("./Utility"),f=d.assign,_=d.isFunction,A=M("./XMLDOMImplementation"),b=M("./XMLDocument"),y=M("./XMLDocumentCB"),w=M("./XMLStringWriter"),x=M("./XMLStreamWriter"),L=M("./NodeType"),g=M("./WriterState"),Y.exports.create=function(r,u,t,a){var n,i;if(r==null)throw new Error("Root element needs a name.");return a=f({},u,t,a),n=new b(a),i=n.element(r),a.headless||(n.declaration(a),(a.pubID!=null||a.sysID!=null)&&n.dtd(a)),i},Y.exports.begin=function(r,u,t){var a;return _(r)&&(a=[r,u],u=a[0],t=a[1],r={}),u?new y(r,u,t):new b(r)},Y.exports.stringWriter=function(r){return new w(r)},Y.exports.streamWriter=function(r,u){return new x(r,u)},Y.exports.implementation=new A,Y.exports.nodeType=L,Y.exports.writerState=g}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLDOMImplementation":260,"./XMLDocument":268,"./XMLDocumentCB":269,"./XMLStreamWriter":277,"./XMLStringWriter":278}],283:[function(M,Y,o){Y.exports=g;var L=Object.prototype.hasOwnProperty;function g(){for(var A={},b=0;b<arguments.length;b++){var y=arguments[b];for(var x in y)L.call(y,x)&&(A[x]=y[x])}return A}},{}],284:[function(M,Y,o){"use strict";var L=M("buffer").Buffer,g=M("./sha"),A=M("./md5"),b={sha1:g,md5:A},y=64,x=L.alloc(y);x.fill(0);function w(d,r,u){L.isBuffer(r)||(r=L.from(r)),L.isBuffer(u)||(u=L.from(u)),r.length>y?r=d(r):r.length<y&&(r=L.concat([r,x],y));for(var t=L.alloc(y),a=L.alloc(y),n=0;n<y;n++)t[n]=r[n]^54,a[n]=r[n]^92;var i=d(L.concat([t,u]));return d(L.concat([a,i]))}function f(d,r){d=d||"sha1";var u=b[d],t=[],a=0;return u||_("algorithm:",d,"is not yet supported"),{update:function(i){return L.isBuffer(i)||(i=L.from(i)),t.push(i),a+=i.length,this},digest:function(i){var h=L.concat(t),l=r?w(u,r,h):u(h);return t=null,i?l.toString(i):l}}}function _(){var d=[].slice.call(arguments).join(" ");throw new Error([d,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}o.createHash=function(d){return f(d)},o.createHmac=function(d,r){return f(d,r)},o.createCredentials=function(){_("sorry,createCredentials is not implemented yet")},o.createCipher=function(){_("sorry,createCipher is not implemented yet")},o.createCipheriv=function(){_("sorry,createCipheriv is not implemented yet")},o.createDecipher=function(){_("sorry,createDecipher is not implemented yet")},o.createDecipheriv=function(){_("sorry,createDecipheriv is not implemented yet")},o.createSign=function(){_("sorry,createSign is not implemented yet")},o.createVerify=function(){_("sorry,createVerify is not implemented yet")},o.createDiffieHellman=function(){_("sorry,createDiffieHellman is not implemented yet")},o.pbkdf2=function(){_("sorry,pbkdf2 is not implemented yet")}},{"./md5":286,"./sha":287,buffer:73}],285:[function(M,Y,o){"use strict";var L=M("buffer").Buffer,g=4,A=L.alloc(g);A.fill(0);var b=8;function y(f,_){if(f.length%g!==0){var d=f.length+(g-f.length%g);f=L.concat([f,A],d)}for(var r=[],u=_?f.readInt32BE:f.readInt32LE,t=0;t<f.length;t+=g)r.push(u.call(f,t));return r}function x(f,_,d){for(var r=L.alloc(_),u=d?r.writeInt32BE:r.writeInt32LE,t=0;t<f.length;t++)u.call(r,f[t],t*4,!0);return r}function w(f,_,d,r){L.isBuffer(f)||(f=L.from(f));var u=_(y(f,r),f.length*b);return x(u,d,r)}Y.exports={hash:w}},{buffer:73}],286:[function(M,Y,o){"use strict";var L=M("./helpers");function g(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function A(r,u){r[u>>5]|=128<<u%32,r[(u+64>>>9<<4)+14]=u;for(var t=1732584193,a=-271733879,n=-1732584194,i=271733878,h=0;h<r.length;h+=16){var l=t,s=a,p=n,O=i;t=y(t,a,n,i,r[h+0],7,-680876936),i=y(i,t,a,n,r[h+1],12,-389564586),n=y(n,i,t,a,r[h+2],17,606105819),a=y(a,n,i,t,r[h+3],22,-1044525330),t=y(t,a,n,i,r[h+4],7,-176418897),i=y(i,t,a,n,r[h+5],12,1200080426),n=y(n,i,t,a,r[h+6],17,-1473231341),a=y(a,n,i,t,r[h+7],22,-45705983),t=y(t,a,n,i,r[h+8],7,1770035416),i=y(i,t,a,n,r[h+9],12,-1958414417),n=y(n,i,t,a,r[h+10],17,-42063),a=y(a,n,i,t,r[h+11],22,-1990404162),t=y(t,a,n,i,r[h+12],7,1804603682),i=y(i,t,a,n,r[h+13],12,-40341101),n=y(n,i,t,a,r[h+14],17,-1502002290),a=y(a,n,i,t,r[h+15],22,1236535329),t=x(t,a,n,i,r[h+1],5,-165796510),i=x(i,t,a,n,r[h+6],9,-1069501632),n=x(n,i,t,a,r[h+11],14,643717713),a=x(a,n,i,t,r[h+0],20,-373897302),t=x(t,a,n,i,r[h+5],5,-701558691),i=x(i,t,a,n,r[h+10],9,38016083),n=x(n,i,t,a,r[h+15],14,-660478335),a=x(a,n,i,t,r[h+4],20,-405537848),t=x(t,a,n,i,r[h+9],5,568446438),i=x(i,t,a,n,r[h+14],9,-1019803690),n=x(n,i,t,a,r[h+3],14,-187363961),a=x(a,n,i,t,r[h+8],20,1163531501),t=x(t,a,n,i,r[h+13],5,-1444681467),i=x(i,t,a,n,r[h+2],9,-51403784),n=x(n,i,t,a,r[h+7],14,1735328473),a=x(a,n,i,t,r[h+12],20,-1926607734),t=w(t,a,n,i,r[h+5],4,-378558),i=w(i,t,a,n,r[h+8],11,-2022574463),n=w(n,i,t,a,r[h+11],16,1839030562),a=w(a,n,i,t,r[h+14],23,-35309556),t=w(t,a,n,i,r[h+1],4,-1530992060),i=w(i,t,a,n,r[h+4],11,1272893353),n=w(n,i,t,a,r[h+7],16,-155497632),a=w(a,n,i,t,r[h+10],23,-1094730640),t=w(t,a,n,i,r[h+13],4,681279174),i=w(i,t,a,n,r[h+0],11,-358537222),n=w(n,i,t,a,r[h+3],16,-722521979),a=w(a,n,i,t,r[h+6],23,76029189),t=w(t,a,n,i,r[h+9],4,-640364487),i=w(i,t,a,n,r[h+12],11,-421815835),n=w(n,i,t,a,r[h+15],16,530742520),a=w(a,n,i,t,r[h+2],23,-995338651),t=f(t,a,n,i,r[h+0],6,-198630844),i=f(i,t,a,n,r[h+7],10,1126891415),n=f(n,i,t,a,r[h+14],15,-1416354905),a=f(a,n,i,t,r[h+5],21,-57434055),t=f(t,a,n,i,r[h+12],6,1700485571),i=f(i,t,a,n,r[h+3],10,-1894986606),n=f(n,i,t,a,r[h+10],15,-1051523),a=f(a,n,i,t,r[h+1],21,-2054922799),t=f(t,a,n,i,r[h+8],6,1873313359),i=f(i,t,a,n,r[h+15],10,-30611744),n=f(n,i,t,a,r[h+6],15,-1560198380),a=f(a,n,i,t,r[h+13],21,1309151649),t=f(t,a,n,i,r[h+4],6,-145523070),i=f(i,t,a,n,r[h+11],10,-1120210379),n=f(n,i,t,a,r[h+2],15,718787259),a=f(a,n,i,t,r[h+9],21,-343485551),t=_(t,l),a=_(a,s),n=_(n,p),i=_(i,O)}return Array(t,a,n,i)}function b(r,u,t,a,n,i){return _(d(_(_(u,r),_(a,i)),n),t)}function y(r,u,t,a,n,i,h){return b(u&t|~u&a,r,u,n,i,h)}function x(r,u,t,a,n,i,h){return b(u&a|t&~a,r,u,n,i,h)}function w(r,u,t,a,n,i,h){return b(u^t^a,r,u,n,i,h)}function f(r,u,t,a,n,i,h){return b(t^(u|~a),r,u,n,i,h)}function _(r,u){var t=(r&65535)+(u&65535),a=(r>>16)+(u>>16)+(t>>16);return a<<16|t&65535}function d(r,u){return r<<u|r>>>32-u}Y.exports=function(u){return L.hash(u,A,16)}},{"./helpers":285}],287:[function(M,Y,o){"use strict";var L=M("./helpers");function g(w,f){w[f>>5]|=128<<24-f%32,w[(f+64>>9<<4)+15]=f;for(var _=Array(80),d=1732584193,r=-271733879,u=-1732584194,t=271733878,a=-1009589776,n=0;n<w.length;n+=16){for(var i=d,h=r,l=u,s=t,p=a,O=0;O<80;O++){O<16?_[O]=w[n+O]:_[O]=x(_[O-3]^_[O-8]^_[O-14]^_[O-16],1);var S=y(y(x(d,5),A(O,r,u,t)),y(y(a,_[O]),b(O)));a=t,t=u,u=x(r,30),r=d,d=S}d=y(d,i),r=y(r,h),u=y(u,l),t=y(t,s),a=y(a,p)}return Array(d,r,u,t,a)}function A(w,f,_,d){return w<20?f&_|~f&d:w<40?f^_^d:w<60?f&_|f&d|_&d:f^_^d}function b(w){return w<20?1518500249:w<40?1859775393:w<60?-1894007588:-899497514}function y(w,f){var _=(w&65535)+(f&65535),d=(w>>16)+(f>>16)+(_>>16);return d<<16|_&65535}function x(w,f){return w<<f|w>>>32-f}Y.exports=function(f){return L.hash(f,g,20,!0)}},{"./helpers":285}],288:[function(M,Y,o){"use strict";Y.exports=function(){return function(){}}},{}],289:[function(M,Y,o){(function(L){"use strict";var g=M("babel-runtime/helpers/typeof"),A=b(g);function b(d){return d&&d.__esModule?d:{default:d}}var y=M("stream"),x=y.Stream,w=M("../lib/common/utils/isArray"),f=w.isArray;Y.exports.string=function(r){return typeof r=="string"},Y.exports.array=f,Y.exports.buffer=L.isBuffer;function _(d){return d instanceof x}Y.exports.writableStream=function(r){return _(r)&&typeof r._write=="function"&&(0,A.default)(r._writableState)==="object"}}).call(this,{isBuffer:M("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":42,"../node_modules/is-buffer/index.js":197,"babel-runtime/helpers/typeof":67,stream:230}],290:[function(M,Y,o){"use strict";o.encodeURIComponent=function(L){try{return encodeURIComponent(L)}catch(g){return L}},o.escape=M("escape-html"),o.timestamp=function(g){if(g){var A=g;return typeof A=="string"&&(A=Number(A)),String(g).length===10&&(A*=1e3),new Date(A)}return Math.round(Date.now()/1e3)}},{"escape-html":191}],291:[function(M,Y,o){(function(L,g){"use strict";var A=M("babel-runtime/core-js/json/stringify"),b=w(A),y=M("babel-runtime/helpers/typeof"),x=w(y);function w(O){return O&&O.__esModule?O:{default:O}}var f=M("util"),_=M("url"),d=M("http"),r=M("https"),u=M("debug")("urllib"),t=M("humanize-ms"),a,n=0,i=Math.pow(2,31)-10,h=/^https?:\/\//i;function l(O,S){return O===void 0?S:O}function s(O,S){return function(v,P,R){if(v)return S(v);O({data:P,status:R.statusCode,headers:R.headers,res:R})}}o.TIMEOUTS=[t("300s"),t("300s")];var p=["json","text"];o.request=function(S,v,P){return arguments.length===2&&typeof v=="function"&&(P=v,v=null),typeof P=="function"?o.requestWithCallback(S,v,P):(a||(a=M("any-promise")),new a(function(R,E){o.requestWithCallback(S,v,s(R,E))}))},o.requestWithCallback=function(S,v,P){if(!S||typeof S!="string"&&(typeof S=="undefined"?"undefined":(0,x.default)(S))!=="object"){var R=f.format("expect request url to be a string or a http request options, but got %j",S);throw new Error(R)}arguments.length===2&&typeof v=="function"&&(P=v,v=null),v=v||{},n>=i&&(n=0);var E=++n;v.requestUrls=v.requestUrls||[];var C={requestId:E,url:S,args:v,ctx:v.ctx};v.emitter&&v.emitter.emit("request",C),v.timeout=v.timeout||o.TIMEOUTS,v.maxRedirects=v.maxRedirects||10,v.streaming=v.streaming||v.customResponse;var m=Date.now(),T;typeof S=="string"?(h.test(S)||(S="http://"+S),T=_.parse(S)):T=S;var I=(v.type||v.method||T.method||"GET").toUpperCase(),D=T.port||80,N=d,z=l(v.agent,o.agent),F=v.fixJSONCtlChars;T.protocol==="https:"&&(N=r,z=l(v.httpsAgent,o.httpsAgent),T.port||(D=443));var W={host:T.hostname||T.host||"localhost",path:T.path||"/",method:I,port:D,agent:z,headers:v.headers||{},lookup:v.lookup};Array.isArray(v.timeout)?W.requestTimeout=v.timeout[v.timeout.length-1]:typeof v.timeout!="undefined"&&(W.requestTimeout=v.timeout);for(var K=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],B=0;B<K.length;B++){var k=K[B];v.hasOwnProperty(k)&&(W[k]=v[k])}W.rejectUnauthorized===!1&&!W.hasOwnProperty("secureOptions")&&(W.secureOptions=M("constants").SSL_OP_NO_TLSv1_2);var G=v.auth||T.auth;G&&(W.auth=G);var ne=v.content||v.data,fe=I==="GET"||I==="HEAD"||v.dataAsQueryString;if(!v.content&&(ne&&!(typeof ne=="string"||g.isBuffer(ne))))if(fe)ne=v.nestedQuerystring?qs.stringify(ne):querystring.stringify(ne);else{var de=W.headers["Content-Type"]||W.headers["content-type"];de||(v.contentType==="json"?de="application/json":de="application/x-www-form-urlencoded",W.headers["Content-Type"]=de),parseContentType(de).type==="application/json"?ne=(0,b.default)(ne):ne=v.nestedQuerystring?qs.stringify(ne):querystring.stringify(ne)}fe&&ne&&(W.path+=(T.query?"&":"?")+ne,ne=null);var xe=0;if(ne){var Oe=ne.length;g.isBuffer(ne)||(Oe=g.byteLength(ne)),xe=W.headers["Content-Length"]=Oe}v.dataType==="json"&&(W.headers.Accept="application/json"),typeof v.beforeRequest=="function"&&v.beforeRequest(W);var ce=null,be=null,ve=null,ue=!1,se=!1,q=0,me=-1,re=!1,ie="",we="",le=null;v.timing&&(le={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function $(){ce&&(clearTimeout(ce),ce=null)}function J(){be&&(clearTimeout(be),be=null)}function te(Ue,ft,kt){if(J(),!P){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),E,L.pid,W.method,S),Ue&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),E,L.pid,Ue.name,Ue.message,Ue.stack);return}var ht=P;P=null;var _t={};if(kt&&(me=kt.statusCode,_t=kt.headers),me===401&&_t["www-authenticate"]&&(!v.headers||!v.headers.Authorization)&&v.digestAuth){var Qe=_t["www-authenticate"];if(Qe.indexOf("Digest ")>=0)return u("Request#%d %s: got digest auth header WWW-Authenticate: %s",E,S,Qe),v.headers=v.headers||{},v.headers.Authorization=digestAuthHeader(W.method,W.path,Qe,v.digestAuth),u("Request#%d %s: auth with digest header: %s",E,S,v.headers.Authorization),kt.headers["set-cookie"]&&(v.headers.Cookie=kt.headers["set-cookie"].join(";")),o.requestWithCallback(S,v,ht)}var He=Date.now()-m;le&&(le.contentDownload=He),u("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",He,q,me,W.method,W.host,W.path,se,le);var Ge={status:me,statusCode:me,headers:_t,size:q,aborted:re,rt:He,keepAliveSocket:se,data:ft,requestUrls:v.requestUrls,timing:le,remoteAddress:ie,remotePort:we};if(Ue){var Ee="";z&&typeof z.getCurrentStatus=="function"&&(Ee=", agent status: "+(0,b.default)(z.getCurrentStatus())),Ue.message+=", "+W.method+" "+S+" "+me+" (connected: "+ue+", keepalive socket: "+se+Ee+`)
headers: `+(0,b.default)(_t),Ue.data=ft,Ue.path=W.path,Ue.status=me,Ue.headers=_t,Ue.res=Ge}ht(Ue,ft,v.streaming?kt:Ge),v.emitter&&(C.url=S,C.socket=St&&St.connection,C.options=W,C.size=xe,v.emitter.emit("response",{requestId:E,error:Ue,ctx:v.ctx,req:C,res:Ge}))}function De(Ue){var ft=null;if(v.followRedirect&&statuses.redirect[Ue.statusCode]){v._followRedirectCount=(v._followRedirectCount||0)+1;var kt=Ue.headers.location;if(!kt)ft=new Error("Got statusCode "+Ue.statusCode+" but cannot resolve next location from headers"),ft.name="FollowRedirectError";else if(v._followRedirectCount>v.maxRedirects)ft=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+S),ft.name="MaxRedirectError";else{var ht=v.formatRedirectUrl?v.formatRedirectUrl(S,kt):_.resolve(S,kt);u("Request#%d %s: `redirected` from %s to %s",E,W.path,S,ht),J(),v.headers&&v.headers.Host&&h.test(kt)&&(v.headers.Host=null);var _t=P;return P=null,o.requestWithCallback(ht,v,_t),{redirect:!0,error:null}}}return{redirect:!1,error:ft}}!W.headers["User-Agent"]&&!W.headers["user-agent"]&&(W.headers["User-Agent"]=navigator.userAgent),v.gzip&&(!W.headers["Accept-Encoding"]&&!W.headers["accept-encoding"]&&(W.headers["Accept-Encoding"]="gzip"));function Te(Ue,ft,kt){var ht=Ue.headers["content-encoding"];return kt(null,ft,ht)}var ke=v.writeStream;u("Request#%d %s %s with headers %j, options.path: %s",E,I,S,W.headers,W.path),v.requestUrls.push(S);function tt(Ue){if(le&&(le.waiting=Date.now()-m),u("Request#%d %s `req response` event emit: status %d, headers: %j",E,S,Ue.statusCode,Ue.headers),v.streaming){var ft=De(Ue);if(ft.redirect){Ue.resume();return}return ft.error?(Ue.resume(),te(ft.error,null,Ue)):te(null,null,Ue)}if(Ue.on("close",function(){u("Request#%d %s: `res close` event emit, total size %d",E,S,q)}),Ue.on("error",function(){u("Request#%d %s: `res error` event emit, total size %d",E,S,q)}),Ue.on("aborted",function(){re=!0,u("Request#%d %s: `res aborted` event emit, total size %d",E,S,q)}),ke){var ft=De(Ue);if(ft.redirect){Ue.resume();return}return ft.error?(Ue.resume(),ke.end(),te(ft.error,null,Ue)):(v.consumeWriteStream===!1?Ue.on("end",te.bind(null,null,null,Ue)):isNode010||isNode012?first([[ke,"close"],[Ue,"aborted"]],function(_t,Qe,He){u("Request#%d %s: writeStream or res %s event emitted",E,S,He),te(ve||null,null,Ue)}):ke.on("close",function(){u("Request#%d %s: writeStream close event emitted",E,S),te(ve||null,null,Ue)}),Ue.pipe(ke))}var kt=[];Ue.on("data",function(ht){u("Request#%d %s: `res data` event emit, size %d",E,S,ht.length),q+=ht.length,kt.push(ht)}),Ue.on("end",function(){var ht=g.concat(kt,q);if(u("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",E,S,q,Ue._dumped),ve)return te(ve,ht,Ue);var _t=De(Ue);if(_t.error)return te(_t.error,ht,Ue);if(_t.redirect)return;Te(Ue,ht,function(Qe,He,Ge){if(Qe)return te(Qe,ht,Ue);if(!Ge&&p.indexOf(v.dataType)>=0){try{He=decodeBodyByCharset(He,Ue)}catch(Ae){return u("decodeBodyByCharset error: %s",Ae),te(null,He,Ue)}if(v.dataType==="json")if(q===0)He=null;else{var Ee=parseJSON(He,F);Ee.error?Qe=Ee.error:He=Ee.data}}re&&u("Request#%d %s: Remote socket was terminated before `response.end()` was called",E,S),te(Qe,He,Ue)})})}var ot,gt;Array.isArray(v.timeout)?(ot=t(v.timeout[0]),gt=t(v.timeout[1])):ot=gt=t(v.timeout),u("ConnectTimeout: %d, ResponseTimeout: %d",ot,gt);function Et(){u("Connect timer ticking, timeout: %d",ot),ce=setTimeout(function(){ce=null,me===-1&&(me=-2);var Ue="Connect timeout for "+ot+"ms",ft="ConnectionTimeoutError";St.socket||(ft="SocketAssignTimeoutError",Ue+=", working sockets is full"),ve=new Error(Ue),ve.name=ft,ve.requestId=E,u("ConnectTimeout: Request#%d %s %s: %s, connected: %s",E,S,ve.name,Ue,ue),Je()},ot)}function xt(){u("Response timer ticking, timeout: %d",gt),be=setTimeout(function(){be=null;var Ue="Response timeout for "+gt+"ms",ft="ResponseTimeoutError";ve=new Error(Ue),ve.name=ft,ve.requestId=E,u("ResponseTimeout: Request#%d %s %s: %s, connected: %s",E,S,ve.name,Ue,ue),Je()},gt)}var St;W.mode=v.mode?v.mode:"";try{St=N.request(W,tt)}catch(Ue){return te(Ue)}typeof window=="undefined"?Et():St.on("requestTimeout",function(){me===-1&&(me=-2);var Ue="Connect timeout for "+ot+"ms",ft="ConnectionTimeoutError";ve=new Error(Ue),ve.name=ft,ve.requestId=E,Je()});function Je(){u("Request#%d %s abort, connected: %s",E,S,ue),St.socket||(ve.noSocket=!0,te(ve)),St.abort()}return le&&St.on("finish",function(){le.requestSent=Date.now()-m}),St.once("socket",function(Ue){le&&(le.queuing=Date.now()-m),isNode010&&Ue.socket&&(Ue=Ue.socket);var ft=Ue.readyState;if(ft==="opening"){Ue.once("lookup",function(kt,ht,_t){u("Request#%d %s lookup: %s, %s, %s",E,S,kt,ht,_t),le&&(le.dnslookup=Date.now()-m),ht&&(ie=ht)}),Ue.once("connect",function(){le&&(le.connected=Date.now()-m),$(),xt(),u("Request#%d %s new socket connected",E,S),ue=!0,ie||(ie=Ue.remoteAddress),we=Ue.remotePort});return}u("Request#%d %s reuse socket connected, readyState: %s",E,S,ft),ue=!0,se=!0,ie||(ie=Ue.remoteAddress),we=Ue.remotePort,$(),xt()}),St.on("error",function(Ue){(Ue.name==="Error"||Ue.name==="TypeError")&&(Ue.name=ue?"ResponseError":"RequestError"),Ue.message+=' (req "error")',u("Request#%d %s `req error` event emit, %s: %s",E,S,Ue.name,Ue.message),te(ve||Ue)}),ke&&ke.once("error",function(Ue){Ue.message+=' (writeStream "error")',ve=Ue,u("Request#%d %s `writeStream error` event emit, %s: %s",E,S,Ue.name,Ue.message),Je()}),v.stream?(v.stream.pipe(St),v.stream.once("error",function(Ue){Ue.message+=' (stream "error")',ve=Ue,u("Request#%d %s `readStream error` event emit, %s: %s",E,S,Ue.name,Ue.message),Je()})):St.end(ne),St.requestId=E,St}}).call(this,M("_process"),M("buffer").Buffer)},{_process:208,"any-promise":49,"babel-runtime/core-js/json/stringify":53,"babel-runtime/helpers/typeof":67,buffer:73,constants:75,debug:288,http:231,https:193,"humanize-ms":194,url:238,util:243}]},{},[1])(1)})}).call(this,__webpack_require__("IyRk"))},n6Qo:function(M,Y,o){"use strict";o.d(Y,"a",function(){return f});var L=o("q1tI"),g=o("biw7"),A=o("fyJ8");function b(_){var d=_.className,r=_.index,u=_.children,t=_.colSpan,a=_.rowSpan,n=L.useContext(g.a),i=n.prefixCls,h=n.fixedInfoList,l=h[r];return L.createElement(A.a,Object.assign({className:d,index:r,component:"td",prefixCls:i,record:null,dataIndex:null,render:function(){return{children:u,props:{colSpan:t,rowSpan:a}}}},l))}function y(_){return L.createElement("tr",Object.assign({},_))}function x(_){var d=_.children,r=L.useContext(g.a),u=r.prefixCls;return L.createElement("tfoot",{className:"".concat(u,"-summary")},d)}var w=Y.b=x,f={Cell:b,Row:y}},nKGa:function(M,Y,o){M.exports=o.p+"static/export_exercise-template.f7655c19.png"},ngQI:function(M,Y,o){"use strict";o.d(Y,"a",function(){return jl}),o.d(Y,"b",function(){return Dl}),o.d(Y,"c",function(){return Rl});var L=o("q1tI"),g=o.n(L),A=o("dI71"),b=o("wx14"),y=o("ANjH"),x=o("/MKj");function w(X,Q){if(X.length!==Q.length)return!1;for(var ae=0;ae<X.length;ae++)if(X[ae]!==Q[ae])return!1;return!0}function f(X,Q){var ae=Object(L.useState)(function(){return{inputs:Q,result:X()}})[0],_e=Object(L.useRef)(!0),Le=Object(L.useRef)(ae),Ne=_e.current||Boolean(Q&&Le.current.inputs&&w(Q,Le.current.inputs)),ze=Ne?Le.current:{inputs:Q,result:X()};return Object(L.useEffect)(function(){_e.current=!1,Le.current=ze},[ze]),ze.result}function _(X,Q){return f(function(){return X},Q)}var d=f,r=_,u=o("9R94"),t=function(Q){var ae=Q.top,_e=Q.right,Le=Q.bottom,Ne=Q.left,ze=_e-Ne,Ve=Le-ae,Ct={top:ae,right:_e,bottom:Le,left:Ne,width:ze,height:Ve,x:Ne,y:ae,center:{x:(_e+Ne)/2,y:(Le+ae)/2}};return Ct},a=function(Q,ae){return{top:Q.top-ae.top,left:Q.left-ae.left,bottom:Q.bottom+ae.bottom,right:Q.right+ae.right}},n=function(Q,ae){return{top:Q.top+ae.top,left:Q.left+ae.left,bottom:Q.bottom-ae.bottom,right:Q.right-ae.right}},i=function(Q,ae){return{top:Q.top+ae.y,left:Q.left+ae.x,bottom:Q.bottom+ae.y,right:Q.right+ae.x}},h={top:0,right:0,bottom:0,left:0},l=function(Q){var ae=Q.borderBox,_e=Q.margin,Le=_e===void 0?h:_e,Ne=Q.border,ze=Ne===void 0?h:Ne,Ve=Q.padding,Ct=Ve===void 0?h:Ve,Ut=t(a(ae,Le)),Ft=t(n(ae,ze)),At=t(n(Ft,Ct));return{marginBox:Ut,borderBox:t(ae),paddingBox:Ft,contentBox:At,margin:Le,border:ze,padding:Ct}},s=function(Q){var ae=Q.slice(0,-2),_e=Q.slice(-2);if(_e!=="px")return 0;var Le=Number(ae);return isNaN(Le)&&Object(u.a)(!1),Le},p=function(){return{x:window.pageXOffset,y:window.pageYOffset}},O=function(Q,ae){var _e=Q.borderBox,Le=Q.border,Ne=Q.margin,ze=Q.padding,Ve=i(_e,ae);return l({borderBox:Ve,border:Le,margin:Ne,padding:ze})},S=function(Q,ae){return ae===void 0&&(ae=p()),O(Q,ae)},v=function(Q,ae){var _e={top:s(ae.marginTop),right:s(ae.marginRight),bottom:s(ae.marginBottom),left:s(ae.marginLeft)},Le={top:s(ae.paddingTop),right:s(ae.paddingRight),bottom:s(ae.paddingBottom),left:s(ae.paddingLeft)},Ne={top:s(ae.borderTopWidth),right:s(ae.borderRightWidth),bottom:s(ae.borderBottomWidth),left:s(ae.borderLeftWidth)};return l({borderBox:Q,margin:_e,padding:Le,border:Ne})},P=function(Q){var ae=Q.getBoundingClientRect(),_e=window.getComputedStyle(Q);return v(ae,_e)},R=Number.isNaN||function(Q){return typeof Q=="number"&&Q!==Q};function E(X,Q){return X===Q?!0:!!(R(X)&&R(Q))}function C(X,Q){if(X.length!==Q.length)return!1;for(var ae=0;ae<X.length;ae++)if(!E(X[ae],Q[ae]))return!1;return!0}function m(X,Q){Q===void 0&&(Q=C);var ae,_e=[],Le,Ne=!1;function ze(){for(var Ve=[],Ct=0;Ct<arguments.length;Ct++)Ve[Ct]=arguments[Ct];return Ne&&ae===this&&Q(Ve,_e)||(Le=X.apply(this,Ve),Ne=!0,ae=this,_e=Ve),Le}return ze}var T=m,I=function(Q){var ae=[],_e=null,Le=function(){for(var ze=arguments.length,Ve=new Array(ze),Ct=0;Ct<ze;Ct++)Ve[Ct]=arguments[Ct];if(ae=Ve,_e)return;_e=requestAnimationFrame(function(){_e=null,Q.apply(void 0,ae)})};return Le.cancel=function(){if(!_e)return;cancelAnimationFrame(_e),_e=null},Le},D=I,N=o("i8i4"),z=o.n(N),F=!0,W=/[ \t]{2,}/g,K=/^[ \t]*/gm,B=function(Q){return Q.replace(W," ").replace(K,"").trim()},k=function(Q){return B(`
%creact-beautiful-dnd
%c`+B(Q)+`
%c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
`)},G=function(Q){return[k(Q),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},ne="__react-beautiful-dnd-disable-dev-warnings";function fe(X,Q){var ae;if(F)return;if(typeof window!="undefined"&&window[ne])return;(ae=console)[X].apply(ae,G(Q))}var de=fe.bind(null,"warn"),xe=fe.bind(null,"error");function Oe(){}function ce(X,Q){return Object(b.a)({},X,{},Q)}function be(X,Q,ae){var _e=Q.map(function(Le){var Ne=ce(ae,Le.options);return X.addEventListener(Le.eventName,Le.fn,Ne),function(){X.removeEventListener(Le.eventName,Le.fn,Ne)}});return function(){_e.forEach(function(Ne){Ne()})}}var ve=!0,ue="Invariant failed";function se(X){this.message=X}se.prototype.toString=function(){return this.message};function q(X,Q){if(X)return;throw ve?new se(ue):new se(ue+": "+(Q||""))}var me=function(X){Object(A.a)(Q,X);function Q(){for(var _e,Le=arguments.length,Ne=new Array(Le),ze=0;ze<Le;ze++)Ne[ze]=arguments[ze];return _e=X.call.apply(X,[this].concat(Ne))||this,_e.callbacks=null,_e.unbind=Oe,_e.onWindowError=function(Ve){var Ct=_e.getCallbacks();Ct.isDragging()&&Ct.tryAbort();var Ut=Ve.error;Ut instanceof se&&Ve.preventDefault()},_e.getCallbacks=function(){if(!_e.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return _e.callbacks},_e.setCallbacks=function(Ve){_e.callbacks=Ve},_e}var ae=Q.prototype;return ae.componentDidMount=function(){this.unbind=be(window,[{eventName:"error",fn:this.onWindowError}])},ae.componentWillUnmount=function(){this.unbind()},ae.componentDidCatch=function(Le){if(Le instanceof se){this.setState({});return}throw Le},ae.render=function(){return this.props.children(this.setCallbacks)},Q}(g.a.Component),re=`
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
`,ie=function(Q){return Q+1},we=function(Q){return`
You have lifted an item in position `+ie(Q.source.index)+`
`},le=function(Q,ae){var _e=Q.droppableId===ae.droppableId,Le=ie(Q.index),Ne=ie(ae.index);return _e?`
You have moved the item from position `+Le+`
to position `+Ne+`
`:`
You have moved the item from position `+Le+`
in list `+Q.droppableId+`
to list `+ae.droppableId+`
in position `+Ne+`
`},$=function(Q,ae,_e){var Le=ae.droppableId===_e.droppableId;return Le?`
The item `+Q+`
has been combined with `+_e.draggableId:`
The item `+Q+`
in list `+ae.droppableId+`
has been combined with `+_e.draggableId+`
in list `+_e.droppableId+`
`},J=function(Q){var ae=Q.destination;if(ae)return le(Q.source,ae);var _e=Q.combine;return _e?$(Q.draggableId,Q.source,_e):"You are over an area that cannot be dropped on"},te=function(Q){return`
The item has returned to its starting position
of `+ie(Q.index)+`
`},De=function(Q){if(Q.reason==="CANCEL")return`
Movement cancelled.
`+te(Q.source)+`
`;var ae=Q.destination,_e=Q.combine;return ae?`
You have dropped the item.
`+le(Q.source,ae)+`
`:_e?`
You have dropped the item.
`+$(Q.draggableId,Q.source,_e)+`
`:`
The item has been dropped while not over a drop area.
`+te(Q.source)+`
`},Te={dragHandleUsageInstructions:re,onDragStart:we,onDragUpdate:J,onDragEnd:De},ke={x:0,y:0},tt=function(Q,ae){return{x:Q.x+ae.x,y:Q.y+ae.y}},ot=function(Q,ae){return{x:Q.x-ae.x,y:Q.y-ae.y}},gt=function(Q,ae){return Q.x===ae.x&&Q.y===ae.y},Et=function(Q){return{x:Q.x!==0?-Q.x:0,y:Q.y!==0?-Q.y:0}},xt=function(Q,ae,_e){var Le;return _e===void 0&&(_e=0),Le={},Le[Q]=ae,Le[Q==="x"?"y":"x"]=_e,Le},St=function(Q,ae){return Math.sqrt(Math.pow(ae.x-Q.x,2)+Math.pow(ae.y-Q.y,2))},Je=function(Q,ae){return Math.min.apply(Math,ae.map(function(_e){return St(Q,_e)}))},Ue=function(Q){return function(ae){return{x:Q(ae.x),y:Q(ae.y)}}},ft=function(X,Q){var ae=t({top:Math.max(Q.top,X.top),right:Math.min(Q.right,X.right),bottom:Math.min(Q.bottom,X.bottom),left:Math.max(Q.left,X.left)});return ae.width<=0||ae.height<=0?null:ae},kt=function(Q,ae){return{top:Q.top+ae.y,left:Q.left+ae.x,bottom:Q.bottom+ae.y,right:Q.right+ae.x}},ht=function(Q){return[{x:Q.left,y:Q.top},{x:Q.right,y:Q.top},{x:Q.left,y:Q.bottom},{x:Q.right,y:Q.bottom}]},_t={top:0,right:0,bottom:0,left:0},Qe=function(Q,ae){return ae?kt(Q,ae.scroll.diff.displacement):Q},He=function(Q,ae,_e){if(_e&&_e.increasedBy){var Le;return Object(b.a)({},Q,(Le={},Le[ae.end]=Q[ae.end]+_e.increasedBy[ae.line],Le))}return Q},Ge=function(Q,ae){return ae&&ae.shouldClipSubject?ft(ae.pageMarginBox,Q):t(Q)},Ee=function(X){var Q=X.page,ae=X.withPlaceholder,_e=X.axis,Le=X.frame,Ne=Qe(Q.marginBox,Le),ze=He(Ne,_e,ae),Ve=Ge(ze,Le);return{page:Q,withPlaceholder:ae,active:Ve}},Ae=function(X,Q){X.frame||q(!1);var ae=X.frame,_e=ot(Q,ae.scroll.initial),Le=Et(_e),Ne=Object(b.a)({},ae,{scroll:{initial:ae.scroll.initial,current:Q,diff:{value:_e,displacement:Le},max:ae.scroll.max}}),ze=Ee({page:X.subject.page,withPlaceholder:X.subject.withPlaceholder,axis:X.axis,frame:Ne}),Ve=Object(b.a)({},X,{frame:Ne,subject:ze});return Ve};function Fe(X){return Number.isInteger?Number.isInteger(X):typeof X=="number"&&isFinite(X)&&Math.floor(X)===X}function We(X){return Object.values?Object.values(X):Object.keys(X).map(function(Q){return X[Q]})}function Ke(X,Q){if(X.findIndex)return X.findIndex(Q);for(var ae=0;ae<X.length;ae++)if(Q(X[ae]))return ae;return-1}function st(X,Q){if(X.find)return X.find(Q);var ae=Ke(X,Q);return ae!==-1?X[ae]:void 0}function Ot(X){return Array.prototype.slice.call(X)}var Bt=T(function(X){return X.reduce(function(Q,ae){return Q[ae.descriptor.id]=ae,Q},{})}),an=T(function(X){return X.reduce(function(Q,ae){return Q[ae.descriptor.id]=ae,Q},{})}),Kt=T(function(X){return We(X)}),bt=T(function(X){return We(X)}),Be=T(function(X,Q){var ae=bt(Q).filter(function(_e){return X===_e.descriptor.droppableId}).sort(function(_e,Le){return _e.descriptor.index-Le.descriptor.index});return ae});function at(X){return X.at&&X.at.type==="REORDER"?X.at.destination:null}function it(X){return X.at&&X.at.type==="COMBINE"?X.at.combine:null}var Me=T(function(X,Q){return Q.filter(function(ae){return ae.descriptor.id!==X.descriptor.id})}),Ye=function(X){var Q=X.isMovingForward,ae=X.draggable,_e=X.destination,Le=X.insideDestination,Ne=X.previousImpact;if(!_e.isCombineEnabled)return null;var ze=at(Ne);if(!ze)return null;function Ve(lr){var pr={type:"COMBINE",combine:{draggableId:lr,droppableId:_e.descriptor.id}};return Object(b.a)({},Ne,{at:pr})}var Ct=Ne.displaced.all,Ut=Ct.length?Ct[0]:null;if(Q)return Ut?Ve(Ut):null;var Ft=Me(ae,Le);if(!Ut){if(!Ft.length)return null;var At=Ft[Ft.length-1];return Ve(At.descriptor.id)}var Tt=Ke(Ft,function(lr){return lr.descriptor.id===Ut});Tt!==-1||q(!1);var Nt=Tt-1;if(Nt<0)return null;var hn=Ft[Nt];return Ve(hn.descriptor.id)},ut=function(X,Q){return X.descriptor.droppableId===Q.descriptor.id},mt={point:ke,value:0},Pt={invisible:{},visible:{},all:[]},jt={displaced:Pt,displacedBy:mt,at:null},et=function(X,Q){return function(ae){return X<=ae&&ae<=Q}},Dt=function(X){var Q=et(X.top,X.bottom),ae=et(X.left,X.right);return function(_e){var Le=Q(_e.top)&&Q(_e.bottom)&&ae(_e.left)&&ae(_e.right);if(Le)return!0;var Ne=Q(_e.top)||Q(_e.bottom),ze=ae(_e.left)||ae(_e.right),Ve=Ne&&ze;if(Ve)return!0;var Ct=_e.top<X.top&&_e.bottom>X.bottom,Ut=_e.left<X.left&&_e.right>X.right,Ft=Ct&&Ut;if(Ft)return!0;var At=Ct&&ze||Ut&&Ne;return At}},Ht=function(X){var Q=et(X.top,X.bottom),ae=et(X.left,X.right);return function(_e){var Le=Q(_e.top)&&Q(_e.bottom)&&ae(_e.left)&&ae(_e.right);return Le}},bn={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Cn={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Yn=function(X){return function(Q){var ae=et(Q.top,Q.bottom),_e=et(Q.left,Q.right);return function(Le){return X===bn?ae(Le.top)&&ae(Le.bottom):_e(Le.left)&&_e(Le.right)}}},qn=function(Q,ae){var _e=ae.frame?ae.frame.scroll.diff.displacement:ke;return kt(Q,_e)},Pn=function(Q,ae,_e){return ae.subject.active?_e(ae.subject.active)(Q):!1},cn=function(Q,ae,_e){return _e(ae)(Q)},xr=function(Q){var ae=Q.target,_e=Q.destination,Le=Q.viewport,Ne=Q.withDroppableDisplacement,ze=Q.isVisibleThroughFrameFn,Ve=Ne?qn(ae,_e):ae;return Pn(Ve,_e,ze)&&cn(Ve,Le,ze)},wr=function(Q){return xr(Object(b.a)({},Q,{isVisibleThroughFrameFn:Dt}))},Rr=function(Q){return xr(Object(b.a)({},Q,{isVisibleThroughFrameFn:Ht}))},cr=function(Q){return xr(Object(b.a)({},Q,{isVisibleThroughFrameFn:Yn(Q.destination.axis)}))},Ur=function(Q,ae,_e){if(typeof _e=="boolean")return _e;if(!ae)return!0;var Le=ae.invisible,Ne=ae.visible;if(Le[Q])return!1;var ze=Ne[Q];return ze?ze.shouldAnimate:!0};function yr(X,Q){var ae=X.page.marginBox,_e={top:Q.point.y,right:0,bottom:0,left:Q.point.x};return t(a(ae,_e))}function sn(X){var Q=X.afterDragging,ae=X.destination,_e=X.displacedBy,Le=X.viewport,Ne=X.forceShouldAnimate,ze=X.last;return Q.reduce(function(Ct,Ut){var Ft=yr(Ut,_e),At=Ut.descriptor.id;Ct.all.push(At);var Tt=wr({target:Ft,destination:ae,viewport:Le,withDroppableDisplacement:!0});if(!Tt)return Ct.invisible[Ut.descriptor.id]=!0,Ct;var Nt=Ur(At,ze,Ne),hn={draggableId:At,shouldAnimate:Nt};return Ct.visible[At]=hn,Ct},{all:[],visible:{},invisible:{}})}function Zt(X,Q){if(!X.length)return 0;var ae=X[X.length-1].descriptor.index;return Q.inHomeList?ae:ae+1}function Tn(X){var Q=X.insideDestination,ae=X.inHomeList,_e=X.displacedBy,Le=X.destination,Ne=Zt(Q,{inHomeList:ae});return{displaced:Pt,displacedBy:_e,at:{type:"REORDER",destination:{droppableId:Le.descriptor.id,index:Ne}}}}function jr(X){var Q=X.draggable,ae=X.insideDestination,_e=X.destination,Le=X.viewport,Ne=X.displacedBy,ze=X.last,Ve=X.index,Ct=X.forceShouldAnimate,Ut=ut(Q,_e);if(Ve==null)return Tn({insideDestination:ae,inHomeList:Ut,displacedBy:Ne,destination:_e});var Ft=st(ae,function(lr){return lr.descriptor.index===Ve});if(!Ft)return Tn({insideDestination:ae,inHomeList:Ut,displacedBy:Ne,destination:_e});var At=Me(Q,ae),Tt=ae.indexOf(Ft),Nt=At.slice(Tt),hn=sn({afterDragging:Nt,destination:_e,displacedBy:Ne,last:ze,viewport:Le.frame,forceShouldAnimate:Ct});return{displaced:hn,displacedBy:Ne,at:{type:"REORDER",destination:{droppableId:_e.descriptor.id,index:Ve}}}}function jn(X,Q){return Boolean(Q.effected[X])}var $n=function(X){var Q=X.isMovingForward,ae=X.destination,_e=X.draggables,Le=X.combine,Ne=X.afterCritical;if(!ae.isCombineEnabled)return null;var ze=Le.draggableId,Ve=_e[ze],Ct=Ve.descriptor.index,Ut=jn(ze,Ne);return Ut?Q?Ct:Ct-1:Q?Ct+1:Ct},Wn=function(X){var Q=X.isMovingForward,ae=X.isInHomeList,_e=X.insideDestination,Le=X.location;if(!_e.length)return null;var Ne=Le.index,ze=Q?Ne+1:Ne-1,Ve=_e[0].descriptor.index,Ct=_e[_e.length-1].descriptor.index,Ut=ae?Ct:Ct+1;return ze<Ve||ze>Ut?null:ze},pe=function(X){var Q=X.isMovingForward,ae=X.isInHomeList,_e=X.draggable,Le=X.draggables,Ne=X.destination,ze=X.insideDestination,Ve=X.previousImpact,Ct=X.viewport,Ut=X.afterCritical,Ft=Ve.at;if(Ft||q(!1),Ft.type==="REORDER"){var At=Wn({isMovingForward:Q,isInHomeList:ae,location:Ft.destination,insideDestination:ze});return At==null?null:jr({draggable:_e,insideDestination:ze,destination:Ne,viewport:Ct,last:Ve.displaced,displacedBy:Ve.displacedBy,index:At})}var Tt=$n({isMovingForward:Q,destination:Ne,displaced:Ve.displaced,draggables:Le,combine:Ft.combine,afterCritical:Ut});return Tt==null?null:jr({draggable:_e,insideDestination:ze,destination:Ne,viewport:Ct,last:Ve.displaced,displacedBy:Ve.displacedBy,index:Tt})},V=function(X){var Q=X.displaced,ae=X.afterCritical,_e=X.combineWith,Le=X.displacedBy,Ne=Boolean(Q.visible[_e]||Q.invisible[_e]);return jn(_e,ae)?Ne?ke:Et(Le.point):Ne?Le.point:ke},Z=function(X){var Q=X.afterCritical,ae=X.impact,_e=X.draggables,Le=it(ae);Le||q(!1);var Ne=Le.draggableId,ze=_e[Ne].page.borderBox.center,Ve=V({displaced:ae.displaced,afterCritical:Q,combineWith:Ne,displacedBy:ae.displacedBy});return tt(ze,Ve)},oe=function(Q,ae){return ae.margin[Q.start]+ae.borderBox[Q.size]/2},Ce=function(Q,ae){return ae.margin[Q.end]+ae.borderBox[Q.size]/2},he=function(Q,ae,_e){return ae[Q.crossAxisStart]+_e.margin[Q.crossAxisStart]+_e.borderBox[Q.crossAxisSize]/2},ct=function(Q){var ae=Q.axis,_e=Q.moveRelativeTo,Le=Q.isMoving;return xt(ae.line,_e.marginBox[ae.end]+oe(ae,Le),he(ae,_e.marginBox,Le))},rn=function(Q){var ae=Q.axis,_e=Q.moveRelativeTo,Le=Q.isMoving;return xt(ae.line,_e.marginBox[ae.start]-Ce(ae,Le),he(ae,_e.marginBox,Le))},In=function(Q){var ae=Q.axis,_e=Q.moveInto,Le=Q.isMoving;return xt(ae.line,_e.contentBox[ae.start]+oe(ae,Le),he(ae,_e.contentBox,Le))},Vn=function(X){var Q=X.impact,ae=X.draggable,_e=X.draggables,Le=X.droppable,Ne=X.afterCritical,ze=Be(Le.descriptor.id,_e),Ve=ae.page,Ct=Le.axis;if(!ze.length)return In({axis:Ct,moveInto:Le.page,isMoving:Ve});var Ut=Q.displaced,Ft=Q.displacedBy,At=Ut.all[0];if(At){var Tt=_e[At];if(jn(At,Ne))return rn({axis:Ct,moveRelativeTo:Tt.page,isMoving:Ve});var Nt=O(Tt.page,Ft.point);return rn({axis:Ct,moveRelativeTo:Nt,isMoving:Ve})}var hn=ze[ze.length-1];if(hn.descriptor.id===ae.descriptor.id)return Ve.borderBox.center;if(jn(hn.descriptor.id,Ne)){var lr=O(hn.page,Et(Ne.displacedBy.point));return ct({axis:Ct,moveRelativeTo:lr,isMoving:Ve})}return ct({axis:Ct,moveRelativeTo:hn.page,isMoving:Ve})},tn=function(X,Q){var ae=X.frame;return ae?tt(Q,ae.scroll.diff.displacement):Q},En=function(Q){var ae=Q.impact,_e=Q.draggable,Le=Q.droppable,Ne=Q.draggables,ze=Q.afterCritical,Ve=_e.page.borderBox.center,Ct=ae.at;return Le&&Ct?Ct.type==="REORDER"?Vn({impact:ae,draggable:_e,draggables:Ne,droppable:Le,afterCritical:ze}):Z({impact:ae,draggables:Ne,afterCritical:ze}):Ve},Xn=function(X){var Q=En(X),ae=X.droppable,_e=ae?tn(ae,Q):Q;return _e},$r=function(X,Q){var ae=ot(Q,X.scroll.initial),_e=Et(ae),Le=t({top:Q.y,bottom:Q.y+X.frame.height,left:Q.x,right:Q.x+X.frame.width}),Ne={frame:Le,scroll:{initial:X.scroll.initial,max:X.scroll.max,current:Q,diff:{value:ae,displacement:_e}}};return Ne};function ga(X,Q){return X.map(function(ae){return Q[ae]})}function pa(X,Q){for(var ae=0;ae<Q.length;ae++){var _e=Q[ae].visible[X];if(_e)return _e}return null}var dr=function(X){var Q=X.impact,ae=X.viewport,_e=X.destination,Le=X.draggables,Ne=X.maxScrollChange,ze=$r(ae,tt(ae.scroll.current,Ne)),Ve=_e.frame?Ae(_e,tt(_e.frame.scroll.current,Ne)):_e,Ct=Q.displaced,Ut=sn({afterDragging:ga(Ct.all,Le),destination:_e,displacedBy:Q.displacedBy,viewport:ze.frame,last:Ct,forceShouldAnimate:!1}),Ft=sn({afterDragging:ga(Ct.all,Le),destination:Ve,displacedBy:Q.displacedBy,viewport:ae.frame,last:Ct,forceShouldAnimate:!1}),At={},Tt={},Nt=[Ct,Ut,Ft];Ct.all.forEach(function(lr){var pr=pa(lr,Nt);if(pr){Tt[lr]=pr;return}At[lr]=!0});var hn=Object(b.a)({},Q,{displaced:{all:Ct.all,invisible:At,visible:Tt}});return hn},za=function(X,Q){return tt(X.scroll.diff.displacement,Q)},ja=function(X){var Q=X.pageBorderBoxCenter,ae=X.draggable,_e=X.viewport,Le=za(_e,Q),Ne=ot(Le,ae.page.borderBox.center);return tt(ae.client.borderBox.center,Ne)},Ra=function(X){var Q=X.draggable,ae=X.destination,_e=X.newPageBorderBoxCenter,Le=X.viewport,Ne=X.withDroppableDisplacement,ze=X.onlyOnMainAxis,Ve=ze===void 0?!1:ze,Ct=ot(_e,Q.page.borderBox.center),Ut=kt(Q.page.borderBox,Ct),Ft={target:Ut,destination:ae,withDroppableDisplacement:Ne,viewport:Le};return Ve?cr(Ft):Rr(Ft)},Ha=function(X){var Q=X.isMovingForward,ae=X.draggable,_e=X.destination,Le=X.draggables,Ne=X.previousImpact,ze=X.viewport,Ve=X.previousPageBorderBoxCenter,Ct=X.previousClientSelection,Ut=X.afterCritical;if(!_e.isEnabled)return null;var Ft=Be(_e.descriptor.id,Le),At=ut(ae,_e),Tt=Ye({isMovingForward:Q,draggable:ae,destination:_e,insideDestination:Ft,previousImpact:Ne})||pe({isMovingForward:Q,isInHomeList:At,draggable:ae,draggables:Le,destination:_e,insideDestination:Ft,previousImpact:Ne,viewport:ze,afterCritical:Ut});if(!Tt)return null;var Nt=Xn({impact:Tt,draggable:ae,droppable:_e,draggables:Le,afterCritical:Ut}),hn=Ra({draggable:ae,destination:_e,newPageBorderBoxCenter:Nt,viewport:ze.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(hn){var lr=ja({pageBorderBoxCenter:Nt,draggable:ae,viewport:ze});return{clientSelection:lr,impact:Tt,scrollJumpRequest:null}}var pr=ot(Nt,Ve),Lr=dr({impact:Tt,viewport:ze,destination:_e,draggables:Le,maxScrollChange:pr});return{clientSelection:Ct,impact:Lr,scrollJumpRequest:pr}},Sa=function(Q){var ae=Q.subject.active;return ae||q(!1),ae},Ja=function(X){var Q=X.isMovingForward,ae=X.pageBorderBoxCenter,_e=X.source,Le=X.droppables,Ne=X.viewport,ze=_e.subject.active;if(!ze)return null;var Ve=_e.axis,Ct=et(ze[Ve.start],ze[Ve.end]),Ut=Kt(Le).filter(function(At){return At!==_e}).filter(function(At){return At.isEnabled}).filter(function(At){return Boolean(At.subject.active)}).filter(function(At){return Dt(Ne.frame)(Sa(At))}).filter(function(At){var Tt=Sa(At);return Q?ze[Ve.crossAxisEnd]<Tt[Ve.crossAxisEnd]:Tt[Ve.crossAxisStart]<ze[Ve.crossAxisStart]}).filter(function(At){var Tt=Sa(At),Nt=et(Tt[Ve.start],Tt[Ve.end]);return Ct(Tt[Ve.start])||Ct(Tt[Ve.end])||Nt(ze[Ve.start])||Nt(ze[Ve.end])}).sort(function(At,Tt){var Nt=Sa(At)[Ve.crossAxisStart],hn=Sa(Tt)[Ve.crossAxisStart];return Q?Nt-hn:hn-Nt}).filter(function(At,Tt,Nt){return Sa(At)[Ve.crossAxisStart]===Sa(Nt[0])[Ve.crossAxisStart]});if(!Ut.length)return null;if(Ut.length===1)return Ut[0];var Ft=Ut.filter(function(At){var Tt=et(Sa(At)[Ve.start],Sa(At)[Ve.end]);return Tt(ae[Ve.line])});return Ft.length===1?Ft[0]:Ft.length>1?Ft.sort(function(At,Tt){return Sa(At)[Ve.start]-Sa(Tt)[Ve.start]})[0]:Ut.sort(function(At,Tt){var Nt=Je(ae,ht(Sa(At))),hn=Je(ae,ht(Sa(Tt)));return Nt!==hn?Nt-hn:Sa(At)[Ve.start]-Sa(Tt)[Ve.start]})[0]},ka=function(Q,ae){var _e=Q.page.borderBox.center;return jn(Q.descriptor.id,ae)?ot(_e,ae.displacedBy.point):_e},li=function(Q,ae){var _e=Q.page.borderBox;return jn(Q.descriptor.id,ae)?kt(_e,Et(ae.displacedBy.point)):_e},oi=function(X){var Q=X.pageBorderBoxCenter,ae=X.viewport,_e=X.destination,Le=X.insideDestination,Ne=X.afterCritical,ze=Le.filter(function(Ve){return Rr({target:li(Ve,Ne),destination:_e,viewport:ae.frame,withDroppableDisplacement:!0})}).sort(function(Ve,Ct){var Ut=St(Q,tn(_e,ka(Ve,Ne))),Ft=St(Q,tn(_e,ka(Ct,Ne)));return Ut<Ft?-1:Ft<Ut?1:Ve.descriptor.index-Ct.descriptor.index});return ze[0]||null},ua=T(function(Q,ae){var _e=ae[Q.line];return{value:_e,point:xt(Q.line,_e)}}),fa=function(Q,ae,_e){var Le=Q.axis;if(Q.descriptor.mode==="virtual")return xt(Le.line,ae[Le.line]);var Ne=Q.subject.page.contentBox[Le.size],ze=Be(Q.descriptor.id,_e),Ve=ze.reduce(function(Ft,At){return Ft+At.client.marginBox[Le.size]},0),Ct=Ve+ae[Le.line],Ut=Ct-Ne;return Ut<=0?null:xt(Le.line,Ut)},oa=function(Q,ae){return Object(b.a)({},Q,{scroll:Object(b.a)({},Q.scroll,{max:ae})})},ye=function(Q,ae,_e){var Le=Q.frame;ut(ae,Q)&&q(!1),Q.subject.withPlaceholder&&q(!1);var Ne=ua(Q.axis,ae.displaceBy).point,ze=fa(Q,Ne,_e),Ve={placeholderSize:Ne,increasedBy:ze,oldFrameMaxScroll:Q.frame?Q.frame.scroll.max:null};if(!Le){var Ct=Ee({page:Q.subject.page,withPlaceholder:Ve,axis:Q.axis,frame:Q.frame});return Object(b.a)({},Q,{subject:Ct})}var Ut=ze?tt(Le.scroll.max,ze):Le.scroll.max,Ft=oa(Le,Ut),At=Ee({page:Q.subject.page,withPlaceholder:Ve,axis:Q.axis,frame:Ft});return Object(b.a)({},Q,{subject:At,frame:Ft})},lt=function(Q){var ae=Q.subject.withPlaceholder;ae||q(!1);var _e=Q.frame;if(!_e){var Le=Ee({page:Q.subject.page,axis:Q.axis,frame:null,withPlaceholder:null});return Object(b.a)({},Q,{subject:Le})}var Ne=ae.oldFrameMaxScroll;Ne||q(!1);var ze=oa(_e,Ne),Ve=Ee({page:Q.subject.page,axis:Q.axis,frame:ze,withPlaceholder:null});return Object(b.a)({},Q,{subject:Ve,frame:ze})},Mt=function(X){var Q=X.previousPageBorderBoxCenter,ae=X.moveRelativeTo,_e=X.insideDestination,Le=X.draggable,Ne=X.draggables,ze=X.destination,Ve=X.viewport,Ct=X.afterCritical;if(!ae){if(_e.length)return null;var Ut={displaced:Pt,displacedBy:mt,at:{type:"REORDER",destination:{droppableId:ze.descriptor.id,index:0}}},Ft=Xn({impact:Ut,draggable:Le,droppable:ze,draggables:Ne,afterCritical:Ct}),At=ut(Le,ze)?ze:ye(ze,Le,Ne),Tt=Ra({draggable:Le,destination:At,newPageBorderBoxCenter:Ft,viewport:Ve.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return Tt?Ut:null}var Nt=Boolean(Q[ze.axis.line]<=ae.page.borderBox.center[ze.axis.line]),hn=function(){var pr=ae.descriptor.index;return ae.descriptor.id===Le.descriptor.id||Nt?pr:pr+1}(),lr=ua(ze.axis,Le.displaceBy);return jr({draggable:Le,insideDestination:_e,destination:ze,viewport:Ve,displacedBy:lr,last:Pt,index:hn})},wt=function(X){var Q=X.isMovingForward,ae=X.previousPageBorderBoxCenter,_e=X.draggable,Le=X.isOver,Ne=X.draggables,ze=X.droppables,Ve=X.viewport,Ct=X.afterCritical,Ut=Ja({isMovingForward:Q,pageBorderBoxCenter:ae,source:Le,droppables:ze,viewport:Ve});if(!Ut)return null;var Ft=Be(Ut.descriptor.id,Ne),At=oi({pageBorderBoxCenter:ae,viewport:Ve,destination:Ut,insideDestination:Ft,afterCritical:Ct}),Tt=Mt({previousPageBorderBoxCenter:ae,destination:Ut,draggable:_e,draggables:Ne,moveRelativeTo:At,insideDestination:Ft,viewport:Ve,afterCritical:Ct});if(!Tt)return null;var Nt=Xn({impact:Tt,draggable:_e,droppable:Ut,draggables:Ne,afterCritical:Ct}),hn=ja({pageBorderBoxCenter:Nt,draggable:_e,viewport:Ve});return{clientSelection:hn,impact:Tt,scrollJumpRequest:null}},Wt=function(X){var Q=X.at;return Q?Q.type==="REORDER"?Q.destination.droppableId:Q.combine.droppableId:null},Lt=function(Q,ae){var _e=Wt(Q);return _e?ae[_e]:null},Xt=function(X){var Q=X.state,ae=X.type,_e=Lt(Q.impact,Q.dimensions.droppables),Le=Boolean(_e),Ne=Q.dimensions.droppables[Q.critical.droppable.id],ze=_e||Ne,Ve=ze.axis.direction,Ct=Ve==="vertical"&&(ae==="MOVE_UP"||ae==="MOVE_DOWN")||Ve==="horizontal"&&(ae==="MOVE_LEFT"||ae==="MOVE_RIGHT");if(Ct&&!Le)return null;var Ut=ae==="MOVE_DOWN"||ae==="MOVE_RIGHT",Ft=Q.dimensions.draggables[Q.critical.draggable.id],At=Q.current.page.borderBoxCenter,Tt=Q.dimensions,Nt=Tt.draggables,hn=Tt.droppables;return Ct?Ha({isMovingForward:Ut,previousPageBorderBoxCenter:At,draggable:Ft,destination:ze,draggables:Nt,viewport:Q.viewport,previousClientSelection:Q.current.client.selection,previousImpact:Q.impact,afterCritical:Q.afterCritical}):wt({isMovingForward:Ut,previousPageBorderBoxCenter:At,draggable:Ft,isOver:ze,draggables:Nt,droppables:hn,viewport:Q.viewport,afterCritical:Q.afterCritical})};function en(X){return X.phase==="DRAGGING"||X.phase==="COLLECTING"}function vn(X){var Q=et(X.top,X.bottom),ae=et(X.left,X.right);return function(Le){return Q(Le.y)&&ae(Le.x)}}function pn(X,Q){return X.left<Q.right&&X.right>Q.left&&X.top<Q.bottom&&X.bottom>Q.top}function Nn(X){var Q=X.pageBorderBox,ae=X.draggable,_e=X.candidates,Le=ae.page.borderBox.center,Ne=_e.map(function(ze){var Ve=ze.axis,Ct=xt(ze.axis.line,Q.center[Ve.line],ze.page.borderBox.center[Ve.crossAxisLine]);return{id:ze.descriptor.id,distance:St(Le,Ct)}}).sort(function(ze,Ve){return Ve.distance-ze.distance});return Ne[0]?Ne[0].id:null}function wn(X){var Q=X.pageBorderBox,ae=X.draggable,_e=X.droppables,Le=Kt(_e).filter(function(Ne){if(!Ne.isEnabled)return!1;var ze=Ne.subject.active;if(!ze)return!1;if(!pn(Q,ze))return!1;if(vn(ze)(Q.center))return!0;var Ve=Ne.axis,Ct=ze.center[Ve.crossAxisLine],Ut=Q[Ve.crossAxisStart],Ft=Q[Ve.crossAxisEnd],At=et(ze[Ve.crossAxisStart],ze[Ve.crossAxisEnd]),Tt=At(Ut),Nt=At(Ft);return!Tt&&!Nt?!0:Tt?Ut<Ct:Ft>Ct});return Le.length?Le.length===1?Le[0].descriptor.id:Nn({pageBorderBox:Q,draggable:ae,candidates:Le}):null}var nn=function(Q,ae){return t(kt(Q,ae))},Rn=function(X,Q){var ae=X.frame;return ae?nn(Q,ae.scroll.diff.value):Q};function gn(X){var Q=X.displaced,ae=X.id;return Boolean(Q.visible[ae]||Q.invisible[ae])}function kn(X){var Q=X.draggable,ae=X.closest,_e=X.inHomeList;return ae?_e&&ae.descriptor.index>Q.descriptor.index?ae.descriptor.index-1:ae.descriptor.index:null}var Dn=function(X){var Q=X.pageBorderBoxWithDroppableScroll,ae=X.draggable,_e=X.destination,Le=X.insideDestination,Ne=X.last,ze=X.viewport,Ve=X.afterCritical,Ct=_e.axis,Ut=ua(_e.axis,ae.displaceBy),Ft=Ut.value,At=Q[Ct.start],Tt=Q[Ct.end],Nt=Me(ae,Le),hn=st(Nt,function(pr){var Lr=pr.descriptor.id,Kr=pr.page.borderBox.center[Ct.line],na=jn(Lr,Ve),Wr=gn({displaced:Ne,id:Lr});return na?Wr?Tt<=Kr:At<Kr-Ft:Wr?Tt<=Kr+Ft:At<Kr}),lr=kn({draggable:ae,closest:hn,inHomeList:ut(ae,_e)});return jr({draggable:ae,insideDestination:Le,destination:_e,viewport:ze,last:Ne,displacedBy:Ut,index:lr})},Jn=4,hr=function(X){var Q=X.draggable,ae=X.pageBorderBoxWithDroppableScroll,_e=X.previousImpact,Le=X.destination,Ne=X.insideDestination,ze=X.afterCritical;if(!Le.isCombineEnabled)return null;var Ve=Le.axis,Ct=ua(Le.axis,Q.displaceBy),Ut=Ct.value,Ft=ae[Ve.start],At=ae[Ve.end],Tt=Me(Q,Ne),Nt=st(Tt,function(lr){var pr=lr.descriptor.id,Lr=lr.page.borderBox,Kr=Lr[Ve.size],na=Kr/Jn,Wr=jn(pr,ze),Ma=gn({displaced:_e.displaced,id:pr});return Wr?Ma?At>Lr[Ve.start]+na&&At<Lr[Ve.end]-na:Ft>Lr[Ve.start]-Ut+na&&Ft<Lr[Ve.end]-Ut-na:Ma?At>Lr[Ve.start]+Ut+na&&At<Lr[Ve.end]+Ut-na:Ft>Lr[Ve.start]+na&&Ft<Lr[Ve.end]-na});if(!Nt)return null;var hn={displacedBy:Ct,displaced:_e.displaced,at:{type:"COMBINE",combine:{draggableId:Nt.descriptor.id,droppableId:Le.descriptor.id}}};return hn},Br=function(X){var Q=X.pageOffset,ae=X.draggable,_e=X.draggables,Le=X.droppables,Ne=X.previousImpact,ze=X.viewport,Ve=X.afterCritical,Ct=nn(ae.page.borderBox,Q),Ut=wn({pageBorderBox:Ct,draggable:ae,droppables:Le});if(!Ut)return jt;var Ft=Le[Ut],At=Be(Ft.descriptor.id,_e),Tt=Rn(Ft,Ct);return hr({pageBorderBoxWithDroppableScroll:Tt,draggable:ae,previousImpact:Ne,destination:Ft,insideDestination:At,afterCritical:Ve})||Dn({pageBorderBoxWithDroppableScroll:Tt,draggable:ae,destination:Ft,insideDestination:At,last:Ne.displaced,viewport:ze,afterCritical:Ve})},xn=function(X,Q){var ae;return Object(b.a)({},X,(ae={},ae[Q.descriptor.id]=Q,ae))},Yt=function(Q){var ae=Q.previousImpact,_e=Q.impact,Le=Q.droppables,Ne=Wt(ae),ze=Wt(_e);if(!Ne)return Le;if(Ne===ze)return Le;var Ve=Le[Ne];if(!Ve.subject.withPlaceholder)return Le;var Ct=lt(Ve);return xn(Le,Ct)},dn=function(X){var Q=X.draggable,ae=X.draggables,_e=X.droppables,Le=X.previousImpact,Ne=X.impact,ze=Yt({previousImpact:Le,impact:Ne,droppables:_e}),Ve=Wt(Ne);if(!Ve)return ze;var Ct=_e[Ve];if(ut(Q,Ct))return ze;if(Ct.subject.withPlaceholder)return ze;var Ut=ye(Ct,Q,ae);return xn(ze,Ut)},An=function(X){var Q=X.state,ae=X.clientSelection,_e=X.dimensions,Le=X.viewport,Ne=X.impact,ze=X.scrollJumpRequest,Ve=Le||Q.viewport,Ct=_e||Q.dimensions,Ut=ae||Q.current.client.selection,Ft=ot(Ut,Q.initial.client.selection),At={offset:Ft,selection:Ut,borderBoxCenter:tt(Q.initial.client.borderBoxCenter,Ft)},Tt={selection:tt(At.selection,Ve.scroll.current),borderBoxCenter:tt(At.borderBoxCenter,Ve.scroll.current),offset:tt(At.offset,Ve.scroll.diff.value)},Nt={client:At,page:Tt};if(Q.phase==="COLLECTING")return Object(b.a)({phase:"COLLECTING"},Q,{dimensions:Ct,viewport:Ve,current:Nt});var hn=Ct.draggables[Q.critical.draggable.id],lr=Ne||Br({pageOffset:Tt.offset,draggable:hn,draggables:Ct.draggables,droppables:Ct.droppables,previousImpact:Q.impact,viewport:Ve,afterCritical:Q.afterCritical}),pr=dn({draggable:hn,impact:lr,previousImpact:Q.impact,draggables:Ct.draggables,droppables:Ct.droppables}),Lr=Object(b.a)({},Q,{current:Nt,dimensions:{draggables:Ct.draggables,droppables:pr},impact:lr,viewport:Ve,scrollJumpRequest:ze||null,forceShouldAnimate:ze?!1:null});return Lr};function qt(X,Q){return X.map(function(ae){return Q[ae]})}var Sn=function(X){var Q=X.impact,ae=X.viewport,_e=X.draggables,Le=X.destination,Ne=X.forceShouldAnimate,ze=Q.displaced,Ve=qt(ze.all,_e),Ct=sn({afterDragging:Ve,destination:Le,displacedBy:Q.displacedBy,viewport:ae.frame,forceShouldAnimate:Ne,last:ze});return Object(b.a)({},Q,{displaced:Ct})},mn=function(X){var Q=X.impact,ae=X.draggable,_e=X.droppable,Le=X.draggables,Ne=X.viewport,ze=X.afterCritical,Ve=Xn({impact:Q,draggable:ae,draggables:Le,droppable:_e,afterCritical:ze});return ja({pageBorderBoxCenter:Ve,draggable:ae,viewport:Ne})},Mn=function(X){var Q=X.state,ae=X.dimensions,_e=X.viewport;Q.movementMode==="SNAP"||q(!1);var Le=Q.impact,Ne=_e||Q.viewport,ze=ae||Q.dimensions,Ve=ze.draggables,Ct=ze.droppables,Ut=Ve[Q.critical.draggable.id],Ft=Wt(Le);Ft||q(!1);var At=Ct[Ft],Tt=Sn({impact:Le,viewport:Ne,destination:At,draggables:Ve}),Nt=mn({impact:Tt,draggable:Ut,droppable:At,draggables:Ve,viewport:Ne,afterCritical:Q.afterCritical});return An({impact:Tt,clientSelection:Nt,state:Q,dimensions:ze,viewport:Ne})},Un=function(X){return{index:X.index,droppableId:X.droppableId}},ir=function(X){var Q=X.draggable,ae=X.home,_e=X.draggables,Le=X.viewport,Ne=ua(ae.axis,Q.displaceBy),ze=Be(ae.descriptor.id,_e),Ve=ze.indexOf(Q);Ve!==-1||q(!1);var Ct=ze.slice(Ve+1),Ut=Ct.reduce(function(Nt,hn){return Nt[hn.descriptor.id]=!0,Nt},{}),Ft={inVirtualList:ae.descriptor.mode==="virtual",displacedBy:Ne,effected:Ut},At=sn({afterDragging:Ct,destination:ae,displacedBy:Ne,last:null,viewport:Le.frame,forceShouldAnimate:!1}),Tt={displaced:At,displacedBy:Ne,at:{type:"REORDER",destination:Un(Q.descriptor)}};return{impact:Tt,afterCritical:Ft}},er=function(X,Q){return{draggables:X.draggables,droppables:xn(X.droppables,Q)}},Ar=function(Q){},Mr=function(Q){},Qn=function(X){var Q=X.draggable,ae=X.offset,_e=X.initialWindowScroll,Le=O(Q.client,ae),Ne=S(Le,_e),ze=Object(b.a)({},Q,{placeholder:Object(b.a)({},Q.placeholder,{client:Le}),client:Le,page:Ne});return ze},Tr=function(X){var Q=X.frame;return Q||q(!1),Q},mr=function(X){var Q=X.additions,ae=X.updatedDroppables,_e=X.viewport,Le=_e.scroll.diff.value;return Q.map(function(Ne){var ze=Ne.descriptor.droppableId,Ve=ae[ze],Ct=Tr(Ve),Ut=Ct.scroll.diff.value,Ft=tt(Le,Ut),At=Qn({draggable:Ne,offset:Ft,initialWindowScroll:_e.scroll.initial});return At})},Gr=function(X){var Q=X.state,ae=X.published;Ar();var _e=ae.modified.map(function(na){var Wr=Q.dimensions.droppables[na.droppableId],Ma=Ae(Wr,na.scroll);return Ma}),Le=Object(b.a)({},Q.dimensions.droppables,{},Bt(_e)),Ne=an(mr({additions:ae.additions,updatedDroppables:Le,viewport:Q.viewport})),ze=Object(b.a)({},Q.dimensions.draggables,{},Ne);ae.removals.forEach(function(na){delete ze[na]});var Ve={droppables:Le,draggables:ze},Ct=Wt(Q.impact),Ut=Ct?Ve.droppables[Ct]:null,Ft=Ve.draggables[Q.critical.draggable.id],At=Ve.droppables[Q.critical.droppable.id],Tt=ir({draggable:Ft,home:At,draggables:ze,viewport:Q.viewport}),Nt=Tt.impact,hn=Tt.afterCritical,lr=Ut&&Ut.isCombineEnabled?Q.impact:Nt,pr=Br({pageOffset:Q.current.page.offset,draggable:Ve.draggables[Q.critical.draggable.id],draggables:Ve.draggables,droppables:Ve.droppables,previousImpact:lr,viewport:Q.viewport,afterCritical:hn});Mr();var Lr=Object(b.a)({phase:"DRAGGING"},Q,{phase:"DRAGGING",impact:pr,onLiftImpact:Nt,dimensions:Ve,afterCritical:hn,forceShouldAnimate:!1});if(Q.phase==="COLLECTING")return Lr;var Kr=Object(b.a)({phase:"DROP_PENDING"},Lr,{phase:"DROP_PENDING",reason:Q.reason,isWaiting:!1});return Kr},Ir=function(Q){return Q.movementMode==="SNAP"},qr=function(Q,ae,_e){var Le=er(Q.dimensions,ae);return!Ir(Q)||_e?An({state:Q,dimensions:Le}):Mn({state:Q,dimensions:Le})};function rr(X){return X.isDragging&&X.movementMode==="SNAP"?Object(b.a)({phase:"DRAGGING"},X,{scrollJumpRequest:null}):X}var Gt={phase:"IDLE",completed:null,shouldFlush:!1},Qt=function(X,Q){if(X===void 0&&(X=Gt),Q.type==="FLUSH")return Object(b.a)({},Gt,{shouldFlush:!0});if(Q.type==="INITIAL_PUBLISH"){X.phase==="IDLE"||q(!1);var ae=Q.payload,_e=ae.critical,Le=ae.clientSelection,Ne=ae.viewport,ze=ae.dimensions,Ve=ae.movementMode,Ct=ze.draggables[_e.draggable.id],Ut=ze.droppables[_e.droppable.id],Ft={selection:Le,borderBoxCenter:Ct.client.borderBox.center,offset:ke},At={client:Ft,page:{selection:tt(Ft.selection,Ne.scroll.initial),borderBoxCenter:tt(Ft.selection,Ne.scroll.initial),offset:tt(Ft.selection,Ne.scroll.diff.value)}},Tt=Kt(ze.droppables).every(function(ea){return!ea.isFixedOnPage}),Nt=ir({draggable:Ct,home:Ut,draggables:ze.draggables,viewport:Ne}),hn=Nt.impact,lr=Nt.afterCritical,pr={phase:"DRAGGING",isDragging:!0,critical:_e,movementMode:Ve,dimensions:ze,initial:At,current:At,isWindowScrollAllowed:Tt,impact:hn,afterCritical:lr,onLiftImpact:hn,viewport:Ne,scrollJumpRequest:null,forceShouldAnimate:null};return pr}if(Q.type==="COLLECTION_STARTING"){if(X.phase==="COLLECTING"||X.phase==="DROP_PENDING")return X;X.phase==="DRAGGING"||q(!1);var Lr=Object(b.a)({phase:"COLLECTING"},X,{phase:"COLLECTING"});return Lr}if(Q.type==="PUBLISH_WHILE_DRAGGING")return X.phase==="COLLECTING"||X.phase==="DROP_PENDING"||q(!1),Gr({state:X,published:Q.payload});if(Q.type==="MOVE"){if(X.phase==="DROP_PENDING")return X;en(X)||q(!1);var Kr=Q.payload.client;return gt(Kr,X.current.client.selection)?X:An({state:X,clientSelection:Kr,impact:Ir(X)?X.impact:null})}if(Q.type==="UPDATE_DROPPABLE_SCROLL"){if(X.phase==="DROP_PENDING")return rr(X);if(X.phase==="COLLECTING")return rr(X);en(X)||q(!1);var na=Q.payload,Wr=na.id,Ma=na.newScroll,Aa=X.dimensions.droppables[Wr];if(!Aa)return X;var Ga=Ae(Aa,Ma);return qr(X,Ga,!1)}if(Q.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(X.phase==="DROP_PENDING")return X;en(X)||q(!1);var si=Q.payload,e=si.id,c=si.isEnabled,j=X.dimensions.droppables[e];j||q(!1),j.isEnabled!==c||q(!1);var U=Object(b.a)({},j,{isEnabled:c});return qr(X,U,!0)}if(Q.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(X.phase==="DROP_PENDING")return X;en(X)||q(!1);var H=Q.payload,ee=H.id,ge=H.isCombineEnabled,Se=X.dimensions.droppables[ee];Se||q(!1),Se.isCombineEnabled!==ge||q(!1);var Re=Object(b.a)({},Se,{isCombineEnabled:ge});return qr(X,Re,!0)}if(Q.type==="MOVE_BY_WINDOW_SCROLL"){if(X.phase==="DROP_PENDING"||X.phase==="DROP_ANIMATING")return X;en(X)||q(!1),X.isWindowScrollAllowed||q(!1);var je=Q.payload.newScroll;if(gt(X.viewport.scroll.current,je))return rr(X);var vt=$r(X.viewport,je);return Ir(X)?Mn({state:X,viewport:vt}):An({state:X,viewport:vt})}if(Q.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!en(X))return X;var Rt=Q.payload.maxScroll;if(gt(Rt,X.viewport.scroll.max))return X;var $t=Object(b.a)({},X.viewport,{scroll:Object(b.a)({},X.viewport.scroll,{max:Rt})});return Object(b.a)({phase:"DRAGGING"},X,{viewport:$t})}if(Q.type==="MOVE_UP"||Q.type==="MOVE_DOWN"||Q.type==="MOVE_LEFT"||Q.type==="MOVE_RIGHT"){if(X.phase==="COLLECTING"||X.phase==="DROP_PENDING")return X;X.phase==="DRAGGING"||q(!1);var zt=Xt({state:X,type:Q.type});return zt?An({state:X,impact:zt.impact,clientSelection:zt.clientSelection,scrollJumpRequest:zt.scrollJumpRequest}):X}if(Q.type==="DROP_PENDING"){var On=Q.payload.reason;X.phase==="COLLECTING"||q(!1);var Fn=Object(b.a)({phase:"DROP_PENDING"},X,{phase:"DROP_PENDING",isWaiting:!0,reason:On});return Fn}if(Q.type==="DROP_ANIMATE"){var Zn=Q.payload,_r=Zn.completed,Nr=Zn.dropDuration,br=Zn.newHomeClientOffset;X.phase==="DRAGGING"||X.phase==="DROP_PENDING"||q(!1);var Vr={phase:"DROP_ANIMATING",completed:_r,dropDuration:Nr,newHomeClientOffset:br,dimensions:X.dimensions};return Vr}if(Q.type==="DROP_COMPLETE"){var aa=Q.payload.completed;return{phase:"IDLE",completed:aa,shouldFlush:!1}}return X},Jt=function(Q){return{type:"BEFORE_INITIAL_CAPTURE",payload:Q}},zn=function(Q){return{type:"LIFT",payload:Q}},tr=function(Q){return{type:"INITIAL_PUBLISH",payload:Q}},Ln=function(Q){return{type:"PUBLISH_WHILE_DRAGGING",payload:Q}},ar=function(){return{type:"COLLECTION_STARTING",payload:null}},ur=function(Q){return{type:"UPDATE_DROPPABLE_SCROLL",payload:Q}},or=function(Q){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:Q}},Zr=function(Q){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:Q}},sr=function(Q){return{type:"MOVE",payload:Q}},la=function(Q){return{type:"MOVE_BY_WINDOW_SCROLL",payload:Q}},Xr=function(Q){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:Q}},gr=function(){return{type:"MOVE_UP",payload:null}},Cr=function(){return{type:"MOVE_DOWN",payload:null}},Hr=function(){return{type:"MOVE_RIGHT",payload:null}},Yr=function(){return{type:"MOVE_LEFT",payload:null}},Oa=function(){return{type:"FLUSH",payload:null}},va=function(Q){return{type:"DROP_ANIMATE",payload:Q}},Ze=function(Q){return{type:"DROP_COMPLETE",payload:Q}},dt=function(Q){return{type:"DROP",payload:Q}},yt=function(Q){return{type:"DROP_PENDING",payload:Q}},nt=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function Pe(X){if(X.length<=1)return;for(var Q=X.map(function(Ve){return Ve.descriptor.index}),ae={},_e=1;_e<Q.length;_e++){var Le=Q[_e],Ne=Q[_e-1];Le!==Ne+1&&(ae[Le]=!0)}if(!Object.keys(ae).length)return;var ze=Q.map(function(Ve){var Ct=Boolean(ae[Ve]);return Ct?"[\u{1F525}"+Ve+"]":""+Ve}).join(", ")}function Xe(X,Q){if(!1)var ae}var Ie=function(X){return function(Q){var ae=Q.getState,_e=Q.dispatch;return function(Le){return function(Ne){if(Ne.type!=="LIFT"){Le(Ne);return}var ze=Ne.payload,Ve=ze.id,Ct=ze.clientSelection,Ut=ze.movementMode,Ft=ae();Ft.phase==="DROP_ANIMATING"&&_e(Ze({completed:Ft.completed})),ae().phase==="IDLE"||q(!1),_e(Oa()),_e(Jt({draggableId:Ve,movementMode:Ut}));var At={shouldPublishImmediately:Ut==="SNAP"},Tt={draggableId:Ve,scrollOptions:At},Nt=X.startPublishing(Tt),hn=Nt.critical,lr=Nt.dimensions,pr=Nt.viewport;Xe(hn,lr),_e(tr({critical:hn,dimensions:lr,clientSelection:Ct,movementMode:Ut,viewport:pr}))}}}},$e=function(X){return function(){return function(Q){return function(ae){ae.type==="INITIAL_PUBLISH"&&X.dragging(),ae.type==="DROP_ANIMATE"&&X.dropping(ae.payload.completed.result.reason),(ae.type==="FLUSH"||ae.type==="DROP_COMPLETE")&&X.resting(),Q(ae)}}}},qe={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},pt={opacity:{drop:0,combining:.7},scale:{drop:.75}},rt={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},It=rt.outOfTheWay+"s "+qe.outOfTheWay,Vt={fluid:"opacity "+It,snap:"transform "+It+", opacity "+It,drop:function(Q){var ae=Q+"s "+qe.drop;return"transform "+ae+", opacity "+ae},outOfTheWay:"transform "+It,placeholder:"height "+It+", width "+It+", margin "+It},fn=function(Q){return gt(Q,ke)?null:"translate("+Q.x+"px, "+Q.y+"px)"},on={moveTo:fn,drop:function(Q,ae){var _e=fn(Q);return _e?ae?_e+" scale("+pt.scale.drop+")":_e:null}},un=rt.minDropTime,ln=rt.maxDropTime,Hn=ln-un,yn=1500,kr=.6,Dr=function(X){var Q=X.current,ae=X.destination,_e=X.reason,Le=St(Q,ae);if(Le<=0)return un;if(Le>=yn)return ln;var Ne=Le/yn,ze=un+Hn*Ne,Ve=_e==="CANCEL"?ze*kr:ze;return Number(Ve.toFixed(2))},Jr=function(X){var Q=X.impact,ae=X.draggable,_e=X.dimensions,Le=X.viewport,Ne=X.afterCritical,ze=_e.draggables,Ve=_e.droppables,Ct=Wt(Q),Ut=Ct?Ve[Ct]:null,Ft=Ve[ae.descriptor.droppableId],At=mn({impact:Q,draggable:ae,draggables:ze,afterCritical:Ne,droppable:Ut||Ft,viewport:Le}),Tt=ot(At,ae.client.borderBox.center);return Tt},Fr=function(X){var Q=X.draggables,ae=X.reason,_e=X.lastImpact,Le=X.home,Ne=X.viewport,ze=X.onLiftImpact;if(!_e.at||ae!=="DROP"){var Ve=Sn({draggables:Q,impact:ze,destination:Le,viewport:Ne,forceShouldAnimate:!0});return{impact:Ve,didDropInsideDroppable:!1}}if(_e.at.type==="REORDER")return{impact:_e,didDropInsideDroppable:!0};var Ct=Object(b.a)({},_e,{displaced:Pt});return{impact:Ct,didDropInsideDroppable:!0}},ta=function(X){var Q=X.getState,ae=X.dispatch;return function(_e){return function(Le){if(Le.type!=="DROP"){_e(Le);return}var Ne=Q(),ze=Le.payload.reason;if(Ne.phase==="COLLECTING"){ae(yt({reason:ze}));return}if(Ne.phase==="IDLE")return;var Ve=Ne.phase==="DROP_PENDING"&&Ne.isWaiting;Ve&&q(!1),Ne.phase==="DRAGGING"||Ne.phase==="DROP_PENDING"||q(!1);var Ct=Ne.critical,Ut=Ne.dimensions,Ft=Ut.draggables[Ne.critical.draggable.id],At=Fr({reason:ze,lastImpact:Ne.impact,afterCritical:Ne.afterCritical,onLiftImpact:Ne.onLiftImpact,home:Ne.dimensions.droppables[Ne.critical.droppable.id],viewport:Ne.viewport,draggables:Ne.dimensions.draggables}),Tt=At.impact,Nt=At.didDropInsideDroppable,hn=Nt?at(Tt):null,lr=Nt?it(Tt):null,pr={index:Ct.draggable.index,droppableId:Ct.droppable.id},Lr={draggableId:Ft.descriptor.id,type:Ft.descriptor.type,source:pr,reason:ze,mode:Ne.movementMode,destination:hn,combine:lr},Kr=Jr({impact:Tt,draggable:Ft,dimensions:Ut,viewport:Ne.viewport,afterCritical:Ne.afterCritical}),na={critical:Ne.critical,afterCritical:Ne.afterCritical,result:Lr,impact:Tt},Wr=!gt(Ne.current.client.offset,Kr)||Boolean(Lr.combine);if(!Wr){ae(Ze({completed:na}));return}var Ma=Dr({current:Ne.current.client.offset,destination:Kr,reason:ze}),Aa={newHomeClientOffset:Kr,dropDuration:Ma,completed:na};ae(va(Aa))}}},Kn=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Sr(X){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(ae){if(ae.target!==window&&ae.target!==window.document)return;X()}}}function Gn(X){var Q=X.onWindowScroll;function ae(){Q(Kn())}var _e=D(ae),Le=Sr(_e),Ne=Oe;function ze(){return Ne!==Oe}function Ve(){ze()&&q(!1),Ne=be(window,[Le])}function Ct(){ze()||q(!1),_e.cancel(),Ne(),Ne=Oe}return{start:Ve,stop:Ct,isActive:ze}}var _n=function(Q){return Q.type==="DROP_COMPLETE"||Q.type==="DROP_ANIMATE"||Q.type==="FLUSH"},Bn=function(X){var Q=Gn({onWindowScroll:function(_e){X.dispatch(la({newScroll:_e}))}});return function(ae){return function(_e){!Q.isActive()&&_e.type==="INITIAL_PUBLISH"&&Q.start(),Q.isActive()&&_n(_e)&&Q.stop(),ae(_e)}}},zr=function(X){var Q=!1,ae=!1,_e=setTimeout(function(){ae=!0}),Le=function(ze){if(Q)return;if(ae)return;Q=!0,X(ze),clearTimeout(_e)};return Le.wasCalled=function(){return Q},Le},sa=function(){var X=[],Q=function(Ne){var ze=Ke(X,function(Ut){return Ut.timerId===Ne});ze!==-1||q(!1);var Ve=X.splice(ze,1),Ct=Ve[0];Ct.callback()},ae=function(Ne){var ze=setTimeout(function(){return Q(ze)}),Ve={timerId:ze,callback:Ne};X.push(Ve)},_e=function(){if(!X.length)return;var Ne=[].concat(X);X.length=0,Ne.forEach(function(ze){clearTimeout(ze.timerId),ze.callback()})};return{add:ae,flush:_e}},fr=function(Q,ae){return Q==null&&ae==null?!0:Q==null||ae==null?!1:Q.droppableId===ae.droppableId&&Q.index===ae.index},ra=function(Q,ae){return Q==null&&ae==null?!0:Q==null||ae==null?!1:Q.draggableId===ae.draggableId&&Q.droppableId===ae.droppableId},Ea=function(Q,ae){if(Q===ae)return!0;var _e=Q.draggable.id===ae.draggable.id&&Q.draggable.droppableId===ae.draggable.droppableId&&Q.draggable.type===ae.draggable.type&&Q.draggable.index===ae.draggable.index,Le=Q.droppable.id===ae.droppable.id&&Q.droppable.type===ae.droppable.type;return _e&&Le},ca=function(Q,ae){Ar(),ae(),Mr()},xa=function(Q,ae){return{draggableId:Q.draggable.id,type:Q.droppable.type,source:{droppableId:Q.droppable.id,index:Q.draggable.index},mode:ae}},Or=function(Q,ae,_e,Le){if(!Q){_e(Le(ae));return}var Ne=zr(_e),ze={announce:Ne};Q(ae,ze),Ne.wasCalled()||_e(Le(ae))},vr=function(X,Q){var ae=sa(),_e=null,Le=function(Tt,Nt){_e&&q(!1),ca("onBeforeCapture",function(){var hn=X().onBeforeCapture;if(hn){var lr={draggableId:Tt,mode:Nt};hn(lr)}})},Ne=function(Tt,Nt){_e&&q(!1),ca("onBeforeDragStart",function(){var hn=X().onBeforeDragStart;hn&&hn(xa(Tt,Nt))})},ze=function(Tt,Nt){_e&&q(!1);var hn=xa(Tt,Nt);_e={mode:Nt,lastCritical:Tt,lastLocation:hn.source,lastCombine:null},ae.add(function(){ca("onDragStart",function(){return Or(X().onDragStart,hn,Q,Te.onDragStart)})})},Ve=function(Tt,Nt){var hn=at(Nt),lr=it(Nt);_e||q(!1);var pr=!Ea(Tt,_e.lastCritical);pr&&(_e.lastCritical=Tt);var Lr=!fr(_e.lastLocation,hn);Lr&&(_e.lastLocation=hn);var Kr=!ra(_e.lastCombine,lr);if(Kr&&(_e.lastCombine=lr),!pr&&!Lr&&!Kr)return;var na=Object(b.a)({},xa(Tt,_e.mode),{combine:lr,destination:hn});ae.add(function(){ca("onDragUpdate",function(){return Or(X().onDragUpdate,na,Q,Te.onDragUpdate)})})},Ct=function(){_e||q(!1),ae.flush()},Ut=function(Tt){_e||q(!1),_e=null,ca("onDragEnd",function(){return Or(X().onDragEnd,Tt,Q,Te.onDragEnd)})},Ft=function(){if(!_e)return;var Tt=Object(b.a)({},xa(_e.lastCritical,_e.mode),{combine:null,destination:null,reason:"CANCEL"});Ut(Tt)};return{beforeCapture:Le,beforeStart:Ne,start:ze,update:Ve,flush:Ct,drop:Ut,abort:Ft}},Pr=function(X,Q){var ae=vr(X,Q);return function(_e){return function(Le){return function(Ne){if(Ne.type==="BEFORE_INITIAL_CAPTURE"){ae.beforeCapture(Ne.payload.draggableId,Ne.payload.movementMode);return}if(Ne.type==="INITIAL_PUBLISH"){var ze=Ne.payload.critical;ae.beforeStart(ze,Ne.payload.movementMode),Le(Ne),ae.start(ze,Ne.payload.movementMode);return}if(Ne.type==="DROP_COMPLETE"){var Ve=Ne.payload.completed.result;ae.flush(),Le(Ne),ae.drop(Ve);return}if(Le(Ne),Ne.type==="FLUSH"){ae.abort();return}var Ct=_e.getState();Ct.phase==="DRAGGING"&&ae.update(Ct.critical,Ct.impact)}}}},nr=function(X){return function(Q){return function(ae){if(ae.type!=="DROP_ANIMATION_FINISHED"){Q(ae);return}var _e=X.getState();_e.phase==="DROP_ANIMATING"||q(!1),X.dispatch(Ze({completed:_e.completed}))}}},da=function(X){var Q=null,ae=null;function _e(){ae&&(cancelAnimationFrame(ae),ae=null),Q&&(Q(),Q=null)}return function(Le){return function(Ne){if((Ne.type==="FLUSH"||Ne.type==="DROP_COMPLETE"||Ne.type==="DROP_ANIMATION_FINISHED")&&_e(),Le(Ne),Ne.type!=="DROP_ANIMATE")return;var ze={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var Ct=X.getState();Ct.phase==="DROP_ANIMATING"&&X.dispatch(nt())}};ae=requestAnimationFrame(function(){ae=null,Q=be(window,[ze])})}}},ya=function(X){return function(){return function(Q){return function(ae){(ae.type==="DROP_COMPLETE"||ae.type==="FLUSH"||ae.type==="DROP_ANIMATE")&&X.stopPublishing(),Q(ae)}}}},_a=function(X){var Q=!1;return function(){return function(ae){return function(_e){if(_e.type==="INITIAL_PUBLISH"){Q=!0,X.tryRecordFocus(_e.payload.critical.draggable.id),ae(_e),X.tryRestoreFocusRecorded();return}if(ae(_e),!Q)return;if(_e.type==="FLUSH"){Q=!1,X.tryRestoreFocusRecorded();return}if(_e.type==="DROP_COMPLETE"){Q=!1;var Le=_e.payload.completed.result;Le.combine&&X.tryShiftRecord(Le.draggableId,Le.combine.draggableId),X.tryRestoreFocusRecorded()}}}}},Ta=function(Q){return Q.type==="DROP_COMPLETE"||Q.type==="DROP_ANIMATE"||Q.type==="FLUSH"},ha=function(X){return function(Q){return function(ae){return function(_e){if(Ta(_e)){X.stop(),ae(_e);return}if(_e.type==="INITIAL_PUBLISH"){ae(_e);var Le=Q.getState();Le.phase==="DRAGGING"||q(!1),X.start(Le);return}ae(_e),X.scroll(Q.getState())}}}},La=function(X){return function(Q){return function(ae){if(Q(ae),ae.type!=="PUBLISH_WHILE_DRAGGING")return;var _e=X.getState();if(_e.phase!=="DROP_PENDING")return;if(_e.isWaiting)return;X.dispatch(dt({reason:_e.reason}))}}},Na=y.d,Ba=function(X){var Q=X.dimensionMarshal,ae=X.focusMarshal,_e=X.styleMarshal,Le=X.getResponders,Ne=X.announce,ze=X.autoScroller;return Object(y.e)(Qt,Na(Object(y.a)($e(_e),ya(Q),Ie(Q),ta,nr,da,La,ha(ze),Bn,_a(ae),Pr(Le,Ne))))},ni=function(){return{additions:{},removals:{},modified:{}}};function Fi(X){var Q=X.registry,ae=X.callbacks,_e=ni(),Le=null,Ne=function(){if(Le)return;ae.collectionStarting(),Le=requestAnimationFrame(function(){Le=null,Ar();var Ft=_e,At=Ft.additions,Tt=Ft.removals,Nt=Ft.modified,hn=Object.keys(At).map(function(Lr){return Q.draggable.getById(Lr).getDimension(ke)}).sort(function(Lr,Kr){return Lr.descriptor.index-Kr.descriptor.index}),lr=Object.keys(Nt).map(function(Lr){var Kr=Q.droppable.getById(Lr),na=Kr.callbacks.getScrollWhileDragging();return{droppableId:Lr,scroll:na}}),pr={additions:hn,removals:Object.keys(Tt),modified:lr};_e=ni(),Mr(),ae.publish(pr)})},ze=function(Ft){var At=Ft.descriptor.id;_e.additions[At]=Ft,_e.modified[Ft.descriptor.droppableId]=!0,_e.removals[At]&&delete _e.removals[At],Ne()},Ve=function(Ft){var At=Ft.descriptor;_e.removals[At.id]=!0,_e.modified[At.droppableId]=!0,_e.additions[At.id]&&delete _e.additions[At.id],Ne()},Ct=function(){if(!Le)return;cancelAnimationFrame(Le),Le=null,_e=ni()};return{add:ze,remove:Ve,stop:Ct}}var Ai=function(X){var Q=X.scrollHeight,ae=X.scrollWidth,_e=X.height,Le=X.width,Ne=ot({x:ae,y:Q},{x:Le,y:_e}),ze={x:Math.max(0,Ne.x),y:Math.max(0,Ne.y)};return ze},Ia=function(){var X=document.documentElement;return X||q(!1),X},bi=function(){var X=Ia(),Q=Ai({scrollHeight:X.scrollHeight,scrollWidth:X.scrollWidth,width:X.clientWidth,height:X.clientHeight});return Q},Si=function(){var X=Kn(),Q=bi(),ae=X.y,_e=X.x,Le=Ia(),Ne=Le.clientWidth,ze=Le.clientHeight,Ve=_e+Ne,Ct=ae+ze,Ut=t({top:ae,left:_e,right:Ve,bottom:Ct}),Ft={frame:Ut,scroll:{initial:X,current:X,max:Q,diff:{value:ke,displacement:ke}}};return Ft},Ua=function(X){var Q=X.critical,ae=X.scrollOptions,_e=X.registry;Ar();var Le=Si(),Ne=Le.scroll.current,ze=Q.droppable,Ve=_e.droppable.getAllByType(ze.type).map(function(At){return At.callbacks.getDimensionAndWatchScroll(Ne,ae)}),Ct=_e.draggable.getAllByType(Q.draggable.type).map(function(At){return At.getDimension(Ne)}),Ut={draggables:an(Ct),droppables:Bt(Ve)};Mr();var Ft={dimensions:Ut,critical:Q,viewport:Le};return Ft};function Pa(X,Q,ae){if(ae.descriptor.id===Q.id)return!1;if(ae.descriptor.type!==Q.type)return!1;var _e=X.droppable.getById(ae.descriptor.droppableId);return!(_e.descriptor.mode!=="virtual")}var Za=function(X,Q){var ae=null,_e=Fi({callbacks:{publish:Q.publishWhileDragging,collectionStarting:Q.collectionStarting},registry:X}),Le=function(Nt,hn){if(X.droppable.exists(Nt)||q(!1),!ae)return;Q.updateDroppableIsEnabled({id:Nt,isEnabled:hn})},Ne=function(Nt,hn){if(!ae)return;X.droppable.exists(Nt)||q(!1),Q.updateDroppableIsCombineEnabled({id:Nt,isCombineEnabled:hn})},ze=function(Nt,hn){if(!ae)return;X.droppable.exists(Nt)||q(!1),Q.updateDroppableScroll({id:Nt,newScroll:hn})},Ve=function(Nt,hn){if(!ae)return;X.droppable.getById(Nt).callbacks.scroll(hn)},Ct=function(){if(!ae)return;_e.stop();var Nt=ae.critical.droppable;X.droppable.getAllByType(Nt.type).forEach(function(hn){return hn.callbacks.dragStopped()}),ae.unsubscribe(),ae=null},Ut=function(Nt){ae||q(!1);var hn=ae.critical.draggable;Nt.type==="ADDITION"&&(Pa(X,hn,Nt.value)&&_e.add(Nt.value)),Nt.type==="REMOVAL"&&(Pa(X,hn,Nt.value)&&_e.remove(Nt.value))},Ft=function(Nt){ae&&q(!1);var hn=X.draggable.getById(Nt.draggableId),lr=X.droppable.getById(hn.descriptor.droppableId),pr={draggable:hn.descriptor,droppable:lr.descriptor},Lr=X.subscribe(Ut);return ae={critical:pr,unsubscribe:Lr},Ua({critical:pr,registry:X,scrollOptions:Nt.scrollOptions})},At={updateDroppableIsEnabled:Le,updateDroppableIsCombineEnabled:Ne,scrollDroppable:Ve,updateDroppableScroll:ze,startPublishing:Ft,stopPublishing:Ct};return At},to=function(X,Q){return X.phase==="IDLE"?!0:X.phase!=="DROP_ANIMATING"||X.completed.result.draggableId===Q?!1:X.completed.result.reason==="DROP"},Mo=function(X){window.scrollBy(X.x,X.y)},Ii=T(function(X){return Kt(X).filter(function(Q){return Q.isEnabled?!!Q.frame:!1})}),no=function(Q,ae){var _e=st(Ii(ae),function(Le){return Le.frame||q(!1),vn(Le.frame.pageMarginBox)(Q)});return _e},ro=function(X){var Q=X.center,ae=X.destination,_e=X.droppables;if(ae){var Le=_e[ae];return Le.frame?Le:null}var Ne=no(Q,_e);return Ne},mi={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(Q){return Math.pow(Q,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},uo=function(X,Q){var ae=X[Q.size]*mi.startFromPercentage,_e=X[Q.size]*mi.maxScrollAtPercentage,Le={startScrollingFrom:ae,maxScrollValueAt:_e};return Le},Io=function(X){var Q=X.startOfRange,ae=X.endOfRange,_e=X.current,Le=ae-Q;if(Le===0)return 0;var Ne=_e-Q,ze=Ne/Le;return ze},Lo=1,bo=function(X,Q){if(X>Q.startScrollingFrom)return 0;if(X<=Q.maxScrollValueAt)return mi.maxPixelScroll;if(X===Q.startScrollingFrom)return Lo;var ae=Io({startOfRange:Q.maxScrollValueAt,endOfRange:Q.startScrollingFrom,current:X}),_e=1-ae,Le=mi.maxPixelScroll*mi.ease(_e);return Math.ceil(Le)},Vi=mi.durationDampening.accelerateAt,co=mi.durationDampening.stopDampeningAt,Xi=function(X,Q){var ae=Q,_e=co,Le=Date.now(),Ne=Le-ae;if(Ne>=co)return X;if(Ne<Vi)return Lo;var ze=Io({startOfRange:Vi,endOfRange:_e,current:Ne}),Ve=X*mi.ease(ze);return Math.ceil(Ve)},Yi=function(X){var Q=X.distanceToEdge,ae=X.thresholds,_e=X.dragStartTime,Le=X.shouldUseTimeDampening,Ne=bo(Q,ae);return Ne===0?0:Le?Math.max(Xi(Ne,_e),Lo):Ne},No=function(X){var Q=X.container,ae=X.distanceToEdges,_e=X.dragStartTime,Le=X.axis,Ne=X.shouldUseTimeDampening,ze=uo(Q,Le),Ve=ae[Le.end]<ae[Le.start];return Ve?Yi({distanceToEdge:ae[Le.end],thresholds:ze,dragStartTime:_e,shouldUseTimeDampening:Ne}):-1*Yi({distanceToEdge:ae[Le.start],thresholds:ze,dragStartTime:_e,shouldUseTimeDampening:Ne})},yo=function(X){var Q=X.container,ae=X.subject,_e=X.proposedScroll,Le=ae.height>Q.height,Ne=ae.width>Q.width;return!Ne&&!Le?_e:Ne&&Le?null:{x:Ne?0:_e.x,y:Le?0:_e.y}},ao=Ue(function(X){return X===0?0:X}),Ji=function(X){var Q=X.dragStartTime,ae=X.container,_e=X.subject,Le=X.center,Ne=X.shouldUseTimeDampening,ze={top:Le.y-ae.top,right:ae.right-Le.x,bottom:ae.bottom-Le.y,left:Le.x-ae.left},Ve=No({container:ae,distanceToEdges:ze,dragStartTime:Q,axis:bn,shouldUseTimeDampening:Ne}),Ct=No({container:ae,distanceToEdges:ze,dragStartTime:Q,axis:Cn,shouldUseTimeDampening:Ne}),Ut=ao({x:Ct,y:Ve});if(gt(Ut,ke))return null;var Ft=yo({container:ae,subject:_e,proposedScroll:Ut});return Ft?gt(Ft,ke)?null:Ft:null},Qi=Ue(function(X){return X===0?0:X>0?1:-1}),ei=function(){var X=function(ae,_e){return ae<0?ae:ae>_e?ae-_e:0};return function(Q){var ae=Q.current,_e=Q.max,Le=Q.change,Ne=tt(ae,Le),ze={x:X(Ne.x,_e.x),y:X(Ne.y,_e.y)};return gt(ze,ke)?null:ze}}(),Li=function(Q){var ae=Q.max,_e=Q.current,Le=Q.change,Ne={x:Math.max(_e.x,ae.x),y:Math.max(_e.y,ae.y)},ze=Qi(Le),Ve=ei({max:Ne,current:_e,change:ze});return Ve?ze.x!==0&&Ve.x===0?!0:ze.y!==0&&Ve.y===0:!0},Di=function(Q,ae){return Li({current:Q.scroll.current,max:Q.scroll.max,change:ae})},Zi=function(Q,ae){if(!Di(Q,ae))return null;var _e=Q.scroll.max,Le=Q.scroll.current;return ei({current:Le,max:_e,change:ae})},Ri=function(Q,ae){var _e=Q.frame;return _e?Li({current:_e.scroll.current,max:_e.scroll.max,change:ae}):!1},Eo=function(Q,ae){var _e=Q.frame;return _e&&Ri(Q,ae)?ei({current:_e.scroll.current,max:_e.scroll.max,change:ae}):null},xo=function(X){var Q=X.viewport,ae=X.subject,_e=X.center,Le=X.dragStartTime,Ne=X.shouldUseTimeDampening,ze=Ji({dragStartTime:Le,container:Q.frame,subject:ae,center:_e,shouldUseTimeDampening:Ne});return ze&&Di(Q,ze)?ze:null},Co=function(X){var Q=X.droppable,ae=X.subject,_e=X.center,Le=X.dragStartTime,Ne=X.shouldUseTimeDampening,ze=Q.frame;if(!ze)return null;var Ve=Ji({dragStartTime:Le,container:ze.pageMarginBox,subject:ae,center:_e,shouldUseTimeDampening:Ne});return Ve&&Ri(Q,Ve)?Ve:null},io=function(X){var Q=X.state,ae=X.dragStartTime,_e=X.shouldUseTimeDampening,Le=X.scrollWindow,Ne=X.scrollDroppable,ze=Q.current.page.borderBoxCenter,Ve=Q.dimensions.draggables[Q.critical.draggable.id],Ct=Ve.page.marginBox;if(Q.isWindowScrollAllowed){var Ut=Q.viewport,Ft=xo({dragStartTime:ae,viewport:Ut,subject:Ct,center:ze,shouldUseTimeDampening:_e});if(Ft){Le(Ft);return}}var At=ro({center:ze,destination:Wt(Q.impact),droppables:Q.dimensions.droppables});if(!At)return;var Tt=Co({dragStartTime:ae,droppable:At,subject:Ct,center:ze,shouldUseTimeDampening:_e});Tt&&Ne(At.descriptor.id,Tt)},Ni=function(X){var Q=X.scrollWindow,ae=X.scrollDroppable,_e=D(Q),Le=D(ae),Ne=null,ze=function(Ft){Ne||q(!1);var At=Ne,Tt=At.shouldUseTimeDampening,Nt=At.dragStartTime;io({state:Ft,scrollWindow:_e,scrollDroppable:Le,dragStartTime:Nt,shouldUseTimeDampening:Tt})},Ve=function(Ft){Ar(),Ne&&q(!1);var At=Date.now(),Tt=!1,Nt=function(){Tt=!0};io({state:Ft,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:Nt,scrollDroppable:Nt}),Ne={dragStartTime:At,shouldUseTimeDampening:Tt},Mr(),Tt&&ze(Ft)},Ct=function(){if(!Ne)return;_e.cancel(),Le.cancel(),Ne=null};return{start:Ve,stop:Ct,scroll:ze}},qi=function(X){var Q=X.move,ae=X.scrollDroppable,_e=X.scrollWindow,Le=function(Ut,Ft){var At=tt(Ut.current.client.selection,Ft);Q({client:At})},Ne=function(Ut,Ft){if(!Ri(Ut,Ft))return Ft;var At=Eo(Ut,Ft);if(!At)return ae(Ut.descriptor.id,Ft),null;var Tt=ot(Ft,At);ae(Ut.descriptor.id,Tt);var Nt=ot(Ft,Tt);return Nt},ze=function(Ut,Ft,At){if(!Ut)return At;if(!Di(Ft,At))return At;var Tt=Zi(Ft,At);if(!Tt)return _e(At),null;var Nt=ot(At,Tt);_e(Nt);var hn=ot(At,Nt);return hn},Ve=function(Ut){var Ft=Ut.scrollJumpRequest;if(!Ft)return;var At=Wt(Ut.impact);At||q(!1);var Tt=Ne(Ut.dimensions.droppables[At],Ft);if(!Tt)return;var Nt=Ut.viewport,hn=ze(Ut.isWindowScrollAllowed,Nt,Tt);if(!hn)return;Le(Ut,hn)};return Ve},ko=function(X){var Q=X.scrollDroppable,ae=X.scrollWindow,_e=X.move,Le=Ni({scrollWindow:ae,scrollDroppable:Q}),Ne=qi({move:_e,scrollWindow:ae,scrollDroppable:Q}),ze=function(Ut){if(Ut.phase!=="DRAGGING")return;if(Ut.movementMode==="FLUID"){Le.scroll(Ut);return}if(!Ut.scrollJumpRequest)return;Ne(Ut)},Ve={scroll:ze,start:Le.start,stop:Le.stop};return Ve},oo="data-rbd",so=function(){var X=oo+"-drag-handle";return{base:X,draggableId:X+"-draggable-id",contextId:X+"-context-id"}}(),So=function(){var X=oo+"-draggable";return{base:X,contextId:X+"-context-id",id:X+"-id"}}(),Uo=function(){var X=oo+"-droppable";return{base:X,contextId:X+"-context-id",id:X+"-id"}}(),jo={contextId:oo+"-scroll-container-context-id"},fi=function(Q){return function(ae){return"["+ae+'="'+Q+'"]'}},Wa=function(Q,ae){return Q.map(function(_e){var Le=_e.styles[ae];return Le?_e.selector+" { "+Le+" }":""}).join(" ")},ri="pointer-events: none;",Xa=function(X){var Q=fi(X),ae=function(){var Ve=`
cursor: -webkit-grab;
cursor: grab;
`;return{selector:Q(so.contextId),styles:{always:`
-webkit-touch-callout: none;
-webkit-tap-highlight-color: rgba(0,0,0,0);
touch-action: manipulation;
`,resting:Ve,dragging:ri,dropAnimating:Ve}}}(),_e=function(){var Ve=`
transition: `+Vt.outOfTheWay+`;
`;return{selector:Q(So.contextId),styles:{dragging:Ve,dropAnimating:Ve,userCancel:Ve}}}(),Le={selector:Q(Uo.contextId),styles:{always:"overflow-anchor: none;"}},Ne={selector:"body",styles:{dragging:`
cursor: grabbing;
cursor: -webkit-grabbing;
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
overflow-anchor: none;
`}},ze=[_e,ae,Le,Ne];return{always:Wa(ze,"always"),resting:Wa(ze,"resting"),dragging:Wa(ze,"dragging"),dropAnimating:Wa(ze,"dropAnimating"),userCancel:Wa(ze,"userCancel")}},ai=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?L.useLayoutEffect:L.useEffect,Oo=function(){var Q=document.querySelector("head");return Q||q(!1),Q},yi=function(Q){var ae=document.createElement("style");return Q&&ae.setAttribute("nonce",Q),ae.type="text/css",ae};function Bo(X,Q){var ae=d(function(){return Xa(X)},[X]),_e=Object(L.useRef)(null),Le=Object(L.useRef)(null),Ne=r(T(function(At){var Tt=Le.current;Tt||q(!1),Tt.textContent=At}),[]),ze=r(function(At){var Tt=_e.current;Tt||q(!1),Tt.textContent=At},[]);ai(function(){!_e.current&&!Le.current||q(!1);var At=yi(Q),Tt=yi(Q);return _e.current=At,Le.current=Tt,At.setAttribute(oo+"-always",X),Tt.setAttribute(oo+"-dynamic",X),Oo().appendChild(At),Oo().appendChild(Tt),ze(ae.always),Ne(ae.resting),function(){var Nt=function(lr){var pr=lr.current;pr||q(!1),Oo().removeChild(pr),lr.current=null};Nt(_e),Nt(Le)}},[Q,ze,Ne,ae.always,ae.resting,X]);var Ve=r(function(){return Ne(ae.dragging)},[Ne,ae.dragging]),Ct=r(function(At){if(At==="DROP"){Ne(ae.dropAnimating);return}Ne(ae.userCancel)},[Ne,ae.dropAnimating,ae.userCancel]),Ut=r(function(){if(!Le.current)return;Ne(ae.resting)},[Ne,ae.resting]),Ft=d(function(){return{dragging:Ve,dropping:Ct,resting:Ut}},[Ve,Ct,Ut]);return Ft}var To=function(X){return X&&X.ownerDocument?X.ownerDocument.defaultView:window};function $i(X){return X instanceof To(X).HTMLElement}function Wi(X,Q){var ae="["+so.contextId+'="'+X+'"]',_e=Ot(document.querySelectorAll(ae));if(!_e.length)return null;var Le=st(_e,function(Ne){return Ne.getAttribute(so.draggableId)===Q});return Le&&$i(Le)?Le:null}function wo(X){var Q=Object(L.useRef)({}),ae=Object(L.useRef)(null),_e=Object(L.useRef)(null),Le=Object(L.useRef)(!1),Ne=r(function(Tt,Nt){var hn={id:Tt,focus:Nt};return Q.current[Tt]=hn,function(){var pr=Q.current,Lr=pr[Tt];Lr!==hn&&delete pr[Tt]}},[]),ze=r(function(Tt){var Nt=Wi(X,Tt);Nt&&Nt!==document.activeElement&&Nt.focus()},[X]),Ve=r(function(Tt,Nt){ae.current===Tt&&(ae.current=Nt)},[]),Ct=r(function(){if(_e.current)return;if(!Le.current)return;_e.current=requestAnimationFrame(function(){_e.current=null;var Tt=ae.current;Tt&&ze(Tt)})},[ze]),Ut=r(function(Tt){ae.current=null;var Nt=document.activeElement;if(!Nt)return;if(Nt.getAttribute(so.draggableId)!==Tt)return;ae.current=Tt},[]);ai(function(){return Le.current=!0,function(){Le.current=!1;var Tt=_e.current;Tt&&cancelAnimationFrame(Tt)}},[]);var Ft=d(function(){return{register:Ne,tryRecordFocus:Ut,tryRestoreFocusRecorded:Ct,tryShiftRecord:Ve}},[Ne,Ut,Ct,Ve]);return Ft}function fo(){var X={draggables:{},droppables:{}},Q=[];function ae(At){return Q.push(At),function(){var Nt=Q.indexOf(At);if(Nt===-1)return;Q.splice(Nt,1)}}function _e(At){Q.length&&Q.forEach(function(Tt){return Tt(At)})}function Le(At){return X.draggables[At]||null}function Ne(At){var Tt=Le(At);return Tt||q(!1),Tt}var ze={register:function(Tt){X.draggables[Tt.descriptor.id]=Tt,_e({type:"ADDITION",value:Tt})},update:function(Tt,Nt){var hn=X.draggables[Nt.descriptor.id];if(!hn)return;if(hn.uniqueId!==Tt.uniqueId)return;delete X.draggables[Nt.descriptor.id],X.draggables[Tt.descriptor.id]=Tt},unregister:function(Tt){var Nt=Tt.descriptor.id,hn=Le(Nt);if(!hn)return;if(Tt.uniqueId!==hn.uniqueId)return;delete X.draggables[Nt],_e({type:"REMOVAL",value:Tt})},getById:Ne,findById:Le,exists:function(Tt){return Boolean(Le(Tt))},getAllByType:function(Tt){return We(X.draggables).filter(function(Nt){return Nt.descriptor.type===Tt})}};function Ve(At){return X.droppables[At]||null}function Ct(At){var Tt=Ve(At);return Tt||q(!1),Tt}var Ut={register:function(Tt){X.droppables[Tt.descriptor.id]=Tt},unregister:function(Tt){var Nt=Ve(Tt.descriptor.id);if(!Nt)return;if(Tt.uniqueId!==Nt.uniqueId)return;delete X.droppables[Tt.descriptor.id]},getById:Ct,findById:Ve,exists:function(Tt){return Boolean(Ve(Tt))},getAllByType:function(Tt){return We(X.droppables).filter(function(Nt){return Nt.descriptor.type===Tt})}};function Ft(){X.draggables={},X.droppables={},Q.length=0}return{draggable:ze,droppable:Ut,subscribe:ae,clean:Ft}}function Wo(){var X=d(fo,[]);return Object(L.useEffect)(function(){return function(){requestAnimationFrame(X.clean)}},[X]),X}var lo=g.a.createContext(null),wa=function(){var X=document.body;return X||q(!1),X},ba={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Ka=function(Q){return"rbd-announcement-"+Q};function ui(X){var Q=d(function(){return Ka(X)},[X]),ae=Object(L.useRef)(null);Object(L.useEffect)(function(){var Ne=document.createElement("div");return ae.current=Ne,Ne.id=Q,Ne.setAttribute("aria-live","assertive"),Ne.setAttribute("aria-atomic","true"),Object(b.a)(Ne.style,ba),wa().appendChild(Ne),function(){setTimeout(function(){var Ct=wa();Ct.contains(Ne)&&Ct.removeChild(Ne),Ne===ae.current&&(ae.current=null)})}},[Q]);var _e=r(function(Le){var Ne=ae.current;if(Ne){Ne.textContent=Le;return}},[]);return _e}var eo=0,ki={separator:"::"};function ho(){eo=0}function Oi(X,Q){return Q===void 0&&(Q=ki),d(function(){return""+X+Q.separator+eo++},[Q.separator,X])}function qa(X){var Q=X.contextId,ae=X.uniqueId;return"rbd-hidden-text-"+Q+"-"+ae}function po(X){var Q=X.contextId,ae=X.text,_e=Oi("hidden-text",{separator:"-"}),Le=d(function(){return qa({contextId:Q,uniqueId:_e})},[_e,Q]);return Object(L.useEffect)(function(){var ze=document.createElement("div");return ze.id=Le,ze.textContent=ae,ze.style.display="none",wa().appendChild(ze),function(){var Ct=wa();Ct.contains(ze)&&Ct.removeChild(ze)}},[Le,ae]),Le}var Hi=g.a.createContext(null),mo={react:"^16.8.5","react-dom":"^16.8.5"},hi=/(\d+)\.(\d+)\.(\d+)/,Da=function(Q){var ae=hi.exec(Q);ae!=null||q(!1);var _e=Number(ae[1]),Le=Number(ae[2]),Ne=Number(ae[3]);return{major:_e,minor:Le,patch:Ne,raw:Q}},ia=function(Q,ae){return ae.major>Q.major?!0:ae.major<Q.major?!1:ae.minor>Q.minor?!0:ae.minor<Q.minor?!1:ae.patch>=Q.patch},Er=function(X,Q){var ae=Da(X),_e=Da(Q);if(ia(ae,_e))return},Qr=`
We expect a html5 doctype: <!doctype html>
This is to ensure consistent browser layout and measurement
More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/doctype.md
`,ma=function(X){var Q=X.doctype;if(!Q)return;Q.name.toLowerCase()!=="html",Q.publicId!==""};function Fa(X){}function Ei(X,Q){Fa(function(){Object(L.useEffect)(function(){try{X()}catch(ae){xe(`
A setup problem was encountered.
> `+ae.message+`
`)}},Q)})}function Pi(){Ei(function(){Er(mo.react,g.a.version),ma(document)},[])}function $a(X){var Q=Object(L.useRef)(X);return Object(L.useEffect)(function(){Q.current=X}),Q}function xi(){var X=null;function Q(){return Boolean(X)}function ae(ze){return ze===X}function _e(ze){X&&q(!1);var Ve={abandon:ze};return X=Ve,Ve}function Le(){X||q(!1),X=null}function Ne(){X&&(X.abandon(),Le())}return{isClaimed:Q,isActive:ae,claim:_e,release:Le,tryAbandon:Ne}}var Ki=9,go=13,Qa=27,As=32,Ys=33,Pl=34,hs=35,Ds=36,Js=37,Ml=38,Qs=39,Il=40,ps,ms=(ps={},ps[go]=!0,ps[Ki]=!0,ps),Rs=function(X){ms[X.keyCode]&&X.preventDefault()},gs=function(){var X="visibilitychange";if(typeof document=="undefined")return X;var Q=[X,"ms"+X,"webkit"+X,"moz"+X,"o"+X],ae=st(Q,function(_e){return"on"+_e in document});return ae||X}(),Zs=0,Ps=5;function Ho(X,Q){return Math.abs(Q.x-X.x)>=Ps||Math.abs(Q.y-X.y)>=Ps}var vs={type:"IDLE"};function _s(X){var Q=X.cancel,ae=X.completed,_e=X.getPhase,Le=X.setPhase;return[{eventName:"mousemove",fn:function(ze){var Ve=ze.button,Ct=ze.clientX,Ut=ze.clientY;if(Ve!==Zs)return;var Ft={x:Ct,y:Ut},At=_e();if(At.type==="DRAGGING"){ze.preventDefault(),At.actions.move(Ft);return}At.type==="PENDING"||q(!1);var Tt=At.point;if(!Ho(Tt,Ft))return;ze.preventDefault();var Nt=At.actions.fluidLift(Ft);Le({type:"DRAGGING",actions:Nt})}},{eventName:"mouseup",fn:function(ze){var Ve=_e();if(Ve.type!=="DRAGGING"){Q();return}ze.preventDefault(),Ve.actions.drop({shouldBlockNextClick:!0}),ae()}},{eventName:"mousedown",fn:function(ze){_e().type==="DRAGGING"&&ze.preventDefault(),Q()}},{eventName:"keydown",fn:function(ze){var Ve=_e();if(Ve.type==="PENDING"){Q();return}if(ze.keyCode===Qa){ze.preventDefault(),Q();return}Rs(ze)}},{eventName:"resize",fn:Q},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){_e().type==="PENDING"&&Q()}},{eventName:"webkitmouseforcedown",fn:function(ze){var Ve=_e();if(Ve.type!=="IDLE"||q(!1),Ve.actions.shouldRespectForcePress()){Q();return}ze.preventDefault()}},{eventName:gs,fn:Q}]}function $s(X){var Q=Object(L.useRef)(vs),ae=Object(L.useRef)(Oe),_e=d(function(){return{eventName:"mousedown",fn:function(At){if(At.defaultPrevented)return;if(At.button!==Zs)return;if(At.ctrlKey||At.metaKey||At.shiftKey||At.altKey)return;var Tt=X.findClosestDraggableId(At);if(!Tt)return;var Nt=X.tryGetLock(Tt,ze,{sourceEvent:At});if(!Nt)return;At.preventDefault();var hn={x:At.clientX,y:At.clientY};ae.current(),Ut(Nt,hn)}}},[X]),Le=d(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(At){if(At.defaultPrevented)return;var Tt=X.findClosestDraggableId(At);if(!Tt)return;var Nt=X.findOptionsForDraggable(Tt);if(!Nt)return;if(Nt.shouldRespectForcePress)return;if(!X.canGetLock(Tt))return;At.preventDefault()}}},[X]),Ne=r(function(){var At={passive:!1,capture:!0};ae.current=be(window,[Le,_e],At)},[Le,_e]),ze=r(function(){var Ft=Q.current;if(Ft.type==="IDLE")return;Q.current=vs,ae.current(),Ne()},[Ne]),Ve=r(function(){var Ft=Q.current;ze(),Ft.type==="DRAGGING"&&Ft.actions.cancel({shouldBlockNextClick:!0}),Ft.type==="PENDING"&&Ft.actions.abort()},[ze]),Ct=r(function(){var At={capture:!0,passive:!1},Tt=_s({cancel:Ve,completed:ze,getPhase:function(){return Q.current},setPhase:function(hn){Q.current=hn}});ae.current=be(window,Tt,At)},[Ve,ze]),Ut=r(function(At,Tt){Q.current.type==="IDLE"||q(!1),Q.current={type:"PENDING",point:Tt,actions:At},Ct()},[Ct]);ai(function(){return Ne(),function(){ae.current()}},[Ne])}var Ao;function el(){}var Ll=(Ao={},Ao[Pl]=!0,Ao[Ys]=!0,Ao[Ds]=!0,Ao[hs]=!0,Ao);function tl(X,Q){function ae(){Q(),X.cancel()}function _e(){Q(),X.drop()}return[{eventName:"keydown",fn:function(Ne){if(Ne.keyCode===Qa){Ne.preventDefault(),ae();return}if(Ne.keyCode===As){Ne.preventDefault(),_e();return}if(Ne.keyCode===Il){Ne.preventDefault(),X.moveDown();return}if(Ne.keyCode===Ml){Ne.preventDefault(),X.moveUp();return}if(Ne.keyCode===Qs){Ne.preventDefault(),X.moveRight();return}if(Ne.keyCode===Js){Ne.preventDefault(),X.moveLeft();return}if(Ll[Ne.keyCode]){Ne.preventDefault();return}Rs(Ne)}},{eventName:"mousedown",fn:ae},{eventName:"mouseup",fn:ae},{eventName:"click",fn:ae},{eventName:"touchstart",fn:ae},{eventName:"resize",fn:ae},{eventName:"wheel",fn:ae,options:{passive:!0}},{eventName:gs,fn:ae}]}function gi(X){var Q=Object(L.useRef)(el),ae=d(function(){return{eventName:"keydown",fn:function(Ne){if(Ne.defaultPrevented)return;if(Ne.keyCode!==As)return;var ze=X.findClosestDraggableId(Ne);if(!ze)return;var Ve=X.tryGetLock(ze,Ft,{sourceEvent:Ne});if(!Ve)return;Ne.preventDefault();var Ct=!0,Ut=Ve.snapLift();Q.current();function Ft(){Ct||q(!1),Ct=!1,Q.current(),_e()}Q.current=be(window,tl(Ut,Ft),{capture:!0,passive:!1})}}},[X]),_e=r(function(){var Ne={passive:!1,capture:!0};Q.current=be(window,[ae],Ne)},[ae]);ai(function(){return _e(),function(){Q.current()}},[_e])}var Ko={type:"IDLE"},nl=120,rl=.15;function al(X){var Q=X.cancel,ae=X.getPhase;return[{eventName:"orientationchange",fn:Q},{eventName:"resize",fn:Q},{eventName:"contextmenu",fn:function(Le){Le.preventDefault()}},{eventName:"keydown",fn:function(Le){if(ae().type!=="DRAGGING"){Q();return}Le.keyCode===Qa&&Le.preventDefault(),Q()}},{eventName:gs,fn:Q}]}function Go(X){var Q=X.cancel,ae=X.completed,_e=X.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(Ne){var ze=_e();if(ze.type!=="DRAGGING"){Q();return}ze.hasMoved=!0;var Ve=Ne.touches[0],Ct=Ve.clientX,Ut=Ve.clientY,Ft={x:Ct,y:Ut};Ne.preventDefault(),ze.actions.move(Ft)}},{eventName:"touchend",fn:function(Ne){var ze=_e();if(ze.type!=="DRAGGING"){Q();return}Ne.preventDefault(),ze.actions.drop({shouldBlockNextClick:!0}),ae()}},{eventName:"touchcancel",fn:function(Ne){if(_e().type!=="DRAGGING"){Q();return}Ne.preventDefault(),Q()}},{eventName:"touchforcechange",fn:function(Ne){var ze=_e();ze.type!=="IDLE"||q(!1);var Ve=Ne.touches[0];if(!Ve)return;var Ct=Ve.force>=rl;if(!Ct)return;var Ut=ze.actions.shouldRespectForcePress();if(ze.type==="PENDING"){Ut&&Q();return}if(Ut){if(ze.hasMoved){Ne.preventDefault();return}Q();return}Ne.preventDefault()}},{eventName:gs,fn:Q}]}function bs(X){var Q=Object(L.useRef)(Ko),ae=Object(L.useRef)(Oe),_e=r(function(){return Q.current},[]),Le=r(function(Nt){Q.current=Nt},[]),Ne=d(function(){return{eventName:"touchstart",fn:function(Nt){if(Nt.defaultPrevented)return;var hn=X.findClosestDraggableId(Nt);if(!hn)return;var lr=X.tryGetLock(hn,Ve,{sourceEvent:Nt});if(!lr)return;var pr=Nt.touches[0],Lr=pr.clientX,Kr=pr.clientY,na={x:Lr,y:Kr};ae.current(),At(lr,na)}}},[X]),ze=r(function(){var Nt={capture:!0,passive:!1};ae.current=be(window,[Ne],Nt)},[Ne]),Ve=r(function(){var Tt=Q.current;if(Tt.type==="IDLE")return;Tt.type==="PENDING"&&clearTimeout(Tt.longPressTimerId),Le(Ko),ae.current(),ze()},[ze,Le]),Ct=r(function(){var Tt=Q.current;Ve(),Tt.type==="DRAGGING"&&Tt.actions.cancel({shouldBlockNextClick:!0}),Tt.type==="PENDING"&&Tt.actions.abort()},[Ve]),Ut=r(function(){var Nt={capture:!0,passive:!1},hn={cancel:Ct,completed:Ve,getPhase:_e},lr=be(window,Go(hn),Nt),pr=be(window,al(hn),Nt);ae.current=function(){lr(),pr()}},[Ct,_e,Ve]),Ft=r(function(){var Nt=_e();Nt.type==="PENDING"||q(!1);var hn=Nt.actions.fluidLift(Nt.point);Le({type:"DRAGGING",actions:hn,hasMoved:!1})},[_e,Le]),At=r(function(Nt,hn){_e().type==="IDLE"||q(!1);var lr=setTimeout(Ft,nl);Le({type:"PENDING",point:hn,actions:Nt,longPressTimerId:lr}),Ut()},[Ut,_e,Le,Ft]);ai(function(){return ze(),function(){ae.current();var hn=_e();hn.type==="PENDING"&&(clearTimeout(hn.longPressTimerId),Le(Ko))}},[_e,ze,Le]),ai(function(){var Nt=be(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return Nt},[])}function il(X){Fa(function(){var Q=$a(X);Ei(function(){Q.current.length===X.length||q(!1)})})}var ol={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Ms(X,Q){if(Q==null)return!1;var ae=Boolean(ol[Q.tagName.toLowerCase()]);if(ae)return!0;var _e=Q.getAttribute("contenteditable");return _e==="true"||_e===""?!0:Q===X?!1:Ms(X,Q.parentElement)}function zo(X,Q){var ae=Q.target;return $i(ae)?Ms(X,ae):!1}var sl=function(X){return t(X.getBoundingClientRect()).center};function ys(X){return X instanceof To(X).Element}var ll=function(){var X="matches";if(typeof document=="undefined")return X;var Q=[X,"msMatchesSelector","webkitMatchesSelector"],ae=st(Q,function(_e){return _e in Element.prototype});return ae||X}();function Vo(X,Q){return X==null?null:X[ll](Q)?X:Vo(X.parentElement,Q)}function Nl(X,Q){return X.closest?X.closest(Q):Vo(X,Q)}function Xo(X){return"["+so.contextId+'="'+X+'"]'}function ul(X,Q){var ae=Q.target;if(!ys(ae))return null;var _e=Xo(X),Le=Nl(ae,_e);return Le&&$i(Le)?Le:null}function cl(X,Q){var ae=ul(X,Q);return ae?ae.getAttribute(so.draggableId):null}function dl(X,Q){var ae="["+So.contextId+'="'+X+'"]',_e=Ot(document.querySelectorAll(ae)),Le=st(_e,function(Ne){return Ne.getAttribute(So.id)===Q});return Le&&$i(Le)?Le:null}function ts(X){X.preventDefault()}function Do(X){var Q=X.expected,ae=X.phase,_e=X.isLockActive,Le=X.shouldWarn;return _e()?!(Q!==ae):!1}function Yo(X){var Q=X.lockAPI,ae=X.store,_e=X.registry,Le=X.draggableId;if(Q.isClaimed())return!1;var Ne=_e.draggable.findById(Le);return Ne&&Ne.options.isEnabled?!!to(ae.getState(),Le):!1}function ns(X){var Q=X.lockAPI,ae=X.contextId,_e=X.store,Le=X.registry,Ne=X.draggableId,ze=X.forceSensorStop,Ve=X.sourceEvent,Ct=Yo({lockAPI:Q,store:_e,registry:Le,draggableId:Ne});if(!Ct)return null;var Ut=Le.draggable.getById(Ne),Ft=dl(ae,Ut.descriptor.id);if(!Ft)return null;if(Ve&&!Ut.options.canDragInteractiveElements&&zo(Ft,Ve))return null;var At=Q.claim(ze||Oe),Tt="PRE_DRAG";function Nt(){return Ut.options.shouldRespectForcePress}function hn(){return Q.isActive(At)}function lr(Aa,Ga){Do({expected:Aa,phase:Tt,isLockActive:hn,shouldWarn:!0})&&_e.dispatch(Ga())}var pr=lr.bind(null,"DRAGGING");function Lr(Aa){function Ga(){Q.release(),Tt="COMPLETED"}Tt!=="PRE_DRAG"&&(Ga(),Tt==="PRE_DRAG"||q(!1)),_e.dispatch(zn(Aa.liftActionArgs)),Tt="DRAGGING";function si(e,c){if(c===void 0&&(c={shouldBlockNextClick:!1}),Aa.cleanup(),c.shouldBlockNextClick){var j=be(window,[{eventName:"click",fn:ts,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(j)}Ga(),_e.dispatch(dt({reason:e}))}return Object(b.a)({isActive:function(){return Do({expected:"DRAGGING",phase:Tt,isLockActive:hn,shouldWarn:!1})},shouldRespectForcePress:Nt,drop:function(c){return si("DROP",c)},cancel:function(c){return si("CANCEL",c)}},Aa.actions)}function Kr(Aa){var Ga=D(function(e){pr(function(){return sr({client:e})})}),si=Lr({liftActionArgs:{id:Ne,clientSelection:Aa,movementMode:"FLUID"},cleanup:function(){return Ga.cancel()},actions:{move:Ga}});return Object(b.a)({},si,{move:Ga})}function na(){var Aa={moveUp:function(){return pr(gr)},moveRight:function(){return pr(Hr)},moveDown:function(){return pr(Cr)},moveLeft:function(){return pr(Yr)}};return Lr({liftActionArgs:{id:Ne,clientSelection:sl(Ft),movementMode:"SNAP"},cleanup:Oe,actions:Aa})}function Wr(){var Aa=Do({expected:"PRE_DRAG",phase:Tt,isLockActive:hn,shouldWarn:!0});Aa&&Q.release()}var Ma={isActive:function(){return Do({expected:"PRE_DRAG",phase:Tt,isLockActive:hn,shouldWarn:!1})},shouldRespectForcePress:Nt,fluidLift:Kr,snapLift:na,abort:Wr};return Ma}var fl=[$s,gi,bs];function kl(X){var Q=X.contextId,ae=X.store,_e=X.registry,Le=X.customSensors,Ne=X.enableDefaultSensors,ze=[].concat(Ne?fl:[],Le||[]),Ve=Object(L.useState)(function(){return xi()})[0],Ct=r(function(Kr,na){Kr.isDragging&&!na.isDragging&&Ve.tryAbandon()},[Ve]);ai(function(){var Kr=ae.getState(),na=ae.subscribe(function(){var Wr=ae.getState();Ct(Kr,Wr),Kr=Wr});return na},[Ve,ae,Ct]),ai(function(){return Ve.tryAbandon},[Ve.tryAbandon]);var Ut=r(function(Lr){return Yo({lockAPI:Ve,registry:_e,store:ae,draggableId:Lr})},[Ve,_e,ae]),Ft=r(function(Lr,Kr,na){return ns({lockAPI:Ve,registry:_e,contextId:Q,store:ae,draggableId:Lr,forceSensorStop:Kr,sourceEvent:na&&na.sourceEvent?na.sourceEvent:null})},[Q,Ve,_e,ae]),At=r(function(Lr){return cl(Q,Lr)},[Q]),Tt=r(function(Lr){var Kr=_e.draggable.findById(Lr);return Kr?Kr.options:null},[_e.draggable]),Nt=r(function(){if(!Ve.isClaimed())return;Ve.tryAbandon(),ae.getState().phase!=="IDLE"&&ae.dispatch(Oa())},[Ve,ae]),hn=r(Ve.isClaimed,[Ve]),lr=d(function(){return{canGetLock:Ut,tryGetLock:Ft,findClosestDraggableId:At,findOptionsForDraggable:Tt,tryReleaseLock:Nt,isLockClaimed:hn}},[Ut,Ft,At,Tt,Nt,hn]);il(ze);for(var pr=0;pr<ze.length;pr++)ze[pr](lr)}var hl=function(Q){return{onBeforeCapture:Q.onBeforeCapture,onBeforeDragStart:Q.onBeforeDragStart,onDragStart:Q.onDragStart,onDragEnd:Q.onDragEnd,onDragUpdate:Q.onDragUpdate}};function Gi(X){return X.current||q(!1),X.current}function Jo(X){var Q=X.contextId,ae=X.setCallbacks,_e=X.sensors,Le=X.nonce,Ne=X.dragHandleUsageInstructions,ze=Object(L.useRef)(null);Pi();var Ve=$a(X),Ct=r(function(){return hl(Ve.current)},[Ve]),Ut=ui(Q),Ft=po({contextId:Q,text:Ne}),At=Bo(Q,Le),Tt=r(function(e){Gi(ze).dispatch(e)},[]),Nt=d(function(){return Object(y.b)({publishWhileDragging:Ln,updateDroppableScroll:ur,updateDroppableIsEnabled:or,updateDroppableIsCombineEnabled:Zr,collectionStarting:ar},Tt)},[Tt]),hn=Wo(),lr=d(function(){return Za(hn,Nt)},[hn,Nt]),pr=d(function(){return ko(Object(b.a)({scrollWindow:Mo,scrollDroppable:lr.scrollDroppable},Object(y.b)({move:sr},Tt)))},[lr.scrollDroppable,Tt]),Lr=wo(Q),Kr=d(function(){return Ba({announce:Ut,autoScroller:pr,dimensionMarshal:lr,focusMarshal:Lr,getResponders:Ct,styleMarshal:At})},[Ut,pr,lr,Lr,Ct,At]);ze.current=Kr;var na=r(function(){var e=Gi(ze),c=e.getState();c.phase!=="IDLE"&&e.dispatch(Oa())},[]),Wr=r(function(){var e=Gi(ze).getState();return e.isDragging||e.phase==="DROP_ANIMATING"},[]),Ma=d(function(){return{isDragging:Wr,tryAbort:na}},[Wr,na]);ae(Ma);var Aa=r(function(e){return to(Gi(ze).getState(),e)},[]),Ga=r(function(){return en(Gi(ze).getState())},[]),si=d(function(){return{marshal:lr,focus:Lr,contextId:Q,canLift:Aa,isMovementAllowed:Ga,dragHandleUsageInstructionsId:Ft,registry:hn}},[Q,lr,Ft,Lr,Aa,Ga,hn]);return kl({contextId:Q,store:Kr,registry:hn,customSensors:_e,enableDefaultSensors:X.enableDefaultSensors!==!1}),Object(L.useEffect)(function(){return na},[na]),g.a.createElement(Hi.Provider,{value:si},g.a.createElement(x.a,{context:lo,store:Kr},X.children))}var Qo=0;function Ul(){Qo=0}function pl(){return d(function(){return""+Qo++},[])}function iu(){Ul(),ho()}function jl(X){var Q=pl(),ae=X.dragHandleUsageInstructions||Te.dragHandleUsageInstructions;return g.a.createElement(me,null,function(_e){return g.a.createElement(Jo,{nonce:X.nonce,contextId:Q,setCallbacks:_e,dragHandleUsageInstructions:ae,enableDefaultSensors:X.enableDefaultSensors,sensors:X.sensors,onBeforeCapture:X.onBeforeCapture,onBeforeDragStart:X.onBeforeDragStart,onDragStart:X.onDragStart,onDragUpdate:X.onDragUpdate,onDragEnd:X.onDragEnd},X.children)})}var Is=function(Q){return function(ae){return Q===ae}},Ti=Is("scroll"),ml=Is("auto"),Bl=Is("visible"),gl=function(Q,ae){return ae(Q.overflowX)||ae(Q.overflowY)},Fl=function(Q,ae){return ae(Q.overflowX)&&ae(Q.overflowY)},Ls=function(Q){var ae=window.getComputedStyle(Q),_e={overflowX:ae.overflowX,overflowY:ae.overflowY};return gl(_e,Ti)||gl(_e,ml)},vl=function(){return!1;var Q,ae;if(!Ls(Q))return!1;var _e,Le;if(Fl(Le,Bl))return!1},Ns=function X(Q){return Q==null?null:Q===document.body?vl()?Q:null:Q===document.documentElement?null:Ls(Q)?Q:X(Q.parentElement)},ou=function(X){if(!X)return;var Q=Ns(X.parentElement);if(!Q)return},ks=function(X){return{x:X.scrollLeft,y:X.scrollTop}},Wl=function X(Q){if(!Q)return!1;var ae=window.getComputedStyle(Q);return ae.position==="fixed"?!0:X(Q.parentElement)},Ro=function(X){var Q=Ns(X),ae=Wl(X);return{closestScrollable:Q,isFixedOnPage:ae}},rs=function(X){var Q=X.descriptor,ae=X.isEnabled,_e=X.isCombineEnabled,Le=X.isFixedOnPage,Ne=X.direction,ze=X.client,Ve=X.page,Ct=X.closest,Ut=function(){if(!Ct)return null;var Nt=Ct.scrollSize,hn=Ct.client,lr=Ai({scrollHeight:Nt.scrollHeight,scrollWidth:Nt.scrollWidth,height:hn.paddingBox.height,width:hn.paddingBox.width});return{pageMarginBox:Ct.page.marginBox,frameClient:hn,scrollSize:Nt,shouldClipSubject:Ct.shouldClipSubject,scroll:{initial:Ct.scroll,current:Ct.scroll,max:lr,diff:{value:ke,displacement:ke}}}}(),Ft=Ne==="vertical"?bn:Cn,At=Ee({page:Ve,withPlaceholder:null,axis:Ft,frame:Ut}),Tt={descriptor:Q,isCombineEnabled:_e,isFixedOnPage:Le,axis:Ft,isEnabled:ae,client:ze,page:Ve,frame:Ut,subject:At};return Tt},Es=function(Q,ae){var _e=P(Q);if(!ae)return _e;if(Q!==ae)return _e;var Le=_e.paddingBox.top-ae.scrollTop,Ne=_e.paddingBox.left-ae.scrollLeft,ze=Le+ae.scrollHeight,Ve=Ne+ae.scrollWidth,Ct={top:Le,right:Ve,bottom:ze,left:Ne},Ut=a(Ct,_e.border),Ft=l({borderBox:Ut,margin:_e.margin,border:_e.border,padding:_e.padding});return Ft},as=function(X){var Q=X.ref,ae=X.descriptor,_e=X.env,Le=X.windowScroll,Ne=X.direction,ze=X.isDropDisabled,Ve=X.isCombineEnabled,Ct=X.shouldClipSubject,Ut=_e.closestScrollable,Ft=Es(Q,Ut),At=S(Ft,Le),Tt=function(){if(!Ut)return null;var hn=P(Ut),lr={scrollHeight:Ut.scrollHeight,scrollWidth:Ut.scrollWidth};return{client:hn,page:S(hn,Le),scroll:ks(Ut),scrollSize:lr,shouldClipSubject:Ct}}(),Nt=rs({descriptor:ae,isEnabled:!ze,isCombineEnabled:Ve,isFixedOnPage:_e.isFixedOnPage,direction:Ne,client:Ft,page:At,closest:Tt});return Nt},vo={passive:!1},Hl={passive:!0},_l=function(X){return X.shouldPublishImmediately?vo:Hl};function _o(X){var Q=Object(L.useContext)(X);return Q||q(!1),Q}var is=function(Q){return Q&&Q.env.closestScrollable||null};function bl(X){var Q=Object(L.useRef)(null),ae=_o(Hi),_e=Oi("droppable"),Le=ae.registry,Ne=ae.marshal,ze=$a(X),Ve=d(function(){return{id:X.droppableId,type:X.type,mode:X.mode}},[X.droppableId,X.mode,X.type]),Ct=Object(L.useRef)(Ve),Ut=d(function(){return T(function(Wr,Ma){Q.current||q(!1);var Aa={x:Wr,y:Ma};Ne.updateDroppableScroll(Ve.id,Aa)})},[Ve.id,Ne]),Ft=r(function(){var Wr=Q.current;return!Wr||!Wr.env.closestScrollable?ke:ks(Wr.env.closestScrollable)},[]),At=r(function(){var Wr=Ft();Ut(Wr.x,Wr.y)},[Ft,Ut]),Tt=d(function(){return D(At)},[At]),Nt=r(function(){var Wr=Q.current,Ma=is(Wr);Wr&&Ma||q(!1);var Aa=Wr.scrollOptions;if(Aa.shouldPublishImmediately){At();return}Tt()},[Tt,At]),hn=r(function(Wr,Ma){Q.current&&q(!1);var Aa=ze.current,Ga=Aa.getDroppableRef();Ga||q(!1);var si=Ro(Ga),e={ref:Ga,descriptor:Ve,env:si,scrollOptions:Ma};Q.current=e;var c=as({ref:Ga,descriptor:Ve,env:si,windowScroll:Wr,direction:Aa.direction,isDropDisabled:Aa.isDropDisabled,isCombineEnabled:Aa.isCombineEnabled,shouldClipSubject:!Aa.ignoreContainerClipping}),j=si.closestScrollable;return j&&(j.setAttribute(jo.contextId,ae.contextId),j.addEventListener("scroll",Nt,_l(e.scrollOptions))),c},[ae.contextId,Ve,Nt,ze]),lr=r(function(){var Wr=Q.current,Ma=is(Wr);return Wr&&Ma||q(!1),ks(Ma)},[]),pr=r(function(){var Wr=Q.current;Wr||q(!1);var Ma=is(Wr);if(Q.current=null,!Ma)return;Tt.cancel(),Ma.removeAttribute(jo.contextId),Ma.removeEventListener("scroll",Nt,_l(Wr.scrollOptions))},[Nt,Tt]),Lr=r(function(Wr){var Ma=Q.current;Ma||q(!1);var Aa=is(Ma);Aa||q(!1),Aa.scrollTop+=Wr.y,Aa.scrollLeft+=Wr.x},[]),Kr=d(function(){return{getDimensionAndWatchScroll:hn,getScrollWhileDragging:lr,dragStopped:pr,scroll:Lr}},[pr,hn,lr,Lr]),na=d(function(){return{uniqueId:_e,descriptor:Ve,callbacks:Kr}},[Kr,Ve,_e]);ai(function(){return Ct.current=na.descriptor,Le.droppable.register(na),function(){Q.current&&pr(),Le.droppable.unregister(na)}},[Kr,Ve,pr,na,Ne,Le.droppable]),ai(function(){if(!Q.current)return;Ne.updateDroppableIsEnabled(Ct.current.id,!X.isDropDisabled)},[X.isDropDisabled,Ne]),ai(function(){if(!Q.current)return;Ne.updateDroppableIsCombineEnabled(Ct.current.id,X.isCombineEnabled)},[X.isCombineEnabled,Ne])}function xs(){}var os={width:0,height:0,margin:_t},Zo=function(Q){var ae=Q.isAnimatingOpenOnMount,_e=Q.placeholder,Le=Q.animate;return ae||Le==="close"?os:{height:_e.client.borderBox.height,width:_e.client.borderBox.width,margin:_e.client.margin}},Us=function(Q){var ae=Q.isAnimatingOpenOnMount,_e=Q.placeholder,Le=Q.animate,Ne=Zo({isAnimatingOpenOnMount:ae,placeholder:_e,animate:Le});return{display:_e.display,boxSizing:"border-box",width:Ne.width,height:Ne.height,marginTop:Ne.margin.top,marginRight:Ne.margin.right,marginBottom:Ne.margin.bottom,marginLeft:Ne.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:Le!=="none"?Vt.placeholder:null}};function js(X){var Q=Object(L.useRef)(null),ae=r(function(){if(!Q.current)return;clearTimeout(Q.current),Q.current=null},[]),_e=X.animate,Le=X.onTransitionEnd,Ne=X.onClose,ze=X.contextId,Ve=Object(L.useState)(X.animate==="open"),Ct=Ve[0],Ut=Ve[1];Object(L.useEffect)(function(){return Ct?_e!=="open"?(ae(),Ut(!1),xs):Q.current?xs:(Q.current=setTimeout(function(){Q.current=null,Ut(!1)}),ae):xs},[_e,Ct,ae]);var Ft=r(function(Tt){if(Tt.propertyName!=="height")return;Le(),_e==="close"&&Ne()},[_e,Ne,Le]),At=Us({isAnimatingOpenOnMount:Ct,animate:X.animate,placeholder:X.placeholder});return g.a.createElement(X.placeholder.tagName,{style:At,"data-rbd-placeholder-context-id":ze,onTransitionEnd:Ft,ref:X.innerRef})}var Bs=g.a.memo(js),Fs=g.a.createContext(null);function qo(X){X&&$i(X)||q(!1)}function Cs(X){return typeof X=="boolean"}function Ws(X,Q){Q.forEach(function(ae){return ae(X)})}var yl=[function(Q){var ae=Q.props;ae.droppableId||q(!1),typeof ae.droppableId=="string"||q(!1)},function(Q){var ae=Q.props;Cs(ae.isDropDisabled)||q(!1),Cs(ae.isCombineEnabled)||q(!1),Cs(ae.ignoreContainerClipping)||q(!1)},function(Q){var ae=Q.getDroppableRef;qo(ae())}],Ss=[function(Q){var ae=Q.props,_e=Q.getPlaceholderRef;if(!ae.placeholder)return;var Le=_e();if(Le)return}],Kl=[function(Q){var ae=Q.props;ae.renderClone||q(!1)},function(Q){var ae=Q.getPlaceholderRef;ae()&&q(!1)}];function Gl(X){Ei(function(){Ws(X,yl),X.props.mode==="standard"&&Ws(X,Ss),X.props.mode==="virtual"&&Ws(X,Kl)})}var ss=function(X){Object(A.a)(Q,X);function Q(){for(var _e,Le=arguments.length,Ne=new Array(Le),ze=0;ze<Le;ze++)Ne[ze]=arguments[ze];return _e=X.call.apply(X,[this].concat(Ne))||this,_e.state={isVisible:Boolean(_e.props.on),data:_e.props.on,animate:_e.props.shouldAnimate&&_e.props.on?"open":"none"},_e.onClose=function(){if(_e.state.animate!=="close")return;_e.setState({isVisible:!1})},_e}Q.getDerivedStateFromProps=function(Le,Ne){return Le.shouldAnimate?Le.on?{isVisible:!0,data:Le.on,animate:"open"}:Ne.isVisible?{isVisible:!0,data:Ne.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(Le.on),data:Le.on,animate:"none"}};var ae=Q.prototype;return ae.render=function(){if(!this.state.isVisible)return null;var Le={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(Le)},Q}(g.a.PureComponent),Hs={dragging:5e3,dropAnimating:4500},El=function(Q,ae){return ae?Vt.drop(ae.duration):Q?Vt.snap:Vt.fluid},zl=function(Q,ae){return Q?ae?pt.opacity.drop:pt.opacity.combining:null},Ks=function(Q){return Q.forceShouldAnimate!=null?Q.forceShouldAnimate:Q.mode==="SNAP"};function xl(X){var Q=X.dimension,ae=Q.client,_e=X.offset,Le=X.combineWith,Ne=X.dropping,ze=Boolean(Le),Ve=Ks(X),Ct=Boolean(Ne),Ut=Ct?on.drop(_e,ze):on.moveTo(_e),Ft={position:"fixed",top:ae.marginBox.top,left:ae.marginBox.left,boxSizing:"border-box",width:ae.borderBox.width,height:ae.borderBox.height,transition:El(Ve,Ne),transform:Ut,opacity:zl(ze,Ct),zIndex:Ct?Hs.dropAnimating:Hs.dragging,pointerEvents:"none"};return Ft}function Vl(X){return{transform:on.moveTo(X.offset),transition:X.shouldAnimateDisplacement?null:"none"}}function Cl(X){return X.type==="DRAGGING"?xl(X):Vl(X)}function Sl(X,Q,ae){ae===void 0&&(ae=ke);var _e=window.getComputedStyle(Q),Le=Q.getBoundingClientRect(),Ne=v(Le,_e),ze=S(Ne,ae),Ve={client:Ne,tagName:Q.tagName.toLowerCase(),display:_e.display},Ct={x:Ne.marginBox.width,y:Ne.marginBox.height},Ut={descriptor:X,placeholder:Ve,displaceBy:Ct,client:Ne,page:ze};return Ut}function Xl(X){var Q=Oi("draggable"),ae=X.descriptor,_e=X.registry,Le=X.getDraggableRef,Ne=X.canDragInteractiveElements,ze=X.shouldRespectForcePress,Ve=X.isEnabled,Ct=d(function(){return{canDragInteractiveElements:Ne,shouldRespectForcePress:ze,isEnabled:Ve}},[Ne,Ve,ze]),Ut=r(function(Nt){var hn=Le();return hn||q(!1),Sl(ae,hn,Nt)},[ae,Le]),Ft=d(function(){return{uniqueId:Q,descriptor:ae,options:Ct,getDimension:Ut}},[ae,Ut,Ct,Q]),At=Object(L.useRef)(Ft),Tt=Object(L.useRef)(!0);ai(function(){return _e.draggable.register(At.current),function(){return _e.draggable.unregister(At.current)}},[_e.draggable]),ai(function(){if(Tt.current){Tt.current=!1;return}var Nt=At.current;At.current=Ft,_e.draggable.update(Ft,Nt)},[Ft,_e.draggable])}function Gs(X,Q,ae){Ei(function(){function _e(Ne){return"Draggable[id: "+Ne+"]: "}var Le=X.draggableId;if(Le||q(!1),typeof Le=="string"||q(!1),Fe(X.index)||q(!1),X.mapped.type==="DRAGGING")return;qo(ae()),X.isEnabled&&(Wi(Q,Le)||q(!1))})}function ls(X){Fa(function(){var Q=Object(L.useRef)(X);Ei(function(){X===Q.current||q(!1)},[X])})}function us(X){X.preventDefault()}function Yl(X){var Q=Object(L.useRef)(null),ae=r(function(e){Q.current=e},[]),_e=r(function(){return Q.current},[]),Le=_o(Hi),Ne=Le.contextId,ze=Le.dragHandleUsageInstructionsId,Ve=Le.registry,Ct=_o(Fs),Ut=Ct.type,Ft=Ct.droppableId,At=d(function(){return{id:X.draggableId,index:X.index,type:Ut,droppableId:Ft}},[X.draggableId,X.index,Ut,Ft]),Tt=X.children,Nt=X.draggableId,hn=X.isEnabled,lr=X.shouldRespectForcePress,pr=X.canDragInteractiveElements,Lr=X.isClone,Kr=X.mapped,na=X.dropAnimationFinished;if(Gs(X,Ne,_e),ls(Lr),!Lr){var Wr=d(function(){return{descriptor:At,registry:Ve,getDraggableRef:_e,canDragInteractiveElements:pr,shouldRespectForcePress:lr,isEnabled:hn}},[At,Ve,_e,pr,lr,hn]);Xl(Wr)}var Ma=d(function(){return hn?{tabIndex:0,role:"button","aria-describedby":ze,"data-rbd-drag-handle-draggable-id":Nt,"data-rbd-drag-handle-context-id":Ne,draggable:!1,onDragStart:us}:null},[Ne,ze,Nt,hn]),Aa=r(function(e){if(Kr.type!=="DRAGGING")return;if(!Kr.dropping)return;if(e.propertyName!=="transform")return;na()},[na,Kr]),Ga=d(function(){var e=Cl(Kr),c=Kr.type==="DRAGGING"&&Kr.dropping?Aa:null,j={innerRef:ae,draggableProps:{"data-rbd-draggable-context-id":Ne,"data-rbd-draggable-id":Nt,style:e,onTransitionEnd:c},dragHandleProps:Ma};return j},[Ne,Ma,Nt,Kr,Aa,ae]),si=d(function(){return{draggableId:At.id,type:At.type,source:{index:At.index,droppableId:At.droppableId}}},[At.droppableId,At.id,At.index,At.type]);return Tt(Ga,Kr.snapshot,si)}var zs=function(X,Q){return X===Q},Ol=function(X){var Q=X.combine,ae=X.destination;return ae?ae.droppableId:Q?Q.droppableId:null},Jl=function(Q){return Q.combine?Q.combine.draggableId:null},Ql=function(Q){return Q.at&&Q.at.type==="COMBINE"?Q.at.combine.draggableId:null};function Zl(){var X=T(function(Le,Ne){return{x:Le,y:Ne}}),Q=T(function(Le,Ne,ze,Ve,Ct){return{isDragging:!0,isClone:Ne,isDropAnimating:Boolean(Ct),dropAnimation:Ct,mode:Le,draggingOver:ze,combineWith:Ve,combineTargetFor:null}}),ae=T(function(Le,Ne,ze,Ve,Ct,Ut,Ft){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:Ct,combineWith:Ut,mode:Ne,offset:Le,dimension:ze,forceShouldAnimate:Ft,snapshot:Q(Ne,Ve,Ct,Ut,null)}}}),_e=function(Ne,ze){if(Ne.isDragging){if(Ne.critical.draggable.id!==ze.draggableId)return null;var Ve=Ne.current.client.offset,Ct=Ne.dimensions.draggables[ze.draggableId],Ut=Wt(Ne.impact),Ft=Ql(Ne.impact),At=Ne.forceShouldAnimate;return ae(X(Ve.x,Ve.y),Ne.movementMode,Ct,ze.isClone,Ut,Ft,At)}if(Ne.phase==="DROP_ANIMATING"){var Tt=Ne.completed;if(Tt.result.draggableId!==ze.draggableId)return null;var Nt=ze.isClone,hn=Ne.dimensions.draggables[ze.draggableId],lr=Tt.result,pr=lr.mode,Lr=Ol(lr),Kr=Jl(lr),na=Ne.dropDuration,Wr={duration:na,curve:qe.drop,moveTo:Ne.newHomeClientOffset,opacity:Kr?pt.opacity.drop:null,scale:Kr?pt.scale.drop:null};return{mapped:{type:"DRAGGING",offset:Ne.newHomeClientOffset,dimension:hn,dropping:Wr,draggingOver:Lr,combineWith:Kr,mode:pr,forceShouldAnimate:null,snapshot:Q(pr,Nt,Lr,Kr,Wr)}}}return null};return _e}function Vs(X){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:X,combineWith:null}}var ql={mapped:{type:"SECONDARY",offset:ke,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Vs(null)}};function $l(){var X=T(function(ze,Ve){return{x:ze,y:Ve}}),Q=T(Vs),ae=T(function(ze,Ve,Ct){return Ve===void 0&&(Ve=null),{mapped:{type:"SECONDARY",offset:ze,combineTargetFor:Ve,shouldAnimateDisplacement:Ct,snapshot:Q(Ve)}}}),_e=function(Ve){return Ve?ae(ke,Ve,!0):null},Le=function(Ve,Ct,Ut,Ft){var At=Ut.displaced.visible[Ve],Tt=Boolean(Ft.inVirtualList&&Ft.effected[Ve]),Nt=it(Ut),hn=Nt&&Nt.draggableId===Ve?Ct:null;if(!At){if(!Tt)return _e(hn);if(Ut.displaced.invisible[Ve])return null;var lr=Et(Ft.displacedBy.point),pr=X(lr.x,lr.y);return ae(pr,hn,!0)}if(Tt)return _e(hn);var Lr=Ut.displacedBy.point,Kr=X(Lr.x,Lr.y);return ae(Kr,hn,At.shouldAnimate)},Ne=function(Ve,Ct){if(Ve.isDragging)return Ve.critical.draggable.id===Ct.draggableId?null:Le(Ct.draggableId,Ve.critical.draggable.id,Ve.impact,Ve.afterCritical);if(Ve.phase==="DROP_ANIMATING"){var Ut=Ve.completed;return Ut.result.draggableId===Ct.draggableId?null:Le(Ct.draggableId,Ut.result.draggableId,Ut.impact,Ut.afterCritical)}return null};return Ne}var Tl=function(){var Q=Zl(),ae=$l(),_e=function(Ne,ze){return Q(Ne,ze)||ae(Ne,ze)||ql};return _e},Xs={dropAnimationFinished:nt},wl=Object(x.c)(Tl,Xs,null,{context:lo,pure:!0,areStatePropsEqual:zs})(Yl);function Al(X){var Q=_o(Fs),ae=Q.isUsingCloneFor;return ae===X.draggableId&&!X.isClone?null:g.a.createElement(wl,X)}function Dl(X){var Q=typeof X.isDragDisabled=="boolean"?!X.isDragDisabled:!0,ae=Boolean(X.disableInteractiveElementBlocking),_e=Boolean(X.shouldRespectForcePress);return g.a.createElement(Al,Object(b.a)({},X,{isClone:!1,isEnabled:Q,canDragInteractiveElements:ae,shouldRespectForcePress:_e}))}function $o(X){var Q=Object(L.useContext)(Hi);Q||q(!1);var ae=Q.contextId,_e=Q.isMovementAllowed,Le=Object(L.useRef)(null),Ne=Object(L.useRef)(null),ze=X.children,Ve=X.droppableId,Ct=X.type,Ut=X.mode,Ft=X.direction,At=X.ignoreContainerClipping,Tt=X.isDropDisabled,Nt=X.isCombineEnabled,hn=X.snapshot,lr=X.useClone,pr=X.updateViewportMaxScroll,Lr=X.getContainerForClone,Kr=r(function(){return Le.current},[]),na=r(function(U){Le.current=U},[]),Wr=r(function(){return Ne.current},[]),Ma=r(function(U){Ne.current=U},[]);Gl({props:X,getDroppableRef:Kr,getPlaceholderRef:Wr});var Aa=r(function(){_e()&&pr({maxScroll:bi()})},[_e,pr]);bl({droppableId:Ve,type:Ct,mode:Ut,direction:Ft,isDropDisabled:Tt,isCombineEnabled:Nt,ignoreContainerClipping:At,getDroppableRef:Kr});var Ga=g.a.createElement(ss,{on:X.placeholder,shouldAnimate:X.shouldAnimatePlaceholder},function(U){var H=U.onClose,ee=U.data,ge=U.animate;return g.a.createElement(Bs,{placeholder:ee,onClose:H,innerRef:Ma,animate:ge,contextId:ae,onTransitionEnd:Aa})}),si=d(function(){return{innerRef:na,placeholder:Ga,droppableProps:{"data-rbd-droppable-id":Ve,"data-rbd-droppable-context-id":ae}}},[ae,Ve,Ga,na]),e=lr?lr.dragging.draggableId:null,c=d(function(){return{droppableId:Ve,type:Ct,isUsingCloneFor:e}},[Ve,e,Ct]);function j(){if(!lr)return null;var U=lr.dragging,H=lr.render,ee=g.a.createElement(Al,{draggableId:U.draggableId,index:U.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(ge,Se){return H(ge,Se,U)});return z.a.createPortal(ee,Lr())}return g.a.createElement(Fs.Provider,{value:c},ze(si,hn),j())}var Os=function(Q,ae){return Q===ae.droppable.type},cs=function(Q,ae){return ae.draggables[Q.draggable.id]},eu=function(){var Q={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},ae=Object(b.a)({},Q,{shouldAnimatePlaceholder:!1}),_e=T(function(ze){return{draggableId:ze.id,type:ze.type,source:{index:ze.index,droppableId:ze.droppableId}}}),Le=T(function(ze,Ve,Ct,Ut,Ft,At){var Tt=Ft.descriptor.id,Nt=Ft.descriptor.droppableId===ze;if(Nt){var hn=At?{render:At,dragging:_e(Ft.descriptor)}:null,lr={isDraggingOver:Ct,draggingOverWith:Ct?Tt:null,draggingFromThisWith:Tt,isUsingPlaceholder:!0};return{placeholder:Ft.placeholder,shouldAnimatePlaceholder:!1,snapshot:lr,useClone:hn}}if(!Ve)return ae;if(!Ut)return Q;var pr={isDraggingOver:Ct,draggingOverWith:Tt,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:Ft.placeholder,shouldAnimatePlaceholder:!0,snapshot:pr,useClone:null}}),Ne=function(Ve,Ct){var Ut=Ct.droppableId,Ft=Ct.type,At=!Ct.isDropDisabled,Tt=Ct.renderClone;if(Ve.isDragging){var Nt=Ve.critical;if(!Os(Ft,Nt))return ae;var hn=cs(Nt,Ve.dimensions),lr=Wt(Ve.impact)===Ut;return Le(Ut,At,lr,lr,hn,Tt)}if(Ve.phase==="DROP_ANIMATING"){var pr=Ve.completed;if(!Os(Ft,pr.critical))return ae;var Lr=cs(pr.critical,Ve.dimensions);return Le(Ut,At,Ol(pr.result)===Ut,Wt(pr.impact)===Ut,Lr,Tt)}if(Ve.phase==="IDLE"&&Ve.completed&&!Ve.shouldFlush){var Kr=Ve.completed;if(!Os(Ft,Kr.critical))return ae;var na=Wt(Kr.impact)===Ut,Wr=Boolean(Kr.impact.at&&Kr.impact.at.type==="COMBINE"),Ma=Kr.critical.droppable.id===Ut;return na?Wr?Q:ae:Ma?Q:ae}return ae};return Ne},tu={updateViewportMaxScroll:Xr};function nu(){return document.body||q(!1),document.body}var Ya={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:nu},Rl=Object(x.c)(eu,tu,null,{context:lo,pure:!0,areStatePropsEqual:zs})($o);Rl.defaultProps=Ya},nukY:function(M,Y){M.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAMkklEQVR4Xu2dWWwcSRnHv7Yd577v+74vkgWEQCAEy6IVWuCB62GVICFIYkcsvMC+LW8LL7BIiTiEhCweInjgPrRCC2KBJTBVYzm24yRO4ty3kziJj9ie+tC/d9oaT2b67ume7irJsjdbVf19X/266quvjjaEEG8w8yukk7ZAii1gMHODEOK3RPRSivXUqmXcAgb07+jomDk2NvYPZn4u4/bQ6qfUAiboSEKI5cz8XyJanVJdtVoZtsAE6EXYdzPzv4hoToZtolVPoQUmgV6E/QVm/hMRNaVQX61SRi3wDOiwg5Tya0qpn2TUJlrtFFqgIujFnv27zPztFOqsVcqgBaqCzsyGlPJXzPy5DNpFq5wyC1QFHXr29fVN6+/v/zszfyBlemt1MmYBW9Bhi3w+v7hQKJwkog0Zs41WN0UWcAS96K9vI6J3mHl+inTXqmTIAq5Ahz1yudxHDcN4k5mbM2QfrWpKLOAa9CLsB4ioLSW6azUyZAFPoBdh/w4RvZYhG2lVU2ABz6AXYf8FEb2cAv21ChmxgC/Qu7q6moeHh/9KRB/JiJ20mnVuAV+gQ+fu7u4FQ0ND/yGiLXVuAy1+BizgG/Ri2HEjEZ1k5kUZsJVWsY4tEAh06N3e3v7B8fHxt4hoWh3bIRbRm5qaaHx83NOzDcMg/DCz+RNlamhoMKtXSkX5mJrUHRh0SCml/CIzn8D+mJpInYKHNDY20p49e2hoaIguX75MIyMjrrRatWoVLVu2jJ48eUJnzpxxVcZPpunTp9POnTvNot3d3TQ8POynmsSUCQ1MIcSrzPx6YjSrIMiSJUvM3jCK9PTpU3r48KHrqhcvXkxr166lQqFAp06dMn+7SRp0N1Z6Nk+orS6E+Bkzf8WfKNGX2rdvH6EnjSINDAxQb2+v66p37NhBM2bMoNu3b9PVq1ddl9OguzbVpIyhgs7MTUKIvxDR8/7EibbU1q1byfI7w3pSc3MzTZkyhbyADsABOnzsrq4uwmhgJYw406ZVn+4sXbqUFi1aZLo8fX19VdUYHR2dNEqsWbOG5sxxf0ISckydOtWsH/J5mQ88ePCArl+/HpaJQ6knVNAhkRBiLjP/m4jedfBSntatW2eC5wV0QAc3CkBcuHBhkoWslyCo2S5dukT37t2bqGbTpk00b968oNW6Ko/n4vlJSqGDDuXy+fza4tbeZUlSNgpZvIKOSMvu3btNF+rs2bP0+PHjmoA+e/Zsc+RxmzBSwU1CunbtGmGEcJswAgwODrrNXpN8kYBehP29SincFTOjJprE9BCvoK9evZrgfgBwgG4lRDkA4/37923dhJUrV5qjAUA6d+5cVa0REvTibpRXpKMuHoDK5XKfMQzj17gNzEOxSLMi2oFGBCj9/f2Bn+UFdPSSu3btMiM/PT09pp9tpS1btpg+NEC/ePFiVbn0ZNRfk0XWo1viSCm/oZT6gT/xwi+1ceNGmj9/vum/huFHegHdylv+bPTkmCijF8bk1M5NCAo63Be87E4JLhZGDqQ7d+64WtiCXl5cHCcZwvz/kYMOYXO53DEiag1TcL91xQU6IilYgLFgHhsbM1VA775t2zaaOXMm3bp1y/SH7VJQ0MOa7FaSsdKcw287hV2uJqAzc6OU8nfM/KmwFfBaXxygoxcFzAjXwWXCD/4G/HBnADu2AnR2dpohQfw33KtKCf79woULzZXKauFF9KrVthaUgo4Frmp+PCbLVjjy0aNHtgtaGCGRMg86jNDV1TVreHj4bSLa5xXOMPPHBfrevXtt1cA2gLt375p58BIgMuM3YVTA6FAplYLe0dFB1shSntftZBTrEvv379eglxown8+vKBQKuMj03bhVDMkCHT1ntUb2IhZ6a/R+TnF0PBe9J0Jv2NeC3wsWLJiIoGByaiUNupcWcJe3Jq5LGex7C4XCP4lotjsRw81lgR5ureQIeqUec/v27aabgs1Z5XHnICu4drsNdY8edsvb1CelfEkp9fsaPnLiURboiGNbrkIYcmB0KF/8sasXkGMC6nWvS1BZNehBLeihvJTy+0qpb3ooElrWsH10P4JhQomFI7gwp0+frul+71LQ8aJX6/0RXsSkFwnrDXb75qEPkp6MltAgpXxZKYXD1bGkuEFHL46YOVwWgIF95aUJ/jn8d4AGWb0mLDjZjVQ6vOjVoj7ySymfU0rhQwOxnUaKE3RMXOGyIKRoRUbwN8J41g8gx8QU/46DGV6TUyweMlg9cKW6EfLE5i+EKCEDkvU3wpF2B0TwgpXuxPQqe5T5azYZ7ejoWDI6Oiri/nRMXKADGjwbPTr8eUADuK2tsFYj49/Pnz8/CfQbN244Roiw2one2gl0O5gwiuBFxG/E6LHjEQn77NevX2/G0vESej3+FyXAbuuuCehCCGybe4uZP+xWsKjyRQ06lvkBK8KNpYsxGzZsMMOJ5Qk+MtwX5Ec5q0cs7dGxkOTUU1rbcP2CDlcK+22wHQFbIxAFKj1Kh7g6dMCEG5vJgmwYi6pt7eqtFeg/YubDcShY/swoQUc8HaeYkDDJLN20hYkdXgIAi3/HyiZ+A5xKE8Jago5QJiCGy2KNKJUWjHD0DyMHZMao4/b4XxLaPXLQpZRfVUr9NAnKQoYoQS9d6ClfdbRO77s9UV8r0OGmbN682XSpADDcFMhYbWUULgxeWvjqyOs00iSl3SMFHVdhFAoFfEggMTfwRgn63LlzTWgwrEspfbWxdXgbk0ZrMhqV6zJr1izT98YLCvcJLon1ItptAbBsCF/9ypUr5tbipKfIQC8u96O1E3XKKErQcQ0FdhfCLcEVEW4TelW8JHAdMEHFSincgqhAh4sFOXEEEC9WJVfEDnSUwXFAa7sv3B3s1QljS4Vbm3nNFwnovb29UwcGBt5m5vd7FSjq/NbQiyEXPWWYCfFxTOawwGJ3cBm9NVwFREkANv4uvYYDL0kUoOMZmBDjlJIVOqw2eXWzqQsvCoCHj4/e/ebNm+be9SROVCMBXQjxc2b+cpgQhVXX8uXLzYZGQiMDyqCHBQCFtUEL9QLy0tNL6EFxiAFA46fS2U1MTHFYGr0jRoRSHx2ugdPEzwpVVgIXgANKjDhWOBNgIrpS7S4aN6BDV7ysGCWtemFLAI9DGEkCPnTQhRBfZ+YfhgVm2PWgQRA2C7Jpyk4mDN84JVQKJsAu36aLfPCL4TYAtvKXLcwFoxUrVhB+kAAfXhwsWNm5Gm5BR52wJerHQpQ1MiH2j5+kpFBBx+dfiAjXSSf6q9PwhzHkli/WBGkUAARocRlRpevbcPDCOnQBwJ1GkVLQnfaaQG7499CnUo8OEPFyA2zI5+aEvhfQLbuhDEKQSNjekMoeHVdcKKVEPd2sC5cCvW3Qa+qsfeZhNmzY4UXo6WWy6Ad0C3jY1cnVCtKp+CkbSo8uhJhRvLToPX6E0GUqW8Dy5d0ACrjQcwMwt7F6O7sHuakrie0ZCui5XO4EEX0piQpqmbQFYIHAoOdyuW8R0fe0ObUFkmyBQKBLKT/JzH9O0gVFSTa2li0+C/gGXUq5iZn/p78mHV/j6Se7t4Av0ItXV5zMyo257s2pcybVAp5Bx+dbpJS4T/GzSVVKy6UtUG4Bz6BLKV9TSuHr0TppC9SNBTyBXrwd9zf6o1x1075a0KIFXIMupdyulMItW7FcPKRbTFsgiAVcgd7e3j6vUCggwrI5yMN0WW2BuCzgCDpi5EKIPxLRi3EJqZ+rLRDUAo6gCyFeZ+ZXgz5Il9cWiNMCtqBLKb+glPplnALqZ2sLhGGBqqDn8/m9Sql30v6xrTCMqOtIvgUqgt7T07NwcHAQe8vXJV8FLaG2gLMFngEdX3+WUr7JzB9zLq5zaAvUhwWeAV0I8QYzv1If4msptQXcWWAS6Llc7gARtbkrqnNpC9SPBSZAb29vf9/4+Dg+phXblc71YzYtab1ZwAS9s7Nz6cjICK50ju0jWvVmOC1vfVnAKF7pjPsRP1RfomtptQXcWwB7y3+slDrkvojOqS1QfxZw3AJQfyppibNkgWPHjrGDvsowjMMa9CxRkUJdHUAfNwzjQGtr6wkNegobP0sq2YD+1DCMz7e2tv4B9tCgZ4mKFOpaBfTBxsbGTx85cuRvlsoa9BQ2fpZUqgD6w4aGhhdbWlpwS8VE0qBniYoU6loKumEYdxobG184fPhwR7mqGvQUNn6WVCoB/VpDQ8PzLS0tZyvpr0HPEhUp1LUI+gUi+vjRo0cvV1NRg57Cxs+SSsePH+9qamr6xKFDh27a6a1BzxIVKdS1ra1t4cGDB/udVPs/YIoD4AHLutsAAAAASUVORK5CYII="},oRuE:function(M,Y,o){(function(L,g,A){M.exports=Y=g(o("Ib8C"),o("OLod"))})(this,function(L){return L.pad.Iso10126={pad:function(g,A){var b=A*4,y=b-g.sigBytes%b;g.concat(L.lib.WordArray.random(y-1)).concat(L.lib.WordArray.create([y<<24],1))},unpad:function(g){var A=g.words[g.sigBytes-1>>>2]&255;g.sigBytes-=A}},L.pad.Iso10126})},oaGz:function(M,Y,o){M.exports={bg:"bg___24uy8",wrap:"wrap___14NGB",modal:"modal___2LUSY",content:"content___uJSz1",head:"head___1b8cM",headCount:"headCount___8qSbD",button:"button___3uWW2",itemWrap:"itemWrap___30TsE",imgWrap:"imgWrap___2LXqq",img:"img___3JUpQ",manager:"manager___VrVN1",itemContent:"itemContent___gyTTk",nameWrap:"nameWrap___3WMS2",name:"name___2ym5i",actionGroup:"actionGroup___8xT17",deleteIcon:"deleteIcon___24yPS",schoolWrap:"schoolWrap___23Lyd",school:"school___1PzsI",countWrap:"countWrap___8XfQc",deletetitle:"deletetitle___2yGtk",yseTitle:"yseTitle___sqFvw"}},ogmK:function(M,Y,o){"use strict";o.d(Y,"a",function(){return fa});var L=o("1OyB"),g=o("vuIU"),A=o("Ji7U"),b=o("LK+K"),y=o("rePB"),x=o("VTBJ"),w=o("ODXe"),f=o("q1tI"),_=o("TSYQ"),d=o.n(_),r=o("Kwbf"),u=o("6cGi"),t=o("U8pU"),a=o("4IlW"),n=f.createContext({}),i=n,h={visibility:"hidden"};function l(ye){var lt=ye.prefixCls,Mt=ye.prevIcon,wt=Mt===void 0?"\u2039":Mt,Wt=ye.nextIcon,Lt=Wt===void 0?"\u203A":Wt,Xt=ye.superPrevIcon,en=Xt===void 0?"\xAB":Xt,vn=ye.superNextIcon,pn=vn===void 0?"\xBB":vn,Nn=ye.onSuperPrev,wn=ye.onSuperNext,nn=ye.onPrev,Rn=ye.onNext,gn=ye.children,kn=f.useContext(i),Dn=kn.hideNextBtn,Jn=kn.hidePrevBtn;return f.createElement("div",{className:lt},Nn&&f.createElement("button",{type:"button",onClick:Nn,tabIndex:-1,className:"".concat(lt,"-super-prev-btn"),style:Jn?h:{}},en),nn&&f.createElement("button",{type:"button",onClick:nn,tabIndex:-1,className:"".concat(lt,"-prev-btn"),style:Jn?h:{}},wt),f.createElement("div",{className:"".concat(lt,"-view")},gn),Rn&&f.createElement("button",{type:"button",onClick:Rn,tabIndex:-1,className:"".concat(lt,"-next-btn"),style:Dn?h:{}},Lt),wn&&f.createElement("button",{type:"button",onClick:wn,tabIndex:-1,className:"".concat(lt,"-super-next-btn"),style:Dn?h:{}},pn))}var s=l;function p(ye){var lt=f.useContext(i),Mt=lt.hideHeader;if(Mt)return null;var wt=ye.prefixCls,Wt=ye.generateConfig,Lt=ye.locale,Xt=ye.value,en=ye.format,vn="".concat(wt,"-header");return f.createElement(s,{prefixCls:vn},Xt?Wt.locale.format(Lt.locale,Xt,en):"\xA0")}var O=p,S=o("YrtM"),v=o("KQm4"),P=new Map;function R(ye,lt,Mt){if(P.get(ye)&&cancelAnimationFrame(P.get(ye)),Mt<=0){P.set(ye,requestAnimationFrame(function(){ye.scrollTop=lt}));return}var wt=lt-ye.scrollTop,Wt=wt/Mt*10;P.set(ye,requestAnimationFrame(function(){ye.scrollTop+=Wt,ye.scrollTop!==lt&&R(ye,lt,Mt-10)}))}function E(ye,lt){var Mt=lt.onLeftRight,wt=lt.onCtrlLeftRight,Wt=lt.onUpDown,Lt=lt.onPageUpDown,Xt=lt.onEnter,en=ye.which,vn=ye.ctrlKey,pn=ye.metaKey;switch(en){case a.a.LEFT:if(vn||pn){if(wt)return wt(-1),!0}else if(Mt)return Mt(-1),!0;break;case a.a.RIGHT:if(vn||pn){if(wt)return wt(1),!0}else if(Mt)return Mt(1),!0;break;case a.a.UP:if(Wt)return Wt(-1),!0;break;case a.a.DOWN:if(Wt)return Wt(1),!0;break;case a.a.PAGE_UP:if(Lt)return Lt(-1),!0;break;case a.a.PAGE_DOWN:if(Lt)return Lt(1),!0;break;case a.a.ENTER:if(Xt)return Xt(),!0;break}return!1}function C(ye,lt,Mt,wt){var Wt=ye;if(!Wt)switch(lt){case"time":Wt=wt?"hh:mm:ss a":"HH:mm:ss";break;case"week":Wt="gggg-wo";break;case"month":Wt="YYYY-MM";break;case"quarter":Wt="YYYY-[Q]Q";break;case"year":Wt="YYYY";break;default:Wt=Mt?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return Wt}function m(ye,lt){var Mt=ye==="time"?8:10;return Math.max(Mt,lt.length)+2}var T=null,I=new Set;function D(ye){return!T&&typeof window!="undefined"&&window.addEventListener&&(T=function(Mt){Object(v.a)(I).forEach(function(wt){wt(Mt)})},window.addEventListener("mousedown",T)),I.add(ye),function(){I.delete(ye),I.size===0&&(window.removeEventListener("mousedown",T),T=null)}}var N=function(lt){return lt==="month"||lt==="date"?"year":lt},z=function(lt){return lt==="date"?"month":lt},F=function(lt){return lt==="month"||lt==="date"?"quarter":lt},W=function(lt){return lt==="date"?"week":lt},K={year:N,month:z,quarter:F,week:W,time:null,date:null};function B(ye,lt){return ye.some(function(Mt){return Mt&&Mt.contains(lt)})}function k(ye){var lt=ye.prefixCls,Mt=ye.units,wt=ye.onSelect,Wt=ye.value,Lt=ye.active,Xt=ye.hideDisabledOptions,en="".concat(lt,"-cell"),vn=f.useContext(i),pn=vn.open,Nn=f.useRef(null),wn=f.useRef(new Map);return f.useLayoutEffect(function(){var nn=wn.current.get(Wt);nn&&pn!==!1&&R(Nn.current,nn.offsetTop,120)},[Wt]),f.useLayoutEffect(function(){if(pn){var nn=wn.current.get(Wt);nn&&R(Nn.current,nn.offsetTop,0)}},[pn]),f.createElement("ul",{className:d()("".concat(lt,"-column"),Object(y.a)({},"".concat(lt,"-column-active"),Lt)),ref:Nn,style:{position:"relative"}},Mt.map(function(nn){var Rn;return Xt&&nn.disabled?null:f.createElement("li",{key:nn.value,ref:function(kn){wn.current.set(nn.value,kn)},className:d()(en,(Rn={},Object(y.a)(Rn,"".concat(en,"-disabled"),nn.disabled),Object(y.a)(Rn,"".concat(en,"-selected"),Wt===nn.value),Rn)),onClick:function(){if(nn.disabled)return;wt(nn.value)}},f.createElement("div",{className:"".concat(en,"-inner")},nn.label))}))}var G=k;function ne(ye,lt){for(var Mt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",wt=String(ye);wt.length<lt;)wt="".concat(Mt).concat(ye);return wt}var fe=function(){for(var lt=arguments.length,Mt=new Array(lt),wt=0;wt<lt;wt++)Mt[wt]=arguments[wt];return Mt};function de(ye){return ye==null?[]:Array.isArray(ye)?ye:[ye]}function xe(ye){var lt={};return Object.keys(ye).forEach(function(Mt){(Mt.substr(0,5)==="data-"||Mt.substr(0,5)==="aria-"||Mt==="role"||Mt==="name")&&Mt.substr(0,7)!=="data-__"&&(lt[Mt]=ye[Mt])}),lt}function Oe(ye,lt){return ye?ye[lt]:null}function ce(ye,lt,Mt){var wt=[Oe(ye,0),Oe(ye,1)];return wt[Mt]=typeof lt=="function"?lt(wt[Mt]):lt,!wt[0]&&!wt[1]?null:wt}function be(ye,lt,Mt,wt,Wt){var Lt=ye.setHour(lt,Mt);return Lt=ye.setMinute(Lt,wt),Lt=ye.setSecond(Lt,Wt),Lt}function ve(ye,lt,Mt,wt,Wt,Lt){var Xt=Math.floor(ye/wt)*wt;if(Xt<ye)return[Xt,60-Wt,60-Lt];var en=Math.floor(lt/Wt)*Wt;if(en<lt)return[Xt,en,60-Lt];var vn=Math.floor(Mt/Lt)*Lt;return[Xt,en,vn]}function ue(ye,lt){if(ye.length!==lt.length)return!0;for(var Mt=0;Mt<ye.length;Mt+=1)if(ye[Mt].disabled!==lt[Mt].disabled)return!0;return!1}function se(ye,lt,Mt,wt){for(var Wt=[],Lt=ye;Lt<=lt;Lt+=Mt)Wt.push({label:ne(Lt,2),value:Lt,disabled:(wt||[]).includes(Lt)});return Wt}function q(ye){var lt=ye.generateConfig,Mt=ye.prefixCls,wt=ye.operationRef,Wt=ye.activeColumnIndex,Lt=ye.value,Xt=ye.showHour,en=ye.showMinute,vn=ye.showSecond,pn=ye.use12Hours,Nn=ye.hourStep,wn=Nn===void 0?1:Nn,nn=ye.minuteStep,Rn=nn===void 0?1:nn,gn=ye.secondStep,kn=gn===void 0?1:gn,Dn=ye.disabledHours,Jn=ye.disabledMinutes,hr=ye.disabledSeconds,Br=ye.hideDisabledOptions,xn=ye.onSelect,Yt=[],dn="".concat(Mt,"-content"),An="".concat(Mt,"-time-panel"),qt,Sn=Lt?lt.getHour(Lt):-1,mn=Lt?lt.getMinute(Lt):-1,Mn=Lt?lt.getSecond(Lt):-1,Un=function(Qt,Jt,zn,tr){var Ln=Lt||lt.getNow(),ar=Math.max(0,Jt),ur=Math.max(0,zn),or=Math.max(0,tr);return Ln=be(lt,Ln,!pn||!Qt?ar:ar+12,ur,or),Ln},ir=se(0,23,wn,Dn&&Dn()),er=Object(S.a)(function(){return ir},ir,ue);pn&&(qt=Sn>=12,Sn%=12);var Ar=f.useMemo(function(){if(!pn)return[!1,!1];var Gt=[!0,!0];return er.forEach(function(Qt){var Jt=Qt.disabled,zn=Qt.value;if(Jt)return;zn>=12?Gt[1]=!1:Gt[0]=!1}),Gt},[pn,er]),Mr=Object(w.a)(Ar,2),Qn=Mr[0],Tr=Mr[1],mr=f.useMemo(function(){return pn?er.filter(qt?function(Gt){return Gt.value>=12}:function(Gt){return Gt.value<12}).map(function(Gt){var Qt=Gt.value%12,Jt=Qt===0?"12":ne(Qt,2);return Object(x.a)(Object(x.a)({},Gt),{},{label:Jt,value:Qt})}):er},[pn,er]),Gr=se(0,59,Rn,Jn&&Jn(Sn)),Ir=se(0,59,kn,hr&&hr(Sn,mn));wt.current={onUpDown:function(Qt){var Jt=Yt[Wt];if(Jt)for(var zn=Jt.units.findIndex(function(ur){return ur.value===Jt.value}),tr=Jt.units.length,Ln=1;Ln<tr;Ln+=1){var ar=Jt.units[(zn+Qt*Ln+tr)%tr];if(ar.disabled!==!0){Jt.onSelect(ar.value);break}}}};function qr(Gt,Qt,Jt,zn,tr){Gt!==!1&&Yt.push({node:f.cloneElement(Qt,{prefixCls:An,value:Jt,active:Wt===Yt.length,onSelect:tr,units:zn,hideDisabledOptions:Br}),onSelect:tr,value:Jt,units:zn})}qr(Xt,f.createElement(G,{key:"hour"}),Sn,mr,function(Gt){xn(Un(qt,Gt,mn,Mn),"mouse")}),qr(en,f.createElement(G,{key:"minute"}),mn,Gr,function(Gt){xn(Un(qt,Sn,Gt,Mn),"mouse")}),qr(vn,f.createElement(G,{key:"second"}),Mn,Ir,function(Gt){xn(Un(qt,Sn,mn,Gt),"mouse")});var rr=-1;return typeof qt=="boolean"&&(rr=qt?1:0),qr(pn===!0,f.createElement(G,{key:"12hours"}),rr,[{label:"AM",value:0,disabled:Qn},{label:"PM",value:1,disabled:Tr}],function(Gt){xn(Un(!!Gt,Sn,mn,Mn),"mouse")}),f.createElement("div",{className:dn},Yt.map(function(Gt){var Qt=Gt.node;return Qt}))}var me=q,re=function(lt){return lt.filter(function(Mt){return Mt!==!1}).length};function ie(ye){var lt=ye.generateConfig,Mt=ye.format,wt=Mt===void 0?"HH:mm:ss":Mt,Wt=ye.prefixCls,Lt=ye.active,Xt=ye.operationRef,en=ye.showHour,vn=ye.showMinute,pn=ye.showSecond,Nn=ye.use12Hours,wn=Nn===void 0?!1:Nn,nn=ye.onSelect,Rn=ye.value,gn="".concat(Wt,"-time-panel"),kn=f.useRef(),Dn=f.useState(-1),Jn=Object(w.a)(Dn,2),hr=Jn[0],Br=Jn[1],xn=re([en,vn,pn,wn]);return Xt.current={onKeyDown:function(dn){return E(dn,{onLeftRight:function(qt){Br((hr+qt+xn)%xn)},onUpDown:function(qt){hr===-1?Br(0):kn.current&&kn.current.onUpDown(qt)},onEnter:function(){nn(Rn||lt.getNow(),"key"),Br(-1)}})},onBlur:function(){Br(-1)}},f.createElement("div",{className:d()(gn,Object(y.a)({},"".concat(gn,"-active"),Lt))},f.createElement(O,Object.assign({},ye,{format:wt,prefixCls:Wt})),f.createElement(me,Object.assign({},ye,{prefixCls:Wt,activeColumnIndex:hr,operationRef:kn})))}var we=ie,le=7;function $(ye,lt){return!ye&&!lt?!0:!ye||!lt?!1:void 0}function J(ye,lt,Mt){var wt=$(lt,Mt);if(typeof wt=="boolean")return wt;var Wt=Math.floor(ye.getYear(lt)/10),Lt=Math.floor(ye.getYear(Mt)/10);return Wt===Lt}function te(ye,lt,Mt){var wt=$(lt,Mt);return typeof wt=="boolean"?wt:ye.getYear(lt)===ye.getYear(Mt)}function De(ye,lt){var Mt=Math.floor(ye.getMonth(lt)/3);return Mt+1}function Te(ye,lt,Mt){var wt=$(lt,Mt);return typeof wt=="boolean"?wt:te(ye,lt,Mt)&&De(ye,lt)===De(ye,Mt)}function ke(ye,lt,Mt){var wt=$(lt,Mt);return typeof wt=="boolean"?wt:te(ye,lt,Mt)&&ye.getMonth(lt)===ye.getMonth(Mt)}function tt(ye,lt,Mt){var wt=$(lt,Mt);return typeof wt=="boolean"?wt:ye.getYear(lt)===ye.getYear(Mt)&&ye.getMonth(lt)===ye.getMonth(Mt)&&ye.getDate(lt)===ye.getDate(Mt)}function ot(ye,lt,Mt){var wt=$(lt,Mt);return typeof wt=="boolean"?wt:ye.getHour(lt)===ye.getHour(Mt)&&ye.getMinute(lt)===ye.getMinute(Mt)&&ye.getSecond(lt)===ye.getSecond(Mt)}function gt(ye,lt,Mt,wt){var Wt=$(Mt,wt);return typeof Wt=="boolean"?Wt:ye.locale.getWeek(lt,Mt)===ye.locale.getWeek(lt,wt)}function Et(ye,lt,Mt){return tt(ye,lt,Mt)&&ot(ye,lt,Mt)}function xt(ye,lt,Mt,wt){return!lt||!Mt||!wt?!1:!tt(ye,lt,wt)&&!tt(ye,Mt,wt)&&ye.isAfter(wt,lt)&&ye.isAfter(Mt,wt)}function St(ye,lt,Mt){var wt=lt.locale.getWeekFirstDay(ye),Wt=lt.setDate(Mt,1),Lt=lt.getWeekDay(Wt),Xt=lt.addDate(Wt,wt-Lt);return lt.getMonth(Xt)===lt.getMonth(Mt)&&lt.getDate(Xt)>1&&(Xt=lt.addDate(Xt,-7)),Xt}function Je(ye,lt,Mt){var wt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(lt){case"year":return Mt.addYear(ye,wt*10);case"quarter":case"month":return Mt.addYear(ye,wt);default:return Mt.addMonth(ye,wt)}}var Ue=f.createContext({}),ft=Ue;function kt(ye){var lt=ye.cellPrefixCls,Mt=ye.generateConfig,wt=ye.rangedValue,Wt=ye.hoverRangedValue,Lt=ye.isInView,Xt=ye.isSameCell,en=ye.offsetCell,vn=ye.today,pn=ye.value;function Nn(wn){var nn,Rn=en(wn,-1),gn=en(wn,1),kn=Oe(wt,0),Dn=Oe(wt,1),Jn=Oe(Wt,0),hr=Oe(Wt,1),Br=xt(Mt,Jn,hr,wn);function xn(mn){return Xt(kn,mn)}function Yt(mn){return Xt(Dn,mn)}var dn=Xt(Jn,wn),An=Xt(hr,wn),qt=(Br||An)&&(!Lt(Rn)||Yt(Rn)),Sn=(Br||dn)&&(!Lt(gn)||xn(gn));return nn={},Object(y.a)(nn,"".concat(lt,"-in-view"),Lt(wn)),Object(y.a)(nn,"".concat(lt,"-in-range"),xt(Mt,kn,Dn,wn)),Object(y.a)(nn,"".concat(lt,"-range-start"),xn(wn)),Object(y.a)(nn,"".concat(lt,"-range-end"),Yt(wn)),Object(y.a)(nn,"".concat(lt,"-range-start-single"),xn(wn)&&!Dn),Object(y.a)(nn,"".concat(lt,"-range-end-single"),Yt(wn)&&!kn),Object(y.a)(nn,"".concat(lt,"-range-start-near-hover"),xn(wn)&&(Xt(Rn,Jn)||xt(Mt,Jn,hr,Rn))),Object(y.a)(nn,"".concat(lt,"-range-end-near-hover"),Yt(wn)&&(Xt(gn,hr)||xt(Mt,Jn,hr,gn))),Object(y.a)(nn,"".concat(lt,"-range-hover"),Br),Object(y.a)(nn,"".concat(lt,"-range-hover-start"),dn),Object(y.a)(nn,"".concat(lt,"-range-hover-end"),An),Object(y.a)(nn,"".concat(lt,"-range-hover-edge-start"),qt),Object(y.a)(nn,"".concat(lt,"-range-hover-edge-end"),Sn),Object(y.a)(nn,"".concat(lt,"-range-hover-edge-start-near-range"),qt&&Xt(Rn,Dn)),Object(y.a)(nn,"".concat(lt,"-range-hover-edge-end-near-range"),Sn&&Xt(gn,kn)),Object(y.a)(nn,"".concat(lt,"-today"),Xt(vn,wn)),Object(y.a)(nn,"".concat(lt,"-selected"),Xt(pn,wn)),nn}return Nn}function ht(ye){for(var lt=ye.prefixCls,Mt=ye.disabledDate,wt=ye.onSelect,Wt=ye.rowNum,Lt=ye.colNum,Xt=ye.prefixColumn,en=ye.rowClassName,vn=ye.baseDate,pn=ye.getCellClassName,Nn=ye.getCellText,wn=ye.getCellNode,nn=ye.getCellDate,Rn=ye.titleCell,gn=ye.headerCells,kn=f.useContext(i),Dn=kn.onDateMouseEnter,Jn=kn.onDateMouseLeave,hr="".concat(lt,"-cell"),Br=[],xn=0;xn<Wt;xn+=1){for(var Yt=[],dn=void 0,An=function(mn){var Mn=xn*Lt+mn,Un=nn(vn,Mn),ir=Mt&&Mt(Un);mn===0&&(dn=Un,Xt&&Yt.push(Xt(dn))),Yt.push(f.createElement("td",{key:mn,title:Rn&&Rn(Un),className:d()(hr,Object(x.a)(Object(y.a)({},"".concat(hr,"-disabled"),ir),pn(Un))),onClick:function(){ir||wt(Un)},onMouseEnter:function(){!ir&&Dn&&Dn(Un)},onMouseLeave:function(){!ir&&Jn&&Jn(Un)}},wn?wn(Un):f.createElement("div",{className:"".concat(hr,"-inner")},Nn(Un))))},qt=0;qt<Lt;qt+=1)An(qt);Br.push(f.createElement("tr",{key:xn,className:en&&en(dn)},Yt))}return f.createElement("div",{className:"".concat(lt,"-body")},f.createElement("table",{className:"".concat(lt,"-content")},gn&&f.createElement("thead",null,f.createElement("tr",null,gn)),f.createElement("tbody",null,Br)))}function _t(ye){var lt=ye.prefixCls,Mt=ye.generateConfig,wt=ye.prefixColumn,Wt=ye.locale,Lt=ye.rowCount,Xt=ye.viewDate,en=ye.value,vn=ye.dateRender,pn=f.useContext(ft),Nn=pn.rangedValue,wn=pn.hoverRangedValue,nn=St(Wt.locale,Mt,Xt),Rn="".concat(lt,"-cell"),gn=Mt.locale.getWeekFirstDay(Wt.locale),kn=Mt.getNow(),Dn=[],Jn=Wt.shortWeekDays||(Mt.locale.getShortWeekDays?Mt.locale.getShortWeekDays(Wt.locale):[]);wt&&Dn.push(f.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var hr=0;hr<le;hr+=1)Dn.push(f.createElement("th",{key:hr},Jn[(hr+gn)%le]));var Br=kt({cellPrefixCls:Rn,today:kn,value:en,generateConfig:Mt,rangedValue:wt?null:Nn,hoverRangedValue:wt?null:wn,isSameCell:function(dn,An){return tt(Mt,dn,An)},isInView:function(dn){return ke(Mt,dn,Xt)},offsetCell:function(dn,An){return Mt.addDate(dn,An)}}),xn=vn?function(Yt){return vn(Yt,kn)}:void 0;return f.createElement(ht,Object.assign({},ye,{rowNum:Lt,colNum:le,baseDate:nn,getCellNode:xn,getCellText:Mt.getDate,getCellClassName:Br,getCellDate:Mt.addDate,titleCell:function(dn){return Mt.locale.format(Wt.locale,dn,"YYYY-MM-DD")},headerCells:Dn}))}var Qe=_t;function He(ye){var lt=ye.prefixCls,Mt=ye.generateConfig,wt=ye.locale,Wt=ye.viewDate,Lt=ye.onNextMonth,Xt=ye.onPrevMonth,en=ye.onNextYear,vn=ye.onPrevYear,pn=ye.onYearClick,Nn=ye.onMonthClick,wn=f.useContext(i),nn=wn.hideHeader;if(nn)return null;var Rn="".concat(lt,"-header"),gn=wt.shortMonths||(Mt.locale.getShortMonths?Mt.locale.getShortMonths(wt.locale):[]),kn=Mt.getMonth(Wt),Dn=f.createElement("button",{type:"button",key:"year",onClick:pn,tabIndex:-1,className:"".concat(lt,"-year-btn")},Mt.locale.format(wt.locale,Wt,wt.yearFormat)),Jn=f.createElement("button",{type:"button",key:"month",onClick:Nn,tabIndex:-1,className:"".concat(lt,"-month-btn")},wt.monthFormat?Mt.locale.format(wt.locale,Wt,wt.monthFormat):gn[kn]),hr=wt.monthBeforeYear?[Jn,Dn]:[Dn,Jn];return f.createElement(s,Object.assign({},ye,{prefixCls:Rn,onSuperPrev:vn,onPrev:Xt,onNext:Lt,onSuperNext:en}),hr)}var Ge=He,Ee=6;function Ae(ye){var lt=ye.prefixCls,Mt=ye.panelName,wt=Mt===void 0?"date":Mt,Wt=ye.keyboardConfig,Lt=ye.active,Xt=ye.operationRef,en=ye.generateConfig,vn=ye.value,pn=ye.viewDate,Nn=ye.onViewDateChange,wn=ye.onPanelChange,nn=ye.onSelect,Rn="".concat(lt,"-").concat(wt,"-panel");Xt.current={onKeyDown:function(Jn){return E(Jn,Object(x.a)({onLeftRight:function(Br){nn(en.addDate(vn||pn,Br),"key")},onCtrlLeftRight:function(Br){nn(en.addYear(vn||pn,Br),"key")},onUpDown:function(Br){nn(en.addDate(vn||pn,Br*le),"key")},onPageUpDown:function(Br){nn(en.addMonth(vn||pn,Br),"key")}},Wt))}};var gn=function(Jn){var hr=en.addYear(pn,Jn);Nn(hr),wn(null,hr)},kn=function(Jn){var hr=en.addMonth(pn,Jn);Nn(hr),wn(null,hr)};return f.createElement("div",{className:d()(Rn,Object(y.a)({},"".concat(Rn,"-active"),Lt))},f.createElement(Ge,Object.assign({},ye,{prefixCls:lt,value:vn,viewDate:pn,onPrevYear:function(){gn(-1)},onNextYear:function(){gn(1)},onPrevMonth:function(){kn(-1)},onNextMonth:function(){kn(1)},onMonthClick:function(){wn("month",pn)},onYearClick:function(){wn("year",pn)}})),f.createElement(Qe,Object.assign({},ye,{onSelect:function(Jn){return nn(Jn,"mouse")},prefixCls:lt,value:vn,viewDate:pn,rowCount:Ee})))}var Fe=Ae;function We(ye,lt,Mt){if(!Mt)return lt;var wt=lt;return wt=ye.setHour(wt,ye.getHour(Mt)),wt=ye.setMinute(wt,ye.getMinute(Mt)),wt=ye.setSecond(wt,ye.getSecond(Mt)),wt}var Ke=fe("date","time");function st(ye){var lt=ye.prefixCls,Mt=ye.operationRef,wt=ye.generateConfig,Wt=ye.value,Lt=ye.defaultValue,Xt=ye.disabledTime,en=ye.showTime,vn=ye.onSelect,pn="".concat(lt,"-datetime-panel"),Nn=f.useState(null),wn=Object(w.a)(Nn,2),nn=wn[0],Rn=wn[1],gn=f.useRef({}),kn=f.useRef({}),Dn=Object(t.a)(en)==="object"?Object(x.a)({},en):{};function Jn(Yt){var dn=Ke.indexOf(nn)+Yt,An=Ke[dn]||null;return An}var hr=function(dn){kn.current.onBlur&&kn.current.onBlur(dn),Rn(null)};Mt.current={onKeyDown:function(dn){if(dn.which===a.a.TAB){var An=Jn(dn.shiftKey?-1:1);return Rn(An),An&&dn.preventDefault(),!0}if(nn){var qt=nn==="date"?gn:kn;return qt.current&&qt.current.onKeyDown&&qt.current.onKeyDown(dn),!0}return[a.a.LEFT,a.a.RIGHT,a.a.UP,a.a.DOWN].includes(dn.which)?(Rn("date"),!0):!1},onBlur:hr,onClose:hr};var Br=function(dn,An){var qt=dn;An==="date"&&!Wt&&Dn.defaultValue?(qt=wt.setHour(qt,wt.getHour(Dn.defaultValue)),qt=wt.setMinute(qt,wt.getMinute(Dn.defaultValue)),qt=wt.setSecond(qt,wt.getSecond(Dn.defaultValue))):An==="time"&&!Wt&&Lt&&(qt=wt.setYear(qt,wt.getYear(Lt)),qt=wt.setMonth(qt,wt.getMonth(Lt)),qt=wt.setDate(qt,wt.getDate(Lt))),vn&&vn(qt,"mouse")},xn=Xt?Xt(Wt||null):{};return f.createElement("div",{className:d()(pn,Object(y.a)({},"".concat(pn,"-active"),nn))},f.createElement(Fe,Object.assign({},ye,{operationRef:gn,active:nn==="date",onSelect:function(dn){Br(We(wt,dn,en&&Object(t.a)(en)==="object"?en.defaultValue:null),"date")}})),f.createElement(we,Object.assign({},ye,{format:void 0},Dn,xn,{defaultValue:void 0,operationRef:kn,active:nn==="time",onSelect:function(dn){Br(dn,"time")}})))}var Ot=st;function Bt(ye){var lt=ye.prefixCls,Mt=ye.generateConfig,wt=ye.locale,Wt=ye.value,Lt="".concat(lt,"-cell"),Xt=function(Nn){return f.createElement("td",{key:"week",className:d()(Lt,"".concat(Lt,"-week"))},Mt.locale.getWeek(wt.locale,Nn))},en="".concat(lt,"-week-panel-row"),vn=function(Nn){return d()(en,Object(y.a)({},"".concat(en,"-selected"),gt(Mt,wt.locale,Wt,Nn)))};return f.createElement(Fe,Object.assign({},ye,{panelName:"week",prefixColumn:Xt,rowClassName:vn,keyboardConfig:{onLeftRight:null}}))}var an=Bt;function Kt(ye){var lt=ye.prefixCls,Mt=ye.generateConfig,wt=ye.locale,Wt=ye.viewDate,Lt=ye.onNextYear,Xt=ye.onPrevYear,en=ye.onYearClick,vn=f.useContext(i),pn=vn.hideHeader;if(pn)return null;var Nn="".concat(lt,"-header");return f.createElement(s,Object.assign({},ye,{prefixCls:Nn,onSuperPrev:Xt,onSuperNext:Lt}),f.createElement("button",{type:"button",onClick:en,className:"".concat(lt,"-year-btn")},Mt.locale.format(wt.locale,Wt,wt.yearFormat)))}var bt=Kt,Be=3,at=4;function it(ye){var lt=ye.prefixCls,Mt=ye.locale,wt=ye.value,Wt=ye.viewDate,Lt=ye.generateConfig,Xt=ye.monthCellRender,en=f.useContext(ft),vn=en.rangedValue,pn=en.hoverRangedValue,Nn="".concat(lt,"-cell"),wn=kt({cellPrefixCls:Nn,value:wt,generateConfig:Lt,rangedValue:vn,hoverRangedValue:pn,isSameCell:function(Dn,Jn){return ke(Lt,Dn,Jn)},isInView:function(){return!0},offsetCell:function(Dn,Jn){return Lt.addMonth(Dn,Jn)}}),nn=Mt.shortMonths||(Lt.locale.getShortMonths?Lt.locale.getShortMonths(Mt.locale):[]),Rn=Lt.setMonth(Wt,0),gn=Xt?function(kn){return Xt(kn,Mt)}:void 0;return f.createElement(ht,Object.assign({},ye,{rowNum:at,colNum:Be,baseDate:Rn,getCellNode:gn,getCellText:function(Dn){return Mt.monthFormat?Lt.locale.format(Mt.locale,Dn,Mt.monthFormat):nn[Lt.getMonth(Dn)]},getCellClassName:wn,getCellDate:Lt.addMonth,titleCell:function(Dn){return Lt.locale.format(Mt.locale,Dn,"YYYY-MM")}}))}var Me=it;function Ye(ye){var lt=ye.prefixCls,Mt=ye.operationRef,wt=ye.onViewDateChange,Wt=ye.generateConfig,Lt=ye.value,Xt=ye.viewDate,en=ye.onPanelChange,vn=ye.onSelect,pn="".concat(lt,"-month-panel");Mt.current={onKeyDown:function(nn){return E(nn,{onLeftRight:function(gn){vn(Wt.addMonth(Lt||Xt,gn),"key")},onCtrlLeftRight:function(gn){vn(Wt.addYear(Lt||Xt,gn),"key")},onUpDown:function(gn){vn(Wt.addMonth(Lt||Xt,gn*Be),"key")},onEnter:function(){en("date",Lt||Xt)}})}};var Nn=function(nn){var Rn=Wt.addYear(Xt,nn);wt(Rn),en(null,Rn)};return f.createElement("div",{className:pn},f.createElement(bt,Object.assign({},ye,{prefixCls:lt,onPrevYear:function(){Nn(-1)},onNextYear:function(){Nn(1)},onYearClick:function(){en("year",Xt)}})),f.createElement(Me,Object.assign({},ye,{prefixCls:lt,onSelect:function(nn){vn(nn,"mouse"),en("date",nn)}})))}var ut=Ye;function mt(ye){var lt=ye.prefixCls,Mt=ye.generateConfig,wt=ye.locale,Wt=ye.viewDate,Lt=ye.onNextYear,Xt=ye.onPrevYear,en=ye.onYearClick,vn=f.useContext(i),pn=vn.hideHeader;if(pn)return null;var Nn="".concat(lt,"-header");return f.createElement(s,Object.assign({},ye,{prefixCls:Nn,onSuperPrev:Xt,onSuperNext:Lt}),f.createElement("button",{type:"button",onClick:en,className:"".concat(lt,"-year-btn")},Mt.locale.format(wt.locale,Wt,wt.yearFormat)))}var Pt=mt,jt=4,et=1;function Dt(ye){var lt=ye.prefixCls,Mt=ye.locale,wt=ye.value,Wt=ye.viewDate,Lt=ye.generateConfig,Xt=f.useContext(ft),en=Xt.rangedValue,vn=Xt.hoverRangedValue,pn="".concat(lt,"-cell"),Nn=kt({cellPrefixCls:pn,value:wt,generateConfig:Lt,rangedValue:en,hoverRangedValue:vn,isSameCell:function(Rn,gn){return Te(Lt,Rn,gn)},isInView:function(){return!0},offsetCell:function(Rn,gn){return Lt.addMonth(Rn,gn*3)}}),wn=Lt.setDate(Lt.setMonth(Wt,0),1);return f.createElement(ht,Object.assign({},ye,{rowNum:et,colNum:jt,baseDate:wn,getCellText:function(Rn){return Lt.locale.format(Mt.locale,Rn,Mt.quarterFormat||"[Q]Q")},getCellClassName:Nn,getCellDate:function(Rn,gn){return Lt.addMonth(Rn,gn*3)},titleCell:function(Rn){return Lt.locale.format(Mt.locale,Rn,"YYYY-[Q]Q")}}))}var Ht=Dt;function bn(ye){var lt=ye.prefixCls,Mt=ye.operationRef,wt=ye.onViewDateChange,Wt=ye.generateConfig,Lt=ye.value,Xt=ye.viewDate,en=ye.onPanelChange,vn=ye.onSelect,pn="".concat(lt,"-quarter-panel");Mt.current={onKeyDown:function(nn){return E(nn,{onLeftRight:function(gn){vn(Wt.addMonth(Lt||Xt,gn*3),"key")},onCtrlLeftRight:function(gn){vn(Wt.addYear(Lt||Xt,gn),"key")},onUpDown:function(gn){vn(Wt.addYear(Lt||Xt,gn),"key")}})}};var Nn=function(nn){var Rn=Wt.addYear(Xt,nn);wt(Rn),en(null,Rn)};return f.createElement("div",{className:pn},f.createElement(Pt,Object.assign({},ye,{prefixCls:lt,onPrevYear:function(){Nn(-1)},onNextYear:function(){Nn(1)},onYearClick:function(){en("year",Xt)}})),f.createElement(Ht,Object.assign({},ye,{prefixCls:lt,onSelect:function(nn){vn(nn,"mouse")}})))}var Cn=bn;function Yn(ye){var lt=ye.prefixCls,Mt=ye.generateConfig,wt=ye.viewDate,Wt=ye.onPrevDecade,Lt=ye.onNextDecade,Xt=ye.onDecadeClick,en=f.useContext(i),vn=en.hideHeader;if(vn)return null;var pn="".concat(lt,"-header"),Nn=Mt.getYear(wt),wn=Math.floor(Nn/Rr)*Rr,nn=wn+Rr-1;return f.createElement(s,Object.assign({},ye,{prefixCls:pn,onSuperPrev:Wt,onSuperNext:Lt}),f.createElement("button",{type:"button",onClick:Xt,className:"".concat(lt,"-decade-btn")},wn,"-",nn))}var qn=Yn,Pn=3,cn=4;function xr(ye){var lt=ye.prefixCls,Mt=ye.value,wt=ye.viewDate,Wt=ye.locale,Lt=ye.generateConfig,Xt=f.useContext(ft),en=Xt.rangedValue,vn=Xt.hoverRangedValue,pn="".concat(lt,"-cell"),Nn=Lt.getYear(wt),wn=Math.floor(Nn/Rr)*Rr,nn=wn+Rr-1,Rn=Lt.setYear(wt,wn-Math.ceil((Pn*cn-Rr)/2)),gn=function(Jn){var hr=Lt.getYear(Jn);return wn<=hr&&hr<=nn},kn=kt({cellPrefixCls:pn,value:Mt,generateConfig:Lt,rangedValue:en,hoverRangedValue:vn,isSameCell:function(Jn,hr){return te(Lt,Jn,hr)},isInView:gn,offsetCell:function(Jn,hr){return Lt.addYear(Jn,hr)}});return f.createElement(ht,Object.assign({},ye,{rowNum:cn,colNum:Pn,baseDate:Rn,getCellText:Lt.getYear,getCellClassName:kn,getCellDate:Lt.addYear,titleCell:function(Jn){return Lt.locale.format(Wt.locale,Jn,"YYYY")}}))}var wr=xr,Rr=10;function cr(ye){var lt=ye.prefixCls,Mt=ye.operationRef,wt=ye.onViewDateChange,Wt=ye.generateConfig,Lt=ye.value,Xt=ye.viewDate,en=ye.sourceMode,vn=ye.onSelect,pn=ye.onPanelChange,Nn="".concat(lt,"-year-panel");Mt.current={onKeyDown:function(Rn){return E(Rn,{onLeftRight:function(kn){vn(Wt.addYear(Lt||Xt,kn),"key")},onCtrlLeftRight:function(kn){vn(Wt.addYear(Lt||Xt,kn*Rr),"key")},onUpDown:function(kn){vn(Wt.addYear(Lt||Xt,kn*Pn),"key")},onEnter:function(){pn(en==="date"?"date":"month",Lt||Xt)}})}};var wn=function(Rn){var gn=Wt.addYear(Xt,Rn*10);wt(gn),pn(null,gn)};return f.createElement("div",{className:Nn},f.createElement(qn,Object.assign({},ye,{prefixCls:lt,onPrevDecade:function(){wn(-1)},onNextDecade:function(){wn(1)},onDecadeClick:function(){pn("decade",Xt)}})),f.createElement(wr,Object.assign({},ye,{prefixCls:lt,onSelect:function(Rn){pn(en==="date"?"date":"month",Rn),vn(Rn,"mouse")}})))}var Ur=cr;function yr(ye){var lt=ye.prefixCls,Mt=ye.generateConfig,wt=ye.viewDate,Wt=ye.onPrevDecades,Lt=ye.onNextDecades,Xt=f.useContext(i),en=Xt.hideHeader;if(en)return null;var vn="".concat(lt,"-header"),pn=Mt.getYear(wt),Nn=Math.floor(pn/Wn)*Wn,wn=Nn+Wn-1;return f.createElement(s,Object.assign({},ye,{prefixCls:vn,onSuperPrev:Wt,onSuperNext:Lt}),Nn,"-",wn)}var sn=yr,Zt=3,Tn=4;function jr(ye){var lt=$n-1,Mt=ye.prefixCls,wt=ye.viewDate,Wt=ye.generateConfig,Lt=ye.disabledDate,Xt="".concat(Mt,"-cell"),en=Wt.getYear(wt),vn=Math.floor(en/$n)*$n,pn=Math.floor(en/Wn)*Wn,Nn=pn+Wn-1,wn=Wt.setYear(wt,pn-Math.ceil((Zt*Tn*$n-Wn)/2)),nn=function(gn){var kn,Dn=Lt&&Lt(gn),Jn=Wt.getYear(gn),hr=Jn+lt;return kn={},Object(y.a)(kn,"".concat(Xt,"-disabled"),Dn),Object(y.a)(kn,"".concat(Xt,"-in-view"),pn<=Jn&&hr<=Nn),Object(y.a)(kn,"".concat(Xt,"-selected"),Jn===vn),kn};return f.createElement(ht,Object.assign({},ye,{rowNum:Tn,colNum:Zt,baseDate:wn,getCellText:function(gn){var kn=Wt.getYear(gn);return"".concat(kn,"-").concat(kn+lt)},getCellClassName:nn,getCellDate:function(gn,kn){return Wt.addYear(gn,kn*$n)}}))}var jn=jr,$n=10,Wn=$n*10;function pe(ye){var lt=ye.prefixCls,Mt=ye.onViewDateChange,wt=ye.generateConfig,Wt=ye.viewDate,Lt=ye.operationRef,Xt=ye.onSelect,en=ye.onPanelChange,vn="".concat(lt,"-decade-panel");Lt.current={onKeyDown:function(nn){return E(nn,{onLeftRight:function(gn){Xt(wt.addYear(Wt,gn*$n),"key")},onCtrlLeftRight:function(gn){Xt(wt.addYear(Wt,gn*Wn),"key")},onUpDown:function(gn){Xt(wt.addYear(Wt,gn*$n*Zt),"key")},onEnter:function(){en("year",Wt)}})}};var pn=function(nn){var Rn=wt.addYear(Wt,nn*Wn);Mt(Rn),en(null,Rn)},Nn=function(nn){Xt(nn,"mouse"),en("year",nn)};return f.createElement("div",{className:vn},f.createElement(sn,Object.assign({},ye,{prefixCls:lt,onPrevDecades:function(){pn(-1)},onNextDecades:function(){pn(1)}})),f.createElement(jn,Object.assign({},ye,{prefixCls:lt,onSelect:Nn})))}var V=pe;function Z(ye,lt,Mt){return Mt?f.createElement("div",{className:"".concat(ye,"-footer-extra")},Mt(lt)):null}function oe(ye){var lt=ye.prefixCls,Mt=ye.rangeList,wt=Mt===void 0?[]:Mt,Wt=ye.components,Lt=Wt===void 0?{}:Wt,Xt=ye.needConfirmButton,en=ye.onNow,vn=ye.onOk,pn=ye.okDisabled,Nn=ye.showNow,wn=ye.locale,nn,Rn;if(wt.length){var gn=Lt.rangeItem||"span";nn=f.createElement(f.Fragment,null,wt.map(function(Dn){var Jn=Dn.label,hr=Dn.onClick,Br=Dn.onMouseEnter,xn=Dn.onMouseLeave;return f.createElement("li",{key:Jn,className:"".concat(lt,"-preset")},f.createElement(gn,{onClick:hr,onMouseEnter:Br,onMouseLeave:xn},Jn))}))}if(Xt){var kn=Lt.button||"button";en&&!nn&&Nn!==!1&&(nn=f.createElement("li",{className:"".concat(lt,"-now")},f.createElement("a",{className:"".concat(lt,"-now-btn"),onClick:en},wn.now))),Rn=Xt&&f.createElement("li",{className:"".concat(lt,"-ok")},f.createElement(kn,{disabled:pn,onClick:vn},wn.ok))}return!nn&&!Rn?null:f.createElement("ul",{className:"".concat(lt,"-ranges")},nn,Rn)}function Ce(ye){var lt,Mt=ye.prefixCls,wt=Mt===void 0?"rc-picker":Mt,Wt=ye.className,Lt=ye.style,Xt=ye.locale,en=ye.generateConfig,vn=ye.value,pn=ye.defaultValue,Nn=ye.pickerValue,wn=ye.defaultPickerValue,nn=ye.disabledDate,Rn=ye.mode,gn=ye.picker,kn=gn===void 0?"date":gn,Dn=ye.tabIndex,Jn=Dn===void 0?0:Dn,hr=ye.showNow,Br=ye.showTime,xn=ye.showToday,Yt=ye.renderExtraFooter,dn=ye.hideHeader,An=ye.onSelect,qt=ye.onChange,Sn=ye.onPanelChange,mn=ye.onMouseDown,Mn=ye.onPickerValueChange,Un=ye.onOk,ir=ye.components,er=ye.direction,Ar=ye.hourStep,Mr=Ar===void 0?1:Ar,Qn=ye.minuteStep,Tr=Qn===void 0?1:Qn,mr=ye.secondStep,Gr=mr===void 0?1:mr,Ir=kn==="date"&&!!Br||kn==="time",qr=24%Mr===0,rr=60%Tr===0,Gt=60%Gr===0,Qt=f.useContext(i),Jt=Qt.operationRef,zn=Qt.panelRef,tr=Qt.onSelect,Ln=Qt.hideRanges,ar=Qt.defaultOpenValue,ur=f.useContext(ft),or=ur.inRange,Zr=ur.panelPosition,sr=ur.rangedValue,la=ur.hoverRangedValue,Xr=f.useRef({}),gr=f.useRef(!0),Cr=Object(u.a)(null,{value:vn,defaultValue:pn,postState:function(_n){return!_n&&ar&&kn==="time"?ar:_n}}),Hr=Object(w.a)(Cr,2),Yr=Hr[0],Oa=Hr[1],va=Object(u.a)(null,{value:Nn,defaultValue:wn||Yr,postState:function(_n){return _n||en.getNow()}}),Ze=Object(w.a)(va,2),dt=Ze[0],yt=Ze[1],nt=function(_n){yt(_n),Mn&&Mn(_n)},Pe=function(_n){var Bn=K[kn];return Bn?Bn(_n):_n},Xe=Object(u.a)(function(){return kn==="time"?"time":Pe("date")},{value:Rn}),Ie=Object(w.a)(Xe,2),$e=Ie[0],qe=Ie[1];f.useEffect(function(){qe(kn)},[kn]);var pt=f.useState(function(){return $e}),rt=Object(w.a)(pt,2),It=rt[0],Vt=rt[1],fn=function(_n,Bn){var zr=Pe(_n||$e);Vt($e),qe(zr),Sn&&($e!==zr||Et(en,dt,dt))&&Sn(Bn,zr)},on=function(_n,Bn){var zr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;($e===kn||zr)&&(Oa(_n),An&&An(_n),tr&&tr(_n,Bn),qt&&!Et(en,_n,Yr)&&qt(_n))},un=function(_n){return Xr.current&&Xr.current.onKeyDown?([a.a.LEFT,a.a.RIGHT,a.a.UP,a.a.DOWN,a.a.PAGE_UP,a.a.PAGE_DOWN,a.a.ENTER].includes(_n.which)&&_n.preventDefault(),Xr.current.onKeyDown(_n)):(Object(r.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},ln=function(_n){Xr.current&&Xr.current.onBlur&&Xr.current.onBlur(_n)};Jt&&Zr!=="right"&&(Jt.current={onKeyDown:un,onClose:function(){Xr.current&&Xr.current.onClose&&Xr.current.onClose()}}),f.useEffect(function(){vn&&!gr.current&&yt(vn)},[vn]),f.useEffect(function(){gr.current=!1},[]);var Hn,yn=Object(x.a)(Object(x.a)({},ye),{},{operationRef:Xr,prefixCls:wt,viewDate:dt,value:Yr,onViewDateChange:nt,sourceMode:It,onPanelChange:fn,disabledDate:$e!=="decade"?nn:void 0});delete yn.onChange,delete yn.onSelect;switch($e){case"decade":Hn=f.createElement(V,Object.assign({},yn,{onSelect:function(_n,Bn){nt(_n),on(_n,Bn)}}));break;case"year":Hn=f.createElement(Ur,Object.assign({},yn,{onSelect:function(_n,Bn){nt(_n),on(_n,Bn)}}));break;case"month":Hn=f.createElement(ut,Object.assign({},yn,{onSelect:function(_n,Bn){nt(_n),on(_n,Bn)}}));break;case"quarter":Hn=f.createElement(Cn,Object.assign({},yn,{onSelect:function(_n,Bn){nt(_n),on(_n,Bn)}}));break;case"week":Hn=f.createElement(an,Object.assign({},yn,{onSelect:function(_n,Bn){nt(_n),on(_n,Bn)}}));break;case"time":delete yn.showTime,Hn=f.createElement(we,Object.assign({},yn,Object(t.a)(Br)==="object"?Br:null,{onSelect:function(_n,Bn){nt(_n),on(_n,Bn)}}));break;default:Br?Hn=f.createElement(Ot,Object.assign({},yn,{onSelect:function(_n,Bn){nt(_n),on(_n,Bn)}})):Hn=f.createElement(Fe,Object.assign({},yn,{onSelect:function(_n,Bn){nt(_n),on(_n,Bn)}}))}var kr,Dr,Jr=function(){var _n=en.getNow(),Bn=ve(en.getHour(_n),en.getMinute(_n),en.getSecond(_n),qr?Mr:1,rr?Tr:1,Gt?Gr:1),zr=be(en,_n,Bn[0],Bn[1],Bn[2]);on(zr,"submit")};Ln||(kr=Z(wt,$e,Yt),Dr=oe({prefixCls:wt,components:ir,needConfirmButton:Ir,okDisabled:!Yr||nn&&nn(Yr),locale:Xt,showNow:hr,onNow:Ir&&Jr,onOk:function(){Yr&&(on(Yr,"submit",!0),Un&&Un(Yr))}}));var Fr;if(xn&&$e==="date"&&kn==="date"&&!Br){var ta=en.getNow(),Kn="".concat(wt,"-today-btn"),Sr=nn&&nn(ta);Fr=f.createElement("a",{className:d()(Kn,Sr&&"".concat(Kn,"-disabled")),"aria-disabled":Sr,onClick:function(){Sr||on(ta,"mouse",!0)}},Xt.today)}return f.createElement(i.Provider,{value:Object(x.a)(Object(x.a)({},Qt),{},{hideHeader:"hideHeader"in ye?dn:Qt.hideHeader,hidePrevBtn:or&&Zr==="right",hideNextBtn:or&&Zr==="left"})},f.createElement("div",{tabIndex:Jn,className:d()("".concat(wt,"-panel"),Wt,(lt={},Object(y.a)(lt,"".concat(wt,"-panel-has-range"),sr&&sr[0]&&sr[1]),Object(y.a)(lt,"".concat(wt,"-panel-has-range-hover"),la&&la[0]&&la[1]),Object(y.a)(lt,"".concat(wt,"-panel-rtl"),er==="rtl"),lt)),style:Lt,onKeyDown:un,onBlur:ln,onMouseDown:mn,ref:zn},Hn,kr||Dr||Fr?f.createElement("div",{className:"".concat(wt,"-footer")},kr,Dr,Fr):null))}var he=Ce,ct=o("uciX"),rn={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 In(ye){var lt,Mt=ye.prefixCls,wt=ye.popupElement,Wt=ye.popupStyle,Lt=ye.visible,Xt=ye.dropdownClassName,en=ye.dropdownAlign,vn=ye.transitionName,pn=ye.getPopupContainer,Nn=ye.children,wn=ye.range,nn=ye.popupPlacement,Rn=ye.direction,gn="".concat(Mt,"-dropdown"),kn=function(){return nn!==void 0?nn:Rn==="rtl"?"bottomRight":"bottomLeft"};return f.createElement(ct.a,{showAction:[],hideAction:[],popupPlacement:kn(),builtinPlacements:rn,prefixCls:gn,popupTransitionName:vn,popup:wt,popupAlign:en,popupVisible:Lt,popupClassName:d()(Xt,(lt={},Object(y.a)(lt,"".concat(gn,"-range"),wn),Object(y.a)(lt,"".concat(gn,"-rtl"),Rn==="rtl"),lt)),popupStyle:Wt,getPopupContainer:pn},Nn)}var Vn=In;function tn(ye){var lt=ye.open,Mt=ye.value,wt=ye.isClickOutside,Wt=ye.triggerOpen,Lt=ye.forwardKeyDown,Xt=ye.blurToCancel,en=ye.onSubmit,vn=ye.onCancel,pn=ye.onFocus,Nn=ye.onBlur,wn=Object(f.useState)(!1),nn=Object(w.a)(wn,2),Rn=nn[0],gn=nn[1],kn=Object(f.useState)(!1),Dn=Object(w.a)(kn,2),Jn=Dn[0],hr=Dn[1],Br=Object(f.useRef)(!1),xn=Object(f.useRef)(!1),Yt={onMouseDown:function(){gn(!0),Wt(!0)},onKeyDown:function(An){switch(An.which){case a.a.ENTER:{lt?en()!==!1&&gn(!0):Wt(!0),An.preventDefault();return}case a.a.TAB:{Rn&&lt&&!An.shiftKey?(gn(!1),An.preventDefault()):!Rn&&lt&&(!Lt(An)&&An.shiftKey&&(gn(!0),An.preventDefault()));return}case a.a.ESC:{gn(!0),vn();return}}!lt&&![a.a.SHIFT].includes(An.which)?Wt(!0):Rn||Lt(An)},onFocus:function(An){gn(!0),hr(!0),pn&&pn(An)},onBlur:function(An){if(Br.current||!wt(document.activeElement)){Br.current=!1;return}Xt?setTimeout(function(){wt(document.activeElement)&&vn()},0):lt&&(Wt(!1),xn.current&&en()),hr(!1),Nn&&Nn(An)}};return Object(f.useEffect)(function(){xn.current=!1},[lt]),Object(f.useEffect)(function(){xn.current=!0},[Mt]),Object(f.useEffect)(function(){return D(function(dn){var An=dn.target;lt&&(wt(An)?Jn||Wt(!1):(Br.current=!0,requestAnimationFrame(function(){Br.current=!1})))})}),[Yt,{focused:Jn,typing:Rn}]}function En(ye){var lt=ye.valueTexts,Mt=ye.onTextChange,wt=f.useState(""),Wt=Object(w.a)(wt,2),Lt=Wt[0],Xt=Wt[1],en=f.useRef([]);en.current=lt;function vn(Nn){Xt(Nn),Mt(Nn)}function pn(){Xt(en.current[0])}return f.useEffect(function(){lt.every(function(Nn){return Nn!==Lt})&&pn()},[lt.join("||")]),[Lt,vn,pn]}var Xn=o("Gytx"),$r=o.n(Xn);function ga(ye,lt){var Mt=lt.formatList,wt=lt.generateConfig,Wt=lt.locale;return Object(S.a)(function(){if(!ye)return[[""],""];for(var Lt="",Xt=[],en=0;en<Mt.length;en+=1){var vn=Mt[en],pn=wt.locale.format(Wt.locale,ye,vn);Xt.push(pn),en===0&&(Lt=pn)}return[Xt,Lt]},[ye,Mt],function(Lt,Xt){return Lt[0]!==Xt[0]||!$r()(Lt[1],Xt[1])})}function pa(ye,lt){var Mt=lt.formatList,wt=lt.generateConfig,Wt=lt.locale,Lt=Object(f.useState)(null),Xt=Object(w.a)(Lt,2),en=Xt[0],vn=Xt[1],pn=Object(f.useRef)(null);function Nn(Dn){var Jn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(pn.current),Jn){vn(Dn);return}pn.current=requestAnimationFrame(function(){vn(Dn)})}var wn=ga(en,{formatList:Mt,generateConfig:wt,locale:Wt}),nn=Object(w.a)(wn,2),Rn=nn[1];function gn(Dn){Nn(Dn)}function kn(){var Dn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Nn(null,Dn)}return Object(f.useEffect)(function(){kn(!0)},[ye]),Object(f.useEffect)(function(){return function(){return cancelAnimationFrame(pn.current)}},[]),[Rn,gn,kn]}function dr(ye){var lt,Mt=ye.prefixCls,wt=Mt===void 0?"rc-picker":Mt,Wt=ye.id,Lt=ye.tabIndex,Xt=ye.style,en=ye.className,vn=ye.dropdownClassName,pn=ye.dropdownAlign,Nn=ye.popupStyle,wn=ye.transitionName,nn=ye.generateConfig,Rn=ye.locale,gn=ye.inputReadOnly,kn=ye.allowClear,Dn=ye.autoFocus,Jn=ye.showTime,hr=ye.picker,Br=hr===void 0?"date":hr,xn=ye.format,Yt=ye.use12Hours,dn=ye.value,An=ye.defaultValue,qt=ye.open,Sn=ye.defaultOpen,mn=ye.defaultOpenValue,Mn=ye.suffixIcon,Un=ye.clearIcon,ir=ye.disabled,er=ye.disabledDate,Ar=ye.placeholder,Mr=ye.getPopupContainer,Qn=ye.pickerRef,Tr=ye.panelRender,mr=ye.onChange,Gr=ye.onOpenChange,Ir=ye.onFocus,qr=ye.onBlur,rr=ye.onMouseDown,Gt=ye.onMouseUp,Qt=ye.onMouseEnter,Jt=ye.onMouseLeave,zn=ye.onContextMenu,tr=ye.onClick,Ln=ye.direction,ar=ye.autoComplete,ur=ar===void 0?"off":ar,or=f.useRef(null),Zr=Br==="date"&&!!Jn||Br==="time",sr=de(C(xn,Br,Jn,Yt)),la=f.useRef(null),Xr=f.useRef(null),gr=Object(u.a)(null,{value:dn,defaultValue:An}),Cr=Object(w.a)(gr,2),Hr=Cr[0],Yr=Cr[1],Oa=f.useState(Hr),va=Object(w.a)(Oa,2),Ze=va[0],dt=va[1],yt=f.useRef(null),nt=Object(u.a)(!1,{value:qt,defaultValue:Sn,postState:function(nr){return ir?!1:nr},onChange:function(nr){Gr&&Gr(nr),!nr&&yt.current&&yt.current.onClose&&yt.current.onClose()}}),Pe=Object(w.a)(nt,2),Xe=Pe[0],Ie=Pe[1],$e=ga(Ze,{formatList:sr,generateConfig:nn,locale:Rn}),qe=Object(w.a)($e,2),pt=qe[0],rt=qe[1],It=En({valueTexts:pt,onTextChange:function(nr){var da=nn.locale.parse(Rn.locale,nr,sr);da&&(!er||!er(da))&&dt(da)}}),Vt=Object(w.a)(It,3),fn=Vt[0],on=Vt[1],un=Vt[2],ln=function(nr){dt(nr),Yr(nr),mr&&!Et(nn,Hr,nr)&&mr(nr,nr?nn.locale.format(Rn.locale,nr,sr[0]):"")},Hn=function(nr){if(ir&&nr)return;Ie(nr)},yn=function(nr){return Xe&&yt.current&&yt.current.onKeyDown?yt.current.onKeyDown(nr):(Object(r.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},kr=function(){Gt&&Gt.apply(void 0,arguments),or.current&&(or.current.focus(),Hn(!0))},Dr=tn({blurToCancel:Zr,open:Xe,value:fn,triggerOpen:Hn,forwardKeyDown:yn,isClickOutside:function(nr){return!B([la.current,Xr.current],nr)},onSubmit:function(){return er&&er(Ze)?!1:(ln(Ze),Hn(!1),un(),!0)},onCancel:function(){Hn(!1),dt(Hr),un()},onFocus:Ir,onBlur:qr}),Jr=Object(w.a)(Dr,2),Fr=Jr[0],ta=Jr[1],Kn=ta.focused,Sr=ta.typing;f.useEffect(function(){Xe||(dt(Hr),!pt.length||pt[0]===""?on(""):rt!==fn&&un())},[Xe,pt]),f.useEffect(function(){Xe||un()},[Br]),f.useEffect(function(){dt(Hr)},[Hr]),Qn&&(Qn.current={focus:function(){or.current&&or.current.focus()},blur:function(){or.current&&or.current.blur()}});var Gn=Object(x.a)(Object(x.a)({},ye),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),_n=f.createElement(he,Object.assign({},Gn,{generateConfig:nn,className:d()(Object(y.a)({},"".concat(wt,"-panel-focused"),!Sr)),value:Ze,locale:Rn,tabIndex:-1,onChange:dt,direction:Ln}));Tr&&(_n=Tr(_n));var Bn=f.createElement("div",{className:"".concat(wt,"-panel-container"),onMouseDown:function(nr){nr.preventDefault()}},_n),zr;Mn&&(zr=f.createElement("span",{className:"".concat(wt,"-suffix")},Mn));var sa;kn&&Hr&&!ir&&(sa=f.createElement("span",{onMouseDown:function(nr){nr.preventDefault(),nr.stopPropagation()},onMouseUp:function(nr){nr.preventDefault(),nr.stopPropagation(),ln(null),Hn(!1)},className:"".concat(wt,"-clear")},Un||f.createElement("span",{className:"".concat(wt,"-clear-btn")})));var fr=function(nr,da){(da==="submit"||da!=="key"&&!Zr)&&(ln(nr),Hn(!1))},ra=Ln==="rtl"?"bottomRight":"bottomLeft",Ea=pa(fn,{formatList:sr,generateConfig:nn,locale:Rn}),ca=Object(w.a)(Ea,3),xa=ca[0],Or=ca[1],vr=ca[2];return f.createElement(i.Provider,{value:{operationRef:yt,hideHeader:Br==="time",panelRef:la,onSelect:fr,open:Xe,defaultOpenValue:mn,onDateMouseEnter:Or,onDateMouseLeave:vr}},f.createElement(Vn,{visible:Xe,popupElement:Bn,popupStyle:Nn,prefixCls:wt,dropdownClassName:vn,dropdownAlign:pn,getPopupContainer:Mr,transitionName:wn,popupPlacement:ra,direction:Ln},f.createElement("div",{className:d()(wt,en,(lt={},Object(y.a)(lt,"".concat(wt,"-disabled"),ir),Object(y.a)(lt,"".concat(wt,"-focused"),Kn),Object(y.a)(lt,"".concat(wt,"-rtl"),Ln==="rtl"),lt)),style:Xt,onMouseDown:rr,onMouseUp:kr,onMouseEnter:Qt,onMouseLeave:Jt,onContextMenu:zn,onClick:tr},f.createElement("div",{className:d()("".concat(wt,"-input"),Object(y.a)({},"".concat(wt,"-input-placeholder"),!!xa)),ref:Xr},f.createElement("input",Object.assign({id:Wt,tabIndex:Lt,disabled:ir,readOnly:gn||!Sr,value:xa||fn,onChange:function(nr){on(nr.target.value)},autoFocus:Dn,placeholder:Ar,ref:or,title:fn},Fr,{size:m(Br,sr[0])},xe(ye),{autoComplete:ur})),zr,sa))))}var za=function(ye){Object(A.a)(Mt,ye);var lt=Object(b.a)(Mt);function Mt(){var wt;return Object(L.a)(this,Mt),wt=lt.apply(this,arguments),wt.pickerRef=f.createRef(),wt.focus=function(){wt.pickerRef.current&&wt.pickerRef.current.focus()},wt.blur=function(){wt.pickerRef.current&&wt.pickerRef.current.blur()},wt}return Object(g.a)(Mt,[{key:"render",value:function(){return f.createElement(dr,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Mt}(f.Component),ja=za;function Ra(ye,lt,Mt){var wt=ye.picker,Wt=ye.locale,Lt=ye.selectedValue,Xt=ye.disabledDate,en=ye.disabled,vn=ye.generateConfig,pn=Oe(Lt,0),Nn=Oe(Lt,1);function wn(Dn){var Jn=vn.getYear(Dn),hr=vn.locale.getWeek(Wt.locale,Dn);return Jn*100+hr}function nn(Dn){var Jn=vn.getYear(Dn),hr=vn.getMonth(Dn);return Jn*100+hr}function Rn(Dn){var Jn=vn.getYear(Dn),hr=De(vn,Dn);return Jn*10+hr}var gn=f.useCallback(function(Dn){if(Xt&&Xt(Dn))return!0;if(en[1]&&Nn)return!tt(vn,Dn,Nn)&&vn.isAfter(Dn,Nn);if(lt&&Nn)switch(wt){case"quarter":return Rn(Dn)>Rn(Nn);case"month":return nn(Dn)>nn(Nn);case"week":return wn(Dn)>wn(Nn);default:return!tt(vn,Dn,Nn)&&vn.isAfter(Dn,Nn)}return!1},[Xt,en[1],Nn,lt]),kn=f.useCallback(function(Dn){if(Xt&&Xt(Dn))return!0;if(en[0]&&pn)return!tt(vn,Dn,Nn)&&vn.isAfter(pn,Dn);if(Mt&&pn)switch(wt){case"quarter":return Rn(Dn)<Rn(pn);case"month":return nn(Dn)<nn(pn);case"week":return wn(Dn)<wn(pn);default:return!tt(vn,Dn,pn)&&vn.isAfter(pn,Dn)}return!1},[Xt,en[0],pn,Mt]);return[gn,kn]}function Ha(ye,lt,Mt,wt){var Wt=Je(ye,Mt,wt,1);function Lt(Xt){return Xt(ye,lt)?"same":Xt(Wt,lt)?"closing":"far"}switch(Mt){case"year":return Lt(function(Xt,en){return J(wt,Xt,en)});case"quarter":case"month":return Lt(function(Xt,en){return te(wt,Xt,en)});default:return Lt(function(Xt,en){return ke(wt,Xt,en)})}}function Sa(ye,lt,Mt,wt){var Wt=Oe(ye,0),Lt=Oe(ye,1);if(lt===0)return Wt;if(Wt&&Lt){var Xt=Ha(Wt,Lt,Mt,wt);switch(Xt){case"same":return Wt;case"closing":return Wt;default:return Je(Lt,Mt,wt,-1)}}return Wt}function Ja(ye){var lt=ye.values,Mt=ye.picker,wt=ye.defaultDates,Wt=ye.generateConfig,Lt=f.useState(function(){return[Oe(wt,0),Oe(wt,1)]}),Xt=Object(w.a)(Lt,2),en=Xt[0],vn=Xt[1],pn=f.useState(null),Nn=Object(w.a)(pn,2),wn=Nn[0],nn=Nn[1],Rn=Oe(lt,0),gn=Oe(lt,1);function kn(Jn){return en[Jn]?en[Jn]:Oe(wn,Jn)||Sa(lt,Jn,Mt,Wt)||Rn||gn||Wt.getNow()}function Dn(Jn,hr){if(Jn){var Br=ce(wn,Jn,hr);vn(ce(en,null,hr)||[null,null]);var xn=(hr+1)%2;Oe(lt,xn)||(Br=ce(Br,Jn,xn)),nn(Br)}else(Rn||gn)&&nn(null)}return[kn,Dn]}function ka(ye,lt){return ye&&ye[0]&&ye[1]&&lt.isAfter(ye[0],ye[1])?[ye[1],ye[0]]:ye}function li(ye,lt,Mt,wt){return ye||wt&&wt[lt]?!0:!!Mt[(lt+1)%2]}function oi(ye){var lt,Mt,wt,Wt=ye.prefixCls,Lt=Wt===void 0?"rc-picker":Wt,Xt=ye.id,en=ye.style,vn=ye.className,pn=ye.popupStyle,Nn=ye.dropdownClassName,wn=ye.transitionName,nn=ye.dropdownAlign,Rn=ye.getPopupContainer,gn=ye.generateConfig,kn=ye.locale,Dn=ye.placeholder,Jn=ye.autoFocus,hr=ye.disabled,Br=ye.format,xn=ye.picker,Yt=xn===void 0?"date":xn,dn=ye.showTime,An=ye.use12Hours,qt=ye.separator,Sn=qt===void 0?"~":qt,mn=ye.value,Mn=ye.defaultValue,Un=ye.defaultPickerValue,ir=ye.open,er=ye.defaultOpen,Ar=ye.disabledDate,Mr=ye.disabledTime,Qn=ye.dateRender,Tr=ye.panelRender,mr=ye.ranges,Gr=ye.allowEmpty,Ir=ye.allowClear,qr=ye.suffixIcon,rr=ye.clearIcon,Gt=ye.pickerRef,Qt=ye.inputReadOnly,Jt=ye.mode,zn=ye.renderExtraFooter,tr=ye.onChange,Ln=ye.onOpenChange,ar=ye.onPanelChange,ur=ye.onCalendarChange,or=ye.onFocus,Zr=ye.onBlur,sr=ye.onOk,la=ye.components,Xr=ye.order,gr=ye.direction,Cr=ye.activePickerIndex,Hr=ye.autoComplete,Yr=Hr===void 0?"off":Hr,Oa=Yt==="date"&&!!dn||Yt==="time",va=Object(f.useRef)({}),Ze=Object(f.useRef)(null),dt=Object(f.useRef)(null),yt=Object(f.useRef)(null),nt=Object(f.useRef)(null),Pe=Object(f.useRef)(null),Xe=Object(f.useRef)(null),Ie=Object(f.useRef)(null),$e=de(C(Br,Yt,dn,An)),qe=Object(u.a)(0,{value:Cr}),pt=Object(w.a)(qe,2),rt=pt[0],It=pt[1],Vt=Object(f.useRef)(null),fn=f.useMemo(function(){return Array.isArray(hr)?hr:[hr||!1,hr||!1]},[hr]),on=Object(u.a)(null,{value:mn,defaultValue:Mn,postState:function(Er){return Yt==="time"&&!Xr?Er:ka(Er,gn)}}),un=Object(w.a)(on,2),ln=un[0],Hn=un[1],yn=Ja({values:ln,picker:Yt,defaultDates:Un,generateConfig:gn}),kr=Object(w.a)(yn,2),Dr=kr[0],Jr=kr[1],Fr=Object(u.a)(ln,{postState:function(Er){var Qr=Er;if(fn[0]&&fn[1])return Qr;for(var ma=0;ma<2;ma+=1)fn[ma]&&!Oe(Qr,ma)&&!Oe(Gr,ma)&&(Qr=ce(Qr,gn.getNow(),ma));return Qr}}),ta=Object(w.a)(Fr,2),Kn=ta[0],Sr=ta[1],Gn=Object(u.a)([Yt,Yt],{value:Jt}),_n=Object(w.a)(Gn,2),Bn=_n[0],zr=_n[1];Object(f.useEffect)(function(){zr([Yt,Yt])},[Yt]);var sa=function(Er,Qr){zr(Er),ar&&ar(Qr,Er)},fr=Ra({picker:Yt,selectedValue:Kn,locale:kn,disabled:fn,disabledDate:Ar,generateConfig:gn},va.current[1],va.current[0]),ra=Object(w.a)(fr,2),Ea=ra[0],ca=ra[1],xa=Object(u.a)(!1,{value:ir,defaultValue:er,postState:function(Er){return fn[rt]?!1:Er},onChange:function(Er){Ln&&Ln(Er),!Er&&Vt.current&&Vt.current.onClose&&Vt.current.onClose()}}),Or=Object(w.a)(xa,2),vr=Or[0],Pr=Or[1],nr=vr&&rt===0,da=vr&&rt===1,ya=Object(f.useState)(0),_a=Object(w.a)(ya,2),Ta=_a[0],ha=_a[1];Object(f.useEffect)(function(){!vr&&Ze.current&&ha(Ze.current.offsetWidth)},[vr]);var La=f.useRef();function Na(ia,Er){if(ia)clearTimeout(La.current),va.current[Er]=!0,It(Er),Pr(ia),vr||Jr(null,Er);else if(rt===Er){Pr(ia);var Qr=va.current;La.current=setTimeout(function(){Qr===va.current&&(va.current={})})}}function Ba(ia){Na(!0,ia),setTimeout(function(){var Er=[Xe,Ie][ia];Er.current&&Er.current.focus()},0)}function ni(ia,Er){var Qr=ia,ma=Oe(Qr,0),Fa=Oe(Qr,1);ma&&Fa&&gn.isAfter(ma,Fa)&&(Yt==="week"&&!gt(gn,kn.locale,ma,Fa)||Yt==="quarter"&&!Te(gn,ma,Fa)||Yt!=="week"&&Yt!=="quarter"&&Yt!=="time"&&!tt(gn,ma,Fa)?(Er===0?(Qr=[ma,null],Fa=null):(ma=null,Qr=[null,Fa]),va.current=Object(y.a)({},Er,!0)):(Yt!=="time"||Xr!==!1)&&(Qr=ka(Qr,gn))),Sr(Qr);var Ei=Qr&&Qr[0]?gn.locale.format(kn.locale,Qr[0],$e[0]):"",Pi=Qr&&Qr[1]?gn.locale.format(kn.locale,Qr[1],$e[0]):"";if(ur){var $a={range:Er===0?"start":"end"};ur(Qr,[Ei,Pi],$a)}var xi=li(ma,0,fn,Gr),Ki=li(Fa,1,fn,Gr),go=Qr===null||xi&&Ki;go&&(Hn(Qr),tr&&(!Et(gn,Oe(ln,0),ma)||!Et(gn,Oe(ln,1),Fa))&&tr(Qr,[Ei,Pi]));var Qa=null;Er===0&&!fn[1]?Qa=1:Er===1&&!fn[0]&&(Qa=0),Qa!==null&&Qa!==rt&&(!va.current[Qa]||!Oe(Qr,Qa))&&Oe(Qr,Er)?Ba(Qa):Na(!1,Er)}var Fi=function(Er){return vr&&Vt.current&&Vt.current.onKeyDown?Vt.current.onKeyDown(Er):(Object(r.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Ai={formatList:$e,generateConfig:gn,locale:kn},Ia=ga(Oe(Kn,0),Ai),bi=Object(w.a)(Ia,2),Si=bi[0],Ua=bi[1],Pa=ga(Oe(Kn,1),Ai),Za=Object(w.a)(Pa,2),to=Za[0],Mo=Za[1],Ii=function(Er,Qr){var ma=gn.locale.parse(kn.locale,Er,$e),Fa=Qr===0?Ea:ca;ma&&!Fa(ma)&&(Sr(ce(Kn,ma,Qr)),Jr(ma,Qr))},no=En({valueTexts:Si,onTextChange:function(Er){return Ii(Er,0)}}),ro=Object(w.a)(no,3),mi=ro[0],uo=ro[1],Io=ro[2],Lo=En({valueTexts:to,onTextChange:function(Er){return Ii(Er,1)}}),bo=Object(w.a)(Lo,3),Vi=bo[0],co=bo[1],Xi=bo[2],Yi=Object(f.useState)(null),No=Object(w.a)(Yi,2),yo=No[0],ao=No[1],Ji=Object(f.useState)(null),Qi=Object(w.a)(Ji,2),ei=Qi[0],Li=Qi[1],Di=pa(mi,{formatList:$e,generateConfig:gn,locale:kn}),Zi=Object(w.a)(Di,3),Ri=Zi[0],Eo=Zi[1],xo=Zi[2],Co=pa(Vi,{formatList:$e,generateConfig:gn,locale:kn}),io=Object(w.a)(Co,3),Ni=io[0],qi=io[1],ko=io[2],oo=function(Er){Li(ce(Kn,Er,rt)),rt===0?Eo(Er):qi(Er)},so=function(){Li(ce(Kn,null,rt)),rt===0?xo():ko()},So=function(Er,Qr){return{blurToCancel:Oa,forwardKeyDown:Fi,onBlur:Zr,isClickOutside:function(Fa){return!B([dt.current,yt.current,nt.current],Fa)},onFocus:function(Fa){It(Er),or&&or(Fa)},triggerOpen:function(Fa){Na(Fa,Er)},onSubmit:function(){ni(Kn,Er),Qr()},onCancel:function(){Na(!1,Er),Sr(ln),Qr()}}},Uo=tn(Object(x.a)(Object(x.a)({},So(0,Io)),{},{open:nr,value:mi})),jo=Object(w.a)(Uo,2),fi=jo[0],Wa=jo[1],ri=Wa.focused,Xa=Wa.typing,ai=tn(Object(x.a)(Object(x.a)({},So(1,Xi)),{},{open:da,value:Vi})),Oo=Object(w.a)(ai,2),yi=Oo[0],Bo=Oo[1],To=Bo.focused,$i=Bo.typing,Wi=function(Er){!vr&&!Xe.current.contains(Er.target)&&!Ie.current.contains(Er.target)&&(fn[0]?fn[1]||Ba(1):Ba(0))},wo=function(Er){vr&&(ri||To)&&!Xe.current.contains(Er.target)&&!Ie.current.contains(Er.target)&&Er.preventDefault()},fo=ln&&ln[0]?gn.locale.format(kn.locale,ln[0],"YYYYMMDDHHmmss"):"",Wo=ln&&ln[1]?gn.locale.format(kn.locale,ln[1],"YYYYMMDDHHmmss"):"";Object(f.useEffect)(function(){vr||(Sr(ln),!Si.length||Si[0]===""?uo(""):Ua!==mi&&Io(),!to.length||to[0]===""?co(""):Mo!==Vi&&Xi())},[vr,Si,to]),Object(f.useEffect)(function(){Sr(ln)},[fo,Wo]),Gt&&(Gt.current={focus:function(){Xe.current&&Xe.current.focus()},blur:function(){Xe.current&&Xe.current.blur(),Ie.current&&Ie.current.blur()}});var lo=Object.keys(mr||{}),wa=lo.map(function(ia){var Er=mr[ia],Qr=typeof Er=="function"?Er():Er;return{label:ia,onClick:function(){ni(Qr,null),Na(!1,rt)},onMouseEnter:function(){ao(Qr)},onMouseLeave:function(){ao(null)}}});function ba(){var ia=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Er=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Qr=null;vr&&ei&&ei[0]&&ei[1]&&gn.isAfter(ei[1],ei[0])&&(Qr=ei);var ma=dn;if(dn&&Object(t.a)(dn)==="object"&&dn.defaultValue){var Fa=dn.defaultValue;ma=Object(x.a)(Object(x.a)({},dn),{},{defaultValue:Oe(Fa,rt)||void 0})}var Ei=null;return Qn&&(Ei=function($a,xi){return Qn($a,xi,{range:rt?"end":"start"})}),f.createElement(ft.Provider,{value:{inRange:!0,panelPosition:ia,rangedValue:yo||Kn,hoverRangedValue:Qr}},f.createElement(he,Object.assign({},ye,Er,{dateRender:Ei,showTime:ma,mode:Bn[rt],generateConfig:gn,style:void 0,direction:gr,disabledDate:rt===0?Ea:ca,disabledTime:function($a){return Mr?Mr($a,rt===0?"start":"end"):!1},className:d()(Object(y.a)({},"".concat(Lt,"-panel-focused"),rt===0?!Xa:!$i)),value:Oe(Kn,rt),locale:kn,tabIndex:-1,onPanelChange:function($a,xi){sa(ce(Bn,xi,rt),ce(Kn,$a,rt));var Ki=$a;ia==="right"&&Bn[rt]===xi&&(Ki=Je(Ki,xi,gn,-1)),Jr(Ki,rt)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var Ka=0,ui=0;rt&&yt.current&&Pe.current&&dt.current&&(Ka=yt.current.offsetWidth+Pe.current.offsetWidth,dt.current.offsetWidth&&Ka>dt.current.offsetWidth&&(ui=Ka));var eo=gr==="rtl"?{right:Ka}:{left:Ka};function ki(){var ia,Er=Z(Lt,Bn[rt],zn),Qr=oe({prefixCls:Lt,components:la,needConfirmButton:Oa,okDisabled:!Oe(Kn,rt)||Ar&&Ar(Kn[rt]),locale:kn,rangeList:wa,onOk:function(){Oe(Kn,rt)&&(ni(Kn,rt),sr&&sr(Kn))}});if(Yt!=="time"&&!dn){var ma=Dr(rt),Fa=Je(ma,Yt,gn),Ei=Bn[rt],Pi=Ei===Yt,$a=ba(Pi?"left":!1,{pickerValue:ma,onPickerValueChange:function(Qa){Jr(Qa,rt)}}),xi=ba("right",{pickerValue:Fa,onPickerValueChange:function(Qa){Jr(Je(Qa,Yt,gn,-1),rt)}});gr==="rtl"?ia=f.createElement(f.Fragment,null,xi,Pi&&$a):ia=f.createElement(f.Fragment,null,$a,Pi&&xi)}else ia=ba();var Ki=f.createElement(f.Fragment,null,f.createElement("div",{className:"".concat(Lt,"-panels")},ia),(Er||Qr)&&f.createElement("div",{className:"".concat(Lt,"-footer")},Er,Qr));return Tr&&(Ki=Tr(Ki)),f.createElement("div",{className:"".concat(Lt,"-panel-container"),style:{marginLeft:ui},ref:dt,onMouseDown:function(Qa){Qa.preventDefault()}},Ki)}var ho=f.createElement("div",{className:d()("".concat(Lt,"-range-wrapper"),"".concat(Lt,"-").concat(Yt,"-range-wrapper")),style:{minWidth:Ta}},f.createElement("div",{className:"".concat(Lt,"-range-arrow"),style:eo}),ki()),Oi;qr&&(Oi=f.createElement("span",{className:"".concat(Lt,"-suffix")},qr));var qa;Ir&&(Oe(ln,0)&&!fn[0]||Oe(ln,1)&&!fn[1])&&(qa=f.createElement("span",{onMouseDown:function(Er){Er.preventDefault(),Er.stopPropagation()},onMouseUp:function(Er){Er.preventDefault(),Er.stopPropagation();var Qr=ln;fn[0]||(Qr=ce(Qr,null,0)),fn[1]||(Qr=ce(Qr,null,1)),ni(Qr,null),Na(!1,rt)},className:"".concat(Lt,"-clear")},rr||f.createElement("span",{className:"".concat(Lt,"-clear-btn")})));var po={size:m(Yt,$e[0])},Hi=0,mo=0;yt.current&&nt.current&&Pe.current&&(rt===0?mo=yt.current.offsetWidth:(Hi=Ka,mo=nt.current.offsetWidth));var hi=gr==="rtl"?{right:Hi}:{left:Hi},Da=function(Er,Qr){var ma=ce(Kn,Er,rt);Qr==="submit"||Qr!=="key"&&!Oa?(ni(ma,rt),rt===0?xo():ko()):Sr(ma)};return f.createElement(i.Provider,{value:{operationRef:Vt,hideHeader:Yt==="time",onDateMouseEnter:oo,onDateMouseLeave:so,hideRanges:!0,onSelect:Da,open:vr}},f.createElement(Vn,{visible:vr,popupElement:ho,popupStyle:pn,prefixCls:Lt,dropdownClassName:Nn,dropdownAlign:nn,getPopupContainer:Rn,transitionName:wn,range:!0,direction:gr},f.createElement("div",Object.assign({ref:Ze,className:d()(Lt,"".concat(Lt,"-range"),vn,(lt={},Object(y.a)(lt,"".concat(Lt,"-disabled"),fn[0]&&fn[1]),Object(y.a)(lt,"".concat(Lt,"-focused"),rt===0?ri:To),Object(y.a)(lt,"".concat(Lt,"-rtl"),gr==="rtl"),lt)),style:en,onClick:Wi,onMouseDown:wo},xe(ye)),f.createElement("div",{className:d()("".concat(Lt,"-input"),(Mt={},Object(y.a)(Mt,"".concat(Lt,"-input-active"),rt===0),Object(y.a)(Mt,"".concat(Lt,"-input-placeholder"),!!Ri),Mt)),ref:yt},f.createElement("input",Object.assign({id:Xt,disabled:fn[0],readOnly:Qt||!Xa,value:Ri||mi,onChange:function(Er){uo(Er.target.value)},autoFocus:Jn,placeholder:Oe(Dn,0)||"",ref:Xe},fi,po,{autoComplete:Yr}))),f.createElement("div",{className:"".concat(Lt,"-range-separator"),ref:Pe},Sn),f.createElement("div",{className:d()("".concat(Lt,"-input"),(wt={},Object(y.a)(wt,"".concat(Lt,"-input-active"),rt===1),Object(y.a)(wt,"".concat(Lt,"-input-placeholder"),!!Ni),wt)),ref:nt},f.createElement("input",Object.assign({disabled:fn[1],readOnly:Qt||!$i,value:Ni||Vi,onChange:function(Er){co(Er.target.value)},placeholder:Oe(Dn,1)||"",ref:Ie},yi,po,{autoComplete:Yr}))),f.createElement("div",{className:"".concat(Lt,"-active-bar"),style:Object(x.a)(Object(x.a)({},hi),{},{width:mo,position:"absolute"})}),Oi,qa)))}var ua=function(ye){Object(A.a)(Mt,ye);var lt=Object(b.a)(Mt);function Mt(){var wt;return Object(L.a)(this,Mt),wt=lt.apply(this,arguments),wt.pickerRef=f.createRef(),wt.focus=function(){wt.pickerRef.current&&wt.pickerRef.current.focus()},wt.blur=function(){wt.pickerRef.current&&wt.pickerRef.current.blur()},wt}return Object(g.a)(Mt,[{key:"render",value:function(){return f.createElement(oi,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Mt}(f.Component),fa=ua,oa=Y.b=ja},onxn:function(M,Y){M.exports="data:image/png;base64,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"},osHv:function(M,Y,o){(function(L){L(o("VrN/"))})(function(L){"use strict";var g=L.Pos;function A(h,l){return h.line-l.line||h.ch-l.ch}var b="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",y=b+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",x=new RegExp("<(/?)(["+b+"]["+y+"]*)","g");function w(h,l,s,p){this.line=l,this.ch=s,this.cm=h,this.text=h.getLine(l),this.min=p?Math.max(p.from,h.firstLine()):h.firstLine(),this.max=p?Math.min(p.to-1,h.lastLine()):h.lastLine()}function f(h,l){var s=h.cm.getTokenTypeAt(g(h.line,l));return s&&/\btag\b/.test(s)}function _(h){return h.line>=h.max?void 0:(h.ch=0,h.text=h.cm.getLine(++h.line),!0)}function d(h){return h.line<=h.min?void 0:(h.text=h.cm.getLine(--h.line),h.ch=h.text.length,!0)}function r(h){for(;;){var l=h.text.indexOf(">",h.ch);if(l==-1){if(_(h))continue;return}if(!f(h,l+1)){h.ch=l+1;continue}var s=h.text.lastIndexOf("/",l),p=s>-1&&!/\S/.test(h.text.slice(s+1,l));return h.ch=l+1,p?"selfClose":"regular"}}function u(h){for(;;){var l=h.ch?h.text.lastIndexOf("<",h.ch-1):-1;if(l==-1){if(d(h))continue;return}if(!f(h,l+1)){h.ch=l;continue}x.lastIndex=l,h.ch=l;var s=x.exec(h.text);if(s&&s.index==l)return s}}function t(h){for(;;){x.lastIndex=h.ch;var l=x.exec(h.text);if(!l){if(_(h))continue;return}if(!f(h,l.index+1)){h.ch=l.index+1;continue}return h.ch=l.index+l[0].length,l}}function a(h){for(;;){var l=h.ch?h.text.lastIndexOf(">",h.ch-1):-1;if(l==-1){if(d(h))continue;return}if(!f(h,l+1)){h.ch=l;continue}var s=h.text.lastIndexOf("/",l),p=s>-1&&!/\S/.test(h.text.slice(s+1,l));return h.ch=l+1,p?"selfClose":"regular"}}function n(h,l){for(var s=[];;){var p=t(h),O,S=h.line,v=h.ch-(p?p[0].length:0);if(!p||!(O=r(h)))return;if(O=="selfClose")continue;if(p[1]){for(var P=s.length-1;P>=0;--P)if(s[P]==p[2]){s.length=P;break}if(P<0&&(!l||l==p[2]))return{tag:p[2],from:g(S,v),to:g(h.line,h.ch)}}else s.push(p[2])}}function i(h,l){for(var s=[];;){var p=a(h);if(!p)return;if(p=="selfClose"){u(h);continue}var O=h.line,S=h.ch,v=u(h);if(!v)return;if(v[1])s.push(v[2]);else{for(var P=s.length-1;P>=0;--P)if(s[P]==v[2]){s.length=P;break}if(P<0&&(!l||l==v[2]))return{tag:v[2],from:g(h.line,h.ch),to:g(O,S)}}}}L.registerHelper("fold","xml",function(h,l){for(var s=new w(h,l.line,0);;){var p=t(s);if(!p||s.line!=l.line)return;var O=r(s);if(!O)return;if(!p[1]&&O!="selfClose"){var S=g(s.line,s.ch),v=n(s,p[2]);return v&&A(v.from,S)>0?{from:S,to:v.from}:null}}}),L.findMatchingTag=function(h,l,s){var p=new w(h,l.line,l.ch,s);if(p.text.indexOf(">")==-1&&p.text.indexOf("<")==-1)return;var O=r(p),S=O&&g(p.line,p.ch),v=O&&u(p);if(!O||!v||A(p,l)>0)return;var P={from:g(p.line,p.ch),to:S,tag:v[2]};return O=="selfClose"?{open:P,close:null,at:"open"}:v[1]?{open:i(p,v[2]),close:P,at:"close"}:(p=new w(h,S.line,S.ch,s),{open:P,close:n(p,v[2]),at:"open"})},L.findEnclosingTag=function(h,l,s,p){for(var O=new w(h,l.line,l.ch,s);;){var S=i(O,p);if(!S)break;var v=new w(h,l.line,l.ch,s),P=n(v,S.tag);if(P)return{open:S,close:P}}},L.scanForClosingTag=function(h,l,s,p){var O=new w(h,l.line,l.ch,p?{from:0,to:p}:null);return n(O,s)}})},p5ED:function(M,Y,o){"use strict";var L=o("+L6B"),g=o("2/Rp"),A=o("5Dmo"),b=o("3S7+"),y=o("k1fw"),x=o("tJVT"),w=o("q1tI"),f=o.n(w),_=o("vHTk"),d=o.n(_),r=o("yEEn"),u=o("ZW9T"),t=o("1vsH");Y.a=function(a){var n=a.name,i=a.data,h=a.theme,l=a.type,s=a.filename,p=a.monacoEditor,O=a.className,S=a.style,v=a.close,P=a.onClose,R=a.hasMask,E=Object(w.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),C=Object(x.a)(E,2),m=C[0],T=C[1],I=Object(w.useState)(""),D=Object(x.a)(I,2),N=D[0],z=D[1],F,W=1024*1024,K=10*W,B=Object(w.useRef)();l==="office"&&(F=Object(t.T)(i).filesize,F>K&&(l="other")),s&&(p.filename=s),Object(w.useEffect)(function(){var ne,fe,de=(ne=document.cookie)===null||ne===void 0||((fe=ne.replace(/\s/g,""))===null||fe===void 0)?void 0:fe.split(";");de==null||de.map(function(xe){var Oe=xe.split("=");Oe[0]==="_educoder_session"&&z(Oe[1])})},[]);var k=function(){if(i.startsWith("http")||i.startsWith("/")){G();return}Object(t.z)(s||"educoder",i,s)},G=function(){Object(t.x)(s||n,i)};return console.log("data:",i,"fileanme:",s," name:",n),f.a.createElement("div",{style:Object(y.a)({},S||{}),className:"".concat(R&&d.a.bgBlack," ").concat(l?d.a.wrp:"hide")},v&&f.a.createElement("div",{className:d.a.close,ref:B},f.a.createElement(b.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return B.current}},f.a.createElement("span",{onClick:G},f.a.createElement("i",{className:"icon-quxiaozhiding"}))),f.a.createElement(b.a,{title:"\u5173\u95ED",getPopupContainer:function(){return B.current}},f.a.createElement("span",{className:"",onClick:P},f.a.createElement("i",{className:"icon-guanbi1"})))),f.a.createElement("div",{className:"".concat(d.a[O]," ").concat(O," ").concat(d.a.monaco," ").concat(l==="txt"?"show":"hide")},l==="txt"&&f.a.createElement(u.b,p)),l==="audio"&&f.a.createElement("audio",{src:"".concat(i!=null&&i.startsWith("/")||(i==null?void 0:i.indexOf("https://"))>-1?i:"data:audio/mp3;base64,").concat(i),autoPlay:!0}),l==="video"&&f.a.createElement(f.a.Fragment,null,i!=null&&i.startsWith("/")?f.a.createElement("video",{controls:!0,src:"".concat(i),autoPlay:!0}):f.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(i),autoPlay:!0})),l==="html"&&f.a.createElement("iframe",{src:i+"&disposition=inline"}),l==="pdf"&&f.a.createElement("embed",{className:d.a.embed,src:i}),l==="image"&&f.a.createElement(f.a.Fragment,null,f.a.createElement("img",{src:"".concat(i!=null&&i.startsWith("/")||(i==null?void 0:i.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(i)})),l==="other"&&f.a.createElement("div",null,f.a.createElement(g.a,{type:"primary",size:"large",onClick:k},f.a.createElement(r.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),(l==="download"||l==="office")&&f.a.createElement(g.a,{type:"primary",size:"large",onClick:k},f.a.createElement(r.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(M,Y,o){},pA7S:function(M,Y,o){(function(L,g,A){M.exports=Y=g(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(L){return function(){var g=L,A=g.lib,b=A.WordArray,y=A.BlockCipher,x=g.algo,w=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],f=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],_=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],d=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],r=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],u=x.DES=y.extend({_doReset:function(){for(var i=this._key,h=i.words,l=[],s=0;s<56;s++){var p=w[s]-1;l[s]=h[p>>>5]>>>31-p%32&1}for(var O=this._subKeys=[],S=0;S<16;S++){for(var v=O[S]=[],P=_[S],s=0;s<24;s++)v[s/6|0]|=l[(f[s]-1+P)%28]<<31-s%6,v[4+(s/6|0)]|=l[28+(f[s+24]-1+P)%28]<<31-s%6;v[0]=v[0]<<1|v[0]>>>31;for(var s=1;s<7;s++)v[s]=v[s]>>>(s-1)*4+3;v[7]=v[7]<<5|v[7]>>>27}for(var R=this._invSubKeys=[],s=0;s<16;s++)R[s]=O[15-s]},encryptBlock:function(i,h){this._doCryptBlock(i,h,this._subKeys)},decryptBlock:function(i,h){this._doCryptBlock(i,h,this._invSubKeys)},_doCryptBlock:function(i,h,l){this._lBlock=i[h],this._rBlock=i[h+1],t.call(this,4,252645135),t.call(this,16,65535),a.call(this,2,858993459),a.call(this,8,16711935),t.call(this,1,1431655765);for(var s=0;s<16;s++){for(var p=l[s],O=this._lBlock,S=this._rBlock,v=0,P=0;P<8;P++)v|=d[P][((S^p[P])&r[P])>>>0];this._lBlock=S,this._rBlock=O^v}var R=this._lBlock;this._lBlock=this._rBlock,this._rBlock=R,t.call(this,1,1431655765),a.call(this,8,16711935),a.call(this,2,858993459),t.call(this,16,65535),t.call(this,4,252645135),i[h]=this._lBlock,i[h+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function t(i,h){var l=(this._lBlock>>>i^this._rBlock)&h;this._rBlock^=l,this._lBlock^=l<<i}function a(i,h){var l=(this._rBlock>>>i^this._lBlock)&h;this._lBlock^=l,this._rBlock^=l<<i}g.DES=y._createHelper(u);var n=x.TripleDES=y.extend({_doReset:function(){var i=this._key,h=i.words;if(h.length!==2&&h.length!==4&&h.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var l=h.slice(0,2),s=h.length<4?h.slice(0,2):h.slice(2,4),p=h.length<6?h.slice(0,2):h.slice(4,6);this._des1=u.createEncryptor(b.create(l)),this._des2=u.createEncryptor(b.create(s)),this._des3=u.createEncryptor(b.create(p))},encryptBlock:function(i,h){this._des1.encryptBlock(i,h),this._des2.decryptBlock(i,h),this._des3.encryptBlock(i,h)},decryptBlock:function(i,h){this._des3.decryptBlock(i,h),this._des2.encryptBlock(i,h),this._des1.decryptBlock(i,h)},keySize:192/32,ivSize:64/32,blockSize:64/32});g.TripleDES=y._createHelper(n)}(),L.TripleDES})},pUFm:function(M,Y,o){M.exports=o.p+"static/no-data.c803c40c.png"},psGv:function(M,Y,o){var L,g;(function(){var A;(function(){"use strict";var w=[,,function(r){function u(n){this.__parent=n,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}u.prototype.clone_empty=function(){var n=new u(this.__parent);return n.set_indent(this.__indent_count,this.__alignment_count),n},u.prototype.item=function(n){return n<0?this.__items[this.__items.length+n]:this.__items[n]},u.prototype.has_match=function(n){for(var i=this.__items.length-1;i>=0;i--)if(this.__items[i].match(n))return!0;return!1},u.prototype.set_indent=function(n,i){this.is_empty()&&(this.__indent_count=n||0,this.__alignment_count=i||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},u.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},u.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},u.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var n=this.__parent.current_line;return n.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),n.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),n.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,n.__items[0]===" "&&(n.__items.splice(0,1),n.__character_count-=1),!0}return!1},u.prototype.is_empty=function(){return this.__items.length===0},u.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},u.prototype.push=function(n){this.__items.push(n);var i=n.lastIndexOf(`
`);i!==-1?this.__character_count=n.length-i:this.__character_count+=n.length},u.prototype.pop=function(){var n=null;return this.is_empty()||(n=this.__items.pop(),this.__character_count-=n.length),n},u.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},u.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},u.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},u.prototype.toString=function(){var n="";return this.is_empty()?this.__parent.indent_empty_lines&&(n=this.__parent.get_indent_string(this.__indent_count)):(n=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),n+=this.__items.join("")),n};function t(n,i){this.__cache=[""],this.__indent_size=n.indent_size,this.__indent_string=n.indent_char,n.indent_with_tabs||(this.__indent_string=new Array(n.indent_size+1).join(n.indent_char)),i=i||"",n.indent_level>0&&(i=new Array(n.indent_level+1).join(this.__indent_string)),this.__base_string=i,this.__base_string_length=i.length}t.prototype.get_indent_size=function(n,i){var h=this.__base_string_length;return i=i||0,n<0&&(h=0),h+=n*this.__indent_size,h+=i,h},t.prototype.get_indent_string=function(n,i){var h=this.__base_string;return i=i||0,n<0&&(n=0,h=""),i+=n*this.__indent_size,this.__ensure_cache(i),h+=this.__cache[i],h},t.prototype.__ensure_cache=function(n){for(;n>=this.__cache.length;)this.__add_column()},t.prototype.__add_column=function(){var n=this.__cache.length,i=0,h="";this.__indent_size&&n>=this.__indent_size&&(i=Math.floor(n/this.__indent_size),n-=i*this.__indent_size,h=new Array(i+1).join(this.__indent_string)),n&&(h+=new Array(n+1).join(" ")),this.__cache.push(h)};function a(n,i){this.__indent_cache=new t(n,i),this.raw=!1,this._end_with_newline=n.end_with_newline,this.indent_size=n.indent_size,this.wrap_line_length=n.wrap_line_length,this.indent_empty_lines=n.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new u(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}a.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},a.prototype.get_line_number=function(){return this.__lines.length},a.prototype.get_indent_string=function(n,i){return this.__indent_cache.get_indent_string(n,i)},a.prototype.get_indent_size=function(n,i){return this.__indent_cache.get_indent_size(n,i)},a.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},a.prototype.add_new_line=function(n){return this.is_empty()||!n&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},a.prototype.get_code=function(n){this.trim(!0);var i=this.current_line.pop();i&&(i[i.length-1]===`
`&&(i=i.replace(/\n+$/g,"")),this.current_line.push(i)),this._end_with_newline&&this.__add_outputline();var h=this.__lines.join(`
`);return n!==`
`&&(h=h.replace(/[\n]/g,n)),h},a.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},a.prototype.set_indent=function(n,i){return n=n||0,i=i||0,this.next_line.set_indent(n,i),this.__lines.length>1?(this.current_line.set_indent(n,i),!0):(this.current_line.set_indent(),!1)},a.prototype.add_raw_token=function(n){for(var i=0;i<n.newlines;i++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(n.whitespace_before),this.current_line.push(n.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},a.prototype.add_token=function(n){this.__add_space_before_token(),this.current_line.push(n),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},a.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},a.prototype.remove_indent=function(n){for(var i=this.__lines.length;n<i;)this.__lines[n]._remove_indent(),n++;this.current_line._remove_wrap_indent()},a.prototype.trim=function(n){for(n=n===void 0?!1:n,this.current_line.trim();n&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},a.prototype.just_added_newline=function(){return this.current_line.is_empty()},a.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},a.prototype.ensure_empty_line_above=function(n,i){for(var h=this.__lines.length-2;h>=0;){var l=this.__lines[h];if(l.is_empty())break;if(l.item(0).indexOf(n)!==0&&l.item(-1)!==i){this.__lines.splice(h+1,0,new u(this)),this.previous_line=this.__lines[this.__lines.length-2];break}h--}},r.exports.Output=a},function(r){function u(t,a,n,i){this.type=t,this.text=a,this.comments_before=null,this.newlines=n||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}r.exports.Token=u},,,function(r){function u(n,i){this.raw_options=t(n,i),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}u.prototype._get_array=function(n,i){var h=this.raw_options[n],l=i||[];return typeof h=="object"?h!==null&&typeof h.concat=="function"&&(l=h.concat()):typeof h=="string"&&(l=h.split(/[^a-zA-Z0-9_\/\-]+/)),l},u.prototype._get_boolean=function(n,i){var h=this.raw_options[n],l=h===void 0?!!i:!!h;return l},u.prototype._get_characters=function(n,i){var h=this.raw_options[n],l=i||"";return typeof h=="string"&&(l=h.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),l},u.prototype._get_number=function(n,i){var h=this.raw_options[n];i=parseInt(i,10),isNaN(i)&&(i=0);var l=parseInt(h,10);return isNaN(l)&&(l=i),l},u.prototype._get_selection=function(n,i,h){var l=this._get_selection_list(n,i,h);if(l.length!==1)throw new Error("Invalid Option Value: The option '"+n+`' can only be one of the following values:
`+i+`
You passed in: '`+this.raw_options[n]+"'");return l[0]},u.prototype._get_selection_list=function(n,i,h){if(!i||i.length===0)throw new Error("Selection list cannot be empty.");if(h=h||[i[0]],!this._is_valid_selection(h,i))throw new Error("Invalid Default Value!");var l=this._get_array(n,h);if(!this._is_valid_selection(l,i))throw new Error("Invalid Option Value: The option '"+n+`' can contain only the following values:
`+i+`
You passed in: '`+this.raw_options[n]+"'");return l},u.prototype._is_valid_selection=function(n,i){return n.length&&i.length&&!n.some(function(h){return i.indexOf(h)===-1})};function t(n,i){var h={};n=a(n);var l;for(l in n)l!==i&&(h[l]=n[l]);if(i&&n[i])for(l in n[i])h[l]=n[i][l];return h}function a(n){var i={},h;for(h in n){var l=h.replace(/-/g,"_");i[l]=n[h]}return i}r.exports.Options=u,r.exports.normalizeOpts=a,r.exports.mergeOpts=t},,function(r){var u=RegExp.prototype.hasOwnProperty("sticky");function t(a){this.__input=a||"",this.__input_length=this.__input.length,this.__position=0}t.prototype.restart=function(){this.__position=0},t.prototype.back=function(){this.__position>0&&(this.__position-=1)},t.prototype.hasNext=function(){return this.__position<this.__input_length},t.prototype.next=function(){var a=null;return this.hasNext()&&(a=this.__input.charAt(this.__position),this.__position+=1),a},t.prototype.peek=function(a){var n=null;return a=a||0,a+=this.__position,a>=0&&a<this.__input_length&&(n=this.__input.charAt(a)),n},t.prototype.__match=function(a,n){a.lastIndex=n;var i=a.exec(this.__input);return i&&!(u&&a.sticky)&&(i.index!==n&&(i=null)),i},t.prototype.test=function(a,n){return n=n||0,n+=this.__position,n>=0&&n<this.__input_length?!!this.__match(a,n):!1},t.prototype.testChar=function(a,n){var i=this.peek(n);return a.lastIndex=0,i!==null&&a.test(i)},t.prototype.match=function(a){var n=this.__match(a,this.__position);return n?this.__position+=n[0].length:n=null,n},t.prototype.read=function(a,n,i){var h="",l;return a&&(l=this.match(a),l&&(h+=l[0])),n&&(l||!a)&&(h+=this.readUntil(n,i)),h},t.prototype.readUntil=function(a,n){var i="",h=this.__position;a.lastIndex=this.__position;var l=a.exec(this.__input);return l?(h=l.index,n&&(h+=l[0].length)):h=this.__input_length,i=this.__input.substring(this.__position,h),this.__position=h,i},t.prototype.readUntilAfter=function(a){return this.readUntil(a,!0)},t.prototype.get_regexp=function(a,n){var i=null,h="g";return n&&u&&(h="y"),typeof a=="string"&&a!==""?i=new RegExp(a,h):a&&(i=new RegExp(a.source,h)),i},t.prototype.get_literal_regexp=function(a){return RegExp(a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},t.prototype.peekUntilAfter=function(a){var n=this.__position,i=this.readUntilAfter(a);return this.__position=n,i},t.prototype.lookBack=function(a){var n=this.__position-1;return n>=a.length&&this.__input.substring(n-a.length,n).toLowerCase()===a},r.exports.InputScanner=t},function(r,u,t){var a=t(8).InputScanner,n=t(3).Token,i=t(10).TokenStream,h=t(11).WhitespacePattern,l={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},s=function(p,O){this._input=new a(p),this._options=O||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new h(this._input)};s.prototype.tokenize=function(){this._input.restart(),this.__tokens=new i,this._reset();for(var p,O=new n(l.START,""),S=null,v=[],P=new i;O.type!==l.EOF;){for(p=this._get_next_token(O,S);this._is_comment(p);)P.add(p),p=this._get_next_token(O,S);P.isEmpty()||(p.comments_before=P,P=new i),p.parent=S,this._is_opening(p)?(v.push(S),S=p):S&&this._is_closing(p,S)&&(p.opened=S,S.closed=p,S=v.pop(),p.parent=S),p.previous=O,O.next=p,this.__tokens.add(p),O=p}return this.__tokens},s.prototype._is_first_token=function(){return this.__tokens.isEmpty()},s.prototype._reset=function(){},s.prototype._get_next_token=function(p,O){this._readWhitespace();var S=this._input.read(/.+/g);return S?this._create_token(l.RAW,S):this._create_token(l.EOF,"")},s.prototype._is_comment=function(p){return!1},s.prototype._is_opening=function(p){return!1},s.prototype._is_closing=function(p,O){return!1},s.prototype._create_token=function(p,O){var S=new n(p,O,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return S},s.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},r.exports.Tokenizer=s,r.exports.TOKEN=l},function(r){function u(t){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=t}u.prototype.restart=function(){this.__position=0},u.prototype.isEmpty=function(){return this.__tokens_length===0},u.prototype.hasNext=function(){return this.__position<this.__tokens_length},u.prototype.next=function(){var t=null;return this.hasNext()&&(t=this.__tokens[this.__position],this.__position+=1),t},u.prototype.peek=function(t){var a=null;return t=t||0,t+=this.__position,t>=0&&t<this.__tokens_length&&(a=this.__tokens[t]),a},u.prototype.add=function(t){this.__parent_token&&(t.parent=this.__parent_token),this.__tokens.push(t),this.__tokens_length+=1},r.exports.TokenStream=u},function(r,u,t){var a=t(12).Pattern;function n(i,h){a.call(this,i,h),h?this._line_regexp=this._input.get_regexp(h._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}n.prototype=new a,n.prototype.__set_whitespace_patterns=function(i,h){i+="\\t ",h+="\\n\\r",this._match_pattern=this._input.get_regexp("["+i+h+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+h+"]")},n.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var i=this._input.read(this._match_pattern);if(i===" ")this.whitespace_before_token=" ";else if(i){var h=this.__split(this._newline_regexp,i);this.newline_count=h.length-1,this.whitespace_before_token=h[this.newline_count]}return i},n.prototype.matching=function(i,h){var l=this._create();return l.__set_whitespace_patterns(i,h),l._update(),l},n.prototype._create=function(){return new n(this._input,this)},n.prototype.__split=function(i,h){i.lastIndex=0;for(var l=0,s=[],p=i.exec(h);p;)s.push(h.substring(l,p.index)),l=p.index+p[0].length,p=i.exec(h);return l<h.length?s.push(h.substring(l,h.length)):s.push(""),s},r.exports.WhitespacePattern=n},function(r){function u(t,a){this._input=t,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,a&&(this._starting_pattern=this._input.get_regexp(a._starting_pattern,!0),this._match_pattern=this._input.get_regexp(a._match_pattern,!0),this._until_pattern=this._input.get_regexp(a._until_pattern),this._until_after=a._until_after)}u.prototype.read=function(){var t=this._input.read(this._starting_pattern);return(!this._starting_pattern||t)&&(t+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),t},u.prototype.read_match=function(){return this._input.match(this._match_pattern)},u.prototype.until_after=function(t){var a=this._create();return a._until_after=!0,a._until_pattern=this._input.get_regexp(t),a._update(),a},u.prototype.until=function(t){var a=this._create();return a._until_after=!1,a._until_pattern=this._input.get_regexp(t),a._update(),a},u.prototype.starting_with=function(t){var a=this._create();return a._starting_pattern=this._input.get_regexp(t,!0),a._update(),a},u.prototype.matching=function(t){var a=this._create();return a._match_pattern=this._input.get_regexp(t,!0),a._update(),a},u.prototype._create=function(){return new u(this._input,this)},u.prototype._update=function(){},r.exports.Pattern=u},function(r){function u(t,a){t=typeof t=="string"?t:t.source,a=typeof a=="string"?a:a.source,this.__directives_block_pattern=new RegExp(t+/ beautify( \w+[:]\w+)+ /.source+a,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(t+/\sbeautify\signore:end\s/.source+a,"g")}u.prototype.get_directives=function(t){if(!t.match(this.__directives_block_pattern))return null;var a={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(t);n;)a[n[1]]=n[2],n=this.__directive_pattern.exec(t);return a},u.prototype.readIgnored=function(t){return t.readUntilAfter(this.__directives_end_ignore_pattern)},r.exports.Directives=u},function(r,u,t){var a=t(12).Pattern,n={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function i(h,l){a.call(this,h,l),this.__template_pattern=null,this._disabled=Object.assign({},n),this._excluded=Object.assign({},n),l&&(this.__template_pattern=this._input.get_regexp(l.__template_pattern),this._excluded=Object.assign(this._excluded,l._excluded),this._disabled=Object.assign(this._disabled,l._disabled));var s=new a(h);this.__patterns={handlebars_comment:s.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:s.starting_with(/{{{/).until_after(/}}}/),handlebars:s.starting_with(/{{/).until_after(/}}/),php:s.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:s.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:s.starting_with(/{%/).until_after(/%}/),django_value:s.starting_with(/{{/).until_after(/}}/),django_comment:s.starting_with(/{#/).until_after(/#}/),smarty:s.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:s.starting_with(/{\*/).until_after(/\*}/),smarty_literal:s.starting_with(/{literal}/).until_after(/{\/literal}/)}}i.prototype=new a,i.prototype._create=function(){return new i(this._input,this)},i.prototype._update=function(){this.__set_templated_pattern()},i.prototype.disable=function(h){var l=this._create();return l._disabled[h]=!0,l._update(),l},i.prototype.read_options=function(h){var l=this._create();for(var s in n)l._disabled[s]=h.templating.indexOf(s)===-1;return l._update(),l},i.prototype.exclude=function(h){var l=this._create();return l._excluded[h]=!0,l._update(),l},i.prototype.read=function(){var h="";this._match_pattern?h=this._input.read(this._starting_pattern):h=this._input.read(this._starting_pattern,this.__template_pattern);for(var l=this._read_template();l;)this._match_pattern?l+=this._input.read(this._match_pattern):l+=this._input.readUntil(this.__template_pattern),h+=l,l=this._read_template();return this._until_after&&(h+=this._input.readUntilAfter(this._until_pattern)),h},i.prototype.__set_templated_pattern=function(){var h=[];this._disabled.php||h.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||h.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||h.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(h.push(this.__patterns.django._starting_pattern.source),h.push(this.__patterns.django_value._starting_pattern.source),h.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||h.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&h.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+h.join("|")+")")},i.prototype._read_template=function(){var h="",l=this._input.peek();if(l==="<"){var s=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&s==="?"&&(h=h||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&s==="%"&&(h=h||this.__patterns.erb.read())}else l==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(h=h||this.__patterns.handlebars_comment.read(),h=h||this.__patterns.handlebars_unescaped.read(),h=h||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(h=h||this.__patterns.django_value.read()),this._excluded.django||(h=h||this.__patterns.django_comment.read(),h=h||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(h=h||this.__patterns.smarty_comment.read(),h=h||this.__patterns.smarty_literal.read(),h=h||this.__patterns.smarty.read()));return h},r.exports.TemplatablePattern=i},,,,function(r,u,t){var a=t(19).Beautifier,n=t(20).Options;function i(h,l,s,p){var O=new a(h,l,s,p);return O.beautify()}r.exports=i,r.exports.defaultOptions=function(){return new n}},function(r,u,t){var a=t(20).Options,n=t(2).Output,i=t(21).Tokenizer,h=t(21).TOKEN,l=/\r\n|[\r\n]/,s=/\r\n|[\r\n]/g,p=function(I,D){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=I.max_preserve_newlines,this.preserve_newlines=I.preserve_newlines,this._output=new n(I,D)};p.prototype.current_line_has_match=function(I){return this._output.current_line.has_match(I)},p.prototype.set_space_before_token=function(I,D){this._output.space_before_token=I,this._output.non_breaking_space=D},p.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},p.prototype.add_raw_token=function(I){this._output.add_raw_token(I)},p.prototype.print_preserved_newlines=function(I){var D=0;I.type!==h.TEXT&&I.previous.type!==h.TEXT&&(D=I.newlines?1:0),this.preserve_newlines&&(D=I.newlines<this.max_preserve_newlines+1?I.newlines:this.max_preserve_newlines+1);for(var N=0;N<D;N++)this.print_newline(N>0);return D!==0},p.prototype.traverse_whitespace=function(I){return I.whitespace_before||I.newlines?(this.print_preserved_newlines(I)||(this._output.space_before_token=!0),!0):!1},p.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},p.prototype.print_newline=function(I){this._output.add_new_line(I)},p.prototype.print_token=function(I){I.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(I.text))},p.prototype.indent=function(){this.indent_level++},p.prototype.get_full_indent=function(I){return I=this.indent_level+(I||0),I<1?"":this._output.get_indent_string(I)};var O=function(I){for(var D=null,N=I.next;N.type!==h.EOF&&I.closed!==N;){if(N.type===h.ATTRIBUTE&&N.text==="type"){N.next&&N.next.type===h.EQUALS&&N.next.next&&N.next.next.type===h.VALUE&&(D=N.next.next.text);break}N=N.next}return D},S=function(I,D){var N=null,z=null;return D.closed?(I==="script"?N="text/javascript":I==="style"&&(N="text/css"),N=O(D)||N,N.search("text/css")>-1?z="css":N.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?z="javascript":N.search(/(text|application|dojo)\/(x-)?(html)/)>-1?z="html":N.search(/test\/null/)>-1&&(z="null"),z):null};function v(I,D){return D.indexOf(I)!==-1}function P(I,D,N){this.parent=I||null,this.tag=D?D.tag_name:"",this.indent_level=N||0,this.parser_token=D||null}function R(I){this._printer=I,this._current_frame=null}R.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},R.prototype.record_tag=function(I){var D=new P(this._current_frame,I,this._printer.indent_level);this._current_frame=D},R.prototype._try_pop_frame=function(I){var D=null;return I&&(D=I.parser_token,this._printer.indent_level=I.indent_level,this._current_frame=I.parent),D},R.prototype._get_frame=function(I,D){for(var N=this._current_frame;N&&!(I.indexOf(N.tag)!==-1);){if(D&&D.indexOf(N.tag)!==-1){N=null;break}N=N.parent}return N},R.prototype.try_pop=function(I,D){var N=this._get_frame([I],D);return this._try_pop_frame(N)},R.prototype.indent_to_tag=function(I){var D=this._get_frame(I);D&&(this._printer.indent_level=D.indent_level)};function E(I,D,N,z){this._source_text=I||"",D=D||{},this._js_beautify=N,this._css_beautify=z,this._tag_stack=null;var F=new a(D,"html");this._options=F,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,"force".length)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,"preserve".length)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}E.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var I=this._source_text,D=this._options.eol;this._options.eol==="auto"&&(D=`
`,I&&l.test(I)&&(D=I.match(l)[0])),I=I.replace(s,`
`);var N=I.match(/^[\t ]*/)[0],z={text:"",type:""},F=new C,W=new p(this._options,N),K=new i(I,this._options).tokenize();this._tag_stack=new R(W);for(var B=null,k=K.next();k.type!==h.EOF;)k.type===h.TAG_OPEN||k.type===h.COMMENT?(B=this._handle_tag_open(W,k,F,z),F=B):k.type===h.ATTRIBUTE||k.type===h.EQUALS||k.type===h.VALUE||k.type===h.TEXT&&!F.tag_complete?B=this._handle_inside_tag(W,k,F,K):k.type===h.TAG_CLOSE?B=this._handle_tag_close(W,k,F):k.type===h.TEXT?B=this._handle_text(W,k,F):W.add_raw_token(k),z=B,k=K.next();var G=W._output.get_code(D);return G},E.prototype._handle_tag_close=function(I,D,N){var z={text:D.text,type:D.type};return I.alignment_size=0,N.tag_complete=!0,I.set_space_before_token(D.newlines||D.whitespace_before!=="",!0),N.is_unformatted?I.add_raw_token(D):(N.tag_start_char==="<"&&(I.set_space_before_token(D.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&N.has_wrapped_attrs&&I.print_newline(!1)),I.print_token(D)),N.indent_content&&!(N.is_unformatted||N.is_content_unformatted)&&(I.indent(),N.indent_content=!1),!N.is_inline_element&&!(N.is_unformatted||N.is_content_unformatted)&&I.set_wrap_point(),z},E.prototype._handle_inside_tag=function(I,D,N,z){var F=N.has_wrapped_attrs,W={text:D.text,type:D.type};if(I.set_space_before_token(D.newlines||D.whitespace_before!=="",!0),N.is_unformatted)I.add_raw_token(D);else if(N.tag_start_char==="{"&&D.type===h.TEXT)I.print_preserved_newlines(D)?(D.newlines=0,I.add_raw_token(D)):I.print_token(D);else{if(D.type===h.ATTRIBUTE?(I.set_space_before_token(!0),N.attr_count+=1):(D.type===h.EQUALS||D.type===h.VALUE&&D.previous.type===h.EQUALS)&&I.set_space_before_token(!1),D.type===h.ATTRIBUTE&&N.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(I.traverse_whitespace(D),F=F||D.newlines!==0),this._is_wrap_attributes_force)){var K=N.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&N.attr_count===1){var B=!0,k=0,G;do{if(G=z.peek(k),G.type===h.ATTRIBUTE){B=!1;break}k+=1}while(k<4&&G.type!==h.EOF&&G.type!==h.TAG_CLOSE);K=!B}K&&(I.print_newline(!1),F=!0)}I.print_token(D),F=F||I.previous_token_wrapped(),N.has_wrapped_attrs=F}return W},E.prototype._handle_text=function(I,D,N){var z={text:D.text,type:"TK_CONTENT"};return N.custom_beautifier_name?this._print_custom_beatifier_text(I,D,N):N.is_unformatted||N.is_content_unformatted?I.add_raw_token(D):(I.traverse_whitespace(D),I.print_token(D)),z},E.prototype._print_custom_beatifier_text=function(I,D,N){var z=this;if(D.text!==""){var F=D.text,W,K=1,B="",k="";N.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?W=this._js_beautify:N.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?W=this._css_beautify:N.custom_beautifier_name==="html"&&(W=function(Oe,ce){var be=new E(Oe,ce,z._js_beautify,z._css_beautify);return be.beautify()}),this._options.indent_scripts==="keep"?K=0:this._options.indent_scripts==="separate"&&(K=-I.indent_level);var G=I.get_full_indent(K);if(F=F.replace(/\n[ \t]*$/,""),N.custom_beautifier_name!=="html"&&F[0]==="<"&&F.match(/^(<!--|<!\[CDATA\[)/)){var ne=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(F);if(!ne){I.add_raw_token(D);return}B=G+ne[1]+`
`,F=ne[4],ne[5]&&(k=G+ne[5]),F=F.replace(/\n[ \t]*$/,""),(ne[2]||ne[3].indexOf(`
`)!==-1)&&(ne=ne[3].match(/[ \t]+$/),ne&&(D.whitespace_before=ne[0]))}if(F)if(W){var fe=function(){this.eol=`
`};fe.prototype=this._options.raw_options;var de=new fe;F=W(G+F,de)}else{var xe=D.whitespace_before;xe&&(F=F.replace(new RegExp(`
(`+xe+")?","g"),`
`)),F=G+F.replace(/\n/g,`
`+G)}B&&(F?F=B+F+`
`+k:F=B+k),I.print_newline(!1),F&&(D.text=F,D.whitespace_before="",D.newlines=0,I.add_raw_token(D),I.print_newline(!0))}},E.prototype._handle_tag_open=function(I,D,N,z){var F=this._get_tag_open_token(D);return(N.is_unformatted||N.is_content_unformatted)&&!N.is_empty_element&&D.type===h.TAG_OPEN&&D.text.indexOf("</")===0?(I.add_raw_token(D),F.start_tag_token=this._tag_stack.try_pop(F.tag_name)):(I.traverse_whitespace(D),this._set_tag_position(I,D,F,N,z),F.is_inline_element||I.set_wrap_point(),I.print_token(D)),(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(F.alignment_size=D.text.length+1),!F.tag_complete&&!F.is_unformatted&&(I.alignment_size=F.alignment_size),F};var C=function(I,D){if(this.parent=I||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!D)this.tag_complete=!0;else{var N;this.tag_start_char=D.text[0],this.text=D.text,this.tag_start_char==="<"?(N=D.text.match(/^<([^\s>]*)/),this.tag_check=N?N[1]:""):(N=D.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=N?N[1]:"",(D.text.startsWith("{{#>")||D.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&D.next!==null?this.tag_check=D.next.text.split(" ")[0]:this.tag_check=D.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),D.type===h.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||D.closed&&D.closed.text==="/>";var z=2;this.tag_start_char==="{"&&this.text.length>=3&&(this.text.charAt(2)==="~"&&(z=3)),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(z)))}};E.prototype._get_tag_open_token=function(I){var D=new C(this._tag_stack.get_parser_token(),I);return D.alignment_size=this._options.wrap_attributes_indent_size,D.is_end_tag=D.is_end_tag||v(D.tag_check,this._options.void_elements),D.is_empty_element=D.tag_complete||D.is_start_tag&&D.is_end_tag,D.is_unformatted=!D.tag_complete&&v(D.tag_check,this._options.unformatted),D.is_content_unformatted=!D.is_empty_element&&v(D.tag_check,this._options.content_unformatted),D.is_inline_element=v(D.tag_name,this._options.inline)||D.tag_name.includes("-")||D.tag_start_char==="{",D},E.prototype._set_tag_position=function(I,D,N,z,F){if(N.is_empty_element||(N.is_end_tag?N.start_tag_token=this._tag_stack.try_pop(N.tag_name):(this._do_optional_end_element(N)&&(N.is_inline_element||I.print_newline(!1)),this._tag_stack.record_tag(N),(N.tag_name==="script"||N.tag_name==="style")&&!(N.is_unformatted||N.is_content_unformatted)&&(N.custom_beautifier_name=S(N.tag_check,D)))),v(N.tag_check,this._options.extra_liners)&&(I.print_newline(!1),I._output.just_added_blankline()||I.print_newline(!0)),N.is_empty_element){if(N.tag_start_char==="{"&&N.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),N.indent_content=!0;var W=I.current_line_has_match(/{{#if/);W||I.print_newline(!1)}N.tag_name==="!--"&&F.type===h.TAG_CLOSE&&z.is_end_tag&&N.text.indexOf(`
`)===-1||(N.is_inline_element||N.is_unformatted||I.print_newline(!1),this._calcluate_parent_multiline(I,N))}else if(N.is_end_tag){var K=!1;K=N.start_tag_token&&N.start_tag_token.multiline_content,K=K||!N.is_inline_element&&!(z.is_inline_element||z.is_unformatted)&&!(F.type===h.TAG_CLOSE&&N.start_tag_token===z)&&F.type!=="TK_CONTENT",(N.is_content_unformatted||N.is_unformatted)&&(K=!1),K&&I.print_newline(!1)}else N.indent_content=!N.custom_beautifier_name,N.tag_start_char==="<"&&(N.tag_name==="html"?N.indent_content=this._options.indent_inner_html:N.tag_name==="head"?N.indent_content=this._options.indent_head_inner_html:N.tag_name==="body"&&(N.indent_content=this._options.indent_body_inner_html)),!(N.is_inline_element||N.is_unformatted)&&(F.type!=="TK_CONTENT"||N.is_content_unformatted)&&I.print_newline(!1),this._calcluate_parent_multiline(I,N)},E.prototype._calcluate_parent_multiline=function(I,D){D.parent&&I._output.just_added_newline()&&!((D.is_inline_element||D.is_unformatted)&&D.parent.is_inline_element)&&(D.parent.multiline_content=!0)};var m=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","nav","ol","p","pre","section","table","ul"],T=["a","audio","del","ins","map","noscript","video"];E.prototype._do_optional_end_element=function(I){var D=null;if(I.is_empty_element||!I.is_start_tag||!I.parent)return;if(I.tag_name==="body")D=D||this._tag_stack.try_pop("head");else if(I.tag_name==="li")D=D||this._tag_stack.try_pop("li",["ol","ul"]);else if(I.tag_name==="dd"||I.tag_name==="dt")D=D||this._tag_stack.try_pop("dt",["dl"]),D=D||this._tag_stack.try_pop("dd",["dl"]);else if(I.parent.tag_name==="p"&&m.indexOf(I.tag_name)!==-1){var N=I.parent.parent;(!N||T.indexOf(N.tag_name)===-1)&&(D=D||this._tag_stack.try_pop("p"))}else I.tag_name==="rp"||I.tag_name==="rt"?(D=D||this._tag_stack.try_pop("rt",["ruby","rtc"]),D=D||this._tag_stack.try_pop("rp",["ruby","rtc"])):I.tag_name==="optgroup"?D=D||this._tag_stack.try_pop("optgroup",["select"]):I.tag_name==="option"?D=D||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):I.tag_name==="colgroup"?D=D||this._tag_stack.try_pop("caption",["table"]):I.tag_name==="thead"?(D=D||this._tag_stack.try_pop("caption",["table"]),D=D||this._tag_stack.try_pop("colgroup",["table"])):I.tag_name==="tbody"||I.tag_name==="tfoot"?(D=D||this._tag_stack.try_pop("caption",["table"]),D=D||this._tag_stack.try_pop("colgroup",["table"]),D=D||this._tag_stack.try_pop("thead",["table"]),D=D||this._tag_stack.try_pop("tbody",["table"])):I.tag_name==="tr"?(D=D||this._tag_stack.try_pop("caption",["table"]),D=D||this._tag_stack.try_pop("colgroup",["table"]),D=D||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(I.tag_name==="th"||I.tag_name==="td")&&(D=D||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),D=D||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return I.parent=this._tag_stack.get_parser_token(),D},r.exports.Beautifier=E},function(r,u,t){var a=t(6).Options;function n(i){a.call(this,i,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}n.prototype=new a,r.exports.Options=n},function(r,u,t){var a=t(9).Tokenizer,n=t(9).TOKEN,i=t(13).Directives,h=t(14).TemplatablePattern,l=t(12).Pattern,s={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:n.START,RAW:n.RAW,EOF:n.EOF},p=new i(/<\!--/,/-->/),O=function(S,v){a.call(this,S,v),this._current_tag_name="";var P=new h(this._input).read_options(this._options),R=new l(this._input);if(this.__patterns={word:P.until(/[\n\r\t <]/),single_quote:P.until_after(/'/),double_quote:P.until_after(/"/),attribute:P.until(/[\n\r\t =>]|\/>/),element_name:P.until(/[\n\r\t >\/]/),handlebars_comment:R.starting_with(/{{!--/).until_after(/--}}/),handlebars:R.starting_with(/{{/).until_after(/}}/),handlebars_open:R.until(/[\n\r\t }]/),handlebars_raw_close:R.until(/}}/),comment:R.starting_with(/<!--/).until_after(/-->/),cdata:R.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:R.starting_with(/<!\[/).until_after(/]>/),processing:R.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var E=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=R.matching(E).until_after(E)}};O.prototype=new a,O.prototype._is_comment=function(S){return!1},O.prototype._is_opening=function(S){return S.type===s.TAG_OPEN},O.prototype._is_closing=function(S,v){return S.type===s.TAG_CLOSE&&v&&((S.text===">"||S.text==="/>")&&v.text[0]==="<"||S.text==="}}"&&v.text[0]==="{"&&v.text[1]==="{")},O.prototype._reset=function(){this._current_tag_name=""},O.prototype._get_next_token=function(S,v){var P=null;this._readWhitespace();var R=this._input.peek();return R===null?this._create_token(s.EOF,""):(P=P||this._read_open_handlebars(R,v),P=P||this._read_attribute(R,S,v),P=P||this._read_close(R,v),P=P||this._read_raw_content(R,S,v),P=P||this._read_content_word(R),P=P||this._read_comment_or_cdata(R),P=P||this._read_processing(R),P=P||this._read_open(R,v),P=P||this._create_token(s.UNKNOWN,this._input.next()),P)},O.prototype._read_comment_or_cdata=function(S){var v=null,P=null,R=null;if(S==="<"){var E=this._input.peek(1);E==="!"&&(P=this.__patterns.comment.read(),P?(R=p.get_directives(P),R&&R.ignore==="start"&&(P+=p.readIgnored(this._input))):P=this.__patterns.cdata.read()),P&&(v=this._create_token(s.COMMENT,P),v.directives=R)}return v},O.prototype._read_processing=function(S){var v=null,P=null,R=null;if(S==="<"){var E=this._input.peek(1);(E==="!"||E==="?")&&(P=this.__patterns.conditional_comment.read(),P=P||this.__patterns.processing.read()),P&&(v=this._create_token(s.COMMENT,P),v.directives=R)}return v},O.prototype._read_open=function(S,v){var P=null,R=null;return v||S==="<"&&(P=this._input.next(),this._input.peek()==="/"&&(P+=this._input.next()),P+=this.__patterns.element_name.read(),R=this._create_token(s.TAG_OPEN,P)),R},O.prototype._read_open_handlebars=function(S,v){var P=null,R=null;return v||this._options.indent_handlebars&&S==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(P=this.__patterns.handlebars_comment.read(),P=P||this.__patterns.handlebars.read(),R=this._create_token(s.COMMENT,P)):(P=this.__patterns.handlebars_open.read(),R=this._create_token(s.TAG_OPEN,P))),R},O.prototype._read_close=function(S,v){var P=null,R=null;return v&&(v.text[0]==="<"&&(S===">"||S==="/"&&this._input.peek(1)===">")?(P=this._input.next(),S==="/"&&(P+=this._input.next()),R=this._create_token(s.TAG_CLOSE,P)):v.text[0]==="{"&&S==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),R=this._create_token(s.TAG_CLOSE,"}}"))),R},O.prototype._read_attribute=function(S,v,P){var R=null,E="";if(P&&P.text[0]==="<")if(S==="=")R=this._create_token(s.EQUALS,this._input.next());else if(S==='"'||S==="'"){var C=this._input.next();S==='"'?C+=this.__patterns.double_quote.read():C+=this.__patterns.single_quote.read(),R=this._create_token(s.VALUE,C)}else E=this.__patterns.attribute.read(),E&&(v.type===s.EQUALS?R=this._create_token(s.VALUE,E):R=this._create_token(s.ATTRIBUTE,E));return R},O.prototype._is_content_unformatted=function(S){return this._options.void_elements.indexOf(S)===-1&&(this._options.content_unformatted.indexOf(S)!==-1||this._options.unformatted.indexOf(S)!==-1)},O.prototype._read_raw_content=function(S,v,P){var R="";if(P&&P.text[0]==="{")R=this.__patterns.handlebars_raw_close.read();else if(v.type===s.TAG_CLOSE&&v.opened.text[0]==="<"&&v.text[0]!=="/"){var E=v.opened.text.substr(1).toLowerCase();if(E==="script"||E==="style"){var C=this._read_comment_or_cdata(S);if(C)return C.type=s.TEXT,C;R=this._input.readUntil(new RegExp("</"+E+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(E)&&(R=this._input.readUntil(new RegExp("</"+E+"[\\n\\r\\t ]*?>","ig")))}return R?this._create_token(s.TEXT,R):null},O.prototype._read_content_word=function(S){var v="";if(this._options.unformatted_content_delimiter&&(S===this._options.unformatted_content_delimiter[0]&&(v=this.__patterns.unformatted_content_delimiter.read())),v||(v=this.__patterns.word.read()),v)return this._create_token(s.TEXT,v)},r.exports.Tokenizer=O,r.exports.TOKEN=s}],f={};function _(r){var u=f[r];if(u!==void 0)return u.exports;var t=f[r]={exports:{}};return w[r](t,t.exports,_),t.exports}var d=_(18);A=d})();var b=A;if(!0)!(L=[o,o("6UM0"),o("TXwP")],g=function(w){var f=o("6UM0"),_=o("TXwP");return{html_beautify:function(d,r){return b(d,r,f.js_beautify,_.css_beautify)}}}.apply(Y,L),g!==void 0&&(M.exports=g));else var y,x})()},qB8g:function(M,Y,o){M.exports={flexRow:"flexRow___Aj71W",flexColumn:"flexColumn___2jvSr",formWrap:"formWrap___3OxLN",upload:"upload___2lUf4",color0152d9:"color0152d9___10ICR",colorCCC:"colorCCC___2mbRd",footerWrap:"footerWrap___1Ytvb",qrCode:"qrCode___2RFKG",a1:"a1___HdrHw",code:"code___17cwA",group:"group___DUj4t",groupNumber:"groupNumber___3_2zt",a2:"a2___2_e5C"}},qBft:function(M,Y,o){(function(L,g,A){M.exports=Y=g(o("Ib8C"),o("OLod"))})(this,function(L){return L.pad.AnsiX923={pad:function(g,A){var b=g.sigBytes,y=A*4,x=y-b%y,w=b+x-1;g.clamp(),g.words[w>>>2]|=x<<24-w%4*8,g.sigBytes+=x},unpad:function(g){var A=g.words[g.sigBytes-1>>>2]&255;g.sigBytes-=A}},L.pad.Ansix923})},qM6L:function(M,Y,o){(function(L,g){M.exports=Y=g(o("Ib8C"))})(this,function(L){return function(){var g=L,A=g.lib,b=A.WordArray,y=g.enc,x=y.Utf16=y.Utf16BE={stringify:function(f){for(var _=f.words,d=f.sigBytes,r=[],u=0;u<d;u+=2){var t=_[u>>>2]>>>16-u%4*8&65535;r.push(String.fromCharCode(t))}return r.join("")},parse:function(f){for(var _=f.length,d=[],r=0;r<_;r++)d[r>>>1]|=f.charCodeAt(r)<<16-r%2*16;return b.create(d,_*2)}};y.Utf16LE={stringify:function(f){for(var _=f.words,d=f.sigBytes,r=[],u=0;u<d;u+=2){var t=w(_[u>>>2]>>>16-u%4*8&65535);r.push(String.fromCharCode(t))}return r.join("")},parse:function(f){for(var _=f.length,d=[],r=0;r<_;r++)d[r>>>1]|=w(f.charCodeAt(r)<<16-r%2*16);return b.create(d,_*2)}};function w(f){return f<<8&4278255360|f>>>8&16711935}}(),L.enc.Utf16})},qgvg:function(M,Y){M.exports="data:image/gif;base64,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"},qu8F:function(M,Y,o){(function(L,g,A){M.exports=Y=g(o("Ib8C"),o("OLod"))})(this,function(L){/** @preserve
* Counter block mode compatible with Dr Brian Gladman fileenc.c
* derived from CryptoJS.mode.CTR
* Jan Hruby jhruby.web@gmail.com
*/return L.mode.CTRGladman=function(){var g=L.lib.BlockCipherMode.extend();function A(x){if((x>>24&255)===255){var w=x>>16&255,f=x>>8&255,_=x&255;w===255?(w=0,f===255?(f=0,_===255?_=0:++_):++f):++w,x=0,x+=w<<16,x+=f<<8,x+=_}else x+=1<<24;return x}function b(x){return(x[0]=A(x[0]))===0&&(x[1]=A(x[1])),x}var y=g.Encryptor=g.extend({processBlock:function(x,w){var f=this._cipher,_=f.blockSize,d=this._iv,r=this._counter;d&&(r=this._counter=d.slice(0),this._iv=void 0),b(r);var u=r.slice(0);f.encryptBlock(u,0);for(var t=0;t<_;t++)x[w+t]^=u[t]}});return g.Decryptor=y,g}(),L.mode.CTRGladman})},"rAM+":function(M,Y,o){"use strict";o.d(Y,"a",function(){return g});var L=o("Qw5x");function g(A,b){var y;if(typeof Symbol=="undefined"||A[Symbol.iterator]==null){if(Array.isArray(A)||(y=Object(L.a)(A))||b&&A&&typeof A.length=="number"){y&&(A=y);var x=0,w=function(){};return{s:w,n:function(){return x>=A.length?{done:!0}:{done:!1,value:A[x++]}},e:function(u){throw u},f:w}}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 f=!0,_=!1,d;return{s:function(){y=A[Symbol.iterator]()},n:function(){var u=y.next();return f=u.done,u},e:function(u){_=!0,d=u},f:function(){try{!f&&y.return!=null&&y.return()}finally{if(_)throw d}}}}},rHrb:function(M,Y,o){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.CopyToClipboard=void 0;var L=A(o("q1tI")),g=A(o("+QRC"));function A(s){return s&&s.__esModule?s:{default:s}}function b(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?b=function(O){return typeof O}:b=function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},b(s)}function y(s,p){var O=Object.keys(s);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(s);p&&(S=S.filter(function(v){return Object.getOwnPropertyDescriptor(s,v).enumerable})),O.push.apply(O,S)}return O}function x(s){for(var p=1;p<arguments.length;p++){var O=arguments[p]!=null?arguments[p]:{};p%2?y(O,!0).forEach(function(S){h(s,S,O[S])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(O)):y(O).forEach(function(S){Object.defineProperty(s,S,Object.getOwnPropertyDescriptor(O,S))})}return s}function w(s,p){if(s==null)return{};var O=f(s,p),S,v;if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(s);for(v=0;v<P.length;v++){if(S=P[v],p.indexOf(S)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(s,S))continue;O[S]=s[S]}}return O}function f(s,p){if(s==null)return{};var O={},S=Object.keys(s),v,P;for(P=0;P<S.length;P++){if(v=S[P],p.indexOf(v)>=0)continue;O[v]=s[v]}return O}function _(s,p){if(!(s instanceof p))throw new TypeError("Cannot call a class as a function")}function d(s,p){for(var O=0;O<p.length;O++){var S=p[O];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(s,S.key,S)}}function r(s,p,O){return p&&d(s.prototype,p),O&&d(s,O),s}function u(s,p){return p&&(b(p)==="object"||typeof p=="function")?p:a(s)}function t(s){return t=Object.setPrototypeOf?Object.getPrototypeOf:function(O){return O.__proto__||Object.getPrototypeOf(O)},t(s)}function a(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function n(s,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(p&&p.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),p&&i(s,p)}function i(s,p){return i=Object.setPrototypeOf||function(S,v){return S.__proto__=v,S},i(s,p)}function h(s,p,O){return p in s?Object.defineProperty(s,p,{value:O,enumerable:!0,configurable:!0,writable:!0}):s[p]=O,s}var l=function(s){n(p,s);function p(){var O,S;_(this,p);for(var v=arguments.length,P=new Array(v),R=0;R<v;R++)P[R]=arguments[R];return S=u(this,(O=t(p)).call.apply(O,[this].concat(P))),h(a(S),"onClick",function(E){var C=S.props,m=C.text,T=C.onCopy,I=C.children,D=C.options,N=L.default.Children.only(I),z=(0,g.default)(m,D);T&&T(m,z),N&&N.props&&typeof N.props.onClick=="function"&&N.props.onClick(E)}),S}return r(p,[{key:"render",value:function(){var S=this.props,v=S.text,P=S.onCopy,R=S.options,E=S.children,C=w(S,["text","onCopy","options","children"]),m=L.default.Children.only(E);return L.default.cloneElement(m,x({},C,{onClick:this.onClick}))}}]),p}(L.default.PureComponent);Y.CopyToClipboard=l,h(l,"defaultProps",{onCopy:void 0,options:void 0})},rUJ1:function(M,Y){const o=/[&<>"']/,L=/[&<>"']/g,g=/[<>"']|&(?!#?\w+;)/,A=/[<>"']|&(?!#?\w+;)/g,b={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},y=R=>b[R];function x(R,E){if(E){if(o.test(R))return R.replace(L,y)}else if(g.test(R))return R.replace(A,y);return R}const w=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function f(R){return R.replace(w,(E,C)=>(C=C.toLowerCase(),C==="colon"?":":C.charAt(0)==="#"?C.charAt(1)==="x"?String.fromCharCode(parseInt(C.substring(2),16)):String.fromCharCode(+C.substring(1)):""))}const _=/(^|[^\[])\^/g;function d(R,E){R=R.source||R,E=E||"";const C={replace:(m,T)=>(T=T.source||T,T=T.replace(_,"$1"),R=R.replace(m,T),C),getRegex:()=>new RegExp(R,E)};return C}const r=/[^\w:]/g,u=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function t(R,E,C){if(R){let m;try{m=decodeURIComponent(f(C)).replace(r,"").toLowerCase()}catch(T){return null}if(m.indexOf("javascript:")===0||m.indexOf("vbscript:")===0||m.indexOf("data:")===0)return null}E&&!u.test(C)&&(C=l(E,C));try{C=encodeURI(C).replace(/%25/g,"%")}catch(m){return null}return C}const a={},n=/^[^:]+:\/*[^/]*$/,i=/^([^:]+:)[\s\S]*$/,h=/^([^:]+:\/*[^/]*)[\s\S]*$/;function l(R,E){a[" "+R]||(n.test(R)?a[" "+R]=R+"/":a[" "+R]=S(R,"/",!0)),R=a[" "+R];const C=R.indexOf(":")===-1;return E.substring(0,2)==="//"?C?E:R.replace(i,"$1")+E:E.charAt(0)==="/"?C?E:R.replace(h,"$1")+E:R+E}const s={exec:function(){}};function p(R){let E=1,C,m;for(;E<arguments.length;E++){C=arguments[E];for(m in C)Object.prototype.hasOwnProperty.call(C,m)&&(R[m]=C[m])}return R}function O(R,E){const C=R.replace(/\|/g,(I,D,N)=>{let z=!1,F=D;for(;--F>=0&&N[F]==="\\";)z=!z;return z?"|":" |"}),m=C.split(/ \|/);let T=0;if(m.length>E)m.splice(E);else for(;m.length<E;)m.push("");for(;T<m.length;T++)m[T]=m[T].trim().replace(/\\\|/g,"|");return m}function S(R,E,C){const m=R.length;if(m===0)return"";let T=0;for(;T<m;){const I=R.charAt(m-T-1);if(I===E&&!C)T++;else if(I!==E&&C)T++;else break}return R.substr(0,m-T)}function v(R,E){if(R.indexOf(E[1])===-1)return-1;const C=R.length;let m=0,T=0;for(;T<C;T++)if(R[T]==="\\")T++;else if(R[T]===E[0])m++;else if(R[T]===E[1]&&(m--,m<0))return T;return-1}function P(R){R&&R.sanitize&&!R.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}M.exports={escape:x,unescape:f,edit:d,cleanUrl:t,resolveUrl:l,noopTest:s,merge:p,splitCells:O,rtrim:S,findClosingBracket:v,checkSanitizeDeprecation:P}},ruvs:function(M,Y,o){"use strict";o.d(Y,"b",function(){return Ue});var L=o("2qtc"),g=o("kLXV"),A=o("9og8"),b=o("rAM+"),y=o("tJVT"),x=o("PpiC"),w=o("k1fw"),f=o("5NDa"),_=o("5rEg"),d=o("B9cy"),r=o("Ol7k"),u=o("WmNS"),t=o.n(u),a=o("q1tI"),n=o.n(a),i=o("Ty5D"),h=o("55Ip"),l=o("9kvl"),s=o("lzim"),p=o("xrsn"),O=o.n(p),S=o("1Sn+"),v=o("qVdP"),P=o("jsC+"),R=o("14J3"),E=o("BMrR"),C=o("jCWc"),m=o("kPKH"),T=o("lUTK"),I=o("BvKs"),D=o("miYZ"),N=o("tsqr"),z=o("7Kak"),F=o("9yH6"),W=o("6CvP"),K=o("1vsH"),B;(function(_t){_t.Manager="manager",_t.Developer="developer",_t.Reporter="reporter"})(B||(B={}));var k=function(Qe){var He=Qe.visible,Ge=Qe.onCancel,Ee=Ge===void 0?function(){}:Ge,Ae=Object(a.useState)(),Fe=Object(y.a)(Ae,2),We=Fe[0],Ke=Fe[1],st=Object(a.useState)(),Ot=Object(y.a)(st,2),Bt=Ot[0],an=Ot[1],Kt=Object(a.useState)(!1),bt=Object(y.a)(Kt,2),Be=bt[0],at=bt[1],it=function(){var Ye=Object(A.a)(t.a.mark(function ut(){var mt,Pt;return t.a.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:if(We){et.next=3;break}return N.b.info("\u8BF7\u8F93\u5165\u5F00\u53D1\u9879\u76EE\u9080\u8BF7\u7801\uFF01"),et.abrupt("return");case 3:if(!(We.length!==6)){et.next=6;break}return N.b.info("\u8BF7\u8F93\u51656\u4F4D\u9879\u76EE\u9080\u8BF7\u7801\uFF01"),et.abrupt("return");case 6:if(Bt){et.next=9;break}return N.b.info("\u8BF7\u9009\u62E9\u4E00\u4E2A\u8EAB\u4EFD\uFF01"),et.abrupt("return");case 9:return at(!0),et.next=12,Object(W.e)({code:We,role:Bt});case 12:if(mt=et.sent,at(!1),Me(),Pt={1:"\u60A8\u8F93\u5165\u7684\u9080\u8BF7\u7801\u9519\u8BEF",2:"\u60A8\u5DF2\u7ECF\u662F\u8BE5\u9879\u76EE\u6210\u5458",3:"\u8BF7\u9009\u62E9\u4E00\u4E2A\u89D2\u8272",4:"\u60A8\u7684\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u9879\u76EE\u7BA1\u7406\u5458\u5BA1\u6279",5:"\u60A8\u5DF2\u7ECF\u7533\u8BF7\u52A0\u5165\u8BE5\u9879\u76EE\u4E86\uFF0C\u8BF7\u8010\u5FC3\u7B49\u5F85",6:"\u60A8\u5DF2\u6210\u529F\u52A0\u5165\u9879\u76EE"},!Pt[mt.status]){et.next=19;break}return N.b.info(Pt[mt.status]),et.abrupt("return");case 19:if(!(mt.status===0)){et.next=22;break}return Bt==="reporter"?(N.b.success("\u60A8\u52A0\u5165\u9879\u76EE\u6210\u529F\uFF01"),Object(K.cb)(["\u5F00\u53D1\u9879\u76EE","\u52A0\u5165\u9879\u76EE\u6210\u529F"]),l.d.push("/projects/".concat(mt==null?void 0:mt.project_id))):(Object(K.cb)(["\u5F00\u53D1\u9879\u76EE","\u52A0\u5165\u9879\u76EE\u7B49\u5F85\u5BA1\u6279"]),N.b.success("\u60A8\u7684\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u9879\u76EE\u7BA1\u7406\u5458\u5BA1\u6279\uFF01")),et.abrupt("return");case 22:case"end":return et.stop()}},ut)}));return function(){return Ye.apply(this,arguments)}}(),Me=function(){var Ye=Object(A.a)(t.a.mark(function ut(){return t.a.wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:Ee();case 1:case"end":return Pt.stop()}},ut)}));return function(){return Ye.apply(this,arguments)}}();return n.a.createElement(n.a.Fragment,null,n.a.createElement(g.a,{centered:!0,keyboard:!1,closable:!1,title:"\u52A0\u5165\u9879\u76EE",visible:He,confirmLoading:Be,onOk:it,onCancel:Me},n.a.createElement("div",{className:"tc"},n.a.createElement("div",null,n.a.createElement("span",null,"\u9879\u76EE\u9080\u8BF7\u7801\uFF1A"),n.a.createElement(_.a,{placeholder:"\u8BF7\u8F93\u51656\u4F4D\u5F00\u53D1\u9879\u76EE\u9080\u8BF7\u7801",style:{width:270},value:We,onChange:function(ut){if(ut.target.value.length>=7){N.b.info("\u8BF7\u8F93\u51656\u4F4D\u5F00\u53D1\u9879\u76EE\u9080\u8BF7\u7801\uFF01");return}Ke(ut.target.value)}})),n.a.createElement("div",{className:"mt10 font14"},n.a.createElement("span",null,"\u8EAB\u4EFD\uFF1A"),n.a.createElement(F.a.Group,{value:Bt,onChange:function(ut){return an(ut.target.value)}},n.a.createElement(F.a,{value:B.Manager},"\u7BA1\u7406\u4EBA\u5458"),n.a.createElement(F.a,{value:B.Developer},"\u5F00\u53D1\u4EBA\u5458"),n.a.createElement(F.a,{value:B.Reporter},"\u62A5\u544A\u4EBA\u5458"))))))},G=k,ne=o("Jky8"),fe=o("6Fuo"),de=o.n(fe),xe=o("NLgs"),Oe;(function(_t){_t.Projects="projects",_t.Shixuns="shixuns",_t.Classrooms="classrooms"})(Oe||(Oe={}));var ce;(function(_t){_t.Classrooms="classrooms",_t.Shixuns="shixuns",_t.Paths="paths",_t.Projects="projects",_t.Videos="videos",_t.Topics="topics"})(ce||(ce={}));var be=function(Qe){var He,Ge,Ee,Ae,Fe,We,Ke,st=Qe.homePage,Ot=Qe.user,Bt=Qe.globalSetting,an=Qe.loading,Kt=Qe.dispatch,bt=Qe.location,Be=Object(x.a)(Qe,["homePage","user","globalSetting","loading","dispatch","location"]),at=Object(a.useState)(),it=Object(y.a)(at,2),Me=it[0],Ye=it[1],ut=Object(a.useState)(),mt=Object(y.a)(ut,2),Pt=mt[0],jt=mt[1],et=function(cn){var xr;if(!Object(xe.e)(Kt))return;if(cn===Oe.Projects&&!((xr=Ot.userInfo)!==null&&xr!==void 0&&xr.email)){N.b.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}cn===Oe.Classrooms?Ye(!0):cn===Oe.Projects&&jt(!0)},Dt=function(cn,xr){var wr;if(!Object(xe.e)(Kt))return;if(xr===Oe.Projects&&!((wr=Ot.userInfo)!==null&&wr!==void 0&&wr.email)){N.b.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}if(xr===Oe.Shixuns&&!Object(xe.c)())return;cn&&(window.location.href=cn)},Ht=(He=(((Ge=Bt.setting)===null||Ge===void 0?void 0:Ge.navbar)||[]).find(function(Pn){return Pn.link==="/".concat(ce.Classrooms)}))===null||He===void 0?void 0:He.hidden,bn=(Ee=(((Ae=Bt.setting)===null||Ae===void 0?void 0:Ae.navbar)||[]).find(function(Pn){return Pn.link==="/".concat(ce.Shixuns)}))===null||Ee===void 0?void 0:Ee.hidden,Cn=(Fe=(((We=Bt.setting)===null||We===void 0?void 0:We.navbar)||[]).find(function(Pn){return Pn.link==="/".concat(ce.Paths)}))===null||Fe===void 0?void 0:Fe.hidden;if(Bt!=null&&(Ke=Bt.setting)!==null&&Ke!==void 0&&Ke.is_local){var Yn;Ot!=null&&(Yn=Ot.userInfo)!==null&&Yn!==void 0&&Yn.is_shixun_marker||(bn=!0)}var qn=function(cn){var xr,wr,Rr,cr,Ur,yr,sn;return n.a.createElement(n.a.Fragment,null,n.a.createElement(E.a,{justify:"space-around",className:"pt5 pb5"},n.a.createElement(m.a,{className:de.a.joinCol},((xr=Ot.userInfo)===null||xr===void 0?void 0:xr.user_identity)!=="\u5B66\u751F"&&!Ht&&n.a.createElement(I.a.Item,cn,n.a.createElement("a",{onClick:function(){return Dt("/classrooms/new")}},(wr=Ot.userInfo)!==null&&wr!==void 0&&wr.main_site?"\u65B0\u5EFA\u6559\u5B66\u8BFE\u5802":"\u65B0\u5EFA\u8BFE\u5802")),(Bt==null?void 0:Bt.setting.hide_shixun)&&n.a.createElement(I.a.Item,cn,n.a.createElement("a",{onClick:function(){return Dt("/shixuns/new",Oe.Shixuns)}},"\u65B0\u5EFA\u5B9E\u8DF5\u9879\u76EE")),(Bt==null?void 0:Bt.setting.hide_subject)&&n.a.createElement(I.a.Item,cn,n.a.createElement("a",{onClick:function(){return Dt("/paths/new")}},"\u65B0\u5EFA\u5B9E\u8DF5\u8BFE\u7A0B")),!(Bt!=null&&(Rr=Bt.setting)!==null&&Rr!==void 0&&Rr.is_local)&&((cr=Ot.userInfo)===null||cr===void 0?void 0:cr.main_site)&&n.a.createElement(I.a.Item,cn,n.a.createElement("a",{onClick:function(){var Tn,jr;return Dt("".concat((Tn=Ot.navigationInfo)===null||Tn===void 0||((jr=Tn.top)===null||jr===void 0)?void 0:jr.old_url,"/projects/deposit/new"),Oe.Projects)}},"\u65B0\u5EFA\u5F00\u53D1\u9879\u76EE"))),n.a.createElement(m.a,null,n.a.createElement("div",{className:de.a.joinBoard})),n.a.createElement(m.a,{className:de.a.joinCol},!Ht&&n.a.createElement(I.a.Item,cn,n.a.createElement("a",{onClick:function(){return et(Oe.Classrooms)}},(Ur=Ot.userInfo)!==null&&Ur!==void 0&&Ur.main_site?"\u52A0\u5165\u6559\u5B66\u8BFE\u5802":"\u52A0\u5165\u8BFE\u5802")),((yr=Ot.userInfo)===null||yr===void 0?void 0:yr.main_site)&&!(Bt!=null&&(sn=Bt.setting)!==null&&sn!==void 0&&sn.is_local)&&n.a.createElement(I.a.Item,cn,n.a.createElement("a",{onClick:function(){return et(Oe.Projects)}},"\u52A0\u5165\u5F00\u53D1\u9879\u76EE")))))};return n.a.createElement("section",null,n.a.createElement(P.a,{overlay:n.a.createElement(I.a,{className:"".concat(de.a.rightMenu," ").concat(de.a.joinMenu," mt10")},n.a.createElement(qn,null)),placement:"bottomRight"},n.a.createElement("span",{style:{lineHeight:"inherit",color:"rgba(32, 40, 55, 1)"},className:"iconfont icon-tianjiafangda c-white font18 current ml15 mr15"})),n.a.createElement(ne.a,{visible:Me,onCancel:function(){return Ye(!1)}}),n.a.createElement(G,{visible:Pt,onCancel:function(){return jt(!1)}}))},ve=Object(l.a)(function(_t){var Qe=_t.homePage,He=_t.loading,Ge=_t.user,Ee=_t.globalSetting;return{homePage:Qe,user:Ge,globalSetting:Ee,loading:He.models.index}})(be),ue=o("vToQ"),se=o.n(ue),q=o("xKgJ"),me=o("jb+D"),re=o("m3rI"),ie=function(Qe){var He,Ge=RegExp("(^| )"+Qe+"=([^;]+)(;|$)");return(He=document.cookie.match(Ge))?decodeURIComponent(He[2]):null},we=function(Qe){var He=new Date;He.setTime(He.getTime()-1);var Ge=ie(Qe);Ge!=null&&(document.cookie=Qe+"="+Ge+";expires="+He.toGMTString())},le;(function(_t){_t.Classrooms="classrooms",_t.Shixuns="shixuns",_t.Paths="paths",_t.Projects="projects",_t.Videos="videos",_t.Topics="topics"})(le||(le={}));var $=function(Qe){var He,Ge,Ee,Ae,Fe,We,Ke,st,Ot,Bt,an,Kt=Qe.homePage,bt=Qe.user,Be=Qe.globalSetting,at=Qe.loading,it=Qe.dispatch,Me=Qe.shixunHomeworks,Ye=Qe.location,ut=Qe.payload,mt=ut===void 0?{}:ut,Pt=Object(x.a)(Qe,["homePage","user","globalSetting","loading","dispatch","shixunHomeworks","location","payload"]),jt=(He=(((Ge=Be.setting)===null||Ge===void 0?void 0:Ge.navbar)||[]).find(function(Pn){return Pn.link==="/".concat(le.Classrooms)}))===null||He===void 0?void 0:He.hidden,et=(Ee=(((Ae=Be.setting)===null||Ae===void 0?void 0:Ae.navbar)||[]).find(function(Pn){return Pn.link==="/".concat(le.Shixuns)}))===null||Ee===void 0?void 0:Ee.hidden,Dt=(Fe=(((We=Be.setting)===null||We===void 0?void 0:We.navbar)||[]).find(function(Pn){return Pn.link==="/".concat(le.Paths)}))===null||Fe===void 0?void 0:Fe.hidden,Ht=((Ke=bt.userInfo)===null||Ke===void 0?void 0:Ke.admin)||((st=bt.userInfo)===null||st===void 0?void 0:st.business)||((Ot=bt.userInfo)===null||Ot===void 0?void 0:Ot.is_shixun_marker)||((Bt=bt.userInfo)===null||Bt===void 0?void 0:Bt.is_teacher)||((an=bt.userInfo)===null||an===void 0?void 0:an.user_identity)!=="\u5B66\u751F",bn=function(){if(Object(K.r)())return n.a.createElement(I.a,{className:"".concat(se.a.rightMenu," ").concat(se.a.menuWrap)},n.a.createElement(I.a.Item,null,n.a.createElement(h.a,{to:"/account/profile"},"\u8D26\u53F7\u7BA1\u7406")));var cn,xr,wr,Rr,cr,Ur,yr,sn,Zt,Tn,jr,jn,$n,Wn,pe,V,Z,oe,Ce,he,ct,rn;return n.a.createElement(I.a,{className:"".concat(se.a.rightMenu," ").concat(se.a.menuWrap)},n.a.createElement(I.a.Item,null,n.a.createElement(h.a,{to:"/users/".concat((cn=bt.userInfo)===null||cn===void 0?void 0:cn.login,"/classrooms")},"\u6211\u7684\u4E2A\u4EBA\u4E3B\u9875")),!jt&&n.a.createElement(I.a.Item,null,n.a.createElement(h.a,{to:"/users/".concat((xr=bt.userInfo)===null||xr===void 0?void 0:xr.login,"/classrooms")},(wr=bt.userInfo)!==null&&wr!==void 0&&wr.main_site?"\u6211\u7684\u6559\u5B66\u8BFE\u5802":"\u6211\u7684\u8BFE\u5802")),!et&&n.a.createElement(I.a.Item,null,n.a.createElement(h.a,{to:"/users/".concat((Rr=bt.userInfo)===null||Rr===void 0?void 0:Rr.login,"/shixuns")},"\u6211\u7684\u5B9E\u8DF5\u9879\u76EE")),!Dt&&n.a.createElement(I.a.Item,null,n.a.createElement(h.a,{to:"/users/".concat((cr=bt.userInfo)===null||cr===void 0?void 0:cr.login,"/paths")},(Ur=bt.userInfo)!==null&&Ur!==void 0&&Ur.main_site?"\u6211\u7684\u5B9E\u8DF5\u8BFE\u7A0B":"\u6211\u7684\u8BFE\u7A0B")),((yr=bt.userInfo)===null||yr===void 0?void 0:yr.main_site)&&!((sn=Be.setting)!==null&&sn!==void 0&&sn.is_local)&&n.a.createElement(I.a.Item,null,n.a.createElement(h.a,{to:"/users/".concat((Zt=bt.userInfo)===null||Zt===void 0?void 0:Zt.login,"/projects")},"\u6211\u7684\u5F00\u53D1\u9879\u76EE")),n.a.createElement(I.a.Item,null,n.a.createElement(h.a,{to:"/users/".concat((Tn=bt.userInfo)===null||Tn===void 0?void 0:Tn.login,"/teach-group")},"\u6211\u7684\u6559\u7814\u56E2\u961F")),n.a.createElement(I.a.Item,null,n.a.createElement("a",{onClick:function(){if(!Object(xe.e)(it))return;l.d.push("/problemset")}},"\u8BD5\u9898\u5E93")),Ht&&n.a.createElement(I.a.Item,null,n.a.createElement("a",{onClick:function(){if(!Object(xe.e)(it))return;l.d.push("/paperlibrary")}},"\u8BD5\u5377\u5E93")),((jr=bt.navigationInfo)===null||jr===void 0||((jn=jr.top)===null||jn===void 0)?void 0:jn.customer_management_url)&&n.a.createElement(I.a.Item,null,n.a.createElement("a",{href:($n=bt.navigationInfo)===null||$n===void 0||((Wn=$n.top)===null||Wn===void 0)?void 0:Wn.customer_management_url},"\u5BA2\u6237\u7BA1\u7406")),((pe=bt.navigationInfo)===null||pe===void 0||((V=pe.top)===null||V===void 0)?void 0:V.college_identifier)&&n.a.createElement(I.a.Item,null,n.a.createElement(h.a,{to:"/colleges/".concat((Z=bt.navigationInfo)===null||Z===void 0||((oe=Z.top)===null||oe===void 0)?void 0:oe.college_identifier,"/statistics")},"\u5B66\u9662\u7EDF\u8BA1")),((Ce=bt.navigationInfo)===null||Ce===void 0||((he=Ce.top)===null||he===void 0)?void 0:he.laboratory_admin_url)&&n.a.createElement(I.a.Item,null,n.a.createElement("a",{href:(ct=bt.navigationInfo)===null||ct===void 0||((rn=ct.top)===null||rn===void 0)?void 0:rn.laboratory_admin_url},"\u540E\u53F0\u7BA1\u7406")),n.a.createElement(I.a.Item,null,n.a.createElement(h.a,{onClick:function(){localStorage.getItem("Noviceguide")==="0"||it({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:2,href:"/classrooms",text:n.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")),n.a.createElement(I.a.Item,{className:se.a.exit},n.a.createElement("a",{onClick:Object(A.a)(t.a.mark(function In(){var Vn;return t.a.wrap(function(En){for(;;)switch(En.prev=En.next){case 0:return En.next=2,Object(me.c)({});case 2:Vn=En.sent,(Vn==null?void 0:Vn.status)===1&&(it({type:"user/getUserInfo",payload:Object(w.a)({},mt)}),it({type:"user/getNavigationInfo",payload:Object(w.a)({},mt)}),we("autologin_trustie"),we("_educoder_session"),localStorage.removeItem("isfirst"),localStorage.removeItem("SystemUpdateadvtime"),localStorage.removeItem("item"),localStorage.removeItem("iscreate"),N.b.success(Vn==null?void 0:Vn.message),l.d.replace("/"));case 4:case"end":return En.stop()}},In)}))},"\u9000\u51FA")))};if(Object(q.p)()){var Cn,Yn;return n.a.createElement(P.a,{className:"".concat(se.a.height67),overlay:bn,placement:"bottomRight"},n.a.createElement("section",null,n.a.createElement("aside",null,n.a.createElement("div",{className:Me.actionTabs.type===1?se.a.classromediv:""},n.a.createElement("img",{className:"".concat(se.a.userPic," current ml15"),src:"".concat(re.a===null||re.a===void 0?void 0:re.a.IMG_SERVER,"/images/").concat((Cn=bt.userInfo)===null||Cn===void 0?void 0:Cn.image_url),alt:"",onClick:function(){var cn;return l.d.push(Object(K.r)()?"/account/profile":"/users/".concat((cn=bt.userInfo)===null||cn===void 0?void 0:cn.login,"/classrooms"))}}),Object(K.r)()&&n.a.createElement("span",{className:"ml10 font16"},(Yn=bt.userInfo)===null||Yn===void 0?void 0:Yn.username)))))}else{var qn;return n.a.createElement("div",{className:"font15 ".concat(Be.isIlearning?se.a.login:"")},n.a.createElement("span",{className:"ml10 mr5 current c-black",onClick:function(){it({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}})}},"\u767B\u5F55"),!((qn=Be.setting)!==null&&qn!==void 0&&qn.close_register)&&n.a.createElement(n.a.Fragment,null,n.a.createElement("span",{className:"ml5 mr5"},"|"),n.a.createElement(h.a,{to:"/user/register",className:"ml5 current c-black pr25"},"\u6CE8\u518C")))}},J=Object(l.a)(function(_t){var Qe=_t.homePage,He=_t.loading,Ge=_t.user,Ee=_t.globalSetting,Ae=_t.shixunHomeworks;return{homePage:Qe,user:Ge,globalSetting:Ee,shixunHomeworks:Ae,loading:He.models.index}})($),te=o("+L6B"),De=o("2/Rp"),Te=o("Cs+z"),ke=o.n(Te),tt=["/","/classrooms","/account/profile","/account/profile/edit","/classrooms/new"],ot=function(Qe){var He=Qe.homePage,Ge=Qe.user,Ee=Qe.globalSetting,Ae=Qe.loading,Fe=Qe.dispatch,We=Qe.location,Ke=Qe.text,st=Qe.shixunHomeworks,Ot=Qe.payload,Bt=Ot===void 0?{}:Ot,an=Object(x.a)(Qe,["homePage","user","globalSetting","loading","dispatch","location","text","shixunHomeworks","payload"]),Kt=Object(a.useState)("none"),bt=Object(y.a)(Kt,2),Be=bt[0],at=bt[1];return Object(a.useEffect)(function(){st.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"&&at("flex")},[st.actionTabs.key]),Object(a.useEffect)(function(){st.actionTabs.key==="\u9690\u85CF"&&(at("none"),localStorage.setItem("Noviceguide","0"))},[st.actionTabs.key]),n.a.createElement("div",{style:{display:Be,background:"#fff",width:"100%",height:"200px",position:"fixed",bottom:"0px",boxShadow:"0px -4px 6px 0px rgba(204, 204, 204, 0.2)",zIndex:"999"}},n.a.createElement("div",{style:{margin:"0 auto",width:"1200px"}},n.a.createElement("img",{src:ke.a,style:{position:"absolute",top:"-32px"}}),n.a.createElement("div",{style:{marginLeft:"151px",marginTop:"40px",fontSize:"18px",color:"#333333"}},st.actionTabs.text),st.actionTabs.type===9?n.a.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},n.a.createElement(De.a,{type:"primary",onClick:function(){localStorage.setItem("Noviceguide","0"),at("none"),Fe({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")):n.a.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},n.a.createElement(De.a,{type:"primary",onClick:function(){localStorage.setItem("Noviceguide","0"),Fe({type:"shixunHomeworks/setActionTabs",payload:{key:""}}),at("none")},ghost:!0,style:{marginTop:"30px",width:"138px",height:"40px",position:"absolute",top:"124px"}},"\u8DF3\u8FC7\uFF0C\u6211\u81EA\u5DF1\u6765"))))},gt=Object(l.a)(function(_t){var Qe=_t.homePage,He=_t.loading,Ge=_t.user,Ee=_t.globalSetting,Ae=_t.shixunHomeworks;return{homePage:Qe,user:Ge,globalSetting:Ee,loading:He.models.index,shixunHomeworks:Ae}})(ot),Et=o("498V"),xt=o.n(Et),St=r.a.Header,Je=_.a.Search;function Ue(){var _t,Qe,He=window.location.pathname,Ge=He.split("/"),Ee={};return Ge[1]=="classrooms"&&Ge.length>3&&!((_t=Ge[4])!==null&&_t!==void 0&&_t.includes("newgold"))&&!((Qe=Ge[5])!==null&&Qe!==void 0&&Qe.includes("newgold"))&&Ge[2]!=="coursesId"&&(Ee.course_id=Ge[2]),Ge[1]==="shixuns"&&Ge.length>3&&(Ee.objective_type="shixun",Ee.objective_id=Ge[2]),Ge[1]==="paths"&&Ge.length>3&&(Ee.objective_type="path",Ee.objective_id=Ge[2]),Object(w.a)(Object(w.a)({},Ee),{school:1})}var ft=["/","/classrooms","/account/profile","/account/profile/edit","/classrooms/new"],kt=function(Qe){var He,Ge=Qe.homePage,Ee=Qe.user,Ae=Qe.globalSetting,Fe=Qe.loading,We=Qe.dispatch,Ke=Qe.location,st=Qe.isLogin,Ot=st===void 0?!1:st,Bt=Qe.shixunHomeworks,an=Object(x.a)(Qe,["homePage","user","globalSetting","loading","dispatch","location","isLogin","shixunHomeworks"]),Kt=Object(i.g)(),bt=Object(a.useState)(!1),Be=Object(y.a)(bt,2),at=Be[0],it=Be[1],Me=Object(a.useState)(""),Ye=Object(y.a)(Me,2),ut=Ye[0],mt=Ye[1],Pt=Object(a.useState)(!1),jt=Object(y.a)(Pt,2),et=jt[0],Dt=jt[1],Ht=Ue();Object(a.useEffect)(function(){We({type:"user/getNavigationInfo",payload:Object(w.a)({},Ht)})},[Ae.name]),Object(a.useEffect)(function(){Bt.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"&&(ft!=null&&ft.includes(Ke==null?void 0:Ke.pathname)||(Ke==null?void 0:Ke.pathname.indexOf("/classrooms"))===0||We({type:"shixunHomeworks/setActionTabs",payload:{key:"\u9690\u85CF"}}))},[Ke.pathname]),Object(a.useEffect)(function(){Bt.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"||(Bt.actionTabs.key||localStorage.setItem("Noviceguide","0"))},[Bt.actionTabs.key]),Object(a.useEffect)(function(){if(Ae!=null&&Ae.setting){var jn,$n,Wn=Ae==null||((jn=Ae.setting)===null||jn===void 0||(($n=jn.navbar)===null||$n===void 0))?void 0:$n.filter(function(Ce){return!(Ce!=null&&Ce.hidden)&&!(Object(q.m)()&&Ce.link==="/paperlibrary")}),pe=Object(b.a)(Wn),V;try{for(pe.s();!(V=pe.n()).done;){var Z=V.value;Z.subitem&&(Z.subitem=Z.subitem.filter(function(Ce){return!(Ce!=null&&Ce.hidden)&&!(Object(q.m)()&&Ce.link==="/paperlibrary")}))}}catch(Ce){pe.e(Ce)}finally{pe.f()}var oe=!1;Wn==null||Wn.map(function(Ce,he){var ct,rn,In,Vn="/"+((ct=Ke.pathname)===null||ct===void 0||((rn=ct.split("/"))===null||rn===void 0)?void 0:rn[1]);if(Ce.link===Vn&&(mt(Ce==null?void 0:Ce.link),Object(K.X)(Ce==null?void 0:Ce.name),xr(Rr(he,{name:Ce==null?void 0:Ce.name,link:Ce==null?void 0:Ce.link},Wn)),oe=!0),Ce!=null&&(In=Ce.subitem)!==null&&In!==void 0&&In.length){var tn;Ce==null||((tn=Ce.subitem)===null||tn===void 0)||tn.map(function(En){En.link===Vn&&(mt(En==null?void 0:En.link),Object(K.X)(En==null?void 0:En.name),xr(Rr(he,{name:En==null?void 0:En.name,link:En==null?void 0:En.link},Wn)),oe=!0)})}}),oe||xr(Wn)}},[Ae==null?void 0:Ae.setting,Ee]);var bn=Object(a.useMemo)(function(){var jn;if(Ae!=null&&(jn=Ae.setting)!==null&&jn!==void 0&&jn.nav_logo_url){var $n;return"".concat(re.a.IMG_SERVER,"/").concat(Ae==null||(($n=Ae.setting)===null||$n===void 0)?void 0:$n.nav_logo_url)}else return"".concat(re.a.IMG_SERVER,"/images/avatars/LaboratorySetting/1nav?t=").concat(new Date().getTime())},[Ae==null||((He=Ae.setting)===null||He===void 0)?void 0:He.nav_logo_url]);function Cn(jn){Kt.push("/search?value="+jn)}var Yn=function(){return at?n.a.createElement("div",{onBlur:function(){setTimeout(function(){it(!1)},300)}},n.a.createElement(Je,{placeholder:"\u5B9E\u8DF5\u8BFE\u7A0B/\u6559\u5B66\u8BFE\u5802/\u5B9E\u8DF5\u9879\u76EE/\u4EA4\u6D41\u95EE\u7B54",className:"search-input mr20",onSearch:Cn,autoFocus:!0})):n.a.createElement("span",{className:"iconfont icon-sousuo font18 current ml15 mr15",onClick:function(){Kt.push("/search?value=")}})},qn=Object(a.useState)([]),Pn=Object(y.a)(qn,2),cn=Pn[0],xr=Pn[1],wr=function(){var jn=Object(A.a)(t.a.mark(function $n(Wn,pe){var V,Z,oe,Ce,he,ct,rn;return t.a.wrap(function(Vn){for(;;)switch(Vn.prev=Vn.next){case 0:if(!((Wn==null?void 0:Wn.name)==="\u5DE5\u7A0B\u8BA4\u8BC1")){Vn.next=6;break}return Vn.next=3,Object(me.j)();case 3:return oe=Vn.sent,oe!=null&&(Z=oe.data)!==null&&Z!==void 0&&Z.engineer_url?oe!=null&&(Ce=oe.data)!==null&&Ce!==void 0&&(he=Ce.engineer_url)!==null&&he!==void 0&&he.includes("http")?Object(K.S)(oe==null||((ct=oe.data)===null||ct===void 0)?void 0:ct.engineer_url):Kt.push(oe==null||((rn=oe.data)===null||rn===void 0)?void 0:rn.engineer_url):(oe==null?void 0:oe.status)!=401&&Dt(!0),Vn.abrupt("return");case 6:Wn!=null&&(V=Wn.link)!==null&&V!==void 0&&V.includes("http")?Object(K.S)(Wn==null?void 0:Wn.link):Kt.push(Wn==null?void 0:Wn.link),(Wn==null?void 0:Wn.name)==="\u6559\u5B66\u8BFE\u5802"&&localStorage.getItem("Noviceguide")!=="0"&&We({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:5,text:n.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~")}});case 8:case"end":return Vn.stop()}},$n)}));return function(Wn,pe){return jn.apply(this,arguments)}}(),Rr=function($n,Wn,pe){var V=pe.slice();return V[$n]&&(V[$n].name=Wn.name,V[$n].link=Wn.link),V||[]};if(Ae.showHeader&&Ae.showHeaderFooter){var cr,Ur,yr,sn,Zt,Tn,jr;return n.a.createElement(r.a,{className:"".concat(Ae.isIlearning?O.a["header-iearning"]:O.a.header," ").concat(Ae.showHeaderFixed?O.a.headerFixed:"")},n.a.createElement(St,{className:"header"},n.a.createElement("section",{className:O.a["edu-menu"]},(!!Ae.isIlearning||!(Ae!=null&&(cr=Ae.setting)!==null&&cr!==void 0&&cr.main_site)&&!!(Ae!=null&&(Ur=Ae.setting)!==null&&Ur!==void 0&&Ur.navbar))&&n.a.createElement(h.a,{style:{display:"flex",alignItems:"center"},onClick:function(){We({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},to:"/"},n.a.createElement("img",{className:O.a.logo,title:(yr=Ae.setting)===null||yr===void 0?void 0:yr.name,src:bn||xt.a})),n.a.createElement("ul",{className:"".concat(O.a.menu," ").concat(Object(K.r)()&&"ml0")},Object(K.r)()&&n.a.createElement("li",null,n.a.createElement("a",{href:"/"},"\u8003\u8BD5\u7CFB\u7EDF")),!Object(K.r)()&&Ae.setting&&cn.map(function(jn,$n){var Wn,pe,V,Z,oe;return n.a.createElement("li",{key:$n,className:!(jn!=null&&(Wn=jn.subitem)!==null&&Wn!==void 0&&Wn.length)&&ut===(jn==null?void 0:jn.link)||jn!=null&&(pe=jn.subitem)!==null&&pe!==void 0&&pe.some(function(Ce){return ut===(Ce==null?void 0:Ce.link)})?O.a.actived:""},n.a.createElement("div",{onClick:function(){return wr(jn,$n)},className:Bt.actionTabs.type===4?"".concat(O.a.name," ").concat(O.a.classromediv):O.a.name},n.a.createElement("span",null,function(){var Ce=jn==null?void 0:jn.name;{var he;jn==null||((he=jn.subitem)===null||he===void 0)||he.map(function(ct,rn){return ct.link===Ke.pathname&&(Ce=ct.name),ct})}return Ce}()),(jn==null||((V=jn.subitem)===null||V===void 0)?void 0:V.length)>0&&n.a.createElement("i",{className:"iconfont icon-zhankai4"})),(jn==null||((Z=jn.subitem)===null||Z===void 0)?void 0:Z.length)>0&&n.a.createElement("div",{className:O.a.dropDown},jn==null||((oe=jn.subitem)===null||oe===void 0)?void 0:oe.map(function(Ce,he){return n.a.createElement("div",{className:O.a.subName,onClick:function(){return wr(Ce,$n)},key:$n+"-"+he},!!he&&n.a.createElement("div",{className:O.a.line}),n.a.createElement("aside",{className:"font16 c-black"},Ce.name),n.a.createElement("div",{className:"font14",style:{color:"#9FA7B3",whiteSpace:"nowrap"}},Ce.content))})))})),n.a.createElement("div",{className:"search-bar",style:{flex:Ae.isIlearning?"initial":"1 0 auto"}},!Object(K.r)()&&!(Ae!=null&&Ae.isIlearning)&&n.a.createElement(n.a.Fragment,null,n.a.createElement(Yn,null),!Ot&&n.a.createElement(ve,null),!Ot&&!!(Ee!=null&&(sn=Ee.userInfo)!==null&&sn!==void 0&&sn.login)&&n.a.createElement(h.a,{style:{color:"rgba(32, 40, 55, 1)"},className:"iconfont icon-xiaoxilingdang c-white ml15 mr15 font18 relative",to:"/messages/".concat(Ee==null||((Zt=Ee.userInfo)===null||Zt===void 0)?void 0:Zt.login,"/user_tidings")},(Ee==null||((Tn=Ee.navigationInfo)===null||Tn===void 0||((jr=Tn.top)===null||jr===void 0))?void 0:jr.new_message)&&n.a.createElement("span",{className:O.a.newslight}))),!Ot&&n.a.createElement(J,{payload:Ht}))),n.a.createElement(g.a,{centered:!0,destroyOnClose:!0,visible:et,title:"\u63D0\u793A",width:"500px",okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(K.S)("https://qm.qq.com/cgi-bin/qm/qr?k=DWdqQHAbbfw7_rqm0d-Q_vDn5H6bMp91&jump_from=webapi")},onCancel:function(){return Dt(!1)}},n.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},n.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"),n.a.createElement("img",{src:s.z,width:200,height:200}),n.a.createElement("p",null,"\u7FA4\u53F7\uFF1A693542422 ")))),n.a.createElement(gt,null))}else return n.a.createElement(n.a.Fragment,null)},ht=Y.a=Object(l.a)(function(_t){var Qe=_t.homePage,He=_t.loading,Ge=_t.user,Ee=_t.globalSetting,Ae=_t.shixunHomeworks;return{homePage:Qe,user:Ge,globalSetting:Ee,loading:He.models.index,shixunHomeworks:Ae}})(kt)},sLOW:function(M,Y,o){"use strict";var L=o("iQDF"),g=o("+eQT"),A=o("Awhp"),b=o("KrTs"),y=o("O3gP"),x=o("lrIw"),w=o("7Kak"),f=o("9yH6"),_=o("sRBo"),d=o("kaz8"),r=o("+L6B"),u=o("2/Rp"),t=o("oBTY"),a=o("miYZ"),n=o("tsqr"),i=o("2qtc"),h=o("kLXV"),l=o("9og8"),s=o("tJVT"),p=o("PpiC"),O=o("WmNS"),S=o.n(O),v=o("q1tI"),P=o.n(v),R=o("9kvl"),E=o("Z0Lh"),C=o.n(E),m=o("9ZNV"),T=o("NLgs"),I=o("wd/R"),D=o.n(I),N=o("L+Ii"),z=o.n(N),F=function(k){if(!k)return k;var G=k.split(":");if(G[1]=="00"||G[1]=="30")return k;var ne=parseInt(G[1]);if(ne<30||ne==60)return[G[0],"30"].join(":");if(ne<60){var fe=[G[0],"00"].join(":"),de="YYYY-MM-DD HH:mm",xe=D()(fe,de);return xe.add(1,"hours"),xe.format(de)}return k},W="YYYY-MM-DD HH:mm",K=function(k){var G,ne,fe,de,xe,Oe,ce,be,ve=k.shixunsDetail,ue=k.globalSetting,se=k.loading,q=k.user,me=k.dispatch,re=Object(p.a)(k,["shixunsDetail","globalSetting","loading","user","dispatch"]),ie=Object(v.useRef)(),we=Object(v.useState)(),le=Object(s.a)(we,2),$=le[0],J=le[1],te=Object(v.useState)(),De=Object(s.a)(te,2),Te=De[0],ke=De[1],tt=Object(v.useState)([]),ot=Object(s.a)(tt,2),gt=ot[0],Et=ot[1],xt=Object(v.useState)([]),St=Object(s.a)(xt,2),Je=St[0],Ue=St[1],ft=Object(v.useState)(""),kt=Object(s.a)(ft,2),ht=kt[0],_t=kt[1],Qe=Object(v.useState)(),He=Object(s.a)(Qe,2),Ge=He[0],Ee=He[1],Ae=Object(v.useState)(),Fe=Object(s.a)(Ae,2),We=Fe[0],Ke=Fe[1],st=(G=q.userInfo)===null||G===void 0||((ne=G.shixun)===null||ne===void 0)?void 0:ne.editable;Object(v.useEffect)(function(){var Be,at;ie.current=(Be=location.pathname)===null||Be===void 0||((at=Be.split("/"))===null||at===void 0)?void 0:at[2],Ot()},[]),Object(v.useEffect)(function(){var Be,at,it,Me,Ye,ut,mt,Pt,jt,et;if(!ve.setting)return;J((Be=ve.setting)===null||Be===void 0||((at=Be.shixun)===null||at===void 0)?void 0:at.can_copy),ke((it=ve.setting)===null||it===void 0||((Me=it.shixun)===null||Me===void 0)?void 0:Me.use_scope),Ee(!!((Ye=ve.setting)!==null&&Ye!==void 0&&(ut=Ye.shixun)!==null&&ut!==void 0&&ut.opening_time)),Ke((mt=ve.setting)===null||mt===void 0||((Pt=mt.shixun)===null||Pt===void 0)?void 0:Pt.opening_time),Et((jt=ve.setting)===null||jt===void 0||((et=jt.shixun)===null||et===void 0)?void 0:et.scope_partment)},[ve.setting]);var Ot=function(){var Be=Object(l.a)(S.a.mark(function at(it){var Me;return S.a.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return ut.next=2,me({type:"shixunsDetail/getDepartments",payload:{q:it}});case 2:Me=ut.sent,Me&&Ue(Me.shools_name||[]);case 4:case"end":return ut.stop()}},at)}));return function(it){return Be.apply(this,arguments)}}(),Bt=function(){var Be=Object(l.a)(S.a.mark(function at(){var it,Me,Ye,ut,mt,Pt,jt;return S.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:return Dt.next=2,me({type:"shixunsDetail/getShixunQuote",payload:{id:ie.current}});case 2:if(Dt.t0=Dt.sent,Dt.t0){Dt.next=5;break}Dt.t0={};case 5:jt=Dt.t0,h.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:520,content:P.a.createElement("div",{className:"tc font14 ".concat(z.a.modal)},!!((it=jt.subjects)!==null&&it!==void 0&&it.length)&&P.a.createElement(P.a.Fragment,null,P.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230 ",(Me=jt.subjects)===null||Me===void 0||((Ye=Me.splice(0,2))===null||Ye===void 0)?void 0:Ye.map(function(Ht){return"\u300A".concat(Ht,"\u300B")}),"\u7B49",P.a.createElement("span",{className:z.a.colorOrange},jt==null?void 0:jt.subjects_count),"\u4E2A\u5B9E\u8BAD\u8BFE\u7A0B"),P.a.createElement("br",null)),!!((ut=jt.courses)!==null&&ut!==void 0&&ut.length)&&P.a.createElement(P.a.Fragment,null,P.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230",(mt=jt.courses)===null||mt===void 0||((Pt=mt.splice(0,2))===null||Pt===void 0)?void 0:Pt.map(function(Ht){return"\u300A".concat(Ht,"\u300B")}),"\u7B49",P.a.createElement("span",{className:z.a.colorOrange},jt==null?void 0:jt.courses_count),"\u4E2A\u6559\u5B66\u8BFE\u5802"),P.a.createElement("br",null)),P.a.createElement("span",{className:"".concat(z.a.colorYellow," mt30")},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE\u5C06\u5F71\u54CD\u8BFE\u7A0B\u53CA\u8BFE\u5802\u5BF9\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u4F7F\u7528\uFF01\u8BF7\u8C28\u614E\u64CD\u4F5C\uFF01")),onOk:function(){var Ht=Object(l.a)(S.a.mark(function Cn(){var Yn;return S.a.wrap(function(Pn){for(;;)switch(Pn.prev=Pn.next){case 0:return Pn.next=2,me({type:"shixunsDetail/deleteShixun",payload:{id:ie.current}});case 2:Yn=Pn.sent,Yn.status===1&&(n.b.success("\u64CD\u4F5C\u6210\u529F"),R.d.push("/shixuns"));case 4:case"end":return Pn.stop()}},Cn)}));function bn(){return Ht.apply(this,arguments)}return bn}()});case 7:case"end":return Dt.stop()}},at)}));return function(){return Be.apply(this,arguments)}}(),an=function(){if(Object(T.b)(me,"\u4E0D\u80FD\u8FDB\u884C\u5220\u9664"))return},Kt=function(at){if(gt.includes(at)){n.b.info("\u8BF7\u52FF\u6307\u5B9A\u76F8\u540C\u7684\u5355\u4F4D");return}_t(null),Et([].concat(Object(t.a)(gt),[at]))},bt=function(){var Be=Object(l.a)(S.a.mark(function at(){var it;return S.a.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:if(!(Ge&&!We)){Ye.next=3;break}return n.b.info("\u8BF7\u9009\u62E9\u5F00\u542F\u65F6\u95F4"),Ye.abrupt("return");case 3:if(!(Te===1&&!gt.length)){Ye.next=6;break}return n.b.info("\u8BF7\u9009\u62E9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"),Ye.abrupt("return");case 6:return Ye.next=8,me({type:"shixunsDetail/updatePermissionSetting",payload:{id:ie.current,scope_partment:Te===0?null:gt,shixun:{can_copy:$,use_scope:Te,opening_time:We}}});case 8:it=Ye.sent,it.status!==-1&&(n.b.info("\u6743\u9650\u914D\u7F6E\u4FDD\u5B58\u6210\u529F\uFF01"),me({type:"shixunsDetail/getSettingsData",payload:{id:ie.current}}),me({type:"shixunsDetail/getShixunsDetail",payload:{id:ie.current}}));case 10:case"end":return Ye.stop()}},at)}));return function(){return Be.apply(this,arguments)}}();return P.a.createElement("section",{className:z.a.wrap},P.a.createElement("div",{style:{position:"absolute",top:"80px",right:"40px"}},(ve==null||((fe=ve.detail)===null||fe===void 0)?void 0:fe.shixun_status)!==2?P.a.createElement(u.a,{danger:!0,onClick:Bt},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE"):P.a.createElement(u.a,{danger:!0,onClick:an},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE")),P.a.createElement("div",{className:z.a.labelWrap},P.a.createElement("label",{className:z.a.label},"\u590D\u5236:"),P.a.createElement("div",{className:z.a.labelContent},P.a.createElement("div",null,P.a.createElement(d.a,{checked:$,onChange:function(at){return J(at.target.checked)},disabled:!st}),P.a.createElement("span",{className:"".concat(z.a.color999)},"\uFF08\u9009\u4E2D\u5219\u5141\u8BB8\u5DF2\u804C\u4E1A\u8BA4\u8BC1\u7684\u6559\u5E08\u590D\u5236\u8BE5\u5B9E\u8BAD\uFF09")))),!((((de=ve.detail)===null||de===void 0?void 0:de.shixun_status)>1||((xe=ve.detail)===null||xe===void 0?void 0:xe.public)===2)&&((Oe=ve.setting)===null||Oe===void 0||((ce=Oe.shixun)===null||ce===void 0)?void 0:ce.use_scope)===0&&((be=ve.detail)===null||be===void 0?void 0:be.identity)>2)&&P.a.createElement("div",{className:z.a.labelWrap},P.a.createElement("label",{className:z.a.label},"\u516C\u5F00\u7A0B\u5EA6:"),P.a.createElement("div",{className:z.a.labelContent},P.a.createElement(f.a.Group,{value:Te,onChange:function(at){return ke(at.target.value)},disabled:!st},P.a.createElement(f.a,{className:z.a.radio,value:0},P.a.createElement("span",null,"\u5BF9\u6240\u6709\u5355\u4F4D\u516C\u5F00"),P.a.createElement("span",{className:z.a.color999},"\uFF08\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),P.a.createElement(f.a,{className:z.a.radio,value:1},P.a.createElement("span",null,"\u5BF9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"),P.a.createElement("span",{className:z.a.color999},"\uFF08\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u4EC5\u5BF9\u4E0B\u65B9\u6307\u5B9A\u5355\u4F4D\u7684\u7528\u6237\u53EF\u89C1\uFF09"))),Te===1&&P.a.createElement(P.a.Fragment,null,P.a.createElement("div",{className:"mt10"},P.a.createElement(x.a,{showSearch:!0,className:z.a.selectSchool,placeholder:"\u8BF7\u8F93\u5165\u5E76\u9009\u62E9\u5355\u4F4D\u540D\u79F0",value:ht,onChange:function(at){_t(at),Ot(at)},disabled:!st,onSelect:Kt,options:Je==null?void 0:Je.map(function(Be){return{value:Be}})}),P.a.createElement("span",{className:z.a.color999},"\uFF08\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u4EC5\u5BF9\u4E0B\u65B9\u6307\u5B9A\u5355\u4F4D\u7684\u7528\u6237\u53EF\u89C1\uFF09")),P.a.createElement("div",{className:"mt10"},gt==null?void 0:gt.map(function(Be){return st?P.a.createElement(b.a,{count:"x",className:"mr20 current",onClick:function(){return Et(gt.filter(function(it){return it!==Be}))}},P.a.createElement(u.a,{type:"primary",ghost:!0},Be)):P.a.createElement(u.a,{type:"primary",ghost:!0,className:"mr20"},Be)}))))),P.a.createElement("div",{className:z.a.labelWrap},P.a.createElement("label",{className:z.a.label},"\u5F00\u542F\u65F6\u95F4:"),P.a.createElement("div",{className:z.a.labelContent},P.a.createElement("div",null,P.a.createElement(d.a,{checked:Ge,onChange:function(at){return Ee(at.target.checked)},disabled:!st}),P.a.createElement("span",{className:"".concat(z.a.color999," ml10")},"\uFF08\u9009\u4E2D\u5219\u5B66\u5458\u5728\u6307\u5B9A\u7684\u5F00\u542F\u65F6\u95F4\u540E\uFF0C\u624D\u80FD\u5F00\u542F\u5B66\u4E60\uFF1B\u4E0D\u9009\u4E2D\u5219\u5B66\u5458\u5728\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u80FD\u7ACB\u5373\u5F00\u542F\u5B66\u4E60\uFF09")),Ge&&P.a.createElement(g.a,{className:"".concat(z.a.dataPicker," mt10"),format:W,locale:C.a,disabled:!st,placeholder:"\u8BF7\u8F93\u5165\u5F00\u542F\u65F6\u95F4",showToday:!1,disabledDate:function(at){return at&&at<D()().endOf("day").subtract(1,"days")},showTime:{minuteStep:30},value:We&&D()(We,W),onChange:function(at,it){return Ke(F(it))}}))),P.a.createElement(m.a,{okText:"\u4FDD\u5B58",hasOkBtn:st,loading:se.effects["shixunsDetail/updatePermissionSetting"],onCancel:function(){return R.d.push("/shixuns/".concat(ie.current,"/challenges"))},onOk:bt}))};Y.a=Object(R.a)(function(B){var k=B.shixunsDetail,G=B.loading,ne=B.globalSetting,fe=B.user;return{shixunsDetail:k,globalSetting:ne,user:fe,loading:G}})(K)},sR1s:function(M,Y,o){"use strict";o.d(Y,"b",function(){return b}),o.d(Y,"a",function(){return y}),o.d(Y,"c",function(){return x}),o.d(Y,"d",function(){return w});var L=o("U8pU"),g="RC_TABLE_KEY";function A(f){return f==null?[]:Array.isArray(f)?f:[f]}function b(f,_){if(!_&&typeof _!="number")return f;for(var d=A(_),r=f,u=0;u<d.length;u+=1){if(!r)return null;var t=d[u];r=r[t]}return r}function y(f){var _=[],d={};return f.forEach(function(r){for(var u=r||{},t=u.key,a=u.dataIndex,n=t||A(a).join("-")||g;d[n];)n="".concat(n,"_next");d[n]=!0,_.push(n)}),_}function x(){var f={};function _(t,a){a&&Object.keys(a).forEach(function(n){var i=a[n];i&&Object(L.a)(i)==="object"?(t[n]=t[n]||{},_(t[n],i)):t[n]=i})}for(var d=arguments.length,r=new Array(d),u=0;u<d;u++)r[u]=arguments[u];return r.forEach(function(t){_(f,t)}),f}function w(f){return f!=null}},sboe:function(M,Y,o){"use strict";o.d(Y,"a",function(){return A});var L=o("q1tI"),g=o.n(L),A=L.createContext(null)},sckv:function(M,Y,o){M.exports={wrap:"wrap___3kep6",colorBlue:"colorBlue___3r5Hq",repeatedName:"repeatedName___vESvE"}},siWv:function(M,Y,o){M.exports={flex_box_center:"flex_box_center___3IH6S",flex_space_between:"flex_space_between___3AU-S",flex_box_vertical_center:"flex_box_vertical_center___1ykIO",flex_box_center_end:"flex_box_center_end___1aIQB",flex_box_column:"flex_box_column___2A_ra",btn:"btn___23gjd"}},t23M:function(M,Y,o){"use strict";var L=o("VTBJ"),g=o("1OyB"),A=o("vuIU"),b=o("Ji7U"),y=o("LK+K"),x=o("q1tI"),w=o.n(x),f=o("m+aA"),_=o("Zm9Q"),d=o("Kwbf"),r=o("c+Xe"),u=o("bdgK"),t="rc-observer-key",a=function(n){Object(b.a)(h,n);var i=Object(y.a)(h);function h(){var l;return Object(g.a)(this,h),l=i.apply(this,arguments),l.resizeObserver=null,l.childNode=null,l.currentElement=null,l.state={width:0,height:0,offsetHeight:0,offsetWidth:0},l.onResize=function(s){var p=l.props.onResize,O=s[0].target,S=O.getBoundingClientRect(),v=S.width,P=S.height,R=O.offsetWidth,E=O.offsetHeight,C=Math.floor(v),m=Math.floor(P);if(l.state.width!==C||l.state.height!==m||l.state.offsetWidth!==R||l.state.offsetHeight!==E){var T={width:C,height:m,offsetWidth:R,offsetHeight:E};l.setState(T),p&&Promise.resolve().then(function(){p(Object(L.a)(Object(L.a)({},T),{},{offsetWidth:R,offsetHeight:E}))})}},l.setChildNode=function(s){l.childNode=s},l}return Object(A.a)(h,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var s=this.props.disabled;if(s){this.destroyObserver();return}var p=Object(f.a)(this.childNode||this),O=p!==this.currentElement;O&&(this.destroyObserver(),this.currentElement=p),!this.resizeObserver&&p&&(this.resizeObserver=new u.default(this.onResize),this.resizeObserver.observe(p))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var s=this.props.children,p=Object(_.a)(s);if(p.length>1)Object(d.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(p.length===0)return Object(d.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var O=p[0];if(x.isValidElement(O)&&Object(r.c)(O)){var S=O.ref;p[0]=x.cloneElement(O,{ref:Object(r.a)(S,this.setChildNode)})}return p.length===1?p[0]:p.map(function(v,P){return!x.isValidElement(v)||"key"in v&&v.key!==null?v:x.cloneElement(v,{key:"".concat(t,"-").concat(P)})})}}]),h}(x.Component);a.displayName="ResizeObserver",Y.a=a},tWlo:function(M,Y){M.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkVCNENBMTM0OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkVCNENBMTM1OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RUI0Q0ExMzI4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RUI0Q0ExMzM4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7p3KzkAAAFvElEQVR42sRae0ybVRQ/peVRaFce8pwgj1Je5TFsEHGbMAkzmqiJyba4hYh/LJlxiRr9Z0aNGv8xvhKTGckM2zKWmGEgU7MsPnCZIrKBjMcKY9BCBMqjjEcLtFDwHPZVC12h934f8yS/P6Dfud/5nXvvueec+8neOPEuSCAxiDJEMSITkYKIRoQJv9sREwgTogfRjGhEjIt9sUKEbhSiEvEC4mGEbJNngxGRiAzEk8L/VhGtiPOIswgrjxEBHDrxiE8Qg4hPEYYtjPclMkGXxhhCfIFI2E4CNFtvIm4hXvdYHlJIKOIVRK/wjkCpCaQjWhAfIVSwfaIS3kHvypaKwLOI64hdcP+kAPEn4jmxBI4ivkXsgPsvNBt1gg1cBI4hvkLI4f8TuWDDMdYw+owQFdh3Y6gSCnL1oNOmQnxcHAQHB8HCwiLMzM7C8KgFjD23oN9khtXVVZZhyZZhxEV/CGQhalk9r1AoYO9jxfBokQGCgoK8SBHi42LBsCsfJq1TcOnHn+F2v4llJsimIoRx3Q8le0o9/6bwdRmRxGJ8ZEQ4vHjkEORkZYBcLvdrlvL0OeBwOuDv4RF/X0Ne2Y34GrHiaw+8ishnMT4tNRmOVlVCTPQDzKfY/vJ9kJWpY1Ej217ztYnpFHyH6UjGJXH4wPOgVIZw7VAi8XRFOSjkTKv1bc8T25PACdZDan95mV9LZjNRq1Wg02lZw+tbGwnQ/L/EMooyJASSkxIliZUp7ONUCTb/S+AI2cTqOZlMJgmBcI2GVUUp2LyOAJMwxvHN04EAnqQYDrsJUDFSyKrtdC5JRmDR4eBRoxokgQjs48nn5+fnJSNgt3ONRTaXEYFHeLSXlpd5Peclk1Yrr6ohQKhhuWR6ekYSAiOWMV7VDCKg5Z0/uwTLaNnlAssYd22fTgRieTRz9dmQlpIsmgCdwuWle3nVY4mAmkczLCxUsk0cEaHhVVUH8GqOT0xKRmB6ZpZX1UkE5ng0zeYhsNntkhBgqAs2yhwR4AoBrpUVaO/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=="},uGsb:function(M,Y,o){(function(L,g,A){M.exports=Y=g(o("Ib8C"),o("MlIO"),o("1uat"))})(this,function(L){return function(){var g=L,A=g.x64,b=A.Word,y=A.WordArray,x=g.algo,w=x.SHA512,f=x.SHA384=w.extend({_doReset:function(){this._hash=new y.init([new b.init(3418070365,3238371032),new b.init(1654270250,914150663),new b.init(2438529370,812702999),new b.init(355462360,4144912697),new b.init(1731405415,4290775857),new b.init(2394180231,1750603025),new b.init(3675008525,1694076839),new b.init(1203062813,3204075428)])},_doFinalize:function(){var _=w._doFinalize.call(this);return _.sigBytes-=16,_}});g.SHA384=w._createHelper(f),g.HmacSHA384=w._createHmacHelper(f)}(),L.SHA384})},uGxW:function(M,Y,o){(function(L,g,A){M.exports=Y=g(o("Ib8C"),o("OLod"))})(this,function(L){return L.pad.NoPadding={pad:function(){},unpad:function(){}},L.pad.NoPadding})},uK0f:function(M,Y,o){(function(L,g){M.exports=g()})(this,function(){"use strict";function L(g,A,b){b=b||{},b.childrenKeyName=b.childrenKeyName||"children";var y=g||[],x=[],w=0;do{var f=y.filter(function(_){return A(_,w)})[0];if(!f)break;x.push(f),y=f[b.childrenKeyName]||[],w+=1}while(y.length>0);return x}return L})},ulZh:function(M,Y,o){typeof window!="undefined"&&function(g,A){M.exports=A()}(this,function(){return function(L){var g={};function A(b){if(g[b])return g[b].exports;var y=g[b]={i:b,l:!1,exports:{}};return L[b].call(y.exports,y,y.exports,A),y.l=!0,y.exports}return A.m=L,A.c=g,A.d=function(b,y,x){A.o(b,y)||Object.defineProperty(b,y,{enumerable:!0,get:x})},A.r=function(b){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(b,"__esModule",{value:!0})},A.t=function(b,y){if(y&1&&(b=A(b)),y&8)return b;if(y&4&&typeof b=="object"&&b&&b.__esModule)return b;var x=Object.create(null);if(A.r(x),Object.defineProperty(x,"default",{enumerable:!0,value:b}),y&2&&typeof b!="string")for(var w in b)A.d(x,w,function(f){return b[f]}.bind(null,w));return x},A.n=function(b){var y=b&&b.__esModule?function(){return b.default}:function(){return b};return A.d(y,"a",y),y},A.o=function(b,y){return Object.prototype.hasOwnProperty.call(b,y)},A.p="/dist/",A(A.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(L,g,A){"use strict";var b=Object.prototype.hasOwnProperty,y="~";function x(){}Object.create&&(x.prototype=Object.create(null),new x().__proto__||(y=!1));function w(r,u,t){this.fn=r,this.context=u,this.once=t||!1}function f(r,u,t,a,n){if(typeof t!="function")throw new TypeError("The listener must be a function");var i=new w(t,a||r,n),h=y?y+u:u;return r._events[h]?r._events[h].fn?r._events[h]=[r._events[h],i]:r._events[h].push(i):(r._events[h]=i,r._eventsCount++),r}function _(r,u){--r._eventsCount===0?r._events=new x:delete r._events[u]}function d(){this._events=new x,this._eventsCount=0}d.prototype.eventNames=function(){var u=[],t,a;if(this._eventsCount===0)return u;for(a in t=this._events)b.call(t,a)&&u.push(y?a.slice(1):a);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(t)):u},d.prototype.listeners=function(u){var t=y?y+u:u,a=this._events[t];if(!a)return[];if(a.fn)return[a.fn];for(var n=0,i=a.length,h=new Array(i);n<i;n++)h[n]=a[n].fn;return h},d.prototype.listenerCount=function(u){var t=y?y+u:u,a=this._events[t];return a?a.fn?1:a.length:0},d.prototype.emit=function(u,t,a,n,i,h){var l=y?y+u:u;if(!this._events[l])return!1;var s=this._events[l],p=arguments.length,O,S;if(s.fn){s.once&&this.removeListener(u,s.fn,void 0,!0);switch(p){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,t),!0;case 3:return s.fn.call(s.context,t,a),!0;case 4:return s.fn.call(s.context,t,a,n),!0;case 5:return s.fn.call(s.context,t,a,n,i),!0;case 6:return s.fn.call(s.context,t,a,n,i,h),!0}for(S=1,O=new Array(p-1);S<p;S++)O[S-1]=arguments[S];s.fn.apply(s.context,O)}else{var v=s.length,P;for(S=0;S<v;S++){s[S].once&&this.removeListener(u,s[S].fn,void 0,!0);switch(p){case 1:s[S].fn.call(s[S].context);break;case 2:s[S].fn.call(s[S].context,t);break;case 3:s[S].fn.call(s[S].context,t,a);break;case 4:s[S].fn.call(s[S].context,t,a,n);break;default:if(!O)for(P=1,O=new Array(p-1);P<p;P++)O[P-1]=arguments[P];s[S].fn.apply(s[S].context,O)}}}return!0},d.prototype.on=function(u,t,a){return f(this,u,t,a,!1)},d.prototype.once=function(u,t,a){return f(this,u,t,a,!0)},d.prototype.removeListener=function(u,t,a,n){var i=y?y+u:u;if(!this._events[i])return this;if(!t)return _(this,i),this;var h=this._events[i];if(h.fn)h.fn===t&&(!n||h.once)&&(!a||h.context===a)&&_(this,i);else{for(var l=0,s=[],p=h.length;l<p;l++)(h[l].fn!==t||n&&!h[l].once||a&&h[l].context!==a)&&s.push(h[l]);s.length?this._events[i]=s.length===1?s[0]:s:_(this,i)}return this},d.prototype.removeAllListeners=function(u){var t;return u?(t=y?y+u:u,this._events[t]&&_(this,t)):(this._events=new x,this._eventsCount=0),this},d.prototype.off=d.prototype.removeListener,d.prototype.addListener=d.prototype.on,d.prefixed=y,d.EventEmitter=d,L.exports=d},"./node_modules/url-toolkit/src/url-toolkit.js":function(L,g,A){(function(b){var y=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/,x=/^([^\/?#]*)([^]*)$/,w=/(?:\/|^)\.(?=\/)/g,f=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,_={buildAbsoluteURL:function(d,r,u){if(u=u||{},d=d.trim(),r=r.trim(),!r){if(!u.alwaysNormalize)return d;var t=_.parseURL(d);if(!t)throw new Error("Error trying to parse base URL.");return t.path=_.normalizePath(t.path),_.buildURLFromParts(t)}var a=_.parseURL(r);if(!a)throw new Error("Error trying to parse relative URL.");if(a.scheme)return u.alwaysNormalize?(a.path=_.normalizePath(a.path),_.buildURLFromParts(a)):r;var n=_.parseURL(d);if(!n)throw new Error("Error trying to parse base URL.");if(!n.netLoc&&n.path&&n.path[0]!=="/"){var i=x.exec(n.path);n.netLoc=i[1],n.path=i[2]}n.netLoc&&!n.path&&(n.path="/");var h={scheme:n.scheme,netLoc:a.netLoc,path:null,params:a.params,query:a.query,fragment:a.fragment};if(!a.netLoc&&(h.netLoc=n.netLoc,a.path[0]!=="/"))if(!a.path)h.path=n.path,a.params||(h.params=n.params,a.query||(h.query=n.query));else{var l=n.path,s=l.substring(0,l.lastIndexOf("/")+1)+a.path;h.path=_.normalizePath(s)}return h.path===null&&(h.path=u.alwaysNormalize?_.normalizePath(a.path):a.path),_.buildURLFromParts(h)},parseURL:function(d){var r=y.exec(d);return r?{scheme:r[1]||"",netLoc:r[2]||"",path:r[3]||"",params:r[4]||"",query:r[5]||"",fragment:r[6]||""}:null},normalizePath:function(d){for(d=d.split("").reverse().join("").replace(w,"");d.length!==(d=d.replace(f,"")).length;);return d.split("").reverse().join("")},buildURLFromParts:function(d){return d.scheme+d.netLoc+d.path+d.params+d.query+d.fragment}};L.exports=_})(this)},"./node_modules/webworkify-webpack/index.js":function(L,g,A){function b(u){var t={};function a(i){if(t[i])return t[i].exports;var h=t[i]={i,l:!1,exports:{}};return u[i].call(h.exports,h,h.exports,a),h.l=!0,h.exports}a.m=u,a.c=t,a.i=function(i){return i},a.d=function(i,h,l){a.o(i,h)||Object.defineProperty(i,h,{configurable:!1,enumerable:!0,get:l})},a.r=function(i){Object.defineProperty(i,"__esModule",{value:!0})},a.n=function(i){var h=i&&i.__esModule?function(){return i.default}:function(){return i};return a.d(h,"a",h),h},a.o=function(i,h){return Object.prototype.hasOwnProperty.call(i,h)},a.p="/",a.oe=function(i){throw console.error(i),i};var n=a(a.s=ENTRY_MODULE);return n.default||n}var y="[\\.|\\-|\\+|\\w|/|@]+",x="\\(\\s*(/\\*.*?\\*/)?\\s*.*?("+y+").*?\\)";function w(u){return(u+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function f(u){return!isNaN(1*u)}function _(u,t,a){var n={};n[a]=[];var i=t.toString(),h=i.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!h)return n;for(var l=h[1],s=new RegExp("(\\\\n|\\W)"+w(l)+x,"g"),p;p=s.exec(i);){if(p[3]==="dll-reference")continue;n[a].push(p[3])}for(s=new RegExp("\\("+w(l)+'\\("(dll-reference\\s('+y+'))"\\)\\)'+x,"g");p=s.exec(i);)u[p[2]]||(n[a].push(p[1]),u[p[2]]=A(p[1]).m),n[p[2]]=n[p[2]]||[],n[p[2]].push(p[4]);for(var O=Object.keys(n),S=0;S<O.length;S++)for(var v=0;v<n[O[S]].length;v++)f(n[O[S]][v])&&(n[O[S]][v]=1*n[O[S]][v]);return n}function d(u){var t=Object.keys(u);return t.reduce(function(a,n){return a||u[n].length>0},!1)}function r(u,t){for(var a={main:[t]},n={main:[]},i={main:{}};d(a);)for(var h=Object.keys(a),l=0;l<h.length;l++){var s=h[l],p=a[s],O=p.pop();if(i[s]=i[s]||{},i[s][O]||!u[s][O])continue;i[s][O]=!0,n[s]=n[s]||[],n[s].push(O);for(var S=_(u,u[s][O],s),v=Object.keys(S),P=0;P<v.length;P++)a[v[P]]=a[v[P]]||[],a[v[P]]=a[v[P]].concat(S[v[P]])}return n}L.exports=function(u,t){t=t||{};var a={main:A.m},n=t.all?{main:Object.keys(a.main)}:r(a,u),i="";Object.keys(n).filter(function(O){return O!=="main"}).forEach(function(O){for(var S=0;n[O][S];)S++;n[O].push(S),a[O][S]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",i=i+"var "+O+" = ("+b.toString().replace("ENTRY_MODULE",JSON.stringify(S))+")({"+n[O].map(function(v){return""+JSON.stringify(v)+": "+a[O][v].toString()}).join(",")+`});
`}),i=i+"new (("+b.toString().replace("ENTRY_MODULE",JSON.stringify(u))+")({"+n.main.map(function(O){return""+JSON.stringify(O)+": "+a.main[O].toString()}).join(",")+"}))(self);";var h=new window.Blob([i],{type:"text/javascript"});if(t.bare)return h;var l=window.URL||window.webkitURL||window.mozURL||window.msURL,s=l.createObjectURL(h),p=new window.Worker(s);return p.objectURL=s,p}},"./src/config.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"hlsDefaultConfig",function(){return P}),A.d(g,"mergeConfig",function(){return E}),A.d(g,"enableStreamingMode",function(){return C});var b=A("./src/controller/abr-controller.ts"),y=A("./src/controller/audio-stream-controller.ts"),x=A("./src/controller/audio-track-controller.ts"),w=A("./src/controller/subtitle-stream-controller.ts"),f=A("./src/controller/subtitle-track-controller.ts"),_=A("./src/controller/buffer-controller.ts"),d=A("./src/controller/timeline-controller.ts"),r=A("./src/controller/cap-level-controller.ts"),u=A("./src/controller/fps-controller.ts"),t=A("./src/controller/eme-controller.ts"),a=A("./src/controller/cmcd-controller.ts"),n=A("./src/utils/xhr-loader.ts"),i=A("./src/utils/fetch-loader.ts"),h=A("./src/utils/cues.ts"),l=A("./src/utils/mediakeys-helper.ts"),s=A("./src/utils/logger.ts");function p(){return p=Object.assign||function(m){for(var T=1;T<arguments.length;T++){var I=arguments[T];for(var D in I)Object.prototype.hasOwnProperty.call(I,D)&&(m[D]=I[D])}return m},p.apply(this,arguments)}function O(m,T){var I=Object.keys(m);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(m);T&&(D=D.filter(function(N){return Object.getOwnPropertyDescriptor(m,N).enumerable})),I.push.apply(I,D)}return I}function S(m){for(var T=1;T<arguments.length;T++){var I=arguments[T]!=null?arguments[T]:{};T%2?O(Object(I),!0).forEach(function(D){v(m,D,I[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(I)):O(Object(I)).forEach(function(D){Object.defineProperty(m,D,Object.getOwnPropertyDescriptor(I,D))})}return m}function v(m,T,I){return T in m?Object.defineProperty(m,T,{value:I,enumerable:!0,configurable:!0,writable:!0}):m[T]=I,m}var P=S(S({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:Infinity,maxBufferSize:60*1e3*1e3,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:Infinity,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,enableSoftwareAES:!0,manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,startLevel:void 0,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:n.default,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:b.default,bufferController:_.default,capLevelController:r.default,fpsController:u.default,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystemOptions:{},requestMediaKeySystemAccessFunc:l.requestMediaKeySystemAccess,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0},R()),{},{subtitleStreamController:w.SubtitleStreamController,subtitleTrackController:f.default,timelineController:d.TimelineController,audioStreamController:y.default,audioTrackController:x.default,emeController:t.default,cmcdController:a.default});function R(){return{cueHandler:h.default,enableCEA708Captions:!0,enableWebVTT:!0,enableIMSC1:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function E(m,T){if((T.liveSyncDurationCount||T.liveMaxLatencyDurationCount)&&(T.liveSyncDuration||T.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(T.liveMaxLatencyDurationCount!==void 0&&(T.liveSyncDurationCount===void 0||T.liveMaxLatencyDurationCount<=T.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(T.liveMaxLatencyDuration!==void 0&&(T.liveSyncDuration===void 0||T.liveMaxLatencyDuration<=T.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');return p({},m,T)}function C(m){var T=m.loader;if(T!==i.default&&T!==n.default)s.logger.log("[config]: Custom loader detected, cannot enable progressive streaming"),m.progressive=!1;else{var I=Object(i.fetchSupported)();I&&(m.loader=i.default,m.progressive=!0,m.enableSoftwareAES=!0,s.logger.log("[config]: Progressive streaming enabled, using FetchLoader"))}}},"./src/controller/abr-controller.ts":function(L,g,A){"use strict";A.r(g);var b=A("./src/polyfills/number.ts"),y=A("./src/utils/ewma-bandwidth-estimator.ts"),x=A("./src/events.ts"),w=A("./src/utils/buffer-helper.ts"),f=A("./src/errors.ts"),_=A("./src/types/loader.ts"),d=A("./src/utils/logger.ts");function r(a,n){for(var i=0;i<n.length;i++){var h=n[i];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(a,h.key,h)}}function u(a,n,i){return n&&r(a.prototype,n),i&&r(a,i),a}var t=function(){function a(i){this.hls=void 0,this.lastLoadedFragLevel=0,this._nextAutoLevel=-1,this.timer=void 0,this.onCheck=this._abandonRulesCheck.bind(this),this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.bwEstimator=void 0,this.hls=i;var h=i.config;this.bwEstimator=new y.default(h.abrEwmaSlowVoD,h.abrEwmaFastVoD,h.abrEwmaDefaultEstimate),this.registerListeners()}var n=a.prototype;return n.registerListeners=function(){var h=this.hls;h.on(x.Events.FRAG_LOADING,this.onFragLoading,this),h.on(x.Events.FRAG_LOADED,this.onFragLoaded,this),h.on(x.Events.FRAG_BUFFERED,this.onFragBuffered,this),h.on(x.Events.LEVEL_LOADED,this.onLevelLoaded,this),h.on(x.Events.ERROR,this.onError,this)},n.unregisterListeners=function(){var h=this.hls;h.off(x.Events.FRAG_LOADING,this.onFragLoading,this),h.off(x.Events.FRAG_LOADED,this.onFragLoaded,this),h.off(x.Events.FRAG_BUFFERED,this.onFragBuffered,this),h.off(x.Events.LEVEL_LOADED,this.onLevelLoaded,this),h.off(x.Events.ERROR,this.onError,this)},n.destroy=function(){this.unregisterListeners(),this.clearTimer(),this.hls=this.onCheck=null,this.fragCurrent=this.partCurrent=null},n.onFragLoading=function(h,l){var s=l.frag;if(s.type===_.PlaylistLevelType.MAIN&&!this.timer){var p;this.fragCurrent=s,this.partCurrent=(p=l.part)!=null?p:null,this.timer=self.setInterval(this.onCheck,100)}},n.onLevelLoaded=function(h,l){var s=this.hls.config;l.details.live?this.bwEstimator.update(s.abrEwmaSlowLive,s.abrEwmaFastLive):this.bwEstimator.update(s.abrEwmaSlowVoD,s.abrEwmaFastVoD)},n._abandonRulesCheck=function(){var h=this.fragCurrent,l=this.partCurrent,s=this.hls,p=s.autoLevelEnabled,O=s.config,S=s.media;if(!h||!S)return;var v=l?l.stats:h.stats,P=l?l.duration:h.duration;if(v.aborted){d.logger.warn("frag loader destroy or aborted, disarm abandonRules"),this.clearTimer(),this._nextAutoLevel=-1;return}if(!p||S.paused||!S.playbackRate||!S.readyState)return;var R=performance.now()-v.loading.start,E=Math.abs(S.playbackRate);if(R<=500*P/E)return;var C=s.levels,m=s.minAutoLevel,T=C[h.level],I=v.total||Math.max(v.loaded,Math.round(P*T.maxBitrate/8)),D=Math.max(1,v.bwEstimate?v.bwEstimate/8:v.loaded*1e3/R),N=(I-v.loaded)/D,z=S.currentTime,F=(w.BufferHelper.bufferInfo(S,z,O.maxBufferHole).end-z)/E;if(F>=2*P/E||N<=F)return;var W=Number.POSITIVE_INFINITY,K;for(K=h.level-1;K>m;K--){var B=C[K].maxBitrate;if(W=P*B/(8*.8*D),W<F)break}if(W>=N)return;var k=this.bwEstimator.getEstimate();d.logger.warn("Fragment "+h.sn+(l?" part "+l.index:"")+" of level "+h.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+K+`
Current BW estimate: `+(Object(b.isFiniteNumber)(k)?(k/1024).toFixed(3):"Unknown")+` Kb/s
Estimated load time for current fragment: `+N.toFixed(3)+` s
Estimated load time for the next fragment: `+W.toFixed(3)+` s
Time to underbuffer: `+F.toFixed(3)+" s"),s.nextLoadLevel=K,this.bwEstimator.sample(R,v.loaded),this.clearTimer(),h.loader&&(this.fragCurrent=this.partCurrent=null,h.loader.abort()),s.trigger(x.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:h,part:l,stats:v})},n.onFragLoaded=function(h,l){var s=l.frag,p=l.part;if(s.type===_.PlaylistLevelType.MAIN&&Object(b.isFiniteNumber)(s.sn)){var O=p?p.stats:s.stats,S=p?p.duration:s.duration;if(this.clearTimer(),this.lastLoadedFragLevel=s.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var v=this.hls.levels[s.level],P=(v.loaded?v.loaded.bytes:0)+O.loaded,R=(v.loaded?v.loaded.duration:0)+S;v.loaded={bytes:P,duration:R},v.realBitrate=Math.round(8*P/R)}if(s.bitrateTest){var E={stats:O,frag:s,part:p,id:s.type};this.onFragBuffered(x.Events.FRAG_BUFFERED,E),s.bitrateTest=!1}}},n.onFragBuffered=function(h,l){var s=l.frag,p=l.part,O=p?p.stats:s.stats;if(O.aborted)return;if(s.type!==_.PlaylistLevelType.MAIN||s.sn==="initSegment")return;var S=O.parsing.end-O.loading.start;this.bwEstimator.sample(S,O.loaded),O.bwEstimate=this.bwEstimator.getEstimate(),s.bitrateTest?this.bitrateTestDelay=S/1e3:this.bitrateTestDelay=0},n.onError=function(h,l){switch(l.details){case f.ErrorDetails.FRAG_LOAD_ERROR:case f.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},n.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},n.getNextABRAutoLevel=function(){var h=this.fragCurrent,l=this.partCurrent,s=this.hls,p=s.maxAutoLevel,O=s.config,S=s.minAutoLevel,v=s.media,P=l?l.duration:h?h.duration:0,R=v?v.currentTime:0,E=v&&v.playbackRate!==0?Math.abs(v.playbackRate):1,C=this.bwEstimator?this.bwEstimator.getEstimate():O.abrEwmaDefaultEstimate,m=(w.BufferHelper.bufferInfo(v,R,O.maxBufferHole).end-R)/E,T=this.findBestLevel(C,S,p,m,O.abrBandWidthFactor,O.abrBandWidthUpFactor);if(T>=0)return T;d.logger.trace((m?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var I=P?Math.min(P,O.maxStarvationDelay):O.maxStarvationDelay,D=O.abrBandWidthFactor,N=O.abrBandWidthUpFactor;if(!m){var z=this.bitrateTestDelay;if(z){var F=P?Math.min(P,O.maxLoadingDelay):O.maxLoadingDelay;I=F-z,d.logger.trace("bitrate test took "+Math.round(1e3*z)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*I)+" ms"),D=N=1}}return T=this.findBestLevel(C,S,p,m+I,D,N),Math.max(T,0)},n.findBestLevel=function(h,l,s,p,O,S){for(var v,P=this.fragCurrent,R=this.partCurrent,E=this.lastLoadedFragLevel,C=this.hls.levels,m=C[E],T=!!(m!=null&&(v=m.details)!==null&&v!==void 0&&v.live),I=m==null?void 0:m.codecSet,D=R?R.duration:P?P.duration:0,N=s;N>=l;N--){var z=C[N];if(!z||I&&z.codecSet!==I)continue;var F=z.details,W=(R?F==null?void 0:F.partTarget:F==null?void 0:F.averagetargetduration)||D,K=void 0;N<=E?K=O*h:K=S*h;var B=C[N].maxBitrate,k=B*W/K;if(d.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+N+"/"+Math.round(K)+"/"+B+"/"+W+"/"+p+"/"+k),K>B&&(!k||T&&!this.bitrateTestDelay||k<p))return N}return-1},u(a,[{key:"nextAutoLevel",get:function(){var h=this._nextAutoLevel,l=this.bwEstimator;if(h!==-1&&(!l||!l.canEstimate()))return h;var s=this.getNextABRAutoLevel();return h!==-1&&(s=Math.min(h,s)),s},set:function(h){this._nextAutoLevel=h}}]),a}();g.default=t},"./src/controller/audio-stream-controller.ts":function(L,g,A){"use strict";A.r(g);var b=A("./src/polyfills/number.ts"),y=A("./src/controller/base-stream-controller.ts"),x=A("./src/events.ts"),w=A("./src/utils/buffer-helper.ts"),f=A("./src/controller/fragment-tracker.ts"),_=A("./src/types/level.ts"),d=A("./src/types/loader.ts"),r=A("./src/loader/fragment.ts"),u=A("./src/demux/chunk-cache.ts"),t=A("./src/demux/transmuxer-interface.ts"),a=A("./src/types/transmuxer.ts"),n=A("./src/controller/fragment-finders.ts"),i=A("./src/utils/discontinuities.ts"),h=A("./src/errors.ts"),l=A("./src/utils/logger.ts");function s(){return s=Object.assign||function(P){for(var R=1;R<arguments.length;R++){var E=arguments[R];for(var C in E)Object.prototype.hasOwnProperty.call(E,C)&&(P[C]=E[C])}return P},s.apply(this,arguments)}function p(P,R){P.prototype=Object.create(R.prototype),P.prototype.constructor=P,O(P,R)}function O(P,R){return O=Object.setPrototypeOf||function(C,m){return C.__proto__=m,C},O(P,R)}var S=100,v=function(P){p(R,P);function R(C,m){var T;return T=P.call(this,C,m,"[audio-stream-controller]")||this,T.videoBuffer=null,T.videoTrackCC=-1,T.waitingVideoCC=-1,T.audioSwitch=!1,T.trackId=-1,T.waitingData=null,T.mainDetails=null,T.bufferFlushed=!1,T._registerListeners(),T}var E=R.prototype;return E.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},E._registerListeners=function(){var m=this.hls;m.on(x.Events.MEDIA_ATTACHED,this.onMediaAttached,this),m.on(x.Events.MEDIA_DETACHING,this.onMediaDetaching,this),m.on(x.Events.MANIFEST_LOADING,this.onManifestLoading,this),m.on(x.Events.LEVEL_LOADED,this.onLevelLoaded,this),m.on(x.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),m.on(x.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),m.on(x.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),m.on(x.Events.ERROR,this.onError,this),m.on(x.Events.BUFFER_RESET,this.onBufferReset,this),m.on(x.Events.BUFFER_CREATED,this.onBufferCreated,this),m.on(x.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),m.on(x.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),m.on(x.Events.FRAG_BUFFERED,this.onFragBuffered,this)},E._unregisterListeners=function(){var m=this.hls;m.off(x.Events.MEDIA_ATTACHED,this.onMediaAttached,this),m.off(x.Events.MEDIA_DETACHING,this.onMediaDetaching,this),m.off(x.Events.MANIFEST_LOADING,this.onManifestLoading,this),m.off(x.Events.LEVEL_LOADED,this.onLevelLoaded,this),m.off(x.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),m.off(x.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),m.off(x.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),m.off(x.Events.ERROR,this.onError,this),m.off(x.Events.BUFFER_RESET,this.onBufferReset,this),m.off(x.Events.BUFFER_CREATED,this.onBufferCreated,this),m.off(x.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),m.off(x.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),m.off(x.Events.FRAG_BUFFERED,this.onFragBuffered,this)},E.onInitPtsFound=function(m,T){var I=T.frag,D=T.id,N=T.initPTS;if(D==="main"){var z=I.cc;this.initPTS[I.cc]=N,this.log("InitPTS for cc: "+z+" found from main: "+N),this.videoTrackCC=z,this.state===y.State.WAITING_INIT_PTS&&this.tick()}},E.startLoad=function(m){if(!this.levels){this.startPosition=m,this.state=y.State.STOPPED;return}var T=this.lastCurrentTime;this.stopLoad(),this.setInterval(S),this.fragLoadError=0,T>0&&m===-1?(this.log("Override startPosition with lastCurrentTime @"+T.toFixed(3)),this.state=y.State.IDLE):(this.loadedmetadata=!1,this.state=y.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=m,this.tick()},E.doTick=function(){switch(this.state){case y.State.IDLE:this.doTickIdle();break;case y.State.WAITING_TRACK:{var m,T=this.levels,I=this.trackId,D=T==null||((m=T[I])===null||m===void 0)?void 0:m.details;if(D){if(this.waitForCdnTuneIn(D))break;this.state=y.State.WAITING_INIT_PTS}break}case y.State.FRAG_LOADING_WAITING_RETRY:{var N,z=performance.now(),F=this.retryDate;(!F||z>=F||(N=this.media)!==null&&N!==void 0&&N.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=y.State.IDLE);break}case y.State.WAITING_INIT_PTS:{var W=this.waitingData;if(W){var K=W.frag,B=W.part,k=W.cache,G=W.complete;if(this.initPTS[K.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=y.State.FRAG_LOADING;var ne=k.flush(),fe={frag:K,part:B,payload:ne,networkDetails:null};this._handleFragmentLoadProgress(fe),G&&P.prototype._handleFragmentLoadComplete.call(this,fe)}else if(this.videoTrackCC!==this.waitingVideoCC)l.logger.log("Waiting fragment cc ("+K.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var de=this.getLoadPosition(),xe=w.BufferHelper.bufferInfo(this.mediaBuffer,de,this.config.maxBufferHole),Oe=Object(n.fragmentWithinToleranceTest)(xe.end,this.config.maxFragLookUpTolerance,K);Oe<0&&(l.logger.log("Waiting fragment cc ("+K.cc+") @ "+K.start+" cancelled because another fragment at "+xe.end+" is needed"),this.clearWaitingFragment())}}else this.state=y.State.IDLE}}this.onTickEnd()},E.clearWaitingFragment=function(){var m=this.waitingData;m&&(this.fragmentTracker.removeFragment(m.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=y.State.IDLE)},E.onTickEnd=function(){var m=this.media;if(!m||!m.readyState)return;var T=this.mediaBuffer?this.mediaBuffer:m,I=T.buffered;!this.loadedmetadata&&I.length&&(this.loadedmetadata=!0),this.lastCurrentTime=m.currentTime},E.doTickIdle=function(){var m,T,I=this.hls,D=this.levels,N=this.media,z=this.trackId,F=I.config;if(!D||!D[z])return;if(!N&&(this.startFragRequested||!F.startFragPrefetch))return;var W=D[z],K=W.details;if(!K||K.live&&this.levelLastLoaded!==z||this.waitForCdnTuneIn(K)){this.state=y.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,r.ElementaryStreamTypes.AUDIO,d.PlaylistLevelType.AUDIO));var B=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,d.PlaylistLevelType.AUDIO);if(B===null)return;var k=B.len,G=this.getMaxBufferLength(),ne=this.audioSwitch;if(k>=G&&!ne)return;if(!ne&&this._streamEnded(B,K)){I.trigger(x.Events.BUFFER_EOS,{type:"audio"}),this.state=y.State.ENDED;return}var fe=K.fragments,de=fe[0].start,xe=B.end;if(ne){var Oe=this.getLoadPosition();xe=Oe,K.PTSKnown&&Oe<de&&((B.end>de||B.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),N.currentTime=de+.05))}var ce=this.getNextFragment(xe,K);if(!ce){this.bufferFlushed=!0;return}((m=ce.decryptdata)===null||m===void 0?void 0:m.keyFormat)==="identity"&&!((T=ce.decryptdata)!==null&&T!==void 0&&T.key)?this.loadKey(ce,K):this.loadFragment(ce,K,xe)},E.getMaxBufferLength=function(){var m=P.prototype.getMaxBufferLength.call(this),T=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,d.PlaylistLevelType.MAIN);return T===null?m:Math.max(m,T.len)},E.onMediaDetaching=function(){this.videoBuffer=null,P.prototype.onMediaDetaching.call(this)},E.onAudioTracksUpdated=function(m,T){var I=T.audioTracks;this.resetTransmuxer(),this.levels=I.map(function(D){return new _.Level(D)})},E.onAudioTrackSwitching=function(m,T){var I=!!T.url;this.trackId=T.id;var D=this.fragCurrent;D!=null&&D.loader&&D.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),I?this.setInterval(S):this.resetTransmuxer(),I?(this.audioSwitch=!0,this.state=y.State.IDLE):this.state=y.State.STOPPED,this.tick()},E.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},E.onLevelLoaded=function(m,T){this.mainDetails=T.details},E.onAudioTrackLoaded=function(m,T){var I,D=this.levels,N=T.details,z=T.id;if(!D){this.warn("Audio tracks were reset while loading level "+z);return}this.log("Track "+z+" loaded ["+N.startSN+","+N.endSN+"],duration:"+N.totalduration);var F=D[z],W=0;if(N.live||(I=F.details)!==null&&I!==void 0&&I.live){var K=this.mainDetails;if(N.fragments[0]||(N.deltaUpdateFailed=!0),N.deltaUpdateFailed||!K)return;!F.details&&N.hasProgramDateTime&&K.hasProgramDateTime?(Object(i.alignMediaPlaylistByPDT)(N,K),W=N.fragments[0].start):W=this.alignPlaylists(N,F.details)}F.details=N,this.levelLastLoaded=z,!this.startFragRequested&&(this.mainDetails||!N.live)&&this.setStartPosition(F.details,W),this.state===y.State.WAITING_TRACK&&!this.waitForCdnTuneIn(N)&&(this.state=y.State.IDLE),this.tick()},E._handleFragmentLoadProgress=function(m){var T,I=m.frag,D=m.part,N=m.payload,z=this.config,F=this.trackId,W=this.levels;if(!W){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+I.sn+" of level "+I.level+" will not be buffered");return}var K=W[F];console.assert(K,"Audio track is defined on fragment load progress");var B=K.details;console.assert(B,"Audio track details are defined on fragment load progress");var k=z.defaultAudioCodec||K.audioCodec||"mp4a.40.2",G=this.transmuxer;G||(G=this.transmuxer=new t.default(this.hls,d.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var ne=this.initPTS[I.cc],fe=(T=I.initSegment)===null||T===void 0?void 0:T.data;if(ne!==void 0){var de=!1,xe=D?D.index:-1,Oe=xe!==-1,ce=new a.ChunkMetadata(I.level,I.sn,I.stats.chunkCount,N.byteLength,xe,Oe);G.push(N,fe,k,"",I,D,B.totalduration,de,ce,ne)}else{l.logger.log("Unknown video PTS for cc "+I.cc+", waiting for video PTS before demuxing audio frag "+I.sn+" of ["+B.startSN+" ,"+B.endSN+"],track "+F);var be=this.waitingData=this.waitingData||{frag:I,part:D,cache:new u.default,complete:!1},ve=be.cache;ve.push(new Uint8Array(N)),this.waitingVideoCC=this.videoTrackCC,this.state=y.State.WAITING_INIT_PTS}},E._handleFragmentLoadComplete=function(m){if(this.waitingData){this.waitingData.complete=!0;return}P.prototype._handleFragmentLoadComplete.call(this,m)},E.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},E.onBufferCreated=function(m,T){var I=T.tracks.audio;I&&(this.mediaBuffer=I.buffer),T.tracks.video&&(this.videoBuffer=T.tracks.video.buffer)},E.onFragBuffered=function(m,T){var I=T.frag,D=T.part;if(I.type!==d.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(I)){this.warn("Fragment "+I.sn+(D?" p: "+D.index:"")+" of level "+I.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}I.sn!=="initSegment"&&(this.fragPrevious=I,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(x.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(I,D)},E.onError=function(m,T){switch(T.details){case h.ErrorDetails.FRAG_LOAD_ERROR:case h.ErrorDetails.FRAG_LOAD_TIMEOUT:case h.ErrorDetails.KEY_LOAD_ERROR:case h.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(d.PlaylistLevelType.AUDIO,T);break;case h.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case h.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==y.State.ERROR&&this.state!==y.State.STOPPED&&(this.state=T.fatal?y.State.ERROR:y.State.IDLE,this.warn(T.details+" while loading frag, switching to "+this.state+" state"));break;case h.ErrorDetails.BUFFER_FULL_ERROR:if(T.parent==="audio"&&(this.state===y.State.PARSING||this.state===y.State.PARSED)){var I=!0,D=this.getFwdBufferInfo(this.mediaBuffer,d.PlaylistLevelType.AUDIO);D&&D.len>.5&&(I=!this.reduceMaxBufferLength(D.len)),I&&(this.warn("Buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,P.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}break;default:break}},E.onBufferFlushed=function(m,T){var I=T.type;I===r.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},E._handleTransmuxComplete=function(m){var T,I="audio",D=this.hls,N=m.remuxResult,z=m.chunkMeta,F=this.getCurrentContext(z);if(!F){this.warn("The loading context changed while buffering fragment "+z.sn+" of level "+z.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(z.level);return}var W=F.frag,K=F.part,B=N.audio,k=N.text,G=N.id3,ne=N.initSegment;if(this.fragContextChanged(W))return;if(this.state=y.State.PARSING,this.audioSwitch&&B&&this.completeAudioSwitch(),ne!=null&&ne.tracks&&(this._bufferInitSegment(ne.tracks,W,z),D.trigger(x.Events.FRAG_PARSING_INIT_SEGMENT,{frag:W,id:I,tracks:ne.tracks})),B){var fe=B.startPTS,de=B.endPTS,xe=B.startDTS,Oe=B.endDTS;K&&(K.elementaryStreams[r.ElementaryStreamTypes.AUDIO]={startPTS:fe,endPTS:de,startDTS:xe,endDTS:Oe}),W.setElementaryStreamInfo(r.ElementaryStreamTypes.AUDIO,fe,de,xe,Oe),this.bufferFragmentData(B,W,K,z)}if(G!=null&&(T=G.samples)!==null&&T!==void 0&&T.length){var ce=s({frag:W,id:I},G);D.trigger(x.Events.FRAG_PARSING_METADATA,ce)}if(k){var be=s({frag:W,id:I},k);D.trigger(x.Events.FRAG_PARSING_USERDATA,be)}},E._bufferInitSegment=function(m,T,I){if(this.state!==y.State.PARSING)return;m.video&&delete m.video;var D=m.audio;if(!D)return;D.levelCodec=D.codec,D.id="audio",this.log("Init audio buffer, container:"+D.container+", codecs[parsed]=["+D.codec+"]"),this.hls.trigger(x.Events.BUFFER_CODECS,m);var N=D.initSegment;if(N!=null&&N.byteLength){var z={type:"audio",frag:T,part:null,chunkMeta:I,parent:T.type,data:N};this.hls.trigger(x.Events.BUFFER_APPENDING,z)}this.tick()},E.loadFragment=function(m,T,I){var D=this.fragmentTracker.getState(m);this.fragCurrent=m,(this.audioSwitch||D===f.FragmentState.NOT_LOADED||D===f.FragmentState.PARTIAL)&&(m.sn==="initSegment"?this._loadInitSegment(m):T.live&&!Object(b.isFiniteNumber)(this.initPTS[m.cc])?(this.log("Waiting for video PTS in continuity counter "+m.cc+" of live stream before loading audio fragment "+m.sn+" of level "+this.trackId),this.state=y.State.WAITING_INIT_PTS):(this.startFragRequested=!0,P.prototype.loadFragment.call(this,m,T,I)))},E.completeAudioSwitch=function(){var m=this.hls,T=this.media,I=this.trackId;T&&(this.log("Switching audio track : flushing all audio"),P.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,m.trigger(x.Events.AUDIO_TRACK_SWITCHED,{id:I})},R}(y.default);g.default=v},"./src/controller/audio-track-controller.ts":function(L,g,A){"use strict";A.r(g);var b=A("./src/events.ts"),y=A("./src/errors.ts"),x=A("./src/controller/base-playlist-controller.ts"),w=A("./src/types/loader.ts");function f(t,a){for(var n=0;n<a.length;n++){var i=a[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function _(t,a,n){return a&&f(t.prototype,a),n&&f(t,n),t}function d(t,a){t.prototype=Object.create(a.prototype),t.prototype.constructor=t,r(t,a)}function r(t,a){return r=Object.setPrototypeOf||function(i,h){return i.__proto__=h,i},r(t,a)}var u=function(t){d(a,t);function a(i){var h;return h=t.call(this,i,"[audio-track-controller]")||this,h.tracks=[],h.groupId=null,h.tracksInGroup=[],h.trackId=-1,h.trackName="",h.selectDefaultTrack=!0,h.registerListeners(),h}var n=a.prototype;return n.registerListeners=function(){var h=this.hls;h.on(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.on(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),h.on(b.Events.LEVEL_LOADING,this.onLevelLoading,this),h.on(b.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),h.on(b.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),h.on(b.Events.ERROR,this.onError,this)},n.unregisterListeners=function(){var h=this.hls;h.off(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.off(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),h.off(b.Events.LEVEL_LOADING,this.onLevelLoading,this),h.off(b.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),h.off(b.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),h.off(b.Events.ERROR,this.onError,this)},n.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,t.prototype.destroy.call(this)},n.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.trackName="",this.selectDefaultTrack=!0},n.onManifestParsed=function(h,l){this.tracks=l.audioTracks||[]},n.onAudioTrackLoaded=function(h,l){var s=l.id,p=l.details,O=this.tracksInGroup[s];if(!O){this.warn("Invalid audio track id "+s);return}var S=O.details;O.details=l.details,this.log("audioTrack "+s+" loaded ["+p.startSN+"-"+p.endSN+"]"),s===this.trackId&&(this.retryCount=0,this.playlistLoaded(s,l,S))},n.onLevelLoading=function(h,l){this.switchLevel(l.level)},n.onLevelSwitching=function(h,l){this.switchLevel(l.level)},n.switchLevel=function(h){var l=this.hls.levels[h];if(!(l!=null&&l.audioGroupIds))return;var s=l.audioGroupIds[l.urlId];if(this.groupId!==s){this.groupId=s;var p=this.tracks.filter(function(S){return!s||S.groupId===s});this.selectDefaultTrack&&!p.some(function(S){return S.default})&&(this.selectDefaultTrack=!1),this.tracksInGroup=p;var O={audioTracks:p};this.log("Updating audio tracks, "+p.length+' track(s) found in "'+s+'" group-id'),this.hls.trigger(b.Events.AUDIO_TRACKS_UPDATED,O),this.selectInitialTrack()}},n.onError=function(h,l){if(t.prototype.onError.call(this,h,l),l.fatal||!l.context)return;l.context.type===w.PlaylistContextType.AUDIO_TRACK&&l.context.id===this.trackId&&l.context.groupId===this.groupId&&this.retryLoadingOrFail(l)},n.setAudioTrack=function(h){var l=this.tracksInGroup;if(h<0||h>=l.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var s=l[this.trackId];this.log("Now switching to audio-track index "+h);var p=l[h],O=p.id,S=p.groupId,v=S===void 0?"":S,P=p.name,R=p.type,E=p.url;if(this.trackId=h,this.trackName=P,this.selectDefaultTrack=!1,this.hls.trigger(b.Events.AUDIO_TRACK_SWITCHING,{id:O,groupId:v,name:P,type:R,url:E}),p.details&&!p.details.live)return;var C=this.switchParams(p.url,s==null?void 0:s.details);this.loadPlaylist(C)},n.selectInitialTrack=function(){var h=this.tracksInGroup;console.assert(h.length,"Initial audio track should be selected when tracks are known");var l=this.trackName,s=this.findTrackId(l)||this.findTrackId();s!==-1?this.setAudioTrack(s):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.MEDIA_ERROR,details:y.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},n.findTrackId=function(h){for(var l=this.tracksInGroup,s=0;s<l.length;s++){var p=l[s];if((!this.selectDefaultTrack||p.default)&&(!h||h===p.name))return p.id}return-1},n.loadPlaylist=function(h){var l=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(l)){var s=l.id,p=l.groupId,O=l.url;if(h)try{O=h.addDirectives(O)}catch(S){this.warn("Could not construct new URL with HLS Delivery Directives: "+S)}this.log("loading audio-track playlist for id: "+s),this.clearTimer(),this.hls.trigger(b.Events.AUDIO_TRACK_LOADING,{url:O,id:s,groupId:p,deliveryDirectives:h||null})}},_(a,[{key:"audioTracks",get:function(){return this.tracksInGroup}},{key:"audioTrack",get:function(){return this.trackId},set:function(h){this.selectDefaultTrack=!1,this.setAudioTrack(h)}}]),a}(x.default);g.default=u},"./src/controller/base-playlist-controller.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"default",function(){return _});var b=A("./src/polyfills/number.ts"),y=A("./src/types/level.ts"),x=A("./src/controller/level-helper.ts"),w=A("./src/utils/logger.ts"),f=A("./src/errors.ts"),_=function(){function d(u,t){this.hls=void 0,this.timer=-1,this.canLoad=!1,this.retryCount=0,this.log=void 0,this.warn=void 0,this.log=w.logger.log.bind(w.logger,t+":"),this.warn=w.logger.warn.bind(w.logger,t+":"),this.hls=u}var r=d.prototype;return r.destroy=function(){this.clearTimer(),this.hls=this.log=this.warn=null},r.onError=function(t,a){a.fatal&&a.type===f.ErrorTypes.NETWORK_ERROR&&this.clearTimer()},r.clearTimer=function(){clearTimeout(this.timer),this.timer=-1},r.startLoad=function(){this.canLoad=!0,this.retryCount=0,this.loadPlaylist()},r.stopLoad=function(){this.canLoad=!1,this.clearTimer()},r.switchParams=function(t,a){var n=a==null?void 0:a.renditionReports;if(n)for(var i=0;i<n.length;i++){var h=n[i],l=""+h.URI;if(l===t.substr(-l.length)){var s=parseInt(h["LAST-MSN"]),p=parseInt(h["LAST-PART"]);if(a&&this.hls.config.lowLatencyMode){var O=Math.min(a.age-a.partTarget,a.targetduration);p!==void 0&&O>a.partTarget&&(p+=1)}if(Object(b.isFiniteNumber)(s))return new y.HlsUrlParameters(s,Object(b.isFiniteNumber)(p)?p:void 0,y.HlsSkip.No)}}},r.loadPlaylist=function(t){},r.shouldLoadTrack=function(t){return this.canLoad&&t&&!!t.url&&(!t.details||t.details.live)},r.playlistLoaded=function(t,a,n){var i=this,h=a.details,l=a.stats,s=l.loading.end?Math.max(0,self.performance.now()-l.loading.end):0;if(h.advancedDateTime=Date.now()-s,h.live||n!=null&&n.live){if(h.reloaded(n),n&&this.log("live playlist "+t+" "+(h.advanced?"REFRESHED "+h.lastPartSn+"-"+h.lastPartIndex:"MISSED")),n&&h.fragments.length>0&&Object(x.mergeDetails)(n,h),!this.canLoad||!h.live)return;var p,O=void 0,S=void 0;if(h.canBlockReload&&h.endSN&&h.advanced){var v=this.hls.config.lowLatencyMode,P=h.lastPartSn,R=h.endSN,E=h.lastPartIndex,C=E!==-1,m=P===R,T=v?0:E;C?(O=m?R+1:P,S=m?T:E+1):O=R+1;var I=h.age,D=I+h.ageHeader,N=Math.min(D-h.partTarget,h.targetduration*1.5);if(N>0){if(n&&N>n.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+n.tuneInGoal+" to: "+N+" with playlist age: "+h.age),N=0;else{var z=Math.floor(N/h.targetduration);if(O+=z,S!==void 0){var F=Math.round(N%h.targetduration/h.partTarget);S+=F}this.log("CDN Tune-in age: "+h.ageHeader+"s last advanced "+I.toFixed(2)+"s goal: "+N+" skip sn "+z+" to part "+S)}h.tuneInGoal=N}if(p=this.getDeliveryDirectives(h,a.deliveryDirectives,O,S),v||!m){this.loadPlaylist(p);return}}else p=this.getDeliveryDirectives(h,a.deliveryDirectives,O,S);var W=Object(x.computeReloadInterval)(h,l);O!==void 0&&h.canBlockReload&&(W-=h.partTarget||1),this.log("reload live playlist "+t+" in "+Math.round(W)+" ms"),this.timer=self.setTimeout(function(){return i.loadPlaylist(p)},W)}else this.clearTimer()},r.getDeliveryDirectives=function(t,a,n,i){var h=Object(y.getSkipValue)(t,n);return a!=null&&a.skip&&t.deltaUpdateFailed&&(n=a.msn,i=a.part,h=y.HlsSkip.No),new y.HlsUrlParameters(n,i,h)},r.retryLoadingOrFail=function(t){var a=this,n=this.hls.config,i=this.retryCount<n.levelLoadingMaxRetry;if(i){var h;if(this.retryCount++,t.details.indexOf("LoadTimeOut")>-1&&(h=t.context)!==null&&h!==void 0&&h.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+t.details+'"'),this.loadPlaylist();else{var l=Math.min(Math.pow(2,this.retryCount)*n.levelLoadingRetryDelay,n.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return a.loadPlaylist()},l),this.warn("retry playlist loading #"+this.retryCount+" in "+l+' ms after "'+t.details+'"')}}else this.warn('cannot recover from error "'+t.details+'"'),this.clearTimer(),t.fatal=!0;return i},d}()},"./src/controller/base-stream-controller.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"State",function(){return R}),A.d(g,"default",function(){return E});var b=A("./src/polyfills/number.ts"),y=A("./src/task-loop.ts"),x=A("./src/controller/fragment-tracker.ts"),w=A("./src/utils/buffer-helper.ts"),f=A("./src/utils/logger.ts"),_=A("./src/events.ts"),d=A("./src/errors.ts"),r=A("./src/types/transmuxer.ts"),u=A("./src/utils/mp4-tools.ts"),t=A("./src/utils/discontinuities.ts"),a=A("./src/controller/fragment-finders.ts"),n=A("./src/controller/level-helper.ts"),i=A("./src/loader/fragment-loader.ts"),h=A("./src/crypt/decrypter.ts"),l=A("./src/utils/time-ranges.ts"),s=A("./src/types/loader.ts");function p(C,m){for(var T=0;T<m.length;T++){var I=m[T];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(C,I.key,I)}}function O(C,m,T){return m&&p(C.prototype,m),T&&p(C,T),C}function S(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}function v(C,m){C.prototype=Object.create(m.prototype),C.prototype.constructor=C,P(C,m)}function P(C,m){return P=Object.setPrototypeOf||function(I,D){return I.__proto__=D,I},P(C,m)}var R={STOPPED:"STOPPED",IDLE:"IDLE",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",BACKTRACKING:"BACKTRACKING",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"},E=function(C){v(m,C);function m(I,D,N){var z;return z=C.call(this)||this,z.hls=void 0,z.fragPrevious=null,z.fragCurrent=null,z.fragmentTracker=void 0,z.transmuxer=null,z._state=R.STOPPED,z.media=void 0,z.mediaBuffer=void 0,z.config=void 0,z.bitrateTest=!1,z.lastCurrentTime=0,z.nextLoadPosition=0,z.startPosition=0,z.loadedmetadata=!1,z.fragLoadError=0,z.retryDate=0,z.levels=null,z.fragmentLoader=void 0,z.levelLastLoaded=null,z.startFragRequested=!1,z.decrypter=void 0,z.initPTS=[],z.onvseeking=null,z.onvended=null,z.logPrefix="",z.log=void 0,z.warn=void 0,z.logPrefix=N,z.log=f.logger.log.bind(f.logger,N+":"),z.warn=f.logger.warn.bind(f.logger,N+":"),z.hls=I,z.fragmentLoader=new i.default(I.config),z.fragmentTracker=D,z.config=I.config,z.decrypter=new h.default(I,I.config),I.on(_.Events.KEY_LOADED,z.onKeyLoaded,S(z)),z}var T=m.prototype;return T.doTick=function(){this.onTickEnd()},T.onTickEnd=function(){},T.startLoad=function(D){},T.stopLoad=function(){this.fragmentLoader.abort();var D=this.fragCurrent;D&&this.fragmentTracker.removeFragment(D),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=R.STOPPED},T._streamEnded=function(D,N){var z=this.fragCurrent,F=this.fragmentTracker;if(!N.live&&z&&z.sn===N.endSN&&!D.nextStart){var W=F.getState(z);return W===x.FragmentState.PARTIAL||W===x.FragmentState.OK}return!1},T.onMediaAttached=function(D,N){var z=this.media=this.mediaBuffer=N.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),z.addEventListener("seeking",this.onvseeking),z.addEventListener("ended",this.onvended);var F=this.config;this.levels&&F.autoStartLoad&&this.state===R.STOPPED&&this.startLoad(F.startPosition)},T.onMediaDetaching=function(){var D=this.media;D!=null&&D.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),D&&(D.removeEventListener("seeking",this.onvseeking),D.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()},T.onMediaSeeking=function(){var D=this.config,N=this.fragCurrent,z=this.media,F=this.mediaBuffer,W=this.state,K=z?z.currentTime:0,B=w.BufferHelper.bufferInfo(F||z,K,D.maxBufferHole);if(this.log("media seeking to "+(Object(b.isFiniteNumber)(K)?K.toFixed(3):K)+", state: "+W),W===R.ENDED)this.resetLoadingState();else if(N&&!B.len){var k=D.maxFragLookUpTolerance,G=N.start-k,ne=N.start+N.duration+k,fe=K>ne;(K<G||fe)&&(fe&&N.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),N.loader.abort()),this.resetLoadingState())}z&&(this.lastCurrentTime=K),!this.loadedmetadata&&!B.len&&(this.nextLoadPosition=this.startPosition=K),this.tickImmediate()},T.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},T.onKeyLoaded=function(D,N){if(this.state!==R.KEY_LOADING||N.frag!==this.fragCurrent||!this.levels)return;this.state=R.IDLE;var z=this.levels[N.frag.level].details;z&&this.loadFragment(N.frag,z,N.frag.start)},T.onHandlerDestroying=function(){this.stopLoad(),C.prototype.onHandlerDestroying.call(this)},T.onHandlerDestroyed=function(){this.state=R.STOPPED,this.hls.off(_.Events.KEY_LOADED,this.onKeyLoaded,this),this.fragmentLoader&&this.fragmentLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.fragmentLoader=this.fragmentTracker=null,C.prototype.onHandlerDestroyed.call(this)},T.loadKey=function(D,N){this.log("Loading key for "+D.sn+" of ["+N.startSN+"-"+N.endSN+"], "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+D.level),this.state=R.KEY_LOADING,this.fragCurrent=D,this.hls.trigger(_.Events.KEY_LOADING,{frag:D})},T.loadFragment=function(D,N,z){this._loadFragForPlayback(D,N,z)},T._loadFragForPlayback=function(D,N,z){var F=this,W=function(B){if(F.fragContextChanged(D)){F.warn("Fragment "+D.sn+(B.part?" p: "+B.part.index:"")+" of level "+D.level+" was dropped during download."),F.fragmentTracker.removeFragment(D);return}D.stats.chunkCount++,F._handleFragmentLoadProgress(B)};this._doFragLoad(D,N,z,W).then(function(K){if(!K)return;F.fragLoadError=0;var B=F.state;if(F.fragContextChanged(D)){(B===R.FRAG_LOADING||B===R.BACKTRACKING||!F.fragCurrent&&B===R.PARSING)&&(F.fragmentTracker.removeFragment(D),F.state=R.IDLE);return}if("payload"in K&&(F.log("Loaded fragment "+D.sn+" of level "+D.level),F.hls.trigger(_.Events.FRAG_LOADED,K),F.state===R.BACKTRACKING)){F.fragmentTracker.backtrack(D,K),F.resetFragmentLoading(D);return}F._handleFragmentLoadComplete(K)}).catch(function(K){F.warn(K),F.resetFragmentLoading(D)})},T.flushMainBuffer=function(D,N,z){if(z===void 0&&(z=null),!(D-N))return;var F={startOffset:D,endOffset:N,type:z};this.fragLoadError=0,this.hls.trigger(_.Events.BUFFER_FLUSHING,F)},T._loadInitSegment=function(D){var N=this;this._doFragLoad(D).then(function(z){if(!z||N.fragContextChanged(D)||!N.levels)throw new Error("init load aborted");return z}).then(function(z){var F=N.hls,W=z.payload,K=D.decryptdata;if(W&&W.byteLength>0&&K&&K.key&&K.iv&&K.method==="AES-128"){var B=self.performance.now();return N.decrypter.webCryptoDecrypt(new Uint8Array(W),K.key.buffer,K.iv.buffer).then(function(k){var G=self.performance.now();return F.trigger(_.Events.FRAG_DECRYPTED,{frag:D,payload:k,stats:{tstart:B,tdecrypt:G}}),z.payload=k,z})}return z}).then(function(z){var F=N.fragCurrent,W=N.hls,K=N.levels;if(!K)throw new Error("init load aborted, missing levels");var B=K[D.level].details;console.assert(B,"Level details are defined when init segment is loaded");var k=D.stats;N.state=R.IDLE,N.fragLoadError=0,D.data=new Uint8Array(z.payload),k.parsing.start=k.buffering.start=self.performance.now(),k.parsing.end=k.buffering.end=self.performance.now(),z.frag===F&&W.trigger(_.Events.FRAG_BUFFERED,{stats:k,frag:F,part:null,id:D.type}),N.tick()}).catch(function(z){N.warn(z),N.resetFragmentLoading(D)})},T.fragContextChanged=function(D){var N=this.fragCurrent;return!D||!N||D.level!==N.level||D.sn!==N.sn||D.urlId!==N.urlId},T.fragBufferedComplete=function(D,N){var z=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+D.type+" sn: "+D.sn+(N?" part: "+N.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+D.level+" "+l.default.toString(w.BufferHelper.getBuffered(z))),this.state=R.IDLE,this.tick()},T._handleFragmentLoadComplete=function(D){var N=this.transmuxer;if(!N)return;var z=D.frag,F=D.part,W=D.partsLoaded,K=!W||W.length===0||W.some(function(k){return!k}),B=new r.ChunkMetadata(z.level,z.sn,z.stats.chunkCount+1,0,F?F.index:-1,!K);N.flush(B)},T._handleFragmentLoadProgress=function(D){},T._doFragLoad=function(D,N,z,F){var W=this;if(z===void 0&&(z=null),!this.levels)throw new Error("frag load aborted, missing levels");if(z=Math.max(D.start,z||0),this.config.lowLatencyMode&&N){var K=N.partList;if(K&&F){z>D.end&&N.fragmentHint&&(D=N.fragmentHint);var B=this.getNextPart(K,D,z);if(B>-1){var k=K[B];return this.log("Loading part sn: "+D.sn+" p: "+k.index+" cc: "+D.cc+" of playlist ["+N.startSN+"-"+N.endSN+"] parts [0-"+B+"-"+(K.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+D.level+", target: "+parseFloat(z.toFixed(3))),this.nextLoadPosition=k.start+k.duration,this.state=R.FRAG_LOADING,this.hls.trigger(_.Events.FRAG_LOADING,{frag:D,part:K[B],targetBufferTime:z}),this.doFragPartsLoad(D,K,B,F).catch(function(G){return W.handleFragLoadError(G)})}else if(!D.url||this.loadedEndOfParts(K,z))return Promise.resolve(null)}}return this.log("Loading fragment "+D.sn+" cc: "+D.cc+" "+(N?"of ["+N.startSN+"-"+N.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+D.level+", target: "+parseFloat(z.toFixed(3))),Object(b.isFiniteNumber)(D.sn)&&!this.bitrateTest&&(this.nextLoadPosition=D.start+D.duration),this.state=R.FRAG_LOADING,this.hls.trigger(_.Events.FRAG_LOADING,{frag:D,targetBufferTime:z}),this.fragmentLoader.load(D,F).catch(function(G){return W.handleFragLoadError(G)})},T.doFragPartsLoad=function(D,N,z,F){var W=this;return new Promise(function(K,B){var k=[],G=function ne(fe){var de=N[fe];W.fragmentLoader.loadPart(D,de,F).then(function(xe){k[de.index]=xe;var Oe=xe.part;W.hls.trigger(_.Events.FRAG_LOADED,xe);var ce=N[fe+1];if(ce&&ce.fragment===D)ne(fe+1);else return K({frag:D,part:Oe,partsLoaded:k})}).catch(B)};G(z)})},T.handleFragLoadError=function(D){var N=D.data;return N&&N.details===d.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(N.frag,N.part):this.hls.trigger(_.Events.ERROR,N),null},T._handleTransmuxerFlush=function(D){var N=this.getCurrentContext(D);if(!N||this.state!==R.PARSING){this.fragCurrent||(this.state=R.IDLE);return}var z=N.frag,F=N.part,W=N.level,K=self.performance.now();z.stats.parsing.end=K,F&&(F.stats.parsing.end=K),this.updateLevelTiming(z,F,W,D.partial)},T.getCurrentContext=function(D){var N=this.levels,z=D.level,F=D.sn,W=D.part;if(!N||!N[z])return this.warn("Levels object was unset while buffering fragment "+F+" of level "+z+". The current chunk will not be buffered."),null;var K=N[z],B=W>-1?Object(n.getPartWith)(K,F,W):null,k=B?B.fragment:Object(n.getFragmentWithSN)(K,F,this.fragCurrent);return k?{frag:k,part:B,level:K}:null},T.bufferFragmentData=function(D,N,z,F){if(!D||this.state!==R.PARSING)return;var W=D.data1,K=D.data2,B=W;if(W&&K&&(B=Object(u.appendUint8Array)(W,K)),!B||!B.length)return;var k={type:D.type,frag:N,part:z,chunkMeta:F,parent:N.type,data:B};this.hls.trigger(_.Events.BUFFER_APPENDING,k),D.dropped&&D.independent&&!z&&this.flushBufferGap(N)},T.flushBufferGap=function(D){var N=this.media;if(!N)return;if(!w.BufferHelper.isBuffered(N,N.currentTime)){this.flushMainBuffer(0,D.start);return}var z=N.currentTime,F=w.BufferHelper.bufferInfo(N,z,0),W=D.duration,K=Math.min(this.config.maxFragLookUpTolerance*2,W*.25),B=Math.max(Math.min(D.start-K,F.end-K),z+K);D.start-B>K&&this.flushMainBuffer(B,D.start)},T.getFwdBufferInfo=function(D,N){var z=this.config,F=this.getLoadPosition();if(!Object(b.isFiniteNumber)(F))return null;var W=w.BufferHelper.bufferInfo(D,F,z.maxBufferHole);if(W.len===0&&W.nextStart!==void 0){var K=this.fragmentTracker.getBufferedFrag(F,N);if(K&&W.nextStart<K.end)return w.BufferHelper.bufferInfo(D,F,Math.max(W.nextStart,z.maxBufferHole))}return W},T.getMaxBufferLength=function(D){var N=this.config,z;return D?z=Math.max(8*N.maxBufferSize/D,N.maxBufferLength):z=N.maxBufferLength,Math.min(z,N.maxMaxBufferLength)},T.reduceMaxBufferLength=function(D){var N=this.config,z=D||N.maxBufferLength;return N.maxMaxBufferLength>=z?(N.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+N.maxMaxBufferLength+"s"),!0):!1},T.getNextFragment=function(D,N){var z,F,W=N.fragments,K=W.length;if(!K)return null;var B=this.config,k=W[0].start,G;if(N.live){var ne=B.initialLiveManifestSize;if(K<ne)return this.warn("Not enough fragments to start playback (have: "+K+", need: "+ne+")"),null;!N.PTSKnown&&!this.startFragRequested&&this.startPosition===-1&&(G=this.getInitialLiveFragment(N,W),this.startPosition=G?this.hls.liveSyncPosition||G.start:D)}else D<=k&&(G=W[0]);if(!G){var fe=B.lowLatencyMode?N.partEnd:N.fragmentEnd;G=this.getFragmentAtPosition(D,fe,N)}return(z=G)!==null&&z!==void 0&&z.initSegment&&!((F=G)!==null&&F!==void 0&&F.initSegment.data)&&!this.bitrateTest&&(G=G.initSegment),G},T.getNextPart=function(D,N,z){for(var F=-1,W=!1,K=!0,B=0,k=D.length;B<k;B++){var G=D[B];if(K=K&&!G.independent,F>-1&&z<G.start)break;var ne=G.loaded;!ne&&(W||G.independent||K)&&G.fragment===N&&(F=B),W=ne}return F},T.loadedEndOfParts=function(D,N){var z=D[D.length-1];return z&&N>z.start&&z.loaded},T.getInitialLiveFragment=function(D,N){var z=this.fragPrevious,F=null;if(z){if(D.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+z.programDateTime),F=Object(a.findFragmentByPDT)(N,z.endProgramDateTime,this.config.maxFragLookUpTolerance)),!F){var W=z.sn+1;if(W>=D.startSN&&W<=D.endSN){var K=N[W-D.startSN];z.cc===K.cc&&(F=K,this.log("Live playlist, switching playlist, load frag with next SN: "+F.sn))}F||(F=Object(a.findFragWithCC)(N,z.cc),F&&this.log("Live playlist, switching playlist, load frag with same CC: "+F.sn))}}else{var B=this.hls.liveSyncPosition;B!==null&&(F=this.getFragmentAtPosition(B,this.bitrateTest?D.fragmentEnd:D.edge,D))}return F},T.getFragmentAtPosition=function(D,N,z){var F=this.config,W=this.fragPrevious,K=z.fragments,B=z.endSN,k=z.fragmentHint,G=F.maxFragLookUpTolerance,ne=!!(F.lowLatencyMode&&z.partList&&k);ne&&k&&!this.bitrateTest&&(K=K.concat(k),B=k.sn);var fe;if(D<N){var de=D>N-G?0:G;fe=Object(a.findFragmentByPTS)(W,K,D,de)}else fe=K[K.length-1];if(fe){var xe=fe.sn-z.startSN,Oe=W&&fe.level===W.level,ce=K[xe+1],be=this.fragmentTracker.getState(fe);if(be===x.FragmentState.BACKTRACKED){fe=null;for(var ve=xe;K[ve]&&this.fragmentTracker.getState(K[ve])===x.FragmentState.BACKTRACKED;)W?fe=K[ve--]:fe=K[--ve];fe||(fe=ce)}else W&&fe.sn===W.sn&&!ne&&(Oe&&(fe.sn<B&&this.fragmentTracker.getState(ce)!==x.FragmentState.OK?(this.log("SN "+fe.sn+" just loaded, load next one: "+ce.sn),fe=ce):fe=null))}return fe},T.synchronizeToLiveEdge=function(D){var N=this.config,z=this.media;if(!z)return;var F=this.hls.liveSyncPosition,W=z.currentTime,K=D.fragments[0].start,B=D.edge,k=W>=K-N.maxFragLookUpTolerance&&W<=B;if(F!==null&&z.duration>F&&(W<F||!k)){var G=N.liveMaxLatencyDuration!==void 0?N.liveMaxLatencyDuration:N.liveMaxLatencyDurationCount*D.targetduration;(!k&&z.readyState<4||W<B-G)&&(this.loadedmetadata||(this.nextLoadPosition=F),z.readyState&&(this.warn("Playback: "+W.toFixed(3)+" is located too far from the end of live sliding playlist: "+B+", reset currentTime to : "+F.toFixed(3)),z.currentTime=F))}},T.alignPlaylists=function(D,N){var z=this.levels,F=this.levelLastLoaded,W=this.fragPrevious,K=F!==null?z[F]:null,B=D.fragments.length;if(!B)return this.warn("No fragments in live playlist"),0;var k=D.fragments[0].start,G=!N,ne=D.alignedSliding&&Object(b.isFiniteNumber)(k);if(G||!ne&&!k){Object(t.alignStream)(W,K,D);var fe=D.fragments[0].start;return this.log("Live playlist sliding: "+fe.toFixed(2)+" start-sn: "+(N?N.startSN:"na")+"->"+D.startSN+" prev-sn: "+(W?W.sn:"na")+" fragments: "+B),fe}return k},T.waitForCdnTuneIn=function(D){var N=3;return D.live&&D.canBlockReload&&D.tuneInGoal>Math.max(D.partHoldBack,D.partTarget*N)},T.setStartPosition=function(D,N){var z=this.startPosition;if(z<N&&(z=-1),z===-1||this.lastCurrentTime===-1){var F=D.startTimeOffset;Object(b.isFiniteNumber)(F)?(z=N+F,F<0&&(z+=D.totalduration),z=Math.min(Math.max(N,z),N+D.totalduration),this.log("Start time offset "+F+" found in playlist, adjust startPosition to "+z),this.startPosition=z):D.live?z=this.hls.liveSyncPosition||N:this.startPosition=z=0,this.lastCurrentTime=z}this.nextLoadPosition=z},T.getLoadPosition=function(){var D=this.media,N=0;return this.loadedmetadata&&D?N=D.currentTime:this.nextLoadPosition&&(N=this.nextLoadPosition),N},T.handleFragLoadAborted=function(D,N){this.transmuxer&&D.sn!=="initSegment"&&D.stats.aborted&&(this.warn("Fragment "+D.sn+(N?" part"+N.index:"")+" of level "+D.level+" was aborted"),this.resetFragmentLoading(D))},T.resetFragmentLoading=function(D){(!this.fragCurrent||!this.fragContextChanged(D))&&(this.state=R.IDLE)},T.onFragmentOrKeyLoadError=function(D,N){if(N.fatal)return;var z=N.frag;if(!z||z.type!==D)return;var F=this.fragCurrent;console.assert(F&&z.sn===F.sn&&z.level===F.level&&z.urlId===F.urlId,"Frag load error must match current frag to retry");var W=this.config;if(this.fragLoadError+1<=W.fragLoadingMaxRetry){if(this.resetLiveStartWhenNotLoaded(z.level))return;var K=Math.min(Math.pow(2,this.fragLoadError)*W.fragLoadingRetryDelay,W.fragLoadingMaxRetryTimeout);this.warn("Fragment "+z.sn+" of "+D+" "+z.level+" failed to load, retrying in "+K+"ms"),this.retryDate=self.performance.now()+K,this.fragLoadError++,this.state=R.FRAG_LOADING_WAITING_RETRY}else N.levelRetry?(D===s.PlaylistLevelType.AUDIO&&(this.fragCurrent=null),this.fragLoadError=0,this.state=R.IDLE):(f.logger.error(N.details+" reaches max retry, redispatch as fatal ..."),N.fatal=!0,this.hls.stopLoad(),this.state=R.ERROR)},T.afterBufferFlushed=function(D,N,z){if(!D)return;var F=w.BufferHelper.getBuffered(D);this.fragmentTracker.detectEvictedFragments(N,F,z),this.state===R.ENDED&&this.resetLoadingState()},T.resetLoadingState=function(){this.fragCurrent=null,this.fragPrevious=null,this.state=R.IDLE},T.resetLiveStartWhenNotLoaded=function(D){if(!this.loadedmetadata){this.startFragRequested=!1;var N=this.levels?this.levels[D].details:null;if(N!=null&&N.live)return this.startPosition=-1,this.setStartPosition(N,0),this.resetLoadingState(),!0;this.nextLoadPosition=this.startPosition}return!1},T.updateLevelTiming=function(D,N,z,F){var W=this,K=z.details;console.assert(!!K,"level.details must be defined");var B=Object.keys(D.elementaryStreams).reduce(function(k,G){var ne=D.elementaryStreams[G];if(ne){var fe=ne.endPTS-ne.startPTS;if(fe<=0)return W.warn("Could not parse fragment "+D.sn+" "+G+" duration reliably ("+fe+") resetting transmuxer to fallback to playlist timing"),W.resetTransmuxer(),k||!1;var de=F?0:Object(n.updateFragPTSDTS)(K,D,ne.startPTS,ne.endPTS,ne.startDTS,ne.endDTS);return W.hls.trigger(_.Events.LEVEL_PTS_UPDATED,{details:K,level:z,drift:de,type:G,frag:D,start:ne.startPTS,end:ne.endPTS}),!0}return k},!1);B?(this.state=R.PARSED,this.hls.trigger(_.Events.FRAG_PARSED,{frag:D,part:N})):this.resetLoadingState()},T.resetTransmuxer=function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)},O(m,[{key:"state",get:function(){return this._state},set:function(D){var N=this._state;N!==D&&(this._state=D,this.log(N+"->"+D))}}]),m}(y.default)},"./src/controller/buffer-controller.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"default",function(){return a});var b=A("./src/polyfills/number.ts"),y=A("./src/events.ts"),x=A("./src/utils/logger.ts"),w=A("./src/errors.ts"),f=A("./src/utils/buffer-helper.ts"),_=A("./src/utils/mediasource-helper.ts"),d=A("./src/loader/fragment.ts"),r=A("./src/controller/buffer-operation-queue.ts"),u=Object(_.getMediaSource)(),t=/([ha]vc.)(?:\.[^.,]+)+/,a=function(){function n(h){var l=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 s=l.hls,p=l.media,O=l.mediaSource;x.logger.log("[buffer-controller]: Media source opened"),p&&(l.updateMediaElementDuration(),s.trigger(y.Events.MEDIA_ATTACHED,{media:p})),O&&O.removeEventListener("sourceopen",l._onMediaSourceOpen),l.checkPendingTracks()},this._onMediaSourceClose=function(){x.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){x.logger.log("[buffer-controller]: Media source ended")},this.hls=h,this._initSourceBuffer(),this.registerListeners()}var i=n.prototype;return i.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},i.destroy=function(){this.unregisterListeners(),this.details=null},i.registerListeners=function(){var l=this.hls;l.on(y.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),l.on(y.Events.MEDIA_DETACHING,this.onMediaDetaching,this),l.on(y.Events.MANIFEST_PARSED,this.onManifestParsed,this),l.on(y.Events.BUFFER_RESET,this.onBufferReset,this),l.on(y.Events.BUFFER_APPENDING,this.onBufferAppending,this),l.on(y.Events.BUFFER_CODECS,this.onBufferCodecs,this),l.on(y.Events.BUFFER_EOS,this.onBufferEos,this),l.on(y.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),l.on(y.Events.LEVEL_UPDATED,this.onLevelUpdated,this),l.on(y.Events.FRAG_PARSED,this.onFragParsed,this),l.on(y.Events.FRAG_CHANGED,this.onFragChanged,this)},i.unregisterListeners=function(){var l=this.hls;l.off(y.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),l.off(y.Events.MEDIA_DETACHING,this.onMediaDetaching,this),l.off(y.Events.MANIFEST_PARSED,this.onManifestParsed,this),l.off(y.Events.BUFFER_RESET,this.onBufferReset,this),l.off(y.Events.BUFFER_APPENDING,this.onBufferAppending,this),l.off(y.Events.BUFFER_CODECS,this.onBufferCodecs,this),l.off(y.Events.BUFFER_EOS,this.onBufferEos,this),l.off(y.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),l.off(y.Events.LEVEL_UPDATED,this.onLevelUpdated,this),l.off(y.Events.FRAG_PARSED,this.onFragParsed,this),l.off(y.Events.FRAG_CHANGED,this.onFragChanged,this)},i._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new r.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},i.onManifestParsed=function(l,s){var p=2;(s.audio&&!s.video||!s.altAudio)&&(p=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=p,this.details=null,x.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},i.onMediaAttaching=function(l,s){var p=this.media=s.media;if(p&&u){var O=this.mediaSource=new u;O.addEventListener("sourceopen",this._onMediaSourceOpen),O.addEventListener("sourceended",this._onMediaSourceEnded),O.addEventListener("sourceclose",this._onMediaSourceClose),p.src=self.URL.createObjectURL(O),this._objectUrl=p.src}},i.onMediaDetaching=function(){var l=this.media,s=this.mediaSource,p=this._objectUrl;if(s){if(x.logger.log("[buffer-controller]: media source detaching"),s.readyState==="open")try{s.endOfStream()}catch(O){x.logger.warn("[buffer-controller]: onMediaDetaching: "+O.message+" while calling endOfStream")}this.onBufferReset(),s.removeEventListener("sourceopen",this._onMediaSourceOpen),s.removeEventListener("sourceended",this._onMediaSourceEnded),s.removeEventListener("sourceclose",this._onMediaSourceClose),l&&(p&&self.URL.revokeObjectURL(p),l.src===p?(l.removeAttribute("src"),l.load()):x.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(y.Events.MEDIA_DETACHED,void 0)},i.onBufferReset=function(){var l=this;this.getSourceBufferTypes().forEach(function(s){var p=l.sourceBuffer[s];try{p&&(l.removeBufferListeners(s),l.mediaSource&&l.mediaSource.removeSourceBuffer(p),l.sourceBuffer[s]=void 0)}catch(O){x.logger.warn("[buffer-controller]: Failed to reset the "+s+" buffer",O)}}),this._initSourceBuffer()},i.onBufferCodecs=function(l,s){var p=this,O=this.getSourceBufferTypes().length;if(Object.keys(s).forEach(function(S){if(O){var v=p.tracks[S];if(v&&typeof v.buffer.changeType=="function"){var P=s[S],R=P.codec,E=P.levelCodec,C=P.container,m=(v.levelCodec||v.codec).replace(t,"$1"),T=(E||R).replace(t,"$1");if(m!==T){var I=C+";codecs="+(E||R);p.appendChangeType(S,I)}}}else p.pendingTracks[S]=s[S]}),O)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},i.appendChangeType=function(l,s){var p=this,O=this.operationQueue,S={execute:function(){var P=p.sourceBuffer[l];P&&(x.logger.log("[buffer-controller]: changing "+l+" sourceBuffer type to "+s),P.changeType(s)),O.shiftAndExecuteNext(l)},onStart:function(){},onComplete:function(){},onError:function(P){x.logger.warn("[buffer-controller]: Failed to change "+l+" SourceBuffer type",P)}};O.append(S,l)},i.onBufferAppending=function(l,s){var p=this,O=this.hls,S=this.operationQueue,v=this.tracks,P=s.data,R=s.type,E=s.frag,C=s.part,m=s.chunkMeta,T=m.buffering[R],I=self.performance.now();T.start=I;var D=E.stats.buffering,N=C?C.stats.buffering:null;D.start===0&&(D.start=I),N&&N.start===0&&(N.start=I);var z=v.audio,F=R==="audio"&&m.id===1&&(z==null?void 0:z.container)==="audio/mpeg",W={execute:function(){if(T.executeStart=self.performance.now(),F){var B=p.sourceBuffer[R];if(B){var k=E.start-B.timestampOffset;Math.abs(k)>=.1&&(x.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+E.start+" (delta: "+k+") sn: "+E.sn+")"),B.timestampOffset=E.start)}}p.appendExecutor(P,R)},onStart:function(){},onComplete:function(){var B=self.performance.now();T.executeEnd=T.end=B,D.first===0&&(D.first=B),N&&N.first===0&&(N.first=B);var k=p.sourceBuffer,G={};for(var ne in k)G[ne]=f.BufferHelper.getBuffered(k[ne]);p.appendError=0,p.hls.trigger(y.Events.BUFFER_APPENDED,{type:R,frag:E,part:C,chunkMeta:m,parent:E.type,timeRanges:G})},onError:function(B){x.logger.error("[buffer-controller]: Error encountered while trying to append to the "+R+" SourceBuffer",B);var k={type:w.ErrorTypes.MEDIA_ERROR,parent:E.type,details:w.ErrorDetails.BUFFER_APPEND_ERROR,err:B,fatal:!1};B.code===DOMException.QUOTA_EXCEEDED_ERR?k.details=w.ErrorDetails.BUFFER_FULL_ERROR:(p.appendError++,k.details=w.ErrorDetails.BUFFER_APPEND_ERROR,p.appendError>O.config.appendErrorMaxRetry&&(x.logger.error("[buffer-controller]: Failed "+O.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),k.fatal=!0)),O.trigger(y.Events.ERROR,k)}};S.append(W,R)},i.onBufferFlushing=function(l,s){var p=this,O=this.operationQueue,S=function(P){return{execute:p.removeExecutor.bind(p,P,s.startOffset,s.endOffset),onStart:function(){},onComplete:function(){p.hls.trigger(y.Events.BUFFER_FLUSHED,{type:P})},onError:function(E){x.logger.warn("[buffer-controller]: Failed to remove from "+P+" SourceBuffer",E)}}};s.type?O.append(S(s.type),s.type):this.getSourceBufferTypes().forEach(function(v){O.append(S(v),v)})},i.onFragParsed=function(l,s){var p=this,O=s.frag,S=s.part,v=[],P=S?S.elementaryStreams:O.elementaryStreams;P[d.ElementaryStreamTypes.AUDIOVIDEO]?v.push("audiovideo"):(P[d.ElementaryStreamTypes.AUDIO]&&v.push("audio"),P[d.ElementaryStreamTypes.VIDEO]&&v.push("video"));var R=function(){var C=self.performance.now();O.stats.buffering.end=C,S&&(S.stats.buffering.end=C);var m=S?S.stats:O.stats;p.hls.trigger(y.Events.FRAG_BUFFERED,{frag:O,part:S,stats:m,id:O.type})};v.length===0&&x.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+O.type+" level: "+O.level+" sn: "+O.sn),this.blockBuffers(R,v)},i.onFragChanged=function(l,s){this.flushBackBuffer()},i.onBufferEos=function(l,s){var p=this,O=this.getSourceBufferTypes().reduce(function(S,v){var P=p.sourceBuffer[v];return(!s.type||s.type===v)&&(P&&!P.ended&&(P.ended=!0,x.logger.log("[buffer-controller]: "+v+" sourceBuffer now EOS"))),S&&!!(!P||P.ended)},!0);O&&this.blockBuffers(function(){var S=p.mediaSource;if(!S||S.readyState!=="open")return;S.endOfStream()})},i.onLevelUpdated=function(l,s){var p=s.details;if(!p.fragments.length)return;this.details=p,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},i.flushBackBuffer=function(){var l=this.hls,s=this.details,p=this.media,O=this.sourceBuffer;if(!p||s===null)return;var S=this.getSourceBufferTypes();if(!S.length)return;var v=s.live&&l.config.liveBackBufferLength!==null?l.config.liveBackBufferLength:l.config.backBufferLength;if(!Object(b.isFiniteNumber)(v)||v<0)return;var P=p.currentTime,R=s.levelTargetDuration,E=Math.max(v,R),C=Math.floor(P/R)*R-E;S.forEach(function(m){var T=O[m];if(T){var I=f.BufferHelper.getBuffered(T);I.length>0&&C>I.start(0)&&(l.trigger(y.Events.BACK_BUFFER_REACHED,{bufferEnd:C}),s.live&&l.trigger(y.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:C}),l.trigger(y.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:C,type:m}))}})},i.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var l=this.details,s=this.hls,p=this.media,O=this.mediaSource,S=l.fragments[0].start+l.totalduration,v=p.duration,P=Object(b.isFiniteNumber)(O.duration)?O.duration:0;l.live&&s.config.liveDurationInfinity?(x.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),O.duration=Infinity,this.updateSeekableRange(l)):(S>P&&S>v||!Object(b.isFiniteNumber)(v))&&(x.logger.log("[buffer-controller]: Updating Media Source duration to "+S.toFixed(3)),O.duration=S)},i.updateSeekableRange=function(l){var s=this.mediaSource,p=l.fragments,O=p.length;if(O&&l.live&&s!==null&&s!==void 0&&s.setLiveSeekableRange){var S=Math.max(0,p[0].start),v=Math.max(S,S+l.totalduration);s.setLiveSeekableRange(S,v)}},i.checkPendingTracks=function(){var l=this.bufferCodecEventsExpected,s=this.operationQueue,p=this.pendingTracks,O=Object.keys(p).length;if(O&&!l||O===2){this.createSourceBuffers(p),this.pendingTracks={};var S=this.getSourceBufferTypes();if(S.length===0){this.hls.trigger(y.Events.ERROR,{type:w.ErrorTypes.MEDIA_ERROR,details:w.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});return}S.forEach(function(v){s.executeNext(v)})}},i.createSourceBuffers=function(l){var s=this.sourceBuffer,p=this.mediaSource;if(!p)throw Error("createSourceBuffers called when mediaSource was null");var O=0;for(var S in l)if(!s[S]){var v=l[S];if(!v)throw Error("source buffer exists for track "+S+", however track does not");var P=v.levelCodec||v.codec,R=v.container+";codecs="+P;x.logger.log("[buffer-controller]: creating sourceBuffer("+R+")");try{var E=s[S]=p.addSourceBuffer(R),C=S;this.addBufferListener(C,"updatestart",this._onSBUpdateStart),this.addBufferListener(C,"updateend",this._onSBUpdateEnd),this.addBufferListener(C,"error",this._onSBUpdateError),this.tracks[S]={buffer:E,codec:P,container:v.container,levelCodec:v.levelCodec,id:v.id},O++}catch(m){x.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+m.message),this.hls.trigger(y.Events.ERROR,{type:w.ErrorTypes.MEDIA_ERROR,details:w.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:m,mimeType:R})}}O&&this.hls.trigger(y.Events.BUFFER_CREATED,{tracks:this.tracks})},i._onSBUpdateStart=function(l){var s=this.operationQueue,p=s.current(l);p.onStart()},i._onSBUpdateEnd=function(l){var s=this.operationQueue,p=s.current(l);p.onComplete(),s.shiftAndExecuteNext(l)},i._onSBUpdateError=function(l,s){x.logger.error("[buffer-controller]: "+l+" SourceBuffer error",s),this.hls.trigger(y.Events.ERROR,{type:w.ErrorTypes.MEDIA_ERROR,details:w.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var p=this.operationQueue.current(l);p&&p.onError(s)},i.removeExecutor=function(l,s,p){var O=this.media,S=this.mediaSource,v=this.operationQueue,P=this.sourceBuffer,R=P[l];if(!O||!S||!R){x.logger.warn("[buffer-controller]: Attempting to remove from the "+l+" SourceBuffer, but it does not exist"),v.shiftAndExecuteNext(l);return}var E=Object(b.isFiniteNumber)(O.duration)?O.duration:Infinity,C=Object(b.isFiniteNumber)(S.duration)?S.duration:Infinity,m=Math.max(0,s),T=Math.min(p,E,C);T>m?(x.logger.log("[buffer-controller]: Removing ["+m+","+T+"] from the "+l+" SourceBuffer"),console.assert(!R.updating,l+" sourceBuffer must not be updating"),R.remove(m,T)):v.shiftAndExecuteNext(l)},i.appendExecutor=function(l,s){var p=this.operationQueue,O=this.sourceBuffer,S=O[s];if(!S){x.logger.warn("[buffer-controller]: Attempting to append to the "+s+" SourceBuffer, but it does not exist"),p.shiftAndExecuteNext(s);return}S.ended=!1,console.assert(!S.updating,s+" sourceBuffer must not be updating"),S.appendBuffer(l)},i.blockBuffers=function(l,s){var p=this;if(s===void 0&&(s=this.getSourceBufferTypes()),!s.length){x.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(l);return}var O=this.operationQueue,S=s.map(function(v){return O.appendBlocker(v)});Promise.all(S).then(function(){l(),s.forEach(function(v){var P=p.sourceBuffer[v];(!P||!P.updating)&&O.shiftAndExecuteNext(v)})})},i.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},i.addBufferListener=function(l,s,p){var O=this.sourceBuffer[l];if(!O)return;var S=p.bind(this,l);this.listeners[l].push({event:s,listener:S}),O.addEventListener(s,S)},i.removeBufferListeners=function(l){var s=this.sourceBuffer[l];if(!s)return;this.listeners[l].forEach(function(p){s.removeEventListener(p.event,p.listener)})},n}()},"./src/controller/buffer-operation-queue.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"default",function(){return y});var b=A("./src/utils/logger.ts"),y=function(){function x(f){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=f}var w=x.prototype;return w.append=function(_,d){var r=this.queues[d];r.push(_),r.length===1&&this.buffers[d]&&this.executeNext(d)},w.insertAbort=function(_,d){var r=this.queues[d];r.unshift(_),this.executeNext(d)},w.appendBlocker=function(_){var d,r=new Promise(function(t){d=t}),u={execute:d,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(u,_),r},w.executeNext=function(_){var d=this.buffers,r=this.queues,u=d[_],t=r[_];if(t.length){var a=t[0];try{a.execute()}catch(n){b.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),a.onError(n),(!u||!u.updating)&&(t.shift(),this.executeNext(_))}}},w.shiftAndExecuteNext=function(_){this.queues[_].shift(),this.executeNext(_)},w.current=function(_){return this.queues[_][0]},x}()},"./src/controller/cap-level-controller.ts":function(L,g,A){"use strict";A.r(g);var b=A("./src/events.ts");function y(f,_){for(var d=0;d<_.length;d++){var r=_[d];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(f,r.key,r)}}function x(f,_,d){return _&&y(f.prototype,_),d&&y(f,d),f}var w=function(){function f(d){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=d,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}var _=f.prototype;return _.setStreamController=function(r){this.streamController=r},_.destroy=function(){this.unregisterListener(),this.hls.config.capLevelToPlayerSize&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null},_.registerListeners=function(){var r=this.hls;r.on(b.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),r.on(b.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),r.on(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),r.on(b.Events.BUFFER_CODECS,this.onBufferCodecs,this),r.on(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},_.unregisterListener=function(){var r=this.hls;r.off(b.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),r.off(b.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),r.off(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),r.off(b.Events.BUFFER_CODECS,this.onBufferCodecs,this),r.off(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},_.onFpsDropLevelCapping=function(r,u){f.isLevelAllowed(u.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(u.droppedLevel)},_.onMediaAttaching=function(r,u){this.media=u.media instanceof HTMLVideoElement?u.media:null},_.onManifestParsed=function(r,u){var t=this.hls;this.restrictedLevels=[],this.firstLevel=u.firstLevel,t.config.capLevelToPlayerSize&&u.video&&this.startCapping()},_.onBufferCodecs=function(r,u){var t=this.hls;t.config.capLevelToPlayerSize&&u.video&&this.startCapping()},_.onMediaDetaching=function(){this.stopCapping()},_.detectPlayerSize=function(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){var r=this.hls.levels;if(r.length){var u=this.hls;u.autoLevelCapping=this.getMaxLevel(r.length-1),u.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=u.autoLevelCapping}}},_.getMaxLevel=function(r){var u=this,t=this.hls.levels;if(!t.length)return-1;var a=t.filter(function(n,i){return f.isLevelAllowed(i,u.restrictedLevels)&&i<=r});return this.clientRect=null,f.getMaxLevelByMediaSize(a,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 r=this.media,u={width:0,height:0};if(r){var t=r.getBoundingClientRect();u.width=t.width,u.height=t.height,!u.width&&!u.height&&(u.width=t.right-t.left||r.width||0,u.height=t.bottom-t.top||r.height||0)}return this.clientRect=u,u},f.isLevelAllowed=function(r,u){return u===void 0&&(u=[]),u.indexOf(r)===-1},f.getMaxLevelByMediaSize=function(r,u,t){if(!r||!r.length)return-1;for(var a=function(s,p){return p?s.width!==p.width||s.height!==p.height:!0},n=r.length-1,i=0;i<r.length;i+=1){var h=r[i];if((h.width>=u||h.height>=t)&&a(h,r[i+1])){n=i;break}}return n},x(f,[{key:"mediaWidth",get:function(){return this.getDimensions().width*f.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*f.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var r=1;try{r=self.devicePixelRatio}catch(u){}return r}}]),f}();g.default=w},"./src/controller/cmcd-controller.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"default",function(){return a});var b=A("./src/events.ts"),y=A("./src/types/cmcd.ts"),x=A("./src/utils/buffer-helper.ts"),w=A("./src/utils/logger.ts");function f(n,i){for(var h=0;h<i.length;h++){var l=i[h];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(n,l.key,l)}}function _(n,i,h){return i&&f(n.prototype,i),h&&f(n,h),n}function d(n,i){var h=typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(h)return(h=h.call(n)).next.bind(h);if(Array.isArray(n)||(h=r(n))||i&&n&&typeof n.length=="number"){h&&(n=h);var l=0;return function(){return l>=n.length?{done:!0}:{done:!1,value:n[l++]}}}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 r(n,i){if(!n)return;if(typeof n=="string")return u(n,i);var h=Object.prototype.toString.call(n).slice(8,-1);if(h==="Object"&&n.constructor&&(h=n.constructor.name),h==="Map"||h==="Set")return Array.from(n);if(h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h))return u(n,i)}function u(n,i){(i==null||i>n.length)&&(i=n.length);for(var h=0,l=new Array(i);h<i;h++)l[h]=n[h];return l}function t(){return t=Object.assign||function(n){for(var i=1;i<arguments.length;i++){var h=arguments[i];for(var l in h)Object.prototype.hasOwnProperty.call(h,l)&&(n[l]=h[l])}return n},t.apply(this,arguments)}var a=function(){function n(h){var l=this;this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=function(){l.initialized&&(l.starved=!0),l.buffering=!0},this.onPlaying=function(){l.initialized||(l.initialized=!0),l.buffering=!1},this.applyPlaylistData=function(O){try{l.apply(O,{ot:y.CMCDObjectType.MANIFEST,su:!l.initialized})}catch(S){w.logger.warn("Could not generate manifest CMCD data.",S)}},this.applyFragmentData=function(O){try{var S=O.frag,v=l.hls.levels[S.level],P=l.getObjectType(S),R={d:S.duration*1e3,ot:P};(P===y.CMCDObjectType.VIDEO||P===y.CMCDObjectType.AUDIO||P==y.CMCDObjectType.MUXED)&&(R.br=v.bitrate/1e3,R.tb=l.getTopBandwidth(P),R.bl=l.getBufferLength(P)),l.apply(O,R)}catch(E){w.logger.warn("Could not generate segment CMCD data.",E)}},this.hls=h;var s=this.config=h.config,p=s.cmcd;p!=null&&(s.pLoader=this.createPlaylistLoader(),s.fLoader=this.createFragmentLoader(),this.sid=p.sessionId||n.uuid(),this.cid=p.contentId,this.useHeaders=p.useHeaders===!0,this.registerListeners())}var i=n.prototype;return i.registerListeners=function(){var l=this.hls;l.on(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),l.on(b.Events.MEDIA_DETACHED,this.onMediaDetached,this),l.on(b.Events.BUFFER_CREATED,this.onBufferCreated,this)},i.unregisterListeners=function(){var l=this.hls;l.off(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),l.off(b.Events.MEDIA_DETACHED,this.onMediaDetached,this),l.off(b.Events.BUFFER_CREATED,this.onBufferCreated,this),this.onMediaDetached()},i.destroy=function(){this.unregisterListeners(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null},i.onMediaAttached=function(l,s){this.media=s.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)},i.onMediaDetached=function(){if(!this.media)return;this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null},i.onBufferCreated=function(l,s){var p,O;this.audioBuffer=(p=s.tracks.audio)===null||p===void 0?void 0:p.buffer,this.videoBuffer=(O=s.tracks.video)===null||O===void 0?void 0:O.buffer},i.createData=function(){var l;return{v:y.CMCDVersion,sf:y.CMCDStreamingFormat.HLS,sid:this.sid,cid:this.cid,pr:(l=this.media)===null||l===void 0?void 0:l.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}},i.apply=function(l,s){s===void 0&&(s={}),t(s,this.createData());var p=s.ot===y.CMCDObjectType.INIT||s.ot===y.CMCDObjectType.VIDEO||s.ot===y.CMCDObjectType.MUXED;if(this.starved&&p&&(s.bs=!0,s.su=!0,this.starved=!1),s.su==null&&(s.su=this.buffering),this.useHeaders){var O=n.toHeaders(s);if(!Object.keys(O).length)return;l.headers||(l.headers={}),t(l.headers,O)}else{var S=n.toQuery(s);if(!S)return;l.url=n.appendQueryToUri(l.url,S)}},i.getObjectType=function(l){var s=l.type;return s==="subtitle"?y.CMCDObjectType.TIMED_TEXT:l.sn==="initSegment"?y.CMCDObjectType.INIT:s==="audio"?y.CMCDObjectType.AUDIO:s==="main"?this.hls.audioTracks.length?y.CMCDObjectType.VIDEO:y.CMCDObjectType.MUXED:void 0},i.getTopBandwidth=function(l){for(var s=0,p=l===y.CMCDObjectType.AUDIO?this.hls.audioTracks:this.hls.levels,O=d(p),S;!(S=O()).done;){var v=S.value;v.bitrate>s&&(s=v.bitrate)}return s>0?s:NaN},i.getBufferLength=function(l){var s=this.hls.media,p=l===y.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!p||!s)return NaN;var O=x.BufferHelper.bufferInfo(p,s.currentTime,this.config.maxBufferHole);return O.len*1e3},i.createPlaylistLoader=function(){var l=this.config.pLoader,s=this.applyPlaylistData,p=l||this.config.loader;return function(){function O(v){this.loader=void 0,this.loader=new p(v)}var S=O.prototype;return S.destroy=function(){this.loader.destroy()},S.abort=function(){this.loader.abort()},S.load=function(P,R,E){s(P),this.loader.load(P,R,E)},_(O,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),O}()},i.createFragmentLoader=function(){var l=this.config.fLoader,s=this.applyFragmentData,p=l||this.config.loader;return function(){function O(v){this.loader=void 0,this.loader=new p(v)}var S=O.prototype;return S.destroy=function(){this.loader.destroy()},S.abort=function(){this.loader.abort()},S.load=function(P,R,E){s(P),this.loader.load(P,R,E)},_(O,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),O}()},n.uuid=function(){var l=URL.createObjectURL(new Blob),s=l.toString();return URL.revokeObjectURL(l),s.substr(s.lastIndexOf("/")+1)},n.serialize=function(l){for(var s=[],p=function(F){return!Number.isNaN(F)&&F!=null&&F!==""&&F!==!1},O=function(F){return Math.round(F)},S=function(F){return O(F/100)*100},v=function(F){return encodeURIComponent(F)},P={br:O,d:O,bl:S,dl:S,mtp:S,nor:v,rtp:S,tb:O},R=Object.keys(l||{}).sort(),E=d(R),C;!(C=E()).done;){var m=C.value,T=l[m];if(!p(T))continue;if(m==="v"&&T===1)continue;if(m=="pr"&&T===1)continue;var I=P[m];I&&(T=I(T));var D=typeof T,N=void 0;m==="ot"||m==="sf"||m==="st"?N=m+"="+T:D==="boolean"?N=m:D==="number"?N=m+"="+T:N=m+"="+JSON.stringify(T),s.push(N)}return s.join(",")},n.toHeaders=function(l){for(var s=Object.keys(l),p={},O=["Object","Request","Session","Status"],S=[{},{},{},{}],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},P=0,R=s;P<R.length;P++){var E=R[P],C=v[E]!=null?v[E]:1;S[C][E]=l[E]}for(var m=0;m<S.length;m++){var T=n.serialize(S[m]);T&&(p["CMCD-"+O[m]]=T)}return p},n.toQuery=function(l){return"CMCD="+encodeURIComponent(n.serialize(l))},n.appendQueryToUri=function(l,s){if(!s)return l;var p=l.includes("?")?"&":"?";return""+l+p+s},n}()},"./src/controller/eme-controller.ts":function(L,g,A){"use strict";A.r(g);var b=A("./src/events.ts"),y=A("./src/errors.ts"),x=A("./src/utils/logger.ts"),w=A("./src/utils/mediakeys-helper.ts");function f(a,n){for(var i=0;i<n.length;i++){var h=n[i];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(a,h.key,h)}}function _(a,n,i){return n&&f(a.prototype,n),i&&f(a,i),a}var d=3,r=function(n,i,h){var l={audioCapabilities:[],videoCapabilities:[]};return n.forEach(function(s){l.audioCapabilities.push({contentType:'audio/mp4; codecs="'+s+'"',robustness:h.audioRobustness||""})}),i.forEach(function(s){l.videoCapabilities.push({contentType:'video/mp4; codecs="'+s+'"',robustness:h.videoRobustness||""})}),[l]},u=function(n,i,h,l){switch(n){case w.KeySystems.WIDEVINE:return r(i,h,l);default:throw new Error("Unknown key-system: "+n)}},t=function(){function a(i){this.hls=void 0,this._widevineLicenseUrl=void 0,this._licenseXhrSetup=void 0,this._licenseResponseCallback=void 0,this._emeEnabled=void 0,this._requestMediaKeySystemAccess=void 0,this._drmSystemOptions=void 0,this._config=void 0,this._mediaKeysList=[],this._media=null,this._hasSetMediaKeys=!1,this._requestLicenseFailureCount=0,this.mediaKeysPromise=null,this._onMediaEncrypted=this.onMediaEncrypted.bind(this),this.hls=i,this._config=i.config,this._widevineLicenseUrl=this._config.widevineLicenseUrl,this._licenseXhrSetup=this._config.licenseXhrSetup,this._licenseResponseCallback=this._config.licenseResponseCallback,this._emeEnabled=this._config.emeEnabled,this._requestMediaKeySystemAccess=this._config.requestMediaKeySystemAccessFunc,this._drmSystemOptions=this._config.drmSystemOptions,this._registerListeners()}var n=a.prototype;return n.destroy=function(){this._unregisterListeners(),this.hls=this._onMediaEncrypted=null,this._requestMediaKeySystemAccess=null},n._registerListeners=function(){this.hls.on(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(b.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(b.Events.MANIFEST_PARSED,this.onManifestParsed,this)},n._unregisterListeners=function(){this.hls.off(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(b.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(b.Events.MANIFEST_PARSED,this.onManifestParsed,this)},n.getLicenseServerUrl=function(h){switch(h){case w.KeySystems.WIDEVINE:if(!this._widevineLicenseUrl)break;return this._widevineLicenseUrl}throw new Error('no license server URL configured for key-system "'+h+'"')},n._attemptKeySystemAccess=function(h,l,s){var p=this,O=u(h,l,s,this._drmSystemOptions);x.logger.log("Requesting encrypted media key-system access");var S=this.requestMediaKeySystemAccess(h,O);this.mediaKeysPromise=S.then(function(v){return p._onMediaKeySystemAccessObtained(h,v)}),S.catch(function(v){x.logger.error('Failed to obtain key-system "'+h+'" access:',v)})},n._onMediaKeySystemAccessObtained=function(h,l){var s=this;x.logger.log('Access for key-system "'+h+'" obtained');var p={mediaKeysSessionInitialized:!1,mediaKeySystemAccess:l,mediaKeySystemDomain:h};this._mediaKeysList.push(p);var O=Promise.resolve().then(function(){return l.createMediaKeys()}).then(function(S){return p.mediaKeys=S,x.logger.log('Media-keys created for key-system "'+h+'"'),s._onMediaKeysCreated(),S});return O.catch(function(S){x.logger.error("Failed to create media-keys:",S)}),O},n._onMediaKeysCreated=function(){var h=this;this._mediaKeysList.forEach(function(l){l.mediaKeysSession||(l.mediaKeysSession=l.mediaKeys.createSession(),h._onNewMediaKeySession(l.mediaKeysSession))})},n._onNewMediaKeySession=function(h){var l=this;x.logger.log("New key-system session "+h.sessionId),h.addEventListener("message",function(s){l._onKeySessionMessage(h,s.message)},!1)},n._onKeySessionMessage=function(h,l){x.logger.log("Got EME message event, creating license request"),this._requestLicense(l,function(s){x.logger.log("Received license data (length: "+(s&&s.byteLength)+"), updating key-session"),h.update(s)})},n.onMediaEncrypted=function(h){var l=this;if(x.logger.log('Media is encrypted using "'+h.initDataType+'" init data type'),!this.mediaKeysPromise){x.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been requested"),this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.KEY_SYSTEM_ERROR,details:y.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}var s=function(O){if(!l._media)return;l._attemptSetMediaKeys(O),l._generateRequestWithPreferredKeySession(h.initDataType,h.initData)};this.mediaKeysPromise.then(s).catch(s)},n._attemptSetMediaKeys=function(h){if(!this._media)throw new Error("Attempted to set mediaKeys without first attaching a media element");if(!this._hasSetMediaKeys){var l=this._mediaKeysList[0];if(!l||!l.mediaKeys){x.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been obtained yet"),this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.KEY_SYSTEM_ERROR,details:y.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}x.logger.log("Setting keys for encrypted media"),this._media.setMediaKeys(l.mediaKeys),this._hasSetMediaKeys=!0}},n._generateRequestWithPreferredKeySession=function(h,l){var s=this,p=this._mediaKeysList[0];if(!p){x.logger.error("Fatal: Media is encrypted but not any key-system access has been obtained yet"),this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.KEY_SYSTEM_ERROR,details:y.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}if(p.mediaKeysSessionInitialized){x.logger.warn("Key-Session already initialized but requested again");return}var O=p.mediaKeysSession;if(!O){x.logger.error("Fatal: Media is encrypted but no key-session existing"),this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.KEY_SYSTEM_ERROR,details:y.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!0});return}if(!l){x.logger.warn("Fatal: initData required for generating a key session is null"),this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.KEY_SYSTEM_ERROR,details:y.ErrorDetails.KEY_SYSTEM_NO_INIT_DATA,fatal:!0});return}x.logger.log('Generating key-session request for "'+h+'" init data type'),p.mediaKeysSessionInitialized=!0,O.generateRequest(h,l).then(function(){x.logger.debug("Key-session generation succeeded")}).catch(function(S){x.logger.error("Error generating key-session request:",S),s.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.KEY_SYSTEM_ERROR,details:y.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!1})})},n._createLicenseXhr=function(h,l,s){var p=new XMLHttpRequest;p.responseType="arraybuffer",p.onreadystatechange=this._onLicenseRequestReadyStageChange.bind(this,p,h,l,s);var O=this._licenseXhrSetup;if(O)try{O.call(this.hls,p,h),O=void 0}catch(S){x.logger.error(S)}try{p.readyState||p.open("POST",h,!0),O&&O.call(this.hls,p,h)}catch(S){throw new Error("issue setting up KeySystem license XHR "+S)}return p},n._onLicenseRequestReadyStageChange=function(h,l,s,p){switch(h.readyState){case 4:if(h.status===200){this._requestLicenseFailureCount=0,x.logger.log("License request succeeded");var O=h.response,S=this._licenseResponseCallback;if(S)try{O=S.call(this.hls,h,l)}catch(P){x.logger.error(P)}p(O)}else{if(x.logger.error("License Request XHR failed ("+l+"). Status: "+h.status+" ("+h.statusText+")"),this._requestLicenseFailureCount++,this._requestLicenseFailureCount>d){this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.KEY_SYSTEM_ERROR,details:y.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var v=d-this._requestLicenseFailureCount+1;x.logger.warn("Retrying license request, "+v+" attempts left"),this._requestLicense(s,p)}break}},n._generateLicenseRequestChallenge=function(h,l){switch(h.mediaKeySystemDomain){case w.KeySystems.WIDEVINE:return l}throw new Error("unsupported key-system: "+h.mediaKeySystemDomain)},n._requestLicense=function(h,l){x.logger.log("Requesting content license for key-system");var s=this._mediaKeysList[0];if(!s){x.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.KEY_SYSTEM_ERROR,details:y.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var p=this.getLicenseServerUrl(s.mediaKeySystemDomain),O=this._createLicenseXhr(p,h,l);x.logger.log("Sending license request to URL: "+p);var S=this._generateLicenseRequestChallenge(s,h);O.send(S)}catch(v){x.logger.error("Failure requesting DRM license: "+v),this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.KEY_SYSTEM_ERROR,details:y.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},n.onMediaAttached=function(h,l){if(!this._emeEnabled)return;var s=l.media;this._media=s,s.addEventListener("encrypted",this._onMediaEncrypted)},n.onMediaDetached=function(){var h=this._media,l=this._mediaKeysList;if(!h)return;h.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(l.map(function(s){if(s.mediaKeysSession)return s.mediaKeysSession.close().catch(function(){})})).then(function(){return h.setMediaKeys(null)}).catch(function(){})},n.onManifestParsed=function(h,l){if(!this._emeEnabled)return;var s=l.levels.map(function(O){return O.audioCodec}).filter(function(O){return!!O}),p=l.levels.map(function(O){return O.videoCodec}).filter(function(O){return!!O});this._attemptKeySystemAccess(w.KeySystems.WIDEVINE,s,p)},_(a,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),a}();g.default=t},"./src/controller/fps-controller.ts":function(L,g,A){"use strict";A.r(g);var b=A("./src/events.ts"),y=A("./src/utils/logger.ts"),x=function(){function w(_){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 f=w.prototype;return f.setStreamController=function(d){this.streamController=d},f.registerListeners=function(){this.hls.on(b.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},f.unregisterListeners=function(){this.hls.off(b.Events.MEDIA_ATTACHING,this.onMediaAttaching)},f.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},f.onMediaAttaching=function(d,r){var u=this.hls.config;if(u.capLevelOnFPSDrop){var t=r.media instanceof self.HTMLVideoElement?r.media:null;this.media=t,t&&typeof t.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),u.fpsDroppedMonitoringPeriod)}},f.checkFPS=function(d,r,u){var t=performance.now();if(r){if(this.lastTime){var a=t-this.lastTime,n=u-this.lastDroppedFrames,i=r-this.lastDecodedFrames,h=1e3*n/a,l=this.hls;if(l.trigger(b.Events.FPS_DROP,{currentDropped:n,currentDecoded:i,totalDroppedFrames:u}),h>0&&n>l.config.fpsDroppedMonitoringThreshold*i){var s=l.currentLevel;y.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+s),s>0&&(l.autoLevelCapping===-1||l.autoLevelCapping>=s)&&(s=s-1,l.trigger(b.Events.FPS_DROP_LEVEL_CAPPING,{level:s,droppedLevel:l.currentLevel}),l.autoLevelCapping=s,this.streamController.nextLevelSwitch())}}this.lastTime=t,this.lastDroppedFrames=u,this.lastDecodedFrames=r}},f.checkFPSInterval=function(){var d=this.media;if(d)if(this.isVideoPlaybackQualityAvailable){var r=d.getVideoPlaybackQuality();this.checkFPS(d,r.totalVideoFrames,r.droppedVideoFrames)}else this.checkFPS(d,d.webkitDecodedFrameCount,d.webkitDroppedFrameCount)},w}();g.default=x},"./src/controller/fragment-finders.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"findFragmentByPDT",function(){return x}),A.d(g,"findFragmentByPTS",function(){return w}),A.d(g,"fragmentWithinToleranceTest",function(){return f}),A.d(g,"pdtWithinToleranceTest",function(){return _}),A.d(g,"findFragWithCC",function(){return d});var b=A("./src/polyfills/number.ts"),y=A("./src/utils/binary-search.ts");function x(r,u,t){if(u===null||!Array.isArray(r)||!r.length||!Object(b.isFiniteNumber)(u))return null;var a=r[0].programDateTime;if(u<(a||0))return null;var n=r[r.length-1].endProgramDateTime;if(u>=(n||0))return null;t=t||0;for(var i=0;i<r.length;++i){var h=r[i];if(_(u,t,h))return h}return null}function w(r,u,t,a){t===void 0&&(t=0),a===void 0&&(a=0);var n=null;if(r?n=u[r.sn-u[0].sn+1]||null:t===0&&u[0].start===0&&(n=u[0]),n&&f(t,a,n)===0)return n;var i=y.default.search(u,f.bind(null,t,a));return i||n}function f(r,u,t){r===void 0&&(r=0),u===void 0&&(u=0);var a=Math.min(u,t.duration+(t.deltaPTS?t.deltaPTS:0));return t.start+t.duration-a<=r?1:t.start-a>r&&t.start?-1:0}function _(r,u,t){var a=Math.min(u,t.duration+(t.deltaPTS?t.deltaPTS:0))*1e3,n=t.endProgramDateTime||0;return n-a>r}function d(r,u){return y.default.search(r,function(t){return t.cc<u?1:t.cc>u?-1:0})}},"./src/controller/fragment-tracker.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"FragmentState",function(){return x}),A.d(g,"FragmentTracker",function(){return w});var b=A("./src/events.ts"),y=A("./src/types/loader.ts"),x;(function(d){d.NOT_LOADED="NOT_LOADED",d.BACKTRACKED="BACKTRACKED",d.APPENDING="APPENDING",d.PARTIAL="PARTIAL",d.OK="OK"})(x||(x={}));var w=function(){function d(u){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=u,this._registerListeners()}var r=d.prototype;return r._registerListeners=function(){var t=this.hls;t.on(b.Events.BUFFER_APPENDED,this.onBufferAppended,this),t.on(b.Events.FRAG_BUFFERED,this.onFragBuffered,this),t.on(b.Events.FRAG_LOADED,this.onFragLoaded,this)},r._unregisterListeners=function(){var t=this.hls;t.off(b.Events.BUFFER_APPENDED,this.onBufferAppended,this),t.off(b.Events.FRAG_BUFFERED,this.onFragBuffered,this),t.off(b.Events.FRAG_LOADED,this.onFragLoaded,this)},r.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},r.getAppendedFrag=function(t,a){if(a===y.PlaylistLevelType.MAIN){var n=this.activeFragment,i=this.activeParts;if(!n)return null;if(i)for(var h=i.length;h--;){var l=i[h],s=l?l.end:n.appendedPTS;if(l.start<=t&&s!==void 0&&t<=s)return h>9&&(this.activeParts=i.slice(h-9)),l}else if(n.start<=t&&n.appendedPTS!==void 0&&t<=n.appendedPTS)return n}return this.getBufferedFrag(t,a)},r.getBufferedFrag=function(t,a){for(var n=this.fragments,i=Object.keys(n),h=i.length;h--;){var l=n[i[h]];if((l==null?void 0:l.body.type)===a&&l.buffered){var s=l.body;if(s.start<=t&&t<=s.end)return s}}return null},r.detectEvictedFragments=function(t,a,n){var i=this;Object.keys(this.fragments).forEach(function(h){var l=i.fragments[h];if(!l)return;if(!l.buffered){l.body.type===n&&i.removeFragment(l.body);return}var s=l.range[t];if(!s)return;s.time.some(function(p){var O=!i.isTimeBuffered(p.startPTS,p.endPTS,a);return O&&i.removeFragment(l.body),O})})},r.detectPartialFragments=function(t){var a=this,n=this.timeRanges,i=t.frag,h=t.part;if(!n||i.sn==="initSegment")return;var l=_(i),s=this.fragments[l];if(!s)return;Object.keys(n).forEach(function(p){var O=i.elementaryStreams[p];if(!O)return;var S=n[p],v=h!==null||O.partial===!0;s.range[p]=a.getBufferedTimes(i,h,v,S)}),s.backtrack=s.loaded=null,Object.keys(s.range).length?s.buffered=!0:this.removeFragment(s.body)},r.fragBuffered=function(t){var a=_(t),n=this.fragments[a];n&&(n.backtrack=n.loaded=null,n.buffered=!0)},r.getBufferedTimes=function(t,a,n,i){for(var h={time:[],partial:n},l=a?a.start:t.start,s=a?a.end:t.end,p=t.minEndPTS||s,O=t.maxStartPTS||l,S=0;S<i.length;S++){var v=i.start(S)-this.bufferPadding,P=i.end(S)+this.bufferPadding;if(O>=v&&p<=P){h.time.push({startPTS:Math.max(l,i.start(S)),endPTS:Math.min(s,i.end(S))});break}else if(l<P&&s>v)h.partial=!0,h.time.push({startPTS:Math.max(l,i.start(S)),endPTS:Math.min(s,i.end(S))});else if(s<=v)break}return h},r.getPartialFragment=function(t){var a=null,n,i,h,l=0,s=this.bufferPadding,p=this.fragments;return Object.keys(p).forEach(function(O){var S=p[O];if(!S)return;f(S)&&(i=S.body.start-s,h=S.body.end+s,t>=i&&t<=h&&(n=Math.min(t-i,h-t),l<=n&&(a=S.body,l=n)))}),a},r.getState=function(t){var a=_(t),n=this.fragments[a];return n?n.buffered?f(n)?x.PARTIAL:x.OK:n.backtrack?x.BACKTRACKED:x.APPENDING:x.NOT_LOADED},r.backtrack=function(t,a){var n=_(t),i=this.fragments[n];if(!i||i.backtrack)return null;var h=i.backtrack=a||i.loaded;return i.loaded=null,h},r.getBacktrackData=function(t){var a=_(t),n=this.fragments[a];if(n){var i,h=n.backtrack;if(h!=null&&(i=h.payload)!==null&&i!==void 0&&i.byteLength)return h;this.removeFragment(t)}return null},r.isTimeBuffered=function(t,a,n){for(var i,h,l=0;l<n.length;l++){if(i=n.start(l)-this.bufferPadding,h=n.end(l)+this.bufferPadding,t>=i&&a<=h)return!0;if(a<=i)return!1}return!1},r.onFragLoaded=function(t,a){var n=a.frag,i=a.part;if(n.sn==="initSegment"||n.bitrateTest||i)return;var h=_(n);this.fragments[h]={body:n,loaded:a,backtrack:null,buffered:!1,range:Object.create(null)}},r.onBufferAppended=function(t,a){var n=this,i=a.frag,h=a.part,l=a.timeRanges;if(i.type===y.PlaylistLevelType.MAIN)if(this.activeFragment=i,h){var s=this.activeParts;s||(this.activeParts=s=[]),s.push(h)}else this.activeParts=null;this.timeRanges=l,Object.keys(l).forEach(function(p){var O=l[p];if(n.detectEvictedFragments(p,O),!h)for(var S=0;S<O.length;S++)i.appendedPTS=Math.max(O.end(S),i.appendedPTS||0)})},r.onFragBuffered=function(t,a){this.detectPartialFragments(a)},r.hasFragment=function(t){var a=_(t);return!!this.fragments[a]},r.removeFragmentsInRange=function(t,a,n){var i=this;Object.keys(this.fragments).forEach(function(h){var l=i.fragments[h];if(!l)return;if(l.buffered){var s=l.body;s.type===n&&s.start<a&&s.end>t&&i.removeFragment(s)}})},r.removeFragment=function(t){var a=_(t);t.stats.loaded=0,t.clearElementaryStreamInfo(),delete this.fragments[a]},r.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},d}();function f(d){var r,u;return d.buffered&&(((r=d.range.video)===null||r===void 0?void 0:r.partial)||((u=d.range.audio)===null||u===void 0?void 0:u.partial))}function _(d){return d.type+"_"+d.level+"_"+d.urlId+"_"+d.sn}},"./src/controller/gap-controller.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"STALL_MINIMUM_DURATION_MS",function(){return f}),A.d(g,"MAX_START_GAP_JUMP",function(){return _}),A.d(g,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return d}),A.d(g,"SKIP_BUFFER_RANGE_START",function(){return r}),A.d(g,"default",function(){return u});var b=A("./src/utils/buffer-helper.ts"),y=A("./src/errors.ts"),x=A("./src/events.ts"),w=A("./src/utils/logger.ts"),f=250,_=2,d=.1,r=.05,u=function(){function t(n,i,h,l){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=n,this.media=i,this.fragmentTracker=h,this.hls=l}var a=t.prototype;return a.destroy=function(){this.hls=this.fragmentTracker=this.media=null},a.poll=function(i){var h=this.config,l=this.media,s=this.stalled,p=l.currentTime,O=l.seeking,S=this.seeking&&!O,v=!this.seeking&&O;if(this.seeking=O,p!==i){if(this.moved=!0,s!==null){if(this.stallReported){var P=self.performance.now()-s;w.logger.warn("playback not stuck anymore @"+p+", after "+Math.round(P)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((v||S)&&(this.stalled=null),l.paused||l.ended||l.playbackRate===0||!b.BufferHelper.getBuffered(l).length)return;var R=b.BufferHelper.bufferInfo(l,p,0),E=R.len>0,C=R.nextStart||0;if(!E&&!C)return;if(O){var m=R.len>_,T=!C||C-p>_&&!this.fragmentTracker.getPartialFragment(p);if(m||T)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var I,D=Math.max(C,R.start||0)-p,N=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,z=N==null||((I=N.details)===null||I===void 0)?void 0:I.live,F=z?N.details.targetduration*2:_;if(D>0&&D<=F){this._trySkipBufferHole(null);return}}var W=self.performance.now();if(s===null){this.stalled=W;return}var K=W-s;!O&&K>=f&&this._reportStall(R.len);var B=b.BufferHelper.bufferInfo(l,p,h.maxBufferHole);this._tryFixBufferStall(B,K)},a._tryFixBufferStall=function(i,h){var l=this.config,s=this.fragmentTracker,p=this.media,O=p.currentTime,S=s.getPartialFragment(O);if(S){var v=this._trySkipBufferHole(S);if(v)return}i.len>l.maxBufferHole&&h>l.highBufferWatchdogPeriod*1e3&&(w.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},a._reportStall=function(i){var h=this.hls,l=this.media,s=this.stallReported;s||(this.stallReported=!0,w.logger.warn("Playback stalling at @"+l.currentTime+" due to low buffer (buffer="+i+")"),h.trigger(x.Events.ERROR,{type:y.ErrorTypes.MEDIA_ERROR,details:y.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:i}))},a._trySkipBufferHole=function(i){for(var h=this.config,l=this.hls,s=this.media,p=s.currentTime,O=0,S=b.BufferHelper.getBuffered(s),v=0;v<S.length;v++){var P=S.start(v);if(p+h.maxBufferHole>=O&&p<P){var R=Math.max(P+r,s.currentTime+d);return w.logger.warn("skipping hole, adjusting currentTime from "+p+" to "+R),this.moved=!0,this.stalled=null,s.currentTime=R,i&&l.trigger(x.Events.ERROR,{type:y.ErrorTypes.MEDIA_ERROR,details:y.ErrorDetails.BUFFER_SEEK_OVER_HOLE,fatal:!1,reason:"fragment loaded with buffer holes, seeking from "+p+" to "+R,frag:i}),R}O=S.end(v)}return 0},a._tryNudgeBuffer=function(){var i=this.config,h=this.hls,l=this.media,s=l.currentTime,p=(this.nudgeRetry||0)+1;if(this.nudgeRetry=p,p<i.nudgeMaxRetry){var O=s+p*i.nudgeOffset;w.logger.warn("Nudging 'currentTime' from "+s+" to "+O),l.currentTime=O,h.trigger(x.Events.ERROR,{type:y.ErrorTypes.MEDIA_ERROR,details:y.ErrorDetails.BUFFER_NUDGE_ON_STALL,fatal:!1})}else w.logger.error("Playhead still not moving while enough data buffered @"+s+" after "+i.nudgeMaxRetry+" nudges"),h.trigger(x.Events.ERROR,{type:y.ErrorTypes.MEDIA_ERROR,details:y.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!0})},t}()},"./src/controller/id3-track-controller.ts":function(L,g,A){"use strict";A.r(g);var b=A("./src/events.ts"),y=A("./src/utils/texttrack-utils.ts"),x=A("./src/demux/id3.ts"),w=.25,f=function(){function _(r){this.hls=void 0,this.id3Track=null,this.media=null,this.hls=r,this._registerListeners()}var d=_.prototype;return d.destroy=function(){this._unregisterListeners()},d._registerListeners=function(){var u=this.hls;u.on(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),u.on(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),u.on(b.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),u.on(b.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},d._unregisterListeners=function(){var u=this.hls;u.off(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),u.off(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),u.off(b.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),u.off(b.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},d.onMediaAttached=function(u,t){this.media=t.media},d.onMediaDetaching=function(){if(!this.id3Track)return;Object(y.clearCurrentCues)(this.id3Track),this.id3Track=null,this.media=null},d.getID3Track=function(u){if(!this.media)return;for(var t=0;t<u.length;t++){var a=u[t];if(a.kind==="metadata"&&a.label==="id3")return Object(y.sendAddTrackEvent)(a,this.media),a}return this.media.addTextTrack("metadata","id3")},d.onFragParsingMetadata=function(u,t){if(!this.media)return;var a=t.frag,n=t.samples;this.id3Track||(this.id3Track=this.getID3Track(this.media.textTracks),this.id3Track.mode="hidden");for(var i=self.WebKitDataCue||self.VTTCue||self.TextTrackCue,h=0;h<n.length;h++){var l=x.getID3Frames(n[h].data);if(l){var s=n[h].pts,p=h<n.length-1?n[h+1].pts:a.end,O=p-s;O<=0&&(p=s+w);for(var S=0;S<l.length;S++){var v=l[S];if(!x.isTimeStampFrame(v)){var P=new i(s,p,"");P.value=v,this.id3Track.addCue(P)}}}}},d.onBufferFlushing=function(u,t){var a=t.startOffset,n=t.endOffset,i=t.type;if(!i||i==="audio"){var h=this.id3Track;h&&Object(y.removeCuesInRange)(h,a,n)}},_}();g.default=f},"./src/controller/latency-controller.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"default",function(){return _});var b=A("./src/errors.ts"),y=A("./src/events.ts"),x=A("./src/utils/logger.ts");function w(d,r){for(var u=0;u<r.length;u++){var t=r[u];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(d,t.key,t)}}function f(d,r,u){return r&&w(d.prototype,r),u&&w(d,u),d}var _=function(){function d(u){var t=this;this.hls=void 0,this.config=void 0,this.media=null,this.levelDetails=null,this.currentTime=0,this.stallCount=0,this._latency=null,this.timeupdateHandler=function(){return t.timeupdate()},this.hls=u,this.config=u.config,this.registerListeners()}var r=d.prototype;return r.destroy=function(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null},r.registerListeners=function(){this.hls.on(y.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(y.Events.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(y.Events.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(y.Events.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(y.Events.ERROR,this.onError,this)},r.unregisterListeners=function(){this.hls.off(y.Events.MEDIA_ATTACHED,this.onMediaAttached),this.hls.off(y.Events.MEDIA_DETACHING,this.onMediaDetaching),this.hls.off(y.Events.MANIFEST_LOADING,this.onManifestLoading),this.hls.off(y.Events.LEVEL_UPDATED,this.onLevelUpdated),this.hls.off(y.Events.ERROR,this.onError)},r.onMediaAttached=function(t,a){this.media=a.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)},r.onMediaDetaching=function(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)},r.onManifestLoading=function(){this.levelDetails=null,this._latency=null,this.stallCount=0},r.onLevelUpdated=function(t,a){var n=a.details;this.levelDetails=n,n.advanced&&this.timeupdate(),!n.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)},r.onError=function(t,a){if(a.details!==b.ErrorDetails.BUFFER_STALLED_ERROR)return;this.stallCount++,x.logger.warn("[playback-rate-controller]: Stall detected, adjusting target latency")},r.timeupdate=function(){var t=this.media,a=this.levelDetails;if(!t||!a)return;this.currentTime=t.currentTime;var n=this.computeLatency();if(n===null)return;this._latency=n;var i=this.config,h=i.lowLatencyMode,l=i.maxLiveSyncPlaybackRate;if(!h||l===1)return;var s=this.targetLatency;if(s===null)return;var p=n-s,O=Math.min(this.maxLatency,s+a.targetduration),S=p<O;if(a.live&&S&&p>.05&&this.forwardBufferLength>1){var v=Math.min(2,Math.max(1,l)),P=Math.round(2/(1+Math.exp(-.75*p-this.edgeStalled))*20)/20;t.playbackRate=Math.min(v,Math.max(1,P))}else t.playbackRate!==1&&t.playbackRate!==0&&(t.playbackRate=1)},r.estimateLiveEdge=function(){var t=this.levelDetails;return t===null?null:t.edge+t.age},r.computeLatency=function(){var t=this.estimateLiveEdge();return t===null?null:t-this.currentTime},f(d,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var t=this.config,a=this.levelDetails;return t.liveMaxLatencyDuration!==void 0?t.liveMaxLatencyDuration:a?t.liveMaxLatencyDurationCount*a.targetduration:0}},{key:"targetLatency",get:function(){var t=this.levelDetails;if(t===null)return null;var a=t.holdBack,n=t.partHoldBack,i=t.targetduration,h=this.config,l=h.liveSyncDuration,s=h.liveSyncDurationCount,p=h.lowLatencyMode,O=this.hls.userConfig,S=p&&n||a;(O.liveSyncDuration||O.liveSyncDurationCount||S===0)&&(S=l!==void 0?l:s*i);var v=i,P=1;return S+Math.min(this.stallCount*P,v)}},{key:"liveSyncPosition",get:function(){var t=this.estimateLiveEdge(),a=this.targetLatency,n=this.levelDetails;if(t===null||a===null||n===null)return null;var i=n.edge,h=t-a-this.edgeStalled,l=i-n.totalduration,s=i-(this.config.lowLatencyMode&&n.partTarget||n.targetduration);return Math.min(Math.max(l,h),s)}},{key:"drift",get:function(){var t=this.levelDetails;return t===null?1:t.drift}},{key:"edgeStalled",get:function(){var t=this.levelDetails;if(t===null)return 0;var a=(this.config.lowLatencyMode&&t.partTarget||t.targetduration)*3;return Math.max(t.age-a,0)}},{key:"forwardBufferLength",get:function(){var t=this.media,a=this.levelDetails;if(!t||!a)return 0;var n=t.buffered.length;return n?t.buffered.end(n-1):a.edge-this.currentTime}}]),d}()},"./src/controller/level-controller.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"default",function(){return h});var b=A("./src/types/level.ts"),y=A("./src/events.ts"),x=A("./src/errors.ts"),w=A("./src/utils/codecs.ts"),f=A("./src/controller/level-helper.ts"),_=A("./src/controller/base-playlist-controller.ts"),d=A("./src/types/loader.ts");function r(){return r=Object.assign||function(l){for(var s=1;s<arguments.length;s++){var p=arguments[s];for(var O in p)Object.prototype.hasOwnProperty.call(p,O)&&(l[O]=p[O])}return l},r.apply(this,arguments)}function u(l,s){for(var p=0;p<s.length;p++){var O=s[p];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(l,O.key,O)}}function t(l,s,p){return s&&u(l.prototype,s),p&&u(l,p),l}function a(l,s){l.prototype=Object.create(s.prototype),l.prototype.constructor=l,n(l,s)}function n(l,s){return n=Object.setPrototypeOf||function(O,S){return O.__proto__=S,O},n(l,s)}var i=/chrome|firefox/.test(navigator.userAgent.toLowerCase()),h=function(l){a(s,l);function s(O){var S;return S=l.call(this,O,"[level-controller]")||this,S._levels=[],S._firstLevel=-1,S._startLevel=void 0,S.currentLevelIndex=-1,S.manualLevelIndex=-1,S.onParsedComplete=void 0,S._registerListeners(),S}var p=s.prototype;return p._registerListeners=function(){var S=this.hls;S.on(y.Events.MANIFEST_LOADED,this.onManifestLoaded,this),S.on(y.Events.LEVEL_LOADED,this.onLevelLoaded,this),S.on(y.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),S.on(y.Events.FRAG_LOADED,this.onFragLoaded,this),S.on(y.Events.ERROR,this.onError,this)},p._unregisterListeners=function(){var S=this.hls;S.off(y.Events.MANIFEST_LOADED,this.onManifestLoaded,this),S.off(y.Events.LEVEL_LOADED,this.onLevelLoaded,this),S.off(y.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),S.off(y.Events.FRAG_LOADED,this.onFragLoaded,this),S.off(y.Events.ERROR,this.onError,this)},p.destroy=function(){this._unregisterListeners(),this.manualLevelIndex=-1,this._levels.length=0,l.prototype.destroy.call(this)},p.startLoad=function(){var S=this._levels;S.forEach(function(v){v.loadError=0}),l.prototype.startLoad.call(this)},p.onManifestLoaded=function(S,v){var P=[],R=[],E=[],C,m={},T,I=!1,D=!1,N=!1;if(v.levels.forEach(function(K){var B=K.attrs;I=I||!!(K.width&&K.height),D=D||!!K.videoCodec,N=N||!!K.audioCodec,i&&K.audioCodec&&K.audioCodec.indexOf("mp4a.40.34")!==-1&&(K.audioCodec=void 0);var k=K.bitrate+"-"+K.attrs.RESOLUTION+"-"+K.attrs.CODECS;T=m[k],T?T.url.push(K.url):(T=new b.Level(K),m[k]=T,P.push(T)),B&&(B.AUDIO&&Object(f.addGroupId)(T,"audio",B.AUDIO),B.SUBTITLES&&Object(f.addGroupId)(T,"text",B.SUBTITLES))}),(I||D)&&N&&(P=P.filter(function(K){var B=K.videoCodec,k=K.width,G=K.height;return!!B||!!(k&&G)})),P=P.filter(function(K){var B=K.audioCodec,k=K.videoCodec;return(!B||Object(w.isCodecSupportedInMp4)(B,"audio"))&&(!k||Object(w.isCodecSupportedInMp4)(k,"video"))}),v.audioTracks&&(R=v.audioTracks.filter(function(K){return!K.audioCodec||Object(w.isCodecSupportedInMp4)(K.audioCodec,"audio")}),Object(f.assignTrackIdsByGroup)(R)),v.subtitles&&(E=v.subtitles,Object(f.assignTrackIdsByGroup)(E)),P.length>0){C=P[0].bitrate,P.sort(function(K,B){return K.bitrate-B.bitrate}),this._levels=P;for(var z=0;z<P.length;z++)if(P[z].bitrate===C){this._firstLevel=z,this.log("manifest loaded, "+P.length+" level(s) found, first bitrate: "+C);break}var F=N&&!D,W={levels:P,audioTracks:R,subtitleTracks:E,firstLevel:this._firstLevel,stats:v.stats,audio:N,video:D,altAudio:!F&&R.some(function(K){return!!K.url})};this.hls.trigger(y.Events.MANIFEST_PARSED,W),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}else this.hls.trigger(y.Events.ERROR,{type:x.ErrorTypes.MEDIA_ERROR,details:x.ErrorDetails.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:v.url,reason:"no level with compatible codecs found in manifest"})},p.onError=function(S,v){if(l.prototype.onError.call(this,S,v),v.fatal)return;var P=v.context,R=this._levels[this.currentLevelIndex];if(P&&(P.type===d.PlaylistContextType.AUDIO_TRACK&&R.audioGroupIds&&P.groupId===R.audioGroupIds[R.urlId]||P.type===d.PlaylistContextType.SUBTITLE_TRACK&&R.textGroupIds&&P.groupId===R.textGroupIds[R.urlId])){this.redundantFailover(this.currentLevelIndex);return}var E=!1,C=!0,m;switch(v.details){case x.ErrorDetails.FRAG_LOAD_ERROR:case x.ErrorDetails.FRAG_LOAD_TIMEOUT:case x.ErrorDetails.KEY_LOAD_ERROR:case x.ErrorDetails.KEY_LOAD_TIMEOUT:if(v.frag){var T=this._levels[v.frag.level];T?(T.fragmentError++,T.fragmentError>this.hls.config.fragLoadingMaxRetry&&(m=v.frag.level)):m=v.frag.level}break;case x.ErrorDetails.LEVEL_LOAD_ERROR:case x.ErrorDetails.LEVEL_LOAD_TIMEOUT:P&&(P.deliveryDirectives&&(C=!1),m=P.level),E=!0;break;case x.ErrorDetails.REMUX_ALLOC_ERROR:m=v.level,E=!0;break}m!==void 0&&this.recoverLevel(v,m,E,C)},p.recoverLevel=function(S,v,P,R){var E=S.details,C=this._levels[v];if(C.loadError++,P){var m=this.retryLoadingOrFail(S);if(m)S.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(R){var T=C.url.length;if(T>1&&C.loadError<T)S.levelRetry=!0,this.redundantFailover(v);else if(this.manualLevelIndex===-1){var I=v===0?this._levels.length-1:v-1;this.currentLevelIndex!==I&&this._levels[I].loadError===0&&(this.warn(E+": switch to "+I),S.levelRetry=!0,this.hls.nextAutoLevel=I)}}},p.redundantFailover=function(S){var v=this._levels[S],P=v.url.length;if(P>1){var R=(v.urlId+1)%P;this.warn("Switching to redundant URL-id "+R),this._levels.forEach(function(E){E.urlId=R}),this.level=S}},p.onFragLoaded=function(S,v){var P=v.frag;if(P!==void 0&&P.type===d.PlaylistLevelType.MAIN){var R=this._levels[P.level];R!==void 0&&(R.fragmentError=0,R.loadError=0)}},p.onLevelLoaded=function(S,v){var P,R=v.level,E=v.details,C=this._levels[R];if(!C){var m;this.warn("Invalid level index "+R),(m=v.deliveryDirectives)!==null&&m!==void 0&&m.skip&&(E.deltaUpdateFailed=!0);return}R===this.currentLevelIndex?(C.fragmentError===0&&(C.loadError=0,this.retryCount=0),this.playlistLoaded(R,v,C.details)):(P=v.deliveryDirectives)!==null&&P!==void 0&&P.skip&&(E.deltaUpdateFailed=!0)},p.onAudioTrackSwitched=function(S,v){var P=this.hls.levels[this.currentLevelIndex];if(!P)return;if(P.audioGroupIds){for(var R=-1,E=this.hls.audioTracks[v.id].groupId,C=0;C<P.audioGroupIds.length;C++)if(P.audioGroupIds[C]===E){R=C;break}R!==P.urlId&&(P.urlId=R,this.startLoad())}},p.loadPlaylist=function(S){var v=this.currentLevelIndex,P=this._levels[v];if(this.canLoad&&P&&P.url.length>0){var R=P.urlId,E=P.url[R];if(S)try{E=S.addDirectives(E)}catch(C){this.warn("Could not construct new URL with HLS Delivery Directives: "+C)}this.log("Attempt loading level index "+v+(S?" at sn "+S.msn+" part "+S.part:"")+" with URL-id "+R+" "+E),this.clearTimer(),this.hls.trigger(y.Events.LEVEL_LOADING,{url:E,level:v,id:R,deliveryDirectives:S||null})}},p.removeLevel=function(S,v){var P=function(C,m){return m!==v},R=this._levels.filter(function(E,C){return C!==S?!0:E.url.length>1&&v!==void 0?(E.url=E.url.filter(P),E.audioGroupIds&&(E.audioGroupIds=E.audioGroupIds.filter(P)),E.textGroupIds&&(E.textGroupIds=E.textGroupIds.filter(P)),E.urlId=0,!0):!1}).map(function(E,C){var m=E.details;return m!=null&&m.fragments&&m.fragments.forEach(function(T){T.level=C}),E});this._levels=R,this.hls.trigger(y.Events.LEVELS_UPDATED,{levels:R})},t(s,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(S){var v,P=this._levels;if(P.length===0)return;if(this.currentLevelIndex===S&&(v=P[S])!==null&&v!==void 0&&v.details)return;if(S<0||S>=P.length){var R=S<0;if(this.hls.trigger(y.Events.ERROR,{type:x.ErrorTypes.OTHER_ERROR,details:x.ErrorDetails.LEVEL_SWITCH_ERROR,level:S,fatal:R,reason:"invalid level idx"}),R)return;S=Math.min(S,P.length-1)}this.clearTimer();var E=this.currentLevelIndex,C=P[E],m=P[S];this.log("switching to level "+S+" from "+E),this.currentLevelIndex=S;var T=r({},m,{level:S,maxBitrate:m.maxBitrate,uri:m.uri,urlId:m.urlId});delete T._urlId,this.hls.trigger(y.Events.LEVEL_SWITCHING,T);var I=m.details;if(!I||I.live){var D=this.switchParams(m.uri,C==null?void 0:C.details);this.loadPlaylist(D)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(S){this.manualLevelIndex=S,this._startLevel===void 0&&(this._startLevel=S),S!==-1&&(this.level=S)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(S){this._firstLevel=S}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var S=this.hls.config.startLevel;return S!==void 0?S:this._firstLevel}else return this._startLevel},set:function(S){this._startLevel=S}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(S){this.level=S,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=S)}}]),s}(_.default)},"./src/controller/level-helper.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"addGroupId",function(){return x}),A.d(g,"assignTrackIdsByGroup",function(){return w}),A.d(g,"updatePTS",function(){return f}),A.d(g,"updateFragPTSDTS",function(){return d}),A.d(g,"mergeDetails",function(){return r}),A.d(g,"mapPartIntersection",function(){return u}),A.d(g,"mapFragmentIntersection",function(){return t}),A.d(g,"adjustSliding",function(){return a}),A.d(g,"addSliding",function(){return n}),A.d(g,"computeReloadInterval",function(){return i}),A.d(g,"getFragmentWithSN",function(){return h}),A.d(g,"getPartWith",function(){return l});var b=A("./src/polyfills/number.ts"),y=A("./src/utils/logger.ts");function x(s,p,O){switch(p){case"audio":s.audioGroupIds||(s.audioGroupIds=[]),s.audioGroupIds.push(O);break;case"text":s.textGroupIds||(s.textGroupIds=[]),s.textGroupIds.push(O);break}}function w(s){var p={};s.forEach(function(O){var S=O.groupId||"";O.id=p[S]=p[S]||0,p[S]++})}function f(s,p,O){var S=s[p],v=s[O];_(S,v)}function _(s,p){var O=p.startPTS;if(Object(b.isFiniteNumber)(O)){var S=0,v;p.sn>s.sn?(S=O-s.start,v=s):(S=s.start-O,v=p),v.duration!==S&&(v.duration=S)}else if(p.sn>s.sn){var P=s.cc===p.cc;P&&s.minEndPTS?p.start=s.start+(s.minEndPTS-s.start):p.start=s.start+s.duration}else p.start=Math.max(s.start-p.duration,0)}function d(s,p,O,S,v,P){var R=S-O;R<=0&&(y.logger.warn("Fragment should have a positive duration",p),S=O+p.duration,P=v+p.duration);var E=O,C=S,m=p.startPTS,T=p.endPTS;if(Object(b.isFiniteNumber)(m)){var I=Math.abs(m-O);Object(b.isFiniteNumber)(p.deltaPTS)?p.deltaPTS=Math.max(I,p.deltaPTS):p.deltaPTS=I,E=Math.max(O,m),O=Math.min(O,m),v=Math.min(v,p.startDTS),C=Math.min(S,T),S=Math.max(S,T),P=Math.max(P,p.endDTS)}p.duration=S-O;var D=O-p.start;p.appendedPTS=S,p.start=p.startPTS=O,p.maxStartPTS=E,p.startDTS=v,p.endPTS=S,p.minEndPTS=C,p.endDTS=P;var N=p.sn;if(!s||N<s.startSN||N>s.endSN)return 0;var z,F=N-s.startSN,W=s.fragments;for(W[F]=p,z=F;z>0;z--)_(W[z],W[z-1]);for(z=F;z<W.length-1;z++)_(W[z],W[z+1]);return s.fragmentHint&&_(W[W.length-1],s.fragmentHint),s.PTSKnown=s.alignedSliding=!0,D}function r(s,p){for(var O=null,S=s.fragments,v=S.length-1;v>=0;v--){var P=S[v].initSegment;if(P){O=P;break}}s.fragmentHint&&delete s.fragmentHint.endPTS;var R=0,E;if(t(s,p,function(z,F){z.relurl&&(R=z.cc-F.cc),Object(b.isFiniteNumber)(z.startPTS)&&Object(b.isFiniteNumber)(z.endPTS)&&(F.start=F.startPTS=z.startPTS,F.startDTS=z.startDTS,F.appendedPTS=z.appendedPTS,F.maxStartPTS=z.maxStartPTS,F.endPTS=z.endPTS,F.endDTS=z.endDTS,F.minEndPTS=z.minEndPTS,F.duration=z.endPTS-z.startPTS,F.duration&&(E=F),p.PTSKnown=p.alignedSliding=!0),F.elementaryStreams=z.elementaryStreams,F.loader=z.loader,F.stats=z.stats,F.urlId=z.urlId,z.initSegment&&(F.initSegment=z.initSegment,O=z.initSegment)}),O){var C=p.fragmentHint?p.fragments.concat(p.fragmentHint):p.fragments;C.forEach(function(z){var F;(!z.initSegment||z.initSegment.relurl===((F=O)===null||F===void 0?void 0:F.relurl))&&(z.initSegment=O)})}if(p.skippedSegments&&(p.deltaUpdateFailed=p.fragments.some(function(z){return!z}),p.deltaUpdateFailed)){y.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var m=p.skippedSegments;m--;)p.fragments.shift();p.startSN=p.fragments[0].sn,p.startCC=p.fragments[0].cc}var T=p.fragments;if(R){y.logger.warn("discontinuity sliding from playlist, take drift into account");for(var I=0;I<T.length;I++)T[I].cc+=R}p.skippedSegments&&(p.startCC=p.fragments[0].cc),u(s.partList,p.partList,function(z,F){F.elementaryStreams=z.elementaryStreams,F.stats=z.stats}),E?d(p,E,E.startPTS,E.endPTS,E.startDTS,E.endDTS):a(s,p),T.length&&(p.totalduration=p.edge-T[0].start),p.driftStartTime=s.driftStartTime,p.driftStart=s.driftStart;var D=p.advancedDateTime;if(p.advanced&&D){var N=p.edge;p.driftStart||(p.driftStartTime=D,p.driftStart=N),p.driftEndTime=D,p.driftEnd=N}else p.driftEndTime=s.driftEndTime,p.driftEnd=s.driftEnd,p.advancedDateTime=s.advancedDateTime}function u(s,p,O){if(s&&p)for(var S=0,v=0,P=s.length;v<=P;v++){var R=s[v],E=p[v+S];R&&E&&R.index===E.index&&R.fragment.sn===E.fragment.sn?O(R,E):S--}}function t(s,p,O){for(var S=p.skippedSegments,v=Math.max(s.startSN,p.startSN)-p.startSN,P=(s.fragmentHint?1:0)+(S?p.endSN:Math.min(s.endSN,p.endSN))-p.startSN,R=p.startSN-s.startSN,E=p.fragmentHint?p.fragments.concat(p.fragmentHint):p.fragments,C=s.fragmentHint?s.fragments.concat(s.fragmentHint):s.fragments,m=v;m<=P;m++){var T=C[R+m],I=E[m];S&&!I&&m<S&&(I=p.fragments[m]=T),T&&I&&O(T,I)}}function a(s,p){var O=p.startSN+p.skippedSegments-s.startSN,S=s.fragments;if(O<0||O>=S.length)return;n(p,S[O].start)}function n(s,p){if(p){for(var O=s.fragments,S=s.skippedSegments;S<O.length;S++)O[S].start+=p;s.fragmentHint&&(s.fragmentHint.start+=p)}}function i(s,p){var O=1e3*s.levelTargetDuration,S=O/2,v=s.age,P=v>0&&v<O*3,R=p.loading.end-p.loading.start,E,C=s.availabilityDelay;if(s.updated===!1)if(P){var m=333*s.misses;E=Math.max(Math.min(S,R*2),m),s.availabilityDelay=(s.availabilityDelay||0)+E}else E=S;else P?(C=Math.min(C||O/2,v),s.availabilityDelay=C,E=C+O-v):E=O-R;return Math.round(E)}function h(s,p,O){if(!s||!s.details)return null;var S=s.details,v=S.fragments[p-S.startSN];return v||(v=S.fragmentHint,v&&v.sn===p?v:p<S.startSN&&O&&O.sn===p?O:null)}function l(s,p,O){if(!s||!s.details)return null;var S=s.details.partList;if(S)for(var v=S.length;v--;){var P=S[v];if(P.index===O&&P.fragment.sn===p)return P}return null}},"./src/controller/stream-controller.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"default",function(){return S});var b=A("./src/polyfills/number.ts"),y=A("./src/controller/base-stream-controller.ts"),x=A("./src/is-supported.ts"),w=A("./src/events.ts"),f=A("./src/utils/buffer-helper.ts"),_=A("./src/controller/fragment-tracker.ts"),d=A("./src/types/loader.ts"),r=A("./src/loader/fragment.ts"),u=A("./src/demux/transmuxer-interface.ts"),t=A("./src/types/transmuxer.ts"),a=A("./src/controller/gap-controller.ts"),n=A("./src/errors.ts"),i=A("./src/utils/logger.ts");function h(v,P){for(var R=0;R<P.length;R++){var E=P[R];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(v,E.key,E)}}function l(v,P,R){return P&&h(v.prototype,P),R&&h(v,R),v}function s(v,P){v.prototype=Object.create(P.prototype),v.prototype.constructor=v,p(v,P)}function p(v,P){return p=Object.setPrototypeOf||function(E,C){return E.__proto__=C,E},p(v,P)}var O=100,S=function(v){s(P,v);function P(E,C){var m;return m=v.call(this,E,C,"[stream-controller]")||this,m.audioCodecSwap=!1,m.gapController=null,m.level=-1,m._forceStartLoad=!1,m.altAudio=!1,m.audioOnly=!1,m.fragPlaying=null,m.onvplaying=null,m.onvseeked=null,m.fragLastKbps=0,m.stalled=!1,m.couldBacktrack=!1,m.audioCodecSwitch=!1,m.videoBuffer=null,m._registerListeners(),m}var R=P.prototype;return R._registerListeners=function(){var C=this.hls;C.on(w.Events.MEDIA_ATTACHED,this.onMediaAttached,this),C.on(w.Events.MEDIA_DETACHING,this.onMediaDetaching,this),C.on(w.Events.MANIFEST_LOADING,this.onManifestLoading,this),C.on(w.Events.MANIFEST_PARSED,this.onManifestParsed,this),C.on(w.Events.LEVEL_LOADING,this.onLevelLoading,this),C.on(w.Events.LEVEL_LOADED,this.onLevelLoaded,this),C.on(w.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),C.on(w.Events.ERROR,this.onError,this),C.on(w.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),C.on(w.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),C.on(w.Events.BUFFER_CREATED,this.onBufferCreated,this),C.on(w.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),C.on(w.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),C.on(w.Events.FRAG_BUFFERED,this.onFragBuffered,this)},R._unregisterListeners=function(){var C=this.hls;C.off(w.Events.MEDIA_ATTACHED,this.onMediaAttached,this),C.off(w.Events.MEDIA_DETACHING,this.onMediaDetaching,this),C.off(w.Events.MANIFEST_LOADING,this.onManifestLoading,this),C.off(w.Events.MANIFEST_PARSED,this.onManifestParsed,this),C.off(w.Events.LEVEL_LOADED,this.onLevelLoaded,this),C.off(w.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),C.off(w.Events.ERROR,this.onError,this),C.off(w.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),C.off(w.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),C.off(w.Events.BUFFER_CREATED,this.onBufferCreated,this),C.off(w.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),C.off(w.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),C.off(w.Events.FRAG_BUFFERED,this.onFragBuffered,this)},R.onHandlerDestroying=function(){this._unregisterListeners(),this.onMediaDetaching()},R.startLoad=function(C){if(this.levels){var m=this.lastCurrentTime,T=this.hls;if(this.stopLoad(),this.setInterval(O),this.level=-1,this.fragLoadError=0,!this.startFragRequested){var I=T.startLevel;I===-1&&(T.config.testBandwidth?(I=0,this.bitrateTest=!0):I=T.nextAutoLevel),this.level=T.nextLoadLevel=I,this.loadedmetadata=!1}m>0&&C===-1&&(this.log("Override startPosition with lastCurrentTime @"+m.toFixed(3)),C=m),this.state=y.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=C,this.tick()}else this._forceStartLoad=!0,this.state=y.State.STOPPED},R.stopLoad=function(){this._forceStartLoad=!1,v.prototype.stopLoad.call(this)},R.doTick=function(){switch(this.state){case y.State.IDLE:this.doTickIdle();break;case y.State.WAITING_LEVEL:{var C,m=this.levels,T=this.level,I=m==null||((C=m[T])===null||C===void 0)?void 0:C.details;if(I&&(!I.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(I))break;this.state=y.State.IDLE;break}break}case y.State.FRAG_LOADING_WAITING_RETRY:{var D,N=self.performance.now(),z=this.retryDate;(!z||N>=z||(D=this.media)!==null&&D!==void 0&&D.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=y.State.IDLE)}break;default:break}this.onTickEnd()},R.onTickEnd=function(){v.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},R.doTickIdle=function(){var C,m,T=this.hls,I=this.levelLastLoaded,D=this.levels,N=this.media,z=T.config,F=T.nextLoadLevel;if(I===null||!N&&(this.startFragRequested||!z.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!D||!D[F])return;var W=D[F];this.level=T.nextLoadLevel=F;var K=W.details;if(!K||this.state===y.State.WAITING_LEVEL||K.live&&this.levelLastLoaded!==F){this.state=y.State.WAITING_LEVEL;return}var B=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:N,d.PlaylistLevelType.MAIN);if(B===null)return;var k=B.len,G=this.getMaxBufferLength(W.maxBitrate);if(k>=G)return;if(this._streamEnded(B,K)){var ne={};this.altAudio&&(ne.type="video"),this.hls.trigger(w.Events.BUFFER_EOS,ne),this.state=y.State.ENDED;return}var fe=B.end,de=this.getNextFragment(fe,K);if(this.couldBacktrack&&!this.fragPrevious&&de&&de.sn!=="initSegment"){var xe=de.sn-K.startSN;xe>1&&(de=K.fragments[xe-1],this.fragmentTracker.removeFragment(de))}if(de&&this.fragmentTracker.getState(de)===_.FragmentState.OK&&this.nextLoadPosition>fe){var Oe=this.audioOnly&&!this.altAudio?r.ElementaryStreamTypes.AUDIO:r.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(N,Oe,d.PlaylistLevelType.MAIN),de=this.getNextFragment(this.nextLoadPosition,K)}if(!de)return;de.initSegment&&!de.initSegment.data&&!this.bitrateTest&&(de=de.initSegment),((C=de.decryptdata)===null||C===void 0?void 0:C.keyFormat)==="identity"&&!((m=de.decryptdata)!==null&&m!==void 0&&m.key)?this.loadKey(de,K):this.loadFragment(de,K,fe)},R.loadFragment=function(C,m,T){var I,D=this.fragmentTracker.getState(C);if(this.fragCurrent=C,D===_.FragmentState.BACKTRACKED){var N=this.fragmentTracker.getBacktrackData(C);if(N){this._handleFragmentLoadProgress(N),this._handleFragmentLoadComplete(N);return}else D=_.FragmentState.NOT_LOADED}D===_.FragmentState.NOT_LOADED||D===_.FragmentState.PARTIAL?C.sn==="initSegment"?this._loadInitSegment(C):this.bitrateTest?(C.bitrateTest=!0,this.log("Fragment "+C.sn+" of level "+C.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(C)):(this.startFragRequested=!0,v.prototype.loadFragment.call(this,C,m,T)):D===_.FragmentState.APPENDING?this.reduceMaxBufferLength(C.duration)&&this.fragmentTracker.removeFragment(C):((I=this.media)===null||I===void 0?void 0:I.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},R.getAppendedFrag=function(C){var m=this.fragmentTracker.getAppendedFrag(C,d.PlaylistLevelType.MAIN);return m&&"fragment"in m?m.fragment:m},R.getBufferedFrag=function(C){return this.fragmentTracker.getBufferedFrag(C,d.PlaylistLevelType.MAIN)},R.followingBufferedFrag=function(C){return C?this.getBufferedFrag(C.end+.5):null},R.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},R.nextLevelSwitch=function(){var C=this.levels,m=this.media;if(m!=null&&m.readyState){var T,I=this.getAppendedFrag(m.currentTime);if(I&&I.start>1&&this.flushMainBuffer(0,I.start-1),!m.paused&&C){var D=this.hls.nextLoadLevel,N=C[D],z=this.fragLastKbps;z&&this.fragCurrent?T=this.fragCurrent.duration*N.maxBitrate/(1e3*z)+1:T=0}else T=0;var F=this.getBufferedFrag(m.currentTime+T);if(F){var W=this.followingBufferedFrag(F);if(W){this.abortCurrentFrag();var K=W.maxStartPTS?W.maxStartPTS:W.start,B=W.duration,k=Math.max(F.end,K+Math.min(Math.max(B-this.config.maxFragLookUpTolerance,B*.5),B*.75));this.flushMainBuffer(k,Number.POSITIVE_INFINITY)}}}},R.abortCurrentFrag=function(){var C=this.fragCurrent;this.fragCurrent=null,C!=null&&C.loader&&C.loader.abort(),this.state===y.State.KEY_LOADING&&(this.state=y.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},R.flushMainBuffer=function(C,m){v.prototype.flushMainBuffer.call(this,C,m,this.altAudio?"video":null)},R.onMediaAttached=function(C,m){v.prototype.onMediaAttached.call(this,C,m);var T=m.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),T.addEventListener("playing",this.onvplaying),T.addEventListener("seeked",this.onvseeked),this.gapController=new a.default(this.config,T,this.fragmentTracker,this.hls)},R.onMediaDetaching=function(){var C=this.media;C&&(C.removeEventListener("playing",this.onvplaying),C.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)},R.onMediaPlaying=function(){this.tick()},R.onMediaSeeked=function(){var C=this.media,m=C?C.currentTime:null;Object(b.isFiniteNumber)(m)&&this.log("Media seeked to "+m.toFixed(3)),this.tick()},R.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(w.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},R.onManifestParsed=function(C,m){var T=!1,I=!1,D;m.levels.forEach(function(N){D=N.audioCodec,D&&(D.indexOf("mp4a.40.2")!==-1&&(T=!0),D.indexOf("mp4a.40.5")!==-1&&(I=!0))}),this.audioCodecSwitch=T&&I&&!Object(x.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=m.levels,this.startFragRequested=!1},R.onLevelLoading=function(C,m){var T=this.levels;if(!T||this.state!==y.State.IDLE)return;var I=T[m.level];(!I.details||I.details.live&&this.levelLastLoaded!==m.level||this.waitForCdnTuneIn(I.details))&&(this.state=y.State.WAITING_LEVEL)},R.onLevelLoaded=function(C,m){var T,I=this.levels,D=m.level,N=m.details,z=N.totalduration;if(!I){this.warn("Levels were reset while loading level "+D);return}this.log("Level "+D+" loaded ["+N.startSN+","+N.endSN+"], cc ["+N.startCC+", "+N.endCC+"] duration:"+z);var F=this.fragCurrent;F&&(this.state===y.State.FRAG_LOADING||this.state===y.State.FRAG_LOADING_WAITING_RETRY)&&(F.level!==m.level&&F.loader&&(this.state=y.State.IDLE,F.loader.abort()));var W=I[D],K=0;if(N.live||(T=W.details)!==null&&T!==void 0&&T.live){if(N.fragments[0]||(N.deltaUpdateFailed=!0),N.deltaUpdateFailed)return;K=this.alignPlaylists(N,W.details)}if(W.details=N,this.levelLastLoaded=D,this.hls.trigger(w.Events.LEVEL_UPDATED,{details:N,level:D}),this.state===y.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(N))return;this.state=y.State.IDLE}this.startFragRequested?N.live&&this.synchronizeToLiveEdge(N):this.setStartPosition(N,K),this.tick()},R._handleFragmentLoadProgress=function(C){var m,T=C.frag,I=C.part,D=C.payload,N=this.levels;if(!N){this.warn("Levels were reset while fragment load was in progress. Fragment "+T.sn+" of level "+T.level+" will not be buffered");return}var z=N[T.level],F=z.details;if(!F){this.warn("Dropping fragment "+T.sn+" of level "+T.level+" after level details were reset");return}var W=z.videoCodec,K=F.PTSKnown||!F.live,B=(m=T.initSegment)===null||m===void 0?void 0:m.data,k=this._getAudioCodec(z),G=this.transmuxer=this.transmuxer||new u.default(this.hls,d.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),ne=I?I.index:-1,fe=ne!==-1,de=new t.ChunkMetadata(T.level,T.sn,T.stats.chunkCount,D.byteLength,ne,fe),xe=this.initPTS[T.cc];G.push(D,B,k,W,T,I,F.totalduration,K,de,xe)},R.onAudioTrackSwitching=function(C,m){var T=this.altAudio,I=!!m.url,D=m.id;if(!I){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var N=this.fragCurrent;N!=null&&N.loader&&(this.log("Switching to main audio track, cancel main fragment load"),N.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var z=this.hls;T&&z.trigger(w.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),z.trigger(w.Events.AUDIO_TRACK_SWITCHED,{id:D})}},R.onAudioTrackSwitched=function(C,m){var T=m.id,I=!!this.hls.audioTracks[T].url;if(I){var D=this.videoBuffer;D&&this.mediaBuffer!==D&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=D)}this.altAudio=I,this.tick()},R.onBufferCreated=function(C,m){var T=m.tracks,I,D,N=!1;for(var z in T){var F=T[z];if(F.id==="main"){if(D=z,I=F,z==="video"){var W=T[z];W&&(this.videoBuffer=W.buffer)}}else N=!0}N&&I?(this.log("Alternate track found, use "+D+".buffered to schedule main fragment loading"),this.mediaBuffer=I.buffer):this.mediaBuffer=this.media},R.onFragBuffered=function(C,m){var T=m.frag,I=m.part;if(T&&T.type!==d.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(T)){this.warn("Fragment "+T.sn+(I?" p: "+I.index:"")+" of level "+T.level+" finished buffering, but was aborted. state: "+this.state),this.state===y.State.PARSED&&(this.state=y.State.IDLE);return}var D=I?I.stats:T.stats;this.fragLastKbps=Math.round(8*D.total/(D.buffering.end-D.loading.first)),T.sn!=="initSegment"&&(this.fragPrevious=T),this.fragBufferedComplete(T,I)},R.onError=function(C,m){switch(m.details){case n.ErrorDetails.FRAG_LOAD_ERROR:case n.ErrorDetails.FRAG_LOAD_TIMEOUT:case n.ErrorDetails.KEY_LOAD_ERROR:case n.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(d.PlaylistLevelType.MAIN,m);break;case n.ErrorDetails.LEVEL_LOAD_ERROR:case n.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==y.State.ERROR&&(m.fatal?(this.warn(""+m.details),this.state=y.State.ERROR):!m.levelRetry&&this.state===y.State.WAITING_LEVEL&&(this.state=y.State.IDLE));break;case n.ErrorDetails.BUFFER_FULL_ERROR:if(m.parent==="main"&&(this.state===y.State.PARSING||this.state===y.State.PARSED)){var T=!0,I=this.getFwdBufferInfo(this.media,d.PlaylistLevelType.MAIN);I&&I.len>.5&&(T=!this.reduceMaxBufferLength(I.len)),T&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},R.checkBuffer=function(){var C=this.media,m=this.gapController;if(!C||!m||!C.readyState)return;var T=f.BufferHelper.getBuffered(C);!this.loadedmetadata&&T.length?(this.loadedmetadata=!0,this.seekToStartPos()):m.poll(this.lastCurrentTime),this.lastCurrentTime=C.currentTime},R.onFragLoadEmergencyAborted=function(){this.state=y.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},R.onBufferFlushed=function(C,m){var T=m.type;if(T!==r.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var I=(T===r.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(I,T,d.PlaylistLevelType.MAIN)}},R.onLevelsUpdated=function(C,m){this.levels=m.levels},R.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},R.seekToStartPos=function(){var C=this.media,m=C.currentTime,T=this.startPosition;if(T>=0&&m<T){if(C.seeking){i.logger.log("could not seek to "+T+", already seeking at "+m);return}var I=f.BufferHelper.getBuffered(C),D=I.length?I.start(0):0,N=D-T;N>0&&(N<this.config.maxBufferHole||N<this.config.maxFragLookUpTolerance)&&(i.logger.log("adjusting start position by "+N+" to match buffer start"),T+=N,this.startPosition=T),this.log("seek to target start position "+T+" from current time "+m),C.currentTime=T}},R._getAudioCodec=function(C){var m=this.config.defaultAudioCodec||C.audioCodec;return this.audioCodecSwap&&m&&(this.log("Swapping audio codec"),m.indexOf("mp4a.40.5")!==-1?m="mp4a.40.2":m="mp4a.40.5"),m},R._loadBitrateTestFrag=function(C){var m=this;this._doFragLoad(C).then(function(T){var I=m.hls;if(!T||I.nextLoadLevel||m.fragContextChanged(C))return;m.fragLoadError=0,m.state=y.State.IDLE,m.startFragRequested=!1,m.bitrateTest=!1;var D=C.stats;D.parsing.start=D.parsing.end=D.buffering.start=D.buffering.end=self.performance.now(),I.trigger(w.Events.FRAG_LOADED,T)})},R._handleTransmuxComplete=function(C){var m,T="main",I=this.hls,D=C.remuxResult,N=C.chunkMeta,z=this.getCurrentContext(N);if(!z){this.warn("The loading context changed while buffering fragment "+N.sn+" of level "+N.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(N.level);return}var F=z.frag,W=z.part,K=z.level,B=D.video,k=D.text,G=D.id3,ne=D.initSegment,fe=this.altAudio?void 0:D.audio;if(this.fragContextChanged(F))return;if(this.state=y.State.PARSING,ne){ne.tracks&&(this._bufferInitSegment(K,ne.tracks,F,N),I.trigger(w.Events.FRAG_PARSING_INIT_SEGMENT,{frag:F,id:T,tracks:ne.tracks}));var de=ne.initPTS,xe=ne.timescale;Object(b.isFiniteNumber)(de)&&(this.initPTS[F.cc]=de,I.trigger(w.Events.INIT_PTS_FOUND,{frag:F,id:T,initPTS:de,timescale:xe}))}if(B&&D.independent!==!1){if(K.details){var Oe=B.startPTS,ce=B.endPTS,be=B.startDTS,ve=B.endDTS;if(W)W.elementaryStreams[B.type]={startPTS:Oe,endPTS:ce,startDTS:be,endDTS:ve};else if(B.firstKeyFrame&&B.independent&&(this.couldBacktrack=!0),B.dropped&&B.independent){var ue=this.getLoadPosition()+this.config.maxBufferHole;if(ue<Oe){this.backtrack(F);return}F.setElementaryStreamInfo(B.type,F.start,ce,F.start,ve,!0)}F.setElementaryStreamInfo(B.type,Oe,ce,be,ve),this.bufferFragmentData(B,F,W,N)}}else if(D.independent===!1){this.backtrack(F);return}if(fe){var se=fe.startPTS,q=fe.endPTS,me=fe.startDTS,re=fe.endDTS;W&&(W.elementaryStreams[r.ElementaryStreamTypes.AUDIO]={startPTS:se,endPTS:q,startDTS:me,endDTS:re}),F.setElementaryStreamInfo(r.ElementaryStreamTypes.AUDIO,se,q,me,re),this.bufferFragmentData(fe,F,W,N)}if(G!=null&&(m=G.samples)!==null&&m!==void 0&&m.length){var ie={frag:F,id:T,samples:G.samples};I.trigger(w.Events.FRAG_PARSING_METADATA,ie)}if(k){var we={frag:F,id:T,samples:k.samples};I.trigger(w.Events.FRAG_PARSING_USERDATA,we)}},R._bufferInitSegment=function(C,m,T,I){var D=this;if(this.state!==y.State.PARSING)return;this.audioOnly=!!m.audio&&!m.video,this.altAudio&&!this.audioOnly&&delete m.audio;var N=m.audio,z=m.video,F=m.audiovideo;if(N){var W=C.audioCodec,K=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(W&&(W.indexOf("mp4a.40.5")!==-1?W="mp4a.40.2":W="mp4a.40.5"),N.metadata.channelCount!==1&&K.indexOf("firefox")===-1&&(W="mp4a.40.5")),K.indexOf("android")!==-1&&N.container!=="audio/mpeg"&&(W="mp4a.40.2",this.log("Android: force audio codec to "+W)),C.audioCodec&&C.audioCodec!==W&&this.log('Swapping manifest audio codec "'+C.audioCodec+'" for "'+W+'"'),N.levelCodec=W,N.id="main",this.log("Init audio buffer, container:"+N.container+", codecs[selected/level/parsed]=["+(W||"")+"/"+(C.audioCodec||"")+"/"+N.codec+"]")}z&&(z.levelCodec=C.videoCodec,z.id="main",this.log("Init video buffer, container:"+z.container+", codecs[level/parsed]=["+(C.videoCodec||"")+"/"+z.codec+"]")),F&&this.log("Init audiovideo buffer, container:"+F.container+", codecs[level/parsed]=["+(C.attrs.CODECS||"")+"/"+F.codec+"]"),this.hls.trigger(w.Events.BUFFER_CODECS,m),Object.keys(m).forEach(function(B){var k=m[B],G=k.initSegment;G!=null&&G.byteLength&&D.hls.trigger(w.Events.BUFFER_APPENDING,{type:B,data:G,frag:T,part:null,chunkMeta:I,parent:T.type})}),this.tick()},R.backtrack=function(C){this.couldBacktrack=!0,this.resetTransmuxer(),this.flushBufferGap(C);var m=this.fragmentTracker.backtrack(C);this.fragPrevious=null,this.nextLoadPosition=C.start,m?this.resetFragmentLoading(C):this.state=y.State.BACKTRACKING},R.checkFragmentChanged=function(){var C=this.media,m=null;if(C&&C.readyState>1&&C.seeking===!1){var T=C.currentTime;if(f.BufferHelper.isBuffered(C,T)?m=this.getAppendedFrag(T):f.BufferHelper.isBuffered(C,T+.1)&&(m=this.getAppendedFrag(T+.1)),m){var I=this.fragPlaying,D=m.level;(!I||m.sn!==I.sn||I.level!==D||m.urlId!==I.urlId)&&(this.hls.trigger(w.Events.FRAG_CHANGED,{frag:m}),(!I||I.level!==D)&&this.hls.trigger(w.Events.LEVEL_SWITCHED,{level:D}),this.fragPlaying=m)}}},l(P,[{key:"nextLevel",get:function(){var C=this.nextBufferedFrag;return C?C.level:-1}},{key:"currentLevel",get:function(){var C=this.media;if(C){var m=this.getAppendedFrag(C.currentTime);if(m)return m.level}return-1}},{key:"nextBufferedFrag",get:function(){var C=this.media;if(C){var m=this.getAppendedFrag(C.currentTime);return this.followingBufferedFrag(m)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),P}(y.default)},"./src/controller/subtitle-stream-controller.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"SubtitleStreamController",function(){return s});var b=A("./src/events.ts"),y=A("./src/utils/logger.ts"),x=A("./src/utils/buffer-helper.ts"),w=A("./src/controller/fragment-finders.ts"),f=A("./src/utils/discontinuities.ts"),_=A("./src/controller/level-helper.ts"),d=A("./src/controller/fragment-tracker.ts"),r=A("./src/controller/base-stream-controller.ts"),u=A("./src/types/loader.ts"),t=A("./src/types/level.ts");function a(p,O){for(var S=0;S<O.length;S++){var v=O[S];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(p,v.key,v)}}function n(p,O,S){return O&&a(p.prototype,O),S&&a(p,S),p}function i(p,O){p.prototype=Object.create(O.prototype),p.prototype.constructor=p,h(p,O)}function h(p,O){return h=Object.setPrototypeOf||function(v,P){return v.__proto__=P,v},h(p,O)}var l=500,s=function(p){i(O,p);function O(v,P){var R;return R=p.call(this,v,P,"[subtitle-stream-controller]")||this,R.levels=[],R.currentTrackId=-1,R.tracksBuffered=[],R.mainDetails=null,R._registerListeners(),R}var S=O.prototype;return S.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},S._registerListeners=function(){var P=this.hls;P.on(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),P.on(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),P.on(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),P.on(b.Events.LEVEL_LOADED,this.onLevelLoaded,this),P.on(b.Events.ERROR,this.onError,this),P.on(b.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),P.on(b.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),P.on(b.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),P.on(b.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),P.on(b.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},S._unregisterListeners=function(){var P=this.hls;P.off(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),P.off(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),P.off(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),P.off(b.Events.LEVEL_LOADED,this.onLevelLoaded,this),P.off(b.Events.ERROR,this.onError,this),P.off(b.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),P.off(b.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),P.off(b.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),P.off(b.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),P.off(b.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},S.startLoad=function(){this.stopLoad(),this.state=r.State.IDLE,this.setInterval(l),this.tick()},S.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()},S.onLevelLoaded=function(P,R){this.mainDetails=R.details},S.onSubtitleFragProcessed=function(P,R){var E=R.frag,C=R.success;if(this.fragPrevious=E,this.state=r.State.IDLE,!C)return;var m=this.tracksBuffered[this.currentTrackId];if(!m)return;for(var T,I=E.start,D=0;D<m.length;D++)if(I>=m[D].start&&I<=m[D].end){T=m[D];break}var N=E.start+E.duration;T?T.end=N:(T={start:I,end:N},m.push(T)),this.fragmentTracker.fragBuffered(E)},S.onBufferFlushing=function(P,R){var E=R.startOffset,C=R.endOffset;if(E===0&&C!==Number.POSITIVE_INFINITY){var m=this.currentTrackId,T=this.levels;if(!T.length||!T[m]||!T[m].details)return;var I=T[m].details,D=I.targetduration,N=C-D;if(N<=0)return;R.endOffsetSubtitles=Math.max(0,N),this.tracksBuffered.forEach(function(z){for(var F=0;F<z.length;){if(z[F].end<=N){z.shift();continue}else if(z[F].start<N)z[F].start=N;else break;F++}}),this.fragmentTracker.removeFragmentsInRange(E,N,u.PlaylistLevelType.SUBTITLE)}},S.onError=function(P,R){var E,C=R.frag;if(!C||C.type!==u.PlaylistLevelType.SUBTITLE)return;(E=this.fragCurrent)!==null&&E!==void 0&&E.loader&&this.fragCurrent.loader.abort(),this.state=r.State.IDLE},S.onSubtitleTracksUpdated=function(P,R){var E=this,C=R.subtitleTracks;this.tracksBuffered=[],this.levels=C.map(function(m){return new t.Level(m)}),this.fragmentTracker.removeAllFragments(),this.fragPrevious=null,this.levels.forEach(function(m){E.tracksBuffered[m.id]=[]}),this.mediaBuffer=null},S.onSubtitleTrackSwitch=function(P,R){if(this.currentTrackId=R.id,!this.levels.length||this.currentTrackId===-1){this.clearInterval();return}var E=this.levels[this.currentTrackId];E!=null&&E.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,E&&this.setInterval(l)},S.onSubtitleTrackLoaded=function(P,R){var E,C=R.details,m=R.id,T=this.currentTrackId,I=this.levels;if(!I.length)return;var D=I[T];if(m>=I.length||m!==T||!D)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,C.live||(E=D.details)!==null&&E!==void 0&&E.live){var N=this.mainDetails;if(C.deltaUpdateFailed||!N)return;var z=N.fragments[0];if(!D.details)C.hasProgramDateTime&&N.hasProgramDateTime?Object(f.alignMediaPlaylistByPDT)(C,N):z&&Object(_.addSliding)(C,z.start);else{var F=this.alignPlaylists(C,D.details);F===0&&z&&Object(_.addSliding)(C,z.start)}}if(D.details=C,this.levelLastLoaded=m,this.tick(),C.live&&!this.fragCurrent&&this.media&&this.state===r.State.IDLE){var W=Object(w.findFragmentByPTS)(null,C.fragments,this.media.currentTime,0);W||(this.warn("Subtitle playlist not aligned with playback"),D.details=void 0)}},S._handleFragmentLoadComplete=function(P){var R=P.frag,E=P.payload,C=R.decryptdata,m=this.hls;if(this.fragContextChanged(R))return;if(E&&E.byteLength>0&&C&&C.key&&C.iv&&C.method==="AES-128"){var T=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(E),C.key.buffer,C.iv.buffer).then(function(I){var D=performance.now();m.trigger(b.Events.FRAG_DECRYPTED,{frag:R,payload:I,stats:{tstart:T,tdecrypt:D}})})}},S.doTick=function(){if(!this.media){this.state=r.State.IDLE;return}if(this.state===r.State.IDLE){var P,R=this.currentTrackId,E=this.levels;if(!E.length||!E[R]||!E[R].details)return;var C=E[R].details,m=C.targetduration,T=this.config,I=this.media,D=x.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,I.currentTime-m,T.maxBufferHole),N=D.end,z=D.len,F=this.getMaxBufferLength()+m;if(z>F)return;console.assert(C,"Subtitle track details are defined on idle subtitle stream controller tick");var W=C.fragments,K=W.length,B=C.edge,k,G=this.fragPrevious;if(N<B){var ne=T.maxFragLookUpTolerance;G&&C.hasProgramDateTime&&(k=Object(w.findFragmentByPDT)(W,G.endProgramDateTime,ne)),k||(k=Object(w.findFragmentByPTS)(G,W,N,ne),!k&&G&&G.start<W[0].start&&(k=W[0]))}else k=W[K-1];(P=k)!==null&&P!==void 0&&P.encrypted?(y.logger.log("Loading key for "+k.sn),this.state=r.State.KEY_LOADING,this.hls.trigger(b.Events.KEY_LOADING,{frag:k})):k&&this.fragmentTracker.getState(k)===d.FragmentState.NOT_LOADED&&this.loadFragment(k,C,N)}},S.loadFragment=function(P,R,E){this.fragCurrent=P,p.prototype.loadFragment.call(this,P,R,E)},n(O,[{key:"mediaBufferTimeRanges",get:function(){return this.tracksBuffered[this.currentTrackId]||[]}}]),O}(r.default)},"./src/controller/subtitle-track-controller.ts":function(L,g,A){"use strict";A.r(g);var b=A("./src/events.ts"),y=A("./src/utils/texttrack-utils.ts"),x=A("./src/controller/base-playlist-controller.ts"),w=A("./src/types/loader.ts");function f(a,n){for(var i=0;i<n.length;i++){var h=n[i];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(a,h.key,h)}}function _(a,n,i){return n&&f(a.prototype,n),i&&f(a,i),a}function d(a,n){a.prototype=Object.create(n.prototype),a.prototype.constructor=a,r(a,n)}function r(a,n){return r=Object.setPrototypeOf||function(h,l){return h.__proto__=l,h},r(a,n)}var u=function(a){d(n,a);function n(h){var l;return l=a.call(this,h,"[subtitle-track-controller]")||this,l.media=null,l.tracks=[],l.groupId=null,l.tracksInGroup=[],l.trackId=-1,l.selectDefaultTrack=!0,l.queuedDefaultTrack=-1,l.trackChangeListener=function(){return l.onTextTracksChanged()},l.asyncPollTrackChange=function(){return l.pollTrackChange(0)},l.useTextTrackPolling=!1,l.subtitlePollingInterval=-1,l.subtitleDisplay=!0,l.registerListeners(),l}var i=n.prototype;return i.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.trackChangeListener=this.asyncPollTrackChange=null,a.prototype.destroy.call(this)},i.registerListeners=function(){var l=this.hls;l.on(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),l.on(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),l.on(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),l.on(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),l.on(b.Events.LEVEL_LOADING,this.onLevelLoading,this),l.on(b.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),l.on(b.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),l.on(b.Events.ERROR,this.onError,this)},i.unregisterListeners=function(){var l=this.hls;l.off(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),l.off(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),l.off(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),l.off(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),l.off(b.Events.LEVEL_LOADING,this.onLevelLoading,this),l.off(b.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),l.off(b.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),l.off(b.Events.ERROR,this.onError,this)},i.onMediaAttached=function(l,s){if(this.media=s.media,!this.media)return;this.queuedDefaultTrack>-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)},i.pollTrackChange=function(l){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,l)},i.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 l=t(this.media.textTracks);l.forEach(function(s){Object(y.clearCurrentCues)(s)}),this.subtitleTrack=-1,this.media=null},i.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},i.onManifestParsed=function(l,s){this.tracks=s.subtitleTracks},i.onSubtitleTrackLoaded=function(l,s){var p=s.id,O=s.details,S=this.trackId,v=this.tracksInGroup[S];if(!v){this.warn("Invalid subtitle track id "+p);return}var P=v.details;v.details=s.details,this.log("subtitle track "+p+" loaded ["+O.startSN+"-"+O.endSN+"]"),p===this.trackId&&(this.retryCount=0,this.playlistLoaded(p,s,P))},i.onLevelLoading=function(l,s){this.switchLevel(s.level)},i.onLevelSwitching=function(l,s){this.switchLevel(s.level)},i.switchLevel=function(l){var s=this.hls.levels[l];if(!(s!=null&&s.textGroupIds))return;var p=s.textGroupIds[s.urlId];if(this.groupId!==p){var O=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,S=this.tracks.filter(function(R){return!p||R.groupId===p});this.tracksInGroup=S;var v=this.findTrackId(O==null?void 0:O.name)||this.findTrackId();this.groupId=p;var P={subtitleTracks:S};this.log("Updating subtitle tracks, "+S.length+' track(s) found in "'+p+'" group-id'),this.hls.trigger(b.Events.SUBTITLE_TRACKS_UPDATED,P),v!==-1&&this.setSubtitleTrack(v,O)}},i.findTrackId=function(l){for(var s=this.tracksInGroup,p=0;p<s.length;p++){var O=s[p];if((!this.selectDefaultTrack||O.default)&&(!l||l===O.name))return O.id}return-1},i.onError=function(l,s){if(a.prototype.onError.call(this,l,s),s.fatal||!s.context)return;s.context.type===w.PlaylistContextType.SUBTITLE_TRACK&&s.context.id===this.trackId&&s.context.groupId===this.groupId&&this.retryLoadingOrFail(s)},i.loadPlaylist=function(l){var s=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(s)){var p=s.id,O=s.groupId,S=s.url;if(l)try{S=l.addDirectives(S)}catch(v){this.warn("Could not construct new URL with HLS Delivery Directives: "+v)}this.log("Loading subtitle playlist for id "+p),this.hls.trigger(b.Events.SUBTITLE_TRACK_LOADING,{url:S,id:p,groupId:O,deliveryDirectives:l||null})}},i.toggleTrackModes=function(l){var s=this,p=this.media,O=this.subtitleDisplay,S=this.trackId;if(!p)return;var v=t(p.textTracks),P=v.filter(function(C){return C.groupId===s.groupId});if(l===-1)[].slice.call(v).forEach(function(C){C.mode="disabled"});else{var R=P[S];R&&(R.mode="disabled")}var E=P[l];E&&(E.mode=O?"showing":"hidden")},i.setSubtitleTrack=function(l,s){var p,O=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=l;return}if(this.trackId!==l&&this.toggleTrackModes(l),this.trackId===l&&(l===-1||(p=O[l])!==null&&p!==void 0&&p.details)||l<-1||l>=O.length)return;this.clearTimer();var S=O[l];if(this.log("Switching to subtitle track "+l),this.trackId=l,S){var v=S.id,P=S.groupId,R=P===void 0?"":P,E=S.name,C=S.type,m=S.url;this.hls.trigger(b.Events.SUBTITLE_TRACK_SWITCH,{id:v,groupId:R,name:E,type:C,url:m});var T=this.switchParams(S.url,s==null?void 0:s.details);this.loadPlaylist(T)}else this.hls.trigger(b.Events.SUBTITLE_TRACK_SWITCH,{id:l})},i.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var l=-1,s=t(this.media.textTracks),p=0;p<s.length;p++)if(s[p].mode==="hidden")l=p;else if(s[p].mode==="showing"){l=p;break}this.subtitleTrack!==l&&(this.subtitleTrack=l)},_(n,[{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(l){this.selectDefaultTrack=!1;var s=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;this.setSubtitleTrack(l,s)}}]),n}(x.default);function t(a){for(var n=[],i=0;i<a.length;i++){var h=a[i];h.kind==="subtitles"&&h.label&&n.push(a[i])}return n}g.default=u},"./src/controller/timeline-controller.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"TimelineController",function(){return t});var b=A("./src/polyfills/number.ts"),y=A("./src/events.ts"),x=A("./src/utils/cea-608-parser.ts"),w=A("./src/utils/output-filter.ts"),f=A("./src/utils/webvtt-parser.ts"),_=A("./src/utils/texttrack-utils.ts"),d=A("./src/utils/imsc1-ttml-parser.ts"),r=A("./src/types/loader.ts"),u=A("./src/utils/logger.ts"),t=function(){function h(s){if(this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.timescale=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=i(),this.captionsProperties=void 0,this.hls=s,this.config=s.config,this.Cues=s.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},this.config.enableCEA708Captions){var p=new w.default(this,"textTrack1"),O=new w.default(this,"textTrack2"),S=new w.default(this,"textTrack3"),v=new w.default(this,"textTrack4");this.cea608Parser1=new x.default(1,p,O),this.cea608Parser2=new x.default(3,S,v)}s.on(y.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),s.on(y.Events.MEDIA_DETACHING,this.onMediaDetaching,this),s.on(y.Events.MANIFEST_LOADING,this.onManifestLoading,this),s.on(y.Events.MANIFEST_LOADED,this.onManifestLoaded,this),s.on(y.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),s.on(y.Events.FRAG_LOADING,this.onFragLoading,this),s.on(y.Events.FRAG_LOADED,this.onFragLoaded,this),s.on(y.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),s.on(y.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),s.on(y.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),s.on(y.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),s.on(y.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)}var l=h.prototype;return l.destroy=function(){var p=this.hls;p.off(y.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),p.off(y.Events.MEDIA_DETACHING,this.onMediaDetaching,this),p.off(y.Events.MANIFEST_LOADING,this.onManifestLoading,this),p.off(y.Events.MANIFEST_LOADED,this.onManifestLoaded,this),p.off(y.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),p.off(y.Events.FRAG_LOADING,this.onFragLoading,this),p.off(y.Events.FRAG_LOADED,this.onFragLoaded,this),p.off(y.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),p.off(y.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),p.off(y.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),p.off(y.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),p.off(y.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null},l.addCues=function(p,O,S,v,P){for(var R=!1,E=P.length;E--;){var C=P[E],m=n(C[0],C[1],O,S);if(m>=0&&(C[0]=Math.min(C[0],O),C[1]=Math.max(C[1],S),R=!0,m/(S-O)>.5))return}if(R||P.push([O,S]),this.config.renderTextTracksNatively){var T=this.captionsTracks[p];this.Cues.newCue(T,O,S,v)}else{var I=this.Cues.newCue(null,O,S,v);this.hls.trigger(y.Events.CUES_PARSED,{type:"captions",cues:I,track:p})}},l.onInitPtsFound=function(p,O){var S=this,v=O.frag,P=O.id,R=O.initPTS,E=O.timescale,C=this.unparsedVttFrags;P==="main"&&(this.initPTS[v.cc]=R,this.timescale[v.cc]=E),C.length&&(this.unparsedVttFrags=[],C.forEach(function(m){S.onFragLoaded(y.Events.FRAG_LOADED,m)}))},l.getExistingTrack=function(p){var O=this.media;if(O)for(var S=0;S<O.textTracks.length;S++){var v=O.textTracks[S];if(v[p])return v}return null},l.createCaptionsTrack=function(p){this.config.renderTextTracksNatively?this.createNativeTrack(p):this.createNonNativeTrack(p)},l.createNativeTrack=function(p){if(this.captionsTracks[p])return;var O=this.captionsProperties,S=this.captionsTracks,v=this.media,P=O[p],R=P.label,E=P.languageCode,C=this.getExistingTrack(p);if(C)S[p]=C,Object(_.clearCurrentCues)(S[p]),Object(_.sendAddTrackEvent)(S[p],v);else{var m=this.createTextTrack("captions",R,E);m&&(m[p]=!0,S[p]=m)}},l.createNonNativeTrack=function(p){if(this.nonNativeCaptionsTracks[p])return;var O=this.captionsProperties[p];if(!O)return;var S=O.label,v={_id:p,label:S,kind:"captions",default:O.media?!!O.media.default:!1,closedCaptions:O.media};this.nonNativeCaptionsTracks[p]=v,this.hls.trigger(y.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[v]})},l.createTextTrack=function(p,O,S){var v=this.media;return v?v.addTextTrack(p,O,S):void 0},l.onMediaAttaching=function(p,O){this.media=O.media,this._cleanTracks()},l.onMediaDetaching=function(){var p=this.captionsTracks;Object.keys(p).forEach(function(O){Object(_.clearCurrentCues)(p[O]),delete p[O]}),this.nonNativeCaptionsTracks={}},l.onManifestLoading=function(){this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=i(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=this.unparsedVttFrags||[],this.initPTS=[],this.timescale=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())},l._cleanTracks=function(){var p=this.media;if(!p)return;var O=p.textTracks;if(O)for(var S=0;S<O.length;S++)Object(_.clearCurrentCues)(O[S])},l.onSubtitleTracksUpdated=function(p,O){var S=this;this.textTracks=[];var v=O.subtitleTracks||[],P=v.some(function(m){return m.textCodec===d.IMSC1_CODEC});if(this.config.enableWebVTT||P&&this.config.enableIMSC1){var R=this.tracks&&v&&this.tracks.length===v.length;if(this.tracks=v||[],this.config.renderTextTracksNatively){var E=this.media?this.media.textTracks:[];this.tracks.forEach(function(m,T){var I;if(T<E.length){for(var D=null,N=0;N<E.length;N++)if(a(E[N],m)){D=E[N];break}D&&(I=D)}I?Object(_.clearCurrentCues)(I):(I=S.createTextTrack("subtitles",m.name,m.lang),I&&(I.mode="disabled")),I&&(I.groupId=m.groupId,S.textTracks.push(I))})}else if(!R&&this.tracks&&this.tracks.length){var C=this.tracks.map(function(m){return{label:m.name,kind:m.type.toLowerCase(),default:m.default,subtitleTrack:m}});this.hls.trigger(y.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:C})}}},l.onManifestLoaded=function(p,O){var S=this;this.config.enableCEA708Captions&&O.captions&&O.captions.forEach(function(v){var P=/(?:CC|SERVICE)([1-4])/.exec(v.instreamId);if(!P)return;var R="textTrack"+P[1],E=S.captionsProperties[R];if(!E)return;E.label=v.name,v.lang&&(E.languageCode=v.lang),E.media=v})},l.onFragLoading=function(p,O){var S=this.cea608Parser1,v=this.cea608Parser2,P=this.lastSn,R=this.lastPartIndex;if(!this.enabled||!(S&&v))return;if(O.frag.type===r.PlaylistLevelType.MAIN){var E,C,m=O.frag.sn,T=(E=O==null||((C=O.part)===null||C===void 0)?void 0:C.index)!=null?E:-1;m===P+1||m===P&&T===R+1||(S.reset(),v.reset()),this.lastSn=m,this.lastPartIndex=T}},l.onFragLoaded=function(p,O){var S=O.frag,v=O.payload,P=this.initPTS,R=this.unparsedVttFrags;if(S.type===r.PlaylistLevelType.SUBTITLE)if(v.byteLength){if(!Object(b.isFiniteNumber)(P[S.cc])){R.push(O),P.length&&this.hls.trigger(y.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:S,error:new Error("Missing initial subtitle PTS")});return}var E=S.decryptdata;if(E==null||E.key==null||E.method!=="AES-128"){var C=this.tracks[S.level],m=this.vttCCs;m[S.cc]||(m[S.cc]={start:S.start,prevCC:this.prevCC,new:!0},this.prevCC=S.cc),C&&C.textCodec===d.IMSC1_CODEC?this._parseIMSC1(S,v):this._parseVTTs(S,v,m)}}else this.hls.trigger(y.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:S,error:new Error("Empty subtitle payload")})},l._parseIMSC1=function(p,O){var S=this,v=this.hls;Object(d.parseIMSC1)(O,this.initPTS[p.cc],this.timescale[p.cc],function(P){S._appendCues(P,p.level),v.trigger(y.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:p})},function(P){u.logger.log("Failed to parse IMSC1: "+P),v.trigger(y.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:p,error:P})})},l._parseVTTs=function(p,O,S){var v=this,P=this.hls;Object(f.parseWebVTT)(O,this.initPTS[p.cc],this.timescale[p.cc],S,p.cc,p.start,function(R){v._appendCues(R,p.level),P.trigger(y.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:p})},function(R){v._fallbackToIMSC1(p,O),u.logger.log("Failed to parse VTT cue: "+R),P.trigger(y.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:p,error:R})})},l._fallbackToIMSC1=function(p,O){var S=this,v=this.tracks[p.level];v.textCodec||Object(d.parseIMSC1)(O,this.initPTS[p.cc],this.timescale[p.cc],function(){v.textCodec=d.IMSC1_CODEC,S._parseIMSC1(p,O)},function(){v.textCodec="wvtt"})},l._appendCues=function(p,O){var S=this.hls;if(this.config.renderTextTracksNatively){var v=this.textTracks[O];if(v.mode==="disabled")return;p.forEach(function(E){return Object(_.addCueToTrack)(v,E)})}else{var P=this.tracks[O],R=P.default?"default":"subtitles"+O;S.trigger(y.Events.CUES_PARSED,{type:"subtitles",cues:p,track:R})}},l.onFragDecrypted=function(p,O){var S=O.frag;if(S.type===r.PlaylistLevelType.SUBTITLE){if(!Object(b.isFiniteNumber)(this.initPTS[S.cc])){this.unparsedVttFrags.push(O);return}this.onFragLoaded(y.Events.FRAG_LOADED,O)}},l.onSubtitleTracksCleared=function(){this.tracks=[],this.captionsTracks={}},l.onFragParsingUserdata=function(p,O){var S=this.cea608Parser1,v=this.cea608Parser2;if(!this.enabled||!(S&&v))return;for(var P=0;P<O.samples.length;P++){var R=O.samples[P].bytes;if(R){var E=this.extractCea608Data(R);S.addData(O.samples[P].pts,E[0]),v.addData(O.samples[P].pts,E[1])}}},l.onBufferFlushing=function(p,O){var S=O.startOffset,v=O.endOffset,P=O.endOffsetSubtitles,R=O.type,E=this.media;if(!E||E.currentTime<v)return;if(!R||R==="video"){var C=this.captionsTracks;Object.keys(C).forEach(function(T){return Object(_.removeCuesInRange)(C[T],S,v)})}if(this.config.renderTextTracksNatively&&(S===0&&P!==void 0)){var m=this.textTracks;Object.keys(m).forEach(function(T){return Object(_.removeCuesInRange)(m[T],S,P)})}},l.extractCea608Data=function(p){for(var O=p[0]&31,S=2,v=[[],[]],P=0;P<O;P++){var R=p[S++],E=127&p[S++],C=127&p[S++],m=(4&R)!==0,T=3&R;if(E===0&&C===0)continue;m&&((T===0||T===1)&&(v[T].push(E),v[T].push(C)))}return v},h}();function a(h,l){return h&&h.label===l.name&&!(h.textTrack1||h.textTrack2)}function n(h,l,s,p){return Math.min(l,p)-Math.max(h,s)}function i(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!1}}}},"./src/crypt/aes-crypto.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"default",function(){return b});var b=function(){function y(w,f){this.subtle=void 0,this.aesIV=void 0,this.subtle=w,this.aesIV=f}var x=y.prototype;return x.decrypt=function(f,_){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},_,f)},y}()},"./src/crypt/aes-decryptor.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"removePadding",function(){return y}),A.d(g,"default",function(){return x});var b=A("./src/utils/typed-array.ts");function y(w){var f=w.byteLength,_=f&&new DataView(w.buffer).getUint8(f-1);return _?Object(b.sliceUint8)(w,0,f-_):w}var x=function(){function w(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}var f=w.prototype;return f.uint8ArrayToUint32Array_=function(d){for(var r=new DataView(d),u=new Uint32Array(4),t=0;t<4;t++)u[t]=r.getUint32(t*4);return u},f.initTable=function(){var d=this.sBox,r=this.invSBox,u=this.subMix,t=u[0],a=u[1],n=u[2],i=u[3],h=this.invSubMix,l=h[0],s=h[1],p=h[2],O=h[3],S=new Uint32Array(256),v=0,P=0,R=0;for(R=0;R<256;R++)R<128?S[R]=R<<1:S[R]=R<<1^283;for(R=0;R<256;R++){var E=P^P<<1^P<<2^P<<3^P<<4;E=E>>>8^E&255^99,d[v]=E,r[E]=v;var C=S[v],m=S[C],T=S[m],I=S[E]*257^E*16843008;t[v]=I<<24|I>>>8,a[v]=I<<16|I>>>16,n[v]=I<<8|I>>>24,i[v]=I,I=T*16843009^m*65537^C*257^v*16843008,l[E]=I<<24|I>>>8,s[E]=I<<16|I>>>16,p[E]=I<<8|I>>>24,O[E]=I,v?(v=C^S[S[S[T^C]]],P^=S[S[P]]):v=P=1}},f.expandKey=function(d){for(var r=this.uint8ArrayToUint32Array_(d),u=!0,t=0;t<r.length&&u;)u=r[t]===this.key[t],t++;if(u)return;this.key=r;var a=this.keySize=r.length;if(a!==4&&a!==6&&a!==8)throw new Error("Invalid aes key size="+a);var n=this.ksRows=(a+6+1)*4,i,h,l=this.keySchedule=new Uint32Array(n),s=this.invKeySchedule=new Uint32Array(n),p=this.sBox,O=this.rcon,S=this.invSubMix,v=S[0],P=S[1],R=S[2],E=S[3],C,m;for(i=0;i<n;i++){if(i<a){C=l[i]=r[i];continue}m=C,i%a===0?(m=m<<8|m>>>24,m=p[m>>>24]<<24|p[m>>>16&255]<<16|p[m>>>8&255]<<8|p[m&255],m^=O[i/a|0]<<24):a>6&&i%a===4&&(m=p[m>>>24]<<24|p[m>>>16&255]<<16|p[m>>>8&255]<<8|p[m&255]),l[i]=C=(l[i-a]^m)>>>0}for(h=0;h<n;h++)i=n-h,h&3?m=l[i]:m=l[i-4],h<4||i<=4?s[h]=m:s[h]=v[p[m>>>24]]^P[p[m>>>16&255]]^R[p[m>>>8&255]]^E[p[m&255]],s[h]=s[h]>>>0},f.networkToHostOrderSwap=function(d){return d<<24|(d&65280)<<8|(d&16711680)>>8|d>>>24},f.decrypt=function(d,r,u){for(var t=this.keySize+6,a=this.invKeySchedule,n=this.invSBox,i=this.invSubMix,h=i[0],l=i[1],s=i[2],p=i[3],O=this.uint8ArrayToUint32Array_(u),S=O[0],v=O[1],P=O[2],R=O[3],E=new Int32Array(d),C=new Int32Array(E.length),m,T,I,D,N,z,F,W,K,B,k,G,ne,fe,de=this.networkToHostOrderSwap;r<E.length;){for(K=de(E[r]),B=de(E[r+1]),k=de(E[r+2]),G=de(E[r+3]),N=K^a[0],z=G^a[1],F=k^a[2],W=B^a[3],ne=4,fe=1;fe<t;fe++)m=h[N>>>24]^l[z>>16&255]^s[F>>8&255]^p[W&255]^a[ne],T=h[z>>>24]^l[F>>16&255]^s[W>>8&255]^p[N&255]^a[ne+1],I=h[F>>>24]^l[W>>16&255]^s[N>>8&255]^p[z&255]^a[ne+2],D=h[W>>>24]^l[N>>16&255]^s[z>>8&255]^p[F&255]^a[ne+3],N=m,z=T,F=I,W=D,ne=ne+4;m=n[N>>>24]<<24^n[z>>16&255]<<16^n[F>>8&255]<<8^n[W&255]^a[ne],T=n[z>>>24]<<24^n[F>>16&255]<<16^n[W>>8&255]<<8^n[N&255]^a[ne+1],I=n[F>>>24]<<24^n[W>>16&255]<<16^n[N>>8&255]<<8^n[z&255]^a[ne+2],D=n[W>>>24]<<24^n[N>>16&255]<<16^n[z>>8&255]<<8^n[F&255]^a[ne+3],C[r]=de(m^S),C[r+1]=de(D^v),C[r+2]=de(I^P),C[r+3]=de(T^R),S=K,v=B,P=k,R=G,r=r+4}return C.buffer},w}()},"./src/crypt/decrypter.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"default",function(){return r});var b=A("./src/crypt/aes-crypto.ts"),y=A("./src/crypt/fast-aes-key.ts"),x=A("./src/crypt/aes-decryptor.ts"),w=A("./src/utils/logger.ts"),f=A("./src/utils/mp4-tools.ts"),_=A("./src/utils/typed-array.ts"),d=16,r=function(){function u(a,n,i){var h=i===void 0?{}:i,l=h.removePKCS7Padding,s=l===void 0?!0:l;if(this.logEnabled=!0,this.observer=void 0,this.config=void 0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.observer=a,this.config=n,this.removePKCS7Padding=s,s)try{var p=self.crypto;p&&(this.subtle=p.subtle||p.webkitSubtle)}catch(O){}this.subtle===null&&(this.config.enableSoftwareAES=!0)}var t=u.prototype;return t.destroy=function(){this.observer=null},t.isSync=function(){return this.config.enableSoftwareAES},t.flush=function(){var n=this.currentResult;if(!n){this.reset();return}var i=new Uint8Array(n);return this.reset(),this.removePKCS7Padding?Object(x.removePadding)(i):i},t.reset=function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)},t.decrypt=function(n,i,h,l){if(this.config.enableSoftwareAES){this.softwareDecrypt(new Uint8Array(n),i,h);var s=this.flush();s&&l(s.buffer)}else this.webCryptoDecrypt(new Uint8Array(n),i,h).then(l)},t.softwareDecrypt=function(n,i,h){var l=this.currentIV,s=this.currentResult,p=this.remainderData;this.logOnce("JS AES decrypt"),p&&(n=Object(f.appendUint8Array)(p,n),this.remainderData=null);var O=this.getValidChunk(n);if(!O.length)return null;l&&(h=l);var S=this.softwareDecrypter;S||(S=this.softwareDecrypter=new x.default),S.expandKey(i);var v=s;return this.currentResult=S.decrypt(O.buffer,0,h),this.currentIV=Object(_.sliceUint8)(O,-16).buffer,v||null},t.webCryptoDecrypt=function(n,i,h){var l=this,s=this.subtle;return(this.key!==i||!this.fastAesKey)&&(this.key=i,this.fastAesKey=new y.default(s,i)),this.fastAesKey.expandKey().then(function(p){if(!s)return Promise.reject(new Error("web crypto not initialized"));var O=new b.default(s,h);return O.decrypt(n.buffer,p)}).catch(function(p){return l.onWebCryptoError(p,n,i,h)})},t.onWebCryptoError=function(n,i,h,l){return w.logger.warn("[decrypter.ts]: WebCrypto Error, disable WebCrypto API:",n),this.config.enableSoftwareAES=!0,this.logEnabled=!0,this.softwareDecrypt(i,h,l)},t.getValidChunk=function(n){var i=n,h=n.length-n.length%d;return h!==n.length&&(i=Object(_.sliceUint8)(n,0,h),this.remainderData=Object(_.sliceUint8)(n,h)),i},t.logOnce=function(n){if(!this.logEnabled)return;w.logger.log("[decrypter.ts]: "+n),this.logEnabled=!1},u}()},"./src/crypt/fast-aes-key.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"default",function(){return b});var b=function(){function y(w,f){this.subtle=void 0,this.key=void 0,this.subtle=w,this.key=f}var x=y.prototype;return x.expandKey=function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},y}()},"./src/demux/aacdemuxer.ts":function(L,g,A){"use strict";A.r(g);var b=A("./src/demux/base-audio-demuxer.ts"),y=A("./src/demux/adts.ts"),x=A("./src/utils/logger.ts"),w=A("./src/demux/id3.ts");function f(r,u){r.prototype=Object.create(u.prototype),r.prototype.constructor=r,_(r,u)}function _(r,u){return _=Object.setPrototypeOf||function(a,n){return a.__proto__=n,a},_(r,u)}var d=function(r){f(u,r);function u(a,n){var i;return i=r.call(this)||this,i.observer=void 0,i.config=void 0,i.observer=a,i.config=n,i}var t=u.prototype;return t.resetInitSegment=function(n,i,h){r.prototype.resetInitSegment.call(this,n,i,h),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!0,samples:[],manifestCodec:n,duration:h,inputTimeScale:9e4,dropped:0}},u.probe=function(n){if(!n)return!1;for(var i=w.getID3Data(n,0)||[],h=i.length,l=n.length;h<l;h++)if(y.probe(n,h))return x.logger.log("ADTS sync word found !"),!0;return!1},t.canParse=function(n,i){return y.canParse(n,i)},t.appendFrame=function(n,i,h){y.initTrackConfig(n,this.observer,i,h,n.manifestCodec);var l=y.appendFrame(n,i,h,this.initPTS,this.frameIndex);if(l&&l.missing===0)return l},u}(b.default);d.minProbeByteLength=9,g.default=d},"./src/demux/adts.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"getAudioConfig",function(){return w}),A.d(g,"isHeaderPattern",function(){return f}),A.d(g,"getHeaderLength",function(){return _}),A.d(g,"getFullFrameLength",function(){return d}),A.d(g,"canGetFrameLength",function(){return r}),A.d(g,"isHeader",function(){return u}),A.d(g,"canParse",function(){return t}),A.d(g,"probe",function(){return a}),A.d(g,"initTrackConfig",function(){return n}),A.d(g,"getFrameDuration",function(){return i}),A.d(g,"parseFrameHeader",function(){return h}),A.d(g,"appendFrame",function(){return l});var b=A("./src/utils/logger.ts"),y=A("./src/errors.ts"),x=A("./src/events.ts");function w(s,p,O,S){var v,P,R,E,C=navigator.userAgent.toLowerCase(),m=S,T=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];v=((p[O+2]&192)>>>6)+1;var I=(p[O+2]&60)>>>2;if(I>T.length-1){s.trigger(x.Events.ERROR,{type:y.ErrorTypes.MEDIA_ERROR,details:y.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+I});return}return R=(p[O+2]&1)<<2,R|=(p[O+3]&192)>>>6,b.logger.log("manifest codec:"+S+", ADTS type:"+v+", samplingIndex:"+I),/firefox/i.test(C)?I>=6?(v=5,E=new Array(4),P=I-3):(v=2,E=new Array(2),P=I):C.indexOf("android")!==-1?(v=2,E=new Array(2),P=I):(v=5,E=new Array(4),S&&(S.indexOf("mp4a.40.29")!==-1||S.indexOf("mp4a.40.5")!==-1)||!S&&I>=6?P=I-3:((S&&S.indexOf("mp4a.40.2")!==-1&&(I>=6&&R===1||/vivaldi/i.test(C))||!S&&R===1)&&(v=2,E=new Array(2)),P=I)),E[0]=v<<3,E[0]|=(I&14)>>1,E[1]|=(I&1)<<7,E[1]|=R<<3,v===5&&(E[1]|=(P&14)>>1,E[2]=(P&1)<<7,E[2]|=2<<2,E[3]=0),{config:E,samplerate:T[I],channelCount:R,codec:"mp4a.40."+v,manifestCodec:m}}function f(s,p){return s[p]===255&&(s[p+1]&246)===240}function _(s,p){return s[p+1]&1?7:9}function d(s,p){return(s[p+3]&3)<<11|s[p+4]<<3|(s[p+5]&224)>>>5}function r(s,p){return p+5<s.length}function u(s,p){return p+1<s.length&&f(s,p)}function t(s,p){return r(s,p)&&f(s,p)&&d(s,p)<=s.length-p}function a(s,p){if(u(s,p)){var O=_(s,p);if(p+O>=s.length)return!1;var S=d(s,p);if(S<=O)return!1;var v=p+S;return v===s.length||u(s,v)}return!1}function n(s,p,O,S,v){if(!s.samplerate){var P=w(p,O,S,v);if(!P)return;s.config=P.config,s.samplerate=P.samplerate,s.channelCount=P.channelCount,s.codec=P.codec,s.manifestCodec=P.manifestCodec,b.logger.log("parsed codec:"+s.codec+", rate:"+P.samplerate+", channels:"+P.channelCount)}}function i(s){return 1024*9e4/s}function h(s,p,O,S,v){var P=_(s,p),R=d(s,p);if(R-=P,R>0){var E=O+S*v;return{headerLength:P,frameLength:R,stamp:E}}}function l(s,p,O,S,v){var P=i(s.samplerate),R=h(p,O,S,v,P);if(R){var E=R.frameLength,C=R.headerLength,m=R.stamp,T=C+E,I=Math.max(0,O+T-p.length),D;I?(D=new Uint8Array(T-C),D.set(p.subarray(O+C,p.length),0)):D=p.subarray(O+C,O+T);var N={unit:D,pts:m};return I||s.samples.push(N),{sample:N,length:T,missing:I}}}},"./src/demux/base-audio-demuxer.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"initPTSFn",function(){return d});var b=A("./src/polyfills/number.ts"),y=A("./src/demux/id3.ts"),x=A("./src/demux/dummy-demuxed-track.ts"),w=A("./src/utils/mp4-tools.ts"),f=A("./src/utils/typed-array.ts"),_=function(){function r(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var u=r.prototype;return u.resetInitSegment=function(a,n,i){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},u.resetTimeStamp=function(){},u.resetContiguity=function(){},u.canParse=function(a,n){return!1},u.appendFrame=function(a,n,i){},u.demux=function(a,n){this.cachedData&&(a=Object(w.appendUint8Array)(this.cachedData,a),this.cachedData=null);var i=y.getID3Data(a,0),h=i?i.length:0,l,s,p=this._audioTrack,O=this._id3Track,S=i?y.getTimeStamp(i):void 0,v=a.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=d(S,n)),i&&i.length>0&&O.samples.push({pts:this.initPTS,dts:this.initPTS,data:i}),s=this.initPTS;h<v;){if(this.canParse(a,h)){var P=this.appendFrame(p,a,h);P?(this.frameIndex++,s=P.sample.pts,h+=P.length,l=h):h=v}else y.canParse(a,h)?(i=y.getID3Data(a,h),O.samples.push({pts:s,dts:s,data:i}),h+=i.length,l=h):h++;if(h===v&&l!==v){var R=Object(f.sliceUint8)(a,l);this.cachedData?this.cachedData=Object(w.appendUint8Array)(this.cachedData,R):this.cachedData=R}}return{audioTrack:p,avcTrack:Object(x.dummyTrack)(),id3Track:O,textTrack:Object(x.dummyTrack)()}},u.demuxSampleAes=function(a,n,i){return Promise.reject(new Error("["+this+"] This demuxer does not support Sample-AES decryption"))},u.flush=function(a){var n=this.cachedData;return n&&(this.cachedData=null,this.demux(n,0)),this.frameIndex=0,{audioTrack:this._audioTrack,avcTrack:Object(x.dummyTrack)(),id3Track:this._id3Track,textTrack:Object(x.dummyTrack)()}},u.destroy=function(){},r}(),d=function(u,t){return Object(b.isFiniteNumber)(u)?u*90:t*9e4};g.default=_},"./src/demux/chunk-cache.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"default",function(){return b});var b=function(){function x(){this.chunks=[],this.dataLength=0}var w=x.prototype;return w.push=function(_){this.chunks.push(_),this.dataLength+=_.length},w.flush=function(){var _=this.chunks,d=this.dataLength,r;if(_.length)_.length===1?r=_[0]:r=y(_,d);else return new Uint8Array(0);return this.reset(),r},w.reset=function(){this.chunks.length=0,this.dataLength=0},x}();function y(x,w){for(var f=new Uint8Array(w),_=0,d=0;d<x.length;d++){var r=x[d];f.set(r,_),_+=r.length}return f}},"./src/demux/dummy-demuxed-track.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"dummyTrack",function(){return b});function b(){return{type:"",id:-1,pid:-1,inputTimeScale:9e4,sequenceNumber:-1,samples:[],dropped:0}}},"./src/demux/exp-golomb.ts":function(L,g,A){"use strict";A.r(g);var b=A("./src/utils/logger.ts"),y=function(){function x(f){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=f,this.bytesAvailable=f.byteLength,this.word=0,this.bitsAvailable=0}var w=x.prototype;return w.loadWord=function(){var _=this.data,d=this.bytesAvailable,r=_.byteLength-d,u=new Uint8Array(4),t=Math.min(4,d);if(t===0)throw new Error("no bytes available");u.set(_.subarray(r,r+t)),this.word=new DataView(u.buffer).getUint32(0),this.bitsAvailable=t*8,this.bytesAvailable-=t},w.skipBits=function(_){var d;this.bitsAvailable>_?(this.word<<=_,this.bitsAvailable-=_):(_-=this.bitsAvailable,d=_>>3,_-=d>>3,this.bytesAvailable-=d,this.loadWord(),this.word<<=_,this.bitsAvailable-=_)},w.readBits=function(_){var d=Math.min(this.bitsAvailable,_),r=this.word>>>32-d;return _>32&&b.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=d,this.bitsAvailable>0?this.word<<=d:this.bytesAvailable>0&&this.loadWord(),d=_-d,d>0&&this.bitsAvailable?r<<d|this.readBits(d):r},w.skipLZ=function(){var _;for(_=0;_<this.bitsAvailable;++_)if((this.word&2147483648>>>_)!==0)return this.word<<=_,this.bitsAvailable-=_,_;return this.loadWord(),_+this.skipLZ()},w.skipUEG=function(){this.skipBits(1+this.skipLZ())},w.skipEG=function(){this.skipBits(1+this.skipLZ())},w.readUEG=function(){var _=this.skipLZ();return this.readBits(_+1)-1},w.readEG=function(){var _=this.readUEG();return 1&_?1+_>>>1:-1*(_>>>1)},w.readBoolean=function(){return this.readBits(1)===1},w.readUByte=function(){return this.readBits(8)},w.readUShort=function(){return this.readBits(16)},w.readUInt=function(){return this.readBits(32)},w.skipScalingList=function(_){for(var d=8,r=8,u,t=0;t<_;t++)r!==0&&(u=this.readEG(),r=(d+u+256)%256),d=r===0?d:r},w.readSPS=function(){var _=0,d=0,r=0,u=0,t,a,n,i=this.readUByte.bind(this),h=this.readBits.bind(this),l=this.readUEG.bind(this),s=this.readBoolean.bind(this),p=this.skipBits.bind(this),O=this.skipEG.bind(this),S=this.skipUEG.bind(this),v=this.skipScalingList.bind(this);i();var P=i();if(h(5),p(3),i(),S(),P===100||P===110||P===122||P===244||P===44||P===83||P===86||P===118||P===128){var R=l();if(R===3&&p(1),S(),S(),p(1),s())for(a=R!==3?8:12,n=0;n<a;n++)s()&&(n<6?v(16):v(64))}S();var E=l();if(E===0)l();else if(E===1)for(p(1),O(),O(),t=l(),n=0;n<t;n++)O();S(),p(1);var C=l(),m=l(),T=h(1);T===0&&p(1),p(1),s()&&(_=l(),d=l(),r=l(),u=l());var I=[1,1];if(s()&&s()){var D=i();switch(D){case 1:I=[1,1];break;case 2:I=[12,11];break;case 3:I=[10,11];break;case 4:I=[16,11];break;case 5:I=[40,33];break;case 6:I=[24,11];break;case 7:I=[20,11];break;case 8:I=[32,11];break;case 9:I=[80,33];break;case 10:I=[18,11];break;case 11:I=[15,11];break;case 12:I=[64,33];break;case 13:I=[160,99];break;case 14:I=[4,3];break;case 15:I=[3,2];break;case 16:I=[2,1];break;case 255:{I=[i()<<8|i(),i()<<8|i()];break}}}return{width:Math.ceil((C+1)*16-_*2-d*2),height:(2-T)*(m+1)*16-(T?2:4)*(r+u),pixelRatio:I}},w.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},x}();g.default=y},"./src/demux/id3.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"isHeader",function(){return b}),A.d(g,"isFooter",function(){return y}),A.d(g,"getID3Data",function(){return x}),A.d(g,"canParse",function(){return f}),A.d(g,"getTimeStamp",function(){return _}),A.d(g,"isTimeStampFrame",function(){return d}),A.d(g,"getID3Frames",function(){return u}),A.d(g,"decodeFrame",function(){return t}),A.d(g,"utf8ArrayToStr",function(){return l}),A.d(g,"testables",function(){return s});var b=function(v,P){return P+10<=v.length&&(v[P]===73&&v[P+1]===68&&v[P+2]===51&&(v[P+3]<255&&v[P+4]<255&&(v[P+6]<128&&v[P+7]<128&&v[P+8]<128&&v[P+9]<128)))},y=function(v,P){return P+10<=v.length&&(v[P]===51&&v[P+1]===68&&v[P+2]===73&&(v[P+3]<255&&v[P+4]<255&&(v[P+6]<128&&v[P+7]<128&&v[P+8]<128&&v[P+9]<128)))},x=function(v,P){for(var R=P,E=0;b(v,P);){E+=10;var C=w(v,P+6);E+=C,y(v,P+10)&&(E+=10),P+=E}return E>0?v.subarray(R,R+E):void 0},w=function(v,P){var R=0;return R=(v[P]&127)<<21,R|=(v[P+1]&127)<<14,R|=(v[P+2]&127)<<7,R|=v[P+3]&127,R},f=function(v,P){return b(v,P)&&w(v,P+6)+10<=v.length-P},_=function(v){for(var P=u(v),R=0;R<P.length;R++){var E=P[R];if(d(E))return h(E)}return},d=function(v){return v&&v.key==="PRIV"&&v.info==="com.apple.streaming.transportStreamTimestamp"},r=function(v){var P=String.fromCharCode(v[0],v[1],v[2],v[3]),R=w(v,4),E=10;return{type:P,size:R,data:v.subarray(E,E+R)}},u=function(v){for(var P=0,R=[];b(v,P);){var E=w(v,P+6);P+=10;for(var C=P+E;P+8<C;){var m=r(v.subarray(P)),T=t(m);T&&R.push(T),P+=m.size+10}y(v,P)&&(P+=10)}return R},t=function(v){return v.type==="PRIV"?a(v):v.type[0]==="W"?i(v):n(v)},a=function(v){if(v.size<2)return;var P=l(v.data,!0),R=new Uint8Array(v.data.subarray(P.length+1));return{key:v.type,info:P,data:R.buffer}},n=function(v){if(v.size<2)return;if(v.type==="TXXX"){var P=1,R=l(v.data.subarray(P),!0);P+=R.length+1;var E=l(v.data.subarray(P));return{key:v.type,info:R,data:E}}var C=l(v.data.subarray(1));return{key:v.type,data:C}},i=function(v){if(v.type==="WXXX"){if(v.size<2)return;var P=1,R=l(v.data.subarray(P),!0);P+=R.length+1;var E=l(v.data.subarray(P));return{key:v.type,info:R,data:E}}var C=l(v.data);return{key:v.type,data:C}},h=function(v){if(v.data.byteLength===8){var P=new Uint8Array(v.data),R=P[3]&1,E=(P[4]<<23)+(P[5]<<15)+(P[6]<<7)+P[7];return E/=45,R&&(E+=4772185884e-2),Math.round(E)}return},l=function(v,P){P===void 0&&(P=!1);var R=O();if(R){var E=R.decode(v);if(P){var C=E.indexOf("\0");return C!==-1?E.substring(0,C):E}return E.replace(/\0/g,"")}for(var m=v.length,T,I,D,N="",z=0;z<m;){if(T=v[z++],T===0&&P)return N;if(T===0||T===3)continue;switch(T>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:N+=String.fromCharCode(T);break;case 12:case 13:I=v[z++],N+=String.fromCharCode((T&31)<<6|I&63);break;case 14:I=v[z++],D=v[z++],N+=String.fromCharCode((T&15)<<12|(I&63)<<6|(D&63)<<0);break;default:}}return N},s={decodeTextFrame:n},p;function O(){return!p&&typeof self.TextDecoder!="undefined"&&(p=new self.TextDecoder("utf-8")),p}},"./src/demux/mp3demuxer.ts":function(L,g,A){"use strict";A.r(g);var b=A("./src/demux/base-audio-demuxer.ts"),y=A("./src/demux/id3.ts"),x=A("./src/utils/logger.ts"),w=A("./src/demux/mpegaudio.ts");function f(r,u){r.prototype=Object.create(u.prototype),r.prototype.constructor=r,_(r,u)}function _(r,u){return _=Object.setPrototypeOf||function(a,n){return a.__proto__=n,a},_(r,u)}var d=function(r){f(u,r);function u(){return r.apply(this,arguments)||this}var t=u.prototype;return t.resetInitSegment=function(n,i,h){r.prototype.resetInitSegment.call(this,n,i,h),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:n,duration:h,inputTimeScale:9e4,dropped:0}},u.probe=function(n){if(!n)return!1;for(var i=y.getID3Data(n,0)||[],h=i.length,l=n.length;h<l;h++)if(w.probe(n,h))return x.logger.log("MPEG Audio sync word found !"),!0;return!1},t.canParse=function(n,i){return w.canParse(n,i)},t.appendFrame=function(n,i,h){return this.initPTS===null?void 0:w.appendFrame(n,i,h,this.initPTS,this.frameIndex)},u}(b.default);d.minProbeByteLength=4,g.default=d},"./src/demux/mp4demuxer.ts":function(L,g,A){"use strict";A.r(g);var b=A("./src/utils/mp4-tools.ts"),y=A("./src/demux/dummy-demuxed-track.ts"),x=function(){function w(_,d){this.remainderData=null,this.config=void 0,this.config=d}var f=w.prototype;return f.resetTimeStamp=function(){},f.resetInitSegment=function(){},f.resetContiguity=function(){},w.probe=function(d){return Object(b.findBox)({data:d,start:0,end:Math.min(d.length,16384)},["moof"]).length>0},f.demux=function(d){var r=d,u=Object(y.dummyTrack)();if(this.config.progressive){this.remainderData&&(r=Object(b.appendUint8Array)(this.remainderData,d));var t=Object(b.segmentValidRange)(r);this.remainderData=t.remainder,u.samples=t.valid||new Uint8Array}else u.samples=r;return{audioTrack:Object(y.dummyTrack)(),avcTrack:u,id3Track:Object(y.dummyTrack)(),textTrack:Object(y.dummyTrack)()}},f.flush=function(){var d=Object(y.dummyTrack)();return d.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(y.dummyTrack)(),avcTrack:d,id3Track:Object(y.dummyTrack)(),textTrack:Object(y.dummyTrack)()}},f.demuxSampleAes=function(d,r,u){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},f.destroy=function(){},w}();x.minProbeByteLength=1024,g.default=x},"./src/demux/mpegaudio.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"appendFrame",function(){return _}),A.d(g,"parseHeader",function(){return d}),A.d(g,"isHeaderPattern",function(){return r}),A.d(g,"isHeader",function(){return u}),A.d(g,"canParse",function(){return t}),A.d(g,"probe",function(){return a});var b=null,y=[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],x=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],w=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],f=[0,1,1,4];function _(n,i,h,l,s){if(h+24>i.length)return;var p=d(i,h);if(p&&h+p.frameLength<=i.length){var O=p.samplesPerFrame*9e4/p.sampleRate,S=l+s*O,v={unit:i.subarray(h,h+p.frameLength),pts:S,dts:S};return n.config=[],n.channelCount=p.channelCount,n.samplerate=p.sampleRate,n.samples.push(v),{sample:v,length:p.frameLength,missing:0}}}function d(n,i){var h=n[i+1]>>3&3,l=n[i+1]>>1&3,s=n[i+2]>>4&15,p=n[i+2]>>2&3;if(h!==1&&s!==0&&s!==15&&p!==3){var O=n[i+2]>>1&1,S=n[i+3]>>6,v=h===3?3-l:l===3?3:4,P=y[v*14+s-1]*1e3,R=h===3?0:h===2?1:2,E=x[R*3+p],C=S===3?1:2,m=w[h][l],T=f[l],I=m*8*T,D=Math.floor(m*P/E+O)*T;if(b===null){var N=navigator.userAgent||"",z=N.match(/Chrome\/(\d+)/i);b=z?parseInt(z[1]):0}var F=!!b&&b<=87;return F&&l===2&&P>=224e3&&S===0&&(n[i+3]=n[i+3]|128),{sampleRate:E,channelCount:C,frameLength:D,samplesPerFrame:I}}}function r(n,i){return n[i]===255&&(n[i+1]&224)===224&&(n[i+1]&6)!==0}function u(n,i){return i+1<n.length&&r(n,i)}function t(n,i){var h=4;return r(n,i)&&h<=n.length-i}function a(n,i){if(i+1<n.length&&r(n,i)){var h=4,l=d(n,i),s=h;l!=null&&l.frameLength&&(s=l.frameLength);var p=i+s;return p===n.length||u(n,p)}return!1}},"./src/demux/sample-aes.ts":function(L,g,A){"use strict";A.r(g);var b=A("./src/crypt/decrypter.ts"),y=A("./src/demux/tsdemuxer.ts"),x=function(){function w(_,d,r){this.keyData=void 0,this.decrypter=void 0,this.keyData=r,this.decrypter=new b.default(_,d,{removePKCS7Padding:!1})}var f=w.prototype;return f.decryptBuffer=function(d,r){this.decrypter.decrypt(d,this.keyData.key.buffer,this.keyData.iv.buffer,r)},f.decryptAacSample=function(d,r,u,t){var a=d[r].unit,n=a.subarray(16,a.length-a.length%16),i=n.buffer.slice(n.byteOffset,n.byteOffset+n.length),h=this;this.decryptBuffer(i,function(l){var s=new Uint8Array(l);a.set(s,16),t||h.decryptAacSamples(d,r+1,u)})},f.decryptAacSamples=function(d,r,u){for(;;r++){if(r>=d.length){u();return}if(d[r].unit.length<32)continue;var t=this.decrypter.isSync();if(this.decryptAacSample(d,r,u,t),!t)return}},f.getAvcEncryptedData=function(d){for(var r=Math.floor((d.length-48)/160)*16+16,u=new Int8Array(r),t=0,a=32;a<=d.length-16;a+=160,t+=16)u.set(d.subarray(a,a+16),t);return u},f.getAvcDecryptedUnit=function(d,r){for(var u=new Uint8Array(r),t=0,a=32;a<=d.length-16;a+=160,t+=16)d.set(u.subarray(t,t+16),a);return d},f.decryptAvcSample=function(d,r,u,t,a,n){var i=Object(y.discardEPB)(a.data),h=this.getAvcEncryptedData(i),l=this;this.decryptBuffer(h.buffer,function(s){a.data=l.getAvcDecryptedUnit(i,s),n||l.decryptAvcSamples(d,r,u+1,t)})},f.decryptAvcSamples=function(d,r,u,t){if(d instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;r++,u=0){if(r>=d.length){t();return}for(var a=d[r].units;!(u>=a.length);u++){var n=a[u];if(n.data.length<=48||n.type!==1&&n.type!==5)continue;var i=this.decrypter.isSync();if(this.decryptAvcSample(d,r,u,t,n,i),!i)return}}},w}();g.default=x},"./src/demux/transmuxer-interface.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"default",function(){return a});var b=A("./node_modules/webworkify-webpack/index.js"),y=A.n(b),x=A("./src/events.ts"),w=A("./src/demux/transmuxer.ts"),f=A("./src/utils/logger.ts"),_=A("./src/errors.ts"),d=A("./src/utils/mediasource-helper.ts"),r=A("./node_modules/eventemitter3/index.js"),u=A.n(r),t=Object(d.getMediaSource)()||{isTypeSupported:function(){return!1}},a=function(){function n(h,l,s,p){var O=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=h,this.id=l,this.onTransmuxComplete=s,this.onFlush=p;var S=h.config,v=function(m,T){T=T||{},T.frag=O.frag,T.id=O.id,h.trigger(m,T)};this.observer=new r.EventEmitter,this.observer.on(x.Events.FRAG_DECRYPTED,v),this.observer.on(x.Events.ERROR,v);var P={mp4:t.isTypeSupported("video/mp4"),mpeg:t.isTypeSupported("audio/mpeg"),mp3:t.isTypeSupported('audio/mp4; codecs="mp3"')},R=navigator.vendor;if(S.enableWorker&&typeof Worker!="undefined"){f.logger.log("demuxing in webworker");var E;try{E=this.worker=b("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),E.addEventListener("message",this.onwmsg),E.onerror=function(C){h.trigger(x.Events.ERROR,{type:_.ErrorTypes.OTHER_ERROR,details:_.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(C.message+" ("+C.filename+":"+C.lineno+")")})},E.postMessage({cmd:"init",typeSupported:P,vendor:R,id:l,config:JSON.stringify(S)})}catch(C){f.logger.warn("Error in worker:",C),f.logger.error("Error while initializing DemuxerWorker, fallback to inline"),E&&self.URL.revokeObjectURL(E.objectURL),this.transmuxer=new w.default(this.observer,P,S,R,l),this.worker=null}}else this.transmuxer=new w.default(this.observer,P,S,R,l)}var i=n.prototype;return i.destroy=function(){var l=this.worker;if(l)l.removeEventListener("message",this.onwmsg),l.terminate(),this.worker=null;else{var s=this.transmuxer;s&&(s.destroy(),this.transmuxer=null)}var p=this.observer;p&&p.removeAllListeners(),this.observer=null},i.push=function(l,s,p,O,S,v,P,R,E,C){var m=this;E.transmuxing.start=self.performance.now();var T=this.transmuxer,I=this.worker,D=v?v.start:S.start,N=S.decryptdata,z=this.frag,F=!(z&&S.cc===z.cc),W=!(z&&E.level===z.level),K=z?E.sn-z.sn:-1,B=this.part?E.part-this.part.index:1,k=!W&&(K===1||K===0&&B===1),G=self.performance.now();(W||K||S.stats.parsing.start===0)&&(S.stats.parsing.start=G),v&&(B||!k)&&(v.stats.parsing.start=G);var ne=new w.TransmuxState(F,k,R,W,D);if(!k||F){f.logger.log("[transmuxer-interface, "+S.type+"]: Starting new transmux session for sn: "+E.sn+" p: "+E.part+" level: "+E.level+" id: "+E.id+`
discontinuity: `+F+`
trackSwitch: `+W+`
contiguous: `+k+`
accurateTimeOffset: `+R+`
timeOffset: `+D);var fe=new w.TransmuxConfig(p,O,s,P,C);this.configureTransmuxer(fe)}if(this.frag=S,this.part=v,I)I.postMessage({cmd:"demux",data:l,decryptdata:N,chunkMeta:E,state:ne},l instanceof ArrayBuffer?[l]:[]);else if(T){var de=T.push(l,N,E,ne);Object(w.isPromise)(de)?de.then(function(xe){m.handleTransmuxComplete(xe)}):this.handleTransmuxComplete(de)}},i.flush=function(l){var s=this;l.transmuxing.start=self.performance.now();var p=this.transmuxer,O=this.worker;if(O)O.postMessage({cmd:"flush",chunkMeta:l});else if(p){var S=p.flush(l);Object(w.isPromise)(S)?S.then(function(v){s.handleFlushResult(v,l)}):this.handleFlushResult(S,l)}},i.handleFlushResult=function(l,s){var p=this;l.forEach(function(O){p.handleTransmuxComplete(O)}),this.onFlush(s)},i.onWorkerMessage=function(l){var s=l.data,p=this.hls;switch(s.event){case"init":{self.URL.revokeObjectURL(this.worker.objectURL);break}case"transmuxComplete":{this.handleTransmuxComplete(s.data);break}case"flush":{this.onFlush(s.data);break}default:{s.data=s.data||{},s.data.frag=this.frag,s.data.id=this.id,p.trigger(s.event,s.data);break}}},i.configureTransmuxer=function(l){var s=this.worker,p=this.transmuxer;s?s.postMessage({cmd:"configure",config:l}):p&&p.configure(l)},i.handleTransmuxComplete=function(l){l.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(l)},n}()},"./src/demux/transmuxer-worker.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"default",function(){return _});var b=A("./src/demux/transmuxer.ts"),y=A("./src/events.ts"),x=A("./src/utils/logger.ts"),w=A("./node_modules/eventemitter3/index.js"),f=A.n(w);function _(a){var n=new w.EventEmitter,i=function(l,s){a.postMessage({event:l,data:s})};n.on(y.Events.FRAG_DECRYPTED,i),n.on(y.Events.ERROR,i),a.addEventListener("message",function(h){var l=h.data;switch(l.cmd){case"init":{var s=JSON.parse(l.config);a.transmuxer=new b.default(n,l.typeSupported,s,l.vendor,l.id),Object(x.enableLogs)(s.debug),i("init",null);break}case"configure":{a.transmuxer.configure(l.config);break}case"demux":{var p=a.transmuxer.push(l.data,l.decryptdata,l.chunkMeta,l.state);Object(b.isPromise)(p)?p.then(function(v){d(a,v)}):d(a,p);break}case"flush":{var O=l.chunkMeta,S=a.transmuxer.flush(O);Object(b.isPromise)(S)?S.then(function(v){u(a,v,O)}):u(a,S,O);break}default:break}})}function d(a,n){if(t(n.remuxResult))return;var i=[],h=n.remuxResult,l=h.audio,s=h.video;l&&r(i,l),s&&r(i,s),a.postMessage({event:"transmuxComplete",data:n},i)}function r(a,n){n.data1&&a.push(n.data1.buffer),n.data2&&a.push(n.data2.buffer)}function u(a,n,i){n.forEach(function(h){d(a,h)}),a.postMessage({event:"flush",data:i})}function t(a){return!a.audio&&!a.video&&!a.text&&!a.id3&&!a.initSegment}},"./src/demux/transmuxer.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"default",function(){return s}),A.d(g,"isPromise",function(){return S}),A.d(g,"TransmuxConfig",function(){return v}),A.d(g,"TransmuxState",function(){return P});var b=A("./src/events.ts"),y=A("./src/errors.ts"),x=A("./src/crypt/decrypter.ts"),w=A("./src/demux/aacdemuxer.ts"),f=A("./src/demux/mp4demuxer.ts"),_=A("./src/demux/tsdemuxer.ts"),d=A("./src/demux/mp3demuxer.ts"),r=A("./src/remux/mp4-remuxer.ts"),u=A("./src/remux/passthrough-remuxer.ts"),t=A("./src/demux/chunk-cache.ts"),a=A("./src/utils/mp4-tools.ts"),n=A("./src/utils/logger.ts"),i;try{i=self.performance.now.bind(self.performance)}catch(R){n.logger.debug("Unable to use Performance API on this environment"),i=self.Date.now}var h=[{demux:_.default,remux:r.default},{demux:f.default,remux:u.default},{demux:w.default,remux:r.default},{demux:d.default,remux:r.default}],l=1024;h.forEach(function(R){var E=R.demux;l=Math.max(l,E.minProbeByteLength)});var s=function(){function R(C,m,T,I,D){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 t.default,this.observer=C,this.typeSupported=m,this.config=T,this.vendor=I,this.id=D}var E=R.prototype;return E.configure=function(m){this.transmuxConfig=m,this.decrypter&&this.decrypter.reset()},E.push=function(m,T,I,D){var N=this,z=I.transmuxing;z.executeStart=i();var F=new Uint8Array(m),W=this.cache,K=this.config,B=this.currentTransmuxState,k=this.transmuxConfig;D&&(this.currentTransmuxState=D);var G=p(F,T);if(G&&G.method==="AES-128"){var ne=this.getDecrypter();if(K.enableSoftwareAES){var fe=ne.softwareDecrypt(F,G.key.buffer,G.iv.buffer);if(!fe)return z.executeEnd=i(),O(I);F=new Uint8Array(fe)}else return this.decryptionPromise=ne.webCryptoDecrypt(F,G.key.buffer,G.iv.buffer).then(function($){var J=N.push($,null,I);return N.decryptionPromise=null,J}),this.decryptionPromise}var de=D||B,xe=de.contiguous,Oe=de.discontinuity,ce=de.trackSwitch,be=de.accurateTimeOffset,ve=de.timeOffset,ue=k.audioCodec,se=k.videoCodec,q=k.defaultInitPts,me=k.duration,re=k.initSegmentData;if((Oe||ce)&&this.resetInitSegment(re,ue,se,me),Oe&&this.resetInitialTimestamp(q),xe||this.resetContiguity(),this.needsProbing(F,Oe,ce)){if(W.dataLength){var ie=W.flush();F=Object(a.appendUint8Array)(ie,F)}this.configureTransmuxer(F,k)}var we=this.transmux(F,G,ve,be,I),le=this.currentTransmuxState;return le.contiguous=!0,le.discontinuity=!1,le.trackSwitch=!1,z.executeEnd=i(),we},E.flush=function(m){var T=this,I=m.transmuxing;I.executeStart=i();var D=this.decrypter,N=this.cache,z=this.currentTransmuxState,F=this.decryptionPromise;if(F)return F.then(function(){return T.flush(m)});var W=[],K=z.timeOffset;if(D){var B=D.flush();B&&W.push(this.push(B,null,m))}var k=N.dataLength;N.reset();var G=this.demuxer,ne=this.remuxer;if(!G||!ne)return k>=l&&this.observer.emit(b.Events.ERROR,b.Events.ERROR,{type:y.ErrorTypes.MEDIA_ERROR,details:y.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),I.executeEnd=i(),[O(m)];var fe=G.flush(K);return S(fe)?fe.then(function(de){return T.flushRemux(W,de,m),W}):(this.flushRemux(W,fe,m),W)},E.flushRemux=function(m,T,I){var D=T.audioTrack,N=T.avcTrack,z=T.id3Track,F=T.textTrack,W=this.currentTransmuxState,K=W.accurateTimeOffset,B=W.timeOffset;n.logger.log("[transmuxer.ts]: Flushed fragment "+I.sn+(I.part>-1?" p: "+I.part:"")+" of level "+I.level);var k=this.remuxer.remux(D,N,z,F,B,K,!0,this.id);m.push({remuxResult:k,chunkMeta:I}),I.transmuxing.executeEnd=i()},E.resetInitialTimestamp=function(m){var T=this.demuxer,I=this.remuxer;if(!T||!I)return;T.resetTimeStamp(m),I.resetTimeStamp(m)},E.resetContiguity=function(){var m=this.demuxer,T=this.remuxer;if(!m||!T)return;m.resetContiguity(),T.resetNextTimestamp()},E.resetInitSegment=function(m,T,I,D){var N=this.demuxer,z=this.remuxer;if(!N||!z)return;N.resetInitSegment(T,I,D),z.resetInitSegment(m,T,I)},E.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},E.transmux=function(m,T,I,D,N){var z;return T&&T.method==="SAMPLE-AES"?z=this.transmuxSampleAes(m,T,I,D,N):z=this.transmuxUnencrypted(m,I,D,N),z},E.transmuxUnencrypted=function(m,T,I,D){var N=this.demuxer.demux(m,T,!1,!this.config.progressive),z=N.audioTrack,F=N.avcTrack,W=N.id3Track,K=N.textTrack,B=this.remuxer.remux(z,F,W,K,T,I,!1,this.id);return{remuxResult:B,chunkMeta:D}},E.transmuxSampleAes=function(m,T,I,D,N){var z=this;return this.demuxer.demuxSampleAes(m,T,I).then(function(F){var W=z.remuxer.remux(F.audioTrack,F.avcTrack,F.id3Track,F.textTrack,I,D,!1,z.id);return{remuxResult:W,chunkMeta:N}})},E.configureTransmuxer=function(m,T){for(var I=this.config,D=this.observer,N=this.typeSupported,z=this.vendor,F=T.audioCodec,W=T.defaultInitPts,K=T.duration,B=T.initSegmentData,k=T.videoCodec,G,ne=0,fe=h.length;ne<fe;ne++)if(h[ne].demux.probe(m)){G=h[ne];break}G||(n.logger.warn("Failed to find demuxer by probing frag, treating as mp4 passthrough"),G={demux:f.default,remux:u.default});var de=this.demuxer,xe=this.remuxer,Oe=G.remux,ce=G.demux;(!xe||!(xe instanceof Oe))&&(this.remuxer=new Oe(D,I,N,z)),(!de||!(de instanceof ce))&&(this.demuxer=new ce(D,I,N),this.probe=ce.probe),this.resetInitSegment(B,F,k,K),this.resetInitialTimestamp(W)},E.needsProbing=function(m,T,I){return!this.demuxer||!this.remuxer||T||I},E.getDecrypter=function(){var m=this.decrypter;return m||(m=this.decrypter=new x.default(this.observer,this.config)),m},R}();function p(R,E){var C=null;return R.byteLength>0&&E!=null&&E.key!=null&&E.iv!==null&&E.method!=null&&(C=E),C}var O=function(E){return{remuxResult:{},chunkMeta:E}};function S(R){return"then"in R&&R.then instanceof Function}var v=function(E,C,m,T,I){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=E,this.videoCodec=C,this.initSegmentData=m,this.duration=T,this.defaultInitPts=I},P=function(E,C,m,T,I){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=E,this.contiguous=C,this.accurateTimeOffset=m,this.trackSwitch=T,this.timeOffset=I}},"./src/demux/tsdemuxer.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"discardEPB",function(){return O});var b=A("./src/demux/adts.ts"),y=A("./src/demux/mpegaudio.ts"),x=A("./src/demux/exp-golomb.ts"),w=A("./src/demux/id3.ts"),f=A("./src/demux/sample-aes.ts"),_=A("./src/events.ts"),d=A("./src/utils/mp4-tools.ts"),r=A("./src/utils/logger.ts"),u=A("./src/errors.ts"),t={video:1,audio:2,id3:3,text:4},a=function(){function S(P,R,E){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=P,this.config=R,this.typeSupported=E}S.probe=function(R){var E=S.syncOffset(R);return E<0?!1:(E&&r.logger.warn("MPEG2-TS detected but first sync word found @ offset "+E+", junk ahead ?"),!0)},S.syncOffset=function(R){for(var E=Math.min(1e3,R.length-3*188),C=0;C<E;){if(R[C]===71&&R[C+188]===71&&R[C+2*188]===71)return C;C++}return-1},S.createTrack=function(R,E){return{container:R==="video"||R==="audio"?"video/mp2t":void 0,type:R,id:t[R],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:R==="audio"?E:void 0}};var v=S.prototype;return v.resetInitSegment=function(R,E,C){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=S.createTrack("video",C),this._audioTrack=S.createTrack("audio",C),this._id3Track=S.createTrack("id3",C),this._txtTrack=S.createTrack("text",C),this._audioTrack.isAAC=!0,this.aacOverFlow=null,this.aacLastPTS=null,this.avcSample=null,this.audioCodec=R,this.videoCodec=E,this._duration=C},v.resetTimeStamp=function(){},v.resetContiguity=function(){var R=this._audioTrack,E=this._avcTrack,C=this._id3Track;R&&(R.pesData=null),E&&(E.pesData=null),C&&(C.pesData=null),this.aacOverFlow=null,this.aacLastPTS=null},v.demux=function(R,E,C,m){C===void 0&&(C=!1),m===void 0&&(m=!1),C||(this.sampleAes=null);var T,I=this._avcTrack,D=this._audioTrack,N=this._id3Track,z=I.pid,F=I.pesData,W=D.pid,K=N.pid,B=D.pesData,k=N.pesData,G=!1,ne=this.pmtParsed,fe=this._pmtId,de=R.length;if(this.remainderData&&(R=Object(d.appendUint8Array)(this.remainderData,R),de=R.length,this.remainderData=null),de<188&&!m)return this.remainderData=R,{audioTrack:D,avcTrack:I,id3Track:N,textTrack:this._txtTrack};var xe=Math.max(0,S.syncOffset(R));de-=(de+xe)%188,de<R.byteLength&&!m&&(this.remainderData=new Uint8Array(R.buffer,de,R.buffer.byteLength-de));for(var Oe=xe;Oe<de;Oe+=188)if(R[Oe]===71){var ce=!!(R[Oe+1]&64),be=((R[Oe+1]&31)<<8)+R[Oe+2],ve=(R[Oe+3]&48)>>4,ue=void 0;if(ve>1){if(ue=Oe+5+R[Oe+4],ue===Oe+188)continue}else ue=Oe+4;switch(be){case z:ce&&(F&&(T=l(F))&&this.parseAVCPES(T,!1),F={data:[],size:0}),F&&(F.data.push(R.subarray(ue,Oe+188)),F.size+=Oe+188-ue);break;case W:ce&&(B&&(T=l(B))&&(D.isAAC?this.parseAACPES(T):this.parseMPEGPES(T)),B={data:[],size:0}),B&&(B.data.push(R.subarray(ue,Oe+188)),B.size+=Oe+188-ue);break;case K:ce&&(k&&(T=l(k))&&this.parseID3PES(T),k={data:[],size:0}),k&&(k.data.push(R.subarray(ue,Oe+188)),k.size+=Oe+188-ue);break;case 0:ce&&(ue+=R[ue]+1),fe=this._pmtId=i(R,ue);break;case fe:{ce&&(ue+=R[ue]+1);var se=h(R,ue,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,C);z=se.avc,z>0&&(I.pid=z),W=se.audio,W>0&&(D.pid=W,D.isAAC=se.isAAC),K=se.id3,K>0&&(N.pid=K),G&&!ne&&(r.logger.log("reparse from beginning"),G=!1,Oe=xe-188),ne=this.pmtParsed=!0;break}case 17:case 8191:break;default:G=!0;break}}else this.observer.emit(_.Events.ERROR,_.Events.ERROR,{type:u.ErrorTypes.MEDIA_ERROR,details:u.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});I.pesData=F,D.pesData=B,N.pesData=k;var q={audioTrack:D,avcTrack:I,id3Track:N,textTrack:this._txtTrack};return m&&this.extractRemainingSamples(q),q},v.flush=function(){var R=this.remainderData;this.remainderData=null;var E;return R?E=this.demux(R,-1,!1,!0):E={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(E),this.sampleAes?this.decrypt(E,this.sampleAes):E},v.extractRemainingSamples=function(R){var E=R.audioTrack,C=R.avcTrack,m=R.id3Track,T=C.pesData,I=E.pesData,D=m.pesData,N;T&&(N=l(T))?(this.parseAVCPES(N,!0),C.pesData=null):C.pesData=T,I&&(N=l(I))?(E.isAAC?this.parseAACPES(N):this.parseMPEGPES(N),E.pesData=null):(I!=null&&I.size&&r.logger.log("last AAC PES packet truncated,might overlap between fragments"),E.pesData=I),D&&(N=l(D))?(this.parseID3PES(N),m.pesData=null):m.pesData=D},v.demuxSampleAes=function(R,E,C){var m=this.demux(R,C,!0,!this.config.progressive),T=this.sampleAes=new f.default(this.observer,this.config,E);return this.decrypt(m,T)},v.decrypt=function(R,E){return new Promise(function(C){var m=R.audioTrack,T=R.avcTrack;m.samples&&m.isAAC?E.decryptAacSamples(m.samples,0,function(){T.samples?E.decryptAvcSamples(T.samples,0,0,function(){C(R)}):C(R)}):T.samples&&E.decryptAvcSamples(T.samples,0,0,function(){C(R)})})},v.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},v.parseAVCPES=function(R,E){var C=this,m=this._avcTrack,T=this.parseAVCNALu(R.data),I=!1,D=this.avcSample,N,z=!1;R.data=null,D&&T.length&&!m.audFound&&(s(D,m),D=this.avcSample=n(!1,R.pts,R.dts,"")),T.forEach(function(F){switch(F.type){case 1:{N=!0,D||(D=C.avcSample=n(!0,R.pts,R.dts,"")),I&&(D.debug+="NDR "),D.frame=!0;var W=F.data;if(z&&W.length>4){var K=new x.default(W).readSliceType();(K===2||K===4||K===7||K===9)&&(D.key=!0)}break}case 5:N=!0,D||(D=C.avcSample=n(!0,R.pts,R.dts,"")),I&&(D.debug+="IDR "),D.key=!0,D.frame=!0;break;case 6:{N=!0,I&&D&&(D.debug+="SEI ");var B=new x.default(O(F.data));B.readUByte();for(var k=0,G=0,ne=!1,fe=0;!ne&&B.bytesAvailable>1;){k=0;do fe=B.readUByte(),k+=fe;while(fe===255);G=0;do fe=B.readUByte(),G+=fe;while(fe===255);if(k===4&&B.bytesAvailable!==0){ne=!0;var de=B.readUByte();if(de===181){var xe=B.readUShort();if(xe===49){var Oe=B.readUInt();if(Oe===1195456820){var ce=B.readUByte();if(ce===3){for(var be=B.readUByte(),ve=B.readUByte(),ue=31&be,se=[be,ve],q=0;q<ue;q++)se.push(B.readUByte()),se.push(B.readUByte()),se.push(B.readUByte());p(C._txtTrack.samples,{type:3,pts:R.pts,bytes:se})}}}}}else if(k===5&&B.bytesAvailable!==0){if(ne=!0,G>16){for(var me=[],re=0;re<16;re++)me.push(B.readUByte().toString(16)),(re===3||re===5||re===7||re===9)&&me.push("-");for(var ie=G-16,we=new Uint8Array(ie),le=0;le<ie;le++)we[le]=B.readUByte();p(C._txtTrack.samples,{pts:R.pts,payloadType:k,uuid:me.join(""),userData:Object(w.utf8ArrayToStr)(we),userDataBytes:we})}}else if(G<B.bytesAvailable)for(var $=0;$<G;$++)B.readUByte()}break}case 7:if(N=!0,z=!0,I&&D&&(D.debug+="SPS "),!m.sps){var J=new x.default(F.data),te=J.readSPS();m.width=te.width,m.height=te.height,m.pixelRatio=te.pixelRatio,m.sps=[F.data],m.duration=C._duration;for(var De=F.data.subarray(1,4),Te="avc1.",ke=0;ke<3;ke++){var tt=De[ke].toString(16);tt.length<2&&(tt="0"+tt),Te+=tt}m.codec=Te}break;case 8:N=!0,I&&D&&(D.debug+="PPS "),m.pps||(m.pps=[F.data]);break;case 9:N=!1,m.audFound=!0,D&&s(D,m),D=C.avcSample=n(!1,R.pts,R.dts,I?"AUD ":"");break;case 12:N=!1;break;default:N=!1,D&&(D.debug+="unknown NAL "+F.type+" ");break}if(D&&N){var ot=D.units;ot.push(F)}}),E&&D&&(s(D,m),this.avcSample=null)},v.getLastNalUnit=function(){var R,E=this.avcSample,C;if(!E||E.units.length===0){var m=this._avcTrack.samples;E=m[m.length-1]}if((R=E)!==null&&R!==void 0&&R.units){var T=E.units;C=T[T.length-1]}return C},v.parseAVCNALu=function(R){var E=R.byteLength,C=this._avcTrack,m=C.naluState||0,T=m,I=[],D=0,N,z,F,W=-1,K=0;for(m===-1&&(W=0,K=R[0]&31,m=0,D=1);D<E;){if(N=R[D++],!m){m=N?0:1;continue}if(m===1){m=N?0:2;continue}if(!N)m=3;else if(N===1){if(W>=0){var B={data:R.subarray(W,D-m-1),type:K};I.push(B)}else{var k=this.getLastNalUnit();if(k&&(T&&D<=4-T&&(k.state&&(k.data=k.data.subarray(0,k.data.byteLength-T))),z=D-m-1,z>0)){var G=new Uint8Array(k.data.byteLength+z);G.set(k.data,0),G.set(R.subarray(0,z),k.data.byteLength),k.data=G,k.state=0}}D<E?(F=R[D]&31,W=D,K=F,m=0):m=-1}else m=0}if(W>=0&&m>=0){var ne={data:R.subarray(W,E),type:K,state:m};I.push(ne)}if(I.length===0){var fe=this.getLastNalUnit();if(fe){var de=new Uint8Array(fe.data.byteLength+R.byteLength);de.set(fe.data,0),de.set(R,fe.data.byteLength),fe.data=de}}return C.naluState=m,I},v.parseAACPES=function(R){var E=0,C=this._audioTrack,m=this.aacOverFlow,T=R.data;if(m){this.aacOverFlow=null;var I=m.sample.unit.byteLength,D=Math.min(m.missing,I),N=I-D;m.sample.unit.set(T.subarray(0,D),N),C.samples.push(m.sample),E=m.missing}var z,F;for(z=E,F=T.length;z<F-1&&!b.isHeader(T,z);z++);if(z!==E){var W,K;if(z<F-1?(W="AAC PES did not start with ADTS header,offset:"+z,K=!1):(W="no ADTS header found in AAC PES",K=!0),r.logger.warn("parsing error:"+W),this.observer.emit(_.Events.ERROR,_.Events.ERROR,{type:u.ErrorTypes.MEDIA_ERROR,details:u.ErrorDetails.FRAG_PARSING_ERROR,fatal:K,reason:W}),K)return}b.initTrackConfig(C,this.observer,T,z,this.audioCodec);var B;if(R.pts!==void 0)B=R.pts;else if(m){var k=b.getFrameDuration(C.samplerate);B=m.sample.pts+k}else{r.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}for(var G=0;z<F;)if(b.isHeader(T,z)){if(z+5<F){var ne=b.appendFrame(C,T,z,B,G);if(ne)if(ne.missing)this.aacOverFlow=ne;else{z+=ne.length,G++;continue}}break}else z++},v.parseMPEGPES=function(R){var E=R.data,C=E.length,m=0,T=0,I=R.pts;if(I===void 0){r.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;T<C;)if(y.isHeader(E,T)){var D=y.appendFrame(this._audioTrack,E,T,I,m);if(D)T+=D.length,m++;else break}else T++},v.parseID3PES=function(R){if(R.pts===void 0){r.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}this._id3Track.samples.push(R)},S}();a.minProbeByteLength=188;function n(S,v,P,R){return{key:S,frame:!1,pts:v,dts:P,units:[],debug:R,length:0}}function i(S,v){return(S[v+10]&31)<<8|S[v+11]}function h(S,v,P,R){var E={audio:-1,avc:-1,id3:-1,isAAC:!0},C=(S[v+1]&15)<<8|S[v+2],m=v+3+C-4,T=(S[v+10]&15)<<8|S[v+11];for(v+=12+T;v<m;){var I=(S[v+1]&31)<<8|S[v+2];switch(S[v]){case 207:if(!R){r.logger.log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:E.audio===-1&&(E.audio=I);break;case 21:E.id3===-1&&(E.id3=I);break;case 219:if(!R){r.logger.log("H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:E.avc===-1&&(E.avc=I);break;case 3:case 4:P?E.audio===-1&&(E.audio=I,E.isAAC=!1):r.logger.log("MPEG audio found, not supported in this browser");break;case 36:r.logger.warn("Unsupported HEVC stream type found");break;default:break}v+=((S[v+3]&15)<<8|S[v+4])+5}return E}function l(S){var v=0,P,R,E,C,m,T=S.data;if(!S||S.size===0)return null;for(;T[0].length<19&&T.length>1;){var I=new Uint8Array(T[0].length+T[1].length);I.set(T[0]),I.set(T[1],T[0].length),T[0]=I,T.splice(1,1)}P=T[0];var D=(P[0]<<16)+(P[1]<<8)+P[2];if(D===1){if(R=(P[4]<<8)+P[5],R&&R>S.size-6)return null;var N=P[7];N&192&&(C=(P[9]&14)*536870912+(P[10]&255)*4194304+(P[11]&254)*16384+(P[12]&255)*128+(P[13]&254)/2,N&64?(m=(P[14]&14)*536870912+(P[15]&255)*4194304+(P[16]&254)*16384+(P[17]&255)*128+(P[18]&254)/2,C-m>60*9e4&&(r.logger.warn(Math.round((C-m)/9e4)+"s delta between PTS and DTS, align them"),C=m)):m=C),E=P[8];var z=E+9;if(S.size<=z)return null;S.size-=z;for(var F=new Uint8Array(S.size),W=0,K=T.length;W<K;W++){P=T[W];var B=P.byteLength;if(z)if(z>B){z-=B;continue}else P=P.subarray(z),B-=z,z=0;F.set(P,v),v+=B}return R&&(R-=E+3),{data:F,pts:C,dts:m,len:R}}return null}function s(S,v){if(S.units.length&&S.frame){if(S.pts===void 0){var P=v.samples,R=P.length;if(R){var E=P[R-1];S.pts=E.pts,S.dts=E.dts}else{v.dropped++;return}}v.samples.push(S)}S.debug.length&&r.logger.log(S.pts+"/"+S.dts+":"+S.debug)}function p(S,v){var P=S.length;if(P>0){if(v.pts>=S[P-1].pts)S.push(v);else for(var R=P-1;R>=0;R--)if(v.pts<S[R].pts){S.splice(R,0,v);break}}else S.push(v)}function O(S){for(var v=S.byteLength,P=[],R=1;R<v-2;)S[R]===0&&S[R+1]===0&&S[R+2]===3?(P.push(R+2),R+=2):R++;if(P.length===0)return S;var E=v-P.length,C=new Uint8Array(E),m=0;for(R=0;R<E;m++,R++)m===P[0]&&(m++,P.shift()),C[R]=S[m];return C}g.default=a},"./src/errors.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"ErrorTypes",function(){return b}),A.d(g,"ErrorDetails",function(){return y});var b;(function(x){x.NETWORK_ERROR="networkError",x.MEDIA_ERROR="mediaError",x.KEY_SYSTEM_ERROR="keySystemError",x.MUX_ERROR="muxError",x.OTHER_ERROR="otherError"})(b||(b={}));var y;(function(x){x.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",x.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",x.KEY_SYSTEM_NO_SESSION="keySystemNoSession",x.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",x.KEY_SYSTEM_NO_INIT_DATA="keySystemNoInitData",x.MANIFEST_LOAD_ERROR="manifestLoadError",x.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",x.MANIFEST_PARSING_ERROR="manifestParsingError",x.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",x.LEVEL_EMPTY_ERROR="levelEmptyError",x.LEVEL_LOAD_ERROR="levelLoadError",x.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",x.LEVEL_SWITCH_ERROR="levelSwitchError",x.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",x.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",x.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",x.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",x.FRAG_LOAD_ERROR="fragLoadError",x.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",x.FRAG_DECRYPT_ERROR="fragDecryptError",x.FRAG_PARSING_ERROR="fragParsingError",x.REMUX_ALLOC_ERROR="remuxAllocError",x.KEY_LOAD_ERROR="keyLoadError",x.KEY_LOAD_TIMEOUT="keyLoadTimeOut",x.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",x.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",x.BUFFER_APPEND_ERROR="bufferAppendError",x.BUFFER_APPENDING_ERROR="bufferAppendingError",x.BUFFER_STALLED_ERROR="bufferStalledError",x.BUFFER_FULL_ERROR="bufferFullError",x.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",x.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",x.INTERNAL_EXCEPTION="internalException",x.INTERNAL_ABORTED="aborted",x.UNKNOWN="unknown"})(y||(y={}))},"./src/events.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"Events",function(){return b});var b;(function(y){y.MEDIA_ATTACHING="hlsMediaAttaching",y.MEDIA_ATTACHED="hlsMediaAttached",y.MEDIA_DETACHING="hlsMediaDetaching",y.MEDIA_DETACHED="hlsMediaDetached",y.BUFFER_RESET="hlsBufferReset",y.BUFFER_CODECS="hlsBufferCodecs",y.BUFFER_CREATED="hlsBufferCreated",y.BUFFER_APPENDING="hlsBufferAppending",y.BUFFER_APPENDED="hlsBufferAppended",y.BUFFER_EOS="hlsBufferEos",y.BUFFER_FLUSHING="hlsBufferFlushing",y.BUFFER_FLUSHED="hlsBufferFlushed",y.MANIFEST_LOADING="hlsManifestLoading",y.MANIFEST_LOADED="hlsManifestLoaded",y.MANIFEST_PARSED="hlsManifestParsed",y.LEVEL_SWITCHING="hlsLevelSwitching",y.LEVEL_SWITCHED="hlsLevelSwitched",y.LEVEL_LOADING="hlsLevelLoading",y.LEVEL_LOADED="hlsLevelLoaded",y.LEVEL_UPDATED="hlsLevelUpdated",y.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",y.LEVELS_UPDATED="hlsLevelsUpdated",y.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",y.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",y.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",y.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",y.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",y.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",y.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",y.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",y.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",y.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",y.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",y.CUES_PARSED="hlsCuesParsed",y.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",y.INIT_PTS_FOUND="hlsInitPtsFound",y.FRAG_LOADING="hlsFragLoading",y.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",y.FRAG_LOADED="hlsFragLoaded",y.FRAG_DECRYPTED="hlsFragDecrypted",y.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",y.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",y.FRAG_PARSING_METADATA="hlsFragParsingMetadata",y.FRAG_PARSED="hlsFragParsed",y.FRAG_BUFFERED="hlsFragBuffered",y.FRAG_CHANGED="hlsFragChanged",y.FPS_DROP="hlsFpsDrop",y.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",y.ERROR="hlsError",y.DESTROYING="hlsDestroying",y.KEY_LOADING="hlsKeyLoading",y.KEY_LOADED="hlsKeyLoaded",y.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",y.BACK_BUFFER_REACHED="hlsBackBufferReached"})(b||(b={}))},"./src/hls.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"default",function(){return S});var b=A("./node_modules/url-toolkit/src/url-toolkit.js"),y=A.n(b),x=A("./src/loader/playlist-loader.ts"),w=A("./src/loader/key-loader.ts"),f=A("./src/controller/id3-track-controller.ts"),_=A("./src/controller/latency-controller.ts"),d=A("./src/controller/level-controller.ts"),r=A("./src/controller/fragment-tracker.ts"),u=A("./src/controller/stream-controller.ts"),t=A("./src/is-supported.ts"),a=A("./src/utils/logger.ts"),n=A("./src/config.ts"),i=A("./node_modules/eventemitter3/index.js"),h=A.n(i),l=A("./src/events.ts"),s=A("./src/errors.ts");function p(v,P){for(var R=0;R<P.length;R++){var E=P[R];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(v,E.key,E)}}function O(v,P,R){return P&&p(v.prototype,P),R&&p(v,R),v}var S=function(){v.isSupported=function(){return Object(t.isSupported)()};function v(R){R===void 0&&(R={}),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new i.EventEmitter,this._autoLevelCapping=void 0,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null;var E=this.config=Object(n.mergeConfig)(v.DefaultConfig,R);this.userConfig=R,Object(a.enableLogs)(E.debug),this._autoLevelCapping=-1,E.progressive&&Object(n.enableStreamingMode)(E);var C=E.abrController,m=E.bufferController,T=E.capLevelController,I=E.fpsController,D=this.abrController=new C(this),N=this.bufferController=new m(this),z=this.capLevelController=new T(this),F=new I(this),W=new x.default(this),K=new w.default(this),B=new f.default(this),k=this.levelController=new d.default(this),G=new r.FragmentTracker(this),ne=this.streamController=new u.default(this,G);z.setStreamController(ne),F.setStreamController(ne);var fe=[k,ne];this.networkControllers=fe;var de=[W,K,D,N,z,F,B,G];this.audioTrackController=this.createController(E.audioTrackController,null,fe),this.createController(E.audioStreamController,G,fe),this.subtitleTrackController=this.createController(E.subtitleTrackController,null,fe),this.createController(E.subtitleStreamController,G,fe),this.createController(E.timelineController,null,de),this.emeController=this.createController(E.emeController,null,de),this.cmcdController=this.createController(E.cmcdController,null,de),this.latencyController=this.createController(_.default,null,de),this.coreComponents=de}var P=v.prototype;return P.createController=function(E,C,m){if(E){var T=C?new E(this,C):new E(this);return m&&m.push(T),T}return null},P.on=function(E,C,m){m===void 0&&(m=this),this._emitter.on(E,C,m)},P.once=function(E,C,m){m===void 0&&(m=this),this._emitter.once(E,C,m)},P.removeAllListeners=function(E){this._emitter.removeAllListeners(E)},P.off=function(E,C,m,T){m===void 0&&(m=this),this._emitter.off(E,C,m,T)},P.listeners=function(E){return this._emitter.listeners(E)},P.emit=function(E,C,m){return this._emitter.emit(E,C,m)},P.trigger=function(E,C){if(this.config.debug)return this.emit(E,E,C);try{return this.emit(E,E,C)}catch(m){a.logger.error("An internal error happened while handling event "+E+'. Error message: "'+m.message+'". Here is a stacktrace:',m),this.trigger(l.Events.ERROR,{type:s.ErrorTypes.OTHER_ERROR,details:s.ErrorDetails.INTERNAL_EXCEPTION,fatal:!1,event:E,error:m})}return!1},P.listenerCount=function(E){return this._emitter.listenerCount(E)},P.destroy=function(){a.logger.log("destroy"),this.trigger(l.Events.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(function(E){return E.destroy()}),this.networkControllers.length=0,this.coreComponents.forEach(function(E){return E.destroy()}),this.coreComponents.length=0},P.attachMedia=function(E){a.logger.log("attachMedia"),this._media=E,this.trigger(l.Events.MEDIA_ATTACHING,{media:E})},P.detachMedia=function(){a.logger.log("detachMedia"),this.trigger(l.Events.MEDIA_DETACHING,void 0),this._media=null},P.loadSource=function(E){this.stopLoad();var C=this.media,m=this.url,T=this.url=b.buildAbsoluteURL(self.location.href,E,{alwaysNormalize:!0});a.logger.log("loadSource:"+T),C&&m&&m!==T&&this.bufferController.hasSourceTypes()&&(this.detachMedia(),this.attachMedia(C)),this.trigger(l.Events.MANIFEST_LOADING,{url:E})},P.startLoad=function(E){E===void 0&&(E=-1),a.logger.log("startLoad("+E+")"),this.networkControllers.forEach(function(C){C.startLoad(E)})},P.stopLoad=function(){a.logger.log("stopLoad"),this.networkControllers.forEach(function(E){E.stopLoad()})},P.swapAudioCodec=function(){a.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()},P.recoverMediaError=function(){a.logger.log("recoverMediaError");var E=this._media;this.detachMedia(),E&&this.attachMedia(E)},P.removeLevel=function(E,C){C===void 0&&(C=0),this.levelController.removeLevel(E,C)},O(v,[{key:"levels",get:function(){var E=this.levelController.levels;return E||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(E){a.logger.log("set currentLevel:"+E),this.loadLevel=E,this.abrController.clearTimer(),this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(E){a.logger.log("set nextLevel:"+E),this.levelController.manualLevel=E,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(E){a.logger.log("set loadLevel:"+E),this.levelController.manualLevel=E}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(E){this.levelController.nextLoadLevel=E}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(E){a.logger.log("set firstLevel:"+E),this.levelController.firstLevel=E}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(E){a.logger.log("set startLevel:"+E),E!==-1&&(E=Math.max(E,this.minAutoLevel)),this.levelController.startLevel=E}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(E){var C=!!E;C!==this.config.capLevelToPlayerSize&&(C?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=C)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(E){this._autoLevelCapping!==E&&(a.logger.log("set autoLevelCapping:"+E),this._autoLevelCapping=E)}},{key:"bandwidthEstimate",get:function(){var E=this.abrController.bwEstimator;return E?E.getEstimate():NaN}},{key:"autoLevelEnabled",get:function(){return this.levelController.manualLevel===-1}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var E=this.levels,C=this.config.minAutoBitrate;if(!E)return 0;for(var m=E.length,T=0;T<m;T++)if(E[T].maxBitrate>C)return T;return 0}},{key:"maxAutoLevel",get:function(){var E=this.levels,C=this.autoLevelCapping,m;return C===-1&&E&&E.length?m=E.length-1:m=C,m}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(E){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,E)}},{key:"audioTracks",get:function(){var E=this.audioTrackController;return E?E.audioTracks:[]}},{key:"audioTrack",get:function(){var E=this.audioTrackController;return E?E.audioTrack:-1},set:function(E){var C=this.audioTrackController;C&&(C.audioTrack=E)}},{key:"subtitleTracks",get:function(){var E=this.subtitleTrackController;return E?E.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var E=this.subtitleTrackController;return E?E.subtitleTrack:-1},set:function(E){var C=this.subtitleTrackController;C&&(C.subtitleTrack=E)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var E=this.subtitleTrackController;return E?E.subtitleDisplay:!1},set:function(E){var C=this.subtitleTrackController;C&&(C.subtitleDisplay=E)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(E){this.config.lowLatencyMode=E}},{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 l.Events}},{key:"ErrorTypes",get:function(){return s.ErrorTypes}},{key:"ErrorDetails",get:function(){return s.ErrorDetails}},{key:"DefaultConfig",get:function(){return v.defaultConfig?v.defaultConfig:n.hlsDefaultConfig},set:function(E){v.defaultConfig=E}}]),v}();S.defaultConfig=void 0},"./src/is-supported.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"isSupported",function(){return x}),A.d(g,"changeTypeSupported",function(){return w});var b=A("./src/utils/mediasource-helper.ts");function y(){return self.SourceBuffer||self.WebKitSourceBuffer}function x(){var f=Object(b.getMediaSource)();if(!f)return!1;var _=y(),d=f&&typeof f.isTypeSupported=="function"&&f.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),r=!_||_.prototype&&typeof _.prototype.appendBuffer=="function"&&typeof _.prototype.remove=="function";return!!d&&!!r}function w(){var f,_=y();return typeof(_==null||((f=_.prototype)===null||f===void 0)?void 0:f.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"default",function(){return a}),A.d(g,"LoadError",function(){return i});var b=A("./src/polyfills/number.ts"),y=A("./src/errors.ts");function x(h,l){h.prototype=Object.create(l.prototype),h.prototype.constructor=h,r(h,l)}function w(h){var l=typeof Map=="function"?new Map:void 0;return w=function(p){if(p===null||!d(p))return p;if(typeof p!="function")throw new TypeError("Super expression must either be null or a function");if(typeof l!="undefined"){if(l.has(p))return l.get(p);l.set(p,O)}function O(){return f(p,arguments,u(this).constructor)}return O.prototype=Object.create(p.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),r(O,p)},w(h)}function f(h,l,s){return _()?f=Reflect.construct:f=function(O,S,v){var P=[null];P.push.apply(P,S);var R=Function.bind.apply(O,P),E=new R;return v&&r(E,v.prototype),E},f.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(h){return!1}}function d(h){return Function.toString.call(h).indexOf("[native code]")!==-1}function r(h,l){return r=Object.setPrototypeOf||function(p,O){return p.__proto__=O,p},r(h,l)}function u(h){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)},u(h)}var t=Math.pow(2,17),a=function(){function h(s){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=s}var l=h.prototype;return l.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},l.abort=function(){this.loader&&this.loader.abort()},l.load=function(p,O){var S=this,v=p.url;if(!v)return Promise.reject(new i({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:p,networkDetails:null},"Fragment does not have a "+(v?"part list":"url")));this.abort();var P=this.config,R=P.fLoader,E=P.loader;return new Promise(function(C,m){S.loader&&S.loader.destroy();var T=S.loader=p.loader=R?new R(P):new E(P),I=n(p),D={timeout:P.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:P.fragLoadingMaxRetryTimeout,highWaterMark:t};p.stats=T.stats,T.load(I,D,{onSuccess:function(z,F,W,K){S.resetLoader(p,T),C({frag:p,part:null,payload:z.data,networkDetails:K})},onError:function(z,F,W){S.resetLoader(p,T),m(new i({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:p,response:z,networkDetails:W}))},onAbort:function(z,F,W){S.resetLoader(p,T),m(new i({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:p,networkDetails:W}))},onTimeout:function(z,F,W){S.resetLoader(p,T),m(new i({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:p,networkDetails:W}))},onProgress:function(z,F,W,K){O&&O({frag:p,part:null,payload:W,networkDetails:K})}})})},l.loadPart=function(p,O,S){var v=this;this.abort();var P=this.config,R=P.fLoader,E=P.loader;return new Promise(function(C,m){v.loader&&v.loader.destroy();var T=v.loader=p.loader=R?new R(P):new E(P),I=n(p,O),D={timeout:P.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:P.fragLoadingMaxRetryTimeout,highWaterMark:t};O.stats=T.stats,T.load(I,D,{onSuccess:function(z,F,W,K){v.resetLoader(p,T),v.updateStatsFromPart(p,O);var B={frag:p,part:O,payload:z.data,networkDetails:K};S(B),C(B)},onError:function(z,F,W){v.resetLoader(p,T),m(new i({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:p,part:O,response:z,networkDetails:W}))},onAbort:function(z,F,W){p.stats.aborted=O.stats.aborted,v.resetLoader(p,T),m(new i({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:p,part:O,networkDetails:W}))},onTimeout:function(z,F,W){v.resetLoader(p,T),m(new i({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:p,part:O,networkDetails:W}))}})})},l.updateStatsFromPart=function(p,O){var S=p.stats,v=O.stats,P=v.total;if(S.loaded+=v.loaded,P){var R=Math.round(p.duration/O.duration),E=Math.min(Math.round(S.loaded/P),R),C=R-E,m=C*Math.round(S.loaded/E);S.total=S.loaded+m}else S.total=Math.max(S.loaded,S.total);var T=S.loading,I=v.loading;T.start?T.first+=I.first-I.start:(T.start=I.start,T.first=I.first),T.end=I.end},l.resetLoader=function(p,O){p.loader=null,this.loader===O&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),O.destroy()},h}();function n(h,l){l===void 0&&(l=null);var s=l||h,p={frag:h,part:l,responseType:"arraybuffer",url:s.url,headers:{},rangeStart:0,rangeEnd:0},O=s.byteRangeStartOffset,S=s.byteRangeEndOffset;return Object(b.isFiniteNumber)(O)&&Object(b.isFiniteNumber)(S)&&(p.rangeStart=O,p.rangeEnd=S),p}var i=function(h){x(l,h);function l(s){for(var p,O=arguments.length,S=new Array(O>1?O-1:0),v=1;v<O;v++)S[v-1]=arguments[v];return p=h.call.apply(h,[this].concat(S))||this,p.data=void 0,p.data=s,p}return l}(w(Error))},"./src/loader/fragment.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"ElementaryStreamTypes",function(){return a}),A.d(g,"BaseSegment",function(){return n}),A.d(g,"Fragment",function(){return i}),A.d(g,"Part",function(){return h});var b=A("./src/polyfills/number.ts"),y=A("./node_modules/url-toolkit/src/url-toolkit.js"),x=A.n(y),w=A("./src/utils/logger.ts"),f=A("./src/loader/level-key.ts"),_=A("./src/loader/load-stats.ts");function d(l,s){l.prototype=Object.create(s.prototype),l.prototype.constructor=l,r(l,s)}function r(l,s){return r=Object.setPrototypeOf||function(O,S){return O.__proto__=S,O},r(l,s)}function u(l,s){for(var p=0;p<s.length;p++){var O=s[p];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(l,O.key,O)}}function t(l,s,p){return s&&u(l.prototype,s),p&&u(l,p),l}var a;(function(l){l.AUDIO="audio",l.VIDEO="video",l.AUDIOVIDEO="audiovideo"})(a||(a={}));var n=function(){function l(p){var O;this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=(O={},O[a.AUDIO]=null,O[a.VIDEO]=null,O[a.AUDIOVIDEO]=null,O),this.baseurl=p}var s=l.prototype;return s.setByteRange=function(O,S){var v=O.split("@",2),P=[];v.length===1?P[0]=S?S.byteRangeEndOffset:0:P[0]=parseInt(v[1]),P[1]=parseInt(v[0])+P[0],this._byteRange=P},t(l,[{key:"byteRange",get:function(){return this._byteRange?this._byteRange:[]}},{key:"byteRangeStartOffset",get:function(){return this.byteRange[0]}},{key:"byteRangeEndOffset",get:function(){return this.byteRange[1]}},{key:"url",get:function(){return!this._url&&this.baseurl&&this.relurl&&(this._url=Object(y.buildAbsoluteURL)(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(O){this._url=O}}]),l}(),i=function(l){d(s,l);function s(O,S){var v;return v=l.call(this,S)||this,v._decryptdata=null,v.rawProgramDateTime=null,v.programDateTime=null,v.tagList=[],v.duration=0,v.sn=0,v.levelkey=void 0,v.type=void 0,v.loader=null,v.level=-1,v.cc=0,v.startPTS=void 0,v.endPTS=void 0,v.appendedPTS=void 0,v.startDTS=void 0,v.endDTS=void 0,v.start=0,v.deltaPTS=void 0,v.maxStartPTS=void 0,v.minEndPTS=void 0,v.stats=new _.LoadStats,v.urlId=0,v.data=void 0,v.bitrateTest=!1,v.title=null,v.initSegment=null,v.type=O,v}var p=s.prototype;return p.createInitializationVector=function(S){for(var v=new Uint8Array(16),P=12;P<16;P++)v[P]=S>>8*(15-P)&255;return v},p.setDecryptDataFromLevelKey=function(S,v){var P=S;return(S==null?void 0:S.method)==="AES-128"&&S.uri&&!S.iv&&(P=f.LevelKey.fromURI(S.uri),P.method=S.method,P.iv=this.createInitializationVector(v),P.keyFormat="identity"),P},p.setElementaryStreamInfo=function(S,v,P,R,E,C){C===void 0&&(C=!1);var m=this.elementaryStreams,T=m[S];if(!T){m[S]={startPTS:v,endPTS:P,startDTS:R,endDTS:E,partial:C};return}T.startPTS=Math.min(T.startPTS,v),T.endPTS=Math.max(T.endPTS,P),T.startDTS=Math.min(T.startDTS,R),T.endDTS=Math.max(T.endDTS,E)},p.clearElementaryStreamInfo=function(){var S=this.elementaryStreams;S[a.AUDIO]=null,S[a.VIDEO]=null,S[a.AUDIOVIDEO]=null},t(s,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var S=this.sn;typeof S!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&w.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),S=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,S)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(b.isFiniteNumber)(this.programDateTime))return null;var S=Object(b.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+S*1e3}},{key:"encrypted",get:function(){var S;return!!((S=this.decryptdata)!==null&&S!==void 0&&S.keyFormat&&this.decryptdata.uri)}}]),s}(n),h=function(l){d(s,l);function s(p,O,S,v,P){var R;R=l.call(this,S)||this,R.fragOffset=0,R.duration=0,R.gap=!1,R.independent=!1,R.relurl=void 0,R.fragment=void 0,R.index=void 0,R.stats=new _.LoadStats,R.duration=p.decimalFloatingPoint("DURATION"),R.gap=p.bool("GAP"),R.independent=p.bool("INDEPENDENT"),R.relurl=p.enumeratedString("URI"),R.fragment=O,R.index=v;var E=p.enumeratedString("BYTERANGE");return E&&R.setByteRange(E,P),P&&(R.fragOffset=P.fragOffset+P.duration),R}return t(s,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var O=this.elementaryStreams;return!!(O.audio||O.video||O.audiovideo)}}]),s}(n)},"./src/loader/key-loader.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"default",function(){return w});var b=A("./src/events.ts"),y=A("./src/errors.ts"),x=A("./src/utils/logger.ts"),w=function(){function f(d){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=d,this._registerListeners()}var _=f.prototype;return _._registerListeners=function(){this.hls.on(b.Events.KEY_LOADING,this.onKeyLoading,this)},_._unregisterListeners=function(){this.hls.off(b.Events.KEY_LOADING,this.onKeyLoading)},_.destroy=function(){this._unregisterListeners();for(var r in this.loaders){var u=this.loaders[r];u&&u.destroy()}this.loaders={}},_.onKeyLoading=function(r,u){var t=u.frag,a=t.type,n=this.loaders[a];if(!t.decryptdata){x.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var i=t.decryptdata.uri;if(i!==this.decrypturl||this.decryptkey===null){var h=this.hls.config;if(n&&(x.logger.warn("abort previous key loader for type:"+a),n.abort()),!i){x.logger.warn("key uri is falsy");return}var l=h.loader,s=t.loader=this.loaders[a]=new l(h);this.decrypturl=i,this.decryptkey=null;var p={url:i,frag:t,responseType:"arraybuffer"},O={timeout:h.fragLoadingTimeOut,maxRetry:0,retryDelay:h.fragLoadingRetryDelay,maxRetryDelay:h.fragLoadingMaxRetryTimeout,highWaterMark:0},S={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};s.load(p,O,S)}else this.decryptkey&&(t.decryptdata.key=this.decryptkey,this.hls.trigger(b.Events.KEY_LOADED,{frag:t}))},_.loadsuccess=function(r,u,t){var a=t.frag;if(!a.decryptdata){x.logger.error("after key load, decryptdata unset");return}this.decryptkey=a.decryptdata.key=new Uint8Array(r.data),a.loader=null,delete this.loaders[a.type],this.hls.trigger(b.Events.KEY_LOADED,{frag:a})},_.loaderror=function(r,u){var t=u.frag,a=t.loader;a&&a.abort(),delete this.loaders[t.type],this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:t,response:r})},_.loadtimeout=function(r,u){var t=u.frag,a=t.loader;a&&a.abort(),delete this.loaders[t.type],this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:t})},f}()},"./src/loader/level-details.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"LevelDetails",function(){return f});var b=A("./src/polyfills/number.ts");function y(_,d){for(var r=0;r<d.length;r++){var u=d[r];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(_,u.key,u)}}function x(_,d,r){return d&&y(_.prototype,d),r&&y(_,r),_}var w=10,f=function(){function _(r){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.needSidxRanges=!1,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.fragments=[],this.url=r}var d=_.prototype;return d.reloaded=function(u){if(!u){this.advanced=!0,this.updated=!0;return}var t=this.lastPartSn-u.lastPartSn,a=this.lastPartIndex-u.lastPartIndex;this.updated=this.endSN!==u.endSN||!!a||!!t,this.advanced=this.endSN>u.endSN||t>0||t===0&&a>0,this.updated||this.advanced?this.misses=Math.floor(u.misses*.6):this.misses=u.misses+1,this.availabilityDelay=u.availabilityDelay},x(_,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(b.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||w}},{key:"drift",get:function(){var u=this.driftEndTime-this.driftStartTime;if(u>0){var t=this.driftEnd-this.driftStart;return t*1e3/u}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var u;return(u=this.partList)!==null&&u!==void 0&&u.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var u;return(u=this.fragments)!==null&&u!==void 0&&u.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 u;return(u=this.partList)!==null&&u!==void 0&&u.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var u;return(u=this.partList)!==null&&u!==void 0&&u.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),_}()},"./src/loader/level-key.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"LevelKey",function(){return f});var b=A("./node_modules/url-toolkit/src/url-toolkit.js"),y=A.n(b);function x(_,d){for(var r=0;r<d.length;r++){var u=d[r];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(_,u.key,u)}}function w(_,d,r){return d&&x(_.prototype,d),r&&x(_,r),_}var f=function(){_.fromURL=function(r,u){return new _(r,u)},_.fromURI=function(r){return new _(r)};function _(d,r){this._uri=null,this.method=null,this.keyFormat=null,this.keyFormatVersions=null,this.keyID=null,this.key=null,this.iv=null,r?this._uri=Object(b.buildAbsoluteURL)(d,r,{alwaysNormalize:!0}):this._uri=d}return w(_,[{key:"uri",get:function(){return this._uri}}]),_}()},"./src/loader/load-stats.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"LoadStats",function(){return b});var b=function(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}}},"./src/loader/m3u8-parser.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"default",function(){return s});var b=A("./src/polyfills/number.ts"),y=A("./node_modules/url-toolkit/src/url-toolkit.js"),x=A.n(y),w=A("./src/loader/fragment.ts"),f=A("./src/loader/level-details.ts"),_=A("./src/loader/level-key.ts"),d=A("./src/utils/attr-list.ts"),r=A("./src/utils/logger.ts"),u=A("./src/utils/codecs.ts"),t=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-SESSION-DATA:([^\r\n]*)[\r\n]+/g,a=/#EXT-X-MEDIA:(.*)/g,n=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[\S ]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),i=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(PLAYLIST-TYPE):(.+)/.source,/#EXT-X-(MEDIA-SEQUENCE): *(\d+)/.source,/#EXT-X-(SKIP):(.+)/.source,/#EXT-X-(TARGETDURATION): *(\d+)/.source,/#EXT-X-(KEY):(.+)/.source,/#EXT-X-(START):(.+)/.source,/#EXT-X-(ENDLIST)/.source,/#EXT-X-(DISCONTINUITY-SEQ)UENCE: *(\d+)/.source,/#EXT-X-(DIS)CONTINUITY/.source,/#EXT-X-(VERSION):(\d+)/.source,/#EXT-X-(MAP):(.+)/.source,/#EXT-X-(SERVER-CONTROL):(.+)/.source,/#EXT-X-(PART-INF):(.+)/.source,/#EXT-X-(GAP)/.source,/#EXT-X-(BITRATE):\s*(\d+)/.source,/#EXT-X-(PART):(.+)/.source,/#EXT-X-(PRELOAD-HINT):(.+)/.source,/#EXT-X-(RENDITION-REPORT):(.+)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|")),h=/\.(mp4|m4s|m4v|m4a)$/i;function l(P){var R,E;return h.test((R=(E=y.parseURL(P))===null||E===void 0?void 0:E.path)!=null?R:"")}var s=function(){function P(){}return P.findGroup=function(E,C){for(var m=0;m<E.length;m++){var T=E[m];if(T.id===C)return T}},P.convertAVC1ToAVCOTI=function(E){var C=E.split(".");if(C.length>2){var m=C.shift()+".";return m+=parseInt(C.shift()).toString(16),m+=("000"+parseInt(C.shift()).toString(16)).substr(-4),m}return E},P.resolve=function(E,C){return y.buildAbsoluteURL(C,E,{alwaysNormalize:!0})},P.parseMasterPlaylist=function(E,C){var m=[],T={},I=!1;t.lastIndex=0;for(var D;(D=t.exec(E))!=null;)if(D[1]){var N=new d.AttrList(D[1]),z={attrs:N,bitrate:N.decimalInteger("AVERAGE-BANDWIDTH")||N.decimalInteger("BANDWIDTH"),name:N.NAME,url:P.resolve(D[2],C)},F=N.decimalResolution("RESOLUTION");F&&(z.width=F.width,z.height=F.height),p((N.CODECS||"").split(/[ ,]+/).filter(function(K){return K}),z),z.videoCodec&&z.videoCodec.indexOf("avc1")!==-1&&(z.videoCodec=P.convertAVC1ToAVCOTI(z.videoCodec)),m.push(z)}else if(D[3]){var W=new d.AttrList(D[3]);W["DATA-ID"]&&(I=!0,T[W["DATA-ID"]]=W)}return{levels:m,sessionData:I?T:null}},P.parseMasterPlaylistMedia=function(E,C,m,T){T===void 0&&(T=[]);var I,D=[],N=0;for(a.lastIndex=0;(I=a.exec(E))!==null;){var z=new d.AttrList(I[1]);if(z.TYPE===m){var F={attrs:z,bitrate:0,id:N++,groupId:z["GROUP-ID"],instreamId:z["INSTREAM-ID"],name:z.NAME||z.LANGUAGE||"",type:m,default:z.bool("DEFAULT"),autoselect:z.bool("AUTOSELECT"),forced:z.bool("FORCED"),lang:z.LANGUAGE,url:z.URI?P.resolve(z.URI,C):""};if(T.length){var W=P.findGroup(T,F.groupId)||T[0];O(F,W,"audioCodec"),O(F,W,"textCodec")}D.push(F)}}return D},P.parseLevelPlaylist=function(E,C,m,T,I){var D=new f.LevelDetails(C),N=D.fragments,z=null,F=0,W=0,K=0,B=0,k=null,G=new w.Fragment(T,C),ne,fe,de,xe=-1,Oe=!1;for(n.lastIndex=0,D.m3u8=E;(ne=n.exec(E))!==null;){Oe&&(Oe=!1,G=new w.Fragment(T,C),G.start=K,G.sn=F,G.cc=B,G.level=m,z&&(G.initSegment=z,G.rawProgramDateTime=z.rawProgramDateTime));var ce=ne[1];if(ce){G.duration=parseFloat(ce);var be=(" "+ne[2]).slice(1);G.title=be||null,G.tagList.push(be?["INF",ce,be]:["INF",ce])}else if(ne[3])Object(b.isFiniteNumber)(G.duration)&&(G.start=K,de&&(G.levelkey=de),G.sn=F,G.level=m,G.cc=B,G.urlId=I,N.push(G),G.relurl=(" "+ne[3]).slice(1),v(G,k),k=G,K+=G.duration,F++,W=0,Oe=!0);else if(ne[4]){var ve=(" "+ne[4]).slice(1);k?G.setByteRange(ve,k):G.setByteRange(ve)}else if(ne[5])G.rawProgramDateTime=(" "+ne[5]).slice(1),G.tagList.push(["PROGRAM-DATE-TIME",G.rawProgramDateTime]),xe===-1&&(xe=N.length);else{if(ne=ne[0].match(i),!ne){r.logger.warn("No matches on slow regex match for level playlist!");continue}for(fe=1;fe<ne.length&&!(typeof ne[fe]!="undefined");fe++);var ue=(" "+ne[fe]).slice(1),se=(" "+ne[fe+1]).slice(1),q=ne[fe+2]?(" "+ne[fe+2]).slice(1):"";switch(ue){case"PLAYLIST-TYPE":D.type=se.toUpperCase();break;case"MEDIA-SEQUENCE":F=D.startSN=parseInt(se);break;case"SKIP":{var me=new d.AttrList(se),re=me.decimalInteger("SKIPPED-SEGMENTS");if(Object(b.isFiniteNumber)(re)){D.skippedSegments=re;for(var ie=re;ie--;)N.unshift(null);F+=re}var we=me.enumeratedString("RECENTLY-REMOVED-DATERANGES");we&&(D.recentlyRemovedDateranges=we.split(" "));break}case"TARGETDURATION":D.targetduration=parseFloat(se);break;case"VERSION":D.version=parseInt(se);break;case"EXTM3U":break;case"ENDLIST":D.live=!1;break;case"#":(se||q)&&G.tagList.push(q?[se,q]:[se]);break;case"DIS":B++;case"GAP":G.tagList.push([ue]);break;case"BITRATE":G.tagList.push([ue,se]);break;case"DISCONTINUITY-SEQ":B=parseInt(se);break;case"KEY":{var le,$=new d.AttrList(se),J=$.enumeratedString("METHOD"),te=$.URI,De=$.hexadecimalInteger("IV"),Te=$.enumeratedString("KEYFORMATVERSIONS"),ke=$.enumeratedString("KEYID"),tt=(le=$.enumeratedString("KEYFORMAT"))!=null?le:"identity",ot=["com.apple.streamingkeydelivery","com.microsoft.playready","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","com.widevine"];if(ot.indexOf(tt)>-1){r.logger.warn("Keyformat "+tt+" is not supported from the manifest");continue}else if(tt!=="identity")continue;J&&(de=_.LevelKey.fromURL(C,te),te&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(J)>=0&&(de.method=J,de.keyFormat=tt,ke&&(de.keyID=ke),Te&&(de.keyFormatVersions=Te),de.iv=De));break}case"START":{var gt=new d.AttrList(se),Et=gt.decimalFloatingPoint("TIME-OFFSET");Object(b.isFiniteNumber)(Et)&&(D.startTimeOffset=Et);break}case"MAP":{var xt=new d.AttrList(se);G.relurl=xt.URI,xt.BYTERANGE&&G.setByteRange(xt.BYTERANGE),G.level=m,G.sn="initSegment",de&&(G.levelkey=de),G.initSegment=null,z=G,Oe=!0;break}case"SERVER-CONTROL":{var St=new d.AttrList(se);D.canBlockReload=St.bool("CAN-BLOCK-RELOAD"),D.canSkipUntil=St.optionalFloat("CAN-SKIP-UNTIL",0),D.canSkipDateRanges=D.canSkipUntil>0&&St.bool("CAN-SKIP-DATERANGES"),D.partHoldBack=St.optionalFloat("PART-HOLD-BACK",0),D.holdBack=St.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var Je=new d.AttrList(se);D.partTarget=Je.decimalFloatingPoint("PART-TARGET");break}case"PART":{var Ue=D.partList;Ue||(Ue=D.partList=[]);var ft=W>0?Ue[Ue.length-1]:void 0,kt=W++,ht=new w.Part(new d.AttrList(se),G,C,kt,ft);Ue.push(ht),G.duration+=ht.duration;break}case"PRELOAD-HINT":{var _t=new d.AttrList(se);D.preloadHint=_t;break}case"RENDITION-REPORT":{var Qe=new d.AttrList(se);D.renditionReports=D.renditionReports||[],D.renditionReports.push(Qe);break}default:r.logger.warn("line parsed but not handled: "+ne);break}}}k&&!k.relurl?(N.pop(),K-=k.duration,D.partList&&(D.fragmentHint=k)):D.partList&&(v(G,k),G.cc=B,D.fragmentHint=G);var He=N.length,Ge=N[0],Ee=N[He-1];if(K+=D.skippedSegments*D.targetduration,K>0&&He&&Ee){D.averagetargetduration=K/He;var Ae=Ee.sn;D.endSN=Ae!=="initSegment"?Ae:0,Ge&&(D.startCC=Ge.cc,Ge.initSegment||D.fragments.every(function(Fe){return Fe.relurl&&l(Fe.relurl)})&&(r.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),G=new w.Fragment(T,C),G.relurl=Ee.relurl,G.level=m,G.sn="initSegment",Ge.initSegment=G,D.needSidxRanges=!0))}else D.endSN=0,D.startCC=0;return D.fragmentHint&&(K+=D.fragmentHint.duration),D.totalduration=K,D.endCC=B,xe>0&&S(N,xe),D},P}();function p(P,R){["video","audio","text"].forEach(function(E){var C=P.filter(function(T){return Object(u.isCodecType)(T,E)});if(C.length){var m=C.filter(function(T){return T.lastIndexOf("avc1",0)===0||T.lastIndexOf("mp4a",0)===0});R[E+"Codec"]=m.length>0?m[0]:C[0],P=P.filter(function(T){return C.indexOf(T)===-1})}}),R.unknownCodecs=P}function O(P,R,E){var C=R[E];C&&(P[E]=C)}function S(P,R){for(var E=P[R],C=R;C--;){var m=P[C];if(!m)return;m.programDateTime=E.programDateTime-m.duration*1e3,E=m}}function v(P,R){P.rawProgramDateTime?P.programDateTime=Date.parse(P.rawProgramDateTime):R!=null&&R.programDateTime&&(P.programDateTime=R.endProgramDateTime),Object(b.isFiniteNumber)(P.programDateTime)||(P.programDateTime=null,P.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(L,g,A){"use strict";A.r(g);var b=A("./src/polyfills/number.ts"),y=A("./src/events.ts"),x=A("./src/errors.ts"),w=A("./src/utils/logger.ts"),f=A("./src/utils/mp4-tools.ts"),_=A("./src/loader/m3u8-parser.ts"),d=A("./src/types/loader.ts"),r=A("./src/utils/attr-list.ts");function u(n){var i=n.type;switch(i){case d.PlaylistContextType.AUDIO_TRACK:return d.PlaylistLevelType.AUDIO;case d.PlaylistContextType.SUBTITLE_TRACK:return d.PlaylistLevelType.SUBTITLE;default:return d.PlaylistLevelType.MAIN}}function t(n,i){var h=n.url;return(h===void 0||h.indexOf("data:")===0)&&(h=i.url),h}var a=function(){function n(h){this.hls=void 0,this.loaders=Object.create(null),this.hls=h,this.registerListeners()}var i=n.prototype;return i.registerListeners=function(){var l=this.hls;l.on(y.Events.MANIFEST_LOADING,this.onManifestLoading,this),l.on(y.Events.LEVEL_LOADING,this.onLevelLoading,this),l.on(y.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),l.on(y.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},i.unregisterListeners=function(){var l=this.hls;l.off(y.Events.MANIFEST_LOADING,this.onManifestLoading,this),l.off(y.Events.LEVEL_LOADING,this.onLevelLoading,this),l.off(y.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),l.off(y.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},i.createInternalLoader=function(l){var s=this.hls.config,p=s.pLoader,O=s.loader,S=p||O,v=new S(s);return l.loader=v,this.loaders[l.type]=v,v},i.getInternalLoader=function(l){return this.loaders[l.type]},i.resetInternalLoader=function(l){this.loaders[l]&&delete this.loaders[l]},i.destroyInternalLoaders=function(){for(var l in this.loaders){var s=this.loaders[l];s&&s.destroy(),this.resetInternalLoader(l)}},i.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},i.onManifestLoading=function(l,s){var p=s.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:d.PlaylistContextType.MANIFEST,url:p,deliveryDirectives:null})},i.onLevelLoading=function(l,s){var p=s.id,O=s.level,S=s.url,v=s.deliveryDirectives;this.load({id:p,groupId:null,level:O,responseType:"text",type:d.PlaylistContextType.LEVEL,url:S,deliveryDirectives:v})},i.onAudioTrackLoading=function(l,s){var p=s.id,O=s.groupId,S=s.url,v=s.deliveryDirectives;this.load({id:p,groupId:O,level:null,responseType:"text",type:d.PlaylistContextType.AUDIO_TRACK,url:S,deliveryDirectives:v})},i.onSubtitleTrackLoading=function(l,s){var p=s.id,O=s.groupId,S=s.url,v=s.deliveryDirectives;this.load({id:p,groupId:O,level:null,responseType:"text",type:d.PlaylistContextType.SUBTITLE_TRACK,url:S,deliveryDirectives:v})},i.load=function(l){var s,p=this.hls.config,O=this.getInternalLoader(l);if(O){var S=O.context;if(S&&S.url===l.url){w.logger.trace("[playlist-loader]: playlist request ongoing");return}w.logger.log("[playlist-loader]: aborting previous loader for type: "+l.type),O.abort()}var v,P,R,E;switch(l.type){case d.PlaylistContextType.MANIFEST:v=p.manifestLoadingMaxRetry,P=p.manifestLoadingTimeOut,R=p.manifestLoadingRetryDelay,E=p.manifestLoadingMaxRetryTimeout;break;case d.PlaylistContextType.LEVEL:case d.PlaylistContextType.AUDIO_TRACK:case d.PlaylistContextType.SUBTITLE_TRACK:v=0,P=p.levelLoadingTimeOut;break;default:v=p.levelLoadingMaxRetry,P=p.levelLoadingTimeOut,R=p.levelLoadingRetryDelay,E=p.levelLoadingMaxRetryTimeout;break}if(O=this.createInternalLoader(l),(s=l.deliveryDirectives)!==null&&s!==void 0&&s.part){var C;if(l.type===d.PlaylistContextType.LEVEL&&l.level!==null?C=this.hls.levels[l.level].details:l.type===d.PlaylistContextType.AUDIO_TRACK&&l.id!==null?C=this.hls.audioTracks[l.id].details:l.type===d.PlaylistContextType.SUBTITLE_TRACK&&l.id!==null&&(C=this.hls.subtitleTracks[l.id].details),C){var m=C.partTarget,T=C.targetduration;m&&T&&(P=Math.min(Math.max(m*3,T*.8)*1e3,P))}}var I={timeout:P,maxRetry:v,retryDelay:R,maxRetryDelay:E,highWaterMark:0},D={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};O.load(l,I,D)},i.loadsuccess=function(l,s,p,O){if(O===void 0&&(O=null),p.isSidxRequest){this.handleSidxRequest(l,p),this.handlePlaylistLoaded(l,s,p,O);return}this.resetInternalLoader(p.type);var S=l.data;if(S.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(l,p,"no EXTM3U delimiter",O);return}s.parsing.start=performance.now(),S.indexOf("#EXTINF:")>0||S.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(l,s,p,O):this.handleMasterPlaylist(l,s,p,O)},i.loaderror=function(l,s,p){p===void 0&&(p=null),this.handleNetworkError(s,p,!1,l)},i.loadtimeout=function(l,s,p){p===void 0&&(p=null),this.handleNetworkError(s,p,!0)},i.handleMasterPlaylist=function(l,s,p,O){var S=this.hls,v=l.data,P=t(l,p),R=_.default.parseMasterPlaylist(v,P),E=R.levels,C=R.sessionData;if(!E.length){this.handleManifestParsingError(l,p,"no level found in manifest",O);return}var m=E.map(function(F){return{id:F.attrs.AUDIO,audioCodec:F.audioCodec}}),T=E.map(function(F){return{id:F.attrs.SUBTITLES,textCodec:F.textCodec}}),I=_.default.parseMasterPlaylistMedia(v,P,"AUDIO",m),D=_.default.parseMasterPlaylistMedia(v,P,"SUBTITLES",T),N=_.default.parseMasterPlaylistMedia(v,P,"CLOSED-CAPTIONS");if(I.length){var z=I.some(function(F){return!F.url});!z&&E[0].audioCodec&&!E[0].attrs.AUDIO&&(w.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),I.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new r.AttrList({}),bitrate:0,url:""}))}S.trigger(y.Events.MANIFEST_LOADED,{levels:E,audioTracks:I,subtitles:D,captions:N,url:P,stats:s,networkDetails:O,sessionData:C})},i.handleTrackOrLevelPlaylist=function(l,s,p,O){var S=this.hls,v=p.id,P=p.level,R=p.type,E=t(l,p),C=Object(b.isFiniteNumber)(v)?v:0,m=Object(b.isFiniteNumber)(P)?P:C,T=u(p),I=_.default.parseLevelPlaylist(l.data,E,m,T,C);if(!I.fragments.length){S.trigger(y.Events.ERROR,{type:x.ErrorTypes.NETWORK_ERROR,details:x.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:E,reason:"no fragments found in level",level:typeof p.level=="number"?p.level:void 0});return}if(R===d.PlaylistContextType.MANIFEST){var D={attrs:new r.AttrList({}),bitrate:0,details:I,name:"",url:E};S.trigger(y.Events.MANIFEST_LOADED,{levels:[D],audioTracks:[],url:E,stats:s,networkDetails:O,sessionData:null})}if(s.parsing.end=performance.now(),I.needSidxRanges){var N,z=(N=I.fragments[0].initSegment)===null||N===void 0?void 0:N.url;this.load({url:z,isSidxRequest:!0,type:R,level:P,levelDetails:I,id:v,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}p.levelDetails=I,this.handlePlaylistLoaded(l,s,p,O)},i.handleSidxRequest=function(l,s){var p=Object(f.parseSegmentIndex)(new Uint8Array(l.data));if(!p)return;var O=p.references,S=s.levelDetails;O.forEach(function(v,P){var R=v.info,E=S.fragments[P];E.byteRange.length===0&&E.setByteRange(String(1+R.end-R.start)+"@"+String(R.start)),E.initSegment&&E.initSegment.setByteRange(String(p.moovEndOffset)+"@0")})},i.handleManifestParsingError=function(l,s,p,O){this.hls.trigger(y.Events.ERROR,{type:x.ErrorTypes.NETWORK_ERROR,details:x.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:s.type===d.PlaylistContextType.MANIFEST,url:l.url,reason:p,response:l,context:s,networkDetails:O})},i.handleNetworkError=function(l,s,p,O){p===void 0&&(p=!1),w.logger.warn("[playlist-loader]: A network "+(p?"timeout":"error")+" occurred while loading "+l.type+" level: "+l.level+" id: "+l.id+' group-id: "'+l.groupId+'"');var S=x.ErrorDetails.UNKNOWN,v=!1,P=this.getInternalLoader(l);switch(l.type){case d.PlaylistContextType.MANIFEST:S=p?x.ErrorDetails.MANIFEST_LOAD_TIMEOUT:x.ErrorDetails.MANIFEST_LOAD_ERROR,v=!0;break;case d.PlaylistContextType.LEVEL:S=p?x.ErrorDetails.LEVEL_LOAD_TIMEOUT:x.ErrorDetails.LEVEL_LOAD_ERROR,v=!1;break;case d.PlaylistContextType.AUDIO_TRACK:S=p?x.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:x.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,v=!1;break;case d.PlaylistContextType.SUBTITLE_TRACK:S=p?x.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:x.ErrorDetails.SUBTITLE_LOAD_ERROR,v=!1;break}P&&this.resetInternalLoader(l.type);var R={type:x.ErrorTypes.NETWORK_ERROR,details:S,fatal:v,url:l.url,loader:P,context:l,networkDetails:s};O&&(R.response=O),this.hls.trigger(y.Events.ERROR,R)},i.handlePlaylistLoaded=function(l,s,p,O){var S=p.type,v=p.level,P=p.id,R=p.groupId,E=p.loader,C=p.levelDetails,m=p.deliveryDirectives;if(!(C!=null&&C.targetduration)){this.handleManifestParsingError(l,p,"invalid target duration",O);return}if(!E)return;C.live&&(E.getCacheAge&&(C.ageHeader=E.getCacheAge()||0),(!E.getCacheAge||isNaN(C.ageHeader))&&(C.ageHeader=0));switch(S){case d.PlaylistContextType.MANIFEST:case d.PlaylistContextType.LEVEL:this.hls.trigger(y.Events.LEVEL_LOADED,{details:C,level:v||0,id:P||0,stats:s,networkDetails:O,deliveryDirectives:m});break;case d.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(y.Events.AUDIO_TRACK_LOADED,{details:C,id:P||0,groupId:R||"",stats:s,networkDetails:O,deliveryDirectives:m});break;case d.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(y.Events.SUBTITLE_TRACK_LOADED,{details:C,id:P||0,groupId:R||"",stats:s,networkDetails:O,deliveryDirectives:m});break}},n}();g.default=a},"./src/polyfills/number.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"isFiniteNumber",function(){return b}),A.d(g,"MAX_SAFE_INTEGER",function(){return y});var b=Number.isFinite||function(x){return typeof x=="number"&&isFinite(x)},y=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(L,g,A){"use strict";A.r(g);var b=function(){function y(){}return y.getSilentFrame=function(w,f){switch(w){case"mp4a.40.2":if(f===1)return new Uint8Array([0,200,0,128,35,128]);if(f===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(f===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(f===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(f===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(f===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(f===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(f===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(f===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},y}();g.default=b},"./src/remux/mp4-generator.ts":function(L,g,A){"use strict";A.r(g);var b=Math.pow(2,32)-1,y=function(){function x(){}return x.init=function(){x.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 f;for(f in x.types)x.types.hasOwnProperty(f)&&(x.types[f]=[f.charCodeAt(0),f.charCodeAt(1),f.charCodeAt(2),f.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]),d=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]);x.HDLR_TYPES={video:_,audio:d};var r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),u=new Uint8Array([0,0,0,0,0,0,0,0]);x.STTS=x.STSC=x.STCO=u,x.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),x.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),x.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),x.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var t=new Uint8Array([105,115,111,109]),a=new Uint8Array([97,118,99,49]),n=new Uint8Array([0,0,0,1]);x.FTYP=x.box(x.types.ftyp,t,n,t,a),x.DINF=x.box(x.types.dinf,x.box(x.types.dref,r))},x.box=function(f){for(var _=8,d=arguments.length,r=new Array(d>1?d-1:0),u=1;u<d;u++)r[u-1]=arguments[u];for(var t=r.length,a=t;t--;)_+=r[t].byteLength;var n=new Uint8Array(_);for(n[0]=_>>24&255,n[1]=_>>16&255,n[2]=_>>8&255,n[3]=_&255,n.set(f,4),t=0,_=8;t<a;t++)n.set(r[t],_),_+=r[t].byteLength;return n},x.hdlr=function(f){return x.box(x.types.hdlr,x.HDLR_TYPES[f])},x.mdat=function(f){return x.box(x.types.mdat,f)},x.mdhd=function(f,_){_*=f;var d=Math.floor(_/(b+1)),r=Math.floor(_%(b+1));return x.box(x.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,f>>24&255,f>>16&255,f>>8&255,f&255,d>>24,d>>16&255,d>>8&255,d&255,r>>24,r>>16&255,r>>8&255,r&255,85,196,0,0]))},x.mdia=function(f){return x.box(x.types.mdia,x.mdhd(f.timescale,f.duration),x.hdlr(f.type),x.minf(f))},x.mfhd=function(f){return x.box(x.types.mfhd,new Uint8Array([0,0,0,0,f>>24,f>>16&255,f>>8&255,f&255]))},x.minf=function(f){return f.type==="audio"?x.box(x.types.minf,x.box(x.types.smhd,x.SMHD),x.DINF,x.stbl(f)):x.box(x.types.minf,x.box(x.types.vmhd,x.VMHD),x.DINF,x.stbl(f))},x.moof=function(f,_,d){return x.box(x.types.moof,x.mfhd(f),x.traf(d,_))},x.moov=function(f){for(var _=f.length,d=[];_--;)d[_]=x.trak(f[_]);return x.box.apply(null,[x.types.moov,x.mvhd(f[0].timescale,f[0].duration)].concat(d).concat(x.mvex(f)))},x.mvex=function(f){for(var _=f.length,d=[];_--;)d[_]=x.trex(f[_]);return x.box.apply(null,[x.types.mvex].concat(d))},x.mvhd=function(f,_){_*=f;var d=Math.floor(_/(b+1)),r=Math.floor(_%(b+1)),u=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,f>>24&255,f>>16&255,f>>8&255,f&255,d>>24,d>>16&255,d>>8&255,d&255,r>>24,r>>16&255,r>>8&255,r&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 x.box(x.types.mvhd,u)},x.sdtp=function(f){var _=f.samples||[],d=new Uint8Array(4+_.length),r,u;for(r=0;r<_.length;r++)u=_[r].flags,d[r+4]=u.dependsOn<<4|u.isDependedOn<<2|u.hasRedundancy;return x.box(x.types.sdtp,d)},x.stbl=function(f){return x.box(x.types.stbl,x.stsd(f),x.box(x.types.stts,x.STTS),x.box(x.types.stsc,x.STSC),x.box(x.types.stsz,x.STSZ),x.box(x.types.stco,x.STCO))},x.avc1=function(f){var _=[],d=[],r,u,t;for(r=0;r<f.sps.length;r++)u=f.sps[r],t=u.byteLength,_.push(t>>>8&255),_.push(t&255),_=_.concat(Array.prototype.slice.call(u));for(r=0;r<f.pps.length;r++)u=f.pps[r],t=u.byteLength,d.push(t>>>8&255),d.push(t&255),d=d.concat(Array.prototype.slice.call(u));var a=x.box(x.types.avcC,new Uint8Array([1,_[3],_[4],_[5],252|3,224|f.sps.length].concat(_).concat([f.pps.length]).concat(d))),n=f.width,i=f.height,h=f.pixelRatio[0],l=f.pixelRatio[1];return x.box(x.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,n>>8&255,n&255,i>>8&255,i&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]),a,x.box(x.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),x.box(x.types.pasp,new Uint8Array([h>>24,h>>16&255,h>>8&255,h&255,l>>24,l>>16&255,l>>8&255,l&255])))},x.esds=function(f){var _=f.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(f.config).concat([6,1,2]))},x.mp4a=function(f){var _=f.samplerate;return x.box(x.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,f.channelCount,0,16,0,0,0,0,_>>8&255,_&255,0,0]),x.box(x.types.esds,x.esds(f)))},x.mp3=function(f){var _=f.samplerate;return x.box(x.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,f.channelCount,0,16,0,0,0,0,_>>8&255,_&255,0,0]))},x.stsd=function(f){return f.type==="audio"?!f.isAAC&&f.codec==="mp3"?x.box(x.types.stsd,x.STSD,x.mp3(f)):x.box(x.types.stsd,x.STSD,x.mp4a(f)):x.box(x.types.stsd,x.STSD,x.avc1(f))},x.tkhd=function(f){var _=f.id,d=f.duration*f.timescale,r=f.width,u=f.height,t=Math.floor(d/(b+1)),a=Math.floor(d%(b+1));return x.box(x.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,t>>24,t>>16&255,t>>8&255,t&255,a>>24,a>>16&255,a>>8&255,a&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,r>>8&255,r&255,0,0,u>>8&255,u&255,0,0]))},x.traf=function(f,_){var d=x.sdtp(f),r=f.id,u=Math.floor(_/(b+1)),t=Math.floor(_%(b+1));return x.box(x.types.traf,x.box(x.types.tfhd,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,r&255])),x.box(x.types.tfdt,new Uint8Array([1,0,0,0,u>>24,u>>16&255,u>>8&255,u&255,t>>24,t>>16&255,t>>8&255,t&255])),x.trun(f,d.length+16+20+8+16+8+8),d)},x.trak=function(f){return f.duration=f.duration||4294967295,x.box(x.types.trak,x.tkhd(f),x.mdia(f))},x.trex=function(f){var _=f.id;return x.box(x.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]))},x.trun=function(f,_){var d=f.samples||[],r=d.length,u=12+16*r,t=new Uint8Array(u),a,n,i,h,l,s;for(_+=8+u,t.set([0,0,15,1,r>>>24&255,r>>>16&255,r>>>8&255,r&255,_>>>24&255,_>>>16&255,_>>>8&255,_&255],0),a=0;a<r;a++)n=d[a],i=n.duration,h=n.size,l=n.flags,s=n.cts,t.set([i>>>24&255,i>>>16&255,i>>>8&255,i&255,h>>>24&255,h>>>16&255,h>>>8&255,h&255,l.isLeading<<2|l.dependsOn,l.isDependedOn<<6|l.hasRedundancy<<4|l.paddingValue<<1|l.isNonSync,l.degradPrio&240<<8,l.degradPrio&15,s>>>24&255,s>>>16&255,s>>>8&255,s&255],12+16*a);return x.box(x.types.trun,t)},x.initSegment=function(f){x.types||x.init();var _=x.moov(f),d=new Uint8Array(x.FTYP.byteLength+_.byteLength);return d.set(x.FTYP),d.set(_,x.FTYP.byteLength),d},x}();y.types=void 0,y.HDLR_TYPES=void 0,y.STTS=void 0,y.STSC=void 0,y.STCO=void 0,y.STSZ=void 0,y.VMHD=void 0,y.SMHD=void 0,y.STSD=void 0,y.FTYP=void 0,y.DINF=void 0,g.default=y},"./src/remux/mp4-remuxer.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"default",function(){return s}),A.d(g,"normalizePts",function(){return p});var b=A("./src/polyfills/number.ts"),y=A("./src/remux/aac-helper.ts"),x=A("./src/remux/mp4-generator.ts"),w=A("./src/events.ts"),f=A("./src/errors.ts"),_=A("./src/utils/logger.ts"),d=A("./src/types/loader.ts"),r=A("./src/utils/timescale-conversion.ts");function u(){return u=Object.assign||function(P){for(var R=1;R<arguments.length;R++){var E=arguments[R];for(var C in E)Object.prototype.hasOwnProperty.call(E,C)&&(P[C]=E[C])}return P},u.apply(this,arguments)}var t=10*1e3,a=1024,n=1152,i=null,h=null,l=!1,s=function(){function P(E,C,m,T){if(T===void 0&&(T=""),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=void 0,this._initDTS=void 0,this.nextAvcDts=null,this.nextAudioPts=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.observer=E,this.config=C,this.typeSupported=m,this.ISGenerated=!1,i===null){var I=navigator.userAgent||"",D=I.match(/Chrome\/(\d+)/i);i=D?parseInt(D[1]):0}if(h===null){var N=navigator.userAgent.match(/Safari\/(\d+)/i);h=N?parseInt(N[1]):0}l=!!i&&i<75||!!h&&h<600}var R=P.prototype;return R.destroy=function(){},R.resetTimeStamp=function(C){_.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=C},R.resetNextTimestamp=function(){_.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1},R.resetInitSegment=function(){_.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1},R.getVideoStartPts=function(C){var m=!1,T=C.reduce(function(I,D){var N=D.pts-I;return N<-4294967296?(m=!0,p(I,D.pts)):N>0?I:D.pts},C[0].pts);return m&&_.logger.debug("PTS rollover detected"),T},R.remux=function(C,m,T,I,D,N,z,F){var W,K,B,k,G,ne,fe=D,de=D,xe=C.pid>-1,Oe=m.pid>-1,ce=m.samples.length,be=C.samples.length>0,ve=ce>1,ue=(!xe||be)&&(!Oe||ve)||this.ISGenerated||z;if(ue){this.ISGenerated||(B=this.generateIS(C,m,D));var se=this.isVideoContiguous,q=-1;if(ve&&(q=O(m.samples),!se&&this.config.forceKeyFrameOnDiscontinuity))if(ne=!0,q>0){_.logger.warn("[mp4-remuxer]: Dropped "+q+" out of "+ce+" video samples due to a missing keyframe");var me=this.getVideoStartPts(m.samples);m.samples=m.samples.slice(q),m.dropped+=q,de+=(m.samples[0].pts-me)/(m.timescale||9e4)}else q===-1&&(_.logger.warn("[mp4-remuxer]: No keyframe found out of "+ce+" video samples"),ne=!1);if(this.ISGenerated){if(be&&ve){var re=this.getVideoStartPts(m.samples),ie=p(C.samples[0].pts,re)-re,we=ie/m.inputTimeScale;fe+=Math.max(0,we),de+=Math.max(0,-we)}if(be){if(C.samplerate||(_.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),B=this.generateIS(C,m,D)),K=this.remuxAudio(C,fe,this.isAudioContiguous,N,Oe||ve||F===d.PlaylistLevelType.AUDIO?de:void 0),ve){var le=K?K.endPTS-K.startPTS:0;m.inputTimeScale||(_.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),B=this.generateIS(C,m,D)),W=this.remuxVideo(m,de,se,le)}}else ve&&(W=this.remuxVideo(m,de,se,0));W&&(W.firstKeyFrame=q,W.independent=q!==-1)}}return this.ISGenerated&&(T.samples.length&&(G=this.remuxID3(T,D)),I.samples.length&&(k=this.remuxText(I,D))),{audio:K,video:W,initSegment:B,independent:ne,text:k,id3:G}},R.generateIS=function(C,m,T){var I=C.samples,D=m.samples,N=this.typeSupported,z={},F=!Object(b.isFiniteNumber)(this._initPTS),W="audio/mp4",K,B,k;if(F&&(K=B=Infinity),C.config&&I.length&&(C.timescale=C.samplerate,C.isAAC||(N.mpeg?(W="audio/mpeg",C.codec=""):N.mp3&&(C.codec="mp3")),z.audio={id:"audio",container:W,codec:C.codec,initSegment:!C.isAAC&&N.mpeg?new Uint8Array(0):x.default.initSegment([C]),metadata:{channelCount:C.channelCount}},F&&(k=C.inputTimeScale,K=B=I[0].pts-Math.round(k*T))),m.sps&&m.pps&&D.length&&(m.timescale=m.inputTimeScale,z.video={id:"main",container:"video/mp4",codec:m.codec,initSegment:x.default.initSegment([m]),metadata:{width:m.width,height:m.height}},F)){k=m.inputTimeScale;var G=this.getVideoStartPts(D),ne=Math.round(k*T);B=Math.min(B,p(D[0].dts,G)-ne),K=Math.min(K,G-ne)}if(Object.keys(z).length)return this.ISGenerated=!0,F&&(this._initPTS=K,this._initDTS=B),{tracks:z,initPTS:K,timescale:k}},R.remuxVideo=function(C,m,T,I){var D=C.inputTimeScale,N=C.samples,z=[],F=N.length,W=this._initPTS,K=this.nextAvcDts,B=8,k,G,ne,fe=Number.POSITIVE_INFINITY,de=Number.NEGATIVE_INFINITY,xe=0,Oe=!1;if(!T||K===null){var ce=m*D,be=N[0].pts-p(N[0].dts,N[0].pts);K=ce-be}for(var ve=0;ve<F;ve++){var ue=N[ve];if(ue.pts=p(ue.pts-W,K),ue.dts=p(ue.dts-W,K),ue.dts>ue.pts){var se=9e4*.2;xe=Math.max(Math.min(xe,ue.pts-ue.dts),-1*se)}ue.dts<N[ve>0?ve-1:ve].dts&&(Oe=!0)}Oe&&N.sort(function(bt,Be){var at=bt.dts-Be.dts,it=bt.pts-Be.pts;return at||it}),G=N[0].dts,ne=N[N.length-1].dts;var q=Math.round((ne-G)/(F-1));if(xe<0){if(xe<q*-2){_.logger.warn("PTS < DTS detected in video samples, offsetting DTS from PTS by "+Object(r.toMsFromMpegTsClock)(-q,!0)+" ms");for(var me=xe,re=0;re<F;re++)N[re].dts=me=Math.max(me,N[re].pts-q),N[re].pts=Math.max(me,N[re].pts)}else{_.logger.warn("PTS < DTS detected in video samples, shifting DTS by "+Object(r.toMsFromMpegTsClock)(xe,!0)+" ms to overcome this issue");for(var ie=0;ie<F;ie++)N[ie].dts=N[ie].dts+xe}G=N[0].dts}if(T){var we=G-K,le=we>q,$=we<-1;if(le||$){le?_.logger.warn("AVC: "+Object(r.toMsFromMpegTsClock)(we,!0)+" ms ("+we+"dts) hole between fragments detected, filling it"):_.logger.warn("AVC: "+Object(r.toMsFromMpegTsClock)(-we,!0)+" ms ("+we+"dts) overlapping between fragments detected"),G=K;var J=N[0].pts-we;N[0].dts=G,N[0].pts=J,_.logger.log("Video: First PTS/DTS adjusted: "+Object(r.toMsFromMpegTsClock)(J,!0)+"/"+Object(r.toMsFromMpegTsClock)(G,!0)+", delta: "+Object(r.toMsFromMpegTsClock)(we,!0)+" ms")}}l&&(G=Math.max(0,G));for(var te=0,De=0,Te=0;Te<F;Te++){for(var ke=N[Te],tt=ke.units,ot=tt.length,gt=0,Et=0;Et<ot;Et++)gt+=tt[Et].data.length;De+=gt,te+=ot,ke.length=gt,ke.dts=Math.max(ke.dts,G),ke.pts=Math.max(ke.pts,ke.dts,0),fe=Math.min(ke.pts,fe),de=Math.max(ke.pts,de)}ne=N[F-1].dts;var xt=De+4*te+8,St;try{St=new Uint8Array(xt)}catch(bt){this.observer.emit(w.Events.ERROR,w.Events.ERROR,{type:f.ErrorTypes.MUX_ERROR,details:f.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:xt,reason:"fail allocating video mdat "+xt});return}var Je=new DataView(St.buffer);Je.setUint32(0,xt),St.set(x.default.types.mdat,4);for(var Ue=0;Ue<F;Ue++){for(var ft=N[Ue],kt=ft.units,ht=0,_t=0,Qe=kt.length;_t<Qe;_t++){var He=kt[_t],Ge=He.data,Ee=He.data.byteLength;Je.setUint32(B,Ee),B+=4,St.set(Ge,B),B+=Ee,ht+=4+Ee}if(Ue<F-1)k=N[Ue+1].dts-ft.dts;else{var Ae=this.config,Fe=ft.dts-N[Ue>0?Ue-1:Ue].dts;if(Ae.stretchShortVideoTrack&&this.nextAudioPts!==null){var We=Math.floor(Ae.maxBufferHole*D),Ke=(I?fe+I*D:this.nextAudioPts)-ft.pts;Ke>We?(k=Ke-Fe,k<0&&(k=Fe),_.logger.log("[mp4-remuxer]: It is approximately "+Ke/90+" ms to the next segment; using duration "+k/90+" ms for the last video frame.")):k=Fe}else k=Fe}var st=Math.round(ft.pts-ft.dts);z.push(new S(ft.key,k,ht,st))}if(z.length&&i&&i<70){var Ot=z[0].flags;Ot.dependsOn=2,Ot.isNonSync=0}console.assert(k!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=K=ne+k,this.isVideoContiguous=!0;var Bt=x.default.moof(C.sequenceNumber++,G,u({},C,{samples:z})),an="video",Kt={data1:Bt,data2:St,startPTS:fe/D,endPTS:(de+k)/D,startDTS:G/D,endDTS:K/D,type:an,hasAudio:!1,hasVideo:!0,nb:z.length,dropped:C.dropped};return C.samples=[],C.dropped=0,console.assert(St.length,"MDAT length must not be zero"),Kt},R.remuxAudio=function(C,m,T,I,D){var N=C.inputTimeScale,z=C.samplerate?C.samplerate:N,F=N/z,W=C.isAAC?a:n,K=W*F,B=this._initPTS,k=!C.isAAC&&this.typeSupported.mpeg,G=[],ne=C.samples,fe=k?0:8,de=this.nextAudioPts||-1,xe=m*N;if(this.isAudioContiguous=T=T||ne.length&&de>0&&(I&&Math.abs(xe-de)<9e3||Math.abs(p(ne[0].pts-B,xe)-de)<20*K),ne.forEach(function(Ge){Ge.pts=p(Ge.pts-B,xe)}),!T||de<0){if(ne=ne.filter(function(Ge){return Ge.pts>=0}),!ne.length)return;D===0?de=0:I?de=Math.max(0,xe):de=ne[0].pts}if(C.isAAC)for(var Oe=D!==void 0,ce=this.config.maxAudioFramesDrift,be=0,ve=de;be<ne.length;be++){var ue=ne[be],se=ue.pts,q=se-ve,me=Math.abs(1e3*q/N);if(q<=-ce*K&&Oe)be===0&&(_.logger.warn("Audio frame @ "+(se/N).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*q/N)+" ms."),this.nextAudioPts=de=ve=se);else if(q>=ce*K&&me<t&&Oe){var re=Math.round(q/K);ve=se-re*K,ve<0&&(re--,ve+=K),be===0&&(this.nextAudioPts=de=ve),_.logger.warn("[mp4-remuxer]: Injecting "+re+" audio frame @ "+(ve/N).toFixed(3)+"s due to "+Math.round(1e3*q/N)+" ms gap.");for(var ie=0;ie<re;ie++){var we=Math.max(ve,0),le=y.default.getSilentFrame(C.manifestCodec||C.codec,C.channelCount);le||(_.logger.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),le=ue.unit.subarray()),ne.splice(be,0,{unit:le,pts:we}),ve+=K,be++}}ue.pts=ve,ve+=K}for(var $=null,J=null,te,De=0,Te=ne.length;Te--;)De+=ne[Te].unit.byteLength;for(var ke=0,tt=ne.length;ke<tt;ke++){var ot=ne[ke],gt=ot.unit,Et=ot.pts;if(J!==null){var xt=G[ke-1];xt.duration=Math.round((Et-J)/F)}else if(T&&C.isAAC&&(Et=de),$=Et,De>0){De+=fe;try{te=new Uint8Array(De)}catch(Ge){this.observer.emit(w.Events.ERROR,w.Events.ERROR,{type:f.ErrorTypes.MUX_ERROR,details:f.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:De,reason:"fail allocating audio mdat "+De});return}if(!k){var St=new DataView(te.buffer);St.setUint32(0,De),te.set(x.default.types.mdat,4)}}else return;te.set(gt,fe);var Je=gt.byteLength;fe+=Je,G.push(new S(!0,W,Je,0)),J=Et}var Ue=G.length;if(!Ue)return;var ft=G[G.length-1];this.nextAudioPts=de=J+F*ft.duration;var kt=k?new Uint8Array(0):x.default.moof(C.sequenceNumber++,$/F,u({},C,{samples:G}));C.samples=[];var ht=$/N,_t=de/N,Qe="audio",He={data1:kt,data2:te,startPTS:ht,endPTS:_t,startDTS:ht,endDTS:_t,type:Qe,hasAudio:!0,hasVideo:!1,nb:Ue};return this.isAudioContiguous=!0,console.assert(te.length,"MDAT length must not be zero"),He},R.remuxEmptyAudio=function(C,m,T,I){var D=C.inputTimeScale,N=C.samplerate?C.samplerate:D,z=D/N,F=this.nextAudioPts,W=(F!==null?F:I.startDTS*D)+this._initDTS,K=I.endDTS*D+this._initDTS,B=z*a,k=Math.ceil((K-W)/B),G=y.default.getSilentFrame(C.manifestCodec||C.codec,C.channelCount);if(_.logger.warn("[mp4-remuxer]: remux empty Audio"),!G){_.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var ne=[],fe=0;fe<k;fe++){var de=W+fe*B;ne.push({unit:G,pts:de,dts:de})}return C.samples=ne,this.remuxAudio(C,m,T,!1)},R.remuxID3=function(C,m){var T=C.samples.length;if(!T)return;for(var I=C.inputTimeScale,D=this._initPTS,N=this._initDTS,z=0;z<T;z++){var F=C.samples[z];F.pts=p(F.pts-D,m*I)/I,F.dts=p(F.dts-N,m*I)/I}var W=C.samples;return C.samples=[],{samples:W}},R.remuxText=function(C,m){var T=C.samples.length;if(!T)return;for(var I=C.inputTimeScale,D=this._initPTS,N=0;N<T;N++){var z=C.samples[N];z.pts=p(z.pts-D,m*I)/I}C.samples.sort(function(W,K){return W.pts-K.pts});var F=C.samples;return C.samples=[],{samples:F}},P}();function p(P,R){var E;if(R===null)return P;for(R<P?E=-8589934592:E=8589934592;Math.abs(P-R)>4294967296;)P+=E;return P}function O(P){for(var R=0;R<P.length;R++)if(P[R].key)return R;return-1}var S=function(R,E,C,m){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=E,this.size=C,this.cts=m,this.flags=new v(R)},v=function(R){this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=R?2:1,this.isNonSync=R?0:1}},"./src/remux/passthrough-remuxer.ts":function(L,g,A){"use strict";A.r(g);var b=A("./src/polyfills/number.ts"),y=A("./src/utils/mp4-tools.ts"),x=A("./src/loader/fragment.ts"),w=A("./src/utils/logger.ts"),f=function(){function r(){this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=void 0,this.initTracks=void 0,this.lastEndDTS=null}var u=r.prototype;return u.destroy=function(){},u.resetTimeStamp=function(a){this.initPTS=a,this.lastEndDTS=null},u.resetNextTimestamp=function(){this.lastEndDTS=null},u.resetInitSegment=function(a,n,i){this.audioCodec=n,this.videoCodec=i,this.generateInitSegment(a),this.emitInitSegment=!0},u.generateInitSegment=function(a){var n=this.audioCodec,i=this.videoCodec;if(!a||!a.byteLength){this.initTracks=void 0,this.initData=void 0;return}var h=this.initData=Object(y.parseInitSegment)(a);n||(n=d(h.audio,x.ElementaryStreamTypes.AUDIO)),i||(i=d(h.video,x.ElementaryStreamTypes.VIDEO));var l={};h.audio&&h.video?l.audiovideo={container:"video/mp4",codec:n+","+i,initSegment:a,id:"main"}:h.audio?l.audio={container:"audio/mp4",codec:n,initSegment:a,id:"audio"}:h.video?l.video={container:"video/mp4",codec:i,initSegment:a,id:"main"}:w.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=l},u.remux=function(a,n,i,h,l){var s=this.initPTS,p=this.lastEndDTS,O={audio:void 0,video:void 0,text:h,id3:i,initSegment:void 0};Object(b.isFiniteNumber)(p)||(p=this.lastEndDTS=l||0);var S=n.samples;if(!S||!S.length)return O;var v={initPTS:void 0,timescale:1},P=this.initData;if((!P||!P.length)&&(this.generateInitSegment(S),P=this.initData),!P||!P.length)return w.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),O;this.emitInitSegment&&(v.tracks=this.initTracks,this.emitInitSegment=!1),Object(b.isFiniteNumber)(s)||(this.initPTS=v.initPTS=s=_(P,S,p));var R=Object(y.getDuration)(S,P),E=p,C=R+E;Object(y.offsetStartDTS)(P,S,s),R>0?this.lastEndDTS=C:(w.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var m=!!P.audio,T=!!P.video,I="";m&&(I+="audio"),T&&(I+="video");var D={data1:S,startPTS:E,startDTS:E,endPTS:C,endDTS:C,type:I,hasAudio:m,hasVideo:T,nb:1,dropped:0};return O.audio=D.type==="audio"?D:void 0,O.video=D.type!=="audio"?D:void 0,O.text=h,O.id3=i,O.initSegment=v,O},r}(),_=function(u,t,a){return Object(y.getStartDTS)(u,t)-a};function d(r,u){var t=r==null?void 0:r.codec;return t&&t.length>4?t:t==="hvc1"?"hvc1.1.c.L120.90":t==="av01"?"av01.0.04M.08":t==="avc1"||u===x.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}g.default=f},"./src/task-loop.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"default",function(){return b});var b=function(){function y(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var x=y.prototype;return x.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},x.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},x.onHandlerDestroyed=function(){},x.hasInterval=function(){return!!this._tickInterval},x.hasNextTick=function(){return!!this._tickTimer},x.setInterval=function(f){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,f),!0)},x.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},x.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},x.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},x.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},x.doTick=function(){},y}()},"./src/types/cmcd.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"CMCDVersion",function(){return b}),A.d(g,"CMCDObjectType",function(){return y}),A.d(g,"CMCDStreamingFormat",function(){return x}),A.d(g,"CMCDStreamType",function(){return w});var b=1,y;(function(f){f.MANIFEST="m",f.AUDIO="a",f.VIDEO="v",f.MUXED="av",f.INIT="i",f.CAPTION="c",f.TIMED_TEXT="tt",f.KEY="k",f.OTHER="o"})(y||(y={}));var x;(function(f){f.DASH="d",f.HLS="h",f.SMOOTH="s",f.OTHER="o"})(x||(x={}));var w;(function(f){f.VOD="v",f.LIVE="l"})(w||(w={}))},"./src/types/level.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"HlsSkip",function(){return x}),A.d(g,"getSkipValue",function(){return w}),A.d(g,"HlsUrlParameters",function(){return f}),A.d(g,"Level",function(){return _});function b(d,r){for(var u=0;u<r.length;u++){var t=r[u];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(d,t.key,t)}}function y(d,r,u){return r&&b(d.prototype,r),u&&b(d,u),d}var x;(function(d){d.No="",d.Yes="YES",d.v2="v2"})(x||(x={}));function w(d,r){var u=d.canSkipUntil,t=d.canSkipDateRanges,a=d.endSN,n=r!==void 0?r-a:0;return u&&n<u?t?x.v2:x.Yes:x.No}var f=function(){function d(u,t,a){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=u,this.part=t,this.skip=a}var r=d.prototype;return r.addDirectives=function(t){var a=new self.URL(t);return this.msn!==void 0&&a.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&a.searchParams.set("_HLS_part",this.part.toString()),this.skip&&a.searchParams.set("_HLS_skip",this.skip),a.toString()},d}(),_=function(){function d(r){this.attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.videoCodec=void 0,this.width=void 0,this.unknownCodecs=void 0,this.audioGroupIds=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.textGroupIds=void 0,this.url=void 0,this._urlId=0,this.url=[r.url],this.attrs=r.attrs,this.bitrate=r.bitrate,r.details&&(this.details=r.details),this.id=r.id||0,this.name=r.name,this.width=r.width||0,this.height=r.height||0,this.audioCodec=r.audioCodec,this.videoCodec=r.videoCodec,this.unknownCodecs=r.unknownCodecs,this.codecSet=[r.videoCodec,r.audioCodec].filter(function(u){return u}).join(",").replace(/\.[^.,]+/g,"")}return y(d,[{key:"maxBitrate",get:function(){return Math.max(this.realBitrate,this.bitrate)}},{key:"uri",get:function(){return this.url[this._urlId]||""}},{key:"urlId",get:function(){return this._urlId},set:function(u){var t=u%this.url.length;this._urlId!==t&&(this.details=void 0,this._urlId=t)}}]),d}()},"./src/types/loader.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"PlaylistContextType",function(){return b}),A.d(g,"PlaylistLevelType",function(){return y});var b;(function(x){x.MANIFEST="manifest",x.LEVEL="level",x.AUDIO_TRACK="audioTrack",x.SUBTITLE_TRACK="subtitleTrack"})(b||(b={}));var y;(function(x){x.MAIN="main",x.AUDIO="audio",x.SUBTITLE="subtitle"})(y||(y={}))},"./src/types/transmuxer.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"ChunkMetadata",function(){return b});var b=function(w,f,_,d,r,u){d===void 0&&(d=0),r===void 0&&(r=-1),u===void 0&&(u=!1),this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing=y(),this.buffering={audio:y(),video:y(),audiovideo:y()},this.level=w,this.sn=f,this.id=_,this.size=d,this.part=r,this.partial=u};function y(){return{start:0,executeStart:0,executeEnd:0,end:0}}},"./src/utils/attr-list.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"AttrList",function(){return x});var b=/^(\d+)x(\d+)$/,y=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g,x=function(){function w(_){typeof _=="string"&&(_=w.parseAttrList(_));for(var d in _)_.hasOwnProperty(d)&&(this[d]=_[d])}var f=w.prototype;return f.decimalInteger=function(d){var r=parseInt(this[d],10);return r>Number.MAX_SAFE_INTEGER?Infinity:r},f.hexadecimalInteger=function(d){if(this[d]){var r=(this[d]||"0x").slice(2);r=(r.length&1?"0":"")+r;for(var u=new Uint8Array(r.length/2),t=0;t<r.length/2;t++)u[t]=parseInt(r.slice(t*2,t*2+2),16);return u}else return null},f.hexadecimalIntegerAsNumber=function(d){var r=parseInt(this[d],16);return r>Number.MAX_SAFE_INTEGER?Infinity:r},f.decimalFloatingPoint=function(d){return parseFloat(this[d])},f.optionalFloat=function(d,r){var u=this[d];return u?parseFloat(u):r},f.enumeratedString=function(d){return this[d]},f.bool=function(d){return this[d]==="YES"},f.decimalResolution=function(d){var r=b.exec(this[d]);return r===null?void 0:{width:parseInt(r[1],10),height:parseInt(r[2],10)}},w.parseAttrList=function(d){var r,u={},t='"';for(y.lastIndex=0;(r=y.exec(d))!==null;){var a=r[2];a.indexOf(t)===0&&a.lastIndexOf(t)===a.length-1&&(a=a.slice(1,-1)),u[r[1]]=a}return u},w}()},"./src/utils/binary-search.ts":function(L,g,A){"use strict";A.r(g);var b={search:function(x,w){for(var f=0,_=x.length-1,d=null,r=null;f<=_;){d=(f+_)/2|0,r=x[d];var u=w(r);if(u>0)f=d+1;else if(u<0)_=d-1;else return r}return null}};g.default=b},"./src/utils/buffer-helper.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"BufferHelper",function(){return x});var b=A("./src/utils/logger.ts"),y={length:0,start:function(){return 0},end:function(){return 0}},x=function(){function w(){}return w.isBuffered=function(_,d){try{if(_){for(var r=w.getBuffered(_),u=0;u<r.length;u++)if(d>=r.start(u)&&d<=r.end(u))return!0}}catch(t){}return!1},w.bufferInfo=function(_,d,r){try{if(_){var u=w.getBuffered(_),t=[],a;for(a=0;a<u.length;a++)t.push({start:u.start(a),end:u.end(a)});return this.bufferedInfo(t,d,r)}}catch(n){}return{len:0,start:d,end:d,nextStart:void 0}},w.bufferedInfo=function(_,d,r){d=Math.max(0,d),_.sort(function(v,P){var R=v.start-P.start;return R||P.end-v.end});var u=[];if(r)for(var t=0;t<_.length;t++){var a=u.length;if(a){var n=u[a-1].end;_[t].start-n<r?_[t].end>n&&(u[a-1].end=_[t].end):u.push(_[t])}else u.push(_[t])}else u=_;for(var i=0,h,l=d,s=d,p=0;p<u.length;p++){var O=u[p].start,S=u[p].end;if(d+r>=O&&d<S)l=O,s=S,i=s-d;else if(d+r<O){h=O;break}}return{len:i,start:l||0,end:s||0,nextStart:h}},w.getBuffered=function(_){try{return _.buffered}catch(d){return b.logger.log("failed to get media.buffered",d),y}},w}()},"./src/utils/cea-608-parser.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"Row",function(){return s}),A.d(g,"CaptionScreen",function(){return p});var b=A("./src/utils/logger.ts"),y={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},x=function(C){var m=C;return y.hasOwnProperty(C)&&(m=y[C]),String.fromCharCode(m)},w=15,f=100,_={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},d={17:2,18:4,21:6,22:8,23:10,19:13,20:15},r={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},u={25:2,26:4,29:6,30:8,31:10,27:13,28:15},t=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],a;(function(E){E[E.ERROR=0]="ERROR",E[E.TEXT=1]="TEXT",E[E.WARNING=2]="WARNING",E[E.INFO=2]="INFO",E[E.DEBUG=3]="DEBUG",E[E.DATA=3]="DATA"})(a||(a={}));var n=function(){function E(){this.time=null,this.verboseLevel=a.ERROR}var C=E.prototype;return C.log=function(T,I){this.verboseLevel>=T&&b.logger.log(this.time+" ["+T+"] "+I)},E}(),i=function(C){for(var m=[],T=0;T<C.length;T++)m.push(C[T].toString(16));return m},h=function(){function E(m,T,I,D,N){this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=m||"white",this.underline=T||!1,this.italics=I||!1,this.background=D||"black",this.flash=N||!1}var C=E.prototype;return C.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},C.setStyles=function(T){for(var I=["foreground","underline","italics","background","flash"],D=0;D<I.length;D++){var N=I[D];T.hasOwnProperty(N)&&(this[N]=T[N])}},C.isDefault=function(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash},C.equals=function(T){return this.foreground===T.foreground&&this.underline===T.underline&&this.italics===T.italics&&this.background===T.background&&this.flash===T.flash},C.copy=function(T){this.foreground=T.foreground,this.underline=T.underline,this.italics=T.italics,this.background=T.background,this.flash=T.flash},C.toString=function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash},E}(),l=function(){function E(m,T,I,D,N,z){this.uchar=void 0,this.penState=void 0,this.uchar=m||" ",this.penState=new h(T,I,D,N,z)}var C=E.prototype;return C.reset=function(){this.uchar=" ",this.penState.reset()},C.setChar=function(T,I){this.uchar=T,this.penState.copy(I)},C.setPenState=function(T){this.penState.copy(T)},C.equals=function(T){return this.uchar===T.uchar&&this.penState.equals(T.penState)},C.copy=function(T){this.uchar=T.uchar,this.penState.copy(T.penState)},C.isEmpty=function(){return this.uchar===" "&&this.penState.isDefault()},E}(),s=function(){function E(m){this.chars=void 0,this.pos=void 0,this.currPenState=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chars=[];for(var T=0;T<f;T++)this.chars.push(new l);this.logger=m,this.pos=0,this.currPenState=new h}var C=E.prototype;return C.equals=function(T){for(var I=!0,D=0;D<f;D++)if(!this.chars[D].equals(T.chars[D])){I=!1;break}return I},C.copy=function(T){for(var I=0;I<f;I++)this.chars[I].copy(T.chars[I])},C.isEmpty=function(){for(var T=!0,I=0;I<f;I++)if(!this.chars[I].isEmpty()){T=!1;break}return T},C.setCursor=function(T){this.pos!==T&&(this.pos=T),this.pos<0?(this.logger.log(a.DEBUG,"Negative cursor position "+this.pos),this.pos=0):this.pos>f&&(this.logger.log(a.DEBUG,"Too large cursor position "+this.pos),this.pos=f)},C.moveCursor=function(T){var I=this.pos+T;if(T>1)for(var D=this.pos+1;D<I+1;D++)this.chars[D].setPenState(this.currPenState);this.setCursor(I)},C.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},C.insertChar=function(T){T>=144&&this.backSpace();var I=x(T);if(this.pos>=f){this.logger.log(a.ERROR,"Cannot insert "+T.toString(16)+" ("+I+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(I,this.currPenState),this.moveCursor(1)},C.clearFromPos=function(T){var I;for(I=T;I<f;I++)this.chars[I].reset()},C.clear=function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},C.clearToEndOfRow=function(){this.clearFromPos(this.pos)},C.getTextString=function(){for(var T=[],I=!0,D=0;D<f;D++){var N=this.chars[D].uchar;N!==" "&&(I=!1),T.push(N)}return I?"":T.join("")},C.setPenStyles=function(T){this.currPenState.setStyles(T);var I=this.chars[this.pos];I.setPenState(this.currPenState)},E}(),p=function(){function E(m){this.rows=void 0,this.currRow=void 0,this.nrRollUpRows=void 0,this.lastOutputScreen=void 0,this.logger=void 0,this.rows=[];for(var T=0;T<w;T++)this.rows.push(new s(m));this.logger=m,this.currRow=w-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}var C=E.prototype;return C.reset=function(){for(var T=0;T<w;T++)this.rows[T].clear();this.currRow=w-1},C.equals=function(T){for(var I=!0,D=0;D<w;D++)if(!this.rows[D].equals(T.rows[D])){I=!1;break}return I},C.copy=function(T){for(var I=0;I<w;I++)this.rows[I].copy(T.rows[I])},C.isEmpty=function(){for(var T=!0,I=0;I<w;I++)if(!this.rows[I].isEmpty()){T=!1;break}return T},C.backSpace=function(){var T=this.rows[this.currRow];T.backSpace()},C.clearToEndOfRow=function(){var T=this.rows[this.currRow];T.clearToEndOfRow()},C.insertChar=function(T){var I=this.rows[this.currRow];I.insertChar(T)},C.setPen=function(T){var I=this.rows[this.currRow];I.setPenStyles(T)},C.moveCursor=function(T){var I=this.rows[this.currRow];I.moveCursor(T)},C.setCursor=function(T){this.logger.log(a.INFO,"setCursor: "+T);var I=this.rows[this.currRow];I.setCursor(T)},C.setPAC=function(T){this.logger.log(a.INFO,"pacData = "+JSON.stringify(T));var I=T.row-1;if(this.nrRollUpRows&&I<this.nrRollUpRows-1&&(I=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==I){for(var D=0;D<w;D++)this.rows[D].clear();var N=this.currRow+1-this.nrRollUpRows,z=this.lastOutputScreen;if(z){var F=z.rows[N].cueStartTime,W=this.logger.time;if(F&&W!==null&&F<W)for(var K=0;K<this.nrRollUpRows;K++)this.rows[I-this.nrRollUpRows+K+1].copy(z.rows[N+K])}}this.currRow=I;var B=this.rows[this.currRow];if(T.indent!==null){var k=T.indent,G=Math.max(k-1,0);B.setCursor(T.indent),T.color=B.chars[G].penState.foreground}var ne={foreground:T.color,underline:T.underline,italics:T.italics,background:"black",flash:!1};this.setPen(ne)},C.setBkgData=function(T){this.logger.log(a.INFO,"bkgData = "+JSON.stringify(T)),this.backSpace(),this.setPen(T),this.insertChar(32)},C.setRollUpRows=function(T){this.nrRollUpRows=T},C.rollUp=function(){if(this.nrRollUpRows===null){this.logger.log(a.DEBUG,"roll_up but nrRollUpRows not set yet");return}this.logger.log(a.TEXT,this.getDisplayText());var T=this.currRow+1-this.nrRollUpRows,I=this.rows.splice(T,1)[0];I.clear(),this.rows.splice(this.currRow,0,I),this.logger.log(a.INFO,"Rolling up")},C.getDisplayText=function(T){T=T||!1;for(var I=[],D="",N=-1,z=0;z<w;z++){var F=this.rows[z].getTextString();F&&(N=z+1,T?I.push("Row "+N+": '"+F+"'"):I.push(F.trim()))}return I.length>0&&(T?D="["+I.join(" | ")+"]":D=I.join(`
`)),D},C.getTextAndFormat=function(){return this.rows},E}(),O=function(){function E(m,T,I){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=m,this.outputFilter=T,this.mode=null,this.verbose=0,this.displayedMemory=new p(I),this.nonDisplayedMemory=new p(I),this.lastOutputScreen=new p(I),this.currRollUpRow=this.displayedMemory.rows[w-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=I}var C=E.prototype;return C.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[w-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},C.getHandler=function(){return this.outputFilter},C.setHandler=function(T){this.outputFilter=T},C.setPAC=function(T){this.writeScreen.setPAC(T)},C.setBkgData=function(T){this.writeScreen.setBkgData(T)},C.setMode=function(T){if(T===this.mode)return;this.mode=T,this.logger.log(a.INFO,"MODE="+T),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=T},C.insertChars=function(T){for(var I=0;I<T.length;I++)this.writeScreen.insertChar(T[I]);var D=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(a.INFO,D+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(a.TEXT,"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},C.ccRCL=function(){this.logger.log(a.INFO,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},C.ccBS=function(){if(this.logger.log(a.INFO,"BS - BackSpace"),this.mode==="MODE_TEXT")return;this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate()},C.ccAOF=function(){},C.ccAON=function(){},C.ccDER=function(){this.logger.log(a.INFO,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},C.ccRU=function(T){this.logger.log(a.INFO,"RU("+T+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(T)},C.ccFON=function(){this.logger.log(a.INFO,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},C.ccRDC=function(){this.logger.log(a.INFO,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},C.ccTR=function(){this.logger.log(a.INFO,"TR"),this.setMode("MODE_TEXT")},C.ccRTD=function(){this.logger.log(a.INFO,"RTD"),this.setMode("MODE_TEXT")},C.ccEDM=function(){this.logger.log(a.INFO,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},C.ccCR=function(){this.logger.log(a.INFO,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},C.ccENM=function(){this.logger.log(a.INFO,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},C.ccEOC=function(){if(this.logger.log(a.INFO,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){var T=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=T,this.writeScreen=this.nonDisplayedMemory,this.logger.log(a.TEXT,"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)},C.ccTO=function(T){this.logger.log(a.INFO,"TO("+T+") - Tab Offset"),this.writeScreen.moveCursor(T)},C.ccMIDROW=function(T){var I={flash:!1};if(I.underline=T%2===1,I.italics=T>=46,I.italics)I.foreground="white";else{var D=Math.floor(T/2)-16,N=["white","green","blue","cyan","red","yellow","magenta"];I.foreground=N[D]}this.logger.log(a.INFO,"MIDROW: "+JSON.stringify(I)),this.writeScreen.setPen(I)},C.outputDataUpdate=function(T){T===void 0&&(T=!1);var I=this.logger.time;if(I===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=I:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,I,this.lastOutputScreen),T&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:I),this.lastOutputScreen.copy(this.displayedMemory))},C.cueSplitAtTime=function(T){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,T,this.displayedMemory),this.cueStartTime=T))},E}(),S=function(){function E(m,T,I){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var D=new n;this.channels=[null,new O(m,T,D),new O(m+1,I,D)],this.cmdHistory=R(),this.logger=D}var C=E.prototype;return C.getHandler=function(T){return this.channels[T].getHandler()},C.setHandler=function(T,I){this.channels[T].setHandler(I)},C.addData=function(T,I){var D,N,z,F=!1;this.logger.time=T;for(var W=0;W<I.length;W+=2){if(N=I[W]&127,z=I[W+1]&127,N===0&&z===0)continue;if(this.logger.log(a.DATA,"["+i([I[W],I[W+1]])+"] -> ("+i([N,z])+")"),D=this.parseCmd(N,z),D||(D=this.parseMidrow(N,z)),D||(D=this.parsePAC(N,z)),D||(D=this.parseBackgroundAttributes(N,z)),!D&&(F=this.parseChars(N,z),F)){var K=this.currentChannel;if(K&&K>0){var B=this.channels[K];B.insertChars(F)}else this.logger.log(a.WARNING,"No channel found yet. TEXT-MODE?")}!D&&!F&&this.logger.log(a.WARNING,"Couldn't parse cleaned data "+i([N,z])+" orig: "+i([I[W],I[W+1]]))}},C.parseCmd=function(T,I){var D=this.cmdHistory,N=(T===20||T===28||T===21||T===29)&&I>=32&&I<=47,z=(T===23||T===31)&&I>=33&&I<=35;if(!(N||z))return!1;if(P(T,I,D))return v(null,null,D),this.logger.log(a.DEBUG,"Repeated command ("+i([T,I])+") is dropped"),!0;var F=T===20||T===21||T===23?1:2,W=this.channels[F];return T===20||T===21||T===28||T===29?I===32?W.ccRCL():I===33?W.ccBS():I===34?W.ccAOF():I===35?W.ccAON():I===36?W.ccDER():I===37?W.ccRU(2):I===38?W.ccRU(3):I===39?W.ccRU(4):I===40?W.ccFON():I===41?W.ccRDC():I===42?W.ccTR():I===43?W.ccRTD():I===44?W.ccEDM():I===45?W.ccCR():I===46?W.ccENM():I===47&&W.ccEOC():W.ccTO(I-32),v(T,I,D),this.currentChannel=F,!0},C.parseMidrow=function(T,I){var D=0;if((T===17||T===25)&&I>=32&&I<=47){if(T===17?D=1:D=2,D!==this.currentChannel)return this.logger.log(a.ERROR,"Mismatch channel in midrow parsing"),!1;var N=this.channels[D];return N?(N.ccMIDROW(I),this.logger.log(a.DEBUG,"MIDROW ("+i([T,I])+")"),!0):!1}return!1},C.parsePAC=function(T,I){var D,N=this.cmdHistory,z=(T>=17&&T<=23||T>=25&&T<=31)&&I>=64&&I<=127,F=(T===16||T===24)&&I>=64&&I<=95;if(!(z||F))return!1;if(P(T,I,N))return v(null,null,N),!0;var W=T<=23?1:2;I>=64&&I<=95?D=W===1?_[T]:r[T]:D=W===1?d[T]:u[T];var K=this.channels[W];return K?(K.setPAC(this.interpretPAC(D,I)),v(T,I,N),this.currentChannel=W,!0):!1},C.interpretPAC=function(T,I){var D,N={color:null,italics:!1,indent:null,underline:!1,row:T};return I>95?D=I-96:D=I-64,N.underline=(D&1)===1,D<=13?N.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(D/2)]:D<=15?(N.italics=!0,N.color="white"):N.indent=Math.floor((D-16)/2)*4,N},C.parseChars=function(T,I){var D,N=null,z=null;if(T>=25?(D=2,z=T-8):(D=1,z=T),z>=17&&z<=19){var F;z===17?F=I+80:z===18?F=I+112:F=I+144,this.logger.log(a.INFO,"Special char '"+x(F)+"' in channel "+D),N=[F]}else T>=32&&T<=127&&(N=I===0?[T]:[T,I]);if(N){var W=i(N);this.logger.log(a.DEBUG,"Char codes = "+W.join(",")),v(T,I,this.cmdHistory)}return N},C.parseBackgroundAttributes=function(T,I){var D=(T===16||T===24)&&I>=32&&I<=47,N=(T===23||T===31)&&I>=45&&I<=47;if(!(D||N))return!1;var z,F={};T===16||T===24?(z=Math.floor((I-32)/2),F.background=t[z],I%2===1&&(F.background=F.background+"_semi")):I===45?F.background="transparent":(F.foreground="black",I===47&&(F.underline=!0));var W=T<=23?1:2,K=this.channels[W];return K.setBkgData(F),v(T,I,this.cmdHistory),!0},C.reset=function(){for(var T=0;T<Object.keys(this.channels).length;T++){var I=this.channels[T];I&&I.reset()}this.cmdHistory=R()},C.cueSplitAtTime=function(T){for(var I=0;I<this.channels.length;I++){var D=this.channels[I];D&&D.cueSplitAtTime(T)}},E}();function v(E,C,m){m.a=E,m.b=C}function P(E,C,m){return m.a===E&&m.b===C}function R(){return{a:null,b:null}}g.default=S},"./src/utils/codecs.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"isCodecType",function(){return y}),A.d(g,"isCodecSupportedInMp4",function(){return x});var b={audio:{a3ds:!0,"ac-3":!0,"ac-4":!0,alac:!0,alaw:!0,dra1:!0,"dts+":!0,"dts-":!0,dtsc:!0,dtse:!0,dtsh:!0,"ec-3":!0,enca:!0,g719:!0,g726:!0,m4ae:!0,mha1:!0,mha2:!0,mhm1:!0,mhm2:!0,mlpa:!0,mp4a:!0,"raw ":!0,Opus:!0,samr:!0,sawb:!0,sawp:!0,sevc:!0,sqcp:!0,ssmv:!0,twos:!0,ulaw:!0},video:{avc1:!0,avc2:!0,avc3:!0,avc4:!0,avcp:!0,av01:!0,drac:!0,dvav:!0,dvhe:!0,encv:!0,hev1:!0,hvc1:!0,mjp2:!0,mp4v:!0,mvc1:!0,mvc2:!0,mvc3:!0,mvc4:!0,resv:!0,rv60:!0,s263:!0,svc1:!0,svc2:!0,"vc-1":!0,vp08:!0,vp09:!0},text:{stpp:!0,wvtt:!0}};function y(w,f){var _=b[f];return!!_&&_[w.slice(0,4)]===!0}function x(w,f){return MediaSource.isTypeSupported((f||"video")+'/mp4;codecs="'+w+'"')}},"./src/utils/cues.ts":function(L,g,A){"use strict";A.r(g);var b=A("./src/utils/vttparser.ts"),y=A("./src/utils/webvtt-parser.ts"),x=A("./src/utils/texttrack-utils.ts"),w=/\s/,f={newCue:function(d,r,u,t){for(var a=[],n,i,h,l,s,p=self.VTTCue||self.TextTrackCue,O=0;O<t.rows.length;O++)if(n=t.rows[O],h=!0,l=0,s="",!n.isEmpty()){for(var S=0;S<n.chars.length;S++)w.test(n.chars[S].uchar)&&h?l++:(s+=n.chars[S].uchar,h=!1);n.cueStartTime=r,r===u&&(u+=1e-4),l>=16?l--:l++;var v=Object(b.fixLineBreaks)(s.trim()),P=Object(y.generateCueId)(r,u,v);(!d||!d.cues||!d.cues.getCueById(P))&&(i=new p(r,u,v),i.id=P,i.line=O+1,i.align="left",i.position=10+Math.min(80,Math.floor(l*8/32)*10),a.push(i))}return d&&a.length&&(a.sort(function(R,E){return R.line==="auto"||E.line==="auto"?0:R.line>8&&E.line>8?E.line-R.line:R.line-E.line}),a.forEach(function(R){return Object(x.addCueToTrack)(d,R)})),a}};g.default=f},"./src/utils/discontinuities.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"findFirstFragWithCC",function(){return w}),A.d(g,"shouldAlignOnDiscontinuities",function(){return f}),A.d(g,"findDiscontinuousReferenceFrag",function(){return _}),A.d(g,"adjustSlidingStart",function(){return r}),A.d(g,"alignStream",function(){return u}),A.d(g,"alignPDT",function(){return a}),A.d(g,"alignFragmentByPDTDelta",function(){return n}),A.d(g,"alignMediaPlaylistByPDT",function(){return i});var b=A("./src/polyfills/number.ts"),y=A("./src/utils/logger.ts"),x=A("./src/controller/level-helper.ts");function w(h,l){for(var s=null,p=0,O=h.length;p<O;p++){var S=h[p];if(S&&S.cc===l){s=S;break}}return s}function f(h,l,s){return!!(l.details&&(s.endCC>s.startCC||h&&h.cc<s.startCC))}function _(h,l){var s=h.fragments,p=l.fragments;if(!p.length||!s.length){y.logger.log("No fragments to align");return}var O=w(s,p[0].cc);if(!O||O&&!O.startPTS){y.logger.log("No frag in previous level to align on");return}return O}function d(h,l){if(h){var s=h.start+l;h.start=h.startPTS=s,h.endPTS=s+h.duration}}function r(h,l){for(var s=l.fragments,p=0,O=s.length;p<O;p++)d(s[p],h);l.fragmentHint&&d(l.fragmentHint,h),l.alignedSliding=!0}function u(h,l,s){if(!l)return;t(h,s,l),!s.alignedSliding&&l.details&&a(s,l.details),!s.alignedSliding&&l.details&&!s.skippedSegments&&Object(x.adjustSliding)(l.details,s)}function t(h,l,s){if(f(h,s,l)){var p=_(s.details,l);p&&Object(b.isFiniteNumber)(p.start)&&(y.logger.log("Adjusting PTS using last level due to CC increase within current level "+l.url),r(p.start,l))}}function a(h,l){if(!l.fragments.length||!h.hasProgramDateTime||!l.hasProgramDateTime)return;var s=l.fragments[0].programDateTime,p=h.fragments[0].programDateTime,O=(p-s)/1e3+l.fragments[0].start;O&&Object(b.isFiniteNumber)(O)&&(y.logger.log("Adjusting PTS using programDateTime delta "+(p-s)+"ms, sliding:"+O.toFixed(3)+" "+h.url+" "),r(O,h))}function n(h,l){var s=h.programDateTime;if(!s)return;var p=(s-l)/1e3;h.start=h.startPTS=p,h.endPTS=p+h.duration}function i(h,l){if(!l.fragments.length||!h.hasProgramDateTime||!l.hasProgramDateTime)return;var s=l.fragments[0].programDateTime,p=l.fragments[0].start,O=s-p*1e3;h.fragments.forEach(function(S){n(S,O)}),h.fragmentHint&&n(h.fragmentHint,O),h.alignedSliding=!0}},"./src/utils/ewma-bandwidth-estimator.ts":function(L,g,A){"use strict";A.r(g);var b=A("./src/utils/ewma.ts"),y=function(){function x(f,_,d){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultEstimate_=d,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new b.default(f),this.fast_=new b.default(_)}var w=x.prototype;return w.update=function(_,d){var r=this.slow_,u=this.fast_;this.slow_.halfLife!==_&&(this.slow_=new b.default(_,r.getEstimate(),r.getTotalWeight())),this.fast_.halfLife!==d&&(this.fast_=new b.default(d,u.getEstimate(),u.getTotalWeight()))},w.sample=function(_,d){_=Math.max(_,this.minDelayMs_);var r=8*d,u=_/1e3,t=r/u;this.fast_.sample(u,t),this.slow_.sample(u,t)},w.canEstimate=function(){var _=this.fast_;return _&&_.getTotalWeight()>=this.minWeight_},w.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},w.destroy=function(){},x}();g.default=y},"./src/utils/ewma.ts":function(L,g,A){"use strict";A.r(g);var b=function(){function y(w,f,_){f===void 0&&(f=0),_===void 0&&(_=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=w,this.alpha_=w?Math.exp(Math.log(.5)/w):0,this.estimate_=f,this.totalWeight_=_}var x=y.prototype;return x.sample=function(f,_){var d=Math.pow(this.alpha_,f);this.estimate_=_*(1-d)+d*this.estimate_,this.totalWeight_+=f},x.getTotalWeight=function(){return this.totalWeight_},x.getEstimate=function(){if(this.alpha_){var f=1-Math.pow(this.alpha_,this.totalWeight_);if(f)return this.estimate_/f}return this.estimate_},y}();g.default=b},"./src/utils/fetch-loader.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"fetchSupported",function(){return n});var b=A("./src/polyfills/number.ts"),y=A("./src/loader/load-stats.ts"),x=A("./src/demux/chunk-cache.ts");function w(p,O){p.prototype=Object.create(O.prototype),p.prototype.constructor=p,u(p,O)}function f(p){var O=typeof Map=="function"?new Map:void 0;return f=function(v){if(v===null||!r(v))return v;if(typeof v!="function")throw new TypeError("Super expression must either be null or a function");if(typeof O!="undefined"){if(O.has(v))return O.get(v);O.set(v,P)}function P(){return _(v,arguments,t(this).constructor)}return P.prototype=Object.create(v.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),u(P,v)},f(p)}function _(p,O,S){return d()?_=Reflect.construct:_=function(P,R,E){var C=[null];C.push.apply(C,R);var m=Function.bind.apply(P,C),T=new m;return E&&u(T,E.prototype),T},_.apply(null,arguments)}function d(){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(p){return!1}}function r(p){return Function.toString.call(p).indexOf("[native code]")!==-1}function u(p,O){return u=Object.setPrototypeOf||function(v,P){return v.__proto__=P,v},u(p,O)}function t(p){return t=Object.setPrototypeOf?Object.getPrototypeOf:function(S){return S.__proto__||Object.getPrototypeOf(S)},t(p)}function a(){return a=Object.assign||function(p){for(var O=1;O<arguments.length;O++){var S=arguments[O];for(var v in S)Object.prototype.hasOwnProperty.call(S,v)&&(p[v]=S[v])}return p},a.apply(this,arguments)}function n(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(p){}return!1}var i=function(){function p(S){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=void 0,this.response=void 0,this.controller=void 0,this.context=void 0,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=S.fetchSetup||l,this.controller=new self.AbortController,this.stats=new y.LoadStats}var O=p.prototype;return O.destroy=function(){this.loader=this.callbacks=null,this.abortInternal()},O.abortInternal=function(){var v=this.response;(!v||!v.ok)&&(this.stats.aborted=!0,this.controller.abort())},O.abort=function(){var v;this.abortInternal(),(v=this.callbacks)!==null&&v!==void 0&&v.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)},O.load=function(v,P,R){var E=this,C=this.stats;if(C.loading.start)throw new Error("Loader can only be used once.");C.loading.start=self.performance.now();var m=h(v,this.controller.signal),T=R.onProgress,I=v.responseType==="arraybuffer",D=I?"byteLength":"length";this.context=v,this.config=P,this.callbacks=R,this.request=this.fetchSetup(v,m),self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(function(){E.abortInternal(),R.onTimeout(C,v,E.response)},P.timeout),self.fetch(this.request).then(function(N){if(E.response=E.loader=N,!N.ok){var z=N.status,F=N.statusText;throw new s(F||"fetch, bad network response",z,N)}return C.loading.first=Math.max(self.performance.now(),C.loading.start),C.total=parseInt(N.headers.get("Content-Length")||"0"),T&&Object(b.isFiniteNumber)(P.highWaterMark)?E.loadProgressively(N,C,v,P.highWaterMark,T):I?N.arrayBuffer():N.text()}).then(function(N){var z=E.response;self.clearTimeout(E.requestTimeout),C.loading.end=Math.max(self.performance.now(),C.loading.first),C.loaded=C.total=N[D];var F={url:z.url,data:N};T&&!Object(b.isFiniteNumber)(P.highWaterMark)&&T(C,v,N,z),R.onSuccess(F,C,v,z)}).catch(function(N){if(self.clearTimeout(E.requestTimeout),C.aborted)return;var z=N.code||0;R.onError({code:z,text:N.message},v,N.details)})},O.getCacheAge=function(){var v=null;if(this.response){var P=this.response.headers.get("age");v=P?parseFloat(P):null}return v},O.loadProgressively=function(v,P,R,E,C){E===void 0&&(E=0);var m=new x.default,T=v.body.getReader(),I=function D(){return T.read().then(function(N){if(N.done)return m.dataLength&&C(P,R,m.flush(),v),Promise.resolve(new ArrayBuffer(0));var z=N.value,F=z.length;return P.loaded+=F,F<E||m.dataLength?(m.push(z),m.dataLength>=E&&C(P,R,m.flush(),v)):C(P,R,z,v),D()}).catch(function(){return Promise.reject()})};return I()},p}();function h(p,O){var S={method:"GET",mode:"cors",credentials:"same-origin",signal:O,headers:new self.Headers(a({},p.headers))};return p.rangeEnd&&S.headers.set("Range","bytes="+p.rangeStart+"-"+String(p.rangeEnd-1)),S}function l(p,O){return new self.Request(p.url,O)}var s=function(p){w(O,p);function O(S,v,P){var R;return R=p.call(this,S)||this,R.code=void 0,R.details=void 0,R.code=v,R.details=P,R}return O}(f(Error));g.default=i},"./src/utils/imsc1-ttml-parser.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"IMSC1_CODEC",function(){return r}),A.d(g,"parseIMSC1",function(){return n});var b=A("./src/utils/mp4-tools.ts"),y=A("./src/utils/vttparser.ts"),x=A("./src/utils/vttcue.ts"),w=A("./src/demux/id3.ts"),f=A("./src/utils/timescale-conversion.ts"),_=A("./src/utils/webvtt-parser.ts");function d(){return d=Object.assign||function(E){for(var C=1;C<arguments.length;C++){var m=arguments[C];for(var T in m)Object.prototype.hasOwnProperty.call(m,T)&&(E[T]=m[T])}return E},d.apply(this,arguments)}var r="stpp.ttml.im1t",u=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,t=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,a={left:"start",center:"center",right:"end",start:"start",end:"end"};function n(E,C,m,T,I){var D=Object(b.findBox)(new Uint8Array(E),["mdat"]);if(D.length===0){I(new Error("Could not parse IMSC1 mdat"));return}var N=D[0],z=Object(w.utf8ArrayToStr)(new Uint8Array(E,N.start,N.end-N.start)),F=Object(f.toTimescaleFromScale)(C,1,m);try{T(i(z,F))}catch(W){I(W)}}function i(E,C){var m=new DOMParser,T=m.parseFromString(E,"text/xml"),I=T.getElementsByTagName("tt")[0];if(!I)throw new Error("Invalid ttml");var D={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},N=Object.keys(D).reduce(function(B,k){return B[k]=I.getAttribute("ttp:"+k)||D[k],B},{}),z=I.getAttribute("xml:space")!=="preserve",F=l(h(I,"styling","style")),W=l(h(I,"layout","region")),K=h(I,"body","[begin]");return[].map.call(K,function(B){var k=s(B,z);if(!k||!B.hasAttribute("begin"))return null;var G=v(B.getAttribute("begin"),N),ne=v(B.getAttribute("dur"),N),fe=v(B.getAttribute("end"),N);if(G===null)throw S(B);if(fe===null){if(ne===null)throw S(B);fe=G+ne}var de=new x.default(G-C,fe-C,k);de.id=Object(_.generateCueId)(de.startTime,de.endTime,de.text);var xe=W[B.getAttribute("region")],Oe=F[B.getAttribute("style")];de.position=10,de.size=80;var ce=p(xe,Oe),be=ce.textAlign;if(be){var ve=a[be];ve&&(de.lineAlign=ve),de.align=be}return d(de,ce),de}).filter(function(B){return B!==null})}function h(E,C,m){var T=E.getElementsByTagName(C)[0];return T?[].slice.call(T.querySelectorAll(m)):[]}function l(E){return E.reduce(function(C,m){var T=m.getAttribute("xml:id");return T&&(C[T]=m),C},{})}function s(E,C){return[].slice.call(E.childNodes).reduce(function(m,T,I){var D;return T.nodeName==="br"&&I?m+`
`:(D=T.childNodes)!==null&&D!==void 0&&D.length?s(T,C):C?m+T.textContent.trim().replace(/\s+/g," "):m+T.textContent},"")}function p(E,C){var m="http://www.w3.org/ns/ttml#styling",T=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"];return T.reduce(function(I,D){var N=O(C,m,D)||O(E,m,D);return N&&(I[D]=N),I},{})}function O(E,C,m){return E.hasAttributeNS(C,m)?E.getAttributeNS(C,m):null}function S(E){return new Error("Could not parse ttml timestamp "+E)}function v(E,C){if(!E)return null;var m=Object(y.parseTimeStamp)(E);return m===null&&(u.test(E)?m=P(E,C):t.test(E)&&(m=R(E,C))),m}function P(E,C){var m=u.exec(E),T=(m[4]|0)+(m[5]|0)/C.subFrameRate;return(m[1]|0)*3600+(m[2]|0)*60+(m[3]|0)+T/C.frameRate}function R(E,C){var m=t.exec(E),T=Number(m[1]),I=m[2];switch(I){case"h":return T*3600;case"m":return T*60;case"ms":return T*1e3;case"f":return T/C.frameRate;case"t":return T/C.tickRate}return T}},"./src/utils/logger.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"enableLogs",function(){return _}),A.d(g,"logger",function(){return d});var b=function(){},y={trace:b,debug:b,log:b,warn:b,info:b,error:b},x=y;function w(r){var u=self.console[r];return u?u.bind(self.console,"["+r+"] >"):b}function f(r){for(var u=arguments.length,t=new Array(u>1?u-1:0),a=1;a<u;a++)t[a-1]=arguments[a];t.forEach(function(n){x[n]=r[n]?r[n].bind(r):w(n)})}function _(r){if(self.console&&r===!0||typeof r=="object"){f(r,"debug","log","info","warn","error");try{x.log()}catch(u){x=y}}else x=y}var d=x},"./src/utils/mediakeys-helper.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"KeySystems",function(){return b}),A.d(g,"requestMediaKeySystemAccess",function(){return y});var b;(function(x){x.WIDEVINE="com.widevine.alpha",x.PLAYREADY="com.microsoft.playready"})(b||(b={}));var y=function(){return typeof self!="undefined"&&self.navigator&&self.navigator.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}()},"./src/utils/mediasource-helper.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"getMediaSource",function(){return b});function b(){return self.MediaSource||self.WebKitMediaSource}},"./src/utils/mp4-tools.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"bin2str",function(){return f}),A.d(g,"readUint16",function(){return _}),A.d(g,"readUint32",function(){return d}),A.d(g,"writeUint32",function(){return r}),A.d(g,"findBox",function(){return u}),A.d(g,"parseSegmentIndex",function(){return t}),A.d(g,"parseInitSegment",function(){return a}),A.d(g,"getStartDTS",function(){return n}),A.d(g,"getDuration",function(){return i}),A.d(g,"computeRawDurationFromSamples",function(){return h}),A.d(g,"offsetStartDTS",function(){return l}),A.d(g,"segmentValidRange",function(){return s}),A.d(g,"appendUint8Array",function(){return p});var b=A("./src/utils/typed-array.ts"),y=A("./src/loader/fragment.ts"),x=Math.pow(2,32)-1,w=[].push;function f(O){return String.fromCharCode.apply(null,O)}function _(O,S){"data"in O&&(S+=O.start,O=O.data);var v=O[S]<<8|O[S+1];return v<0?65536+v:v}function d(O,S){"data"in O&&(S+=O.start,O=O.data);var v=O[S]<<24|O[S+1]<<16|O[S+2]<<8|O[S+3];return v<0?4294967296+v:v}function r(O,S,v){"data"in O&&(S+=O.start,O=O.data),O[S]=v>>24,O[S+1]=v>>16&255,O[S+2]=v>>8&255,O[S+3]=v&255}function u(O,S){var v=[];if(!S.length)return v;var P,R,E;"data"in O?(P=O.data,R=O.start,E=O.end):(P=O,R=0,E=P.byteLength);for(var C=R;C<E;){var m=d(P,C),T=f(P.subarray(C+4,C+8)),I=m>1?C+m:E;if(T===S[0])if(S.length===1)v.push({data:P,start:C+8,end:I});else{var D=u({data:P,start:C+8,end:I},S.slice(1));D.length&&w.apply(v,D)}C=I}return v}function t(O){var S=u(O,["moov"]),v=S[0],P=v?v.end:null,R=u(O,["sidx"]);if(!R||!R[0])return null;var E=[],C=R[0],m=C.data[0],T=m===0?8:16,I=d(C,T);T+=4;var D=0,N=0;m===0?T+=8:T+=16,T+=2;var z=C.end+N,F=_(C,T);T+=2;for(var W=0;W<F;W++){var K=T,B=d(C,K);K+=4;var k=B&2147483647,G=(B&2147483648)>>>31;if(G===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var ne=d(C,K);K+=4,E.push({referenceSize:k,subsegmentDuration:ne,info:{duration:ne/I,start:z,end:z+k-1}}),z+=k,K+=4,T=K}return{earliestPresentationTime:D,timescale:I,version:m,referencesCount:F,references:E,moovEndOffset:P}}function a(O){for(var S=[],v=u(O,["moov","trak"]),P=0;P<v.length;P++){var R=v[P],E=u(R,["tkhd"])[0];if(E){var C=E.data[E.start],m=C===0?12:20,T=d(E,m),I=u(R,["mdia","mdhd"])[0];if(I){C=I.data[I.start],m=C===0?12:20;var D=d(I,m),N=u(R,["mdia","hdlr"])[0];if(N){var z=f(N.data.subarray(N.start+8,N.start+12)),F={soun:y.ElementaryStreamTypes.AUDIO,vide:y.ElementaryStreamTypes.VIDEO}[z];if(F){var W=u(R,["mdia","minf","stbl","stsd"])[0],K=void 0;W&&(K=f(W.data.subarray(W.start+12,W.start+16))),S[T]={timescale:D,type:F},S[F]={timescale:D,id:T,codec:K}}}}}}var B=u(O,["moov","mvex","trex"]);return B.forEach(function(k){var G=d(k,4),ne=S[G];ne&&(ne.default={duration:d(k,12),flags:d(k,20)})}),S}function n(O,S){return u(S,["moof","traf"]).reduce(function(v,P){var R=u(P,["tfdt"])[0],E=R.data[R.start],C=u(P,["tfhd"]).reduce(function(m,T){var I=d(T,4),D=O[I];if(D){var N=d(R,4);E===1&&(N*=Math.pow(2,32),N+=d(R,8));var z=D.timescale||9e4,F=N/z;if(isFinite(F)&&(m===null||F<m))return F}return m},null);return C!==null&&isFinite(C)&&(v===null||C<v)?C:v},null)||0}function i(O,S){for(var v=0,P=0,R=0,E=u(O,["moof","traf"]),C=0;C<E.length;C++){var m=E[C],T=u(m,["tfhd"])[0],I=d(T,4),D=S[I];if(!D)continue;var N=D.default,z=d(T,0)|(N==null?void 0:N.flags),F=N==null?void 0:N.duration;z&8&&(z&2?F=d(T,12):F=d(T,8));for(var W=D.timescale||9e4,K=u(m,["trun"]),B=0;B<K.length;B++){if(F){var k=d(K[B],4);v=F*k}else v=h(K[B]);D.type===y.ElementaryStreamTypes.VIDEO?P+=v/W:D.type===y.ElementaryStreamTypes.AUDIO&&(R+=v/W)}}if(P===0&&R===0){var G=t(O);if(G!=null&&G.references)return G.references.reduce(function(ne,fe){return ne+fe.info.duration||0},0)}return P||R}function h(O){var S=d(O,0),v=8;S&1&&(v+=4),S&4&&(v+=4);for(var P=0,R=d(O,4),E=0;E<R;E++){if(S&256){var C=d(O,v);P+=C,v+=4}S&512&&(v+=4),S&1024&&(v+=4),S&2048&&(v+=4)}return P}function l(O,S,v){u(S,["moof","traf"]).forEach(function(P){u(P,["tfhd"]).forEach(function(R){var E=d(R,4),C=O[E];if(!C)return;var m=C.timescale||9e4;u(P,["tfdt"]).forEach(function(T){var I=T.data[T.start],D=d(T,4);if(I===0)r(T,4,D-v*m);else{D*=Math.pow(2,32),D+=d(T,8),D-=v*m,D=Math.max(D,0);var N=Math.floor(D/(x+1)),z=Math.floor(D%(x+1));r(T,4,N),r(T,8,z)}})})})}function s(O){var S={valid:null,remainder:null},v=u(O,["moof"]);if(v){if(v.length<2)return S.remainder=O,S}else return S;var P=v[v.length-1];return S.valid=Object(b.sliceUint8)(O,0,P.start-8),S.remainder=Object(b.sliceUint8)(O,P.start-8),S}function p(O,S){var v=new Uint8Array(O.length+S.length);return v.set(O),v.set(S,O.length),v}},"./src/utils/output-filter.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"default",function(){return b});var b=function(){function y(w,f){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=w,this.trackName=f}var x=y.prototype;return x.dispatchCue=function(){if(this.startTime===null)return;this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null},x.newCue=function(f,_,d){(this.startTime===null||this.startTime>f)&&(this.startTime=f),this.endTime=_,this.screen=d,this.timelineController.createCaptionsTrack(this.trackName)},x.reset=function(){this.cueRanges=[]},y}()},"./src/utils/texttrack-utils.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"sendAddTrackEvent",function(){return y}),A.d(g,"addCueToTrack",function(){return x}),A.d(g,"clearCurrentCues",function(){return w}),A.d(g,"removeCuesInRange",function(){return f}),A.d(g,"getCuesInRange",function(){return d});var b=A("./src/utils/logger.ts");function y(r,u){var t;try{t=new Event("addtrack")}catch(a){t=document.createEvent("Event"),t.initEvent("addtrack",!1,!1)}t.track=r,u.dispatchEvent(t)}function x(r,u){var t=r.mode;if(t==="disabled"&&(r.mode="hidden"),r.cues&&!r.cues.getCueById(u.id))try{if(r.addCue(u),!r.cues.getCueById(u.id))throw new Error("addCue is failed for: "+u)}catch(n){b.logger.debug("[texttrack-utils]: "+n);var a=new self.TextTrackCue(u.startTime,u.endTime,u.text);a.id=u.id,r.addCue(a)}t==="disabled"&&(r.mode=t)}function w(r){var u=r.mode;if(u==="disabled"&&(r.mode="hidden"),r.cues)for(var t=r.cues.length;t--;)r.removeCue(r.cues[t]);u==="disabled"&&(r.mode=u)}function f(r,u,t){var a=r.mode;if(a==="disabled"&&(r.mode="hidden"),r.cues&&r.cues.length>0)for(var n=d(r.cues,u,t),i=0;i<n.length;i++)r.removeCue(n[i]);a==="disabled"&&(r.mode=a)}function _(r,u){if(u<r[0].startTime)return 0;var t=r.length-1;if(u>r[t].endTime)return-1;for(var a=0,n=t;a<=n;){var i=Math.floor((n+a)/2);if(u<r[i].startTime)n=i-1;else if(u>r[i].startTime&&a<t)a=i+1;else return i}return r[a].startTime-u<u-r[n].startTime?a:n}function d(r,u,t){var a=[],n=_(r,u);if(n>-1)for(var i=n,h=r.length;i<h;i++){var l=r[i];if(l.startTime>=u&&l.endTime<=t)a.push(l);else if(l.startTime>t)return a}return a}},"./src/utils/time-ranges.ts":function(L,g,A){"use strict";A.r(g);var b={toString:function(x){for(var w="",f=x.length,_=0;_<f;_++)w+="["+x.start(_).toFixed(3)+","+x.end(_).toFixed(3)+"]";return w}};g.default=b},"./src/utils/timescale-conversion.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"toTimescaleFromBase",function(){return y}),A.d(g,"toTimescaleFromScale",function(){return x}),A.d(g,"toMsFromMpegTsClock",function(){return w}),A.d(g,"toMpegTsClockFromTimescale",function(){return f});var b=9e4;function y(_,d,r,u){r===void 0&&(r=1),u===void 0&&(u=!1);var t=_*d*r;return u?Math.round(t):t}function x(_,d,r,u){return r===void 0&&(r=1),u===void 0&&(u=!1),y(_,d,1/r,u)}function w(_,d){return d===void 0&&(d=!1),y(_,1e3,1/b,d)}function f(_,d){return d===void 0&&(d=1),y(_,b,1/d)}},"./src/utils/typed-array.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"sliceUint8",function(){return b});function b(y,x,w){return Uint8Array.prototype.slice?y.slice(x,w):new Uint8Array(Array.prototype.slice.call(y,x,w))}},"./src/utils/vttcue.ts":function(L,g,A){"use strict";A.r(g),g.default=function(){if(typeof self!="undefined"&&self.VTTCue)return self.VTTCue;var b=["","lr","rl"],y=["start","middle","end","left","right"];function x(r,u){if(typeof u!="string")return!1;if(!Array.isArray(r))return!1;var t=u.toLowerCase();return~r.indexOf(t)?t:!1}function w(r){return x(b,r)}function f(r){return x(y,r)}function _(r){for(var u=arguments.length,t=new Array(u>1?u-1:0),a=1;a<u;a++)t[a-1]=arguments[a];for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var h in i)r[h]=i[h]}return r}function d(r,u,t){var a=this,n={enumerable:!0};a.hasBeenReset=!1;var i="",h=!1,l=r,s=u,p=t,O=null,S="",v=!0,P="auto",R="start",E=50,C="middle",m=50,T="middle";Object.defineProperty(a,"id",_({},n,{get:function(){return i},set:function(D){i=""+D}})),Object.defineProperty(a,"pauseOnExit",_({},n,{get:function(){return h},set:function(D){h=!!D}})),Object.defineProperty(a,"startTime",_({},n,{get:function(){return l},set:function(D){if(typeof D!="number")throw new TypeError("Start time must be set to a number.");l=D,this.hasBeenReset=!0}})),Object.defineProperty(a,"endTime",_({},n,{get:function(){return s},set:function(D){if(typeof D!="number")throw new TypeError("End time must be set to a number.");s=D,this.hasBeenReset=!0}})),Object.defineProperty(a,"text",_({},n,{get:function(){return p},set:function(D){p=""+D,this.hasBeenReset=!0}})),Object.defineProperty(a,"region",_({},n,{get:function(){return O},set:function(D){O=D,this.hasBeenReset=!0}})),Object.defineProperty(a,"vertical",_({},n,{get:function(){return S},set:function(D){var N=w(D);if(N===!1)throw new SyntaxError("An invalid or illegal string was specified.");S=N,this.hasBeenReset=!0}})),Object.defineProperty(a,"snapToLines",_({},n,{get:function(){return v},set:function(D){v=!!D,this.hasBeenReset=!0}})),Object.defineProperty(a,"line",_({},n,{get:function(){return P},set:function(D){if(typeof D!="number"&&D!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");P=D,this.hasBeenReset=!0}})),Object.defineProperty(a,"lineAlign",_({},n,{get:function(){return R},set:function(D){var N=f(D);if(!N)throw new SyntaxError("An invalid or illegal string was specified.");R=N,this.hasBeenReset=!0}})),Object.defineProperty(a,"position",_({},n,{get:function(){return E},set:function(D){if(D<0||D>100)throw new Error("Position must be between 0 and 100.");E=D,this.hasBeenReset=!0}})),Object.defineProperty(a,"positionAlign",_({},n,{get:function(){return C},set:function(D){var N=f(D);if(!N)throw new SyntaxError("An invalid or illegal string was specified.");C=N,this.hasBeenReset=!0}})),Object.defineProperty(a,"size",_({},n,{get:function(){return m},set:function(D){if(D<0||D>100)throw new Error("Size must be between 0 and 100.");m=D,this.hasBeenReset=!0}})),Object.defineProperty(a,"align",_({},n,{get:function(){return T},set:function(D){var N=f(D);if(!N)throw new SyntaxError("An invalid or illegal string was specified.");T=N,this.hasBeenReset=!0}})),a.displayState=void 0}return d.prototype.getCueAsHTML=function(){var r=self.WebVTT;return r.convertCueToDOMTree(self,this.text)},d}()},"./src/utils/vttparser.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"parseTimeStamp",function(){return x}),A.d(g,"fixLineBreaks",function(){return u}),A.d(g,"VTTParser",function(){return t});var b=A("./src/utils/vttcue.ts"),y=function(){function a(){}var n=a.prototype;return n.decode=function(h,l){if(!h)return"";if(typeof h!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(h))},a}();function x(a){function n(h,l,s,p){return(h|0)*3600+(l|0)*60+(s|0)+parseFloat(p||0)}var i=a.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return i?parseFloat(i[2])>59?n(i[2],i[3],0,i[4]):n(i[1],i[2],i[3],i[4]):null}var w=function(){function a(){this.values=Object.create(null)}var n=a.prototype;return n.set=function(h,l){!this.get(h)&&l!==""&&(this.values[h]=l)},n.get=function(h,l,s){return s?this.has(h)?this.values[h]:l[s]:this.has(h)?this.values[h]:l},n.has=function(h){return h in this.values},n.alt=function(h,l,s){for(var p=0;p<s.length;++p)if(l===s[p]){this.set(h,l);break}},n.integer=function(h,l){/^-?\d+$/.test(l)&&this.set(h,parseInt(l,10))},n.percent=function(h,l){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(l)){var s=parseFloat(l);if(s>=0&&s<=100)return this.set(h,s),!0}return!1},a}();function f(a,n,i,h){var l=h?a.split(h):[a];for(var s in l){if(typeof l[s]!="string")continue;var p=l[s].split(i);if(p.length!==2)continue;var O=p[0],S=p[1];n(O,S)}}var _=new b.default(0,0,""),d=_.align==="middle"?"middle":"center";function r(a,n,i){var h=a;function l(){var O=x(a);if(O===null)throw new Error("Malformed timestamp: "+h);return a=a.replace(/^[^\sa-zA-Z-]+/,""),O}function s(O,S){var v=new w;f(O,function(E,C){var m;switch(E){case"region":for(var T=i.length-1;T>=0;T--)if(i[T].id===C){v.set(E,i[T].region);break}break;case"vertical":v.alt(E,C,["rl","lr"]);break;case"line":m=C.split(","),v.integer(E,m[0]),v.percent(E,m[0])&&v.set("snapToLines",!1),v.alt(E,m[0],["auto"]),m.length===2&&v.alt("lineAlign",m[1],["start",d,"end"]);break;case"position":m=C.split(","),v.percent(E,m[0]),m.length===2&&v.alt("positionAlign",m[1],["start",d,"end","line-left","line-right","auto"]);break;case"size":v.percent(E,C);break;case"align":v.alt(E,C,["start",d,"end","left","right"]);break}},/:/,/\s/),S.region=v.get("region",null),S.vertical=v.get("vertical","");var P=v.get("line","auto");P==="auto"&&_.line===-1&&(P=-1),S.line=P,S.lineAlign=v.get("lineAlign","start"),S.snapToLines=v.get("snapToLines",!0),S.size=v.get("size",100),S.align=v.get("align",d);var R=v.get("position","auto");R==="auto"&&_.position===50&&(R=S.align==="start"||S.align==="left"?0:S.align==="end"||S.align==="right"?100:50),S.position=R}function p(){a=a.replace(/^\s+/,"")}if(p(),n.startTime=l(),p(),a.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+h);a=a.substr(3),p(),n.endTime=l(),p(),s(a,n)}function u(a){return a.replace(/<br(?: \/)?>/gi,`
`)}var t=function(){function a(){this.state="INITIAL",this.buffer="",this.decoder=new y,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var n=a.prototype;return n.parse=function(h){var l=this;h&&(l.buffer+=l.decoder.decode(h,{stream:!0}));function s(){var R=l.buffer,E=0;for(R=u(R);E<R.length&&R[E]!=="\r"&&R[E]!==`
`;)++E;var C=R.substr(0,E);return R[E]==="\r"&&++E,R[E]===`
`&&++E,l.buffer=R.substr(E),C}function p(R){f(R,function(E,C){},/:/)}try{var O="";if(l.state==="INITIAL"){if(!/\r\n|\n/.test(l.buffer))return this;O=s();var S=O.match(/^()?WEBVTT([ \t].*)?$/);if(!S||!S[0])throw new Error("Malformed WebVTT signature.");l.state="HEADER"}for(var v=!1;l.buffer;){if(!/\r\n|\n/.test(l.buffer))return this;v?v=!1:O=s();switch(l.state){case"HEADER":/:/.test(O)?p(O):O||(l.state="ID");continue;case"NOTE":O||(l.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(O)){l.state="NOTE";break}if(!O)continue;if(l.cue=new b.default(0,0,""),l.state="CUE",O.indexOf("-->")===-1){l.cue.id=O;continue}case"CUE":if(!l.cue){l.state="BADCUE";continue}try{r(O,l.cue,l.regionList)}catch(R){l.cue=null,l.state="BADCUE";continue}l.state="CUETEXT";continue;case"CUETEXT":{var P=O.indexOf("-->")!==-1;if(!O||P&&(v=!0)){l.oncue&&l.cue&&l.oncue(l.cue),l.cue=null,l.state="ID";continue}if(l.cue===null)continue;l.cue.text&&(l.cue.text+=`
`),l.cue.text+=O}continue;case"BADCUE":O||(l.state="ID")}}}catch(R){l.state==="CUETEXT"&&l.cue&&l.oncue&&l.oncue(l.cue),l.cue=null,l.state=l.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},n.flush=function(){var h=this;try{if((h.cue||h.state==="HEADER")&&(h.buffer+=`
`,h.parse()),h.state==="INITIAL"||h.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(l){h.onparsingerror&&h.onparsingerror(l)}return h.onflush&&h.onflush(),this},a}()},"./src/utils/webvtt-parser.ts":function(L,g,A){"use strict";A.r(g),A.d(g,"generateCueId",function(){return t}),A.d(g,"parseWebVTT",function(){return n});var b=A("./src/polyfills/number.ts"),y=A("./src/utils/vttparser.ts"),x=A("./src/demux/id3.ts"),w=A("./src/utils/timescale-conversion.ts"),f=A("./src/remux/mp4-remuxer.ts"),_=/\r\n|\n\r|\n|\r/g,d=function(h,l,s){return s===void 0&&(s=0),h.substr(s,l.length)===l},r=function(h){var l=parseInt(h.substr(-3)),s=parseInt(h.substr(-6,2)),p=parseInt(h.substr(-9,2)),O=h.length>9?parseInt(h.substr(0,h.indexOf(":"))):0;if(!Object(b.isFiniteNumber)(l)||!Object(b.isFiniteNumber)(s)||!Object(b.isFiniteNumber)(p)||!Object(b.isFiniteNumber)(O))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+h);return l+=1e3*s,l+=60*1e3*p,l+=60*60*1e3*O,l},u=function(h){for(var l=5381,s=h.length;s;)l=l*33^h.charCodeAt(--s);return(l>>>0).toString()};function t(i,h,l){return u(i.toString())+u(h.toString())+u(l)}var a=function(h,l,s){var p=h[l],O=h[p.prevCC];if(!O||!O.new&&p.new){h.ccOffset=h.presentationOffset=p.start,p.new=!1;return}for(;(S=O)!==null&&S!==void 0&&S.new;){var S;h.ccOffset+=p.start-O.start,p.new=!1,p=O,O=h[p.prevCC]}h.presentationOffset=s};function n(i,h,l,s,p,O,S,v){var P=new y.VTTParser,R=Object(x.utf8ArrayToStr)(new Uint8Array(i)).trim().replace(_,`
`).split(`
`),E=[],C=Object(w.toMpegTsClockFromTimescale)(h,l),m="00:00.000",T=0,I=0,D,N=!0,z=!1;P.oncue=function(F){var W=s[p],K=s.ccOffset,B=(T-C)/9e4;if(W!=null&&W.new&&(I!==void 0?K=s.ccOffset=W.start:a(s,p,B)),B&&(K=B-s.presentationOffset),z){var k=F.endTime-F.startTime,G=Object(f.normalizePts)((F.startTime+K-I)*9e4,O*9e4)/9e4;F.startTime=G,F.endTime=G+k}var ne=F.text.trim();F.text=decodeURIComponent(encodeURIComponent(ne)),F.id||(F.id=t(F.startTime,F.endTime,ne)),F.endTime>0&&E.push(F)},P.onparsingerror=function(F){D=F},P.onflush=function(){if(D){v(D);return}S(E)},R.forEach(function(F){if(N)if(d(F,"X-TIMESTAMP-MAP=")){N=!1,z=!0,F.substr(16).split(",").forEach(function(W){d(W,"LOCAL:")?m=W.substr(6):d(W,"MPEGTS:")&&(T=parseInt(W.substr(7)))});try{I=r(m)/1e3}catch(W){z=!1,D=W}return}else F===""&&(N=!1);P.parse(F+`
`)}),P.flush()}},"./src/utils/xhr-loader.ts":function(L,g,A){"use strict";A.r(g);var b=A("./src/utils/logger.ts"),y=A("./src/loader/load-stats.ts"),x=/^age:\s*[\d.]+\s*$/m,w=function(){function f(d){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=d?d.xhrSetup:null,this.stats=new y.LoadStats,this.retryDelay=0}var _=f.prototype;return _.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},_.abortInternal=function(){var r=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),r&&(r.onreadystatechange=null,r.onprogress=null,r.readyState!==4&&(this.stats.aborted=!0,r.abort()))},_.abort=function(){var r;this.abortInternal(),(r=this.callbacks)!==null&&r!==void 0&&r.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},_.load=function(r,u,t){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=r,this.config=u,this.callbacks=t,this.retryDelay=u.retryDelay,this.loadInternal()},_.loadInternal=function(){var r=this.config,u=this.context;if(!r)return;var t=this.loader=new self.XMLHttpRequest,a=this.stats;a.loading.first=0,a.loaded=0;var n=this.xhrSetup;try{if(n)try{n(t,u.url)}catch(l){t.open("GET",u.url,!0),n(t,u.url)}t.readyState||t.open("GET",u.url,!0);var i=this.context.headers;if(i)for(var h in i)t.setRequestHeader(h,i[h])}catch(l){this.callbacks.onError({code:t.status,text:l.message},u,t);return}u.rangeEnd&&t.setRequestHeader("Range","bytes="+u.rangeStart+"-"+(u.rangeEnd-1)),t.onreadystatechange=this.readystatechange.bind(this),t.onprogress=this.loadprogress.bind(this),t.responseType=u.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.timeout),t.send()},_.readystatechange=function(){var r=this.context,u=this.loader,t=this.stats;if(!r||!u)return;var a=u.readyState,n=this.config;if(t.aborted)return;if(a>=2)if(self.clearTimeout(this.requestTimeout),t.loading.first===0&&(t.loading.first=Math.max(self.performance.now(),t.loading.start)),a===4){u.onreadystatechange=null,u.onprogress=null;var i=u.status;if(i>=200&&i<300){t.loading.end=Math.max(self.performance.now(),t.loading.first);var h,l;if(r.responseType==="arraybuffer"?(h=u.response,l=h.byteLength):(h=u.responseText,l=h.length),t.loaded=t.total=l,!this.callbacks)return;var s=this.callbacks.onProgress;if(s&&s(t,r,h,u),!this.callbacks)return;var p={url:u.responseURL,data:h};this.callbacks.onSuccess(p,t,r,u)}else t.retry>=n.maxRetry||i>=400&&i<499?(b.logger.error(i+" while loading "+r.url),this.callbacks.onError({code:i,text:u.statusText},r,u)):(b.logger.warn(i+" while loading "+r.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,n.maxRetryDelay),t.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout)},_.loadtimeout=function(){b.logger.warn("timeout while loading "+this.context.url);var r=this.callbacks;r&&(this.abortInternal(),r.onTimeout(this.stats,this.context,this.loader))},_.loadprogress=function(r){var u=this.stats;u.loaded=r.loaded,r.lengthComputable&&(u.total=r.total)},_.getCacheAge=function(){var r=null;if(this.loader&&x.test(this.loader.getAllResponseHeaders())){var u=this.loader.getResponseHeader("age");r=u?parseFloat(u):null}return r},f}();g.default=w}}).default})},vHTk:function(M,Y,o){M.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},vToQ:function(M,Y,o){M.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"}},w7YG:function(M,Y,o){(function(L,g,A){M.exports=Y=g(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(L){return function(){var g=L,A=g.lib,b=A.StreamCipher,y=g.algo,x=y.RC4=b.extend({_doReset:function(){for(var _=this._key,d=_.words,r=_.sigBytes,u=this._S=[],t=0;t<256;t++)u[t]=t;for(var t=0,a=0;t<256;t++){var n=t%r,i=d[n>>>2]>>>24-n%4*8&255;a=(a+u[t]+i)%256;var h=u[t];u[t]=u[a],u[a]=h}this._i=this._j=0},_doProcessBlock:function(_,d){_[d]^=w.call(this)},keySize:256/32,ivSize:0});function w(){for(var _=this._S,d=this._i,r=this._j,u=0,t=0;t<4;t++){d=(d+1)%256,r=(r+_[d])%256;var a=_[d];_[d]=_[r],_[r]=a,u|=_[(_[d]+_[r])%256]<<24-t*8}return this._i=d,this._j=r,u}g.RC4=b._createHelper(x);var f=y.RC4Drop=x.extend({cfg:x.cfg.extend({drop:192}),_doReset:function(){x._doReset.call(this);for(var _=this.cfg.drop;_>0;_--)w.call(this)}});g.RC4Drop=b._createHelper(f)}(),L.RC4})},wCXF:function(M,Y,o){"use strict";o.d(Y,"a",function(){return gt});var L=o("rePB"),g=o("VTBJ"),A=o("KQm4"),b=o("U8pU"),y=o("ODXe"),x=o("q1tI"),w=o("TSYQ"),f=o.n(w),_=o("Gytx"),d=o.n(_),r=o("Kwbf"),u=o("t23M"),t=o("qx4F"),a=o("6eGT"),n=o("IBYe"),i=o("Ff2n"),h=o("c+Xe"),l=o("fyJ8"),s=o("biw7");function p(Je,Ue,ft,kt,ht){var _t=ft[Je]||{},Qe=ft[Ue]||{},He,Ge;_t.fixed==="left"?He=kt.left[Je]:Qe.fixed==="right"&&(Ge=kt.right[Ue]);var Ee=!1,Ae=!1,Fe=!1,We=!1,Ke=ft[Ue+1],st=ft[Je-1];if(ht==="rtl"){if(He!==void 0){var Ot=st&&st.fixed==="left";We=!Ot}else if(Ge!==void 0){var Bt=Ke&&Ke.fixed==="right";Fe=!Bt}}else if(He!==void 0){var an=Ke&&Ke.fixed==="left";Ee=!an}else if(Ge!==void 0){var Kt=st&&st.fixed==="right";Ae=!Kt}return{fixLeft:He,fixRight:Ge,lastFixLeft:Ee,firstFixRight:Ae,lastFixRight:Fe,firstFixLeft:We,isSticky:kt.isSticky}}var O=o("sR1s");function S(Je){var Ue=Je.cells,ft=Je.stickyOffsets,kt=Je.flattenColumns,ht=Je.rowComponent,_t=Je.cellComponent,Qe=Je.onHeaderRow,He=Je.index,Ge=x.useContext(s.a),Ee=Ge.prefixCls,Ae=Ge.direction,Fe;Qe&&(Fe=Qe(Ue.map(function(Ke){return Ke.column}),He));var We=Object(O.a)(Ue.map(function(Ke){return Ke.column}));return x.createElement(ht,Object.assign({},Fe),Ue.map(function(Ke,st){var Ot=Ke.column,Bt=p(Ke.colStart,Ke.colEnd,kt,ft,Ae),an;return Ot&&Ot.onHeaderCell&&(an=Ke.column.onHeaderCell(Ot)),x.createElement(l.a,Object.assign({},Ke,{ellipsis:Ot.ellipsis,align:Ot.align,component:_t,prefixCls:Ee,key:We[st]},Bt,{additionalProps:an,rowType:"header"}))}))}S.displayName="HeaderRow";var v=S;function P(Je){var Ue=[];function ft(Qe,He){var Ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Ue[Ge]=Ue[Ge]||[];var Ee=He,Ae=Qe.filter(Boolean).map(function(Fe){var We={key:Fe.key,className:Fe.className||"",children:Fe.title,column:Fe,colStart:Ee},Ke=1,st=Fe.children;return st&&st.length>0&&(Ke=ft(st,Ee,Ge+1).reduce(function(Ot,Bt){return Ot+Bt},0),We.hasSubColumns=!0),"colSpan"in Fe&&(Ke=Fe.colSpan),"rowSpan"in Fe&&(We.rowSpan=Fe.rowSpan),We.colSpan=Ke,We.colEnd=We.colStart+Ke-1,Ue[Ge].push(We),Ee+=Ke,Ke});return Ae}ft(Je,0);for(var kt=Ue.length,ht=function(He){Ue[He].forEach(function(Ge){!("rowSpan"in Ge)&&!Ge.hasSubColumns&&(Ge.rowSpan=kt-He)})},_t=0;_t<kt;_t+=1)ht(_t);return Ue}function R(Je){var Ue=Je.stickyOffsets,ft=Je.columns,kt=Je.flattenColumns,ht=Je.onHeaderRow,_t=x.useContext(s.a),Qe=_t.prefixCls,He=_t.getComponent,Ge=x.useMemo(function(){return P(ft)},[ft]),Ee=He(["header","wrapper"],"thead"),Ae=He(["header","row"],"tr"),Fe=He(["header","cell"],"th");return x.createElement(Ee,{className:"".concat(Qe,"-thead")},Ge.map(function(We,Ke){var st=x.createElement(v,{key:Ke,flattenColumns:kt,cells:We,stickyOffsets:Ue,rowComponent:Ae,cellComponent:Fe,onHeaderRow:ht,index:Ke});return st}))}var E=R,C=o("hW8S");function m(Je){for(var Ue=Je.colWidths,ft=Je.columns,kt=Je.columCount,ht=[],_t=kt||ft.length,Qe=!1,He=_t-1;He>=0;He-=1){var Ge=Ue[He],Ee=ft&&ft[He],Ae=Ee&&Ee[C.a];(Ge||Ae||Qe)&&(ht.unshift(x.createElement("col",Object.assign({key:He,style:{width:Ge,minWidth:Ge}},Ae))),Qe=!0)}return x.createElement("colgroup",null,ht)}var T=m;function I(Je,Ue){return Object(x.useMemo)(function(){for(var ft=[],kt=0;kt<Ue;kt+=1){var ht=Je[kt];if(ht!==void 0)ft[kt]=ht;else return null}return ft},[Je.join("_"),Ue])}var D=x.forwardRef(function(Je,Ue){var ft=Je.noData,kt=Je.columns,ht=Je.flattenColumns,_t=Je.colWidths,Qe=Je.columCount,He=Je.stickyOffsets,Ge=Je.direction,Ee=Je.fixHeader,Ae=Je.offsetHeader,Fe=Je.stickyClassName,We=Je.onScroll,Ke=Object(i.a)(Je,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll"]),st=x.useContext(s.a),Ot=st.prefixCls,Bt=st.scrollbarSize,an=st.isSticky,Kt=an&&!Ee?0:Bt,bt=x.useRef(null),Be=x.useCallback(function(Pt){Object(h.b)(Ue,Pt),Object(h.b)(bt,Pt)},[]);x.useEffect(function(){var Pt;function jt(et){var Dt=et.currentTarget,Ht=et.deltaX;Ht&&(We({currentTarget:Dt,scrollLeft:Dt.scrollLeft+Ht}),et.preventDefault())}return(Pt=bt.current)===null||Pt===void 0||Pt.addEventListener("wheel",jt),function(){var et;(et=bt.current)===null||et===void 0||et.removeEventListener("wheel",jt)}},[]);var at=ht[ht.length-1],it={fixed:at?at.fixed:null,onHeaderCell:function(){return{className:"".concat(Ot,"-cell-scrollbar")}}},Me=Object(x.useMemo)(function(){return Kt?[].concat(Object(A.a)(kt),[it]):kt},[Kt,kt]),Ye=Object(x.useMemo)(function(){return Kt?[].concat(Object(A.a)(ht),[it]):ht},[Kt,ht]),ut=Object(x.useMemo)(function(){var Pt=He.right,jt=He.left;return Object(g.a)(Object(g.a)({},He),{},{left:Ge==="rtl"?[].concat(Object(A.a)(jt.map(function(et){return et+Kt})),[0]):jt,right:Ge==="rtl"?Pt:[].concat(Object(A.a)(Pt.map(function(et){return et+Kt})),[0]),isSticky:an})},[Kt,He,an]),mt=I(_t,Qe);return x.createElement("div",{style:Object(g.a)({overflow:"hidden"},an?{top:Ae}:{}),ref:Be,className:f()("".concat(Ot,"-header"),Object(L.a)({},Fe,!!Fe))},x.createElement("table",{style:{tableLayout:"fixed",visibility:ft||mt?null:"hidden"}},x.createElement(T,{colWidths:mt?[].concat(Object(A.a)(mt),[Kt]):[],columCount:Qe+1,columns:Ye}),x.createElement(E,Object.assign({},Ke,{stickyOffsets:ut,columns:Me,flattenColumns:Ye}))))});D.displayName="FixedHeader";var N=D,z=x.createContext(null),F=z;function W(Je){var Ue=Je.prefixCls,ft=Je.children,kt=Je.component,ht=Je.cellComponent,_t=Je.fixHeader,Qe=Je.fixColumn,He=Je.horizonScroll,Ge=Je.className,Ee=Je.expanded,Ae=Je.componentWidth,Fe=Je.colSpan,We=x.useContext(s.a),Ke=We.scrollbarSize;return x.useMemo(function(){var st=ft;return Qe&&(st=x.createElement("div",{style:{width:Ae-(_t?Ke:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Ue,"-expanded-row-fixed")},st)),x.createElement(kt,{className:Ge,style:{display:Ee?null:"none"}},x.createElement(l.a,{component:ht,prefixCls:Ue,colSpan:Fe},st))},[ft,kt,_t,He,Ge,Ee,Ae,Fe,Ke])}var K=W;function B(Je){var Ue=Je.className,ft=Je.style,kt=Je.record,ht=Je.index,_t=Je.rowKey,Qe=Je.getRowKey,He=Je.rowExpandable,Ge=Je.expandedKeys,Ee=Je.onRow,Ae=Je.indent,Fe=Ae===void 0?0:Ae,We=Je.rowComponent,Ke=Je.cellComponent,st=Je.childrenColumnName,Ot=x.useContext(s.a),Bt=Ot.prefixCls,an=Ot.fixedInfoList,Kt=x.useContext(F),bt=Kt.fixHeader,Be=Kt.fixColumn,at=Kt.horizonScroll,it=Kt.componentWidth,Me=Kt.flattenColumns,Ye=Kt.expandableType,ut=Kt.expandRowByClick,mt=Kt.onTriggerExpand,Pt=Kt.rowClassName,jt=Kt.expandedRowClassName,et=Kt.indentSize,Dt=Kt.expandIcon,Ht=Kt.expandedRowRender,bn=Kt.expandIconColumnIndex,Cn=x.useState(!1),Yn=Object(y.a)(Cn,2),qn=Yn[0],Pn=Yn[1],cn=Ge&&Ge.has(Je.recordKey);x.useEffect(function(){cn&&Pn(!0)},[cn]);var xr=Ye==="row"&&(!He||He(kt)),wr=Ye==="nest",Rr=st&&kt&&kt[st],cr=xr||wr,Ur;Ee&&(Ur=Ee(kt,ht));var yr=function(V){if(ut&&cr&&mt(kt,V),Ur&&Ur.onClick){for(var Z,oe=arguments.length,Ce=new Array(oe>1?oe-1:0),he=1;he<oe;he++)Ce[he-1]=arguments[he];(Z=Ur).onClick.apply(Z,[V].concat(Ce))}},sn;typeof Pt=="string"?sn=Pt:typeof Pt=="function"&&(sn=Pt(kt,ht,Fe));var Zt=Object(O.a)(Me),Tn=x.createElement(We,Object.assign({},Ur,{"data-row-key":_t,className:f()(Ue,"".concat(Bt,"-row"),"".concat(Bt,"-row-level-").concat(Fe),sn,Ur&&Ur.className),style:Object(g.a)(Object(g.a)({},ft),Ur?Ur.style:null),onClick:yr}),Me.map(function(pe,V){var Z=pe.render,oe=pe.dataIndex,Ce=pe.className,he=Zt[V],ct=an[V],rn;V===(bn||0)&&wr&&(rn=x.createElement(x.Fragment,null,x.createElement("span",{style:{paddingLeft:"".concat(et*Fe,"px")},className:"".concat(Bt,"-row-indent indent-level-").concat(Fe)}),Dt({prefixCls:Bt,expanded:cn,expandable:Rr,record:kt,onExpand:mt})));var In;return pe.onCell&&(In=pe.onCell(kt,ht)),x.createElement(l.a,Object.assign({className:Ce,ellipsis:pe.ellipsis,align:pe.align,component:Ke,prefixCls:Bt,key:he,record:kt,index:ht,dataIndex:oe,render:Z,shouldCellUpdate:pe.shouldCellUpdate},ct,{appendNode:rn,additionalProps:In}))})),jr;if(xr&&(qn||cn)){var jn=Ht(kt,ht,Fe+1,cn),$n=jt&&jt(kt,ht,Fe);jr=x.createElement(K,{expanded:cn,className:f()("".concat(Bt,"-expanded-row"),"".concat(Bt,"-expanded-row-level-").concat(Fe+1),$n),prefixCls:Bt,fixHeader:bt,fixColumn:Be,horizonScroll:at,component:We,componentWidth:it,cellComponent:Ke,colSpan:Me.length},jn)}var Wn;return Rr&&cn&&(Wn=(kt[st]||[]).map(function(pe,V){var Z=Qe(pe,V);return x.createElement(B,Object.assign({},Je,{key:Z,rowKey:Z,record:pe,recordKey:Z,index:V,indent:Fe+1}))})),x.createElement(x.Fragment,null,Tn,jr,Wn)}B.displayName="BodyRow";var k=B,G=x.createContext(null),ne=G;function fe(Je){var Ue=Je.columnKey,ft=Je.onColumnResize,kt=x.useRef();return x.useEffect(function(){kt.current&&ft(Ue,kt.current.offsetWidth)},[]),x.createElement(u.a,{onResize:function(_t){var Qe=_t.offsetWidth;ft(Ue,Qe)}},x.createElement("td",{ref:kt,style:{padding:0,border:0,height:0}},x.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function de(Je){var Ue=Je.data,ft=Je.getRowKey,kt=Je.measureColumnWidth,ht=Je.expandedKeys,_t=Je.onRow,Qe=Je.rowExpandable,He=Je.emptyNode,Ge=Je.childrenColumnName,Ee=x.useContext(ne),Ae=Ee.onColumnResize,Fe=x.useContext(s.a),We=Fe.prefixCls,Ke=Fe.getComponent,st=x.useContext(F),Ot=st.fixHeader,Bt=st.horizonScroll,an=st.flattenColumns,Kt=st.componentWidth;return x.useMemo(function(){var bt=Ke(["body","wrapper"],"tbody"),Be=Ke(["body","row"],"tr"),at=Ke(["body","cell"],"td"),it;Ue.length?it=Ue.map(function(Ye,ut){var mt=ft(Ye,ut);return x.createElement(k,{key:mt,rowKey:mt,record:Ye,recordKey:mt,index:ut,rowComponent:Be,cellComponent:at,expandedKeys:ht,onRow:_t,getRowKey:ft,rowExpandable:Qe,childrenColumnName:Ge})}):it=x.createElement(K,{expanded:!0,className:"".concat(We,"-placeholder"),prefixCls:We,fixHeader:Ot,fixColumn:Bt,horizonScroll:Bt,component:Be,componentWidth:Kt,cellComponent:at,colSpan:an.length},He);var Me=Object(O.a)(an);return x.createElement(bt,{className:"".concat(We,"-tbody")},kt&&x.createElement("tr",{"aria-hidden":"true",className:"".concat(We,"-measure-row"),style:{height:0}},Me.map(function(Ye){return x.createElement(fe,{key:Ye,columnKey:Ye,onColumnResize:Ae})})),it)},[Ue,We,_t,kt,ht,ft,Ke,Kt,He,an])}var xe=x.memo(de);xe.displayName="Body";var Oe=xe,ce=o("wRmb"),be=o("xEkU"),ve=o.n(be);function ue(Je){var Ue=Object(x.useRef)(Je),ft=Object(x.useState)({}),kt=Object(y.a)(ft,2),ht=kt[1],_t=Object(x.useRef)(null),Qe=Object(x.useRef)([]);function He(Ge){_t.current===null&&(Qe.current=[],_t.current=ve()(function(){Qe.current.forEach(function(Ee){Ue.current=Ee(Ue.current)}),_t.current=null,ht({})})),Qe.current.push(Ge)}return Object(x.useEffect)(function(){return function(){ve.a.cancel(_t.current)}},[]),[Ue.current,He]}function se(Je){var Ue=Object(x.useRef)(Je),ft=Object(x.useRef)(null);function kt(){window.clearTimeout(ft.current)}function ht(Qe){Ue.current=Qe,kt(),ft.current=window.setTimeout(function(){Ue.current=null,ft.current=null},100)}function _t(){return Ue.current}return Object(x.useEffect)(function(){return kt},[]),[ht,_t]}function q(Je,Ue,ft){var kt=Object(x.useMemo)(function(){for(var ht=[],_t=[],Qe=0,He=0,Ge=0;Ge<Ue;Ge+=1)if(ft==="rtl"){_t[Ge]=He,He+=Je[Ge]||0;var Ee=Ue-Ge-1;ht[Ee]=Qe,Qe+=Je[Ee]||0}else{ht[Ge]=Qe,Qe+=Je[Ge]||0;var Ae=Ue-Ge-1;_t[Ae]=He,He+=Je[Ae]||0}return{left:ht,right:_t}},[Je,Ue,ft]);return kt}var me=q;function re(Je){var Ue=Je.className,ft=Je.children;return x.createElement("div",{className:Ue},ft)}var ie=re,we=o("n6Qo");function le(Je){var Ue,ft=Je.prefixCls,kt=Je.record,ht=Je.onExpand,_t=Je.expanded,Qe=Je.expandable,He="".concat(ft,"-row-expand-icon");if(!Qe)return x.createElement("span",{className:f()(He,"".concat(ft,"-row-spaced"))});var Ge=function(Ae){ht(kt,Ae),Ae.stopPropagation()};return x.createElement("span",{className:f()(He,(Ue={},Object(L.a)(Ue,"".concat(ft,"-row-expanded"),_t),Object(L.a)(Ue,"".concat(ft,"-row-collapsed"),!_t),Ue)),onClick:Ge})}function $(Je,Ue,ft){var kt=[];function ht(_t){(_t||[]).forEach(function(Qe,He){kt.push(Ue(Qe,He)),ht(Qe[ft])})}return ht(Je),kt}var J=o("zT1h"),te=o("y0+3"),De=function(Ue,ft){var kt,ht,_t=Ue.scrollBodyRef,Qe=Ue.onScroll,He=Ue.offsetScroll,Ge=x.useContext(s.a),Ee=Ge.prefixCls,Ae=((kt=_t.current)===null||kt===void 0?void 0:kt.scrollWidth)||0,Fe=((ht=_t.current)===null||ht===void 0?void 0:ht.clientWidth)||0,We=Ae&&Fe*(Fe/Ae),Ke=x.useRef(),st=ue({scrollLeft:0,isHiddenScrollBar:!1}),Ot=Object(y.a)(st,2),Bt=Ot[0],an=Ot[1],Kt=x.useRef({delta:0,x:0}),bt=x.useState(!1),Be=Object(y.a)(bt,2),at=Be[0],it=Be[1],Me=function(){it(!1)},Ye=function(et){et.persist(),Kt.current.delta=et.pageX-Bt.scrollLeft,Kt.current.x=0,it(!0),et.preventDefault()},ut=function(et){var Dt,Ht=et||((Dt=window)===null||Dt===void 0?void 0:Dt.event),bn=Ht.buttons;if(!at||bn===0){at&&it(!1);return}var Cn=Kt.current.x+et.pageX-Kt.current.x-Kt.current.delta;Cn<=0&&(Cn=0),Cn+We>=Fe&&(Cn=Fe-We),Qe({scrollLeft:Cn/Fe*(Ae+2)}),Kt.current.x=et.pageX},mt=function(){var et=Object(te.b)(_t.current).top,Dt=et+_t.current.offsetHeight,Ht=document.documentElement.scrollTop+window.innerHeight;Dt-Object(t.a)()<=Ht||et>=Ht-He?an(function(bn){return Object(g.a)(Object(g.a)({},bn),{},{isHiddenScrollBar:!0})}):an(function(bn){return Object(g.a)(Object(g.a)({},bn),{},{isHiddenScrollBar:!1})})},Pt=function(et){an(function(Dt){return Object(g.a)(Object(g.a)({},Dt),{},{scrollLeft:et/Ae*Fe||0})})};return x.useImperativeHandle(ft,function(){return{setScrollLeft:Pt}}),x.useEffect(function(){var jt=Object(J.a)(document.body,"mouseup",Me,!1),et=Object(J.a)(document.body,"mousemove",ut,!1);return mt(),function(){jt.remove(),et.remove()}},[We,at]),x.useEffect(function(){var jt=Object(J.a)(window,"scroll",mt,!1),et=Object(J.a)(window,"resize",mt,!1);return function(){jt.remove(),et.remove()}},[]),x.useEffect(function(){Bt.isHiddenScrollBar||an(function(jt){var et,Dt;return Object(g.a)(Object(g.a)({},jt),{},{scrollLeft:_t.current.scrollLeft/((et=_t.current)===null||et===void 0?void 0:et.scrollWidth)*((Dt=_t.current)===null||Dt===void 0?void 0:Dt.clientWidth)})})},[Bt.isHiddenScrollBar]),Ae<=Fe||!We||Bt.isHiddenScrollBar?null:x.createElement("div",{style:{height:Object(t.a)(),width:Fe,bottom:He},className:"".concat(Ee,"-sticky-scroll")},x.createElement("div",{onMouseDown:Ye,ref:Ke,className:f()("".concat(Ee,"-sticky-scroll-bar"),Object(L.a)({},"".concat(Ee,"-sticky-scroll-bar-active"),at)),style:{width:"".concat(We,"px"),transform:"translate3d(".concat(Bt.scrollLeft,"px, 0, 0)")}}))},Te=x.forwardRef(De);function ke(Je,Ue){return x.useMemo(function(){var ft=!!Je;return{isSticky:ft,stickyClassName:ft?"".concat(Ue,"-sticky-header"):"",offsetHeader:Object(b.a)(Je)==="object"&&Je.offsetHeader||0,offsetScroll:Object(b.a)(Je)==="object"&&Je.offsetScroll||0}},[Je,Ue])}var tt=[],ot={},gt="rc-table-internal-hook",Et=x.memo(function(Je){var Ue=Je.children;return Ue},function(Je,Ue){return d()(Je.props,Ue.props)?Je.pingLeft!==Ue.pingLeft||Je.pingRight!==Ue.pingRight:!1});function xt(Je){var Ue,ft=Je.prefixCls,kt=Je.className,ht=Je.rowClassName,_t=Je.style,Qe=Je.data,He=Je.rowKey,Ge=Je.scroll,Ee=Je.tableLayout,Ae=Je.direction,Fe=Je.title,We=Je.footer,Ke=Je.summary,st=Je.id,Ot=Je.showHeader,Bt=Je.components,an=Je.emptyText,Kt=Je.onRow,bt=Je.onHeaderRow,Be=Je.internalHooks,at=Je.transformColumns,it=Je.internalRefs,Me=Je.sticky,Ye=Qe||tt,ut=!!Ye.length,mt=x.useState(0),Pt=Object(y.a)(mt,2),jt=Pt[0],et=Pt[1];x.useEffect(function(){et(Object(t.a)())});var Dt=x.useMemo(function(){return Object(O.c)(Bt,{})},[Bt]),Ht=x.useCallback(function(Gt,Qt){return Object(O.b)(Dt,Gt)||Qt},[Dt]),bn=x.useMemo(function(){return typeof He=="function"?He:function(Gt){var Qt=Gt&&Gt[He];return Qt}},[He]),Cn=Object(C.c)(Je),Yn=Cn.expandIcon,qn=Cn.expandedRowKeys,Pn=Cn.defaultExpandedRowKeys,cn=Cn.defaultExpandAllRows,xr=Cn.expandedRowRender,wr=Cn.onExpand,Rr=Cn.onExpandedRowsChange,cr=Cn.expandRowByClick,Ur=Cn.rowExpandable,yr=Cn.expandIconColumnIndex,sn=Cn.expandedRowClassName,Zt=Cn.childrenColumnName,Tn=Cn.indentSize,jr=Yn||le,jn=Zt||"children",$n=x.useMemo(function(){return xr?"row":Je.expandable&&Be===gt&&Je.expandable.__PARENT_RENDER_ICON__||Ye.some(function(Gt){return Gt&&Object(b.a)(Gt)==="object"&&Gt[jn]})?"nest":!1},[!!xr,Ye]),Wn=x.useState(function(){return Pn||(cn?$(Ye,bn,jn):[])}),pe=Object(y.a)(Wn,2),V=pe[0],Z=pe[1],oe=x.useMemo(function(){return new Set(qn||V||[])},[qn,V]),Ce=x.useCallback(function(Gt){var Qt=bn(Gt,Ye.indexOf(Gt)),Jt,zn=oe.has(Qt);zn?(oe.delete(Qt),Jt=Object(A.a)(oe)):Jt=[].concat(Object(A.a)(oe),[Qt]),Z(Jt),wr&&wr(!zn,Gt),Rr&&Rr(Jt)},[bn,oe,Ye,wr,Rr]),he=x.useState(0),ct=Object(y.a)(he,2),rn=ct[0],In=ct[1],Vn=Object(ce.b)(Object(g.a)(Object(g.a)(Object(g.a)({},Je),Cn),{},{expandable:!!xr,expandedKeys:oe,getRowKey:bn,onTriggerExpand:Ce,expandIcon:jr,expandIconColumnIndex:yr,direction:Ae}),Be===gt?at:null),tn=Object(y.a)(Vn,2),En=tn[0],Xn=tn[1],$r=x.useMemo(function(){return{columns:En,flattenColumns:Xn}},[En,Xn]),ga=x.useRef(),pa=x.useRef(),dr=x.useRef(),za=x.useState(!1),ja=Object(y.a)(za,2),Ra=ja[0],Ha=ja[1],Sa=x.useState(!1),Ja=Object(y.a)(Sa,2),ka=Ja[0],li=Ja[1],oi=ue(new Map),ua=Object(y.a)(oi,2),fa=ua[0],oa=ua[1],ye=Object(O.a)(Xn),lt=ye.map(function(Gt){return fa.get(Gt)}),Mt=x.useMemo(function(){return lt},[lt.join("_")]),wt=me(Mt,Xn.length,Ae),Wt=Ge&&Object(O.d)(Ge.y),Lt=Ge&&Object(O.d)(Ge.x),Xt=Lt&&Xn.some(function(Gt){var Qt=Gt.fixed;return Qt}),en=x.useRef(),vn=ke(Me,ft),pn=vn.isSticky,Nn=vn.offsetHeader,wn=vn.offsetScroll,nn=vn.stickyClassName,Rn,gn,kn;Wt&&(gn={overflowY:"scroll",maxHeight:Ge.y}),Lt&&(Rn={overflowX:"auto"},Wt||(gn={overflowY:"hidden"}),kn={width:Ge.x===!0?"auto":Ge.x,minWidth:"100%"});var Dn=x.useCallback(function(Gt,Qt){oa(function(Jt){var zn=new Map(Jt);return zn.set(Gt,Qt),zn})},[]),Jn=se(null),hr=Object(y.a)(Jn,2),Br=hr[0],xn=hr[1];function Yt(Gt,Qt){if(!Qt)return;typeof Qt=="function"?Qt(Gt):Qt.scrollLeft!==Gt&&(Qt.scrollLeft=Gt)}var dn=function(Qt){var Jt=Qt.currentTarget,zn=Qt.scrollLeft,tr=typeof zn=="number"?zn:Jt.scrollLeft,Ln=Jt||ot;if(!xn()||xn()===Ln){var ar;Br(Ln),Yt(tr,pa.current),Yt(tr,dr.current),Yt(tr,(ar=en.current)===null||ar===void 0?void 0:ar.setScrollLeft)}if(Jt){var ur=Jt.scrollWidth,or=Jt.clientWidth;Ha(tr>0),li(tr<ur-or)}},An=function(){dr.current&&dn({currentTarget:dr.current})},qt=function(Qt){var Jt=Qt.width;An(),In(ga.current?ga.current.offsetWidth:Jt)};x.useEffect(function(){return An},[]),x.useEffect(function(){Lt&&An()},[Lt]),x.useEffect(function(){Be===gt&&it&&(it.body.current=dr.current)});var Sn=Ht(["table"],"table"),mn=x.useMemo(function(){return Ee||(Xt?Ge.x==="max-content"?"auto":"fixed":Wt||Xn.some(function(Gt){var Qt=Gt.ellipsis;return Qt})?"fixed":"auto")},[Wt,Xt,Xn,Ee]),Mn,Un={colWidths:Mt,columCount:Xn.length,stickyOffsets:wt,onHeaderRow:bt,fixHeader:Wt},ir=x.useMemo(function(){return ut?null:typeof an=="function"?an():an},[ut,an]),er=x.createElement(Oe,{data:Ye,measureColumnWidth:Wt||Lt||pn,expandedKeys:oe,rowExpandable:Ur,getRowKey:bn,onRow:Kt,emptyNode:ir,childrenColumnName:jn}),Ar=x.createElement(T,{colWidths:Xn.map(function(Gt){var Qt=Gt.width;return Qt}),columns:Xn}),Mr=Ke&&x.createElement(we.b,null,Ke(Ye)),Qn=Ht(["body"]);if(Wt||pn){var Tr;typeof Qn=="function"?(Tr=Qn(Ye,{scrollbarSize:jt,ref:dr,onScroll:dn}),Un.colWidths=Xn.map(function(Gt,Qt){var Jt=Gt.width,zn=Qt===En.length-1?Jt-jt:Jt;return typeof zn=="number"&&!Number.isNaN(zn)?zn:(Object(r.a)(!1,"When use `components.body` with render props. Each column should have a fixed value."),0)})):Tr=x.createElement("div",{style:Object(g.a)(Object(g.a)({},Rn),gn),onScroll:dn,ref:dr,className:f()("".concat(ft,"-body"))},x.createElement(Sn,{style:Object(g.a)(Object(g.a)({},kn),{},{tableLayout:mn})},Ar,er,Mr),pn&&x.createElement(Te,{ref:en,offsetScroll:wn,scrollBodyRef:dr,onScroll:dn})),Mn=x.createElement(x.Fragment,null,Ot!==!1&&x.createElement(N,Object.assign({noData:!Ye.length},Un,$r,{direction:Ae,offsetHeader:Nn,stickyClassName:nn,ref:pa,onScroll:dn})),Tr)}else Mn=x.createElement("div",{style:Object(g.a)(Object(g.a)({},Rn),gn),className:f()("".concat(ft,"-content")),onScroll:dn,ref:dr},x.createElement(Sn,{style:Object(g.a)(Object(g.a)({},kn),{},{tableLayout:mn})},Ar,Ot!==!1&&x.createElement(E,Object.assign({},Un,$r)),er,Mr));var mr=Object(C.b)(Je),Gr=x.createElement("div",Object.assign({className:f()(ft,kt,(Ue={},Object(L.a)(Ue,"".concat(ft,"-rtl"),Ae==="rtl"),Object(L.a)(Ue,"".concat(ft,"-ping-left"),Ra),Object(L.a)(Ue,"".concat(ft,"-ping-right"),ka),Object(L.a)(Ue,"".concat(ft,"-layout-fixed"),Ee==="fixed"),Object(L.a)(Ue,"".concat(ft,"-fixed-header"),Wt),Object(L.a)(Ue,"".concat(ft,"-fixed-column"),Xt),Object(L.a)(Ue,"".concat(ft,"-scroll-horizontal"),Lt),Object(L.a)(Ue,"".concat(ft,"-has-fix-left"),Xn[0]&&Xn[0].fixed),Object(L.a)(Ue,"".concat(ft,"-has-fix-right"),Xn[Xn.length-1]&&Xn[Xn.length-1].fixed==="right"),Ue)),style:_t,id:st,ref:ga},mr),x.createElement(Et,{pingLeft:Ra,pingRight:ka,props:Object(g.a)(Object(g.a)({},Je),{},{stickyOffsets:wt,mergedExpandedKeys:oe})},Fe&&x.createElement(ie,{className:"".concat(ft,"-title")},Fe(Ye)),x.createElement("div",{className:"".concat(ft,"-container")},Mn),We&&x.createElement(ie,{className:"".concat(ft,"-footer")},We(Ye))));Lt&&(Gr=x.createElement(u.a,{onResize:qt},Gr));var Ir=x.useMemo(function(){return{prefixCls:ft,getComponent:Ht,scrollbarSize:jt,direction:Ae,fixedInfoList:Xn.map(function(Gt,Qt){return p(Qt,Qt,Xn,wt,Ae)}),isSticky:pn}},[ft,Ht,jt,Ae,Xn,wt,Ae,pn]),qr=x.useMemo(function(){return Object(g.a)(Object(g.a)({},$r),{},{tableLayout:mn,rowClassName:ht,expandedRowClassName:sn,componentWidth:rn,fixHeader:Wt,fixColumn:Xt,horizonScroll:Lt,expandIcon:jr,expandableType:$n,expandRowByClick:cr,expandedRowRender:xr,onTriggerExpand:Ce,expandIconColumnIndex:yr,indentSize:Tn})},[$r,mn,ht,sn,rn,Wt,Xt,Lt,jr,$n,cr,xr,Ce,yr,Tn]),rr=x.useMemo(function(){return{onColumnResize:Dn}},[Dn]);return x.createElement(s.a.Provider,{value:Ir},x.createElement(F.Provider,{value:qr},x.createElement(ne.Provider,{value:rr},Gr)))}xt.Column=n.a,xt.ColumnGroup=a.a,xt.Summary=we.a,xt.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var St=Y.b=xt},wRmb:function(M,Y,o){"use strict";o.d(Y,"a",function(){return d});var L=o("rePB"),g=o("KQm4"),A=o("VTBJ"),b=o("Ff2n"),y=o("q1tI"),x=o.n(y),w=o("Kwbf"),f=o("Zm9Q"),_=o("hW8S");function d(n){return Object(f.a)(n).filter(function(i){return y.isValidElement(i)}).map(function(i){var h=i.key,l=i.props,s=l.children,p=Object(b.a)(l,["children"]),O=Object(A.a)({key:h},p);return s&&(O.children=d(s)),O})}function r(n){return n.reduce(function(i,h){var l=h.fixed,s=l===!0?"left":l,p=h.children;return p&&p.length>0?[].concat(Object(g.a)(i),Object(g.a)(r(p).map(function(O){return Object(A.a)({fixed:s},O)}))):[].concat(Object(g.a)(i),[Object(A.a)(Object(A.a)({},h),{},{fixed:s})])},[])}function u(n){for(var i=!0,h=0;h<n.length;h+=1){var l=n[h];if(i&&l.fixed!=="left")i=!1;else if(!i&&l.fixed==="left"){Object(w.a)(!1,"Index ".concat(h-1," of `columns` missing `fixed='left'` prop."));break}}for(var s=!0,p=n.length-1;p>=0;p-=1){var O=n[p];if(s&&O.fixed!=="right")s=!1;else if(!s&&O.fixed==="right"){Object(w.a)(!1,"Index ".concat(p+1," of `columns` missing `fixed='right'` prop."));break}}}function t(n){return n.map(function(i){var h=i.fixed,l=Object(b.a)(i,["fixed"]),s=h;return h==="left"?s="right":h==="right"&&(s="left"),Object(A.a)({fixed:s},l)})}function a(n,i){var h=n.prefixCls,l=n.columns,s=n.children,p=n.expandable,O=n.expandedKeys,S=n.getRowKey,v=n.onTriggerExpand,P=n.expandIcon,R=n.rowExpandable,E=n.expandIconColumnIndex,C=n.direction,m=n.expandRowByClick,T=y.useMemo(function(){return l||d(s)},[l,s]),I=y.useMemo(function(){if(p){var z,F=E||0,W=T[F],K=(z={},Object(L.a)(z,_.a,{className:"".concat(h,"-expand-icon-col")}),Object(L.a)(z,"title",""),Object(L.a)(z,"fixed",W?W.fixed:null),Object(L.a)(z,"className","".concat(h,"-row-expand-icon-cell")),Object(L.a)(z,"render",function(G,ne,fe){var de=S(ne,fe),xe=O.has(de),Oe=R?R(ne):!0,ce=P({prefixCls:h,expanded:xe,expandable:Oe,record:ne,onExpand:v});return m?y.createElement("span",{onClick:function(ve){return ve.stopPropagation()}},ce):ce}),z),B=T.slice();return F>=0&&B.splice(F,0,K),B}return T},[p,T,S,O,P,C]),D=y.useMemo(function(){var z=I;return i&&(z=i(z)),z.length||(z=[{render:function(){return null}}]),z},[i,I,C]),N=y.useMemo(function(){return C==="rtl"?t(r(D)):r(D)},[D,C]);return[D,N]}Y.b=a},wZgz:function(M,Y,o){(function(L,g,A){M.exports=Y=g(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(L){return function(){var g=L,A=g.lib,b=A.BlockCipher,y=g.algo,x=[],w=[],f=[],_=[],d=[],r=[],u=[],t=[],a=[],n=[];(function(){for(var l=[],s=0;s<256;s++)s<128?l[s]=s<<1:l[s]=s<<1^283;for(var p=0,O=0,s=0;s<256;s++){var S=O^O<<1^O<<2^O<<3^O<<4;S=S>>>8^S&255^99,x[p]=S,w[S]=p;var v=l[p],P=l[v],R=l[P],E=l[S]*257^S*16843008;f[p]=E<<24|E>>>8,_[p]=E<<16|E>>>16,d[p]=E<<8|E>>>24,r[p]=E;var E=R*16843009^P*65537^v*257^p*16843008;u[S]=E<<24|E>>>8,t[S]=E<<16|E>>>16,a[S]=E<<8|E>>>24,n[S]=E,p?(p=v^l[l[l[R^v]]],O^=l[l[O]]):p=O=1}})();var i=[0,1,2,4,8,16,32,64,128,27,54],h=y.AES=b.extend({_doReset:function(){var l;if(this._nRounds&&this._keyPriorReset===this._key)return;for(var s=this._keyPriorReset=this._key,p=s.words,O=s.sigBytes/4,S=this._nRounds=O+6,v=(S+1)*4,P=this._keySchedule=[],R=0;R<v;R++)R<O?P[R]=p[R]:(l=P[R-1],R%O?O>6&&R%O==4&&(l=x[l>>>24]<<24|x[l>>>16&255]<<16|x[l>>>8&255]<<8|x[l&255]):(l=l<<8|l>>>24,l=x[l>>>24]<<24|x[l>>>16&255]<<16|x[l>>>8&255]<<8|x[l&255],l^=i[R/O|0]<<24),P[R]=P[R-O]^l);for(var E=this._invKeySchedule=[],C=0;C<v;C++){var R=v-C;if(C%4)var l=P[R];else var l=P[R-4];C<4||R<=4?E[C]=l:E[C]=u[x[l>>>24]]^t[x[l>>>16&255]]^a[x[l>>>8&255]]^n[x[l&255]]}},encryptBlock:function(l,s){this._doCryptBlock(l,s,this._keySchedule,f,_,d,r,x)},decryptBlock:function(l,s){var p=l[s+1];l[s+1]=l[s+3],l[s+3]=p,this._doCryptBlock(l,s,this._invKeySchedule,u,t,a,n,w);var p=l[s+1];l[s+1]=l[s+3],l[s+3]=p},_doCryptBlock:function(l,s,p,O,S,v,P,R){for(var E=this._nRounds,C=l[s]^p[0],m=l[s+1]^p[1],T=l[s+2]^p[2],I=l[s+3]^p[3],D=4,N=1;N<E;N++){var z=O[C>>>24]^S[m>>>16&255]^v[T>>>8&255]^P[I&255]^p[D++],F=O[m>>>24]^S[T>>>16&255]^v[I>>>8&255]^P[C&255]^p[D++],W=O[T>>>24]^S[I>>>16&255]^v[C>>>8&255]^P[m&255]^p[D++],K=O[I>>>24]^S[C>>>16&255]^v[m>>>8&255]^P[T&255]^p[D++];C=z,m=F,T=W,I=K}var z=(R[C>>>24]<<24|R[m>>>16&255]<<16|R[T>>>8&255]<<8|R[I&255])^p[D++],F=(R[m>>>24]<<24|R[T>>>16&255]<<16|R[I>>>8&255]<<8|R[C&255])^p[D++],W=(R[T>>>24]<<24|R[I>>>16&255]<<16|R[C>>>8&255]<<8|R[m&255])^p[D++],K=(R[I>>>24]<<24|R[C>>>16&255]<<16|R[m>>>8&255]<<8|R[T&255])^p[D++];l[s]=z,l[s+1]=F,l[s+2]=W,l[s+3]=K},keySize:256/32});g.AES=b._createHelper(h)}(),L.AES})},wbyO:function(M,Y,o){(function(L,g){M.exports=Y=g(o("Ib8C"))})(this,function(L){return function(){var g=L,A=g.lib,b=A.WordArray,y=g.enc,x=y.Base64url={stringify:function(f,_=!0){var d=f.words,r=f.sigBytes,u=_?this._safe_map:this._map;f.clamp();for(var t=[],a=0;a<r;a+=3)for(var n=d[a>>>2]>>>24-a%4*8&255,i=d[a+1>>>2]>>>24-(a+1)%4*8&255,h=d[a+2>>>2]>>>24-(a+2)%4*8&255,l=n<<16|i<<8|h,s=0;s<4&&a+s*.75<r;s++)t.push(u.charAt(l>>>6*(3-s)&63));var p=u.charAt(64);if(p)for(;t.length%4;)t.push(p);return t.join("")},parse:function(f,_=!0){var d=f.length,r=_?this._safe_map:this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var t=0;t<r.length;t++)u[r.charCodeAt(t)]=t}var a=r.charAt(64);if(a){var n=f.indexOf(a);n!==-1&&(d=n)}return w(f,d,u)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function w(f,_,d){for(var r=[],u=0,t=0;t<_;t++)if(t%4){var a=d[f.charCodeAt(t-1)]<<t%4*2,n=d[f.charCodeAt(t)]>>>6-t%4*2,i=a|n;r[u>>>2]|=i<<24-u%4*8,u++}return b.create(r,u)}}(),L.enc.Base64url})},xiVL:function(M,Y){M.exports="data:image/png;base64,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"},xrsn:function(M,Y,o){M.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",dropDown:"dropDown___3Phxo",line:"line___3lQ2g",subName:"subName___3sqtP",name:"name___1Odvx",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(M,Y,o){"use strict";o.d(Y,"a",function(){return r}),o.d(Y,"b",function(){return t});var L=/margin|padding|width|height|max|min|offset/,g={left:!0,top:!0},A={cssFloat:1,styleFloat:1,float:1};function b(a){return a.nodeType===1?a.ownerDocument.defaultView.getComputedStyle(a,null):{}}function y(a,n,i){if(n=n.toLowerCase(),i==="auto"){if(n==="height")return a.offsetHeight;if(n==="width")return a.offsetWidth}return n in g||(g[n]=L.test(n)),g[n]?parseFloat(i)||0:i}function x(a,n){var i=arguments.length,h=b(a);return n=A[n]?"cssFloat"in a.style?"cssFloat":"styleFloat":n,i===1?h:y(a,n,h[n]||a.style[n])}function w(a,n,i){var h=arguments.length;if(n=A[n]?"cssFloat"in a.style?"cssFloat":"styleFloat":n,h===3)return typeof i=="number"&&L.test(n)&&(i="".concat(i,"px")),a.style[n]=i,i;for(var l in n)n.hasOwnProperty(l)&&w(a,l,n[l]);return b(a)}function f(a){return a===document.body?document.documentElement.clientWidth:a.offsetWidth}function _(a){return a===document.body?window.innerHeight||document.documentElement.clientHeight:a.offsetHeight}function d(){var a=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),n=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:a,height:n}}function r(){var a=document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight;return{width:a,height:n}}function u(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function t(a){var n=a.getBoundingClientRect(),i=document.documentElement;return{left:n.left+(window.pageXOffset||i.scrollLeft)-(i.clientLeft||document.body.clientLeft||0),top:n.top+(window.pageYOffset||i.scrollTop)-(i.clientTop||document.body.clientTop||0)}}},yDYP:function(M,Y,o){M.exports={flex_box_center:"flex_box_center___1ns9C",flex_space_between:"flex_space_between___CtYWo",flex_box_vertical_center:"flex_box_vertical_center___1BY1r",flex_box_center_end:"flex_box_center_end___1f_qK",flex_box_column:"flex_box_column___vKDYT",commitWrap:"commitWrap___3D8wo",wrap:"wrap___3FqEy",colorGray:"colorGray___cRpZO",content:"content___3lBLc",itemTime:"itemTime___Tgw2b",imageUrl:"imageUrl___2Lb2n",blueLight:"blueLight___1hcIr",divider:"divider___3FYHo",empty:"empty___oYMsw"}},"yTi+":function(M,Y,o){M.exports=o.p+"static/AssistantCode3.fdd8db3c.jpeg"},ygoZ:function(M,Y){M.exports="data:image/png;base64,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"},yslc:function(M,Y){M.exports="data:image/png;base64,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"},z4EP:function(M,Y){M.exports="data:image/png;base64,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"}}]);