|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[240,3,5,6,7,8,9,10,13,20,247],{"+GGh":function(k,z){k.exports="data:image/png;base64,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"},"+NIl":function(k,z,o){(function(P){P(o("VrN/"))})(function(P){"use strict";P.defineMode("stex",function(g,T){"use strict";function b(i,n){i.cmdState.push(n)}function y(i){return i.cmdState.length>0?i.cmdState[i.cmdState.length-1]:null}function x(i){var n=i.cmdState.pop();n&&n.closeBracket()}function O(i){for(var n=i.cmdState,l=n.length-1;l>=0;l--){var h=n[l];if(h.name=="DEFAULT")continue;return h}return{styleIdentifier:function(){return null}}}function m(i,n,l){return function(){this.name=i,this.bracketNo=0,this.style=n,this.styles=l,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var e={};e.importmodule=m("importmodule","tag",["string","builtin"]),e.documentclass=m("documentclass","tag",["","atom"]),e.usepackage=m("usepackage","tag",["atom"]),e.begin=m("begin","tag",["atom"]),e.end=m("end","tag",["atom"]),e.label=m("label","tag",["atom"]),e.ref=m("ref","tag",["atom"]),e.eqref=m("eqref","tag",["atom"]),e.cite=m("cite","tag",["atom"]),e.bibitem=m("bibitem","tag",["atom"]),e.Bibitem=m("Bibitem","tag",["atom"]),e.RBibitem=m("RBibitem","tag",["atom"]),e.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function f(i,n){i.f=n}function a(i,n){var l;if(i.match(/^\\[a-zA-Z@]+/)){var h=i.current().slice(1);return l=e.hasOwnProperty(h)?e[h]:e.DEFAULT,l=new l,b(n,l),f(n,r),l.style}if(i.match(/^\\[$&%#{}_]/))return"tag";if(i.match(/^\\[,;!\/\\]/))return"tag";if(i.match("\\["))return f(n,function(s,c){return u(s,c,"\\]")}),"keyword";if(i.match("\\("))return f(n,function(s,c){return u(s,c,"\\)")}),"keyword";if(i.match("$$"))return f(n,function(s,c){return u(s,c,"$$")}),"keyword";if(i.match("$"))return f(n,function(s,c){return u(s,c,"$")}),"keyword";var d=i.next();if(d=="%")return i.skipToEnd(),"comment";if(d=="}"||d=="]"){if(l=y(n),l)l.closeBracket(d),f(n,r);else return"error";return"bracket"}else return d=="{"||d=="["?(l=e.DEFAULT,l=new l,b(n,l),"bracket"):/\d/.test(d)?(i.eatWhile(/[\w.%]/),"atom"):(i.eatWhile(/[\w\-_]/),l=O(n),l.name=="begin"&&(l.argument=i.current()),l.styleIdentifier())}function u(i,n,l){if(i.eatSpace())return null;if(l&&i.match(l))return f(n,a),"keyword";if(i.match(/^\\[a-zA-Z@]+/))return"tag";if(i.match(/^[a-zA-Z]+/))return"variable-2";if(i.match(/^\\[$&%#{}_]/))return"tag";if(i.match(/^\\[,;!\/]/))return"tag";if(i.match(/^[\^_&]/))return"tag";if(i.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(i.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var h=i.next();return h=="{"||h=="}"||h=="["||h=="]"||h=="("||h==")"?"bracket":h=="%"?(i.skipToEnd(),"comment"):"error"}function r(i,n){var l=i.peek(),h;return l=="{"||l=="["?(h=y(n),h.openBracket(l),i.eat(l),f(n,a),"bracket"):/[ \t\r]/.test(l)?(i.eat(l),null):(f(n,a),x(n),a(i,n))}return{startState:function(){var i=T.inMathMode?function(n,l){return u(n,l)}:a;return{cmdState:[],f:i}},copyState:function(i){return{cmdState:i.cmdState.slice(),f:i.f}},token:function(i,n){return n.f(i,n)},blankLine:function(i){i.f=a,i.cmdState.length=0},lineComment:"%"}}),P.defineMIME("text/x-stex","stex"),P.defineMIME("text/x-latex","stex")})},"+QRC":function(k,z,o){"use strict";var P=o("E9nw"),g={"text/plain":"Text","text/html":"Url",default:"Text"},T="Copy to clipboard: #{key}, Enter";function b(x){var O=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return x.replace(/#{\s*key\s*}/g,O)}function y(x,O){var m,e,f,a,u,r,i=!1;O||(O={}),m=O.debug||!1;try{f=P(),a=document.createRange(),u=document.getSelection(),r=document.createElement("span"),r.textContent=x,r.style.all="unset",r.style.position="fixed",r.style.top=0,r.style.clip="rect(0, 0, 0, 0)",r.style.whiteSpace="pre",r.style.webkitUserSelect="text",r.style.MozUserSelect="text",r.style.msUserSelect="text",r.style.userSelect="text",r.addEventListener("copy",function(l){if(l.stopPropagation(),O.format)if(l.preventDefault(),typeof l.clipboardData=="undefined"){m&&console.warn("unable to use e.clipboardData"),m&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var h=g[O.format]||g.default;window.clipboardData.setData(h,x)}else l.clipboardData.clearData(),l.clipboardData.setData(O.format,x);O.onCopy&&(l.preventDefault(),O.onCopy(l.clipboardData))}),document.body.appendChild(r),a.selectNodeContents(r),u.addRange(a);var n=document.execCommand("copy");if(!n)throw new Error("copy command was unsuccessful");i=!0}catch(l){m&&console.error("unable to copy using execCommand: ",l),m&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(O.format||"text",x),O.onCopy&&O.onCopy(window.clipboardData),i=!0}catch(h){m&&console.error("unable to copy using clipboardData: ",h),m&&console.error("falling back to prompt"),e=b("message"in O?O.message:T),window.prompt(e,x)}}finally{u&&(typeof u.removeRange=="function"?u.removeRange(a):u.removeAllRanges()),r&&document.body.removeChild(r),f()}return i}k.exports=y},"+Xk9":function(k,z,o){k.exports={btn:"btn___2veY9",s1:"s1___ZVDC_",s2:"s2___2Da-A"}},"+ua5":function(k,z,o){},"/GNS":function(k,z,o){k.exports=o.p+"static/search1.c4136dd4.png"},"/cxE":function(k,z,o){"use strict";o.d(z,"f",function(){return T}),o.d(z,"g",function(){return b}),o.d(z,"h",function(){return y}),o.d(z,"e",function(){return O}),o.d(z,"b",function(){return m}),o.d(z,"c",function(){return e}),o.d(z,"d",function(){return f}),o.d(z,"a",function(){return a});class P{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(u){setTimeout(()=>{throw u.stack?new Error(u.message+`
|
|
|
|
|
|
`+u.stack):u},0)}}emit(u){this.listeners.forEach(r=>{r(u)})}onUnexpectedError(u){this.unexpectedErrorHandler(u),this.emit(u)}onUnexpectedExternalError(u){this.unexpectedErrorHandler(u)}}const g=new P;function T(u){O(u)||g.onUnexpectedError(u);return}function b(u){O(u)||g.onUnexpectedExternalError(u);return}function y(u){if(u instanceof Error){let{name:r,message:i}=u;const n=u.stacktrace||u.stack;return{$isError:!0,name:r,message:i,stack:n}}return u}const x="Canceled";function O(u){return u instanceof Error&&u.name===x&&u.message===x}function m(){const u=new Error(x);return u.name=u.message,u}function e(u){return u?new Error(`Illegal argument: ${u}`):new Error("Illegal argument")}function f(u){return u?new Error(`Illegal state: ${u}`):new Error("Illegal state")}class a extends Error{constructor(u){super("NotSupported");u&&(this.message=u)}}},"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(z){if(!z)return z;var o=z.split(":");if(o[1]=="00"||o[1]=="30")return z;var P=parseInt(o[1]);if(P<30||P==60)return[o[0],"30"].join(":");if(P<60){var g=[o[0],"00"].join(":"),T="YYYY-MM-DD HH:mm",b=moment__WEBPACK_IMPORTED_MODULE_42___default()(g,T);return b.add(1,"hours"),b.format(T)}return z},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 k=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 z(o){var P;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(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,dispatch({type:"shixunsDetail/getDepartments",payload:{q:o}});case 2:P=T.sent,P&&setDepartmentList(P.shools_name||[]);case 4:case"end":return T.stop()}},z)}));return function(o){return k.apply(this,arguments)}}();Object(react__WEBPACK_IMPORTED_MODULE_38__.useEffect)(function(){var k,z;(k=shixunsDetail.setting)!==null&&k!==void 0&&(z=k.shixun)!==null&&z!==void 0&&z.main_type&&handleInitState()},[shixunsDetail.setting]),Object(react__WEBPACK_IMPORTED_MODULE_38__.useEffect)(function(){var k,z;dispatch({type:"shixunsDetail/getSettingsData",payload:params}),shixunId.current=(k=location.pathname)===null||k===void 0||((z=k.split("/"))===null||z===void 0)?void 0:z[2]},[]);var handleSelectDepartment=function(z){if(selectDepartmentList.includes(z)){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),[z]))};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 k(){var z;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(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,Object(_utils_fetch__WEBPACK_IMPORTED_MODULE_53__.a)("/api/shixuns/".concat(shixunId.current,"/required_status"),{method:"get",params:{}});case 2:z=P.sent,z&&setCreateTitle(z==null?void 0:z.data);case 4:case"end":return P.stop()}},k)})),_getRequiredStatus.apply(this,arguments)}var handleChangeSeviceConfig=function(z,o,P){var g=serviceConfigList.map(function(T,b){return b===P?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)({},T),{},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,z)):T});setServiceConfigList(g)},handleInitState=function(){var z,o,P,g,T,b,y,x,O,m,e,f,a,u,r,i,n,l,h,d,s,c,w,E,v,R,M,C,S,_,A,U,L,N,V,H,D,W,F,I,K,ee,he,de,Se,Te,ce,be,Ee,ue,le,$,me,re,ae,Oe,se,te,Q,J,ve,_e,Ae,Qe,tt,dt,mt,vt=(shixunsDetail==null||((z=shixunsDetail.setting)===null||z===void 0)?void 0:z.shixun)||{},yt=vt.choice_main_type,Ye=vt.main_type,Ue=vt.small_type,ft=vt.choice_small_type,jt=vt.is_secret_repository,bt=vt.standard_scripts,Pt=vt.evaluate_script,it=vt.shixun_service_configs;if(setEvaluateScript(Pt),setServiceConfigList(it),setStandardScripts(bt||[]),setWindowVNCTemplate((o=shixunsDetail.setting)===null||o===void 0||((P=o.shixun)===null||P===void 0)?void 0:P.windows_start_template),setWebsshCloud((g=shixunsDetail.setting)===null||g===void 0||((T=g.shixun)===null||T===void 0)?void 0:T.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||((O=x.shixun)===null||O===void 0)?void 0:O.virtual_machine),setLinuxVNC((m=shixunsDetail.setting)===null||m===void 0||((e=m.shixun)===null||e===void 0)?void 0:e.linux_vnc),setWindowsConnectionMode(((f=shixunsDetail.setting)===null||f===void 0||((a=f.shixun)===null||a===void 0)?void 0:a.windows_connection_mode)||"vnc"),setVNC((u=shixunsDetail.setting)===null||u===void 0||((r=u.shixun)===null||r===void 0)?void 0:r.vnc),setWebsshShow(!!((i=shixunsDetail.setting)!==null&&i!==void 0&&(n=i.shixun)!==null&&n!==void 0&&n.webssh)),setSshRadioValue((l=shixunsDetail.setting)===null||l===void 0||((h=l.shixun)===null||h===void 0)?void 0:h.webssh),setMultiWebssh((d=shixunsDetail.setting)===null||d===void 0||((s=d.shixun)===null||s===void 0)?void 0:s.multi_webssh),setHideCode((c=shixunsDetail.setting)===null||c===void 0||((w=c.shixun)===null||w===void 0)?void 0:w.hide_code),setCodeEditPermission((E=shixunsDetail.setting)===null||E===void 0||((v=E.shixun)===null||v===void 0)?void 0:v.code_edit_permission),setCodeHidden((R=shixunsDetail.setting)===null||R===void 0||((M=R.shixun)===null||M===void 0)?void 0:M.show_code_dir),setForbidCopy((C=shixunsDetail.setting)===null||C===void 0||((S=C.shixun)===null||S===void 0)?void 0:S.forbid_copy),setTaskPass((_=shixunsDetail.setting)===null||_===void 0||((A=_.shixun)===null||A===void 0)?void 0:A.task_pass),setTestSetPermission((U=shixunsDetail.setting)===null||U===void 0||((L=U.shixun)===null||L===void 0)?void 0:L.test_set_permission),set_display_git_address((N=shixunsDetail.setting.shixun)===null||N===void 0?void 0:N.display_git_address),setIsCopy((V=shixunsDetail.setting)===null||V===void 0||((H=V.shixun)===null||H===void 0)?void 0:H.can_copy),setOpenValue((D=shixunsDetail.setting)===null||D===void 0||((W=D.shixun)===null||W===void 0)?void 0:W.use_scope),setIsOpenTime(!!((F=shixunsDetail.setting)!==null&&F!==void 0&&(I=F.shixun)!==null&&I!==void 0&&I.opening_time)),setOpenTime((K=shixunsDetail.setting)===null||K===void 0||((ee=K.shixun)===null||ee===void 0)?void 0:ee.opening_time),setSelectDepartmentList((he=shixunsDetail.setting)===null||he===void 0||((de=he.shixun)===null||de===void 0)?void 0:de.scope_partment),setevaluationScript((Se=shixunsDetail.setting)===null||Se===void 0||((Te=Se.shixun)===null||Te===void 0)?void 0:Te.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((Ee=shixunsDetail.setting)===null||Ee===void 0||((ue=Ee.shixun)===null||ue===void 0)?void 0:ue.terminal_count),setSurvivalTime((le=shixunsDetail.setting)===null||le===void 0||(($=le.shixun)===null||$===void 0)?void 0:$.survival_time),(shixunsDetail==null||((me=shixunsDetail.setting)===null||me===void 0||((re=me.shixun)===null||re===void 0||((ae=re.shixun_virtual_templates)===null||ae===void 0)))?void 0:ae.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((Oe=shixunsDetail.setting)===null||Oe===void 0||((se=Oe.shixun)===null||se===void 0)?void 0:se.port_mapping),(te=shixunsDetail.setting)!==null&&te!==void 0&&(Q=te.shixun)!==null&&Q!==void 0&&Q.windows_vnc||(J=shixunsDetail.setting)!==null&&J!==void 0&&(ve=J.shixun)!==null&&ve!==void 0&&ve.linux_vnc||(_e=shixunsDetail.setting)!==null&&_e!==void 0&&(Ae=_e.shixun)!==null&&Ae!==void 0&&Ae.vnc||(Qe=shixunsDetail.setting)!==null&&Qe!==void 0&&(tt=Qe.shixun)!==null&&tt!==void 0&&tt.virtual_machine?(setIsRadiuValue(5),setRemote(!0)):(dt=shixunsDetail.setting)!==null&&dt!==void 0&&(mt=dt.shixun)!==null&&mt!==void 0&&mt.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(k,z){var o,P;k!=((o=shixunsDetail.setting)===null||o===void 0||((P=o.shixun)===null||P===void 0)?void 0:P.scope_partment[z])&&(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(k,z){var o,P,g,T,b,y,x,O,m,e,f,a;(k==null?void 0:k.cpu_limit)!=((o=shixunsDetail.setting)===null||o===void 0||((P=o.shixun)===null||P===void 0||((g=P.shixun_service_configs[z])===null||g===void 0))?void 0:g.cpu_limit)&&(confirmLeave=!0),(k==null?void 0:k.lower_cpu_limit)!=((T=shixunsDetail.setting)===null||T===void 0||((b=T.shixun)===null||b===void 0||((y=b.shixun_service_configs[z])===null||y===void 0))?void 0:y.lower_cpu_limit)&&(confirmLeave=!0),(k==null?void 0:k.memory_limit)!=((x=shixunsDetail.setting)===null||x===void 0||((O=x.shixun)===null||O===void 0||((m=O.shixun_service_configs[z])===null||m===void 0))?void 0:m.memory_limit)&&(confirmLeave=!0),(k==null?void 0:k.request_limit)!=((e=shixunsDetail.setting)===null||e===void 0||((f=e.shixun)===null||f===void 0||((a=f.shixun_service_configs[z])===null||a===void 0))?void 0:a.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 k(){var z,o,P,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=(z=shixunsDetail.detail)===null||z===void 0?void 0:z.is_jupyter,P=!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"),P=!0;return}})),!P){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()}},k)})),_handSubmeit.apply(this,arguments)}var handleChangeEvaluationScript=function(z){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(z);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 P(){return o.apply(this,arguments)}return P}()})},handleGetScriptContent=function(){var k=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 z(o){var P;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(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,dispatch({type:"shixunsDetail/getScriptContent",payload:{id:shixunId.current,script_id:o}});case 2:P=T.sent,P&&setEvaluateScript(P.content);case 4:case"end":return T.stop()}},z)}));return function(o){return k.apply(this,arguments)}}(),handleDeleteShixun=function(){var k=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 z(){var o,P,g,T,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(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,dispatch({type:"shixunsDetail/getShixunQuote",payload:{id:shixunId.current}});case 2:if(m.t0=m.sent,m.t0){m.next=5;break}m.t0={};case 5:x=m.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"," ",(P=x.subjects)===null||P===void 0||((g=P.splice(0,2))===null||g===void 0)?void 0:g.map(function(e){return"\u300A".concat(e,"\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)),!!((T=x.courses)!==null&&T!==void 0&&T.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(e){return"\u300A".concat(e,"\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 e=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 a(){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(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,dispatch({type:"shixunsDetail/deleteShixun",payload:{id:shixunId.current}});case 2:u=i.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 i.stop()}},a)}));function f(){return e.apply(this,arguments)}return f}()});case 7:case"end":return m.stop()}},z)}));return function(){return k.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(k){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(k),parseInt(k)===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(z){var o;if(practiceSetting!=null&&(o=practiceSetting.sideBar)!==null&&o!==void 0&&o.confirmLeave){showExitmodel(z.key);return}setMenuSelectKey(z.key),parseInt(z.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(z){return setTaskPass(z.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(z){return setTestSetPermission(z.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(z){return setIsCopy(z.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(z){return setOpenValue(z.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(z){setDepartmentValue(z),handleGetDepartments(z)},disabled:!editable,onSelect:handleSelectDepartment,options:departmentList==null?void 0:departmentList.map(function(k){return{value:k}})})),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"mt10"},selectDepartmentList==null?void 0:selectDepartmentList.map(function(k){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!==k}))}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_23__.a,{type:"primary",ghost:!0},k)):react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_23__.a,{type:"primary",ghost:!0,className:"mr20"},k)}))))),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(z){setIsOpenTime(z.target.checked),z.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(z){return z&&z<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(z,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(z){var o=z.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(z){setHideCode(z.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(z){return setport(z.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(z){var o=z.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(z){var o,P,g,T,b,y,x,O,m,e;if(setIsRadiuValue(z.target.value),setSshRadioValue(1),setport(!1),z.target.value===3&&((o=shixunsDetail.setting)===null||o===void 0||((P=o.shixun)===null||P===void 0)?void 0:P.webssh)===2&&!((g=shixunsDetail.setting)!==null&&g!==void 0&&(T=g.shixun)!==null&&T!==void 0&&T.vnc)){var f,a;setport((f=shixunsDetail.setting)===null||f===void 0||((a=f.shixun)===null||a===void 0)?void 0:a.port_mapping)}if(z.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&&(O=x.shixun)!==null&&O!==void 0&&O.windows_vnc)&&(m=shixunsDetail.setting)!==null&&m!==void 0&&(e=m.shixun)!==null&&e!==void 0&&e.vnc){var u,r;setport((u=shixunsDetail.setting)===null||u===void 0||((r=u.shixun)===null||r===void 0)?void 0:r.port_mapping)}z.target.value===1?(setVNC(!1),setLinuxVNC(!1),setWebsshShow(!1),setWindowVNC(!1)):z.target.value===2?(setWindowVNC(!1),setLinuxVNC(!1),setHideCode(!1),setCodeEditPermission(!1),setCodeHidden(!1),setForbidCopy(!1),setMultiWebssh(!1),setWebsshShow(!1),setVNC(!0)):z.target.value===3?(setVNC(!1),setWebsshShow(!0),setWindowVNC(!1),setLinuxVNC(!1),setSshRadioValue(2),setshixun_virtual_templates([]),setVirtualMachine(!1)):z.target.value===4?(setHideCode(!1),setCodeEditPermission(!1),setCodeHidden(!1),setForbidCopy(!1),setMultiWebssh(!1),setWebsshShow(!1),setVNC(!1)):z.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(z){var o,P,g,T,b,y,x=z.target.value;if(setport(!1),x===1&&((o=shixunsDetail.setting)===null||o===void 0||((P=o.shixun)===null||P===void 0)?void 0:P.webssh)===1){var O,m;setport((O=shixunsDetail.setting)===null||O===void 0||((m=O.shixun)===null||m===void 0)?void 0:m.port_mapping)}else if(x===2&&((g=shixunsDetail.setting)===null||g===void 0||((T=g.shixun)===null||T===void 0)?void 0:T.webssh)===2){var e,f;setport((e=shixunsDetail.setting)===null||e===void 0||((f=e.shixun)===null||f===void 0)?void 0:f.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 a,u,r,i;setWebsshCloud((a=shixunsDetail.setting)===null||a===void 0||((u=a.shixun)===null||u===void 0)?void 0:u.webssh_cloud),setWindowVNCTemplate((r=shixunsDetail.setting)===null||r===void 0||((i=r.shixun)===null||i===void 0)?void 0:i.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(z){return setMultiWebssh(z.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(z){return setport(z.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(z){return setport(z.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(z){return setWindowVNCTemplate(z.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(z){setterminal_count(z)},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(z){var o,P,g,T,b,y,x,O,m,e=z.target.value;if(setWindowVNCTemplate(""),setport(!1),e==="linux_vnc"&&(o=shixunsDetail.setting)!==null&&o!==void 0&&(P=o.shixun)!==null&&P!==void 0&&P.linux_vnc){var f,a;setWindowVNCTemplate((f=shixunsDetail.setting)===null||f===void 0||((a=f.shixun)===null||a===void 0)?void 0:a.windows_start_template)}else if(e==="windows_vnc"&&(g=shixunsDetail.setting)!==null&&g!==void 0&&(T=g.shixun)!==null&&T!==void 0&&T.windows_vnc){var u,r;setWindowVNCTemplate((u=shixunsDetail.setting)===null||u===void 0||((r=u.shixun)===null||r===void 0)?void 0:r.windows_start_template)}else if(e==="virtual_machine"&&(b=shixunsDetail.setting)!==null&&b!==void 0&&(y=b.shixun)!==null&&y!==void 0&&y.virtual_machine){var i,n;setWindowVNCTemplate((i=shixunsDetail.setting)===null||i===void 0||((n=i.shixun)===null||n===void 0)?void 0:n.windows_start_template)}else{var l,h,d,s,c,w;e==="linux"&&!((l=shixunsDetail.setting)!==null&&l!==void 0&&(h=l.shixun)!==null&&h!==void 0&&h.linux_vnc)&&!((d=shixunsDetail.setting)!==null&&d!==void 0&&(s=d.shixun)!==null&&s!==void 0&&s.windows_vnc)&&setport((c=shixunsDetail.setting)===null||c===void 0||((w=c.shixun)===null||w===void 0)?void 0:w.port_mapping)}switch(e){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||((O=x.shixun)===null||O===void 0||((m=O.shixun_virtual_templates)===null||m===void 0)))?void 0:m.length)>0){var E,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||((E=shixunsDetail.setting)===null||E===void 0||((v=E.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(z){return setport(z.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(z){return setWindowVNCTemplate(z.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(z){return setWindowVNCTemplate(z.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(z){return setWindowsConnectionMode(z)}},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(k,z){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:k==null?void 0:k.template_name,onChange:function(P){k.template_name=P.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:k==null?void 0:k.template_identity,onChange:function(P){k.template_identity=P.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 P={};P.template_name="",P.template_identity="",shixun_virtual_templates.push(P),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))}}),z!=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(z,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(z){return set_display_git_address(z.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(z){return setCodeHidden(z.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(z){return setCodeEditPermission(z.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(z){return setForbidCopy(z.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(z){return setSurvivalTime(z)}}),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(z){handleChangeEvaluationScript(z),setevaluationScript(z)}},(standardScriptList||[]).map(function(k,z){return react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(Option,{value:parseInt(k.id),name:k.scptname,key:z},k.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(z){return setEvaluateScript(z)}})),((_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(k,z){var o,P,g,T,b,y,x,O;return react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{key:z},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"font16"},k.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:k.cpu_limit,disabled:((o=shixunsDetail.setting)===null||o===void 0||((P=o.shixun)===null||P===void 0)?void 0:P.status)===2?!0:!editable,onChange:function(e){return handleChangeSeviceConfig(e.target.value,"cpu_limit",z)}})),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:k.lower_cpu_limit,disabled:((g=shixunsDetail.setting)===null||g===void 0||((T=g.shixun)===null||T===void 0)?void 0:T.status)===2?!0:!editable,onChange:function(e){return handleChangeSeviceConfig(e.target.value,"lower_cpu_limit",z)}})),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:k.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(e){return handleChangeSeviceConfig(e.target.value,"memory_limit",z)}})),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:k.request_limit,disabled:((x=shixunsDetail.setting)===null||x===void 0||((O=x.shixun)===null||O===void 0)?void 0:O.status)===2?!0:!editable,onChange:function(e){return handleChangeSeviceConfig(e.target.value,"request_limit",z)}}),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(z){return setDisableDiscuss(!z)}}),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(z){return setEvaluateScript(z)}}))}__webpack_exports__.a=Object(umi__WEBPACK_IMPORTED_MODULE_40__.a)(function(k){var z=k.user,o=k.shixunsDetail,P=k.practiceSetting;return{user:z,shixunsDetail:o,practiceSetting:P}})(Setting)},"19Vz":function(k,z,o){(function(P){P(o("VrN/"))})(function(P){P.defineOption("placeholder","",function(m,e,f){var a=f&&f!=P.Init;if(e&&!a)m.on("blur",y),m.on("change",x),m.on("swapDoc",x),P.on(m.getInputField(),"compositionupdate",m.state.placeholderCompose=function(){b(m)}),x(m);else if(!e&&a){m.off("blur",y),m.off("change",x),m.off("swapDoc",x),P.off(m.getInputField(),"compositionupdate",m.state.placeholderCompose),g(m);var u=m.getWrapperElement();u.className=u.className.replace(" CodeMirror-empty","")}e&&!m.hasFocus()&&y(m)});function g(m){m.state.placeholder&&(m.state.placeholder.parentNode.removeChild(m.state.placeholder),m.state.placeholder=null)}function T(m){g(m);var e=m.state.placeholder=document.createElement("pre");e.style.cssText="height: 0; overflow: visible",e.style.direction=m.getOption("direction"),e.className="CodeMirror-placeholder CodeMirror-line-like";var f=m.getOption("placeholder");typeof f=="string"&&(f=document.createTextNode(f)),e.appendChild(f),m.display.lineSpace.insertBefore(e,m.display.lineSpace.firstChild)}function b(m){setTimeout(function(){var e=!1,f=m.getInputField();f.nodeName=="TEXTAREA"?e=!f.value:m.lineCount()==1&&(e=!/[^\u200b]/.test(f.querySelector(".CodeMirror-line").textContent)),e?T(m):g(m)},20)}function y(m){O(m)&&T(m)}function x(m){var e=m.getWrapperElement(),f=O(m);e.className=e.className.replace(" CodeMirror-empty","")+(f?" CodeMirror-empty":""),f?T(m):g(m)}function O(m){return m.lineCount()===1&&m.getLine(0)===""}})},"1Sn+":function(k,z,o){},"1XHU":function(k,z,o){"use strict";var P=o("2qtc"),g=o("kLXV"),T=o("q1tI"),b=o.n(T),y=o("9kvl"),x=o("3wET"),O=o.n(x),m=o("bUJZ"),e=o.n(m),f=o("Ct/S"),a=o.n(f),u=function(i){var n=i.visible,l=i.occupationValue,h=i.onCancel,d=h===void 0?function(){}:h,s=function(){return b.a.createElement("div",{className:a.a.flexColumn},b.a.createElement("img",{className:a.a.img,src:e.a}),b.a.createElement("span",{className:a.a.content},"\u672A\u804C\u4E1A\u8BA4\u8BC1"))},c=function(){return b.a.createElement("div",{className:a.a.flexColumn},b.a.createElement("img",{className:a.a.img,src:O.a}),b.a.createElement("span",{className:a.a.content},"\u672A\u5B9E\u540D\u8BA4\u8BC1"))},w=function(){return l===3?b.a.createElement(b.a.Fragment,null,c(),s()):l===2?s():c()};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(){d(),y.d.push("/account/certification")},onCancel:function(){d()}},b.a.createElement("div",{className:a.a.tilte},"\u8BF7\u5728\u5B8C\u6210\u6761\u4EF6\u540E\u91CD\u8BD5"),b.a.createElement("div",{className:a.a.flexRow},w()))};z.a=Object(y.a)(function(r){var i=r.paperlibrary,n=r.loading,l=r.globalSetting;return{paperlibrary:i,globalSetting:l,loading:n.effects}})(u)},"1ZF9":function(k,z,o){k.exports=o.p+"static/Authorize.cc9c212f.png"},"1eCo":function(k,z,o){(function(P){P(o("VrN/"))})(function(P){"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},T={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};P.defineMode("xml",function(b,y){var x=b.indentUnit,O={},m=y.htmlMode?g:T;for(var e in m)O[e]=m[e];for(var e in y)O[e]=y[e];var f,a;function u(A,U){function L(H){return U.tokenize=H,H(A,U)}var N=A.next();if(N=="<")return A.eat("!")?A.eat("[")?A.match("CDATA[")?L(n("atom","]]>")):null:A.match("--")?L(n("comment","-->")):A.match("DOCTYPE",!0,!0)?(A.eatWhile(/[\w\._\-]/),L(l(1))):null:A.eat("?")?(A.eatWhile(/[\w\._\-]/),U.tokenize=n("meta","?>"),"meta"):(f=A.eat("/")?"closeTag":"openTag",U.tokenize=r,"tag bracket");if(N=="&"){var V;return A.eat("#")?A.eat("x")?V=A.eatWhile(/[a-fA-F\d]/)&&A.eat(";"):V=A.eatWhile(/[\d]/)&&A.eat(";"):V=A.eatWhile(/[\w\.\-:]/)&&A.eat(";"),V?"atom":"error"}else return A.eatWhile(/[^&<]/),null}u.isInText=!0;function r(A,U){var L=A.next();if(L==">"||L=="/"&&A.eat(">"))return U.tokenize=u,f=L==">"?"endTag":"selfcloseTag","tag bracket";if(L=="=")return f="equals",null;if(L=="<"){U.tokenize=u,U.state=c,U.tagName=U.tagStart=null;var N=U.tokenize(A,U);return N?N+" tag error":"tag error"}else return/[\'\"]/.test(L)?(U.tokenize=i(L),U.stringStartCol=A.column(),U.tokenize(A,U)):(A.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function i(A){var U=function(L,N){for(;!L.eol();)if(L.next()==A){N.tokenize=r;break}return"string"};return U.isInAttribute=!0,U}function n(A,U){return function(L,N){for(;!L.eol();){if(L.match(U)){N.tokenize=u;break}L.next()}return A}}function l(A){return function(U,L){for(var N;(N=U.next())!=null;){if(N=="<")return L.tokenize=l(A+1),L.tokenize(U,L);if(N==">")if(A==1){L.tokenize=u;break}else return L.tokenize=l(A-1),L.tokenize(U,L)}return"meta"}}function h(A,U,L){this.prev=A.context,this.tagName=U,this.indent=A.indented,this.startOfLine=L,(O.doNotIndent.hasOwnProperty(U)||A.context&&A.context.noIndent)&&(this.noIndent=!0)}function d(A){A.context&&(A.context=A.context.prev)}function s(A,U){for(var L;;){if(!A.context)return;if(L=A.context.tagName,!O.contextGrabbers.hasOwnProperty(L)||!O.contextGrabbers[L].hasOwnProperty(U))return;d(A)}}function c(A,U,L){return A=="openTag"?(L.tagStart=U.column(),w):A=="closeTag"?E:c}function w(A,U,L){return A=="word"?(L.tagName=U.current(),a="tag",M):O.allowMissingTagName&&A=="endTag"?(a="tag bracket",M(A,U,L)):(a="error",w)}function E(A,U,L){if(A=="word"){var N=U.current();return L.context&&L.context.tagName!=N&&O.implicitlyClosed.hasOwnProperty(L.context.tagName)&&d(L),L.context&&L.context.tagName==N||O.matchClosing===!1?(a="tag",v):(a="tag error",R)}else return O.allowMissingTagName&&A=="endTag"?(a="tag bracket",v(A,U,L)):(a="error",R)}function v(A,U,L){return A!="endTag"?(a="error",v):(d(L),c)}function R(A,U,L){return a="error",v(A,U,L)}function M(A,U,L){if(A=="word")return a="attribute",C;if(A=="endTag"||A=="selfcloseTag"){var N=L.tagName,V=L.tagStart;return L.tagName=L.tagStart=null,A=="selfcloseTag"||O.autoSelfClosers.hasOwnProperty(N)?s(L,N):(s(L,N),L.context=new h(L,N,V==L.indented)),c}return a="error",M}function C(A,U,L){return A=="equals"?S:(O.allowMissing||(a="error"),M(A,U,L))}function S(A,U,L){return A=="string"?_:A=="word"&&O.allowUnquoted?(a="string",M):(a="error",M(A,U,L))}function _(A,U,L){return A=="string"?_:M(A,U,L)}return{startState:function(A){var U={tokenize:u,state:c,indented:A||0,tagName:null,tagStart:null,context:null};return A!=null&&(U.baseIndent=A),U},token:function(A,U){if(!U.tagName&&A.sol()&&(U.indented=A.indentation()),A.eatSpace())return null;f=null;var L=U.tokenize(A,U);return(L||f)&&L!="comment"&&(a=null,U.state=U.state(f||L,A,U),a&&(L=a=="error"?L+" error":a)),L},indent:function(A,U,L){var N=A.context;if(A.tokenize.isInAttribute)return A.tagStart==A.indented?A.stringStartCol+1:A.indented+x;if(N&&N.noIndent)return P.Pass;if(A.tokenize!=r&&A.tokenize!=u)return L?L.match(/^(\s*)/)[0].length:0;if(A.tagName)return O.multilineTagIndentPastTag!==!1?A.tagStart+A.tagName.length+2:A.tagStart+x*(O.multilineTagIndentFactor||1);if(O.alignCDATA&&/<!\[CDATA\[/.test(U))return 0;var V=U&&/^<(\/)?([\w_:\.-]*)/.exec(U);if(V&&V[1])for(;N;)if(N.tagName==V[2]){N=N.prev;break}else if(O.implicitlyClosed.hasOwnProperty(N.tagName))N=N.prev;else break;else if(V)for(;N;){var H=O.contextGrabbers[N.tagName];if(H&&H.hasOwnProperty(V[2]))N=N.prev;else break}for(;N&&N.prev&&!N.startOfLine;)N=N.prev;return N?N.indent+x:A.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:O.htmlMode?"html":"xml",helperType:O.htmlMode?"html":"xml",skipAttribute:function(A){A.state==S&&(A.state=M)},xmlCurrentTag:function(A){return A.tagName?{name:A.tagName,close:A.type=="closeTag"}:null},xmlCurrentContext:function(A){for(var U=[],L=A.context;L;L=L.prev)L.tagName&&U.push(L.tagName);return U.reverse()}}}),P.defineMIME("text/xml","xml"),P.defineMIME("application/xml","xml"),P.mimeModes.hasOwnProperty("text/html")||P.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1j5w":function(k,z,o){"use strict";o.d(z,"d",function(){return Qe}),o.d(z,"b",function(){return We}),o.d(z,"c",function(){return Dt}),o.d(z,"a",function(){return rn});var P=o("VTBJ"),g=o("1OyB"),T=o("vuIU"),b=o("JX7q"),y=o("Ji7U"),x=o("LK+K"),O=o("q1tI"),m=o("I8Z2"),e=o("BGR+"),f=o("wx14"),a=o("rePB"),u=o("4IlW"),r=o("2GS6"),i=o("Gytx"),n=o.n(i),l=o("TSYQ"),h=o.n(l),d=o("U8pU"),s=o("ODXe"),c=/iPhone/i,w=/iPod/i,E=/iPad/i,v=/\bAndroid(?:.+)Mobile\b/i,R=/Android/i,M=/\bAndroid(?:.+)SD4930UR\b/i,C=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,S=/Windows Phone/i,_=/\bWindows(?:.+)ARM\b/i,A=/BlackBerry/i,U=/BB10/i,L=/Opera Mini/i,N=/\b(CriOS|Chrome)(?:.+)Mobile/i,V=/Mobile(?:.+)Firefox\b/i;function H(Ct,Ke){return Ct.test(Ke)}function D(Ct){var Ke=Ct||(typeof navigator!="undefined"?navigator.userAgent:""),et=Ke.split("[FBAN");if(typeof et[1]!="undefined"){var at=et,Pe=Object(s.a)(at,1);Ke=Pe[0]}if(et=Ke.split("Twitter"),typeof et[1]!="undefined"){var Xe=et,ht=Object(s.a)(Xe,1);Ke=ht[0]}var Et={apple:{phone:H(c,Ke)&&!H(S,Ke),ipod:H(w,Ke),tablet:!H(c,Ke)&&H(E,Ke)&&!H(S,Ke),device:(H(c,Ke)||H(w,Ke)||H(E,Ke))&&!H(S,Ke)},amazon:{phone:H(M,Ke),tablet:!H(M,Ke)&&H(C,Ke),device:H(M,Ke)||H(C,Ke)},android:{phone:!H(S,Ke)&&H(M,Ke)||!H(S,Ke)&&H(v,Ke),tablet:!H(S,Ke)&&!H(M,Ke)&&!H(v,Ke)&&(H(C,Ke)||H(R,Ke)),device:!H(S,Ke)&&(H(M,Ke)||H(C,Ke)||H(v,Ke)||H(R,Ke))||H(/\bokhttp\b/i,Ke)},windows:{phone:H(S,Ke),tablet:H(_,Ke),device:H(S,Ke)||H(_,Ke)},other:{blackberry:H(A,Ke),blackberry10:H(U,Ke),opera:H(L,Ke),firefox:H(V,Ke),chrome:H(N,Ke),device:H(A,Ke)||H(U,Ke)||H(L,Ke)||H(V,Ke)||H(N,Ke)},any:null,phone:null,tablet:null};return Et.any=Et.apple.device||Et.android.device||Et.windows.device||Et.other.device,Et.phone=Et.apple.phone||Et.android.phone||Et.windows.phone,Et.tablet=Et.apple.tablet||Et.android.tablet||Et.windows.tablet,Et}var W=Object(P.a)(Object(P.a)({},D()),{},{isMobile:D}),F=W;function I(){}function K(Ct,Ke,et){var at=Ke||"";return Ct.key||"".concat(at,"item_").concat(et)}function ee(Ct){return"".concat(Ct,"-menu-")}function he(Ct,Ke){var et=-1;O.Children.forEach(Ct,function(at){et+=1,at&&at.type&&at.type.isMenuItemGroup?O.Children.forEach(at.props.children,function(Pe){et+=1,Ke(Pe,et)}):Ke(at,et)})}function de(Ct,Ke,et){if(!Ct||et.find)return;O.Children.forEach(Ct,function(at){if(at){var Pe=at.type;if(!Pe||!(Pe.isSubMenu||Pe.isMenuItem||Pe.isMenuItemGroup))return;Ke.indexOf(at.key)!==-1?et.find=!0:at.props.children&&de(at.props.children,Ke,et)}})}var Se=["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"],Te=function(Ke){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,at=Ke&&typeof Ke.getBoundingClientRect=="function"&&Ke.getBoundingClientRect().width;if(at){if(et){var Pe=getComputedStyle(Ke),Xe=Pe.marginLeft,ht=Pe.marginRight;at+=+Xe.replace("px","")+ +ht.replace("px","")}at=+at.toFixed(6)}return at||0},ce=function(Ke,et,at){Ke&&Object(d.a)(Ke.style)==="object"&&(Ke.style[et]=at)},be=function(){return F.any},Ee=o("KQm4"),ue=o("Ff2n"),le=o("i8i4"),$=o("bdgK"),me=o("uciX"),re=o("8XRh"),ae={adjustX:1,adjustY:1},Oe={topLeft:{points:["bl","tl"],overflow:ae,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ae,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ae,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ae,offset:[4,0]}},se={topLeft:{points:["bl","tl"],overflow:ae,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ae,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ae,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ae,offset:[4,0]}},te=Oe,Q=0,J={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ve=function(Ke,et,at){var Pe=ee(et),Xe=Ke.getState();Ke.setState({defaultActiveFirst:Object(P.a)(Object(P.a)({},Xe.defaultActiveFirst),{},Object(a.a)({},Pe,at))})},_e=function(Ct){Object(y.a)(et,Ct);var Ke=Object(x.a)(et);function et(at){var Pe;Object(g.a)(this,et),Pe=Ke.call(this,at),Pe.onDestroy=function(lt){Pe.props.onDestroy(lt)},Pe.onKeyDown=function(lt){var Ft=lt.keyCode,Lt=Pe.menuInstance,on=Pe.props,mn=on.isOpen,Hn=on.store;if(Ft===u.a.ENTER)return Pe.onTitleClick(lt),ve(Hn,Pe.props.eventKey,!0),!0;if(Ft===u.a.RIGHT)return mn?Lt.onKeyDown(lt):(Pe.triggerOpenChange(!0),ve(Hn,Pe.props.eventKey,!0)),!0;if(Ft===u.a.LEFT){var Xn;if(mn)Xn=Lt.onKeyDown(lt);else return;return Xn||(Pe.triggerOpenChange(!1),Xn=!0),Xn}return mn&&(Ft===u.a.UP||Ft===u.a.DOWN)?Lt.onKeyDown(lt):void 0},Pe.onOpenChange=function(lt){Pe.props.onOpenChange(lt)},Pe.onPopupVisibleChange=function(lt){Pe.triggerOpenChange(lt,lt?"mouseenter":"mouseleave")},Pe.onMouseEnter=function(lt){var Ft=Pe.props,Lt=Ft.eventKey,on=Ft.onMouseEnter,mn=Ft.store;ve(mn,Pe.props.eventKey,!1),on({key:Lt,domEvent:lt})},Pe.onMouseLeave=function(lt){var Ft=Pe.props,Lt=Ft.parentMenu,on=Ft.eventKey,mn=Ft.onMouseLeave;Lt.subMenuInstance=Object(b.a)(Pe),mn({key:on,domEvent:lt})},Pe.onTitleMouseEnter=function(lt){var Ft=Pe.props,Lt=Ft.eventKey,on=Ft.onItemHover,mn=Ft.onTitleMouseEnter;on({key:Lt,hover:!0}),mn({key:Lt,domEvent:lt})},Pe.onTitleMouseLeave=function(lt){var Ft=Pe.props,Lt=Ft.parentMenu,on=Ft.eventKey,mn=Ft.onItemHover,Hn=Ft.onTitleMouseLeave;Lt.subMenuInstance=Object(b.a)(Pe),mn({key:on,hover:!1}),Hn({key:on,domEvent:lt})},Pe.onTitleClick=function(lt){var Ft=Object(b.a)(Pe),Lt=Ft.props;if(Lt.onTitleClick({key:Lt.eventKey,domEvent:lt}),Lt.triggerSubMenuAction==="hover")return;Pe.triggerOpenChange(!Lt.isOpen,"click"),ve(Lt.store,Pe.props.eventKey,!1)},Pe.onSubMenuClick=function(lt){typeof Pe.props.onClick=="function"&&Pe.props.onClick(Pe.addKeyPath(lt))},Pe.onSelect=function(lt){Pe.props.onSelect(lt)},Pe.onDeselect=function(lt){Pe.props.onDeselect(lt)},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.saveMenuInstance=function(lt){Pe.menuInstance=lt},Pe.addKeyPath=function(lt){return Object(P.a)(Object(P.a)({},lt),{},{keyPath:(lt.keyPath||[]).concat(Pe.props.eventKey)})},Pe.triggerOpenChange=function(lt,Ft){var Lt=Pe.props.eventKey,on=function(){Pe.onOpenChange({key:Lt,item:Object(b.a)(Pe),trigger:Ft,open:lt})};Ft==="mouseenter"?Pe.mouseenterTimeout=setTimeout(function(){on()},0):on()},Pe.isChildrenSelected=function(){var lt={find:!1};return de(Pe.props.children,Pe.props.selectedKeys,lt),lt.find},Pe.isOpen=function(){return Pe.props.openKeys.indexOf(Pe.props.eventKey)!==-1},Pe.adjustWidth=function(){if(!Pe.subMenuTitle||!Pe.menuInstance)return;var lt=le.findDOMNode(Pe.menuInstance);if(lt.offsetWidth>=Pe.subMenuTitle.offsetWidth)return;lt.style.minWidth="".concat(Pe.subMenuTitle.offsetWidth,"px")},Pe.saveSubMenuTitle=function(lt){Pe.subMenuTitle=lt},Pe.getBaseProps=function(){var lt=Object(b.a)(Pe),Ft=lt.props;return{mode:Ft.mode==="horizontal"?"vertical":Ft.mode,visible:Pe.props.isOpen,level:Ft.level+1,inlineIndent:Ft.inlineIndent,focusable:!1,onClick:Pe.onSubMenuClick,onSelect:Pe.onSelect,onDeselect:Pe.onDeselect,onDestroy:Pe.onDestroy,selectedKeys:Ft.selectedKeys,eventKey:"".concat(Ft.eventKey,"-menu-"),openKeys:Ft.openKeys,motion:Ft.motion,onOpenChange:Pe.onOpenChange,subMenuOpenDelay:Ft.subMenuOpenDelay,parentMenu:Object(b.a)(Pe),subMenuCloseDelay:Ft.subMenuCloseDelay,forceSubMenuRender:Ft.forceSubMenuRender,triggerSubMenuAction:Ft.triggerSubMenuAction,builtinPlacements:Ft.builtinPlacements,defaultActiveFirst:Ft.store.getState().defaultActiveFirst[ee(Ft.eventKey)],multiple:Ft.multiple,prefixCls:Ft.rootPrefixCls,id:Pe.internalMenuId,manualRef:Pe.saveMenuInstance,itemIcon:Ft.itemIcon,expandIcon:Ft.expandIcon,direction:Ft.direction}},Pe.getMotion=function(lt,Ft){var Lt=Object(b.a)(Pe),on=Lt.haveRendered,mn=Pe.props,Hn=mn.motion,Xn=mn.rootPrefixCls,Fn=Object(P.a)(Object(P.a)({},Hn),{},{leavedClassName:"".concat(Xn,"-hidden"),removeOnLeave:!1,motionAppear:on||!Ft||lt!=="inline"});return Fn};var Xe=at.store,ht=at.eventKey,Et=Xe.getState(),Ot=Et.defaultActiveFirst;Pe.isRootMenu=!1;var Mt=!1;return Ot&&(Mt=Ot[ht]),ve(Xe,ht,Mt),Pe}return Object(T.a)(et,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Pe=this,Xe=this.props,ht=Xe.mode,Et=Xe.parentMenu,Ot=Xe.manualRef;if(Ot&&Ot(this),ht!=="horizontal"||!Et.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return Pe.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Pe=this.props,Xe=Pe.onDestroy,ht=Pe.eventKey;Xe&&Xe(ht),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(Pe){var Xe=this,ht=this.getBaseProps(),Et=this.getMotion(ht.mode,ht.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||ht.visible||ht.forceSubMenuRender,!this.haveOpened)return O.createElement("div",null);var Ot=ht.direction;return O.createElement(re.default,Object.assign({visible:ht.visible},Et),function(Mt){var lt=Mt.className,Ft=Mt.style,Lt=h()("".concat(ht.prefixCls,"-sub"),lt,Object(a.a)({},"".concat(ht.prefixCls,"-rtl"),Ot==="rtl"));return O.createElement(it,Object.assign({},ht,{id:Xe.internalMenuId,className:Lt,style:Ft}),Pe)})}},{key:"render",value:function(){var Pe,Xe=Object(P.a)({},this.props),ht=Xe.isOpen,Et=this.getPrefixCls(),Ot=Xe.mode==="inline",Mt=h()(Et,"".concat(Et,"-").concat(Xe.mode),(Pe={},Object(a.a)(Pe,Xe.className,!!Xe.className),Object(a.a)(Pe,this.getOpenClassName(),ht),Object(a.a)(Pe,this.getActiveClassName(),Xe.active||ht&&!Ot),Object(a.a)(Pe,this.getDisabledClassName(),Xe.disabled),Object(a.a)(Pe,this.getSelectedClassName(),this.isChildrenSelected()),Pe));this.internalMenuId||(Xe.eventKey?this.internalMenuId="".concat(Xe.eventKey,"$Menu"):(Q+=1,this.internalMenuId="$__$".concat(Q,"$Menu")));var lt={},Ft={},Lt={};Xe.disabled||(lt={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Ft={onClick:this.onTitleClick},Lt={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var on={},mn=Xe.direction;Ot&&(mn==="rtl"?on.paddingRight=Xe.inlineIndent*Xe.level:on.paddingLeft=Xe.inlineIndent*Xe.level);var Hn={};this.props.isOpen&&(Hn={"aria-owns":this.internalMenuId});var Xn=null;Xe.mode!=="horizontal"&&(Xn=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Xn=O.createElement(this.props.expandIcon,Object(P.a)({},this.props))));var Fn=O.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:on,className:"".concat(Et,"-title"),role:"button"},Lt,Ft,{"aria-expanded":ht},Hn,{"aria-haspopup":"true",title:typeof Xe.title=="string"?Xe.title:void 0}),Xe.title,Xn||O.createElement("i",{className:"".concat(Et,"-arrow")})),xn=this.renderChildren(Xe.children),fr=Xe.parentMenu.isRootMenu?Xe.parentMenu.props.getPopupContainer:function(xr){return xr.parentNode},Yn=J[Xe.mode],ar=Xe.popupOffset?{offset:Xe.popupOffset}:{},nr=Xe.mode==="inline"?"":Xe.popupClassName;nr+=mn==="rtl"?" ".concat(Et,"-rtl"):"";var Rr=Xe.disabled,pr=Xe.triggerSubMenuAction,sn=Xe.subMenuOpenDelay,qt=Xe.forceSubMenuRender,On=Xe.subMenuCloseDelay,Fr=Xe.builtinPlacements;Se.forEach(function(xr){return delete Xe[xr]}),delete Xe.onClick;var Or=mn==="rtl"?Object.assign({},se,Fr):Object.assign({},Oe,Fr);return delete Xe.direction,O.createElement("li",Object.assign({},Xe,lt,{className:Mt,role:"menuitem"}),Ot&&Fn,Ot&&xn,!Ot&&O.createElement(me.a,{prefixCls:Et,popupClassName:h()("".concat(Et,"-popup"),nr),getPopupContainer:fr,builtinPlacements:Or,popupPlacement:Yn,popupVisible:ht,popupAlign:ar,popup:xn,action:Rr?[]:[pr],mouseEnterDelay:sn,mouseLeaveDelay:On,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:qt},Fn))}}]),et}(O.Component);_e.defaultProps={onMouseEnter:I,onMouseLeave:I,onTitleMouseEnter:I,onTitleMouseLeave:I,onTitleClick:I,manualRef:I,mode:"vertical",title:""};var Ae=Object(m.b)(function(Ct,Ke){var et=Ct.openKeys,at=Ct.activeKey,Pe=Ct.selectedKeys,Xe=Ke.eventKey,ht=Ke.subMenuKey;return{isOpen:et.indexOf(Xe)>-1,active:at[ht]===Xe,selectedKeys:Pe}})(_e);Ae.isSubMenu=!0;var Qe=Ae,tt="menuitem-overflowed",dt=.5,mt=function(Ct){Object(y.a)(et,Ct);var Ke=Object(x.a)(et);function et(){var at;return Object(g.a)(this,et),at=Ke.apply(this,arguments),at.resizeObserver=null,at.mutationObserver=null,at.originalTotalWidth=0,at.overflowedItems=[],at.menuItemSizes=[],at.cancelFrameId=null,at.state={lastVisibleIndex:void 0},at.getMenuItemNodes=function(){var Pe=at.props.prefixCls,Xe=le.findDOMNode(Object(b.a)(at));return Xe?[].slice.call(Xe.children).filter(function(ht){return ht.className.split(" ").indexOf("".concat(Pe,"-overflowed-submenu"))<0}):[]},at.getOverflowedSubMenuItem=function(Pe,Xe,ht){var Et=at.props,Ot=Et.overflowedIndicator,Mt=Et.level,lt=Et.mode,Ft=Et.prefixCls,Lt=Et.theme;if(Mt!==1||lt!=="horizontal")return null;var on=at.props.children[0],mn=on.props,Hn=mn.children,Xn=mn.title,Fn=mn.style,xn=Object(ue.a)(mn,["children","title","style"]),fr=Object(P.a)({},Fn),Yn="".concat(Pe,"-overflowed-indicator"),ar="".concat(Pe,"-overflowed-indicator");Xe.length===0&&ht!==!0?fr=Object(P.a)(Object(P.a)({},fr),{},{display:"none"}):ht&&(fr=Object(P.a)(Object(P.a)({},fr),{},{visibility:"hidden",position:"absolute"}),Yn="".concat(Yn,"-placeholder"),ar="".concat(ar,"-placeholder"));var nr=Lt?"".concat(Ft,"-").concat(Lt):"",Rr={};return Se.forEach(function(pr){xn[pr]!==void 0&&(Rr[pr]=xn[pr])}),O.createElement(Qe,Object.assign({title:Ot,className:"".concat(Ft,"-overflowed-submenu"),popupClassName:nr},Rr,{key:Yn,eventKey:ar,disabled:!1,style:fr}),Xe)},at.setChildrenWidthAndResize=function(){if(at.props.mode!=="horizontal")return;var Pe=le.findDOMNode(Object(b.a)(at));if(!Pe)return;var Xe=Pe.children;if(!Xe||Xe.length===0)return;var ht=Pe.children[Xe.length-1];ce(ht,"display","inline-block");var Et=at.getMenuItemNodes(),Ot=Et.filter(function(Mt){return Mt.className.split(" ").indexOf(tt)>=0});Ot.forEach(function(Mt){ce(Mt,"display","inline-block")}),at.menuItemSizes=Et.map(function(Mt){return Te(Mt,!0)}),Ot.forEach(function(Mt){ce(Mt,"display","none")}),at.overflowedIndicatorWidth=Te(Pe.children[Pe.children.length-1],!0),at.originalTotalWidth=at.menuItemSizes.reduce(function(Mt,lt){return Mt+lt},0),at.handleResize(),ce(ht,"display","none")},at.handleResize=function(){if(at.props.mode!=="horizontal")return;var Pe=le.findDOMNode(Object(b.a)(at));if(!Pe)return;var Xe=Te(Pe);at.overflowedItems=[];var ht=0,Et;at.originalTotalWidth>Xe+dt&&(Et=-1,at.menuItemSizes.forEach(function(Ot){ht+=Ot,ht+at.overflowedIndicatorWidth<=Xe&&(Et+=1)})),at.setState({lastVisibleIndex:Et})},at}return Object(T.a)(et,[{key:"componentDidMount",value:function(){var Pe=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Xe=le.findDOMNode(this);if(!Xe)return;this.resizeObserver=new $.default(function(ht){ht.forEach(function(){var Et=Pe.cancelFrameId;cancelAnimationFrame(Et),Pe.cancelFrameId=requestAnimationFrame(Pe.setChildrenWidthAndResize)})}),[].slice.call(Xe.children).concat(Xe).forEach(function(ht){Pe.resizeObserver.observe(ht)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Pe.resizeObserver.disconnect(),[].slice.call(Xe.children).concat(Xe).forEach(function(ht){Pe.resizeObserver.observe(ht)}),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,ht=this.state.lastVisibleIndex;return(Pe||[]).reduce(function(Et,Ot,Mt){var lt=Ot;if(Xe.props.mode==="horizontal"){var Ft=Xe.getOverflowedSubMenuItem(Ot.props.eventKey,[]);ht!==void 0&&Xe.props.className.indexOf("".concat(Xe.props.prefixCls,"-root"))!==-1&&(Mt>ht&&(lt=O.cloneElement(Ot,{style:{display:"none"},eventKey:"".concat(Ot.props.eventKey,"-hidden"),className:"".concat(tt)})),Mt===ht+1&&(Xe.overflowedItems=Pe.slice(ht+1).map(function(on){return O.cloneElement(on,{key:on.props.eventKey,mode:"vertical-left"})}),Ft=Xe.getOverflowedSubMenuItem(Ot.props.eventKey,Xe.overflowedItems)));var Lt=[].concat(Object(Ee.a)(Et),[Ft,lt]);return Mt===Pe.length-1&&Lt.push(Xe.getOverflowedSubMenuItem(Ot.props.eventKey,[],!0)),Lt}return[].concat(Object(Ee.a)(Et),[lt])},[])}},{key:"render",value:function(){var Pe=this.props,Xe=Pe.visible,ht=Pe.prefixCls,Et=Pe.overflowedIndicator,Ot=Pe.mode,Mt=Pe.level,lt=Pe.tag,Ft=Pe.children,Lt=Pe.theme,on=Object(ue.a)(Pe,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),mn=lt;return O.createElement(mn,Object.assign({},on),this.renderChildren(Ft))}}]),et}(O.Component);mt.defaultProps={tag:"div",className:""};var vt=mt;function yt(Ct){return Ct.length?Ct.every(function(Ke){return!!Ke.props.disabled}):!0}function Ye(Ct,Ke,et){var at=Ct.getState();Ct.setState({activeKey:Object(P.a)(Object(P.a)({},at.activeKey),{},Object(a.a)({},Ke,et))})}function Ue(Ct){return Ct.eventKey||"0-menu-"}function ft(Ct,Ke){var et=Ke,at=Ct.children,Pe=Ct.eventKey;if(et){var Xe;if(he(at,function(ht,Et){ht&&ht.props&&!ht.props.disabled&&et===K(ht,Pe,Et)&&(Xe=!0)}),Xe)return et}return et=null,Ct.defaultActiveFirst&&he(at,function(ht,Et){!et&&ht&&!ht.props.disabled&&(et=K(ht,Pe,Et))}),et}function jt(Ct){if(Ct){var Ke=this.instanceArray.indexOf(Ct);Ke!==-1?this.instanceArray[Ke]=Ct:this.instanceArray.push(Ct)}}var bt=function(Ct){Object(y.a)(et,Ct);var Ke=Object(x.a)(et);function et(at){var Pe;return Object(g.a)(this,et),Pe=Ke.call(this,at),Pe.onKeyDown=function(Xe,ht){var Et=Xe.keyCode,Ot;if(Pe.getFlatInstanceArray().forEach(function(lt){lt&<.props.active&<.onKeyDown&&(Ot=lt.onKeyDown(Xe))}),Ot)return 1;var Mt=null;return(Et===u.a.UP||Et===u.a.DOWN)&&(Mt=Pe.step(Et===u.a.UP?-1:1)),Mt?(Xe.preventDefault(),Ye(Pe.props.store,Ue(Pe.props),Mt.props.eventKey),typeof ht=="function"&&ht(Mt),1):void 0},Pe.onItemHover=function(Xe){var ht=Xe.key,Et=Xe.hover;Ye(Pe.props.store,Ue(Pe.props),Et?ht: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 ht=Pe.getFlatInstanceArray(),Et=Pe.props.store.getState().activeKey[Ue(Pe.props)],Ot=ht.length;if(!Ot)return null;Xe<0&&(ht=ht.concat().reverse());var Mt=-1;if(ht.every(function(on,mn){return on&&on.props.eventKey===Et?(Mt=mn,!1):!0}),!Pe.props.defaultActiveFirst&&Mt!==-1&&yt(ht.slice(Mt,Ot-1)))return;var lt=(Mt+1)%Ot,Ft=lt;do{var Lt=ht[Ft];if(!Lt||Lt.props.disabled)Ft=(Ft+1)%Ot;else return Lt}while(Ft!==lt);return null},Pe.renderCommonMenuItem=function(Xe,ht,Et){var Ot=Pe.props.store.getState(),Mt=Object(b.a)(Pe),lt=Mt.props,Ft=K(Xe,lt.eventKey,ht),Lt=Xe.props;if(!Lt||typeof Xe.type=="string")return Xe;var on=Ft===Ot.activeKey,mn=Object(P.a)(Object(P.a)({mode:Lt.mode||lt.mode,level:lt.level,inlineIndent:lt.inlineIndent,renderMenuItem:Pe.renderMenuItem,rootPrefixCls:lt.prefixCls,index:ht,parentMenu:lt.parentMenu,manualRef:Lt.disabled?void 0:Object(r.a)(Xe.ref,jt.bind(Object(b.a)(Pe))),eventKey:Ft,active:!Lt.disabled&&on,multiple:lt.multiple,onClick:function(Xn){(Lt.onClick||I)(Xn),Pe.onClick(Xn)},onItemHover:Pe.onItemHover,motion:lt.motion,subMenuOpenDelay:lt.subMenuOpenDelay,subMenuCloseDelay:lt.subMenuCloseDelay,forceSubMenuRender:lt.forceSubMenuRender,onOpenChange:Pe.onOpenChange,onDeselect:Pe.onDeselect,onSelect:Pe.onSelect,builtinPlacements:lt.builtinPlacements,itemIcon:Lt.itemIcon||Pe.props.itemIcon,expandIcon:Lt.expandIcon||Pe.props.expandIcon},Et),{},{direction:lt.direction});return(lt.mode==="inline"||be())&&(mn.triggerSubMenuAction="click"),O.cloneElement(Xe,mn)},Pe.renderMenuItem=function(Xe,ht,Et){if(!Xe)return null;var Ot=Pe.props.store.getState(),Mt={openKeys:Ot.openKeys,selectedKeys:Ot.selectedKeys,triggerSubMenuAction:Pe.props.triggerSubMenuAction,subMenuKey:Et};return Pe.renderCommonMenuItem(Xe,ht,Mt)},at.store.setState({activeKey:Object(P.a)(Object(P.a)({},at.store.getState().activeKey),{},Object(a.a)({},at.eventKey,ft(at,at.activeKey)))}),Pe.instanceArray=[],Pe}return Object(T.a)(et,[{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||!n()(this.props.style,Pe.style)}},{key:"componentDidUpdate",value:function(Pe){var Xe=this.props,ht="activeKey"in Xe?Xe.activeKey:Xe.store.getState().activeKey[Ue(Xe)],Et=ft(Xe,ht);if(Et!==ht)Ye(Xe.store,Ue(Xe),Et);else if("activeKey"in Pe){var Ot=ft(Pe,Pe.activeKey);Et!==Ot&&Ye(Xe.store,Ue(Xe),Et)}}},{key:"render",value:function(){var Pe=this,Xe=Object(f.a)({},this.props);this.instanceArray=[];var ht=h()(Xe.prefixCls,Xe.className,"".concat(Xe.prefixCls,"-").concat(Xe.mode)),Et={className:ht,role:Xe.role||"menu"};Xe.id&&(Et.id=Xe.id),Xe.focusable&&(Et.tabIndex=0,Et.onKeyDown=this.onKeyDown);var Ot=Xe.prefixCls,Mt=Xe.eventKey,lt=Xe.visible,Ft=Xe.level,Lt=Xe.mode,on=Xe.overflowedIndicator,mn=Xe.theme;return Se.forEach(function(Hn){return delete Xe[Hn]}),delete Xe.onClick,O.createElement(vt,Object.assign({},Xe,{prefixCls:Ot,mode:Lt,tag:"ul",level:Ft,theme:mn,visible:lt,overflowedIndicator:on},Et),O.Children.map(Xe.children,function(Hn,Xn){return Pe.renderMenuItem(Hn,Xn,Mt||"0-menu-")}))}}]),et}(O.Component);bt.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:I};var Pt=Object(m.b)()(bt),it=Pt,He=o("Kwbf");function Ge(Ct,Ke,et){var at=Ct.prefixCls,Pe=Ct.motion,Xe=Ct.defaultMotions,ht=Xe===void 0?{}:Xe,Et=Ct.openAnimation,Ot=Ct.openTransitionName,Mt=Ke.switchingModeFromInline;if(Pe)return Pe;if(Object(d.a)(Et)==="object"&&Et)Object(He.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Et=="string")return{motionName:"".concat(at,"-open-").concat(Et)};if(Ot)return{motionName:Ot};var lt=ht[et];return lt||(Mt?null:ht.other)}var Ce=function(Ct){Object(y.a)(et,Ct);var Ke=Object(x.a)(et);function et(at){var Pe;Object(g.a)(this,et),Pe=Ke.call(this,at),Pe.inlineOpenKeys=[],Pe.onSelect=function(Et){var Ot=Object(b.a)(Pe),Mt=Ot.props;if(Mt.selectable){var lt=Pe.store.getState(),Ft=lt.selectedKeys,Lt=Et.key;Mt.multiple?Ft=Ft.concat([Lt]):Ft=[Lt],"selectedKeys"in Mt||Pe.store.setState({selectedKeys:Ft}),Mt.onSelect(Object(P.a)(Object(P.a)({},Et),{},{selectedKeys:Ft}))}},Pe.onClick=function(Et){var Ot=Pe.getRealMenuMode(),Mt=Object(b.a)(Pe),lt=Mt.store,Ft=Mt.props.onOpenChange;Ot!=="inline"&&!("openKeys"in Pe.props)&&(lt.setState({openKeys:[]}),Ft([])),Pe.props.onClick(Et)},Pe.onKeyDown=function(Et,Ot){Pe.innerMenu.getWrappedInstance().onKeyDown(Et,Ot)},Pe.onOpenChange=function(Et){var Ot=Object(b.a)(Pe),Mt=Ot.props,lt=Pe.store.getState().openKeys.concat(),Ft=!1,Lt=function(mn){var Hn=!1;if(mn.open)Hn=lt.indexOf(mn.key)===-1,Hn&<.push(mn.key);else{var Xn=lt.indexOf(mn.key);Hn=Xn!==-1,Hn&<.splice(Xn,1)}Ft=Ft||Hn};Array.isArray(Et)?Et.forEach(Lt):Lt(Et),Ft&&("openKeys"in Pe.props||Pe.store.setState({openKeys:lt}),Mt.onOpenChange(lt))},Pe.onDeselect=function(Et){var Ot=Object(b.a)(Pe),Mt=Ot.props;if(Mt.selectable){var lt=Pe.store.getState().selectedKeys.concat(),Ft=Et.key,Lt=lt.indexOf(Ft);Lt!==-1&<.splice(Lt,1),"selectedKeys"in Mt||Pe.store.setState({selectedKeys:lt}),Mt.onDeselect(Object(P.a)(Object(P.a)({},Et),{},{selectedKeys:lt}))}},Pe.onMouseEnter=function(Et){Pe.restoreModeVerticalFromInline();var Ot=Pe.props.onMouseEnter;Ot&&Ot(Et)},Pe.onTransitionEnd=function(Et){var Ot=Et.propertyName==="width"&&Et.target===Et.currentTarget,Mt=Et.target.className,lt=Object.prototype.toString.call(Mt)==="[object SVGAnimatedString]"?Mt.animVal:Mt,Ft=Et.propertyName==="font-size"&<.indexOf("anticon")>=0;(Ot||Ft)&&Pe.restoreModeVerticalFromInline()},Pe.setInnerMenu=function(Et){Pe.innerMenu=Et},Pe.isRootMenu=!0;var Xe=at.defaultSelectedKeys,ht=at.defaultOpenKeys;return"selectedKeys"in at&&(Xe=at.selectedKeys||[]),"openKeys"in at&&(ht=at.openKeys||[]),Pe.store=Object(m.c)({selectedKeys:Xe,openKeys:ht,activeKey:{"0-menu-":ft(at,at.activeKey)}}),Pe.state={switchingModeFromInline:!1},Pe}return Object(T.a)(et,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Pe){this.updateOpentKeysWhenSwitchMode(Pe),this.updateMiniStore();var Xe=this.props,ht=Xe.siderCollapsed,Et=Xe.inlineCollapsed,Ot=Xe.onOpenChange;(!Pe.inlineCollapsed&&Et||!Pe.siderCollapsed&&ht)&&Ot([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(Pe){var Xe=this.props,ht=this.store,Et=this.inlineOpenKeys,Ot=ht.getState(),Mt={};Pe.mode==="inline"&&Xe.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in Xe||((Xe.inlineCollapsed&&!Pe.inlineCollapsed||Xe.siderCollapsed&&!Pe.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=Ot.openKeys.concat(),Mt.openKeys=[]),(!Xe.inlineCollapsed&&Pe.inlineCollapsed||!Xe.siderCollapsed&&Pe.siderCollapsed)&&(Mt.openKeys=Et,this.inlineOpenKeys=[])),Object.keys(Mt).length&&ht.setState(Mt)}},{key:"updateMenuDisplay",value:function(){var Pe=this.props.collapsedWidth,Xe=this.store,ht=this.prevOpenKeys,Et=this.getInlineCollapsed()&&(Pe===0||Pe==="0"||Pe==="0px");Et?(this.prevOpenKeys=Xe.getState().openKeys.concat(),this.store.setState({openKeys:[]})):ht&&(this.store.setState({openKeys:ht}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Pe=this.props.mode,Xe=this.state.switchingModeFromInline,ht=this.getInlineCollapsed();return Xe&&ht?"inline":ht?"vertical":Pe}},{key:"getInlineCollapsed",value:function(){var Pe=this.props,Xe=Pe.inlineCollapsed,ht=Pe.siderCollapsed;return ht!==void 0?ht: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(P.a)({},Object(e.default)(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(P.a)(Object(P.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:Ge(this.props,this.state,Xe)}),delete Pe.openAnimation,delete Pe.openTransitionName,O.createElement(m.a,{store:this.store},O.createElement(it,Object.assign({},Pe,{ref:this.setInnerMenu}),this.props.children))}}]),et}(O.Component);Ce.defaultProps={selectable:!0,onClick:I,onSelect:I,onOpenChange:I,onDeselect:I,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:O.createElement("span",null,"\xB7\xB7\xB7")};var Ie=Ce,Fe=function(Ct){Object(y.a)(et,Ct);var Ke=Object(x.a)(et);function et(){var at;return Object(g.a)(this,et),at=Ke.apply(this,arguments),at.onKeyDown=function(Pe){var Xe=Pe.keyCode;return Xe===u.a.ENTER?(at.onClick(Pe),!0):void 0},at.onMouseLeave=function(Pe){var Xe=at.props,ht=Xe.eventKey,Et=Xe.onItemHover,Ot=Xe.onMouseLeave;Et({key:ht,hover:!1}),Ot({key:ht,domEvent:Pe})},at.onMouseEnter=function(Pe){var Xe=at.props,ht=Xe.eventKey,Et=Xe.onItemHover,Ot=Xe.onMouseEnter;Et({key:ht,hover:!0}),Ot({key:ht,domEvent:Pe})},at.onClick=function(Pe){var Xe=at.props,ht=Xe.eventKey,Et=Xe.multiple,Ot=Xe.onClick,Mt=Xe.onSelect,lt=Xe.onDeselect,Ft=Xe.isSelected,Lt={key:ht,keyPath:[ht],item:Object(b.a)(at),domEvent:Pe};Ot(Lt),Et?Ft?lt(Lt):Mt(Lt):Ft||Mt(Lt)},at.saveNode=function(Pe){at.node=Pe},at}return Object(T.a)(et,[{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(P.a)({},this.props),ht=h()(this.getPrefixCls(),Xe.className,(Pe={},Object(a.a)(Pe,this.getActiveClassName(),!Xe.disabled&&Xe.active),Object(a.a)(Pe,this.getSelectedClassName(),Xe.isSelected),Object(a.a)(Pe,this.getDisabledClassName(),Xe.disabled),Pe)),Et=Object(P.a)(Object(P.a)({},Xe.attribute),{},{title:typeof Xe.title=="string"?Xe.title:void 0,className:ht,role:Xe.role||"menuitem","aria-disabled":Xe.disabled});Xe.role==="option"?Et=Object(P.a)(Object(P.a)({},Et),{},{role:"option","aria-selected":Xe.isSelected}):(Xe.role===null||Xe.role==="none")&&(Et.role="none");var Ot={onClick:Xe.disabled?null:this.onClick,onMouseLeave:Xe.disabled?null:this.onMouseLeave,onMouseEnter:Xe.disabled?null:this.onMouseEnter},Mt=Object(P.a)({},Xe.style);Xe.mode==="inline"&&(Xe.direction==="rtl"?Mt.paddingRight=Xe.inlineIndent*Xe.level:Mt.paddingLeft=Xe.inlineIndent*Xe.level),Se.forEach(function(Ft){return delete Xe[Ft]}),delete Xe.direction;var lt=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(lt=O.createElement(this.props.itemIcon,this.props)),O.createElement("li",Object.assign({},Object(e.default)(Xe,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Et,Ot,{style:Mt,ref:this.saveNode}),Xe.children,lt)}}]),et}(O.Component);Fe.isMenuItem=!0,Fe.defaultProps={onSelect:I,onMouseEnter:I,onMouseLeave:I,manualRef:I};var Be=Object(m.b)(function(Ct,Ke){var et=Ct.activeKey,at=Ct.selectedKeys,Pe=Ke.eventKey,Xe=Ke.subMenuKey;return{active:et[Xe]===Pe,isSelected:at.indexOf(Pe)!==-1}})(Fe),We=Be,st=function(Ct){Object(y.a)(et,Ct);var Ke=Object(x.a)(et);function et(){var at;return Object(g.a)(this,et),at=Ke.apply(this,arguments),at.renderInnerMenuItem=function(Pe){var Xe=at.props,ht=Xe.renderMenuItem,Et=Xe.index;return ht(Pe,Et,at.props.subMenuKey)},at}return Object(T.a)(et,[{key:"render",value:function(){var Pe=Object(f.a)({},this.props),Xe=Pe.className,ht=Xe===void 0?"":Xe,Et=Pe.rootPrefixCls,Ot="".concat(Et,"-item-group-title"),Mt="".concat(Et,"-item-group-list"),lt=Pe.title,Ft=Pe.children;return Se.forEach(function(Lt){return delete Pe[Lt]}),delete Pe.onClick,delete Pe.direction,O.createElement("li",Object.assign({},Pe,{className:"".concat(ht," ").concat(Et,"-item-group")}),O.createElement("div",{className:Ot,title:typeof lt=="string"?lt:void 0},lt),O.createElement("ul",{className:Mt},O.Children.map(Ft,this.renderInnerMenuItem)))}}]),et}(O.Component);st.isMenuItemGroup=!0,st.defaultProps={disabled:!0};var Dt=st,Ht=function(Ke){var et=Ke.className,at=Ke.rootPrefixCls,Pe=Ke.style;return O.createElement("li",{className:"".concat(et," ").concat(at,"-item-divider"),style:Pe})};Ht.defaultProps={disabled:!0,className:"",style:{}};var rn=Ht,Bt=z.e=Ie},"1nVM":function(k,z,o){k.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(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("MlIO"))})(this,function(P){return function(){var g=P,T=g.lib,b=T.Hasher,y=g.x64,x=y.Word,O=y.WordArray,m=g.algo;function e(){return x.create.apply(x,arguments)}var f=[e(1116352408,3609767458),e(1899447441,602891725),e(3049323471,3964484399),e(3921009573,2173295548),e(961987163,4081628472),e(1508970993,3053834265),e(2453635748,2937671579),e(2870763221,3664609560),e(3624381080,2734883394),e(310598401,1164996542),e(607225278,1323610764),e(1426881987,3590304994),e(1925078388,4068182383),e(2162078206,991336113),e(2614888103,633803317),e(3248222580,3479774868),e(3835390401,2666613458),e(4022224774,944711139),e(264347078,2341262773),e(604807628,2007800933),e(770255983,1495990901),e(1249150122,1856431235),e(1555081692,3175218132),e(1996064986,2198950837),e(2554220882,3999719339),e(2821834349,766784016),e(2952996808,2566594879),e(3210313671,3203337956),e(3336571891,1034457026),e(3584528711,2466948901),e(113926993,3758326383),e(338241895,168717936),e(666307205,1188179964),e(773529912,1546045734),e(1294757372,1522805485),e(1396182291,2643833823),e(1695183700,2343527390),e(1986661051,1014477480),e(2177026350,1206759142),e(2456956037,344077627),e(2730485921,1290863460),e(2820302411,3158454273),e(3259730800,3505952657),e(3345764771,106217008),e(3516065817,3606008344),e(3600352804,1432725776),e(4094571909,1467031594),e(275423344,851169720),e(430227734,3100823752),e(506948616,1363258195),e(659060556,3750685593),e(883997877,3785050280),e(958139571,3318307427),e(1322822218,3812723403),e(1537002063,2003034995),e(1747873779,3602036899),e(1955562222,1575990012),e(2024104815,1125592928),e(2227730452,2716904306),e(2361852424,442776044),e(2428436474,593698344),e(2756734187,3733110249),e(3204031479,2999351573),e(3329325298,3815920427),e(3391569614,3928383900),e(3515267271,566280711),e(3940187606,3454069534),e(4118630271,4000239992),e(116418474,1914138554),e(174292421,2731055270),e(289380356,3203993006),e(460393269,320620315),e(685471733,587496836),e(852142971,1086792851),e(1017036298,365543100),e(1126000580,2618297676),e(1288033470,3409855158),e(1501505948,4234509866),e(1607167915,987167468),e(1816402316,1246189591)],a=[];(function(){for(var r=0;r<80;r++)a[r]=e()})();var u=m.SHA512=b.extend({_doReset:function(){this._hash=new O.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(r,i){for(var n=this._hash.words,l=n[0],h=n[1],d=n[2],s=n[3],c=n[4],w=n[5],E=n[6],v=n[7],R=l.high,M=l.low,C=h.high,S=h.low,_=d.high,A=d.low,U=s.high,L=s.low,N=c.high,V=c.low,H=w.high,D=w.low,W=E.high,F=E.low,I=v.high,K=v.low,ee=R,he=M,de=C,Se=S,Te=_,ce=A,be=U,Ee=L,ue=N,le=V,$=H,me=D,re=W,ae=F,Oe=I,se=K,te=0;te<80;te++){var Q,J,ve=a[te];if(te<16)J=ve.high=r[i+te*2]|0,Q=ve.low=r[i+te*2+1]|0;else{var _e=a[te-15],Ae=_e.high,Qe=_e.low,tt=(Ae>>>1|Qe<<31)^(Ae>>>8|Qe<<24)^Ae>>>7,dt=(Qe>>>1|Ae<<31)^(Qe>>>8|Ae<<24)^(Qe>>>7|Ae<<25),mt=a[te-2],vt=mt.high,yt=mt.low,Ye=(vt>>>19|yt<<13)^(vt<<3|yt>>>29)^vt>>>6,Ue=(yt>>>19|vt<<13)^(yt<<3|vt>>>29)^(yt>>>6|vt<<26),ft=a[te-7],jt=ft.high,bt=ft.low,Pt=a[te-16],it=Pt.high,He=Pt.low;Q=dt+bt,J=tt+jt+(Q>>>0<dt>>>0?1:0),Q=Q+Ue,J=J+Ye+(Q>>>0<Ue>>>0?1:0),Q=Q+He,J=J+it+(Q>>>0<He>>>0?1:0),ve.high=J,ve.low=Q}var Ge=ue&$^~ue&re,Ce=le&me^~le&ae,Ie=ee&de^ee&Te^de&Te,Fe=he&Se^he&ce^Se&ce,Be=(ee>>>28|he<<4)^(ee<<30|he>>>2)^(ee<<25|he>>>7),We=(he>>>28|ee<<4)^(he<<30|ee>>>2)^(he<<25|ee>>>7),st=(ue>>>14|le<<18)^(ue>>>18|le<<14)^(ue<<23|le>>>9),Dt=(le>>>14|ue<<18)^(le>>>18|ue<<14)^(le<<23|ue>>>9),Ht=f[te],rn=Ht.high,Bt=Ht.low,Ct=se+Dt,Ke=Oe+st+(Ct>>>0<se>>>0?1:0),Ct=Ct+Ce,Ke=Ke+Ge+(Ct>>>0<Ce>>>0?1:0),Ct=Ct+Bt,Ke=Ke+rn+(Ct>>>0<Bt>>>0?1:0),Ct=Ct+Q,Ke=Ke+J+(Ct>>>0<Q>>>0?1:0),et=We+Fe,at=Be+Ie+(et>>>0<We>>>0?1:0);Oe=re,se=ae,re=$,ae=me,$=ue,me=le,le=Ee+Ct|0,ue=be+Ke+(le>>>0<Ee>>>0?1:0)|0,be=Te,Ee=ce,Te=de,ce=Se,de=ee,Se=he,he=Ct+et|0,ee=Ke+at+(he>>>0<Ct>>>0?1:0)|0}M=l.low=M+he,l.high=R+ee+(M>>>0<he>>>0?1:0),S=h.low=S+Se,h.high=C+de+(S>>>0<Se>>>0?1:0),A=d.low=A+ce,d.high=_+Te+(A>>>0<ce>>>0?1:0),L=s.low=L+Ee,s.high=U+be+(L>>>0<Ee>>>0?1:0),V=c.low=V+le,c.high=N+ue+(V>>>0<le>>>0?1:0),D=w.low=D+me,w.high=H+$+(D>>>0<me>>>0?1:0),F=E.low=F+ae,E.high=W+re+(F>>>0<ae>>>0?1:0),K=v.low=K+se,v.high=I+Oe+(K>>>0<se>>>0?1:0)},_doFinalize:function(){var r=this._data,i=r.words,n=this._nDataBytes*8,l=r.sigBytes*8;i[l>>>5]|=128<<24-l%32,i[(l+128>>>10<<5)+30]=Math.floor(n/4294967296),i[(l+128>>>10<<5)+31]=n,r.sigBytes=i.length*4,this._process();var h=this._hash.toX32();return h},clone:function(){var r=b.clone.call(this);return r._hash=this._hash.clone(),r},blockSize:1024/32});g.SHA512=b._createHelper(u),g.HmacSHA512=b._createHmacHelper(u)}(),P.SHA512})},"24hK":function(k,z,o){"use strict";o.d(z,"a",function(){return g});class P{constructor(T){this.element=T,this.next=P.Undefined,this.prev=P.Undefined}}P.Undefined=new P(void 0);class g{constructor(){this._first=P.Undefined,this._last=P.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===P.Undefined}clear(){let T=this._first;for(;T!==P.Undefined;){const b=T.next;T.prev=P.Undefined,T.next=P.Undefined,T=b}this._first=P.Undefined,this._last=P.Undefined,this._size=0}unshift(T){return this._insert(T,!1)}push(T){return this._insert(T,!0)}_insert(T,b){const y=new P(T);if(this._first===P.Undefined)this._first=y,this._last=y;else if(b){const O=this._last;this._last=y,y.prev=O,O.next=y}else{const O=this._first;this._first=y,y.next=O,O.prev=y}this._size+=1;let x=!1;return()=>{x||(x=!0,this._remove(y))}}shift(){if(this._first===P.Undefined)return;{const T=this._first.element;return this._remove(this._first),T}}pop(){if(this._last===P.Undefined)return;{const T=this._last.element;return this._remove(this._last),T}}_remove(T){if(T.prev!==P.Undefined&&T.next!==P.Undefined){const b=T.prev;b.next=T.next,T.next.prev=b}else T.prev===P.Undefined&&T.next===P.Undefined?(this._first=P.Undefined,this._last=P.Undefined):T.next===P.Undefined?(this._last=this._last.prev,this._last.next=P.Undefined):T.prev===P.Undefined&&(this._first=this._first.next,this._first.prev=P.Undefined);this._size-=1}*[Symbol.iterator](){let T=this._first;for(;T!==P.Undefined;)yield T.element,T=T.next}}},"3/fG":function(k,z,o){"use strict";o.d(z,"a",function(){return g});function P(T,b){let y;return b.length===0?y=T:y=T.replace(/\{(\d+)\}/g,function(x,O){const m=O[0];return typeof b[m]!="undefined"?b[m]:x}),y}function g(T,b,...y){return P(b,y)}},"3d99":function(k,z,o){k.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(k,z){k.exports="data:image/png;base64,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"},"3y9D":function(k,z,o){(function(P,g){k.exports=z=g(o("Ib8C"))})(this,function(P){return function(){var g=P,T=g.lib,b=T.WordArray,y=T.Hasher,x=g.algo,O=[],m=x.SHA1=y.extend({_doReset:function(){this._hash=new b.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,f){for(var a=this._hash.words,u=a[0],r=a[1],i=a[2],n=a[3],l=a[4],h=0;h<80;h++){if(h<16)O[h]=e[f+h]|0;else{var d=O[h-3]^O[h-8]^O[h-14]^O[h-16];O[h]=d<<1|d>>>31}var s=(u<<5|u>>>27)+l+O[h];h<20?s+=(r&i|~r&n)+1518500249:h<40?s+=(r^i^n)+1859775393:h<60?s+=(r&i|r&n|i&n)-1894007588:s+=(r^i^n)-899497514,l=n,n=i,i=r<<30|r>>>2,r=u,u=s}a[0]=a[0]+u|0,a[1]=a[1]+r|0,a[2]=a[2]+i|0,a[3]=a[3]+n|0,a[4]=a[4]+l|0},_doFinalize:function(){var e=this._data,f=e.words,a=this._nDataBytes*8,u=e.sigBytes*8;return f[u>>>5]|=128<<24-u%32,f[(u+64>>>9<<4)+14]=Math.floor(a/4294967296),f[(u+64>>>9<<4)+15]=a,e.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var e=y.clone.call(this);return e._hash=this._hash.clone(),e}});g.SHA1=y._createHelper(m),g.HmacSHA1=y._createHmacHelper(m)}(),P.SHA1})},4:function(k,z){},"498V":function(k,z,o){k.exports=o.p+"static/logo.22b9a281.svg"},"4SAo":function(k,z,o){k.exports={footerWrap:"footerWrap___2ePEu"}},"4qgm":function(k,z){k.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAwCAYAAABE1blzAAAIeUlEQVRoQ72aa2wU1xXHf2dm1jYEBClJGgofIFJLU0W04AdQWgJSW0UprZRIpB/aJBTxStIShWchJvbytA2lBCKKeajhQ5s2tGpFK1G1UowqKNjYBkraJCqqiCDEDZSncezdmTnVnd2FxaztmfWaa632w9459/7v75xzz71j4R61ssM6TkrYqMon3qesPjFNLt6LoWWgB5n1ttr/GcMCLKrE5qFgPJf3gRXN5XJgoMcfUIFlR/QxiqgVhyfVA/MxTWKgPuZvL51UtUyTjwdK6IAI/NLbWlQylhctWC0xPuN35Zi+gFUMfpIzoqxsLpffDoTIggssb9KvqLBJYnxD3dvUepq8OIAPquxzfCobJ8v5QgotmMAxDVoyYjAvi81KcRiWk1qPKm/RPIvHqy2T5FeFElkQgeVNWq42m8TmcU0G8ZVXC2ia5vOW47Lq2BQ5m5ehrIf6JbC0WQdbsMSH5ZbNED/R3+mYDHSL5kcqVLZOZB8imq/lvAWWHdWpOGySIqYEwvKk1mtsmtl5/M72WNk4Wf6dj8jIAqce1qGJEparsgSHQVoIar3M3GRadWnDp+rb5eyJi0RaykgCy47q9DS1srDUvLRzme+YFXhg5CY2YD4uf/RdVrROkffCGgk13vQTOrzdZZUKi8SmOCy1pMLUYfCDkfD7T+Cvl1PTckKNereENM1L6rFmaAc/PzRD3L6E9jlUabN+Swj2tfFB6o8Q7h0e/GQMPDcy9djBS7DjPJzthOJ+0lSPvzguyxonyz96E9mjwIpGHeGZ+lFYiEXMpP+ozQhcPgZmj7z95MUE1H8Ef7gIhnCszyXOPWqa5lWUDVcvsu3Mk5KrXsodEhUtOtNT6qwYj0allj2dXAIzvx+5CtvOwT9vQpEFVtTVMzuK8QJT1yY55HssbZ0sLd3N3LF+k47pZ70YcZS5WNj5UAsr0PS74cG+C/DLNrjppYTm0wKaSW7gUxvz2HL0q/Jpxs4tgeVN+rRvUWPF+Hx/qEURmOl7uh1ePweN11Iua+XjtsYLUjSP+BZLW0vlmLEvk07paK+LNWoxWwQxBXKhWm8u2n2MpA+/+S/suQDXvfxc1ti0ioIC/ybK5o5BbJbSJj1pD+HLXnu0DBlmEaIIzNjbfi6VhErydNeAmgX2MPCu8ZxMaNJptlBjSi6zv+VbKOcSHFVgwxXY/CFc6AI7Hzc14kzBni7xPJtFgZnxp/S+WJLFAsvEYWiko04vKMMKbOtK7Y9/+h/4mmchkFWkWz6VxyvkzYBm9vzKjmsFFnX9PfZkbPYl0BSVBy7CzvNwvqsfm3/WMct1WXUy65h1lyNMb9CS9iEsUouVls3w/tDsTeCZDjDxduhqKqHk5ZJpaprgQ/VZleug3KOnl/1dJ6QvjL4Z5uohbAx2+fBWG/ziY7icTFHLp4W96ug1lM3l0eCxvIhQicWIqBu/IbhyLDz7cErCiRup6qX5ej/2u4iXVaFyVdlxfUyFN0UojbJPGlozH4B5o+DAJfh1GxjR+VYs2deNFrx2vELa+qIfSqAxUtqkW61iXvY7+zJ55+/mFGHcsN0FJ8+a89Y1RoL3xWVF85TwF8ahBZY16RtSzEtRBRq5RmTogbqtn6GGh+vDThHiLWVyadYstffvl/Q1cu8LHnrc/giMxjzdOxNrCU6rsry1Qv5sflkQ1x8qjN5VJWvD2C2cQGMpwmG4t8lJUUAtobDds1l3coJcnVulox2LdU4xzyc62berWmbfG4GSKo80SVKK0gfjfIWaGDXFcoJW32dZ6yR5x4hYuEafUaixbcYaX3cT7NlVLfMGXGAmq4nPHlz2YvMjbJ41k4iSbYOSylBz6VThZ+2dbPzga3Jj4Todhcd6FZ4XAd8DJwZucqAF3q4gPgCWZ78GK2/S76nFBonxSKhzZfoc5ydpxGNpy2Q5HFCr0mew2WjZPOJmXZcMuMDgFZiPi1Dv3SRuXmTOqdWhRV28ZHkc3hGXw+VN+rAK67GYjWD1VCAYd/Q9borHZrWpaymTjoWv6igtZh0E59OAWnYbMIGljbrDGc4L3g3eRQNqB83A89bo4zb81HYodV06VKkb+S4b4/slMbFRn7JsaiTGF7JpZu5S/ARH8FjSMkUaja35cZ1lCTUBNXPwzhHLRmAywd7dcZlb2Bhs1C3EGNTlsOr0eLkyZ7kOdYawyoJXRCj2PDArbjvguRxVl1d2rZXGCa36oO2zBmWexLCD+ExwHai91M6WszOkc06Vfi5msc4QNzmrO7VsIbEiSCTYubtaXiiowNJmfcBssumVniGw2XaY6Jl3gN1W2oj0fTrUY9PIf7HB0Cxv0ifUZhF+SlxzuZy4i1ofV5NOyu5ltXiqvlL+VlCBGWNzV+vX7RgHnRj3JXPeRKZ6ZtP0fBbviacugTItoOakY60PasalLTuIx3dIsrh+rZwKIy6YR9iOmX7z6zUmbTwhQq1l82gugtk20zRvqrKJDrZeKaX9/vd42oIay7kzQ+aaS/C8x3WEtZc9tu2PS6TXPZEFZibx4w36YMKl2lRPIti9xY2haQh4LmcQbqBMSBPpcX2zPKDB91m8Oy4no8LIi2D3QRZW6Uxs6sLQtMzhNkfq724zTf2aKutH+rwej0gt217eBLONLKzWh8z/wWgImr1RCKgZ0h4N4rJk59pUIupPK4jAzAQWxPU7QJ3t8MW+YjMXNfW55ivriy+xbfv23C9ToootqEAzeEDTplqV+X3FZibbWqlE0iCwZOdr/adWcBfNtarzqvS7tkWt1QtNE2uGGrAhNpzXty8qDLV7IjBDUy3ioszHwspk2lux5tOgHkt3xaU1quuF7V9wF+2Rpk0dwjhTXypcQ9lYdD9bB4LaPSPYPdOqsAcYh8336yulOSyF/vT7P83Gv9qVBJysAAAAAElFTkSuQmCC"},"4u4S":function(k,z){k.exports="data:image/png;base64,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"},"55Ip":function(k,z,o){"use strict";o.d(z,"a",function(){return s});var P=o("Ty5D"),g=o("dI71"),T=o("q1tI"),b=o.n(T),y=o("YS25"),x=o("17x9"),O=o.n(x),m=o("wx14"),e=o("zLVn"),f=o("9R94"),a=function(S){Object(g.a)(_,S);function _(){for(var U,L=arguments.length,N=new Array(L),V=0;V<L;V++)N[V]=arguments[V];return U=S.call.apply(S,[this].concat(N))||this,U.history=Object(y.a)(U.props),U}var A=_.prototype;return A.render=function(){return b.a.createElement(P.c,{history:this.history,children:this.props.children})},_}(b.a.Component),u=function(S){Object(g.a)(_,S);function _(){for(var U,L=arguments.length,N=new Array(L),V=0;V<L;V++)N[V]=arguments[V];return U=S.call.apply(S,[this].concat(N))||this,U.history=Object(y.b)(U.props),U}var A=_.prototype;return A.render=function(){return b.a.createElement(P.c,{history:this.history,children:this.props.children})},_}(b.a.Component),r=function(_,A){return typeof _=="function"?_(A):_},i=function(_,A){return typeof _=="string"?Object(y.c)(_,null,null,A):_},n=function(_){return _},l=b.a.forwardRef;typeof l=="undefined"&&(l=n);function h(S){return!!(S.metaKey||S.altKey||S.ctrlKey||S.shiftKey)}var d=l(function(S,_){var A=S.innerRef,U=S.navigate,L=S.onClick,N=Object(e.a)(S,["innerRef","navigate","onClick"]),V=N.target,H=Object(m.a)({},N,{onClick:function(W){try{L&&L(W)}catch(F){throw W.preventDefault(),F}!W.defaultPrevented&&W.button===0&&(!V||V==="_self")&&!h(W)&&(W.preventDefault(),U())}});return n!==l?H.ref=_||A:H.ref=A,b.a.createElement("a",H)}),s=l(function(S,_){var A=S.component,U=A===void 0?d:A,L=S.replace,N=S.to,V=S.innerRef,H=Object(e.a)(S,["component","replace","to","innerRef"]);return b.a.createElement(P.e.Consumer,null,function(D){D||Object(f.a)(!1);var W=D.history,F=i(r(N,D.location),D.location),I=F?W.createHref(F):"",K=Object(m.a)({},H,{href:I,navigate:function(){var he=r(N,D.location),de=L?W.replace:W.push;de(he)}});return n!==l?K.ref=_||V:K.innerRef=V,b.a.createElement(U,K)})});if(!1)var c,w;var E=function(_){return _},v=b.a.forwardRef;typeof v=="undefined"&&(v=E);function R(){for(var S=arguments.length,_=new Array(S),A=0;A<S;A++)_[A]=arguments[A];return _.filter(function(U){return U}).join(" ")}var M=v(function(S,_){var A=S["aria-current"],U=A===void 0?"page":A,L=S.activeClassName,N=L===void 0?"active":L,V=S.activeStyle,H=S.className,D=S.exact,W=S.isActive,F=S.location,I=S.sensitive,K=S.strict,ee=S.style,he=S.to,de=S.innerRef,Se=Object(e.a)(S,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return b.a.createElement(P.e.Consumer,null,function(Te){Te||Object(f.a)(!1);var ce=F||Te.location,be=i(r(he,ce),ce),Ee=be.pathname,ue=Ee&&Ee.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),le=ue?Object(P.f)(ce.pathname,{path:ue,exact:D,sensitive:I,strict:K}):null,$=!!(W?W(le,ce):le),me=$?R(H,N):H,re=$?Object(m.a)({},ee,{},V):ee,ae=Object(m.a)({"aria-current":$&&U||null,className:me,style:re,to:be},Se);return E!==v?ae.ref=_||de:ae.innerRef=de,b.a.createElement(s,ae)})});if(!1)var C},"5D2P":function(k,z){k.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(k,z,o){"use strict";var P,g;function T(b,y,x){var O=function(m,e){return b.js_beautify(m,e)};return O.js=b.js_beautify,O.css=y.css_beautify,O.html=x.html_beautify,O.js_beautify=b.js_beautify,O.css_beautify=y.css_beautify,O.html_beautify=x.html_beautify,O}!(P=[o("6UM0"),o("TXwP"),o("psGv")],g=function(b,y,x){return T(b,y,x)}.apply(z,P),g!==void 0&&(k.exports=g))},"5Y4S":function(k,z,o){"use strict";o.d(z,"a",function(){return T});var P=o("MNsG");const g=P.b.performance&&typeof P.b.performance.now=="function";class T{constructor(b){this._highResolution=g&&b,this._startTime=this._now(),this._stopTime=-1}static create(b=!0){return new T(b)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?P.b.performance.now():Date.now()}}},"5hvy":function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("MlIO"))})(this,function(P){return function(g){var T=P,b=T.lib,y=b.WordArray,x=b.Hasher,O=T.x64,m=O.Word,e=T.algo,f=[],a=[],u=[];(function(){for(var n=1,l=0,h=0;h<24;h++){f[n+5*l]=(h+1)*(h+2)/2%64;var d=l%5,s=(2*n+3*l)%5;n=d,l=s}for(var n=0;n<5;n++)for(var l=0;l<5;l++)a[n+5*l]=l+(2*n+3*l)%5*5;for(var c=1,w=0;w<24;w++){for(var E=0,v=0,R=0;R<7;R++){if(c&1){var M=(1<<R)-1;M<32?v^=1<<M:E^=1<<M-32}c&128?c=c<<1^113:c<<=1}u[w]=m.create(E,v)}})();var r=[];(function(){for(var n=0;n<25;n++)r[n]=m.create()})();var i=e.SHA3=x.extend({cfg:x.cfg.extend({outputLength:512}),_doReset:function(){for(var n=this._state=[],l=0;l<25;l++)n[l]=new m.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(n,l){for(var h=this._state,d=this.blockSize/2,s=0;s<d;s++){var c=n[l+2*s],w=n[l+2*s+1];c=(c<<8|c>>>24)&16711935|(c<<24|c>>>8)&4278255360,w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360;var E=h[s];E.high^=w,E.low^=c}for(var v=0;v<24;v++){for(var R=0;R<5;R++){for(var M=0,C=0,S=0;S<5;S++){var E=h[R+5*S];M^=E.high,C^=E.low}var _=r[R];_.high=M,_.low=C}for(var R=0;R<5;R++)for(var A=r[(R+4)%5],U=r[(R+1)%5],L=U.high,N=U.low,M=A.high^(L<<1|N>>>31),C=A.low^(N<<1|L>>>31),S=0;S<5;S++){var E=h[R+5*S];E.high^=M,E.low^=C}for(var V=1;V<25;V++){var M,C,E=h[V],H=E.high,D=E.low,W=f[V];W<32?(M=H<<W|D>>>32-W,C=D<<W|H>>>32-W):(M=D<<W-32|H>>>64-W,C=H<<W-32|D>>>64-W);var F=r[a[V]];F.high=M,F.low=C}var I=r[0],K=h[0];I.high=K.high,I.low=K.low;for(var R=0;R<5;R++)for(var S=0;S<5;S++){var V=R+5*S,E=h[V],ee=r[V],he=r[(R+1)%5+5*S],de=r[(R+2)%5+5*S];E.high=ee.high^~he.high&de.high,E.low=ee.low^~he.low&de.low}var E=h[0],Se=u[v];E.high^=Se.high,E.low^=Se.low}},_doFinalize:function(){var n=this._data,l=n.words,h=this._nDataBytes*8,d=n.sigBytes*8,s=this.blockSize*32;l[d>>>5]|=1<<24-d%32,l[(g.ceil((d+1)/s)*s>>>5)-1]|=128,n.sigBytes=l.length*4,this._process();for(var c=this._state,w=this.cfg.outputLength/8,E=w/8,v=[],R=0;R<E;R++){var M=c[R],C=M.high,S=M.low;C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,v.push(S),v.push(C)}return new y.init(v,w)},clone:function(){for(var n=x.clone.call(this),l=n._state=this._state.slice(0),h=0;h<25;h++)l[h]=l[h].clone();return n}});T.SHA3=x._createHelper(i),T.HmacSHA3=x._createHmacHelper(i)}(Math),P.SHA3})},"6+eU":function(k,z,o){"use strict";o.d(z,"a",function(){return v});var P=o("wx14"),g=o("rePB"),T=o("VTBJ"),b=o("1OyB"),y=o("vuIU"),x=o("Ji7U"),O=o("LK+K"),m=o("q1tI"),e=o.n(m),f=o("TSYQ"),a=o.n(f),u=function(M){var C,S="".concat(M.rootPrefixCls,"-item"),_=a()(S,"".concat(S,"-").concat(M.page),(C={},Object(g.a)(C,"".concat(S,"-active"),M.active),Object(g.a)(C,M.className,!!M.className),Object(g.a)(C,"".concat(S,"-disabled"),!M.page),C)),A=function(){M.onClick(M.page)},U=function(N){M.onKeyPress(N,M.onClick,M.page)};return e.a.createElement("li",{title:M.showTitle?M.page:null,className:_,onClick:A,onKeyPress:U,tabIndex:"0"},M.itemRender(M.page,"page",e.a.createElement("a",{rel:"nofollow"},M.page)))},r=u,i={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},n=function(R){Object(x.a)(C,R);var M=Object(O.a)(C);function C(){var S;Object(b.a)(this,C);for(var _=arguments.length,A=new Array(_),U=0;U<_;U++)A[U]=arguments[U];return S=M.call.apply(M,[this].concat(A)),S.state={goInputText:""},S.buildOptionText=function(L){return"".concat(L," ").concat(S.props.locale.items_per_page)},S.changeSize=function(L){S.props.changeSize(Number(L))},S.handleChange=function(L){S.setState({goInputText:L.target.value})},S.handleBlur=function(L){var N=S.props,V=N.goButton,H=N.quickGo,D=N.rootPrefixCls,W=S.state.goInputText;if(V||W==="")return;if(L.relatedTarget&&(L.relatedTarget.className.indexOf("".concat(D,"-prev"))>=0||L.relatedTarget.className.indexOf("".concat(D,"-next"))>=0))return;S.setState({goInputText:""}),H(S.getValidValue())},S.go=function(L){var N=S.state.goInputText;if(N==="")return;(L.keyCode===i.ENTER||L.type==="click")&&(S.setState({goInputText:""}),S.props.quickGo(S.getValidValue()))},S}return Object(y.a)(C,[{key:"getValidValue",value:function(){var _=this.state,A=_.goInputText,U=_.current;return!A||isNaN(A)?U:Number(A)}},{key:"getPageSizeOptions",value:function(){var _=this.props,A=_.pageSize,U=_.pageSizeOptions;return U.some(function(L){return L.toString()===A.toString()})?U:U.concat([A.toString()]).sort(function(L,N){var V=isNaN(Number(L))?0:Number(L),H=isNaN(Number(N))?0:Number(N);return V-H})}},{key:"render",value:function(){var _=this,A=this.props,U=A.pageSize,L=A.locale,N=A.rootPrefixCls,V=A.changeSize,H=A.quickGo,D=A.goButton,W=A.selectComponentClass,F=A.buildOptionText,I=A.selectPrefixCls,K=A.disabled,ee=this.state.goInputText,he="".concat(N,"-options"),de=W,Se=null,Te=null,ce=null;if(!V&&!H)return null;var be=this.getPageSizeOptions();if(V&&de){var Ee=be.map(function(ue,le){return e.a.createElement(de.Option,{key:le,value:ue.toString()},(F||_.buildOptionText)(ue))});Se=e.a.createElement(de,{disabled:K,prefixCls:I,showSearch:!1,className:"".concat(he,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(U||be[0]).toString(),onChange:this.changeSize,getPopupContainer:function(le){return le.parentNode}},Ee)}return H&&(D&&(ce=typeof D=="boolean"?e.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:K,className:"".concat(he,"-quick-jumper-button")},L.jump_to_confirm):e.a.createElement("span",{onClick:this.go,onKeyUp:this.go},D)),Te=e.a.createElement("div",{className:"".concat(he,"-quick-jumper")},L.jump_to,e.a.createElement("input",{disabled:K,type:"text",value:ee,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),L.page,ce)),e.a.createElement("li",{className:"".concat(he)},Se,Te)}}]),C}(e.a.Component);n.defaultProps={pageSizeOptions:["10","20","50","100"]};var l=n,h=o("N2Kk");function d(){}function s(R){return typeof R=="number"&&isFinite(R)&&Math.floor(R)===R}function c(R,M,C){return C}function w(R,M,C){var S=typeof R=="undefined"?M.pageSize:R;return Math.floor((C.total-1)/S)+1}var E=function(R){Object(x.a)(C,R);var M=Object(O.a)(C);function C(S){var _;Object(b.a)(this,C),_=M.call(this,S),_.getJumpPrevPage=function(){return Math.max(1,_.state.current-(_.props.showLessItems?3:5))},_.getJumpNextPage=function(){return Math.min(w(void 0,_.state,_.props),_.state.current+(_.props.showLessItems?3:5))},_.getItemIcon=function(V,H){var D=_.props.prefixCls,W=V||e.a.createElement("button",{type:"button","aria-label":H,className:"".concat(D,"-item-link")});return typeof V=="function"&&(W=e.a.createElement(V,Object(T.a)({},_.props))),W},_.savePaginationNode=function(V){_.paginationNode=V},_.isValid=function(V){return s(V)&&V!==_.state.current},_.shouldDisplayQuickJumper=function(){var V=_.props,H=V.showQuickJumper,D=V.pageSize,W=V.total;return W<=D?!1:H},_.handleKeyDown=function(V){(V.keyCode===i.ARROW_UP||V.keyCode===i.ARROW_DOWN)&&V.preventDefault()},_.handleKeyUp=function(V){var H=_.getValidValue(V),D=_.state.currentInputValue;H!==D&&_.setState({currentInputValue:H}),V.keyCode===i.ENTER?_.handleChange(H):V.keyCode===i.ARROW_UP?_.handleChange(H-1):V.keyCode===i.ARROW_DOWN&&_.handleChange(H+1)},_.changePageSize=function(V){var H=_.state.current,D=w(V,_.state,_.props);H=H>D?D:H,D===0&&(H=_.state.current),typeof V=="number"&&("pageSize"in _.props||_.setState({pageSize:V}),"current"in _.props||_.setState({current:H,currentInputValue:H})),_.props.onShowSizeChange(H,V),"onChange"in _.props&&_.props.onChange&&_.props.onChange(H,V)},_.handleChange=function(V){var H=_.props.disabled,D=V;if(_.isValid(D)&&!H){var W=w(void 0,_.state,_.props);D>W?D=W:D<1&&(D=1),"current"in _.props||_.setState({current:D,currentInputValue:D});var F=_.state.pageSize;return _.props.onChange(D,F),D}return _.state.current},_.prev=function(){_.hasPrev()&&_.handleChange(_.state.current-1)},_.next=function(){_.hasNext()&&_.handleChange(_.state.current+1)},_.jumpPrev=function(){_.handleChange(_.getJumpPrevPage())},_.jumpNext=function(){_.handleChange(_.getJumpNextPage())},_.hasPrev=function(){return _.state.current>1},_.hasNext=function(){return _.state.current<w(void 0,_.state,_.props)},_.runIfEnter=function(V,H){if(V.key==="Enter"||V.charCode===13){for(var D=arguments.length,W=new Array(D>2?D-2:0),F=2;F<D;F++)W[F-2]=arguments[F];H.apply(void 0,W)}},_.runIfEnterPrev=function(V){_.runIfEnter(V,_.prev)},_.runIfEnterNext=function(V){_.runIfEnter(V,_.next)},_.runIfEnterJumpPrev=function(V){_.runIfEnter(V,_.jumpPrev)},_.runIfEnterJumpNext=function(V){_.runIfEnter(V,_.jumpNext)},_.handleGoTO=function(V){(V.keyCode===i.ENTER||V.type==="click")&&_.handleChange(_.state.currentInputValue)};var A=S.onChange!==d,U="current"in S;U&&!A&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var L=S.defaultCurrent;"current"in S&&(L=S.current);var N=S.defaultPageSize;return"pageSize"in S&&(N=S.pageSize),L=Math.min(L,w(N,void 0,S)),_.state={current:L,currentInputValue:L,pageSize:N},_}return Object(y.a)(C,[{key:"componentDidUpdate",value:function(_,A){var U=this.props.prefixCls;if(A.current!==this.state.current&&this.paginationNode){var L=this.paginationNode.querySelector(".".concat(U,"-item-").concat(A.current));L&&document.activeElement===L&&L.blur()}}},{key:"getValidValue",value:function(_){var A=_.target.value,U=w(void 0,this.state,this.props),L=this.state.currentInputValue,N;return A===""?N=A:isNaN(Number(A))?N=L:A>=U?N=U:N=Number(A),N}},{key:"getShowSizeChanger",value:function(){var _=this.props,A=_.showSizeChanger,U=_.total,L=_.totalBoundaryShowSizeChanger;return typeof A!="undefined"?A:U>L}},{key:"renderPrev",value:function(_){var A=this.props,U=A.prevIcon,L=A.itemRender,N=L(_,"prev",this.getItemIcon(U,"prev page")),V=!this.hasPrev();return Object(m.isValidElement)(N)?Object(m.cloneElement)(N,{disabled:V}):N}},{key:"renderNext",value:function(_){var A=this.props,U=A.nextIcon,L=A.itemRender,N=L(_,"next",this.getItemIcon(U,"next page")),V=!this.hasNext();return Object(m.isValidElement)(N)?Object(m.cloneElement)(N,{disabled:V}):N}},{key:"render",value:function(){var _=this,A=this.props,U=A.prefixCls,L=A.className,N=A.style,V=A.disabled,H=A.hideOnSinglePage,D=A.total,W=A.locale,F=A.showQuickJumper,I=A.showLessItems,K=A.showTitle,ee=A.showTotal,he=A.simple,de=A.itemRender,Se=A.showPrevNextJumpers,Te=A.jumpPrevIcon,ce=A.jumpNextIcon,be=A.selectComponentClass,Ee=A.selectPrefixCls,ue=A.pageSizeOptions,le=this.state,$=le.current,me=le.pageSize,re=le.currentInputValue;if(H===!0&&D<=me)return null;var ae=w(void 0,this.state,this.props),Oe=[],se=null,te=null,Q=null,J=null,ve=null,_e=F&&F.goButton,Ae=I?1:2,Qe=$-1>0?$-1:0,tt=$+1<ae?$+1:ae,dt=Object.keys(this.props).reduce(function(Ce,Ie){return(Ie.substr(0,5)==="data-"||Ie.substr(0,5)==="aria-"||Ie==="role")&&(Ce[Ie]=_.props[Ie]),Ce},{});if(he)return _e&&(typeof _e=="boolean"?ve=e.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},W.jump_to_confirm):ve=e.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},_e),ve=e.a.createElement("li",{title:K?"".concat(W.jump_to).concat($,"/").concat(ae):null,className:"".concat(U,"-simple-pager")},ve)),e.a.createElement("ul",Object(P.a)({className:a()(U,"".concat(U,"-simple"),Object(g.a)({},"".concat(U,"-disabled"),V),L),style:N,ref:this.savePaginationNode},dt),e.a.createElement("li",{title:K?W.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:a()("".concat(U,"-prev"),Object(g.a)({},"".concat(U,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(Qe)),e.a.createElement("li",{title:K?"".concat($,"/").concat(ae):null,className:"".concat(U,"-simple-pager")},e.a.createElement("input",{type:"text",value:re,disabled:V,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),e.a.createElement("span",{className:"".concat(U,"-slash")},"/"),ae),e.a.createElement("li",{title:K?W.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:a()("".concat(U,"-next"),Object(g.a)({},"".concat(U,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(tt)),ve);if(ae<=3+Ae*2){var mt={locale:W,rootPrefixCls:U,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:K,itemRender:de};ae||Oe.push(e.a.createElement(r,Object(P.a)({},mt,{key:"noPager",page:ae,className:"".concat(U,"-disabled")})));for(var vt=1;vt<=ae;vt+=1){var yt=$===vt;Oe.push(e.a.createElement(r,Object(P.a)({},mt,{key:vt,page:vt,active:yt})))}}else{var Ye=I?W.prev_3:W.prev_5,Ue=I?W.next_3:W.next_5;Se&&(se=e.a.createElement("li",{title:K?Ye:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:a()("".concat(U,"-jump-prev"),Object(g.a)({},"".concat(U,"-jump-prev-custom-icon"),!!Te))},de(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Te,"prev page"))),te=e.a.createElement("li",{title:K?Ue:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:a()("".concat(U,"-jump-next"),Object(g.a)({},"".concat(U,"-jump-next-custom-icon"),!!ce))},de(this.getJumpNextPage(),"jump-next",this.getItemIcon(ce,"next page")))),J=e.a.createElement(r,{locale:W,last:!0,rootPrefixCls:U,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ae,page:ae,active:!1,showTitle:K,itemRender:de}),Q=e.a.createElement(r,{locale:W,rootPrefixCls:U,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:K,itemRender:de});var ft=Math.max(1,$-Ae),jt=Math.min($+Ae,ae);$-1<=Ae&&(jt=1+Ae*2),ae-$<=Ae&&(ft=ae-Ae*2);for(var bt=ft;bt<=jt;bt+=1){var Pt=$===bt;Oe.push(e.a.createElement(r,{locale:W,rootPrefixCls:U,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:bt,page:bt,active:Pt,showTitle:K,itemRender:de}))}$-1>=Ae*2&&$!==1+2&&(Oe[0]=Object(m.cloneElement)(Oe[0],{className:"".concat(U,"-item-after-jump-prev")}),Oe.unshift(se)),ae-$>=Ae*2&&$!==ae-2&&(Oe[Oe.length-1]=Object(m.cloneElement)(Oe[Oe.length-1],{className:"".concat(U,"-item-before-jump-next")}),Oe.push(te)),ft!==1&&Oe.unshift(Q),jt!==ae&&Oe.push(J)}var it=null;ee&&(it=e.a.createElement("li",{className:"".concat(U,"-total-text")},ee(D,[D===0?0:($-1)*me+1,$*me>D?D:$*me])));var He=!this.hasPrev()||!ae,Ge=!this.hasNext()||!ae;return e.a.createElement("ul",Object(P.a)({className:a()(U,L,Object(g.a)({},"".concat(U,"-disabled"),V)),style:N,unselectable:"unselectable",ref:this.savePaginationNode},dt),it,e.a.createElement("li",{title:K?W.prev_page:null,onClick:this.prev,tabIndex:He?null:0,onKeyPress:this.runIfEnterPrev,className:a()("".concat(U,"-prev"),Object(g.a)({},"".concat(U,"-disabled"),He)),"aria-disabled":He},this.renderPrev(Qe)),Oe,e.a.createElement("li",{title:K?W.next_page:null,onClick:this.next,tabIndex:Ge?null:0,onKeyPress:this.runIfEnterNext,className:a()("".concat(U,"-next"),Object(g.a)({},"".concat(U,"-disabled"),Ge)),"aria-disabled":Ge},this.renderNext(tt)),e.a.createElement(l,{disabled:V,locale:W,rootPrefixCls:U,selectComponentClass:be,selectPrefixCls:Ee,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:$,pageSize:me,pageSizeOptions:ue,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:_e}))}}],[{key:"getDerivedStateFromProps",value:function(_,A){var U={};if("current"in _&&(U.current=_.current,_.current!==A.current&&(U.currentInputValue=U.current)),"pageSize"in _&&_.pageSize!==A.pageSize){var L=A.current,N=w(_.pageSize,A,_);L=L>N?N:L,"current"in _||(U.current=L,U.currentInputValue=L),U.pageSize=_.pageSize}return U}}]),C}(e.a.Component);E.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:d,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:d,locale:h.a,style:{},itemRender:c,totalBoundaryShowSizeChanger:50};var v=E},"6Fuo":function(k,z,o){k.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(k,z,o){"use strict";var P=o("wCXF"),g=o("n6Qo");o.d(z,"b",function(){return g.a});var T=o("IBYe"),b=o("6eGT"),y=o("hW8S");o.d(z,"a",function(){return y.a}),z.c=P.b},"6UM0":function(k,z,o){var P,g;(function(){var T;(function(){"use strict";var y=[function(e,f,a){var u=a(1).Beautifier,r=a(5).Options;function i(n,l){var h=new u(n,l);return h.beautify()}e.exports=i,e.exports.defaultOptions=function(){return new r}},function(e,f,a){var u=a(2).Output,r=a(3).Token,i=a(4),n=a(5).Options,l=a(7).Tokenizer,h=a(7).line_starters,d=a(7).positionable_operators,s=a(7).TOKEN;function c(I,K){return K.indexOf(I)!==-1}function w(I){return I.replace(/^\s+/g,"")}function E(I){for(var K={},ee=0;ee<I.length;ee++)K[I[ee].replace(/-/g,"_")]=I[ee];return K}function v(I,K){return I&&I.type===s.RESERVED&&I.text===K}function R(I,K){return I&&I.type===s.RESERVED&&c(I.text,K)}var M=["case","return","do","if","throw","else","await","break","continue","async"],C=["before-newline","after-newline","preserve-newline"],S=E(C),_=[S.before_newline,S.preserve_newline],A={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function U(I,K){if(K.multiline_frame||K.mode===A.ForInitializer||K.mode===A.Conditional)return;I.remove_indent(K.start_line_index)}function L(I){I=I.replace(i.allLineBreaks,`
|
|
|
`);for(var K=[],ee=I.indexOf(`
|
|
|
`);ee!==-1;)K.push(I.substring(0,ee)),I=I.substring(ee+1),ee=I.indexOf(`
|
|
|
`);return I.length&&K.push(I),K}function N(I){return I===A.ArrayLiteral}function V(I){return c(I,[A.Expression,A.ForInitializer,A.Conditional])}function H(I,K){for(var ee=0;ee<I.length;ee++){var he=I[ee].trim();if(he.charAt(0)!==K)return!1}return!0}function D(I,K){for(var ee=0,he=I.length,de;ee<he;ee++)if(de=I[ee],de&&de.indexOf(K)!==0)return!1;return!0}function W(I,K){K=K||{},this._source_text=I||"",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(K)}W.prototype.create_flags=function(I,K){var ee=0;I&&(ee=I.indentation_level,!this._output.just_added_newline()&&I.line_indent_level>ee&&(ee=I.line_indent_level));var he={mode:K,parent:I,last_token:I?I.last_token:new r(s.START_BLOCK,""),last_word:I?I.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:ee,alignment:0,line_indent_level:I?I.line_indent_level:ee,start_line_index:this._output.get_line_number(),ternary_depth:0};return he},W.prototype._reset=function(I){var K=I.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new u(this._options,K),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(A.BlockStatement);var ee=new l(I,this._options);return this._tokens=ee.tokenize(),I},W.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var I,K=this._reset(this._source_text),ee=this._options.eol;this._options.eol==="auto"&&(ee=`
|
|
|
`,K&&i.lineBreak.test(K||"")&&(ee=K.match(i.lineBreak)[0]));for(var he=this._tokens.next();he;)this.handle_token(he),this._last_last_text=this._flags.last_token.text,this._flags.last_token=he,he=this._tokens.next();return I=this._output.get_code(ee),I},W.prototype.handle_token=function(I,K){I.type===s.START_EXPR?this.handle_start_expr(I):I.type===s.END_EXPR?this.handle_end_expr(I):I.type===s.START_BLOCK?this.handle_start_block(I):I.type===s.END_BLOCK?this.handle_end_block(I):I.type===s.WORD?this.handle_word(I):I.type===s.RESERVED?this.handle_word(I):I.type===s.SEMICOLON?this.handle_semicolon(I):I.type===s.STRING?this.handle_string(I):I.type===s.EQUALS?this.handle_equals(I):I.type===s.OPERATOR?this.handle_operator(I):I.type===s.COMMA?this.handle_comma(I):I.type===s.BLOCK_COMMENT?this.handle_block_comment(I,K):I.type===s.COMMENT?this.handle_comment(I,K):I.type===s.DOT?this.handle_dot(I):I.type===s.EOF?this.handle_eof(I):I.type===s.UNKNOWN?this.handle_unknown(I,K):this.handle_unknown(I,K)},W.prototype.handle_whitespace_and_comments=function(I,K){var ee=I.newlines,he=this._options.keep_array_indentation&&N(this._flags.mode);if(I.comments_before)for(var de=I.comments_before.next();de;)this.handle_whitespace_and_comments(de,K),this.handle_token(de,K),de=I.comments_before.next();if(he)for(var Se=0;Se<ee;Se+=1)this.print_newline(Se>0,K);else if(this._options.max_preserve_newlines&&ee>this._options.max_preserve_newlines&&(ee=this._options.max_preserve_newlines),this._options.preserve_newlines&&ee>1){this.print_newline(!1,K);for(var Te=1;Te<ee;Te+=1)this.print_newline(!0,K)}};var F=["async","break","continue","return","throw","yield"];W.prototype.allow_wrap_or_preserved_newline=function(I,K){if(K=K===void 0?!1:K,this._output.just_added_newline())return;var ee=this._options.preserve_newlines&&I.newlines||K,he=c(this._flags.last_token.text,d)||c(I.text,d);if(he){var de=c(this._flags.last_token.text,d)&&c(this._options.operator_position,_)||c(I.text,d);ee=ee&&de}if(ee)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(R(this._flags.last_token,F))return;this._output.set_wrap_point()}},W.prototype.print_newline=function(I,K){if(!K&&(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 ee=this._tokens.peek();this._flags.mode===A.Statement&&!(this._flags.if_block&&v(ee,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(I)&&(this._flags.multiline_frame=!0)},W.prototype.print_token_line_indentation=function(I){this._output.just_added_newline()&&(this._options.keep_array_indentation&&I.newlines&&(I.text==="["||N(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(I.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))},W.prototype.print_token=function(I){if(this._output.raw){this._output.add_raw_token(I);return}if(this._options.comma_first&&I.previous&&I.previous.type===s.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var K=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(K),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(I),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(I),this._output.non_breaking_space=!0,this._output.add_token(I.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},W.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},W.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))},W.prototype.set_mode=function(I){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,I),this._flags=this.create_flags(this._previous_flags,I),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},W.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===A.Statement&&U(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},W.prototype.start_of_object_property=function(){return this._flags.parent.mode===A.ObjectLiteral&&this._flags.mode===A.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||R(this._flags.last_token,["get","set"]))},W.prototype.start_of_statement=function(I){var K=!1;return K=K||R(this._flags.last_token,["var","let","const"])&&I.type===s.WORD,K=K||v(this._flags.last_token,"do"),K=K||!(this._flags.parent.mode===A.ObjectLiteral&&this._flags.mode===A.Statement)&&R(this._flags.last_token,F)&&!I.newlines,K=K||v(this._flags.last_token,"else")&&!(v(I,"if")&&!I.comments_before),K=K||this._flags.last_token.type===s.END_EXPR&&(this._previous_flags.mode===A.ForInitializer||this._previous_flags.mode===A.Conditional),K=K||this._flags.last_token.type===s.WORD&&this._flags.mode===A.BlockStatement&&!this._flags.in_case&&!(I.text==="--"||I.text==="++")&&this._last_last_text!=="function"&&I.type!==s.WORD&&I.type!==s.RESERVED,K=K||this._flags.mode===A.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||R(this._flags.last_token,["get","set"])),K?(this.set_mode(A.Statement),this.indent(),this.handle_whitespace_and_comments(I,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(I,R(I,["do","for","if","while"])),!0):!1},W.prototype.handle_start_expr=function(I){this.start_of_statement(I)||this.handle_whitespace_and_comments(I);var K=A.Expression;if(I.text==="["){if(this._flags.last_token.type===s.WORD||this._flags.last_token.text===")"){R(this._flags.last_token,h)&&(this._output.space_before_token=!0),this.print_token(I),this.set_mode(K),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}K=A.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())),c(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,K=A.ForInitializer):c(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,K=A.Conditional):c(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&I.whitespace_before===""?this._output.space_before_token=!1:(c(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(I);else if(this._flags.last_token.type===s.WORD){this._output.space_before_token=!1;var ee=this._tokens.peek(-3);if(this._options.space_after_named_function&&ee){var he=this._tokens.peek(-4);R(ee,["async","function"])||ee.text==="*"&&R(he,["async","function"])?this._output.space_before_token=!0:this._flags.mode===A.ObjectLiteral?(ee.text==="{"||ee.text===","||ee.text==="*"&&(he.text==="{"||he.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(I);(this._flags.last_token.type===s.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(c(this._last_last_text,["function","yield"])||this._flags.mode===A.ObjectLiteral&&c(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(I,I.newlines),this.print_token(I),this.set_mode(K),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},W.prototype.handle_end_expr=function(I){for(;this._flags.mode===A.Statement;)this.restore_mode();this.handle_whitespace_and_comments(I),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(I,I.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(I),this.restore_mode(),U(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===A.Conditional&&(this._previous_flags.mode=A.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},W.prototype.handle_start_block=function(I){this.handle_whitespace_and_comments(I);var K=this._tokens.peek(),ee=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===s.END_EXPR?(this.set_mode(A.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(A.BlockStatement):ee&&(c(ee.text,[":",","])&&c(K.type,[s.STRING,s.WORD,s.RESERVED])||c(K.text,["get","set","..."])&&c(ee.type,[s.WORD,s.RESERVED]))?c(this._last_last_text,["class","interface"])&&!c(ee.text,[":",","])?this.set_mode(A.BlockStatement):this.set_mode(A.ObjectLiteral):this._flags.last_token.type===s.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(A.BlockStatement):c(this._flags.last_token.type,[s.EQUALS,s.START_EXPR,s.COMMA,s.OPERATOR])||R(this._flags.last_token,["return","throw","import","default"])?this.set_mode(A.ObjectLiteral):this.set_mode(A.BlockStatement),this._flags.last_token&&(R(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0));var he=!K.comments_before&&K.text==="}",de=he&&this._flags.last_word==="function"&&this._flags.last_token.type===s.END_EXPR;if(this._options.brace_preserve_inline){var Se=0,Te=null;this._flags.inline_frame=!0;do if(Se+=1,Te=this._tokens.peek(Se-1),Te.newlines){this._flags.inline_frame=!1;break}while(Te.type!==s.EOF&&!(Te.type===s.END_BLOCK&&Te.opened===I))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&I.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==s.OPERATOR&&(de||this._flags.last_token.type===s.EQUALS||R(this._flags.last_token,M)&&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(I),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(I),this.indent(),!he&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},W.prototype.handle_end_block=function(I){for(this.handle_whitespace_and_comments(I);this._flags.mode===A.Statement;)this.restore_mode();var K=this._flags.last_token.type===s.START_BLOCK;this._flags.inline_frame&&!K?this._output.space_before_token=!0:this._options.brace_style==="expand"?K||this.print_newline():K||(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(I)},W.prototype.handle_word=function(I){if(I.type===s.RESERVED){if(c(I.text,["set","get"])&&this._flags.mode!==A.ObjectLiteral)I.type=s.WORD;else if(I.text==="import"&&c(this._tokens.peek().text,["(","."]))I.type=s.WORD;else if(c(I.text,["as","from"])&&!this._flags.import_block)I.type=s.WORD;else if(this._flags.mode===A.ObjectLiteral){var K=this._tokens.peek();K.text===":"&&(I.type=s.WORD)}}if(this.start_of_statement(I)?R(this._flags.last_token,["var","let","const"])&&I.type===s.WORD&&(this._flags.declaration_statement=!0):I.newlines&&!V(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||!R(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(I),this.print_newline()):this.handle_whitespace_and_comments(I),this._flags.do_block&&!this._flags.do_while)if(v(I,"while")){this._output.space_before_token=!0,this.print_token(I),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(I,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===A.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&R(I,["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(I),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(I)),v(I,"function")){(c(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(c(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===s.OPERATOR))&&(!this._output.just_added_blankline()&&!I.comments_before&&(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD?R(this._flags.last_token,["get","set","new","export"])||R(this._flags.last_token,F)?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&&(V(this._flags.mode)||N(this._flags.mode))||this.print_newline(),this.print_token(I),this._flags.last_word=I.text;return}var ee="NONE";if(this._flags.last_token.type===s.END_BLOCK?this._previous_flags.inline_frame?ee="SPACE":R(I,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&I.newlines?ee="NEWLINE":(ee="SPACE",this._output.space_before_token=!0):ee="NEWLINE":this._flags.last_token.type===s.SEMICOLON&&this._flags.mode===A.BlockStatement?ee="NEWLINE":this._flags.last_token.type===s.SEMICOLON&&V(this._flags.mode)?ee="SPACE":this._flags.last_token.type===s.STRING?ee="NEWLINE":this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD||this._flags.last_token.text==="*"&&(c(this._last_last_text,["function","yield"])||this._flags.mode===A.ObjectLiteral&&c(this._last_last_text,["{",","]))?ee="SPACE":this._flags.last_token.type===s.START_BLOCK?this._flags.inline_frame?ee="SPACE":ee="NEWLINE":this._flags.last_token.type===s.END_EXPR&&(this._output.space_before_token=!0,ee="NEWLINE"),R(I,h)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?ee="SPACE":ee="NEWLINE"),R(I,["else","catch","finally"]))if((!(this._flags.last_token.type===s.END_BLOCK&&this._previous_flags.mode===A.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&I.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var he=this._output.current_line;he.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else ee==="NEWLINE"?R(this._flags.last_token,M)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&R(I,["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||!R(I,["var","let","const"]))&&this._flags.last_token.text!==":"&&(v(I,"if")&&v(I.previous,"else")?this._output.space_before_token=!0:this.print_newline()):R(I,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():ee==="SPACE"&&(this._output.space_before_token=!0);I.previous&&(I.previous.type===s.WORD||I.previous.type===s.RESERVED)&&(this._output.space_before_token=!0),this.print_token(I),this._flags.last_word=I.text,I.type===s.RESERVED&&(I.text==="do"?this._flags.do_block=!0:I.text==="if"?this._flags.if_block=!0:I.text==="import"?this._flags.import_block=!0:this._flags.import_block&&v(I,"from")&&(this._flags.import_block=!1))},W.prototype.handle_semicolon=function(I){this.start_of_statement(I)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(I);for(var K=this._tokens.peek();this._flags.mode===A.Statement&&!(this._flags.if_block&&v(K,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(I)},W.prototype.handle_string=function(I){I.text.startsWith("`")&&I.newlines===0&&I.whitespace_before===""&&(I.previous.text===")"||this._flags.last_token.type===s.WORD)||(this.start_of_statement(I)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(I),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(I):I.text.startsWith("`")&&this._flags.last_token.type===s.END_EXPR&&(I.previous.text==="]"||I.previous.text===")")&&I.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(I)},W.prototype.handle_equals=function(I){this.start_of_statement(I)||this.handle_whitespace_and_comments(I),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(I),this._output.space_before_token=!0},W.prototype.handle_comma=function(I){this.handle_whitespace_and_comments(I,!0),this.print_token(I),this._output.space_before_token=!0,this._flags.declaration_statement?(V(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(I)):this._flags.mode===A.ObjectLiteral||this._flags.mode===A.Statement&&this._flags.parent.mode===A.ObjectLiteral?(this._flags.mode===A.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(I)},W.prototype.handle_operator=function(I){var K=I.text==="*"&&(R(this._flags.last_token,["function","yield"])||c(this._flags.last_token.type,[s.START_BLOCK,s.COMMA,s.END_BLOCK,s.SEMICOLON])),ee=c(I.text,["-","+"])&&(c(this._flags.last_token.type,[s.START_BLOCK,s.START_EXPR,s.EQUALS,s.OPERATOR])||c(this._flags.last_token.text,h)||this._flags.last_token.text===",");if(!this.start_of_statement(I)){var he=!K;this.handle_whitespace_and_comments(I,he)}if(I.text==="*"&&this._flags.last_token.type===s.DOT){this.print_token(I);return}if(I.text==="::"){this.print_token(I);return}if(this._flags.last_token.type===s.OPERATOR&&c(this._options.operator_position,_)&&this.allow_wrap_or_preserved_newline(I),I.text===":"&&this._flags.in_case){this.print_token(I),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,Se=!0,Te=!1;if(I.text===":"?this._flags.ternary_depth===0?de=!1:(this._flags.ternary_depth-=1,Te=!0):I.text==="?"&&(this._flags.ternary_depth+=1),!ee&&!K&&this._options.preserve_newlines&&c(I.text,d)){var ce=I.text===":",be=ce&&Te,Ee=ce&&!Te;switch(this._options.operator_position){case S.before_newline:this._output.space_before_token=!Ee,this.print_token(I),(!ce||be)&&this.allow_wrap_or_preserved_newline(I),this._output.space_before_token=!0;return;case S.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(I):this._output.space_before_token=!1,this.print_token(I),this._output.space_before_token=!0;return;case S.preserve_newline:Ee||this.allow_wrap_or_preserved_newline(I),de=!(this._output.just_added_newline()||Ee),this._output.space_before_token=de,this.print_token(I),this._output.space_before_token=!0;return}}if(K){this.allow_wrap_or_preserved_newline(I),de=!1;var ue=this._tokens.peek();Se=ue&&c(ue.type,[s.WORD,s.RESERVED])}else if(I.text==="...")this.allow_wrap_or_preserved_newline(I),de=this._flags.last_token.type===s.START_BLOCK,Se=!1;else if(c(I.text,["--","++","!","~"])||ee){if((this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR)&&this.allow_wrap_or_preserved_newline(I),de=!1,Se=!1,I.newlines&&(I.text==="--"||I.text==="++"||I.text==="~")){var le=R(this._flags.last_token,M)&&I.newlines;le&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(le,!0)}this._flags.last_token.text===";"&&V(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==="]"&&(I.text==="--"||I.text==="++")):this._flags.last_token.type===s.OPERATOR&&(de=c(I.text,["--","-","++","+"])&&c(this._flags.last_token.text,["--","-","++","+"]),c(I.text,["+","-"])&&c(this._flags.last_token.text,["--","++"])&&(Se=!0)),(this._flags.mode===A.BlockStatement&&!this._flags.inline_frame||this._flags.mode===A.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(I),this._output.space_before_token=Se},W.prototype.handle_block_comment=function(I,K){if(this._output.raw){this._output.add_raw_token(I),I.directives&&I.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(I.directives){this.print_newline(!1,K),this.print_token(I),I.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!i.newline.test(I.text)&&!I.newlines){this._output.space_before_token=!0,this.print_token(I),this._output.space_before_token=!0;return}else this.print_block_commment(I,K)},W.prototype.print_block_commment=function(I,K){var ee=L(I.text),he,de=!1,Se=!1,Te=I.whitespace_before,ce=Te.length;if(this.print_newline(!1,K),this.print_token_line_indentation(I),this._output.add_token(ee[0]),this.print_newline(!1,K),ee.length>1){for(ee=ee.slice(1),de=H(ee,"*"),Se=D(ee,Te),de&&(this._flags.alignment=1),he=0;he<ee.length;he++)de?(this.print_token_line_indentation(I),this._output.add_token(w(ee[he]))):Se&&ee[he]?(this.print_token_line_indentation(I),this._output.add_token(ee[he].substring(ce))):(this._output.current_line.set_indent(-1),this._output.add_token(ee[he])),this.print_newline(!1,K);this._flags.alignment=0}},W.prototype.handle_comment=function(I,K){I.newlines?this.print_newline(!1,K):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(I),this.print_newline(!1,K)},W.prototype.handle_dot=function(I){this.start_of_statement(I)||this.handle_whitespace_and_comments(I,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),R(this._flags.last_token,M)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(I,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(I)},W.prototype.handle_unknown=function(I,K){this.print_token(I),I.text[I.text.length-1]===`
|
|
|
`&&this.print_newline(!1,K)},W.prototype.handle_eof=function(I){for(;this._flags.mode===A.Statement;)this.restore_mode();this.handle_whitespace_and_comments(I)},e.exports.Beautifier=W},function(e){function f(r){this.__parent=r,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=[]}f.prototype.clone_empty=function(){var r=new f(this.__parent);return r.set_indent(this.__indent_count,this.__alignment_count),r},f.prototype.item=function(r){return r<0?this.__items[this.__items.length+r]:this.__items[r]},f.prototype.has_match=function(r){for(var i=this.__items.length-1;i>=0;i--)if(this.__items[i].match(r))return!0;return!1},f.prototype.set_indent=function(r,i){this.is_empty()&&(this.__indent_count=r||0,this.__alignment_count=i||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},f.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)},f.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},f.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var r=this.__parent.current_line;return r.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),r.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),r.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,r.__items[0]===" "&&(r.__items.splice(0,1),r.__character_count-=1),!0}return!1},f.prototype.is_empty=function(){return this.__items.length===0},f.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},f.prototype.push=function(r){this.__items.push(r);var i=r.lastIndexOf(`
|
|
|
`);i!==-1?this.__character_count=r.length-i:this.__character_count+=r.length},f.prototype.pop=function(){var r=null;return this.is_empty()||(r=this.__items.pop(),this.__character_count-=r.length),r},f.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},f.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},f.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},f.prototype.toString=function(){var r="";return this.is_empty()?this.__parent.indent_empty_lines&&(r=this.__parent.get_indent_string(this.__indent_count)):(r=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),r+=this.__items.join("")),r};function a(r,i){this.__cache=[""],this.__indent_size=r.indent_size,this.__indent_string=r.indent_char,r.indent_with_tabs||(this.__indent_string=new Array(r.indent_size+1).join(r.indent_char)),i=i||"",r.indent_level>0&&(i=new Array(r.indent_level+1).join(this.__indent_string)),this.__base_string=i,this.__base_string_length=i.length}a.prototype.get_indent_size=function(r,i){var n=this.__base_string_length;return i=i||0,r<0&&(n=0),n+=r*this.__indent_size,n+=i,n},a.prototype.get_indent_string=function(r,i){var n=this.__base_string;return i=i||0,r<0&&(r=0,n=""),i+=r*this.__indent_size,this.__ensure_cache(i),n+=this.__cache[i],n},a.prototype.__ensure_cache=function(r){for(;r>=this.__cache.length;)this.__add_column()},a.prototype.__add_column=function(){var r=this.__cache.length,i=0,n="";this.__indent_size&&r>=this.__indent_size&&(i=Math.floor(r/this.__indent_size),r-=i*this.__indent_size,n=new Array(i+1).join(this.__indent_string)),r&&(n+=new Array(r+1).join(" ")),this.__cache.push(n)};function u(r,i){this.__indent_cache=new a(r,i),this.raw=!1,this._end_with_newline=r.end_with_newline,this.indent_size=r.indent_size,this.wrap_line_length=r.wrap_line_length,this.indent_empty_lines=r.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new f(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(r,i){return this.__indent_cache.get_indent_string(r,i)},u.prototype.get_indent_size=function(r,i){return this.__indent_cache.get_indent_size(r,i)},u.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},u.prototype.add_new_line=function(r){return this.is_empty()||!r&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},u.prototype.get_code=function(r){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 n=this.__lines.join(`
|
|
|
`);return r!==`
|
|
|
`&&(n=n.replace(/[\n]/g,r)),n},u.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},u.prototype.set_indent=function(r,i){return r=r||0,i=i||0,this.next_line.set_indent(r,i),this.__lines.length>1?(this.current_line.set_indent(r,i),!0):(this.current_line.set_indent(),!1)},u.prototype.add_raw_token=function(r){for(var i=0;i<r.newlines;i++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(r.whitespace_before),this.current_line.push(r.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},u.prototype.add_token=function(r){this.__add_space_before_token(),this.current_line.push(r),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(r){for(var i=this.__lines.length;r<i;)this.__lines[r]._remove_indent(),r++;this.current_line._remove_wrap_indent()},u.prototype.trim=function(r){for(r=r===void 0?!1:r,this.current_line.trim();r&&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(r,i){for(var n=this.__lines.length-2;n>=0;){var l=this.__lines[n];if(l.is_empty())break;if(l.item(0).indexOf(r)!==0&&l.item(-1)!==i){this.__lines.splice(n+1,0,new f(this)),this.previous_line=this.__lines[this.__lines.length-2];break}n--}},e.exports.Output=u},function(e){function f(a,u,r,i){this.type=a,this.text=u,this.comments_before=null,this.newlines=r||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}e.exports.Token=f},function(e,f){var a="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",u="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",r="\\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",i="\\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}|["+a+r+"])",l="(?:\\\\u[0-9a-fA-F]{4}|["+u+r+i+"])*";f.identifier=new RegExp(n+l,"g"),f.identifierStart=new RegExp(n),f.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+u+r+i+"])+");var h=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;f.newline=/[\n\r\u2028\u2029]/,f.lineBreak=new RegExp(`\r
|
|
|
|`+f.newline.source),f.allLineBreaks=new RegExp(f.lineBreak.source,"g")},function(e,f,a){var u=a(6).Options,r=["before-newline","after-newline","preserve-newline"];function i(n){u.call(this,n,"js");var l=this.raw_options.brace_style||null;l==="expand-strict"?this.raw_options.brace_style="expand":l==="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 d=0;d<h.length;d++)h[d]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=h[d];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",r),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}i.prototype=new u,e.exports.Options=i},function(e){function f(r,i){this.raw_options=a(r,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"])}f.prototype._get_array=function(r,i){var n=this.raw_options[r],l=i||[];return typeof n=="object"?n!==null&&typeof n.concat=="function"&&(l=n.concat()):typeof n=="string"&&(l=n.split(/[^a-zA-Z0-9_\/\-]+/)),l},f.prototype._get_boolean=function(r,i){var n=this.raw_options[r],l=n===void 0?!!i:!!n;return l},f.prototype._get_characters=function(r,i){var n=this.raw_options[r],l=i||"";return typeof n=="string"&&(l=n.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),l},f.prototype._get_number=function(r,i){var n=this.raw_options[r];i=parseInt(i,10),isNaN(i)&&(i=0);var l=parseInt(n,10);return isNaN(l)&&(l=i),l},f.prototype._get_selection=function(r,i,n){var l=this._get_selection_list(r,i,n);if(l.length!==1)throw new Error("Invalid Option Value: The option '"+r+`' can only be one of the following values:
|
|
|
`+i+`
|
|
|
You passed in: '`+this.raw_options[r]+"'");return l[0]},f.prototype._get_selection_list=function(r,i,n){if(!i||i.length===0)throw new Error("Selection list cannot be empty.");if(n=n||[i[0]],!this._is_valid_selection(n,i))throw new Error("Invalid Default Value!");var l=this._get_array(r,n);if(!this._is_valid_selection(l,i))throw new Error("Invalid Option Value: The option '"+r+`' can contain only the following values:
|
|
|
`+i+`
|
|
|
You passed in: '`+this.raw_options[r]+"'");return l},f.prototype._is_valid_selection=function(r,i){return r.length&&i.length&&!r.some(function(n){return i.indexOf(n)===-1})};function a(r,i){var n={};r=u(r);var l;for(l in r)l!==i&&(n[l]=r[l]);if(i&&r[i])for(l in r[i])n[l]=r[i][l];return n}function u(r){var i={},n;for(n in r){var l=n.replace(/-/g,"_");i[l]=r[n]}return i}e.exports.Options=f,e.exports.normalizeOpts=u,e.exports.mergeOpts=a},function(e,f,a){var u=a(8).InputScanner,r=a(9).Tokenizer,i=a(9).TOKEN,n=a(13).Directives,l=a(4),h=a(12).Pattern,d=a(14).TemplatablePattern;function s(H,D){return D.indexOf(H)!==-1}var c={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:i.START,RAW:i.RAW,EOF:i.EOF},w=new n(/\/\*/,/\*\//),E=/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]/,R=/[^\d\.]/,M=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),C=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";C=C.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),C="\\?\\.(?!\\d) "+C,C=C.replace(/ /g,"|");var S=new RegExp(C),_="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),A=_.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),U=new RegExp("^(?:"+A.join("|")+")$"),L,N=function(H,D){r.call(this,H,D),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var W=new h(this._input),F=new d(this._input).read_options(this._options);this.__patterns={template:F,identifier:F.starting_with(l.identifier).matching(l.identifierMatch),number:W.matching(E),punct:W.matching(S),comment:W.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:W.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:W.matching(/<!--/),html_comment_end:W.matching(/-->/),include:W.starting_with(/#include/).until_after(l.lineBreak),shebang:W.starting_with(/#!/).until_after(l.lineBreak),xml:W.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:F.until(/['\\\n\r\u2028\u2029]/),double_quote:F.until(/["\\\n\r\u2028\u2029]/),template_text:F.until(/[`\\$]/),template_expression:F.until(/[`}\\]/)}};N.prototype=new r,N.prototype._is_comment=function(H){return H.type===c.COMMENT||H.type===c.BLOCK_COMMENT||H.type===c.UNKNOWN},N.prototype._is_opening=function(H){return H.type===c.START_BLOCK||H.type===c.START_EXPR},N.prototype._is_closing=function(H,D){return(H.type===c.END_BLOCK||H.type===c.END_EXPR)&&D&&(H.text==="]"&&D.text==="["||H.text===")"&&D.text==="("||H.text==="}"&&D.text==="{")},N.prototype._reset=function(){L=!1},N.prototype._get_next_token=function(H,D){var W=null;this._readWhitespace();var F=this._input.peek();return F===null?this._create_token(c.EOF,""):(W=W||this._read_non_javascript(F),W=W||this._read_string(F),W=W||this._read_word(H),W=W||this._read_singles(F),W=W||this._read_comment(F),W=W||this._read_regexp(F,H),W=W||this._read_xml(F,H),W=W||this._read_punctuation(),W=W||this._create_token(c.UNKNOWN,this._input.next()),W)},N.prototype._read_word=function(H){var D;if(D=this.__patterns.identifier.read(),D!=="")return D=D.replace(l.allLineBreaks,`
|
|
|
`),!(H.type===c.DOT||H.type===c.RESERVED&&(H.text==="set"||H.text==="get"))&&U.test(D)?(D==="in"||D==="of")&&(H.type===c.WORD||H.type===c.STRING)?this._create_token(c.OPERATOR,D):this._create_token(c.RESERVED,D):this._create_token(c.WORD,D);if(D=this.__patterns.number.read(),D!=="")return this._create_token(c.WORD,D)},N.prototype._read_singles=function(H){var D=null;return H==="("||H==="["?D=this._create_token(c.START_EXPR,H):H===")"||H==="]"?D=this._create_token(c.END_EXPR,H):H==="{"?D=this._create_token(c.START_BLOCK,H):H==="}"?D=this._create_token(c.END_BLOCK,H):H===";"?D=this._create_token(c.SEMICOLON,H):H==="."&&R.test(this._input.peek(1))?D=this._create_token(c.DOT,H):H===","&&(D=this._create_token(c.COMMA,H)),D&&this._input.next(),D},N.prototype._read_punctuation=function(){var H=this.__patterns.punct.read();if(H!=="")return H==="="?this._create_token(c.EQUALS,H):H==="?."?this._create_token(c.DOT,H):this._create_token(c.OPERATOR,H)},N.prototype._read_non_javascript=function(H){var D="";if(H==="#"){if(this._is_first_token()&&(D=this.__patterns.shebang.read(),D))return this._create_token(c.UNKNOWN,D.trim()+`
|
|
|
`);if(D=this.__patterns.include.read(),D)return this._create_token(c.UNKNOWN,D.trim()+`
|
|
|
`);H=this._input.next();var W="#";if(this._input.hasNext()&&this._input.testChar(v)){do H=this._input.next(),W+=H;while(this._input.hasNext()&&H!=="#"&&H!=="=");return H==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(W+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(W+="{}",this._input.next(),this._input.next())),this._create_token(c.WORD,W)}this._input.back()}else if(H==="<"&&this._is_first_token()){if(D=this.__patterns.html_comment_start.read(),D){for(;this._input.hasNext()&&!this._input.testChar(l.newline);)D+=this._input.next();return L=!0,this._create_token(c.COMMENT,D)}}else if(L&&H==="-"&&(D=this.__patterns.html_comment_end.read(),D))return L=!1,this._create_token(c.COMMENT,D);return null},N.prototype._read_comment=function(H){var D=null;if(H==="/"){var W="";if(this._input.peek(1)==="*"){W=this.__patterns.block_comment.read();var F=w.get_directives(W);F&&F.ignore==="start"&&(W+=w.readIgnored(this._input)),W=W.replace(l.allLineBreaks,`
|
|
|
`),D=this._create_token(c.BLOCK_COMMENT,W),D.directives=F}else this._input.peek(1)==="/"&&(W=this.__patterns.comment.read(),D=this._create_token(c.COMMENT,W))}return D},N.prototype._read_string=function(H){if(H==="`"||H==="'"||H==='"'){var D=this._input.next();return this.has_char_escapes=!1,H==="`"?D+=this._read_string_recursive("`",!0,"${"):D+=this._read_string_recursive(H),this.has_char_escapes&&this._options.unescape_strings&&(D=V(D)),this._input.peek()===H&&(D+=this._input.next()),D=D.replace(l.allLineBreaks,`
|
|
|
`),this._create_token(c.STRING,D)}return null},N.prototype._allow_regexp_or_xml=function(H){return H.type===c.RESERVED&&s(H.text,["return","case","throw","else","do","typeof","yield"])||H.type===c.END_EXPR&&H.text===")"&&H.opened.previous.type===c.RESERVED&&s(H.opened.previous.text,["if","while","for"])||s(H.type,[c.COMMENT,c.START_EXPR,c.START_BLOCK,c.START,c.END_BLOCK,c.OPERATOR,c.EQUALS,c.EOF,c.SEMICOLON,c.COMMA])},N.prototype._read_regexp=function(H,D){if(H==="/"&&this._allow_regexp_or_xml(D)){for(var W=this._input.next(),F=!1,I=!1;this._input.hasNext()&&(F||I||this._input.peek()!==H)&&!this._input.testChar(l.newline);)W+=this._input.peek(),F?F=!1:(F=this._input.peek()==="\\",this._input.peek()==="["?I=!0:this._input.peek()==="]"&&(I=!1)),this._input.next();return this._input.peek()===H&&(W+=this._input.next(),W+=this._input.read(l.identifier)),this._create_token(c.STRING,W)}return null},N.prototype._read_xml=function(H,D){if(this._options.e4x&&H==="<"&&this._allow_regexp_or_xml(D)){var W="",F=this.__patterns.xml.read_match();if(F){for(var I=F[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),K=I.indexOf("{")===0,ee=0;F;){var he=!!F[1],de=F[2],Se=!!F[F.length-1]||de.slice(0,8)==="![CDATA[";if(!Se&&(de===I||K&&de.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(he?--ee:++ee),W+=F[0],ee<=0)break;F=this.__patterns.xml.read_match()}return F||(W+=this._input.match(/[\s\S]*/g)[0]),W=W.replace(l.allLineBreaks,`
|
|
|
`),this._create_token(c.STRING,W)}}return null};function V(H){for(var D="",W=0,F=new u(H),I=null;F.hasNext();)if(I=F.match(/([\s]|[^\\]|\\\\)+/g),I&&(D+=I[0]),F.peek()==="\\"){if(F.next(),F.peek()==="x")I=F.match(/x([0-9A-Fa-f]{2})/g);else if(F.peek()==="u")I=F.match(/u([0-9A-Fa-f]{4})/g);else{D+="\\",F.hasNext()&&(D+=F.next());continue}if(!I)return H;if(W=parseInt(I[1],16),W>126&&W<=255&&I[0].indexOf("x")===0)return H;if(W>=0&&W<32){D+="\\"+I[0];continue}else W===34||W===39||W===92?D+="\\"+String.fromCharCode(W):D+=String.fromCharCode(W)}return D}N.prototype._read_string_recursive=function(H,D,W){var F,I;H==="'"?I=this.__patterns.single_quote:H==='"'?I=this.__patterns.double_quote:H==="`"?I=this.__patterns.template_text:H==="}"&&(I=this.__patterns.template_expression);for(var K=I.read(),ee="";this._input.hasNext();){if(ee=this._input.next(),ee===H||!D&&l.newline.test(ee)){this._input.back();break}else ee==="\\"&&this._input.hasNext()?(F=this._input.peek(),F==="x"||F==="u"?this.has_char_escapes=!0:F==="\r"&&this._input.peek(1)===`
|
|
|
`&&this._input.next(),ee+=this._input.next()):W&&(W==="${"&&ee==="$"&&this._input.peek()==="{"&&(ee+=this._input.next()),W===ee&&(H==="`"?ee+=this._read_string_recursive("}",D,"`"):ee+=this._read_string_recursive("`",D,"${"),this._input.hasNext()&&(ee+=this._input.next())));ee+=I.read(),K+=ee}return K},e.exports.Tokenizer=N,e.exports.TOKEN=c,e.exports.positionable_operators=M.slice(),e.exports.line_starters=_.slice()},function(e){var f=RegExp.prototype.hasOwnProperty("sticky");function a(u){this.__input=u||"",this.__input_length=this.__input.length,this.__position=0}a.prototype.restart=function(){this.__position=0},a.prototype.back=function(){this.__position>0&&(this.__position-=1)},a.prototype.hasNext=function(){return this.__position<this.__input_length},a.prototype.next=function(){var u=null;return this.hasNext()&&(u=this.__input.charAt(this.__position),this.__position+=1),u},a.prototype.peek=function(u){var r=null;return u=u||0,u+=this.__position,u>=0&&u<this.__input_length&&(r=this.__input.charAt(u)),r},a.prototype.__match=function(u,r){u.lastIndex=r;var i=u.exec(this.__input);return i&&!(f&&u.sticky)&&(i.index!==r&&(i=null)),i},a.prototype.test=function(u,r){return r=r||0,r+=this.__position,r>=0&&r<this.__input_length?!!this.__match(u,r):!1},a.prototype.testChar=function(u,r){var i=this.peek(r);return u.lastIndex=0,i!==null&&u.test(i)},a.prototype.match=function(u){var r=this.__match(u,this.__position);return r?this.__position+=r[0].length:r=null,r},a.prototype.read=function(u,r,i){var n="",l;return u&&(l=this.match(u),l&&(n+=l[0])),r&&(l||!u)&&(n+=this.readUntil(r,i)),n},a.prototype.readUntil=function(u,r){var i="",n=this.__position;u.lastIndex=this.__position;var l=u.exec(this.__input);return l?(n=l.index,r&&(n+=l[0].length)):n=this.__input_length,i=this.__input.substring(this.__position,n),this.__position=n,i},a.prototype.readUntilAfter=function(u){return this.readUntil(u,!0)},a.prototype.get_regexp=function(u,r){var i=null,n="g";return r&&f&&(n="y"),typeof u=="string"&&u!==""?i=new RegExp(u,n):u&&(i=new RegExp(u.source,n)),i},a.prototype.get_literal_regexp=function(u){return RegExp(u.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},a.prototype.peekUntilAfter=function(u){var r=this.__position,i=this.readUntilAfter(u);return this.__position=r,i},a.prototype.lookBack=function(u){var r=this.__position-1;return r>=u.length&&this.__input.substring(r-u.length,r).toLowerCase()===u},e.exports.InputScanner=a},function(e,f,a){var u=a(8).InputScanner,r=a(3).Token,i=a(10).TokenStream,n=a(11).WhitespacePattern,l={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},h=function(d,s){this._input=new u(d),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 i,this._reset();for(var d,s=new r(l.START,""),c=null,w=[],E=new i;s.type!==l.EOF;){for(d=this._get_next_token(s,c);this._is_comment(d);)E.add(d),d=this._get_next_token(s,c);E.isEmpty()||(d.comments_before=E,E=new i),d.parent=c,this._is_opening(d)?(w.push(c),c=d):c&&this._is_closing(d,c)&&(d.opened=c,c.closed=d,c=w.pop(),d.parent=c),d.previous=s,s.next=d,this.__tokens.add(d),s=d}return this.__tokens},h.prototype._is_first_token=function(){return this.__tokens.isEmpty()},h.prototype._reset=function(){},h.prototype._get_next_token=function(d,s){this._readWhitespace();var c=this._input.read(/.+/g);return c?this._create_token(l.RAW,c):this._create_token(l.EOF,"")},h.prototype._is_comment=function(d){return!1},h.prototype._is_opening=function(d){return!1},h.prototype._is_closing=function(d,s){return!1},h.prototype._create_token=function(d,s){var c=new r(d,s,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return c},h.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},e.exports.Tokenizer=h,e.exports.TOKEN=l},function(e){function f(a){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=a}f.prototype.restart=function(){this.__position=0},f.prototype.isEmpty=function(){return this.__tokens_length===0},f.prototype.hasNext=function(){return this.__position<this.__tokens_length},f.prototype.next=function(){var a=null;return this.hasNext()&&(a=this.__tokens[this.__position],this.__position+=1),a},f.prototype.peek=function(a){var u=null;return a=a||0,a+=this.__position,a>=0&&a<this.__tokens_length&&(u=this.__tokens[a]),u},f.prototype.add=function(a){this.__parent_token&&(a.parent=this.__parent_token),this.__tokens.push(a),this.__tokens_length+=1},e.exports.TokenStream=f},function(e,f,a){var u=a(12).Pattern;function r(i,n){u.call(this,i,n),n?this._line_regexp=this._input.get_regexp(n._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}r.prototype=new u,r.prototype.__set_whitespace_patterns=function(i,n){i+="\\t ",n+="\\n\\r",this._match_pattern=this._input.get_regexp("["+i+n+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+n+"]")},r.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 n=this.__split(this._newline_regexp,i);this.newline_count=n.length-1,this.whitespace_before_token=n[this.newline_count]}return i},r.prototype.matching=function(i,n){var l=this._create();return l.__set_whitespace_patterns(i,n),l._update(),l},r.prototype._create=function(){return new r(this._input,this)},r.prototype.__split=function(i,n){i.lastIndex=0;for(var l=0,h=[],d=i.exec(n);d;)h.push(n.substring(l,d.index)),l=d.index+d[0].length,d=i.exec(n);return l<n.length?h.push(n.substring(l,n.length)):h.push(""),h},e.exports.WhitespacePattern=r},function(e){function f(a,u){this._input=a,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)}f.prototype.read=function(){var a=this._input.read(this._starting_pattern);return(!this._starting_pattern||a)&&(a+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),a},f.prototype.read_match=function(){return this._input.match(this._match_pattern)},f.prototype.until_after=function(a){var u=this._create();return u._until_after=!0,u._until_pattern=this._input.get_regexp(a),u._update(),u},f.prototype.until=function(a){var u=this._create();return u._until_after=!1,u._until_pattern=this._input.get_regexp(a),u._update(),u},f.prototype.starting_with=function(a){var u=this._create();return u._starting_pattern=this._input.get_regexp(a,!0),u._update(),u},f.prototype.matching=function(a){var u=this._create();return u._match_pattern=this._input.get_regexp(a,!0),u._update(),u},f.prototype._create=function(){return new f(this._input,this)},f.prototype._update=function(){},e.exports.Pattern=f},function(e){function f(a,u){a=typeof a=="string"?a:a.source,u=typeof u=="string"?u:u.source,this.__directives_block_pattern=new RegExp(a+/ beautify( \w+[:]\w+)+ /.source+u,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(a+/\sbeautify\signore:end\s/.source+u,"g")}f.prototype.get_directives=function(a){if(!a.match(this.__directives_block_pattern))return null;var u={};this.__directive_pattern.lastIndex=0;for(var r=this.__directive_pattern.exec(a);r;)u[r[1]]=r[2],r=this.__directive_pattern.exec(a);return u},f.prototype.readIgnored=function(a){return a.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=f},function(e,f,a){var u=a(12).Pattern,r={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function i(n,l){u.call(this,n,l),this.__template_pattern=null,this._disabled=Object.assign({},r),this._excluded=Object.assign({},r),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 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}/)}}i.prototype=new u,i.prototype._create=function(){return new i(this._input,this)},i.prototype._update=function(){this.__set_templated_pattern()},i.prototype.disable=function(n){var l=this._create();return l._disabled[n]=!0,l._update(),l},i.prototype.read_options=function(n){var l=this._create();for(var h in r)l._disabled[h]=n.templating.indexOf(h)===-1;return l._update(),l},i.prototype.exclude=function(n){var l=this._create();return l._excluded[n]=!0,l._update(),l},i.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 l=this._read_template();l;)this._match_pattern?l+=this._input.read(this._match_pattern):l+=this._input.readUntil(this.__template_pattern),n+=l,l=this._read_template();return this._until_after&&(n+=this._input.readUntilAfter(this._until_pattern)),n},i.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("|")+")")},i.prototype._read_template=function(){var n="",l=this._input.peek();if(l==="<"){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 l==="{"&&(!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},e.exports.TemplatablePattern=i}],x={};function O(e){var f=x[e];if(f!==void 0)return f.exports;var a=x[e]={exports:{}};return y[e](a,a.exports,O),a.exports}var m=O(0);T=m})();var b=T;!(P=[],g=function(){return{js_beautify:b}}.apply(z,P),g!==void 0&&(k.exports=g))})()},"6eGT":function(k,z,o){"use strict";function P(g){return null}z.a=P},"6nfa":function(k,z,o){k.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"}},"746U":function(k,z,o){"use strict";o.d(z,"f",function(){return P}),o.d(z,"l",function(){return g}),o.d(z,"k",function(){return T}),o.d(z,"j",function(){return b}),o.d(z,"g",function(){return y}),o.d(z,"m",function(){return x}),o.d(z,"h",function(){return O}),o.d(z,"n",function(){return m}),o.d(z,"c",function(){return e}),o.d(z,"a",function(){return f}),o.d(z,"i",function(){return a}),o.d(z,"o",function(){return u}),o.d(z,"e",function(){return n}),o.d(z,"d",function(){return l}),o.d(z,"p",function(){return h}),o.d(z,"b",function(){return d});function P(s){return Array.isArray(s)}function g(s){return typeof s=="string"}function T(s){return typeof s=="object"&&s!==null&&!Array.isArray(s)&&!(s instanceof RegExp)&&!(s instanceof Date)}function b(s){return typeof s=="number"&&!isNaN(s)}function y(s){return s===!0||s===!1}function x(s){return typeof s=="undefined"}function O(s){return!m(s)}function m(s){return x(s)||s===null}function e(s,c){if(!s)throw new Error(c?`Unexpected type, expected '${c}'`:"Unexpected type")}function f(s){if(m(s))throw new Error("Assertion Failed: argument is undefined or null");return s}function a(s){return typeof s=="function"}function u(s,c){const w=Math.min(s.length,c.length);for(let E=0;E<w;E++)r(s[E],c[E])}function r(s,c){if(g(c)){if(typeof s!==c)throw new Error(`argument does not match constraint: typeof ${c}`)}else if(a(c)){try{if(s instanceof c)return}catch(w){}if(!m(s)&&s.constructor===c)return;if(c.length===1&&c.call(void 0,s)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function i(s){let c=[],w=Object.getPrototypeOf(s);for(;Object.prototype!==w;)c=c.concat(Object.getOwnPropertyNames(w)),w=Object.getPrototypeOf(w);return c}function n(s){const c=[];for(const w of i(s))typeof s[w]=="function"&&c.push(w);return c}function l(s,c){const w=v=>function(){const R=Array.prototype.slice.call(arguments,0);return c(v,R)};let E={};for(const v of s)E[v]=w(v);return E}function h(s){return s===null?void 0:s}function d(s,c="Unreachable"){throw new Error(c)}},"7Cbv":function(k,z,o){"use strict";var P=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 T(){if(!P)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return P(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(r){return typeof r=="string"&&b.test(r)}for(var x=y,O=[],m=0;m<256;++m)O.push((m+256).toString(16).substr(1));function e(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(O[r[i+0]]+O[r[i+1]]+O[r[i+2]]+O[r[i+3]]+"-"+O[r[i+4]]+O[r[i+5]]+"-"+O[r[i+6]]+O[r[i+7]]+"-"+O[r[i+8]]+O[r[i+9]]+"-"+O[r[i+10]]+O[r[i+11]]+O[r[i+12]]+O[r[i+13]]+O[r[i+14]]+O[r[i+15]]).toLowerCase();if(!x(n))throw TypeError("Stringified UUID is invalid");return n}var f=e;function a(r,i,n){r=r||{};var l=r.random||(r.rng||T)();if(l[6]=l[6]&15|64,l[8]=l[8]&63|128,i){n=n||0;for(var h=0;h<16;++h)i[n+h]=l[h];return i}return f(l)}var u=z.a=a},"7ZXX":function(k,z,o){k.exports=o.p+"static/err.6e7c5817.png"},"7ahc":function(k,z,o){"use strict";o.d(z,"a",function(){return w});var P=o("k1fw"),g=o("0Owb"),T=o("+L6B"),b=o("2/Rp"),y=o("y8nQ"),x=o("Vl3Y"),O=o("tJVT"),m=o("OaEy"),e=o("2fM7"),f=o("q1tI"),a=o.n(f),u=o("VrN/"),r=o.n(u),i=o("p77/"),n=o.n(i),l=o("c5Ni"),h=o.n(l),d=e.a.Option,s={labelCol:{span:4},wrapperCol:{span:20}},c={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"]};z.b=function(E){var v=E.callback,R=E.onCancel,M=Object(f.useState)("python"),C=Object(O.a)(M,2),S=C[0],_=C[1];function A(L){_(c[L][1])}function U(L){v(L)}return a.a.createElement(x.a,Object(g.a)({},s,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:U}),a.a.createElement(x.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},a.a.createElement(e.a,{onChange:A},Object.keys(c).map(function(L){return a.a.createElement(d,{key:L,value:L},c[L][0])}))),a.a.createElement(x.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},a.a.createElement(w,{mode:S})),a.a.createElement("div",{className:"flex-container flex-end"},a.a.createElement(b.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),a.a.createElement(b.a,{type:"ghost",onClick:R},"\u53D6\u6D88")))};function w(E){var v=E.value,R=E.onChange,M=E.mode,C=E.options,S=C===void 0?{}:C,_=Object(f.useRef)(),A=Object(f.useState)(),U=Object(O.a)(A,2),L=U[0],N=U[1];return Object(f.useEffect)(function(){if(L){function V(H){var D=H.getValue();R&&R(D)}return L.on("change",V),function(){L.off("change",V)}}},[L,R]),Object(f.useEffect)(function(){L&&L.setOption("mode",M)},[L,M]),Object(f.useEffect)(function(){L&&((v!==L.getValue()||v==="")&&setTimeout(function(){L.setValue(v||" ")},300))},[L,v]),Object(f.useEffect)(function(){if(_.current&&!L){var V=r.a.fromTextArea(_.current,Object(P.a)({mode:M,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},S));N(V)}},[_.current,L]),a.a.createElement("div",{className:"my-codemirror-container"},a.a.createElement("textarea",{ref:_}))}},"7ixt":function(k,z,o){"use strict";o.d(z,"a",function(){return T});var P={adjustX:1,adjustY:1},g=[0,0],T={left:{points:["cr","cl"],overflow:P,offset:[-4,0],targetOffset:g},right:{points:["cl","cr"],overflow:P,offset:[4,0],targetOffset:g},top:{points:["bc","tc"],overflow:P,offset:[0,-4],targetOffset:g},bottom:{points:["tc","bc"],overflow:P,offset:[0,4],targetOffset:g},topLeft:{points:["bl","tl"],overflow:P,offset:[0,-4],targetOffset:g},leftTop:{points:["tr","tl"],overflow:P,offset:[-4,0],targetOffset:g},topRight:{points:["br","tr"],overflow:P,offset:[0,-4],targetOffset:g},rightTop:{points:["tl","tr"],overflow:P,offset:[4,0],targetOffset:g},bottomRight:{points:["tr","br"],overflow:P,offset:[0,4],targetOffset:g},rightBottom:{points:["bl","br"],overflow:P,offset:[4,0],targetOffset:g},bottomLeft:{points:["tl","bl"],overflow:P,offset:[0,4],targetOffset:g},leftBottom:{points:["br","bl"],overflow:P,offset:[-4,0],targetOffset:g}},b=T},"7v3h":function(k,z,o){k.exports=o.p+"static/empty2.dd73f390.png"},"8/bI":function(k,z,o){k.exports=o.p+"static/empty.8918e228.png"},"815F":function(k,z,o){"use strict";o.d(z,"e",function(){return O}),o.d(z,"c",function(){return e}),o.d(z,"d",function(){return f}),o.d(z,"a",function(){return u}),o.d(z,"f",function(){return r}),o.d(z,"b",function(){return i});var P=o("KQm4"),g=o("VTBJ"),T=o("Ff2n"),b=o("Zm9Q"),y=o("Kwbf"),x=o("OZM5");function O(n,l){return n!=null?n:l}function m(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=new Map;function h(d){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(d||[]).forEach(function(c){var w=c.key,E=c.children;Object(y.a)(w!=null,"Tree node must have a certain key: [".concat(s).concat(w,"]"));var v=String(w);Object(y.a)(!l.has(v)||w===null||w===void 0,"Same 'key' exist in the Tree: ".concat(v)),l.set(v,!0),h(E,"".concat(s).concat(v," > "))})}h(n)}function e(n){function l(h){var d=Object(b.a)(h);return d.map(function(s){if(!Object(x.i)(s))return Object(y.a)(!s,"Tree/TreeNode can only accept TreeNode as children."),null;var c=s.key,w=s.props,E=w.children,v=Object(T.a)(w,["children"]),R=Object(g.a)({key:c},v),M=l(E);return M.length&&(R.children=M),R}).filter(function(s){return s})}return l(n)}function f(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],h=new Set(l===!0?[]:l),d=[];function s(c){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return c.map(function(E,v){var R=Object(x.h)(w?w.pos:"0",v),M=O(E.key,R),C=Object(g.a)(Object(g.a)({},E),{},{parent:w,pos:R,children:null,data:E,isStart:[].concat(Object(P.a)(w?w.isStart:[]),[v===0]),isEnd:[].concat(Object(P.a)(w?w.isEnd:[]),[v===c.length-1])});return d.push(C),l===!0||h.has(M)?C.children=s(E.children||[],C):C.children=[],C})}return s(n),d}function a(n,l,h){var d;h?typeof h=="string"?d=function(w){return w[h]}:typeof h=="function"&&(d=function(w){return h(w)}):d=function(w,E){return O(w.key,E)};function s(c,w,E){var v=c?c.children:n,R=c?Object(x.h)(E.pos,w):"0";if(c){var M=d(c,R),C={node:c,index:w,pos:R,key:M,parentPos:E.node?E.pos:null,level:E.level+1};l(C)}v&&v.forEach(function(S,_){s(S,_,{node:c,pos:R,level:E?E.level+1:-1})})}s(null)}function u(n){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=l.initWrapper,d=l.processEntity,s=l.onProcessFinished,c=arguments.length>2?arguments[2]:void 0,w={},E={},v={posEntities:w,keyEntities:E};return h&&(v=h(v)||v),a(n,function(R){var M=R.node,C=R.index,S=R.pos,_=R.key,A=R.parentPos,U=R.level,L={node:M,index:C,key:_,pos:S,level:U},N=O(_,S);w[S]=L,E[N]=L,L.parent=w[A],L.parent&&(L.parent.children=L.parent.children||[],L.parent.children.push(L)),d&&d(L,v)},c),s&&s(v),v}function r(n,l){var h=l.expandedKeys,d=l.selectedKeys,s=l.loadedKeys,c=l.loadingKeys,w=l.checkedKeys,E=l.halfCheckedKeys,v=l.dragOverNodeKey,R=l.dropPosition,M=l.keyEntities,C=M[n],S={eventKey:n,expanded:h.indexOf(n)!==-1,selected:d.indexOf(n)!==-1,loaded:s.indexOf(n)!==-1,loading:c.indexOf(n)!==-1,checked:w.indexOf(n)!==-1,halfChecked:E.indexOf(n)!==-1,pos:String(C?C.pos:""),dragOver:v===n&&R===0,dragOverGapTop:v===n&&R===-1,dragOverGapBottom:v===n&&R===1};return S}function i(n){var l=n.data,h=n.expanded,d=n.selected,s=n.checked,c=n.loaded,w=n.loading,E=n.halfChecked,v=n.dragOver,R=n.dragOverGapTop,M=n.dragOverGapBottom,C=n.pos,S=n.active,_=Object(g.a)(Object(g.a)({},l),{},{expanded:h,selected:d,checked:s,loaded:c,loading:w,halfChecked:E,dragOver:v,dragOverGapTop:R,dragOverGapBottom:M,pos:C,active:S});return"props"in _||Object.defineProperty(_,"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}}),_}},"8EBN":function(k,z,o){(function(P){P(o("VrN/"))})(function(P){"use strict";P.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<P.modeInfo.length;g++){var T=P.modeInfo[g];T.mimes&&(T.mime=T.mimes[0])}P.findModeByMIME=function(b){b=b.toLowerCase();for(var y=0;y<P.modeInfo.length;y++){var x=P.modeInfo[y];if(x.mime==b)return x;if(x.mimes){for(var O=0;O<x.mimes.length;O++)if(x.mimes[O]==b)return x}}if(/\+xml$/.test(b))return P.findModeByMIME("application/xml");if(/\+json$/.test(b))return P.findModeByMIME("application/json")},P.findModeByExtension=function(b){b=b.toLowerCase();for(var y=0;y<P.modeInfo.length;y++){var x=P.modeInfo[y];if(x.ext){for(var O=0;O<x.ext.length;O++)if(x.ext[O]==b)return x}}},P.findModeByFileName=function(b){for(var y=0;y<P.modeInfo.length;y++){var x=P.modeInfo[y];if(x.file&&x.file.test(b))return x}var O=b.lastIndexOf("."),m=O>-1&&b.substring(O+1,b.length);if(m)return P.findModeByExtension(m)},P.findModeByName=function(b){b=b.toLowerCase();for(var y=0;y<P.modeInfo.length;y++){var x=P.modeInfo[y];if(x.name.toLowerCase()==b)return x;if(x.alias){for(var O=0;O<x.alias.length;O++)if(x.alias[O].toLowerCase()==b)return x}}}})},"8HAY":function(k,z,o){"use strict";o.d(z,"a",function(){return y}),o.d(z,"b",function(){return x}),o.d(z,"d",function(){return O}),o.d(z,"e",function(){return m}),o.d(z,"c",function(){return e});var P=o("MI8n"),g=o("pmY6"),T=o("3/fG"),b=function(f,a,u,r){function i(n){return n instanceof u?n:new u(function(l){l(n)})}return new(u||(u=Promise))(function(n,l){function h(c){try{s(r.next(c))}catch(w){l(w)}}function d(c){try{s(r.throw(c))}catch(w){l(w)}}function s(c){c.done?n(c.value):i(c.value).then(h,d)}s((r=r.apply(f,a||[])).next())})};class y extends g.a{constructor(f,a="",u="",r=!0,i){super();this._onDidChange=this._register(new P.b),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=f,this._label=a,this._cssClass=u,this._enabled=r,this._actionCallback=i}get id(){return this._id}get label(){return this._label}set label(f){this._setLabel(f)}_setLabel(f){this._label!==f&&(this._label=f,this._onDidChange.fire({label:f}))}get tooltip(){return this._tooltip||""}set tooltip(f){this._setTooltip(f)}_setTooltip(f){this._tooltip!==f&&(this._tooltip=f,this._onDidChange.fire({tooltip:f}))}get class(){return this._cssClass}set class(f){this._setClass(f)}_setClass(f){this._cssClass!==f&&(this._cssClass=f,this._onDidChange.fire({class:f}))}get enabled(){return this._enabled}set enabled(f){this._setEnabled(f)}_setEnabled(f){this._enabled!==f&&(this._enabled=f,this._onDidChange.fire({enabled:f}))}get checked(){return this._checked}set checked(f){this._setChecked(f)}_setChecked(f){this._checked!==f&&(this._checked=f,this._onDidChange.fire({checked:f}))}run(f,a){return b(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(f))})}}class x extends g.a{constructor(){super(...arguments);this._onBeforeRun=this._register(new P.b),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new P.b),this.onDidRun=this._onDidRun.event}run(f,a){return b(this,void 0,void 0,function*(){if(!f.enabled)return;this._onBeforeRun.fire({action:f});let u;try{yield this.runAction(f,a)}catch(r){u=r}this._onDidRun.fire({action:f,error:u})})}runAction(f,a){return b(this,void 0,void 0,function*(){yield f.run(a)})}}class O extends y{constructor(f){super(O.ID,f,f?"separator text":"separator");this.checked=!1,this.enabled=!1}}O.ID="vs.actions.separator";class m{constructor(f,a,u,r){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=f,this.label=a,this.class=r,this._actions=u}get actions(){return this._actions}dispose(){}run(){return b(this,void 0,void 0,function*(){})}}class e extends y{constructor(){super(e.ID,T.a("submenu.empty","(empty)"),void 0,!1)}}e.ID="vs.actions.empty"},"8WcF":function(k,z,o){k.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(k,z,o){k.exports={button:"button___1wy9m"}},"8j3D":function(k,z,o){"use strict";var P=o("2qtc"),g=o("kLXV"),T=o("5NDa"),b=o("5rEg"),y=o("miYZ"),x=o("tsqr"),O=o("k1fw"),m=o("9og8"),e=o("y8nQ"),f=o("Vl3Y"),a=o("tJVT"),u=o("WmNS"),r=o.n(u),i=o("q1tI"),n=o.n(i),l=o("Ty5D"),h=o("9kvl"),d=o("KVXO"),s=o.n(d),c=function(E){var v=E.shixunsDetail,R=E.globalSetting,M=E.loading,C=E.dispatch,S=E.title,_=E.pathList,A=_===void 0?[]:_,U=E.showInputPath,L=U===void 0?!1:U,N=E.isMergeSelectFile,V=N===void 0?!1:N,H=E.onFinish,D=H===void 0?function(){}:H,W=f.a.useForm(),F=Object(a.a)(W,1),I=F[0],K=Object(l.i)(),ee=Object(l.h)(),he=Object(i.useRef)(),de=Object(i.useState)(""),Se=Object(a.a)(de,2),Te=Se[0],ce=Se[1],be=Object(i.useState)(""),Ee=Object(a.a)(be,2),ue=Ee[0],le=Ee[1],$=Object(i.useState)([]),me=Object(a.a)($,2),re=me[0],ae=me[1],Oe=Object(i.useState)([]),se=Object(a.a)(Oe,2),te=se[0],Q=se[1];Object(i.useEffect)(function(){var tt,dt;he.current=((tt=ee.pathname)===null||tt===void 0||((dt=tt.split("/"))===null||dt===void 0)?void 0:dt[3])==="repository"},[]),Object(i.useEffect)(function(){if(v.actionTabs.key!=="Repository-SelectFilePath")return;var tt=A.join("/"),dt=[];A.map(function(mt,vt){vt===0?dt.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(mt),path:tt}):dt.push({val:"/".concat(mt),path:tt})}),ae(dt),ce(tt),le(tt),J(tt)},[v.actionTabs.key]);var J=function(){var tt=Object(m.a)(r.a.mark(function dt(mt){var vt;return r.a.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:return Ye.next=2,C({type:he.current?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:K.id,path:mt}});case 2:vt=Ye.sent,vt&&Q(vt.trees||[]);case 4:case"end":return Ye.stop()}},dt)}));return function(mt){return tt.apply(this,arguments)}}(),ve=function(dt){var mt=Te;dt.type==="tree"&&(re.length?re.push({val:"/".concat(dt.name),path:dt.name}):re.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(dt.name),path:dt.name}),ae(re),mt=Te?"".concat(Te,"/").concat(dt.name):dt.name,ce(mt)),J(mt)},_e=function(dt,mt){var vt=re.filter(function(Ye,Ue){return Ue<=mt});ae(vt);var yt=vt.filter(function(Ye,Ue){return Ue!==0}).map(function(Ye){return Ye.val}).join("").substr(1);ce(yt),J(yt)},Ae=function(){var tt=Object(m.a)(r.a.mark(function dt(){var mt,vt,yt;return r.a.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:if(mt=I==null?void 0:I.getFieldsValue(),vt=Te?"".concat(Te).concat(mt!=null&&mt.name?"/".concat(mt==null?void 0:mt.name):""):mt==null?void 0:mt.name,!V){Ue.next=6;break}return D(vt),Qe(),Ue.abrupt("return");case 6:if(!L){Ue.next=16;break}return Ue.next=9,I.validateFields();case 9:return Ue.next=11,C({type:"shixunsDetail/uploadGitFolder",payload:Object(O.a)(Object(O.a)({},{id:K.id,path:vt}),he.current?{}:{secret_repository:!0})});case 11:yt=Ue.sent,D(ue),yt.status===0&&x.b.info("\u65B0\u5EFA\u6210\u529F"),Ue.next=18;break;case 16:D(vt),x.b.success("\u9009\u62E9\u6587\u4EF6\u76EE\u5F55\u6210\u529F");case 18:Qe();case 19:case"end":return Ue.stop()}},dt)}));return function(){return tt.apply(this,arguments)}}(),Qe=function(){C({type:"shixunsDetail/setActionTabs",payload:{}}),I.resetFields()};return n.a.createElement(g.a,{centered:!0,title:S||"\u65B0\u5EFA\u6587\u4EF6\u5939",closable:!1,keyboard:!1,visible:v.actionTabs.key==="Repository-SelectFilePath",onOk:Ae,onCancel:Qe},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(tt,dt){return n.a.createElement("a",{key:dt,onClick:function(){return _e(tt,dt)}},tt.val)})),!!(te!=null&&te.length)&&te.map(function(tt,dt){return tt.type==="tree"&&n.a.createElement("a",{key:dt,onClick:function(){return ve(tt)}},n.a.createElement("i",{className:"iconfont icon-wenjianjia ".concat(s.a.colorBlue)}),tt.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"},Te),L&&n.a.createElement(f.a,{form:I,scrollToFirstError:!0,className:"mt20"},n.a.createElement(f.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"})))))};z.a=Object(h.a)(function(w){var E=w.shixunsDetail,v=w.loading,R=w.globalSetting;return{shixunsDetail:E,globalSetting:R,loading:v.models.index}})(c)},"8mKB":function(k,z,o){"use strict";var P=o("rePB"),g=o("1OyB"),T=o("vuIU"),b=o("Ji7U"),y=o("md7G"),x=o("foSv"),O=o("q1tI"),m=o.n(O),e=o("m+aA"),f=o("TSYQ"),a=o.n(f),u=o("4IlW");function r(S){var _=S.pageXOffset,A="scrollLeft";if(typeof _!="number"){var U=S.document;_=U.documentElement[A],typeof _!="number"&&(_=U.body[A])}return _}function i(S){var _,A,U=S.ownerDocument,L=U.body,N=U&&U.documentElement,V=S.getBoundingClientRect();return _=V.left,A=V.top,_-=N.clientLeft||L.clientLeft||0,A-=N.clientTop||L.clientTop||0,{left:_,top:A}}function n(S){var _=i(S),A=S.ownerDocument,U=A.defaultView||A.parentWindow;return _.left+=r(U),_.left}function l(S){var _=h();return function(){var U=Object(x.a)(S),L;if(_){var N=Object(x.a)(this).constructor;L=Reflect.construct(U,arguments,N)}else L=U.apply(this,arguments);return Object(y.a)(this,L)}}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(S){return!1}}var d=function(S){Object(b.a)(A,S);var _=l(A);function A(){var U;return Object(g.a)(this,A),U=_.apply(this,arguments),U.onHover=function(L){var N=U.props,V=N.onHover,H=N.index;V(L,H)},U.onClick=function(L){var N=U.props,V=N.onClick,H=N.index;V(L,H)},U.onKeyDown=function(L){var N=U.props,V=N.onClick,H=N.index;L.keyCode===13&&V(L,H)},U}return Object(T.a)(A,[{key:"getClassName",value:function(){var L=this.props,N=L.prefixCls,V=L.index,H=L.value,D=L.allowHalf,W=L.focused,F=V+1,I=N;return H===0&&V===0&&W?I+=" ".concat(N,"-focused"):D&&H+.5>=F&&H<F?(I+=" ".concat(N,"-half ").concat(N,"-active"),W&&(I+=" ".concat(N,"-focused"))):(I+=F<=H?" ".concat(N,"-full"):" ".concat(N,"-zero"),F===H&&W&&(I+=" ".concat(N,"-focused"))),I}},{key:"render",value:function(){var L=this.onHover,N=this.onClick,V=this.onKeyDown,H=this.props,D=H.disabled,W=H.prefixCls,F=H.character,I=H.characterRender,K=H.index,ee=H.count,he=H.value,de=typeof F=="function"?F(this.props):F,Se=m.a.createElement("li",{className:this.getClassName()},m.a.createElement("div",{onClick:D?null:N,onKeyDown:D?null:V,onMouseMove:D?null:L,role:"radio","aria-checked":he>K?"true":"false","aria-posinset":K+1,"aria-setsize":ee,tabIndex:D?-1:0},m.a.createElement("div",{className:"".concat(W,"-first")},de),m.a.createElement("div",{className:"".concat(W,"-second")},de)));return I&&(Se=I(Se,this.props)),Se}}]),A}(m.a.Component);function s(S,_){var A=Object.keys(S);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(S);_&&(U=U.filter(function(L){return Object.getOwnPropertyDescriptor(S,L).enumerable})),A.push.apply(A,U)}return A}function c(S){for(var _=1;_<arguments.length;_++){var A=arguments[_]!=null?arguments[_]:{};_%2?s(Object(A),!0).forEach(function(U){Object(P.a)(S,U,A[U])}):Object.getOwnPropertyDescriptors?Object.defineProperties(S,Object.getOwnPropertyDescriptors(A)):s(Object(A)).forEach(function(U){Object.defineProperty(S,U,Object.getOwnPropertyDescriptor(A,U))})}return S}function w(S){var _=E();return function(){var U=Object(x.a)(S),L;if(_){var N=Object(x.a)(this).constructor;L=Reflect.construct(U,arguments,N)}else L=U.apply(this,arguments);return Object(y.a)(this,L)}}function E(){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(S){return!1}}function v(){}var R=function(S){Object(b.a)(A,S);var _=w(A);function A(U){var L;Object(g.a)(this,A),L=_.call(this,U),L.onHover=function(V,H){var D=L.props.onHoverChange,W=L.getStarValue(H,V.pageX),F=L.state.cleanedValue;W!==F&&L.setState({hoverValue:W,cleanedValue:null}),D(W)},L.onMouseLeave=function(){var V=L.props.onHoverChange;L.setState({hoverValue:void 0,cleanedValue:null}),V(void 0)},L.onClick=function(V,H){var D=L.props.allowClear,W=L.state.value,F=L.getStarValue(H,V.pageX),I=!1;D&&(I=F===W),L.onMouseLeave(),L.changeValue(I?0:F),L.setState({cleanedValue:I?F:null})},L.onFocus=function(){var V=L.props.onFocus;L.setState({focused:!0}),V&&V()},L.onBlur=function(){var V=L.props.onBlur;L.setState({focused:!1}),V&&V()},L.onKeyDown=function(V){var H=V.keyCode,D=L.props,W=D.count,F=D.allowHalf,I=D.onKeyDown,K=D.direction,ee=K==="rtl",he=L.state.value;H===u.a.RIGHT&&he<W&&!ee?(F?he+=.5:he+=1,L.changeValue(he),V.preventDefault()):H===u.a.LEFT&&he>0&&!ee||H===u.a.RIGHT&&he>0&&ee?(F?he-=.5:he-=1,L.changeValue(he),V.preventDefault()):H===u.a.LEFT&&he<W&&ee&&(F?he+=.5:he+=1,L.changeValue(he),V.preventDefault()),I&&I(V)},L.saveRef=function(V){return function(H){L.stars[V]=H}},L.saveRate=function(V){L.rate=V};var N=U.value;return N===void 0&&(N=U.defaultValue),L.stars={},L.state={value:N,focused:!1,cleanedValue:null},L}return Object(T.a)(A,[{key:"componentDidMount",value:function(){var L=this.props,N=L.autoFocus,V=L.disabled;N&&!V&&this.focus()}},{key:"getStarDOM",value:function(L){return Object(e.a)(this.stars[L])}},{key:"getStarValue",value:function(L,N){var V=this.props,H=V.allowHalf,D=V.direction,W=D==="rtl",F=L+1;if(H){var I=this.getStarDOM(L),K=n(I),ee=I.clientWidth;(W&&N-K>ee/2||!W&&N-K<ee/2)&&(F-=.5)}return F}},{key:"focus",value:function(){var L=this.props.disabled;L||this.rate.focus()}},{key:"blur",value:function(){var L=this.props.disabled;L||this.rate.blur()}},{key:"changeValue",value:function(L){var N=this.props.onChange;"value"in this.props||this.setState({value:L}),N(L)}},{key:"render",value:function(){for(var L=this.props,N=L.count,V=L.allowHalf,H=L.style,D=L.prefixCls,W=L.disabled,F=L.className,I=L.character,K=L.characterRender,ee=L.tabIndex,he=L.direction,de=this.state,Se=de.value,Te=de.hoverValue,ce=de.focused,be=[],Ee=W?"".concat(D,"-disabled"):"",ue=0;ue<N;ue+=1)be.push(m.a.createElement(d,{ref:this.saveRef(ue),index:ue,count:N,disabled:W,prefixCls:"".concat(D,"-star"),allowHalf:V,value:Te===void 0?Se:Te,onClick:this.onClick,onHover:this.onHover,key:ue,character:I,characterRender:K,focused:ce}));var le=a()(D,Ee,F,Object(P.a)({},"".concat(D,"-rtl"),he==="rtl"));return m.a.createElement("ul",{className:le,style:H,onMouseLeave:W?null:this.onMouseLeave,tabIndex:W?-1:ee,onFocus:W?null:this.onFocus,onBlur:W?null:this.onBlur,onKeyDown:W?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},be)}}],[{key:"getDerivedStateFromProps",value:function(L,N){return"value"in L&&L.value!==void 0?c(c({},N),{},{value:L.value}):N}}]),A}(m.a.Component);R.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:"rc-rate",onChange:v,character:"\u2605",onHoverChange:v,tabIndex:0,direction:"ltr"};var M=R,C=z.a=M},"9Bee":function(k,z,o){"use strict";var P=o("DYRE"),g=o("zeV3"),T=o("+L6B"),b=o("2/Rp"),y=o("k1fw"),x=o("9og8"),O=o("tJVT"),m=o("WmNS"),e=o.n(m),f=o("q1tI"),a=o.n(f),u=o("vg9a"),r=o("DlQD"),i=o.n(r),n=o("rUJ1");function l(pe,X){var q=pe.match(/^(\s+)(?:```)/);if(q===null)return X;var oe=q[1];return X.split(`
|
|
|
`).map(function(De){var fe=De.match(/^\s+/);if(fe===null)return De;var ot=Object(O.a)(fe,1),Qt=ot[0];return Qt.length>=oe.length?De.slice(oe.length):De}).join(`
|
|
|
`)}var h=[],d=["<ul>"],s=new i.a.Renderer,c=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function w(){h.length=0,d=["<ul>"]}var E={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function v(pe,X,q,oe){if(X>=pe.length||pe[X].level<=q)return X;var De=pe[X];oe.push("<li><a href='#"+De.anchor+"'>"+De.text+"</a>"),X++;var fe=[];return X=v(pe,X,De.level,fe),fe.length>0&&(oe.push("<ul>"),fe.forEach(function(ot){oe.push(ot)}),oe.push("</ul>")),oe.push("</li>"),X=v(pe,X,q,oe),X}function R(){return v(h,0,0,d),d.push("</ul>"),d.join("")}var M={heading:function(X){var q=c.exec(X);if(q)return{type:"heading",raw:q[0],depth:q[1].length,text:q[2]}},fences:function(X){var q=this.rules.block.fences.exec(X);if(q){var oe=q[0],De=l(oe,q[3]||""),fe=q[2]?q[2].trim():q[2];if(["latex","katex","math"].indexOf(fe)>=0){var ot=_(),Qt=De;De=ot,A[ot]={type:"block",expression:Qt}}return{type:"code",raw:oe,lang:fe,text:De}}}},C=/(?:\${2})([^\n`]+?)(?:\${2})/gi,S=0,_=function(){return"__special_katext_id_".concat(S++,"__")},A={};function U(){return A}function L(){S=0,A={}}function N(pe){return pe=pe.replace(C,function(X,q){var oe=_();return A[oe]={type:"inline",expression:q},oe}),pe}var V=s.listitem;s.listitem=function(pe){return V(N(pe))};var H=s.paragraph;s.paragraph=function(pe){return H(N(pe))};var D=s.tablecell;s.tablecell=function(pe,X){return D(N(pe),X)},s.code=function(pe,X,q){var oe=(X||"").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(X,'">').concat(q?pe:Object(n.escape)(pe,!0),`</code></pre>
|
|
|
`):'<pre class="prettyprint linenums"><code>'+(q?pe:Object(n.escape)(pe,!0))+"</code></pre>"},s.heading=function(pe,X,q){var oe=this.options.headerPrefix+q.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return h.push({anchor:oe,level:X,text:pe}),"<h"+X+' id="'+oe+'">'+pe+"</h"+X+">"},i.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),i.a.use({tokenizer:M,renderer:s});var W=i.a,F=o("SJMd"),I=o("ulZh"),K=o.n(I),ee=o("m3rI"),he=o("Oy/b"),de=o("p5ED"),Se=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 Te=function(pe,X){return(Te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,oe){q.__proto__=oe}||function(q,oe){for(var De in oe)Object.prototype.hasOwnProperty.call(oe,De)&&(q[De]=oe[De])})(pe,X)};function ce(pe,X){function q(){this.constructor=pe}Te(pe,X),pe.prototype=X===null?Object.create(X):(q.prototype=X.prototype,new q)}function be(pe,X,q,oe){return new(q||(q=Promise))(function(De,fe){function ot(Vn){try{Mn(oe.next(Vn))}catch($t){fe($t)}}function Qt(Vn){try{Mn(oe.throw(Vn))}catch($t){fe($t)}}function Mn(Vn){var $t;Vn.done?De(Vn.value):($t=Vn.value,$t instanceof q?$t:new q(function(gn){gn($t)})).then(ot,Qt)}Mn((oe=oe.apply(pe,X||[])).next())})}function Ee(pe,X){var q,oe,De,fe,ot={label:0,sent:function(){if(1&De[0])throw De[1];return De[1]},trys:[],ops:[]};return fe={next:Qt(0),throw:Qt(1),return:Qt(2)},typeof Symbol=="function"&&(fe[Symbol.iterator]=function(){return this}),fe;function Qt(Mn){return function(Vn){return function($t){if(q)throw new TypeError("Generator is already executing.");for(;ot;)try{if(q=1,oe&&(De=2&$t[0]?oe.return:$t[0]?oe.throw||((De=oe.return)&&De.call(oe),0):oe.next)&&!(De=De.call(oe,$t[1])).done)return De;switch(oe=0,De&&($t=[2&$t[0],De.value]),$t[0]){case 0:case 1:De=$t;break;case 4:return ot.label++,{value:$t[1],done:!1};case 5:ot.label++,oe=$t[1],$t=[0];continue;case 7:$t=ot.ops.pop(),ot.trys.pop();continue;default:if(!(De=ot.trys,(De=De.length>0&&De[De.length-1])||$t[0]!==6&&$t[0]!==2)){ot=0;continue}if($t[0]===3&&(!De||$t[1]>De[0]&&$t[1]<De[3])){ot.label=$t[1];break}if($t[0]===6&&ot.label<De[1]){ot.label=De[1],De=$t;break}if(De&&ot.label<De[2]){ot.label=De[2],ot.ops.push($t);break}De[2]&&ot.ops.pop(),ot.trys.pop();continue}$t=X.call(pe,ot)}catch(gn){$t=[6,gn],oe=0}finally{q=De=0}if(5&$t[0])throw $t[1];return{value:$t[0]?$t[1]:void 0,done:!0}}([Mn,Vn])}}}function ue(){for(var pe=0,X=0,q=arguments.length;X<q;X++)pe+=arguments[X].length;var oe=Array(pe),De=0;for(X=0;X<q;X++)for(var fe=arguments[X],ot=0,Qt=fe.length;ot<Qt;ot++,De++)oe[De]=fe[ot];return oe}var le=function(){function pe(){}return pe.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},pe.setAttributes=function(X,q){for(var oe=0,De=q;oe<De.length;oe++){var fe=De[oe],ot=fe[0],Qt=fe[1];X.setAttribute(ot,Qt)}},pe.createRect=function(X,q,oe){var De=document.createElementNS("http://www.w3.org/2000/svg","rect");return De.setAttribute("width",X.toString()),De.setAttribute("height",q.toString()),oe&&pe.setAttributes(De,oe),De},pe.createLine=function(X,q,oe,De,fe){var ot=document.createElementNS("http://www.w3.org/2000/svg","line");return ot.setAttribute("x1",X.toString()),ot.setAttribute("y1",q.toString()),ot.setAttribute("x2",oe.toString()),ot.setAttribute("y2",De.toString()),fe&&pe.setAttributes(ot,fe),ot},pe.createPolygon=function(X,q){var oe=document.createElementNS("http://www.w3.org/2000/svg","polygon");return oe.setAttribute("points",X),q&&pe.setAttributes(oe,q),oe},pe.createCircle=function(X,q){var oe=document.createElementNS("http://www.w3.org/2000/svg","circle");return oe.setAttribute("cx",(X/2).toString()),oe.setAttribute("cy",(X/2).toString()),oe.setAttribute("r",X.toString()),q&&pe.setAttributes(oe,q),oe},pe.createEllipse=function(X,q,oe){var De=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return De.setAttribute("cx",(X/2).toString()),De.setAttribute("cy",(q/2).toString()),De.setAttribute("rx",(X/2).toString()),De.setAttribute("ry",(q/2).toString()),oe&&pe.setAttributes(De,oe),De},pe.createGroup=function(X){var q=document.createElementNS("http://www.w3.org/2000/svg","g");return X&&pe.setAttributes(q,X),q},pe.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},pe.createMarker=function(X,q,oe,De,fe,ot,Qt){var Mn=document.createElementNS("http://www.w3.org/2000/svg","marker");return pe.setAttributes(Mn,[["id",X],["orient",q],["markerWidth",oe.toString()],["markerHeight",De.toString()],["refX",fe.toString()],["refY",ot.toString()]]),Mn.appendChild(Qt),Mn},pe.createText=function(X){var q=document.createElementNS("http://www.w3.org/2000/svg","text");return q.setAttribute("x","0"),q.setAttribute("y","0"),X&&pe.setAttributes(q,X),q},pe.createTSpan=function(X,q){var oe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return oe.textContent=X,q&&pe.setAttributes(oe,q),oe},pe.createImage=function(X){var q=document.createElementNS("http://www.w3.org/2000/svg","image");return X&&pe.setAttributes(q,X),q},pe.createPoint=function(X,q){var oe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return oe.x=X,oe.y=q,oe},pe.createPath=function(X,q){var oe=document.createElementNS("http://www.w3.org/2000/svg","path");return oe.setAttribute("d",X),q&&pe.setAttributes(oe,q),oe},pe}(),$=function(){function pe(){}return pe.addKey=function(X){pe.key=X},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(X,q,oe){var De=this;return new Promise(function(fe){var ot=oe!==void 0?oe:document.createElement("canvas");X===null&&(De.markersOnly=!0,De.naturalSize=!1);var Qt=document.createElementNS("http://www.w3.org/2000/svg","svg");Qt.setAttribute("xmlns","http://www.w3.org/2000/svg"),Qt.setAttribute("width",q.width.baseVal.valueAsString),Qt.setAttribute("height",q.height.baseVal.valueAsString),Qt.setAttribute("viewBox","0 0 "+q.viewBox.baseVal.width.toString()+" "+q.viewBox.baseVal.height.toString()),Qt.innerHTML=q.innerHTML,De.naturalSize===!0?(Qt.width.baseVal.value=X.naturalWidth,Qt.height.baseVal.value=X.naturalHeight):De.width!==void 0&&De.height!==void 0&&(Qt.width.baseVal.value=De.width,Qt.height.baseVal.value=De.height),ot.width=Qt.width.baseVal.value,ot.height=Qt.height.baseVal.value;var Mn=Qt.outerHTML,Vn=ot.getContext("2d");De.markersOnly!==!0&&Vn.drawImage(X,0,0,ot.width,ot.height);var $t=window.URL,gn=new Image(ot.width,ot.height);gn.setAttribute("crossOrigin","anonymous");var pn=new Blob([Mn],{type:"image/svg+xml"}),Ar=$t.createObjectURL(pn);gn.onload=function(){Vn.drawImage(gn,0,0),$t.revokeObjectURL(Ar);var ra=ot.toDataURL(De.imageType,De.imageQuality);fe(ra)},gn.src=Ar})},pe}(),re=function(){},ae=function(){function pe(X){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+X+"_"}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(X){return this.styleSheet===void 0&&this.addStyleSheet(),X.name=""+this.classNamePrefix+X.localName,this.classes.push(X),this.styleSheet.sheet.insertRule("."+X.name+" {"+X.style+"}",this.styleSheet.sheet.cssRules.length),X},pe.prototype.addRule=function(X){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(X),this.styleSheet.sheet.insertRule(X.selector+" {"+X.style+"}",this.styleSheet.sheet.cssRules.length)},pe.prototype.addStyleSheet=function(){var X;this.styleSheet=document.createElement("style"),((X=this.styleSheetRoot)!==null&&X!==void 0?X:document.head).appendChild(this.styleSheet),this.addRule(new Oe("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Oe("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new Oe("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new se("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new se("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},pe.prototype.removeStyleSheet=function(){var X;this.styleSheet&&(((X=this.styleSheetRoot)!==null&&X!==void 0?X:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},pe}(),Oe=function(pe,X){this.selector=pe,this.style=X},se=function(pe,X){this.localName=pe,this.style=X},te=function(){function pe(X,q,oe,De,fe){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=X,this.displayMode=q,this.markerItems=oe,this.uiStyleSettings=De,this.styles=fe,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(X){var q=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=X,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(fe){var ot=document.createElement("div");ot.className=""+q.toolbarButtonStyleClass.name,ot.setAttribute("data-type-name",fe.typeName),ot.innerHTML=fe.icon,ot.addEventListener("click",function(){q.markerToolbarButtonClicked(ot,fe)}),q.buttons.push(ot),q.markerButtons.push(ot)}),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 De=document.createElement("div");De.className=this.toolbarBlockStyleClass.name,De.style.whiteSpace="nowrap",De.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(De),this.addActionButton(De,'<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(De,'<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(X){this.buttonClickListeners.push(X)},pe.prototype.removeButtonClickListener=function(X){this.buttonClickListeners.indexOf(X)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(X),1)},pe.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},pe.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var X=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var q=0;q<this.markerButtons.length;q++)q<X||q===X&&this.markerButtons.length-1===X?this.markerButtonBlock.appendChild(this.markerButtons[q]):(q===X&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[q]))}},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 X=this;this.buttons.forEach(function(q){q.className=q.className.replace(X.uiStyleSettings.toolbarButtonStyleColorsClassName?X.uiStyleSettings.toolbarButtonStyleColorsClassName:X.toolbarButtonStyleColorsClass.name,"").trim(),q.className=q.className.replace(X.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?X.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:X.toolbarActiveButtonStyleColorsClass.name,"").trim(),q.className+=" "+(X.uiStyleSettings.toolbarButtonStyleColorsClassName?X.uiStyleSettings.toolbarButtonStyleColorsClassName:X.toolbarButtonStyleColorsClass.name)})},pe.prototype.addActionButton=function(X,q,oe){var De=this,fe=document.createElement("div");switch(fe.className=""+this.toolbarButtonStyleClass.name,fe.innerHTML=q,fe.setAttribute("data-action",oe),fe.addEventListener("click",function(){De.actionToolbarButtonClicked(fe,oe)}),oe){case"select":fe.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":fe.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":fe.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":fe.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":fe.style.fill=this.uiStyleSettings.closeButtonColor}X.appendChild(fe),this.buttons.push(fe)},pe.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new se("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 se("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new se("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new se("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 se("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var X=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new se("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*X)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*X)+`px;
|
|
|
padding: `+X+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new se("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new se("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new Oe("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new Oe("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},pe.prototype.markerToolbarButtonClicked=function(X,q){this.setActiveButton(X),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(oe){return oe("marker",q)}),this.markerButtonOverflowBlock.style.display="none"},pe.prototype.actionToolbarButtonClicked=function(X,q){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(oe){return oe("action",q)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},pe.prototype.setActiveButton=function(X){this.resetButtonStyles(),X.className=X.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),X.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},pe.prototype.setActiveMarkerButton=function(X){var q=this.markerButtons.find(function(oe){return oe.getAttribute("data-type-name")===X});q&&this.setActiveButton(q)},pe.prototype.setCurrentMarker=function(X){var q=this;this.currentMarker=X,this.buttons.filter(function(oe){return/delete|notes/.test(oe.getAttribute("data-action"))}).forEach(function(oe){q.currentMarker===void 0?(oe.style.fillOpacity="0.4",oe.style.pointerEvents="none"):(oe.style.fillOpacity="1",oe.style.pointerEvents="all")})},pe}(),Q=function(){function pe(X,q,oe,De){this.panels=[],this.panelButtons=[],this.markerjsContainer=X,this.displayMode=q,this.uiStyleSettings=oe,this.styles=De,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return pe.prototype.addStyles=function(){var X;this.toolboxStyleClass=this.styles.addClass(new se("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 se("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var q=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new se("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new se("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new se("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 se("toolbox-panel-row_colors",`
|
|
|
background-color: `+((X=this.uiStyleSettings.toolboxBackgroundColor)!==null&&X!==void 0?X:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new se("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*q)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*q)+`px;
|
|
|
padding: `+q+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new se("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new se("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new Oe("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new Oe("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},pe.prototype.show=function(X){var q;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=X,this.uiContainer.className=this.toolboxStyleClass.name+" "+((q=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&q!==void 0?q:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},pe.prototype.setPanelButtons=function(X){var q,oe,De=this;this.panels=X,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((q=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&q!==void 0?q: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(fe){var ot;fe.uiStyleSettings=De.uiStyleSettings;var Qt=document.createElement("div");Qt.className=De.toolboxButtonStyleClass.name+" "+((ot=De.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ot!==void 0?ot:De.toolboxButtonStyleColorsClass.name),Qt.innerHTML=fe.icon,Qt.title=fe.title,Qt.addEventListener("click",function(){De.panelButtonClick(fe)}),De.panelButtons.push(Qt),De.buttonRow.appendChild(Qt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},pe.prototype.panelButtonClick=function(X){var q=this,oe=-1;if(X!==this.activePanel){oe=this.panels.indexOf(X),this.panelRow.innerHTML="";var De=X.getUi();De.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(De),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=X}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){q.displayMode==="inline"?q.panelRow.style.display="none":q.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(fe,ot){var Qt,Mn;fe.className=q.toolboxButtonStyleClass.name+" "+(ot===oe?""+((Qt=q.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Qt!==void 0?Qt:q.toolboxActiveButtonStyleColorsClass.name):""+((Mn=q.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Mn!==void 0?Mn:q.toolboxButtonStyleColorsClass.name))})},pe}(),J=function(pe,X){this.title=pe,this.icon=X},ve=function(pe){function X(q,oe,De,fe){var ot=pe.call(this,q,fe||'<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 ot.colors=[],ot.addTransparent=!1,ot.colorBoxes=[],ot.colors=oe,ot.currentColor=De,ot.setCurrentColor=ot.setCurrentColor.bind(ot),ot.getColorBox=ot.getColorBox.bind(ot),ot}return ce(X,pe),X.prototype.getUi=function(){var q=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.whiteSpace="nowrap",this.colors.forEach(function(De){var fe=q.getColorBox(De);oe.appendChild(fe),q.colorBoxes.push(fe)}),oe},X.prototype.getColorBox=function(q){var oe=this,De=this.uiStyleSettings.toolbarHeight/4,fe=this.uiStyleSettings.toolbarHeight-De,ot=document.createElement("div");ot.style.display="inline-block",ot.style.boxSizing="content-box",ot.style.width=fe-2+"px",ot.style.height=fe-2+"px",ot.style.padding="1px",ot.style.marginRight="2px",ot.style.marginBottom="2px",ot.style.borderWidth="2px",ot.style.borderStyle="solid",ot.style.borderRadius=(fe+2)/2+"px",ot.style.borderColor=q===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ot.addEventListener("click",function(){oe.setCurrentColor(q,ot)});var Qt=document.createElement("div");return Qt.style.display="inline-block",Qt.style.width=fe-2+"px",Qt.style.height=fe-2+"px",Qt.style.backgroundColor=q,Qt.style.borderRadius=fe/2+"px",q==="transparent"&&(Qt.style.fill=this.uiStyleSettings.toolboxAccentColor,Qt.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>`),ot.appendChild(Qt),ot},X.prototype.setCurrentColor=function(q,oe){var De=this;this.currentColor=q,this.colorBoxes.forEach(function(fe){fe.style.borderColor=fe===oe?De.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(q)},X}(J),_e=function(){function pe(X,q,oe){this._state="new",this._isSelected=!1,this._container=X,this._overlayContainer=q,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(X){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(X,q){},pe.prototype.dblClick=function(X,q){},pe.prototype.manipulate=function(X){},pe.prototype.pointerUp=function(X){this.stateChanged()},pe.prototype.dispose=function(){},pe.prototype.addMarkerVisualToContainer=function(X){this.container.childNodes.length>0?this.container.insertBefore(X,this.container.childNodes[0]):this.container.appendChild(X)},pe.prototype.getState=function(){return{typeName:pe.typeName,state:this.state,notes:this.notes}},pe.prototype.restoreState=function(X){this._state=X.state,this.notes=X.notes},pe.prototype.scale=function(X,q){},pe.prototype.colorChanged=function(X){this.onColorChanged&&this.onColorChanged(X),this.stateChanged()},pe.prototype.fillColorChanged=function(X){this.onFillColorChanged&&this.onFillColorChanged(X),this.stateChanged()},pe.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var X=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),X.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(X)&&this.onStateChanged(this)}},pe.typeName="MarkerBase",pe}(),Ae=function(){function pe(){this.findGripByVisual=this.findGripByVisual.bind(this)}return pe.prototype.findGripByVisual=function(X){return this.topLeft.ownsTarget(X)?this.topLeft:this.topCenter.ownsTarget(X)?this.topCenter:this.topRight.ownsTarget(X)?this.topRight:this.centerLeft.ownsTarget(X)?this.centerLeft:this.centerRight.ownsTarget(X)?this.centerRight:this.bottomLeft.ownsTarget(X)?this.bottomLeft:this.bottomCenter.ownsTarget(X)?this.bottomCenter:this.bottomRight.ownsTarget(X)?this.bottomRight:void 0},pe}(),Qe=function(){function pe(){this.GRIP_SIZE=10,this.visual=le.createGroup(),this.visual.appendChild(le.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(le.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return pe.prototype.ownsTarget=function(X){return X===this.visual||X===this.visual.childNodes[0]||X===this.visual.childNodes[1]},pe}(),tt=function(){function pe(){}return pe.toITransformMatrix=function(X){return{a:X.a,b:X.b,c:X.c,d:X.d,e:X.e,f:X.f}},pe.toSVGMatrix=function(X,q){return X.a=q.a,X.b=q.b,X.c=q.c,X.d=q.d,X.e=q.e,X.f=q.f,X},pe}(),dt=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.left=0,fe.top=0,fe.width=0,fe.height=0,fe.defaultSize={x:50,y:20},fe.offsetX=0,fe.offsetY=0,fe.rotationAngle=0,fe.CB_DISTANCE=10,fe._suppressMarkerCreateEvent=!1,fe.container.transform.baseVal.appendItem(le.createTransform()),fe.setupControlBox(),fe}return ce(X,pe),Object.defineProperty(X.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"visual",{get:function(){return this._visual},set:function(q){this._visual=q;var oe=le.createTransform();this._visual.transform.baseVal.appendItem(oe)},enumerable:!1,configurable:!0}),X.prototype.ownsTarget=function(q){return!!pe.prototype.ownsTarget.call(this,q)||!!(this.controlGrips.findGripByVisual(q)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(q))},X.prototype.pointerDown=function(q,oe){pe.prototype.pointerDown.call(this,q,oe),this.state==="new"&&(this.left=q.x,this.top=q.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var De=this.unrotatePoint(q);if(this.manipulationStartX=De.x,this.manipulationStartY=De.y,this.offsetX=De.x-this.left,this.offsetY=De.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 fe=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=fe.x-this.width/2,this.top=fe.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var ot=this.container.transform.baseVal.getItem(0);ot.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ot,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},X.prototype.pointerUp=function(q){var oe=this.state;pe.prototype.pointerUp.call(this,q),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(q),this._state="select",oe==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},X.prototype.moveVisual=function(q){this.visual.style.transform="translate("+q.x+"px, "+q.y+"px)"},X.prototype.manipulate=function(q){var oe=this.unrotatePoint(q);this.state==="creating"?this.resize(q):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(q)},X.prototype.resize=function(q){var oe=this.manipulationStartLeft,De=this.manipulationStartWidth,fe=this.manipulationStartTop,ot=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:oe=this.manipulationStartLeft+q.x-this.manipulationStartX,De=this.manipulationStartWidth+this.manipulationStartLeft-oe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:De=this.manipulationStartWidth+q.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:fe=this.manipulationStartTop+q.y-this.manipulationStartY,ot=this.manipulationStartHeight+this.manipulationStartTop-fe;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ot=this.manipulationStartHeight+q.y-this.manipulationStartY}De>=0?(this.left=oe,this.width=De):(this.left=oe+De,this.width=-De),ot>=0?(this.top=fe,this.height=ot):(this.top=fe+ot,this.height=-ot),this.setSize()},X.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},X.prototype.rotate=function(q){if(Math.abs(q.x-this.centerX)>.1){var oe=Math.sign(q.x-this.centerX);this.rotationAngle=180*Math.atan((q.y-this.centerY)/(q.x-this.centerX))/Math.PI+90*oe,this.applyRotation()}},X.prototype.applyRotation=function(){var q=this.container.transform.baseVal.getItem(0);q.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(q,0)},X.prototype.rotatePoint=function(q){if(this.rotationAngle===0)return q;var oe=this.container.getCTM(),De=le.createPoint(q.x,q.y);return{x:(De=De.matrixTransform(oe)).x,y:De.y}},X.prototype.unrotatePoint=function(q){if(this.rotationAngle===0)return q;var oe=this.container.getCTM();oe=oe.inverse();var De=le.createPoint(q.x,q.y);return{x:(De=De.matrixTransform(oe)).x,y:De.y}},X.prototype.select=function(){pe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},X.prototype.deselect=function(){pe.prototype.deselect.call(this),this.controlBox.style.display="none"},X.prototype.setupControlBox=function(){this.controlBox=le.createGroup();var q=le.createTransform();q.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(q),this.container.appendChild(this.controlBox),this.controlRect=le.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=le.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 Ae,this.addControlGrips(),this.controlBox.style.display="none"},X.prototype.adjustControlBox=function(){var q=this.controlBox.transform.baseVal.getItem(0);q.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(q,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()},X.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()},X.prototype.createGrip=function(){var q=new Qe;return q.visual.transform.baseVal.appendItem(le.createTransform()),this.controlBox.appendChild(q.visual),q},X.prototype.positionGrips=function(){var q=this.controlGrips.topLeft.GRIP_SIZE,oe=-q/2,De=oe,fe=(this.width+this.CB_DISTANCE)/2-q/2,ot=(this.height+this.CB_DISTANCE)/2-q/2,Qt=this.height+this.CB_DISTANCE-q/2,Mn=this.width+this.CB_DISTANCE-q/2;this.positionGrip(this.controlGrips.topLeft.visual,oe,De),this.positionGrip(this.controlGrips.topCenter.visual,fe,De),this.positionGrip(this.controlGrips.topRight.visual,Mn,De),this.positionGrip(this.controlGrips.centerLeft.visual,oe,ot),this.positionGrip(this.controlGrips.centerRight.visual,Mn,ot),this.positionGrip(this.controlGrips.bottomLeft.visual,oe,Qt),this.positionGrip(this.controlGrips.bottomCenter.visual,fe,Qt),this.positionGrip(this.controlGrips.bottomRight.visual,Mn,Qt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,fe,De-3*this.CB_DISTANCE)},X.prototype.positionGrip=function(q,oe,De){var fe=q.transform.baseVal.getItem(0);fe.setTranslate(oe,De),q.transform.baseVal.replaceItem(fe,0)},X.prototype.hideControlBox=function(){this.controlBox.style.display="none"},X.prototype.showControlBox=function(){this.controlBox.style.display=""},X.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:tt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:tt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},pe.prototype.getState.call(this))},X.prototype.restoreState=function(q){pe.prototype.restoreState.call(this,q);var oe=q;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(tt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,oe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(tt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,oe.containerTransformMatrix))},X.prototype.scale=function(q,oe){pe.prototype.scale.call(this,q,oe);var De=this.rotatePoint({x:this.left,y:this.top}),fe=this.unrotatePoint({x:De.x*q,y:De.y*oe});this.left=fe.x,this.top=fe.y,this.width=this.width*q,this.height=this.height*oe,this.adjustControlBox()},X}(_e),mt=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.fillColor="transparent",fe.strokeColor="transparent",fe.strokeWidth=0,fe.strokeDasharray="",fe.opacity=1,fe.setStrokeColor=fe.setStrokeColor.bind(fe),fe.setFillColor=fe.setFillColor.bind(fe),fe.setStrokeWidth=fe.setStrokeWidth.bind(fe),fe.setStrokeDasharray=fe.setStrokeDasharray.bind(fe),fe.createVisual=fe.createVisual.bind(fe),fe}return ce(X,pe),X.prototype.ownsTarget=function(q){return!(!pe.prototype.ownsTarget.call(this,q)&&q!==this.visual)},X.prototype.createVisual=function(){this.visual=le.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)},X.prototype.pointerDown=function(q,oe){pe.prototype.pointerDown.call(this,q,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(q),this._state="creating")},X.prototype.manipulate=function(q){pe.prototype.manipulate.call(this,q)},X.prototype.resize=function(q){pe.prototype.resize.call(this,q),this.setSize()},X.prototype.setSize=function(){pe.prototype.setSize.call(this),le.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},X.prototype.pointerUp=function(q){pe.prototype.pointerUp.call(this,q),this.setSize()},X.prototype.setStrokeColor=function(q){this.strokeColor=q,this.visual&&le.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(q),this.stateChanged()},X.prototype.setFillColor=function(q){this.fillColor=q,this.visual&&le.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},X.prototype.setStrokeWidth=function(q){this.strokeWidth=q,this.visual&&le.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},X.prototype.setStrokeDasharray=function(q){this.strokeDasharray=q,this.visual&&le.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},X.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))},X.prototype.restoreState=function(q){var oe=q;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,q),this.setSize()},X.prototype.scale=function(q,oe){pe.prototype.scale.call(this,q,oe),this.setSize()},X.title="Rectangle marker",X}(dt),vt=function(pe){function X(q,oe,De,fe){var ot=pe.call(this,q,fe||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return ot.widths=[],ot.widthBoxes=[],ot.widths=oe,ot.currentWidth=De,ot.setCurrentWidth=ot.setCurrentWidth.bind(ot),ot}return ce(X,pe),X.prototype.getUi=function(){var q=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.widths.forEach(function(De){var fe=document.createElement("div");fe.style.display="flex",fe.style.flexGrow="2",fe.style.alignItems="center",fe.style.justifyContent="space-between",fe.style.padding="5px",fe.style.borderWidth="2px",fe.style.borderStyle="solid",fe.style.borderColor=De===q.currentWidth?q.uiStyleSettings.toolboxAccentColor:"transparent",fe.addEventListener("click",function(){q.setCurrentWidth(De,fe)}),oe.appendChild(fe);var ot=document.createElement("div");ot.innerText=De.toString(),ot.style.marginRight="5px",fe.appendChild(ot);var Qt=document.createElement("div");Qt.style.minHeight="20px",Qt.style.flexGrow="2",Qt.style.display="flex",Qt.style.alignItems="center";var Mn=document.createElement("hr");Mn.style.minWidth="20px",Mn.style.border="0px",Mn.style.borderTop=De+"px solid "+q.uiStyleSettings.toolboxColor,Mn.style.flexGrow="2",Qt.appendChild(Mn),fe.appendChild(Qt),q.widthBoxes.push(fe)}),oe},X.prototype.setCurrentWidth=function(q,oe){var De=this;this.currentWidth=q,this.widthBoxes.forEach(function(fe){fe.style.borderColor=fe===oe?De.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},X}(J),yt=function(pe){function X(q,oe,De,fe){var ot=pe.call(this,q,fe||'<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 ot.styles=[],ot.styleBoxes=[],ot.styles=oe,ot.currentStyle=De,ot.setCurrentStyle=ot.setCurrentStyle.bind(ot),ot}return ce(X,pe),X.prototype.getUi=function(){var q=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.styles.forEach(function(De){var fe=document.createElement("div");fe.style.display="flex",fe.style.alignItems="center",fe.style.justifyContent="space-between",fe.style.padding="5px",fe.style.borderWidth="2px",fe.style.borderStyle="solid",fe.style.overflow="hidden",fe.style.maxWidth=100/q.styles.length-5+"%",fe.style.borderColor=De===q.currentStyle?q.uiStyleSettings.toolboxAccentColor:"transparent",fe.addEventListener("click",function(){q.setCurrentStyle(De,fe)}),oe.appendChild(fe);var ot=document.createElement("div");ot.style.minHeight="20px",ot.style.flexGrow="2",ot.style.overflow="hidden";var Qt=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+q.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(De!==""?'stroke-dasharray="'+De+'"':"")+` />
|
|
|
</svg>`;ot.innerHTML=Qt,fe.appendChild(ot),q.styleBoxes.push(fe)}),oe},X.prototype.setCurrentStyle=function(q,oe){var De=this;this.currentStyle=q,this.styleBoxes.forEach(function(fe){fe.style.borderColor=fe===oe?De.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},X}(J),Ye=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.strokeColor=De.defaultColor,fe.strokeWidth=De.defaultStrokeWidth,fe.strokeDasharray=De.defaultStrokeDasharray,fe.strokePanel=new ve("Line color",De.defaultColorSet,De.defaultColor),fe.strokePanel.onColorChanged=fe.setStrokeColor,fe.strokeWidthPanel=new vt("Line width",De.defaultStrokeWidths,De.defaultStrokeWidth),fe.strokeWidthPanel.onWidthChanged=fe.setStrokeWidth,fe.strokeStylePanel=new yt("Line style",De.defaultStrokeDasharrays,De.defaultStrokeDasharray),fe.strokeStylePanel.onStyleChanged=fe.setStrokeDasharray,fe}return ce(X,pe),Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=pe.prototype.getState.call(this);return q.typeName=X.typeName,q},X.typeName="FrameMarker",X.title="Frame marker",X.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',X}(mt),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 X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.x1=0,fe.y1=0,fe.x2=0,fe.y2=0,fe.defaultLength=50,fe.manipulationStartX=0,fe.manipulationStartY=0,fe.manipulationStartX1=0,fe.manipulationStartY1=0,fe.manipulationStartX2=0,fe.manipulationStartY2=0,fe.setupControlBox(),fe}return ce(X,pe),X.prototype.ownsTarget=function(q){return!!pe.prototype.ownsTarget.call(this,q)||!(!this.grip1.ownsTarget(q)&&!this.grip2.ownsTarget(q))},X.prototype.pointerDown=function(q,oe){pe.prototype.pointerDown.call(this,q,oe),this.manipulationStartX=q.x,this.manipulationStartY=q.y,this.state==="new"&&(this.x1=q.x,this.y1=q.y,this.x2=q.x,this.y2=q.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")},X.prototype.pointerUp=function(q){var oe=this.state;pe.prototype.pointerUp.call(this,q),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(q),this._state="select",oe==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},X.prototype.adjustVisual=function(){},X.prototype.manipulate=function(q){this.state==="creating"?this.resize(q):this.state==="move"?(this.x1=this.manipulationStartX1+q.x-this.manipulationStartX,this.y1=this.manipulationStartY1+q.y-this.manipulationStartY,this.x2=this.manipulationStartX2+q.x-this.manipulationStartX,this.y2=this.manipulationStartY2+q.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(q)},X.prototype.resize=function(q){switch(this.activeGrip){case this.grip1:this.x1=q.x,this.y1=q.y;break;case this.grip2:case void 0:this.x2=q.x,this.y2=q.y}this.adjustVisual(),this.adjustControlBox()},X.prototype.select=function(){pe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},X.prototype.deselect=function(){pe.prototype.deselect.call(this),this.controlBox.style.display="none"},X.prototype.setupControlBox=function(){this.controlBox=le.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},X.prototype.adjustControlBox=function(){this.positionGrips()},X.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},X.prototype.createGrip=function(){var q=new Qe;return q.visual.transform.baseVal.appendItem(le.createTransform()),this.controlBox.appendChild(q.visual),q},X.prototype.positionGrips=function(){var q=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-q/2,this.y1-q/2),this.positionGrip(this.grip2.visual,this.x2-q/2,this.y2-q/2)},X.prototype.positionGrip=function(q,oe,De){var fe=q.transform.baseVal.getItem(0);fe.setTranslate(oe,De),q.transform.baseVal.replaceItem(fe,0)},X.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},pe.prototype.getState.call(this))},X.prototype.restoreState=function(q){pe.prototype.restoreState.call(this,q);var oe=q;this.x1=oe.x1,this.y1=oe.y1,this.x2=oe.x2,this.y2=oe.y2},X.prototype.scale=function(q,oe){pe.prototype.scale.call(this,q,oe),this.x1=this.x1*q,this.y1=this.y1*oe,this.x2=this.x2*q,this.y2=this.y2*oe,this.adjustVisual(),this.adjustControlBox()},X}(_e),jt=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.strokeColor="transparent",fe.strokeWidth=0,fe.strokeDasharray="",fe.setStrokeColor=fe.setStrokeColor.bind(fe),fe.setStrokeWidth=fe.setStrokeWidth.bind(fe),fe.setStrokeDasharray=fe.setStrokeDasharray.bind(fe),fe.strokeColor=De.defaultColor,fe.strokeWidth=De.defaultStrokeWidth,fe.strokeDasharray=De.defaultStrokeDasharray,fe.strokePanel=new ve("Line color",De.defaultColorSet,De.defaultColor),fe.strokePanel.onColorChanged=fe.setStrokeColor,fe.strokeWidthPanel=new vt("Line width",De.defaultStrokeWidths,De.defaultStrokeWidth),fe.strokeWidthPanel.onWidthChanged=fe.setStrokeWidth,fe.strokeStylePanel=new yt("Line style",De.defaultStrokeDasharrays,De.defaultStrokeDasharray),fe.strokeStylePanel.onStyleChanged=fe.setStrokeDasharray,fe}return ce(X,pe),X.prototype.ownsTarget=function(q){return!(!pe.prototype.ownsTarget.call(this,q)&&q!==this.visual&&q!==this.selectorLine&&q!==this.visibleLine)},X.prototype.createVisual=function(){this.visual=le.createGroup(),this.selectorLine=le.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=le.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)},X.prototype.pointerDown=function(q,oe){pe.prototype.pointerDown.call(this,q,oe),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},X.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()),le.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),le.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),le.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},X.prototype.setStrokeColor=function(q){this.strokeColor=q,this.adjustVisual(),this.colorChanged(q)},X.prototype.setStrokeWidth=function(q){this.strokeWidth=q,this.adjustVisual()},X.prototype.setStrokeDasharray=function(q){this.strokeDasharray=q,this.adjustVisual(),this.stateChanged()},Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},pe.prototype.getState.call(this));return q.typeName=X.typeName,q},X.prototype.restoreState=function(q){pe.prototype.restoreState.call(this,q);var oe=q;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.createVisual(),this.adjustVisual()},X.typeName="LineMarker",X.title="Line marker",X.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',X}(ft),bt=function(pe){function X(q,oe,De,fe){var ot=pe.call(this,q,fe||'<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 ot.fonts=[],ot.fontBoxes=[],ot.fonts=oe,ot.currentFont=De,ot.setCurrentFont=ot.setCurrentFont.bind(ot),ot}return ce(X,pe),X.prototype.getUi=function(){var q=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.flexGrow="2",this.fonts.forEach(function(De){var fe=document.createElement("div");fe.style.display="inline-block",fe.style.alignItems="center",fe.style.justifyContent="space-between",fe.style.padding="5px",fe.style.borderWidth="2px",fe.style.borderStyle="solid",fe.style.overflow="hidden",fe.style.maxWidth=100/q.fonts.length-5+"%",fe.style.borderColor=De===q.currentFont?q.uiStyleSettings.toolboxAccentColor:"transparent",fe.addEventListener("click",function(){q.setCurrentFont(De,fe)}),oe.appendChild(fe);var ot=document.createElement("div");ot.style.display="flex",ot.style.minHeight="20px",ot.style.flexGrow="2",ot.style.fontFamily=De,ot.style.overflow="hidden";var Qt=document.createElement("div");Qt.style.whiteSpace="nowrap",Qt.style.overflow="hidden",Qt.style.textOverflow="ellipsis",Qt.innerHTML="The quick brown fox jumps over the lazy dog",ot.appendChild(Qt),fe.appendChild(ot),q.fontBoxes.push(fe)}),oe},X.prototype.setCurrentFont=function(q,oe){var De=this;this.currentFont=q,this.fontBoxes.forEach(function(fe){fe.style.borderColor=fe===oe?De.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},X}(J),Pt=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.color="transparent",fe.padding=5,fe.DEFAULT_TEXT="your text here",fe.text=fe.DEFAULT_TEXT,fe.isMoved=!1,fe.color=De.defaultColor,fe.fontFamily=De.defaultFontFamily,fe.defaultSize={x:100,y:30},fe.setColor=fe.setColor.bind(fe),fe.setFont=fe.setFont.bind(fe),fe.renderText=fe.renderText.bind(fe),fe.sizeText=fe.sizeText.bind(fe),fe.textEditDivClicked=fe.textEditDivClicked.bind(fe),fe.showTextEditor=fe.showTextEditor.bind(fe),fe.setSize=fe.setSize.bind(fe),fe.positionTextEditor=fe.positionTextEditor.bind(fe),fe.colorPanel=new ve("Color",De.defaultColorSet,De.defaultColor),fe.colorPanel.onColorChanged=fe.setColor,fe.fontFamilyPanel=new bt("Font",De.defaultFontFamilies,De.defaultFontFamily),fe.fontFamilyPanel.onFontChanged=fe.setFont,fe}return ce(X,pe),X.prototype.ownsTarget=function(q){if(pe.prototype.ownsTarget.call(this,q)||q===this.visual||q===this.textElement||q===this.bgRectangle)return!0;var oe=!1;return this.textElement.childNodes.forEach(function(De){De===q&&(oe=!0)}),oe},X.prototype.createVisual=function(){this.visual=le.createGroup(),this.bgRectangle=le.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=le.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(le.createTransform()),this.textElement.transform.baseVal.appendItem(le.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},X.prototype.pointerDown=function(q,oe){pe.prototype.pointerDown.call(this,q,oe),this.isMoved=!1,this.pointerDownPoint=q,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(q),this._state="creating")},X.prototype.renderText=function(){var q=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){q.textElement.appendChild(le.createTSpan(oe.trim()===""?" ":oe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},X.prototype.getTextScale=function(){var q=this.textElement.getBBox(),oe=1;if(q.width>0&&q.height>0){var De=(1*this.width-this.width*this.padding*2/100)/q.width,fe=(1*this.height-this.height*this.padding*2/100)/q.height;oe=Math.min(De,fe)}return oe},X.prototype.getTextPosition=function(q){var oe=this.textElement.getBBox(),De=0,fe=0;return oe.width>0&&oe.height>0&&(De=(this.width-oe.width*q)/2,fe=this.height/2-oe.height*q/2),{x:De,y:fe}},X.prototype.sizeText=function(){var q=this.textElement.getBBox(),oe=this.getTextScale(),De=this.getTextPosition(oe);De.y-=q.y*oe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+De.x+"px, "+De.y+"px) scale("+oe+", "+oe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(De.x,De.y),this.textElement.transform.baseVal.getItem(1).setScale(oe,oe))},X.prototype.manipulate=function(q){pe.prototype.manipulate.call(this,q),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(q.x-this.pointerDownPoint.x)>5||Math.abs(q.y-this.pointerDownPoint.y)>5)},X.prototype.resize=function(q){pe.prototype.resize.call(this,q),this.isMoved=!0,this.setSize(),this.sizeText()},X.prototype.setSize=function(){pe.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(le.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),le.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},X.prototype.pointerUp=function(q){var oe=this.state;oe==="creating"&&(this._suppressMarkerCreateEvent=!0),pe.prototype.pointerUp.call(this,q),this.setSize(),(oe==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},X.prototype.showTextEditor=function(){var q=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(q.textEditor.style.fontSize);q.textEditor.clientWidth>=Number.parseInt(q.textEditor.style.maxWidth)&&oe>.9;)oe-=.1,q.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 De=oe.clipboardData.getData("text"),fe=window.getSelection();if(!fe.rangeCount)return!1;fe.deleteFromDocument(),fe.getRangeAt(0).insertNode(document.createTextNode(De)),oe.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){q.textEditDivClicked(q.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},X.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var q=this.getTextScale(),oe=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),De=this.textElement.getBBox(),fe={x:De.width*q,y:De.height*q};oe.x-=fe.x/2,oe.y-=fe.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*q,12)+"px",this.textElement.style.display="none"}},X.prototype.textEditDivClicked=function(q){this.text=q.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},X.prototype.select=function(){pe.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},X.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),pe.prototype.deselect.call(this)},X.prototype.dblClick=function(q,oe){pe.prototype.dblClick.call(this,q,oe),this.showTextEditor()},X.prototype.setColor=function(q){this.textElement&&le.setAttributes(this.textElement,[["fill",q]]),this.color=q,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(q)},X.prototype.setFont=function(q){this.textElement&&le.setAttributes(this.textElement,[["font-family",q]]),this.fontFamily=q,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},X.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},X.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},pe.prototype.getState.call(this));return q.typeName=X.typeName,q},X.prototype.restoreState=function(q){var oe=q;this.color=oe.color,this.fontFamily=oe.fontFamily,this.padding=oe.padding,this.text=oe.text,this.createVisual(),pe.prototype.restoreState.call(this,q),this.setSize()},X.prototype.scale=function(q,oe){pe.prototype.scale.call(this,q,oe),this.setSize(),this.sizeText(),this.positionTextEditor()},X.typeName="TextMarker",X.title="Text marker",X.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>',X}(dt),it=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.color="transparent",fe.lineWidth=3,fe.drawing=!1,fe.pixelRatio=1,fe.color=De.defaultColor,fe.lineWidth=De.defaultStrokeWidth,fe.pixelRatio=De.freehandPixelRatio,fe.setColor=fe.setColor.bind(fe),fe.addCanvas=fe.addCanvas.bind(fe),fe.finishCreation=fe.finishCreation.bind(fe),fe.setLineWidth=fe.setLineWidth.bind(fe),fe.colorPanel=new ve("Color",De.defaultColorSet,De.defaultColor),fe.colorPanel.onColorChanged=fe.setColor,fe.lineWidthPanel=new vt("Line width",De.defaultStrokeWidths,De.defaultStrokeWidth),fe.lineWidthPanel.onWidthChanged=fe.setLineWidth,fe}return ce(X,pe),X.prototype.ownsTarget=function(q){return!(!pe.prototype.ownsTarget.call(this,q)&&q!==this.visual&&q!==this.drawingImage)},X.prototype.createVisual=function(){this.visual=le.createGroup(),this.drawingImage=le.createImage(),this.visual.appendChild(this.drawingImage);var q=le.createTransform();this.visual.transform.baseVal.appendItem(q),this.addMarkerVisualToContainer(this.visual)},X.prototype.pointerDown=function(q,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(q.x,q.y),this.drawing=!0):pe.prototype.pointerDown.call(this,q,oe)},X.prototype.manipulate=function(q){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(q.x,q.y),this.canvasContext.stroke()):pe.prototype.manipulate.call(this,q)},X.prototype.resize=function(q){pe.prototype.resize.call(this,q),le.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),le.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},X.prototype.pointerUp=function(q){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):pe.prototype.pointerUp.call(this,q)},X.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)},X.prototype.select=function(){this.state==="creating"&&this.finishCreation(),pe.prototype.select.call(this)},X.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),pe.prototype.deselect.call(this)},X.prototype.finishCreation=function(){for(var q=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),oe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],De=oe[0],fe=oe[1],ot=oe[2],Qt=oe[3],Mn=!1,Vn=0;Vn<this.canvasElement.height;Vn++)for(var $t=0;$t<this.canvasElement.width;$t++)q.data[Vn*this.canvasElement.width*4+4*$t+3]>0&&(Mn=!0,Vn<fe&&(fe=Vn),$t<De&&(De=$t),Vn>Qt&&(Qt=Vn),$t>ot&&(ot=$t));if(Mn){this.left=De/this.pixelRatio,this.top=fe/this.pixelRatio,this.width=(ot-De)/this.pixelRatio,this.height=(Qt-fe)/this.pixelRatio;var gn=document.createElement("canvas");gn.width=ot-De,gn.height=Qt-fe,gn.getContext("2d").putImageData(this.canvasContext.getImageData(De,fe,ot-De,Qt-fe),0,0),this.drawingImgUrl=gn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},X.prototype.setDrawingImage=function(){le.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),le.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},X.prototype.setColor=function(q){this.color=q,this.colorChanged(q)},X.prototype.setLineWidth=function(q){this.lineWidth=q},Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=Object.assign({drawingImgUrl:this.drawingImgUrl},pe.prototype.getState.call(this));return q.typeName=X.typeName,q},X.prototype.restoreState=function(q){this.createVisual(),pe.prototype.restoreState.call(this,q),this.drawingImgUrl=q.drawingImgUrl,this.setDrawingImage()},X.prototype.scale=function(q,oe){pe.prototype.scale.call(this,q,oe),this.setDrawingImage()},X.typeName="FreehandMarker",X.title="Freehand marker",X.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>',X}(dt),He=function(pe){function X(q,oe,De){var fe=pe.call(this,q,De||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return fe.typeBoxes=[],fe.currentType=oe,fe.setCurrentType=fe.setCurrentType.bind(fe),fe}return ce(X,pe),X.prototype.getUi=function(){var q=this,oe=document.createElement("div");oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2";for(var De=function(Qt){var Mn="both";switch(Qt){case 0:Mn="both";break;case 1:Mn="start";break;case 2:Mn="end";break;case 3:Mn="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=Mn===fe.currentType?fe.uiStyleSettings.toolboxAccentColor:"transparent",Vn.addEventListener("click",function(){q.setCurrentType(Mn,Vn)}),oe.appendChild(Vn),Mn==="both"||Mn==="start"){var $t=document.createElement("div");$t.style.display="flex",$t.style.alignItems="center",$t.style.minHeight="20px",$t.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="`+(fe.uiStyleSettings!==void 0?fe.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,$t.style.marginLeft="5px",Vn.appendChild($t)}var gn=document.createElement("div");gn.style.display="flex",gn.style.alignItems="center",gn.style.minHeight="20px",gn.style.flexGrow="2";var pn=document.createElement("hr");if(pn.style.minWidth="20px",pn.style.border="0px",pn.style.borderTop="3px solid "+(fe.uiStyleSettings!==void 0?fe.uiStyleSettings.toolboxColor:"#eeeeee"),pn.style.flexGrow="2",gn.appendChild(pn),Vn.appendChild(gn),Mn==="both"||Mn==="end"){var Ar=document.createElement("div");Ar.style.display="flex",Ar.style.alignItems="center",Ar.style.minHeight="20px",Ar.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="`+(fe.uiStyleSettings!==void 0?fe.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Ar.style.marginRight="5px",Vn.appendChild(Ar)}fe.typeBoxes.push(Vn)},fe=this,ot=0;ot<4;ot++)De(ot);return oe},X.prototype.setCurrentType=function(q,oe){var De=this;this.currentType=q,this.typeBoxes.forEach(function(fe){fe.style.borderColor=fe===oe?De.uiStyleSettings!==void 0?De.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},X}(J),Ge=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.arrowType="end",fe.arrowBaseHeight=10,fe.arrowBaseWidth=10,fe.getArrowPoints=fe.getArrowPoints.bind(fe),fe.setArrowType=fe.setArrowType.bind(fe),fe.arrowTypePanel=new He("Arrow type","end"),fe.arrowTypePanel.onArrowTypeChanged=fe.setArrowType,fe}return ce(X,pe),X.prototype.ownsTarget=function(q){return!(!pe.prototype.ownsTarget.call(this,q)&&q!==this.arrow1&&q!==this.arrow2)},X.prototype.getArrowPoints=function(q,oe){var De=this.arrowBaseWidth+2*this.strokeWidth,fe=this.arrowBaseHeight+2*this.strokeWidth;return q-De/2+","+(oe+fe/2)+" "+q+","+(oe-fe/2)+" "+(q+De/2)+","+(oe+fe/2)},X.prototype.createTips=function(){this.arrow1=le.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(le.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=le.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(le.createTransform()),this.visual.appendChild(this.arrow2)},X.prototype.pointerDown=function(q,oe){pe.prototype.pointerDown.call(this,q,oe),this.state==="creating"&&this.createTips()},X.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",le.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),le.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var q=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(q,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(oe,0);var De=this.arrow2.transform.baseVal.getItem(0);De.setRotate(q+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(De,0)}},X.prototype.setArrowType=function(q){this.arrowType=q,this.adjustVisual(),this.stateChanged()},Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=Object.assign({arrowType:this.arrowType},pe.prototype.getState.call(this));return q.typeName=X.typeName,q},X.prototype.restoreState=function(q){pe.prototype.restoreState.call(this,q);var oe=q;this.arrowType=oe.arrowType,this.createTips(),this.adjustVisual()},X.typeName="ArrowMarker",X.title="Arrow marker",X.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',X}(jt),Ce=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.fillColor=De.defaultFillColor,fe.strokeWidth=0,fe.fillPanel=new ve("Color",De.defaultColorSet,De.defaultFillColor),fe.fillPanel.onColorChanged=fe.setFillColor,fe}return ce(X,pe),Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=pe.prototype.getState.call(this);return q.typeName=X.typeName,q},X.typeName="CoverMarker",X.title="Cover marker",X.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',X}(mt),Ie=function(pe){function X(q,oe,De,fe){var ot=pe.call(this,q,fe||'<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 ot.opacities=[],ot.opacityBoxes=[],ot.opacities=oe,ot.currentOpacity=De,ot.setCurrentOpacity=ot.setCurrentOpacity.bind(ot),ot}return ce(X,pe),X.prototype.getUi=function(){var q=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(De){var fe=document.createElement("div");fe.style.display="flex",fe.style.alignItems="center",fe.style.justifyContent="center",fe.style.padding="5px",fe.style.borderWidth="2px",fe.style.borderStyle="solid",fe.style.borderColor=De===q.currentOpacity?q.uiStyleSettings.toolboxAccentColor:"transparent",fe.addEventListener("click",function(){q.setCurrentOpacity(De,fe)}),oe.appendChild(fe);var ot=document.createElement("div");ot.innerText=100*De+"%",fe.appendChild(ot),q.opacityBoxes.push(fe)}),oe},X.prototype.setCurrentOpacity=function(q,oe){var De=this;this.currentOpacity=q,this.opacityBoxes.forEach(function(fe){fe.style.borderColor=fe===oe?De.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},X}(J),Fe=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.setOpacity=fe.setOpacity.bind(fe),fe.fillColor=De.defaultHighlightColor,fe.strokeWidth=0,fe.opacity=De.defaultHighlightOpacity,fe.fillPanel=new ve("Color",De.defaultColorSet,fe.fillColor),fe.fillPanel.onColorChanged=fe.setFillColor,fe.opacityPanel=new Ie("Opacity",De.defaultOpacitySteps,fe.opacity),fe.opacityPanel.onOpacityChanged=fe.setOpacity,fe}return ce(X,pe),X.prototype.setOpacity=function(q){this.opacity=q,this.visual&&le.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=pe.prototype.getState.call(this);return q.typeName=X.typeName,q},X.typeName="HighlightMarker",X.title="Highlight marker",X.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>',X}(Ce),Be='<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>',We=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.bgColor="transparent",fe.tipPosition={x:0,y:0},fe.tipBase1Position={x:0,y:0},fe.tipBase2Position={x:0,y:0},fe.tipMoving=!1,fe.color=De.defaultStrokeColor,fe.bgColor=De.defaultFillColor,fe.fontFamily=De.defaultFontFamily,fe.defaultSize={x:100,y:30},fe.setBgColor=fe.setBgColor.bind(fe),fe.getTipPoints=fe.getTipPoints.bind(fe),fe.positionTip=fe.positionTip.bind(fe),fe.setTipPoints=fe.setTipPoints.bind(fe),fe.colorPanel=new ve("Text color",De.defaultColorSet,fe.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>'),fe.colorPanel.onColorChanged=fe.setColor,fe.bgColorPanel=new ve("Fill color",De.defaultColorSet,fe.bgColor,Be),fe.bgColorPanel.onColorChanged=fe.setBgColor,fe.fontFamilyPanel=new bt("Font",De.defaultFontFamilies,De.defaultFontFamily),fe.fontFamilyPanel.onFontChanged=fe.setFont,fe.tipGrip=new Qe,fe.tipGrip.visual.transform.baseVal.appendItem(le.createTransform()),fe.controlBox.appendChild(fe.tipGrip.visual),fe}return ce(X,pe),X.prototype.ownsTarget=function(q){return pe.prototype.ownsTarget.call(this,q)||this.tipGrip.ownsTarget(q)||this.tip===q},X.prototype.createTip=function(){le.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=le.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},X.prototype.pointerDown=function(q,oe){this.state==="new"&&pe.prototype.pointerDown.call(this,q,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,q,oe)},X.prototype.pointerUp=function(q){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,pe.prototype.pointerUp.call(this,q);else{var oe=this.state==="creating";pe.prototype.pointerUp.call(this,q),this.setTipPoints(oe),this.positionTip()}},X.prototype.manipulate=function(q){if(this.tipMoving){var oe=this.unrotatePoint(q);this.tipPosition={x:oe.x-this.manipulationStartLeft,y:oe.y-this.manipulationStartTop},this.positionTip()}else pe.prototype.manipulate.call(this,q)},X.prototype.setBgColor=function(q){this.bgRectangle&&this.tip&&(le.setAttributes(this.bgRectangle,[["fill",q]]),le.setAttributes(this.tip,[["fill",q]])),this.bgColor=q,this.fillColorChanged(q)},X.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},X.prototype.setTipPoints=function(q){q===void 0&&(q=!1);var oe=Math.min(this.height/2,15),De=this.height/5;q&&(this.tipPosition={x:oe+De/2,y:this.height+20});var fe=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?fe<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(De=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:0},this.tipBase2Position={x:oe+De,y:0}):(this.tipBase1Position={x:0,y:oe},this.tipBase2Position={x:0,y:oe+De}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?fe<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(De=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-De,y:0},this.tipBase2Position={x:this.width-oe,y:0}):(this.tipBase1Position={x:this.width,y:oe},this.tipBase2Position={x:this.width,y:oe+De}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?fe<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(De=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-De,y:this.height},this.tipBase2Position={x:this.width-oe,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-oe-De},this.tipBase2Position={x:this.width,y:this.height-oe}):fe<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(De=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:this.height},this.tipBase2Position={x:oe+De,y:this.height}):(this.tipBase1Position={x:0,y:this.height-oe},this.tipBase2Position={x:0,y:this.height-oe-De})},X.prototype.resize=function(q){pe.prototype.resize.call(this,q),this.positionTip()},X.prototype.positionTip=function(){le.setAttributes(this.tip,[["points",this.getTipPoints()]]);var q=this.tipGrip.visual.transform.baseVal.getItem(0);q.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(q,0)},Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),X.prototype.select=function(){this.positionTip(),pe.prototype.select.call(this)},X.prototype.getState=function(){var q=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},pe.prototype.getState.call(this));return q.typeName=X.typeName,q},X.prototype.restoreState=function(q){var oe=q;this.bgColor=oe.bgColor,this.tipPosition=oe.tipPosition,pe.prototype.restoreState.call(this,q),this.createTip(),this.setTipPoints()},X.prototype.scale=function(q,oe){pe.prototype.scale.call(this,q,oe),this.tipPosition={x:this.tipPosition.x*q,y:this.tipPosition.y*oe},this.positionTip()},X.typeName="CalloutMarker",X.title="Callout marker",X.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>',X}(Pt),st=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.fillColor="transparent",fe.strokeColor="transparent",fe.strokeWidth=0,fe.strokeDasharray="",fe.opacity=1,fe.strokeColor=De.defaultColor,fe.strokeWidth=De.defaultStrokeWidth,fe.strokeDasharray=De.defaultStrokeDasharray,fe.fillColor=De.defaultFillColor,fe.setStrokeColor=fe.setStrokeColor.bind(fe),fe.setFillColor=fe.setFillColor.bind(fe),fe.setStrokeWidth=fe.setStrokeWidth.bind(fe),fe.setStrokeDasharray=fe.setStrokeDasharray.bind(fe),fe.setOpacity=fe.setOpacity.bind(fe),fe.createVisual=fe.createVisual.bind(fe),fe.strokePanel=new ve("Line color",ue(De.defaultColorSet,["transparent"]),De.defaultColor),fe.strokePanel.onColorChanged=fe.setStrokeColor,fe.fillPanel=new ve("Fill color",ue(De.defaultColorSet,["transparent"]),fe.fillColor,Be),fe.fillPanel.onColorChanged=fe.setFillColor,fe.strokeWidthPanel=new vt("Line width",De.defaultStrokeWidths,De.defaultStrokeWidth),fe.strokeWidthPanel.onWidthChanged=fe.setStrokeWidth,fe.strokeStylePanel=new yt("Line style",De.defaultStrokeDasharrays,De.defaultStrokeDasharray),fe.strokeStylePanel.onStyleChanged=fe.setStrokeDasharray,fe.opacityPanel=new Ie("Opacity",De.defaultOpacitySteps,fe.opacity),fe.opacityPanel.onOpacityChanged=fe.setOpacity,fe}return ce(X,pe),X.prototype.ownsTarget=function(q){return!(!pe.prototype.ownsTarget.call(this,q)&&q!==this.visual)},X.prototype.createVisual=function(){this.visual=le.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)},X.prototype.pointerDown=function(q,oe){pe.prototype.pointerDown.call(this,q,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(q),this._state="creating")},X.prototype.manipulate=function(q){pe.prototype.manipulate.call(this,q)},X.prototype.resize=function(q){pe.prototype.resize.call(this,q),this.setSize()},X.prototype.setSize=function(){pe.prototype.setSize.call(this),le.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},X.prototype.pointerUp=function(q){pe.prototype.pointerUp.call(this,q),this.setSize()},X.prototype.setStrokeColor=function(q){this.strokeColor=q,this.visual&&le.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(q),this.stateChanged()},X.prototype.setFillColor=function(q){this.fillColor=q,this.visual&&le.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(q),this.stateChanged()},X.prototype.setStrokeWidth=function(q){this.strokeWidth=q,this.visual&&le.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},X.prototype.setStrokeDasharray=function(q){this.strokeDasharray=q,this.visual&&le.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},X.prototype.setOpacity=function(q){this.opacity=q,this.visual&&le.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},pe.prototype.getState.call(this));return q.typeName=X.typeName,q},X.prototype.restoreState=function(q){var oe=q;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,q),this.setSize()},X.prototype.scale=function(q,oe){pe.prototype.scale.call(this,q,oe),this.setSize()},X.typeName="EllipseMarker",X.title="Ellipse marker",X.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>',X}(dt),Dt=function(pe){function X(q,oe,De){return pe.call(this,q,oe,De)||this}return ce(X,pe),Object.defineProperty(X.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),X.prototype.ownsTarget=function(q){return!(!pe.prototype.ownsTarget.call(this,q)&&q!==this.tip1&&q!==this.tip2)},X.prototype.createTips=function(){this.tip1=le.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(le.createTransform()),this.visual.appendChild(this.tip1),this.tip2=le.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(le.createTransform()),this.visual.appendChild(this.tip2)},X.prototype.pointerDown=function(q,oe){pe.prototype.pointerDown.call(this,q,oe),this.state==="creating"&&this.createTips()},X.prototype.adjustVisual=function(){if(pe.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(le.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()]]),le.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 q=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(q,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(oe,0);var De=this.tip2.transform.baseVal.getItem(0);De.setRotate(q+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(De,0)}},Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=pe.prototype.getState.call(this);return q.typeName=X.typeName,q},X.prototype.restoreState=function(q){pe.prototype.restoreState.call(this,q),this.createTips(),this.adjustVisual()},X.typeName="MeasurementMarker",X.title="Measurement marker",X.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>',X}(jt),Ht=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.strokePanel.colors=De.defaultColorSet,fe.fillColor="transparent",fe}return ce(X,pe),Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=pe.prototype.getState.call(this);return q.typeName=X.typeName,q},X.typeName="EllipseFrameMarker",X.title="Ellipse frame marker",X.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>',X}(st),rn=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(X){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(X)||(this.undoStack.push(X),JSON.stringify(this.lastRedoStep)!==JSON.stringify(X)&&this.redoStack.splice(0,this.redoStack.length))},pe.prototype.replaceLastUndoStep=function(X){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=X)},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 X=this.undoStack.pop();return X!==void 0&&this.redoStack.push(X),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}(),Bt=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.strokeColor="transparent",fe.strokeWidth=0,fe.strokeDasharray="",fe.curveX=0,fe.curveY=0,fe.manipulationStartCurveX=0,fe.manipulationStartCurveY=0,fe.setStrokeColor=fe.setStrokeColor.bind(fe),fe.setStrokeWidth=fe.setStrokeWidth.bind(fe),fe.setStrokeDasharray=fe.setStrokeDasharray.bind(fe),fe.positionGrips=fe.positionGrips.bind(fe),fe.addControlGrips=fe.addControlGrips.bind(fe),fe.adjustVisual=fe.adjustVisual.bind(fe),fe.setupControlBox=fe.setupControlBox.bind(fe),fe.resize=fe.resize.bind(fe),fe.strokeColor=De.defaultColor,fe.strokeWidth=De.defaultStrokeWidth,fe.strokeDasharray=De.defaultStrokeDasharray,fe.strokePanel=new ve("Line color",De.defaultColorSet,De.defaultColor),fe.strokePanel.onColorChanged=fe.setStrokeColor,fe.strokeWidthPanel=new vt("Line width",De.defaultStrokeWidths,De.defaultStrokeWidth),fe.strokeWidthPanel.onWidthChanged=fe.setStrokeWidth,fe.strokeStylePanel=new yt("Line style",De.defaultStrokeDasharrays,De.defaultStrokeDasharray),fe.strokeStylePanel.onStyleChanged=fe.setStrokeDasharray,fe}return ce(X,pe),X.prototype.ownsTarget=function(q){return!(!pe.prototype.ownsTarget.call(this,q)&&q!==this.visual&&q!==this.selectorCurve&&q!==this.visibleCurve&&!this.curveGrip.ownsTarget(q))},X.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},X.prototype.createVisual=function(){this.visual=le.createGroup(),this.selectorCurve=le.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=le.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)},X.prototype.pointerDown=function(q,oe){pe.prototype.pointerDown.call(this,q,oe),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=q.x,this.curveY=q.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(oe)&&(this.activeGrip=this.curveGrip,this._state="resize")},X.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),le.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),le.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),le.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},X.prototype.setupControlBox=function(){pe.prototype.setupControlBox.call(this),this.curveControlLine1=le.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=le.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)},X.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,pe.prototype.addControlGrips.call(this)},X.prototype.positionGrips=function(){pe.prototype.positionGrips.call(this);var q=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-q/2,this.curveY-q/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()))},X.prototype.manipulate=function(q){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+q.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+q.y-this.manipulationStartY),pe.prototype.manipulate.call(this,q)},X.prototype.resize=function(q){this.activeGrip===this.curveGrip&&(this.curveX=q.x,this.curveY=q.y),pe.prototype.resize.call(this,q),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},X.prototype.setStrokeColor=function(q){this.strokeColor=q,this.adjustVisual(),this.colorChanged(q)},X.prototype.setStrokeWidth=function(q){this.strokeWidth=q,this.adjustVisual()},X.prototype.setStrokeDasharray=function(q){this.strokeDasharray=q,this.adjustVisual()},X.prototype.scale=function(q,oe){this.curveX=this.curveX*q,this.curveY=this.curveY*oe,pe.prototype.scale.call(this,q,oe)},Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},pe.prototype.getState.call(this));return q.typeName=X.typeName,q},X.prototype.restoreState=function(q){pe.prototype.restoreState.call(this,q);var oe=q;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.curveX=oe.curveX,this.curveY=oe.curveY,this.createVisual(),this.adjustVisual()},X.typeName="CurveMarker",X.title="Curve marker",X.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>',X}(ft),Ct=function(){function pe(X,q){q===void 0&&(q=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=X,this.cancelable=q}return Object.defineProperty(pe.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),pe.prototype.preventDefault=function(){this._defaultPrevented=!0},pe}(),Ke=function(pe){function X(q,oe,De){var fe=pe.call(this,q,!1)||this;return fe.dataUrl=oe,fe.state=De,fe}return ce(X,pe),X}(Ct),et=function(pe){function X(q,oe,De){De===void 0&&(De=!1);var fe=pe.call(this,q,De)||this;return fe.marker=oe,fe}return ce(X,pe),X}(Ct),at=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(X,q){this[X].push(q)},pe.prototype.removeEventListener=function(X,q){var oe=this[X].indexOf(q);oe>-1&&this[X].splice(oe,1)},pe}(),Pe=function(){function pe(X){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 rn,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 at,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=pe.instanceCounter++,this.styles=new ae(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=X,this.targetRoot=document.body,this.width=X.clientWidth,this.height=X.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[Ye,it,Ge,Pt,Ht,st,Fe,We,Dt,Ce,jt,Bt]},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ye,it,Ge,Pt,st,Fe,We]},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ye,it,Ge,Pt,Fe]},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(X){var q=this;this._availableMarkerTypes.splice(0),X.forEach(function(oe){if(typeof oe=="string"){var De=q.ALL_MARKER_TYPES.find(function(fe){return fe.typeName===oe});De!==void 0&&q._availableMarkerTypes.push(De)}else q._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(X){this._zoomLevel=X,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(),$.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},pe.prototype.show=function(){var X=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(q){return q(new Ct(X))})},pe.prototype.render=function(){return be(this,void 0,void 0,function(){var X;return Ee(this,function(q){switch(q.label){case 0:return this.setCurrentMarker(),(X=new me).naturalSize=this.renderAtNaturalSize,X.imageType=this.renderImageType,X.imageQuality=this.renderImageQuality,X.markersOnly=this.renderMarkersOnly,X.width=this.renderWidth,X.height=this.renderHeight,[4,X.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return q.sent(),[4,X.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,q.sent()]}})})},pe.prototype.close=function(X){var q=this;if(X===void 0&&(X=!1),this.isOpen){var oe=!1;X||this.eventListeners.beforeclose.forEach(function(De){var fe=new Ct(q,!0);De(fe),fe.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(De){return De(new Ct(q))}),this.detachEvents(),this._isOpen=!1)}},pe.prototype.addMarkersToToolbar=function(){for(var X,q=[],oe=0;oe<arguments.length;oe++)q[oe]=arguments[oe];(X=this._availableMarkerTypes).push.apply(X,q)},pe.prototype.addRenderEventListener=function(X){this.addEventListener("render",function(q){X(q.dataUrl,q.state)})},pe.prototype.removeRenderEventListener=function(X){},pe.prototype.addCloseEventListener=function(X){this.addEventListener("close",function(){X()})},pe.prototype.removeCloseEventListener=function(X){},pe.prototype.setupResizeObserver=function(){var X=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){X.resize(X.target.clientWidth,X.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return X.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},pe.prototype.onPopupTargetResize=function(){var X=1*this.target.clientWidth/this.target.clientHeight,q=this.editorCanvas.clientWidth/X>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*X:this.editorCanvas.clientWidth,oe=q<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/X;this.resize(q,oe)},pe.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},pe.prototype.resize=function(X,q){this._isResizing=!0;var oe=X/this.imageWidth,De=q/this.imageHeight;this.imageWidth=Math.round(X),this.imageHeight=Math.round(q),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,De),this._isResizing=!1},pe.prototype.scaleMarkers=function(X,q){var oe,De=this;this._currentMarker&&this._currentMarker instanceof Pt?this._currentMarker.scale(X,q):(oe=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(fe){fe!==De._currentMarker&&fe.scale(X,q)}),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 X=this.editingTarget.getBoundingClientRect(),q=this.editorCanvas.getBoundingClientRect();this.left=X.left-q.left,this.top=X.top-q.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 X,q=[],oe=0;oe<arguments.length;oe++)q[oe]=arguments[oe];this.defs=le.createDefs(),this.addDefsToImage(),(X=this.defs).append.apply(X,q)},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 X=document.createElement("a");X.href="https://markerjs.com/",X.target="_blank",X.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>',X.title="Powered by marker.js",X.style.display="grid",X.style.alignItems="center",X.style.justifyItems="center",X.style.padding="3px",X.style.width="20px",X.style.height="20px",this.logoUI.appendChild(X),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 X=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=X+"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 te(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 Q(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(X){this.markerImage.removeChild(X.container),this.markers.indexOf(X)>-1&&this.markers.splice(this.markers.indexOf(X),1),X.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(X,q){if(X==="marker"&&q!==void 0)this.createNewMarker(q);else if(X==="action")switch(q){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 X=this;if(this._currentMarker!==void 0){var q=!1;if(this.eventListeners.markerbeforedelete.forEach(function(De){var fe=new et(X,X._currentMarker,!0);De(fe),fe.defaultPrevented&&(q=!0)}),!q){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(De){return De(new et(X,oe))})}}},pe.prototype.clear=function(){var X=this,q=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ot){var Qt=new et(X,void 0,!0);ot(Qt),Qt.defaultPrevented&&(q=!0)}),!q)){this.setCurrentMarker();for(var oe=function(ot){var Qt=De.markers[ot];De.setCurrentMarker(De.markers[ot]),De._currentMarker.dispose(),De.markerImage.removeChild(De._currentMarker.container),De.markers.splice(De.markers.indexOf(De._currentMarker),1),De.eventListeners.markerdelete.forEach(function(Mn){return Mn(new et(X,Qt))})},De=this,fe=this.markers.length-1;fe>=0;fe--)oe(fe);this.addUndoStep()}},Object.defineProperty(pe.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),pe.prototype.showNotesEditor=function(){var X;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=(X=this._currentMarker.notes)!==null&&X!==void 0?X:"",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 X=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var q=this.getState(),oe=this.undoRedoManager.getLastUndoStep();if(!oe||oe.width===q.width&&oe.height===q.height){var De=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(q),De<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(fe){return fe(new Ct(X))})}else this.undoRedoManager.replaceLastUndoStep(q),this.eventListeners.statechange.forEach(function(fe){return fe(new Ct(X))})}},pe.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},pe.prototype.undoStep=function(){var X=this,q=this.undoRedoManager.undo();q!==void 0&&(this.restoreState(q),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(oe){return oe(new Ct(X))}))},pe.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},pe.prototype.redoStep=function(){var X=this,q=this.undoRedoManager.redo();q!==void 0&&(this.restoreState(q),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(oe){return oe(new Ct(X))}))},pe.prototype.stepZoom=function(){var X=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=X<this.zoomSteps.length-1?this.zoomSteps[X+1]:this.zoomSteps[0]},pe.prototype.panTo=function(X){this.contentDiv.scrollBy({left:this.prevPanPoint.x-X.x,top:this.prevPanPoint.y-X.y}),this.prevPanPoint=X},pe.prototype.startRenderAndClose=function(){return be(this,void 0,void 0,function(){var X,q,oe=this;return Ee(this,function(De){switch(De.label){case 0:return[4,this.render()];case 1:return X=De.sent(),q=this.getState(),this.eventListeners.render.forEach(function(fe){return fe(new Ke(oe,X,q))}),this.close(!0),[2]}})})},pe.prototype.getState=function(X){X===!0&&this.setCurrentMarker();var q={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(oe){return q.markers.push(oe.getState())}),q},pe.prototype.restoreState=function(X){var q=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);X.markers.forEach(function(oe){var De=q._availableMarkerTypes.find(function(ot){return ot.typeName===oe.typeName});if(De!==void 0){var fe=q.addNewMarker(De);fe.restoreState(oe),q.markers.push(fe)}}),X.width&&X.height&&(X.width!==this.imageWidth||X.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/X.width,this.imageHeight/X.height),this.eventListeners.restorestate.forEach(function(oe){return oe(new Ct(q))})},pe.prototype.addNewMarker=function(X){var q=le.createGroup();return this.markerImage.appendChild(q),new X(q,this.overlayContainer,this.settings)},pe.prototype.createNewMarker=function(X){var q,oe=this;(q=typeof X=="string"?this._availableMarkerTypes.find(function(De){return De.typeName===X}):X)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(q),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(q.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(De){return De(new et(oe,oe._currentMarker))}))},pe.prototype.markerCreated=function(X){var q=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(X),this.setCurrentMarker(X),X instanceof it&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(it):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(oe){return oe(new et(q,q._currentMarker))})},pe.prototype.colorChanged=function(X){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=X,this.settings.defaultStrokeColor=X)},pe.prototype.fillColorChanged=function(X){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=X)},pe.prototype.markerStateChanged=function(X){var q=this;this.eventListeners.markerchange.forEach(function(oe){return oe(new et(q,X))})},pe.prototype.setCurrentMarker=function(X){var q=this;this._currentMarker!==X&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(oe){return oe(new et(q,q._currentMarker))})),this._currentMarker=X,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 et(q,q._currentMarker))}))},pe.prototype.onPointerDown=function(X){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||X.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var q=this.markers.find(function(oe){return oe.ownsTarget(X.target)});q!==void 0?(this.setCurrentMarker(q),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(X.clientX,X.clientY),X.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:X.clientX,y:X.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(X.clientX,X.clientY))},pe.prototype.onDblClick=function(X){if(this._isFocused||this.focus(),this.mode==="select"){var q=this.markers.find(function(oe){return oe.ownsTarget(X.target)});q!==void 0&&q!==this._currentMarker&&this.setCurrentMarker(q),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(X.clientX,X.clientY),X.target):this.setCurrentMarker()}},pe.prototype.onPointerMove=function(X){this.touchPoints!==1&&X.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||X.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(X.clientX,X.clientY)):this.zoomLevel>1&&this.panTo({x:X.clientX,y:X.clientY}))},pe.prototype.onPointerUp=function(X){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(X.clientX,X.clientY)),this.isDragging=!1,this.addUndoStep()},pe.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},pe.prototype.onKeyUp=function(X){this._currentMarker===void 0||this.notesArea!==void 0||X.key!=="Delete"&&X.key!=="Backspace"||this.deleteSelectedMarker()},pe.prototype.clientToLocalCoordinates=function(X,q){var oe=this.markerImage.getBoundingClientRect();return{x:(X-oe.left)/this.zoomLevel,y:(q-oe.top)/this.zoomLevel}},pe.prototype.onWindowResize=function(){this.positionUI()},pe.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var X=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=X+"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(X){$.addKey(X)},pe.prototype.addEventListener=function(X,q){this.eventListeners.addEventListener(X,q)},pe.prototype.removeEventListener=function(X,q){this.eventListeners.removeEventListener(X,q)},pe.prototype.renderState=function(X){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(X),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(pe.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),pe.prototype.focus=function(){var X=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(q){return q(new Ct(X))}))},pe.prototype.blur=function(){var X=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(q){return q(new Ct(X))}))},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 Xe=function(pe,X){return(Xe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,oe){q.__proto__=oe}||function(q,oe){for(var De in oe)Object.prototype.hasOwnProperty.call(oe,De)&&(q[De]=oe[De])})(pe,X)};function ht(pe,X){if(typeof X!="function"&&X!==null)throw new TypeError("Class extends value "+String(X)+" is not a constructor or null");function q(){this.constructor=pe}Xe(pe,X),pe.prototype=X===null?Object.create(X):(q.prototype=X.prototype,new q)}function Et(pe,X,q,oe){return new(q||(q=Promise))(function(De,fe){function ot(Vn){try{Mn(oe.next(Vn))}catch($t){fe($t)}}function Qt(Vn){try{Mn(oe.throw(Vn))}catch($t){fe($t)}}function Mn(Vn){var $t;Vn.done?De(Vn.value):($t=Vn.value,$t instanceof q?$t:new q(function(gn){gn($t)})).then(ot,Qt)}Mn((oe=oe.apply(pe,X||[])).next())})}function Ot(pe,X){var q,oe,De,fe,ot={label:0,sent:function(){if(1&De[0])throw De[1];return De[1]},trys:[],ops:[]};return fe={next:Qt(0),throw:Qt(1),return:Qt(2)},typeof Symbol=="function"&&(fe[Symbol.iterator]=function(){return this}),fe;function Qt(Mn){return function(Vn){return function($t){if(q)throw new TypeError("Generator is already executing.");for(;ot;)try{if(q=1,oe&&(De=2&$t[0]?oe.return:$t[0]?oe.throw||((De=oe.return)&&De.call(oe),0):oe.next)&&!(De=De.call(oe,$t[1])).done)return De;switch(oe=0,De&&($t=[2&$t[0],De.value]),$t[0]){case 0:case 1:De=$t;break;case 4:return ot.label++,{value:$t[1],done:!1};case 5:ot.label++,oe=$t[1],$t=[0];continue;case 7:$t=ot.ops.pop(),ot.trys.pop();continue;default:if(!(De=ot.trys,(De=De.length>0&&De[De.length-1])||$t[0]!==6&&$t[0]!==2)){ot=0;continue}if($t[0]===3&&(!De||$t[1]>De[0]&&$t[1]<De[3])){ot.label=$t[1];break}if($t[0]===6&&ot.label<De[1]){ot.label=De[1],De=$t;break}if(De&&ot.label<De[2]){ot.label=De[2],ot.ops.push($t);break}De[2]&&ot.ops.pop(),ot.trys.pop();continue}$t=X.call(pe,ot)}catch(gn){$t=[6,gn],oe=0}finally{q=De=0}if(5&$t[0])throw $t[1];return{value:$t[0]?$t[1]:void 0,done:!0}}([Mn,Vn])}}}var Mt=function(){function pe(){}return pe.addKey=function(X){pe.key=X},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}(),lt=function(){function pe(){}return pe.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},pe.setAttributes=function(X,q){for(var oe=0,De=q;oe<De.length;oe++){var fe=De[oe],ot=fe[0],Qt=fe[1];X.setAttribute(ot,Qt)}},pe.createRect=function(X,q,oe){var De=document.createElementNS("http://www.w3.org/2000/svg","rect");return De.setAttribute("width",X.toString()),De.setAttribute("height",q.toString()),oe&&pe.setAttributes(De,oe),De},pe.createLine=function(X,q,oe,De,fe){var ot=document.createElementNS("http://www.w3.org/2000/svg","line");return ot.setAttribute("x1",X.toString()),ot.setAttribute("y1",q.toString()),ot.setAttribute("x2",oe.toString()),ot.setAttribute("y2",De.toString()),fe&&pe.setAttributes(ot,fe),ot},pe.createPolygon=function(X,q){var oe=document.createElementNS("http://www.w3.org/2000/svg","polygon");return oe.setAttribute("points",X),q&&pe.setAttributes(oe,q),oe},pe.createCircle=function(X,q){var oe=document.createElementNS("http://www.w3.org/2000/svg","circle");return oe.setAttribute("cx",(X/2).toString()),oe.setAttribute("cy",(X/2).toString()),oe.setAttribute("r",X.toString()),q&&pe.setAttributes(oe,q),oe},pe.createEllipse=function(X,q,oe){var De=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return De.setAttribute("cx",(X/2).toString()),De.setAttribute("cy",(q/2).toString()),De.setAttribute("rx",(X/2).toString()),De.setAttribute("ry",(q/2).toString()),oe&&pe.setAttributes(De,oe),De},pe.createGroup=function(X){var q=document.createElementNS("http://www.w3.org/2000/svg","g");return X&&pe.setAttributes(q,X),q},pe.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},pe.createMarker=function(X,q,oe,De,fe,ot,Qt){var Mn=document.createElementNS("http://www.w3.org/2000/svg","marker");return pe.setAttributes(Mn,[["id",X],["orient",q],["markerWidth",oe.toString()],["markerHeight",De.toString()],["refX",fe.toString()],["refY",ot.toString()]]),Mn.appendChild(Qt),Mn},pe.createText=function(X){var q=document.createElementNS("http://www.w3.org/2000/svg","text");return q.setAttribute("x","0"),q.setAttribute("y","0"),X&&pe.setAttributes(q,X),q},pe.createTSpan=function(X,q){var oe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return oe.textContent=X,q&&pe.setAttributes(oe,q),oe},pe.createImage=function(X){var q=document.createElementNS("http://www.w3.org/2000/svg","image");return X&&pe.setAttributes(q,X),q},pe.createPoint=function(X,q){var oe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return oe.x=X,oe.y=q,oe},pe.createPath=function(X,q){var oe=document.createElementNS("http://www.w3.org/2000/svg","path");return oe.setAttribute("d",X),q&&pe.setAttributes(oe,q),oe},pe.createElement=function(X,q){var oe=document.createElementNS("http://www.w3.org/2000/svg",X);return q&&pe.setAttributes(oe,q),oe},pe.getHollowRectanglePath=function(X,q,oe,De,fe,ot,Qt,Mn){return"M"+X+","+q+"V"+(q+De)+"H"+(X+oe)+"V"+q+"H"+fe+"V"+ot+"H"+(fe+Qt)+"V"+(ot+Mn)+"H"+fe+"V"+q+"Z"},pe}(),Ft=function(){function pe(X){this._classNamePrefixBase="__cropro_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+X+"_"}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(X){return this.styleSheet===void 0&&this.addStyleSheet(),X.name=""+this.classNamePrefix+X.localName,this.classes.push(X),this.styleSheet.sheet.insertRule("."+X.name+" {"+X.style+"}",this.styleSheet.sheet.cssRules.length),X},pe.prototype.addRule=function(X){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(X),this.styleSheet.sheet.insertRule(X.selector+" {"+X.style+"}",this.styleSheet.sheet.cssRules.length)},pe.prototype.addStyleSheet=function(){var X;this.styleSheet=document.createElement("style"),((X=this.styleSheetRoot)!==null&&X!==void 0?X:document.head).appendChild(this.styleSheet),this.addRule(new Lt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Lt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new Lt("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new on("_fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new on("_fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},pe.prototype.removeStyleSheet=function(){var X;this.styleSheet&&(((X=this.styleSheetRoot)!==null&&X!==void 0?X:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},pe}(),Lt=function(pe,X){this.selector=pe,this.style=X},on=function(pe,X){this.localName=pe,this.style=X},mn=function(){function pe(){this.blocks=[],this.display=""}return pe.prototype.addButtonBlock=function(X){X.className=this.blockClassName,X.buttonClassName=this.buttonClassName,X.buttonColorsClassName=this.buttonColorsClassName,X.buttonActiveColorsClassName=this.buttonActiveColorsClassName,this.blocks.push(X)},pe.prototype.addElementBlock=function(X){X.className===void 0&&(X.className=this.blockClassName),this.blocks.push(X)},pe.prototype.getUI=function(){var X=document.createElement("div");return X.className=this.className+" "+this.colorsClassName+" "+this.fadeInClassName,X.style.display=this.display,this.blocks.forEach(function(q){return X.appendChild(q.getUI())}),X},pe}(),Hn=function(){function pe(){}return pe.prototype.getUI=function(){var X=document.createElement("div");if(X.className=this.className,this.minWidth!==void 0&&(X.style.minWidth=this.minWidth),this.contentAlign!==void 0)switch(this.contentAlign){case"start":X.style.justifyContent="flex-start";break;case"center":X.style.justifyContent="center";break;case"end":X.style.justifyContent="flex-end"}return X.style.whiteSpace="nowrap",X},pe}(),Xn=function(pe){function X(){var q=pe!==null&&pe.apply(this,arguments)||this;return q.buttons=[],q}return ht(X,pe),X.prototype.addButton=function(q){q.className=this.buttonClassName,q.colorsClassName=this.buttonColorsClassName,q.activeColorsClassName=this.buttonActiveColorsClassName,this.buttons.push(q)},X.prototype.getUI=function(){var q=pe.prototype.getUI.call(this);return this.buttons.forEach(function(oe){return q.appendChild(oe.getUI())}),q},X}(Hn),Fn=function(){function pe(X,q){this._isActive=!1,this._isHidden=!1,this._icon=X,this.title=q,this.uiContainer=document.createElement("div"),this.adjustClassName=this.adjustClassName.bind(this)}return Object.defineProperty(pe.prototype,"icon",{get:function(){return this._icon},set:function(X){this._icon=X,this.buttonContainer.innerHTML=this._icon},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isActive",{get:function(){return this._isActive},set:function(X){this._isActive=X,this.adjustClassName()},enumerable:!1,configurable:!0}),pe.prototype.getUI=function(){var X=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 X.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}(),xn=function(pe){function X(){var q=pe!==null&&pe.apply(this,arguments)||this;return q.elements=[],q}return ht(X,pe),X.prototype.addElement=function(q){this.elements.push(q)},X.prototype.getUI=function(){var q=pe.prototype.getUI.call(this);return this.elements.forEach(function(oe){return q.appendChild(oe)}),q},X}(Hn),fr=function(){function pe(X,q){this.horizontal=X,this.vertical=q}return Object.defineProperty(pe.prototype,"ratio",{get:function(){return 1*this.horizontal/this.vertical},enumerable:!1,configurable:!0}),pe.prototype.getVerticalLength=function(X){return X/this.ratio},pe.prototype.getHorizontalLength=function(X){return X*this.ratio},pe}(),Yn=function(){function pe(){}return pe.getIcon=function(X,q){if(X>0&&q>0){var oe=new fr(X,q),De=oe.ratio>=1?20:oe.getHorizontalLength(20),fe=oe.ratio<1?20:oe.getVerticalLength(20),ot=document.createElementNS("http://www.w3.org/2000/svg","svg");ot.setAttribute("xmlns","http://www.w3.org/2000/svg"),ot.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(ot);var Qt=lt.createDefs();ot.appendChild(Qt);var Mn=lt.createElement("clipPath",[["id","text-bg-clip"]]);Qt.appendChild(Mn);var Vn=lt.createPath(lt.getHollowRectanglePath((24-De)/2,(24-fe)/2,De,fe,(24-De)/2+2,(24-fe)/2+2,De-4,fe-4));ot.appendChild(Vn);var $t=lt.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);$t.appendChild(lt.createTSpan(X+":"+q)),ot.appendChild($t);var gn=$t.getBBox();lt.setAttributes($t,[["x",((24-gn.width)/2).toString()],["y",((24-gn.height)/2-gn.y).toString()]]);var pn=lt.createPath(lt.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(gn.width))/2,(24-Math.ceil(gn.height))/2,Math.ceil(gn.width),Math.ceil(gn.height)));return Mn.appendChild(pn),lt.setAttributes(Vn,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(ot),ot.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}(),ar=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe)||this;return fe.isDropdownOpen=!1,fe.onClick=fe.dropdownButtonClicked,fe.dropdownButtons=De,fe}return ht(X,pe),X.prototype.setupDropdown=function(){var q=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=q.className,oe.colorsClassName=q.colorsClassName,q.dropdownBlock.appendChild(oe.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},X.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},X.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},X.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},X.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},X.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},X}(Fn),nr=function(){function pe(X,q){this.GRIP_SIZE=10,this.color=X,this.fillColor=q,this.visual=lt.createGroup(),this.visual.appendChild(lt.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(lt.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(X){return X===this.visual||X===this.visual.childNodes[0]||X===this.visual.childNodes[1]},pe.prototype.setCenter=function(X,q){this.visual.childNodes.forEach(function(oe){return lt.setAttributes(oe,[["cx",X.toString()],["cy",q.toString()]])})},pe}(),Rr=function(){function pe(X,q,oe,De){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=X,this.canvasHeight=q,this.margin=oe,this.container=De,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(X){this._aspectRatio=X,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(X){this._isGridVisible=X,this.gridContainer&<.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(X){this._zoomFactor=X,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),pe.prototype.open=function(){var X=this;this.cropShadeElement=lt.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=lt.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var q=0;q<this.numberOfGridLines;q++)this.horizontalGridLines.push(lt.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]])),this.verticalGridLines.push(lt.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]]));this.horizontalGridLines.forEach(function(oe){return X.gridContainer.appendChild(oe)}),this.verticalGridLines.forEach(function(oe){return X.gridContainer.appendChild(oe)}),this.cropRectElement=lt.createRect(0,0,[["stroke",this.cropFrameColor],["stroke-width","3"],["fill","transparent"]]),this.container.appendChild(this.cropRectElement),this.topLeftGrip=new nr(this.gripColor,this.gripFillColor),this.container.appendChild(this.topLeftGrip.visual),this.topRightGrip=new nr(this.gripColor,this.gripFillColor),this.container.appendChild(this.topRightGrip.visual),this.bottomLeftGrip=new nr(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomLeftGrip.visual),this.bottomRightGrip=new nr(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomRightGrip.visual),this.attachEvents()},pe.prototype.setCropRectangle=function(X){this.cropRect=X;var q=Object.assign({},this.cropRect);this.zoomFactor!==1&&(q.width=this.cropRect.width*this.zoomFactor,q.height=this.cropRect.height*this.zoomFactor,q.x=this.cropRect.height/this.cropRect.width<this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasWidth/2-q.width/2,q.y=this.cropRect.height/this.cropRect.width>this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-q.height/2),lt.setAttributes(this.cropRectElement,[["x",q.x.toString()],["y",q.y.toString()],["width",q.width.toString()],["height",q.height.toString()]]);var oe=q.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(fe,ot){var Qt=q.y+oe*(ot+1);lt.setAttributes(fe,[["x1",""+q.x],["y1",""+Qt],["x2",""+(q.x+q.width)],["y2",""+Qt]])});var De=q.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(fe,ot){var Qt=q.x+De*(ot+1);lt.setAttributes(fe,[["x1",""+Qt],["y1",""+q.y],["x2",""+Qt],["y2",""+(q.y+q.height)]])}),lt.setAttributes(this.cropShadeElement,[["d",lt.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,q.x,q.y,q.width,q.height)]]),this.topLeftGrip.setCenter(q.x,q.y),this.topRightGrip.setCenter(q.x+q.width,q.y),this.bottomLeftGrip.setCenter(q.x,q.y+q.height),this.bottomRightGrip.setCenter(q.x+q.width,q.y+q.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(X,q){var oe=this.container.getBoundingClientRect();return{x:X-oe.left+this.margin,y:q-oe.top+this.margin}},pe.prototype.onPointerDown=function(X){this.container.setPointerCapture(X.pointerId),this.previousPoint=this.clientToLocalCoordinates(X.clientX,X.clientY),this.cropRectElement===X.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(X.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(X.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(X.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(X.target)&&(this.activeGrip=this.bottomRightGrip)},pe.prototype.onPointerMove=function(X){if(this.isMoving)this.move(this.clientToLocalCoordinates(X.clientX,X.clientY));else if(this.activeGrip){var q=this.clientToLocalCoordinates(X.clientX,X.clientY);this.resize(q)}X.preventDefault()},pe.prototype.onPointerUp=function(X){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(X.pointerId)},pe.prototype.move=function(X){var q=X.x-this.previousPoint.x,oe=X.y-this.previousPoint.y;this.zoomFactor!==1&&(q=-q/this.zoomFactor,oe=-oe/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+q),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=X},pe.prototype.resize=function(X){var q=Object.assign({},this.cropRect),oe=X.x-this.previousPoint.x,De=X.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:q.x+oe<this.margin&&(oe=this.margin-q.x),q.x+=oe,q.width=this.cropRect.x+this.cropRect.width-q.x;break;case this.bottomRightGrip:case this.topRightGrip:q.width+oe>this.canvasWidth*this.zoomFactor&&(oe=this.canvasWidth*this.zoomFactor-q.width),q.width+=oe}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(q.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(oe),q.height=this.aspectRatio.getVerticalLength(q.width)):(q.y+=De,q.height=this.cropRect.y+this.cropRect.height-q.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?q.height=this.aspectRatio.getVerticalLength(q.width):q.height+=De}q.width<10&&(q.x=this.cropRect.x,q.width=10),q.height<10&&(q.y=this.cropRect.y,q.height=10),this.previousPoint=X,q.x>=this.margin&&q.y>=this.margin&&q.x-this.margin+q.width<=this.canvasWidth&&q.y-this.margin+q.height<=this.canvasHeight&&(this.cropRect=q,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 X=this.cropRect.x+this.cropRect.width/2,q=this.cropRect.y+this.cropRect.height/2,oe=this.aspectRatio.getHorizontalLength(this.cropRect.height),De=this.aspectRatio.getVerticalLength(this.cropRect.width);oe/this.canvasWidth<De/this.canvasHeight?this.cropRect.width=oe:this.cropRect.height=De,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=X-this.cropRect.width/2,this.cropRect.y=q-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(X,q,oe,De,fe,ot){var Qt=oe/X,Mn=De/q;return{x:(fe.x-ot)*Qt+ot,y:(fe.y-ot)*Mn+ot,width:fe.width*Qt,height:fe.height*Mn}},pe.prototype.scaleCanvas=function(X,q){var oe=this.getRescaledRect(this.canvasWidth,this.canvasHeight,X,q,this.cropRect,this.margin);this.canvasWidth=X,this.canvasHeight=q,this.onCropChange&&this.onCropChange(oe),this.setCropRectangle(oe)},pe}(),pr=function(){function pe(X){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=X,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(X){this._angle=X,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(X){this.controlContainer.setPointerCapture(X.pointerId),this.isDragging=!0,this.previousPoint={x:X.clientX,y:X.clientY}},pe.prototype.onPointerMove=function(X){this.isDragging&&(this.onAngleChange&&this.onAngleChange((X.clientX-this.previousPoint.x)/5),this.previousPoint.x=X.clientX)},pe.prototype.onPointerUp=function(X){this.isDragging&&this.onAngleChange&&this.onAngleChange((X.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(X.pointerId)},pe.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var X=this.angleLabelText.getBBox();lt.setAttributes(this.angleLabelElement,[["x",((this.width-X.width)/2).toString()],["y",(this.height/2).toString()]])}},pe.prototype.positionScaleShape=function(){if(this.scaleShape){var X=this.scaleShape.transform.baseVal.getItem(0);X.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(X,0)}},pe.prototype.getVisual=function(){var X=document.createElementNS("http://www.w3.org/2000/svg","svg");X.setAttribute("xmlns","http://www.w3.org/2000/svg"),X.setAttribute("width",this.width+"px"),X.setAttribute("height",this.height+"px"),X.setAttribute("viewBox","0 0 "+this.width+" "+this.height),X.style.flexShrink="0",document.body.appendChild(X);for(var q="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,oe=1;oe<=this.width/5+10;oe++){var De=oe%5==0?this.height/3:this.height/6;q+="h4v"+-De+"h1v"+De}q+="v1H0Z",this.scaleShape=lt.createPath(q);var fe=lt.createTransform();this.scaleShape.transform.baseVal.appendItem(fe),X.appendChild(this.scaleShape),this.angleLabelElement=lt.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=lt.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var ot=lt.createTSpan("");return ot.innerHTML="°",this.angleLabelElement.appendChild(ot),X.appendChild(this.angleLabelElement),document.body.removeChild(X),X},pe}(),sn=function(){function pe(){this.naturalSize=!1,this.imageType="image/png"}return pe.prototype.rasterize=function(X,q,oe,De,fe,ot,Qt){var Mn=this;return new Promise(function(Vn){var $t=document.createElement("canvas");$t.width=X.width.baseVal.value-2*De,$t.height=X.height.baseVal.value-2*De;var gn=1,pn=1;Mn.naturalSize===!0?(gn=q.naturalWidth/(X.width.baseVal.value-2*De)/ot,pn=q.naturalHeight/(X.height.baseVal.value-2*De)/Qt,$t.width=q.naturalWidth/ot,$t.height=q.naturalHeight/Qt):Mn.width!==void 0&&Mn.height!==void 0&&(gn=Mn.width/oe.width,pn=Mn.height/oe.height,$t.width*=gn,$t.height*=pn);var Ar=$t.getContext("2d");Ar.translate($t.width/2,$t.height/2),Ar.rotate(fe*Math.PI/180),Ar.scale(ot,Qt),Ar.translate(-$t.width/2,-$t.height/2),Ar.drawImage(q,0,0,$t.width,$t.height);var ra=document.createElement("canvas");ra.width=oe.width*gn,ra.height=oe.height*pn,ra.getContext("2d").putImageData(Ar.getImageData((oe.x-De)*gn,(oe.y-De)*pn,oe.width*gn,oe.height*pn),0,0),Vn(ra.toDataURL(Mn.imageType,Mn.imageQuality))})},pe}(),qt=function(){function pe(X){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 Ft(this.instanceNo),this.target=X,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(X){this._zoomToCropEnabled=X,X?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(X){this._isGridVisible=X,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"gridLines",{get:function(){return this._gridLines},set:function(X){this._gridLines=X,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(X){this._rotationAngle=X,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 X;return(X=this._aspectRatio)!==null&&X!==void 0?X:this.aspectRatios[0]},set:function(X){this._aspectRatio=X},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(X){X===void 0&&(X=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),X||this.closeEventListeners.forEach(function(q){return q()}),this._isOpen=!1)},pe.prototype.addRenderEventListener=function(X){this.renderEventListeners.push(X)},pe.prototype.removeRenderEventListener=function(X){this.renderEventListeners.indexOf(X)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(X),1)},pe.prototype.addCloseEventListener=function(X){this.closeEventListeners.push(X)},pe.prototype.removeCloseEventListener=function(X){this.closeEventListeners.indexOf(X)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(X),1)},pe.prototype.setupResizeObserver=function(){var X=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){X.resize(X.target.clientWidth,X.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 X=1*this.target.clientWidth/this.target.clientHeight,q=this.contentDiv.clientWidth/X>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*X:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,oe=q+2*this.CANVAS_MARGIN<this.contentDiv.clientWidth?this.contentDiv.clientHeight-2*this.CANVAS_MARGIN:(this.contentDiv.clientWidth-2*this.CANVAS_MARGIN)/X;this.resize(q,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",lt.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(X,q){this.imageWidth=Math.round(X),this.imageHeight=Math.round(q),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 X=document.createElement("canvas");X.width=this.target.naturalWidth,X.height=this.target.naturalHeight,X.getContext("2d").drawImage(this.target,0,0,this.target.naturalWidth,this.target.naturalHeight);var q=X.toDataURL();lt.setAttributes(this.editingTarget,[["href",q]]),this.setEditingTargetSize()},pe.prototype.setTopLeft=function(){var X=this.target.getBoundingClientRect(),q=this.editorCanvas.getBoundingClientRect();this.left=X.left-q.left-this.CANVAS_MARGIN,this.top=X.top-q.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=lt.createDefs(),this.cropImage.appendChild(this.defs),this.editingTarget=lt.createImage([["href",""]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationContainer=lt.createGroup(),this.editingTargetRotationScaleContainer=lt.createGroup(),this.editingTargetRotationScaleContainer.appendChild(this.editingTarget),this.editingTargetRotationContainer.appendChild(this.editingTargetRotationScaleContainer);var X=lt.createTransform();this.editingTargetRotationContainer.transform.baseVal.appendItem(X);var q=lt.createTransform();this.editingTargetRotationScaleContainer.transform.baseVal.appendItem(q),this.editingTargetContainer=lt.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=lt.createGroup(),this.cropImage.appendChild(this.cropLayerContainer),this.cropLayer=new Rr(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 X=this.cropRect.x-this.CANVAS_MARGIN+this.cropRect.width/2,q=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=X+"px "+q+"px",this.editingTargetContainer.style.transform="translate("+(this.imageWidth/2-X+this.CANVAS_MARGIN)+"px,"+(this.imageHeight/2-q+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(X){this.cropRect=X,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 X=this.styles.settings.hideTopToolbar?0:this.toolbarHeight,q=this.target.offsetTop>X+this.CANVAS_MARGIN?this.target.offsetTop-(X+this.CANVAS_MARGIN):0;this.coverDiv.style.top=q+"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 X=this;this.topToolbar=new mn,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 q=new Xn;q.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(q);var oe=[];this.aspectRatios.forEach(function(pn){var Ar=new Fn(Yn.getIcon(pn.horizontal,pn.vertical),pn.horizontal===0&&pn.vertical===0?"FREE":pn.horizontal+":"+pn.vertical);Ar.onClick=function(){return X.ratioButtonClicked(pn)},oe.push(Ar)}),this.aspectRatioButton=new ar(Yn.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,q.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var De=new Fn('<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");De.isActive=this.isGridVisible,De.onClick=function(){X.isGridVisible=!X.isGridVisible,De.isActive=X.isGridVisible},q.addButton(De);var fe=new Fn('<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(fe.isActive=this.zoomToCropEnabled,fe.onClick=function(){X.zoomToCropEnabled=!X.zoomToCropEnabled,fe.isActive=X.zoomToCropEnabled},q.addButton(fe),!Mt.isLicensed){var ot=new xn;this.topToolbar.addElementBlock(ot);var Qt=document.createElement("div");Qt.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var Mn=document.createElement("a");Mn.style.color="currentColor",Mn.href="https://markerjs.com/products/cropro",Mn.target="_blank",Mn.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>',Qt.appendChild(Mn),ot.addElement(Qt)}var Vn=new Xn;Vn.minWidth=3*this.toolbarHeight+"px",Vn.contentAlign="end",this.topToolbar.addButtonBlock(Vn);var $t=new Fn('<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");$t.onClick=this.startRenderAndClose,Vn.addButton($t),this.styles.settings.toolbarOkButtonStyleColorsClassName&&($t.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var gn=new Fn('<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");gn.onClick=this.close,Vn.addButton(gn),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(gn.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},pe.prototype.addBottomToolbar=function(){var X=this;this.bottomToolbar=new mn,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 q=new Xn;q.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(q);var oe=new Fn('<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,q.addButton(oe);var De=new Fn('<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");De.onClick=this.rotateRightButtonClicked,q.addButton(De);var fe=new xn;fe.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(fe),this.straightener=new pr("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){X.rotateBy(Vn),X.straightener.angle=X.rotationAngle},fe.addElement(this.straightener.getUI());var ot=new Xn;ot.minWidth=2*this.toolbarHeight+"px",ot.contentAlign="end",this.bottomToolbar.addButtonBlock(ot);var Qt=new Fn('<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");Qt.onClick=this.flipHorizontallyButtonClicked,ot.addButton(Qt);var Mn=new Fn('<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");Mn.onClick=this.flipVerticallyButtonClicked,ot.addButton(Mn)},pe.prototype.ratioButtonClicked=function(X){this.aspectRatio=X,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},pe.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=Yn.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 fr(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(X){if(X){var q=this.cropLayer.getRescaledRect(X.width,X.height,this.imageWidth,this.imageHeight,X.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(q),this.cropRectChanged(q),this.flippedHorizontally=X.flippedHorizontally,this.flippedVertically=X.flippedVertically,this.applyFlip(),this.rotationAngle=X.rotationAngle,this.applyRotation()}},pe.prototype.clientToLocalCoordinates=function(X,q){var oe=this.cropImage.getBoundingClientRect();return{x:X-oe.left,y:q-oe.top}},pe.prototype.onWindowResize=function(){this.positionUI()},pe.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var X=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=X+"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 X=this.rotationAngle-90;this.rotationAngle%90!=0&&(X+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(X)},pe.prototype.rotateRightButtonClicked=function(){var X=this.rotationAngle+90;this.rotationAngle%90!=0&&(X-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(X)},pe.prototype.rotateTo=function(X){X=(X=X>180?X-360:X)<=-180?X+360:X,this.rotationAngle=X,this.applyRotation()},pe.prototype.rotateBy=function(X){this.rotateTo((this.rotationAngle+X)%360)},pe.prototype.applyRotation=function(){var X=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var q=this.editingTargetRotationContainer.transform.baseVal.getItem(0);q.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(q,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=X},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 Et(this,void 0,void 0,function(){var X,q;return Ot(this,function(oe){switch(oe.label){case 0:return[4,this.render()];case 1:return X=oe.sent(),q=this.getState(),this.renderEventListeners.forEach(function(De){return De(X,q)}),this.close(!0),[2]}})})},pe.prototype.render=function(){return Et(this,void 0,void 0,function(){var X;return Ot(this,function(q){switch(q.label){case 0:return(X=new sn).naturalSize=this.renderAtNaturalSize,X.imageType=this.renderImageType,X.imageQuality=this.renderImageQuality,X.width=this.renderWidth,X.height=this.renderHeight,this.unzoomFromCrop(),lt.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,X.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 q.sent(),[4,X.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,q.sent()]}})})},pe.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new on("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 on("toolbar_colors",`
|
|
|
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new on("toolbar-block",`
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
box-sizing: content-box;
|
|
|
`));var X=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new on("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.toolbarHeight-2*X)+`px;
|
|
|
height: `+(this.toolbarHeight-2*X)+`px;
|
|
|
padding: `+X+`px;
|
|
|
cursor: default;
|
|
|
user-select: none;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new on("toolbar_button_colors",`
|
|
|
color: `+this.styles.settings.toolbarColor+`;
|
|
|
fill: currentColor;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new on("toolbar_active_button",`
|
|
|
color: `+this.styles.settings.toolbarColor+`;
|
|
|
fill: currentColor;
|
|
|
background-color: `+this.styles.settings.toolbarBackgroundActiveColor+`
|
|
|
`)),this.styles.addRule(new Lt("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new Lt("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.styles.settings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.toolbarDropdownStyleClass=this.styles.addClass(new on("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 on("toolbar_dropdown_colors",`
|
|
|
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new on("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 on("toolbar_straightener",`
|
|
|
display: flex;
|
|
|
overflow: hidden;
|
|
|
justify-content: center;
|
|
|
height: `+(this.toolbarHeight-2*X)+`px;
|
|
|
padding: `+X+`px;
|
|
|
cursor: default;
|
|
|
user-select: none;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new on("toolbar_straightener_colors",`
|
|
|
color: `+this.styles.settings.toolbarColor+`;
|
|
|
fill: currentColor;
|
|
|
`))},pe.instanceCounter=0,pe}(),On=o("8hTe"),Fr=o.n(On),Or=/<pre[^>]*>/g;function xr(pe){var X=document.createElement("div");return X.innerHTML=pe,X.childNodes.length===0?"":X.childNodes[0].nodeValue}var dr=z.a=function(pe){var X=pe.value,q=X===void 0?"":X,oe=pe.edit,De=oe===void 0?!1:oe,fe=pe.className,ot=pe.showTextOnly,Qt=pe.showLines,Mn=pe.replaces,Vn=pe.zoomImg,$t=pe.hasMask,gn=pe.style,pn=gn===void 0?{}:gn,Ar=pe.stylesPrev,ra=Ar===void 0?{}:Ar,oa=String(q),ir=Object(f.useRef)(),Ra=Object(f.useRef)(),La=Object(f.useState)(""),ca=Object(O.a)(La,2),Ka=ca[0],wa=ca[1],Ja=Object(f.useState)("office"),ja=Object(O.a)(Ja,2),li=ja[0],oi=ja[1],fa=function(){var Nt=new qt(Ra.current);Nt.displayMode="popup",Nt.addRenderEventListener(function(){var Xt=Object(x.a)(e.a.mark(function nn(yn){var vn;return e.a.wrap(function(An){for(;;)switch(An.prev=An.next){case 0:return ir.current.style.display="none",An.next=3,Object(Se.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:yn}});case 3:vn=An.sent,vn!=null&&vn.id&&Mn(Ra.current.getAttribute("src").replace(ee.a.API_SERVER,""),"/api/attachments/".concat(vn==null?void 0:vn.id,"?type=").concat(vn.content_type));case 5:case"end":return An.stop()}},nn)}));return function(nn){return Xt.apply(this,arguments)}}()),Nt.show()},ma=function(){var Nt=new Pe(Ra.current);Nt.settings.displayMode="popup",Nt.addEventListener("render",function(){var Xt=Object(x.a)(e.a.mark(function nn(yn){var vn;return e.a.wrap(function(An){for(;;)switch(An.prev=An.next){case 0:if(ir.current.style.display="none",!Ra.current){An.next=6;break}return An.next=4,Object(Se.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:yn.dataUrl}});case 4:vn=An.sent,vn!=null&&vn.id&&Mn(Ra.current.getAttribute("src").replace(ee.a.API_SERVER,""),"/api/attachments/".concat(vn==null?void 0:vn.id,"?type=").concat(vn.content_type));case 6:case"end":return An.stop()}},nn)}));return function(nn){return Xt.apply(this,arguments)}}()),Nt.show(),window.markerArea=Nt},la=Object(f.useMemo)(function(){ir.current&&(ir.current.style.zIndex=-1);try{var Kt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Nt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Xt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;oa=oa.replace(Kt,"("+ee.a.API_SERVER+"/api/attachments/").replace(Nt,'"'+ee.a.API_SERVER+"/api/attachments/").replace(Xt,'"'+ee.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 nn=W(oa),yn=U();if(oa.match(/\[TOC\]/)&&(nn=nn.replace("<p>[TOC]</p>",R()),w()),nn=nn.replace(/(__special_katext_id_\d+__)/g,function(Nn,An){var an=yn[An],Pn=an.type,bn=an.expression;return Object(he.renderToString)(xr(bn)||"",{displayMode:Pn==="block",throwOnError:!1,output:"html"})}),nn=nn.replace(/▁/g,"\u2581\u2581\u2581"),L(),ot){var vn=document.createElement("div");return vn.innerHTML=nn,vn.innerText}return setTimeout(function(){return Rt()},500),nn},[oa]),xe=Object(f.useRef)();E.WebkitLineClamp=Qt,Qt&&(pn=Object(y.a)(Object(y.a)({},pn),E));function ut(Kt){var Nt=Kt.target;if(Nt.tagName.toUpperCase()==="IMG"){if(Vn){var Xt=Nt.getAttribute("src");wa(Xt),oi("image")}}else if(Nt.tagName.toUpperCase()==="A"){var nn=Nt.getAttribute("href");if(nn.indexOf("office")>-1)Kt.preventDefault(),wa(nn),oi("office");else if(nn.indexOf("application/pdf")>-1)Kt.preventDefault(),wa(nn),oi("pdf");else if(nn.indexOf("text/html")>-1)Kt.preventDefault(),wa(nn),oi("html");else if(nn.startsWith("#")){Kt.preventDefault();var yn=document.getElementById(nn.replace("#",""));yn&&yn.scrollIntoView(!0)}}}var Rt=function(){var Nt,Xt=(Nt=xe.current)===null||Nt===void 0?void 0:Nt.querySelectorAll("video");Xt==null||Xt.forEach(function(nn){if(nn.oncontextmenu=function(){return!1},nn.src.indexOf(".m3u8")>-1&&!nn.canPlayType("application/vnd.apple.mpegurl")){if(K.a.isSupported()){var yn=new K.a;yn.loadSource(nn.src),yn.attachMedia(nn)}}})};Object(f.useEffect)(function(){if(xe.current&&la&&(la.match(Or)&&window.PR.prettyPrint()),xe.current)return xe.current.addEventListener("click",ut),function(){xe.current.removeEventListener("click",ut),L(),w()}},[la,xe.current,ut]);var wt=function(Nt){if(!De)return;Nt.target.nodeName==="IMG"?(ir.current.style.zIndex=1,ir.current.style.display="flex",ir.current.style.width=Nt.target.clientWidth+"px",ir.current.style.height=Nt.target.clientHeight+"px",ir.current.style.top=Nt.target.offsetTop+"px",ir.current.style.left=Nt.target.offsetLeft+"px",Ra.current.src=Nt.target.getAttribute("src")):ir.current.style.display="none"};return a.a.createElement("div",{style:{position:"relative"}},a.a.createElement("div",{ref:xe,style:Object(y.a)({},pn),className:"".concat(fe||""," markdown-body ").concat(Fr.a.mdBody),onMouseOver:wt,dangerouslySetInnerHTML:{__html:la}}),a.a.createElement("div",{ref:ir,className:Fr.a.button},a.a.createElement(g.a,null,a.a.createElement(b.a,{onClick:function(){return fa()}},"\u88C1\u526A"),a.a.createElement(b.a,{onClick:function(){return ma()}},"\u7F16\u8F91"))),a.a.createElement("img",{ref:Ra,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),a.a.createElement(de.a,{close:!0,data:Ka,type:Ka!=null&&Ka.length?li:"",style:Object(y.a)({},ra),onClose:function(){return wa("")}}))}},"9JIy":function(k,z,o){k.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(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(P){return P.mode.CTR=function(){var g=P.lib.BlockCipherMode.extend(),T=g.Encryptor=g.extend({processBlock:function(b,y){var x=this._cipher,O=x.blockSize,m=this._iv,e=this._counter;m&&(e=this._counter=m.slice(0),this._iv=void 0);var f=e.slice(0);x.encryptBlock(f,0),e[O-1]=e[O-1]+1|0;for(var a=0;a<O;a++)b[y+a]^=f[a]}});return g.Decryptor=T,g}(),P.mode.CTR})},"9VGf":function(k,z,o){"use strict";o.d(z,"a",function(){return T});var P=o("q1tI"),g=o.n(P);function T(b,y){var x=Object(P.useRef)();Object(P.useEffect)(function(){x.current=b}),Object(P.useEffect)(function(){function O(){x.current()}if(y!==null){var m=setInterval(O,y);return function(){return clearInterval(m)}}},[y])}},"9ZNV":function(k,z,o){"use strict";o.d(z,"a",function(){return f});var P=o("0Owb"),g=o("+L6B"),T=o("2/Rp"),b=o("q1tI"),y=o.n(b),x=o("UUDw"),O=o.n(x),m=o("TSYQ"),e=o.n(m),f=function(u){var r=u.cancelText,i=r===void 0?"\u53D6\u6D88":r,n=u.okText,l=n===void 0?"\u786E\u5B9A":n,h=u.loading,d=h===void 0?!1:h,s=u.hasOkBtn,c=s===void 0?!0:s,w=u.okButtonProps,E=w===void 0?{}:w,v=u.onCancel,R=v===void 0?function(){}:v,M=u.onOk,C=M===void 0?function(){}:M,S=u.className,_=S===void 0?"":S;return y.a.createElement("div",{className:e()(O.a.buttonFixed,_)},y.a.createElement("div",{className:O.a.buttonWrap},y.a.createElement(T.a,{size:"large",className:"".concat(O.a.button," mr20"),onClick:R},i),c&&y.a.createElement(T.a,Object(P.a)({size:"large",type:"primary",className:"".concat(O.a.button," mr20"),loading:d,onClick:C},E),l)))}},"A/g1":function(k,z){k.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF92lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDMgNzkuMTY0NTI3LCAyMDIwLzEwLzE1LTE3OjQ4OjMyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgeG1wOkNyZWF0ZURhdGU9IjIwMjEtMDctMDJUMTk6Mzg6MjMrMDg6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiBkYzpmb3JtYXQ9ImltYWdlL3BuZyIgcGhvdG9zaG9wOkNvbG9yTW9kZT0iMyIgcGhvdG9zaG9wOklDQ1Byb2ZpbGU9InNSR0IgSUVDNjE5NjYtMi4xIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOmVkYzRhODM0LTVjNWQtNDQ1My04MDYzLWNkNzcwODQyODg5ZSIgeG1wTU06RG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOjQ4MTE0OTVlLTVkMDctZTk0YS1iNWEwLWYxOWJmZmM0NGUyNyIgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOmMwNjQyYzA1LTg5MzQtNDdlYy04MTFiLTlkYjdhZGNkYjFiMCI+IDx4bXBNTTpIaXN0b3J5PiA8cmRmOlNlcT4gPHJkZjpsaSBzdEV2dDphY3Rpb249ImNyZWF0ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6YzA2NDJjMDUtODkzNC00N2VjLTgxMWItOWRiN2FkY2RiMWIwIiBzdEV2dDp3aGVuPSIyMDIxLTA3LTAyVDE5OjM4OjIzKzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6ZWRjNGE4MzQtNWM1ZC00NDUzLTgwNjMtY2Q3NzA4NDI4ODllIiBzdEV2dDp3aGVuPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5fJkpyAAAGoElEQVRogc2abWxbVxnH/8+59/rdTpx2GW3UNWJJV7Ylaxp3LUFsWgJDiI5R8bK2GppAmsgQLKQthS8IEJ9okibrREf3gX2Y1K2bxAoDtog60RBSVxKnWUO7kpSppXJZK2ja2HFi33vPw4cmpbN9r++1k8Lv2znnf577f+zje95Mhw4dQqUkwljpF7kuv0EdHkm1HklRr6TQq2tn5xcklwhIMnMSQJIJxykTiSce+1am0mer5XacqM7uDJjiqbAuWlvSygrBnmKyxcoI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"},ALsQ:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(P){return P.mode.CFB=function(){var g=P.lib.BlockCipherMode.extend();g.Encryptor=g.extend({processBlock:function(b,y){var x=this._cipher,O=x.blockSize;T.call(this,b,y,O,x),this._prevBlock=b.slice(y,y+O)}}),g.Decryptor=g.extend({processBlock:function(b,y){var x=this._cipher,O=x.blockSize,m=b.slice(y,y+O);T.call(this,b,y,O,x),this._prevBlock=m}});function T(b,y,x,O){var m,e=this._iv;e?(m=e.slice(0),this._iv=void 0):m=this._prevBlock,O.encryptBlock(m,0);for(var f=0;f<x;f++)b[y+f]^=m[f]}return g}(),P.mode.CFB})},B6bo:function(k,z,o){k.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(k,z,o){k.exports={wrap:"wrap___1gcMR",content:"content___31AN8",mainPathWrap:"mainPathWrap___1HrSg",colorBlue:"colorBlue___2eq2Y"}},BU3w:function(k,z,o){"use strict";o.d(z,"a",function(){return x});var P=o("MNnm"),g="rc-util-key";function T(O){if(O.attachTo)return O.attachTo;var m=document.querySelector("head");return m||document.body}function b(O){var m,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(P.a)())return null;var f=document.createElement("style");if((m=e.csp)===null||m===void 0?void 0:m.nonce){var a;f.nonce=(a=e.csp)===null||a===void 0?void 0:a.nonce}f.innerHTML=O;var u=T(e),r=u.firstChild;return e.prepend&&u.prepend?u.prepend(f):e.prepend&&r?u.insertBefore(f,r):u.appendChild(f),f}var y=new Map;function x(O,m){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=T(e);if(!y.has(f)){var a=b("",e),u=a.parentNode;y.set(f,u),u.removeChild(a)}var r=Array.from(y.get(f).children).find(function(d){return d.tagName==="STYLE"&&d[g]===m});if(r){var i,n;if(((i=e.csp)===null||i===void 0?void 0:i.nonce)&&r.nonce!==((n=e.csp)===null||n===void 0?void 0:n.nonce)){var l;r.nonce=(l=e.csp)===null||l===void 0?void 0:l.nonce}return r.innerHTML!==O&&(r.innerHTML=O),r}var h=b(O,e);return h[g]=m,h}},Bbdw:function(k,z,o){k.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(k,z,o){(function(P){P(o("VrN/"),o("osHv"))})(function(P){P.defineOption("autoCloseTags",!1,function(e,f,a){if(a!=P.Init&&a&&e.removeKeyMap("autoCloseTags"),!f)return;var u={name:"autoCloseTags"};(typeof f!="object"||f.whenClosing!==!1)&&(u["'/'"]=function(r){return x(r)}),(typeof f!="object"||f.whenOpening!==!1)&&(u["'>'"]=function(r){return b(r)}),e.addKeyMap(u)});var g=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],T=["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(e){if(e.getOption("disableInput"))return P.Pass;for(var f=e.listSelections(),a=[],u=e.getOption("autoCloseTags"),r=0;r<f.length;r++){if(!f[r].empty())return P.Pass;var i=f[r].head,n=e.getTokenAt(i),l=P.innerMode(e.getMode(),n.state),h=l.state,d=l.mode.xmlCurrentTag&&l.mode.xmlCurrentTag(h),s=d&&d.name;if(!s)return P.Pass;var c=l.mode.configuration=="html",w=typeof u=="object"&&u.dontCloseTags||c&&g,E=typeof u=="object"&&u.indentTags||c&&T;n.end>i.ch&&(s=s.slice(0,s.length-n.end+i.ch));var v=s.toLowerCase();if(!s||n.type=="string"&&(n.end!=i.ch||!/[\"\']/.test(n.string.charAt(n.string.length-1))||n.string.length==1)||n.type=="tag"&&d.close||n.string.indexOf("/")==i.ch-n.start-1||w&&O(w,v)>-1||m(e,l.mode.xmlCurrentContext&&l.mode.xmlCurrentContext(h)||[],s,i,!0))return P.Pass;var R=typeof u=="object"&&u.emptyTags;if(R&&O(R,s)>-1){a[r]={text:"/>",newPos:P.Pos(i.line,i.ch+2)};continue}var M=E&&O(E,v)>-1;a[r]={indent:M,text:">"+(M?`
|
|
|
|
|
|
`:"")+"</"+s+">",newPos:M?P.Pos(i.line+1,0):P.Pos(i.line,i.ch+1)}}for(var C=typeof u=="object"&&u.dontIndentOnAutoClose,r=f.length-1;r>=0;r--){var S=a[r];e.replaceRange(S.text,f[r].head,f[r].anchor,"+insert");var _=e.listSelections().slice(0);_[r]={head:S.newPos,anchor:S.newPos},e.setSelections(_),!C&&S.indent&&(e.indentLine(S.newPos.line,null,!0),e.indentLine(S.newPos.line+1,null,!0))}}function y(e,f){for(var a=e.listSelections(),u=[],r=f?"/":"</",i=e.getOption("autoCloseTags"),n=typeof i=="object"&&i.dontIndentOnSlash,l=0;l<a.length;l++){if(!a[l].empty())return P.Pass;var h=a[l].head,d=e.getTokenAt(h),s=P.innerMode(e.getMode(),d.state),c=s.state;if(f&&(d.type=="string"||d.string.charAt(0)!="<"||d.start!=h.ch-1))return P.Pass;var w,E=s.mode.name!="xml"&&e.getMode().name=="htmlmixed";if(E&&s.mode.name=="javascript")w=r+"script";else if(E&&s.mode.name=="css")w=r+"style";else{var v=s.mode.xmlCurrentContext&&s.mode.xmlCurrentContext(c);if(!v||v.length&&m(e,v,v[v.length-1],h))return P.Pass;w=r+v[v.length-1]}e.getLine(h.line).charAt(d.end)!=">"&&(w+=">"),u[l]=w}if(e.replaceSelections(u),a=e.listSelections(),!n)for(var l=0;l<a.length;l++)(l==a.length-1||a[l].head.line<a[l+1].head.line)&&e.indentLine(a[l].head.line)}function x(e){return e.getOption("disableInput")?P.Pass:y(e,!0)}P.commands.closeTag=function(e){return y(e)};function O(e,f){if(e.indexOf)return e.indexOf(f);for(var a=0,u=e.length;a<u;++a)if(e[a]==f)return a;return-1}function m(e,f,a,u,r){if(!P.scanForClosingTag)return!1;var i=Math.min(e.lastLine()+1,u.line+500),n=P.scanForClosingTag(e,u,null,i);if(!n||n.tag!=a)return!1;for(var l=r?1:0,h=f.length-1;h>=0&&f[h]==a;h--)++l;u=n.to;for(var h=1;h<l;h++){var d=P.scanForClosingTag(e,u,null,i);if(!d||d.tag!=a)return!1;u=d.to}return!0}})},BdwD:function(k,z,o){"use strict";var P=o("+L6B"),g=o("2/Rp"),T=o("0Owb"),b=o("k1fw"),y=o("q1tI"),x=o.n(y),O=o("FOrL"),m=o.n(O),e=function(a){var u=a.buttonProps,r=u===void 0?{}:u,i=a.styles,n=i===void 0?{}:i,l=a.customText,h=a.ButtonText,d=a.ButtonClick,s=a.Buttonclass,c=a.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:m.a}),x.a.createElement("p",{className:"mt20 font14"},l||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),h&&x.a.createElement(g.a,Object(T.a)({className:s,onClick:d},r),h),c&&c)};z.a=e},BjJ7:function(k,z,o){"use strict";o.d(z,"d",function(){return g}),o.d(z,"c",function(){return T}),o.d(z,"e",function(){return b}),o.d(z,"b",function(){return y}),o.d(z,"a",function(){return O});var P=o("m3rI");function g(m){var e=!0;if(m.length>0){for(var f=0;f<m.length;f++)if(m[f].compile_success==0||!m[f].compile_success){e=!1;break}}else e=!1;return e}function T(m){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",f=[],a=0;a<m.length;a++){var u=m[a],r=e?"".concat(e,"/").concat(u.name):"".concat(u.name);f.push({title:u.name,isLeaf:!(u.type==="tree"),key:r})}return f}function b(m,e,f){for(var a=0;a<m.length;a++){var u=m[a];if(u.key===e){u.children=f;break}u.children&&b(u.children,e,f)}return m}function y(m,e,f){var a;return function(){var u=this,r=arguments,i=function(){a=null,f||m.apply(u,r)},n=f&&!a;clearTimeout(a),a=setTimeout(i,e),n&&m.apply(u,r)}}var x=!0,O=P.a.API_SERVER},Bq7L:function(k,z){k.exports="data:image/png;base64,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"},"C+DQ":function(k,z,o){},"C/vA":function(k,z,o){"use strict";o.d(z,"a",function(){return P});function P(g){const T=this;let b=!1,y;return function(){return b||(b=!0,y=g.apply(T,arguments)),y}}},"Cg/j":function(k,z,o){"use strict";o.d(z,"b",function(){return P}),o.d(z,"a",function(){return g}),o.d(z,"c",function(){return b}),o.d(z,"d",function(){return y});var P;(function(x){x.serviceIds=new Map,x.DI_TARGET="$di$target",x.DI_DEPENDENCIES="$di$dependencies";function O(m){return m[x.DI_DEPENDENCIES]||[]}x.getServiceDependencies=O})(P||(P={}));const g=b("instantiationService");function T(x,O,m,e){O[P.DI_TARGET]===O?O[P.DI_DEPENDENCIES].push({id:x,index:m,optional:e}):(O[P.DI_DEPENDENCIES]=[{id:x,index:m,optional:e}],O[P.DI_TARGET]=O)}function b(x){if(P.serviceIds.has(x))return P.serviceIds.get(x);const O=function(m,e,f){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");T(O,m,f,!1)};return O.toString=()=>x,P.serviceIds.set(x,O),O}function y(x){return function(O,m,e){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");T(x,O,e,!0)}}},"Cs+z":function(k,z,o){k.exports=o.p+"static/jqr.b801d45b.png"},"Ct/S":function(k,z,o){k.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(k,z,o){"use strict";var P=o("+L6B"),g=o("2/Rp"),T=o("y8nQ"),b=o("Vl3Y"),y=o("cWXX"),x=o("/ezw"),O=o("rAM+"),m=o("9og8"),e=o("tJVT"),f=o("7Kak"),a=o("9yH6"),u=o("WmNS"),r=o.n(u),i=o("q1tI"),n=o.n(i),l=o("ErOA"),h=o("2qtc"),d=o("kLXV"),s=o("k1fw"),c=o("Se0u"),w=o("pUFm"),E=o.n(w);function v(){return Object(l.c)("teach_groups.json")}function R($){return Object(l.f)("teach_groups.json",$)}function M($,me){return Object(l.g)("teach_groups/".concat($,".json"),me)}function C($){return Object(l.f)("teach_group_members.json",$)}function S($){return Object(l.b)("teach_group_members/".concat($,".json"))}function _($,me){return Object(l.b)("teach_groups/".concat($,"/del_member.json?member_id=").concat(me))}function A($){return Object(l.b)("teach_groups/".concat($,".json"))}var U=o("5NDa"),L=o("5rEg"),N=function($){var me=$.callback,re=$.visible,ae=$.onCancel,Oe=$.id,se=$.name;function te(_e){me(_e)}var Q=b.a.useForm(),J=Object(e.a)(Q,1),ve=J[0];return Object(i.useEffect)(function(){ve.setFieldsValue({name:se})},[se]),n.a.createElement(d.a,{centered:!0,title:Oe?"\u6539\u540D":"\u65B0\u5EFA",visible:re,onCancel:ae,footer:null},n.a.createElement(b.a,{layout:"vertical",form:ve,initialValues:{name:se},onFinish:te},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(L.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:ae,style:{marginRight:20}}," ","\u53D6\u6D88"," ")," ",n.a.createElement(g.a,{type:"primary",htmlType:"submit"}," ","\u786E\u5B9A"," ")))))},V=o("Fxgj"),H=o("3ouR"),D=o("xGfz"),W=50,F=function($){var me=$.data,re=$.isAdminOrTeacher,ae=$.onDelGroup,Oe=$.onChangeGroupName,se=$.onPlusMember,te=$.onDelMember,Q=$.onExitGroup,J=Object(i.useState)(0),ve=Object(e.a)(J,2),_e=ve[0],Ae=ve[1],Qe=Object(i.useState)(0),tt=Object(e.a)(Qe,2),dt=tt[0],mt=tt[1];function vt(Ue){var ft=parseInt(Ue.target.id,10);d.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(){ae(ft)}})}function yt(Ue){var ft=parseInt(Ue.target.id,10);d.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(){Q(ft)}})}function Ye(Ue,ft){d.a.confirm({title:"\u6E29\u99A8\u63D0\u793A",icon:null,content:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u7EC4\u5458\u5417?",onOk:function(){te(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 Ae(ft)}},n.a.createElement("div",{className:"item-group"},n.a.createElement("span",null,Ue.name," \xA0"," ",ft!==_e&&n.a.createElement("i",{className:"iconfont icon-jiantou9"})," "),n.a.createElement("div",{className:"action-group"},re?n.a.createElement("a",{onClick:function(){Oe(Ue)},style:{marginRight:40}},"\u4FEE\u6539\u540D2222\u79F0"):null,Ue.is_creat?n.a.createElement("a",{id:Ue.id+"",className:"c-grey-c",onClick:vt},"\u89E3\u6563"):n.a.createElement("a",{id:Ue.id+"",className:"c-grey-c",onClick:yt},"\u9000\u51FA"))),ft===_e?n.a.createElement("ul",{className:"info"},Ue.memers.map(function(jt){return n.a.createElement("li",{key:jt.id||jt.name,onClick:function(){mt(jt.id)},className:dt===jt.id?"active":""},n.a.createElement("div",null,jt.name),Ue.is_creat&&jt.id&&dt===jt.id?n.a.createElement("a",{className:"btn-del",onClick:function(Pt){Pt.preventDefault(),Pt.stopPropagation(),Ye(Ue.id,dt)}},n.a.createElement(H.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(){se(Ue)}}," ",n.a.createElement(D.a,null)," \u6DFB\u52A0\u7EC4\u5458"," ")):null):null)}))},I=o("9kvl"),K=o("ju9d");function ee($){var me=$.children;return n.a.createElement("div",{className:"no-data"},n.a.createElement("img",{src:E.a,alt:"no-data",width:300}),me)}var he={data:[],loading:!0,selectedGroup:{},showFormPanel:!1,showMemberPanel:!1,index:0},de;(function($){$[$.INITDATA=0]="INITDATA",$[$.SHOWLOADING=1]="SHOWLOADING",$[$.SHOWFORMPANEL=2]="SHOWFORMPANEL",$[$.SHOWMEMBERPANEL=3]="SHOWMEMBERPANEL",$[$.SELECTGROUP=4]="SELECTGROUP",$[$.SETINDEX=5]="SETINDEX"})(de||(de={}));function Se($,me){switch(me.type){case de.INITDATA:return Object(s.a)(Object(s.a)({},$),me.payload);case de.SHOWLOADING:return Object(s.a)(Object(s.a)({},$),{},{loading:me.payload});case de.SETINDEX:return Object(s.a)(Object(s.a)({},$),{},{index:me.payload});case de.SHOWFORMPANEL:return Object(s.a)(Object(s.a)({},$),me.payload);case de.SHOWMEMBERPANEL:return Object(s.a)(Object(s.a)({},$),me.payload);case de.SELECTGROUP:return Object(s.a)(Object(s.a)({},$),{},{selectedGroup:me.payload,showFormPanel:!0});default:throw new Error}}function Te($){var me,re=$.user,ae=Object(i.useReducer)(Se,he),Oe=Object(e.a)(ae,2),se=Oe[0],te=Oe[1],Q=se.data,J=se.index,ve=se.loading,_e=se.showFormPanel,Ae=se.selectedGroup,Qe=se.showMemberPanel,tt=(me=re.userInfo)===null||me===void 0?void 0:me.role,dt=Object(i.useMemo)(function(){var Dt=[],Ht=[],rn=Object(O.a)(Q),Bt;try{for(rn.s();!(Bt=rn.n()).done;){var Ct=Bt.value;Ct.is_creat?Dt.push(Ct):Ht.push(Ct)}}catch(Ke){rn.e(Ke)}finally{rn.f()}return[Dt,Ht]},[Q]);Object(i.useEffect)(function(){tt===15&&te({type:de.SETINDEX,payload:1})},[tt]);function mt(){return vt.apply(this,arguments)}function vt(){return vt=Object(m.a)(r.a.mark(function Dt(){var Ht;return r.a.wrap(function(Bt){for(;;)switch(Bt.prev=Bt.next){case 0:return Bt.next=2,v();case 2:Ht=Bt.sent,te({type:de.INITDATA,payload:{loading:!1,showFormPanel:!1,data:Ht.groups}});case 4:case"end":return Bt.stop()}},Dt)})),vt.apply(this,arguments)}Object(i.useEffect)(function(){mt()},[]);function yt(Dt){return Ye.apply(this,arguments)}function Ye(){return Ye=Object(m.a)(r.a.mark(function Dt(Ht){return r.a.wrap(function(Bt){for(;;)switch(Bt.prev=Bt.next){case 0:if(!Ae.id){Bt.next=5;break}return Bt.next=3,M(Ae.id,Ht);case 3:Bt.next=7;break;case 5:return Bt.next=7,R(Ht);case 7:mt();case 8:case"end":return Bt.stop()}},Dt)})),Ye.apply(this,arguments)}function Ue(){te({type:de.SHOWFORMPANEL,payload:{showFormPanel:!0,selectedGroup:{}}})}function ft(Dt){te({type:de.SELECTGROUP,payload:Dt})}function jt(){te({type:de.SHOWFORMPANEL,payload:{showFormPanel:!1}})}function bt(){te({type:de.SHOWMEMBERPANEL,payload:{showMemberPanel:!1,selectedGroup:{}}})}function Pt(Dt){te({type:de.SHOWMEMBERPANEL,payload:{showMemberPanel:!0,selectedGroup:Dt}})}function it(Dt,Ht){return He.apply(this,arguments)}function He(){return He=Object(m.a)(r.a.mark(function Dt(Ht,rn){return r.a.wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:return Ct.next=2,_(Ht,rn);case 2:mt();case 3:case"end":return Ct.stop()}},Dt)})),He.apply(this,arguments)}function Ge(Dt){return Ce.apply(this,arguments)}function Ce(){return Ce=Object(m.a)(r.a.mark(function Dt(Ht){return r.a.wrap(function(Bt){for(;;)switch(Bt.prev=Bt.next){case 0:return Bt.next=2,A(Ht);case 2:mt();case 3:case"end":return Bt.stop()}},Dt)})),Ce.apply(this,arguments)}function Ie(Dt){return Fe.apply(this,arguments)}function Fe(){return Fe=Object(m.a)(r.a.mark(function Dt(Ht){return r.a.wrap(function(Bt){for(;;)switch(Bt.prev=Bt.next){case 0:return Bt.next=2,S(Ht);case 2:mt();case 3:case"end":return Bt.stop()}},Dt)})),Fe.apply(this,arguments)}function Be(Dt){te({type:de.SETINDEX,payload:parseInt(Dt.target.id,10)})}function We(Dt,Ht){return st.apply(this,arguments)}function st(){return st=Object(m.a)(r.a.mark(function Dt(Ht,rn){return r.a.wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:return bt(),Ct.next=3,C({user_ids:Ht,group_id:rn});case 3:mt();case 4:case"end":return Ct.stop()}},Dt)})),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"," ",tt<=12&&n.a.createElement(g.a,{type:"primary",disabled:Q.length>=50,title:Q.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"},tt===15?null:n.a.createElement("ul",{className:"navs"},n.a.createElement("li",{className:J===0?"active":""},n.a.createElement("a",{id:"0",onClick:Be},"\u6211\u521B\u5EFA\u7684")),n.a.createElement("li",{className:J===1?"active":""},n.a.createElement("a",{id:"1",onClick:Be},"\u6211\u52A0\u5165\u7684"))),n.a.createElement("div",{className:dt[J].length===0?"nodata-content":"main-content"},dt[J].length===0?n.a.createElement(ee,null,tt<=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(F,{onExitGroup:Ie,onPlusMember:Pt,onDelMember:it,onDelGroup:Ge,isAdminOrTeacher:tt<=12,onChangeGroupName:ft,data:dt[J]}))),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:yt,visible:_e,onCancel:jt,id:Ae.id,name:Ae.name}),n.a.createElement(d.a,{centered:!0,title:"\u6DFB\u52A0\u6210\u5458",visible:Qe,onCancel:bt,footer:null,width:1100,bodyStyle:{minHeight:200}},n.a.createElement(K.a,{container_id:Ae.id,container_type:4,onSelect:We,onCancel:bt})))}var ce=Object(I.a)(function($){var me=$.user;return{user:me}})(Te),be=o("SLjR"),Ee=o("55Ip"),ue=a.a.Group,le=z.a=function($){var me=$.onSelect,re=$.onCancel,ae=Object(i.useState)([]),Oe=Object(e.a)(ae,2),se=Oe[0],te=Oe[1],Q=Object(i.useState)(!0),J=Object(e.a)(Q,2),ve=J[0],_e=J[1];Object(i.useEffect)(function(){function tt(){return dt.apply(this,arguments)}function dt(){return dt=Object(m.a)(r.a.mark(function mt(){var vt,yt;return r.a.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return Ue.next=2,Object(l.c)("teach_groups/my.json");case 2:vt=Ue.sent,yt=vt.groups,te(yt),_e(!1);case 6:case"end":return Ue.stop()}},mt)})),dt.apply(this,arguments)}tt()},[]);var Ae=Object(i.useMemo)(function(){var tt=[],dt=[],mt=Object(O.a)(se),vt;try{for(mt.s();!(vt=mt.n()).done;){var yt=vt.value;yt.is_creat?tt.push(yt):dt.push(yt)}}catch(Ye){mt.e(Ye)}finally{mt.f()}return[tt,dt]},[se]);function Qe(tt){me(tt)}return n.a.createElement(b.a,{className:"select-teach-group",onFinish:Qe},ve?n.a.createElement(x.a,{paragraph:!0}):se.length===0?n.a.createElement(ee,null,"\u60A8\u5C1A\u672A\u521B\u5EFA\u60A8\u7684\u6559\u7814\u56E2\u961F\uFF0C\u5FEB\u53BB",n.a.createElement(Ee.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"},Ae[0].map(function(tt){return n.a.createElement("li",{key:tt.id},n.a.createElement(a.a,{value:tt.id},tt.name))})),n.a.createElement("p",{style:{fontSize:"12px"}},"\u6211\u52A0\u5165\u7684\uFF1A"),n.a.createElement("ul",{className:"groups"},Ae[1].map(function(tt){return n.a.createElement("li",{key:tt.id},n.a.createElement(a.a,{value:tt.id},tt.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(k,z,o){(function(P,g){k.exports=g()})(this,function(){"use strict";function P(it,He){for(var Ge=0;Ge<He.length;Ge++){var Ce=He[Ge];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(it,Ce.key,Ce)}}function g(it,He,Ge){return He&&P(it.prototype,He),Ge&&P(it,Ge),it}function T(it,He){if(!it)return;if(typeof it=="string")return b(it,He);var Ge=Object.prototype.toString.call(it).slice(8,-1);if(Ge==="Object"&&it.constructor&&(Ge=it.constructor.name),Ge==="Map"||Ge==="Set")return Array.from(it);if(Ge==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ge))return b(it,He)}function b(it,He){(He==null||He>it.length)&&(He=it.length);for(var Ge=0,Ce=new Array(He);Ge<He;Ge++)Ce[Ge]=it[Ge];return Ce}function y(it,He){var Ge;if(typeof Symbol=="undefined"||it[Symbol.iterator]==null){if(Array.isArray(it)||(Ge=T(it))||He&&it&&typeof it.length=="number"){Ge&&(it=Ge);var Ce=0;return function(){return Ce>=it.length?{done:!0}:{done:!1,value:it[Ce++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return Ge=it[Symbol.iterator](),Ge.next.bind(Ge)}function x(it,He){return He={exports:{}},it(He,He.exports),He.exports}var O=x(function(it){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(Ce){it.exports.defaults=Ce}it.exports={defaults:He(),getDefaults:He,changeDefaults:Ge}}),m=O.defaults,e=O.getDefaults,f=O.changeDefaults,a=/[&<>"']/,u=/[&<>"']/g,r=/[<>"']|&(?!#?\w+;)/,i=/[<>"']|&(?!#?\w+;)/g,n={"&":"&","<":"<",">":">",'"':""","'":"'"},l=function(He){return n[He]};function h(it,He){if(He){if(a.test(it))return it.replace(u,l)}else if(r.test(it))return it.replace(i,l);return it}var d=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function s(it){return it.replace(d,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 c=/(^|[^\[])\^/g;function w(it,He){it=it.source||it,He=He||"";var Ge={replace:function(Ie,Fe){return Fe=Fe.source||Fe,Fe=Fe.replace(c,"$1"),it=it.replace(Ie,Fe),Ge},getRegex:function(){return new RegExp(it,He)}};return Ge}var E=/[^\w:]/g,v=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function R(it,He,Ge){if(it){var Ce;try{Ce=decodeURIComponent(s(Ge)).replace(E,"").toLowerCase()}catch(Ie){return null}if(Ce.indexOf("javascript:")===0||Ce.indexOf("vbscript:")===0||Ce.indexOf("data:")===0)return null}He&&!v.test(Ge)&&(Ge=A(He,Ge));try{Ge=encodeURI(Ge).replace(/%25/g,"%")}catch(Ie){return null}return Ge}var M={},C=/^[^:]+:\/*[^/]*$/,S=/^([^:]+:)[\s\S]*$/,_=/^([^:]+:\/*[^/]*)[\s\S]*$/;function A(it,He){M[" "+it]||(C.test(it)?M[" "+it]=it+"/":M[" "+it]=V(it,"/",!0)),it=M[" "+it];var Ge=it.indexOf(":")===-1;return He.substring(0,2)==="//"?Ge?He:it.replace(S,"$1")+He:He.charAt(0)==="/"?Ge?He:it.replace(_,"$1")+He:it+He}var U={exec:function(){}};function L(it){for(var He=1,Ge,Ce;He<arguments.length;He++){Ge=arguments[He];for(Ce in Ge)Object.prototype.hasOwnProperty.call(Ge,Ce)&&(it[Ce]=Ge[Ce])}return it}function N(it,He){var Ge=it.replace(/\|/g,function(Fe,Be,We){for(var st=!1,Dt=Be;--Dt>=0&&We[Dt]==="\\";)st=!st;return st?"|":" |"}),Ce=Ge.split(/ \|/),Ie=0;if(Ce.length>He)Ce.splice(He);else for(;Ce.length<He;)Ce.push("");for(;Ie<Ce.length;Ie++)Ce[Ie]=Ce[Ie].trim().replace(/\\\|/g,"|");return Ce}function V(it,He,Ge){var Ce=it.length;if(Ce===0)return"";for(var Ie=0;Ie<Ce;){var Fe=it.charAt(Ce-Ie-1);if(Fe===He&&!Ge)Ie++;else if(Fe!==He&&Ge)Ie++;else break}return it.substr(0,Ce-Ie)}function H(it,He){if(it.indexOf(He[1])===-1)return-1;for(var Ge=it.length,Ce=0,Ie=0;Ie<Ge;Ie++)if(it[Ie]==="\\")Ie++;else if(it[Ie]===He[0])Ce++;else if(it[Ie]===He[1]&&(Ce--,Ce<0))return Ie;return-1}function D(it){it&&it.sanitize&&!it.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 W={escape:h,unescape:s,edit:w,cleanUrl:R,resolveUrl:A,noopTest:U,merge:L,splitCells:N,rtrim:V,findClosingBracket:H,checkSanitizeDeprecation:D},F=O.defaults,I=W.rtrim,K=W.splitCells,ee=W.escape,he=W.findClosingBracket;function de(it,He,Ge){var Ce=He.href,Ie=He.title?ee(He.title):null,Fe=it[1].replace(/\\([\[\]])/g,"$1");return it[0].charAt(0)!=="!"?{type:"link",raw:Ge,href:Ce,title:Ie,text:Fe}:{type:"image",raw:Ge,href:Ce,title:Ie,text:ee(Fe)}}function Se(it,He){var Ge=it.match(/^(\s+)(?:```)/);if(Ge===null)return He;var Ce=Ge[1];return He.split(`
|
|
|
`).map(function(Ie){var Fe=Ie.match(/^\s+/);if(Fe===null)return Ie;var Be=Fe[0];return Be.length>=Ce.length?Ie.slice(Ce.length):Ie}).join(`
|
|
|
`)}var Te=function(){function it(Ge){this.options=Ge||F}var He=it.prototype;return He.space=function(Ce){var Ie=this.rules.block.newline.exec(Ce);if(Ie)return Ie[0].length>1?{type:"space",raw:Ie[0]}:{raw:`
|
|
|
`}},He.code=function(Ce,Ie){var Fe=this.rules.block.code.exec(Ce);if(Fe){var Be=Ie[Ie.length-1];if(Be&&Be.type==="paragraph")return{raw:Fe[0],text:Fe[0].trimRight()};var We=Fe[0].replace(/^ {4}/gm,"");return{type:"code",raw:Fe[0],codeBlockStyle:"indented",text:this.options.pedantic?We:I(We,`
|
|
|
`)}}},He.fences=function(Ce){var Ie=this.rules.block.fences.exec(Ce);if(Ie){var Fe=Ie[0],Be=Se(Fe,Ie[3]||"");return{type:"code",raw:Fe,lang:Ie[2]?Ie[2].trim():Ie[2],text:Be}}},He.heading=function(Ce){var Ie=this.rules.block.heading.exec(Ce);if(Ie)return{type:"heading",raw:Ie[0],depth:Ie[1].length,text:Ie[2]}},He.nptable=function(Ce){var Ie=this.rules.block.nptable.exec(Ce);if(Ie){var Fe={type:"table",header:K(Ie[1].replace(/^ *| *\| *$/g,"")),align:Ie[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Ie[3]?Ie[3].replace(/\n$/,"").split(`
|
|
|
`):[],raw:Ie[0]};if(Fe.header.length===Fe.align.length){var Be=Fe.align.length,We;for(We=0;We<Be;We++)/^ *-+: *$/.test(Fe.align[We])?Fe.align[We]="right":/^ *:-+: *$/.test(Fe.align[We])?Fe.align[We]="center":/^ *:-+ *$/.test(Fe.align[We])?Fe.align[We]="left":Fe.align[We]=null;for(Be=Fe.cells.length,We=0;We<Be;We++)Fe.cells[We]=K(Fe.cells[We],Fe.header.length);return Fe}}},He.hr=function(Ce){var Ie=this.rules.block.hr.exec(Ce);if(Ie)return{type:"hr",raw:Ie[0]}},He.blockquote=function(Ce){var Ie=this.rules.block.blockquote.exec(Ce);if(Ie){var Fe=Ie[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:Ie[0],text:Fe}}},He.list=function(Ce){var Ie=this.rules.block.list.exec(Ce);if(Ie){for(var Fe=Ie[0],Be=Ie[2],We=Be.length>1,st=Be[Be.length-1]===")",Dt={type:"list",raw:Fe,ordered:We,start:We?+Be.slice(0,-1):"",loose:!1,items:[]},Ht=Ie[0].match(this.rules.block.item),rn=!1,Bt,Ct,Ke,et,at,Pe,Xe,ht=Ht.length,Et=0;Et<ht;Et++)Bt=Ht[Et],Fe=Bt,Ct=Bt.length,Bt=Bt.replace(/^ *([*+-]|\d+[.)]) */,""),~Bt.indexOf(`
|
|
|
`)&&(Ct-=Bt.length,Bt=this.options.pedantic?Bt.replace(/^ {1,4}/gm,""):Bt.replace(new RegExp("^ {1,"+Ct+"}","gm"),"")),Et!==ht-1&&(Ke=this.rules.block.bullet.exec(Ht[Et+1])[0],(We?Ke.length===1||!st&&Ke[Ke.length-1]===")":Ke.length>1||this.options.smartLists&&Ke!==Be)&&(et=Ht.slice(Et+1).join(`
|
|
|
`),Dt.raw=Dt.raw.substring(0,Dt.raw.length-et.length),Et=ht-1)),at=rn||/\n\n(?!\s*$)/.test(Bt),Et!==ht-1&&(rn=Bt.charAt(Bt.length-1)===`
|
|
|
`,at||(at=rn)),at&&(Dt.loose=!0),Pe=/^\[[ xX]\] /.test(Bt),Xe=void 0,Pe&&(Xe=Bt[1]!==" ",Bt=Bt.replace(/^\[[ xX]\] +/,"")),Dt.items.push({type:"list_item",raw:Fe,task:Pe,checked:Xe,loose:at,text:Bt});return Dt}},He.html=function(Ce){var Ie=this.rules.block.html.exec(Ce);if(Ie)return{type:this.options.sanitize?"paragraph":"html",raw:Ie[0],pre:!this.options.sanitizer&&(Ie[1]==="pre"||Ie[1]==="script"||Ie[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ie[0]):ee(Ie[0]):Ie[0]}},He.def=function(Ce){var Ie=this.rules.block.def.exec(Ce);if(Ie){Ie[3]&&(Ie[3]=Ie[3].substring(1,Ie[3].length-1));var Fe=Ie[1].toLowerCase().replace(/\s+/g," ");return{tag:Fe,raw:Ie[0],href:Ie[2],title:Ie[3]}}},He.table=function(Ce){var Ie=this.rules.block.table.exec(Ce);if(Ie){var Fe={type:"table",header:K(Ie[1].replace(/^ *| *\| *$/g,"")),align:Ie[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Ie[3]?Ie[3].replace(/\n$/,"").split(`
|
|
|
`):[]};if(Fe.header.length===Fe.align.length){Fe.raw=Ie[0];var Be=Fe.align.length,We;for(We=0;We<Be;We++)/^ *-+: *$/.test(Fe.align[We])?Fe.align[We]="right":/^ *:-+: *$/.test(Fe.align[We])?Fe.align[We]="center":/^ *:-+ *$/.test(Fe.align[We])?Fe.align[We]="left":Fe.align[We]=null;for(Be=Fe.cells.length,We=0;We<Be;We++)Fe.cells[We]=K(Fe.cells[We].replace(/^ *\| *| *\| *$/g,""),Fe.header.length);return Fe}}},He.lheading=function(Ce){var Ie=this.rules.block.lheading.exec(Ce);if(Ie)return{type:"heading",raw:Ie[0],depth:Ie[2].charAt(0)==="="?1:2,text:Ie[1]}},He.paragraph=function(Ce){var Ie=this.rules.block.paragraph.exec(Ce);if(Ie)return{type:"paragraph",raw:Ie[0],text:Ie[1].charAt(Ie[1].length-1)===`
|
|
|
`?Ie[1].slice(0,-1):Ie[1]}},He.text=function(Ce,Ie){var Fe=this.rules.block.text.exec(Ce);if(Fe){var Be=Ie[Ie.length-1];return Be&&Be.type==="text"?{raw:Fe[0],text:Fe[0]}:{type:"text",raw:Fe[0],text:Fe[0]}}},He.escape=function(Ce){var Ie=this.rules.inline.escape.exec(Ce);if(Ie)return{type:"escape",raw:Ie[0],text:ee(Ie[1])}},He.tag=function(Ce,Ie,Fe){var Be=this.rules.inline.tag.exec(Ce);if(Be)return!Ie&&/^<a /i.test(Be[0])?Ie=!0:Ie&&/^<\/a>/i.test(Be[0])&&(Ie=!1),!Fe&&/^<(pre|code|kbd|script)(\s|>)/i.test(Be[0])?Fe=!0:Fe&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Be[0])&&(Fe=!1),{type:this.options.sanitize?"text":"html",raw:Be[0],inLink:Ie,inRawBlock:Fe,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Be[0]):ee(Be[0]):Be[0]}},He.link=function(Ce){var Ie=this.rules.inline.link.exec(Ce);if(Ie){var Fe=he(Ie[2],"()");if(Fe>-1){var Be=Ie[0].indexOf("!")===0?5:4,We=Be+Ie[1].length+Fe;Ie[2]=Ie[2].substring(0,Fe),Ie[0]=Ie[0].substring(0,We).trim(),Ie[3]=""}var st=Ie[2],Dt="";if(this.options.pedantic){var Ht=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(st);Ht?(st=Ht[1],Dt=Ht[3]):Dt=""}else Dt=Ie[3]?Ie[3].slice(1,-1):"";st=st.trim().replace(/^<([\s\S]*)>$/,"$1");var rn=de(Ie,{href:st&&st.replace(this.rules.inline._escapes,"$1"),title:Dt&&Dt.replace(this.rules.inline._escapes,"$1")},Ie[0]);return rn}},He.reflink=function(Ce,Ie){var Fe;if((Fe=this.rules.inline.reflink.exec(Ce))||(Fe=this.rules.inline.nolink.exec(Ce))){var Be=(Fe[2]||Fe[1]).replace(/\s+/g," ");if(Be=Ie[Be.toLowerCase()],!Be||!Be.href){var We=Fe[0].charAt(0);return{type:"text",raw:We,text:We}}var st=de(Fe,Be,Fe[0]);return st}},He.strong=function(Ce,Ie,Fe){Fe===void 0&&(Fe="");var Be=this.rules.inline.strong.start.exec(Ce);if(Be&&(!Be[1]||Be[1]&&(Fe===""||this.rules.inline.punctuation.exec(Fe)))){Ie=Ie.slice(-1*Ce.length);var We=Be[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;We.lastIndex=0;for(var st;(Be=We.exec(Ie))!=null;)if(st=this.rules.inline.strong.middle.exec(Ie.slice(0,Be.index+3)),st)return{type:"strong",raw:Ce.slice(0,st[0].length),text:Ce.slice(2,st[0].length-2)}}},He.em=function(Ce,Ie,Fe){Fe===void 0&&(Fe="");var Be=this.rules.inline.em.start.exec(Ce);if(Be&&(!Be[1]||Be[1]&&(Fe===""||this.rules.inline.punctuation.exec(Fe)))){Ie=Ie.slice(-1*Ce.length);var We=Be[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;We.lastIndex=0;for(var st;(Be=We.exec(Ie))!=null;)if(st=this.rules.inline.em.middle.exec(Ie.slice(0,Be.index+2)),st)return{type:"em",raw:Ce.slice(0,st[0].length),text:Ce.slice(1,st[0].length-1)}}},He.codespan=function(Ce){var Ie=this.rules.inline.code.exec(Ce);if(Ie){var Fe=Ie[2].replace(/\n/g," "),Be=/[^ ]/.test(Fe),We=Fe.startsWith(" ")&&Fe.endsWith(" ");return Be&&We&&(Fe=Fe.substring(1,Fe.length-1)),Fe=ee(Fe,!0),{type:"codespan",raw:Ie[0],text:Fe}}},He.br=function(Ce){var Ie=this.rules.inline.br.exec(Ce);if(Ie)return{type:"br",raw:Ie[0]}},He.del=function(Ce){var Ie=this.rules.inline.del.exec(Ce);if(Ie)return{type:"del",raw:Ie[0],text:Ie[1]}},He.autolink=function(Ce,Ie){var Fe=this.rules.inline.autolink.exec(Ce);if(Fe){var Be,We;return Fe[2]==="@"?(Be=ee(this.options.mangle?Ie(Fe[1]):Fe[1]),We="mailto:"+Be):(Be=ee(Fe[1]),We=Be),{type:"link",raw:Fe[0],text:Be,href:We,tokens:[{type:"text",raw:Be,text:Be}]}}},He.url=function(Ce,Ie){var Fe;if(Fe=this.rules.inline.url.exec(Ce)){var Be,We;if(Fe[2]==="@")Be=ee(this.options.mangle?Ie(Fe[0]):Fe[0]),We="mailto:"+Be;else{var st;do st=Fe[0],Fe[0]=this.rules.inline._backpedal.exec(Fe[0])[0];while(st!==Fe[0]);Be=ee(Fe[0]),Fe[1]==="www."?We="http://"+Be:We=Be}return{type:"link",raw:Fe[0],text:Be,href:We,tokens:[{type:"text",raw:Be,text:Be}]}}},He.inlineText=function(Ce,Ie,Fe){var Be=this.rules.inline.text.exec(Ce);if(Be){var We;return Ie?We=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Be[0]):ee(Be[0]):Be[0]:We=ee(this.options.smartypants?Fe(Be[0]):Be[0]),{type:"text",raw:Be[0],text:We}}},it}(),ce=W.noopTest,be=W.edit,Ee=W.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=Ee({},ue),ue.gfm=Ee({},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=Ee({},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 le={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])/};le._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",le.punctuation=be(le.punctuation).replace(/punctuation/g,le._punctuation).getRegex(),le._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",le._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",le.em.start=be(le.em.start).replace(/punctuation/g,le._punctuation).getRegex(),le.em.middle=be(le.em.middle).replace(/punctuation/g,le._punctuation).replace(/overlapSkip/g,le._overlapSkip).getRegex(),le.em.endAst=be(le.em.endAst,"g").replace(/punctuation/g,le._punctuation).getRegex(),le.em.endUnd=be(le.em.endUnd,"g").replace(/punctuation/g,le._punctuation).getRegex(),le.strong.start=be(le.strong.start).replace(/punctuation/g,le._punctuation).getRegex(),le.strong.middle=be(le.strong.middle).replace(/punctuation/g,le._punctuation).replace(/blockSkip/g,le._blockSkip).getRegex(),le.strong.endAst=be(le.strong.endAst,"g").replace(/punctuation/g,le._punctuation).getRegex(),le.strong.endUnd=be(le.strong.endUnd,"g").replace(/punctuation/g,le._punctuation).getRegex(),le.blockSkip=be(le._blockSkip,"g").getRegex(),le.overlapSkip=be(le._overlapSkip,"g").getRegex(),le._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,le._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,le._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])?)+(?![-_])/,le.autolink=be(le.autolink).replace("scheme",le._scheme).replace("email",le._email).getRegex(),le._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,le.tag=be(le.tag).replace("comment",ue._comment).replace("attribute",le._attribute).getRegex(),le._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,le._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,le._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,le.link=be(le.link).replace("label",le._label).replace("href",le._href).replace("title",le._title).getRegex(),le.reflink=be(le.reflink).replace("label",le._label).getRegex(),le.reflinkSearch=be(le.reflinkSearch,"g").replace("reflink",le.reflink).replace("nolink",le.nolink).getRegex(),le.normal=Ee({},le),le.pedantic=Ee({},le.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",le._label).getRegex(),reflink:be(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",le._label).getRegex()}),le.gfm=Ee({},le.normal,{escape:be(le.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.!#$%&'*+\/=?_`{\|}~-]+@))/}),le.gfm.url=be(le.gfm.url,"i").replace("email",le.gfm._extended_email).getRegex(),le.breaks=Ee({},le.gfm,{br:be(le.br).replace("{2,}","*").getRegex(),text:be(le.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var $={block:ue,inline:le},me=O.defaults,re=$.block,ae=$.inline;function Oe(it){return it.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 se(it){var He="",Ge,Ce,Ie=it.length;for(Ge=0;Ge<Ie;Ge++)Ce=it.charCodeAt(Ge),Math.random()>.5&&(Ce="x"+Ce.toString(16)),He+="&#"+Ce+";";return He}var te=function(){function it(Ge){this.tokens=[],this.tokens.links=Object.create(null),this.options=Ge||me,this.options.tokenizer=this.options.tokenizer||new Te,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Ce={block:re.normal,inline:ae.normal};this.options.pedantic?(Ce.block=re.pedantic,Ce.inline=ae.pedantic):this.options.gfm&&(Ce.block=re.gfm,this.options.breaks?Ce.inline=ae.breaks:Ce.inline=ae.gfm),this.tokenizer.rules=Ce}it.lex=function(Ce,Ie){var Fe=new it(Ie);return Fe.lex(Ce)};var He=it.prototype;return He.lex=function(Ce){return Ce=Ce.replace(/\r\n|\r/g,`
|
|
|
`).replace(/\t/g," "),this.blockTokens(Ce,this.tokens,!0),this.inline(this.tokens),this.tokens},He.blockTokens=function(Ce,Ie,Fe){Ie===void 0&&(Ie=[]),Fe===void 0&&(Fe=!0),Ce=Ce.replace(/^ +$/gm,"");for(var Be,We,st,Dt;Ce;){if(Be=this.tokenizer.space(Ce)){Ce=Ce.substring(Be.raw.length),Be.type&&Ie.push(Be);continue}if(Be=this.tokenizer.code(Ce,Ie)){Ce=Ce.substring(Be.raw.length),Be.type?Ie.push(Be):(Dt=Ie[Ie.length-1],Dt.raw+=`
|
|
|
`+Be.raw,Dt.text+=`
|
|
|
`+Be.text);continue}if(Be=this.tokenizer.fences(Ce)){Ce=Ce.substring(Be.raw.length),Ie.push(Be);continue}if(Be=this.tokenizer.heading(Ce)){Ce=Ce.substring(Be.raw.length),Ie.push(Be);continue}if(Be=this.tokenizer.nptable(Ce)){Ce=Ce.substring(Be.raw.length),Ie.push(Be);continue}if(Be=this.tokenizer.hr(Ce)){Ce=Ce.substring(Be.raw.length),Ie.push(Be);continue}if(Be=this.tokenizer.blockquote(Ce)){Ce=Ce.substring(Be.raw.length),Be.tokens=this.blockTokens(Be.text,[],Fe),Ie.push(Be);continue}if(Be=this.tokenizer.list(Ce)){for(Ce=Ce.substring(Be.raw.length),st=Be.items.length,We=0;We<st;We++)Be.items[We].tokens=this.blockTokens(Be.items[We].text,[],!1);Ie.push(Be);continue}if(Be=this.tokenizer.html(Ce)){Ce=Ce.substring(Be.raw.length),Ie.push(Be);continue}if(Fe&&(Be=this.tokenizer.def(Ce))){Ce=Ce.substring(Be.raw.length),this.tokens.links[Be.tag]||(this.tokens.links[Be.tag]={href:Be.href,title:Be.title});continue}if(Be=this.tokenizer.table(Ce)){Ce=Ce.substring(Be.raw.length),Ie.push(Be);continue}if(Be=this.tokenizer.lheading(Ce)){Ce=Ce.substring(Be.raw.length),Ie.push(Be);continue}if(Fe&&(Be=this.tokenizer.paragraph(Ce))){Ce=Ce.substring(Be.raw.length),Ie.push(Be);continue}if(Be=this.tokenizer.text(Ce,Ie)){Ce=Ce.substring(Be.raw.length),Be.type?Ie.push(Be):(Dt=Ie[Ie.length-1],Dt.raw+=`
|
|
|
`+Be.raw,Dt.text+=`
|
|
|
`+Be.text);continue}if(Ce){var Ht="Infinite loop on byte: "+Ce.charCodeAt(0);if(this.options.silent){console.error(Ht);break}else throw new Error(Ht)}}return Ie},He.inline=function(Ce){var Ie,Fe,Be,We,st,Dt,Ht=Ce.length;for(Ie=0;Ie<Ht;Ie++){Dt=Ce[Ie];switch(Dt.type){case"paragraph":case"text":case"heading":{Dt.tokens=[],this.inlineTokens(Dt.text,Dt.tokens);break}case"table":{for(Dt.tokens={header:[],cells:[]},We=Dt.header.length,Fe=0;Fe<We;Fe++)Dt.tokens.header[Fe]=[],this.inlineTokens(Dt.header[Fe],Dt.tokens.header[Fe]);for(We=Dt.cells.length,Fe=0;Fe<We;Fe++)for(st=Dt.cells[Fe],Dt.tokens.cells[Fe]=[],Be=0;Be<st.length;Be++)Dt.tokens.cells[Fe][Be]=[],this.inlineTokens(st[Be],Dt.tokens.cells[Fe][Be]);break}case"blockquote":{this.inline(Dt.tokens);break}case"list":{for(We=Dt.items.length,Fe=0;Fe<We;Fe++)this.inline(Dt.items[Fe].tokens);break}}}return Ce},He.inlineTokens=function(Ce,Ie,Fe,Be,We){Ie===void 0&&(Ie=[]),Fe===void 0&&(Fe=!1),Be===void 0&&(Be=!1),We===void 0&&(We="");var st,Dt=Ce,Ht;if(this.tokens.links){var rn=Object.keys(this.tokens.links);if(rn.length>0)for(;(Ht=this.tokenizer.rules.inline.reflinkSearch.exec(Dt))!=null;)rn.includes(Ht[0].slice(Ht[0].lastIndexOf("[")+1,-1))&&(Dt=Dt.slice(0,Ht.index)+"["+"a".repeat(Ht[0].length-2)+"]"+Dt.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Ht=this.tokenizer.rules.inline.blockSkip.exec(Dt))!=null;)Dt=Dt.slice(0,Ht.index)+"["+"a".repeat(Ht[0].length-2)+"]"+Dt.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;Ce;){if(st=this.tokenizer.escape(Ce)){Ce=Ce.substring(st.raw.length),Ie.push(st);continue}if(st=this.tokenizer.tag(Ce,Fe,Be)){Ce=Ce.substring(st.raw.length),Fe=st.inLink,Be=st.inRawBlock,Ie.push(st);continue}if(st=this.tokenizer.link(Ce)){Ce=Ce.substring(st.raw.length),st.type==="link"&&(st.tokens=this.inlineTokens(st.text,[],!0,Be)),Ie.push(st);continue}if(st=this.tokenizer.reflink(Ce,this.tokens.links)){Ce=Ce.substring(st.raw.length),st.type==="link"&&(st.tokens=this.inlineTokens(st.text,[],!0,Be)),Ie.push(st);continue}if(st=this.tokenizer.strong(Ce,Dt,We)){Ce=Ce.substring(st.raw.length),st.tokens=this.inlineTokens(st.text,[],Fe,Be),Ie.push(st);continue}if(st=this.tokenizer.em(Ce,Dt,We)){Ce=Ce.substring(st.raw.length),st.tokens=this.inlineTokens(st.text,[],Fe,Be),Ie.push(st);continue}if(st=this.tokenizer.codespan(Ce)){Ce=Ce.substring(st.raw.length),Ie.push(st);continue}if(st=this.tokenizer.br(Ce)){Ce=Ce.substring(st.raw.length),Ie.push(st);continue}if(st=this.tokenizer.del(Ce)){Ce=Ce.substring(st.raw.length),st.tokens=this.inlineTokens(st.text,[],Fe,Be),Ie.push(st);continue}if(st=this.tokenizer.autolink(Ce,se)){Ce=Ce.substring(st.raw.length),Ie.push(st);continue}if(!Fe&&(st=this.tokenizer.url(Ce,se))){Ce=Ce.substring(st.raw.length),Ie.push(st);continue}if(st=this.tokenizer.inlineText(Ce,Be,Oe)){Ce=Ce.substring(st.raw.length),We=st.raw.slice(-1),Ie.push(st);continue}if(Ce){var Bt="Infinite loop on byte: "+Ce.charCodeAt(0);if(this.options.silent){console.error(Bt);break}else throw new Error(Bt)}}return Ie},g(it,null,[{key:"rules",get:function(){return{block:re,inline:ae}}}]),it}(),Q=O.defaults,J=W.cleanUrl,ve=W.escape,_e=function(){function it(Ge){this.options=Ge||Q}var He=it.prototype;return He.code=function(Ce,Ie,Fe){var Be=(Ie||"").match(/\S*/)[0];if(this.options.highlight){var We=this.options.highlight(Ce,Be);We!=null&&We!==Ce&&(Fe=!0,Ce=We)}return Be?'<pre><code class="'+this.options.langPrefix+ve(Be,!0)+'">'+(Fe?Ce:ve(Ce,!0))+`</code></pre>
|
|
|
`:"<pre><code>"+(Fe?Ce:ve(Ce,!0))+`</code></pre>
|
|
|
`},He.blockquote=function(Ce){return`<blockquote>
|
|
|
`+Ce+`</blockquote>
|
|
|
`},He.html=function(Ce){return Ce},He.heading=function(Ce,Ie,Fe,Be){return this.options.headerIds?"<h"+Ie+' id="'+this.options.headerPrefix+Be.slug(Fe)+'">'+Ce+"</h"+Ie+`>
|
|
|
`:"<h"+Ie+">"+Ce+"</h"+Ie+`>
|
|
|
`},He.hr=function(){return this.options.xhtml?`<hr/>
|
|
|
`:`<hr>
|
|
|
`},He.list=function(Ce,Ie,Fe){var Be=Ie?"ol":"ul",We=Ie&&Fe!==1?' start="'+Fe+'"':"";return"<"+Be+We+`>
|
|
|
`+Ce+"</"+Be+`>
|
|
|
`},He.listitem=function(Ce){return"<li>"+Ce+`</li>
|
|
|
`},He.checkbox=function(Ce){return"<input "+(Ce?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},He.paragraph=function(Ce){return"<p>"+Ce+`</p>
|
|
|
`},He.table=function(Ce,Ie){return Ie&&(Ie="<tbody>"+Ie+"</tbody>"),`<table>
|
|
|
<thead>
|
|
|
`+Ce+`</thead>
|
|
|
`+Ie+`</table>
|
|
|
`},He.tablerow=function(Ce){return`<tr>
|
|
|
`+Ce+`</tr>
|
|
|
`},He.tablecell=function(Ce,Ie){var Fe=Ie.header?"th":"td",Be=Ie.align?"<"+Fe+' align="'+Ie.align+'">':"<"+Fe+">";return Be+Ce+"</"+Fe+`>
|
|
|
`},He.strong=function(Ce){return"<strong>"+Ce+"</strong>"},He.em=function(Ce){return"<em>"+Ce+"</em>"},He.codespan=function(Ce){return"<code>"+Ce+"</code>"},He.br=function(){return this.options.xhtml?"<br/>":"<br>"},He.del=function(Ce){return"<del>"+Ce+"</del>"},He.link=function(Ce,Ie,Fe){if(Ce=J(this.options.sanitize,this.options.baseUrl,Ce),Ce===null)return Fe;var Be='<a href="'+ve(Ce)+'"';return Ie&&(Be+=' title="'+Ie+'"'),Be+=">"+Fe+"</a>",Be},He.image=function(Ce,Ie,Fe){if(Ce=J(this.options.sanitize,this.options.baseUrl,Ce),Ce===null)return Fe;var Be='<img src="'+Ce+'" alt="'+Fe+'"';return Ie&&(Be+=' title="'+Ie+'"'),Be+=this.options.xhtml?"/>":">",Be},He.text=function(Ce){return Ce},it}(),Ae=function(){function it(){}var He=it.prototype;return He.strong=function(Ce){return Ce},He.em=function(Ce){return Ce},He.codespan=function(Ce){return Ce},He.del=function(Ce){return Ce},He.html=function(Ce){return Ce},He.text=function(Ce){return Ce},He.link=function(Ce,Ie,Fe){return""+Fe},He.image=function(Ce,Ie,Fe){return""+Fe},He.br=function(){return""},it}(),Qe=function(){function it(){this.seen={}}var He=it.prototype;return He.slug=function(Ce){var Ie=Ce.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(Ie)){var Fe=Ie;do this.seen[Fe]++,Ie=Fe+"-"+this.seen[Fe];while(this.seen.hasOwnProperty(Ie))}return this.seen[Ie]=0,Ie},it}(),tt=O.defaults,dt=W.unescape,mt=function(){function it(Ge){this.options=Ge||tt,this.options.renderer=this.options.renderer||new _e,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ae,this.slugger=new Qe}it.parse=function(Ce,Ie){var Fe=new it(Ie);return Fe.parse(Ce)};var He=it.prototype;return He.parse=function(Ce,Ie){Ie===void 0&&(Ie=!0);var Fe="",Be,We,st,Dt,Ht,rn,Bt,Ct,Ke,et,at,Pe,Xe,ht,Et,Ot,Mt,lt,Ft=Ce.length;for(Be=0;Be<Ft;Be++){et=Ce[Be];switch(et.type){case"space":continue;case"hr":{Fe+=this.renderer.hr();continue}case"heading":{Fe+=this.renderer.heading(this.parseInline(et.tokens),et.depth,dt(this.parseInline(et.tokens,this.textRenderer)),this.slugger);continue}case"code":{Fe+=this.renderer.code(et.text,et.lang,et.escaped);continue}case"table":{for(Ct="",Bt="",Dt=et.header.length,We=0;We<Dt;We++)Bt+=this.renderer.tablecell(this.parseInline(et.tokens.header[We]),{header:!0,align:et.align[We]});for(Ct+=this.renderer.tablerow(Bt),Ke="",Dt=et.cells.length,We=0;We<Dt;We++){for(rn=et.tokens.cells[We],Bt="",Ht=rn.length,st=0;st<Ht;st++)Bt+=this.renderer.tablecell(this.parseInline(rn[st]),{header:!1,align:et.align[st]});Ke+=this.renderer.tablerow(Bt)}Fe+=this.renderer.table(Ct,Ke);continue}case"blockquote":{Ke=this.parse(et.tokens),Fe+=this.renderer.blockquote(Ke);continue}case"list":{for(at=et.ordered,Pe=et.start,Xe=et.loose,Dt=et.items.length,Ke="",We=0;We<Dt;We++)Et=et.items[We],Ot=Et.checked,Mt=Et.task,ht="",Et.task&&(lt=this.renderer.checkbox(Ot),Xe?Et.tokens.length>0&&Et.tokens[0].type==="text"?(Et.tokens[0].text=lt+" "+Et.tokens[0].text,Et.tokens[0].tokens&&Et.tokens[0].tokens.length>0&&Et.tokens[0].tokens[0].type==="text"&&(Et.tokens[0].tokens[0].text=lt+" "+Et.tokens[0].tokens[0].text)):Et.tokens.unshift({type:"text",text:lt}):ht+=lt),ht+=this.parse(Et.tokens,Xe),Ke+=this.renderer.listitem(ht,Mt,Ot);Fe+=this.renderer.list(Ke,at,Pe);continue}case"html":{Fe+=this.renderer.html(et.text);continue}case"paragraph":{Fe+=this.renderer.paragraph(this.parseInline(et.tokens));continue}case"text":{for(Ke=et.tokens?this.parseInline(et.tokens):et.text;Be+1<Ft&&Ce[Be+1].type==="text";)et=Ce[++Be],Ke+=`
|
|
|
`+(et.tokens?this.parseInline(et.tokens):et.text);Fe+=Ie?this.renderer.paragraph(Ke):Ke;continue}default:{var Lt='Token with "'+et.type+'" type was not found.';if(this.options.silent){console.error(Lt);return}else throw new Error(Lt)}}}return Fe},He.parseInline=function(Ce,Ie){Ie=Ie||this.renderer;var Fe="",Be,We,st=Ce.length;for(Be=0;Be<st;Be++){We=Ce[Be];switch(We.type){case"escape":{Fe+=Ie.text(We.text);break}case"html":{Fe+=Ie.html(We.text);break}case"link":{Fe+=Ie.link(We.href,We.title,this.parseInline(We.tokens,Ie));break}case"image":{Fe+=Ie.image(We.href,We.title,We.text);break}case"strong":{Fe+=Ie.strong(this.parseInline(We.tokens,Ie));break}case"em":{Fe+=Ie.em(this.parseInline(We.tokens,Ie));break}case"codespan":{Fe+=Ie.codespan(We.text);break}case"br":{Fe+=Ie.br();break}case"del":{Fe+=Ie.del(this.parseInline(We.tokens,Ie));break}case"text":{Fe+=Ie.text(We.text);break}default:{var Dt='Token with "'+We.type+'" type was not found.';if(this.options.silent){console.error(Dt);return}else throw new Error(Dt)}}}return Fe},it}(),vt=W.merge,yt=W.checkSanitizeDeprecation,Ye=W.escape,Ue=O.getDefaults,ft=O.changeDefaults,jt=O.defaults;function bt(it,He,Ge){if(typeof it=="undefined"||it===null)throw new Error("marked(): input parameter is undefined or null");if(typeof it!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(it)+", string expected");if(typeof He=="function"&&(Ge=He,He=null),He=vt({},bt.defaults,He||{}),yt(He),Ge){var Ce=He.highlight,Ie;try{Ie=te.lex(it,He)}catch(st){return Ge(st)}var Fe=function(Dt){var Ht;if(!Dt)try{Ht=mt.parse(Ie,He)}catch(rn){Dt=rn}return He.highlight=Ce,Dt?Ge(Dt):Ge(null,Ht)};if(!Ce||Ce.length<3)return Fe();if(delete He.highlight,!Ie.length)return Fe();var Be=0;bt.walkTokens(Ie,function(st){st.type==="code"&&(Be++,setTimeout(function(){Ce(st.text,st.lang,function(Dt,Ht){if(Dt)return Fe(Dt);Ht!=null&&Ht!==st.text&&(st.text=Ht,st.escaped=!0),Be--,Be===0&&Fe()})},0))}),Be===0&&Fe();return}try{var We=te.lex(it,He);return He.walkTokens&&bt.walkTokens(We,He.walkTokens),mt.parse(We,He)}catch(st){if(st.message+=`
|
|
|
Please report this to https://github.com/markedjs/marked.`,He.silent)return"<p>An error occurred:</p><pre>"+Ye(st.message+"",!0)+"</pre>";throw st}}bt.options=bt.setOptions=function(it){return vt(bt.defaults,it),ft(bt.defaults),bt},bt.getDefaults=Ue,bt.defaults=jt,bt.use=function(it){var He=vt({},it);if(it.renderer&&function(){var Ce=bt.defaults.renderer||new _e,Ie=function(We){var st=Ce[We];Ce[We]=function(){for(var Dt=arguments.length,Ht=new Array(Dt),rn=0;rn<Dt;rn++)Ht[rn]=arguments[rn];var Bt=it.renderer[We].apply(Ce,Ht);return Bt===!1&&(Bt=st.apply(Ce,Ht)),Bt}};for(var Fe in it.renderer)Ie(Fe);He.renderer=Ce}(),it.tokenizer&&function(){var Ce=bt.defaults.tokenizer||new Te,Ie=function(We){var st=Ce[We];Ce[We]=function(){for(var Dt=arguments.length,Ht=new Array(Dt),rn=0;rn<Dt;rn++)Ht[rn]=arguments[rn];var Bt=it.tokenizer[We].apply(Ce,Ht);return Bt===!1&&(Bt=st.apply(Ce,Ht)),Bt}};for(var Fe in it.tokenizer)Ie(Fe);He.tokenizer=Ce}(),it.walkTokens){var Ge=bt.defaults.walkTokens;He.walkTokens=function(Ce){it.walkTokens(Ce),Ge&&Ge(Ce)}}bt.setOptions(He)},bt.walkTokens=function(it,He){for(var Ge=y(it),Ce;!(Ce=Ge()).done;){var Ie=Ce.value;He(Ie);switch(Ie.type){case"table":{for(var Fe=y(Ie.tokens.header),Be;!(Be=Fe()).done;){var We=Be.value;bt.walkTokens(We,He)}for(var st=y(Ie.tokens.cells),Dt;!(Dt=st()).done;)for(var Ht=Dt.value,rn=y(Ht),Bt;!(Bt=rn()).done;){var Ct=Bt.value;bt.walkTokens(Ct,He)}break}case"list":{bt.walkTokens(Ie.items,He);break}default:Ie.tokens&&bt.walkTokens(Ie.tokens,He)}}},bt.Parser=mt,bt.parser=mt.parse,bt.Renderer=_e,bt.TextRenderer=Ae,bt.Lexer=te,bt.lexer=te.lex,bt.Tokenizer=Te,bt.Slugger=Qe,bt.parse=bt;var Pt=bt;return Pt})},E4JC:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(P){return function(){var g=P,T=g.lib,b=T.StreamCipher,y=g.algo,x=[],O=[],m=[],e=y.Rabbit=b.extend({_doReset:function(){for(var a=this._key.words,u=this.cfg.iv,r=0;r<4;r++)a[r]=(a[r]<<8|a[r]>>>24)&16711935|(a[r]<<24|a[r]>>>8)&4278255360;var i=this._X=[a[0],a[3]<<16|a[2]>>>16,a[1],a[0]<<16|a[3]>>>16,a[2],a[1]<<16|a[0]>>>16,a[3],a[2]<<16|a[1]>>>16],n=this._C=[a[2]<<16|a[2]>>>16,a[0]&4294901760|a[1]&65535,a[3]<<16|a[3]>>>16,a[1]&4294901760|a[2]&65535,a[0]<<16|a[0]>>>16,a[2]&4294901760|a[3]&65535,a[1]<<16|a[1]>>>16,a[3]&4294901760|a[0]&65535];this._b=0;for(var r=0;r<4;r++)f.call(this);for(var r=0;r<8;r++)n[r]^=i[r+4&7];if(u){var l=u.words,h=l[0],d=l[1],s=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,c=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,w=s>>>16|c&4294901760,E=c<<16|s&65535;n[0]^=s,n[1]^=w,n[2]^=c,n[3]^=E,n[4]^=s,n[5]^=w,n[6]^=c,n[7]^=E;for(var r=0;r<4;r++)f.call(this)}},_doProcessBlock:function(a,u){var r=this._X;f.call(this),x[0]=r[0]^r[5]>>>16^r[3]<<16,x[1]=r[2]^r[7]>>>16^r[5]<<16,x[2]=r[4]^r[1]>>>16^r[7]<<16,x[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)x[i]=(x[i]<<8|x[i]>>>24)&16711935|(x[i]<<24|x[i]>>>8)&4278255360,a[u+i]^=x[i]},blockSize:128/32,ivSize:64/32});function f(){for(var a=this._X,u=this._C,r=0;r<8;r++)O[r]=u[r];u[0]=u[0]+1295307597+this._b|0,u[1]=u[1]+3545052371+(u[0]>>>0<O[0]>>>0?1:0)|0,u[2]=u[2]+886263092+(u[1]>>>0<O[1]>>>0?1:0)|0,u[3]=u[3]+1295307597+(u[2]>>>0<O[2]>>>0?1:0)|0,u[4]=u[4]+3545052371+(u[3]>>>0<O[3]>>>0?1:0)|0,u[5]=u[5]+886263092+(u[4]>>>0<O[4]>>>0?1:0)|0,u[6]=u[6]+1295307597+(u[5]>>>0<O[5]>>>0?1:0)|0,u[7]=u[7]+3545052371+(u[6]>>>0<O[6]>>>0?1:0)|0,this._b=u[7]>>>0<O[7]>>>0?1:0;for(var r=0;r<8;r++){var i=a[r]+u[r],n=i&65535,l=i>>>16,h=((n*n>>>17)+n*l>>>15)+l*l,d=((i&4294901760)*i|0)+((i&65535)*i|0);m[r]=h^d}a[0]=m[0]+(m[7]<<16|m[7]>>>16)+(m[6]<<16|m[6]>>>16)|0,a[1]=m[1]+(m[0]<<8|m[0]>>>24)+m[7]|0,a[2]=m[2]+(m[1]<<16|m[1]>>>16)+(m[0]<<16|m[0]>>>16)|0,a[3]=m[3]+(m[2]<<8|m[2]>>>24)+m[1]|0,a[4]=m[4]+(m[3]<<16|m[3]>>>16)+(m[2]<<16|m[2]>>>16)|0,a[5]=m[5]+(m[4]<<8|m[4]>>>24)+m[3]|0,a[6]=m[6]+(m[5]<<16|m[5]>>>16)+(m[4]<<16|m[4]>>>16)|0,a[7]=m[7]+(m[6]<<8|m[6]>>>24)+m[5]|0}g.Rabbit=b._createHelper(e)}(),P.Rabbit})},E7E6:function(k,z){k.exports="data:image/png;base64,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"},E9nw:function(k,z){k.exports=function(){var o=document.getSelection();if(!o.rangeCount)return function(){};for(var P=document.activeElement,g=[],T=0;T<o.rangeCount;T++)g.push(o.getRangeAt(T));switch(P.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":P.blur();break;default:P=null;break}return o.removeAllRanges(),function(){o.type==="Caret"&&o.removeAllRanges(),o.rangeCount||g.forEach(function(b){o.addRange(b)}),P&&P.focus()}}},EGTK:function(k,z,o){"use strict";var P=o("R9oj"),g=o("ECub"),T=o("T2oS"),b=o("W9HT"),y=o("5NDa"),x=o("5rEg"),O=o("k1fw"),m=o("9og8"),e=o("tJVT"),f=o("WmNS"),a=o.n(f),u=o("q1tI"),r=o.n(u),i=o("TSYQ"),n=o.n(i),l=o("dGDm"),h=o.n(l),d=o("Lai7"),s=o.n(d),c=o("ErOA"),w=o("LvDl"),E=o.n(w),v=function(C){var S=C.className,_=C.dispatch,A=C.skin,U=A===void 0?"white":A,L=C.value,N=L===void 0?null:L,V=C.loading,H=V===void 0?!1:V,D=C.data,W=D===void 0?[]:D,F=C.otherData,I=F===void 0?[]:F,K=C.tags,ee=K===void 0?[]:K,he=C.onChange,de=he===void 0?function(){}:he,Se=Object(u.useState)(""),Te=Object(e.a)(Se,2),ce=Te[0],be=Te[1],Ee=Object(u.useState)(!1),ue=Object(e.a)(Ee,2),le=ue[0],$=ue[1],me=Object(u.useState)([]),re=Object(e.a)(me,2),ae=re[0],Oe=re[1],se=Object(u.useState)(0),te=Object(e.a)(se,2),Q=te[0],J=te[1],ve=Object(u.useRef)(null),_e=Object(u.useRef)(String(Math.floor(Math.random()*1e6))).current,Ae=Object(u.useRef)(),Qe=Object(u.useRef)(null),tt=Object(u.useRef)(0),dt=Object(u.useRef)([]);Object(u.useEffect)(function(){return window.addEventListener("keydown",mt),function(){window.removeEventListener("keydown",mt)}},[ce,le,ae]);var mt=function(We){if(!le||We.keyCode!==40&&We.keyCode!==38)return;var st=0;We.keyCode===40&&le&&(Q<ae.length-1?st=Q+1:st=0,console.log("\u4E0B"),Ue(st,"down")),We.keyCode===38&&le&&(Q===0?st=ae.length-1:st=Q-1,Ue(st,"up")),J(st),yt(ce,st,!0)},vt=function(We,st){var Dt=function(Bt){var Ct=/[\^\.\\\|\(\)\*\+\-\$\[\]\?]/g,Ke={};return Ke["^"]="\\^",Ke["."]="\\.",Ke["\\"]="\\\\",Ke["|"]="\\|",Ke["("]="\\(",Ke[")"]="\\)",Ke["*"]="\\*",Ke["+"]="\\+",Ke["-"]="\\-",Ke.$="$",Ke["["]="\\[",Ke["]"]="\\]",Ke["?"]="\\?",Bt=Bt.replace(Ct,function(et){return Ke[et]}),Bt},Ht=new RegExp(Dt(st),"gi");return We=We.replace(Ht,function(rn){return"<span style='color:#0152d9;'>"+rn+"</span>"}),We},yt=function(){var Be=Object(m.a)(a.a.mark(function We(st,Dt,Ht){var rn,Bt,Ct;return a.a.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:if(rn=tt.current+1,tt.current=rn,Bt=function(Pe){var Xe=Pe==null?void 0:Pe.map(function(ht,Et){var Ot=ht.id,Mt=ht.name,lt=Object(O.a)(Object(O.a)({},ht),{},{label:r.a.createElement("ul",{id:"search-".concat(_e,"-").concat(Et),onClick:function(){return bt(Ot,lt)},className:Et===Dt?h.a.searchListActive:h.a.searchList},r.a.createElement("li",{className:h.a.name,dangerouslySetInnerHTML:{__html:vt(Mt,st)}}),ht.private&&r.a.createElement("li",{className:h.a.tag},"\u79C1\u6709"))});return lt});return Xe},!Ht){et.next=7;break}return Ct=Bt(dt.current),Oe(Ct),et.abrupt("return");case 7:clearTimeout(Qe.current),Qe.current=setTimeout(Object(m.a)(a.a.mark(function at(){var Pe,Xe,ht,Et;return a.a.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return Mt.next=2,Object(c.a)("/api/shixuns/search_image.json",{method:"get",params:{keywords:st,page:1,limit:1e5}});case 2:Pe=Mt.sent,(Pe==null?void 0:Pe.status)===0&&(ht=Bt((Pe==null||((Xe=Pe.data)===null||Xe===void 0)?void 0:Xe.mirrors)||[]),rn===tt.current&&(Oe(ht),dt.current=Object(w.cloneDeep)((Pe==null||((Et=Pe.data)===null||Et===void 0)?void 0:Et.mirrors)||[])));case 4:case"end":return Mt.stop()}},at)})),300);case 9:case"end":return et.stop()}},We)}));return function(st,Dt,Ht){return Be.apply(this,arguments)}}(),Ye=function(We){var st=document.getElementById("scroll-".concat(_e,"-").concat(We));if(!st)return;var Dt=document.getElementById("scroll-".concat(_e));Dt.scrollTo(0,st.offsetTop)},Ue=function(We,st){var Dt=document.getElementById("search-".concat(_e,"-").concat(We));if(!Dt)return;var Ht=document.getElementById("search-".concat(_e)),rn=Dt.offsetTop-Ht.scrollTop>0&&Dt.offsetTop-Ht.scrollTop<Ht.clientHeight;if(rn)return;st==="down"?Ht.scrollTo(0,Dt.offsetTop-Ht.clientHeight+Dt.clientHeight):Ht.scrollTo(0,Dt.offsetTop)},ft=function(We){yt(We,0),be(We)},jt=function(We){var st,Dt;if(!ae.length)return;var Ht=ae==null||((st=ae[Q])===null||st===void 0)?void 0:st.id;de(Ht),Oe([]),J(0),be(ae==null||((Dt=ae[Q])===null||Dt===void 0)?void 0:Dt.name),Ye(Ht),Ae.current.blur()},bt=function(We,st){de(We),Oe([]),J(0),be(st==null?void 0:st.name),Ye(We)},Pt=function(){Oe([]),be("")},it=function(We){de(We),Oe([]),be("")},He=function(){return ce===""?r.a.createElement("i",{style:{pointerEvents:"none"},className:"iconfont icon-sousuo2 c-grey-c"}):r.a.createElement("i",{onClick:Pt,className:"iconfont icon-shanchu4 c-grey-c"})},Ge=function(){_({type:"newShixuns/setActionTabs",payload:{key:"NewShixuns-Apply"}})},Ce=function(){_({type:"newShixuns/setActionTabs",payload:{key:"Create-Environment"}})},Ie=function(){ve.current=setTimeout(function(){$(!1),J(0)},200)},Fe=!(W!=null&&W.length)&&!(I!=null&&I.length);return r.a.createElement("div",{className:n()(U==="night"?h.a.darklySelectEnvironment:h.a.selectEnvironment,S)},!Fe&&r.a.createElement("div",{className:h.a.search},r.a.createElement(x.a,{suffix:He(),bordered:!1,ref:Ae,value:ce,onKeyDown:function(We){(We.keyCode===40||We.keyCode===38)&&We.preventDefault()},size:"large",onFocus:function(){clearTimeout(ve.current),ft(ce),$(!0)},onBlur:Ie,onChange:function(We){return ft(We.target.value)},placeholder:"\u641C\u7D22\u60A8\u9700\u8981\u7684\u5B9E\u9A8C\u73AF\u5883",onPressEnter:jt}),le&&r.a.createElement("div",{id:"search-".concat(_e),className:h.a.searchListWrap},ae.map(function(Be,We){return r.a.createElement(r.a.Fragment,{key:We}," ",Be.label)}))),H?r.a.createElement(b.a,{className:h.a.spin}):r.a.createElement(r.a.Fragment,null,Fe&&r.a.createElement(g.a,{style:{margin:"60px 0"},image:s.a,description:r.a.createElement("span",{className:"c-grey-999"},"\u6682\u65E0\u5B9E\u9A8C\u73AF\u5883")}),!!ee.length&&r.a.createElement("aside",{className:h.a.common},r.a.createElement("div",{className:h.a.title},"\u63A8\u8350\u73AF\u5883:"),r.a.createElement("ul",{className:h.a.tags},ee.map(function(Be,We){return r.a.createElement("li",{key:We,onClick:function(){return it(Be.id)},className:N===Be.id?"".concat(h.a.tag," ").concat(h.a.tagActive):h.a.tag},Be.name)}))),r.a.createElement("aside",{className:h.a.wrap,id:"scroll-".concat(_e)},W.map(function(Be,We){var st;return Be!=null&&(st=Be.image)!==null&&st!==void 0&&st.length?r.a.createElement(R,{key:We,data:Be,id:N,handleClick:function(Ht){return it(Ht)}}):null}),r.a.createElement("ul",{className:h.a.allList},I.map(function(Be){return r.a.createElement("li",{key:"key-".concat(Be.id),id:"scroll-".concat(_e,"-").concat(Be.id),className:Be.id===N?"".concat(h.a.item," ").concat(h.a.itemActive):h.a.item,onClick:function(){return de(Be.id)}},r.a.createElement("div",{className:h.a.name},Be.name),Be.private&&r.a.createElement("div",{className:h.a.tag},"\u79C1\u6709"))})))),r.a.createElement("div",{className:h.a.apply},r.a.createElement("span",{className:h.a.p1},"\u6CA1\u6709\u5B9E\u9A8C\u73AF\u5883\uFF1F"),r.a.createElement("span",{className:h.a.p2,onClick:Ge}," ","\u7533\u8BF7\u65B0\u5EFA"),r.a.createElement("span",{className:h.a.p2,onClick:Ce}," ","\u5728\u7EBF\u521B\u5EFA")))},R=function(C){var S=C.data,_=C.id,A=C.handleClick,U=Object(u.useState)(!0),L=Object(e.a)(U,2),N=L[0],V=L[1],H=S.name,D=S.image;return r.a.createElement("div",{className:h.a.list},r.a.createElement("header",{onClick:function(){return V(!N)}},r.a.createElement("div",{className:h.a.title},H),r.a.createElement("i",{style:{transition:"0.5s",transform:N?"rotate(0deg)":"rotate(180deg)"},className:"iconfont icon-shangjiantou c-grey-999"})),r.a.createElement("ul",{className:h.a.items,style:{height:N?"auto":0}},D.map(function(W){return r.a.createElement("li",{key:W.id,className:W.id===_?"".concat(h.a.item," ").concat(h.a.itemActive):h.a.item,onClick:function(){return A(W.id)}},r.a.createElement("div",{className:h.a.name},W.name),W.private&&r.a.createElement("div",{className:h.a.tag},"\u79C1\u6709"))}),r.a.createElement("li",{className:h.a.line})))};z.a=v},ELLl:function(k,z,o){(function(P){P(o("VrN/"))})(function(P){var g={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},T=P.Pos;P.defineOption("autoCloseBrackets",!1,function(n,l,h){h&&h!=P.Init&&(n.removeKeyMap(y),n.state.closeBrackets=null),l&&(x(b(l,"pairs")),n.state.closeBrackets=l,n.addKeyMap(y))});function b(n,l){return l=="pairs"&&typeof n=="string"?n:typeof n=="object"&&n[l]!=null?n[l]:g[l]}var y={Backspace:e,Enter:f};function x(n){for(var l=0;l<n.length;l++){var h=n.charAt(l),d="'"+h+"'";y[d]||(y[d]=O(h))}}x(g.pairs+"`");function O(n){return function(l){return u(l,n)}}function m(n){var l=n.state.closeBrackets;if(!l||l.override)return l;var h=n.getModeAt(n.getCursor());return h.closeBrackets||l}function e(n){var l=m(n);if(!l||n.getOption("disableInput"))return P.Pass;for(var h=b(l,"pairs"),d=n.listSelections(),s=0;s<d.length;s++){if(!d[s].empty())return P.Pass;var c=r(n,d[s].head);if(!c||h.indexOf(c)%2!=0)return P.Pass}for(var s=d.length-1;s>=0;s--){var w=d[s].head;n.replaceRange("",T(w.line,w.ch-1),T(w.line,w.ch+1),"+delete")}}function f(n){var l=m(n),h=l&&b(l,"explode");if(!h||n.getOption("disableInput"))return P.Pass;for(var d=n.listSelections(),s=0;s<d.length;s++){if(!d[s].empty())return P.Pass;var c=r(n,d[s].head);if(!c||h.indexOf(c)%2!=0)return P.Pass}n.operation(function(){var w=n.lineSeparator()||`
|
|
|
`;n.replaceSelection(w+w,null),n.execCommand("goCharLeft"),d=n.listSelections();for(var E=0;E<d.length;E++){var v=d[E].head.line;n.indentLine(v,null,!0),n.indentLine(v+1,null,!0)}})}function a(n){var l=P.cmpPos(n.anchor,n.head)>0;return{anchor:new T(n.anchor.line,n.anchor.ch+(l?-1:1)),head:new T(n.head.line,n.head.ch+(l?1:-1))}}function u(n,l){var h=m(n);if(!h||n.getOption("disableInput"))return P.Pass;var d=b(h,"pairs"),s=d.indexOf(l);if(s==-1)return P.Pass;for(var c=b(h,"closeBefore"),w=b(h,"triples"),E=d.charAt(s+1)==l,v=n.listSelections(),R=s%2==0,M,C=0;C<v.length;C++){var S=v[C],_=S.head,A,U=n.getRange(_,T(_.line,_.ch+1));if(R&&!S.empty())A="surround";else if((E||!R)&&U==l)E&&i(n,_)?A="both":w.indexOf(l)>=0&&n.getRange(_,T(_.line,_.ch+3))==l+l+l?A="skipThree":A="skip";else if(E&&_.ch>1&&w.indexOf(l)>=0&&n.getRange(T(_.line,_.ch-2),_)==l+l){if(_.ch>2&&/\bstring/.test(n.getTokenTypeAt(T(_.line,_.ch-2))))return P.Pass;A="addFour"}else if(E){var L=_.ch==0?" ":n.getRange(T(_.line,_.ch-1),_);if(!P.isWordChar(U)&&L!=l&&!P.isWordChar(L))A="both";else return P.Pass}else if(R&&(U.length===0||/\s/.test(U)||c.indexOf(U)>-1))A="both";else return P.Pass;if(!M)M=A;else if(M!=A)return P.Pass}var N=s%2?d.charAt(s-1):l,V=s%2?l:d.charAt(s+1);n.operation(function(){if(M=="skip")n.execCommand("goCharRight");else if(M=="skipThree")for(var H=0;H<3;H++)n.execCommand("goCharRight");else if(M=="surround"){for(var D=n.getSelections(),H=0;H<D.length;H++)D[H]=N+D[H]+V;n.replaceSelections(D,"around"),D=n.listSelections().slice();for(var H=0;H<D.length;H++)D[H]=a(D[H]);n.setSelections(D)}else M=="both"?(n.replaceSelection(N+V,null),n.triggerElectric(N+V),n.execCommand("goCharLeft")):M=="addFour"&&(n.replaceSelection(N+N+N+N,"before"),n.execCommand("goCharRight"))})}function r(n,l){var h=n.getRange(T(l.line,l.ch-1),T(l.line,l.ch+1));return h.length==2?h:null}function i(n,l){var h=n.getTokenAt(T(l.line,l.ch+1));return/\bstring/.test(h.type)&&h.start==l.ch&&(l.ch==0||!/\bstring/.test(n.getTokenTypeAt(l)))}})},ELcG:function(k,z,o){(function(P,g){k.exports=z=g(o("Ib8C"))})(this,function(P){/** @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 T=P,b=T.lib,y=b.WordArray,x=b.Hasher,O=T.algo,m=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]),e=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]),f=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]),a=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]),r=y.create([1352829926,1548603684,1836072691,2053994217,0]),i=O.RIPEMD160=x.extend({_doReset:function(){this._hash=y.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(w,E){for(var v=0;v<16;v++){var R=E+v,M=w[R];w[R]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360}var C=this._hash.words,S=u.words,_=r.words,A=m.words,U=e.words,L=f.words,N=a.words,V,H,D,W,F,I,K,ee,he,de;I=V=C[0],K=H=C[1],ee=D=C[2],he=W=C[3],de=F=C[4];for(var Se,v=0;v<80;v+=1)Se=V+w[E+A[v]]|0,v<16?Se+=n(H,D,W)+S[0]:v<32?Se+=l(H,D,W)+S[1]:v<48?Se+=h(H,D,W)+S[2]:v<64?Se+=d(H,D,W)+S[3]:Se+=s(H,D,W)+S[4],Se=Se|0,Se=c(Se,L[v]),Se=Se+F|0,V=F,F=W,W=c(D,10),D=H,H=Se,Se=I+w[E+U[v]]|0,v<16?Se+=s(K,ee,he)+_[0]:v<32?Se+=d(K,ee,he)+_[1]:v<48?Se+=h(K,ee,he)+_[2]:v<64?Se+=l(K,ee,he)+_[3]:Se+=n(K,ee,he)+_[4],Se=Se|0,Se=c(Se,N[v]),Se=Se+de|0,I=de,de=he,he=c(ee,10),ee=K,K=Se;Se=C[1]+D+he|0,C[1]=C[2]+W+de|0,C[2]=C[3]+F+I|0,C[3]=C[4]+V+K|0,C[4]=C[0]+H+ee|0,C[0]=Se},_doFinalize:function(){var w=this._data,E=w.words,v=this._nDataBytes*8,R=w.sigBytes*8;E[R>>>5]|=128<<24-R%32,E[(R+64>>>9<<4)+14]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,w.sigBytes=(E.length+1)*4,this._process();for(var M=this._hash,C=M.words,S=0;S<5;S++){var _=C[S];C[S]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}return M},clone:function(){var w=x.clone.call(this);return w._hash=this._hash.clone(),w}});function n(w,E,v){return w^E^v}function l(w,E,v){return w&E|~w&v}function h(w,E,v){return(w|~E)^v}function d(w,E,v){return w&v|E&~v}function s(w,E,v){return w^(E|~v)}function c(w,E){return w<<E|w>>>32-E}T.RIPEMD160=x._createHelper(i),T.HmacRIPEMD160=x._createHmacHelper(i)}(Math),P.RIPEMD160})},ETIr:function(k,z,o){(function(P,g){k.exports=z=g(o("Ib8C"))})(this,function(P){return function(){var g=P,T=g.lib,b=T.WordArray,y=g.enc,x=y.Base64={stringify:function(m){var e=m.words,f=m.sigBytes,a=this._map;m.clamp();for(var u=[],r=0;r<f;r+=3)for(var i=e[r>>>2]>>>24-r%4*8&255,n=e[r+1>>>2]>>>24-(r+1)%4*8&255,l=e[r+2>>>2]>>>24-(r+2)%4*8&255,h=i<<16|n<<8|l,d=0;d<4&&r+d*.75<f;d++)u.push(a.charAt(h>>>6*(3-d)&63));var s=a.charAt(64);if(s)for(;u.length%4;)u.push(s);return u.join("")},parse:function(m){var e=m.length,f=this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var u=0;u<f.length;u++)a[f.charCodeAt(u)]=u}var r=f.charAt(64);if(r){var i=m.indexOf(r);i!==-1&&(e=i)}return O(m,e,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function O(m,e,f){for(var a=[],u=0,r=0;r<e;r++)if(r%4){var i=f[m.charCodeAt(r-1)]<<r%4*2,n=f[m.charCodeAt(r)]>>>6-r%4*2,l=i|n;a[u>>>2]|=l<<24-u%4*8,u++}return b.create(a,u)}}(),P.enc.Base64})},EkPF:function(k,z,o){k.exports={practiceSetting:"practiceSetting___2ttNt",wrapHeader:"wrapHeader___2dgOY",wrapLayout:"wrapLayout___3zol1",wrapSidebar:"wrapSidebar___3imKs",wrapContent:"wrapContent___3L8H_"}},"F+F2":function(k,z,o){(function(P,g){k.exports=z=g(o("Ib8C"))})(this,function(P){return function(){if(typeof ArrayBuffer!="function")return;var g=P,T=g.lib,b=T.WordArray,y=b.init,x=b.init=function(O){if(O instanceof ArrayBuffer&&(O=new Uint8Array(O)),(O instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&O instanceof Uint8ClampedArray||O instanceof Int16Array||O instanceof Uint16Array||O instanceof Int32Array||O instanceof Uint32Array||O instanceof Float32Array||O instanceof Float64Array)&&(O=new Uint8Array(O.buffer,O.byteOffset,O.byteLength)),O instanceof Uint8Array){for(var m=O.byteLength,e=[],f=0;f<m;f++)e[f>>>2]|=O[f]<<24-f%4*8;y.call(this,e,m)}else y.apply(this,arguments)};x.prototype=b}(),P.lib.WordArray})},FOrL:function(k,z,o){k.exports=o.p+"static/nodata.a6b3f948.png"},FPkq:function(k,z,o){k.exports=o.p+"static/qrCode.dd0fe9b2.png"},FTkQ:function(k,z){k.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABjUlEQVQ4T61VsUoDQRB9s+eVYifkUlqIWCW3sbBMqYUR0cbfUPETxPgZ2giigpZaCnKXpBK1sMydpIx25+7ISu5ILhsjclvuzLx5M292lmA57PtuF2gIYIMBSYBn3BiICAg1cF0GrqjVSvLhlL+IqtVNEDUZWLAlS+8IeAPzvtduXw77ZYAMiEjKI2LeY2AskQ2cAGaiEy8MDwnQxicL7Ep5bDL+xmqijahZDsODDHBQ5sVfmVn6xmDeMuWTESAGnqf1bBpz09MSsESx729r4DwfIIA6hPjUSt2AaP7Hztwj5nXHdd0vpR7yMQzsUOT7pwzsjgEKsVIKgiCu1Za1UvfGLhynXgqCp6hSkSxEYCn9jLq+/wJgcawk5l4KYECN3YBlCVLWo4GvhmGfgVlrj4ZAjX0KmBmZD8Owj4IAMQAsvGSrKKR1zet0QpsosZQrmvnRKsqksZlxnFWVJAkT3Y6MDbAmgDlFdGcdm8IH22Qp9OmltAtdDoPlWez6SpkWtmCHFTNCvQMN/scX8A1e4fnIOEHt8AAAAABJRU5ErkJggg=="},FWmy:function(k,z,o){"use strict";o.d(z,"a",function(){return P});function P(g,T){if(!g)throw new Error(T?`Assertion failed (${T})`:"Assertion Failed")}},Fhpe:function(k,z,o){k.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(k,z,o){"use strict";var P=o("+L6B"),g=o("2/Rp"),T=o("DZo9"),b=o("8z0m"),y=o("miYZ"),x=o("tsqr"),O=o("9og8"),m=o("2qtc"),e=o("kLXV"),f=o("y8nQ"),a=o("Vl3Y"),u=o("tJVT"),r=o("PpiC"),i=o("5NDa"),n=o("5rEg"),l=o("WmNS"),h=o.n(l),d=o("q1tI"),s=o.n(d),c=o("9kvl"),w=o("m3rI"),E=o("FPkq"),v=o.n(E),R=o("qB8g"),M=o.n(R),C=n.a.TextArea,S=function(A){var U=A.newShixuns,L=A.globalSetting,N=A.loading,V=A.dispatch,H=Object(r.a)(A,["newShixuns","globalSetting","loading","dispatch"]),D=a.a.useForm(),W=Object(u.a)(D,1),F=W[0],I=Object(d.useState)([]),K=Object(u.a)(I,2),ee=K[0],he=K[1],de=function(ue){var le=["uploading","done","removed"];le.includes(ue.file.status)&&he(ue.fileList)},Se=function(ue){if(!ue.percent||ue.percent==100){var le,$=(le=ue.response)===null||le===void 0?void 0:le.id;return e.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(O.a)(h.a.mark(function ae(){var Oe;return h.a.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return te.next=2,V({type:"newShixuns/deleteAttachment",payload:{id:$}});case 2:Oe=te.sent,Oe&&he(ee.filter(function(Q){var J;return((J=Q.response)===null||J===void 0?void 0:J.id)!==$}));case 4:case"end":return te.stop()}},ae)}));function re(){return me.apply(this,arguments)}return re}()}),!1}},Te=function(ue){if(ee.length)return!1;var le=ue.size/1024/1024>50;return le?(x.b.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E50MB"),!1):!0},ce=function(){var Ee=Object(O.a)(h.a.mark(function ue(le){var $,me,re,ae,Oe,se,te,Q;return h.a.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return re=le||{},ae=re.language,Oe=re.env,se=re.mode,te=re.code,ve.next=3,V({type:"newShixuns/applyShixunMirror",payload:{language:ae,runtime:Oe,run_method:se,attachment_id:ee==null||(($=ee[0])===null||$===void 0||((me=$.response)===null||me===void 0))?void 0:me.id}});case 3:Q=ve.sent,V({type:"newShixuns/setActionTabs",payload:{}}),Q&&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 ve.stop()}},ue)}));return function(le){return Ee.apply(this,arguments)}}(),be=function(){F.resetFields(),he([])};return s.a.createElement(e.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:U.actionTabs.key==="NewShixuns-Apply",title:"\u7533\u8BF7\u65B0\u5EFA",width:"1000px",footer:null,afterClose:be},s.a.createElement("section",{className:M.a.qrCode},s.a.createElement("aside",{className:M.a.a1},s.a.createElement("div",{className:M.a.code},s.a.createElement("img",{width:120,height:120,src:v.a,alt:"\u4E8C\u7EF4\u7801"})),s.a.createElement("div",{className:M.a.group},"\u5B9E\u9A8C\u73AF\u5883\u7533\u8BF7QQ\u7FA4"),s.a.createElement("div",{className:M.a.groupNumber},"\u7FA4\u53F7\uFF1A740157011")),s.a.createElement("aside",{className:M.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(a.a,{className:M.a.formWrap,form:F,labelCol:{span:4},wrapperCol:{span:20},onFinish:ce},s.a.createElement(a.a.Item,{label:"\u8BED\u8A00\uFF1A",name:"language",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u8BED\u8A00"}]},s.a.createElement(C,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u662F\u57FA\u4E8E\u4EC0\u4E48\u8BED\u8A00\uFF1A\u793A\u4F8B\uFF1APython",rows:4})),s.a.createElement(a.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(C,{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(a.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(C,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u4E2D\u6D4B\u8BD5\u4EE3\u7801\u8FD0\u884C\u65B9\u5F0F",rows:4})),s.a.createElement(a.a.Item,{label:"\u6D4B\u8BD5\u4EE3\u7801\uFF1A",name:"code",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u9644\u4EF6"}]},s.a.createElement("div",{className:M.a.upload},s.a.createElement(b.a,{fileList:ee,action:"".concat(w.a.API_SERVER,"/api/attachments.json?client_key=6d57f8c3dd186c5ada392546ace9620a"),onChange:de,onRemove:Se,beforeUpload:Te,withCredentials:!0},s.a.createElement("span",{className:"".concat(M.a.color0152d9," current")},"\u4E0A\u4F20\u9644\u4EF6"),s.a.createElement("span",{className:"".concat(M.a.colorCCC," ml10")},"(\u5355\u4E2A\u6587\u4EF650M\u4EE5\u5185)")))),s.a.createElement("div",{className:M.a.footerWrap},s.a.createElement(a.a.Item,null,s.a.createElement(g.a,{className:"mr5",size:"large",onClick:function(){V({type:"newShixuns/setActionTabs",payload:{}})}},"\u53D6\u6D88"),s.a.createElement(g.a,{size:"large",type:"primary",htmlType:"submit",loading:N["newShixuns/applyShixunMirror"]},"\u4FDD\u5B58")))))};z.a=Object(c.a)(function(_){var A=_.newShixuns,U=_.loading,L=_.globalSetting;return{newShixuns:A,globalSetting:L,loading:U.effects}})(S)},Fxgj:function(k,z,o){},GABl:function(k,z){k.exports="data:image/png;base64,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"},GRuw:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("lPiR"))})(this,function(P){return function(){var g=P,T=g.lib,b=T.WordArray,y=g.algo,x=y.SHA256,O=y.SHA224=x.extend({_doReset:function(){this._hash=new b.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var m=x._doFinalize.call(this);return m.sigBytes-=4,m}});g.SHA224=x._createHelper(O),g.HmacSHA224=x._createHmacHelper(O)}(),P.SHA224})},GfqC:function(k,z,o){"use strict";var P=o("q1tI"),g=o.n(P),T=o("TSYQ"),b=o.n(T);function y(W,F){var I="cannot "+W.method+" "+W.action+" "+F.status+"'",K=new Error(I);return K.status=F.status,K.method=W.method,K.url=W.action,K}function x(W){var F=W.responseText||W.response;if(!F)return F;try{return JSON.parse(F)}catch(I){return F}}function O(W){var F=new XMLHttpRequest;W.onProgress&&F.upload&&(F.upload.onprogress=function(he){he.total>0&&(he.percent=he.loaded/he.total*100),W.onProgress(he)});var I=new FormData;W.data&&Object.keys(W.data).forEach(function(ee){var he=W.data[ee];if(Array.isArray(he)){he.forEach(function(de){I.append(ee+"[]",de)});return}I.append(ee,W.data[ee])}),W.file instanceof Blob?I.append(W.filename,W.file,W.file.name):I.append(W.filename,W.file),F.onerror=function(he){W.onError(he)},F.onload=function(){return F.status<200||F.status>=300?W.onError(y(W,F),x(F)):W.onSuccess(x(F),F)},F.open(W.method,W.action,!0),W.withCredentials&&"withCredentials"in F&&(F.withCredentials=!0);var K=W.headers||{};return K["X-Requested-With"]!==null&&F.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(K).forEach(function(ee){K[ee]!==null&&F.setRequestHeader(ee,K[ee])}),F.send(I),{abort:function(){F.abort()}}}var m=+new Date,e=0;function f(){return"rc-upload-"+m+"-"+ ++e}function a(W,F){return W.indexOf(F,W.length-F.length)!==-1}var u=function(W,F){if(W&&F){var I=Array.isArray(F)?F:F.split(","),K=W.name||"",ee=W.type||"",he=ee.replace(/\/.*$/,"");return I.some(function(de){var Se=de.trim();return Se.charAt(0)==="."?a(K.toLowerCase(),Se.toLowerCase()):/\/\*$/.test(Se)?he===Se.replace(/\/.*$/,""):ee===Se})}return!0};function r(W,F){var I=W.createReader(),K=[];function ee(){I.readEntries(function(he){var de=Array.prototype.slice.apply(he);K=K.concat(de);var Se=!de.length;Se?F(K):ee()})}ee()}var i=function(F,I,K){var ee=function he(de,Se){Se=Se||"",de.isFile?de.file(function(Te){K(Te)&&(de.fullPath&&!Te.webkitRelativePath&&(Object.defineProperties(Te,{webkitRelativePath:{writable:!0}}),Te.webkitRelativePath=de.fullPath.replace(/^\//,""),Object.defineProperties(Te,{webkitRelativePath:{writable:!1}})),I([Te]))}):de.isDirectory&&r(de,function(Te){Te.forEach(function(ce){he(ce,""+Se+de.name+"/")})})};F.forEach(function(he){ee(he.webkitGetAsEntry())})},n=i,l=Object.assign||function(W){for(var F=1;F<arguments.length;F++){var I=arguments[F];for(var K in I)Object.prototype.hasOwnProperty.call(I,K)&&(W[K]=I[K])}return W},h=function(){function W(F,I){var K=[],ee=!0,he=!1,de=void 0;try{for(var Se=F[Symbol.iterator](),Te;!(ee=(Te=Se.next()).done)&&!(K.push(Te.value),I&&K.length===I);ee=!0);}catch(ce){he=!0,de=ce}finally{try{!ee&&Se.return&&Se.return()}finally{if(he)throw de}}return K}return function(F,I){if(Array.isArray(F))return F;if(Symbol.iterator in Object(F))return W(F,I);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(){function W(F,I){for(var K=0;K<I.length;K++){var ee=I[K];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(F,ee.key,ee)}}return function(F,I,K){return I&&W(F.prototype,I),K&&W(F,K),F}}();function s(W,F,I){return F in W?Object.defineProperty(W,F,{value:I,enumerable:!0,configurable:!0,writable:!0}):W[F]=I,W}function c(W,F){var I={};for(var K in W){if(F.indexOf(K)>=0)continue;if(!Object.prototype.hasOwnProperty.call(W,K))continue;I[K]=W[K]}return I}function w(W,F){if(!(W instanceof F))throw new TypeError("Cannot call a class as a function")}function E(W,F){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F&&(typeof F=="object"||typeof F=="function")?F:W}function v(W,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof F);W.prototype=Object.create(F&&F.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),F&&(Object.setPrototypeOf?Object.setPrototypeOf(W,F):W.__proto__=F)}var R=function(F){return Object.keys(F).reduce(function(I,K){return(K.substr(0,5)==="data-"||K.substr(0,5)==="aria-"||K==="role")&&(I[K]=F[K]),I},{})},M=function(W){v(F,W);function F(){var I,K,ee,he;w(this,F);for(var de=arguments.length,Se=Array(de),Te=0;Te<de;Te++)Se[Te]=arguments[Te];return he=(K=(ee=E(this,(I=F.__proto__||Object.getPrototypeOf(F)).call.apply(I,[this].concat(Se))),ee),ee.state={uid:f()},ee.reqs={},ee.onChange=function(ce){var be=ce.target.files;ee.uploadFiles(be),ee.reset()},ee.onClick=function(ce){var be=ee.fileInput;if(!be)return;var Ee=ee.props,ue=Ee.children,le=Ee.onClick;ue&&ue.type==="button"&&(be.parentNode.focus(),be.parentNode.querySelector("button").blur()),be.click(),le&&le(ce)},ee.onKeyDown=function(ce){ce.key==="Enter"&&ee.onClick()},ee.onFileDrop=function(ce){var be=ee.props.multiple;if(ce.preventDefault(),ce.type==="dragover")return;if(ee.props.directory)n(Array.prototype.slice.call(ce.dataTransfer.items),ee.uploadFiles,function(ue){return u(ue,ee.props.accept)});else{var Ee=Array.prototype.slice.call(ce.dataTransfer.files).filter(function(ue){return u(ue,ee.props.accept)});be===!1&&(Ee=Ee.slice(0,1)),ee.uploadFiles(Ee)}},ee.uploadFiles=function(ce){var be=Array.prototype.slice.call(ce);be.map(function(Ee){return Ee.uid=f(),Ee}).forEach(function(Ee){ee.upload(Ee,be)})},ee.saveFileInput=function(ce){ee.fileInput=ce},K),E(ee,he)}return d(F,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(K,ee){var he=this,de=this.props;if(!de.beforeUpload)return setTimeout(function(){return he.post(K)},0);var Se=de.beforeUpload(K,ee);Se&&Se.then?Se.then(function(Te){var ce=Object.prototype.toString.call(Te);return ce==="[object File]"||ce==="[object Blob]"?he.post(Te):he.post(K)}).catch(function(Te){console.log(Te)}):Se!==!1&&setTimeout(function(){return he.post(K)},0);return}},{key:"post",value:function(K){var ee=this;if(!this._isMounted)return;var he=this.props,de=he.onStart,Se=he.onProgress,Te=he.transformFile,ce=Te===void 0?function(be){return be}:Te;new Promise(function(be){var Ee=he.action;return typeof Ee=="function"&&(Ee=Ee(K)),be(Ee)}).then(function(be){var Ee=K.uid,ue=he.customRequest||O,le=Promise.resolve(ce(K)).then(function($){var me=he.data;return typeof me=="function"&&(me=me($)),Promise.all([$,me])}).catch(function($){console.error($)});le.then(function($){var me=h($,2),re=me[0],ae=me[1],Oe={action:be,filename:he.name,data:ae,file:re,headers:he.headers,withCredentials:he.withCredentials,method:he.method||"post",onProgress:Se?function(se){Se(se,K)}:null,onSuccess:function(te,Q){delete ee.reqs[Ee],he.onSuccess(te,K,Q)},onError:function(te,Q){delete ee.reqs[Ee],he.onError(te,Q,K)}};de(K),ee.reqs[Ee]=ue(Oe)})})}},{key:"reset",value:function(){this.setState({uid:f()})}},{key:"abort",value:function(K){var ee=this.reqs;if(K){var he=K;K&&K.uid&&(he=K.uid),ee[he]&&ee[he].abort&&ee[he].abort(),delete ee[he]}else Object.keys(ee).forEach(function(de){ee[de]&&ee[de].abort&&ee[de].abort(),delete ee[de]})}},{key:"render",value:function(){var K,ee=this.props,he=ee.component,de=ee.prefixCls,Se=ee.className,Te=ee.disabled,ce=ee.id,be=ee.style,Ee=ee.multiple,ue=ee.accept,le=ee.children,$=ee.directory,me=ee.openFileDialogOnClick,re=ee.onMouseEnter,ae=ee.onMouseLeave,Oe=c(ee,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),se=b()((K={},s(K,de,!0),s(K,de+"-disabled",Te),s(K,Se,Se),K)),te=Te?{}:{onClick:me?this.onClick:function(){},onKeyDown:me?this.onKeyDown:function(){},onMouseEnter:re,onMouseLeave:ae,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return g.a.createElement(he,l({},te,{className:se,role:"button",style:be}),g.a.createElement("input",l({},R(Oe),{id:ce,type:"file",ref:this.saveFileInput,onClick:function(J){return J.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:ue,directory:$?"directory":null,webkitdirectory:$?"webkitdirectory":null,multiple:Ee,onChange:this.onChange})),le)}}]),F}(P.Component),C=M,S=Object.assign||function(W){for(var F=1;F<arguments.length;F++){var I=arguments[F];for(var K in I)Object.prototype.hasOwnProperty.call(I,K)&&(W[K]=I[K])}return W},_=function(){function W(F,I){for(var K=0;K<I.length;K++){var ee=I[K];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(F,ee.key,ee)}}return function(F,I,K){return I&&W(F.prototype,I),K&&W(F,K),F}}();function A(W,F){if(!(W instanceof F))throw new TypeError("Cannot call a class as a function")}function U(W,F){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F&&(typeof F=="object"||typeof F=="function")?F:W}function L(W,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof F);W.prototype=Object.create(F&&F.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),F&&(Object.setPrototypeOf?Object.setPrototypeOf(W,F):W.__proto__=F)}function N(){}var V=function(W){L(F,W);function F(){var I,K,ee,he;A(this,F);for(var de=arguments.length,Se=Array(de),Te=0;Te<de;Te++)Se[Te]=arguments[Te];return he=(K=(ee=U(this,(I=F.__proto__||Object.getPrototypeOf(F)).call.apply(I,[this].concat(Se))),ee),ee.saveUploader=function(ce){ee.uploader=ce},K),U(ee,he)}return _(F,[{key:"abort",value:function(K){this.uploader.abort(K)}},{key:"render",value:function(){return g.a.createElement(C,S({},this.props,{ref:this.saveUploader}))}}]),F}(P.Component);V.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 H=V,D=z.a=H},Gytx:function(k,z){k.exports=function(P,g,T,b){var y=T?T.call(b,P,g):void 0;if(y!==void 0)return!!y;if(P===g)return!0;if(typeof P!="object"||!P||typeof g!="object"||!g)return!1;var x=Object.keys(P),O=Object.keys(g);if(x.length!==O.length)return!1;for(var m=Object.prototype.hasOwnProperty.bind(g),e=0;e<x.length;e++){var f=x[e];if(!m(f))return!1;var a=P[f],u=g[f];if(y=T?T.call(b,a,u,f):void 0,y===!1||y===void 0&&a!==u)return!1}return!0}},HjOm:function(k,z,o){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var P={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=P;z.default=g},HmJG:function(k,z,o){},HpTS:function(k,z,o){k.exports=o.p+"static/small_program.f74069ec.png"},HpfO:function(k,z,o){k.exports={wrap:"wrap___r5XlG",content:"content___1KVgv",mainPathWrap:"mainPathWrap___256K2",colorBlue:"colorBlue___3S7DM"}},I8Z2:function(k,z,o){"use strict";o.d(z,"a",function(){return b}),o.d(z,"b",function(){return r}),o.d(z,"c",function(){return n});var P=o("q1tI"),g=function(){var l=function(h,d){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var w in c)c.hasOwnProperty(w)&&(s[w]=c[w])},l(h,d)};return function(h,d){l(h,d);function s(){this.constructor=h}h.prototype=d===null?Object.create(d):(s.prototype=d.prototype,new s)}}(),T=P.createContext(null),b=function(l){g(h,l);function h(){return l!==null&&l.apply(this,arguments)||this}return h.prototype.render=function(){return P.createElement(T.Provider,{value:this.props.store},this.props.children)},h}(P.Component),y=o("Gytx"),x=o.n(y),O=o("2mql"),m=o.n(O),e=function(){var l=function(h,d){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var w in c)c.hasOwnProperty(w)&&(s[w]=c[w])},l(h,d)};return function(h,d){l(h,d);function s(){this.constructor=h}h.prototype=d===null?Object.create(d):(s.prototype=d.prototype,new s)}}(),f=function(){return f=Object.assign||function(l){for(var h,d=1,s=arguments.length;d<s;d++){h=arguments[d];for(var c in h)Object.prototype.hasOwnProperty.call(h,c)&&(l[c]=h[c])}return l},f.apply(this,arguments)};function a(l){return l.displayName||l.name||"Component"}var u=function(){return{}};function r(l,h){h===void 0&&(h={});var d=!!l,s=l||u;return function(w){var E=function(R){e(M,R);function M(C,S){var _=R.call(this,C,S)||this;return _.unsubscribe=null,_.handleChange=function(){if(!_.unsubscribe)return;var A=s(_.store.getState(),_.props);_.setState({subscribed:A})},_.store=_.context,_.state={subscribed:s(_.store.getState(),C),store:_.store,props:C},_}return M.getDerivedStateFromProps=function(C,S){return l&&l.length===2&&C!==S.props?{subscribed:s(S.store.getState(),C),props:C}:{props:C}},M.prototype.componentDidMount=function(){this.trySubscribe()},M.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},M.prototype.shouldComponentUpdate=function(C,S){return!x()(this.props,C)||!x()(this.state.subscribed,S.subscribed)},M.prototype.trySubscribe=function(){d&&(this.unsubscribe=this.store.subscribe(this.handleChange),this.handleChange())},M.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},M.prototype.render=function(){var C=f(f(f({},this.props),this.state.subscribed),{store:this.store});return P.createElement(w,f({},C,{ref:this.props.miniStoreForwardedRef}))},M.displayName="Connect("+a(w)+")",M.contextType=T,M}(P.Component);if(h.forwardRef){var v=P.forwardRef(function(R,M){return P.createElement(E,f({},R,{miniStoreForwardedRef:M}))});return m()(v,w)}return m()(E,w)}}var i=function(){return i=Object.assign||function(l){for(var h,d=1,s=arguments.length;d<s;d++){h=arguments[d];for(var c in h)Object.prototype.hasOwnProperty.call(h,c)&&(l[c]=h[c])}return l},i.apply(this,arguments)};function n(l){var h=l,d=[];function s(E){h=i(i({},h),E);for(var v=0;v<d.length;v++)d[v]()}function c(){return h}function w(E){return d.push(E),function(){var R=d.indexOf(E);d.splice(R,1)}}return{setState:s,getState:c,subscribe:w}}},IBYe:function(k,z,o){"use strict";function P(g){return null}z.a=P},Ib8C:function(k,z,o){(function(P){(function(g,T){k.exports=z=T()})(this,function(){var g=g||function(T,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 P!="undefined"&&P.crypto&&(y=P.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.")},O=Object.create||function(){function s(){}return function(c){var w;return s.prototype=c,w=new s,s.prototype=null,w}}(),m={},e=m.lib={},f=e.Base=function(){return{extend:function(s){var c=O(this);return s&&c.mixIn(s),(!c.hasOwnProperty("init")||this.init===c.init)&&(c.init=function(){c.$super.init.apply(this,arguments)}),c.init.prototype=c,c.$super=this,c},create:function(){var s=this.extend();return s.init.apply(s,arguments),s},init:function(){},mixIn:function(s){for(var c in s)s.hasOwnProperty(c)&&(this[c]=s[c]);s.hasOwnProperty("toString")&&(this.toString=s.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),a=e.WordArray=f.extend({init:function(s,c){s=this.words=s||[],c!=b?this.sigBytes=c:this.sigBytes=s.length*4},toString:function(s){return(s||r).stringify(this)},concat:function(s){var c=this.words,w=s.words,E=this.sigBytes,v=s.sigBytes;if(this.clamp(),E%4)for(var R=0;R<v;R++){var M=w[R>>>2]>>>24-R%4*8&255;c[E+R>>>2]|=M<<24-(E+R)%4*8}else for(var C=0;C<v;C+=4)c[E+C>>>2]=w[C>>>2];return this.sigBytes+=v,this},clamp:function(){var s=this.words,c=this.sigBytes;s[c>>>2]&=4294967295<<32-c%4*8,s.length=T.ceil(c/4)},clone:function(){var s=f.clone.call(this);return s.words=this.words.slice(0),s},random:function(s){for(var c=[],w=0;w<s;w+=4)c.push(x());return new a.init(c,s)}}),u=m.enc={},r=u.Hex={stringify:function(s){for(var c=s.words,w=s.sigBytes,E=[],v=0;v<w;v++){var R=c[v>>>2]>>>24-v%4*8&255;E.push((R>>>4).toString(16)),E.push((R&15).toString(16))}return E.join("")},parse:function(s){for(var c=s.length,w=[],E=0;E<c;E+=2)w[E>>>3]|=parseInt(s.substr(E,2),16)<<24-E%8*4;return new a.init(w,c/2)}},i=u.Latin1={stringify:function(s){for(var c=s.words,w=s.sigBytes,E=[],v=0;v<w;v++){var R=c[v>>>2]>>>24-v%4*8&255;E.push(String.fromCharCode(R))}return E.join("")},parse:function(s){for(var c=s.length,w=[],E=0;E<c;E++)w[E>>>2]|=(s.charCodeAt(E)&255)<<24-E%4*8;return new a.init(w,c)}},n=u.Utf8={stringify:function(s){try{return decodeURIComponent(escape(i.stringify(s)))}catch(c){throw new Error("Malformed UTF-8 data")}},parse:function(s){return i.parse(unescape(encodeURIComponent(s)))}},l=e.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new a.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 c,w=this._data,E=w.words,v=w.sigBytes,R=this.blockSize,M=R*4,C=v/M;s?C=T.ceil(C):C=T.max((C|0)-this._minBufferSize,0);var S=C*R,_=T.min(S*4,v);if(S){for(var A=0;A<S;A+=R)this._doProcessBlock(E,A);c=E.splice(0,S),w.sigBytes-=_}return new a.init(c,_)},clone:function(){var s=f.clone.call(this);return s._data=this._data.clone(),s},_minBufferSize:0}),h=e.Hasher=l.extend({cfg:f.extend(),init:function(s){this.cfg=this.cfg.extend(s),this.reset()},reset:function(){l.reset.call(this),this._doReset()},update:function(s){return this._append(s),this._process(),this},finalize:function(s){s&&this._append(s);var c=this._doFinalize();return c},blockSize:512/32,_createHelper:function(s){return function(c,w){return new s.init(w).finalize(c)}},_createHmacHelper:function(s){return function(c,w){return new d.HMAC.init(s,w).finalize(c)}}}),d=m.algo={};return m}(Math);return g})}).call(this,o("IyRk"))},JAbv:function(k,z){k.exports="data:image/png;base64,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"},JFl9:function(k,z,o){k.exports={footerWrap:"footerWrap___3bmMI"}},JWDV:function(k,z,o){k.exports=o.p+"static/charpter-white.5fa14f93.svg"},JYp7:function(k,z,o){"use strict";o.d(z,"a",function(){return P});var P;(function(g){function T(c){return c&&typeof c=="object"&&typeof c[Symbol.iterator]=="function"}g.is=T;const b=Object.freeze([]);function y(){return b}g.empty=y;function*x(c){yield c}g.single=x;function O(c){return c||b}g.from=O;function m(c){return!c||c[Symbol.iterator]().next().done===!0}g.isEmpty=m;function e(c){return c[Symbol.iterator]().next().value}g.first=e;function f(c,w){for(const E of c)if(w(E))return!0;return!1}g.some=f;function a(c,w){for(const E of c)if(w(E))return E;return}g.find=a;function*u(c,w){for(const E of c)w(E)&&(yield E)}g.filter=u;function*r(c,w){let E=0;for(const v of c)yield w(v,E++)}g.map=r;function*i(...c){for(const w of c)for(const E of w)yield E}g.concat=i;function*n(c){for(const w of c)for(const E of w)yield E}g.concatNested=n;function l(c,w,E){let v=E;for(const R of c)v=w(v,R);return v}g.reduce=l;function*h(c,w,E=c.length){for(w<0&&(w+=c.length),E<0?E+=c.length:E>c.length&&(E=c.length);w<E;w++)yield c[w]}g.slice=h;function d(c,w=Number.POSITIVE_INFINITY){const E=[];if(w===0)return[E,c];const v=c[Symbol.iterator]();for(let R=0;R<w;R++){const M=v.next();if(M.done)return[E,g.empty()];E.push(M.value)}return[E,{[Symbol.iterator](){return v}}]}g.consume=d;function s(c,w,E=(v,R)=>v===R){const v=c[Symbol.iterator](),R=w[Symbol.iterator]();for(;;){const M=v.next(),C=R.next();if(M.done!==C.done)return!1;if(M.done)return!0;if(!E(M.value,C.value))return!1}}g.equals=s})(P||(P={}))},JeFH:function(k,z){k.exports="data:image/png;base64,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"},Jky8:function(k,z,o){"use strict";var P=o("sRBo"),g=o("kaz8"),T=o("5NDa"),b=o("5rEg"),y=o("miYZ"),x=o("tsqr"),O=o("9og8"),m=o("2qtc"),e=o("kLXV"),f=o("tJVT"),a=o("WmNS"),u=o.n(a),r=o("q1tI"),i=o.n(r),n=o("9kvl"),l=o("6CvP"),h=o("1XHU"),d=o("1vsH"),s;(function(w){w[w.Professor=1]="Professor",w[w.AssistantProfessor=2]="AssistantProfessor",w[w.Student=3]="Student"})(s||(s={}));var c=function(E){var v=E.visible,R=E.user,M=E.onCancel,C=M===void 0?function(){}:M,S=Object(r.useState)(),_=Object(f.a)(S,2),A=_[0],U=_[1],L=Object(r.useState)([]),N=Object(f.a)(L,2),V=N[0],H=N[1],D=Object(r.useState)(!1),W=Object(f.a)(D,2),F=W[0],I=W[1],K=Object(r.useState)(!1),ee=Object(f.a)(K,2),he=ee[0],de=ee[1],Se=Object(r.useState)(),Te=Object(f.a)(Se,2),ce=Te[0],be=Te[1];Object(r.useEffect)(function(){var $;if(R!=null&&($=R.userInfo)!==null&&$!==void 0&&$.identity){var me;H([(R==null||((me=R.userInfo)===null||me===void 0)?void 0:me.identity)==="student"?3:1])}},[R]);var Ee=function(me,re){if(V.includes(s.Professor)){e.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:i.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 $=Object(O.a)(u.a.mark(function me(){var re;return u.a.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(A){Oe.next=3;break}return x.b.info("\u9080\u8BF7\u7801\u4E0D\u80FD\u4E3A\u7A7A"),Oe.abrupt("return");case 3:return I(!0),Oe.next=6,Object(l.c)({invite_code:A,professor:V.includes(s.Professor)?1:null,assistant_professor:V.includes(s.AssistantProfessor)?1:null,student:V.includes(s.Student)?1:null});case 6:if(re=Oe.sent,I(!1),!((re==null?void 0:re.status)===-2)){Oe.next=22;break}if(le(),!(re.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1")){Oe.next=14;break}return de(!0),be(1),Oe.abrupt("return");case 14:if(!(re.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u804C\u4E1A\u8BA4\u8BC1")){Oe.next=18;break}return de(!0),be(2),Oe.abrupt("return");case 18:if(!(re.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u548C\u804C\u4E1A\u8BA4\u8BC1")){Oe.next=22;break}return de(!0),be(3),Oe.abrupt("return");case 22:if(!((re==null?void 0:re.status)===0)){Oe.next=27;break}return Object(d.cb)(["\u6559\u5B66\u8BFE\u5802","\u9996\u9875","\u52A0\u5165\u8BFE\u5802"]),le(),(re==null?void 0:re.course_id)&&Ee(re.course_id,re.message),Oe.abrupt("return");case 27:case"end":return Oe.stop()}},me)}));return function(){return $.apply(this,arguments)}}(),le=function(){var $=Object(O.a)(u.a.mark(function me(){return u.a.wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:C();case 1:case"end":return ae.stop()}},me)}));return function(){return $.apply(this,arguments)}}();return i.a.createElement(i.a.Fragment,null,i.a.createElement(e.a,{centered:!0,keyboard:!1,closable:!1,title:"\u52A0\u5165\u8BFE\u5802",visible:v,confirmLoading:F,onOk:ue,onCancel:le},i.a.createElement("div",{className:"tc"},i.a.createElement("div",null,i.a.createElement("span",null,"\u8BFE\u5802\u9080\u8BF7\u7801\uFF1A"),i.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:A,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}U(me.target.value)}})),i.a.createElement("div",{className:"mt10 font14"},i.a.createElement("span",null,"\u8EAB\u4EFD\uFF1A"),i.a.createElement(g.a.Group,{value:V,onChange:function(me){return H(me)}},i.a.createElement(g.a,{value:s.Professor,disabled:V.includes(2)||V.includes(3)},"\u6559\u5E08"),i.a.createElement(g.a,{value:s.AssistantProfessor,disabled:V.includes(1)},"\u52A9\u6559"),i.a.createElement(g.a,{value:s.Student,disabled:V.includes(1)},"\u5B66\u751F/\u53C2\u8D5B\u8005"))))),i.a.createElement(h.a,{visible:he,onCancel:function(){return de(!1)},occupationValue:ce}))};z.a=Object(n.a)(function(w){var E=w.user;return{user:E}})(c)},Jq4h:function(k,z,o){k.exports=o.p+"static/qrcode.2267e4d5.png"},Jv0p:function(k,z,o){k.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(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("3y9D"),o("WYAk"))})(this,function(P){return function(){var g=P,T=g.lib,b=T.Base,y=T.WordArray,x=g.algo,O=x.MD5,m=x.EvpKDF=b.extend({cfg:b.extend({keySize:128/32,hasher:O,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,f){for(var a,u=this.cfg,r=u.hasher.create(),i=y.create(),n=i.words,l=u.keySize,h=u.iterations;n.length<l;){a&&r.update(a),a=r.update(e).finalize(f),r.reset();for(var d=1;d<h;d++)a=r.finalize(a),r.reset();i.concat(a)}return i.sigBytes=l*4,i}});g.EvpKDF=function(e,f,a){return m.create(a).compute(e,f)}}(),P.EvpKDF})},KOXS:function(k,z,o){k.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(k,z,o){k.exports={wrap:"wrap___1VfLE",content:"content___20B4M",mainPathWrap:"mainPathWrap___3qDeg",colorBlue:"colorBlue___2ZjUq"}},KeGQ:function(k,z,o){k.exports=o.p+"static/noLevelData.36460f71.png"},KhGG:function(k,z,o){"use strict";o.d(z,"a",function(){return v}),o.d(z,"c",function(){return C});var P=o("0Owb"),g=o("miYZ"),T=o("tsqr"),b=o("oBTY"),y=o("tJVT"),x=o("PpiC"),O=o("k1fw"),m=o("9og8"),e=o("DZo9"),f=o("8z0m"),a=o("WmNS"),u=o.n(a),r=o("q1tI"),i=o.n(r),n=o("ErOA"),l=o("NFKh"),h=o.n(l),d=o("7Cbv"),s=o("9kvl"),c=o("mxV5"),w=o.n(c),E=f.a.Dragger,v=function(A){var U="bf3c199c2470cb477d907b1e0917c17b",L="5183666c72eec9e4",N=h.a.enc.Utf8.parse(U),V=h.a.enc.Utf8.parse(L),H=h.a.AES.decrypt(A,N,{iv:V,mode:h.a.mode.CBC});return H.toString(h.a.enc.Utf8)},R,M=function(){var _=Object(m.a)(u.a.mark(function A(U){var L,N,V,H,D,W,F,I,K,ee,he;return u.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return F=U.identifier,I=U.oldFilename,K=U.newFilename,Se.next=3,Object(n.a)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});case 3:return ee=Se.sent,ee.data=JSON.parse(v(ee.data)),he=new w.a({endpoint:ee==null||((L=ee.data)===null||L===void 0)?void 0:L.end_point,region:ee==null||((N=ee.data)===null||N===void 0)?void 0:N.region,accessKeyId:ee==null||((V=ee.data)===null||V===void 0)?void 0:V.access_key_id,accessKeySecret:ee==null||((H=ee.data)===null||H===void 0)?void 0:H.access_key_secret,bucket:ee==null||((D=ee.data)===null||D===void 0)?void 0:D.bucket,stsToken:ee==null||((W=ee.data)===null||W===void 0)?void 0:W.security_token}),Se.abrupt("return",new Promise(function(Te,ce){console.log(11111,"".concat(F,"/").concat(I),"".concat(F,"/").concat(K),ee.data),he.copy("/".concat(F,"/").concat(I),"/".concat(F,"/").concat(K)).then(function(be){console.log("\u62F7\u8D1D\u6210\u529F",be)}).catch(function(be){console.log(be)})}));case 7:case"end":return Se.stop()}},A)}));return function(U){return _.apply(this,arguments)}}(),C=function(){var _=Object(m.a)(u.a.mark(function A(U,L,N){var V,H,D,W,F,I,K,ee,he,de;return u.a.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return L.file_name=U.name,Te.next=3,Object(n.a)("/api/buckets/get_upload_token.json",{method:"get"});case 3:return K=Te.sent,console.log("decrypt(res.data):",v(K.data)),K.data=JSON.parse(v(K.data)),ee=U.name.split("."),ee.pop(),he=L.realFileName?ee:Object(d.a)(),de=new w.a({endpoint:K==null||((V=K.data)===null||V===void 0)?void 0:V.end_point,region:K==null||((H=K.data)===null||H===void 0)?void 0:H.region,accessKeyId:K==null||((D=K.data)===null||D===void 0)?void 0:D.access_key_id,accessKeySecret:K==null||((W=K.data)===null||W===void 0)?void 0:W.access_key_secret,bucket:K==null||((F=K.data)===null||F===void 0)?void 0:F.bucket,stsToken:K==null||((I=K.data)===null||I===void 0)?void 0:I.security_token}),Te.abrupt("return",new Promise(function(ce,be){var Ee;de.multipartUpload("".concat(he),new Blob([U],{type:U.type}),Object(O.a)(Object(O.a)({timeout:200*1e3,partSize:102400},N),{},{callback:{url:K==null||((Ee=K.data)===null||Ee===void 0)?void 0:Ee.callback_url,host:K==null?void 0:K.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+Object(n.e)(L)}})).then(function(ue){var le;U.response=(le=ue.data)===null||le===void 0?void 0:le.data,ce(ue==null?void 0:ue.data)}).catch(function(ue){be(ue),console.log("err:",ue)})}));case 11:case"end":return Te.stop()}},A)}));return function(U,L,N){return _.apply(this,arguments)}}(),S=function(A){var U=A.user,L=A.cancelUpload,N=Object(x.a)(A,["user","cancelUpload"]),V=Object(r.useState)([]),H=Object(y.a)(V,2),D=H[0],W=H[1],F=Object(r.useState)(),I=Object(y.a)(F,2),K=I[0],ee=I[1],he={onRemove:function(Te){W(Object(b.a)(D.filter(function(ce){return ce.name!==Te.name}))),N.onChange(D.filter(function(ce){return ce.name!==Te.name}))},disabled:N.disabled,multiple:!0,fileList:D==null?void 0:D.map(function(Se){return Se.file}),customRequest:function(){},beforeUpload:function(){var Se=Object(m.a)(u.a.mark(function ce(be){var Ee;return u.a.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:if(Ee=N.maxSize||1024*1024*1024*1,!D.filter(function($){return $.name===be.name}).length){le.next=4;break}return T.b.info("".concat(be.name,"\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9")),le.abrupt("return");case 4:if(!((be==null?void 0:be.size)>Ee)){le.next=7;break}return T.b.info("\u6587\u4EF6\u8D85\u8FC7".concat(Ee/1024/1024/1024,"GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42")),le.abrupt("return",!1);case 7:return D.push({name:be.name,file:be}),W(Object(b.a)(D)),N.onChange(D),le.abrupt("return",!1);case 11:case"end":return le.stop()}},ce)}));function Te(ce){return Se.apply(this,arguments)}return Te}()},de=function(){var Se=Object(m.a)(u.a.mark(function Te(ce,be){var Ee,ue,le,$,me,re,ae,Oe,se,te;return u.a.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return be.file_name=ce.name,ae=ce.name,J.next=4,Object(n.a)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});case 4:if(Oe=J.sent,Oe.data=JSON.parse(v(Oe.data)),!((Oe==null?void 0:Oe.status)!==0)){J.next=12;break}return D[D.findIndex(function(ve){return ve.name===ae})].status="error",D[D.findIndex(function(ve){return ve.name===ae})].file.status="error",N.onChange(D),T.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),J.abrupt("return");case 12:return K=new w.a({endpoint:Oe==null||((Ee=Oe.data)===null||Ee===void 0)?void 0:Ee.end_point,region:Oe==null||((ue=Oe.data)===null||ue===void 0)?void 0:ue.region,accessKeyId:Oe==null||((le=Oe.data)===null||le===void 0)?void 0:le.access_key_id,accessKeySecret:Oe==null||(($=Oe.data)===null||$===void 0)?void 0:$.access_key_secret,bucket:Oe==null||((me=Oe.data)===null||me===void 0)?void 0:me.bucket,stsToken:Oe==null||((re=Oe.data)===null||re===void 0)?void 0:re.security_token}),console.log(ce,"file"),ee(K),se=ce.name.split("."),se.pop(),te=be.realFileName?se:Object(d.a)(),J.abrupt("return",new Promise(function(ve,_e){try{var Ae;K.multipartUpload("".concat(N.identifier,"/").concat(te).concat(ae.indexOf(".")>-1?"."+ae.split(".").pop():""),new Blob([ce.file],{type:ce.file.type}),{timeout:3600*1e3,partSize:1002400,progress:function(tt,dt,mt){try{console.log("\u8FDB\u5EA6",tt,dt,mt);var vt=D.findIndex(function(yt){return yt.name===ae});D[vt].file.percent=tt*100,D[vt].tempCheckpoint=dt,W(Object(b.a)(D))}catch(yt){}},checkpoint:D[D.findIndex(function(Qe){return Qe.name===ae})].tempCheckpoint,callback:{customValue:{id:ae+""},url:Oe==null||((Ae=Oe.data)===null||Ae===void 0)?void 0:Ae.callback_url,host:Oe==null?void 0:Oe.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(Qe){var tt,dt=D.findIndex(function(Ue){return Ue.name===ae}),mt="done";if(((tt=Qe.data)===null||tt===void 0?void 0:tt.status)===0){var vt;ce.response=(vt=Qe.data)===null||vt===void 0?void 0:vt.data;var yt=D.findIndex(function(Ue){return Ue.name===ae});D[yt].status="done",D[yt].file.status="done"}else{var Ye;T.b.warn((Ye=Qe.data)===null||Ye===void 0?void 0:Ye.message),mt="error"}D[dt].status=mt,D[dt].file.status=mt,N.onChange(D),ve(Qe==null?void 0:Qe.data)}).catch(function(Qe){D[D.findIndex(function(tt){return tt.name===ae})].status="error",D[D.findIndex(function(tt){return tt.name===ae})].file.status="error",T.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),W(Object(b.a)(D)),N.onChange(D),_e(Qe),console.log("err:",Qe)})}catch(Qe){}}));case 19:case"end":return J.stop()}},Te)}));return function(ce,be){return Se.apply(this,arguments)}}();return Object(r.useEffect)(function(){D.every(function(Se){return Se==="done"||Se==="error"})&&N.onComplete(D)},[D]),Object(r.useEffect)(function(){if(L){var Se;(Se=K)===null||Se===void 0||Se.cancel()}},[L]),Object(r.useEffect)(function(){N.uploading&&D.map(function(){var Se=Object(m.a)(u.a.mark(function Te(ce){var be,Ee;return u.a.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:if(!((!ce.status||ce.status==="error")&&!L)){le.next=6;break}return ce.status="uploading",ce.file.status="uploading",le.next=5,de(ce,{login:U==null||((be=U.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:Ee=le.sent;case 6:case"end":return le.stop()}},Te)}));return function(Te){return Se.apply(this,arguments)}}())},[N.uploading]),i.a.createElement(E,Object(P.a)({},he,{height:N.height,className:N.className}),i.a.createElement("p",{className:"ant-upload-hint"},N.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};z.b=Object(s.a)(function(_){var A=_.loading,U=_.globalSetting,L=_.user;return{globalSetting:U,loading:A.models.competitions,user:L}})(S)},KmYQ:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(P){return P.pad.ZeroPadding={pad:function(g,T){var b=T*4;g.clamp(),g.sigBytes+=b-(g.sigBytes%b||b)},unpad:function(g){for(var T=g.words,b=g.sigBytes-1,b=g.sigBytes-1;b>=0;b--)if(T[b>>>2]>>>24-b%4*8&255){g.sigBytes=b+1;break}}},P.pad.ZeroPadding})},"L+Ii":function(k,z,o){k.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(k,z,o){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var P=function(){function u(r,i){for(var n=0;n<i.length;n++){var l=i[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(r,l.key,l)}}return function(r,i,n){return i&&u(r.prototype,i),n&&u(r,n),r}}(),g=o("q1tI"),T=x(g),b=o("17x9"),y=x(b);function x(u){return u&&u.__esModule?u:{default:u}}function O(u,r){var i={};for(var n in u){if(r.indexOf(n)>=0)continue;if(!Object.prototype.hasOwnProperty.call(u,n))continue;i[n]=u[n]}return i}function m(u,r){if(!(u instanceof r))throw new TypeError("Cannot call a class as a function")}function e(u,r){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:u}function f(u,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);u.prototype=Object.create(r&&r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(u,r):u.__proto__=r)}var a=function(u){f(r,u);function r(i){m(this,r);var n=e(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,i));return n.scrollListener=n.scrollListener.bind(n),n.eventListenerOptions=n.eventListenerOptions.bind(n),n.mousewheelListener=n.mousewheelListener.bind(n),n}return P(r,[{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,l={get passive(){n=!0}};try{document.addEventListener("test",null,l),document.removeEventListener("test",null,l)}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 l=this.props.getScrollParent&&this.props.getScrollParent();return l!=null?l: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 l=window;this.props.useWindow===!1&&(l=n),l.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),l.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),l.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,l=window,h=this.getParentElement(n),d=void 0;if(this.props.useWindow){var s=document.documentElement||document.body.parentNode||document.body,c=l.pageYOffset!==void 0?l.pageYOffset:s.scrollTop;this.props.isReverse?d=c:d=this.calculateOffset(n,c)}else this.props.isReverse?d=h.scrollTop:d=n.scrollHeight-h.scrollTop-h.clientHeight;d<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,l){return n?this.calculateTopPosition(n)+(n.offsetHeight-l-window.innerHeight):0}},{key:"calculateTopPosition",value:function(n){return n?n.offsetTop+this.calculateTopPosition(n.offsetParent):0}},{key:"render",value:function(){var n=this,l=this.filterProps(this.props),h=l.children,d=l.element,s=l.hasMore,c=l.initialLoad,w=l.isReverse,E=l.loader,v=l.loadMore,R=l.pageStart,M=l.ref,C=l.threshold,S=l.useCapture,_=l.useWindow,A=l.getScrollParent,U=O(l,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);U.ref=function(N){n.scrollComponent=N,M&&M(N)};var L=[h];return s&&(E?w?L.unshift(E):L.push(E):this.defaultLoader&&(w?L.unshift(this.defaultLoader):L.push(this.defaultLoader))),T.default.createElement(d,U,L)}}]),r}(g.Component);a.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},a.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},z.default=a,k.exports=z.default},Lai7:function(k,z,o){k.exports=o.p+"static/noEnvData.6108fa6c.png"},LdHM:function(k,z,o){"use strict";o.d(z,"b",function(){return c}),o.d(z,"a",function(){return E});var P=o("1OyB"),g=o("vuIU"),T=o("Ji7U"),b=o("LK+K"),y=o("q1tI"),x=o("rePB"),O=o("Ff2n"),m=o("ODXe"),e=o("4IlW"),f=o("bX4T"),a=o("YrtM"),u=o("TSYQ"),r=o.n(u),i=o("+nKL"),n=o("8OUc"),l=function(K,ee){var he=K.prefixCls,de=K.id,Se=K.flattenOptions,Te=K.childrenAsData,ce=K.values,be=K.searchValue,Ee=K.multiple,ue=K.defaultActiveFirstOption,le=K.height,$=K.itemHeight,me=K.notFoundContent,re=K.open,ae=K.menuItemSelectedIcon,Oe=K.virtual,se=K.onSelect,te=K.onToggleOpen,Q=K.onActiveValue,J=K.onScroll,ve=K.onMouseEnter,_e="".concat(he,"-item"),Ae=Object(a.a)(function(){return Se},[re,Se],function(Pt,it){return it[0]&&Pt[1]!==it[1]}),Qe=y.useRef(null),tt=function(it){it.preventDefault()},dt=function(it){Qe.current&&Qe.current.scrollTo({index:it})},mt=function(it){for(var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Ge=Ae.length,Ce=0;Ce<Ge;Ce+=1){var Ie=(it+Ce*He+Ge)%Ge,Fe=Ae[Ie],Be=Fe.group,We=Fe.data;if(!Be&&!We.disabled)return Ie}return-1},vt=y.useState(function(){return mt(0)}),yt=Object(m.a)(vt,2),Ye=yt[0],Ue=yt[1],ft=function(it){Ue(it);var He=Ae[it];if(!He){Q(null,-1);return}Q(He.data.value,it)};y.useEffect(function(){ft(ue!==!1?mt(0):-1)},[Ae.length,be]),y.useEffect(function(){var Pt=setTimeout(function(){if(!Ee&&re&&ce.size===1){var it=Array.from(ce)[0],He=Ae.findIndex(function(Ge){var Ce=Ge.data;return Ce.value===it});ft(He),dt(He)}});return function(){return clearTimeout(Pt)}},[re]);var jt=function(it){it!==void 0&&se(it,{selected:!ce.has(it)}),Ee||te(!1)};if(y.useImperativeHandle(ee,function(){return{onKeyDown:function(it){var He=it.which;switch(He){case e.a.UP:case e.a.DOWN:{var Ge=0;if(He===e.a.UP?Ge=-1:He===e.a.DOWN&&(Ge=1),Ge!==0){var Ce=mt(Ye+Ge,Ge);dt(Ce),ft(Ce)}break}case e.a.ENTER:{var Ie=Ae[Ye];Ie&&!Ie.data.disabled?jt(Ie.data.value):jt(void 0),re&&it.preventDefault();break}case e.a.ESC:te(!1)}},onKeyUp:function(){},scrollTo:function(it){dt(it)}}}),Ae.length===0)return y.createElement("div",{role:"listbox",id:"".concat(de,"_list"),className:"".concat(_e,"-empty"),onMouseDown:tt},me);function bt(Pt){var it=Ae[Pt];if(!it)return null;var He=it.data||{},Ge=He.value,Ce=He.label,Ie=He.children,Fe=Object(f.a)(He,!0),Be=Te?Ie:Ce;return it?y.createElement("div",Object.assign({"aria-label":typeof Be=="string"?Be:null},Fe,{key:Pt,role:"option",id:"".concat(de,"_list_").concat(Pt),"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"}},bt(Ye-1),bt(Ye),bt(Ye+1)),y.createElement(i.a,{itemKey:"key",ref:Qe,data:Ae,height:le,itemHeight:$,fullHeight:!1,onMouseDown:tt,onScroll:J,virtual:Oe,onMouseEnter:ve},function(Pt,it){var He,Ge=Pt.group,Ce=Pt.groupOption,Ie=Pt.data,Fe=Ie.label,Be=Ie.key;if(Ge)return y.createElement("div",{className:r()(_e,"".concat(_e,"-group"))},Fe!==void 0?Fe:Be);var We=Ie.disabled,st=Ie.value,Dt=Ie.title,Ht=Ie.children,rn=Ie.style,Bt=Ie.className,Ct=Object(O.a)(Ie,["disabled","value","title","children","style","className"]),Ke=ce.has(st),et="".concat(_e,"-option"),at=r()(_e,et,Bt,(He={},Object(x.a)(He,"".concat(et,"-grouped"),Ce),Object(x.a)(He,"".concat(et,"-active"),Ye===it&&!We),Object(x.a)(He,"".concat(et,"-disabled"),We),Object(x.a)(He,"".concat(et,"-selected"),Ke),He)),Pe=Te?Ht:Fe,Xe=!ae||typeof ae=="function"||Ke;return y.createElement("div",Object.assign({},Ct,{"aria-selected":Ke,className:at,title:Dt,onMouseMove:function(){if(Ye===it||We)return;ft(it)},onClick:function(){We||jt(st)},style:rn}),y.createElement("div",{className:"".concat(et,"-content")},Pe||st),y.isValidElement(ae)||Ke,Xe&&y.createElement(n.a,{className:"".concat(_e,"-option-state"),customizeIcon:ae,customizeIconProps:{isSelected:Ke}},Ke?"\u2713":null))}))},h=y.forwardRef(l);h.displayName="OptionList";var d=h,s=function(){return null};s.isSelectOption=!0;var c=s,w=function(){return null};w.isSelectOptGroup=!0;var E=w,v=o("VTBJ"),R=o("Zm9Q");function M(I){var K=I.key,ee=I.props,he=ee.children,de=ee.value,Se=Object(O.a)(ee,["children","value"]);return Object(v.a)({key:K,value:de!==void 0?de:K,children:he},Se)}function C(I){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(R.a)(I).map(function(ee,he){if(!y.isValidElement(ee)||!ee.type)return null;var de=ee.type.isSelectOptGroup,Se=ee.key,Te=ee.props,ce=Te.children,be=Object(O.a)(Te,["children"]);return K||!de?M(ee):Object(v.a)(Object(v.a)({key:"__RC_SELECT_GRP__".concat(Se===null?he:Se,"__"),label:Se},be),{},{options:C(ce)})}).filter(function(ee){return ee})}var S=o("2Qr1"),_=o("qNPg"),A=o("U8pU"),U=o("Kwbf"),L=o("WKfj");function N(I){var K=I.mode,ee=I.options,he=I.children,de=I.backfill,Se=I.allowClear,Te=I.placeholder,ce=I.getInputElement,be=I.showSearch,Ee=I.onSearch,ue=I.defaultOpen,le=I.autoFocus,$=I.labelInValue,me=I.value,re=I.inputValue,ae=I.optionLabelProp,Oe=K==="multiple"||K==="tags",se=be!==void 0?be:Oe||K==="combobox",te=ee||C(he);if(Object(U.a)(K!=="tags"||te.every(function(_e){return!_e.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),K==="tags"||K==="combobox"){var Q=te.some(function(_e){return _e.options?_e.options.some(function(Ae){return typeof("value"in Ae?Ae.value:Ae.key)=="number"}):typeof("value"in _e?_e.value:_e.key)=="number"});Object(U.a)(!Q,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(U.a)(K!=="combobox"||!ae,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(U.a)(K==="combobox"||!de,"`backfill` only works with `combobox` mode."),Object(U.a)(K==="combobox"||!ce,"`getInputElement` only work with `combobox` mode."),Object(U.b)(K!=="combobox"||!ce||!Se||!Te,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Ee&&!se&&K!=="combobox"&&K!=="tags"&&Object(U.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(U.b)(!ue||le,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),me!=null){var J=Object(L.d)(me);Object(U.a)(!$||J.every(function(_e){return Object(A.a)(_e)==="object"&&("key"in _e||"value"in _e)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(U.a)(!Oe||Array.isArray(me),"`value` should be array when `mode` is `multiple` or `tags`")}if(he){var ve=null;Object(R.a)(he).some(function(_e){if(!y.isValidElement(_e)||!_e.type)return!1;var Ae=_e.type;if(Ae.isSelectOption)return!1;if(Ae.isSelectOptGroup){var Qe=Object(R.a)(_e.props.children).every(function(tt){return!y.isValidElement(tt)||!_e.type||tt.type.isSelectOption?!0:(ve=tt.type,!1)});return!Qe}return ve=Ae,!0}),ve&&Object(U.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ve.displayName||ve.name||ve,"`.")),Object(U.a)(re===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var V=N,H=Object(_.a)({prefixCls:"rc-select",components:{optionList:d},convertChildrenToData:C,flattenOptions:S.d,getLabeledValue:S.e,filterOptions:S.b,isValueDisabled:S.g,findValueOption:S.c,warningProps:V,fillOptionsWithMissingValue:S.a}),D=function(I){Object(T.a)(ee,I);var K=Object(b.a)(ee);function ee(){var he;return Object(P.a)(this,ee),he=K.apply(this,arguments),he.selectRef=y.createRef(),he.focus=function(){he.selectRef.current.focus()},he.blur=function(){he.selectRef.current.blur()},he}return Object(g.a)(ee,[{key:"render",value:function(){return y.createElement(H,Object.assign({ref:this.selectRef},this.props))}}]),ee}(y.Component);D.Option=c,D.OptGroup=E;var W=D,F=z.c=W},Lf5v:function(k,z,o){"use strict";var P=o("5NDa"),g=o("5rEg"),T=o("2qtc"),b=o("kLXV"),y=o("k1fw"),x=o("oBTY"),O=o("9og8"),m=o("miYZ"),e=o("tsqr"),f=o("y8nQ"),a=o("Vl3Y"),u=o("tJVT"),r=o("DZo9"),i=o("8z0m"),n=o("WmNS"),l=o.n(n),h=o("q1tI"),d=o.n(h),s=o("m3rI"),c=o("ErOA"),w=o("sckv"),E=o.n(w),v=o("KhGG"),R=o("1vsH"),M=i.a.Dragger,C=function(_){var A,U=_.dispatch,L=_.id,N=_.onClose,V=_.onOK,H=_.visible,D=_.wrapClassName,W=_.local,F=_.containerId,I=_.rootIdentifier,K=Object(h.useState)({}),ee=Object(u.a)(K,2),he=ee[0],de=ee[1],Se=Object(h.useState)([]),Te=Object(u.a)(Se,2),ce=Te[0],be=Te[1],Ee=Object(h.useState)([]),ue=Object(u.a)(Ee,2),le=ue[0],$=ue[1],me=Object(h.useState)(0),re=Object(u.a)(me,2),ae=re[0],Oe=re[1],se=Object(h.useState)(!1),te=Object(u.a)(se,2),Q=te[0],J=te[1],ve=Object(h.useState)(!1),_e=Object(u.a)(ve,2),Ae=_e[0],Qe=_e[1],tt=a.a.useForm(),dt=Object(u.a)(tt,1),mt=dt[0],vt=Object(h.useState)([]),yt=Object(u.a)(vt,2),Ye=yt[0],Ue=yt[1],ft=Object(h.useRef)([]);Object(h.useEffect)(function(){H&&(mt.resetFields(),Ue([]),$([]),be([]),Oe(0),Qe(!1),J(!1))},[H]);var jt=function(Ke){if(Ke.file.status==="done"||Ke.file.status==="uploading"){var et,at,Pe;if(Ue(Ke.fileList),!Ke.file.response)return;if((et=Ke.file.response)!==null&&et!==void 0&&et.id){e.b.success("\u4E0A\u4F20\u6210\u529F\uFF01");return}Ue(Ye.filter(function(Xe){return Xe.uid!==Ke.file.uid})),((at=Ke.file.response)===null||at===void 0?void 0:at.message)&&e.b.info((Pe=Ke.file.response)===null||Pe===void 0?void 0:Pe.message)}},bt=function(){var Ct=Object(O.a)(l.a.mark(function Ke(et){var at,Pe,Xe;return l.a.wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:if(ae){Et.next=8;break}return Pe=Ye.filter(function(Ot){return Ot.uid!==et.uid}),Ue(Pe),ft.current=Object(x.a)(Pe),be(ce.filter(function(Ot){return Ot!==et.name})),e.b.info("\u5220\u9664\u6210\u529F"),Pe.length||(mt.setFieldsValue({file:void 0}),mt.validateFields()),Et.abrupt("return");case 8:if(et.response){Et.next=11;break}return e.b.info("\u8FD8\u672A\u4E0A\u4F20\u5B8C\u6210\uFF0C\u65E0\u6CD5\u8FDB\u884C\u5220\u9664\u64CD\u4F5C\uFF01"),Et.abrupt("return");case 11:return Et.next=13,Object(c.a)("/api/shixuns/".concat(L,"/destroy_data_sets.json"),{method:"Delete",body:{id:[et==null||((at=et.response)===null||at===void 0)?void 0:at.id]}});case 13:Xe=Et.sent,Xe.status===0&&(Ue(Ye.filter(function(Ot){return Ot.uid!==et.uid})),e.b.info("\u5220\u9664\u6210\u529F"));case 15:case"end":return Et.stop()}},Ke)}));return function(et){return Ct.apply(this,arguments)}}(),Pt=function(Ke){if(Ye!=null&&Ye.some(function(at){return at.name===Ke.name}))return e.b.info("".concat(Ke.name,"\u6587\u4EF6\u5DF2\u5B58\u5728")),!1;var et={name:Ke.name,uid:Ke.uid,file:Ke,percent:0};return Ye.push(et),ft.current=Object(x.a)(Ye),Ue(Object(x.a)(Ye)),!1},it={height:300,multiple:!0,disabled:ae>0,withCredentials:!0,fileList:Ye,action:"".concat(s.a.API_SERVER,"/api/attachments.json"),onChange:jt,onRemove:bt,beforeUpload:Pt},He=function(Ke,et,at,Pe,Xe,ht){debugger;var Et=new FormData;Object.keys(Ke).forEach(function(Mt){Et.append(Mt,Ke[Mt])});var Ot=new window.XMLHttpRequest;return Ot.withCredentials=!0,Ot.addEventListener("load",function(Mt){var lt;debugger;at(JSON.parse(Mt==null||((lt=Mt.target)===null||lt===void 0)?void 0:lt.response))},!1),Ot.addEventListener("error",function(Mt){debugger;Xe&&Xe(Mt)},!1),Ot.upload.onprogress=function(Mt){Pe&&Pe(Mt)},Ot.open("POST",et),Ot.send(Et),Ot},Ge=function(Ke,et){if(Ke.lengthComputable){var at=Math.floor(Ke.loaded/Ke.total*100),Pe=Object(y.a)(Object(y.a)({},et),{},{percent:at,status:at===100?"done":"uploading"});console.log(ft.current,333),ft.current=ft.current.map(function(Xe){return Xe.uid===et.uid?Pe:Xe}),Ue(ft.current)}},Ce=function(Ke,et){debugger;var at=Object(y.a)(Object(y.a)({},et),{},{status:"error"});e.b.warn("\u4E0A\u4F20\u5931\u8D25"),ft.current=ft.current.map(function(Pe){return Pe.uid===et.uid?at:Pe}),ft.current.every(function(Pe){return Pe.status==="done"||Pe.status==="error"})&&(Qe(!1),Oe(2)),Ue(ft.current)},Ie=function(Ke,et){var at=Object(y.a)(Object(y.a)({},et),{},{status:"done"});if(Ke.status===0||(at=Object(y.a)(Object(y.a)({},et),{},{status:"error"}),e.b.error(Ke==null?void 0:Ke.message)),ft.current=ft.current.map(function(Pe){return Pe.uid===et.uid?at:Pe}),ft.current.every(function(Pe){return Pe.status==="done"})){e.b.success("\u4E0A\u4F20\u5B8C\u6210!"),Dt(!0);return}ft.current.every(function(Pe){return Pe.status==="done"||Pe.status==="error"})&&(Qe(!1),Oe(2)),Ue(ft.current)},Fe=function(){var Ke=!0;return window.navigator.onLine==!0?Ke=!0:Ke=!1,Ke},Be=function(){var Ct=Object(O.a)(l.a.mark(function Ke(et){var at,Pe,Xe,ht,Et,Ot,Mt,lt;return l.a.wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:if(Qe(!0),!(ae===3)){Lt.next=4;break}return Oe(2),Lt.abrupt("return");case 4:if(!(ae===2||ae===1)){Lt.next=7;break}return We(),Lt.abrupt("return");case 7:return at=et||{},Pe=at.commitMessage,Xe=Pe===void 0?"":Pe,ht=at.fileOss,Et=ht===void 0?[]:ht,Ot=W?Ye:Et,Mt=Ot.map(function(on){return on.name}),Lt.next=12,Object(c.a)("/api/shixuns/".concat(L,"/check_data_sets"),{method:"post",body:{files_name:Mt}});case 12:if(lt=Lt.sent,!(lt.status===-3)){Lt.next=17;break}return be(lt==null?void 0:lt.exist_files),Qe(!1),Lt.abrupt("return");case 17:if(!(JSON.stringify(lt)==="{}")){Lt.next=21;break}return Qe(!1),e.b.error("\u7F51\u7EDC\u5DF2\u65AD\u5F00,\u8BF7\u7A0D\u540E\u91CD\u8BD5!"),Lt.abrupt("return");case 21:lt.status===0&&(Ye.forEach(function(on){var mn=He({file:on.file,description:Xe,message:lt.message},"".concat(s.a.API_SERVER,"/api/shixuns/").concat(L,"/upload_data_sets.json"),function(Hn){return Ie(Hn,on)},function(Hn){return Ge(Hn,on)},function(Hn){return Ce(Hn,on)});le.push(mn)}),Oe(1));case 22:case"end":return Lt.stop()}},Ke)}));return function(et){return Ct.apply(this,arguments)}}(),We=function(){var Ke=Object(y.a)({},mt.getFieldsValue())||{},et=Ke.commitMessage,at=et===void 0?"":et,Pe=ft.current.filter(function(ht){return ht.status==="error"}),Xe=ft.current.map(function(ht){return Object(y.a)(Object(y.a)({},ht),{},{status:ht.status==="error"?"uploading":ht.status})});Ue(Xe),Pe.forEach(function(ht){var Et=He({file:ht.file,description:at},"".concat(s.a.API_SERVER,"/api/shixuns/").concat(L,"/upload_data_sets.json"),function(Ot){return Ie(Ot,ht)},function(Ot){return Ge(Ot,ht)},function(Ot){return Ce(Ot,ht)});le.push(Et)})},st=function(Ke){if(console.log(Ke,"changedValues"),"fileOss"in Ke){var et,at;if(Ke!=null&&Ke.fileOss.every(function(Pe){return Pe.status==="done"})&&Ke!==null&&Ke!==void 0&&(et=Ke.fileOss)!==null&&et!==void 0&&et.length){e.b.success("\u4E0A\u4F20\u5B8C\u6210!"),Dt(!0);return}if(Ke!=null&&Ke.fileOss.every(function(Pe){return Pe.status==="done"||Pe.status==="error"})&&Ke!==null&&Ke!==void 0&&(at=Ke.fileOss)!==null&&at!==void 0&&at.length){Oe(3),Qe(!1);return}be(ce.filter(function(Pe){var Xe;return Ke==null||((Xe=Ke.fileOss)===null||Xe===void 0)?void 0:Xe.some(function(ht){return ht.name===Pe})}))}de(Object(y.a)({},mt.getFieldsValue()))},Dt=function(Ke){Ke||(J(!0),le.forEach(function(et){et.abort()})),V(),N()},Ht=function(){var Ke=Object(y.a)({},mt.getFieldsValue())||{},et=Ke.fileOss,at=et===void 0?[]:et,Pe=Ye==null?void 0:Ye.every(function(ht){return ht.status==="done"}),Xe=at==null?void 0:at.every(function(ht){return ht.status==="done"});if(!Pe||!Xe){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(){Dt()}});return}Dt()},rn=function(){return d.a.createElement(d.a.Fragment,null,d.a.createElement("div",null,d.a.createElement("i",{className:"iconfont icon-shangchuan font50 ".concat(E.a.colorBlue)})),d.a.createElement("div",{className:"font14 mt30"},"\u62D6\u62FD\u6587\u4EF6\u6216",d.a.createElement("span",{className:"".concat(E.a.colorBlue," ml5")},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))},Bt=function(Ke){console.log(Ke,444)};return d.a.createElement(b.a,{visible:H,wrapClassName:D,onOk:function(){Object(R.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u4E0A\u4F20\u6587\u4EF6"]),mt.submit()},centered:!0,okText:ae===0?"\u786E\u5B9A":ae===1?"\u4E0A\u4F20\u4E2D":"\u91CD\u65B0\u4E0A\u4F20",okButtonProps:{loading:Ae},onCancel:Ht,width:"1000px",title:"\u4E0A\u4F20\u6587\u4EF6"},d.a.createElement("div",{className:E.a.wrap},d.a.createElement(a.a,{className:"mt10",form:mt,scrollToFirstError:!0,layout:"vertical",onFinish:Be,onValuesChange:st},W?d.a.createElement(a.a.Item,{label:d.a.createElement("div",null,"\u9009\u62E9\u6587\u4EF6"," ",d.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"}]},d.a.createElement(M,it," ",rn())):d.a.createElement(a.a.Item,{label:d.a.createElement("div",null,"\u9009\u62E9\u6587\u4EF6"," ",d.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"}]},d.a.createElement(v.b,{identifier:I,cancelUpload:Q,container_type:"Shixun",container_id:F,uploading:ae<3?ae:0,disabled:ae>0,height:300,maxSize:100*1024*1024*1024,description:he.commitMessage||"",text:rn(),onComplete:Bt,realFileName:!0})),!!ce.length&&d.a.createElement("span",{className:E.a.repeatedName},ce.join("\u3001"),"\u5DF2\u5B58\u5728,\u8BF7\u5220\u9664\u540E\u518D\u4E0A\u4F20"),d.a.createElement(a.a.Item,{name:"commitMessage",label:"\u5907\u6CE8:",rules:[{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},d.a.createElement(g.a,{bordered:!1,disabled:ae>0,maxLength:100,suffix:"".concat(((A=he.commitMessage)===null||A===void 0?void 0:A.length)||0,"/100"),placeholder:"\u8BF7\u586B\u5199\u5907\u6CE8\u4FE1\u606F"})))))};z.a=C},LicW:function(k,z,o){"use strict";var P=o("T2oS"),g=o("W9HT"),T=o("5Dmo"),b=o("3S7+"),y=o("q1tI"),x=o.n(y),O=o("ZJlW"),m=o.n(O),e=o("m3rI"),f=o("TSYQ"),a=o.n(f),u=o("1vsH"),r=o("z4EP"),i=o.n(r),n=o("+GGh"),l=o.n(n),h=o("cFMs"),d=o.n(h),s=o("BdwD"),c=function(E){var v=E.className,R=E.dataSource,M=R===void 0?[]:R,C=E.col,S=C===void 0?4:C,_=E.right,A=E.bottom,U=A===void 0?23:A,L=E.precision,N=L===void 0?0:L,V=E.wrapWidth,H=V===void 0?1200:V,D=E.trackEventItems,W=E.loading,F=Math.floor((H-(S-1)*_)/S);return x.a.createElement(g.a,{spinning:W},x.a.createElement("div",{className:a()(m.a.list,v)},!!M.length&&M.map(function(I,K){var ee=I.name,he=I.id,de=I.identifier,Se=I.featured,Te=I.school_name,ce=I.image_url,be=I.excellent;return x.a.createElement("div",{key:he,className:m.a.wrap,style:{width:F,marginRight:(1+K)%S===0?0:_+N,marginBottom:U}},x.a.createElement("a",{target:"_blank",href:"/paths/".concat(de),className:m.a.li,onClick:function(ue){ue.preventDefault(),D&&Object(u.cb)([D]),Object(u.S)("/paths/".concat(de))}},x.a.createElement("div",{className:m.a.img},x.a.createElement("img",{className:m.a.cover,src:"".concat(e.a.IMG_SERVER,"/").concat(ce)}),Se===1&&x.a.createElement("img",{className:m.a.sign,src:i.a}),Se===2&&x.a.createElement("img",{className:m.a.sign,src:""}),Se===3&&x.a.createElement("img",{className:m.a.sign,src:l.a}),Se===4&&x.a.createElement("img",{className:m.a.sign,src:""}),Se===5&&x.a.createElement("img",{className:m.a.sign,src:d.a})),x.a.createElement("div",{className:m.a.name},x.a.createElement(b.a,{title:ee},x.a.createElement("span",{className:m.a.e},ee))),x.a.createElement(b.a,{title:"\u53D1\u5E03\u5355\u4F4D\uFF1A".concat(Te)},x.a.createElement("div",{className:m.a.unit},x.a.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Te)),x.a.createElement("div",{className:m.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,I.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,I.members_count))),be&&x.a.createElement("div",{className:m.a.tag},"\u5F00\u653E\u8BFE\u7A0B"))))}),!M.length&&x.a.createElement(s.a,null)))};z.a=c},M8RZ:function(k,z,o){"use strict";o.d(z,"a",function(){return e});var P=o("fWQN"),g=o("mtLc"),T=o("yKVA"),b=o("879j"),y=o("q1tI"),x=o.n(y),O=o("i8i4"),m=o.n(O),e=function(f){Object(T.a)(u,f);var a=Object(b.a)(u);function u(r){var i;Object(P.a)(this,u),i=a.call(this,r);var n=window.document;return i.node=n.createElement("div"),n.body.appendChild(i.node),i}return Object(g.a)(u,[{key:"render",value:function(){var i=this.props.children;return Object(O.createPortal)(i,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),u}(x.a.Component)},MEgm:function(k,z){k.exports="data:image/png;base64,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"},MI8n:function(k,z,o){"use strict";o.d(z,"c",function(){return y}),o.d(z,"b",function(){return e}),o.d(z,"e",function(){return f}),o.d(z,"a",function(){return a}),o.d(z,"d",function(){return u}),o.d(z,"f",function(){return r});var P=o("/cxE"),g=o("pmY6"),T=o("24hK"),b=o("5Y4S"),y;(function(i){i.None=()=>g.a.None;function n(N){return(V,H=null,D)=>{let W=!1,F;return F=N(I=>W?void 0:(F?F.dispose():W=!0,V.call(H,I)),null,D),W&&F.dispose(),F}}i.once=n;function l(N,V){return E((H,D=null,W)=>N(F=>H.call(D,V(F)),null,W))}i.map=l;function h(N,V){return E((H,D=null,W)=>N(F=>{V(F),H.call(D,F)},null,W))}i.forEach=h;function d(N,V){return E((H,D=null,W)=>N(F=>V(F)&&H.call(D,F),null,W))}i.filter=d;function s(N){return N}i.signal=s;function c(...N){return(V,H=null,D)=>Object(g.e)(...N.map(W=>W(F=>V.call(H,F),null,D)))}i.any=c;function w(N,V,H){let D=H;return l(N,W=>(D=V(D,W),D))}i.reduce=w;function E(N){let V;const H=new e({onFirstListenerAdd(){V=N(H.fire,H)},onLastListenerRemove(){V.dispose()}});return H.event}function v(N,V,H=100,D=!1,W){let F,I,K,ee=0;const he=new e({leakWarningThreshold:W,onFirstListenerAdd(){F=N(de=>{ee++,I=V(I,de),D&&!K&&(he.fire(I),I=void 0),clearTimeout(K),K=setTimeout(()=>{const Se=I;I=void 0,K=void 0,(!D||ee>1)&&he.fire(Se),ee=0},H)})},onLastListenerRemove(){F.dispose()}});return he.event}i.debounce=v;function R(N,V=(H,D)=>H===D){let H=!0,D;return d(N,W=>{const F=H||!V(W,D);return H=!1,D=W,F})}i.latch=R;function M(N,V){return[i.filter(N,V),i.filter(N,H=>!V(H))]}i.split=M;function C(N,V=!1,H=[]){let D=H.slice(),W=N(K=>{D?D.push(K):I.fire(K)});const F=()=>{D&&D.forEach(K=>I.fire(K)),D=null},I=new e({onFirstListenerAdd(){W||(W=N(K=>I.fire(K)))},onFirstListenerDidAdd(){D&&(V?setTimeout(F):F())},onLastListenerRemove(){W&&W.dispose(),W=null}});return I.event}i.buffer=C;class S{constructor(N){this.event=N}map(N){return new S(l(this.event,N))}forEach(N){return new S(h(this.event,N))}filter(N){return new S(d(this.event,N))}reduce(N,V){return new S(w(this.event,N,V))}latch(){return new S(R(this.event))}debounce(N,V=100,H=!1,D){return new S(v(this.event,N,V,H,D))}on(N,V,H){return this.event(N,V,H)}once(N,V,H){return n(this.event)(N,V,H)}}function _(N){return new S(N)}i.chain=_;function A(N,V,H=D=>D){const D=(...K)=>I.fire(H(...K)),W=()=>N.on(V,D),F=()=>N.removeListener(V,D),I=new e({onFirstListenerAdd:W,onLastListenerRemove:F});return I.event}i.fromNodeEventEmitter=A;function U(N,V,H=D=>D){const D=(...K)=>I.fire(H(...K)),W=()=>N.addEventListener(V,D),F=()=>N.removeEventListener(V,D),I=new e({onFirstListenerAdd:W,onLastListenerRemove:F});return I.event}i.fromDOMEventEmitter=U;function L(N){return new Promise(V=>n(N)(V))}i.toPromise=L})(y||(y={}));class x{constructor(i){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${i}_${x._idPool++}`}start(i){this._stopWatch=new b.a(!0),this._listenerCount=i}stop(){if(this._stopWatch){const i=this._stopWatch.elapsed();this._elapsedOverall+=i,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${i.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}x._idPool=0;let O=-1;class m{constructor(i,n=Math.random().toString(18).slice(2,5)){this.customThreshold=i,this.name=n,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(i){let n=O;if(typeof this.customThreshold=="number"&&(n=this.customThreshold),n<=0||i<n)return;this._stacks||(this._stacks=new Map);const l=new Error().stack.split(`
|
|
|
`).slice(3).join(`
|
|
|
`),h=this._stacks.get(l)||0;if(this._stacks.set(l,h+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=n*.5;let d,s=0;for(const[c,w]of this._stacks)(!d||s<w)&&(d=c,s=w);console.warn(`[${this.name}] potential listener LEAK detected, having ${i} listeners already. MOST frequent listener (${s}):`),console.warn(d)}return()=>{const d=this._stacks.get(l)||0;this._stacks.set(l,d-1)}}}class e{constructor(i){var n;this._disposed=!1,this._options=i,this._leakageMon=O>0?new m(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((n=this._options)===null||n===void 0?void 0:n._profName)?new x(this._options._profName):void 0}get event(){return this._event||(this._event=(i,n,l)=>{var h;this._listeners||(this._listeners=new T.a);const d=this._listeners.isEmpty();d&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const s=this._listeners.push(n?[i,n]:i);d&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,i,n);const c=(h=this._leakageMon)===null||h===void 0?void 0:h.check(this._listeners.size),w=Object(g.i)(()=>{if(c&&c(),!this._disposed&&(s(),this._options&&this._options.onLastListenerRemove)){const E=this._listeners&&!this._listeners.isEmpty();E||this._options.onLastListenerRemove(this)}});return l instanceof g.b?l.add(w):Array.isArray(l)&&l.push(w),w}),this._event}fire(i){var n,l;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new T.a);for(let h of this._listeners)this._deliveryQueue.push([h,i]);for((n=this._perfMon)===null||n===void 0||n.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[h,d]=this._deliveryQueue.shift();try{typeof h=="function"?h.call(void 0,d):h[0].call(h[1],d)}catch(s){Object(P.f)(s)}}(l=this._perfMon)===null||l===void 0||l.stop()}}dispose(){var i,n,l,h,d;this._disposed||(this._disposed=!0,(i=this._listeners)===null||i===void 0||i.clear(),(n=this._deliveryQueue)===null||n===void 0||n.clear(),(h=(l=this._options)===null||l===void 0?void 0:l.onLastListenerRemove)===null||h===void 0||h.call(l),(d=this._leakageMon)===null||d===void 0||d.dispose())}}class f extends e{constructor(i){super(i);this._isPaused=0,this._eventQueue=new T.a,this._mergeFn=i==null?void 0:i.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const i=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(i))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(i){this._listeners&&(this._isPaused!==0?this._eventQueue.push(i):super.fire(i))}}class a extends f{constructor(i){var n;super(i);this._delay=(n=i.delay)!==null&&n!==void 0?n:100}fire(i){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(i)}}class u{constructor(){this.buffers=[]}wrapEvent(i){return(n,l,h)=>i(d=>{const s=this.buffers[this.buffers.length-1];s?s.push(()=>n.call(l,d)):n.call(l,d)},void 0,h)}bufferEvents(i){const n=[];this.buffers.push(n);const l=i();return this.buffers.pop(),n.forEach(h=>h()),l}}class r{constructor(){this.listening=!1,this.inputEvent=y.None,this.inputEventListener=g.a.None,this.emitter=new e({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(i){this.inputEvent=i,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=i(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},MNsG:function(k,z,o){"use strict";(function(P,g){o.d(z,"b",function(){return l}),o.d(z,"i",function(){return c}),o.d(z,"f",function(){return w}),o.d(z,"d",function(){return E}),o.d(z,"g",function(){return v}),o.d(z,"h",function(){return R}),o.d(z,"c",function(){return M}),o.d(z,"k",function(){return C}),o.d(z,"j",function(){return S}),o.d(z,"a",function(){return _}),o.d(z,"e",function(){return L});var T;const b="en";let y=!1,x=!1,O=!1,m=!1,e=!1,f=!1,a=!1,u,r=b,i,n;const l=typeof self=="object"?self:typeof P=="object"?P:{};let h;typeof l.vscode!="undefined"&&typeof l.vscode.process!="undefined"?h=l.vscode.process:typeof g!="undefined"&&(h=g);const d=typeof((T=h==null?void 0:h.versions)===null||T===void 0?void 0:T.electron)=="string"&&h.type==="renderer";if(typeof navigator=="object"&&!d)n=navigator.userAgent,y=n.indexOf("Windows")>=0,x=n.indexOf("Macintosh")>=0,a=(n.indexOf("Macintosh")>=0||n.indexOf("iPad")>=0||n.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,O=n.indexOf("Linux")>=0,f=!0,u=navigator.language,r=u;else if(typeof h=="object"){y=h.platform==="win32",x=h.platform==="darwin",O=h.platform==="linux",m=O&&!!h.env.SNAP&&!!h.env.SNAP_REVISION,u=b,r=b;const N=h.env.VSCODE_NLS_CONFIG;if(N)try{const V=JSON.parse(N),H=V.availableLanguages["*"];u=V.locale,r=H||b,i=V._translationsConfigFile}catch(V){}e=!0}else console.error("Unable to resolve platform.");let s=0;x?s=1:y?s=3:O&&(s=2);const c=y,w=x,E=O,v=e,R=f,M=a,C=n,S=function(){if(l.setImmediate)return l.setImmediate.bind(l);if(typeof l.postMessage=="function"&&!l.importScripts){let H=[];l.addEventListener("message",W=>{if(W.data&&W.data.vscodeSetImmediateId)for(let F=0,I=H.length;F<I;F++){const K=H[F];if(K.id===W.data.vscodeSetImmediateId){H.splice(F,1),K.callback();return}}});let D=0;return W=>{const F=++D;H.push({id:F,callback:W}),l.postMessage({vscodeSetImmediateId:F},"*")}}if(typeof(h==null?void 0:h.nextTick)=="function")return h.nextTick.bind(h);const V=Promise.resolve();return H=>V.then(H)}(),_=x||a?2:y?1:3;let A=!0,U=!1;function L(){if(!U){U=!0;const N=new Uint8Array(2);N[0]=1,N[1]=2;const V=new Uint16Array(N.buffer);A=V[0]===(2<<8)+1}return A}}).call(this,o("IyRk"),o("Q2Ig"))},MlIO:function(k,z,o){(function(P,g){k.exports=z=g(o("Ib8C"))})(this,function(P){return function(g){var T=P,b=T.lib,y=b.Base,x=b.WordArray,O=T.x64={},m=O.Word=y.extend({init:function(f,a){this.high=f,this.low=a}}),e=O.WordArray=y.extend({init:function(f,a){f=this.words=f||[],a!=g?this.sigBytes=a:this.sigBytes=f.length*8},toX32:function(){for(var f=this.words,a=f.length,u=[],r=0;r<a;r++){var i=f[r];u.push(i.high),u.push(i.low)}return x.create(u,this.sigBytes)},clone:function(){for(var f=y.clone.call(this),a=f.words=this.words.slice(0),u=a.length,r=0;r<u;r++)a[r]=a[r].clone();return f}})}(),P})},N0LK:function(k,z,o){"use strict";o.d(z,"C",function(){return P}),o.d(z,"v",function(){return T}),o.d(z,"s",function(){return b}),o.d(z,"t",function(){return y}),o.d(z,"U",function(){return x}),o.d(z,"J",function(){return O}),o.d(z,"O",function(){return m}),o.d(z,"p",function(){return e}),o.d(z,"T",function(){return f}),o.d(z,"q",function(){return a}),o.d(z,"N",function(){return u}),o.d(z,"M",function(){return r}),o.d(z,"Q",function(){return i}),o.d(z,"u",function(){return n}),o.d(z,"x",function(){return l}),o.d(z,"I",function(){return h}),o.d(z,"f",function(){return d}),o.d(z,"h",function(){return s}),o.d(z,"g",function(){return c}),o.d(z,"i",function(){return w}),o.d(z,"G",function(){return E}),o.d(z,"H",function(){return v}),o.d(z,"r",function(){return R}),o.d(z,"R",function(){return M}),o.d(z,"d",function(){return C}),o.d(z,"e",function(){return S}),o.d(z,"E",function(){return _}),o.d(z,"F",function(){return A}),o.d(z,"j",function(){return U}),o.d(z,"z",function(){return L}),o.d(z,"K",function(){return V}),o.d(z,"L",function(){return H}),o.d(z,"m",function(){return W}),o.d(z,"k",function(){return I}),o.d(z,"A",function(){return ee}),o.d(z,"a",function(){return he}),o.d(z,"n",function(){return de}),o.d(z,"l",function(){return Se}),o.d(z,"D",function(){return Te}),o.d(z,"B",function(){return ce}),o.d(z,"b",function(){return be}),o.d(z,"S",function(){return Ee}),o.d(z,"o",function(){return ue}),o.d(z,"P",function(){return le}),o.d(z,"w",function(){return $}),o.d(z,"c",function(){return me}),o.d(z,"y",function(){return Oe});function P(J){return!J||typeof J!="string"?!0:J.trim().length===0}const g=/{(\d+)}/g;function T(J,...ve){return ve.length===0?J:J.replace(g,function(_e,Ae){const Qe=parseInt(Ae,10);return isNaN(Qe)||Qe<0||Qe>=ve.length?_e:ve[Qe]})}function b(J){return J.replace(/[<>&]/g,function(ve){switch(ve){case"<":return"<";case">":return">";case"&":return"&";default:return ve}})}function y(J){return J.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function x(J,ve=" "){const _e=O(J,ve);return m(_e,ve)}function O(J,ve){if(!J||!ve)return J;const _e=ve.length;if(_e===0||J.length===0)return J;let Ae=0;for(;J.indexOf(ve,Ae)===Ae;)Ae=Ae+_e;return J.substring(Ae)}function m(J,ve){if(!J||!ve)return J;const _e=ve.length,Ae=J.length;if(_e===0||Ae===0)return J;let Qe=Ae,tt=-1;for(;!(tt=J.lastIndexOf(ve,Qe-1),tt===-1||tt+_e!==Qe);){if(tt===0)return"";Qe=tt}return J.substring(0,Qe)}function e(J){return J.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function f(J){return J.replace(/\*/g,"")}function a(J,ve,_e={}){if(!J)throw new Error("Cannot create regex from empty string");ve||(J=y(J)),_e.wholeWord&&(/\B/.test(J.charAt(0))||(J="\\b"+J),/\B/.test(J.charAt(J.length-1))||(J=J+"\\b"));let Ae="";return _e.global&&(Ae+="g"),_e.matchCase||(Ae+="i"),_e.multiline&&(Ae+="m"),_e.unicode&&(Ae+="u"),new RegExp(J,Ae)}function u(J){if(J.source==="^"||J.source==="^$"||J.source==="$"||J.source==="^\\s*$")return!1;const ve=J.exec("");return!!(ve&&J.lastIndex===0)}function r(J){return(J.global?"g":"")+(J.ignoreCase?"i":"")+(J.multiline?"m":"")+(J.unicode?"u":"")}function i(J){return J.split(/\r\n|\r|\n/)}function n(J){for(let ve=0,_e=J.length;ve<_e;ve++){const Ae=J.charCodeAt(ve);if(Ae!==32&&Ae!==9)return ve}return-1}function l(J,ve=0,_e=J.length){for(let Ae=ve;Ae<_e;Ae++){const Qe=J.charCodeAt(Ae);if(Qe!==32&&Qe!==9)return J.substring(ve,Ae)}return J.substring(ve,_e)}function h(J,ve=J.length-1){for(let _e=ve;_e>=0;_e--){const Ae=J.charCodeAt(_e);if(Ae!==32&&Ae!==9)return _e}return-1}function d(J,ve){return J<ve?-1:J>ve?1:0}function s(J,ve,_e=0,Ae=J.length,Qe=0,tt=ve.length){for(;_e<Ae&&Qe<tt;_e++,Qe++){let vt=J.charCodeAt(_e),yt=ve.charCodeAt(Qe);if(vt<yt)return-1;if(vt>yt)return 1}const dt=Ae-_e,mt=tt-Qe;return dt<mt?-1:dt>mt?1:0}function c(J,ve){return w(J,ve,0,J.length,0,ve.length)}function w(J,ve,_e=0,Ae=J.length,Qe=0,tt=ve.length){for(;_e<Ae&&Qe<tt;_e++,Qe++){let vt=J.charCodeAt(_e),yt=ve.charCodeAt(Qe);if(vt===yt)continue;if(vt>=128||yt>=128)return s(J.toLowerCase(),ve.toLowerCase(),_e,Ae,Qe,tt);E(vt)&&(vt-=32),E(yt)&&(yt-=32);const Ye=vt-yt;if(Ye===0)continue;return Ye}const dt=Ae-_e,mt=tt-Qe;return dt<mt?-1:dt>mt?1:0}function E(J){return J>=97&&J<=122}function v(J){return J>=65&&J<=90}function R(J,ve){return J.length===ve.length&&w(J,ve)===0}function M(J,ve){const _e=ve.length;return ve.length>J.length?!1:w(J,ve,0,_e)===0}function C(J,ve){let _e,Ae=Math.min(J.length,ve.length);for(_e=0;_e<Ae;_e++)if(J.charCodeAt(_e)!==ve.charCodeAt(_e))return _e;return Ae}function S(J,ve){let _e,Ae=Math.min(J.length,ve.length);const Qe=J.length-1,tt=ve.length-1;for(_e=0;_e<Ae;_e++)if(J.charCodeAt(Qe-_e)!==ve.charCodeAt(tt-_e))return _e;return Ae}function _(J){return 55296<=J&&J<=56319}function A(J){return 56320<=J&&J<=57343}function U(J,ve){return(J-55296<<10)+(ve-56320)+65536}function L(J,ve,_e){const Ae=J.charCodeAt(_e);if(_(Ae)&&_e+1<ve){const Qe=J.charCodeAt(_e+1);if(A(Qe))return U(Ae,Qe)}return Ae}function N(J,ve){const _e=J.charCodeAt(ve-1);if(A(_e)&&ve>1){const Ae=J.charCodeAt(ve-2);if(_(Ae))return U(Ae,_e)}return _e}function V(J,ve){const _e=re.getInstance(),Ae=ve,Qe=J.length,tt=L(J,Qe,ve);ve+=tt>=65536?2:1;let dt=_e.getGraphemeBreakType(tt);for(;ve<Qe;){const mt=L(J,Qe,ve),vt=_e.getGraphemeBreakType(mt);if(me(dt,vt))break;ve+=mt>=65536?2:1,dt=vt}return ve-Ae}function H(J,ve){const _e=re.getInstance(),Ae=ve,Qe=N(J,ve);ve-=Qe>=65536?2:1;let tt=_e.getGraphemeBreakType(Qe);for(;ve>0;){const dt=N(J,ve),mt=_e.getGraphemeBreakType(dt);if(me(mt,tt))break;ve-=dt>=65536?2:1,tt=mt}return Ae-ve}const D=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function W(J){return D.test(J)}const F=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function I(J){return F.test(J)}const K=/^[\t\n\r\x20-\x7E]*$/;function ee(J){return K.test(J)}const he=/[\u2028\u2029]/;function de(J){return he.test(J)}function Se(J){for(let ve=0,_e=J.length;ve<_e;ve++)if(Te(J.charCodeAt(ve)))return!0;return!1}function Te(J){return J=+J,J>=11904&&J<=55215||J>=63744&&J<=64255||J>=65281&&J<=65374}function ce(J){return J>=127462&&J<=127487||J===8986||J===8987||J===9200||J===9203||J>=9728&&J<=10175||J===11088||J===11093||J>=127744&&J<=128591||J>=128640&&J<=128764||J>=128992&&J<=129003||J>=129280&&J<=129535||J>=129648&&J<=129750}const be=String.fromCharCode(65279);function Ee(J){return!!(J&&J.length>0&&J.charCodeAt(0)===65279)}function ue(J,ve=!1){return J?(ve&&(J=J.replace(/\\./g,"")),J.toLowerCase()!==J):!1}function le(J){const ve=90-65+1;return J=J%(2*ve),J<ve?String.fromCharCode(97+J):String.fromCharCode(65+J-ve)}function $(J){const ve=re.getInstance();return ve.getGraphemeBreakType(J)}function me(J,ve){return J===0?ve!==5&&ve!==7:J===2&&ve===3?!1:J===4||J===2||J===3||(ve===4||ve===2||ve===3)?!0:J===8&&(ve===8||ve===9||ve===11||ve===12)||((J===11||J===9)&&(ve===9||ve===10)||((J===12||J===10)&&ve===10||(ve===5||ve===13||(ve===7||(J===1||J===13&&ve===14)))))?!1:!(J===6&&ve===6)}class re{constructor(){this._data=ae()}static getInstance(){return re._INSTANCE||(re._INSTANCE=new re),re._INSTANCE}getGraphemeBreakType(J){if(J<32)return J===10?3:J===13?2:4;if(J<127)return 0;const ve=this._data,_e=ve.length/3;let Ae=1;for(;Ae<=_e;)if(J<ve[3*Ae])Ae=2*Ae;else if(J>ve[3*Ae+1])Ae=2*Ae+1;else return ve[3*Ae+2];return 0}}re._INSTANCE=null;function ae(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function Oe(J,ve){if(J===0)return 0;const _e=se(J,ve);if(_e!==void 0)return _e;const Ae=N(ve,J);return J-=te(Ae),J}function se(J,ve){let _e=N(ve,J);for(J-=te(_e);Q(_e)||_e===65039||_e===8419;){if(J===0)return;_e=N(ve,J),J-=te(_e)}if(!ce(_e))return;if(J>=0){const Ae=N(ve,J);Ae===8205&&(J-=te(Ae))}return J}function te(J){return J>=65536?2:1}function Q(J){return 127995<=J&&J<=127999}},N3QO:function(k,z,o){"use strict";var P=o("2qtc"),g=o("kLXV"),T=o("tJVT"),b=o("q1tI"),y=o.n(b),x=o("9kvl"),O=o("FPkq"),m=o.n(O),e=function(a){var u,r=a.newShixuns,i=a.dispatch,n=a.user,l=Object(b.useState)(!1),h=Object(T.a)(l,2),d=h[0],s=h[1];Object(b.useEffect)(function(){r.actionTabs.key==="Create-Environment"&&w()},[r==null||((u=r.actionTabs)===null||u===void 0)?void 0:u.key]);var c=function(){i({type:"newShixuns/setActionTabs",payload:{}})},w=function(){var v,R,M;c(),((v=n.userInfo)===null||v===void 0?void 0:v.mirror_marker_status)===0?s(!0):((R=n.userInfo)===null||R===void 0?void 0:R.mirror_marker_status)===1?x.d.push("/shixuns/new/CreateImg"):((M=n.userInfo)===null||M===void 0?void 0:M.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 S;x.d.push("/users/".concat((S=n.userInfo)===null||S===void 0?void 0:S.login,"/experiment-img"))}})};return y.a.createElement(g.a,{title:"\u52A0\u5165qq\u7FA4\u63D0\u793A",visible:d,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:m.a,alt:"\u4E8C\u7EF4\u7801"})),y.a.createElement("img",null))};z.a=Object(x.a)(function(f){var a=f.newShixuns,u=f.user,r=f.globalSetting;return{newShixuns:a,globalSetting:r,user:u}})(e)},NFKh:function(k,z,o){(function(P,g,T){k.exports=z=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(P){return P})},NLgs:function(k,z,o){"use strict";o.d(z,"e",function(){return c}),o.d(z,"f",function(){return w}),o.d(z,"d",function(){return v}),o.d(z,"c",function(){return R}),o.d(z,"a",function(){return M}),o.d(z,"b",function(){return C});var P=o("miYZ"),g=o("tsqr"),T=o("9og8"),b=o("2qtc"),y=o("kLXV"),x=o("WmNS"),O=o.n(x),m=o("q1tI"),e=o.n(m),f=o("9kvl"),a=o("xKgJ"),u=o("1vsH"),r=o("RCxd"),i=o("yTi+"),n=o.n(i),l=o("1ZF9"),h=o.n(l),d=o("NoGO"),s=o.n(d),c=function(_){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!!(w(_)&&E(A))},w=function(_){return Object(a.p)()?!0:(_({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},E=function(){var _,A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,U=Object(f.c)()._store.getState(),L=U.user;return(_=L.userInfo)!==null&&_!==void 0&&_.profile_completed?!0:(y.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:A?"\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(){f.d.push("/account/profile/edit")}}),!1)},v=function(){var _,A=Object(f.c)()._store.getState(),U=A.user;return(_=U.userInfo)!==null&&_!==void 0&&_.professional_certification?!0:(y.a.confirm({title:"\u63D0\u793A",centered:!0,content:e.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)},R=function(){return Object(a.a)()?!0:(y.a.warning({centered:!0,width:530,title:"\u63D0\u793A",content:e.a.createElement("div",{className:"tc",style:{marginLeft:-38}},e.a.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),e.a.createElement("img",{src:s.a,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1)},M=function(_,A){return _?!0:(y.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:e.a.createElement("div",null,e.a.createElement("p",null,A||"\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"),e.a.createElement("div",{style:{marginLeft:"110px"}},e.a.createElement("img",{src:h.a,width:200}),e.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)},C=function(_){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",U=Object(f.c)()._store.getState(),L=U.shixunsDetail.detail;return(L==null?void 0:L.public)===2||(L==null?void 0:L.public)===1||(L==null?void 0:L.shixun_status)===3?(y.a.info({centered:!0,icon:e.a.createElement(r.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:e.a.createElement("div",{className:"tc",style:{marginLeft:-38}},e.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},e.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(L==null?void 0:L.public)===2?"\u5DF2\u516C\u5F00":(L==null?void 0:L.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",A,"\u3002"),e.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),e.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):(L==null?void 0:L.shixun_status)===2?(y.a.confirm({centered:!0,icon:e.a.createElement(r.a,null),title:"\u63D0\u793A",content:e.a.createElement("div",null,e.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",A,"\u3002"),e.a.createElement("br",null),e.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:e.a.createElement(r.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 V=Object(T.a)(O.a.mark(function D(){var W;return O.a.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,_({type:"shixunsDetail/cancelRelease",payload:{id:L==null?void 0:L.identifier}});case 2:W=I.sent,W.status!==401&&(g.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),_({type:"shixunsDetail/getShixunsDetail",payload:{id:L==null?void 0:L.identifier}}),_({type:"practiceSetting/getCommonData",payload:{id:L==null?void 0:L.identifier}}));case 4:case"end":return I.stop()}},D)}));function H(){return V.apply(this,arguments)}return H}()})}}),!0):!1}},NQs2:function(k,z,o){k.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(k,z,o){"use strict";o.d(z,"a",function(){return m}),o.d(z,"h",function(){return n}),o.d(z,"l",function(){return s}),o.d(z,"e",function(){return M}),o.d(z,"i",function(){return A}),o.d(z,"j",function(){return ue}),o.d(z,"c",function(){return le.a}),o.d(z,"b",function(){return Oe}),o.d(z,"g",function(){return J}),o.d(z,"f",function(){return Qe}),o.d(z,"k",function(){return jt}),o.d(z,"d",function(){return He});var P=o("q1tI"),g=o.n(P),T=o("NQs2"),b=o.n(T),y=o("ygoZ"),x=o.n(y),O=function(Ce){var Ie=Ce.dataSource,Fe=Ie===void 0?[]:Ie,Be=Ce.img,We=Ce.imgWidth,st=We===void 0?346:We,Dt=Ce.title,Ht=Ce.sunTitle,rn=Ce.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,Dt),g.a.createElement("span",null,Ht)),Fe.length>0&&g.a.createElement("div",{className:b.a.btns},Fe.map(function(Bt,Ct){return g.a.createElement("div",{key:Ct,onClick:Bt.click},Bt.name,Bt.sign?g.a.createElement("img",{src:x.a,width:39}):null)})),rn),g.a.createElement("img",{style:{marginTop:33,marginRight:38},src:Be,width:st})))},m=O,e=o("tJVT"),f=o("6nfa"),a=o.n(f),u=o("TSYQ"),r=o.n(u),i=function(Ce){var Ie=Ce.dataSource,Fe=Ie===void 0?[]:Ie,Be=Ce.value,We=Ce.onChange,st=Ce.className,Dt=Ce.title,Ht=Ce.titleWidth,rn=Ht===void 0?41:Ht,Bt=Ce.style,Ct=Bt===void 0?{}:Bt,Ke=Ce.fontColor,et=Ke===void 0?"#6A7283":Ke,at=Object(P.useState)(0),Pe=Object(e.a)(at,2),Xe=Pe[0],ht=Pe[1],Et=Object(P.useState)(!1),Ot=Object(e.a)(Et,2),Mt=Ot[0],lt=Ot[1],Ft=Object(P.useRef)(null);return Object(P.useEffect)(function(){if(Fe.length!==0){var Lt;(Ft==null||((Lt=Ft.current)===null||Lt===void 0)?void 0:Lt.clientHeight)>92?ht(1):ht(0)}Fe.length===0&&ht(0)},[Fe]),g.a.createElement("div",{className:r()(a.a.row,st),style:Ct},g.a.createElement("div",{style:{width:rn,marginTop:Mt?12:4},className:a.a.title},Dt),g.a.createElement("div",{className:Mt?"".concat(a.a.tagsWrap," ").concat(a.a.tagsBorderWrap):a.a.tagsWrap},g.a.createElement("div",{className:a.a.bar,style:Xe>0?{height:Xe===1?92:"auto",overflow:Xe===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},g.a.createElement("div",{className:a.a.name,ref:Ft},Fe==null?void 0:Fe.map(function(Lt){return g.a.createElement("span",{onClick:function(){return We(Lt.id)},key:Lt.id,title:Lt.name,style:{color:et},className:Be===Lt.id?a.a.active:""},Lt.name)}))),!!Xe&&g.a.createElement(P.Fragment,null,Xe===1?g.a.createElement("div",{onClick:function(){var on;ht(2),(Ft==null||((on=Ft.current)===null||on===void 0)?void 0:on.clientHeight)>205?lt(!0):lt(!1)},className:a.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(){ht(1),lt(!1)},className:a.a.action},"\u6536\u8D77",g.a.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},n=i,l=o("cz0n"),h=o.n(l),d=function(Ce){var Ie=Ce.dataSource,Fe=Ie===void 0?[]:Ie,Be=Ce.value,We=Ce.onChange,st=Ce.className;return g.a.createElement("div",{className:r()(h.a.tabs,st)},Fe.map(function(Dt){return g.a.createElement("span",{onClick:function(){return We(Dt.id)},className:Be===Dt.id?h.a.active:"",key:Dt.id},Dt.name)}))},s=d,c=o("5NDa"),w=o("5rEg"),E=o("KOXS"),v=o.n(E),R=function(Ce){var Ie,Fe=Ce.dataSource,Be=Fe===void 0?[]:Fe,We=Ce.value,st=Ce.onChange,Dt=Ce.className,Ht=Ce.style,rn=Ht===void 0?{}:Ht,Bt=Ce.placeholder,Ct=Object(P.useState)(""),Ke=Object(e.a)(Ct,2),et=Ke[0],at=Ke[1],Pe=Object(P.useState)(""),Xe=Object(e.a)(Pe,2),ht=Xe[0],Et=Xe[1];Object(P.useEffect)(function(){var lt;(lt=JSON.stringify(We))!==null&<!==void 0&<.includes("{")?(at(We.id),Et(We.value)):Et(We)},[We]);var Ot=function(){st(ht||null,et||"")},Mt=function(Ft){if(Ft===et)return;at(Ft),st(ht,Ft)};return g.a.createElement("div",{className:r()(v.a.input,Dt),style:rn},!!Be.length&&g.a.createElement("div",{className:v.a.dropdown},g.a.createElement("div",{className:v.a.text},(Ie=Be.find(function(lt){return lt.id===et}))===null||Ie===void 0?void 0:Ie.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},Be.map(function(lt,Ft){return g.a.createElement("div",{key:Ft,onClick:function(){return Mt(lt.id)}},lt.name)}))),g.a.createElement(w.a,{onPressEnter:Ot,value:ht,onChange:function(Ft){return Et(Ft.target.value||"")},bordered:!1,placeholder:Bt}),g.a.createElement("i",{onClick:Ot,className:"iconfont icon-sousuo9 font14 pl10 current"}))},M=R,C=o("f9pc"),S=o.n(C),_=function(Ce){var Ie=Ce.value,Fe=Ce.onChange,Be=Ce.className,We=Ce.total,st=Ce.pageSize,Dt=Ce.style,Ht=Dt===void 0?{}:Dt,rn=Ie<2,Bt=Ie>=Math.ceil(We/st);return We<=st?g.a.createElement(g.a.Fragment,null):g.a.createElement("div",{className:r()(S.a.quickPager,Be),style:Ht},g.a.createElement("div",{onClick:function(){rn||Fe(Ie-1,"prev")},className:rn?S.a.disabled:""},"\u4E0A\u4E00\u9875"),g.a.createElement("div",{onClick:function(){Bt||Fe(Ie+1,"next")},className:Bt?S.a.disabled:""},"\u4E0B\u4E00\u9875"))},A=_,U=o("T2oS"),L=o("W9HT"),N=o("pC0b"),V=o("GzdX"),H=o("5Dmo"),D=o("3S7+"),W=o("Oe0F"),F=o.n(W),I=o("m3rI"),K=o("1vsH"),ee=o("JAbv"),he=o.n(ee),de=o("Bq7L"),Se=o.n(de),Te=o("MEgm"),ce=o.n(Te),be=o("BdwD"),Ee=function(Ce){var Ie=Ce.className,Fe=Ce.dataSource,Be=Fe===void 0?[]:Fe,We=Ce.col,st=We===void 0?4:We,Dt=Ce.right,Ht=Ce.bottom,rn=Ht===void 0?23:Ht,Bt=Ce.precision,Ct=Bt===void 0?0:Bt,Ke=Ce.wrapWidth,et=Ke===void 0?1200:Ke,at=Ce.trackEventItems,Pe=Ce.loading,Xe=Math.floor((et-(st-1)*Dt)/st);return g.a.createElement(L.a,{spinning:Pe},g.a.createElement("div",{className:r()(F.a.list,Ie)},!!Be.length&&Be.map(function(ht,Et){var Ot=ht.name,Mt=ht.id,lt=ht.identifier,Ft=ht.power,Lt=ht.cover_image_id,on=ht.pic;return g.a.createElement("div",{className:F.a.wrap,key:Mt,style:{width:Xe,marginRight:(1+Et)%st===0?0:Dt+Ct,marginBottom:rn}},g.a.createElement("a",{target:"_blank",href:"/shixuns/".concat(lt,"/challenges"),className:F.a.li,onClick:function(Hn){Hn.preventDefault(),at&&Object(K.cb)([at]),Ft&&Object(K.S)("/shixuns/".concat(lt,"/challenges"))}},g.a.createElement("div",{className:F.a.img},g.a.createElement("img",{className:F.a.cover,src:Lt?"".concat(I.a.API_SERVER,"/api/attachments/").concat(Lt):"".concat(I.a.IMG_SERVER,"/").concat(on)}),ht.is_jupyter&&g.a.createElement("img",{className:F.a.sign,src:he.a}),ht.is_jupyter_lab&&g.a.createElement("img",{className:F.a.sign,src:Se.a}),ht.is_unity_3d&&g.a.createElement("img",{className:F.a.sign,src:ce.a})),g.a.createElement("div",{className:F.a.name},g.a.createElement(D.a,{title:Ot||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},g.a.createElement("span",{className:F.a.e},Ot||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),g.a.createElement("div",{className:F.a.tags},g.a.createElement(D.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,ht.challenges_count))),!!ht.myshixuns_count&&g.a.createElement(D.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,ht.myshixuns_count))),g.a.createElement(D.a,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},g.a.createElement("span",null,g.a.createElement("span",null,ht.level))),g.a.createElement("div",{className:F.a.rate},g.a.createElement(V.a,{allowHalf:!0,disabled:!0,defaultValue:ht.score_info}),g.a.createElement("span",null,"\xA0",ht.score_info?"".concat(ht.score_info,"\u5206"):"5\u5206")))),!Ft&&g.a.createElement("div",{className:F.a.lockWrap},g.a.createElement("img",{src:"".concat(I.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")))}),!Be.length&&g.a.createElement(be.a,null)))},ue=Ee,le=o("LicW"),$=o("iL++"),me=o.n($),re=o("xiVL"),ae=function(Ce){var Ie=Ce.className,Fe=Ce.dataSource,Be=Fe===void 0?[]:Fe,We=Ce.col,st=We===void 0?4:We,Dt=Ce.right,Ht=Ce.bottom,rn=Ht===void 0?23:Ht,Bt=Ce.precision,Ct=Bt===void 0?0:Bt,Ke=Ce.wrapWidth,et=Ke===void 0?1200:Ke,at=Ce.trackEventItems,Pe=Ce.loading,Xe=Math.floor((et-(st-1)*Dt)/st);return g.a.createElement(L.a,{spinning:Pe},g.a.createElement("div",{className:r()(me.a.list,Ie)},!!Be.length&&Be.map(function(ht,Et){var Ot=ht.subject_identifier,Mt=ht.id,lt=ht.identifier,Ft=ht.power,Lt=ht.is_public!=0&&ht.is_public;return g.a.createElement("div",{className:me.a.wrap,key:Mt,style:{width:Xe,marginRight:(1+Et)%st===0?0:Dt+Ct,marginBottom:rn}},g.a.createElement("a",{className:me.a.li,onClick:function(mn){mn.preventDefault()}},g.a.createElement("div",{className:me.a.top},g.a.createElement(D.a,{title:ht.name},g.a.createElement("div",{className:me.a.name},ht.name)),g.a.createElement("img",{className:me.a.img,src:I.a.IMG_SERVER+"/images/"+ht.avatar_url}),g.a.createElement("div",{className:me.a.text},ht.creator),Ot&&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")),Lt&&g.a.createElement("div",{className:me.a.sign},"\u516C\u5F00")),g.a.createElement("div",{className:me.a.bottom},ht.visits>0&&g.a.createElement(D.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,ht.visits))),ht.course_members_count>0&&g.a.createElement(D.a,{title:"\u6210\u5458",placement:"bottom"},g.a.createElement("span",null,g.a.createElement("i",{className:"iconfont icon-chengyuan"}),ht.course_members_count)),ht.tasks_count>0&&g.a.createElement(D.a,{title:"\u4F5C\u4E1A",placement:"bottom"},g.a.createElement("span",null,g.a.createElement("i",{className:"iconfont icon-zuoye"}),ht.tasks_count)),ht.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},ht.is_accessible?g.a.createElement(g.a.Fragment,null,Ot&&g.a.createElement("div",{onClick:function(){return Object(K.S)("/paths/".concat(Ot))}},"\u8FDB\u5165\u5B9E\u8DF5\u8BFE\u7A0B"),g.a.createElement("div",{onClick:function(mn){at&&Object(K.cb)([at]),Object(K.S)(ht.first_category_url)}},"\u8FDB\u5165\u6559\u5B66\u8BFE\u5802")):g.a.createElement(g.a.Fragment,null,g.a.createElement("img",{src:"".concat(I.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"))))}),!Be.length&&g.a.createElement(be.a,null)))},Oe=ae,se=o("f0W+"),te=o.n(se),Q=function(Ce){var Ie=Ce.dataSource,Fe=Ie===void 0?[]:Ie,Be=Ce.value,We=Ce.onChange,st=Ce.className,Dt=Ce.style,Ht=Dt===void 0?{}:Dt,rn=Ce.tabBarExtraContent;return g.a.createElement("div",{className:r()(te.a.tabs,st),style:Ht},g.a.createElement("div",{className:te.a.tabsWrap},Fe.map(function(Bt,Ct){return g.a.createElement("div",{onClick:function(){return We(Bt.id)},className:Be===Bt.id?te.a.active:"",key:Ct},Bt.name)})),g.a.createElement("div",{className:te.a.tabBar},rn))},J=Q,ve=o("9JIy"),_e=o.n(ve),Ae=function(Ce){var Ie=Ce.className,Fe=Ce.style,Be=Fe===void 0?{}:Fe,We=Ce.children;return g.a.createElement("div",{className:r()(_e.a.table,Ie),style:Be},We)},Qe=Ae,tt=o("qVdP"),dt=o("jsC+"),mt=o("lUTK"),vt=o("BvKs"),yt=o("8WcF"),Ye=o.n(yt),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(Ce){var Ie,Fe=Ce.sortValue,Be=Ce.dropValue,We=Ce.className,st=Ce.onSort,Dt=Ce.onDrop,Ht=Ce.dataSource,rn=Ht===void 0?Ue:Ht;return g.a.createElement("div",{className:r()(Ye.a.orderWrap,We)},g.a.createElement(dt.a,{overlay:g.a.createElement(vt.a,null,rn.map(function(Bt,Ct){return g.a.createElement(vt.a.Item,{key:Ct,onClick:function(){return Dt(Bt.id)}},Bt.name)}))},g.a.createElement("span",{className:Ye.a.orderTextWrap},(Ie=rn.find(function(Bt){return Be===Bt.id}))===null||Ie===void 0?void 0:Ie.name)),g.a.createElement("span",{className:Ye.a.orderIconWrap},g.a.createElement("span",{className:Ye.a.orderAsc},g.a.createElement("i",{className:Fe==="asc"?"iconfont icon-sanjiaoxing-up font12 ".concat(Ye.a.cursorPointer," ").concat(Ye.a.active):"iconfont icon-sanjiaoxing-up font12 ".concat(Ye.a.cursorPointer),onClick:function(){return st(Fe==="asc"?"desc":"asc")}})),g.a.createElement("span",{className:Ye.a.orderDesc},g.a.createElement("i",{className:Fe==="desc"?"iconfont icon-sanjiaoxing-down font12 ".concat(Ye.a.cursorPointer," ").concat(Ye.a.active):"iconfont icon-sanjiaoxing-down font12 ".concat(Ye.a.cursorPointer),onClick:function(){return st(Fe==="asc"?"desc":"asc")}}))))},jt=ft,bt=o("siWv"),Pt=o.n(bt),it=function(Ce){var Ie=Ce.className,Fe=Ce.style,Be=Ce.children,We=Ce.onClick;return g.a.createElement("div",{onClick:We,className:r()(Pt.a.btn,Ie),style:Fe},Be)},He=it},Nmxd:function(k,z){k.exports="data:image/png;base64,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"},NoGO:function(k,z,o){k.exports=o.p+"static/newqrcode.d852fdfc.png"},NvD2:function(k,z,o){"use strict";o.d(z,"a",function(){return x});var P=o("Kwbf");function g(O,m){var e=new Set;return O.forEach(function(f){m.has(f)||e.add(f)}),e}function T(O){var m=O||{},e=m.disabled,f=m.disableCheckbox,a=m.checkable;return!!(e||f)||a===!1}function b(O,m,e,f){for(var a=new Set(O),u=new Set,r=0;r<=e;r+=1){var i=m.get(r)||new Set;i.forEach(function(d){var s=d.key,c=d.node,w=d.children,E=w===void 0?[]:w;a.has(s)&&!f(c)&&E.filter(function(v){return!f(v.node)}).forEach(function(v){a.add(v.key)})})}for(var n=new Set,l=e;l>=0;l-=1){var h=m.get(l)||new Set;h.forEach(function(d){var s=d.parent,c=d.node;if(f(c)||!d.parent||n.has(d.parent.key))return;if(f(d.parent.node)){n.add(s.key);return}var w=!0,E=!1;(s.children||[]).filter(function(v){return!f(v.node)}).forEach(function(v){var R=v.key,M=a.has(R);w&&!M&&(w=!1),!E&&(M||u.has(R))&&(E=!0)}),w&&a.add(s.key),E&&u.add(s.key),n.add(s.key)})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(g(u,a))}}function y(O,m,e,f,a){for(var u=new Set(O),r=new Set(m),i=0;i<=f;i+=1){var n=e.get(i)||new Set;n.forEach(function(s){var c=s.key,w=s.node,E=s.children,v=E===void 0?[]:E;!u.has(c)&&!r.has(c)&&!a(w)&&v.filter(function(R){return!a(R.node)}).forEach(function(R){u.delete(R.key)})})}r=new Set;for(var l=new Set,h=f;h>=0;h-=1){var d=e.get(h)||new Set;d.forEach(function(s){var c=s.parent,w=s.node;if(a(w)||!s.parent||l.has(s.parent.key))return;if(a(s.parent.node)){l.add(c.key);return}var E=!0,v=!1;(c.children||[]).filter(function(R){return!a(R.node)}).forEach(function(R){var M=R.key,C=u.has(M);E&&!C&&(E=!1),!v&&(C||r.has(M))&&(v=!0)}),E||u.delete(c.key),v&&r.add(c.key),l.add(c.key)})}return{checkedKeys:Array.from(u),halfCheckedKeys:Array.from(g(r,u))}}function x(O,m,e,f){var a=[],u;f?u=f:u=T;var r=new Set(O.filter(function(h){var d=!!e[h];return d||a.push(h),d})),i=new Map,n=0;Object.keys(e).forEach(function(h){var d=e[h],s=d.level,c=i.get(s);c||(c=new Set,i.set(s,c)),c.add(d),n=Math.max(n,s)}),Object(P.a)(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(h){return"'".concat(h,"'")}).join(", ")));var l;return m===!0?l=b(r,i,n,u):l=y(r,m.halfCheckedKeys,i,n,u),l}},OLES:function(k,z,o){"use strict";var P=o("U8pU"),g=o("VTBJ"),T=o("Ff2n"),b=o("q1tI"),y=o("uciX"),x=o("7ixt"),O=function(r){var i=r.overlay,n=r.prefixCls,l=r.id,h=r.overlayInnerStyle;return b.createElement("div",{className:"".concat(n,"-inner"),id:l,role:"tooltip",style:h},typeof i=="function"?i():i)},m=O,e=function(r,i){var n=r.overlayClassName,l=r.trigger,h=l===void 0?["hover"]:l,d=r.mouseEnterDelay,s=d===void 0?0:d,c=r.mouseLeaveDelay,w=c===void 0?.1:c,E=r.overlayStyle,v=r.prefixCls,R=v===void 0?"rc-tooltip":v,M=r.children,C=r.onVisibleChange,S=r.afterVisibleChange,_=r.transitionName,A=r.animation,U=r.placement,L=U===void 0?"right":U,N=r.align,V=N===void 0?{}:N,H=r.destroyTooltipOnHide,D=H===void 0?!1:H,W=r.defaultVisible,F=r.getTooltipContainer,I=r.overlayInnerStyle,K=Object(T.a)(r,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),ee=Object(b.useRef)(null);Object(b.useImperativeHandle)(i,function(){return ee.current});var he=Object(g.a)({},K);"visible"in r&&(he.popupVisible=r.visible);var de=function(){var Ee=r.arrowContent,ue=Ee===void 0?null:Ee,le=r.overlay,$=r.id;return[b.createElement("div",{className:"".concat(R,"-arrow"),key:"arrow"},ue),b.createElement(m,{key:"content",prefixCls:R,id:$,overlay:le,overlayInnerStyle:I})]},Se=!1,Te=!1;if(typeof D=="boolean")Se=D;else if(D&&Object(P.a)(D)==="object"){var ce=D.keepParent;Se=ce===!0,Te=ce===!1}return b.createElement(y.a,Object.assign({popupClassName:n,prefixCls:R,popup:de,action:h,builtinPlacements:x.a,popupPlacement:L,ref:ee,popupAlign:V,getPopupContainer:F,onPopupVisibleChange:C,afterPopupVisibleChange:S,popupTransitionName:_,popupAnimation:A,defaultPopupVisible:W,destroyPopupOnHide:Se,autoDestroy:Te,mouseLeaveDelay:w,popupStyle:E,mouseEnterDelay:s},he),M)},f=Object(b.forwardRef)(e),a=z.a=f},OLod:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("K3mO"))})(this,function(P){P.lib.Cipher||function(g){var T=P,b=T.lib,y=b.Base,x=b.WordArray,O=b.BufferedBlockAlgorithm,m=T.enc,e=m.Utf8,f=m.Base64,a=T.algo,u=a.EvpKDF,r=b.Cipher=O.extend({cfg:y.extend(),createEncryptor:function(_,A){return this.create(this._ENC_XFORM_MODE,_,A)},createDecryptor:function(_,A){return this.create(this._DEC_XFORM_MODE,_,A)},init:function(_,A,U){this.cfg=this.cfg.extend(U),this._xformMode=_,this._key=A,this.reset()},reset:function(){O.reset.call(this),this._doReset()},process:function(_){return this._append(_),this._process()},finalize:function(_){_&&this._append(_);var A=this._doFinalize();return A},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function _(A){return typeof A=="string"?S:R}return function(A){return{encrypt:function(U,L,N){return _(L).encrypt(A,U,L,N)},decrypt:function(U,L,N){return _(L).decrypt(A,U,L,N)}}}}()}),i=b.StreamCipher=r.extend({_doFinalize:function(){var _=this._process(!0);return _},blockSize:1}),n=T.mode={},l=b.BlockCipherMode=y.extend({createEncryptor:function(_,A){return this.Encryptor.create(_,A)},createDecryptor:function(_,A){return this.Decryptor.create(_,A)},init:function(_,A){this._cipher=_,this._iv=A}}),h=n.CBC=function(){var _=l.extend();_.Encryptor=_.extend({processBlock:function(U,L){var N=this._cipher,V=N.blockSize;A.call(this,U,L,V),N.encryptBlock(U,L),this._prevBlock=U.slice(L,L+V)}}),_.Decryptor=_.extend({processBlock:function(U,L){var N=this._cipher,V=N.blockSize,H=U.slice(L,L+V);N.decryptBlock(U,L),A.call(this,U,L,V),this._prevBlock=H}});function A(U,L,N){var V,H=this._iv;H?(V=H,this._iv=g):V=this._prevBlock;for(var D=0;D<N;D++)U[L+D]^=V[D]}return _}(),d=T.pad={},s=d.Pkcs7={pad:function(_,A){for(var U=A*4,L=U-_.sigBytes%U,N=L<<24|L<<16|L<<8|L,V=[],H=0;H<L;H+=4)V.push(N);var D=x.create(V,L);_.concat(D)},unpad:function(_){var A=_.words[_.sigBytes-1>>>2]&255;_.sigBytes-=A}},c=b.BlockCipher=r.extend({cfg:r.cfg.extend({mode:h,padding:s}),reset:function(){var _;r.reset.call(this);var A=this.cfg,U=A.iv,L=A.mode;this._xformMode==this._ENC_XFORM_MODE?_=L.createEncryptor:(_=L.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==_?this._mode.init(this,U&&U.words):(this._mode=_.call(L,this,U&&U.words),this._mode.__creator=_)},_doProcessBlock:function(_,A){this._mode.processBlock(_,A)},_doFinalize:function(){var _,A=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(A.pad(this._data,this.blockSize),_=this._process(!0)):(_=this._process(!0),A.unpad(_)),_},blockSize:128/32}),w=b.CipherParams=y.extend({init:function(_){this.mixIn(_)},toString:function(_){return(_||this.formatter).stringify(this)}}),E=T.format={},v=E.OpenSSL={stringify:function(_){var A,U=_.ciphertext,L=_.salt;return L?A=x.create([1398893684,1701076831]).concat(L).concat(U):A=U,A.toString(f)},parse:function(_){var A,U=f.parse(_),L=U.words;return L[0]==1398893684&&L[1]==1701076831&&(A=x.create(L.slice(2,4)),L.splice(0,4),U.sigBytes-=16),w.create({ciphertext:U,salt:A})}},R=b.SerializableCipher=y.extend({cfg:y.extend({format:v}),encrypt:function(_,A,U,L){L=this.cfg.extend(L);var N=_.createEncryptor(U,L),V=N.finalize(A),H=N.cfg;return w.create({ciphertext:V,key:U,iv:H.iv,algorithm:_,mode:H.mode,padding:H.padding,blockSize:_.blockSize,formatter:L.format})},decrypt:function(_,A,U,L){L=this.cfg.extend(L),A=this._parse(A,L.format);var N=_.createDecryptor(U,L).finalize(A.ciphertext);return N},_parse:function(_,A){return typeof _=="string"?A.parse(_,this):_}}),M=T.kdf={},C=M.OpenSSL={execute:function(_,A,U,L){L||(L=x.random(64/8));var N=u.create({keySize:A+U}).compute(_,L),V=x.create(N.words.slice(A),U*4);return N.sigBytes=A*4,w.create({key:N,iv:V,salt:L})}},S=b.PasswordBasedCipher=R.extend({cfg:R.cfg.extend({kdf:C}),encrypt:function(_,A,U,L){L=this.cfg.extend(L);var N=L.kdf.execute(U,_.keySize,_.ivSize);L.iv=N.iv;var V=R.encrypt.call(this,_,A,N.key,L);return V.mixIn(N),V},decrypt:function(_,A,U,L){L=this.cfg.extend(L),A=this._parse(A,L.format);var N=L.kdf.execute(U,_.keySize,_.ivSize,A.salt);L.iv=N.iv;var V=R.decrypt.call(this,_,A,N.key,L);return V}})}()})},OZM5:function(k,z,o){"use strict";o.d(z,"b",function(){return f}),o.d(z,"a",function(){return a}),o.d(z,"k",function(){return u}),o.d(z,"h",function(){return r}),o.d(z,"i",function(){return i}),o.d(z,"g",function(){return n}),o.d(z,"c",function(){return l}),o.d(z,"d",function(){return h}),o.d(z,"j",function(){return c}),o.d(z,"e",function(){return w}),o.d(z,"f",function(){return E});var P=o("KQm4"),g=o("U8pU"),T=o("Ff2n"),b=o("q1tI"),y=o.n(b),x=o("Kwbf"),O=o("WaYH"),m=.25,e=2;function f(v,R){var M=v.slice(),C=M.indexOf(R);return C>=0&&M.splice(C,1),M}function a(v,R){var M=v.slice();return M.indexOf(R)===-1&&M.push(R),M}function u(v){return v.split("-")}function r(v,R){return"".concat(v,"-").concat(R)}function i(v){return v&&v.type&&v.type.isTreeNode}function n(v,R){var M=[v],C=R[v];function S(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];_.forEach(function(A){var U=A.key,L=A.children;M.push(U),S(L)})}return S(C.children),M}function l(v,R){var M=v.clientY,C=R.selectHandle.getBoundingClientRect(),S=C.top,_=C.bottom,A=C.height,U=Math.max(A*m,e);return M<=S+U?-1:M>=_-U?1:0}function h(v,R){if(!v)return;var M=R.multiple;return M?v.slice():v.length?[v[0]]:v}var d=function(R){return R};function s(v,R){if(!v)return[];var M=R||{},C=M.processProps,S=C===void 0?d:C,_=Array.isArray(v)?v:[v];return _.map(function(A){var U=A.children,L=Object(T.a)(A,["children"]),N=s(U,R);return y.a.createElement(O.a,Object.assign({},S(L)),N)})}function c(v){if(!v)return null;var R;if(Array.isArray(v))R={checkedKeys:v,halfCheckedKeys:void 0};else if(Object(g.a)(v)==="object")R={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 R}function w(v,R){var M=new Set;function C(S){if(M.has(S))return;var _=R[S];if(!_)return;M.add(S);var A=_.parent,U=_.node;if(U.disabled)return;A&&C(A.key)}return(v||[]).forEach(function(S){C(S)}),Object(P.a)(M)}function E(v){var R={};return Object.keys(v).forEach(function(M){(M.startsWith("data-")||M.startsWith("aria-"))&&(R[M]=v[M])}),R}},Oe0F:function(k,z,o){k.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(k,z,o){k.exports=o.p+"static/certificate.fc32dc1b.jpg"},Ot1p:function(k,z,o){"use strict";var P=o("2qtc"),g=o("kLXV"),T=o("rAM+"),b=o("miYZ"),y=o("tsqr"),x=o("9og8"),O=o("tJVT"),m=o("jrin"),e=o("WmNS"),f=o.n(e),a=o("q1tI"),u=o.n(a),r=o("VrN/"),i=o.n(r),n=o("bdgK"),l=o("p77/"),h=o("Bd2K"),d=o("ELLl"),s=o("19Vz"),c=o("lZu9"),w=o("+NIl"),E=o("kSUc"),v=o("9Bee"),R=function(We){var st=We.value,Dt=st===void 0?"":st,Ht=We.className,rn=We.showTextOnly,Bt=We.showLines,Ct=We.style,Ke=Ct===void 0?{}:Ct,et=Object(a.useMemo)(function(){return""},[Dt]);return u.a.createElement(u.a.Fragment,null,u.a.createElement("div",{dangerouslySetInnerHTML:{__html:et}}))},M=o("0Owb"),C=o("dejd"),S=o("C+DQ"),_=o("1vsH"),A=o("m3rI"),U=[{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 L(We){var st=We.onActionCallback,Dt=We.title,Ht=We.icon,rn=We.actionName,Bt=We.className,Ct=Bt===void 0?"":Bt,Ke=We.children;function et(){st(rn)}return u.a.createElement("a",{title:Dt,className:Ct,onClick:et},u.a.createElement("i",{className:"md-iconfont ".concat(Ht)}),Ke)}var N=function(We){var st=We.watch,Dt=We.showNullButton,Ht=We.onActionCallback,rn=We.fullScreen,Bt=We.insertTemp,Ct=We.hidetoolBar,Ke=We.uuid,et=We.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(_.F)("_educoder_session_login"),"&_educoder_session=").concat(Object(_.F)("_educoder_session"),"&key=").concat(Ke,"&api=").concat(encodeURIComponent(A.a.PROXY_SERVER)));var at=[].concat(U,[{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"},!Ct&&at.map(function(Pe,Xe){return u.a.createElement("li",{key:Xe},Pe.actionName?u.a.createElement(L,Object(M.a)({},Pe,{onActionCallback:Ht})):u.a.createElement("span",{className:"v-line"}))}),Dt?u.a.createElement("li",null,u.a.createElement(L,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Ht},u.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Bt&&u.a.createElement("li",null,u.a.createElement(L,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(Bt),onActionCallback:Ht},u.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),u.a.createElement("li",{className:"btn-full-screen"},u.a.createElement(L,{icon:"".concat(rn?"icon-shrink":"icon-enlarge"),title:rn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ht})))},V=o("M8RZ"),H=o("+L6B"),D=o("2/Rp"),W=o("y8nQ"),F=o("Vl3Y"),I=o("5NDa"),K=o("5rEg"),ee={labelCol:{span:4},wrapperCol:{span:20}},he=function(We){var st=We.callback,Dt=We.onCancel;function Ht(rn){st(rn)}return u.a.createElement(F.a,Object(M.a)({},ee,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Ht}),u.a.createElement(F.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},u.a.createElement(K.a,null)),u.a.createElement(F.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},u.a.createElement(K.a,null)),u.a.createElement("div",{className:"flex-container flex-end"},u.a.createElement(D.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),u.a.createElement(D.a,{type:"ghost",onClick:Dt},"\u53D6\u6D88")))},de=o("7ahc"),Se=o("HmJG"),Te=o("BjJ7"),ce=F.a.useForm,be={width:280,marginRight:10},Ee={labelCol:{span:5},wrapperCol:{span:19}},ue=function(We){var st=We.callback,Dt=We.onCancel,Ht=ce(),rn=Object(O.a)(Ht,1),Bt=rn[0];function Ct(at){st(at)}function Ke(at,Pe){if(at.status===-1){y.b.error(at.message);return}Bt.setFieldsValue({src:"/api/attachments/".concat(at.id),type:Pe.type})}function et(at){var Pe=at.target.files[0];$(Pe,Ke)}return u.a.createElement(F.a,Object(M.a)({form:Bt},Ee,{className:"upload-image-panel",onFinish:Ct}),u.a.createElement(F.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},u.a.createElement("div",{className:"flex-container"},u.a.createElement(F.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},u.a.createElement(K.a,{style:be})),u.a.createElement(le,{onFileChange:et}))),u.a.createElement(F.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},u.a.createElement(K.a,{style:{width:264}})),u.a.createElement(F.a.Item,{style:{textAlign:"right"}},u.a.createElement(D.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),u.a.createElement(D.a,{type:"ghost",onClick:Dt},"\u53D6\u6D88")))};function le(We){var st=We.onFileChange;return u.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",u.a.createElement("input",{type:"file",onChange:st}))}function $(We,st){if(!We)throw new String("\u6CA1\u6709\u6587\u4EF6");var Dt=new FormData;Dt.append("editormd-image-file",We),Dt.append("file_param_name","editormd-image-file"),Dt.append("byxhr","true");var Ht=new window.XMLHttpRequest;Ht.withCredentials=!0,Ht.addEventListener("load",function(rn){st(JSON.parse(rn.target.responseText),We)},!1),Ht.addEventListener("error",function(rn){console.error(rn)},!1),Ht.open("POST","".concat(Te.a,"/api/attachments.json")),Ht.send(Dt)}var me=o("giR+"),re=o("fyUT"),ae=o("7Kak"),Oe=o("9yH6"),se=Oe.a.Group,te={margin:"0 8px"},Q=function(We){var st=We.callback,Dt=We.onCancel;function Ht(rn){st(rn)}return u.a.createElement(F.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Ht},u.a.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},u.a.createElement("span",{style:te},"\u5355\u5143\u683C\u6570\uFF1A"),u.a.createElement("span",{style:te},"\u884C\u6570"),u.a.createElement(F.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},u.a.createElement(re.a,null)),u.a.createElement("span",{style:te},"\u5217\u6570"),u.a.createElement(F.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:te},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),u.a.createElement(F.a.Item,{name:"align"},u.a.createElement(se,null,u.a.createElement(Oe.a,{value:"default"},u.a.createElement("i",{className:"fa fa-align-justify"})),u.a.createElement(Oe.a,{value:"left"},u.a.createElement("i",{className:"fa fa-align-left"})),u.a.createElement(Oe.a,{value:"center"},u.a.createElement("i",{className:"fa fa-align-center"})),u.a.createElement(Oe.a,{value:"right"},u.a.createElement("i",{className:"fa fa-align-right"}))))),u.a.createElement("div",{className:"flex-container flex-end"},u.a.createElement(D.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),u.a.createElement(D.a,{type:"ghost",onClick:Dt},"\u53D6\u6D88")))},J=o("ErOA"),ve=o("7Cbv"),_e="link",Ae="upload-image",Qe="code-block",tt="add-table",dt="------------",mt={default:dt,left:":".concat(dt),center:":".concat(dt,":"),right:"".concat(dt,":")},vt=o("9VGf"),yt,Ye;function Ue(){}var ft=0,jt=1e4,bt="\u2581",Pt=`
|
|
|
**\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 it(We){return/^\d+$/.test(We)?"".concat(We,"px"):We}var He=navigator.platform.toUpperCase().indexOf("MAC")>=0,Ge=He?"Cmd":"Ctrl",Ce=["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"],Ie=(yt={},Object(m.a)(yt,Ge+"-B","bold"),Object(m.a)(yt,Ge+"-I","italic"),yt),Fe=(Ye={},Object(m.a)(Ye,_e,"\u6DFB\u52A0\u94FE\u63A5"),Object(m.a)(Ye,Qe,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(m.a)(Ye,Ae,"\u6DFB\u52A0\u6587\u4EF6"),Object(m.a)(Ye,tt,"\u6DFB\u52A0\u8868\u683C"),Ye),Be=z.a=function(We){var st=We.defaultValue,Dt=st===void 0?"":st,Ht=We.onChange,rn=We.width,Bt=rn===void 0?"100%":rn,Ct=We.height,Ke=Ct===void 0?400:Ct,et=We.miniToolbar,at=et===void 0?!1:et,Pe=We.isFocus,Xe=Pe===void 0?!1:Pe,ht=We.watch,Et=We.insertTemp,Ot=We.mode,Mt=Ot===void 0?"markdown":Ot,lt=We.id,Ft=lt===void 0?"markdown-editor-id":lt,Lt=We.showResizeBar,on=Lt===void 0?!1:Lt,mn=We.noStorage,Hn=mn===void 0?!1:mn,Xn=We.showNullButton,Fn=Xn===void 0?!1:Xn,xn=We.hidetoolBar,fr=xn===void 0?!1:xn,Yn=We.fullScreen,ar=Yn===void 0?!1:Yn,nr=We.onBlur,Rr=We.onCMBeforeChange,pr=We.onFullScreen,sn=We.className,qt=sn===void 0?"":sn,On=We.disablePaste,Fr=On===void 0?!1:On,Or=We.placeholder,xr=Or===void 0?"":Or,dr=We.values,pe=dr===void 0?"":dr,X=Object(a.useState)(null),q=Object(O.a)(X,2),oe=q[0],De=q[1],fe=Object(a.useState)(Dt),ot=Object(O.a)(fe,2),Qt=ot[0],Mn=ot[1],Vn=Object(a.useState)(ht),$t=Object(O.a)(Vn,2),gn=$t[0],pn=$t[1],Ar=Object(a.useState)(ar),ra=Object(O.a)(Ar,2),oa=ra[0],ir=ra[1],Ra=Object(a.useState)(""),La=Object(O.a)(Ra,2),ca=La[0],Ka=La[1],wa=Object(a.useState)(0),Ja=Object(O.a)(wa,2),ja=Ja[0],li=Ja[1],oi=Object(a.useState)(Ke),fa=Object(O.a)(oi,2),ma=fa[0],la=fa[1],xe=Object(a.useState)(!1),ut=Object(O.a)(xe,2),Rt=ut[0],wt=ut[1],Kt=Object(a.useRef)(Object(ve.a)()),Nt=Object(a.useRef)(!1),Xt=Object(a.useRef)(),nn=Object(a.useRef)(),yn=Object(a.useRef)(),vn=Object(a.useRef)(),Nn=Object(a.useRef)(),An=function(){var en=Object(x.a)(f.a.mark(function wn(){var _n,In;return f.a.wrap(function(or){for(;;)switch(or.prev=or.next){case 0:return or.next=2,Object(J.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Kt.current}});case 2:In=or.sent,In!=null&&(_n=In.attachments)!==null&&_n!==void 0&&_n.length&&(console.log("cm:",oe,nn),In.attachments.map(function(qn){qn.content_type.indexOf("image")>-1?oe.replaceSelection(".concat(qn.content_type,")")):qn.content_type.indexOf("video")>-1?oe.replaceSelection('<video width="100%" controls src="'.concat(A.a.API_SERVER,"/api/attachments/").concat(data.id,'"></video>')):qn.content_type.indexOf("pdf")>-1?oe.replaceSelection('<a href="'.concat(A.a.API_SERVER,"/api/attachments/").concat(qn.id,"?type=").concat(qn.content_type,'&disposition=inline" target="_blank">').concat(qn.name,"</a>")):oe.replaceSelection("[".concat(qn.name,"](").concat(A.a.API_SERVER,"/api/attachments/").concat(qn.id,"?type=").concat(qn.content_type,")"))}));case 4:case"end":return or.stop()}},wn)}));return function(){return en.apply(this,arguments)}}();Object(a.useEffect)(function(){Mn(pe),oe==null||oe.setValue(pe)},[pe]),Object(a.useEffect)(function(){pr==null||pr(oa)},[oa]),Object(a.useEffect)(function(){if(nn.current){var en=i.a.fromTextArea(nn.current,{mode:Mt,lineNumbers:!at,lineWrapping:!0,value:Dt,autoCloseTags:!0,autoCloseBrackets:!0});Xe&&en.focus();function wn(_n,In){if(Fr){In.preventDefault();return}var Un=In.clipboardData;if(Un){var or=Un.types.toString(),qn=Un.items;if(or==="Files"||Un.types.indexOf("Files")>-1){if(In.preventDefault(),Mt=="stex")return;try{var Pr,Lr=qn[1];((Pr=qn[0])===null||Pr===void 0?void 0:Pr.kind)==="file"&&(Lr=qn[0]);var Qn=Lr.getAsFile(),Dr=Qn.name.split(".").pop();$(Qn,function(vr){if(vr.id){var zr,Nr,$r;(Qn==null||((zr=Qn.type)===null||zr===void 0)?void 0:zr.indexOf("image"))>-1?en.replaceSelection(".concat(vr.content_type,")")):(Qn==null||((Nr=Qn.type)===null||Nr===void 0)?void 0:Nr.indexOf("video"))>-1?en.replaceSelection('<video width="100%" controls src="'.concat(A.a.API_SERVER,"/api/attachments/").concat(vr.id,'"></video>')):(Qn==null||(($r=Qn.type)===null||$r===void 0)?void 0:$r.indexOf("pdf"))>-1?en.replaceSelection('<a href="'.concat(A.a.API_SERVER,"/api/attachments/").concat(vr.id,"?type=").concat(Qn.type,'&disposition=inline" target="_blank">').concat(Qn.name,"</a>")):Ce.includes(Dr)?en.replaceSelection('<a href="'.concat(A.a.API_SERVER,"/api/attachments/").concat(vr.id,'?type=office&disposition=inline" target="_blank">').concat(Qn.name,"</a>")):en.replaceSelection("[".concat(Qn.name,"](").concat(A.a.API_SERVER,"/api/attachments/").concat(vr.id,"?type=").concat(vr.content_type,")"))}else(vr==null?void 0:vr.status)===401&&(document.location.href="/user/login")})}catch(vr){y.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return en.on("paste",wn),en.on("dragleave",function(_n,In){yn.current.classList.remove("mouse-hover-md")}),en.on("dragover",function(_n,In){yn.current.classList.add("mouse-hover-md")}),en.on("drop",function(_n,In){yn.current.classList.add("mouse-hover-md");var Un;if(Un=In.dataTransfer.files,Un.length>0){In.preventDefault(),In.stopPropagation();for(var or=function(Lr){var Qn=Un[Lr],Dr=Qn.name.split(".").pop();$(Qn,function(vr){if(vr.id){var zr,Nr,$r;(Qn==null||((zr=Qn.type)===null||zr===void 0)?void 0:zr.indexOf("image"))>-1?en.replaceSelection(".concat(vr.content_type,")")):(Qn==null||((Nr=Qn.type)===null||Nr===void 0)?void 0:Nr.indexOf("video"))>-1?en.replaceSelection('<video width="100%" controls src="'.concat(A.a.API_SERVER,"/api/attachments/").concat(vr.id,'"></video>')):(Qn==null||(($r=Qn.type)===null||$r===void 0)?void 0:$r.indexOf("pdf"))>-1?en.replaceSelection('<a href="'.concat(A.a.API_SERVER,"/api/attachments/").concat(vr.id,"?type=").concat(Qn.type,'&disposition=inline" target="_blank">').concat(Qn.name,"</a>")):Ce.includes(Dr)?en.replaceSelection('<a href="'.concat(A.a.API_SERVER,"/api/attachments/").concat(vr.id,'?type=office&disposition=inline" target="_blank">').concat(Qn.name,"</a>")):en.replaceSelection("[".concat(Qn.name,"](").concat(A.a.API_SERVER,"/api/attachments/").concat(vr.id,"?type=").concat(vr.content_type,")"))}else(vr==null?void 0:vr.status)===401&&(document.location.href="/user/login")})},qn=0;qn<Un.length;qn++)or(qn)}}),De(en),function(){en.off("paste",wn)}}},[]);var an=Object(a.useCallback)(function(){if(yn.current)try{}catch(en){console.log(en,"---- to set md editor body height")}},[ma,yn,oa]);Object(a.useEffect)(function(){function en(){var _n=new n.default(function(In){var Un=Object(T.a)(In),or;try{for(Un.s();!(or=Un.n()).done;){var qn=or.value;(qn.target.offsetHeight>0||qn.target.offsetWidth>0)&&(an(),oe.setSize("100%","100%"),oe.refresh())}}catch(Pr){Un.e(Pr)}finally{Un.f()}});return _n.observe(nn.current.parentElement),_n}if(oe){var wn=en();return function(){wn.unobserve(nn.current.parentElement)}}},[oe,an]),Object(a.useEffect)(function(){if(oe){for(var en=[],wn=function(){var qn=In[_n];Un=Object(O.a)(qn,2);var Pr=Un[0],Lr=Un[1],Qn=Object(m.a)({},Pr,function(){Pn(Lr)});en.push(Qn),oe.addKeyMap(Qn)},_n=0,In=Object.entries(Ie);_n<In.length;_n++){var Un;wn()}return Xt.current=setInterval(function(){Nt.current&&An()},4e3),function(){clearInterval(Xt.current);var or=Object(T.a)(en),qn;try{for(or.s();!(qn=or.n()).done;){var Pr=qn.value;oe.removeKeyMap(Pr)}}catch(Lr){or.e(Lr)}finally{or.f()}}}},[oe]),Object(a.useEffect)(function(){ar!==oa&&ir(ar)},[ar]),Object(vt.a)(function(){if(!Hn&&ja>0){var en=new Date().getTime(),wn=window.sessionStorage.getItem(Ft);en>=ja+jt&&(!wn||wn!==Qt)&&(window.sessionStorage.setItem(Ft,Qt),wt(!0))}},jt),Object(a.useEffect)(function(){pn(ht)},[oe,ht]),Object(a.useEffect)(function(){oe&&(Xe&&oe.focus())},[oe,Xe]),Object(a.useEffect)(function(){if(gn&&oe){var en=oe.getScrollerElement();function wn(_n){var In=_n.target;if(Nn.current){var Un=In.scrollTop/In.scrollHeight;Nn.current.scrollTop=Nn.current.scrollHeight*Un}}return en.addEventListener("scroll",wn),function(){en.removeEventListener("scroll",wn)}}},[oe,gn]),Object(a.useEffect)(function(){if(oe&&Rr){function en(wn,_n){Rr(wn,_n)}return oe.on("beforeChange",en),function(){oe.off("beforeChange",en)}}},[oe,Rr]),Object(a.useEffect)(function(){if(oe&&nr){function en(){nr(oe.getValue())}return oe.on("blur",en),function(){oe.off("blur",en)}}},[oe,nr]),Object(a.useEffect)(function(){if(oe){function en(wn){var _n=wn.getValue();Mn(_n),li(new Date().getTime()),wn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Ht&&Ht(_n)}return oe.on("change",en),function(){oe.off("change",en)}}},[oe,Ht]),Object(a.useEffect)(function(){oe&&(Dt==null?(oe.setValue(""),Mn("")):Dt!==oe.getValue()&&(oe.setValue(Dt),Mn(Dt),oe.setCursor(oe.lineCount(),0)))},[oe,Dt]);var Pn=Object(a.useCallback)(function(en){var wn=oe.getCursor(),_n=oe.getSelection(),In=_n.split(`
|
|
|
`);switch(en){case"bold":return oe.replaceSelection("**"+_n+"**"),_n===""&&oe.setCursor(wn.line,wn.ch+2),oe.focus();case"italic":return oe.replaceSelection("*"+_n+"*"),_n===""&&oe.setCursor(wn.line,wn.ch+1),oe.focus();case"code":return oe.replaceSelection("`"+_n+"`"),_n===""&&oe.setCursor(wn.line,wn.ch+1),oe.focus();case"inline-latex":return oe.replaceSelection("`$$"+_n+"$$`"),_n===""&&oe.setCursor(wn.line,wn.ch+3),oe.focus();case"latex":return oe.replaceSelection("```latex\n"+_n+"\n```"),oe.setCursor(wn.line+1,_n.length+1),oe.focus();case"line-break":return oe.replaceSelection(`<br/>
|
|
|
`),oe.focus();case"list-ul":return _n===""?oe.replaceSelection("- "+_n):oe.replaceSelection(In.map(function(Un){return Un===""?"":"- ".concat(Un)}).join(`
|
|
|
`)),oe.focus();case"list-ol":return _n===""?oe.replaceSelection("1. "+_n):oe.replaceSelection(In.map(function(Un,or){return Un===""?"":"".concat(or+1,". ").concat(Un)}).join(`
|
|
|
`)),oe.focus();case"add-null-ch":return _n===""&&oe.setCursor(wn.line,wn.ch+1),oe.replaceSelection(bt),oe.focus();case"inster-template-1":return _n===""&&oe.setCursor(wn.line,wn.ch),oe.replaceSelection(Pt),oe.focus();case"eraser":return oe.setValue(""),oe.focus();case"trigger-watch":return pn(!gn),oe.focus();case"trigger-full-screen":return ir(!oa),oe.focus();case _e:Ka(_e);return;case Qe:Ka(Qe);return;case Ae:Ka(Ae);return;case tt:Ka(tt);return;default:throw new Error}},[oe,gn,oa]),bn=Object(a.useCallback)(function(en){Ka("");switch(ca){case _e:var wn=en.title,_n=en.link;return oe.replaceSelection("[".concat(wn,"](").concat(_n,")")),oe.focus();case Qe:var In=en.language,Un=en.content;return oe.replaceSelection(["```"+In,Un,"```"].join(`
|
|
|
`)),oe.focus();case Ae:var or=en.src,qn=en.alt;return qn?oe.replaceSelection(".concat(or,' "').concat(qn,'" )')):oe.replaceSelection("")),oe.focus();case tt:for(var Pr=en.row,Lr=en.col,Qn=en.align,Dr=`
|
|
|
`,vr=0;vr<Pr;vr++){for(var zr=[],Nr=[],$r=0;$r<Lr;$r++)vr===1&&Nr.push(mt[Qn]),zr.push(" ");vr===1&&(Dr+="| ".concat(Nr.join(" | "),` |
|
|
|
`)),Dr+="| ".concat(zr.join(Lr===1?"":" | "),` |
|
|
|
`)}return oe.replaceSelection(Dr+`
|
|
|
`),oe.focus();default:throw new Error}},[oe,ca]),kn=Object(a.useMemo)(function(){switch(ca){case _e:return u.a.createElement(he,{callback:bn,onCancel:Rn});case Qe:return u.a.createElement(de.b,{callback:bn,onCancel:Rn});case Ae:return u.a.createElement(ue,{callback:bn,onCancel:Rn});case tt:return u.a.createElement(Q,{callback:bn,onCancel:Rn});default:return null}},[ca]);function Rn(){Ka("")}Object(a.useEffect)(function(){if(vn.current){var en=vn.current,wn=!1,_n=0;function In(qn){wn=!0,_n=qn.pageY}function Un(){wn=!1}function or(qn){if(wn){var Pr=qn.pageY-_n;Pr<0&&(Pr=0),Pr>300&&(Pr=300);var Lr=Ke+Pr+"px";la(Lr)}}return en.addEventListener("mousedown",In),document.addEventListener("mousemove",or),document.addEventListener("mouseup",Un),function(){en.removeEventListener("mousedown",In),document.removeEventListener("mousemove",or),document.removeEventListener("mouseup",Un)}}},[oe,vn]),Object(a.useEffect)(function(){la(Ke)},[Ke]);var Jn=it(Bt),mr=it(ma),Br={width:Jn,height:mr},Sn=Object(a.useMemo)(function(){if(ja){var en=new Date(ja),wn=en.getHours(),_n=en.getMinutes(),In=en.getSeconds();return wn=wn<10?"0"+wn:wn,_n=_n<10?"0"+_n:_n,In=In<10?"0"+In:In,"".concat(wn,":").concat(_n,":").concat(In)}return 0},[ja]);function Yt(){window.sessionStorage.removeItem(Ft),wt(!1),li(0)}function dn(){wt(!1),li(0),oe.setValue(window.sessionStorage.getItem(Ft))}function Dn(en,wn){var _n=oe.getValue();_n=_n.replace(en,wn),Mn(_n),oe==null||oe.setValue(_n)}return u.a.createElement(a.Fragment,null,u.a.createElement("div",{className:"markdown-editor-wrapper",ref:yn},u.a.createElement("div",{className:"markdown-editor-container ".concat(qt," ").concat(gn?"on-preview":""," ").concat(at?"mini":""," ").concat(oa?"full-screen":""),style:Br},u.a.createElement(N,{insertTemp:Et,watch:gn,fullScreen:oa,showNullButton:Fn,onActionCallback:Pn,hidetoolBar:fr,uuid:Kt.current,setOpenPhones:function(){Nt.current=!0}}),u.a.createElement("div",{className:"markdown-editor-body"},u.a.createElement("div",{className:"codemirror-container"},u.a.createElement("textarea",{ref:nn,placeholder:xr})),gn?u.a.createElement("div",{ref:Nn,className:"preview-container"},Mt==="stex"&&u.a.createElement(R,{value:Qt}),Mt!=="stex"&&u.a.createElement(v.a,{edit:!0,value:Qt,replaces:Dn})):null))),on?u.a.createElement("a",{ref:vn,className:"editor-resize"}):null,u.a.createElement(V.a,null,Fe[ca]?u.a.createElement(g.a,{centered:!0,title:Fe[ca],visible:!0,onCancel:Rn,footer:null,className:"markdown-popup-form"},kn):null))}},P5Jw:function(k,z,o){"use strict";var P=o("rHrb"),g=P.CopyToClipboard;g.CopyToClipboard=g,k.exports=g},PVpz:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(P){return function(){var g=P,T=g.lib,b=T.StreamCipher,y=g.algo,x=[],O=[],m=[],e=y.RabbitLegacy=b.extend({_doReset:function(){var a=this._key.words,u=this.cfg.iv,r=this._X=[a[0],a[3]<<16|a[2]>>>16,a[1],a[0]<<16|a[3]>>>16,a[2],a[1]<<16|a[0]>>>16,a[3],a[2]<<16|a[1]>>>16],i=this._C=[a[2]<<16|a[2]>>>16,a[0]&4294901760|a[1]&65535,a[3]<<16|a[3]>>>16,a[1]&4294901760|a[2]&65535,a[0]<<16|a[0]>>>16,a[2]&4294901760|a[3]&65535,a[1]<<16|a[1]>>>16,a[3]&4294901760|a[0]&65535];this._b=0;for(var n=0;n<4;n++)f.call(this);for(var n=0;n<8;n++)i[n]^=r[n+4&7];if(u){var l=u.words,h=l[0],d=l[1],s=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,c=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,w=s>>>16|c&4294901760,E=c<<16|s&65535;i[0]^=s,i[1]^=w,i[2]^=c,i[3]^=E,i[4]^=s,i[5]^=w,i[6]^=c,i[7]^=E;for(var n=0;n<4;n++)f.call(this)}},_doProcessBlock:function(a,u){var r=this._X;f.call(this),x[0]=r[0]^r[5]>>>16^r[3]<<16,x[1]=r[2]^r[7]>>>16^r[5]<<16,x[2]=r[4]^r[1]>>>16^r[7]<<16,x[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)x[i]=(x[i]<<8|x[i]>>>24)&16711935|(x[i]<<24|x[i]>>>8)&4278255360,a[u+i]^=x[i]},blockSize:128/32,ivSize:64/32});function f(){for(var a=this._X,u=this._C,r=0;r<8;r++)O[r]=u[r];u[0]=u[0]+1295307597+this._b|0,u[1]=u[1]+3545052371+(u[0]>>>0<O[0]>>>0?1:0)|0,u[2]=u[2]+886263092+(u[1]>>>0<O[1]>>>0?1:0)|0,u[3]=u[3]+1295307597+(u[2]>>>0<O[2]>>>0?1:0)|0,u[4]=u[4]+3545052371+(u[3]>>>0<O[3]>>>0?1:0)|0,u[5]=u[5]+886263092+(u[4]>>>0<O[4]>>>0?1:0)|0,u[6]=u[6]+1295307597+(u[5]>>>0<O[5]>>>0?1:0)|0,u[7]=u[7]+3545052371+(u[6]>>>0<O[6]>>>0?1:0)|0,this._b=u[7]>>>0<O[7]>>>0?1:0;for(var r=0;r<8;r++){var i=a[r]+u[r],n=i&65535,l=i>>>16,h=((n*n>>>17)+n*l>>>15)+l*l,d=((i&4294901760)*i|0)+((i&65535)*i|0);m[r]=h^d}a[0]=m[0]+(m[7]<<16|m[7]>>>16)+(m[6]<<16|m[6]>>>16)|0,a[1]=m[1]+(m[0]<<8|m[0]>>>24)+m[7]|0,a[2]=m[2]+(m[1]<<16|m[1]>>>16)+(m[0]<<16|m[0]>>>16)|0,a[3]=m[3]+(m[2]<<8|m[2]>>>24)+m[1]|0,a[4]=m[4]+(m[3]<<16|m[3]>>>16)+(m[2]<<16|m[2]>>>16)|0,a[5]=m[5]+(m[4]<<8|m[4]>>>24)+m[3]|0,a[6]=m[6]+(m[5]<<16|m[5]>>>16)+(m[4]<<16|m[4]>>>16)|0,a[7]=m[7]+(m[6]<<8|m[6]>>>24)+m[5]|0}g.RabbitLegacy=b._createHelper(e)}(),P.RabbitLegacy})},QNag:function(k,z,o){"use strict";var P=o("2qtc"),g=o("kLXV"),T=o("+L6B"),b=o("2/Rp"),y=o("9og8"),x=o("y8nQ"),O=o("Vl3Y"),m=o("tJVT"),e=o("PpiC"),f=o("5NDa"),a=o("5rEg"),u=o("WmNS"),r=o.n(u),i=o("q1tI"),n=o.n(i),l=o("9kvl"),h=o("JFl9"),d=o.n(h),s=a.a.TextArea,c=function(E){var v=E.shixunsDetail,R=E.globalSetting,M=E.loading,C=E.dispatch,S=E.onFinish,_=S===void 0?function(){}:S,A=Object(e.a)(E,["shixunsDetail","globalSetting","loading","dispatch","onFinish"]),U=O.a.useForm(),L=Object(m.a)(U,1),N=L[0],V=function(){var D=Object(y.a)(r.a.mark(function W(F){var I,K;return r.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,C({type:"shixunsDetail/getCustomScript",payload:{id:(I=v.actionTabs.params)===null||I===void 0?void 0:I.id,compile:F.execute,excutive:F.compile}});case 2:K=he.sent,H(),K&&_(K==null?void 0:K.shixun_script);case 5:case"end":return he.stop()}},W)}));return function(F){return D.apply(this,arguments)}}(),H=function(){C({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:H},n.a.createElement(O.a,{form:N,scrollToFirstError:!0,layout:"vertical",onFinish:V},n.a.createElement(O.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(O.a.Item,{name:"compile",label:"\u7F16\u8BD1\u547D\u4EE4\uFF1A"},n.a.createElement(s,{rows:4})),n.a.createElement("div",{className:d.a.footerWrap},n.a.createElement(O.a.Item,null,n.a.createElement(b.a,{className:"mr5",size:"large",onClick:H},"\u53D6\u6D88"),n.a.createElement(b.a,{size:"large",type:"primary",htmlType:"submit",loading:M.effects["shixunsDetail/getCustomScript"]},"\u4FDD\u5B58")))))};z.a=Object(l.a)(function(w){var E=w.shixunsDetail,v=w.loading,R=w.globalSetting;return{shixunsDetail:E,globalSetting:R,loading:v}})(c)},Qvpy:function(k,z,o){k.exports={title:"title___39Oep",content:"content___Xl7wK",add:"add___1luKB",colorBlue:"colorBlue___c0Swt",radio:"radio___OK4CQ"}},RC3E:function(k,z,o){k.exports={wrap:"wrap___2zh4E",title:"title___Os-Oa",path:"path___eUXXC",colorBlue:"colorBlue___2IORo"}},RMFE:function(k,z){k.exports="data:image/png;base64,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"},RotF:function(k,z,o){k.exports=o("LSTS")},RxwV:function(k,z,o){"use strict";var P=o("q1tI"),g=o("uciX"),T=o("2W6z"),b=o.n(T),y=o("4IlW"),x=o("uK0f"),O=o.n(x);function m(be,Ee){if(be===Ee)return!0;if(!be||!Ee)return!1;var ue=be.length;if(Ee.length!==ue)return!1;for(var le=0;le<ue;le++)if(be[le]!==Ee[le])return!1;return!0}function e(be){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(ue){return typeof ue}:e=function(ue){return ue&&typeof Symbol=="function"&&ue.constructor===Symbol&&ue!==Symbol.prototype?"symbol":typeof ue},e(be)}function f(be,Ee){if(!(be instanceof Ee))throw new TypeError("Cannot call a class as a function")}function a(be,Ee){for(var ue=0;ue<Ee.length;ue++){var le=Ee[ue];le.enumerable=le.enumerable||!1,le.configurable=!0,"value"in le&&(le.writable=!0),Object.defineProperty(be,le.key,le)}}function u(be,Ee,ue){return Ee&&a(be.prototype,Ee),ue&&a(be,ue),be}function r(be,Ee){if(typeof Ee!="function"&&Ee!==null)throw new TypeError("Super expression must either be null or a function");be.prototype=Object.create(Ee&&Ee.prototype,{constructor:{value:be,writable:!0,configurable:!0}}),Ee&&i(be,Ee)}function i(be,Ee){return i=Object.setPrototypeOf||function(le,$){return le.__proto__=$,le},i(be,Ee)}function n(be){var Ee=d();return function(){var ue=s(be),le;if(Ee){var $=s(this).constructor;le=Reflect.construct(ue,arguments,$)}else le=ue.apply(this,arguments);return l(this,le)}}function l(be,Ee){return Ee&&(e(Ee)==="object"||typeof Ee=="function")?Ee: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 d(){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 c=function(){var be=function(Ee){r(le,Ee);var ue=n(le);function le(){var $;return f(this,le),$=ue.apply(this,arguments),$.menuItems={},$.saveMenuItem=function(me){return function(re){$.menuItems[me]=re}},$}return u(le,[{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,ae=re.fieldNames,Oe=re.defaultFieldNames;return ae[me]||Oe[me]}},{key:"getOption",value:function(me,re){var ae=this.props,Oe=ae.prefixCls,se=ae.expandTrigger,te=ae.expandIcon,Q=ae.loadingIcon,J=this.props.onSelect.bind(this,me,re),ve=this.props.onItemDoubleClick.bind(this,me,re),_e={onClick:J,onDoubleClick:ve},Ae="".concat(Oe,"-menu-item"),Qe=null,tt=me[this.getFieldName("children")]&&me[this.getFieldName("children")].length>0;(tt||me.isLeaf===!1)&&(Ae+=" ".concat(Oe,"-menu-item-expand"),me.loading||(Qe=P.createElement("span",{className:"".concat(Oe,"-menu-item-expand-icon")},te))),se==="hover"&&(tt||me.isLeaf===!1)&&(_e={onMouseEnter:this.delayOnSelect.bind(this,J),onMouseLeave:this.delayOnSelect.bind(this),onClick:J}),this.isActiveOption(me,re)&&(Ae+=" ".concat(Oe,"-menu-item-active"),_e.ref=this.saveMenuItem(re)),me.disabled&&(Ae+=" ".concat(Oe,"-menu-item-disabled"));var dt=null;me.loading&&(Ae+=" ".concat(Oe,"-menu-item-loading"),dt=Q||null);var mt="";return"title"in me?mt=me.title:typeof me[this.getFieldName("label")]=="string"&&(mt=me[this.getFieldName("label")]),P.createElement("li",Object.assign({key:me[this.getFieldName("value")],className:Ae,title:mt},_e,{role:"menuitem",onMouseDown:function(yt){return yt.preventDefault()}}),me[this.getFieldName("label")],Qe,dt)}},{key:"getActiveOptions",value:function(me){var re=this,ae=this.props.options,Oe=me||this.props.activeValue;return O()(ae,function(se,te){return se[re.getFieldName("value")]===Oe[te]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var me=this,re=this.props.options,ae=this.getActiveOptions().map(function(Oe){return Oe[me.getFieldName("children")]}).filter(function(Oe){return!!Oe});return ae.unshift(re),ae}},{key:"delayOnSelect",value:function(me){for(var re=this,ae=arguments.length,Oe=new Array(ae>1?ae-1:0),se=1;se<ae;se++)Oe[se-1]=arguments[se];this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null),typeof me=="function"&&(this.delayTimer=window.setTimeout(function(){me(Oe),re.delayTimer=null},150))}},{key:"scrollActiveItemToView",value:function(){for(var me=this.getShowOptions().length,re=0;re<me;re++){var ae=this.menuItems[re];ae&&ae.parentElement&&(ae.parentElement.scrollTop=ae.offsetTop)}}},{key:"isActiveOption",value:function(me,re){var ae=this.props.activeValue,Oe=ae===void 0?[]:ae;return Oe[re]===me[this.getFieldName("value")]}},{key:"render",value:function(){var me=this,re=this.props,ae=re.prefixCls,Oe=re.dropdownMenuColumnStyle;return P.createElement("div",null,this.getShowOptions().map(function(se,te){return P.createElement("ul",{className:"".concat(ae,"-menu"),key:te,style:Oe},se.map(function(Q){return me.getOption(Q,te)}))}))}}]),le}(P.Component);return be.defaultProps={options:[],value:[],activeValue:[],onSelect:function(){},prefixCls:"rc-cascader-menus",visible:!1,expandTrigger:"click"},be}(),w=c,E={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=E;function R(be){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?R=function(ue){return typeof ue}:R=function(ue){return ue&&typeof Symbol=="function"&&ue.constructor===Symbol&&ue!==Symbol.prototype?"symbol":typeof ue},R(be)}function M(be,Ee){if(be==null)return{};var ue=C(be,Ee),le,$;if(Object.getOwnPropertySymbols){var me=Object.getOwnPropertySymbols(be);for($=0;$<me.length;$++){if(le=me[$],Ee.indexOf(le)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(be,le))continue;ue[le]=be[le]}}return ue}function C(be,Ee){if(be==null)return{};var ue={},le=Object.keys(be),$,me;for(me=0;me<le.length;me++){if($=le[me],Ee.indexOf($)>=0)continue;ue[$]=be[$]}return ue}function S(be){return L(be)||U(be)||A(be)||_()}function _(){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 A(be,Ee){if(!be)return;if(typeof be=="string")return N(be,Ee);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,Ee)}function U(be){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(be))return Array.from(be)}function L(be){if(Array.isArray(be))return N(be)}function N(be,Ee){(Ee==null||Ee>be.length)&&(Ee=be.length);for(var ue=0,le=new Array(Ee);ue<Ee;ue++)le[ue]=be[ue];return le}function V(be,Ee){if(!(be instanceof Ee))throw new TypeError("Cannot call a class as a function")}function H(be,Ee){for(var ue=0;ue<Ee.length;ue++){var le=Ee[ue];le.enumerable=le.enumerable||!1,le.configurable=!0,"value"in le&&(le.writable=!0),Object.defineProperty(be,le.key,le)}}function D(be,Ee,ue){return Ee&&H(be.prototype,Ee),ue&&H(be,ue),be}function W(be,Ee){if(typeof Ee!="function"&&Ee!==null)throw new TypeError("Super expression must either be null or a function");be.prototype=Object.create(Ee&&Ee.prototype,{constructor:{value:be,writable:!0,configurable:!0}}),Ee&&F(be,Ee)}function F(be,Ee){return F=Object.setPrototypeOf||function(le,$){return le.__proto__=$,le},F(be,Ee)}function I(be){var Ee=he();return function(){var ue=de(be),le;if(Ee){var $=de(this).constructor;le=Reflect.construct(ue,arguments,$)}else le=ue.apply(this,arguments);return K(this,le)}}function K(be,Ee){return Ee&&(R(Ee)==="object"||typeof Ee=="function")?Ee:ee(be)}function ee(be){if(be===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return be}function he(){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 Se=function(){var be=function(Ee){W(le,Ee);var ue=I(le);function le($){var me;V(this,le),me=ue.call(this,$),me.setPopupVisible=function(ae){var Oe=me.state.value;"popupVisible"in me.props||me.setState({popupVisible:ae}),ae&&!me.state.popupVisible&&me.setState({activeValue:Oe}),me.props.onPopupVisibleChange(ae)},me.handleChange=function(ae,Oe,se){var te=Oe.visible;(se.type!=="keydown"||se.keyCode===y.a.ENTER)&&(me.props.onChange(ae.map(function(Q){return Q[me.getFieldName("value")]}),ae),me.setPopupVisible(te))},me.handlePopupVisibleChange=function(ae){me.setPopupVisible(ae)},me.handleMenuSelect=function(ae,Oe,se){var te=me.trigger.getRootDomNode();te&&te.focus&&te.focus();var Q=me.props,J=Q.changeOnSelect,ve=Q.loadData,_e=Q.expandTrigger;if(!ae||ae.disabled)return;var Ae=me.state.activeValue;Ae=Ae.slice(0,Oe+1),Ae[Oe]=ae[me.getFieldName("value")];var Qe=me.getActiveOptions(Ae);if(ae.isLeaf===!1&&!ae[me.getFieldName("children")]&&ve){J&&me.handleChange(Qe,{visible:!0},se),me.setState({activeValue:Ae}),ve(Qe);return}var tt={};!ae[me.getFieldName("children")]||!ae[me.getFieldName("children")].length?(me.handleChange(Qe,{visible:!1},se),tt.value=Ae):J&&(se.type==="click"||se.type==="keydown")&&(_e==="hover"?me.handleChange(Qe,{visible:!1},se):me.handleChange(Qe,{visible:!0},se),tt.value=Ae),tt.activeValue=Ae,("value"in me.props||se.type==="keydown"&&se.keyCode!==y.a.ENTER)&&delete tt.value,me.setState(tt)},me.handleItemDoubleClick=function(){var ae=me.props.changeOnSelect;ae&&me.setPopupVisible(!1)},me.handleKeyDown=function(ae){var Oe=me.props.children;if(Oe&&Oe.props.onKeyDown){Oe.props.onKeyDown(ae);return}var se=S(me.state.activeValue),te=se.length-1<0?0:se.length-1,Q=me.getCurrentLevelOptions(),J=Q.map(function(Qe){return Qe[me.getFieldName("value")]}).indexOf(se[te]);if(ae.keyCode!==y.a.DOWN&&ae.keyCode!==y.a.UP&&ae.keyCode!==y.a.LEFT&&ae.keyCode!==y.a.RIGHT&&ae.keyCode!==y.a.ENTER&&ae.keyCode!==y.a.SPACE&&ae.keyCode!==y.a.BACKSPACE&&ae.keyCode!==y.a.ESC&&ae.keyCode!==y.a.TAB)return;if(!me.state.popupVisible&&ae.keyCode!==y.a.BACKSPACE&&ae.keyCode!==y.a.LEFT&&ae.keyCode!==y.a.RIGHT&&ae.keyCode!==y.a.ESC&&ae.keyCode!==y.a.TAB){me.setPopupVisible(!0);return}if(ae.keyCode===y.a.DOWN||ae.keyCode===y.a.UP){ae.preventDefault();var ve=J;ve!==-1?ae.keyCode===y.a.DOWN?(ve+=1,ve=ve>=Q.length?0:ve):(ve-=1,ve=ve<0?Q.length-1:ve):ve=0,se[te]=Q[ve][me.getFieldName("value")]}else if(ae.keyCode===y.a.LEFT||ae.keyCode===y.a.BACKSPACE)ae.preventDefault(),se.splice(se.length-1,1);else if(ae.keyCode===y.a.RIGHT)ae.preventDefault(),Q[J]&&Q[J][me.getFieldName("children")]&&se.push(Q[J][me.getFieldName("children")][0][me.getFieldName("value")]);else if(ae.keyCode===y.a.ESC||ae.keyCode===y.a.TAB){me.setPopupVisible(!1);return}(!se||se.length===0)&&me.setPopupVisible(!1);var _e=me.getActiveOptions(se),Ae=_e[_e.length-1];me.handleMenuSelect(Ae,_e.length-1,ae),me.props.onKeyDown&&me.props.onKeyDown(ae)},me.saveTrigger=function(ae){me.trigger=ae};var re=[];return"value"in $?re=$.value||[]:"defaultValue"in $&&(re=$.defaultValue||[]),b()(!("filedNames"in $),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),me.state={popupVisible:$.popupVisible,activeValue:re,value:re,prevProps:$},me.defaultFieldNames={label:"label",value:"value",children:"children"},me}return D(le,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(me){var re=this.defaultFieldNames,ae=this.props,Oe=ae.fieldNames,se=ae.filedNames;return"filedNames"in this.props?se[me]||re[me]:Oe[me]||re[me]}},{key:"getFieldNames",value:function(){var me=this.props,re=me.fieldNames,ae=me.filedNames;return"filedNames"in this.props?ae:re}},{key:"getCurrentLevelOptions",value:function(){var me=this,re=this.props.options,ae=re===void 0?[]:re,Oe=this.state.activeValue,se=Oe===void 0?[]:Oe,te=O()(ae,function(Q,J){return Q[me.getFieldName("value")]===se[J]},{childrenKeyName:this.getFieldName("children")});return te[te.length-2]?te[te.length-2][this.getFieldName("children")]:S(ae).filter(function(Q){return!Q.disabled})}},{key:"getActiveOptions",value:function(me){var re=this;return O()(this.props.options||[],function(ae,Oe){return ae[re.getFieldName("value")]===me[Oe]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var me=this.props,re=me.prefixCls,ae=me.transitionName,Oe=me.popupClassName,se=me.options,te=se===void 0?[]:se,Q=me.disabled,J=me.builtinPlacements,ve=me.popupPlacement,_e=me.children,Ae=me.dropdownRender,Qe=M(me,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),tt=P.createElement("div",null),dt="";te&&te.length>0?tt=P.createElement(w,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):dt=" ".concat(re,"-menus-empty");var mt=tt;return Ae&&(mt=Ae(tt)),P.createElement(g.a,Object.assign({ref:this.saveTrigger},Qe,{popupPlacement:ve,builtinPlacements:J,popupTransitionName:ae,action:Q?[]:["click"],popupVisible:Q?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(re,"-menus"),popupClassName:Oe+dt,popup:mt}),P.cloneElement(_e,{onKeyDown:this.handleKeyDown,tabIndex:Q?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(me,re){var ae=re.prevProps,Oe=ae===void 0?{}:ae,se={prevProps:me};return"value"in me&&!m(Oe.value,me.value)&&(se.value=me.value||[],"loadData"in me||(se.activeValue=me.value||[])),"popupVisible"in me&&(se.popupVisible=me.popupVisible),se}}]),le}(P.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}(),Te=Se,ce=z.a=Te},S6kV:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(P){return P.mode.OFB=function(){var g=P.lib.BlockCipherMode.extend(),T=g.Encryptor=g.extend({processBlock:function(b,y){var x=this._cipher,O=x.blockSize,m=this._iv,e=this._keystream;m&&(e=this._keystream=m.slice(0),this._iv=void 0),x.encryptBlock(e,0);for(var f=0;f<O;f++)b[y+f]^=e[f]}});return g.Decryptor=T,g}(),P.mode.OFB})},"SA+Z":function(k,z,o){var P=o("wTVA"),g=o("EbDI"),T=o("ZhPi"),b=o("wkBT");function y(x){return P(x)||g(x)||T(x)||b()}k.exports=y,k.exports.__esModule=!0,k.exports.default=k.exports},SJMd:function(k,z){/**
|
|
|
* @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,P,g,T=!1,b,y;window.PR_SHOULD_USE_CONTINUATION=!0;var x,O;(function(){var m=window,e=["break,continue,do,else,for,if,return,while"],f=[e,"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"],a=[f,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],u=[a,"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"],r=[a,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],i=[a,"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",l=[a,"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",d=[e,"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=[e,"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"],c=[e,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],w=[u,i,r,l,h,d,s,c],E=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,v="str",R="kwd",M="com",C="typ",S="lit",_="pun",A="pln",U="tag",L="dec",N="src",V="atn",H="atv",D="nocode",W="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function F(se){for(var te=0,Q=!1,J=!1,ve=0,_e=se.length;ve<_e;++ve){var Ae=se[ve];if(Ae.ignoreCase)J=!0;else if(/[a-z]/i.test(Ae.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){Q=!0,J=!1;break}}var Qe={b:8,t:9,n:10,v:11,f:12,r:13};function tt(Ye){var Ue=Ye.charCodeAt(0);if(Ue!==92)return Ue;var ft=Ye.charAt(1);return Ue=Qe[ft],Ue||("0"<=ft&&ft<="7"?parseInt(Ye.substring(1),8):ft==="u"||ft==="x"?parseInt(Ye.substring(2),16):Ye.charCodeAt(1))}function dt(Ye){if(Ye<32)return(Ye<16?"\\x0":"\\x")+Ye.toString(16);var Ue=String.fromCharCode(Ye);return Ue==="\\"||Ue==="-"||Ue==="]"||Ue==="^"?"\\"+Ue:Ue}function mt(Ye){var Ue=Ye.substring(1,Ye.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=[],jt=Ue[0]==="^",bt=["["];jt&&bt.push("^");for(var Pt=jt?1:0,it=Ue.length;Pt<it;++Pt){var He=Ue[Pt];if(/\\[bdsw]/i.test(He))bt.push(He);else{var Ge=tt(He),Ce;Pt+2<it&&Ue[Pt+1]==="-"?(Ce=tt(Ue[Pt+2]),Pt+=2):Ce=Ge,ft.push([Ge,Ce]),Ce<65||Ge>122||(Ce<65||Ge>90||ft.push([Math.max(65,Ge)|32,Math.min(Ce,90)|32]),Ce<97||Ge>122||ft.push([Math.max(97,Ge)&~32,Math.min(Ce,122)&~32]))}}ft.sort(function(We,st){return We[0]-st[0]||st[1]-We[1]});for(var Ie=[],Fe=[],Pt=0;Pt<ft.length;++Pt){var Be=ft[Pt];Be[0]<=Fe[1]+1?Fe[1]=Math.max(Fe[1],Be[1]):Ie.push(Fe=Be)}for(var Pt=0;Pt<Ie.length;++Pt){var Be=Ie[Pt];bt.push(dt(Be[0])),Be[1]>Be[0]&&(Be[1]+1>Be[0]&&bt.push("-"),bt.push(dt(Be[1])))}return bt.push("]"),bt.join("")}function vt(Ye){for(var Ue=Ye.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,jt=[],bt=0,Pt=0;bt<ft;++bt){var it=Ue[bt];if(it==="(")++Pt;else if(it.charAt(0)==="\\"){var He=+it.substring(1);He&&(He<=Pt?jt[He]=-1:Ue[bt]=dt(He))}}for(var bt=1;bt<jt.length;++bt)jt[bt]===-1&&(jt[bt]=++te);for(var bt=0,Pt=0;bt<ft;++bt){var it=Ue[bt];if(it==="(")++Pt,jt[Pt]||(Ue[bt]="(?:");else if(it.charAt(0)==="\\"){var He=+it.substring(1);He&&He<=Pt&&(Ue[bt]="\\"+jt[He])}}for(var bt=0;bt<ft;++bt)Ue[bt]==="^"&&Ue[bt+1]!=="^"&&(Ue[bt]="");if(Ye.ignoreCase&&Q)for(var bt=0;bt<ft;++bt){var it=Ue[bt],Ge=it.charAt(0);it.length>=2&&Ge==="["?Ue[bt]=mt(it):Ge!=="\\"&&(Ue[bt]=it.replace(/[a-zA-Z]/g,function(Fe){var Be=Fe.charCodeAt(0);return"["+String.fromCharCode(Be&~32,Be|32)+"]"}))}return Ue.join("")}for(var yt=[],ve=0,_e=se.length;ve<_e;++ve){var Ae=se[ve];if(Ae.global||Ae.multiline)throw new Error(""+Ae);yt.push("(?:"+vt(Ae)+")")}return new RegExp(yt.join("|"),J?"gi":"g")}function I(se,te){var Q=/(?:^|\s)nocode(?:\s|$)/,J=[],ve=0,_e=[],Ae=0;function Qe(tt){var dt=tt.nodeType;if(dt==1){if(Q.test(tt.className))return;for(var mt=tt.firstChild;mt;mt=mt.nextSibling)Qe(mt);var vt=tt.nodeName.toLowerCase();(vt==="br"||vt==="li")&&(J[Ae]=`
|
|
|
`,_e[Ae<<1]=ve++,_e[Ae++<<1|1]=tt)}else if(dt==3||dt==4){var yt=tt.nodeValue;yt.length&&(te?yt=yt.replace(/\r\n?/g,`
|
|
|
`):yt=yt.replace(/[ \t\r\n]+/g," "),J[Ae]=yt,_e[Ae<<1]=ve,ve+=yt.length,_e[Ae++<<1|1]=tt)}}return Qe(se),{sourceCode:J.join("").replace(/\n$/,""),spans:_e}}function K(se,te,Q,J,ve){if(!Q)return;var _e={sourceNode:se,pre:1,langExtension:null,numberLines:null,sourceCode:Q,spans:null,basePos:te,decorations:null};J(_e),ve.push.apply(ve,_e.decorations)}var ee=/\S/;function he(se){for(var te=void 0,Q=se.firstChild;Q;Q=Q.nextSibling){var J=Q.nodeType;te=J===1?te?se:Q:J===3&&ee.test(Q.nodeValue)?se:te}return te===se?void 0:te}function de(se,te){var Q={},J;(function(){for(var Ae=se.concat(te),Qe=[],tt={},dt=0,mt=Ae.length;dt<mt;++dt){var vt=Ae[dt],yt=vt[3];if(yt)for(var Ye=yt.length;--Ye>=0;)Q[yt.charAt(Ye)]=vt;var Ue=vt[1],ft=""+Ue;tt.hasOwnProperty(ft)||(Qe.push(Ue),tt[ft]=null)}Qe.push(/[\0-\uffff]/),J=F(Qe)})();var ve=te.length,_e=function(Ae){for(var Qe=Ae.sourceCode,tt=Ae.basePos,dt=Ae.sourceNode,mt=[tt,A],vt=0,yt=Qe.match(J)||[],Ye={},Ue=0,ft=yt.length;Ue<ft;++Ue){var jt=yt[Ue],bt=Ye[jt],Pt=void 0,it;if(typeof bt=="string")it=!1;else{var He=Q[jt.charAt(0)];if(He)Pt=jt.match(He[1]),bt=He[0];else{for(var Ge=0;Ge<ve;++Ge)if(He=te[Ge],Pt=jt.match(He[1]),Pt){bt=He[0];break}Pt||(bt=A)}it=bt.length>=5&&bt.substring(0,5)==="lang-",it&&!(Pt&&typeof Pt[1]=="string")&&(it=!1,bt=N),it||(Ye[jt]=bt)}var Ce=vt;if(vt+=jt.length,!it)mt.push(tt+Ce,bt);else{var Ie=Pt[1],Fe=jt.indexOf(Ie),Be=Fe+Ie.length;Pt[2]&&(Be=jt.length-Pt[2].length,Fe=Be-Ie.length);var We=bt.substring(5);K(dt,tt+Ce,jt.substring(0,Fe),_e,mt),K(dt,tt+Ce+Fe,Ie,le(We,Ie),mt),K(dt,tt+Ce+Be,jt.substring(Be),_e,mt)}}Ae.decorations=mt};return _e}function Se(se){var te=[],Q=[];se.tripleQuotedStrings?te.push([v,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):se.multiLineStrings?te.push([v,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):te.push([v,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),se.verbatimStrings&&Q.push([v,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var J=se.hashComments;J&&(se.cStyleComments?(J>1?te.push([M,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):te.push([M,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Q.push([v,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):te.push([M,/^#[^\r\n]*/,null,"#"])),se.cStyleComments&&(Q.push([M,/^\/\/[^\r\n]*/,null]),Q.push([M,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var ve=se.regexLiterals;if(ve){var _e=ve>1?"":`
|
|
|
\r`,Ae=_e?".":"[\\S\\s]",Qe="/(?=[^/*"+_e+"])(?:[^/\\x5B\\x5C"+_e+"]|\\x5C"+Ae+"|\\x5B(?:[^\\x5C\\x5D"+_e+"]|\\x5C"+Ae+")*(?:\\x5D|$))+/";Q.push(["lang-regex",RegExp("^"+W+"("+Qe+")")])}var tt=se.types;tt&&Q.push([C,tt]);var dt=(""+se.keywords).replace(/^ | $/g,"");dt.length&&Q.push([R,new RegExp("^(?:"+dt.replace(/[\s,]+/g,"|")+")\\b"),null]),te.push([A,/^\s+/,null,` \r
|
|
|
\xA0`]);var mt="^.[^\\s\\w.$@'\"`/\\\\]*";return se.regexLiterals&&(mt+="(?!s*/)"),Q.push([S,/^@[a-z_$][a-z_$@0-9]*/i,null],[C,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[A,/^[a-z_$][a-z_$@0-9]*/i,null],[S,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[A,/^\\[\s\S]?/,null],[_,new RegExp(mt),null]),de(te,Q)}var Te=Se({keywords:w,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function ce(se,te,Q){for(var J=/(?:^|\s)nocode(?:\s|$)/,ve=/\r\n?|\n/,_e=se.ownerDocument,Ae=_e.createElement("li");se.firstChild;)Ae.appendChild(se.firstChild);var Qe=[Ae];function tt(Ue){var ft=Ue.nodeType;if(ft==1&&!J.test(Ue.className))if(Ue.nodeName==="br")dt(Ue),Ue.parentNode&&Ue.parentNode.removeChild(Ue);else for(var jt=Ue.firstChild;jt;jt=jt.nextSibling)tt(jt);else if((ft==3||ft==4)&&Q){var bt=Ue.nodeValue,Pt=bt.match(ve);if(Pt){var it=bt.substring(0,Pt.index);Ue.nodeValue=it;var He=bt.substring(Pt.index+Pt[0].length);if(He){var Ge=Ue.parentNode;Ge.insertBefore(_e.createTextNode(He),Ue.nextSibling)}dt(Ue),it||Ue.parentNode.removeChild(Ue)}}}function dt(Ue){for(;!Ue.nextSibling;)if(Ue=Ue.parentNode,!Ue)return;function ft(Pt,it){var He=it?Pt.cloneNode(!1):Pt,Ge=Pt.parentNode;if(Ge){var Ce=ft(Ge,1),Ie=Pt.nextSibling;Ce.appendChild(He);for(var Fe=Ie;Fe;Fe=Ie)Ie=Fe.nextSibling,Ce.appendChild(Fe)}return He}for(var jt=ft(Ue.nextSibling,0),bt;(bt=jt.parentNode)&&bt.nodeType===1;)jt=bt;Qe.push(jt)}for(var mt=0;mt<Qe.length;++mt)tt(Qe[mt]);te===(te|0)&&Qe[0].setAttribute("value",te);var vt=_e.createElement("ol");vt.className="linenums";for(var yt=Math.max(0,te-1|0)||0,mt=0,Ye=Qe.length;mt<Ye;++mt)Ae=Qe[mt],Ae.className="L"+(mt+yt)%10,Ae.firstChild||Ae.appendChild(_e.createTextNode("\xA0")),vt.appendChild(Ae);se.appendChild(vt)}function be(se){var te=/\bMSIE\s(\d+)/.exec(navigator.userAgent);te=te&&+te[1]<=8;var Q=/\n/g,J=se.sourceCode,ve=J.length,_e=0,Ae=se.spans,Qe=Ae.length,tt=0,dt=se.decorations,mt=dt.length,vt=0;dt[mt]=ve;var yt,Ye;for(Ye=yt=0;Ye<mt;)dt[Ye]!==dt[Ye+2]?(dt[yt++]=dt[Ye++],dt[yt++]=dt[Ye++]):Ye+=2;for(mt=yt,Ye=yt=0;Ye<mt;){for(var Ue=dt[Ye],ft=dt[Ye+1],jt=Ye+2;jt+2<=mt&&dt[jt+1]===ft;)jt+=2;dt[yt++]=Ue,dt[yt++]=ft,Ye=jt}mt=dt.length=yt;var bt=se.sourceNode,Pt="";bt&&(Pt=bt.style.display,bt.style.display="none");try{for(var it=null;tt<Qe;){var He=Ae[tt],Ge=Ae[tt+2]||ve,Ce=dt[vt+2]||ve,jt=Math.min(Ge,Ce),Ie=Ae[tt+1],Fe;if(Ie.nodeType!==1&&(Fe=J.substring(_e,jt))){te&&(Fe=Fe.replace(Q,"\r")),Ie.nodeValue=Fe;var Be=Ie.ownerDocument,We=Be.createElement("span");We.className=dt[vt+1];var st=Ie.parentNode;st.replaceChild(We,Ie),We.appendChild(Ie),_e<Ge&&(Ae[tt+1]=Ie=Be.createTextNode(J.substring(jt,Ge)),st.insertBefore(Ie,We.nextSibling))}_e=jt,_e>=Ge&&(tt+=2),_e>=Ce&&(vt+=2)}}finally{bt&&(bt.style.display=Pt)}}var Ee={};function ue(se,te){for(var Q=te.length;--Q>=0;){var J=te[Q];Ee.hasOwnProperty(J)?m.console&&console.warn("cannot override language handler %s",J):Ee[J]=se}}function le(se,te){return se&&Ee.hasOwnProperty(se)||(se=/^\s*</.test(te)?"default-markup":"default-code"),Ee[se]}ue(Te,["default-code"]),ue(de([],[[A,/^[^<?]+/],[L,/^<!\w[^>]*(?:>|$)/],[M,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[_,/^(?:<[%?]|[%?]>)/],["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([[A,/^[\s]+/,null,` \r
|
|
|
`],[H,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[U,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[V,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[_,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),ue(de([],[[H,/^[\s\S]+/]]),["uq.val"]),ue(Se({keywords:u,hashComments:!0,cStyleComments:!0,types:E}),["c","cc","cpp","cxx","cyc","m"]),ue(Se({keywords:"null,true,false"}),["json"]),ue(Se({keywords:i,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:E}),["cs"]),ue(Se({keywords:r,cStyleComments:!0}),["java"]),ue(Se({keywords:c,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),ue(Se({keywords:d,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),ue(Se({keywords:h,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),ue(Se({keywords:s,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),ue(Se({keywords:l,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),ue(Se({keywords:n,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),ue(de([],[[v,/^[\s\S]+/]]),["regex"]);function $(se){var te=se.langExtension;try{var Q=I(se.sourceNode,se.pre),J=Q.sourceCode;se.sourceCode=J,se.spans=Q.spans,se.basePos=0,le(te,J)(se),be(se)}catch(ve){m.console&&console.log(ve&&ve.stack||ve)}}function me(se,te,Q){var J=Q||!1,ve=te||null,_e=document.createElement("div");_e.innerHTML="<pre>"+se+"</pre>",_e=_e.firstChild,J&&ce(_e,J,!0);var Ae={langExtension:ve,numberLines:J,sourceNode:_e,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return $(Ae),_e.innerHTML}function re(se,te){var Q=te||document.body,J=Q.ownerDocument||document;function ve(He){return Q.getElementsByTagName(He)}for(var _e=[ve("pre"),ve("code"),ve("xmp")],Ae=[],Qe=0;Qe<_e.length;++Qe)for(var tt=0,dt=_e[Qe].length;tt<dt;++tt)Ae.push(_e[Qe][tt]);_e=null;var mt=Date;mt.now||(mt={now:function(){return+new Date}});var vt=0,yt=/\blang(?:uage)?-([\w.]+)(?!\S)/,Ye=/\bprettyprint\b/,Ue=/\bprettyprinted\b/,ft=/pre|xmp/i,jt=/^code$/i,bt=/^(?:pre|code|xmp)$/i,Pt={};function it(){for(var He=m.PR_SHOULD_USE_CONTINUATION?mt.now()+250:Infinity;vt<Ae.length&&mt.now()<He;vt++){for(var Ge=Ae[vt],Ce=Pt,Ie=Ge;Ie=Ie.previousSibling;){var Fe=Ie.nodeType,Be=(Fe===7||Fe===8)&&Ie.nodeValue;if(Be?!/^\??prettify\b/.test(Be):Fe!==3||/\S/.test(Ie.nodeValue))break;if(Be){Ce={},Be.replace(/\b(\w+)=([\w:.%+-]+)/g,function(ht,Et,Ot){Ce[Et]=Ot});break}}var We=Ge.className;if((Ce!==Pt||Ye.test(We))&&!Ue.test(We)){for(var st=!1,Dt=Ge.parentNode;Dt;Dt=Dt.parentNode){var Ht=Dt.tagName;if(bt.test(Ht)&&Dt.className&&Ye.test(Dt.className)){st=!0;break}}if(!st){Ge.className+=" prettyprinted";var rn=Ce.lang;if(!rn){rn=We.match(yt);var Bt;!rn&&(Bt=he(Ge))&&jt.test(Bt.tagName)&&(rn=Bt.className.match(yt)),rn&&(rn=rn[1])}var Ct;if(ft.test(Ge.tagName))Ct=1;else{var Ke=Ge.currentStyle,et=J.defaultView,at=Ke?Ke.whiteSpace:et&&et.getComputedStyle?et.getComputedStyle(Ge,null).getPropertyValue("white-space"):0;Ct=at&&at.substring(0,3)==="pre"}var Pe=Ce.linenums;(Pe=Pe==="true"||+Pe)||(Pe=We.match(/\blinenums\b(?::(\d+))?/),Pe=Pe?Pe[1]&&Pe[1].length?+Pe[1]:!0:!1),Pe&&ce(Ge,Pe,Ct);var Xe={langExtension:rn,sourceNode:Ge,numberLines:Pe,pre:Ct,sourceCode:null,basePos:null,spans:null,decorations:null};$(Xe)}}}vt<Ae.length?m.setTimeout(it,250):typeof se=="function"&&se()}it()}var ae=m.PR={createSimpleLexer:de,registerLangHandler:ue,sourceDecorator:Se,PR_ATTRIB_NAME:V,PR_ATTRIB_VALUE:H,PR_COMMENT:M,PR_DECLARATION:L,PR_KEYWORD:R,PR_LITERAL:S,PR_NOCODE:D,PR_PLAIN:A,PR_PUNCTUATION:_,PR_SOURCE:N,PR_STRING:v,PR_TAG:U,PR_TYPE:C,prettyPrintOne:T?m.prettyPrintOne=me:x=me,prettyPrint:O=T?m.prettyPrint=re:O=re},Oe=m.define;typeof Oe=="function"&&Oe.amd&&Oe("google-code-prettify",[],function(){return ae})})()},SLjR:function(k,z,o){},SMhR:function(k,z){k.exports="data:image/png;base64,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"},Se0u:function(k,z,o){},T8No:function(k,z,o){"use strict";o.d(z,"a",function(){return O}),o.d(z,"e",function(){return m}),o.d(z,"c",function(){return _}),o.d(z,"b",function(){return A}),o.d(z,"d",function(){return U}),o.d(z,"f",function(){return V});var P=o("MNsG"),g=o("N0LK"),T=o("Cg/j");let b=P.k||"";const y=new Map;y.set("false",!1),y.set("true",!0),y.set("isMac",P.f),y.set("isLinux",P.d),y.set("isWindows",P.i),y.set("isWeb",P.h),y.set("isMacNative",P.f&&!P.h),y.set("isEdge",b.indexOf("Edg/")>=0),y.set("isFirefox",b.indexOf("Firefox")>=0),y.set("isChrome",b.indexOf("Chrome")>=0),y.set("isSafari",b.indexOf("Safari")>=0);const x=Object.prototype.hasOwnProperty;class O{static has(D){return u.create(D)}static equals(D,W){return r.create(D,W)}static regex(D,W){return v.create(D,W)}static not(D){return h.create(D)}static and(...D){return C.create(D,null)}static or(...D){return S.create(D,null,!0)}static deserialize(D,W=!1){return D?this._deserializeOrExpression(D,W):void 0}static _deserializeOrExpression(D,W){let F=D.split("||");return S.create(F.map(I=>this._deserializeAndExpression(I,W)),null,!0)}static _deserializeAndExpression(D,W){let F=D.split("&&");return C.create(F.map(I=>this._deserializeOne(I,W)),null)}static _deserializeOne(D,W){if(D=D.trim(),D.indexOf("!=")>=0){let F=D.split("!=");return l.create(F[0].trim(),this._deserializeValue(F[1],W))}if(D.indexOf("==")>=0){let F=D.split("==");return r.create(F[0].trim(),this._deserializeValue(F[1],W))}if(D.indexOf("=~")>=0){let F=D.split("=~");return v.create(F[0].trim(),this._deserializeRegexValue(F[1],W))}if(D.indexOf(" in ")>=0){let F=D.split(" in ");return i.create(F[0].trim(),F[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(D)){const F=D.split(">=");return c.create(F[0].trim(),F[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(D)){const F=D.split(">");return s.create(F[0].trim(),F[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(D)){const F=D.split("<=");return E.create(F[0].trim(),F[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(D)){const F=D.split("<");return w.create(F[0].trim(),F[1].trim())}return/^\!\s*/.test(D)?h.create(D.substr(1).trim()):u.create(D)}static _deserializeValue(D,W){if(D=D.trim(),D==="true")return!0;if(D==="false")return!1;let F=/^'([^']*)'$/.exec(D);return F?F[1].trim():D}static _deserializeRegexValue(D,W){if(Object(g.C)(D)){if(W)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let F=D.indexOf("/"),I=D.lastIndexOf("/");if(F===I||F<0){if(W)throw new Error(`bad regexp-value '${D}', missing /-enclosure`);return console.warn(`bad regexp-value '${D}', missing /-enclosure`),null}let K=D.slice(F+1,I),ee=D[I+1]==="i"?"i":"";try{return new RegExp(K,ee)}catch(he){if(W)throw new Error(`bad regexp-value '${D}', parse error: ${he}`);return console.warn(`bad regexp-value '${D}', parse error: ${he}`),null}}}function m(D,W){const F=D?D.substituteConstants():void 0,I=W?W.substituteConstants():void 0;return!F&&!I?!0:!F||!I?!1:F.equals(I)}function e(D,W){return D.cmp(W)}class f{constructor(){this.type=0}cmp(D){return this.type-D.type}equals(D){return D.type===this.type}substituteConstants(){return this}evaluate(D){return!1}serialize(){return"false"}keys(){return[]}negate(){return a.INSTANCE}}f.INSTANCE=new f;class a{constructor(){this.type=1}cmp(D){return this.type-D.type}equals(D){return D.type===this.type}substituteConstants(){return this}evaluate(D){return!0}serialize(){return"true"}keys(){return[]}negate(){return f.INSTANCE}}a.INSTANCE=new a;class u{constructor(D,W){this.key=D,this.negated=W,this.type=2}static create(D,W=null){const F=y.get(D);return typeof F=="boolean"?F?a.INSTANCE:f.INSTANCE:new u(D,W)}cmp(D){return D.type!==this.type?this.type-D.type:L(this.key,D.key)}equals(D){return D.type===this.type?this.key===D.key:!1}substituteConstants(){const D=y.get(this.key);return typeof D=="boolean"?D?a.INSTANCE:f.INSTANCE:this}evaluate(D){return!!D.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=h.create(this.key,this)),this.negated}}class r{constructor(D,W,F){this.key=D,this.value=W,this.negated=F,this.type=4}static create(D,W,F=null){if(typeof W=="boolean")return W?u.create(D,F):h.create(D,F);const I=y.get(D);if(typeof I=="boolean"){const K=I?"true":"false";return W===K?a.INSTANCE:f.INSTANCE}return new r(D,W,F)}cmp(D){return D.type!==this.type?this.type-D.type:N(this.key,this.value,D.key,D.value)}equals(D){return D.type===this.type?this.key===D.key&&this.value===D.value:!1}substituteConstants(){const D=y.get(this.key);if(typeof D=="boolean"){const W=D?"true":"false";return this.value===W?a.INSTANCE:f.INSTANCE}return this}evaluate(D){return D.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=l.create(this.key,this.value,this)),this.negated}}class i{constructor(D,W){this.key=D,this.valueKey=W,this.type=10,this.negated=null}static create(D,W){return new i(D,W)}cmp(D){return D.type!==this.type?this.type-D.type:N(this.key,this.valueKey,D.key,D.valueKey)}equals(D){return D.type===this.type?this.key===D.key&&this.valueKey===D.valueKey:!1}substituteConstants(){return this}evaluate(D){const W=D.getValue(this.valueKey),F=D.getValue(this.key);return Array.isArray(W)?W.indexOf(F)>=0:typeof F=="string"&&typeof W=="object"&&W!==null?x.call(W,F):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=n.create(this)),this.negated}}class n{constructor(D){this._actual=D,this.type=11}static create(D){return new n(D)}cmp(D){return D.type!==this.type?this.type-D.type:this._actual.cmp(D._actual)}equals(D){return D.type===this.type?this._actual.equals(D._actual):!1}substituteConstants(){return this}evaluate(D){return!this._actual.evaluate(D)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class l{constructor(D,W,F){this.key=D,this.value=W,this.negated=F,this.type=5}static create(D,W,F=null){if(typeof W=="boolean")return W?h.create(D,F):u.create(D,F);const I=y.get(D);if(typeof I=="boolean"){const K=I?"true":"false";return W===K?f.INSTANCE:a.INSTANCE}return new l(D,W,F)}cmp(D){return D.type!==this.type?this.type-D.type:N(this.key,this.value,D.key,D.value)}equals(D){return D.type===this.type?this.key===D.key&&this.value===D.value:!1}substituteConstants(){const D=y.get(this.key);if(typeof D=="boolean"){const W=D?"true":"false";return this.value===W?f.INSTANCE:a.INSTANCE}return this}evaluate(D){return D.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=r.create(this.key,this.value,this)),this.negated}}class h{constructor(D,W){this.key=D,this.negated=W,this.type=3}static create(D,W=null){const F=y.get(D);return typeof F=="boolean"?F?f.INSTANCE:a.INSTANCE:new h(D,W)}cmp(D){return D.type!==this.type?this.type-D.type:L(this.key,D.key)}equals(D){return D.type===this.type?this.key===D.key:!1}substituteConstants(){const D=y.get(this.key);return typeof D=="boolean"?D?f.INSTANCE:a.INSTANCE:this}evaluate(D){return!D.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=u.create(this.key,this)),this.negated}}function d(D,W){if(typeof D=="string"){const F=parseFloat(D);isNaN(F)||(D=F)}return typeof D=="string"||typeof D=="number"?W(D):f.INSTANCE}class s{constructor(D,W,F){this.key=D,this.value=W,this.negated=F,this.type=12}static create(D,W,F=null){return d(W,I=>new s(D,I,F))}cmp(D){return D.type!==this.type?this.type-D.type:N(this.key,this.value,D.key,D.value)}equals(D){return D.type===this.type?this.key===D.key&&this.value===D.value:!1}substituteConstants(){return this}evaluate(D){return typeof this.value=="string"?!1:parseFloat(D.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=E.create(this.key,this.value,this)),this.negated}}class c{constructor(D,W,F){this.key=D,this.value=W,this.negated=F,this.type=13}static create(D,W,F=null){return d(W,I=>new c(D,I,F))}cmp(D){return D.type!==this.type?this.type-D.type:N(this.key,this.value,D.key,D.value)}equals(D){return D.type===this.type?this.key===D.key&&this.value===D.value:!1}substituteConstants(){return this}evaluate(D){return typeof this.value=="string"?!1:parseFloat(D.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=w.create(this.key,this.value,this)),this.negated}}class w{constructor(D,W,F){this.key=D,this.value=W,this.negated=F,this.type=14}static create(D,W,F=null){return d(W,I=>new w(D,I,F))}cmp(D){return D.type!==this.type?this.type-D.type:N(this.key,this.value,D.key,D.value)}equals(D){return D.type===this.type?this.key===D.key&&this.value===D.value:!1}substituteConstants(){return this}evaluate(D){return typeof this.value=="string"?!1:parseFloat(D.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=c.create(this.key,this.value,this)),this.negated}}class E{constructor(D,W,F){this.key=D,this.value=W,this.negated=F,this.type=15}static create(D,W,F=null){return d(W,I=>new E(D,I,F))}cmp(D){return D.type!==this.type?this.type-D.type:N(this.key,this.value,D.key,D.value)}equals(D){return D.type===this.type?this.key===D.key&&this.value===D.value:!1}substituteConstants(){return this}evaluate(D){return typeof this.value=="string"?!1:parseFloat(D.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=s.create(this.key,this.value,this)),this.negated}}class v{constructor(D,W){this.key=D,this.regexp=W,this.type=7,this.negated=null}static create(D,W){return new v(D,W)}cmp(D){if(D.type!==this.type)return this.type-D.type;if(this.key<D.key)return-1;if(this.key>D.key)return 1;const W=this.regexp?this.regexp.source:"",F=D.regexp?D.regexp.source:"";return W<F?-1:W>F?1:0}equals(D){if(D.type===this.type){const W=this.regexp?this.regexp.source:"",F=D.regexp?D.regexp.source:"";return this.key===D.key&&W===F}return!1}substituteConstants(){return this}evaluate(D){let W=D.getValue(this.key);return this.regexp?this.regexp.test(W):!1}serialize(){const D=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${D}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=R.create(this)),this.negated}}class R{constructor(D){this._actual=D,this.type=8}static create(D){return new R(D)}cmp(D){return D.type!==this.type?this.type-D.type:this._actual.cmp(D._actual)}equals(D){return D.type===this.type?this._actual.equals(D._actual):!1}substituteConstants(){return this}evaluate(D){return!this._actual.evaluate(D)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function M(D){let W=null;for(let F=0,I=D.length;F<I;F++){const K=D[F].substituteConstants();if(D[F]!==K&&W===null){W=[];for(let ee=0;ee<F;ee++)W[ee]=D[ee]}W!==null&&(W[F]=K)}return W===null?D:W}class C{constructor(D,W){this.expr=D,this.negated=W,this.type=6}static create(D,W){return C._normalizeArr(D,W)}cmp(D){if(D.type!==this.type)return this.type-D.type;if(this.expr.length<D.expr.length)return-1;if(this.expr.length>D.expr.length)return 1;for(let W=0,F=this.expr.length;W<F;W++){const I=e(this.expr[W],D.expr[W]);if(I!==0)return I}return 0}equals(D){if(D.type===this.type){if(this.expr.length!==D.expr.length)return!1;for(let W=0,F=this.expr.length;W<F;W++)if(!this.expr[W].equals(D.expr[W]))return!1;return!0}return!1}substituteConstants(){const D=M(this.expr);return D===this.expr?this:C.create(D,this.negated)}evaluate(D){for(let W=0,F=this.expr.length;W<F;W++)if(!this.expr[W].evaluate(D))return!1;return!0}static _normalizeArr(D,W){const F=[];let I=!1;for(const K of D){if(!K)continue;if(K.type===1){I=!0;continue}if(K.type===0)return f.INSTANCE;if(K.type===6){F.push(...K.expr);continue}F.push(K)}if(F.length===0&&I)return a.INSTANCE;if(F.length===0)return;if(F.length===1)return F[0];F.sort(e);for(let K=1;K<F.length;K++)F[K-1].equals(F[K])&&(F.splice(K,1),K--);if(F.length===1)return F[0];for(;F.length>1;){const K=F[F.length-1];if(K.type!==9)break;F.pop();const ee=F.pop(),he=F.length===0,de=S.create(K.expr.map(Se=>C.create([Se,ee],null)),null,he);de&&(F.push(de),F.sort(e))}return F.length===1?F[0]:new C(F,W)}serialize(){return this.expr.map(D=>D.serialize()).join(" && ")}keys(){const D=[];for(let W of this.expr)D.push(...W.keys());return D}negate(){if(!this.negated){const D=[];for(let W of this.expr)D.push(W.negate());this.negated=S.create(D,this,!0)}return this.negated}}class S{constructor(D,W){this.expr=D,this.negated=W,this.type=9}static create(D,W,F){return S._normalizeArr(D,W,F)}cmp(D){if(D.type!==this.type)return this.type-D.type;if(this.expr.length<D.expr.length)return-1;if(this.expr.length>D.expr.length)return 1;for(let W=0,F=this.expr.length;W<F;W++){const I=e(this.expr[W],D.expr[W]);if(I!==0)return I}return 0}equals(D){if(D.type===this.type){if(this.expr.length!==D.expr.length)return!1;for(let W=0,F=this.expr.length;W<F;W++)if(!this.expr[W].equals(D.expr[W]))return!1;return!0}return!1}substituteConstants(){const D=M(this.expr);return D===this.expr?this:S.create(D,this.negated,!1)}evaluate(D){for(let W=0,F=this.expr.length;W<F;W++)if(this.expr[W].evaluate(D))return!0;return!1}static _normalizeArr(D,W,F){let I=[],K=!1;if(D){for(let ee=0,he=D.length;ee<he;ee++){const de=D[ee];if(!de)continue;if(de.type===0){K=!0;continue}if(de.type===1)return a.INSTANCE;if(de.type===9){I=I.concat(de.expr);continue}I.push(de)}if(I.length===0&&K)return f.INSTANCE;I.sort(e)}if(I.length===0)return;if(I.length===1)return I[0];for(let ee=1;ee<I.length;ee++)I[ee-1].equals(I[ee])&&(I.splice(ee,1),ee--);if(I.length===1)return I[0];if(F){for(let ee=0;ee<I.length;ee++)for(let he=ee+1;he<I.length;he++)V(I[ee],I[he])&&(I.splice(he,1),he--);if(I.length===1)return I[0]}return new S(I,W)}serialize(){return this.expr.map(D=>D.serialize()).join(" || ")}keys(){const D=[];for(let W of this.expr)D.push(...W.keys());return D}negate(){if(!this.negated){let D=[];for(let W of this.expr)D.push(W.negate());for(;D.length>1;){const W=D.shift(),F=D.shift(),I=[];for(const ee of H(W))for(const he of H(F))I.push(C.create([ee,he],null));const K=D.length===0;D.unshift(S.create(I,null,K))}this.negated=D[0]}return this.negated}}class _ extends u{constructor(D,W,F){super(D,null);this._defaultValue=W,typeof F=="object"?_._info.push(Object.assign(Object.assign({},F),{key:D})):F!==!0&&_._info.push({key:D,description:F,type:W!=null?typeof W:void 0})}static all(){return _._info.values()}bindTo(D){return D.createKey(this.key,this._defaultValue)}getValue(D){return D.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(D){return r.create(this.key,D)}}_._info=[];const A=Object(T.c)("contextKeyService"),U="setContext";function L(D,W){return D<W?-1:D>W?1:0}function N(D,W,F,I){return D<F?-1:D>F?1:W<I?-1:W>I?1:0}function V(D,W){if(W.type===6&&D.type!==9&&D.type!==6){for(const K of W.expr)if(D.equals(K))return!0}const F=D.negate(),I=H(F).concat(H(W));I.sort(e);for(let K=0;K<I.length;K++){const ee=I[K],he=ee.negate();for(let de=K+1;de<I.length;de++){const Se=I[de];if(he.equals(Se))return!0}}return!1}function H(D){return D.type===9?D.expr:[D]}},TGq3:function(k,z,o){k.exports=o.p+"static/lockclose.365036e8.svg"},TXwP:function(k,z,o){var P,g;(function(){var T;(function(){"use strict";var y=[,,function(e){function f(r){this.__parent=r,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=[]}f.prototype.clone_empty=function(){var r=new f(this.__parent);return r.set_indent(this.__indent_count,this.__alignment_count),r},f.prototype.item=function(r){return r<0?this.__items[this.__items.length+r]:this.__items[r]},f.prototype.has_match=function(r){for(var i=this.__items.length-1;i>=0;i--)if(this.__items[i].match(r))return!0;return!1},f.prototype.set_indent=function(r,i){this.is_empty()&&(this.__indent_count=r||0,this.__alignment_count=i||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},f.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)},f.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},f.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var r=this.__parent.current_line;return r.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),r.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),r.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,r.__items[0]===" "&&(r.__items.splice(0,1),r.__character_count-=1),!0}return!1},f.prototype.is_empty=function(){return this.__items.length===0},f.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},f.prototype.push=function(r){this.__items.push(r);var i=r.lastIndexOf(`
|
|
|
`);i!==-1?this.__character_count=r.length-i:this.__character_count+=r.length},f.prototype.pop=function(){var r=null;return this.is_empty()||(r=this.__items.pop(),this.__character_count-=r.length),r},f.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},f.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},f.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},f.prototype.toString=function(){var r="";return this.is_empty()?this.__parent.indent_empty_lines&&(r=this.__parent.get_indent_string(this.__indent_count)):(r=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),r+=this.__items.join("")),r};function a(r,i){this.__cache=[""],this.__indent_size=r.indent_size,this.__indent_string=r.indent_char,r.indent_with_tabs||(this.__indent_string=new Array(r.indent_size+1).join(r.indent_char)),i=i||"",r.indent_level>0&&(i=new Array(r.indent_level+1).join(this.__indent_string)),this.__base_string=i,this.__base_string_length=i.length}a.prototype.get_indent_size=function(r,i){var n=this.__base_string_length;return i=i||0,r<0&&(n=0),n+=r*this.__indent_size,n+=i,n},a.prototype.get_indent_string=function(r,i){var n=this.__base_string;return i=i||0,r<0&&(r=0,n=""),i+=r*this.__indent_size,this.__ensure_cache(i),n+=this.__cache[i],n},a.prototype.__ensure_cache=function(r){for(;r>=this.__cache.length;)this.__add_column()},a.prototype.__add_column=function(){var r=this.__cache.length,i=0,n="";this.__indent_size&&r>=this.__indent_size&&(i=Math.floor(r/this.__indent_size),r-=i*this.__indent_size,n=new Array(i+1).join(this.__indent_string)),r&&(n+=new Array(r+1).join(" ")),this.__cache.push(n)};function u(r,i){this.__indent_cache=new a(r,i),this.raw=!1,this._end_with_newline=r.end_with_newline,this.indent_size=r.indent_size,this.wrap_line_length=r.wrap_line_length,this.indent_empty_lines=r.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new f(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(r,i){return this.__indent_cache.get_indent_string(r,i)},u.prototype.get_indent_size=function(r,i){return this.__indent_cache.get_indent_size(r,i)},u.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},u.prototype.add_new_line=function(r){return this.is_empty()||!r&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},u.prototype.get_code=function(r){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 n=this.__lines.join(`
|
|
|
`);return r!==`
|
|
|
`&&(n=n.replace(/[\n]/g,r)),n},u.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},u.prototype.set_indent=function(r,i){return r=r||0,i=i||0,this.next_line.set_indent(r,i),this.__lines.length>1?(this.current_line.set_indent(r,i),!0):(this.current_line.set_indent(),!1)},u.prototype.add_raw_token=function(r){for(var i=0;i<r.newlines;i++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(r.whitespace_before),this.current_line.push(r.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},u.prototype.add_token=function(r){this.__add_space_before_token(),this.current_line.push(r),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(r){for(var i=this.__lines.length;r<i;)this.__lines[r]._remove_indent(),r++;this.current_line._remove_wrap_indent()},u.prototype.trim=function(r){for(r=r===void 0?!1:r,this.current_line.trim();r&&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(r,i){for(var n=this.__lines.length-2;n>=0;){var l=this.__lines[n];if(l.is_empty())break;if(l.item(0).indexOf(r)!==0&&l.item(-1)!==i){this.__lines.splice(n+1,0,new f(this)),this.previous_line=this.__lines[this.__lines.length-2];break}n--}},e.exports.Output=u},,,,function(e){function f(r,i){this.raw_options=a(r,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"])}f.prototype._get_array=function(r,i){var n=this.raw_options[r],l=i||[];return typeof n=="object"?n!==null&&typeof n.concat=="function"&&(l=n.concat()):typeof n=="string"&&(l=n.split(/[^a-zA-Z0-9_\/\-]+/)),l},f.prototype._get_boolean=function(r,i){var n=this.raw_options[r],l=n===void 0?!!i:!!n;return l},f.prototype._get_characters=function(r,i){var n=this.raw_options[r],l=i||"";return typeof n=="string"&&(l=n.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),l},f.prototype._get_number=function(r,i){var n=this.raw_options[r];i=parseInt(i,10),isNaN(i)&&(i=0);var l=parseInt(n,10);return isNaN(l)&&(l=i),l},f.prototype._get_selection=function(r,i,n){var l=this._get_selection_list(r,i,n);if(l.length!==1)throw new Error("Invalid Option Value: The option '"+r+`' can only be one of the following values:
|
|
|
`+i+`
|
|
|
You passed in: '`+this.raw_options[r]+"'");return l[0]},f.prototype._get_selection_list=function(r,i,n){if(!i||i.length===0)throw new Error("Selection list cannot be empty.");if(n=n||[i[0]],!this._is_valid_selection(n,i))throw new Error("Invalid Default Value!");var l=this._get_array(r,n);if(!this._is_valid_selection(l,i))throw new Error("Invalid Option Value: The option '"+r+`' can contain only the following values:
|
|
|
`+i+`
|
|
|
You passed in: '`+this.raw_options[r]+"'");return l},f.prototype._is_valid_selection=function(r,i){return r.length&&i.length&&!r.some(function(n){return i.indexOf(n)===-1})};function a(r,i){var n={};r=u(r);var l;for(l in r)l!==i&&(n[l]=r[l]);if(i&&r[i])for(l in r[i])n[l]=r[i][l];return n}function u(r){var i={},n;for(n in r){var l=n.replace(/-/g,"_");i[l]=r[n]}return i}e.exports.Options=f,e.exports.normalizeOpts=u,e.exports.mergeOpts=a},,function(e){var f=RegExp.prototype.hasOwnProperty("sticky");function a(u){this.__input=u||"",this.__input_length=this.__input.length,this.__position=0}a.prototype.restart=function(){this.__position=0},a.prototype.back=function(){this.__position>0&&(this.__position-=1)},a.prototype.hasNext=function(){return this.__position<this.__input_length},a.prototype.next=function(){var u=null;return this.hasNext()&&(u=this.__input.charAt(this.__position),this.__position+=1),u},a.prototype.peek=function(u){var r=null;return u=u||0,u+=this.__position,u>=0&&u<this.__input_length&&(r=this.__input.charAt(u)),r},a.prototype.__match=function(u,r){u.lastIndex=r;var i=u.exec(this.__input);return i&&!(f&&u.sticky)&&(i.index!==r&&(i=null)),i},a.prototype.test=function(u,r){return r=r||0,r+=this.__position,r>=0&&r<this.__input_length?!!this.__match(u,r):!1},a.prototype.testChar=function(u,r){var i=this.peek(r);return u.lastIndex=0,i!==null&&u.test(i)},a.prototype.match=function(u){var r=this.__match(u,this.__position);return r?this.__position+=r[0].length:r=null,r},a.prototype.read=function(u,r,i){var n="",l;return u&&(l=this.match(u),l&&(n+=l[0])),r&&(l||!u)&&(n+=this.readUntil(r,i)),n},a.prototype.readUntil=function(u,r){var i="",n=this.__position;u.lastIndex=this.__position;var l=u.exec(this.__input);return l?(n=l.index,r&&(n+=l[0].length)):n=this.__input_length,i=this.__input.substring(this.__position,n),this.__position=n,i},a.prototype.readUntilAfter=function(u){return this.readUntil(u,!0)},a.prototype.get_regexp=function(u,r){var i=null,n="g";return r&&f&&(n="y"),typeof u=="string"&&u!==""?i=new RegExp(u,n):u&&(i=new RegExp(u.source,n)),i},a.prototype.get_literal_regexp=function(u){return RegExp(u.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},a.prototype.peekUntilAfter=function(u){var r=this.__position,i=this.readUntilAfter(u);return this.__position=r,i},a.prototype.lookBack=function(u){var r=this.__position-1;return r>=u.length&&this.__input.substring(r-u.length,r).toLowerCase()===u},e.exports.InputScanner=a},,,,,function(e){function f(a,u){a=typeof a=="string"?a:a.source,u=typeof u=="string"?u:u.source,this.__directives_block_pattern=new RegExp(a+/ beautify( \w+[:]\w+)+ /.source+u,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(a+/\sbeautify\signore:end\s/.source+u,"g")}f.prototype.get_directives=function(a){if(!a.match(this.__directives_block_pattern))return null;var u={};this.__directive_pattern.lastIndex=0;for(var r=this.__directive_pattern.exec(a);r;)u[r[1]]=r[2],r=this.__directive_pattern.exec(a);return u},f.prototype.readIgnored=function(a){return a.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=f},,function(e,f,a){var u=a(16).Beautifier,r=a(17).Options;function i(n,l){var h=new u(n,l);return h.beautify()}e.exports=i,e.exports.defaultOptions=function(){return new r}},function(e,f,a){var u=a(17).Options,r=a(2).Output,i=a(8).InputScanner,n=a(13).Directives,l=new n(/\/\*/,/\*\//),h=/\r\n|[\r\n]/,d=/\r\n|[\r\n]/g,s=/\s/,c=/(?:\s|\n)+/g,w=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,E=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function v(R,M){this._source_text=R||"",this._options=new u(M),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(R){var M="";for(this._ch=this._input.next();this._ch;){if(M+=this._ch,this._ch==="\\")M+=this._input.next();else if(R.indexOf(this._ch)!==-1||this._ch===`
|
|
|
`)break;this._ch=this._input.next()}return M},v.prototype.eatWhitespace=function(R){for(var M=s.test(this._input.peek()),C=0;s.test(this._input.peek());)this._ch=this._input.next(),R&&this._ch===`
|
|
|
`&&((C===0||C<this._options.max_preserve_newlines)&&(C++,this._output.add_new_line(!0)));return M},v.prototype.foundNestedPseudoClass=function(){for(var R=0,M=1,C=this._input.peek(M);C;){if(C==="{")return!0;if(C==="(")R+=1;else if(C===")"){if(R===0)return!1;R-=1}else if(C===";"||C==="}")return!1;M++,C=this._input.peek(M)}return!1},v.prototype.print_string=function(R){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(R)},v.prototype.preserveSingleSpace=function(R){R&&(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 R=this._source_text,M=this._options.eol;M==="auto"&&(M=`
|
|
|
`,R&&h.test(R||"")&&(M=R.match(h)[0])),R=R.replace(d,`
|
|
|
`);var C=R.match(/^[\t ]*/)[0];this._output=new r(this._options,C),this._input=new i(R),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var S=0,_=!1,A=!1,U=!1,L=!1,N=!1,V=!1,H=this._ch,D=!1,W,F,I;W=this._input.read(c),F=W!=="",I=H,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),H=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var K=this._input.read(w),ee=l.get_directives(K);ee&&ee.ignore==="start"&&(K+=l.readIgnored(this._input)),this.print_string(K),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(E)),this.eatWhitespace(!0);else if(this._ch==="@"||this._ch==="$")if(this.preserveSingleSpace(F),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var he=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);he.match(/[ :]$/)&&(he=this.eatString(": ").replace(/\s$/,""),this.print_string(he),this._output.space_before_token=!0),he=he.replace(/\s$/,""),he==="extend"?L=!0:he==="import"&&(N=!0),he in this.NESTED_AT_RULE?(this._nestedLevel+=1,he in this.CONDITIONAL_GROUP_RULE&&(U=!0)):!_&&S===0&&he.indexOf(":")!==-1&&(A=!0,this.indent())}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(F),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")A&&(A=!1,this.outdent()),U?(U=!1,_=this._indentLevel>=this._nestedLevel):_=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&_&&(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)):(I==="("?this._output.space_before_token=!1:I!==","&&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(),I==="{"&&this._output.trim(!0),N=!1,L=!1,A&&(this.outdent(),A=!1),this.print_string(this._ch),_=!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])){D=!0;break}(_||U)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!L&&S===0?(this.print_string(":"),A||(A=!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 Se=I==='"'||I==="'";this.preserveSingleSpace(Se||F),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")D=!1,S===0?(A&&(this.outdent(),A=!1),L=!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(),S++,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(")")),S&&(S--,this.outdent()));else{var Te=!1;this._input.lookBack("with")&&(Te=!0),this.preserveSingleSpace(F||Te),this.print_string(this._ch),A&&I==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),V=!0):(this.eatWhitespace(),S++,this.indent())}else if(this._ch===")")S&&(S--,this.outdent()),V&&this._input.peek()===";"&&this._options.selector_separator_newline&&(V=!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&&(!A||V)&&S===0&&!N&&!L?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!A&&S===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(F),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=I==='"'||I==="'";this.preserveSingleSpace(ce||F),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
|
|
|
`&&D&&this._output.add_new_line()}var be=this._output.get_code(M);return be},e.exports.Beautifier=v},function(e,f,a){var u=a(6).Options;function r(i){u.call(this,i,"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 l=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var h=0;h<l.length;h++)l[h]!=="expand"?this.brace_style="collapse":this.brace_style=l[h]}r.prototype=new u,e.exports.Options=r}],x={};function O(e){var f=x[e];if(f!==void 0)return f.exports;var a=x[e]={exports:{}};return y[e](a,a.exports,O),a.exports}var m=O(15);T=m})();var b=T;!(P=[],g=function(){return{css_beautify:b}}.apply(z,P),g!==void 0&&(k.exports=g))})()},UGPy:function(k,z,o){k.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(k,z,o){k.exports={buttonFixed:"buttonFixed___2zLVJ",button:"button___-JgFH",buttonWrap:"buttonWrap___aZhhk"}},"Ufr+":function(k,z){k.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAACL0lEQVRIS72WvU9TURTAf4e+qBUritRXoYkaB0w0alz4B3RQExTSbjpooouiddGVxf0hTjKQ+MkANhiVwYTNwcHFRuNgdIHGYiMmVWnja6+5La8ttq99Vesd3/n4nXPuOec+ocHpu6nCecVJFCcUHBDo0eoK0gKvEZ76hNnFy7Lg5kbqCXrGVa8vzyhwVsBoFIQCG5jM+xhNj0jyd90agGmpQVHcQwg0clwjU2SUcDoVk8fVsjUAc0yNiMICOlpyXlEuKCGWuiLjzqcyoBg5xP/CueOzoGDIyaQI0DU3bN61XBa3NBUZ22CvvpMiwLTUbYHzf1gWDpmw9B2S3yoeFEykYnJBdCvaBT4265Z6cEMgNgBn9sPQNHz4ugZgGx3sltCYuojiVqvRd/th4jjsC0J0BhKf63gQLknIUs+AY60A+rfB3UEIboTIDLz65Go9J6alFgT6vAIOboeHp2CrH64+h6m37pYKFnUGWWB9tZrfAOso5Gy4Ng/ZfEl62ISpYQisgzsJuD7fNKxcXUCoE+JR2NUFiSU49wQ2GDAbBV3798tw5D7kVsENMDnXEoUDEI9AeDN8WYGsDb0B0FM0PA0va7ZOLcYpkesl7+wqQXZsqhh7LI1jMNe0TfdsKUGCnfDjJwxMQnqlae1LCrpNvQxafzc8isCDN3DjhTfneo0XB83rqtADlczAsu45D6e8Kv7LslvNon3r2sm4rQ9OGdLOJ9OBtPXRr26Qf/Hb8gvtaezbqqd4vgAAAABJRU5ErkJggg=="},UqFu:function(k,z,o){"use strict";o.d(z,"a",function(){return P});var P=function(T){var b=document.createElement("textarea");return b.value=T,b.value}},Vhoy:function(k,z,o){"use strict";o.d(z,"d",function(){return b}),o.d(z,"e",function(){return y}),o.d(z,"c",function(){return x}),o.d(z,"b",function(){return O}),o.d(z,"a",function(){return m});var P=o("MI8n");class g{constructor(){this._icons=new Map,this._onDidRegister=new P.b}add(e){const f=this._icons.get(e.id);f?e.description?f.description=e.description:console.error(`Duplicate registration of codicon ${e.id}`):(this._icons.set(e.id,e),this._onDidRegister.fire(e))}get(e){return this._icons.get(e)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const T=new g,b=T;function y(e,f){return new O(e,f)}function x(e){return e?e.replace(/\$\((.*?)\)/g,(f,a)=>` ${a} `).trim():""}class O{constructor(e,f,a){this.id=e,this.definition=f,this.description=a,T.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var m;(function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9\\-]+",e.iconModifierExpression="~[A-Za-z]+";const f=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function a(i){if(i instanceof O)return["codicon","codicon-"+i.id];const n=f.exec(i.id);if(!n)return a(O.error);let[,l,h]=n;const d=["codicon","codicon-"+l];return h&&d.push("codicon-modifier-"+h.substr(1)),d}e.asClassNameArray=a;function u(i){return a(i).join(" ")}e.asClassName=u;function r(i){return"."+a(i).join(".")}e.asCSSSelector=r})(m||(m={})),function(e){e.add=new e("add",{fontCharacter:"\\ea60"}),e.plus=new e("plus",e.add.definition),e.gistNew=new e("gist-new",e.add.definition),e.repoCreate=new e("repo-create",e.add.definition),e.lightbulb=new e("lightbulb",{fontCharacter:"\\ea61"}),e.lightBulb=new e("light-bulb",{fontCharacter:"\\ea61"}),e.repo=new e("repo",{fontCharacter:"\\ea62"}),e.repoDelete=new e("repo-delete",{fontCharacter:"\\ea62"}),e.gistFork=new e("gist-fork",{fontCharacter:"\\ea63"}),e.repoForked=new e("repo-forked",{fontCharacter:"\\ea63"}),e.gitPullRequest=new e("git-pull-request",{fontCharacter:"\\ea64"}),e.gitPullRequestAbandoned=new e("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),e.recordKeys=new e("record-keys",{fontCharacter:"\\ea65"}),e.keyboard=new e("keyboard",{fontCharacter:"\\ea65"}),e.tag=new e("tag",{fontCharacter:"\\ea66"}),e.tagAdd=new e("tag-add",{fontCharacter:"\\ea66"}),e.tagRemove=new e("tag-remove",{fontCharacter:"\\ea66"}),e.person=new e("person",{fontCharacter:"\\ea67"}),e.personFollow=new e("person-follow",{fontCharacter:"\\ea67"}),e.personOutline=new e("person-outline",{fontCharacter:"\\ea67"}),e.personFilled=new e("person-filled",{fontCharacter:"\\ea67"}),e.gitBranch=new e("git-branch",{fontCharacter:"\\ea68"}),e.gitBranchCreate=new e("git-branch-create",{fontCharacter:"\\ea68"}),e.gitBranchDelete=new e("git-branch-delete",{fontCharacter:"\\ea68"}),e.sourceControl=new e("source-control",{fontCharacter:"\\ea68"}),e.mirror=new e("mirror",{fontCharacter:"\\ea69"}),e.mirrorPublic=new e("mirror-public",{fontCharacter:"\\ea69"}),e.star=new e("star",{fontCharacter:"\\ea6a"}),e.starAdd=new e("star-add",{fontCharacter:"\\ea6a"}),e.starDelete=new e("star-delete",{fontCharacter:"\\ea6a"}),e.starEmpty=new e("star-empty",{fontCharacter:"\\ea6a"}),e.comment=new e("comment",{fontCharacter:"\\ea6b"}),e.commentAdd=new e("comment-add",{fontCharacter:"\\ea6b"}),e.alert=new e("alert",{fontCharacter:"\\ea6c"}),e.warning=new e("warning",{fontCharacter:"\\ea6c"}),e.search=new e("search",{fontCharacter:"\\ea6d"}),e.searchSave=new e("search-save",{fontCharacter:"\\ea6d"}),e.logOut=new e("log-out",{fontCharacter:"\\ea6e"}),e.signOut=new e("sign-out",{fontCharacter:"\\ea6e"}),e.logIn=new e("log-in",{fontCharacter:"\\ea6f"}),e.signIn=new e("sign-in",{fontCharacter:"\\ea6f"}),e.eye=new e("eye",{fontCharacter:"\\ea70"}),e.eyeUnwatch=new e("eye-unwatch",{fontCharacter:"\\ea70"}),e.eyeWatch=new e("eye-watch",{fontCharacter:"\\ea70"}),e.circleFilled=new e("circle-filled",{fontCharacter:"\\ea71"}),e.primitiveDot=new e("primitive-dot",{fontCharacter:"\\ea71"}),e.closeDirty=new e("close-dirty",{fontCharacter:"\\ea71"}),e.debugBreakpoint=new e("debug-breakpoint",{fontCharacter:"\\ea71"}),e.debugBreakpointDisabled=new e("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),e.debugHint=new e("debug-hint",{fontCharacter:"\\ea71"}),e.primitiveSquare=new e("primitive-square",{fontCharacter:"\\ea72"}),e.edit=new e("edit",{fontCharacter:"\\ea73"}),e.pencil=new e("pencil",{fontCharacter:"\\ea73"}),e.info=new e("info",{fontCharacter:"\\ea74"}),e.issueOpened=new e("issue-opened",{fontCharacter:"\\ea74"}),e.gistPrivate=new e("gist-private",{fontCharacter:"\\ea75"}),e.gitForkPrivate=new e("git-fork-private",{fontCharacter:"\\ea75"}),e.lock=new e("lock",{fontCharacter:"\\ea75"}),e.mirrorPrivate=new e("mirror-private",{fontCharacter:"\\ea75"}),e.close=new e("close",{fontCharacter:"\\ea76"}),e.removeClose=new e("remove-close",{fontCharacter:"\\ea76"}),e.x=new e("x",{fontCharacter:"\\ea76"}),e.repoSync=new e("repo-sync",{fontCharacter:"\\ea77"}),e.sync=new e("sync",{fontCharacter:"\\ea77"}),e.clone=new e("clone",{fontCharacter:"\\ea78"}),e.desktopDownload=new e("desktop-download",{fontCharacter:"\\ea78"}),e.beaker=new e("beaker",{fontCharacter:"\\ea79"}),e.microscope=new e("microscope",{fontCharacter:"\\ea79"}),e.vm=new e("vm",{fontCharacter:"\\ea7a"}),e.deviceDesktop=new e("device-desktop",{fontCharacter:"\\ea7a"}),e.file=new e("file",{fontCharacter:"\\ea7b"}),e.fileText=new e("file-text",{fontCharacter:"\\ea7b"}),e.more=new e("more",{fontCharacter:"\\ea7c"}),e.ellipsis=new e("ellipsis",{fontCharacter:"\\ea7c"}),e.kebabHorizontal=new e("kebab-horizontal",{fontCharacter:"\\ea7c"}),e.mailReply=new e("mail-reply",{fontCharacter:"\\ea7d"}),e.reply=new e("reply",{fontCharacter:"\\ea7d"}),e.organization=new e("organization",{fontCharacter:"\\ea7e"}),e.organizationFilled=new e("organization-filled",{fontCharacter:"\\ea7e"}),e.organizationOutline=new e("organization-outline",{fontCharacter:"\\ea7e"}),e.newFile=new e("new-file",{fontCharacter:"\\ea7f"}),e.fileAdd=new e("file-add",{fontCharacter:"\\ea7f"}),e.newFolder=new e("new-folder",{fontCharacter:"\\ea80"}),e.fileDirectoryCreate=new e("file-directory-create",{fontCharacter:"\\ea80"}),e.trash=new e("trash",{fontCharacter:"\\ea81"}),e.trashcan=new e("trashcan",{fontCharacter:"\\ea81"}),e.history=new e("history",{fontCharacter:"\\ea82"}),e.clock=new e("clock",{fontCharacter:"\\ea82"}),e.folder=new e("folder",{fontCharacter:"\\ea83"}),e.fileDirectory=new e("file-directory",{fontCharacter:"\\ea83"}),e.symbolFolder=new e("symbol-folder",{fontCharacter:"\\ea83"}),e.logoGithub=new e("logo-github",{fontCharacter:"\\ea84"}),e.markGithub=new e("mark-github",{fontCharacter:"\\ea84"}),e.github=new e("github",{fontCharacter:"\\ea84"}),e.terminal=new e("terminal",{fontCharacter:"\\ea85"}),e.console=new e("console",{fontCharacter:"\\ea85"}),e.repl=new e("repl",{fontCharacter:"\\ea85"}),e.zap=new e("zap",{fontCharacter:"\\ea86"}),e.symbolEvent=new e("symbol-event",{fontCharacter:"\\ea86"}),e.error=new e("error",{fontCharacter:"\\ea87"}),e.stop=new e("stop",{fontCharacter:"\\ea87"}),e.variable=new e("variable",{fontCharacter:"\\ea88"}),e.symbolVariable=new e("symbol-variable",{fontCharacter:"\\ea88"}),e.array=new e("array",{fontCharacter:"\\ea8a"}),e.symbolArray=new e("symbol-array",{fontCharacter:"\\ea8a"}),e.symbolModule=new e("symbol-module",{fontCharacter:"\\ea8b"}),e.symbolPackage=new e("symbol-package",{fontCharacter:"\\ea8b"}),e.symbolNamespace=new e("symbol-namespace",{fontCharacter:"\\ea8b"}),e.symbolObject=new e("symbol-object",{fontCharacter:"\\ea8b"}),e.symbolMethod=new e("symbol-method",{fontCharacter:"\\ea8c"}),e.symbolFunction=new e("symbol-function",{fontCharacter:"\\ea8c"}),e.symbolConstructor=new e("symbol-constructor",{fontCharacter:"\\ea8c"}),e.symbolBoolean=new e("symbol-boolean",{fontCharacter:"\\ea8f"}),e.symbolNull=new e("symbol-null",{fontCharacter:"\\ea8f"}),e.symbolNumeric=new e("symbol-numeric",{fontCharacter:"\\ea90"}),e.symbolNumber=new e("symbol-number",{fontCharacter:"\\ea90"}),e.symbolStructure=new e("symbol-structure",{fontCharacter:"\\ea91"}),e.symbolStruct=new e("symbol-struct",{fontCharacter:"\\ea91"}),e.symbolParameter=new e("symbol-parameter",{fontCharacter:"\\ea92"}),e.symbolTypeParameter=new e("symbol-type-parameter",{fontCharacter:"\\ea92"}),e.symbolKey=new e("symbol-key",{fontCharacter:"\\ea93"}),e.symbolText=new e("symbol-text",{fontCharacter:"\\ea93"}),e.symbolReference=new e("symbol-reference",{fontCharacter:"\\ea94"}),e.goToFile=new e("go-to-file",{fontCharacter:"\\ea94"}),e.symbolEnum=new e("symbol-enum",{fontCharacter:"\\ea95"}),e.symbolValue=new e("symbol-value",{fontCharacter:"\\ea95"}),e.symbolRuler=new e("symbol-ruler",{fontCharacter:"\\ea96"}),e.symbolUnit=new e("symbol-unit",{fontCharacter:"\\ea96"}),e.activateBreakpoints=new e("activate-breakpoints",{fontCharacter:"\\ea97"}),e.archive=new e("archive",{fontCharacter:"\\ea98"}),e.arrowBoth=new e("arrow-both",{fontCharacter:"\\ea99"}),e.arrowDown=new e("arrow-down",{fontCharacter:"\\ea9a"}),e.arrowLeft=new e("arrow-left",{fontCharacter:"\\ea9b"}),e.arrowRight=new e("arrow-right",{fontCharacter:"\\ea9c"}),e.arrowSmallDown=new e("arrow-small-down",{fontCharacter:"\\ea9d"}),e.arrowSmallLeft=new e("arrow-small-left",{fontCharacter:"\\ea9e"}),e.arrowSmallRight=new e("arrow-small-right",{fontCharacter:"\\ea9f"}),e.arrowSmallUp=new e("arrow-small-up",{fontCharacter:"\\eaa0"}),e.arrowUp=new e("arrow-up",{fontCharacter:"\\eaa1"}),e.bell=new e("bell",{fontCharacter:"\\eaa2"}),e.bold=new e("bold",{fontCharacter:"\\eaa3"}),e.book=new e("book",{fontCharacter:"\\eaa4"}),e.bookmark=new e("bookmark",{fontCharacter:"\\eaa5"}),e.debugBreakpointConditionalUnverified=new e("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),e.debugBreakpointConditional=new e("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),e.debugBreakpointConditionalDisabled=new e("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),e.debugBreakpointDataUnverified=new e("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),e.debugBreakpointData=new e("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),e.debugBreakpointDataDisabled=new e("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),e.debugBreakpointLogUnverified=new e("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),e.debugBreakpointLog=new e("debug-breakpoint-log",{fontCharacter:"\\eaab"}),e.debugBreakpointLogDisabled=new e("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),e.briefcase=new e("briefcase",{fontCharacter:"\\eaac"}),e.broadcast=new e("broadcast",{fontCharacter:"\\eaad"}),e.browser=new e("browser",{fontCharacter:"\\eaae"}),e.bug=new e("bug",{fontCharacter:"\\eaaf"}),e.calendar=new e("calendar",{fontCharacter:"\\eab0"}),e.caseSensitive=new e("case-sensitive",{fontCharacter:"\\eab1"}),e.check=new e("check",{fontCharacter:"\\eab2"}),e.checklist=new e("checklist",{fontCharacter:"\\eab3"}),e.chevronDown=new e("chevron-down",{fontCharacter:"\\eab4"}),e.dropDownButton=new e("drop-down-button",e.chevronDown.definition),e.chevronLeft=new e("chevron-left",{fontCharacter:"\\eab5"}),e.chevronRight=new e("chevron-right",{fontCharacter:"\\eab6"}),e.chevronUp=new e("chevron-up",{fontCharacter:"\\eab7"}),e.chromeClose=new e("chrome-close",{fontCharacter:"\\eab8"}),e.chromeMaximize=new e("chrome-maximize",{fontCharacter:"\\eab9"}),e.chromeMinimize=new e("chrome-minimize",{fontCharacter:"\\eaba"}),e.chromeRestore=new e("chrome-restore",{fontCharacter:"\\eabb"}),e.circleOutline=new e("circle-outline",{fontCharacter:"\\eabc"}),e.debugBreakpointUnverified=new e("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),e.circleSlash=new e("circle-slash",{fontCharacter:"\\eabd"}),e.circuitBoard=new e("circuit-board",{fontCharacter:"\\eabe"}),e.clearAll=new e("clear-all",{fontCharacter:"\\eabf"}),e.clippy=new e("clippy",{fontCharacter:"\\eac0"}),e.closeAll=new e("close-all",{fontCharacter:"\\eac1"}),e.cloudDownload=new e("cloud-download",{fontCharacter:"\\eac2"}),e.cloudUpload=new e("cloud-upload",{fontCharacter:"\\eac3"}),e.code=new e("code",{fontCharacter:"\\eac4"}),e.collapseAll=new e("collapse-all",{fontCharacter:"\\eac5"}),e.colorMode=new e("color-mode",{fontCharacter:"\\eac6"}),e.commentDiscussion=new e("comment-discussion",{fontCharacter:"\\eac7"}),e.compareChanges=new e("compare-changes",{fontCharacter:"\\eafd"}),e.creditCard=new e("credit-card",{fontCharacter:"\\eac9"}),e.dash=new e("dash",{fontCharacter:"\\eacc"}),e.dashboard=new e("dashboard",{fontCharacter:"\\eacd"}),e.database=new e("database",{fontCharacter:"\\eace"}),e.debugContinue=new e("debug-continue",{fontCharacter:"\\eacf"}),e.debugDisconnect=new e("debug-disconnect",{fontCharacter:"\\ead0"}),e.debugPause=new e("debug-pause",{fontCharacter:"\\ead1"}),e.debugRestart=new e("debug-restart",{fontCharacter:"\\ead2"}),e.debugStart=new e("debug-start",{fontCharacter:"\\ead3"}),e.debugStepInto=new e("debug-step-into",{fontCharacter:"\\ead4"}),e.debugStepOut=new e("debug-step-out",{fontCharacter:"\\ead5"}),e.debugStepOver=new e("debug-step-over",{fontCharacter:"\\ead6"}),e.debugStop=new e("debug-stop",{fontCharacter:"\\ead7"}),e.debug=new e("debug",{fontCharacter:"\\ead8"}),e.deviceCameraVideo=new e("device-camera-video",{fontCharacter:"\\ead9"}),e.deviceCamera=new e("device-camera",{fontCharacter:"\\eada"}),e.deviceMobile=new e("device-mobile",{fontCharacter:"\\eadb"}),e.diffAdded=new e("diff-added",{fontCharacter:"\\eadc"}),e.diffIgnored=new e("diff-ignored",{fontCharacter:"\\eadd"}),e.diffModified=new e("diff-modified",{fontCharacter:"\\eade"}),e.diffRemoved=new e("diff-removed",{fontCharacter:"\\eadf"}),e.diffRenamed=new e("diff-renamed",{fontCharacter:"\\eae0"}),e.diff=new e("diff",{fontCharacter:"\\eae1"}),e.discard=new e("discard",{fontCharacter:"\\eae2"}),e.editorLayout=new e("editor-layout",{fontCharacter:"\\eae3"}),e.emptyWindow=new e("empty-window",{fontCharacter:"\\eae4"}),e.exclude=new e("exclude",{fontCharacter:"\\eae5"}),e.extensions=new e("extensions",{fontCharacter:"\\eae6"}),e.eyeClosed=new e("eye-closed",{fontCharacter:"\\eae7"}),e.fileBinary=new e("file-binary",{fontCharacter:"\\eae8"}),e.fileCode=new e("file-code",{fontCharacter:"\\eae9"}),e.fileMedia=new e("file-media",{fontCharacter:"\\eaea"}),e.filePdf=new e("file-pdf",{fontCharacter:"\\eaeb"}),e.fileSubmodule=new e("file-submodule",{fontCharacter:"\\eaec"}),e.fileSymlinkDirectory=new e("file-symlink-directory",{fontCharacter:"\\eaed"}),e.fileSymlinkFile=new e("file-symlink-file",{fontCharacter:"\\eaee"}),e.fileZip=new e("file-zip",{fontCharacter:"\\eaef"}),e.files=new e("files",{fontCharacter:"\\eaf0"}),e.filter=new e("filter",{fontCharacter:"\\eaf1"}),e.flame=new e("flame",{fontCharacter:"\\eaf2"}),e.foldDown=new e("fold-down",{fontCharacter:"\\eaf3"}),e.foldUp=new e("fold-up",{fontCharacter:"\\eaf4"}),e.fold=new e("fold",{fontCharacter:"\\eaf5"}),e.folderActive=new e("folder-active",{fontCharacter:"\\eaf6"}),e.folderOpened=new e("folder-opened",{fontCharacter:"\\eaf7"}),e.gear=new e("gear",{fontCharacter:"\\eaf8"}),e.gift=new e("gift",{fontCharacter:"\\eaf9"}),e.gistSecret=new e("gist-secret",{fontCharacter:"\\eafa"}),e.gist=new e("gist",{fontCharacter:"\\eafb"}),e.gitCommit=new e("git-commit",{fontCharacter:"\\eafc"}),e.gitCompare=new e("git-compare",{fontCharacter:"\\eafd"}),e.gitMerge=new e("git-merge",{fontCharacter:"\\eafe"}),e.githubAction=new e("github-action",{fontCharacter:"\\eaff"}),e.githubAlt=new e("github-alt",{fontCharacter:"\\eb00"}),e.globe=new e("globe",{fontCharacter:"\\eb01"}),e.grabber=new e("grabber",{fontCharacter:"\\eb02"}),e.graph=new e("graph",{fontCharacter:"\\eb03"}),e.gripper=new e("gripper",{fontCharacter:"\\eb04"}),e.heart=new e("heart",{fontCharacter:"\\eb05"}),e.home=new e("home",{fontCharacter:"\\eb06"}),e.horizontalRule=new e("horizontal-rule",{fontCharacter:"\\eb07"}),e.hubot=new e("hubot",{fontCharacter:"\\eb08"}),e.inbox=new e("inbox",{fontCharacter:"\\eb09"}),e.issueClosed=new e("issue-closed",{fontCharacter:"\\eba4"}),e.issueReopened=new e("issue-reopened",{fontCharacter:"\\eb0b"}),e.issues=new e("issues",{fontCharacter:"\\eb0c"}),e.italic=new e("italic",{fontCharacter:"\\eb0d"}),e.jersey=new e("jersey",{fontCharacter:"\\eb0e"}),e.json=new e("json",{fontCharacter:"\\eb0f"}),e.kebabVertical=new e("kebab-vertical",{fontCharacter:"\\eb10"}),e.key=new e("key",{fontCharacter:"\\eb11"}),e.law=new e("law",{fontCharacter:"\\eb12"}),e.lightbulbAutofix=new e("lightbulb-autofix",{fontCharacter:"\\eb13"}),e.linkExternal=new e("link-external",{fontCharacter:"\\eb14"}),e.link=new e("link",{fontCharacter:"\\eb15"}),e.listOrdered=new e("list-ordered",{fontCharacter:"\\eb16"}),e.listUnordered=new e("list-unordered",{fontCharacter:"\\eb17"}),e.liveShare=new e("live-share",{fontCharacter:"\\eb18"}),e.loading=new e("loading",{fontCharacter:"\\eb19"}),e.location=new e("location",{fontCharacter:"\\eb1a"}),e.mailRead=new e("mail-read",{fontCharacter:"\\eb1b"}),e.mail=new e("mail",{fontCharacter:"\\eb1c"}),e.markdown=new e("markdown",{fontCharacter:"\\eb1d"}),e.megaphone=new e("megaphone",{fontCharacter:"\\eb1e"}),e.mention=new e("mention",{fontCharacter:"\\eb1f"}),e.milestone=new e("milestone",{fontCharacter:"\\eb20"}),e.mortarBoard=new e("mortar-board",{fontCharacter:"\\eb21"}),e.move=new e("move",{fontCharacter:"\\eb22"}),e.multipleWindows=new e("multiple-windows",{fontCharacter:"\\eb23"}),e.mute=new e("mute",{fontCharacter:"\\eb24"}),e.noNewline=new e("no-newline",{fontCharacter:"\\eb25"}),e.note=new e("note",{fontCharacter:"\\eb26"}),e.octoface=new e("octoface",{fontCharacter:"\\eb27"}),e.openPreview=new e("open-preview",{fontCharacter:"\\eb28"}),e.package_=new e("package",{fontCharacter:"\\eb29"}),e.paintcan=new e("paintcan",{fontCharacter:"\\eb2a"}),e.pin=new e("pin",{fontCharacter:"\\eb2b"}),e.play=new e("play",{fontCharacter:"\\eb2c"}),e.run=new e("run",{fontCharacter:"\\eb2c"}),e.plug=new e("plug",{fontCharacter:"\\eb2d"}),e.preserveCase=new e("preserve-case",{fontCharacter:"\\eb2e"}),e.preview=new e("preview",{fontCharacter:"\\eb2f"}),e.project=new e("project",{fontCharacter:"\\eb30"}),e.pulse=new e("pulse",{fontCharacter:"\\eb31"}),e.question=new e("question",{fontCharacter:"\\eb32"}),e.quote=new e("quote",{fontCharacter:"\\eb33"}),e.radioTower=new e("radio-tower",{fontCharacter:"\\eb34"}),e.reactions=new e("reactions",{fontCharacter:"\\eb35"}),e.references=new e("references",{fontCharacter:"\\eb36"}),e.refresh=new e("refresh",{fontCharacter:"\\eb37"}),e.regex=new e("regex",{fontCharacter:"\\eb38"}),e.remoteExplorer=new e("remote-explorer",{fontCharacter:"\\eb39"}),e.remote=new e("remote",{fontCharacter:"\\eb3a"}),e.remove=new e("remove",{fontCharacter:"\\eb3b"}),e.replaceAll=new e("replace-all",{fontCharacter:"\\eb3c"}),e.replace=new e("replace",{fontCharacter:"\\eb3d"}),e.repoClone=new e("repo-clone",{fontCharacter:"\\eb3e"}),e.repoForcePush=new e("repo-force-push",{fontCharacter:"\\eb3f"}),e.repoPull=new e("repo-pull",{fontCharacter:"\\eb40"}),e.repoPush=new e("repo-push",{fontCharacter:"\\eb41"}),e.report=new e("report",{fontCharacter:"\\eb42"}),e.requestChanges=new e("request-changes",{fontCharacter:"\\eb43"}),e.rocket=new e("rocket",{fontCharacter:"\\eb44"}),e.rootFolderOpened=new e("root-folder-opened",{fontCharacter:"\\eb45"}),e.rootFolder=new e("root-folder",{fontCharacter:"\\eb46"}),e.rss=new e("rss",{fontCharacter:"\\eb47"}),e.ruby=new e("ruby",{fontCharacter:"\\eb48"}),e.saveAll=new e("save-all",{fontCharacter:"\\eb49"}),e.saveAs=new e("save-as",{fontCharacter:"\\eb4a"}),e.save=new e("save",{fontCharacter:"\\eb4b"}),e.screenFull=new e("screen-full",{fontCharacter:"\\eb4c"}),e.screenNormal=new e("screen-normal",{fontCharacter:"\\eb4d"}),e.searchStop=new e("search-stop",{fontCharacter:"\\eb4e"}),e.server=new e("server",{fontCharacter:"\\eb50"}),e.settingsGear=new e("settings-gear",{fontCharacter:"\\eb51"}),e.settings=new e("settings",{fontCharacter:"\\eb52"}),e.shield=new e("shield",{fontCharacter:"\\eb53"}),e.smiley=new e("smiley",{fontCharacter:"\\eb54"}),e.sortPrecedence=new e("sort-precedence",{fontCharacter:"\\eb55"}),e.splitHorizontal=new e("split-horizontal",{fontCharacter:"\\eb56"}),e.splitVertical=new e("split-vertical",{fontCharacter:"\\eb57"}),e.squirrel=new e("squirrel",{fontCharacter:"\\eb58"}),e.starFull=new e("star-full",{fontCharacter:"\\eb59"}),e.starHalf=new e("star-half",{fontCharacter:"\\eb5a"}),e.symbolClass=new e("symbol-class",{fontCharacter:"\\eb5b"}),e.symbolColor=new e("symbol-color",{fontCharacter:"\\eb5c"}),e.symbolConstant=new e("symbol-constant",{fontCharacter:"\\eb5d"}),e.symbolEnumMember=new e("symbol-enum-member",{fontCharacter:"\\eb5e"}),e.symbolField=new e("symbol-field",{fontCharacter:"\\eb5f"}),e.symbolFile=new e("symbol-file",{fontCharacter:"\\eb60"}),e.symbolInterface=new e("symbol-interface",{fontCharacter:"\\eb61"}),e.symbolKeyword=new e("symbol-keyword",{fontCharacter:"\\eb62"}),e.symbolMisc=new e("symbol-misc",{fontCharacter:"\\eb63"}),e.symbolOperator=new e("symbol-operator",{fontCharacter:"\\eb64"}),e.symbolProperty=new e("symbol-property",{fontCharacter:"\\eb65"}),e.wrench=new e("wrench",{fontCharacter:"\\eb65"}),e.wrenchSubaction=new e("wrench-subaction",{fontCharacter:"\\eb65"}),e.symbolSnippet=new e("symbol-snippet",{fontCharacter:"\\eb66"}),e.tasklist=new e("tasklist",{fontCharacter:"\\eb67"}),e.telescope=new e("telescope",{fontCharacter:"\\eb68"}),e.textSize=new e("text-size",{fontCharacter:"\\eb69"}),e.threeBars=new e("three-bars",{fontCharacter:"\\eb6a"}),e.thumbsdown=new e("thumbsdown",{fontCharacter:"\\eb6b"}),e.thumbsup=new e("thumbsup",{fontCharacter:"\\eb6c"}),e.tools=new e("tools",{fontCharacter:"\\eb6d"}),e.triangleDown=new e("triangle-down",{fontCharacter:"\\eb6e"}),e.triangleLeft=new e("triangle-left",{fontCharacter:"\\eb6f"}),e.triangleRight=new e("triangle-right",{fontCharacter:"\\eb70"}),e.triangleUp=new e("triangle-up",{fontCharacter:"\\eb71"}),e.twitter=new e("twitter",{fontCharacter:"\\eb72"}),e.unfold=new e("unfold",{fontCharacter:"\\eb73"}),e.unlock=new e("unlock",{fontCharacter:"\\eb74"}),e.unmute=new e("unmute",{fontCharacter:"\\eb75"}),e.unverified=new e("unverified",{fontCharacter:"\\eb76"}),e.verified=new e("verified",{fontCharacter:"\\eb77"}),e.versions=new e("versions",{fontCharacter:"\\eb78"}),e.vmActive=new e("vm-active",{fontCharacter:"\\eb79"}),e.vmOutline=new e("vm-outline",{fontCharacter:"\\eb7a"}),e.vmRunning=new e("vm-running",{fontCharacter:"\\eb7b"}),e.watch=new e("watch",{fontCharacter:"\\eb7c"}),e.whitespace=new e("whitespace",{fontCharacter:"\\eb7d"}),e.wholeWord=new e("whole-word",{fontCharacter:"\\eb7e"}),e.window=new e("window",{fontCharacter:"\\eb7f"}),e.wordWrap=new e("word-wrap",{fontCharacter:"\\eb80"}),e.zoomIn=new e("zoom-in",{fontCharacter:"\\eb81"}),e.zoomOut=new e("zoom-out",{fontCharacter:"\\eb82"}),e.listFilter=new e("list-filter",{fontCharacter:"\\eb83"}),e.listFlat=new e("list-flat",{fontCharacter:"\\eb84"}),e.listSelection=new e("list-selection",{fontCharacter:"\\eb85"}),e.selection=new e("selection",{fontCharacter:"\\eb85"}),e.listTree=new e("list-tree",{fontCharacter:"\\eb86"}),e.debugBreakpointFunctionUnverified=new e("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),e.debugBreakpointFunction=new e("debug-breakpoint-function",{fontCharacter:"\\eb88"}),e.debugBreakpointFunctionDisabled=new e("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),e.debugStackframeActive=new e("debug-stackframe-active",{fontCharacter:"\\eb89"}),e.debugStackframeDot=new e("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),e.debugStackframe=new e("debug-stackframe",{fontCharacter:"\\eb8b"}),e.debugStackframeFocused=new e("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),e.debugBreakpointUnsupported=new e("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),e.symbolString=new e("symbol-string",{fontCharacter:"\\eb8d"}),e.debugReverseContinue=new e("debug-reverse-continue",{fontCharacter:"\\eb8e"}),e.debugStepBack=new e("debug-step-back",{fontCharacter:"\\eb8f"}),e.debugRestartFrame=new e("debug-restart-frame",{fontCharacter:"\\eb90"}),e.callIncoming=new e("call-incoming",{fontCharacter:"\\eb92"}),e.callOutgoing=new e("call-outgoing",{fontCharacter:"\\eb93"}),e.menu=new e("menu",{fontCharacter:"\\eb94"}),e.expandAll=new e("expand-all",{fontCharacter:"\\eb95"}),e.feedback=new e("feedback",{fontCharacter:"\\eb96"}),e.groupByRefType=new e("group-by-ref-type",{fontCharacter:"\\eb97"}),e.ungroupByRefType=new e("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),e.account=new e("account",{fontCharacter:"\\eb99"}),e.bellDot=new e("bell-dot",{fontCharacter:"\\eb9a"}),e.debugConsole=new e("debug-console",{fontCharacter:"\\eb9b"}),e.library=new e("library",{fontCharacter:"\\eb9c"}),e.output=new e("output",{fontCharacter:"\\eb9d"}),e.runAll=new e("run-all",{fontCharacter:"\\eb9e"}),e.syncIgnored=new e("sync-ignored",{fontCharacter:"\\eb9f"}),e.pinned=new e("pinned",{fontCharacter:"\\eba0"}),e.githubInverted=new e("github-inverted",{fontCharacter:"\\eba1"}),e.debugAlt=new e("debug-alt",{fontCharacter:"\\eb91"}),e.serverProcess=new e("server-process",{fontCharacter:"\\eba2"}),e.serverEnvironment=new e("server-environment",{fontCharacter:"\\eba3"}),e.pass=new e("pass",{fontCharacter:"\\eba4"}),e.stopCircle=new e("stop-circle",{fontCharacter:"\\eba5"}),e.playCircle=new e("play-circle",{fontCharacter:"\\eba6"}),e.record=new e("record",{fontCharacter:"\\eba7"}),e.debugAltSmall=new e("debug-alt-small",{fontCharacter:"\\eba8"}),e.vmConnect=new e("vm-connect",{fontCharacter:"\\eba9"}),e.cloud=new e("cloud",{fontCharacter:"\\ebaa"}),e.merge=new e("merge",{fontCharacter:"\\ebab"}),e.exportIcon=new e("export",{fontCharacter:"\\ebac"}),e.graphLeft=new e("graph-left",{fontCharacter:"\\ebad"}),e.magnet=new e("magnet",{fontCharacter:"\\ebae"}),e.notebook=new e("notebook",{fontCharacter:"\\ebaf"}),e.redo=new e("redo",{fontCharacter:"\\ebb0"}),e.checkAll=new e("check-all",{fontCharacter:"\\ebb1"}),e.pinnedDirty=new e("pinned-dirty",{fontCharacter:"\\ebb2"}),e.passFilled=new e("pass-filled",{fontCharacter:"\\ebb3"}),e.circleLargeFilled=new e("circle-large-filled",{fontCharacter:"\\ebb4"}),e.circleLargeOutline=new e("circle-large-outline",{fontCharacter:"\\ebb5"}),e.combine=new e("combine",{fontCharacter:"\\ebb6"}),e.gather=new e("gather",{fontCharacter:"\\ebb6"}),e.table=new e("table",{fontCharacter:"\\ebb7"}),e.variableGroup=new e("variable-group",{fontCharacter:"\\ebb8"}),e.typeHierarchy=new e("type-hierarchy",{fontCharacter:"\\ebb9"}),e.typeHierarchySub=new e("type-hierarchy-sub",{fontCharacter:"\\ebba"}),e.typeHierarchySuper=new e("type-hierarchy-super",{fontCharacter:"\\ebbb"}),e.gitPullRequestCreate=new e("git-pull-request-create",{fontCharacter:"\\ebbc"}),e.runAbove=new e("run-above",{fontCharacter:"\\ebbd"}),e.runBelow=new e("run-below",{fontCharacter:"\\ebbe"}),e.notebookTemplate=new e("notebook-template",{fontCharacter:"\\ebbf"}),e.debugRerun=new e("debug-rerun",{fontCharacter:"\\ebc0"}),e.workspaceTrusted=new e("workspace-trusted",{fontCharacter:"\\ebc1"}),e.workspaceUntrusted=new e("workspace-untrusted",{fontCharacter:"\\ebc2"}),e.workspaceUnspecified=new e("workspace-unspecified",{fontCharacter:"\\ebc3"}),e.terminalCmd=new e("terminal-cmd",{fontCharacter:"\\ebc4"}),e.terminalDebian=new e("terminal-debian",{fontCharacter:"\\ebc5"}),e.terminalLinux=new e("terminal-linux",{fontCharacter:"\\ebc6"}),e.terminalPowershell=new e("terminal-powershell",{fontCharacter:"\\ebc7"}),e.terminalTmux=new e("terminal-tmux",{fontCharacter:"\\ebc8"}),e.terminalUbuntu=new e("terminal-ubuntu",{fontCharacter:"\\ebc9"}),e.terminalBash=new e("terminal-bash",{fontCharacter:"\\ebca"}),e.arrowSwap=new e("arrow-swap",{fontCharacter:"\\ebcb"}),e.copy=new e("copy",{fontCharacter:"\\ebcc"}),e.personAdd=new e("person-add",{fontCharacter:"\\ebcd"}),e.filterFilled=new e("filter-filled",{fontCharacter:"\\ebce"}),e.wand=new e("wand",{fontCharacter:"\\ebcf"}),e.debugLineByLine=new e("debug-line-by-line",{fontCharacter:"\\ebd0"}),e.inspect=new e("inspect",{fontCharacter:"\\ebd1"}),e.layers=new e("layers",{fontCharacter:"\\ebd2"}),e.layersDot=new e("layers-dot",{fontCharacter:"\\ebd3"}),e.layersActive=new e("layers-active",{fontCharacter:"\\ebd4"}),e.compass=new e("compass",{fontCharacter:"\\ebd5"}),e.compassDot=new e("compass-dot",{fontCharacter:"\\ebd6"}),e.compassActive=new e("compass-active",{fontCharacter:"\\ebd7"}),e.azure=new e("azure",{fontCharacter:"\\ebd8"}),e.issueDraft=new e("issue-draft",{fontCharacter:"\\ebd9"}),e.gitPullRequestClosed=new e("git-pull-request-closed",{fontCharacter:"\\ebda"}),e.gitPullRequestDraft=new e("git-pull-request-draft",{fontCharacter:"\\ebdb"}),e.debugAll=new e("debug-all",{fontCharacter:"\\ebdc"}),e.debugCoverage=new e("debug-coverage",{fontCharacter:"\\ebdd"}),e.runErrors=new e("run-errors",{fontCharacter:"\\ebde"}),e.folderLibrary=new e("folder-library",{fontCharacter:"\\ebdf"}),e.debugContinueSmall=new e("debug-continue-small",{fontCharacter:"\\ebe0"}),e.beakerStop=new e("beaker-stop",{fontCharacter:"\\ebe1"}),e.graphLine=new e("graph-line",{fontCharacter:"\\ebe2"}),e.graphScatter=new e("graph-scatter",{fontCharacter:"\\ebe3"}),e.pieChart=new e("pie-chart",{fontCharacter:"\\ebe4"}),e.bracket=new e("bracket",e.json.definition),e.bracketDot=new e("bracket-dot",{fontCharacter:"\\ebe5"}),e.bracketError=new e("bracket-error",{fontCharacter:"\\ebe6"}),e.lockSmall=new e("lock-small",{fontCharacter:"\\ebe7"}),e.azureDevops=new e("azure-devops",{fontCharacter:"\\ebe8"}),e.verifiedFilled=new e("verified-filled",{fontCharacter:"\\ebe9"})}(O||(O={}))},"VrN/":function(k,z,o){(function(P,g){k.exports=g()})(this,function(){"use strict";var P=navigator.userAgent,g=navigator.platform,T=/gecko\/\d/i.test(P),b=/MSIE \d/.test(P),y=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(P),x=/Edge\/(\d+)/.exec(P),O=b||y||x,m=O&&(b?document.documentMode||6:+(x||y)[1]),e=!x&&/WebKit\//.test(P),f=e&&/Qt\/\d+\.\d+/.test(P),a=!x&&/Chrome\//.test(P),u=/Opera\//.test(P),r=/Apple Computer/.test(navigator.vendor),i=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(P),n=/PhantomJS/.test(P),l=!x&&/AppleWebKit/.test(P)&&/Mobile\/\w+/.test(P),h=/Android/.test(P),d=l||h||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(P),s=l||/Mac/.test(g),c=/\bCrOS\b/.test(P),w=/win/i.test(g),E=u&&P.match(/Version\/(\d*\.\d*)/);E&&(E=Number(E[1])),E&&E>=15&&(u=!1,e=!0);var v=s&&(f||u&&(E==null||E<12.11)),R=T||O&&m>=9;function M(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var C=function(t,p){var B=t.className,j=M(p).exec(B);if(j){var G=B.slice(j.index+j[0].length);t.className=B.slice(0,j.index)+(G?j[1]+G:"")}};function S(t){for(var p=t.childNodes.length;p>0;--p)t.removeChild(t.firstChild);return t}function _(t,p){return S(t).appendChild(p)}function A(t,p,B,j){var G=document.createElement(t);if(B&&(G.className=B),j&&(G.style.cssText=j),typeof p=="string")G.appendChild(document.createTextNode(p));else if(p)for(var ne=0;ne<p.length;++ne)G.appendChild(p[ne]);return G}function U(t,p,B,j){var G=A(t,p,B,j);return G.setAttribute("role","presentation"),G}var L;document.createRange?L=function(t,p,B,j){var G=document.createRange();return G.setEnd(j||t,B),G.setStart(t,p),G}:L=function(t,p,B){var j=document.body.createTextRange();try{j.moveToElementText(t.parentNode)}catch(G){return j}return j.collapse(!0),j.moveEnd("character",B),j.moveStart("character",p),j};function N(t,p){if(p.nodeType==3&&(p=p.parentNode),t.contains)return t.contains(p);do if(p.nodeType==11&&(p=p.host),p==t)return!0;while(p=p.parentNode)}function V(){var t;try{t=document.activeElement}catch(p){t=document.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function H(t,p){var B=t.className;M(p).test(B)||(t.className+=(B?" ":"")+p)}function D(t,p){for(var B=t.split(" "),j=0;j<B.length;j++)B[j]&&!M(B[j]).test(p)&&(p+=" "+B[j]);return p}var W=function(t){t.select()};l?W=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:O&&(W=function(t){try{t.select()}catch(p){}});function F(t){var p=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,p)}}function I(t,p,B){p||(p={});for(var j in t)t.hasOwnProperty(j)&&(B!==!1||!p.hasOwnProperty(j))&&(p[j]=t[j]);return p}function K(t,p,B,j,G){p==null&&(p=t.search(/[^\s\u00a0]/),p==-1&&(p=t.length));for(var ne=j||0,ge=G||0;;){var we=t.indexOf(" ",ne);if(we<0||we>=p)return ge+(p-ne);ge+=we-ne,ge+=B-ge%B,ne=we+1}}var ee=function(){this.id=null,this.f=null,this.time=0,this.handler=F(this.onTimeout,this)};ee.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},ee.prototype.set=function(t,p){this.f=p;var B=+new Date+t;(!this.id||B<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=B)};function he(t,p){for(var B=0;B<t.length;++B)if(t[B]==p)return B;return-1}var de=50,Se={toString:function(){return"CodeMirror.Pass"}},Te={scroll:!1},ce={origin:"*mouse"},be={origin:"+move"};function Ee(t,p,B){for(var j=0,G=0;;){var ne=t.indexOf(" ",j);ne==-1&&(ne=t.length);var ge=ne-j;if(ne==t.length||G+ge>=p)return j+Math.min(ge,p-G);if(G+=ne-j,G+=B-G%B,j=ne+1,G>=p)return j}}var ue=[""];function le(t){for(;ue.length<=t;)ue.push($(ue)+" ");return ue[t]}function $(t){return t[t.length-1]}function me(t,p){for(var B=[],j=0;j<t.length;j++)B[j]=p(t[j],j);return B}function re(t,p,B){for(var j=0,G=B(p);j<t.length&&B(t[j])<=G;)j++;t.splice(j,0,p)}function ae(){}function Oe(t,p){var B;return Object.create?B=Object.create(t):(ae.prototype=t,B=new ae),p&&I(p,B),B}var se=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function te(t){return/\w/.test(t)||t>"\x80"&&(t.toUpperCase()!=t.toLowerCase()||se.test(t))}function Q(t,p){return p?p.source.indexOf("\\w")>-1&&te(t)?!0:p.test(t):te(t)}function J(t){for(var p in t)if(t.hasOwnProperty(p)&&t[p])return!1;return!0}var ve=/[\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 _e(t){return t.charCodeAt(0)>=768&&ve.test(t)}function Ae(t,p,B){for(;(B<0?p>0:p<t.length)&&_e(t.charAt(p));)p+=B;return p}function Qe(t,p,B){for(var j=p>B?-1:1;;){if(p==B)return p;var G=(p+B)/2,ne=j<0?Math.ceil(G):Math.floor(G);if(ne==p)return t(ne)?p:B;t(ne)?B=ne:p=ne+j}}function tt(t,p,B,j){if(!t)return j(p,B,"ltr",0);for(var G=!1,ne=0;ne<t.length;++ne){var ge=t[ne];(ge.from<B&&ge.to>p||p==B&&ge.to==p)&&(j(Math.max(ge.from,p),Math.min(ge.to,B),ge.level==1?"rtl":"ltr",ne),G=!0)}G||j(p,B,"ltr")}var dt=null;function mt(t,p,B){var j;dt=null;for(var G=0;G<t.length;++G){var ne=t[G];if(ne.from<p&&ne.to>p)return G;ne.to==p&&(ne.from!=ne.to&&B=="before"?j=G:dt=G),ne.from==p&&(ne.from!=ne.to&&B!="before"?j=G:dt=G)}return j!=null?j:dt}var vt=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",p="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function B(je){return je<=247?t.charAt(je):1424<=je&&je<=1524?"R":1536<=je&&je<=1785?p.charAt(je-1536):1774<=je&&je<=2220?"r":8192<=je&&je<=8203?"w":je==8204?"b":"L"}var j=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,G=/[stwN]/,ne=/[LRr]/,ge=/[Lb1n]/,we=/[1n]/;function Re(je,gt,At){this.level=je,this.from=gt,this.to=At}return function(je,gt){var At=gt=="ltr"?"L":"R";if(je.length==0||gt=="ltr"&&!j.test(je))return!1;for(var tn=je.length,zt=[],Tn=0;Tn<tn;++Tn)zt.push(B(je.charCodeAt(Tn)));for(var Bn=0,Zn=At;Bn<tn;++Bn){var yr=zt[Bn];yr=="m"?zt[Bn]=Zn:Zn=yr}for(var Ur=0,Er=At;Ur<tn;++Ur){var Xr=zt[Ur];Xr=="1"&&Er=="r"?zt[Ur]="n":ne.test(Xr)&&(Er=Xr,Xr=="r"&&(zt[Ur]="R"))}for(var ia=1,ea=zt[0];ia<tn-1;++ia){var Sa=zt[ia];Sa=="+"&&ea=="1"&&zt[ia+1]=="1"?zt[ia]="1":Sa==","&&ea==zt[ia+1]&&(ea=="1"||ea=="n")&&(zt[ia]=ea),ea=Sa}for(var Va=0;Va<tn;++Va){var vi=zt[Va];if(vi==",")zt[Va]="N";else if(vi=="%"){var ti=void 0;for(ti=Va+1;ti<tn&&zt[ti]=="%";++ti);for(var zi=Va&&zt[Va-1]=="!"||ti<tn&&zt[ti]=="1"?"1":"N",Ui=Va;Ui<ti;++Ui)zt[Ui]=zi;Va=ti-1}}for(var ci=0,ji=At;ci<tn;++ci){var Ci=zt[ci];ji=="L"&&Ci=="1"?zt[ci]="L":ne.test(Ci)&&(ji=Ci)}for(var pi=0;pi<tn;++pi)if(G.test(zt[pi])){var di=void 0;for(di=pi+1;di<tn&&G.test(zt[di]);++di);for(var ii=(pi?zt[pi-1]:At)=="L",Bi=(di<tn?zt[di]:At)=="L",Ts=ii==Bi?ii?"L":"R":At,es=pi;es<di;++es)zt[es]=Ts;pi=di-1}for(var Oi=[],Po,_i=0;_i<tn;)if(ge.test(zt[_i])){var ru=_i;for(++_i;_i<tn&&ge.test(zt[_i]);++_i);Oi.push(new Re(0,ru,_i))}else{var Fo=_i,ds=Oi.length,fs=gt=="rtl"?1:0;for(++_i;_i<tn&&zt[_i]!="L";++_i);for(var Mi=Fo;Mi<_i;)if(we.test(zt[Mi])){Fo<Mi&&(Oi.splice(ds,0,new Re(1,Fo,Mi)),ds+=fs);var Os=Mi;for(++Mi;Mi<_i&&we.test(zt[Mi]);++Mi);Oi.splice(ds,0,new Re(2,Os,Mi)),ds+=fs,Fo=Mi}else++Mi;Fo<_i&&Oi.splice(ds,0,new Re(1,Fo,_i))}return gt=="ltr"&&(Oi[0].level==1&&(Po=je.match(/^\s+/))&&(Oi[0].from=Po[0].length,Oi.unshift(new Re(0,0,Po[0].length))),$(Oi).level==1&&(Po=je.match(/\s+$/))&&($(Oi).to-=Po[0].length,Oi.push(new Re(0,tn-Po[0].length,tn)))),gt=="rtl"?Oi.reverse():Oi}}();function yt(t,p){var B=t.order;return B==null&&(B=t.order=vt(t.text,p)),B}var Ye=[],Ue=function(t,p,B){if(t.addEventListener)t.addEventListener(p,B,!1);else if(t.attachEvent)t.attachEvent("on"+p,B);else{var j=t._handlers||(t._handlers={});j[p]=(j[p]||Ye).concat(B)}};function ft(t,p){return t._handlers&&t._handlers[p]||Ye}function jt(t,p,B){if(t.removeEventListener)t.removeEventListener(p,B,!1);else if(t.detachEvent)t.detachEvent("on"+p,B);else{var j=t._handlers,G=j&&j[p];if(G){var ne=he(G,B);ne>-1&&(j[p]=G.slice(0,ne).concat(G.slice(ne+1)))}}}function bt(t,p){var B=ft(t,p);if(!B.length)return;for(var j=Array.prototype.slice.call(arguments,2),G=0;G<B.length;++G)B[G].apply(null,j)}function Pt(t,p,B){return typeof p=="string"&&(p={type:p,preventDefault:function(){this.defaultPrevented=!0}}),bt(t,B||p.type,t,p),Fe(p)||p.codemirrorIgnore}function it(t){var p=t._handlers&&t._handlers.cursorActivity;if(!p)return;for(var B=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),j=0;j<p.length;++j)he(B,p[j])==-1&&B.push(p[j])}function He(t,p){return ft(t,p).length>0}function Ge(t){t.prototype.on=function(p,B){Ue(this,p,B)},t.prototype.off=function(p,B){jt(this,p,B)}}function Ce(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Ie(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function Fe(t){return t.defaultPrevented!=null?t.defaultPrevented:t.returnValue==!1}function Be(t){Ce(t),Ie(t)}function We(t){return t.target||t.srcElement}function st(t){var p=t.which;return p==null&&(t.button&1?p=1:t.button&2?p=3:t.button&4&&(p=2)),s&&t.ctrlKey&&p==1&&(p=3),p}var Dt=function(){if(O&&m<9)return!1;var t=A("div");return"draggable"in t||"dragDrop"in t}(),Ht;function rn(t){if(Ht==null){var p=A("span","\u200B");_(t,A("span",[p,document.createTextNode("x")])),t.firstChild.offsetHeight!=0&&(Ht=p.offsetWidth<=1&&p.offsetHeight>2&&!(O&&m<8))}var B=Ht?A("span","\u200B"):A("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return B.setAttribute("cm-text",""),B}var Bt;function Ct(t){if(Bt!=null)return Bt;var p=_(t,document.createTextNode("A\u062EA")),B=L(p,0,1).getBoundingClientRect(),j=L(p,1,2).getBoundingClientRect();return S(t),!B||B.left==B.right?!1:Bt=j.right-B.right<3}var Ke=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(t){for(var p=0,B=[],j=t.length;p<=j;){var G=t.indexOf(`
|
|
|
`,p);G==-1&&(G=t.length);var ne=t.slice(p,t.charAt(G-1)=="\r"?G-1:G),ge=ne.indexOf("\r");ge!=-1?(B.push(ne.slice(0,ge)),p+=ge+1):(B.push(ne),p=G+1)}return B}:function(t){return t.split(/\r\n?|\n/)},et=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(p){return!1}}:function(t){var p;try{p=t.ownerDocument.selection.createRange()}catch(B){}return!p||p.parentElement()!=t?!1:p.compareEndPoints("StartToEnd",p)!=0},at=function(){var t=A("div");return"oncopy"in t?!0:(t.setAttribute("oncopy","return;"),typeof t.oncopy=="function")}(),Pe=null;function Xe(t){if(Pe!=null)return Pe;var p=_(t,A("span","x")),B=p.getBoundingClientRect(),j=L(p,0,1).getBoundingClientRect();return Pe=Math.abs(B.left-j.left)>1}var ht={},Et={};function Ot(t,p){arguments.length>2&&(p.dependencies=Array.prototype.slice.call(arguments,2)),ht[t]=p}function Mt(t,p){Et[t]=p}function lt(t){if(typeof t=="string"&&Et.hasOwnProperty(t))t=Et[t];else if(t&&typeof t.name=="string"&&Et.hasOwnProperty(t.name)){var p=Et[t.name];typeof p=="string"&&(p={name:p}),t=Oe(p,t),t.name=p.name}else{if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return lt("application/xml");if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return lt("application/json")}return typeof t=="string"?{name:t}:t||{name:"null"}}function Ft(t,p){p=lt(p);var B=ht[p.name];if(!B)return Ft(t,"text/plain");var j=B(t,p);if(Lt.hasOwnProperty(p.name)){var G=Lt[p.name];for(var ne in G){if(!G.hasOwnProperty(ne))continue;j.hasOwnProperty(ne)&&(j["_"+ne]=j[ne]),j[ne]=G[ne]}}if(j.name=p.name,p.helperType&&(j.helperType=p.helperType),p.modeProps)for(var ge in p.modeProps)j[ge]=p.modeProps[ge];return j}var Lt={};function on(t,p){var B=Lt.hasOwnProperty(t)?Lt[t]:Lt[t]={};I(p,B)}function mn(t,p){if(p===!0)return p;if(t.copyState)return t.copyState(p);var B={};for(var j in p){var G=p[j];G instanceof Array&&(G=G.concat([])),B[j]=G}return B}function Hn(t,p){for(var B;t.innerMode&&!(B=t.innerMode(p),!B||B.mode==t);)p=B.state,t=B.mode;return B||{mode:t,state:p}}function Xn(t,p,B){return t.startState?t.startState(p,B):!0}var Fn=function(t,p,B){this.pos=this.start=0,this.string=t,this.tabSize=p||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=B};Fn.prototype.eol=function(){return this.pos>=this.string.length},Fn.prototype.sol=function(){return this.pos==this.lineStart},Fn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Fn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Fn.prototype.eat=function(t){var p=this.string.charAt(this.pos),B;if(typeof t=="string"?B=p==t:B=p&&(t.test?t.test(p):t(p)),B)return++this.pos,p},Fn.prototype.eatWhile=function(t){for(var p=this.pos;this.eat(t););return this.pos>p},Fn.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},Fn.prototype.skipToEnd=function(){this.pos=this.string.length},Fn.prototype.skipTo=function(t){var p=this.string.indexOf(t,this.pos);if(p>-1)return this.pos=p,!0},Fn.prototype.backUp=function(t){this.pos-=t},Fn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=K(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?K(this.string,this.lineStart,this.tabSize):0)},Fn.prototype.indentation=function(){return K(this.string,null,this.tabSize)-(this.lineStart?K(this.string,this.lineStart,this.tabSize):0)},Fn.prototype.match=function(t,p,B){if(typeof t=="string"){var j=function(ge){return B?ge.toLowerCase():ge},G=this.string.substr(this.pos,t.length);if(j(G)==j(t))return p!==!1&&(this.pos+=t.length),!0}else{var ne=this.string.slice(this.pos).match(t);return ne&&ne.index>0?null:(ne&&p!==!1&&(this.pos+=ne[0].length),ne)}},Fn.prototype.current=function(){return this.string.slice(this.start,this.pos)},Fn.prototype.hideFirstChars=function(t,p){this.lineStart+=t;try{return p()}finally{this.lineStart-=t}},Fn.prototype.lookAhead=function(t){var p=this.lineOracle;return p&&p.lookAhead(t)},Fn.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};function xn(t,p){if(p-=t.first,p<0||p>=t.size)throw new Error("There is no line "+(p+t.first)+" in the document.");for(var B=t;!B.lines;)for(var j=0;;++j){var G=B.children[j],ne=G.chunkSize();if(p<ne){B=G;break}p-=ne}return B.lines[p]}function fr(t,p,B){var j=[],G=p.line;return t.iter(p.line,B.line+1,function(ne){var ge=ne.text;G==B.line&&(ge=ge.slice(0,B.ch)),G==p.line&&(ge=ge.slice(p.ch)),j.push(ge),++G}),j}function Yn(t,p,B){var j=[];return t.iter(p,B,function(G){j.push(G.text)}),j}function ar(t,p){var B=p-t.height;if(B)for(var j=t;j;j=j.parent)j.height+=B}function nr(t){if(t.parent==null)return null;for(var p=t.parent,B=he(p.lines,t),j=p.parent;j;p=j,j=j.parent)for(var G=0;!(j.children[G]==p);++G)B+=j.children[G].chunkSize();return B+p.first}function Rr(t,p){var B=t.first;e:do{for(var j=0;j<t.children.length;++j){var G=t.children[j],ne=G.height;if(p<ne){t=G;continue e}p-=ne,B+=G.chunkSize()}return B}while(!t.lines);for(var ge=0;ge<t.lines.length;++ge){var we=t.lines[ge],Re=we.height;if(p<Re)break;p-=Re}return B+ge}function pr(t,p){return p>=t.first&&p<t.first+t.size}function sn(t,p){return String(t.lineNumberFormatter(p+t.firstLineNumber))}function qt(t,p,B){if(B===void 0&&(B=null),!(this instanceof qt))return new qt(t,p,B);this.line=t,this.ch=p,this.sticky=B}function On(t,p){return t.line-p.line||t.ch-p.ch}function Fr(t,p){return t.sticky==p.sticky&&On(t,p)==0}function Or(t){return qt(t.line,t.ch)}function xr(t,p){return On(t,p)<0?p:t}function dr(t,p){return On(t,p)<0?t:p}function pe(t,p){return Math.max(t.first,Math.min(p,t.first+t.size-1))}function X(t,p){if(p.line<t.first)return qt(t.first,0);var B=t.first+t.size-1;return p.line>B?qt(B,xn(t,B).text.length):q(p,xn(t,p.line).text.length)}function q(t,p){var B=t.ch;return B==null||B>p?qt(t.line,p):B<0?qt(t.line,0):t}function oe(t,p){for(var B=[],j=0;j<p.length;j++)B[j]=X(t,p[j]);return B}var De=function(t,p){this.state=t,this.lookAhead=p},fe=function(t,p,B,j){this.state=p,this.doc=t,this.line=B,this.maxLookAhead=j||0,this.baseTokens=null,this.baseTokenPos=1};fe.prototype.lookAhead=function(t){var p=this.doc.getLine(this.line+t);return p!=null&&t>this.maxLookAhead&&(this.maxLookAhead=t),p},fe.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var p=this.baseTokens[this.baseTokenPos+1];return{type:p&&p.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},fe.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},fe.fromSaved=function(t,p,B){return p instanceof De?new fe(t,mn(t.mode,p.state),B,p.lookAhead):new fe(t,mn(t.mode,p),B)},fe.prototype.save=function(t){var p=t!==!1?mn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new De(p,this.maxLookAhead):p};function ot(t,p,B,j){var G=[t.state.modeGen],ne={};oa(t,p.text,t.doc.mode,B,function(je,gt){return G.push(je,gt)},ne,j);for(var ge=B.state,we=function(je){B.baseTokens=G;var gt=t.state.overlays[je],At=1,tn=0;B.state=!0,oa(t,p.text,gt.mode,B,function(zt,Tn){for(var Bn=At;tn<zt;){var Zn=G[At];Zn>zt&&G.splice(At,1,zt,G[At+1],Zn),At+=2,tn=Math.min(zt,Zn)}if(!Tn)return;if(gt.opaque)G.splice(Bn,At-Bn,zt,"overlay "+Tn),At=Bn+2;else for(;Bn<At;Bn+=2){var yr=G[Bn+1];G[Bn+1]=(yr?yr+" ":"")+"overlay "+Tn}},ne),B.state=ge,B.baseTokens=null,B.baseTokenPos=1},Re=0;Re<t.state.overlays.length;++Re)we(Re);return{styles:G,classes:ne.bgClass||ne.textClass?ne:null}}function Qt(t,p,B){if(!p.styles||p.styles[0]!=t.state.modeGen){var j=Mn(t,nr(p)),G=p.text.length>t.options.maxHighlightLength&&mn(t.doc.mode,j.state),ne=ot(t,p,j);G&&(j.state=G),p.stateAfter=j.save(!G),p.styles=ne.styles,ne.classes?p.styleClasses=ne.classes:p.styleClasses&&(p.styleClasses=null),B===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return p.styles}function Mn(t,p,B){var j=t.doc,G=t.display;if(!j.mode.startState)return new fe(j,!0,p);var ne=ir(t,p,B),ge=ne>j.first&&xn(j,ne-1).stateAfter,we=ge?fe.fromSaved(j,ge,ne):new fe(j,Xn(j.mode),ne);return j.iter(ne,p,function(Re){Vn(t,Re.text,we);var je=we.line;Re.stateAfter=je==p-1||je%5==0||je>=G.viewFrom&&je<G.viewTo?we.save():null,we.nextLine()}),B&&(j.modeFrontier=we.line),we}function Vn(t,p,B,j){var G=t.doc.mode,ne=new Fn(p,t.options.tabSize,B);for(ne.start=ne.pos=j||0,p==""&&$t(G,B.state);!ne.eol();)gn(G,ne,B.state),ne.start=ne.pos}function $t(t,p){if(t.blankLine)return t.blankLine(p);if(!t.innerMode)return;var B=Hn(t,p);if(B.mode.blankLine)return B.mode.blankLine(B.state)}function gn(t,p,B,j){for(var G=0;G<10;G++){j&&(j[0]=Hn(t,B).mode);var ne=t.token(p,B);if(p.pos>p.start)return ne}throw new Error("Mode "+t.name+" failed to advance stream.")}var pn=function(t,p,B){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=p||null,this.state=B};function Ar(t,p,B,j){var G=t.doc,ne=G.mode,ge;p=X(G,p);var we=xn(G,p.line),Re=Mn(t,p.line,B),je=new Fn(we.text,t.options.tabSize,Re),gt;for(j&&(gt=[]);(j||je.pos<p.ch)&&!je.eol();)je.start=je.pos,ge=gn(ne,je,Re.state),j&>.push(new pn(je,ge,mn(G.mode,Re.state)));return j?gt:new pn(je,ge,Re.state)}function ra(t,p){if(t)for(;;){var B=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!B)break;t=t.slice(0,B.index)+t.slice(B.index+B[0].length);var j=B[1]?"bgClass":"textClass";p[j]==null?p[j]=B[2]:new RegExp("(?:^|\\s)"+B[2]+"(?:$|\\s)").test(p[j])||(p[j]+=" "+B[2])}return t}function oa(t,p,B,j,G,ne,ge){var we=B.flattenSpans;we==null&&(we=t.options.flattenSpans);var Re=0,je=null,gt=new Fn(p,t.options.tabSize,j),At,tn=t.options.addModeClass&&[null];for(p==""&&ra($t(B,j.state),ne);!gt.eol();){if(gt.pos>t.options.maxHighlightLength?(we=!1,ge&&Vn(t,p,j,gt.pos),gt.pos=p.length,At=null):At=ra(gn(B,gt,j.state,tn),ne),tn){var zt=tn[0].name;zt&&(At="m-"+(At?zt+" "+At:zt))}if(!we||je!=At){for(;Re<gt.start;)Re=Math.min(gt.start,Re+5e3),G(Re,je);je=At}gt.start=gt.pos}for(;Re<gt.pos;){var Tn=Math.min(gt.pos,Re+5e3);G(Tn,je),Re=Tn}}function ir(t,p,B){for(var j,G,ne=t.doc,ge=B?-1:p-(t.doc.mode.innerMode?1e3:100),we=p;we>ge;--we){if(we<=ne.first)return ne.first;var Re=xn(ne,we-1),je=Re.stateAfter;if(je&&(!B||we+(je instanceof De?je.lookAhead:0)<=ne.modeFrontier))return we;var gt=K(Re.text,null,t.options.tabSize);(G==null||j>gt)&&(G=we-1,j=gt)}return G}function Ra(t,p){if(t.modeFrontier=Math.min(t.modeFrontier,p),t.highlightFrontier<p-10)return;for(var B=t.first,j=p-1;j>B;j--){var G=xn(t,j).stateAfter;if(G&&(!(G instanceof De)||j+G.lookAhead<p)){B=j+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,B)}var La=!1,ca=!1;function Ka(){La=!0}function wa(){ca=!0}function Ja(t,p,B){this.marker=t,this.from=p,this.to=B}function ja(t,p){if(t)for(var B=0;B<t.length;++B){var j=t[B];if(j.marker==p)return j}}function li(t,p){for(var B,j=0;j<t.length;++j)t[j]!=p&&(B||(B=[])).push(t[j]);return B}function oi(t,p){t.markedSpans=t.markedSpans?t.markedSpans.concat([p]):[p],p.marker.attachLine(t)}function fa(t,p,B){var j;if(t)for(var G=0;G<t.length;++G){var ne=t[G],ge=ne.marker,we=ne.from==null||(ge.inclusiveLeft?ne.from<=p:ne.from<p);if(we||ne.from==p&&ge.type=="bookmark"&&(!B||!ne.marker.insertLeft)){var Re=ne.to==null||(ge.inclusiveRight?ne.to>=p:ne.to>p);(j||(j=[])).push(new Ja(ge,ne.from,Re?null:ne.to))}}return j}function ma(t,p,B){var j;if(t)for(var G=0;G<t.length;++G){var ne=t[G],ge=ne.marker,we=ne.to==null||(ge.inclusiveRight?ne.to>=p:ne.to>p);if(we||ne.from==p&&ge.type=="bookmark"&&(!B||ne.marker.insertLeft)){var Re=ne.from==null||(ge.inclusiveLeft?ne.from<=p:ne.from<p);(j||(j=[])).push(new Ja(ge,Re?null:ne.from-p,ne.to==null?null:ne.to-p))}}return j}function la(t,p){if(p.full)return null;var B=pr(t,p.from.line)&&xn(t,p.from.line).markedSpans,j=pr(t,p.to.line)&&xn(t,p.to.line).markedSpans;if(!B&&!j)return null;var G=p.from.ch,ne=p.to.ch,ge=On(p.from,p.to)==0,we=fa(B,G,ge),Re=ma(j,ne,ge),je=p.text.length==1,gt=$(p.text).length+(je?G:0);if(we)for(var At=0;At<we.length;++At){var tn=we[At];if(tn.to==null){var zt=ja(Re,tn.marker);zt?je&&(tn.to=zt.to==null?null:zt.to+gt):tn.to=G}}if(Re)for(var Tn=0;Tn<Re.length;++Tn){var Bn=Re[Tn];if(Bn.to!=null&&(Bn.to+=gt),Bn.from==null){var Zn=ja(we,Bn.marker);Zn||(Bn.from=gt,je&&(we||(we=[])).push(Bn))}else Bn.from+=gt,je&&(we||(we=[])).push(Bn)}we&&(we=xe(we)),Re&&Re!=we&&(Re=xe(Re));var yr=[we];if(!je){var Ur=p.text.length-2,Er;if(Ur>0&&we)for(var Xr=0;Xr<we.length;++Xr)we[Xr].to==null&&(Er||(Er=[])).push(new Ja(we[Xr].marker,null,null));for(var ia=0;ia<Ur;++ia)yr.push(Er);yr.push(Re)}return yr}function xe(t){for(var p=0;p<t.length;++p){var B=t[p];B.from!=null&&B.from==B.to&&B.marker.clearWhenEmpty!==!1&&t.splice(p--,1)}return t.length?t:null}function ut(t,p,B){var j=null;if(t.iter(p.line,B.line+1,function(zt){if(zt.markedSpans)for(var Tn=0;Tn<zt.markedSpans.length;++Tn){var Bn=zt.markedSpans[Tn].marker;Bn.readOnly&&(!j||he(j,Bn)==-1)&&(j||(j=[])).push(Bn)}}),!j)return null;for(var G=[{from:p,to:B}],ne=0;ne<j.length;++ne)for(var ge=j[ne],we=ge.find(0),Re=0;Re<G.length;++Re){var je=G[Re];if(On(je.to,we.from)<0||On(je.from,we.to)>0)continue;var gt=[Re,1],At=On(je.from,we.from),tn=On(je.to,we.to);(At<0||!ge.inclusiveLeft&&!At)&>.push({from:je.from,to:we.from}),(tn>0||!ge.inclusiveRight&&!tn)&>.push({from:we.to,to:je.to}),G.splice.apply(G,gt),Re+=gt.length-3}return G}function Rt(t){var p=t.markedSpans;if(!p)return;for(var B=0;B<p.length;++B)p[B].marker.detachLine(t);t.markedSpans=null}function wt(t,p){if(!p)return;for(var B=0;B<p.length;++B)p[B].marker.attachLine(t);t.markedSpans=p}function Kt(t){return t.inclusiveLeft?-1:0}function Nt(t){return t.inclusiveRight?1:0}function Xt(t,p){var B=t.lines.length-p.lines.length;if(B!=0)return B;var j=t.find(),G=p.find(),ne=On(j.from,G.from)||Kt(t)-Kt(p);if(ne)return-ne;var ge=On(j.to,G.to)||Nt(t)-Nt(p);return ge||p.id-t.id}function nn(t,p){var B=ca&&t.markedSpans,j;if(B)for(var G=void 0,ne=0;ne<B.length;++ne)G=B[ne],G.marker.collapsed&&(p?G.from:G.to)==null&&(!j||Xt(j,G.marker)<0)&&(j=G.marker);return j}function yn(t){return nn(t,!0)}function vn(t){return nn(t,!1)}function Nn(t,p){var B=ca&&t.markedSpans,j;if(B)for(var G=0;G<B.length;++G){var ne=B[G];ne.marker.collapsed&&(ne.from==null||ne.from<p)&&(ne.to==null||ne.to>p)&&(!j||Xt(j,ne.marker)<0)&&(j=ne.marker)}return j}function An(t,p,B,j,G){var ne=xn(t,p),ge=ca&&ne.markedSpans;if(ge)for(var we=0;we<ge.length;++we){var Re=ge[we];if(!Re.marker.collapsed)continue;var je=Re.marker.find(0),gt=On(je.from,B)||Kt(Re.marker)-Kt(G),At=On(je.to,j)||Nt(Re.marker)-Nt(G);if(gt>=0&&At<=0||gt<=0&&At>=0)continue;if(gt<=0&&(Re.marker.inclusiveRight&&G.inclusiveLeft?On(je.to,B)>=0:On(je.to,B)>0)||gt>=0&&(Re.marker.inclusiveRight&&G.inclusiveLeft?On(je.from,j)<=0:On(je.from,j)<0))return!0}}function an(t){for(var p;p=yn(t);)t=p.find(-1,!0).line;return t}function Pn(t){for(var p;p=vn(t);)t=p.find(1,!0).line;return t}function bn(t){for(var p,B;p=vn(t);)t=p.find(1,!0).line,(B||(B=[])).push(t);return B}function kn(t,p){var B=xn(t,p),j=an(B);return B==j?p:nr(j)}function Rn(t,p){if(p>t.lastLine())return p;var B=xn(t,p),j;if(!Jn(t,B))return p;for(;j=vn(B);)B=j.find(1,!0).line;return nr(B)+1}function Jn(t,p){var B=ca&&p.markedSpans;if(B)for(var j=void 0,G=0;G<B.length;++G){if(j=B[G],!j.marker.collapsed)continue;if(j.from==null)return!0;if(j.marker.widgetNode)continue;if(j.from==0&&j.marker.inclusiveLeft&&mr(t,p,j))return!0}}function mr(t,p,B){if(B.to==null){var j=B.marker.find(1,!0);return mr(t,j.line,ja(j.line.markedSpans,B.marker))}if(B.marker.inclusiveRight&&B.to==p.text.length)return!0;for(var G=void 0,ne=0;ne<p.markedSpans.length;++ne)if(G=p.markedSpans[ne],G.marker.collapsed&&!G.marker.widgetNode&&G.from==B.to&&(G.to==null||G.to!=B.from)&&(G.marker.inclusiveLeft||B.marker.inclusiveRight)&&mr(t,p,G))return!0}function Br(t){t=an(t);for(var p=0,B=t.parent,j=0;j<B.lines.length;++j){var G=B.lines[j];if(G==t)break;p+=G.height}for(var ne=B.parent;ne;B=ne,ne=B.parent)for(var ge=0;ge<ne.children.length;++ge){var we=ne.children[ge];if(we==B)break;p+=we.height}return p}function Sn(t){if(t.height==0)return 0;for(var p=t.text.length,B,j=t;B=yn(j);){var G=B.find(0,!0);j=G.from.line,p+=G.from.ch-G.to.ch}for(j=t;B=vn(j);){var ne=B.find(0,!0);p-=j.text.length-ne.from.ch,j=ne.to.line,p+=j.text.length-ne.to.ch}return p}function Yt(t){var p=t.display,B=t.doc;p.maxLine=xn(B,B.first),p.maxLineLength=Sn(p.maxLine),p.maxLineChanged=!0,B.iter(function(j){var G=Sn(j);G>p.maxLineLength&&(p.maxLineLength=G,p.maxLine=j)})}var dn=function(t,p,B){this.text=t,wt(this,p),this.height=B?B(this):1};dn.prototype.lineNo=function(){return nr(this)},Ge(dn);function Dn(t,p,B,j){t.text=p,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),t.order!=null&&(t.order=null),Rt(t),wt(t,B);var G=j?j(t):1;G!=t.height&&ar(t,G)}function en(t){t.parent=null,Rt(t)}var wn={},_n={};function In(t,p){if(!t||/^\s*$/.test(t))return null;var B=p.addModeClass?_n:wn;return B[t]||(B[t]=t.replace(/\S+/g,"cm-$&"))}function Un(t,p){var B=U("span",null,null,e?"padding-right: .1px":null),j={pre:U("pre",[B],"CodeMirror-line"),content:B,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};p.measure={};for(var G=0;G<=(p.rest?p.rest.length:0);G++){var ne=G?p.rest[G-1]:p.line,ge=void 0;j.pos=0,j.addToken=qn,Ct(t.display.measure)&&(ge=yt(ne,t.doc.direction))&&(j.addToken=Lr(j.addToken,ge)),j.map=[];var we=p!=t.display.externalMeasured&&nr(ne);Dr(ne,j,Qt(t,ne,we)),ne.styleClasses&&(ne.styleClasses.bgClass&&(j.bgClass=D(ne.styleClasses.bgClass,j.bgClass||"")),ne.styleClasses.textClass&&(j.textClass=D(ne.styleClasses.textClass,j.textClass||""))),j.map.length==0&&j.map.push(0,0,j.content.appendChild(rn(t.display.measure))),G==0?(p.measure.map=j.map,p.measure.cache={}):((p.measure.maps||(p.measure.maps=[])).push(j.map),(p.measure.caches||(p.measure.caches=[])).push({}))}if(e){var Re=j.content.lastChild;(/\bcm-tab\b/.test(Re.className)||Re.querySelector&&Re.querySelector(".cm-tab"))&&(j.content.className="cm-tab-wrap-hack")}return bt(t,"renderLine",t,p.line,j.pre),j.pre.className&&(j.textClass=D(j.pre.className,j.textClass||"")),j}function or(t){var p=A("span","\u2022","cm-invalidchar");return p.title="\\u"+t.charCodeAt(0).toString(16),p.setAttribute("aria-label",p.title),p}function qn(t,p,B,j,G,ne,ge){if(!p)return;var we=t.splitSpaces?Pr(p,t.trailingSpace):p,Re=t.cm.state.specialChars,je=!1,gt;if(!Re.test(p))t.col+=p.length,gt=document.createTextNode(we),t.map.push(t.pos,t.pos+p.length,gt),O&&m<9&&(je=!0),t.pos+=p.length;else{gt=document.createDocumentFragment();for(var At=0;;){Re.lastIndex=At;var tn=Re.exec(p),zt=tn?tn.index-At:p.length-At;if(zt){var Tn=document.createTextNode(we.slice(At,At+zt));O&&m<9?gt.appendChild(A("span",[Tn])):gt.appendChild(Tn),t.map.push(t.pos,t.pos+zt,Tn),t.col+=zt,t.pos+=zt}if(!tn)break;At+=zt+1;var Bn=void 0;if(tn[0]==" "){var Zn=t.cm.options.tabSize,yr=Zn-t.col%Zn;Bn=gt.appendChild(A("span",le(yr),"cm-tab")),Bn.setAttribute("role","presentation"),Bn.setAttribute("cm-text"," "),t.col+=yr}else tn[0]=="\r"||tn[0]==`
|
|
|
`?(Bn=gt.appendChild(A("span",tn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Bn.setAttribute("cm-text",tn[0]),t.col+=1):(Bn=t.cm.options.specialCharPlaceholder(tn[0]),Bn.setAttribute("cm-text",tn[0]),O&&m<9?gt.appendChild(A("span",[Bn])):gt.appendChild(Bn),t.col+=1);t.map.push(t.pos,t.pos+1,Bn),t.pos++}}if(t.trailingSpace=we.charCodeAt(p.length-1)==32,B||j||G||je||ne||ge){var Ur=B||"";j&&(Ur+=j),G&&(Ur+=G);var Er=A("span",[gt],Ur,ne);if(ge)for(var Xr in ge)ge.hasOwnProperty(Xr)&&Xr!="style"&&Xr!="class"&&Er.setAttribute(Xr,ge[Xr]);return t.content.appendChild(Er)}t.content.appendChild(gt)}function Pr(t,p){if(t.length>1&&!/ /.test(t))return t;for(var B=p,j="",G=0;G<t.length;G++){var ne=t.charAt(G);ne==" "&&B&&(G==t.length-1||t.charCodeAt(G+1)==32)&&(ne="\xA0"),j+=ne,B=ne==" "}return j}function Lr(t,p){return function(B,j,G,ne,ge,we,Re){G=G?G+" cm-force-border":"cm-force-border";for(var je=B.pos,gt=je+j.length;;){for(var At=void 0,tn=0;tn<p.length&&!(At=p[tn],At.to>je&&At.from<=je);tn++);if(At.to>=gt)return t(B,j,G,ne,ge,we,Re);t(B,j.slice(0,At.to-je),G,ne,null,we,Re),ne=null,j=j.slice(At.to-je),je=At.to}}}function Qn(t,p,B,j){var G=!j&&B.widgetNode;G&&t.map.push(t.pos,t.pos+p,G),!j&&t.cm.display.input.needsContentAttribute&&(G||(G=t.content.appendChild(document.createElement("span"))),G.setAttribute("cm-marker",B.id)),G&&(t.cm.display.input.setUneditable(G),t.content.appendChild(G)),t.pos+=p,t.trailingSpace=!1}function Dr(t,p,B){var j=t.markedSpans,G=t.text,ne=0;if(!j){for(var ge=1;ge<B.length;ge+=2)p.addToken(p,G.slice(ne,ne=B[ge]),In(B[ge+1],p.cm.options));return}for(var we=G.length,Re=0,je=1,gt="",At,tn,zt=0,Tn,Bn,Zn,yr,Ur;;){if(zt==Re){Tn=Bn=Zn=tn="",Ur=null,yr=null,zt=Infinity;for(var Er=[],Xr=void 0,ia=0;ia<j.length;++ia){var ea=j[ia],Sa=ea.marker;if(Sa.type=="bookmark"&&ea.from==Re&&Sa.widgetNode)Er.push(Sa);else if(ea.from<=Re&&(ea.to==null||ea.to>Re||Sa.collapsed&&ea.to==Re&&ea.from==Re)){if(ea.to!=null&&ea.to!=Re&&zt>ea.to&&(zt=ea.to,Bn=""),Sa.className&&(Tn+=" "+Sa.className),Sa.css&&(tn=(tn?tn+";":"")+Sa.css),Sa.startStyle&&ea.from==Re&&(Zn+=" "+Sa.startStyle),Sa.endStyle&&ea.to==zt&&(Xr||(Xr=[])).push(Sa.endStyle,ea.to),Sa.title&&((Ur||(Ur={})).title=Sa.title),Sa.attributes)for(var Va in Sa.attributes)(Ur||(Ur={}))[Va]=Sa.attributes[Va];Sa.collapsed&&(!yr||Xt(yr.marker,Sa)<0)&&(yr=ea)}else ea.from>Re&&zt>ea.from&&(zt=ea.from)}if(Xr)for(var vi=0;vi<Xr.length;vi+=2)Xr[vi+1]==zt&&(Bn+=" "+Xr[vi]);if(!yr||yr.from==Re)for(var ti=0;ti<Er.length;++ti)Qn(p,0,Er[ti]);if(yr&&(yr.from||0)==Re){if(Qn(p,(yr.to==null?we+1:yr.to)-Re,yr.marker,yr.from==null),yr.to==null)return;yr.to==Re&&(yr=!1)}}if(Re>=we)break;for(var zi=Math.min(we,zt);;){if(gt){var Ui=Re+gt.length;if(!yr){var ci=Ui>zi?gt.slice(0,zi-Re):gt;p.addToken(p,ci,At?At+Tn:Tn,Zn,Re+ci.length==zt?Bn:"",tn,Ur)}if(Ui>=zi){gt=gt.slice(zi-Re),Re=zi;break}Re=Ui,Zn=""}gt=G.slice(ne,ne=B[je++]),At=In(B[je++],p.cm.options)}}}function vr(t,p,B){this.line=p,this.rest=bn(p),this.size=this.rest?nr($(this.rest))-B+1:1,this.node=this.text=null,this.hidden=Jn(t,p)}function zr(t,p,B){for(var j=[],G,ne=p;ne<B;ne=G){var ge=new vr(t.doc,xn(t.doc,ne),ne);G=ne+ge.size,j.push(ge)}return j}var Nr=null;function $r(t){Nr?Nr.ops.push(t):t.ownsGroup=Nr={ops:[t],delayedCallbacks:[]}}function tr(t){var p=t.delayedCallbacks,B=0;do{for(;B<p.length;B++)p[B].call(null);for(var j=0;j<t.ops.length;j++){var G=t.ops[j];if(G.cursorActivityHandlers)for(;G.cursorActivityCalled<G.cursorActivityHandlers.length;)G.cursorActivityHandlers[G.cursorActivityCalled++].call(null,G.cm)}}while(B<p.length)}function Gt(t,p){var B=t.ownsGroup;if(!B)return;try{tr(B)}finally{Nr=null,p(B)}}var Zt=null;function Jt(t,p){var B=ft(t,p);if(!B.length)return;var j=Array.prototype.slice.call(arguments,2),G;Nr?G=Nr.delayedCallbacks:Zt?G=Zt:(G=Zt=[],setTimeout(zn,0));for(var ne=function(we){G.push(function(){return B[we].apply(null,j)})},ge=0;ge<B.length;++ge)ne(ge)}function zn(){var t=Zt;Zt=null;for(var p=0;p<t.length;++p)t[p]()}function $n(t,p,B,j){for(var G=0;G<p.changes.length;G++){var ne=p.changes[G];ne=="text"?sr(t,p):ne=="gutter"?lr(t,p,B,j):ne=="class"?qr(t,p):ne=="widget"&&da(t,p,j)}p.changes=null}function Ln(t){return t.node==t.text&&(t.node=A("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),O&&m<8&&(t.node.style.zIndex=2)),t.node}function rr(t,p){var B=p.bgClass?p.bgClass+" "+(p.line.bgClass||""):p.line.bgClass;if(B&&(B+=" CodeMirror-linebackground"),p.background)B?p.background.className=B:(p.background.parentNode.removeChild(p.background),p.background=null);else if(B){var j=Ln(p);p.background=j.insertBefore(A("div",null,B),j.firstChild),t.display.input.setUneditable(p.background)}}function cr(t,p){var B=t.display.externalMeasured;return B&&B.line==p.line?(t.display.externalMeasured=null,p.measure=B.measure,B.built):Un(t,p)}function sr(t,p){var B=p.text.className,j=cr(t,p);p.text==p.node&&(p.node=j.pre),p.text.parentNode.replaceChild(j.pre,p.text),p.text=j.pre,j.bgClass!=p.bgClass||j.textClass!=p.textClass?(p.bgClass=j.bgClass,p.textClass=j.textClass,qr(t,p)):B&&(p.text.className=B)}function qr(t,p){rr(t,p),p.line.wrapClass?Ln(p).className=p.line.wrapClass:p.node!=p.text&&(p.node.className="");var B=p.textClass?p.textClass+" "+(p.line.textClass||""):p.line.textClass;p.text.className=B||""}function lr(t,p,B,j){if(p.gutter&&(p.node.removeChild(p.gutter),p.gutter=null),p.gutterBackground&&(p.node.removeChild(p.gutterBackground),p.gutterBackground=null),p.line.gutterClass){var G=Ln(p);p.gutterBackground=A("div",null,"CodeMirror-gutter-background "+p.line.gutterClass,"left: "+(t.options.fixedGutter?j.fixedPos:-j.gutterTotalWidth)+"px; width: "+j.gutterTotalWidth+"px"),t.display.input.setUneditable(p.gutterBackground),G.insertBefore(p.gutterBackground,p.text)}var ne=p.line.gutterMarkers;if(t.options.lineNumbers||ne){var ge=Ln(p),we=p.gutter=A("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?j.fixedPos:-j.gutterTotalWidth)+"px");if(t.display.input.setUneditable(we),ge.insertBefore(we,p.text),p.line.gutterClass&&(we.className+=" "+p.line.gutterClass),t.options.lineNumbers&&(!ne||!ne["CodeMirror-linenumbers"])&&(p.lineNumber=we.appendChild(A("div",sn(t.options,B),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+j.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),ne)for(var Re=0;Re<t.display.gutterSpecs.length;++Re){var je=t.display.gutterSpecs[Re].className,gt=ne.hasOwnProperty(je)&&ne[je];gt&&we.appendChild(A("div",[gt],"CodeMirror-gutter-elt","left: "+j.gutterLeft[je]+"px; width: "+j.gutterWidth[je]+"px"))}}}function da(t,p,B){p.alignable&&(p.alignable=null);for(var j=M("CodeMirror-linewidget"),G=p.node.firstChild,ne=void 0;G;G=ne)ne=G.nextSibling,j.test(G.className)&&p.node.removeChild(G);_r(t,p,B)}function Yr(t,p,B,j){var G=cr(t,p);return p.text=p.node=G.pre,G.bgClass&&(p.bgClass=G.bgClass),G.textClass&&(p.textClass=G.textClass),qr(t,p),lr(t,p,B,j),_r(t,p,j),p.node}function _r(t,p,B){if(Sr(t,p.line,p,B,!0),p.rest)for(var j=0;j<p.rest.length;j++)Sr(t,p.rest[j],p,B,!1)}function Sr(t,p,B,j,G){if(!p.widgets)return;for(var ne=Ln(B),ge=0,we=p.widgets;ge<we.length;++ge){var Re=we[ge],je=A("div",[Re.node],"CodeMirror-linewidget"+(Re.className?" "+Re.className:""));Re.handleMouseEvents||je.setAttribute("cm-ignore-events","true"),Kr(Re,je,B,j),t.display.input.setUneditable(je),G&&Re.above?ne.insertBefore(je,B.gutter||B.text):ne.appendChild(je),Jt(Re,"redraw")}}function Kr(t,p,B,j){if(t.noHScroll){(B.alignable||(B.alignable=[])).push(p);var G=j.wrapperWidth;p.style.left=j.fixedPos+"px",t.coverGutter||(G-=j.gutterTotalWidth,p.style.paddingLeft=j.gutterTotalWidth+"px"),p.style.width=G+"px"}t.coverGutter&&(p.style.zIndex=5,p.style.position="relative",t.noHScroll||(p.style.marginLeft=-j.gutterTotalWidth+"px"))}function Jr(t){if(t.height!=null)return t.height;var p=t.doc.cm;if(!p)return 0;if(!N(document.body,t.node)){var B="position: relative;";t.coverGutter&&(B+="margin-left: -"+p.display.gutters.offsetWidth+"px;"),t.noHScroll&&(B+="width: "+p.display.wrapper.clientWidth+"px;"),_(p.display.measure,A("div",[t.node],null,B))}return t.height=t.node.parentNode.offsetHeight}function Ta(t,p){for(var B=We(p);B!=t.wrapper;B=B.parentNode)if(!B||B.nodeType==1&&B.getAttribute("cm-ignore-events")=="true"||B.parentNode==t.sizer&&B!=t.mover)return!0}function _a(t){return t.lineSpace.offsetTop}function Ze(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function ct(t){if(t.cachedPaddingH)return t.cachedPaddingH;var p=_(t.measure,A("pre","x","CodeMirror-line-like")),B=window.getComputedStyle?window.getComputedStyle(p):p.currentStyle,j={left:parseInt(B.paddingLeft),right:parseInt(B.paddingRight)};return!isNaN(j.left)&&!isNaN(j.right)&&(t.cachedPaddingH=j),j}function _t(t){return de-t.display.nativeBarWidth}function nt(t){return t.display.scroller.clientWidth-_t(t)-t.display.barWidth}function Me(t){return t.display.scroller.clientHeight-_t(t)-t.display.barHeight}function Je(t,p,B){var j=t.options.lineWrapping,G=j&&nt(t);if(!p.measure.heights||j&&p.measure.width!=G){var ne=p.measure.heights=[];if(j){p.measure.width=G;for(var ge=p.text.firstChild.getClientRects(),we=0;we<ge.length-1;we++){var Re=ge[we],je=ge[we+1];Math.abs(Re.bottom-je.bottom)>2&&ne.push((Re.bottom+je.top)/2-B.top)}}ne.push(B.bottom-B.top)}}function Le(t,p,B){if(t.line==p)return{map:t.measure.map,cache:t.measure.cache};for(var j=0;j<t.rest.length;j++)if(t.rest[j]==p)return{map:t.measure.maps[j],cache:t.measure.caches[j]};for(var G=0;G<t.rest.length;G++)if(nr(t.rest[G])>B)return{map:t.measure.maps[G],cache:t.measure.caches[G],before:!0}}function $e(t,p){p=an(p);var B=nr(p),j=t.display.externalMeasured=new vr(t.doc,p,B);j.lineN=B;var G=j.built=Un(t,j);return j.text=G.pre,_(t.display.lineMeasure,G.pre),j}function qe(t,p,B,j){return It(t,rt(t,p),B,j)}function pt(t,p){if(p>=t.display.viewFrom&&p<t.display.viewTo)return t.display.view[ga(t,p)];var B=t.display.externalMeasured;if(B&&p>=B.lineN&&p<B.lineN+B.size)return B}function rt(t,p){var B=nr(p),j=pt(t,B);j&&!j.text?j=null:j&&j.changes&&($n(t,j,B,er(t)),t.curOp.forceUpdate=!0),j||(j=$e(t,p));var G=Le(j,p,B);return{line:p,view:j,rect:null,map:G.map,cache:G.cache,before:G.before,hasHeights:!1}}function It(t,p,B,j,G){p.before&&(B=-1);var ne=B+(j||""),ge;return p.cache.hasOwnProperty(ne)?ge=p.cache[ne]:(p.rect||(p.rect=p.view.text.getBoundingClientRect()),p.hasHeights||(Je(t,p.view,p.rect),p.hasHeights=!0),ge=cn(t,p,B,j),ge.bogus||(p.cache[ne]=ge)),{left:ge.left,right:ge.right,top:G?ge.rtop:ge.top,bottom:G?ge.rbottom:ge.bottom}}var Vt={left:0,right:0,top:0,bottom:0};function fn(t,p,B){for(var j,G,ne,ge,we,Re,je=0;je<t.length;je+=3)if(we=t[je],Re=t[je+1],p<we?(G=0,ne=1,ge="left"):p<Re?(G=p-we,ne=G+1):(je==t.length-3||p==Re&&t[je+3]>p)&&(ne=Re-we,G=ne-1,p>=Re&&(ge="right")),G!=null){if(j=t[je+2],we==Re&&B==(j.insertLeft?"left":"right")&&(ge=B),B=="left"&&G==0)for(;je&&t[je-2]==t[je-3]&&t[je-1].insertLeft;)j=t[(je-=3)+2],ge="left";if(B=="right"&&G==Re-we)for(;je<t.length-3&&t[je+3]==t[je+4]&&!t[je+5].insertLeft;)j=t[(je+=3)+2],ge="right";break}return{node:j,start:G,end:ne,collapse:ge,coverStart:we,coverEnd:Re}}function ln(t,p){var B=Vt;if(p=="left")for(var j=0;j<t.length&&!((B=t[j]).left!=B.right);j++);else for(var G=t.length-1;G>=0&&!((B=t[G]).left!=B.right);G--);return B}function cn(t,p,B,j){var G=fn(p.map,B,j),ne=G.node,ge=G.start,we=G.end,Re=G.collapse,je;if(ne.nodeType==3){for(var gt=0;gt<4;gt++){for(;ge&&_e(p.line.text.charAt(G.coverStart+ge));)--ge;for(;G.coverStart+we<G.coverEnd&&_e(p.line.text.charAt(G.coverStart+we));)++we;if(O&&m<9&&ge==0&&we==G.coverEnd-G.coverStart?je=ne.parentNode.getBoundingClientRect():je=ln(L(ne,ge,we).getClientRects(),j),je.left||je.right||ge==0)break;we=ge,ge=ge-1,Re="right"}O&&m<11&&(je=un(t.display.measure,je))}else{ge>0&&(Re=j="right");var At;t.options.lineWrapping&&(At=ne.getClientRects()).length>1?je=At[j=="right"?At.length-1:0]:je=ne.getBoundingClientRect()}if(O&&m<9&&!ge&&(!je||!je.left&&!je.right)){var tn=ne.parentNode.getClientRects()[0];tn?je={left:tn.left,right:tn.left+Ir(t.display),top:tn.top,bottom:tn.bottom}:je=Vt}for(var zt=je.top-p.rect.top,Tn=je.bottom-p.rect.top,Bn=(zt+Tn)/2,Zn=p.view.measure.heights,yr=0;yr<Zn.length-1&&!(Bn<Zn[yr]);yr++);var Ur=yr?Zn[yr-1]:0,Er=Zn[yr],Xr={left:(Re=="right"?je.right:je.left)-p.rect.left,right:(Re=="left"?je.left:je.right)-p.rect.left,top:Ur,bottom:Er};return!je.left&&!je.right&&(Xr.bogus=!0),t.options.singleCursorHeightPerLine||(Xr.rtop=zt,Xr.rbottom=Tn),Xr}function un(t,p){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Xe(t))return p;var B=screen.logicalXDPI/screen.deviceXDPI,j=screen.logicalYDPI/screen.deviceYDPI;return{left:p.left*B,right:p.right*B,top:p.top*j,bottom:p.bottom*j}}function Wn(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var p=0;p<t.rest.length;p++)t.measure.caches[p]={}}function Cn(t){t.display.externalMeasure=null,S(t.display.lineMeasure);for(var p=0;p<t.display.view.length;p++)Wn(t.display.view[p])}function jr(t){Cn(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function Mr(){return a&&h?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Qr(){return a&&h?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Wr(t){var p=0;if(t.widgets)for(var B=0;B<t.widgets.length;++B)t.widgets[B].above&&(p+=Jr(t.widgets[B]));return p}function ta(t,p,B,j,G){if(!G){var ne=Wr(p);B.top+=ne,B.bottom+=ne}if(j=="line")return B;j||(j="local");var ge=Br(p);if(j=="local"?ge+=_a(t.display):ge-=t.display.viewOffset,j=="page"||j=="window"){var we=t.display.lineSpace.getBoundingClientRect();ge+=we.top+(j=="window"?0:Qr());var Re=we.left+(j=="window"?0:Mr());B.left+=Re,B.right+=Re}return B.top+=ge,B.bottom+=ge,B}function Kn(t,p,B){if(B=="div")return p;var j=p.left,G=p.top;if(B=="page")j-=Mr(),G-=Qr();else if(B=="local"||!B){var ne=t.display.sizer.getBoundingClientRect();j+=ne.left,G+=ne.top}var ge=t.display.lineSpace.getBoundingClientRect();return{left:j-ge.left,top:G-ge.top}}function wr(t,p,B,j,G){return j||(j=xn(t.doc,p.line)),ta(t,j,qe(t,j,p.ch,G),B)}function Gn(t,p,B,j,G,ne){j=j||xn(t.doc,p.line),G||(G=rt(t,j));function ge(Tn,Bn){var Zn=It(t,G,Tn,Bn?"right":"left",ne);return Bn?Zn.left=Zn.right:Zn.right=Zn.left,ta(t,j,Zn,B)}var we=yt(j,t.doc.direction),Re=p.ch,je=p.sticky;if(Re>=j.text.length?(Re=j.text.length,je="before"):Re<=0&&(Re=0,je="after"),!we)return ge(je=="before"?Re-1:Re,je=="before");function gt(Tn,Bn,Zn){var yr=we[Bn],Ur=yr.level==1;return ge(Zn?Tn-1:Tn,Ur!=Zn)}var At=mt(we,Re,je),tn=dt,zt=gt(Re,At,je=="before");return tn!=null&&(zt.other=gt(Re,tn,je!="before")),zt}function En(t,p){var B=0;p=X(t.doc,p),t.options.lineWrapping||(B=Ir(t.display)*p.ch);var j=xn(t.doc,p.line),G=Br(j)+_a(t.display);return{left:B,right:B,top:G,bottom:G+j.height}}function jn(t,p,B,j,G){var ne=qt(t,p,B);return ne.xRel=G,j&&(ne.outside=j),ne}function Vr(t,p,B){var j=t.doc;if(B+=t.display.viewOffset,B<0)return jn(j.first,0,null,-1,-1);var G=Rr(j,B),ne=j.first+j.size-1;if(G>ne)return jn(j.first+j.size-1,xn(j,ne).text.length,null,1,1);p<0&&(p=0);for(var ge=xn(j,G);;){var we=xa(t,ge,G,p,B),Re=Nn(ge,we.ch+(we.xRel>0||we.outside>0?1:0));if(!Re)return we;var je=Re.find(1);if(je.line==G)return je;ge=xn(j,G=je.line)}}function ua(t,p,B,j){j-=Wr(p);var G=p.text.length,ne=Qe(function(ge){return It(t,B,ge-1).bottom<=j},G,0);return G=Qe(function(ge){return It(t,B,ge).top>j},ne,G),{begin:ne,end:G}}function hr(t,p,B,j){B||(B=rt(t,p));var G=ta(t,p,It(t,B,j),"line").top;return ua(t,p,B,G)}function aa(t,p,B,j){return t.bottom<=B?!1:t.top>B?!0:(j?t.left:t.right)>p}function xa(t,p,B,j,G){G-=Br(p);var ne=rt(t,p),ge=Wr(p),we=0,Re=p.text.length,je=!0,gt=yt(p,t.doc.direction);if(gt){var At=(t.options.lineWrapping?Ca:ha)(t,p,B,ne,gt,j,G);je=At.level!=1,we=je?At.from:At.to-1,Re=je?At.to:At.from-1}var tn=null,zt=null,Tn=Qe(function(ia){var ea=It(t,ne,ia);return ea.top+=ge,ea.bottom+=ge,aa(ea,j,G,!1)?(ea.top<=G&&ea.left<=j&&(tn=ia,zt=ea),!0):!1},we,Re),Bn,Zn,yr=!1;if(zt){var Ur=j-zt.left<zt.right-j,Er=Ur==je;Tn=tn+(Er?0:1),Zn=Er?"after":"before",Bn=Ur?zt.left:zt.right}else{!je&&(Tn==Re||Tn==we)&&Tn++,Zn=Tn==0?"after":Tn==p.text.length?"before":It(t,ne,Tn-(je?1:0)).bottom+ge<=G==je?"after":"before";var Xr=Gn(t,qt(B,Tn,Zn),"line",p,ne);Bn=Xr.left,yr=G<Xr.top?-1:G>=Xr.bottom?1:0}return Tn=Ae(p.text,Tn,1),jn(B,Tn,Zn,yr,j-Bn)}function ha(t,p,B,j,G,ne,ge){var we=Qe(function(At){var tn=G[At],zt=tn.level!=1;return aa(Gn(t,qt(B,zt?tn.to:tn.from,zt?"before":"after"),"line",p,j),ne,ge,!0)},0,G.length-1),Re=G[we];if(we>0){var je=Re.level!=1,gt=Gn(t,qt(B,je?Re.from:Re.to,je?"after":"before"),"line",p,j);aa(gt,ne,ge,!0)&>.top>ge&&(Re=G[we-1])}return Re}function Ca(t,p,B,j,G,ne,ge){var we=ua(t,p,j,ge),Re=we.begin,je=we.end;/\s/.test(p.text.charAt(je-1))&&je--;for(var gt=null,At=null,tn=0;tn<G.length;tn++){var zt=G[tn];if(zt.from>=je||zt.to<=Re)continue;var Tn=zt.level!=1,Bn=It(t,j,Tn?Math.min(je,zt.to)-1:Math.max(Re,zt.from)).right,Zn=Bn<ne?ne-Bn+1e9:Bn-ne;(!gt||At>Zn)&&(gt=zt,At=Zn)}return gt||(gt=G[G.length-1]),gt.from<Re&&(gt={from:Re,to:gt.to,level:gt.level}),gt.to>je&&(gt={from:gt.from,to:je,level:gt.level}),gt}var Tr;function br(t){if(t.cachedTextHeight!=null)return t.cachedTextHeight;if(Tr==null){Tr=A("pre",null,"CodeMirror-line-like");for(var p=0;p<49;++p)Tr.appendChild(document.createTextNode("x")),Tr.appendChild(A("br"));Tr.appendChild(document.createTextNode("x"))}_(t.measure,Tr);var B=Tr.offsetHeight/50;return B>3&&(t.cachedTextHeight=B),S(t.measure),B||1}function Ir(t){if(t.cachedCharWidth!=null)return t.cachedCharWidth;var p=A("span","xxxxxxxxxx"),B=A("pre",[p],"CodeMirror-line-like");_(t.measure,B);var j=p.getBoundingClientRect(),G=(j.right-j.left)/10;return G>2&&(t.cachedCharWidth=G),G||10}function er(t){for(var p=t.display,B={},j={},G=p.gutters.clientLeft,ne=p.gutters.firstChild,ge=0;ne;ne=ne.nextSibling,++ge){var we=t.display.gutterSpecs[ge].className;B[we]=ne.offsetLeft+ne.clientLeft+G,j[we]=ne.clientWidth}return{fixedPos:pa(p),gutterTotalWidth:p.gutters.offsetWidth,gutterLeft:B,gutterWidth:j,wrapperWidth:p.wrapper.clientWidth}}function pa(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function Ea(t){var p=br(t.display),B=t.options.lineWrapping,j=B&&Math.max(5,t.display.scroller.clientWidth/Ir(t.display)-3);return function(G){if(Jn(t.doc,G))return 0;var ne=0;if(G.widgets)for(var ge=0;ge<G.widgets.length;ge++)G.widgets[ge].height&&(ne+=G.widgets[ge].height);return B?ne+(Math.ceil(G.text.length/j)||1)*p:ne+p}}function ba(t){var p=t.doc,B=Ea(t);p.iter(function(j){var G=B(j);G!=j.height&&ar(j,G)})}function Oa(t,p,B,j){var G=t.display;if(!B&&We(p).getAttribute("cm-not-content")=="true")return null;var ne,ge,we=G.lineSpace.getBoundingClientRect();try{ne=p.clientX-we.left,ge=p.clientY-we.top}catch(At){return null}var Re=Vr(t,ne,ge),je;if(j&&Re.xRel>0&&(je=xn(t.doc,Re.line).text).length==Re.ch){var gt=K(je,je.length,t.options.tabSize)-je.length;Re=qt(Re.line,Math.max(0,Math.round((ne-ct(t.display).left)/Ir(t.display))-gt))}return Re}function ga(t,p){if(p>=t.display.viewTo)return null;if(p-=t.display.viewFrom,p<0)return null;for(var B=t.display.view,j=0;j<B.length;j++)if(p-=B[j].size,p<0)return j}function ka(t,p,B,j){p==null&&(p=t.doc.first),B==null&&(B=t.doc.first+t.doc.size),j||(j=0);var G=t.display;if(j&&B<G.viewTo&&(G.updateLineNumbers==null||G.updateLineNumbers>p)&&(G.updateLineNumbers=p),t.curOp.viewChanged=!0,p>=G.viewTo)ca&&kn(t.doc,p)<G.viewTo&&Fa(t);else if(B<=G.viewFrom)ca&&Rn(t.doc,B+j)>G.viewFrom?Fa(t):(G.viewFrom+=j,G.viewTo+=j);else if(p<=G.viewFrom&&B>=G.viewTo)Fa(t);else if(p<=G.viewFrom){var ne=ni(t,B,B+j,1);ne?(G.view=G.view.slice(ne.index),G.viewFrom=ne.lineN,G.viewTo+=j):Fa(t)}else if(B>=G.viewTo){var ge=ni(t,p,p,-1);ge?(G.view=G.view.slice(0,ge.index),G.viewTo=ge.lineN):Fa(t)}else{var we=ni(t,p,p,-1),Re=ni(t,B,B+j,1);we&&Re?(G.view=G.view.slice(0,we.index).concat(zr(t,we.lineN,Re.lineN)).concat(G.view.slice(Re.index)),G.viewTo+=j):Fa(t)}var je=G.externalMeasured;je&&(B<je.lineN?je.lineN+=j:p<je.lineN+je.size&&(G.externalMeasured=null))}function Ua(t,p,B){t.curOp.viewChanged=!0;var j=t.display,G=t.display.externalMeasured;if(G&&p>=G.lineN&&p<G.lineN+G.size&&(j.externalMeasured=null),p<j.viewFrom||p>=j.viewTo)return;var ne=j.view[ga(t,p)];if(ne.node==null)return;var ge=ne.changes||(ne.changes=[]);he(ge,B)==-1&&ge.push(B)}function Fa(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function ni(t,p,B,j){var G=ga(t,p),ne,ge=t.display.view;if(!ca||B==t.doc.first+t.doc.size)return{index:G,lineN:B};for(var we=t.display.viewFrom,Re=0;Re<G;Re++)we+=ge[Re].size;if(we!=p){if(j>0){if(G==ge.length-1)return null;ne=we+ge[G].size-p,G++}else ne=we-p;p+=ne,B+=ne}for(;kn(t.doc,B)!=B;){if(G==(j<0?0:ge.length-1))return null;B+=j*ge[G-(j<0?1:0)].size,G+=j}return{index:G,lineN:B}}function Fi(t,p,B){var j=t.display,G=j.view;G.length==0||p>=j.viewTo||B<=j.viewFrom?(j.view=zr(t,p,B),j.viewFrom=p):(j.viewFrom>p?j.view=zr(t,p,j.viewFrom).concat(j.view):j.viewFrom<p&&(j.view=j.view.slice(ga(t,p))),j.viewFrom=p,j.viewTo<B?j.view=j.view.concat(zr(t,j.viewTo,B)):j.viewTo>B&&(j.view=j.view.slice(0,ga(t,B)))),j.viewTo=B}function Ai(t){for(var p=t.display.view,B=0,j=0;j<p.length;j++){var G=p[j];!G.hidden&&(!G.node||G.changes)&&++B}return B}function Na(t){t.display.input.showSelection(t.display.input.prepareSelection())}function bi(t,p){p===void 0&&(p=!0);for(var B=t.doc,j={},G=j.cursors=document.createDocumentFragment(),ne=j.selection=document.createDocumentFragment(),ge=0;ge<B.sel.ranges.length;ge++){if(!p&&ge==B.sel.primIndex)continue;var we=B.sel.ranges[ge];if(we.from().line>=t.display.viewTo||we.to().line<t.display.viewFrom)continue;var Re=we.empty();(Re||t.options.showCursorWhenSelecting)&&Si(t,we.head,G),Re||Ma(t,we,ne)}return j}function Si(t,p,B){var j=Gn(t,p,"div",null,null,!t.options.singleCursorHeightPerLine),G=B.appendChild(A("div","\xA0","CodeMirror-cursor"));if(G.style.left=j.left+"px",G.style.top=j.top+"px",G.style.height=Math.max(0,j.bottom-j.top)*t.options.cursorHeight+"px",j.other){var ne=B.appendChild(A("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));ne.style.display="",ne.style.left=j.other.left+"px",ne.style.top=j.other.top+"px",ne.style.height=(j.other.bottom-j.other.top)*.85+"px"}}function Ba(t,p){return t.top-p.top||t.left-p.left}function Ma(t,p,B){var j=t.display,G=t.doc,ne=document.createDocumentFragment(),ge=ct(t.display),we=ge.left,Re=Math.max(j.sizerWidth,nt(t)-j.sizer.offsetLeft)-ge.right,je=G.direction=="ltr";function gt(Er,Xr,ia,ea){Xr<0&&(Xr=0),Xr=Math.round(Xr),ea=Math.round(ea),ne.appendChild(A("div",null,"CodeMirror-selected","position: absolute; left: "+Er+`px;
|
|
|
top: `+Xr+"px; width: "+(ia==null?Re-Er:ia)+`px;
|
|
|
height: `+(ea-Xr)+"px"))}function At(Er,Xr,ia){var ea=xn(G,Er),Sa=ea.text.length,Va,vi;function ti(ci,ji){return wr(t,qt(Er,ci),"div",ea,ji)}function zi(ci,ji,Ci){var pi=hr(t,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=yt(ea,G.direction);return tt(Ui,Xr||0,ia==null?Sa:ia,function(ci,ji,Ci,pi){var di=Ci=="ltr",ii=ti(ci,di?"left":"right"),Bi=ti(ji-1,di?"right":"left"),Ts=Xr==null&&ci==0,es=ia==null&&ji==Sa,Oi=pi==0,Po=!Ui||pi==Ui.length-1;if(Bi.top-ii.top<=3){var _i=(je?Ts:es)&&Oi,ru=(je?es:Ts)&&Po,Fo=_i?we:(di?ii:Bi).left,ds=ru?Re:(di?Bi:ii).right;gt(Fo,ii.top,ds-Fo,ii.bottom)}else{var fs,Mi,Os,au;di?(fs=je&&Ts&&Oi?we:ii.left,Mi=je?Re:zi(ci,Ci,"before"),Os=je?we:zi(ji,Ci,"after"),au=je&&es&&Po?Re:Bi.right):(fs=je?zi(ci,Ci,"before"):we,Mi=!je&&Ts&&Oi?Re:ii.right,Os=!je&&es&&Po?we:Bi.left,au=je?zi(ji,Ci,"after"):Re),gt(fs,ii.top,Mi-fs,ii.bottom),ii.bottom<Bi.top&>(we,ii.bottom,null,Bi.top),gt(Os,Bi.top,au-Os,Bi.bottom)}(!Va||Ba(ii,Va)<0)&&(Va=ii),Ba(Bi,Va)<0&&(Va=Bi),(!vi||Ba(ii,vi)<0)&&(vi=ii),Ba(Bi,vi)<0&&(vi=Bi)}),{start:Va,end:vi}}var tn=p.from(),zt=p.to();if(tn.line==zt.line)At(tn.line,tn.ch,zt.ch);else{var Tn=xn(G,tn.line),Bn=xn(G,zt.line),Zn=an(Tn)==an(Bn),yr=At(tn.line,tn.ch,Zn?Tn.text.length+1:null).end,Ur=At(zt.line,Zn?0:null,zt.ch).start;Zn&&(yr.top<Ur.top-2?(gt(yr.right,yr.top,null,yr.bottom),gt(we,Ur.top,Ur.left,Ur.bottom)):gt(yr.right,yr.top,Ur.left-yr.right,yr.bottom)),yr.bottom<Ur.top&>(we,yr.bottom,null,Ur.top)}B.appendChild(ne)}function Za(t){if(!t.state.focused)return;var p=t.display;clearInterval(p.blinker);var B=!0;p.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?p.blinker=setInterval(function(){t.hasFocus()||no(t),p.cursorDiv.style.visibility=(B=!B)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(p.cursorDiv.style.visibility="hidden")}function to(t){t.state.focused||(t.display.input.focus(),Ii(t))}function Mo(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,no(t))},100)}function Ii(t,p){if(t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1),t.options.readOnly=="nocursor")return;t.state.focused||(bt(t,"focus",t,p),t.state.focused=!0,H(t.display.wrapper,"CodeMirror-focused"),!t.curOp&&t.display.selForContextMenu!=t.doc.sel&&(t.display.input.reset(),e&&setTimeout(function(){return t.display.input.reset(!0)},20)),t.display.input.receivedFocus()),Za(t)}function no(t,p){if(t.state.delayingBlurEvent)return;t.state.focused&&(bt(t,"blur",t,p),t.state.focused=!1,C(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.display.shift=!1)},150)}function ro(t){for(var p=t.display,B=p.lineDiv.offsetTop,j=0;j<p.view.length;j++){var G=p.view[j],ne=t.options.lineWrapping,ge=void 0,we=0;if(G.hidden)continue;if(O&&m<8){var Re=G.node.offsetTop+G.node.offsetHeight;ge=Re-B,B=Re}else{var je=G.node.getBoundingClientRect();ge=je.bottom-je.top,!ne&&G.text.firstChild&&(we=G.text.firstChild.getBoundingClientRect().right-je.left-1)}var gt=G.line.height-ge;if((gt>.005||gt<-.005)&&(ar(G.line,ge),mi(G.line),G.rest))for(var At=0;At<G.rest.length;At++)mi(G.rest[At]);if(we>t.display.sizerWidth){var tn=Math.ceil(we/Ir(t.display));tn>t.display.maxLineLength&&(t.display.maxLineLength=tn,t.display.maxLine=G.line,t.display.maxLineChanged=!0)}}}function mi(t){if(t.widgets)for(var p=0;p<t.widgets.length;++p){var B=t.widgets[p],j=B.node.parentNode;j&&(B.height=j.offsetHeight)}}function uo(t,p,B){var j=B&&B.top!=null?Math.max(0,B.top):t.scroller.scrollTop;j=Math.floor(j-_a(t));var G=B&&B.bottom!=null?B.bottom:j+t.wrapper.clientHeight,ne=Rr(p,j),ge=Rr(p,G);if(B&&B.ensure){var we=B.ensure.from.line,Re=B.ensure.to.line;we<ne?(ne=we,ge=Rr(p,Br(xn(p,we))+t.wrapper.clientHeight)):Math.min(Re,p.lastLine())>=ge&&(ne=Rr(p,Br(xn(p,Re))-t.wrapper.clientHeight),ge=Re)}return{from:ne,to:Math.max(ge,ne+1)}}function Io(t,p){if(Pt(t,"scrollCursorIntoView"))return;var B=t.display,j=B.sizer.getBoundingClientRect(),G=null;if(p.top+j.top<0?G=!0:p.bottom+j.top>(window.innerHeight||document.documentElement.clientHeight)&&(G=!1),G!=null&&!n){var ne=A("div","\u200B",null,`position: absolute;
|
|
|
top: `+(p.top-B.viewOffset-_a(t.display))+`px;
|
|
|
height: `+(p.bottom-p.top+_t(t)+B.barHeight)+`px;
|
|
|
left: `+p.left+"px; width: "+Math.max(2,p.right-p.left)+"px;");t.display.lineSpace.appendChild(ne),ne.scrollIntoView(G),t.display.lineSpace.removeChild(ne)}}function Lo(t,p,B,j){j==null&&(j=0);var G;!t.options.lineWrapping&&p==B&&(p=p.ch?qt(p.line,p.sticky=="before"?p.ch-1:p.ch,"after"):p,B=p.sticky=="before"?qt(p.line,p.ch+1,"before"):p);for(var ne=0;ne<5;ne++){var ge=!1,we=Gn(t,p),Re=!B||B==p?we:Gn(t,B);G={left:Math.min(we.left,Re.left),top:Math.min(we.top,Re.top)-j,right:Math.max(we.left,Re.left),bottom:Math.max(we.bottom,Re.bottom)+j};var je=Vi(t,G),gt=t.doc.scrollTop,At=t.doc.scrollLeft;if(je.scrollTop!=null&&(Ji(t,je.scrollTop),Math.abs(t.doc.scrollTop-gt)>1&&(ge=!0)),je.scrollLeft!=null&&(ei(t,je.scrollLeft),Math.abs(t.doc.scrollLeft-At)>1&&(ge=!0)),!ge)break}return G}function bo(t,p){var B=Vi(t,p);B.scrollTop!=null&&Ji(t,B.scrollTop),B.scrollLeft!=null&&ei(t,B.scrollLeft)}function Vi(t,p){var B=t.display,j=br(t.display);p.top<0&&(p.top=0);var G=t.curOp&&t.curOp.scrollTop!=null?t.curOp.scrollTop:B.scroller.scrollTop,ne=Me(t),ge={};p.bottom-p.top>ne&&(p.bottom=p.top+ne);var we=t.doc.height+Ze(B),Re=p.top<j,je=p.bottom>we-j;if(p.top<G)ge.scrollTop=Re?0:p.top;else if(p.bottom>G+ne){var gt=Math.min(p.top,(je?we:p.bottom)-ne);gt!=G&&(ge.scrollTop=gt)}var At=t.options.fixedGutter?0:B.gutters.offsetWidth,tn=t.curOp&&t.curOp.scrollLeft!=null?t.curOp.scrollLeft:B.scroller.scrollLeft-At,zt=nt(t)-B.gutters.offsetWidth,Tn=p.right-p.left>zt;return Tn&&(p.right=p.left+zt),p.left<10?ge.scrollLeft=0:p.left<tn?ge.scrollLeft=Math.max(0,p.left+At-(Tn?0:10)):p.right>zt+tn-3&&(ge.scrollLeft=p.right+(Tn?0:10)-zt),ge}function co(t,p){if(p==null)return;yo(t),t.curOp.scrollTop=(t.curOp.scrollTop==null?t.doc.scrollTop:t.curOp.scrollTop)+p}function Xi(t){yo(t);var p=t.getCursor();t.curOp.scrollToPos={from:p,to:p,margin:t.options.cursorScrollMargin}}function Yi(t,p,B){(p!=null||B!=null)&&yo(t),p!=null&&(t.curOp.scrollLeft=p),B!=null&&(t.curOp.scrollTop=B)}function No(t,p){yo(t),t.curOp.scrollToPos=p}function yo(t){var p=t.curOp.scrollToPos;if(p){t.curOp.scrollToPos=null;var B=En(t,p.from),j=En(t,p.to);ao(t,B,j,p.margin)}}function ao(t,p,B,j){var G=Vi(t,{left:Math.min(p.left,B.left),top:Math.min(p.top,B.top)-j,right:Math.max(p.right,B.right),bottom:Math.max(p.bottom,B.bottom)+j});Yi(t,G.scrollLeft,G.scrollTop)}function Ji(t,p){if(Math.abs(t.doc.scrollTop-p)<2)return;T||fo(t,{top:p}),Qi(t,p,!0),T&&fo(t),ai(t,100)}function Qi(t,p,B){if(p=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,p)),t.display.scroller.scrollTop==p&&!B)return;t.doc.scrollTop=p,t.display.scrollbars.setScrollTop(p),t.display.scroller.scrollTop!=p&&(t.display.scroller.scrollTop=p)}function ei(t,p,B,j){if(p=Math.max(0,Math.min(p,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),(B?p==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-p)<2)&&!j)return;t.doc.scrollLeft=p,ya(t),t.display.scroller.scrollLeft!=p&&(t.display.scroller.scrollLeft=p),t.display.scrollbars.setScrollLeft(p)}function Li(t){var p=t.display,B=p.gutters.offsetWidth,j=Math.round(t.doc.height+Ze(t.display));return{clientHeight:p.scroller.clientHeight,viewHeight:p.wrapper.clientHeight,scrollWidth:p.scroller.scrollWidth,clientWidth:p.scroller.clientWidth,viewWidth:p.wrapper.clientWidth,barLeft:t.options.fixedGutter?B:0,docHeight:j,scrollHeight:j+_t(t)+p.barHeight,nativeBarWidth:p.nativeBarWidth,gutterWidth:B}}var Di=function(t,p,B){this.cm=B;var j=this.vert=A("div",[A("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),G=this.horiz=A("div",[A("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");j.tabIndex=G.tabIndex=-1,t(j),t(G),Ue(j,"scroll",function(){j.clientHeight&&p(j.scrollTop,"vertical")}),Ue(G,"scroll",function(){G.clientWidth&&p(G.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,O&&m<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Di.prototype.update=function(t){var p=t.scrollWidth>t.clientWidth+1,B=t.scrollHeight>t.clientHeight+1,j=t.nativeBarWidth;if(B){this.vert.style.display="block",this.vert.style.bottom=p?j+"px":"0";var G=t.viewHeight-(p?j:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+G)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(p){this.horiz.style.display="block",this.horiz.style.right=B?j+"px":"0",this.horiz.style.left=t.barLeft+"px";var ne=t.viewWidth-t.barLeft-(B?j:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+ne)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(j==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:B?j:0,bottom:p?j:0}},Di.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Di.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Di.prototype.zeroWidthHack=function(){var t=s&&!i?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ee,this.disableVert=new ee},Di.prototype.enableZeroWidthBar=function(t,p,B){t.style.pointerEvents="auto";function j(){var G=t.getBoundingClientRect(),ne=B=="vert"?document.elementFromPoint(G.right-1,(G.top+G.bottom)/2):document.elementFromPoint((G.right+G.left)/2,G.bottom-1);ne!=t?t.style.pointerEvents="none":p.set(1e3,j)}p.set(1e3,j)},Di.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.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(t,p){p||(p=Li(t));var B=t.display.barWidth,j=t.display.barHeight;Eo(t,p);for(var G=0;G<4&&B!=t.display.barWidth||j!=t.display.barHeight;G++)B!=t.display.barWidth&&t.options.lineWrapping&&ro(t),Eo(t,Li(t)),B=t.display.barWidth,j=t.display.barHeight}function Eo(t,p){var B=t.display,j=B.scrollbars.update(p);B.sizer.style.paddingRight=(B.barWidth=j.right)+"px",B.sizer.style.paddingBottom=(B.barHeight=j.bottom)+"px",B.heightForcer.style.borderBottom=j.bottom+"px solid transparent",j.right&&j.bottom?(B.scrollbarFiller.style.display="block",B.scrollbarFiller.style.height=j.bottom+"px",B.scrollbarFiller.style.width=j.right+"px"):B.scrollbarFiller.style.display="",j.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(B.gutterFiller.style.display="block",B.gutterFiller.style.height=j.bottom+"px",B.gutterFiller.style.width=p.gutterWidth+"px"):B.gutterFiller.style.display=""}var xo={native:Di,null:Zi};function Co(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&C(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new xo[t.options.scrollbarStyle](function(p){t.display.wrapper.insertBefore(p,t.display.scrollbarFiller),Ue(p,"mousedown",function(){t.state.focused&&setTimeout(function(){return t.display.input.focus()},0)}),p.setAttribute("cm-not-content","true")},function(p,B){B=="horizontal"?ei(t,p):Ji(t,p)},t),t.display.scrollbars.addClass&&H(t.display.wrapper,t.display.scrollbars.addClass)}var io=0;function Ni(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.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},$r(t.curOp)}function qi(t){var p=t.curOp;p&&Gt(p,function(B){for(var j=0;j<B.ops.length;j++)B.ops[j].cm.curOp=null;ko(B)})}function ko(t){for(var p=t.ops,B=0;B<p.length;B++)oo(p[B]);for(var j=0;j<p.length;j++)so(p[j]);for(var G=0;G<p.length;G++)So(p[G]);for(var ne=0;ne<p.length;ne++)Uo(p[ne]);for(var ge=0;ge<p.length;ge++)jo(p[ge])}function oo(t){var p=t.cm,B=p.display;Bo(p),t.updateMaxLine&&Yt(p),t.mustUpdate=t.viewChanged||t.forceUpdate||t.scrollTop!=null||t.scrollToPos&&(t.scrollToPos.from.line<B.viewFrom||t.scrollToPos.to.line>=B.viewTo)||B.maxLineChanged&&p.options.lineWrapping,t.update=t.mustUpdate&&new yi(p,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function so(t){t.updatedDisplay=t.mustUpdate&&Wi(t.cm,t.update)}function So(t){var p=t.cm,B=p.display;t.updatedDisplay&&ro(p),t.barMeasure=Li(p),B.maxLineChanged&&!p.options.lineWrapping&&(t.adjustWidthTo=qe(p,B.maxLine,B.maxLine.text.length).left+3,p.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(B.scroller.clientWidth,B.sizer.offsetLeft+t.adjustWidthTo+_t(p)+p.display.barWidth),t.maxScrollLeft=Math.max(0,B.sizer.offsetLeft+t.adjustWidthTo-nt(p))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=B.input.prepareSelection())}function Uo(t){var p=t.cm;t.adjustWidthTo!=null&&(p.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<p.doc.scrollLeft&&ei(p,Math.min(p.display.scroller.scrollLeft,t.maxScrollLeft),!0),p.display.maxLineChanged=!1);var B=t.focus&&t.focus==V();t.preparedSelection&&p.display.input.showSelection(t.preparedSelection,B),(t.updatedDisplay||t.startHeight!=p.doc.height)&&Ri(p,t.barMeasure),t.updatedDisplay&&Aa(p,t.barMeasure),t.selectionChanged&&Za(p),p.state.focused&&t.updateInput&&p.display.input.reset(t.typing),B&&to(t.cm)}function jo(t){var p=t.cm,B=p.display,j=p.doc;if(t.updatedDisplay&&Oo(p,t.update),B.wheelStartX!=null&&(t.scrollTop!=null||t.scrollLeft!=null||t.scrollToPos)&&(B.wheelStartX=B.wheelStartY=null),t.scrollTop!=null&&Qi(p,t.scrollTop,t.forceScroll),t.scrollLeft!=null&&ei(p,t.scrollLeft,!0,!0),t.scrollToPos){var G=Lo(p,X(j,t.scrollToPos.from),X(j,t.scrollToPos.to),t.scrollToPos.margin);Io(p,G)}var ne=t.maybeHiddenMarkers,ge=t.maybeUnhiddenMarkers;if(ne)for(var we=0;we<ne.length;++we)ne[we].lines.length||bt(ne[we],"hide");if(ge)for(var Re=0;Re<ge.length;++Re)ge[Re].lines.length&&bt(ge[Re],"unhide");B.wrapper.offsetHeight&&(j.scrollTop=p.display.scroller.scrollTop),t.changeObjs&&bt(p,"changes",p,t.changeObjs),t.update&&t.update.finish()}function fi(t,p){if(t.curOp)return p();Ni(t);try{return p()}finally{qi(t)}}function Ha(t,p){return function(){if(t.curOp)return p.apply(t,arguments);Ni(t);try{return p.apply(t,arguments)}finally{qi(t)}}}function ri(t){return function(){if(this.curOp)return t.apply(this,arguments);Ni(this);try{return t.apply(this,arguments)}finally{qi(this)}}}function Xa(t){return function(){var p=this.cm;if(!p||p.curOp)return t.apply(this,arguments);Ni(p);try{return t.apply(this,arguments)}finally{qi(p)}}}function ai(t,p){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(p,F(wo,t))}function wo(t){var p=t.doc;if(p.highlightFrontier>=t.display.viewTo)return;var B=+new Date+t.options.workTime,j=Mn(t,p.highlightFrontier),G=[];p.iter(j.line,Math.min(p.first+p.size,t.display.viewTo+500),function(ne){if(j.line>=t.display.viewFrom){var ge=ne.styles,we=ne.text.length>t.options.maxHighlightLength?mn(p.mode,j.state):null,Re=ot(t,ne,j,!0);we&&(j.state=we),ne.styles=Re.styles;var je=ne.styleClasses,gt=Re.classes;gt?ne.styleClasses=gt:je&&(ne.styleClasses=null);for(var At=!ge||ge.length!=ne.styles.length||je!=gt&&(!je||!gt||je.bgClass!=gt.bgClass||je.textClass!=gt.textClass),tn=0;!At&&tn<ge.length;++tn)At=ge[tn]!=ne.styles[tn];At&&G.push(j.line),ne.stateAfter=j.save(),j.nextLine()}else ne.text.length<=t.options.maxHighlightLength&&Vn(t,ne.text,j),ne.stateAfter=j.line%5==0?j.save():null,j.nextLine();if(+new Date>B)return ai(t,t.options.workDelay),!0}),p.highlightFrontier=j.line,p.modeFrontier=Math.max(p.modeFrontier,j.line),G.length&&fi(t,function(){for(var ne=0;ne<G.length;ne++)Ua(t,G[ne],"text")})}var yi=function(t,p,B){var j=t.display;this.viewport=p,this.visible=uo(j,t.doc,p),this.editorIsHidden=!j.wrapper.offsetWidth,this.wrapperHeight=j.wrapper.clientHeight,this.wrapperWidth=j.wrapper.clientWidth,this.oldDisplayWidth=nt(t),this.force=B,this.dims=er(t),this.events=[]};yi.prototype.signal=function(t,p){He(t,p)&&this.events.push(arguments)},yi.prototype.finish=function(){for(var t=0;t<this.events.length;t++)bt.apply(null,this.events[t])};function Bo(t){var p=t.display;!p.scrollbarsClipped&&p.scroller.offsetWidth&&(p.nativeBarWidth=p.scroller.offsetWidth-p.scroller.clientWidth,p.heightForcer.style.height=_t(t)+"px",p.sizer.style.marginBottom=-p.nativeBarWidth+"px",p.sizer.style.borderRightWidth=_t(t)+"px",p.scrollbarsClipped=!0)}function To(t){if(t.hasFocus())return null;var p=V();if(!p||!N(t.display.lineDiv,p))return null;var B={activeElt:p};if(window.getSelection){var j=window.getSelection();j.anchorNode&&j.extend&&N(t.display.lineDiv,j.anchorNode)&&(B.anchorNode=j.anchorNode,B.anchorOffset=j.anchorOffset,B.focusNode=j.focusNode,B.focusOffset=j.focusOffset)}return B}function $i(t){if(!t||!t.activeElt||t.activeElt==V())return;if(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&N(document.body,t.anchorNode)&&N(document.body,t.focusNode)){var p=window.getSelection(),B=document.createRange();B.setEnd(t.anchorNode,t.anchorOffset),B.collapse(!1),p.removeAllRanges(),p.addRange(B),p.extend(t.focusNode,t.focusOffset)}}function Wi(t,p){var B=t.display,j=t.doc;if(p.editorIsHidden)return Fa(t),!1;if(!p.force&&p.visible.from>=B.viewFrom&&p.visible.to<=B.viewTo&&(B.updateLineNumbers==null||B.updateLineNumbers>=B.viewTo)&&B.renderedView==B.view&&Ai(t)==0)return!1;Ga(t)&&(Fa(t),p.dims=er(t));var G=j.first+j.size,ne=Math.max(p.visible.from-t.options.viewportMargin,j.first),ge=Math.min(G,p.visible.to+t.options.viewportMargin);B.viewFrom<ne&&ne-B.viewFrom<20&&(ne=Math.max(j.first,B.viewFrom)),B.viewTo>ge&&B.viewTo-ge<20&&(ge=Math.min(G,B.viewTo)),ca&&(ne=kn(t.doc,ne),ge=Rn(t.doc,ge));var we=ne!=B.viewFrom||ge!=B.viewTo||B.lastWrapHeight!=p.wrapperHeight||B.lastWrapWidth!=p.wrapperWidth;Fi(t,ne,ge),B.viewOffset=Br(xn(t.doc,B.viewFrom)),t.display.mover.style.top=B.viewOffset+"px";var Re=Ai(t);if(!we&&Re==0&&!p.force&&B.renderedView==B.view&&(B.updateLineNumbers==null||B.updateLineNumbers>=B.viewTo))return!1;var je=To(t);return Re>4&&(B.lineDiv.style.display="none"),Wo(t,B.updateLineNumbers,p.dims),Re>4&&(B.lineDiv.style.display=""),B.renderedView=B.view,$i(je),S(B.cursorDiv),S(B.selectionDiv),B.gutters.style.height=B.sizer.style.minHeight=0,we&&(B.lastWrapHeight=p.wrapperHeight,B.lastWrapWidth=p.wrapperWidth,ai(t,400)),B.updateLineNumbers=null,!0}function Oo(t,p){for(var B=p.viewport,j=!0;;j=!1){if(!j||!t.options.lineWrapping||p.oldDisplayWidth==nt(t)){if(B&&B.top!=null&&(B={top:Math.min(t.doc.height+Ze(t.display)-Me(t),B.top)}),p.visible=uo(t.display,t.doc,B),p.visible.from>=t.display.viewFrom&&p.visible.to<=t.display.viewTo)break}else j&&(p.visible=uo(t.display,t.doc,B));if(!Wi(t,p))break;ro(t);var G=Li(t);Na(t),Ri(t,G),Aa(t,G),p.force=!1}p.signal(t,"update",t),(t.display.viewFrom!=t.display.reportedViewFrom||t.display.viewTo!=t.display.reportedViewTo)&&(p.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function fo(t,p){var B=new yi(t,p);if(Wi(t,B)){ro(t),Oo(t,B);var j=Li(t);Na(t),Ri(t,j),Aa(t,j),B.finish()}}function Wo(t,p,B){var j=t.display,G=t.options.lineNumbers,ne=j.lineDiv,ge=ne.firstChild;function we(Tn){var Bn=Tn.nextSibling;return e&&s&&t.display.currentWheelTarget==Tn?Tn.style.display="none":Tn.parentNode.removeChild(Tn),Bn}for(var Re=j.view,je=j.viewFrom,gt=0;gt<Re.length;gt++){var At=Re[gt];if(!At.hidden)if(!At.node||At.node.parentNode!=ne){var tn=Yr(t,At,je,B);ne.insertBefore(tn,ge)}else{for(;ge!=At.node;)ge=we(ge);var zt=G&&p!=null&&p<=je&&At.lineNumber;At.changes&&(he(At.changes,"gutter")>-1&&(zt=!1),$n(t,At,je,B)),zt&&(S(At.lineNumber),At.lineNumber.appendChild(document.createTextNode(sn(t.options,je)))),ge=At.node.nextSibling}je+=At.size}for(;ge;)ge=we(ge)}function lo(t){var p=t.gutters.offsetWidth;t.sizer.style.marginLeft=p+"px"}function Aa(t,p){t.display.sizer.style.minHeight=p.docHeight+"px",t.display.heightForcer.style.top=p.docHeight+"px",t.display.gutters.style.height=p.docHeight+t.display.barHeight+_t(t)+"px"}function ya(t){var p=t.display,B=p.view;if(!p.alignWidgets&&(!p.gutters.firstChild||!t.options.fixedGutter))return;for(var j=pa(p)-p.scroller.scrollLeft+t.doc.scrollLeft,G=p.gutters.offsetWidth,ne=j+"px",ge=0;ge<B.length;ge++)if(!B[ge].hidden){t.options.fixedGutter&&(B[ge].gutter&&(B[ge].gutter.style.left=ne),B[ge].gutterBackground&&(B[ge].gutterBackground.style.left=ne));var we=B[ge].alignable;if(we)for(var Re=0;Re<we.length;Re++)we[Re].style.left=ne}t.options.fixedGutter&&(p.gutters.style.left=j+G+"px")}function Ga(t){if(!t.options.lineNumbers)return!1;var p=t.doc,B=sn(t.options,p.first+p.size-1),j=t.display;if(B.length!=j.lineNumChars){var G=j.measure.appendChild(A("div",[A("div",B)],"CodeMirror-linenumber CodeMirror-gutter-elt")),ne=G.firstChild.offsetWidth,ge=G.offsetWidth-ne;return j.lineGutter.style.width="",j.lineNumInnerWidth=Math.max(ne,j.lineGutter.offsetWidth-ge)+1,j.lineNumWidth=j.lineNumInnerWidth+ge,j.lineNumChars=j.lineNumInnerWidth?B.length:-1,j.lineGutter.style.width=j.lineNumWidth+"px",lo(t.display),!0}return!1}function ui(t,p){for(var B=[],j=!1,G=0;G<t.length;G++){var ne=t[G],ge=null;if(typeof ne!="string"&&(ge=ne.style,ne=ne.className),ne=="CodeMirror-linenumbers")if(p)j=!0;else continue;B.push({className:ne,style:ge})}return p&&!j&&B.push({className:"CodeMirror-linenumbers",style:null}),B}function eo(t){var p=t.gutters,B=t.gutterSpecs;S(p),t.lineGutter=null;for(var j=0;j<B.length;++j){var G=B[j],ne=G.className,ge=G.style,we=p.appendChild(A("div",null,"CodeMirror-gutter "+ne));ge&&(we.style.cssText=ge),ne=="CodeMirror-linenumbers"&&(t.lineGutter=we,we.style.width=(t.lineNumWidth||1)+"px")}p.style.display=B.length?"":"none",lo(t)}function ki(t){eo(t.display),ka(t),ya(t)}function ho(t,p,B,j){var G=this;this.input=B,G.scrollbarFiller=A("div",null,"CodeMirror-scrollbar-filler"),G.scrollbarFiller.setAttribute("cm-not-content","true"),G.gutterFiller=A("div",null,"CodeMirror-gutter-filler"),G.gutterFiller.setAttribute("cm-not-content","true"),G.lineDiv=U("div",null,"CodeMirror-code"),G.selectionDiv=A("div",null,null,"position: relative; z-index: 1"),G.cursorDiv=A("div",null,"CodeMirror-cursors"),G.measure=A("div",null,"CodeMirror-measure"),G.lineMeasure=A("div",null,"CodeMirror-measure"),G.lineSpace=U("div",[G.measure,G.lineMeasure,G.selectionDiv,G.cursorDiv,G.lineDiv],null,"position: relative; outline: none");var ne=U("div",[G.lineSpace],"CodeMirror-lines");G.mover=A("div",[ne],null,"position: relative"),G.sizer=A("div",[G.mover],"CodeMirror-sizer"),G.sizerWidth=null,G.heightForcer=A("div",null,null,"position: absolute; height: "+de+"px; width: 1px;"),G.gutters=A("div",null,"CodeMirror-gutters"),G.lineGutter=null,G.scroller=A("div",[G.sizer,G.heightForcer,G.gutters],"CodeMirror-scroll"),G.scroller.setAttribute("tabIndex","-1"),G.wrapper=A("div",[G.scrollbarFiller,G.gutterFiller,G.scroller],"CodeMirror"),O&&m<8&&(G.gutters.style.zIndex=-1,G.scroller.style.paddingRight=0),!e&&!(T&&d)&&(G.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(G.wrapper):t(G.wrapper)),G.viewFrom=G.viewTo=p.first,G.reportedViewFrom=G.reportedViewTo=p.first,G.view=[],G.renderedView=null,G.externalMeasured=null,G.viewOffset=0,G.lastWrapHeight=G.lastWrapWidth=0,G.updateLineNumbers=null,G.nativeBarWidth=G.barHeight=G.barWidth=0,G.scrollbarsClipped=!1,G.lineNumWidth=G.lineNumInnerWidth=G.lineNumChars=null,G.alignWidgets=!1,G.cachedCharWidth=G.cachedTextHeight=G.cachedPaddingH=null,G.maxLine=null,G.maxLineLength=0,G.maxLineChanged=!1,G.wheelDX=G.wheelDY=G.wheelStartX=G.wheelStartY=null,G.shift=!1,G.selForContextMenu=null,G.activeTouch=null,G.gutterSpecs=ui(j.gutters,j.lineNumbers),eo(G),B.init(G)}var wi=0,qa=null;O?qa=-.53:T?qa=15:a?qa=-.7:r&&(qa=-1/3);function po(t){var p=t.wheelDeltaX,B=t.wheelDeltaY;return p==null&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(p=t.detail),B==null&&t.detail&&t.axis==t.VERTICAL_AXIS?B=t.detail:B==null&&(B=t.wheelDelta),{x:p,y:B}}function Hi(t){var p=po(t);return p.x*=qa,p.y*=qa,p}function mo(t,p){var B=po(p),j=B.x,G=B.y,ne=t.display,ge=ne.scroller,we=ge.scrollWidth>ge.clientWidth,Re=ge.scrollHeight>ge.clientHeight;if(!(j&&we||G&&Re))return;if(G&&s&&e){e:for(var je=p.target,gt=ne.view;je!=ge;je=je.parentNode)for(var At=0;At<gt.length;At++)if(gt[At].node==je){t.display.currentWheelTarget=je;break e}}if(j&&!T&&!u&&qa!=null){G&&Re&&Ji(t,Math.max(0,ge.scrollTop+G*qa)),ei(t,Math.max(0,ge.scrollLeft+j*qa)),(!G||G&&Re)&&Ce(p),ne.wheelStartX=null;return}if(G&&qa!=null){var tn=G*qa,zt=t.doc.scrollTop,Tn=zt+ne.wrapper.clientHeight;tn<0?zt=Math.max(0,zt+tn-50):Tn=Math.min(t.doc.height,Tn+tn+50),fo(t,{top:zt,bottom:Tn})}wi<20&&(ne.wheelStartX==null?(ne.wheelStartX=ge.scrollLeft,ne.wheelStartY=ge.scrollTop,ne.wheelDX=j,ne.wheelDY=G,setTimeout(function(){if(ne.wheelStartX==null)return;var Bn=ge.scrollLeft-ne.wheelStartX,Zn=ge.scrollTop-ne.wheelStartY,yr=Zn&&ne.wheelDY&&Zn/ne.wheelDY||Bn&&ne.wheelDX&&Bn/ne.wheelDX;if(ne.wheelStartX=ne.wheelStartY=null,!yr)return;qa=(qa*wi+yr)/(wi+1),++wi},200)):(ne.wheelDX+=j,ne.wheelDY+=G))}var hi=function(t,p){this.ranges=t,this.primIndex=p};hi.prototype.primary=function(){return this.ranges[this.primIndex]},hi.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var p=0;p<this.ranges.length;p++){var B=this.ranges[p],j=t.ranges[p];if(!Fr(B.anchor,j.anchor)||!Fr(B.head,j.head))return!1}return!0},hi.prototype.deepCopy=function(){for(var t=[],p=0;p<this.ranges.length;p++)t[p]=new Pa(Or(this.ranges[p].anchor),Or(this.ranges[p].head));return new hi(t,this.primIndex)},hi.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},hi.prototype.contains=function(t,p){p||(p=t);for(var B=0;B<this.ranges.length;B++){var j=this.ranges[B];if(On(p,j.from())>=0&&On(t,j.to())<=0)return B}return-1};var Pa=function(t,p){this.anchor=t,this.head=p};Pa.prototype.from=function(){return dr(this.anchor,this.head)},Pa.prototype.to=function(){return xr(this.anchor,this.head)},Pa.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function sa(t,p,B){var j=t&&t.options.selectionsMayTouch,G=p[B];p.sort(function(tn,zt){return On(tn.from(),zt.from())}),B=he(p,G);for(var ne=1;ne<p.length;ne++){var ge=p[ne],we=p[ne-1],Re=On(we.to(),ge.from());if(j&&!ge.empty()?Re>0:Re>=0){var je=dr(we.from(),ge.from()),gt=xr(we.to(),ge.to()),At=we.empty()?ge.from()==ge.head:we.from()==we.head;ne<=B&&--B,p.splice(--ne,2,new Pa(At?gt:je,At?je:gt))}}return new hi(p,B)}function Cr(t,p){return new hi([new Pa(t,p||t)],0)}function Zr(t){return t.text?qt(t.from.line+t.text.length-1,$(t.text).length+(t.text.length==1?t.from.ch:0)):t.to}function va(t,p){if(On(t,p.from)<0)return t;if(On(t,p.to)<=0)return Zr(p);var B=t.line+p.text.length-(p.to.line-p.from.line)-1,j=t.ch;return t.line==p.to.line&&(j+=Zr(p).ch-p.to.ch),qt(B,j)}function Wa(t,p){for(var B=[],j=0;j<t.sel.ranges.length;j++){var G=t.sel.ranges[j];B.push(new Pa(va(G.anchor,p),va(G.head,p)))}return sa(t.cm,B,t.sel.primIndex)}function Ei(t,p,B){return t.line==p.line?qt(B.line,t.ch-p.ch+B.ch):qt(B.line+(t.line-p.line),t.ch)}function Pi(t,p,B){for(var j=[],G=qt(t.first,0),ne=G,ge=0;ge<p.length;ge++){var we=p[ge],Re=Ei(we.from,G,ne),je=Ei(Zr(we),G,ne);if(G=we.to,ne=je,B=="around"){var gt=t.sel.ranges[ge],At=On(gt.head,gt.anchor)<0;j[ge]=new Pa(At?je:Re,At?Re:je)}else j[ge]=new Pa(Re,Re)}return new hi(j,t.sel.primIndex)}function $a(t){t.doc.mode=Ft(t.options,t.doc.modeOption),xi(t)}function xi(t){t.doc.iter(function(p){p.stateAfter&&(p.stateAfter=null),p.styles&&(p.styles=null)}),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,ai(t,100),t.state.modeGen++,t.curOp&&ka(t)}function Ki(t,p){return p.from.ch==0&&p.to.ch==0&&$(p.text)==""&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function go(t,p,B,j){function G(Ur){return B?B[Ur]:null}function ne(Ur,Er,Xr){Dn(Ur,Er,Xr,j),Jt(Ur,"change",Ur,p)}function ge(Ur,Er){for(var Xr=[],ia=Ur;ia<Er;++ia)Xr.push(new dn(je[ia],G(ia),j));return Xr}var we=p.from,Re=p.to,je=p.text,gt=xn(t,we.line),At=xn(t,Re.line),tn=$(je),zt=G(je.length-1),Tn=Re.line-we.line;if(p.full)t.insert(0,ge(0,je.length)),t.remove(je.length,t.size-je.length);else if(Ki(t,p)){var Bn=ge(0,je.length-1);ne(At,At.text,zt),Tn&&t.remove(we.line,Tn),Bn.length&&t.insert(we.line,Bn)}else if(gt==At)if(je.length==1)ne(gt,gt.text.slice(0,we.ch)+tn+gt.text.slice(Re.ch),zt);else{var Zn=ge(1,je.length-1);Zn.push(new dn(tn+gt.text.slice(Re.ch),zt,j)),ne(gt,gt.text.slice(0,we.ch)+je[0],G(0)),t.insert(we.line+1,Zn)}else if(je.length==1)ne(gt,gt.text.slice(0,we.ch)+je[0]+At.text.slice(Re.ch),G(0)),t.remove(we.line+1,Tn);else{ne(gt,gt.text.slice(0,we.ch)+je[0],G(0)),ne(At,tn+At.text.slice(Re.ch),zt);var yr=ge(1,je.length-1);Tn>1&&t.remove(we.line+1,Tn-1),t.insert(we.line+1,yr)}Jt(t,"change",t,p)}function Qa(t,p,B){function j(G,ne,ge){if(G.linked)for(var we=0;we<G.linked.length;++we){var Re=G.linked[we];if(Re.doc==ne)continue;var je=ge&&Re.sharedHist;if(B&&!je)continue;p(Re.doc,je),j(Re.doc,G,je)}}j(t,null,!0)}function As(t,p){if(p.cm)throw new Error("This document is already in use.");t.doc=p,p.cm=t,ba(t),$a(t),Ys(t),t.options.lineWrapping||Yt(t),t.options.mode=p.modeOption,ka(t)}function Ys(t){(t.doc.direction=="rtl"?H:C)(t.display.lineDiv,"CodeMirror-rtl")}function Pl(t){fi(t,function(){Ys(t),ka(t)})}function hs(t){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=t||1}function Ds(t,p){var B={from:Or(p.from),to:Zr(p),text:fr(t,p.from,p.to)};return Rs(t,B,p.from.line,p.to.line+1),Qa(t,function(j){return Rs(j,B,p.from.line,p.to.line+1)},!0),B}function Js(t){for(;t.length;){var p=$(t);if(p.ranges)t.pop();else break}}function Ml(t,p){if(p)return Js(t.done),$(t.done);if(t.done.length&&!$(t.done).ranges)return $(t.done);if(t.done.length>1&&!t.done[t.done.length-2].ranges)return t.done.pop(),$(t.done)}function Qs(t,p,B,j){var G=t.history;G.undone.length=0;var ne=+new Date,ge,we;if((G.lastOp==j||G.lastOrigin==p.origin&&p.origin&&(p.origin.charAt(0)=="+"&&G.lastModTime>ne-(t.cm?t.cm.options.historyEventDelay:500)||p.origin.charAt(0)=="*"))&&(ge=Ml(G,G.lastOp==j)))we=$(ge.changes),On(p.from,p.to)==0&&On(p.from,we.to)==0?we.to=Zr(p):ge.changes.push(Ds(t,p));else{var Re=$(G.done);for((!Re||!Re.ranges)&&ms(t.sel,G.done),ge={changes:[Ds(t,p)],generation:G.generation},G.done.push(ge);G.done.length>G.undoDepth;)G.done.shift(),G.done[0].ranges||G.done.shift()}G.done.push(B),G.generation=++G.maxGeneration,G.lastModTime=G.lastSelTime=ne,G.lastOp=G.lastSelOp=j,G.lastOrigin=G.lastSelOrigin=p.origin,we||bt(t,"historyAdded")}function Il(t,p,B,j){var G=p.charAt(0);return G=="*"||G=="+"&&B.ranges.length==j.ranges.length&&B.somethingSelected()==j.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function ps(t,p,B,j){var G=t.history,ne=j&&j.origin;B==G.lastSelOp||ne&&G.lastSelOrigin==ne&&(G.lastModTime==G.lastSelTime&&G.lastOrigin==ne||Il(t,ne,$(G.done),p))?G.done[G.done.length-1]=p:ms(p,G.done),G.lastSelTime=+new Date,G.lastSelOrigin=ne,G.lastSelOp=B,j&&j.clearRedo!==!1&&Js(G.undone)}function ms(t,p){var B=$(p);B&&B.ranges&&B.equals(t)||p.push(t)}function Rs(t,p,B,j){var G=p["spans_"+t.id],ne=0;t.iter(Math.max(t.first,B),Math.min(t.first+t.size,j),function(ge){ge.markedSpans&&((G||(G=p["spans_"+t.id]={}))[ne]=ge.markedSpans),++ne})}function gs(t){if(!t)return null;for(var p,B=0;B<t.length;++B)t[B].marker.explicitlyCleared?p||(p=t.slice(0,B)):p&&p.push(t[B]);return p?p.length?p:null:t}function Zs(t,p){var B=p["spans_"+t.id];if(!B)return null;for(var j=[],G=0;G<p.text.length;++G)j.push(gs(B[G]));return j}function Ps(t,p){var B=Zs(t,p),j=la(t,p);if(!B)return j;if(!j)return B;for(var G=0;G<B.length;++G){var ne=B[G],ge=j[G];if(ne&&ge){e:for(var we=0;we<ge.length;++we){for(var Re=ge[we],je=0;je<ne.length;++je)if(ne[je].marker==Re.marker)continue e;ne.push(Re)}}else ge&&(B[G]=ge)}return B}function Ho(t,p,B){for(var j=[],G=0;G<t.length;++G){var ne=t[G];if(ne.ranges){j.push(B?hi.prototype.deepCopy.call(ne):ne);continue}var ge=ne.changes,we=[];j.push({changes:we});for(var Re=0;Re<ge.length;++Re){var je=ge[Re],gt=void 0;if(we.push({from:je.from,to:je.to,text:je.text}),p)for(var At in je)(gt=At.match(/^spans_(\d+)$/))&&(he(p,Number(gt[1]))>-1&&($(we)[At]=je[At],delete je[At]))}}return j}function vs(t,p,B,j){if(j){var G=t.anchor;if(B){var ne=On(p,G)<0;ne!=On(B,G)<0?(G=p,p=B):ne!=On(p,B)<0&&(p=B)}return new Pa(G,p)}else return new Pa(B||p,p)}function _s(t,p,B,j,G){G==null&&(G=t.cm&&(t.cm.display.shift||t.extend)),gi(t,new hi([vs(t.sel.primary(),p,B,G)],0),j)}function $s(t,p,B){for(var j=[],G=t.cm&&(t.cm.display.shift||t.extend),ne=0;ne<t.sel.ranges.length;ne++)j[ne]=vs(t.sel.ranges[ne],p[ne],null,G);var ge=sa(t.cm,j,t.sel.primIndex);gi(t,ge,B)}function Ao(t,p,B,j){var G=t.sel.ranges.slice(0);G[p]=B,gi(t,sa(t.cm,G,t.sel.primIndex),j)}function el(t,p,B,j){gi(t,Cr(p,B),j)}function Ll(t,p,B){var j={ranges:p.ranges,update:function(G){this.ranges=[];for(var ne=0;ne<G.length;ne++)this.ranges[ne]=new Pa(X(t,G[ne].anchor),X(t,G[ne].head))},origin:B&&B.origin};return bt(t,"beforeSelectionChange",t,j),t.cm&&bt(t.cm,"beforeSelectionChange",t.cm,j),j.ranges!=p.ranges?sa(t.cm,j.ranges,j.ranges.length-1):p}function tl(t,p,B){var j=t.history.done,G=$(j);G&&G.ranges?(j[j.length-1]=p,Ko(t,p,B)):gi(t,p,B)}function gi(t,p,B){Ko(t,p,B),ps(t,t.sel,t.cm?t.cm.curOp.id:NaN,B)}function Ko(t,p,B){(He(t,"beforeSelectionChange")||t.cm&&He(t.cm,"beforeSelectionChange"))&&(p=Ll(t,p,B));var j=B&&B.bias||(On(p.primary().head,t.sel.primary().head)<0?-1:1);nl(t,al(t,p,j,!0)),!(B&&B.scroll===!1)&&t.cm&&Xi(t.cm)}function nl(t,p){if(p.equals(t.sel))return;t.sel=p,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,it(t.cm)),Jt(t,"cursorActivity",t)}function rl(t){nl(t,al(t,t.sel,null,!1))}function al(t,p,B,j){for(var G,ne=0;ne<p.ranges.length;ne++){var ge=p.ranges[ne],we=p.ranges.length==t.sel.ranges.length&&t.sel.ranges[ne],Re=bs(t,ge.anchor,we&&we.anchor,B,j),je=bs(t,ge.head,we&&we.head,B,j);(G||Re!=ge.anchor||je!=ge.head)&&(G||(G=p.ranges.slice(0,ne)),G[ne]=new Pa(Re,je))}return G?sa(t.cm,G,p.primIndex):p}function Go(t,p,B,j,G){var ne=xn(t,p.line);if(ne.markedSpans)for(var ge=0;ge<ne.markedSpans.length;++ge){var we=ne.markedSpans[ge],Re=we.marker,je="selectLeft"in Re?!Re.selectLeft:Re.inclusiveLeft,gt="selectRight"in Re?!Re.selectRight:Re.inclusiveRight;if((we.from==null||(je?we.from<=p.ch:we.from<p.ch))&&(we.to==null||(gt?we.to>=p.ch:we.to>p.ch))){if(G&&(bt(Re,"beforeCursorEnter"),Re.explicitlyCleared))if(ne.markedSpans){--ge;continue}else break;if(!Re.atomic)continue;if(B){var At=Re.find(j<0?1:-1),tn=void 0;if((j<0?gt:je)&&(At=il(t,At,-j,At&&At.line==p.line?ne:null)),At&&At.line==p.line&&(tn=On(At,B))&&(j<0?tn<0:tn>0))return Go(t,At,p,j,G)}var zt=Re.find(j<0?-1:1);return(j<0?je:gt)&&(zt=il(t,zt,j,zt.line==p.line?ne:null)),zt?Go(t,zt,p,j,G):null}}return p}function bs(t,p,B,j,G){var ne=j||1,ge=Go(t,p,B,ne,G)||!G&&Go(t,p,B,ne,!0)||Go(t,p,B,-ne,G)||!G&&Go(t,p,B,-ne,!0);return ge||(t.cantEdit=!0,qt(t.first,0))}function il(t,p,B,j){return B<0&&p.ch==0?p.line>t.first?X(t,qt(p.line-1)):null:B>0&&p.ch==(j||xn(t,p.line)).text.length?p.line<t.first+t.size-1?qt(p.line+1,0):null:new qt(p.line,p.ch+B)}function ol(t){t.setSelection(qt(t.firstLine(),0),qt(t.lastLine()),Te)}function Ms(t,p,B){var j={canceled:!1,from:p.from,to:p.to,text:p.text,origin:p.origin,cancel:function(){return j.canceled=!0}};return B&&(j.update=function(G,ne,ge,we){G&&(j.from=X(t,G)),ne&&(j.to=X(t,ne)),ge&&(j.text=ge),we!==void 0&&(j.origin=we)}),bt(t,"beforeChange",t,j),t.cm&&bt(t.cm,"beforeChange",t.cm,j),j.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:j.from,to:j.to,text:j.text,origin:j.origin}}function zo(t,p,B){if(t.cm){if(!t.cm.curOp)return Ha(t.cm,zo)(t,p,B);if(t.cm.state.suppressEdits)return}if((He(t,"beforeChange")||t.cm&&He(t.cm,"beforeChange"))&&(p=Ms(t,p,!0),!p))return;var j=La&&!B&&ut(t,p.from,p.to);if(j)for(var G=j.length-1;G>=0;--G)sl(t,{from:j[G].from,to:j[G].to,text:G?[""]:p.text,origin:p.origin});else sl(t,p)}function sl(t,p){if(p.text.length==1&&p.text[0]==""&&On(p.from,p.to)==0)return;var B=Wa(t,p);Qs(t,p,B,t.cm?t.cm.curOp.id:NaN),Vo(t,p,B,la(t,p));var j=[];Qa(t,function(G,ne){!ne&&he(j,G.history)==-1&&(dl(G.history,p),j.push(G.history)),Vo(G,p,null,la(G,p))})}function ys(t,p,B){var j=t.cm&&t.cm.state.suppressEdits;if(j&&!B)return;for(var G=t.history,ne,ge=t.sel,we=p=="undo"?G.done:G.undone,Re=p=="undo"?G.undone:G.done,je=0;je<we.length&&!(ne=we[je],B?ne.ranges&&!ne.equals(t.sel):!ne.ranges);je++);if(je==we.length)return;for(G.lastOrigin=G.lastSelOrigin=null;;)if(ne=we.pop(),ne.ranges){if(ms(ne,Re),B&&!ne.equals(t.sel)){gi(t,ne,{clearRedo:!1});return}ge=ne}else if(j){we.push(ne);return}else break;var gt=[];ms(ge,Re),Re.push({changes:gt,generation:G.generation}),G.generation=ne.generation||++G.maxGeneration;for(var At=He(t,"beforeChange")||t.cm&&He(t.cm,"beforeChange"),tn=function(Bn){var Zn=ne.changes[Bn];if(Zn.origin=p,At&&!Ms(t,Zn,!1))return we.length=0,{};gt.push(Ds(t,Zn));var yr=Bn?Wa(t,Zn):$(we);Vo(t,Zn,yr,Ps(t,Zn)),!Bn&&t.cm&&t.cm.scrollIntoView({from:Zn.from,to:Zr(Zn)});var Ur=[];Qa(t,function(Er,Xr){!Xr&&he(Ur,Er.history)==-1&&(dl(Er.history,Zn),Ur.push(Er.history)),Vo(Er,Zn,null,Ps(Er,Zn))})},zt=ne.changes.length-1;zt>=0;--zt){var Tn=tn(zt);if(Tn)return Tn.v}}function ll(t,p){if(p==0)return;if(t.first+=p,t.sel=new hi(me(t.sel.ranges,function(G){return new Pa(qt(G.anchor.line+p,G.anchor.ch),qt(G.head.line+p,G.head.ch))}),t.sel.primIndex),t.cm){ka(t.cm,t.first,t.first-p,p);for(var B=t.cm.display,j=B.viewFrom;j<B.viewTo;j++)Ua(t.cm,j,"gutter")}}function Vo(t,p,B,j){if(t.cm&&!t.cm.curOp)return Ha(t.cm,Vo)(t,p,B,j);if(p.to.line<t.first){ll(t,p.text.length-1-(p.to.line-p.from.line));return}if(p.from.line>t.lastLine())return;if(p.from.line<t.first){var G=p.text.length-1-(t.first-p.from.line);ll(t,G),p={from:qt(t.first,0),to:qt(p.to.line+G,p.to.ch),text:[$(p.text)],origin:p.origin}}var ne=t.lastLine();p.to.line>ne&&(p={from:p.from,to:qt(ne,xn(t,ne).text.length),text:[p.text[0]],origin:p.origin}),p.removed=fr(t,p.from,p.to),B||(B=Wa(t,p)),t.cm?Nl(t.cm,p,j):go(t,p,j),Ko(t,B,Te),t.cantEdit&&bs(t,qt(t.firstLine(),0))&&(t.cantEdit=!1)}function Nl(t,p,B){var j=t.doc,G=t.display,ne=p.from,ge=p.to,we=!1,Re=ne.line;t.options.lineWrapping||(Re=nr(an(xn(j,ne.line))),j.iter(Re,ge.line+1,function(zt){if(zt==G.maxLine)return we=!0,!0})),j.sel.contains(p.from,p.to)>-1&&it(t),go(j,p,B,Ea(t)),t.options.lineWrapping||(j.iter(Re,ne.line+p.text.length,function(zt){var Tn=Sn(zt);Tn>G.maxLineLength&&(G.maxLine=zt,G.maxLineLength=Tn,G.maxLineChanged=!0,we=!1)}),we&&(t.curOp.updateMaxLine=!0)),Ra(j,ne.line),ai(t,400);var je=p.text.length-(ge.line-ne.line)-1;p.full?ka(t):ne.line==ge.line&&p.text.length==1&&!Ki(t.doc,p)?Ua(t,ne.line,"text"):ka(t,ne.line,ge.line+1,je);var gt=He(t,"changes"),At=He(t,"change");if(At||gt){var tn={from:ne,to:ge,text:p.text,removed:p.removed,origin:p.origin};At&&Jt(t,"change",t,tn),gt&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(tn)}t.display.selForContextMenu=null}function Xo(t,p,B,j,G){var ne;j||(j=B),On(j,B)<0&&(ne=[j,B],B=ne[0],j=ne[1]),typeof p=="string"&&(p=t.splitLines(p)),zo(t,{from:B,to:j,text:p,origin:G})}function ul(t,p,B,j){B<t.line?t.line+=j:p<t.line&&(t.line=p,t.ch=0)}function cl(t,p,B,j){for(var G=0;G<t.length;++G){var ne=t[G],ge=!0;if(ne.ranges){ne.copied||(ne=t[G]=ne.deepCopy(),ne.copied=!0);for(var we=0;we<ne.ranges.length;we++)ul(ne.ranges[we].anchor,p,B,j),ul(ne.ranges[we].head,p,B,j);continue}for(var Re=0;Re<ne.changes.length;++Re){var je=ne.changes[Re];if(B<je.from.line)je.from=qt(je.from.line+j,je.from.ch),je.to=qt(je.to.line+j,je.to.ch);else if(p<=je.to.line){ge=!1;break}}ge||(t.splice(0,G+1),G=0)}}function dl(t,p){var B=p.from.line,j=p.to.line,G=p.text.length-(j-B)-1;cl(t.done,B,j,G),cl(t.undone,B,j,G)}function ts(t,p,B,j){var G=p,ne=p;return typeof p=="number"?ne=xn(t,pe(t,p)):G=nr(p),G==null?null:(j(ne,G)&&t.cm&&Ua(t.cm,G,B),ne)}function Do(t){this.lines=t,this.parent=null;for(var p=0,B=0;B<t.length;++B)t[B].parent=this,p+=t[B].height;this.height=p}Do.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,p){for(var B=t,j=t+p;B<j;++B){var G=this.lines[B];this.height-=G.height,en(G),Jt(G,"delete")}this.lines.splice(t,p)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,p,B){this.height+=B,this.lines=this.lines.slice(0,t).concat(p).concat(this.lines.slice(t));for(var j=0;j<p.length;++j)p[j].parent=this},iterN:function(t,p,B){for(var j=t+p;t<j;++t)if(B(this.lines[t]))return!0}};function Yo(t){this.children=t;for(var p=0,B=0,j=0;j<t.length;++j){var G=t[j];p+=G.chunkSize(),B+=G.height,G.parent=this}this.size=p,this.height=B,this.parent=null}Yo.prototype={chunkSize:function(){return this.size},removeInner:function(t,p){this.size-=p;for(var B=0;B<this.children.length;++B){var j=this.children[B],G=j.chunkSize();if(t<G){var ne=Math.min(p,G-t),ge=j.height;if(j.removeInner(t,ne),this.height-=ge-j.height,G==ne&&(this.children.splice(B--,1),j.parent=null),(p-=ne)==0)break;t=0}else t-=G}if(this.size-p<25&&(this.children.length>1||!(this.children[0]instanceof Do))){var we=[];this.collapse(we),this.children=[new Do(we)],this.children[0].parent=this}},collapse:function(t){for(var p=0;p<this.children.length;++p)this.children[p].collapse(t)},insertInner:function(t,p,B){this.size+=p.length,this.height+=B;for(var j=0;j<this.children.length;++j){var G=this.children[j],ne=G.chunkSize();if(t<=ne){if(G.insertInner(t,p,B),G.lines&&G.lines.length>50){for(var ge=G.lines.length%25+25,we=ge;we<G.lines.length;){var Re=new Do(G.lines.slice(we,we+=25));G.height-=Re.height,this.children.splice(++j,0,Re),Re.parent=this}G.lines=G.lines.slice(0,ge),this.maybeSpill()}break}t-=ne}},maybeSpill:function(){if(this.children.length<=10)return;var t=this;do{var p=t.children.splice(t.children.length-5,5),B=new Yo(p);if(t.parent){t.size-=B.size,t.height-=B.height;var G=he(t.parent.children,t);t.parent.children.splice(G+1,0,B)}else{var j=new Yo(t.children);j.parent=t,t.children=[j,B],t=j}B.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()},iterN:function(t,p,B){for(var j=0;j<this.children.length;++j){var G=this.children[j],ne=G.chunkSize();if(t<ne){var ge=Math.min(p,ne-t);if(G.iterN(t,ge,B))return!0;if((p-=ge)==0)break;t=0}else t-=ne}}};var ns=function(t,p,B){if(B)for(var j in B)B.hasOwnProperty(j)&&(this[j]=B[j]);this.doc=t,this.node=p};ns.prototype.clear=function(){var t=this.doc.cm,p=this.line.widgets,B=this.line,j=nr(B);if(j==null||!p)return;for(var G=0;G<p.length;++G)p[G]==this&&p.splice(G--,1);p.length||(B.widgets=null);var ne=Jr(this);ar(B,Math.max(0,B.height-ne)),t&&(fi(t,function(){fl(t,B,-ne),Ua(t,j,"widget")}),Jt(t,"lineWidgetCleared",t,this,j))},ns.prototype.changed=function(){var t=this,p=this.height,B=this.doc.cm,j=this.line;this.height=null;var G=Jr(this)-p;if(!G)return;Jn(this.doc,j)||ar(j,j.height+G),B&&fi(B,function(){B.curOp.forceUpdate=!0,fl(B,j,G),Jt(B,"lineWidgetChanged",B,t,nr(j))})},Ge(ns);function fl(t,p,B){Br(p)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&co(t,B)}function kl(t,p,B,j){var G=new ns(t,B,j),ne=t.cm;return ne&&G.noHScroll&&(ne.display.alignWidgets=!0),ts(t,p,"widget",function(ge){var we=ge.widgets||(ge.widgets=[]);if(G.insertAt==null?we.push(G):we.splice(Math.min(we.length-1,Math.max(0,G.insertAt)),0,G),G.line=ge,ne&&!Jn(t,ge)){var Re=Br(ge)<t.scrollTop;ar(ge,ge.height+Jr(G)),Re&&co(ne,G.height),ne.curOp.forceUpdate=!0}return!0}),ne&&Jt(ne,"lineWidgetAdded",ne,G,typeof p=="number"?p:nr(p)),G}var hl=0,Gi=function(t,p){this.lines=[],this.type=p,this.doc=t,this.id=++hl};Gi.prototype.clear=function(){if(this.explicitlyCleared)return;var t=this.doc.cm,p=t&&!t.curOp;if(p&&Ni(t),He(this,"clear")){var B=this.find();B&&Jt(this,"clear",B.from,B.to)}for(var j=null,G=null,ne=0;ne<this.lines.length;++ne){var ge=this.lines[ne],we=ja(ge.markedSpans,this);t&&!this.collapsed?Ua(t,nr(ge),"text"):t&&(we.to!=null&&(G=nr(ge)),we.from!=null&&(j=nr(ge))),ge.markedSpans=li(ge.markedSpans,we),we.from==null&&this.collapsed&&!Jn(this.doc,ge)&&t&&ar(ge,br(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var Re=0;Re<this.lines.length;++Re){var je=an(this.lines[Re]),gt=Sn(je);gt>t.display.maxLineLength&&(t.display.maxLine=je,t.display.maxLineLength=gt,t.display.maxLineChanged=!0)}j!=null&&t&&this.collapsed&&ka(t,j,G+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&rl(t.doc)),t&&Jt(t,"markerCleared",t,this,j,G),p&&qi(t),this.parent&&this.parent.clear()},Gi.prototype.find=function(t,p){t==null&&this.type=="bookmark"&&(t=1);for(var B,j,G=0;G<this.lines.length;++G){var ne=this.lines[G],ge=ja(ne.markedSpans,this);if(ge.from!=null&&(B=qt(p?ne:nr(ne),ge.from),t==-1))return B;if(ge.to!=null&&(j=qt(p?ne:nr(ne),ge.to),t==1))return j}return B&&{from:B,to:j}},Gi.prototype.changed=function(){var t=this,p=this.find(-1,!0),B=this,j=this.doc.cm;if(!p||!j)return;fi(j,function(){var G=p.line,ne=nr(p.line),ge=pt(j,ne);if(ge&&(Wn(ge),j.curOp.selectionChanged=j.curOp.forceUpdate=!0),j.curOp.updateMaxLine=!0,!Jn(B.doc,G)&&B.height!=null){var we=B.height;B.height=null;var Re=Jr(B)-we;Re&&ar(G,G.height+Re)}Jt(j,"markerChanged",j,t)})},Gi.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var p=this.doc.cm.curOp;(!p.maybeHiddenMarkers||he(p.maybeHiddenMarkers,this)==-1)&&(p.maybeUnhiddenMarkers||(p.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},Gi.prototype.detachLine=function(t){if(this.lines.splice(he(this.lines,t),1),!this.lines.length&&this.doc.cm){var p=this.doc.cm.curOp;(p.maybeHiddenMarkers||(p.maybeHiddenMarkers=[])).push(this)}},Ge(Gi);function Jo(t,p,B,j,G){if(j&&j.shared)return Ul(t,p,B,j,G);if(t.cm&&!t.cm.curOp)return Ha(t.cm,Jo)(t,p,B,j,G);var ne=new Gi(t,G),ge=On(p,B);if(j&&I(j,ne,!1),ge>0||ge==0&&ne.clearWhenEmpty!==!1)return ne;if(ne.replacedWith&&(ne.collapsed=!0,ne.widgetNode=U("span",[ne.replacedWith],"CodeMirror-widget"),j.handleMouseEvents||ne.widgetNode.setAttribute("cm-ignore-events","true"),j.insertLeft&&(ne.widgetNode.insertLeft=!0)),ne.collapsed){if(An(t,p.line,p,B,ne)||p.line!=B.line&&An(t,B.line,p,B,ne))throw new Error("Inserting collapsed marker partially overlapping an existing one");wa()}ne.addToHistory&&Qs(t,{from:p,to:B,origin:"markText"},t.sel,NaN);var we=p.line,Re=t.cm,je;if(t.iter(we,B.line+1,function(At){Re&&ne.collapsed&&!Re.options.lineWrapping&&an(At)==Re.display.maxLine&&(je=!0),ne.collapsed&&we!=p.line&&ar(At,0),oi(At,new Ja(ne,we==p.line?p.ch:null,we==B.line?B.ch:null)),++we}),ne.collapsed&&t.iter(p.line,B.line+1,function(At){Jn(t,At)&&ar(At,0)}),ne.clearOnEnter&&Ue(ne,"beforeCursorEnter",function(){return ne.clear()}),ne.readOnly&&(Ka(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),ne.collapsed&&(ne.id=++hl,ne.atomic=!0),Re){if(je&&(Re.curOp.updateMaxLine=!0),ne.collapsed)ka(Re,p.line,B.line+1);else if(ne.className||ne.startStyle||ne.endStyle||ne.css||ne.attributes||ne.title)for(var gt=p.line;gt<=B.line;gt++)Ua(Re,gt,"text");ne.atomic&&rl(Re.doc),Jt(Re,"markerAdded",Re,ne)}return ne}var Qo=function(t,p){this.markers=t,this.primary=p;for(var B=0;B<t.length;++B)t[B].parent=this};Qo.prototype.clear=function(){if(this.explicitlyCleared)return;this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();Jt(this,"clear")},Qo.prototype.find=function(t,p){return this.primary.find(t,p)},Ge(Qo);function Ul(t,p,B,j,G){j=I(j),j.shared=!1;var ne=[Jo(t,p,B,j,G)],ge=ne[0],we=j.widgetNode;return Qa(t,function(Re){we&&(j.widgetNode=we.cloneNode(!0)),ne.push(Jo(Re,X(Re,p),X(Re,B),j,G));for(var je=0;je<Re.linked.length;++je)if(Re.linked[je].isParent)return;ge=$(ne)}),new Qo(ne,ge)}function pl(t){return t.findMarks(qt(t.first,0),t.clipPos(qt(t.lastLine())),function(p){return p.parent})}function iu(t,p){for(var B=0;B<p.length;B++){var j=p[B],G=j.find(),ne=t.clipPos(G.from),ge=t.clipPos(G.to);if(On(ne,ge)){var we=Jo(t,ne,ge,j.primary,j.primary.type);j.markers.push(we),we.parent=j}}}function jl(t){for(var p=function(j){var G=t[j],ne=[G.primary.doc];Qa(G.primary.doc,function(Re){return ne.push(Re)});for(var ge=0;ge<G.markers.length;ge++){var we=G.markers[ge];he(ne,we.doc)==-1&&(we.parent=null,G.markers.splice(ge--,1))}},B=0;B<t.length;B++)p(B)}var Is=0,Ti=function(t,p,B,j,G){if(!(this instanceof Ti))return new Ti(t,p,B,j,G);B==null&&(B=0),Yo.call(this,[new Do([new dn("",null)])]),this.first=B,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=B;var ne=qt(B,0);this.sel=Cr(ne),this.history=new hs(null),this.id=++Is,this.modeOption=p,this.lineSep=j,this.direction=G=="rtl"?"rtl":"ltr",this.extend=!1,typeof t=="string"&&(t=this.splitLines(t)),go(this,{from:ne,to:ne,text:t}),gi(this,Cr(ne),Te)};Ti.prototype=Oe(Yo.prototype,{constructor:Ti,iter:function(t,p,B){B?this.iterN(t-this.first,p-t,B):this.iterN(this.first,this.first+this.size,t)},insert:function(t,p){for(var B=0,j=0;j<p.length;++j)B+=p[j].height;this.insertInner(t-this.first,p,B)},remove:function(t,p){this.removeInner(t-this.first,p)},getValue:function(t){var p=Yn(this,this.first,this.first+this.size);return t===!1?p:p.join(t||this.lineSeparator())},setValue:Xa(function(t){var p=qt(this.first,0),B=this.first+this.size-1;zo(this,{from:p,to:qt(B,xn(this,B).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&Yi(this.cm,0,0),gi(this,Cr(p),Te)}),replaceRange:function(t,p,B,j){p=X(this,p),B=B?X(this,B):p,Xo(this,t,p,B,j)},getRange:function(t,p,B){var j=fr(this,X(this,t),X(this,p));return B===!1?j:j.join(B||this.lineSeparator())},getLine:function(t){var p=this.getLineHandle(t);return p&&p.text},getLineHandle:function(t){if(pr(this,t))return xn(this,t)},getLineNumber:function(t){return nr(t)},getLineHandleVisualStart:function(t){return typeof t=="number"&&(t=xn(this,t)),an(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return X(this,t)},getCursor:function(t){var p=this.sel.primary(),B;return t==null||t=="head"?B=p.head:t=="anchor"?B=p.anchor:t=="end"||t=="to"||t===!1?B=p.to():B=p.from(),B},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Xa(function(t,p,B){el(this,X(this,typeof t=="number"?qt(t,p||0):t),null,B)}),setSelection:Xa(function(t,p,B){el(this,X(this,t),X(this,p||t),B)}),extendSelection:Xa(function(t,p,B){_s(this,X(this,t),p&&X(this,p),B)}),extendSelections:Xa(function(t,p){$s(this,oe(this,t),p)}),extendSelectionsBy:Xa(function(t,p){var B=me(this.sel.ranges,t);$s(this,oe(this,B),p)}),setSelections:Xa(function(t,p,B){if(!t.length)return;for(var j=[],G=0;G<t.length;G++)j[G]=new Pa(X(this,t[G].anchor),X(this,t[G].head));p==null&&(p=Math.min(t.length-1,this.sel.primIndex)),gi(this,sa(this.cm,j,p),B)}),addSelection:Xa(function(t,p,B){var j=this.sel.ranges.slice(0);j.push(new Pa(X(this,t),X(this,p||t))),gi(this,sa(this.cm,j,j.length-1),B)}),getSelection:function(t){for(var p=this.sel.ranges,B,j=0;j<p.length;j++){var G=fr(this,p[j].from(),p[j].to());B=B?B.concat(G):G}return t===!1?B:B.join(t||this.lineSeparator())},getSelections:function(t){for(var p=[],B=this.sel.ranges,j=0;j<B.length;j++){var G=fr(this,B[j].from(),B[j].to());t!==!1&&(G=G.join(t||this.lineSeparator())),p[j]=G}return p},replaceSelection:function(t,p,B){for(var j=[],G=0;G<this.sel.ranges.length;G++)j[G]=t;this.replaceSelections(j,p,B||"+input")},replaceSelections:Xa(function(t,p,B){for(var j=[],G=this.sel,ne=0;ne<G.ranges.length;ne++){var ge=G.ranges[ne];j[ne]={from:ge.from(),to:ge.to(),text:this.splitLines(t[ne]),origin:B}}for(var we=p&&p!="end"&&Pi(this,j,p),Re=j.length-1;Re>=0;Re--)zo(this,j[Re]);we?tl(this,we):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(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,p=0,B=0,j=0;j<t.done.length;j++)t.done[j].ranges||++p;for(var G=0;G<t.undone.length;G++)t.undone[G].ranges||++B;return{undo:p,redo:B}},clearHistory:function(){var t=this;this.history=new hs(this.history.maxGeneration),Qa(this,function(p){return p.history=t.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:Ho(this.history.done),undone:Ho(this.history.undone)}},setHistory:function(t){var p=this.history=new hs(this.history.maxGeneration);p.done=Ho(t.done.slice(0),null,!0),p.undone=Ho(t.undone.slice(0),null,!0)},setGutterMarker:Xa(function(t,p,B){return ts(this,t,"gutter",function(j){var G=j.gutterMarkers||(j.gutterMarkers={});return G[p]=B,!B&&J(G)&&(j.gutterMarkers=null),!0})}),clearGutter:Xa(function(t){var p=this;this.iter(function(B){B.gutterMarkers&&B.gutterMarkers[t]&&ts(p,B,"gutter",function(){return B.gutterMarkers[t]=null,J(B.gutterMarkers)&&(B.gutterMarkers=null),!0})})}),lineInfo:function(t){var p;if(typeof t=="number"){if(!pr(this,t))return null;if(p=t,t=xn(this,t),!t)return null}else if(p=nr(t),p==null)return null;return{line:p,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:Xa(function(t,p,B){return ts(this,t,p=="gutter"?"gutter":"class",function(j){var G=p=="text"?"textClass":p=="background"?"bgClass":p=="gutter"?"gutterClass":"wrapClass";if(!j[G])j[G]=B;else{if(M(B).test(j[G]))return!1;j[G]+=" "+B}return!0})}),removeLineClass:Xa(function(t,p,B){return ts(this,t,p=="gutter"?"gutter":"class",function(j){var G=p=="text"?"textClass":p=="background"?"bgClass":p=="gutter"?"gutterClass":"wrapClass",ne=j[G];if(ne)if(B==null)j[G]=null;else{var ge=ne.match(M(B));if(!ge)return!1;var we=ge.index+ge[0].length;j[G]=ne.slice(0,ge.index)+(!ge.index||we==ne.length?"":" ")+ne.slice(we)||null}else return!1;return!0})}),addLineWidget:Xa(function(t,p,B){return kl(this,t,p,B)}),removeLineWidget:function(t){t.clear()},markText:function(t,p,B){return Jo(this,X(this,t),X(this,p),B,B&&B.type||"range")},setBookmark:function(t,p){var B={replacedWith:p&&(p.nodeType==null?p.widget:p),insertLeft:p&&p.insertLeft,clearWhenEmpty:!1,shared:p&&p.shared,handleMouseEvents:p&&p.handleMouseEvents};return t=X(this,t),Jo(this,t,t,B,"bookmark")},findMarksAt:function(t){t=X(this,t);var p=[],B=xn(this,t.line).markedSpans;if(B)for(var j=0;j<B.length;++j){var G=B[j];(G.from==null||G.from<=t.ch)&&(G.to==null||G.to>=t.ch)&&p.push(G.marker.parent||G.marker)}return p},findMarks:function(t,p,B){t=X(this,t),p=X(this,p);var j=[],G=t.line;return this.iter(t.line,p.line+1,function(ne){var ge=ne.markedSpans;if(ge)for(var we=0;we<ge.length;we++){var Re=ge[we];!(Re.to!=null&&G==t.line&&t.ch>=Re.to||Re.from==null&&G!=t.line||Re.from!=null&&G==p.line&&Re.from>=p.ch)&&(!B||B(Re.marker))&&j.push(Re.marker.parent||Re.marker)}++G}),j},getAllMarks:function(){var t=[];return this.iter(function(p){var B=p.markedSpans;if(B)for(var j=0;j<B.length;++j)B[j].from!=null&&t.push(B[j].marker)}),t},posFromIndex:function(t){var p,B=this.first,j=this.lineSeparator().length;return this.iter(function(G){var ne=G.text.length+j;if(ne>t)return p=t,!0;t-=ne,++B}),X(this,qt(B,p))},indexFromPos:function(t){t=X(this,t);var p=t.ch;if(t.line<this.first||t.ch<0)return 0;var B=this.lineSeparator().length;return this.iter(this.first,t.line,function(j){p+=j.text.length+B}),p},copy:function(t){var p=new Ti(Yn(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return p.scrollTop=this.scrollTop,p.scrollLeft=this.scrollLeft,p.sel=this.sel,p.extend=!1,t&&(p.history.undoDepth=this.history.undoDepth,p.setHistory(this.getHistory())),p},linkedDoc:function(t){t||(t={});var p=this.first,B=this.first+this.size;t.from!=null&&t.from>p&&(p=t.from),t.to!=null&&t.to<B&&(B=t.to);var j=new Ti(Yn(this,p,B),t.mode||this.modeOption,p,this.lineSep,this.direction);return t.sharedHist&&(j.history=this.history),(this.linked||(this.linked=[])).push({doc:j,sharedHist:t.sharedHist}),j.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],iu(j,pl(this)),j},unlinkDoc:function(t){if(t instanceof Ya&&(t=t.doc),this.linked)for(var p=0;p<this.linked.length;++p){var B=this.linked[p];if(B.doc!=t)continue;this.linked.splice(p,1),t.unlinkDoc(this),jl(pl(this));break}if(t.history==this.history){var j=[t.id];Qa(t,function(G){return j.push(G.id)},!0),t.history=new hs(null),t.history.done=Ho(this.history.done,j),t.history.undone=Ho(this.history.undone,j)}},iterLinkedDocs:function(t){Qa(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):Ke(t)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:Xa(function(t){if(t!="rtl"&&(t="ltr"),t==this.direction)return;this.direction=t,this.iter(function(p){return p.order=null}),this.cm&&Pl(this.cm)})}),Ti.prototype.eachLine=Ti.prototype.iter;var ml=0;function Bl(t){var p=this;if(Ls(p),Pt(p,t)||Ta(p.display,t))return;Ce(t),O&&(ml=+new Date);var B=Oa(p,t,!0),j=t.dataTransfer.files;if(!B||p.isReadOnly())return;if(j&&j.length&&window.FileReader&&window.File)for(var G=j.length,ne=Array(G),ge=0,we=function(){++ge==G&&Ha(p,function(){B=X(p.doc,B);var zt={from:B,to:B,text:p.doc.splitLines(ne.filter(function(Tn){return Tn!=null}).join(p.doc.lineSeparator())),origin:"paste"};zo(p.doc,zt),tl(p.doc,Cr(X(p.doc,B),X(p.doc,Zr(zt))))})()},Re=function(zt,Tn){if(p.options.allowDropFileTypes&&he(p.options.allowDropFileTypes,zt.type)==-1){we();return}var Bn=new FileReader;Bn.onerror=function(){return we()},Bn.onload=function(){var Zn=Bn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Zn)){we();return}ne[Tn]=Zn,we()},Bn.readAsText(zt)},je=0;je<j.length;je++)Re(j[je],je);else{if(p.state.draggingText&&p.doc.sel.contains(B)>-1){p.state.draggingText(t),setTimeout(function(){return p.display.input.focus()},20);return}try{var gt=t.dataTransfer.getData("Text");if(gt){var At;if(p.state.draggingText&&!p.state.draggingText.copy&&(At=p.listSelections()),Ko(p.doc,Cr(B,B)),At)for(var tn=0;tn<At.length;++tn)Xo(p.doc,"",At[tn].anchor,At[tn].head,"drag");p.replaceSelection(gt,"around","paste"),p.display.input.focus()}}catch(zt){}}}function gl(t,p){if(O&&(!t.state.draggingText||+new Date-ml<100)){Be(p);return}if(Pt(t,p)||Ta(t.display,p))return;if(p.dataTransfer.setData("Text",t.getSelection()),p.dataTransfer.effectAllowed="copyMove",p.dataTransfer.setDragImage&&!r){var B=A("img",null,null,"position: fixed; left: 0; top: 0;");B.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",u&&(B.width=B.height=1,t.display.wrapper.appendChild(B),B._top=B.offsetTop),p.dataTransfer.setDragImage(B,0,0),u&&B.parentNode.removeChild(B)}}function Fl(t,p){var B=Oa(t,p);if(!B)return;var j=document.createDocumentFragment();Si(t,B,j),t.display.dragCursor||(t.display.dragCursor=A("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),_(t.display.dragCursor,j)}function Ls(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function vl(t){if(!document.getElementsByClassName)return;for(var p=document.getElementsByClassName("CodeMirror"),B=[],j=0;j<p.length;j++){var G=p[j].CodeMirror;G&&B.push(G)}B.length&&B[0].operation(function(){for(var ne=0;ne<B.length;ne++)t(B[ne])})}var Ns=!1;function ou(){if(Ns)return;ks(),Ns=!0}function ks(){var t;Ue(window,"resize",function(){t==null&&(t=setTimeout(function(){t=null,vl(Wl)},100))}),Ue(window,"blur",function(){return vl(no)})}function Wl(t){var p=t.display;p.cachedCharWidth=p.cachedTextHeight=p.cachedPaddingH=null,p.scrollbarsClipped=!1,t.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(t){var p=t.split(/-(?!$)/);t=p[p.length-1];for(var B,j,G,ne,ge=0;ge<p.length-1;ge++){var we=p[ge];if(/^(cmd|meta|m)$/i.test(we))ne=!0;else if(/^a(lt)?$/i.test(we))B=!0;else if(/^(c|ctrl|control)$/i.test(we))j=!0;else if(/^s(hift)?$/i.test(we))G=!0;else throw new Error("Unrecognized modifier name: "+we)}return B&&(t="Alt-"+t),j&&(t="Ctrl-"+t),ne&&(t="Cmd-"+t),G&&(t="Shift-"+t),t}function _l(t){var p={};for(var B in t)if(t.hasOwnProperty(B)){var j=t[B];if(/^(name|fallthrough|(de|at)tach)$/.test(B))continue;if(j=="..."){delete t[B];continue}for(var G=me(B.split(" "),Hl),ne=0;ne<G.length;ne++){var ge=void 0,we=void 0;ne==G.length-1?(we=G.join(" "),ge=j):(we=G.slice(0,ne+1).join(" "),ge="...");var Re=p[we];if(!Re)p[we]=ge;else if(Re!=ge)throw new Error("Inconsistent bindings for "+we)}delete t[B]}for(var je in p)t[je]=p[je];return t}function _o(t,p,B,j){p=os(p);var G=p.call?p.call(t,j):p[t];if(G===!1)return"nothing";if(G==="...")return"multi";if(G!=null&&B(G))return"handled";if(p.fallthrough){if(Object.prototype.toString.call(p.fallthrough)!="[object Array]")return _o(t,p.fallthrough,B,j);for(var ne=0;ne<p.fallthrough.length;ne++){var ge=_o(t,p.fallthrough[ne],B,j);if(ge)return ge}}}function is(t){var p=typeof t=="string"?t:Ro[t.keyCode];return p=="Ctrl"||p=="Alt"||p=="Shift"||p=="Mod"}function bl(t,p,B){var j=t;return p.altKey&&j!="Alt"&&(t="Alt-"+t),(v?p.metaKey:p.ctrlKey)&&j!="Ctrl"&&(t="Ctrl-"+t),(v?p.ctrlKey:p.metaKey)&&j!="Mod"&&(t="Cmd-"+t),!B&&p.shiftKey&&j!="Shift"&&(t="Shift-"+t),t}function xs(t,p){if(u&&t.keyCode==34&&t.char)return!1;var B=Ro[t.keyCode];return B==null||t.altGraphKey?!1:(t.keyCode==3&&t.code&&(B=t.code),bl(B,t,p))}function os(t){return typeof t=="string"?vo[t]:t}function Zo(t,p){for(var B=t.doc.sel.ranges,j=[],G=0;G<B.length;G++){for(var ne=p(B[G]);j.length&&On(ne.from,$(j).to)<=0;){var ge=j.pop();if(On(ge.from,ne.from)<0){ne.from=ge.from;break}}j.push(ne)}fi(t,function(){for(var we=j.length-1;we>=0;we--)Xo(t.doc,"",j[we].from,j[we].to,"+delete");Xi(t)})}function Us(t,p,B){var j=Ae(t.text,p+B,B);return j<0||j>t.text.length?null:j}function js(t,p,B){var j=Us(t,p.ch,B);return j==null?null:new qt(p.line,j,B<0?"after":"before")}function Bs(t,p,B,j,G){if(t){p.doc.direction=="rtl"&&(G=-G);var ne=yt(B,p.doc.direction);if(ne){var ge=G<0?$(ne):ne[0],we=G<0==(ge.level==1),Re=we?"after":"before",je;if(ge.level>0||p.doc.direction=="rtl"){var gt=rt(p,B);je=G<0?B.text.length-1:0;var At=It(p,gt,je).top;je=Qe(function(tn){return It(p,gt,tn).top==At},G<0==(ge.level==1)?ge.from:ge.to-1,je),Re=="before"&&(je=Us(B,je,1))}else je=G<0?ge.to:ge.from;return new qt(j,je,Re)}}return new qt(j,G<0?B.text.length:0,G<0?"before":"after")}function Fs(t,p,B,j){var G=yt(p,t.doc.direction);if(!G)return js(p,B,j);B.ch>=p.text.length?(B.ch=p.text.length,B.sticky="before"):B.ch<=0&&(B.ch=0,B.sticky="after");var ne=mt(G,B.ch,B.sticky),ge=G[ne];if(t.doc.direction=="ltr"&&ge.level%2==0&&(j>0?ge.to>B.ch:ge.from<B.ch))return js(p,B,j);var we=function(yr,Ur){return Us(p,yr instanceof qt?yr.ch:yr,Ur)},Re,je=function(yr){return t.options.lineWrapping?(Re=Re||rt(t,p),hr(t,p,Re,yr)):{begin:0,end:p.text.length}},gt=je(B.sticky=="before"?we(B,-1):B.ch);if(t.doc.direction=="rtl"||ge.level==1){var At=ge.level==1==j<0,tn=we(B,At?1:-1);if(tn!=null&&(At?tn<=ge.to&&tn<=gt.end:tn>=ge.from&&tn>=gt.begin)){var zt=At?"before":"after";return new qt(B.line,tn,zt)}}var Tn=function(yr,Ur,Er){for(var Xr=function(Va,vi){return vi?new qt(B.line,we(Va,1),"before"):new qt(B.line,Va,"after")};yr>=0&&yr<G.length;yr+=Ur){var ia=G[yr],ea=Ur>0==(ia.level!=1),Sa=ea?Er.begin:we(Er.end,-1);if(ia.from<=Sa&&Sa<ia.to)return Xr(Sa,ea);if(Sa=ea?ia.from:we(ia.to,-1),Er.begin<=Sa&&Sa<Er.end)return Xr(Sa,ea)}},Bn=Tn(ne+j,j,gt);if(Bn)return Bn;var Zn=j>0?gt.end:we(gt.begin,-1);return Zn!=null&&!(j>0&&Zn==p.text.length)&&(Bn=Tn(j>0?0:G.length-1,j,je(Zn)),Bn)?Bn:null}var qo={selectAll:ol,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),Te)},killLine:function(t){return Zo(t,function(p){if(p.empty()){var B=xn(t.doc,p.head.line).text.length;return p.head.ch==B&&p.head.line<t.lastLine()?{from:p.head,to:qt(p.head.line+1,0)}:{from:p.head,to:qt(p.head.line,B)}}else return{from:p.from(),to:p.to()}})},deleteLine:function(t){return Zo(t,function(p){return{from:qt(p.from().line,0),to:X(t.doc,qt(p.to().line+1,0))}})},delLineLeft:function(t){return Zo(t,function(p){return{from:qt(p.from().line,0),to:p.from()}})},delWrappedLineLeft:function(t){return Zo(t,function(p){var B=t.charCoords(p.head,"div").top+5,j=t.coordsChar({left:0,top:B},"div");return{from:j,to:p.from()}})},delWrappedLineRight:function(t){return Zo(t,function(p){var B=t.charCoords(p.head,"div").top+5,j=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:B},"div");return{from:p.from(),to:j}})},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(qt(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(qt(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy(function(p){return Cs(t,p.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy(function(p){return yl(t,p.head)},{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy(function(p){return Ws(t,p.head.line)},{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy(function(p){var B=t.cursorCoords(p.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:B},"div")},be)},goLineLeft:function(t){return t.extendSelectionsBy(function(p){var B=t.cursorCoords(p.head,"div").top+5;return t.coordsChar({left:0,top:B},"div")},be)},goLineLeftSmart:function(t){return t.extendSelectionsBy(function(p){var B=t.cursorCoords(p.head,"div").top+5,j=t.coordsChar({left:0,top:B},"div");return j.ch<t.getLine(j.line).search(/\S/)?yl(t,p.head):j},be)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"codepoint")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection(" ")},insertSoftTab:function(t){for(var p=[],B=t.listSelections(),j=t.options.tabSize,G=0;G<B.length;G++){var ne=B[G].from(),ge=K(t.getLine(ne.line),ne.ch,j);p.push(le(j-ge%j))}t.replaceSelections(p)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return fi(t,function(){for(var p=t.listSelections(),B=[],j=0;j<p.length;j++){if(!p[j].empty())continue;var G=p[j].head,ne=xn(t.doc,G.line).text;if(ne){if(G.ch==ne.length&&(G=new qt(G.line,G.ch-1)),G.ch>0)G=new qt(G.line,G.ch+1),t.replaceRange(ne.charAt(G.ch-1)+ne.charAt(G.ch-2),qt(G.line,G.ch-2),G,"+transpose");else if(G.line>t.doc.first){var ge=xn(t.doc,G.line-1).text;ge&&(G=new qt(G.line,1),t.replaceRange(ne.charAt(0)+t.doc.lineSeparator()+ge.charAt(ge.length-1),qt(G.line-1,ge.length-1),G,"+transpose"))}}B.push(new Pa(G,G))}t.setSelections(B)})},newlineAndIndent:function(t){return fi(t,function(){for(var p=t.listSelections(),B=p.length-1;B>=0;B--)t.replaceRange(t.doc.lineSeparator(),p[B].anchor,p[B].head,"+input");p=t.listSelections();for(var j=0;j<p.length;j++)t.indentLine(p[j].from().line,null,!0);Xi(t)})},openLine:function(t){return t.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function Cs(t,p){var B=xn(t.doc,p),j=an(B);return j!=B&&(p=nr(j)),Bs(!0,t,j,p,1)}function Ws(t,p){var B=xn(t.doc,p),j=Pn(B);return j!=B&&(p=nr(j)),Bs(!0,t,B,p,-1)}function yl(t,p){var B=Cs(t,p.line),j=xn(t.doc,B.line),G=yt(j,t.doc.direction);if(!G||G[0].level==0){var ne=Math.max(B.ch,j.text.search(/\S/)),ge=p.line==B.line&&p.ch<=ne&&p.ch;return qt(B.line,ge?0:ne,B.sticky)}return B}function Ss(t,p,B){if(typeof p=="string"&&(p=qo[p],!p))return!1;t.display.input.ensurePolled();var j=t.display.shift,G=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),B&&(t.display.shift=!1),G=p(t)!=Se}finally{t.display.shift=j,t.state.suppressEdits=!1}return G}function Kl(t,p,B){for(var j=0;j<t.state.keyMaps.length;j++){var G=_o(p,t.state.keyMaps[j],B,t);if(G)return G}return t.options.extraKeys&&_o(p,t.options.extraKeys,B,t)||_o(p,t.options.keyMap,B,t)}var Gl=new ee;function ss(t,p,B,j){var G=t.state.keySeq;if(G){if(is(p))return"handled";if(/\'$/.test(p)?t.state.keySeq=null:Gl.set(50,function(){t.state.keySeq==G&&(t.state.keySeq=null,t.display.input.reset())}),Hs(t,G+" "+p,B,j))return!0}return Hs(t,p,B,j)}function Hs(t,p,B,j){var G=Kl(t,p,j);return G=="multi"&&(t.state.keySeq=p),G=="handled"&&Jt(t,"keyHandled",t,p,B),(G=="handled"||G=="multi")&&(Ce(B),Za(t)),!!G}function El(t,p){var B=xs(p,!0);return B?p.shiftKey&&!t.state.keySeq?ss(t,"Shift-"+B,p,function(j){return Ss(t,j,!0)})||ss(t,B,p,function(j){if(typeof j=="string"?/^go[A-Z]/.test(j):j.motion)return Ss(t,j)}):ss(t,B,p,function(j){return Ss(t,j)}):!1}function zl(t,p,B){return ss(t,"'"+B+"'",p,function(j){return Ss(t,j,!0)})}var Ks=null;function xl(t){var p=this;if(t.target&&t.target!=p.display.input.getField())return;if(p.curOp.focus=V(),Pt(p,t))return;O&&m<11&&t.keyCode==27&&(t.returnValue=!1);var B=t.keyCode;p.display.shift=B==16||t.shiftKey;var j=El(p,t);u&&(Ks=j?B:null,!j&&B==88&&!at&&(s?t.metaKey:t.ctrlKey)&&p.replaceSelection("",null,"cut")),T&&!s&&!j&&B==46&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),B==18&&!/\bCodeMirror-crosshair\b/.test(p.display.lineDiv.className)&&Vl(p)}function Vl(t){var p=t.display.lineDiv;H(p,"CodeMirror-crosshair");function B(j){(j.keyCode==18||!j.altKey)&&(C(p,"CodeMirror-crosshair"),jt(document,"keyup",B),jt(document,"mouseover",B))}Ue(document,"keyup",B),Ue(document,"mouseover",B)}function Cl(t){t.keyCode==16&&(this.doc.sel.shift=!1),Pt(this,t)}function Sl(t){var p=this;if(t.target&&t.target!=p.display.input.getField())return;if(Ta(p.display,t)||Pt(p,t)||t.ctrlKey&&!t.altKey||s&&t.metaKey)return;var B=t.keyCode,j=t.charCode;if(u&&B==Ks){Ks=null,Ce(t);return}if(u&&(!t.which||t.which<10)&&El(p,t))return;var G=String.fromCharCode(j==null?B:j);if(G=="\b")return;if(zl(p,t,G))return;p.display.input.onKeyPress(t)}var Xl=400,Gs=function(t,p,B){this.time=t,this.pos=p,this.button=B};Gs.prototype.compare=function(t,p,B){return this.time+Xl>t&&On(p,this.pos)==0&&B==this.button};var ls,us;function Yl(t,p){var B=+new Date;return us&&us.compare(B,t,p)?(ls=us=null,"triple"):ls&&ls.compare(B,t,p)?(us=new Gs(B,t,p),ls=null,"double"):(ls=new Gs(B,t,p),us=null,"single")}function zs(t){var p=this,B=p.display;if(Pt(p,t)||B.activeTouch&&B.input.supportsTouch())return;if(B.input.ensurePolled(),B.shift=t.shiftKey,Ta(B,t)){e||(B.scroller.draggable=!1,setTimeout(function(){return B.scroller.draggable=!0},100));return}if(Xs(p,t))return;var j=Oa(p,t),G=st(t),ne=j?Yl(j,G):"single";if(window.focus(),G==1&&p.state.selectingText&&p.state.selectingText(t),j&&wl(p,G,j,ne,t))return;G==1?j?Ql(p,j,ne,t):We(t)==B.scroller&&Ce(t):G==2?(j&&_s(p.doc,j),setTimeout(function(){return B.input.focus()},20)):G==3&&(R?p.display.input.onContextMenu(t):Mo(p))}function wl(t,p,B,j,G){var ne="Click";return j=="double"?ne="Double"+ne:j=="triple"&&(ne="Triple"+ne),ne=(p==1?"Left":p==2?"Middle":"Right")+ne,ss(t,bl(ne,G),G,function(ge){if(typeof ge=="string"&&(ge=qo[ge]),!ge)return!1;var we=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),we=ge(t,B)!=Se}finally{t.state.suppressEdits=!1}return we})}function Jl(t,p,B){var j=t.getOption("configureMouse"),G=j?j(t,p,B):{};if(G.unit==null){var ne=c?B.shiftKey&&B.metaKey:B.altKey;G.unit=ne?"rectangle":p=="single"?"char":p=="double"?"word":"line"}return(G.extend==null||t.doc.extend)&&(G.extend=t.doc.extend||B.shiftKey),G.addNew==null&&(G.addNew=s?B.metaKey:B.ctrlKey),G.moveOnDrag==null&&(G.moveOnDrag=!(s?B.altKey:B.ctrlKey)),G}function Ql(t,p,B,j){O?setTimeout(F(to,t),0):t.curOp.focus=V();var G=Jl(t,B,j),ne=t.doc.sel,ge;t.options.dragDrop&&Dt&&!t.isReadOnly()&&B=="single"&&(ge=ne.contains(p))>-1&&(On((ge=ne.ranges[ge]).from(),p)<0||p.xRel>0)&&(On(ge.to(),p)>0||p.xRel<0)?Zl(t,j,p,G):ql(t,j,p,G)}function Zl(t,p,B,j){var G=t.display,ne=!1,ge=Ha(t,function(je){e&&(G.scroller.draggable=!1),t.state.draggingText=!1,jt(G.wrapper.ownerDocument,"mouseup",ge),jt(G.wrapper.ownerDocument,"mousemove",we),jt(G.scroller,"dragstart",Re),jt(G.scroller,"drop",ge),ne||(Ce(je),j.addNew||_s(t.doc,B,null,null,j.extend),e&&!r||O&&m==9?setTimeout(function(){G.wrapper.ownerDocument.body.focus({preventScroll:!0}),G.input.focus()},20):G.input.focus())}),we=function(je){ne=ne||Math.abs(p.clientX-je.clientX)+Math.abs(p.clientY-je.clientY)>=10},Re=function(){return ne=!0};e&&(G.scroller.draggable=!0),t.state.draggingText=ge,ge.copy=!j.moveOnDrag,G.scroller.dragDrop&&G.scroller.dragDrop(),Ue(G.wrapper.ownerDocument,"mouseup",ge),Ue(G.wrapper.ownerDocument,"mousemove",we),Ue(G.scroller,"dragstart",Re),Ue(G.scroller,"drop",ge),Mo(t),setTimeout(function(){return G.input.focus()},20)}function Vs(t,p,B){if(B=="char")return new Pa(p,p);if(B=="word")return t.findWordAt(p);if(B=="line")return new Pa(qt(p.line,0),X(t.doc,qt(p.line+1,0)));var j=B(t,p);return new Pa(j.from,j.to)}function ql(t,p,B,j){var G=t.display,ne=t.doc;Ce(p);var ge,we,Re=ne.sel,je=Re.ranges;if(j.addNew&&!j.extend?(we=ne.sel.contains(B),we>-1?ge=je[we]:ge=new Pa(B,B)):(ge=ne.sel.primary(),we=ne.sel.primIndex),j.unit=="rectangle")j.addNew||(ge=new Pa(B,B)),B=Oa(t,p,!0,!0),we=-1;else{var gt=Vs(t,B,j.unit);j.extend?ge=vs(ge,gt.anchor,gt.head,j.extend):ge=gt}j.addNew?we==-1?(we=je.length,gi(ne,sa(t,je.concat([ge]),we),{scroll:!1,origin:"*mouse"})):je.length>1&&je[we].empty()&&j.unit=="char"&&!j.extend?(gi(ne,sa(t,je.slice(0,we).concat(je.slice(we+1)),0),{scroll:!1,origin:"*mouse"}),Re=ne.sel):Ao(ne,we,ge,ce):(we=0,gi(ne,new hi([ge],0),ce),Re=ne.sel);var At=B;function tn(Er){if(On(At,Er)==0)return;if(At=Er,j.unit=="rectangle"){for(var Xr=[],ia=t.options.tabSize,ea=K(xn(ne,B.line).text,B.ch,ia),Sa=K(xn(ne,Er.line).text,Er.ch,ia),Va=Math.min(ea,Sa),vi=Math.max(ea,Sa),ti=Math.min(B.line,Er.line),zi=Math.min(t.lastLine(),Math.max(B.line,Er.line));ti<=zi;ti++){var Ui=xn(ne,ti).text,ci=Ee(Ui,Va,ia);Va==vi?Xr.push(new Pa(qt(ti,ci),qt(ti,ci))):Ui.length>ci&&Xr.push(new Pa(qt(ti,ci),qt(ti,Ee(Ui,vi,ia))))}Xr.length||Xr.push(new Pa(B,B)),gi(ne,sa(t,Re.ranges.slice(0,we).concat(Xr),we),{origin:"*mouse",scroll:!1}),t.scrollIntoView(Er)}else{var ji=ge,Ci=Vs(t,Er,j.unit),pi=ji.anchor,di;On(Ci.anchor,pi)>0?(di=Ci.head,pi=dr(ji.from(),Ci.anchor)):(di=Ci.anchor,pi=xr(ji.to(),Ci.head));var ii=Re.ranges.slice(0);ii[we]=$l(t,new Pa(X(ne,pi),di)),gi(ne,sa(t,ii,we),ce)}}var zt=G.wrapper.getBoundingClientRect(),Tn=0;function Bn(Er){var Xr=++Tn,ia=Oa(t,Er,!0,j.unit=="rectangle");if(!ia)return;if(On(ia,At)!=0){t.curOp.focus=V(),tn(ia);var ea=uo(G,ne);(ia.line>=ea.to||ia.line<ea.from)&&setTimeout(Ha(t,function(){Tn==Xr&&Bn(Er)}),150)}else{var Sa=Er.clientY<zt.top?-20:Er.clientY>zt.bottom?20:0;Sa&&setTimeout(Ha(t,function(){if(Tn!=Xr)return;G.scroller.scrollTop+=Sa,Bn(Er)}),50)}}function Zn(Er){t.state.selectingText=!1,Tn=Infinity,Er&&(Ce(Er),G.input.focus()),jt(G.wrapper.ownerDocument,"mousemove",yr),jt(G.wrapper.ownerDocument,"mouseup",Ur),ne.history.lastSelOrigin=null}var yr=Ha(t,function(Er){Er.buttons===0||!st(Er)?Zn(Er):Bn(Er)}),Ur=Ha(t,Zn);t.state.selectingText=Ur,Ue(G.wrapper.ownerDocument,"mousemove",yr),Ue(G.wrapper.ownerDocument,"mouseup",Ur)}function $l(t,p){var B=p.anchor,j=p.head,G=xn(t.doc,B.line);if(On(B,j)==0&&B.sticky==j.sticky)return p;var ne=yt(G);if(!ne)return p;var ge=mt(ne,B.ch,B.sticky),we=ne[ge];if(we.from!=B.ch&&we.to!=B.ch)return p;var Re=ge+(we.from==B.ch==(we.level!=1)?0:1);if(Re==0||Re==ne.length)return p;var je;if(j.line!=B.line)je=(j.line-B.line)*(t.doc.direction=="ltr"?1:-1)>0;else{var gt=mt(ne,j.ch,j.sticky),At=gt-ge||(j.ch-B.ch)*(we.level==1?-1:1);gt==Re-1||gt==Re?je=At<0:je=At>0}var tn=ne[Re+(je?-1:0)],zt=je==(tn.level==1),Tn=zt?tn.from:tn.to,Bn=zt?"after":"before";return B.ch==Tn&&B.sticky==Bn?p:new Pa(new qt(B.line,Tn,Bn),j)}function Tl(t,p,B,j){var G,ne;if(p.touches)G=p.touches[0].clientX,ne=p.touches[0].clientY;else try{G=p.clientX,ne=p.clientY}catch(tn){return!1}if(G>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;j&&Ce(p);var ge=t.display,we=ge.lineDiv.getBoundingClientRect();if(ne>we.bottom||!He(t,B))return Fe(p);ne-=we.top-ge.viewOffset;for(var Re=0;Re<t.display.gutterSpecs.length;++Re){var je=ge.gutters.childNodes[Re];if(je&&je.getBoundingClientRect().right>=G){var gt=Rr(t.doc,ne),At=t.display.gutterSpecs[Re];return bt(t,B,t,gt,At.className,p),Fe(p)}}}function Xs(t,p){return Tl(t,p,"gutterClick",!0)}function Ol(t,p){if(Ta(t.display,p)||Al(t,p))return;if(Pt(t,p,"contextmenu"))return;R||t.display.input.onContextMenu(p)}function Al(t,p){return He(t,"gutterContextMenu")?Tl(t,p,"gutterContextMenu",!1):!1}function Dl(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),jr(t)}var $o={toString:function(){return"CodeMirror.Init"}},ws={},cs={};function eu(t){var p=t.optionHandlers;function B(j,G,ne,ge){t.defaults[j]=G,ne&&(p[j]=ge?function(we,Re,je){je!=$o&&ne(we,Re,je)}:ne)}t.defineOption=B,t.Init=$o,B("value","",function(j,G){return j.setValue(G)},!0),B("mode",null,function(j,G){j.doc.modeOption=G,$a(j)},!0),B("indentUnit",2,$a,!0),B("indentWithTabs",!1),B("smartIndent",!0),B("tabSize",4,function(j){xi(j),jr(j),ka(j)},!0),B("lineSeparator",null,function(j,G){if(j.doc.lineSep=G,!G)return;var ne=[],ge=j.doc.first;j.doc.iter(function(Re){for(var je=0;;){var gt=Re.text.indexOf(G,je);if(gt==-1)break;je=gt+G.length,ne.push(qt(ge,gt))}ge++});for(var we=ne.length-1;we>=0;we--)Xo(j.doc,G,ne[we],qt(ne[we].line,ne[we].ch+G.length))}),B("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(j,G,ne){j.state.specialChars=new RegExp(G.source+(G.test(" ")?"":"| "),"g"),ne!=$o&&j.refresh()}),B("specialCharPlaceholder",or,function(j){return j.refresh()},!0),B("electricChars",!0),B("inputStyle",d?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),B("spellcheck",!1,function(j,G){return j.getInputField().spellcheck=G},!0),B("autocorrect",!1,function(j,G){return j.getInputField().autocorrect=G},!0),B("autocapitalize",!1,function(j,G){return j.getInputField().autocapitalize=G},!0),B("rtlMoveVisually",!w),B("wholeLineUpdateBefore",!0),B("theme","default",function(j){Dl(j),ki(j)},!0),B("keyMap","default",function(j,G,ne){var ge=os(G),we=ne!=$o&&os(ne);we&&we.detach&&we.detach(j,ge),ge.attach&&ge.attach(j,we||null)}),B("extraKeys",null),B("configureMouse",null),B("lineWrapping",!1,nu,!0),B("gutters",[],function(j,G){j.display.gutterSpecs=ui(G,j.options.lineNumbers),ki(j)},!0),B("fixedGutter",!0,function(j,G){j.display.gutters.style.left=G?pa(j.display)+"px":"0",j.refresh()},!0),B("coverGutterNextToScrollbar",!1,function(j){return Ri(j)},!0),B("scrollbarStyle","native",function(j){Co(j),Ri(j),j.display.scrollbars.setScrollTop(j.doc.scrollTop),j.display.scrollbars.setScrollLeft(j.doc.scrollLeft)},!0),B("lineNumbers",!1,function(j,G){j.display.gutterSpecs=ui(j.options.gutters,G),ki(j)},!0),B("firstLineNumber",1,ki,!0),B("lineNumberFormatter",function(j){return j},ki,!0),B("showCursorWhenSelecting",!1,Na,!0),B("resetSelectionOnContextMenu",!0),B("lineWiseCopyCut",!0),B("pasteLinesPerSelection",!0),B("selectionsMayTouch",!1),B("readOnly",!1,function(j,G){G=="nocursor"&&(no(j),j.display.input.blur()),j.display.input.readOnlyChanged(G)}),B("screenReaderLabel",null,function(j,G){G=G===""?null:G,j.display.input.screenReaderLabelChanged(G)}),B("disableInput",!1,function(j,G){G||j.display.input.reset()},!0),B("dragDrop",!0,tu),B("allowDropFileTypes",null),B("cursorBlinkRate",530),B("cursorScrollMargin",0),B("cursorHeight",1,Na,!0),B("singleCursorHeightPerLine",!0,Na,!0),B("workTime",100),B("workDelay",100),B("flattenSpans",!0,xi,!0),B("addModeClass",!1,xi,!0),B("pollInterval",100),B("undoDepth",200,function(j,G){return j.doc.history.undoDepth=G}),B("historyEventDelay",1250),B("viewportMargin",10,function(j){return j.refresh()},!0),B("maxHighlightLength",1e4,xi,!0),B("moveInputWithCursor",!0,function(j,G){G||j.display.input.resetPosition()}),B("tabindex",null,function(j,G){return j.display.input.getField().tabIndex=G||""}),B("autofocus",null),B("direction","ltr",function(j,G){return j.doc.setDirection(G)},!0),B("phrases",null)}function tu(t,p,B){var j=B&&B!=$o;if(!p!=!j){var G=t.display.dragFunctions,ne=p?Ue:jt;ne(t.display.scroller,"dragstart",G.start),ne(t.display.scroller,"dragenter",G.enter),ne(t.display.scroller,"dragover",G.over),ne(t.display.scroller,"dragleave",G.leave),ne(t.display.scroller,"drop",G.drop)}}function nu(t){t.options.lineWrapping?(H(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(C(t.display.wrapper,"CodeMirror-wrap"),Yt(t)),ba(t),ka(t),jr(t),setTimeout(function(){return Ri(t)},100)}function Ya(t,p){var B=this;if(!(this instanceof Ya))return new Ya(t,p);this.options=p=p?I(p):{},I(ws,p,!1);var j=p.value;typeof j=="string"?j=new Ti(j,p.mode,null,p.lineSeparator,p.direction):p.mode&&(j.modeOption=p.mode),this.doc=j;var G=new Ya.inputStyles[p.inputStyle](this),ne=this.display=new ho(t,j,G,p);ne.wrapper.CodeMirror=this,Dl(this),p.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 ee,keySeq:null,specialChars:null},p.autofocus&&!d&&ne.input.focus(),O&&m<11&&setTimeout(function(){return B.display.input.reset(!0)},20),Rl(this),ou(),Ni(this),this.curOp.forceUpdate=!0,As(this,j),p.autofocus&&!d||this.hasFocus()?setTimeout(function(){B.hasFocus()&&!B.state.focused&&Ii(B)},20):no(this);for(var ge in cs)cs.hasOwnProperty(ge)&&cs[ge](this,p[ge],$o);Ga(this),p.finishInit&&p.finishInit(this);for(var we=0;we<Y.length;++we)Y[we](this);qi(this),e&&p.lineWrapping&&getComputedStyle(ne.lineDiv).textRendering=="optimizelegibility"&&(ne.lineDiv.style.textRendering="auto")}Ya.defaults=ws,Ya.optionHandlers=cs;function Rl(t){var p=t.display;Ue(p.scroller,"mousedown",Ha(t,zs)),O&&m<11?Ue(p.scroller,"dblclick",Ha(t,function(Re){if(Pt(t,Re))return;var je=Oa(t,Re);if(!je||Xs(t,Re)||Ta(t.display,Re))return;Ce(Re);var gt=t.findWordAt(je);_s(t.doc,gt.anchor,gt.head)})):Ue(p.scroller,"dblclick",function(Re){return Pt(t,Re)||Ce(Re)}),Ue(p.scroller,"contextmenu",function(Re){return Ol(t,Re)}),Ue(p.input.getField(),"contextmenu",function(Re){p.scroller.contains(Re.target)||Ol(t,Re)});var B,j={end:0};function G(){p.activeTouch&&(B=setTimeout(function(){return p.activeTouch=null},1e3),j=p.activeTouch,j.end=+new Date)}function ne(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 gt=je.left-Re.left,At=je.top-Re.top;return gt*gt+At*At>20*20}Ue(p.scroller,"touchstart",function(Re){if(!Pt(t,Re)&&!ne(Re)&&!Xs(t,Re)){p.input.ensurePolled(),clearTimeout(B);var je=+new Date;p.activeTouch={start:je,moved:!1,prev:je-j.end<=300?j:null},Re.touches.length==1&&(p.activeTouch.left=Re.touches[0].pageX,p.activeTouch.top=Re.touches[0].pageY)}}),Ue(p.scroller,"touchmove",function(){p.activeTouch&&(p.activeTouch.moved=!0)}),Ue(p.scroller,"touchend",function(Re){var je=p.activeTouch;if(je&&!Ta(p,Re)&&je.left!=null&&!je.moved&&new Date-je.start<300){var gt=t.coordsChar(p.activeTouch,"page"),At;!je.prev||ge(je,je.prev)?At=new Pa(gt,gt):!je.prev.prev||ge(je,je.prev.prev)?At=t.findWordAt(gt):At=new Pa(qt(gt.line,0),X(t.doc,qt(gt.line+1,0))),t.setSelection(At.anchor,At.head),t.focus(),Ce(Re)}G()}),Ue(p.scroller,"touchcancel",G),Ue(p.scroller,"scroll",function(){p.scroller.clientHeight&&(Ji(t,p.scroller.scrollTop),ei(t,p.scroller.scrollLeft,!0),bt(t,"scroll",t))}),Ue(p.scroller,"mousewheel",function(Re){return mo(t,Re)}),Ue(p.scroller,"DOMMouseScroll",function(Re){return mo(t,Re)}),Ue(p.wrapper,"scroll",function(){return p.wrapper.scrollTop=p.wrapper.scrollLeft=0}),p.dragFunctions={enter:function(Re){Pt(t,Re)||Be(Re)},over:function(Re){Pt(t,Re)||(Fl(t,Re),Be(Re))},start:function(Re){return gl(t,Re)},drop:Ha(t,Bl),leave:function(Re){Pt(t,Re)||Ls(t)}};var we=p.input.getField();Ue(we,"keyup",function(Re){return Cl.call(t,Re)}),Ue(we,"keydown",Ha(t,xl)),Ue(we,"keypress",Ha(t,Sl)),Ue(we,"focus",function(Re){return Ii(t,Re)}),Ue(we,"blur",function(Re){return no(t,Re)})}var Y=[];Ya.defineInitHook=function(t){return Y.push(t)};function Z(t,p,B,j){var G=t.doc,ne;B==null&&(B="add"),B=="smart"&&(G.mode.indent?ne=Mn(t,p).state:B="prev");var ge=t.options.tabSize,we=xn(G,p),Re=K(we.text,null,ge);we.stateAfter&&(we.stateAfter=null);var je=we.text.match(/^\s*/)[0],gt;if(!j&&!/\S/.test(we.text))gt=0,B="not";else if(B=="smart"&&(gt=G.mode.indent(ne,we.text.slice(je.length),we.text),gt==Se||gt>150)){if(!j)return;B="prev"}B=="prev"?p>G.first?gt=K(xn(G,p-1).text,null,ge):gt=0:B=="add"?gt=Re+t.options.indentUnit:B=="subtract"?gt=Re-t.options.indentUnit:typeof B=="number"&&(gt=Re+B),gt=Math.max(0,gt);var At="",tn=0;if(t.options.indentWithTabs)for(var zt=Math.floor(gt/ge);zt;--zt)tn+=ge,At+=" ";if(tn<gt&&(At+=le(gt-tn)),At!=je)return Xo(G,At,qt(p,0),qt(p,je.length),"+input"),we.stateAfter=null,!0;for(var Tn=0;Tn<G.sel.ranges.length;Tn++){var Bn=G.sel.ranges[Tn];if(Bn.head.line==p&&Bn.head.ch<je.length){var Zn=qt(p,je.length);Ao(G,Tn,new Pa(Zn,Zn));break}}}var ie=null;function ye(t){ie=t}function Ne(t,p,B,j,G){var ne=t.doc;t.display.shift=!1,j||(j=ne.sel);var ge=+new Date-200,we=G=="paste"||t.state.pasteIncoming>ge,Re=Ke(p),je=null;if(we&&j.ranges.length>1)if(ie&&ie.text.join(`
|
|
|
`)==p){if(j.ranges.length%ie.text.length==0){je=[];for(var gt=0;gt<ie.text.length;gt++)je.push(ne.splitLines(ie.text[gt]))}}else Re.length==j.ranges.length&&t.options.pasteLinesPerSelection&&(je=me(Re,function(yr){return[yr]}));for(var At=t.curOp.updateInput,tn=j.ranges.length-1;tn>=0;tn--){var zt=j.ranges[tn],Tn=zt.from(),Bn=zt.to();zt.empty()&&(B&&B>0?Tn=qt(Tn.line,Tn.ch-B):t.state.overwrite&&!we?Bn=qt(Bn.line,Math.min(xn(ne,Bn.line).text.length,Bn.ch+$(Re).length)):we&&ie&&ie.lineWise&&ie.text.join(`
|
|
|
`)==Re.join(`
|
|
|
`)&&(Tn=Bn=qt(Tn.line,0)));var Zn={from:Tn,to:Bn,text:je?je[tn%je.length]:Re,origin:G||(we?"paste":t.state.cutIncoming>ge?"cut":"+input")};zo(t.doc,Zn),Jt(t,"inputRead",t,Zn)}p&&!we&&ze(t,p),Xi(t),t.curOp.updateInput<2&&(t.curOp.updateInput=At),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function ke(t,p){var B=t.clipboardData&&t.clipboardData.getData("Text");if(B)return t.preventDefault(),!p.isReadOnly()&&!p.options.disableInput&&fi(p,function(){return Ne(p,B,0,null,"paste")}),!0}function ze(t,p){if(!t.options.electricChars||!t.options.smartIndent)return;for(var B=t.doc.sel,j=B.ranges.length-1;j>=0;j--){var G=B.ranges[j];if(G.head.ch>100||j&&B.ranges[j-1].head.line==G.head.line)continue;var ne=t.getModeAt(G.head),ge=!1;if(ne.electricChars){for(var we=0;we<ne.electricChars.length;we++)if(p.indexOf(ne.electricChars.charAt(we))>-1){ge=Z(t,G.head.line,"smart");break}}else ne.electricInput&&(ne.electricInput.test(xn(t.doc,G.head.line).text.slice(0,G.head.ch))&&(ge=Z(t,G.head.line,"smart")));ge&&Jt(t,"electricInput",t,G.head.line)}}function Ve(t){for(var p=[],B=[],j=0;j<t.doc.sel.ranges.length;j++){var G=t.doc.sel.ranges[j].head.line,ne={anchor:qt(G,0),head:qt(G+1,0)};B.push(ne),p.push(t.getRange(ne.anchor,ne.head))}return{text:p,ranges:B}}function xt(t,p,B,j){t.setAttribute("autocorrect",B?"":"off"),t.setAttribute("autocapitalize",j?"":"off"),t.setAttribute("spellcheck",!!p)}function Ut(){var t=A("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),p=A("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return e?t.style.width="1000px":t.setAttribute("wrap","off"),l&&(t.style.border="1px solid black"),xt(t),p}function Wt(t){var p=t.optionHandlers,B=t.helpers={};t.prototype={constructor:t,focus:function(){window.focus(),this.display.input.focus()},setOption:function(j,G){var ne=this.options,ge=ne[j];if(ne[j]==G&&j!="mode")return;ne[j]=G,p.hasOwnProperty(j)&&Ha(this,p[j])(this,G,ge),bt(this,"optionChange",this,j)},getOption:function(j){return this.options[j]},getDoc:function(){return this.doc},addKeyMap:function(j,G){this.state.keyMaps[G?"push":"unshift"](os(j))},removeKeyMap:function(j){for(var G=this.state.keyMaps,ne=0;ne<G.length;++ne)if(G[ne]==j||G[ne].name==j)return G.splice(ne,1),!0},addOverlay:ri(function(j,G){var ne=j.token?j:t.getMode(this.options,j);if(ne.startState)throw new Error("Overlays may not be stateful.");re(this.state.overlays,{mode:ne,modeSpec:j,opaque:G&&G.opaque,priority:G&&G.priority||0},function(ge){return ge.priority}),this.state.modeGen++,ka(this)}),removeOverlay:ri(function(j){for(var G=this.state.overlays,ne=0;ne<G.length;++ne){var ge=G[ne].modeSpec;if(ge==j||typeof j=="string"&&ge.name==j){G.splice(ne,1),this.state.modeGen++,ka(this);return}}}),indentLine:ri(function(j,G,ne){typeof G!="string"&&typeof G!="number"&&(G==null?G=this.options.smartIndent?"smart":"prev":G=G?"add":"subtract"),pr(this.doc,j)&&Z(this,j,G,ne)}),indentSelection:ri(function(j){for(var G=this.doc.sel.ranges,ne=-1,ge=0;ge<G.length;ge++){var we=G[ge];if(we.empty())we.head.line>ne&&(Z(this,we.head.line,j,!0),ne=we.head.line,ge==this.doc.sel.primIndex&&Xi(this));else{var Re=we.from(),je=we.to(),gt=Math.max(ne,Re.line);ne=Math.min(this.lastLine(),je.line-(je.ch?0:1))+1;for(var At=gt;At<ne;++At)Z(this,At,j);var tn=this.doc.sel.ranges;Re.ch==0&&G.length==tn.length&&tn[ge].from().ch>0&&Ao(this.doc,ge,new Pa(Re,tn[ge].to()),Te)}}}),getTokenAt:function(j,G){return Ar(this,j,G)},getLineTokens:function(j,G){return Ar(this,qt(j),G,!0)},getTokenTypeAt:function(j){j=X(this.doc,j);var G=Qt(this,xn(this.doc,j.line)),ne=0,ge=(G.length-1)/2,we=j.ch,Re;if(we==0)Re=G[2];else for(;;){var je=ne+ge>>1;if((je?G[je*2-1]:0)>=we)ge=je;else if(G[je*2+1]<we)ne=je+1;else{Re=G[je*2+2];break}}var gt=Re?Re.indexOf("overlay "):-1;return gt<0?Re:gt==0?null:Re.slice(0,gt-1)},getModeAt:function(j){var G=this.doc.mode;return G.innerMode?t.innerMode(G,this.getTokenAt(j).state).mode:G},getHelper:function(j,G){return this.getHelpers(j,G)[0]},getHelpers:function(j,G){var ne=[];if(!B.hasOwnProperty(G))return ne;var ge=B[G],we=this.getModeAt(j);if(typeof we[G]=="string")ge[we[G]]&&ne.push(ge[we[G]]);else if(we[G])for(var Re=0;Re<we[G].length;Re++){var je=ge[we[G][Re]];je&&ne.push(je)}else we.helperType&&ge[we.helperType]?ne.push(ge[we.helperType]):ge[we.name]&&ne.push(ge[we.name]);for(var gt=0;gt<ge._global.length;gt++){var At=ge._global[gt];At.pred(we,this)&&he(ne,At.val)==-1&&ne.push(At.val)}return ne},getStateAfter:function(j,G){var ne=this.doc;return j=pe(ne,j==null?ne.first+ne.size-1:j),Mn(this,j+1,G).state},cursorCoords:function(j,G){var ne,ge=this.doc.sel.primary();return j==null?ne=ge.head:typeof j=="object"?ne=X(this.doc,j):ne=j?ge.from():ge.to(),Gn(this,ne,G||"page")},charCoords:function(j,G){return wr(this,X(this.doc,j),G||"page")},coordsChar:function(j,G){return j=Kn(this,j,G||"page"),Vr(this,j.left,j.top)},lineAtHeight:function(j,G){return j=Kn(this,{top:j,left:0},G||"page").top,Rr(this.doc,j+this.display.viewOffset)},heightAtLine:function(j,G,ne){var ge=!1,we;if(typeof j=="number"){var Re=this.doc.first+this.doc.size-1;j<this.doc.first?j=this.doc.first:j>Re&&(j=Re,ge=!0),we=xn(this.doc,j)}else we=j;return ta(this,we,{top:0,left:0},G||"page",ne||ge).top+(ge?this.doc.height-Br(we):0)},defaultTextHeight:function(){return br(this.display)},defaultCharWidth:function(){return Ir(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(j,G,ne,ge,we){var Re=this.display;j=Gn(this,X(this.doc,j));var je=j.bottom,gt=j.left;if(G.style.position="absolute",G.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(G),Re.sizer.appendChild(G),ge=="over")je=j.top;else if(ge=="above"||ge=="near"){var At=Math.max(Re.wrapper.clientHeight,this.doc.height),tn=Math.max(Re.sizer.clientWidth,Re.lineSpace.clientWidth);(ge=="above"||j.bottom+G.offsetHeight>At)&&j.top>G.offsetHeight?je=j.top-G.offsetHeight:j.bottom+G.offsetHeight<=At&&(je=j.bottom),gt+G.offsetWidth>tn&&(gt=tn-G.offsetWidth)}G.style.top=je+"px",G.style.left=G.style.right="",we=="right"?(gt=Re.sizer.clientWidth-G.offsetWidth,G.style.right="0px"):(we=="left"?gt=0:we=="middle"&&(gt=(Re.sizer.clientWidth-G.offsetWidth)/2),G.style.left=gt+"px"),ne&&bo(this,{left:gt,top:je,right:gt+G.offsetWidth,bottom:je+G.offsetHeight})},triggerOnKeyDown:ri(xl),triggerOnKeyPress:ri(Sl),triggerOnKeyUp:Cl,triggerOnMouseDown:ri(zs),execCommand:function(j){if(qo.hasOwnProperty(j))return qo[j].call(null,this)},triggerElectric:ri(function(j){ze(this,j)}),findPosH:function(j,G,ne,ge){var we=1;G<0&&(we=-1,G=-G);for(var Re=X(this.doc,j),je=0;je<G&&!(Re=Tt(this.doc,Re,we,ne,ge),Re.hitSide);++je);return Re},moveH:ri(function(j,G){var ne=this;this.extendSelectionsBy(function(ge){return ne.display.shift||ne.doc.extend||ge.empty()?Tt(ne.doc,ge.head,j,G,ne.options.rtlMoveVisually):j<0?ge.from():ge.to()},be)}),deleteH:ri(function(j,G){var ne=this.doc.sel,ge=this.doc;ne.somethingSelected()?ge.replaceSelection("",null,"+delete"):Zo(this,function(we){var Re=Tt(ge,we.head,j,G,!1);return j<0?{from:Re,to:we.head}:{from:we.head,to:Re}})}),findPosV:function(j,G,ne,ge){var we=1,Re=ge;G<0&&(we=-1,G=-G);for(var je=X(this.doc,j),gt=0;gt<G;++gt){var At=Gn(this,je,"div");if(Re==null?Re=At.left:At.left=Re,je=St(this,At,we,ne),je.hitSide)break}return je},moveV:ri(function(j,G){var ne=this,ge=this.doc,we=[],Re=!this.display.shift&&!ge.extend&&ge.sel.somethingSelected();if(ge.extendSelectionsBy(function(gt){if(Re)return j<0?gt.from():gt.to();var At=Gn(ne,gt.head,"div");gt.goalColumn!=null&&(At.left=gt.goalColumn),we.push(At.left);var tn=St(ne,At,j,G);return G=="page"&>==ge.sel.primary()&&co(ne,wr(ne,tn,"div").top-At.top),tn},be),we.length)for(var je=0;je<ge.sel.ranges.length;je++)ge.sel.ranges[je].goalColumn=we[je]}),findWordAt:function(j){var G=this.doc,ne=xn(G,j.line).text,ge=j.ch,we=j.ch;if(ne){var Re=this.getHelper(j,"wordChars");(j.sticky=="before"||we==ne.length)&&ge?--ge:++we;for(var je=ne.charAt(ge),gt=Q(je,Re)?function(At){return Q(At,Re)}:/\s/.test(je)?function(At){return/\s/.test(At)}:function(At){return!/\s/.test(At)&&!Q(At)};ge>0&>(ne.charAt(ge-1));)--ge;for(;we<ne.length&>(ne.charAt(we));)++we}return new Pa(qt(j.line,ge),qt(j.line,we))},toggleOverwrite:function(j){if(j!=null&&j==this.state.overwrite)return;(this.state.overwrite=!this.state.overwrite)?H(this.display.cursorDiv,"CodeMirror-overwrite"):C(this.display.cursorDiv,"CodeMirror-overwrite"),bt(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==V()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:ri(function(j,G){Yi(this,j,G)}),getScrollInfo:function(){var j=this.display.scroller;return{left:j.scrollLeft,top:j.scrollTop,height:j.scrollHeight-_t(this)-this.display.barHeight,width:j.scrollWidth-_t(this)-this.display.barWidth,clientHeight:Me(this),clientWidth:nt(this)}},scrollIntoView:ri(function(j,G){j==null?(j={from:this.doc.sel.primary().head,to:null},G==null&&(G=this.options.cursorScrollMargin)):typeof j=="number"?j={from:qt(j,0),to:null}:j.from==null&&(j={from:j,to:null}),j.to||(j.to=j.from),j.margin=G||0,j.from.line!=null?No(this,j):ao(this,j.from,j.to,j.margin)}),setSize:ri(function(j,G){var ne=this,ge=function(Re){return typeof Re=="number"||/^\d+$/.test(String(Re))?Re+"px":Re};j!=null&&(this.display.wrapper.style.width=ge(j)),G!=null&&(this.display.wrapper.style.height=ge(G)),this.options.lineWrapping&&Cn(this);var we=this.display.viewFrom;this.doc.iter(we,this.display.viewTo,function(Re){if(Re.widgets){for(var je=0;je<Re.widgets.length;je++)if(Re.widgets[je].noHScroll){Ua(ne,we,"widget");break}}++we}),this.curOp.forceUpdate=!0,bt(this,"refresh",this)}),operation:function(j){return fi(this,j)},startOperation:function(){return Ni(this)},endOperation:function(){return qi(this)},refresh:ri(function(){var j=this.display.cachedTextHeight;ka(this),this.curOp.forceUpdate=!0,jr(this),Yi(this,this.doc.scrollLeft,this.doc.scrollTop),lo(this.display),(j==null||Math.abs(j-br(this.display))>.5||this.options.lineWrapping)&&ba(this),bt(this,"refresh",this)}),swapDoc:ri(function(j){var G=this.doc;return G.cm=null,this.state.selectingText&&this.state.selectingText(),As(this,j),jr(this),this.display.input.reset(),Yi(this,j.scrollLeft,j.scrollTop),this.curOp.forceScroll=!0,Jt(this,"swapDoc",this,G),G}),phrase:function(j){var G=this.options.phrases;return G&&Object.prototype.hasOwnProperty.call(G,j)?G[j]:j},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(t),t.registerHelper=function(j,G,ne){B.hasOwnProperty(j)||(B[j]=t[j]={_global:[]}),B[j][G]=ne},t.registerGlobalHelper=function(j,G,ne,ge){t.registerHelper(j,G,ge),B[j]._global.push({pred:ne,val:ge})}}function Tt(t,p,B,j,G){var ne=p,ge=B,we=xn(t,p.line),Re=G&&t.direction=="rtl"?-B:B;function je(){var Ur=p.line+Re;return Ur<t.first||Ur>=t.first+t.size?!1:(p=new qt(Ur,p.ch,p.sticky),we=xn(t,Ur))}function gt(Ur){var Er;if(j=="codepoint"){var Xr=we.text.charCodeAt(p.ch+(j>0?0:-1));isNaN(Xr)?Er=null:Er=new qt(p.line,Math.max(0,Math.min(we.text.length,p.ch+B*(Xr>=55296&&Xr<56320?2:1))),-B)}else G?Er=Fs(t.cm,we,p,B):Er=js(we,p,B);if(Er==null)if(!Ur&&je())p=Bs(G,t.cm,we,p.line,Re);else return!1;else p=Er;return!0}if(j=="char"||j=="codepoint")gt();else if(j=="column")gt(!0);else if(j=="word"||j=="group")for(var At=null,tn=j=="group",zt=t.cm&&t.cm.getHelper(p,"wordChars"),Tn=!0;!(B<0&&!gt(!Tn));Tn=!1){var Bn=we.text.charAt(p.ch)||`
|
|
|
`,Zn=Q(Bn,zt)?"w":tn&&Bn==`
|
|
|
`?"n":!tn||/\s/.test(Bn)?null:"p";if(tn&&!Tn&&!Zn&&(Zn="s"),At&&At!=Zn){B<0&&(B=1,gt(),p.sticky="after");break}if(Zn&&(At=Zn),B>0&&!gt(!Tn))break}var yr=bs(t,p,ne,ge,!0);return Fr(ne,yr)&&(yr.hitSide=!0),yr}function St(t,p,B,j){var G=t.doc,ne=p.left,ge;if(j=="page"){var we=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Re=Math.max(we-.5*br(t.display),3);ge=(B>0?p.bottom:p.top)+B*Re}else j=="line"&&(ge=B>0?p.bottom+3:p.top-3);for(var je;!(je=Vr(t,ne,ge),!je.outside);){if(B<0?ge<=0:ge>=G.height){je.hitSide=!0;break}ge+=B*5}return je}var kt=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ee,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};kt.prototype.init=function(t){var p=this,B=this,j=B.cm,G=B.div=t.lineDiv;xt(G,j.options.spellcheck,j.options.autocorrect,j.options.autocapitalize);function ne(we){for(var Re=we.target;Re;Re=Re.parentNode){if(Re==G)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Re.className))break}return!1}Ue(G,"paste",function(we){if(!ne(we)||Pt(j,we)||ke(we,j))return;m<=11&&setTimeout(Ha(j,function(){return p.updateFromDOM()}),20)}),Ue(G,"compositionstart",function(we){p.composing={data:we.data,done:!1}}),Ue(G,"compositionupdate",function(we){p.composing||(p.composing={data:we.data,done:!1})}),Ue(G,"compositionend",function(we){p.composing&&(we.data!=p.composing.data&&p.readFromDOMSoon(),p.composing.done=!0)}),Ue(G,"touchstart",function(){return B.forceCompositionEnd()}),Ue(G,"input",function(){p.composing||p.readFromDOMSoon()});function ge(we){if(!ne(we)||Pt(j,we))return;if(j.somethingSelected())ye({lineWise:!1,text:j.getSelections()}),we.type=="cut"&&j.replaceSelection("",null,"cut");else if(j.options.lineWiseCopyCut){var Re=Ve(j);ye({lineWise:!0,text:Re.text}),we.type=="cut"&&j.operation(function(){j.setSelections(Re.ranges,0,Te),j.replaceSelection("",null,"cut")})}else return;if(we.clipboardData){we.clipboardData.clearData();var je=ie.text.join(`
|
|
|
`);if(we.clipboardData.setData("Text",je),we.clipboardData.getData("Text")==je){we.preventDefault();return}}var gt=Ut(),At=gt.firstChild;j.display.lineSpace.insertBefore(gt,j.display.lineSpace.firstChild),At.value=ie.text.join(`
|
|
|
`);var tn=document.activeElement;W(At),setTimeout(function(){j.display.lineSpace.removeChild(gt),tn.focus(),tn==G&&B.showPrimarySelection()},50)}Ue(G,"copy",ge),Ue(G,"cut",ge)},kt.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},kt.prototype.prepareSelection=function(){var t=bi(this.cm,!1);return t.focus=document.activeElement==this.div,t},kt.prototype.showSelection=function(t,p){if(!t||!this.cm.display.view.length)return;(t.focus||p)&&this.showPrimarySelection(),this.showMultipleSelections(t)},kt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},kt.prototype.showPrimarySelection=function(){var t=this.getSelection(),p=this.cm,B=p.doc.sel.primary(),j=B.from(),G=B.to();if(p.display.viewTo==p.display.viewFrom||j.line>=p.display.viewTo||G.line<p.display.viewFrom){t.removeAllRanges();return}var ne=Gr(p,t.anchorNode,t.anchorOffset),ge=Gr(p,t.focusNode,t.focusOffset);if(ne&&!ne.bad&&ge&&!ge.bad&&On(dr(ne,ge),j)==0&&On(xr(ne,ge),G)==0)return;var we=p.display.view,Re=j.line>=p.display.viewFrom&&hn(p,j)||{node:we[0].measure.map[2],offset:0},je=G.line<p.display.viewTo&&hn(p,G);if(!je){var gt=we[we.length-1].measure,At=gt.maps?gt.maps[gt.maps.length-1]:gt.map;je={node:At[At.length-1],offset:At[At.length-2]-At[At.length-3]}}if(!Re||!je){t.removeAllRanges();return}var tn=t.rangeCount&&t.getRangeAt(0),zt;try{zt=L(Re.node,Re.offset,je.offset,je.node)}catch(Tn){}zt&&(!T&&p.state.focused?(t.collapse(Re.node,Re.offset),zt.collapsed||(t.removeAllRanges(),t.addRange(zt))):(t.removeAllRanges(),t.addRange(zt)),tn&&t.anchorNode==null?t.addRange(tn):T&&this.startGracePeriod()),this.rememberSelection()},kt.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation(function(){return t.cm.curOp.selectionChanged=!0})},20)},kt.prototype.showMultipleSelections=function(t){_(this.cm.display.cursorDiv,t.cursors),_(this.cm.display.selectionDiv,t.selection)},kt.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},kt.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var p=t.getRangeAt(0).commonAncestorContainer;return N(this.div,p)},kt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},kt.prototype.blur=function(){this.div.blur()},kt.prototype.getField=function(){return this.div},kt.prototype.supportsTouch=function(){return!0},kt.prototype.receivedFocus=function(){var t=this;this.selectionInEditor()?this.pollSelection():fi(this.cm,function(){return t.cm.curOp.selectionChanged=!0});function p(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,p))}this.polling.set(this.cm.options.pollInterval,p)},kt.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},kt.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;var t=this.getSelection(),p=this.cm;if(h&&a&&this.cm.display.gutterSpecs.length&&ur(t.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(this.composing)return;this.rememberSelection();var B=Gr(p,t.anchorNode,t.anchorOffset),j=Gr(p,t.focusNode,t.focusOffset);B&&j&&fi(p,function(){gi(p.doc,Cr(B,j),Te),(B.bad||j.bad)&&(p.curOp.selectionChanged=!0)})},kt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t=this.cm,p=t.display,B=t.doc.sel.primary(),j=B.from(),G=B.to();if(j.ch==0&&j.line>t.firstLine()&&(j=qt(j.line-1,xn(t.doc,j.line-1).length)),G.ch==xn(t.doc,G.line).text.length&&G.line<t.lastLine()&&(G=qt(G.line+1,0)),j.line<p.viewFrom||G.line>p.viewTo-1)return!1;var ne,ge,we;j.line==p.viewFrom||(ne=ga(t,j.line))==0?(ge=nr(p.view[0].line),we=p.view[0].node):(ge=nr(p.view[ne].line),we=p.view[ne-1].node.nextSibling);var Re=ga(t,G.line),je,gt;if(Re==p.view.length-1?(je=p.viewTo-1,gt=p.lineDiv.lastChild):(je=nr(p.view[Re+1].line)-1,gt=p.view[Re+1].node.previousSibling),!we)return!1;for(var At=t.doc.splitLines(kr(t,we,gt,ge,je)),tn=fr(t.doc,qt(ge,0),qt(je,xn(t.doc,je).text.length));At.length>1&&tn.length>1;)if($(At)==$(tn))At.pop(),tn.pop(),je--;else if(At[0]==tn[0])At.shift(),tn.shift(),ge++;else break;for(var zt=0,Tn=0,Bn=At[0],Zn=tn[0],yr=Math.min(Bn.length,Zn.length);zt<yr&&Bn.charCodeAt(zt)==Zn.charCodeAt(zt);)++zt;for(var Ur=$(At),Er=$(tn),Xr=Math.min(Ur.length-(At.length==1?zt:0),Er.length-(tn.length==1?zt:0));Tn<Xr&&Ur.charCodeAt(Ur.length-Tn-1)==Er.charCodeAt(Er.length-Tn-1);)++Tn;if(At.length==1&&tn.length==1&&ge==j.line)for(;zt&&zt>j.ch&&Ur.charCodeAt(Ur.length-Tn-1)==Er.charCodeAt(Er.length-Tn-1);)zt--,Tn++;At[At.length-1]=Ur.slice(0,Ur.length-Tn).replace(/^\u200b+/,""),At[0]=At[0].slice(zt).replace(/\u200b+$/,"");var ia=qt(ge,zt),ea=qt(je,tn.length?$(tn).length-Tn:0);if(At.length>1||At[0]||On(ia,ea))return Xo(t.doc,At,ia,ea,"+input"),!0},kt.prototype.ensurePolled=function(){this.forceCompositionEnd()},kt.prototype.reset=function(){this.forceCompositionEnd()},kt.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},kt.prototype.readFromDOMSoon=function(){var t=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(t.readDOMTimeout=null,t.composing)if(t.composing.done)t.composing=null;else return;t.updateFromDOM()},80)},kt.prototype.updateFromDOM=function(){var t=this;(this.cm.isReadOnly()||!this.pollContent())&&fi(this.cm,function(){return ka(t.cm)})},kt.prototype.setUneditable=function(t){t.contentEditable="false"},kt.prototype.onKeyPress=function(t){if(t.charCode==0||this.composing)return;t.preventDefault(),this.cm.isReadOnly()||Ha(this.cm,Ne)(this.cm,String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),0)},kt.prototype.readOnlyChanged=function(t){this.div.contentEditable=String(t!="nocursor")},kt.prototype.onContextMenu=function(){},kt.prototype.resetPosition=function(){},kt.prototype.needsContentAttribute=!0;function hn(t,p){var B=pt(t,p.line);if(!B||B.hidden)return null;var j=xn(t.doc,p.line),G=Le(B,j,p.line),ne=yt(j,t.doc.direction),ge="left";if(ne){var we=mt(ne,p.ch);ge=we%2?"right":"left"}var Re=fn(G.map,p.ch,ge);return Re.offset=Re.collapse=="right"?Re.end:Re.start,Re}function ur(t){for(var p=t;p;p=p.parentNode)if(/CodeMirror-gutter-wrapper/.test(p.className))return!0;return!1}function gr(t,p){return p&&(t.bad=!0),t}function kr(t,p,B,j,G){var ne="",ge=!1,we=t.doc.lineSeparator(),Re=!1;function je(zt){return function(Tn){return Tn.id==zt}}function gt(){ge&&(ne+=we,Re&&(ne+=we),ge=Re=!1)}function At(zt){zt&&(gt(),ne+=zt)}function tn(zt){if(zt.nodeType==1){var Tn=zt.getAttribute("cm-text");if(Tn){At(Tn);return}var Bn=zt.getAttribute("cm-marker"),Zn;if(Bn){var yr=t.findMarks(qt(j,0),qt(G+1,0),je(+Bn));yr.length&&(Zn=yr[0].find(0))&&At(fr(t.doc,Zn.from,Zn.to).join(we));return}if(zt.getAttribute("contenteditable")=="false")return;var Ur=/^(pre|div|p|li|table|br)$/i.test(zt.nodeName);if(!/^br$/i.test(zt.nodeName)&&zt.textContent.length==0)return;Ur&>();for(var Er=0;Er<zt.childNodes.length;Er++)tn(zt.childNodes[Er]);/^(pre|p)$/i.test(zt.nodeName)&&(Re=!0),Ur&&(ge=!0)}else zt.nodeType==3&&At(zt.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!(tn(p),p==B);)p=p.nextSibling,Re=!1;return ne}function Gr(t,p,B){var j;if(p==t.display.lineDiv){if(j=t.display.lineDiv.childNodes[B],!j)return gr(t.clipPos(qt(t.display.viewTo-1)),!0);p=null,B=0}else for(j=p;;j=j.parentNode){if(!j||j==t.display.lineDiv)return null;if(j.parentNode&&j.parentNode==t.display.lineDiv)break}for(var G=0;G<t.display.view.length;G++){var ne=t.display.view[G];if(ne.node==j)return na(ne,p,B)}}function na(t,p,B){var j=t.text.firstChild,G=!1;if(!p||!N(j,p))return gr(qt(nr(t.line),0),!0);if(p==j&&(G=!0,p=j.childNodes[B],B=0,!p)){var ne=t.rest?$(t.rest):t.line;return gr(qt(nr(ne),ne.text.length),G)}var ge=p.nodeType==3?p:null,we=p;for(!ge&&p.childNodes.length==1&&p.firstChild.nodeType==3&&(ge=p.firstChild,B&&(B=ge.nodeValue.length));we.parentNode!=j;)we=we.parentNode;var Re=t.measure,je=Re.maps;function gt(Zn,yr,Ur){for(var Er=-1;Er<(je?je.length:0);Er++)for(var Xr=Er<0?Re.map:je[Er],ia=0;ia<Xr.length;ia+=3){var ea=Xr[ia+2];if(ea==Zn||ea==yr){var Sa=nr(Er<0?t.line:t.rest[Er]),Va=Xr[ia]+Ur;return(Ur<0||ea!=Zn)&&(Va=Xr[ia+(Ur?1:0)]),qt(Sa,Va)}}}var At=gt(ge,we,B);if(At)return gr(At,G);for(var tn=we.nextSibling,zt=ge?ge.nodeValue.length-B:0;tn;tn=tn.nextSibling){if(At=gt(tn,tn.firstChild,0),At)return gr(qt(At.line,At.ch-zt),G);zt+=tn.textContent.length}for(var Tn=we.previousSibling,Bn=B;Tn;Tn=Tn.previousSibling){if(At=gt(Tn,Tn.firstChild,-1),At)return gr(qt(At.line,At.ch+Bn),G);Bn+=Tn.textContent.length}}var Hr=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new ee,this.hasSelection=!1,this.composing=null};Hr.prototype.init=function(t){var p=this,B=this,j=this.cm;this.createField(t);var G=this.textarea;t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),l&&(G.style.width="0px"),Ue(G,"input",function(){O&&m>=9&&p.hasSelection&&(p.hasSelection=null),B.poll()}),Ue(G,"paste",function(ge){if(Pt(j,ge)||ke(ge,j))return;j.state.pasteIncoming=+new Date,B.fastPoll()});function ne(ge){if(Pt(j,ge))return;if(j.somethingSelected())ye({lineWise:!1,text:j.getSelections()});else if(j.options.lineWiseCopyCut){var we=Ve(j);ye({lineWise:!0,text:we.text}),ge.type=="cut"?j.setSelections(we.ranges,null,Te):(B.prevInput="",G.value=we.text.join(`
|
|
|
`),W(G))}else return;ge.type=="cut"&&(j.state.cutIncoming=+new Date)}Ue(G,"cut",ne),Ue(G,"copy",ne),Ue(t.scroller,"paste",function(ge){if(Ta(t,ge)||Pt(j,ge))return;if(!G.dispatchEvent){j.state.pasteIncoming=+new Date,B.focus();return}var we=new Event("paste");we.clipboardData=ge.clipboardData,G.dispatchEvent(we)}),Ue(t.lineSpace,"selectstart",function(ge){Ta(t,ge)||Ce(ge)}),Ue(G,"compositionstart",function(){var ge=j.getCursor("from");B.composing&&B.composing.range.clear(),B.composing={start:ge,range:j.markText(ge,j.getCursor("to"),{className:"CodeMirror-composing"})}}),Ue(G,"compositionend",function(){B.composing&&(B.poll(),B.composing.range.clear(),B.composing=null)})},Hr.prototype.createField=function(t){this.wrapper=Ut(),this.textarea=this.wrapper.firstChild},Hr.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},Hr.prototype.prepareSelection=function(){var t=this.cm,p=t.display,B=t.doc,j=bi(t);if(t.options.moveInputWithCursor){var G=Gn(t,B.sel.primary().head,"div"),ne=p.wrapper.getBoundingClientRect(),ge=p.lineDiv.getBoundingClientRect();j.teTop=Math.max(0,Math.min(p.wrapper.clientHeight-10,G.top+ge.top-ne.top)),j.teLeft=Math.max(0,Math.min(p.wrapper.clientWidth-10,G.left+ge.left-ne.left))}return j},Hr.prototype.showSelection=function(t){var p=this.cm,B=p.display;_(B.cursorDiv,t.cursors),_(B.selectionDiv,t.selection),t.teTop!=null&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},Hr.prototype.reset=function(t){if(this.contextMenuPending||this.composing)return;var p=this.cm;if(p.somethingSelected()){this.prevInput="";var B=p.getSelection();this.textarea.value=B,p.state.focused&&W(this.textarea),O&&m>=9&&(this.hasSelection=B)}else t||(this.prevInput=this.textarea.value="",O&&m>=9&&(this.hasSelection=null))},Hr.prototype.getField=function(){return this.textarea},Hr.prototype.supportsTouch=function(){return!1},Hr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!d||V()!=this.textarea))try{this.textarea.focus()}catch(t){}},Hr.prototype.blur=function(){this.textarea.blur()},Hr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Hr.prototype.receivedFocus=function(){this.slowPoll()},Hr.prototype.slowPoll=function(){var t=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){t.poll(),t.cm.state.focused&&t.slowPoll()})},Hr.prototype.fastPoll=function(){var t=!1,p=this;p.pollingFast=!0;function B(){var j=p.poll();!j&&!t?(t=!0,p.polling.set(60,B)):(p.pollingFast=!1,p.slowPoll())}p.polling.set(20,B)},Hr.prototype.poll=function(){var t=this,p=this.cm,B=this.textarea,j=this.prevInput;if(this.contextMenuPending||!p.state.focused||et(B)&&!j&&!this.composing||p.isReadOnly()||p.options.disableInput||p.state.keySeq)return!1;var G=B.value;if(G==j&&!p.somethingSelected())return!1;if(O&&m>=9&&this.hasSelection===G||s&&/[\uf700-\uf7ff]/.test(G))return p.display.input.reset(),!1;if(p.doc.sel==p.display.selForContextMenu){var ne=G.charCodeAt(0);if(ne==8203&&!j&&(j="\u200B"),ne==8666)return this.reset(),this.cm.execCommand("undo")}for(var ge=0,we=Math.min(j.length,G.length);ge<we&&j.charCodeAt(ge)==G.charCodeAt(ge);)++ge;return fi(p,function(){Ne(p,G.slice(ge),j.length-ge,null,t.composing?"*compose":null),G.length>1e3||G.indexOf(`
|
|
|
`)>-1?B.value=t.prevInput="":t.prevInput=G,t.composing&&(t.composing.range.clear(),t.composing.range=p.markText(t.composing.start,p.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Hr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Hr.prototype.onKeyPress=function(){O&&m>=9&&(this.hasSelection=null),this.fastPoll()},Hr.prototype.onContextMenu=function(t){var p=this,B=p.cm,j=B.display,G=p.textarea;p.contextMenuPending&&p.contextMenuPending();var ne=Oa(B,t),ge=j.scroller.scrollTop;if(!ne||u)return;var we=B.options.resetSelectionOnContextMenu;we&&B.doc.sel.contains(ne)==-1&&Ha(B,gi)(B.doc,Cr(ne),Te);var Re=G.style.cssText,je=p.wrapper.style.cssText,gt=p.wrapper.offsetParent.getBoundingClientRect();p.wrapper.style.cssText="position: static",G.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(t.clientY-gt.top-5)+"px; left: "+(t.clientX-gt.left-5)+`px;
|
|
|
z-index: 1000; background: `+(O?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var At;e&&(At=window.scrollY),j.input.focus(),e&&window.scrollTo(null,At),j.input.reset(),B.somethingSelected()||(G.value=p.prevInput=" "),p.contextMenuPending=zt,j.selForContextMenu=B.doc.sel,clearTimeout(j.detectingSelectAll);function tn(){if(G.selectionStart!=null){var Bn=B.somethingSelected(),Zn="\u200B"+(Bn?G.value:"");G.value="\u21DA",G.value=Zn,p.prevInput=Bn?"":"\u200B",G.selectionStart=1,G.selectionEnd=Zn.length,j.selForContextMenu=B.doc.sel}}function zt(){if(p.contextMenuPending!=zt)return;if(p.contextMenuPending=!1,p.wrapper.style.cssText=je,G.style.cssText=Re,O&&m<9&&j.scrollbars.setScrollTop(j.scroller.scrollTop=ge),G.selectionStart!=null){(!O||O&&m<9)&&tn();var Bn=0,Zn=function(){j.selForContextMenu==B.doc.sel&&G.selectionStart==0&&G.selectionEnd>0&&p.prevInput=="\u200B"?Ha(B,ol)(B):Bn++<10?j.detectingSelectAll=setTimeout(Zn,500):(j.selForContextMenu=null,j.input.reset())};j.detectingSelectAll=setTimeout(Zn,200)}}if(O&&m>=9&&tn(),R){Be(t);var Tn=function(){jt(window,"mouseup",Tn),setTimeout(zt,20)};Ue(window,"mouseup",Tn)}else setTimeout(zt,50)},Hr.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled=t=="nocursor",this.textarea.readOnly=!!t},Hr.prototype.setUneditable=function(){},Hr.prototype.needsContentAttribute=!1;function Ia(t,p){if(p=p?I(p):{},p.value=t.value,!p.tabindex&&t.tabIndex&&(p.tabindex=t.tabIndex),!p.placeholder&&t.placeholder&&(p.placeholder=t.placeholder),p.autofocus==null){var B=V();p.autofocus=B==t||t.getAttribute("autofocus")!=null&&B==document.body}function j(){t.value=we.getValue()}var G;if(t.form&&(Ue(t.form,"submit",j),!p.leaveSubmitMethodAlone)){var ne=t.form;G=ne.submit;try{var ge=ne.submit=function(){j(),ne.submit=G,ne.submit(),ne.submit=ge}}catch(Re){}}p.finishInit=function(Re){Re.save=j,Re.getTextArea=function(){return t},Re.toTextArea=function(){Re.toTextArea=isNaN,j(),t.parentNode.removeChild(Re.getWrapperElement()),t.style.display="",t.form&&(jt(t.form,"submit",j),!p.leaveSubmitMethodAlone&&typeof t.form.submit=="function"&&(t.form.submit=G))}},t.style.display="none";var we=Ya(function(Re){return t.parentNode.insertBefore(Re,t.nextSibling)},p);return we}function Da(t){t.off=jt,t.on=Ue,t.wheelEventPixels=Hi,t.Doc=Ti,t.splitLines=Ke,t.countColumn=K,t.findColumn=Ee,t.isWordChar=te,t.Pass=Se,t.signal=bt,t.Line=dn,t.changeEnd=Zr,t.scrollbarModel=xo,t.Pos=qt,t.cmpPos=On,t.modes=ht,t.mimeModes=Et,t.resolveMode=lt,t.getMode=Ft,t.modeExtensions=Lt,t.extendMode=on,t.copyState=mn,t.startState=Xn,t.innerMode=Hn,t.commands=qo,t.keyMap=vo,t.keyName=xs,t.isModifierKey=is,t.lookupKey=_o,t.normalizeKeyMap=_l,t.StringStream=Fn,t.SharedTextMarker=Qo,t.TextMarker=Gi,t.LineWidget=ns,t.e_preventDefault=Ce,t.e_stopPropagation=Ie,t.e_stop=Be,t.addClass=H,t.contains=N,t.rmClass=C,t.keyNames=Ro}eu(Ya),Wt(Ya);var za="iter insert remove copy getEditor constructor".split(" ");for(var si in Ti.prototype)Ti.prototype.hasOwnProperty(si)&&he(za,si)<0&&(Ya.prototype[si]=function(t){return function(){return t.apply(this.doc,arguments)}}(Ti.prototype[si]));return Ge(Ti),Ya.inputStyles={textarea:Hr,contenteditable:kt},Ya.defineMode=function(t){!Ya.defaults.mode&&t!="null"&&(Ya.defaults.mode=t),Ot.apply(this,arguments)},Ya.defineMIME=Mt,Ya.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),Ya.defineMIME("text/plain","null"),Ya.defineExtension=function(t,p){Ya.prototype[t]=p},Ya.defineDocExtension=function(t,p){Ti.prototype[t]=p},Ya.fromTextArea=Ia,Da(Ya),Ya.version="5.58.2",Ya})},W6BS:function(k,z){k.exports="data:image/png;base64,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"},WO9J:function(k,z,o){"use strict";o.r(z);var P=o("0Owb"),g=o("PpiC"),T=o("q1tI"),b=o.n(T),y=o("EkPF"),x=o.n(y),O=o("miYZ"),m=o("tsqr"),e=o("2qtc"),f=o("kLXV"),a=o("9og8"),u=o("WmNS"),r=o.n(u),i=o("auZk"),n=o.n(i),l=o("1vsH"),h=o("Ufr+"),d=o.n(h),s=o("HBuW"),c=o("ErOA"),w=o("Ty5D"),E=o("9kvl"),v=function(Yt){var dn,Dn,en=Yt.globalSetting,wn=Yt.loading,_n=Yt.dispatch,In=Yt.practiceSetting,Un=Yt.shixunsDetail,or=Object(g.a)(Yt,["globalSetting","loading","dispatch","practiceSetting","shixunsDetail"]),qn=Object(w.h)(),Pr=Object(T.useRef)(""),Lr=Object(w.i)(),Qn=In.title,Dr=In.base_info_warning,vr=In.challenges_warning,zr=In.service_warning,Nr=In.repository_warning,$r=In.mirror_warning;Object(T.useEffect)(function(){var cr;Pr.current=(cr=qn.pathname.split("/"))===null||cr===void 0?void 0:cr[2],_n({type:"practiceSetting/setParams",payload:{id:Pr.current}}),_n({type:"practiceSetting/getCommonData",payload:{id:Pr.current}})},[qn.pathname]),Object(T.useEffect)(function(){return Object(l.X)(Qn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"),function(){Object(l.X)()}});var tr=function(){var cr=Object(a.a)(r.a.mark(function sr(){return r.a.wrap(function(lr){for(;;)switch(lr.prev=lr.next){case 0:return lr.next=2,Gt();case 2:E.d.push("/shixuns/".concat(Pr.current,"/challenges"));case 3:case"end":return lr.stop()}},sr)}));return function(){return cr.apply(this,arguments)}}(),Gt=function(){return new Promise(function(sr,qr){var lr;In!=null&&(lr=In.sideBar)!==null&&lr!==void 0&&lr.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(){_n({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),sr()},onCancel:function(){qr()}}):sr()})},Zt=function(sr){var qr;if(sr===(In==null?void 0:In.sideBar.tabsActive))return;var lr=function(){E.d.push("/shixuns/".concat(Pr.current,"/edit?tabId=").concat(sr)),_n({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:sr,selectPath:"",confirmLeave:!1}})};In!=null&&(qr=In.sideBar)!==null&&qr!==void 0&&qr.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(){lr()}}):lr()},Jt=function cr(sr){var qr;sr=(qr=sr)!==null&&qr!==void 0&&qr.includes(".json")?sr:"".concat(sr,".json"),f.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 lr=Object(a.a)(r.a.mark(function Yr(){var _r,Sr;return r.a.wrap(function(Jr){for(;;)switch(Jr.prev=Jr.next){case 0:return Jr.next=2,Object(c.a)("/api"+sr,{method:"get"});case 2:if(_r=Jr.sent,_r){Jr.next=5;break}return Jr.abrupt("return");case 5:return m.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),Jr.next=8,Object(s.E)({id:_r.shixun_identifier});case 8:if(Sr=Jr.sent,!(Sr!=null&&Sr.game_identifier)){Jr.next=12;break}return Object(l.S)("/tasks/".concat(Sr.game_identifier)),Jr.abrupt("return");case 12:(Sr==null?void 0:Sr.status)===2?cr(Sr==null?void 0:Sr.message):(Sr==null?void 0:Sr.status)===3&&zn(Sr==null?void 0:Sr.message);case 13:case"end":return Jr.stop()}},Yr)}));function da(){return lr.apply(this,arguments)}return da}()})},zn=function(sr){f.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",sr,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},$n=function(){var cr=Object(a.a)(r.a.mark(function sr(qr,lr){var da,Yr,_r;return r.a.wrap(function(Kr){for(;;)switch(Kr.prev=Kr.next){case 0:return Kr.next=2,Gt();case 2:if(Object(l.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6A21\u62DF\u5B9E\u6218"]),!((da=Un.detail)!==null&&da!==void 0&&da.is_jupyter||(Yr=Un.detail)!==null&&Yr!==void 0&&Yr.is_jupyter_lab)){Kr.next=6;break}return _n({type:"shixunsDetail/execJupyter",payload:{id:Pr.current}}).then(function(Jr){Jr!=null&&Jr.identifier&&(E.d===null||E.d===void 0||E.d.push("/tasks/".concat(Jr.identifier,"/jupyter")))}),Kr.abrupt("return");case 6:if(_n({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!lr){Kr.next=13;break}return Kr.next=10,Object(s.D)({id:qr});case 10:Kr.t0=Kr.sent,Kr.next=16;break;case 13:return Kr.next=15,Object(s.E)({id:qr});case 15:Kr.t0=Kr.sent;case 16:if(_r=Kr.t0,_n({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!(_r!=null&&_r.game_identifier||_r!=null&&_r.identifier)){Kr.next=21;break}return Object(l.S)(lr?"/tasks/".concat(_r==null?void 0:_r.identifier,"/jupyter"):"/tasks/".concat(_r.game_identifier)),Kr.abrupt("return");case 21:(_r==null?void 0:_r.status)===-3?Object(l.q)():(_r==null?void 0:_r.status)===2?Jt(_r==null?void 0:_r.message):(_r==null?void 0:_r.status)===3&&zn(_r==null?void 0:_r.message);case 22:case"end":return Kr.stop()}},sr)}));return function(qr,lr){return cr.apply(this,arguments)}}(),Ln=function(){var cr=Object(a.a)(r.a.mark(function sr(){return r.a.wrap(function(lr){for(;;)switch(lr.prev=lr.next){case 0:return lr.next=2,Gt();case 2:_n({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"information"}});case 3:case"end":return lr.stop()}},sr)}));return function(){return cr.apply(this,arguments)}}(),rr=function(sr){var qr={borderBottomColor:(In==null?void 0:In.sideBar.tabsActive)===sr?"#0152d9":"transparent"};return qr};return b.a.createElement("div",{className:n.a.header},b.a.createElement("aside",{className:n.a.title},b.a.createElement("i",{onClick:tr,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:rr("information"),className:n.a.clickWarp,onClick:function(){return Zt("information")}},Dr?b.a.createElement("span",{className:n.a.num},"1"):b.a.createElement("img",{src:d.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:rr("warehouse"),className:n.a.clickWarp,onClick:function(){return Zt("warehouse")}},Nr?b.a.createElement("span",{className:n.a.num},"2"):b.a.createElement("img",{src:d.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:rr("level"),className:n.a.clickWarp,onClick:function(){return Zt("level")}},vr?b.a.createElement("span",{className:n.a.num},"3"):b.a.createElement("img",{src:d.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||((Dn=Un.detail)===null||Dn===void 0)?void 0:Dn.is_jupyter_lab)&&b.a.createElement("div",null,b.a.createElement("span",{style:rr("service"),className:n.a.clickWarp,onClick:function(){return Zt("service")}},zr?b.a.createElement("span",{className:n.a.num},"3"):b.a.createElement("img",{src:d.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:rr("environment"),className:n.a.clickWarp,onClick:function(){return Zt("environment")}},$r?b.a.createElement("span",{className:n.a.num},"4"):b.a.createElement("img",{src:d.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 $n(Pr.current,!1)}},"\u6A21\u62DF\u5B9E\u6218")))},R=Object(E.a)(function(Sn){var Yt=Sn.loading,dn=Sn.globalSetting,Dn=Sn.practiceSetting,en=Sn.shixunsDetail;return{globalSetting:dn,loading:Yt,practiceSetting:Dn,shixunsDetail:en}})(v),M=o("sRBo"),C=o("kaz8"),S=o("14J3"),_=o("BMrR"),A=o("jCWc"),U=o("kPKH"),L=o("DZo9"),N=o("8z0m"),V=o("6UJt"),H=o("DFOY"),D=o("5NDa"),W=o("5rEg"),F=o("+L6B"),I=o("2/Rp"),K=o("k1fw"),ee=o("y8nQ"),he=o("Vl3Y"),de=o("tJVT"),Se=o("h/E3"),Te=o.n(Se),ce=o("Ot1p"),be=o("oBTY"),Ee=o("+Xk9"),ue=o.n(Ee),le=o("FTkQ"),$=o.n(le),me=function(Yt){var dn=Yt.InputRight,Dn=Yt.value,en=Dn===void 0?[]:Dn,wn=Yt.onChange,_n=Object(g.a)(Yt,["InputRight","value","onChange"]),In=Object(T.useState)(),Un=Object(de.a)(In,2),or=Un[0],qn=Un[1],Pr=function(Dr){var vr=en.filter(function(zr,Nr){return Nr!==Dr});wn(vr)},Lr=function(Dr){if(Dr.preventDefault(),!or)return;if(en.findIndex(function(vr){return vr.name===or})>-1){m.b.warn("\u4E0D\u5141\u8BB8\u6DFB\u52A0\u76F8\u540C\u6807\u7B7E");return}wn([].concat(Object(be.a)(en),[{id:null,name:or}])),qn(null)};return b.a.createElement("div",null,b.a.createElement(W.a,Object(P.a)({bordered:!1,style:{width:600},value:or,onChange:function(Dr){return qn(Dr.target.value)},onPressEnter:Lr,onBlur:Lr},_n)),dn||b.a.createElement("span",{className:"pl20 font14 c-light-black"},"\u56DE\u8F66\u6DFB\u52A0\u6807\u7B7E"),b.a.createElement("div",{className:"mt20"},en==null?void 0:en.map(function(Qn,Dr){return b.a.createElement("div",{key:Dr,className:ue.a.btn},b.a.createElement("span",{className:ue.a.s1},Qn.name),b.a.createElement("img",{src:$.a,className:ue.a.s2,onClick:function(){return Pr(Dr)}}))})))},re=me,ae=o("LvDl"),Oe=o("m3rI"),se=o("hW5Z"),te=o.n(se),Q=function(Yt){var dn=Yt.dispatch,Dn=Yt.onCancel,en=Yt.onSave,wn=Yt.loading,_n=wn===void 0?!1:wn;return b.a.createElement("div",{className:te.a.complete},b.a.createElement("div",{onClick:Dn,className:te.a.cancel},"\u53D6\u6D88"),b.a.createElement(I.a,{type:"primary",loading:_n,onClick:en,className:te.a.save},"\u4FDD\u5B58"))},J=Object(E.a)()(Q),ve=o("UqFu"),_e=o("z7Xi"),Ae=o("jN4g"),Qe=function(Yt){var dn,Dn,en=Yt.globalSetting,wn=Yt.loading,_n=Yt.dispatch,In=Yt.practiceSetting,Un=Yt.problemset,or=Yt.shixunsDetail,qn=Object(g.a)(Yt,["globalSetting","loading","dispatch","practiceSetting","problemset","shixunsDetail"]),Pr=he.a.useForm(),Lr=Object(de.a)(Pr,1),Qn=Lr[0],Dr=Object(T.useState)({}),vr=Object(de.a)(Dr,2),zr=vr[0],Nr=vr[1],$r=Object(T.useState)(!1),tr=Object(de.a)($r,2),Gt=tr[0],Zt=tr[1],Jt=Object(T.useState)(!1),zn=Object(de.a)(Jt,2),$n=zn[0],Ln=zn[1],rr=Object(T.useState)(""),cr=Object(de.a)(rr,2),sr=cr[0],qr=cr[1],lr=Object(T.useState)(""),da=Object(de.a)(lr,2),Yr=da[0],_r=da[1],Sr=Object(T.useRef)({}),Kr=Object(T.useRef)(""),Jr=Object(T.useRef)(null),Ta=Object(T.useRef)(Object(ae.throttle)(function(){return Me()},2e3,{leading:!0,trailing:!1})).current,_a=In.id;Object(T.useEffect)(function(){if(!_a)return;ct()},[_a]),Object(T.useEffect)(function(){return JSON.stringify(zr)!=="{}"&&Ze(),function(){clearTimeout(Jr.current)}},[zr,sr,Yr]);var Ze=function(){clearTimeout(Jr.current),Jr.current=setTimeout(function(){!Object(ae.isEqual)(zr,Sr.current)||sr!==Kr.current||Yr!==Kr.current?_n({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!0}}):_n({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})},500)},ct=function(){var cn=Object(a.a)(r.a.mark(function un(){var Wn,Cn,jr,Mr,Qr,Wr,ta,Kn,wr;return r.a.wrap(function(En){for(;;)switch(En.prev=En.next){case 0:return _n({type:"problemset/getEditDisciplines",payload:{source:"shixun"}}),En.next=3,Object(c.a)("/api/shixuns/".concat(_a,"/edit_base_info.json"),{method:"get"});case 3:Wn=En.sent,Wn.status===0&&(Kn=Object(K.a)(Object(K.a)({},Wn.data),{},{description:Object(ve.a)(Wn.data.description)}),wr={description:Kn.description,shixun_tags:Kn.shixun_tags,name:Kn.name,course:(Kn==null||((Cn=Kn.disciplines)===null||Cn===void 0)?void 0:Cn.length)>0?[Kn==null||((jr=Kn.disciplines)===null||jr===void 0||((Mr=jr[0])===null||Mr===void 0))?void 0:Mr.id,Kn==null||((Qr=Kn.disciplines)===null||Qr===void 0||((Wr=Qr[0])===null||Wr===void 0||((ta=Wr.sub_discipline)===null||ta===void 0)))?void 0:ta.id]:[],jupyter_show_description:Wn.data.jupyter_show_description},Qn.setFieldsValue(wr),Sr.current=Object(K.a)({},wr),Kr.current=Kn.attachment_id||"",Nr(Object(K.a)({},wr)),qr(Kn.attachment_id||""),_r(Kn.cover_image_id||""));case 5:case"end":return En.stop()}},un)}));return function(){return cn.apply(this,arguments)}}(),_t=function(un,Wn){Nr(Object(K.a)({},Wn))},nt=function(){Le()},Me=function(){Object(l.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u57FA\u672C\u4FE1\u606F","\u4FDD\u5B58"]),Qn.submit()},Je=function(un){var Wn,Cn=un.name,jr=un.description,Mr=un.shixun_tags,Qr=un.course,Wr=un.jupyter_show_description,ta=Wr===void 0?!1:Wr,Kn={name:Cn,description:jr,shixun_tags:Mr,attachment_id:sr,cover_image_id:Yr,sub_discipline_ids:Qr[1]};(Wn=or.detail)!==null&&Wn!==void 0&&Wn.is_jupyter_lab&&(Kn=Object(K.a)(Object(K.a)({},Kn),{},{jupyter_show_description:ta}));var wr=Object(c.a)("/api/shixuns/".concat(_a,"/base_info_save.json"),{method:"post",body:{shixun:Object(K.a)({},Kn)}});wr.then(function(Gn){Gn.status===0&&(m.b.success("\u4FDD\u5B58\u6210\u529F"),_n({type:"practiceSetting/getCommonData",payload:{id:_a}}),_n({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),Sr.current={description:zr.description,shixun_tags:zr.shixun_tags,name:zr.name},Kr.current=sr)})},Le=function(){var un,Wn=function(){E.d.push("/shixuns/".concat(_a,"/challenges")),_n({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};In!=null&&(un=In.sideBar)!==null&&un!==void 0&&un.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(){Wn()}}):Wn()};function $e(cn){var un=cn.type==="image/jpeg"||cn.type==="image/png";return un||m.b.error("\u8BF7\u4E0A\u4F20jpg\u6216png\u7684\u56FE\u7247!"),un}var qe=b.a.createElement(I.a,{loading:Gt,icon:b.a.createElement(_e.a,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6"),pt=b.a.createElement(I.a,{loading:$n,icon:b.a.createElement(_e.a,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");function rt(cn,un){var Wn=new FileReader;Wn.addEventListener("load",function(){return un(Wn.result)}),Wn.readAsDataURL(cn)}var It=function(un){if(un.file.status==="uploading"){Zt(!0);return}if(un.file.status==="done"){var Wn,Cn;Zt(!1),qr(un==null||((Wn=un.file)===null||Wn===void 0||((Cn=Wn.response)===null||Cn===void 0))?void 0:Cn.id)}},Vt=function(){return b.a.createElement("div",{className:Te.a.img},b.a.createElement("img",{src:Oe.a.API_SERVER+"/api/attachments/"+sr,alt:"avatar",style:{width:"100%"}}),b.a.createElement("div",null,b.a.createElement(Ae.a,{onClick:function(){return qr("")},style:{fontSize:"16px",color:"red"}})))},fn=function(un){if(un.file.status==="uploading"){Ln(!0);return}if(un.file.status==="done"){var Wn,Cn;Ln(!1),_r(un==null||((Wn=un.file)===null||Wn===void 0||((Cn=Wn.response)===null||Cn===void 0))?void 0:Cn.id)}},ln=function(){return b.a.createElement("div",{className:Te.a.img},b.a.createElement("img",{src:Oe.a.API_SERVER+"/api/attachments/"+Yr,alt:"avatar",style:{width:"100%"}}),b.a.createElement("div",null,b.a.createElement(Ae.a,{onClick:function(){return _r("")},style:{fontSize:"16px",color:"red"}})))};return b.a.createElement("div",{className:Te.a.information},b.a.createElement("section",{className:Te.a.scroll},b.a.createElement("header",null,"\u57FA\u672C\u4FE1\u606F"),b.a.createElement("div",{className:Te.a.formWrap}," ",b.a.createElement(he.a,{form:Qn,scrollToFirstError:!0,layout:"vertical",onValuesChange:_t,onFinish:Je},b.a.createElement(he.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(W.a,{bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26",suffix:"".concat(((dn=zr.name)===null||dn===void 0?void 0:dn.length)||0,"/60")})),b.a.createElement(he.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(he.a.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B\uFF1A",name:"course",labelCol:{span:5},wrapperCol:{span:5}},b.a.createElement(H.a,{placeholder:"\u8BF7\u9009\u62E9...",allowClear:!1,options:Un.courseOptions})),b.a.createElement(_.a,null,b.a.createElement(U.a,null,b.a.createElement(he.a.Item,{label:"\u9876\u90E8\u80CC\u666F\u56FE:"},sr?Vt():b.a.createElement(N.a,{withCredentials:!0,name:"file",showUploadList:!1,action:"".concat(Oe.a.API_SERVER,"/api/attachments.json"),beforeUpload:$e,onChange:It},qe))),b.a.createElement(U.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(_.a,null,b.a.createElement(U.a,null,b.a.createElement(he.a.Item,{label:"\u5217\u8868\u5C01\u9762\u56FE:"},Yr?ln():b.a.createElement(N.a,{withCredentials:!0,name:"file",showUploadList:!1,action:"".concat(Oe.a.API_SERVER,"/api/attachments.json"),beforeUpload:$e,onChange:fn},pt))),b.a.createElement(U.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(he.a.Item,{name:"description",label:"\u7B80\u4ECB:"},b.a.createElement(ce.a,{defaultValue:zr.description||"",watch:!0})),((Dn=or.detail)===null||Dn===void 0?void 0:Dn.is_jupyter_lab)&&b.a.createElement(he.a.Item,{name:"jupyter_show_description",valuePropName:"checked"},b.a.createElement(C.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(J,{onSave:Ta,onCancel:nt,loading:Gt||$n}))},tt=Object(E.a)(function(Sn){var Yt=Sn.problemset,dn=Sn.loading,Dn=Sn.globalSetting,en=Sn.practiceSetting,wn=Sn.shixunsDetail;return{globalSetting:Dn,loading:dn,practiceSetting:en,problemset:Yt,shixunsDetail:wn}})(Qe),dt=o("ch0t"),mt=o("R9oj"),vt=o("ECub"),yt=o("T2oS"),Ye=o("W9HT"),Ue=o("bKvZ"),ft=o.n(Ue),jt=o("KeGQ"),bt=o.n(jt),Pt=o("NLgs"),it=o("ngQI"),He=function(Yt){var dn=Yt.globalSetting,Dn=Yt.dispatch,en=Yt.practiceSetting,wn=Object(g.a)(Yt,["globalSetting","dispatch","practiceSetting"]),_n=Object(T.useState)(!1),In=Object(de.a)(_n,2),Un=In[0],or=In[1],qn=Object(T.useState)({}),Pr=Object(de.a)(qn,2),Lr=Pr[0],Qn=Pr[1],Dr=Object(T.useState)(!0),vr=Object(de.a)(Dr,2),zr=vr[0],Nr=vr[1],$r=Object(T.useState)(!1),tr=Object(de.a)($r,2),Gt=tr[0],Zt=tr[1],Jt=Object(T.useState)(null),zn=Object(de.a)(Jt,2),$n=zn[0],Ln=zn[1],rr=Object(T.useRef)(!1),cr=en.id,sr=en.updateIndex,qr=en.is_published,lr=en.newQuestion,da=Lr.challenge_list,Yr=da===void 0?[]:da;Object(T.useEffect)(function(){return cr?(Sr(),function(){Dn({type:"practiceSetting/setParams",payload:{newQuestion:null}})}):void 0},[cr,sr]),Object(T.useEffect)(function(){_r()},[wn.location]);var _r=function(){var $e,qe=wn.location,pt=qe.pathname.split("/");(pt.includes("newquestion")||pt.includes("new")||qe!=null&&($e=qe.query)!==null&&$e!==void 0&&$e.tabId)&&(rr.current=!0)},Sr=function(){var Le=Object(a.a)(r.a.mark(function $e(){var qe,pt,rt,It,Vt,fn,ln;return r.a.wrap(function(un){for(;;)switch(un.prev=un.next){case 0:return Nr(!0),un.next=3,Object(s.J)({id:cr});case 3:rt=un.sent,rt!=null&&(qe=rt.challenge_list)!==null&&qe!==void 0&&qe.length&&(It=wn.location.pathname.split("/"),Vt=rt.challenge_list.find(function(Wn){return String(Wn.challenge_id)===It[4]}),It.includes("newquestion")||It.includes("new")?(ln=rt.challenge_list[((fn=rt.challenge_list)===null||fn===void 0?void 0:fn.length)-1],Dn({type:"practiceSetting/setParams",payload:{newQuestion:{st:It.includes("new")?0:1,name:""}}}),Ln(void 0),Ze(ln)):It[4]&&Vt?Kr(Vt,!1):Kr(rt.challenge_list[0])),rt!=null&&(pt=rt.challenge_list)!==null&&pt!==void 0&&pt.length||Ln(null),Qn(rt),Nr(!1);case 8:case"end":return un.stop()}},$e)}));return function(){return Le.apply(this,arguments)}}(),Kr=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(cr,"/edit/").concat($e.challenge_id,"/").concat($e.st===1?"editquestion":"editcheckpoint");E.d.push(pt)}},Jr=function($e,qe){qe.stopPropagation();var pt=$e.challenge_id,rt=function(){var It=Object(a.a)(r.a.mark(function Vt(){var fn,ln,cn,un;return r.a.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return Cn.next=2,Object(s.v)({id:cr,challengesId:pt});case 2:if(fn=Cn.sent,!(fn.status===1)){Cn.next=12;break}return Cn.next=6,Object(s.J)({id:cr});case 6:if(un=Cn.sent,Qn(un),!(pt===$n&&(ln=un.challenge_list)!==null&&ln!==void 0&&ln.length)){Cn.next=11;break}return Kr(un.challenge_list[0]),Cn.abrupt("return");case 11:(cn=un.challenge_list)!==null&&cn!==void 0&&cn.length||(Ln(null),rr.current=!0,Ze({}),E.d.push("/shixuns/".concat(cr,"/edit?tabId=level")));case 12:case"end":return Cn.stop()}},Vt)}));return function(){return It.apply(this,arguments)}}();f.a.confirm({title:"\u63D0\u793A",content:"\u662F\u5426\u5220\u9664\u8BE5\u5173\u5361!",centered:!0,onOk:rt})},Ta=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},_a=function($e,qe){if(!$e.destination)return;var pt=Ta(qe,$e.source.index,$e.destination.index);Qn(Object(K.a)(Object(K.a)({},Lr),{},{challenge_list:pt}));var rt=pt.map(function(It){return It.challenge_id});Object(s.Kb)({id:cr,ids:rt}).then(function(It){It.status!==0&&Qn(Object(K.a)(Object(K.a)({},Lr),{},{challenge_list:qe}))})},Ze=function($e){Dn({type:"practiceSetting/setParams",payload:{selectQuestionParams:$e}})},ct=function(){var Le=Object(a.a)(r.a.mark(function $e(qe,pt){var rt;return r.a.wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:if(!(qe===$n)){Vt.next=2;break}return Vt.abrupt("return");case 2:return Vt.next=4,_t();case 4:Ln(qe),Ze(pt),Dn({type:"practiceSetting/setParams",payload:{newQuestion:null}}),rt="/shixuns/".concat(cr,"/edit/").concat(qe,"/").concat(pt.st===1?"editquestion":"editcheckpoint"),E.d.push(rt);case 9:case"end":return Vt.stop()}},$e)}));return function(qe,pt){return Le.apply(this,arguments)}}(),_t=function(){return new Promise(function($e,qe){var pt;en!=null&&(pt=en.sideBar)!==null&&pt!==void 0&&pt.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(){Dn({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(it.a,{onDragEnd:function(pt){return _a(pt,$e)}},b.a.createElement(it.c,{droppableId:"droppable"},function(qe,pt){return b.a.createElement("div",Object(P.a)({ref:qe.innerRef},qe.droppableProps,{style:{width:"100%"}}),$e.map(function(rt,It){var Vt=rt.st,fn=rt.name,ln=rt.challenge_id;return b.a.createElement(it.b,{key:ln,draggableId:ln.toString(),index:It,isDragDisabled:qr},function(cn,un){return b.a.createElement("div",Object(P.a)({ref:cn.innerRef},cn.draggableProps,cn.dragHandleProps,{className:$n===ln?ft.a.listActive:ft.a.list,onClick:function(){return ct(ln,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),!qr&&b.a.createElement("span",{className:ft.a.s3,onClick:function(Cn){return Jr(rt,Cn)}},b.a.createElement("i",{className:"iconfont icon-shanchu7"})))})}))})),lr&&b.a.createElement("div",{className:ft.a.listActive},b.a.createElement("span",{className:ft.a.s1},(lr==null?void 0:lr.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: ",lr==null?void 0:lr.name)),!qr&&b.a.createElement("div",{className:ft.a.os},"--\u62D6\u62FD\u4EFB\u52A1\u5173\u5361\u8FDB\u884C\u6392\u5E8F--"))},Me=function(){var Le=Object(a.a)(r.a.mark(function $e(qe){return r.a.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:return rt.next=2,_t();case 2:qe==="new"?E.d.push("/shixuns/".concat(cr,"/edit/new")):E.d.push("/shixuns/".concat(cr,"/edit/newquestion")),or(!1),Ln(void 0),Dn({type:"practiceSetting/setParams",payload:{newQuestion:{st:qe==="new"?0:1,name:""}}});case 6:case"end":return rt.stop()}},$e)}));return function(qe){return Le.apply(this,arguments)}}(),Je=function(){if(Object(Pt.b)(Dn,"\u4E0D\u80FD\u65B0\u5EFA\u4EFB\u52A1\u5173\u5361"))return;or(!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(",Yr.length,")"),b.a.createElement("div",{className:ft.a.listWrap},zr?b.a.createElement(Ye.a,{size:"large"}):!!Yr.length||!!lr?nt(Yr):b.a.createElement(vt.a,{image:bt.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:Je},"+"),b.a.createElement("div",{className:ft.a.btn,style:{left:Un?20:-154}},b.a.createElement("div",{className:ft.a.d1,onClick:function(){return Me("new")}},"\u65B0\u5EFA\u5B9E\u8DF5\u9898\u5173\u5361"),b.a.createElement("div",{className:ft.a.d2,onClick:function(){return Me("newquestion")}},"\u65B0\u5EFA\u7406\u8BBA\u9898\u5173\u5361")))),b.a.createElement("div",{className:Gt?ft.a.elseShrink:ft.a.shrink,onClick:function(){return Zt(!Gt)}},b.a.createElement("i",{className:"iconfont icon-zuoyouzhankai"}))),b.a.createElement("aside",{className:ft.a.right,id:"modal-level-question"},$n===null&&rr.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")):wn.children))},Ge=Object(E.a)(function(Sn){var Yt=Sn.globalSetting,dn=Sn.practiceSetting;return{globalSetting:Yt,practiceSetting:dn}})(He),Ce=o("DjyN"),Ie=o("NUBc"),Fe=o("cWXX"),Be=o("/ezw"),We=o("qVdP"),st=o("jsC+"),Dt=o("lUTK"),Ht=o("BvKs"),rn=o("7Kak"),Bt=o("9yH6"),Ct=o("Qvpy"),Ke=o.n(Ct),et=function(Yt){var dn=Yt.shixunsDetail,Dn=Yt.globalSetting,en=Yt.loading,wn=Yt.dispatch,_n=Yt.onReloadData,In=Object(g.a)(Yt,["shixunsDetail","globalSetting","loading","dispatch","onReloadData"]),Un=Object(T.useState)(),or=Object(de.a)(Un,2),qn=or[0],Pr=or[1],Lr=Object(T.useState)([]),Qn=Object(de.a)(Lr,2),Dr=Qn[0],vr=Qn[1];Object(T.useEffect)(function(){dn.actionTabs.key==="Collaborators-ChangeManager"&&zr()},[dn.actionTabs.key]);var zr=function(){var Gt=Object(a.a)(r.a.mark(function Zt(){var Jt,zn;return r.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:return Ln.next=2,wn({type:"shixunsDetail/getChangeManager",payload:{id:(Jt=dn.actionTabs.params)===null||Jt===void 0?void 0:Jt.id}});case 2:zn=Ln.sent,vr(zn||[]);case 4:case"end":return Ln.stop()}},Zt)}));return function(){return Gt.apply(this,arguments)}}(),Nr=function(){var Zt;wn({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:(Zt=dn.actionTabs.params)===null||Zt===void 0?void 0:Zt.id}}})},$r=function(){var Gt=Object(a.a)(r.a.mark(function Zt(){var Jt,zn;return r.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:if(qn){Ln.next=3;break}return m.b.info("\u6240\u9009\u4EBA\u5458\u4E3A\u7A7A\uFF0C\u6CA1\u6709\u66F4\u6362\u6210\u529F"),Ln.abrupt("return");case 3:return Ln.next=5,wn({type:"shixunsDetail/changeManager",payload:{id:(Jt=dn.actionTabs.params)===null||Jt===void 0?void 0:Jt.id,user_id:qn}});case 5:zn=Ln.sent,tr(),zn&&(_n(),m.b.info(zn.message));case 8:case"end":return Ln.stop()}},Zt)}));return function(){return Gt.apply(this,arguments)}}(),tr=function(){wn({type:"shixunsDetail/setActionTabs",payload:{}}),Pr(null)};return b.a.createElement(f.a,{centered:!0,keyboard:!1,closable:!1,title:"\u66F4\u6362\u7BA1\u7406\u5458",visible:dn.actionTabs.key==="Collaborators-ChangeManager",confirmLoading:en.effects["shixunsDetail/changeManager"],onOk:$r,onCancel:tr},b.a.createElement("div",null,b.a.createElement("div",{className:Ke.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:Ke.a.content},Dr.length?b.a.createElement(Bt.a.Group,{value:qn,onChange:function(Zt){return Pr(Zt.target.value)}},Dr.map(function(Gt,Zt){return b.a.createElement(Bt.a,{className:Ke.a.radio,key:Zt,value:Gt.user_id},Gt.name)})):b.a.createElement("div",{className:Ke.a.add},b.a.createElement("span",null,"\u8BF7\u5148\u5C06\u65B0\u7684\u7BA1\u7406\u5458\u901A\u8FC7",b.a.createElement("a",{className:Ke.a.colorBlue,onClick:Nr},'"\u6DFB\u52A0\u5408\u4F5C\u8005"'),"\u52A0\u5165\u5408\u4F5C\u8005\u5217\u8868")))))},at=Object(E.a)(function(Sn){var Yt=Sn.shixunsDetail,dn=Sn.loading,Dn=Sn.globalSetting;return{shixunsDetail:Yt,globalSetting:Dn,loading:dn}})(et),Pe=o("Znn+"),Xe=o("ZTPi"),ht=o("ju9d"),Et=o("DDK+"),Ot=Xe.a.TabPane,Mt=function(Sn){var Yt=Sn.visible,dn=Sn.onCancel,Dn=Sn.onSelectGroup,en=Sn.shixunId,wn=Sn.onSelectCollaborator;return b.a.createElement(f.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(Xe.a,{defaultActiveKey:"1"},b.a.createElement(Ot,{tab:"\u641C\u7D22\u6DFB\u52A0",key:"1"},b.a.createElement(ht.a,{onCancel:dn,container_type:2,container_id:en,onSelect:wn})),b.a.createElement(Ot,{tab:"\u56E2\u961F\u6DFB\u52A0",key:"2"},b.a.createElement(Et.a,{onCancel:dn,onSelect:Dn}))))},lt=o("oaGz"),Ft=o.n(lt),Lt=o("8Skl"),on=o("ruvs"),mn=function(Yt){var dn,Dn,en,wn,_n,In,Un=Yt.shixunsDetail,or=Yt.globalSetting,qn=Yt.loading,Pr=Yt.user,Lr=Yt.dispatch,Qn=Object(g.a)(Yt,["shixunsDetail","globalSetting","loading","user","dispatch"]),Dr=Object(T.useRef)(),vr=Object(T.useState)(0),zr=Object(de.a)(vr,2),Nr=zr[0],$r=zr[1],tr=Object(T.useState)([]),Gt=Object(de.a)(tr,2),Zt=Gt[0],Jt=Gt[1],zn=Object(T.useState)({id:null,page:1}),$n=Object(de.a)(zn,2),Ln=$n[0],rr=$n[1],cr=(dn=Pr.userInfo)===null||dn===void 0||((Dn=dn.shixun)===null||Dn===void 0)?void 0:Dn.editable,sr=((en=Pr.userInfo)===null||en===void 0?void 0:en.role)<=2||((wn=Pr.userInfo)===null||wn===void 0||((_n=wn.shixun)===null||_n===void 0)?void 0:_n.is_creator);Object(T.useEffect)(function(){Dr.current=Qn.match.params.id,Ln.id=Dr.current,rr(Ln),qr(Ln)},[]);var qr=function(){var Ze=Object(a.a)(r.a.mark(function ct(_t){var nt;return r.a.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:return Je.next=2,Lr({type:"shixunsDetail/getCollaboratorsData",payload:_t});case 2:nt=Je.sent,nt&&(Jt(nt.members||[]),$r(nt.member_count));case 4:case"end":return Je.stop()}},ct)}));return function(_t){return Ze.apply(this,arguments)}}(),lr=function(){var Ze=Object(a.a)(r.a.mark(function ct(){var _t;return r.a.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return Ln.page=1,rr(Ln),_t=Object(on.b)(),Me.next=5,Lr({type:"user/getUserInfo",payload:_t});case 5:return Me.next=7,qr(Ln);case 7:case"end":return Me.stop()}},ct)}));return function(){return Ze.apply(this,arguments)}}(),da=function(ct){Ln.page=ct,rr(Ln),qr(Ln)},Yr=function(ct){f.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:b.a.createElement("div",{className:Ft.a.modal},"\u786E\u5B9A\u8981\u5220\u9664\u5417\uFF1F"),onOk:function(){var _t=Object(a.a)(r.a.mark(function Me(){var Je,Le;return r.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.next=2,Lr({type:"shixunsDetail/deleteCollaborators",payload:{id:Dr.current,userId:ct}});case 2:if(Le=qe.sent,!(((Je=Pr.userInfo)===null||Je===void 0?void 0:Je.user_id)===ct)){qe.next=6;break}return E.d.push("/shixuns"),qe.abrupt("return");case 6:m.b.info(Le==null?void 0:Le.message),Ln.page=1,rr(Ln),qr(Ln);case 10:case"end":return qe.stop()}},Me)}));function nt(){return _t.apply(this,arguments)}return nt}()})},_r=function(){Lr({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-ChangeManager",params:{id:Dr.current}}})};function Sr(Ze,ct,_t,nt){return Kr.apply(this,arguments)}function Kr(){return Kr=Object(a.a)(r.a.mark(function Ze(ct,_t,nt,Me){return r.a.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return Le.next=2,Lr({type:"shixunsDetail/updateCollaboratorEditable",payload:{identifier:ct,user_id:_t,editable:nt?0:1}});case 2:qr(Ln);case 3:case"end":return Le.stop()}},Ze)})),Kr.apply(this,arguments)}var Jr=function(){Lr({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:Dr.current}}})};function Ta(){Lr({type:"shixunsDetail/setActionTabs",payload:{}})}var _a={visible:Un.actionTabs.key==="Collaborators-AddCollaborator",onCancel:Ta,shixunId:Dr.current,onSelectCollaborator:function(){var Ze=Object(a.a)(r.a.mark(function _t(nt){var Me;return r.a.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return Ta(),Le.next=3,Lr({type:"shixunsDetail/addCollaborator",payload:{id:Dr.current,user_ids:nt}});case 3:Me=Le.sent,Me&&(m.b.success("\u6DFB\u52A0\u6210\u529F"),lr());case 5:case"end":return Le.stop()}},_t)}));function ct(_t){return Ze.apply(this,arguments)}return ct}(),onSelectGroup:function(){var Ze=Object(a.a)(r.a.mark(function _t(nt){var Me;return r.a.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return Ta(),Le.next=3,Lr({type:"shixunsDetail/addTeachGroupMember",payload:{identifier:Dr.current,group_id:nt.group_id}});case 3:Me=Le.sent,Me&&(m.b.success("\u6DFB\u52A0\u6210\u529F"),lr());case 5:case"end":return Le.stop()}},_t)}));function ct(_t){return Ze.apply(this,arguments)}return ct}()};return b.a.createElement("section",null,b.a.createElement("div",{className:Ft.a.wrap},b.a.createElement("div",{className:Ft.a.content},((In=Un.detail)===null||In===void 0?void 0:In.identity)<5&&b.a.createElement("div",{className:Ft.a.head},b.a.createElement("span",{className:Ft.a.headCount},"\u5408\u4F5C\u6210\u5458\uFF08",Nr,"\u4EBA\uFF09"),b.a.createElement("div",null,sr&&b.a.createElement(I.a,{type:"primary",ghost:!0,className:Ft.a.button,style:{marginRight:"20px"},onClick:_r},"\u66F4\u6362\u7BA1\u7406\u5458"),cr&&b.a.createElement(I.a,{type:"primary",className:Ft.a.button,style:{marginRight:"40px"},onClick:Jr},"\u6DFB\u52A0\u5408\u4F5C\u8005"))),b.a.createElement("div",{className:Ft.a.list},b.a.createElement(Be.a,{loading:qn.effects["shixunsDetail/getCollaboratorsData"],active:!0,avatar:{size:40},paragraph:{rows:3},className:"mt30"},Zt.map(function(Ze,ct){var _t,nt,Me,Je,Le,$e,qe,pt;return b.a.createElement("div",{style:{display:"inline-block",width:"50%"}},b.a.createElement("div",{className:Ft.a.itemWrap,key:ct},b.a.createElement("a",{href:(_t=Ze.user)===null||_t===void 0?void 0:_t.user_url,target:"_blank",className:Ft.a.imgWrap},b.a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"48",width:"48",className:Ft.a.img,src:"".concat(Oe.a.IMG_SERVER,"/images/").concat((nt=Ze.user)===null||nt===void 0?void 0:nt.image_url)}),((Me=Ze.user)===null||Me===void 0?void 0:Me.shixun_manager)&&b.a.createElement("span",{className:Ft.a.manager},"\u521B\u5EFA\u8005")),b.a.createElement("div",{className:Ft.a.itemContent},b.a.createElement("p",{className:Ft.a.nameWrap},b.a.createElement("a",{href:Ze.user.user_url,target:"_blank",className:Ft.a.name},(Je=Ze.user)===null||Je===void 0?void 0:Je.name,Ze.user.user_id===((Le=Pr.userInfo)===null||Le===void 0?void 0:Le.user_id)?b.a.createElement("span",null,"\u6211"):null),b.a.createElement("div",{className:Ft.a.actionGroup},sr?($e=Ze.user)!==null&&$e!==void 0&&$e.shixun_manager?null:b.a.createElement(st.a,{overlay:b.a.createElement(Ht.a,{selectedKeys:[Ze.editable?"1":"2"],onClick:function(){var It;Sr(Un.detail.identifier,Ze.user.user_id,Ze.editable,(It=Ze.user)===null||It===void 0?void 0:It.name)}},b.a.createElement(Ht.a.Item,{key:1},"\u7F16\u8F91\u6743\u9650"),b.a.createElement(Ht.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(Lt.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)&&cr?b.a.createElement("a",{className:Ft.a.deletetitle,onClick:function(){var It;return Yr((It=Ze.user)===null||It===void 0?void 0:It.user_id)}},"\u5220\u9664"):null)),b.a.createElement("p",{className:Ft.a.schoolWrap},b.a.createElement("span",{className:Ft.a.school},(pt=Ze.user)===null||pt===void 0?void 0:pt.school_name)))))})))),Nr>10&&b.a.createElement("div",{className:Ft.a.countWrap},b.a.createElement(Ie.a,{showQuickJumper:!1,showSizeChanger:!1,total:Nr,onChange:function(ct){return da(ct)},pageSize:10,current:Ln.page}))),b.a.createElement(at,{onReloadData:lr}),b.a.createElement(Mt,_a))},Hn=Object(E.a)(function(Sn){var Yt=Sn.shixunsDetail,dn=Sn.loading,Dn=Sn.globalSetting,en=Sn.user;return{shixunsDetail:Yt,globalSetting:Dn,user:en,loading:dn}})(mn),Xn=o("11/R"),Fn=o("Q9mQ"),xn=o("diRs"),fr=o("jrin"),Yn=o("OaEy"),ar=o("2fM7"),nr=o("ZW9T"),Rr=o("RCxd"),pr=o("4SAo"),sn=o.n(pr),qt=W.a.TextArea,On=function(Yt){var dn=Yt.shixunsDetail,Dn=Yt.globalSetting,en=Yt.loading,wn=Yt.dispatch,_n=Yt.onFinish,In=_n===void 0?function(){}:_n,Un=Object(g.a)(Yt,["shixunsDetail","globalSetting","loading","dispatch","onFinish"]),or=he.a.useForm(),qn=Object(de.a)(or,1),Pr=qn[0],Lr=function(){var Dr=Object(a.a)(r.a.mark(function vr(zr){var Nr,$r;return r.a.wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:return Gt.next=2,wn({type:"shixunsDetail/getCustomScript",payload:{id:(Nr=dn.actionTabs.params)===null||Nr===void 0?void 0:Nr.id,compile:zr.execute,excutive:zr.compile}});case 2:$r=Gt.sent,Qn(),$r&&In($r==null?void 0:$r.shixun_script);case 5:case"end":return Gt.stop()}},vr)}));return function(zr){return Dr.apply(this,arguments)}}(),Qn=function(){wn({type:"shixunsDetail/setActionTabs",payload:{}})};return b.a.createElement(f.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(he.a,{form:Pr,scrollToFirstError:!0,layout:"vertical",onFinish:Lr},b.a.createElement(he.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(qt,{rows:4})),b.a.createElement(he.a.Item,{name:"compile",label:"\u7F16\u8BD1\u547D\u4EE4\uFF1A"},b.a.createElement(qt,{rows:4})),b.a.createElement("div",{className:sn.a.footerWrap},b.a.createElement(he.a.Item,null,b.a.createElement(I.a,{className:"mr5",size:"large",onClick:Qn},"\u53D6\u6D88"),b.a.createElement(I.a,{size:"large",type:"primary",htmlType:"submit",loading:en.effects["shixunsDetail/getCustomScript"]},"\u4FDD\u5B58")))))},Fr=Object(E.a)(function(Sn){var Yt=Sn.shixunsDetail,dn=Sn.loading,Dn=Sn.globalSetting;return{shixunsDetail:Yt,globalSetting:Dn,loading:dn}})(On),Or=o("Lai7"),xr=o.n(Or),dr=o("EGTK"),pe=o("UGPy"),X=o.n(pe),q=o("FrRK"),oe=o("9Bee"),De=o("N3QO"),fe=ar.a.Option,ot=function(Yt){var dn,Dn,en=Yt.practiceSetting,wn=Yt.dispatch,_n=Yt.shixunsDetail,In=Yt.user,Un=Object(T.useState)(null),or=Object(de.a)(Un,2),qn=or[0],Pr=or[1],Lr=Object(T.useState)([]),Qn=Object(de.a)(Lr,2),Dr=Qn[0],vr=Qn[1],zr=Object(T.useState)(!0),Nr=Object(de.a)(zr,2),$r=Nr[0],tr=Nr[1],Gt=Object(T.useState)({}),Zt=Object(de.a)(Gt,2),Jt=Zt[0],zn=Zt[1],$n=Object(T.useState)([]),Ln=Object(de.a)($n,2),rr=Ln[0],cr=Ln[1],sr=Object(T.useState)(),qr=Object(de.a)(sr,2),lr=qr[0],da=qr[1],Yr=Object(T.useState)(),_r=Object(de.a)(Yr,2),Sr=_r[0],Kr=_r[1],Jr=Object(T.useState)([]),Ta=Object(de.a)(Jr,2),_a=Ta[0],Ze=Ta[1],ct=Object(T.useState)({}),_t=Object(de.a)(ct,2),nt=_t[0],Me=_t[1],Je=Object(T.useRef)(null),Le=Object(T.useRef)(!0),$e=Object(T.useRef)({activeId:null,selectId:null,serviceConfigList:null,evaluateScript:null,evaluationScript:null}),qe=Object(T.useRef)(null),pt=en.id,rt=en.is_published,It=nt.frequence_image,Vt=It===void 0?[]:It,fn=nt.environments,ln=fn===void 0?[]:fn,cn=nt.choice_small_type,un=cn===void 0?[]:cn,Wn=nt.other_image,Cn=Wn===void 0?[]:Wn,jr=Jt.name,Mr=Jt.description,Qr=Jt.authorization,Wr=Jt.small_type,ta=Wr===void 0?[]:Wr;Object(T.useEffect)(function(){if(qn===null)return;Gn(),Je.current.scrollTop=0},[qn]),Object(T.useEffect)(function(){if(!pt)return;wr()},[pt]),Object(T.useEffect)(function(){return qn===null?void 0:(Kn(),function(){clearTimeout(qe.current)})},[qn,Dr,rr,lr,Sr]);var Kn=function(){clearTimeout(qe.current),qe.current=setTimeout(function(){!Object(ae.isEqual)($e.current.activeId,qn)||!Object(ae.isEqual)($e.current.selectId,Dr)||!Object(ae.isEqual)($e.current.serviceConfigList,rr)||!Object(ae.isEqual)($e.current.evaluateScript,lr)||!Object(ae.isEqual)($e.current.evaluationScript,Sr)?wn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!0}}):wn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})},500)},wr=function(){var Tr=Object(a.a)(r.a.mark(function br(){var Ir,er,pa,Ea;return r.a.wrap(function(Oa){for(;;)switch(Oa.prev=Oa.next){case 0:return tr(!0),Oa.next=3,Object(c.a)("/api/shixuns/".concat(pt,"/edit_environment_info.json"),{method:"get"});case 3:Ir=Oa.sent,Ir.status===0&&(Me(Object(K.a)({},Ir.data)),tr(!1),Ir!=null&&(er=Ir.data)!==null&&er!==void 0&&er.id?($e.current.activeId=Ir==null||((pa=Ir.data)===null||pa===void 0)?void 0:pa.id,Pr(Ir==null||((Ea=Ir.data)===null||Ea===void 0)?void 0:Ea.id)):Pr(null));case 5:case"end":return Oa.stop()}},br)}));return function(){return Tr.apply(this,arguments)}}(),Gn=function(){var Tr=Object(a.a)(r.a.mark(function br(){var Ir,er,pa,Ea,ba;return r.a.wrap(function(ga){for(;;)switch(ga.prev=ga.next){case 0:return ga.next=2,Object(c.a)("/api/shixuns/".concat(pt,"/edit_environment_info.json"),{method:"get",params:{mirror_repository_id:qn}});case 2:ba=ga.sent,zn(ba.data),$e.current.selectId=(Ir=ba.data)===null||Ir===void 0?void 0:Ir.choice_small_type,vr((er=ba.data)===null||er===void 0?void 0:er.choice_small_type),$e.current.serviceConfigList=(pa=ba.data)===null||pa===void 0?void 0:pa.shixun_service_configs,cr((Ea=ba.data)===null||Ea===void 0?void 0:Ea.shixun_service_configs),$e.current.evaluateScript=ba.data.evaluate_script,da(ba.data.evaluate_script),$e.current.evaluationScript=ba.data.choice_standard_scripts,Kr(ba.data.choice_standard_scripts),Ze(ba.data.standard_scripts);case 13:case"end":return ga.stop()}},br)}));return function(){return Tr.apply(this,arguments)}}(),En=function(){var br,Ir=function(){E.d.push("/shixuns/".concat(pt,"/challenges")),wn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};en!=null&&(br=en.sideBar)!==null&&br!==void 0&&br.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(){Ir()}}):Ir()},jn=function(){var Tr=Object(a.a)(r.a.mark(function br(){var Ir,er,pa,Ea=arguments;return r.a.wrap(function(Oa){for(;;)switch(Oa.prev=Oa.next){case 0:if(Ir=Ea.length>0&&Ea[0]!==void 0?Ea[0]:!1,!Object(Pt.b)(wn,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883")){Oa.next=3;break}return Oa.abrupt("return");case 3:return er={sub_type:Dr,main_type:qn,shixun:{mirror_script_id:Sr},shixun_info:{evaluate_script:lr},shixun_service_configs:rr.map(function(ga){return{mirror_repository_id:ga.mirror_repository_id,cpu_limit:ga.cpu_limit,lower_cpu_limit:ga.lower_cpu_limit,memory_limit:ga.memory_limit,request_limit:ga.request_limit,resource_limit:ga.resource_limit}})},Oa.next=6,Object(c.a)("/api/shixuns/".concat(pt),{method:"put",body:er});case 6:pa=Oa.sent,pa.status===0&&(m.b.success("\u7F16\u8F91\u6210\u529F"),$e.current={activeId:qn,selectId:Dr,serviceConfigList:rr,evaluateScript:lr,evaluationScript:Sr},wn({type:"practiceSetting/getCommonData",payload:{id:pt}}),wn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}));case 8:case"end":return Oa.stop()}},br)}));return function(){return Tr.apply(this,arguments)}}(),Vr=ta.filter(function(Tr){return Dr.includes(Tr.id)}),ua=function(){En()},hr=function(br,Ir,er){var pa=rr.map(function(Ea,ba){return ba===er?Object(K.a)(Object(K.a)({},Ea),{},Object(fr.a)({},Ir,br)):Ea});cr(pa)},aa=function(){if(Object(Pt.b)(wn,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883"))return;wn({type:"shixunsDetail/setActionTabs",payload:{key:"Settings-UseCustomScript",params:{id:pt}}})},xa=function(){var Tr=Object(a.a)(r.a.mark(function br(Ir){var er;return r.a.wrap(function(Ea){for(;;)switch(Ea.prev=Ea.next){case 0:return Ea.next=2,wn({type:"shixunsDetail/getScriptContent",payload:{id:pt,script_id:Ir}});case 2:er=Ea.sent,er&&da(er.content);case 4:case"end":return Ea.stop()}},br)}));return function(Ir){return Tr.apply(this,arguments)}}(),ha=function(br){f.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 Ir=Object(a.a)(r.a.mark(function pa(){return r.a.wrap(function(ba){for(;;)switch(ba.prev=ba.next){case 0:return ba.next=2,xa(br);case 2:f.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 ba.stop()}},pa)}));function er(){return Ir.apply(this,arguments)}return er}()})},Ca=function(br,Ir){var er=rr[0]?[rr[0]]:[];Ir.forEach(function(pa){var Ea=rr.find(function(ga){return ga.mirror_repository_id===Number(pa.key)});if(Ea)er.push(Ea);else{var ba=ta.find(function(ga){return ga.id===Number(pa.key)});if(ba.mirror_name){var Oa={cpu_limit:1,lower_cpu_limit:.1,memory_limit:1024,mirror_repository_id:Number(pa.key),name:ba.mirror_name,request_limit:10};er.push(Oa)}}}),cr(er),vr(br)};return b.a.createElement("div",{className:X.a.practice},b.a.createElement(dr.a,{loading:$r,skin:"night",className:X.a.left,dispatch:wn,value:qn,data:ln,otherData:Cn,tags:Vt,onChange:function(br){return Pr(br)}}),b.a.createElement("div",{className:X.a.right},b.a.createElement("header",null,b.a.createElement("div",{className:X.a.title},"\u5B9E\u9A8C\u73AF\u5883:\xA0",qn===null?"\u2014 \u2014":jr)),b.a.createElement("div",{className:X.a.content,ref:Je},qn===null&&b.a.createElement(vt.a,{image:xr.a,description:"\u8BF7\u9009\u62E9\u5B9E\u9A8C\u73AF\u5883"}),qn!==null&&b.a.createElement("div",{className:X.a.des},b.a.createElement("div",{className:X.a.mainBody},b.a.createElement(oe.a,{value:Mr})),b.a.createElement("div",{className:X.a.title},"\u9644\u5E26\u73AF\u5883"),b.a.createElement("div",{className:X.a.selectBox},b.a.createElement(ar.a,{onChange:function(br,Ir){return Ca(br,Ir)},getPopupContainer:function(br){return br.parentNode},mode:"multiple",bordered:!1,value:Dr,optionFilterProp:"children",placeholder:"\u8BF7\u9009\u62E9\u9644\u5E26\u73AF\u5883",style:{width:400},maxTagCount:6},ta.map(function(Tr,br){return b.a.createElement(fe,{key:Tr.id,value:Tr.id},Tr.type_name)})),b.a.createElement("div",{className:X.a.smallType},Vr.map(function(Tr){return Tr.description?b.a.createElement("span",{key:Tr.id},Tr.description):null}))),!(_n!=null&&(dn=_n.detail)!==null&&dn!==void 0&&dn.is_jupyter_lab)&&b.a.createElement(b.a.Fragment,null,b.a.createElement("div",{className:X.a.title},"\u8BC4\u6D4B\u811A\u672C"),b.a.createElement("div",{className:X.a.evaluating},b.a.createElement("div",{className:X.a.evaluatingLabel},rt&&b.a.createElement("div",{onClick:function(){if(Object(Pt.b)(wn,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883"))return},className:X.a.mask}),b.a.createElement(ar.a,{style:{width:400},bordered:!1,getPopupContainer:function(br){return br.parentNode},value:Sr,placeholder:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u811A\u672C",onChange:function(br){ha(br),Kr(br)}},(_a||[]).map(function(Tr,br){return b.a.createElement(fe,{value:parseInt(Tr.id),name:Tr.scptname,key:br},Tr.scptname)})),b.a.createElement("span",{className:X.a.evaluatingS1,onClick:aa},"\u4F7F\u7528\u81EA\u5B9A\u4E49\u811A\u672C"),b.a.createElement(xn.a,{overlayClassName:X.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(Rr.a,null)))),b.a.createElement(nr.b,{width:"90%",height:450,style:{border:"1px solid #ccc",background:"#f5f5f5",marginTop:"20px"},language:"shell",theme:"vs-light",value:lr,onChange:function(br){if(Le.current){Le.current=!1;return}da(br),Object(Pt.b)(wn,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883")&&setTimeout(function(){Le.current=!0,da($e.current.evaluateScript)},200)}}))),((Dn=_n.detail)===null||Dn===void 0?void 0:Dn.identity)<3&&!!rr.length&&b.a.createElement(b.a.Fragment,null,b.a.createElement("div",{className:X.a.title},"\u670D\u52A1\u914D\u7F6E"),b.a.createElement("div",{className:X.a.serviceSettingWrap},rr==null?void 0:rr.map(function(Tr,br){return b.a.createElement("div",{key:br,className:"mb30"},b.a.createElement("div",null,b.a.createElement("span",{className:"font16"},Tr.name)),b.a.createElement("div",{className:X.a.serviceBox},b.a.createElement("label",{className:X.a.serviceSetLeft},"CPU(\u6838)\uFF1A"),b.a.createElement(W.a,{className:X.a.serviceSetInput,value:Tr.cpu_limit,disabled:rt,onChange:function(er){return hr(er.target.value,"cpu_limit",br)}})),b.a.createElement("div",{className:X.a.serviceBox},b.a.createElement("label",{className:X.a.serviceSetLeft},"\u6700\u4F4ECPU(\u6838)\uFF1A"),b.a.createElement(W.a,{className:X.a.serviceSetInput,value:Tr.lower_cpu_limit,disabled:rt,onChange:function(er){return hr(er.target.value,"lower_cpu_limit",br)}})),b.a.createElement("div",{className:X.a.serviceBox},b.a.createElement("label",{className:X.a.serviceSetLeft},"\u5185\u5B58\u9650\u5236(M)\uFF1A"),b.a.createElement(W.a,{className:X.a.serviceSetInput,value:Tr.memory_limit,disabled:rt,onChange:function(er){return hr(er.target.value,"memory_limit",br)}})),b.a.createElement("div",{className:X.a.serviceBox},b.a.createElement("label",{className:X.a.serviceSetLeft},"\u5185\u5B58\u8981\u6C42(M)\uFF1A"),b.a.createElement(W.a,{className:X.a.serviceSetInput,value:Tr.request_limit,style:{width:300},disabled:rt,onChange:function(er){return hr(er.target.value,"request_limit",br)}}),b.a.createElement("label",{className:X.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:X.a.serviceBox},b.a.createElement("label",{className:X.a.serviceSetLeft},"\u78C1\u76D8\u9650\u5236(K)\uFF1A"),b.a.createElement(W.a,{className:X.a.serviceSetInput,value:Tr.resource_limit,style:{width:300},disabled:rt,maxLength:8,onChange:function(er){var pa=er.target.value,Ea=/^\d*(\.\d*)?$/;pa.match(Ea)&&hr(er.target.value,"resource_limit",br)}})))}))))),b.a.createElement("div",{className:X.a.btns},b.a.createElement(I.a,{size:"large",style:{marginRight:20},onClick:ua},"\u53D6\u6D88"),b.a.createElement(I.a,{size:"large",type:"primary",disabled:qn===null,onClick:function(){return jn()}},"\u4FDD\u5B58"))),b.a.createElement(q.a,null),b.a.createElement(Fr,{onFinish:function(br){return da(br)}}),b.a.createElement(De.a,null))},Qt=Object(E.a)(function(Sn){var Yt=Sn.practiceSetting,dn=Sn.globalSetting,Dn=Sn.shixunsDetail,en=Sn.user;return{practiceSetting:Yt,globalSetting:dn,shixunsDetail:Dn,user:en}})(ot),Mn=o("g9YV"),Vn=o("wCAj"),$t=o("5Dmo"),gn=o("3S7+"),pn=o("P5Jw"),Ar=o("wd/R"),ra=o.n(Ar),oa=o("3d99"),ir=o.n(oa),Ra=o("Lf5v"),La=o("xKgJ"),ca=o("lzim"),Ka=b.a.Fragment,wa=function(Yt){var dn,Dn,en,wn,_n=Yt.globalSetting,In=Yt.dispatch,Un=Yt.practiceSetting,or=Yt.shixunsDetail,qn=Yt.user,Pr=Object(g.a)(Yt,["globalSetting","dispatch","practiceSetting","shixunsDetail","user"]),Lr=Un.id,Qn=Object(T.useState)([]),Dr=Object(de.a)(Qn,2),vr=Dr[0],zr=Dr[1],Nr=Object(T.useState)({}),$r=Object(de.a)(Nr,2),tr=$r[0],Gt=$r[1],Zt=Object(T.useState)(!1),Jt=Object(de.a)(Zt,2),zn=Jt[0],$n=Jt[1],Ln=Object(T.useState)(!0),rr=Object(de.a)(Ln,2),cr=rr[0],sr=rr[1],qr=Object(T.useState)(!1),lr=Object(de.a)(qr,2),da=lr[0],Yr=lr[1],_r=Object(T.useState)(!1),Sr=Object(de.a)(_r,2),Kr=Sr[0],Jr=Sr[1],Ta=Object(T.useState)([]),_a=Object(de.a)(Ta,2),Ze=_a[0],ct=_a[1],_t=Object(T.useState)(!1),nt=Object(de.a)(_t,2),Me=nt[0],Je=nt[1],Le=Object(T.useState)({}),$e=Object(de.a)(Le,2),qe=$e[0],pt=$e[1],rt=Object(T.useState)({page:1,limit:10,total:0}),It=Object(de.a)(rt,2),Vt=It[0],fn=It[1];Object(T.useEffect)(function(){if(!Lr)return;cn()},[Lr]);var ln=function(wr){var Gn=Object(K.a)(Object(K.a)({},Vt),{},{page:wr});ct([]),fn(Gn),cn(Gn)},cn=function(){var Kn=Object(a.a)(r.a.mark(function wr(Gn){var En,jn,Vr;return r.a.wrap(function(hr){for(;;)switch(hr.prev=hr.next){case 0:return En={page:1,limit:10,total:0},jn=Gn||En,$n(!0),hr.next=5,In({type:"shixunsDetail/getSetData",payload:Object(K.a)(Object(K.a)({},jn),{},{id:Lr})});case 5:Vr=hr.sent,Vr!=null&&Vr.data_sets&&($n(!1),zr(Object(be.a)(Vr.data_sets)),fn(Object(K.a)(Object(K.a)({},jn),{},{total:Vr==null?void 0:Vr.data_sets_count})),sr(!1),Gt(Object(K.a)({},Vr)));case 7:case"end":return hr.stop()}},wr)}));return function(Gn){return Kn.apply(this,arguments)}}(),un=function(){return b.a.createElement("div",{className:ir.a.empty},b.a.createElement("img",{src:ca.j,width:"258"}),b.a.createElement("span",{className:"c-grey-c"},"\u6682\u65E0\u6570\u636E\u96C6\u6587\u4EF6~"))},Wn=function(wr){console.log("selectedRowKeys changed: ",wr),ct(wr)},Cn={selectedRowKeys:Ze,columnWidth:70,onChange:Wn},jr=function(wr){Object(l.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5220\u9664"]);var Gn=wr?[wr]:Ze;f.a.confirm({centered:!0,title:"\u786E\u5B9A\u8981\u5220\u9664\u6587\u4EF6\u5417\uFF1F",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){var En=Object(a.a)(r.a.mark(function Vr(){var ua,hr;return r.a.wrap(function(xa){for(;;)switch(xa.prev=xa.next){case 0:return xa.next=2,Object(c.a)("/api/shixuns/".concat(Lr,"/destroy_data_sets.json"),{method:"Delete",body:{id:Gn}});case 2:ua=xa.sent,ua.status===0&&(hr=Gn.length===vr.length&&Vt.page>1?Vt.page-1:Vt.page,m.b.success("\u5220\u9664\u6210\u529F"),cn(Object(K.a)(Object(K.a)({},Vt),{},{page:hr})),ct([]));case 4:case"end":return xa.stop()}},Vr)}));function jn(){return En.apply(this,arguments)}return jn}()})},Mr=function(){var Kn=Object(a.a)(r.a.mark(function wr(){var Gn,En,jn,Vr,ua;return r.a.wrap(function(aa){for(;;)switch(aa.prev=aa.next){case 0:if(Gn=qe.title,En=null,console.log(Gn,"title"),!(Gn==="")){aa.next=7;break}return En="\u6587\u4EF6\u540D\u4E0D\u80FD\u4E3A\u7A7A",pt(Object(K.a)(Object(K.a)({},qe),{},{errorDes:En})),aa.abrupt("return");case 7:if(jn=vr.find(function(xa){return xa.id===(qe==null?void 0:qe.id)}).title,!(Gn===jn.substring(0,jn.lastIndexOf("."))||Gn===jn)){aa.next=12;break}return En="\u6587\u4EF6\u540D\u4E0D\u80FD\u91CD\u540D",pt(Object(K.a)(Object(K.a)({},qe),{},{errorDes:En})),aa.abrupt("return");case 12:return Vr=jn.includes(".")?jn.substring(jn.lastIndexOf("."),jn.length):"",aa.next=15,Object(c.a)("/api/shixuns/".concat(Lr,"/rename_data_sets.json"),{method:"post",body:{id:qe==null?void 0:qe.id,new_file_name:Gn+Vr}});case 15:ua=aa.sent,ua.status===0&&(m.b.success("\u91CD\u547D\u540D\u6210\u529F"),cn(Vt),Yr(!1),pt({}));case 17:case"end":return aa.stop()}},wr)}));return function(){return Kn.apply(this,arguments)}}(),Qr=function(){var wr=qe.download_url;Wr(wr),m.b.success("\u590D\u5236\u6210\u529F"),Jr(!1),pt({})},Wr=function(wr){var Gn=wr,En=document.createElement("input");En.value=Gn,document.body.appendChild(En),En.select(),document.execCommand("Copy"),En.style.display="none"},ta=[{title:"\u6587\u4EF6",dataIndex:"title",key:"title",align:"left",ellipsis:!0,render:function(wr){return b.a.createElement(gn.a,{title:wr},b.a.createElement("span",null,wr))}},{title:"\u5907\u6CE8",dataIndex:"description",key:"description",align:"left",ellipsis:!0,render:function(wr){return b.a.createElement(gn.a,{title:wr},b.a.createElement("span",null,wr||"--"))}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_on",key:"created_on",align:"left",width:180,render:function(wr,Gn){return ra()(Gn.created_on).format("YYYY-MM-DD HH:mm")}},{title:"\u6587\u4EF6\u8DEF\u5F84",dataIndex:"file_path",key:"file_path",align:"left",render:function(wr,Gn){return b.a.createElement("div",{className:ir.a.path},b.a.createElement(gn.a,{title:wr},b.a.createElement("span",{className:ir.a.text},wr)),b.a.createElement(pn.CopyToClipboard,{text:wr,onCopy:function(){return m.b.success("\u590D\u5236\u6210\u529F")}},b.a.createElement(gn.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(La.v)()?200:120,render:function(wr,Gn){return b.a.createElement("div",{className:ir.a.actionsBtns},b.a.createElement(gn.a,{title:"\u91CD\u547D\u540D"},b.a.createElement("span",{className:"iconfont icon-zhongmingming",onClick:function(){var jn;pt(Object(ae.clone)(Object(K.a)(Object(K.a)({},Gn),{},{title:Gn!=null&&Gn.title.includes(".")?Gn==null||((jn=Gn.title)===null||jn===void 0)?void 0:jn.substring(0,Gn.title.lastIndexOf(".")):Gn==null?void 0:Gn.title}))),Yr(!0),Object(l.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u91CD\u547D\u540D"])}})),Object(La.v)()&&b.a.createElement(gn.a,{title:"\u5206\u4EAB"},b.a.createElement("span",{className:"iconfont icon-fenxiang",onClick:function(){Object(l.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5206\u4EAB"]),pt(Object(ae.clone)(Gn)),Jr(!0)}})),Object(La.v)()&&b.a.createElement(gn.a,{title:"\u4E0B\u8F7D"},b.a.createElement("span",{className:"iconfont icon-xiazai3",onClick:function(){Object(l.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u4E0B\u8F7D"]),Object(l.x)(Gn.title,Gn==null?void 0:Gn.download_url)}})),b.a.createElement(gn.a,{title:"\u5220\u9664"},b.a.createElement("span",{className:"iconfont icon-shanchu8",onClick:function(){Object(l.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5220\u9664"]),jr(Gn.id)}})))}}];return b.a.createElement("div",{className:ir.a.dataset},b.a.createElement("div",{className:ir.a.header},b.a.createElement("div",{className:ir.a.title},"\u6570\u636E\u96C6(",Vt.total,")"),b.a.createElement("div",{className:ir.a.dataPath},b.a.createElement("span",{className:ir.a.pathTitle},"\u6570\u636E\u96C6\u8DEF\u5F84:"),b.a.createElement("input",{value:tr==null?void 0:tr.folder_name,disabled:!0}),b.a.createElement(pn.CopyToClipboard,{text:tr==null?void 0:tr.folder_name,onCopy:function(){return m.b.success("\u590D\u5236\u6210\u529F")}},b.a.createElement(gn.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:ir.a.btns},b.a.createElement(I.a,{type:"primary",ghost:!0,onClick:function(){return jr()},disabled:!Ze.length},"\u5220\u9664"),b.a.createElement(I.a,{type:"primary",onClick:function(){return Je(!0)}},"\u4E0A\u4F20\u6587\u4EF6"))),b.a.createElement("div",{className:ir.a.content},b.a.createElement(Be.a,{loading:cr,active:!0,paragraph:{rows:5}},Vt.total?b.a.createElement(Vn.a,{rowSelection:Cn,className:ir.a.customTable,dataSource:vr,bordered:!1,rowKey:function(wr){return wr.id},rowClassName:ir.a.row,columns:ta,loading:zn,pagination:{pageSize:Vt.limit,total:Vt.total,current:Vt.page,onChange:ln,showQuickJumper:!0,hideOnSinglePage:!0,position:["bottomCenter"]}}):un())),b.a.createElement(Ra.a,{rootIdentifier:or==null||((dn=or.detail)===null||dn===void 0)?void 0:dn.root_identifier,wrapClassName:ir.a.uploadFileModal,id:Lr,containerId:or==null||((Dn=or.detail)===null||Dn===void 0)?void 0:Dn.id,local:_n==null||((en=_n.setting)===null||en===void 0)?void 0:en.is_local,dispatch:In,visible:Me,onClose:function(){return Je(!1)},onOK:cn}),b.a.createElement(f.a,{title:"\u91CD\u547D\u540D",visible:da,onOk:Mr,centered:!0,wrapClassName:ir.a.renameModal,onCancel:function(){Yr(!1),pt({})},width:"1000px"},b.a.createElement("div",null,b.a.createElement("div",{className:ir.a.fileName},b.a.createElement("sup",null,"*"),"\u6587\u4EF6\u540D\xA0:"),b.a.createElement(W.a,{value:qe==null?void 0:qe.title,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u5B57",bordered:!1,onChange:function(wr){pt(Object(K.a)(Object(K.a)({},qe),{},{title:wr.target.value,errorDes:null}))},maxLength:60,suffix:"".concat((qe==null||((wn=qe.title)===null||wn===void 0)?void 0:wn.length)||0,"/60")}),(qe==null?void 0:qe.errorDes)&&b.a.createElement("div",{className:ir.a.errorDes},qe==null?void 0:qe.errorDes))),b.a.createElement(f.a,{title:"\u5206\u4EAB\u4E0B\u8F7D\u94FE\u63A5",visible:Kr,onOk:Qr,centered:!0,wrapClassName:ir.a.shareModal,onCancel:function(){Jr(!1),pt({})},width:"1000px",okText:"\u590D\u5236\u94FE\u63A5"},b.a.createElement("div",null,b.a.createElement("div",{className:ir.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(W.a,{bordered:!1,addonBefore:"\u94FE\u63A5",value:qe==null?void 0:qe.download_url}))))},Ja=Object(E.a)(function(Sn){var Yt=Sn.globalSetting,dn=Sn.shixunsDetail,Dn=Sn.practiceSetting,en=Sn.user;return{globalSetting:Yt,shixunsDetail:dn,user:en,practiceSetting:Dn}})(wa),ja=o("aHsQ"),li=o("sGsY"),oi=o("fKo2"),fa=o.n(oi),ma=o("BMKw"),la=o.n(ma),xe=function(Yt){return Yt!=null&&Yt.length?Yt.filter(function(dn,Dn){return Dn!==0}).map(function(dn){return dn.val}).join("").substr(1):""},ut=function(Yt){var dn=Yt.shixunsDetail,Dn=Yt.globalSetting,en=Yt.loading,wn=Yt.dispatch,_n=Yt.fileType,In=Yt.path,Un=Yt.onFinish,or=Un===void 0?function(){}:Un,qn=Object(w.i)(),Pr=Object(T.useState)(""),Lr=Object(de.a)(Pr,2),Qn=Lr[0],Dr=Lr[1],vr=Object(T.useState)([]),zr=Object(de.a)(vr,2),Nr=zr[0],$r=zr[1],tr=Object(T.useState)([]),Gt=Object(de.a)(tr,2),Zt=Gt[0],Jt=Gt[1],zn=[Xt.OriginalPicturePath,Xt.ExpectPicturePath,Xt.PicturePath],$n=zn.includes(_n);Object(T.useEffect)(function(){if(dn.actionTabs.key!=="EditPracticeSetting-SelectFilePath")return;Dr(In||""),Ln()},[dn.actionTabs.key]);var Ln=function(){var Yr=Object(a.a)(r.a.mark(function _r(){var Sr,Kr,Jr,Ta,_a=arguments;return r.a.wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:return Kr=_a.length>0&&_a[0]!==void 0?_a[0]:"",ct.next=3,wn({type:"shixunsDetail/getRepository",payload:{id:qn.id,path:Kr}});case 3:Jr=ct.sent,Kr===""&&!(Jr!=null&&(Sr=Jr.trees)!==null&&Sr!==void 0&&Sr.length)&&m.b.warn("\u8BF7\u5148\u53BB\u4EE3\u7801\u4ED3\u5E93\u63D0\u4EA4\u6587\u4EF6"),Jr!=null&&Jr.trees&&(Ta=Jr.trees.map(function(_t){return Object(K.a)(Object(K.a)({},_t),{name:_t.name,val:_t.name})}),Jt(Ta||[]));case 6:case"end":return ct.stop()}},_r)}));return function(){return Yr.apply(this,arguments)}}(),rr=function(_r){var Sr=xe(Nr),Kr="".concat(Sr&&"".concat(Sr,"/")).concat(_r);_n===Xt.Path?!(Qn!=null&&Qn.includes("".concat(Kr,"\uFF1B")))&&Dr("".concat(Qn).concat(Kr,"\uFF1B")):_n===Xt.ExecPath&&Dr(Kr)},cr=function(_r){if(_r.type==="tree"){Nr.length?Nr.push({val:"/".concat(_r.val),path:_r.val}):Nr.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(_r.val),path:_r.val}),$r(Nr);var Sr=xe(Nr);$n&&Dr(Sr),Ln(Sr)}},sr=function(_r,Sr){var Kr=Nr.filter(function(Ta,_a){return _a<=Sr});$r(Kr);var Jr=xe(Kr);$n&&Dr(Jr),Ln(Jr)},qr=function(){var Yr=Object(a.a)(r.a.mark(function _r(){return r.a.wrap(function(Kr){for(;;)switch(Kr.prev=Kr.next){case 0:or(Qn),lr();case 2:case"end":return Kr.stop()}},_r)}));return function(){return Yr.apply(this,arguments)}}(),lr=function(){Dr(""),$r([]),Jt([]),wn({type:"shixunsDetail/setActionTabs",payload:{}})},da=xe(Nr);return b.a.createElement(f.a,{centered:!0,title:"\u6587\u4EF6\u8DEF\u5F84",closable:!1,keyboard:!1,visible:dn.actionTabs.key==="EditPracticeSetting-SelectFilePath",onOk:qr,onCancel:lr},b.a.createElement("div",{className:la.a.wrap},b.a.createElement("div",{className:la.a.content},b.a.createElement("div",{className:la.a.mainPathWrap},!!(Nr!=null&&Nr.length)&&Nr.map(function(Yr,_r){return b.a.createElement("a",{key:_r,onClick:function(){return sr(Yr,_r)}},Yr.val)})),!!(Zt!=null&&Zt.length)&&Zt.map(function(Yr,_r){return Yr.type==="tree"?b.a.createElement("a",{key:_r,onClick:function(){return cr(Yr)}},b.a.createElement("i",{className:"iconfont icon-wenjianjia ".concat(la.a.colorBlue)}),da&&"".concat(da,"/"),Yr.name):b.a.createElement("a",{key:_r,onClick:function(){return rr("".concat(Yr.name))}},b.a.createElement("i",{className:"iconfont icon-zuoye ".concat(la.a.colorBlue)}),da&&"".concat(da,"/"),Yr.name)})),b.a.createElement("label",{className:"mt5"},"\u9009\u4E2D\u7684\u65B0\u5EFA\u6587\u4EF6\u5939\u76EE\u5F55\uFF1A"),b.a.createElement(W.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(_r){return Dr(_r.target.value)}})))},Rt=Object(E.a)(function(Sn){var Yt=Sn.shixunsDetail,dn=Sn.loading,Dn=Sn.globalSetting;return{shixunsDetail:Yt,globalSetting:Dn,loading:dn.models.index}})(ut),wt=o("dhSg"),Kt=li.a.Countdown,Nt;(function(Sn){Sn[Sn.LoadingFail=1]="LoadingFail",Sn[Sn.Loading=2]="Loading",Sn[Sn.Finish=3]="Finish"})(Nt||(Nt={}));var Xt;(function(Sn){Sn.Path="path",Sn.ExecPath="exec_path",Sn.OriginalPicturePath="original_picture_path",Sn.ExpectPicturePath="expect_picture_path",Sn.PicturePath="picture_path"})(Xt||(Xt={}));var nn=function(Yt){var dn=Yt.globalSetting,Dn=Yt.loading,en=Yt.dispatch,wn=Yt.practiceSetting,_n=Yt.shixunsDetail,In=Object(g.a)(Yt,["globalSetting","loading","dispatch","practiceSetting","shixunsDetail"]),Un=Object(T.useState)(),or=Object(de.a)(Un,2),qn=or[0],Pr=or[1],Lr=Object(T.useState)(),Qn=Object(de.a)(Lr,2),Dr=Qn[0],vr=Qn[1],zr=Object(T.useRef)(),Nr=Object(T.useState)(),$r=Object(de.a)(Nr,2),tr=$r[0],Gt=$r[1],Zt=Object(T.useState)(),Jt=Object(de.a)(Zt,2),zn=Jt[0],$n=Jt[1],Ln=Object(T.useState)(),rr=Object(de.a)(Ln,2),cr=rr[0],sr=rr[1],qr=Object(T.useRef)(!0),lr=Object(T.useState)(!0),da=Object(de.a)(lr,2),Yr=da[0],_r=da[1],Sr=Object(T.useState)(700),Kr=Object(de.a)(Sr,2),Jr=Kr[0],Ta=Kr[1],_a=Object(T.useState)(""),Ze=Object(de.a)(_a,2),ct=Ze[0],_t=Ze[1],nt=Object(T.useRef)(),Me=Object(w.i)();Object(T.useEffect)(function(){Le()},[]);var Je=function(){var ln=Object(a.a)(r.a.mark(function cn(){var un,Wn,Cn;return r.a.wrap(function(Mr){for(;;)switch(Mr.prev=Mr.next){case 0:return Mr.next=2,en({type:"shixunsDetail/updateRepositoryFile",payload:{id:Me.id,path:_n==null||((un=_n.fileContent)===null||un===void 0||((Wn=un.params)===null||Wn===void 0))?void 0:Wn.path,content:qn,secret_repository:Yr?null:!0}});case 2:Cn=Mr.sent,Cn!=null&&Cn.content&&(m.b.info("\u4FDD\u5B58\u6210\u529F"),en({type:"practiceSetting/setSideBarTabs",payload:Object(K.a)(Object(K.a)({},wn.sideBar),{},{confirmLeave:!1})}));case 4:case"end":return Mr.stop()}},cn)}));return function(){return ln.apply(this,arguments)}}(),Le=function(){var ln=Object(a.a)(r.a.mark(function cn(){var un,Wn,Cn,jr,Mr;return r.a.wrap(function(Wr){for(;;)switch(Wr.prev=Wr.next){case 0:return Wr.next=2,Object(s.X)({identifier:Me.id});case 2:if(Cn=Wr.sent,!(Cn!=null&&(un=Cn.data)!==null&&un!==void 0&&(Wn=un.data_list)!==null&&Wn!==void 0&&Wn.length)){Wr.next=6;break}return wt.a.publish("pod-restrict-data",{identifier:Cn==null||((jr=Cn.data)===null||jr===void 0)?void 0:jr.identifier,data_list:Cn==null||((Mr=Cn.data)===null||Mr===void 0)?void 0:Mr.data_list}),Wr.abrupt("return");case 6:Cn!=null&&Cn.url&&_t(Cn==null?void 0:Cn.url);case 7:case"end":return Wr.stop()}},cn)}));return function(){return ln.apply(this,arguments)}}(),$e=function(){var ln=Object(a.a)(r.a.mark(function cn(){var un;return r.a.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return Cn.next=2,Object(s.rb)({identifier:Me.id});case 2:if(un=Cn.sent,!((un==null?void 0:un.status)!==0)){Cn.next=5;break}return Cn.abrupt("return");case 5:un!=null&&un.remainingSeconds?(Gt(Date.now()+un.remainingSeconds*1e3),$n(un.remainingSeconds-300<=0?Date.now()+1e3:Date.now()+(un.remainingSeconds-300)*1e3)):qe();case 6:case"end":return Cn.stop()}},cn)}));return function(){return ln.apply(this,arguments)}}(),qe=function(){f.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 cn=Object(a.a)(r.a.mark(function Wn(){return r.a.wrap(function(jr){for(;;)switch(jr.prev=jr.next){case 0:pt();case 1:case"end":return jr.stop()}},Wn)}));function un(){return cn.apply(this,arguments)}return un}()})},pt=function(){var ln=Object(a.a)(r.a.mark(function cn(){var un;return r.a.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return vr(Nt.Loading),Cn.next=3,Object(s.Cb)({identifier:Me.id});case 3:if(un=Cn.sent,!((un==null?void 0:un.status)!==0)){Cn.next=6;break}return Cn.abrupt("return");case 6:vr(Nt.Finish),_t(un.url),zr.current=un.port,m.b.success("\u91CD\u7F6E\u73AF\u5883\u6210\u529F!");case 10:case"end":return Cn.stop()}},cn)}));return function(){return ln.apply(this,arguments)}}(),rt=function(){f.a.destroyAll(),f.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(Kt,{value:tr,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 cn=Object(a.a)(r.a.mark(function Wn(){var Cn;return r.a.wrap(function(Mr){for(;;)switch(Mr.prev=Mr.next){case 0:return Mr.next=2,Object(s.a)({identifier:Me.id});case 2:if(Cn=Mr.sent,!(Cn.status===0)){Mr.next=7;break}return Mr.next=6,$e();case 6:m.b.success("\u5EF6\u957F\u6210\u529F!");case 7:case"end":return Mr.stop()}},Wn)}));function un(){return cn.apply(this,arguments)}return un}()})},It=function(){f.a.destroyAll(),f.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(cn){en({type:"shixunsDetail/setActionTabs",payload:{key:"EditPracticeSetting-SelectFilePath"}})},fn=function(){var ln=Object(a.a)(r.a.mark(function cn(un){return r.a.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return Cn.next=2,Object(s.Pb)({id:Me.id,startup_file:un});case 2:Le(),en({type:"practiceSetting/getCommonData",payload:Object(K.a)({},Me)});case 4:case"end":return Cn.stop()}},cn)}));return function(un){return ln.apply(this,arguments)}}();return b.a.createElement("div",{className:fa.a.warehouse},b.a.createElement(_.a,{className:"mt20 ml20 font14",align:"middle"},b.a.createElement(U.a,null,b.a.createElement("span",{className:"c-red"},"* "),"\u9ED8\u8BA4\u6253\u5F00\u6587\u4EF6\uFF1A"),b.a.createElement(U.a,{flex:"300px",onClick:function(){return Vt(Xt.ExecPath)}},b.a.createElement(W.a,{value:ct})),b.a.createElement(U.a,{flex:"1"},b.a.createElement(I.a,{type:"primary",className:"ml10",onClick:function(){return Vt(Xt.ExecPath)}},"\u8BBE\u7F6E"))),b.a.createElement("iframe",{onLoad:function(cn){},src:ct,scrolling:"no",style:{height:"calc(100vh - 120px)"},className:"mt10",id:"frame",name:"framename",width:"100%",frameBorder:"0"}),b.a.createElement(Rt,{fileType:"path",path:"",onFinish:function(cn){return fn(cn)}}))},yn=Object(E.a)(function(Sn){var Yt=Sn.loading,dn=Sn.globalSetting,Dn=Sn.practiceSetting,en=Sn.shixunsDetail;return{globalSetting:dn,loading:Yt,practiceSetting:Dn,shixunsDetail:en}})(nn),vn=function(Yt){var dn=Yt.tabsActive,Dn=Object(g.a)(Yt,["tabsActive"]);return b.a.createElement(b.a.Fragment,null,dn==="information"&&b.a.createElement(tt,null),dn==="warehouse"&&b.a.createElement(dt.default,null),dn==="level"&&b.a.createElement(Ge,Dn),dn==="collaborate"&&b.a.createElement(Hn,Dn),dn==="setting"&&b.a.createElement(Xn.a,null),dn==="environment"&&b.a.createElement(Qt,Dn),dn==="dataset"&&b.a.createElement(Ja,null),dn==="service"&&b.a.createElement(yn,Dn))},Nn=vn,An=o("Jv0p"),an=o.n(An),Pn=o("luix"),bn=o.n(Pn),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"}],Rn=function(Yt){var dn,Dn=Yt.globalSetting,en=Yt.loading,wn=Yt.dispatch,_n=Yt.shixunsDetail,In=Yt.practiceSetting,Un=Object(g.a)(Yt,["globalSetting","loading","dispatch","shixunsDetail","practiceSetting"]),or=In.base_info_warning,qn=In.challenges_warning,Pr=In.id,Lr=In.repository_warning,Qn=In.sideBar,Dr=In.service_warning,vr=Object(w.h)(),zr=Object(w.i)();Object(T.useEffect)(function(){var tr,Gt,Zt=vr==null||((tr=vr.query)===null||tr===void 0)?void 0:tr.tabId,Jt=vr.pathname.split("/").length,zn=_n!=null&&(Gt=_n.detail)!==null&&Gt!==void 0&&Gt.windows_vnc?kn.filter(function(Ln){return Ln.tabId!=="dataset"}):kn,$n=zn.map(function(Ln){return Ln.tabId}).includes(Zt);if(Zt&&$n){wn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:Zt}});return}if(Jt>4){wn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"level"}});return}if(!Zt||Zt&&!$n){wn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"information"}});return}},[_n==null||((dn=_n.detail)===null||dn===void 0)?void 0:dn.windows_vnc]),Object(T.useEffect)(function(){return function(){wn({type:"practiceSetting/setSideBarTabs",payload:Object(K.a)(Object(K.a)({},In.sideBar),{},{selectPath:""})})}},[zr.id]);var Nr=function(Gt){var Zt;if(Gt===Qn.tabsActive)return;var Jt=function(){E.d.push("/shixuns/".concat(Pr,"/edit?tabId=").concat(Gt)),wn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:Gt,selectPath:"",confirmLeave:!1}})};In!=null&&(Zt=In.sideBar)!==null&&Zt!==void 0&&Zt.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(){Jt()}}):Jt()},$r=function(){var Gt,Zt=_n!=null&&(Gt=_n.detail)!==null&&Gt!==void 0&&Gt.windows_vnc?kn.filter(function(Jt){return Jt.tabId!=="dataset"}):kn;return Zt.filter(function(Jt){var zn;return _n!=null&&(zn=_n.detail)!==null&&zn!==void 0&&zn.is_jupyter_lab?Jt.tabId!=="level":Jt.tabId!=="service"}).map(function(Jt){var zn=Jt.name,$n=Jt.icon,Ln=Jt.tabId;return b.a.createElement("div",{key:Ln,className:In.sideBar.tabsActive===Ln?an.a.itemActive:an.a.item,onClick:function(){return Nr(Ln)}},$n,b.a.createElement("span",{className:an.a.name},zn),Ln==="information"&&or&&b.a.createElement(gn.a,{title:"\u8BF7\u5B8C\u5584\u57FA\u672C\u4FE1\u606F"},b.a.createElement("img",{src:bn.a,alt:""})),Ln==="level"&&qn&&b.a.createElement(gn.a,{title:"\u8BF7\u521B\u5EFA\u4EFB\u52A1\u5173\u5361"},b.a.createElement("img",{src:bn.a,alt:""})),Ln==="service"&&Dr&&b.a.createElement(gn.a,{title:"\u8BF7\u8BBE\u7F6E\u9ED8\u8BA4\u6253\u5F00\u6587\u4EF6"},b.a.createElement("img",{src:bn.a,alt:""})),Ln==="warehouse"&&Lr&&b.a.createElement(gn.a,{title:"\u8BF7\u5F00\u542F\u4EE3\u7801\u4ED3\u5E93"},b.a.createElement("img",{src:bn.a,alt:""})))})};return b.a.createElement("div",{className:an.a.sidebar},b.a.createElement("div",{className:an.a.items},$r()),b.a.createElement("div",{className:an.a.question},b.a.createElement(gn.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:ca.t,height:44,width:44,alt:""})))))},Jn=Object(E.a)(function(Sn){var Yt=Sn.loading,dn=Sn.globalSetting,Dn=Sn.shixunsDetail,en=Sn.practiceSetting;return{globalSetting:dn,loading:Yt,practiceSetting:en,shixunsDetail:Dn}})(Rn),mr=function(Yt){var dn=Yt.globalSetting,Dn=Yt.loading,en=Yt.dispatch,wn=Yt.practiceSetting,_n=Object(g.a)(Yt,["globalSetting","loading","dispatch","practiceSetting"]),In=wn.sideBar,Un=In.tabsActive,or=Object(w.i)();return Object(T.useEffect)(function(){return en({type:"globalSetting/headerFooterToggle",payload:!1}),en({type:"shixunsDetail/getShixunsDetail",payload:or}),en({type:"shixunsDetail/getSettingsData",payload:or}),function(){en({type:"globalSetting/headerFooterToggle",payload:!0}),en({type:"practiceSetting/setParams",payload:{id:""}})}},[]),b.a.createElement("div",{className:x.a.practiceSetting},b.a.createElement("div",{className:x.a.wrapHeader},b.a.createElement(R,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(P.a)({},_n,{tabsActive:wn.sideBar.tabsActive})))))},Br=z.default=Object(E.a)(function(Sn){var Yt=Sn.loading,dn=Sn.globalSetting,Dn=Sn.practiceSetting;return{globalSetting:dn,loading:Yt,practiceSetting:Dn}})(mr)},WYAk:function(k,z,o){(function(P,g){k.exports=z=g(o("Ib8C"))})(this,function(P){(function(){var g=P,T=g.lib,b=T.Base,y=g.enc,x=y.Utf8,O=g.algo,m=O.HMAC=b.extend({init:function(e,f){e=this._hasher=new e.init,typeof f=="string"&&(f=x.parse(f));var a=e.blockSize,u=a*4;f.sigBytes>u&&(f=e.finalize(f)),f.clamp();for(var r=this._oKey=f.clone(),i=this._iKey=f.clone(),n=r.words,l=i.words,h=0;h<a;h++)n[h]^=1549556828,l[h]^=909522486;r.sigBytes=i.sigBytes=u,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var f=this._hasher,a=f.finalize(e);f.reset();var u=f.finalize(this._oKey.clone().concat(a));return u}})})()})},WaYH:function(k,z,o){"use strict";var P=o("rePB"),g=o("Ff2n"),T=o("VTBJ"),b=o("1OyB"),y=o("vuIU"),x=o("JX7q"),O=o("Ji7U"),m=o("LK+K"),e=o("q1tI"),f=o("TSYQ"),a=o.n(f),u=o("sboe"),r=o("OZM5"),i=function(R){var M=R.prefixCls,C=R.level,S=R.isStart,_=R.isEnd;if(!C)return null;for(var A="".concat(M,"-indent-unit"),U=[],L=0;L<C;L+=1){var N;U.push(e.createElement("span",{key:L,className:a()(A,(N={},Object(P.a)(N,"".concat(A,"-start"),S[L+1]),Object(P.a)(N,"".concat(A,"-end"),_[L+1]),Object(P.a)(N,"".concat(A,"-end-first-level"),!L&&_[0]),N))}))}return e.createElement("span",{"aria-hidden":"true",className:"".concat(M,"-indent")},U)},n=i,l=o("815F"),h="open",d="close",s="---",c=function(v){Object(O.a)(M,v);var R=Object(m.a)(M);function M(){var C;return Object(b.a)(this,M),C=R.apply(this,arguments),C.state={dragNodeHighlight:!1},C.onSelectorClick=function(S){var _=C.props.context.onNodeClick;_(S,Object(l.b)(C.props)),C.isSelectable()?C.onSelect(S):C.onCheck(S)},C.onSelectorDoubleClick=function(S){var _=C.props.context.onNodeDoubleClick;_(S,Object(l.b)(C.props))},C.onSelect=function(S){if(C.isDisabled())return;var _=C.props.context.onNodeSelect;S.preventDefault(),_(S,Object(l.b)(C.props))},C.onCheck=function(S){if(C.isDisabled())return;var _=C.props,A=_.disableCheckbox,U=_.checked,L=C.props.context.onNodeCheck;if(!C.isCheckable()||A)return;S.preventDefault();var N=!U;L(S,Object(l.b)(C.props),N)},C.onMouseEnter=function(S){var _=C.props.context.onNodeMouseEnter;_(S,Object(l.b)(C.props))},C.onMouseLeave=function(S){var _=C.props.context.onNodeMouseLeave;_(S,Object(l.b)(C.props))},C.onContextMenu=function(S){var _=C.props.context.onNodeContextMenu;_(S,Object(l.b)(C.props))},C.onDragStart=function(S){var _=C.props.context.onNodeDragStart;S.stopPropagation(),C.setState({dragNodeHighlight:!0}),_(S,Object(x.a)(C));try{S.dataTransfer.setData("text/plain","")}catch(A){}},C.onDragEnter=function(S){var _=C.props.context.onNodeDragEnter;S.preventDefault(),S.stopPropagation(),_(S,Object(x.a)(C))},C.onDragOver=function(S){var _=C.props.context.onNodeDragOver;S.preventDefault(),S.stopPropagation(),_(S,Object(x.a)(C))},C.onDragLeave=function(S){var _=C.props.context.onNodeDragLeave;S.stopPropagation(),_(S,Object(x.a)(C))},C.onDragEnd=function(S){var _=C.props.context.onNodeDragEnd;S.stopPropagation(),C.setState({dragNodeHighlight:!1}),_(S,Object(x.a)(C))},C.onDrop=function(S){var _=C.props.context.onNodeDrop;S.preventDefault(),S.stopPropagation(),C.setState({dragNodeHighlight:!1}),_(S,Object(x.a)(C))},C.onExpand=function(S){var _=C.props.context.onNodeExpand;_(S,Object(l.b)(C.props))},C.setSelectHandle=function(S){C.selectHandle=S},C.getNodeState=function(){var S=C.props.expanded;return C.isLeaf()?null:S?h:d},C.hasChildren=function(){var S=C.props.eventKey,_=C.props.context.keyEntities,A=_[S]||{},U=A.children;return!!(U||[]).length},C.isLeaf=function(){var S=C.props,_=S.isLeaf,A=S.loaded,U=C.props.context.loadData,L=C.hasChildren();return _===!1?!1:_||!U&&!L||U&&A&&!L},C.isDisabled=function(){var S=C.props.disabled,_=C.props.context.disabled;return!!(_||S)},C.isCheckable=function(){var S=C.props.checkable,_=C.props.context.checkable;return!_||S===!1?!1:_},C.syncLoadData=function(S){var _=S.expanded,A=S.loading,U=S.loaded,L=C.props.context,N=L.loadData,V=L.onNodeLoad;if(A)return;N&&_&&!C.isLeaf()&&(!C.hasChildren()&&!U&&V(Object(l.b)(C.props)))},C.renderSwitcher=function(){var S=C.props,_=S.expanded,A=S.switcherIcon,U=C.props.context,L=U.prefixCls,N=U.switcherIcon,V=A||N;if(C.isLeaf())return e.createElement("span",{className:a()("".concat(L,"-switcher"),"".concat(L,"-switcher-noop"))},typeof V=="function"?V(Object(T.a)(Object(T.a)({},C.props),{},{isLeaf:!0})):V);var H=a()("".concat(L,"-switcher"),"".concat(L,"-switcher_").concat(_?h:d));return e.createElement("span",{onClick:C.onExpand,className:H},typeof V=="function"?V(Object(T.a)(Object(T.a)({},C.props),{},{isLeaf:!1})):V)},C.renderCheckbox=function(){var S=C.props,_=S.checked,A=S.halfChecked,U=S.disableCheckbox,L=C.props.context.prefixCls,N=C.isDisabled(),V=C.isCheckable();if(!V)return null;var H=typeof V!="boolean"?V:null;return e.createElement("span",{className:a()("".concat(L,"-checkbox"),_&&"".concat(L,"-checkbox-checked"),!_&&A&&"".concat(L,"-checkbox-indeterminate"),(N||U)&&"".concat(L,"-checkbox-disabled")),onClick:C.onCheck},H)},C.renderIcon=function(){var S=C.props.loading,_=C.props.context.prefixCls;return e.createElement("span",{className:a()("".concat(_,"-iconEle"),"".concat(_,"-icon__").concat(C.getNodeState()||"docu"),S&&"".concat(_,"-icon_loading"))})},C.renderSelector=function(){var S=C.state.dragNodeHighlight,_=C.props,A=_.title,U=_.selected,L=_.icon,N=_.loading,V=_.data,H=C.props.context,D=H.prefixCls,W=H.showIcon,F=H.icon,I=H.draggable,K=H.loadData,ee=H.titleRender,he=C.isDisabled(),de="".concat(D,"-node-content-wrapper"),Se;if(W){var Te=L||F;Se=Te?e.createElement("span",{className:a()("".concat(D,"-iconEle"),"".concat(D,"-icon__customize"))},typeof Te=="function"?Te(C.props):Te):C.renderIcon()}else K&&N&&(Se=C.renderIcon());var ce;typeof A=="function"?ce=A(V):ee?ce=ee(V):ce=A;var be=e.createElement("span",{className:"".concat(D,"-title")},ce);return e.createElement("span",{ref:C.setSelectHandle,title:typeof A=="string"?A:"",className:a()("".concat(de),"".concat(de,"-").concat(C.getNodeState()||"normal"),!he&&(U||S)&&"".concat(D,"-node-selected"),!he&&I&&"draggable"),draggable:!he&&I||void 0,"aria-grabbed":!he&&I||void 0,onMouseEnter:C.onMouseEnter,onMouseLeave:C.onMouseLeave,onContextMenu:C.onContextMenu,onClick:C.onSelectorClick,onDoubleClick:C.onSelectorDoubleClick,onDragStart:I?C.onDragStart:void 0},Se,be)},C}return Object(y.a)(M,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var S=this.props.selectable,_=this.props.context.selectable;return typeof S=="boolean"?S:_}},{key:"render",value:function(){var S,_=this.props,A=_.eventKey,U=_.className,L=_.style,N=_.dragOver,V=_.dragOverGapTop,H=_.dragOverGapBottom,D=_.isLeaf,W=_.isStart,F=_.isEnd,I=_.expanded,K=_.selected,ee=_.checked,he=_.halfChecked,de=_.loading,Se=_.domRef,Te=_.active,ce=_.onMouseMove,be=Object(g.a)(_,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),Ee=this.props.context,ue=Ee.prefixCls,le=Ee.filterTreeNode,$=Ee.draggable,me=Ee.keyEntities,re=this.isDisabled(),ae=Object(r.f)(be),Oe=me[A]||{},se=Oe.level,te=F[F.length-1];return e.createElement("div",Object.assign({ref:Se,className:a()(U,"".concat(ue,"-treenode"),(S={},Object(P.a)(S,"".concat(ue,"-treenode-disabled"),re),Object(P.a)(S,"".concat(ue,"-treenode-switcher-").concat(I?"open":"close"),!D),Object(P.a)(S,"".concat(ue,"-treenode-checkbox-checked"),ee),Object(P.a)(S,"".concat(ue,"-treenode-checkbox-indeterminate"),he),Object(P.a)(S,"".concat(ue,"-treenode-selected"),K),Object(P.a)(S,"".concat(ue,"-treenode-loading"),de),Object(P.a)(S,"".concat(ue,"-treenode-active"),Te),Object(P.a)(S,"".concat(ue,"-treenode-leaf-last"),te),Object(P.a)(S,"drag-over",!re&&N),Object(P.a)(S,"drag-over-gap-top",!re&&V),Object(P.a)(S,"drag-over-gap-bottom",!re&&H),Object(P.a)(S,"filter-node",le&&le(Object(l.b)(this.props))),S)),style:L,onDragEnter:$?this.onDragEnter:void 0,onDragOver:$?this.onDragOver:void 0,onDragLeave:$?this.onDragLeave:void 0,onDrop:$?this.onDrop:void 0,onDragEnd:$?this.onDragEnd:void 0,onMouseMove:ce},ae),e.createElement(n,{prefixCls:ue,level:se,isStart:W,isEnd:F}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),M}(e.Component),w=function(R){return e.createElement(u.a.Consumer,null,function(M){return e.createElement(c,Object.assign({},R,{context:M}))})};w.displayName="TreeNode",w.defaultProps={title:s},w.isTreeNode=1;var E=z.a=w},XIdC:function(k,z,o){"use strict";var P=o("rePB"),g=o("ODXe"),T=o("Ff2n"),b=o("q1tI"),y=o.n(b),x=o("TSYQ"),O=o.n(x),m=o("6cGi"),e=o("4IlW"),f=b.forwardRef(function(a,u){var r,i=a.prefixCls,n=i===void 0?"rc-switch":i,l=a.className,h=a.checked,d=a.defaultChecked,s=a.disabled,c=a.loadingIcon,w=a.checkedChildren,E=a.unCheckedChildren,v=a.onClick,R=a.onChange,M=a.onKeyDown,C=Object(T.a)(a,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),S=Object(m.a)(!1,{value:h,defaultValue:d}),_=Object(g.a)(S,2),A=_[0],U=_[1];function L(D,W){var F=A;return s||(F=D,U(F),R==null||R(F,W)),F}function N(D){D.which===e.a.LEFT?L(!1,D):D.which===e.a.RIGHT&&L(!0,D),M==null||M(D)}function V(D){var W=L(!A,D);v==null||v(W,D)}var H=O()(n,l,(r={},Object(P.a)(r,"".concat(n,"-checked"),A),Object(P.a)(r,"".concat(n,"-disabled"),s),r));return b.createElement("button",Object.assign({},C,{type:"button",role:"switch","aria-checked":A,disabled:s,className:H,ref:u,onKeyDown:N,onClick:V}),c,b.createElement("span",{className:"".concat(n,"-inner")},A?w:E))});f.displayName="Switch",z.a=f},Xsq0:function(k,z,o){k.exports=o.p+"static/mainbanner.0a951716.jpg"},Y1PL:function(k,z,o){"use strict";o.r(z),o.d(z,"ResizableTextArea",function(){return he});var P=o("wx14"),g=o("1OyB"),T=o("vuIU"),b=o("Ji7U"),y=o("LK+K"),x=o("q1tI"),O=o("VTBJ"),m=o("rePB"),e=o("Zm9Q"),f=o("Kwbf"),a=o("c+Xe"),u=o("m+aA"),r=o("bdgK"),i=new Map;function n(Te){Te.forEach(function(ce){var be,Ee=ce.target;(be=i.get(Ee))===null||be===void 0||be.forEach(function(ue){return ue(Ee)})})}var l=new r.default(n),h=null,d=null;function s(Te,ce){i.has(Te)||(i.set(Te,new Set),l.observe(Te)),i.get(Te).add(ce)}function c(Te,ce){i.has(Te)&&(i.get(Te).delete(ce),i.get(Te).size||(l.unobserve(Te),i.delete(Te)))}var w=function(Te){Object(b.a)(be,Te);var ce=Object(y.a)(be);function be(){return Object(g.a)(this,be),ce.apply(this,arguments)}return Object(T.a)(be,[{key:"render",value:function(){return this.props.children}}]),be}(x.Component),E=x.createContext(null);function v(Te){var ce=Te.children,be=Te.onBatchResize,Ee=x.useRef(0),ue=x.useRef([]),le=x.useContext(E),$=x.useCallback(function(me,re,ae){Ee.current+=1;var Oe=Ee.current;ue.current.push({size:me,element:re,data:ae}),Promise.resolve().then(function(){Oe===Ee.current&&(be==null||be(ue.current),ue.current=[])}),le==null||le(me,re,ae)},[be,le]);return x.createElement(E.Provider,{value:$},ce)}function R(Te){var ce=Te.children,be=Te.disabled,Ee=x.useRef(null),ue=x.useRef(null),le=x.useContext(E),$=x.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),me=x.isValidElement(ce)&&Object(a.c)(ce),re=me?ce.ref:null,ae=x.useMemo(function(){return Object(a.a)(re,Ee)},[re,Ee]),Oe=x.useRef(Te);Oe.current=Te;var se=x.useCallback(function(te){var Q=Oe.current,J=Q.onResize,ve=Q.data,_e=te.getBoundingClientRect(),Ae=_e.width,Qe=_e.height,tt=te.offsetWidth,dt=te.offsetHeight,mt=Math.floor(Ae),vt=Math.floor(Qe);if($.current.width!==mt||$.current.height!==vt||$.current.offsetWidth!==tt||$.current.offsetHeight!==dt){var yt={width:mt,height:vt,offsetWidth:tt,offsetHeight:dt};$.current=yt;var Ye=tt===Math.round(Ae)?Ae:tt,Ue=dt===Math.round(Qe)?Qe:dt,ft=Object(O.a)(Object(O.a)({},yt),{},{offsetWidth:Ye,offsetHeight:Ue});le==null||le(ft,te,ve),J&&Promise.resolve().then(function(){J(ft,te)})}},[]);return x.useEffect(function(){var te=Object(u.a)(Ee.current)||Object(u.a)(ue.current);return te&&!be&&s(te,se),function(){return c(te,se)}},[Ee.current,be]),x.createElement(w,{ref:ue},me?x.cloneElement(ce,{ref:ae}):ce)}var M="rc-observer-key";function C(Te){var ce=Te.children,be=Object(e.a)(ce);return be.map(function(Ee,ue){var le=(Ee==null?void 0:Ee.key)||"".concat(M,"-").concat(ue);return x.createElement(R,Object(P.a)({},Te,{key:le}),Ee)})}C.Collection=v;var S=C,_=o("bT9E"),A=o("TSYQ"),U=o.n(A),L=`
|
|
|
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"],V={},H;function D(Te){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,be=Te.getAttribute("id")||Te.getAttribute("data-reactid")||Te.getAttribute("name");if(ce&&V[be])return V[be];var Ee=window.getComputedStyle(Te),ue=Ee.getPropertyValue("box-sizing")||Ee.getPropertyValue("-moz-box-sizing")||Ee.getPropertyValue("-webkit-box-sizing"),le=parseFloat(Ee.getPropertyValue("padding-bottom"))+parseFloat(Ee.getPropertyValue("padding-top")),$=parseFloat(Ee.getPropertyValue("border-bottom-width"))+parseFloat(Ee.getPropertyValue("border-top-width")),me=N.map(function(ae){return"".concat(ae,":").concat(Ee.getPropertyValue(ae))}).join(";"),re={sizingStyle:me,paddingSize:le,borderSize:$,boxSizing:ue};return ce&&be&&(V[be]=re),re}function W(Te){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ee=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;H||(H=document.createElement("textarea"),H.setAttribute("tab-index","-1"),H.setAttribute("aria-hidden","true"),document.body.appendChild(H)),Te.getAttribute("wrap")?H.setAttribute("wrap",Te.getAttribute("wrap")):H.removeAttribute("wrap");var ue=D(Te,ce),le=ue.paddingSize,$=ue.borderSize,me=ue.boxSizing,re=ue.sizingStyle;H.setAttribute("style","".concat(re,";").concat(L)),H.value=Te.value||Te.placeholder||"";var ae=Number.MIN_SAFE_INTEGER,Oe=Number.MAX_SAFE_INTEGER,se=H.scrollHeight,te;if(me==="border-box"?se+=$:me==="content-box"&&(se-=le),be!==null||Ee!==null){H.value=" ";var Q=H.scrollHeight-le;be!==null&&(ae=Q*be,me==="border-box"&&(ae=ae+le+$),se=Math.max(ae,se)),Ee!==null&&(Oe=Q*Ee,me==="border-box"&&(Oe=Oe+le+$),te=se>Oe?"":"hidden",se=Math.min(Oe,se))}return{height:se,minHeight:ae,maxHeight:Oe,overflowY:te,resize:"none"}}var F=o("Gytx"),I=o.n(F),K;(function(Te){Te[Te.NONE=0]="NONE",Te[Te.RESIZING=1]="RESIZING",Te[Te.RESIZED=2]="RESIZED"})(K||(K={}));var ee=function(Te){Object(b.a)(be,Te);var ce=Object(y.a)(be);function be(Ee){var ue;return Object(g.a)(this,be),ue=ce.call(this,Ee),ue.nextFrameActionId=void 0,ue.resizeFrameId=void 0,ue.textArea=void 0,ue.saveTextArea=function(le){ue.textArea=le},ue.handleResize=function(le){var $=ue.state.resizeStatus,me=ue.props,re=me.autoSize,ae=me.onResize;if($!==K.NONE)return;typeof ae=="function"&&ae(le),re&&ue.resizeOnNextFrame()},ue.resizeOnNextFrame=function(){cancelAnimationFrame(ue.nextFrameActionId),ue.nextFrameActionId=requestAnimationFrame(ue.resizeTextarea)},ue.resizeTextarea=function(){var le=ue.props.autoSize;if(!le||!ue.textArea)return;var $=le.minRows,me=le.maxRows,re=W(ue.textArea,!1,$,me);ue.setState({textareaStyles:re,resizeStatus:K.RESIZING},function(){cancelAnimationFrame(ue.resizeFrameId),ue.resizeFrameId=requestAnimationFrame(function(){ue.setState({resizeStatus:K.RESIZED},function(){ue.resizeFrameId=requestAnimationFrame(function(){ue.setState({resizeStatus:K.NONE}),ue.fixFirefoxAutoScroll()})})})})},ue.renderTextArea=function(){var le=ue.props,$=le.prefixCls,me=$===void 0?"rc-textarea":$,re=le.autoSize,ae=le.onResize,Oe=le.className,se=le.disabled,te=ue.state,Q=te.textareaStyles,J=te.resizeStatus,ve=Object(_.a)(ue.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),_e=U()(me,Oe,Object(m.a)({},"".concat(me,"-disabled"),se));"value"in ve&&(ve.value=ve.value||"");var Ae=Object(O.a)(Object(O.a)(Object(O.a)({},ue.props.style),Q),J===K.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return x.createElement(S,{onResize:ue.handleResize,disabled:!(re||ae)},x.createElement("textarea",Object(P.a)({},ve,{className:_e,style:Ae,ref:ue.saveTextArea})))},ue.state={textareaStyles:{},resizeStatus:K.NONE},ue}return Object(T.a)(be,[{key:"componentDidUpdate",value:function(ue){(ue.value!==this.props.value||!I()(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,le=this.textArea.selectionEnd;this.textArea.setSelectionRange(ue,le)}}catch($){}}},{key:"render",value:function(){return this.renderTextArea()}}]),be}(x.Component),he=ee,de=function(Te){Object(b.a)(be,Te);var ce=Object(y.a)(be);function be(Ee){var ue;Object(g.a)(this,be),ue=ce.call(this,Ee),ue.resizableTextArea=void 0,ue.focus=function(){ue.resizableTextArea.textArea.focus()},ue.saveTextArea=function($){ue.resizableTextArea=$},ue.handleChange=function($){var me=ue.props.onChange;ue.setValue($.target.value,function(){ue.resizableTextArea.resizeTextarea()}),me&&me($)},ue.handleKeyDown=function($){var me=ue.props,re=me.onPressEnter,ae=me.onKeyDown;$.keyCode===13&&re&&re($),ae&&ae($)};var le=typeof Ee.value=="undefined"||Ee.value===null?Ee.defaultValue:Ee.value;return ue.state={value:le},ue}return Object(T.a)(be,[{key:"setValue",value:function(ue,le){"value"in this.props||this.setState({value:ue},le)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return x.createElement(he,Object(P.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),Se=z.default=de},ZJlW:function(k,z,o){k.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(k,z,o){"use strict";o.d(z,"a",function(){return F});var P=o("k1fw"),g=o("oBTY"),T=o("miYZ"),b=o("tsqr"),y=o("rAM+"),x=o("tJVT"),O=o("PpiC"),m=o("q1tI"),e=o.n(m),f=o("bdgK"),a=o("9og8"),u=o("WmNS"),r=o.n(u),i={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"]},l={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","friend","gcnew","generic","goto","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:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
|
|
|
`)},{label:"if",content:["if () {"," $0","}"].join(`
|
|
|
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $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 <cstdio>",content:["#include <cstdio>"].join(`
|
|
|
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
|
|
|
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
|
|
|
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
|
|
|
`)},{label:"include <map>",content:["#include <map>"].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(`
|
|
|
`)}]},d=o("5VLF"),s=o.n(d),c={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"]}},w=function(K,ee){return ee.map(function(he){return{label:he,kind:K.languages.CompletionItemKind.Keyword,insertText:he}})},E=function(K){return Object.keys(c.tables).map(function(ee){return{label:ee,kind:K.languages.CompletionItemKind.Variable,insertText:ee}})},v=function(K,ee){var he=c.tables[K];return he?he.map(function(de){return{label:de,kind:ee.languages.CompletionItemKind.Field,insertText:de}}):[]};function R(I,K,ee,he,de){var Se=K.getWordUntilPosition(ee),Te={startLineNumber:ee.lineNumber,endLineNumber:ee.lineNumber,startColumn:Se.startColumn,endColumn:Se.endColumn},ce=he.map(function(be){return{label:be,kind:I.languages.CompletionItemKind.Keyword,insertText:be,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Te}});return de.map(function(be){ce.push(Object(P.a)(Object(P.a)({},be),{},{range:Te}))}),ce}var M=function(I){c.languages.map(function(de){return I.languages.registerDocumentFormattingEditProvider(de,{provideDocumentFormattingEdits:function(Te,ce,be){return Object(a.a)(r.a.mark(function Ee(){var ue;return r.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return ue=s()(Te.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}),$.abrupt("return",[{range:Te.getFullModelRange(),text:ue}]);case 2:case"end":return $.stop()}},Ee)}))()}}),de});var K=l.quickKey.map(function(de){return{label:de.label,kind:I.languages.CompletionItemKind.Method,insertText:de.content,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),ee=h.quickKey.map(function(de){return{label:de.label,kind:I.languages.CompletionItemKind.Method,insertText:de.content,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),he=n.quickKey.map(function(de){return{label:de.label,kind:I.languages.CompletionItemKind.Method,insertText:de.content,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet}});I.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Se,Te){var ce=Se.getWordUntilPosition(Te),be={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:ce.startColumn,endColumn:ce.endColumn},Ee=Se.getLineContent(Te.lineNumber).substring(ce.startColumn-2,ce.endColumn);return{suggestions:[].concat(Object(g.a)(l.keywords.map(function(ue){return{label:ue,kind:I.languages.CompletionItemKind.Function,documentation:ue,insertText:ue,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:be}})),Object(g.a)(l.quickKey.map(function(ue){return{label:ue.label,kind:I.languages.CompletionItemKind.Function,documentation:ue.content,insertText:Ee.startsWith("#")?ue.content.replace(/#/,""):ue.content,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:be}})))}}}),I.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Se,Te){var ce=Se.getWordUntilPosition(Te),be={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:ce.startColumn,endColumn:ce.endColumn};return{suggestions:Object(g.a)(i.keywords.map(function(Ee){return{label:Ee,kind:I.languages.CompletionItemKind.Function,documentation:Ee,insertText:Ee,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:be}}))}}}),I.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Se,Te){var ce=Se.getWordUntilPosition(Te),be={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:ce.startColumn,endColumn:ce.endColumn},Ee=Se.getLineContent(Te.lineNumber).substring(ce.startColumn-2,ce.endColumn);return{suggestions:[].concat(Object(g.a)(n.keywords.map(function(ue){return{label:ue,kind:I.languages.CompletionItemKind.Function,documentation:ue,insertText:ue,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:be}})),Object(g.a)(n.quickKey.map(function(ue){return{label:ue.label,kind:I.languages.CompletionItemKind.Function,documentation:ue.content,insertText:Ee.startsWith("#")?ue.content.replace(/#/,""):ue.content,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:be}})))}}}),I.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Se,Te){var ce=Se.getWordUntilPosition(Te),be={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:ce.startColumn,endColumn:ce.endColumn},Ee=Se.getLineContent(Te.lineNumber).substring(ce.startColumn-2,ce.endColumn);return{suggestions:[].concat(Object(g.a)(h.keywords.map(function(ue){return{label:ue,kind:I.languages.CompletionItemKind.Function,documentation:ue,insertText:ue,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:be}})),Object(g.a)(h.quickKey.map(function(ue){return{label:ue.label,kind:I.languages.CompletionItemKind.Function,documentation:ue.content,insertText:Ee.startsWith("#")?ue.content.replace(/#/,""):ue.content,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:be}})))}}})},C="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",S=o("fjLI"),_=o("LvDl"),A=o("+ua5");function U(I){return/^\d+$/.test(I)?"".concat(I,"px"):I}function L(){}var N=!1,V={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python"};function H(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],K=I;if(Array.isArray(I)){for(var ee=0;ee<I.length;ee++){var he=V[I[ee]];if(he)return he}return K[0]}return V[K]||K}var D=null,W=z.b=function(I){var K=I.width,ee=K===void 0?"100%":K,he=I.height,de=he===void 0?"100%":he,Se=I.value,Te=I.language,ce=Te===void 0?"javascript":Te,be=I.style,Ee=be===void 0?{}:be,ue=I.options,le=ue===void 0?{}:ue,$=I.overrideServices,me=$===void 0?{}:$,re=I.theme,ae=re===void 0?"vs-dark":re,Oe=I.onEditBlur,se=I.onSave,te=I.autoHeight,Q=te===void 0?!1:te,J=I.forbidCopy,ve=J===void 0?!1:J,_e=I.onChange,Ae=_e===void 0?L:_e,Qe=I.editorDidMount,tt=Qe===void 0?L:Qe,dt=I.onFocus,mt=dt===void 0?L:dt,vt=I.filename,yt=vt===void 0?"educoder.txt":vt,Ye=I.errorLine,Ue=I.errorContent,ft=Ue===void 0?"":Ue,jt=Object(O.a)(I,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","filename","errorLine","errorContent"]),bt=Object(m.useRef)(),Pt=Object(m.useRef)({}),it=Object(m.useRef)(),He=Object(m.useRef)(),Ge=Object(m.useRef)(!1),Ce=Object(m.useRef)(),Ie=Object(m.useState)(!1),Fe=Object(x.a)(Ie,2),Be=Fe[0],We=Fe[1];function st(){var Lt;return bt.current&&(Lt=new f.default(function(on){var mn=Object(y.a)(on),Hn;try{for(mn.s();!(Hn=mn.n()).done;){var Xn=Hn.value;(Xn.target.offsetHeight>0||Xn.target.offsetWidth>0)&&Pt.current.instance.layout()}}catch(Fn){mn.e(Fn)}finally{mn.f()}}),Lt.observe(bt.current)),Lt}function Dt(){b.b.warn(decodeURIComponent(C))}var Ht=function(){var on=Pt.current.instance;if(Se!=null&&on&&Be){var mn=on.getModel();mn&&Se!==mn.getValue()&&(N=!0,mn.setValue(Se),on.layout(),N=!1)}};Object(m.useEffect)(function(){He.current&&clearTimeout(He.current),He.current=setTimeout(function(){Ht()},500)},[Se,Be,Pt.current]),Object(m.useEffect)(function(){if(Ye&&Pt.current&&Pt.current.instance){var Lt=Pt.current.instance;Lt.changeViewZones(function(mn){var Hn=document.createElement("div");Hn.style.padding="10px 20px",Hn.style.width="calc(100% - 20px)",Hn.className="my-error-line-wrp",Hn.innerHTML=ft,mn.addZone({afterLineNumber:Ye||11,heightInLines:3,domNode:Hn})});var on={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}};Lt.addOverlayWidget(on),Lt.revealPositionInCenter({lineNumber:20,column:1})}},[Ye,Pt.current,Be]);function rn(){var Lt=Pt.current.instance;if(Lt){var on=Lt.getSelection(),mn=Pt.current.pastePos||{},Hn=new D.Range(mn.startLineNumber||on.endLineNumber,mn.startColumn||on.endColumn,mn.endLineNumber||on.endLineNumber,mn.endColumn||on.endColumn);setTimeout(function(){Lt.executeEdits("",[{range:Hn,text:""}])},300)}}function Bt(Lt){(window.navigator.platform.match("Mac")?Lt.metaKey:Lt.ctrlKey)&&Lt.keyCode==83&&(Lt.preventDefault(),se())}var Ct=function(){if(Q&&Pt.current.instance){var on=Pt.current.instance.getContentHeight();lt(on<de?de:on)}else lt(de)};function Ke(Lt){var on=document.createEvent("MouseEvents");on.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Lt.dispatchEvent(on)}function et(Lt,on){var mn=window.URL||window.webkitURL||window,Hn=new Blob([on]),Xn=document.createElementNS("http://www.w3.org/1999/xhtml","a");Xn.href=mn.createObjectURL(Hn),Xn.download=Lt,Ke(Xn)}Object(m.useEffect)(function(){Ct()},[Ct]),Object(m.useEffect)(function(){bt.current&&!Be&&Promise.all([o.e(15),o.e(27)]).then(o.t.bind(null,"M/lh",7)).then(function(Lt){try{D=Lt,Pt.current.instance=D.editor.create(bt.current,{value:Se,language:H(ce),theme:ae,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},me);var on=Pt.current.instance,mn=S.d._menuItems,Hn=Object(g.a)(mn).find(function(Yn){return Yn[0]._debugName=="EditorContext"}),Xn=Hn[1],Fn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],xn=function(ar,nr){var Rr=ar._first;do{var pr,sn,qt=nr.includes((pr=Rr.element)===null||pr===void 0||((sn=pr.command)===null||sn===void 0)?void 0:sn.id);qt&&ar._remove(Rr)}while(Rr=Rr.next)};if(tt(on,D),setTimeout(function(){Ct(),Pt.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:function(){et(yt||"educoder.txt",on.getValue())}}),on.getDomNode().addEventListener("input",function(){it.current.autoFormat&&on.getAction("editor.action.formatDocument").run()})},500),Pt.current.subscription=on.onDidChangeModelContent(function(Yn){Ge.current?clearTimeout(Ce.current):(Ct(),Ae(on.getValue(),Yn)),Ce.current=setTimeout(function(){Ge.current=!1},500)}),window.Monaco||M(D,H(ce)),ve&&(xn(Xn,Fn),bt.current.classList.add("noCopyPaste"),on.onKeyDown(function(Yn){var ar=Yn.keyCode,nr=Yn.ctrlKey,Rr=Yn.metaKey;(ar===33||ar===52)&&(Rr||nr)&&(Dt(),Yn.preventDefault())})),window.Monaco=D,Oe&&on.onDidBlurEditorWidget(function(){Oe(on.getValue())}),mt&&on.onDidFocusEditorText(function(){mt(on.getValue())}),ve){on.addCommand(D.KeyMod.CtrlCmd|D.KeyCode.KEY_V,function(){return Dt(),null}),on.onDidPaste(function(Yn){Pt.current.pastePos=Yn});try{window.addEventListener("paste",rn)}catch(Yn){}}var fr=st();return We(!0),function(){var Yn=Pt.current.instance;Yn.dispose();var ar=Yn.getModel();ar&&ar.dispose(),Pt.current.subscription&&Pt.current.subscription.dispose(),ve&&window.removeEventListener("paste",rn),fr.unobserve(bt.current)}}catch(Yn){}})},[]),Object(m.useEffect)(function(){var Lt=Pt.current.instance;if(Lt&&Be)return document.addEventListener("keydown",Bt,!1),function(){document.removeEventListener("keydown",Bt)}},[se,Be]),Object(m.useEffect)(function(){var Lt=Pt.current.instance;if(Lt&&Be){var on=H(ce);D.editor.setModelLanguage(Lt.getModel(),on),console.log("language:",ce,Lt.getModel(),on)}},[ce,Be]),Object(m.useEffect)(function(){var Lt=Pt.current.instance;Lt&&Be&&D.editor.setTheme(ae)},[ae,Be]),Object(m.useEffect)(function(){var Lt=Pt.current.instance;it.current=le,Lt&&Be&&(Lt.updateOptions(Object(P.a)({},le)),setTimeout(function(){Lt.getModel().updateOptions(Object(P.a)({},le))},200))},[JSON.stringify(le),Be]),Object(m.useEffect)(function(){var Lt=Pt.current.instance;Lt&&Be&&Lt.layout()},[ee,de,Be]);var at=Object(m.useState)(U(ee)),Pe=Object(x.a)(at,2),Xe=Pe[0],ht=Pe[1],Et=Object(m.useState)(U(de)),Ot=Object(x.a)(Et,2),Mt=Ot[0],lt=Ot[1],Ft=Object(P.a)(Object(P.a)({},Ee),{},{width:Xe,height:Mt});return e.a.createElement("div",{className:"my-monaco-editor",ref:bt,style:Ft})};function F(I){var K=I.width,ee=K===void 0?"100%":K,he=I.height,de=he===void 0?"100%":he,Se=I.original,Te=I.modified,ce=I.language,be=I.options,Ee=be===void 0?{}:be,ue=Object(m.useRef)(),le=Object(m.useState)(null),$=Object(x.a)(le,2),me=$[0],re=$[1];function ae(Q){var J;return ue.current&&(J=new f.default(function(ve){var _e=Object(y.a)(ve),Ae;try{for(_e.s();!(Ae=_e.n()).done;){var Qe=Ae.value;(Qe.target.offsetHeight>0||Qe.target.offsetWidth>0)&&Q.layout()}}catch(tt){_e.e(tt)}finally{_e.f()}}),J.observe(ue.current)),J}Object(m.useEffect)(function(){ue.current&&Promise.all([o.e(15),o.e(27)]).then(o.t.bind(null,"M/lh",7)).then(function(Q){D=Q;var J=D.editor.createDiffEditor(ue.current,Object(P.a)(Object(P.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},Ee),{},{wordWrap:!0}));re(J);var ve=ae(J);return function(){J.dispose();var _e=J.getModel();_e&&_e.dispose(),ve.unobserve(ue.current)}})},[]),Object(m.useEffect)(function(){me&&me.setModel({original:D.editor.createModel(Se,ce),modified:D.editor.createModel(Te,ce)})},[Se,Te,ce,me]);var Oe=U(ee),se=U(de),te={width:Oe,height:se};return e.a.createElement("div",{className:"my-diff-editor",ref:ue,style:te})}},ZpRC:function(k,z,o){"use strict";function P(a){return typeof a=="object"&&a!=null&&a.nodeType===1}function g(a,u){return(!u||a!=="hidden")&&a!=="visible"&&a!=="clip"}function T(a,u){if(a.clientHeight<a.scrollHeight||a.clientWidth<a.scrollWidth){var r=getComputedStyle(a,null);return g(r.overflowY,u)||g(r.overflowX,u)||function(i){var n=function(l){if(!l.ownerDocument||!l.ownerDocument.defaultView)return null;try{return l.ownerDocument.defaultView.frameElement}catch(h){return null}}(i);return!!n&&(n.clientHeight<i.scrollHeight||n.clientWidth<i.scrollWidth)}(a)}return!1}function b(a,u,r,i,n,l,h,d){return l<a&&h>u||l>a&&h<u?0:l<=a&&d<=r||h>=u&&d>=r?l-a-i:h>u&&d<r||l<a&&d>r?h-u+n:0}var y=function(a,u){var r=window,i=u.scrollMode,n=u.block,l=u.inline,h=u.boundary,d=u.skipOverflowHiddenElements,s=typeof h=="function"?h:function(Q){return Q!==h};if(!P(a))throw new TypeError("Invalid target");for(var c=document.scrollingElement||document.documentElement,w=[],E=a;P(E)&&s(E);){if((E=E.parentElement)===c){w.push(E);break}E!=null&&E===document.body&&T(E)&&!T(document.documentElement)||E!=null&&T(E,d)&&w.push(E)}for(var v=r.visualViewport?r.visualViewport.width:innerWidth,R=r.visualViewport?r.visualViewport.height:innerHeight,M=window.scrollX||pageXOffset,C=window.scrollY||pageYOffset,S=a.getBoundingClientRect(),_=S.height,A=S.width,U=S.top,L=S.right,N=S.bottom,V=S.left,H=n==="start"||n==="nearest"?U:n==="end"?N:U+_/2,D=l==="center"?V+A/2:l==="end"?L:V,W=[],F=0;F<w.length;F++){var I=w[F],K=I.getBoundingClientRect(),ee=K.height,he=K.width,de=K.top,Se=K.right,Te=K.bottom,ce=K.left;if(i==="if-needed"&&U>=0&&V>=0&&N<=R&&L<=v&&U>=de&&N<=Te&&V>=ce&&L<=Se)return W;var be=getComputedStyle(I),Ee=parseInt(be.borderLeftWidth,10),ue=parseInt(be.borderTopWidth,10),le=parseInt(be.borderRightWidth,10),$=parseInt(be.borderBottomWidth,10),me=0,re=0,ae="offsetWidth"in I?I.offsetWidth-I.clientWidth-Ee-le:0,Oe="offsetHeight"in I?I.offsetHeight-I.clientHeight-ue-$:0;if(c===I)me=n==="start"?H:n==="end"?H-R:n==="nearest"?b(C,C+R,R,ue,$,C+H,C+H+_,_):H-R/2,re=l==="start"?D:l==="center"?D-v/2:l==="end"?D-v:b(M,M+v,v,Ee,le,M+D,M+D+A,A),me=Math.max(0,me+C),re=Math.max(0,re+M);else{me=n==="start"?H-de-ue:n==="end"?H-Te+$+Oe:n==="nearest"?b(de,Te,ee,ue,$+Oe,H,H+_,_):H-(de+ee/2)+Oe/2,re=l==="start"?D-ce-Ee:l==="center"?D-(ce+he/2)+ae/2:l==="end"?D-Se+le+ae:b(ce,Se,he,Ee,le+ae,D,D+A,A);var se=I.scrollLeft,te=I.scrollTop;H+=te-(me=Math.max(0,Math.min(te+me,I.scrollHeight-ee+Oe))),D+=se-(re=Math.max(0,Math.min(se+re,I.scrollWidth-he+ae)))}W.push({el:I,top:me,left:re})}return W};function x(a){return a===Object(a)&&Object.keys(a).length!==0}function O(a,u){u===void 0&&(u="auto");var r="scrollBehavior"in document.body.style;a.forEach(function(i){var n=i.el,l=i.top,h=i.left;n.scroll&&r?n.scroll({top:l,left:h,behavior:u}):(n.scrollTop=l,n.scrollLeft=h)})}function m(a){return a===!1?{block:"end",inline:"nearest"}:x(a)?a:{block:"start",inline:"nearest"}}function e(a,u){var r=!a.ownerDocument.documentElement.contains(a);if(x(u)&&typeof u.behavior=="function")return u.behavior(r?[]:y(a,u));if(r)return;var i=m(u);return O(y(a,i),i.behavior)}var f=z.a=e},Zss7:function(k,z,o){var P;(function(g){var T=/^\s+/,b=/\s+$/,y=0,x=g.round,O=g.min,m=g.max,e=g.random;function f($,me){if($=$||"",me=me||{},$ instanceof f)return $;if(!(this instanceof f))return new f($,me);var re=a($);this._originalInput=$,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++}f.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 $=this.toRgb();return($.r*299+$.g*587+$.b*114)/1e3},getLuminance:function(){var $=this.toRgb(),me,re,ae,Oe,se,te;return me=$.r/255,re=$.g/255,ae=$.b/255,me<=.03928?Oe=me/12.92:Oe=g.pow((me+.055)/1.055,2.4),re<=.03928?se=re/12.92:se=g.pow((re+.055)/1.055,2.4),ae<=.03928?te=ae/12.92:te=g.pow((ae+.055)/1.055,2.4),.2126*Oe+.7152*se+.0722*te},setAlpha:function($){return this._a=W($),this._roundA=x(100*this._a)/100,this},toHsv:function(){var $=n(this._r,this._g,this._b);return{h:$.h*360,s:$.s,v:$.v,a:this._a}},toHsvString:function(){var $=n(this._r,this._g,this._b),me=x($.h*360),re=x($.s*100),ae=x($.v*100);return this._a==1?"hsv("+me+", "+re+"%, "+ae+"%)":"hsva("+me+", "+re+"%, "+ae+"%, "+this._roundA+")"},toHsl:function(){var $=r(this._r,this._g,this._b);return{h:$.h*360,s:$.s,l:$.l,a:this._a}},toHslString:function(){var $=r(this._r,this._g,this._b),me=x($.h*360),re=x($.s*100),ae=x($.l*100);return this._a==1?"hsl("+me+", "+re+"%, "+ae+"%)":"hsla("+me+", "+re+"%, "+ae+"%, "+this._roundA+")"},toHex:function($){return h(this._r,this._g,this._b,$)},toHexString:function($){return"#"+this.toHex($)},toHex8:function($){return d(this._r,this._g,this._b,this._a,$)},toHex8String:function($){return"#"+this.toHex8($)},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(F(this._r,255)*100)+"%",g:x(F(this._g,255)*100)+"%",b:x(F(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+x(F(this._r,255)*100)+"%, "+x(F(this._g,255)*100)+"%, "+x(F(this._b,255)*100)+"%)":"rgba("+x(F(this._r,255)*100)+"%, "+x(F(this._g,255)*100)+"%, "+x(F(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:H[h(this._r,this._g,this._b,!0)]||!1},toFilter:function($){var me="#"+s(this._r,this._g,this._b,this._a),re=me,ae=this._gradientType?"GradientType = 1, ":"";if($){var Oe=f($);re="#"+s(Oe._r,Oe._g,Oe._b,Oe._a)}return"progid:DXImageTransform.Microsoft.gradient("+ae+"startColorstr="+me+",endColorstr="+re+")"},toString:function($){var me=!!$;$=$||this._format;var re=!1,ae=this._a<1&&this._a>=0,Oe=!me&&ae&&($==="hex"||$==="hex6"||$==="hex3"||$==="hex4"||$==="hex8"||$==="name");return Oe?$==="name"&&this._a===0?this.toName():this.toRgbString():($==="rgb"&&(re=this.toRgbString()),$==="prgb"&&(re=this.toPercentageRgbString()),($==="hex"||$==="hex6")&&(re=this.toHexString()),$==="hex3"&&(re=this.toHexString(!0)),$==="hex4"&&(re=this.toHex8String(!0)),$==="hex8"&&(re=this.toHex8String()),$==="name"&&(re=this.toName()),$==="hsl"&&(re=this.toHslString()),$==="hsv"&&(re=this.toHsvString()),re||this.toHexString())},clone:function(){return f(this.toString())},_applyModification:function($,me){var re=$.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(R,arguments)},darken:function(){return this._applyModification(M,arguments)},desaturate:function(){return this._applyModification(c,arguments)},saturate:function(){return this._applyModification(w,arguments)},greyscale:function(){return this._applyModification(E,arguments)},spin:function(){return this._applyModification(C,arguments)},_applyCombination:function($,me){return $.apply(null,[this].concat([].slice.call(me)))},analogous:function(){return this._applyCombination(L,arguments)},complement:function(){return this._applyCombination(S,arguments)},monochromatic:function(){return this._applyCombination(N,arguments)},splitcomplement:function(){return this._applyCombination(U,arguments)},triad:function(){return this._applyCombination(_,arguments)},tetrad:function(){return this._applyCombination(A,arguments)}},f.fromRatio=function($,me){if(typeof $=="object"){var re={};for(var ae in $)$.hasOwnProperty(ae)&&(ae==="a"?re[ae]=$[ae]:re[ae]=Se($[ae]));$=re}return f($,me)};function a($){var me={r:0,g:0,b:0},re=1,ae=null,Oe=null,se=null,te=!1,Q=!1;return typeof $=="string"&&($=ue($)),typeof $=="object"&&(Ee($.r)&&Ee($.g)&&Ee($.b)?(me=u($.r,$.g,$.b),te=!0,Q=String($.r).substr(-1)==="%"?"prgb":"rgb"):Ee($.h)&&Ee($.s)&&Ee($.v)?(ae=Se($.s),Oe=Se($.v),me=l($.h,ae,Oe),te=!0,Q="hsv"):Ee($.h)&&Ee($.s)&&Ee($.l)&&(ae=Se($.s),se=Se($.l),me=i($.h,ae,se),te=!0,Q="hsl"),$.hasOwnProperty("a")&&(re=$.a)),re=W(re),{ok:te,format:$.format||Q,r:O(255,m(me.r,0)),g:O(255,m(me.g,0)),b:O(255,m(me.b,0)),a:re}}function u($,me,re){return{r:F($,255)*255,g:F(me,255)*255,b:F(re,255)*255}}function r($,me,re){$=F($,255),me=F(me,255),re=F(re,255);var ae=m($,me,re),Oe=O($,me,re),se,te,Q=(ae+Oe)/2;if(ae==Oe)se=te=0;else{var J=ae-Oe;te=Q>.5?J/(2-ae-Oe):J/(ae+Oe);switch(ae){case $:se=(me-re)/J+(me<re?6:0);break;case me:se=(re-$)/J+2;break;case re:se=($-me)/J+4;break}se/=6}return{h:se,s:te,l:Q}}function i($,me,re){var ae,Oe,se;$=F($,360),me=F(me,100),re=F(re,100);function te(ve,_e,Ae){return Ae<0&&(Ae+=1),Ae>1&&(Ae-=1),Ae<1/6?ve+(_e-ve)*6*Ae:Ae<1/2?_e:Ae<2/3?ve+(_e-ve)*(2/3-Ae)*6:ve}if(me===0)ae=Oe=se=re;else{var Q=re<.5?re*(1+me):re+me-re*me,J=2*re-Q;ae=te(J,Q,$+1/3),Oe=te(J,Q,$),se=te(J,Q,$-1/3)}return{r:ae*255,g:Oe*255,b:se*255}}function n($,me,re){$=F($,255),me=F(me,255),re=F(re,255);var ae=m($,me,re),Oe=O($,me,re),se,te,Q=ae,J=ae-Oe;if(te=ae===0?0:J/ae,ae==Oe)se=0;else{switch(ae){case $:se=(me-re)/J+(me<re?6:0);break;case me:se=(re-$)/J+2;break;case re:se=($-me)/J+4;break}se/=6}return{h:se,s:te,v:Q}}function l($,me,re){$=F($,360)*6,me=F(me,100),re=F(re,100);var ae=g.floor($),Oe=$-ae,se=re*(1-me),te=re*(1-Oe*me),Q=re*(1-(1-Oe)*me),J=ae%6,ve=[re,te,se,se,Q,re][J],_e=[Q,re,re,te,se,se][J],Ae=[se,se,Q,re,re,te][J];return{r:ve*255,g:_e*255,b:Ae*255}}function h($,me,re,ae){var Oe=[de(x($).toString(16)),de(x(me).toString(16)),de(x(re).toString(16))];return ae&&Oe[0].charAt(0)==Oe[0].charAt(1)&&Oe[1].charAt(0)==Oe[1].charAt(1)&&Oe[2].charAt(0)==Oe[2].charAt(1)?Oe[0].charAt(0)+Oe[1].charAt(0)+Oe[2].charAt(0):Oe.join("")}function d($,me,re,ae,Oe){var se=[de(x($).toString(16)),de(x(me).toString(16)),de(x(re).toString(16)),de(Te(ae))];return Oe&&se[0].charAt(0)==se[0].charAt(1)&&se[1].charAt(0)==se[1].charAt(1)&&se[2].charAt(0)==se[2].charAt(1)&&se[3].charAt(0)==se[3].charAt(1)?se[0].charAt(0)+se[1].charAt(0)+se[2].charAt(0)+se[3].charAt(0):se.join("")}function s($,me,re,ae){var Oe=[de(Te(ae)),de(x($).toString(16)),de(x(me).toString(16)),de(x(re).toString(16))];return Oe.join("")}f.equals=function($,me){return!$||!me?!1:f($).toRgbString()==f(me).toRgbString()},f.random=function(){return f.fromRatio({r:e(),g:e(),b:e()})};function c($,me){me=me===0?0:me||10;var re=f($).toHsl();return re.s-=me/100,re.s=I(re.s),f(re)}function w($,me){me=me===0?0:me||10;var re=f($).toHsl();return re.s+=me/100,re.s=I(re.s),f(re)}function E($){return f($).desaturate(100)}function v($,me){me=me===0?0:me||10;var re=f($).toHsl();return re.l+=me/100,re.l=I(re.l),f(re)}function R($,me){me=me===0?0:me||10;var re=f($).toRgb();return re.r=m(0,O(255,re.r-x(255*-(me/100)))),re.g=m(0,O(255,re.g-x(255*-(me/100)))),re.b=m(0,O(255,re.b-x(255*-(me/100)))),f(re)}function M($,me){me=me===0?0:me||10;var re=f($).toHsl();return re.l-=me/100,re.l=I(re.l),f(re)}function C($,me){var re=f($).toHsl(),ae=(re.h+me)%360;return re.h=ae<0?360+ae:ae,f(re)}function S($){var me=f($).toHsl();return me.h=(me.h+180)%360,f(me)}function _($){var me=f($).toHsl(),re=me.h;return[f($),f({h:(re+120)%360,s:me.s,l:me.l}),f({h:(re+240)%360,s:me.s,l:me.l})]}function A($){var me=f($).toHsl(),re=me.h;return[f($),f({h:(re+90)%360,s:me.s,l:me.l}),f({h:(re+180)%360,s:me.s,l:me.l}),f({h:(re+270)%360,s:me.s,l:me.l})]}function U($){var me=f($).toHsl(),re=me.h;return[f($),f({h:(re+72)%360,s:me.s,l:me.l}),f({h:(re+216)%360,s:me.s,l:me.l})]}function L($,me,re){me=me||6,re=re||30;var ae=f($).toHsl(),Oe=360/re,se=[f($)];for(ae.h=(ae.h-(Oe*me>>1)+720)%360;--me;)ae.h=(ae.h+Oe)%360,se.push(f(ae));return se}function N($,me){me=me||6;for(var re=f($).toHsv(),ae=re.h,Oe=re.s,se=re.v,te=[],Q=1/me;me--;)te.push(f({h:ae,s:Oe,v:se})),se=(se+Q)%1;return te}f.mix=function($,me,re){re=re===0?0:re||50;var ae=f($).toRgb(),Oe=f(me).toRgb(),se=re/100,te={r:(Oe.r-ae.r)*se+ae.r,g:(Oe.g-ae.g)*se+ae.g,b:(Oe.b-ae.b)*se+ae.b,a:(Oe.a-ae.a)*se+ae.a};return f(te)},f.readability=function($,me){var re=f($),ae=f(me);return(g.max(re.getLuminance(),ae.getLuminance())+.05)/(g.min(re.getLuminance(),ae.getLuminance())+.05)},f.isReadable=function($,me,re){var ae=f.readability($,me),Oe,se;se=!1,Oe=le(re);switch(Oe.level+Oe.size){case"AAsmall":case"AAAlarge":se=ae>=4.5;break;case"AAlarge":se=ae>=3;break;case"AAAsmall":se=ae>=7;break}return se},f.mostReadable=function($,me,re){var ae=null,Oe=0,se,te,Q,J;re=re||{},te=re.includeFallbackColors,Q=re.level,J=re.size;for(var ve=0;ve<me.length;ve++)se=f.readability($,me[ve]),se>Oe&&(Oe=se,ae=f(me[ve]));return f.isReadable($,ae,{level:Q,size:J})||!te?ae:(re.includeFallbackColors=!1,f.mostReadable($,["#fff","#000"],re))};var V=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},H=f.hexNames=D(V);function D($){var me={};for(var re in $)$.hasOwnProperty(re)&&(me[$[re]]=re);return me}function W($){return $=parseFloat($),(isNaN($)||$<0||$>1)&&($=1),$}function F($,me){ee($)&&($="100%");var re=he($);return $=O(me,m(0,parseFloat($))),re&&($=parseInt($*me,10)/100),g.abs($-me)<1e-6?1:$%me/parseFloat(me)}function I($){return O(1,m(0,$))}function K($){return parseInt($,16)}function ee($){return typeof $=="string"&&$.indexOf(".")!=-1&&parseFloat($)===1}function he($){return typeof $=="string"&&$.indexOf("%")!=-1}function de($){return $.length==1?"0"+$:""+$}function Se($){return $<=1&&($=$*100+"%"),$}function Te($){return g.round(parseFloat($)*255).toString(16)}function ce($){return K($)/255}var be=function(){var $="[-\\+]?\\d+%?",me="[-\\+]?\\d*\\.\\d+%?",re="(?:"+me+")|(?:"+$+")",ae="[\\s|\\(]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")\\s*\\)?",Oe="[\\s|\\(]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")\\s*\\)?";return{CSS_UNIT:new RegExp(re),rgb:new RegExp("rgb"+ae),rgba:new RegExp("rgba"+Oe),hsl:new RegExp("hsl"+ae),hsla:new RegExp("hsla"+Oe),hsv:new RegExp("hsv"+ae),hsva:new RegExp("hsva"+Oe),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Ee($){return!!be.CSS_UNIT.exec($)}function ue($){$=$.replace(T,"").replace(b,"").toLowerCase();var me=!1;if(V[$])$=V[$],me=!0;else if($=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var re;return(re=be.rgb.exec($))?{r:re[1],g:re[2],b:re[3]}:(re=be.rgba.exec($))?{r:re[1],g:re[2],b:re[3],a:re[4]}:(re=be.hsl.exec($))?{h:re[1],s:re[2],l:re[3]}:(re=be.hsla.exec($))?{h:re[1],s:re[2],l:re[3],a:re[4]}:(re=be.hsv.exec($))?{h:re[1],s:re[2],v:re[3]}:(re=be.hsva.exec($))?{h:re[1],s:re[2],v:re[3],a:re[4]}:(re=be.hex8.exec($))?{r:K(re[1]),g:K(re[2]),b:K(re[3]),a:ce(re[4]),format:me?"name":"hex8"}:(re=be.hex6.exec($))?{r:K(re[1]),g:K(re[2]),b:K(re[3]),format:me?"name":"hex"}:(re=be.hex4.exec($))?{r:K(re[1]+""+re[1]),g:K(re[2]+""+re[2]),b:K(re[3]+""+re[3]),a:ce(re[4]+""+re[4]),format:me?"name":"hex8"}:(re=be.hex3.exec($))?{r:K(re[1]+""+re[1]),g:K(re[2]+""+re[2]),b:K(re[3]+""+re[3]),format:me?"name":"hex"}:!1}function le($){var me,re;return $=$||{level:"AA",size:"small"},me=($.level||"AA").toUpperCase(),re=($.size||"small").toLowerCase(),me!=="AA"&&me!=="AAA"&&(me="AA"),re!=="small"&&re!=="large"&&(re="small"),{level:me,size:re}}k.exports?k.exports=f:!(P=function(){return f}.call(z,o,z,k),P!==void 0&&(k.exports=P))})(Math)},aBPH:function(k,z,o){k.exports={wrap:"wrap___1eujs",modal:"modal___3NBln",title:"title___26WI_",path:"path___HzdTG",colorBlue:"colorBlue___3sufs",width240:"width240___DJhZ8",filePath:"filePath___13aFg"}},auZk:function(k,z,o){k.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(k,z,o){k.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(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(P){return function(g){var T=P,b=T.lib,y=b.CipherParams,x=T.enc,O=x.Hex,m=T.format,e=m.Hex={stringify:function(f){return f.ciphertext.toString(O)},parse:function(f){var a=O.parse(f);return y.create({ciphertext:a})}}}(),P.format.Hex})},bT9E:function(k,z,o){"use strict";o.d(z,"a",function(){return g});var P=o("VTBJ");function g(T,b){var y=Object(P.a)({},T);return Array.isArray(b)&&b.forEach(function(x){delete y[x]}),y}},bUJZ:function(k,z){k.exports="data:image/png;base64,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"},biw7:function(k,z,o){"use strict";var P=o("q1tI"),g=o.n(P),T=P.createContext(null);z.a=T},c5Ni:function(k,z,o){},cFMs:function(k,z){k.exports="data:image/png;base64,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"},cRFk:function(k,z,o){k.exports=o.p+"static/RepositoryNoneData.828085a8.png"},ch0t:function(k,z,o){"use strict";o.r(z);var P=o("+L6B"),g=o("2/Rp"),T=o("T2oS"),b=o("W9HT"),y=o("14J3"),x=o("BMrR"),O=o("2qtc"),m=o("kLXV"),e=o("jCWc"),f=o("kPKH"),a=o("qVdP"),u=o("jsC+"),r=o("k1fw"),i=o("lUTK"),n=o("BvKs"),l=o("9og8"),h=o("miYZ"),d=o("tsqr"),s=o("5Dmo"),c=o("3S7+"),w=o("tJVT"),E=o("PpiC"),v=o("Znn+"),R=o("ZTPi"),M=o("WmNS"),C=o.n(M),S=o("q1tI"),_=o.n(S),A=o("B6bo"),U=o.n(A),L=o("Ty5D"),N=o("9kvl"),V=o("BoS7"),H=o("Sdc0"),D=o("oBTY"),W=o("ozfa"),F=o("MJZm"),I=o("P5Jw"),K=o("5NDa"),ee=o("5rEg"),he=o("y8nQ"),de=o("Vl3Y"),Se=o("aBPH"),Te=o.n(Se),ce=function(Ke){var et=Ke.shixunsDetail,at=Ke.globalSetting,Pe=Ke.loading,Xe=Ke.user,ht=Ke.dispatch,Et=Ke.isRepository,Ot=Object(E.a)(Ke,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Mt=Object(L.h)(),lt=Object(L.i)(),Ft=Object(S.useState)({}),Lt=Object(w.a)(Ft,2),on=Lt[0],mn=Lt[1],Hn=Object(S.useRef)(),Xn=de.a.useForm(),Fn=Object(w.a)(Xn,1),xn=Fn[0],fr=Object(S.useState)(""),Yn=Object(w.a)(fr,2),ar=Yn[0],nr=Yn[1];Object(S.useEffect)(function(){Ot.visible&&xn.resetFields()},[Ot.visible]),Object(S.useEffect)(function(){var sn=sessionStorage.getItem("pathArray");if(sn){var qt=sn.split(",").join("/"),On=qt.indexOf("/")===0?qt.substr(1):qt;nr(On)}},[]),Object(S.useEffect)(function(){var sn,qt;Hn.current=(sn=Mt.pathname)===null||sn===void 0||((qt=sn.split("/"))===null||qt===void 0)?void 0:qt[2]},[]);var Rr=function(){var sn=Object(l.a)(C.a.mark(function qt(){var On,Fr,Or=arguments;return C.a.wrap(function(dr){for(;;)switch(dr.prev=dr.next){case 0:return On=Or.length>0&&Or[0]!==void 0?Or[0]:{},dr.next=3,ht({type:"shixunsDetail/addRepositoryFile",payload:{id:lt.id,message:On.commitMessage,content:"",path:(Ot.defaultPath?Ot.defaultPath+"/":"")+On.path+"/"+(On.file||".gitkeep"),secret_repository:Et?void 0:!0}});case 3:Fr=dr.sent,Fr!=null&&Fr.url&&(d.b.success("\u6DFB\u52A0\u6210\u529F"),Ot.onOK({path:(Ot.defaultPath?Ot.defaultPath+"/":"")+On.path+"/"+(On.file||".gitkeep"),name:On.path.split("/")[On.path.split("/").length-1]}),Ot.onClose());case 5:case"end":return dr.stop()}},qt)}));return function(){return sn.apply(this,arguments)}}(),pr=function(){var qt,On;N.d.push("/shixuns/".concat(Hn.current,"/").concat((qt=Mt.pathname)===null||qt===void 0||((On=qt.split("/"))===null||On===void 0)?void 0:On[3]).concat(ar?"/master/shixun_show/".concat(ar):""))};return _.a.createElement(m.a,{width:"60%",centered:!0,visible:Ot.visible,wrapClassName:Te.a.modal,onOk:function(){xn.submit()},onCancel:Ot.onClose,title:"\u65B0\u5EFA\u6587\u4EF6\u5939"},_.a.createElement("section",{className:Te.a.bg},_.a.createElement("div",{className:Te.a.wrap},_.a.createElement(de.a,{className:"mt10",form:xn,scrollToFirstError:!0,layout:"vertical",onFinish:Rr,onChange:function(){var qt,On,Fr,Or,xr=Object(r.a)({},xn.getFieldsValue()),dr=xr==null||((qt=xr.path)===null||qt===void 0)?void 0:qt.split(""),pe=xr==null||((On=xr.file)===null||On===void 0)?void 0:On.split("");dr!=null&&(Fr=dr.filter(function(X){return X=="/"}))!==null&&Fr!==void 0&&Fr.length&&(xr.path=xr.path.substring(0,xr.path.length-1)),pe!=null&&(Or=pe.filter(function(X){return X=="/"}))!==null&&Or!==void 0&&Or.length&&(xr.file=xr.file.substring(0,xr.path.length-1)),xn.setFieldsValue(Object(r.a)({},xr)),mn(xr)}},_.a.createElement(de.a.Item,{label:"\u6587\u4EF6\u5939\u540D\u79F0\uFF1A",name:"path"},_.a.createElement(x.a,null,_.a.createElement(f.a,null,_.a.createElement("span",{className:Te.a.filePath},Ot.defaultPath+"/")),_.a.createElement(f.a,{flex:"1"},_.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"}]},_.a.createElement(ee.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0",size:"large"}))))),_.a.createElement(de.a.Item,{label:"\u6587\u4EF6\u540D\u79F0\uFF1A",name:"file"},_.a.createElement(ee.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"})),_.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"}]},_.a.createElement(ee.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(Ct){var Ke=Ct.shixunsDetail,et=Ct.loading,at=Ct.globalSetting,Pe=Ct.user;return{shixunsDetail:Ke,globalSetting:at,user:Pe,loading:et.models.index}})(ce),Ee=o("7ahc"),ue=function(Ke){var et=Ke.shixunsDetail,at=Ke.globalSetting,Pe=Ke.loading,Xe=Ke.user,ht=Ke.dispatch,Et=Ke.isRepository,Ot=Object(E.a)(Ke,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Mt=Object(L.h)(),lt=Object(L.i)(),Ft=Object(S.useState)({}),Lt=Object(w.a)(Ft,2),on=Lt[0],mn=Lt[1],Hn=Object(S.useRef)(),Xn=de.a.useForm(),Fn=Object(w.a)(Xn,1),xn=Fn[0],fr=Object(S.useState)(""),Yn=Object(w.a)(fr,2),ar=Yn[0],nr=Yn[1];Object(S.useEffect)(function(){Ot.visible&&xn.resetFields()},[Ot.visible]),Object(S.useEffect)(function(){var sn=sessionStorage.getItem("pathArray");if(sn){var qt=sn.split(",").join("/"),On=qt.indexOf("/")===0?qt.substr(1):qt;nr(On)}},[]),Object(S.useEffect)(function(){var sn,qt;Hn.current=(sn=Mt.pathname)===null||sn===void 0||((qt=sn.split("/"))===null||qt===void 0)?void 0:qt[2]},[]);var Rr=function(){var sn=Object(l.a)(C.a.mark(function qt(){var On,Fr,Or=arguments;return C.a.wrap(function(dr){for(;;)switch(dr.prev=dr.next){case 0:return On=Or.length>0&&Or[0]!==void 0?Or[0]:{},dr.next=3,ht({type:"shixunsDetail/addRepositoryFile",payload:{id:lt.id,message:On.commitMessage,content:On.codeMirror,path:(Ot.defaultPath?Ot.defaultPath+"/":"")+On.path,secret_repository:Et?void 0:!0}});case 3:Fr=dr.sent,Fr!=null&&Fr.url&&(d.b.success("\u6DFB\u52A0\u6210\u529F"),Ot.onOK({path:(Ot.defaultPath?Ot.defaultPath+"/":"")+On.path,name:On.path.split("/")[On.path.split("/").length-1]}),Ot.onClose());case 5:case"end":return dr.stop()}},qt)}));return function(){return sn.apply(this,arguments)}}(),pr=function(){var qt,On;N.d.push("/shixuns/".concat(Hn.current,"/").concat((qt=Mt.pathname)===null||qt===void 0||((On=qt.split("/"))===null||On===void 0)?void 0:On[3]).concat(ar?"/master/shixun_show/".concat(ar):""))};return _.a.createElement(m.a,{width:"60%",visible:Ot.visible,wrapClassName:Te.a.modal,centered:!0,onOk:function(){xn.submit()},onCancel:Ot.onClose,title:"\u65B0\u5EFA\u6587\u4EF6"},_.a.createElement("section",{className:Te.a.bg},_.a.createElement("div",{className:Te.a.wrap},_.a.createElement(de.a,{className:"mt10",form:xn,scrollToFirstError:!0,layout:"vertical",onFinish:Rr,onChange:function(){var qt,On,Fr=Object(r.a)({},xn.getFieldsValue()),Or=Fr==null||((qt=Fr.path)===null||qt===void 0)?void 0:qt.split("");(Or==null||((On=Or.filter(function(xr){return xr=="/"}))===null||On===void 0)?void 0:On.length)>1&&(Fr.path=Fr.path.substring(0,Fr.path.length-1)),xn.setFieldsValue(Object(r.a)({},Fr)),mn(Fr)}},_.a.createElement(de.a.Item,{label:"\u6587\u4EF6\u540D\u79F0\u6216\u6587\u4EF6\u8DEF\u5F84\uFF1A",name:"path"},_.a.createElement(x.a,null,_.a.createElement(f.a,null,_.a.createElement("span",{className:Te.a.filePath},Ot.defaultPath+"/")),_.a.createElement(f.a,{flex:"1"},_.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"}]},_.a.createElement(ee.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0",size:"large"}))))),_.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"}]},_.a.createElement(ee.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"})),_.a.createElement("div",{className:"mt10 mb20"},_.a.createElement(de.a.Item,{name:"codeMirror",label:"\u6587\u4EF6\u5185\u5BB9\uFF1A",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5185\u5BB9"}]},_.a.createElement(Ee.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"]}})))))))},le=Object(N.a)(function(Ct){var Ke=Ct.shixunsDetail,et=Ct.loading,at=Ct.globalSetting,Pe=Ct.user;return{shixunsDetail:Ke,globalSetting:at,user:Pe,loading:et.models.index}})(ue),$=function(Ke){var et=Ke.shixunsDetail,at=Ke.globalSetting,Pe=Ke.loading,Xe=Ke.user,ht=Ke.dispatch,Et=Ke.isRepository,Ot=Object(E.a)(Ke,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Mt=Object(L.h)(),lt=Object(L.i)(),Ft=Object(S.useState)({}),Lt=Object(w.a)(Ft,2),on=Lt[0],mn=Lt[1],Hn=Object(S.useRef)(),Xn=de.a.useForm(),Fn=Object(w.a)(Xn,1),xn=Fn[0],fr=Object(S.useState)(""),Yn=Object(w.a)(fr,2),ar=Yn[0],nr=Yn[1],Rr=Object(S.useState)(""),pr=Object(w.a)(Rr,2),sn=pr[0],qt=pr[1];Object(S.useEffect)(function(){Ot.visible&&xn.resetFields()},[Ot.visible]),Object(S.useEffect)(function(){var Or=Ot.defaultPath.split("/");Or.length===1?(nr(""),qt(Ot.defaultPath)):(qt(Or.pop()),nr(Or.join("/")+"/"))},[Ot.defaultPath]),Object(S.useEffect)(function(){var Or,xr;Hn.current=(Or=Mt.pathname)===null||Or===void 0||((xr=Or.split("/"))===null||xr===void 0)?void 0:xr[2]},[]);var On=function(){var Or=Object(l.a)(C.a.mark(function xr(){var dr,pe,X=arguments;return C.a.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return dr=X.length>0&&X[0]!==void 0?X[0]:{},oe.next=3,ht({type:"shixunsDetail/moveGitFile",payload:{id:lt.id,from:Ot.defaultPath,to:ar+dr.path,message:dr.commitMessage||"".concat(Ot.defaultPath," rename to ").concat(ar).concat(dr.path," "),secret_repository:Et}});case 3:pe=oe.sent,(pe==null?void 0:pe.status)===0&&(d.b.success("\u6DFB\u52A0\u6210\u529F"),Ot.onOK({path:dr.path,name:dr.path}),Ot.onClose());case 5:case"end":return oe.stop()}},xr)}));return function(){return Or.apply(this,arguments)}}(),Fr=function(){var xr,dr;N.d.push("/shixuns/".concat(Hn.current,"/").concat((xr=Mt.pathname)===null||xr===void 0||((dr=xr.split("/"))===null||dr===void 0)?void 0:dr[3]).concat(ar?"/master/shixun_show/".concat(ar):""))};return _.a.createElement(m.a,{width:"40%",visible:Ot.visible,wrapClassName:Te.a.modal,centered:!0,onOk:function(){xn.submit()},onCancel:Ot.onClose,title:"\u63D0\u4EA4\u8BF4\u660E"},_.a.createElement("section",{className:Te.a.bg},_.a.createElement("div",{className:Te.a.wrap},_.a.createElement(de.a,{className:"mt10",form:xn,scrollToFirstError:!0,layout:"vertical",onFinish:On,onChange:function(){var xr,dr,pe=Object(r.a)({},xn.getFieldsValue()),X=pe==null||((xr=pe.path)===null||xr===void 0)?void 0:xr.split("");(X==null||((dr=X.filter(function(q){return q=="/"}))===null||dr===void 0)?void 0:dr.length)>1&&(pe.path=pe.path.substring(0,pe.path.length-1)),xn.setFieldsValue(Object(r.a)({},pe)),mn(pe)}},_.a.createElement(de.a.Item,{label:"\u91CD\u547D\u540D\uFF1A",name:"path"},_.a.createElement(x.a,null,_.a.createElement(f.a,{flex:"1"},_.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"}]},_.a.createElement(ee.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0",size:"large",defaultValue:sn}))))),_.a.createElement(de.a.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage"},_.a.createElement(ee.a,{placeholder:"\u5982\u4E0D\u586B\u5199\uFF0C\u9ED8\u8BA4\u63D0\u4EA4\u4FE1\u606F\u662F\uFF08".concat(Ot.defaultPath," rename to \u65B0\u7684\u540D\u79F0 \uFF09"),size:"large"}))))))},me=Object(N.a)(function(Ct){var Ke=Ct.shixunsDetail,et=Ct.loading,at=Ct.globalSetting,Pe=Ct.user;return{shixunsDetail:Ke,globalSetting:at,user:Pe,loading:et.models.index}})($),re=o("DZo9"),ae=o("8z0m"),Oe=o("m3rI"),se=o("8j3D"),te=o("RC3E"),Q=o.n(te),J=ae.a.Dragger,ve=function(Ke){var et=Ke.shixunsDetail,at=Ke.globalSetting,Pe=Ke.loading,Xe=Ke.user,ht=Ke.dispatch,Et=Ke.isRepository,Ot=Object(E.a)(Ke,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Mt=Object(L.h)(),lt=Object(L.i)(),Ft=Object(S.useState)({}),Lt=Object(w.a)(Ft,2),on=Lt[0],mn=Lt[1],Hn=Object(S.useRef)(),Xn=de.a.useForm(),Fn=Object(w.a)(Xn,1),xn=Fn[0],fr=Object(S.useState)([]),Yn=Object(w.a)(fr,2),ar=Yn[0],nr=Yn[1],Rr=Object(S.useState)(),pr=Object(w.a)(Rr,2),sn=pr[0],qt=pr[1],On;Object(S.useEffect)(function(){Ot.visible&&(xn.resetFields(),nr([]))},[Ot.visible]),Object(S.useEffect)(function(){Hn.current=lt.id},[]),Object(S.useEffect)(function(){var X=sessionStorage.getItem("pathArray");if(X){var q=X.split(",").join("/"),oe=q.indexOf("/")===0?q.substr(1):q;qt(oe)}},[]);var Fr=function(q){if(On=q.file.name,q.file.status==="done"||q.file.status==="uploading"){var oe,De,fe;if(nr(q.fileList),!q.file.response)return;if(((oe=q.file.response)===null||oe===void 0?void 0:oe.status)===0){d.b.success("\u4E0A\u4F20\u6210\u529F\uFF01");return}nr(ar.filter(function(ot){return ot.uid!==q.file.uid})),((De=q.file.response)===null||De===void 0?void 0:De.message)&&d.b.info((fe=q.file.response)===null||fe===void 0?void 0:fe.message)}},Or=function(){var X=Object(l.a)(C.a.mark(function q(oe){var De;return C.a.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:if(oe.response){ot.next=3;break}return d.b.info("\u8FD8\u672A\u4E0A\u4F20\u5B8C\u6210\uFF0C\u65E0\u6CD5\u8FDB\u884C\u5220\u9664\u64CD\u4F5C\uFF01"),ot.abrupt("return");case 3:return ot.next=5,ht({type:"shixunsDetail/deleteGitFile",payload:{id:lt.id,path:sn?"".concat(sn,"/").concat(oe.name):oe.name,message:xn.getFieldValue("commitMessage")||"\u5220\u9664\u4E86".concat(sn?"".concat(sn,"/").concat(oe.name):oe.name),secret_repository:Et?null:!0}});case 5:De=ot.sent,De.status===0&&(nr(ar.filter(function(Qt){return Qt.uid!==oe.uid})),d.b.info("\u5220\u9664\u6210\u529F"));case 7:case"end":return ot.stop()}},q)}));return function(oe){return X.apply(this,arguments)}}(),xr={height:300,multiple:!0,withCredentials:!0,data:function(){var X=Object(l.a)(C.a.mark(function oe(){return C.a.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return fe.abrupt("return",new Promise(function(){var ot=Object(l.a)(C.a.mark(function Qt(Mn,Vn){return C.a.wrap(function(gn){for(;;)switch(gn.prev=gn.next){case 0:setTimeout(Object(l.a)(C.a.mark(function pn(){var Ar,ra;return C.a.wrap(function(ir){for(;;)switch(ir.prev=ir.next){case 0:return ir.next=2,xn.getFieldsValue();case 2:Ar=ir.sent,ra=Object(r.a)(Object(r.a)({},{path:Ot.defaultPath?Ot.defaultPath:"",message:on.commitMessage||"\u4E0A\u4F20\u4E86".concat(On)}),Et?{}:{secret_repository:!0}),Mn(ra);case 5:case"end":return ir.stop()}},pn)})),200);case 1:case"end":return gn.stop()}},Qt)}));return function(Qt,Mn){return ot.apply(this,arguments)}}()));case 1:case"end":return fe.stop()}},oe)}));function q(){return X.apply(this,arguments)}return q}(),fileList:ar,method:"post",action:"".concat(Oe.a.API_SERVER,"/api/shixuns/").concat(Hn.current,"/upload_git_file.json"),onChange:Fr,onRemove:Or,beforeUpload:function(q){On=q.name}},dr=function(){var X=Object(l.a)(C.a.mark(function q(oe){return C.a.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return fe.next=2,xn.validateFields();case 2:Ot.onClose(),Ot.onOK({path:Ot.defaultPath}),pe();case 5:case"end":return fe.stop()}},q)}));return function(oe){return X.apply(this,arguments)}}(),pe=function(){var q,oe;N.d.push("/shixuns/".concat(Hn.current,"/").concat((q=Mt.pathname)===null||q===void 0||((oe=q.split("/"))===null||oe===void 0)?void 0:oe[3]).concat(sn?"/master/shixun_show/".concat(sn):""))};return _.a.createElement(m.a,{visible:Ot.visible,onOk:dr,centered:!0,onCancel:Ot.onClose,width:"70%"},_.a.createElement("section",{className:Q.a.bg},_.a.createElement("div",{className:Q.a.wrap},_.a.createElement("div",{className:Q.a.title},"\u4E0A\u4F20\u6587\u4EF6"),_.a.createElement(de.a,{className:"mt10",form:xn,scrollToFirstError:!0,layout:"vertical",onFinish:dr,onValuesChange:function(){return mn(Object(r.a)({},xn.getFieldsValue()))}},_.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"}]},_.a.createElement(ee.a,{placeholder:"\u5FC5\u586B\uFF0C\u63CF\u8FF0\u4E3B\u8981\u4FEE\u6539\u5185\u5BB9\uFF08\u76F8\u5F53\u4E8EGit Commit message\u7684Header\uFF09"})),_.a.createElement(de.a.Item,{label:"\u9009\u62E9\u6587\u4EF6",name:"file",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6"}]},_.a.createElement(J,xr,_.a.createElement("div",null,_.a.createElement("i",{className:"iconfont icon-shangchuan font50 ".concat(Q.a.colorBlue)})),_.a.createElement("div",{className:"font14 mt30"},"\u62D6\u62FD\u6587\u4EF6\u6216",_.a.createElement("span",{className:"".concat(Q.a.colorBlue," ml5")},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))))),_.a.createElement(se.a,{onFinish:function(q){return qt(q)}})))},_e=Object(N.a)(function(Ct){var Ke=Ct.shixunsDetail,et=Ct.loading,at=Ct.globalSetting,Pe=Ct.user;return{shixunsDetail:Ke,globalSetting:at,user:Pe,loading:et.models.index}})(ve),Ae=o("Bbdw"),Qe=o.n(Ae),tt=o("HpfO"),dt=o.n(tt),mt=function(Ke){var et=Ke.shixunsDetail,at=Ke.globalSetting,Pe=Ke.loading,Xe=Ke.dispatch,ht=Ke.title,Et=Ke.pathList,Ot=Et===void 0?[]:Et,Mt=Ke.showInputPath,lt=Mt===void 0?!1:Mt,Ft=Ke.isMergeSelectFile,Lt=Ft===void 0?!1:Ft,on=Ke.onFinish,mn=on===void 0?function(){}:on,Hn=de.a.useForm(),Xn=Object(w.a)(Hn,1),Fn=Xn[0],xn=Object(L.i)(),fr=Object(L.h)(),Yn=Object(S.useRef)(),ar=Object(S.useState)(""),nr=Object(w.a)(ar,2),Rr=nr[0],pr=nr[1],sn=Object(S.useState)(""),qt=Object(w.a)(sn,2),On=qt[0],Fr=qt[1],Or=Object(S.useState)([]),xr=Object(w.a)(Or,2),dr=xr[0],pe=xr[1],X=Object(S.useState)([]),q=Object(w.a)(X,2),oe=q[0],De=q[1];Object(S.useEffect)(function(){var $t,gn;Yn.current=(($t=fr.pathname)===null||$t===void 0||((gn=$t.split("/"))===null||gn===void 0)?void 0:gn[3])==="repository"},[]),Object(S.useEffect)(function(){if(et.actionTabs.key!=="Repository-SelectFilePath")return;var $t=Ot.join("/"),gn=[];Ot.map(function(pn,Ar){Ar===0?gn.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(pn),path:$t}):gn.push({val:"/".concat(pn),path:$t})}),pe(gn),pr($t),Fr($t),fe($t)},[et.actionTabs.key]);var fe=function(){var $t=Object(l.a)(C.a.mark(function gn(pn){var Ar;return C.a.wrap(function(oa){for(;;)switch(oa.prev=oa.next){case 0:return oa.next=2,Xe({type:Yn.current?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:xn.id,path:pn}});case 2:Ar=oa.sent,Ar&&De(Ar.trees||[]);case 4:case"end":return oa.stop()}},gn)}));return function(pn){return $t.apply(this,arguments)}}(),ot=function(gn){var pn=Rr;gn.type==="tree"&&(dr.length?dr.push({val:"/".concat(gn.name),path:gn.name}):dr.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(gn.name),path:gn.name}),pe(dr),pn=Rr?"".concat(Rr,"/").concat(gn.name):gn.name,pr(pn)),fe(pn)},Qt=function(gn,pn){var Ar=dr.filter(function(oa,ir){return ir<=pn});pe(Ar);var ra=Ar.filter(function(oa,ir){return ir!==0}).map(function(oa){return oa.val}).join("").substr(1);pr(ra),fe(ra)},Mn=function(){var $t=Object(l.a)(C.a.mark(function gn(){var pn,Ar,ra;return C.a.wrap(function(ir){for(;;)switch(ir.prev=ir.next){case 0:if(pn=Fn==null?void 0:Fn.getFieldsValue(),Ar=Rr?"".concat(Rr).concat(pn!=null&&pn.name?"/".concat(pn==null?void 0:pn.name):""):pn==null?void 0:pn.name,!Lt){ir.next=6;break}return mn(Ar),Vn(),ir.abrupt("return");case 6:if(!lt){ir.next=16;break}return ir.next=9,Fn.validateFields();case 9:return ir.next=11,Xe({type:"shixunsDetail/uploadGitFolder",payload:Object(r.a)(Object(r.a)({},{id:xn.id,path:Ar}),Yn.current?{}:{secret_repository:!0})});case 11:ra=ir.sent,mn(On),ra.status===0&&d.b.info("\u65B0\u5EFA\u6210\u529F"),ir.next=18;break;case 16:mn(Ar),d.b.success("\u9009\u62E9\u6587\u4EF6\u76EE\u5F55\u6210\u529F");case 18:Vn();case 19:case"end":return ir.stop()}},gn)}));return function(){return $t.apply(this,arguments)}}(),Vn=function(){Xe({type:"shixunsDetail/setActionTabs",payload:{}}),Fn.resetFields()};return _.a.createElement(m.a,{centered:!0,title:ht||"\u65B0\u5EFA\u6587\u4EF6\u5939",closable:!1,keyboard:!1,visible:et.actionTabs.key==="Repository-SelectFilePath",onOk:Mn,onCancel:Vn},_.a.createElement("div",{className:dt.a.wrap},_.a.createElement("div",{className:dt.a.content},_.a.createElement("div",{className:dt.a.mainPathWrap},!!(dr!=null&&dr.length)&&dr.map(function($t,gn){return _.a.createElement("a",{key:gn,onClick:function(){return Qt($t,gn)}},$t.val)})),!!(oe!=null&&oe.length)&&oe.map(function($t,gn){return $t.type==="tree"&&_.a.createElement("a",{key:gn,onClick:function(){return ot($t)}},_.a.createElement("i",{className:"iconfont icon-wenjianjia ".concat(dt.a.colorBlue)}),$t.name)})),_.a.createElement("label",{className:"mt5"},"\u9009\u4E2D\u7684\u65B0\u5EFA\u6587\u4EF6\u5939\u76EE\u5F55\uFF1A"),_.a.createElement("div",{className:"mt5 mb5"},Rr),lt&&_.a.createElement(de.a,{form:Fn,scrollToFirstError:!0,className:"mt20"},_.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"}]},_.a.createElement(ee.a,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u6587\u4EF6\u5939\u540D/\u5B50\u6587\u4EF6\u5939\u540D\u3002\uFF08\u5982\uFF1Asrc/step1\uFF09"})))))},vt=Object(N.a)(function(Ct){var Ke=Ct.shixunsDetail,et=Ct.loading,at=Ct.globalSetting;return{shixunsDetail:Ke,globalSetting:at,loading:et.models.index}})(mt),yt=o("GZ0F"),Ye=o("8Skl"),Ue=o("HBuW"),ft=o("1vsH"),jt=o("NLgs"),bt=o("lzim"),Pt=F.a.DirectoryTree,it=function(Ke){var et,at,Pe,Xe,ht,Et,Ot,Mt=Ke.shixunsDetail,lt=Ke.globalSetting,Ft=Ke.loading,Lt=Ke.user,on=Ke.activeKey,mn=Ke.dispatch,Hn=Ke.practiceSetting,Xn=Ke.isRepository,Fn=Ke.treeData,xn=Ke.setTreeData,fr=Object(E.a)(Ke,["shixunsDetail","globalSetting","loading","user","activeKey","dispatch","practiceSetting","isRepository","treeData","setTreeData"]),Yn=Object(L.i)(),ar=Object(L.h)(),nr=Object(S.useState)(),Rr=Object(w.a)(nr,2),pr=Rr[0],sn=Rr[1],qt=Object(S.useState)(!1),On=Object(w.a)(qt,2),Fr=On[0],Or=On[1],xr=Object(S.useState)(!1),dr=Object(w.a)(xr,2),pe=dr[0],X=dr[1],q=Object(S.useState)(!1),oe=Object(w.a)(q,2),De=oe[0],fe=oe[1],ot=Object(S.useState)(!1),Qt=Object(w.a)(ot,2),Mn=Qt[0],Vn=Qt[1],$t=Object(S.useState)(""),gn=Object(w.a)($t,2),pn=gn[0],Ar=gn[1],ra=Object(S.useState)([]),oa=Object(w.a)(ra,2),ir=oa[0],Ra=oa[1],La=Object(S.useState)([]),ca=Object(w.a)(La,2),Ka=ca[0],wa=ca[1],Ja=Object(S.useState)([]),ja=Object(w.a)(Ja,2),li=ja[0],oi=ja[1],fa=Object(S.useState)(!1),ma=Object(w.a)(fa,2),la=ma[0],xe=ma[1],ut=Object(S.useState)(),Rt=Object(w.a)(ut,2),wt=Rt[0],Kt=Rt[1],Nt=Object(S.useState)(),Xt=Object(w.a)(Nt,2),nn=Xt[0],yn=Xt[1],vn=Object(S.useState)(""),Nn=Object(w.a)(vn,2),An=Nn[0],an=Nn[1],Pn=Object(S.useState)(),bn=Object(w.a)(Pn,2),kn=bn[0],Rn=bn[1],Jn=Object(S.useState)(!1),mr=Object(w.a)(Jn,2),Br=mr[0],Sn=mr[1];Object(S.useEffect)(function(){xn([]),Un(""),localStorage.warehouseHideTip||xe(!0)},[ar.pathname,Xn]);var Yt=function(){var tr=Object(l.a)(C.a.mark(function Gt(){var Zt,Jt,zn=arguments;return C.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:return Zt=zn.length>0&&zn[0]!==void 0?zn[0]:"",Ln.next=3,Object(Ue.Gb)({id:Yn.id,secret_dir_path:Zt});case 3:Jt=Ln.sent,Jt&&Rn(Zt);case 5:case"end":return Ln.stop()}},Gt)}));return function(){return tr.apply(this,arguments)}}(),dn=function(Gt){var Zt;return _.a.createElement(n.a,{className:Qe.a.menu,onClick:function(zn){Ar(Gt.path||"");switch(zn.key){case"1":Object(ft.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u65B0\u5EFA\u6587\u4EF6"]),Or(!0);break;case"2":Object(ft.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u65B0\u5EFA\u6587\u4EF6\u5939"]),fe(!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"]),X(!0);break;case"5":Object(ft.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u5220\u9664"]),Pr(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"]),Lr(Gt);break}}},(Gt.type==="topTree"||Gt.type==="tree")&&_.a.createElement(n.a.Item,{key:"1"},"\u65B0\u5EFA\u6587\u4EF6"),(Gt.type==="topTree"||Gt.type==="tree")&&_.a.createElement(n.a.Item,{key:"2"},"\u65B0\u5EFA\u6587\u4EF6\u5939"),(Gt.type==="topTree"||Gt.type==="tree")&&_.a.createElement(n.a.Item,{key:"3"},"\u4E0A\u4F20"),Gt.type!=="topTree"&&Gt.type!=="tree"&&(Mt==null||((Zt=Mt.detail)===null||Zt===void 0)?void 0:Zt.public)<2&&_.a.createElement(n.a.Item,{key:"4"},"\u91CD\u547D\u540D"),Gt.type!=="topTree"&&_.a.createElement(I.CopyToClipboard,{text:"/data/workspace/myshixun/".concat(Xn?"":"secret/").concat(Gt==null?void 0:Gt.path),onCopy:function(){return d.b.success("\u590D\u5236\u6210\u529F")}},_.a.createElement(n.a.Item,{key:"6"},_.a.createElement(_.a.Fragment,null,"\u590D\u5236\u8DEF\u5F84"))),Gt.type!=="topTree"&&_.a.createElement(n.a.Item,{key:"5"},"\u5220\u9664"))},Dn=function(Gt,Zt){return Gt.map(function(Jt){return Zt==""?Jt.path=Zt+Jt.name:Jt.path=Zt+"/"+Jt.name,Jt.title=_.a.createElement(x.a,{className:"font14"},_.a.createElement(f.a,{flex:"1"},_.a.createElement(x.a,null,_.a.createElement(f.a,{flex:"20px"},Jt.type==="blob"&&_.a.createElement("span",{className:"iconfont icon-wenjian11 font12"})),_.a.createElement(f.a,{flex:"1"},_.a.createElement("span",{className:" multi_ellipsis1"},Jt.name)))),_.a.createElement(f.a,null,(Jt.type==="blob"||Jt.type==="tree")&&_.a.createElement(u.a,{overlay:dn(Jt),className:Qe.a.ellipsis},_.a.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"})))),Jt.disableCheckbox=pr&&pr!==Jt.name,Jt.className=Jt.type==="tree"?Qe.a.pl23:"",Jt.checkable=Jt.type!=="tree",Jt.isLeaf=Jt.type!=="tree",Jt.children=Jt.type==="tree"&&[],Jt.key=Jt.path,Jt})},en=function(Gt){mn({type:"practiceSetting/setSideBarTabs",payload:{selectPath:Gt}})},wn=function(){var tr=Object(l.a)(C.a.mark(function Gt(Zt,Jt){var zn;return C.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:return zn=Zt.split("/"),Ln.next=3,Un(pn);case 3:setTimeout(function(){en(Zt),ir=[zn[0]||""],Ka=[Zt],wa(Object(D.a)(Ka)),Ra(Object(D.a)(ir))},150);case 4:case"end":return Ln.stop()}},Gt)}));return function(Zt,Jt){return tr.apply(this,arguments)}}(),_n=function(Gt,Zt){if(Zt=="")Fn=Object(D.a)(Gt),xn(Object(D.a)(Gt));else{var Jt=In(Fn,Zt,Gt);Fn=Jt,xn(Object(D.a)(Jt))}};function In(tr,Gt,Zt){return tr.map(function(Jt){return Jt.key===Gt?(Jt.children=Object(D.a)(Zt),Object(r.a)({},Jt)):Jt.children?Object(r.a)(Object(r.a)({},Jt),{},{children:In(Jt.children,Gt,Zt)}):Jt})}var Un=function(){var tr=Object(l.a)(C.a.mark(function Gt(){var Zt,Jt,zn,$n,Ln,rr=arguments;return C.a.wrap(function(sr){for(;;)switch(sr.prev=sr.next){case 0:return Zt=rr.length>0&&rr[0]!==void 0?rr[0]:"",sr.next=3,mn({type:Xn?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:Yn.id,path:Zt}});case 3:return Jt=sr.sent,Jt&&((zn=Jt.trees)!==null&&zn!==void 0&&zn.length?(Ln=Dn(Object(D.a)(Jt.trees),Zt),_n(Ln,Zt),oi(Jt.trees||[]),yn(Zt||""),console.log("handleGetRepository:",Ln,Zt),setTimeout(function(){return console.log(Fn,Jt.trees,Zt,999999)},2e3)):Zt==""&&xn([]),Kt((($n=Jt.commits)===null||$n===void 0?void 0:$n[0])||{})),sr.abrupt("return",Jt);case 6:case"end":return sr.stop()}},Gt)}));return function(){return tr.apply(this,arguments)}}(),or=function(){var tr=Object(l.a)(C.a.mark(function Gt(Zt){return C.a.wrap(function(zn){for(;;)switch(zn.prev=zn.next){case 0:return zn.abrupt("return",new Promise(function(){var $n=Object(l.a)(C.a.mark(function Ln(rr,cr){return C.a.wrap(function(qr){for(;;)switch(qr.prev=qr.next){case 0:return Zt.children.length&&rr(),an(Zt.path),qr.next=4,Un(Zt.path);case 4:rr();case 5:case"end":return qr.stop()}},Ln)}));return function(Ln,rr){return $n.apply(this,arguments)}}()));case 1:case"end":return zn.stop()}},Gt)}));return function(Zt){return tr.apply(this,arguments)}}(),qn=function(){var tr=Object(l.a)(C.a.mark(function Gt(Zt,Jt){var zn,$n;return C.a.wrap(function(rr){for(;;)switch(rr.prev=rr.next){case 0:if(console.log("handleSelectTree",Zt,Jt.nativeEvent.target.nodeName,Jt),zn=function(){en(Jt.node.path),Zt=[Jt.node.path],wa(Object(D.a)(Zt))},!(Jt.nativeEvent.target.nodeName==="svg"||Jt.nativeEvent.target.nodeName==="LI"||Jt.nativeEvent.target.nodeName==="I")){rr.next=4;break}return rr.abrupt("return");case 4:Jt.node.type==="blob"&&(Hn!=null&&($n=Hn.sideBar)!==null&&$n!==void 0&&$n.confirmLeave?m.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(),mn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})}}):zn());case 5:case"end":return rr.stop()}},Gt)}));return function(Zt,Jt){return tr.apply(this,arguments)}}(),Pr=function(Gt,Zt,Jt){m.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(l.a)(C.a.mark(function Ln(){var rr,cr,sr;return C.a.wrap(function(lr){for(;;)switch(lr.prev=lr.next){case 0:return lr.next=2,mn({type:"shixunsDetail/deleteGitFile",payload:{id:Yn.id,path:Gt,message:"\u5220\u9664".concat(Gt),secret_repository:Xn?null:!0}});case 2:if(rr=lr.sent,cr=Gt.split("/"),!((rr==null?void 0:rr.status)===0)){lr.next=20;break}return d.b.info("\u5220\u9664\u6210\u529F"),cr.splice(cr.length-1,1),lr.next=9,Un(cr.length>1?cr.join("/"):"");case 9:if(sr=lr.sent,!(sr!=null&&sr.trees)){lr.next=13;break}lr.next=16;break;case 13:return cr.splice(cr.length-1,1),lr.next=16,Un(cr.length>1?cr.join("/"):"");case 16:return en(""),lr.abrupt("return",!0);case 20:(rr==null?void 0:rr.status)===-3&&m.a.confirm({title:"\u5220\u9664\u5931\u8D25",content:_.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(Yn.id,"/edit/").concat(rr==null?void 0:rr.message,"/tab=2")}});case 21:case"end":return lr.stop()}},Ln)}));function $n(){return zn.apply(this,arguments)}return $n}()})},Lr=function(Gt){console.log(Gt,"item")},Qn=function(){var tr=Object(l.a)(C.a.mark(function Gt(Zt,Jt){return C.a.wrap(function($n){for(;;)switch($n.prev=$n.next){case 0:if(console.log("handleExpand",Jt),!(Jt.nativeEvent.target.nodeName==="svg"||Jt.nativeEvent.target.nodeName==="path"||Jt.nativeEvent.target.nodeName==="LI")){$n.next=5;break}return $n.abrupt("return",!0);case 5:return $n.next=7,or(Jt.node);case 7:ir.includes(Jt.node.path)?ir.splice(ir.indexOf(Jt.node.path),1):ir.push(Jt.node.path);case 8:Ra(Object(D.a)(ir));case 9:case"end":return $n.stop()}},Gt)}));return function(Zt,Jt){return tr.apply(this,arguments)}}(),Dr=function(){xe(!1),localStorage.warehouseHideTip=!0},vr=function(){var tr=Object(l.a)(C.a.mark(function Gt(Zt){var Jt,zn,$n,Ln,rr;return C.a.wrap(function(sr){for(;;)switch(sr.prev=sr.next){case 0:$n="",sr.t0=Xn,sr.next=sr.t0===!0?4:sr.t0===!1?9:11;break;case 4:return $n="\u5F00\u542F\u7248\u672C\u5E93",Ln="\u5F00\u542F",rr="\u4E0D\u5F00\u542F",zn=_.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"),sr.abrupt("break",11);case 9:return Mt!=null&&(Jt=Mt.detail)!==null&&Jt!==void 0&&Jt.secret_repository?($n="\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",Ln="\u786E\u5B9A",rr="\u53D6\u6D88",zn=_.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")):($n="\u5F00\u542F\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",Ln="\u4E0D\u4F7F\u7528",rr="\u4F7F\u7528",zn=_.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")),sr.abrupt("break",11);case 11:if(!(!Xn&&Object(jt.b)(mn,"\u4E0D\u80FD\u5F00\u542F/\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93"))){sr.next=13;break}return sr.abrupt("return");case 13:m.a.confirm({title:$n,okText:Ln,cancelText:rr,content:zn,onOk:function(){var lr;Object(ft.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93",$n]),!Xn&&!(Mt!=null&&(lr=Mt.detail)!==null&&lr!==void 0&&lr.secret_repository)||zr(Zt)},onCancel:function(){var lr;!Xn&&!(Mt!=null&&(lr=Mt.detail)!==null&&lr!==void 0&&lr.secret_repository)&&zr(Zt)}});case 14:case"end":return sr.stop()}},Gt)}));return function(Zt){return tr.apply(this,arguments)}}(),zr=function(){var tr=Object(l.a)(C.a.mark(function Gt(Zt){return C.a.wrap(function(zn){for(;;)switch(zn.prev=zn.next){case 0:if(!Xn){zn.next=6;break}return zn.next=3,Object(Ue.r)(Object(r.a)({},Yn));case 3:mn({type:"practiceSetting/getCommonData",payload:Object(r.a)({},Yn)}),zn.next=8;break;case 6:return zn.next=8,Object(Ue.t)(Object(r.a)(Object(r.a)({},Yn),{},{is_secret_repository:Zt}));case 8:Un(),mn({type:"shixunsDetail/getShixunsDetail",payload:{id:Yn.id}});case 10:case"end":return zn.stop()}},Gt)}));return function(Zt){return tr.apply(this,arguments)}}(),Nr=function(Gt){console.log(Gt)},$r=function(){var tr=Object(l.a)(C.a.mark(function Gt(Zt){var Jt,zn,$n,Ln,rr,cr,sr,qr,lr,da,Yr;return C.a.wrap(function(Sr){for(;;)switch(Sr.prev=Sr.next){case 0:if(console.log(Zt),Jt=Zt.node.key,zn=Zt.dragNode.key,$n=Zt.node.pos.split("-"),Ln=Zt.dropPosition-Number($n[$n.length-1]),!(Zt.dragNode.type==="tree")){Sr.next=8;break}return d.b.warn("\u4E0D\u652F\u6301\u6587\u4EF6\u5939\u79FB\u52A8\u76EE\u5F55"),Sr.abrupt("return");case 8:if(!(Zt.node.type!=="tree")){Sr.next=11;break}return d.b.warn("\u672A\u79FB\u52A8\u6587\u4EF6\u76EE\u5F55\u4F4D\u7F6E"),Sr.abrupt("return");case 11:return Sr.next=13,mn({type:"shixunsDetail/moveGitFile",payload:{id:Yn.id,from:Zt.dragNode.path,to:Zt.node.path+"/"+Zt.dragNode.name,message:"".concat(Zt.dragNode.path," move to ").concat(Zt.node.path+"/"+Zt.dragNode.name," ")}});case 13:if(rr=Sr.sent,!(rr.status===0)){Sr.next=26;break}return en(""),Sr.next=18,Un("");case 18:cr=0;case 19:if(!(cr<ir.length)){Sr.next=26;break}if(!(ir[cr]!="")){Sr.next=23;break}return Sr.next=23,Un(ir[cr]);case 23:cr++,Sr.next=19;break;case 26:return Sr.abrupt("return");case 32:case"end":return Sr.stop()}},Gt)}));return function(Zt){return tr.apply(this,arguments)}}();return _.a.createElement("section",{className:Qe.a.bg},_.a.createElement("div",{className:Qe.a.contentbg},_.a.createElement("div",{className:Qe.a.wrap},_.a.createElement(x.a,{className:Qe.a.gitCode},_.a.createElement(f.a,{flex:"1"},_.a.createElement("span",{className:"iconfont icon-daimacangku2 mr8"}),Xn?"\u4EE3\u7801\u4ED3\u5E93":"\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",_.a.createElement(H.a,{className:Xn&&Mt!==null&&Mt!==void 0&&(et=Mt.detail)!==null&&et!==void 0&&et.init_repository?"hide":"ml10",checked:Xn?Mt==null||((Pe=Mt.detail)===null||Pe===void 0)?void 0:Pe.init_repository:Mt==null||((at=Mt.detail)===null||at===void 0)?void 0:at.secret_repository,checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED",onChange:vr})),_.a.createElement(f.a,null,_.a.createElement(u.a,{overlay:dn({type:"topTree"}),className:"current"},_.a.createElement(c.a,{visible:la,title:_.a.createElement("div",{className:"font16"},_.a.createElement(yt.a,{style:{position:"relative",left:-35},onClick:function(){return Dr()}}),"\u70B9\u51FB\u6B64\u5904\u65B0\u5EFA\u6587\u4EF6\u3001\u65B0\u5EFA\u6587\u4EF6\u5939\u3001\u4E0A\u4F20\u6587\u4EF6\u3002",_.a.createElement("span",{onClick:function(){return Dr()},className:"iconfont icon-guanbi1 ml8 current font14"})),overlayClassName:Qe.a.overlayClass,overlayStyle:{maxWidth:500},arrowPointAtCenter:!0,placement:"right",color:"#F7B500"},Xn&&(Mt==null||((Xe=Mt.detail)===null||Xe===void 0)?void 0:Xe.init_repository)&&_.a.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"}),!Xn&&(Mt==null||((ht=Mt.detail)===null||ht===void 0)?void 0:ht.secret_repository)&&_.a.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"}))))),!!Fn.length&&!Xn&&_.a.createElement("div",{className:"mt20 pl20 pr20 font14 c-white"},_.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")),Fn.length?_.a.createElement(_.a.Fragment,null,_.a.createElement("div",{className:Qe.a.content},on==="1"&&_.a.createElement("div",{className:Qe.a.tips},"\u63D0\u793A\uFF1A",_.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'),_.a.createElement(Pt,{disabled:!!Ft.effects["shixunsDetail/getFileContent"],multiple:!0,showIcon:!1,treeData:Fn,switcherIcon:_.a.createElement(Ye.a,{style:{fontWeight:"bold",fontSize:14,position:"relative",top:3,marginLeft:22}}),onExpand:Qn,expandedKeys:ir,selectedKeys:Ka,onSelect:qn,draggable:!0,onDragEnter:Nr,onDrop:$r,allowDrop:function(Gt){var Zt=Gt.dropNode,Jt=Gt.dropPosition;return!1}}))):"",!Fn.length&&Xn&&(Mt==null||((Et=Mt.detail)===null||Et===void 0)?void 0:Et.init_repository)&&_.a.createElement(He,null),!Fn.length&&!Xn&&(Mt==null||((Ot=Mt.detail)===null||Ot===void 0)?void 0:Ot.secret_repository)&&_.a.createElement(He,null))),_.a.createElement(me,{visible:pe,defaultPath:pn,onClose:function(){return X(!1)},isRepository:!Xn,onOK:function(){var tr=Object(l.a)(C.a.mark(function Gt(Zt){var Jt;return C.a.wrap(function($n){for(;;)switch($n.prev=$n.next){case 0:return Jt=pn.split("/"),Jt.pop(),$n.next=4,Un(Jt.join("/"));case 4:en("");case 5:case"end":return $n.stop()}},Gt)}));return function(Gt){return tr.apply(this,arguments)}}()}),_.a.createElement(le,{visible:Fr,defaultPath:pn,onClose:function(){return Or(!1)},isRepository:Xn,onOK:function(Gt){wn(Gt.path,Gt.name)}}),_.a.createElement(be,{visible:De,defaultPath:pn,onClose:function(){return fe(!1)},isRepository:Xn,onOK:function(Gt){wn(Gt.path,Gt.name)}}),_.a.createElement(_e,{defaultPath:pn,visible:Mn,isRepository:Xn,onClose:function(){return Vn(!1)},onOK:function(){var tr=Object(l.a)(C.a.mark(function Gt(Zt){var Jt;return C.a.wrap(function($n){for(;;)switch($n.prev=$n.next){case 0:return Jt=pn.split("/"),$n.next=3,Un(pn);case 3:ir=[Jt[0]||""],Ka=[pn],wa(Object(D.a)(Ka)),Ra(Object(D.a)(ir));case 7:case"end":return $n.stop()}},Gt)}));return function(Gt){return tr.apply(this,arguments)}}()}),_.a.createElement(vt,{pathList:pn==null?void 0:pn.split("/"),showInputPath:!0,isMergeSelectFile:Br,onFinish:function(Gt){Br?Yt(Gt):Un(Gt),Sn(!1)}}))},He=function(){return _.a.createElement("div",{className:"mt20 pb50 ".concat(Qe.a.nodata)},_.a.createElement("div",{className:Qe.a.headLeft},"\u63D0\u793A\uFF1A",_.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",_.a.createElement("br",null)),_.a.createElement("img",{width:"100%",src:bt.u}))},Ge=Object(N.a)(function(Ct){var Ke=Ct.shixunsDetail,et=Ct.loading,at=Ct.globalSetting,Pe=Ct.practiceSetting,Xe=Ct.user;return{shixunsDetail:Ke,globalSetting:at,user:Xe,practiceSetting:Pe,loading:et}})(it),Ce=o("/zsF"),Ie=o("PArb"),Fe=o("yDYP"),Be=o.n(Fe),We=function(Ke){var et=Ke.shixunsDetail,at=Ke.globalSetting,Pe=Ke.loading,Xe=Ke.user,ht=Ke.dispatch,Et=Ke.isRepository,Ot=Object(E.a)(Ke,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Mt=Object(L.i)(),lt=Object(S.useState)([]),Ft=Object(w.a)(lt,2),Lt=Ft[0],on=Ft[1];Object(S.useEffect)(function(){mn()},[Et]);var mn=function(){var Hn=Object(l.a)(C.a.mark(function Xn(){var Fn;return C.a.wrap(function(fr){for(;;)switch(fr.prev=fr.next){case 0:return fr.next=2,ht({type:"shixunsDetail/getRepositoryCommit",payload:{id:Mt.id,secret_repository:Et?void 0:!0}});case 2:Fn=fr.sent,Fn&&on(Fn.commits||[]);case 4:case"end":return fr.stop()}},Xn)}));return function(){return Hn.apply(this,arguments)}}();return _.a.createElement(_.a.Fragment,null,Lt==""&&_.a.createElement("div",{className:Be.a.empty},_.a.createElement("img",{src:bt.k,width:"258"}),_.a.createElement("br",null),_.a.createElement("span",{className:"c-grey-c font14"},"\u6682\u65E0\u63D0\u4EA4\u8BB0\u5F55")),Lt!=""&&_.a.createElement("section",{className:Be.a.bg},_.a.createElement("div",{className:Be.a.wrap},_.a.createElement("div",{className:Be.a.content},Lt==null?void 0:Lt.map(function(Hn){var Xn,Fn;return _.a.createElement("div",null,_.a.createElement(x.a,{align:"middle",className:"c-white font16"},_.a.createElement(f.a,null,Hn.title)),_.a.createElement(x.a,{align:"middle",className:"mt20 "},_.a.createElement(f.a,null,_.a.createElement("img",{className:Be.a.imageUrl,src:Oe.a.IMG_SERVER+"/"+((Xn=Hn.author)===null||Xn===void 0?void 0:Xn.image_url)})),_.a.createElement(f.a,{className:Be.a.blueLight},_.a.createElement("span",{className:"ml20"},(Fn=Hn.author)===null||Fn===void 0?void 0:Fn.username)),_.a.createElement(f.a,null,_.a.createElement("span",{className:"ml20 ".concat(Be.a.blueLight)},"\u63D0\u4EA4\u4E8E"),_.a.createElement("span",{className:"ml20 ".concat(Be.a.blueLight)},Hn.time))),_.a.createElement(Ie.a,{className:Be.a.divider}))})))))},st=Object(N.a)(function(Ct){var Ke=Ct.shixunsDetail,et=Ct.loading,at=Ct.globalSetting,Pe=Ct.user;return{shixunsDetail:Ke,globalSetting:at,user:Pe,loading:et.models.index}})(We),Dt=o("p5ED"),Ht=R.a.TabPane,rn=function(Ke){var et,at,Pe,Xe,ht,Et,Ot,Mt,lt,Ft,Lt,on,mn,Hn,Xn,Fn,xn,fr,Yn,ar=Ke.globalSetting,nr=Ke.loading,Rr=Ke.dispatch,pr=Ke.practiceSetting,sn=Ke.shixunsDetail,qt=Object(E.a)(Ke,["globalSetting","loading","dispatch","practiceSetting","shixunsDetail"]),On=Object(S.useState)("1"),Fr=Object(w.a)(On,2),Or=Fr[0],xr=Fr[1],dr=Object(S.useState)("1"),pe=Object(w.a)(dr,2),X=pe[0],q=pe[1],oe=Object(S.useState)(),De=Object(w.a)(oe,2),fe=De[0],ot=De[1],Qt=Object(S.useRef)(),Mn=Object(S.useState)(!0),Vn=Object(w.a)(Mn,2),$t=Vn[0],gn=Vn[1],pn=Object(S.useState)(["2","1"]),Ar=Object(w.a)(pn,2),ra=Ar[0],oa=Ar[1],ir=Object(S.useState)([]),Ra=Object(w.a)(ir,2),La=Ra[0],ca=Ra[1],Ka=Object(S.useRef)(),wa=Object(L.i)(),Ja=[{id:"1",name:"\u4EE3\u7801\u4ED3\u5E93"},{id:"2",name:_.a.createElement("span",null,_.a.createElement("span",null,"\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93"),_.a.createElement(c.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"},_.a.createElement("i",{className:"iconfont icon-xiaowenhao",style:{marginLeft:2,fontSize:14}})))}];Object(S.useEffect)(function(){try{var fa,ma,la,xe,ut;if(!!(sn!=null&&(fa=sn.fileContent)!==null&&fa!==void 0&&(ma=fa.content)!==null&&ma!==void 0&&(la=ma.content)!==null&&la!==void 0&&la.length)||(sn==null||((xe=sn.fileContent)===null||xe===void 0||((ut=xe.content)===null||ut===void 0))?void 0:ut.content)==""){var Rt;if((sn==null||((Rt=sn.fileContent)===null||Rt===void 0)?void 0:Rt.file_type)==="txt"){var wt,Kt,Nt,Xt;Qt.current=window.decodeURIComponent(escape(window.atob(sn==null||((wt=sn.fileContent)===null||wt===void 0||((Kt=wt.content)===null||Kt===void 0))?void 0:Kt.content))),fe=window.decodeURIComponent(escape(window.atob(sn==null||((Nt=sn.fileContent)===null||Nt===void 0||((Xt=Nt.content)===null||Xt===void 0))?void 0:Xt.content))),ot(fe)}else{var nn,yn,vn,Nn;Qt.current=sn==null||((nn=sn.fileContent)===null||nn===void 0||((yn=nn.content)===null||yn===void 0))?void 0:yn.content,fe=sn==null||((vn=sn.fileContent)===null||vn===void 0||((Nn=vn.content)===null||Nn===void 0))?void 0:Nn.content,ot(fe)}}}catch(kn){var An,an,Pn,bn;Qt.current=window.atob(sn==null||((An=sn.fileContent)===null||An===void 0||((an=An.content)===null||an===void 0))?void 0:an.content),fe=window.atob(sn==null||((Pn=sn.fileContent)===null||Pn===void 0||((bn=Pn.content)===null||bn===void 0))?void 0:bn.content),ot(fe),d.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||((et=sn.fileContent)===null||et===void 0)?void 0:et.content]),Object(S.useEffect)(function(){var fa,ma=pr==null||((fa=pr.sideBar)===null||fa===void 0)?void 0:fa.selectPath.split("/");oa(ma)},[pr==null||((at=pr.sideBar)===null||at===void 0)?void 0:at.selectPath]);var ja=function(ma){ot(ma);var la=-1;ma===Qt.current?la=0:la=1,la!==-1,Rr({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!!la}})};Object(S.useEffect)(function(){new Promise(function(){var fa=Object(l.a)(C.a.mark(function ma(la,xe){var ut,Rt,wt,Kt;return C.a.wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:if(!((pr==null||((ut=pr.sideBar)===null||ut===void 0)?void 0:ut.selectPath)!==""&&pr!==null&&pr!==void 0&&(Rt=pr.sideBar)!==null&&Rt!==void 0&&Rt.selectPath)){Xt.next=5;break}return Xt.next=3,Rr({type:"shixunsDetail/getFileContent",payload:{id:wa.id,path:pr==null||((wt=pr.sideBar)===null||wt===void 0)?void 0:wt.selectPath,secret_repository:$t?null:!0}});case 3:Kt=Xt.sent,Kt!=null&&Kt.content||(Kt==null?void 0:Kt.content)==""||Rr({type:"practiceSetting/setSideBarTabs",payload:{selectPath:""}});case 5:case"end":return Xt.stop()}},ma)}));return function(ma,la){return fa.apply(this,arguments)}}())},[pr==null||((Pe=pr.sideBar)===null||Pe===void 0)?void 0:Pe.selectPath]);var li=_.a.createElement(n.a,{className:U.a.menu,onClick:function(ma){var la;!(sn!=null&&(la=sn.detail)!==null&&la!==void 0&&la.secret_repository)&&ma.key==="2"&&q("1"),xr(ma.key),ma.key==="1"?gn(!0):gn(!1)}},_.a.createElement(n.a.Item,{disabled:!0,key:"0"},"\u5207\u6362\u4ED3\u5E93"),Ja.filter(function(fa){var ma,la;return!(sn!=null&&(ma=sn.detail)!==null&&ma!==void 0&&ma.init_repository)||sn!=null&&(la=sn.detail)!==null&&la!==void 0&&la.is_jupyter_lab?fa.id!=="2":fa}).map(function(fa,ma){return _.a.createElement(n.a.Item,{className:"leaveClick",key:fa.id},fa.name)})),oi=function(){var fa=Object(l.a)(C.a.mark(function ma(){var la,xe,ut;return C.a.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:return wt.next=2,Rr({type:"shixunsDetail/updateRepositoryFile",payload:{id:wa.id,path:sn==null||((la=sn.fileContent)===null||la===void 0||((xe=la.params)===null||xe===void 0))?void 0:xe.path,content:fe,secret_repository:$t?null:!0}});case 2:ut=wt.sent,ut!=null&&ut.content&&(d.b.info("\u4FDD\u5B58\u6210\u529F"),Rr({type:"practiceSetting/setSideBarTabs",payload:Object(r.a)(Object(r.a)({},pr.sideBar),{},{confirmLeave:!1})}));case 4:case"end":return wt.stop()}},ma)}));return function(){return fa.apply(this,arguments)}}();return _.a.createElement("div",{className:U.a.warehouse},_.a.createElement("div",{className:U.a.header},_.a.createElement(x.a,{align:"middle",className:"w100 c-white",style:{height:60}},_.a.createElement(f.a,{flex:"1"},_.a.createElement(x.a,{align:"middle"},_.a.createElement(f.a,null,_.a.createElement(u.a,{overlay:li,className:U.a.menu},_.a.createElement("span",{className:"font16 c-white current ml20"},Ja.find(function(fa){return fa.id===Or}).name," ",_.a.createElement("span",{style:{color:"#B0B5D6"},className:"iconfont icon-sanjiaoxing font12"})))),_.a.createElement(f.a,{flex:"81px"},_.a.createElement("div",{className:U.a.line})),_.a.createElement(f.a,null,_.a.createElement(R.a,{className:U.a.tabs,activeKey:X,onChange:function(ma){var la;pr!=null&&(la=pr.sideBar)!==null&&la!==void 0&&la.confirmLeave?m.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(){q(ma),Rr({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1,selectPath:""}})}}):(q(ma),Rr({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1,selectPath:""}}))}},_.a.createElement(Ht,{tab:_.a.createElement("span",{className:"leaveClick"},"\u4EE3\u7801\u6587\u4EF6"),key:"1"}),$t&&(sn==null||((Xe=sn.detail)===null||Xe===void 0)?void 0:Xe.init_repository)&&_.a.createElement(Ht,{tab:"\u63D0\u4EA4\u8BB0\u5F55",key:"2",className:"leaveClick"}),!$t&&(sn==null||((ht=sn.detail)===null||ht===void 0)?void 0:ht.secret_repository)&&_.a.createElement(Ht,{tab:"\u63D0\u4EA4\u8BB0\u5F55",key:"2",className:"leaveClick"}))))),($t&&(sn==null||((Et=sn.repository)===null||Et===void 0)?void 0:Et.git_url)||!$t&&(sn==null||((Ot=sn.secretRepository)===null||Ot===void 0)?void 0:Ot.git_url))&&_.a.createElement(_.a.Fragment,null,_.a.createElement(f.a,null,_.a.createElement("span",{className:U.a.title},"\u4ED3\u5E93\u5730\u5740:"),_.a.createElement("input",{value:$t?sn==null||((Mt=sn.repository)===null||Mt===void 0)?void 0:Mt.git_url:sn==null||((lt=sn.secretRepository)===null||lt===void 0)?void 0:lt.git_url}),_.a.createElement(I.CopyToClipboard,{text:$t?sn==null||((Ft=sn.repository)===null||Ft===void 0)?void 0:Ft.git_url:sn==null||((Lt=sn.secretRepository)===null||Lt===void 0)?void 0:Lt.git_url,onCopy:function(){return d.b.success("\u590D\u5236\u6210\u529F")}},_.a.createElement(c.a,{placement:"topLeft",title:"\u70B9\u51FB\u590D\u5236\u7248\u672C\u5E93"},_.a.createElement("i",{className:"iconfont icon-fuzhi2 current ml5 mr40"}))))))),_.a.createElement("div",{className:U.a.content,style:{overflow:"auto"}},X==="1"&&_.a.createElement(_.a.Fragment,null,_.a.createElement("aside",{className:U.a.left},_.a.createElement(b.a,{spinning:!!nr.effects["shixunsDetail/getRepository"],wrapperClassName:"".concat(U.a.loading," ").concat(U.a.bottom0)},_.a.createElement(Ge,{setTreeData:ca,treeData:La,activeKey:Or,isRepository:$t}))),_.a.createElement("aside",{className:U.a.right,ref:Ka},(pr==null||((on=pr.sideBar)===null||on===void 0)?void 0:on.selectPath)!==""&&_.a.createElement(_.a.Fragment,null,_.a.createElement(b.a,{spinning:!!nr.effects["shixunsDetail/getFileContent"],wrapperClassName:U.a.loading},_.a.createElement("div",{className:U.a.filePathWrp},_.a.createElement(x.a,{align:"middle",className:"w100"},_.a.createElement(f.a,null,_.a.createElement("span",{className:"iconfont icon-daimacangku2 c-white"})),_.a.createElement(f.a,{flex:"40px"},_.a.createElement("div",{className:U.a.line,style:{marginLeft:20}})),_.a.createElement(f.a,{className:U.a.filePath},ra.map(function(fa,ma){return _.a.createElement("span",{className:"c-blue"},fa)})))),_.a.createElement("div",{className:nr.effects["shixunsDetail/getFileContent"]?"hide":"show"},_.a.createElement(Dt.a,{className:"darkBlue",style:{top:66,height:"calc(100% - 60px)",position:"absolute",zIndex:1},filename:sn==null||((mn=sn.fileContent)===null||mn===void 0)?void 0:mn.filename,type:(sn==null||((Hn=sn.fileContent)===null||Hn===void 0)?void 0:Hn.file_type)==="office"?"download":sn==null||((Xn=sn.fileContent)===null||Xn===void 0)?void 0:Xn.file_type,data:fe,monacoEditor:{value:fe,language:sn==null||((Fn=sn.fileContent)===null||Fn===void 0)?void 0:Fn.language,onChange:function(ma){return ja(ma)},options:{fontSize:14}}}))),(sn==null||((xn=sn.fileContent)===null||xn===void 0)?void 0:xn.file_type)==="txt"&&_.a.createElement(x.a,{align:"middle",justify:"center",className:U.a.footer},_.a.createElement(f.a,null,_.a.createElement(g.a,{type:"primary",size:"large",ghost:!0,onClick:function(){N.d.push("/shixuns/".concat(wa.id,"/challenges"))}},"\u53D6\u6D88"),_.a.createElement(g.a,{type:"primary",size:"large",className:"ml40",onClick:oi},"\u63D0\u4EA4")))),(pr==null||((fr=pr.sideBar)===null||fr===void 0)?void 0:fr.selectPath)==""&&(sn==null||((Yn=sn.detail)===null||Yn===void 0)?void 0:Yn.init_repository)&&_.a.createElement("div",{className:U.a.empty},_.a.createElement("img",{src:bt.j,width:"258"}),_.a.createElement("br",null),_.a.createElement("span",{className:"c-grey-c"},!!(La!=null&&La.length)&&"\u5728\u5DE6\u4FA7\u4EE3\u7801\u4ED3\u5E93\u533A\u57DF\u70B9\u51FB\u76EE\u5F55\u6253\u5F00\u6587\u4EF6",!(La!=null&&La.length)&&"\u8BF7\u5148\u5728\u5DE6\u4FA7\u4E0A\u4F20\u6587\u4EF6\u6216\u65B0\u5EFA\u6587\u4EF6\uFF01")))),X==="2"&&_.a.createElement("div",{className:U.a.commit},_.a.createElement(st,{isRepository:$t}))))},Bt=z.default=Object(N.a)(function(Ct){var Ke=Ct.loading,et=Ct.globalSetting,at=Ct.practiceSetting,Pe=Ct.shixunsDetail;return{globalSetting:et,loading:Ke,practiceSetting:at,shixunsDetail:Pe}})(rn)},csWT:function(k,z,o){k.exports=o.p+"static/choose.4ad1045f.svg"},cv67:function(k,z,o){(function(P,g){k.exports=z=g(o("Ib8C"))})(this,function(P){return function(g){var T=P,b=T.lib,y=b.WordArray,x=b.Hasher,O=T.algo,m=[];(function(){for(var i=0;i<64;i++)m[i]=g.abs(g.sin(i+1))*4294967296|0})();var e=O.MD5=x.extend({_doReset:function(){this._hash=new y.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(i,n){for(var l=0;l<16;l++){var h=n+l,d=i[h];i[h]=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360}var s=this._hash.words,c=i[n+0],w=i[n+1],E=i[n+2],v=i[n+3],R=i[n+4],M=i[n+5],C=i[n+6],S=i[n+7],_=i[n+8],A=i[n+9],U=i[n+10],L=i[n+11],N=i[n+12],V=i[n+13],H=i[n+14],D=i[n+15],W=s[0],F=s[1],I=s[2],K=s[3];W=f(W,F,I,K,c,7,m[0]),K=f(K,W,F,I,w,12,m[1]),I=f(I,K,W,F,E,17,m[2]),F=f(F,I,K,W,v,22,m[3]),W=f(W,F,I,K,R,7,m[4]),K=f(K,W,F,I,M,12,m[5]),I=f(I,K,W,F,C,17,m[6]),F=f(F,I,K,W,S,22,m[7]),W=f(W,F,I,K,_,7,m[8]),K=f(K,W,F,I,A,12,m[9]),I=f(I,K,W,F,U,17,m[10]),F=f(F,I,K,W,L,22,m[11]),W=f(W,F,I,K,N,7,m[12]),K=f(K,W,F,I,V,12,m[13]),I=f(I,K,W,F,H,17,m[14]),F=f(F,I,K,W,D,22,m[15]),W=a(W,F,I,K,w,5,m[16]),K=a(K,W,F,I,C,9,m[17]),I=a(I,K,W,F,L,14,m[18]),F=a(F,I,K,W,c,20,m[19]),W=a(W,F,I,K,M,5,m[20]),K=a(K,W,F,I,U,9,m[21]),I=a(I,K,W,F,D,14,m[22]),F=a(F,I,K,W,R,20,m[23]),W=a(W,F,I,K,A,5,m[24]),K=a(K,W,F,I,H,9,m[25]),I=a(I,K,W,F,v,14,m[26]),F=a(F,I,K,W,_,20,m[27]),W=a(W,F,I,K,V,5,m[28]),K=a(K,W,F,I,E,9,m[29]),I=a(I,K,W,F,S,14,m[30]),F=a(F,I,K,W,N,20,m[31]),W=u(W,F,I,K,M,4,m[32]),K=u(K,W,F,I,_,11,m[33]),I=u(I,K,W,F,L,16,m[34]),F=u(F,I,K,W,H,23,m[35]),W=u(W,F,I,K,w,4,m[36]),K=u(K,W,F,I,R,11,m[37]),I=u(I,K,W,F,S,16,m[38]),F=u(F,I,K,W,U,23,m[39]),W=u(W,F,I,K,V,4,m[40]),K=u(K,W,F,I,c,11,m[41]),I=u(I,K,W,F,v,16,m[42]),F=u(F,I,K,W,C,23,m[43]),W=u(W,F,I,K,A,4,m[44]),K=u(K,W,F,I,N,11,m[45]),I=u(I,K,W,F,D,16,m[46]),F=u(F,I,K,W,E,23,m[47]),W=r(W,F,I,K,c,6,m[48]),K=r(K,W,F,I,S,10,m[49]),I=r(I,K,W,F,H,15,m[50]),F=r(F,I,K,W,M,21,m[51]),W=r(W,F,I,K,N,6,m[52]),K=r(K,W,F,I,v,10,m[53]),I=r(I,K,W,F,U,15,m[54]),F=r(F,I,K,W,w,21,m[55]),W=r(W,F,I,K,_,6,m[56]),K=r(K,W,F,I,D,10,m[57]),I=r(I,K,W,F,C,15,m[58]),F=r(F,I,K,W,V,21,m[59]),W=r(W,F,I,K,R,6,m[60]),K=r(K,W,F,I,L,10,m[61]),I=r(I,K,W,F,E,15,m[62]),F=r(F,I,K,W,A,21,m[63]),s[0]=s[0]+W|0,s[1]=s[1]+F|0,s[2]=s[2]+I|0,s[3]=s[3]+K|0},_doFinalize:function(){var i=this._data,n=i.words,l=this._nDataBytes*8,h=i.sigBytes*8;n[h>>>5]|=128<<24-h%32;var d=g.floor(l/4294967296),s=l;n[(h+64>>>9<<4)+15]=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,n[(h+64>>>9<<4)+14]=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360,i.sigBytes=(n.length+1)*4,this._process();for(var c=this._hash,w=c.words,E=0;E<4;E++){var v=w[E];w[E]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}return c},clone:function(){var i=x.clone.call(this);return i._hash=this._hash.clone(),i}});function f(i,n,l,h,d,s,c){var w=i+(n&l|~n&h)+d+c;return(w<<s|w>>>32-s)+n}function a(i,n,l,h,d,s,c){var w=i+(n&h|l&~h)+d+c;return(w<<s|w>>>32-s)+n}function u(i,n,l,h,d,s,c){var w=i+(n^l^h)+d+c;return(w<<s|w>>>32-s)+n}function r(i,n,l,h,d,s,c){var w=i+(l^(n|~h))+d+c;return(w<<s|w>>>32-s)+n}T.MD5=x._createHelper(e),T.HmacMD5=x._createHmacHelper(e)}(Math),P.MD5})},cz0n:function(k,z,o){k.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(k,z,o){k.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(k,z,o){},djh8:function(k,z,o){k.exports=o.p+"static/qrCode.d852fdfc.png"},dmUQ:function(k,z,o){"use strict";var P=o("Ff2n"),g=o("rePB"),T=o("1OyB"),b=o("vuIU"),y=o("Ji7U"),x=o("md7G"),O=o("foSv"),m=o("q1tI"),e=o.n(m),f=o("TSYQ"),a=o.n(f),u=o("4IlW");function r(_,A){var U=Object.keys(_);if(Object.getOwnPropertySymbols){var L=Object.getOwnPropertySymbols(_);A&&(L=L.filter(function(N){return Object.getOwnPropertyDescriptor(_,N).enumerable})),U.push.apply(U,L)}return U}function i(_){for(var A=1;A<arguments.length;A++){var U=arguments[A]!=null?arguments[A]:{};A%2?r(Object(U),!0).forEach(function(L){Object(g.a)(_,L,U[L])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(U)):r(Object(U)).forEach(function(L){Object.defineProperty(_,L,Object.getOwnPropertyDescriptor(U,L))})}return _}function n(_){var A=l();return function(){var L=Object(O.a)(_),N;if(A){var V=Object(O.a)(this).constructor;N=Reflect.construct(L,arguments,V)}else N=L.apply(this,arguments);return Object(x.a)(this,N)}}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(_){return!1}}function h(){}function d(_){_.preventDefault()}var s=function(A){return A.replace(/[^\w.-]+/g,"")},c=200,w=600,E=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,v=function(A){return A!=null},R=function(A,U){return U===A||typeof U=="number"&&typeof A=="number"&&isNaN(U)&&isNaN(A)},M=function(_){Object(y.a)(U,_);var A=n(U);function U(L){var N;Object(T.a)(this,U),N=A.call(this,L),N.onKeyDown=function(D){var W=N.props,F=W.onKeyDown,I=W.onPressEnter;if(D.keyCode===u.a.UP){var K=N.getRatio(D);N.up(D,K,null),N.stop()}else if(D.keyCode===u.a.DOWN){var ee=N.getRatio(D);N.down(D,ee,null),N.stop()}else D.keyCode===u.a.ENTER&&I&&I(D);if(N.recordCursorPosition(),N.lastKeyCode=D.keyCode,F){for(var he=arguments.length,de=new Array(he>1?he-1:0),Se=1;Se<he;Se++)de[Se-1]=arguments[Se];F.apply(void 0,[D].concat(de))}},N.onKeyUp=function(D){var W=N.props.onKeyUp;if(N.stop(),N.recordCursorPosition(),W){for(var F=arguments.length,I=new Array(F>1?F-1:0),K=1;K<F;K++)I[K-1]=arguments[K];W.apply(void 0,[D].concat(I))}},N.onChange=function(D){var W=N.props.onChange;N.state.focused&&(N.inputting=!0),N.rawInput=N.props.parser(N.getValueFromEvent(D)),N.setState({inputValue:N.rawInput}),W(N.toNumber(N.rawInput))},N.onMouseUp=function(){var D=N.props.onMouseUp;N.recordCursorPosition(),D&&D.apply(void 0,arguments)},N.onFocus=function(){var D;N.setState({focused:!0}),(D=N.props).onFocus.apply(D,arguments)},N.onBlur=function(){var D=N.props.onBlur;N.inputting=!1,N.setState({focused:!1});var W=N.getCurrentValidValue(N.state.inputValue),F=N.setValue(W,h);if(D){var I=N.input.value,K=N.getInputDisplayValue({focus:!1,value:F});N.input.value=K&&Number(K),D.apply(void 0,arguments),N.input.value=I}},N.getRatio=function(D){var W=1;return D.metaKey||D.ctrlKey?W=.1:D.shiftKey&&(W=10),W},N.getFullNum=function(D){return isNaN(D)?D:/e/i.test(String(D))?Number(D).toFixed(18).replace(/\.?0+$/,""):D},N.getPrecision=function(D){if(v(N.props.precision))return N.props.precision;var W=String(D);if(W.indexOf("e-")>=0)return parseInt(W.slice(W.indexOf("e-")+2),10);var F=0;return W.indexOf(".")>=0&&(F=W.length-W.indexOf(".")-1),F},N.getInputDisplayValue=function(D){var W=D||N.state,F=W.focused,I=W.inputValue,K=W.value,ee;F?ee=I:ee=N.toPrecisionAsStep(K),ee==null&&(ee="");var he=N.formatWrapper(ee);return v(N.props.decimalSeparator)&&(he=he.toString().replace(".",N.props.decimalSeparator)),he},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(D){}},N.restoreByAfter=function(D){if(D===void 0)return!1;var W=N.input.value,F=W.lastIndexOf(D);if(F===-1)return!1;var I=N.cursorBefore.length;return N.lastKeyCode===u.a.DELETE&&N.cursorBefore.charAt(I-1)===D[0]?(N.fixCaret(I,I),!0):F+D.length===W.length?(N.fixCaret(F,F),!0):!1},N.partRestoreByAfter=function(D){return D===void 0?!1:Array.prototype.some.call(D,function(W,F){var I=D.substring(F);return N.restoreByAfter(I)})},N.isNotCompleteNumber=function(D){return isNaN(D)||D===""||D===null||D&&D.toString().indexOf(".")===D.toString().length-1},N.stop=function(){N.autoStepTimer&&clearTimeout(N.autoStepTimer)},N.down=function(D,W,F){N.pressingUpOrDown=!0,N.step("down",D,W,F)},N.up=function(D,W,F){N.pressingUpOrDown=!0,N.step("up",D,W,F)},N.saveInput=function(D){N.input=D};var V=L.value;V===void 0&&(V=L.defaultValue),N.state={focused:L.autoFocus};var H=N.getValidValue(N.toNumber(V));return N.state=i(i({},N.state),{},{inputValue:N.toPrecisionAsStep(H),value:H}),N}return Object(b.a)(U,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(N){var V=this.props,H=V.value,D=V.onChange,W=V.max,F=V.min,I=this.state.focused;if(N){if(!R(N.value,H)||!R(N.max,W)||!R(N.min,F)){var K=I?H:this.getValidValue(H),ee;this.pressingUpOrDown?ee=K:this.inputting?ee=this.rawInput:ee=this.toPrecisionAsStep(K),this.setState({value:K,inputValue:ee})}var he="value"in this.props?H:this.state.value;"max"in this.props&&N.max!==W&&typeof he=="number"&&he>W&&D&&D(W),"min"in this.props&&N.min!==F&&typeof he=="number"&&he<F&&D&&D(F)}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(Se){}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 V=N;return V===""?V="":this.isNotCompleteNumber(parseFloat(V))?V=this.state.value:V=this.getValidValue(V),this.toNumber(V)}},{key:"getValueFromEvent",value:function(N){var V=N.target.value.trim().replace(/。/g,".");return v(this.props.decimalSeparator)&&(V=V.replace(this.props.decimalSeparator,".")),V}},{key:"getValidValue",value:function(N){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.props.min,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,D=parseFloat(N);return isNaN(D)?N:(D<V&&(D=V),D>H&&(D=H),D)}},{key:"setValue",value:function(N,V){var H=this.props.precision,D=this.isNotCompleteNumber(parseFloat(N))?null:parseFloat(N),W=this.state.value,F=W===void 0?null:W,I=this.state.inputValue,K=I===void 0?null:I,ee=typeof D=="number"?D.toFixed(H):"".concat(D),he=D!==F||ee!=="".concat(K);return"value"in this.props?(K=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:K},V)):this.setState({value:D,inputValue:this.toPrecisionAsStep(N)},V),he&&this.props.onChange(D),D}},{key:"getMaxPrecision",value:function(N){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,H=this.props,D=H.precision,W=H.step;if(v(D))return D;var F=this.getPrecision(V),I=this.getPrecision(W),K=this.getPrecision(N);return N?Math.max(K,F+I):F+I}},{key:"getPrecisionFactor",value:function(N){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,H=this.getMaxPrecision(N,V);return Math.pow(10,H)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(N){return this.props.formatter?this.props.formatter(N):N}},{key:"toPrecisionAsStep",value:function(N){if(this.isNotCompleteNumber(N)||N==="")return N;var V=Math.abs(this.getMaxPrecision(N));return isNaN(V)?N.toString():Number(N).toFixed(V)}},{key:"toNumber",value:function(N){var V=this.props.precision,H=this.state.focused,D=N&&N.length>16&&H;return this.isNotCompleteNumber(N)||D?N:v(V)?Math.round(N*Math.pow(10,V))/Math.pow(10,V):Number(N)}},{key:"upStep",value:function(N,V){var H=this.props.step,D=this.getPrecisionFactor(N,V),W=Math.abs(this.getMaxPrecision(N,V)),F=((D*N+D*H*V)/D).toFixed(W);return this.toNumber(F)}},{key:"downStep",value:function(N,V){var H=this.props.step,D=this.getPrecisionFactor(N,V),W=Math.abs(this.getMaxPrecision(N,V)),F=((D*N-D*H*V)/D).toFixed(W);return this.toNumber(F)}},{key:"step",value:function(N,V){var H=this,D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,W=arguments.length>3?arguments[3]:void 0;this.stop(),V&&(V.persist(),V.preventDefault());var F=this.props;if(F.disabled)return;var I=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(I))return;var K=this["".concat(N,"Step")](I,D),ee=K>F.max||K<F.min;if(K>F.max?K=F.max:K<F.min&&(K=F.min),this.setValue(K,null),this.setState({focused:!0},function(){H.pressingUpOrDown=!1}),ee)return;this.autoStepTimer=setTimeout(function(){H[N](V,D,!0)},W?c:w)}},{key:"fixCaret",value:function(N,V){if(N===void 0||V===void 0||!this.input||!this.input.value)return;try{var H=this.input.selectionStart,D=this.input.selectionEnd;(N!==H||V!==D)&&this.input.setSelectionRange(N,V)}catch(W){}}},{key:"render",value:function(){var N,V=this.props,H=V.prefixCls,D=V.disabled,W=V.readOnly,F=V.useTouch,I=V.autoComplete,K=V.upHandler,ee=V.downHandler,he=V.className,de=V.max,Se=V.min,Te=V.style,ce=V.title,be=V.onMouseEnter,Ee=V.onMouseLeave,ue=V.onMouseOver,le=V.onMouseOut,$=V.required,me=V.onClick,re=V.tabIndex,ae=V.type,Oe=V.placeholder,se=V.id,te=V.inputMode,Q=V.pattern,J=V.step,ve=V.maxLength,_e=V.autoFocus,Ae=V.name,Qe=V.onPaste,tt=V.onInput,dt=Object(P.a)(V,["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"]),mt=this.state,vt=mt.value,yt=mt.focused,Ye=a()(H,(N={},Object(g.a)(N,he,!!he),Object(g.a)(N,"".concat(H,"-disabled"),D),Object(g.a)(N,"".concat(H,"-focused"),yt),N)),Ue={};Object.keys(dt).forEach(function(Be){(Be.substr(0,5)==="data-"||Be.substr(0,5)==="aria-"||Be==="role")&&(Ue[Be]=dt[Be])});var ft=!W&&!D,jt=this.getInputDisplayValue(null),bt=(vt||vt===0)&&(isNaN(vt)||Number(vt)>=de),Pt=(vt||vt===0)&&(isNaN(vt)||Number(vt)<=Se),it=bt||D||W,He=Pt||D||W,Ge=a()("".concat(H,"-handler"),"".concat(H,"-handler-up"),Object(g.a)({},"".concat(H,"-handler-up-disabled"),it)),Ce=a()("".concat(H,"-handler"),"".concat(H,"-handler-down"),Object(g.a)({},"".concat(H,"-handler-down-disabled"),He)),Ie=F?{onTouchStart:it?h:this.up,onTouchEnd:this.stop}:{onMouseDown:it?h:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},Fe=F?{onTouchStart:He?h:this.down,onTouchEnd:this.stop}:{onMouseDown:He?h:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return e.a.createElement("div",{className:Ye,style:Te,title:ce,onMouseEnter:be,onMouseLeave:Ee,onMouseOver:ue,onMouseOut:le,onFocus:function(){return null},onBlur:function(){return null}},e.a.createElement("div",{className:"".concat(H,"-handler-wrap")},e.a.createElement("span",Object.assign({unselectable:"on"},Ie,{role:"button","aria-label":"Increase Value","aria-disabled":it,className:Ge}),K||e.a.createElement("span",{unselectable:"on",className:"".concat(H,"-handler-up-inner"),onClick:d})),e.a.createElement("span",Object.assign({unselectable:"on"},Fe,{role:"button","aria-label":"Decrease Value","aria-disabled":He,className:Ce}),ee||e.a.createElement("span",{unselectable:"on",className:"".concat(H,"-handler-down-inner"),onClick:d}))),e.a.createElement("div",{className:"".concat(H,"-input-wrap")},e.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Se,"aria-valuemax":de,"aria-valuenow":vt,required:$,type:ae,placeholder:Oe,onPaste:Qe,onClick:me,onMouseUp:this.onMouseUp,className:"".concat(H,"-input"),tabIndex:re,autoComplete:I,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:ft?this.onKeyDown:h,onKeyUp:ft?this.onKeyUp:h,autoFocus:_e,maxLength:ve,readOnly:W,disabled:D,max:de,min:Se,step:J,name:Ae,title:ce,id:se,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(jt),pattern:Q,inputMode:te,onInput:tt},Ue))))}}]),U}(e.a.Component);M.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:E,min:-E,step:1,style:{},onChange:h,onKeyDown:h,onPressEnter:h,onFocus:h,onBlur:h,parser:s,required:!1,autoComplete:"off"};var C=M,S=z.a=C},e7zE:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("3y9D"),o("WYAk"))})(this,function(P){return function(){var g=P,T=g.lib,b=T.Base,y=T.WordArray,x=g.algo,O=x.SHA1,m=x.HMAC,e=x.PBKDF2=b.extend({cfg:b.extend({keySize:128/32,hasher:O,iterations:1}),init:function(f){this.cfg=this.cfg.extend(f)},compute:function(f,a){for(var u=this.cfg,r=m.create(u.hasher,f),i=y.create(),n=y.create([1]),l=i.words,h=n.words,d=u.keySize,s=u.iterations;l.length<d;){var c=r.update(a).finalize(n);r.reset();for(var w=c.words,E=w.length,v=c,R=1;R<s;R++){v=r.finalize(v),r.reset();for(var M=v.words,C=0;C<E;C++)w[C]^=M[C]}i.concat(c),h[0]++}return i.sigBytes=d*4,i}});g.PBKDF2=function(f,a,u){return e.create(u).compute(f,a)}}(),P.PBKDF2})},"f0W+":function(k,z,o){k.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(k,z,o){k.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(k,z,o){"use strict";o.d(z,"a",function(){return c.a});var P=o("rePB"),g=o("VTBJ"),T=o("KQm4"),b=o("1OyB"),y=o("vuIU"),x=o("Ji7U"),O=o("LK+K"),m=o("q1tI"),e=o("4IlW"),f=o("Kwbf"),a=o("TSYQ"),u=o.n(a),r=o("sboe"),i=o("OZM5"),n=o("815F"),l=o("ODXe"),h=o("Ff2n"),d=o("+nKL"),s=o("8XRh"),c=o("WaYH"),w=function(Se,Te){var ce=Se.className,be=Se.style,Ee=Se.motion,ue=Se.motionNodes,le=Se.motionType,$=Se.onMotionStart,me=Se.onMotionEnd,re=Se.active,ae=Se.treeNodeRequiredProps,Oe=Object(h.a)(Se,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),se=m.useState(!0),te=Object(l.a)(se,2),Q=te[0],J=te[1],ve=m.useContext(r.a),_e=ve.prefixCls,Ae=m.useRef(!1),Qe=function(){Ae.current||me(),Ae.current=!0};return Object(m.useEffect)(function(){ue&&le==="hide"&&Q&&J(!1)},[ue]),Object(m.useEffect)(function(){return ue&&$(),function(){ue&&Qe()}},[]),ue?m.createElement(s.default,Object.assign({ref:Te,visible:Q},Ee,{motionAppear:le==="show",onAppearEnd:Qe,onLeaveEnd:Qe}),function(tt,dt){var mt=tt.className,vt=tt.style;return m.createElement("div",{ref:dt,className:u()("".concat(_e,"-treenode-motion"),mt),style:vt},ue.map(function(yt){var Ye=yt.data,Ue=Ye.key,ft=Object(h.a)(Ye,["key"]),jt=yt.isStart,bt=yt.isEnd;delete ft.children;var Pt=Object(n.f)(Ue,ae);return m.createElement(c.a,Object.assign({},ft,Pt,{active:re,data:yt.data,key:Ue,isStart:jt,isEnd:bt}))}))}):m.createElement(c.a,Object.assign({domRef:Te,className:ce,style:be},Oe,{active:re}))};w.displayName="MotionTreeNode";var E=m.forwardRef(w),v=E;function R(){var de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Te=de.length,ce=Se.length;if(Math.abs(Te-ce)!==1)return{add:!1,key:null};function be(Ee,ue){var le=new Map;Ee.forEach(function(me){le.set(me,!0)});var $=ue.filter(function(me){return!le.has(me)});return $.length===1?$[0]:null}return Te<ce?{add:!0,key:be(de,Se)}:{add:!1,key:be(Se,de)}}function M(de,Se,Te){var ce=de.findIndex(function(le){var $=le.data;return $.key===Te}),be=de[ce+1],Ee=Se.findIndex(function(le){var $=le.data;return $.key===Te});if(be){var ue=Se.findIndex(function(le){var $=le.data;return $.key===be.data.key});return Se.slice(Ee+1,ue)}return Se.slice(Ee+1)}var C={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},S=function(){},_="RC_TREE_MOTION_".concat(Math.random()),A={key:_},U={key:_,level:0,index:0,pos:"0",node:A},L={parent:null,children:[],pos:U.pos,data:A,isStart:[],isEnd:[]};function N(de,Se,Te,ce){return Se===!1||!Te?de:de.slice(0,Math.ceil(Te/ce)+1)}function V(de){var Se=de.data.key,Te=de.pos;return Object(n.e)(Se,Te)}function H(de){for(var Se=String(de.data.key),Te=de;Te.parent;)Te=Te.parent,Se="".concat(Te.data.key," > ").concat(Se);return Se}var D=function(Se,Te){var ce=Se.prefixCls,be=Se.data,Ee=Se.selectable,ue=Se.checkable,le=Se.expandedKeys,$=Se.selectedKeys,me=Se.checkedKeys,re=Se.loadedKeys,ae=Se.loadingKeys,Oe=Se.halfCheckedKeys,se=Se.keyEntities,te=Se.disabled,Q=Se.dragging,J=Se.dragOverNodeKey,ve=Se.dropPosition,_e=Se.motion,Ae=Se.height,Qe=Se.itemHeight,tt=Se.virtual,dt=Se.focusable,mt=Se.activeItem,vt=Se.focused,yt=Se.tabIndex,Ye=Se.onKeyDown,Ue=Se.onFocus,ft=Se.onBlur,jt=Se.onActiveChange,bt=Se.onListChangeStart,Pt=Se.onListChangeEnd,it=Object(h.a)(Se,["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=m.useRef(null);m.useImperativeHandle(Te,function(){return{scrollTo:function(on){He.current.scrollTo(on)}}});var Ge=m.useState(le),Ce=Object(l.a)(Ge,2),Ie=Ce[0],Fe=Ce[1],Be=m.useState(be),We=Object(l.a)(Be,2),st=We[0],Dt=We[1],Ht=m.useState(be),rn=Object(l.a)(Ht,2),Bt=rn[0],Ct=rn[1],Ke=m.useState([]),et=Object(l.a)(Ke,2),at=et[0],Pe=et[1],Xe=m.useState(null),ht=Object(l.a)(Xe,2),Et=ht[0],Ot=ht[1];function Mt(){Dt(be),Ct(be),Pe([]),Ot(null),Pt()}m.useEffect(function(){Fe(le);var Lt=R(Ie,le);if(Lt.key!==null)if(Lt.add){var on=st.findIndex(function(fr){var Yn=fr.data.key;return Yn===Lt.key}),mn=N(M(st,be,Lt.key),tt,Ae,Qe),Hn=st.slice();Hn.splice(on+1,0,L),Ct(Hn),Pe(mn),Ot("show")}else{var Xn=be.findIndex(function(fr){var Yn=fr.data.key;return Yn===Lt.key}),Fn=N(M(be,st,Lt.key),tt,Ae,Qe),xn=be.slice();xn.splice(Xn+1,0,L),Ct(xn),Pe(Fn),Ot("hide")}else st!==be&&(Dt(be),Ct(be))},[le,be]),m.useEffect(function(){Q||Mt()},[Q]);var lt=_e?Bt:be,Ft={expandedKeys:le,selectedKeys:$,loadedKeys:re,loadingKeys:ae,checkedKeys:me,halfCheckedKeys:Oe,dragOverNodeKey:J,dropPosition:ve,keyEntities:se};return m.createElement(m.Fragment,null,vt&&mt&&m.createElement("span",{style:C,"aria-live":"assertive"},H(mt)),m.createElement("div",{role:"tree"},m.createElement("input",{style:C,disabled:dt===!1||te,tabIndex:dt!==!1?yt:null,onKeyDown:Ye,onFocus:Ue,onBlur:ft,value:"",onChange:S})),m.createElement(d.a,Object.assign({},it,{data:lt,itemKey:V,height:Ae,fullHeight:!1,virtual:tt,itemHeight:Qe,prefixCls:"".concat(ce,"-list"),ref:He}),function(Lt){var on=Lt.pos,mn=Lt.data,Hn=mn.key,Xn=Object(h.a)(mn,["key"]),Fn=Lt.isStart,xn=Lt.isEnd,fr=Object(n.e)(Hn,on);delete Xn.children;var Yn=Object(n.f)(fr,Ft);return m.createElement(v,Object.assign({},Xn,Yn,{active:mt&&Hn===mt.data.key,pos:on,data:Lt.data,isStart:Fn,isEnd:xn,motion:_e,motionNodes:Hn===_?at:null,motionType:Et,onMotionStart:bt,onMotionEnd:Mt,treeNodeRequiredProps:Ft,onMouseMove:function(){jt(null)}}))}))},W=m.forwardRef(D);W.displayName="NodeList";var F=W,I=o("NvD2"),K=function(de){Object(x.a)(Te,de);var Se=Object(O.a)(Te);function Te(){var ce;return Object(b.a)(this,Te),ce=Se.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=m.createRef(),ce.onNodeDragStart=function(be,Ee){var ue=ce.state,le=ue.expandedKeys,$=ue.keyEntities,me=ce.props.onDragStart,re=Ee.props.eventKey;ce.dragNode=Ee;var ae=Object(i.b)(le,re);ce.setState({dragging:!0,dragNodesKeys:Object(i.g)(re,$)}),ce.setExpandedKeys(ae),me&&me({event:be,node:Object(n.b)(Ee.props)})},ce.onNodeDragEnter=function(be,Ee){var ue=ce.state,le=ue.expandedKeys,$=ue.keyEntities,me=ue.dragNodesKeys,re=ce.props.onDragEnter,ae=Ee.props,Oe=ae.pos,se=ae.eventKey;if(!ce.dragNode||me.indexOf(se)!==-1)return;var te=Object(i.c)(be,Ee);if(ce.dragNode.props.eventKey===se&&te===0){ce.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){ce.setState({dragOverNodeKey:se,dropPosition:te}),ce.delayedDragEnterLogic||(ce.delayedDragEnterLogic={}),Object.keys(ce.delayedDragEnterLogic).forEach(function(Q){clearTimeout(ce.delayedDragEnterLogic[Q])}),ce.delayedDragEnterLogic[Oe]=window.setTimeout(function(){if(!ce.state.dragging)return;var Q=Object(T.a)(le),J=$[se];J&&(J.children||[]).length&&(Q=Object(i.a)(le,se)),"expandedKeys"in ce.props||ce.setExpandedKeys(Q),re&&re({event:be,node:Object(n.b)(Ee.props),expandedKeys:Q})},400)},0)},ce.onNodeDragOver=function(be,Ee){var ue=ce.state.dragNodesKeys,le=ce.props.onDragOver,$=Ee.props.eventKey;if(ue.indexOf($)!==-1)return;if(ce.dragNode&&$===ce.state.dragOverNodeKey){var me=Object(i.c)(be,Ee);if(me===ce.state.dropPosition)return;ce.setState({dropPosition:me})}le&&le({event:be,node:Object(n.b)(Ee.props)})},ce.onNodeDragLeave=function(be,Ee){var ue=ce.props.onDragLeave;ce.setState({dragOverNodeKey:""}),ue&&ue({event:be,node:Object(n.b)(Ee.props)})},ce.onNodeDragEnd=function(be,Ee){var ue=ce.props.onDragEnd;ce.setState({dragOverNodeKey:""}),ce.cleanDragState(),ue&&ue({event:be,node:Object(n.b)(Ee.props)}),ce.dragNode=null},ce.onNodeDrop=function(be,Ee){var ue=ce.state,le=ue.dragNodesKeys,$=le===void 0?[]:le,me=ue.dropPosition,re=ce.props.onDrop,ae=Ee.props,Oe=ae.eventKey,se=ae.pos;if(ce.setState({dragOverNodeKey:""}),ce.cleanDragState(),$.indexOf(Oe)!==-1){Object(f.a)(!1,"Can not drop to dragNode(include it's children node)");return}var te=Object(i.k)(se),Q={event:be,node:Object(n.b)(Ee.props),dragNode:ce.dragNode?Object(n.b)(ce.dragNode.props):null,dragNodesKeys:$.slice(),dropPosition:me+Number(te[te.length-1]),dropToGap:!1};me!==0&&(Q.dropToGap=!0),re&&re(Q),ce.dragNode=null},ce.cleanDragState=function(){var be=ce.state.dragging;be&&ce.setState({dragging:!1})},ce.onNodeClick=function(be,Ee){var ue=ce.props.onClick;ue&&ue(be,Ee)},ce.onNodeDoubleClick=function(be,Ee){var ue=ce.props.onDoubleClick;ue&&ue(be,Ee)},ce.onNodeSelect=function(be,Ee){var ue=ce.state.selectedKeys,le=ce.state.keyEntities,$=ce.props,me=$.onSelect,re=$.multiple,ae=Ee.selected,Oe=Ee.key,se=!ae;se?re?ue=Object(i.a)(ue,Oe):ue=[Oe]:ue=Object(i.b)(ue,Oe);var te=ue.map(function(Q){var J=le[Q];return J?J.node:null}).filter(function(Q){return Q});ce.setUncontrolledState({selectedKeys:ue}),me&&me(ue,{event:"select",selected:se,node:Ee,selectedNodes:te,nativeEvent:be.nativeEvent})},ce.onNodeCheck=function(be,Ee,ue){var le=ce.state,$=le.keyEntities,me=le.checkedKeys,re=le.halfCheckedKeys,ae=ce.props,Oe=ae.checkStrictly,se=ae.onCheck,te=Ee.key,Q,J={event:"check",node:Ee,checked:ue,nativeEvent:be.nativeEvent};if(Oe){var ve=ue?Object(i.a)(me,te):Object(i.b)(me,te),_e=Object(i.b)(re,te);Q={checked:ve,halfChecked:_e},J.checkedNodes=ve.map(function(vt){return $[vt]}).filter(function(vt){return vt}).map(function(vt){return vt.node}),ce.setUncontrolledState({checkedKeys:ve})}else{var Ae=Object(I.a)([].concat(Object(T.a)(me),[te]),!0,$),Qe=Ae.checkedKeys,tt=Ae.halfCheckedKeys;if(!ue){var dt=new Set(Qe);dt.delete(te);var mt=Object(I.a)(Array.from(dt),{checked:!1,halfCheckedKeys:tt},$);Qe=mt.checkedKeys,tt=mt.halfCheckedKeys}Q=Qe,J.checkedNodes=[],J.checkedNodesPositions=[],J.halfCheckedKeys=tt,Qe.forEach(function(vt){var yt=$[vt];if(!yt)return;var Ye=yt.node,Ue=yt.pos;J.checkedNodes.push(Ye),J.checkedNodesPositions.push({node:Ye,pos:Ue})}),ce.setUncontrolledState({checkedKeys:Qe},!1,{halfCheckedKeys:tt})}se&&se(Q,J)},ce.onNodeLoad=function(be){return new Promise(function(Ee){ce.setState(function(ue){var le=ue.loadedKeys,$=le===void 0?[]:le,me=ue.loadingKeys,re=me===void 0?[]:me,ae=ce.props,Oe=ae.loadData,se=ae.onLoad,te=be.key;if(!Oe||$.indexOf(te)!==-1||re.indexOf(te)!==-1)return{};var Q=Oe(be);return Q.then(function(){var J=ce.state,ve=J.loadedKeys,_e=J.loadingKeys,Ae=Object(i.a)(ve,te),Qe=Object(i.b)(_e,te);se&&se(Ae,{event:"load",node:be}),ce.setUncontrolledState({loadedKeys:Ae}),ce.setState({loadingKeys:Qe}),Ee()}),{loadingKeys:Object(i.a)(re,te)}})})},ce.onNodeMouseEnter=function(be,Ee){var ue=ce.props.onMouseEnter;ue&&ue({event:be,node:Ee})},ce.onNodeMouseLeave=function(be,Ee){var ue=ce.props.onMouseLeave;ue&&ue({event:be,node:Ee})},ce.onNodeContextMenu=function(be,Ee){var ue=ce.props.onRightClick;ue&&(be.preventDefault(),ue({event:be,node:Ee}))},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,Ee=be.expandedKeys,ue=be.selectedKeys,le=be.loadedKeys,$=be.loadingKeys,me=be.checkedKeys,re=be.halfCheckedKeys,ae=be.dragOverNodeKey,Oe=be.dropPosition,se=be.keyEntities;return{expandedKeys:Ee||[],selectedKeys:ue||[],loadedKeys:le||[],loadingKeys:$||[],checkedKeys:me||[],halfCheckedKeys:re||[],dragOverNodeKey:ae,dropPosition:Oe,keyEntities:se}},ce.setExpandedKeys=function(be){var Ee=ce.state.treeData,ue=Object(n.d)(Ee,be);ce.setUncontrolledState({expandedKeys:be,flattenNodes:ue},!0)},ce.onNodeExpand=function(be,Ee){var ue=ce.state.expandedKeys,le=ce.state.listChanging,$=ce.props,me=$.onExpand,re=$.loadData,ae=Ee.key,Oe=Ee.expanded;if(le)return;var se=ue.indexOf(ae),te=!Oe;if(Object(f.a)(Oe&&se!==-1||!Oe&&se===-1,"Expand state not sync with index check"),te?ue=Object(i.a)(ue,ae):ue=Object(i.b)(ue,ae),ce.setExpandedKeys(ue),me&&me(ue,{node:Ee,expanded:te,nativeEvent:be.nativeEvent}),te&&re){var Q=ce.onNodeLoad(Ee);Q&&Q.then(function(){var J=Object(n.d)(ce.state.treeData,ue);ce.setUncontrolledState({flattenNodes:J})})}},ce.onListChangeStart=function(){ce.setUncontrolledState({listChanging:!0})},ce.onListChangeEnd=function(){setTimeout(function(){ce.setUncontrolledState({listChanging:!1})})},ce.onActiveChange=function(be){var Ee=ce.state.activeKey,ue=ce.props.onActiveChange;if(Ee===be)return;ce.setState({activeKey:be}),be!==null&&ce.scrollTo({key:be}),ue&&ue(be)},ce.getActiveItem=function(){var be=ce.state,Ee=be.activeKey,ue=be.flattenNodes;return Ee===null?null:ue.find(function(le){var $=le.data.key;return $===Ee})||null},ce.offsetActiveKey=function(be){var Ee=ce.state,ue=Ee.flattenNodes,le=Ee.activeKey,$=ue.findIndex(function(ae){var Oe=ae.data.key;return Oe===le});$===-1&&be<0&&($=ue.length),$=($+be+ue.length)%ue.length;var me=ue[$];if(me){var re=me.data.key;ce.onActiveChange(re)}else ce.onActiveChange(null)},ce.onKeyDown=function(be){var Ee=ce.state,ue=Ee.activeKey,le=Ee.expandedKeys,$=Ee.checkedKeys,me=ce.props,re=me.onKeyDown,ae=me.checkable,Oe=me.selectable;switch(be.which){case e.a.UP:{ce.offsetActiveKey(-1),be.preventDefault();break}case e.a.DOWN:{ce.offsetActiveKey(1),be.preventDefault();break}}var se=ce.getActiveItem();if(se&&se.data){var te=ce.getTreeNodeRequiredProps(),Q=se.data.isLeaf===!1||!!(se.data.children||[]).length,J=Object(n.b)(Object(g.a)(Object(g.a)({},Object(n.f)(ue,te)),{},{data:se.data,active:!0}));switch(be.which){case e.a.LEFT:{Q&&le.includes(ue)?ce.onNodeExpand({},J):se.parent&&ce.onActiveChange(se.parent.data.key),be.preventDefault();break}case e.a.RIGHT:{Q&&!le.includes(ue)?ce.onNodeExpand({},J):se.children&&se.children.length&&ce.onActiveChange(se.children[0].data.key),be.preventDefault();break}case e.a.ENTER:case e.a.SPACE:{ae&&!J.disabled&&J.checkable!==!1&&!J.disableCheckbox?ce.onNodeCheck({},J,!$.includes(ue)):!ae&&Oe&&!J.disabled&&J.selectable!==!1&&ce.onNodeSelect({},J);break}}}re&&re(be)},ce.setUncontrolledState=function(be){var Ee=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 le=!1,$=!0,me={};Object.keys(be).forEach(function(re){if(re in ce.props){$=!1;return}le=!0,me[re]=be[re]}),le&&(!Ee||$)&&ce.setState(Object(g.a)(Object(g.a)({},me),ue))},ce.scrollTo=function(be){ce.listRef.current.scrollTo(be)},ce}return Object(y.a)(Te,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var be,Ee=this.state,ue=Ee.focused,le=Ee.flattenNodes,$=Ee.keyEntities,me=Ee.dragging,re=Ee.activeKey,ae=this.props,Oe=ae.prefixCls,se=ae.className,te=ae.style,Q=ae.showLine,J=ae.focusable,ve=ae.tabIndex,_e=ve===void 0?0:ve,Ae=ae.selectable,Qe=ae.showIcon,tt=ae.icon,dt=ae.switcherIcon,mt=ae.draggable,vt=ae.checkable,yt=ae.checkStrictly,Ye=ae.disabled,Ue=ae.motion,ft=ae.loadData,jt=ae.filterTreeNode,bt=ae.height,Pt=ae.itemHeight,it=ae.virtual,He=ae.titleRender,Ge=ae.onContextMenu,Ce=Object(i.f)(this.props);return m.createElement(r.a.Provider,{value:{prefixCls:Oe,selectable:Ae,showIcon:Qe,icon:tt,switcherIcon:dt,draggable:mt,checkable:vt,checkStrictly:yt,disabled:Ye,keyEntities:$,loadData:ft,filterTreeNode:jt,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}},m.createElement("div",{className:u()(Oe,se,(be={},Object(P.a)(be,"".concat(Oe,"-show-line"),Q),Object(P.a)(be,"".concat(Oe,"-focused"),ue),Object(P.a)(be,"".concat(Oe,"-active-focused"),re!==null),be))},m.createElement(F,Object.assign({ref:this.listRef,prefixCls:Oe,style:te,data:le,disabled:Ye,selectable:Ae,checkable:!!vt,motion:Ue,dragging:me,height:bt,itemHeight:Pt,virtual:it,focusable:J,focused:ue,tabIndex:_e,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(),Ce))))}}],[{key:"getDerivedStateFromProps",value:function(be,Ee){var ue=Ee.prevProps,le={prevProps:be};function $(tt){return!ue&&tt in be||ue&&ue[tt]!==be[tt]}var me;if($("treeData")?me=be.treeData:$("children")&&(Object(f.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),me=Object(n.c)(be.children)),me){le.treeData=me;var re=Object(n.a)(me);le.keyEntities=Object(g.a)(Object(P.a)({},_,U),re.keyEntities)}var ae=le.keyEntities||Ee.keyEntities;if($("expandedKeys")||ue&&$("autoExpandParent"))le.expandedKeys=be.autoExpandParent||!ue&&be.defaultExpandParent?Object(i.e)(be.expandedKeys,ae):be.expandedKeys;else if(!ue&&be.defaultExpandAll){var Oe=Object(g.a)({},ae);delete Oe[_],le.expandedKeys=Object.keys(Oe).map(function(tt){return Oe[tt].key})}else!ue&&be.defaultExpandedKeys&&(le.expandedKeys=be.autoExpandParent||be.defaultExpandParent?Object(i.e)(be.defaultExpandedKeys,ae):be.defaultExpandedKeys);if(le.expandedKeys||delete le.expandedKeys,me||le.expandedKeys){var se=Object(n.d)(me||Ee.treeData,le.expandedKeys||Ee.expandedKeys);le.flattenNodes=se}if(be.selectable&&($("selectedKeys")?le.selectedKeys=Object(i.d)(be.selectedKeys,be):!ue&&be.defaultSelectedKeys&&(le.selectedKeys=Object(i.d)(be.defaultSelectedKeys,be))),be.checkable){var te;if($("checkedKeys")?te=Object(i.j)(be.checkedKeys)||{}:!ue&&be.defaultCheckedKeys?te=Object(i.j)(be.defaultCheckedKeys)||{}:me&&(te=Object(i.j)(be.checkedKeys)||{checkedKeys:Ee.checkedKeys,halfCheckedKeys:Ee.halfCheckedKeys}),te){var Q=te,J=Q.checkedKeys,ve=J===void 0?[]:J,_e=Q.halfCheckedKeys,Ae=_e===void 0?[]:_e;if(!be.checkStrictly){var Qe=Object(I.a)(ve,!0,ae);ve=Qe.checkedKeys,Ae=Qe.halfCheckedKeys}le.checkedKeys=ve,le.halfCheckedKeys=Ae}}return $("loadedKeys")&&(le.loadedKeys=be.loadedKeys),le}}]),Te}(m.Component);K.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:[]},K.TreeNode=c.a;var ee=K,he=z.b=ee},fKo2:function(k,z,o){},fjLI:function(k,z,o){"use strict";o.d(z,"f",function(){return r}),o.d(z,"b",function(){return i}),o.d(z,"a",function(){return n}),o.d(z,"d",function(){return l}),o.d(z,"e",function(){return h}),o.d(z,"c",function(){return d});var P=o("8HAY"),g=o("Vhoy"),T=o("MI8n"),b=o("JYp7"),y=o("pmY6"),x=o("24hK"),O=o("nnTU"),m=o("T8No"),e=o("Cg/j"),f=o("t9D7"),a=function(s,c,w,E){var v=arguments.length,R=v<3?c:E===null?E=Object.getOwnPropertyDescriptor(c,w):E,M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")R=Reflect.decorate(s,c,w,E);else for(var C=s.length-1;C>=0;C--)(M=s[C])&&(R=(v<3?M(R):v>3?M(c,w,R):M(c,w))||R);return v>3&&R&&Object.defineProperty(c,w,R),R},u=function(s,c){return function(w,E){c(w,E,s)}};function r(s){return s.command!==void 0}class i{constructor(s){this.id=i._idPool++,this._debugName=s}}i._idPool=0,i.CommandPalette=new i("CommandPalette"),i.EditorContext=new i("EditorContext"),i.SimpleEditorContext=new i("SimpleEditorContext"),i.EditorContextCopy=new i("EditorContextCopy"),i.EditorContextPeek=new i("EditorContextPeek"),i.MenubarEditMenu=new i("MenubarEditMenu"),i.MenubarCopy=new i("MenubarCopy"),i.MenubarGoMenu=new i("MenubarGoMenu"),i.MenubarSelectionMenu=new i("MenubarSelectionMenu"),i.InlineCompletionsActions=new i("InlineCompletionsActions");const n=Object(e.c)("menuService"),l=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new T.b,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:s=>s===i.CommandPalette}}addCommand(s){return this.addCommands(b.a.single(s))}addCommands(s){for(const c of s)this._commands.set(c.id,c);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(y.i)(()=>{let c=!1;for(const w of s)c=this._commands.delete(w.id)||c;c&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(s){return this._commands.get(s)}getCommands(){const s=new Map;return this._commands.forEach((c,w)=>s.set(w,c)),s}appendMenuItem(s,c){return this.appendMenuItems(b.a.single({id:s,item:c}))}appendMenuItems(s){const c=new Set,w=new x.a;for(const{id:E,item:v}of s){let R=this._menuItems.get(E);R||(R=new x.a,this._menuItems.set(E,R)),w.push(R.push(v)),c.add(E)}return this._onDidChangeMenu.fire(c),Object(y.i)(()=>{if(w.size>0){for(let E of w)E();this._onDidChangeMenu.fire(c),w.clear()}})}getMenuItems(s){let c;return this._menuItems.has(s)?c=[...this._menuItems.get(s)]:c=[],s===i.CommandPalette&&this._appendImplicitItems(c),c}_appendImplicitItems(s){const c=new Set;for(const w of s)r(w)&&(c.add(w.command.id),w.alt&&c.add(w.alt.id));this._commands.forEach((w,E)=>{c.has(E)||s.push({command:w})})}};class h extends P.e{constructor(s,c,w,E){super(`submenuitem.${s.submenu.id}`,typeof s.title=="string"?s.title:s.title.value,[],"submenu");this.item=s,this._menuService=c,this._contextKeyService=w,this._options=E}get actions(){const s=[],c=this._menuService.createMenu(this.item.submenu,this._contextKeyService),w=c.getActions(this._options);c.dispose();for(const[,E]of w)E.length>0&&(s.push(...E),s.push(new P.d));return s.length&&s.pop(),s}}let d=class s{constructor(c,w,E,v,R){var M,C;if(this._commandService=R,this.id=c.id,this.label=(E==null?void 0:E.renderShortTitle)&&c.shortTitle?typeof c.shortTitle=="string"?c.shortTitle:c.shortTitle.value:typeof c.title=="string"?c.title:c.title.value,this.tooltip=(C=typeof c.tooltip=="string"?c.tooltip:(M=c.tooltip)===null||M===void 0?void 0:M.value)!==null&&C!==void 0?C:"",this.enabled=!c.precondition||v.contextMatchesRules(c.precondition),this.checked=void 0,c.toggled){const S=c.toggled.condition?c.toggled:{condition:c.toggled};this.checked=v.contextMatchesRules(S.condition),this.checked&&S.tooltip&&(this.tooltip=typeof S.tooltip=="string"?S.tooltip:S.tooltip.value),S.title&&(this.label=typeof S.title=="string"?S.title:S.title.value)}this.item=c,this.alt=w?new s(w,void 0,E,v,R):void 0,this._options=E,f.d.isThemeIcon(c.icon)&&(this.class=g.a.asClassName(c.icon))}dispose(){}run(...c){var w,E;let v=[];return((w=this._options)===null||w===void 0?void 0:w.arg)&&(v=[...v,this._options.arg]),((E=this._options)===null||E===void 0?void 0:E.shouldForwardArgs)&&(v=[...v,...c]),this._commandService.executeCommand(this.id,...v)}};d=a([u(3,m.b),u(4,O.b)],d)},fyJ8:function(k,z,o){"use strict";var P=o("rePB"),g=o("VTBJ"),T=o("Ff2n"),b=o("U8pU"),y=o("q1tI"),x=o.n(y),O=o("TSYQ"),m=o.n(O),e=o("c+Xe"),f=o("sR1s");function a(l){return l&&Object(b.a)(l)==="object"&&!Array.isArray(l)&&!y.isValidElement(l)}function u(l){return typeof l=="string"?!0:Object(e.c)(l)}function r(l,h){var d,s=l.prefixCls,c=l.className,w=l.record,E=l.index,v=l.dataIndex,R=l.render,M=l.children,C=l.component,S=C===void 0?"td":C,_=l.colSpan,A=l.rowSpan,U=l.fixLeft,L=l.fixRight,N=l.firstFixLeft,V=l.lastFixLeft,H=l.firstFixRight,D=l.lastFixRight,W=l.appendNode,F=l.additionalProps,I=F===void 0?{}:F,K=l.ellipsis,ee=l.align,he=l.rowType,de=l.isSticky,Se="".concat(s,"-cell"),Te,ce;if(M)ce=M;else{var be=Object(f.b)(w,v);if(ce=be,R){var Ee=R(be,w,E);a(Ee)?(ce=Ee.children,Te=Ee.props):ce=Ee}}Object(b.a)(ce)==="object"&&!Array.isArray(ce)&&!y.isValidElement(ce)&&(ce=null),K&&(V||H)&&(ce=y.createElement("span",{className:"".concat(Se,"-content")},ce));var ue=Te||{},le=ue.colSpan,$=ue.rowSpan,me=ue.style,re=ue.className,ae=Object(T.a)(ue,["colSpan","rowSpan","style","className"]),Oe=le!==void 0?le:_,se=$!==void 0?$:A;if(Oe===0||se===0)return null;var te={},Q=typeof U=="number",J=typeof L=="number";Q&&(te.position="sticky",te.left=U),J&&(te.position="sticky",te.right=L);var ve={};ee&&(ve.textAlign=ee);var _e,Ae=K===!0?{showTitle:!0}:K;Ae&&(Ae.showTitle||he==="header")&&(typeof ce=="string"||typeof ce=="number"?_e=ce.toString():y.isValidElement(ce)&&typeof ce.props.children=="string"&&(_e=ce.props.children));var Qe=Object(g.a)(Object(g.a)(Object(g.a)({title:_e},ae),I),{},{colSpan:Oe&&Oe!==1?Oe:null,rowSpan:se&&se!==1?se:null,className:m()(Se,c,(d={},Object(P.a)(d,"".concat(Se,"-fix-left"),Q),Object(P.a)(d,"".concat(Se,"-fix-left-first"),N),Object(P.a)(d,"".concat(Se,"-fix-left-last"),V),Object(P.a)(d,"".concat(Se,"-fix-right"),J),Object(P.a)(d,"".concat(Se,"-fix-right-first"),H),Object(P.a)(d,"".concat(Se,"-fix-right-last"),D),Object(P.a)(d,"".concat(Se,"-ellipsis"),K),Object(P.a)(d,"".concat(Se,"-with-append"),W),Object(P.a)(d,"".concat(Se,"-fix-sticky"),(Q||J)&&de),d),I.className,re),style:Object(g.a)(Object(g.a)(Object(g.a)(Object(g.a)({},I.style),ve),te),me),ref:u(S)?h:null});return y.createElement(S,Object.assign({},Qe),W,ce)}var i=y.forwardRef(r);i.displayName="Cell";var n=y.memo(i,function(l,h){return h.shouldCellUpdate?!h.shouldCellUpdate(h.record,l.record):!1});z.a=n},"gb/T":function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(P){return P.mode.ECB=function(){var g=P.lib.BlockCipherMode.extend();return g.Encryptor=g.extend({processBlock:function(T,b){this._cipher.encryptBlock(T,b)}}),g.Decryptor=g.extend({processBlock:function(T,b){this._cipher.decryptBlock(T,b)}}),g}(),P.mode.ECB})},"h/E3":function(k,z,o){k.exports={information:"information___wfVJL",scroll:"scroll___2bOg0",formWrap:"formWrap___3qgTO",img:"img___2zP-8"}},h78n:function(k,z,o){"use strict";o.d(z,"a",function(){return N});var P=o("q1tI"),g=o.n(P),T=o("TSYQ"),b=o.n(T),y={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},x=function(D){var W=D.map(function(){return Object(P.useRef)()}),F=Object(P.useRef)();return Object(P.useEffect)(function(){var I=Date.now(),K=!1;Object.keys(W).forEach(function(ee){var he=W[ee].current;if(!he)return;K=!0;var de=he.style;de.transitionDuration=".3s, .3s, .3s, .06s",F.current&&I-F.current<100&&(de.transitionDuration="0s, 0s")}),K&&(F.current=Date.now())}),[W]};function O(){return O=Object.assign||function(H){for(var D=1;D<arguments.length;D++){var W=arguments[D];for(var F in W)Object.prototype.hasOwnProperty.call(W,F)&&(H[F]=W[F])}return H},O.apply(this,arguments)}function m(H,D){return r(H)||u(H,D)||f(H,D)||e()}function e(){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 f(H,D){if(!H)return;if(typeof H=="string")return a(H,D);var W=Object.prototype.toString.call(H).slice(8,-1);if(W==="Object"&&H.constructor&&(W=H.constructor.name),W==="Map"||W==="Set")return Array.from(H);if(W==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(W))return a(H,D)}function a(H,D){(D==null||D>H.length)&&(D=H.length);for(var W=0,F=new Array(D);W<D;W++)F[W]=H[W];return F}function u(H,D){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(H)))return;var W=[],F=!0,I=!1,K=void 0;try{for(var ee=H[Symbol.iterator](),he;!(F=(he=ee.next()).done)&&!(W.push(he.value),D&&W.length===D);F=!0);}catch(de){I=!0,K=de}finally{try{!F&&ee.return!=null&&ee.return()}finally{if(I)throw K}}return W}function r(H){if(Array.isArray(H))return H}function i(H,D){if(H==null)return{};var W=n(H,D),F,I;if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(H);for(I=0;I<K.length;I++){if(F=K[I],D.indexOf(F)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(H,F))continue;W[F]=H[F]}}return W}function n(H,D){if(H==null)return{};var W={},F=Object.keys(H),I,K;for(K=0;K<F.length;K++){if(I=F[K],D.indexOf(I)>=0)continue;W[I]=H[I]}return W}var l=function(D){var W=D.className,F=D.percent,I=D.prefixCls,K=D.strokeColor,ee=D.strokeLinecap,he=D.strokeWidth,de=D.style,Se=D.trailColor,Te=D.trailWidth,ce=D.transition,be=i(D,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete be.gapPosition;var Ee=Array.isArray(F)?F:[F],ue=Array.isArray(K)?K:[K],le=x(Ee),$=m(le,1),me=$[0],re=he/2,ae=100-he/2,Oe="M ".concat(ee==="round"?re:0,",").concat(re,`
|
|
|
L `).concat(ee==="round"?ae:100,",").concat(re),se="0 0 100 ".concat(he),te=0;return g.a.createElement("svg",O({className:b()("".concat(I,"-line"),W),viewBox:se,preserveAspectRatio:"none",style:de},be),g.a.createElement("path",{className:"".concat(I,"-line-trail"),d:Oe,strokeLinecap:ee,stroke:Se,strokeWidth:Te||he,fillOpacity:"0"}),Ee.map(function(Q,J){var ve={strokeDasharray:"".concat(Q,"px, 100px"),strokeDashoffset:"-".concat(te,"px"),transition:ce||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},_e=ue[J]||ue[ue.length-1];return te+=Q,g.a.createElement("path",{key:J,className:"".concat(I,"-line-path"),d:Oe,strokeLinecap:ee,stroke:_e,strokeWidth:he,fillOpacity:"0",ref:me[J],style:ve})}))};l.defaultProps=y;var h=l;function d(){return d=Object.assign||function(H){for(var D=1;D<arguments.length;D++){var W=arguments[D];for(var F in W)Object.prototype.hasOwnProperty.call(W,F)&&(H[F]=W[F])}return H},d.apply(this,arguments)}function s(H,D){return R(H)||v(H,D)||w(H,D)||c()}function c(){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 w(H,D){if(!H)return;if(typeof H=="string")return E(H,D);var W=Object.prototype.toString.call(H).slice(8,-1);if(W==="Object"&&H.constructor&&(W=H.constructor.name),W==="Map"||W==="Set")return Array.from(H);if(W==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(W))return E(H,D)}function E(H,D){(D==null||D>H.length)&&(D=H.length);for(var W=0,F=new Array(D);W<D;W++)F[W]=H[W];return F}function v(H,D){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(H)))return;var W=[],F=!0,I=!1,K=void 0;try{for(var ee=H[Symbol.iterator](),he;!(F=(he=ee.next()).done)&&!(W.push(he.value),D&&W.length===D);F=!0);}catch(de){I=!0,K=de}finally{try{!F&&ee.return!=null&&ee.return()}finally{if(I)throw K}}return W}function R(H){if(Array.isArray(H))return H}function M(H,D){if(H==null)return{};var W=C(H,D),F,I;if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(H);for(I=0;I<K.length;I++){if(F=K[I],D.indexOf(F)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(H,F))continue;W[F]=H[F]}}return W}function C(H,D){if(H==null)return{};var W={},F=Object.keys(H),I,K;for(K=0;K<F.length;K++){if(I=F[K],D.indexOf(I)>=0)continue;W[I]=H[I]}return W}var S=0;function _(H){return+H.replace("%","")}function A(H){return Array.isArray(H)?H:[H]}function U(H,D,W,F){var I=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,K=arguments.length>5?arguments[5]:void 0,ee=50-F/2,he=0,de=-ee,Se=0,Te=-2*ee;switch(K){case"left":he=-ee,de=0,Se=2*ee,Te=0;break;case"right":he=ee,de=0,Se=-2*ee,Te=0;break;case"bottom":de=ee,Te=2*ee;break;default:}var ce="M 50,50 m ".concat(he,",").concat(de,`
|
|
|
a `).concat(ee,",").concat(ee," 0 1 1 ").concat(Se,",").concat(-Te,`
|
|
|
a `).concat(ee,",").concat(ee," 0 1 1 ").concat(-Se,",").concat(Te),be=Math.PI*2*ee,Ee={stroke:W,strokeDasharray:"".concat(D/100*(be-I),"px ").concat(be,"px"),strokeDashoffset:"-".concat(I/2+H/100*(be-I),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:ce,pathStyle:Ee}}var L=function(D){var W=D.prefixCls,F=D.strokeWidth,I=D.trailWidth,K=D.gapDegree,ee=D.gapPosition,he=D.trailColor,de=D.strokeLinecap,Se=D.style,Te=D.className,ce=D.strokeColor,be=D.percent,Ee=M(D,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),ue=Object(P.useMemo)(function(){return S+=1,S},[]),le=U(0,100,he,F,K,ee),$=le.pathString,me=le.pathStyle,re=A(be),ae=A(ce),Oe=ae.find(function(ve){return Object.prototype.toString.call(ve)==="[object Object]"}),se=x(re),te=s(se,1),Q=te[0],J=function(){var _e=0;return re.map(function(Ae,Qe){var tt=ae[Qe]||ae[ae.length-1],dt=Object.prototype.toString.call(tt)==="[object Object]"?"url(#".concat(W,"-gradient-").concat(ue,")"):"",mt=U(_e,Ae,tt,F,K,ee);return _e+=Ae,g.a.createElement("path",{key:Qe,className:"".concat(W,"-circle-path"),d:mt.pathString,stroke:dt,strokeLinecap:de,strokeWidth:F,opacity:Ae===0?0:1,fillOpacity:"0",style:mt.pathStyle,ref:Q[Qe]})})};return g.a.createElement("svg",d({className:b()("".concat(W,"-circle"),Te),viewBox:"0 0 100 100",style:Se},Ee),Oe&&g.a.createElement("defs",null,g.a.createElement("linearGradient",{id:"".concat(W,"-gradient-").concat(ue),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(Oe).sort(function(ve,_e){return _(ve)-_(_e)}).map(function(ve,_e){return g.a.createElement("stop",{key:_e,offset:ve,stopColor:Oe[ve]})}))),g.a.createElement("path",{className:"".concat(W,"-circle-trail"),d:$,stroke:he,strokeLinecap:de,strokeWidth:I||F,fillOpacity:"0",style:me}),J().reverse())};L.defaultProps=y;var N=L,V={Line:h,Circle:N}},hW5Z:function(k,z,o){k.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(k,z,o){"use strict";o.d(z,"a",function(){return b}),o.d(z,"c",function(){return y}),o.d(z,"b",function(){return x});var P=o("VTBJ"),g=o("Ff2n"),T=o("Kwbf"),b="RC_TABLE_INTERNAL_COL_DEFINE";function y(O){var m=O.expandable,e=Object(g.a)(O,["expandable"]);return"expandable"in O?Object(P.a)(Object(P.a)({},e),m):e}function x(O){return Object.keys(O).reduce(function(m,e){return(e.substr(0,5)==="data-"||e.substr(0,5)==="aria-")&&(m[e]=O[e]),m},{})}},"iL++":function(k,z,o){k.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"}},ic2d:function(k,z,o){"use strict";o.d(z,"a",function(){return b});var P=o("FWmy"),g=o("746U");class T{constructor(){this.data=new Map}add(y,x){P.a(g.l(y)),P.a(g.k(x)),P.a(!this.data.has(y),"There is already an extension with this id"),this.data.set(y,x)}as(y){return this.data.get(y)||null}}const b=new T},jO9C:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(P){return P.pad.Iso97971={pad:function(g,T){g.concat(P.lib.WordArray.create([2147483648],1)),P.pad.ZeroPadding.pad(g,T)},unpad:function(g){P.pad.ZeroPadding.unpad(g),g.sigBytes--}},P.pad.Iso97971})},ji0R:function(k,z,o){k.exports=o.p+"static/douyu.3e6df9ee.jpg"},ju9d:function(k,z,o){"use strict";var P=o("g9YV"),g=o("wCAj"),T=o("miYZ"),b=o("tsqr"),y=o("5Dmo"),x=o("3S7+"),O=o("sRBo"),m=o("kaz8"),e=o("oBTY"),f=o("9og8"),a=o("tJVT"),u=o("k1fw"),r=o("+L6B"),i=o("2/Rp"),n=o("O3gP"),l=o("lrIw"),h=o("5NDa"),d=o("5rEg"),s=o("y8nQ"),c=o("Vl3Y"),w=o("OaEy"),E=o("2fM7"),v=o("WmNS"),R=o.n(v),M=o("q1tI"),C=o.n(M),S=o("55Ip"),_=o("wd/R"),A=o.n(_),U=o("RotF"),L=o.n(U),N=o("E7E6"),V=o.n(N),H=o("oUNq"),D=o("Nf5h"),W=o("Fhpe"),F=o.n(W),I=[];function K(Se){var Te=Se.onSearch,ce=Se.schools;return C.a.createElement(c.a,{colon:!1,layout:"inline",onFinish:Te,initialValues:{keyword:"",school_name:"",search_type:"1"},className:"search-form"},C.a.createElement(c.a.Item,{name:"search_type",label:"\u641C\u7D22\u7C7B\u578B"},C.a.createElement(E.a,{dropdownClassName:F.a.selectdown,style:{width:148}},C.a.createElement(E.a.Option,{value:"1"},"\u59D3\u540D"),C.a.createElement(E.a.Option,{value:"2"},"\u624B\u673A\u53F7"),C.a.createElement(E.a.Option,{value:"3"},"\u90AE\u7BB1"))),C.a.createElement(c.a.Item,{label:"\u641C\u7D22\u5185\u5BB9",name:"keyword",style:{marginLeft:44},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9"}]},C.a.createElement(d.a,{allowClear:!0,style:{width:170},size:"large"})),C.a.createElement(c.a.Item,{label:"\u5355\u4F4D",name:"school_name",style:{marginLeft:10}},C.a.createElement(l.a,{options:ce,style:{width:383},size:"large",showSearch:!0,filterOption:function(Ee,ue){return ue.value.toUpperCase().indexOf(Ee.toUpperCase())!==-1},placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0"})),C.a.createElement(c.a.Item,null,C.a.createElement(i.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 ee;(function(Se){Se[Se.INITDATA=0]="INITDATA",Se[Se.INITSCHOOLS=1]="INITSCHOOLS",Se[Se.SHOWLOADING=2]="SHOWLOADING",Se[Se.SELECTEDIDS=3]="SELECTEDIDS",Se[Se.SETQUERY=4]="SETQUERY",Se[Se.SETPAGE=5]="SETPAGE"})(ee||(ee={}));function he(Se,Te){switch(Te.type){case ee.INITDATA:return Object(u.a)(Object(u.a)({},Se),Te.payload);case ee.SETQUERY:return Object(u.a)(Object(u.a)({},Se),Te.payload);case ee.SETPAGE:return Object(u.a)(Object(u.a)({},Se),{},{page:Te.payload,reload:!1});case ee.SHOWLOADING:return Object(u.a)(Object(u.a)({},Se),{},{loading:Te.payload});case ee.INITSCHOOLS:return Object(u.a)(Object(u.a)({},Se),{},{schools:Te.payload});case ee.SELECTEDIDS:return Object(u.a)(Object(u.a)({},Se),{},{selectedIds:Te.payload});default:throw new Error}}var de={data:[],schools:[],loading:!1,selectedIds:[],query:null,page:1,count:0,reload:!1};z.a=function(Se){var Te=Se.onSelect,ce=Se.onCancel,be=Se.container_id,Ee=Se.container_type,ue=Object(M.useReducer)(he,de),le=Object(a.a)(ue,2),$=le[0],me=le[1],re=$.data,ae=$.schools,Oe=$.loading,se=$.selectedIds,te=$.page,Q=$.count,J=$.query,ve=$.reload;Object(M.useEffect)(function(){function vt(){return yt.apply(this,arguments)}function yt(){return yt=Object(f.a)(R.a.mark(function Ye(){var Ue,ft,jt;return R.a.wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:return Pt.next=2,Object(H.Ab)(Object(u.a)(Object(u.a)({},J),{},{page:te,container_type:Ee,container_id:be}));case 2:Ue=Pt.sent,ft=Ue.users,jt=Ue.user_count,me({type:ee.INITDATA,payload:{data:ve?ft:[].concat(Object(e.a)(re),Object(e.a)(ft)),count:jt}});case 6:case"end":return Pt.stop()}},Ye)})),yt.apply(this,arguments)}J&&vt()},[te,J,ve,be,Ee]),Object(M.useEffect)(function(){function vt(){return yt.apply(this,arguments)}function yt(){return yt=Object(f.a)(R.a.mark(function Ye(){var Ue,ft;return R.a.wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:return bt.next=2,Object(H.nb)({});case 2:Ue=bt.sent,ft=Ue.school_names,me({type:ee.INITSCHOOLS,payload:ft.map(function(Pt){return{value:Pt}})});case 5:case"end":return bt.stop()}},Ye)})),yt.apply(this,arguments)}vt()},[]);var _e=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(yt,Ye){return C.a.createElement(m.a,{value:Ye.numid,checked:se.includes(Ye.numid),disabled:!!yt})}},{title:"\u59D3\u540D",width:100,ellipsis:!0,align:"left",dataIndex:"username",render:function(yt,Ye){return C.a.createElement("div",null,C.a.createElement(x.a,{placement:"bottom",title:yt},C.a.createElement(S.a,{style:{color:"#000000"},className:"bold c-black",to:"/users/".concat(Ye.login),target:"_blank"},yt||"--")))}},{title:"\u624B\u673A",width:100,dataIndex:"phone",ellipsis:!0,render:function(yt){return C.a.createElement(x.a,{placement:"bottom",title:yt},C.a.createElement("span",{style:{color:"#000000"}},yt||"--"))}},{title:"\u90AE\u7BB1",dataIndex:"email",width:100,ellipsis:!0,render:function(yt){return C.a.createElement(x.a,{placement:"bottom",title:yt},C.a.createElement("span",{style:{color:"#000000"}},yt||"--"))}},{title:"\u5B66\u53F7/\u5DE5\u53F7",width:100,dataIndex:"student_number",ellipsis:!0,render:function(yt){return C.a.createElement(x.a,{placement:"bottom",title:yt},C.a.createElement("span",{style:{color:"#000000"}},yt||"--"))}},{title:"\u5B66\u6821/\u5355\u4F4D",width:150,dataIndex:"school_name",ellipsis:!0,render:function(yt){return C.a.createElement(x.a,{placement:"bottom",title:yt},C.a.createElement("span",{style:{color:"#000000"}},yt||"--"))}},{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"depart_name",width:130,ellipsis:!0,render:function(yt){return C.a.createElement(x.a,{placement:"bottom",title:yt},C.a.createElement("span",{style:{color:"#000000"}},yt||"--"))}},{title:"\u5B9E\u540D\u8BA4\u8BC1",dataIndex:"auth",width:100,render:function(yt){return C.a.createElement("span",{style:{color:"#000000"}},yt?"\u662F":"\u5426")}},{title:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_on",width:140,ellipsis:!0,render:function(yt){return C.a.createElement(x.a,{placement:"bottom",title:yt?A()(yt).format("YYYY-MM-DD HH:mm"):"- -"},C.a.createElement("span",{style:{color:"#000000"}},yt?A()(yt).format("YYYY-MM-DD HH:mm"):"- -"))}},{title:"\u72B6\u6001",dataIndex:"added",width:80,render:function(yt){if(yt===1)return C.a.createElement("span",{style:{color:"#000000"}},"\u5DF2\u6DFB\u52A0")}}];function Ae(vt){me({type:ee.SETQUERY,payload:{page:1,reload:!0,query:vt}})}function Qe(vt){me({type:ee.SETPAGE,payload:vt})}function tt(vt){var yt=se.indexOf(vt);yt>=0?se.splice(yt,1):se.push(vt),me({type:ee.SELECTEDIDS,payload:Object(e.a)(se)})}function dt(){se.length===0?b.b.warn("\u8BF7\u5148\u5728\u4E0B\u9762\u5217\u8868\u4E2D\u9009\u62E9\u8981\u6DFB\u52A0\u6210\u5458"):(Te(se,be),me({type:ee.INITDATA,payload:{data:[],count:0,page:1,selectedIds:[],query:null,reload:!1}}))}var mt=Q>te*10;return C.a.createElement("div",{className:"select-user-container",style:{paddingBottom:20}},C.a.createElement(K,{onSearch:Ae,schools:ae}),J?C.a.createElement(C.a.Fragment,null,C.a.createElement("div",{className:"flexd-table-header mt20"},C.a.createElement(D.f,null,C.a.createElement(g.a,{pagination:!1,dataSource:I,columns:_e}))),C.a.createElement("div",{style:{maxHeight:260,overflow:"auto",marginBottom:20}},C.a.createElement(L.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:Qe,hasMore:mt,useWindow:!1},C.a.createElement(D.f,null,C.a.createElement(g.a,{loading:Oe,showHeader:!1,pagination:!1,dataSource:re,columns:_e,onRow:function(yt){return{onClick:function(Ue){yt.added!==1&&tt(yt.numid)}}}})))),C.a.createElement("div",{className:"flex-container flex-end"},C.a.createElement(i.a,{type:"ghost",style:{marginRight:10,border:"1px solid #C3CFE0",color:"#464F66"},onClick:ce},"\u53D6\u6D88"),C.a.createElement(i.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:dt},"\u786E\u5B9A"))):C.a.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},C.a.createElement("img",{src:V.a,width:"100",alt:""}),C.a.createElement("br",null),C.a.createElement("p",{className:"mt20"},"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458")))}},k3GJ:function(k,z,o){"use strict";o.d(z,"a",function(){return Yr});var P=o("rePB"),g=o("ODXe"),T=o("Ff2n"),b=o("VTBJ"),y=o("q1tI"),x=o("TSYQ"),O=o.n(x),m=o("Zm9Q"),e=o("6cGi"),f=o("KQm4"),a=o("xEkU"),u=o.n(a),r=o("t23M");function i(Ze){var ct=Object(y.useRef)(),_t=Object(y.useRef)(!1);function nt(){for(var Me=arguments.length,Je=new Array(Me),Le=0;Le<Me;Le++)Je[Le]=arguments[Le];_t.current||(u.a.cancel(ct.current),ct.current=u()(function(){Ze.apply(void 0,Je)}))}return Object(y.useEffect)(function(){return function(){_t.current=!0,u.a.cancel(ct.current)}},[]),nt}function n(Ze){var ct=Object(y.useRef)([]),_t=Object(y.useState)({}),nt=Object(g.a)(_t,2),Me=nt[1],Je=Object(y.useRef)(typeof Ze=="function"?Ze():Ze),Le=i(function(){var qe=Je.current;ct.current.forEach(function(pt){qe=pt(qe)}),ct.current=[],Je.current=qe,Me({})});function $e(qe){ct.current.push(qe),Le()}return[Je.current,$e]}var l=o("4IlW");function h(Ze,ct){var _t,nt=Ze.prefixCls,Me=Ze.id,Je=Ze.active,Le=Ze.rtl,$e=Ze.tab,qe=$e.key,pt=$e.tab,rt=$e.disabled,It=$e.closeIcon,Vt=Ze.tabBarGutter,fn=Ze.tabPosition,ln=Ze.closable,cn=Ze.renderWrapper,un=Ze.removeAriaLabel,Wn=Ze.editable,Cn=Ze.onClick,jr=Ze.onRemove,Mr=Ze.onFocus,Qr="".concat(nt,"-tab");y.useEffect(function(){return jr},[]);var Wr={};fn==="top"||fn==="bottom"?Wr[Le?"marginLeft":"marginRight"]=Vt:Wr.marginBottom=Vt;var ta=Wn&&ln!==!1&&!rt;function Kn(En){if(rt)return;Cn(En)}function wr(En){En.preventDefault(),En.stopPropagation(),Wn.onEdit("remove",{key:qe,event:En})}var Gn=y.createElement("div",{key:qe,ref:ct,className:O()(Qr,(_t={},Object(P.a)(_t,"".concat(Qr,"-with-remove"),ta),Object(P.a)(_t,"".concat(Qr,"-active"),Je),Object(P.a)(_t,"".concat(Qr,"-disabled"),rt),_t)),style:Wr,onClick:Kn},y.createElement("div",{role:"tab","aria-selected":Je,id:Me&&"".concat(Me,"-tab-").concat(qe),className:"".concat(Qr,"-btn"),"aria-controls":Me&&"".concat(Me,"-panel-").concat(qe),"aria-disabled":rt,tabIndex:rt?null:0,onClick:function(jn){jn.stopPropagation(),Kn(jn)},onKeyDown:function(jn){[l.a.SPACE,l.a.ENTER].includes(jn.which)&&(jn.preventDefault(),Kn(jn))},onFocus:Mr},pt),ta&&y.createElement("button",{type:"button","aria-label":un||"remove",tabIndex:0,className:"".concat(Qr,"-remove"),onClick:function(jn){jn.stopPropagation(),wr(jn)}},It||Wn.removeIcon||"\xD7"));return cn&&(Gn=cn(Gn)),Gn}var d=y.forwardRef(h),s={width:0,height:0,left:0,top:0};function c(Ze,ct,_t){return Object(y.useMemo)(function(){for(var nt,Me=new Map,Je=ct.get((nt=Ze[0])===null||nt===void 0?void 0:nt.key)||s,Le=Je.left+Je.width,$e=0;$e<Ze.length;$e+=1){var qe=Ze[$e].key,pt=ct.get(qe);if(!pt){var rt;pt=ct.get((rt=Ze[$e-1])===null||rt===void 0?void 0:rt.key)||s}var It=Me.get(qe)||Object(b.a)({},pt);It.right=Le-It.left-It.width,Me.set(qe,It)}return Me},[Ze.map(function(nt){return nt.key}).join("_"),ct,_t])}var w={width:0,height:0,left:0,top:0,right:0};function E(Ze,ct,_t,nt,Me){var Je=Me.tabs,Le=Me.tabPosition,$e=Me.rtl,qe,pt,rt;["top","bottom"].includes(Le)?(qe="width",pt=$e?"right":"left",rt=Math.abs(ct.left)):(qe="height",pt="top",rt=-ct.top);var It=ct[qe],Vt=_t[qe],fn=nt[qe],ln=It;return Vt+fn>It&&(ln=It-fn),Object(y.useMemo)(function(){if(!Je.length)return[0,0];for(var cn=Je.length,un=cn,Wn=0;Wn<cn;Wn+=1){var Cn=Ze.get(Je[Wn].key)||w;if(Cn[pt]+Cn[qe]>rt+ln){un=Wn-1;break}}for(var jr=0,Mr=cn-1;Mr>=0;Mr-=1){var Qr=Ze.get(Je[Mr].key)||w;if(Qr[pt]<rt){jr=Mr+1;break}}return[jr,un]},[Ze,rt,ln,Le,Je.map(function(cn){return cn.key}).join("_"),$e])}var v=o("wx14"),R=o("1OyB"),M=o("vuIU"),C=o("JX7q"),S=o("Ji7U"),_=o("LK+K"),A=o("I8Z2"),U=o("bT9E"),L=o("2GS6"),N=o("Gytx"),V=o.n(N),H=o("U8pU"),D=/iPhone/i,W=/iPod/i,F=/iPad/i,I=/\bAndroid(?:.+)Mobile\b/i,K=/Android/i,ee=/\bAndroid(?:.+)SD4930UR\b/i,he=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,de=/Windows Phone/i,Se=/\bWindows(?:.+)ARM\b/i,Te=/BlackBerry/i,ce=/BB10/i,be=/Opera Mini/i,Ee=/\b(CriOS|Chrome)(?:.+)Mobile/i,ue=/Mobile(?:.+)Firefox\b/i;function le(Ze,ct){return Ze.test(ct)}function $(Ze){var ct=Ze||(typeof navigator!="undefined"?navigator.userAgent:""),_t=(ct||"").split("[FBAN");if(typeof _t[1]!="undefined"){var nt=_t,Me=Object(g.a)(nt,1);ct=Me[0]}if(_t=ct.split("Twitter"),typeof _t[1]!="undefined"){var Je=_t,Le=Object(g.a)(Je,1);ct=Le[0]}var $e={apple:{phone:le(D,ct)&&!le(de,ct),ipod:le(W,ct),tablet:!le(D,ct)&&le(F,ct)&&!le(de,ct),device:(le(D,ct)||le(W,ct)||le(F,ct))&&!le(de,ct)},amazon:{phone:le(ee,ct),tablet:!le(ee,ct)&&le(he,ct),device:le(ee,ct)||le(he,ct)},android:{phone:!le(de,ct)&&le(ee,ct)||!le(de,ct)&&le(I,ct),tablet:!le(de,ct)&&!le(ee,ct)&&!le(I,ct)&&(le(he,ct)||le(K,ct)),device:!le(de,ct)&&(le(ee,ct)||le(he,ct)||le(I,ct)||le(K,ct))||le(/\bokhttp\b/i,ct)},windows:{phone:le(de,ct),tablet:le(Se,ct),device:le(de,ct)||le(Se,ct)},other:{blackberry:le(Te,ct),blackberry10:le(ce,ct),opera:le(be,ct),firefox:le(ue,ct),chrome:le(Ee,ct),device:le(Te,ct)||le(ce,ct)||le(be,ct)||le(ue,ct)||le(Ee,ct)},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)({},$()),{},{isMobile:$}),re=me;function ae(){}function Oe(Ze,ct,_t){var nt=ct||"";return Ze.key||"".concat(nt,"item_").concat(_t)}function se(Ze){return"".concat(Ze,"-menu-")}function te(Ze,ct){var _t=-1;y.Children.forEach(Ze,function(nt){_t+=1,nt&&nt.type&&nt.type.isMenuItemGroup?y.Children.forEach(nt.props.children,function(Me){_t+=1,ct(Me,_t)}):ct(nt,_t)})}function Q(Ze,ct,_t){if(!Ze||_t.find)return;y.Children.forEach(Ze,function(nt){if(nt){var Me=nt.type;if(!Me||!(Me.isSubMenu||Me.isMenuItem||Me.isMenuItemGroup))return;ct.indexOf(nt.key)!==-1?_t.find=!0:nt.props.children&&Q(nt.props.children,ct,_t)}})}var J=["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"],ve=function(ct){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,nt=ct&&typeof ct.getBoundingClientRect=="function"&&ct.getBoundingClientRect().width;if(nt){if(_t){var Me=getComputedStyle(ct),Je=Me.marginLeft,Le=Me.marginRight;nt+=+Je.replace("px","")+ +Le.replace("px","")}nt=+nt.toFixed(6)}return nt||0},_e=function(ct,_t,nt){ct&&Object(H.a)(ct.style)==="object"&&(ct.style[_t]=nt)},Ae=function(){return re.any},Qe=o("bdgK"),tt=o("i8i4"),dt=o.n(tt),mt=o("wgJM"),vt=o("l4aY"),yt=o("m+aA"),Ye=o("c+Xe"),Ue=o("zT1h"),ft=o("QC+M");function jt(Ze,ct,_t){return _t?Ze[0]===ct[0]:Ze[0]===ct[0]&&Ze[1]===ct[1]}function bt(Ze,ct,_t){var nt=Ze[ct]||{};return Object(b.a)(Object(b.a)({},nt),_t)}function Pt(Ze,ct,_t,nt){for(var Me=_t.points,Je=Object.keys(Ze),Le=0;Le<Je.length;Le+=1){var $e=Je[Le];if(jt(Ze[$e].points,Me,nt))return"".concat(ct,"-placement-").concat($e)}return""}var it=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,ct){var _t={};return _t[Ze.toLowerCase()]=ct.toLowerCase(),_t["Webkit".concat(Ze)]="webkit".concat(ct),_t["Moz".concat(Ze)]="moz".concat(ct),_t["ms".concat(Ze)]="MS".concat(ct),_t["O".concat(Ze)]="o".concat(ct.toLowerCase()),_t}function Ce(Ze,ct){var _t={animationend:Ge("Animation","AnimationEnd"),transitionend:Ge("Transition","TransitionEnd")};return Ze&&("AnimationEvent"in ct||delete _t.animationend.animation,"TransitionEvent"in ct||delete _t.transitionend.transition),_t}var Ie=Ce(Object(He.a)(),typeof window!="undefined"?window:{}),Fe={};if(Object(He.a)()){var Be=document.createElement("div");Fe=Be.style}var We={};function st(Ze){if(We[Ze])return We[Ze];var ct=Ie[Ze];if(ct)for(var _t=Object.keys(ct),nt=_t.length,Me=0;Me<nt;Me+=1){var Je=_t[Me];if(Object.prototype.hasOwnProperty.call(ct,Je)&&Je in Fe)return We[Ze]=ct[Je],We[Ze]}return""}var Dt=st("animationend"),Ht=st("transitionend"),rn=!!(Dt&&Ht),Bt=Dt||"animationend",Ct=Ht||"transitionend";function Ke(Ze,ct){if(!Ze)return null;if(Object(H.a)(Ze)==="object"){var _t=ct.replace(/-\w/g,function(nt){return nt[1].toUpperCase()});return Ze[_t]}return"".concat(Ze,"-").concat(ct)}var et="none",at="appear",Pe="enter",Xe="leave",ht="none",Et="prepare",Ot="start",Mt="active",lt="end";function Ft(Ze){var ct=Object(y.useRef)(!1),_t=Object(y.useState)(Ze),nt=Object(g.a)(_t,2),Me=nt[0],Je=nt[1];function Le($e){ct.current||Je($e)}return Object(y.useEffect)(function(){return function(){ct.current=!0}},[]),[Me,Le]}var Lt=Object(He.a)()?y.useLayoutEffect:y.useEffect,on=Lt,mn=function(){var Ze=y.useRef(null);function ct(){mt.a.cancel(Ze.current)}function _t(nt){var Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;ct();var Je=Object(mt.a)(function(){Me<=1?nt({isCanceled:function(){return Je!==Ze.current}}):_t(nt,Me-1)});Ze.current=Je}return y.useEffect(function(){return function(){ct()}},[]),[_t,ct]},Hn=[Et,Ot,Mt,lt],Xn=!1,Fn=!0;function xn(Ze){return Ze===Mt||Ze===lt}var fr=function(Ze,ct){var _t=y.useState(ht),nt=Object(g.a)(_t,2),Me=nt[0],Je=nt[1],Le=mn(),$e=Object(g.a)(Le,2),qe=$e[0],pt=$e[1];function rt(){Je(Et)}return on(function(){if(Me!==ht&&Me!==lt){var It=Hn.indexOf(Me),Vt=Hn[It+1],fn=ct(Me);fn===Xn?Je(Vt):qe(function(ln){function cn(){if(ln.isCanceled())return;Je(Vt)}fn===!0?cn():Promise.resolve(fn).then(cn)})}},[Ze,Me]),y.useEffect(function(){return function(){pt()}},[]),[rt,Me]},Yn=function(Ze){var ct=Object(y.useRef)(),_t=Object(y.useRef)(Ze);_t.current=Ze;var nt=y.useCallback(function(Le){_t.current(Le)},[]);function Me(Le){Le&&(Le.removeEventListener(Ct,nt),Le.removeEventListener(Bt,nt))}function Je(Le){ct.current&&ct.current!==Le&&Me(ct.current),Le&&Le!==ct.current&&(Le.addEventListener(Ct,nt),Le.addEventListener(Bt,nt),ct.current=Le)}return y.useEffect(function(){return function(){Me(ct.current)}},[]),[Je,Me]};function ar(Ze,ct,_t,nt){var Me=nt.motionEnter,Je=Me===void 0?!0:Me,Le=nt.motionAppear,$e=Le===void 0?!0:Le,qe=nt.motionLeave,pt=qe===void 0?!0:qe,rt=nt.motionDeadline,It=nt.motionLeaveImmediately,Vt=nt.onAppearPrepare,fn=nt.onEnterPrepare,ln=nt.onLeavePrepare,cn=nt.onAppearStart,un=nt.onEnterStart,Wn=nt.onLeaveStart,Cn=nt.onAppearActive,jr=nt.onEnterActive,Mr=nt.onLeaveActive,Qr=nt.onAppearEnd,Wr=nt.onEnterEnd,ta=nt.onLeaveEnd,Kn=nt.onVisibleChanged,wr=Ft(),Gn=Object(g.a)(wr,2),En=Gn[0],jn=Gn[1],Vr=Ft(et),ua=Object(g.a)(Vr,2),hr=ua[0],aa=ua[1],xa=Ft(null),ha=Object(g.a)(xa,2),Ca=ha[0],Tr=ha[1],br=Object(y.useRef)(!1),Ir=Object(y.useRef)(null),er=Object(y.useRef)(!1),pa=Object(y.useRef)(null);function Ea(){var Ba=_t();return Ba||pa.current}var ba=Object(y.useRef)(!1);function Oa(Ba){var Ma=Ea();if(Ba&&!Ba.deadline&&Ba.target!==Ma)return;var Za;hr===at&&ba.current?Za=Qr==null?void 0:Qr(Ma,Ba):hr===Pe&&ba.current?Za=Wr==null?void 0:Wr(Ma,Ba):hr===Xe&&ba.current&&(Za=ta==null?void 0:ta(Ma,Ba)),Za!==!1&&!er.current&&(aa(et),Tr(null))}var ga=Yn(Oa),ka=Object(g.a)(ga,1),Ua=ka[0],Fa=y.useMemo(function(){var Ba,Ma,Za;switch(hr){case"appear":return Ba={},Object(P.a)(Ba,Et,Vt),Object(P.a)(Ba,Ot,cn),Object(P.a)(Ba,Mt,Cn),Ba;case"enter":return Ma={},Object(P.a)(Ma,Et,fn),Object(P.a)(Ma,Ot,un),Object(P.a)(Ma,Mt,jr),Ma;case"leave":return Za={},Object(P.a)(Za,Et,ln),Object(P.a)(Za,Ot,Wn),Object(P.a)(Za,Mt,Mr),Za;default:return{}}},[hr]),ni=fr(hr,function(Ba){if(Ba===Et){var Ma=Fa[Et];return Ma?Ma(Ea()):Xn}if(Na in Fa){var Za;Tr(((Za=Fa[Na])===null||Za===void 0?void 0:Za.call(Fa,Ea(),null))||null)}return Na===Mt&&(Ua(Ea()),rt>0&&(clearTimeout(Ir.current),Ir.current=setTimeout(function(){Oa({deadline:!0})},rt))),Fn}),Fi=Object(g.a)(ni,2),Ai=Fi[0],Na=Fi[1],bi=xn(Na);ba.current=bi,on(function(){jn(ct);var Ba=br.current;if(br.current=!0,!Ze)return;var Ma;!Ba&&ct&&$e&&(Ma=at),Ba&&ct&&Je&&(Ma=Pe),(Ba&&!ct&&pt||!Ba&&It&&!ct&&pt)&&(Ma=Xe),Ma&&(aa(Ma),Ai())},[ct]),Object(y.useEffect)(function(){(hr===at&&!$e||hr===Pe&&!Je||hr===Xe&&!pt)&&aa(et)},[$e,Je,pt]),Object(y.useEffect)(function(){return function(){clearTimeout(Ir.current),er.current=!0}},[]),Object(y.useEffect)(function(){En!==void 0&&hr===et&&(Kn==null||Kn(En))},[En,hr]);var Si=Ca;return Fa[Et]&&Na===Ot&&(Si=Object(b.a)({transition:"none"},Si)),[hr,Na,Si,En!=null?En:ct]}var nr=function(Ze){Object(S.a)(_t,Ze);var ct=Object(_.a)(_t);function _t(){return Object(R.a)(this,_t),ct.apply(this,arguments)}return Object(M.a)(_t,[{key:"render",value:function(){return this.props.children}}]),_t}(y.Component),Rr=nr;function pr(Ze){var ct=Ze;Object(H.a)(Ze)==="object"&&(ct=Ze.transitionSupport);function _t(Me){return!!(Me.motionName&&ct)}var nt=y.forwardRef(function(Me,Je){var Le=Me.visible,$e=Le===void 0?!0:Le,qe=Me.removeOnLeave,pt=qe===void 0?!0:qe,rt=Me.forceRender,It=Me.children,Vt=Me.motionName,fn=Me.leavedClassName,ln=Me.eventProps,cn=_t(Me),un=Object(y.useRef)(),Wn=Object(y.useRef)();function Cn(){try{return Object(yt.a)(un.current||Wn.current)}catch(aa){return null}}var jr=ar(cn,$e,Cn,Me),Mr=Object(g.a)(jr,4),Qr=Mr[0],Wr=Mr[1],ta=Mr[2],Kn=Mr[3],wr=y.useRef(Kn);Kn&&(wr.current=!0);var Gn=Object(y.useRef)(Je);Gn.current=Je;var En=y.useCallback(function(aa){un.current=aa,Object(Ye.b)(Gn.current,aa)},[]),jn,Vr=Object(b.a)(Object(b.a)({},ln),{},{visible:$e});if(!It)jn=null;else if(Qr===et||!_t(Me))Kn?jn=It(Object(b.a)({},Vr),En):!pt&&wr.current?jn=It(Object(b.a)(Object(b.a)({},Vr),{},{className:fn}),En):rt?jn=It(Object(b.a)(Object(b.a)({},Vr),{},{style:{display:"none"}}),En):jn=null;else{var ua,hr;Wr===Et?hr="prepare":xn(Wr)?hr="active":Wr===Ot&&(hr="start"),jn=It(Object(b.a)(Object(b.a)({},Vr),{},{className:O()(Ke(Vt,Qr),(ua={},Object(P.a)(ua,Ke(Vt,"".concat(Qr,"-").concat(hr)),hr),Object(P.a)(ua,Vt,typeof Vt=="string"),ua)),style:ta}),En)}return y.createElement(Rr,{ref:Wn},jn)});return nt.displayName="CSSMotion",nt}var sn=pr(rn),qt="add",On="keep",Fr="remove",Or="removed";function xr(Ze){var ct;return Ze&&Object(H.a)(Ze)==="object"&&"key"in Ze?ct=Ze:ct={key:Ze},Object(b.a)(Object(b.a)({},ct),{},{key:String(ct.key)})}function dr(){var Ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Ze.map(xr)}function pe(){var Ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],_t=[],nt=0,Me=ct.length,Je=dr(Ze),Le=dr(ct);Je.forEach(function(pt){for(var rt=!1,It=nt;It<Me;It+=1){var Vt=Le[It];if(Vt.key===pt.key){nt<It&&(_t=_t.concat(Le.slice(nt,It).map(function(fn){return Object(b.a)(Object(b.a)({},fn),{},{status:qt})})),nt=It),_t.push(Object(b.a)(Object(b.a)({},Vt),{},{status:On})),nt+=1,rt=!0;break}}rt||_t.push(Object(b.a)(Object(b.a)({},pt),{},{status:Fr}))}),nt<Me&&(_t=_t.concat(Le.slice(nt).map(function(pt){return Object(b.a)(Object(b.a)({},pt),{},{status:qt})})));var $e={};_t.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){_t=_t.filter(function(rt){var It=rt.key,Vt=rt.status;return It!==pt||Vt!==Fr}),_t.forEach(function(rt){rt.key===pt&&(rt.status=On)})}),_t}var X=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function q(Ze){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:sn,_t=function(nt){Object(S.a)(Je,nt);var Me=Object(_.a)(Je);function Je(){var Le;return Object(R.a)(this,Je),Le=Me.apply(this,arguments),Le.state={keyEntities:[]},Le.removeKey=function($e){Le.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:Or})})}})},Le}return Object(M.a)(Je,[{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(T.a)(pt,["component","children","onVisibleChanged"]),ln=rt||y.Fragment,cn={};return X.forEach(function(un){cn[un]=fn[un],delete fn[un]}),delete fn.keys,y.createElement(ln,fn,qe.map(function(un){var Wn=un.status,Cn=Object(T.a)(un,["status"]),jr=Wn===qt||Wn===On;return y.createElement(ct,Object(v.a)({},cn,{key:Cn.key,visible:jr,eventProps:Cn,onVisibleChanged:function(Qr){Vt==null||Vt(Qr,{key:Cn.key}),Qr||$e.removeKey(Cn.key)}}),It)}))}}],[{key:"getDerivedStateFromProps",value:function($e,qe){var pt=$e.keys,rt=qe.keyEntities,It=dr(pt),Vt=pe(rt,It);return{keyEntities:Vt.filter(function(fn){var ln=rt.find(function(cn){var un=cn.key;return fn.key===un});return!(ln&&ln.status===Or&&fn.status===Fr)})}}}]),Je}(y.Component);return _t.defaultProps={component:"div"},_t}var oe=q(rn),De=sn;function fe(Ze){var ct=Ze.prefixCls,_t=Ze.motion,nt=Ze.animation,Me=Ze.transitionName;return _t||(nt?{motionName:"".concat(ct,"-").concat(nt)}:Me?{motionName:Me}:null)}function ot(Ze){var ct=Ze.prefixCls,_t=Ze.visible,nt=Ze.zIndex,Me=Ze.mask,Je=Ze.maskMotion,Le=Ze.maskAnimation,$e=Ze.maskTransitionName;if(!Me)return null;var qe={};return(Je||$e||Le)&&(qe=Object(b.a)({motionAppear:!0},fe({motion:Je,prefixCls:ct,transitionName:$e,animation:Le}))),y.createElement(De,Object(v.a)({},qe,{visible:_t,removeOnLeave:!0}),function(pt){var rt=pt.className;return y.createElement("div",{style:{zIndex:nt},className:O()("".concat(ct,"-mask"),rt)})})}var Qt=o("9mu1"),Mn=o("o0o1"),Vn=o.n(Mn),$t=o("HaE+"),gn=["measure","align",null,"motion"],pn=function(Ze,ct){var _t=Object(y.useState)(null),nt=Object(g.a)(_t,2),Me=nt[0],Je=nt[1],Le=Object(y.useRef)(),$e=Object(y.useRef)(!1);function qe(It){$e.current||Je(It)}function pt(){mt.a.cancel(Le.current)}function rt(It){pt(),Le.current=Object(mt.a)(function(){qe(function(Vt){switch(Me){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(Me){case"measure":ct();break;default:}Me&&(Le.current=Object(mt.a)(Object($t.a)(Vn.a.mark(function It(){var Vt,fn;return Vn.a.wrap(function(cn){for(;;)switch(cn.prev=cn.next){case 0:Vt=gn.indexOf(Me),fn=gn[Vt+1],fn&&Vt!==-1&&qe(fn);case 3:case"end":return cn.stop()}},It)}))))},[Me]),Object(y.useEffect)(function(){return function(){$e.current=!0,pt()}},[]),[Me,rt]},Ar=function(Ze){var ct=y.useState({width:0,height:0}),_t=Object(g.a)(ct,2),nt=_t[0],Me=_t[1];function Je($e){Me({width:$e.offsetWidth,height:$e.offsetHeight})}var Le=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[Le,Je]},ra=y.forwardRef(function(Ze,ct){var _t=Ze.visible,nt=Ze.prefixCls,Me=Ze.className,Je=Ze.style,Le=Ze.children,$e=Ze.zIndex,qe=Ze.stretch,pt=Ze.destroyPopupOnHide,rt=Ze.forceRender,It=Ze.align,Vt=Ze.point,fn=Ze.getRootDomNode,ln=Ze.getClassNameFromAlign,cn=Ze.onAlign,un=Ze.onMouseEnter,Wn=Ze.onMouseLeave,Cn=Ze.onMouseDown,jr=Ze.onTouchStart,Mr=Object(y.useRef)(),Qr=Object(y.useRef)(),Wr=Object(y.useState)(),ta=Object(g.a)(Wr,2),Kn=ta[0],wr=ta[1],Gn=Ar(qe),En=Object(g.a)(Gn,2),jn=En[0],Vr=En[1];function ua(){qe&&Vr(fn())}var hr=pn(_t,ua),aa=Object(g.a)(hr,2),xa=aa[0],ha=aa[1],Ca=Object(y.useRef)();function Tr(){return Vt||fn}function br(){var ga;(ga=Mr.current)===null||ga===void 0||ga.forceAlign()}function Ir(ga,ka){var Ua=ln(ka);Kn!==Ua&&wr(Ua),xa==="align"&&(Kn!==Ua?Promise.resolve().then(function(){br()}):ha(function(){var Fa;(Fa=Ca.current)===null||Fa===void 0||Fa.call(Ca)}),cn==null||cn(ga,ka))}var er=Object(b.a)({},fe(Ze));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(ga){var ka=er[ga];er[ga]=function(Ua,Fa){return ha(),ka==null?void 0:ka(Ua,Fa)}});function pa(){return new Promise(function(ga){Ca.current=ga})}y.useEffect(function(){!er.motionName&&xa==="motion"&&ha()},[er.motionName,xa]),y.useImperativeHandle(ct,function(){return{forceAlign:br,getElement:function(){return Qr.current}}});var Ea=Object(b.a)(Object(b.a)({},jn),{},{zIndex:$e,opacity:xa==="motion"||xa==="stable"||!_t?void 0:0,pointerEvents:xa==="stable"?void 0:"none"},Je),ba=!0;(It==null?void 0:It.points)&&(xa==="align"||xa==="stable")&&(ba=!1);var Oa=Le;return y.Children.count(Le)>1&&(Oa=y.createElement("div",{className:"".concat(nt,"-content")},Le)),y.createElement(De,Object(v.a)({visible:_t,ref:Qr,leavedClassName:"".concat(nt,"-hidden")},er,{onAppearPrepare:pa,onEnterPrepare:pa,removeOnLeave:pt,forceRender:rt}),function(ga,ka){var Ua=ga.className,Fa=ga.style,ni=O()(nt,Me,Kn,Ua);return y.createElement(Qt.a,{target:Tr(),key:"popup",ref:Mr,monitorWindowResize:!0,disabled:ba,align:It,onAlign:Ir},y.createElement("div",{ref:ka,className:ni,onMouseEnter:un,onMouseLeave:Wn,onMouseDownCapture:Cn,onTouchStartCapture:jr,style:Object(b.a)(Object(b.a)({},Fa),Ea)},Oa))})});ra.displayName="PopupInner";var oa=ra,ir=y.forwardRef(function(Ze,ct){var _t=Ze.prefixCls,nt=Ze.visible,Me=Ze.zIndex,Je=Ze.children,Le=Ze.mobile;Le=Le===void 0?{}:Le;var $e=Le.popupClassName,qe=Le.popupStyle,pt=Le.popupMotion,rt=pt===void 0?{}:pt,It=Le.popupRender,Vt=y.useRef();y.useImperativeHandle(ct,function(){return{forceAlign:function(){},getElement:function(){return Vt.current}}});var fn=Object(b.a)({zIndex:Me},qe),ln=Je;return y.Children.count(Je)>1&&(ln=y.createElement("div",{className:"".concat(_t,"-content")},Je)),It&&(ln=It(ln)),y.createElement(De,Object(v.a)({visible:nt,ref:Vt,removeOnLeave:!0},rt),function(cn,un){var Wn=cn.className,Cn=cn.style,jr=O()(_t,$e,Wn);return y.createElement("div",{ref:un,className:jr,style:Object(b.a)(Object(b.a)({},Cn),fn)},ln)})});ir.displayName="MobilePopupInner";var Ra=ir,La=["visible","mobile"],ca=y.forwardRef(function(Ze,ct){var _t=Ze.visible,nt=Ze.mobile,Me=Object(T.a)(Ze,La),Je=Object(y.useState)(_t),Le=Object(g.a)(Je,2),$e=Le[0],qe=Le[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)({},Me),{},{visible:$e});Object(y.useEffect)(function(){qe(_t),_t&&nt&&Vt(it())},[_t,nt]);var ln=It?y.createElement(Ra,Object(v.a)({},fn,{mobile:nt,ref:ct})):y.createElement(oa,Object(v.a)({},fn,{ref:ct}));return y.createElement("div",null,y.createElement(ot,fn),ln)});ca.displayName="Popup";var Ka=ca,wa=y.createContext(null),Ja=wa;function ja(){}function li(){return""}function oi(Ze){return Ze?Ze.ownerDocument:window.document}var fa=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function ma(Ze){var ct=function(_t){Object(S.a)(Me,_t);var nt=Object(_.a)(Me);function Me(Je){var Le;Object(R.a)(this,Me),Le=nt.call(this,Je),Le.popupRef=y.createRef(),Le.triggerRef=y.createRef(),Le.attachId=void 0,Le.clickOutsideHandler=void 0,Le.touchOutsideHandler=void 0,Le.contextMenuOutsideHandler1=void 0,Le.contextMenuOutsideHandler2=void 0,Le.mouseDownTimeout=void 0,Le.focusTime=void 0,Le.preClickTime=void 0,Le.preTouchTime=void 0,Le.delayTimer=void 0,Le.hasPopupMouseDown=void 0,Le.onMouseEnter=function(qe){var pt=Le.props.mouseEnterDelay;Le.fireEvents("onMouseEnter",qe),Le.delaySetPopupVisible(!0,pt,pt?null:qe)},Le.onMouseMove=function(qe){Le.fireEvents("onMouseMove",qe),Le.setPoint(qe)},Le.onMouseLeave=function(qe){Le.fireEvents("onMouseLeave",qe),Le.delaySetPopupVisible(!1,Le.props.mouseLeaveDelay)},Le.onPopupMouseEnter=function(){Le.clearDelayTimer()},Le.onPopupMouseLeave=function(qe){var pt;if(qe.relatedTarget&&!qe.relatedTarget.setTimeout&&Object(vt.a)((pt=Le.popupRef.current)===null||pt===void 0?void 0:pt.getElement(),qe.relatedTarget))return;Le.delaySetPopupVisible(!1,Le.props.mouseLeaveDelay)},Le.onFocus=function(qe){Le.fireEvents("onFocus",qe),Le.clearDelayTimer(),Le.isFocusToShow()&&(Le.focusTime=Date.now(),Le.delaySetPopupVisible(!0,Le.props.focusDelay))},Le.onMouseDown=function(qe){Le.fireEvents("onMouseDown",qe),Le.preClickTime=Date.now()},Le.onTouchStart=function(qe){Le.fireEvents("onTouchStart",qe),Le.preTouchTime=Date.now()},Le.onBlur=function(qe){Le.fireEvents("onBlur",qe),Le.clearDelayTimer(),Le.isBlurToHide()&&Le.delaySetPopupVisible(!1,Le.props.blurDelay)},Le.onContextMenu=function(qe){qe.preventDefault(),Le.fireEvents("onContextMenu",qe),Le.setPopupVisible(!0,qe)},Le.onContextMenuClose=function(){Le.isContextMenuToShow()&&Le.close()},Le.onClick=function(qe){if(Le.fireEvents("onClick",qe),Le.focusTime){var pt;if(Le.preClickTime&&Le.preTouchTime?pt=Math.min(Le.preClickTime,Le.preTouchTime):Le.preClickTime?pt=Le.preClickTime:Le.preTouchTime&&(pt=Le.preTouchTime),Math.abs(pt-Le.focusTime)<20)return;Le.focusTime=0}Le.preClickTime=0,Le.preTouchTime=0,Le.isClickToShow()&&(Le.isClickToHide()||Le.isBlurToHide())&&qe&&qe.preventDefault&&qe.preventDefault();var rt=!Le.state.popupVisible;(Le.isClickToHide()&&!rt||rt&&Le.isClickToShow())&&Le.setPopupVisible(!Le.state.popupVisible,qe)},Le.onPopupMouseDown=function(){if(Le.hasPopupMouseDown=!0,clearTimeout(Le.mouseDownTimeout),Le.mouseDownTimeout=window.setTimeout(function(){Le.hasPopupMouseDown=!1},0),Le.context){var qe;(qe=Le.context).onPopupMouseDown.apply(qe,arguments)}},Le.onDocumentClick=function(qe){if(Le.props.mask&&!Le.props.maskClosable)return;var pt=qe.target,rt=Le.getRootDomNode(),It=Le.getPopupDomNode();(!Object(vt.a)(rt,pt)||Le.isContextMenuOnly())&&!Object(vt.a)(It,pt)&&!Le.hasPopupMouseDown&&Le.close()},Le.getRootDomNode=function(){var qe=Le.props.getTriggerDOMNode;if(qe)return qe(Le.triggerRef.current);try{var pt=Object(yt.a)(Le.triggerRef.current);if(pt)return pt}catch(rt){}return dt.a.findDOMNode(Object(C.a)(Le))},Le.getPopupClassNameFromAlign=function(qe){var pt=[],rt=Le.props,It=rt.popupPlacement,Vt=rt.builtinPlacements,fn=rt.prefixCls,ln=rt.alignPoint,cn=rt.getPopupClassNameFromAlign;return It&&Vt&&pt.push(Pt(Vt,fn,qe,ln)),cn&&pt.push(cn(qe)),pt.join(" ")},Le.getComponent=function(){var qe=Le.props,pt=qe.prefixCls,rt=qe.destroyPopupOnHide,It=qe.popupClassName,Vt=qe.onPopupAlign,fn=qe.popupMotion,ln=qe.popupAnimation,cn=qe.popupTransitionName,un=qe.popupStyle,Wn=qe.mask,Cn=qe.maskAnimation,jr=qe.maskTransitionName,Mr=qe.maskMotion,Qr=qe.zIndex,Wr=qe.popup,ta=qe.stretch,Kn=qe.alignPoint,wr=qe.mobile,Gn=qe.forceRender,En=Le.state,jn=En.popupVisible,Vr=En.point,ua=Le.getPopupAlign(),hr={};return Le.isMouseEnterToShow()&&(hr.onMouseEnter=Le.onPopupMouseEnter),Le.isMouseLeaveToHide()&&(hr.onMouseLeave=Le.onPopupMouseLeave),hr.onMouseDown=Le.onPopupMouseDown,hr.onTouchStart=Le.onPopupMouseDown,y.createElement(Ka,Object(v.a)({prefixCls:pt,destroyPopupOnHide:rt,visible:jn,point:Kn&&Vr,className:It,align:ua,onAlign:Vt,animation:ln,getClassNameFromAlign:Le.getPopupClassNameFromAlign},hr,{stretch:ta,getRootDomNode:Le.getRootDomNode,style:un,mask:Wn,zIndex:Qr,transitionName:cn,maskAnimation:Cn,maskTransitionName:jr,maskMotion:Mr,ref:Le.popupRef,motion:fn,mobile:wr,forceRender:Gn}),typeof Wr=="function"?Wr():Wr)},Le.attachParent=function(qe){mt.a.cancel(Le.attachId);var pt=Le.props,rt=pt.getPopupContainer,It=pt.getDocument,Vt=Le.getRootDomNode(),fn;rt?(Vt||rt.length===0)&&(fn=rt(Vt)):fn=It(Le.getRootDomNode()).body,fn?fn.appendChild(qe):Le.attachId=Object(mt.a)(function(){Le.attachParent(qe)})},Le.getContainer=function(){var qe=Le.props.getDocument,pt=qe(Le.getRootDomNode()).createElement("div");return pt.style.position="absolute",pt.style.top="0",pt.style.left="0",pt.style.width="100%",Le.attachParent(pt),pt},Le.setPoint=function(qe){var pt=Le.props.alignPoint;if(!pt||!qe)return;Le.setState({point:{pageX:qe.pageX,pageY:qe.pageY}})},Le.handlePortalUpdate=function(){Le.state.prevPopupVisible!==Le.state.popupVisible&&Le.props.afterPopupVisibleChange(Le.state.popupVisible)},Le.triggerContextValue={onPopupMouseDown:Le.onPopupMouseDown};var $e;return"popupVisible"in Je?$e=!!Je.popupVisible:$e=!!Je.defaultPopupVisible,Le.state={prevPopupVisible:$e,popupVisible:$e},fa.forEach(function(qe){Le["fire".concat(qe)]=function(pt){Le.fireEvents(qe,pt)}}),Le}return Object(M.a)(Me,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Le=this.props,$e=this.state;if($e.popupVisible){var qe;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(qe=Le.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(Ue.a)(qe,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(qe=qe||Le.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(Ue.a)(qe,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(qe=qe||Le.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),mt.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var Le;return((Le=this.popupRef.current)===null||Le===void 0?void 0:Le.getElement())||null}},{key:"getPopupAlign",value:function(){var Le=this.props,$e=Le.popupPlacement,qe=Le.popupAlign,pt=Le.builtinPlacements;return $e&&pt?bt(pt,$e,qe):qe}},{key:"setPopupVisible",value:function(Le,$e){var qe=this.props.alignPoint,pt=this.state.popupVisible;this.clearDelayTimer(),pt!==Le&&("popupVisible"in this.props||this.setState({popupVisible:Le,prevPopupVisible:pt}),this.props.onPopupVisibleChange(Le)),qe&&$e&&Le&&this.setPoint($e)}},{key:"delaySetPopupVisible",value:function(Le,$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(Le,It),pt.clearDelayTimer()},rt)}else this.setPopupVisible(Le,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(Le){var $e=this.props.children.props,qe=this.props;return $e[Le]&&qe[Le]?this["fire".concat(Le)]:$e[Le]||qe[Le]}},{key:"isClickToShow",value:function(){var Le=this.props,$e=Le.action,qe=Le.showAction;return $e.indexOf("click")!==-1||qe.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var Le=this.props.action;return Le==="contextMenu"||Le.length===1&&Le[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var Le=this.props,$e=Le.action,qe=Le.showAction;return $e.indexOf("contextMenu")!==-1||qe.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Le=this.props,$e=Le.action,qe=Le.hideAction;return $e.indexOf("click")!==-1||qe.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Le=this.props,$e=Le.action,qe=Le.showAction;return $e.indexOf("hover")!==-1||qe.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Le=this.props,$e=Le.action,qe=Le.hideAction;return $e.indexOf("hover")!==-1||qe.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Le=this.props,$e=Le.action,qe=Le.showAction;return $e.indexOf("focus")!==-1||qe.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Le=this.props,$e=Le.action,qe=Le.hideAction;return $e.indexOf("focus")!==-1||qe.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var Le;(Le=this.popupRef.current)===null||Le===void 0||Le.forceAlign()}}},{key:"fireEvents",value:function(Le,$e){var qe=this.props.children.props[Le];qe&&qe($e);var pt=this.props[Le];pt&&pt($e)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Le=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),ln={key:"trigger"};this.isContextMenuToShow()?ln.onContextMenu=this.onContextMenu:ln.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(ln.onClick=this.onClick,ln.onMouseDown=this.onMouseDown,ln.onTouchStart=this.onTouchStart):(ln.onClick=this.createTwoChains("onClick"),ln.onMouseDown=this.createTwoChains("onMouseDown"),ln.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(ln.onMouseEnter=this.onMouseEnter,rt&&(ln.onMouseMove=this.onMouseMove)):ln.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?ln.onMouseLeave=this.onMouseLeave:ln.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(ln.onFocus=this.onFocus,ln.onBlur=this.onBlur):(ln.onFocus=this.createTwoChains("onFocus"),ln.onBlur=this.createTwoChains("onBlur"));var cn=O()(fn&&fn.props&&fn.props.className,It);cn&&(ln.className=cn);var un=Object(b.a)({},ln);Object(Ye.c)(fn)&&(un.ref=Object(Ye.a)(this.triggerRef,fn.ref));var Wn=y.cloneElement(fn,un),Cn;return(Le||this.popupRef.current||pt)&&(Cn=y.createElement(Ze,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Le&&Vt&&(Cn=null),y.createElement(Ja.Provider,{value:this.triggerContextValue},Wn,Cn)}}],[{key:"getDerivedStateFromProps",value:function(Le,$e){var qe=Le.popupVisible,pt={};return qe!==void 0&&$e.popupVisible!==qe&&(pt.popupVisible=qe,pt.prevPopupVisible=$e.popupVisible),pt}}]),Me}(y.Component);return ct.contextType=Ja,ct.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:li,getDocument:oi,onPopupVisibleChange:ja,afterPopupVisibleChange:ja,onPopupAlign:ja,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},ct}var la=ma(ft.a),xe={adjustX:1,adjustY:1},ut={topLeft:{points:["bl","tl"],overflow:xe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:xe,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:xe,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:xe,offset:[4,0]}},Rt={topLeft:{points:["bl","tl"],overflow:xe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:xe,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:xe,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:xe,offset:[4,0]}},wt=ut,Kt=0,Nt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Xt=function(ct,_t,nt){var Me=se(_t),Je=ct.getState();ct.setState({defaultActiveFirst:Object(b.a)(Object(b.a)({},Je.defaultActiveFirst),{},Object(P.a)({},Me,nt))})},nn=function(Ze){Object(S.a)(_t,Ze);var ct=Object(_.a)(_t);function _t(nt){var Me;Object(R.a)(this,_t),Me=ct.call(this,nt),Me.onDestroy=function(rt){Me.props.onDestroy(rt)},Me.onKeyDown=function(rt){var It=rt.keyCode,Vt=Me.menuInstance,fn=Me.props.store,ln=Me.getVisible();if(It===l.a.ENTER)return Me.onTitleClick(rt),Xt(fn,Me.props.eventKey,!0),!0;if(It===l.a.RIGHT)return ln?Vt.onKeyDown(rt):(Me.triggerOpenChange(!0),Xt(fn,Me.props.eventKey,!0)),!0;if(It===l.a.LEFT){var cn;if(ln)cn=Vt.onKeyDown(rt);else return;return cn||(Me.triggerOpenChange(!1),cn=!0),cn}return ln&&(It===l.a.UP||It===l.a.DOWN)?Vt.onKeyDown(rt):void 0},Me.onOpenChange=function(rt){Me.props.onOpenChange(rt)},Me.onPopupVisibleChange=function(rt){Me.triggerOpenChange(rt,rt?"mouseenter":"mouseleave")},Me.onMouseEnter=function(rt){var It=Me.props,Vt=It.eventKey,fn=It.onMouseEnter,ln=It.store;Xt(ln,Me.props.eventKey,!1),fn({key:Vt,domEvent:rt})},Me.onMouseLeave=function(rt){var It=Me.props,Vt=It.parentMenu,fn=It.eventKey,ln=It.onMouseLeave;Vt.subMenuInstance=Object(C.a)(Me),ln({key:fn,domEvent:rt})},Me.onTitleMouseEnter=function(rt){var It=Me.props,Vt=It.eventKey,fn=It.onItemHover,ln=It.onTitleMouseEnter;fn({key:Vt,hover:!0}),ln({key:Vt,domEvent:rt})},Me.onTitleMouseLeave=function(rt){var It=Me.props,Vt=It.parentMenu,fn=It.eventKey,ln=It.onItemHover,cn=It.onTitleMouseLeave;Vt.subMenuInstance=Object(C.a)(Me),ln({key:fn,hover:!1}),cn({key:fn,domEvent:rt})},Me.onTitleClick=function(rt){var It=Object(C.a)(Me),Vt=It.props;if(Vt.onTitleClick({key:Vt.eventKey,domEvent:rt}),Vt.triggerSubMenuAction==="hover")return;Me.triggerOpenChange(!Me.getVisible(),"click"),Xt(Vt.store,Me.props.eventKey,!1)},Me.onSubMenuClick=function(rt){typeof Me.props.onClick=="function"&&Me.props.onClick(Me.addKeyPath(rt))},Me.onSelect=function(rt){Me.props.onSelect(rt)},Me.onDeselect=function(rt){Me.props.onDeselect(rt)},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.getVisible=function(){return Me.state.isOpen},Me.getMode=function(){return Me.state.mode},Me.saveMenuInstance=function(rt){Me.menuInstance=rt},Me.addKeyPath=function(rt){return Object(b.a)(Object(b.a)({},rt),{},{keyPath:(rt.keyPath||[]).concat(Me.props.eventKey)})},Me.triggerOpenChange=function(rt,It){var Vt=Me.props.eventKey,fn=function(){Me.onOpenChange({key:Vt,item:Object(C.a)(Me),trigger:It,open:rt})};It==="mouseenter"?Me.mouseenterTimeout=setTimeout(function(){fn()},0):fn()},Me.isChildrenSelected=function(){var rt={find:!1};return Q(Me.props.children,Me.props.selectedKeys,rt),rt.find},Me.isInlineMode=function(){return Me.getMode()==="inline"},Me.adjustWidth=function(){if(!Me.subMenuTitle||!Me.menuInstance)return;var rt=tt.findDOMNode(Me.menuInstance);if(rt.offsetWidth>=Me.subMenuTitle.offsetWidth)return;rt.style.minWidth="".concat(Me.subMenuTitle.offsetWidth,"px")},Me.saveSubMenuTitle=function(rt){Me.subMenuTitle=rt},Me.getBaseProps=function(){var rt=Object(C.a)(Me),It=rt.props,Vt=Me.getMode();return{mode:Vt==="horizontal"?"vertical":Vt,visible:Me.getVisible(),level:It.level+1,inlineIndent:It.inlineIndent,focusable:!1,onClick:Me.onSubMenuClick,onSelect:Me.onSelect,onDeselect:Me.onDeselect,onDestroy:Me.onDestroy,selectedKeys:It.selectedKeys,eventKey:"".concat(It.eventKey,"-menu-"),openKeys:It.openKeys,motion:It.motion,onOpenChange:Me.onOpenChange,subMenuOpenDelay:It.subMenuOpenDelay,parentMenu:Object(C.a)(Me),subMenuCloseDelay:It.subMenuCloseDelay,forceSubMenuRender:It.forceSubMenuRender,triggerSubMenuAction:It.triggerSubMenuAction,builtinPlacements:It.builtinPlacements,defaultActiveFirst:It.store.getState().defaultActiveFirst[se(It.eventKey)],multiple:It.multiple,prefixCls:It.rootPrefixCls,id:Me.internalMenuId,manualRef:Me.saveMenuInstance,itemIcon:It.itemIcon,expandIcon:It.expandIcon,direction:It.direction}},Me.getMotion=function(rt,It){var Vt=Object(C.a)(Me),fn=Vt.haveRendered,ln=Me.props,cn=ln.motion,un=ln.rootPrefixCls,Wn=Object(b.a)(Object(b.a)({},cn),{},{leavedClassName:"".concat(un,"-hidden"),removeOnLeave:!1,motionAppear:fn||!It||rt!=="inline"});return Wn};var Je=nt.store,Le=nt.eventKey,$e=Je.getState(),qe=$e.defaultActiveFirst;Me.isRootMenu=!1;var pt=!1;return qe&&(pt=qe[Le]),Xt(Je,Le,pt),Me.state={mode:nt.mode,isOpen:nt.isOpen},Me}return Object(M.a)(_t,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Me=this,Je=this.props,Le=Je.mode,$e=Je.parentMenu,qe=Je.manualRef,pt=Je.isOpen,rt=function(){Me.setState({mode:Le,isOpen:pt})},It=pt!==this.state.isOpen,Vt=Le!==this.state.mode;if((Vt||It)&&(mt.a.cancel(this.updateStateRaf),Vt?this.updateStateRaf=Object(mt.a)(rt):rt()),qe&&qe(this),Le!=="horizontal"||!($e==null?void 0:$e.isRootMenu)||!pt)return;this.minWidthTimeout=setTimeout(function(){return Me.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Me=this.props,Je=Me.onDestroy,Le=Me.eventKey;Je&&Je(Le),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),mt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(Me,Je){var Le=this.getBaseProps();return y.createElement(Yt,Object(v.a)({},Le,{id:this.internalMenuId,className:Me,style:Je}),this.props.children)}},{key:"renderChildren",value:function(){var Me=this,Je=this.getBaseProps(),Le=Je.mode,$e=Je.visible,qe=Je.forceSubMenuRender,pt=Je.direction,rt=this.getMotion(Le,$e);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||$e||qe,!this.haveOpened)return y.createElement("div",null);var It=O()("".concat(Je.prefixCls,"-sub"),Object(P.a)({},"".concat(Je.prefixCls,"-rtl"),pt==="rtl"));return this.isInlineMode()?y.createElement(De,Object(v.a)({visible:Je.visible,forceRender:qe},rt),function(Vt){var fn=Vt.className,ln=Vt.style,cn=O()(It,fn);return Me.renderPopupMenu(cn,ln)}):this.renderPopupMenu(It)}},{key:"render",value:function(){var Me,Je,Le,$e=Object(b.a)({},this.props),qe=this.getVisible(),pt=this.getPrefixCls(),rt=this.isInlineMode(),It=this.getMode(),Vt=O()(pt,"".concat(pt,"-").concat(It),(Me={},Object(P.a)(Me,$e.className,!!$e.className),Object(P.a)(Me,this.getOpenClassName(),qe),Object(P.a)(Me,this.getActiveClassName(),$e.active||qe&&!rt),Object(P.a)(Me,this.getDisabledClassName(),$e.disabled),Object(P.a)(Me,this.getSelectedClassName(),this.isChildrenSelected()),Me));this.internalMenuId||($e.eventKey?this.internalMenuId="".concat($e.eventKey,"$Menu"):(Kt+=1,this.internalMenuId="$__$".concat(Kt,"$Menu")));var fn={},ln={},cn={};$e.disabled||(fn={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},ln={onClick:this.onTitleClick},cn={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var un={},Wn=$e.direction,Cn=Wn==="rtl";rt&&(Cn?un.paddingRight=$e.inlineIndent*$e.level:un.paddingLeft=$e.inlineIndent*$e.level);var jr={};this.getVisible()&&(jr={"aria-owns":this.internalMenuId});var Mr=null;It!=="horizontal"&&(Mr=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Mr=y.createElement(this.props.expandIcon,Object(b.a)({},this.props))));var Qr=y.createElement("div",Object(v.a)({ref:this.saveSubMenuTitle,style:un,className:"".concat(pt,"-title"),role:"button"},cn,ln,{"aria-expanded":qe},jr,{"aria-haspopup":"true",title:typeof $e.title=="string"?$e.title:void 0}),$e.title,Mr||y.createElement("i",{className:"".concat(pt,"-arrow")})),Wr=this.renderChildren(),ta=((Je=$e.parentMenu)===null||Je===void 0?void 0:Je.isRootMenu)?$e.parentMenu.props.getPopupContainer:function(Tr){return Tr.parentNode},Kn=Nt[It],wr=$e.popupOffset?{offset:$e.popupOffset}:{},Gn=O()((Le={},Object(P.a)(Le,$e.popupClassName,$e.popupClassName&&!rt),Object(P.a)(Le,"".concat(pt,"-rtl"),Cn),Le)),En=$e.disabled,jn=$e.triggerSubMenuAction,Vr=$e.subMenuOpenDelay,ua=$e.forceSubMenuRender,hr=$e.subMenuCloseDelay,aa=$e.builtinPlacements;J.forEach(function(Tr){return delete $e[Tr]}),delete $e.onClick;var xa=Cn?Object(b.a)(Object(b.a)({},Rt),aa):Object(b.a)(Object(b.a)({},ut),aa);delete $e.direction;var ha=this.getBaseProps(),Ca=rt?null:this.getMotion(ha.mode,ha.visible);return y.createElement("li",Object(v.a)({},$e,fn,{className:Vt,role:"menuitem"}),y.createElement(la,{prefixCls:pt,popupClassName:O()("".concat(pt,"-popup"),Gn),getPopupContainer:ta,builtinPlacements:xa,popupPlacement:Kn,popupVisible:rt?!1:qe,popupAlign:wr,popup:rt?null:Wr,action:En||rt?[]:[jn],mouseEnterDelay:Vr,mouseLeaveDelay:hr,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:ua,popupMotion:Ca},Qr),rt?Wr:null)}}]),_t}(y.Component);nn.defaultProps={onMouseEnter:ae,onMouseLeave:ae,onTitleMouseEnter:ae,onTitleMouseLeave:ae,onTitleClick:ae,manualRef:ae,mode:"vertical",title:""};var yn=Object(A.b)(function(Ze,ct){var _t=Ze.openKeys,nt=Ze.activeKey,Me=Ze.selectedKeys,Je=ct.eventKey,Le=ct.subMenuKey;return{isOpen:_t.indexOf(Je)>-1,active:nt[Le]===Je,selectedKeys:Me}})(nn);yn.isSubMenu=!0;var vn=yn,Nn="menuitem-overflowed",An=.5,an=function(Ze){Object(S.a)(_t,Ze);var ct=Object(_.a)(_t);function _t(){var nt;return Object(R.a)(this,_t),nt=ct.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 Me=nt.props.prefixCls,Je=nt.childRef.current;return Je?[].slice.call(Je.children).filter(function(Le){return Le.className.split(" ").indexOf("".concat(Me,"-overflowed-submenu"))<0}):[]},nt.getOverflowedSubMenuItem=function(Me,Je,Le){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],ln=fn.props,cn=ln.children,un=ln.title,Wn=ln.style,Cn=Object(T.a)(ln,["children","title","style"]),jr=Object(b.a)({},Wn),Mr="".concat(Me,"-overflowed-indicator"),Qr="".concat(Me,"-overflowed-indicator");Je.length===0&&Le!==!0?jr=Object(b.a)(Object(b.a)({},jr),{},{display:"none"}):Le&&(jr=Object(b.a)(Object(b.a)({},jr),{},{visibility:"hidden",position:"absolute"}),Mr="".concat(Mr,"-placeholder"),Qr="".concat(Qr,"-placeholder"));var Wr=Vt?"".concat(It,"-").concat(Vt):"",ta={};return J.forEach(function(Kn){Cn[Kn]!==void 0&&(ta[Kn]=Cn[Kn])}),y.createElement(vn,Object(v.a)({title:qe,className:"".concat(It,"-overflowed-submenu"),popupClassName:Wr},ta,{key:Mr,eventKey:Qr,disabled:!1,style:jr}),Je)},nt.setChildrenWidthAndResize=function(){if(nt.props.mode!=="horizontal")return;var Me=nt.childRef.current;if(!Me)return;var Je=Me.children;if(!Je||Je.length===0)return;var Le=Me.children[Je.length-1];_e(Le,"display","inline-block");var $e=nt.getMenuItemNodes(),qe=$e.filter(function(pt){return pt.className.split(" ").indexOf(Nn)>=0});qe.forEach(function(pt){_e(pt,"display","inline-block")}),nt.menuItemSizes=$e.map(function(pt){return ve(pt,!0)}),qe.forEach(function(pt){_e(pt,"display","none")}),nt.overflowedIndicatorWidth=ve(Me.children[Me.children.length-1],!0),nt.originalTotalWidth=nt.menuItemSizes.reduce(function(pt,rt){return pt+rt},0),nt.handleResize(),_e(Le,"display","none")},nt.handleResize=function(){if(nt.props.mode!=="horizontal")return;var Me=nt.childRef.current;if(!Me)return;var Je=ve(Me);nt.overflowedItems=[];var Le=0,$e;nt.originalTotalWidth>Je+An&&($e=-1,nt.menuItemSizes.forEach(function(qe){Le+=qe,Le+nt.overflowedIndicatorWidth<=Je&&($e+=1)})),nt.setState({lastVisibleIndex:$e})},nt}return Object(M.a)(_t,[{key:"componentDidMount",value:function(){var Me=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Je=this.childRef.current;if(!Je)return;this.resizeObserver=new Qe.default(function(Le){Le.forEach(function(){var $e=Me.cancelFrameId;cancelAnimationFrame($e),Me.cancelFrameId=requestAnimationFrame(Me.setChildrenWidthAndResize)})}),[].slice.call(Je.children).concat(Je).forEach(function(Le){Me.resizeObserver.observe(Le)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Me.resizeObserver.disconnect(),[].slice.call(Je.children).concat(Je).forEach(function(Le){Me.resizeObserver.observe(Le)}),Me.setChildrenWidthAndResize()}),this.mutationObserver.observe(Je,{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 Je=this,Le=this.state.lastVisibleIndex;return(Me||[]).reduce(function($e,qe,pt){var rt=qe;if(Je.props.mode==="horizontal"){var It=Je.getOverflowedSubMenuItem(qe.props.eventKey,[]);Le!==void 0&&Je.props.className.indexOf("".concat(Je.props.prefixCls,"-root"))!==-1&&(pt>Le&&(rt=y.cloneElement(qe,{style:{display:"none"},eventKey:"".concat(qe.props.eventKey,"-hidden"),className:"".concat(Nn)})),pt===Le+1&&(Je.overflowedItems=Me.slice(Le+1).map(function(fn){return y.cloneElement(fn,{key:fn.props.eventKey,mode:"vertical-left"})}),It=Je.getOverflowedSubMenuItem(qe.props.eventKey,Je.overflowedItems)));var Vt=[].concat(Object(f.a)($e),[It,rt]);return pt===Me.length-1&&Vt.push(Je.getOverflowedSubMenuItem(qe.props.eventKey,[],!0)),Vt}return[].concat(Object(f.a)($e),[rt])},[])}},{key:"render",value:function(){var Me=this.props,Je=Me.visible,Le=Me.prefixCls,$e=Me.overflowedIndicator,qe=Me.mode,pt=Me.level,rt=Me.tag,It=Me.children,Vt=Me.theme,fn=Object(T.a)(Me,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),ln=rt;return y.createElement(ln,Object(v.a)({ref:this.childRef},fn),this.renderChildren(It))}}]),_t}(y.Component);an.defaultProps={tag:"div",className:""};var Pn=an;function bn(Ze){return Ze.length?Ze.every(function(ct){return!!ct.props.disabled}):!0}function kn(Ze,ct,_t){var nt=Ze.getState();Ze.setState({activeKey:Object(b.a)(Object(b.a)({},nt.activeKey),{},Object(P.a)({},ct,_t))})}function Rn(Ze){return Ze.eventKey||"0-menu-"}function Jn(Ze,ct){var _t=ct,nt=Ze.children,Me=Ze.eventKey;if(_t){var Je;if(te(nt,function(Le,$e){Le&&Le.props&&!Le.props.disabled&&_t===Oe(Le,Me,$e)&&(Je=!0)}),Je)return _t}return _t=null,Ze.defaultActiveFirst&&te(nt,function(Le,$e){!_t&&Le&&!Le.props.disabled&&(_t=Oe(Le,Me,$e))}),_t}function mr(Ze){if(!Ze)return;var ct=this.instanceArray.indexOf(Ze);ct!==-1?this.instanceArray[ct]=Ze:this.instanceArray.push(Ze)}var Br=function(Ze){Object(S.a)(_t,Ze);var ct=Object(_.a)(_t);function _t(nt){var Me;return Object(R.a)(this,_t),Me=ct.call(this,nt),Me.onKeyDown=function(Je,Le){var $e=Je.keyCode,qe;if(Me.getFlatInstanceArray().forEach(function(rt){rt&&rt.props.active&&rt.onKeyDown&&(qe=rt.onKeyDown(Je))}),qe)return 1;var pt=null;return($e===l.a.UP||$e===l.a.DOWN)&&(pt=Me.step($e===l.a.UP?-1:1)),pt?(Je.preventDefault(),kn(Me.props.store,Rn(Me.props),pt.props.eventKey),typeof Le=="function"&&Le(pt),1):void 0},Me.onItemHover=function(Je){var Le=Je.key,$e=Je.hover;kn(Me.props.store,Rn(Me.props),$e?Le:null)},Me.onDeselect=function(Je){Me.props.onDeselect(Je)},Me.onSelect=function(Je){Me.props.onSelect(Je)},Me.onClick=function(Je){Me.props.onClick(Je)},Me.onOpenChange=function(Je){Me.props.onOpenChange(Je)},Me.onDestroy=function(Je){Me.props.onDestroy(Je)},Me.getFlatInstanceArray=function(){return Me.instanceArray},Me.step=function(Je){var Le=Me.getFlatInstanceArray(),$e=Me.props.store.getState().activeKey[Rn(Me.props)],qe=Le.length;if(!qe)return null;Je<0&&(Le=Le.concat().reverse());var pt=-1;if(Le.every(function(fn,ln){return fn&&fn.props.eventKey===$e?(pt=ln,!1):!0}),!Me.props.defaultActiveFirst&&pt!==-1&&bn(Le.slice(pt,qe-1)))return;var rt=(pt+1)%qe,It=rt;do{var Vt=Le[It];if(!Vt||Vt.props.disabled)It=(It+1)%qe;else return Vt}while(It!==rt);return null},Me.renderCommonMenuItem=function(Je,Le,$e){var qe=Me.props.store.getState(),pt=Object(C.a)(Me),rt=pt.props,It=Oe(Je,rt.eventKey,Le),Vt=Je.props;if(!Vt||typeof Je.type=="string")return Je;var fn=It===qe.activeKey,ln=Object(b.a)(Object(b.a)({mode:Vt.mode||rt.mode,level:rt.level,inlineIndent:rt.inlineIndent,renderMenuItem:Me.renderMenuItem,rootPrefixCls:rt.prefixCls,index:Le,parentMenu:rt.parentMenu,manualRef:Vt.disabled?void 0:Object(L.a)(Je.ref,mr.bind(Object(C.a)(Me))),eventKey:It,active:!Vt.disabled&&fn,multiple:rt.multiple,onClick:function(un){(Vt.onClick||ae)(un),Me.onClick(un)},onItemHover:Me.onItemHover,motion:rt.motion,subMenuOpenDelay:rt.subMenuOpenDelay,subMenuCloseDelay:rt.subMenuCloseDelay,forceSubMenuRender:rt.forceSubMenuRender,onOpenChange:Me.onOpenChange,onDeselect:Me.onDeselect,onSelect:Me.onSelect,builtinPlacements:rt.builtinPlacements,itemIcon:Vt.itemIcon||Me.props.itemIcon,expandIcon:Vt.expandIcon||Me.props.expandIcon},$e),{},{direction:rt.direction});return(rt.mode==="inline"||Ae())&&(ln.triggerSubMenuAction="click"),y.cloneElement(Je,Object(b.a)(Object(b.a)({},ln),{},{key:It||Le}))},Me.renderMenuItem=function(Je,Le,$e){if(!Je)return null;var qe=Me.props.store.getState(),pt={openKeys:qe.openKeys,selectedKeys:qe.selectedKeys,triggerSubMenuAction:Me.props.triggerSubMenuAction,subMenuKey:$e};return Me.renderCommonMenuItem(Je,Le,pt)},nt.store.setState({activeKey:Object(b.a)(Object(b.a)({},nt.store.getState().activeKey),{},Object(P.a)({},nt.eventKey,Jn(nt,nt.activeKey)))}),Me.instanceArray=[],Me}return Object(M.a)(_t,[{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||!V()(this.props.style,Me.style)}},{key:"componentDidUpdate",value:function(Me){var Je=this.props,Le="activeKey"in Je?Je.activeKey:Je.store.getState().activeKey[Rn(Je)],$e=Jn(Je,Le);if($e!==Le)kn(Je.store,Rn(Je),$e);else if("activeKey"in Me){var qe=Jn(Me,Me.activeKey);$e!==qe&&kn(Je.store,Rn(Je),$e)}}},{key:"render",value:function(){var Me=this,Je=Object(v.a)({},this.props);this.instanceArray=[];var Le=O()(Je.prefixCls,Je.className,"".concat(Je.prefixCls,"-").concat(Je.mode)),$e={className:Le,role:Je.role||"menu"};Je.id&&($e.id=Je.id),Je.focusable&&($e.tabIndex=0,$e.onKeyDown=this.onKeyDown);var qe=Je.prefixCls,pt=Je.eventKey,rt=Je.visible,It=Je.level,Vt=Je.mode,fn=Je.overflowedIndicator,ln=Je.theme;return J.forEach(function(cn){return delete Je[cn]}),delete Je.onClick,y.createElement(Pn,Object(v.a)({},Je,{prefixCls:qe,mode:Vt,tag:"ul",level:It,theme:ln,visible:rt,overflowedIndicator:fn},$e),Object(m.a)(Je.children).map(function(cn,un){return Me.renderMenuItem(cn,un,pt||"0-menu-")}))}}]),_t}(y.Component);Br.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:ae};var Sn=Object(A.b)()(Br),Yt=Sn,dn=o("Kwbf");function Dn(Ze,ct,_t){var nt=Ze.prefixCls,Me=Ze.motion,Je=Ze.defaultMotions,Le=Je===void 0?{}:Je,$e=Ze.openAnimation,qe=Ze.openTransitionName,pt=ct.switchingModeFromInline;if(Me)return Me;if(Object(H.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=Le[_t];return rt||(pt?null:Le.other)}var en=function(Ze){Object(S.a)(_t,Ze);var ct=Object(_.a)(_t);function _t(nt){var Me;Object(R.a)(this,_t),Me=ct.call(this,nt),Me.onSelect=function($e){var qe=Object(C.a)(Me),pt=qe.props;if(pt.selectable){var rt=Me.store.getState(),It=rt.selectedKeys,Vt=$e.key;pt.multiple?It=It.concat([Vt]):It=[Vt],"selectedKeys"in pt||Me.store.setState({selectedKeys:It}),pt.onSelect(Object(b.a)(Object(b.a)({},$e),{},{selectedKeys:It}))}},Me.onClick=function($e){var qe=Me.getRealMenuMode(),pt=Object(C.a)(Me),rt=pt.store,It=pt.props.onOpenChange;qe!=="inline"&&!("openKeys"in Me.props)&&(rt.setState({openKeys:[]}),It([])),Me.props.onClick($e)},Me.onKeyDown=function($e,qe){Me.innerMenu.getWrappedInstance().onKeyDown($e,qe)},Me.onOpenChange=function($e){var qe=Object(C.a)(Me),pt=qe.props,rt=Me.store.getState().openKeys.concat(),It=!1,Vt=function(ln){var cn=!1;if(ln.open)cn=rt.indexOf(ln.key)===-1,cn&&rt.push(ln.key);else{var un=rt.indexOf(ln.key);cn=un!==-1,cn&&rt.splice(un,1)}It=It||cn};Array.isArray($e)?$e.forEach(Vt):Vt($e),It&&("openKeys"in Me.props||Me.store.setState({openKeys:rt}),pt.onOpenChange(rt))},Me.onDeselect=function($e){var qe=Object(C.a)(Me),pt=qe.props;if(pt.selectable){var rt=Me.store.getState().selectedKeys.concat(),It=$e.key,Vt=rt.indexOf(It);Vt!==-1&&rt.splice(Vt,1),"selectedKeys"in pt||Me.store.setState({selectedKeys:rt}),pt.onDeselect(Object(b.a)(Object(b.a)({},$e),{},{selectedKeys:rt}))}},Me.onMouseEnter=function($e){Me.restoreModeVerticalFromInline();var qe=Me.props.onMouseEnter;qe&&qe($e)},Me.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)&&Me.restoreModeVerticalFromInline()},Me.setInnerMenu=function($e){Me.innerMenu=$e},Me.isRootMenu=!0;var Je=nt.defaultSelectedKeys,Le=nt.defaultOpenKeys;return"selectedKeys"in nt&&(Je=nt.selectedKeys||[]),"openKeys"in nt&&(Le=nt.openKeys||[]),Me.store=Object(A.c)({selectedKeys:Je,openKeys:Le,activeKey:{"0-menu-":Jn(nt,nt.activeKey)}}),Me.state={switchingModeFromInline:!1,prevProps:nt,inlineOpenKeys:[],store:Me.store},Me}return Object(M.a)(_t,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Me){var Je=this.props,Le=Je.siderCollapsed,$e=Je.inlineCollapsed,qe=Je.onOpenChange;(!Me.inlineCollapsed&&$e||!Me.siderCollapsed&&Le)&&qe([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var Me=this.props.collapsedWidth,Je=this.store,Le=this.prevOpenKeys,$e=this.getInlineCollapsed()&&(Me===0||Me==="0"||Me==="0px");$e?(this.prevOpenKeys=Je.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Le&&(this.store.setState({openKeys:Le}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Me=this.props.mode,Je=this.state.switchingModeFromInline,Le=this.getInlineCollapsed();return Je&&Le?"inline":Le?"vertical":Me}},{key:"getInlineCollapsed",value:function(){var Me=this.props,Je=Me.inlineCollapsed,Le=Me.siderCollapsed;return Le!==void 0?Le:Je}},{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(b.a)({},Object(U.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Je=this.getRealMenuMode();return Me.className+=" ".concat(Me.prefixCls,"-root"),Me.direction==="rtl"&&(Me.className+=" ".concat(Me.prefixCls,"-rtl")),Me=Object(b.a)(Object(b.a)({},Me),{},{mode:Je,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Dn(this.props,this.state,Je)}),delete Me.openAnimation,delete Me.openTransitionName,y.createElement(A.a,{store:this.store},y.createElement(Yt,Object(v.a)({},Me,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(Me,Je){var Le=Je.prevProps,$e=Je.store,qe=$e.getState(),pt={},rt={prevProps:Me};return Le.mode==="inline"&&Me.mode!=="inline"&&(rt.switchingModeFromInline=!0),"openKeys"in Me?pt.openKeys=Me.openKeys||[]:((Me.inlineCollapsed&&!Le.inlineCollapsed||Me.siderCollapsed&&!Le.siderCollapsed)&&(rt.switchingModeFromInline=!0,rt.inlineOpenKeys=qe.openKeys,pt.openKeys=[]),(!Me.inlineCollapsed&&Le.inlineCollapsed||!Me.siderCollapsed&&Le.siderCollapsed)&&(pt.openKeys=Je.inlineOpenKeys,rt.inlineOpenKeys=[])),Object.keys(pt).length&&$e.setState(pt),rt}}]),_t}(y.Component);en.defaultProps={selectable:!0,onClick:ae,onSelect:ae,onOpenChange:ae,onDeselect:ae,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:y.createElement("span",null,"\xB7\xB7\xB7")};var wn=en,_n=function(Ze){Object(S.a)(_t,Ze);var ct=Object(_.a)(_t);function _t(){var nt;return Object(R.a)(this,_t),nt=ct.apply(this,arguments),nt.onKeyDown=function(Me){var Je=Me.keyCode;return Je===l.a.ENTER?(nt.onClick(Me),!0):void 0},nt.onMouseLeave=function(Me){var Je=nt.props,Le=Je.eventKey,$e=Je.onItemHover,qe=Je.onMouseLeave;$e({key:Le,hover:!1}),qe({key:Le,domEvent:Me})},nt.onMouseEnter=function(Me){var Je=nt.props,Le=Je.eventKey,$e=Je.onItemHover,qe=Je.onMouseEnter;$e({key:Le,hover:!0}),qe({key:Le,domEvent:Me})},nt.onClick=function(Me){var Je=nt.props,Le=Je.eventKey,$e=Je.multiple,qe=Je.onClick,pt=Je.onSelect,rt=Je.onDeselect,It=Je.isSelected,Vt={key:Le,keyPath:[Le],item:Object(C.a)(nt),domEvent:Me};qe(Vt),$e?It?rt(Vt):pt(Vt):It||pt(Vt)},nt.saveNode=function(Me){nt.node=Me},nt}return Object(M.a)(_t,[{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,Je=Object(b.a)({},this.props),Le=O()(this.getPrefixCls(),Je.className,(Me={},Object(P.a)(Me,this.getActiveClassName(),!Je.disabled&&Je.active),Object(P.a)(Me,this.getSelectedClassName(),Je.isSelected),Object(P.a)(Me,this.getDisabledClassName(),Je.disabled),Me)),$e=Object(b.a)(Object(b.a)({},Je.attribute),{},{title:typeof Je.title=="string"?Je.title:void 0,className:Le,role:Je.role||"menuitem","aria-disabled":Je.disabled});Je.role==="option"?$e=Object(b.a)(Object(b.a)({},$e),{},{role:"option","aria-selected":Je.isSelected}):(Je.role===null||Je.role==="none")&&($e.role="none");var qe={onClick:Je.disabled?null:this.onClick,onMouseLeave:Je.disabled?null:this.onMouseLeave,onMouseEnter:Je.disabled?null:this.onMouseEnter},pt=Object(b.a)({},Je.style);Je.mode==="inline"&&(Je.direction==="rtl"?pt.paddingRight=Je.inlineIndent*Je.level:pt.paddingLeft=Je.inlineIndent*Je.level),J.forEach(function(It){return delete Je[It]}),delete Je.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(U.a)(Je,["onClick","onMouseEnter","onMouseLeave","onSelect"]),$e,qe,{style:pt,ref:this.saveNode}),Je.children,rt)}}]),_t}(y.Component);_n.isMenuItem=!0,_n.defaultProps={onSelect:ae,onMouseEnter:ae,onMouseLeave:ae,manualRef:ae};var In=Object(A.b)(function(Ze,ct){var _t=Ze.activeKey,nt=Ze.selectedKeys,Me=ct.eventKey,Je=ct.subMenuKey;return{active:_t[Je]===Me,isSelected:Array.isArray(nt)?nt.indexOf(Me)!==-1:nt===Me}})(_n),Un=In,or=function(Ze){Object(S.a)(_t,Ze);var ct=Object(_.a)(_t);function _t(){var nt;return Object(R.a)(this,_t),nt=ct.apply(this,arguments),nt.renderInnerMenuItem=function(Me){var Je=nt.props,Le=Je.renderMenuItem,$e=Je.index;return Le(Me,$e,nt.props.subMenuKey)},nt}return Object(M.a)(_t,[{key:"render",value:function(){var Me=Object(v.a)({},this.props),Je=Me.className,Le=Je===void 0?"":Je,$e=Me.rootPrefixCls,qe="".concat($e,"-item-group-title"),pt="".concat($e,"-item-group-list"),rt=Me.title,It=Me.children;return J.forEach(function(Vt){return delete Me[Vt]}),delete Me.direction,y.createElement("li",Object(v.a)({},Me,{onClick:function(fn){return fn.stopPropagation()},className:"".concat(Le," ").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)))}}]),_t}(y.Component);or.isMenuItemGroup=!0,or.defaultProps={disabled:!0};var qn=or,Pr=function(ct){var _t=ct.className,nt=ct.rootPrefixCls,Me=ct.style;return y.createElement("li",{className:"".concat(_t," ").concat(nt,"-item-divider"),style:Me})};Pr.defaultProps={disabled:!0,className:"",style:{}};var Lr=Pr,Qn=wn,Dr=o("eDIo");function vr(Ze,ct){var _t=Ze.prefixCls,nt=Ze.editable,Me=Ze.locale,Je=Ze.style;return!nt||nt.showAdd===!1?null:y.createElement("button",{ref:ct,type:"button",className:"".concat(_t,"-nav-add"),style:Je,"aria-label":(Me==null?void 0:Me.addAriaLabel)||"Add tab",onClick:function($e){nt.onEdit("add",{event:$e})}},nt.addIcon||"+")}var zr=y.forwardRef(vr);function Nr(Ze,ct){var _t=Ze.prefixCls,nt=Ze.id,Me=Ze.tabs,Je=Ze.locale,Le=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,ln=Ze.rtl,cn=Ze.onTabClick,un=Object(y.useState)(!1),Wn=Object(g.a)(un,2),Cn=Wn[0],jr=Wn[1],Mr=Object(y.useState)(null),Qr=Object(g.a)(Mr,2),Wr=Qr[0],ta=Qr[1],Kn="".concat(nt,"-more-popup"),wr="".concat(_t,"-dropdown"),Gn=Wr!==null?"".concat(Kn,"-").concat(Wr):null,En=Je==null?void 0:Je.dropdownAriaLabel,jn=y.createElement(Qn,{onClick:function(Ca){var Tr=Ca.key,br=Ca.domEvent;cn(Tr,br),jr(!1)},id:Kn,tabIndex:-1,role:"listbox","aria-activedescendant":Gn,selectedKeys:[Wr],"aria-label":En!==void 0?En:"expanded dropdown"},Me.map(function(ha){return y.createElement(Un,{key:ha.key,id:"".concat(Kn,"-").concat(ha.key),role:"option","aria-controls":nt&&"".concat(nt,"-panel-").concat(ha.key),disabled:ha.disabled},ha.tab)}));function Vr(ha){for(var Ca=Me.filter(function(pa){return!pa.disabled}),Tr=Ca.findIndex(function(pa){return pa.key===Wr})||0,br=Ca.length,Ir=0;Ir<br;Ir+=1){Tr=(Tr+ha+br)%br;var er=Ca[Tr];if(!er.disabled){ta(er.key);return}}}function ua(ha){var Ca=ha.which;if(!Cn){[l.a.DOWN,l.a.SPACE,l.a.ENTER].includes(Ca)&&(jr(!0),ha.preventDefault());return}switch(Ca){case l.a.UP:Vr(-1),ha.preventDefault();break;case l.a.DOWN:Vr(1),ha.preventDefault();break;case l.a.ESC:jr(!1);break;case l.a.SPACE:case l.a.ENTER:Wr!==null&&cn(Wr,ha);break}}Object(y.useEffect)(function(){var ha=document.getElementById(Gn);ha&&ha.scrollIntoView&&ha.scrollIntoView(!1)},[Wr]),Object(y.useEffect)(function(){Cn||ta(null)},[Cn]);var hr=Object(P.a)({},ln?"marginLeft":"marginRight",fn);Me.length||(hr.visibility="hidden",hr.order=1);var aa=O()(Object(P.a)({},"".concat(wr,"-rtl"),ln)),xa=Le?null:y.createElement(Dr.a,{prefixCls:wr,overlay:jn,trigger:["hover"],visible:Cn,transitionName:pt,onVisibleChange:jr,overlayClassName:aa,mouseEnterDelay:.1,mouseLeaveDelay:.1},y.createElement("button",{type:"button",className:"".concat(_t,"-nav-more"),style:hr,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":Kn,id:"".concat(nt,"-more"),"aria-expanded":Cn,onKeyDown:ua},qe));return y.createElement("div",{className:O()("".concat(_t,"-nav-operations"),It),style:rt,ref:ct},xa,y.createElement(zr,{prefixCls:_t,locale:Je,editable:Vt}))}var $r=y.forwardRef(Nr),tr=Object(y.createContext)(null),Gt=.1,Zt=.01,Jt=20,zn=Math.pow(.995,Jt);function $n(){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,ct){var _t=Object(y.useState)(),nt=Object(g.a)(_t,2),Me=nt[0],Je=nt[1],Le=Object(y.useState)(0),$e=Object(g.a)(Le,2),qe=$e[0],pt=$e[1],rt=Object(y.useState)(0),It=Object(g.a)(rt,2),Vt=It[0],fn=It[1],ln=Object(y.useState)(),cn=Object(g.a)(ln,2),un=cn[0],Wn=cn[1],Cn=Object(y.useRef)();function jr(En){var jn=En.touches[0],Vr=jn.screenX,ua=jn.screenY;Je({x:Vr,y:ua}),window.clearInterval(Cn.current)}function Mr(En){if(!Me)return;En.preventDefault();var jn=En.touches[0],Vr=jn.screenX,ua=jn.screenY;Je({x:Vr,y:ua});var hr=Vr-Me.x,aa=ua-Me.y;ct(hr,aa);var xa=Date.now();pt(xa),fn(xa-qe),Wn({x:hr,y:aa})}function Qr(){if(!Me)return;if(Je(null),Wn(null),un){var En=un.x/Vt,jn=un.y/Vt,Vr=Math.abs(En),ua=Math.abs(jn);if(Math.max(Vr,ua)<Gt)return;var hr=En,aa=jn;Cn.current=window.setInterval(function(){if(Math.abs(hr)<Zt&&Math.abs(aa)<Zt){window.clearInterval(Cn.current);return}hr*=zn,aa*=zn,ct(hr*Jt,aa*Jt)},Jt)}}var Wr=Object(y.useRef)(0),ta=Object(y.useRef)(!1),Kn=Object(y.useRef)();function wr(En){var jn=En.deltaX,Vr=En.deltaY,ua=0,hr=Math.abs(jn),aa=Math.abs(Vr);hr===aa?ua=Kn.current==="x"?jn:Vr:hr>aa?(ua=jn,Kn.current="x"):(ua=Vr,Kn.current="y");var xa=Date.now();xa-Wr.current>100&&(ta.current=!1),(ct(-ua,-ua)||ta.current)&&(En.preventDefault(),ta.current=!0),Wr.current=xa}var Gn=Object(y.useRef)(null);Gn.current={onTouchStart:jr,onTouchMove:Mr,onTouchEnd:Qr,onWheel:wr},y.useEffect(function(){function En(hr){Gn.current.onTouchStart(hr)}function jn(hr){Gn.current.onTouchMove(hr)}function Vr(hr){Gn.current.onTouchEnd(hr)}function ua(hr){Gn.current.onWheel(hr)}return document.addEventListener("touchmove",jn,{passive:!1}),document.addEventListener("touchend",Vr,{passive:!1}),Ze.current.addEventListener("touchstart",En,{passive:!1}),Ze.current.addEventListener("wheel",ua),function(){document.removeEventListener("touchmove",jn),document.removeEventListener("touchend",Vr)}},[])}function rr(){var Ze=Object(y.useRef)(new Map);function ct(nt){return Ze.current.has(nt)||Ze.current.set(nt,y.createRef()),Ze.current.get(nt)}function _t(nt){Ze.current.delete(nt)}return[ct,_t]}function cr(Ze,ct){var _t=y.useRef(Ze),nt=y.useState({}),Me=Object(g.a)(nt,2),Je=Me[1];function Le($e){var qe=typeof $e=="function"?$e(_t.current):$e;qe!==_t.current&&ct(qe,_t.current),_t.current=qe,Je({})}return[_t.current,Le]}var sr=function(ct){var _t=ct.position,nt=ct.prefixCls,Me=ct.extra;if(!Me)return null;var Je,Le=Me;return _t==="right"&&(Je=Le.right||!Le.left&&Le||null),_t==="left"&&(Je=Le.left||null),Je?y.createElement("div",{className:"".concat(nt,"-extra-content")},Je):null};function qr(Ze,ct){var _t,nt=y.useContext(tr),Me=nt.prefixCls,Je=nt.tabs,Le=Ze.className,$e=Ze.style,qe=Ze.id,pt=Ze.animated,rt=Ze.activeKey,It=Ze.rtl,Vt=Ze.extra,fn=Ze.editable,ln=Ze.locale,cn=Ze.tabPosition,un=Ze.tabBarGutter,Wn=Ze.children,Cn=Ze.onTabClick,jr=Ze.onTabScroll,Mr=Object(y.useRef)(),Qr=Object(y.useRef)(),Wr=Object(y.useRef)(),ta=Object(y.useRef)(),Kn=rr(),wr=Object(g.a)(Kn,2),Gn=wr[0],En=wr[1],jn=cn==="top"||cn==="bottom",Vr=cr(0,function(Aa,ya){jn&&jr&&jr({direction:Aa>ya?"left":"right"})}),ua=Object(g.a)(Vr,2),hr=ua[0],aa=ua[1],xa=cr(0,function(Aa,ya){!jn&&jr&&jr({direction:Aa>ya?"top":"bottom"})}),ha=Object(g.a)(xa,2),Ca=ha[0],Tr=ha[1],br=Object(y.useState)(0),Ir=Object(g.a)(br,2),er=Ir[0],pa=Ir[1],Ea=Object(y.useState)(0),ba=Object(g.a)(Ea,2),Oa=ba[0],ga=ba[1],ka=Object(y.useState)(0),Ua=Object(g.a)(ka,2),Fa=Ua[0],ni=Ua[1],Fi=Object(y.useState)(0),Ai=Object(g.a)(Fi,2),Na=Ai[0],bi=Ai[1],Si=Object(y.useState)(null),Ba=Object(g.a)(Si,2),Ma=Ba[0],Za=Ba[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=c(Je,No,er),Ji="".concat(Me,"-nav-operations-hidden"),Qi=0,ei=0;jn?It?(Qi=0,ei=Math.max(0,er-Ma)):(Qi=Math.min(0,Ma-er),ei=0):(Qi=Math.min(0,Ii-Oa),ei=0);function Li(Aa){return Aa<Qi?[Qi,!1]:Aa>ei?[ei,!1]:[Aa,!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(Mr,function(Aa,ya){var Ga=!1;function ui(eo,ki){eo(function(ho){var wi=Li(ho+ki),qa=Object(g.a)(wi,2),po=qa[0],Hi=qa[1];return Ga=Hi,po})}if(jn){if(Ma>=er)return Ga;ui(aa,Aa)}else{if(Ii>=Oa)return Ga;ui(Tr,ya)}return io(),Co(),Ga}),Object(y.useEffect)(function(){return io(),Eo&&(Di.current=window.setTimeout(function(){xo(0)},100)),io},[Eo]);function Ni(){var Aa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:rt,ya=ao.get(Aa);if(!ya)return;if(jn){var Ga=hr;It?ya.right<hr?Ga=ya.right:ya.right+ya.width>hr+Ma&&(Ga=ya.right+ya.width-Ma):ya.left<-hr?Ga=-ya.left:ya.left+ya.width>-hr+Ma&&(Ga=-(ya.left+ya.width-Ma)),Tr(0),aa(Li(Ga)[0])}else{var ui=Ca;ya.top<-Ca?ui=-ya.top:ya.top+ya.height>-Ca+Ii&&(ui=-(ya.top+ya.height-Ii)),aa(0),Tr(Li(ui)[0])}}var qi=E(ao,{width:Ma,height:Ii,left:hr,top:Ca},{width:Fa,height:Na},{width:uo,height:Vi},Object(b.a)(Object(b.a)({},Ze),{},{tabs:Je})),ko=Object(g.a)(qi,2),oo=ko[0],so=ko[1],So=Je.map(function(Aa){var ya=Aa.key;return y.createElement(d,{id:qe,prefixCls:Me,key:ya,rtl:It,tab:Aa,closable:Aa.closable,editable:fn,active:ya===rt,tabPosition:cn,tabBarGutter:un,renderWrapper:Wn,removeAriaLabel:ln==null?void 0:ln.removeAriaLabel,ref:Gn(ya),onClick:function(ui){Cn(ya,ui)},onRemove:function(){En(ya)},onFocus:function(){Ni(ya),Co(),It||(Mr.current.scrollLeft=0),Mr.current.scrollTop=0}})}),Uo=i(function(){var Aa,ya,Ga,ui,eo,ki,ho,wi,qa,po=((Aa=Mr.current)===null||Aa===void 0?void 0:Aa.offsetWidth)||0,Hi=((ya=Mr.current)===null||ya===void 0?void 0:ya.offsetHeight)||0,mo=((Ga=ta.current)===null||Ga===void 0?void 0:Ga.offsetWidth)||0,hi=((ui=ta.current)===null||ui===void 0?void 0:ui.offsetHeight)||0,Pa=((eo=Wr.current)===null||eo===void 0?void 0:eo.offsetWidth)||0,sa=((ki=Wr.current)===null||ki===void 0?void 0:ki.offsetHeight)||0;Za(po),no(Hi),Io(mo),co(hi);var Cr=(((ho=Qr.current)===null||ho===void 0?void 0:ho.offsetWidth)||0)-mo,Zr=(((wi=Qr.current)===null||wi===void 0?void 0:wi.offsetHeight)||0)-hi;pa(Cr),ga(Zr);var va=(qa=Wr.current)===null||qa===void 0?void 0:qa.className.includes(Ji);ni(Cr-(va?0:Pa)),bi(Zr-(va?0:sa)),yo(function(){var Wa=new Map;return Je.forEach(function(Ei){var Pi=Ei.key,$a=Gn(Pi).current;$a&&Wa.set(Pi,{width:$a.offsetWidth,height:$a.offsetHeight,left:$a.offsetLeft,top:$a.offsetTop})}),Wa})}),jo=Je.slice(0,oo),fi=Je.slice(so+1),Ha=[].concat(Object(f.a)(jo),Object(f.a)(fi)),ri=Object(y.useState)(),Xa=Object(g.a)(ri,2),ai=Xa[0],wo=Xa[1],yi=ao.get(rt),Bo=Object(y.useRef)();function To(){u.a.cancel(Bo.current)}Object(y.useEffect)(function(){var Aa={};return yi&&(jn?(It?Aa.right=yi.right:Aa.left=yi.left,Aa.width=yi.width):(Aa.top=yi.top,Aa.height=yi.height)),To(),Bo.current=u()(function(){wo(Aa)}),To},[yi,jn,It]),Object(y.useEffect)(function(){Ni()},[rt,yi,ao,jn]),Object(y.useEffect)(function(){Uo()},[It,un,rt,Je.map(function(Aa){return Aa.key}).join("_")]);var $i=!!Ha.length,Wi="".concat(Me,"-nav-wrap"),Oo,fo,Wo,lo;return jn?It?(fo=hr>0,Oo=hr+Ma<er):(Oo=hr<0,fo=-hr+Ma<er):(Wo=Ca<0,lo=-Ca+Ii<Oa),y.createElement("div",{ref:ct,role:"tablist",className:O()("".concat(Me,"-nav"),Le),style:$e,onKeyDown:function(){Co()}},y.createElement(sr,{position:"left",extra:Vt,prefixCls:Me}),y.createElement(r.a,{onResize:Uo},y.createElement("div",{className:O()(Wi,(_t={},Object(P.a)(_t,"".concat(Wi,"-ping-left"),Oo),Object(P.a)(_t,"".concat(Wi,"-ping-right"),fo),Object(P.a)(_t,"".concat(Wi,"-ping-top"),Wo),Object(P.a)(_t,"".concat(Wi,"-ping-bottom"),lo),_t)),ref:Mr},y.createElement(r.a,{onResize:Uo},y.createElement("div",{ref:Qr,className:"".concat(Me,"-nav-list"),style:{transform:"translate(".concat(hr,"px, ").concat(Ca,"px)"),transition:Eo?"none":void 0}},So,y.createElement(zr,{ref:ta,prefixCls:Me,locale:ln,editable:fn,style:{visibility:$i?"hidden":null}}),y.createElement("div",{className:O()("".concat(Me,"-ink-bar"),Object(P.a)({},"".concat(Me,"-ink-bar-animated"),pt.inkBar)),style:ai}))))),y.createElement($r,Object.assign({},Ze,{ref:Wr,prefixCls:Me,tabs:Ha,className:!$i&&Ji})),y.createElement(sr,{position:"right",extra:Vt,prefixCls:Me}))}var lr=y.forwardRef(qr);function da(Ze){var ct=Ze.id,_t=Ze.activeKey,nt=Ze.animated,Me=Ze.tabPosition,Je=Ze.rtl,Le=Ze.destroyInactiveTabPane,$e=y.useContext(tr),qe=$e.prefixCls,pt=$e.tabs,rt=nt.tabPane,It=pt.findIndex(function(Vt){return Vt.key===_t});return y.createElement("div",{className:O()("".concat(qe,"-content-holder"))},y.createElement("div",{className:O()("".concat(qe,"-content"),"".concat(qe,"-content-").concat(Me),Object(P.a)({},"".concat(qe,"-content-animated"),rt)),style:It&&rt?Object(P.a)({},Je?"marginRight":"marginLeft","-".concat(It,"00%")):null},pt.map(function(Vt){return y.cloneElement(Vt.node,{key:Vt.key,prefixCls:qe,tabKey:Vt.key,id:ct,animated:rt,active:Vt.key===_t,destroyInactiveTabPane:Le})})))}function Yr(Ze){var ct=Ze.prefixCls,_t=Ze.forceRender,nt=Ze.className,Me=Ze.style,Je=Ze.id,Le=Ze.active,$e=Ze.animated,qe=Ze.destroyInactiveTabPane,pt=Ze.tabKey,rt=Ze.children,It=y.useState(_t),Vt=Object(g.a)(It,2),fn=Vt[0],ln=Vt[1];y.useEffect(function(){Le?ln(!0):qe&&ln(!1)},[Le,qe]);var cn={};return Le||($e?(cn.visibility="hidden",cn.height=0,cn.overflowY="hidden"):cn.display="none"),y.createElement("div",{id:Je&&"".concat(Je,"-panel-").concat(pt),role:"tabpanel",tabIndex:Le?0:-1,"aria-labelledby":Je&&"".concat(Je,"-tab-").concat(pt),"aria-hidden":!Le,style:Object(b.a)(Object(b.a)({},cn),Me),className:O()("".concat(ct,"-tabpane"),Le&&"".concat(ct,"-tabpane-active"),nt)},(Le||fn||_t)&&rt)}var _r=0;function Sr(Ze){return Object(m.a)(Ze).map(function(ct){if(y.isValidElement(ct)){var _t=ct.key!==void 0?String(ct.key):void 0;return Object(b.a)(Object(b.a)({key:_t},ct.props),{},{node:ct})}return null}).filter(function(ct){return ct})}function Kr(Ze,ct){var _t,nt=Ze.id,Me=Ze.prefixCls,Je=Me===void 0?"rc-tabs":Me,Le=Ze.className,$e=Ze.children,qe=Ze.direction,pt=Ze.activeKey,rt=Ze.defaultActiveKey,It=Ze.editable,Vt=Ze.animated,fn=Ze.tabPosition,ln=fn===void 0?"top":fn,cn=Ze.tabBarGutter,un=Ze.tabBarStyle,Wn=Ze.tabBarExtraContent,Cn=Ze.locale,jr=Ze.moreIcon,Mr=Ze.moreTransitionName,Qr=Ze.destroyInactiveTabPane,Wr=Ze.renderTabBar,ta=Ze.onChange,Kn=Ze.onTabClick,wr=Ze.onTabScroll,Gn=Object(T.a)(Ze,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),En=Sr($e),jn=qe==="rtl",Vr;Vt===!1?Vr={inkBar:!1,tabPane:!1}:Vr=Object(b.a)({inkBar:!0,tabPane:!1},Vt!==!0?Vt:null);var ua=Object(y.useState)(!1),hr=Object(g.a)(ua,2),aa=hr[0],xa=hr[1];Object(y.useEffect)(function(){xa($n())},[]);var ha=Object(e.a)(function(){var Na;return(Na=En[0])===null||Na===void 0?void 0:Na.key},{value:pt,defaultValue:rt}),Ca=Object(g.a)(ha,2),Tr=Ca[0],br=Ca[1],Ir=Object(y.useState)(function(){return En.findIndex(function(Na){return Na.key===Tr})}),er=Object(g.a)(Ir,2),pa=er[0],Ea=er[1];Object(y.useEffect)(function(){var Na=En.findIndex(function(Si){return Si.key===Tr});if(Na===-1){var bi;Na=Math.max(0,Math.min(pa,En.length-1)),br((bi=En[Na])===null||bi===void 0?void 0:bi.key)}Ea(Na)},[En.map(function(Na){return Na.key}).join("_"),Tr,pa]);var ba=Object(e.a)(null,{value:nt}),Oa=Object(g.a)(ba,2),ga=Oa[0],ka=Oa[1],Ua=ln;aa&&!["left","right"].includes(ln)&&(Ua="top"),Object(y.useEffect)(function(){nt||(ka("rc-tabs-".concat(_r)),_r+=1)},[]);function Fa(Na,bi){Kn==null||Kn(Na,bi),br(Na),ta==null||ta(Na)}var ni={id:ga,activeKey:Tr,animated:Vr,tabPosition:Ua,rtl:jn,mobile:aa},Fi,Ai=Object(b.a)(Object(b.a)({},ni),{},{editable:It,locale:Cn,moreIcon:jr,moreTransitionName:Mr,tabBarGutter:cn,onTabClick:Fa,onTabScroll:wr,extra:Wn,style:un,panes:$e});return Wr?Fi=Wr(Ai,lr):Fi=y.createElement(lr,Object.assign({},Ai)),y.createElement(tr.Provider,{value:{tabs:En,prefixCls:Je}},y.createElement("div",Object.assign({ref:ct,id:nt,className:O()(Je,"".concat(Je,"-").concat(Ua),(_t={},Object(P.a)(_t,"".concat(Je,"-mobile"),aa),Object(P.a)(_t,"".concat(Je,"-editable"),It),Object(P.a)(_t,"".concat(Je,"-rtl"),jn),_t),Le)},Gn),Fi,y.createElement(da,Object.assign({destroyInactiveTabPane:Qr},ni,{animated:Vr}))))}var Jr=y.forwardRef(Kr);Jr.TabPane=Yr;var Ta=Jr,_a=z.b=Ta},kPWJ:function(k,z,o){k.exports=o.p+"static/question.cb52bef9.gif"},kPYp:function(k,z){k.exports="data:image/png;base64,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"},kSUc:function(k,z,o){},l2Kq:function(k,z,o){k.exports=o.p+"static/match_ad.24dc22fd.jpg"},lPiR:function(k,z,o){(function(P,g){k.exports=z=g(o("Ib8C"))})(this,function(P){return function(g){var T=P,b=T.lib,y=b.WordArray,x=b.Hasher,O=T.algo,m=[],e=[];(function(){function u(l){for(var h=g.sqrt(l),d=2;d<=h;d++)if(!(l%d))return!1;return!0}function r(l){return(l-(l|0))*4294967296|0}for(var i=2,n=0;n<64;)u(i)&&(n<8&&(m[n]=r(g.pow(i,1/2))),e[n]=r(g.pow(i,1/3)),n++),i++})();var f=[],a=O.SHA256=x.extend({_doReset:function(){this._hash=new y.init(m.slice(0))},_doProcessBlock:function(u,r){for(var i=this._hash.words,n=i[0],l=i[1],h=i[2],d=i[3],s=i[4],c=i[5],w=i[6],E=i[7],v=0;v<64;v++){if(v<16)f[v]=u[r+v]|0;else{var R=f[v-15],M=(R<<25|R>>>7)^(R<<14|R>>>18)^R>>>3,C=f[v-2],S=(C<<15|C>>>17)^(C<<13|C>>>19)^C>>>10;f[v]=M+f[v-7]+S+f[v-16]}var _=s&c^~s&w,A=n&l^n&h^l&h,U=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),L=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),N=E+L+_+e[v]+f[v],V=U+A;E=w,w=c,c=s,s=d+N|0,d=h,h=l,l=n,n=N+V|0}i[0]=i[0]+n|0,i[1]=i[1]+l|0,i[2]=i[2]+h|0,i[3]=i[3]+d|0,i[4]=i[4]+s|0,i[5]=i[5]+c|0,i[6]=i[6]+w|0,i[7]=i[7]+E|0},_doFinalize:function(){var u=this._data,r=u.words,i=this._nDataBytes*8,n=u.sigBytes*8;return r[n>>>5]|=128<<24-n%32,r[(n+64>>>9<<4)+14]=g.floor(i/4294967296),r[(n+64>>>9<<4)+15]=i,u.sigBytes=r.length*4,this._process(),this._hash},clone:function(){var u=x.clone.call(this);return u._hash=this._hash.clone(),u}});T.SHA256=x._createHelper(a),T.HmacSHA256=x._createHmacHelper(a)}(Math),P.SHA256})},lZu9:function(k,z,o){(function(P){P(o("VrN/"),o("1eCo"),o("8EBN"))})(function(P){"use strict";P.defineMode("markdown",function(g,T){var b=P.getMode(g,"text/html"),y=b.name=="null";function x(F){if(P.findModeByName){var I=P.findModeByName(F);I&&(F=I.mime||I.mimes[0])}var K=P.getMode(g,F);return K.name=="null"?null:K}T.highlightFormatting===void 0&&(T.highlightFormatting=!1),T.maxBlockquoteDepth===void 0&&(T.maxBlockquoteDepth=0),T.taskLists===void 0&&(T.taskLists=!1),T.strikethrough===void 0&&(T.strikethrough=!1),T.emoji===void 0&&(T.emoji=!1),T.fencedCodeBlockHighlighting===void 0&&(T.fencedCodeBlockHighlighting=!0),T.fencedCodeBlockDefaultMode===void 0&&(T.fencedCodeBlockDefaultMode="text/plain"),T.xml===void 0&&(T.xml=!0),T.tokenTypeOverrides===void 0&&(T.tokenTypeOverrides={});var O={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 m in O)O.hasOwnProperty(m)&&T.tokenTypeOverrides[m]&&(O[m]=T.tokenTypeOverrides[m]);var e=/^([*\-_])(?:\s*\1){2,}\s*$/,f=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,a=/^\[(x| )\](?=\s)/i,u=T.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,r=/^ {0,3}(?:\={1,}|-{2,})\s*$/,i=/^[^#!\[\]*_\\<>` "'(~:]+/,n=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,l=/^\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]/,d=" ";function s(F,I,K){return I.f=I.inline=K,K(F,I)}function c(F,I,K){return I.f=I.block=K,K(F,I)}function w(F){return!F||!/\S/.test(F.string)}function E(F){if(F.linkTitle=!1,F.linkHref=!1,F.linkText=!1,F.em=!1,F.strong=!1,F.strikethrough=!1,F.quote=0,F.indentedCode=!1,F.f==R){var I=y;if(!I){var K=P.innerMode(b,F.htmlState);I=K.mode.name=="xml"&&K.state.tagStart===null&&!K.state.context&&K.state.tokenize.isInText}I&&(F.f=_,F.block=v,F.htmlState=null)}return F.trailingSpace=0,F.trailingSpaceNewLine=!1,F.prevLine=F.thisLine,F.thisLine={stream:null},null}function v(F,I){var K=F.column()===I.indentation,ee=w(I.prevLine.stream),he=I.indentedCode,de=I.prevLine.hr,Se=I.list!==!1,Te=(I.listStack[I.listStack.length-1]||0)+3;I.indentedCode=!1;var ce=I.indentation;if(I.indentationDiff===null&&(I.indentationDiff=I.indentation,Se)){for(I.list=null;ce<I.listStack[I.listStack.length-1];)I.listStack.pop(),I.listStack.length?I.indentation=I.listStack[I.listStack.length-1]:I.list=!1;I.list!==!1&&(I.indentationDiff=ce-I.listStack[I.listStack.length-1])}var be=!ee&&!de&&!I.prevLine.header&&(!Se||!he)&&!I.prevLine.fencedCodeEnd,Ee=(I.list===!1||de||ee)&&I.indentation<=Te&&F.match(e),ue=null;if(I.indentationDiff>=4&&(he||I.prevLine.fencedCodeEnd||I.prevLine.header||ee))return F.skipToEnd(),I.indentedCode=!0,O.code;if(F.eatSpace())return null;if(K&&I.indentation<=Te&&(ue=F.match(u))&&ue[1].length<=6)return I.quote=0,I.header=ue[1].length,I.thisLine.header=!0,T.highlightFormatting&&(I.formatting="header"),I.f=I.inline,C(I);if(I.indentation<=Te&&F.eat(">"))return I.quote=K?1:I.quote+1,T.highlightFormatting&&(I.formatting="quote"),F.eatSpace(),C(I);if(!Ee&&!I.setext&&K&&I.indentation<=Te&&(ue=F.match(f))){var le=ue[1]?"ol":"ul";return I.indentation=ce+F.current().length,I.list=!0,I.quote=0,I.listStack.push(I.indentation),I.em=!1,I.strong=!1,I.code=!1,I.strikethrough=!1,T.taskLists&&F.match(a,!1)&&(I.taskList=!0),I.f=I.inline,T.highlightFormatting&&(I.formatting=["list","list-"+le]),C(I)}else{if(K&&I.indentation<=Te&&(ue=F.match(n,!0)))return I.quote=0,I.fencedEndRE=new RegExp(ue[1]+"+ *$"),I.localMode=T.fencedCodeBlockHighlighting&&x(ue[2]||T.fencedCodeBlockDefaultMode),I.localMode&&(I.localState=P.startState(I.localMode)),I.f=I.block=M,T.highlightFormatting&&(I.formatting="code-block"),I.code=-1,C(I);if(I.setext||(!be||!Se)&&!I.quote&&I.list===!1&&!I.code&&!Ee&&!l.test(F.string)&&(ue=F.lookAhead(1))&&(ue=ue.match(r)))return I.setext?(I.header=I.setext,I.setext=0,F.skipToEnd(),T.highlightFormatting&&(I.formatting="header")):(I.header=ue[0].charAt(0)=="="?1:2,I.setext=I.header),I.thisLine.header=!0,I.f=I.inline,C(I);if(Ee)return F.skipToEnd(),I.hr=!0,I.thisLine.hr=!0,O.hr;if(F.peek()==="[")return s(F,I,V)}return s(F,I,I.inline)}function R(F,I){var K=b.token(F,I.htmlState);if(!y){var ee=P.innerMode(b,I.htmlState);(ee.mode.name=="xml"&&ee.state.tagStart===null&&!ee.state.context&&ee.state.tokenize.isInText||I.md_inside&&F.current().indexOf(">")>-1)&&(I.f=_,I.block=v,I.htmlState=null)}return K}function M(F,I){var K=I.listStack[I.listStack.length-1]||0,ee=I.indentation<K,he=K+3;if(I.fencedEndRE&&I.indentation<=he&&(ee||F.match(I.fencedEndRE))){T.highlightFormatting&&(I.formatting="code-block");var de;return ee||(de=C(I)),I.localMode=I.localState=null,I.block=v,I.f=_,I.fencedEndRE=null,I.code=0,I.thisLine.fencedCodeEnd=!0,ee?c(F,I,I.block):de}else return I.localMode?I.localMode.token(F,I.localState):(F.skipToEnd(),O.code)}function C(F){var I=[];if(F.formatting){I.push(O.formatting),typeof F.formatting=="string"&&(F.formatting=[F.formatting]);for(var K=0;K<F.formatting.length;K++)I.push(O.formatting+"-"+F.formatting[K]),F.formatting[K]==="header"&&I.push(O.formatting+"-"+F.formatting[K]+"-"+F.header),F.formatting[K]==="quote"&&(!T.maxBlockquoteDepth||T.maxBlockquoteDepth>=F.quote?I.push(O.formatting+"-"+F.formatting[K]+"-"+F.quote):I.push("error"))}if(F.taskOpen)return I.push("meta"),I.length?I.join(" "):null;if(F.taskClosed)return I.push("property"),I.length?I.join(" "):null;if(F.linkHref?I.push(O.linkHref,"url"):(F.strong&&I.push(O.strong),F.em&&I.push(O.em),F.strikethrough&&I.push(O.strikethrough),F.emoji&&I.push(O.emoji),F.linkText&&I.push(O.linkText),F.code&&I.push(O.code),F.image&&I.push(O.image),F.imageAltText&&I.push(O.imageAltText,"link"),F.imageMarker&&I.push(O.imageMarker)),F.header&&I.push(O.header,O.header+"-"+F.header),F.quote&&(I.push(O.quote),!T.maxBlockquoteDepth||T.maxBlockquoteDepth>=F.quote?I.push(O.quote+"-"+F.quote):I.push(O.quote+"-"+T.maxBlockquoteDepth)),F.list!==!1){var ee=(F.listStack.length-1)%3;ee?ee===1?I.push(O.list2):I.push(O.list3):I.push(O.list1)}return F.trailingSpaceNewLine?I.push("trailing-space-new-line"):F.trailingSpace&&I.push("trailing-space-"+(F.trailingSpace%2?"a":"b")),I.length?I.join(" "):null}function S(F,I){return F.match(i,!0)?C(I):void 0}function _(F,I){var K=I.text(F,I);if(typeof K!="undefined")return K;if(I.list)return I.list=null,C(I);if(I.taskList){var ee=F.match(a,!0)[1]===" ";return ee?I.taskOpen=!0:I.taskClosed=!0,T.highlightFormatting&&(I.formatting="task"),I.taskList=!1,C(I)}if(I.taskOpen=!1,I.taskClosed=!1,I.header&&F.match(/^#+$/,!0))return T.highlightFormatting&&(I.formatting="header"),C(I);var he=F.next();if(I.linkTitle){I.linkTitle=!1;var de=he;he==="("&&(de=")"),de=(de+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Se="^\\s*(?:[^"+de+"\\\\]+|\\\\\\\\|\\\\.)"+de;if(F.match(new RegExp(Se),!0))return O.linkHref}if(he==="`"){var Te=I.formatting;T.highlightFormatting&&(I.formatting="code"),F.eatWhile("`");var ce=F.current().length;if(I.code==0&&(!I.quote||ce==1))return I.code=ce,C(I);if(ce==I.code){var be=C(I);return I.code=0,be}else return I.formatting=Te,C(I)}else if(I.code)return C(I);if(he==="\\"&&(F.next(),T.highlightFormatting)){var Ee=C(I),ue=O.formatting+"-escape";return Ee?Ee+" "+ue:ue}if(he==="!"&&F.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return I.imageMarker=!0,I.image=!0,T.highlightFormatting&&(I.formatting="image"),C(I);if(he==="["&&I.imageMarker&&F.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return I.imageMarker=!1,I.imageAltText=!0,T.highlightFormatting&&(I.formatting="image"),C(I);if(he==="]"&&I.imageAltText){T.highlightFormatting&&(I.formatting="image");var Ee=C(I);return I.imageAltText=!1,I.image=!1,I.inline=I.f=U,Ee}if(he==="["&&!I.image)return I.linkText&&F.match(/^.*?\]/)||(I.linkText=!0,T.highlightFormatting&&(I.formatting="link")),C(I);if(he==="]"&&I.linkText){T.highlightFormatting&&(I.formatting="link");var Ee=C(I);return I.linkText=!1,I.inline=I.f=F.match(/\(.*?\)| ?\[.*?\]/,!1)?U:_,Ee}if(he==="<"&&F.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){I.f=I.inline=A,T.highlightFormatting&&(I.formatting="link");var Ee=C(I);return Ee?Ee+=" ":Ee="",Ee+O.linkInline}if(he==="<"&&F.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){I.f=I.inline=A,T.highlightFormatting&&(I.formatting="link");var Ee=C(I);return Ee?Ee+=" ":Ee="",Ee+O.linkEmail}if(T.xml&&he==="<"&&F.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var le=F.string.indexOf(">",F.pos);if(le!=-1){var $=F.string.substring(F.start,le);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test($)&&(I.md_inside=!0)}return F.backUp(1),I.htmlState=P.startState(b),c(F,I,R)}if(T.xml&&he==="<"&&F.match(/^\/\w*?>/))return I.md_inside=!1,"tag";if(he==="*"||he==="_"){for(var me=1,re=F.pos==1?" ":F.string.charAt(F.pos-2);me<3&&F.eat(he);)me++;var ae=F.peek()||" ",Oe=!/\s/.test(ae)&&(!h.test(ae)||/\s/.test(re)||h.test(re)),se=!/\s/.test(re)&&(!h.test(re)||/\s/.test(ae)||h.test(ae)),te=null,Q=null;if(me%2&&(!I.em&&Oe&&(he==="*"||!se||h.test(re))?te=!0:I.em==he&&se&&(he==="*"||!Oe||h.test(ae))&&(te=!1)),me>1&&(!I.strong&&Oe&&(he==="*"||!se||h.test(re))?Q=!0:I.strong==he&&se&&(he==="*"||!Oe||h.test(ae))&&(Q=!1)),Q!=null||te!=null){T.highlightFormatting&&(I.formatting=te==null?"strong":Q==null?"em":"strong em"),te===!0&&(I.em=he),Q===!0&&(I.strong=he);var be=C(I);return te===!1&&(I.em=!1),Q===!1&&(I.strong=!1),be}}else if(he===" "&&(F.eat("*")||F.eat("_"))){if(F.peek()===" ")return C(I);F.backUp(1)}if(T.strikethrough){if(he==="~"&&F.eatWhile(he)){if(I.strikethrough){T.highlightFormatting&&(I.formatting="strikethrough");var be=C(I);return I.strikethrough=!1,be}else if(F.match(/^[^\s]/,!1))return I.strikethrough=!0,T.highlightFormatting&&(I.formatting="strikethrough"),C(I)}else if(he===" "&&F.match(/^~~/,!0)){if(F.peek()===" ")return C(I);F.backUp(2)}}if(T.emoji&&he===":"&&F.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){I.emoji=!0,T.highlightFormatting&&(I.formatting="emoji");var J=C(I);return I.emoji=!1,J}return he===" "&&(F.match(/^ +$/,!1)?I.trailingSpace++:I.trailingSpace&&(I.trailingSpaceNewLine=!0)),C(I)}function A(F,I){var K=F.next();if(K===">"){I.f=I.inline=_,T.highlightFormatting&&(I.formatting="link");var ee=C(I);return ee?ee+=" ":ee="",ee+O.linkInline}return F.match(/^[^>]+/,!0),O.linkInline}function U(F,I){if(F.eatSpace())return null;var K=F.next();return K==="("||K==="["?(I.f=I.inline=N(K==="("?")":"]"),T.highlightFormatting&&(I.formatting="link-string"),I.linkHref=!0,C(I)):"error"}var L={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function N(F){return function(I,K){var ee=I.next();if(ee===F){K.f=K.inline=_,T.highlightFormatting&&(K.formatting="link-string");var he=C(K);return K.linkHref=!1,he}return I.match(L[F]),K.linkHref=!0,C(K)}}function V(F,I){return F.match(/^([^\]\\]|\\.)*\]:/,!1)?(I.f=H,F.next(),T.highlightFormatting&&(I.formatting="link"),I.linkText=!0,C(I)):s(F,I,_)}function H(F,I){if(F.match(/^\]:/,!0)){I.f=I.inline=D,T.highlightFormatting&&(I.formatting="link");var K=C(I);return I.linkText=!1,K}return F.match(/^([^\]\\]|\\.)+/,!0),O.linkText}function D(F,I){return F.eatSpace()?null:(F.match(/^[^\s]+/,!0),F.peek()===void 0?I.linkTitle=!0:F.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),I.f=I.inline=_,O.linkHref+" url")}var W={startState:function(){return{f:v,prevLine:{stream:null},thisLine:{stream:null},block:v,htmlState:null,indentation:0,inline:_,text:S,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(F){return{f:F.f,prevLine:F.prevLine,thisLine:F.thisLine,block:F.block,htmlState:F.htmlState&&P.copyState(b,F.htmlState),indentation:F.indentation,localMode:F.localMode,localState:F.localMode?P.copyState(F.localMode,F.localState):null,inline:F.inline,text:F.text,formatting:!1,linkText:F.linkText,linkTitle:F.linkTitle,linkHref:F.linkHref,code:F.code,em:F.em,strong:F.strong,strikethrough:F.strikethrough,emoji:F.emoji,header:F.header,setext:F.setext,hr:F.hr,taskList:F.taskList,list:F.list,listStack:F.listStack.slice(0),quote:F.quote,indentedCode:F.indentedCode,trailingSpace:F.trailingSpace,trailingSpaceNewLine:F.trailingSpaceNewLine,md_inside:F.md_inside,fencedEndRE:F.fencedEndRE}},token:function(F,I){if(I.formatting=!1,F!=I.thisLine.stream){if(I.header=0,I.hr=!1,F.match(/^\s*$/,!0))return E(I),null;if(I.prevLine=I.thisLine,I.thisLine={stream:F},I.taskList=!1,I.trailingSpace=0,I.trailingSpaceNewLine=!1,!I.localState&&(I.f=I.block,I.f!=R)){var K=F.match(/^\s*/,!0)[0].replace(/\t/g,d).length;if(I.indentation=K,I.indentationDiff=null,K>0)return null}}return I.f(F,I)},innerMode:function(F){return F.block==R?{state:F.htmlState,mode:b}:F.localState?{state:F.localState,mode:F.localMode}:{state:F,mode:W}},indent:function(F,I,K){return F.block==R&&b.indent?b.indent(F.htmlState,I,K):F.localState&&F.localMode.indent?F.localMode.indent(F.localState,I,K):P.Pass},blankLine:E,getType:C,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return W},"xml"),P.defineMIME("text/markdown","markdown"),P.defineMIME("text/x-markdown","markdown")})},luix:function(k,z,o){k.exports=o.p+"static/tips.2ae2707a.svg"},lzim:function(k,z,o){"use strict";var P=o("E7E6"),g=o.n(P);o.d(z,"w",function(){return g.a});var T=o("/GNS"),b=o.n(T);o.d(z,"v",function(){return b.a});var y=o("FOrL"),x=o.n(y);o.d(z,"q",function(){return x.a});var O=o("HpTS"),m=o.n(O);o.d(z,"x",function(){return m.a});var e=o("tWlo"),f=o.n(e);o.d(z,"a",function(){return f.a});var a=o("7ZXX"),u=o.n(a);o.d(z,"l",function(){return u.a});var r=o("GABl"),i=o.n(r);o.d(z,"e",function(){return i.a});var n=o("onxn"),l=o.n(n);o.d(z,"n",function(){return l.a});var h=o("nKGa"),d=o.n(h);o.d(z,"m",function(){return d.a});var s=o("4qgm"),c=o.n(s);o.d(z,"z",function(){return c.a});var w=o("JeFH"),E=o.n(w);o.d(z,"b",function(){return E.a});var v=o("ji0R"),R=o.n(v);o.d(z,"i",function(){return R.a});var M=o("W6BS"),C=o.n(M);o.d(z,"A",function(){return C.a});var S=o("kPYp"),_=o.n(S);o.d(z,"B",function(){return _.a});var A=o("nukY"),U=o.n(A),L=o("4u4S"),N=o.n(L),V=o("yslc"),H=o.n(V),D=o("l2Kq"),W=o.n(D),F=o("RMFE"),I=o.n(F);o.d(z,"o",function(){return I.a});var K=o("TGq3"),ee=o.n(K),he=o("SMhR"),de=o.n(he);o.d(z,"y",function(){return de.a});var Se=o("8/bI"),Te=o.n(Se);o.d(z,"j",function(){return Te.a});var ce=o("JWDV"),be=o.n(ce),Ee=o("Xsq0"),ue=o.n(Ee);o.d(z,"p",function(){return ue.a});var le=o("Ohmc"),$=o.n(le);o.d(z,"c",function(){return $.a});var me=o("csWT"),re=o.n(me);o.d(z,"d",function(){return re.a});var ae=o("7v3h"),Oe=o.n(ae);o.d(z,"k",function(){return Oe.a});var se=o("cRFk"),te=o.n(se);o.d(z,"u",function(){return te.a});var Q=o("kPWJ"),J=o.n(Q);o.d(z,"t",function(){return J.a});var ve=o("qgvg"),_e=o.n(ve);o.d(z,"r",function(){return _e.a});var Ae=o("FPkq"),Qe=o.n(Ae);o.d(z,"s",function(){return Qe.a});var tt=o("A/g1"),dt=o.n(tt);o.d(z,"f",function(){return dt.a});var mt=o("Nmxd"),vt=o.n(mt);o.d(z,"g",function(){return vt.a});var yt=o("5D2P"),Ye=o.n(yt);o.d(z,"h",function(){return Ye.a});var Ue=o("djh8"),ft=o.n(Ue),jt=o("Jq4h"),bt=o.n(jt)},mxV5:function(module,exports,__webpack_require__){(function(global){var require,require;(function(k){if(!0)module.exports=k();else var z})(function(){var define,module,exports;return function(){function k(z,o,P){function g(y,x){if(!o[y]){if(!z[y]){var O=typeof require=="function"&&require;if(!x&&O)return require(y,!0);if(T)return T(y,!0);var m=new Error("Cannot find module '"+y+"'");throw m.code="MODULE_NOT_FOUND",m}var e=o[y]={exports:{}};z[y][0].call(e.exports,function(f){var a=z[y][1][f];return g(a||f)},e,e.exports,k,z,o,P)}return o[y].exports}for(var T=typeof require=="function"&&require,b=0;b<P.length;b++)g(P[b]);return g}return k}()({1:[function(k,z,o){"use strict";var P=k("./browser/client");P.Buffer=k("buffer").Buffer,P.urllib=k("../shims/xhr"),P.version=k("./browser/version").version,z.exports=P},{"../shims/xhr":291,"./browser/client":2,"./browser/version":5,buffer:73}],2:[function(k,z,o){(function(P,g){"use strict";var T=k("babel-runtime/core-js/promise"),b=e(T),y=k("babel-runtime/regenerator"),x=e(y),O=k("babel-runtime/core-js/object/assign"),m=e(O);function e(V){return V&&V.__esModule?V:{default:V}}var f=k("debug")("ali-oss"),a=k("copy-to"),u=k("xml2js"),r=k("agentkeepalive"),i=k("merge-descriptors"),n=k("url"),l=k("is-type-of"),h=k("platform"),d=k("utility"),s=k("urllib"),c=k("./version"),w=k("bowser"),E=k("../common/signUtils"),v=k("../common/utils/isIP"),R=v.isIP,M=k("../common/client/initOptions"),C=k("../common/utils/createRequest"),S=C.createRequest,_=new r;function A(){var V=h.name,H=h.version;V&&V.toLowerCase&&V.toLowerCase()==="ie"&&H.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function U(){return location&&location.protocol==="https:"}function L(V,H){if(A(),!(this instanceof L))return new L(V,H);V&&V.inited?this.options=V:this.options=L.initOptions(V),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=s,this.agent=this.options.agent||_),this.ctx=H,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}z.exports=L,L.initOptions=function(H){H.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var D=(0,m.default)({secure:U(),useFetch:!1},H);return M(D)};var N=L.prototype;N.debug=f,i(N,k("./object")),i(N,k("../common/bucket/getBucketWebsite")),i(N,k("../common/bucket/putBucketWebsite")),i(N,k("../common/bucket/deleteBucketWebsite")),i(N,k("../common/bucket/getBucketLifecycle")),i(N,k("../common/bucket/putBucketLifecycle")),i(N,k("../common/bucket/deleteBucketLifecycle")),i(N,k("../common/bucket/putBucketVersioning")),i(N,k("../common/bucket/getBucketVersioning")),i(N,k("./managed-upload")),i(N,k("../common/multipart")),i(N,k("../common/parallel")),N.signature=function(H){return this.debug("authorization stringToSign: %s",H,"info"),E.computeSignature(this.options.accessKeySecret,H)},N.authorization=function(H,D,W,F){var I=E.buildCanonicalString(H.toUpperCase(),D,{headers:F,parameters:W});return E.authorization(this.options.accessKeyId,this.options.accessKeySecret,I)},N.request=function(H){var D,W,F,I,K,ee;return x.default.async(function(de){for(;;)switch(de.prev=de.next){case 0:return D=S.call(this,H),this.options.useFetch||(D.params.mode="disable-fetch"),W=void 0,F=void 0,I=!!H.stream,de.prev=5,de.next=8,x.default.awrap(this.urllib.request(D.url,D.params));case 8:W=de.sent,this.debug("response %s %s, got %s, headers: %j",H.method,D.url,W.status,W.headers,"info"),de.next=15;break;case 12:de.prev=12,de.t0=de.catch(5),F=de.t0;case 15:if(K=void 0,!(W&&H.successStatuses&&H.successStatuses.indexOf(W.status)===-1)){de.next=28;break}return de.next=19,x.default.awrap(this.requestError(W));case 19:if(K=de.sent,!(K.code==="RequestTimeTooSkewed"&&!I)){de.next=25;break}return this.options.amendTimeSkewed=+new Date(K.serverTime)-new Date,de.next=24,x.default.awrap(this.request(H));case 24:return de.abrupt("return",de.sent);case 25:K.params=H,de.next=32;break;case 28:if(!F){de.next=32;break}return de.next=31,x.default.awrap(this.requestError(F));case 31:K=de.sent;case 32:if(!K){de.next=34;break}throw K;case 34:if(!H.xmlResponse){de.next=39;break}return de.next=37,x.default.awrap(this.parseXML(W.data));case 37:ee=de.sent,W.data=ee;case 39:return de.abrupt("return",W);case 40:case"end":return de.stop()}},null,this,[[5,12]])},N._getResource=function(H){var D="/";return H.bucket&&(D+=H.bucket+"/"),H.object&&(D+=H.object),D},N._isIP=R,N._escape=function(H){return d.encodeURIComponent(H).replace(/%2F/g,"/")},N._getReqUrl=function(H){var D={};a(this.options.endpoint).to(D);var W=this._isIP(D.hostname),F=this.options.cname;H.bucket&&!F&&!W&&(D.host=H.bucket+"."+D.host);var I="/";H.bucket&&W&&(I+=H.bucket+"/"),H.object&&(I+=this._escape(H.object).replace(/\+/g,"%2B")),D.pathname=I;var K={};if(H.query&&i(K,H.query),H.subres){var ee={};l.string(H.subres)?ee[H.subres]="":l.array(H.subres)?H.subres.forEach(function(he){ee[he]=""}):ee=H.subres,i(K,ee)}return D.query=K,n.format(D)},N._getUserAgent=function(){var H=g&&g.browser?"js":"nodejs",D="aliyun-sdk-"+H+"/"+c.version,W=h.description;return!W&&g&&(W="Node.js "+g.version.slice(1)+" on "+g.platform+" "+g.arch),this._checkUserAgent(D+" "+W)},N._checkUserAgent=function(H){var D=H.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return D},N.checkBrowserAndVersion=function(H,D){return w.name===H&&w.version.split(".")[0]===D},N.parseXML=function(H){return new b.default(function(D,W){P.isBuffer(H)&&(H=H.toString()),u.parseString(H,{explicitRoot:!1,explicitArray:!1},function(F,I){F?W(F):D(I)})})},N.requestError=function(H){var D,W,F,I;return x.default.async(function(ee){for(;;)switch(ee.prev=ee.next){case 0:if(D=null,!(!H.data||!H.data.length)){ee.next=5;break}H.status===-1||H.status===-2?(D=new Error(H.message),D.name=H.name,D.status=H.status,D.code=H.name):(H.status===404?(D=new Error("Object not exists"),D.name="NoSuchKeyError",D.status=404,D.code="NoSuchKey"):H.status===412?(D=new Error("Pre condition failed"),D.name="PreconditionFailedError",D.status=412,D.code="PreconditionFailed"):(D=new Error("Unknow error, status: "+H.status),D.name="UnknowError",D.status=H.status),D.requestId=H.headers["x-oss-request-id"],D.host=""),ee.next=33;break;case 5:return W=String(H.data),this.debug("request response error data: %s",W,"error"),F=void 0,ee.prev=8,ee.next=11,x.default.awrap(this.parseXML(W));case 11:if(ee.t0=ee.sent,ee.t0){ee.next=14;break}ee.t0={};case 14:F=ee.t0,ee.next=24;break;case 17:return ee.prev=17,ee.t1=ee.catch(8),this.debug(W,"error"),ee.t1.message+=`
|
|
|
raw xml: `+W,ee.t1.status=H.status,ee.t1.requestId=H.headers["x-oss-request-id"],ee.abrupt("return",ee.t1);case 24:I=F.Message||"unknow request error, status: "+H.status,F.Condition&&(I+=" (condition: "+F.Condition+")"),D=new Error(I),D.name=F.Code?F.Code+"Error":"UnknowError",D.status=H.status,D.code=F.Code,D.requestId=F.RequestId,D.hostId=F.HostId,D.serverTime=F.ServerTime;case 33:return this.debug("generate error %j",D,"error"),ee.abrupt("return",D);case 35:case"end":return ee.stop()}},null,this,[[8,17]])}}).call(this,{isBuffer:k("../../node_modules/is-buffer/index.js")},k("_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(k,z,o){(function(P){"use strict";var g=k("babel-runtime/core-js/array/from"),T=m(g),b=k("babel-runtime/core-js/promise"),y=m(b),x=k("babel-runtime/regenerator"),O=m(x);function m(E){return E&&E.__esModule?E:{default:E}}var e=k("is-type-of"),f=k("util"),a=k("path"),u=k("mime"),r=k("copy-to"),i=k("../common/utils/isBlob"),n=i.isBlob,l=k("../common/utils/isFile"),h=l.isFile,d=o;d.multipartUpload=function(v,R,M){var C,S,_,A,U,L,N,V,H;return O.default.async(function(W){for(;;)switch(W.prev=W.next){case 0:if(this.resetCancelFlag(),M=M||{},!(M.checkpoint&&M.checkpoint.uploadId)){W.next=6;break}return W.next=5,O.default.awrap(this._resumeMultipart(M.checkpoint,M));case 5:return W.abrupt("return",W.sent);case 6:return C=100*1024,M.mime||(h(R)?M.mime=u.getType(a.extname(R.name)):n(R)?M.mime=R.type:M.mime=u.getType(a.extname(R))),M.headers=M.headers||{},this._convertMetaToHeaders(M.meta,M.headers),W.next=12,O.default.awrap(this._getFileSize(R));case 12:if(S=W.sent,!(S<C)){W.next=25;break}return _=this._createStream(R,0,S),M.contentLength=S,W.next=18,O.default.awrap(this.putStream(v,_,M));case 18:if(A=W.sent,!(M&&M.progress)){W.next=22;break}return W.next=22,O.default.awrap(M.progress(1));case 22:return U={res:A.res,bucket:this.options.bucket,name:v,etag:A.res.headers.etag},(M.headers&&M.headers["x-oss-callback"]||M.callback)&&(U.data=A.data),W.abrupt("return",U);case 25:if(!(M.partSize&&!(parseInt(M.partSize,10)===M.partSize))){W.next=27;break}throw new Error("partSize must be int number");case 27:if(!(M.partSize&&M.partSize<C)){W.next=29;break}throw new Error("partSize must not be smaller than "+C);case 29:return W.next=31,O.default.awrap(this.initMultipartUpload(v,M));case 31:if(L=W.sent,N=L.uploadId,V=this._getPartSize(S,M.partSize),H={file:R,name:v,fileSize:S,partSize:V,uploadId:N,doneParts:[]},!(M&&M.progress)){W.next=38;break}return W.next=38,O.default.awrap(M.progress(0,H,L.res));case 38:return W.next=40,O.default.awrap(this._resumeMultipart(H,M));case 40:return W.abrupt("return",W.sent);case 41:case"end":return W.stop()}},null,this)},d._resumeMultipart=function(v,R){var M,C,S,_,A,U,L,N,V,H,D,W,F,I,K,ee,he,de;return O.default.async(function(Te){for(;;)switch(Te.prev=Te.next){case 0:if(M=this,!this.isCancel()){Te.next=3;break}throw this._makeCancelEvent();case 3:return C=v.file,S=v.fileSize,_=v.partSize,A=v.uploadId,U=v.doneParts,L=v.name,N=[],U.length>0&&r(U).to(N),V=this._divideParts(S,_),H=V.length,D=!1,W=function(be,Ee){var ue=this;return new y.default(function($,me){var re,ae,Oe,se;return O.default.async(function(Q){for(;;)switch(Q.prev=Q.next){case 0:if(Q.prev=0,be.isCancel()){Q.next=18;break}return re=V[Ee-1],ae={stream:be._createStream(C,re.start,re.end),size:re.end-re.start},Q.next=6,O.default.awrap(be._uploadPart(L,A,Ee,ae));case 6:if(Oe=Q.sent,!(!be.isCancel()&&!D)){Q.next=15;break}if(v.doneParts.push({number:Ee,etag:Oe.res.headers.etag}),!R.progress){Q.next=12;break}return Q.next=12,O.default.awrap(R.progress(U.length/H,v,Oe.res));case 12:$({number:Ee,etag:Oe.res.headers.etag}),Q.next=16;break;case 15:$();case 16:Q.next=19;break;case 18:$();case 19:Q.next=30;break;case 21:Q.prev=21,Q.t0=Q.catch(0),se=new Error,se.name=Q.t0.name,se.message=Q.t0.message,se.stack=Q.t0.stack,se.partNum=Ee,r(Q.t0).to(se),me(se);case 30:case"end":return Q.stop()}},null,ue,[[0,21]])})},F=(0,T.default)(new Array(H),function(ce,be){return be+1}),I=N.map(function(ce){return ce.number}),K=F.filter(function(ce){return I.indexOf(ce)<0}),ee=5,he=R.parallel||ee,Te.next=17,O.default.awrap(this._parallel(K,he,function(ce){return new y.default(function(be,Ee){W(M,ce).then(function(ue){ue&&N.push(ue),be()}).catch(function(ue){Ee(ue)})})}));case 17:if(de=Te.sent,D=!0,!this.isCancel()){Te.next=22;break}throw W=null,this._makeCancelEvent();case 22:if(!(de&&de.length>0)){Te.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 Te.next=27,O.default.awrap(this.completeMultipartUpload(L,A,N,R));case 27:return Te.abrupt("return",Te.sent);case 28:case"end":return Te.stop()}},null,this)},d._getFileSize=function(v){return O.default.async(function(M){for(;;)switch(M.prev=M.next){case 0:if(!e.buffer(v)){M.next=4;break}return M.abrupt("return",v.length);case 4:if(!(n(v)||h(v))){M.next=6;break}return M.abrupt("return",v.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return M.stop()}},null,this)};var s=k("stream"),c=s.Readable;function w(E,v){if(!(this instanceof w))return new w(E,v);c.call(this,v),this.file=E,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}f.inherits(w,c),w.prototype.readFileAndPush=function(v){if(this.fileBuffer)for(var R=!0;R&&this.fileBuffer&&this.start<this.fileBuffer.length;){var M=this.start,C=M+v;C=C>this.fileBuffer.length?this.fileBuffer.length:C,this.start=C,R=this.push(this.fileBuffer.slice(M,C))}},w.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 R=16*1024;v=v||R;var M=this;this.reader.onload=function(S){M.fileBuffer=P.from(new Uint8Array(S.target.result)),M.file=null,M.readFileAndPush(v)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(v)},d._createStream=function(v,R,M){if(n(v)||h(v))return new w(v.slice(R,M));throw new Error("_createStream requires File/Blob.")},d._getPartSize=function(v,R){var M=10*1e3,C=1024*1024;return R?Math.max(Math.ceil(v/M),R):C},d._divideParts=function(v,R){for(var M=Math.ceil(v/R),C=[],S=0;S<M;S++){var _=R*S,A=Math.min(_+R,v);C.push({start:_,end:A})}return C}}).call(this,k("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(k,z,o){"use strict";var P=k("babel-runtime/core-js/promise"),g=e(P),T=k("babel-runtime/core-js/object/keys"),b=e(T),y=k("babel-runtime/core-js/object/assign"),x=e(y),O=k("babel-runtime/regenerator"),m=e(O);function e(M){return M&&M.__esModule?M:{default:M}}var f=k("utility"),a=k("fs"),u=k("is-type-of"),r=k("url"),i=k("copy-to"),n=k("path"),l=k("mime"),h=k("../common/callback"),d=k("../common/signUtils"),s=k("merge-descriptors"),c=k("../common/utils/isBlob"),w=c.isBlob,E=k("../common/utils/isFile"),v=E.isFile,R=o;R.append=function(C,S,_){var A;return m.default.async(function(L){for(;;)switch(L.prev=L.next){case 0:return _=_||{},_.position===void 0&&(_.position="0"),_.subres={append:"",position:_.position},_.method="POST",L.next=6,m.default.awrap(this.put(C,S,_));case 6:return A=L.sent,A.nextAppendPosition=A.res.headers["x-oss-next-append-position"],L.abrupt("return",A);case 9:case"end":return L.stop()}},null,this)},R.put=function(C,S,_){var A,U,L,N,V,H,D;return m.default.async(function(F){for(;;)switch(F.prev=F.next){case 0:if(A=void 0,_=_||{},C=this._objectName(C),!u.buffer(S)){F.next=7;break}A=S,F.next=33;break;case 7:if(!(w(S)||v(S))){F.next=32;break}return _.mime||(v(S)?_.mime=l.getType(n.extname(S.name)):_.mime=S.type),U=this._createStream(S,0,S.size),F.next=12,m.default.awrap(this._getFileSize(S));case 12:return _.contentLength=F.sent,F.prev=13,F.next=16,m.default.awrap(this.putStream(C,U,_));case 16:return L=F.sent,F.abrupt("return",L);case 20:if(F.prev=20,F.t0=F.catch(13),!(F.t0.code==="RequestTimeTooSkewed")){F.next=29;break}return this.options.amendTimeSkewed=+new Date(F.t0.serverTime)-new Date,F.next=26,m.default.awrap(this.put(C,S,_));case 26:return F.abrupt("return",F.sent);case 29:throw F.t0;case 30:F.next=33;break;case 32:throw new TypeError("Must provide Buffer/Blob/File for put.");case 33:return _.headers=_.headers||{},this._convertMetaToHeaders(_.meta,_.headers),N=_.method||"PUT",V=this._objectRequestParams(N,C,_),h.encodeCallback(V,_),V.mime=_.mime,V.content=A,V.successStatuses=[200],F.next=43,m.default.awrap(this.request(V));case 43:return H=F.sent,D={name:C,url:this._objectUrl(C),res:H.res},V.headers&&V.headers["x-oss-callback"]&&(D.data=JSON.parse(H.data.toString())),F.abrupt("return",D);case 47:case"end":return F.stop()}},null,this,[[13,20]])},R.putStream=function(C,S,_){var A,U,L,N;return m.default.async(function(H){for(;;)switch(H.prev=H.next){case 0:return _=_||{},_.headers=_.headers||{},C=this._objectName(C),_.contentLength?_.headers["Content-Length"]=_.contentLength:_.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(_.meta,_.headers),A=_.method||"PUT",U=this._objectRequestParams(A,C,_),h.encodeCallback(U,_),U.mime=_.mime,U.stream=S,U.successStatuses=[200],H.next=13,m.default.awrap(this.request(U));case 13:return L=H.sent,N={name:C,url:this._objectUrl(C),res:L.res},U.headers&&U.headers["x-oss-callback"]&&(N.data=JSON.parse(L.data.toString())),H.abrupt("return",N);case 17:case"end":return H.stop()}},null,this)},s(R,k("../common/object/copyObject")),s(R,k("../common/object/getObjectTagging")),s(R,k("../common/object/putObjectTagging")),s(R,k("../common/object/deleteObjectTagging")),s(R,k("../common/image")),s(R,k("../common/object/getBucketVersions")),s(R,k("../common/object/getACL")),s(R,k("../common/object/putACL")),s(R,k("../common/object/head")),s(R,k("../common/object/delete")),s(R,k("../common/object/get")),s(R,k("../common/object/putSymlink")),s(R,k("../common/object/getSymlink")),s(R,k("../common/object/deleteMulti")),s(R,k("../common/object/getObjectMeta")),R.putMeta=function(C,S,_){var A;return m.default.async(function(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,m.default.awrap(this.copy(C,C,{meta:S||{},timeout:_&&_.timeout,ctx:_&&_.ctx}));case 2:return A=L.sent,L.abrupt("return",A);case 4:case"end":return L.stop()}},null,this)},R.list=function(C,S){var _,A,U,L,N;return m.default.async(function(H){for(;;)switch(H.prev=H.next){case 0:return _=this._objectRequestParams("GET","",S),_.query=C,_.xmlResponse=!0,_.successStatuses=[200],H.next=6,m.default.awrap(this.request(_));case 6:return A=H.sent,U=A.data.Contents,L=this,U&&(Array.isArray(U)||(U=[U]),U=U.map(function(D){return{name:D.Key,url:L._objectUrl(D.Key),lastModified:D.LastModified,etag:D.ETag,type:D.Type,size:Number(D.Size),storageClass:D.StorageClass,owner:{id:D.Owner.ID,displayName:D.Owner.DisplayName}}})),N=A.data.CommonPrefixes||null,N&&(Array.isArray(N)||(N=[N]),N=N.map(function(D){return D.Prefix})),H.abrupt("return",{res:A.res,objects:U,prefixes:N,nextMarker:A.data.NextMarker||null,isTruncated:A.data.IsTruncated==="true"});case 13:case"end":return H.stop()}},null,this)},R.restore=function(C,S){var _,A;return m.default.async(function(L){for(;;)switch(L.prev=L.next){case 0:return S=S||{},S.subres=(0,x.default)({restore:""},S.subres),S.versionId&&(S.subres.versionId=S.versionId),_=this._objectRequestParams("POST",C,S),_.successStatuses=[202],L.next=7,m.default.awrap(this.request(_));case 7:return A=L.sent,L.abrupt("return",{res:A.res});case 9:case"end":return L.stop()}},null,this)},R.signatureUrl=function(C,S){S=S||{},C=this._objectName(C),S.method=S.method||"GET";var _=f.timestamp()+(S.expires||1800),A={bucket:this.options.bucket,object:C},U=this._getResource(A);this.options.stsToken&&(S["security-token"]=this.options.stsToken);var L=d._signatureForURL(this.options.accessKeySecret,S,U,_),N=r.parse(this._getReqUrl(A));return N.query={OSSAccessKeyId:this.options.accessKeyId,Expires:_,Signature:L.Signature},i(L.subResource).to(N.query),N.format()},R.getObjectUrl=function(C,S){return S?S[S.length-1]!=="/"&&(S+="/"):S=this.options.endpoint.format(),S+this._escape(this._objectName(C))},R._objectUrl=function(C){return this._getReqUrl({bucket:this.options.bucket,object:C})},R.generateObjectUrl=function(M,C){if(C)C[C.length-1]!=="/"&&(C+="/");else{C=this.options.endpoint.format();var S=r.parse(C),_=this.options.bucket;S.hostname=_+"."+S.hostname,S.host=_+"."+S.host,C=S.format()}return C+this._escape(this._objectName(M))},R._objectRequestParams=function(C,S,_){if(!this.options.bucket)throw new Error("Please create a bucket first");_=_||{},S=this._objectName(S);var A={object:S,bucket:this.options.bucket,method:C,subres:_&&_.subres,timeout:_&&_.timeout,ctx:_&&_.ctx};return _.headers&&(A.headers={},i(_.headers).to(A.headers)),A},R._objectName=function(C){return C.replace(/^\/+/,"")},R._convertMetaToHeaders=function(C,S){if(!C)return;(0,b.default)(C).forEach(function(_){S["x-oss-meta-"+_]=C[_]})},R._deleteFileSafe=function(C){var S=this;return new g.default(function(_){a.exists(C,function(A){A?a.unlink(C,function(U){U&&S.debug("unlink %j error: %s",C,U,"error"),_()}):_()})})}},{"../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(k,z,o){"use strict";o.version="6.10.0"},{}],6:[function(k,z,o){"use strict";var P=k("babel-runtime/regenerator"),g=T(P);function T(O){return O&&O.__esModule?O:{default:O}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,x=o;x.deleteBucketLifecycle=function(m,e){var f,a;return g.default.async(function(r){for(;;)switch(r.prev=r.next){case 0:return y(m),f=this._bucketRequestParams("DELETE",m,"lifecycle",e),f.successStatuses=[204],r.next=5,g.default.awrap(this.request(f));case 5:return a=r.sent,r.abrupt("return",{res:a.res});case 7:case"end":return r.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],7:[function(k,z,o){"use strict";var P=k("babel-runtime/regenerator"),g=T(P);function T(O){return O&&O.__esModule?O:{default:O}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,x=o;x.deleteBucketWebsite=function(m,e){var f,a;return g.default.async(function(r){for(;;)switch(r.prev=r.next){case 0:return y(m),f=this._bucketRequestParams("DELETE",m,"website",e),f.successStatuses=[204],r.next=5,g.default.awrap(this.request(f));case 5:return a=r.sent,r.abrupt("return",{res:a.res});case 7:case"end":return r.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],8:[function(k,z,o){"use strict";var P=k("babel-runtime/regenerator"),g=T(P);function T(a){return a&&a.__esModule?a:{default:a}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,x=k("../utils/isArray"),O=x.isArray,m=k("../utils/formatObjKey"),e=m.formatObjKey,f=o;f.getBucketLifecycle=function(u,r){var i,n,l;return g.default.async(function(d){for(;;)switch(d.prev=d.next){case 0:return y(u),i=this._bucketRequestParams("GET",u,"lifecycle",r),i.successStatuses=[200],i.xmlResponse=!0,d.next=6,g.default.awrap(this.request(i));case 6:return n=d.sent,l=n.data.Rule||null,l&&(O(l)||(l=[l]),l=l.map(function(s){return s.ID&&(s.id=s.ID,delete s.ID),s.Tag&&!O(s.Tag)&&(s.Tag=[s.Tag]),e(s,"firstLowerCase")})),d.abrupt("return",{rules:l,res:n.res});case 10:case"end":return d.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/formatObjKey":40,"../utils/isArray":42,"babel-runtime/regenerator":68}],9:[function(k,z,o){"use strict";var P=k("babel-runtime/regenerator"),g=T(P);function T(O){return O&&O.__esModule?O:{default:O}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,x=o;x.getBucketVersioning=function(m,e){var f,a,u;return g.default.async(function(i){for(;;)switch(i.prev=i.next){case 0:return y(m),f=this._bucketRequestParams("GET",m,"versioning",e),f.xmlResponse=!0,f.successStatuses=[200],i.next=6,g.default.awrap(this.request(f));case 6:return a=i.sent,u=a.data.Status,i.abrupt("return",{status:a.status,versionStatus:u,res:a.res});case 9:case"end":return i.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],10:[function(k,z,o){"use strict";var P=k("babel-runtime/regenerator"),g=T(P);function T(e){return e&&e.__esModule?e:{default:e}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,x=k("../utils/isObject"),O=x.isObject,m=o;m.getBucketWebsite=function(f,a){var u,r,i;return g.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return y(f),u=this._bucketRequestParams("GET",f,"website",a),u.successStatuses=[200],u.xmlResponse=!0,l.next=6,g.default.awrap(this.request(u));case 6:return r=l.sent,i=[],r.data.RoutingRules&&r.data.RoutingRules.RoutingRule&&(O(r.data.RoutingRules.RoutingRule)?i=[r.data.RoutingRules.RoutingRule]:i=r.data.RoutingRules.RoutingRule),l.abrupt("return",{index:r.data.IndexDocument&&r.data.IndexDocument.Suffix||"",supportSubDir:r.data.IndexDocument&&r.data.IndexDocument.SupportSubDir||"false",type:r.data.IndexDocument&&r.data.IndexDocument.Type,routingRules:i,error:r.data.ErrorDocument&&r.data.ErrorDocument.Key||null,res:r.res});case 10:case"end":return l.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isObject":46,"babel-runtime/regenerator":68}],11:[function(k,z,o){"use strict";var P=k("babel-runtime/regenerator"),g=T(P);function T(v){return v&&v.__esModule?v:{default:v}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,x=k("../utils/isArray"),O=x.isArray,m=k("../utils/deepCopy"),e=m.deepCopy,f=k("../utils/isObject"),a=f.isObject,u=k("../utils/obj2xml"),r=u.obj2xml,i=k("../utils/checkObjectTag"),n=i.checkObjectTag,l=k("../utils/getStrBytesCount"),h=l.getStrBytesCount,d=o;d.putBucketLifecycle=function(R,M,C){var S,_,A,U,L;return g.default.async(function(V){for(;;)switch(V.prev=V.next){case 0:if(y(R),O(M)){V.next=3;break}throw new Error("rules must be Array");case 3:return S=this._bucketRequestParams("PUT",R,"lifecycle",C),_=[],A={LifecycleConfiguration:{Rule:_}},M.forEach(function(H){s(H),E(H),H.id&&(H.ID=H.id,delete H.id),_.push(H)}),U=r(A,{headers:!0,firstUpperCase:!0}),S.content=U,S.mime="xml",S.successStatuses=[200],V.next=13,g.default.awrap(this.request(S));case 13:return L=V.sent,V.abrupt("return",{res:L.res});case 15:case"end":return V.stop()}},null,this)};function s(v){v.days&&(v.expiration={days:v.days}),v.date&&(v.expiration={createdBeforeDate:v.date})}function c(v,R){var M=v.days,C=v.createdBeforeDate;if(!M&&!C)throw new Error(R+" must includes days or createdBeforeDate");if(M&&!/^[1-9][0-9]*$/.test(M))throw new Error("days must be a positive integer");if(C&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(C))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function w(v){if(!O(v)&&!a(v))throw new Error("tag must be Object or Array");v=a(v)?[v]:v;var R={},M=e(v);M.forEach(function(C){R[C.key]=C.value}),n(R)}function E(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");c(v.transition,"Transition")}if(v.expiration){if(!v.expiration.expiredObjectDeleteMarker)c(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&&c(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");w(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(k,z,o){"use strict";var P=k("babel-runtime/regenerator"),g=T(P);function T(e){return e&&e.__esModule?e:{default:e}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,x=k("../utils/obj2xml"),O=x.obj2xml,m=o;m.putBucketVersioning=function(f,a){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,i,n;return g.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:if(y(f),["Enabled","Suspended"].includes(a)){h.next=3;break}throw new Error("status must be Enabled or Suspended");case 3:return r=this._bucketRequestParams("PUT",f,"versioning",u),i={VersioningConfiguration:{Status:a}},r.mime="xml",r.content=O(i,{headers:!0}),h.next=9,g.default.awrap(this.request(r));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(k,z,o){"use strict";var P=k("babel-runtime/regenerator"),g=T(P);function T(a){return a&&a.__esModule?a:{default:a}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,x=k("../utils/obj2xml"),O=x.obj2xml,m=k("../utils/isArray"),e=m.isArray,f=o;f.putBucketWebsite=function(u){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments[2],n,l,h,d,s;return g.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:if(y(u),n=this._bucketRequestParams("PUT",u,"website",i),l={Suffix:r.index||"index.html"},h={IndexDocument:l},d={WebsiteConfiguration:h},r.supportSubDir&&(l.SupportSubDir=r.supportSubDir),r.type&&(l.Type=r.type),r.error&&(h.ErrorDocument={Key:r.error}),!(r.routingRules!==void 0)){w.next=12;break}if(e(r.routingRules)){w.next=11;break}throw new Error("RoutingRules must be Array");case 11:h.RoutingRules={RoutingRule:r.routingRules};case 12:return d=O(d),n.content=d,n.mime="xml",n.successStatuses=[200],w.next=18,g.default.awrap(this.request(n));case 18:return s=w.sent,w.abrupt("return",{res:s.res});case 20:case"end":return w.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isArray":42,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],14:[function(k,z,o){(function(P){"use strict";var g=k("babel-runtime/core-js/object/keys"),T=x(g),b=k("babel-runtime/core-js/json/stringify"),y=x(b);function x(O){return O&&O.__esModule?O:{default:O}}o.encodeCallback=function(m,e){if(m.headers=m.headers||{},!Object.prototype.hasOwnProperty.call(m.headers,"x-oss-callback")&&e.callback){var f={callbackUrl:encodeURI(e.callback.url),callbackBody:e.callback.body};e.callback.host&&(f.callbackHost=e.callback.host),e.callback.contentType&&(f.callbackBodyType=e.callback.contentType);var a=P.from((0,y.default)(f)).toString("base64");if(m.headers["x-oss-callback"]=a,e.callback.customValue){var u={};(0,T.default)(e.callback.customValue).forEach(function(r){u["x:"+r]=e.callback.customValue[r]}),m.headers["x-oss-callback-var"]=P.from((0,y.default)(u)).toString("base64")}}}}).call(this,k("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73}],15:[function(k,z,o){"use strict";var P=k("babel-runtime/core-js/object/assign"),g=T(P);function T(f){return f&&f.__esModule?f:{default:f}}var b=k("humanize-ms"),y=k("url"),x=k("../utils/checkBucketName"),O=x.checkBucketName;function m(f,a){var u=y.parse(f);if(u.protocol||(u=y.parse("http"+(a?"s":"")+"://"+f)),u.protocol!=="http:"&&u.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return u}function e(f,a,u){var r=u?"https://":"http://",i=a?"-internal.aliyuncs.com":".aliyuncs.com",n="vpc100-oss-cn-";return f.substr(0,n.length)===n&&(i=".aliyuncs.com"),y.parse(r+f+i)}z.exports=function(f){if(!f||!f.accessKeyId||!f.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");f.bucket&&O(f.bucket);var a=(0,g.default)({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1},f);if(a.accessKeyId=a.accessKeyId.trim(),a.accessKeySecret=a.accessKeySecret.trim(),a.timeout&&(a.timeout=b(a.timeout)),a.endpoint)a.endpoint=m(a.endpoint,a.secure);else if(a.region)a.endpoint=e(a.region,a.internal,a.secure);else throw new Error("require options.endpoint or options.region");return a.inited=!0,a}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/assign":54,"humanize-ms":194,url:238}],16:[function(k,z,o){"use strict";var P=k("merge-descriptors"),g=o;P(g,k("./processObjectSave"))},{"./processObjectSave":17,"merge-descriptors":200}],17:[function(k,z,o){"use strict";var P=k("babel-runtime/regenerator"),g=T(P);function T(a){return a&&a.__esModule?a:{default:a}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,x=k("querystring"),O=k("js-base64"),m=O.Base64.encode,e=o;e.processObjectSave=function(u,r,i,n){var l,h,d,s;return g.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:return f(u,"sourceObject"),f(r,"targetObject"),f(i,"process"),r=this._objectName(r),n&&y(n),l=this._objectRequestParams("POST",u,{subres:"x-oss-process"}),h=n?",b_"+m(n):"",r=m(r),d={"x-oss-process":i+"|sys/saveas,o_"+r+h},l.content=x.stringify(d),w.next=12,g.default.awrap(this.request(l));case 12:return s=w.sent,w.abrupt("return",{res:s.res,status:s.res.status});case 14:case"end":return w.stop()}},null,this)};function f(a,u){if(!a)throw new Error(u+" is required");if(typeof a!="string")throw new Error(u+" must be String")}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68,"js-base64":199,querystring:212}],18:[function(k,z,o){"use strict";var P=k("babel-runtime/regenerator"),g=T(P);function T(e){return e&&e.__esModule?e:{default:e}}var b=k("copy-to"),y=k("./callback"),x=k("./utils/deepCopy"),O=x.deepCopy,m=o;m.listUploads=function(f,a){var u,r,i,n;return g.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return a=a||{},u={},b(a).to(u),u.subres="uploads",r=this._objectRequestParams("GET","",u),r.query=f,r.xmlResponse=!0,r.successStatuses=[200],h.next=10,g.default.awrap(this.request(r));case 10:return i=h.sent,n=i.data.Upload||[],Array.isArray(n)||(n=[n]),n=n.map(function(d){return{name:d.Key,uploadId:d.UploadId,initiated:d.Initiated}}),h.abrupt("return",{res:i.res,uploads:n,bucket:i.data.Bucket,nextKeyMarker:i.data.NextKeyMarker,nextUploadIdMarker:i.data.NextUploadIdMarker,isTruncated:i.data.IsTruncated==="true"});case 15:case"end":return h.stop()}},null,this)},m.listParts=function(f,a,u,r){var i,n,l;return g.default.async(function(d){for(;;)switch(d.prev=d.next){case 0:return r=r||{},i={},b(r).to(i),i.subres={uploadId:a},n=this._objectRequestParams("GET",f,i),n.query=u,n.xmlResponse=!0,n.successStatuses=[200],d.next=10,g.default.awrap(this.request(n));case 10:return l=d.sent,d.abrupt("return",{res:l.res,uploadId:l.data.UploadId,bucket:l.data.Bucket,name:l.data.Key,partNumberMarker:l.data.PartNumberMarker,nextPartNumberMarker:l.data.NextPartNumberMarker,maxParts:l.data.MaxParts,isTruncated:l.data.IsTruncated,parts:l.data.Part||[]});case 12:case"end":return d.stop()}},null,this)},m.abortMultipartUpload=function(f,a,u){var r,i,n;return g.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return this._stop(),u=u||{},r={},b(u).to(r),r.subres={uploadId:a},i=this._objectRequestParams("DELETE",f,r),i.successStatuses=[204],h.next=9,g.default.awrap(this.request(i));case 9:return n=h.sent,h.abrupt("return",{res:n.res});case 11:case"end":return h.stop()}},null,this)},m.initMultipartUpload=function(f,a){var u,r,i;return g.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return a=a||{},u={},b(a).to(u),u.headers=u.headers||{},this._convertMetaToHeaders(a.meta,u.headers),u.subres="uploads",r=this._objectRequestParams("POST",f,u),r.mime=a.mime,r.xmlResponse=!0,r.successStatuses=[200],l.next=12,g.default.awrap(this.request(r));case 12:return i=l.sent,l.abrupt("return",{res:i.res,bucket:i.data.Bucket,name:i.data.Key,uploadId:i.data.UploadId});case 14:case"end":return l.stop()}},null,this)},m.uploadPart=function(f,a,u,r,i,n,l){var h;return g.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return h={stream:this._createStream(r,i,n),size:n-i},s.next=3,g.default.awrap(this._uploadPart(f,a,u,h,l));case 3:return s.abrupt("return",s.sent);case 4:case"end":return s.stop()}},null,this)},m.completeMultipartUpload=function(f,a,u,r){var i,n,l,h,d,s,c,w;return g.default.async(function(v){for(;;)switch(v.prev=v.next){case 0:for(i=u.concat().sort(function(R,M){return R.number-M.number}).filter(function(R,M,C){return!M||R.number!==C[M-1].number}),n=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CompleteMultipartUpload>
|
|
|
`,l=0;l<i.length;l++)h=i[l],n+=`<Part>
|
|
|
`,n+="<PartNumber>"+h.number+`</PartNumber>
|
|
|
`,n+="<ETag>"+h.etag+`</ETag>
|
|
|
`,n+=`</Part>
|
|
|
`;return n+="</CompleteMultipartUpload>",r=r||{},d={},d=O(r),d.headers&&delete d.headers["x-oss-server-side-encryption"],d.subres={uploadId:a},s=this._objectRequestParams("POST",f,d),y.encodeCallback(s,d),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 c=v.sent,w={res:c.res,bucket:s.bucket,name:f,etag:c.res.headers.etag},s.headers&&s.headers["x-oss-callback"]&&(w.data=JSON.parse(c.data.toString())),v.abrupt("return",w);case 21:case"end":return v.stop()}},null,this)},m._uploadPart=function(f,a,u,r,i){var n,l,h;return g.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return i=i||{},n={},b(i).to(n),n.headers={"Content-Length":r.size},n.subres={partNumber:u,uploadId:a},l=this._objectRequestParams("PUT",f,n),l.mime=n.mime,l.stream=r.stream,l.successStatuses=[200],s.next=11,g.default.awrap(this.request(l));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 r.stream=null,l.stream=null,s.abrupt("return",{name:f,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(k,z,o){"use strict";var P=k("babel-runtime/regenerator"),g=O(P),T=k("babel-runtime/core-js/object/keys"),b=O(T),y=k("babel-runtime/helpers/typeof"),x=O(y);function O(a){return a&&a.__esModule?a:{default:a}}var m=k("../utils/checkBucketName"),e=m.checkBucketName,f=o;f.copy=function(u,r,i,n){var l,h,d;return g.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:return(typeof i=="undefined"?"undefined":(0,x.default)(i))==="object"&&(n=i),n=n||{},n.headers=n.headers||{},(0,b.default)(n.headers).forEach(function(w){n.headers["x-oss-copy-source-"+w.toLowerCase()]=n.headers[w]}),n.meta&&(n.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(n.meta,n.headers),r=this._getSourceName(r,i),n.versionId&&(r=r+"?versionId="+n.versionId),n.headers["x-oss-copy-source"]=r,l=this._objectRequestParams("PUT",u,n),l.xmlResponse=!0,l.successStatuses=[200,304],c.next=14,g.default.awrap(this.request(l));case 14:return h=c.sent,d=h.data,d&&(d={etag:d.ETag,lastModified:d.LastModified}),c.abrupt("return",{data:d,res:h.res});case 18:case"end":return c.stop()}},null,this)},f._getSourceName=function(u,r){return typeof r=="string"?u=this._objectName(u):u[0]!=="/"?r=this.options.bucket:(r=u.replace(/\/(.+?)(\/.*)/,"$1"),u=u.replace(/(\/.+?\/)(.*)/,"$2")),e(r),u=encodeURI(u),u="/"+r+"/"+u,u}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,"babel-runtime/regenerator":68}],20:[function(k,z,o){"use strict";var P=k("babel-runtime/regenerator"),g=y(P),T=k("babel-runtime/core-js/object/assign"),b=y(T);function y(O){return O&&O.__esModule?O:{default:O}}var x=o;x.delete=function(m){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f,a;return g.default.async(function(r){for(;;)switch(r.prev=r.next){case 0:return e.subres=(0,b.default)({},e.subres),e.versionId&&(e.subres.versionId=e.versionId),f=this._objectRequestParams("DELETE",m,e),f.successStatuses=[204],r.next=6,g.default.awrap(this.request(f));case 6:return a=r.sent,r.abrupt("return",{res:a.res});case 8:case"end":return r.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],21:[function(k,z,o){"use strict";var P=k("babel-runtime/regenerator"),g=y(P),T=k("babel-runtime/core-js/object/assign"),b=y(T);function y(f){return f&&f.__esModule?f:{default:f}}var x=k("utility"),O=k("../utils/obj2xml"),m=O.obj2xml,e=o;e.deleteMulti=function(a){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i,n,l,h,d,s,c,w,E,v,R;return g.default.async(function(C){for(;;)switch(C.prev=C.next){case 0:if(r=[],!(!a||!a.length)){C.next=3;break}throw new Error("names is required");case 3:for(i=0;i<a.length;i++)n={},typeof a[i]=="string"?n.Key=x.escape(this._objectName(a[i])):(l=a[i],h=l.key,d=l.versionId,n.Key=x.escape(this._objectName(h)),n.VersionId=d),r.push(n);return s={Delete:{Quiet:!!u.quiet,Object:r}},c=m(s,{headers:!0}),u.subres=(0,b.default)({delete:""},u.subres),u.versionId&&(u.subres.versionId=u.versionId),w=this._objectRequestParams("POST","",u),w.mime="xml",w.content=c,w.xmlResponse=!0,w.successStatuses=[200],C.next=15,g.default.awrap(this.request(w));case 15:return E=C.sent,v=E.data,R=v&&v.Deleted||null,R&&(Array.isArray(R)||(R=[R])),C.abrupt("return",{res:E.res,deleted:R||[]});case 20:case"end":return C.stop()}},null,this)}},{"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,utility:290}],22:[function(k,z,o){"use strict";var P=k("babel-runtime/regenerator"),g=y(P),T=k("babel-runtime/core-js/object/assign"),b=y(T);function y(O){return O&&O.__esModule?O:{default:O}}var x=o;x.deleteObjectTagging=function(m){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f,a;return g.default.async(function(r){for(;;)switch(r.prev=r.next){case 0:return e.subres=(0,b.default)({tagging:""},e.subres),e.versionId&&(e.subres.versionId=e.versionId),m=this._objectName(m),f=this._objectRequestParams("DELETE",m,e),f.successStatuses=[204],r.next=7,g.default.awrap(this.request(f));case 7:return a=r.sent,r.abrupt("return",{status:a.status,res:a.res});case 9:case"end":return r.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],23:[function(k,z,o){"use strict";var P=k("babel-runtime/regenerator"),g=y(P),T=k("babel-runtime/core-js/object/assign"),b=y(T);function y(e){return e&&e.__esModule?e:{default:e}}var x=k("fs"),O=k("is-type-of"),m=o;m.get=function(f,a){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,i,n,l;return g.default.async(function(d){for(;;)switch(d.prev=d.next){case 0:return r=null,i=!1,O.writableStream(a)?r=a:O.string(a)?(r=x.createWriteStream(a),i=!0):u=a,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,d.prev=8,l=this._objectRequestParams("GET",f,u),l.writeStream=r,l.successStatuses=[200,206,304],d.next=14,g.default.awrap(this.request(l));case 14:n=d.sent,i&&r.destroy(),d.next=25;break;case 18:if(d.prev=18,d.t0=d.catch(8),!i){d.next=24;break}return r.destroy(),d.next=24,g.default.awrap(this._deleteFileSafe(a));case 24:throw d.t0;case 25:return d.abrupt("return",{res:n.res,content:n.data});case 26:case"end":return d.stop()}},null,this,[[8,18]])}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,fs:71,"is-type-of":289}],24:[function(k,z,o){"use strict";var P=k("babel-runtime/regenerator"),g=y(P),T=k("babel-runtime/core-js/object/assign"),b=y(T);function y(O){return O&&O.__esModule?O:{default:O}}var x=o;x.getACL=function(m){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f,a;return g.default.async(function(r){for(;;)switch(r.prev=r.next){case 0:return e.subres=(0,b.default)({acl:""},e.subres),e.versionId&&(e.subres.versionId=e.versionId),m=this._objectName(m),f=this._objectRequestParams("GET",m,e),f.successStatuses=[200],f.xmlResponse=!0,r.next=8,g.default.awrap(this.request(f));case 8:return a=r.sent,r.abrupt("return",{acl:a.data.AccessControlList.Grant,owner:{id:a.data.Owner.ID,displayName:a.data.Owner.DisplayName},res:a.res});case 10:case"end":return r.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],25:[function(k,z,o){"use strict";var P=k("babel-runtime/core-js/object/keys"),g=O(P),T=k("babel-runtime/regenerator"),b=O(T),y=k("babel-runtime/core-js/object/assign"),x=O(y);function O(l){return l&&l.__esModule?l:{default:l}}var m=o,e=k("../utils/isObject"),f=e.isObject,a=k("../utils/isArray"),u=a.isArray;m.getBucketVersions=r,m.listObjectVersions=r;function r(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d,s,c,w,E,v;return b.default.async(function(M){for(;;)switch(M.prev=M.next){case 0:if(!(l.versionIdMarker&&l.keyMarker===void 0)){M.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),d=this._objectRequestParams("GET","",h),d.xmlResponse=!0,d.successStatuses=[200],d.query=n(l),M.next=10,b.default.awrap(this.request(d));case 10:return s=M.sent,c=s.data.Version||[],w=s.data.DeleteMarker||[],E=this,c&&(Array.isArray(c)||(c=[c]),c=c.map(function(C){return{name:C.Key,url:E._objectUrl(C.Key),lastModified:C.LastModified,isLatest:C.IsLatest==="true",versionId:C.VersionId,etag:C.ETag,type:C.Type,size:Number(C.Size),storageClass:C.StorageClass,owner:{id:C.Owner.ID,displayName:C.Owner.DisplayName}}})),w&&(u(w)||(w=[w]),w=w.map(function(C){return{name:C.Key,lastModified:C.LastModified,versionId:C.VersionId,owner:{id:C.Owner.ID,displayName:C.Owner.DisplayName}}})),v=s.data.CommonPrefixes||null,v&&(u(v)||(v=[v]),v=v.map(function(C){return C.Prefix})),M.abrupt("return",{res:s.res,objects:c,deleteMarker:w,prefixes:v,nextMarker:s.data.NextMarker||null,NextVersionIdMarker:s.data.NextVersionIdMarker||null,isTruncated:s.data.IsTruncated==="true"});case 19:case"end":return M.stop()}},null,this)}function i(l){return l.replace(/([A-Z])/g,"-$1").toLowerCase()}function n(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h={};return f(l)&&(0,g.default)(l).forEach(function(d){h[i(d)]=l[d]}),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(k,z,o){"use strict";var P=k("babel-runtime/regenerator"),g=y(P),T=k("babel-runtime/core-js/object/assign"),b=y(T);function y(O){return O&&O.__esModule?O:{default:O}}var x=o;x.getObjectMeta=function(m,e){var f,a;return g.default.async(function(r){for(;;)switch(r.prev=r.next){case 0:return e=e||{},m=this._objectName(m),e.subres=(0,b.default)({objectMeta:""},e.subres),e.versionId&&(e.subres.versionId=e.versionId),f=this._objectRequestParams("HEAD",m,e),f.successStatuses=[200],r.next=8,g.default.awrap(this.request(f));case 8:return a=r.sent,r.abrupt("return",{status:a.status,res:a.res});case 10:case"end":return r.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],27:[function(k,z,o){"use strict";var P=k("babel-runtime/regenerator"),g=y(P),T=k("babel-runtime/core-js/object/assign"),b=y(T);function y(e){return e&&e.__esModule?e:{default:e}}var x=o,O=k("../utils/isObject"),m=O.isObject;x.getObjectTagging=function(f){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u,r,i,n,l;return g.default.async(function(d){for(;;)switch(d.prev=d.next){case 0:return a.subres=(0,b.default)({tagging:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),f=this._objectName(f),u=this._objectRequestParams("GET",f,a),u.successStatuses=[200],d.next=7,g.default.awrap(this.request(u));case 7:return r=d.sent,d.next=10,g.default.awrap(this.parseXML(r.data));case 10:return i=d.sent,n=i.TagSet.Tag,n=n&&m(n)?[n]:n||[],l={},n.forEach(function(s){l[s.Key]=s.Value}),d.abrupt("return",{status:r.status,res:r.res,tag:l});case 16:case"end":return d.stop()}},null,this)}},{"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],28:[function(k,z,o){"use strict";var P=k("babel-runtime/regenerator"),g=y(P),T=k("babel-runtime/core-js/object/assign"),b=y(T);function y(O){return O&&O.__esModule?O:{default:O}}var x=o;x.getSymlink=function(m){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f,a,u;return g.default.async(function(i){for(;;)switch(i.prev=i.next){case 0:return e.subres=(0,b.default)({symlink:""},e.subres),e.versionId&&(e.subres.versionId=e.versionId),m=this._objectName(m),f=this._objectRequestParams("GET",m,e),f.successStatuses=[200],i.next=7,g.default.awrap(this.request(f));case 7:return a=i.sent,u=a.res.headers["x-oss-symlink-target"],i.abrupt("return",{targetName:decodeURIComponent(u),res:a.res});case 10:case"end":return i.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],29:[function(k,z,o){"use strict";var P=k("babel-runtime/regenerator"),g=O(P),T=k("babel-runtime/core-js/object/keys"),b=O(T),y=k("babel-runtime/core-js/object/assign"),x=O(y);function O(e){return e&&e.__esModule?e:{default:e}}var m=o;m.head=function(f){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u,r,i;return g.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return a.subres=(0,x.default)({},a.subres),a.versionId&&(a.subres.versionId=a.versionId),u=this._objectRequestParams("HEAD",f,a),u.successStatuses=[200,304],l.next=6,g.default.awrap(this.request(u));case 6:return r=l.sent,i={meta:null,res:r.res,status:r.status},r.status===200&&(0,b.default)(r.headers).forEach(function(h){h.indexOf("x-oss-meta-")===0&&(i.meta||(i.meta={}),i.meta[h.substring(11)]=r.headers[h])}),l.abrupt("return",i);case 10:case"end":return l.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],30:[function(k,z,o){"use strict";var P=k("babel-runtime/regenerator"),g=y(P),T=k("babel-runtime/core-js/object/assign"),b=y(T);function y(O){return O&&O.__esModule?O:{default:O}}var x=o;x.putACL=function(m,e,f){var a,u;return g.default.async(function(i){for(;;)switch(i.prev=i.next){case 0:return f=f||{},f.subres=(0,b.default)({acl:""},f.subres),f.versionId&&(f.subres.versionId=f.versionId),f.headers=f.headers||{},f.headers["x-oss-object-acl"]=e,m=this._objectName(m),a=this._objectRequestParams("PUT",m,f),a.successStatuses=[200],i.next=10,g.default.awrap(this.request(a));case 10:return u=i.sent,i.abrupt("return",{res:u.res});case 12:case"end":return i.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],31:[function(k,z,o){"use strict";var P=k("babel-runtime/regenerator"),g=O(P),T=k("babel-runtime/core-js/object/keys"),b=O(T),y=k("babel-runtime/core-js/object/assign"),x=O(y);function O(r){return r&&r.__esModule?r:{default:r}}var m=k("../utils/obj2xml"),e=m.obj2xml,f=k("../utils/checkObjectTag"),a=f.checkObjectTag,u=o;u.putObjectTagging=function(i,n){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},h,d,s;return g.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:return a(n),l.subres=(0,x.default)({tagging:""},l.subres),l.versionId&&(l.subres.versionId=l.versionId),i=this._objectName(i),h=this._objectRequestParams("PUT",i,l),h.successStatuses=[200],n=(0,b.default)(n).map(function(E){return{Key:E,Value:n[E]}}),d={Tagging:{TagSet:{Tag:n}}},h.mime="xml",h.content=e(d),w.next=12,g.default.awrap(this.request(h));case 12:return s=w.sent,w.abrupt("return",{res:s.res,status:s.status});case 14:case"end":return w.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(k,z,o){"use strict";var P=k("babel-runtime/regenerator"),g=y(P),T=k("babel-runtime/core-js/object/assign"),b=y(T);function y(O){return O&&O.__esModule?O:{default:O}}var x=o;x.putSymlink=function(m,e,f){var a,u;return g.default.async(function(i){for(;;)switch(i.prev=i.next){case 0:return f=f||{},f.headers=f.headers||{},e=this._escape(this._objectName(e)),this._convertMetaToHeaders(f.meta,f.headers),f.headers["x-oss-symlink-target"]=e,f.subres=(0,b.default)({symlink:""},f.subres),f.versionId&&(f.subres.versionId=f.versionId),f.storageClass&&(f.headers["x-oss-storage-class"]=f.storageClass),m=this._objectName(m),a=this._objectRequestParams("PUT",m,f),a.successStatuses=[200],i.next=13,g.default.awrap(this.request(a));case 13:return u=i.sent,i.abrupt("return",{res:u.res});case 15:case"end":return i.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],33:[function(k,z,o){"use strict";var P=k("babel-runtime/regenerator"),g=y(P),T=k("babel-runtime/core-js/promise"),b=y(T);function y(O){return O&&O.__esModule?O:{default:O}}var x=o;x._parallelNode=function(m,e,f,a){var u,r,i,n,l,h,d,s;return g.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:u=this,r=[],i=[],n=m.length/e,l=m.length%e,h=l===0?n:(m.length-l)/e+1,d=1,s=0;case 8:if(!(s<m.length)){w.next=26;break}if(!u.isCancel()){w.next=11;break}return w.abrupt("break",26);case 11:if(a?i.push(f(u,m[s],a)):i.push(f(u,m[s])),!(i.length===e||d===h&&s===m.length-1)){w.next=23;break}return w.prev=13,d+=1,w.next=17,g.default.awrap(b.default.all(i));case 17:w.next=22;break;case 19:w.prev=19,w.t0=w.catch(13),r.push(w.t0);case 22:i=[];case 23:s++,w.next=8;break;case 26:return w.abrupt("return",r);case 27:case"end":return w.stop()}},null,this,[[13,19]])},x._parallel=function(m,e,f){var a=this;return new b.default(function(u){var r=[];if(e<=0||!m){u(r);return}function i(v){return function(){if(v===null)throw new Error("Callback was already called.");var R=v;v=null;for(var M=arguments.length,C=Array(M),S=0;S<M;S++)C[S]=arguments[S];R.apply(this,C)}}function n(v){var R=-1,M=v.length;return function(){return++R<M&&!a.isCancel()?{value:v[R],key:R}:null}}var l=n(m),h=!1,d=0,s=!1;function c(v,R){d-=1,v?(h=!0,r.push(v),u(r)):R==={}||h&&d<=0?(h=!0,u(r)):s||(a.isCancel()?u(r):E())}function w(v,R){f(v).then(function(M){R(null,M)}).catch(function(M){R(M)})}function E(){for(s=!0;d<e&&!h&&!a.isCancel();){var v=l();if(v===null||r.length>0){h=!0,d<=0&&u(r);return}d+=1,w(v.value,i(c))}s=!1}E()})},x.cancel=function(m){this.options.cancelFlag=!0,m&&this.abortMultipartUpload(m.name,m.uploadId,m.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 m={status:0,name:"cancel"};return m}},{"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68}],34:[function(k,z,o){(function(P){"use strict";var g=k("babel-runtime/core-js/json/stringify"),T=x(g),b=k("babel-runtime/core-js/object/keys"),y=x(b);function x(e){return e&&e.__esModule?e:{default:e}}var O=k("./../../shims/crypto/crypto.js"),m=k("is-type-of");o.buildCanonicalizedResource=function(f,a){var u=""+f,r="?";if(m.string(a)&&a.trim()!=="")u+=r+a;else if(m.array(a))a.sort(),u+=r+a.join("&");else if(a){var i=function(h,d){return h[0]>d[0]?1:h[0]<d[0]?-1:0},n=function(h){u+=r+h,a[h]&&(u+="="+a[h]),r="&"};(0,y.default)(a).sort(i).forEach(n)}return u},o.buildCanonicalString=function(f,a,u,r){u=u||{};var i=u.headers||{},n="x-oss-",l=[],h={},d=[f.toUpperCase(),i["Content-Md5"]||"",i["Content-Type"]||i["Content-Type".toLowerCase()],r||i["x-oss-date"]];return(0,y.default)(i).forEach(function(s){var c=s.toLowerCase();c.indexOf(n)===0&&(h[c]=String(i[s]).trim())}),(0,y.default)(h).sort().forEach(function(s){l.push(s+":"+h[s])}),d=d.concat(l),d.push(this.buildCanonicalizedResource(a,u.parameters)),d.join(`
|
|
|
`)},o.computeSignature=function(f,a){var u=O.createHmac("sha1",f);return u.update(P.from(a,"utf8")).digest("base64")},o.authorization=function(f,a,u){return"OSS "+f+":"+this.computeSignature(a,u)},o._signatureForURL=function(f){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=arguments[2],r=arguments[3],i={},n=a.subResource,l=n===void 0?{}:n;if(a.process){var h="x-oss-process";l[h]=a.process}if(a.trafficLimit){var d="x-oss-traffic-limit";l[d]=a.trafficLimit}if(a.response&&(0,y.default)(a.response).forEach(function(E){var v="response-"+E.toLowerCase();l[v]=a.response[E]}),(0,y.default)(a).forEach(function(E){var v=E.toLowerCase(),R=a[E];v.indexOf("x-oss-")===0?i[v]=R:(v.indexOf("content-md5")===0||v.indexOf("content-type")===0)&&(i[E]=R)}),Object.prototype.hasOwnProperty.call(a,"security-token")&&(l["security-token"]=a["security-token"]),Object.prototype.hasOwnProperty.call(a,"callback")){var s={callbackUrl:encodeURI(a.callback.url),callbackBody:a.callback.body};if(a.callback.host&&(s.callbackHost=a.callback.host),a.callback.contentType&&(s.callbackBodyType=a.callback.contentType),l.callback=P.from((0,T.default)(s)).toString("base64"),a.callback.customValue){var c={};(0,y.default)(a.callback.customValue).forEach(function(E){c["x:"+E]=a.callback.customValue[E]}),l["callback-var"]=P.from((0,T.default)(c)).toString("base64")}}var w=this.buildCanonicalString(a.method,u,{headers:i,parameters:l},r.toString());return{Signature:this.computeSignature(f,w),subResource:l}}}).call(this,k("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(k,z,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.checkBucketName=void 0,o.checkBucketName=function(P,g){var T=g?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!T.test(P))throw new Error("The bucket must be conform to the specifications")}},{}],36:[function(k,z,o){"use strict";var P=k("babel-runtime/core-js/object/entries"),g=T(P);function T(a){return a&&a.__esModule?a:{default:a}}Object.defineProperty(o,"__esModule",{value:!0}),o.checkObjectTag=void 0;var b=k("./checkValid"),y=b.checkValid,x=k("./isObject"),O=x.isObject,m=[{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 (/)"}],e={key:[].concat(m,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(m,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function f(a){if(!O(a))throw new Error("tag must be Object");var u=(0,g.default)(a);if(u.length>10)throw new Error("maximum of 10 tags for a object");var r=["key","value"];u.forEach(function(i){i.forEach(function(n,l){y(n,e[r[l]])})})}o.checkObjectTag=f},{"./checkValid":37,"./isObject":46,"babel-runtime/core-js/object/entries":57}],37:[function(k,z,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.checkValid=void 0;function P(g,T){T.forEach(function(b){if(b.validator)b.validator(g);else if(b.pattern&&!b.pattern.test(g))throw new Error(b.msg)})}o.checkValid=P},{}],38:[function(k,z,o){(function(P){"use strict";var g=k("babel-runtime/core-js/object/assign"),T=b(g);function b(i){return i&&i.__esModule?i:{default:i}}Object.defineProperty(o,"__esModule",{value:!0}),o.createRequest=void 0;var y=k("./../../../shims/crypto/crypto.js"),x=k("debug")("ali-oss"),O=k("mime"),m=k("dateformat"),e=k("copy-to"),f=k("path");function a(i,n){return i[n]||i[n.toLowerCase()]}function u(i,n){delete i[n],delete i[n.toLowerCase()]}function r(i){var n=new Date;this.options.amendTimeSkewed&&(n=+new Date+this.options.amendTimeSkewed);var l={"x-oss-date":m(n,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.userAgent.includes("nodejs")&&(l["User-Agent"]=this.userAgent),this.options.isRequestPay&&(0,T.default)(l,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(l["x-oss-security-token"]=this.options.stsToken),e(i.headers).to(l),a(l,"Content-Type")||(i.mime&&i.mime.indexOf("/")>0?l["Content-Type"]=i.mime:l["Content-Type"]=O.getType(i.mime||f.extname(i.object||""))),a(l,"Content-Type")||u(l,"Content-Type"),i.content&&(l["Content-Md5"]=y.createHash("md5").update(P.from(i.content,"utf8")).digest("base64"),l["Content-Length"]||(l["Content-Length"]=i.content.length));var h=this._getResource(i);l.authorization=this.authorization(i.method,h,i.subres,l);var d=this._getReqUrl(i);x("request %s %s, with headers %j, !!stream: %s",i.method,d,l,!!i.stream);var s=i.timeout||this.options.timeout,c={method:i.method,content:i.content,stream:i.stream,headers:l,timeout:s,writeStream:i.writeStream,customResponse:i.customResponse,ctx:i.ctx||this.ctx};return this.agent&&(c.agent=this.agent),this.httpsAgent&&(c.httpsAgent=this.httpsAgent),{url:d,params:c}}o.createRequest=r}).call(this,k("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(k,z,o){"use strict";var P=k("babel-runtime/core-js/object/keys"),g=y(P),T=k("babel-runtime/helpers/typeof"),b=y(T);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 O=Array.isArray(x)?[]:{};return(0,g.default)(x).forEach(function(m){O[m]=o.deepCopy(x[m])}),O}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],40:[function(k,z,o){"use strict";var P=k("babel-runtime/core-js/object/keys"),g=y(P),T=k("babel-runtime/helpers/typeof"),b=y(T);function y(m){return m&&m.__esModule?m:{default:m}}Object.defineProperty(o,"__esModule",{value:!0}),o.formatObjKey=void 0;function x(m,e){if(m===null||(typeof m=="undefined"?"undefined":(0,b.default)(m))!=="object")return m;var f=void 0;if(Array.isArray(m)){f=[];for(var a=0;a<m.length;a++)f.push(x(m[a],e))}else f={},(0,g.default)(m).forEach(function(u){f[O(u,e)]=x(m[u],e)});return f}o.formatObjKey=x;function O(m,e){return e==="firstUpperCase"?m=m.replace(/^./,function(f){return f.toUpperCase()}):e==="firstLowerCase"&&(m=m.replace(/^./,function(f){return f.toLowerCase()})),m}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],41:[function(k,z,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.getStrBytesCount=void 0;function P(g){for(var T=0,b=0;b<g.length;b++){var y=g.charAt(b);/^[\u00-\uff]$/.test(y)?T+=1:T+=2}return T}o.getStrBytesCount=P},{}],42:[function(k,z,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isArray=void 0,o.isArray=function(P){return Object.prototype.toString.call(P)==="[object Array]"}},{}],43:[function(k,z,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isBlob=void 0;function P(g){return typeof Blob!="undefined"&&g instanceof Blob}o.isBlob=P},{}],44:[function(k,z,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isFile=void 0,o.isFile=function(P){return typeof File!="undefined"&&P instanceof File}},{}],45:[function(k,z,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isIP=void 0,o.isIP=function(P){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}$/,T=/^\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(P)||T.test(P)}},{}],46:[function(k,z,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isObject=void 0,o.isObject=function(P){return Object.prototype.toString.call(P)==="[object Object]"}},{}],47:[function(k,z,o){"use strict";var P=k("babel-runtime/core-js/object/keys"),g=T(P);function T(O){return O&&O.__esModule?O:{default:O}}Object.defineProperty(o,"__esModule",{value:!0}),o.obj2xml=void 0;var b=k("./formatObjKey");function y(O){return Object.prototype.toString.call(O).replace(/(.*? |])/g,"").toLowerCase()}function x(O,m){var e="";return m&&m.headers&&(e=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
`),m&&m.firstUpperCase&&(O=b.formatObjKey(O,"firstUpperCase")),y(O)==="object"?(0,g.default)(O).forEach(function(f){y(O[f])==="string"||y(O[f])==="number"?e+="<"+f+">"+O[f]+"</"+f+">":y(O[f])==="object"?e+="<"+f+">"+x(O[f])+"</"+f+">":y(O[f])==="array"?e+=O[f].map(function(a){return"<"+f+">"+x(a)+"</"+f+">"}).join(""):e+="<"+f+">"+O[f].toString()+"</"+f+">"}):e+=O.toString(),e}o.obj2xml=x},{"./formatObjKey":40,"babel-runtime/core-js/object/keys":60}],48:[function(k,z,o){z.exports=P,z.exports.HttpsAgent=P;function P(){}},{}],49:[function(k,z,o){z.exports=k("./register")().Promise},{"./register":51}],50:[function(k,z,o){"use strict";var P="@@any-promise/REGISTRATION",g=null;z.exports=function(T,b){return function(x,O){x=x||null,O=O||{};var m=O.global!==!1;if(g===null&&m&&(g=T[P]||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 O.Promise!="undefined"?g={Promise:O.Promise,implementation:x}:g=b(x),m&&(T[P]=g)),g}}},{}],51:[function(k,z,o){"use strict";z.exports=k("./loader")(window,P);function P(){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(k,z,o){z.exports={default:k("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":77}],53:[function(k,z,o){z.exports={default:k("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":78}],54:[function(k,z,o){z.exports={default:k("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":79}],55:[function(k,z,o){z.exports={default:k("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":80}],56:[function(k,z,o){z.exports={default:k("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":81}],57:[function(k,z,o){z.exports={default:k("core-js/library/fn/object/entries"),__esModule:!0}},{"core-js/library/fn/object/entries":82}],58:[function(k,z,o){z.exports={default:k("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":83}],59:[function(k,z,o){z.exports={default:k("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":84}],60:[function(k,z,o){z.exports={default:k("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":85}],61:[function(k,z,o){z.exports={default:k("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":86}],62:[function(k,z,o){z.exports={default:k("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":87}],63:[function(k,z,o){z.exports={default:k("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":88}],64:[function(k,z,o){z.exports={default:k("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":90}],65:[function(k,z,o){z.exports={default:k("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":89}],66:[function(k,z,o){z.exports={default:k("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":91}],67:[function(k,z,o){"use strict";o.__esModule=!0;var P=k("../core-js/symbol/iterator"),g=x(P),T=k("../core-js/symbol"),b=x(T),y=typeof b.default=="function"&&typeof g.default=="symbol"?function(O){return typeof O}:function(O){return O&&typeof b.default=="function"&&O.constructor===b.default&&O!==b.default.prototype?"symbol":typeof O};function x(O){return O&&O.__esModule?O:{default:O}}o.default=typeof b.default=="function"&&y(g.default)==="symbol"?function(O){return typeof O=="undefined"?"undefined":y(O)}:function(O){return O&&typeof b.default=="function"&&O.constructor===b.default&&O!==b.default.prototype?"symbol":typeof O=="undefined"?"undefined":y(O)}},{"../core-js/symbol":64,"../core-js/symbol/iterator":66}],68:[function(k,z,o){z.exports=k("regenerator-runtime")},{"regenerator-runtime":226}],69:[function(k,z,o){"use strict";o.byteLength=m,o.toByteArray=f,o.fromByteArray=r;for(var P=[],g=[],T=typeof Uint8Array!="undefined"?Uint8Array:Array,b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y=0,x=b.length;y<x;++y)P[y]=b[y],g[b.charCodeAt(y)]=y;g["-".charCodeAt(0)]=62,g["_".charCodeAt(0)]=63;function O(i){var n=i.length;if(n%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var l=i.indexOf("=");l===-1&&(l=n);var h=l===n?0:4-l%4;return[l,h]}function m(i){var n=O(i),l=n[0],h=n[1];return(l+h)*3/4-h}function e(i,n,l){return(n+l)*3/4-l}function f(i){var n,l=O(i),h=l[0],d=l[1],s=new T(e(i,h,d)),c=0,w=d>0?h-4:h,E;for(E=0;E<w;E+=4)n=g[i.charCodeAt(E)]<<18|g[i.charCodeAt(E+1)]<<12|g[i.charCodeAt(E+2)]<<6|g[i.charCodeAt(E+3)],s[c++]=n>>16&255,s[c++]=n>>8&255,s[c++]=n&255;return d===2&&(n=g[i.charCodeAt(E)]<<2|g[i.charCodeAt(E+1)]>>4,s[c++]=n&255),d===1&&(n=g[i.charCodeAt(E)]<<10|g[i.charCodeAt(E+1)]<<4|g[i.charCodeAt(E+2)]>>2,s[c++]=n>>8&255,s[c++]=n&255),s}function a(i){return P[i>>18&63]+P[i>>12&63]+P[i>>6&63]+P[i&63]}function u(i,n,l){for(var h,d=[],s=n;s<l;s+=3)h=(i[s]<<16&16711680)+(i[s+1]<<8&65280)+(i[s+2]&255),d.push(a(h));return d.join("")}function r(i){for(var n,l=i.length,h=l%3,d=[],s=16383,c=0,w=l-h;c<w;c+=s)d.push(u(i,c,c+s>w?w:c+s));return h===1?(n=i[l-1],d.push(P[n>>2]+P[n<<4&63]+"==")):h===2&&(n=(i[l-2]<<8)+i[l-1],d.push(P[n>>10]+P[n>>4&63]+P[n<<2&63]+"=")),d.join("")}},{}],70:[function(k,z,o){/*!
|
|
|
* Bowser - a browser detector
|
|
|
* https://github.com/ded/bowser
|
|
|
* MIT License | (c) Dustin Diaz 2015
|
|
|
*/!function(P,g,T){typeof z!="undefined"&&z.exports?z.exports=T():typeof define=="function"&&define.amd?define(g,T):P[g]=T()}(this,"bowser",function(){var P=!0;function g(e){function f(W){var F=e.match(W);return F&&F.length>1&&F[1]||""}function a(W){var F=e.match(W);return F&&F.length>1&&F[2]||""}var u=f(/(ipod|iphone|ipad)/i).toLowerCase(),r=/like android/i.test(e),i=!r&&/android/i.test(e),n=/nexus\s*[0-6]\s*/i.test(e),l=!n&&/nexus\s*[0-9]+/i.test(e),h=/CrOS/.test(e),d=/silk/i.test(e),s=/sailfish/i.test(e),c=/tizen/i.test(e),w=/(web|hpw)(o|0)s/i.test(e),E=/windows phone/i.test(e),v=/SamsungBrowser/i.test(e),R=!E&&/windows/i.test(e),M=!u&&!d&&/macintosh/i.test(e),C=!i&&!s&&!c&&!w&&/linux/i.test(e),S=a(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),_=f(/version\/(\d+(\.\d+)?)/i),A=/tablet/i.test(e)&&!/tablet pc/i.test(e),U=!A&&/[^-]mobi/i.test(e),L=/xbox/i.test(e),N;/opera/i.test(e)?N={name:"Opera",opera:P,version:_||f(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(e)?N={name:"Opera",opera:P,version:f(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||_}:/SamsungBrowser/i.test(e)?N={name:"Samsung Internet for Android",samsungBrowser:P,version:_||f(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(e)?N={name:"NAVER Whale browser",whale:P,version:f(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(e)?N={name:"MZ Browser",mzbrowser:P,version:f(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(e)?N={name:"Opera Coast",coast:P,version:_||f(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(e)?N={name:"Focus",focus:P,version:f(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(e)?N={name:"Yandex Browser",yandexbrowser:P,version:_||f(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(e)?N={name:"UC Browser",ucbrowser:P,version:f(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(e)?N={name:"Maxthon",maxthon:P,version:f(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(e)?N={name:"Epiphany",epiphany:P,version:f(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(e)?N={name:"Puffin",puffin:P,version:f(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(e)?N={name:"Sleipnir",sleipnir:P,version:f(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(e)?N={name:"K-Meleon",kMeleon:P,version:f(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:E?(N={name:"Windows Phone",osname:"Windows Phone",windowsphone:P},S?(N.msedge=P,N.version=S):(N.msie=P,N.version=f(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(e)?N={name:"Internet Explorer",msie:P,version:f(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:h?N={name:"Chrome",osname:"Chrome OS",chromeos:P,chromeBook:P,chrome:P,version:f(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(e)?N={name:"Microsoft Edge",msedge:P,version:S}:/vivaldi/i.test(e)?N={name:"Vivaldi",vivaldi:P,version:f(/vivaldi\/(\d+(\.\d+)?)/i)||_}:s?N={name:"Sailfish",osname:"Sailfish OS",sailfish:P,version:f(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(e)?N={name:"SeaMonkey",seamonkey:P,version:f(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(e)?(N={name:"Firefox",firefox:P,version:f(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(e)&&(N.firefoxos=P,N.osname="Firefox OS")):d?N={name:"Amazon Silk",silk:P,version:f(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(e)?N={name:"PhantomJS",phantom:P,version:f(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(e)?N={name:"SlimerJS",slimer:P,version:f(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(e)||/rim\stablet/i.test(e)?N={name:"BlackBerry",osname:"BlackBerry OS",blackberry:P,version:_||f(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:w?(N={name:"WebOS",osname:"WebOS",webos:P,version:_||f(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(e)&&(N.touchpad=P)):/bada/i.test(e)?N={name:"Bada",osname:"Bada",bada:P,version:f(/dolfin\/(\d+(\.\d+)?)/i)}:c?N={name:"Tizen",osname:"Tizen",tizen:P,version:f(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||_}:/qupzilla/i.test(e)?N={name:"QupZilla",qupzilla:P,version:f(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||_}:/chromium/i.test(e)?N={name:"Chromium",chromium:P,version:f(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||_}:/chrome|crios|crmo/i.test(e)?N={name:"Chrome",chrome:P,version:f(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:i?N={name:"Android",version:_}:/safari|applewebkit/i.test(e)?(N={name:"Safari",safari:P},_&&(N.version=_)):u?(N={name:u=="iphone"?"iPhone":u=="ipad"?"iPad":"iPod"},_&&(N.version=_)):/googlebot/i.test(e)?N={name:"Googlebot",googlebot:P,version:f(/googlebot\/(\d+(\.\d+))/i)||_}:N={name:f(/^(.*)\/(.*) /),version:a(/^(.*)\/(.*) /)},!N.msedge&&/(apple)?webkit/i.test(e)?(/(apple)?webkit\/537\.36/i.test(e)?(N.name=N.name||"Blink",N.blink=P):(N.name=N.name||"Webkit",N.webkit=P),!N.version&&_&&(N.version=_)):!N.opera&&/gecko\//i.test(e)&&(N.name=N.name||"Gecko",N.gecko=P,N.version=N.version||f(/gecko\/(\d+(\.\d+)?)/i)),!N.windowsphone&&(i||N.silk)?(N.android=P,N.osname="Android"):!N.windowsphone&&u?(N[u]=P,N.ios=P,N.osname="iOS"):M?(N.mac=P,N.osname="macOS"):L?(N.xbox=P,N.osname="Xbox"):R?(N.windows=P,N.osname="Windows"):C&&(N.linux=P,N.osname="Linux");function V(W){switch(W){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 H="";N.windows?H=V(f(/Windows ((NT|XP)( \d\d?.\d)?)/i)):N.windowsphone?H=f(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):N.mac?(H=f(/Mac OS X (\d+([_\.\s]\d+)*)/i),H=H.replace(/[_\s]/g,".")):u?(H=f(/os (\d+([_\s]\d+)*) like mac os x/i),H=H.replace(/[_\s]/g,".")):i?H=f(/android[ \/-](\d+(\.\d+)*)/i):N.webos?H=f(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):N.blackberry?H=f(/rim\stablet\sos\s(\d+(\.\d+)*)/i):N.bada?H=f(/bada\/(\d+(\.\d+)*)/i):N.tizen&&(H=f(/tizen[\/\s](\d+(\.\d+)*)/i)),H&&(N.osversion=H);var D=!N.windows&&H.split(".")[0];return A||l||u=="ipad"||i&&(D==3||D>=4&&!U)||N.silk?N.tablet=P:(U||u=="iphone"||u=="ipod"||i||n||N.blackberry||N.webos||N.bada)&&(N.mobile=P),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=P: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=P:N.x=P,N}var T=g(typeof navigator!="undefined"&&navigator.userAgent||"");T.test=function(e){for(var f=0;f<e.length;++f){var a=e[f];if(typeof a=="string"&&a in T)return!0}return!1};function b(e){return e.split(".").length}function y(e,f){var a=[],u;if(Array.prototype.map)return Array.prototype.map.call(e,f);for(u=0;u<e.length;u++)a.push(f(e[u]));return a}function x(e){for(var f=Math.max(b(e[0]),b(e[1])),a=y(e,function(u){var r=f-b(u);return u=u+new Array(r+1).join(".0"),y(u.split("."),function(i){return new Array(20-i.length).join("0")+i}).reverse()});--f>=0;){if(a[0][f]>a[1][f])return 1;if(a[0][f]===a[1][f]){if(f===0)return 0}else return-1}}function O(e,f,a){var u=T;typeof f=="string"&&(a=f,f=void 0),f===void 0&&(f=!1),a&&(u=g(a));var r=""+u.version;for(var i in e)if(e.hasOwnProperty(i)&&u[i]){if(typeof e[i]!="string")throw new Error("Browser version in the minVersion map should be a string: "+i+": "+String(e));return x([r,e[i]])<0}return f}function m(e,f,a){return!O(e,f,a)}return T.isUnsupportedBrowser=O,T.compareVersions=x,T.check=m,T._detect=g,T.detect=g,T})},{}],71:[function(k,z,o){},{}],72:[function(k,z,o){var P=k("buffer").Buffer,g=P.isEncoding||function(m){switch(m&&m.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 T(m){if(m&&!g(m))throw new Error("Unknown encoding: "+m)}var b=o.StringDecoder=function(m){this.encoding=(m||"utf8").toLowerCase().replace(/[-_]/,""),T(m);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=O;break;default:this.write=y;return}this.charBuffer=new P(6),this.charReceived=0,this.charLength=0};b.prototype.write=function(m){for(var e="";this.charLength;){var f=m.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:m.length;if(m.copy(this.charBuffer,this.charReceived,0,f),this.charReceived+=f,this.charReceived<this.charLength)return"";m=m.slice(f,m.length),e=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var u=e.charCodeAt(e.length-1);if(u>=55296&&u<=56319){this.charLength+=this.surrogateSize,e="";continue}if(this.charReceived=this.charLength=0,m.length===0)return e;break}this.detectIncompleteChar(m);var a=m.length;this.charLength&&(m.copy(this.charBuffer,0,m.length-this.charReceived,a),a-=this.charReceived),e+=m.toString(this.encoding,0,a);var a=e.length-1,u=e.charCodeAt(a);if(u>=55296&&u<=56319){var r=this.surrogateSize;return this.charLength+=r,this.charReceived+=r,this.charBuffer.copy(this.charBuffer,r,0,r),m.copy(this.charBuffer,0,0,r),e.substring(0,a)}return e},b.prototype.detectIncompleteChar=function(m){for(var e=m.length>=3?3:m.length;e>0;e--){var f=m[m.length-e];if(e==1&&f>>5==6){this.charLength=2;break}if(e<=2&&f>>4==14){this.charLength=3;break}if(e<=3&&f>>3==30){this.charLength=4;break}}this.charReceived=e},b.prototype.end=function(m){var e="";if(m&&m.length&&(e=this.write(m)),this.charReceived){var f=this.charReceived,a=this.charBuffer,u=this.encoding;e+=a.slice(0,f).toString(u)}return e};function y(m){return m.toString(this.encoding)}function x(m){this.charReceived=m.length%2,this.charLength=this.charReceived?2:0}function O(m){this.charReceived=m.length%3,this.charLength=this.charReceived?3:0}},{buffer:73}],73:[function(k,z,o){(function(P,g){/*!
|
|
|
* The buffer module from node.js, for the browser.
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <http://feross.org>
|
|
|
* @license MIT
|
|
|
*/"use strict";var T=k("base64-js"),b=k("ieee754"),y=k("isarray");o.Buffer=g,o.SlowBuffer=d,o.INSPECT_MAX_BYTES=50,g.TYPED_ARRAY_SUPPORT=P.TYPED_ARRAY_SUPPORT!==void 0?P.TYPED_ARRAY_SUPPORT:x(),o.kMaxLength=O();function x(){try{var se=new Uint8Array(1);return se.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},se.foo()===42&&typeof se.subarray=="function"&&se.subarray(1,1).byteLength===0}catch(te){return!1}}function O(){return g.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function m(se,te){if(O()<te)throw new RangeError("Invalid typed array length");return g.TYPED_ARRAY_SUPPORT?(se=new Uint8Array(te),se.__proto__=g.prototype):(se===null&&(se=new g(te)),se.length=te),se}function g(se,te,Q){if(!g.TYPED_ARRAY_SUPPORT&&!(this instanceof g))return new g(se,te,Q);if(typeof se=="number"){if(typeof te=="string")throw new Error("If encoding is specified then the first argument must be a string");return u(this,se)}return e(this,se,te,Q)}g.poolSize=8192,g._augment=function(se){return se.__proto__=g.prototype,se};function e(se,te,Q,J){if(typeof te=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&te instanceof ArrayBuffer?n(se,te,Q,J):typeof te=="string"?r(se,te,Q):l(se,te)}g.from=function(se,te,Q){return e(null,se,te,Q)},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 f(se){if(typeof se!="number")throw new TypeError('"size" argument must be a number');if(se<0)throw new RangeError('"size" argument must not be negative')}function a(se,te,Q,J){return f(te),te<=0?m(se,te):Q!==void 0?typeof J=="string"?m(se,te).fill(Q,J):m(se,te).fill(Q):m(se,te)}g.alloc=function(se,te,Q){return a(null,se,te,Q)};function u(se,te){if(f(te),se=m(se,te<0?0:h(te)|0),!g.TYPED_ARRAY_SUPPORT)for(var Q=0;Q<te;++Q)se[Q]=0;return se}g.allocUnsafe=function(se){return u(null,se)},g.allocUnsafeSlow=function(se){return u(null,se)};function r(se,te,Q){if((typeof Q!="string"||Q==="")&&(Q="utf8"),!g.isEncoding(Q))throw new TypeError('"encoding" must be a valid string encoding');var J=s(te,Q)|0;se=m(se,J);var ve=se.write(te,Q);return ve!==J&&(se=se.slice(0,ve)),se}function i(se,te){var Q=te.length<0?0:h(te.length)|0;se=m(se,Q);for(var J=0;J<Q;J+=1)se[J]=te[J]&255;return se}function n(se,te,Q,J){if(te.byteLength,Q<0||te.byteLength<Q)throw new RangeError("'offset' is out of bounds");if(te.byteLength<Q+(J||0))throw new RangeError("'length' is out of bounds");return Q===void 0&&J===void 0?te=new Uint8Array(te):J===void 0?te=new Uint8Array(te,Q):te=new Uint8Array(te,Q,J),g.TYPED_ARRAY_SUPPORT?(se=te,se.__proto__=g.prototype):se=i(se,te),se}function l(se,te){if(g.isBuffer(te)){var Q=h(te.length)|0;return se=m(se,Q),se.length===0||te.copy(se,0,0,Q),se}if(te){if(typeof ArrayBuffer!="undefined"&&te.buffer instanceof ArrayBuffer||"length"in te)return typeof te.length!="number"||Oe(te.length)?m(se,0):i(se,te);if(te.type==="Buffer"&&y(te.data))return i(se,te.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function h(se){if(se>=O())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+O().toString(16)+" bytes");return se|0}function d(se){return+se!=se&&(se=0),g.alloc(+se)}g.isBuffer=function(te){return!!(te!=null&&te._isBuffer)},g.compare=function(te,Q){if(!g.isBuffer(te)||!g.isBuffer(Q))throw new TypeError("Arguments must be Buffers");if(te===Q)return 0;for(var J=te.length,ve=Q.length,_e=0,Ae=Math.min(J,ve);_e<Ae;++_e)if(te[_e]!==Q[_e]){J=te[_e],ve=Q[_e];break}return J<ve?-1:ve<J?1:0},g.isEncoding=function(te){switch(String(te).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(te,Q){if(!y(te))throw new TypeError('"list" argument must be an Array of Buffers');if(te.length===0)return g.alloc(0);var J;if(Q===void 0)for(Q=0,J=0;J<te.length;++J)Q+=te[J].length;var ve=g.allocUnsafe(Q),_e=0;for(J=0;J<te.length;++J){var Ae=te[J];if(!g.isBuffer(Ae))throw new TypeError('"list" argument must be an Array of Buffers');Ae.copy(ve,_e),_e+=Ae.length}return ve};function s(se,te){if(g.isBuffer(se))return se.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(se)||se instanceof ArrayBuffer))return se.byteLength;typeof se!="string"&&(se=""+se);var Q=se.length;if(Q===0)return 0;for(var J=!1;;)switch(te){case"ascii":case"latin1":case"binary":return Q;case"utf8":case"utf-8":case void 0:return le(se).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q*2;case"hex":return Q>>>1;case"base64":return re(se).length;default:if(J)return le(se).length;te=(""+te).toLowerCase(),J=!0}}g.byteLength=s;function c(se,te,Q){var J=!1;if((te===void 0||te<0)&&(te=0),te>this.length)return"";if((Q===void 0||Q>this.length)&&(Q=this.length),Q<=0)return"";if(Q>>>=0,te>>>=0,Q<=te)return"";for(se||(se="utf8");;)switch(se){case"hex":return W(this,te,Q);case"utf8":case"utf-8":return L(this,te,Q);case"ascii":return H(this,te,Q);case"latin1":case"binary":return D(this,te,Q);case"base64":return U(this,te,Q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,te,Q);default:if(J)throw new TypeError("Unknown encoding: "+se);se=(se+"").toLowerCase(),J=!0}}g.prototype._isBuffer=!0;function w(se,te,Q){var J=se[te];se[te]=se[Q],se[Q]=J}g.prototype.swap16=function(){var te=this.length;if(te%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Q=0;Q<te;Q+=2)w(this,Q,Q+1);return this},g.prototype.swap32=function(){var te=this.length;if(te%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Q=0;Q<te;Q+=4)w(this,Q,Q+3),w(this,Q+1,Q+2);return this},g.prototype.swap64=function(){var te=this.length;if(te%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Q=0;Q<te;Q+=8)w(this,Q,Q+7),w(this,Q+1,Q+6),w(this,Q+2,Q+5),w(this,Q+3,Q+4);return this},g.prototype.toString=function(){var te=this.length|0;return te===0?"":arguments.length===0?L(this,0,te):c.apply(this,arguments)},g.prototype.equals=function(te){if(!g.isBuffer(te))throw new TypeError("Argument must be a Buffer");return this===te?!0:g.compare(this,te)===0},g.prototype.inspect=function(){var te="",Q=o.INSPECT_MAX_BYTES;return this.length>0&&(te=this.toString("hex",0,Q).match(/.{2}/g).join(" "),this.length>Q&&(te+=" ... ")),"<Buffer "+te+">"},g.prototype.compare=function(te,Q,J,ve,_e){if(!g.isBuffer(te))throw new TypeError("Argument must be a Buffer");if(Q===void 0&&(Q=0),J===void 0&&(J=te?te.length:0),ve===void 0&&(ve=0),_e===void 0&&(_e=this.length),Q<0||J>te.length||ve<0||_e>this.length)throw new RangeError("out of range index");if(ve>=_e&&Q>=J)return 0;if(ve>=_e)return-1;if(Q>=J)return 1;if(Q>>>=0,J>>>=0,ve>>>=0,_e>>>=0,this===te)return 0;for(var Ae=_e-ve,Qe=J-Q,tt=Math.min(Ae,Qe),dt=this.slice(ve,_e),mt=te.slice(Q,J),vt=0;vt<tt;++vt)if(dt[vt]!==mt[vt]){Ae=dt[vt],Qe=mt[vt];break}return Ae<Qe?-1:Qe<Ae?1:0};function E(se,te,Q,J,ve){if(se.length===0)return-1;if(typeof Q=="string"?(J=Q,Q=0):Q>2147483647?Q=2147483647:Q<-2147483648&&(Q=-2147483648),Q=+Q,isNaN(Q)&&(Q=ve?0:se.length-1),Q<0&&(Q=se.length+Q),Q>=se.length){if(ve)return-1;Q=se.length-1}else if(Q<0)if(ve)Q=0;else return-1;if(typeof te=="string"&&(te=g.from(te,J)),g.isBuffer(te))return te.length===0?-1:v(se,te,Q,J,ve);if(typeof te=="number")return te=te&255,g.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?ve?Uint8Array.prototype.indexOf.call(se,te,Q):Uint8Array.prototype.lastIndexOf.call(se,te,Q):v(se,[te],Q,J,ve);throw new TypeError("val must be string, number or Buffer")}function v(se,te,Q,J,ve){var _e=1,Ae=se.length,Qe=te.length;if(J!==void 0&&(J=String(J).toLowerCase(),J==="ucs2"||J==="ucs-2"||J==="utf16le"||J==="utf-16le")){if(se.length<2||te.length<2)return-1;_e=2,Ae/=2,Qe/=2,Q/=2}function tt(Ye,Ue){return _e===1?Ye[Ue]:Ye.readUInt16BE(Ue*_e)}var dt;if(ve){var mt=-1;for(dt=Q;dt<Ae;dt++)if(tt(se,dt)===tt(te,mt===-1?0:dt-mt)){if(mt===-1&&(mt=dt),dt-mt+1===Qe)return mt*_e}else mt!==-1&&(dt-=dt-mt),mt=-1}else for(Q+Qe>Ae&&(Q=Ae-Qe),dt=Q;dt>=0;dt--){for(var vt=!0,yt=0;yt<Qe;yt++)if(tt(se,dt+yt)!==tt(te,yt)){vt=!1;break}if(vt)return dt}return-1}g.prototype.includes=function(te,Q,J){return this.indexOf(te,Q,J)!==-1},g.prototype.indexOf=function(te,Q,J){return E(this,te,Q,J,!0)},g.prototype.lastIndexOf=function(te,Q,J){return E(this,te,Q,J,!1)};function R(se,te,Q,J){Q=Number(Q)||0;var ve=se.length-Q;J?(J=Number(J),J>ve&&(J=ve)):J=ve;var _e=te.length;if(_e%2!==0)throw new TypeError("Invalid hex string");J>_e/2&&(J=_e/2);for(var Ae=0;Ae<J;++Ae){var Qe=parseInt(te.substr(Ae*2,2),16);if(isNaN(Qe))return Ae;se[Q+Ae]=Qe}return Ae}function M(se,te,Q,J){return ae(le(te,se.length-Q),se,Q,J)}function C(se,te,Q,J){return ae($(te),se,Q,J)}function S(se,te,Q,J){return C(se,te,Q,J)}function _(se,te,Q,J){return ae(re(te),se,Q,J)}function A(se,te,Q,J){return ae(me(te,se.length-Q),se,Q,J)}g.prototype.write=function(te,Q,J,ve){if(Q===void 0)ve="utf8",J=this.length,Q=0;else if(J===void 0&&typeof Q=="string")ve=Q,J=this.length,Q=0;else if(isFinite(Q))Q=Q|0,isFinite(J)?(J=J|0,ve===void 0&&(ve="utf8")):(ve=J,J=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var _e=this.length-Q;if((J===void 0||J>_e)&&(J=_e),te.length>0&&(J<0||Q<0)||Q>this.length)throw new RangeError("Attempt to write outside buffer bounds");ve||(ve="utf8");for(var Ae=!1;;)switch(ve){case"hex":return R(this,te,Q,J);case"utf8":case"utf-8":return M(this,te,Q,J);case"ascii":return C(this,te,Q,J);case"latin1":case"binary":return S(this,te,Q,J);case"base64":return _(this,te,Q,J);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,te,Q,J);default:if(Ae)throw new TypeError("Unknown encoding: "+ve);ve=(""+ve).toLowerCase(),Ae=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function U(se,te,Q){return te===0&&Q===se.length?T.fromByteArray(se):T.fromByteArray(se.slice(te,Q))}function L(se,te,Q){Q=Math.min(se.length,Q);for(var J=[],ve=te;ve<Q;){var _e=se[ve],Ae=null,Qe=_e>239?4:_e>223?3:_e>191?2:1;if(ve+Qe<=Q){var tt,dt,mt,vt;switch(Qe){case 1:_e<128&&(Ae=_e);break;case 2:tt=se[ve+1],(tt&192)===128&&(vt=(_e&31)<<6|tt&63,vt>127&&(Ae=vt));break;case 3:tt=se[ve+1],dt=se[ve+2],(tt&192)===128&&(dt&192)===128&&(vt=(_e&15)<<12|(tt&63)<<6|dt&63,vt>2047&&(vt<55296||vt>57343)&&(Ae=vt));break;case 4:tt=se[ve+1],dt=se[ve+2],mt=se[ve+3],(tt&192)===128&&(dt&192)===128&&(mt&192)===128&&(vt=(_e&15)<<18|(tt&63)<<12|(dt&63)<<6|mt&63,vt>65535&&vt<1114112&&(Ae=vt))}}Ae===null?(Ae=65533,Qe=1):Ae>65535&&(Ae-=65536,J.push(Ae>>>10&1023|55296),Ae=56320|Ae&1023),J.push(Ae),ve+=Qe}return V(J)}var N=4096;function V(se){var te=se.length;if(te<=N)return String.fromCharCode.apply(String,se);for(var Q="",J=0;J<te;)Q+=String.fromCharCode.apply(String,se.slice(J,J+=N));return Q}function H(se,te,Q){var J="";Q=Math.min(se.length,Q);for(var ve=te;ve<Q;++ve)J+=String.fromCharCode(se[ve]&127);return J}function D(se,te,Q){var J="";Q=Math.min(se.length,Q);for(var ve=te;ve<Q;++ve)J+=String.fromCharCode(se[ve]);return J}function W(se,te,Q){var J=se.length;(!te||te<0)&&(te=0),(!Q||Q<0||Q>J)&&(Q=J);for(var ve="",_e=te;_e<Q;++_e)ve+=ue(se[_e]);return ve}function F(se,te,Q){for(var J=se.slice(te,Q),ve="",_e=0;_e<J.length;_e+=2)ve+=String.fromCharCode(J[_e]+J[_e+1]*256);return ve}g.prototype.slice=function(te,Q){var J=this.length;te=~~te,Q=Q===void 0?J:~~Q,te<0?(te+=J,te<0&&(te=0)):te>J&&(te=J),Q<0?(Q+=J,Q<0&&(Q=0)):Q>J&&(Q=J),Q<te&&(Q=te);var ve;if(g.TYPED_ARRAY_SUPPORT)ve=this.subarray(te,Q),ve.__proto__=g.prototype;else{var _e=Q-te;ve=new g(_e,void 0);for(var Ae=0;Ae<_e;++Ae)ve[Ae]=this[Ae+te]}return ve};function I(se,te,Q){if(se%1!==0||se<0)throw new RangeError("offset is not uint");if(se+te>Q)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUIntLE=function(te,Q,J){te=te|0,Q=Q|0,J||I(te,Q,this.length);for(var ve=this[te],_e=1,Ae=0;++Ae<Q&&(_e*=256);)ve+=this[te+Ae]*_e;return ve},g.prototype.readUIntBE=function(te,Q,J){te=te|0,Q=Q|0,J||I(te,Q,this.length);for(var ve=this[te+--Q],_e=1;Q>0&&(_e*=256);)ve+=this[te+--Q]*_e;return ve},g.prototype.readUInt8=function(te,Q){return Q||I(te,1,this.length),this[te]},g.prototype.readUInt16LE=function(te,Q){return Q||I(te,2,this.length),this[te]|this[te+1]<<8},g.prototype.readUInt16BE=function(te,Q){return Q||I(te,2,this.length),this[te]<<8|this[te+1]},g.prototype.readUInt32LE=function(te,Q){return Q||I(te,4,this.length),(this[te]|this[te+1]<<8|this[te+2]<<16)+this[te+3]*16777216},g.prototype.readUInt32BE=function(te,Q){return Q||I(te,4,this.length),this[te]*16777216+(this[te+1]<<16|this[te+2]<<8|this[te+3])},g.prototype.readIntLE=function(te,Q,J){te=te|0,Q=Q|0,J||I(te,Q,this.length);for(var ve=this[te],_e=1,Ae=0;++Ae<Q&&(_e*=256);)ve+=this[te+Ae]*_e;return _e*=128,ve>=_e&&(ve-=Math.pow(2,8*Q)),ve},g.prototype.readIntBE=function(te,Q,J){te=te|0,Q=Q|0,J||I(te,Q,this.length);for(var ve=Q,_e=1,Ae=this[te+--ve];ve>0&&(_e*=256);)Ae+=this[te+--ve]*_e;return _e*=128,Ae>=_e&&(Ae-=Math.pow(2,8*Q)),Ae},g.prototype.readInt8=function(te,Q){return Q||I(te,1,this.length),this[te]&128?(255-this[te]+1)*-1:this[te]},g.prototype.readInt16LE=function(te,Q){Q||I(te,2,this.length);var J=this[te]|this[te+1]<<8;return J&32768?J|4294901760:J},g.prototype.readInt16BE=function(te,Q){Q||I(te,2,this.length);var J=this[te+1]|this[te]<<8;return J&32768?J|4294901760:J},g.prototype.readInt32LE=function(te,Q){return Q||I(te,4,this.length),this[te]|this[te+1]<<8|this[te+2]<<16|this[te+3]<<24},g.prototype.readInt32BE=function(te,Q){return Q||I(te,4,this.length),this[te]<<24|this[te+1]<<16|this[te+2]<<8|this[te+3]},g.prototype.readFloatLE=function(te,Q){return Q||I(te,4,this.length),b.read(this,te,!0,23,4)},g.prototype.readFloatBE=function(te,Q){return Q||I(te,4,this.length),b.read(this,te,!1,23,4)},g.prototype.readDoubleLE=function(te,Q){return Q||I(te,8,this.length),b.read(this,te,!0,52,8)},g.prototype.readDoubleBE=function(te,Q){return Q||I(te,8,this.length),b.read(this,te,!1,52,8)};function K(se,te,Q,J,ve,_e){if(!g.isBuffer(se))throw new TypeError('"buffer" argument must be a Buffer instance');if(te>ve||te<_e)throw new RangeError('"value" argument is out of bounds');if(Q+J>se.length)throw new RangeError("Index out of range")}g.prototype.writeUIntLE=function(te,Q,J,ve){if(te=+te,Q=Q|0,J=J|0,!ve){var _e=Math.pow(2,8*J)-1;K(this,te,Q,J,_e,0)}var Ae=1,Qe=0;for(this[Q]=te&255;++Qe<J&&(Ae*=256);)this[Q+Qe]=te/Ae&255;return Q+J},g.prototype.writeUIntBE=function(te,Q,J,ve){if(te=+te,Q=Q|0,J=J|0,!ve){var _e=Math.pow(2,8*J)-1;K(this,te,Q,J,_e,0)}var Ae=J-1,Qe=1;for(this[Q+Ae]=te&255;--Ae>=0&&(Qe*=256);)this[Q+Ae]=te/Qe&255;return Q+J},g.prototype.writeUInt8=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,1,255,0),g.TYPED_ARRAY_SUPPORT||(te=Math.floor(te)),this[Q]=te&255,Q+1};function ee(se,te,Q,J){te<0&&(te=65535+te+1);for(var ve=0,_e=Math.min(se.length-Q,2);ve<_e;++ve)se[Q+ve]=(te&255<<8*(J?ve:1-ve))>>>(J?ve:1-ve)*8}g.prototype.writeUInt16LE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[Q]=te&255,this[Q+1]=te>>>8):ee(this,te,Q,!0),Q+2},g.prototype.writeUInt16BE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[Q]=te>>>8,this[Q+1]=te&255):ee(this,te,Q,!1),Q+2};function he(se,te,Q,J){te<0&&(te=4294967295+te+1);for(var ve=0,_e=Math.min(se.length-Q,4);ve<_e;++ve)se[Q+ve]=te>>>(J?ve:3-ve)*8&255}g.prototype.writeUInt32LE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[Q+3]=te>>>24,this[Q+2]=te>>>16,this[Q+1]=te>>>8,this[Q]=te&255):he(this,te,Q,!0),Q+4},g.prototype.writeUInt32BE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[Q]=te>>>24,this[Q+1]=te>>>16,this[Q+2]=te>>>8,this[Q+3]=te&255):he(this,te,Q,!1),Q+4},g.prototype.writeIntLE=function(te,Q,J,ve){if(te=+te,Q=Q|0,!ve){var _e=Math.pow(2,8*J-1);K(this,te,Q,J,_e-1,-_e)}var Ae=0,Qe=1,tt=0;for(this[Q]=te&255;++Ae<J&&(Qe*=256);)te<0&&tt===0&&this[Q+Ae-1]!==0&&(tt=1),this[Q+Ae]=(te/Qe>>0)-tt&255;return Q+J},g.prototype.writeIntBE=function(te,Q,J,ve){if(te=+te,Q=Q|0,!ve){var _e=Math.pow(2,8*J-1);K(this,te,Q,J,_e-1,-_e)}var Ae=J-1,Qe=1,tt=0;for(this[Q+Ae]=te&255;--Ae>=0&&(Qe*=256);)te<0&&tt===0&&this[Q+Ae+1]!==0&&(tt=1),this[Q+Ae]=(te/Qe>>0)-tt&255;return Q+J},g.prototype.writeInt8=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,1,127,-128),g.TYPED_ARRAY_SUPPORT||(te=Math.floor(te)),te<0&&(te=255+te+1),this[Q]=te&255,Q+1},g.prototype.writeInt16LE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[Q]=te&255,this[Q+1]=te>>>8):ee(this,te,Q,!0),Q+2},g.prototype.writeInt16BE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[Q]=te>>>8,this[Q+1]=te&255):ee(this,te,Q,!1),Q+2},g.prototype.writeInt32LE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,4,2147483647,-2147483648),g.TYPED_ARRAY_SUPPORT?(this[Q]=te&255,this[Q+1]=te>>>8,this[Q+2]=te>>>16,this[Q+3]=te>>>24):he(this,te,Q,!0),Q+4},g.prototype.writeInt32BE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,4,2147483647,-2147483648),te<0&&(te=4294967295+te+1),g.TYPED_ARRAY_SUPPORT?(this[Q]=te>>>24,this[Q+1]=te>>>16,this[Q+2]=te>>>8,this[Q+3]=te&255):he(this,te,Q,!1),Q+4};function de(se,te,Q,J,ve,_e){if(Q+J>se.length)throw new RangeError("Index out of range");if(Q<0)throw new RangeError("Index out of range")}function Se(se,te,Q,J,ve){return ve||de(se,te,Q,4,34028234663852886e22,-34028234663852886e22),b.write(se,te,Q,J,23,4),Q+4}g.prototype.writeFloatLE=function(te,Q,J){return Se(this,te,Q,!0,J)},g.prototype.writeFloatBE=function(te,Q,J){return Se(this,te,Q,!1,J)};function Te(se,te,Q,J,ve){return ve||de(se,te,Q,8,17976931348623157e292,-17976931348623157e292),b.write(se,te,Q,J,52,8),Q+8}g.prototype.writeDoubleLE=function(te,Q,J){return Te(this,te,Q,!0,J)},g.prototype.writeDoubleBE=function(te,Q,J){return Te(this,te,Q,!1,J)},g.prototype.copy=function(te,Q,J,ve){if(J||(J=0),!ve&&ve!==0&&(ve=this.length),Q>=te.length&&(Q=te.length),Q||(Q=0),ve>0&&ve<J&&(ve=J),ve===J)return 0;if(te.length===0||this.length===0)return 0;if(Q<0)throw new RangeError("targetStart out of bounds");if(J<0||J>=this.length)throw new RangeError("sourceStart out of bounds");if(ve<0)throw new RangeError("sourceEnd out of bounds");ve>this.length&&(ve=this.length),te.length-Q<ve-J&&(ve=te.length-Q+J);var _e=ve-J,Ae;if(this===te&&J<Q&&Q<ve)for(Ae=_e-1;Ae>=0;--Ae)te[Ae+Q]=this[Ae+J];else if(_e<1e3||!g.TYPED_ARRAY_SUPPORT)for(Ae=0;Ae<_e;++Ae)te[Ae+Q]=this[Ae+J];else Uint8Array.prototype.set.call(te,this.subarray(J,J+_e),Q);return _e},g.prototype.fill=function(te,Q,J,ve){if(typeof te=="string"){if(typeof Q=="string"?(ve=Q,Q=0,J=this.length):typeof J=="string"&&(ve=J,J=this.length),te.length===1){var _e=te.charCodeAt(0);_e<256&&(te=_e)}if(ve!==void 0&&typeof ve!="string")throw new TypeError("encoding must be a string");if(typeof ve=="string"&&!g.isEncoding(ve))throw new TypeError("Unknown encoding: "+ve)}else typeof te=="number"&&(te=te&255);if(Q<0||this.length<Q||this.length<J)throw new RangeError("Out of range index");if(J<=Q)return this;Q=Q>>>0,J=J===void 0?this.length:J>>>0,te||(te=0);var Ae;if(typeof te=="number")for(Ae=Q;Ae<J;++Ae)this[Ae]=te;else{var Qe=g.isBuffer(te)?te:le(new g(te,ve).toString()),tt=Qe.length;for(Ae=0;Ae<J-Q;++Ae)this[Ae+Q]=Qe[Ae%tt]}return this};var ce=/[^+\/0-9A-Za-z-_]/g;function be(se){if(se=Ee(se).replace(ce,""),se.length<2)return"";for(;se.length%4!==0;)se=se+"=";return se}function Ee(se){return se.trim?se.trim():se.replace(/^\s+|\s+$/g,"")}function ue(se){return se<16?"0"+se.toString(16):se.toString(16)}function le(se,te){te=te||Infinity;for(var Q,J=se.length,ve=null,_e=[],Ae=0;Ae<J;++Ae){if(Q=se.charCodeAt(Ae),Q>55295&&Q<57344){if(!ve){if(Q>56319){(te-=3)>-1&&_e.push(239,191,189);continue}else if(Ae+1===J){(te-=3)>-1&&_e.push(239,191,189);continue}ve=Q;continue}if(Q<56320){(te-=3)>-1&&_e.push(239,191,189),ve=Q;continue}Q=(ve-55296<<10|Q-56320)+65536}else ve&&((te-=3)>-1&&_e.push(239,191,189));if(ve=null,Q<128){if((te-=1)<0)break;_e.push(Q)}else if(Q<2048){if((te-=2)<0)break;_e.push(Q>>6|192,Q&63|128)}else if(Q<65536){if((te-=3)<0)break;_e.push(Q>>12|224,Q>>6&63|128,Q&63|128)}else if(Q<1114112){if((te-=4)<0)break;_e.push(Q>>18|240,Q>>12&63|128,Q>>6&63|128,Q&63|128)}else throw new Error("Invalid code point")}return _e}function $(se){for(var te=[],Q=0;Q<se.length;++Q)te.push(se.charCodeAt(Q)&255);return te}function me(se,te){for(var Q,J,ve,_e=[],Ae=0;Ae<se.length&&!((te-=2)<0);++Ae)Q=se.charCodeAt(Ae),J=Q>>8,ve=Q%256,_e.push(ve),_e.push(J);return _e}function re(se){return T.toByteArray(be(se))}function ae(se,te,Q,J){for(var ve=0;ve<J&&!(ve+Q>=te.length||ve>=se.length);++ve)te[ve+Q]=se[ve];return ve}function Oe(se){return se!==se}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},k("buffer").Buffer)},{"base64-js":69,buffer:73,ieee754:195,isarray:198}],74:[function(k,z,o){z.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(k,z,o){z.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(k,z,o){/*!
|
|
|
* copy-to - index.js
|
|
|
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
|
|
|
* MIT Licensed
|
|
|
*/"use strict";var P=Array.prototype.slice;z.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=P.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(O=y[x],b[O]!==void 0)continue;b[O]=this.src[O]}return b}for(var x=0;x<y.length;x++){var O=y[x];if(!T(b,O))continue;var m=this.src.__lookupGetter__(O),e=this.src.__lookupSetter__(O);m&&b.__defineGetter__(O,m),e&&b.__defineSetter__(O,e),!m&&!e&&(b[O]=this.src[O])}return b},g.prototype.toCover=function(b){for(var y=this.keys||Object.keys(this.src),x=0;x<y.length;x++){var O=y[x];delete b[O];var m=this.src.__lookupGetter__(O),e=this.src.__lookupSetter__(O);m&&b.__defineGetter__(O,m),e&&b.__defineSetter__(O,e),!m&&!e&&(b[O]=this.src[O])}},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 T(b,y){return b[y]===void 0&&b.__lookupGetter__(y)===void 0&&b.__lookupSetter__(y)===void 0}},{}],77:[function(k,z,o){k("../../modules/es6.string.iterator"),k("../../modules/es6.array.from"),z.exports=k("../../modules/_core").Array.from},{"../../modules/_core":99,"../../modules/es6.array.from":168,"../../modules/es6.string.iterator":180}],78:[function(k,z,o){var P=k("../../modules/_core"),g=P.JSON||(P.JSON={stringify:JSON.stringify});z.exports=function(b){return g.stringify.apply(g,arguments)}},{"../../modules/_core":99}],79:[function(k,z,o){k("../../modules/es6.object.assign"),z.exports=k("../../modules/_core").Object.assign},{"../../modules/_core":99,"../../modules/es6.object.assign":171}],80:[function(k,z,o){k("../../modules/es6.object.create");var P=k("../../modules/_core").Object;z.exports=function(T,b){return P.create(T,b)}},{"../../modules/_core":99,"../../modules/es6.object.create":172}],81:[function(k,z,o){k("../../modules/es6.object.define-property");var P=k("../../modules/_core").Object;z.exports=function(T,b,y){return P.defineProperty(T,b,y)}},{"../../modules/_core":99,"../../modules/es6.object.define-property":173}],82:[function(k,z,o){k("../../modules/es7.object.entries"),z.exports=k("../../modules/_core").Object.entries},{"../../modules/_core":99,"../../modules/es7.object.entries":182}],83:[function(k,z,o){k("../../modules/es6.object.get-own-property-names");var P=k("../../modules/_core").Object;z.exports=function(T){return P.getOwnPropertyNames(T)}},{"../../modules/_core":99,"../../modules/es6.object.get-own-property-names":174}],84:[function(k,z,o){k("../../modules/es6.object.get-prototype-of"),z.exports=k("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":99,"../../modules/es6.object.get-prototype-of":175}],85:[function(k,z,o){k("../../modules/es6.object.keys"),z.exports=k("../../modules/_core").Object.keys},{"../../modules/_core":99,"../../modules/es6.object.keys":176}],86:[function(k,z,o){k("../modules/es6.object.to-string"),k("../modules/es6.string.iterator"),k("../modules/web.dom.iterable"),k("../modules/es6.promise"),k("../modules/es7.promise.finally"),k("../modules/es7.promise.try"),z.exports=k("../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(k,z,o){k("../modules/web.immediate"),z.exports=k("../modules/_core").setImmediate},{"../modules/_core":99,"../modules/web.immediate":188}],88:[function(k,z,o){k("../../modules/es6.string.from-code-point"),z.exports=k("../../modules/_core").String.fromCodePoint},{"../../modules/_core":99,"../../modules/es6.string.from-code-point":179}],89:[function(k,z,o){k("../../modules/es6.function.has-instance"),z.exports=k("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":165,"../../modules/es6.function.has-instance":170}],90:[function(k,z,o){k("../../modules/es6.symbol"),k("../../modules/es6.object.to-string"),k("../../modules/es7.symbol.async-iterator"),k("../../modules/es7.symbol.observable"),z.exports=k("../../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(k,z,o){k("../../modules/es6.string.iterator"),k("../../modules/web.dom.iterable"),z.exports=k("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":165,"../../modules/es6.string.iterator":180,"../../modules/web.dom.iterable":187}],92:[function(k,z,o){z.exports=function(P){if(typeof P!="function")throw TypeError(P+" is not a function!");return P}},{}],93:[function(k,z,o){z.exports=function(){}},{}],94:[function(k,z,o){z.exports=function(P,g,T,b){if(!(P instanceof g)||b!==void 0&&b in P)throw TypeError(T+": incorrect invocation!");return P}},{}],95:[function(k,z,o){var P=k("./_is-object");z.exports=function(g){if(!P(g))throw TypeError(g+" is not an object!");return g}},{"./_is-object":119}],96:[function(k,z,o){var P=k("./_to-iobject"),g=k("./_to-length"),T=k("./_to-absolute-index");z.exports=function(b){return function(y,x,O){var m=P(y),e=g(m.length),f=T(O,e),a;if(b&&x!=x){for(;e>f;)if(a=m[f++],a!=a)return!0}else for(;e>f;f++)if((b||f in m)&&m[f]===x)return b||f||0;return!b&&-1}}},{"./_to-absolute-index":156,"./_to-iobject":158,"./_to-length":159}],97:[function(k,z,o){var P=k("./_cof"),g=k("./_wks")("toStringTag"),T=P(function(){return arguments}())=="Arguments",b=function(y,x){try{return y[x]}catch(O){}};z.exports=function(y){var x,O,m;return y===void 0?"Undefined":y===null?"Null":typeof(O=b(x=Object(y),g))=="string"?O:T?P(x):(m=P(x))=="Object"&&typeof x.callee=="function"?"Arguments":m}},{"./_cof":98,"./_wks":166}],98:[function(k,z,o){var P={}.toString;z.exports=function(g){return P.call(g).slice(8,-1)}},{}],99:[function(k,z,o){var P=z.exports={version:"2.6.11"};typeof __e=="number"&&(__e=P)},{}],100:[function(k,z,o){"use strict";var P=k("./_object-dp"),g=k("./_property-desc");z.exports=function(T,b,y){b in T?P.f(T,b,g(0,y)):T[b]=y}},{"./_object-dp":132,"./_property-desc":146}],101:[function(k,z,o){var P=k("./_a-function");z.exports=function(g,T,b){if(P(g),T===void 0)return g;switch(b){case 1:return function(y){return g.call(T,y)};case 2:return function(y,x){return g.call(T,y,x)};case 3:return function(y,x,O){return g.call(T,y,x,O)}}return function(){return g.apply(T,arguments)}}},{"./_a-function":92}],102:[function(k,z,o){z.exports=function(P){if(P==null)throw TypeError("Can't call method on "+P);return P}},{}],103:[function(k,z,o){z.exports=!k("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":108}],104:[function(k,z,o){var P=k("./_is-object"),g=k("./_global").document,T=P(g)&&P(g.createElement);z.exports=function(b){return T?g.createElement(b):{}}},{"./_global":110,"./_is-object":119}],105:[function(k,z,o){z.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],106:[function(k,z,o){var P=k("./_object-keys"),g=k("./_object-gops"),T=k("./_object-pie");z.exports=function(b){var y=P(b),x=g.f;if(x)for(var O=x(b),m=T.f,e=0,f;O.length>e;)m.call(b,f=O[e++])&&y.push(f);return y}},{"./_object-gops":137,"./_object-keys":140,"./_object-pie":141}],107:[function(k,z,o){var P=k("./_global"),g=k("./_core"),T=k("./_ctx"),b=k("./_hide"),y=k("./_has"),x="prototype",O=function(m,e,f){var a=m&O.F,u=m&O.G,r=m&O.S,i=m&O.P,n=m&O.B,l=m&O.W,h=u?g:g[e]||(g[e]={}),d=h[x],s=u?P:r?P[e]:(P[e]||{})[x],c,w,E;u&&(f=e);for(c in f){if(w=!a&&s&&s[c]!==void 0,w&&y(h,c))continue;E=w?s[c]:f[c],h[c]=u&&typeof s[c]!="function"?f[c]:n&&w?T(E,P):l&&s[c]==E?function(v){var R=function(M,C,S){if(this instanceof v){switch(arguments.length){case 0:return new v;case 1:return new v(M);case 2:return new v(M,C)}return new v(M,C,S)}return v.apply(this,arguments)};return R[x]=v[x],R}(E):i&&typeof E=="function"?T(Function.call,E):E,i&&((h.virtual||(h.virtual={}))[c]=E,m&O.R&&d&&!d[c]&&b(d,c,E))}};O.F=1,O.G=2,O.S=4,O.P=8,O.B=16,O.W=32,O.U=64,O.R=128,z.exports=O},{"./_core":99,"./_ctx":101,"./_global":110,"./_has":111,"./_hide":112}],108:[function(k,z,o){z.exports=function(P){try{return!!P()}catch(g){return!0}}},{}],109:[function(k,z,o){var P=k("./_ctx"),g=k("./_iter-call"),T=k("./_is-array-iter"),b=k("./_an-object"),y=k("./_to-length"),x=k("./core.get-iterator-method"),O={},m={},o=z.exports=function(e,f,a,u,r){var i=r?function(){return e}:x(e),n=P(a,u,f?2:1),l=0,h,d,s,c;if(typeof i!="function")throw TypeError(e+" is not iterable!");if(T(i)){for(h=y(e.length);h>l;l++)if(c=f?n(b(d=e[l])[0],d[1]):n(e[l]),c===O||c===m)return c}else for(s=i.call(e);!(d=s.next()).done;)if(c=g(s,n,d.value,f),c===O||c===m)return c};o.BREAK=O,o.RETURN=m},{"./_an-object":95,"./_ctx":101,"./_is-array-iter":117,"./_iter-call":120,"./_to-length":159,"./core.get-iterator-method":167}],110:[function(k,z,o){var P=z.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=P)},{}],111:[function(k,z,o){var P={}.hasOwnProperty;z.exports=function(g,T){return P.call(g,T)}},{}],112:[function(k,z,o){var P=k("./_object-dp"),g=k("./_property-desc");z.exports=k("./_descriptors")?function(T,b,y){return P.f(T,b,g(1,y))}:function(T,b,y){return T[b]=y,T}},{"./_descriptors":103,"./_object-dp":132,"./_property-desc":146}],113:[function(k,z,o){var P=k("./_global").document;z.exports=P&&P.documentElement},{"./_global":110}],114:[function(k,z,o){z.exports=!k("./_descriptors")&&!k("./_fails")(function(){return Object.defineProperty(k("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":103,"./_dom-create":104,"./_fails":108}],115:[function(k,z,o){z.exports=function(P,g,T){var b=T===void 0;switch(g.length){case 0:return b?P():P.call(T);case 1:return b?P(g[0]):P.call(T,g[0]);case 2:return b?P(g[0],g[1]):P.call(T,g[0],g[1]);case 3:return b?P(g[0],g[1],g[2]):P.call(T,g[0],g[1],g[2]);case 4:return b?P(g[0],g[1],g[2],g[3]):P.call(T,g[0],g[1],g[2],g[3])}return P.apply(T,g)}},{}],116:[function(k,z,o){var P=k("./_cof");z.exports=Object("z").propertyIsEnumerable(0)?Object:function(g){return P(g)=="String"?g.split(""):Object(g)}},{"./_cof":98}],117:[function(k,z,o){var P=k("./_iterators"),g=k("./_wks")("iterator"),T=Array.prototype;z.exports=function(b){return b!==void 0&&(P.Array===b||T[g]===b)}},{"./_iterators":125,"./_wks":166}],118:[function(k,z,o){var P=k("./_cof");z.exports=Array.isArray||function(T){return P(T)=="Array"}},{"./_cof":98}],119:[function(k,z,o){z.exports=function(P){return typeof P=="object"?P!==null:typeof P=="function"}},{}],120:[function(k,z,o){var P=k("./_an-object");z.exports=function(g,T,b,y){try{return y?T(P(b)[0],b[1]):T(b)}catch(O){var x=g.return;throw x!==void 0&&P(x.call(g)),O}}},{"./_an-object":95}],121:[function(k,z,o){"use strict";var P=k("./_object-create"),g=k("./_property-desc"),T=k("./_set-to-string-tag"),b={};k("./_hide")(b,k("./_wks")("iterator"),function(){return this}),z.exports=function(y,x,O){y.prototype=P(b,{next:g(1,O)}),T(y,x+" Iterator")}},{"./_hide":112,"./_object-create":131,"./_property-desc":146,"./_set-to-string-tag":150,"./_wks":166}],122:[function(k,z,o){"use strict";var P=k("./_library"),g=k("./_export"),T=k("./_redefine"),b=k("./_hide"),y=k("./_iterators"),x=k("./_iter-create"),O=k("./_set-to-string-tag"),m=k("./_object-gpo"),e=k("./_wks")("iterator"),f=!([].keys&&"next"in[].keys()),a="@@iterator",u="keys",r="values",i=function(){return this};z.exports=function(n,l,h,d,s,c,w){x(h,l,d);var E=function(H){if(!f&&H in C)return C[H];switch(H){case u:return function(){return new h(this,H)};case r:return function(){return new h(this,H)}}return function(){return new h(this,H)}},v=l+" Iterator",R=s==r,M=!1,C=n.prototype,S=C[e]||C[a]||s&&C[s],_=S||E(s),A=s?R?E("entries"):_:void 0,U=l=="Array"&&C.entries||S,L,N,V;if(U&&(V=m(U.call(new n)),V!==Object.prototype&&V.next&&(O(V,v,!0),!P&&typeof V[e]!="function"&&b(V,e,i))),R&&S&&S.name!==r&&(M=!0,_=function(){return S.call(this)}),(!P||w)&&(f||M||!C[e])&&b(C,e,_),y[l]=_,y[v]=i,s)if(L={values:R?_:E(r),keys:c?_:E(u),entries:A},w)for(N in L)N in C||T(C,N,L[N]);else g(g.P+g.F*(f||M),l,L);return L}},{"./_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(k,z,o){var P=k("./_wks")("iterator"),g=!1;try{var T=[7][P]();T.return=function(){g=!0},Array.from(T,function(){throw 2})}catch(b){}z.exports=function(b,y){if(!y&&!g)return!1;var x=!1;try{var O=[7],m=O[P]();m.next=function(){return{done:x=!0}},O[P]=function(){return m},b(O)}catch(e){}return x}},{"./_wks":166}],124:[function(k,z,o){z.exports=function(P,g){return{value:g,done:!!P}}},{}],125:[function(k,z,o){z.exports={}},{}],126:[function(k,z,o){z.exports=!0},{}],127:[function(k,z,o){var P=k("./_uid")("meta"),g=k("./_is-object"),T=k("./_has"),b=k("./_object-dp").f,y=0,x=Object.isExtensible||function(){return!0},O=!k("./_fails")(function(){return x(Object.preventExtensions({}))}),m=function(r){b(r,P,{value:{i:"O"+ ++y,w:{}}})},e=function(r,i){if(!g(r))return typeof r=="symbol"?r:(typeof r=="string"?"S":"P")+r;if(!T(r,P)){if(!x(r))return"F";if(!i)return"E";m(r)}return r[P].i},f=function(r,i){if(!T(r,P)){if(!x(r))return!0;if(!i)return!1;m(r)}return r[P].w},a=function(r){return O&&u.NEED&&x(r)&&!T(r,P)&&m(r),r},u=z.exports={KEY:P,NEED:!1,fastKey:e,getWeak:f,onFreeze:a}},{"./_fails":108,"./_has":111,"./_is-object":119,"./_object-dp":132,"./_uid":162}],128:[function(k,z,o){var P=k("./_global"),g=k("./_task").set,T=P.MutationObserver||P.WebKitMutationObserver,b=P.process,y=P.Promise,x=k("./_cof")(b)=="process";z.exports=function(){var O,m,e,f=function(){var i,n;for(x&&(i=b.domain)&&i.exit();O;){n=O.fn,O=O.next;try{n()}catch(l){throw O?e():m=void 0,l}}m=void 0,i&&i.enter()};if(x)e=function(){b.nextTick(f)};else if(T&&!(P.navigator&&P.navigator.standalone)){var a=!0,u=document.createTextNode("");new T(f).observe(u,{characterData:!0}),e=function(){u.data=a=!a}}else if(y&&y.resolve){var r=y.resolve(void 0);e=function(){r.then(f)}}else e=function(){g.call(P,f)};return function(i){var n={fn:i,next:void 0};m&&(m.next=n),O||(O=n,e()),m=n}}},{"./_cof":98,"./_global":110,"./_task":155}],129:[function(k,z,o){"use strict";var P=k("./_a-function");function g(T){var b,y;this.promise=new T(function(x,O){if(b!==void 0||y!==void 0)throw TypeError("Bad Promise constructor");b=x,y=O}),this.resolve=P(b),this.reject=P(y)}z.exports.f=function(T){return new g(T)}},{"./_a-function":92}],130:[function(k,z,o){"use strict";var P=k("./_descriptors"),g=k("./_object-keys"),T=k("./_object-gops"),b=k("./_object-pie"),y=k("./_to-object"),x=k("./_iobject"),O=Object.assign;z.exports=!O||k("./_fails")(function(){var m={},e={},f=Symbol(),a="abcdefghijklmnopqrst";return m[f]=7,a.split("").forEach(function(u){e[u]=u}),O({},m)[f]!=7||Object.keys(O({},e)).join("")!=a})?function(e,f){for(var a=y(e),u=arguments.length,r=1,i=T.f,n=b.f;u>r;)for(var l=x(arguments[r++]),h=i?g(l).concat(i(l)):g(l),d=h.length,s=0,c;d>s;)c=h[s++],(!P||n.call(l,c))&&(a[c]=l[c]);return a}:O},{"./_descriptors":103,"./_fails":108,"./_iobject":116,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_to-object":160}],131:[function(k,z,o){var P=k("./_an-object"),g=k("./_object-dps"),T=k("./_enum-bug-keys"),b=k("./_shared-key")("IE_PROTO"),y=function(){},x="prototype",O=function(){var m=k("./_dom-create")("iframe"),e=T.length,f="<",a=">",u;for(m.style.display="none",k("./_html").appendChild(m),m.src="javascript:",u=m.contentWindow.document,u.open(),u.write(f+"script"+a+"document.F=Object"+f+"/script"+a),u.close(),O=u.F;e--;)delete O[x][T[e]];return O()};z.exports=Object.create||function(e,f){var a;return e!==null?(y[x]=P(e),a=new y,y[x]=null,a[b]=e):a=O(),f===void 0?a:g(a,f)}},{"./_an-object":95,"./_dom-create":104,"./_enum-bug-keys":105,"./_html":113,"./_object-dps":133,"./_shared-key":151}],132:[function(k,z,o){var P=k("./_an-object"),g=k("./_ie8-dom-define"),T=k("./_to-primitive"),b=Object.defineProperty;o.f=k("./_descriptors")?Object.defineProperty:function(x,O,m){if(P(x),O=T(O,!0),P(m),g)try{return b(x,O,m)}catch(e){}if("get"in m||"set"in m)throw TypeError("Accessors not supported!");return"value"in m&&(x[O]=m.value),x}},{"./_an-object":95,"./_descriptors":103,"./_ie8-dom-define":114,"./_to-primitive":161}],133:[function(k,z,o){var P=k("./_object-dp"),g=k("./_an-object"),T=k("./_object-keys");z.exports=k("./_descriptors")?Object.defineProperties:function(y,x){g(y);for(var O=T(x),m=O.length,e=0,f;m>e;)P.f(y,f=O[e++],x[f]);return y}},{"./_an-object":95,"./_descriptors":103,"./_object-dp":132,"./_object-keys":140}],134:[function(k,z,o){var P=k("./_object-pie"),g=k("./_property-desc"),T=k("./_to-iobject"),b=k("./_to-primitive"),y=k("./_has"),x=k("./_ie8-dom-define"),O=Object.getOwnPropertyDescriptor;o.f=k("./_descriptors")?O:function(e,f){if(e=T(e),f=b(f,!0),x)try{return O(e,f)}catch(a){}if(y(e,f))return g(!P.f.call(e,f),e[f])}},{"./_descriptors":103,"./_has":111,"./_ie8-dom-define":114,"./_object-pie":141,"./_property-desc":146,"./_to-iobject":158,"./_to-primitive":161}],135:[function(k,z,o){var P=k("./_to-iobject"),g=k("./_object-gopn").f,T={}.toString,b=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],y=function(x){try{return g(x)}catch(O){return b.slice()}};z.exports.f=function(O){return b&&T.call(O)=="[object Window]"?y(O):g(P(O))}},{"./_object-gopn":136,"./_to-iobject":158}],136:[function(k,z,o){var P=k("./_object-keys-internal"),g=k("./_enum-bug-keys").concat("length","prototype");o.f=Object.getOwnPropertyNames||function(b){return P(b,g)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],137:[function(k,z,o){o.f=Object.getOwnPropertySymbols},{}],138:[function(k,z,o){var P=k("./_has"),g=k("./_to-object"),T=k("./_shared-key")("IE_PROTO"),b=Object.prototype;z.exports=Object.getPrototypeOf||function(y){return y=g(y),P(y,T)?y[T]: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(k,z,o){var P=k("./_has"),g=k("./_to-iobject"),T=k("./_array-includes")(!1),b=k("./_shared-key")("IE_PROTO");z.exports=function(y,x){var O=g(y),m=0,e=[],f;for(f in O)f!=b&&(P(O,f)&&e.push(f));for(;x.length>m;)P(O,f=x[m++])&&(~T(e,f)||e.push(f));return e}},{"./_array-includes":96,"./_has":111,"./_shared-key":151,"./_to-iobject":158}],140:[function(k,z,o){var P=k("./_object-keys-internal"),g=k("./_enum-bug-keys");z.exports=Object.keys||function(b){return P(b,g)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],141:[function(k,z,o){o.f={}.propertyIsEnumerable},{}],142:[function(k,z,o){var P=k("./_export"),g=k("./_core"),T=k("./_fails");z.exports=function(b,y){var x=(g.Object||{})[b]||Object[b],O={};O[b]=y(x),P(P.S+P.F*T(function(){x(1)}),"Object",O)}},{"./_core":99,"./_export":107,"./_fails":108}],143:[function(k,z,o){var P=k("./_descriptors"),g=k("./_object-keys"),T=k("./_to-iobject"),b=k("./_object-pie").f;z.exports=function(y){return function(x){for(var O=T(x),m=g(O),e=m.length,f=0,a=[],u;e>f;)u=m[f++],(!P||b.call(O,u))&&a.push(y?[u,O[u]]:O[u]);return a}}},{"./_descriptors":103,"./_object-keys":140,"./_object-pie":141,"./_to-iobject":158}],144:[function(k,z,o){z.exports=function(P){try{return{e:!1,v:P()}}catch(g){return{e:!0,v:g}}}},{}],145:[function(k,z,o){var P=k("./_an-object"),g=k("./_is-object"),T=k("./_new-promise-capability");z.exports=function(b,y){if(P(b),g(y)&&y.constructor===b)return y;var x=T.f(b),O=x.resolve;return O(y),x.promise}},{"./_an-object":95,"./_is-object":119,"./_new-promise-capability":129}],146:[function(k,z,o){z.exports=function(P,g){return{enumerable:!(P&1),configurable:!(P&2),writable:!(P&4),value:g}}},{}],147:[function(k,z,o){var P=k("./_hide");z.exports=function(g,T,b){for(var y in T)b&&g[y]?g[y]=T[y]:P(g,y,T[y]);return g}},{"./_hide":112}],148:[function(k,z,o){z.exports=k("./_hide")},{"./_hide":112}],149:[function(k,z,o){"use strict";var P=k("./_global"),g=k("./_core"),T=k("./_object-dp"),b=k("./_descriptors"),y=k("./_wks")("species");z.exports=function(x){var O=typeof g[x]=="function"?g[x]:P[x];b&&O&&!O[y]&&T.f(O,y,{configurable:!0,get:function(){return this}})}},{"./_core":99,"./_descriptors":103,"./_global":110,"./_object-dp":132,"./_wks":166}],150:[function(k,z,o){var P=k("./_object-dp").f,g=k("./_has"),T=k("./_wks")("toStringTag");z.exports=function(b,y,x){b&&!g(b=x?b:b.prototype,T)&&P(b,T,{configurable:!0,value:y})}},{"./_has":111,"./_object-dp":132,"./_wks":166}],151:[function(k,z,o){var P=k("./_shared")("keys"),g=k("./_uid");z.exports=function(T){return P[T]||(P[T]=g(T))}},{"./_shared":152,"./_uid":162}],152:[function(k,z,o){var P=k("./_core"),g=k("./_global"),T="__core-js_shared__",b=g[T]||(g[T]={});(z.exports=function(y,x){return b[y]||(b[y]=x!==void 0?x:{})})("versions",[]).push({version:P.version,mode:k("./_library")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":99,"./_global":110,"./_library":126}],153:[function(k,z,o){var P=k("./_an-object"),g=k("./_a-function"),T=k("./_wks")("species");z.exports=function(b,y){var x=P(b).constructor,O;return x===void 0||(O=P(x)[T])==null?y:g(O)}},{"./_a-function":92,"./_an-object":95,"./_wks":166}],154:[function(k,z,o){var P=k("./_to-integer"),g=k("./_defined");z.exports=function(T){return function(b,y){var x=String(g(b)),O=P(y),m=x.length,e,f;return O<0||O>=m?T?"":void 0:(e=x.charCodeAt(O),e<55296||e>56319||O+1===m||(f=x.charCodeAt(O+1))<56320||f>57343?T?x.charAt(O):e:T?x.slice(O,O+2):(e-55296<<10)+(f-56320)+65536)}}},{"./_defined":102,"./_to-integer":157}],155:[function(k,z,o){var P=k("./_ctx"),g=k("./_invoke"),T=k("./_html"),b=k("./_dom-create"),y=k("./_global"),x=y.process,O=y.setImmediate,m=y.clearImmediate,e=y.MessageChannel,f=y.Dispatch,a=0,u={},r="onreadystatechange",i,n,l,h=function(){var s=+this;if(u.hasOwnProperty(s)){var c=u[s];delete u[s],c()}},d=function(s){h.call(s.data)};(!O||!m)&&(O=function(c){for(var w=[],E=1;arguments.length>E;)w.push(arguments[E++]);return u[++a]=function(){g(typeof c=="function"?c:Function(c),w)},i(a),a},m=function(c){delete u[c]},k("./_cof")(x)=="process"?i=function(s){x.nextTick(P(h,s,1))}:f&&f.now?i=function(s){f.now(P(h,s,1))}:e?(n=new e,l=n.port2,n.port1.onmessage=d,i=P(l.postMessage,l,1)):y.addEventListener&&typeof postMessage=="function"&&!y.importScripts?(i=function(s){y.postMessage(s+"","*")},y.addEventListener("message",d,!1)):r in b("script")?i=function(s){T.appendChild(b("script"))[r]=function(){T.removeChild(this),h.call(s)}}:i=function(s){setTimeout(P(h,s,1),0)}),z.exports={set:O,clear:m}},{"./_cof":98,"./_ctx":101,"./_dom-create":104,"./_global":110,"./_html":113,"./_invoke":115}],156:[function(k,z,o){var P=k("./_to-integer"),g=Math.max,T=Math.min;z.exports=function(b,y){return b=P(b),b<0?g(b+y,0):T(b,y)}},{"./_to-integer":157}],157:[function(k,z,o){var P=Math.ceil,g=Math.floor;z.exports=function(T){return isNaN(T=+T)?0:(T>0?g:P)(T)}},{}],158:[function(k,z,o){var P=k("./_iobject"),g=k("./_defined");z.exports=function(T){return P(g(T))}},{"./_defined":102,"./_iobject":116}],159:[function(k,z,o){var P=k("./_to-integer"),g=Math.min;z.exports=function(T){return T>0?g(P(T),9007199254740991):0}},{"./_to-integer":157}],160:[function(k,z,o){var P=k("./_defined");z.exports=function(g){return Object(P(g))}},{"./_defined":102}],161:[function(k,z,o){var P=k("./_is-object");z.exports=function(g,T){if(!P(g))return g;var b,y;if(T&&typeof(b=g.toString)=="function"&&!P(y=b.call(g)))return y;if(typeof(b=g.valueOf)=="function"&&!P(y=b.call(g)))return y;if(!T&&typeof(b=g.toString)=="function"&&!P(y=b.call(g)))return y;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":119}],162:[function(k,z,o){var P=0,g=Math.random();z.exports=function(T){return"Symbol(".concat(T===void 0?"":T,")_",(++P+g).toString(36))}},{}],163:[function(k,z,o){var P=k("./_global"),g=P.navigator;z.exports=g&&g.userAgent||""},{"./_global":110}],164:[function(k,z,o){var P=k("./_global"),g=k("./_core"),T=k("./_library"),b=k("./_wks-ext"),y=k("./_object-dp").f;z.exports=function(x){var O=g.Symbol||(g.Symbol=T?{}:P.Symbol||{});x.charAt(0)!="_"&&!(x in O)&&y(O,x,{value:b.f(x)})}},{"./_core":99,"./_global":110,"./_library":126,"./_object-dp":132,"./_wks-ext":165}],165:[function(k,z,o){o.f=k("./_wks")},{"./_wks":166}],166:[function(k,z,o){var P=k("./_shared")("wks"),g=k("./_uid"),T=k("./_global").Symbol,b=typeof T=="function",y=z.exports=function(x){return P[x]||(P[x]=b&&T[x]||(b?T:g)("Symbol."+x))};y.store=P},{"./_global":110,"./_shared":152,"./_uid":162}],167:[function(k,z,o){var P=k("./_classof"),g=k("./_wks")("iterator"),T=k("./_iterators");z.exports=k("./_core").getIteratorMethod=function(b){if(b!=null)return b[g]||b["@@iterator"]||T[P(b)]}},{"./_classof":97,"./_core":99,"./_iterators":125,"./_wks":166}],168:[function(k,z,o){"use strict";var P=k("./_ctx"),g=k("./_export"),T=k("./_to-object"),b=k("./_iter-call"),y=k("./_is-array-iter"),x=k("./_to-length"),O=k("./_create-property"),m=k("./core.get-iterator-method");g(g.S+g.F*!k("./_iter-detect")(function(e){Array.from(e)}),"Array",{from:function(f){var a=T(f),u=typeof this=="function"?this:Array,r=arguments.length,i=r>1?arguments[1]:void 0,n=i!==void 0,l=0,h=m(a),d,s,c,w;if(n&&(i=P(i,r>2?arguments[2]:void 0,2)),h!=null&&!(u==Array&&y(h)))for(w=h.call(a),s=new u;!(c=w.next()).done;l++)O(s,l,n?b(w,i,[c.value,l],!0):c.value);else for(d=x(a.length),s=new u(d);d>l;l++)O(s,l,n?i(a[l],l):a[l]);return s.length=l,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(k,z,o){"use strict";var P=k("./_add-to-unscopables"),g=k("./_iter-step"),T=k("./_iterators"),b=k("./_to-iobject");z.exports=k("./_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,O=this._i++;return!y||O>=y.length?(this._t=void 0,g(1)):x=="keys"?g(0,O):x=="values"?g(0,y[O]):g(0,[O,y[O]])},"values"),T.Arguments=T.Array,P("keys"),P("values"),P("entries")},{"./_add-to-unscopables":93,"./_iter-define":122,"./_iter-step":124,"./_iterators":125,"./_to-iobject":158}],170:[function(k,z,o){"use strict";var P=k("./_is-object"),g=k("./_object-gpo"),T=k("./_wks")("hasInstance"),b=Function.prototype;T in b||k("./_object-dp").f(b,T,{value:function(y){if(typeof this!="function"||!P(y))return!1;if(!P(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(k,z,o){var P=k("./_export");P(P.S+P.F,"Object",{assign:k("./_object-assign")})},{"./_export":107,"./_object-assign":130}],172:[function(k,z,o){var P=k("./_export");P(P.S,"Object",{create:k("./_object-create")})},{"./_export":107,"./_object-create":131}],173:[function(k,z,o){var P=k("./_export");P(P.S+P.F*!k("./_descriptors"),"Object",{defineProperty:k("./_object-dp").f})},{"./_descriptors":103,"./_export":107,"./_object-dp":132}],174:[function(k,z,o){k("./_object-sap")("getOwnPropertyNames",function(){return k("./_object-gopn-ext").f})},{"./_object-gopn-ext":135,"./_object-sap":142}],175:[function(k,z,o){var P=k("./_to-object"),g=k("./_object-gpo");k("./_object-sap")("getPrototypeOf",function(){return function(b){return g(P(b))}})},{"./_object-gpo":138,"./_object-sap":142,"./_to-object":160}],176:[function(k,z,o){var P=k("./_to-object"),g=k("./_object-keys");k("./_object-sap")("keys",function(){return function(b){return g(P(b))}})},{"./_object-keys":140,"./_object-sap":142,"./_to-object":160}],177:[function(k,z,o){arguments[4][71][0].apply(o,arguments)},{dup:71}],178:[function(k,z,o){"use strict";var P=k("./_library"),g=k("./_global"),T=k("./_ctx"),b=k("./_classof"),y=k("./_export"),x=k("./_is-object"),O=k("./_a-function"),m=k("./_an-instance"),e=k("./_for-of"),f=k("./_species-constructor"),a=k("./_task").set,u=k("./_microtask")(),r=k("./_new-promise-capability"),i=k("./_perform"),n=k("./_user-agent"),l=k("./_promise-resolve"),h="Promise",d=g.TypeError,s=g.process,c=s&&s.versions,w=c&&c.v8||"",E=g[h],v=b(s)=="process",R=function(){},M,C,S,_,A=C=r.f,U=!!function(){try{var I=E.resolve(1),K=(I.constructor={})[k("./_wks")("species")]=function(ee){ee(R,R)};return(v||typeof PromiseRejectionEvent=="function")&&I.then(R)instanceof K&&w.indexOf("6.6")!==0&&n.indexOf("Chrome/66")===-1}catch(ee){}}(),L=function(I){var K;return x(I)&&typeof(K=I.then)=="function"?K:!1},N=function(I,K){if(I._n)return;I._n=!0;var ee=I._c;u(function(){for(var he=I._v,de=I._s==1,Se=0,Te=function(ce){var be=de?ce.ok:ce.fail,Ee=ce.resolve,ue=ce.reject,le=ce.domain,$,me,re;try{be?(de||(I._h==2&&D(I),I._h=1),be===!0?$=he:(le&&le.enter(),$=be(he),le&&(le.exit(),re=!0)),$===ce.promise?ue(d("Promise-chain cycle")):(me=L($))?me.call($,Ee,ue):Ee($)):ue(he)}catch(ae){le&&!re&&le.exit(),ue(ae)}};ee.length>Se;)Te(ee[Se++]);I._c=[],I._n=!1,K&&!I._h&&V(I)})},V=function(I){a.call(g,function(){var K=I._v,ee=H(I),he,de,Se;if(ee&&(he=i(function(){v?s.emit("unhandledRejection",K,I):(de=g.onunhandledrejection)?de({promise:I,reason:K}):(Se=g.console)&&Se.error&&Se.error("Unhandled promise rejection",K)}),I._h=v||H(I)?2:1),I._a=void 0,ee&&he.e)throw he.v})},H=function(I){return I._h!==1&&(I._a||I._c).length===0},D=function(I){a.call(g,function(){var K;v?s.emit("rejectionHandled",I):(K=g.onrejectionhandled)&&K({promise:I,reason:I._v})})},W=function(I){var K=this;if(K._d)return;K._d=!0,K=K._w||K,K._v=I,K._s=2,K._a||(K._a=K._c.slice()),N(K,!0)},F=function(I){var K=this,ee;if(K._d)return;K._d=!0,K=K._w||K;try{if(K===I)throw d("Promise can't be resolved itself");(ee=L(I))?u(function(){var he={_w:K,_d:!1};try{ee.call(I,T(F,he,1),T(W,he,1))}catch(de){W.call(he,de)}}):(K._v=I,K._s=1,N(K,!1))}catch(he){W.call({_w:K,_d:!1},he)}};U||(E=function(K){m(this,E,h,"_h"),O(K),M.call(this);try{K(T(F,this,1),T(W,this,1))}catch(ee){W.call(this,ee)}},M=function(K){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},M.prototype=k("./_redefine-all")(E.prototype,{then:function(K,ee){var he=A(f(this,E));return he.ok=typeof K=="function"?K:!0,he.fail=typeof ee=="function"&&ee,he.domain=v?s.domain:void 0,this._c.push(he),this._a&&this._a.push(he),this._s&&N(this,!1),he.promise},catch:function(I){return this.then(void 0,I)}}),S=function(){var I=new M;this.promise=I,this.resolve=T(F,I,1),this.reject=T(W,I,1)},r.f=A=function(I){return I===E||I===_?new S(I):C(I)}),y(y.G+y.W+y.F*!U,{Promise:E}),k("./_set-to-string-tag")(E,h),k("./_set-species")(h),_=k("./_core")[h],y(y.S+y.F*!U,h,{reject:function(K){var ee=A(this),he=ee.reject;return he(K),ee.promise}}),y(y.S+y.F*(P||!U),h,{resolve:function(K){return l(P&&this===_?E:this,K)}}),y(y.S+y.F*!(U&&k("./_iter-detect")(function(I){E.all(I).catch(R)})),h,{all:function(K){var ee=this,he=A(ee),de=he.resolve,Se=he.reject,Te=i(function(){var ce=[],be=0,Ee=1;e(K,!1,function(ue){var le=be++,$=!1;ce.push(void 0),Ee++,ee.resolve(ue).then(function(me){if($)return;$=!0,ce[le]=me,--Ee||de(ce)},Se)}),--Ee||de(ce)});return Te.e&&Se(Te.v),he.promise},race:function(K){var ee=this,he=A(ee),de=he.reject,Se=i(function(){e(K,!1,function(Te){ee.resolve(Te).then(he.resolve,de)})});return Se.e&&de(Se.v),he.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(k,z,o){var P=k("./_export"),g=k("./_to-absolute-index"),T=String.fromCharCode,b=String.fromCodePoint;P(P.S+P.F*(!!b&&b.length!=1),"String",{fromCodePoint:function(x){for(var O=[],m=arguments.length,e=0,f;m>e;){if(f=+arguments[e++],g(f,1114111)!==f)throw RangeError(f+" is not a valid code point");O.push(f<65536?T(f):T(((f-=65536)>>10)+55296,f%1024+56320))}return O.join("")}})},{"./_export":107,"./_to-absolute-index":156}],180:[function(k,z,o){"use strict";var P=k("./_string-at")(!0);k("./_iter-define")(String,"String",function(g){this._t=String(g),this._i=0},function(){var g=this._t,T=this._i,b;return T>=g.length?{value:void 0,done:!0}:(b=P(g,T),this._i+=b.length,{value:b,done:!1})})},{"./_iter-define":122,"./_string-at":154}],181:[function(k,z,o){"use strict";var P=k("./_global"),g=k("./_has"),T=k("./_descriptors"),b=k("./_export"),y=k("./_redefine"),x=k("./_meta").KEY,O=k("./_fails"),m=k("./_shared"),e=k("./_set-to-string-tag"),f=k("./_uid"),a=k("./_wks"),u=k("./_wks-ext"),r=k("./_wks-define"),i=k("./_enum-keys"),n=k("./_is-array"),l=k("./_an-object"),h=k("./_is-object"),d=k("./_to-object"),s=k("./_to-iobject"),c=k("./_to-primitive"),w=k("./_property-desc"),E=k("./_object-create"),v=k("./_object-gopn-ext"),R=k("./_object-gopd"),M=k("./_object-gops"),C=k("./_object-dp"),S=k("./_object-keys"),_=R.f,A=C.f,U=v.f,L=P.Symbol,N=P.JSON,V=N&&N.stringify,H="prototype",D=a("_hidden"),W=a("toPrimitive"),F={}.propertyIsEnumerable,I=m("symbol-registry"),K=m("symbols"),ee=m("op-symbols"),he=Object[H],de=typeof L=="function"&&!!M.f,Se=P.QObject,Te=!Se||!Se[H]||!Se[H].findChild,ce=T&&O(function(){return E(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a!=7})?function(_e,Ae,Qe){var tt=_(he,Ae);tt&&delete he[Ae],A(_e,Ae,Qe),tt&&_e!==he&&A(he,Ae,tt)}:A,be=function(_e){var Ae=K[_e]=E(L[H]);return Ae._k=_e,Ae},Ee=de&&typeof L.iterator=="symbol"?function(_e){return typeof _e=="symbol"}:function(_e){return _e instanceof L},ue=function(Ae,Qe,tt){return Ae===he&&ue(ee,Qe,tt),l(Ae),Qe=c(Qe,!0),l(tt),g(K,Qe)?(tt.enumerable?(g(Ae,D)&&Ae[D][Qe]&&(Ae[D][Qe]=!1),tt=E(tt,{enumerable:w(0,!1)})):(g(Ae,D)||A(Ae,D,w(1,{})),Ae[D][Qe]=!0),ce(Ae,Qe,tt)):A(Ae,Qe,tt)},le=function(Ae,Qe){l(Ae);for(var tt=i(Qe=s(Qe)),dt=0,mt=tt.length,vt;mt>dt;)ue(Ae,vt=tt[dt++],Qe[vt]);return Ae},$=function(Ae,Qe){return Qe===void 0?E(Ae):le(E(Ae),Qe)},me=function(Ae){var Qe=F.call(this,Ae=c(Ae,!0));return this===he&&g(K,Ae)&&!g(ee,Ae)?!1:Qe||!g(this,Ae)||!g(K,Ae)||g(this,D)&&this[D][Ae]?Qe:!0},re=function(Ae,Qe){if(Ae=s(Ae),Qe=c(Qe,!0),Ae===he&&g(K,Qe)&&!g(ee,Qe))return;var tt=_(Ae,Qe);return tt&&g(K,Qe)&&!(g(Ae,D)&&Ae[D][Qe])&&(tt.enumerable=!0),tt},ae=function(Ae){for(var Qe=U(s(Ae)),tt=[],dt=0,mt;Qe.length>dt;)!g(K,mt=Qe[dt++])&&mt!=D&&mt!=x&&tt.push(mt);return tt},Oe=function(Ae){for(var Qe=Ae===he,tt=U(Qe?ee:s(Ae)),dt=[],mt=0,vt;tt.length>mt;)g(K,vt=tt[mt++])&&(Qe?g(he,vt):!0)&&dt.push(K[vt]);return dt};de||(L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var Ae=f(arguments.length>0?arguments[0]:void 0),Qe=function(tt){this===he&&Qe.call(ee,tt),g(this,D)&&g(this[D],Ae)&&(this[D][Ae]=!1),ce(this,Ae,w(1,tt))};return T&&Te&&ce(he,Ae,{configurable:!0,set:Qe}),be(Ae)},y(L[H],"toString",function(){return this._k}),R.f=re,C.f=ue,k("./_object-gopn").f=v.f=ae,k("./_object-pie").f=me,M.f=Oe,T&&!k("./_library")&&y(he,"propertyIsEnumerable",me,!0),u.f=function(_e){return be(a(_e))}),b(b.G+b.W+b.F*!de,{Symbol:L});for(var se="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),te=0;se.length>te;)a(se[te++]);for(var Q=S(a.store),J=0;Q.length>J;)r(Q[J++]);b(b.S+b.F*!de,"Symbol",{for:function(_e){return g(I,_e+="")?I[_e]:I[_e]=L(_e)},keyFor:function(Ae){if(!Ee(Ae))throw TypeError(Ae+" is not a symbol!");for(var Qe in I)if(I[Qe]===Ae)return Qe},useSetter:function(){Te=!0},useSimple:function(){Te=!1}}),b(b.S+b.F*!de,"Object",{create:$,defineProperty:ue,defineProperties:le,getOwnPropertyDescriptor:re,getOwnPropertyNames:ae,getOwnPropertySymbols:Oe});var ve=O(function(){M.f(1)});b(b.S+b.F*ve,"Object",{getOwnPropertySymbols:function(Ae){return M.f(d(Ae))}}),N&&b(b.S+b.F*(!de||O(function(){var _e=L();return V([_e])!="[null]"||V({a:_e})!="{}"||V(Object(_e))!="{}"})),"JSON",{stringify:function(Ae){for(var Qe=[Ae],tt=1,dt,mt;arguments.length>tt;)Qe.push(arguments[tt++]);return mt=dt=Qe[1],!h(dt)&&Ae===void 0||Ee(Ae)?void 0:(n(dt)||(dt=function(vt,yt){if(typeof mt=="function"&&(yt=mt.call(this,vt,yt)),!Ee(yt))return yt}),Qe[1]=dt,V.apply(N,Qe))}}),L[H][W]||k("./_hide")(L[H],W,L[H].valueOf),e(L,"Symbol"),e(Math,"Math",!0),e(P.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(k,z,o){var P=k("./_export"),g=k("./_object-to-array")(!0);P(P.S,"Object",{entries:function(b){return g(b)}})},{"./_export":107,"./_object-to-array":143}],183:[function(k,z,o){"use strict";var P=k("./_export"),g=k("./_core"),T=k("./_global"),b=k("./_species-constructor"),y=k("./_promise-resolve");P(P.P+P.R,"Promise",{finally:function(x){var O=b(this,g.Promise||T.Promise),m=typeof x=="function";return this.then(m?function(e){return y(O,x()).then(function(){return e})}:x,m?function(e){return y(O,x()).then(function(){throw e})}:x)}})},{"./_core":99,"./_export":107,"./_global":110,"./_promise-resolve":145,"./_species-constructor":153}],184:[function(k,z,o){"use strict";var P=k("./_export"),g=k("./_new-promise-capability"),T=k("./_perform");P(P.S,"Promise",{try:function(b){var y=g.f(this),x=T(b);return(x.e?y.reject:y.resolve)(x.v),y.promise}})},{"./_export":107,"./_new-promise-capability":129,"./_perform":144}],185:[function(k,z,o){k("./_wks-define")("asyncIterator")},{"./_wks-define":164}],186:[function(k,z,o){k("./_wks-define")("observable")},{"./_wks-define":164}],187:[function(k,z,o){k("./es6.array.iterator");for(var P=k("./_global"),g=k("./_hide"),T=k("./_iterators"),b=k("./_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 O=y[x],m=P[O],e=m&&m.prototype;e&&!e[b]&&g(e,b,O),T[O]=T.Array}},{"./_global":110,"./_hide":112,"./_iterators":125,"./_wks":166,"./es6.array.iterator":169}],188:[function(k,z,o){var P=k("./_export"),g=k("./_task");P(P.G+P.B,{setImmediate:g.set,clearImmediate:g.clear})},{"./_export":107,"./_task":155}],189:[function(k,z,o){(function(P){"use strict";var g=k("babel-runtime/helpers/typeof"),T=b(g);function b(c){return c&&c.__esModule?c:{default:c}}function y(c){return Array.isArray?Array.isArray(c):s(c)==="[object Array]"}o.isArray=y;function x(c){return typeof c=="boolean"}o.isBoolean=x;function O(c){return c===null}o.isNull=O;function m(c){return c==null}o.isNullOrUndefined=m;function e(c){return typeof c=="number"}o.isNumber=e;function f(c){return typeof c=="string"}o.isString=f;function a(c){return(typeof c=="undefined"?"undefined":(0,T.default)(c))==="symbol"}o.isSymbol=a;function u(c){return c===void 0}o.isUndefined=u;function r(c){return s(c)==="[object RegExp]"}o.isRegExp=r;function i(c){return(typeof c=="undefined"?"undefined":(0,T.default)(c))==="object"&&c!==null}o.isObject=i;function n(c){return s(c)==="[object Date]"}o.isDate=n;function l(c){return s(c)==="[object Error]"||c instanceof Error}o.isError=l;function h(c){return typeof c=="function"}o.isFunction=h;function d(c){return c===null||typeof c=="boolean"||typeof c=="number"||typeof c=="string"||(typeof c=="undefined"?"undefined":(0,T.default)(c))==="symbol"||typeof c=="undefined"}o.isPrimitive=d,o.isBuffer=P.isBuffer;function s(c){return Object.prototype.toString.call(c)}}).call(this,{isBuffer:k("../../is-buffer/index.js")})},{"../../is-buffer/index.js":197,"babel-runtime/helpers/typeof":67}],190:[function(k,z,o){"use strict";var P=k("babel-runtime/helpers/typeof"),g=T(P);function T(b){return b&&b.__esModule?b:{default:b}}(function(b){"use strict";var y=function(){var f=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,a=/\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(r,i,n,l){if(arguments.length===1&&e(r)==="string"&&!/\d/.test(r)&&(i=r,r=void 0),r=r||new Date,r instanceof Date||(r=new Date(r)),isNaN(r))throw TypeError("Invalid date");i=String(y.masks[i]||i||y.masks.default);var h=i.slice(0,4);(h==="UTC:"||h==="GMT:")&&(i=i.slice(4),n=!0,h==="GMT:"&&(l=!0));var d=n?"getUTC":"get",s=r[d+"Date"](),c=r[d+"Day"](),w=r[d+"Month"](),E=r[d+"FullYear"](),v=r[d+"Hours"](),R=r[d+"Minutes"](),M=r[d+"Seconds"](),C=r[d+"Milliseconds"](),S=n?0:r.getTimezoneOffset(),_=O(r),A=m(r),U={d:s,dd:x(s),ddd:y.i18n.dayNames[c],dddd:y.i18n.dayNames[c+7],m:w+1,mm:x(w+1),mmm:y.i18n.monthNames[w],mmmm:y.i18n.monthNames[w+12],yy:String(E).slice(2),yyyy:E,h:v%12||12,hh:x(v%12||12),H:v,HH:x(v),M:R,MM:x(R),s:M,ss:x(M),l:x(C,3),L:x(Math.round(C/10)),t:v<12?"a":"p",tt:v<12?"am":"pm",T:v<12?"A":"P",TT:v<12?"AM":"PM",Z:l?"GMT":n?"UTC":(String(r).match(a)||[""]).pop().replace(u,""),o:(S>0?"-":"+")+x(Math.floor(Math.abs(S)/60)*100+Math.abs(S)%60,4),S:["th","st","nd","rd"][s%10>3?0:(s%100-s%10!=10)*s%10],W:_,N:A};return i.replace(f,function(L){return L in U?U[L]:L.slice(1,L.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(f,a){for(f=String(f),a=a||2;f.length<a;)f="0"+f;return f}function O(f){var a=new Date(f.getFullYear(),f.getMonth(),f.getDate());a.setDate(a.getDate()-(a.getDay()+6)%7+3);var u=new Date(a.getFullYear(),0,4);u.setDate(u.getDate()-(u.getDay()+6)%7+3);var r=a.getTimezoneOffset()-u.getTimezoneOffset();a.setHours(a.getHours()-r);var i=(a-u)/(864e5*7);return 1+Math.floor(i)}function m(f){var a=f.getDay();return a===0&&(a=7),a}function e(f){return f===null?"null":f===void 0?"undefined":(typeof f=="undefined"?"undefined":(0,g.default)(f))!=="object"?typeof f=="undefined"?"undefined":(0,g.default)(f):Array.isArray(f)?"array":{}.toString.call(f).slice(8,-1).toLowerCase()}typeof define=="function"&&define.amd?define(function(){return y}):(typeof o=="undefined"?"undefined":(0,g.default)(o))==="object"?z.exports=y:b.dateFormat=y})(void 0)},{"babel-runtime/helpers/typeof":67}],191:[function(k,z,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 P=/["'&<>]/;z.exports=g;function g(T){var b=""+T,y=P.exec(b);if(!y)return b;var x,O="",m=0,e=0;for(m=y.index;m<b.length;m++){switch(b.charCodeAt(m)){case 34:x=""";break;case 38:x="&";break;case 39:x="'";break;case 60:x="<";break;case 62:x=">";break;default:continue}e!==m&&(O+=b.substring(e,m)),e=m+1,O+=x}return e!==m?O+b.substring(e,m):O}},{}],192:[function(k,z,o){function P(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}z.exports=P,P.EventEmitter=P,P.prototype._events=void 0,P.prototype._maxListeners=void 0,P.defaultMaxListeners=10,P.prototype.setMaxListeners=function(x){if(!T(x)||x<0||isNaN(x))throw TypeError("n must be a positive number");return this._maxListeners=x,this},P.prototype.emit=function(x){var O,m,e,f,a,u;if(this._events||(this._events={}),x==="error"&&(!this._events.error||b(this._events.error)&&!this._events.error.length)){if(O=arguments[1],O instanceof Error)throw O;var r=new Error('Uncaught, unspecified "error" event. ('+O+")");throw r.context=O,r}if(m=this._events[x],y(m))return!1;if(g(m))switch(arguments.length){case 1:m.call(this);break;case 2:m.call(this,arguments[1]);break;case 3:m.call(this,arguments[1],arguments[2]);break;default:f=Array.prototype.slice.call(arguments,1),m.apply(this,f)}else if(b(m))for(f=Array.prototype.slice.call(arguments,1),u=m.slice(),e=u.length,a=0;a<e;a++)u[a].apply(this,f);return!0},P.prototype.addListener=function(x,O){var m;if(!g(O))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",x,g(O.listener)?O.listener:O),this._events[x]?b(this._events[x])?this._events[x].push(O):this._events[x]=[this._events[x],O]:this._events[x]=O,b(this._events[x])&&!this._events[x].warned&&(y(this._maxListeners)?m=P.defaultMaxListeners:m=this._maxListeners,m&&m>0&&this._events[x].length>m&&(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},P.prototype.on=P.prototype.addListener,P.prototype.once=function(x,O){if(!g(O))throw TypeError("listener must be a function");var m=!1;function e(){this.removeListener(x,e),m||(m=!0,O.apply(this,arguments))}return e.listener=O,this.on(x,e),this},P.prototype.removeListener=function(x,O){var m,e,f,a;if(!g(O))throw TypeError("listener must be a function");if(!this._events||!this._events[x])return this;if(m=this._events[x],f=m.length,e=-1,m===O||g(m.listener)&&m.listener===O)delete this._events[x],this._events.removeListener&&this.emit("removeListener",x,O);else if(b(m)){for(a=f;a-- >0;)if(m[a]===O||m[a].listener&&m[a].listener===O){e=a;break}if(e<0)return this;m.length===1?(m.length=0,delete this._events[x]):m.splice(e,1),this._events.removeListener&&this.emit("removeListener",x,O)}return this},P.prototype.removeAllListeners=function(x){var O,m;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(O in this._events){if(O==="removeListener")continue;this.removeAllListeners(O)}return this.removeAllListeners("removeListener"),this._events={},this}if(m=this._events[x],g(m))this.removeListener(x,m);else if(m)for(;m.length;)this.removeListener(x,m[m.length-1]);return delete this._events[x],this},P.prototype.listeners=function(x){var O;return!this._events||!this._events[x]?O=[]:g(this._events[x])?O=[this._events[x]]:O=this._events[x].slice(),O},P.prototype.listenerCount=function(x){if(this._events){var O=this._events[x];if(g(O))return 1;if(O)return O.length}return 0},P.listenerCount=function(x,O){return x.listenerCount(O)};function g(x){return typeof x=="function"}function T(x){return typeof x=="number"}function b(x){return typeof x=="object"&&x!==null}function y(x){return x===void 0}},{}],193:[function(k,z,o){var P=k("http"),g=z.exports;for(var T in P)P.hasOwnProperty(T)&&(g[T]=P[T]);g.request=function(b,y){return b||(b={}),b.scheme="https",b.protocol="https:",P.request.call(this,b,y)}},{http:231}],194:[function(k,z,o){/*!
|
|
|
* humanize-ms - index.js
|
|
|
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
|
|
|
* MIT Licensed
|
|
|
*/"use strict";var P=k("util"),g=k("ms");z.exports=function(T){if(typeof T=="number")return T;var b=g(T);if(b===void 0){var y=new Error(P.format("humanize-ms(%j) result undefined",T));console.warn(y.stack)}return b}},{ms:204,util:243}],195:[function(k,z,o){o.read=function(P,g,T,b,y){var x,O,m=y*8-b-1,e=(1<<m)-1,f=e>>1,a=-7,u=T?y-1:0,r=T?-1:1,i=P[g+u];for(u+=r,x=i&(1<<-a)-1,i>>=-a,a+=m;a>0;x=x*256+P[g+u],u+=r,a-=8);for(O=x&(1<<-a)-1,x>>=-a,a+=b;a>0;O=O*256+P[g+u],u+=r,a-=8);if(x===0)x=1-f;else{if(x===e)return O?NaN:(i?-1:1)*Infinity;O=O+Math.pow(2,b),x=x-f}return(i?-1:1)*O*Math.pow(2,x-b)},o.write=function(P,g,T,b,y,x){var O,m,e,f=x*8-y-1,a=(1<<f)-1,u=a>>1,r=y===23?Math.pow(2,-24)-Math.pow(2,-77):0,i=b?0:x-1,n=b?1:-1,l=g<0||g===0&&1/g<0?1:0;for(g=Math.abs(g),isNaN(g)||g===Infinity?(m=isNaN(g)?1:0,O=a):(O=Math.floor(Math.log(g)/Math.LN2),g*(e=Math.pow(2,-O))<1&&(O--,e*=2),O+u>=1?g+=r/e:g+=r*Math.pow(2,1-u),g*e>=2&&(O++,e/=2),O+u>=a?(m=0,O=a):O+u>=1?(m=(g*e-1)*Math.pow(2,y),O=O+u):(m=g*Math.pow(2,u-1)*Math.pow(2,y),O=0));y>=8;P[T+i]=m&255,i+=n,m/=256,y-=8);for(O=O<<y|m,f+=y;f>0;P[T+i]=O&255,i+=n,O/=256,f-=8);P[T+i-n]|=l*128}},{}],196:[function(k,z,o){typeof Object.create=="function"?z.exports=function(g,T){T&&(g.super_=T,g.prototype=Object.create(T.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}))}:z.exports=function(g,T){if(T){g.super_=T;var b=function(){};b.prototype=T.prototype,g.prototype=new b,g.prototype.constructor=g}}},{}],197:[function(k,z,o){/*!
|
|
|
* Determine if an object is a Buffer
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
|
* @license MIT
|
|
|
*/z.exports=function(T){return T!=null&&(P(T)||g(T)||!!T._isBuffer)};function P(T){return!!T.constructor&&typeof T.constructor.isBuffer=="function"&&T.constructor.isBuffer(T)}function g(T){return typeof T.readFloatLE=="function"&&typeof T.slice=="function"&&P(T.slice(0,0))}},{}],198:[function(k,z,o){var P={}.toString;z.exports=Array.isArray||function(g){return P.call(g)=="[object Array]"}},{}],199:[function(require,module,exports){(function(global){(function(k,z){typeof exports=="object"&&typeof module!="undefined"?module.exports=z(k):typeof define=="function"&&define.amd?define(z):z(k)})(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(k){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(k){for(var z={},o=0,P=k.length;o<P;o++)z[k.charAt(o)]=o;return z}(b64chars),fromCharCode=String.fromCharCode,cb_utob=function(k){if(k.length<2){var z=k.charCodeAt(0);return z<128?k:z<2048?fromCharCode(192|z>>>6)+fromCharCode(128|z&63):fromCharCode(224|z>>>12&15)+fromCharCode(128|z>>>6&63)+fromCharCode(128|z&63)}else{var z=65536+(k.charCodeAt(0)-55296)*1024+(k.charCodeAt(1)-56320);return fromCharCode(240|z>>>18&7)+fromCharCode(128|z>>>12&63)+fromCharCode(128|z>>>6&63)+fromCharCode(128|z&63)}},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(k){return k.replace(re_utob,cb_utob)},cb_encode=function(k){var z=[0,2,1][k.length%3],o=k.charCodeAt(0)<<16|(k.length>1?k.charCodeAt(1):0)<<8|(k.length>2?k.charCodeAt(2):0),P=[b64chars.charAt(o>>>18),b64chars.charAt(o>>>12&63),z>=2?"=":b64chars.charAt(o>>>6&63),z>=1?"=":b64chars.charAt(o&63)];return P.join("")},btoa=global.btoa?function(k){return global.btoa(k)}:function(k){return k.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=function(k){var z=Object.prototype.toString.call(k)==="[object Uint8Array]";return z?k.toString("base64"):btoa(utob(String(k)))},encode=function(k,z){return z?_encode(String(k)).replace(/[+\/]/g,function(o){return o=="+"?"-":"_"}).replace(/=/g,""):_encode(k)},encodeURI=function(k){return encode(k,!0)},re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=function(k){switch(k.length){case 4:var z=(7&k.charCodeAt(0))<<18|(63&k.charCodeAt(1))<<12|(63&k.charCodeAt(2))<<6|63&k.charCodeAt(3),o=z-65536;return fromCharCode((o>>>10)+55296)+fromCharCode((o&1023)+56320);case 3:return fromCharCode((15&k.charCodeAt(0))<<12|(63&k.charCodeAt(1))<<6|63&k.charCodeAt(2));default:return fromCharCode((31&k.charCodeAt(0))<<6|63&k.charCodeAt(1))}},btou=function(k){return k.replace(re_btou,cb_btou)},cb_decode=function(k){var z=k.length,o=z%4,P=(z>0?b64tab[k.charAt(0)]<<18:0)|(z>1?b64tab[k.charAt(1)]<<12:0)|(z>2?b64tab[k.charAt(2)]<<6:0)|(z>3?b64tab[k.charAt(3)]:0),g=[fromCharCode(P>>>16),fromCharCode(P>>>8&255),fromCharCode(P&255)];return g.length-=[0,0,2,1][o],g.join("")},_atob=global.atob?function(k){return global.atob(k)}:function(k){return k.replace(/\S{1,4}/g,cb_decode)},atob=function(k){return _atob(String(k).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(k){return(k.constructor===buffer.constructor?k:buffer.from(k,"base64")).toString()}:function(k){return(k.constructor===buffer.constructor?k:new buffer(k,"base64")).toString()}:function(k){return btou(_atob(k))},decode=function(k){return _decode(String(k).replace(/[-_]/g,function(z){return z=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var k=global.Base64;return global.Base64=_Base64,k};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(k){return{value:k,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(k){return encode(this,k)})),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(k,z,o){/*!
|
|
|
* merge-descriptors
|
|
|
* Copyright(c) 2014 Jonathan Ong
|
|
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
|
* MIT Licensed
|
|
|
*/"use strict";z.exports=g;var P=Object.prototype.hasOwnProperty;function g(T,b,y){if(!T)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(O){if(!y&&P.call(T,O))return;var m=Object.getOwnPropertyDescriptor(b,O);Object.defineProperty(T,O,m)}),T}},{}],201:[function(k,z,o){"use strict";function P(){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)}P.prototype.define=function(g,T){for(var b in g){var y=g[b].map(function(m){return m.toLowerCase()});b=b.toLowerCase();for(var x=0;x<y.length;x++){var O=y[x];if(O[0]=="*")continue;if(!T&&O in this._types)throw new Error('Attempt to change mapping for "'+O+'" extension from "'+this._types[O]+'" to "'+b+'". Pass `force=true` to allow this, otherwise remove "'+O+'" from the list of extensions for "'+b+'".');this._types[O]=b}if(T||!this._extensions[b]){var O=y[0];this._extensions[b]=O[0]!="*"?O:O.substr(1)}}},P.prototype.getType=function(g){g=String(g);var T=g.replace(/^.*[/\\]/,"").toLowerCase(),b=T.replace(/^.*\./,"").toLowerCase(),y=T.length<g.length,x=b.length<T.length-1;return(x||!y)&&this._types[b]||null},P.prototype.getExtension=function(g){return g=/^\s*([^;\s]*)/.test(g)&&RegExp.$1,g&&this._extensions[g.toLowerCase()]||null},z.exports=P},{}],202:[function(k,z,o){"use strict";var P=k("./Mime");z.exports=new P(k("./types/standard"))},{"./Mime":201,"./types/standard":203}],203:[function(k,z,o){z.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(k,z,o){var P=1e3,g=P*60,T=g*60,b=T*24,y=b*7,x=b*365.25;z.exports=function(a,u){u=u||{};var r=typeof a;if(r==="string"&&a.length>0)return O(a);if(r==="number"&&isFinite(a))return u.long?e(a):m(a);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(a))};function O(a){if(a=String(a),a.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(a);if(!u)return;var r=parseFloat(u[1]),i=(u[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return r*x;case"weeks":case"week":case"w":return r*y;case"days":case"day":case"d":return r*b;case"hours":case"hour":case"hrs":case"hr":case"h":return r*T;case"minutes":case"minute":case"mins":case"min":case"m":return r*g;case"seconds":case"second":case"secs":case"sec":case"s":return r*P;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}function m(a){var u=Math.abs(a);return u>=b?Math.round(a/b)+"d":u>=T?Math.round(a/T)+"h":u>=g?Math.round(a/g)+"m":u>=P?Math.round(a/P)+"s":a+"ms"}function e(a){var u=Math.abs(a);return u>=b?f(a,u,b,"day"):u>=T?f(a,u,T,"hour"):u>=g?f(a,u,g,"minute"):u>=P?f(a,u,P,"second"):a+" ms"}function f(a,u,r,i){var n=u>=r*1.5;return Math.round(a/r)+" "+i+(n?"s":"")}},{}],205:[function(k,z,o){(function(P){function g(x,O){for(var m=0,e=x.length-1;e>=0;e--){var f=x[e];f==="."?x.splice(e,1):f===".."?(x.splice(e,1),m++):m&&(x.splice(e,1),m--)}if(O)for(;m--;m)x.unshift("..");return x}o.resolve=function(){for(var x="",O=!1,m=arguments.length-1;m>=-1&&!O;m--){var e=m>=0?arguments[m]:P.cwd();if(typeof e!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!e)continue;x=e+"/"+x,O=e.charAt(0)==="/"}return x=g(b(x.split("/"),function(f){return!!f}),!O).join("/"),(O?"/":"")+x||"."},o.normalize=function(x){var O=o.isAbsolute(x),m=y(x,-1)==="/";return x=g(b(x.split("/"),function(e){return!!e}),!O).join("/"),!x&&!O&&(x="."),x&&m&&(x+="/"),(O?"/":"")+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(O,m){if(typeof O!="string")throw new TypeError("Arguments to path.join must be strings");return O}).join("/"))},o.relative=function(x,O){x=o.resolve(x).substr(1),O=o.resolve(O).substr(1);function m(n){for(var l=0;l<n.length&&!(n[l]!=="");l++);for(var h=n.length-1;h>=0&&!(n[h]!=="");h--);return l>h?[]:n.slice(l,h-l+1)}for(var e=m(x.split("/")),f=m(O.split("/")),a=Math.min(e.length,f.length),u=a,r=0;r<a;r++)if(e[r]!==f[r]){u=r;break}for(var i=[],r=u;r<e.length;r++)i.push("..");return i=i.concat(f.slice(u)),i.join("/")},o.sep="/",o.delimiter=":",o.dirname=function(x){if(typeof x!="string"&&(x=x+""),x.length===0)return".";for(var O=x.charCodeAt(0),m=O===47,e=-1,f=!0,a=x.length-1;a>=1;--a)if(O=x.charCodeAt(a),O===47){if(!f){e=a;break}}else f=!1;return e===-1?m?"/":".":m&&e===1?"/":x.slice(0,e)};function T(x){typeof x!="string"&&(x=x+"");var O=0,m=-1,e=!0,f;for(f=x.length-1;f>=0;--f)if(x.charCodeAt(f)===47){if(!e){O=f+1;break}}else m===-1&&(e=!1,m=f+1);return m===-1?"":x.slice(O,m)}o.basename=function(x,O){var m=T(x);return O&&m.substr(-1*O.length)===O&&(m=m.substr(0,m.length-O.length)),m},o.extname=function(x){typeof x!="string"&&(x=x+"");for(var O=-1,m=0,e=-1,f=!0,a=0,u=x.length-1;u>=0;--u){var r=x.charCodeAt(u);if(r===47){if(!f){m=u+1;break}continue}e===-1&&(f=!1,e=u+1),r===46?O===-1?O=u:a!==1&&(a=1):O!==-1&&(a=-1)}return O===-1||e===-1||a===0||a===1&&O===e-1&&O===m+1?"":x.slice(O,e)};function b(x,O){if(x.filter)return x.filter(O);for(var m=[],e=0;e<x.length;e++)O(x[e],e,x)&&m.push(x[e]);return m}var y="ab".substr(-1)==="b"?function(x,O,m){return x.substr(O,m)}:function(x,O,m){return O<0&&(O=x.length+O),x.substr(O,m)}}).call(this,k("_process"))},{_process:208}],206:[function(k,z,o){(function(P){/*!
|
|
|
* 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},T=g[typeof window]&&window||this,b=T,y=g[typeof o]&&o,x=g[typeof z]&&z&&!z.nodeType&&z,O=y&&x&&typeof P=="object"&&P;O&&(O.global===O||O.window===O||O.self===O)&&(T=O);var m=Math.pow(2,53)-1,e=/\bOpera/,f=this,a=Object.prototype,u=a.hasOwnProperty,r=a.toString;function i(C){return C=String(C),C.charAt(0).toUpperCase()+C.slice(1)}function n(C,S,_){var A={"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 S&&_&&/^Win/i.test(C)&&!/^Windows Phone /i.test(C)&&(A=A[/[\d.]+$/.exec(C)])&&(C="Windows "+A),C=String(C),S&&_&&(C=C.replace(RegExp(S,"i"),_)),C=h(C.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]),C}function l(C,S){var _=-1,A=C?C.length:0;if(typeof A=="number"&&A>-1&&A<=m)for(;++_<A;)S(C[_],_,C);else d(C,S)}function h(C){return C=v(C),/^(?:webOS|i(?:OS|P))/.test(C)?C:i(C)}function d(C,S){for(var _ in C)u.call(C,_)&&S(C[_],_,C)}function s(C){return C==null?i(C):r.call(C).slice(8,-1)}function c(C,S){var _=C!=null?typeof C[S]:"number";return!/^(?:boolean|number|string|undefined)$/.test(_)&&(_=="object"?!!C[S]:!0)}function w(C){return String(C).replace(/([ -])(?!$)/g,"$1?")}function E(C,S){var _=null;return l(C,function(A,U){_=S(_,A,U,C)}),_}function v(C){return String(C).replace(/^ +| +$/g,"")}function R(C){var S=T,_=C&&typeof C=="object"&&s(C)!="String";_&&(S=C,C=null);var A=S.navigator||{},U=A.userAgent||"";C||(C=U);var L=_||f==b,N=_?!!A.likeChrome:/\bChrome\b/.test(C)&&!/internal|\n/i.test(r.toString()),V="Object",H=_?V:"ScriptBridgingProxyObject",D=_?V:"Environment",W=_&&S.java?"JavaPackage":s(S.java),F=_?V:"RuntimeObject",I=/\bJava/.test(W)&&S.java,K=I&&s(S.environment)==D,ee=I?"a":"\u03B1",he=I?"b":"\u03B2",de=S.document||{},Se=S.operamini||S.opera,Te=e.test(Te=_&&Se?Se["[[Class]]"]:s(Se))?Te:Se=null,ce,be=C,Ee=[],ue=null,le=C==U,$=le&&Se&&typeof Se.version=="function"&&Se.version(),me,re=Q([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),ae=ve(["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"]),Oe=Ae([{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"]),se=J({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=_e(["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 Q(mt){return E(mt,function(vt,yt){return vt||RegExp("\\b"+(yt.pattern||w(yt))+"\\b","i").exec(C)&&(yt.label||yt)})}function J(mt){return E(mt,function(vt,yt,Ye){return vt||(yt[Oe]||yt[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Oe)]||RegExp("\\b"+w(Ye)+"(?:\\b|\\w*\\d)","i").exec(C))&&Ye})}function ve(mt){return E(mt,function(vt,yt){return vt||RegExp("\\b"+(yt.pattern||w(yt))+"\\b","i").exec(C)&&(yt.label||yt)})}function _e(mt){return E(mt,function(vt,yt){var Ye=yt.pattern||w(yt);return!vt&&(vt=RegExp("\\b"+Ye+"(?:/[\\d.]+|[ \\w.]*)","i").exec(C))&&(vt=n(vt,Ye,yt.label||yt)),vt})}function Ae(mt){return E(mt,function(vt,yt){var Ye=yt.pattern||w(yt);return!vt&&(vt=RegExp("\\b"+Ye+" *\\d+[.\\w_]*","i").exec(C)||RegExp("\\b"+Ye+" *\\w+-[\\w]*","i").exec(C)||RegExp("\\b"+Ye+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(C))&&((vt=String(yt.label&&!RegExp(Ye,"i").test(yt.label)?yt.label:vt).split("/"))[1]&&!/[\d.]+/.test(vt[0])&&(vt[0]+=" "+vt[1]),yt=yt.label||yt,vt=h(vt[0].replace(RegExp(Ye,"i"),yt).replace(RegExp("; *(?:"+yt+"[_-])?","i")," ").replace(RegExp("("+yt+")[-_.]?(\\w)","i"),"$1 $2"))),vt})}function Qe(mt){return E(mt,function(vt,yt){return vt||(RegExp(yt+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(C)||0)[1]||null})}function tt(){return this.description||""}if(re&&(re=[re]),se&&!Oe&&(Oe=Ae([se])),(ce=/\bGoogle TV\b/.exec(Oe))&&(Oe=ce[0]),/\bSimulator\b/i.test(C)&&(Oe=(Oe?Oe+" ":"")+"Simulator"),ae=="Opera Mini"&&/\bOPiOS\b/.test(C)&&Ee.push("running in Turbo/Uncompressed mode"),ae=="IE"&&/\blike iPhone OS\b/.test(C)?(ce=R(C.replace(/like iPhone OS/,"")),se=ce.manufacturer,Oe=ce.product):/^iP/.test(Oe)?(ae||(ae="Safari"),te="iOS"+((ce=/ OS ([\d_]+)/i.exec(C))?" "+ce[1].replace(/_/g,"."):"")):ae=="Konqueror"&&!/buntu/i.test(te)?te="Kubuntu":se&&se!="Google"&&(/Chrome/.test(ae)&&!/\bMobile Safari\b/i.test(C)||/\bVita\b/.test(Oe))||/\bAndroid\b/.test(te)&&/^Chrome/.test(ae)&&/\bVersion\//i.test(C)?(ae="Android Browser",te=/\bAndroid\b/.test(te)?te:"Android"):ae=="Silk"?(/\bMobi/i.test(C)||(te="Android",Ee.unshift("desktop mode")),/Accelerated *= *true/i.test(C)&&Ee.unshift("accelerated")):ae=="PaleMoon"&&(ce=/\bFirefox\/([\d.]+)\b/.exec(C))?Ee.push("identifying as Firefox "+ce[1]):ae=="Firefox"&&(ce=/\b(Mobile|Tablet|TV)\b/i.exec(C))?(te||(te="Firefox OS"),Oe||(Oe=ce[1])):!ae||(ce=!/\bMinefield\b/i.test(C)&&/\b(?:Firefox|Safari)\b/.exec(ae))?(ae&&!Oe&&/[\/,]|^[^(]+?\)/.test(C.slice(C.indexOf(ce+"/")+8))&&(ae=null),(ce=Oe||se||te)&&(Oe||se||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(te))&&(ae=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(te)?te:ce)+" Browser")):ae=="Electron"&&(ce=(/\bChrome\/([\d.]+)\b/.exec(C)||0)[1])&&Ee.push("Chromium "+ce),$||($=Qe(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",w(ae),"(?:Firefox|Minefield|NetFront)"])),(ce=re=="iCab"&&parseFloat($)>3&&"WebKit"||/\bOpera\b/.test(ae)&&(/\bOPR\b/.test(C)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(C)&&!/^(?:Trident|EdgeHTML)$/.test(re)&&"WebKit"||!re&&/\bMSIE\b/i.test(C)&&(te=="Mac OS"?"Tasman":"Trident")||re=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(ae)&&"NetFront")&&(re=[ce]),ae=="IE"&&(ce=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(C)||0)[1])?(ae+=" Mobile",te="Windows Phone "+(/\+$/.test(ce)?ce:ce+".x"),Ee.unshift("desktop mode")):/\bWPDesktop\b/i.test(C)?(ae="IE Mobile",te="Windows Phone 8.x",Ee.unshift("desktop mode"),$||($=(/\brv:([\d.]+)/.exec(C)||0)[1])):ae!="IE"&&re=="Trident"&&(ce=/\brv:([\d.]+)/.exec(C))&&(ae&&Ee.push("identifying as "+ae+($?" "+$:"")),ae="IE",$=ce[1]),le){if(c(S,"global"))if(I&&(ce=I.lang.System,be=ce.getProperty("os.arch"),te=te||ce.getProperty("os.name")+" "+ce.getProperty("os.version")),K){try{$=S.require("ringo/engine").version.join("."),ae="RingoJS"}catch(mt){(ce=S.system)&&ce.global.system==S.system&&(ae="Narwhal",te||(te=ce[0].os||null))}ae||(ae="Rhino")}else typeof S.process=="object"&&!S.process.browser&&(ce=S.process)&&(typeof ce.versions=="object"&&(typeof ce.versions.electron=="string"?(Ee.push("Node "+ce.versions.node),ae="Electron",$=ce.versions.electron):typeof ce.versions.nw=="string"&&(Ee.push("Chromium "+$,"Node "+ce.versions.node),ae="NW.js",$=ce.versions.nw)),ae||(ae="Node.js",be=ce.arch,te=ce.platform,$=/[\d.]+/.exec(ce.version),$=$?$[0]:null));else s(ce=S.runtime)==H?(ae="Adobe AIR",te=ce.flash.system.Capabilities.os):s(ce=S.phantom)==F?(ae="PhantomJS",$=(ce=ce.version||null)&&ce.major+"."+ce.minor+"."+ce.patch):typeof de.documentMode=="number"&&(ce=/\bTrident\/(\d+)/i.exec(C))?($=[$,de.documentMode],(ce=+ce[1]+4)!=$[1]&&(Ee.push("IE "+$[1]+" mode"),re&&(re[1]=""),$[1]=ce),$=ae=="IE"?String($[1].toFixed(1)):$[0]):typeof de.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(ae)&&(Ee.push("masking as "+ae+" "+$),ae="IE",$="11.0",re=["Trident"],te="Windows");te=te&&h(te)}if($&&(ce=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec($)||/(?:alpha|beta)(?: ?\d)?/i.exec(C+";"+(le&&A.appMinorVersion))||/\bMinefield\b/i.test(C)&&"a")&&(ue=/b/i.test(ce)?"beta":"alpha",$=$.replace(RegExp(ce+"\\+?$"),"")+(ue=="beta"?he:ee)+(/\d+\+?/.exec(ce)||"")),ae=="Fennec"||ae=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(te))ae="Firefox Mobile";else if(ae=="Maxthon"&&$)$=$.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Oe))Oe=="Xbox 360"&&(te=null),Oe=="Xbox 360"&&/\bIEMobile\b/.test(C)&&Ee.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(ae)||ae&&!Oe&&!/Browser|Mobi/.test(ae))&&(te=="Windows CE"||/Mobi/i.test(C)))ae+=" Mobile";else if(ae=="IE"&&le)try{S.external===null&&Ee.unshift("platform preview")}catch(mt){Ee.unshift("embedded")}else(/\bBlackBerry\b/.test(Oe)||/\bBB10\b/.test(C))&&(ce=(RegExp(Oe.replace(/ +/g," *")+"/([.\\d]+)","i").exec(C)||0)[1]||$)?(ce=[ce,/BB10/.test(C)],te=(ce[1]?(Oe=null,se="BlackBerry"):"Device Software")+" "+ce[0],$=null):this!=d&&Oe!="Wii"&&(le&&Se||/Opera/.test(ae)&&/\b(?:MSIE|Firefox)\b/i.test(C)||ae=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(te)||ae=="IE"&&(te&&!/^Win/.test(te)&&$>5.5||/\bWindows XP\b/.test(te)&&$>8||$==8&&!/\bTrident\b/.test(C)))&&!e.test(ce=R.call(d,C.replace(e,"")+";"))&&ce.name&&(ce="ing as "+ce.name+((ce=ce.version)?" "+ce:""),e.test(ae)?(/\bIE\b/.test(ce)&&te=="Mac OS"&&(te=null),ce="identify"+ce):(ce="mask"+ce,Te?ae=h(Te.replace(/([a-z])([A-Z])/g,"$1 $2")):ae="Opera",/\bIE\b/.test(ce)&&(te=null),le||($=null)),re=["Presto"],Ee.push(ce));(ce=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(C)||0)[1])&&(ce=[parseFloat(ce.replace(/\.(\d)$/,".0$1")),ce],ae=="Safari"&&ce[1].slice(-1)=="+"?(ae="WebKit Nightly",ue="alpha",$=ce[1].slice(0,-1)):($==ce[1]||$==(ce[2]=(/\bSafari\/([\d.]+\+?)/i.exec(C)||0)[1]))&&($=null),ce[1]=(/\bChrome\/([\d.]+)/i.exec(C)||0)[1],ce[0]==537.36&&ce[2]==537.36&&parseFloat(ce[1])>=28&&re=="WebKit"&&(re=["Blink"]),!le||!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)?"":"+")),ae=="Safari"&&(!$||parseInt($)>45)&&($=ce)),ae=="Opera"&&(ce=/\bzbov|zvav$/.exec(te))?(ae+=" ",Ee.unshift("desktop mode"),ce=="zvav"?(ae+="Mini",$=null):ae+="Mobile",te=te.replace(RegExp(" *"+ce+"$"),"")):ae=="Safari"&&/\bChrome\b/.exec(re&&re[1])&&(Ee.unshift("desktop mode"),ae="Chrome Mobile",$=null,/\bOS X\b/.test(te)?(se="Apple",te="iOS 4.3+"):te=null),$&&$.indexOf(ce=/[\d.]+$/.exec(te))==0&&C.indexOf("/"+ce+"-")>-1&&(te=v(te.replace(ce,""))),re&&!/\b(?:Avant|Nook)\b/.test(ae)&&(/Browser|Lunascape|Maxthon/.test(ae)||ae!="Safari"&&/^iOS/.test(te)&&/\bSafari\b/.test(re[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(ae)&&re[1])&&((ce=re[re.length-1])&&Ee.push(ce)),Ee.length&&(Ee=["("+Ee.join("; ")+")"]),se&&Oe&&Oe.indexOf(se)<0&&Ee.push("on "+se),Oe&&Ee.push((/^on /.test(Ee[Ee.length-1])?"":"on ")+Oe),te&&(ce=/ ([\d.+]+)$/.exec(te),me=ce&&te.charAt(te.length-ce[0].length-1)=="/",te={architecture:32,family:ce&&!me?te.replace(ce[0],""):te,version:ce?ce[1]:null,toString:function(){var mt=this.version;return this.family+(mt&&!me?" "+mt:"")+(this.architecture==64?" 64-bit":"")}}),(ce=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(be))&&!/\bi686\b/i.test(be)?(te&&(te.architecture=64,te.family=te.family.replace(RegExp(" *"+ce),"")),ae&&(/\bWOW64\b/i.test(C)||le&&/\w(?:86|32)$/.test(A.cpuClass||A.platform)&&!/\bWin64; x64\b/i.test(C))&&Ee.unshift("32-bit")):te&&/^OS X/.test(te.family)&&ae=="Chrome"&&parseFloat($)>=39&&(te.architecture=64),C||(C=null);var dt={};return dt.description=C,dt.layout=re&&re[0],dt.manufacturer=se,dt.name=ae,dt.prerelease=ue,dt.product=Oe,dt.ua=C,dt.version=ae&&$,dt.os=te||{architecture:null,family:null,version:null,toString:function(){return"null"}},dt.parse=R,dt.toString=tt,dt.version&&Ee.unshift($),dt.name&&Ee.unshift(ae),te&&ae&&!(te==String(te).split(" ")[0]&&(te==ae.split(" ")[0]||Oe))&&Ee.push(Oe?"("+te+")":"on "+te),Ee.length&&(dt.description=Ee.join(" ")),dt}var M=R();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(T.platform=M,define(function(){return M})):y&&x?d(M,function(C,S){y[S]=C}):T.platform=M}).call(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],207:[function(k,z,o){(function(P){"use strict";typeof P=="undefined"||!P.version||P.version.indexOf("v0.")===0||P.version.indexOf("v1.")===0&&P.version.indexOf("v1.8.")!==0?z.exports={nextTick:g}:z.exports=P;function g(T,b,y,x){if(typeof T!="function")throw new TypeError('"callback" argument must be a function');var O=arguments.length,m,e;switch(O){case 0:case 1:return P.nextTick(T);case 2:return P.nextTick(function(){T.call(null,b)});case 3:return P.nextTick(function(){T.call(null,b,y)});case 4:return P.nextTick(function(){T.call(null,b,y,x)});default:for(m=new Array(O-1),e=0;e<m.length;)m[e++]=arguments[e];return P.nextTick(function(){T.apply(null,m)})}}}).call(this,k("_process"))},{_process:208}],208:[function(k,z,o){var P=z.exports={},g,T;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(l){g=b}try{typeof clearTimeout=="function"?T=clearTimeout:T=y}catch(l){T=y}})();function x(l){if(g===setTimeout)return setTimeout(l,0);if((g===b||!g)&&setTimeout)return g=setTimeout,setTimeout(l,0);try{return g(l,0)}catch(h){try{return g.call(null,l,0)}catch(d){return g.call(this,l,0)}}}function O(l){if(T===clearTimeout)return clearTimeout(l);if((T===y||!T)&&clearTimeout)return T=clearTimeout,clearTimeout(l);try{return T(l)}catch(h){try{return T.call(null,l)}catch(d){return T.call(this,l)}}}var m=[],e=!1,f,a=-1;function u(){if(!e||!f)return;e=!1,f.length?m=f.concat(m):a=-1,m.length&&r()}function r(){if(e)return;var l=x(u);e=!0;for(var h=m.length;h;){for(f=m,m=[];++a<h;)f&&f[a].run();a=-1,h=m.length}f=null,e=!1,O(l)}P.nextTick=function(l){var h=new Array(arguments.length-1);if(arguments.length>1)for(var d=1;d<arguments.length;d++)h[d-1]=arguments[d];m.push(new i(l,h)),m.length===1&&!e&&x(r)};function i(l,h){this.fun=l,this.array=h}i.prototype.run=function(){this.fun.apply(null,this.array)},P.title="browser",P.browser=!0,P.env={},P.argv=[],P.version="",P.versions={};function n(){}P.on=n,P.addListener=n,P.once=n,P.off=n,P.removeListener=n,P.removeAllListeners=n,P.emit=n,P.prependListener=n,P.prependOnceListener=n,P.listeners=function(l){return[]},P.binding=function(l){throw new Error("process.binding is not supported")},P.cwd=function(){return"/"},P.chdir=function(l){throw new Error("process.chdir is not supported")},P.umask=function(){return 0}},{}],209:[function(k,z,o){(function(P){/*! https://mths.be/punycode v1.4.1 by @mathias */(function(g){var T=typeof o=="object"&&o&&!o.nodeType&&o,b=typeof z=="object"&&z&&!z.nodeType&&z,y=typeof P=="object"&&P;(y.global===y||y.window===y||y.self===y)&&(g=y);var x,O=2147483647,m=36,e=1,f=26,a=38,u=700,r=72,i=128,n="-",l=/^xn--/,h=/[^\x20-\x7E]/,d=/[\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"},c=m-e,w=Math.floor,E=String.fromCharCode,v;function R(W){throw new RangeError(s[W])}function M(W,F){for(var I=W.length,K=[];I--;)K[I]=F(W[I]);return K}function C(W,F){var I=W.split("@"),K="";I.length>1&&(K=I[0]+"@",W=I[1]),W=W.replace(d,".");var ee=W.split("."),he=M(ee,F).join(".");return K+he}function S(W){for(var F=[],I=0,K=W.length,ee,he;I<K;)ee=W.charCodeAt(I++),ee>=55296&&ee<=56319&&I<K?(he=W.charCodeAt(I++),(he&64512)==56320?F.push(((ee&1023)<<10)+(he&1023)+65536):(F.push(ee),I--)):F.push(ee);return F}function _(W){return M(W,function(F){var I="";return F>65535&&(F-=65536,I+=E(F>>>10&1023|55296),F=56320|F&1023),I+=E(F),I}).join("")}function A(W){return W-48<10?W-22:W-65<26?W-65:W-97<26?W-97:m}function U(W,F){return W+22+75*(W<26)-((F!=0)<<5)}function L(W,F,I){var K=0;for(W=I?w(W/u):W>>1,W+=w(W/F);W>c*f>>1;K+=m)W=w(W/c);return w(K+(c+1)*W/(W+a))}function N(W){var F=[],I=W.length,K,ee=0,he=i,de=r,Se,Te,ce,be,Ee,ue,le,$,me;for(Se=W.lastIndexOf(n),Se<0&&(Se=0),Te=0;Te<Se;++Te)W.charCodeAt(Te)>=128&&R("not-basic"),F.push(W.charCodeAt(Te));for(ce=Se>0?Se+1:0;ce<I;){for(be=ee,Ee=1,ue=m;!(ce>=I&&R("invalid-input"),le=A(W.charCodeAt(ce++)),(le>=m||le>w((O-ee)/Ee))&&R("overflow"),ee+=le*Ee,$=ue<=de?e:ue>=de+f?f:ue-de,le<$);ue+=m)me=m-$,Ee>w(O/me)&&R("overflow"),Ee*=me;K=F.length+1,de=L(ee-be,K,be==0),w(ee/K)>O-he&&R("overflow"),he+=w(ee/K),ee%=K,F.splice(ee++,0,he)}return _(F)}function V(W){var F,I,K,ee,he,de,Se,Te,ce,be,Ee,ue=[],le,$,me,re;for(W=S(W),le=W.length,F=i,I=0,he=r,de=0;de<le;++de)Ee=W[de],Ee<128&&ue.push(E(Ee));for(K=ee=ue.length,ee&&ue.push(n);K<le;){for(Se=O,de=0;de<le;++de)Ee=W[de],Ee>=F&&Ee<Se&&(Se=Ee);for($=K+1,Se-F>w((O-I)/$)&&R("overflow"),I+=(Se-F)*$,F=Se,de=0;de<le;++de)if(Ee=W[de],Ee<F&&++I>O&&R("overflow"),Ee==F){for(Te=I,ce=m;!(be=ce<=he?e:ce>=he+f?f:ce-he,Te<be);ce+=m)re=Te-be,me=m-be,ue.push(E(U(be+re%me,0))),Te=w(re/me);ue.push(E(U(Te,0))),he=L(I,$,K==ee),I=0,++K}++I,++F}return ue.join("")}function H(W){return C(W,function(F){return l.test(F)?N(F.slice(4).toLowerCase()):F})}function D(W){return C(W,function(F){return h.test(F)?"xn--"+V(F):F})}if(x={version:"1.4.1",ucs2:{decode:S,encode:_},decode:N,encode:V,toASCII:D,toUnicode:H},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return x});else if(T&&b)if(z.exports==T)b.exports=x;else for(v in x)x.hasOwnProperty(v)&&(T[v]=x[v]);else g.punycode=x})(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],210:[function(k,z,o){"use strict";function P(T,b){return Object.prototype.hasOwnProperty.call(T,b)}z.exports=function(T,b,y,x){b=b||"&",y=y||"=";var O={};if(typeof T!="string"||T.length===0)return O;var m=/\+/g;T=T.split(b);var e=1e3;x&&typeof x.maxKeys=="number"&&(e=x.maxKeys);var f=T.length;e>0&&f>e&&(f=e);for(var a=0;a<f;++a){var u=T[a].replace(m,"%20"),r=u.indexOf(y),i,n,l,h;r>=0?(i=u.substr(0,r),n=u.substr(r+1)):(i=u,n=""),l=decodeURIComponent(i),h=decodeURIComponent(n),P(O,l)?g(O[l])?O[l].push(h):O[l]=[O[l],h]:O[l]=h}return O};var g=Array.isArray||function(T){return Object.prototype.toString.call(T)==="[object Array]"}},{}],211:[function(k,z,o){"use strict";var P=function(y){switch(typeof y){case"string":return y;case"boolean":return y?"true":"false";case"number":return isFinite(y)?y:"";default:return""}};z.exports=function(y,x,O,m){return x=x||"&",O=O||"=",y===null&&(y=void 0),typeof y=="object"?T(b(y),function(e){var f=encodeURIComponent(P(e))+O;return g(y[e])?T(y[e],function(a){return f+encodeURIComponent(P(a))}).join(x):f+encodeURIComponent(P(y[e]))}).join(x):m?encodeURIComponent(P(m))+O+encodeURIComponent(P(y)):""};var g=Array.isArray||function(y){return Object.prototype.toString.call(y)==="[object Array]"};function T(y,x){if(y.map)return y.map(x);for(var O=[],m=0;m<y.length;m++)O.push(x(y[m],m));return O}var b=Object.keys||function(y){var x=[];for(var O in y)Object.prototype.hasOwnProperty.call(y,O)&&x.push(O);return x}},{}],212:[function(k,z,o){"use strict";o.decode=o.parse=k("./decode"),o.encode=o.stringify=k("./encode")},{"./decode":210,"./encode":211}],213:[function(k,z,o){z.exports=k("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":214}],214:[function(k,z,o){"use strict";var P=k("babel-runtime/core-js/object/create"),g=y(P),T=k("babel-runtime/core-js/object/keys"),b=y(T);function y(h){return h&&h.__esModule?h:{default:h}}var x=k("process-nextick-args"),O=b.default||function(h){var d=[];for(var s in h)d.push(s);return d};z.exports=i;var m=(0,g.default)(k("core-util-is"));m.inherits=k("inherits");var e=k("./_stream_readable"),f=k("./_stream_writable");m.inherits(i,e);for(var a=O(f.prototype),u=0;u<a.length;u++){var r=a[u];i.prototype[r]||(i.prototype[r]=f.prototype[r])}function i(h){if(!(this instanceof i))return new i(h);e.call(this,h),f.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(i.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function n(){if(this.allowHalfOpen||this._writableState.ended)return;x.nextTick(l,this)}function l(h){h.end()}Object.defineProperty(i.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(d){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=d,this._writableState.destroyed=d}}),i.prototype._destroy=function(h,d){this.push(null),this.end(),x.nextTick(d,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(k,z,o){"use strict";var P=k("babel-runtime/core-js/object/create"),g=T(P);function T(O){return O&&O.__esModule?O:{default:O}}z.exports=x;var b=k("./_stream_transform"),y=(0,g.default)(k("core-util-is"));y.inherits=k("inherits"),y.inherits(x,b);function x(O){if(!(this instanceof x))return new x(O);b.call(this,O)}x.prototype._transform=function(O,m,e){e(null,O)}},{"./_stream_transform":217,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],216:[function(k,z,o){(function(P,g){"use strict";var T=k("babel-runtime/core-js/object/get-prototype-of"),b=O(T),y=k("babel-runtime/core-js/object/create"),x=O(y);function O(re){return re&&re.__esModule?re:{default:re}}var m=k("process-nextick-args");z.exports=S;var e=k("isarray"),f;S.ReadableState=C;var a=k("events").EventEmitter,u=function(ae,Oe){return ae.listeners(Oe).length},r=k("./internal/streams/stream"),i=k("safe-buffer").Buffer,n=g.Uint8Array||function(){};function l(re){return i.from(re)}function h(re){return i.isBuffer(re)||re instanceof n}var d=(0,x.default)(k("core-util-is"));d.inherits=k("inherits");var s=k("util"),c=void 0;s&&s.debuglog?c=s.debuglog("stream"):c=function(){};var w=k("./internal/streams/BufferList"),E=k("./internal/streams/destroy"),v;d.inherits(S,r);var R=["error","close","destroy","pause","resume"];function M(re,ae,Oe){if(typeof re.prependListener=="function")return re.prependListener(ae,Oe);!re._events||!re._events[ae]?re.on(ae,Oe):e(re._events[ae])?re._events[ae].unshift(Oe):re._events[ae]=[Oe,re._events[ae]]}function C(re,ae){f=f||k("./_stream_duplex"),re=re||{};var Oe=ae instanceof f;this.objectMode=!!re.objectMode,Oe&&(this.objectMode=this.objectMode||!!re.readableObjectMode);var se=re.highWaterMark,te=re.readableHighWaterMark,Q=this.objectMode?16:16*1024;se||se===0?this.highWaterMark=se:Oe&&(te||te===0)?this.highWaterMark=te:this.highWaterMark=Q,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new w,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=k("string_decoder/").StringDecoder),this.decoder=new v(re.encoding),this.encoding=re.encoding)}function S(re){if(f=f||k("./_stream_duplex"),!(this instanceof S))return new S(re);this._readableState=new C(re,this),this.readable=!0,re&&(typeof re.read=="function"&&(this._read=re.read),typeof re.destroy=="function"&&(this._destroy=re.destroy)),r.call(this)}Object.defineProperty(S.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(ae){if(!this._readableState)return;this._readableState.destroyed=ae}}),S.prototype.destroy=E.destroy,S.prototype._undestroy=E.undestroy,S.prototype._destroy=function(re,ae){this.push(null),ae(re)},S.prototype.push=function(re,ae){var Oe=this._readableState,se;return Oe.objectMode?se=!0:typeof re=="string"&&(ae=ae||Oe.defaultEncoding,ae!==Oe.encoding&&(re=i.from(re,ae),ae=""),se=!0),_(this,re,ae,!1,se)},S.prototype.unshift=function(re){return _(this,re,null,!0,!1)};function _(re,ae,Oe,se,te){var Q=re._readableState;if(ae===null)Q.reading=!1,D(re,Q);else{var J;te||(J=U(Q,ae)),J?re.emit("error",J):Q.objectMode||ae&&ae.length>0?(typeof ae!="string"&&!Q.objectMode&&(0,b.default)(ae)!==i.prototype&&(ae=l(ae)),se?Q.endEmitted?re.emit("error",new Error("stream.unshift() after end event")):A(re,Q,ae,!0):Q.ended?re.emit("error",new Error("stream.push() after EOF")):(Q.reading=!1,Q.decoder&&!Oe?(ae=Q.decoder.write(ae),Q.objectMode||ae.length!==0?A(re,Q,ae,!1):I(re,Q)):A(re,Q,ae,!1))):se||(Q.reading=!1)}return L(Q)}function A(re,ae,Oe,se){ae.flowing&&ae.length===0&&!ae.sync?(re.emit("data",Oe),re.read(0)):(ae.length+=ae.objectMode?1:Oe.length,se?ae.buffer.unshift(Oe):ae.buffer.push(Oe),ae.needReadable&&W(re)),I(re,ae)}function U(re,ae){var Oe;return!h(ae)&&typeof ae!="string"&&ae!==void 0&&!re.objectMode&&(Oe=new TypeError("Invalid non-string/buffer chunk")),Oe}function L(re){return!re.ended&&(re.needReadable||re.length<re.highWaterMark||re.length===0)}S.prototype.isPaused=function(){return this._readableState.flowing===!1},S.prototype.setEncoding=function(re){return v||(v=k("string_decoder/").StringDecoder),this._readableState.decoder=new v(re),this._readableState.encoding=re,this};var N=8388608;function V(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 H(re,ae){return re<=0||ae.length===0&&ae.ended?0:ae.objectMode?1:re!==re?ae.flowing&&ae.length?ae.buffer.head.data.length:ae.length:(re>ae.highWaterMark&&(ae.highWaterMark=V(re)),re<=ae.length?re:ae.ended?ae.length:(ae.needReadable=!0,0))}S.prototype.read=function(re){c("read",re),re=parseInt(re,10);var ae=this._readableState,Oe=re;if(re!==0&&(ae.emittedReadable=!1),re===0&&ae.needReadable&&(ae.length>=ae.highWaterMark||ae.ended))return c("read: emitReadable",ae.length,ae.ended),ae.length===0&&ae.ended?le(this):W(this),null;if(re=H(re,ae),re===0&&ae.ended)return ae.length===0&&le(this),null;var se=ae.needReadable;c("need readable",se),(ae.length===0||ae.length-re<ae.highWaterMark)&&(se=!0,c("length less than watermark",se)),ae.ended||ae.reading?(se=!1,c("reading or ended",se)):se&&(c("do read"),ae.reading=!0,ae.sync=!0,ae.length===0&&(ae.needReadable=!0),this._read(ae.highWaterMark),ae.sync=!1,ae.reading||(re=H(Oe,ae)));var te;return re>0?te=ce(re,ae):te=null,te===null?(ae.needReadable=!0,re=0):ae.length-=re,ae.length===0&&(ae.ended||(ae.needReadable=!0),Oe!==re&&ae.ended&&le(this)),te!==null&&this.emit("data",te),te};function D(re,ae){if(ae.ended)return;if(ae.decoder){var Oe=ae.decoder.end();Oe&&Oe.length&&(ae.buffer.push(Oe),ae.length+=ae.objectMode?1:Oe.length)}ae.ended=!0,W(re)}function W(re){var ae=re._readableState;ae.needReadable=!1,ae.emittedReadable||(c("emitReadable",ae.flowing),ae.emittedReadable=!0,ae.sync?m.nextTick(F,re):F(re))}function F(re){c("emit readable"),re.emit("readable"),Te(re)}function I(re,ae){ae.readingMore||(ae.readingMore=!0,m.nextTick(K,re,ae))}function K(re,ae){for(var Oe=ae.length;!ae.reading&&!ae.flowing&&!ae.ended&&ae.length<ae.highWaterMark&&!(c("maybeReadMore read 0"),re.read(0),Oe===ae.length);)Oe=ae.length;ae.readingMore=!1}S.prototype._read=function(re){this.emit("error",new Error("_read() is not implemented"))},S.prototype.pipe=function(re,ae){var Oe=this,se=this._readableState;switch(se.pipesCount){case 0:se.pipes=re;break;case 1:se.pipes=[se.pipes,re];break;default:se.pipes.push(re);break}se.pipesCount+=1,c("pipe count=%d opts=%j",se.pipesCount,ae);var te=(!ae||ae.end!==!1)&&re!==P.stdout&&re!==P.stderr,Q=te?ve:Ye;se.endEmitted?m.nextTick(Q):Oe.once("end",Q),re.on("unpipe",J);function J(Ue,ft){c("onunpipe"),Ue===Oe&&(ft&&ft.hasUnpiped===!1&&(ft.hasUnpiped=!0,Qe()))}function ve(){c("onend"),re.end()}var _e=ee(Oe);re.on("drain",_e);var Ae=!1;function Qe(){c("cleanup"),re.removeListener("close",vt),re.removeListener("finish",yt),re.removeListener("drain",_e),re.removeListener("error",mt),re.removeListener("unpipe",J),Oe.removeListener("end",ve),Oe.removeListener("end",Ye),Oe.removeListener("data",dt),Ae=!0,se.awaitDrain&&(!re._writableState||re._writableState.needDrain)&&_e()}var tt=!1;Oe.on("data",dt);function dt(Ue){c("ondata"),tt=!1;var ft=re.write(Ue);ft===!1&&!tt&&((se.pipesCount===1&&se.pipes===re||se.pipesCount>1&&me(se.pipes,re)!==-1)&&!Ae&&(c("false write response, pause",Oe._readableState.awaitDrain),Oe._readableState.awaitDrain++,tt=!0),Oe.pause())}function mt(Ue){c("onerror",Ue),Ye(),re.removeListener("error",mt),u(re,"error")===0&&re.emit("error",Ue)}M(re,"error",mt);function vt(){re.removeListener("finish",yt),Ye()}re.once("close",vt);function yt(){c("onfinish"),re.removeListener("close",vt),Ye()}re.once("finish",yt);function Ye(){c("unpipe"),Oe.unpipe(re)}return re.emit("pipe",Oe),se.flowing||(c("pipe resume"),Oe.resume()),re};function ee(re){return function(){var ae=re._readableState;c("pipeOnDrain",ae.awaitDrain),ae.awaitDrain&&ae.awaitDrain--,ae.awaitDrain===0&&u(re,"data")&&(ae.flowing=!0,Te(re))}}S.prototype.unpipe=function(re){var ae=this._readableState,Oe={hasUnpiped:!1};if(ae.pipesCount===0)return this;if(ae.pipesCount===1)return re&&re!==ae.pipes?this:(re||(re=ae.pipes),ae.pipes=null,ae.pipesCount=0,ae.flowing=!1,re&&re.emit("unpipe",this,Oe),this);if(!re){var se=ae.pipes,te=ae.pipesCount;ae.pipes=null,ae.pipesCount=0,ae.flowing=!1;for(var Q=0;Q<te;Q++)se[Q].emit("unpipe",this,Oe);return this}var J=me(ae.pipes,re);return J===-1?this:(ae.pipes.splice(J,1),ae.pipesCount-=1,ae.pipesCount===1&&(ae.pipes=ae.pipes[0]),re.emit("unpipe",this,Oe),this)},S.prototype.on=function(re,ae){var Oe=r.prototype.on.call(this,re,ae);if(re==="data")this._readableState.flowing!==!1&&this.resume();else if(re==="readable"){var se=this._readableState;!se.endEmitted&&!se.readableListening&&(se.readableListening=se.needReadable=!0,se.emittedReadable=!1,se.reading?se.length&&W(this):m.nextTick(he,this))}return Oe},S.prototype.addListener=S.prototype.on;function he(re){c("readable nexttick read 0"),re.read(0)}S.prototype.resume=function(){var re=this._readableState;return re.flowing||(c("resume"),re.flowing=!0,de(this,re)),this};function de(re,ae){ae.resumeScheduled||(ae.resumeScheduled=!0,m.nextTick(Se,re,ae))}function Se(re,ae){ae.reading||(c("resume read 0"),re.read(0)),ae.resumeScheduled=!1,ae.awaitDrain=0,re.emit("resume"),Te(re),ae.flowing&&!ae.reading&&re.read(0)}S.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Te(re){var ae=re._readableState;for(c("flow",ae.flowing);ae.flowing&&re.read()!==null;);}S.prototype.wrap=function(re){var ae=this,Oe=this._readableState,se=!1;re.on("end",function(){if(c("wrapped end"),Oe.decoder&&!Oe.ended){var J=Oe.decoder.end();J&&J.length&&ae.push(J)}ae.push(null)}),re.on("data",function(J){if(c("wrapped data"),Oe.decoder&&(J=Oe.decoder.write(J)),Oe.objectMode&&J==null)return;if(!Oe.objectMode&&(!J||!J.length))return;var ve=ae.push(J);ve||(se=!0,re.pause())});for(var te in re)this[te]===void 0&&typeof re[te]=="function"&&(this[te]=function(J){return function(){return re[J].apply(re,arguments)}}(te));for(var Q=0;Q<R.length;Q++)re.on(R[Q],this.emit.bind(this,R[Q]));return this._read=function(J){c("wrapped _read",J),se&&(se=!1,re.resume())},this},Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),S._fromList=ce;function ce(re,ae){if(ae.length===0)return null;var Oe;return ae.objectMode?Oe=ae.buffer.shift():!re||re>=ae.length?(ae.decoder?Oe=ae.buffer.join(""):ae.buffer.length===1?Oe=ae.buffer.head.data:Oe=ae.buffer.concat(ae.length),ae.buffer.clear()):Oe=be(re,ae.buffer,ae.decoder),Oe}function be(re,ae,Oe){var se;return re<ae.head.data.length?(se=ae.head.data.slice(0,re),ae.head.data=ae.head.data.slice(re)):re===ae.head.data.length?se=ae.shift():se=Oe?Ee(re,ae):ue(re,ae),se}function Ee(re,ae){var Oe=ae.head,se=1,te=Oe.data;for(re-=te.length;Oe=Oe.next;){var Q=Oe.data,J=re>Q.length?Q.length:re;if(J===Q.length?te+=Q:te+=Q.slice(0,re),re-=J,re===0){J===Q.length?(++se,Oe.next?ae.head=Oe.next:ae.head=ae.tail=null):(ae.head=Oe,Oe.data=Q.slice(J));break}++se}return ae.length-=se,te}function ue(re,ae){var Oe=i.allocUnsafe(re),se=ae.head,te=1;for(se.data.copy(Oe),re-=se.data.length;se=se.next;){var Q=se.data,J=re>Q.length?Q.length:re;if(Q.copy(Oe,Oe.length-re,0,J),re-=J,re===0){J===Q.length?(++te,se.next?ae.head=se.next:ae.head=ae.tail=null):(ae.head=se,se.data=Q.slice(J));break}++te}return ae.length-=te,Oe}function le(re){var ae=re._readableState;if(ae.length>0)throw new Error('"endReadable()" called on non-empty stream');ae.endEmitted||(ae.ended=!0,m.nextTick($,ae,re))}function $(re,ae){!re.endEmitted&&re.length===0&&(re.endEmitted=!0,ae.readable=!1,ae.emit("end"))}function me(re,ae){for(var Oe=0,se=re.length;Oe<se;Oe++)if(re[Oe]===ae)return Oe;return-1}}).call(this,k("_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(k,z,o){"use strict";var P=k("babel-runtime/core-js/object/create"),g=T(P);function T(f){return f&&f.__esModule?f:{default:f}}z.exports=O;var b=k("./_stream_duplex"),y=(0,g.default)(k("core-util-is"));y.inherits=k("inherits"),y.inherits(O,b);function x(f,a){var u=this._transformState;u.transforming=!1;var r=u.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));u.writechunk=null,u.writecb=null,a!=null&&this.push(a),r(f);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function O(f){if(!(this instanceof O))return new O(f);b.call(this,f),this._transformState={afterTransform:x.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,f&&(typeof f.transform=="function"&&(this._transform=f.transform),typeof f.flush=="function"&&(this._flush=f.flush)),this.on("prefinish",m)}function m(){var f=this;typeof this._flush=="function"?this._flush(function(a,u){e(f,a,u)}):e(this,null,null)}O.prototype.push=function(f,a){return this._transformState.needTransform=!1,b.prototype.push.call(this,f,a)},O.prototype._transform=function(f,a,u){throw new Error("_transform() is not implemented")},O.prototype._write=function(f,a,u){var r=this._transformState;if(r.writecb=u,r.writechunk=f,r.writeencoding=a,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},O.prototype._read=function(f){var a=this._transformState;a.writechunk!==null&&a.writecb&&!a.transforming?(a.transforming=!0,this._transform(a.writechunk,a.writeencoding,a.afterTransform)):a.needTransform=!0},O.prototype._destroy=function(f,a){var u=this;b.prototype._destroy.call(this,f,function(r){a(r),u.emit("close")})};function e(f,a,u){if(a)return f.emit("error",a);if(u!=null&&f.push(u),f._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(f._transformState.transforming)throw new Error("Calling transform done when still transforming");return f.push(null)}},{"./_stream_duplex":214,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],218:[function(k,z,o){(function(P,g){"use strict";var T=k("babel-runtime/core-js/object/define-property"),b=r(T),y=k("babel-runtime/core-js/symbol/has-instance"),x=r(y),O=k("babel-runtime/core-js/symbol"),m=r(O),e=k("babel-runtime/core-js/object/create"),f=r(e),a=k("babel-runtime/core-js/set-immediate"),u=r(a);function r(ue){return ue&&ue.__esModule?ue:{default:ue}}var i=k("process-nextick-args");z.exports=U;function n(ue,le,$){this.chunk=ue,this.encoding=le,this.callback=$,this.next=null}function l(ue){var le=this;this.next=null,this.entry=null,this.finish=function(){Ee(le,ue)}}var h=!P.browser&&["v0.10","v0.9."].indexOf(P.version.slice(0,5))>-1?u.default:i.nextTick,d;U.WritableState=_;var s=(0,f.default)(k("core-util-is"));s.inherits=k("inherits");var c={deprecate:k("util-deprecate")},w=k("./internal/streams/stream"),E=k("safe-buffer").Buffer,v=g.Uint8Array||function(){};function R(ue){return E.from(ue)}function M(ue){return E.isBuffer(ue)||ue instanceof v}var C=k("./internal/streams/destroy");s.inherits(U,w);function S(){}function _(ue,le){d=d||k("./_stream_duplex"),ue=ue||{};var $=le instanceof d;this.objectMode=!!ue.objectMode,$&&(this.objectMode=this.objectMode||!!ue.writableObjectMode);var me=ue.highWaterMark,re=ue.writableHighWaterMark,ae=this.objectMode?16:16*1024;me||me===0?this.highWaterMark=me:$&&(re||re===0)?this.highWaterMark=re:this.highWaterMark=ae,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 Oe=ue.decodeStrings===!1;this.decodeStrings=!Oe,this.defaultEncoding=ue.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(se){I(le,se)},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 l(this)}_.prototype.getBuffer=function(){for(var le=this.bufferedRequest,$=[];le;)$.push(le),le=le.next;return $},function(){try{Object.defineProperty(_.prototype,"buffer",{get:c.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(ue){}}();var A;typeof m.default=="function"&&x.default&&typeof Function.prototype[x.default]=="function"?(A=Function.prototype[x.default],(0,b.default)(U,x.default,{value:function(le){return A.call(this,le)?!0:this!==U?!1:le&&le._writableState instanceof _}})):A=function(le){return le instanceof this};function U(ue){if(d=d||k("./_stream_duplex"),!A.call(U,this)&&!(this instanceof d))return new U(ue);this._writableState=new _(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)),w.call(this)}U.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function L(ue,le){var $=new Error("write after end");ue.emit("error",$),i.nextTick(le,$)}function N(ue,le,$,me){var re=!0,ae=!1;return $===null?ae=new TypeError("May not write null values to stream"):typeof $!="string"&&$!==void 0&&!le.objectMode&&(ae=new TypeError("Invalid non-string/buffer chunk")),ae&&(ue.emit("error",ae),i.nextTick(me,ae),re=!1),re}U.prototype.write=function(ue,le,$){var me=this._writableState,re=!1,ae=!me.objectMode&&M(ue);return ae&&!E.isBuffer(ue)&&(ue=R(ue)),typeof le=="function"&&($=le,le=null),ae?le="buffer":le||(le=me.defaultEncoding),typeof $!="function"&&($=S),me.ended?L(this,$):(ae||N(this,me,ue,$))&&(me.pendingcb++,re=H(this,me,ae,ue,le,$)),re},U.prototype.cork=function(){var ue=this._writableState;ue.corked++},U.prototype.uncork=function(){var ue=this._writableState;ue.corked&&(ue.corked--,!ue.writing&&!ue.corked&&!ue.finished&&!ue.bufferProcessing&&ue.bufferedRequest&&he(this,ue))},U.prototype.setDefaultEncoding=function(le){if(typeof le=="string"&&(le=le.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((le+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+le);return this._writableState.defaultEncoding=le,this};function V(ue,le,$){return!ue.objectMode&&ue.decodeStrings!==!1&&typeof le=="string"&&(le=E.from(le,$)),le}Object.defineProperty(U.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function H(ue,le,$,me,re,ae){if(!$){var Oe=V(le,me,re);me!==Oe&&($=!0,re="buffer",me=Oe)}var se=le.objectMode?1:me.length;le.length+=se;var te=le.length<le.highWaterMark;if(te||(le.needDrain=!0),le.writing||le.corked){var Q=le.lastBufferedRequest;le.lastBufferedRequest={chunk:me,encoding:re,isBuf:$,callback:ae,next:null},Q?Q.next=le.lastBufferedRequest:le.bufferedRequest=le.lastBufferedRequest,le.bufferedRequestCount+=1}else D(ue,le,!1,se,me,re,ae);return te}function D(ue,le,$,me,re,ae,Oe){le.writelen=me,le.writecb=Oe,le.writing=!0,le.sync=!0,$?ue._writev(re,le.onwrite):ue._write(re,ae,le.onwrite),le.sync=!1}function W(ue,le,$,me,re){--le.pendingcb,$?(i.nextTick(re,me),i.nextTick(ce,ue,le),ue._writableState.errorEmitted=!0,ue.emit("error",me)):(re(me),ue._writableState.errorEmitted=!0,ue.emit("error",me),ce(ue,le))}function F(ue){ue.writing=!1,ue.writecb=null,ue.length-=ue.writelen,ue.writelen=0}function I(ue,le){var $=ue._writableState,me=$.sync,re=$.writecb;if(F($),le)W(ue,$,me,le,re);else{var ae=de($);!ae&&!$.corked&&!$.bufferProcessing&&$.bufferedRequest&&he(ue,$),me?h(K,ue,$,ae,re):K(ue,$,ae,re)}}function K(ue,le,$,me){$||ee(ue,le),le.pendingcb--,me(),ce(ue,le)}function ee(ue,le){le.length===0&&le.needDrain&&(le.needDrain=!1,ue.emit("drain"))}function he(ue,le){le.bufferProcessing=!0;var $=le.bufferedRequest;if(ue._writev&&$&&$.next){var me=le.bufferedRequestCount,re=new Array(me),ae=le.corkedRequestsFree;ae.entry=$;for(var Oe=0,se=!0;$;)re[Oe]=$,$.isBuf||(se=!1),$=$.next,Oe+=1;re.allBuffers=se,D(ue,le,!0,le.length,re,"",ae.finish),le.pendingcb++,le.lastBufferedRequest=null,ae.next?(le.corkedRequestsFree=ae.next,ae.next=null):le.corkedRequestsFree=new l(le),le.bufferedRequestCount=0}else{for(;$;){var te=$.chunk,Q=$.encoding,J=$.callback,ve=le.objectMode?1:te.length;if(D(ue,le,!1,ve,te,Q,J),$=$.next,le.bufferedRequestCount--,le.writing)break}$===null&&(le.lastBufferedRequest=null)}le.bufferedRequest=$,le.bufferProcessing=!1}U.prototype._write=function(ue,le,$){$(new Error("_write() is not implemented"))},U.prototype._writev=null,U.prototype.end=function(ue,le,$){var me=this._writableState;typeof ue=="function"?($=ue,ue=null,le=null):typeof le=="function"&&($=le,le=null),ue!=null&&this.write(ue,le),me.corked&&(me.corked=1,this.uncork()),!me.ending&&!me.finished&&be(this,me,$)};function de(ue){return ue.ending&&ue.length===0&&ue.bufferedRequest===null&&!ue.finished&&!ue.writing}function Se(ue,le){ue._final(function($){le.pendingcb--,$&&ue.emit("error",$),le.prefinished=!0,ue.emit("prefinish"),ce(ue,le)})}function Te(ue,le){!le.prefinished&&!le.finalCalled&&(typeof ue._final=="function"?(le.pendingcb++,le.finalCalled=!0,i.nextTick(Se,ue,le)):(le.prefinished=!0,ue.emit("prefinish")))}function ce(ue,le){var $=de(le);return $&&(Te(ue,le),le.pendingcb===0&&(le.finished=!0,ue.emit("finish"))),$}function be(ue,le,$){le.ending=!0,ce(ue,le),$&&(le.finished?i.nextTick($):ue.once("finish",$)),le.ended=!0,ue.writable=!1}function Ee(ue,le,$){var me=ue.entry;for(ue.entry=null;me;){var re=me.callback;le.pendingcb--,re($),me=me.next}le.corkedRequestsFree?le.corkedRequestsFree.next=ue:le.corkedRequestsFree=ue}Object.defineProperty(U.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(le){if(!this._writableState)return;this._writableState.destroyed=le}}),U.prototype.destroy=C.destroy,U.prototype._undestroy=C.undestroy,U.prototype._destroy=function(ue,le){this.end(),le(ue)}}).call(this,k("_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(k,z,o){"use strict";function P(y,x){if(!(y instanceof x))throw new TypeError("Cannot call a class as a function")}var g=k("safe-buffer").Buffer,T=k("util");function b(y,x,O){y.copy(x,O)}z.exports=function(){function y(){P(this,y),this.head=null,this.tail=null,this.length=0}return y.prototype.push=function(O){var m={data:O,next:null};this.length>0?this.tail.next=m:this.head=m,this.tail=m,++this.length},y.prototype.unshift=function(O){var m={data:O,next:this.head};this.length===0&&(this.tail=m),this.head=m,++this.length},y.prototype.shift=function(){if(this.length===0)return;var O=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,O},y.prototype.clear=function(){this.head=this.tail=null,this.length=0},y.prototype.join=function(O){if(this.length===0)return"";for(var m=this.head,e=""+m.data;m=m.next;)e+=O+m.data;return e},y.prototype.concat=function(O){if(this.length===0)return g.alloc(0);if(this.length===1)return this.head.data;for(var m=g.allocUnsafe(O>>>0),e=this.head,f=0;e;)b(e.data,m,f),f+=e.data.length,e=e.next;return m},y}(),T&&T.inspect&&T.inspect.custom&&(z.exports.prototype[T.inspect.custom]=function(){var y=T.inspect({length:this.length});return this.constructor.name+" "+y})},{"safe-buffer":228,util:71}],220:[function(k,z,o){"use strict";var P=k("process-nextick-args");function g(y,x){var O=this,m=this._readableState&&this._readableState.destroyed,e=this._writableState&&this._writableState.destroyed;return m||e?(x?x(y):y&&(!this._writableState||!this._writableState.errorEmitted)&&P.nextTick(b,this,y),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(y||null,function(f){!x&&f?(P.nextTick(b,O,f),O._writableState&&(O._writableState.errorEmitted=!0)):x&&x(f)}),this)}function T(){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)}z.exports={destroy:g,undestroy:T}},{"process-nextick-args":207}],221:[function(k,z,o){"use strict";z.exports=k("events").EventEmitter},{events:192}],222:[function(k,z,o){z.exports=k("./readable").PassThrough},{"./readable":223}],223:[function(k,z,o){o=z.exports=k("./lib/_stream_readable.js"),o.Stream=o,o.Readable=o,o.Writable=k("./lib/_stream_writable.js"),o.Duplex=k("./lib/_stream_duplex.js"),o.Transform=k("./lib/_stream_transform.js"),o.PassThrough=k("./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(k,z,o){z.exports=k("./readable").Transform},{"./readable":223}],225:[function(k,z,o){z.exports=k("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":218}],226:[function(k,z,o){var P=function(){return this}()||Function("return this")(),g=P.regeneratorRuntime&&Object.getOwnPropertyNames(P).indexOf("regeneratorRuntime")>=0,T=g&&P.regeneratorRuntime;if(P.regeneratorRuntime=void 0,z.exports=k("./runtime"),g)P.regeneratorRuntime=T;else try{delete P.regeneratorRuntime}catch(b){P.regeneratorRuntime=void 0}},{"./runtime":227}],227:[function(k,z,o){!function(P){"use strict";var g=Object.prototype,T=g.hasOwnProperty,b,y=typeof Symbol=="function"?Symbol:{},x=y.iterator||"@@iterator",O=y.asyncIterator||"@@asyncIterator",m=y.toStringTag||"@@toStringTag",e=typeof z=="object",f=P.regeneratorRuntime;if(f){e&&(z.exports=f);return}f=P.regeneratorRuntime=e?z.exports:{};function a(H,D,W,F){var I=D&&D.prototype instanceof d?D:d,K=Object.create(I.prototype),ee=new L(F||[]);return K._invoke=S(H,W,ee),K}f.wrap=a;function u(H,D,W){try{return{type:"normal",arg:H.call(D,W)}}catch(F){return{type:"throw",arg:F}}}var r="suspendedStart",i="suspendedYield",n="executing",l="completed",h={};function d(){}function s(){}function c(){}var w={};w[x]=function(){return this};var E=Object.getPrototypeOf,v=E&&E(E(N([])));v&&v!==g&&T.call(v,x)&&(w=v);var R=c.prototype=d.prototype=Object.create(w);s.prototype=R.constructor=c,c.constructor=s,c[m]=s.displayName="GeneratorFunction";function M(H){["next","throw","return"].forEach(function(D){H[D]=function(W){return this._invoke(D,W)}})}f.isGeneratorFunction=function(H){var D=typeof H=="function"&&H.constructor;return D?D===s||(D.displayName||D.name)==="GeneratorFunction":!1},f.mark=function(H){return Object.setPrototypeOf?Object.setPrototypeOf(H,c):(H.__proto__=c,m in H||(H[m]="GeneratorFunction")),H.prototype=Object.create(R),H},f.awrap=function(H){return{__await:H}};function C(H){function D(I,K,ee,he){var de=u(H[I],H,K);if(de.type==="throw")he(de.arg);else{var Se=de.arg,Te=Se.value;return Te&&typeof Te=="object"&&T.call(Te,"__await")?Promise.resolve(Te.__await).then(function(ce){D("next",ce,ee,he)},function(ce){D("throw",ce,ee,he)}):Promise.resolve(Te).then(function(ce){Se.value=ce,ee(Se)},he)}}var W;function F(I,K){function ee(){return new Promise(function(he,de){D(I,K,he,de)})}return W=W?W.then(ee,ee):ee()}this._invoke=F}M(C.prototype),C.prototype[O]=function(){return this},f.AsyncIterator=C,f.async=function(H,D,W,F){var I=new C(a(H,D,W,F));return f.isGeneratorFunction(D)?I:I.next().then(function(K){return K.done?K.value:I.next()})};function S(H,D,W){var F=r;return function(K,ee){if(F===n)throw new Error("Generator is already running");if(F===l){if(K==="throw")throw ee;return V()}for(W.method=K,W.arg=ee;;){var he=W.delegate;if(he){var de=_(he,W);if(de){if(de===h)continue;return de}}if(W.method==="next")W.sent=W._sent=W.arg;else if(W.method==="throw"){if(F===r)throw F=l,W.arg;W.dispatchException(W.arg)}else W.method==="return"&&W.abrupt("return",W.arg);F=n;var Se=u(H,D,W);if(Se.type==="normal"){if(F=W.done?l:i,Se.arg===h)continue;return{value:Se.arg,done:W.done}}else Se.type==="throw"&&(F=l,W.method="throw",W.arg=Se.arg)}}}function _(H,D){var W=H.iterator[D.method];if(W===b){if(D.delegate=null,D.method==="throw"){if(H.iterator.return&&(D.method="return",D.arg=b,_(H,D),D.method==="throw"))return h;D.method="throw",D.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var F=u(W,H.iterator,D.arg);if(F.type==="throw")return D.method="throw",D.arg=F.arg,D.delegate=null,h;var I=F.arg;if(!I)return D.method="throw",D.arg=new TypeError("iterator result is not an object"),D.delegate=null,h;if(I.done)D[H.resultName]=I.value,D.next=H.nextLoc,D.method!=="return"&&(D.method="next",D.arg=b);else return I;return D.delegate=null,h}M(R),R[m]="Generator",R[x]=function(){return this},R.toString=function(){return"[object Generator]"};function A(H){var D={tryLoc:H[0]};1 in H&&(D.catchLoc=H[1]),2 in H&&(D.finallyLoc=H[2],D.afterLoc=H[3]),this.tryEntries.push(D)}function U(H){var D=H.completion||{};D.type="normal",delete D.arg,H.completion=D}function L(H){this.tryEntries=[{tryLoc:"root"}],H.forEach(A,this),this.reset(!0)}f.keys=function(H){var D=[];for(var W in H)D.push(W);return D.reverse(),function F(){for(;D.length;){var I=D.pop();if(I in H)return F.value=I,F.done=!1,F}return F.done=!0,F}};function N(H){if(H){var D=H[x];if(D)return D.call(H);if(typeof H.next=="function")return H;if(!isNaN(H.length)){var W=-1,F=function I(){for(;++W<H.length;)if(T.call(H,W))return I.value=H[W],I.done=!1,I;return I.value=b,I.done=!0,I};return F.next=F}}return{next:V}}f.values=N;function V(){return{value:b,done:!0}}L.prototype={constructor:L,reset:function(H){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(U),!H)for(var D in this)D.charAt(0)==="t"&&T.call(this,D)&&!isNaN(+D.slice(1))&&(this[D]=b)},stop:function(){this.done=!0;var H=this.tryEntries[0],D=H.completion;if(D.type==="throw")throw D.arg;return this.rval},dispatchException:function(H){if(this.done)throw H;var D=this;function W(de,Se){return K.type="throw",K.arg=H,D.next=de,Se&&(D.method="next",D.arg=b),!!Se}for(var F=this.tryEntries.length-1;F>=0;--F){var I=this.tryEntries[F],K=I.completion;if(I.tryLoc==="root")return W("end");if(I.tryLoc<=this.prev){var ee=T.call(I,"catchLoc"),he=T.call(I,"finallyLoc");if(ee&&he){if(this.prev<I.catchLoc)return W(I.catchLoc,!0);if(this.prev<I.finallyLoc)return W(I.finallyLoc)}else if(ee){if(this.prev<I.catchLoc)return W(I.catchLoc,!0)}else if(he){if(this.prev<I.finallyLoc)return W(I.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(H,D){for(var W=this.tryEntries.length-1;W>=0;--W){var F=this.tryEntries[W];if(F.tryLoc<=this.prev&&T.call(F,"finallyLoc")&&this.prev<F.finallyLoc){var I=F;break}}I&&(H==="break"||H==="continue")&&I.tryLoc<=D&&D<=I.finallyLoc&&(I=null);var K=I?I.completion:{};return K.type=H,K.arg=D,I?(this.method="next",this.next=I.finallyLoc,h):this.complete(K)},complete:function(H,D){if(H.type==="throw")throw H.arg;return H.type==="break"||H.type==="continue"?this.next=H.arg:H.type==="return"?(this.rval=this.arg=H.arg,this.method="return",this.next="end"):H.type==="normal"&&D&&(this.next=D),h},finish:function(H){for(var D=this.tryEntries.length-1;D>=0;--D){var W=this.tryEntries[D];if(W.finallyLoc===H)return this.complete(W.completion,W.afterLoc),U(W),h}},catch:function(H){for(var D=this.tryEntries.length-1;D>=0;--D){var W=this.tryEntries[D];if(W.tryLoc===H){var F=W.completion;if(F.type==="throw"){var I=F.arg;U(W)}return I}}throw new Error("illegal catch attempt")},delegateYield:function(H,D,W){return this.delegate={iterator:N(H),resultName:D,nextLoc:W},this.method==="next"&&(this.arg=b),h}}}(function(){return this}()||Function("return this")())},{}],228:[function(k,z,o){var P=k("buffer"),g=P.Buffer;function T(y,x){for(var O in y)x[O]=y[O]}g.from&&g.alloc&&g.allocUnsafe&&g.allocUnsafeSlow?z.exports=P:(T(P,o),o.Buffer=b);function b(y,x,O){return g(y,x,O)}T(g,b),b.from=function(y,x,O){if(typeof y=="number")throw new TypeError("Argument must not be a number");return g(y,x,O)},b.alloc=function(y,x,O){if(typeof y!="number")throw new TypeError("Argument must be a number");var m=g(y);return x!==void 0?typeof O=="string"?m.fill(x,O):m.fill(x):m.fill(0),m},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 P.SlowBuffer(y)}},{buffer:73}],229:[function(k,z,o){(function(P){"use strict";var g=k("babel-runtime/core-js/string/from-code-point"),T=i(g),b=k("babel-runtime/core-js/json/stringify"),y=i(b),x=k("babel-runtime/helpers/typeof"),O=i(x),m=k("babel-runtime/core-js/object/define-property"),e=i(m),f=k("babel-runtime/core-js/object/keys"),a=i(f),u=k("babel-runtime/core-js/object/create"),r=i(u);function i(n){return n&&n.__esModule?n:{default:n}}(function(n){n.parser=function(Q,J){return new h(Q,J)},n.SAXParser=h,n.SAXStream=R,n.createStream=v,n.MAX_BUFFER_LENGTH=64*1024;var l=["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(Q,J){if(!(this instanceof h))return new h(Q,J);var ve=this;s(ve),ve.q=ve.c="",ve.bufferCheckPosition=n.MAX_BUFFER_LENGTH,ve.opt=J||{},ve.opt.lowercase=ve.opt.lowercase||ve.opt.lowercasetags,ve.looseCase=ve.opt.lowercase?"toLowerCase":"toUpperCase",ve.tags=[],ve.closed=ve.closedRoot=ve.sawRoot=!1,ve.tag=ve.error=null,ve.strict=!!Q,ve.noscript=!!(Q||ve.opt.noscript),ve.state=K.BEGIN,ve.strictEntities=ve.opt.strictEntities,ve.ENTITIES=ve.strictEntities?(0,r.default)(n.XML_ENTITIES):(0,r.default)(n.ENTITIES),ve.attribList=[],ve.opt.xmlns&&(ve.ns=(0,r.default)(A)),ve.trackPosition=ve.opt.position!==!1,ve.trackPosition&&(ve.position=ve.line=ve.column=0),he(ve,"onready")}r.default||(Object.create=function(Q){function J(){}J.prototype=Q;var ve=new J;return ve}),a.default||(Object.keys=function(Q){var J=[];for(var ve in Q)Q.hasOwnProperty(ve)&&J.push(ve);return J});function d(Q){for(var J=Math.max(n.MAX_BUFFER_LENGTH,10),ve=0,_e=0,Ae=l.length;_e<Ae;_e++){var Qe=Q[l[_e]].length;if(Qe>J)switch(l[_e]){case"textNode":Se(Q);break;case"cdata":de(Q,"oncdata",Q.cdata),Q.cdata="";break;case"script":de(Q,"onscript",Q.script),Q.script="";break;default:ce(Q,"Max buffer length exceeded: "+l[_e])}ve=Math.max(ve,Qe)}var tt=n.MAX_BUFFER_LENGTH-ve;Q.bufferCheckPosition=tt+Q.position}function s(Q){for(var J=0,ve=l.length;J<ve;J++)Q[l[J]]=""}function c(Q){Se(Q),Q.cdata!==""&&(de(Q,"oncdata",Q.cdata),Q.cdata=""),Q.script!==""&&(de(Q,"onscript",Q.script),Q.script="")}h.prototype={end:function(){be(this)},write:te,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){c(this)}};var w;try{w=k("stream").Stream}catch(Q){w=function(){}}var E=n.EVENTS.filter(function(Q){return Q!=="error"&&Q!=="end"});function v(Q,J){return new R(Q,J)}function R(Q,J){if(!(this instanceof R))return new R(Q,J);w.apply(this),this._parser=new h(Q,J),this.writable=!0,this.readable=!0;var ve=this;this._parser.onend=function(){ve.emit("end")},this._parser.onerror=function(_e){ve.emit("error",_e),ve._parser.error=null},this._decoder=null,E.forEach(function(_e){(0,e.default)(ve,"on"+_e,{get:function(){return ve._parser["on"+_e]},set:function(Qe){if(!Qe)return ve.removeAllListeners(_e),ve._parser["on"+_e]=Qe,Qe;ve.on(_e,Qe)},enumerable:!0,configurable:!1})})}R.prototype=(0,r.default)(w.prototype,{constructor:{value:R}}),R.prototype.write=function(Q){if(typeof P=="function"&&typeof P.isBuffer=="function"&&P.isBuffer(Q)){if(!this._decoder){var J=k("string_decoder").StringDecoder;this._decoder=new J("utf8")}Q=this._decoder.write(Q)}return this._parser.write(Q.toString()),this.emit("data",Q),!0},R.prototype.end=function(Q){return Q&&Q.length&&this.write(Q),this._parser.end(),!0},R.prototype.on=function(Q,J){var ve=this;return!ve._parser["on"+Q]&&E.indexOf(Q)!==-1&&(ve._parser["on"+Q]=function(){var _e=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);_e.splice(0,0,Q),ve.emit.apply(ve,_e)}),w.prototype.on.call(ve,Q,J)};var M="[CDATA[",C="DOCTYPE",S="http://www.w3.org/XML/1998/namespace",_="http://www.w3.org/2000/xmlns/",A={xml:S,xmlns:_},U=/[:_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]/,L=/[:_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]/,V=/[#:_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 H(Q){return Q===" "||Q===`
|
|
|
`||Q==="\r"||Q===" "}function D(Q){return Q==='"'||Q==="'"}function W(Q){return Q===">"||H(Q)}function F(Q,J){return Q.test(J)}function I(Q,J){return!F(Q,J)}var K=0;n.STATE={BEGIN:K++,BEGIN_WHITESPACE:K++,TEXT:K++,TEXT_ENTITY:K++,OPEN_WAKA:K++,SGML_DECL:K++,SGML_DECL_QUOTED:K++,DOCTYPE:K++,DOCTYPE_QUOTED:K++,DOCTYPE_DTD:K++,DOCTYPE_DTD_QUOTED:K++,COMMENT_STARTING:K++,COMMENT:K++,COMMENT_ENDING:K++,COMMENT_ENDED:K++,CDATA:K++,CDATA_ENDING:K++,CDATA_ENDING_2:K++,PROC_INST:K++,PROC_INST_BODY:K++,PROC_INST_ENDING:K++,OPEN_TAG:K++,OPEN_TAG_SLASH:K++,ATTRIB:K++,ATTRIB_NAME:K++,ATTRIB_NAME_SAW_WHITE:K++,ATTRIB_VALUE:K++,ATTRIB_VALUE_QUOTED:K++,ATTRIB_VALUE_CLOSED:K++,ATTRIB_VALUE_UNQUOTED:K++,ATTRIB_VALUE_ENTITY_Q:K++,ATTRIB_VALUE_ENTITY_U:K++,CLOSE_TAG:K++,CLOSE_TAG_SAW_WHITE:K++,SCRIPT:K++,SCRIPT_ENDING:K++},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,a.default)(n.ENTITIES).forEach(function(Q){var J=n.ENTITIES[Q],ve=typeof J=="number"?String.fromCharCode(J):J;n.ENTITIES[Q]=ve});for(var ee in n.STATE)n.STATE[n.STATE[ee]]=ee;K=n.STATE;function he(Q,J,ve){Q[J]&&Q[J](ve)}function de(Q,J,ve){Q.textNode&&Se(Q),he(Q,J,ve)}function Se(Q){Q.textNode=Te(Q.opt,Q.textNode),Q.textNode&&he(Q,"ontext",Q.textNode),Q.textNode=""}function Te(Q,J){return Q.trim&&(J=J.trim()),Q.normalize&&(J=J.replace(/\s+/g," ")),J}function ce(Q,J){return Se(Q),Q.trackPosition&&(J+=`
|
|
|
Line: `+Q.line+`
|
|
|
Column: `+Q.column+`
|
|
|
Char: `+Q.c),J=new Error(J),Q.error=J,he(Q,"onerror",J),Q}function be(Q){return Q.sawRoot&&!Q.closedRoot&&Ee(Q,"Unclosed root tag"),Q.state!==K.BEGIN&&Q.state!==K.BEGIN_WHITESPACE&&Q.state!==K.TEXT&&ce(Q,"Unexpected end"),Se(Q),Q.c="",Q.closed=!0,he(Q,"onend"),h.call(Q,Q.strict,Q.opt),Q}function Ee(Q,J){if((typeof Q=="undefined"?"undefined":(0,O.default)(Q))!=="object"||!(Q instanceof h))throw new Error("bad call to strictFail");Q.strict&&ce(Q,J)}function ue(Q){Q.strict||(Q.tagName=Q.tagName[Q.looseCase]());var J=Q.tags[Q.tags.length-1]||Q,ve=Q.tag={name:Q.tagName,attributes:{}};Q.opt.xmlns&&(ve.ns=J.ns),Q.attribList.length=0,de(Q,"onopentagstart",ve)}function le(Q,J){var ve=Q.indexOf(":"),_e=ve<0?["",Q]:Q.split(":"),Ae=_e[0],Qe=_e[1];return J&&Q==="xmlns"&&(Ae="xmlns",Qe=""),{prefix:Ae,local:Qe}}function $(Q){if(Q.strict||(Q.attribName=Q.attribName[Q.looseCase]()),Q.attribList.indexOf(Q.attribName)!==-1||Q.tag.attributes.hasOwnProperty(Q.attribName)){Q.attribName=Q.attribValue="";return}if(Q.opt.xmlns){var J=le(Q.attribName,!0),ve=J.prefix,_e=J.local;if(ve==="xmlns")if(_e==="xml"&&Q.attribValue!==S)Ee(Q,"xml: prefix must be bound to "+S+`
|
|
|
Actual: `+Q.attribValue);else if(_e==="xmlns"&&Q.attribValue!==_)Ee(Q,"xmlns: prefix must be bound to "+_+`
|
|
|
Actual: `+Q.attribValue);else{var Ae=Q.tag,Qe=Q.tags[Q.tags.length-1]||Q;Ae.ns===Qe.ns&&(Ae.ns=(0,r.default)(Qe.ns)),Ae.ns[_e]=Q.attribValue}Q.attribList.push([Q.attribName,Q.attribValue])}else Q.tag.attributes[Q.attribName]=Q.attribValue,de(Q,"onattribute",{name:Q.attribName,value:Q.attribValue});Q.attribName=Q.attribValue=""}function me(Q,J){if(Q.opt.xmlns){var ve=Q.tag,_e=le(Q.tagName);ve.prefix=_e.prefix,ve.local=_e.local,ve.uri=ve.ns[_e.prefix]||"",ve.prefix&&!ve.uri&&(Ee(Q,"Unbound namespace prefix: "+(0,y.default)(Q.tagName)),ve.uri=_e.prefix);var Ae=Q.tags[Q.tags.length-1]||Q;ve.ns&&Ae.ns!==ve.ns&&(0,a.default)(ve.ns).forEach(function(bt){de(Q,"onopennamespace",{prefix:bt,uri:ve.ns[bt]})});for(var Qe=0,tt=Q.attribList.length;Qe<tt;Qe++){var dt=Q.attribList[Qe],mt=dt[0],vt=dt[1],yt=le(mt,!0),Ye=yt.prefix,Ue=yt.local,ft=Ye===""?"":ve.ns[Ye]||"",jt={name:mt,value:vt,prefix:Ye,local:Ue,uri:ft};Ye&&Ye!=="xmlns"&&!ft&&(Ee(Q,"Unbound namespace prefix: "+(0,y.default)(Ye)),jt.uri=Ye),Q.tag.attributes[mt]=jt,de(Q,"onattribute",jt)}Q.attribList.length=0}Q.tag.isSelfClosing=!!J,Q.sawRoot=!0,Q.tags.push(Q.tag),de(Q,"onopentag",Q.tag),J||(!Q.noscript&&Q.tagName.toLowerCase()==="script"?Q.state=K.SCRIPT:Q.state=K.TEXT,Q.tag=null,Q.tagName=""),Q.attribName=Q.attribValue="",Q.attribList.length=0}function re(Q){if(!Q.tagName){Ee(Q,"Weird empty close tag."),Q.textNode+="</>",Q.state=K.TEXT;return}if(Q.script){if(Q.tagName!=="script"){Q.script+="</"+Q.tagName+">",Q.tagName="",Q.state=K.SCRIPT;return}de(Q,"onscript",Q.script),Q.script=""}var J=Q.tags.length,ve=Q.tagName;Q.strict||(ve=ve[Q.looseCase]());for(var _e=ve;J--;){var Ae=Q.tags[J];if(Ae.name!==_e)Ee(Q,"Unexpected close tag");else break}if(J<0){Ee(Q,"Unmatched closing tag: "+Q.tagName),Q.textNode+="</"+Q.tagName+">",Q.state=K.TEXT;return}Q.tagName=ve;for(var Qe=Q.tags.length;Qe-- >J;){var tt=Q.tag=Q.tags.pop();Q.tagName=Q.tag.name,de(Q,"onclosetag",Q.tagName);var dt={};for(var mt in tt.ns)dt[mt]=tt.ns[mt];var vt=Q.tags[Q.tags.length-1]||Q;Q.opt.xmlns&&tt.ns!==vt.ns&&(0,a.default)(tt.ns).forEach(function(yt){var Ye=tt.ns[yt];de(Q,"onclosenamespace",{prefix:yt,uri:Ye})})}J===0&&(Q.closedRoot=!0),Q.tagName=Q.attribValue=Q.attribName="",Q.attribList.length=0,Q.state=K.TEXT}function ae(Q){var J=Q.entity,ve=J.toLowerCase(),_e,Ae="";return Q.ENTITIES[J]?Q.ENTITIES[J]:Q.ENTITIES[ve]?Q.ENTITIES[ve]:(J=ve,J.charAt(0)==="#"&&(J.charAt(1)==="x"?(J=J.slice(2),_e=parseInt(J,16),Ae=_e.toString(16)):(J=J.slice(1),_e=parseInt(J,10),Ae=_e.toString(10))),J=J.replace(/^0+/,""),isNaN(_e)||Ae.toLowerCase()!==J?(Ee(Q,"Invalid character entity"),"&"+Q.entity+";"):(0,T.default)(_e))}function Oe(Q,J){J==="<"?(Q.state=K.OPEN_WAKA,Q.startTagPosition=Q.position):H(J)||(Ee(Q,"Non-whitespace before first tag."),Q.textNode=J,Q.state=K.TEXT)}function se(Q,J){var ve="";return J<Q.length&&(ve=Q.charAt(J)),ve}function te(Q){var J=this;if(this.error)throw this.error;if(J.closed)return ce(J,"Cannot write after close. Assign an onready handler.");if(Q===null)return be(J);(typeof Q=="undefined"?"undefined":(0,O.default)(Q))==="object"&&(Q=Q.toString());for(var ve=0,_e="";!(_e=se(Q,ve++),J.c=_e,!_e);){J.trackPosition&&(J.position++,_e===`
|
|
|
`?(J.line++,J.column=0):J.column++);switch(J.state){case K.BEGIN:if(J.state=K.BEGIN_WHITESPACE,_e==="\uFEFF")continue;Oe(J,_e);continue;case K.BEGIN_WHITESPACE:Oe(J,_e);continue;case K.TEXT:if(J.sawRoot&&!J.closedRoot){for(var Ae=ve-1;_e&&_e!=="<"&&_e!=="&";)_e=se(Q,ve++),_e&&J.trackPosition&&(J.position++,_e===`
|
|
|
`?(J.line++,J.column=0):J.column++);J.textNode+=Q.substring(Ae,ve-1)}_e==="<"&&!(J.sawRoot&&J.closedRoot&&!J.strict)?(J.state=K.OPEN_WAKA,J.startTagPosition=J.position):(!H(_e)&&(!J.sawRoot||J.closedRoot)&&Ee(J,"Text data outside of root node."),_e==="&"?J.state=K.TEXT_ENTITY:J.textNode+=_e);continue;case K.SCRIPT:_e==="<"?J.state=K.SCRIPT_ENDING:J.script+=_e;continue;case K.SCRIPT_ENDING:_e==="/"?J.state=K.CLOSE_TAG:(J.script+="<"+_e,J.state=K.SCRIPT);continue;case K.OPEN_WAKA:if(_e==="!")J.state=K.SGML_DECL,J.sgmlDecl="";else if(!H(_e))if(F(U,_e))J.state=K.OPEN_TAG,J.tagName=_e;else if(_e==="/")J.state=K.CLOSE_TAG,J.tagName="";else if(_e==="?")J.state=K.PROC_INST,J.procInstName=J.procInstBody="";else{if(Ee(J,"Unencoded <"),J.startTagPosition+1<J.position){var Qe=J.position-J.startTagPosition;_e=new Array(Qe).join(" ")+_e}J.textNode+="<"+_e,J.state=K.TEXT}continue;case K.SGML_DECL:(J.sgmlDecl+_e).toUpperCase()===M?(de(J,"onopencdata"),J.state=K.CDATA,J.sgmlDecl="",J.cdata=""):J.sgmlDecl+_e==="--"?(J.state=K.COMMENT,J.comment="",J.sgmlDecl=""):(J.sgmlDecl+_e).toUpperCase()===C?(J.state=K.DOCTYPE,(J.doctype||J.sawRoot)&&Ee(J,"Inappropriately located doctype declaration"),J.doctype="",J.sgmlDecl=""):_e===">"?(de(J,"onsgmldeclaration",J.sgmlDecl),J.sgmlDecl="",J.state=K.TEXT):(D(_e)&&(J.state=K.SGML_DECL_QUOTED),J.sgmlDecl+=_e);continue;case K.SGML_DECL_QUOTED:_e===J.q&&(J.state=K.SGML_DECL,J.q=""),J.sgmlDecl+=_e;continue;case K.DOCTYPE:_e===">"?(J.state=K.TEXT,de(J,"ondoctype",J.doctype),J.doctype=!0):(J.doctype+=_e,_e==="["?J.state=K.DOCTYPE_DTD:D(_e)&&(J.state=K.DOCTYPE_QUOTED,J.q=_e));continue;case K.DOCTYPE_QUOTED:J.doctype+=_e,_e===J.q&&(J.q="",J.state=K.DOCTYPE);continue;case K.DOCTYPE_DTD:J.doctype+=_e,_e==="]"?J.state=K.DOCTYPE:D(_e)&&(J.state=K.DOCTYPE_DTD_QUOTED,J.q=_e);continue;case K.DOCTYPE_DTD_QUOTED:J.doctype+=_e,_e===J.q&&(J.state=K.DOCTYPE_DTD,J.q="");continue;case K.COMMENT:_e==="-"?J.state=K.COMMENT_ENDING:J.comment+=_e;continue;case K.COMMENT_ENDING:_e==="-"?(J.state=K.COMMENT_ENDED,J.comment=Te(J.opt,J.comment),J.comment&&de(J,"oncomment",J.comment),J.comment=""):(J.comment+="-"+_e,J.state=K.COMMENT);continue;case K.COMMENT_ENDED:_e!==">"?(Ee(J,"Malformed comment"),J.comment+="--"+_e,J.state=K.COMMENT):J.state=K.TEXT;continue;case K.CDATA:_e==="]"?J.state=K.CDATA_ENDING:J.cdata+=_e;continue;case K.CDATA_ENDING:_e==="]"?J.state=K.CDATA_ENDING_2:(J.cdata+="]"+_e,J.state=K.CDATA);continue;case K.CDATA_ENDING_2:_e===">"?(J.cdata&&de(J,"oncdata",J.cdata),de(J,"onclosecdata"),J.cdata="",J.state=K.TEXT):_e==="]"?J.cdata+="]":(J.cdata+="]]"+_e,J.state=K.CDATA);continue;case K.PROC_INST:_e==="?"?J.state=K.PROC_INST_ENDING:H(_e)?J.state=K.PROC_INST_BODY:J.procInstName+=_e;continue;case K.PROC_INST_BODY:if(!J.procInstBody&&H(_e))continue;_e==="?"?J.state=K.PROC_INST_ENDING:J.procInstBody+=_e;continue;case K.PROC_INST_ENDING:_e===">"?(de(J,"onprocessinginstruction",{name:J.procInstName,body:J.procInstBody}),J.procInstName=J.procInstBody="",J.state=K.TEXT):(J.procInstBody+="?"+_e,J.state=K.PROC_INST_BODY);continue;case K.OPEN_TAG:F(L,_e)?J.tagName+=_e:(ue(J),_e===">"?me(J):_e==="/"?J.state=K.OPEN_TAG_SLASH:(H(_e)||Ee(J,"Invalid character in tag name"),J.state=K.ATTRIB));continue;case K.OPEN_TAG_SLASH:_e===">"?(me(J,!0),re(J)):(Ee(J,"Forward-slash in opening tag not followed by >"),J.state=K.ATTRIB);continue;case K.ATTRIB:if(H(_e))continue;_e===">"?me(J):_e==="/"?J.state=K.OPEN_TAG_SLASH:F(U,_e)?(J.attribName=_e,J.attribValue="",J.state=K.ATTRIB_NAME):Ee(J,"Invalid attribute name");continue;case K.ATTRIB_NAME:_e==="="?J.state=K.ATTRIB_VALUE:_e===">"?(Ee(J,"Attribute without value"),J.attribValue=J.attribName,$(J),me(J)):H(_e)?J.state=K.ATTRIB_NAME_SAW_WHITE:F(L,_e)?J.attribName+=_e:Ee(J,"Invalid attribute name");continue;case K.ATTRIB_NAME_SAW_WHITE:if(_e==="=")J.state=K.ATTRIB_VALUE;else{if(H(_e))continue;Ee(J,"Attribute without value"),J.tag.attributes[J.attribName]="",J.attribValue="",de(J,"onattribute",{name:J.attribName,value:""}),J.attribName="",_e===">"?me(J):F(U,_e)?(J.attribName=_e,J.state=K.ATTRIB_NAME):(Ee(J,"Invalid attribute name"),J.state=K.ATTRIB)}continue;case K.ATTRIB_VALUE:if(H(_e))continue;D(_e)?(J.q=_e,J.state=K.ATTRIB_VALUE_QUOTED):(Ee(J,"Unquoted attribute value"),J.state=K.ATTRIB_VALUE_UNQUOTED,J.attribValue=_e);continue;case K.ATTRIB_VALUE_QUOTED:if(_e!==J.q){_e==="&"?J.state=K.ATTRIB_VALUE_ENTITY_Q:J.attribValue+=_e;continue}$(J),J.q="",J.state=K.ATTRIB_VALUE_CLOSED;continue;case K.ATTRIB_VALUE_CLOSED:H(_e)?J.state=K.ATTRIB:_e===">"?me(J):_e==="/"?J.state=K.OPEN_TAG_SLASH:F(U,_e)?(Ee(J,"No whitespace between attributes"),J.attribName=_e,J.attribValue="",J.state=K.ATTRIB_NAME):Ee(J,"Invalid attribute name");continue;case K.ATTRIB_VALUE_UNQUOTED:if(!W(_e)){_e==="&"?J.state=K.ATTRIB_VALUE_ENTITY_U:J.attribValue+=_e;continue}$(J),_e===">"?me(J):J.state=K.ATTRIB;continue;case K.CLOSE_TAG:if(J.tagName)_e===">"?re(J):F(L,_e)?J.tagName+=_e:J.script?(J.script+="</"+J.tagName,J.tagName="",J.state=K.SCRIPT):(H(_e)||Ee(J,"Invalid tagname in closing tag"),J.state=K.CLOSE_TAG_SAW_WHITE);else{if(H(_e))continue;I(U,_e)?J.script?(J.script+="</"+_e,J.state=K.SCRIPT):Ee(J,"Invalid tagname in closing tag."):J.tagName=_e}continue;case K.CLOSE_TAG_SAW_WHITE:if(H(_e))continue;_e===">"?re(J):Ee(J,"Invalid characters in closing tag");continue;case K.TEXT_ENTITY:case K.ATTRIB_VALUE_ENTITY_Q:case K.ATTRIB_VALUE_ENTITY_U:var tt,dt;switch(J.state){case K.TEXT_ENTITY:tt=K.TEXT,dt="textNode";break;case K.ATTRIB_VALUE_ENTITY_Q:tt=K.ATTRIB_VALUE_QUOTED,dt="attribValue";break;case K.ATTRIB_VALUE_ENTITY_U:tt=K.ATTRIB_VALUE_UNQUOTED,dt="attribValue";break}_e===";"?(J[dt]+=ae(J),J.entity="",J.state=tt):F(J.entity.length?V:N,_e)?J.entity+=_e:(Ee(J,"Invalid character in entity name"),J[dt]+="&"+J.entity+_e,J.entity="",J.state=tt);continue;default:throw new Error(J,"Unknown state: "+J.state)}}return J.position>=J.bufferCheckPosition&&d(J),J}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */T.default||function(){var Q=String.fromCharCode,J=Math.floor,ve=function(){var Ae=16384,Qe=[],tt,dt,mt=-1,vt=arguments.length;if(!vt)return"";for(var yt="";++mt<vt;){var Ye=Number(arguments[mt]);if(!isFinite(Ye)||Ye<0||Ye>1114111||J(Ye)!==Ye)throw RangeError("Invalid code point: "+Ye);Ye<=65535?Qe.push(Ye):(Ye-=65536,tt=(Ye>>10)+55296,dt=Ye%1024+56320,Qe.push(tt,dt)),(mt+1===vt||Qe.length>Ae)&&(yt+=Q.apply(null,Qe),Qe.length=0)}return yt};e.default?Object.defineProperty(String,"fromCodePoint",{value:ve,configurable:!0,writable:!0}):String.fromCodePoint=ve}()})(typeof o=="undefined"?(void 0).sax={}:o)}).call(this,k("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(k,z,o){z.exports=T;var P=k("events").EventEmitter,g=k("inherits");g(T,P),T.Readable=k("readable-stream/readable.js"),T.Writable=k("readable-stream/writable.js"),T.Duplex=k("readable-stream/duplex.js"),T.Transform=k("readable-stream/transform.js"),T.PassThrough=k("readable-stream/passthrough.js"),T.Stream=T;function T(){P.call(this)}T.prototype.pipe=function(b,y){var x=this;function O(i){b.writable&&(b.write(i)===!1&&x.pause&&x.pause())}x.on("data",O);function m(){x.readable&&x.resume&&x.resume()}b.on("drain",m),!b._isStdio&&(!y||y.end!==!1)&&(x.on("end",f),x.on("close",a));var e=!1;function f(){if(e)return;e=!0,b.end()}function a(){if(e)return;e=!0,typeof b.destroy=="function"&&b.destroy()}function u(i){if(r(),P.listenerCount(this,"error")===0)throw i}x.on("error",u),b.on("error",u);function r(){x.removeListener("data",O),b.removeListener("drain",m),x.removeListener("end",f),x.removeListener("close",a),x.removeListener("error",u),b.removeListener("error",u),x.removeListener("end",r),x.removeListener("close",r),b.removeListener("close",r)}return x.on("end",r),x.on("close",r),b.on("close",r),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(k,z,o){(function(P){var g=k("./lib/request"),T=k("./lib/response"),b=k("xtend"),y=k("builtin-status-codes"),x=k("url"),O=o;O.request=function(m,e){typeof m=="string"?m=x.parse(m):m=b(m);var f=P.location.protocol.search(/^https?:$/)===-1?"http:":"",a=m.protocol||f,u=m.hostname||m.host,r=m.port,i=m.path||"/";u&&u.indexOf(":")!==-1&&(u="["+u+"]"),m.url=(u?a+"//"+u:"")+(r?":"+r:"")+i,m.method=(m.method||"GET").toUpperCase(),m.headers=m.headers||{};var n=new g(m);return e&&n.on("response",e),n},O.get=function(e,f){var a=O.request(e,f);return a.end(),a},O.ClientRequest=g,O.IncomingMessage=T.IncomingMessage,O.Agent=function(){},O.Agent.defaultMaxSockets=4,O.globalAgent=new O.Agent,O.STATUS_CODES=y,O.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(k,z,o){(function(P){"use strict";o.fetch=O(P.fetch)&&O(P.ReadableStream),o.writableStream=O(P.WritableStream),o.abortController=O(P.AbortController),o.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),o.blobConstructor=!0}catch(m){}var g;function T(){if(g!==void 0)return g;if(P.XMLHttpRequest){g=new P.XMLHttpRequest;try{g.open("GET",P.XDomainRequest?"/":"https://example.com")}catch(m){g=null}}else g=null;return g}function b(m){var e=T();if(!e)return!1;try{return e.responseType=m,e.responseType===m}catch(f){}return!1}var y=typeof P.ArrayBuffer!="undefined",x=y&&O(P.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||(T()?O(T().overrideMimeType):!1),o.vbArray=O(P.VBArray);function O(m){return typeof m=="function"}g=null}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],233:[function(k,z,o){(function(P,g,T){"use strict";var b=k("babel-runtime/core-js/object/keys"),y=x(b);function x(d){return d&&d.__esModule?d:{default:d}}var O=k("./capability"),m=k("inherits"),e=k("./response"),f=k("readable-stream"),a=k("to-arraybuffer"),u=e.IncomingMessage,r=e.readyStates;function i(d,s){return O.fetch&&s?"fetch":O.mozchunkedarraybuffer?"moz-chunked-arraybuffer":O.msstream?"ms-stream":O.arraybuffer&&d?"arraybuffer":O.vbArray&&d?"text:vbarray":"text"}var n=z.exports=function(d){var s=this;f.Writable.call(s),s._opts=d,s._body=[],s._headers={},d.auth&&s.setHeader("Authorization","Basic "+new T(d.auth).toString("base64")),(0,y.default)(d.headers).forEach(function(E){s.setHeader(E,d.headers[E])});var c,w=!0;if(d.mode==="disable-fetch"||"requestTimeout"in d&&!O.abortController)w=!1,c=!0;else if(d.mode==="prefer-streaming")c=!1;else if(d.mode==="allow-wrong-content-type")c=!O.overrideMimeType;else if(!d.mode||d.mode==="default"||d.mode==="prefer-fast")c=!0;else throw new Error("Invalid value for opts.mode");s._mode=i(c,w),s._fetchTimer=null,s.on("finish",function(){s._onFinish()})};m(n,f.Writable),n.prototype.setHeader=function(d,s){var c=this,w=d.toLowerCase();if(h.indexOf(w)!==-1)return;c._headers[w]={name:d,value:s}},n.prototype.getHeader=function(d){var s=this._headers[d.toLowerCase()];return s?s.value:null},n.prototype.removeHeader=function(d){var s=this;delete s._headers[d.toLowerCase()]},n.prototype._onFinish=function(){var d=this;if(d._destroyed)return;var s=d._opts,c=d._headers,w=null;s.method!=="GET"&&s.method!=="HEAD"&&(O.arraybuffer?w=a(T.concat(d._body)):O.blobConstructor?w=new g.Blob(d._body.map(function(S){return a(S)}),{type:(c["content-type"]||{}).value||""}):w=T.concat(d._body).toString());var E=[];if((0,y.default)(c).forEach(function(S){var _=c[S].name,A=c[S].value;Array.isArray(A)?A.forEach(function(U){E.push([_,U])}):E.push([_,A])}),d._mode==="fetch"){var v=null,R=null;if(O.abortController){var M=new AbortController;v=M.signal,d._fetchAbortController=M,"requestTimeout"in s&&s.requestTimeout!==0&&(d._fetchTimer=g.setTimeout(function(){d.emit("requestTimeout"),d._fetchAbortController&&d._fetchAbortController.abort()},s.requestTimeout))}g.fetch(d._opts.url,{method:d._opts.method,headers:E,body:w||void 0,mode:"cors",credentials:s.withCredentials?"include":"same-origin",signal:v}).then(function(S){d._fetchResponse=S,d._connect()},function(S){g.clearTimeout(d._fetchTimer),d._destroyed||d.emit("error",S)})}else{var C=d._xhr=new g.XMLHttpRequest;try{C.open(d._opts.method,d._opts.url,!0)}catch(S){P.nextTick(function(){d.emit("error",S)});return}"responseType"in C&&(C.responseType=d._mode.split(":")[0]),"withCredentials"in C&&(C.withCredentials=!!s.withCredentials),d._mode==="text"&&"overrideMimeType"in C&&C.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in s&&(C.timeout=s.requestTimeout,C.ontimeout=function(){d.emit("requestTimeout")}),E.forEach(function(S){C.setRequestHeader(S[0],S[1])}),d._response=null,C.onreadystatechange=function(){switch(C.readyState){case r.LOADING:case r.DONE:d._onXHRProgress();break}},d._mode==="moz-chunked-arraybuffer"&&(C.onprogress=function(){d._onXHRProgress()}),C.onerror=function(){if(d._destroyed)return;d.emit("error",new Error("XHR error"))};try{C.send(w)}catch(S){P.nextTick(function(){d.emit("error",S)});return}}};function l(d){try{var s=d.status;return s!==null&&s!==0}catch(c){return!1}}n.prototype._onXHRProgress=function(){var d=this;if(!l(d._xhr)||d._destroyed)return;d._response||d._connect(),d._response._onXHRProgress()},n.prototype._connect=function(){var d=this;if(d._destroyed)return;d._response=new u(d._xhr,d._fetchResponse,d._mode,d._fetchTimer),d._response.on("error",function(s){d.emit("error",s)}),d.emit("response",d._response)},n.prototype._write=function(d,s,c){var w=this;w._body.push(d),c()},n.prototype.abort=n.prototype.destroy=function(){var d=this;d._destroyed=!0,g.clearTimeout(d._fetchTimer),d._response&&(d._response._destroyed=!0),d._xhr?d._xhr.abort():d._fetchAbortController&&d._fetchAbortController.abort()},n.prototype.end=function(d,s,c){var w=this;typeof d=="function"&&(c=d,d=void 0),f.Writable.prototype.end.call(w,d,s,c)},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,k("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},k("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(k,z,o){(function(P,g,T){"use strict";var b=k("babel-runtime/core-js/promise"),y=x(b);function x(u){return u&&u.__esModule?u:{default:u}}var O=k("./capability"),m=k("inherits"),e=k("readable-stream"),f=o.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},a=o.IncomingMessage=function(u,r,i,n){var l=this;if(e.Readable.call(l),l._mode=i,l.headers={},l.rawHeaders=[],l.trailers={},l.rawTrailers=[],l.on("end",function(){P.nextTick(function(){l.emit("close")})}),i==="fetch"){var h=function v(){s.read().then(function(R){if(l._destroyed)return;if(R.done){g.clearTimeout(n),l.push(null);return}l.push(new T(R.value)),v()}).catch(function(R){g.clearTimeout(n),l._destroyed||l.emit("error",R)})};if(l._fetchResponse=r,l.url=r.url,l.statusCode=r.status,l.statusMessage=r.statusText,r.headers.forEach(function(v,R){l.headers[R.toLowerCase()]=v,l.rawHeaders.push(R,v)}),O.writableStream){var d=new WritableStream({write:function(R){return new y.default(function(M,C){l._destroyed?C():l.push(new T(R))?M():l._resumeFetch=M})},close:function(){g.clearTimeout(n),l._destroyed||l.push(null)},abort:function(R){l._destroyed||l.emit("error",R)}});try{r.body.pipeTo(d).catch(function(v){g.clearTimeout(n),l._destroyed||l.emit("error",v)});return}catch(v){}}var s=r.body.getReader();h()}else{l._xhr=u,l._pos=0,l.url=u.responseURL,l.statusCode=u.status,l.statusMessage=u.statusText;var c=u.getAllResponseHeaders().split(/\r?\n/);if(c.forEach(function(v){var R=v.match(/^([^:]+):\s*(.*)/);if(R){var M=R[1].toLowerCase();M==="set-cookie"?(l.headers[M]===void 0&&(l.headers[M]=[]),l.headers[M].push(R[2])):l.headers[M]!==void 0?l.headers[M]+=", "+R[2]:l.headers[M]=R[2],l.rawHeaders.push(R[1],R[2])}}),l._charset="x-user-defined",!O.overrideMimeType){var w=l.rawHeaders["mime-type"];if(w){var E=w.match(/;\s*charset=([^;])(;|$)/);E&&(l._charset=E[1].toLowerCase())}l._charset||(l._charset="utf-8")}}};m(a,e.Readable),a.prototype._read=function(){var u=this,r=u._resumeFetch;r&&(u._resumeFetch=null,r())},a.prototype._onXHRProgress=function(){var u=this,r=u._xhr,i=null;switch(u._mode){case"text:vbarray":if(r.readyState!==f.DONE)break;try{i=new g.VBArray(r.responseBody).toArray()}catch(s){}if(i!==null){u.push(new T(i));break}case"text":try{i=r.responseText}catch(s){u._mode="text:vbarray";break}if(i.length>u._pos){var n=i.substr(u._pos);if(u._charset==="x-user-defined"){for(var l=new T(n.length),h=0;h<n.length;h++)l[h]=n.charCodeAt(h)&255;u.push(l)}else u.push(n,u._charset);u._pos=i.length}break;case"arraybuffer":if(r.readyState!==f.DONE||!r.response)break;i=r.response,u.push(new T(new Uint8Array(i)));break;case"moz-chunked-arraybuffer":if(i=r.response,r.readyState!==f.LOADING||!i)break;u.push(new T(new Uint8Array(i)));break;case"ms-stream":if(i=r.response,r.readyState!==f.LOADING)break;var d=new g.MSStreamReader;d.onprogress=function(){d.result.byteLength>u._pos&&(u.push(new T(new Uint8Array(d.result.slice(u._pos)))),u._pos=d.result.byteLength)},d.onload=function(){u.push(null)},d.readAsArrayBuffer(i);break}u._xhr.readyState===f.DONE&&u._mode!=="ms-stream"&&u.push(null)}}).call(this,k("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},k("buffer").Buffer)},{"./capability":232,_process:208,"babel-runtime/core-js/promise":61,buffer:73,inherits:196,"readable-stream":223}],235:[function(k,z,o){"use strict";var P=k("safe-buffer").Buffer,g=P.isEncoding||function(d){d=""+d;switch(d&&d.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 T(d){if(!d)return"utf8";for(var s;;)switch(d){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 d;default:if(s)return;d=(""+d).toLowerCase(),s=!0}}function b(d){var s=T(d);if(typeof s!="string"&&(P.isEncoding===g||!g(d)))throw new Error("Unknown encoding: "+d);return s||d}o.StringDecoder=y;function y(d){this.encoding=b(d);var s;switch(this.encoding){case"utf16le":this.text=u,this.end=r,s=4;break;case"utf8":this.fillLast=e,s=4;break;case"base64":this.text=i,this.end=n,s=3;break;default:this.write=l,this.end=h;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=P.allocUnsafe(s)}y.prototype.write=function(d){if(d.length===0)return"";var s,c;if(this.lastNeed){if(s=this.fillLast(d),s===void 0)return"";c=this.lastNeed,this.lastNeed=0}else c=0;return c<d.length?s?s+this.text(d,c):this.text(d,c):s||""},y.prototype.end=a,y.prototype.text=f,y.prototype.fillLast=function(d){if(this.lastNeed<=d.length)return d.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);d.copy(this.lastChar,this.lastTotal-this.lastNeed,0,d.length),this.lastNeed-=d.length};function x(d){return d<=127?0:d>>5===6?2:d>>4===14?3:d>>3===30?4:d>>6===2?-1:-2}function O(d,s,c){var w=s.length-1;if(w<c)return 0;var E=x(s[w]);return E>=0?(E>0&&(d.lastNeed=E-1),E):--w<c||E===-2?0:(E=x(s[w]),E>=0?(E>0&&(d.lastNeed=E-2),E):--w<c||E===-2?0:(E=x(s[w]),E>=0?(E>0&&(E===2?E=0:d.lastNeed=E-3),E):0))}function m(d,s,c){if((s[0]&192)!==128)return d.lastNeed=0,"\uFFFD";if(d.lastNeed>1&&s.length>1){if((s[1]&192)!==128)return d.lastNeed=1,"\uFFFD";if(d.lastNeed>2&&s.length>2&&(s[2]&192)!==128)return d.lastNeed=2,"\uFFFD"}}function e(d){var s=this.lastTotal-this.lastNeed,c=m(this,d,s);if(c!==void 0)return c;if(this.lastNeed<=d.length)return d.copy(this.lastChar,s,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);d.copy(this.lastChar,s,0,d.length),this.lastNeed-=d.length}function f(d,s){var c=O(this,d,s);if(!this.lastNeed)return d.toString("utf8",s);this.lastTotal=c;var w=d.length-(c-this.lastNeed);return d.copy(this.lastChar,0,w),d.toString("utf8",s,w)}function a(d){var s=d&&d.length?this.write(d):"";return this.lastNeed?s+"\uFFFD":s}function u(d,s){if((d.length-s)%2===0){var c=d.toString("utf16le",s);if(c){var w=c.charCodeAt(c.length-1);if(w>=55296&&w<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=d[d.length-2],this.lastChar[1]=d[d.length-1],c.slice(0,-1)}return c}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=d[d.length-1],d.toString("utf16le",s,d.length-1)}function r(d){var s=d&&d.length?this.write(d):"";if(this.lastNeed){var c=this.lastTotal-this.lastNeed;return s+this.lastChar.toString("utf16le",0,c)}return s}function i(d,s){var c=(d.length-s)%3;return c===0?d.toString("base64",s):(this.lastNeed=3-c,this.lastTotal=3,c===1?this.lastChar[0]=d[d.length-1]:(this.lastChar[0]=d[d.length-2],this.lastChar[1]=d[d.length-1]),d.toString("base64",s,d.length-c))}function n(d){var s=d&&d.length?this.write(d):"";return this.lastNeed?s+this.lastChar.toString("base64",0,3-this.lastNeed):s}function l(d){return d.toString(this.encoding)}function h(d){return d&&d.length?this.write(d):""}},{"safe-buffer":228}],236:[function(k,z,o){(function(P,g){var T=k("process/browser.js").nextTick,b=Function.prototype.apply,y=Array.prototype.slice,x={},O=0;o.setTimeout=function(){return new m(b.call(setTimeout,window,arguments),clearTimeout)},o.setInterval=function(){return new m(b.call(setInterval,window,arguments),clearInterval)},o.clearTimeout=o.clearInterval=function(e){e.close()};function m(e,f){this._id=e,this._clearFn=f}m.prototype.unref=m.prototype.ref=function(){},m.prototype.close=function(){this._clearFn.call(window,this._id)},o.enroll=function(e,f){clearTimeout(e._idleTimeoutId),e._idleTimeout=f},o.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},o._unrefActive=o.active=function(e){clearTimeout(e._idleTimeoutId);var f=e._idleTimeout;f>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},f))},o.setImmediate=typeof P=="function"?P:function(e){var f=O++,a=arguments.length<2?!1:y.call(arguments,1);return x[f]=!0,T(function(){x[f]&&(a?e.apply(null,a):e.call(null),o.clearImmediate(f))}),f},o.clearImmediate=typeof g=="function"?g:function(e){delete x[e]}}).call(this,k("timers").setImmediate,k("timers").clearImmediate)},{"process/browser.js":208,timers:236}],237:[function(k,z,o){var P=k("buffer").Buffer;z.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(P.isBuffer(g)){for(var T=new Uint8Array(g.length),b=g.length,y=0;y<b;y++)T[y]=g[y];return T.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:73}],238:[function(k,z,o){"use strict";var P=k("punycode"),g=k("./util");o.parse=s,o.resolve=w,o.resolveObject=E,o.format=c,o.Url=T;function T(){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]*)?$/,O=["<",">",'"',"`"," ","\r",`
|
|
|
`," "],m=["{","}","|","\\","^","`"].concat(O),e=["'"].concat(m),f=["%","/","?",";","#"].concat(e),a=["/","?","#"],u=255,r=/^[+a-z0-9A-Z_-]{0,63}$/,i=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,n={javascript:!0,"javascript:":!0},l={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},d=k("querystring");function s(v,R,M){if(v&&g.isObject(v)&&v instanceof T)return v;var C=new T;return C.parse(v,R,M),C}T.prototype.parse=function(v,R,M){if(!g.isString(v))throw new TypeError("Parameter 'url' must be a string, not "+typeof v);var C=v.indexOf("?"),S=C!==-1&&C<v.indexOf("#")?"?":"#",_=v.split(S),A=/\\/g;_[0]=_[0].replace(A,"/"),v=_.join(S);var U=v;if(U=U.trim(),!M&&v.split("#").length===1){var L=x.exec(U);if(L)return this.path=U,this.href=U,this.pathname=L[1],L[2]?(this.search=L[2],R?this.query=d.parse(this.search.substr(1)):this.query=this.search.substr(1)):R&&(this.search="",this.query={}),this}var N=b.exec(U);if(N){N=N[0];var V=N.toLowerCase();this.protocol=V,U=U.substr(N.length)}if(M||N||U.match(/^\/\/[^@\/]+@[^@\/]+/)){var H=U.substr(0,2)==="//";H&&!(N&&l[N])&&(U=U.substr(2),this.slashes=!0)}if(!l[N]&&(H||N&&!h[N])){for(var D=-1,W=0;W<a.length;W++){var F=U.indexOf(a[W]);F!==-1&&(D===-1||F<D)&&(D=F)}var I,K;D===-1?K=U.lastIndexOf("@"):K=U.lastIndexOf("@",D),K!==-1&&(I=U.slice(0,K),U=U.slice(K+1),this.auth=decodeURIComponent(I)),D=-1;for(var W=0;W<f.length;W++){var F=U.indexOf(f[W]);F!==-1&&(D===-1||F<D)&&(D=F)}D===-1&&(D=U.length),this.host=U.slice(0,D),U=U.slice(D),this.parseHost(),this.hostname=this.hostname||"";var ee=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!ee)for(var he=this.hostname.split(/\./),W=0,de=he.length;W<de;W++){var Se=he[W];if(!Se)continue;if(!Se.match(r)){for(var Te="",ce=0,be=Se.length;ce<be;ce++)Se.charCodeAt(ce)>127?Te+="x":Te+=Se[ce];if(!Te.match(r)){var Ee=he.slice(0,W),ue=he.slice(W+1),le=Se.match(i);le&&(Ee.push(le[1]),ue.unshift(le[2])),ue.length&&(U="/"+ue.join(".")+U),this.hostname=Ee.join(".");break}}}this.hostname.length>u?this.hostname="":this.hostname=this.hostname.toLowerCase(),ee||(this.hostname=P.toASCII(this.hostname));var $=this.port?":"+this.port:"",me=this.hostname||"";this.host=me+$,this.href+=this.host,ee&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),U[0]!=="/"&&(U="/"+U))}if(!n[V])for(var W=0,de=e.length;W<de;W++){var re=e[W];if(U.indexOf(re)===-1)continue;var ae=encodeURIComponent(re);ae===re&&(ae=escape(re)),U=U.split(re).join(ae)}var Oe=U.indexOf("#");Oe!==-1&&(this.hash=U.substr(Oe),U=U.slice(0,Oe));var se=U.indexOf("?");if(se!==-1?(this.search=U.substr(se),this.query=U.substr(se+1),R&&(this.query=d.parse(this.query)),U=U.slice(0,se)):R&&(this.search="",this.query={}),U&&(this.pathname=U),h[V]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var $=this.pathname||"",te=this.search||"";this.path=$+te}return this.href=this.format(),this};function c(v){return g.isString(v)&&(v=s(v)),v instanceof T?v.format():T.prototype.format.call(v)}T.prototype.format=function(){var v=this.auth||"";v&&(v=encodeURIComponent(v),v=v.replace(/%3A/i,":"),v+="@");var R=this.protocol||"",M=this.pathname||"",C=this.hash||"",S=!1,_="";this.host?S=v+this.host:this.hostname&&(S=v+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(S+=":"+this.port)),this.query&&g.isObject(this.query)&&Object.keys(this.query).length&&(_=d.stringify(this.query));var A=this.search||_&&"?"+_||"";return R&&R.substr(-1)!==":"&&(R+=":"),this.slashes||(!R||h[R])&&S!==!1?(S="//"+(S||""),M&&M.charAt(0)!=="/"&&(M="/"+M)):S||(S=""),C&&C.charAt(0)!=="#"&&(C="#"+C),A&&A.charAt(0)!=="?"&&(A="?"+A),M=M.replace(/[?#]/g,function(U){return encodeURIComponent(U)}),A=A.replace("#","%23"),R+S+M+A+C};function w(v,R){return s(v,!1,!0).resolve(R)}T.prototype.resolve=function(v){return this.resolveObject(s(v,!1,!0)).format()};function E(v,R){return v?s(v,!1,!0).resolveObject(R):R}T.prototype.resolveObject=function(v){if(g.isString(v)){var R=new T;R.parse(v,!1,!0),v=R}for(var M=new T,C=Object.keys(this),S=0;S<C.length;S++){var _=C[S];M[_]=this[_]}if(M.hash=v.hash,v.href==="")return M.href=M.format(),M;if(v.slashes&&!v.protocol){for(var A=Object.keys(v),U=0;U<A.length;U++){var L=A[U];L!=="protocol"&&(M[L]=v[L])}return h[M.protocol]&&M.hostname&&!M.pathname&&(M.path=M.pathname="/"),M.href=M.format(),M}if(v.protocol&&v.protocol!==M.protocol){if(!h[v.protocol]){for(var N=Object.keys(v),V=0;V<N.length;V++){var H=N[V];M[H]=v[H]}return M.href=M.format(),M}if(M.protocol=v.protocol,!v.host&&!l[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(""),M.pathname=de.join("/")}else M.pathname=v.pathname;if(M.search=v.search,M.query=v.query,M.host=v.host||"",M.auth=v.auth,M.hostname=v.hostname||v.host,M.port=v.port,M.pathname||M.search){var D=M.pathname||"",W=M.search||"";M.path=D+W}return M.slashes=M.slashes||v.slashes,M.href=M.format(),M}var F=M.pathname&&M.pathname.charAt(0)==="/",I=v.host||v.pathname&&v.pathname.charAt(0)==="/",K=I||F||M.host&&v.pathname,ee=K,he=M.pathname&&M.pathname.split("/")||[],de=v.pathname&&v.pathname.split("/")||[],Se=M.protocol&&!h[M.protocol];if(Se&&(M.hostname="",M.port=null,M.host&&(he[0]===""?he[0]=M.host:he.unshift(M.host)),M.host="",v.protocol&&(v.hostname=null,v.port=null,v.host&&(de[0]===""?de[0]=v.host:de.unshift(v.host)),v.host=null),K=K&&(de[0]===""||he[0]==="")),I)M.host=v.host||v.host===""?v.host:M.host,M.hostname=v.hostname||v.hostname===""?v.hostname:M.hostname,M.search=v.search,M.query=v.query,he=de;else if(de.length)he||(he=[]),he.pop(),he=he.concat(de),M.search=v.search,M.query=v.query;else if(!g.isNullOrUndefined(v.search)){if(Se){M.hostname=M.host=he.shift();var Te=M.host&&M.host.indexOf("@")>0?M.host.split("@"):!1;Te&&(M.auth=Te.shift(),M.host=M.hostname=Te.shift())}return M.search=v.search,M.query=v.query,(!g.isNull(M.pathname)||!g.isNull(M.search))&&(M.path=(M.pathname?M.pathname:"")+(M.search?M.search:"")),M.href=M.format(),M}if(!he.length)return M.pathname=null,M.search?M.path="/"+M.search:M.path=null,M.href=M.format(),M;for(var ce=he.slice(-1)[0],be=(M.host||v.host||he.length>1)&&(ce==="."||ce==="..")||ce==="",Ee=0,ue=he.length;ue>=0;ue--)ce=he[ue],ce==="."?he.splice(ue,1):ce===".."?(he.splice(ue,1),Ee++):Ee&&(he.splice(ue,1),Ee--);if(!K&&!ee)for(;Ee--;Ee)he.unshift("..");K&&he[0]!==""&&(!he[0]||he[0].charAt(0)!=="/")&&he.unshift(""),be&&he.join("/").substr(-1)!=="/"&&he.push("");var le=he[0]===""||he[0]&&he[0].charAt(0)==="/";if(Se){M.hostname=M.host=le?"":he.length?he.shift():"";var Te=M.host&&M.host.indexOf("@")>0?M.host.split("@"):!1;Te&&(M.auth=Te.shift(),M.host=M.hostname=Te.shift())}return K=K||M.host&&he.length,K&&!le&&he.unshift(""),he.length?M.pathname=he.join("/"):(M.pathname=null,M.path=null),(!g.isNull(M.pathname)||!g.isNull(M.search))&&(M.path=(M.pathname?M.pathname:"")+(M.search?M.search:"")),M.auth=v.auth||M.auth,M.slashes=M.slashes||v.slashes,M.href=M.format(),M},T.prototype.parseHost=function(){var v=this.host,R=y.exec(v);R&&(R=R[0],R!==":"&&(this.port=R.substr(1)),v=v.substr(0,v.length-R.length)),v&&(this.hostname=v)}},{"./util":239,punycode:209,querystring:212}],239:[function(k,z,o){"use strict";z.exports={isString:function(P){return typeof P=="string"},isObject:function(P){return typeof P=="object"&&P!==null},isNull:function(P){return P===null},isNullOrUndefined:function(P){return P==null}}},{}],240:[function(k,z,o){(function(P){z.exports=g;function g(b,y){if(T("noDeprecation"))return b;var x=!1;function O(){if(!x){if(T("throwDeprecation"))throw new Error(y);T("traceDeprecation")?console.trace(y):console.warn(y),x=!0}return b.apply(this,arguments)}return O}function T(b){try{if(!P.localStorage)return!1}catch(x){return!1}var y=P.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(k,z,o){typeof Object.create=="function"?z.exports=function(g,T){g.super_=T,g.prototype=Object.create(T.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}})}:z.exports=function(g,T){g.super_=T;var b=function(){};b.prototype=T.prototype,g.prototype=new b,g.prototype.constructor=g}},{}],242:[function(k,z,o){z.exports=function(g){return g&&typeof g=="object"&&typeof g.copy=="function"&&typeof g.fill=="function"&&typeof g.readUInt8=="function"}},{}],243:[function(k,z,o){(function(P,g){var T=/%[sdj%]/g;o.format=function(D){if(!w(D)){for(var W=[],F=0;F<arguments.length;F++)W.push(x(arguments[F]));return W.join(" ")}for(var F=1,I=arguments,K=I.length,ee=String(D).replace(T,function(de){if(de==="%%")return"%";if(F>=K)return de;switch(de){case"%s":return String(I[F++]);case"%d":return Number(I[F++]);case"%j":try{return JSON.stringify(I[F++])}catch(Se){return"[Circular]"}default:return de}}),he=I[F];F<K;he=I[++F])d(he)||!M(he)?ee+=" "+he:ee+=" "+x(he);return ee},o.deprecate=function(D,W){if(v(g.process))return function(){return o.deprecate(D,W).apply(this,arguments)};if(P.noDeprecation===!0)return D;var F=!1;function I(){if(!F){if(P.throwDeprecation)throw new Error(W);P.traceDeprecation?console.trace(W):console.error(W),F=!0}return D.apply(this,arguments)}return I};var b={},y;o.debuglog=function(D){if(v(y)&&(y=P.env.NODE_DEBUG||""),D=D.toUpperCase(),!b[D])if(new RegExp("\\b"+D+"\\b","i").test(y)){var W=P.pid;b[D]=function(){var F=o.format.apply(o,arguments);console.error("%s %d: %s",D,W,F)}}else b[D]=function(){};return b[D]};function x(D,W){var F={seen:[],stylize:m};return arguments.length>=3&&(F.depth=arguments[2]),arguments.length>=4&&(F.colors=arguments[3]),h(W)?F.showHidden=W:W&&o._extend(F,W),v(F.showHidden)&&(F.showHidden=!1),v(F.depth)&&(F.depth=2),v(F.colors)&&(F.colors=!1),v(F.customInspect)&&(F.customInspect=!0),F.colors&&(F.stylize=O),f(F,D,F.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 O(D,W){var F=x.styles[W];return F?"["+x.colors[F][0]+"m"+D+"["+x.colors[F][1]+"m":D}function m(D,W){return D}function e(D){var W={};return D.forEach(function(F,I){W[F]=!0}),W}function f(D,W,F){if(D.customInspect&&W&&_(W.inspect)&&W.inspect!==o.inspect&&!(W.constructor&&W.constructor.prototype===W)){var I=W.inspect(F,D);return w(I)||(I=f(D,I,F)),I}var K=a(D,W);if(K)return K;var ee=Object.keys(W),he=e(ee);if(D.showHidden&&(ee=Object.getOwnPropertyNames(W)),S(W)&&(ee.indexOf("message")>=0||ee.indexOf("description")>=0))return u(W);if(ee.length===0){if(_(W)){var de=W.name?": "+W.name:"";return D.stylize("[Function"+de+"]","special")}if(R(W))return D.stylize(RegExp.prototype.toString.call(W),"regexp");if(C(W))return D.stylize(Date.prototype.toString.call(W),"date");if(S(W))return u(W)}var Se="",Te=!1,ce=["{","}"];if(l(W)&&(Te=!0,ce=["[","]"]),_(W)){var be=W.name?": "+W.name:"";Se=" [Function"+be+"]"}if(R(W)&&(Se=" "+RegExp.prototype.toString.call(W)),C(W)&&(Se=" "+Date.prototype.toUTCString.call(W)),S(W)&&(Se=" "+u(W)),ee.length===0&&(!Te||W.length==0))return ce[0]+Se+ce[1];if(F<0)return R(W)?D.stylize(RegExp.prototype.toString.call(W),"regexp"):D.stylize("[Object]","special");D.seen.push(W);var Ee;return Te?Ee=r(D,W,F,he,ee):Ee=ee.map(function(ue){return i(D,W,F,he,ue,Te)}),D.seen.pop(),n(Ee,Se,ce)}function a(D,W){if(v(W))return D.stylize("undefined","undefined");if(w(W)){var F="'"+JSON.stringify(W).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return D.stylize(F,"string")}if(c(W))return D.stylize(""+W,"number");if(h(W))return D.stylize(""+W,"boolean");if(d(W))return D.stylize("null","null")}function u(D){return"["+Error.prototype.toString.call(D)+"]"}function r(D,W,F,I,K){for(var ee=[],he=0,de=W.length;he<de;++he)H(W,String(he))?ee.push(i(D,W,F,I,String(he),!0)):ee.push("");return K.forEach(function(Se){Se.match(/^\d+$/)||ee.push(i(D,W,F,I,Se,!0))}),ee}function i(D,W,F,I,K,ee){var he,de,Se;if(Se=Object.getOwnPropertyDescriptor(W,K)||{value:W[K]},Se.get?Se.set?de=D.stylize("[Getter/Setter]","special"):de=D.stylize("[Getter]","special"):Se.set&&(de=D.stylize("[Setter]","special")),H(I,K)||(he="["+K+"]"),de||(D.seen.indexOf(Se.value)<0?(d(F)?de=f(D,Se.value,null):de=f(D,Se.value,F-1),de.indexOf(`
|
|
|
`)>-1&&(ee?de=de.split(`
|
|
|
`).map(function(Te){return" "+Te}).join(`
|
|
|
`).substr(2):de=`
|
|
|
`+de.split(`
|
|
|
`).map(function(Te){return" "+Te}).join(`
|
|
|
`))):de=D.stylize("[Circular]","special")),v(he)){if(ee&&K.match(/^\d+$/))return de;he=JSON.stringify(""+K),he.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(he=he.substr(1,he.length-2),he=D.stylize(he,"name")):(he=he.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),he=D.stylize(he,"string"))}return he+": "+de}function n(D,W,F){var I=0,K=D.reduce(function(ee,he){return I++,he.indexOf(`
|
|
|
`)>=0&&I++,ee+he.replace(/\u001b\[\d\d?m/g,"").length+1},0);return K>60?F[0]+(W===""?"":W+`
|
|
|
`)+" "+D.join(`,
|
|
|
`)+" "+F[1]:F[0]+W+" "+D.join(", ")+" "+F[1]}function l(D){return Array.isArray(D)}o.isArray=l;function h(D){return typeof D=="boolean"}o.isBoolean=h;function d(D){return D===null}o.isNull=d;function s(D){return D==null}o.isNullOrUndefined=s;function c(D){return typeof D=="number"}o.isNumber=c;function w(D){return typeof D=="string"}o.isString=w;function E(D){return typeof D=="symbol"}o.isSymbol=E;function v(D){return D===void 0}o.isUndefined=v;function R(D){return M(D)&&U(D)==="[object RegExp]"}o.isRegExp=R;function M(D){return typeof D=="object"&&D!==null}o.isObject=M;function C(D){return M(D)&&U(D)==="[object Date]"}o.isDate=C;function S(D){return M(D)&&(U(D)==="[object Error]"||D instanceof Error)}o.isError=S;function _(D){return typeof D=="function"}o.isFunction=_;function A(D){return D===null||typeof D=="boolean"||typeof D=="number"||typeof D=="string"||typeof D=="symbol"||typeof D=="undefined"}o.isPrimitive=A,o.isBuffer=k("./support/isBuffer");function U(D){return Object.prototype.toString.call(D)}function L(D){return D<10?"0"+D.toString(10):D.toString(10)}var N=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function V(){var D=new Date,W=[L(D.getHours()),L(D.getMinutes()),L(D.getSeconds())].join(":");return[D.getDate(),N[D.getMonth()],W].join(" ")}o.log=function(){console.log("%s - %s",V(),o.format.apply(o,arguments))},o.inherits=k("inherits"),o._extend=function(D,W){if(!W||!M(W))return D;for(var F=Object.keys(W),I=F.length;I--;)D[F[I]]=W[F[I]];return D};function H(D,W){return Object.prototype.hasOwnProperty.call(D,W)}}).call(this,k("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":242,_process:208,inherits:241}],244:[function(k,z,o){"use strict";(function(){"use strict";o.stripBOM=function(P){return P[0]==="\uFEFF"?P.substring(1):P}}).call(void 0)},{}],245:[function(k,z,o){"use strict";var P=k("babel-runtime/helpers/typeof"),g=y(P),T=k("babel-runtime/core-js/object/keys"),b=y(T);function y(x){return x&&x.__esModule?x:{default:x}}(function(){"use strict";var x,O,m,e,f,a={}.hasOwnProperty;x=k("xmlbuilder"),O=k("./defaults").defaults,e=function(r){return typeof r=="string"&&(r.indexOf("&")>=0||r.indexOf(">")>=0||r.indexOf("<")>=0)},f=function(r){return"<![CDATA["+m(r)+"]]>"},m=function(r){return r.replace("]]>","]]]]><![CDATA[>")},o.Builder=function(){function u(r){var i,n,l;this.options={},n=O["0.2"];for(i in n){if(!a.call(n,i))continue;l=n[i],this.options[i]=l}for(i in r){if(!a.call(r,i))continue;l=r[i],this.options[i]=l}}return u.prototype.buildObject=function(r){var i,n,l,h,d;return i=this.options.attrkey,n=this.options.charkey,(0,b.default)(r).length===1&&this.options.rootName===O["0.2"].rootName?(d=(0,b.default)(r)[0],r=r[d]):d=this.options.rootName,l=function(s){return function(c,w){var E,v,R,M,C,S;if((typeof w=="undefined"?"undefined":(0,g.default)(w))!=="object")s.options.cdata&&e(w)?c.raw(f(w)):c.txt(w);else if(Array.isArray(w))for(M in w){if(!a.call(w,M))continue;v=w[M];for(C in v)R=v[C],c=l(c.ele(C),R).up()}else for(C in w){if(!a.call(w,C))continue;if(v=w[C],C===i){if((typeof v=="undefined"?"undefined":(0,g.default)(v))==="object")for(E in v)S=v[E],c=c.att(E,S)}else if(C===n)s.options.cdata&&e(v)?c=c.raw(f(v)):c=c.txt(v);else if(Array.isArray(v))for(M in v){if(!a.call(v,M))continue;R=v[M],typeof R=="string"?s.options.cdata&&e(R)?c=c.ele(C).raw(f(R)).up():c=c.ele(C,R).up():c=l(c.ele(C),R).up()}else(typeof v=="undefined"?"undefined":(0,g.default)(v))==="object"?c=l(c.ele(C),v).up():typeof v=="string"&&s.options.cdata&&e(v)?c=c.ele(C).raw(f(v)).up():(v==null&&(v=""),c=c.ele(C,v.toString()).up())}return c}}(this),h=x.create(d,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),l(h,r).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(k,z,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(k,z,o){"use strict";var P=k("babel-runtime/core-js/promise"),g=e(P),T=k("babel-runtime/core-js/object/get-own-property-names"),b=e(T),y=k("babel-runtime/core-js/object/keys"),x=e(y),O=k("babel-runtime/helpers/typeof"),m=e(O);function e(f){return f&&f.__esModule?f:{default:f}}(function(){"use strict";var f,a,u,r,i,n,l,h,d=function(E,v){return function(){return E.apply(v,arguments)}},s=function(E,v){for(var R in v)c.call(v,R)&&(E[R]=v[R]);function M(){this.constructor=E}return M.prototype=v.prototype,E.prototype=new M,E.__super__=v.prototype,E},c={}.hasOwnProperty;l=k("sax"),u=k("events"),f=k("./bom"),n=k("./processors"),h=k("timers").setImmediate,a=k("./defaults").defaults,r=function(E){return(typeof E=="undefined"?"undefined":(0,m.default)(E))==="object"&&E!=null&&(0,x.default)(E).length===0},i=function(E,v,R){var M,C,S;for(M=0,C=E.length;M<C;M++)S=E[M],v=S(v,R);return v},o.Parser=function(w){s(E,w);function E(v){this.parseStringPromise=d(this.parseStringPromise,this),this.parseString=d(this.parseString,this),this.reset=d(this.reset,this),this.assignOrPush=d(this.assignOrPush,this),this.processAsync=d(this.processAsync,this);var R,M,C;if(!(this instanceof o.Parser))return new o.Parser(v);this.options={},M=a["0.2"];for(R in M){if(!c.call(M,R))continue;C=M[R],this.options[R]=C}for(R in v){if(!c.call(v,R))continue;C=v[R],this.options[R]=C}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 E.prototype.processAsync=function(){var v,R;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(M){if(R=M,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(R)}},E.prototype.assignOrPush=function(v,R,M){return R in v?(v[R]instanceof Array||(v[R]=[v[R]]),v[R].push(M)):this.options.explicitArray?v[R]=[M]:v[R]=M},E.prototype.reset=function(){var v,R,M,C;return this.removeAllListeners(),this.saxParser=l.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(S){return function(_){if(S.saxParser.resume(),!S.saxParser.errThrown)return S.saxParser.errThrown=!0,S.emit("error",_)}}(this),this.saxParser.onend=function(S){return function(){if(!S.saxParser.ended)return S.saxParser.ended=!0,S.emit("end",S.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,C=[],v=this.options.attrkey,R=this.options.charkey,this.saxParser.onopentag=function(S){return function(_){var A,U,L,N,V;if(L={},L[R]="",!S.options.ignoreAttrs){V=_.attributes;for(A in V){if(!c.call(V,A))continue;!(v in L)&&!S.options.mergeAttrs&&(L[v]={}),U=S.options.attrValueProcessors?i(S.options.attrValueProcessors,_.attributes[A],A):_.attributes[A],N=S.options.attrNameProcessors?i(S.options.attrNameProcessors,A):A,S.options.mergeAttrs?S.assignOrPush(L,N,U):L[v][N]=U}}return L["#name"]=S.options.tagNameProcessors?i(S.options.tagNameProcessors,_.name):_.name,S.options.xmlns&&(L[S.options.xmlnskey]={uri:_.uri,local:_.local}),C.push(L)}}(this),this.saxParser.onclosetag=function(S){return function(){var _,A,U,L,N,V,H,D,W,F;if(V=C.pop(),N=V["#name"],(!S.options.explicitChildren||!S.options.preserveChildrenOrder)&&delete V["#name"],V.cdata===!0&&(_=V.cdata,delete V.cdata),W=C[C.length-1],V[R].match(/^\s*$/)&&!_?(A=V[R],delete V[R]):(S.options.trim&&(V[R]=V[R].trim()),S.options.normalize&&(V[R]=V[R].replace(/\s{2,}/g," ").trim()),V[R]=S.options.valueProcessors?i(S.options.valueProcessors,V[R],N):V[R],(0,x.default)(V).length===1&&R in V&&!S.EXPLICIT_CHARKEY&&(V=V[R])),r(V)&&(V=S.options.emptyTag!==""?S.options.emptyTag:A),S.options.validator!=null&&(F="/"+function(){var I,K,ee;for(ee=[],I=0,K=C.length;I<K;I++)L=C[I],ee.push(L["#name"]);return ee}().concat(N).join("/"),function(){var I;try{return V=S.options.validator(F,W&&W[N],V)}catch(K){return I=K,S.emit("error",I)}}()),S.options.explicitChildren&&!S.options.mergeAttrs&&(typeof V=="undefined"?"undefined":(0,m.default)(V))==="object"){if(!S.options.preserveChildrenOrder)L={},S.options.attrkey in V&&(L[S.options.attrkey]=V[S.options.attrkey],delete V[S.options.attrkey]),!S.options.charsAsChildren&&S.options.charkey in V&&(L[S.options.charkey]=V[S.options.charkey],delete V[S.options.charkey]),(0,b.default)(V).length>0&&(L[S.options.childkey]=V),V=L;else if(W){W[S.options.childkey]=W[S.options.childkey]||[],H={};for(U in V){if(!c.call(V,U))continue;H[U]=V[U]}W[S.options.childkey].push(H),delete V["#name"],(0,x.default)(V).length===1&&R in V&&!S.EXPLICIT_CHARKEY&&(V=V[R])}}return C.length>0?S.assignOrPush(W,N,V):(S.options.explicitRoot&&(D=V,V={},V[N]=D),S.resultObject=V,S.saxParser.ended=!0,S.emit("end",S.resultObject))}}(this),M=function(S){return function(_){var A,U;if(U=C[C.length-1],U)return U[R]+=_,S.options.explicitChildren&&S.options.preserveChildrenOrder&&S.options.charsAsChildren&&(S.options.includeWhiteChars||_.replace(/\\n/g,"").trim()!=="")&&(U[S.options.childkey]=U[S.options.childkey]||[],A={"#name":"__text__"},A[R]=_,S.options.normalize&&(A[R]=A[R].replace(/\s{2,}/g," ").trim()),U[S.options.childkey].push(A)),U}}(this),this.saxParser.ontext=M,this.saxParser.oncdata=function(S){return function(_){var A;if(A=M(_),A)return A.cdata=!0}}(this)},E.prototype.parseString=function(v,R){var M;R!=null&&typeof R=="function"&&(this.on("end",function(C){return this.reset(),R(null,C)}),this.on("error",function(C){return this.reset(),R(C)}));try{return v=v.toString(),v.trim()===""?(this.emit("end",null),!0):(v=f.stripBOM(v),this.options.async?(this.remaining=v,h(this.processAsync),this.saxParser):this.saxParser.write(v).close())}catch(C){if(M=C,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw M}else return this.emit("error",M),this.saxParser.errThrown=!0}},E.prototype.parseStringPromise=function(v){return new g.default(function(R){return function(M,C){return R.parseString(v,function(S,_){return S?C(S):M(_)})}}(this))},E}(u),o.parseString=function(w,E,v){var R,M,C;return v!=null?(typeof v=="function"&&(R=v),(typeof E=="undefined"?"undefined":(0,m.default)(E))==="object"&&(M=E)):(typeof E=="function"&&(R=E),M={}),C=new o.Parser(M),C.parseString(w,R)},o.parseStringPromise=function(w,E){var v,R;return(typeof E=="undefined"?"undefined":(0,m.default)(E))==="object"&&(v=E),R=new o.Parser(v),R.parseStringPromise(w)}}).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(k,z,o){"use strict";(function(){"use strict";var P;P=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(P,"")},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(k,z,o){"use strict";(function(){"use strict";var P,g,T,b,y=function(m,e){for(var f in e)x.call(e,f)&&(m[f]=e[f]);function a(){this.constructor=m}return a.prototype=e.prototype,m.prototype=new a,m.__super__=e.prototype,m},x={}.hasOwnProperty;g=k("./defaults"),P=k("./builder"),T=k("./parser"),b=k("./processors"),o.defaults=g.defaults,o.processors=b,o.ValidationError=function(O){y(m,O);function m(e){this.message=e}return m}(Error),o.Builder=P.Builder,o.Parser=T.Parser,o.parseString=T.parseString,o.parseStringPromise=T.parseStringPromise}).call(void 0)},{"./builder":245,"./defaults":246,"./parser":247,"./processors":248}],250:[function(k,z,o){"use strict";(function(){z.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(void 0)},{}],251:[function(k,z,o){"use strict";(function(){z.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(k,z,o){"use strict";var P=k("babel-runtime/core-js/object/get-prototype-of"),g=O(P),T=k("babel-runtime/helpers/typeof"),b=O(T),y=k("babel-runtime/core-js/object/assign"),x=O(y);function O(m){return m&&m.__esModule?m:{default:m}}(function(){var m,e,f,a,u,r,i,n=[].slice,l={}.hasOwnProperty;m=function(){var d,s,c,w,E,v;if(v=arguments[0],E=2<=arguments.length?n.call(arguments,1):[],u(x.default))x.default.apply(null,arguments);else for(d=0,c=E.length;d<c;d++)if(w=E[d],w!=null)for(s in w){if(!l.call(w,s))continue;v[s]=w[s]}return v},u=function(d){return!!d&&Object.prototype.toString.call(d)==="[object Function]"},r=function(d){var s;return!!d&&((s=typeof d=="undefined"?"undefined":(0,b.default)(d))==="function"||s==="object")},f=function(d){return u(Array.isArray)?Array.isArray(d):Object.prototype.toString.call(d)==="[object Array]"},a=function(d){var s;if(f(d))return!d.length;for(s in d){if(!l.call(d,s))continue;return!1}return!0},i=function(d){var s,c;return r(d)&&(c=(0,g.default)(d))&&(s=c.constructor)&&typeof s=="function"&&s instanceof s&&Function.prototype.toString.call(s)===Function.prototype.toString.call(Object)},e=function(d){return u(d.valueOf)?d.valueOf():d},z.exports.assign=m,z.exports.isFunction=u,z.exports.isObject=r,z.exports.isArray=f,z.exports.isEmpty=a,z.exports.isPlainObject=i,z.exports.getValue=e}).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(k,z,o){"use strict";(function(){z.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(void 0)},{}],254:[function(k,z,o){"use strict";var P=k("babel-runtime/core-js/object/create"),g=T(P);function T(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,x;b=k("./NodeType"),x=k("./XMLNode"),z.exports=y=function(){function O(m,e,f){if(this.parent=m,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),e==null)throw new Error("Missing attribute name. "+this.debugInfo(e));this.name=this.stringify.name(e),this.value=this.stringify.attValue(f),this.type=b.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(O.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(O.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(O.prototype,"textContent",{get:function(){return this.value},set:function(e){return this.value=e||""}}),Object.defineProperty(O.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(O.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(O.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(O.prototype,"specified",{get:function(){return!0}}),O.prototype.clone=function(){return(0,g.default)(this)},O.prototype.toString=function(m){return this.options.writer.attribute(this,this.options.writer.filterOptions(m))},O.prototype.debugInfo=function(m){return m=m||this.name,m==null?"parent: <"+this.parent.name+">":"attribute: {"+m+"}, parent: <"+this.parent.name+">"},O.prototype.isEqualNode=function(m){return m.namespaceURI!==this.namespaceURI||(m.prefix!==this.prefix||m.localName!==this.localName)?!1:!(m.value!==this.value)},O}()}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],255:[function(k,z,o){"use strict";var P=k("babel-runtime/core-js/object/create"),g=T(P);function T(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,x,O=function(f,a){for(var u in a)m.call(a,u)&&(f[u]=a[u]);function r(){this.constructor=f}return r.prototype=a.prototype,f.prototype=new r,f.__super__=a.prototype,f},m={}.hasOwnProperty;b=k("./NodeType"),x=k("./XMLCharacterData"),z.exports=y=function(e){O(f,e);function f(a,u){if(f.__super__.constructor.call(this,a),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 f.prototype.clone=function(){return(0,g.default)(this)},f.prototype.toString=function(a){return this.options.writer.cdata(this,this.options.writer.filterOptions(a))},f}(x)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],256:[function(k,z,o){"use strict";var P=k("babel-runtime/core-js/object/create"),g=T(P);function T(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,x=function(e,f){for(var a in f)O.call(f,a)&&(e[a]=f[a]);function u(){this.constructor=e}return u.prototype=f.prototype,e.prototype=new u,e.__super__=f.prototype,e},O={}.hasOwnProperty;y=k("./XMLNode"),z.exports=b=function(m){x(e,m);function e(f){e.__super__.constructor.call(this,f),this.value=""}return Object.defineProperty(e.prototype,"data",{get:function(){return this.value},set:function(a){return this.value=a||""}}),Object.defineProperty(e.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(e.prototype,"textContent",{get:function(){return this.value},set:function(a){return this.value=a||""}}),e.prototype.clone=function(){return(0,g.default)(this)},e.prototype.substringData=function(f,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.appendData=function(f){throw new Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.insertData=function(f,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.deleteData=function(f,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.replaceData=function(f,a,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.isEqualNode=function(f){return e.__super__.isEqualNode.apply(this,arguments).isEqualNode(f)?!(f.data!==this.data):!1},e}(y)}).call(void 0)},{"./XMLNode":273,"babel-runtime/core-js/object/create":55}],257:[function(k,z,o){"use strict";var P=k("babel-runtime/core-js/object/create"),g=T(P);function T(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,x,O=function(f,a){for(var u in a)m.call(a,u)&&(f[u]=a[u]);function r(){this.constructor=f}return r.prototype=a.prototype,f.prototype=new r,f.__super__=a.prototype,f},m={}.hasOwnProperty;b=k("./NodeType"),y=k("./XMLCharacterData"),z.exports=x=function(e){O(f,e);function f(a,u){if(f.__super__.constructor.call(this,a),u==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=b.Comment,this.value=this.stringify.comment(u)}return f.prototype.clone=function(){return(0,g.default)(this)},f.prototype.toString=function(a){return this.options.writer.comment(this,this.options.writer.filterOptions(a))},f}(y)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],258:[function(k,z,o){"use strict";var P=k("babel-runtime/core-js/object/keys"),g=y(P),T=k("babel-runtime/core-js/object/create"),b=y(T);function y(x){return x&&x.__esModule?x:{default:x}}(function(){var x,O,m;O=k("./XMLDOMErrorHandler"),m=k("./XMLDOMStringList"),z.exports=x=function(){function e(){var f;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new O,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=f=(0,b.default)(this.defaultParams)}return Object.defineProperty(e.prototype,"parameterNames",{get:function(){return new m((0,g.default)(this.defaultParams))}}),e.prototype.getParameter=function(f){return this.params.hasOwnProperty(f)?this.params[f]:null},e.prototype.canSetParameter=function(f,a){return!0},e.prototype.setParameter=function(f,a){return a!=null?this.params[f]=a:delete this.params[f]},e}()}).call(void 0)},{"./XMLDOMErrorHandler":259,"./XMLDOMStringList":261,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60}],259:[function(k,z,o){"use strict";(function(){var P;z.exports=P=function(){function g(){}return g.prototype.handleError=function(T){throw new Error(T)},g}()}).call(void 0)},{}],260:[function(k,z,o){"use strict";(function(){var P;z.exports=P=function(){function g(){}return g.prototype.hasFeature=function(T,b){return!0},g.prototype.createDocumentType=function(T,b,y){throw new Error("This DOM method is not implemented.")},g.prototype.createDocument=function(T,b,y){throw new Error("This DOM method is not implemented.")},g.prototype.createHTMLDocument=function(T){throw new Error("This DOM method is not implemented.")},g.prototype.getFeature=function(T,b){throw new Error("This DOM method is not implemented.")},g}()}).call(void 0)},{}],261:[function(k,z,o){"use strict";(function(){var P;z.exports=P=function(){function g(T){this.arr=T||[]}return Object.defineProperty(g.prototype,"length",{get:function(){return this.arr.length}}),g.prototype.item=function(T){return this.arr[T]||null},g.prototype.contains=function(T){return this.arr.indexOf(T)!==-1},g}()}).call(void 0)},{}],262:[function(k,z,o){"use strict";(function(){var P,g,T,b=function(O,m){for(var e in m)y.call(m,e)&&(O[e]=m[e]);function f(){this.constructor=O}return f.prototype=m.prototype,O.prototype=new f,O.__super__=m.prototype,O},y={}.hasOwnProperty;T=k("./XMLNode"),P=k("./NodeType"),z.exports=g=function(x){b(O,x);function O(m,e,f,a,u,r){if(O.__super__.constructor.call(this,m),e==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(f==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(e));if(!a)throw new Error("Missing DTD attribute type. "+this.debugInfo(e));if(!u)throw new Error("Missing DTD attribute default. "+this.debugInfo(e));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(e));if(r&&!u.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(e));this.elementName=this.stringify.name(e),this.type=P.AttributeDeclaration,this.attributeName=this.stringify.name(f),this.attributeType=this.stringify.dtdAttType(a),r&&(this.defaultValue=this.stringify.dtdAttDefault(r)),this.defaultValueType=u}return O.prototype.toString=function(m){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(m))},O}(T)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],263:[function(k,z,o){"use strict";(function(){var P,g,T,b=function(O,m){for(var e in m)y.call(m,e)&&(O[e]=m[e]);function f(){this.constructor=O}return f.prototype=m.prototype,O.prototype=new f,O.__super__=m.prototype,O},y={}.hasOwnProperty;T=k("./XMLNode"),P=k("./NodeType"),z.exports=g=function(x){b(O,x);function O(m,e,f){if(O.__super__.constructor.call(this,m),e==null)throw new Error("Missing DTD element name. "+this.debugInfo());f||(f="(#PCDATA)"),Array.isArray(f)&&(f="("+f.join(",")+")"),this.name=this.stringify.name(e),this.type=P.ElementDeclaration,this.value=this.stringify.dtdElementValue(f)}return O.prototype.toString=function(m){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(m))},O}(T)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],264:[function(k,z,o){"use strict";(function(){var P,g,T,b,y=function(m,e){for(var f in e)x.call(e,f)&&(m[f]=e[f]);function a(){this.constructor=m}return a.prototype=e.prototype,m.prototype=new a,m.__super__=e.prototype,m},x={}.hasOwnProperty;b=k("./Utility").isObject,T=k("./XMLNode"),P=k("./NodeType"),z.exports=g=function(O){y(m,O);function m(e,f,a,u){if(m.__super__.constructor.call(this,e),a==null)throw new Error("Missing DTD entity name. "+this.debugInfo(a));if(u==null)throw new Error("Missing DTD entity value. "+this.debugInfo(a));if(this.pe=!!f,this.name=this.stringify.name(a),this.type=P.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(a));if(u.pubID&&!u.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(a));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(a))}}return Object.defineProperty(m.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(m.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(m.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(m.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(m.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(m.prototype,"xmlVersion",{get:function(){return null}}),m.prototype.toString=function(e){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(e))},m}(T)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],265:[function(k,z,o){"use strict";(function(){var P,g,T,b=function(O,m){for(var e in m)y.call(m,e)&&(O[e]=m[e]);function f(){this.constructor=O}return f.prototype=m.prototype,O.prototype=new f,O.__super__=m.prototype,O},y={}.hasOwnProperty;T=k("./XMLNode"),P=k("./NodeType"),z.exports=g=function(x){b(O,x);function O(m,e,f){if(O.__super__.constructor.call(this,m),e==null)throw new Error("Missing DTD notation name. "+this.debugInfo(e));if(!f.pubID&&!f.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(e));this.name=this.stringify.name(e),this.type=P.NotationDeclaration,f.pubID!=null&&(this.pubID=this.stringify.dtdPubID(f.pubID)),f.sysID!=null&&(this.sysID=this.stringify.dtdSysID(f.sysID))}return Object.defineProperty(O.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(O.prototype,"systemId",{get:function(){return this.sysID}}),O.prototype.toString=function(m){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(m))},O}(T)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],266:[function(k,z,o){"use strict";(function(){var P,g,T,b,y=function(m,e){for(var f in e)x.call(e,f)&&(m[f]=e[f]);function a(){this.constructor=m}return a.prototype=e.prototype,m.prototype=new a,m.__super__=e.prototype,m},x={}.hasOwnProperty;b=k("./Utility").isObject,T=k("./XMLNode"),P=k("./NodeType"),z.exports=g=function(O){y(m,O);function m(e,f,a,u){var r;m.__super__.constructor.call(this,e),b(f)&&(r=f,f=r.version,a=r.encoding,u=r.standalone),f||(f="1.0"),this.type=P.Declaration,this.version=this.stringify.xmlVersion(f),a!=null&&(this.encoding=this.stringify.xmlEncoding(a)),u!=null&&(this.standalone=this.stringify.xmlStandalone(u))}return m.prototype.toString=function(e){return this.options.writer.declaration(this,this.options.writer.filterOptions(e))},m}(T)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],267:[function(k,z,o){"use strict";(function(){var P,g,T,b,y,x,O,m,e,f=function(r,i){for(var n in i)a.call(i,n)&&(r[n]=i[n]);function l(){this.constructor=r}return l.prototype=i.prototype,r.prototype=new l,r.__super__=i.prototype,r},a={}.hasOwnProperty;e=k("./Utility").isObject,m=k("./XMLNode"),P=k("./NodeType"),g=k("./XMLDTDAttList"),b=k("./XMLDTDEntity"),T=k("./XMLDTDElement"),y=k("./XMLDTDNotation"),O=k("./XMLNamedNodeMap"),z.exports=x=function(u){f(r,u);function r(i,n,l){var h,d,s,c,w,E;if(r.__super__.constructor.call(this,i),this.type=P.DocType,i.children){for(c=i.children,d=0,s=c.length;d<s;d++)if(h=c[d],h.type===P.Element){this.name=h.name;break}}this.documentObject=i,e(n)&&(w=n,n=w.pubID,l=w.sysID),l==null&&(E=[n,l],l=E[0],n=E[1]),n!=null&&(this.pubID=this.stringify.dtdPubID(n)),l!=null&&(this.sysID=this.stringify.dtdSysID(l))}return Object.defineProperty(r.prototype,"entities",{get:function(){var n,l,h,d,s;for(d={},s=this.children,l=0,h=s.length;l<h;l++)n=s[l],n.type===P.EntityDeclaration&&!n.pe&&(d[n.name]=n);return new O(d)}}),Object.defineProperty(r.prototype,"notations",{get:function(){var n,l,h,d,s;for(d={},s=this.children,l=0,h=s.length;l<h;l++)n=s[l],n.type===P.NotationDeclaration&&(d[n.name]=n);return new O(d)}}),Object.defineProperty(r.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(r.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(r.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),r.prototype.element=function(i,n){var l;return l=new T(this,i,n),this.children.push(l),this},r.prototype.attList=function(i,n,l,h,d){var s;return s=new g(this,i,n,l,h,d),this.children.push(s),this},r.prototype.entity=function(i,n){var l;return l=new b(this,!1,i,n),this.children.push(l),this},r.prototype.pEntity=function(i,n){var l;return l=new b(this,!0,i,n),this.children.push(l),this},r.prototype.notation=function(i,n){var l;return l=new y(this,i,n),this.children.push(l),this},r.prototype.toString=function(i){return this.options.writer.docType(this,this.options.writer.filterOptions(i))},r.prototype.ele=function(i,n){return this.element(i,n)},r.prototype.att=function(i,n,l,h,d){return this.attList(i,n,l,h,d)},r.prototype.ent=function(i,n){return this.entity(i,n)},r.prototype.pent=function(i,n){return this.pEntity(i,n)},r.prototype.not=function(i,n){return this.notation(i,n)},r.prototype.up=function(){return this.root()||this.documentObject},r.prototype.isEqualNode=function(i){return r.__super__.isEqualNode.apply(this,arguments).isEqualNode(i)?i.name!==this.name||i.publicId!==this.publicId?!1:!(i.systemId!==this.systemId):!1},r}(m)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLNamedNodeMap":272,"./XMLNode":273}],268:[function(k,z,o){"use strict";(function(){var P,g,T,b,y,x,O,m,e=function(u,r){for(var i in r)f.call(r,i)&&(u[i]=r[i]);function n(){this.constructor=u}return n.prototype=r.prototype,u.prototype=new n,u.__super__=r.prototype,u},f={}.hasOwnProperty;m=k("./Utility").isPlainObject,T=k("./XMLDOMImplementation"),g=k("./XMLDOMConfiguration"),y=k("./XMLNode"),P=k("./NodeType"),O=k("./XMLStringifier"),x=k("./XMLStringWriter"),z.exports=b=function(a){e(u,a);function u(r){u.__super__.constructor.call(this,null),this.name="#document",this.type=P.Document,this.documentURI=null,this.domConfig=new g,r||(r={}),r.writer||(r.writer=new x),this.options=r,this.stringify=new O(r)}return Object.defineProperty(u.prototype,"implementation",{value:new T}),Object.defineProperty(u.prototype,"doctype",{get:function(){var i,n,l,h;for(h=this.children,n=0,l=h.length;n<l;n++)if(i=h[n],i.type===P.DocType)return i;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===P.Declaration?this.children[0].encoding:null}}),Object.defineProperty(u.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===P.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(u.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===P.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(r){var i;return i={},r?m(r)&&(i=r,r=this.options.writer):r=this.options.writer,r.document(this,r.filterOptions(i))},u.prototype.toString=function(r){return this.options.writer.document(this,this.options.writer.filterOptions(r))},u.prototype.createElement=function(r){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(r){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.createComment=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.createCDATASection=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.createProcessingInstruction=function(r,i){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.createAttribute=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.createEntityReference=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.getElementsByTagName=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.importNode=function(r,i){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.createElementNS=function(r,i){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.createAttributeNS=function(r,i){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.getElementsByTagNameNS=function(r,i){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.getElementById=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.adoptNode=function(r){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(r,i,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.getElementsByClassName=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.createEvent=function(r){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(r,i,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.createTreeWalker=function(r,i,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(k,z,o){"use strict";(function(){var P,g,T,b,y,x,O,m,e,f,a,u,r,i,n,l,h,d,s,c,w,E,v,R,M={}.hasOwnProperty;R=k("./Utility"),E=R.isObject,w=R.isFunction,v=R.isPlainObject,c=R.getValue,P=k("./NodeType"),u=k("./XMLDocument"),i=k("./XMLElement"),b=k("./XMLCData"),y=k("./XMLComment"),l=k("./XMLRaw"),s=k("./XMLText"),n=k("./XMLProcessingInstruction"),f=k("./XMLDeclaration"),a=k("./XMLDocType"),x=k("./XMLDTDAttList"),m=k("./XMLDTDEntity"),O=k("./XMLDTDElement"),e=k("./XMLDTDNotation"),T=k("./XMLAttribute"),d=k("./XMLStringifier"),h=k("./XMLStringWriter"),g=k("./WriterState"),z.exports=r=function(){function C(S,_,A){var U;this.name="?xml",this.type=P.Document,S||(S={}),U={},S.writer?v(S.writer)&&(U=S.writer,S.writer=new h):S.writer=new h,this.options=S,this.writer=S.writer,this.writerOptions=this.writer.filterOptions(U),this.stringify=new d(S),this.onDataCallback=_||function(){},this.onEndCallback=A||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return C.prototype.createChildNode=function(S){var _,A,U,L,N,V,H,D;switch(S.type){case P.CData:this.cdata(S.value);break;case P.Comment:this.comment(S.value);break;case P.Element:U={},H=S.attribs;for(A in H){if(!M.call(H,A))continue;_=H[A],U[A]=_.value}this.node(S.name,U);break;case P.Dummy:this.dummy();break;case P.Raw:this.raw(S.value);break;case P.Text:this.text(S.value);break;case P.ProcessingInstruction:this.instruction(S.target,S.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+S.constructor.name)}for(D=S.children,N=0,V=D.length;N<V;N++)L=D[N],this.createChildNode(L),L.type===P.Element&&this.up();return this},C.prototype.dummy=function(){return this},C.prototype.node=function(S,_,A){var U;if(S==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(S));return this.openCurrent(),S=c(S),_==null&&(_={}),_=c(_),E(_)||(U=[_,A],A=U[0],_=U[1]),this.currentNode=new i(this,S,_),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,A!=null&&this.text(A),this},C.prototype.element=function(S,_,A){var U,L,N,V,H,D;if(this.currentNode&&this.currentNode.type===P.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(S)||E(S)||w(S))for(V=this.options.noValidation,this.options.noValidation=!0,D=new u(this.options).element("TEMP_ROOT"),D.element(S),this.options.noValidation=V,H=D.children,L=0,N=H.length;L<N;L++)U=H[L],this.createChildNode(U),U.type===P.Element&&this.up();else this.node(S,_,A);return this},C.prototype.attribute=function(S,_){var A,U;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(S));if(S!=null&&(S=c(S)),E(S))for(A in S){if(!M.call(S,A))continue;U=S[A],this.attribute(A,U)}else w(_)&&(_=_.apply()),this.options.keepNullAttributes&&_==null?this.currentNode.attribs[S]=new T(this,S,""):_!=null&&(this.currentNode.attribs[S]=new T(this,S,_));return this},C.prototype.text=function(S){var _;return this.openCurrent(),_=new s(this,S),this.onData(this.writer.text(_,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},C.prototype.cdata=function(S){var _;return this.openCurrent(),_=new b(this,S),this.onData(this.writer.cdata(_,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},C.prototype.comment=function(S){var _;return this.openCurrent(),_=new y(this,S),this.onData(this.writer.comment(_,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},C.prototype.raw=function(S){var _;return this.openCurrent(),_=new l(this,S),this.onData(this.writer.raw(_,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},C.prototype.instruction=function(S,_){var A,U,L,N,V;if(this.openCurrent(),S!=null&&(S=c(S)),_!=null&&(_=c(_)),Array.isArray(S))for(A=0,N=S.length;A<N;A++)U=S[A],this.instruction(U);else if(E(S))for(U in S){if(!M.call(S,U))continue;L=S[U],this.instruction(U,L)}else w(_)&&(_=_.apply()),V=new n(this,S,_),this.onData(this.writer.processingInstruction(V,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},C.prototype.declaration=function(S,_,A){var U;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return U=new f(this,S,_,A),this.onData(this.writer.declaration(U,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},C.prototype.doctype=function(S,_,A){if(this.openCurrent(),S==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 a(this,_,A),this.currentNode.rootNodeName=S,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},C.prototype.dtdElement=function(S,_){var A;return this.openCurrent(),A=new O(this,S,_),this.onData(this.writer.dtdElement(A,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},C.prototype.attList=function(S,_,A,U,L){var N;return this.openCurrent(),N=new x(this,S,_,A,U,L),this.onData(this.writer.dtdAttList(N,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},C.prototype.entity=function(S,_){var A;return this.openCurrent(),A=new m(this,!1,S,_),this.onData(this.writer.dtdEntity(A,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},C.prototype.pEntity=function(S,_){var A;return this.openCurrent(),A=new m(this,!0,S,_),this.onData(this.writer.dtdEntity(A,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},C.prototype.notation=function(S,_){var A;return this.openCurrent(),A=new e(this,S,_),this.onData(this.writer.dtdNotation(A,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},C.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},C.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},C.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},C.prototype.openNode=function(S){var _,A,U,L;if(!S.isOpen){if(!this.root&&this.currentLevel===0&&S.type===P.Element&&(this.root=S),A="",S.type===P.Element){this.writerOptions.state=g.OpenTag,A=this.writer.indent(S,this.writerOptions,this.currentLevel)+"<"+S.name,L=S.attribs;for(U in L){if(!M.call(L,U))continue;_=L[U],A+=this.writer.attribute(_,this.writerOptions,this.currentLevel)}A+=(S.children?">":"/>")+this.writer.endline(S,this.writerOptions,this.currentLevel),this.writerOptions.state=g.InsideTag}else this.writerOptions.state=g.OpenTag,A=this.writer.indent(S,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+S.rootNodeName,S.pubID&&S.sysID?A+=' PUBLIC "'+S.pubID+'" "'+S.sysID+'"':S.sysID&&(A+=' SYSTEM "'+S.sysID+'"'),S.children?(A+=" [",this.writerOptions.state=g.InsideTag):(this.writerOptions.state=g.CloseTag,A+=">"),A+=this.writer.endline(S,this.writerOptions,this.currentLevel);return this.onData(A,this.currentLevel),S.isOpen=!0}},C.prototype.closeNode=function(S){var _;if(!S.isClosed)return _="",this.writerOptions.state=g.CloseTag,S.type===P.Element?_=this.writer.indent(S,this.writerOptions,this.currentLevel)+"</"+S.name+">"+this.writer.endline(S,this.writerOptions,this.currentLevel):_=this.writer.indent(S,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(S,this.writerOptions,this.currentLevel),this.writerOptions.state=g.None,this.onData(_,this.currentLevel),S.isClosed=!0},C.prototype.onData=function(S,_){return this.documentStarted=!0,this.onDataCallback(S,_+1)},C.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},C.prototype.debugInfo=function(S){return S==null?"":"node: <"+S+">"},C.prototype.ele=function(){return this.element.apply(this,arguments)},C.prototype.nod=function(S,_,A){return this.node(S,_,A)},C.prototype.txt=function(S){return this.text(S)},C.prototype.dat=function(S){return this.cdata(S)},C.prototype.com=function(S){return this.comment(S)},C.prototype.ins=function(S,_){return this.instruction(S,_)},C.prototype.dec=function(S,_,A){return this.declaration(S,_,A)},C.prototype.dtd=function(S,_,A){return this.doctype(S,_,A)},C.prototype.e=function(S,_,A){return this.element(S,_,A)},C.prototype.n=function(S,_,A){return this.node(S,_,A)},C.prototype.t=function(S){return this.text(S)},C.prototype.d=function(S){return this.cdata(S)},C.prototype.c=function(S){return this.comment(S)},C.prototype.r=function(S){return this.raw(S)},C.prototype.i=function(S,_){return this.instruction(S,_)},C.prototype.att=function(){return this.currentNode&&this.currentNode.type===P.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},C.prototype.a=function(){return this.currentNode&&this.currentNode.type===P.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},C.prototype.ent=function(S,_){return this.entity(S,_)},C.prototype.pent=function(S,_){return this.pEntity(S,_)},C.prototype.not=function(S,_){return this.notation(S,_)},C}()}).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(k,z,o){"use strict";var P=k("babel-runtime/core-js/object/create"),g=T(P);function T(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,x,O=function(f,a){for(var u in a)m.call(a,u)&&(f[u]=a[u]);function r(){this.constructor=f}return r.prototype=a.prototype,f.prototype=new r,f.__super__=a.prototype,f},m={}.hasOwnProperty;x=k("./XMLNode"),b=k("./NodeType"),z.exports=y=function(e){O(f,e);function f(a){f.__super__.constructor.call(this,a),this.type=b.Dummy}return f.prototype.clone=function(){return(0,g.default)(this)},f.prototype.toString=function(a){return""},f}(x)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],271:[function(k,z,o){"use strict";var P=k("babel-runtime/core-js/object/create"),g=T(P);function T(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,x,O,m,e,f,a,u,r=function(l,h){for(var d in h)i.call(h,d)&&(l[d]=h[d]);function s(){this.constructor=l}return s.prototype=h.prototype,l.prototype=new s,l.__super__=h.prototype,l},i={}.hasOwnProperty;u=k("./Utility"),a=u.isObject,f=u.isFunction,e=u.getValue,m=k("./XMLNode"),b=k("./NodeType"),y=k("./XMLAttribute"),O=k("./XMLNamedNodeMap"),z.exports=x=function(n){r(l,n);function l(h,d,s){var c,w,E,v;if(l.__super__.constructor.call(this,h),d==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(d),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,w=0,E=v.length;w<E;w++)if(c=v[w],c.type===b.DocType){c.name=this.name;break}}}return Object.defineProperty(l.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(l.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(l.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(l.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(l.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(l.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(l.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(l.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new O(this.attribs)),this.attributeMap}}),l.prototype.clone=function(){var h,d,s,c;s=(0,g.default)(this),s.isRoot&&(s.documentObject=null),s.attribs={},c=this.attribs;for(d in c){if(!i.call(c,d))continue;h=c[d],s.attribs[d]=h.clone()}return s.children=[],this.children.forEach(function(w){var E;return E=w.clone(),E.parent=s,s.children.push(E)}),s},l.prototype.attribute=function(h,d){var s,c;if(h!=null&&(h=e(h)),a(h))for(s in h){if(!i.call(h,s))continue;c=h[s],this.attribute(s,c)}else f(d)&&(d=d.apply()),this.options.keepNullAttributes&&d==null?this.attribs[h]=new y(this,h,""):d!=null&&(this.attribs[h]=new y(this,h,d));return this},l.prototype.removeAttribute=function(h){var d,s,c;if(h==null)throw new Error("Missing attribute name. "+this.debugInfo());if(h=e(h),Array.isArray(h))for(s=0,c=h.length;s<c;s++)d=h[s],delete this.attribs[d];else delete this.attribs[h];return this},l.prototype.toString=function(h){return this.options.writer.element(this,this.options.writer.filterOptions(h))},l.prototype.att=function(h,d){return this.attribute(h,d)},l.prototype.a=function(h,d){return this.attribute(h,d)},l.prototype.getAttribute=function(h){return this.attribs.hasOwnProperty(h)?this.attribs[h].value:null},l.prototype.setAttribute=function(h,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.getAttributeNode=function(h){return this.attribs.hasOwnProperty(h)?this.attribs[h]:null},l.prototype.setAttributeNode=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.removeAttributeNode=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.getElementsByTagName=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.getAttributeNS=function(h,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.setAttributeNS=function(h,d,s){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.removeAttributeNS=function(h,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.getAttributeNodeNS=function(h,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.setAttributeNodeNS=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.getElementsByTagNameNS=function(h,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.hasAttribute=function(h){return this.attribs.hasOwnProperty(h)},l.prototype.hasAttributeNS=function(h,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.setIdAttribute=function(h,d){return this.attribs.hasOwnProperty(h)?this.attribs[h].isId:d},l.prototype.setIdAttributeNS=function(h,d,s){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.setIdAttributeNode=function(h,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.getElementsByTagName=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.getElementsByTagNameNS=function(h,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.getElementsByClassName=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.isEqualNode=function(h){var d,s,c;if(!l.__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(d=s=0,c=this.attribs.length-1;0<=c?s<=c:s>=c;d=0<=c?++s:--s)if(!this.attribs[d].isEqualNode(h.attribs[d]))return!1;return!0},l}(m)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLAttribute":254,"./XMLNamedNodeMap":272,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],272:[function(k,z,o){"use strict";var P=k("babel-runtime/core-js/object/keys"),g=T(P);function T(b){return b&&b.__esModule?b:{default:b}}(function(){var b;z.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 O;return O=this.nodes[x.nodeName],this.nodes[x.nodeName]=x,O||null},y.prototype.removeNamedItem=function(x){var O;return O=this.nodes[x],delete this.nodes[x],O||null},y.prototype.item=function(x){return this.nodes[(0,g.default)(this.nodes)[x]]||null},y.prototype.getNamedItemNS=function(x,O){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,O){throw new Error("This DOM method is not implemented.")},y}()}).call(void 0)},{"babel-runtime/core-js/object/keys":60}],273:[function(k,z,o){"use strict";(function(){var P,g,T,b,y,x,O,m,e,f,a,u,r,i,n,l,h,d,s,c={}.hasOwnProperty;s=k("./Utility"),d=s.isObject,h=s.isFunction,l=s.isEmpty,n=s.getValue,m=null,T=null,b=null,y=null,x=null,r=null,i=null,u=null,O=null,g=null,a=null,e=null,P=null,z.exports=f=function(){function w(E){this.parent=E,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,m||(m=k("./XMLElement"),T=k("./XMLCData"),b=k("./XMLComment"),y=k("./XMLDeclaration"),x=k("./XMLDocType"),r=k("./XMLRaw"),i=k("./XMLText"),u=k("./XMLProcessingInstruction"),O=k("./XMLDummy"),g=k("./NodeType"),a=k("./XMLNodeList"),e=k("./XMLNamedNodeMap"),P=k("./DocumentPosition"))}return Object.defineProperty(w.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(w.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(w.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(w.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(w.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new a(this.children)),this.childNodeList}}),Object.defineProperty(w.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(w.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(w.prototype,"previousSibling",{get:function(){var v;return v=this.parent.children.indexOf(this),this.parent.children[v-1]||null}}),Object.defineProperty(w.prototype,"nextSibling",{get:function(){var v;return v=this.parent.children.indexOf(this),this.parent.children[v+1]||null}}),Object.defineProperty(w.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(w.prototype,"textContent",{get:function(){var v,R,M,C,S;if(this.nodeType===g.Element||this.nodeType===g.DocumentFragment){for(S="",C=this.children,R=0,M=C.length;R<M;R++)v=C[R],v.textContent&&(S+=v.textContent);return S}else return null},set:function(v){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),w.prototype.setParent=function(E){var v,R,M,C,S;for(this.parent=E,E&&(this.options=E.options,this.stringify=E.stringify),C=this.children,S=[],R=0,M=C.length;R<M;R++)v=C[R],S.push(v.setParent(this));return S},w.prototype.element=function(E,v,R){var M,C,S,_,A,U,L,N,V,H,D;if(U=null,v===null&&R==null&&(V=[{},null],v=V[0],R=V[1]),v==null&&(v={}),v=n(v),d(v)||(H=[v,R],R=H[0],v=H[1]),E!=null&&(E=n(E)),Array.isArray(E))for(S=0,L=E.length;S<L;S++)C=E[S],U=this.element(C);else if(h(E))U=this.element(E.apply());else if(d(E))for(A in E){if(!c.call(E,A))continue;if(D=E[A],h(D)&&(D=D.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&A.indexOf(this.stringify.convertAttKey)===0)U=this.attribute(A.substr(this.stringify.convertAttKey.length),D);else if(!this.options.separateArrayItems&&Array.isArray(D)&&l(D))U=this.dummy();else if(d(D)&&l(D))U=this.element(A);else if(!this.options.keepNullNodes&&D==null)U=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(D))for(_=0,N=D.length;_<N;_++)C=D[_],M={},M[A]=C,U=this.element(M);else d(D)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&A.indexOf(this.stringify.convertTextKey)===0?U=this.element(D):(U=this.element(A),U.element(D)):U=this.element(A,D)}else!this.options.keepNullNodes&&R===null?U=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&E.indexOf(this.stringify.convertTextKey)===0?U=this.text(R):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&E.indexOf(this.stringify.convertCDataKey)===0?U=this.cdata(R):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&E.indexOf(this.stringify.convertCommentKey)===0?U=this.comment(R):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&E.indexOf(this.stringify.convertRawKey)===0?U=this.raw(R):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&E.indexOf(this.stringify.convertPIKey)===0?U=this.instruction(E.substr(this.stringify.convertPIKey.length),R):U=this.node(E,v,R);if(U==null)throw new Error("Could not create any elements with: "+E+". "+this.debugInfo());return U},w.prototype.insertBefore=function(E,v,R){var M,C,S,_,A;if(E!=null?E.type:void 0)return S=E,_=v,S.setParent(this),_?(C=children.indexOf(_),A=children.splice(C),children.push(S),Array.prototype.push.apply(children,A)):children.push(S),S;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(E));return C=this.parent.children.indexOf(this),A=this.parent.children.splice(C),M=this.parent.element(E,v,R),Array.prototype.push.apply(this.parent.children,A),M},w.prototype.insertAfter=function(E,v,R){var M,C,S;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(E));return C=this.parent.children.indexOf(this),S=this.parent.children.splice(C+1),M=this.parent.element(E,v,R),Array.prototype.push.apply(this.parent.children,S),M},w.prototype.remove=function(){var E,v;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return E=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[E,E-E+1].concat(v=[])),this.parent},w.prototype.node=function(E,v,R){var M,C;return E!=null&&(E=n(E)),v||(v={}),v=n(v),d(v)||(C=[v,R],R=C[0],v=C[1]),M=new m(this,E,v),R!=null&&M.text(R),this.children.push(M),M},w.prototype.text=function(E){var v;return d(E)&&this.element(E),v=new i(this,E),this.children.push(v),this},w.prototype.cdata=function(E){var v;return v=new T(this,E),this.children.push(v),this},w.prototype.comment=function(E){var v;return v=new b(this,E),this.children.push(v),this},w.prototype.commentBefore=function(E){var v,R,M;return R=this.parent.children.indexOf(this),M=this.parent.children.splice(R),v=this.parent.comment(E),Array.prototype.push.apply(this.parent.children,M),this},w.prototype.commentAfter=function(E){var v,R,M;return R=this.parent.children.indexOf(this),M=this.parent.children.splice(R+1),v=this.parent.comment(E),Array.prototype.push.apply(this.parent.children,M),this},w.prototype.raw=function(E){var v;return v=new r(this,E),this.children.push(v),this},w.prototype.dummy=function(){var E;return E=new O(this),E},w.prototype.instruction=function(E,v){var R,M,C,S,_;if(E!=null&&(E=n(E)),v!=null&&(v=n(v)),Array.isArray(E))for(S=0,_=E.length;S<_;S++)R=E[S],this.instruction(R);else if(d(E))for(R in E){if(!c.call(E,R))continue;M=E[R],this.instruction(R,M)}else h(v)&&(v=v.apply()),C=new u(this,E,v),this.children.push(C);return this},w.prototype.instructionBefore=function(E,v){var R,M,C;return M=this.parent.children.indexOf(this),C=this.parent.children.splice(M),R=this.parent.instruction(E,v),Array.prototype.push.apply(this.parent.children,C),this},w.prototype.instructionAfter=function(E,v){var R,M,C;return M=this.parent.children.indexOf(this),C=this.parent.children.splice(M+1),R=this.parent.instruction(E,v),Array.prototype.push.apply(this.parent.children,C),this},w.prototype.declaration=function(E,v,R){var M,C;return M=this.document(),C=new y(M,E,v,R),M.children.length===0?M.children.unshift(C):M.children[0].type===g.Declaration?M.children[0]=C:M.children.unshift(C),M.root()||M},w.prototype.dtd=function(E,v){var R,M,C,S,_,A,U,L,N,V;for(M=this.document(),C=new x(M,E,v),N=M.children,S=_=0,U=N.length;_<U;S=++_)if(R=N[S],R.type===g.DocType)return M.children[S]=C,C;for(V=M.children,S=A=0,L=V.length;A<L;S=++A)if(R=V[S],R.isRoot)return M.children.splice(S,0,C),C;return M.children.push(C),C},w.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},w.prototype.root=function(){var E;for(E=this;E;){if(E.type===g.Document)return E.rootObject;if(E.isRoot)return E;E=E.parent}},w.prototype.document=function(){var E;for(E=this;E;){if(E.type===g.Document)return E;E=E.parent}},w.prototype.end=function(E){return this.document().end(E)},w.prototype.prev=function(){var E;if(E=this.parent.children.indexOf(this),E<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[E-1]},w.prototype.next=function(){var E;if(E=this.parent.children.indexOf(this),E===-1||E===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[E+1]},w.prototype.importDocument=function(E){var v;return v=E.root().clone(),v.parent=this,v.isRoot=!1,this.children.push(v),this},w.prototype.debugInfo=function(E){var v,R;return E=E||this.name,E==null&&!((v=this.parent)!=null?v.name:void 0)?"":E==null?"parent: <"+this.parent.name+">":((R=this.parent)!=null?R.name:void 0)?"node: <"+E+">, parent: <"+this.parent.name+">":"node: <"+E+">"},w.prototype.ele=function(E,v,R){return this.element(E,v,R)},w.prototype.nod=function(E,v,R){return this.node(E,v,R)},w.prototype.txt=function(E){return this.text(E)},w.prototype.dat=function(E){return this.cdata(E)},w.prototype.com=function(E){return this.comment(E)},w.prototype.ins=function(E,v){return this.instruction(E,v)},w.prototype.doc=function(){return this.document()},w.prototype.dec=function(E,v,R){return this.declaration(E,v,R)},w.prototype.e=function(E,v,R){return this.element(E,v,R)},w.prototype.n=function(E,v,R){return this.node(E,v,R)},w.prototype.t=function(E){return this.text(E)},w.prototype.d=function(E){return this.cdata(E)},w.prototype.c=function(E){return this.comment(E)},w.prototype.r=function(E){return this.raw(E)},w.prototype.i=function(E,v){return this.instruction(E,v)},w.prototype.u=function(){return this.up()},w.prototype.importXMLBuilder=function(E){return this.importDocument(E)},w.prototype.replaceChild=function(E,v){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.removeChild=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.appendChild=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.hasChildNodes=function(){return this.children.length!==0},w.prototype.cloneNode=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.isSupported=function(E,v){return!0},w.prototype.hasAttributes=function(){return this.attribs.length!==0},w.prototype.compareDocumentPosition=function(E){var v,R;return v=this,v===E?0:this.document()!==E.document()?(R=P.Disconnected|P.ImplementationSpecific,Math.random()<.5?R|=P.Preceding:R|=P.Following,R):v.isAncestor(E)?P.Contains|P.Preceding:v.isDescendant(E)?P.Contains|P.Following:v.isPreceding(E)?P.Preceding:P.Following},w.prototype.isSameNode=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.lookupPrefix=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.isDefaultNamespace=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.lookupNamespaceURI=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.isEqualNode=function(E){var v,R,M;if(E.nodeType!==this.nodeType)return!1;if(E.children.length!==this.children.length)return!1;for(v=R=0,M=this.children.length-1;0<=M?R<=M:R>=M;v=0<=M?++R:--R)if(!this.children[v].isEqualNode(E.children[v]))return!1;return!0},w.prototype.getFeature=function(E,v){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.setUserData=function(E,v,R){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.getUserData=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.contains=function(E){return E?E===this||this.isDescendant(E):!1},w.prototype.isDescendant=function(E){var v,R,M,C,S;for(S=this.children,M=0,C=S.length;M<C;M++){if(v=S[M],E===v)return!0;if(R=v.isDescendant(E),R)return!0}return!1},w.prototype.isAncestor=function(E){return E.isDescendant(this)},w.prototype.isPreceding=function(E){var v,R;return v=this.treePosition(E),R=this.treePosition(this),v===-1||R===-1?!1:v<R},w.prototype.isFollowing=function(E){var v,R;return v=this.treePosition(E),R=this.treePosition(this),v===-1||R===-1?!1:v>R},w.prototype.treePosition=function(E){var v,R;return R=0,v=!1,this.foreachTreeNode(this.document(),function(M){if(R++,!v&&M===E)return v=!0}),v?R:-1},w.prototype.foreachTreeNode=function(E,v){var R,M,C,S,_;for(E||(E=this.document()),S=E.children,M=0,C=S.length;M<C;M++){if(R=S[M],_=v(R))return _;if(_=this.foreachTreeNode(R,v),_)return _}},w}()}).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(k,z,o){"use strict";(function(){var P;z.exports=P=function(){function g(T){this.nodes=T}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(T){return this.nodes[T]||null},g}()}).call(void 0)},{}],275:[function(k,z,o){"use strict";var P=k("babel-runtime/core-js/object/create"),g=T(P);function T(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,x,O=function(f,a){for(var u in a)m.call(a,u)&&(f[u]=a[u]);function r(){this.constructor=f}return r.prototype=a.prototype,f.prototype=new r,f.__super__=a.prototype,f},m={}.hasOwnProperty;b=k("./NodeType"),y=k("./XMLCharacterData"),z.exports=x=function(e){O(f,e);function f(a,u,r){if(f.__super__.constructor.call(this,a),u==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=b.ProcessingInstruction,this.target=this.stringify.insTarget(u),this.name=this.target,r&&(this.value=this.stringify.insValue(r))}return f.prototype.clone=function(){return(0,g.default)(this)},f.prototype.toString=function(a){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(a))},f.prototype.isEqualNode=function(a){return f.__super__.isEqualNode.apply(this,arguments).isEqualNode(a)?!(a.target!==this.target):!1},f}(y)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],276:[function(k,z,o){"use strict";var P=k("babel-runtime/core-js/object/create"),g=T(P);function T(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,x,O=function(f,a){for(var u in a)m.call(a,u)&&(f[u]=a[u]);function r(){this.constructor=f}return r.prototype=a.prototype,f.prototype=new r,f.__super__=a.prototype,f},m={}.hasOwnProperty;b=k("./NodeType"),y=k("./XMLNode"),z.exports=x=function(e){O(f,e);function f(a,u){if(f.__super__.constructor.call(this,a),u==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=b.Raw,this.value=this.stringify.raw(u)}return f.prototype.clone=function(){return(0,g.default)(this)},f.prototype.toString=function(a){return this.options.writer.raw(this,this.options.writer.filterOptions(a))},f}(y)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],277:[function(k,z,o){"use strict";(function(){var P,g,T,b,y=function(m,e){for(var f in e)x.call(e,f)&&(m[f]=e[f]);function a(){this.constructor=m}return a.prototype=e.prototype,m.prototype=new a,m.__super__=e.prototype,m},x={}.hasOwnProperty;P=k("./NodeType"),b=k("./XMLWriterBase"),g=k("./WriterState"),z.exports=T=function(O){y(m,O);function m(e,f){this.stream=e,m.__super__.constructor.call(this,f)}return m.prototype.endline=function(e,f,a){return e.isLastRootNode&&f.state===g.CloseTag?"":m.__super__.endline.call(this,e,f,a)},m.prototype.document=function(e,f){var a,u,r,i,n,l,h,d,s;for(h=e.children,u=r=0,n=h.length;r<n;u=++r)a=h[u],a.isLastRootNode=u===e.children.length-1;for(f=this.filterOptions(f),d=e.children,s=[],i=0,l=d.length;i<l;i++)a=d[i],s.push(this.writeChildNode(a,f,0));return s},m.prototype.attribute=function(e,f,a){return this.stream.write(m.__super__.attribute.call(this,e,f,a))},m.prototype.cdata=function(e,f,a){return this.stream.write(m.__super__.cdata.call(this,e,f,a))},m.prototype.comment=function(e,f,a){return this.stream.write(m.__super__.comment.call(this,e,f,a))},m.prototype.declaration=function(e,f,a){return this.stream.write(m.__super__.declaration.call(this,e,f,a))},m.prototype.docType=function(e,f,a){var u,r,i,n;if(a||(a=0),this.openNode(e,f,a),f.state=g.OpenTag,this.stream.write(this.indent(e,f,a)),this.stream.write("<!DOCTYPE "+e.root().name),e.pubID&&e.sysID?this.stream.write(' PUBLIC "'+e.pubID+'" "'+e.sysID+'"'):e.sysID&&this.stream.write(' SYSTEM "'+e.sysID+'"'),e.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(e,f,a)),f.state=g.InsideTag,n=e.children,r=0,i=n.length;r<i;r++)u=n[r],this.writeChildNode(u,f,a+1);f.state=g.CloseTag,this.stream.write("]")}return f.state=g.CloseTag,this.stream.write(f.spaceBeforeSlash+">"),this.stream.write(this.endline(e,f,a)),f.state=g.None,this.closeNode(e,f,a)},m.prototype.element=function(e,f,a){var u,r,i,n,l,h,d,s,c,w;a||(a=0),this.openNode(e,f,a),f.state=g.OpenTag,this.stream.write(this.indent(e,f,a)+"<"+e.name),c=e.attribs;for(d in c){if(!x.call(c,d))continue;u=c[d],this.attribute(u,f,a)}if(i=e.children.length,n=i===0?null:e.children[0],i===0||e.children.every(function(E){return(E.type===P.Text||E.type===P.Raw)&&E.value===""}))f.allowEmpty?(this.stream.write(">"),f.state=g.CloseTag,this.stream.write("</"+e.name+">")):(f.state=g.CloseTag,this.stream.write(f.spaceBeforeSlash+"/>"));else if(f.pretty&&i===1&&(n.type===P.Text||n.type===P.Raw)&&n.value!=null)this.stream.write(">"),f.state=g.InsideTag,f.suppressPrettyCount++,s=!0,this.writeChildNode(n,f,a+1),f.suppressPrettyCount--,s=!1,f.state=g.CloseTag,this.stream.write("</"+e.name+">");else{for(this.stream.write(">"+this.endline(e,f,a)),f.state=g.InsideTag,w=e.children,l=0,h=w.length;l<h;l++)r=w[l],this.writeChildNode(r,f,a+1);f.state=g.CloseTag,this.stream.write(this.indent(e,f,a)+"</"+e.name+">")}return this.stream.write(this.endline(e,f,a)),f.state=g.None,this.closeNode(e,f,a)},m.prototype.processingInstruction=function(e,f,a){return this.stream.write(m.__super__.processingInstruction.call(this,e,f,a))},m.prototype.raw=function(e,f,a){return this.stream.write(m.__super__.raw.call(this,e,f,a))},m.prototype.text=function(e,f,a){return this.stream.write(m.__super__.text.call(this,e,f,a))},m.prototype.dtdAttList=function(e,f,a){return this.stream.write(m.__super__.dtdAttList.call(this,e,f,a))},m.prototype.dtdElement=function(e,f,a){return this.stream.write(m.__super__.dtdElement.call(this,e,f,a))},m.prototype.dtdEntity=function(e,f,a){return this.stream.write(m.__super__.dtdEntity.call(this,e,f,a))},m.prototype.dtdNotation=function(e,f,a){return this.stream.write(m.__super__.dtdNotation.call(this,e,f,a))},m}(b)}).call(void 0)},{"./NodeType":251,"./WriterState":253,"./XMLWriterBase":281}],278:[function(k,z,o){"use strict";(function(){var P,g,T=function(x,O){for(var m in O)b.call(O,m)&&(x[m]=O[m]);function e(){this.constructor=x}return e.prototype=O.prototype,x.prototype=new e,x.__super__=O.prototype,x},b={}.hasOwnProperty;g=k("./XMLWriterBase"),z.exports=P=function(y){T(x,y);function x(O){x.__super__.constructor.call(this,O)}return x.prototype.document=function(O,m){var e,f,a,u,r;for(m=this.filterOptions(m),u="",r=O.children,f=0,a=r.length;f<a;f++)e=r[f],u+=this.writeChildNode(e,m,0);return m.pretty&&u.slice(-m.newline.length)===m.newline&&(u=u.slice(0,-m.newline.length)),u},x}(g)}).call(void 0)},{"./XMLWriterBase":281}],279:[function(k,z,o){"use strict";(function(){var P,g=function(y,x){return function(){return y.apply(x,arguments)}},T={}.hasOwnProperty;z.exports=P=function(){function b(y){this.assertLegalName=g(this.assertLegalName,this),this.assertLegalChar=g(this.assertLegalChar,this);var x,O,m;y||(y={}),this.options=y,this.options.version||(this.options.version="1.0"),O=y.stringify||{};for(x in O){if(!T.call(O,x))continue;m=O[x],this[x]=m}}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,O;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]/,O=y.match(x))throw new Error("Invalid character in string: "+y+" at index "+O.index)}else if(this.options.version==="1.1"&&(x=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,O=y.match(x)))throw new Error("Invalid character in string: "+y+" at index "+O.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,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))},b.prototype.attEscape=function(y){var x;return this.options.noValidation?y:(x=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,y.replace(x,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))},b}()}).call(void 0)},{}],280:[function(k,z,o){"use strict";var P=k("babel-runtime/core-js/object/create"),g=T(P);function T(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,x,O=function(f,a){for(var u in a)m.call(a,u)&&(f[u]=a[u]);function r(){this.constructor=f}return r.prototype=a.prototype,f.prototype=new r,f.__super__=a.prototype,f},m={}.hasOwnProperty;b=k("./NodeType"),y=k("./XMLCharacterData"),z.exports=x=function(e){O(f,e);function f(a,u){if(f.__super__.constructor.call(this,a),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(f.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(f.prototype,"wholeText",{get:function(){var u,r,i;for(i="",r=this.previousSibling;r;)i=r.data+i,r=r.previousSibling;for(i+=this.data,u=this.nextSibling;u;)i=i+u.data,u=u.nextSibling;return i}}),f.prototype.clone=function(){return(0,g.default)(this)},f.prototype.toString=function(a){return this.options.writer.text(this,this.options.writer.filterOptions(a))},f.prototype.splitText=function(a){throw new Error("This DOM method is not implemented."+this.debugInfo())},f.prototype.replaceWholeText=function(a){throw new Error("This DOM method is not implemented."+this.debugInfo())},f}(y)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],281:[function(k,z,o){"use strict";(function(){var P,g,T,b,y,x,O,m,e,f,a,u,r,i,n,l,h,d={}.hasOwnProperty;h=k("./Utility").assign,P=k("./NodeType"),e=k("./XMLDeclaration"),f=k("./XMLDocType"),T=k("./XMLCData"),b=k("./XMLComment"),u=k("./XMLElement"),i=k("./XMLRaw"),n=k("./XMLText"),r=k("./XMLProcessingInstruction"),a=k("./XMLDummy"),y=k("./XMLDTDAttList"),x=k("./XMLDTDElement"),O=k("./XMLDTDEntity"),m=k("./XMLDTDNotation"),g=k("./WriterState"),z.exports=l=function(){function s(c){var w,E,v;c||(c={}),this.options=c,E=c.writer||{};for(w in E){if(!d.call(E,w))continue;v=E[w],this["_"+w]=this[w],this[w]=v}}return s.prototype.filterOptions=function(c){var w,E,v,R,M,C,S,_;return c||(c={}),c=h({},this.options,c),w={writer:this},w.pretty=c.pretty||!1,w.allowEmpty=c.allowEmpty||!1,w.indent=(E=c.indent)!=null?E:" ",w.newline=(v=c.newline)!=null?v:`
|
|
|
`,w.offset=(R=c.offset)!=null?R:0,w.dontPrettyTextNodes=(M=(C=c.dontPrettyTextNodes)!=null?C:c.dontprettytextnodes)!=null?M:0,w.spaceBeforeSlash=(S=(_=c.spaceBeforeSlash)!=null?_:c.spacebeforeslash)!=null?S:"",w.spaceBeforeSlash===!0&&(w.spaceBeforeSlash=" "),w.suppressPrettyCount=0,w.user={},w.state=g.None,w},s.prototype.indent=function(c,w,E){var v;return!w.pretty||w.suppressPrettyCount?"":w.pretty&&(v=(E||0)+w.offset+1,v>0)?new Array(v).join(w.indent):""},s.prototype.endline=function(c,w,E){return!w.pretty||w.suppressPrettyCount?"":w.newline},s.prototype.attribute=function(c,w,E){var v;return this.openAttribute(c,w,E),v=" "+c.name+'="'+c.value+'"',this.closeAttribute(c,w,E),v},s.prototype.cdata=function(c,w,E){var v;return this.openNode(c,w,E),w.state=g.OpenTag,v=this.indent(c,w,E)+"<![CDATA[",w.state=g.InsideTag,v+=c.value,w.state=g.CloseTag,v+="]]>"+this.endline(c,w,E),w.state=g.None,this.closeNode(c,w,E),v},s.prototype.comment=function(c,w,E){var v;return this.openNode(c,w,E),w.state=g.OpenTag,v=this.indent(c,w,E)+"<!-- ",w.state=g.InsideTag,v+=c.value,w.state=g.CloseTag,v+=" -->"+this.endline(c,w,E),w.state=g.None,this.closeNode(c,w,E),v},s.prototype.declaration=function(c,w,E){var v;return this.openNode(c,w,E),w.state=g.OpenTag,v=this.indent(c,w,E)+"<?xml",w.state=g.InsideTag,v+=' version="'+c.version+'"',c.encoding!=null&&(v+=' encoding="'+c.encoding+'"'),c.standalone!=null&&(v+=' standalone="'+c.standalone+'"'),w.state=g.CloseTag,v+=w.spaceBeforeSlash+"?>",v+=this.endline(c,w,E),w.state=g.None,this.closeNode(c,w,E),v},s.prototype.docType=function(c,w,E){var v,R,M,C,S;if(E||(E=0),this.openNode(c,w,E),w.state=g.OpenTag,C=this.indent(c,w,E),C+="<!DOCTYPE "+c.root().name,c.pubID&&c.sysID?C+=' PUBLIC "'+c.pubID+'" "'+c.sysID+'"':c.sysID&&(C+=' SYSTEM "'+c.sysID+'"'),c.children.length>0){for(C+=" [",C+=this.endline(c,w,E),w.state=g.InsideTag,S=c.children,R=0,M=S.length;R<M;R++)v=S[R],C+=this.writeChildNode(v,w,E+1);w.state=g.CloseTag,C+="]"}return w.state=g.CloseTag,C+=w.spaceBeforeSlash+">",C+=this.endline(c,w,E),w.state=g.None,this.closeNode(c,w,E),C},s.prototype.element=function(c,w,E){var v,R,M,C,S,_,A,U,L,N,V,H,D,W;E||(E=0),N=!1,V="",this.openNode(c,w,E),w.state=g.OpenTag,V+=this.indent(c,w,E)+"<"+c.name,H=c.attribs;for(L in H){if(!d.call(H,L))continue;v=H[L],V+=this.attribute(v,w,E)}if(M=c.children.length,C=M===0?null:c.children[0],M===0||c.children.every(function(F){return(F.type===P.Text||F.type===P.Raw)&&F.value===""}))w.allowEmpty?(V+=">",w.state=g.CloseTag,V+="</"+c.name+">"+this.endline(c,w,E)):(w.state=g.CloseTag,V+=w.spaceBeforeSlash+"/>"+this.endline(c,w,E));else if(w.pretty&&M===1&&(C.type===P.Text||C.type===P.Raw)&&C.value!=null)V+=">",w.state=g.InsideTag,w.suppressPrettyCount++,N=!0,V+=this.writeChildNode(C,w,E+1),w.suppressPrettyCount--,N=!1,w.state=g.CloseTag,V+="</"+c.name+">"+this.endline(c,w,E);else{if(w.dontPrettyTextNodes){for(D=c.children,S=0,A=D.length;S<A;S++)if(R=D[S],(R.type===P.Text||R.type===P.Raw)&&R.value!=null){w.suppressPrettyCount++,N=!0;break}}for(V+=">"+this.endline(c,w,E),w.state=g.InsideTag,W=c.children,_=0,U=W.length;_<U;_++)R=W[_],V+=this.writeChildNode(R,w,E+1);w.state=g.CloseTag,V+=this.indent(c,w,E)+"</"+c.name+">",N&&w.suppressPrettyCount--,V+=this.endline(c,w,E),w.state=g.None}return this.closeNode(c,w,E),V},s.prototype.writeChildNode=function(c,w,E){switch(c.type){case P.CData:return this.cdata(c,w,E);case P.Comment:return this.comment(c,w,E);case P.Element:return this.element(c,w,E);case P.Raw:return this.raw(c,w,E);case P.Text:return this.text(c,w,E);case P.ProcessingInstruction:return this.processingInstruction(c,w,E);case P.Dummy:return"";case P.Declaration:return this.declaration(c,w,E);case P.DocType:return this.docType(c,w,E);case P.AttributeDeclaration:return this.dtdAttList(c,w,E);case P.ElementDeclaration:return this.dtdElement(c,w,E);case P.EntityDeclaration:return this.dtdEntity(c,w,E);case P.NotationDeclaration:return this.dtdNotation(c,w,E);default:throw new Error("Unknown XML node type: "+c.constructor.name)}},s.prototype.processingInstruction=function(c,w,E){var v;return this.openNode(c,w,E),w.state=g.OpenTag,v=this.indent(c,w,E)+"<?",w.state=g.InsideTag,v+=c.target,c.value&&(v+=" "+c.value),w.state=g.CloseTag,v+=w.spaceBeforeSlash+"?>",v+=this.endline(c,w,E),w.state=g.None,this.closeNode(c,w,E),v},s.prototype.raw=function(c,w,E){var v;return this.openNode(c,w,E),w.state=g.OpenTag,v=this.indent(c,w,E),w.state=g.InsideTag,v+=c.value,w.state=g.CloseTag,v+=this.endline(c,w,E),w.state=g.None,this.closeNode(c,w,E),v},s.prototype.text=function(c,w,E){var v;return this.openNode(c,w,E),w.state=g.OpenTag,v=this.indent(c,w,E),w.state=g.InsideTag,v+=c.value,w.state=g.CloseTag,v+=this.endline(c,w,E),w.state=g.None,this.closeNode(c,w,E),v},s.prototype.dtdAttList=function(c,w,E){var v;return this.openNode(c,w,E),w.state=g.OpenTag,v=this.indent(c,w,E)+"<!ATTLIST",w.state=g.InsideTag,v+=" "+c.elementName+" "+c.attributeName+" "+c.attributeType,c.defaultValueType!=="#DEFAULT"&&(v+=" "+c.defaultValueType),c.defaultValue&&(v+=' "'+c.defaultValue+'"'),w.state=g.CloseTag,v+=w.spaceBeforeSlash+">"+this.endline(c,w,E),w.state=g.None,this.closeNode(c,w,E),v},s.prototype.dtdElement=function(c,w,E){var v;return this.openNode(c,w,E),w.state=g.OpenTag,v=this.indent(c,w,E)+"<!ELEMENT",w.state=g.InsideTag,v+=" "+c.name+" "+c.value,w.state=g.CloseTag,v+=w.spaceBeforeSlash+">"+this.endline(c,w,E),w.state=g.None,this.closeNode(c,w,E),v},s.prototype.dtdEntity=function(c,w,E){var v;return this.openNode(c,w,E),w.state=g.OpenTag,v=this.indent(c,w,E)+"<!ENTITY",w.state=g.InsideTag,c.pe&&(v+=" %"),v+=" "+c.name,c.value?v+=' "'+c.value+'"':(c.pubID&&c.sysID?v+=' PUBLIC "'+c.pubID+'" "'+c.sysID+'"':c.sysID&&(v+=' SYSTEM "'+c.sysID+'"'),c.nData&&(v+=" NDATA "+c.nData)),w.state=g.CloseTag,v+=w.spaceBeforeSlash+">"+this.endline(c,w,E),w.state=g.None,this.closeNode(c,w,E),v},s.prototype.dtdNotation=function(c,w,E){var v;return this.openNode(c,w,E),w.state=g.OpenTag,v=this.indent(c,w,E)+"<!NOTATION",w.state=g.InsideTag,v+=" "+c.name,c.pubID&&c.sysID?v+=' PUBLIC "'+c.pubID+'" "'+c.sysID+'"':c.pubID?v+=' PUBLIC "'+c.pubID+'"':c.sysID&&(v+=' SYSTEM "'+c.sysID+'"'),w.state=g.CloseTag,v+=w.spaceBeforeSlash+">"+this.endline(c,w,E),w.state=g.None,this.closeNode(c,w,E),v},s.prototype.openNode=function(c,w,E){},s.prototype.closeNode=function(c,w,E){},s.prototype.openAttribute=function(c,w,E){},s.prototype.closeAttribute=function(c,w,E){},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(k,z,o){"use strict";(function(){var P,g,T,b,y,x,O,m,e,f;f=k("./Utility"),m=f.assign,e=f.isFunction,T=k("./XMLDOMImplementation"),b=k("./XMLDocument"),y=k("./XMLDocumentCB"),O=k("./XMLStringWriter"),x=k("./XMLStreamWriter"),P=k("./NodeType"),g=k("./WriterState"),z.exports.create=function(a,u,r,i){var n,l;if(a==null)throw new Error("Root element needs a name.");return i=m({},u,r,i),n=new b(i),l=n.element(a),i.headless||(n.declaration(i),(i.pubID!=null||i.sysID!=null)&&n.dtd(i)),l},z.exports.begin=function(a,u,r){var i;return e(a)&&(i=[a,u],u=i[0],r=i[1],a={}),u?new y(a,u,r):new b(a)},z.exports.stringWriter=function(a){return new O(a)},z.exports.streamWriter=function(a,u){return new x(a,u)},z.exports.implementation=new T,z.exports.nodeType=P,z.exports.writerState=g}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLDOMImplementation":260,"./XMLDocument":268,"./XMLDocumentCB":269,"./XMLStreamWriter":277,"./XMLStringWriter":278}],283:[function(k,z,o){z.exports=g;var P=Object.prototype.hasOwnProperty;function g(){for(var T={},b=0;b<arguments.length;b++){var y=arguments[b];for(var x in y)P.call(y,x)&&(T[x]=y[x])}return T}},{}],284:[function(k,z,o){"use strict";var P=k("buffer").Buffer,g=k("./sha"),T=k("./md5"),b={sha1:g,md5:T},y=64,x=P.alloc(y);x.fill(0);function O(f,a,u){P.isBuffer(a)||(a=P.from(a)),P.isBuffer(u)||(u=P.from(u)),a.length>y?a=f(a):a.length<y&&(a=P.concat([a,x],y));for(var r=P.alloc(y),i=P.alloc(y),n=0;n<y;n++)r[n]=a[n]^54,i[n]=a[n]^92;var l=f(P.concat([r,u]));return f(P.concat([i,l]))}function m(f,a){f=f||"sha1";var u=b[f],r=[],i=0;return u||e("algorithm:",f,"is not yet supported"),{update:function(l){return P.isBuffer(l)||(l=P.from(l)),r.push(l),i+=l.length,this},digest:function(l){var h=P.concat(r),d=a?O(u,a,h):u(h);return r=null,l?d.toString(l):d}}}function e(){var f=[].slice.call(arguments).join(" ");throw new Error([f,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
|
`))}o.createHash=function(f){return m(f)},o.createHmac=function(f,a){return m(f,a)},o.createCredentials=function(){e("sorry,createCredentials is not implemented yet")},o.createCipher=function(){e("sorry,createCipher is not implemented yet")},o.createCipheriv=function(){e("sorry,createCipheriv is not implemented yet")},o.createDecipher=function(){e("sorry,createDecipher is not implemented yet")},o.createDecipheriv=function(){e("sorry,createDecipheriv is not implemented yet")},o.createSign=function(){e("sorry,createSign is not implemented yet")},o.createVerify=function(){e("sorry,createVerify is not implemented yet")},o.createDiffieHellman=function(){e("sorry,createDiffieHellman is not implemented yet")},o.pbkdf2=function(){e("sorry,pbkdf2 is not implemented yet")}},{"./md5":286,"./sha":287,buffer:73}],285:[function(k,z,o){"use strict";var P=k("buffer").Buffer,g=4,T=P.alloc(g);T.fill(0);var b=8;function y(m,e){if(m.length%g!==0){var f=m.length+(g-m.length%g);m=P.concat([m,T],f)}for(var a=[],u=e?m.readInt32BE:m.readInt32LE,r=0;r<m.length;r+=g)a.push(u.call(m,r));return a}function x(m,e,f){for(var a=P.alloc(e),u=f?a.writeInt32BE:a.writeInt32LE,r=0;r<m.length;r++)u.call(a,m[r],r*4,!0);return a}function O(m,e,f,a){P.isBuffer(m)||(m=P.from(m));var u=e(y(m,a),m.length*b);return x(u,f,a)}z.exports={hash:O}},{buffer:73}],286:[function(k,z,o){"use strict";var P=k("./helpers");function g(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function T(a,u){a[u>>5]|=128<<u%32,a[(u+64>>>9<<4)+14]=u;for(var r=1732584193,i=-271733879,n=-1732584194,l=271733878,h=0;h<a.length;h+=16){var d=r,s=i,c=n,w=l;r=y(r,i,n,l,a[h+0],7,-680876936),l=y(l,r,i,n,a[h+1],12,-389564586),n=y(n,l,r,i,a[h+2],17,606105819),i=y(i,n,l,r,a[h+3],22,-1044525330),r=y(r,i,n,l,a[h+4],7,-176418897),l=y(l,r,i,n,a[h+5],12,1200080426),n=y(n,l,r,i,a[h+6],17,-1473231341),i=y(i,n,l,r,a[h+7],22,-45705983),r=y(r,i,n,l,a[h+8],7,1770035416),l=y(l,r,i,n,a[h+9],12,-1958414417),n=y(n,l,r,i,a[h+10],17,-42063),i=y(i,n,l,r,a[h+11],22,-1990404162),r=y(r,i,n,l,a[h+12],7,1804603682),l=y(l,r,i,n,a[h+13],12,-40341101),n=y(n,l,r,i,a[h+14],17,-1502002290),i=y(i,n,l,r,a[h+15],22,1236535329),r=x(r,i,n,l,a[h+1],5,-165796510),l=x(l,r,i,n,a[h+6],9,-1069501632),n=x(n,l,r,i,a[h+11],14,643717713),i=x(i,n,l,r,a[h+0],20,-373897302),r=x(r,i,n,l,a[h+5],5,-701558691),l=x(l,r,i,n,a[h+10],9,38016083),n=x(n,l,r,i,a[h+15],14,-660478335),i=x(i,n,l,r,a[h+4],20,-405537848),r=x(r,i,n,l,a[h+9],5,568446438),l=x(l,r,i,n,a[h+14],9,-1019803690),n=x(n,l,r,i,a[h+3],14,-187363961),i=x(i,n,l,r,a[h+8],20,1163531501),r=x(r,i,n,l,a[h+13],5,-1444681467),l=x(l,r,i,n,a[h+2],9,-51403784),n=x(n,l,r,i,a[h+7],14,1735328473),i=x(i,n,l,r,a[h+12],20,-1926607734),r=O(r,i,n,l,a[h+5],4,-378558),l=O(l,r,i,n,a[h+8],11,-2022574463),n=O(n,l,r,i,a[h+11],16,1839030562),i=O(i,n,l,r,a[h+14],23,-35309556),r=O(r,i,n,l,a[h+1],4,-1530992060),l=O(l,r,i,n,a[h+4],11,1272893353),n=O(n,l,r,i,a[h+7],16,-155497632),i=O(i,n,l,r,a[h+10],23,-1094730640),r=O(r,i,n,l,a[h+13],4,681279174),l=O(l,r,i,n,a[h+0],11,-358537222),n=O(n,l,r,i,a[h+3],16,-722521979),i=O(i,n,l,r,a[h+6],23,76029189),r=O(r,i,n,l,a[h+9],4,-640364487),l=O(l,r,i,n,a[h+12],11,-421815835),n=O(n,l,r,i,a[h+15],16,530742520),i=O(i,n,l,r,a[h+2],23,-995338651),r=m(r,i,n,l,a[h+0],6,-198630844),l=m(l,r,i,n,a[h+7],10,1126891415),n=m(n,l,r,i,a[h+14],15,-1416354905),i=m(i,n,l,r,a[h+5],21,-57434055),r=m(r,i,n,l,a[h+12],6,1700485571),l=m(l,r,i,n,a[h+3],10,-1894986606),n=m(n,l,r,i,a[h+10],15,-1051523),i=m(i,n,l,r,a[h+1],21,-2054922799),r=m(r,i,n,l,a[h+8],6,1873313359),l=m(l,r,i,n,a[h+15],10,-30611744),n=m(n,l,r,i,a[h+6],15,-1560198380),i=m(i,n,l,r,a[h+13],21,1309151649),r=m(r,i,n,l,a[h+4],6,-145523070),l=m(l,r,i,n,a[h+11],10,-1120210379),n=m(n,l,r,i,a[h+2],15,718787259),i=m(i,n,l,r,a[h+9],21,-343485551),r=e(r,d),i=e(i,s),n=e(n,c),l=e(l,w)}return Array(r,i,n,l)}function b(a,u,r,i,n,l){return e(f(e(e(u,a),e(i,l)),n),r)}function y(a,u,r,i,n,l,h){return b(u&r|~u&i,a,u,n,l,h)}function x(a,u,r,i,n,l,h){return b(u&i|r&~i,a,u,n,l,h)}function O(a,u,r,i,n,l,h){return b(u^r^i,a,u,n,l,h)}function m(a,u,r,i,n,l,h){return b(r^(u|~i),a,u,n,l,h)}function e(a,u){var r=(a&65535)+(u&65535),i=(a>>16)+(u>>16)+(r>>16);return i<<16|r&65535}function f(a,u){return a<<u|a>>>32-u}z.exports=function(u){return P.hash(u,T,16)}},{"./helpers":285}],287:[function(k,z,o){"use strict";var P=k("./helpers");function g(O,m){O[m>>5]|=128<<24-m%32,O[(m+64>>9<<4)+15]=m;for(var e=Array(80),f=1732584193,a=-271733879,u=-1732584194,r=271733878,i=-1009589776,n=0;n<O.length;n+=16){for(var l=f,h=a,d=u,s=r,c=i,w=0;w<80;w++){w<16?e[w]=O[n+w]:e[w]=x(e[w-3]^e[w-8]^e[w-14]^e[w-16],1);var E=y(y(x(f,5),T(w,a,u,r)),y(y(i,e[w]),b(w)));i=r,r=u,u=x(a,30),a=f,f=E}f=y(f,l),a=y(a,h),u=y(u,d),r=y(r,s),i=y(i,c)}return Array(f,a,u,r,i)}function T(O,m,e,f){return O<20?m&e|~m&f:O<40?m^e^f:O<60?m&e|m&f|e&f:m^e^f}function b(O){return O<20?1518500249:O<40?1859775393:O<60?-1894007588:-899497514}function y(O,m){var e=(O&65535)+(m&65535),f=(O>>16)+(m>>16)+(e>>16);return f<<16|e&65535}function x(O,m){return O<<m|O>>>32-m}z.exports=function(m){return P.hash(m,g,20,!0)}},{"./helpers":285}],288:[function(k,z,o){"use strict";z.exports=function(){return function(){}}},{}],289:[function(k,z,o){(function(P){"use strict";var g=k("babel-runtime/helpers/typeof"),T=b(g);function b(f){return f&&f.__esModule?f:{default:f}}var y=k("stream"),x=y.Stream,O=k("../lib/common/utils/isArray"),m=O.isArray;z.exports.string=function(a){return typeof a=="string"},z.exports.array=m,z.exports.buffer=P.isBuffer;function e(f){return f instanceof x}z.exports.writableStream=function(a){return e(a)&&typeof a._write=="function"&&(0,T.default)(a._writableState)==="object"}}).call(this,{isBuffer:k("../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(k,z,o){"use strict";o.encodeURIComponent=function(P){try{return encodeURIComponent(P)}catch(g){return P}},o.escape=k("escape-html"),o.timestamp=function(g){if(g){var T=g;return typeof T=="string"&&(T=Number(T)),String(g).length===10&&(T*=1e3),new Date(T)}return Math.round(Date.now()/1e3)}},{"escape-html":191}],291:[function(k,z,o){(function(P,g){"use strict";var T=k("babel-runtime/core-js/json/stringify"),b=O(T),y=k("babel-runtime/helpers/typeof"),x=O(y);function O(w){return w&&w.__esModule?w:{default:w}}var m=k("util"),e=k("url"),f=k("http"),a=k("https"),u=k("debug")("urllib"),r=k("humanize-ms"),i,n=0,l=Math.pow(2,31)-10,h=/^https?:\/\//i;function d(w,E){return w===void 0?E:w}function s(w,E){return function(v,R,M){if(v)return E(v);w({data:R,status:M.statusCode,headers:M.headers,res:M})}}o.TIMEOUTS=[r("300s"),r("300s")];var c=["json","text"];o.request=function(E,v,R){return arguments.length===2&&typeof v=="function"&&(R=v,v=null),typeof R=="function"?o.requestWithCallback(E,v,R):(i||(i=k("any-promise")),new i(function(M,C){o.requestWithCallback(E,v,s(M,C))}))},o.requestWithCallback=function(E,v,R){if(!E||typeof E!="string"&&(typeof E=="undefined"?"undefined":(0,x.default)(E))!=="object"){var M=m.format("expect request url to be a string or a http request options, but got %j",E);throw new Error(M)}arguments.length===2&&typeof v=="function"&&(R=v,v=null),v=v||{},n>=l&&(n=0);var C=++n;v.requestUrls=v.requestUrls||[];var S={requestId:C,url:E,args:v,ctx:v.ctx};v.emitter&&v.emitter.emit("request",S),v.timeout=v.timeout||o.TIMEOUTS,v.maxRedirects=v.maxRedirects||10,v.streaming=v.streaming||v.customResponse;var _=Date.now(),A;typeof E=="string"?(h.test(E)||(E="http://"+E),A=e.parse(E)):A=E;var U=(v.type||v.method||A.method||"GET").toUpperCase(),L=A.port||80,N=f,V=d(v.agent,o.agent),H=v.fixJSONCtlChars;A.protocol==="https:"&&(N=a,V=d(v.httpsAgent,o.httpsAgent),A.port||(L=443));var D={host:A.hostname||A.host||"localhost",path:A.path||"/",method:U,port:L,agent:V,headers:v.headers||{},lookup:v.lookup};Array.isArray(v.timeout)?D.requestTimeout=v.timeout[v.timeout.length-1]:typeof v.timeout!="undefined"&&(D.requestTimeout=v.timeout);for(var W=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],F=0;F<W.length;F++){var I=W[F];v.hasOwnProperty(I)&&(D[I]=v[I])}D.rejectUnauthorized===!1&&!D.hasOwnProperty("secureOptions")&&(D.secureOptions=k("constants").SSL_OP_NO_TLSv1_2);var K=v.auth||A.auth;K&&(D.auth=K);var ee=v.content||v.data,he=U==="GET"||U==="HEAD"||v.dataAsQueryString;if(!v.content&&(ee&&!(typeof ee=="string"||g.isBuffer(ee))))if(he)ee=v.nestedQuerystring?qs.stringify(ee):querystring.stringify(ee);else{var de=D.headers["Content-Type"]||D.headers["content-type"];de||(v.contentType==="json"?de="application/json":de="application/x-www-form-urlencoded",D.headers["Content-Type"]=de),parseContentType(de).type==="application/json"?ee=(0,b.default)(ee):ee=v.nestedQuerystring?qs.stringify(ee):querystring.stringify(ee)}he&&ee&&(D.path+=(A.query?"&":"?")+ee,ee=null);var Se=0;if(ee){var Te=ee.length;g.isBuffer(ee)||(Te=g.byteLength(ee)),Se=D.headers["Content-Length"]=Te}v.dataType==="json"&&(D.headers.Accept="application/json"),typeof v.beforeRequest=="function"&&v.beforeRequest(D);var ce=null,be=null,Ee=null,ue=!1,le=!1,$=0,me=-1,re=!1,ae="",Oe="",se=null;v.timing&&(se={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function te(){ce&&(clearTimeout(ce),ce=null)}function Q(){be&&(clearTimeout(be),be=null)}function J(Ue,ft,jt){if(Q(),!R){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),C,P.pid,D.method,E),Ue&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
|
stack: %s`,Date(),C,P.pid,Ue.name,Ue.message,Ue.stack);return}var bt=R;R=null;var Pt={};if(jt&&(me=jt.statusCode,Pt=jt.headers),me===401&&Pt["www-authenticate"]&&(!v.headers||!v.headers.Authorization)&&v.digestAuth){var it=Pt["www-authenticate"];if(it.indexOf("Digest ")>=0)return u("Request#%d %s: got digest auth header WWW-Authenticate: %s",C,E,it),v.headers=v.headers||{},v.headers.Authorization=digestAuthHeader(D.method,D.path,it,v.digestAuth),u("Request#%d %s: auth with digest header: %s",C,E,v.headers.Authorization),jt.headers["set-cookie"]&&(v.headers.Cookie=jt.headers["set-cookie"].join(";")),o.requestWithCallback(E,v,bt)}var He=Date.now()-_;se&&(se.contentDownload=He),u("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",He,$,me,D.method,D.host,D.path,le,se);var Ge={status:me,statusCode:me,headers:Pt,size:$,aborted:re,rt:He,keepAliveSocket:le,data:ft,requestUrls:v.requestUrls,timing:se,remoteAddress:ae,remotePort:Oe};if(Ue){var Ce="";V&&typeof V.getCurrentStatus=="function"&&(Ce=", agent status: "+(0,b.default)(V.getCurrentStatus())),Ue.message+=", "+D.method+" "+E+" "+me+" (connected: "+ue+", keepalive socket: "+le+Ce+`)
|
|
|
headers: `+(0,b.default)(Pt),Ue.data=ft,Ue.path=D.path,Ue.status=me,Ue.headers=Pt,Ue.res=Ge}bt(Ue,ft,v.streaming?jt:Ge),v.emitter&&(S.url=E,S.socket=yt&&yt.connection,S.options=D,S.size=Se,v.emitter.emit("response",{requestId:C,error:Ue,ctx:v.ctx,req:S,res:Ge}))}function ve(Ue){var ft=null;if(v.followRedirect&&statuses.redirect[Ue.statusCode]){v._followRedirectCount=(v._followRedirectCount||0)+1;var jt=Ue.headers.location;if(!jt)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 "+E),ft.name="MaxRedirectError";else{var bt=v.formatRedirectUrl?v.formatRedirectUrl(E,jt):e.resolve(E,jt);u("Request#%d %s: `redirected` from %s to %s",C,D.path,E,bt),Q(),v.headers&&v.headers.Host&&h.test(jt)&&(v.headers.Host=null);var Pt=R;return R=null,o.requestWithCallback(bt,v,Pt),{redirect:!0,error:null}}}return{redirect:!1,error:ft}}!D.headers["User-Agent"]&&!D.headers["user-agent"]&&(D.headers["User-Agent"]=navigator.userAgent),v.gzip&&(!D.headers["Accept-Encoding"]&&!D.headers["accept-encoding"]&&(D.headers["Accept-Encoding"]="gzip"));function _e(Ue,ft,jt){var bt=Ue.headers["content-encoding"];return jt(null,ft,bt)}var Ae=v.writeStream;u("Request#%d %s %s with headers %j, options.path: %s",C,U,E,D.headers,D.path),v.requestUrls.push(E);function Qe(Ue){if(se&&(se.waiting=Date.now()-_),u("Request#%d %s `req response` event emit: status %d, headers: %j",C,E,Ue.statusCode,Ue.headers),v.streaming){var ft=ve(Ue);if(ft.redirect){Ue.resume();return}return ft.error?(Ue.resume(),J(ft.error,null,Ue)):J(null,null,Ue)}if(Ue.on("close",function(){u("Request#%d %s: `res close` event emit, total size %d",C,E,$)}),Ue.on("error",function(){u("Request#%d %s: `res error` event emit, total size %d",C,E,$)}),Ue.on("aborted",function(){re=!0,u("Request#%d %s: `res aborted` event emit, total size %d",C,E,$)}),Ae){var ft=ve(Ue);if(ft.redirect){Ue.resume();return}return ft.error?(Ue.resume(),Ae.end(),J(ft.error,null,Ue)):(v.consumeWriteStream===!1?Ue.on("end",J.bind(null,null,null,Ue)):isNode010||isNode012?first([[Ae,"close"],[Ue,"aborted"]],function(Pt,it,He){u("Request#%d %s: writeStream or res %s event emitted",C,E,He),J(Ee||null,null,Ue)}):Ae.on("close",function(){u("Request#%d %s: writeStream close event emitted",C,E),J(Ee||null,null,Ue)}),Ue.pipe(Ae))}var jt=[];Ue.on("data",function(bt){u("Request#%d %s: `res data` event emit, size %d",C,E,bt.length),$+=bt.length,jt.push(bt)}),Ue.on("end",function(){var bt=g.concat(jt,$);if(u("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",C,E,$,Ue._dumped),Ee)return J(Ee,bt,Ue);var Pt=ve(Ue);if(Pt.error)return J(Pt.error,bt,Ue);if(Pt.redirect)return;_e(Ue,bt,function(it,He,Ge){if(it)return J(it,bt,Ue);if(!Ge&&c.indexOf(v.dataType)>=0){try{He=decodeBodyByCharset(He,Ue)}catch(Ie){return u("decodeBodyByCharset error: %s",Ie),J(null,He,Ue)}if(v.dataType==="json")if($===0)He=null;else{var Ce=parseJSON(He,H);Ce.error?it=Ce.error:He=Ce.data}}re&&u("Request#%d %s: Remote socket was terminated before `response.end()` was called",C,E),J(it,He,Ue)})})}var tt,dt;Array.isArray(v.timeout)?(tt=r(v.timeout[0]),dt=r(v.timeout[1])):tt=dt=r(v.timeout),u("ConnectTimeout: %d, ResponseTimeout: %d",tt,dt);function mt(){u("Connect timer ticking, timeout: %d",tt),ce=setTimeout(function(){ce=null,me===-1&&(me=-2);var Ue="Connect timeout for "+tt+"ms",ft="ConnectionTimeoutError";yt.socket||(ft="SocketAssignTimeoutError",Ue+=", working sockets is full"),Ee=new Error(Ue),Ee.name=ft,Ee.requestId=C,u("ConnectTimeout: Request#%d %s %s: %s, connected: %s",C,E,Ee.name,Ue,ue),Ye()},tt)}function vt(){u("Response timer ticking, timeout: %d",dt),be=setTimeout(function(){be=null;var Ue="Response timeout for "+dt+"ms",ft="ResponseTimeoutError";Ee=new Error(Ue),Ee.name=ft,Ee.requestId=C,u("ResponseTimeout: Request#%d %s %s: %s, connected: %s",C,E,Ee.name,Ue,ue),Ye()},dt)}var yt;D.mode=v.mode?v.mode:"";try{yt=N.request(D,Qe)}catch(Ue){return J(Ue)}typeof window=="undefined"?mt():yt.on("requestTimeout",function(){me===-1&&(me=-2);var Ue="Connect timeout for "+tt+"ms",ft="ConnectionTimeoutError";Ee=new Error(Ue),Ee.name=ft,Ee.requestId=C,Ye()});function Ye(){u("Request#%d %s abort, connected: %s",C,E,ue),yt.socket||(Ee.noSocket=!0,J(Ee)),yt.abort()}return se&&yt.on("finish",function(){se.requestSent=Date.now()-_}),yt.once("socket",function(Ue){se&&(se.queuing=Date.now()-_),isNode010&&Ue.socket&&(Ue=Ue.socket);var ft=Ue.readyState;if(ft==="opening"){Ue.once("lookup",function(jt,bt,Pt){u("Request#%d %s lookup: %s, %s, %s",C,E,jt,bt,Pt),se&&(se.dnslookup=Date.now()-_),bt&&(ae=bt)}),Ue.once("connect",function(){se&&(se.connected=Date.now()-_),te(),vt(),u("Request#%d %s new socket connected",C,E),ue=!0,ae||(ae=Ue.remoteAddress),Oe=Ue.remotePort});return}u("Request#%d %s reuse socket connected, readyState: %s",C,E,ft),ue=!0,le=!0,ae||(ae=Ue.remoteAddress),Oe=Ue.remotePort,te(),vt()}),yt.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",C,E,Ue.name,Ue.message),J(Ee||Ue)}),Ae&&Ae.once("error",function(Ue){Ue.message+=' (writeStream "error")',Ee=Ue,u("Request#%d %s `writeStream error` event emit, %s: %s",C,E,Ue.name,Ue.message),Ye()}),v.stream?(v.stream.pipe(yt),v.stream.once("error",function(Ue){Ue.message+=' (stream "error")',Ee=Ue,u("Request#%d %s `readStream error` event emit, %s: %s",C,E,Ue.name,Ue.message),Ye()})):yt.end(ee),yt.requestId=C,yt}}).call(this,k("_process"),k("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(k,z,o){"use strict";o.d(z,"a",function(){return m});var P=o("q1tI"),g=o("biw7"),T=o("fyJ8");function b(e){var f=e.className,a=e.index,u=e.children,r=e.colSpan,i=e.rowSpan,n=P.useContext(g.a),l=n.prefixCls,h=n.fixedInfoList,d=h[a];return P.createElement(T.a,Object.assign({className:f,index:a,component:"td",prefixCls:l,record:null,dataIndex:null,render:function(){return{children:u,props:{colSpan:r,rowSpan:i}}}},d))}function y(e){return P.createElement("tr",Object.assign({},e))}function x(e){var f=e.children,a=P.useContext(g.a),u=a.prefixCls;return P.createElement("tfoot",{className:"".concat(u,"-summary")},f)}var O=z.b=x,m={Cell:b,Row:y}},nEHx:function(k,z,o){"use strict";o.d(z,"a",function(){return P});var P;(function(g){g.DARK="dark",g.LIGHT="light",g.HIGH_CONTRAST="hc"})(P||(P={}))},nKGa:function(k,z,o){k.exports=o.p+"static/export_exercise-template.f7655c19.png"},ngQI:function(k,z,o){"use strict";o.d(z,"a",function(){return jl}),o.d(z,"b",function(){return Dl}),o.d(z,"c",function(){return Rl});var P=o("q1tI"),g=o.n(P),T=o("dI71"),b=o("wx14"),y=o("ANjH"),x=o("/MKj");function O(Y,Z){if(Y.length!==Z.length)return!1;for(var ie=0;ie<Y.length;ie++)if(Y[ie]!==Z[ie])return!1;return!0}function m(Y,Z){var ie=Object(P.useState)(function(){return{inputs:Z,result:Y()}})[0],ye=Object(P.useRef)(!0),Ne=Object(P.useRef)(ie),ke=ye.current||Boolean(Z&&Ne.current.inputs&&O(Z,Ne.current.inputs)),ze=ke?Ne.current:{inputs:Z,result:Y()};return Object(P.useEffect)(function(){ye.current=!1,Ne.current=ze},[ze]),ze.result}function e(Y,Z){return m(function(){return Y},Z)}var f=m,a=e,u=o("9R94"),r=function(Z){var ie=Z.top,ye=Z.right,Ne=Z.bottom,ke=Z.left,ze=ye-ke,Ve=Ne-ie,xt={top:ie,right:ye,bottom:Ne,left:ke,width:ze,height:Ve,x:ke,y:ie,center:{x:(ye+ke)/2,y:(Ne+ie)/2}};return xt},i=function(Z,ie){return{top:Z.top-ie.top,left:Z.left-ie.left,bottom:Z.bottom+ie.bottom,right:Z.right+ie.right}},n=function(Z,ie){return{top:Z.top+ie.top,left:Z.left+ie.left,bottom:Z.bottom-ie.bottom,right:Z.right-ie.right}},l=function(Z,ie){return{top:Z.top+ie.y,left:Z.left+ie.x,bottom:Z.bottom+ie.y,right:Z.right+ie.x}},h={top:0,right:0,bottom:0,left:0},d=function(Z){var ie=Z.borderBox,ye=Z.margin,Ne=ye===void 0?h:ye,ke=Z.border,ze=ke===void 0?h:ke,Ve=Z.padding,xt=Ve===void 0?h:Ve,Ut=r(i(ie,Ne)),Wt=r(n(ie,ze)),Tt=r(n(Wt,xt));return{marginBox:Ut,borderBox:r(ie),paddingBox:Wt,contentBox:Tt,margin:Ne,border:ze,padding:xt}},s=function(Z){var ie=Z.slice(0,-2),ye=Z.slice(-2);if(ye!=="px")return 0;var Ne=Number(ie);return isNaN(Ne)&&Object(u.a)(!1),Ne},c=function(){return{x:window.pageXOffset,y:window.pageYOffset}},w=function(Z,ie){var ye=Z.borderBox,Ne=Z.border,ke=Z.margin,ze=Z.padding,Ve=l(ye,ie);return d({borderBox:Ve,border:Ne,margin:ke,padding:ze})},E=function(Z,ie){return ie===void 0&&(ie=c()),w(Z,ie)},v=function(Z,ie){var ye={top:s(ie.marginTop),right:s(ie.marginRight),bottom:s(ie.marginBottom),left:s(ie.marginLeft)},Ne={top:s(ie.paddingTop),right:s(ie.paddingRight),bottom:s(ie.paddingBottom),left:s(ie.paddingLeft)},ke={top:s(ie.borderTopWidth),right:s(ie.borderRightWidth),bottom:s(ie.borderBottomWidth),left:s(ie.borderLeftWidth)};return d({borderBox:Z,margin:ye,padding:Ne,border:ke})},R=function(Z){var ie=Z.getBoundingClientRect(),ye=window.getComputedStyle(Z);return v(ie,ye)},M=Number.isNaN||function(Z){return typeof Z=="number"&&Z!==Z};function C(Y,Z){return Y===Z?!0:!!(M(Y)&&M(Z))}function S(Y,Z){if(Y.length!==Z.length)return!1;for(var ie=0;ie<Y.length;ie++)if(!C(Y[ie],Z[ie]))return!1;return!0}function _(Y,Z){Z===void 0&&(Z=S);var ie,ye=[],Ne,ke=!1;function ze(){for(var Ve=[],xt=0;xt<arguments.length;xt++)Ve[xt]=arguments[xt];return ke&&ie===this&&Z(Ve,ye)||(Ne=Y.apply(this,Ve),ke=!0,ie=this,ye=Ve),Ne}return ze}var A=_,U=function(Z){var ie=[],ye=null,Ne=function(){for(var ze=arguments.length,Ve=new Array(ze),xt=0;xt<ze;xt++)Ve[xt]=arguments[xt];if(ie=Ve,ye)return;ye=requestAnimationFrame(function(){ye=null,Z.apply(void 0,ie)})};return Ne.cancel=function(){if(!ye)return;cancelAnimationFrame(ye),ye=null},Ne},L=U,N=o("i8i4"),V=o.n(N),H=!0,D=/[ \t]{2,}/g,W=/^[ \t]*/gm,F=function(Z){return Z.replace(D," ").replace(W,"").trim()},I=function(Z){return F(`
|
|
|
%creact-beautiful-dnd
|
|
|
|
|
|
%c`+F(Z)+`
|
|
|
|
|
|
%c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
|
|
|
`)},K=function(Z){return[I(Z),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},ee="__react-beautiful-dnd-disable-dev-warnings";function he(Y,Z){var ie;if(H)return;if(typeof window!="undefined"&&window[ee])return;(ie=console)[Y].apply(ie,K(Z))}var de=he.bind(null,"warn"),Se=he.bind(null,"error");function Te(){}function ce(Y,Z){return Object(b.a)({},Y,{},Z)}function be(Y,Z,ie){var ye=Z.map(function(Ne){var ke=ce(ie,Ne.options);return Y.addEventListener(Ne.eventName,Ne.fn,ke),function(){Y.removeEventListener(Ne.eventName,Ne.fn,ke)}});return function(){ye.forEach(function(ke){ke()})}}var Ee=!0,ue="Invariant failed";function le(Y){this.message=Y}le.prototype.toString=function(){return this.message};function $(Y,Z){if(Y)return;throw Ee?new le(ue):new le(ue+": "+(Z||""))}var me=function(Y){Object(T.a)(Z,Y);function Z(){for(var ye,Ne=arguments.length,ke=new Array(Ne),ze=0;ze<Ne;ze++)ke[ze]=arguments[ze];return ye=Y.call.apply(Y,[this].concat(ke))||this,ye.callbacks=null,ye.unbind=Te,ye.onWindowError=function(Ve){var xt=ye.getCallbacks();xt.isDragging()&&xt.tryAbort();var Ut=Ve.error;Ut instanceof le&&Ve.preventDefault()},ye.getCallbacks=function(){if(!ye.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return ye.callbacks},ye.setCallbacks=function(Ve){ye.callbacks=Ve},ye}var ie=Z.prototype;return ie.componentDidMount=function(){this.unbind=be(window,[{eventName:"error",fn:this.onWindowError}])},ie.componentWillUnmount=function(){this.unbind()},ie.componentDidCatch=function(Ne){if(Ne instanceof le){this.setState({});return}throw Ne},ie.render=function(){return this.props.children(this.setCallbacks)},Z}(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
|
|
|
`,ae=function(Z){return Z+1},Oe=function(Z){return`
|
|
|
You have lifted an item in position `+ae(Z.source.index)+`
|
|
|
`},se=function(Z,ie){var ye=Z.droppableId===ie.droppableId,Ne=ae(Z.index),ke=ae(ie.index);return ye?`
|
|
|
You have moved the item from position `+Ne+`
|
|
|
to position `+ke+`
|
|
|
`:`
|
|
|
You have moved the item from position `+Ne+`
|
|
|
in list `+Z.droppableId+`
|
|
|
to list `+ie.droppableId+`
|
|
|
in position `+ke+`
|
|
|
`},te=function(Z,ie,ye){var Ne=ie.droppableId===ye.droppableId;return Ne?`
|
|
|
The item `+Z+`
|
|
|
has been combined with `+ye.draggableId:`
|
|
|
The item `+Z+`
|
|
|
in list `+ie.droppableId+`
|
|
|
has been combined with `+ye.draggableId+`
|
|
|
in list `+ye.droppableId+`
|
|
|
`},Q=function(Z){var ie=Z.destination;if(ie)return se(Z.source,ie);var ye=Z.combine;return ye?te(Z.draggableId,Z.source,ye):"You are over an area that cannot be dropped on"},J=function(Z){return`
|
|
|
The item has returned to its starting position
|
|
|
of `+ae(Z.index)+`
|
|
|
`},ve=function(Z){if(Z.reason==="CANCEL")return`
|
|
|
Movement cancelled.
|
|
|
`+J(Z.source)+`
|
|
|
`;var ie=Z.destination,ye=Z.combine;return ie?`
|
|
|
You have dropped the item.
|
|
|
`+se(Z.source,ie)+`
|
|
|
`:ye?`
|
|
|
You have dropped the item.
|
|
|
`+te(Z.draggableId,Z.source,ye)+`
|
|
|
`:`
|
|
|
The item has been dropped while not over a drop area.
|
|
|
`+J(Z.source)+`
|
|
|
`},_e={dragHandleUsageInstructions:re,onDragStart:Oe,onDragUpdate:Q,onDragEnd:ve},Ae={x:0,y:0},Qe=function(Z,ie){return{x:Z.x+ie.x,y:Z.y+ie.y}},tt=function(Z,ie){return{x:Z.x-ie.x,y:Z.y-ie.y}},dt=function(Z,ie){return Z.x===ie.x&&Z.y===ie.y},mt=function(Z){return{x:Z.x!==0?-Z.x:0,y:Z.y!==0?-Z.y:0}},vt=function(Z,ie,ye){var Ne;return ye===void 0&&(ye=0),Ne={},Ne[Z]=ie,Ne[Z==="x"?"y":"x"]=ye,Ne},yt=function(Z,ie){return Math.sqrt(Math.pow(ie.x-Z.x,2)+Math.pow(ie.y-Z.y,2))},Ye=function(Z,ie){return Math.min.apply(Math,ie.map(function(ye){return yt(Z,ye)}))},Ue=function(Z){return function(ie){return{x:Z(ie.x),y:Z(ie.y)}}},ft=function(Y,Z){var ie=r({top:Math.max(Z.top,Y.top),right:Math.min(Z.right,Y.right),bottom:Math.min(Z.bottom,Y.bottom),left:Math.max(Z.left,Y.left)});return ie.width<=0||ie.height<=0?null:ie},jt=function(Z,ie){return{top:Z.top+ie.y,left:Z.left+ie.x,bottom:Z.bottom+ie.y,right:Z.right+ie.x}},bt=function(Z){return[{x:Z.left,y:Z.top},{x:Z.right,y:Z.top},{x:Z.left,y:Z.bottom},{x:Z.right,y:Z.bottom}]},Pt={top:0,right:0,bottom:0,left:0},it=function(Z,ie){return ie?jt(Z,ie.scroll.diff.displacement):Z},He=function(Z,ie,ye){if(ye&&ye.increasedBy){var Ne;return Object(b.a)({},Z,(Ne={},Ne[ie.end]=Z[ie.end]+ye.increasedBy[ie.line],Ne))}return Z},Ge=function(Z,ie){return ie&&ie.shouldClipSubject?ft(ie.pageMarginBox,Z):r(Z)},Ce=function(Y){var Z=Y.page,ie=Y.withPlaceholder,ye=Y.axis,Ne=Y.frame,ke=it(Z.marginBox,Ne),ze=He(ke,ye,ie),Ve=Ge(ze,Ne);return{page:Z,withPlaceholder:ie,active:Ve}},Ie=function(Y,Z){Y.frame||$(!1);var ie=Y.frame,ye=tt(Z,ie.scroll.initial),Ne=mt(ye),ke=Object(b.a)({},ie,{scroll:{initial:ie.scroll.initial,current:Z,diff:{value:ye,displacement:Ne},max:ie.scroll.max}}),ze=Ce({page:Y.subject.page,withPlaceholder:Y.subject.withPlaceholder,axis:Y.axis,frame:ke}),Ve=Object(b.a)({},Y,{frame:ke,subject:ze});return Ve};function Fe(Y){return Number.isInteger?Number.isInteger(Y):typeof Y=="number"&&isFinite(Y)&&Math.floor(Y)===Y}function Be(Y){return Object.values?Object.values(Y):Object.keys(Y).map(function(Z){return Y[Z]})}function We(Y,Z){if(Y.findIndex)return Y.findIndex(Z);for(var ie=0;ie<Y.length;ie++)if(Z(Y[ie]))return ie;return-1}function st(Y,Z){if(Y.find)return Y.find(Z);var ie=We(Y,Z);return ie!==-1?Y[ie]:void 0}function Dt(Y){return Array.prototype.slice.call(Y)}var Ht=A(function(Y){return Y.reduce(function(Z,ie){return Z[ie.descriptor.id]=ie,Z},{})}),rn=A(function(Y){return Y.reduce(function(Z,ie){return Z[ie.descriptor.id]=ie,Z},{})}),Bt=A(function(Y){return Be(Y)}),Ct=A(function(Y){return Be(Y)}),Ke=A(function(Y,Z){var ie=Ct(Z).filter(function(ye){return Y===ye.descriptor.droppableId}).sort(function(ye,Ne){return ye.descriptor.index-Ne.descriptor.index});return ie});function et(Y){return Y.at&&Y.at.type==="REORDER"?Y.at.destination:null}function at(Y){return Y.at&&Y.at.type==="COMBINE"?Y.at.combine:null}var Pe=A(function(Y,Z){return Z.filter(function(ie){return ie.descriptor.id!==Y.descriptor.id})}),Xe=function(Y){var Z=Y.isMovingForward,ie=Y.draggable,ye=Y.destination,Ne=Y.insideDestination,ke=Y.previousImpact;if(!ye.isCombineEnabled)return null;var ze=et(ke);if(!ze)return null;function Ve(ur){var gr={type:"COMBINE",combine:{draggableId:ur,droppableId:ye.descriptor.id}};return Object(b.a)({},ke,{at:gr})}var xt=ke.displaced.all,Ut=xt.length?xt[0]:null;if(Z)return Ut?Ve(Ut):null;var Wt=Pe(ie,Ne);if(!Ut){if(!Wt.length)return null;var Tt=Wt[Wt.length-1];return Ve(Tt.descriptor.id)}var St=We(Wt,function(ur){return ur.descriptor.id===Ut});St!==-1||$(!1);var kt=St-1;if(kt<0)return null;var hn=Wt[kt];return Ve(hn.descriptor.id)},ht=function(Y,Z){return Y.descriptor.droppableId===Z.descriptor.id},Et={point:Ae,value:0},Ot={invisible:{},visible:{},all:[]},Mt={displaced:Ot,displacedBy:Et,at:null},lt=function(Y,Z){return function(ie){return Y<=ie&&ie<=Z}},Ft=function(Y){var Z=lt(Y.top,Y.bottom),ie=lt(Y.left,Y.right);return function(ye){var Ne=Z(ye.top)&&Z(ye.bottom)&&ie(ye.left)&&ie(ye.right);if(Ne)return!0;var ke=Z(ye.top)||Z(ye.bottom),ze=ie(ye.left)||ie(ye.right),Ve=ke&&ze;if(Ve)return!0;var xt=ye.top<Y.top&&ye.bottom>Y.bottom,Ut=ye.left<Y.left&&ye.right>Y.right,Wt=xt&&Ut;if(Wt)return!0;var Tt=xt&&ze||Ut&&ke;return Tt}},Lt=function(Y){var Z=lt(Y.top,Y.bottom),ie=lt(Y.left,Y.right);return function(ye){var Ne=Z(ye.top)&&Z(ye.bottom)&&ie(ye.left)&&ie(ye.right);return Ne}},on={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},mn={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Hn=function(Y){return function(Z){var ie=lt(Z.top,Z.bottom),ye=lt(Z.left,Z.right);return function(Ne){return Y===on?ie(Ne.top)&&ie(Ne.bottom):ye(Ne.left)&&ye(Ne.right)}}},Xn=function(Z,ie){var ye=ie.frame?ie.frame.scroll.diff.displacement:Ae;return jt(Z,ye)},Fn=function(Z,ie,ye){return ie.subject.active?ye(ie.subject.active)(Z):!1},xn=function(Z,ie,ye){return ye(ie)(Z)},fr=function(Z){var ie=Z.target,ye=Z.destination,Ne=Z.viewport,ke=Z.withDroppableDisplacement,ze=Z.isVisibleThroughFrameFn,Ve=ke?Xn(ie,ye):ie;return Fn(Ve,ye,ze)&&xn(Ve,Ne,ze)},Yn=function(Z){return fr(Object(b.a)({},Z,{isVisibleThroughFrameFn:Ft}))},ar=function(Z){return fr(Object(b.a)({},Z,{isVisibleThroughFrameFn:Lt}))},nr=function(Z){return fr(Object(b.a)({},Z,{isVisibleThroughFrameFn:Hn(Z.destination.axis)}))},Rr=function(Z,ie,ye){if(typeof ye=="boolean")return ye;if(!ie)return!0;var Ne=ie.invisible,ke=ie.visible;if(Ne[Z])return!1;var ze=ke[Z];return ze?ze.shouldAnimate:!0};function pr(Y,Z){var ie=Y.page.marginBox,ye={top:Z.point.y,right:0,bottom:0,left:Z.point.x};return r(i(ie,ye))}function sn(Y){var Z=Y.afterDragging,ie=Y.destination,ye=Y.displacedBy,Ne=Y.viewport,ke=Y.forceShouldAnimate,ze=Y.last;return Z.reduce(function(xt,Ut){var Wt=pr(Ut,ye),Tt=Ut.descriptor.id;xt.all.push(Tt);var St=Yn({target:Wt,destination:ie,viewport:Ne,withDroppableDisplacement:!0});if(!St)return xt.invisible[Ut.descriptor.id]=!0,xt;var kt=Rr(Tt,ze,ke),hn={draggableId:Tt,shouldAnimate:kt};return xt.visible[Tt]=hn,xt},{all:[],visible:{},invisible:{}})}function qt(Y,Z){if(!Y.length)return 0;var ie=Y[Y.length-1].descriptor.index;return Z.inHomeList?ie:ie+1}function On(Y){var Z=Y.insideDestination,ie=Y.inHomeList,ye=Y.displacedBy,Ne=Y.destination,ke=qt(Z,{inHomeList:ie});return{displaced:Ot,displacedBy:ye,at:{type:"REORDER",destination:{droppableId:Ne.descriptor.id,index:ke}}}}function Fr(Y){var Z=Y.draggable,ie=Y.insideDestination,ye=Y.destination,Ne=Y.viewport,ke=Y.displacedBy,ze=Y.last,Ve=Y.index,xt=Y.forceShouldAnimate,Ut=ht(Z,ye);if(Ve==null)return On({insideDestination:ie,inHomeList:Ut,displacedBy:ke,destination:ye});var Wt=st(ie,function(ur){return ur.descriptor.index===Ve});if(!Wt)return On({insideDestination:ie,inHomeList:Ut,displacedBy:ke,destination:ye});var Tt=Pe(Z,ie),St=ie.indexOf(Wt),kt=Tt.slice(St),hn=sn({afterDragging:kt,destination:ye,displacedBy:ke,last:ze,viewport:Ne.frame,forceShouldAnimate:xt});return{displaced:hn,displacedBy:ke,at:{type:"REORDER",destination:{droppableId:ye.descriptor.id,index:Ve}}}}function Or(Y,Z){return Boolean(Z.effected[Y])}var xr=function(Y){var Z=Y.isMovingForward,ie=Y.destination,ye=Y.draggables,Ne=Y.combine,ke=Y.afterCritical;if(!ie.isCombineEnabled)return null;var ze=Ne.draggableId,Ve=ye[ze],xt=Ve.descriptor.index,Ut=Or(ze,ke);return Ut?Z?xt:xt-1:Z?xt+1:xt},dr=function(Y){var Z=Y.isMovingForward,ie=Y.isInHomeList,ye=Y.insideDestination,Ne=Y.location;if(!ye.length)return null;var ke=Ne.index,ze=Z?ke+1:ke-1,Ve=ye[0].descriptor.index,xt=ye[ye.length-1].descriptor.index,Ut=ie?xt:xt+1;return ze<Ve||ze>Ut?null:ze},pe=function(Y){var Z=Y.isMovingForward,ie=Y.isInHomeList,ye=Y.draggable,Ne=Y.draggables,ke=Y.destination,ze=Y.insideDestination,Ve=Y.previousImpact,xt=Y.viewport,Ut=Y.afterCritical,Wt=Ve.at;if(Wt||$(!1),Wt.type==="REORDER"){var Tt=dr({isMovingForward:Z,isInHomeList:ie,location:Wt.destination,insideDestination:ze});return Tt==null?null:Fr({draggable:ye,insideDestination:ze,destination:ke,viewport:xt,last:Ve.displaced,displacedBy:Ve.displacedBy,index:Tt})}var St=xr({isMovingForward:Z,destination:ke,displaced:Ve.displaced,draggables:Ne,combine:Wt.combine,afterCritical:Ut});return St==null?null:Fr({draggable:ye,insideDestination:ze,destination:ke,viewport:xt,last:Ve.displaced,displacedBy:Ve.displacedBy,index:St})},X=function(Y){var Z=Y.displaced,ie=Y.afterCritical,ye=Y.combineWith,Ne=Y.displacedBy,ke=Boolean(Z.visible[ye]||Z.invisible[ye]);return Or(ye,ie)?ke?Ae:mt(Ne.point):ke?Ne.point:Ae},q=function(Y){var Z=Y.afterCritical,ie=Y.impact,ye=Y.draggables,Ne=at(ie);Ne||$(!1);var ke=Ne.draggableId,ze=ye[ke].page.borderBox.center,Ve=X({displaced:ie.displaced,afterCritical:Z,combineWith:ke,displacedBy:ie.displacedBy});return Qe(ze,Ve)},oe=function(Z,ie){return ie.margin[Z.start]+ie.borderBox[Z.size]/2},De=function(Z,ie){return ie.margin[Z.end]+ie.borderBox[Z.size]/2},fe=function(Z,ie,ye){return ie[Z.crossAxisStart]+ye.margin[Z.crossAxisStart]+ye.borderBox[Z.crossAxisSize]/2},ot=function(Z){var ie=Z.axis,ye=Z.moveRelativeTo,Ne=Z.isMoving;return vt(ie.line,ye.marginBox[ie.end]+oe(ie,Ne),fe(ie,ye.marginBox,Ne))},Qt=function(Z){var ie=Z.axis,ye=Z.moveRelativeTo,Ne=Z.isMoving;return vt(ie.line,ye.marginBox[ie.start]-De(ie,Ne),fe(ie,ye.marginBox,Ne))},Mn=function(Z){var ie=Z.axis,ye=Z.moveInto,Ne=Z.isMoving;return vt(ie.line,ye.contentBox[ie.start]+oe(ie,Ne),fe(ie,ye.contentBox,Ne))},Vn=function(Y){var Z=Y.impact,ie=Y.draggable,ye=Y.draggables,Ne=Y.droppable,ke=Y.afterCritical,ze=Ke(Ne.descriptor.id,ye),Ve=ie.page,xt=Ne.axis;if(!ze.length)return Mn({axis:xt,moveInto:Ne.page,isMoving:Ve});var Ut=Z.displaced,Wt=Z.displacedBy,Tt=Ut.all[0];if(Tt){var St=ye[Tt];if(Or(Tt,ke))return Qt({axis:xt,moveRelativeTo:St.page,isMoving:Ve});var kt=w(St.page,Wt.point);return Qt({axis:xt,moveRelativeTo:kt,isMoving:Ve})}var hn=ze[ze.length-1];if(hn.descriptor.id===ie.descriptor.id)return Ve.borderBox.center;if(Or(hn.descriptor.id,ke)){var ur=w(hn.page,mt(ke.displacedBy.point));return ot({axis:xt,moveRelativeTo:ur,isMoving:Ve})}return ot({axis:xt,moveRelativeTo:hn.page,isMoving:Ve})},$t=function(Y,Z){var ie=Y.frame;return ie?Qe(Z,ie.scroll.diff.displacement):Z},gn=function(Z){var ie=Z.impact,ye=Z.draggable,Ne=Z.droppable,ke=Z.draggables,ze=Z.afterCritical,Ve=ye.page.borderBox.center,xt=ie.at;return Ne&&xt?xt.type==="REORDER"?Vn({impact:ie,draggable:ye,draggables:ke,droppable:Ne,afterCritical:ze}):q({impact:ie,draggables:ke,afterCritical:ze}):Ve},pn=function(Y){var Z=gn(Y),ie=Y.droppable,ye=ie?$t(ie,Z):Z;return ye},Ar=function(Y,Z){var ie=tt(Z,Y.scroll.initial),ye=mt(ie),Ne=r({top:Z.y,bottom:Z.y+Y.frame.height,left:Z.x,right:Z.x+Y.frame.width}),ke={frame:Ne,scroll:{initial:Y.scroll.initial,max:Y.scroll.max,current:Z,diff:{value:ie,displacement:ye}}};return ke};function ra(Y,Z){return Y.map(function(ie){return Z[ie]})}function oa(Y,Z){for(var ie=0;ie<Z.length;ie++){var ye=Z[ie].visible[Y];if(ye)return ye}return null}var ir=function(Y){var Z=Y.impact,ie=Y.viewport,ye=Y.destination,Ne=Y.draggables,ke=Y.maxScrollChange,ze=Ar(ie,Qe(ie.scroll.current,ke)),Ve=ye.frame?Ie(ye,Qe(ye.frame.scroll.current,ke)):ye,xt=Z.displaced,Ut=sn({afterDragging:ra(xt.all,Ne),destination:ye,displacedBy:Z.displacedBy,viewport:ze.frame,last:xt,forceShouldAnimate:!1}),Wt=sn({afterDragging:ra(xt.all,Ne),destination:Ve,displacedBy:Z.displacedBy,viewport:ie.frame,last:xt,forceShouldAnimate:!1}),Tt={},St={},kt=[xt,Ut,Wt];xt.all.forEach(function(ur){var gr=oa(ur,kt);if(gr){St[ur]=gr;return}Tt[ur]=!0});var hn=Object(b.a)({},Z,{displaced:{all:xt.all,invisible:Tt,visible:St}});return hn},Ra=function(Y,Z){return Qe(Y.scroll.diff.displacement,Z)},La=function(Y){var Z=Y.pageBorderBoxCenter,ie=Y.draggable,ye=Y.viewport,Ne=Ra(ye,Z),ke=tt(Ne,ie.page.borderBox.center);return Qe(ie.client.borderBox.center,ke)},ca=function(Y){var Z=Y.draggable,ie=Y.destination,ye=Y.newPageBorderBoxCenter,Ne=Y.viewport,ke=Y.withDroppableDisplacement,ze=Y.onlyOnMainAxis,Ve=ze===void 0?!1:ze,xt=tt(ye,Z.page.borderBox.center),Ut=jt(Z.page.borderBox,xt),Wt={target:Ut,destination:ie,withDroppableDisplacement:ke,viewport:Ne};return Ve?nr(Wt):ar(Wt)},Ka=function(Y){var Z=Y.isMovingForward,ie=Y.draggable,ye=Y.destination,Ne=Y.draggables,ke=Y.previousImpact,ze=Y.viewport,Ve=Y.previousPageBorderBoxCenter,xt=Y.previousClientSelection,Ut=Y.afterCritical;if(!ye.isEnabled)return null;var Wt=Ke(ye.descriptor.id,Ne),Tt=ht(ie,ye),St=Xe({isMovingForward:Z,draggable:ie,destination:ye,insideDestination:Wt,previousImpact:ke})||pe({isMovingForward:Z,isInHomeList:Tt,draggable:ie,draggables:Ne,destination:ye,insideDestination:Wt,previousImpact:ke,viewport:ze,afterCritical:Ut});if(!St)return null;var kt=pn({impact:St,draggable:ie,droppable:ye,draggables:Ne,afterCritical:Ut}),hn=ca({draggable:ie,destination:ye,newPageBorderBoxCenter:kt,viewport:ze.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(hn){var ur=La({pageBorderBoxCenter:kt,draggable:ie,viewport:ze});return{clientSelection:ur,impact:St,scrollJumpRequest:null}}var gr=tt(kt,Ve),kr=ir({impact:St,viewport:ze,destination:ye,draggables:Ne,maxScrollChange:gr});return{clientSelection:xt,impact:kr,scrollJumpRequest:gr}},wa=function(Z){var ie=Z.subject.active;return ie||$(!1),ie},Ja=function(Y){var Z=Y.isMovingForward,ie=Y.pageBorderBoxCenter,ye=Y.source,Ne=Y.droppables,ke=Y.viewport,ze=ye.subject.active;if(!ze)return null;var Ve=ye.axis,xt=lt(ze[Ve.start],ze[Ve.end]),Ut=Bt(Ne).filter(function(Tt){return Tt!==ye}).filter(function(Tt){return Tt.isEnabled}).filter(function(Tt){return Boolean(Tt.subject.active)}).filter(function(Tt){return Ft(ke.frame)(wa(Tt))}).filter(function(Tt){var St=wa(Tt);return Z?ze[Ve.crossAxisEnd]<St[Ve.crossAxisEnd]:St[Ve.crossAxisStart]<ze[Ve.crossAxisStart]}).filter(function(Tt){var St=wa(Tt),kt=lt(St[Ve.start],St[Ve.end]);return xt(St[Ve.start])||xt(St[Ve.end])||kt(ze[Ve.start])||kt(ze[Ve.end])}).sort(function(Tt,St){var kt=wa(Tt)[Ve.crossAxisStart],hn=wa(St)[Ve.crossAxisStart];return Z?kt-hn:hn-kt}).filter(function(Tt,St,kt){return wa(Tt)[Ve.crossAxisStart]===wa(kt[0])[Ve.crossAxisStart]});if(!Ut.length)return null;if(Ut.length===1)return Ut[0];var Wt=Ut.filter(function(Tt){var St=lt(wa(Tt)[Ve.start],wa(Tt)[Ve.end]);return St(ie[Ve.line])});return Wt.length===1?Wt[0]:Wt.length>1?Wt.sort(function(Tt,St){return wa(Tt)[Ve.start]-wa(St)[Ve.start]})[0]:Ut.sort(function(Tt,St){var kt=Ye(ie,bt(wa(Tt))),hn=Ye(ie,bt(wa(St)));return kt!==hn?kt-hn:wa(Tt)[Ve.start]-wa(St)[Ve.start]})[0]},ja=function(Z,ie){var ye=Z.page.borderBox.center;return Or(Z.descriptor.id,ie)?tt(ye,ie.displacedBy.point):ye},li=function(Z,ie){var ye=Z.page.borderBox;return Or(Z.descriptor.id,ie)?jt(ye,mt(ie.displacedBy.point)):ye},oi=function(Y){var Z=Y.pageBorderBoxCenter,ie=Y.viewport,ye=Y.destination,Ne=Y.insideDestination,ke=Y.afterCritical,ze=Ne.filter(function(Ve){return ar({target:li(Ve,ke),destination:ye,viewport:ie.frame,withDroppableDisplacement:!0})}).sort(function(Ve,xt){var Ut=yt(Z,$t(ye,ja(Ve,ke))),Wt=yt(Z,$t(ye,ja(xt,ke)));return Ut<Wt?-1:Wt<Ut?1:Ve.descriptor.index-xt.descriptor.index});return ze[0]||null},fa=A(function(Z,ie){var ye=ie[Z.line];return{value:ye,point:vt(Z.line,ye)}}),ma=function(Z,ie,ye){var Ne=Z.axis;if(Z.descriptor.mode==="virtual")return vt(Ne.line,ie[Ne.line]);var ke=Z.subject.page.contentBox[Ne.size],ze=Ke(Z.descriptor.id,ye),Ve=ze.reduce(function(Wt,Tt){return Wt+Tt.client.marginBox[Ne.size]},0),xt=Ve+ie[Ne.line],Ut=xt-ke;return Ut<=0?null:vt(Ne.line,Ut)},la=function(Z,ie){return Object(b.a)({},Z,{scroll:Object(b.a)({},Z.scroll,{max:ie})})},xe=function(Z,ie,ye){var Ne=Z.frame;ht(ie,Z)&&$(!1),Z.subject.withPlaceholder&&$(!1);var ke=fa(Z.axis,ie.displaceBy).point,ze=ma(Z,ke,ye),Ve={placeholderSize:ke,increasedBy:ze,oldFrameMaxScroll:Z.frame?Z.frame.scroll.max:null};if(!Ne){var xt=Ce({page:Z.subject.page,withPlaceholder:Ve,axis:Z.axis,frame:Z.frame});return Object(b.a)({},Z,{subject:xt})}var Ut=ze?Qe(Ne.scroll.max,ze):Ne.scroll.max,Wt=la(Ne,Ut),Tt=Ce({page:Z.subject.page,withPlaceholder:Ve,axis:Z.axis,frame:Wt});return Object(b.a)({},Z,{subject:Tt,frame:Wt})},ut=function(Z){var ie=Z.subject.withPlaceholder;ie||$(!1);var ye=Z.frame;if(!ye){var Ne=Ce({page:Z.subject.page,axis:Z.axis,frame:null,withPlaceholder:null});return Object(b.a)({},Z,{subject:Ne})}var ke=ie.oldFrameMaxScroll;ke||$(!1);var ze=la(ye,ke),Ve=Ce({page:Z.subject.page,axis:Z.axis,frame:ze,withPlaceholder:null});return Object(b.a)({},Z,{subject:Ve,frame:ze})},Rt=function(Y){var Z=Y.previousPageBorderBoxCenter,ie=Y.moveRelativeTo,ye=Y.insideDestination,Ne=Y.draggable,ke=Y.draggables,ze=Y.destination,Ve=Y.viewport,xt=Y.afterCritical;if(!ie){if(ye.length)return null;var Ut={displaced:Ot,displacedBy:Et,at:{type:"REORDER",destination:{droppableId:ze.descriptor.id,index:0}}},Wt=pn({impact:Ut,draggable:Ne,droppable:ze,draggables:ke,afterCritical:xt}),Tt=ht(Ne,ze)?ze:xe(ze,Ne,ke),St=ca({draggable:Ne,destination:Tt,newPageBorderBoxCenter:Wt,viewport:Ve.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return St?Ut:null}var kt=Boolean(Z[ze.axis.line]<=ie.page.borderBox.center[ze.axis.line]),hn=function(){var gr=ie.descriptor.index;return ie.descriptor.id===Ne.descriptor.id||kt?gr:gr+1}(),ur=fa(ze.axis,Ne.displaceBy);return Fr({draggable:Ne,insideDestination:ye,destination:ze,viewport:Ve,displacedBy:ur,last:Ot,index:hn})},wt=function(Y){var Z=Y.isMovingForward,ie=Y.previousPageBorderBoxCenter,ye=Y.draggable,Ne=Y.isOver,ke=Y.draggables,ze=Y.droppables,Ve=Y.viewport,xt=Y.afterCritical,Ut=Ja({isMovingForward:Z,pageBorderBoxCenter:ie,source:Ne,droppables:ze,viewport:Ve});if(!Ut)return null;var Wt=Ke(Ut.descriptor.id,ke),Tt=oi({pageBorderBoxCenter:ie,viewport:Ve,destination:Ut,insideDestination:Wt,afterCritical:xt}),St=Rt({previousPageBorderBoxCenter:ie,destination:Ut,draggable:ye,draggables:ke,moveRelativeTo:Tt,insideDestination:Wt,viewport:Ve,afterCritical:xt});if(!St)return null;var kt=pn({impact:St,draggable:ye,droppable:Ut,draggables:ke,afterCritical:xt}),hn=La({pageBorderBoxCenter:kt,draggable:ye,viewport:Ve});return{clientSelection:hn,impact:St,scrollJumpRequest:null}},Kt=function(Y){var Z=Y.at;return Z?Z.type==="REORDER"?Z.destination.droppableId:Z.combine.droppableId:null},Nt=function(Z,ie){var ye=Kt(Z);return ye?ie[ye]:null},Xt=function(Y){var Z=Y.state,ie=Y.type,ye=Nt(Z.impact,Z.dimensions.droppables),Ne=Boolean(ye),ke=Z.dimensions.droppables[Z.critical.droppable.id],ze=ye||ke,Ve=ze.axis.direction,xt=Ve==="vertical"&&(ie==="MOVE_UP"||ie==="MOVE_DOWN")||Ve==="horizontal"&&(ie==="MOVE_LEFT"||ie==="MOVE_RIGHT");if(xt&&!Ne)return null;var Ut=ie==="MOVE_DOWN"||ie==="MOVE_RIGHT",Wt=Z.dimensions.draggables[Z.critical.draggable.id],Tt=Z.current.page.borderBoxCenter,St=Z.dimensions,kt=St.draggables,hn=St.droppables;return xt?Ka({isMovingForward:Ut,previousPageBorderBoxCenter:Tt,draggable:Wt,destination:ze,draggables:kt,viewport:Z.viewport,previousClientSelection:Z.current.client.selection,previousImpact:Z.impact,afterCritical:Z.afterCritical}):wt({isMovingForward:Ut,previousPageBorderBoxCenter:Tt,draggable:Wt,isOver:ze,draggables:kt,droppables:hn,viewport:Z.viewport,afterCritical:Z.afterCritical})};function nn(Y){return Y.phase==="DRAGGING"||Y.phase==="COLLECTING"}function yn(Y){var Z=lt(Y.top,Y.bottom),ie=lt(Y.left,Y.right);return function(Ne){return Z(Ne.y)&&ie(Ne.x)}}function vn(Y,Z){return Y.left<Z.right&&Y.right>Z.left&&Y.top<Z.bottom&&Y.bottom>Z.top}function Nn(Y){var Z=Y.pageBorderBox,ie=Y.draggable,ye=Y.candidates,Ne=ie.page.borderBox.center,ke=ye.map(function(ze){var Ve=ze.axis,xt=vt(ze.axis.line,Z.center[Ve.line],ze.page.borderBox.center[Ve.crossAxisLine]);return{id:ze.descriptor.id,distance:yt(Ne,xt)}}).sort(function(ze,Ve){return Ve.distance-ze.distance});return ke[0]?ke[0].id:null}function An(Y){var Z=Y.pageBorderBox,ie=Y.draggable,ye=Y.droppables,Ne=Bt(ye).filter(function(ke){if(!ke.isEnabled)return!1;var ze=ke.subject.active;if(!ze)return!1;if(!vn(Z,ze))return!1;if(yn(ze)(Z.center))return!0;var Ve=ke.axis,xt=ze.center[Ve.crossAxisLine],Ut=Z[Ve.crossAxisStart],Wt=Z[Ve.crossAxisEnd],Tt=lt(ze[Ve.crossAxisStart],ze[Ve.crossAxisEnd]),St=Tt(Ut),kt=Tt(Wt);return!St&&!kt?!0:St?Ut<xt:Wt>xt});return Ne.length?Ne.length===1?Ne[0].descriptor.id:Nn({pageBorderBox:Z,draggable:ie,candidates:Ne}):null}var an=function(Z,ie){return r(jt(Z,ie))},Pn=function(Y,Z){var ie=Y.frame;return ie?an(Z,ie.scroll.diff.value):Z};function bn(Y){var Z=Y.displaced,ie=Y.id;return Boolean(Z.visible[ie]||Z.invisible[ie])}function kn(Y){var Z=Y.draggable,ie=Y.closest,ye=Y.inHomeList;return ie?ye&&ie.descriptor.index>Z.descriptor.index?ie.descriptor.index-1:ie.descriptor.index:null}var Rn=function(Y){var Z=Y.pageBorderBoxWithDroppableScroll,ie=Y.draggable,ye=Y.destination,Ne=Y.insideDestination,ke=Y.last,ze=Y.viewport,Ve=Y.afterCritical,xt=ye.axis,Ut=fa(ye.axis,ie.displaceBy),Wt=Ut.value,Tt=Z[xt.start],St=Z[xt.end],kt=Pe(ie,Ne),hn=st(kt,function(gr){var kr=gr.descriptor.id,Gr=gr.page.borderBox.center[xt.line],na=Or(kr,Ve),Hr=bn({displaced:ke,id:kr});return na?Hr?St<=Gr:Tt<Gr-Wt:Hr?St<=Gr+Wt:Tt<Gr}),ur=kn({draggable:ie,closest:hn,inHomeList:ht(ie,ye)});return Fr({draggable:ie,insideDestination:Ne,destination:ye,viewport:ze,last:ke,displacedBy:Ut,index:ur})},Jn=4,mr=function(Y){var Z=Y.draggable,ie=Y.pageBorderBoxWithDroppableScroll,ye=Y.previousImpact,Ne=Y.destination,ke=Y.insideDestination,ze=Y.afterCritical;if(!Ne.isCombineEnabled)return null;var Ve=Ne.axis,xt=fa(Ne.axis,Z.displaceBy),Ut=xt.value,Wt=ie[Ve.start],Tt=ie[Ve.end],St=Pe(Z,ke),kt=st(St,function(ur){var gr=ur.descriptor.id,kr=ur.page.borderBox,Gr=kr[Ve.size],na=Gr/Jn,Hr=Or(gr,ze),Ia=bn({displaced:ye.displaced,id:gr});return Hr?Ia?Tt>kr[Ve.start]+na&&Tt<kr[Ve.end]-na:Wt>kr[Ve.start]-Ut+na&&Wt<kr[Ve.end]-Ut-na:Ia?Tt>kr[Ve.start]+Ut+na&&Tt<kr[Ve.end]+Ut-na:Wt>kr[Ve.start]+na&&Wt<kr[Ve.end]-na});if(!kt)return null;var hn={displacedBy:xt,displaced:ye.displaced,at:{type:"COMBINE",combine:{draggableId:kt.descriptor.id,droppableId:Ne.descriptor.id}}};return hn},Br=function(Y){var Z=Y.pageOffset,ie=Y.draggable,ye=Y.draggables,Ne=Y.droppables,ke=Y.previousImpact,ze=Y.viewport,Ve=Y.afterCritical,xt=an(ie.page.borderBox,Z),Ut=An({pageBorderBox:xt,draggable:ie,droppables:Ne});if(!Ut)return Mt;var Wt=Ne[Ut],Tt=Ke(Wt.descriptor.id,ye),St=Pn(Wt,xt);return mr({pageBorderBoxWithDroppableScroll:St,draggable:ie,previousImpact:ke,destination:Wt,insideDestination:Tt,afterCritical:Ve})||Rn({pageBorderBoxWithDroppableScroll:St,draggable:ie,destination:Wt,insideDestination:Tt,last:ke.displaced,viewport:ze,afterCritical:Ve})},Sn=function(Y,Z){var ie;return Object(b.a)({},Y,(ie={},ie[Z.descriptor.id]=Z,ie))},Yt=function(Z){var ie=Z.previousImpact,ye=Z.impact,Ne=Z.droppables,ke=Kt(ie),ze=Kt(ye);if(!ke)return Ne;if(ke===ze)return Ne;var Ve=Ne[ke];if(!Ve.subject.withPlaceholder)return Ne;var xt=ut(Ve);return Sn(Ne,xt)},dn=function(Y){var Z=Y.draggable,ie=Y.draggables,ye=Y.droppables,Ne=Y.previousImpact,ke=Y.impact,ze=Yt({previousImpact:Ne,impact:ke,droppables:ye}),Ve=Kt(ke);if(!Ve)return ze;var xt=ye[Ve];if(ht(Z,xt))return ze;if(xt.subject.withPlaceholder)return ze;var Ut=xe(xt,Z,ie);return Sn(ze,Ut)},Dn=function(Y){var Z=Y.state,ie=Y.clientSelection,ye=Y.dimensions,Ne=Y.viewport,ke=Y.impact,ze=Y.scrollJumpRequest,Ve=Ne||Z.viewport,xt=ye||Z.dimensions,Ut=ie||Z.current.client.selection,Wt=tt(Ut,Z.initial.client.selection),Tt={offset:Wt,selection:Ut,borderBoxCenter:Qe(Z.initial.client.borderBoxCenter,Wt)},St={selection:Qe(Tt.selection,Ve.scroll.current),borderBoxCenter:Qe(Tt.borderBoxCenter,Ve.scroll.current),offset:Qe(Tt.offset,Ve.scroll.diff.value)},kt={client:Tt,page:St};if(Z.phase==="COLLECTING")return Object(b.a)({phase:"COLLECTING"},Z,{dimensions:xt,viewport:Ve,current:kt});var hn=xt.draggables[Z.critical.draggable.id],ur=ke||Br({pageOffset:St.offset,draggable:hn,draggables:xt.draggables,droppables:xt.droppables,previousImpact:Z.impact,viewport:Ve,afterCritical:Z.afterCritical}),gr=dn({draggable:hn,impact:ur,previousImpact:Z.impact,draggables:xt.draggables,droppables:xt.droppables}),kr=Object(b.a)({},Z,{current:kt,dimensions:{draggables:xt.draggables,droppables:gr},impact:ur,viewport:Ve,scrollJumpRequest:ze||null,forceShouldAnimate:ze?!1:null});return kr};function en(Y,Z){return Y.map(function(ie){return Z[ie]})}var wn=function(Y){var Z=Y.impact,ie=Y.viewport,ye=Y.draggables,Ne=Y.destination,ke=Y.forceShouldAnimate,ze=Z.displaced,Ve=en(ze.all,ye),xt=sn({afterDragging:Ve,destination:Ne,displacedBy:Z.displacedBy,viewport:ie.frame,forceShouldAnimate:ke,last:ze});return Object(b.a)({},Z,{displaced:xt})},_n=function(Y){var Z=Y.impact,ie=Y.draggable,ye=Y.droppable,Ne=Y.draggables,ke=Y.viewport,ze=Y.afterCritical,Ve=pn({impact:Z,draggable:ie,draggables:Ne,droppable:ye,afterCritical:ze});return La({pageBorderBoxCenter:Ve,draggable:ie,viewport:ke})},In=function(Y){var Z=Y.state,ie=Y.dimensions,ye=Y.viewport;Z.movementMode==="SNAP"||$(!1);var Ne=Z.impact,ke=ye||Z.viewport,ze=ie||Z.dimensions,Ve=ze.draggables,xt=ze.droppables,Ut=Ve[Z.critical.draggable.id],Wt=Kt(Ne);Wt||$(!1);var Tt=xt[Wt],St=wn({impact:Ne,viewport:ke,destination:Tt,draggables:Ve}),kt=_n({impact:St,draggable:Ut,droppable:Tt,draggables:Ve,viewport:ke,afterCritical:Z.afterCritical});return Dn({impact:St,clientSelection:kt,state:Z,dimensions:ze,viewport:ke})},Un=function(Y){return{index:Y.index,droppableId:Y.droppableId}},or=function(Y){var Z=Y.draggable,ie=Y.home,ye=Y.draggables,Ne=Y.viewport,ke=fa(ie.axis,Z.displaceBy),ze=Ke(ie.descriptor.id,ye),Ve=ze.indexOf(Z);Ve!==-1||$(!1);var xt=ze.slice(Ve+1),Ut=xt.reduce(function(kt,hn){return kt[hn.descriptor.id]=!0,kt},{}),Wt={inVirtualList:ie.descriptor.mode==="virtual",displacedBy:ke,effected:Ut},Tt=sn({afterDragging:xt,destination:ie,displacedBy:ke,last:null,viewport:Ne.frame,forceShouldAnimate:!1}),St={displaced:Tt,displacedBy:ke,at:{type:"REORDER",destination:Un(Z.descriptor)}};return{impact:St,afterCritical:Wt}},qn=function(Y,Z){return{draggables:Y.draggables,droppables:Sn(Y.droppables,Z)}},Pr=function(Z){},Lr=function(Z){},Qn=function(Y){var Z=Y.draggable,ie=Y.offset,ye=Y.initialWindowScroll,Ne=w(Z.client,ie),ke=E(Ne,ye),ze=Object(b.a)({},Z,{placeholder:Object(b.a)({},Z.placeholder,{client:Ne}),client:Ne,page:ke});return ze},Dr=function(Y){var Z=Y.frame;return Z||$(!1),Z},vr=function(Y){var Z=Y.additions,ie=Y.updatedDroppables,ye=Y.viewport,Ne=ye.scroll.diff.value;return Z.map(function(ke){var ze=ke.descriptor.droppableId,Ve=ie[ze],xt=Dr(Ve),Ut=xt.scroll.diff.value,Wt=Qe(Ne,Ut),Tt=Qn({draggable:ke,offset:Wt,initialWindowScroll:ye.scroll.initial});return Tt})},zr=function(Y){var Z=Y.state,ie=Y.published;Pr();var ye=ie.modified.map(function(na){var Hr=Z.dimensions.droppables[na.droppableId],Ia=Ie(Hr,na.scroll);return Ia}),Ne=Object(b.a)({},Z.dimensions.droppables,{},Ht(ye)),ke=rn(vr({additions:ie.additions,updatedDroppables:Ne,viewport:Z.viewport})),ze=Object(b.a)({},Z.dimensions.draggables,{},ke);ie.removals.forEach(function(na){delete ze[na]});var Ve={droppables:Ne,draggables:ze},xt=Kt(Z.impact),Ut=xt?Ve.droppables[xt]:null,Wt=Ve.draggables[Z.critical.draggable.id],Tt=Ve.droppables[Z.critical.droppable.id],St=or({draggable:Wt,home:Tt,draggables:ze,viewport:Z.viewport}),kt=St.impact,hn=St.afterCritical,ur=Ut&&Ut.isCombineEnabled?Z.impact:kt,gr=Br({pageOffset:Z.current.page.offset,draggable:Ve.draggables[Z.critical.draggable.id],draggables:Ve.draggables,droppables:Ve.droppables,previousImpact:ur,viewport:Z.viewport,afterCritical:hn});Lr();var kr=Object(b.a)({phase:"DRAGGING"},Z,{phase:"DRAGGING",impact:gr,onLiftImpact:kt,dimensions:Ve,afterCritical:hn,forceShouldAnimate:!1});if(Z.phase==="COLLECTING")return kr;var Gr=Object(b.a)({phase:"DROP_PENDING"},kr,{phase:"DROP_PENDING",reason:Z.reason,isWaiting:!1});return Gr},Nr=function(Z){return Z.movementMode==="SNAP"},$r=function(Z,ie,ye){var Ne=qn(Z.dimensions,ie);return!Nr(Z)||ye?Dn({state:Z,dimensions:Ne}):In({state:Z,dimensions:Ne})};function tr(Y){return Y.isDragging&&Y.movementMode==="SNAP"?Object(b.a)({phase:"DRAGGING"},Y,{scrollJumpRequest:null}):Y}var Gt={phase:"IDLE",completed:null,shouldFlush:!1},Zt=function(Y,Z){if(Y===void 0&&(Y=Gt),Z.type==="FLUSH")return Object(b.a)({},Gt,{shouldFlush:!0});if(Z.type==="INITIAL_PUBLISH"){Y.phase==="IDLE"||$(!1);var ie=Z.payload,ye=ie.critical,Ne=ie.clientSelection,ke=ie.viewport,ze=ie.dimensions,Ve=ie.movementMode,xt=ze.draggables[ye.draggable.id],Ut=ze.droppables[ye.droppable.id],Wt={selection:Ne,borderBoxCenter:xt.client.borderBox.center,offset:Ae},Tt={client:Wt,page:{selection:Qe(Wt.selection,ke.scroll.initial),borderBoxCenter:Qe(Wt.selection,ke.scroll.initial),offset:Qe(Wt.selection,ke.scroll.diff.value)}},St=Bt(ze.droppables).every(function(ea){return!ea.isFixedOnPage}),kt=or({draggable:xt,home:Ut,draggables:ze.draggables,viewport:ke}),hn=kt.impact,ur=kt.afterCritical,gr={phase:"DRAGGING",isDragging:!0,critical:ye,movementMode:Ve,dimensions:ze,initial:Tt,current:Tt,isWindowScrollAllowed:St,impact:hn,afterCritical:ur,onLiftImpact:hn,viewport:ke,scrollJumpRequest:null,forceShouldAnimate:null};return gr}if(Z.type==="COLLECTION_STARTING"){if(Y.phase==="COLLECTING"||Y.phase==="DROP_PENDING")return Y;Y.phase==="DRAGGING"||$(!1);var kr=Object(b.a)({phase:"COLLECTING"},Y,{phase:"COLLECTING"});return kr}if(Z.type==="PUBLISH_WHILE_DRAGGING")return Y.phase==="COLLECTING"||Y.phase==="DROP_PENDING"||$(!1),zr({state:Y,published:Z.payload});if(Z.type==="MOVE"){if(Y.phase==="DROP_PENDING")return Y;nn(Y)||$(!1);var Gr=Z.payload.client;return dt(Gr,Y.current.client.selection)?Y:Dn({state:Y,clientSelection:Gr,impact:Nr(Y)?Y.impact:null})}if(Z.type==="UPDATE_DROPPABLE_SCROLL"){if(Y.phase==="DROP_PENDING")return tr(Y);if(Y.phase==="COLLECTING")return tr(Y);nn(Y)||$(!1);var na=Z.payload,Hr=na.id,Ia=na.newScroll,Da=Y.dimensions.droppables[Hr];if(!Da)return Y;var za=Ie(Da,Ia);return $r(Y,za,!1)}if(Z.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(Y.phase==="DROP_PENDING")return Y;nn(Y)||$(!1);var si=Z.payload,t=si.id,p=si.isEnabled,B=Y.dimensions.droppables[t];B||$(!1),B.isEnabled!==p||$(!1);var j=Object(b.a)({},B,{isEnabled:p});return $r(Y,j,!0)}if(Z.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(Y.phase==="DROP_PENDING")return Y;nn(Y)||$(!1);var G=Z.payload,ne=G.id,ge=G.isCombineEnabled,we=Y.dimensions.droppables[ne];we||$(!1),we.isCombineEnabled!==ge||$(!1);var Re=Object(b.a)({},we,{isCombineEnabled:ge});return $r(Y,Re,!0)}if(Z.type==="MOVE_BY_WINDOW_SCROLL"){if(Y.phase==="DROP_PENDING"||Y.phase==="DROP_ANIMATING")return Y;nn(Y)||$(!1),Y.isWindowScrollAllowed||$(!1);var je=Z.payload.newScroll;if(dt(Y.viewport.scroll.current,je))return tr(Y);var gt=Ar(Y.viewport,je);return Nr(Y)?In({state:Y,viewport:gt}):Dn({state:Y,viewport:gt})}if(Z.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!nn(Y))return Y;var At=Z.payload.maxScroll;if(dt(At,Y.viewport.scroll.max))return Y;var tn=Object(b.a)({},Y.viewport,{scroll:Object(b.a)({},Y.viewport.scroll,{max:At})});return Object(b.a)({phase:"DRAGGING"},Y,{viewport:tn})}if(Z.type==="MOVE_UP"||Z.type==="MOVE_DOWN"||Z.type==="MOVE_LEFT"||Z.type==="MOVE_RIGHT"){if(Y.phase==="COLLECTING"||Y.phase==="DROP_PENDING")return Y;Y.phase==="DRAGGING"||$(!1);var zt=Xt({state:Y,type:Z.type});return zt?Dn({state:Y,impact:zt.impact,clientSelection:zt.clientSelection,scrollJumpRequest:zt.scrollJumpRequest}):Y}if(Z.type==="DROP_PENDING"){var Tn=Z.payload.reason;Y.phase==="COLLECTING"||$(!1);var Bn=Object(b.a)({phase:"DROP_PENDING"},Y,{phase:"DROP_PENDING",isWaiting:!0,reason:Tn});return Bn}if(Z.type==="DROP_ANIMATE"){var Zn=Z.payload,yr=Zn.completed,Ur=Zn.dropDuration,Er=Zn.newHomeClientOffset;Y.phase==="DRAGGING"||Y.phase==="DROP_PENDING"||$(!1);var Xr={phase:"DROP_ANIMATING",completed:yr,dropDuration:Ur,newHomeClientOffset:Er,dimensions:Y.dimensions};return Xr}if(Z.type==="DROP_COMPLETE"){var ia=Z.payload.completed;return{phase:"IDLE",completed:ia,shouldFlush:!1}}return Y},Jt=function(Z){return{type:"BEFORE_INITIAL_CAPTURE",payload:Z}},zn=function(Z){return{type:"LIFT",payload:Z}},$n=function(Z){return{type:"INITIAL_PUBLISH",payload:Z}},Ln=function(Z){return{type:"PUBLISH_WHILE_DRAGGING",payload:Z}},rr=function(){return{type:"COLLECTION_STARTING",payload:null}},cr=function(Z){return{type:"UPDATE_DROPPABLE_SCROLL",payload:Z}},sr=function(Z){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:Z}},qr=function(Z){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:Z}},lr=function(Z){return{type:"MOVE",payload:Z}},da=function(Z){return{type:"MOVE_BY_WINDOW_SCROLL",payload:Z}},Yr=function(Z){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:Z}},_r=function(){return{type:"MOVE_UP",payload:null}},Sr=function(){return{type:"MOVE_DOWN",payload:null}},Kr=function(){return{type:"MOVE_RIGHT",payload:null}},Jr=function(){return{type:"MOVE_LEFT",payload:null}},Ta=function(){return{type:"FLUSH",payload:null}},_a=function(Z){return{type:"DROP_ANIMATE",payload:Z}},Ze=function(Z){return{type:"DROP_COMPLETE",payload:Z}},ct=function(Z){return{type:"DROP",payload:Z}},_t=function(Z){return{type:"DROP_PENDING",payload:Z}},nt=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function Me(Y){if(Y.length<=1)return;for(var Z=Y.map(function(Ve){return Ve.descriptor.index}),ie={},ye=1;ye<Z.length;ye++){var Ne=Z[ye],ke=Z[ye-1];Ne!==ke+1&&(ie[Ne]=!0)}if(!Object.keys(ie).length)return;var ze=Z.map(function(Ve){var xt=Boolean(ie[Ve]);return xt?"[\u{1F525}"+Ve+"]":""+Ve}).join(", ")}function Je(Y,Z){if(!1)var ie}var Le=function(Y){return function(Z){var ie=Z.getState,ye=Z.dispatch;return function(Ne){return function(ke){if(ke.type!=="LIFT"){Ne(ke);return}var ze=ke.payload,Ve=ze.id,xt=ze.clientSelection,Ut=ze.movementMode,Wt=ie();Wt.phase==="DROP_ANIMATING"&&ye(Ze({completed:Wt.completed})),ie().phase==="IDLE"||$(!1),ye(Ta()),ye(Jt({draggableId:Ve,movementMode:Ut}));var Tt={shouldPublishImmediately:Ut==="SNAP"},St={draggableId:Ve,scrollOptions:Tt},kt=Y.startPublishing(St),hn=kt.critical,ur=kt.dimensions,gr=kt.viewport;Je(hn,ur),ye($n({critical:hn,dimensions:ur,clientSelection:xt,movementMode:Ut,viewport:gr}))}}}},$e=function(Y){return function(){return function(Z){return function(ie){ie.type==="INITIAL_PUBLISH"&&Y.dragging(),ie.type==="DROP_ANIMATE"&&Y.dropping(ie.payload.completed.result.reason),(ie.type==="FLUSH"||ie.type==="DROP_COMPLETE")&&Y.resting(),Z(ie)}}}},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(Z){var ie=Z+"s "+qe.drop;return"transform "+ie+", opacity "+ie},outOfTheWay:"transform "+It,placeholder:"height "+It+", width "+It+", margin "+It},fn=function(Z){return dt(Z,Ae)?null:"translate("+Z.x+"px, "+Z.y+"px)"},ln={moveTo:fn,drop:function(Z,ie){var ye=fn(Z);return ye?ie?ye+" scale("+pt.scale.drop+")":ye:null}},cn=rt.minDropTime,un=rt.maxDropTime,Wn=un-cn,Cn=1500,jr=.6,Mr=function(Y){var Z=Y.current,ie=Y.destination,ye=Y.reason,Ne=yt(Z,ie);if(Ne<=0)return cn;if(Ne>=Cn)return un;var ke=Ne/Cn,ze=cn+Wn*ke,Ve=ye==="CANCEL"?ze*jr:ze;return Number(Ve.toFixed(2))},Qr=function(Y){var Z=Y.impact,ie=Y.draggable,ye=Y.dimensions,Ne=Y.viewport,ke=Y.afterCritical,ze=ye.draggables,Ve=ye.droppables,xt=Kt(Z),Ut=xt?Ve[xt]:null,Wt=Ve[ie.descriptor.droppableId],Tt=_n({impact:Z,draggable:ie,draggables:ze,afterCritical:ke,droppable:Ut||Wt,viewport:Ne}),St=tt(Tt,ie.client.borderBox.center);return St},Wr=function(Y){var Z=Y.draggables,ie=Y.reason,ye=Y.lastImpact,Ne=Y.home,ke=Y.viewport,ze=Y.onLiftImpact;if(!ye.at||ie!=="DROP"){var Ve=wn({draggables:Z,impact:ze,destination:Ne,viewport:ke,forceShouldAnimate:!0});return{impact:Ve,didDropInsideDroppable:!1}}if(ye.at.type==="REORDER")return{impact:ye,didDropInsideDroppable:!0};var xt=Object(b.a)({},ye,{displaced:Ot});return{impact:xt,didDropInsideDroppable:!0}},ta=function(Y){var Z=Y.getState,ie=Y.dispatch;return function(ye){return function(Ne){if(Ne.type!=="DROP"){ye(Ne);return}var ke=Z(),ze=Ne.payload.reason;if(ke.phase==="COLLECTING"){ie(_t({reason:ze}));return}if(ke.phase==="IDLE")return;var Ve=ke.phase==="DROP_PENDING"&&ke.isWaiting;Ve&&$(!1),ke.phase==="DRAGGING"||ke.phase==="DROP_PENDING"||$(!1);var xt=ke.critical,Ut=ke.dimensions,Wt=Ut.draggables[ke.critical.draggable.id],Tt=Wr({reason:ze,lastImpact:ke.impact,afterCritical:ke.afterCritical,onLiftImpact:ke.onLiftImpact,home:ke.dimensions.droppables[ke.critical.droppable.id],viewport:ke.viewport,draggables:ke.dimensions.draggables}),St=Tt.impact,kt=Tt.didDropInsideDroppable,hn=kt?et(St):null,ur=kt?at(St):null,gr={index:xt.draggable.index,droppableId:xt.droppable.id},kr={draggableId:Wt.descriptor.id,type:Wt.descriptor.type,source:gr,reason:ze,mode:ke.movementMode,destination:hn,combine:ur},Gr=Qr({impact:St,draggable:Wt,dimensions:Ut,viewport:ke.viewport,afterCritical:ke.afterCritical}),na={critical:ke.critical,afterCritical:ke.afterCritical,result:kr,impact:St},Hr=!dt(ke.current.client.offset,Gr)||Boolean(kr.combine);if(!Hr){ie(Ze({completed:na}));return}var Ia=Mr({current:ke.current.client.offset,destination:Gr,reason:ze}),Da={newHomeClientOffset:Gr,dropDuration:Ia,completed:na};ie(_a(Da))}}},Kn=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function wr(Y){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(ie){if(ie.target!==window&&ie.target!==window.document)return;Y()}}}function Gn(Y){var Z=Y.onWindowScroll;function ie(){Z(Kn())}var ye=L(ie),Ne=wr(ye),ke=Te;function ze(){return ke!==Te}function Ve(){ze()&&$(!1),ke=be(window,[Ne])}function xt(){ze()||$(!1),ye.cancel(),ke(),ke=Te}return{start:Ve,stop:xt,isActive:ze}}var En=function(Z){return Z.type==="DROP_COMPLETE"||Z.type==="DROP_ANIMATE"||Z.type==="FLUSH"},jn=function(Y){var Z=Gn({onWindowScroll:function(ye){Y.dispatch(da({newScroll:ye}))}});return function(ie){return function(ye){!Z.isActive()&&ye.type==="INITIAL_PUBLISH"&&Z.start(),Z.isActive()&&En(ye)&&Z.stop(),ie(ye)}}},Vr=function(Y){var Z=!1,ie=!1,ye=setTimeout(function(){ie=!0}),Ne=function(ze){if(Z)return;if(ie)return;Z=!0,Y(ze),clearTimeout(ye)};return Ne.wasCalled=function(){return Z},Ne},ua=function(){var Y=[],Z=function(ke){var ze=We(Y,function(Ut){return Ut.timerId===ke});ze!==-1||$(!1);var Ve=Y.splice(ze,1),xt=Ve[0];xt.callback()},ie=function(ke){var ze=setTimeout(function(){return Z(ze)}),Ve={timerId:ze,callback:ke};Y.push(Ve)},ye=function(){if(!Y.length)return;var ke=[].concat(Y);Y.length=0,ke.forEach(function(ze){clearTimeout(ze.timerId),ze.callback()})};return{add:ie,flush:ye}},hr=function(Z,ie){return Z==null&&ie==null?!0:Z==null||ie==null?!1:Z.droppableId===ie.droppableId&&Z.index===ie.index},aa=function(Z,ie){return Z==null&&ie==null?!0:Z==null||ie==null?!1:Z.draggableId===ie.draggableId&&Z.droppableId===ie.droppableId},xa=function(Z,ie){if(Z===ie)return!0;var ye=Z.draggable.id===ie.draggable.id&&Z.draggable.droppableId===ie.draggable.droppableId&&Z.draggable.type===ie.draggable.type&&Z.draggable.index===ie.draggable.index,Ne=Z.droppable.id===ie.droppable.id&&Z.droppable.type===ie.droppable.type;return ye&&Ne},ha=function(Z,ie){Pr(),ie(),Lr()},Ca=function(Z,ie){return{draggableId:Z.draggable.id,type:Z.droppable.type,source:{droppableId:Z.droppable.id,index:Z.draggable.index},mode:ie}},Tr=function(Z,ie,ye,Ne){if(!Z){ye(Ne(ie));return}var ke=Vr(ye),ze={announce:ke};Z(ie,ze),ke.wasCalled()||ye(Ne(ie))},br=function(Y,Z){var ie=ua(),ye=null,Ne=function(St,kt){ye&&$(!1),ha("onBeforeCapture",function(){var hn=Y().onBeforeCapture;if(hn){var ur={draggableId:St,mode:kt};hn(ur)}})},ke=function(St,kt){ye&&$(!1),ha("onBeforeDragStart",function(){var hn=Y().onBeforeDragStart;hn&&hn(Ca(St,kt))})},ze=function(St,kt){ye&&$(!1);var hn=Ca(St,kt);ye={mode:kt,lastCritical:St,lastLocation:hn.source,lastCombine:null},ie.add(function(){ha("onDragStart",function(){return Tr(Y().onDragStart,hn,Z,_e.onDragStart)})})},Ve=function(St,kt){var hn=et(kt),ur=at(kt);ye||$(!1);var gr=!xa(St,ye.lastCritical);gr&&(ye.lastCritical=St);var kr=!hr(ye.lastLocation,hn);kr&&(ye.lastLocation=hn);var Gr=!aa(ye.lastCombine,ur);if(Gr&&(ye.lastCombine=ur),!gr&&!kr&&!Gr)return;var na=Object(b.a)({},Ca(St,ye.mode),{combine:ur,destination:hn});ie.add(function(){ha("onDragUpdate",function(){return Tr(Y().onDragUpdate,na,Z,_e.onDragUpdate)})})},xt=function(){ye||$(!1),ie.flush()},Ut=function(St){ye||$(!1),ye=null,ha("onDragEnd",function(){return Tr(Y().onDragEnd,St,Z,_e.onDragEnd)})},Wt=function(){if(!ye)return;var St=Object(b.a)({},Ca(ye.lastCritical,ye.mode),{combine:null,destination:null,reason:"CANCEL"});Ut(St)};return{beforeCapture:Ne,beforeStart:ke,start:ze,update:Ve,flush:xt,drop:Ut,abort:Wt}},Ir=function(Y,Z){var ie=br(Y,Z);return function(ye){return function(Ne){return function(ke){if(ke.type==="BEFORE_INITIAL_CAPTURE"){ie.beforeCapture(ke.payload.draggableId,ke.payload.movementMode);return}if(ke.type==="INITIAL_PUBLISH"){var ze=ke.payload.critical;ie.beforeStart(ze,ke.payload.movementMode),Ne(ke),ie.start(ze,ke.payload.movementMode);return}if(ke.type==="DROP_COMPLETE"){var Ve=ke.payload.completed.result;ie.flush(),Ne(ke),ie.drop(Ve);return}if(Ne(ke),ke.type==="FLUSH"){ie.abort();return}var xt=ye.getState();xt.phase==="DRAGGING"&&ie.update(xt.critical,xt.impact)}}}},er=function(Y){return function(Z){return function(ie){if(ie.type!=="DROP_ANIMATION_FINISHED"){Z(ie);return}var ye=Y.getState();ye.phase==="DROP_ANIMATING"||$(!1),Y.dispatch(Ze({completed:ye.completed}))}}},pa=function(Y){var Z=null,ie=null;function ye(){ie&&(cancelAnimationFrame(ie),ie=null),Z&&(Z(),Z=null)}return function(Ne){return function(ke){if((ke.type==="FLUSH"||ke.type==="DROP_COMPLETE"||ke.type==="DROP_ANIMATION_FINISHED")&&ye(),Ne(ke),ke.type!=="DROP_ANIMATE")return;var ze={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var xt=Y.getState();xt.phase==="DROP_ANIMATING"&&Y.dispatch(nt())}};ie=requestAnimationFrame(function(){ie=null,Z=be(window,[ze])})}}},Ea=function(Y){return function(){return function(Z){return function(ie){(ie.type==="DROP_COMPLETE"||ie.type==="FLUSH"||ie.type==="DROP_ANIMATE")&&Y.stopPublishing(),Z(ie)}}}},ba=function(Y){var Z=!1;return function(){return function(ie){return function(ye){if(ye.type==="INITIAL_PUBLISH"){Z=!0,Y.tryRecordFocus(ye.payload.critical.draggable.id),ie(ye),Y.tryRestoreFocusRecorded();return}if(ie(ye),!Z)return;if(ye.type==="FLUSH"){Z=!1,Y.tryRestoreFocusRecorded();return}if(ye.type==="DROP_COMPLETE"){Z=!1;var Ne=ye.payload.completed.result;Ne.combine&&Y.tryShiftRecord(Ne.draggableId,Ne.combine.draggableId),Y.tryRestoreFocusRecorded()}}}}},Oa=function(Z){return Z.type==="DROP_COMPLETE"||Z.type==="DROP_ANIMATE"||Z.type==="FLUSH"},ga=function(Y){return function(Z){return function(ie){return function(ye){if(Oa(ye)){Y.stop(),ie(ye);return}if(ye.type==="INITIAL_PUBLISH"){ie(ye);var Ne=Z.getState();Ne.phase==="DRAGGING"||$(!1),Y.start(Ne);return}ie(ye),Y.scroll(Z.getState())}}}},ka=function(Y){return function(Z){return function(ie){if(Z(ie),ie.type!=="PUBLISH_WHILE_DRAGGING")return;var ye=Y.getState();if(ye.phase!=="DROP_PENDING")return;if(ye.isWaiting)return;Y.dispatch(ct({reason:ye.reason}))}}},Ua=y.d,Fa=function(Y){var Z=Y.dimensionMarshal,ie=Y.focusMarshal,ye=Y.styleMarshal,Ne=Y.getResponders,ke=Y.announce,ze=Y.autoScroller;return Object(y.e)(Zt,Ua(Object(y.a)($e(ye),Ea(Z),Le(Z),ta,er,pa,ka,ga(ze),jn,ba(ie),Ir(Ne,ke))))},ni=function(){return{additions:{},removals:{},modified:{}}};function Fi(Y){var Z=Y.registry,ie=Y.callbacks,ye=ni(),Ne=null,ke=function(){if(Ne)return;ie.collectionStarting(),Ne=requestAnimationFrame(function(){Ne=null,Pr();var Wt=ye,Tt=Wt.additions,St=Wt.removals,kt=Wt.modified,hn=Object.keys(Tt).map(function(kr){return Z.draggable.getById(kr).getDimension(Ae)}).sort(function(kr,Gr){return kr.descriptor.index-Gr.descriptor.index}),ur=Object.keys(kt).map(function(kr){var Gr=Z.droppable.getById(kr),na=Gr.callbacks.getScrollWhileDragging();return{droppableId:kr,scroll:na}}),gr={additions:hn,removals:Object.keys(St),modified:ur};ye=ni(),Lr(),ie.publish(gr)})},ze=function(Wt){var Tt=Wt.descriptor.id;ye.additions[Tt]=Wt,ye.modified[Wt.descriptor.droppableId]=!0,ye.removals[Tt]&&delete ye.removals[Tt],ke()},Ve=function(Wt){var Tt=Wt.descriptor;ye.removals[Tt.id]=!0,ye.modified[Tt.droppableId]=!0,ye.additions[Tt.id]&&delete ye.additions[Tt.id],ke()},xt=function(){if(!Ne)return;cancelAnimationFrame(Ne),Ne=null,ye=ni()};return{add:ze,remove:Ve,stop:xt}}var Ai=function(Y){var Z=Y.scrollHeight,ie=Y.scrollWidth,ye=Y.height,Ne=Y.width,ke=tt({x:ie,y:Z},{x:Ne,y:ye}),ze={x:Math.max(0,ke.x),y:Math.max(0,ke.y)};return ze},Na=function(){var Y=document.documentElement;return Y||$(!1),Y},bi=function(){var Y=Na(),Z=Ai({scrollHeight:Y.scrollHeight,scrollWidth:Y.scrollWidth,width:Y.clientWidth,height:Y.clientHeight});return Z},Si=function(){var Y=Kn(),Z=bi(),ie=Y.y,ye=Y.x,Ne=Na(),ke=Ne.clientWidth,ze=Ne.clientHeight,Ve=ye+ke,xt=ie+ze,Ut=r({top:ie,left:ye,right:Ve,bottom:xt}),Wt={frame:Ut,scroll:{initial:Y,current:Y,max:Z,diff:{value:Ae,displacement:Ae}}};return Wt},Ba=function(Y){var Z=Y.critical,ie=Y.scrollOptions,ye=Y.registry;Pr();var Ne=Si(),ke=Ne.scroll.current,ze=Z.droppable,Ve=ye.droppable.getAllByType(ze.type).map(function(Tt){return Tt.callbacks.getDimensionAndWatchScroll(ke,ie)}),xt=ye.draggable.getAllByType(Z.draggable.type).map(function(Tt){return Tt.getDimension(ke)}),Ut={draggables:rn(xt),droppables:Ht(Ve)};Lr();var Wt={dimensions:Ut,critical:Z,viewport:Ne};return Wt};function Ma(Y,Z,ie){if(ie.descriptor.id===Z.id)return!1;if(ie.descriptor.type!==Z.type)return!1;var ye=Y.droppable.getById(ie.descriptor.droppableId);return!(ye.descriptor.mode!=="virtual")}var Za=function(Y,Z){var ie=null,ye=Fi({callbacks:{publish:Z.publishWhileDragging,collectionStarting:Z.collectionStarting},registry:Y}),Ne=function(kt,hn){if(Y.droppable.exists(kt)||$(!1),!ie)return;Z.updateDroppableIsEnabled({id:kt,isEnabled:hn})},ke=function(kt,hn){if(!ie)return;Y.droppable.exists(kt)||$(!1),Z.updateDroppableIsCombineEnabled({id:kt,isCombineEnabled:hn})},ze=function(kt,hn){if(!ie)return;Y.droppable.exists(kt)||$(!1),Z.updateDroppableScroll({id:kt,newScroll:hn})},Ve=function(kt,hn){if(!ie)return;Y.droppable.getById(kt).callbacks.scroll(hn)},xt=function(){if(!ie)return;ye.stop();var kt=ie.critical.droppable;Y.droppable.getAllByType(kt.type).forEach(function(hn){return hn.callbacks.dragStopped()}),ie.unsubscribe(),ie=null},Ut=function(kt){ie||$(!1);var hn=ie.critical.draggable;kt.type==="ADDITION"&&(Ma(Y,hn,kt.value)&&ye.add(kt.value)),kt.type==="REMOVAL"&&(Ma(Y,hn,kt.value)&&ye.remove(kt.value))},Wt=function(kt){ie&&$(!1);var hn=Y.draggable.getById(kt.draggableId),ur=Y.droppable.getById(hn.descriptor.droppableId),gr={draggable:hn.descriptor,droppable:ur.descriptor},kr=Y.subscribe(Ut);return ie={critical:gr,unsubscribe:kr},Ba({critical:gr,registry:Y,scrollOptions:kt.scrollOptions})},Tt={updateDroppableIsEnabled:Ne,updateDroppableIsCombineEnabled:ke,scrollDroppable:Ve,updateDroppableScroll:ze,startPublishing:Wt,stopPublishing:xt};return Tt},to=function(Y,Z){return Y.phase==="IDLE"?!0:Y.phase!=="DROP_ANIMATING"||Y.completed.result.draggableId===Z?!1:Y.completed.result.reason==="DROP"},Mo=function(Y){window.scrollBy(Y.x,Y.y)},Ii=A(function(Y){return Bt(Y).filter(function(Z){return Z.isEnabled?!!Z.frame:!1})}),no=function(Z,ie){var ye=st(Ii(ie),function(Ne){return Ne.frame||$(!1),yn(Ne.frame.pageMarginBox)(Z)});return ye},ro=function(Y){var Z=Y.center,ie=Y.destination,ye=Y.droppables;if(ie){var Ne=ye[ie];return Ne.frame?Ne:null}var ke=no(Z,ye);return ke},mi={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(Z){return Math.pow(Z,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},uo=function(Y,Z){var ie=Y[Z.size]*mi.startFromPercentage,ye=Y[Z.size]*mi.maxScrollAtPercentage,Ne={startScrollingFrom:ie,maxScrollValueAt:ye};return Ne},Io=function(Y){var Z=Y.startOfRange,ie=Y.endOfRange,ye=Y.current,Ne=ie-Z;if(Ne===0)return 0;var ke=ye-Z,ze=ke/Ne;return ze},Lo=1,bo=function(Y,Z){if(Y>Z.startScrollingFrom)return 0;if(Y<=Z.maxScrollValueAt)return mi.maxPixelScroll;if(Y===Z.startScrollingFrom)return Lo;var ie=Io({startOfRange:Z.maxScrollValueAt,endOfRange:Z.startScrollingFrom,current:Y}),ye=1-ie,Ne=mi.maxPixelScroll*mi.ease(ye);return Math.ceil(Ne)},Vi=mi.durationDampening.accelerateAt,co=mi.durationDampening.stopDampeningAt,Xi=function(Y,Z){var ie=Z,ye=co,Ne=Date.now(),ke=Ne-ie;if(ke>=co)return Y;if(ke<Vi)return Lo;var ze=Io({startOfRange:Vi,endOfRange:ye,current:ke}),Ve=Y*mi.ease(ze);return Math.ceil(Ve)},Yi=function(Y){var Z=Y.distanceToEdge,ie=Y.thresholds,ye=Y.dragStartTime,Ne=Y.shouldUseTimeDampening,ke=bo(Z,ie);return ke===0?0:Ne?Math.max(Xi(ke,ye),Lo):ke},No=function(Y){var Z=Y.container,ie=Y.distanceToEdges,ye=Y.dragStartTime,Ne=Y.axis,ke=Y.shouldUseTimeDampening,ze=uo(Z,Ne),Ve=ie[Ne.end]<ie[Ne.start];return Ve?Yi({distanceToEdge:ie[Ne.end],thresholds:ze,dragStartTime:ye,shouldUseTimeDampening:ke}):-1*Yi({distanceToEdge:ie[Ne.start],thresholds:ze,dragStartTime:ye,shouldUseTimeDampening:ke})},yo=function(Y){var Z=Y.container,ie=Y.subject,ye=Y.proposedScroll,Ne=ie.height>Z.height,ke=ie.width>Z.width;return!ke&&!Ne?ye:ke&&Ne?null:{x:ke?0:ye.x,y:Ne?0:ye.y}},ao=Ue(function(Y){return Y===0?0:Y}),Ji=function(Y){var Z=Y.dragStartTime,ie=Y.container,ye=Y.subject,Ne=Y.center,ke=Y.shouldUseTimeDampening,ze={top:Ne.y-ie.top,right:ie.right-Ne.x,bottom:ie.bottom-Ne.y,left:Ne.x-ie.left},Ve=No({container:ie,distanceToEdges:ze,dragStartTime:Z,axis:on,shouldUseTimeDampening:ke}),xt=No({container:ie,distanceToEdges:ze,dragStartTime:Z,axis:mn,shouldUseTimeDampening:ke}),Ut=ao({x:xt,y:Ve});if(dt(Ut,Ae))return null;var Wt=yo({container:ie,subject:ye,proposedScroll:Ut});return Wt?dt(Wt,Ae)?null:Wt:null},Qi=Ue(function(Y){return Y===0?0:Y>0?1:-1}),ei=function(){var Y=function(ie,ye){return ie<0?ie:ie>ye?ie-ye:0};return function(Z){var ie=Z.current,ye=Z.max,Ne=Z.change,ke=Qe(ie,Ne),ze={x:Y(ke.x,ye.x),y:Y(ke.y,ye.y)};return dt(ze,Ae)?null:ze}}(),Li=function(Z){var ie=Z.max,ye=Z.current,Ne=Z.change,ke={x:Math.max(ye.x,ie.x),y:Math.max(ye.y,ie.y)},ze=Qi(Ne),Ve=ei({max:ke,current:ye,change:ze});return Ve?ze.x!==0&&Ve.x===0?!0:ze.y!==0&&Ve.y===0:!0},Di=function(Z,ie){return Li({current:Z.scroll.current,max:Z.scroll.max,change:ie})},Zi=function(Z,ie){if(!Di(Z,ie))return null;var ye=Z.scroll.max,Ne=Z.scroll.current;return ei({current:Ne,max:ye,change:ie})},Ri=function(Z,ie){var ye=Z.frame;return ye?Li({current:ye.scroll.current,max:ye.scroll.max,change:ie}):!1},Eo=function(Z,ie){var ye=Z.frame;return ye&&Ri(Z,ie)?ei({current:ye.scroll.current,max:ye.scroll.max,change:ie}):null},xo=function(Y){var Z=Y.viewport,ie=Y.subject,ye=Y.center,Ne=Y.dragStartTime,ke=Y.shouldUseTimeDampening,ze=Ji({dragStartTime:Ne,container:Z.frame,subject:ie,center:ye,shouldUseTimeDampening:ke});return ze&&Di(Z,ze)?ze:null},Co=function(Y){var Z=Y.droppable,ie=Y.subject,ye=Y.center,Ne=Y.dragStartTime,ke=Y.shouldUseTimeDampening,ze=Z.frame;if(!ze)return null;var Ve=Ji({dragStartTime:Ne,container:ze.pageMarginBox,subject:ie,center:ye,shouldUseTimeDampening:ke});return Ve&&Ri(Z,Ve)?Ve:null},io=function(Y){var Z=Y.state,ie=Y.dragStartTime,ye=Y.shouldUseTimeDampening,Ne=Y.scrollWindow,ke=Y.scrollDroppable,ze=Z.current.page.borderBoxCenter,Ve=Z.dimensions.draggables[Z.critical.draggable.id],xt=Ve.page.marginBox;if(Z.isWindowScrollAllowed){var Ut=Z.viewport,Wt=xo({dragStartTime:ie,viewport:Ut,subject:xt,center:ze,shouldUseTimeDampening:ye});if(Wt){Ne(Wt);return}}var Tt=ro({center:ze,destination:Kt(Z.impact),droppables:Z.dimensions.droppables});if(!Tt)return;var St=Co({dragStartTime:ie,droppable:Tt,subject:xt,center:ze,shouldUseTimeDampening:ye});St&&ke(Tt.descriptor.id,St)},Ni=function(Y){var Z=Y.scrollWindow,ie=Y.scrollDroppable,ye=L(Z),Ne=L(ie),ke=null,ze=function(Wt){ke||$(!1);var Tt=ke,St=Tt.shouldUseTimeDampening,kt=Tt.dragStartTime;io({state:Wt,scrollWindow:ye,scrollDroppable:Ne,dragStartTime:kt,shouldUseTimeDampening:St})},Ve=function(Wt){Pr(),ke&&$(!1);var Tt=Date.now(),St=!1,kt=function(){St=!0};io({state:Wt,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:kt,scrollDroppable:kt}),ke={dragStartTime:Tt,shouldUseTimeDampening:St},Lr(),St&&ze(Wt)},xt=function(){if(!ke)return;ye.cancel(),Ne.cancel(),ke=null};return{start:Ve,stop:xt,scroll:ze}},qi=function(Y){var Z=Y.move,ie=Y.scrollDroppable,ye=Y.scrollWindow,Ne=function(Ut,Wt){var Tt=Qe(Ut.current.client.selection,Wt);Z({client:Tt})},ke=function(Ut,Wt){if(!Ri(Ut,Wt))return Wt;var Tt=Eo(Ut,Wt);if(!Tt)return ie(Ut.descriptor.id,Wt),null;var St=tt(Wt,Tt);ie(Ut.descriptor.id,St);var kt=tt(Wt,St);return kt},ze=function(Ut,Wt,Tt){if(!Ut)return Tt;if(!Di(Wt,Tt))return Tt;var St=Zi(Wt,Tt);if(!St)return ye(Tt),null;var kt=tt(Tt,St);ye(kt);var hn=tt(Tt,kt);return hn},Ve=function(Ut){var Wt=Ut.scrollJumpRequest;if(!Wt)return;var Tt=Kt(Ut.impact);Tt||$(!1);var St=ke(Ut.dimensions.droppables[Tt],Wt);if(!St)return;var kt=Ut.viewport,hn=ze(Ut.isWindowScrollAllowed,kt,St);if(!hn)return;Ne(Ut,hn)};return Ve},ko=function(Y){var Z=Y.scrollDroppable,ie=Y.scrollWindow,ye=Y.move,Ne=Ni({scrollWindow:ie,scrollDroppable:Z}),ke=qi({move:ye,scrollWindow:ie,scrollDroppable:Z}),ze=function(Ut){if(Ut.phase!=="DRAGGING")return;if(Ut.movementMode==="FLUID"){Ne.scroll(Ut);return}if(!Ut.scrollJumpRequest)return;ke(Ut)},Ve={scroll:ze,start:Ne.start,stop:Ne.stop};return Ve},oo="data-rbd",so=function(){var Y=oo+"-drag-handle";return{base:Y,draggableId:Y+"-draggable-id",contextId:Y+"-context-id"}}(),So=function(){var Y=oo+"-draggable";return{base:Y,contextId:Y+"-context-id",id:Y+"-id"}}(),Uo=function(){var Y=oo+"-droppable";return{base:Y,contextId:Y+"-context-id",id:Y+"-id"}}(),jo={contextId:oo+"-scroll-container-context-id"},fi=function(Z){return function(ie){return"["+ie+'="'+Z+'"]'}},Ha=function(Z,ie){return Z.map(function(ye){var Ne=ye.styles[ie];return Ne?ye.selector+" { "+Ne+" }":""}).join(" ")},ri="pointer-events: none;",Xa=function(Y){var Z=fi(Y),ie=function(){var Ve=`
|
|
|
cursor: -webkit-grab;
|
|
|
cursor: grab;
|
|
|
`;return{selector:Z(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}}}(),ye=function(){var Ve=`
|
|
|
transition: `+Vt.outOfTheWay+`;
|
|
|
`;return{selector:Z(So.contextId),styles:{dragging:Ve,dropAnimating:Ve,userCancel:Ve}}}(),Ne={selector:Z(Uo.contextId),styles:{always:"overflow-anchor: none;"}},ke={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=[ye,ie,Ne,ke];return{always:Ha(ze,"always"),resting:Ha(ze,"resting"),dragging:Ha(ze,"dragging"),dropAnimating:Ha(ze,"dropAnimating"),userCancel:Ha(ze,"userCancel")}},ai=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?P.useLayoutEffect:P.useEffect,wo=function(){var Z=document.querySelector("head");return Z||$(!1),Z},yi=function(Z){var ie=document.createElement("style");return Z&&ie.setAttribute("nonce",Z),ie.type="text/css",ie};function Bo(Y,Z){var ie=f(function(){return Xa(Y)},[Y]),ye=Object(P.useRef)(null),Ne=Object(P.useRef)(null),ke=a(A(function(Tt){var St=Ne.current;St||$(!1),St.textContent=Tt}),[]),ze=a(function(Tt){var St=ye.current;St||$(!1),St.textContent=Tt},[]);ai(function(){!ye.current&&!Ne.current||$(!1);var Tt=yi(Z),St=yi(Z);return ye.current=Tt,Ne.current=St,Tt.setAttribute(oo+"-always",Y),St.setAttribute(oo+"-dynamic",Y),wo().appendChild(Tt),wo().appendChild(St),ze(ie.always),ke(ie.resting),function(){var kt=function(ur){var gr=ur.current;gr||$(!1),wo().removeChild(gr),ur.current=null};kt(ye),kt(Ne)}},[Z,ze,ke,ie.always,ie.resting,Y]);var Ve=a(function(){return ke(ie.dragging)},[ke,ie.dragging]),xt=a(function(Tt){if(Tt==="DROP"){ke(ie.dropAnimating);return}ke(ie.userCancel)},[ke,ie.dropAnimating,ie.userCancel]),Ut=a(function(){if(!Ne.current)return;ke(ie.resting)},[ke,ie.resting]),Wt=f(function(){return{dragging:Ve,dropping:xt,resting:Ut}},[Ve,xt,Ut]);return Wt}var To=function(Y){return Y&&Y.ownerDocument?Y.ownerDocument.defaultView:window};function $i(Y){return Y instanceof To(Y).HTMLElement}function Wi(Y,Z){var ie="["+so.contextId+'="'+Y+'"]',ye=Dt(document.querySelectorAll(ie));if(!ye.length)return null;var Ne=st(ye,function(ke){return ke.getAttribute(so.draggableId)===Z});return Ne&&$i(Ne)?Ne:null}function Oo(Y){var Z=Object(P.useRef)({}),ie=Object(P.useRef)(null),ye=Object(P.useRef)(null),Ne=Object(P.useRef)(!1),ke=a(function(St,kt){var hn={id:St,focus:kt};return Z.current[St]=hn,function(){var gr=Z.current,kr=gr[St];kr!==hn&&delete gr[St]}},[]),ze=a(function(St){var kt=Wi(Y,St);kt&&kt!==document.activeElement&&kt.focus()},[Y]),Ve=a(function(St,kt){ie.current===St&&(ie.current=kt)},[]),xt=a(function(){if(ye.current)return;if(!Ne.current)return;ye.current=requestAnimationFrame(function(){ye.current=null;var St=ie.current;St&&ze(St)})},[ze]),Ut=a(function(St){ie.current=null;var kt=document.activeElement;if(!kt)return;if(kt.getAttribute(so.draggableId)!==St)return;ie.current=St},[]);ai(function(){return Ne.current=!0,function(){Ne.current=!1;var St=ye.current;St&&cancelAnimationFrame(St)}},[]);var Wt=f(function(){return{register:ke,tryRecordFocus:Ut,tryRestoreFocusRecorded:xt,tryShiftRecord:Ve}},[ke,Ut,xt,Ve]);return Wt}function fo(){var Y={draggables:{},droppables:{}},Z=[];function ie(Tt){return Z.push(Tt),function(){var kt=Z.indexOf(Tt);if(kt===-1)return;Z.splice(kt,1)}}function ye(Tt){Z.length&&Z.forEach(function(St){return St(Tt)})}function Ne(Tt){return Y.draggables[Tt]||null}function ke(Tt){var St=Ne(Tt);return St||$(!1),St}var ze={register:function(St){Y.draggables[St.descriptor.id]=St,ye({type:"ADDITION",value:St})},update:function(St,kt){var hn=Y.draggables[kt.descriptor.id];if(!hn)return;if(hn.uniqueId!==St.uniqueId)return;delete Y.draggables[kt.descriptor.id],Y.draggables[St.descriptor.id]=St},unregister:function(St){var kt=St.descriptor.id,hn=Ne(kt);if(!hn)return;if(St.uniqueId!==hn.uniqueId)return;delete Y.draggables[kt],ye({type:"REMOVAL",value:St})},getById:ke,findById:Ne,exists:function(St){return Boolean(Ne(St))},getAllByType:function(St){return Be(Y.draggables).filter(function(kt){return kt.descriptor.type===St})}};function Ve(Tt){return Y.droppables[Tt]||null}function xt(Tt){var St=Ve(Tt);return St||$(!1),St}var Ut={register:function(St){Y.droppables[St.descriptor.id]=St},unregister:function(St){var kt=Ve(St.descriptor.id);if(!kt)return;if(St.uniqueId!==kt.uniqueId)return;delete Y.droppables[St.descriptor.id]},getById:xt,findById:Ve,exists:function(St){return Boolean(Ve(St))},getAllByType:function(St){return Be(Y.droppables).filter(function(kt){return kt.descriptor.type===St})}};function Wt(){Y.draggables={},Y.droppables={},Z.length=0}return{draggable:ze,droppable:Ut,subscribe:ie,clean:Wt}}function Wo(){var Y=f(fo,[]);return Object(P.useEffect)(function(){return function(){requestAnimationFrame(Y.clean)}},[Y]),Y}var lo=g.a.createContext(null),Aa=function(){var Y=document.body;return Y||$(!1),Y},ya={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Ga=function(Z){return"rbd-announcement-"+Z};function ui(Y){var Z=f(function(){return Ga(Y)},[Y]),ie=Object(P.useRef)(null);Object(P.useEffect)(function(){var ke=document.createElement("div");return ie.current=ke,ke.id=Z,ke.setAttribute("aria-live","assertive"),ke.setAttribute("aria-atomic","true"),Object(b.a)(ke.style,ya),Aa().appendChild(ke),function(){setTimeout(function(){var xt=Aa();xt.contains(ke)&&xt.removeChild(ke),ke===ie.current&&(ie.current=null)})}},[Z]);var ye=a(function(Ne){var ke=ie.current;if(ke){ke.textContent=Ne;return}},[]);return ye}var eo=0,ki={separator:"::"};function ho(){eo=0}function wi(Y,Z){return Z===void 0&&(Z=ki),f(function(){return""+Y+Z.separator+eo++},[Z.separator,Y])}function qa(Y){var Z=Y.contextId,ie=Y.uniqueId;return"rbd-hidden-text-"+Z+"-"+ie}function po(Y){var Z=Y.contextId,ie=Y.text,ye=wi("hidden-text",{separator:"-"}),Ne=f(function(){return qa({contextId:Z,uniqueId:ye})},[ye,Z]);return Object(P.useEffect)(function(){var ze=document.createElement("div");return ze.id=Ne,ze.textContent=ie,ze.style.display="none",Aa().appendChild(ze),function(){var xt=Aa();xt.contains(ze)&&xt.removeChild(ze)}},[Ne,ie]),Ne}var Hi=g.a.createContext(null),mo={react:"^16.8.5","react-dom":"^16.8.5"},hi=/(\d+)\.(\d+)\.(\d+)/,Pa=function(Z){var ie=hi.exec(Z);ie!=null||$(!1);var ye=Number(ie[1]),Ne=Number(ie[2]),ke=Number(ie[3]);return{major:ye,minor:Ne,patch:ke,raw:Z}},sa=function(Z,ie){return ie.major>Z.major?!0:ie.major<Z.major?!1:ie.minor>Z.minor?!0:ie.minor<Z.minor?!1:ie.patch>=Z.patch},Cr=function(Y,Z){var ie=Pa(Y),ye=Pa(Z);if(sa(ie,ye))return},Zr=`
|
|
|
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
|
|
|
`,va=function(Y){var Z=Y.doctype;if(!Z)return;Z.name.toLowerCase()!=="html",Z.publicId!==""};function Wa(Y){}function Ei(Y,Z){Wa(function(){Object(P.useEffect)(function(){try{Y()}catch(ie){Se(`
|
|
|
A setup problem was encountered.
|
|
|
|
|
|
> `+ie.message+`
|
|
|
`)}},Z)})}function Pi(){Ei(function(){Cr(mo.react,g.a.version),va(document)},[])}function $a(Y){var Z=Object(P.useRef)(Y);return Object(P.useEffect)(function(){Z.current=Y}),Z}function xi(){var Y=null;function Z(){return Boolean(Y)}function ie(ze){return ze===Y}function ye(ze){Y&&$(!1);var Ve={abandon:ze};return Y=Ve,Ve}function Ne(){Y||$(!1),Y=null}function ke(){Y&&(Y.abandon(),Ne())}return{isClaimed:Z,isActive:ie,claim:ye,release:Ne,tryAbandon:ke}}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(Y){ms[Y.keyCode]&&Y.preventDefault()},gs=function(){var Y="visibilitychange";if(typeof document=="undefined")return Y;var Z=[Y,"ms"+Y,"webkit"+Y,"moz"+Y,"o"+Y],ie=st(Z,function(ye){return"on"+ye in document});return ie||Y}(),Zs=0,Ps=5;function Ho(Y,Z){return Math.abs(Z.x-Y.x)>=Ps||Math.abs(Z.y-Y.y)>=Ps}var vs={type:"IDLE"};function _s(Y){var Z=Y.cancel,ie=Y.completed,ye=Y.getPhase,Ne=Y.setPhase;return[{eventName:"mousemove",fn:function(ze){var Ve=ze.button,xt=ze.clientX,Ut=ze.clientY;if(Ve!==Zs)return;var Wt={x:xt,y:Ut},Tt=ye();if(Tt.type==="DRAGGING"){ze.preventDefault(),Tt.actions.move(Wt);return}Tt.type==="PENDING"||$(!1);var St=Tt.point;if(!Ho(St,Wt))return;ze.preventDefault();var kt=Tt.actions.fluidLift(Wt);Ne({type:"DRAGGING",actions:kt})}},{eventName:"mouseup",fn:function(ze){var Ve=ye();if(Ve.type!=="DRAGGING"){Z();return}ze.preventDefault(),Ve.actions.drop({shouldBlockNextClick:!0}),ie()}},{eventName:"mousedown",fn:function(ze){ye().type==="DRAGGING"&&ze.preventDefault(),Z()}},{eventName:"keydown",fn:function(ze){var Ve=ye();if(Ve.type==="PENDING"){Z();return}if(ze.keyCode===Qa){ze.preventDefault(),Z();return}Rs(ze)}},{eventName:"resize",fn:Z},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){ye().type==="PENDING"&&Z()}},{eventName:"webkitmouseforcedown",fn:function(ze){var Ve=ye();if(Ve.type!=="IDLE"||$(!1),Ve.actions.shouldRespectForcePress()){Z();return}ze.preventDefault()}},{eventName:gs,fn:Z}]}function $s(Y){var Z=Object(P.useRef)(vs),ie=Object(P.useRef)(Te),ye=f(function(){return{eventName:"mousedown",fn:function(Tt){if(Tt.defaultPrevented)return;if(Tt.button!==Zs)return;if(Tt.ctrlKey||Tt.metaKey||Tt.shiftKey||Tt.altKey)return;var St=Y.findClosestDraggableId(Tt);if(!St)return;var kt=Y.tryGetLock(St,ze,{sourceEvent:Tt});if(!kt)return;Tt.preventDefault();var hn={x:Tt.clientX,y:Tt.clientY};ie.current(),Ut(kt,hn)}}},[Y]),Ne=f(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(Tt){if(Tt.defaultPrevented)return;var St=Y.findClosestDraggableId(Tt);if(!St)return;var kt=Y.findOptionsForDraggable(St);if(!kt)return;if(kt.shouldRespectForcePress)return;if(!Y.canGetLock(St))return;Tt.preventDefault()}}},[Y]),ke=a(function(){var Tt={passive:!1,capture:!0};ie.current=be(window,[Ne,ye],Tt)},[Ne,ye]),ze=a(function(){var Wt=Z.current;if(Wt.type==="IDLE")return;Z.current=vs,ie.current(),ke()},[ke]),Ve=a(function(){var Wt=Z.current;ze(),Wt.type==="DRAGGING"&&Wt.actions.cancel({shouldBlockNextClick:!0}),Wt.type==="PENDING"&&Wt.actions.abort()},[ze]),xt=a(function(){var Tt={capture:!0,passive:!1},St=_s({cancel:Ve,completed:ze,getPhase:function(){return Z.current},setPhase:function(hn){Z.current=hn}});ie.current=be(window,St,Tt)},[Ve,ze]),Ut=a(function(Tt,St){Z.current.type==="IDLE"||$(!1),Z.current={type:"PENDING",point:St,actions:Tt},xt()},[xt]);ai(function(){return ke(),function(){ie.current()}},[ke])}var Ao;function el(){}var Ll=(Ao={},Ao[Pl]=!0,Ao[Ys]=!0,Ao[Ds]=!0,Ao[hs]=!0,Ao);function tl(Y,Z){function ie(){Z(),Y.cancel()}function ye(){Z(),Y.drop()}return[{eventName:"keydown",fn:function(ke){if(ke.keyCode===Qa){ke.preventDefault(),ie();return}if(ke.keyCode===As){ke.preventDefault(),ye();return}if(ke.keyCode===Il){ke.preventDefault(),Y.moveDown();return}if(ke.keyCode===Ml){ke.preventDefault(),Y.moveUp();return}if(ke.keyCode===Qs){ke.preventDefault(),Y.moveRight();return}if(ke.keyCode===Js){ke.preventDefault(),Y.moveLeft();return}if(Ll[ke.keyCode]){ke.preventDefault();return}Rs(ke)}},{eventName:"mousedown",fn:ie},{eventName:"mouseup",fn:ie},{eventName:"click",fn:ie},{eventName:"touchstart",fn:ie},{eventName:"resize",fn:ie},{eventName:"wheel",fn:ie,options:{passive:!0}},{eventName:gs,fn:ie}]}function gi(Y){var Z=Object(P.useRef)(el),ie=f(function(){return{eventName:"keydown",fn:function(ke){if(ke.defaultPrevented)return;if(ke.keyCode!==As)return;var ze=Y.findClosestDraggableId(ke);if(!ze)return;var Ve=Y.tryGetLock(ze,Wt,{sourceEvent:ke});if(!Ve)return;ke.preventDefault();var xt=!0,Ut=Ve.snapLift();Z.current();function Wt(){xt||$(!1),xt=!1,Z.current(),ye()}Z.current=be(window,tl(Ut,Wt),{capture:!0,passive:!1})}}},[Y]),ye=a(function(){var ke={passive:!1,capture:!0};Z.current=be(window,[ie],ke)},[ie]);ai(function(){return ye(),function(){Z.current()}},[ye])}var Ko={type:"IDLE"},nl=120,rl=.15;function al(Y){var Z=Y.cancel,ie=Y.getPhase;return[{eventName:"orientationchange",fn:Z},{eventName:"resize",fn:Z},{eventName:"contextmenu",fn:function(Ne){Ne.preventDefault()}},{eventName:"keydown",fn:function(Ne){if(ie().type!=="DRAGGING"){Z();return}Ne.keyCode===Qa&&Ne.preventDefault(),Z()}},{eventName:gs,fn:Z}]}function Go(Y){var Z=Y.cancel,ie=Y.completed,ye=Y.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(ke){var ze=ye();if(ze.type!=="DRAGGING"){Z();return}ze.hasMoved=!0;var Ve=ke.touches[0],xt=Ve.clientX,Ut=Ve.clientY,Wt={x:xt,y:Ut};ke.preventDefault(),ze.actions.move(Wt)}},{eventName:"touchend",fn:function(ke){var ze=ye();if(ze.type!=="DRAGGING"){Z();return}ke.preventDefault(),ze.actions.drop({shouldBlockNextClick:!0}),ie()}},{eventName:"touchcancel",fn:function(ke){if(ye().type!=="DRAGGING"){Z();return}ke.preventDefault(),Z()}},{eventName:"touchforcechange",fn:function(ke){var ze=ye();ze.type!=="IDLE"||$(!1);var Ve=ke.touches[0];if(!Ve)return;var xt=Ve.force>=rl;if(!xt)return;var Ut=ze.actions.shouldRespectForcePress();if(ze.type==="PENDING"){Ut&&Z();return}if(Ut){if(ze.hasMoved){ke.preventDefault();return}Z();return}ke.preventDefault()}},{eventName:gs,fn:Z}]}function bs(Y){var Z=Object(P.useRef)(Ko),ie=Object(P.useRef)(Te),ye=a(function(){return Z.current},[]),Ne=a(function(kt){Z.current=kt},[]),ke=f(function(){return{eventName:"touchstart",fn:function(kt){if(kt.defaultPrevented)return;var hn=Y.findClosestDraggableId(kt);if(!hn)return;var ur=Y.tryGetLock(hn,Ve,{sourceEvent:kt});if(!ur)return;var gr=kt.touches[0],kr=gr.clientX,Gr=gr.clientY,na={x:kr,y:Gr};ie.current(),Tt(ur,na)}}},[Y]),ze=a(function(){var kt={capture:!0,passive:!1};ie.current=be(window,[ke],kt)},[ke]),Ve=a(function(){var St=Z.current;if(St.type==="IDLE")return;St.type==="PENDING"&&clearTimeout(St.longPressTimerId),Ne(Ko),ie.current(),ze()},[ze,Ne]),xt=a(function(){var St=Z.current;Ve(),St.type==="DRAGGING"&&St.actions.cancel({shouldBlockNextClick:!0}),St.type==="PENDING"&&St.actions.abort()},[Ve]),Ut=a(function(){var kt={capture:!0,passive:!1},hn={cancel:xt,completed:Ve,getPhase:ye},ur=be(window,Go(hn),kt),gr=be(window,al(hn),kt);ie.current=function(){ur(),gr()}},[xt,ye,Ve]),Wt=a(function(){var kt=ye();kt.type==="PENDING"||$(!1);var hn=kt.actions.fluidLift(kt.point);Ne({type:"DRAGGING",actions:hn,hasMoved:!1})},[ye,Ne]),Tt=a(function(kt,hn){ye().type==="IDLE"||$(!1);var ur=setTimeout(Wt,nl);Ne({type:"PENDING",point:hn,actions:kt,longPressTimerId:ur}),Ut()},[Ut,ye,Ne,Wt]);ai(function(){return ze(),function(){ie.current();var hn=ye();hn.type==="PENDING"&&(clearTimeout(hn.longPressTimerId),Ne(Ko))}},[ye,ze,Ne]),ai(function(){var kt=be(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return kt},[])}function il(Y){Wa(function(){var Z=$a(Y);Ei(function(){Z.current.length===Y.length||$(!1)})})}var ol={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Ms(Y,Z){if(Z==null)return!1;var ie=Boolean(ol[Z.tagName.toLowerCase()]);if(ie)return!0;var ye=Z.getAttribute("contenteditable");return ye==="true"||ye===""?!0:Z===Y?!1:Ms(Y,Z.parentElement)}function zo(Y,Z){var ie=Z.target;return $i(ie)?Ms(Y,ie):!1}var sl=function(Y){return r(Y.getBoundingClientRect()).center};function ys(Y){return Y instanceof To(Y).Element}var ll=function(){var Y="matches";if(typeof document=="undefined")return Y;var Z=[Y,"msMatchesSelector","webkitMatchesSelector"],ie=st(Z,function(ye){return ye in Element.prototype});return ie||Y}();function Vo(Y,Z){return Y==null?null:Y[ll](Z)?Y:Vo(Y.parentElement,Z)}function Nl(Y,Z){return Y.closest?Y.closest(Z):Vo(Y,Z)}function Xo(Y){return"["+so.contextId+'="'+Y+'"]'}function ul(Y,Z){var ie=Z.target;if(!ys(ie))return null;var ye=Xo(Y),Ne=Nl(ie,ye);return Ne&&$i(Ne)?Ne:null}function cl(Y,Z){var ie=ul(Y,Z);return ie?ie.getAttribute(so.draggableId):null}function dl(Y,Z){var ie="["+So.contextId+'="'+Y+'"]',ye=Dt(document.querySelectorAll(ie)),Ne=st(ye,function(ke){return ke.getAttribute(So.id)===Z});return Ne&&$i(Ne)?Ne:null}function ts(Y){Y.preventDefault()}function Do(Y){var Z=Y.expected,ie=Y.phase,ye=Y.isLockActive,Ne=Y.shouldWarn;return ye()?!(Z!==ie):!1}function Yo(Y){var Z=Y.lockAPI,ie=Y.store,ye=Y.registry,Ne=Y.draggableId;if(Z.isClaimed())return!1;var ke=ye.draggable.findById(Ne);return ke&&ke.options.isEnabled?!!to(ie.getState(),Ne):!1}function ns(Y){var Z=Y.lockAPI,ie=Y.contextId,ye=Y.store,Ne=Y.registry,ke=Y.draggableId,ze=Y.forceSensorStop,Ve=Y.sourceEvent,xt=Yo({lockAPI:Z,store:ye,registry:Ne,draggableId:ke});if(!xt)return null;var Ut=Ne.draggable.getById(ke),Wt=dl(ie,Ut.descriptor.id);if(!Wt)return null;if(Ve&&!Ut.options.canDragInteractiveElements&&zo(Wt,Ve))return null;var Tt=Z.claim(ze||Te),St="PRE_DRAG";function kt(){return Ut.options.shouldRespectForcePress}function hn(){return Z.isActive(Tt)}function ur(Da,za){Do({expected:Da,phase:St,isLockActive:hn,shouldWarn:!0})&&ye.dispatch(za())}var gr=ur.bind(null,"DRAGGING");function kr(Da){function za(){Z.release(),St="COMPLETED"}St!=="PRE_DRAG"&&(za(),St==="PRE_DRAG"||$(!1)),ye.dispatch(zn(Da.liftActionArgs)),St="DRAGGING";function si(t,p){if(p===void 0&&(p={shouldBlockNextClick:!1}),Da.cleanup(),p.shouldBlockNextClick){var B=be(window,[{eventName:"click",fn:ts,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(B)}za(),ye.dispatch(ct({reason:t}))}return Object(b.a)({isActive:function(){return Do({expected:"DRAGGING",phase:St,isLockActive:hn,shouldWarn:!1})},shouldRespectForcePress:kt,drop:function(p){return si("DROP",p)},cancel:function(p){return si("CANCEL",p)}},Da.actions)}function Gr(Da){var za=L(function(t){gr(function(){return lr({client:t})})}),si=kr({liftActionArgs:{id:ke,clientSelection:Da,movementMode:"FLUID"},cleanup:function(){return za.cancel()},actions:{move:za}});return Object(b.a)({},si,{move:za})}function na(){var Da={moveUp:function(){return gr(_r)},moveRight:function(){return gr(Kr)},moveDown:function(){return gr(Sr)},moveLeft:function(){return gr(Jr)}};return kr({liftActionArgs:{id:ke,clientSelection:sl(Wt),movementMode:"SNAP"},cleanup:Te,actions:Da})}function Hr(){var Da=Do({expected:"PRE_DRAG",phase:St,isLockActive:hn,shouldWarn:!0});Da&&Z.release()}var Ia={isActive:function(){return Do({expected:"PRE_DRAG",phase:St,isLockActive:hn,shouldWarn:!1})},shouldRespectForcePress:kt,fluidLift:Gr,snapLift:na,abort:Hr};return Ia}var fl=[$s,gi,bs];function kl(Y){var Z=Y.contextId,ie=Y.store,ye=Y.registry,Ne=Y.customSensors,ke=Y.enableDefaultSensors,ze=[].concat(ke?fl:[],Ne||[]),Ve=Object(P.useState)(function(){return xi()})[0],xt=a(function(Gr,na){Gr.isDragging&&!na.isDragging&&Ve.tryAbandon()},[Ve]);ai(function(){var Gr=ie.getState(),na=ie.subscribe(function(){var Hr=ie.getState();xt(Gr,Hr),Gr=Hr});return na},[Ve,ie,xt]),ai(function(){return Ve.tryAbandon},[Ve.tryAbandon]);var Ut=a(function(kr){return Yo({lockAPI:Ve,registry:ye,store:ie,draggableId:kr})},[Ve,ye,ie]),Wt=a(function(kr,Gr,na){return ns({lockAPI:Ve,registry:ye,contextId:Z,store:ie,draggableId:kr,forceSensorStop:Gr,sourceEvent:na&&na.sourceEvent?na.sourceEvent:null})},[Z,Ve,ye,ie]),Tt=a(function(kr){return cl(Z,kr)},[Z]),St=a(function(kr){var Gr=ye.draggable.findById(kr);return Gr?Gr.options:null},[ye.draggable]),kt=a(function(){if(!Ve.isClaimed())return;Ve.tryAbandon(),ie.getState().phase!=="IDLE"&&ie.dispatch(Ta())},[Ve,ie]),hn=a(Ve.isClaimed,[Ve]),ur=f(function(){return{canGetLock:Ut,tryGetLock:Wt,findClosestDraggableId:Tt,findOptionsForDraggable:St,tryReleaseLock:kt,isLockClaimed:hn}},[Ut,Wt,Tt,St,kt,hn]);il(ze);for(var gr=0;gr<ze.length;gr++)ze[gr](ur)}var hl=function(Z){return{onBeforeCapture:Z.onBeforeCapture,onBeforeDragStart:Z.onBeforeDragStart,onDragStart:Z.onDragStart,onDragEnd:Z.onDragEnd,onDragUpdate:Z.onDragUpdate}};function Gi(Y){return Y.current||$(!1),Y.current}function Jo(Y){var Z=Y.contextId,ie=Y.setCallbacks,ye=Y.sensors,Ne=Y.nonce,ke=Y.dragHandleUsageInstructions,ze=Object(P.useRef)(null);Pi();var Ve=$a(Y),xt=a(function(){return hl(Ve.current)},[Ve]),Ut=ui(Z),Wt=po({contextId:Z,text:ke}),Tt=Bo(Z,Ne),St=a(function(t){Gi(ze).dispatch(t)},[]),kt=f(function(){return Object(y.b)({publishWhileDragging:Ln,updateDroppableScroll:cr,updateDroppableIsEnabled:sr,updateDroppableIsCombineEnabled:qr,collectionStarting:rr},St)},[St]),hn=Wo(),ur=f(function(){return Za(hn,kt)},[hn,kt]),gr=f(function(){return ko(Object(b.a)({scrollWindow:Mo,scrollDroppable:ur.scrollDroppable},Object(y.b)({move:lr},St)))},[ur.scrollDroppable,St]),kr=Oo(Z),Gr=f(function(){return Fa({announce:Ut,autoScroller:gr,dimensionMarshal:ur,focusMarshal:kr,getResponders:xt,styleMarshal:Tt})},[Ut,gr,ur,kr,xt,Tt]);ze.current=Gr;var na=a(function(){var t=Gi(ze),p=t.getState();p.phase!=="IDLE"&&t.dispatch(Ta())},[]),Hr=a(function(){var t=Gi(ze).getState();return t.isDragging||t.phase==="DROP_ANIMATING"},[]),Ia=f(function(){return{isDragging:Hr,tryAbort:na}},[Hr,na]);ie(Ia);var Da=a(function(t){return to(Gi(ze).getState(),t)},[]),za=a(function(){return nn(Gi(ze).getState())},[]),si=f(function(){return{marshal:ur,focus:kr,contextId:Z,canLift:Da,isMovementAllowed:za,dragHandleUsageInstructionsId:Wt,registry:hn}},[Z,ur,Wt,kr,Da,za,hn]);return kl({contextId:Z,store:Gr,registry:hn,customSensors:ye,enableDefaultSensors:Y.enableDefaultSensors!==!1}),Object(P.useEffect)(function(){return na},[na]),g.a.createElement(Hi.Provider,{value:si},g.a.createElement(x.a,{context:lo,store:Gr},Y.children))}var Qo=0;function Ul(){Qo=0}function pl(){return f(function(){return""+Qo++},[])}function iu(){Ul(),ho()}function jl(Y){var Z=pl(),ie=Y.dragHandleUsageInstructions||_e.dragHandleUsageInstructions;return g.a.createElement(me,null,function(ye){return g.a.createElement(Jo,{nonce:Y.nonce,contextId:Z,setCallbacks:ye,dragHandleUsageInstructions:ie,enableDefaultSensors:Y.enableDefaultSensors,sensors:Y.sensors,onBeforeCapture:Y.onBeforeCapture,onBeforeDragStart:Y.onBeforeDragStart,onDragStart:Y.onDragStart,onDragUpdate:Y.onDragUpdate,onDragEnd:Y.onDragEnd},Y.children)})}var Is=function(Z){return function(ie){return Z===ie}},Ti=Is("scroll"),ml=Is("auto"),Bl=Is("visible"),gl=function(Z,ie){return ie(Z.overflowX)||ie(Z.overflowY)},Fl=function(Z,ie){return ie(Z.overflowX)&&ie(Z.overflowY)},Ls=function(Z){var ie=window.getComputedStyle(Z),ye={overflowX:ie.overflowX,overflowY:ie.overflowY};return gl(ye,Ti)||gl(ye,ml)},vl=function(){return!1;var Z,ie;if(!Ls(Z))return!1;var ye,Ne;if(Fl(Ne,Bl))return!1},Ns=function Y(Z){return Z==null?null:Z===document.body?vl()?Z:null:Z===document.documentElement?null:Ls(Z)?Z:Y(Z.parentElement)},ou=function(Y){if(!Y)return;var Z=Ns(Y.parentElement);if(!Z)return},ks=function(Y){return{x:Y.scrollLeft,y:Y.scrollTop}},Wl=function Y(Z){if(!Z)return!1;var ie=window.getComputedStyle(Z);return ie.position==="fixed"?!0:Y(Z.parentElement)},Ro=function(Y){var Z=Ns(Y),ie=Wl(Y);return{closestScrollable:Z,isFixedOnPage:ie}},rs=function(Y){var Z=Y.descriptor,ie=Y.isEnabled,ye=Y.isCombineEnabled,Ne=Y.isFixedOnPage,ke=Y.direction,ze=Y.client,Ve=Y.page,xt=Y.closest,Ut=function(){if(!xt)return null;var kt=xt.scrollSize,hn=xt.client,ur=Ai({scrollHeight:kt.scrollHeight,scrollWidth:kt.scrollWidth,height:hn.paddingBox.height,width:hn.paddingBox.width});return{pageMarginBox:xt.page.marginBox,frameClient:hn,scrollSize:kt,shouldClipSubject:xt.shouldClipSubject,scroll:{initial:xt.scroll,current:xt.scroll,max:ur,diff:{value:Ae,displacement:Ae}}}}(),Wt=ke==="vertical"?on:mn,Tt=Ce({page:Ve,withPlaceholder:null,axis:Wt,frame:Ut}),St={descriptor:Z,isCombineEnabled:ye,isFixedOnPage:Ne,axis:Wt,isEnabled:ie,client:ze,page:Ve,frame:Ut,subject:Tt};return St},Es=function(Z,ie){var ye=R(Z);if(!ie)return ye;if(Z!==ie)return ye;var Ne=ye.paddingBox.top-ie.scrollTop,ke=ye.paddingBox.left-ie.scrollLeft,ze=Ne+ie.scrollHeight,Ve=ke+ie.scrollWidth,xt={top:Ne,right:Ve,bottom:ze,left:ke},Ut=i(xt,ye.border),Wt=d({borderBox:Ut,margin:ye.margin,border:ye.border,padding:ye.padding});return Wt},as=function(Y){var Z=Y.ref,ie=Y.descriptor,ye=Y.env,Ne=Y.windowScroll,ke=Y.direction,ze=Y.isDropDisabled,Ve=Y.isCombineEnabled,xt=Y.shouldClipSubject,Ut=ye.closestScrollable,Wt=Es(Z,Ut),Tt=E(Wt,Ne),St=function(){if(!Ut)return null;var hn=R(Ut),ur={scrollHeight:Ut.scrollHeight,scrollWidth:Ut.scrollWidth};return{client:hn,page:E(hn,Ne),scroll:ks(Ut),scrollSize:ur,shouldClipSubject:xt}}(),kt=rs({descriptor:ie,isEnabled:!ze,isCombineEnabled:Ve,isFixedOnPage:ye.isFixedOnPage,direction:ke,client:Wt,page:Tt,closest:St});return kt},vo={passive:!1},Hl={passive:!0},_l=function(Y){return Y.shouldPublishImmediately?vo:Hl};function _o(Y){var Z=Object(P.useContext)(Y);return Z||$(!1),Z}var is=function(Z){return Z&&Z.env.closestScrollable||null};function bl(Y){var Z=Object(P.useRef)(null),ie=_o(Hi),ye=wi("droppable"),Ne=ie.registry,ke=ie.marshal,ze=$a(Y),Ve=f(function(){return{id:Y.droppableId,type:Y.type,mode:Y.mode}},[Y.droppableId,Y.mode,Y.type]),xt=Object(P.useRef)(Ve),Ut=f(function(){return A(function(Hr,Ia){Z.current||$(!1);var Da={x:Hr,y:Ia};ke.updateDroppableScroll(Ve.id,Da)})},[Ve.id,ke]),Wt=a(function(){var Hr=Z.current;return!Hr||!Hr.env.closestScrollable?Ae:ks(Hr.env.closestScrollable)},[]),Tt=a(function(){var Hr=Wt();Ut(Hr.x,Hr.y)},[Wt,Ut]),St=f(function(){return L(Tt)},[Tt]),kt=a(function(){var Hr=Z.current,Ia=is(Hr);Hr&&Ia||$(!1);var Da=Hr.scrollOptions;if(Da.shouldPublishImmediately){Tt();return}St()},[St,Tt]),hn=a(function(Hr,Ia){Z.current&&$(!1);var Da=ze.current,za=Da.getDroppableRef();za||$(!1);var si=Ro(za),t={ref:za,descriptor:Ve,env:si,scrollOptions:Ia};Z.current=t;var p=as({ref:za,descriptor:Ve,env:si,windowScroll:Hr,direction:Da.direction,isDropDisabled:Da.isDropDisabled,isCombineEnabled:Da.isCombineEnabled,shouldClipSubject:!Da.ignoreContainerClipping}),B=si.closestScrollable;return B&&(B.setAttribute(jo.contextId,ie.contextId),B.addEventListener("scroll",kt,_l(t.scrollOptions))),p},[ie.contextId,Ve,kt,ze]),ur=a(function(){var Hr=Z.current,Ia=is(Hr);return Hr&&Ia||$(!1),ks(Ia)},[]),gr=a(function(){var Hr=Z.current;Hr||$(!1);var Ia=is(Hr);if(Z.current=null,!Ia)return;St.cancel(),Ia.removeAttribute(jo.contextId),Ia.removeEventListener("scroll",kt,_l(Hr.scrollOptions))},[kt,St]),kr=a(function(Hr){var Ia=Z.current;Ia||$(!1);var Da=is(Ia);Da||$(!1),Da.scrollTop+=Hr.y,Da.scrollLeft+=Hr.x},[]),Gr=f(function(){return{getDimensionAndWatchScroll:hn,getScrollWhileDragging:ur,dragStopped:gr,scroll:kr}},[gr,hn,ur,kr]),na=f(function(){return{uniqueId:ye,descriptor:Ve,callbacks:Gr}},[Gr,Ve,ye]);ai(function(){return xt.current=na.descriptor,Ne.droppable.register(na),function(){Z.current&&gr(),Ne.droppable.unregister(na)}},[Gr,Ve,gr,na,ke,Ne.droppable]),ai(function(){if(!Z.current)return;ke.updateDroppableIsEnabled(xt.current.id,!Y.isDropDisabled)},[Y.isDropDisabled,ke]),ai(function(){if(!Z.current)return;ke.updateDroppableIsCombineEnabled(xt.current.id,Y.isCombineEnabled)},[Y.isCombineEnabled,ke])}function xs(){}var os={width:0,height:0,margin:Pt},Zo=function(Z){var ie=Z.isAnimatingOpenOnMount,ye=Z.placeholder,Ne=Z.animate;return ie||Ne==="close"?os:{height:ye.client.borderBox.height,width:ye.client.borderBox.width,margin:ye.client.margin}},Us=function(Z){var ie=Z.isAnimatingOpenOnMount,ye=Z.placeholder,Ne=Z.animate,ke=Zo({isAnimatingOpenOnMount:ie,placeholder:ye,animate:Ne});return{display:ye.display,boxSizing:"border-box",width:ke.width,height:ke.height,marginTop:ke.margin.top,marginRight:ke.margin.right,marginBottom:ke.margin.bottom,marginLeft:ke.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:Ne!=="none"?Vt.placeholder:null}};function js(Y){var Z=Object(P.useRef)(null),ie=a(function(){if(!Z.current)return;clearTimeout(Z.current),Z.current=null},[]),ye=Y.animate,Ne=Y.onTransitionEnd,ke=Y.onClose,ze=Y.contextId,Ve=Object(P.useState)(Y.animate==="open"),xt=Ve[0],Ut=Ve[1];Object(P.useEffect)(function(){return xt?ye!=="open"?(ie(),Ut(!1),xs):Z.current?xs:(Z.current=setTimeout(function(){Z.current=null,Ut(!1)}),ie):xs},[ye,xt,ie]);var Wt=a(function(St){if(St.propertyName!=="height")return;Ne(),ye==="close"&&ke()},[ye,ke,Ne]),Tt=Us({isAnimatingOpenOnMount:xt,animate:Y.animate,placeholder:Y.placeholder});return g.a.createElement(Y.placeholder.tagName,{style:Tt,"data-rbd-placeholder-context-id":ze,onTransitionEnd:Wt,ref:Y.innerRef})}var Bs=g.a.memo(js),Fs=g.a.createContext(null);function qo(Y){Y&&$i(Y)||$(!1)}function Cs(Y){return typeof Y=="boolean"}function Ws(Y,Z){Z.forEach(function(ie){return ie(Y)})}var yl=[function(Z){var ie=Z.props;ie.droppableId||$(!1),typeof ie.droppableId=="string"||$(!1)},function(Z){var ie=Z.props;Cs(ie.isDropDisabled)||$(!1),Cs(ie.isCombineEnabled)||$(!1),Cs(ie.ignoreContainerClipping)||$(!1)},function(Z){var ie=Z.getDroppableRef;qo(ie())}],Ss=[function(Z){var ie=Z.props,ye=Z.getPlaceholderRef;if(!ie.placeholder)return;var Ne=ye();if(Ne)return}],Kl=[function(Z){var ie=Z.props;ie.renderClone||$(!1)},function(Z){var ie=Z.getPlaceholderRef;ie()&&$(!1)}];function Gl(Y){Ei(function(){Ws(Y,yl),Y.props.mode==="standard"&&Ws(Y,Ss),Y.props.mode==="virtual"&&Ws(Y,Kl)})}var ss=function(Y){Object(T.a)(Z,Y);function Z(){for(var ye,Ne=arguments.length,ke=new Array(Ne),ze=0;ze<Ne;ze++)ke[ze]=arguments[ze];return ye=Y.call.apply(Y,[this].concat(ke))||this,ye.state={isVisible:Boolean(ye.props.on),data:ye.props.on,animate:ye.props.shouldAnimate&&ye.props.on?"open":"none"},ye.onClose=function(){if(ye.state.animate!=="close")return;ye.setState({isVisible:!1})},ye}Z.getDerivedStateFromProps=function(Ne,ke){return Ne.shouldAnimate?Ne.on?{isVisible:!0,data:Ne.on,animate:"open"}:ke.isVisible?{isVisible:!0,data:ke.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(Ne.on),data:Ne.on,animate:"none"}};var ie=Z.prototype;return ie.render=function(){if(!this.state.isVisible)return null;var Ne={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(Ne)},Z}(g.a.PureComponent),Hs={dragging:5e3,dropAnimating:4500},El=function(Z,ie){return ie?Vt.drop(ie.duration):Z?Vt.snap:Vt.fluid},zl=function(Z,ie){return Z?ie?pt.opacity.drop:pt.opacity.combining:null},Ks=function(Z){return Z.forceShouldAnimate!=null?Z.forceShouldAnimate:Z.mode==="SNAP"};function xl(Y){var Z=Y.dimension,ie=Z.client,ye=Y.offset,Ne=Y.combineWith,ke=Y.dropping,ze=Boolean(Ne),Ve=Ks(Y),xt=Boolean(ke),Ut=xt?ln.drop(ye,ze):ln.moveTo(ye),Wt={position:"fixed",top:ie.marginBox.top,left:ie.marginBox.left,boxSizing:"border-box",width:ie.borderBox.width,height:ie.borderBox.height,transition:El(Ve,ke),transform:Ut,opacity:zl(ze,xt),zIndex:xt?Hs.dropAnimating:Hs.dragging,pointerEvents:"none"};return Wt}function Vl(Y){return{transform:ln.moveTo(Y.offset),transition:Y.shouldAnimateDisplacement?null:"none"}}function Cl(Y){return Y.type==="DRAGGING"?xl(Y):Vl(Y)}function Sl(Y,Z,ie){ie===void 0&&(ie=Ae);var ye=window.getComputedStyle(Z),Ne=Z.getBoundingClientRect(),ke=v(Ne,ye),ze=E(ke,ie),Ve={client:ke,tagName:Z.tagName.toLowerCase(),display:ye.display},xt={x:ke.marginBox.width,y:ke.marginBox.height},Ut={descriptor:Y,placeholder:Ve,displaceBy:xt,client:ke,page:ze};return Ut}function Xl(Y){var Z=wi("draggable"),ie=Y.descriptor,ye=Y.registry,Ne=Y.getDraggableRef,ke=Y.canDragInteractiveElements,ze=Y.shouldRespectForcePress,Ve=Y.isEnabled,xt=f(function(){return{canDragInteractiveElements:ke,shouldRespectForcePress:ze,isEnabled:Ve}},[ke,Ve,ze]),Ut=a(function(kt){var hn=Ne();return hn||$(!1),Sl(ie,hn,kt)},[ie,Ne]),Wt=f(function(){return{uniqueId:Z,descriptor:ie,options:xt,getDimension:Ut}},[ie,Ut,xt,Z]),Tt=Object(P.useRef)(Wt),St=Object(P.useRef)(!0);ai(function(){return ye.draggable.register(Tt.current),function(){return ye.draggable.unregister(Tt.current)}},[ye.draggable]),ai(function(){if(St.current){St.current=!1;return}var kt=Tt.current;Tt.current=Wt,ye.draggable.update(Wt,kt)},[Wt,ye.draggable])}function Gs(Y,Z,ie){Ei(function(){function ye(ke){return"Draggable[id: "+ke+"]: "}var Ne=Y.draggableId;if(Ne||$(!1),typeof Ne=="string"||$(!1),Fe(Y.index)||$(!1),Y.mapped.type==="DRAGGING")return;qo(ie()),Y.isEnabled&&(Wi(Z,Ne)||$(!1))})}function ls(Y){Wa(function(){var Z=Object(P.useRef)(Y);Ei(function(){Y===Z.current||$(!1)},[Y])})}function us(Y){Y.preventDefault()}function Yl(Y){var Z=Object(P.useRef)(null),ie=a(function(t){Z.current=t},[]),ye=a(function(){return Z.current},[]),Ne=_o(Hi),ke=Ne.contextId,ze=Ne.dragHandleUsageInstructionsId,Ve=Ne.registry,xt=_o(Fs),Ut=xt.type,Wt=xt.droppableId,Tt=f(function(){return{id:Y.draggableId,index:Y.index,type:Ut,droppableId:Wt}},[Y.draggableId,Y.index,Ut,Wt]),St=Y.children,kt=Y.draggableId,hn=Y.isEnabled,ur=Y.shouldRespectForcePress,gr=Y.canDragInteractiveElements,kr=Y.isClone,Gr=Y.mapped,na=Y.dropAnimationFinished;if(Gs(Y,ke,ye),ls(kr),!kr){var Hr=f(function(){return{descriptor:Tt,registry:Ve,getDraggableRef:ye,canDragInteractiveElements:gr,shouldRespectForcePress:ur,isEnabled:hn}},[Tt,Ve,ye,gr,ur,hn]);Xl(Hr)}var Ia=f(function(){return hn?{tabIndex:0,role:"button","aria-describedby":ze,"data-rbd-drag-handle-draggable-id":kt,"data-rbd-drag-handle-context-id":ke,draggable:!1,onDragStart:us}:null},[ke,ze,kt,hn]),Da=a(function(t){if(Gr.type!=="DRAGGING")return;if(!Gr.dropping)return;if(t.propertyName!=="transform")return;na()},[na,Gr]),za=f(function(){var t=Cl(Gr),p=Gr.type==="DRAGGING"&&Gr.dropping?Da:null,B={innerRef:ie,draggableProps:{"data-rbd-draggable-context-id":ke,"data-rbd-draggable-id":kt,style:t,onTransitionEnd:p},dragHandleProps:Ia};return B},[ke,Ia,kt,Gr,Da,ie]),si=f(function(){return{draggableId:Tt.id,type:Tt.type,source:{index:Tt.index,droppableId:Tt.droppableId}}},[Tt.droppableId,Tt.id,Tt.index,Tt.type]);return St(za,Gr.snapshot,si)}var zs=function(Y,Z){return Y===Z},wl=function(Y){var Z=Y.combine,ie=Y.destination;return ie?ie.droppableId:Z?Z.droppableId:null},Jl=function(Z){return Z.combine?Z.combine.draggableId:null},Ql=function(Z){return Z.at&&Z.at.type==="COMBINE"?Z.at.combine.draggableId:null};function Zl(){var Y=A(function(Ne,ke){return{x:Ne,y:ke}}),Z=A(function(Ne,ke,ze,Ve,xt){return{isDragging:!0,isClone:ke,isDropAnimating:Boolean(xt),dropAnimation:xt,mode:Ne,draggingOver:ze,combineWith:Ve,combineTargetFor:null}}),ie=A(function(Ne,ke,ze,Ve,xt,Ut,Wt){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:xt,combineWith:Ut,mode:ke,offset:Ne,dimension:ze,forceShouldAnimate:Wt,snapshot:Z(ke,Ve,xt,Ut,null)}}}),ye=function(ke,ze){if(ke.isDragging){if(ke.critical.draggable.id!==ze.draggableId)return null;var Ve=ke.current.client.offset,xt=ke.dimensions.draggables[ze.draggableId],Ut=Kt(ke.impact),Wt=Ql(ke.impact),Tt=ke.forceShouldAnimate;return ie(Y(Ve.x,Ve.y),ke.movementMode,xt,ze.isClone,Ut,Wt,Tt)}if(ke.phase==="DROP_ANIMATING"){var St=ke.completed;if(St.result.draggableId!==ze.draggableId)return null;var kt=ze.isClone,hn=ke.dimensions.draggables[ze.draggableId],ur=St.result,gr=ur.mode,kr=wl(ur),Gr=Jl(ur),na=ke.dropDuration,Hr={duration:na,curve:qe.drop,moveTo:ke.newHomeClientOffset,opacity:Gr?pt.opacity.drop:null,scale:Gr?pt.scale.drop:null};return{mapped:{type:"DRAGGING",offset:ke.newHomeClientOffset,dimension:hn,dropping:Hr,draggingOver:kr,combineWith:Gr,mode:gr,forceShouldAnimate:null,snapshot:Z(gr,kt,kr,Gr,Hr)}}}return null};return ye}function Vs(Y){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:Y,combineWith:null}}var ql={mapped:{type:"SECONDARY",offset:Ae,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Vs(null)}};function $l(){var Y=A(function(ze,Ve){return{x:ze,y:Ve}}),Z=A(Vs),ie=A(function(ze,Ve,xt){return Ve===void 0&&(Ve=null),{mapped:{type:"SECONDARY",offset:ze,combineTargetFor:Ve,shouldAnimateDisplacement:xt,snapshot:Z(Ve)}}}),ye=function(Ve){return Ve?ie(Ae,Ve,!0):null},Ne=function(Ve,xt,Ut,Wt){var Tt=Ut.displaced.visible[Ve],St=Boolean(Wt.inVirtualList&&Wt.effected[Ve]),kt=at(Ut),hn=kt&&kt.draggableId===Ve?xt:null;if(!Tt){if(!St)return ye(hn);if(Ut.displaced.invisible[Ve])return null;var ur=mt(Wt.displacedBy.point),gr=Y(ur.x,ur.y);return ie(gr,hn,!0)}if(St)return ye(hn);var kr=Ut.displacedBy.point,Gr=Y(kr.x,kr.y);return ie(Gr,hn,Tt.shouldAnimate)},ke=function(Ve,xt){if(Ve.isDragging)return Ve.critical.draggable.id===xt.draggableId?null:Ne(xt.draggableId,Ve.critical.draggable.id,Ve.impact,Ve.afterCritical);if(Ve.phase==="DROP_ANIMATING"){var Ut=Ve.completed;return Ut.result.draggableId===xt.draggableId?null:Ne(xt.draggableId,Ut.result.draggableId,Ut.impact,Ut.afterCritical)}return null};return ke}var Tl=function(){var Z=Zl(),ie=$l(),ye=function(ke,ze){return Z(ke,ze)||ie(ke,ze)||ql};return ye},Xs={dropAnimationFinished:nt},Ol=Object(x.c)(Tl,Xs,null,{context:lo,pure:!0,areStatePropsEqual:zs})(Yl);function Al(Y){var Z=_o(Fs),ie=Z.isUsingCloneFor;return ie===Y.draggableId&&!Y.isClone?null:g.a.createElement(Ol,Y)}function Dl(Y){var Z=typeof Y.isDragDisabled=="boolean"?!Y.isDragDisabled:!0,ie=Boolean(Y.disableInteractiveElementBlocking),ye=Boolean(Y.shouldRespectForcePress);return g.a.createElement(Al,Object(b.a)({},Y,{isClone:!1,isEnabled:Z,canDragInteractiveElements:ie,shouldRespectForcePress:ye}))}function $o(Y){var Z=Object(P.useContext)(Hi);Z||$(!1);var ie=Z.contextId,ye=Z.isMovementAllowed,Ne=Object(P.useRef)(null),ke=Object(P.useRef)(null),ze=Y.children,Ve=Y.droppableId,xt=Y.type,Ut=Y.mode,Wt=Y.direction,Tt=Y.ignoreContainerClipping,St=Y.isDropDisabled,kt=Y.isCombineEnabled,hn=Y.snapshot,ur=Y.useClone,gr=Y.updateViewportMaxScroll,kr=Y.getContainerForClone,Gr=a(function(){return Ne.current},[]),na=a(function(j){Ne.current=j},[]),Hr=a(function(){return ke.current},[]),Ia=a(function(j){ke.current=j},[]);Gl({props:Y,getDroppableRef:Gr,getPlaceholderRef:Hr});var Da=a(function(){ye()&&gr({maxScroll:bi()})},[ye,gr]);bl({droppableId:Ve,type:xt,mode:Ut,direction:Wt,isDropDisabled:St,isCombineEnabled:kt,ignoreContainerClipping:Tt,getDroppableRef:Gr});var za=g.a.createElement(ss,{on:Y.placeholder,shouldAnimate:Y.shouldAnimatePlaceholder},function(j){var G=j.onClose,ne=j.data,ge=j.animate;return g.a.createElement(Bs,{placeholder:ne,onClose:G,innerRef:Ia,animate:ge,contextId:ie,onTransitionEnd:Da})}),si=f(function(){return{innerRef:na,placeholder:za,droppableProps:{"data-rbd-droppable-id":Ve,"data-rbd-droppable-context-id":ie}}},[ie,Ve,za,na]),t=ur?ur.dragging.draggableId:null,p=f(function(){return{droppableId:Ve,type:xt,isUsingCloneFor:t}},[Ve,t,xt]);function B(){if(!ur)return null;var j=ur.dragging,G=ur.render,ne=g.a.createElement(Al,{draggableId:j.draggableId,index:j.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(ge,we){return G(ge,we,j)});return V.a.createPortal(ne,kr())}return g.a.createElement(Fs.Provider,{value:p},ze(si,hn),B())}var ws=function(Z,ie){return Z===ie.droppable.type},cs=function(Z,ie){return ie.draggables[Z.draggable.id]},eu=function(){var Z={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},ie=Object(b.a)({},Z,{shouldAnimatePlaceholder:!1}),ye=A(function(ze){return{draggableId:ze.id,type:ze.type,source:{index:ze.index,droppableId:ze.droppableId}}}),Ne=A(function(ze,Ve,xt,Ut,Wt,Tt){var St=Wt.descriptor.id,kt=Wt.descriptor.droppableId===ze;if(kt){var hn=Tt?{render:Tt,dragging:ye(Wt.descriptor)}:null,ur={isDraggingOver:xt,draggingOverWith:xt?St:null,draggingFromThisWith:St,isUsingPlaceholder:!0};return{placeholder:Wt.placeholder,shouldAnimatePlaceholder:!1,snapshot:ur,useClone:hn}}if(!Ve)return ie;if(!Ut)return Z;var gr={isDraggingOver:xt,draggingOverWith:St,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:Wt.placeholder,shouldAnimatePlaceholder:!0,snapshot:gr,useClone:null}}),ke=function(Ve,xt){var Ut=xt.droppableId,Wt=xt.type,Tt=!xt.isDropDisabled,St=xt.renderClone;if(Ve.isDragging){var kt=Ve.critical;if(!ws(Wt,kt))return ie;var hn=cs(kt,Ve.dimensions),ur=Kt(Ve.impact)===Ut;return Ne(Ut,Tt,ur,ur,hn,St)}if(Ve.phase==="DROP_ANIMATING"){var gr=Ve.completed;if(!ws(Wt,gr.critical))return ie;var kr=cs(gr.critical,Ve.dimensions);return Ne(Ut,Tt,wl(gr.result)===Ut,Kt(gr.impact)===Ut,kr,St)}if(Ve.phase==="IDLE"&&Ve.completed&&!Ve.shouldFlush){var Gr=Ve.completed;if(!ws(Wt,Gr.critical))return ie;var na=Kt(Gr.impact)===Ut,Hr=Boolean(Gr.impact.at&&Gr.impact.at.type==="COMBINE"),Ia=Gr.critical.droppable.id===Ut;return na?Hr?Z:ie:Ia?Z:ie}return ie};return ke},tu={updateViewportMaxScroll:Yr};function nu(){return document.body||$(!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},nnTU:function(k,z,o){"use strict";o.d(z,"b",function(){return O}),o.d(z,"a",function(){return m});var P=o("MI8n"),g=o("JYp7"),T=o("pmY6"),b=o("24hK"),y=o("746U"),x=o("Cg/j");const O=Object(x.c)("commandService"),m=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new P.b,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(e,f){if(!e)throw new Error("invalid command");if(typeof e=="string"){if(!f)throw new Error("invalid command");return this.registerCommand({id:e,handler:f})}if(e.description){const n=[];for(let h of e.description.args)n.push(h.constraint);const l=e.handler;e.handler=function(h,...d){return Object(y.o)(d,n),l(h,...d)}}const{id:a}=e;let u=this._commands.get(a);u||(u=new b.a,this._commands.set(a,u));let r=u.unshift(e),i=Object(T.i)(()=>{r();const n=this._commands.get(a);(n==null?void 0:n.isEmpty())&&this._commands.delete(a)});return this._onDidRegisterCommand.fire(a),i}registerCommandAlias(e,f){return m.registerCommand(e,(a,...u)=>a.get(O).executeCommand(f,...u))}getCommand(e){const f=this._commands.get(e);return!f||f.isEmpty()?void 0:g.a.first(f)}getCommands(){const e=new Map;for(const f of this._commands.keys()){const a=this.getCommand(f);a&&e.set(f,a)}return e}};m.registerCommand("noop",()=>{})},nukY:function(k,z){k.exports="data:image/png;base64,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"},oRuE:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(P){return P.pad.Iso10126={pad:function(g,T){var b=T*4,y=b-g.sigBytes%b;g.concat(P.lib.WordArray.random(y-1)).concat(P.lib.WordArray.create([y<<24],1))},unpad:function(g){var T=g.words[g.sigBytes-1>>>2]&255;g.sigBytes-=T}},P.pad.Iso10126})},oaGz:function(k,z,o){k.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(k,z,o){"use strict";o.d(z,"a",function(){return ma});var P=o("1OyB"),g=o("vuIU"),T=o("Ji7U"),b=o("LK+K"),y=o("rePB"),x=o("VTBJ"),O=o("ODXe"),m=o("q1tI"),e=o("TSYQ"),f=o.n(e),a=o("Kwbf"),u=o("6cGi"),r=o("U8pU"),i=o("4IlW"),n=m.createContext({}),l=n,h={visibility:"hidden"};function d(xe){var ut=xe.prefixCls,Rt=xe.prevIcon,wt=Rt===void 0?"\u2039":Rt,Kt=xe.nextIcon,Nt=Kt===void 0?"\u203A":Kt,Xt=xe.superPrevIcon,nn=Xt===void 0?"\xAB":Xt,yn=xe.superNextIcon,vn=yn===void 0?"\xBB":yn,Nn=xe.onSuperPrev,An=xe.onSuperNext,an=xe.onPrev,Pn=xe.onNext,bn=xe.children,kn=m.useContext(l),Rn=kn.hideNextBtn,Jn=kn.hidePrevBtn;return m.createElement("div",{className:ut},Nn&&m.createElement("button",{type:"button",onClick:Nn,tabIndex:-1,className:"".concat(ut,"-super-prev-btn"),style:Jn?h:{}},nn),an&&m.createElement("button",{type:"button",onClick:an,tabIndex:-1,className:"".concat(ut,"-prev-btn"),style:Jn?h:{}},wt),m.createElement("div",{className:"".concat(ut,"-view")},bn),Pn&&m.createElement("button",{type:"button",onClick:Pn,tabIndex:-1,className:"".concat(ut,"-next-btn"),style:Rn?h:{}},Nt),An&&m.createElement("button",{type:"button",onClick:An,tabIndex:-1,className:"".concat(ut,"-super-next-btn"),style:Rn?h:{}},vn))}var s=d;function c(xe){var ut=m.useContext(l),Rt=ut.hideHeader;if(Rt)return null;var wt=xe.prefixCls,Kt=xe.generateConfig,Nt=xe.locale,Xt=xe.value,nn=xe.format,yn="".concat(wt,"-header");return m.createElement(s,{prefixCls:yn},Xt?Kt.locale.format(Nt.locale,Xt,nn):"\xA0")}var w=c,E=o("YrtM"),v=o("KQm4"),R=new Map;function M(xe,ut,Rt){if(R.get(xe)&&cancelAnimationFrame(R.get(xe)),Rt<=0){R.set(xe,requestAnimationFrame(function(){xe.scrollTop=ut}));return}var wt=ut-xe.scrollTop,Kt=wt/Rt*10;R.set(xe,requestAnimationFrame(function(){xe.scrollTop+=Kt,xe.scrollTop!==ut&&M(xe,ut,Rt-10)}))}function C(xe,ut){var Rt=ut.onLeftRight,wt=ut.onCtrlLeftRight,Kt=ut.onUpDown,Nt=ut.onPageUpDown,Xt=ut.onEnter,nn=xe.which,yn=xe.ctrlKey,vn=xe.metaKey;switch(nn){case i.a.LEFT:if(yn||vn){if(wt)return wt(-1),!0}else if(Rt)return Rt(-1),!0;break;case i.a.RIGHT:if(yn||vn){if(wt)return wt(1),!0}else if(Rt)return Rt(1),!0;break;case i.a.UP:if(Kt)return Kt(-1),!0;break;case i.a.DOWN:if(Kt)return Kt(1),!0;break;case i.a.PAGE_UP:if(Nt)return Nt(-1),!0;break;case i.a.PAGE_DOWN:if(Nt)return Nt(1),!0;break;case i.a.ENTER:if(Xt)return Xt(),!0;break}return!1}function S(xe,ut,Rt,wt){var Kt=xe;if(!Kt)switch(ut){case"time":Kt=wt?"hh:mm:ss a":"HH:mm:ss";break;case"week":Kt="gggg-wo";break;case"month":Kt="YYYY-MM";break;case"quarter":Kt="YYYY-[Q]Q";break;case"year":Kt="YYYY";break;default:Kt=Rt?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return Kt}function _(xe,ut){var Rt=xe==="time"?8:10;return Math.max(Rt,ut.length)+2}var A=null,U=new Set;function L(xe){return!A&&typeof window!="undefined"&&window.addEventListener&&(A=function(Rt){Object(v.a)(U).forEach(function(wt){wt(Rt)})},window.addEventListener("mousedown",A)),U.add(xe),function(){U.delete(xe),U.size===0&&(window.removeEventListener("mousedown",A),A=null)}}var N=function(ut){return ut==="month"||ut==="date"?"year":ut},V=function(ut){return ut==="date"?"month":ut},H=function(ut){return ut==="month"||ut==="date"?"quarter":ut},D=function(ut){return ut==="date"?"week":ut},W={year:N,month:V,quarter:H,week:D,time:null,date:null};function F(xe,ut){return xe.some(function(Rt){return Rt&&Rt.contains(ut)})}function I(xe){var ut=xe.prefixCls,Rt=xe.units,wt=xe.onSelect,Kt=xe.value,Nt=xe.active,Xt=xe.hideDisabledOptions,nn="".concat(ut,"-cell"),yn=m.useContext(l),vn=yn.open,Nn=m.useRef(null),An=m.useRef(new Map);return m.useLayoutEffect(function(){var an=An.current.get(Kt);an&&vn!==!1&&M(Nn.current,an.offsetTop,120)},[Kt]),m.useLayoutEffect(function(){if(vn){var an=An.current.get(Kt);an&&M(Nn.current,an.offsetTop,0)}},[vn]),m.createElement("ul",{className:f()("".concat(ut,"-column"),Object(y.a)({},"".concat(ut,"-column-active"),Nt)),ref:Nn,style:{position:"relative"}},Rt.map(function(an){var Pn;return Xt&&an.disabled?null:m.createElement("li",{key:an.value,ref:function(kn){An.current.set(an.value,kn)},className:f()(nn,(Pn={},Object(y.a)(Pn,"".concat(nn,"-disabled"),an.disabled),Object(y.a)(Pn,"".concat(nn,"-selected"),Kt===an.value),Pn)),onClick:function(){if(an.disabled)return;wt(an.value)}},m.createElement("div",{className:"".concat(nn,"-inner")},an.label))}))}var K=I;function ee(xe,ut){for(var Rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",wt=String(xe);wt.length<ut;)wt="".concat(Rt).concat(xe);return wt}var he=function(){for(var ut=arguments.length,Rt=new Array(ut),wt=0;wt<ut;wt++)Rt[wt]=arguments[wt];return Rt};function de(xe){return xe==null?[]:Array.isArray(xe)?xe:[xe]}function Se(xe){var ut={};return Object.keys(xe).forEach(function(Rt){(Rt.substr(0,5)==="data-"||Rt.substr(0,5)==="aria-"||Rt==="role"||Rt==="name")&&Rt.substr(0,7)!=="data-__"&&(ut[Rt]=xe[Rt])}),ut}function Te(xe,ut){return xe?xe[ut]:null}function ce(xe,ut,Rt){var wt=[Te(xe,0),Te(xe,1)];return wt[Rt]=typeof ut=="function"?ut(wt[Rt]):ut,!wt[0]&&!wt[1]?null:wt}function be(xe,ut,Rt,wt,Kt){var Nt=xe.setHour(ut,Rt);return Nt=xe.setMinute(Nt,wt),Nt=xe.setSecond(Nt,Kt),Nt}function Ee(xe,ut,Rt,wt,Kt,Nt){var Xt=Math.floor(xe/wt)*wt;if(Xt<xe)return[Xt,60-Kt,60-Nt];var nn=Math.floor(ut/Kt)*Kt;if(nn<ut)return[Xt,nn,60-Nt];var yn=Math.floor(Rt/Nt)*Nt;return[Xt,nn,yn]}function ue(xe,ut){if(xe.length!==ut.length)return!0;for(var Rt=0;Rt<xe.length;Rt+=1)if(xe[Rt].disabled!==ut[Rt].disabled)return!0;return!1}function le(xe,ut,Rt,wt){for(var Kt=[],Nt=xe;Nt<=ut;Nt+=Rt)Kt.push({label:ee(Nt,2),value:Nt,disabled:(wt||[]).includes(Nt)});return Kt}function $(xe){var ut=xe.generateConfig,Rt=xe.prefixCls,wt=xe.operationRef,Kt=xe.activeColumnIndex,Nt=xe.value,Xt=xe.showHour,nn=xe.showMinute,yn=xe.showSecond,vn=xe.use12Hours,Nn=xe.hourStep,An=Nn===void 0?1:Nn,an=xe.minuteStep,Pn=an===void 0?1:an,bn=xe.secondStep,kn=bn===void 0?1:bn,Rn=xe.disabledHours,Jn=xe.disabledMinutes,mr=xe.disabledSeconds,Br=xe.hideDisabledOptions,Sn=xe.onSelect,Yt=[],dn="".concat(Rt,"-content"),Dn="".concat(Rt,"-time-panel"),en,wn=Nt?ut.getHour(Nt):-1,_n=Nt?ut.getMinute(Nt):-1,In=Nt?ut.getSecond(Nt):-1,Un=function(Zt,Jt,zn,$n){var Ln=Nt||ut.getNow(),rr=Math.max(0,Jt),cr=Math.max(0,zn),sr=Math.max(0,$n);return Ln=be(ut,Ln,!vn||!Zt?rr:rr+12,cr,sr),Ln},or=le(0,23,An,Rn&&Rn()),qn=Object(E.a)(function(){return or},or,ue);vn&&(en=wn>=12,wn%=12);var Pr=m.useMemo(function(){if(!vn)return[!1,!1];var Gt=[!0,!0];return qn.forEach(function(Zt){var Jt=Zt.disabled,zn=Zt.value;if(Jt)return;zn>=12?Gt[1]=!1:Gt[0]=!1}),Gt},[vn,qn]),Lr=Object(O.a)(Pr,2),Qn=Lr[0],Dr=Lr[1],vr=m.useMemo(function(){return vn?qn.filter(en?function(Gt){return Gt.value>=12}:function(Gt){return Gt.value<12}).map(function(Gt){var Zt=Gt.value%12,Jt=Zt===0?"12":ee(Zt,2);return Object(x.a)(Object(x.a)({},Gt),{},{label:Jt,value:Zt})}):qn},[vn,qn]),zr=le(0,59,Pn,Jn&&Jn(wn)),Nr=le(0,59,kn,mr&&mr(wn,_n));wt.current={onUpDown:function(Zt){var Jt=Yt[Kt];if(Jt)for(var zn=Jt.units.findIndex(function(cr){return cr.value===Jt.value}),$n=Jt.units.length,Ln=1;Ln<$n;Ln+=1){var rr=Jt.units[(zn+Zt*Ln+$n)%$n];if(rr.disabled!==!0){Jt.onSelect(rr.value);break}}}};function $r(Gt,Zt,Jt,zn,$n){Gt!==!1&&Yt.push({node:m.cloneElement(Zt,{prefixCls:Dn,value:Jt,active:Kt===Yt.length,onSelect:$n,units:zn,hideDisabledOptions:Br}),onSelect:$n,value:Jt,units:zn})}$r(Xt,m.createElement(K,{key:"hour"}),wn,vr,function(Gt){Sn(Un(en,Gt,_n,In),"mouse")}),$r(nn,m.createElement(K,{key:"minute"}),_n,zr,function(Gt){Sn(Un(en,wn,Gt,In),"mouse")}),$r(yn,m.createElement(K,{key:"second"}),In,Nr,function(Gt){Sn(Un(en,wn,_n,Gt),"mouse")});var tr=-1;return typeof en=="boolean"&&(tr=en?1:0),$r(vn===!0,m.createElement(K,{key:"12hours"}),tr,[{label:"AM",value:0,disabled:Qn},{label:"PM",value:1,disabled:Dr}],function(Gt){Sn(Un(!!Gt,wn,_n,In),"mouse")}),m.createElement("div",{className:dn},Yt.map(function(Gt){var Zt=Gt.node;return Zt}))}var me=$,re=function(ut){return ut.filter(function(Rt){return Rt!==!1}).length};function ae(xe){var ut=xe.generateConfig,Rt=xe.format,wt=Rt===void 0?"HH:mm:ss":Rt,Kt=xe.prefixCls,Nt=xe.active,Xt=xe.operationRef,nn=xe.showHour,yn=xe.showMinute,vn=xe.showSecond,Nn=xe.use12Hours,An=Nn===void 0?!1:Nn,an=xe.onSelect,Pn=xe.value,bn="".concat(Kt,"-time-panel"),kn=m.useRef(),Rn=m.useState(-1),Jn=Object(O.a)(Rn,2),mr=Jn[0],Br=Jn[1],Sn=re([nn,yn,vn,An]);return Xt.current={onKeyDown:function(dn){return C(dn,{onLeftRight:function(en){Br((mr+en+Sn)%Sn)},onUpDown:function(en){mr===-1?Br(0):kn.current&&kn.current.onUpDown(en)},onEnter:function(){an(Pn||ut.getNow(),"key"),Br(-1)}})},onBlur:function(){Br(-1)}},m.createElement("div",{className:f()(bn,Object(y.a)({},"".concat(bn,"-active"),Nt))},m.createElement(w,Object.assign({},xe,{format:wt,prefixCls:Kt})),m.createElement(me,Object.assign({},xe,{prefixCls:Kt,activeColumnIndex:mr,operationRef:kn})))}var Oe=ae,se=7;function te(xe,ut){return!xe&&!ut?!0:!xe||!ut?!1:void 0}function Q(xe,ut,Rt){var wt=te(ut,Rt);if(typeof wt=="boolean")return wt;var Kt=Math.floor(xe.getYear(ut)/10),Nt=Math.floor(xe.getYear(Rt)/10);return Kt===Nt}function J(xe,ut,Rt){var wt=te(ut,Rt);return typeof wt=="boolean"?wt:xe.getYear(ut)===xe.getYear(Rt)}function ve(xe,ut){var Rt=Math.floor(xe.getMonth(ut)/3);return Rt+1}function _e(xe,ut,Rt){var wt=te(ut,Rt);return typeof wt=="boolean"?wt:J(xe,ut,Rt)&&ve(xe,ut)===ve(xe,Rt)}function Ae(xe,ut,Rt){var wt=te(ut,Rt);return typeof wt=="boolean"?wt:J(xe,ut,Rt)&&xe.getMonth(ut)===xe.getMonth(Rt)}function Qe(xe,ut,Rt){var wt=te(ut,Rt);return typeof wt=="boolean"?wt:xe.getYear(ut)===xe.getYear(Rt)&&xe.getMonth(ut)===xe.getMonth(Rt)&&xe.getDate(ut)===xe.getDate(Rt)}function tt(xe,ut,Rt){var wt=te(ut,Rt);return typeof wt=="boolean"?wt:xe.getHour(ut)===xe.getHour(Rt)&&xe.getMinute(ut)===xe.getMinute(Rt)&&xe.getSecond(ut)===xe.getSecond(Rt)}function dt(xe,ut,Rt,wt){var Kt=te(Rt,wt);return typeof Kt=="boolean"?Kt:xe.locale.getWeek(ut,Rt)===xe.locale.getWeek(ut,wt)}function mt(xe,ut,Rt){return Qe(xe,ut,Rt)&&tt(xe,ut,Rt)}function vt(xe,ut,Rt,wt){return!ut||!Rt||!wt?!1:!Qe(xe,ut,wt)&&!Qe(xe,Rt,wt)&&xe.isAfter(wt,ut)&&xe.isAfter(Rt,wt)}function yt(xe,ut,Rt){var wt=ut.locale.getWeekFirstDay(xe),Kt=ut.setDate(Rt,1),Nt=ut.getWeekDay(Kt),Xt=ut.addDate(Kt,wt-Nt);return ut.getMonth(Xt)===ut.getMonth(Rt)&&ut.getDate(Xt)>1&&(Xt=ut.addDate(Xt,-7)),Xt}function Ye(xe,ut,Rt){var wt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(ut){case"year":return Rt.addYear(xe,wt*10);case"quarter":case"month":return Rt.addYear(xe,wt);default:return Rt.addMonth(xe,wt)}}var Ue=m.createContext({}),ft=Ue;function jt(xe){var ut=xe.cellPrefixCls,Rt=xe.generateConfig,wt=xe.rangedValue,Kt=xe.hoverRangedValue,Nt=xe.isInView,Xt=xe.isSameCell,nn=xe.offsetCell,yn=xe.today,vn=xe.value;function Nn(An){var an,Pn=nn(An,-1),bn=nn(An,1),kn=Te(wt,0),Rn=Te(wt,1),Jn=Te(Kt,0),mr=Te(Kt,1),Br=vt(Rt,Jn,mr,An);function Sn(_n){return Xt(kn,_n)}function Yt(_n){return Xt(Rn,_n)}var dn=Xt(Jn,An),Dn=Xt(mr,An),en=(Br||Dn)&&(!Nt(Pn)||Yt(Pn)),wn=(Br||dn)&&(!Nt(bn)||Sn(bn));return an={},Object(y.a)(an,"".concat(ut,"-in-view"),Nt(An)),Object(y.a)(an,"".concat(ut,"-in-range"),vt(Rt,kn,Rn,An)),Object(y.a)(an,"".concat(ut,"-range-start"),Sn(An)),Object(y.a)(an,"".concat(ut,"-range-end"),Yt(An)),Object(y.a)(an,"".concat(ut,"-range-start-single"),Sn(An)&&!Rn),Object(y.a)(an,"".concat(ut,"-range-end-single"),Yt(An)&&!kn),Object(y.a)(an,"".concat(ut,"-range-start-near-hover"),Sn(An)&&(Xt(Pn,Jn)||vt(Rt,Jn,mr,Pn))),Object(y.a)(an,"".concat(ut,"-range-end-near-hover"),Yt(An)&&(Xt(bn,mr)||vt(Rt,Jn,mr,bn))),Object(y.a)(an,"".concat(ut,"-range-hover"),Br),Object(y.a)(an,"".concat(ut,"-range-hover-start"),dn),Object(y.a)(an,"".concat(ut,"-range-hover-end"),Dn),Object(y.a)(an,"".concat(ut,"-range-hover-edge-start"),en),Object(y.a)(an,"".concat(ut,"-range-hover-edge-end"),wn),Object(y.a)(an,"".concat(ut,"-range-hover-edge-start-near-range"),en&&Xt(Pn,Rn)),Object(y.a)(an,"".concat(ut,"-range-hover-edge-end-near-range"),wn&&Xt(bn,kn)),Object(y.a)(an,"".concat(ut,"-today"),Xt(yn,An)),Object(y.a)(an,"".concat(ut,"-selected"),Xt(vn,An)),an}return Nn}function bt(xe){for(var ut=xe.prefixCls,Rt=xe.disabledDate,wt=xe.onSelect,Kt=xe.rowNum,Nt=xe.colNum,Xt=xe.prefixColumn,nn=xe.rowClassName,yn=xe.baseDate,vn=xe.getCellClassName,Nn=xe.getCellText,An=xe.getCellNode,an=xe.getCellDate,Pn=xe.titleCell,bn=xe.headerCells,kn=m.useContext(l),Rn=kn.onDateMouseEnter,Jn=kn.onDateMouseLeave,mr="".concat(ut,"-cell"),Br=[],Sn=0;Sn<Kt;Sn+=1){for(var Yt=[],dn=void 0,Dn=function(_n){var In=Sn*Nt+_n,Un=an(yn,In),or=Rt&&Rt(Un);_n===0&&(dn=Un,Xt&&Yt.push(Xt(dn))),Yt.push(m.createElement("td",{key:_n,title:Pn&&Pn(Un),className:f()(mr,Object(x.a)(Object(y.a)({},"".concat(mr,"-disabled"),or),vn(Un))),onClick:function(){or||wt(Un)},onMouseEnter:function(){!or&&Rn&&Rn(Un)},onMouseLeave:function(){!or&&Jn&&Jn(Un)}},An?An(Un):m.createElement("div",{className:"".concat(mr,"-inner")},Nn(Un))))},en=0;en<Nt;en+=1)Dn(en);Br.push(m.createElement("tr",{key:Sn,className:nn&&nn(dn)},Yt))}return m.createElement("div",{className:"".concat(ut,"-body")},m.createElement("table",{className:"".concat(ut,"-content")},bn&&m.createElement("thead",null,m.createElement("tr",null,bn)),m.createElement("tbody",null,Br)))}function Pt(xe){var ut=xe.prefixCls,Rt=xe.generateConfig,wt=xe.prefixColumn,Kt=xe.locale,Nt=xe.rowCount,Xt=xe.viewDate,nn=xe.value,yn=xe.dateRender,vn=m.useContext(ft),Nn=vn.rangedValue,An=vn.hoverRangedValue,an=yt(Kt.locale,Rt,Xt),Pn="".concat(ut,"-cell"),bn=Rt.locale.getWeekFirstDay(Kt.locale),kn=Rt.getNow(),Rn=[],Jn=Kt.shortWeekDays||(Rt.locale.getShortWeekDays?Rt.locale.getShortWeekDays(Kt.locale):[]);wt&&Rn.push(m.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var mr=0;mr<se;mr+=1)Rn.push(m.createElement("th",{key:mr},Jn[(mr+bn)%se]));var Br=jt({cellPrefixCls:Pn,today:kn,value:nn,generateConfig:Rt,rangedValue:wt?null:Nn,hoverRangedValue:wt?null:An,isSameCell:function(dn,Dn){return Qe(Rt,dn,Dn)},isInView:function(dn){return Ae(Rt,dn,Xt)},offsetCell:function(dn,Dn){return Rt.addDate(dn,Dn)}}),Sn=yn?function(Yt){return yn(Yt,kn)}:void 0;return m.createElement(bt,Object.assign({},xe,{rowNum:Nt,colNum:se,baseDate:an,getCellNode:Sn,getCellText:Rt.getDate,getCellClassName:Br,getCellDate:Rt.addDate,titleCell:function(dn){return Rt.locale.format(Kt.locale,dn,"YYYY-MM-DD")},headerCells:Rn}))}var it=Pt;function He(xe){var ut=xe.prefixCls,Rt=xe.generateConfig,wt=xe.locale,Kt=xe.viewDate,Nt=xe.onNextMonth,Xt=xe.onPrevMonth,nn=xe.onNextYear,yn=xe.onPrevYear,vn=xe.onYearClick,Nn=xe.onMonthClick,An=m.useContext(l),an=An.hideHeader;if(an)return null;var Pn="".concat(ut,"-header"),bn=wt.shortMonths||(Rt.locale.getShortMonths?Rt.locale.getShortMonths(wt.locale):[]),kn=Rt.getMonth(Kt),Rn=m.createElement("button",{type:"button",key:"year",onClick:vn,tabIndex:-1,className:"".concat(ut,"-year-btn")},Rt.locale.format(wt.locale,Kt,wt.yearFormat)),Jn=m.createElement("button",{type:"button",key:"month",onClick:Nn,tabIndex:-1,className:"".concat(ut,"-month-btn")},wt.monthFormat?Rt.locale.format(wt.locale,Kt,wt.monthFormat):bn[kn]),mr=wt.monthBeforeYear?[Jn,Rn]:[Rn,Jn];return m.createElement(s,Object.assign({},xe,{prefixCls:Pn,onSuperPrev:yn,onPrev:Xt,onNext:Nt,onSuperNext:nn}),mr)}var Ge=He,Ce=6;function Ie(xe){var ut=xe.prefixCls,Rt=xe.panelName,wt=Rt===void 0?"date":Rt,Kt=xe.keyboardConfig,Nt=xe.active,Xt=xe.operationRef,nn=xe.generateConfig,yn=xe.value,vn=xe.viewDate,Nn=xe.onViewDateChange,An=xe.onPanelChange,an=xe.onSelect,Pn="".concat(ut,"-").concat(wt,"-panel");Xt.current={onKeyDown:function(Jn){return C(Jn,Object(x.a)({onLeftRight:function(Br){an(nn.addDate(yn||vn,Br),"key")},onCtrlLeftRight:function(Br){an(nn.addYear(yn||vn,Br),"key")},onUpDown:function(Br){an(nn.addDate(yn||vn,Br*se),"key")},onPageUpDown:function(Br){an(nn.addMonth(yn||vn,Br),"key")}},Kt))}};var bn=function(Jn){var mr=nn.addYear(vn,Jn);Nn(mr),An(null,mr)},kn=function(Jn){var mr=nn.addMonth(vn,Jn);Nn(mr),An(null,mr)};return m.createElement("div",{className:f()(Pn,Object(y.a)({},"".concat(Pn,"-active"),Nt))},m.createElement(Ge,Object.assign({},xe,{prefixCls:ut,value:yn,viewDate:vn,onPrevYear:function(){bn(-1)},onNextYear:function(){bn(1)},onPrevMonth:function(){kn(-1)},onNextMonth:function(){kn(1)},onMonthClick:function(){An("month",vn)},onYearClick:function(){An("year",vn)}})),m.createElement(it,Object.assign({},xe,{onSelect:function(Jn){return an(Jn,"mouse")},prefixCls:ut,value:yn,viewDate:vn,rowCount:Ce})))}var Fe=Ie;function Be(xe,ut,Rt){if(!Rt)return ut;var wt=ut;return wt=xe.setHour(wt,xe.getHour(Rt)),wt=xe.setMinute(wt,xe.getMinute(Rt)),wt=xe.setSecond(wt,xe.getSecond(Rt)),wt}var We=he("date","time");function st(xe){var ut=xe.prefixCls,Rt=xe.operationRef,wt=xe.generateConfig,Kt=xe.value,Nt=xe.defaultValue,Xt=xe.disabledTime,nn=xe.showTime,yn=xe.onSelect,vn="".concat(ut,"-datetime-panel"),Nn=m.useState(null),An=Object(O.a)(Nn,2),an=An[0],Pn=An[1],bn=m.useRef({}),kn=m.useRef({}),Rn=Object(r.a)(nn)==="object"?Object(x.a)({},nn):{};function Jn(Yt){var dn=We.indexOf(an)+Yt,Dn=We[dn]||null;return Dn}var mr=function(dn){kn.current.onBlur&&kn.current.onBlur(dn),Pn(null)};Rt.current={onKeyDown:function(dn){if(dn.which===i.a.TAB){var Dn=Jn(dn.shiftKey?-1:1);return Pn(Dn),Dn&&dn.preventDefault(),!0}if(an){var en=an==="date"?bn:kn;return en.current&&en.current.onKeyDown&&en.current.onKeyDown(dn),!0}return[i.a.LEFT,i.a.RIGHT,i.a.UP,i.a.DOWN].includes(dn.which)?(Pn("date"),!0):!1},onBlur:mr,onClose:mr};var Br=function(dn,Dn){var en=dn;Dn==="date"&&!Kt&&Rn.defaultValue?(en=wt.setHour(en,wt.getHour(Rn.defaultValue)),en=wt.setMinute(en,wt.getMinute(Rn.defaultValue)),en=wt.setSecond(en,wt.getSecond(Rn.defaultValue))):Dn==="time"&&!Kt&&Nt&&(en=wt.setYear(en,wt.getYear(Nt)),en=wt.setMonth(en,wt.getMonth(Nt)),en=wt.setDate(en,wt.getDate(Nt))),yn&&yn(en,"mouse")},Sn=Xt?Xt(Kt||null):{};return m.createElement("div",{className:f()(vn,Object(y.a)({},"".concat(vn,"-active"),an))},m.createElement(Fe,Object.assign({},xe,{operationRef:bn,active:an==="date",onSelect:function(dn){Br(Be(wt,dn,nn&&Object(r.a)(nn)==="object"?nn.defaultValue:null),"date")}})),m.createElement(Oe,Object.assign({},xe,{format:void 0},Rn,Sn,{defaultValue:void 0,operationRef:kn,active:an==="time",onSelect:function(dn){Br(dn,"time")}})))}var Dt=st;function Ht(xe){var ut=xe.prefixCls,Rt=xe.generateConfig,wt=xe.locale,Kt=xe.value,Nt="".concat(ut,"-cell"),Xt=function(Nn){return m.createElement("td",{key:"week",className:f()(Nt,"".concat(Nt,"-week"))},Rt.locale.getWeek(wt.locale,Nn))},nn="".concat(ut,"-week-panel-row"),yn=function(Nn){return f()(nn,Object(y.a)({},"".concat(nn,"-selected"),dt(Rt,wt.locale,Kt,Nn)))};return m.createElement(Fe,Object.assign({},xe,{panelName:"week",prefixColumn:Xt,rowClassName:yn,keyboardConfig:{onLeftRight:null}}))}var rn=Ht;function Bt(xe){var ut=xe.prefixCls,Rt=xe.generateConfig,wt=xe.locale,Kt=xe.viewDate,Nt=xe.onNextYear,Xt=xe.onPrevYear,nn=xe.onYearClick,yn=m.useContext(l),vn=yn.hideHeader;if(vn)return null;var Nn="".concat(ut,"-header");return m.createElement(s,Object.assign({},xe,{prefixCls:Nn,onSuperPrev:Xt,onSuperNext:Nt}),m.createElement("button",{type:"button",onClick:nn,className:"".concat(ut,"-year-btn")},Rt.locale.format(wt.locale,Kt,wt.yearFormat)))}var Ct=Bt,Ke=3,et=4;function at(xe){var ut=xe.prefixCls,Rt=xe.locale,wt=xe.value,Kt=xe.viewDate,Nt=xe.generateConfig,Xt=xe.monthCellRender,nn=m.useContext(ft),yn=nn.rangedValue,vn=nn.hoverRangedValue,Nn="".concat(ut,"-cell"),An=jt({cellPrefixCls:Nn,value:wt,generateConfig:Nt,rangedValue:yn,hoverRangedValue:vn,isSameCell:function(Rn,Jn){return Ae(Nt,Rn,Jn)},isInView:function(){return!0},offsetCell:function(Rn,Jn){return Nt.addMonth(Rn,Jn)}}),an=Rt.shortMonths||(Nt.locale.getShortMonths?Nt.locale.getShortMonths(Rt.locale):[]),Pn=Nt.setMonth(Kt,0),bn=Xt?function(kn){return Xt(kn,Rt)}:void 0;return m.createElement(bt,Object.assign({},xe,{rowNum:et,colNum:Ke,baseDate:Pn,getCellNode:bn,getCellText:function(Rn){return Rt.monthFormat?Nt.locale.format(Rt.locale,Rn,Rt.monthFormat):an[Nt.getMonth(Rn)]},getCellClassName:An,getCellDate:Nt.addMonth,titleCell:function(Rn){return Nt.locale.format(Rt.locale,Rn,"YYYY-MM")}}))}var Pe=at;function Xe(xe){var ut=xe.prefixCls,Rt=xe.operationRef,wt=xe.onViewDateChange,Kt=xe.generateConfig,Nt=xe.value,Xt=xe.viewDate,nn=xe.onPanelChange,yn=xe.onSelect,vn="".concat(ut,"-month-panel");Rt.current={onKeyDown:function(an){return C(an,{onLeftRight:function(bn){yn(Kt.addMonth(Nt||Xt,bn),"key")},onCtrlLeftRight:function(bn){yn(Kt.addYear(Nt||Xt,bn),"key")},onUpDown:function(bn){yn(Kt.addMonth(Nt||Xt,bn*Ke),"key")},onEnter:function(){nn("date",Nt||Xt)}})}};var Nn=function(an){var Pn=Kt.addYear(Xt,an);wt(Pn),nn(null,Pn)};return m.createElement("div",{className:vn},m.createElement(Ct,Object.assign({},xe,{prefixCls:ut,onPrevYear:function(){Nn(-1)},onNextYear:function(){Nn(1)},onYearClick:function(){nn("year",Xt)}})),m.createElement(Pe,Object.assign({},xe,{prefixCls:ut,onSelect:function(an){yn(an,"mouse"),nn("date",an)}})))}var ht=Xe;function Et(xe){var ut=xe.prefixCls,Rt=xe.generateConfig,wt=xe.locale,Kt=xe.viewDate,Nt=xe.onNextYear,Xt=xe.onPrevYear,nn=xe.onYearClick,yn=m.useContext(l),vn=yn.hideHeader;if(vn)return null;var Nn="".concat(ut,"-header");return m.createElement(s,Object.assign({},xe,{prefixCls:Nn,onSuperPrev:Xt,onSuperNext:Nt}),m.createElement("button",{type:"button",onClick:nn,className:"".concat(ut,"-year-btn")},Rt.locale.format(wt.locale,Kt,wt.yearFormat)))}var Ot=Et,Mt=4,lt=1;function Ft(xe){var ut=xe.prefixCls,Rt=xe.locale,wt=xe.value,Kt=xe.viewDate,Nt=xe.generateConfig,Xt=m.useContext(ft),nn=Xt.rangedValue,yn=Xt.hoverRangedValue,vn="".concat(ut,"-cell"),Nn=jt({cellPrefixCls:vn,value:wt,generateConfig:Nt,rangedValue:nn,hoverRangedValue:yn,isSameCell:function(Pn,bn){return _e(Nt,Pn,bn)},isInView:function(){return!0},offsetCell:function(Pn,bn){return Nt.addMonth(Pn,bn*3)}}),An=Nt.setDate(Nt.setMonth(Kt,0),1);return m.createElement(bt,Object.assign({},xe,{rowNum:lt,colNum:Mt,baseDate:An,getCellText:function(Pn){return Nt.locale.format(Rt.locale,Pn,Rt.quarterFormat||"[Q]Q")},getCellClassName:Nn,getCellDate:function(Pn,bn){return Nt.addMonth(Pn,bn*3)},titleCell:function(Pn){return Nt.locale.format(Rt.locale,Pn,"YYYY-[Q]Q")}}))}var Lt=Ft;function on(xe){var ut=xe.prefixCls,Rt=xe.operationRef,wt=xe.onViewDateChange,Kt=xe.generateConfig,Nt=xe.value,Xt=xe.viewDate,nn=xe.onPanelChange,yn=xe.onSelect,vn="".concat(ut,"-quarter-panel");Rt.current={onKeyDown:function(an){return C(an,{onLeftRight:function(bn){yn(Kt.addMonth(Nt||Xt,bn*3),"key")},onCtrlLeftRight:function(bn){yn(Kt.addYear(Nt||Xt,bn),"key")},onUpDown:function(bn){yn(Kt.addYear(Nt||Xt,bn),"key")}})}};var Nn=function(an){var Pn=Kt.addYear(Xt,an);wt(Pn),nn(null,Pn)};return m.createElement("div",{className:vn},m.createElement(Ot,Object.assign({},xe,{prefixCls:ut,onPrevYear:function(){Nn(-1)},onNextYear:function(){Nn(1)},onYearClick:function(){nn("year",Xt)}})),m.createElement(Lt,Object.assign({},xe,{prefixCls:ut,onSelect:function(an){yn(an,"mouse")}})))}var mn=on;function Hn(xe){var ut=xe.prefixCls,Rt=xe.generateConfig,wt=xe.viewDate,Kt=xe.onPrevDecade,Nt=xe.onNextDecade,Xt=xe.onDecadeClick,nn=m.useContext(l),yn=nn.hideHeader;if(yn)return null;var vn="".concat(ut,"-header"),Nn=Rt.getYear(wt),An=Math.floor(Nn/ar)*ar,an=An+ar-1;return m.createElement(s,Object.assign({},xe,{prefixCls:vn,onSuperPrev:Kt,onSuperNext:Nt}),m.createElement("button",{type:"button",onClick:Xt,className:"".concat(ut,"-decade-btn")},An,"-",an))}var Xn=Hn,Fn=3,xn=4;function fr(xe){var ut=xe.prefixCls,Rt=xe.value,wt=xe.viewDate,Kt=xe.locale,Nt=xe.generateConfig,Xt=m.useContext(ft),nn=Xt.rangedValue,yn=Xt.hoverRangedValue,vn="".concat(ut,"-cell"),Nn=Nt.getYear(wt),An=Math.floor(Nn/ar)*ar,an=An+ar-1,Pn=Nt.setYear(wt,An-Math.ceil((Fn*xn-ar)/2)),bn=function(Jn){var mr=Nt.getYear(Jn);return An<=mr&&mr<=an},kn=jt({cellPrefixCls:vn,value:Rt,generateConfig:Nt,rangedValue:nn,hoverRangedValue:yn,isSameCell:function(Jn,mr){return J(Nt,Jn,mr)},isInView:bn,offsetCell:function(Jn,mr){return Nt.addYear(Jn,mr)}});return m.createElement(bt,Object.assign({},xe,{rowNum:xn,colNum:Fn,baseDate:Pn,getCellText:Nt.getYear,getCellClassName:kn,getCellDate:Nt.addYear,titleCell:function(Jn){return Nt.locale.format(Kt.locale,Jn,"YYYY")}}))}var Yn=fr,ar=10;function nr(xe){var ut=xe.prefixCls,Rt=xe.operationRef,wt=xe.onViewDateChange,Kt=xe.generateConfig,Nt=xe.value,Xt=xe.viewDate,nn=xe.sourceMode,yn=xe.onSelect,vn=xe.onPanelChange,Nn="".concat(ut,"-year-panel");Rt.current={onKeyDown:function(Pn){return C(Pn,{onLeftRight:function(kn){yn(Kt.addYear(Nt||Xt,kn),"key")},onCtrlLeftRight:function(kn){yn(Kt.addYear(Nt||Xt,kn*ar),"key")},onUpDown:function(kn){yn(Kt.addYear(Nt||Xt,kn*Fn),"key")},onEnter:function(){vn(nn==="date"?"date":"month",Nt||Xt)}})}};var An=function(Pn){var bn=Kt.addYear(Xt,Pn*10);wt(bn),vn(null,bn)};return m.createElement("div",{className:Nn},m.createElement(Xn,Object.assign({},xe,{prefixCls:ut,onPrevDecade:function(){An(-1)},onNextDecade:function(){An(1)},onDecadeClick:function(){vn("decade",Xt)}})),m.createElement(Yn,Object.assign({},xe,{prefixCls:ut,onSelect:function(Pn){vn(nn==="date"?"date":"month",Pn),yn(Pn,"mouse")}})))}var Rr=nr;function pr(xe){var ut=xe.prefixCls,Rt=xe.generateConfig,wt=xe.viewDate,Kt=xe.onPrevDecades,Nt=xe.onNextDecades,Xt=m.useContext(l),nn=Xt.hideHeader;if(nn)return null;var yn="".concat(ut,"-header"),vn=Rt.getYear(wt),Nn=Math.floor(vn/dr)*dr,An=Nn+dr-1;return m.createElement(s,Object.assign({},xe,{prefixCls:yn,onSuperPrev:Kt,onSuperNext:Nt}),Nn,"-",An)}var sn=pr,qt=3,On=4;function Fr(xe){var ut=xr-1,Rt=xe.prefixCls,wt=xe.viewDate,Kt=xe.generateConfig,Nt=xe.disabledDate,Xt="".concat(Rt,"-cell"),nn=Kt.getYear(wt),yn=Math.floor(nn/xr)*xr,vn=Math.floor(nn/dr)*dr,Nn=vn+dr-1,An=Kt.setYear(wt,vn-Math.ceil((qt*On*xr-dr)/2)),an=function(bn){var kn,Rn=Nt&&Nt(bn),Jn=Kt.getYear(bn),mr=Jn+ut;return kn={},Object(y.a)(kn,"".concat(Xt,"-disabled"),Rn),Object(y.a)(kn,"".concat(Xt,"-in-view"),vn<=Jn&&mr<=Nn),Object(y.a)(kn,"".concat(Xt,"-selected"),Jn===yn),kn};return m.createElement(bt,Object.assign({},xe,{rowNum:On,colNum:qt,baseDate:An,getCellText:function(bn){var kn=Kt.getYear(bn);return"".concat(kn,"-").concat(kn+ut)},getCellClassName:an,getCellDate:function(bn,kn){return Kt.addYear(bn,kn*xr)}}))}var Or=Fr,xr=10,dr=xr*10;function pe(xe){var ut=xe.prefixCls,Rt=xe.onViewDateChange,wt=xe.generateConfig,Kt=xe.viewDate,Nt=xe.operationRef,Xt=xe.onSelect,nn=xe.onPanelChange,yn="".concat(ut,"-decade-panel");Nt.current={onKeyDown:function(an){return C(an,{onLeftRight:function(bn){Xt(wt.addYear(Kt,bn*xr),"key")},onCtrlLeftRight:function(bn){Xt(wt.addYear(Kt,bn*dr),"key")},onUpDown:function(bn){Xt(wt.addYear(Kt,bn*xr*qt),"key")},onEnter:function(){nn("year",Kt)}})}};var vn=function(an){var Pn=wt.addYear(Kt,an*dr);Rt(Pn),nn(null,Pn)},Nn=function(an){Xt(an,"mouse"),nn("year",an)};return m.createElement("div",{className:yn},m.createElement(sn,Object.assign({},xe,{prefixCls:ut,onPrevDecades:function(){vn(-1)},onNextDecades:function(){vn(1)}})),m.createElement(Or,Object.assign({},xe,{prefixCls:ut,onSelect:Nn})))}var X=pe;function q(xe,ut,Rt){return Rt?m.createElement("div",{className:"".concat(xe,"-footer-extra")},Rt(ut)):null}function oe(xe){var ut=xe.prefixCls,Rt=xe.rangeList,wt=Rt===void 0?[]:Rt,Kt=xe.components,Nt=Kt===void 0?{}:Kt,Xt=xe.needConfirmButton,nn=xe.onNow,yn=xe.onOk,vn=xe.okDisabled,Nn=xe.showNow,An=xe.locale,an,Pn;if(wt.length){var bn=Nt.rangeItem||"span";an=m.createElement(m.Fragment,null,wt.map(function(Rn){var Jn=Rn.label,mr=Rn.onClick,Br=Rn.onMouseEnter,Sn=Rn.onMouseLeave;return m.createElement("li",{key:Jn,className:"".concat(ut,"-preset")},m.createElement(bn,{onClick:mr,onMouseEnter:Br,onMouseLeave:Sn},Jn))}))}if(Xt){var kn=Nt.button||"button";nn&&!an&&Nn!==!1&&(an=m.createElement("li",{className:"".concat(ut,"-now")},m.createElement("a",{className:"".concat(ut,"-now-btn"),onClick:nn},An.now))),Pn=Xt&&m.createElement("li",{className:"".concat(ut,"-ok")},m.createElement(kn,{disabled:vn,onClick:yn},An.ok))}return!an&&!Pn?null:m.createElement("ul",{className:"".concat(ut,"-ranges")},an,Pn)}function De(xe){var ut,Rt=xe.prefixCls,wt=Rt===void 0?"rc-picker":Rt,Kt=xe.className,Nt=xe.style,Xt=xe.locale,nn=xe.generateConfig,yn=xe.value,vn=xe.defaultValue,Nn=xe.pickerValue,An=xe.defaultPickerValue,an=xe.disabledDate,Pn=xe.mode,bn=xe.picker,kn=bn===void 0?"date":bn,Rn=xe.tabIndex,Jn=Rn===void 0?0:Rn,mr=xe.showNow,Br=xe.showTime,Sn=xe.showToday,Yt=xe.renderExtraFooter,dn=xe.hideHeader,Dn=xe.onSelect,en=xe.onChange,wn=xe.onPanelChange,_n=xe.onMouseDown,In=xe.onPickerValueChange,Un=xe.onOk,or=xe.components,qn=xe.direction,Pr=xe.hourStep,Lr=Pr===void 0?1:Pr,Qn=xe.minuteStep,Dr=Qn===void 0?1:Qn,vr=xe.secondStep,zr=vr===void 0?1:vr,Nr=kn==="date"&&!!Br||kn==="time",$r=24%Lr===0,tr=60%Dr===0,Gt=60%zr===0,Zt=m.useContext(l),Jt=Zt.operationRef,zn=Zt.panelRef,$n=Zt.onSelect,Ln=Zt.hideRanges,rr=Zt.defaultOpenValue,cr=m.useContext(ft),sr=cr.inRange,qr=cr.panelPosition,lr=cr.rangedValue,da=cr.hoverRangedValue,Yr=m.useRef({}),_r=m.useRef(!0),Sr=Object(u.a)(null,{value:yn,defaultValue:vn,postState:function(En){return!En&&rr&&kn==="time"?rr:En}}),Kr=Object(O.a)(Sr,2),Jr=Kr[0],Ta=Kr[1],_a=Object(u.a)(null,{value:Nn,defaultValue:An||Jr,postState:function(En){return En||nn.getNow()}}),Ze=Object(O.a)(_a,2),ct=Ze[0],_t=Ze[1],nt=function(En){_t(En),In&&In(En)},Me=function(En){var jn=W[kn];return jn?jn(En):En},Je=Object(u.a)(function(){return kn==="time"?"time":Me("date")},{value:Pn}),Le=Object(O.a)(Je,2),$e=Le[0],qe=Le[1];m.useEffect(function(){qe(kn)},[kn]);var pt=m.useState(function(){return $e}),rt=Object(O.a)(pt,2),It=rt[0],Vt=rt[1],fn=function(En,jn){var Vr=Me(En||$e);Vt($e),qe(Vr),wn&&($e!==Vr||mt(nn,ct,ct))&&wn(jn,Vr)},ln=function(En,jn){var Vr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;($e===kn||Vr)&&(Ta(En),Dn&&Dn(En),$n&&$n(En,jn),en&&!mt(nn,En,Jr)&&en(En))},cn=function(En){return Yr.current&&Yr.current.onKeyDown?([i.a.LEFT,i.a.RIGHT,i.a.UP,i.a.DOWN,i.a.PAGE_UP,i.a.PAGE_DOWN,i.a.ENTER].includes(En.which)&&En.preventDefault(),Yr.current.onKeyDown(En)):(Object(a.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},un=function(En){Yr.current&&Yr.current.onBlur&&Yr.current.onBlur(En)};Jt&&qr!=="right"&&(Jt.current={onKeyDown:cn,onClose:function(){Yr.current&&Yr.current.onClose&&Yr.current.onClose()}}),m.useEffect(function(){yn&&!_r.current&&_t(yn)},[yn]),m.useEffect(function(){_r.current=!1},[]);var Wn,Cn=Object(x.a)(Object(x.a)({},xe),{},{operationRef:Yr,prefixCls:wt,viewDate:ct,value:Jr,onViewDateChange:nt,sourceMode:It,onPanelChange:fn,disabledDate:$e!=="decade"?an:void 0});delete Cn.onChange,delete Cn.onSelect;switch($e){case"decade":Wn=m.createElement(X,Object.assign({},Cn,{onSelect:function(En,jn){nt(En),ln(En,jn)}}));break;case"year":Wn=m.createElement(Rr,Object.assign({},Cn,{onSelect:function(En,jn){nt(En),ln(En,jn)}}));break;case"month":Wn=m.createElement(ht,Object.assign({},Cn,{onSelect:function(En,jn){nt(En),ln(En,jn)}}));break;case"quarter":Wn=m.createElement(mn,Object.assign({},Cn,{onSelect:function(En,jn){nt(En),ln(En,jn)}}));break;case"week":Wn=m.createElement(rn,Object.assign({},Cn,{onSelect:function(En,jn){nt(En),ln(En,jn)}}));break;case"time":delete Cn.showTime,Wn=m.createElement(Oe,Object.assign({},Cn,Object(r.a)(Br)==="object"?Br:null,{onSelect:function(En,jn){nt(En),ln(En,jn)}}));break;default:Br?Wn=m.createElement(Dt,Object.assign({},Cn,{onSelect:function(En,jn){nt(En),ln(En,jn)}})):Wn=m.createElement(Fe,Object.assign({},Cn,{onSelect:function(En,jn){nt(En),ln(En,jn)}}))}var jr,Mr,Qr=function(){var En=nn.getNow(),jn=Ee(nn.getHour(En),nn.getMinute(En),nn.getSecond(En),$r?Lr:1,tr?Dr:1,Gt?zr:1),Vr=be(nn,En,jn[0],jn[1],jn[2]);ln(Vr,"submit")};Ln||(jr=q(wt,$e,Yt),Mr=oe({prefixCls:wt,components:or,needConfirmButton:Nr,okDisabled:!Jr||an&&an(Jr),locale:Xt,showNow:mr,onNow:Nr&&Qr,onOk:function(){Jr&&(ln(Jr,"submit",!0),Un&&Un(Jr))}}));var Wr;if(Sn&&$e==="date"&&kn==="date"&&!Br){var ta=nn.getNow(),Kn="".concat(wt,"-today-btn"),wr=an&&an(ta);Wr=m.createElement("a",{className:f()(Kn,wr&&"".concat(Kn,"-disabled")),"aria-disabled":wr,onClick:function(){wr||ln(ta,"mouse",!0)}},Xt.today)}return m.createElement(l.Provider,{value:Object(x.a)(Object(x.a)({},Zt),{},{hideHeader:"hideHeader"in xe?dn:Zt.hideHeader,hidePrevBtn:sr&&qr==="right",hideNextBtn:sr&&qr==="left"})},m.createElement("div",{tabIndex:Jn,className:f()("".concat(wt,"-panel"),Kt,(ut={},Object(y.a)(ut,"".concat(wt,"-panel-has-range"),lr&&lr[0]&&lr[1]),Object(y.a)(ut,"".concat(wt,"-panel-has-range-hover"),da&&da[0]&&da[1]),Object(y.a)(ut,"".concat(wt,"-panel-rtl"),qn==="rtl"),ut)),style:Nt,onKeyDown:cn,onBlur:un,onMouseDown:_n,ref:zn},Wn,jr||Mr||Wr?m.createElement("div",{className:"".concat(wt,"-footer")},jr,Mr,Wr):null))}var fe=De,ot=o("uciX"),Qt={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 Mn(xe){var ut,Rt=xe.prefixCls,wt=xe.popupElement,Kt=xe.popupStyle,Nt=xe.visible,Xt=xe.dropdownClassName,nn=xe.dropdownAlign,yn=xe.transitionName,vn=xe.getPopupContainer,Nn=xe.children,An=xe.range,an=xe.popupPlacement,Pn=xe.direction,bn="".concat(Rt,"-dropdown"),kn=function(){return an!==void 0?an:Pn==="rtl"?"bottomRight":"bottomLeft"};return m.createElement(ot.a,{showAction:[],hideAction:[],popupPlacement:kn(),builtinPlacements:Qt,prefixCls:bn,popupTransitionName:yn,popup:wt,popupAlign:nn,popupVisible:Nt,popupClassName:f()(Xt,(ut={},Object(y.a)(ut,"".concat(bn,"-range"),An),Object(y.a)(ut,"".concat(bn,"-rtl"),Pn==="rtl"),ut)),popupStyle:Kt,getPopupContainer:vn},Nn)}var Vn=Mn;function $t(xe){var ut=xe.open,Rt=xe.value,wt=xe.isClickOutside,Kt=xe.triggerOpen,Nt=xe.forwardKeyDown,Xt=xe.blurToCancel,nn=xe.onSubmit,yn=xe.onCancel,vn=xe.onFocus,Nn=xe.onBlur,An=Object(m.useState)(!1),an=Object(O.a)(An,2),Pn=an[0],bn=an[1],kn=Object(m.useState)(!1),Rn=Object(O.a)(kn,2),Jn=Rn[0],mr=Rn[1],Br=Object(m.useRef)(!1),Sn=Object(m.useRef)(!1),Yt={onMouseDown:function(){bn(!0),Kt(!0)},onKeyDown:function(Dn){switch(Dn.which){case i.a.ENTER:{ut?nn()!==!1&&bn(!0):Kt(!0),Dn.preventDefault();return}case i.a.TAB:{Pn&&ut&&!Dn.shiftKey?(bn(!1),Dn.preventDefault()):!Pn&&ut&&(!Nt(Dn)&&Dn.shiftKey&&(bn(!0),Dn.preventDefault()));return}case i.a.ESC:{bn(!0),yn();return}}!ut&&![i.a.SHIFT].includes(Dn.which)?Kt(!0):Pn||Nt(Dn)},onFocus:function(Dn){bn(!0),mr(!0),vn&&vn(Dn)},onBlur:function(Dn){if(Br.current||!wt(document.activeElement)){Br.current=!1;return}Xt?setTimeout(function(){wt(document.activeElement)&&yn()},0):ut&&(Kt(!1),Sn.current&&nn()),mr(!1),Nn&&Nn(Dn)}};return Object(m.useEffect)(function(){Sn.current=!1},[ut]),Object(m.useEffect)(function(){Sn.current=!0},[Rt]),Object(m.useEffect)(function(){return L(function(dn){var Dn=dn.target;ut&&(wt(Dn)?Jn||Kt(!1):(Br.current=!0,requestAnimationFrame(function(){Br.current=!1})))})}),[Yt,{focused:Jn,typing:Pn}]}function gn(xe){var ut=xe.valueTexts,Rt=xe.onTextChange,wt=m.useState(""),Kt=Object(O.a)(wt,2),Nt=Kt[0],Xt=Kt[1],nn=m.useRef([]);nn.current=ut;function yn(Nn){Xt(Nn),Rt(Nn)}function vn(){Xt(nn.current[0])}return m.useEffect(function(){ut.every(function(Nn){return Nn!==Nt})&&vn()},[ut.join("||")]),[Nt,yn,vn]}var pn=o("Gytx"),Ar=o.n(pn);function ra(xe,ut){var Rt=ut.formatList,wt=ut.generateConfig,Kt=ut.locale;return Object(E.a)(function(){if(!xe)return[[""],""];for(var Nt="",Xt=[],nn=0;nn<Rt.length;nn+=1){var yn=Rt[nn],vn=wt.locale.format(Kt.locale,xe,yn);Xt.push(vn),nn===0&&(Nt=vn)}return[Xt,Nt]},[xe,Rt],function(Nt,Xt){return Nt[0]!==Xt[0]||!Ar()(Nt[1],Xt[1])})}function oa(xe,ut){var Rt=ut.formatList,wt=ut.generateConfig,Kt=ut.locale,Nt=Object(m.useState)(null),Xt=Object(O.a)(Nt,2),nn=Xt[0],yn=Xt[1],vn=Object(m.useRef)(null);function Nn(Rn){var Jn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(vn.current),Jn){yn(Rn);return}vn.current=requestAnimationFrame(function(){yn(Rn)})}var An=ra(nn,{formatList:Rt,generateConfig:wt,locale:Kt}),an=Object(O.a)(An,2),Pn=an[1];function bn(Rn){Nn(Rn)}function kn(){var Rn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Nn(null,Rn)}return Object(m.useEffect)(function(){kn(!0)},[xe]),Object(m.useEffect)(function(){return function(){return cancelAnimationFrame(vn.current)}},[]),[Pn,bn,kn]}function ir(xe){var ut,Rt=xe.prefixCls,wt=Rt===void 0?"rc-picker":Rt,Kt=xe.id,Nt=xe.tabIndex,Xt=xe.style,nn=xe.className,yn=xe.dropdownClassName,vn=xe.dropdownAlign,Nn=xe.popupStyle,An=xe.transitionName,an=xe.generateConfig,Pn=xe.locale,bn=xe.inputReadOnly,kn=xe.allowClear,Rn=xe.autoFocus,Jn=xe.showTime,mr=xe.picker,Br=mr===void 0?"date":mr,Sn=xe.format,Yt=xe.use12Hours,dn=xe.value,Dn=xe.defaultValue,en=xe.open,wn=xe.defaultOpen,_n=xe.defaultOpenValue,In=xe.suffixIcon,Un=xe.clearIcon,or=xe.disabled,qn=xe.disabledDate,Pr=xe.placeholder,Lr=xe.getPopupContainer,Qn=xe.pickerRef,Dr=xe.panelRender,vr=xe.onChange,zr=xe.onOpenChange,Nr=xe.onFocus,$r=xe.onBlur,tr=xe.onMouseDown,Gt=xe.onMouseUp,Zt=xe.onMouseEnter,Jt=xe.onMouseLeave,zn=xe.onContextMenu,$n=xe.onClick,Ln=xe.direction,rr=xe.autoComplete,cr=rr===void 0?"off":rr,sr=m.useRef(null),qr=Br==="date"&&!!Jn||Br==="time",lr=de(S(Sn,Br,Jn,Yt)),da=m.useRef(null),Yr=m.useRef(null),_r=Object(u.a)(null,{value:dn,defaultValue:Dn}),Sr=Object(O.a)(_r,2),Kr=Sr[0],Jr=Sr[1],Ta=m.useState(Kr),_a=Object(O.a)(Ta,2),Ze=_a[0],ct=_a[1],_t=m.useRef(null),nt=Object(u.a)(!1,{value:en,defaultValue:wn,postState:function(er){return or?!1:er},onChange:function(er){zr&&zr(er),!er&&_t.current&&_t.current.onClose&&_t.current.onClose()}}),Me=Object(O.a)(nt,2),Je=Me[0],Le=Me[1],$e=ra(Ze,{formatList:lr,generateConfig:an,locale:Pn}),qe=Object(O.a)($e,2),pt=qe[0],rt=qe[1],It=gn({valueTexts:pt,onTextChange:function(er){var pa=an.locale.parse(Pn.locale,er,lr);pa&&(!qn||!qn(pa))&&ct(pa)}}),Vt=Object(O.a)(It,3),fn=Vt[0],ln=Vt[1],cn=Vt[2],un=function(er){ct(er),Jr(er),vr&&!mt(an,Kr,er)&&vr(er,er?an.locale.format(Pn.locale,er,lr[0]):"")},Wn=function(er){if(or&&er)return;Le(er)},Cn=function(er){return Je&&_t.current&&_t.current.onKeyDown?_t.current.onKeyDown(er):(Object(a.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},jr=function(){Gt&&Gt.apply(void 0,arguments),sr.current&&(sr.current.focus(),Wn(!0))},Mr=$t({blurToCancel:qr,open:Je,value:fn,triggerOpen:Wn,forwardKeyDown:Cn,isClickOutside:function(er){return!F([da.current,Yr.current],er)},onSubmit:function(){return qn&&qn(Ze)?!1:(un(Ze),Wn(!1),cn(),!0)},onCancel:function(){Wn(!1),ct(Kr),cn()},onFocus:Nr,onBlur:$r}),Qr=Object(O.a)(Mr,2),Wr=Qr[0],ta=Qr[1],Kn=ta.focused,wr=ta.typing;m.useEffect(function(){Je||(ct(Kr),!pt.length||pt[0]===""?ln(""):rt!==fn&&cn())},[Je,pt]),m.useEffect(function(){Je||cn()},[Br]),m.useEffect(function(){ct(Kr)},[Kr]),Qn&&(Qn.current={focus:function(){sr.current&&sr.current.focus()},blur:function(){sr.current&&sr.current.blur()}});var Gn=Object(x.a)(Object(x.a)({},xe),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),En=m.createElement(fe,Object.assign({},Gn,{generateConfig:an,className:f()(Object(y.a)({},"".concat(wt,"-panel-focused"),!wr)),value:Ze,locale:Pn,tabIndex:-1,onChange:ct,direction:Ln}));Dr&&(En=Dr(En));var jn=m.createElement("div",{className:"".concat(wt,"-panel-container"),onMouseDown:function(er){er.preventDefault()}},En),Vr;In&&(Vr=m.createElement("span",{className:"".concat(wt,"-suffix")},In));var ua;kn&&Kr&&!or&&(ua=m.createElement("span",{onMouseDown:function(er){er.preventDefault(),er.stopPropagation()},onMouseUp:function(er){er.preventDefault(),er.stopPropagation(),un(null),Wn(!1)},className:"".concat(wt,"-clear")},Un||m.createElement("span",{className:"".concat(wt,"-clear-btn")})));var hr=function(er,pa){(pa==="submit"||pa!=="key"&&!qr)&&(un(er),Wn(!1))},aa=Ln==="rtl"?"bottomRight":"bottomLeft",xa=oa(fn,{formatList:lr,generateConfig:an,locale:Pn}),ha=Object(O.a)(xa,3),Ca=ha[0],Tr=ha[1],br=ha[2];return m.createElement(l.Provider,{value:{operationRef:_t,hideHeader:Br==="time",panelRef:da,onSelect:hr,open:Je,defaultOpenValue:_n,onDateMouseEnter:Tr,onDateMouseLeave:br}},m.createElement(Vn,{visible:Je,popupElement:jn,popupStyle:Nn,prefixCls:wt,dropdownClassName:yn,dropdownAlign:vn,getPopupContainer:Lr,transitionName:An,popupPlacement:aa,direction:Ln},m.createElement("div",{className:f()(wt,nn,(ut={},Object(y.a)(ut,"".concat(wt,"-disabled"),or),Object(y.a)(ut,"".concat(wt,"-focused"),Kn),Object(y.a)(ut,"".concat(wt,"-rtl"),Ln==="rtl"),ut)),style:Xt,onMouseDown:tr,onMouseUp:jr,onMouseEnter:Zt,onMouseLeave:Jt,onContextMenu:zn,onClick:$n},m.createElement("div",{className:f()("".concat(wt,"-input"),Object(y.a)({},"".concat(wt,"-input-placeholder"),!!Ca)),ref:Yr},m.createElement("input",Object.assign({id:Kt,tabIndex:Nt,disabled:or,readOnly:bn||!wr,value:Ca||fn,onChange:function(er){ln(er.target.value)},autoFocus:Rn,placeholder:Pr,ref:sr,title:fn},Wr,{size:_(Br,lr[0])},Se(xe),{autoComplete:cr})),Vr,ua))))}var Ra=function(xe){Object(T.a)(Rt,xe);var ut=Object(b.a)(Rt);function Rt(){var wt;return Object(P.a)(this,Rt),wt=ut.apply(this,arguments),wt.pickerRef=m.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)(Rt,[{key:"render",value:function(){return m.createElement(ir,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Rt}(m.Component),La=Ra;function ca(xe,ut,Rt){var wt=xe.picker,Kt=xe.locale,Nt=xe.selectedValue,Xt=xe.disabledDate,nn=xe.disabled,yn=xe.generateConfig,vn=Te(Nt,0),Nn=Te(Nt,1);function An(Rn){var Jn=yn.getYear(Rn),mr=yn.locale.getWeek(Kt.locale,Rn);return Jn*100+mr}function an(Rn){var Jn=yn.getYear(Rn),mr=yn.getMonth(Rn);return Jn*100+mr}function Pn(Rn){var Jn=yn.getYear(Rn),mr=ve(yn,Rn);return Jn*10+mr}var bn=m.useCallback(function(Rn){if(Xt&&Xt(Rn))return!0;if(nn[1]&&Nn)return!Qe(yn,Rn,Nn)&&yn.isAfter(Rn,Nn);if(ut&&Nn)switch(wt){case"quarter":return Pn(Rn)>Pn(Nn);case"month":return an(Rn)>an(Nn);case"week":return An(Rn)>An(Nn);default:return!Qe(yn,Rn,Nn)&&yn.isAfter(Rn,Nn)}return!1},[Xt,nn[1],Nn,ut]),kn=m.useCallback(function(Rn){if(Xt&&Xt(Rn))return!0;if(nn[0]&&vn)return!Qe(yn,Rn,Nn)&&yn.isAfter(vn,Rn);if(Rt&&vn)switch(wt){case"quarter":return Pn(Rn)<Pn(vn);case"month":return an(Rn)<an(vn);case"week":return An(Rn)<An(vn);default:return!Qe(yn,Rn,vn)&&yn.isAfter(vn,Rn)}return!1},[Xt,nn[0],vn,Rt]);return[bn,kn]}function Ka(xe,ut,Rt,wt){var Kt=Ye(xe,Rt,wt,1);function Nt(Xt){return Xt(xe,ut)?"same":Xt(Kt,ut)?"closing":"far"}switch(Rt){case"year":return Nt(function(Xt,nn){return Q(wt,Xt,nn)});case"quarter":case"month":return Nt(function(Xt,nn){return J(wt,Xt,nn)});default:return Nt(function(Xt,nn){return Ae(wt,Xt,nn)})}}function wa(xe,ut,Rt,wt){var Kt=Te(xe,0),Nt=Te(xe,1);if(ut===0)return Kt;if(Kt&&Nt){var Xt=Ka(Kt,Nt,Rt,wt);switch(Xt){case"same":return Kt;case"closing":return Kt;default:return Ye(Nt,Rt,wt,-1)}}return Kt}function Ja(xe){var ut=xe.values,Rt=xe.picker,wt=xe.defaultDates,Kt=xe.generateConfig,Nt=m.useState(function(){return[Te(wt,0),Te(wt,1)]}),Xt=Object(O.a)(Nt,2),nn=Xt[0],yn=Xt[1],vn=m.useState(null),Nn=Object(O.a)(vn,2),An=Nn[0],an=Nn[1],Pn=Te(ut,0),bn=Te(ut,1);function kn(Jn){return nn[Jn]?nn[Jn]:Te(An,Jn)||wa(ut,Jn,Rt,Kt)||Pn||bn||Kt.getNow()}function Rn(Jn,mr){if(Jn){var Br=ce(An,Jn,mr);yn(ce(nn,null,mr)||[null,null]);var Sn=(mr+1)%2;Te(ut,Sn)||(Br=ce(Br,Jn,Sn)),an(Br)}else(Pn||bn)&&an(null)}return[kn,Rn]}function ja(xe,ut){return xe&&xe[0]&&xe[1]&&ut.isAfter(xe[0],xe[1])?[xe[1],xe[0]]:xe}function li(xe,ut,Rt,wt){return xe||wt&&wt[ut]?!0:!!Rt[(ut+1)%2]}function oi(xe){var ut,Rt,wt,Kt=xe.prefixCls,Nt=Kt===void 0?"rc-picker":Kt,Xt=xe.id,nn=xe.style,yn=xe.className,vn=xe.popupStyle,Nn=xe.dropdownClassName,An=xe.transitionName,an=xe.dropdownAlign,Pn=xe.getPopupContainer,bn=xe.generateConfig,kn=xe.locale,Rn=xe.placeholder,Jn=xe.autoFocus,mr=xe.disabled,Br=xe.format,Sn=xe.picker,Yt=Sn===void 0?"date":Sn,dn=xe.showTime,Dn=xe.use12Hours,en=xe.separator,wn=en===void 0?"~":en,_n=xe.value,In=xe.defaultValue,Un=xe.defaultPickerValue,or=xe.open,qn=xe.defaultOpen,Pr=xe.disabledDate,Lr=xe.disabledTime,Qn=xe.dateRender,Dr=xe.panelRender,vr=xe.ranges,zr=xe.allowEmpty,Nr=xe.allowClear,$r=xe.suffixIcon,tr=xe.clearIcon,Gt=xe.pickerRef,Zt=xe.inputReadOnly,Jt=xe.mode,zn=xe.renderExtraFooter,$n=xe.onChange,Ln=xe.onOpenChange,rr=xe.onPanelChange,cr=xe.onCalendarChange,sr=xe.onFocus,qr=xe.onBlur,lr=xe.onOk,da=xe.components,Yr=xe.order,_r=xe.direction,Sr=xe.activePickerIndex,Kr=xe.autoComplete,Jr=Kr===void 0?"off":Kr,Ta=Yt==="date"&&!!dn||Yt==="time",_a=Object(m.useRef)({}),Ze=Object(m.useRef)(null),ct=Object(m.useRef)(null),_t=Object(m.useRef)(null),nt=Object(m.useRef)(null),Me=Object(m.useRef)(null),Je=Object(m.useRef)(null),Le=Object(m.useRef)(null),$e=de(S(Br,Yt,dn,Dn)),qe=Object(u.a)(0,{value:Sr}),pt=Object(O.a)(qe,2),rt=pt[0],It=pt[1],Vt=Object(m.useRef)(null),fn=m.useMemo(function(){return Array.isArray(mr)?mr:[mr||!1,mr||!1]},[mr]),ln=Object(u.a)(null,{value:_n,defaultValue:In,postState:function(Cr){return Yt==="time"&&!Yr?Cr:ja(Cr,bn)}}),cn=Object(O.a)(ln,2),un=cn[0],Wn=cn[1],Cn=Ja({values:un,picker:Yt,defaultDates:Un,generateConfig:bn}),jr=Object(O.a)(Cn,2),Mr=jr[0],Qr=jr[1],Wr=Object(u.a)(un,{postState:function(Cr){var Zr=Cr;if(fn[0]&&fn[1])return Zr;for(var va=0;va<2;va+=1)fn[va]&&!Te(Zr,va)&&!Te(zr,va)&&(Zr=ce(Zr,bn.getNow(),va));return Zr}}),ta=Object(O.a)(Wr,2),Kn=ta[0],wr=ta[1],Gn=Object(u.a)([Yt,Yt],{value:Jt}),En=Object(O.a)(Gn,2),jn=En[0],Vr=En[1];Object(m.useEffect)(function(){Vr([Yt,Yt])},[Yt]);var ua=function(Cr,Zr){Vr(Cr),rr&&rr(Zr,Cr)},hr=ca({picker:Yt,selectedValue:Kn,locale:kn,disabled:fn,disabledDate:Pr,generateConfig:bn},_a.current[1],_a.current[0]),aa=Object(O.a)(hr,2),xa=aa[0],ha=aa[1],Ca=Object(u.a)(!1,{value:or,defaultValue:qn,postState:function(Cr){return fn[rt]?!1:Cr},onChange:function(Cr){Ln&&Ln(Cr),!Cr&&Vt.current&&Vt.current.onClose&&Vt.current.onClose()}}),Tr=Object(O.a)(Ca,2),br=Tr[0],Ir=Tr[1],er=br&&rt===0,pa=br&&rt===1,Ea=Object(m.useState)(0),ba=Object(O.a)(Ea,2),Oa=ba[0],ga=ba[1];Object(m.useEffect)(function(){!br&&Ze.current&&ga(Ze.current.offsetWidth)},[br]);var ka=m.useRef();function Ua(sa,Cr){if(sa)clearTimeout(ka.current),_a.current[Cr]=!0,It(Cr),Ir(sa),br||Qr(null,Cr);else if(rt===Cr){Ir(sa);var Zr=_a.current;ka.current=setTimeout(function(){Zr===_a.current&&(_a.current={})})}}function Fa(sa){Ua(!0,sa),setTimeout(function(){var Cr=[Je,Le][sa];Cr.current&&Cr.current.focus()},0)}function ni(sa,Cr){var Zr=sa,va=Te(Zr,0),Wa=Te(Zr,1);va&&Wa&&bn.isAfter(va,Wa)&&(Yt==="week"&&!dt(bn,kn.locale,va,Wa)||Yt==="quarter"&&!_e(bn,va,Wa)||Yt!=="week"&&Yt!=="quarter"&&Yt!=="time"&&!Qe(bn,va,Wa)?(Cr===0?(Zr=[va,null],Wa=null):(va=null,Zr=[null,Wa]),_a.current=Object(y.a)({},Cr,!0)):(Yt!=="time"||Yr!==!1)&&(Zr=ja(Zr,bn))),wr(Zr);var Ei=Zr&&Zr[0]?bn.locale.format(kn.locale,Zr[0],$e[0]):"",Pi=Zr&&Zr[1]?bn.locale.format(kn.locale,Zr[1],$e[0]):"";if(cr){var $a={range:Cr===0?"start":"end"};cr(Zr,[Ei,Pi],$a)}var xi=li(va,0,fn,zr),Ki=li(Wa,1,fn,zr),go=Zr===null||xi&&Ki;go&&(Wn(Zr),$n&&(!mt(bn,Te(un,0),va)||!mt(bn,Te(un,1),Wa))&&$n(Zr,[Ei,Pi]));var Qa=null;Cr===0&&!fn[1]?Qa=1:Cr===1&&!fn[0]&&(Qa=0),Qa!==null&&Qa!==rt&&(!_a.current[Qa]||!Te(Zr,Qa))&&Te(Zr,Cr)?Fa(Qa):Ua(!1,Cr)}var Fi=function(Cr){return br&&Vt.current&&Vt.current.onKeyDown?Vt.current.onKeyDown(Cr):(Object(a.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Ai={formatList:$e,generateConfig:bn,locale:kn},Na=ra(Te(Kn,0),Ai),bi=Object(O.a)(Na,2),Si=bi[0],Ba=bi[1],Ma=ra(Te(Kn,1),Ai),Za=Object(O.a)(Ma,2),to=Za[0],Mo=Za[1],Ii=function(Cr,Zr){var va=bn.locale.parse(kn.locale,Cr,$e),Wa=Zr===0?xa:ha;va&&!Wa(va)&&(wr(ce(Kn,va,Zr)),Qr(va,Zr))},no=gn({valueTexts:Si,onTextChange:function(Cr){return Ii(Cr,0)}}),ro=Object(O.a)(no,3),mi=ro[0],uo=ro[1],Io=ro[2],Lo=gn({valueTexts:to,onTextChange:function(Cr){return Ii(Cr,1)}}),bo=Object(O.a)(Lo,3),Vi=bo[0],co=bo[1],Xi=bo[2],Yi=Object(m.useState)(null),No=Object(O.a)(Yi,2),yo=No[0],ao=No[1],Ji=Object(m.useState)(null),Qi=Object(O.a)(Ji,2),ei=Qi[0],Li=Qi[1],Di=oa(mi,{formatList:$e,generateConfig:bn,locale:kn}),Zi=Object(O.a)(Di,3),Ri=Zi[0],Eo=Zi[1],xo=Zi[2],Co=oa(Vi,{formatList:$e,generateConfig:bn,locale:kn}),io=Object(O.a)(Co,3),Ni=io[0],qi=io[1],ko=io[2],oo=function(Cr){Li(ce(Kn,Cr,rt)),rt===0?Eo(Cr):qi(Cr)},so=function(){Li(ce(Kn,null,rt)),rt===0?xo():ko()},So=function(Cr,Zr){return{blurToCancel:Ta,forwardKeyDown:Fi,onBlur:qr,isClickOutside:function(Wa){return!F([ct.current,_t.current,nt.current],Wa)},onFocus:function(Wa){It(Cr),sr&&sr(Wa)},triggerOpen:function(Wa){Ua(Wa,Cr)},onSubmit:function(){ni(Kn,Cr),Zr()},onCancel:function(){Ua(!1,Cr),wr(un),Zr()}}},Uo=$t(Object(x.a)(Object(x.a)({},So(0,Io)),{},{open:er,value:mi})),jo=Object(O.a)(Uo,2),fi=jo[0],Ha=jo[1],ri=Ha.focused,Xa=Ha.typing,ai=$t(Object(x.a)(Object(x.a)({},So(1,Xi)),{},{open:pa,value:Vi})),wo=Object(O.a)(ai,2),yi=wo[0],Bo=wo[1],To=Bo.focused,$i=Bo.typing,Wi=function(Cr){!br&&!Je.current.contains(Cr.target)&&!Le.current.contains(Cr.target)&&(fn[0]?fn[1]||Fa(1):Fa(0))},Oo=function(Cr){br&&(ri||To)&&!Je.current.contains(Cr.target)&&!Le.current.contains(Cr.target)&&Cr.preventDefault()},fo=un&&un[0]?bn.locale.format(kn.locale,un[0],"YYYYMMDDHHmmss"):"",Wo=un&&un[1]?bn.locale.format(kn.locale,un[1],"YYYYMMDDHHmmss"):"";Object(m.useEffect)(function(){br||(wr(un),!Si.length||Si[0]===""?uo(""):Ba!==mi&&Io(),!to.length||to[0]===""?co(""):Mo!==Vi&&Xi())},[br,Si,to]),Object(m.useEffect)(function(){wr(un)},[fo,Wo]),Gt&&(Gt.current={focus:function(){Je.current&&Je.current.focus()},blur:function(){Je.current&&Je.current.blur(),Le.current&&Le.current.blur()}});var lo=Object.keys(vr||{}),Aa=lo.map(function(sa){var Cr=vr[sa],Zr=typeof Cr=="function"?Cr():Cr;return{label:sa,onClick:function(){ni(Zr,null),Ua(!1,rt)},onMouseEnter:function(){ao(Zr)},onMouseLeave:function(){ao(null)}}});function ya(){var sa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Cr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Zr=null;br&&ei&&ei[0]&&ei[1]&&bn.isAfter(ei[1],ei[0])&&(Zr=ei);var va=dn;if(dn&&Object(r.a)(dn)==="object"&&dn.defaultValue){var Wa=dn.defaultValue;va=Object(x.a)(Object(x.a)({},dn),{},{defaultValue:Te(Wa,rt)||void 0})}var Ei=null;return Qn&&(Ei=function($a,xi){return Qn($a,xi,{range:rt?"end":"start"})}),m.createElement(ft.Provider,{value:{inRange:!0,panelPosition:sa,rangedValue:yo||Kn,hoverRangedValue:Zr}},m.createElement(fe,Object.assign({},xe,Cr,{dateRender:Ei,showTime:va,mode:jn[rt],generateConfig:bn,style:void 0,direction:_r,disabledDate:rt===0?xa:ha,disabledTime:function($a){return Lr?Lr($a,rt===0?"start":"end"):!1},className:f()(Object(y.a)({},"".concat(Nt,"-panel-focused"),rt===0?!Xa:!$i)),value:Te(Kn,rt),locale:kn,tabIndex:-1,onPanelChange:function($a,xi){ua(ce(jn,xi,rt),ce(Kn,$a,rt));var Ki=$a;sa==="right"&&jn[rt]===xi&&(Ki=Ye(Ki,xi,bn,-1)),Qr(Ki,rt)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var Ga=0,ui=0;rt&&_t.current&&Me.current&&ct.current&&(Ga=_t.current.offsetWidth+Me.current.offsetWidth,ct.current.offsetWidth&&Ga>ct.current.offsetWidth&&(ui=Ga));var eo=_r==="rtl"?{right:Ga}:{left:Ga};function ki(){var sa,Cr=q(Nt,jn[rt],zn),Zr=oe({prefixCls:Nt,components:da,needConfirmButton:Ta,okDisabled:!Te(Kn,rt)||Pr&&Pr(Kn[rt]),locale:kn,rangeList:Aa,onOk:function(){Te(Kn,rt)&&(ni(Kn,rt),lr&&lr(Kn))}});if(Yt!=="time"&&!dn){var va=Mr(rt),Wa=Ye(va,Yt,bn),Ei=jn[rt],Pi=Ei===Yt,$a=ya(Pi?"left":!1,{pickerValue:va,onPickerValueChange:function(Qa){Qr(Qa,rt)}}),xi=ya("right",{pickerValue:Wa,onPickerValueChange:function(Qa){Qr(Ye(Qa,Yt,bn,-1),rt)}});_r==="rtl"?sa=m.createElement(m.Fragment,null,xi,Pi&&$a):sa=m.createElement(m.Fragment,null,$a,Pi&&xi)}else sa=ya();var Ki=m.createElement(m.Fragment,null,m.createElement("div",{className:"".concat(Nt,"-panels")},sa),(Cr||Zr)&&m.createElement("div",{className:"".concat(Nt,"-footer")},Cr,Zr));return Dr&&(Ki=Dr(Ki)),m.createElement("div",{className:"".concat(Nt,"-panel-container"),style:{marginLeft:ui},ref:ct,onMouseDown:function(Qa){Qa.preventDefault()}},Ki)}var ho=m.createElement("div",{className:f()("".concat(Nt,"-range-wrapper"),"".concat(Nt,"-").concat(Yt,"-range-wrapper")),style:{minWidth:Oa}},m.createElement("div",{className:"".concat(Nt,"-range-arrow"),style:eo}),ki()),wi;$r&&(wi=m.createElement("span",{className:"".concat(Nt,"-suffix")},$r));var qa;Nr&&(Te(un,0)&&!fn[0]||Te(un,1)&&!fn[1])&&(qa=m.createElement("span",{onMouseDown:function(Cr){Cr.preventDefault(),Cr.stopPropagation()},onMouseUp:function(Cr){Cr.preventDefault(),Cr.stopPropagation();var Zr=un;fn[0]||(Zr=ce(Zr,null,0)),fn[1]||(Zr=ce(Zr,null,1)),ni(Zr,null),Ua(!1,rt)},className:"".concat(Nt,"-clear")},tr||m.createElement("span",{className:"".concat(Nt,"-clear-btn")})));var po={size:_(Yt,$e[0])},Hi=0,mo=0;_t.current&&nt.current&&Me.current&&(rt===0?mo=_t.current.offsetWidth:(Hi=Ga,mo=nt.current.offsetWidth));var hi=_r==="rtl"?{right:Hi}:{left:Hi},Pa=function(Cr,Zr){var va=ce(Kn,Cr,rt);Zr==="submit"||Zr!=="key"&&!Ta?(ni(va,rt),rt===0?xo():ko()):wr(va)};return m.createElement(l.Provider,{value:{operationRef:Vt,hideHeader:Yt==="time",onDateMouseEnter:oo,onDateMouseLeave:so,hideRanges:!0,onSelect:Pa,open:br}},m.createElement(Vn,{visible:br,popupElement:ho,popupStyle:vn,prefixCls:Nt,dropdownClassName:Nn,dropdownAlign:an,getPopupContainer:Pn,transitionName:An,range:!0,direction:_r},m.createElement("div",Object.assign({ref:Ze,className:f()(Nt,"".concat(Nt,"-range"),yn,(ut={},Object(y.a)(ut,"".concat(Nt,"-disabled"),fn[0]&&fn[1]),Object(y.a)(ut,"".concat(Nt,"-focused"),rt===0?ri:To),Object(y.a)(ut,"".concat(Nt,"-rtl"),_r==="rtl"),ut)),style:nn,onClick:Wi,onMouseDown:Oo},Se(xe)),m.createElement("div",{className:f()("".concat(Nt,"-input"),(Rt={},Object(y.a)(Rt,"".concat(Nt,"-input-active"),rt===0),Object(y.a)(Rt,"".concat(Nt,"-input-placeholder"),!!Ri),Rt)),ref:_t},m.createElement("input",Object.assign({id:Xt,disabled:fn[0],readOnly:Zt||!Xa,value:Ri||mi,onChange:function(Cr){uo(Cr.target.value)},autoFocus:Jn,placeholder:Te(Rn,0)||"",ref:Je},fi,po,{autoComplete:Jr}))),m.createElement("div",{className:"".concat(Nt,"-range-separator"),ref:Me},wn),m.createElement("div",{className:f()("".concat(Nt,"-input"),(wt={},Object(y.a)(wt,"".concat(Nt,"-input-active"),rt===1),Object(y.a)(wt,"".concat(Nt,"-input-placeholder"),!!Ni),wt)),ref:nt},m.createElement("input",Object.assign({disabled:fn[1],readOnly:Zt||!$i,value:Ni||Vi,onChange:function(Cr){co(Cr.target.value)},placeholder:Te(Rn,1)||"",ref:Le},yi,po,{autoComplete:Jr}))),m.createElement("div",{className:"".concat(Nt,"-active-bar"),style:Object(x.a)(Object(x.a)({},hi),{},{width:mo,position:"absolute"})}),wi,qa)))}var fa=function(xe){Object(T.a)(Rt,xe);var ut=Object(b.a)(Rt);function Rt(){var wt;return Object(P.a)(this,Rt),wt=ut.apply(this,arguments),wt.pickerRef=m.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)(Rt,[{key:"render",value:function(){return m.createElement(oi,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Rt}(m.Component),ma=fa,la=z.b=La},onxn:function(k,z){k.exports="data:image/png;base64,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"},osHv:function(k,z,o){(function(P){P(o("VrN/"))})(function(P){"use strict";var g=P.Pos;function T(h,d){return h.line-d.line||h.ch-d.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 O(h,d,s,c){this.line=d,this.ch=s,this.cm=h,this.text=h.getLine(d),this.min=c?Math.max(c.from,h.firstLine()):h.firstLine(),this.max=c?Math.min(c.to-1,h.lastLine()):h.lastLine()}function m(h,d){var s=h.cm.getTokenTypeAt(g(h.line,d));return s&&/\btag\b/.test(s)}function e(h){return h.line>=h.max?void 0:(h.ch=0,h.text=h.cm.getLine(++h.line),!0)}function f(h){return h.line<=h.min?void 0:(h.text=h.cm.getLine(--h.line),h.ch=h.text.length,!0)}function a(h){for(;;){var d=h.text.indexOf(">",h.ch);if(d==-1){if(e(h))continue;return}if(!m(h,d+1)){h.ch=d+1;continue}var s=h.text.lastIndexOf("/",d),c=s>-1&&!/\S/.test(h.text.slice(s+1,d));return h.ch=d+1,c?"selfClose":"regular"}}function u(h){for(;;){var d=h.ch?h.text.lastIndexOf("<",h.ch-1):-1;if(d==-1){if(f(h))continue;return}if(!m(h,d+1)){h.ch=d;continue}x.lastIndex=d,h.ch=d;var s=x.exec(h.text);if(s&&s.index==d)return s}}function r(h){for(;;){x.lastIndex=h.ch;var d=x.exec(h.text);if(!d){if(e(h))continue;return}if(!m(h,d.index+1)){h.ch=d.index+1;continue}return h.ch=d.index+d[0].length,d}}function i(h){for(;;){var d=h.ch?h.text.lastIndexOf(">",h.ch-1):-1;if(d==-1){if(f(h))continue;return}if(!m(h,d+1)){h.ch=d;continue}var s=h.text.lastIndexOf("/",d),c=s>-1&&!/\S/.test(h.text.slice(s+1,d));return h.ch=d+1,c?"selfClose":"regular"}}function n(h,d){for(var s=[];;){var c=r(h),w,E=h.line,v=h.ch-(c?c[0].length:0);if(!c||!(w=a(h)))return;if(w=="selfClose")continue;if(c[1]){for(var R=s.length-1;R>=0;--R)if(s[R]==c[2]){s.length=R;break}if(R<0&&(!d||d==c[2]))return{tag:c[2],from:g(E,v),to:g(h.line,h.ch)}}else s.push(c[2])}}function l(h,d){for(var s=[];;){var c=i(h);if(!c)return;if(c=="selfClose"){u(h);continue}var w=h.line,E=h.ch,v=u(h);if(!v)return;if(v[1])s.push(v[2]);else{for(var R=s.length-1;R>=0;--R)if(s[R]==v[2]){s.length=R;break}if(R<0&&(!d||d==v[2]))return{tag:v[2],from:g(h.line,h.ch),to:g(w,E)}}}}P.registerHelper("fold","xml",function(h,d){for(var s=new O(h,d.line,0);;){var c=r(s);if(!c||s.line!=d.line)return;var w=a(s);if(!w)return;if(!c[1]&&w!="selfClose"){var E=g(s.line,s.ch),v=n(s,c[2]);return v&&T(v.from,E)>0?{from:E,to:v.from}:null}}}),P.findMatchingTag=function(h,d,s){var c=new O(h,d.line,d.ch,s);if(c.text.indexOf(">")==-1&&c.text.indexOf("<")==-1)return;var w=a(c),E=w&&g(c.line,c.ch),v=w&&u(c);if(!w||!v||T(c,d)>0)return;var R={from:g(c.line,c.ch),to:E,tag:v[2]};return w=="selfClose"?{open:R,close:null,at:"open"}:v[1]?{open:l(c,v[2]),close:R,at:"close"}:(c=new O(h,E.line,E.ch,s),{open:R,close:n(c,v[2]),at:"open"})},P.findEnclosingTag=function(h,d,s,c){for(var w=new O(h,d.line,d.ch,s);;){var E=l(w,c);if(!E)break;var v=new O(h,d.line,d.ch,s),R=n(v,E.tag);if(R)return{open:E,close:R}}},P.scanForClosingTag=function(h,d,s,c){var w=new O(h,d.line,d.ch,c?{from:0,to:c}:null);return n(w,s)}})},p5ED:function(k,z,o){"use strict";var P=o("+L6B"),g=o("2/Rp"),T=o("5Dmo"),b=o("3S7+"),y=o("k1fw"),x=o("tJVT"),O=o("q1tI"),m=o.n(O),e=o("vHTk"),f=o.n(e),a=o("yEEn"),u=o("ZW9T"),r=o("1vsH");z.a=function(i){var n=i.name,l=i.data,h=i.theme,d=i.type,s=i.filename,c=i.monacoEditor,w=i.className,E=i.style,v=i.close,R=i.onClose,M=i.hasMask,C=Object(O.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),S=Object(x.a)(C,2),_=S[0],A=S[1],U=Object(O.useState)(""),L=Object(x.a)(U,2),N=L[0],V=L[1],H,D=1024*1024,W=10*D,F=Object(O.useRef)();d==="office"&&(H=Object(r.T)(l).filesize,H>W&&(d="other")),s&&(c.filename=s),Object(O.useEffect)(function(){var ee,he,de=(ee=document.cookie)===null||ee===void 0||((he=ee.replace(/\s/g,""))===null||he===void 0)?void 0:he.split(";");de==null||de.map(function(Se){var Te=Se.split("=");Te[0]==="_educoder_session"&&V(Te[1])})},[]);var I=function(){if(l.startsWith("http")||l.startsWith("/")){K();return}Object(r.z)(s||"educoder",l,s)},K=function(){Object(r.x)(s||n,l)};return console.log("data:",l,"fileanme:",s," name:",n),m.a.createElement("div",{style:Object(y.a)({},E||{}),className:"".concat(M&&f.a.bgBlack," ").concat(d?f.a.wrp:"hide")},v&&m.a.createElement("div",{className:f.a.close,ref:F},m.a.createElement(b.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return F.current}},m.a.createElement("span",{onClick:K},m.a.createElement("i",{className:"icon-quxiaozhiding"}))),m.a.createElement(b.a,{title:"\u5173\u95ED",getPopupContainer:function(){return F.current}},m.a.createElement("span",{className:"",onClick:R},m.a.createElement("i",{className:"icon-guanbi1"})))),m.a.createElement("div",{className:"".concat(f.a[w]," ").concat(w," ").concat(f.a.monaco," ").concat(d==="txt"?"show":"hide")},d==="txt"&&m.a.createElement(u.b,c)),d==="audio"&&m.a.createElement("audio",{src:"".concat(l!=null&&l.startsWith("/")||(l==null?void 0:l.indexOf("https://"))>-1?l:"data:audio/mp3;base64,").concat(l),autoPlay:!0}),d==="video"&&m.a.createElement(m.a.Fragment,null,l!=null&&l.startsWith("/")?m.a.createElement("video",{controls:!0,src:"".concat(l),autoPlay:!0}):m.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(l),autoPlay:!0})),d==="html"&&m.a.createElement("iframe",{src:l+"&disposition=inline"}),d==="pdf"&&m.a.createElement("embed",{className:f.a.embed,src:l}),d==="image"&&m.a.createElement(m.a.Fragment,null,m.a.createElement("img",{src:"".concat(l!=null&&l.startsWith("/")||(l==null?void 0:l.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(l)})),d==="other"&&m.a.createElement("div",null,m.a.createElement(g.a,{type:"primary",size:"large",onClick:I},m.a.createElement(a.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),(d==="download"||d==="office")&&m.a.createElement(g.a,{type:"primary",size:"large",onClick:I},m.a.createElement(a.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(k,z,o){},pA7S:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(P){return function(){var g=P,T=g.lib,b=T.WordArray,y=T.BlockCipher,x=g.algo,O=[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],m=[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],e=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],f=[{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}],a=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],u=x.DES=y.extend({_doReset:function(){for(var l=this._key,h=l.words,d=[],s=0;s<56;s++){var c=O[s]-1;d[s]=h[c>>>5]>>>31-c%32&1}for(var w=this._subKeys=[],E=0;E<16;E++){for(var v=w[E]=[],R=e[E],s=0;s<24;s++)v[s/6|0]|=d[(m[s]-1+R)%28]<<31-s%6,v[4+(s/6|0)]|=d[28+(m[s+24]-1+R)%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 M=this._invSubKeys=[],s=0;s<16;s++)M[s]=w[15-s]},encryptBlock:function(l,h){this._doCryptBlock(l,h,this._subKeys)},decryptBlock:function(l,h){this._doCryptBlock(l,h,this._invSubKeys)},_doCryptBlock:function(l,h,d){this._lBlock=l[h],this._rBlock=l[h+1],r.call(this,4,252645135),r.call(this,16,65535),i.call(this,2,858993459),i.call(this,8,16711935),r.call(this,1,1431655765);for(var s=0;s<16;s++){for(var c=d[s],w=this._lBlock,E=this._rBlock,v=0,R=0;R<8;R++)v|=f[R][((E^c[R])&a[R])>>>0];this._lBlock=E,this._rBlock=w^v}var M=this._lBlock;this._lBlock=this._rBlock,this._rBlock=M,r.call(this,1,1431655765),i.call(this,8,16711935),i.call(this,2,858993459),r.call(this,16,65535),r.call(this,4,252645135),l[h]=this._lBlock,l[h+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function r(l,h){var d=(this._lBlock>>>l^this._rBlock)&h;this._rBlock^=d,this._lBlock^=d<<l}function i(l,h){var d=(this._rBlock>>>l^this._lBlock)&h;this._lBlock^=d,this._rBlock^=d<<l}g.DES=y._createHelper(u);var n=x.TripleDES=y.extend({_doReset:function(){var l=this._key,h=l.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 d=h.slice(0,2),s=h.length<4?h.slice(0,2):h.slice(2,4),c=h.length<6?h.slice(0,2):h.slice(4,6);this._des1=u.createEncryptor(b.create(d)),this._des2=u.createEncryptor(b.create(s)),this._des3=u.createEncryptor(b.create(c))},encryptBlock:function(l,h){this._des1.encryptBlock(l,h),this._des2.decryptBlock(l,h),this._des3.encryptBlock(l,h)},decryptBlock:function(l,h){this._des3.decryptBlock(l,h),this._des2.encryptBlock(l,h),this._des1.decryptBlock(l,h)},keySize:192/32,ivSize:64/32,blockSize:64/32});g.TripleDES=y._createHelper(n)}(),P.TripleDES})},pUFm:function(k,z,o){k.exports=o.p+"static/no-data.c803c40c.png"},pmY6:function(k,z,o){"use strict";o.d(z,"h",function(){return f}),o.d(z,"g",function(){return u}),o.d(z,"f",function(){return r}),o.d(z,"e",function(){return i}),o.d(z,"i",function(){return n}),o.d(z,"b",function(){return l}),o.d(z,"a",function(){return h}),o.d(z,"d",function(){return d}),o.d(z,"c",function(){return s});var P=o("C/vA"),g=o("JYp7");const T=!1;let b=null;function y(c){b=c}if(T){const c="__is_disposable_tracked__";y(new class{trackDisposable(w){const E=new Error("Potentially leaked disposable").stack;setTimeout(()=>{w[c]||console.log(E)},3e3)}setParent(w,E){if(w&&w!==h.None)try{w[c]=!0}catch(v){}}markAsDisposed(w){if(w&&w!==h.None)try{w[c]=!0}catch(E){}}markAsSingleton(w){}})}function x(c){return b==null||b.trackDisposable(c),c}function O(c){b==null||b.markAsDisposed(c)}function m(c,w){b==null||b.setParent(c,w)}function e(c,w){if(!b)return;for(const E of c)b.setParent(E,w)}function f(c){return b==null||b.markAsSingleton(c),c}class a extends Error{constructor(c){super(`Encountered errors while disposing of store. Errors: [${c.join(", ")}]`);this.errors=c}}function u(c){return typeof c.dispose=="function"&&c.dispose.length===0}function r(c){if(g.a.is(c)){let w=[];for(const E of c)if(E)try{E.dispose()}catch(v){w.push(v)}if(w.length===1)throw w[0];if(w.length>1)throw new a(w);return Array.isArray(c)?[]:c}else if(c)return c.dispose(),c}function i(...c){const w=n(()=>r(c));return e(c,w),w}function n(c){const w=x({dispose:Object(P.a)(()=>{O(w),c()})});return w}class l{constructor(){this._toDispose=new Set,this._isDisposed=!1,x(this)}dispose(){if(this._isDisposed)return;O(this),this._isDisposed=!0,this.clear()}clear(){try{r(this._toDispose.values())}finally{this._toDispose.clear()}}add(c){if(!c)return c;if(c===this)throw new Error("Cannot register a disposable on itself!");return m(c,this),this._isDisposed?l.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(c),c}}l.DISABLE_DISPOSED_WARNING=!1;class h{constructor(){this._store=new l,x(this),m(this._store,this)}dispose(){O(this),this._store.dispose()}_register(c){if(c===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(c)}}h.None=Object.freeze({dispose(){}});class d{constructor(){this._isDisposed=!1,x(this)}get value(){return this._isDisposed?void 0:this._value}set value(c){var w;if(this._isDisposed||c===this._value)return;(w=this._value)===null||w===void 0||w.dispose(),c&&m(c,this),this._value=c}clear(){this.value=void 0}dispose(){var c;this._isDisposed=!0,O(this),(c=this._value)===null||c===void 0||c.dispose(),this._value=void 0}clearAndLeak(){const c=this._value;return this._value=void 0,c&&m(c,null),c}}class s{constructor(c){this.object=c}dispose(){}}},psGv:function(k,z,o){var P,g;(function(){var T;(function(){"use strict";var O=[,,function(a){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 l=this.__items.length-1;l>=0;l--)if(this.__items[l].match(n))return!0;return!1},u.prototype.set_indent=function(n,l){this.is_empty()&&(this.__indent_count=n||0,this.__alignment_count=l||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 l=n.lastIndexOf(`
|
|
|
`);l!==-1?this.__character_count=n.length-l: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 r(n,l){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)),l=l||"",n.indent_level>0&&(l=new Array(n.indent_level+1).join(this.__indent_string)),this.__base_string=l,this.__base_string_length=l.length}r.prototype.get_indent_size=function(n,l){var h=this.__base_string_length;return l=l||0,n<0&&(h=0),h+=n*this.__indent_size,h+=l,h},r.prototype.get_indent_string=function(n,l){var h=this.__base_string;return l=l||0,n<0&&(n=0,h=""),l+=n*this.__indent_size,this.__ensure_cache(l),h+=this.__cache[l],h},r.prototype.__ensure_cache=function(n){for(;n>=this.__cache.length;)this.__add_column()},r.prototype.__add_column=function(){var n=this.__cache.length,l=0,h="";this.__indent_size&&n>=this.__indent_size&&(l=Math.floor(n/this.__indent_size),n-=l*this.__indent_size,h=new Array(l+1).join(this.__indent_string)),n&&(h+=new Array(n+1).join(" ")),this.__cache.push(h)};function i(n,l){this.__indent_cache=new r(n,l),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()}i.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},i.prototype.get_line_number=function(){return this.__lines.length},i.prototype.get_indent_string=function(n,l){return this.__indent_cache.get_indent_string(n,l)},i.prototype.get_indent_size=function(n,l){return this.__indent_cache.get_indent_size(n,l)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(n){return this.is_empty()||!n&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},i.prototype.get_code=function(n){this.trim(!0);var l=this.current_line.pop();l&&(l[l.length-1]===`
|
|
|
`&&(l=l.replace(/\n+$/g,"")),this.current_line.push(l)),this._end_with_newline&&this.__add_outputline();var h=this.__lines.join(`
|
|
|
`);return n!==`
|
|
|
`&&(h=h.replace(/[\n]/g,n)),h},i.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},i.prototype.set_indent=function(n,l){return n=n||0,l=l||0,this.next_line.set_indent(n,l),this.__lines.length>1?(this.current_line.set_indent(n,l),!0):(this.current_line.set_indent(),!1)},i.prototype.add_raw_token=function(n){for(var l=0;l<n.newlines;l++)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},i.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()},i.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(" "))},i.prototype.remove_indent=function(n){for(var l=this.__lines.length;n<l;)this.__lines[n]._remove_indent(),n++;this.current_line._remove_wrap_indent()},i.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},i.prototype.just_added_newline=function(){return this.current_line.is_empty()},i.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},i.prototype.ensure_empty_line_above=function(n,l){for(var h=this.__lines.length-2;h>=0;){var d=this.__lines[h];if(d.is_empty())break;if(d.item(0).indexOf(n)!==0&&d.item(-1)!==l){this.__lines.splice(h+1,0,new u(this)),this.previous_line=this.__lines[this.__lines.length-2];break}h--}},a.exports.Output=i},function(a){function u(r,i,n,l){this.type=r,this.text=i,this.comments_before=null,this.newlines=n||0,this.whitespace_before=l||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}a.exports.Token=u},,,function(a){function u(n,l){this.raw_options=r(n,l),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,l){var h=this.raw_options[n],d=l||[];return typeof h=="object"?h!==null&&typeof h.concat=="function"&&(d=h.concat()):typeof h=="string"&&(d=h.split(/[^a-zA-Z0-9_\/\-]+/)),d},u.prototype._get_boolean=function(n,l){var h=this.raw_options[n],d=h===void 0?!!l:!!h;return d},u.prototype._get_characters=function(n,l){var h=this.raw_options[n],d=l||"";return typeof h=="string"&&(d=h.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),d},u.prototype._get_number=function(n,l){var h=this.raw_options[n];l=parseInt(l,10),isNaN(l)&&(l=0);var d=parseInt(h,10);return isNaN(d)&&(d=l),d},u.prototype._get_selection=function(n,l,h){var d=this._get_selection_list(n,l,h);if(d.length!==1)throw new Error("Invalid Option Value: The option '"+n+`' can only be one of the following values:
|
|
|
`+l+`
|
|
|
You passed in: '`+this.raw_options[n]+"'");return d[0]},u.prototype._get_selection_list=function(n,l,h){if(!l||l.length===0)throw new Error("Selection list cannot be empty.");if(h=h||[l[0]],!this._is_valid_selection(h,l))throw new Error("Invalid Default Value!");var d=this._get_array(n,h);if(!this._is_valid_selection(d,l))throw new Error("Invalid Option Value: The option '"+n+`' can contain only the following values:
|
|
|
`+l+`
|
|
|
You passed in: '`+this.raw_options[n]+"'");return d},u.prototype._is_valid_selection=function(n,l){return n.length&&l.length&&!n.some(function(h){return l.indexOf(h)===-1})};function r(n,l){var h={};n=i(n);var d;for(d in n)d!==l&&(h[d]=n[d]);if(l&&n[l])for(d in n[l])h[d]=n[l][d];return h}function i(n){var l={},h;for(h in n){var d=h.replace(/-/g,"_");l[d]=n[h]}return l}a.exports.Options=u,a.exports.normalizeOpts=i,a.exports.mergeOpts=r},,function(a){var u=RegExp.prototype.hasOwnProperty("sticky");function r(i){this.__input=i||"",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 i=null;return this.hasNext()&&(i=this.__input.charAt(this.__position),this.__position+=1),i},r.prototype.peek=function(i){var n=null;return i=i||0,i+=this.__position,i>=0&&i<this.__input_length&&(n=this.__input.charAt(i)),n},r.prototype.__match=function(i,n){i.lastIndex=n;var l=i.exec(this.__input);return l&&!(u&&i.sticky)&&(l.index!==n&&(l=null)),l},r.prototype.test=function(i,n){return n=n||0,n+=this.__position,n>=0&&n<this.__input_length?!!this.__match(i,n):!1},r.prototype.testChar=function(i,n){var l=this.peek(n);return i.lastIndex=0,l!==null&&i.test(l)},r.prototype.match=function(i){var n=this.__match(i,this.__position);return n?this.__position+=n[0].length:n=null,n},r.prototype.read=function(i,n,l){var h="",d;return i&&(d=this.match(i),d&&(h+=d[0])),n&&(d||!i)&&(h+=this.readUntil(n,l)),h},r.prototype.readUntil=function(i,n){var l="",h=this.__position;i.lastIndex=this.__position;var d=i.exec(this.__input);return d?(h=d.index,n&&(h+=d[0].length)):h=this.__input_length,l=this.__input.substring(this.__position,h),this.__position=h,l},r.prototype.readUntilAfter=function(i){return this.readUntil(i,!0)},r.prototype.get_regexp=function(i,n){var l=null,h="g";return n&&u&&(h="y"),typeof i=="string"&&i!==""?l=new RegExp(i,h):i&&(l=new RegExp(i.source,h)),l},r.prototype.get_literal_regexp=function(i){return RegExp(i.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},r.prototype.peekUntilAfter=function(i){var n=this.__position,l=this.readUntilAfter(i);return this.__position=n,l},r.prototype.lookBack=function(i){var n=this.__position-1;return n>=i.length&&this.__input.substring(n-i.length,n).toLowerCase()===i},a.exports.InputScanner=r},function(a,u,r){var i=r(8).InputScanner,n=r(3).Token,l=r(10).TokenStream,h=r(11).WhitespacePattern,d={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},s=function(c,w){this._input=new i(c),this._options=w||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new h(this._input)};s.prototype.tokenize=function(){this._input.restart(),this.__tokens=new l,this._reset();for(var c,w=new n(d.START,""),E=null,v=[],R=new l;w.type!==d.EOF;){for(c=this._get_next_token(w,E);this._is_comment(c);)R.add(c),c=this._get_next_token(w,E);R.isEmpty()||(c.comments_before=R,R=new l),c.parent=E,this._is_opening(c)?(v.push(E),E=c):E&&this._is_closing(c,E)&&(c.opened=E,E.closed=c,E=v.pop(),c.parent=E),c.previous=w,w.next=c,this.__tokens.add(c),w=c}return this.__tokens},s.prototype._is_first_token=function(){return this.__tokens.isEmpty()},s.prototype._reset=function(){},s.prototype._get_next_token=function(c,w){this._readWhitespace();var E=this._input.read(/.+/g);return E?this._create_token(d.RAW,E):this._create_token(d.EOF,"")},s.prototype._is_comment=function(c){return!1},s.prototype._is_opening=function(c){return!1},s.prototype._is_closing=function(c,w){return!1},s.prototype._create_token=function(c,w){var E=new n(c,w,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return E},s.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},a.exports.Tokenizer=s,a.exports.TOKEN=d},function(a){function u(r){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=r}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 r=null;return this.hasNext()&&(r=this.__tokens[this.__position],this.__position+=1),r},u.prototype.peek=function(r){var i=null;return r=r||0,r+=this.__position,r>=0&&r<this.__tokens_length&&(i=this.__tokens[r]),i},u.prototype.add=function(r){this.__parent_token&&(r.parent=this.__parent_token),this.__tokens.push(r),this.__tokens_length+=1},a.exports.TokenStream=u},function(a,u,r){var i=r(12).Pattern;function n(l,h){i.call(this,l,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 i,n.prototype.__set_whitespace_patterns=function(l,h){l+="\\t ",h+="\\n\\r",this._match_pattern=this._input.get_regexp("["+l+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 l=this._input.read(this._match_pattern);if(l===" ")this.whitespace_before_token=" ";else if(l){var h=this.__split(this._newline_regexp,l);this.newline_count=h.length-1,this.whitespace_before_token=h[this.newline_count]}return l},n.prototype.matching=function(l,h){var d=this._create();return d.__set_whitespace_patterns(l,h),d._update(),d},n.prototype._create=function(){return new n(this._input,this)},n.prototype.__split=function(l,h){l.lastIndex=0;for(var d=0,s=[],c=l.exec(h);c;)s.push(h.substring(d,c.index)),d=c.index+c[0].length,c=l.exec(h);return d<h.length?s.push(h.substring(d,h.length)):s.push(""),s},a.exports.WhitespacePattern=n},function(a){function u(r,i){this._input=r,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,i&&(this._starting_pattern=this._input.get_regexp(i._starting_pattern,!0),this._match_pattern=this._input.get_regexp(i._match_pattern,!0),this._until_pattern=this._input.get_regexp(i._until_pattern),this._until_after=i._until_after)}u.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},u.prototype.read_match=function(){return this._input.match(this._match_pattern)},u.prototype.until_after=function(r){var i=this._create();return i._until_after=!0,i._until_pattern=this._input.get_regexp(r),i._update(),i},u.prototype.until=function(r){var i=this._create();return i._until_after=!1,i._until_pattern=this._input.get_regexp(r),i._update(),i},u.prototype.starting_with=function(r){var i=this._create();return i._starting_pattern=this._input.get_regexp(r,!0),i._update(),i},u.prototype.matching=function(r){var i=this._create();return i._match_pattern=this._input.get_regexp(r,!0),i._update(),i},u.prototype._create=function(){return new u(this._input,this)},u.prototype._update=function(){},a.exports.Pattern=u},function(a){function u(r,i){r=typeof r=="string"?r:r.source,i=typeof i=="string"?i:i.source,this.__directives_block_pattern=new RegExp(r+/ beautify( \w+[:]\w+)+ /.source+i,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(r+/\sbeautify\signore:end\s/.source+i,"g")}u.prototype.get_directives=function(r){if(!r.match(this.__directives_block_pattern))return null;var i={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(r);n;)i[n[1]]=n[2],n=this.__directive_pattern.exec(r);return i},u.prototype.readIgnored=function(r){return r.readUntilAfter(this.__directives_end_ignore_pattern)},a.exports.Directives=u},function(a,u,r){var i=r(12).Pattern,n={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function l(h,d){i.call(this,h,d),this.__template_pattern=null,this._disabled=Object.assign({},n),this._excluded=Object.assign({},n),d&&(this.__template_pattern=this._input.get_regexp(d.__template_pattern),this._excluded=Object.assign(this._excluded,d._excluded),this._disabled=Object.assign(this._disabled,d._disabled));var s=new i(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}/)}}l.prototype=new i,l.prototype._create=function(){return new l(this._input,this)},l.prototype._update=function(){this.__set_templated_pattern()},l.prototype.disable=function(h){var d=this._create();return d._disabled[h]=!0,d._update(),d},l.prototype.read_options=function(h){var d=this._create();for(var s in n)d._disabled[s]=h.templating.indexOf(s)===-1;return d._update(),d},l.prototype.exclude=function(h){var d=this._create();return d._excluded[h]=!0,d._update(),d},l.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 d=this._read_template();d;)this._match_pattern?d+=this._input.read(this._match_pattern):d+=this._input.readUntil(this.__template_pattern),h+=d,d=this._read_template();return this._until_after&&(h+=this._input.readUntilAfter(this._until_pattern)),h},l.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("|")+")")},l.prototype._read_template=function(){var h="",d=this._input.peek();if(d==="<"){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 d==="{"&&(!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},a.exports.TemplatablePattern=l},,,,function(a,u,r){var i=r(19).Beautifier,n=r(20).Options;function l(h,d,s,c){var w=new i(h,d,s,c);return w.beautify()}a.exports=l,a.exports.defaultOptions=function(){return new n}},function(a,u,r){var i=r(20).Options,n=r(2).Output,l=r(21).Tokenizer,h=r(21).TOKEN,d=/\r\n|[\r\n]/,s=/\r\n|[\r\n]/g,c=function(U,L){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=U.max_preserve_newlines,this.preserve_newlines=U.preserve_newlines,this._output=new n(U,L)};c.prototype.current_line_has_match=function(U){return this._output.current_line.has_match(U)},c.prototype.set_space_before_token=function(U,L){this._output.space_before_token=U,this._output.non_breaking_space=L},c.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},c.prototype.add_raw_token=function(U){this._output.add_raw_token(U)},c.prototype.print_preserved_newlines=function(U){var L=0;U.type!==h.TEXT&&U.previous.type!==h.TEXT&&(L=U.newlines?1:0),this.preserve_newlines&&(L=U.newlines<this.max_preserve_newlines+1?U.newlines:this.max_preserve_newlines+1);for(var N=0;N<L;N++)this.print_newline(N>0);return L!==0},c.prototype.traverse_whitespace=function(U){return U.whitespace_before||U.newlines?(this.print_preserved_newlines(U)||(this._output.space_before_token=!0),!0):!1},c.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},c.prototype.print_newline=function(U){this._output.add_new_line(U)},c.prototype.print_token=function(U){U.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(U.text))},c.prototype.indent=function(){this.indent_level++},c.prototype.get_full_indent=function(U){return U=this.indent_level+(U||0),U<1?"":this._output.get_indent_string(U)};var w=function(U){for(var L=null,N=U.next;N.type!==h.EOF&&U.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&&(L=N.next.next.text);break}N=N.next}return L},E=function(U,L){var N=null,V=null;return L.closed?(U==="script"?N="text/javascript":U==="style"&&(N="text/css"),N=w(L)||N,N.search("text/css")>-1?V="css":N.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?V="javascript":N.search(/(text|application|dojo)\/(x-)?(html)/)>-1?V="html":N.search(/test\/null/)>-1&&(V="null"),V):null};function v(U,L){return L.indexOf(U)!==-1}function R(U,L,N){this.parent=U||null,this.tag=L?L.tag_name:"",this.indent_level=N||0,this.parser_token=L||null}function M(U){this._printer=U,this._current_frame=null}M.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},M.prototype.record_tag=function(U){var L=new R(this._current_frame,U,this._printer.indent_level);this._current_frame=L},M.prototype._try_pop_frame=function(U){var L=null;return U&&(L=U.parser_token,this._printer.indent_level=U.indent_level,this._current_frame=U.parent),L},M.prototype._get_frame=function(U,L){for(var N=this._current_frame;N&&!(U.indexOf(N.tag)!==-1);){if(L&&L.indexOf(N.tag)!==-1){N=null;break}N=N.parent}return N},M.prototype.try_pop=function(U,L){var N=this._get_frame([U],L);return this._try_pop_frame(N)},M.prototype.indent_to_tag=function(U){var L=this._get_frame(U);L&&(this._printer.indent_level=L.indent_level)};function C(U,L,N,V){this._source_text=U||"",L=L||{},this._js_beautify=N,this._css_beautify=V,this._tag_stack=null;var H=new i(L,"html");this._options=H,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"}C.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var U=this._source_text,L=this._options.eol;this._options.eol==="auto"&&(L=`
|
|
|
`,U&&d.test(U)&&(L=U.match(d)[0])),U=U.replace(s,`
|
|
|
`);var N=U.match(/^[\t ]*/)[0],V={text:"",type:""},H=new S,D=new c(this._options,N),W=new l(U,this._options).tokenize();this._tag_stack=new M(D);for(var F=null,I=W.next();I.type!==h.EOF;)I.type===h.TAG_OPEN||I.type===h.COMMENT?(F=this._handle_tag_open(D,I,H,V),H=F):I.type===h.ATTRIBUTE||I.type===h.EQUALS||I.type===h.VALUE||I.type===h.TEXT&&!H.tag_complete?F=this._handle_inside_tag(D,I,H,W):I.type===h.TAG_CLOSE?F=this._handle_tag_close(D,I,H):I.type===h.TEXT?F=this._handle_text(D,I,H):D.add_raw_token(I),V=F,I=W.next();var K=D._output.get_code(L);return K},C.prototype._handle_tag_close=function(U,L,N){var V={text:L.text,type:L.type};return U.alignment_size=0,N.tag_complete=!0,U.set_space_before_token(L.newlines||L.whitespace_before!=="",!0),N.is_unformatted?U.add_raw_token(L):(N.tag_start_char==="<"&&(U.set_space_before_token(L.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&N.has_wrapped_attrs&&U.print_newline(!1)),U.print_token(L)),N.indent_content&&!(N.is_unformatted||N.is_content_unformatted)&&(U.indent(),N.indent_content=!1),!N.is_inline_element&&!(N.is_unformatted||N.is_content_unformatted)&&U.set_wrap_point(),V},C.prototype._handle_inside_tag=function(U,L,N,V){var H=N.has_wrapped_attrs,D={text:L.text,type:L.type};if(U.set_space_before_token(L.newlines||L.whitespace_before!=="",!0),N.is_unformatted)U.add_raw_token(L);else if(N.tag_start_char==="{"&&L.type===h.TEXT)U.print_preserved_newlines(L)?(L.newlines=0,U.add_raw_token(L)):U.print_token(L);else{if(L.type===h.ATTRIBUTE?(U.set_space_before_token(!0),N.attr_count+=1):(L.type===h.EQUALS||L.type===h.VALUE&&L.previous.type===h.EQUALS)&&U.set_space_before_token(!1),L.type===h.ATTRIBUTE&&N.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(U.traverse_whitespace(L),H=H||L.newlines!==0),this._is_wrap_attributes_force)){var W=N.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&N.attr_count===1){var F=!0,I=0,K;do{if(K=V.peek(I),K.type===h.ATTRIBUTE){F=!1;break}I+=1}while(I<4&&K.type!==h.EOF&&K.type!==h.TAG_CLOSE);W=!F}W&&(U.print_newline(!1),H=!0)}U.print_token(L),H=H||U.previous_token_wrapped(),N.has_wrapped_attrs=H}return D},C.prototype._handle_text=function(U,L,N){var V={text:L.text,type:"TK_CONTENT"};return N.custom_beautifier_name?this._print_custom_beatifier_text(U,L,N):N.is_unformatted||N.is_content_unformatted?U.add_raw_token(L):(U.traverse_whitespace(L),U.print_token(L)),V},C.prototype._print_custom_beatifier_text=function(U,L,N){var V=this;if(L.text!==""){var H=L.text,D,W=1,F="",I="";N.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?D=this._js_beautify:N.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?D=this._css_beautify:N.custom_beautifier_name==="html"&&(D=function(Te,ce){var be=new C(Te,ce,V._js_beautify,V._css_beautify);return be.beautify()}),this._options.indent_scripts==="keep"?W=0:this._options.indent_scripts==="separate"&&(W=-U.indent_level);var K=U.get_full_indent(W);if(H=H.replace(/\n[ \t]*$/,""),N.custom_beautifier_name!=="html"&&H[0]==="<"&&H.match(/^(<!--|<!\[CDATA\[)/)){var ee=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(H);if(!ee){U.add_raw_token(L);return}F=K+ee[1]+`
|
|
|
`,H=ee[4],ee[5]&&(I=K+ee[5]),H=H.replace(/\n[ \t]*$/,""),(ee[2]||ee[3].indexOf(`
|
|
|
`)!==-1)&&(ee=ee[3].match(/[ \t]+$/),ee&&(L.whitespace_before=ee[0]))}if(H)if(D){var he=function(){this.eol=`
|
|
|
`};he.prototype=this._options.raw_options;var de=new he;H=D(K+H,de)}else{var Se=L.whitespace_before;Se&&(H=H.replace(new RegExp(`
|
|
|
(`+Se+")?","g"),`
|
|
|
`)),H=K+H.replace(/\n/g,`
|
|
|
`+K)}F&&(H?H=F+H+`
|
|
|
`+I:H=F+I),U.print_newline(!1),H&&(L.text=H,L.whitespace_before="",L.newlines=0,U.add_raw_token(L),U.print_newline(!0))}},C.prototype._handle_tag_open=function(U,L,N,V){var H=this._get_tag_open_token(L);return(N.is_unformatted||N.is_content_unformatted)&&!N.is_empty_element&&L.type===h.TAG_OPEN&&L.text.indexOf("</")===0?(U.add_raw_token(L),H.start_tag_token=this._tag_stack.try_pop(H.tag_name)):(U.traverse_whitespace(L),this._set_tag_position(U,L,H,N,V),H.is_inline_element||U.set_wrap_point(),U.print_token(L)),(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(H.alignment_size=L.text.length+1),!H.tag_complete&&!H.is_unformatted&&(U.alignment_size=H.alignment_size),H};var S=function(U,L){if(this.parent=U||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="",!L)this.tag_complete=!0;else{var N;this.tag_start_char=L.text[0],this.text=L.text,this.tag_start_char==="<"?(N=L.text.match(/^<([^\s>]*)/),this.tag_check=N?N[1]:""):(N=L.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=N?N[1]:"",(L.text.startsWith("{{#>")||L.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&L.next!==null?this.tag_check=L.next.text.split(" ")[0]:this.tag_check=L.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),L.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||L.closed&&L.closed.text==="/>";var V=2;this.tag_start_char==="{"&&this.text.length>=3&&(this.text.charAt(2)==="~"&&(V=3)),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(V)))}};C.prototype._get_tag_open_token=function(U){var L=new S(this._tag_stack.get_parser_token(),U);return L.alignment_size=this._options.wrap_attributes_indent_size,L.is_end_tag=L.is_end_tag||v(L.tag_check,this._options.void_elements),L.is_empty_element=L.tag_complete||L.is_start_tag&&L.is_end_tag,L.is_unformatted=!L.tag_complete&&v(L.tag_check,this._options.unformatted),L.is_content_unformatted=!L.is_empty_element&&v(L.tag_check,this._options.content_unformatted),L.is_inline_element=v(L.tag_name,this._options.inline)||L.tag_name.includes("-")||L.tag_start_char==="{",L},C.prototype._set_tag_position=function(U,L,N,V,H){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||U.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=E(N.tag_check,L)))),v(N.tag_check,this._options.extra_liners)&&(U.print_newline(!1),U._output.just_added_blankline()||U.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 D=U.current_line_has_match(/{{#if/);D||U.print_newline(!1)}N.tag_name==="!--"&&H.type===h.TAG_CLOSE&&V.is_end_tag&&N.text.indexOf(`
|
|
|
`)===-1||(N.is_inline_element||N.is_unformatted||U.print_newline(!1),this._calcluate_parent_multiline(U,N))}else if(N.is_end_tag){var W=!1;W=N.start_tag_token&&N.start_tag_token.multiline_content,W=W||!N.is_inline_element&&!(V.is_inline_element||V.is_unformatted)&&!(H.type===h.TAG_CLOSE&&N.start_tag_token===V)&&H.type!=="TK_CONTENT",(N.is_content_unformatted||N.is_unformatted)&&(W=!1),W&&U.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)&&(H.type!=="TK_CONTENT"||N.is_content_unformatted)&&U.print_newline(!1),this._calcluate_parent_multiline(U,N)},C.prototype._calcluate_parent_multiline=function(U,L){L.parent&&U._output.just_added_newline()&&!((L.is_inline_element||L.is_unformatted)&&L.parent.is_inline_element)&&(L.parent.multiline_content=!0)};var _=["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"],A=["a","audio","del","ins","map","noscript","video"];C.prototype._do_optional_end_element=function(U){var L=null;if(U.is_empty_element||!U.is_start_tag||!U.parent)return;if(U.tag_name==="body")L=L||this._tag_stack.try_pop("head");else if(U.tag_name==="li")L=L||this._tag_stack.try_pop("li",["ol","ul"]);else if(U.tag_name==="dd"||U.tag_name==="dt")L=L||this._tag_stack.try_pop("dt",["dl"]),L=L||this._tag_stack.try_pop("dd",["dl"]);else if(U.parent.tag_name==="p"&&_.indexOf(U.tag_name)!==-1){var N=U.parent.parent;(!N||A.indexOf(N.tag_name)===-1)&&(L=L||this._tag_stack.try_pop("p"))}else U.tag_name==="rp"||U.tag_name==="rt"?(L=L||this._tag_stack.try_pop("rt",["ruby","rtc"]),L=L||this._tag_stack.try_pop("rp",["ruby","rtc"])):U.tag_name==="optgroup"?L=L||this._tag_stack.try_pop("optgroup",["select"]):U.tag_name==="option"?L=L||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):U.tag_name==="colgroup"?L=L||this._tag_stack.try_pop("caption",["table"]):U.tag_name==="thead"?(L=L||this._tag_stack.try_pop("caption",["table"]),L=L||this._tag_stack.try_pop("colgroup",["table"])):U.tag_name==="tbody"||U.tag_name==="tfoot"?(L=L||this._tag_stack.try_pop("caption",["table"]),L=L||this._tag_stack.try_pop("colgroup",["table"]),L=L||this._tag_stack.try_pop("thead",["table"]),L=L||this._tag_stack.try_pop("tbody",["table"])):U.tag_name==="tr"?(L=L||this._tag_stack.try_pop("caption",["table"]),L=L||this._tag_stack.try_pop("colgroup",["table"]),L=L||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(U.tag_name==="th"||U.tag_name==="td")&&(L=L||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),L=L||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return U.parent=this._tag_stack.get_parser_token(),L},a.exports.Beautifier=C},function(a,u,r){var i=r(6).Options;function n(l){i.call(this,l,"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 i,a.exports.Options=n},function(a,u,r){var i=r(9).Tokenizer,n=r(9).TOKEN,l=r(13).Directives,h=r(14).TemplatablePattern,d=r(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},c=new l(/<\!--/,/-->/),w=function(E,v){i.call(this,E,v),this._current_tag_name="";var R=new h(this._input).read_options(this._options),M=new d(this._input);if(this.__patterns={word:R.until(/[\n\r\t <]/),single_quote:R.until_after(/'/),double_quote:R.until_after(/"/),attribute:R.until(/[\n\r\t =>]|\/>/),element_name:R.until(/[\n\r\t >\/]/),handlebars_comment:M.starting_with(/{{!--/).until_after(/--}}/),handlebars:M.starting_with(/{{/).until_after(/}}/),handlebars_open:M.until(/[\n\r\t }]/),handlebars_raw_close:M.until(/}}/),comment:M.starting_with(/<!--/).until_after(/-->/),cdata:M.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:M.starting_with(/<!\[/).until_after(/]>/),processing:M.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 C=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=M.matching(C).until_after(C)}};w.prototype=new i,w.prototype._is_comment=function(E){return!1},w.prototype._is_opening=function(E){return E.type===s.TAG_OPEN},w.prototype._is_closing=function(E,v){return E.type===s.TAG_CLOSE&&v&&((E.text===">"||E.text==="/>")&&v.text[0]==="<"||E.text==="}}"&&v.text[0]==="{"&&v.text[1]==="{")},w.prototype._reset=function(){this._current_tag_name=""},w.prototype._get_next_token=function(E,v){var R=null;this._readWhitespace();var M=this._input.peek();return M===null?this._create_token(s.EOF,""):(R=R||this._read_open_handlebars(M,v),R=R||this._read_attribute(M,E,v),R=R||this._read_close(M,v),R=R||this._read_raw_content(M,E,v),R=R||this._read_content_word(M),R=R||this._read_comment_or_cdata(M),R=R||this._read_processing(M),R=R||this._read_open(M,v),R=R||this._create_token(s.UNKNOWN,this._input.next()),R)},w.prototype._read_comment_or_cdata=function(E){var v=null,R=null,M=null;if(E==="<"){var C=this._input.peek(1);C==="!"&&(R=this.__patterns.comment.read(),R?(M=c.get_directives(R),M&&M.ignore==="start"&&(R+=c.readIgnored(this._input))):R=this.__patterns.cdata.read()),R&&(v=this._create_token(s.COMMENT,R),v.directives=M)}return v},w.prototype._read_processing=function(E){var v=null,R=null,M=null;if(E==="<"){var C=this._input.peek(1);(C==="!"||C==="?")&&(R=this.__patterns.conditional_comment.read(),R=R||this.__patterns.processing.read()),R&&(v=this._create_token(s.COMMENT,R),v.directives=M)}return v},w.prototype._read_open=function(E,v){var R=null,M=null;return v||E==="<"&&(R=this._input.next(),this._input.peek()==="/"&&(R+=this._input.next()),R+=this.__patterns.element_name.read(),M=this._create_token(s.TAG_OPEN,R)),M},w.prototype._read_open_handlebars=function(E,v){var R=null,M=null;return v||this._options.indent_handlebars&&E==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(R=this.__patterns.handlebars_comment.read(),R=R||this.__patterns.handlebars.read(),M=this._create_token(s.COMMENT,R)):(R=this.__patterns.handlebars_open.read(),M=this._create_token(s.TAG_OPEN,R))),M},w.prototype._read_close=function(E,v){var R=null,M=null;return v&&(v.text[0]==="<"&&(E===">"||E==="/"&&this._input.peek(1)===">")?(R=this._input.next(),E==="/"&&(R+=this._input.next()),M=this._create_token(s.TAG_CLOSE,R)):v.text[0]==="{"&&E==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),M=this._create_token(s.TAG_CLOSE,"}}"))),M},w.prototype._read_attribute=function(E,v,R){var M=null,C="";if(R&&R.text[0]==="<")if(E==="=")M=this._create_token(s.EQUALS,this._input.next());else if(E==='"'||E==="'"){var S=this._input.next();E==='"'?S+=this.__patterns.double_quote.read():S+=this.__patterns.single_quote.read(),M=this._create_token(s.VALUE,S)}else C=this.__patterns.attribute.read(),C&&(v.type===s.EQUALS?M=this._create_token(s.VALUE,C):M=this._create_token(s.ATTRIBUTE,C));return M},w.prototype._is_content_unformatted=function(E){return this._options.void_elements.indexOf(E)===-1&&(this._options.content_unformatted.indexOf(E)!==-1||this._options.unformatted.indexOf(E)!==-1)},w.prototype._read_raw_content=function(E,v,R){var M="";if(R&&R.text[0]==="{")M=this.__patterns.handlebars_raw_close.read();else if(v.type===s.TAG_CLOSE&&v.opened.text[0]==="<"&&v.text[0]!=="/"){var C=v.opened.text.substr(1).toLowerCase();if(C==="script"||C==="style"){var S=this._read_comment_or_cdata(E);if(S)return S.type=s.TEXT,S;M=this._input.readUntil(new RegExp("</"+C+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(C)&&(M=this._input.readUntil(new RegExp("</"+C+"[\\n\\r\\t ]*?>","ig")))}return M?this._create_token(s.TEXT,M):null},w.prototype._read_content_word=function(E){var v="";if(this._options.unformatted_content_delimiter&&(E===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)},a.exports.Tokenizer=w,a.exports.TOKEN=s}],m={};function e(a){var u=m[a];if(u!==void 0)return u.exports;var r=m[a]={exports:{}};return O[a](r,r.exports,e),r.exports}var f=e(18);T=f})();var b=T;if(!0)!(P=[o,o("6UM0"),o("TXwP")],g=function(O){var m=o("6UM0"),e=o("TXwP");return{html_beautify:function(f,a){return b(f,a,m.js_beautify,e.css_beautify)}}}.apply(z,P),g!==void 0&&(k.exports=g));else var y,x})()},qB8g:function(k,z,o){k.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(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(P){return P.pad.AnsiX923={pad:function(g,T){var b=g.sigBytes,y=T*4,x=y-b%y,O=b+x-1;g.clamp(),g.words[O>>>2]|=x<<24-O%4*8,g.sigBytes+=x},unpad:function(g){var T=g.words[g.sigBytes-1>>>2]&255;g.sigBytes-=T}},P.pad.Ansix923})},qM6L:function(k,z,o){(function(P,g){k.exports=z=g(o("Ib8C"))})(this,function(P){return function(){var g=P,T=g.lib,b=T.WordArray,y=g.enc,x=y.Utf16=y.Utf16BE={stringify:function(m){for(var e=m.words,f=m.sigBytes,a=[],u=0;u<f;u+=2){var r=e[u>>>2]>>>16-u%4*8&65535;a.push(String.fromCharCode(r))}return a.join("")},parse:function(m){for(var e=m.length,f=[],a=0;a<e;a++)f[a>>>1]|=m.charCodeAt(a)<<16-a%2*16;return b.create(f,e*2)}};y.Utf16LE={stringify:function(m){for(var e=m.words,f=m.sigBytes,a=[],u=0;u<f;u+=2){var r=O(e[u>>>2]>>>16-u%4*8&65535);a.push(String.fromCharCode(r))}return a.join("")},parse:function(m){for(var e=m.length,f=[],a=0;a<e;a++)f[a>>>1]|=O(m.charCodeAt(a)<<16-a%2*16);return b.create(f,e*2)}};function O(m){return m<<8&4278255360|m>>>8&16711935}}(),P.enc.Utf16})},qgvg:function(k,z){k.exports="data:image/gif;base64,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"},qu8F:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(P){/** @preserve
|
|
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
|
* derived from CryptoJS.mode.CTR
|
|
|
* Jan Hruby jhruby.web@gmail.com
|
|
|
*/return P.mode.CTRGladman=function(){var g=P.lib.BlockCipherMode.extend();function T(x){if((x>>24&255)===255){var O=x>>16&255,m=x>>8&255,e=x&255;O===255?(O=0,m===255?(m=0,e===255?e=0:++e):++m):++O,x=0,x+=O<<16,x+=m<<8,x+=e}else x+=1<<24;return x}function b(x){return(x[0]=T(x[0]))===0&&(x[1]=T(x[1])),x}var y=g.Encryptor=g.extend({processBlock:function(x,O){var m=this._cipher,e=m.blockSize,f=this._iv,a=this._counter;f&&(a=this._counter=f.slice(0),this._iv=void 0),b(a);var u=a.slice(0);m.encryptBlock(u,0);for(var r=0;r<e;r++)x[O+r]^=u[r]}});return g.Decryptor=y,g}(),P.mode.CTRGladman})},"rAM+":function(k,z,o){"use strict";o.d(z,"a",function(){return g});var P=o("Qw5x");function g(T,b){var y;if(typeof Symbol=="undefined"||T[Symbol.iterator]==null){if(Array.isArray(T)||(y=Object(P.a)(T))||b&&T&&typeof T.length=="number"){y&&(T=y);var x=0,O=function(){};return{s:O,n:function(){return x>=T.length?{done:!0}:{done:!1,value:T[x++]}},e:function(u){throw u},f:O}}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 m=!0,e=!1,f;return{s:function(){y=T[Symbol.iterator]()},n:function(){var u=y.next();return m=u.done,u},e:function(u){e=!0,f=u},f:function(){try{!m&&y.return!=null&&y.return()}finally{if(e)throw f}}}}},rHrb:function(k,z,o){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.CopyToClipboard=void 0;var P=T(o("q1tI")),g=T(o("+QRC"));function T(s){return s&&s.__esModule?s:{default:s}}function b(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?b=function(w){return typeof w}:b=function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},b(s)}function y(s,c){var w=Object.keys(s);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(s);c&&(E=E.filter(function(v){return Object.getOwnPropertyDescriptor(s,v).enumerable})),w.push.apply(w,E)}return w}function x(s){for(var c=1;c<arguments.length;c++){var w=arguments[c]!=null?arguments[c]:{};c%2?y(w,!0).forEach(function(E){h(s,E,w[E])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(w)):y(w).forEach(function(E){Object.defineProperty(s,E,Object.getOwnPropertyDescriptor(w,E))})}return s}function O(s,c){if(s==null)return{};var w=m(s,c),E,v;if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(s);for(v=0;v<R.length;v++){if(E=R[v],c.indexOf(E)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(s,E))continue;w[E]=s[E]}}return w}function m(s,c){if(s==null)return{};var w={},E=Object.keys(s),v,R;for(R=0;R<E.length;R++){if(v=E[R],c.indexOf(v)>=0)continue;w[v]=s[v]}return w}function e(s,c){if(!(s instanceof c))throw new TypeError("Cannot call a class as a function")}function f(s,c){for(var w=0;w<c.length;w++){var E=c[w];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(s,E.key,E)}}function a(s,c,w){return c&&f(s.prototype,c),w&&f(s,w),s}function u(s,c){return c&&(b(c)==="object"||typeof c=="function")?c:i(s)}function r(s){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)},r(s)}function i(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function n(s,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(c&&c.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),c&&l(s,c)}function l(s,c){return l=Object.setPrototypeOf||function(E,v){return E.__proto__=v,E},l(s,c)}function h(s,c,w){return c in s?Object.defineProperty(s,c,{value:w,enumerable:!0,configurable:!0,writable:!0}):s[c]=w,s}var d=function(s){n(c,s);function c(){var w,E;e(this,c);for(var v=arguments.length,R=new Array(v),M=0;M<v;M++)R[M]=arguments[M];return E=u(this,(w=r(c)).call.apply(w,[this].concat(R))),h(i(E),"onClick",function(C){var S=E.props,_=S.text,A=S.onCopy,U=S.children,L=S.options,N=P.default.Children.only(U),V=(0,g.default)(_,L);A&&A(_,V),N&&N.props&&typeof N.props.onClick=="function"&&N.props.onClick(C)}),E}return a(c,[{key:"render",value:function(){var E=this.props,v=E.text,R=E.onCopy,M=E.options,C=E.children,S=O(E,["text","onCopy","options","children"]),_=P.default.Children.only(C);return P.default.cloneElement(_,x({},S,{onClick:this.onClick}))}}]),c}(P.default.PureComponent);z.CopyToClipboard=d,h(d,"defaultProps",{onCopy:void 0,options:void 0})},rUJ1:function(k,z){const o=/[&<>"']/,P=/[&<>"']/g,g=/[<>"']|&(?!#?\w+;)/,T=/[<>"']|&(?!#?\w+;)/g,b={"&":"&","<":"<",">":">",'"':""","'":"'"},y=M=>b[M];function x(M,C){if(C){if(o.test(M))return M.replace(P,y)}else if(g.test(M))return M.replace(T,y);return M}const O=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function m(M){return M.replace(O,(C,S)=>(S=S.toLowerCase(),S==="colon"?":":S.charAt(0)==="#"?S.charAt(1)==="x"?String.fromCharCode(parseInt(S.substring(2),16)):String.fromCharCode(+S.substring(1)):""))}const e=/(^|[^\[])\^/g;function f(M,C){M=M.source||M,C=C||"";const S={replace:(_,A)=>(A=A.source||A,A=A.replace(e,"$1"),M=M.replace(_,A),S),getRegex:()=>new RegExp(M,C)};return S}const a=/[^\w:]/g,u=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function r(M,C,S){if(M){let _;try{_=decodeURIComponent(m(S)).replace(a,"").toLowerCase()}catch(A){return null}if(_.indexOf("javascript:")===0||_.indexOf("vbscript:")===0||_.indexOf("data:")===0)return null}C&&!u.test(S)&&(S=d(C,S));try{S=encodeURI(S).replace(/%25/g,"%")}catch(_){return null}return S}const i={},n=/^[^:]+:\/*[^/]*$/,l=/^([^:]+:)[\s\S]*$/,h=/^([^:]+:\/*[^/]*)[\s\S]*$/;function d(M,C){i[" "+M]||(n.test(M)?i[" "+M]=M+"/":i[" "+M]=E(M,"/",!0)),M=i[" "+M];const S=M.indexOf(":")===-1;return C.substring(0,2)==="//"?S?C:M.replace(l,"$1")+C:C.charAt(0)==="/"?S?C:M.replace(h,"$1")+C:M+C}const s={exec:function(){}};function c(M){let C=1,S,_;for(;C<arguments.length;C++){S=arguments[C];for(_ in S)Object.prototype.hasOwnProperty.call(S,_)&&(M[_]=S[_])}return M}function w(M,C){const S=M.replace(/\|/g,(U,L,N)=>{let V=!1,H=L;for(;--H>=0&&N[H]==="\\";)V=!V;return V?"|":" |"}),_=S.split(/ \|/);let A=0;if(_.length>C)_.splice(C);else for(;_.length<C;)_.push("");for(;A<_.length;A++)_[A]=_[A].trim().replace(/\\\|/g,"|");return _}function E(M,C,S){const _=M.length;if(_===0)return"";let A=0;for(;A<_;){const U=M.charAt(_-A-1);if(U===C&&!S)A++;else if(U!==C&&S)A++;else break}return M.substr(0,_-A)}function v(M,C){if(M.indexOf(C[1])===-1)return-1;const S=M.length;let _=0,A=0;for(;A<S;A++)if(M[A]==="\\")A++;else if(M[A]===C[0])_++;else if(M[A]===C[1]&&(_--,_<0))return A;return-1}function R(M){M&&M.sanitize&&!M.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")}k.exports={escape:x,unescape:m,edit:f,cleanUrl:r,resolveUrl:d,noopTest:s,merge:c,splitCells:w,rtrim:E,findClosingBracket:v,checkSanitizeDeprecation:R}},ruvs:function(k,z,o){"use strict";o.d(z,"b",function(){return jt});var P=o("2qtc"),g=o("kLXV"),T=o("9og8"),b=o("rAM+"),y=o("tJVT"),x=o("PpiC"),O=o("k1fw"),m=o("5NDa"),e=o("5rEg"),f=o("B9cy"),a=o("Ol7k"),u=o("WmNS"),r=o.n(u),i=o("q1tI"),n=o.n(i),l=o("Ty5D"),h=o("55Ip"),d=o("9kvl"),s=o("lzim"),c=o("xrsn"),w=o.n(c),E=o("1Sn+"),v=o("qVdP"),R=o("jsC+"),M=o("14J3"),C=o("BMrR"),S=o("jCWc"),_=o("kPKH"),A=o("lUTK"),U=o("BvKs"),L=o("miYZ"),N=o("tsqr"),V=o("7Kak"),H=o("9yH6"),D=o("6CvP"),W=o("1vsH"),F;(function(He){He.Manager="manager",He.Developer="developer",He.Reporter="reporter"})(F||(F={}));var I=function(Ge){var Ce=Ge.visible,Ie=Ge.onCancel,Fe=Ie===void 0?function(){}:Ie,Be=Object(i.useState)(),We=Object(y.a)(Be,2),st=We[0],Dt=We[1],Ht=Object(i.useState)(),rn=Object(y.a)(Ht,2),Bt=rn[0],Ct=rn[1],Ke=Object(i.useState)(!1),et=Object(y.a)(Ke,2),at=et[0],Pe=et[1],Xe=function(){var Et=Object(T.a)(r.a.mark(function Ot(){var Mt,lt;return r.a.wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:if(st){Lt.next=3;break}return N.b.info("\u8BF7\u8F93\u5165\u5F00\u53D1\u9879\u76EE\u9080\u8BF7\u7801\uFF01"),Lt.abrupt("return");case 3:if(!(st.length!==6)){Lt.next=6;break}return N.b.info("\u8BF7\u8F93\u51656\u4F4D\u9879\u76EE\u9080\u8BF7\u7801\uFF01"),Lt.abrupt("return");case 6:if(Bt){Lt.next=9;break}return N.b.info("\u8BF7\u9009\u62E9\u4E00\u4E2A\u8EAB\u4EFD\uFF01"),Lt.abrupt("return");case 9:return Pe(!0),Lt.next=12,Object(D.e)({code:st,role:Bt});case 12:if(Mt=Lt.sent,Pe(!1),ht(),lt={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"},!lt[Mt.status]){Lt.next=19;break}return N.b.info(lt[Mt.status]),Lt.abrupt("return");case 19:if(!(Mt.status===0)){Lt.next=22;break}return Bt==="reporter"?(N.b.success("\u60A8\u52A0\u5165\u9879\u76EE\u6210\u529F\uFF01"),Object(W.cb)(["\u5F00\u53D1\u9879\u76EE","\u52A0\u5165\u9879\u76EE\u6210\u529F"]),d.d.push("/projects/".concat(Mt==null?void 0:Mt.project_id))):(Object(W.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")),Lt.abrupt("return");case 22:case"end":return Lt.stop()}},Ot)}));return function(){return Et.apply(this,arguments)}}(),ht=function(){var Et=Object(T.a)(r.a.mark(function Ot(){return r.a.wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:Fe();case 1:case"end":return lt.stop()}},Ot)}));return function(){return Et.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:Ce,confirmLoading:at,onOk:Xe,onCancel:ht},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(e.a,{placeholder:"\u8BF7\u8F93\u51656\u4F4D\u5F00\u53D1\u9879\u76EE\u9080\u8BF7\u7801",style:{width:270},value:st,onChange:function(Ot){if(Ot.target.value.length>=7){N.b.info("\u8BF7\u8F93\u51656\u4F4D\u5F00\u53D1\u9879\u76EE\u9080\u8BF7\u7801\uFF01");return}Dt(Ot.target.value)}})),n.a.createElement("div",{className:"mt10 font14"},n.a.createElement("span",null,"\u8EAB\u4EFD\uFF1A"),n.a.createElement(H.a.Group,{value:Bt,onChange:function(Ot){return Ct(Ot.target.value)}},n.a.createElement(H.a,{value:F.Manager},"\u7BA1\u7406\u4EBA\u5458"),n.a.createElement(H.a,{value:F.Developer},"\u5F00\u53D1\u4EBA\u5458"),n.a.createElement(H.a,{value:F.Reporter},"\u62A5\u544A\u4EBA\u5458"))))))},K=I,ee=o("Jky8"),he=o("6Fuo"),de=o.n(he),Se=o("NLgs"),Te=o("xKgJ"),ce;(function(He){He.Projects="projects",He.Shixuns="shixuns",He.Classrooms="classrooms"})(ce||(ce={}));var be;(function(He){He.Classrooms="classrooms",He.Shixuns="shixuns",He.Paths="paths",He.Projects="projects",He.Videos="videos",He.Topics="topics"})(be||(be={}));var Ee=function(Ge){var Ce,Ie,Fe,Be,We,st,Dt,Ht=Ge.homePage,rn=Ge.user,Bt=Ge.globalSetting,Ct=Ge.loading,Ke=Ge.dispatch,et=Ge.location,at=Object(x.a)(Ge,["homePage","user","globalSetting","loading","dispatch","location"]),Pe=Object(i.useState)(),Xe=Object(y.a)(Pe,2),ht=Xe[0],Et=Xe[1],Ot=Object(i.useState)(),Mt=Object(y.a)(Ot,2),lt=Mt[0],Ft=Mt[1],Lt=function(Yn){var ar;if(!Object(Se.e)(Ke))return;if(Yn===ce.Projects&&!((ar=rn.userInfo)!==null&&ar!==void 0&&ar.email)){N.b.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}Yn===ce.Classrooms?Et(!0):Yn===ce.Projects&&Ft(!0)},on=function(Yn,ar){var nr;if(!Object(Se.e)(Ke))return;if(ar===ce.Projects&&!((nr=rn.userInfo)!==null&&nr!==void 0&&nr.email)){N.b.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}if(ar===ce.Shixuns&&!Object(Se.c)())return;Yn&&(window.location.href=Yn)},mn=(Ce=(((Ie=Bt.setting)===null||Ie===void 0?void 0:Ie.navbar)||[]).find(function(fr){return fr.link==="/".concat(be.Classrooms)}))===null||Ce===void 0?void 0:Ce.hidden,Hn=(Fe=(((Be=Bt.setting)===null||Be===void 0?void 0:Be.navbar)||[]).find(function(fr){return fr.link==="/".concat(be.Shixuns)}))===null||Fe===void 0?void 0:Fe.hidden,Xn=(We=(((st=Bt.setting)===null||st===void 0?void 0:st.navbar)||[]).find(function(fr){return fr.link==="/".concat(be.Paths)}))===null||We===void 0?void 0:We.hidden;if(Bt!=null&&(Dt=Bt.setting)!==null&&Dt!==void 0&&Dt.is_local){var Fn;rn!=null&&(Fn=rn.userInfo)!==null&&Fn!==void 0&&Fn.is_shixun_marker||(Hn=!0)}var xn=function(Yn){var ar,nr,Rr,pr,sn,qt,On,Fr;return n.a.createElement(n.a.Fragment,null,n.a.createElement(C.a,{justify:"space-around",className:"pt5 pb5"},n.a.createElement(_.a,{className:de.a.joinCol},((ar=rn.userInfo)===null||ar===void 0?void 0:ar.user_identity)!=="\u5B66\u751F"&&!mn&&n.a.createElement(U.a.Item,Yn,n.a.createElement("a",{onClick:function(){return on("/classrooms/new")}},(nr=rn.userInfo)!==null&&nr!==void 0&&nr.main_site?"\u65B0\u5EFA\u6559\u5B66\u8BFE\u5802":"\u65B0\u5EFA\u8BFE\u5802")),!(Bt!=null&&Bt.setting.hide_shixun&&Object(Te.m)())&&n.a.createElement(U.a.Item,Yn,n.a.createElement("a",{onClick:function(){return on("/shixuns/new",ce.Shixuns)}},"\u65B0\u5EFA\u5B9E\u8DF5\u9879\u76EE")),!(Bt!=null&&(Rr=Bt.setting)!==null&&Rr!==void 0&&Rr.hide_subject&&Object(Te.m)())&&n.a.createElement(U.a.Item,Yn,n.a.createElement("a",{onClick:function(){return on("/paths/new")}},"\u65B0\u5EFA\u5B9E\u8DF5\u8BFE\u7A0B")),!(Bt!=null&&(pr=Bt.setting)!==null&&pr!==void 0&&pr.is_local)&&((sn=rn.userInfo)===null||sn===void 0?void 0:sn.main_site)&&n.a.createElement(U.a.Item,Yn,n.a.createElement("a",{onClick:function(){var xr,dr;return on("".concat((xr=rn.navigationInfo)===null||xr===void 0||((dr=xr.top)===null||dr===void 0)?void 0:dr.old_url,"/projects/deposit/new"),ce.Projects)}},"\u65B0\u5EFA\u5F00\u53D1\u9879\u76EE"))),n.a.createElement(_.a,null,n.a.createElement("div",{className:de.a.joinBoard})),n.a.createElement(_.a,{className:de.a.joinCol},!mn&&n.a.createElement(U.a.Item,Yn,n.a.createElement("a",{onClick:function(){return Lt(ce.Classrooms)}},(qt=rn.userInfo)!==null&&qt!==void 0&&qt.main_site?"\u52A0\u5165\u6559\u5B66\u8BFE\u5802":"\u52A0\u5165\u8BFE\u5802")),((On=rn.userInfo)===null||On===void 0?void 0:On.main_site)&&!(Bt!=null&&(Fr=Bt.setting)!==null&&Fr!==void 0&&Fr.is_local)&&n.a.createElement(U.a.Item,Yn,n.a.createElement("a",{onClick:function(){return Lt(ce.Projects)}},"\u52A0\u5165\u5F00\u53D1\u9879\u76EE")))))};return n.a.createElement("section",null,n.a.createElement(R.a,{overlay:n.a.createElement(U.a,{className:"".concat(de.a.rightMenu," ").concat(de.a.joinMenu," mt10")},n.a.createElement(xn,null)),placement:"bottomRight"},n.a.createElement("span",{style:{lineHeight:"inherit"},className:"iconfont icon-tianjiafangda c-white font18 current ml15 mr15"})),n.a.createElement(ee.a,{visible:ht,onCancel:function(){return Et(!1)}}),n.a.createElement(K,{visible:lt,onCancel:function(){return Ft(!1)}}))},ue=Object(d.a)(function(He){var Ge=He.homePage,Ce=He.loading,Ie=He.user,Fe=He.globalSetting;return{homePage:Ge,user:Ie,globalSetting:Fe,loading:Ce.models.index}})(Ee),le=o("vToQ"),$=o.n(le),me=o("jb+D"),re=o("m3rI"),ae=function(Ge){var Ce,Ie=RegExp("(^| )"+Ge+"=([^;]+)(;|$)");return(Ce=document.cookie.match(Ie))?decodeURIComponent(Ce[2]):null},Oe=function(Ge){var Ce=new Date;Ce.setTime(Ce.getTime()-1);var Ie=ae(Ge);Ie!=null&&(document.cookie=Ge+"="+Ie+";expires="+Ce.toGMTString())},se;(function(He){He.Classrooms="classrooms",He.Shixuns="shixuns",He.Paths="paths",He.Projects="projects",He.Videos="videos",He.Topics="topics"})(se||(se={}));var te=function(Ge){var Ce,Ie,Fe,Be,We,st,Dt,Ht,rn,Bt,Ct,Ke=Ge.homePage,et=Ge.user,at=Ge.globalSetting,Pe=Ge.loading,Xe=Ge.dispatch,ht=Ge.shixunHomeworks,Et=Ge.location,Ot=Ge.payload,Mt=Ot===void 0?{}:Ot,lt=Object(x.a)(Ge,["homePage","user","globalSetting","loading","dispatch","shixunHomeworks","location","payload"]),Ft=(Ce=(((Ie=at.setting)===null||Ie===void 0?void 0:Ie.navbar)||[]).find(function(fr){return fr.link==="/".concat(se.Classrooms)}))===null||Ce===void 0?void 0:Ce.hidden,Lt=(Fe=(((Be=at.setting)===null||Be===void 0?void 0:Be.navbar)||[]).find(function(fr){return fr.link==="/".concat(se.Shixuns)}))===null||Fe===void 0?void 0:Fe.hidden,on=(We=(((st=at.setting)===null||st===void 0?void 0:st.navbar)||[]).find(function(fr){return fr.link==="/".concat(se.Paths)}))===null||We===void 0?void 0:We.hidden,mn=((Dt=et.userInfo)===null||Dt===void 0?void 0:Dt.admin)||((Ht=et.userInfo)===null||Ht===void 0?void 0:Ht.business)||((rn=et.userInfo)===null||rn===void 0?void 0:rn.is_shixun_marker)||((Bt=et.userInfo)===null||Bt===void 0?void 0:Bt.is_teacher)||((Ct=et.userInfo)===null||Ct===void 0?void 0:Ct.user_identity)!=="\u5B66\u751F",Hn=function(){if(Object(W.r)())return n.a.createElement(U.a,{className:"".concat($.a.rightMenu," ").concat($.a.menuWrap)},n.a.createElement(U.a.Item,null,n.a.createElement(h.a,{to:"/account/profile"},"\u8D26\u53F7\u7BA1\u7406")));var Yn,ar,nr,Rr,pr,sn,qt,On,Fr,Or,xr,dr,pe,X,q,oe,De,fe,ot,Qt,Mn,Vn;return n.a.createElement(U.a,{className:"".concat($.a.rightMenu," ").concat($.a.menuWrap)},n.a.createElement(U.a.Item,null,n.a.createElement(h.a,{to:"/users/".concat((Yn=et.userInfo)===null||Yn===void 0?void 0:Yn.login,"/classrooms")},"\u6211\u7684\u4E2A\u4EBA\u4E3B\u9875")),!Ft&&n.a.createElement(U.a.Item,null,n.a.createElement(h.a,{to:"/users/".concat((ar=et.userInfo)===null||ar===void 0?void 0:ar.login,"/classrooms")},(nr=et.userInfo)!==null&&nr!==void 0&&nr.main_site?"\u6211\u7684\u6559\u5B66\u8BFE\u5802":"\u6211\u7684\u8BFE\u5802")),!Lt&&n.a.createElement(U.a.Item,null,n.a.createElement(h.a,{to:"/users/".concat((Rr=et.userInfo)===null||Rr===void 0?void 0:Rr.login,"/shixuns")},"\u6211\u7684\u5B9E\u8DF5\u9879\u76EE")),!on&&n.a.createElement(U.a.Item,null,n.a.createElement(h.a,{to:"/users/".concat((pr=et.userInfo)===null||pr===void 0?void 0:pr.login,"/paths")},(sn=et.userInfo)!==null&&sn!==void 0&&sn.main_site?"\u6211\u7684\u5B9E\u8DF5\u8BFE\u7A0B":"\u6211\u7684\u8BFE\u7A0B")),((qt=et.userInfo)===null||qt===void 0?void 0:qt.main_site)&&!((On=at.setting)!==null&&On!==void 0&&On.is_local)&&n.a.createElement(U.a.Item,null,n.a.createElement(h.a,{to:"/users/".concat((Fr=et.userInfo)===null||Fr===void 0?void 0:Fr.login,"/projects")},"\u6211\u7684\u5F00\u53D1\u9879\u76EE")),mn&&n.a.createElement(U.a.Item,null,n.a.createElement(h.a,{to:"/users/".concat((Or=et.userInfo)===null||Or===void 0?void 0:Or.login,"/teach-group")},"\u6211\u7684\u6559\u7814\u56E2\u961F")),mn&&n.a.createElement(U.a.Item,null,n.a.createElement("a",{onClick:function(){if(!Object(Se.e)(Xe))return;d.d.push("/problemset")}},"\u8BD5\u9898\u5E93")),mn&&n.a.createElement(U.a.Item,null,n.a.createElement("a",{onClick:function(){if(!Object(Se.e)(Xe))return;d.d.push("/paperlibrary")}},"\u8BD5\u5377\u5E93")),((xr=et.navigationInfo)===null||xr===void 0||((dr=xr.top)===null||dr===void 0)?void 0:dr.customer_management_url)&&n.a.createElement(U.a.Item,null,n.a.createElement("a",{href:(pe=et.navigationInfo)===null||pe===void 0||((X=pe.top)===null||X===void 0)?void 0:X.customer_management_url},"\u5BA2\u6237\u7BA1\u7406")),((q=et.navigationInfo)===null||q===void 0||((oe=q.top)===null||oe===void 0)?void 0:oe.college_identifier)&&n.a.createElement(U.a.Item,null,n.a.createElement(h.a,{to:"/colleges/".concat((De=et.navigationInfo)===null||De===void 0||((fe=De.top)===null||fe===void 0)?void 0:fe.college_identifier,"/statistics")},"\u5B66\u9662\u7EDF\u8BA1")),((ot=et.navigationInfo)===null||ot===void 0||((Qt=ot.top)===null||Qt===void 0)?void 0:Qt.laboratory_admin_url)&&n.a.createElement(U.a.Item,null,n.a.createElement("a",{href:(Mn=et.navigationInfo)===null||Mn===void 0||((Vn=Mn.top)===null||Vn===void 0)?void 0:Vn.laboratory_admin_url},"\u540E\u53F0\u7BA1\u7406")),n.a.createElement(U.a.Item,null,n.a.createElement(h.a,{onClick:function(){localStorage.getItem("Noviceguide")==="0"||Xe({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(U.a.Item,{className:$.a.exit},n.a.createElement("a",{onClick:Object(T.a)(r.a.mark(function $t(){var gn;return r.a.wrap(function(Ar){for(;;)switch(Ar.prev=Ar.next){case 0:return Ar.next=2,Object(me.c)({});case 2:gn=Ar.sent,(gn==null?void 0:gn.status)===1&&(Xe({type:"user/getUserInfo",payload:Object(O.a)({},Mt)}),Xe({type:"user/getNavigationInfo",payload:Object(O.a)({},Mt)}),Oe("autologin_trustie"),Oe("_educoder_session"),localStorage.removeItem("isfirst"),localStorage.removeItem("SystemUpdateadvtime"),localStorage.removeItem("item"),localStorage.removeItem("iscreate"),N.b.success(gn==null?void 0:gn.message),d.d.replace("/"));case 4:case"end":return Ar.stop()}},$t)}))},"\u9000\u51FA")))};if(Object(Te.p)()){var Xn,Fn;return n.a.createElement(R.a,{className:"".concat($.a.height67),overlay:Hn,placement:"bottomRight"},n.a.createElement("section",null,n.a.createElement("aside",null,n.a.createElement("div",{className:ht.actionTabs.type===1?$.a.classromediv:""},n.a.createElement("img",{className:"".concat($.a.userPic," current ml15"),src:"".concat(re.a===null||re.a===void 0?void 0:re.a.IMG_SERVER,"/images/").concat((Xn=et.userInfo)===null||Xn===void 0?void 0:Xn.image_url),alt:"",onClick:function(){var Yn;return d.d.push(Object(W.r)()?"/account/profile":"/users/".concat((Yn=et.userInfo)===null||Yn===void 0?void 0:Yn.login,"/classrooms"))}}),Object(W.r)()&&n.a.createElement("span",{className:"ml10 font16"},(Fn=et.userInfo)===null||Fn===void 0?void 0:Fn.username)))))}else{var xn;return n.a.createElement("div",{className:"font15 ".concat(at.isIlearning?$.a.login:"")},n.a.createElement("span",{className:"ml10 mr5 current",onClick:function(){Xe({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}})}},"\u767B\u5F55"),!((xn=at.setting)!==null&&xn!==void 0&&xn.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-white pr25"},"\u6CE8\u518C")))}},Q=Object(d.a)(function(He){var Ge=He.homePage,Ce=He.loading,Ie=He.user,Fe=He.globalSetting,Be=He.shixunHomeworks;return{homePage:Ge,user:Ie,globalSetting:Fe,shixunHomeworks:Be,loading:Ce.models.index}})(te),J=o("+L6B"),ve=o("2/Rp"),_e=o("Cs+z"),Ae=o.n(_e),Qe=["/","/classrooms","/account/profile","/account/profile/edit","/classrooms/new"],tt=function(Ge){var Ce=Ge.homePage,Ie=Ge.user,Fe=Ge.globalSetting,Be=Ge.loading,We=Ge.dispatch,st=Ge.location,Dt=Ge.text,Ht=Ge.shixunHomeworks,rn=Ge.payload,Bt=rn===void 0?{}:rn,Ct=Object(x.a)(Ge,["homePage","user","globalSetting","loading","dispatch","location","text","shixunHomeworks","payload"]),Ke=Object(i.useState)("none"),et=Object(y.a)(Ke,2),at=et[0],Pe=et[1];return Object(i.useEffect)(function(){Ht.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"&&Pe("flex")},[Ht.actionTabs.key]),Object(i.useEffect)(function(){Ht.actionTabs.key==="\u9690\u85CF"&&(Pe("none"),localStorage.setItem("Noviceguide","0"))},[Ht.actionTabs.key]),n.a.createElement("div",{style:{display:at,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:Ae.a,style:{position:"absolute",top:"-32px"}}),n.a.createElement("div",{style:{marginLeft:"151px",marginTop:"40px",fontSize:"18px",color:"#333333"}},Ht.actionTabs.text),Ht.actionTabs.type===9?n.a.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},n.a.createElement(ve.a,{type:"primary",onClick:function(){localStorage.setItem("Noviceguide","0"),Pe("none"),We({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(ve.a,{type:"primary",onClick:function(){localStorage.setItem("Noviceguide","0"),We({type:"shixunHomeworks/setActionTabs",payload:{key:""}}),Pe("none")},ghost:!0,style:{marginTop:"30px",width:"138px",height:"40px",position:"absolute",top:"124px"}},"\u8DF3\u8FC7\uFF0C\u6211\u81EA\u5DF1\u6765"))))},dt=Object(d.a)(function(He){var Ge=He.homePage,Ce=He.loading,Ie=He.user,Fe=He.globalSetting,Be=He.shixunHomeworks;return{homePage:Ge,user:Ie,globalSetting:Fe,loading:Ce.models.index,shixunHomeworks:Be}})(tt),mt=o("498V"),vt=o.n(mt),yt=o("wd/R"),Ye=o.n(yt),Ue=a.a.Header,ft=e.a.Search;function jt(){var He,Ge,Ce=window.location.pathname,Ie=Ce.split("/"),Fe={};return Ie[1]=="classrooms"&&Ie.length>3&&!((He=Ie[4])!==null&&He!==void 0&&He.includes("newgold"))&&!((Ge=Ie[5])!==null&&Ge!==void 0&&Ge.includes("newgold"))&&Ie[2]!=="coursesId"&&(Fe.course_id=Ie[2]),Ie[1]==="shixuns"&&Ie.length>3&&(Fe.objective_type="shixun",Fe.objective_id=Ie[2]),Ie[1]==="paths"&&Ie.length>3&&(Fe.objective_type="path",Fe.objective_id=Ie[2]),Object(O.a)(Object(O.a)({},Fe),{school:1})}var bt=["/","/classrooms","/account/profile","/account/profile/edit","/classrooms/new"],Pt=function(Ge){var Ce,Ie,Fe=Ge.homePage,Be=Ge.user,We=Ge.globalSetting,st=Ge.loading,Dt=Ge.dispatch,Ht=Ge.location,rn=Ge.isLogin,Bt=rn===void 0?!1:rn,Ct=Ge.shixunHomeworks,Ke=Object(x.a)(Ge,["homePage","user","globalSetting","loading","dispatch","location","isLogin","shixunHomeworks"]),et=Object(l.g)(),at=Object(i.useState)(!1),Pe=Object(y.a)(at,2),Xe=Pe[0],ht=Pe[1],Et=Object(i.useState)(""),Ot=Object(y.a)(Et,2),Mt=Ot[0],lt=Ot[1],Ft=Object(i.useState)(!1),Lt=Object(y.a)(Ft,2),on=Lt[0],mn=Lt[1],Hn=jt(),Xn=Object(i.useState)("0"),Fn=Object(y.a)(Xn,2),xn=Fn[0],fr=Fn[1],Yn=Object(i.useRef)({id:0});Object(i.useEffect)(function(){var fe;return Be!=null&&(fe=Be.userInfo)!==null&&fe!==void 0&&fe.now_time&&(Yn.current.id=setInterval(function(){fr(function(ot){if(ot==="0"){var Qt;return Ye()(Be==null||((Qt=Be.userInfo)===null||Qt===void 0)?void 0:Qt.now_time,"YYYY-MM-DD HH:mm:ss").add(1,"s").format("YYYY-MM-DD HH:mm:ss")}else return Ye()(ot,"YYYY-MM-DD HH:mm:ss").add(1,"s").format("YYYY-MM-DD HH:mm:ss")})},1e3)),function(){clearInterval(Yn.current.id)}},[Be==null||((Ce=Be.userInfo)===null||Ce===void 0)?void 0:Ce.now_time]),Object(i.useEffect)(function(){Dt({type:"user/getNavigationInfo",payload:Object(O.a)({},Hn)})},[We.name]),Object(i.useEffect)(function(){Ct.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"&&(bt!=null&&bt.includes(Ht==null?void 0:Ht.pathname)||(Ht==null?void 0:Ht.pathname.indexOf("/classrooms"))===0||Dt({type:"shixunHomeworks/setActionTabs",payload:{key:"\u9690\u85CF"}}))},[Ht.pathname]),Object(i.useEffect)(function(){Ct.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"||(Ct.actionTabs.key||localStorage.setItem("Noviceguide","0"))},[Ct.actionTabs.key]),Object(i.useEffect)(function(){if(We!=null&&We.setting){var fe,ot,Qt=We==null||((fe=We.setting)===null||fe===void 0||((ot=fe.navbar)===null||ot===void 0))?void 0:ot.filter(function(pn){return!(pn!=null&&pn.hidden)&&!(Object(Te.m)()&&pn.link==="/paperlibrary")}),Mn=Object(b.a)(Qt),Vn;try{for(Mn.s();!(Vn=Mn.n()).done;){var $t=Vn.value;$t.subitem&&($t.subitem=$t.subitem.filter(function(pn){return!(pn!=null&&pn.hidden)&&!(Object(Te.m)()&&pn.link==="/paperlibrary")}))}}catch(pn){Mn.e(pn)}finally{Mn.f()}var gn=!1;Qt==null||Qt.map(function(pn,Ar){var ra,oa,ir,Ra="/"+((ra=Ht.pathname)===null||ra===void 0||((oa=ra.split("/"))===null||oa===void 0)?void 0:oa[1]);if(pn.link===Ra&&(lt(pn==null?void 0:pn.link),Object(W.X)(pn==null?void 0:pn.name),On(Or(Ar,{name:pn==null?void 0:pn.name,link:pn==null?void 0:pn.link},Qt)),gn=!0),pn!=null&&(ir=pn.subitem)!==null&&ir!==void 0&&ir.length){var La;pn==null||((La=pn.subitem)===null||La===void 0)||La.map(function(ca){ca.link===Ra&&(lt(ca==null?void 0:ca.link),Object(W.X)(ca==null?void 0:ca.name),On(Or(Ar,{name:ca==null?void 0:ca.name,link:ca==null?void 0:ca.link},Qt)),gn=!0)})}}),gn||On(Qt)}},[We==null?void 0:We.setting,Be]);var ar=Object(i.useMemo)(function(){var fe;if(We!=null&&(fe=We.setting)!==null&&fe!==void 0&&fe.nav_logo_url){var ot;return"".concat(re.a.IMG_SERVER,"/").concat(We==null||((ot=We.setting)===null||ot===void 0)?void 0:ot.nav_logo_url)}else return"".concat(re.a.IMG_SERVER,"/images/avatars/LaboratorySetting/1nav?t=").concat(new Date().getTime())},[We==null||((Ie=We.setting)===null||Ie===void 0)?void 0:Ie.nav_logo_url]);function nr(fe){et.push("/search?value="+fe)}var Rr=function(){return Xe?n.a.createElement("div",{onBlur:function(){setTimeout(function(){ht(!1)},300)}},n.a.createElement(ft,{placeholder:"\u5B9E\u8DF5\u8BFE\u7A0B/\u6559\u5B66\u8BFE\u5802/\u5B9E\u8DF5\u9879\u76EE/\u4EA4\u6D41\u95EE\u7B54",className:"search-input mr20",onSearch:nr,autoFocus:!0})):n.a.createElement("span",{className:"iconfont icon-sousuo font18 current ml15 mr15",onClick:function(){et.push("/search?value=")}})},pr=Object(i.useState)([]),sn=Object(y.a)(pr,2),qt=sn[0],On=sn[1],Fr=function(){var fe=Object(T.a)(r.a.mark(function ot(Qt,Mn){var Vn,$t,gn,pn,Ar,ra,oa;return r.a.wrap(function(Ra){for(;;)switch(Ra.prev=Ra.next){case 0:if(!((Qt==null?void 0:Qt.name)==="\u5DE5\u7A0B\u8BA4\u8BC1")){Ra.next=6;break}return Ra.next=3,Object(me.j)();case 3:return gn=Ra.sent,gn!=null&&($t=gn.data)!==null&&$t!==void 0&&$t.engineer_url?gn!=null&&(pn=gn.data)!==null&&pn!==void 0&&(Ar=pn.engineer_url)!==null&&Ar!==void 0&&Ar.includes("http")?Object(W.S)(gn==null||((ra=gn.data)===null||ra===void 0)?void 0:ra.engineer_url):et.push(gn==null||((oa=gn.data)===null||oa===void 0)?void 0:oa.engineer_url):(gn==null?void 0:gn.status)!=401&&mn(!0),Ra.abrupt("return");case 6:Qt!=null&&(Vn=Qt.link)!==null&&Vn!==void 0&&Vn.includes("http")?Object(W.S)(Qt==null?void 0:Qt.link):et.push(Qt==null?void 0:Qt.link),(Qt==null?void 0:Qt.name)==="\u6559\u5B66\u8BFE\u5802"&&localStorage.getItem("Noviceguide")!=="0"&&Dt({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 Ra.stop()}},ot)}));return function(Qt,Mn){return fe.apply(this,arguments)}}(),Or=function(ot,Qt,Mn){var Vn=Mn.slice();return Vn[ot]&&(Vn[ot].name=Qt.name,Vn[ot].link=Qt.link),Vn||[]};if(We.showHeader&&We.showHeaderFooter){var xr,dr,pe,X,q,oe,De;return n.a.createElement(a.a,{className:"".concat(We.isIlearning?w.a["header-iearning"]:w.a.header," ").concat(We.showHeaderFixed?w.a.headerFixed:"")},n.a.createElement(Ue,{className:"header"},n.a.createElement("section",{className:w.a["edu-menu"]},(!!We.isIlearning||!(We!=null&&(xr=We.setting)!==null&&xr!==void 0&&xr.main_site)&&!!(We!=null&&(dr=We.setting)!==null&&dr!==void 0&&dr.navbar))&&n.a.createElement(h.a,{style:{display:"flex",alignItems:"center"},onClick:function(){Dt({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},to:"/"},n.a.createElement("img",{className:w.a.logo,title:(pe=We.setting)===null||pe===void 0?void 0:pe.name,src:ar||vt.a})),n.a.createElement("ul",{className:"".concat(w.a.menu," ").concat(Object(W.r)()&&"ml0")},Object(W.r)()&&n.a.createElement("li",null,n.a.createElement("a",{href:"/"},"\u8003\u8BD5\u7CFB\u7EDF")),!Object(W.r)()&&We.setting&&qt.map(function(fe,ot){var Qt,Mn,Vn,$t,gn;return n.a.createElement("li",{key:ot,className:!(fe!=null&&(Qt=fe.subitem)!==null&&Qt!==void 0&&Qt.length)&&Mt===(fe==null?void 0:fe.link)||fe!=null&&(Mn=fe.subitem)!==null&&Mn!==void 0&&Mn.some(function(pn){return Mt===(pn==null?void 0:pn.link)})?w.a.actived:""},n.a.createElement("div",{onClick:function(){return Fr(fe,ot)},className:Ct.actionTabs.type===4?"".concat(w.a.name," ").concat(w.a.classromediv):w.a.name},n.a.createElement("span",null,function(){var pn=fe==null?void 0:fe.name;{var Ar;fe==null||((Ar=fe.subitem)===null||Ar===void 0)||Ar.map(function(ra,oa){return ra.link===Ht.pathname&&(pn=ra.name),ra})}return pn}()),(fe==null||((Vn=fe.subitem)===null||Vn===void 0)?void 0:Vn.length)>0&&n.a.createElement("i",{className:"iconfont icon-zhankai4"})),(fe==null||(($t=fe.subitem)===null||$t===void 0)?void 0:$t.length)>0&&n.a.createElement("div",{className:w.a.dropDown},fe==null||((gn=fe.subitem)===null||gn===void 0)?void 0:gn.map(function(pn,Ar){return n.a.createElement("div",{className:w.a.subName,onClick:function(){return Fr(pn,ot)},key:ot+"-"+Ar},!!Ar&&n.a.createElement("div",{className:w.a.line}),n.a.createElement("aside",{className:"font16 c-black"},pn.name),n.a.createElement("div",{className:"font14",style:{color:"#9FA7B3",whiteSpace:"nowrap"}},pn.content))})))})),n.a.createElement("div",{className:"search-bar",style:{flex:We.isIlearning?"initial":"1 0 auto"}},n.a.createElement("div",{className:"timeShow"},xn),!Object(W.r)()&&!(We!=null&&We.isIlearning)&&n.a.createElement(n.a.Fragment,null,n.a.createElement(Rr,null),!Bt&&n.a.createElement(ue,null),!Bt&&!!(Be!=null&&(X=Be.userInfo)!==null&&X!==void 0&&X.login)&&n.a.createElement(h.a,{className:"iconfont icon-xiaoxilingdang c-white ml15 mr15 font18 relative",to:"/messages/".concat(Be==null||((q=Be.userInfo)===null||q===void 0)?void 0:q.login,"/user_tidings")},(Be==null||((oe=Be.navigationInfo)===null||oe===void 0||((De=oe.top)===null||De===void 0))?void 0:De.new_message)&&n.a.createElement("span",{className:w.a.newslight}))),!Bt&&n.a.createElement(Q,{payload:Hn}))),n.a.createElement(g.a,{centered:!0,destroyOnClose:!0,visible:on,title:"\u63D0\u793A",width:"500px",okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(W.S)("https://qm.qq.com/cgi-bin/qm/qr?k=DWdqQHAbbfw7_rqm0d-Q_vDn5H6bMp91&jump_from=webapi")},onCancel:function(){return mn(!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.y,width:200,height:200}),n.a.createElement("p",null,"\u7FA4\u53F7\uFF1A693542422 ")))),n.a.createElement(dt,null))}else return n.a.createElement(n.a.Fragment,null)},it=z.a=Object(d.a)(function(He){var Ge=He.homePage,Ce=He.loading,Ie=He.user,Fe=He.globalSetting,Be=He.shixunHomeworks;return{homePage:Ge,user:Ie,globalSetting:Fe,loading:Ce.models.index,shixunHomeworks:Be}})(Pt)},sLOW:function(k,z,o){"use strict";var P=o("iQDF"),g=o("+eQT"),T=o("Awhp"),b=o("KrTs"),y=o("O3gP"),x=o("lrIw"),O=o("7Kak"),m=o("9yH6"),e=o("sRBo"),f=o("kaz8"),a=o("+L6B"),u=o("2/Rp"),r=o("oBTY"),i=o("miYZ"),n=o("tsqr"),l=o("2qtc"),h=o("kLXV"),d=o("9og8"),s=o("tJVT"),c=o("PpiC"),w=o("WmNS"),E=o.n(w),v=o("q1tI"),R=o.n(v),M=o("9kvl"),C=o("Z0Lh"),S=o.n(C),_=o("9ZNV"),A=o("NLgs"),U=o("wd/R"),L=o.n(U),N=o("L+Ii"),V=o.n(N),H=function(I){if(!I)return I;var K=I.split(":");if(K[1]=="00"||K[1]=="30")return I;var ee=parseInt(K[1]);if(ee<30||ee==60)return[K[0],"30"].join(":");if(ee<60){var he=[K[0],"00"].join(":"),de="YYYY-MM-DD HH:mm",Se=L()(he,de);return Se.add(1,"hours"),Se.format(de)}return I},D="YYYY-MM-DD HH:mm",W=function(I){var K,ee,he,de,Se,Te,ce,be,Ee=I.shixunsDetail,ue=I.globalSetting,le=I.loading,$=I.user,me=I.dispatch,re=Object(c.a)(I,["shixunsDetail","globalSetting","loading","user","dispatch"]),ae=Object(v.useRef)(),Oe=Object(v.useState)(),se=Object(s.a)(Oe,2),te=se[0],Q=se[1],J=Object(v.useState)(),ve=Object(s.a)(J,2),_e=ve[0],Ae=ve[1],Qe=Object(v.useState)([]),tt=Object(s.a)(Qe,2),dt=tt[0],mt=tt[1],vt=Object(v.useState)([]),yt=Object(s.a)(vt,2),Ye=yt[0],Ue=yt[1],ft=Object(v.useState)(""),jt=Object(s.a)(ft,2),bt=jt[0],Pt=jt[1],it=Object(v.useState)(),He=Object(s.a)(it,2),Ge=He[0],Ce=He[1],Ie=Object(v.useState)(),Fe=Object(s.a)(Ie,2),Be=Fe[0],We=Fe[1],st=(K=$.userInfo)===null||K===void 0||((ee=K.shixun)===null||ee===void 0)?void 0:ee.editable;Object(v.useEffect)(function(){var Ke,et;ae.current=(Ke=location.pathname)===null||Ke===void 0||((et=Ke.split("/"))===null||et===void 0)?void 0:et[2],Dt()},[]),Object(v.useEffect)(function(){var Ke,et,at,Pe,Xe,ht,Et,Ot,Mt,lt;if(!Ee.setting)return;Q((Ke=Ee.setting)===null||Ke===void 0||((et=Ke.shixun)===null||et===void 0)?void 0:et.can_copy),Ae((at=Ee.setting)===null||at===void 0||((Pe=at.shixun)===null||Pe===void 0)?void 0:Pe.use_scope),Ce(!!((Xe=Ee.setting)!==null&&Xe!==void 0&&(ht=Xe.shixun)!==null&&ht!==void 0&&ht.opening_time)),We((Et=Ee.setting)===null||Et===void 0||((Ot=Et.shixun)===null||Ot===void 0)?void 0:Ot.opening_time),mt((Mt=Ee.setting)===null||Mt===void 0||((lt=Mt.shixun)===null||lt===void 0)?void 0:lt.scope_partment)},[Ee.setting]);var Dt=function(){var Ke=Object(d.a)(E.a.mark(function et(at){var Pe;return E.a.wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:return ht.next=2,me({type:"shixunsDetail/getDepartments",payload:{q:at}});case 2:Pe=ht.sent,Pe&&Ue(Pe.shools_name||[]);case 4:case"end":return ht.stop()}},et)}));return function(at){return Ke.apply(this,arguments)}}(),Ht=function(){var Ke=Object(d.a)(E.a.mark(function et(){var at,Pe,Xe,ht,Et,Ot,Mt;return E.a.wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:return Ft.next=2,me({type:"shixunsDetail/getShixunQuote",payload:{id:ae.current}});case 2:if(Ft.t0=Ft.sent,Ft.t0){Ft.next=5;break}Ft.t0={};case 5:Mt=Ft.t0,h.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:520,content:R.a.createElement("div",{className:"tc font14 ".concat(V.a.modal)},!!((at=Mt.subjects)!==null&&at!==void 0&&at.length)&&R.a.createElement(R.a.Fragment,null,R.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230"," ",(Pe=Mt.subjects)===null||Pe===void 0||((Xe=Pe.splice(0,2))===null||Xe===void 0)?void 0:Xe.map(function(Lt){return"\u300A".concat(Lt,"\u300B")}),"\u7B49",R.a.createElement("span",{className:V.a.colorOrange},Mt==null?void 0:Mt.subjects_count),"\u4E2A\u5B9E\u8BAD\u8BFE\u7A0B"),R.a.createElement("br",null)),!!((ht=Mt.courses)!==null&&ht!==void 0&&ht.length)&&R.a.createElement(R.a.Fragment,null,R.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230",(Et=Mt.courses)===null||Et===void 0||((Ot=Et.splice(0,2))===null||Ot===void 0)?void 0:Ot.map(function(Lt){return"\u300A".concat(Lt,"\u300B")}),"\u7B49",R.a.createElement("span",{className:V.a.colorOrange},Mt==null?void 0:Mt.courses_count),"\u4E2A\u6559\u5B66\u8BFE\u5802"),R.a.createElement("br",null)),R.a.createElement("span",{className:"".concat(V.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 Lt=Object(d.a)(E.a.mark(function mn(){var Hn;return E.a.wrap(function(Fn){for(;;)switch(Fn.prev=Fn.next){case 0:return Fn.next=2,me({type:"shixunsDetail/deleteShixun",payload:{id:ae.current}});case 2:Hn=Fn.sent,Hn.status===1&&(n.b.success("\u64CD\u4F5C\u6210\u529F"),M.d.push("/shixuns"));case 4:case"end":return Fn.stop()}},mn)}));function on(){return Lt.apply(this,arguments)}return on}()});case 7:case"end":return Ft.stop()}},et)}));return function(){return Ke.apply(this,arguments)}}(),rn=function(){if(Object(A.b)(me,"\u4E0D\u80FD\u8FDB\u884C\u5220\u9664"))return},Bt=function(et){if(dt.includes(et)){n.b.info("\u8BF7\u52FF\u6307\u5B9A\u76F8\u540C\u7684\u5355\u4F4D");return}Pt(null),mt([].concat(Object(r.a)(dt),[et]))},Ct=function(){var Ke=Object(d.a)(E.a.mark(function et(){var at;return E.a.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:if(!(Ge&&!Be)){Xe.next=3;break}return n.b.info("\u8BF7\u9009\u62E9\u5F00\u542F\u65F6\u95F4"),Xe.abrupt("return");case 3:if(!(_e===1&&!dt.length)){Xe.next=6;break}return n.b.info("\u8BF7\u9009\u62E9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"),Xe.abrupt("return");case 6:return Xe.next=8,me({type:"shixunsDetail/updatePermissionSetting",payload:{id:ae.current,scope_partment:_e===0?null:dt,shixun:{can_copy:te,use_scope:_e,opening_time:Be}}});case 8:at=Xe.sent,at.status!==-1&&(n.b.info("\u6743\u9650\u914D\u7F6E\u4FDD\u5B58\u6210\u529F\uFF01"),me({type:"shixunsDetail/getSettingsData",payload:{id:ae.current}}),me({type:"shixunsDetail/getShixunsDetail",payload:{id:ae.current}}));case 10:case"end":return Xe.stop()}},et)}));return function(){return Ke.apply(this,arguments)}}();return R.a.createElement("section",{className:V.a.wrap},R.a.createElement("div",{style:{position:"absolute",top:"80px",right:"40px"}},(Ee==null||((he=Ee.detail)===null||he===void 0)?void 0:he.shixun_status)!==2?R.a.createElement(u.a,{danger:!0,onClick:Ht},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE"):R.a.createElement(u.a,{danger:!0,onClick:rn},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE")),R.a.createElement("div",{className:V.a.labelWrap},R.a.createElement("label",{className:V.a.label},"\u590D\u5236:"),R.a.createElement("div",{className:V.a.labelContent},R.a.createElement("div",null,R.a.createElement(f.a,{checked:te,onChange:function(et){return Q(et.target.checked)},disabled:!st}),R.a.createElement("span",{className:"".concat(V.a.color999)},"\uFF08\u9009\u4E2D\u5219\u5141\u8BB8\u5DF2\u804C\u4E1A\u8BA4\u8BC1\u7684\u6559\u5E08\u590D\u5236\u8BE5\u5B9E\u8BAD\uFF09")))),!((((de=Ee.detail)===null||de===void 0?void 0:de.shixun_status)>1||((Se=Ee.detail)===null||Se===void 0?void 0:Se.public)===2)&&((Te=Ee.setting)===null||Te===void 0||((ce=Te.shixun)===null||ce===void 0)?void 0:ce.use_scope)===0&&((be=Ee.detail)===null||be===void 0?void 0:be.identity)>2)&&R.a.createElement("div",{className:V.a.labelWrap},R.a.createElement("label",{className:V.a.label},"\u516C\u5F00\u7A0B\u5EA6:"),R.a.createElement("div",{className:V.a.labelContent},R.a.createElement(m.a.Group,{value:_e,onChange:function(et){return Ae(et.target.value)},disabled:!st},R.a.createElement(m.a,{className:V.a.radio,value:0},R.a.createElement("span",null,"\u5BF9\u6240\u6709\u5355\u4F4D\u516C\u5F00"),R.a.createElement("span",{className:V.a.color999},"\uFF08\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),R.a.createElement(m.a,{className:V.a.radio,value:1},R.a.createElement("span",null,"\u5BF9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"),R.a.createElement("span",{className:V.a.color999},"\uFF08\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u4EC5\u5BF9\u4E0B\u65B9\u6307\u5B9A\u5355\u4F4D\u7684\u7528\u6237\u53EF\u89C1\uFF09"))),_e===1&&R.a.createElement(R.a.Fragment,null,R.a.createElement("div",{className:"mt10"},R.a.createElement(x.a,{showSearch:!0,className:V.a.selectSchool,placeholder:"\u8BF7\u8F93\u5165\u5E76\u9009\u62E9\u5355\u4F4D\u540D\u79F0",value:bt,onChange:function(et){Pt(et),Dt(et)},disabled:!st,onSelect:Bt,options:Ye==null?void 0:Ye.map(function(Ke){return{value:Ke}})}),R.a.createElement("span",{className:V.a.color999},"\uFF08\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u4EC5\u5BF9\u4E0B\u65B9\u6307\u5B9A\u5355\u4F4D\u7684\u7528\u6237\u53EF\u89C1\uFF09")),R.a.createElement("div",{className:"mt10"},dt==null?void 0:dt.map(function(Ke){return st?R.a.createElement(b.a,{count:"x",className:"mr20 current",onClick:function(){return mt(dt.filter(function(at){return at!==Ke}))}},R.a.createElement(u.a,{type:"primary",ghost:!0},Ke)):R.a.createElement(u.a,{type:"primary",ghost:!0,className:"mr20"},Ke)}))))),R.a.createElement("div",{className:V.a.labelWrap},R.a.createElement("label",{className:V.a.label},"\u5F00\u542F\u65F6\u95F4:"),R.a.createElement("div",{className:V.a.labelContent},R.a.createElement("div",null,R.a.createElement(f.a,{checked:Ge,onChange:function(et){return Ce(et.target.checked)},disabled:!st}),R.a.createElement("span",{className:"".concat(V.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&&R.a.createElement(g.a,{className:"".concat(V.a.dataPicker," mt10"),format:D,locale:S.a,disabled:!st,placeholder:"\u8BF7\u8F93\u5165\u5F00\u542F\u65F6\u95F4",showToday:!1,disabledDate:function(et){return et&&et<L()().endOf("day").subtract(1,"days")},showTime:{minuteStep:30},value:Be&&L()(Be,D),onChange:function(et,at){return We(H(at))}}))),R.a.createElement(_.a,{okText:"\u4FDD\u5B58",hasOkBtn:st,loading:le.effects["shixunsDetail/updatePermissionSetting"],onCancel:function(){return M.d.push("/shixuns/".concat(ae.current,"/challenges"))},onOk:Ct}))};z.a=Object(M.a)(function(F){var I=F.shixunsDetail,K=F.loading,ee=F.globalSetting,he=F.user;return{shixunsDetail:I,globalSetting:ee,user:he,loading:K}})(W)},sR1s:function(k,z,o){"use strict";o.d(z,"b",function(){return b}),o.d(z,"a",function(){return y}),o.d(z,"c",function(){return x}),o.d(z,"d",function(){return O});var P=o("U8pU"),g="RC_TABLE_KEY";function T(m){return m==null?[]:Array.isArray(m)?m:[m]}function b(m,e){if(!e&&typeof e!="number")return m;for(var f=T(e),a=m,u=0;u<f.length;u+=1){if(!a)return null;var r=f[u];a=a[r]}return a}function y(m){var e=[],f={};return m.forEach(function(a){for(var u=a||{},r=u.key,i=u.dataIndex,n=r||T(i).join("-")||g;f[n];)n="".concat(n,"_next");f[n]=!0,e.push(n)}),e}function x(){var m={};function e(r,i){i&&Object.keys(i).forEach(function(n){var l=i[n];l&&Object(P.a)(l)==="object"?(r[n]=r[n]||{},e(r[n],l)):r[n]=l})}for(var f=arguments.length,a=new Array(f),u=0;u<f;u++)a[u]=arguments[u];return a.forEach(function(r){e(m,r)}),m}function O(m){return m!=null}},sboe:function(k,z,o){"use strict";o.d(z,"a",function(){return T});var P=o("q1tI"),g=o.n(P),T=P.createContext(null)},sckv:function(k,z,o){k.exports={wrap:"wrap___3kep6",colorBlue:"colorBlue___3r5Hq",repeatedName:"repeatedName___vESvE"}},siWv:function(k,z,o){k.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(k,z,o){"use strict";var P=o("VTBJ"),g=o("1OyB"),T=o("vuIU"),b=o("Ji7U"),y=o("LK+K"),x=o("q1tI"),O=o.n(x),m=o("m+aA"),e=o("Zm9Q"),f=o("Kwbf"),a=o("c+Xe"),u=o("bdgK"),r="rc-observer-key",i=function(n){Object(b.a)(h,n);var l=Object(y.a)(h);function h(){var d;return Object(g.a)(this,h),d=l.apply(this,arguments),d.resizeObserver=null,d.childNode=null,d.currentElement=null,d.state={width:0,height:0,offsetHeight:0,offsetWidth:0},d.onResize=function(s){var c=d.props.onResize,w=s[0].target,E=w.getBoundingClientRect(),v=E.width,R=E.height,M=w.offsetWidth,C=w.offsetHeight,S=Math.floor(v),_=Math.floor(R);if(d.state.width!==S||d.state.height!==_||d.state.offsetWidth!==M||d.state.offsetHeight!==C){var A={width:S,height:_,offsetWidth:M,offsetHeight:C};d.setState(A),c&&Promise.resolve().then(function(){c(Object(P.a)(Object(P.a)({},A),{},{offsetWidth:M,offsetHeight:C}))})}},d.setChildNode=function(s){d.childNode=s},d}return Object(T.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 c=Object(m.a)(this.childNode||this),w=c!==this.currentElement;w&&(this.destroyObserver(),this.currentElement=c),!this.resizeObserver&&c&&(this.resizeObserver=new u.default(this.onResize),this.resizeObserver.observe(c))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var s=this.props.children,c=Object(e.a)(s);if(c.length>1)Object(f.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(c.length===0)return Object(f.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var w=c[0];if(x.isValidElement(w)&&Object(a.c)(w)){var E=w.ref;c[0]=x.cloneElement(w,{ref:Object(a.a)(E,this.setChildNode)})}return c.length===1?c[0]:c.map(function(v,R){return!x.isValidElement(v)||"key"in v&&v.key!==null?v:x.cloneElement(v,{key:"".concat(r,"-").concat(R)})})}}]),h}(x.Component);i.displayName="ResizeObserver",z.a=i},t9D7:function(k,z,o){"use strict";o.d(z,"b",function(){return O}),o.d(z,"g",function(){return e}),o.d(z,"d",function(){return f}),o.d(z,"e",function(){return a}),o.d(z,"a",function(){return u}),o.d(z,"f",function(){return n}),o.d(z,"c",function(){return l});var P=o("Vhoy"),g=o("MI8n"),T=o("pmY6"),b=o("Cg/j"),y=o("ic2d"),x=o("nEHx");const O=Object(b.c)("themeService");var m;(function(h){function d(s){return s&&typeof s=="object"&&typeof s.id=="string"}h.isThemeColor=d})(m||(m={}));function e(h){return{id:h}}var f;(function(h){function d(R){return R&&typeof R=="object"&&typeof R.id=="string"&&(typeof R.color=="undefined"||m.isThemeColor(R.color))}h.isThemeIcon=d;const s=new RegExp(`^\\$\\((${P.a.iconNameExpression}(?:${P.a.iconModifierExpression})?)\\)$`);function c(R){const M=s.exec(R);if(!M)return;let[,C]=M;return{id:C}}h.fromString=c;function w(R,M){let C=R.id;const S=C.lastIndexOf("~");return S!==-1&&(C=C.substring(0,S)),M&&(C=`${C}~${M}`),{id:C}}h.modify=w;function E(R,M){var C,S;return R.id===M.id&&((C=R.color)===null||C===void 0?void 0:C.id)===((S=M.color)===null||S===void 0?void 0:S.id)}h.isEqual=E;function v(R,M){return{id:R.id,color:M?e(M):void 0}}h.asThemeIcon=v,h.asClassNameArray=P.a.asClassNameArray,h.asClassName=P.a.asClassName,h.asCSSSelector=P.a.asCSSSelector})(f||(f={}));function a(h){switch(h){case x.a.DARK:return"vs-dark";case x.a.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const u={ThemingContribution:"base.contributions.theming"};class r{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new g.b}onColorThemeChange(h){return this.themingParticipants.push(h),this.onThemingParticipantAddedEmitter.fire(h),Object(T.i)(()=>{const d=this.themingParticipants.indexOf(h);this.themingParticipants.splice(d,1)})}getThemingParticipants(){return this.themingParticipants}}let i=new r;y.a.add(u.ThemingContribution,i);function n(h){return i.onColorThemeChange(h)}class l extends T.a{constructor(h){super();this.themeService=h,this.theme=h.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(d=>this.onThemeChange(d)))}onThemeChange(h){this.theme=h,this.updateStyles()}updateStyles(){}}},tWlo:function(k,z){k.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(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("MlIO"),o("1uat"))})(this,function(P){return function(){var g=P,T=g.x64,b=T.Word,y=T.WordArray,x=g.algo,O=x.SHA512,m=x.SHA384=O.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 e=O._doFinalize.call(this);return e.sigBytes-=16,e}});g.SHA384=O._createHelper(m),g.HmacSHA384=O._createHmacHelper(m)}(),P.SHA384})},uGxW:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(P){return P.pad.NoPadding={pad:function(){},unpad:function(){}},P.pad.NoPadding})},uK0f:function(k,z,o){(function(P,g){k.exports=g()})(this,function(){"use strict";function P(g,T,b){b=b||{},b.childrenKeyName=b.childrenKeyName||"children";var y=g||[],x=[],O=0;do{var m=y.filter(function(e){return T(e,O)})[0];if(!m)break;x.push(m),y=m[b.childrenKeyName]||[],O+=1}while(y.length>0);return x}return P})},ulZh:function(k,z,o){typeof window!="undefined"&&function(g,T){k.exports=T()}(this,function(){return function(P){var g={};function T(b){if(g[b])return g[b].exports;var y=g[b]={i:b,l:!1,exports:{}};return P[b].call(y.exports,y,y.exports,T),y.l=!0,y.exports}return T.m=P,T.c=g,T.d=function(b,y,x){T.o(b,y)||Object.defineProperty(b,y,{enumerable:!0,get:x})},T.r=function(b){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(b,"__esModule",{value:!0})},T.t=function(b,y){if(y&1&&(b=T(b)),y&8)return b;if(y&4&&typeof b=="object"&&b&&b.__esModule)return b;var x=Object.create(null);if(T.r(x),Object.defineProperty(x,"default",{enumerable:!0,value:b}),y&2&&typeof b!="string")for(var O in b)T.d(x,O,function(m){return b[m]}.bind(null,O));return x},T.n=function(b){var y=b&&b.__esModule?function(){return b.default}:function(){return b};return T.d(y,"a",y),y},T.o=function(b,y){return Object.prototype.hasOwnProperty.call(b,y)},T.p="/dist/",T(T.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(P,g,T){"use strict";var b=Object.prototype.hasOwnProperty,y="~";function x(){}Object.create&&(x.prototype=Object.create(null),new x().__proto__||(y=!1));function O(a,u,r){this.fn=a,this.context=u,this.once=r||!1}function m(a,u,r,i,n){if(typeof r!="function")throw new TypeError("The listener must be a function");var l=new O(r,i||a,n),h=y?y+u:u;return a._events[h]?a._events[h].fn?a._events[h]=[a._events[h],l]:a._events[h].push(l):(a._events[h]=l,a._eventsCount++),a}function e(a,u){--a._eventsCount===0?a._events=new x:delete a._events[u]}function f(){this._events=new x,this._eventsCount=0}f.prototype.eventNames=function(){var u=[],r,i;if(this._eventsCount===0)return u;for(i in r=this._events)b.call(r,i)&&u.push(y?i.slice(1):i);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(r)):u},f.prototype.listeners=function(u){var r=y?y+u:u,i=this._events[r];if(!i)return[];if(i.fn)return[i.fn];for(var n=0,l=i.length,h=new Array(l);n<l;n++)h[n]=i[n].fn;return h},f.prototype.listenerCount=function(u){var r=y?y+u:u,i=this._events[r];return i?i.fn?1:i.length:0},f.prototype.emit=function(u,r,i,n,l,h){var d=y?y+u:u;if(!this._events[d])return!1;var s=this._events[d],c=arguments.length,w,E;if(s.fn){s.once&&this.removeListener(u,s.fn,void 0,!0);switch(c){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,r),!0;case 3:return s.fn.call(s.context,r,i),!0;case 4:return s.fn.call(s.context,r,i,n),!0;case 5:return s.fn.call(s.context,r,i,n,l),!0;case 6:return s.fn.call(s.context,r,i,n,l,h),!0}for(E=1,w=new Array(c-1);E<c;E++)w[E-1]=arguments[E];s.fn.apply(s.context,w)}else{var v=s.length,R;for(E=0;E<v;E++){s[E].once&&this.removeListener(u,s[E].fn,void 0,!0);switch(c){case 1:s[E].fn.call(s[E].context);break;case 2:s[E].fn.call(s[E].context,r);break;case 3:s[E].fn.call(s[E].context,r,i);break;case 4:s[E].fn.call(s[E].context,r,i,n);break;default:if(!w)for(R=1,w=new Array(c-1);R<c;R++)w[R-1]=arguments[R];s[E].fn.apply(s[E].context,w)}}}return!0},f.prototype.on=function(u,r,i){return m(this,u,r,i,!1)},f.prototype.once=function(u,r,i){return m(this,u,r,i,!0)},f.prototype.removeListener=function(u,r,i,n){var l=y?y+u:u;if(!this._events[l])return this;if(!r)return e(this,l),this;var h=this._events[l];if(h.fn)h.fn===r&&(!n||h.once)&&(!i||h.context===i)&&e(this,l);else{for(var d=0,s=[],c=h.length;d<c;d++)(h[d].fn!==r||n&&!h[d].once||i&&h[d].context!==i)&&s.push(h[d]);s.length?this._events[l]=s.length===1?s[0]:s:e(this,l)}return this},f.prototype.removeAllListeners=function(u){var r;return u?(r=y?y+u:u,this._events[r]&&e(this,r)):(this._events=new x,this._eventsCount=0),this},f.prototype.off=f.prototype.removeListener,f.prototype.addListener=f.prototype.on,f.prefixed=y,f.EventEmitter=f,P.exports=f},"./node_modules/url-toolkit/src/url-toolkit.js":function(P,g,T){(function(b){var y=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/,x=/^([^\/?#]*)([^]*)$/,O=/(?:\/|^)\.(?=\/)/g,m=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,e={buildAbsoluteURL:function(f,a,u){if(u=u||{},f=f.trim(),a=a.trim(),!a){if(!u.alwaysNormalize)return f;var r=e.parseURL(f);if(!r)throw new Error("Error trying to parse base URL.");return r.path=e.normalizePath(r.path),e.buildURLFromParts(r)}var i=e.parseURL(a);if(!i)throw new Error("Error trying to parse relative URL.");if(i.scheme)return u.alwaysNormalize?(i.path=e.normalizePath(i.path),e.buildURLFromParts(i)):a;var n=e.parseURL(f);if(!n)throw new Error("Error trying to parse base URL.");if(!n.netLoc&&n.path&&n.path[0]!=="/"){var l=x.exec(n.path);n.netLoc=l[1],n.path=l[2]}n.netLoc&&!n.path&&(n.path="/");var h={scheme:n.scheme,netLoc:i.netLoc,path:null,params:i.params,query:i.query,fragment:i.fragment};if(!i.netLoc&&(h.netLoc=n.netLoc,i.path[0]!=="/"))if(!i.path)h.path=n.path,i.params||(h.params=n.params,i.query||(h.query=n.query));else{var d=n.path,s=d.substring(0,d.lastIndexOf("/")+1)+i.path;h.path=e.normalizePath(s)}return h.path===null&&(h.path=u.alwaysNormalize?e.normalizePath(i.path):i.path),e.buildURLFromParts(h)},parseURL:function(f){var a=y.exec(f);return a?{scheme:a[1]||"",netLoc:a[2]||"",path:a[3]||"",params:a[4]||"",query:a[5]||"",fragment:a[6]||""}:null},normalizePath:function(f){for(f=f.split("").reverse().join("").replace(O,"");f.length!==(f=f.replace(m,"")).length;);return f.split("").reverse().join("")},buildURLFromParts:function(f){return f.scheme+f.netLoc+f.path+f.params+f.query+f.fragment}};P.exports=e})(this)},"./node_modules/webworkify-webpack/index.js":function(P,g,T){function b(u){var r={};function i(l){if(r[l])return r[l].exports;var h=r[l]={i:l,l:!1,exports:{}};return u[l].call(h.exports,h,h.exports,i),h.l=!0,h.exports}i.m=u,i.c=r,i.i=function(l){return l},i.d=function(l,h,d){i.o(l,h)||Object.defineProperty(l,h,{configurable:!1,enumerable:!0,get:d})},i.r=function(l){Object.defineProperty(l,"__esModule",{value:!0})},i.n=function(l){var h=l&&l.__esModule?function(){return l.default}:function(){return l};return i.d(h,"a",h),h},i.o=function(l,h){return Object.prototype.hasOwnProperty.call(l,h)},i.p="/",i.oe=function(l){throw console.error(l),l};var n=i(i.s=ENTRY_MODULE);return n.default||n}var y="[\\.|\\-|\\+|\\w|/|@]+",x="\\(\\s*(/\\*.*?\\*/)?\\s*.*?("+y+").*?\\)";function O(u){return(u+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function m(u){return!isNaN(1*u)}function e(u,r,i){var n={};n[i]=[];var l=r.toString(),h=l.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!h)return n;for(var d=h[1],s=new RegExp("(\\\\n|\\W)"+O(d)+x,"g"),c;c=s.exec(l);){if(c[3]==="dll-reference")continue;n[i].push(c[3])}for(s=new RegExp("\\("+O(d)+'\\("(dll-reference\\s('+y+'))"\\)\\)'+x,"g");c=s.exec(l);)u[c[2]]||(n[i].push(c[1]),u[c[2]]=T(c[1]).m),n[c[2]]=n[c[2]]||[],n[c[2]].push(c[4]);for(var w=Object.keys(n),E=0;E<w.length;E++)for(var v=0;v<n[w[E]].length;v++)m(n[w[E]][v])&&(n[w[E]][v]=1*n[w[E]][v]);return n}function f(u){var r=Object.keys(u);return r.reduce(function(i,n){return i||u[n].length>0},!1)}function a(u,r){for(var i={main:[r]},n={main:[]},l={main:{}};f(i);)for(var h=Object.keys(i),d=0;d<h.length;d++){var s=h[d],c=i[s],w=c.pop();if(l[s]=l[s]||{},l[s][w]||!u[s][w])continue;l[s][w]=!0,n[s]=n[s]||[],n[s].push(w);for(var E=e(u,u[s][w],s),v=Object.keys(E),R=0;R<v.length;R++)i[v[R]]=i[v[R]]||[],i[v[R]]=i[v[R]].concat(E[v[R]])}return n}P.exports=function(u,r){r=r||{};var i={main:T.m},n=r.all?{main:Object.keys(i.main)}:a(i,u),l="";Object.keys(n).filter(function(w){return w!=="main"}).forEach(function(w){for(var E=0;n[w][E];)E++;n[w].push(E),i[w][E]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",l=l+"var "+w+" = ("+b.toString().replace("ENTRY_MODULE",JSON.stringify(E))+")({"+n[w].map(function(v){return""+JSON.stringify(v)+": "+i[w][v].toString()}).join(",")+`});
|
|
|
`}),l=l+"new (("+b.toString().replace("ENTRY_MODULE",JSON.stringify(u))+")({"+n.main.map(function(w){return""+JSON.stringify(w)+": "+i.main[w].toString()}).join(",")+"}))(self);";var h=new window.Blob([l],{type:"text/javascript"});if(r.bare)return h;var d=window.URL||window.webkitURL||window.mozURL||window.msURL,s=d.createObjectURL(h),c=new window.Worker(s);return c.objectURL=s,c}},"./src/config.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"hlsDefaultConfig",function(){return R}),T.d(g,"mergeConfig",function(){return C}),T.d(g,"enableStreamingMode",function(){return S});var b=T("./src/controller/abr-controller.ts"),y=T("./src/controller/audio-stream-controller.ts"),x=T("./src/controller/audio-track-controller.ts"),O=T("./src/controller/subtitle-stream-controller.ts"),m=T("./src/controller/subtitle-track-controller.ts"),e=T("./src/controller/buffer-controller.ts"),f=T("./src/controller/timeline-controller.ts"),a=T("./src/controller/cap-level-controller.ts"),u=T("./src/controller/fps-controller.ts"),r=T("./src/controller/eme-controller.ts"),i=T("./src/controller/cmcd-controller.ts"),n=T("./src/utils/xhr-loader.ts"),l=T("./src/utils/fetch-loader.ts"),h=T("./src/utils/cues.ts"),d=T("./src/utils/mediakeys-helper.ts"),s=T("./src/utils/logger.ts");function c(){return c=Object.assign||function(_){for(var A=1;A<arguments.length;A++){var U=arguments[A];for(var L in U)Object.prototype.hasOwnProperty.call(U,L)&&(_[L]=U[L])}return _},c.apply(this,arguments)}function w(_,A){var U=Object.keys(_);if(Object.getOwnPropertySymbols){var L=Object.getOwnPropertySymbols(_);A&&(L=L.filter(function(N){return Object.getOwnPropertyDescriptor(_,N).enumerable})),U.push.apply(U,L)}return U}function E(_){for(var A=1;A<arguments.length;A++){var U=arguments[A]!=null?arguments[A]:{};A%2?w(Object(U),!0).forEach(function(L){v(_,L,U[L])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(U)):w(Object(U)).forEach(function(L){Object.defineProperty(_,L,Object.getOwnPropertyDescriptor(U,L))})}return _}function v(_,A,U){return A in _?Object.defineProperty(_,A,{value:U,enumerable:!0,configurable:!0,writable:!0}):_[A]=U,_}var R=E(E({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:e.default,capLevelController:a.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:d.requestMediaKeySystemAccess,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0},M()),{},{subtitleStreamController:O.SubtitleStreamController,subtitleTrackController:m.default,timelineController:f.TimelineController,audioStreamController:y.default,audioTrackController:x.default,emeController:r.default,cmcdController:i.default});function M(){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 C(_,A){if((A.liveSyncDurationCount||A.liveMaxLatencyDurationCount)&&(A.liveSyncDuration||A.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(A.liveMaxLatencyDurationCount!==void 0&&(A.liveSyncDurationCount===void 0||A.liveMaxLatencyDurationCount<=A.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(A.liveMaxLatencyDuration!==void 0&&(A.liveSyncDuration===void 0||A.liveMaxLatencyDuration<=A.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');return c({},_,A)}function S(_){var A=_.loader;if(A!==l.default&&A!==n.default)s.logger.log("[config]: Custom loader detected, cannot enable progressive streaming"),_.progressive=!1;else{var U=Object(l.fetchSupported)();U&&(_.loader=l.default,_.progressive=!0,_.enableSoftwareAES=!0,s.logger.log("[config]: Progressive streaming enabled, using FetchLoader"))}}},"./src/controller/abr-controller.ts":function(P,g,T){"use strict";T.r(g);var b=T("./src/polyfills/number.ts"),y=T("./src/utils/ewma-bandwidth-estimator.ts"),x=T("./src/events.ts"),O=T("./src/utils/buffer-helper.ts"),m=T("./src/errors.ts"),e=T("./src/types/loader.ts"),f=T("./src/utils/logger.ts");function a(i,n){for(var l=0;l<n.length;l++){var h=n[l];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(i,h.key,h)}}function u(i,n,l){return n&&a(i.prototype,n),l&&a(i,l),i}var r=function(){function i(l){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=l;var h=l.config;this.bwEstimator=new y.default(h.abrEwmaSlowVoD,h.abrEwmaFastVoD,h.abrEwmaDefaultEstimate),this.registerListeners()}var n=i.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,d){var s=d.frag;if(s.type===e.PlaylistLevelType.MAIN&&!this.timer){var c;this.fragCurrent=s,this.partCurrent=(c=d.part)!=null?c:null,this.timer=self.setInterval(this.onCheck,100)}},n.onLevelLoaded=function(h,d){var s=this.hls.config;d.details.live?this.bwEstimator.update(s.abrEwmaSlowLive,s.abrEwmaFastLive):this.bwEstimator.update(s.abrEwmaSlowVoD,s.abrEwmaFastVoD)},n._abandonRulesCheck=function(){var h=this.fragCurrent,d=this.partCurrent,s=this.hls,c=s.autoLevelEnabled,w=s.config,E=s.media;if(!h||!E)return;var v=d?d.stats:h.stats,R=d?d.duration:h.duration;if(v.aborted){f.logger.warn("frag loader destroy or aborted, disarm abandonRules"),this.clearTimer(),this._nextAutoLevel=-1;return}if(!c||E.paused||!E.playbackRate||!E.readyState)return;var M=performance.now()-v.loading.start,C=Math.abs(E.playbackRate);if(M<=500*R/C)return;var S=s.levels,_=s.minAutoLevel,A=S[h.level],U=v.total||Math.max(v.loaded,Math.round(R*A.maxBitrate/8)),L=Math.max(1,v.bwEstimate?v.bwEstimate/8:v.loaded*1e3/M),N=(U-v.loaded)/L,V=E.currentTime,H=(O.BufferHelper.bufferInfo(E,V,w.maxBufferHole).end-V)/C;if(H>=2*R/C||N<=H)return;var D=Number.POSITIVE_INFINITY,W;for(W=h.level-1;W>_;W--){var F=S[W].maxBitrate;if(D=R*F/(8*.8*L),D<H)break}if(D>=N)return;var I=this.bwEstimator.getEstimate();f.logger.warn("Fragment "+h.sn+(d?" part "+d.index:"")+" of level "+h.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+W+`
|
|
|
Current BW estimate: `+(Object(b.isFiniteNumber)(I)?(I/1024).toFixed(3):"Unknown")+` Kb/s
|
|
|
Estimated load time for current fragment: `+N.toFixed(3)+` s
|
|
|
Estimated load time for the next fragment: `+D.toFixed(3)+` s
|
|
|
Time to underbuffer: `+H.toFixed(3)+" s"),s.nextLoadLevel=W,this.bwEstimator.sample(M,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:d,stats:v})},n.onFragLoaded=function(h,d){var s=d.frag,c=d.part;if(s.type===e.PlaylistLevelType.MAIN&&Object(b.isFiniteNumber)(s.sn)){var w=c?c.stats:s.stats,E=c?c.duration:s.duration;if(this.clearTimer(),this.lastLoadedFragLevel=s.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var v=this.hls.levels[s.level],R=(v.loaded?v.loaded.bytes:0)+w.loaded,M=(v.loaded?v.loaded.duration:0)+E;v.loaded={bytes:R,duration:M},v.realBitrate=Math.round(8*R/M)}if(s.bitrateTest){var C={stats:w,frag:s,part:c,id:s.type};this.onFragBuffered(x.Events.FRAG_BUFFERED,C),s.bitrateTest=!1}}},n.onFragBuffered=function(h,d){var s=d.frag,c=d.part,w=c?c.stats:s.stats;if(w.aborted)return;if(s.type!==e.PlaylistLevelType.MAIN||s.sn==="initSegment")return;var E=w.parsing.end-w.loading.start;this.bwEstimator.sample(E,w.loaded),w.bwEstimate=this.bwEstimator.getEstimate(),s.bitrateTest?this.bitrateTestDelay=E/1e3:this.bitrateTestDelay=0},n.onError=function(h,d){switch(d.details){case m.ErrorDetails.FRAG_LOAD_ERROR:case m.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,d=this.partCurrent,s=this.hls,c=s.maxAutoLevel,w=s.config,E=s.minAutoLevel,v=s.media,R=d?d.duration:h?h.duration:0,M=v?v.currentTime:0,C=v&&v.playbackRate!==0?Math.abs(v.playbackRate):1,S=this.bwEstimator?this.bwEstimator.getEstimate():w.abrEwmaDefaultEstimate,_=(O.BufferHelper.bufferInfo(v,M,w.maxBufferHole).end-M)/C,A=this.findBestLevel(S,E,c,_,w.abrBandWidthFactor,w.abrBandWidthUpFactor);if(A>=0)return A;f.logger.trace((_?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var U=R?Math.min(R,w.maxStarvationDelay):w.maxStarvationDelay,L=w.abrBandWidthFactor,N=w.abrBandWidthUpFactor;if(!_){var V=this.bitrateTestDelay;if(V){var H=R?Math.min(R,w.maxLoadingDelay):w.maxLoadingDelay;U=H-V,f.logger.trace("bitrate test took "+Math.round(1e3*V)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*U)+" ms"),L=N=1}}return A=this.findBestLevel(S,E,c,_+U,L,N),Math.max(A,0)},n.findBestLevel=function(h,d,s,c,w,E){for(var v,R=this.fragCurrent,M=this.partCurrent,C=this.lastLoadedFragLevel,S=this.hls.levels,_=S[C],A=!!(_!=null&&(v=_.details)!==null&&v!==void 0&&v.live),U=_==null?void 0:_.codecSet,L=M?M.duration:R?R.duration:0,N=s;N>=d;N--){var V=S[N];if(!V||U&&V.codecSet!==U)continue;var H=V.details,D=(M?H==null?void 0:H.partTarget:H==null?void 0:H.averagetargetduration)||L,W=void 0;N<=C?W=w*h:W=E*h;var F=S[N].maxBitrate,I=F*D/W;if(f.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+N+"/"+Math.round(W)+"/"+F+"/"+D+"/"+c+"/"+I),W>F&&(!I||A&&!this.bitrateTestDelay||I<c))return N}return-1},u(i,[{key:"nextAutoLevel",get:function(){var h=this._nextAutoLevel,d=this.bwEstimator;if(h!==-1&&(!d||!d.canEstimate()))return h;var s=this.getNextABRAutoLevel();return h!==-1&&(s=Math.min(h,s)),s},set:function(h){this._nextAutoLevel=h}}]),i}();g.default=r},"./src/controller/audio-stream-controller.ts":function(P,g,T){"use strict";T.r(g);var b=T("./src/polyfills/number.ts"),y=T("./src/controller/base-stream-controller.ts"),x=T("./src/events.ts"),O=T("./src/utils/buffer-helper.ts"),m=T("./src/controller/fragment-tracker.ts"),e=T("./src/types/level.ts"),f=T("./src/types/loader.ts"),a=T("./src/loader/fragment.ts"),u=T("./src/demux/chunk-cache.ts"),r=T("./src/demux/transmuxer-interface.ts"),i=T("./src/types/transmuxer.ts"),n=T("./src/controller/fragment-finders.ts"),l=T("./src/utils/discontinuities.ts"),h=T("./src/errors.ts"),d=T("./src/utils/logger.ts");function s(){return s=Object.assign||function(R){for(var M=1;M<arguments.length;M++){var C=arguments[M];for(var S in C)Object.prototype.hasOwnProperty.call(C,S)&&(R[S]=C[S])}return R},s.apply(this,arguments)}function c(R,M){R.prototype=Object.create(M.prototype),R.prototype.constructor=R,w(R,M)}function w(R,M){return w=Object.setPrototypeOf||function(S,_){return S.__proto__=_,S},w(R,M)}var E=100,v=function(R){c(M,R);function M(S,_){var A;return A=R.call(this,S,_,"[audio-stream-controller]")||this,A.videoBuffer=null,A.videoTrackCC=-1,A.waitingVideoCC=-1,A.audioSwitch=!1,A.trackId=-1,A.waitingData=null,A.mainDetails=null,A.bufferFlushed=!1,A._registerListeners(),A}var C=M.prototype;return C.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},C._registerListeners=function(){var _=this.hls;_.on(x.Events.MEDIA_ATTACHED,this.onMediaAttached,this),_.on(x.Events.MEDIA_DETACHING,this.onMediaDetaching,this),_.on(x.Events.MANIFEST_LOADING,this.onManifestLoading,this),_.on(x.Events.LEVEL_LOADED,this.onLevelLoaded,this),_.on(x.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),_.on(x.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),_.on(x.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),_.on(x.Events.ERROR,this.onError,this),_.on(x.Events.BUFFER_RESET,this.onBufferReset,this),_.on(x.Events.BUFFER_CREATED,this.onBufferCreated,this),_.on(x.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),_.on(x.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),_.on(x.Events.FRAG_BUFFERED,this.onFragBuffered,this)},C._unregisterListeners=function(){var _=this.hls;_.off(x.Events.MEDIA_ATTACHED,this.onMediaAttached,this),_.off(x.Events.MEDIA_DETACHING,this.onMediaDetaching,this),_.off(x.Events.MANIFEST_LOADING,this.onManifestLoading,this),_.off(x.Events.LEVEL_LOADED,this.onLevelLoaded,this),_.off(x.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),_.off(x.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),_.off(x.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),_.off(x.Events.ERROR,this.onError,this),_.off(x.Events.BUFFER_RESET,this.onBufferReset,this),_.off(x.Events.BUFFER_CREATED,this.onBufferCreated,this),_.off(x.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),_.off(x.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),_.off(x.Events.FRAG_BUFFERED,this.onFragBuffered,this)},C.onInitPtsFound=function(_,A){var U=A.frag,L=A.id,N=A.initPTS;if(L==="main"){var V=U.cc;this.initPTS[U.cc]=N,this.log("InitPTS for cc: "+V+" found from main: "+N),this.videoTrackCC=V,this.state===y.State.WAITING_INIT_PTS&&this.tick()}},C.startLoad=function(_){if(!this.levels){this.startPosition=_,this.state=y.State.STOPPED;return}var A=this.lastCurrentTime;this.stopLoad(),this.setInterval(E),this.fragLoadError=0,A>0&&_===-1?(this.log("Override startPosition with lastCurrentTime @"+A.toFixed(3)),this.state=y.State.IDLE):(this.loadedmetadata=!1,this.state=y.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=_,this.tick()},C.doTick=function(){switch(this.state){case y.State.IDLE:this.doTickIdle();break;case y.State.WAITING_TRACK:{var _,A=this.levels,U=this.trackId,L=A==null||((_=A[U])===null||_===void 0)?void 0:_.details;if(L){if(this.waitForCdnTuneIn(L))break;this.state=y.State.WAITING_INIT_PTS}break}case y.State.FRAG_LOADING_WAITING_RETRY:{var N,V=performance.now(),H=this.retryDate;(!H||V>=H||(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 D=this.waitingData;if(D){var W=D.frag,F=D.part,I=D.cache,K=D.complete;if(this.initPTS[W.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=y.State.FRAG_LOADING;var ee=I.flush(),he={frag:W,part:F,payload:ee,networkDetails:null};this._handleFragmentLoadProgress(he),K&&R.prototype._handleFragmentLoadComplete.call(this,he)}else if(this.videoTrackCC!==this.waitingVideoCC)d.logger.log("Waiting fragment cc ("+W.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var de=this.getLoadPosition(),Se=O.BufferHelper.bufferInfo(this.mediaBuffer,de,this.config.maxBufferHole),Te=Object(n.fragmentWithinToleranceTest)(Se.end,this.config.maxFragLookUpTolerance,W);Te<0&&(d.logger.log("Waiting fragment cc ("+W.cc+") @ "+W.start+" cancelled because another fragment at "+Se.end+" is needed"),this.clearWaitingFragment())}}else this.state=y.State.IDLE}}this.onTickEnd()},C.clearWaitingFragment=function(){var _=this.waitingData;_&&(this.fragmentTracker.removeFragment(_.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=y.State.IDLE)},C.onTickEnd=function(){var _=this.media;if(!_||!_.readyState)return;var A=this.mediaBuffer?this.mediaBuffer:_,U=A.buffered;!this.loadedmetadata&&U.length&&(this.loadedmetadata=!0),this.lastCurrentTime=_.currentTime},C.doTickIdle=function(){var _,A,U=this.hls,L=this.levels,N=this.media,V=this.trackId,H=U.config;if(!L||!L[V])return;if(!N&&(this.startFragRequested||!H.startFragPrefetch))return;var D=L[V],W=D.details;if(!W||W.live&&this.levelLastLoaded!==V||this.waitForCdnTuneIn(W)){this.state=y.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,a.ElementaryStreamTypes.AUDIO,f.PlaylistLevelType.AUDIO));var F=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,f.PlaylistLevelType.AUDIO);if(F===null)return;var I=F.len,K=this.getMaxBufferLength(),ee=this.audioSwitch;if(I>=K&&!ee)return;if(!ee&&this._streamEnded(F,W)){U.trigger(x.Events.BUFFER_EOS,{type:"audio"}),this.state=y.State.ENDED;return}var he=W.fragments,de=he[0].start,Se=F.end;if(ee){var Te=this.getLoadPosition();Se=Te,W.PTSKnown&&Te<de&&((F.end>de||F.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(Se,W);if(!ce){this.bufferFlushed=!0;return}((_=ce.decryptdata)===null||_===void 0?void 0:_.keyFormat)==="identity"&&!((A=ce.decryptdata)!==null&&A!==void 0&&A.key)?this.loadKey(ce,W):this.loadFragment(ce,W,Se)},C.getMaxBufferLength=function(){var _=R.prototype.getMaxBufferLength.call(this),A=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,f.PlaylistLevelType.MAIN);return A===null?_:Math.max(_,A.len)},C.onMediaDetaching=function(){this.videoBuffer=null,R.prototype.onMediaDetaching.call(this)},C.onAudioTracksUpdated=function(_,A){var U=A.audioTracks;this.resetTransmuxer(),this.levels=U.map(function(L){return new e.Level(L)})},C.onAudioTrackSwitching=function(_,A){var U=!!A.url;this.trackId=A.id;var L=this.fragCurrent;L!=null&&L.loader&&L.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),U?this.setInterval(E):this.resetTransmuxer(),U?(this.audioSwitch=!0,this.state=y.State.IDLE):this.state=y.State.STOPPED,this.tick()},C.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},C.onLevelLoaded=function(_,A){this.mainDetails=A.details},C.onAudioTrackLoaded=function(_,A){var U,L=this.levels,N=A.details,V=A.id;if(!L){this.warn("Audio tracks were reset while loading level "+V);return}this.log("Track "+V+" loaded ["+N.startSN+","+N.endSN+"],duration:"+N.totalduration);var H=L[V],D=0;if(N.live||(U=H.details)!==null&&U!==void 0&&U.live){var W=this.mainDetails;if(N.fragments[0]||(N.deltaUpdateFailed=!0),N.deltaUpdateFailed||!W)return;!H.details&&N.hasProgramDateTime&&W.hasProgramDateTime?(Object(l.alignMediaPlaylistByPDT)(N,W),D=N.fragments[0].start):D=this.alignPlaylists(N,H.details)}H.details=N,this.levelLastLoaded=V,!this.startFragRequested&&(this.mainDetails||!N.live)&&this.setStartPosition(H.details,D),this.state===y.State.WAITING_TRACK&&!this.waitForCdnTuneIn(N)&&(this.state=y.State.IDLE),this.tick()},C._handleFragmentLoadProgress=function(_){var A,U=_.frag,L=_.part,N=_.payload,V=this.config,H=this.trackId,D=this.levels;if(!D){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+U.sn+" of level "+U.level+" will not be buffered");return}var W=D[H];console.assert(W,"Audio track is defined on fragment load progress");var F=W.details;console.assert(F,"Audio track details are defined on fragment load progress");var I=V.defaultAudioCodec||W.audioCodec||"mp4a.40.2",K=this.transmuxer;K||(K=this.transmuxer=new r.default(this.hls,f.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var ee=this.initPTS[U.cc],he=(A=U.initSegment)===null||A===void 0?void 0:A.data;if(ee!==void 0){var de=!1,Se=L?L.index:-1,Te=Se!==-1,ce=new i.ChunkMetadata(U.level,U.sn,U.stats.chunkCount,N.byteLength,Se,Te);K.push(N,he,I,"",U,L,F.totalduration,de,ce,ee)}else{d.logger.log("Unknown video PTS for cc "+U.cc+", waiting for video PTS before demuxing audio frag "+U.sn+" of ["+F.startSN+" ,"+F.endSN+"],track "+H);var be=this.waitingData=this.waitingData||{frag:U,part:L,cache:new u.default,complete:!1},Ee=be.cache;Ee.push(new Uint8Array(N)),this.waitingVideoCC=this.videoTrackCC,this.state=y.State.WAITING_INIT_PTS}},C._handleFragmentLoadComplete=function(_){if(this.waitingData){this.waitingData.complete=!0;return}R.prototype._handleFragmentLoadComplete.call(this,_)},C.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},C.onBufferCreated=function(_,A){var U=A.tracks.audio;U&&(this.mediaBuffer=U.buffer),A.tracks.video&&(this.videoBuffer=A.tracks.video.buffer)},C.onFragBuffered=function(_,A){var U=A.frag,L=A.part;if(U.type!==f.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(U)){this.warn("Fragment "+U.sn+(L?" p: "+L.index:"")+" of level "+U.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}U.sn!=="initSegment"&&(this.fragPrevious=U,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(x.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(U,L)},C.onError=function(_,A){switch(A.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(f.PlaylistLevelType.AUDIO,A);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=A.fatal?y.State.ERROR:y.State.IDLE,this.warn(A.details+" while loading frag, switching to "+this.state+" state"));break;case h.ErrorDetails.BUFFER_FULL_ERROR:if(A.parent==="audio"&&(this.state===y.State.PARSING||this.state===y.State.PARSED)){var U=!0,L=this.getFwdBufferInfo(this.mediaBuffer,f.PlaylistLevelType.AUDIO);L&&L.len>.5&&(U=!this.reduceMaxBufferLength(L.len)),U&&(this.warn("Buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,R.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}break;default:break}},C.onBufferFlushed=function(_,A){var U=A.type;U===a.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},C._handleTransmuxComplete=function(_){var A,U="audio",L=this.hls,N=_.remuxResult,V=_.chunkMeta,H=this.getCurrentContext(V);if(!H){this.warn("The loading context changed while buffering fragment "+V.sn+" of level "+V.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(V.level);return}var D=H.frag,W=H.part,F=N.audio,I=N.text,K=N.id3,ee=N.initSegment;if(this.fragContextChanged(D))return;if(this.state=y.State.PARSING,this.audioSwitch&&F&&this.completeAudioSwitch(),ee!=null&&ee.tracks&&(this._bufferInitSegment(ee.tracks,D,V),L.trigger(x.Events.FRAG_PARSING_INIT_SEGMENT,{frag:D,id:U,tracks:ee.tracks})),F){var he=F.startPTS,de=F.endPTS,Se=F.startDTS,Te=F.endDTS;W&&(W.elementaryStreams[a.ElementaryStreamTypes.AUDIO]={startPTS:he,endPTS:de,startDTS:Se,endDTS:Te}),D.setElementaryStreamInfo(a.ElementaryStreamTypes.AUDIO,he,de,Se,Te),this.bufferFragmentData(F,D,W,V)}if(K!=null&&(A=K.samples)!==null&&A!==void 0&&A.length){var ce=s({frag:D,id:U},K);L.trigger(x.Events.FRAG_PARSING_METADATA,ce)}if(I){var be=s({frag:D,id:U},I);L.trigger(x.Events.FRAG_PARSING_USERDATA,be)}},C._bufferInitSegment=function(_,A,U){if(this.state!==y.State.PARSING)return;_.video&&delete _.video;var L=_.audio;if(!L)return;L.levelCodec=L.codec,L.id="audio",this.log("Init audio buffer, container:"+L.container+", codecs[parsed]=["+L.codec+"]"),this.hls.trigger(x.Events.BUFFER_CODECS,_);var N=L.initSegment;if(N!=null&&N.byteLength){var V={type:"audio",frag:A,part:null,chunkMeta:U,parent:A.type,data:N};this.hls.trigger(x.Events.BUFFER_APPENDING,V)}this.tick()},C.loadFragment=function(_,A,U){var L=this.fragmentTracker.getState(_);this.fragCurrent=_,(this.audioSwitch||L===m.FragmentState.NOT_LOADED||L===m.FragmentState.PARTIAL)&&(_.sn==="initSegment"?this._loadInitSegment(_):A.live&&!Object(b.isFiniteNumber)(this.initPTS[_.cc])?(this.log("Waiting for video PTS in continuity counter "+_.cc+" of live stream before loading audio fragment "+_.sn+" of level "+this.trackId),this.state=y.State.WAITING_INIT_PTS):(this.startFragRequested=!0,R.prototype.loadFragment.call(this,_,A,U)))},C.completeAudioSwitch=function(){var _=this.hls,A=this.media,U=this.trackId;A&&(this.log("Switching audio track : flushing all audio"),R.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,_.trigger(x.Events.AUDIO_TRACK_SWITCHED,{id:U})},M}(y.default);g.default=v},"./src/controller/audio-track-controller.ts":function(P,g,T){"use strict";T.r(g);var b=T("./src/events.ts"),y=T("./src/errors.ts"),x=T("./src/controller/base-playlist-controller.ts"),O=T("./src/types/loader.ts");function m(r,i){for(var n=0;n<i.length;n++){var l=i[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(r,l.key,l)}}function e(r,i,n){return i&&m(r.prototype,i),n&&m(r,n),r}function f(r,i){r.prototype=Object.create(i.prototype),r.prototype.constructor=r,a(r,i)}function a(r,i){return a=Object.setPrototypeOf||function(l,h){return l.__proto__=h,l},a(r,i)}var u=function(r){f(i,r);function i(l){var h;return h=r.call(this,l,"[audio-track-controller]")||this,h.tracks=[],h.groupId=null,h.tracksInGroup=[],h.trackId=-1,h.trackName="",h.selectDefaultTrack=!0,h.registerListeners(),h}var n=i.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,r.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,d){this.tracks=d.audioTracks||[]},n.onAudioTrackLoaded=function(h,d){var s=d.id,c=d.details,w=this.tracksInGroup[s];if(!w){this.warn("Invalid audio track id "+s);return}var E=w.details;w.details=d.details,this.log("audioTrack "+s+" loaded ["+c.startSN+"-"+c.endSN+"]"),s===this.trackId&&(this.retryCount=0,this.playlistLoaded(s,d,E))},n.onLevelLoading=function(h,d){this.switchLevel(d.level)},n.onLevelSwitching=function(h,d){this.switchLevel(d.level)},n.switchLevel=function(h){var d=this.hls.levels[h];if(!(d!=null&&d.audioGroupIds))return;var s=d.audioGroupIds[d.urlId];if(this.groupId!==s){this.groupId=s;var c=this.tracks.filter(function(E){return!s||E.groupId===s});this.selectDefaultTrack&&!c.some(function(E){return E.default})&&(this.selectDefaultTrack=!1),this.tracksInGroup=c;var w={audioTracks:c};this.log("Updating audio tracks, "+c.length+' track(s) found in "'+s+'" group-id'),this.hls.trigger(b.Events.AUDIO_TRACKS_UPDATED,w),this.selectInitialTrack()}},n.onError=function(h,d){if(r.prototype.onError.call(this,h,d),d.fatal||!d.context)return;d.context.type===O.PlaylistContextType.AUDIO_TRACK&&d.context.id===this.trackId&&d.context.groupId===this.groupId&&this.retryLoadingOrFail(d)},n.setAudioTrack=function(h){var d=this.tracksInGroup;if(h<0||h>=d.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var s=d[this.trackId];this.log("Now switching to audio-track index "+h);var c=d[h],w=c.id,E=c.groupId,v=E===void 0?"":E,R=c.name,M=c.type,C=c.url;if(this.trackId=h,this.trackName=R,this.selectDefaultTrack=!1,this.hls.trigger(b.Events.AUDIO_TRACK_SWITCHING,{id:w,groupId:v,name:R,type:M,url:C}),c.details&&!c.details.live)return;var S=this.switchParams(c.url,s==null?void 0:s.details);this.loadPlaylist(S)},n.selectInitialTrack=function(){var h=this.tracksInGroup;console.assert(h.length,"Initial audio track should be selected when tracks are known");var d=this.trackName,s=this.findTrackId(d)||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 d=this.tracksInGroup,s=0;s<d.length;s++){var c=d[s];if((!this.selectDefaultTrack||c.default)&&(!h||h===c.name))return c.id}return-1},n.loadPlaylist=function(h){var d=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(d)){var s=d.id,c=d.groupId,w=d.url;if(h)try{w=h.addDirectives(w)}catch(E){this.warn("Could not construct new URL with HLS Delivery Directives: "+E)}this.log("loading audio-track playlist for id: "+s),this.clearTimer(),this.hls.trigger(b.Events.AUDIO_TRACK_LOADING,{url:w,id:s,groupId:c,deliveryDirectives:h||null})}},e(i,[{key:"audioTracks",get:function(){return this.tracksInGroup}},{key:"audioTrack",get:function(){return this.trackId},set:function(h){this.selectDefaultTrack=!1,this.setAudioTrack(h)}}]),i}(x.default);g.default=u},"./src/controller/base-playlist-controller.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"default",function(){return e});var b=T("./src/polyfills/number.ts"),y=T("./src/types/level.ts"),x=T("./src/controller/level-helper.ts"),O=T("./src/utils/logger.ts"),m=T("./src/errors.ts"),e=function(){function f(u,r){this.hls=void 0,this.timer=-1,this.canLoad=!1,this.retryCount=0,this.log=void 0,this.warn=void 0,this.log=O.logger.log.bind(O.logger,r+":"),this.warn=O.logger.warn.bind(O.logger,r+":"),this.hls=u}var a=f.prototype;return a.destroy=function(){this.clearTimer(),this.hls=this.log=this.warn=null},a.onError=function(r,i){i.fatal&&i.type===m.ErrorTypes.NETWORK_ERROR&&this.clearTimer()},a.clearTimer=function(){clearTimeout(this.timer),this.timer=-1},a.startLoad=function(){this.canLoad=!0,this.retryCount=0,this.loadPlaylist()},a.stopLoad=function(){this.canLoad=!1,this.clearTimer()},a.switchParams=function(r,i){var n=i==null?void 0:i.renditionReports;if(n)for(var l=0;l<n.length;l++){var h=n[l],d=""+h.URI;if(d===r.substr(-d.length)){var s=parseInt(h["LAST-MSN"]),c=parseInt(h["LAST-PART"]);if(i&&this.hls.config.lowLatencyMode){var w=Math.min(i.age-i.partTarget,i.targetduration);c!==void 0&&w>i.partTarget&&(c+=1)}if(Object(b.isFiniteNumber)(s))return new y.HlsUrlParameters(s,Object(b.isFiniteNumber)(c)?c:void 0,y.HlsSkip.No)}}},a.loadPlaylist=function(r){},a.shouldLoadTrack=function(r){return this.canLoad&&r&&!!r.url&&(!r.details||r.details.live)},a.playlistLoaded=function(r,i,n){var l=this,h=i.details,d=i.stats,s=d.loading.end?Math.max(0,self.performance.now()-d.loading.end):0;if(h.advancedDateTime=Date.now()-s,h.live||n!=null&&n.live){if(h.reloaded(n),n&&this.log("live playlist "+r+" "+(h.advanced?"REFRESHED "+h.lastPartSn+"-"+h.lastPartIndex:"MISSED")),n&&h.fragments.length>0&&Object(x.mergeDetails)(n,h),!this.canLoad||!h.live)return;var c,w=void 0,E=void 0;if(h.canBlockReload&&h.endSN&&h.advanced){var v=this.hls.config.lowLatencyMode,R=h.lastPartSn,M=h.endSN,C=h.lastPartIndex,S=C!==-1,_=R===M,A=v?0:C;S?(w=_?M+1:R,E=_?A:C+1):w=M+1;var U=h.age,L=U+h.ageHeader,N=Math.min(L-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 V=Math.floor(N/h.targetduration);if(w+=V,E!==void 0){var H=Math.round(N%h.targetduration/h.partTarget);E+=H}this.log("CDN Tune-in age: "+h.ageHeader+"s last advanced "+U.toFixed(2)+"s goal: "+N+" skip sn "+V+" to part "+E)}h.tuneInGoal=N}if(c=this.getDeliveryDirectives(h,i.deliveryDirectives,w,E),v||!_){this.loadPlaylist(c);return}}else c=this.getDeliveryDirectives(h,i.deliveryDirectives,w,E);var D=Object(x.computeReloadInterval)(h,d);w!==void 0&&h.canBlockReload&&(D-=h.partTarget||1),this.log("reload live playlist "+r+" in "+Math.round(D)+" ms"),this.timer=self.setTimeout(function(){return l.loadPlaylist(c)},D)}else this.clearTimer()},a.getDeliveryDirectives=function(r,i,n,l){var h=Object(y.getSkipValue)(r,n);return i!=null&&i.skip&&r.deltaUpdateFailed&&(n=i.msn,l=i.part,h=y.HlsSkip.No),new y.HlsUrlParameters(n,l,h)},a.retryLoadingOrFail=function(r){var i=this,n=this.hls.config,l=this.retryCount<n.levelLoadingMaxRetry;if(l){var h;if(this.retryCount++,r.details.indexOf("LoadTimeOut")>-1&&(h=r.context)!==null&&h!==void 0&&h.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+r.details+'"'),this.loadPlaylist();else{var d=Math.min(Math.pow(2,this.retryCount)*n.levelLoadingRetryDelay,n.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return i.loadPlaylist()},d),this.warn("retry playlist loading #"+this.retryCount+" in "+d+' ms after "'+r.details+'"')}}else this.warn('cannot recover from error "'+r.details+'"'),this.clearTimer(),r.fatal=!0;return l},f}()},"./src/controller/base-stream-controller.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"State",function(){return M}),T.d(g,"default",function(){return C});var b=T("./src/polyfills/number.ts"),y=T("./src/task-loop.ts"),x=T("./src/controller/fragment-tracker.ts"),O=T("./src/utils/buffer-helper.ts"),m=T("./src/utils/logger.ts"),e=T("./src/events.ts"),f=T("./src/errors.ts"),a=T("./src/types/transmuxer.ts"),u=T("./src/utils/mp4-tools.ts"),r=T("./src/utils/discontinuities.ts"),i=T("./src/controller/fragment-finders.ts"),n=T("./src/controller/level-helper.ts"),l=T("./src/loader/fragment-loader.ts"),h=T("./src/crypt/decrypter.ts"),d=T("./src/utils/time-ranges.ts"),s=T("./src/types/loader.ts");function c(S,_){for(var A=0;A<_.length;A++){var U=_[A];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(S,U.key,U)}}function w(S,_,A){return _&&c(S.prototype,_),A&&c(S,A),S}function E(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}function v(S,_){S.prototype=Object.create(_.prototype),S.prototype.constructor=S,R(S,_)}function R(S,_){return R=Object.setPrototypeOf||function(U,L){return U.__proto__=L,U},R(S,_)}var M={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"},C=function(S){v(_,S);function _(U,L,N){var V;return V=S.call(this)||this,V.hls=void 0,V.fragPrevious=null,V.fragCurrent=null,V.fragmentTracker=void 0,V.transmuxer=null,V._state=M.STOPPED,V.media=void 0,V.mediaBuffer=void 0,V.config=void 0,V.bitrateTest=!1,V.lastCurrentTime=0,V.nextLoadPosition=0,V.startPosition=0,V.loadedmetadata=!1,V.fragLoadError=0,V.retryDate=0,V.levels=null,V.fragmentLoader=void 0,V.levelLastLoaded=null,V.startFragRequested=!1,V.decrypter=void 0,V.initPTS=[],V.onvseeking=null,V.onvended=null,V.logPrefix="",V.log=void 0,V.warn=void 0,V.logPrefix=N,V.log=m.logger.log.bind(m.logger,N+":"),V.warn=m.logger.warn.bind(m.logger,N+":"),V.hls=U,V.fragmentLoader=new l.default(U.config),V.fragmentTracker=L,V.config=U.config,V.decrypter=new h.default(U,U.config),U.on(e.Events.KEY_LOADED,V.onKeyLoaded,E(V)),V}var A=_.prototype;return A.doTick=function(){this.onTickEnd()},A.onTickEnd=function(){},A.startLoad=function(L){},A.stopLoad=function(){this.fragmentLoader.abort();var L=this.fragCurrent;L&&this.fragmentTracker.removeFragment(L),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=M.STOPPED},A._streamEnded=function(L,N){var V=this.fragCurrent,H=this.fragmentTracker;if(!N.live&&V&&V.sn===N.endSN&&!L.nextStart){var D=H.getState(V);return D===x.FragmentState.PARTIAL||D===x.FragmentState.OK}return!1},A.onMediaAttached=function(L,N){var V=this.media=this.mediaBuffer=N.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),V.addEventListener("seeking",this.onvseeking),V.addEventListener("ended",this.onvended);var H=this.config;this.levels&&H.autoStartLoad&&this.state===M.STOPPED&&this.startLoad(H.startPosition)},A.onMediaDetaching=function(){var L=this.media;L!=null&&L.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),L&&(L.removeEventListener("seeking",this.onvseeking),L.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()},A.onMediaSeeking=function(){var L=this.config,N=this.fragCurrent,V=this.media,H=this.mediaBuffer,D=this.state,W=V?V.currentTime:0,F=O.BufferHelper.bufferInfo(H||V,W,L.maxBufferHole);if(this.log("media seeking to "+(Object(b.isFiniteNumber)(W)?W.toFixed(3):W)+", state: "+D),D===M.ENDED)this.resetLoadingState();else if(N&&!F.len){var I=L.maxFragLookUpTolerance,K=N.start-I,ee=N.start+N.duration+I,he=W>ee;(W<K||he)&&(he&&N.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),N.loader.abort()),this.resetLoadingState())}V&&(this.lastCurrentTime=W),!this.loadedmetadata&&!F.len&&(this.nextLoadPosition=this.startPosition=W),this.tickImmediate()},A.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},A.onKeyLoaded=function(L,N){if(this.state!==M.KEY_LOADING||N.frag!==this.fragCurrent||!this.levels)return;this.state=M.IDLE;var V=this.levels[N.frag.level].details;V&&this.loadFragment(N.frag,V,N.frag.start)},A.onHandlerDestroying=function(){this.stopLoad(),S.prototype.onHandlerDestroying.call(this)},A.onHandlerDestroyed=function(){this.state=M.STOPPED,this.hls.off(e.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,S.prototype.onHandlerDestroyed.call(this)},A.loadKey=function(L,N){this.log("Loading key for "+L.sn+" of ["+N.startSN+"-"+N.endSN+"], "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+L.level),this.state=M.KEY_LOADING,this.fragCurrent=L,this.hls.trigger(e.Events.KEY_LOADING,{frag:L})},A.loadFragment=function(L,N,V){this._loadFragForPlayback(L,N,V)},A._loadFragForPlayback=function(L,N,V){var H=this,D=function(F){if(H.fragContextChanged(L)){H.warn("Fragment "+L.sn+(F.part?" p: "+F.part.index:"")+" of level "+L.level+" was dropped during download."),H.fragmentTracker.removeFragment(L);return}L.stats.chunkCount++,H._handleFragmentLoadProgress(F)};this._doFragLoad(L,N,V,D).then(function(W){if(!W)return;H.fragLoadError=0;var F=H.state;if(H.fragContextChanged(L)){(F===M.FRAG_LOADING||F===M.BACKTRACKING||!H.fragCurrent&&F===M.PARSING)&&(H.fragmentTracker.removeFragment(L),H.state=M.IDLE);return}if("payload"in W&&(H.log("Loaded fragment "+L.sn+" of level "+L.level),H.hls.trigger(e.Events.FRAG_LOADED,W),H.state===M.BACKTRACKING)){H.fragmentTracker.backtrack(L,W),H.resetFragmentLoading(L);return}H._handleFragmentLoadComplete(W)}).catch(function(W){H.warn(W),H.resetFragmentLoading(L)})},A.flushMainBuffer=function(L,N,V){if(V===void 0&&(V=null),!(L-N))return;var H={startOffset:L,endOffset:N,type:V};this.fragLoadError=0,this.hls.trigger(e.Events.BUFFER_FLUSHING,H)},A._loadInitSegment=function(L){var N=this;this._doFragLoad(L).then(function(V){if(!V||N.fragContextChanged(L)||!N.levels)throw new Error("init load aborted");return V}).then(function(V){var H=N.hls,D=V.payload,W=L.decryptdata;if(D&&D.byteLength>0&&W&&W.key&&W.iv&&W.method==="AES-128"){var F=self.performance.now();return N.decrypter.webCryptoDecrypt(new Uint8Array(D),W.key.buffer,W.iv.buffer).then(function(I){var K=self.performance.now();return H.trigger(e.Events.FRAG_DECRYPTED,{frag:L,payload:I,stats:{tstart:F,tdecrypt:K}}),V.payload=I,V})}return V}).then(function(V){var H=N.fragCurrent,D=N.hls,W=N.levels;if(!W)throw new Error("init load aborted, missing levels");var F=W[L.level].details;console.assert(F,"Level details are defined when init segment is loaded");var I=L.stats;N.state=M.IDLE,N.fragLoadError=0,L.data=new Uint8Array(V.payload),I.parsing.start=I.buffering.start=self.performance.now(),I.parsing.end=I.buffering.end=self.performance.now(),V.frag===H&&D.trigger(e.Events.FRAG_BUFFERED,{stats:I,frag:H,part:null,id:L.type}),N.tick()}).catch(function(V){N.warn(V),N.resetFragmentLoading(L)})},A.fragContextChanged=function(L){var N=this.fragCurrent;return!L||!N||L.level!==N.level||L.sn!==N.sn||L.urlId!==N.urlId},A.fragBufferedComplete=function(L,N){var V=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+L.type+" sn: "+L.sn+(N?" part: "+N.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+L.level+" "+d.default.toString(O.BufferHelper.getBuffered(V))),this.state=M.IDLE,this.tick()},A._handleFragmentLoadComplete=function(L){var N=this.transmuxer;if(!N)return;var V=L.frag,H=L.part,D=L.partsLoaded,W=!D||D.length===0||D.some(function(I){return!I}),F=new a.ChunkMetadata(V.level,V.sn,V.stats.chunkCount+1,0,H?H.index:-1,!W);N.flush(F)},A._handleFragmentLoadProgress=function(L){},A._doFragLoad=function(L,N,V,H){var D=this;if(V===void 0&&(V=null),!this.levels)throw new Error("frag load aborted, missing levels");if(V=Math.max(L.start,V||0),this.config.lowLatencyMode&&N){var W=N.partList;if(W&&H){V>L.end&&N.fragmentHint&&(L=N.fragmentHint);var F=this.getNextPart(W,L,V);if(F>-1){var I=W[F];return this.log("Loading part sn: "+L.sn+" p: "+I.index+" cc: "+L.cc+" of playlist ["+N.startSN+"-"+N.endSN+"] parts [0-"+F+"-"+(W.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+L.level+", target: "+parseFloat(V.toFixed(3))),this.nextLoadPosition=I.start+I.duration,this.state=M.FRAG_LOADING,this.hls.trigger(e.Events.FRAG_LOADING,{frag:L,part:W[F],targetBufferTime:V}),this.doFragPartsLoad(L,W,F,H).catch(function(K){return D.handleFragLoadError(K)})}else if(!L.url||this.loadedEndOfParts(W,V))return Promise.resolve(null)}}return this.log("Loading fragment "+L.sn+" cc: "+L.cc+" "+(N?"of ["+N.startSN+"-"+N.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+L.level+", target: "+parseFloat(V.toFixed(3))),Object(b.isFiniteNumber)(L.sn)&&!this.bitrateTest&&(this.nextLoadPosition=L.start+L.duration),this.state=M.FRAG_LOADING,this.hls.trigger(e.Events.FRAG_LOADING,{frag:L,targetBufferTime:V}),this.fragmentLoader.load(L,H).catch(function(K){return D.handleFragLoadError(K)})},A.doFragPartsLoad=function(L,N,V,H){var D=this;return new Promise(function(W,F){var I=[],K=function ee(he){var de=N[he];D.fragmentLoader.loadPart(L,de,H).then(function(Se){I[de.index]=Se;var Te=Se.part;D.hls.trigger(e.Events.FRAG_LOADED,Se);var ce=N[he+1];if(ce&&ce.fragment===L)ee(he+1);else return W({frag:L,part:Te,partsLoaded:I})}).catch(F)};K(V)})},A.handleFragLoadError=function(L){var N=L.data;return N&&N.details===f.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(N.frag,N.part):this.hls.trigger(e.Events.ERROR,N),null},A._handleTransmuxerFlush=function(L){var N=this.getCurrentContext(L);if(!N||this.state!==M.PARSING){this.fragCurrent||(this.state=M.IDLE);return}var V=N.frag,H=N.part,D=N.level,W=self.performance.now();V.stats.parsing.end=W,H&&(H.stats.parsing.end=W),this.updateLevelTiming(V,H,D,L.partial)},A.getCurrentContext=function(L){var N=this.levels,V=L.level,H=L.sn,D=L.part;if(!N||!N[V])return this.warn("Levels object was unset while buffering fragment "+H+" of level "+V+". The current chunk will not be buffered."),null;var W=N[V],F=D>-1?Object(n.getPartWith)(W,H,D):null,I=F?F.fragment:Object(n.getFragmentWithSN)(W,H,this.fragCurrent);return I?{frag:I,part:F,level:W}:null},A.bufferFragmentData=function(L,N,V,H){if(!L||this.state!==M.PARSING)return;var D=L.data1,W=L.data2,F=D;if(D&&W&&(F=Object(u.appendUint8Array)(D,W)),!F||!F.length)return;var I={type:L.type,frag:N,part:V,chunkMeta:H,parent:N.type,data:F};this.hls.trigger(e.Events.BUFFER_APPENDING,I),L.dropped&&L.independent&&!V&&this.flushBufferGap(N)},A.flushBufferGap=function(L){var N=this.media;if(!N)return;if(!O.BufferHelper.isBuffered(N,N.currentTime)){this.flushMainBuffer(0,L.start);return}var V=N.currentTime,H=O.BufferHelper.bufferInfo(N,V,0),D=L.duration,W=Math.min(this.config.maxFragLookUpTolerance*2,D*.25),F=Math.max(Math.min(L.start-W,H.end-W),V+W);L.start-F>W&&this.flushMainBuffer(F,L.start)},A.getFwdBufferInfo=function(L,N){var V=this.config,H=this.getLoadPosition();if(!Object(b.isFiniteNumber)(H))return null;var D=O.BufferHelper.bufferInfo(L,H,V.maxBufferHole);if(D.len===0&&D.nextStart!==void 0){var W=this.fragmentTracker.getBufferedFrag(H,N);if(W&&D.nextStart<W.end)return O.BufferHelper.bufferInfo(L,H,Math.max(D.nextStart,V.maxBufferHole))}return D},A.getMaxBufferLength=function(L){var N=this.config,V;return L?V=Math.max(8*N.maxBufferSize/L,N.maxBufferLength):V=N.maxBufferLength,Math.min(V,N.maxMaxBufferLength)},A.reduceMaxBufferLength=function(L){var N=this.config,V=L||N.maxBufferLength;return N.maxMaxBufferLength>=V?(N.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+N.maxMaxBufferLength+"s"),!0):!1},A.getNextFragment=function(L,N){var V,H,D=N.fragments,W=D.length;if(!W)return null;var F=this.config,I=D[0].start,K;if(N.live){var ee=F.initialLiveManifestSize;if(W<ee)return this.warn("Not enough fragments to start playback (have: "+W+", need: "+ee+")"),null;!N.PTSKnown&&!this.startFragRequested&&this.startPosition===-1&&(K=this.getInitialLiveFragment(N,D),this.startPosition=K?this.hls.liveSyncPosition||K.start:L)}else L<=I&&(K=D[0]);if(!K){var he=F.lowLatencyMode?N.partEnd:N.fragmentEnd;K=this.getFragmentAtPosition(L,he,N)}return(V=K)!==null&&V!==void 0&&V.initSegment&&!((H=K)!==null&&H!==void 0&&H.initSegment.data)&&!this.bitrateTest&&(K=K.initSegment),K},A.getNextPart=function(L,N,V){for(var H=-1,D=!1,W=!0,F=0,I=L.length;F<I;F++){var K=L[F];if(W=W&&!K.independent,H>-1&&V<K.start)break;var ee=K.loaded;!ee&&(D||K.independent||W)&&K.fragment===N&&(H=F),D=ee}return H},A.loadedEndOfParts=function(L,N){var V=L[L.length-1];return V&&N>V.start&&V.loaded},A.getInitialLiveFragment=function(L,N){var V=this.fragPrevious,H=null;if(V){if(L.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+V.programDateTime),H=Object(i.findFragmentByPDT)(N,V.endProgramDateTime,this.config.maxFragLookUpTolerance)),!H){var D=V.sn+1;if(D>=L.startSN&&D<=L.endSN){var W=N[D-L.startSN];V.cc===W.cc&&(H=W,this.log("Live playlist, switching playlist, load frag with next SN: "+H.sn))}H||(H=Object(i.findFragWithCC)(N,V.cc),H&&this.log("Live playlist, switching playlist, load frag with same CC: "+H.sn))}}else{var F=this.hls.liveSyncPosition;F!==null&&(H=this.getFragmentAtPosition(F,this.bitrateTest?L.fragmentEnd:L.edge,L))}return H},A.getFragmentAtPosition=function(L,N,V){var H=this.config,D=this.fragPrevious,W=V.fragments,F=V.endSN,I=V.fragmentHint,K=H.maxFragLookUpTolerance,ee=!!(H.lowLatencyMode&&V.partList&&I);ee&&I&&!this.bitrateTest&&(W=W.concat(I),F=I.sn);var he;if(L<N){var de=L>N-K?0:K;he=Object(i.findFragmentByPTS)(D,W,L,de)}else he=W[W.length-1];if(he){var Se=he.sn-V.startSN,Te=D&&he.level===D.level,ce=W[Se+1],be=this.fragmentTracker.getState(he);if(be===x.FragmentState.BACKTRACKED){he=null;for(var Ee=Se;W[Ee]&&this.fragmentTracker.getState(W[Ee])===x.FragmentState.BACKTRACKED;)D?he=W[Ee--]:he=W[--Ee];he||(he=ce)}else D&&he.sn===D.sn&&!ee&&(Te&&(he.sn<F&&this.fragmentTracker.getState(ce)!==x.FragmentState.OK?(this.log("SN "+he.sn+" just loaded, load next one: "+ce.sn),he=ce):he=null))}return he},A.synchronizeToLiveEdge=function(L){var N=this.config,V=this.media;if(!V)return;var H=this.hls.liveSyncPosition,D=V.currentTime,W=L.fragments[0].start,F=L.edge,I=D>=W-N.maxFragLookUpTolerance&&D<=F;if(H!==null&&V.duration>H&&(D<H||!I)){var K=N.liveMaxLatencyDuration!==void 0?N.liveMaxLatencyDuration:N.liveMaxLatencyDurationCount*L.targetduration;(!I&&V.readyState<4||D<F-K)&&(this.loadedmetadata||(this.nextLoadPosition=H),V.readyState&&(this.warn("Playback: "+D.toFixed(3)+" is located too far from the end of live sliding playlist: "+F+", reset currentTime to : "+H.toFixed(3)),V.currentTime=H))}},A.alignPlaylists=function(L,N){var V=this.levels,H=this.levelLastLoaded,D=this.fragPrevious,W=H!==null?V[H]:null,F=L.fragments.length;if(!F)return this.warn("No fragments in live playlist"),0;var I=L.fragments[0].start,K=!N,ee=L.alignedSliding&&Object(b.isFiniteNumber)(I);if(K||!ee&&!I){Object(r.alignStream)(D,W,L);var he=L.fragments[0].start;return this.log("Live playlist sliding: "+he.toFixed(2)+" start-sn: "+(N?N.startSN:"na")+"->"+L.startSN+" prev-sn: "+(D?D.sn:"na")+" fragments: "+F),he}return I},A.waitForCdnTuneIn=function(L){var N=3;return L.live&&L.canBlockReload&&L.tuneInGoal>Math.max(L.partHoldBack,L.partTarget*N)},A.setStartPosition=function(L,N){var V=this.startPosition;if(V<N&&(V=-1),V===-1||this.lastCurrentTime===-1){var H=L.startTimeOffset;Object(b.isFiniteNumber)(H)?(V=N+H,H<0&&(V+=L.totalduration),V=Math.min(Math.max(N,V),N+L.totalduration),this.log("Start time offset "+H+" found in playlist, adjust startPosition to "+V),this.startPosition=V):L.live?V=this.hls.liveSyncPosition||N:this.startPosition=V=0,this.lastCurrentTime=V}this.nextLoadPosition=V},A.getLoadPosition=function(){var L=this.media,N=0;return this.loadedmetadata&&L?N=L.currentTime:this.nextLoadPosition&&(N=this.nextLoadPosition),N},A.handleFragLoadAborted=function(L,N){this.transmuxer&&L.sn!=="initSegment"&&L.stats.aborted&&(this.warn("Fragment "+L.sn+(N?" part"+N.index:"")+" of level "+L.level+" was aborted"),this.resetFragmentLoading(L))},A.resetFragmentLoading=function(L){(!this.fragCurrent||!this.fragContextChanged(L))&&(this.state=M.IDLE)},A.onFragmentOrKeyLoadError=function(L,N){if(N.fatal)return;var V=N.frag;if(!V||V.type!==L)return;var H=this.fragCurrent;console.assert(H&&V.sn===H.sn&&V.level===H.level&&V.urlId===H.urlId,"Frag load error must match current frag to retry");var D=this.config;if(this.fragLoadError+1<=D.fragLoadingMaxRetry){if(this.resetLiveStartWhenNotLoaded(V.level))return;var W=Math.min(Math.pow(2,this.fragLoadError)*D.fragLoadingRetryDelay,D.fragLoadingMaxRetryTimeout);this.warn("Fragment "+V.sn+" of "+L+" "+V.level+" failed to load, retrying in "+W+"ms"),this.retryDate=self.performance.now()+W,this.fragLoadError++,this.state=M.FRAG_LOADING_WAITING_RETRY}else N.levelRetry?(L===s.PlaylistLevelType.AUDIO&&(this.fragCurrent=null),this.fragLoadError=0,this.state=M.IDLE):(m.logger.error(N.details+" reaches max retry, redispatch as fatal ..."),N.fatal=!0,this.hls.stopLoad(),this.state=M.ERROR)},A.afterBufferFlushed=function(L,N,V){if(!L)return;var H=O.BufferHelper.getBuffered(L);this.fragmentTracker.detectEvictedFragments(N,H,V),this.state===M.ENDED&&this.resetLoadingState()},A.resetLoadingState=function(){this.fragCurrent=null,this.fragPrevious=null,this.state=M.IDLE},A.resetLiveStartWhenNotLoaded=function(L){if(!this.loadedmetadata){this.startFragRequested=!1;var N=this.levels?this.levels[L].details:null;if(N!=null&&N.live)return this.startPosition=-1,this.setStartPosition(N,0),this.resetLoadingState(),!0;this.nextLoadPosition=this.startPosition}return!1},A.updateLevelTiming=function(L,N,V,H){var D=this,W=V.details;console.assert(!!W,"level.details must be defined");var F=Object.keys(L.elementaryStreams).reduce(function(I,K){var ee=L.elementaryStreams[K];if(ee){var he=ee.endPTS-ee.startPTS;if(he<=0)return D.warn("Could not parse fragment "+L.sn+" "+K+" duration reliably ("+he+") resetting transmuxer to fallback to playlist timing"),D.resetTransmuxer(),I||!1;var de=H?0:Object(n.updateFragPTSDTS)(W,L,ee.startPTS,ee.endPTS,ee.startDTS,ee.endDTS);return D.hls.trigger(e.Events.LEVEL_PTS_UPDATED,{details:W,level:V,drift:de,type:K,frag:L,start:ee.startPTS,end:ee.endPTS}),!0}return I},!1);F?(this.state=M.PARSED,this.hls.trigger(e.Events.FRAG_PARSED,{frag:L,part:N})):this.resetLoadingState()},A.resetTransmuxer=function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)},w(_,[{key:"state",get:function(){return this._state},set:function(L){var N=this._state;N!==L&&(this._state=L,this.log(N+"->"+L))}}]),_}(y.default)},"./src/controller/buffer-controller.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"default",function(){return i});var b=T("./src/polyfills/number.ts"),y=T("./src/events.ts"),x=T("./src/utils/logger.ts"),O=T("./src/errors.ts"),m=T("./src/utils/buffer-helper.ts"),e=T("./src/utils/mediasource-helper.ts"),f=T("./src/loader/fragment.ts"),a=T("./src/controller/buffer-operation-queue.ts"),u=Object(e.getMediaSource)(),r=/([ha]vc.)(?:\.[^.,]+)+/,i=function(){function n(h){var d=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=d.hls,c=d.media,w=d.mediaSource;x.logger.log("[buffer-controller]: Media source opened"),c&&(d.updateMediaElementDuration(),s.trigger(y.Events.MEDIA_ATTACHED,{media:c})),w&&w.removeEventListener("sourceopen",d._onMediaSourceOpen),d.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 l=n.prototype;return l.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},l.destroy=function(){this.unregisterListeners(),this.details=null},l.registerListeners=function(){var d=this.hls;d.on(y.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),d.on(y.Events.MEDIA_DETACHING,this.onMediaDetaching,this),d.on(y.Events.MANIFEST_PARSED,this.onManifestParsed,this),d.on(y.Events.BUFFER_RESET,this.onBufferReset,this),d.on(y.Events.BUFFER_APPENDING,this.onBufferAppending,this),d.on(y.Events.BUFFER_CODECS,this.onBufferCodecs,this),d.on(y.Events.BUFFER_EOS,this.onBufferEos,this),d.on(y.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),d.on(y.Events.LEVEL_UPDATED,this.onLevelUpdated,this),d.on(y.Events.FRAG_PARSED,this.onFragParsed,this),d.on(y.Events.FRAG_CHANGED,this.onFragChanged,this)},l.unregisterListeners=function(){var d=this.hls;d.off(y.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),d.off(y.Events.MEDIA_DETACHING,this.onMediaDetaching,this),d.off(y.Events.MANIFEST_PARSED,this.onManifestParsed,this),d.off(y.Events.BUFFER_RESET,this.onBufferReset,this),d.off(y.Events.BUFFER_APPENDING,this.onBufferAppending,this),d.off(y.Events.BUFFER_CODECS,this.onBufferCodecs,this),d.off(y.Events.BUFFER_EOS,this.onBufferEos,this),d.off(y.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),d.off(y.Events.LEVEL_UPDATED,this.onLevelUpdated,this),d.off(y.Events.FRAG_PARSED,this.onFragParsed,this),d.off(y.Events.FRAG_CHANGED,this.onFragChanged,this)},l._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new a.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},l.onManifestParsed=function(d,s){var c=2;(s.audio&&!s.video||!s.altAudio)&&(c=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=c,this.details=null,x.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},l.onMediaAttaching=function(d,s){var c=this.media=s.media;if(c&&u){var w=this.mediaSource=new u;w.addEventListener("sourceopen",this._onMediaSourceOpen),w.addEventListener("sourceended",this._onMediaSourceEnded),w.addEventListener("sourceclose",this._onMediaSourceClose),c.src=self.URL.createObjectURL(w),this._objectUrl=c.src}},l.onMediaDetaching=function(){var d=this.media,s=this.mediaSource,c=this._objectUrl;if(s){if(x.logger.log("[buffer-controller]: media source detaching"),s.readyState==="open")try{s.endOfStream()}catch(w){x.logger.warn("[buffer-controller]: onMediaDetaching: "+w.message+" while calling endOfStream")}this.onBufferReset(),s.removeEventListener("sourceopen",this._onMediaSourceOpen),s.removeEventListener("sourceended",this._onMediaSourceEnded),s.removeEventListener("sourceclose",this._onMediaSourceClose),d&&(c&&self.URL.revokeObjectURL(c),d.src===c?(d.removeAttribute("src"),d.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)},l.onBufferReset=function(){var d=this;this.getSourceBufferTypes().forEach(function(s){var c=d.sourceBuffer[s];try{c&&(d.removeBufferListeners(s),d.mediaSource&&d.mediaSource.removeSourceBuffer(c),d.sourceBuffer[s]=void 0)}catch(w){x.logger.warn("[buffer-controller]: Failed to reset the "+s+" buffer",w)}}),this._initSourceBuffer()},l.onBufferCodecs=function(d,s){var c=this,w=this.getSourceBufferTypes().length;if(Object.keys(s).forEach(function(E){if(w){var v=c.tracks[E];if(v&&typeof v.buffer.changeType=="function"){var R=s[E],M=R.codec,C=R.levelCodec,S=R.container,_=(v.levelCodec||v.codec).replace(r,"$1"),A=(C||M).replace(r,"$1");if(_!==A){var U=S+";codecs="+(C||M);c.appendChangeType(E,U)}}}else c.pendingTracks[E]=s[E]}),w)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},l.appendChangeType=function(d,s){var c=this,w=this.operationQueue,E={execute:function(){var R=c.sourceBuffer[d];R&&(x.logger.log("[buffer-controller]: changing "+d+" sourceBuffer type to "+s),R.changeType(s)),w.shiftAndExecuteNext(d)},onStart:function(){},onComplete:function(){},onError:function(R){x.logger.warn("[buffer-controller]: Failed to change "+d+" SourceBuffer type",R)}};w.append(E,d)},l.onBufferAppending=function(d,s){var c=this,w=this.hls,E=this.operationQueue,v=this.tracks,R=s.data,M=s.type,C=s.frag,S=s.part,_=s.chunkMeta,A=_.buffering[M],U=self.performance.now();A.start=U;var L=C.stats.buffering,N=S?S.stats.buffering:null;L.start===0&&(L.start=U),N&&N.start===0&&(N.start=U);var V=v.audio,H=M==="audio"&&_.id===1&&(V==null?void 0:V.container)==="audio/mpeg",D={execute:function(){if(A.executeStart=self.performance.now(),H){var F=c.sourceBuffer[M];if(F){var I=C.start-F.timestampOffset;Math.abs(I)>=.1&&(x.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+C.start+" (delta: "+I+") sn: "+C.sn+")"),F.timestampOffset=C.start)}}c.appendExecutor(R,M)},onStart:function(){},onComplete:function(){var F=self.performance.now();A.executeEnd=A.end=F,L.first===0&&(L.first=F),N&&N.first===0&&(N.first=F);var I=c.sourceBuffer,K={};for(var ee in I)K[ee]=m.BufferHelper.getBuffered(I[ee]);c.appendError=0,c.hls.trigger(y.Events.BUFFER_APPENDED,{type:M,frag:C,part:S,chunkMeta:_,parent:C.type,timeRanges:K})},onError:function(F){x.logger.error("[buffer-controller]: Error encountered while trying to append to the "+M+" SourceBuffer",F);var I={type:O.ErrorTypes.MEDIA_ERROR,parent:C.type,details:O.ErrorDetails.BUFFER_APPEND_ERROR,err:F,fatal:!1};F.code===DOMException.QUOTA_EXCEEDED_ERR?I.details=O.ErrorDetails.BUFFER_FULL_ERROR:(c.appendError++,I.details=O.ErrorDetails.BUFFER_APPEND_ERROR,c.appendError>w.config.appendErrorMaxRetry&&(x.logger.error("[buffer-controller]: Failed "+w.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),I.fatal=!0)),w.trigger(y.Events.ERROR,I)}};E.append(D,M)},l.onBufferFlushing=function(d,s){var c=this,w=this.operationQueue,E=function(R){return{execute:c.removeExecutor.bind(c,R,s.startOffset,s.endOffset),onStart:function(){},onComplete:function(){c.hls.trigger(y.Events.BUFFER_FLUSHED,{type:R})},onError:function(C){x.logger.warn("[buffer-controller]: Failed to remove from "+R+" SourceBuffer",C)}}};s.type?w.append(E(s.type),s.type):this.getSourceBufferTypes().forEach(function(v){w.append(E(v),v)})},l.onFragParsed=function(d,s){var c=this,w=s.frag,E=s.part,v=[],R=E?E.elementaryStreams:w.elementaryStreams;R[f.ElementaryStreamTypes.AUDIOVIDEO]?v.push("audiovideo"):(R[f.ElementaryStreamTypes.AUDIO]&&v.push("audio"),R[f.ElementaryStreamTypes.VIDEO]&&v.push("video"));var M=function(){var S=self.performance.now();w.stats.buffering.end=S,E&&(E.stats.buffering.end=S);var _=E?E.stats:w.stats;c.hls.trigger(y.Events.FRAG_BUFFERED,{frag:w,part:E,stats:_,id:w.type})};v.length===0&&x.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+w.type+" level: "+w.level+" sn: "+w.sn),this.blockBuffers(M,v)},l.onFragChanged=function(d,s){this.flushBackBuffer()},l.onBufferEos=function(d,s){var c=this,w=this.getSourceBufferTypes().reduce(function(E,v){var R=c.sourceBuffer[v];return(!s.type||s.type===v)&&(R&&!R.ended&&(R.ended=!0,x.logger.log("[buffer-controller]: "+v+" sourceBuffer now EOS"))),E&&!!(!R||R.ended)},!0);w&&this.blockBuffers(function(){var E=c.mediaSource;if(!E||E.readyState!=="open")return;E.endOfStream()})},l.onLevelUpdated=function(d,s){var c=s.details;if(!c.fragments.length)return;this.details=c,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},l.flushBackBuffer=function(){var d=this.hls,s=this.details,c=this.media,w=this.sourceBuffer;if(!c||s===null)return;var E=this.getSourceBufferTypes();if(!E.length)return;var v=s.live&&d.config.liveBackBufferLength!==null?d.config.liveBackBufferLength:d.config.backBufferLength;if(!Object(b.isFiniteNumber)(v)||v<0)return;var R=c.currentTime,M=s.levelTargetDuration,C=Math.max(v,M),S=Math.floor(R/M)*M-C;E.forEach(function(_){var A=w[_];if(A){var U=m.BufferHelper.getBuffered(A);U.length>0&&S>U.start(0)&&(d.trigger(y.Events.BACK_BUFFER_REACHED,{bufferEnd:S}),s.live&&d.trigger(y.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:S}),d.trigger(y.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:S,type:_}))}})},l.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var d=this.details,s=this.hls,c=this.media,w=this.mediaSource,E=d.fragments[0].start+d.totalduration,v=c.duration,R=Object(b.isFiniteNumber)(w.duration)?w.duration:0;d.live&&s.config.liveDurationInfinity?(x.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),w.duration=Infinity,this.updateSeekableRange(d)):(E>R&&E>v||!Object(b.isFiniteNumber)(v))&&(x.logger.log("[buffer-controller]: Updating Media Source duration to "+E.toFixed(3)),w.duration=E)},l.updateSeekableRange=function(d){var s=this.mediaSource,c=d.fragments,w=c.length;if(w&&d.live&&s!==null&&s!==void 0&&s.setLiveSeekableRange){var E=Math.max(0,c[0].start),v=Math.max(E,E+d.totalduration);s.setLiveSeekableRange(E,v)}},l.checkPendingTracks=function(){var d=this.bufferCodecEventsExpected,s=this.operationQueue,c=this.pendingTracks,w=Object.keys(c).length;if(w&&!d||w===2){this.createSourceBuffers(c),this.pendingTracks={};var E=this.getSourceBufferTypes();if(E.length===0){this.hls.trigger(y.Events.ERROR,{type:O.ErrorTypes.MEDIA_ERROR,details:O.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});return}E.forEach(function(v){s.executeNext(v)})}},l.createSourceBuffers=function(d){var s=this.sourceBuffer,c=this.mediaSource;if(!c)throw Error("createSourceBuffers called when mediaSource was null");var w=0;for(var E in d)if(!s[E]){var v=d[E];if(!v)throw Error("source buffer exists for track "+E+", however track does not");var R=v.levelCodec||v.codec,M=v.container+";codecs="+R;x.logger.log("[buffer-controller]: creating sourceBuffer("+M+")");try{var C=s[E]=c.addSourceBuffer(M),S=E;this.addBufferListener(S,"updatestart",this._onSBUpdateStart),this.addBufferListener(S,"updateend",this._onSBUpdateEnd),this.addBufferListener(S,"error",this._onSBUpdateError),this.tracks[E]={buffer:C,codec:R,container:v.container,levelCodec:v.levelCodec,id:v.id},w++}catch(_){x.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+_.message),this.hls.trigger(y.Events.ERROR,{type:O.ErrorTypes.MEDIA_ERROR,details:O.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:_,mimeType:M})}}w&&this.hls.trigger(y.Events.BUFFER_CREATED,{tracks:this.tracks})},l._onSBUpdateStart=function(d){var s=this.operationQueue,c=s.current(d);c.onStart()},l._onSBUpdateEnd=function(d){var s=this.operationQueue,c=s.current(d);c.onComplete(),s.shiftAndExecuteNext(d)},l._onSBUpdateError=function(d,s){x.logger.error("[buffer-controller]: "+d+" SourceBuffer error",s),this.hls.trigger(y.Events.ERROR,{type:O.ErrorTypes.MEDIA_ERROR,details:O.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var c=this.operationQueue.current(d);c&&c.onError(s)},l.removeExecutor=function(d,s,c){var w=this.media,E=this.mediaSource,v=this.operationQueue,R=this.sourceBuffer,M=R[d];if(!w||!E||!M){x.logger.warn("[buffer-controller]: Attempting to remove from the "+d+" SourceBuffer, but it does not exist"),v.shiftAndExecuteNext(d);return}var C=Object(b.isFiniteNumber)(w.duration)?w.duration:Infinity,S=Object(b.isFiniteNumber)(E.duration)?E.duration:Infinity,_=Math.max(0,s),A=Math.min(c,C,S);A>_?(x.logger.log("[buffer-controller]: Removing ["+_+","+A+"] from the "+d+" SourceBuffer"),console.assert(!M.updating,d+" sourceBuffer must not be updating"),M.remove(_,A)):v.shiftAndExecuteNext(d)},l.appendExecutor=function(d,s){var c=this.operationQueue,w=this.sourceBuffer,E=w[s];if(!E){x.logger.warn("[buffer-controller]: Attempting to append to the "+s+" SourceBuffer, but it does not exist"),c.shiftAndExecuteNext(s);return}E.ended=!1,console.assert(!E.updating,s+" sourceBuffer must not be updating"),E.appendBuffer(d)},l.blockBuffers=function(d,s){var c=this;if(s===void 0&&(s=this.getSourceBufferTypes()),!s.length){x.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(d);return}var w=this.operationQueue,E=s.map(function(v){return w.appendBlocker(v)});Promise.all(E).then(function(){d(),s.forEach(function(v){var R=c.sourceBuffer[v];(!R||!R.updating)&&w.shiftAndExecuteNext(v)})})},l.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},l.addBufferListener=function(d,s,c){var w=this.sourceBuffer[d];if(!w)return;var E=c.bind(this,d);this.listeners[d].push({event:s,listener:E}),w.addEventListener(s,E)},l.removeBufferListeners=function(d){var s=this.sourceBuffer[d];if(!s)return;this.listeners[d].forEach(function(c){s.removeEventListener(c.event,c.listener)})},n}()},"./src/controller/buffer-operation-queue.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"default",function(){return y});var b=T("./src/utils/logger.ts"),y=function(){function x(m){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=m}var O=x.prototype;return O.append=function(e,f){var a=this.queues[f];a.push(e),a.length===1&&this.buffers[f]&&this.executeNext(f)},O.insertAbort=function(e,f){var a=this.queues[f];a.unshift(e),this.executeNext(f)},O.appendBlocker=function(e){var f,a=new Promise(function(r){f=r}),u={execute:f,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(u,e),a},O.executeNext=function(e){var f=this.buffers,a=this.queues,u=f[e],r=a[e];if(r.length){var i=r[0];try{i.execute()}catch(n){b.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),i.onError(n),(!u||!u.updating)&&(r.shift(),this.executeNext(e))}}},O.shiftAndExecuteNext=function(e){this.queues[e].shift(),this.executeNext(e)},O.current=function(e){return this.queues[e][0]},x}()},"./src/controller/cap-level-controller.ts":function(P,g,T){"use strict";T.r(g);var b=T("./src/events.ts");function y(m,e){for(var f=0;f<e.length;f++){var a=e[f];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(m,a.key,a)}}function x(m,e,f){return e&&y(m.prototype,e),f&&y(m,f),m}var O=function(){function m(f){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=f,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}var e=m.prototype;return e.setStreamController=function(a){this.streamController=a},e.destroy=function(){this.unregisterListener(),this.hls.config.capLevelToPlayerSize&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null},e.registerListeners=function(){var a=this.hls;a.on(b.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),a.on(b.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),a.on(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),a.on(b.Events.BUFFER_CODECS,this.onBufferCodecs,this),a.on(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},e.unregisterListener=function(){var a=this.hls;a.off(b.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),a.off(b.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),a.off(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),a.off(b.Events.BUFFER_CODECS,this.onBufferCodecs,this),a.off(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},e.onFpsDropLevelCapping=function(a,u){m.isLevelAllowed(u.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(u.droppedLevel)},e.onMediaAttaching=function(a,u){this.media=u.media instanceof HTMLVideoElement?u.media:null},e.onManifestParsed=function(a,u){var r=this.hls;this.restrictedLevels=[],this.firstLevel=u.firstLevel,r.config.capLevelToPlayerSize&&u.video&&this.startCapping()},e.onBufferCodecs=function(a,u){var r=this.hls;r.config.capLevelToPlayerSize&&u.video&&this.startCapping()},e.onMediaDetaching=function(){this.stopCapping()},e.detectPlayerSize=function(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){var a=this.hls.levels;if(a.length){var u=this.hls;u.autoLevelCapping=this.getMaxLevel(a.length-1),u.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=u.autoLevelCapping}}},e.getMaxLevel=function(a){var u=this,r=this.hls.levels;if(!r.length)return-1;var i=r.filter(function(n,l){return m.isLevelAllowed(l,u.restrictedLevels)&&l<=a});return this.clientRect=null,m.getMaxLevelByMediaSize(i,this.mediaWidth,this.mediaHeight)},e.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()},e.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},e.getDimensions=function(){if(this.clientRect)return this.clientRect;var a=this.media,u={width:0,height:0};if(a){var r=a.getBoundingClientRect();u.width=r.width,u.height=r.height,!u.width&&!u.height&&(u.width=r.right-r.left||a.width||0,u.height=r.bottom-r.top||a.height||0)}return this.clientRect=u,u},m.isLevelAllowed=function(a,u){return u===void 0&&(u=[]),u.indexOf(a)===-1},m.getMaxLevelByMediaSize=function(a,u,r){if(!a||!a.length)return-1;for(var i=function(s,c){return c?s.width!==c.width||s.height!==c.height:!0},n=a.length-1,l=0;l<a.length;l+=1){var h=a[l];if((h.width>=u||h.height>=r)&&i(h,a[l+1])){n=l;break}}return n},x(m,[{key:"mediaWidth",get:function(){return this.getDimensions().width*m.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*m.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var a=1;try{a=self.devicePixelRatio}catch(u){}return a}}]),m}();g.default=O},"./src/controller/cmcd-controller.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"default",function(){return i});var b=T("./src/events.ts"),y=T("./src/types/cmcd.ts"),x=T("./src/utils/buffer-helper.ts"),O=T("./src/utils/logger.ts");function m(n,l){for(var h=0;h<l.length;h++){var d=l[h];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(n,d.key,d)}}function e(n,l,h){return l&&m(n.prototype,l),h&&m(n,h),n}function f(n,l){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=a(n))||l&&n&&typeof n.length=="number"){h&&(n=h);var d=0;return function(){return d>=n.length?{done:!0}:{done:!1,value:n[d++]}}}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 a(n,l){if(!n)return;if(typeof n=="string")return u(n,l);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,l)}function u(n,l){(l==null||l>n.length)&&(l=n.length);for(var h=0,d=new Array(l);h<l;h++)d[h]=n[h];return d}function r(){return r=Object.assign||function(n){for(var l=1;l<arguments.length;l++){var h=arguments[l];for(var d in h)Object.prototype.hasOwnProperty.call(h,d)&&(n[d]=h[d])}return n},r.apply(this,arguments)}var i=function(){function n(h){var d=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(){d.initialized&&(d.starved=!0),d.buffering=!0},this.onPlaying=function(){d.initialized||(d.initialized=!0),d.buffering=!1},this.applyPlaylistData=function(w){try{d.apply(w,{ot:y.CMCDObjectType.MANIFEST,su:!d.initialized})}catch(E){O.logger.warn("Could not generate manifest CMCD data.",E)}},this.applyFragmentData=function(w){try{var E=w.frag,v=d.hls.levels[E.level],R=d.getObjectType(E),M={d:E.duration*1e3,ot:R};(R===y.CMCDObjectType.VIDEO||R===y.CMCDObjectType.AUDIO||R==y.CMCDObjectType.MUXED)&&(M.br=v.bitrate/1e3,M.tb=d.getTopBandwidth(R),M.bl=d.getBufferLength(R)),d.apply(w,M)}catch(C){O.logger.warn("Could not generate segment CMCD data.",C)}},this.hls=h;var s=this.config=h.config,c=s.cmcd;c!=null&&(s.pLoader=this.createPlaylistLoader(),s.fLoader=this.createFragmentLoader(),this.sid=c.sessionId||n.uuid(),this.cid=c.contentId,this.useHeaders=c.useHeaders===!0,this.registerListeners())}var l=n.prototype;return l.registerListeners=function(){var d=this.hls;d.on(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),d.on(b.Events.MEDIA_DETACHED,this.onMediaDetached,this),d.on(b.Events.BUFFER_CREATED,this.onBufferCreated,this)},l.unregisterListeners=function(){var d=this.hls;d.off(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),d.off(b.Events.MEDIA_DETACHED,this.onMediaDetached,this),d.off(b.Events.BUFFER_CREATED,this.onBufferCreated,this),this.onMediaDetached()},l.destroy=function(){this.unregisterListeners(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null},l.onMediaAttached=function(d,s){this.media=s.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)},l.onMediaDetached=function(){if(!this.media)return;this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null},l.onBufferCreated=function(d,s){var c,w;this.audioBuffer=(c=s.tracks.audio)===null||c===void 0?void 0:c.buffer,this.videoBuffer=(w=s.tracks.video)===null||w===void 0?void 0:w.buffer},l.createData=function(){var d;return{v:y.CMCDVersion,sf:y.CMCDStreamingFormat.HLS,sid:this.sid,cid:this.cid,pr:(d=this.media)===null||d===void 0?void 0:d.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}},l.apply=function(d,s){s===void 0&&(s={}),r(s,this.createData());var c=s.ot===y.CMCDObjectType.INIT||s.ot===y.CMCDObjectType.VIDEO||s.ot===y.CMCDObjectType.MUXED;if(this.starved&&c&&(s.bs=!0,s.su=!0,this.starved=!1),s.su==null&&(s.su=this.buffering),this.useHeaders){var w=n.toHeaders(s);if(!Object.keys(w).length)return;d.headers||(d.headers={}),r(d.headers,w)}else{var E=n.toQuery(s);if(!E)return;d.url=n.appendQueryToUri(d.url,E)}},l.getObjectType=function(d){var s=d.type;return s==="subtitle"?y.CMCDObjectType.TIMED_TEXT:d.sn==="initSegment"?y.CMCDObjectType.INIT:s==="audio"?y.CMCDObjectType.AUDIO:s==="main"?this.hls.audioTracks.length?y.CMCDObjectType.VIDEO:y.CMCDObjectType.MUXED:void 0},l.getTopBandwidth=function(d){for(var s=0,c=d===y.CMCDObjectType.AUDIO?this.hls.audioTracks:this.hls.levels,w=f(c),E;!(E=w()).done;){var v=E.value;v.bitrate>s&&(s=v.bitrate)}return s>0?s:NaN},l.getBufferLength=function(d){var s=this.hls.media,c=d===y.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!c||!s)return NaN;var w=x.BufferHelper.bufferInfo(c,s.currentTime,this.config.maxBufferHole);return w.len*1e3},l.createPlaylistLoader=function(){var d=this.config.pLoader,s=this.applyPlaylistData,c=d||this.config.loader;return function(){function w(v){this.loader=void 0,this.loader=new c(v)}var E=w.prototype;return E.destroy=function(){this.loader.destroy()},E.abort=function(){this.loader.abort()},E.load=function(R,M,C){s(R),this.loader.load(R,M,C)},e(w,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),w}()},l.createFragmentLoader=function(){var d=this.config.fLoader,s=this.applyFragmentData,c=d||this.config.loader;return function(){function w(v){this.loader=void 0,this.loader=new c(v)}var E=w.prototype;return E.destroy=function(){this.loader.destroy()},E.abort=function(){this.loader.abort()},E.load=function(R,M,C){s(R),this.loader.load(R,M,C)},e(w,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),w}()},n.uuid=function(){var d=URL.createObjectURL(new Blob),s=d.toString();return URL.revokeObjectURL(d),s.substr(s.lastIndexOf("/")+1)},n.serialize=function(d){for(var s=[],c=function(H){return!Number.isNaN(H)&&H!=null&&H!==""&&H!==!1},w=function(H){return Math.round(H)},E=function(H){return w(H/100)*100},v=function(H){return encodeURIComponent(H)},R={br:w,d:w,bl:E,dl:E,mtp:E,nor:v,rtp:E,tb:w},M=Object.keys(d||{}).sort(),C=f(M),S;!(S=C()).done;){var _=S.value,A=d[_];if(!c(A))continue;if(_==="v"&&A===1)continue;if(_=="pr"&&A===1)continue;var U=R[_];U&&(A=U(A));var L=typeof A,N=void 0;_==="ot"||_==="sf"||_==="st"?N=_+"="+A:L==="boolean"?N=_:L==="number"?N=_+"="+A:N=_+"="+JSON.stringify(A),s.push(N)}return s.join(",")},n.toHeaders=function(d){for(var s=Object.keys(d),c={},w=["Object","Request","Session","Status"],E=[{},{},{},{}],v={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},R=0,M=s;R<M.length;R++){var C=M[R],S=v[C]!=null?v[C]:1;E[S][C]=d[C]}for(var _=0;_<E.length;_++){var A=n.serialize(E[_]);A&&(c["CMCD-"+w[_]]=A)}return c},n.toQuery=function(d){return"CMCD="+encodeURIComponent(n.serialize(d))},n.appendQueryToUri=function(d,s){if(!s)return d;var c=d.includes("?")?"&":"?";return""+d+c+s},n}()},"./src/controller/eme-controller.ts":function(P,g,T){"use strict";T.r(g);var b=T("./src/events.ts"),y=T("./src/errors.ts"),x=T("./src/utils/logger.ts"),O=T("./src/utils/mediakeys-helper.ts");function m(i,n){for(var l=0;l<n.length;l++){var h=n[l];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(i,h.key,h)}}function e(i,n,l){return n&&m(i.prototype,n),l&&m(i,l),i}var f=3,a=function(n,l,h){var d={audioCapabilities:[],videoCapabilities:[]};return n.forEach(function(s){d.audioCapabilities.push({contentType:'audio/mp4; codecs="'+s+'"',robustness:h.audioRobustness||""})}),l.forEach(function(s){d.videoCapabilities.push({contentType:'video/mp4; codecs="'+s+'"',robustness:h.videoRobustness||""})}),[d]},u=function(n,l,h,d){switch(n){case O.KeySystems.WIDEVINE:return a(l,h,d);default:throw new Error("Unknown key-system: "+n)}},r=function(){function i(l){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=l,this._config=l.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=i.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 O.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,d,s){var c=this,w=u(h,d,s,this._drmSystemOptions);x.logger.log("Requesting encrypted media key-system access");var E=this.requestMediaKeySystemAccess(h,w);this.mediaKeysPromise=E.then(function(v){return c._onMediaKeySystemAccessObtained(h,v)}),E.catch(function(v){x.logger.error('Failed to obtain key-system "'+h+'" access:',v)})},n._onMediaKeySystemAccessObtained=function(h,d){var s=this;x.logger.log('Access for key-system "'+h+'" obtained');var c={mediaKeysSessionInitialized:!1,mediaKeySystemAccess:d,mediaKeySystemDomain:h};this._mediaKeysList.push(c);var w=Promise.resolve().then(function(){return d.createMediaKeys()}).then(function(E){return c.mediaKeys=E,x.logger.log('Media-keys created for key-system "'+h+'"'),s._onMediaKeysCreated(),E});return w.catch(function(E){x.logger.error("Failed to create media-keys:",E)}),w},n._onMediaKeysCreated=function(){var h=this;this._mediaKeysList.forEach(function(d){d.mediaKeysSession||(d.mediaKeysSession=d.mediaKeys.createSession(),h._onNewMediaKeySession(d.mediaKeysSession))})},n._onNewMediaKeySession=function(h){var d=this;x.logger.log("New key-system session "+h.sessionId),h.addEventListener("message",function(s){d._onKeySessionMessage(h,s.message)},!1)},n._onKeySessionMessage=function(h,d){x.logger.log("Got EME message event, creating license request"),this._requestLicense(d,function(s){x.logger.log("Received license data (length: "+(s&&s.byteLength)+"), updating key-session"),h.update(s)})},n.onMediaEncrypted=function(h){var d=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(w){if(!d._media)return;d._attemptSetMediaKeys(w),d._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 d=this._mediaKeysList[0];if(!d||!d.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(d.mediaKeys),this._hasSetMediaKeys=!0}},n._generateRequestWithPreferredKeySession=function(h,d){var s=this,c=this._mediaKeysList[0];if(!c){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(c.mediaKeysSessionInitialized){x.logger.warn("Key-Session already initialized but requested again");return}var w=c.mediaKeysSession;if(!w){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(!d){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'),c.mediaKeysSessionInitialized=!0,w.generateRequest(h,d).then(function(){x.logger.debug("Key-session generation succeeded")}).catch(function(E){x.logger.error("Error generating key-session request:",E),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,d,s){var c=new XMLHttpRequest;c.responseType="arraybuffer",c.onreadystatechange=this._onLicenseRequestReadyStageChange.bind(this,c,h,d,s);var w=this._licenseXhrSetup;if(w)try{w.call(this.hls,c,h),w=void 0}catch(E){x.logger.error(E)}try{c.readyState||c.open("POST",h,!0),w&&w.call(this.hls,c,h)}catch(E){throw new Error("issue setting up KeySystem license XHR "+E)}return c},n._onLicenseRequestReadyStageChange=function(h,d,s,c){switch(h.readyState){case 4:if(h.status===200){this._requestLicenseFailureCount=0,x.logger.log("License request succeeded");var w=h.response,E=this._licenseResponseCallback;if(E)try{w=E.call(this.hls,h,d)}catch(R){x.logger.error(R)}c(w)}else{if(x.logger.error("License Request XHR failed ("+d+"). Status: "+h.status+" ("+h.statusText+")"),this._requestLicenseFailureCount++,this._requestLicenseFailureCount>f){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=f-this._requestLicenseFailureCount+1;x.logger.warn("Retrying license request, "+v+" attempts left"),this._requestLicense(s,c)}break}},n._generateLicenseRequestChallenge=function(h,d){switch(h.mediaKeySystemDomain){case O.KeySystems.WIDEVINE:return d}throw new Error("unsupported key-system: "+h.mediaKeySystemDomain)},n._requestLicense=function(h,d){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 c=this.getLicenseServerUrl(s.mediaKeySystemDomain),w=this._createLicenseXhr(c,h,d);x.logger.log("Sending license request to URL: "+c);var E=this._generateLicenseRequestChallenge(s,h);w.send(E)}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,d){if(!this._emeEnabled)return;var s=d.media;this._media=s,s.addEventListener("encrypted",this._onMediaEncrypted)},n.onMediaDetached=function(){var h=this._media,d=this._mediaKeysList;if(!h)return;h.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(d.map(function(s){if(s.mediaKeysSession)return s.mediaKeysSession.close().catch(function(){})})).then(function(){return h.setMediaKeys(null)}).catch(function(){})},n.onManifestParsed=function(h,d){if(!this._emeEnabled)return;var s=d.levels.map(function(w){return w.audioCodec}).filter(function(w){return!!w}),c=d.levels.map(function(w){return w.videoCodec}).filter(function(w){return!!w});this._attemptKeySystemAccess(O.KeySystems.WIDEVINE,s,c)},e(i,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),i}();g.default=r},"./src/controller/fps-controller.ts":function(P,g,T){"use strict";T.r(g);var b=T("./src/events.ts"),y=T("./src/utils/logger.ts"),x=function(){function O(e){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=e,this.registerListeners()}var m=O.prototype;return m.setStreamController=function(f){this.streamController=f},m.registerListeners=function(){this.hls.on(b.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},m.unregisterListeners=function(){this.hls.off(b.Events.MEDIA_ATTACHING,this.onMediaAttaching)},m.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},m.onMediaAttaching=function(f,a){var u=this.hls.config;if(u.capLevelOnFPSDrop){var r=a.media instanceof self.HTMLVideoElement?a.media:null;this.media=r,r&&typeof r.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),u.fpsDroppedMonitoringPeriod)}},m.checkFPS=function(f,a,u){var r=performance.now();if(a){if(this.lastTime){var i=r-this.lastTime,n=u-this.lastDroppedFrames,l=a-this.lastDecodedFrames,h=1e3*n/i,d=this.hls;if(d.trigger(b.Events.FPS_DROP,{currentDropped:n,currentDecoded:l,totalDroppedFrames:u}),h>0&&n>d.config.fpsDroppedMonitoringThreshold*l){var s=d.currentLevel;y.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+s),s>0&&(d.autoLevelCapping===-1||d.autoLevelCapping>=s)&&(s=s-1,d.trigger(b.Events.FPS_DROP_LEVEL_CAPPING,{level:s,droppedLevel:d.currentLevel}),d.autoLevelCapping=s,this.streamController.nextLevelSwitch())}}this.lastTime=r,this.lastDroppedFrames=u,this.lastDecodedFrames=a}},m.checkFPSInterval=function(){var f=this.media;if(f)if(this.isVideoPlaybackQualityAvailable){var a=f.getVideoPlaybackQuality();this.checkFPS(f,a.totalVideoFrames,a.droppedVideoFrames)}else this.checkFPS(f,f.webkitDecodedFrameCount,f.webkitDroppedFrameCount)},O}();g.default=x},"./src/controller/fragment-finders.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"findFragmentByPDT",function(){return x}),T.d(g,"findFragmentByPTS",function(){return O}),T.d(g,"fragmentWithinToleranceTest",function(){return m}),T.d(g,"pdtWithinToleranceTest",function(){return e}),T.d(g,"findFragWithCC",function(){return f});var b=T("./src/polyfills/number.ts"),y=T("./src/utils/binary-search.ts");function x(a,u,r){if(u===null||!Array.isArray(a)||!a.length||!Object(b.isFiniteNumber)(u))return null;var i=a[0].programDateTime;if(u<(i||0))return null;var n=a[a.length-1].endProgramDateTime;if(u>=(n||0))return null;r=r||0;for(var l=0;l<a.length;++l){var h=a[l];if(e(u,r,h))return h}return null}function O(a,u,r,i){r===void 0&&(r=0),i===void 0&&(i=0);var n=null;if(a?n=u[a.sn-u[0].sn+1]||null:r===0&&u[0].start===0&&(n=u[0]),n&&m(r,i,n)===0)return n;var l=y.default.search(u,m.bind(null,r,i));return l||n}function m(a,u,r){a===void 0&&(a=0),u===void 0&&(u=0);var i=Math.min(u,r.duration+(r.deltaPTS?r.deltaPTS:0));return r.start+r.duration-i<=a?1:r.start-i>a&&r.start?-1:0}function e(a,u,r){var i=Math.min(u,r.duration+(r.deltaPTS?r.deltaPTS:0))*1e3,n=r.endProgramDateTime||0;return n-i>a}function f(a,u){return y.default.search(a,function(r){return r.cc<u?1:r.cc>u?-1:0})}},"./src/controller/fragment-tracker.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"FragmentState",function(){return x}),T.d(g,"FragmentTracker",function(){return O});var b=T("./src/events.ts"),y=T("./src/types/loader.ts"),x;(function(f){f.NOT_LOADED="NOT_LOADED",f.BACKTRACKED="BACKTRACKED",f.APPENDING="APPENDING",f.PARTIAL="PARTIAL",f.OK="OK"})(x||(x={}));var O=function(){function f(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 a=f.prototype;return a._registerListeners=function(){var r=this.hls;r.on(b.Events.BUFFER_APPENDED,this.onBufferAppended,this),r.on(b.Events.FRAG_BUFFERED,this.onFragBuffered,this),r.on(b.Events.FRAG_LOADED,this.onFragLoaded,this)},a._unregisterListeners=function(){var r=this.hls;r.off(b.Events.BUFFER_APPENDED,this.onBufferAppended,this),r.off(b.Events.FRAG_BUFFERED,this.onFragBuffered,this),r.off(b.Events.FRAG_LOADED,this.onFragLoaded,this)},a.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},a.getAppendedFrag=function(r,i){if(i===y.PlaylistLevelType.MAIN){var n=this.activeFragment,l=this.activeParts;if(!n)return null;if(l)for(var h=l.length;h--;){var d=l[h],s=d?d.end:n.appendedPTS;if(d.start<=r&&s!==void 0&&r<=s)return h>9&&(this.activeParts=l.slice(h-9)),d}else if(n.start<=r&&n.appendedPTS!==void 0&&r<=n.appendedPTS)return n}return this.getBufferedFrag(r,i)},a.getBufferedFrag=function(r,i){for(var n=this.fragments,l=Object.keys(n),h=l.length;h--;){var d=n[l[h]];if((d==null?void 0:d.body.type)===i&&d.buffered){var s=d.body;if(s.start<=r&&r<=s.end)return s}}return null},a.detectEvictedFragments=function(r,i,n){var l=this;Object.keys(this.fragments).forEach(function(h){var d=l.fragments[h];if(!d)return;if(!d.buffered){d.body.type===n&&l.removeFragment(d.body);return}var s=d.range[r];if(!s)return;s.time.some(function(c){var w=!l.isTimeBuffered(c.startPTS,c.endPTS,i);return w&&l.removeFragment(d.body),w})})},a.detectPartialFragments=function(r){var i=this,n=this.timeRanges,l=r.frag,h=r.part;if(!n||l.sn==="initSegment")return;var d=e(l),s=this.fragments[d];if(!s)return;Object.keys(n).forEach(function(c){var w=l.elementaryStreams[c];if(!w)return;var E=n[c],v=h!==null||w.partial===!0;s.range[c]=i.getBufferedTimes(l,h,v,E)}),s.backtrack=s.loaded=null,Object.keys(s.range).length?s.buffered=!0:this.removeFragment(s.body)},a.fragBuffered=function(r){var i=e(r),n=this.fragments[i];n&&(n.backtrack=n.loaded=null,n.buffered=!0)},a.getBufferedTimes=function(r,i,n,l){for(var h={time:[],partial:n},d=i?i.start:r.start,s=i?i.end:r.end,c=r.minEndPTS||s,w=r.maxStartPTS||d,E=0;E<l.length;E++){var v=l.start(E)-this.bufferPadding,R=l.end(E)+this.bufferPadding;if(w>=v&&c<=R){h.time.push({startPTS:Math.max(d,l.start(E)),endPTS:Math.min(s,l.end(E))});break}else if(d<R&&s>v)h.partial=!0,h.time.push({startPTS:Math.max(d,l.start(E)),endPTS:Math.min(s,l.end(E))});else if(s<=v)break}return h},a.getPartialFragment=function(r){var i=null,n,l,h,d=0,s=this.bufferPadding,c=this.fragments;return Object.keys(c).forEach(function(w){var E=c[w];if(!E)return;m(E)&&(l=E.body.start-s,h=E.body.end+s,r>=l&&r<=h&&(n=Math.min(r-l,h-r),d<=n&&(i=E.body,d=n)))}),i},a.getState=function(r){var i=e(r),n=this.fragments[i];return n?n.buffered?m(n)?x.PARTIAL:x.OK:n.backtrack?x.BACKTRACKED:x.APPENDING:x.NOT_LOADED},a.backtrack=function(r,i){var n=e(r),l=this.fragments[n];if(!l||l.backtrack)return null;var h=l.backtrack=i||l.loaded;return l.loaded=null,h},a.getBacktrackData=function(r){var i=e(r),n=this.fragments[i];if(n){var l,h=n.backtrack;if(h!=null&&(l=h.payload)!==null&&l!==void 0&&l.byteLength)return h;this.removeFragment(r)}return null},a.isTimeBuffered=function(r,i,n){for(var l,h,d=0;d<n.length;d++){if(l=n.start(d)-this.bufferPadding,h=n.end(d)+this.bufferPadding,r>=l&&i<=h)return!0;if(i<=l)return!1}return!1},a.onFragLoaded=function(r,i){var n=i.frag,l=i.part;if(n.sn==="initSegment"||n.bitrateTest||l)return;var h=e(n);this.fragments[h]={body:n,loaded:i,backtrack:null,buffered:!1,range:Object.create(null)}},a.onBufferAppended=function(r,i){var n=this,l=i.frag,h=i.part,d=i.timeRanges;if(l.type===y.PlaylistLevelType.MAIN)if(this.activeFragment=l,h){var s=this.activeParts;s||(this.activeParts=s=[]),s.push(h)}else this.activeParts=null;this.timeRanges=d,Object.keys(d).forEach(function(c){var w=d[c];if(n.detectEvictedFragments(c,w),!h)for(var E=0;E<w.length;E++)l.appendedPTS=Math.max(w.end(E),l.appendedPTS||0)})},a.onFragBuffered=function(r,i){this.detectPartialFragments(i)},a.hasFragment=function(r){var i=e(r);return!!this.fragments[i]},a.removeFragmentsInRange=function(r,i,n){var l=this;Object.keys(this.fragments).forEach(function(h){var d=l.fragments[h];if(!d)return;if(d.buffered){var s=d.body;s.type===n&&s.start<i&&s.end>r&&l.removeFragment(s)}})},a.removeFragment=function(r){var i=e(r);r.stats.loaded=0,r.clearElementaryStreamInfo(),delete this.fragments[i]},a.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},f}();function m(f){var a,u;return f.buffered&&(((a=f.range.video)===null||a===void 0?void 0:a.partial)||((u=f.range.audio)===null||u===void 0?void 0:u.partial))}function e(f){return f.type+"_"+f.level+"_"+f.urlId+"_"+f.sn}},"./src/controller/gap-controller.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"STALL_MINIMUM_DURATION_MS",function(){return m}),T.d(g,"MAX_START_GAP_JUMP",function(){return e}),T.d(g,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return f}),T.d(g,"SKIP_BUFFER_RANGE_START",function(){return a}),T.d(g,"default",function(){return u});var b=T("./src/utils/buffer-helper.ts"),y=T("./src/errors.ts"),x=T("./src/events.ts"),O=T("./src/utils/logger.ts"),m=250,e=2,f=.1,a=.05,u=function(){function r(n,l,h,d){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=l,this.fragmentTracker=h,this.hls=d}var i=r.prototype;return i.destroy=function(){this.hls=this.fragmentTracker=this.media=null},i.poll=function(l){var h=this.config,d=this.media,s=this.stalled,c=d.currentTime,w=d.seeking,E=this.seeking&&!w,v=!this.seeking&&w;if(this.seeking=w,c!==l){if(this.moved=!0,s!==null){if(this.stallReported){var R=self.performance.now()-s;O.logger.warn("playback not stuck anymore @"+c+", after "+Math.round(R)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((v||E)&&(this.stalled=null),d.paused||d.ended||d.playbackRate===0||!b.BufferHelper.getBuffered(d).length)return;var M=b.BufferHelper.bufferInfo(d,c,0),C=M.len>0,S=M.nextStart||0;if(!C&&!S)return;if(w){var _=M.len>e,A=!S||S-c>e&&!this.fragmentTracker.getPartialFragment(c);if(_||A)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var U,L=Math.max(S,M.start||0)-c,N=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,V=N==null||((U=N.details)===null||U===void 0)?void 0:U.live,H=V?N.details.targetduration*2:e;if(L>0&&L<=H){this._trySkipBufferHole(null);return}}var D=self.performance.now();if(s===null){this.stalled=D;return}var W=D-s;!w&&W>=m&&this._reportStall(M.len);var F=b.BufferHelper.bufferInfo(d,c,h.maxBufferHole);this._tryFixBufferStall(F,W)},i._tryFixBufferStall=function(l,h){var d=this.config,s=this.fragmentTracker,c=this.media,w=c.currentTime,E=s.getPartialFragment(w);if(E){var v=this._trySkipBufferHole(E);if(v)return}l.len>d.maxBufferHole&&h>d.highBufferWatchdogPeriod*1e3&&(O.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},i._reportStall=function(l){var h=this.hls,d=this.media,s=this.stallReported;s||(this.stallReported=!0,O.logger.warn("Playback stalling at @"+d.currentTime+" due to low buffer (buffer="+l+")"),h.trigger(x.Events.ERROR,{type:y.ErrorTypes.MEDIA_ERROR,details:y.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:l}))},i._trySkipBufferHole=function(l){for(var h=this.config,d=this.hls,s=this.media,c=s.currentTime,w=0,E=b.BufferHelper.getBuffered(s),v=0;v<E.length;v++){var R=E.start(v);if(c+h.maxBufferHole>=w&&c<R){var M=Math.max(R+a,s.currentTime+f);return O.logger.warn("skipping hole, adjusting currentTime from "+c+" to "+M),this.moved=!0,this.stalled=null,s.currentTime=M,l&&d.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 "+c+" to "+M,frag:l}),M}w=E.end(v)}return 0},i._tryNudgeBuffer=function(){var l=this.config,h=this.hls,d=this.media,s=d.currentTime,c=(this.nudgeRetry||0)+1;if(this.nudgeRetry=c,c<l.nudgeMaxRetry){var w=s+c*l.nudgeOffset;O.logger.warn("Nudging 'currentTime' from "+s+" to "+w),d.currentTime=w,h.trigger(x.Events.ERROR,{type:y.ErrorTypes.MEDIA_ERROR,details:y.ErrorDetails.BUFFER_NUDGE_ON_STALL,fatal:!1})}else O.logger.error("Playhead still not moving while enough data buffered @"+s+" after "+l.nudgeMaxRetry+" nudges"),h.trigger(x.Events.ERROR,{type:y.ErrorTypes.MEDIA_ERROR,details:y.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!0})},r}()},"./src/controller/id3-track-controller.ts":function(P,g,T){"use strict";T.r(g);var b=T("./src/events.ts"),y=T("./src/utils/texttrack-utils.ts"),x=T("./src/demux/id3.ts"),O=.25,m=function(){function e(a){this.hls=void 0,this.id3Track=null,this.media=null,this.hls=a,this._registerListeners()}var f=e.prototype;return f.destroy=function(){this._unregisterListeners()},f._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)},f._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)},f.onMediaAttached=function(u,r){this.media=r.media},f.onMediaDetaching=function(){if(!this.id3Track)return;Object(y.clearCurrentCues)(this.id3Track),this.id3Track=null,this.media=null},f.getID3Track=function(u){if(!this.media)return;for(var r=0;r<u.length;r++){var i=u[r];if(i.kind==="metadata"&&i.label==="id3")return Object(y.sendAddTrackEvent)(i,this.media),i}return this.media.addTextTrack("metadata","id3")},f.onFragParsingMetadata=function(u,r){if(!this.media)return;var i=r.frag,n=r.samples;this.id3Track||(this.id3Track=this.getID3Track(this.media.textTracks),this.id3Track.mode="hidden");for(var l=self.WebKitDataCue||self.VTTCue||self.TextTrackCue,h=0;h<n.length;h++){var d=x.getID3Frames(n[h].data);if(d){var s=n[h].pts,c=h<n.length-1?n[h+1].pts:i.end,w=c-s;w<=0&&(c=s+O);for(var E=0;E<d.length;E++){var v=d[E];if(!x.isTimeStampFrame(v)){var R=new l(s,c,"");R.value=v,this.id3Track.addCue(R)}}}}},f.onBufferFlushing=function(u,r){var i=r.startOffset,n=r.endOffset,l=r.type;if(!l||l==="audio"){var h=this.id3Track;h&&Object(y.removeCuesInRange)(h,i,n)}},e}();g.default=m},"./src/controller/latency-controller.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"default",function(){return e});var b=T("./src/errors.ts"),y=T("./src/events.ts"),x=T("./src/utils/logger.ts");function O(f,a){for(var u=0;u<a.length;u++){var r=a[u];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(f,r.key,r)}}function m(f,a,u){return a&&O(f.prototype,a),u&&O(f,u),f}var e=function(){function f(u){var r=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 r.timeupdate()},this.hls=u,this.config=u.config,this.registerListeners()}var a=f.prototype;return a.destroy=function(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null},a.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)},a.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)},a.onMediaAttached=function(r,i){this.media=i.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)},a.onMediaDetaching=function(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)},a.onManifestLoading=function(){this.levelDetails=null,this._latency=null,this.stallCount=0},a.onLevelUpdated=function(r,i){var n=i.details;this.levelDetails=n,n.advanced&&this.timeupdate(),!n.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)},a.onError=function(r,i){if(i.details!==b.ErrorDetails.BUFFER_STALLED_ERROR)return;this.stallCount++,x.logger.warn("[playback-rate-controller]: Stall detected, adjusting target latency")},a.timeupdate=function(){var r=this.media,i=this.levelDetails;if(!r||!i)return;this.currentTime=r.currentTime;var n=this.computeLatency();if(n===null)return;this._latency=n;var l=this.config,h=l.lowLatencyMode,d=l.maxLiveSyncPlaybackRate;if(!h||d===1)return;var s=this.targetLatency;if(s===null)return;var c=n-s,w=Math.min(this.maxLatency,s+i.targetduration),E=c<w;if(i.live&&E&&c>.05&&this.forwardBufferLength>1){var v=Math.min(2,Math.max(1,d)),R=Math.round(2/(1+Math.exp(-.75*c-this.edgeStalled))*20)/20;r.playbackRate=Math.min(v,Math.max(1,R))}else r.playbackRate!==1&&r.playbackRate!==0&&(r.playbackRate=1)},a.estimateLiveEdge=function(){var r=this.levelDetails;return r===null?null:r.edge+r.age},a.computeLatency=function(){var r=this.estimateLiveEdge();return r===null?null:r-this.currentTime},m(f,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var r=this.config,i=this.levelDetails;return r.liveMaxLatencyDuration!==void 0?r.liveMaxLatencyDuration:i?r.liveMaxLatencyDurationCount*i.targetduration:0}},{key:"targetLatency",get:function(){var r=this.levelDetails;if(r===null)return null;var i=r.holdBack,n=r.partHoldBack,l=r.targetduration,h=this.config,d=h.liveSyncDuration,s=h.liveSyncDurationCount,c=h.lowLatencyMode,w=this.hls.userConfig,E=c&&n||i;(w.liveSyncDuration||w.liveSyncDurationCount||E===0)&&(E=d!==void 0?d:s*l);var v=l,R=1;return E+Math.min(this.stallCount*R,v)}},{key:"liveSyncPosition",get:function(){var r=this.estimateLiveEdge(),i=this.targetLatency,n=this.levelDetails;if(r===null||i===null||n===null)return null;var l=n.edge,h=r-i-this.edgeStalled,d=l-n.totalduration,s=l-(this.config.lowLatencyMode&&n.partTarget||n.targetduration);return Math.min(Math.max(d,h),s)}},{key:"drift",get:function(){var r=this.levelDetails;return r===null?1:r.drift}},{key:"edgeStalled",get:function(){var r=this.levelDetails;if(r===null)return 0;var i=(this.config.lowLatencyMode&&r.partTarget||r.targetduration)*3;return Math.max(r.age-i,0)}},{key:"forwardBufferLength",get:function(){var r=this.media,i=this.levelDetails;if(!r||!i)return 0;var n=r.buffered.length;return n?r.buffered.end(n-1):i.edge-this.currentTime}}]),f}()},"./src/controller/level-controller.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"default",function(){return h});var b=T("./src/types/level.ts"),y=T("./src/events.ts"),x=T("./src/errors.ts"),O=T("./src/utils/codecs.ts"),m=T("./src/controller/level-helper.ts"),e=T("./src/controller/base-playlist-controller.ts"),f=T("./src/types/loader.ts");function a(){return a=Object.assign||function(d){for(var s=1;s<arguments.length;s++){var c=arguments[s];for(var w in c)Object.prototype.hasOwnProperty.call(c,w)&&(d[w]=c[w])}return d},a.apply(this,arguments)}function u(d,s){for(var c=0;c<s.length;c++){var w=s[c];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(d,w.key,w)}}function r(d,s,c){return s&&u(d.prototype,s),c&&u(d,c),d}function i(d,s){d.prototype=Object.create(s.prototype),d.prototype.constructor=d,n(d,s)}function n(d,s){return n=Object.setPrototypeOf||function(w,E){return w.__proto__=E,w},n(d,s)}var l=/chrome|firefox/.test(navigator.userAgent.toLowerCase()),h=function(d){i(s,d);function s(w){var E;return E=d.call(this,w,"[level-controller]")||this,E._levels=[],E._firstLevel=-1,E._startLevel=void 0,E.currentLevelIndex=-1,E.manualLevelIndex=-1,E.onParsedComplete=void 0,E._registerListeners(),E}var c=s.prototype;return c._registerListeners=function(){var E=this.hls;E.on(y.Events.MANIFEST_LOADED,this.onManifestLoaded,this),E.on(y.Events.LEVEL_LOADED,this.onLevelLoaded,this),E.on(y.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),E.on(y.Events.FRAG_LOADED,this.onFragLoaded,this),E.on(y.Events.ERROR,this.onError,this)},c._unregisterListeners=function(){var E=this.hls;E.off(y.Events.MANIFEST_LOADED,this.onManifestLoaded,this),E.off(y.Events.LEVEL_LOADED,this.onLevelLoaded,this),E.off(y.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),E.off(y.Events.FRAG_LOADED,this.onFragLoaded,this),E.off(y.Events.ERROR,this.onError,this)},c.destroy=function(){this._unregisterListeners(),this.manualLevelIndex=-1,this._levels.length=0,d.prototype.destroy.call(this)},c.startLoad=function(){var E=this._levels;E.forEach(function(v){v.loadError=0}),d.prototype.startLoad.call(this)},c.onManifestLoaded=function(E,v){var R=[],M=[],C=[],S,_={},A,U=!1,L=!1,N=!1;if(v.levels.forEach(function(W){var F=W.attrs;U=U||!!(W.width&&W.height),L=L||!!W.videoCodec,N=N||!!W.audioCodec,l&&W.audioCodec&&W.audioCodec.indexOf("mp4a.40.34")!==-1&&(W.audioCodec=void 0);var I=W.bitrate+"-"+W.attrs.RESOLUTION+"-"+W.attrs.CODECS;A=_[I],A?A.url.push(W.url):(A=new b.Level(W),_[I]=A,R.push(A)),F&&(F.AUDIO&&Object(m.addGroupId)(A,"audio",F.AUDIO),F.SUBTITLES&&Object(m.addGroupId)(A,"text",F.SUBTITLES))}),(U||L)&&N&&(R=R.filter(function(W){var F=W.videoCodec,I=W.width,K=W.height;return!!F||!!(I&&K)})),R=R.filter(function(W){var F=W.audioCodec,I=W.videoCodec;return(!F||Object(O.isCodecSupportedInMp4)(F,"audio"))&&(!I||Object(O.isCodecSupportedInMp4)(I,"video"))}),v.audioTracks&&(M=v.audioTracks.filter(function(W){return!W.audioCodec||Object(O.isCodecSupportedInMp4)(W.audioCodec,"audio")}),Object(m.assignTrackIdsByGroup)(M)),v.subtitles&&(C=v.subtitles,Object(m.assignTrackIdsByGroup)(C)),R.length>0){S=R[0].bitrate,R.sort(function(W,F){return W.bitrate-F.bitrate}),this._levels=R;for(var V=0;V<R.length;V++)if(R[V].bitrate===S){this._firstLevel=V,this.log("manifest loaded, "+R.length+" level(s) found, first bitrate: "+S);break}var H=N&&!L,D={levels:R,audioTracks:M,subtitleTracks:C,firstLevel:this._firstLevel,stats:v.stats,audio:N,video:L,altAudio:!H&&M.some(function(W){return!!W.url})};this.hls.trigger(y.Events.MANIFEST_PARSED,D),(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"})},c.onError=function(E,v){if(d.prototype.onError.call(this,E,v),v.fatal)return;var R=v.context,M=this._levels[this.currentLevelIndex];if(R&&(R.type===f.PlaylistContextType.AUDIO_TRACK&&M.audioGroupIds&&R.groupId===M.audioGroupIds[M.urlId]||R.type===f.PlaylistContextType.SUBTITLE_TRACK&&M.textGroupIds&&R.groupId===M.textGroupIds[M.urlId])){this.redundantFailover(this.currentLevelIndex);return}var C=!1,S=!0,_;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 A=this._levels[v.frag.level];A?(A.fragmentError++,A.fragmentError>this.hls.config.fragLoadingMaxRetry&&(_=v.frag.level)):_=v.frag.level}break;case x.ErrorDetails.LEVEL_LOAD_ERROR:case x.ErrorDetails.LEVEL_LOAD_TIMEOUT:R&&(R.deliveryDirectives&&(S=!1),_=R.level),C=!0;break;case x.ErrorDetails.REMUX_ALLOC_ERROR:_=v.level,C=!0;break}_!==void 0&&this.recoverLevel(v,_,C,S)},c.recoverLevel=function(E,v,R,M){var C=E.details,S=this._levels[v];if(S.loadError++,R){var _=this.retryLoadingOrFail(E);if(_)E.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(M){var A=S.url.length;if(A>1&&S.loadError<A)E.levelRetry=!0,this.redundantFailover(v);else if(this.manualLevelIndex===-1){var U=v===0?this._levels.length-1:v-1;this.currentLevelIndex!==U&&this._levels[U].loadError===0&&(this.warn(C+": switch to "+U),E.levelRetry=!0,this.hls.nextAutoLevel=U)}}},c.redundantFailover=function(E){var v=this._levels[E],R=v.url.length;if(R>1){var M=(v.urlId+1)%R;this.warn("Switching to redundant URL-id "+M),this._levels.forEach(function(C){C.urlId=M}),this.level=E}},c.onFragLoaded=function(E,v){var R=v.frag;if(R!==void 0&&R.type===f.PlaylistLevelType.MAIN){var M=this._levels[R.level];M!==void 0&&(M.fragmentError=0,M.loadError=0)}},c.onLevelLoaded=function(E,v){var R,M=v.level,C=v.details,S=this._levels[M];if(!S){var _;this.warn("Invalid level index "+M),(_=v.deliveryDirectives)!==null&&_!==void 0&&_.skip&&(C.deltaUpdateFailed=!0);return}M===this.currentLevelIndex?(S.fragmentError===0&&(S.loadError=0,this.retryCount=0),this.playlistLoaded(M,v,S.details)):(R=v.deliveryDirectives)!==null&&R!==void 0&&R.skip&&(C.deltaUpdateFailed=!0)},c.onAudioTrackSwitched=function(E,v){var R=this.hls.levels[this.currentLevelIndex];if(!R)return;if(R.audioGroupIds){for(var M=-1,C=this.hls.audioTracks[v.id].groupId,S=0;S<R.audioGroupIds.length;S++)if(R.audioGroupIds[S]===C){M=S;break}M!==R.urlId&&(R.urlId=M,this.startLoad())}},c.loadPlaylist=function(E){var v=this.currentLevelIndex,R=this._levels[v];if(this.canLoad&&R&&R.url.length>0){var M=R.urlId,C=R.url[M];if(E)try{C=E.addDirectives(C)}catch(S){this.warn("Could not construct new URL with HLS Delivery Directives: "+S)}this.log("Attempt loading level index "+v+(E?" at sn "+E.msn+" part "+E.part:"")+" with URL-id "+M+" "+C),this.clearTimer(),this.hls.trigger(y.Events.LEVEL_LOADING,{url:C,level:v,id:M,deliveryDirectives:E||null})}},c.removeLevel=function(E,v){var R=function(S,_){return _!==v},M=this._levels.filter(function(C,S){return S!==E?!0:C.url.length>1&&v!==void 0?(C.url=C.url.filter(R),C.audioGroupIds&&(C.audioGroupIds=C.audioGroupIds.filter(R)),C.textGroupIds&&(C.textGroupIds=C.textGroupIds.filter(R)),C.urlId=0,!0):!1}).map(function(C,S){var _=C.details;return _!=null&&_.fragments&&_.fragments.forEach(function(A){A.level=S}),C});this._levels=M,this.hls.trigger(y.Events.LEVELS_UPDATED,{levels:M})},r(s,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(E){var v,R=this._levels;if(R.length===0)return;if(this.currentLevelIndex===E&&(v=R[E])!==null&&v!==void 0&&v.details)return;if(E<0||E>=R.length){var M=E<0;if(this.hls.trigger(y.Events.ERROR,{type:x.ErrorTypes.OTHER_ERROR,details:x.ErrorDetails.LEVEL_SWITCH_ERROR,level:E,fatal:M,reason:"invalid level idx"}),M)return;E=Math.min(E,R.length-1)}this.clearTimer();var C=this.currentLevelIndex,S=R[C],_=R[E];this.log("switching to level "+E+" from "+C),this.currentLevelIndex=E;var A=a({},_,{level:E,maxBitrate:_.maxBitrate,uri:_.uri,urlId:_.urlId});delete A._urlId,this.hls.trigger(y.Events.LEVEL_SWITCHING,A);var U=_.details;if(!U||U.live){var L=this.switchParams(_.uri,S==null?void 0:S.details);this.loadPlaylist(L)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(E){this.manualLevelIndex=E,this._startLevel===void 0&&(this._startLevel=E),E!==-1&&(this.level=E)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(E){this._firstLevel=E}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var E=this.hls.config.startLevel;return E!==void 0?E:this._firstLevel}else return this._startLevel},set:function(E){this._startLevel=E}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(E){this.level=E,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=E)}}]),s}(e.default)},"./src/controller/level-helper.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"addGroupId",function(){return x}),T.d(g,"assignTrackIdsByGroup",function(){return O}),T.d(g,"updatePTS",function(){return m}),T.d(g,"updateFragPTSDTS",function(){return f}),T.d(g,"mergeDetails",function(){return a}),T.d(g,"mapPartIntersection",function(){return u}),T.d(g,"mapFragmentIntersection",function(){return r}),T.d(g,"adjustSliding",function(){return i}),T.d(g,"addSliding",function(){return n}),T.d(g,"computeReloadInterval",function(){return l}),T.d(g,"getFragmentWithSN",function(){return h}),T.d(g,"getPartWith",function(){return d});var b=T("./src/polyfills/number.ts"),y=T("./src/utils/logger.ts");function x(s,c,w){switch(c){case"audio":s.audioGroupIds||(s.audioGroupIds=[]),s.audioGroupIds.push(w);break;case"text":s.textGroupIds||(s.textGroupIds=[]),s.textGroupIds.push(w);break}}function O(s){var c={};s.forEach(function(w){var E=w.groupId||"";w.id=c[E]=c[E]||0,c[E]++})}function m(s,c,w){var E=s[c],v=s[w];e(E,v)}function e(s,c){var w=c.startPTS;if(Object(b.isFiniteNumber)(w)){var E=0,v;c.sn>s.sn?(E=w-s.start,v=s):(E=s.start-w,v=c),v.duration!==E&&(v.duration=E)}else if(c.sn>s.sn){var R=s.cc===c.cc;R&&s.minEndPTS?c.start=s.start+(s.minEndPTS-s.start):c.start=s.start+s.duration}else c.start=Math.max(s.start-c.duration,0)}function f(s,c,w,E,v,R){var M=E-w;M<=0&&(y.logger.warn("Fragment should have a positive duration",c),E=w+c.duration,R=v+c.duration);var C=w,S=E,_=c.startPTS,A=c.endPTS;if(Object(b.isFiniteNumber)(_)){var U=Math.abs(_-w);Object(b.isFiniteNumber)(c.deltaPTS)?c.deltaPTS=Math.max(U,c.deltaPTS):c.deltaPTS=U,C=Math.max(w,_),w=Math.min(w,_),v=Math.min(v,c.startDTS),S=Math.min(E,A),E=Math.max(E,A),R=Math.max(R,c.endDTS)}c.duration=E-w;var L=w-c.start;c.appendedPTS=E,c.start=c.startPTS=w,c.maxStartPTS=C,c.startDTS=v,c.endPTS=E,c.minEndPTS=S,c.endDTS=R;var N=c.sn;if(!s||N<s.startSN||N>s.endSN)return 0;var V,H=N-s.startSN,D=s.fragments;for(D[H]=c,V=H;V>0;V--)e(D[V],D[V-1]);for(V=H;V<D.length-1;V++)e(D[V],D[V+1]);return s.fragmentHint&&e(D[D.length-1],s.fragmentHint),s.PTSKnown=s.alignedSliding=!0,L}function a(s,c){for(var w=null,E=s.fragments,v=E.length-1;v>=0;v--){var R=E[v].initSegment;if(R){w=R;break}}s.fragmentHint&&delete s.fragmentHint.endPTS;var M=0,C;if(r(s,c,function(V,H){V.relurl&&(M=V.cc-H.cc),Object(b.isFiniteNumber)(V.startPTS)&&Object(b.isFiniteNumber)(V.endPTS)&&(H.start=H.startPTS=V.startPTS,H.startDTS=V.startDTS,H.appendedPTS=V.appendedPTS,H.maxStartPTS=V.maxStartPTS,H.endPTS=V.endPTS,H.endDTS=V.endDTS,H.minEndPTS=V.minEndPTS,H.duration=V.endPTS-V.startPTS,H.duration&&(C=H),c.PTSKnown=c.alignedSliding=!0),H.elementaryStreams=V.elementaryStreams,H.loader=V.loader,H.stats=V.stats,H.urlId=V.urlId,V.initSegment&&(H.initSegment=V.initSegment,w=V.initSegment)}),w){var S=c.fragmentHint?c.fragments.concat(c.fragmentHint):c.fragments;S.forEach(function(V){var H;(!V.initSegment||V.initSegment.relurl===((H=w)===null||H===void 0?void 0:H.relurl))&&(V.initSegment=w)})}if(c.skippedSegments&&(c.deltaUpdateFailed=c.fragments.some(function(V){return!V}),c.deltaUpdateFailed)){y.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var _=c.skippedSegments;_--;)c.fragments.shift();c.startSN=c.fragments[0].sn,c.startCC=c.fragments[0].cc}var A=c.fragments;if(M){y.logger.warn("discontinuity sliding from playlist, take drift into account");for(var U=0;U<A.length;U++)A[U].cc+=M}c.skippedSegments&&(c.startCC=c.fragments[0].cc),u(s.partList,c.partList,function(V,H){H.elementaryStreams=V.elementaryStreams,H.stats=V.stats}),C?f(c,C,C.startPTS,C.endPTS,C.startDTS,C.endDTS):i(s,c),A.length&&(c.totalduration=c.edge-A[0].start),c.driftStartTime=s.driftStartTime,c.driftStart=s.driftStart;var L=c.advancedDateTime;if(c.advanced&&L){var N=c.edge;c.driftStart||(c.driftStartTime=L,c.driftStart=N),c.driftEndTime=L,c.driftEnd=N}else c.driftEndTime=s.driftEndTime,c.driftEnd=s.driftEnd,c.advancedDateTime=s.advancedDateTime}function u(s,c,w){if(s&&c)for(var E=0,v=0,R=s.length;v<=R;v++){var M=s[v],C=c[v+E];M&&C&&M.index===C.index&&M.fragment.sn===C.fragment.sn?w(M,C):E--}}function r(s,c,w){for(var E=c.skippedSegments,v=Math.max(s.startSN,c.startSN)-c.startSN,R=(s.fragmentHint?1:0)+(E?c.endSN:Math.min(s.endSN,c.endSN))-c.startSN,M=c.startSN-s.startSN,C=c.fragmentHint?c.fragments.concat(c.fragmentHint):c.fragments,S=s.fragmentHint?s.fragments.concat(s.fragmentHint):s.fragments,_=v;_<=R;_++){var A=S[M+_],U=C[_];E&&!U&&_<E&&(U=c.fragments[_]=A),A&&U&&w(A,U)}}function i(s,c){var w=c.startSN+c.skippedSegments-s.startSN,E=s.fragments;if(w<0||w>=E.length)return;n(c,E[w].start)}function n(s,c){if(c){for(var w=s.fragments,E=s.skippedSegments;E<w.length;E++)w[E].start+=c;s.fragmentHint&&(s.fragmentHint.start+=c)}}function l(s,c){var w=1e3*s.levelTargetDuration,E=w/2,v=s.age,R=v>0&&v<w*3,M=c.loading.end-c.loading.start,C,S=s.availabilityDelay;if(s.updated===!1)if(R){var _=333*s.misses;C=Math.max(Math.min(E,M*2),_),s.availabilityDelay=(s.availabilityDelay||0)+C}else C=E;else R?(S=Math.min(S||w/2,v),s.availabilityDelay=S,C=S+w-v):C=w-M;return Math.round(C)}function h(s,c,w){if(!s||!s.details)return null;var E=s.details,v=E.fragments[c-E.startSN];return v||(v=E.fragmentHint,v&&v.sn===c?v:c<E.startSN&&w&&w.sn===c?w:null)}function d(s,c,w){if(!s||!s.details)return null;var E=s.details.partList;if(E)for(var v=E.length;v--;){var R=E[v];if(R.index===w&&R.fragment.sn===c)return R}return null}},"./src/controller/stream-controller.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"default",function(){return E});var b=T("./src/polyfills/number.ts"),y=T("./src/controller/base-stream-controller.ts"),x=T("./src/is-supported.ts"),O=T("./src/events.ts"),m=T("./src/utils/buffer-helper.ts"),e=T("./src/controller/fragment-tracker.ts"),f=T("./src/types/loader.ts"),a=T("./src/loader/fragment.ts"),u=T("./src/demux/transmuxer-interface.ts"),r=T("./src/types/transmuxer.ts"),i=T("./src/controller/gap-controller.ts"),n=T("./src/errors.ts"),l=T("./src/utils/logger.ts");function h(v,R){for(var M=0;M<R.length;M++){var C=R[M];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(v,C.key,C)}}function d(v,R,M){return R&&h(v.prototype,R),M&&h(v,M),v}function s(v,R){v.prototype=Object.create(R.prototype),v.prototype.constructor=v,c(v,R)}function c(v,R){return c=Object.setPrototypeOf||function(C,S){return C.__proto__=S,C},c(v,R)}var w=100,E=function(v){s(R,v);function R(C,S){var _;return _=v.call(this,C,S,"[stream-controller]")||this,_.audioCodecSwap=!1,_.gapController=null,_.level=-1,_._forceStartLoad=!1,_.altAudio=!1,_.audioOnly=!1,_.fragPlaying=null,_.onvplaying=null,_.onvseeked=null,_.fragLastKbps=0,_.stalled=!1,_.couldBacktrack=!1,_.audioCodecSwitch=!1,_.videoBuffer=null,_._registerListeners(),_}var M=R.prototype;return M._registerListeners=function(){var S=this.hls;S.on(O.Events.MEDIA_ATTACHED,this.onMediaAttached,this),S.on(O.Events.MEDIA_DETACHING,this.onMediaDetaching,this),S.on(O.Events.MANIFEST_LOADING,this.onManifestLoading,this),S.on(O.Events.MANIFEST_PARSED,this.onManifestParsed,this),S.on(O.Events.LEVEL_LOADING,this.onLevelLoading,this),S.on(O.Events.LEVEL_LOADED,this.onLevelLoaded,this),S.on(O.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),S.on(O.Events.ERROR,this.onError,this),S.on(O.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),S.on(O.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),S.on(O.Events.BUFFER_CREATED,this.onBufferCreated,this),S.on(O.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),S.on(O.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),S.on(O.Events.FRAG_BUFFERED,this.onFragBuffered,this)},M._unregisterListeners=function(){var S=this.hls;S.off(O.Events.MEDIA_ATTACHED,this.onMediaAttached,this),S.off(O.Events.MEDIA_DETACHING,this.onMediaDetaching,this),S.off(O.Events.MANIFEST_LOADING,this.onManifestLoading,this),S.off(O.Events.MANIFEST_PARSED,this.onManifestParsed,this),S.off(O.Events.LEVEL_LOADED,this.onLevelLoaded,this),S.off(O.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),S.off(O.Events.ERROR,this.onError,this),S.off(O.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),S.off(O.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),S.off(O.Events.BUFFER_CREATED,this.onBufferCreated,this),S.off(O.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),S.off(O.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),S.off(O.Events.FRAG_BUFFERED,this.onFragBuffered,this)},M.onHandlerDestroying=function(){this._unregisterListeners(),this.onMediaDetaching()},M.startLoad=function(S){if(this.levels){var _=this.lastCurrentTime,A=this.hls;if(this.stopLoad(),this.setInterval(w),this.level=-1,this.fragLoadError=0,!this.startFragRequested){var U=A.startLevel;U===-1&&(A.config.testBandwidth?(U=0,this.bitrateTest=!0):U=A.nextAutoLevel),this.level=A.nextLoadLevel=U,this.loadedmetadata=!1}_>0&&S===-1&&(this.log("Override startPosition with lastCurrentTime @"+_.toFixed(3)),S=_),this.state=y.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=S,this.tick()}else this._forceStartLoad=!0,this.state=y.State.STOPPED},M.stopLoad=function(){this._forceStartLoad=!1,v.prototype.stopLoad.call(this)},M.doTick=function(){switch(this.state){case y.State.IDLE:this.doTickIdle();break;case y.State.WAITING_LEVEL:{var S,_=this.levels,A=this.level,U=_==null||((S=_[A])===null||S===void 0)?void 0:S.details;if(U&&(!U.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(U))break;this.state=y.State.IDLE;break}break}case y.State.FRAG_LOADING_WAITING_RETRY:{var L,N=self.performance.now(),V=this.retryDate;(!V||N>=V||(L=this.media)!==null&&L!==void 0&&L.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=y.State.IDLE)}break;default:break}this.onTickEnd()},M.onTickEnd=function(){v.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},M.doTickIdle=function(){var S,_,A=this.hls,U=this.levelLastLoaded,L=this.levels,N=this.media,V=A.config,H=A.nextLoadLevel;if(U===null||!N&&(this.startFragRequested||!V.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!L||!L[H])return;var D=L[H];this.level=A.nextLoadLevel=H;var W=D.details;if(!W||this.state===y.State.WAITING_LEVEL||W.live&&this.levelLastLoaded!==H){this.state=y.State.WAITING_LEVEL;return}var F=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:N,f.PlaylistLevelType.MAIN);if(F===null)return;var I=F.len,K=this.getMaxBufferLength(D.maxBitrate);if(I>=K)return;if(this._streamEnded(F,W)){var ee={};this.altAudio&&(ee.type="video"),this.hls.trigger(O.Events.BUFFER_EOS,ee),this.state=y.State.ENDED;return}var he=F.end,de=this.getNextFragment(he,W);if(this.couldBacktrack&&!this.fragPrevious&&de&&de.sn!=="initSegment"){var Se=de.sn-W.startSN;Se>1&&(de=W.fragments[Se-1],this.fragmentTracker.removeFragment(de))}if(de&&this.fragmentTracker.getState(de)===e.FragmentState.OK&&this.nextLoadPosition>he){var Te=this.audioOnly&&!this.altAudio?a.ElementaryStreamTypes.AUDIO:a.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(N,Te,f.PlaylistLevelType.MAIN),de=this.getNextFragment(this.nextLoadPosition,W)}if(!de)return;de.initSegment&&!de.initSegment.data&&!this.bitrateTest&&(de=de.initSegment),((S=de.decryptdata)===null||S===void 0?void 0:S.keyFormat)==="identity"&&!((_=de.decryptdata)!==null&&_!==void 0&&_.key)?this.loadKey(de,W):this.loadFragment(de,W,he)},M.loadFragment=function(S,_,A){var U,L=this.fragmentTracker.getState(S);if(this.fragCurrent=S,L===e.FragmentState.BACKTRACKED){var N=this.fragmentTracker.getBacktrackData(S);if(N){this._handleFragmentLoadProgress(N),this._handleFragmentLoadComplete(N);return}else L=e.FragmentState.NOT_LOADED}L===e.FragmentState.NOT_LOADED||L===e.FragmentState.PARTIAL?S.sn==="initSegment"?this._loadInitSegment(S):this.bitrateTest?(S.bitrateTest=!0,this.log("Fragment "+S.sn+" of level "+S.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(S)):(this.startFragRequested=!0,v.prototype.loadFragment.call(this,S,_,A)):L===e.FragmentState.APPENDING?this.reduceMaxBufferLength(S.duration)&&this.fragmentTracker.removeFragment(S):((U=this.media)===null||U===void 0?void 0:U.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},M.getAppendedFrag=function(S){var _=this.fragmentTracker.getAppendedFrag(S,f.PlaylistLevelType.MAIN);return _&&"fragment"in _?_.fragment:_},M.getBufferedFrag=function(S){return this.fragmentTracker.getBufferedFrag(S,f.PlaylistLevelType.MAIN)},M.followingBufferedFrag=function(S){return S?this.getBufferedFrag(S.end+.5):null},M.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},M.nextLevelSwitch=function(){var S=this.levels,_=this.media;if(_!=null&&_.readyState){var A,U=this.getAppendedFrag(_.currentTime);if(U&&U.start>1&&this.flushMainBuffer(0,U.start-1),!_.paused&&S){var L=this.hls.nextLoadLevel,N=S[L],V=this.fragLastKbps;V&&this.fragCurrent?A=this.fragCurrent.duration*N.maxBitrate/(1e3*V)+1:A=0}else A=0;var H=this.getBufferedFrag(_.currentTime+A);if(H){var D=this.followingBufferedFrag(H);if(D){this.abortCurrentFrag();var W=D.maxStartPTS?D.maxStartPTS:D.start,F=D.duration,I=Math.max(H.end,W+Math.min(Math.max(F-this.config.maxFragLookUpTolerance,F*.5),F*.75));this.flushMainBuffer(I,Number.POSITIVE_INFINITY)}}}},M.abortCurrentFrag=function(){var S=this.fragCurrent;this.fragCurrent=null,S!=null&&S.loader&&S.loader.abort(),this.state===y.State.KEY_LOADING&&(this.state=y.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},M.flushMainBuffer=function(S,_){v.prototype.flushMainBuffer.call(this,S,_,this.altAudio?"video":null)},M.onMediaAttached=function(S,_){v.prototype.onMediaAttached.call(this,S,_);var A=_.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),A.addEventListener("playing",this.onvplaying),A.addEventListener("seeked",this.onvseeked),this.gapController=new i.default(this.config,A,this.fragmentTracker,this.hls)},M.onMediaDetaching=function(){var S=this.media;S&&(S.removeEventListener("playing",this.onvplaying),S.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)},M.onMediaPlaying=function(){this.tick()},M.onMediaSeeked=function(){var S=this.media,_=S?S.currentTime:null;Object(b.isFiniteNumber)(_)&&this.log("Media seeked to "+_.toFixed(3)),this.tick()},M.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(O.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},M.onManifestParsed=function(S,_){var A=!1,U=!1,L;_.levels.forEach(function(N){L=N.audioCodec,L&&(L.indexOf("mp4a.40.2")!==-1&&(A=!0),L.indexOf("mp4a.40.5")!==-1&&(U=!0))}),this.audioCodecSwitch=A&&U&&!Object(x.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=_.levels,this.startFragRequested=!1},M.onLevelLoading=function(S,_){var A=this.levels;if(!A||this.state!==y.State.IDLE)return;var U=A[_.level];(!U.details||U.details.live&&this.levelLastLoaded!==_.level||this.waitForCdnTuneIn(U.details))&&(this.state=y.State.WAITING_LEVEL)},M.onLevelLoaded=function(S,_){var A,U=this.levels,L=_.level,N=_.details,V=N.totalduration;if(!U){this.warn("Levels were reset while loading level "+L);return}this.log("Level "+L+" loaded ["+N.startSN+","+N.endSN+"], cc ["+N.startCC+", "+N.endCC+"] duration:"+V);var H=this.fragCurrent;H&&(this.state===y.State.FRAG_LOADING||this.state===y.State.FRAG_LOADING_WAITING_RETRY)&&(H.level!==_.level&&H.loader&&(this.state=y.State.IDLE,H.loader.abort()));var D=U[L],W=0;if(N.live||(A=D.details)!==null&&A!==void 0&&A.live){if(N.fragments[0]||(N.deltaUpdateFailed=!0),N.deltaUpdateFailed)return;W=this.alignPlaylists(N,D.details)}if(D.details=N,this.levelLastLoaded=L,this.hls.trigger(O.Events.LEVEL_UPDATED,{details:N,level:L}),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,W),this.tick()},M._handleFragmentLoadProgress=function(S){var _,A=S.frag,U=S.part,L=S.payload,N=this.levels;if(!N){this.warn("Levels were reset while fragment load was in progress. Fragment "+A.sn+" of level "+A.level+" will not be buffered");return}var V=N[A.level],H=V.details;if(!H){this.warn("Dropping fragment "+A.sn+" of level "+A.level+" after level details were reset");return}var D=V.videoCodec,W=H.PTSKnown||!H.live,F=(_=A.initSegment)===null||_===void 0?void 0:_.data,I=this._getAudioCodec(V),K=this.transmuxer=this.transmuxer||new u.default(this.hls,f.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),ee=U?U.index:-1,he=ee!==-1,de=new r.ChunkMetadata(A.level,A.sn,A.stats.chunkCount,L.byteLength,ee,he),Se=this.initPTS[A.cc];K.push(L,F,I,D,A,U,H.totalduration,W,de,Se)},M.onAudioTrackSwitching=function(S,_){var A=this.altAudio,U=!!_.url,L=_.id;if(!U){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 V=this.hls;A&&V.trigger(O.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),V.trigger(O.Events.AUDIO_TRACK_SWITCHED,{id:L})}},M.onAudioTrackSwitched=function(S,_){var A=_.id,U=!!this.hls.audioTracks[A].url;if(U){var L=this.videoBuffer;L&&this.mediaBuffer!==L&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=L)}this.altAudio=U,this.tick()},M.onBufferCreated=function(S,_){var A=_.tracks,U,L,N=!1;for(var V in A){var H=A[V];if(H.id==="main"){if(L=V,U=H,V==="video"){var D=A[V];D&&(this.videoBuffer=D.buffer)}}else N=!0}N&&U?(this.log("Alternate track found, use "+L+".buffered to schedule main fragment loading"),this.mediaBuffer=U.buffer):this.mediaBuffer=this.media},M.onFragBuffered=function(S,_){var A=_.frag,U=_.part;if(A&&A.type!==f.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(A)){this.warn("Fragment "+A.sn+(U?" p: "+U.index:"")+" of level "+A.level+" finished buffering, but was aborted. state: "+this.state),this.state===y.State.PARSED&&(this.state=y.State.IDLE);return}var L=U?U.stats:A.stats;this.fragLastKbps=Math.round(8*L.total/(L.buffering.end-L.loading.first)),A.sn!=="initSegment"&&(this.fragPrevious=A),this.fragBufferedComplete(A,U)},M.onError=function(S,_){switch(_.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(f.PlaylistLevelType.MAIN,_);break;case n.ErrorDetails.LEVEL_LOAD_ERROR:case n.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==y.State.ERROR&&(_.fatal?(this.warn(""+_.details),this.state=y.State.ERROR):!_.levelRetry&&this.state===y.State.WAITING_LEVEL&&(this.state=y.State.IDLE));break;case n.ErrorDetails.BUFFER_FULL_ERROR:if(_.parent==="main"&&(this.state===y.State.PARSING||this.state===y.State.PARSED)){var A=!0,U=this.getFwdBufferInfo(this.media,f.PlaylistLevelType.MAIN);U&&U.len>.5&&(A=!this.reduceMaxBufferLength(U.len)),A&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},M.checkBuffer=function(){var S=this.media,_=this.gapController;if(!S||!_||!S.readyState)return;var A=m.BufferHelper.getBuffered(S);!this.loadedmetadata&&A.length?(this.loadedmetadata=!0,this.seekToStartPos()):_.poll(this.lastCurrentTime),this.lastCurrentTime=S.currentTime},M.onFragLoadEmergencyAborted=function(){this.state=y.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},M.onBufferFlushed=function(S,_){var A=_.type;if(A!==a.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var U=(A===a.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(U,A,f.PlaylistLevelType.MAIN)}},M.onLevelsUpdated=function(S,_){this.levels=_.levels},M.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},M.seekToStartPos=function(){var S=this.media,_=S.currentTime,A=this.startPosition;if(A>=0&&_<A){if(S.seeking){l.logger.log("could not seek to "+A+", already seeking at "+_);return}var U=m.BufferHelper.getBuffered(S),L=U.length?U.start(0):0,N=L-A;N>0&&(N<this.config.maxBufferHole||N<this.config.maxFragLookUpTolerance)&&(l.logger.log("adjusting start position by "+N+" to match buffer start"),A+=N,this.startPosition=A),this.log("seek to target start position "+A+" from current time "+_),S.currentTime=A}},M._getAudioCodec=function(S){var _=this.config.defaultAudioCodec||S.audioCodec;return this.audioCodecSwap&&_&&(this.log("Swapping audio codec"),_.indexOf("mp4a.40.5")!==-1?_="mp4a.40.2":_="mp4a.40.5"),_},M._loadBitrateTestFrag=function(S){var _=this;this._doFragLoad(S).then(function(A){var U=_.hls;if(!A||U.nextLoadLevel||_.fragContextChanged(S))return;_.fragLoadError=0,_.state=y.State.IDLE,_.startFragRequested=!1,_.bitrateTest=!1;var L=S.stats;L.parsing.start=L.parsing.end=L.buffering.start=L.buffering.end=self.performance.now(),U.trigger(O.Events.FRAG_LOADED,A)})},M._handleTransmuxComplete=function(S){var _,A="main",U=this.hls,L=S.remuxResult,N=S.chunkMeta,V=this.getCurrentContext(N);if(!V){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 H=V.frag,D=V.part,W=V.level,F=L.video,I=L.text,K=L.id3,ee=L.initSegment,he=this.altAudio?void 0:L.audio;if(this.fragContextChanged(H))return;if(this.state=y.State.PARSING,ee){ee.tracks&&(this._bufferInitSegment(W,ee.tracks,H,N),U.trigger(O.Events.FRAG_PARSING_INIT_SEGMENT,{frag:H,id:A,tracks:ee.tracks}));var de=ee.initPTS,Se=ee.timescale;Object(b.isFiniteNumber)(de)&&(this.initPTS[H.cc]=de,U.trigger(O.Events.INIT_PTS_FOUND,{frag:H,id:A,initPTS:de,timescale:Se}))}if(F&&L.independent!==!1){if(W.details){var Te=F.startPTS,ce=F.endPTS,be=F.startDTS,Ee=F.endDTS;if(D)D.elementaryStreams[F.type]={startPTS:Te,endPTS:ce,startDTS:be,endDTS:Ee};else if(F.firstKeyFrame&&F.independent&&(this.couldBacktrack=!0),F.dropped&&F.independent){var ue=this.getLoadPosition()+this.config.maxBufferHole;if(ue<Te){this.backtrack(H);return}H.setElementaryStreamInfo(F.type,H.start,ce,H.start,Ee,!0)}H.setElementaryStreamInfo(F.type,Te,ce,be,Ee),this.bufferFragmentData(F,H,D,N)}}else if(L.independent===!1){this.backtrack(H);return}if(he){var le=he.startPTS,$=he.endPTS,me=he.startDTS,re=he.endDTS;D&&(D.elementaryStreams[a.ElementaryStreamTypes.AUDIO]={startPTS:le,endPTS:$,startDTS:me,endDTS:re}),H.setElementaryStreamInfo(a.ElementaryStreamTypes.AUDIO,le,$,me,re),this.bufferFragmentData(he,H,D,N)}if(K!=null&&(_=K.samples)!==null&&_!==void 0&&_.length){var ae={frag:H,id:A,samples:K.samples};U.trigger(O.Events.FRAG_PARSING_METADATA,ae)}if(I){var Oe={frag:H,id:A,samples:I.samples};U.trigger(O.Events.FRAG_PARSING_USERDATA,Oe)}},M._bufferInitSegment=function(S,_,A,U){var L=this;if(this.state!==y.State.PARSING)return;this.audioOnly=!!_.audio&&!_.video,this.altAudio&&!this.audioOnly&&delete _.audio;var N=_.audio,V=_.video,H=_.audiovideo;if(N){var D=S.audioCodec,W=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(D&&(D.indexOf("mp4a.40.5")!==-1?D="mp4a.40.2":D="mp4a.40.5"),N.metadata.channelCount!==1&&W.indexOf("firefox")===-1&&(D="mp4a.40.5")),W.indexOf("android")!==-1&&N.container!=="audio/mpeg"&&(D="mp4a.40.2",this.log("Android: force audio codec to "+D)),S.audioCodec&&S.audioCodec!==D&&this.log('Swapping manifest audio codec "'+S.audioCodec+'" for "'+D+'"'),N.levelCodec=D,N.id="main",this.log("Init audio buffer, container:"+N.container+", codecs[selected/level/parsed]=["+(D||"")+"/"+(S.audioCodec||"")+"/"+N.codec+"]")}V&&(V.levelCodec=S.videoCodec,V.id="main",this.log("Init video buffer, container:"+V.container+", codecs[level/parsed]=["+(S.videoCodec||"")+"/"+V.codec+"]")),H&&this.log("Init audiovideo buffer, container:"+H.container+", codecs[level/parsed]=["+(S.attrs.CODECS||"")+"/"+H.codec+"]"),this.hls.trigger(O.Events.BUFFER_CODECS,_),Object.keys(_).forEach(function(F){var I=_[F],K=I.initSegment;K!=null&&K.byteLength&&L.hls.trigger(O.Events.BUFFER_APPENDING,{type:F,data:K,frag:A,part:null,chunkMeta:U,parent:A.type})}),this.tick()},M.backtrack=function(S){this.couldBacktrack=!0,this.resetTransmuxer(),this.flushBufferGap(S);var _=this.fragmentTracker.backtrack(S);this.fragPrevious=null,this.nextLoadPosition=S.start,_?this.resetFragmentLoading(S):this.state=y.State.BACKTRACKING},M.checkFragmentChanged=function(){var S=this.media,_=null;if(S&&S.readyState>1&&S.seeking===!1){var A=S.currentTime;if(m.BufferHelper.isBuffered(S,A)?_=this.getAppendedFrag(A):m.BufferHelper.isBuffered(S,A+.1)&&(_=this.getAppendedFrag(A+.1)),_){var U=this.fragPlaying,L=_.level;(!U||_.sn!==U.sn||U.level!==L||_.urlId!==U.urlId)&&(this.hls.trigger(O.Events.FRAG_CHANGED,{frag:_}),(!U||U.level!==L)&&this.hls.trigger(O.Events.LEVEL_SWITCHED,{level:L}),this.fragPlaying=_)}}},d(R,[{key:"nextLevel",get:function(){var S=this.nextBufferedFrag;return S?S.level:-1}},{key:"currentLevel",get:function(){var S=this.media;if(S){var _=this.getAppendedFrag(S.currentTime);if(_)return _.level}return-1}},{key:"nextBufferedFrag",get:function(){var S=this.media;if(S){var _=this.getAppendedFrag(S.currentTime);return this.followingBufferedFrag(_)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),R}(y.default)},"./src/controller/subtitle-stream-controller.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"SubtitleStreamController",function(){return s});var b=T("./src/events.ts"),y=T("./src/utils/logger.ts"),x=T("./src/utils/buffer-helper.ts"),O=T("./src/controller/fragment-finders.ts"),m=T("./src/utils/discontinuities.ts"),e=T("./src/controller/level-helper.ts"),f=T("./src/controller/fragment-tracker.ts"),a=T("./src/controller/base-stream-controller.ts"),u=T("./src/types/loader.ts"),r=T("./src/types/level.ts");function i(c,w){for(var E=0;E<w.length;E++){var v=w[E];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(c,v.key,v)}}function n(c,w,E){return w&&i(c.prototype,w),E&&i(c,E),c}function l(c,w){c.prototype=Object.create(w.prototype),c.prototype.constructor=c,h(c,w)}function h(c,w){return h=Object.setPrototypeOf||function(v,R){return v.__proto__=R,v},h(c,w)}var d=500,s=function(c){l(w,c);function w(v,R){var M;return M=c.call(this,v,R,"[subtitle-stream-controller]")||this,M.levels=[],M.currentTrackId=-1,M.tracksBuffered=[],M.mainDetails=null,M._registerListeners(),M}var E=w.prototype;return E.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},E._registerListeners=function(){var R=this.hls;R.on(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),R.on(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),R.on(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),R.on(b.Events.LEVEL_LOADED,this.onLevelLoaded,this),R.on(b.Events.ERROR,this.onError,this),R.on(b.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),R.on(b.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),R.on(b.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),R.on(b.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),R.on(b.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},E._unregisterListeners=function(){var R=this.hls;R.off(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),R.off(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),R.off(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),R.off(b.Events.LEVEL_LOADED,this.onLevelLoaded,this),R.off(b.Events.ERROR,this.onError,this),R.off(b.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),R.off(b.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),R.off(b.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),R.off(b.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),R.off(b.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},E.startLoad=function(){this.stopLoad(),this.state=a.State.IDLE,this.setInterval(d),this.tick()},E.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()},E.onLevelLoaded=function(R,M){this.mainDetails=M.details},E.onSubtitleFragProcessed=function(R,M){var C=M.frag,S=M.success;if(this.fragPrevious=C,this.state=a.State.IDLE,!S)return;var _=this.tracksBuffered[this.currentTrackId];if(!_)return;for(var A,U=C.start,L=0;L<_.length;L++)if(U>=_[L].start&&U<=_[L].end){A=_[L];break}var N=C.start+C.duration;A?A.end=N:(A={start:U,end:N},_.push(A)),this.fragmentTracker.fragBuffered(C)},E.onBufferFlushing=function(R,M){var C=M.startOffset,S=M.endOffset;if(C===0&&S!==Number.POSITIVE_INFINITY){var _=this.currentTrackId,A=this.levels;if(!A.length||!A[_]||!A[_].details)return;var U=A[_].details,L=U.targetduration,N=S-L;if(N<=0)return;M.endOffsetSubtitles=Math.max(0,N),this.tracksBuffered.forEach(function(V){for(var H=0;H<V.length;){if(V[H].end<=N){V.shift();continue}else if(V[H].start<N)V[H].start=N;else break;H++}}),this.fragmentTracker.removeFragmentsInRange(C,N,u.PlaylistLevelType.SUBTITLE)}},E.onError=function(R,M){var C,S=M.frag;if(!S||S.type!==u.PlaylistLevelType.SUBTITLE)return;(C=this.fragCurrent)!==null&&C!==void 0&&C.loader&&this.fragCurrent.loader.abort(),this.state=a.State.IDLE},E.onSubtitleTracksUpdated=function(R,M){var C=this,S=M.subtitleTracks;this.tracksBuffered=[],this.levels=S.map(function(_){return new r.Level(_)}),this.fragmentTracker.removeAllFragments(),this.fragPrevious=null,this.levels.forEach(function(_){C.tracksBuffered[_.id]=[]}),this.mediaBuffer=null},E.onSubtitleTrackSwitch=function(R,M){if(this.currentTrackId=M.id,!this.levels.length||this.currentTrackId===-1){this.clearInterval();return}var C=this.levels[this.currentTrackId];C!=null&&C.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,C&&this.setInterval(d)},E.onSubtitleTrackLoaded=function(R,M){var C,S=M.details,_=M.id,A=this.currentTrackId,U=this.levels;if(!U.length)return;var L=U[A];if(_>=U.length||_!==A||!L)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,S.live||(C=L.details)!==null&&C!==void 0&&C.live){var N=this.mainDetails;if(S.deltaUpdateFailed||!N)return;var V=N.fragments[0];if(!L.details)S.hasProgramDateTime&&N.hasProgramDateTime?Object(m.alignMediaPlaylistByPDT)(S,N):V&&Object(e.addSliding)(S,V.start);else{var H=this.alignPlaylists(S,L.details);H===0&&V&&Object(e.addSliding)(S,V.start)}}if(L.details=S,this.levelLastLoaded=_,this.tick(),S.live&&!this.fragCurrent&&this.media&&this.state===a.State.IDLE){var D=Object(O.findFragmentByPTS)(null,S.fragments,this.media.currentTime,0);D||(this.warn("Subtitle playlist not aligned with playback"),L.details=void 0)}},E._handleFragmentLoadComplete=function(R){var M=R.frag,C=R.payload,S=M.decryptdata,_=this.hls;if(this.fragContextChanged(M))return;if(C&&C.byteLength>0&&S&&S.key&&S.iv&&S.method==="AES-128"){var A=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(C),S.key.buffer,S.iv.buffer).then(function(U){var L=performance.now();_.trigger(b.Events.FRAG_DECRYPTED,{frag:M,payload:U,stats:{tstart:A,tdecrypt:L}})})}},E.doTick=function(){if(!this.media){this.state=a.State.IDLE;return}if(this.state===a.State.IDLE){var R,M=this.currentTrackId,C=this.levels;if(!C.length||!C[M]||!C[M].details)return;var S=C[M].details,_=S.targetduration,A=this.config,U=this.media,L=x.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,U.currentTime-_,A.maxBufferHole),N=L.end,V=L.len,H=this.getMaxBufferLength()+_;if(V>H)return;console.assert(S,"Subtitle track details are defined on idle subtitle stream controller tick");var D=S.fragments,W=D.length,F=S.edge,I,K=this.fragPrevious;if(N<F){var ee=A.maxFragLookUpTolerance;K&&S.hasProgramDateTime&&(I=Object(O.findFragmentByPDT)(D,K.endProgramDateTime,ee)),I||(I=Object(O.findFragmentByPTS)(K,D,N,ee),!I&&K&&K.start<D[0].start&&(I=D[0]))}else I=D[W-1];(R=I)!==null&&R!==void 0&&R.encrypted?(y.logger.log("Loading key for "+I.sn),this.state=a.State.KEY_LOADING,this.hls.trigger(b.Events.KEY_LOADING,{frag:I})):I&&this.fragmentTracker.getState(I)===f.FragmentState.NOT_LOADED&&this.loadFragment(I,S,N)}},E.loadFragment=function(R,M,C){this.fragCurrent=R,c.prototype.loadFragment.call(this,R,M,C)},n(w,[{key:"mediaBufferTimeRanges",get:function(){return this.tracksBuffered[this.currentTrackId]||[]}}]),w}(a.default)},"./src/controller/subtitle-track-controller.ts":function(P,g,T){"use strict";T.r(g);var b=T("./src/events.ts"),y=T("./src/utils/texttrack-utils.ts"),x=T("./src/controller/base-playlist-controller.ts"),O=T("./src/types/loader.ts");function m(i,n){for(var l=0;l<n.length;l++){var h=n[l];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(i,h.key,h)}}function e(i,n,l){return n&&m(i.prototype,n),l&&m(i,l),i}function f(i,n){i.prototype=Object.create(n.prototype),i.prototype.constructor=i,a(i,n)}function a(i,n){return a=Object.setPrototypeOf||function(h,d){return h.__proto__=d,h},a(i,n)}var u=function(i){f(n,i);function n(h){var d;return d=i.call(this,h,"[subtitle-track-controller]")||this,d.media=null,d.tracks=[],d.groupId=null,d.tracksInGroup=[],d.trackId=-1,d.selectDefaultTrack=!0,d.queuedDefaultTrack=-1,d.trackChangeListener=function(){return d.onTextTracksChanged()},d.asyncPollTrackChange=function(){return d.pollTrackChange(0)},d.useTextTrackPolling=!1,d.subtitlePollingInterval=-1,d.subtitleDisplay=!0,d.registerListeners(),d}var l=n.prototype;return l.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.trackChangeListener=this.asyncPollTrackChange=null,i.prototype.destroy.call(this)},l.registerListeners=function(){var d=this.hls;d.on(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),d.on(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),d.on(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),d.on(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),d.on(b.Events.LEVEL_LOADING,this.onLevelLoading,this),d.on(b.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),d.on(b.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),d.on(b.Events.ERROR,this.onError,this)},l.unregisterListeners=function(){var d=this.hls;d.off(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),d.off(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),d.off(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),d.off(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),d.off(b.Events.LEVEL_LOADING,this.onLevelLoading,this),d.off(b.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),d.off(b.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),d.off(b.Events.ERROR,this.onError,this)},l.onMediaAttached=function(d,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)},l.pollTrackChange=function(d){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,d)},l.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 d=r(this.media.textTracks);d.forEach(function(s){Object(y.clearCurrentCues)(s)}),this.subtitleTrack=-1,this.media=null},l.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},l.onManifestParsed=function(d,s){this.tracks=s.subtitleTracks},l.onSubtitleTrackLoaded=function(d,s){var c=s.id,w=s.details,E=this.trackId,v=this.tracksInGroup[E];if(!v){this.warn("Invalid subtitle track id "+c);return}var R=v.details;v.details=s.details,this.log("subtitle track "+c+" loaded ["+w.startSN+"-"+w.endSN+"]"),c===this.trackId&&(this.retryCount=0,this.playlistLoaded(c,s,R))},l.onLevelLoading=function(d,s){this.switchLevel(s.level)},l.onLevelSwitching=function(d,s){this.switchLevel(s.level)},l.switchLevel=function(d){var s=this.hls.levels[d];if(!(s!=null&&s.textGroupIds))return;var c=s.textGroupIds[s.urlId];if(this.groupId!==c){var w=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,E=this.tracks.filter(function(M){return!c||M.groupId===c});this.tracksInGroup=E;var v=this.findTrackId(w==null?void 0:w.name)||this.findTrackId();this.groupId=c;var R={subtitleTracks:E};this.log("Updating subtitle tracks, "+E.length+' track(s) found in "'+c+'" group-id'),this.hls.trigger(b.Events.SUBTITLE_TRACKS_UPDATED,R),v!==-1&&this.setSubtitleTrack(v,w)}},l.findTrackId=function(d){for(var s=this.tracksInGroup,c=0;c<s.length;c++){var w=s[c];if((!this.selectDefaultTrack||w.default)&&(!d||d===w.name))return w.id}return-1},l.onError=function(d,s){if(i.prototype.onError.call(this,d,s),s.fatal||!s.context)return;s.context.type===O.PlaylistContextType.SUBTITLE_TRACK&&s.context.id===this.trackId&&s.context.groupId===this.groupId&&this.retryLoadingOrFail(s)},l.loadPlaylist=function(d){var s=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(s)){var c=s.id,w=s.groupId,E=s.url;if(d)try{E=d.addDirectives(E)}catch(v){this.warn("Could not construct new URL with HLS Delivery Directives: "+v)}this.log("Loading subtitle playlist for id "+c),this.hls.trigger(b.Events.SUBTITLE_TRACK_LOADING,{url:E,id:c,groupId:w,deliveryDirectives:d||null})}},l.toggleTrackModes=function(d){var s=this,c=this.media,w=this.subtitleDisplay,E=this.trackId;if(!c)return;var v=r(c.textTracks),R=v.filter(function(S){return S.groupId===s.groupId});if(d===-1)[].slice.call(v).forEach(function(S){S.mode="disabled"});else{var M=R[E];M&&(M.mode="disabled")}var C=R[d];C&&(C.mode=w?"showing":"hidden")},l.setSubtitleTrack=function(d,s){var c,w=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=d;return}if(this.trackId!==d&&this.toggleTrackModes(d),this.trackId===d&&(d===-1||(c=w[d])!==null&&c!==void 0&&c.details)||d<-1||d>=w.length)return;this.clearTimer();var E=w[d];if(this.log("Switching to subtitle track "+d),this.trackId=d,E){var v=E.id,R=E.groupId,M=R===void 0?"":R,C=E.name,S=E.type,_=E.url;this.hls.trigger(b.Events.SUBTITLE_TRACK_SWITCH,{id:v,groupId:M,name:C,type:S,url:_});var A=this.switchParams(E.url,s==null?void 0:s.details);this.loadPlaylist(A)}else this.hls.trigger(b.Events.SUBTITLE_TRACK_SWITCH,{id:d})},l.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var d=-1,s=r(this.media.textTracks),c=0;c<s.length;c++)if(s[c].mode==="hidden")d=c;else if(s[c].mode==="showing"){d=c;break}this.subtitleTrack!==d&&(this.subtitleTrack=d)},e(n,[{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(d){this.selectDefaultTrack=!1;var s=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;this.setSubtitleTrack(d,s)}}]),n}(x.default);function r(i){for(var n=[],l=0;l<i.length;l++){var h=i[l];h.kind==="subtitles"&&h.label&&n.push(i[l])}return n}g.default=u},"./src/controller/timeline-controller.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"TimelineController",function(){return r});var b=T("./src/polyfills/number.ts"),y=T("./src/events.ts"),x=T("./src/utils/cea-608-parser.ts"),O=T("./src/utils/output-filter.ts"),m=T("./src/utils/webvtt-parser.ts"),e=T("./src/utils/texttrack-utils.ts"),f=T("./src/utils/imsc1-ttml-parser.ts"),a=T("./src/types/loader.ts"),u=T("./src/utils/logger.ts"),r=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=l(),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 c=new O.default(this,"textTrack1"),w=new O.default(this,"textTrack2"),E=new O.default(this,"textTrack3"),v=new O.default(this,"textTrack4");this.cea608Parser1=new x.default(1,c,w),this.cea608Parser2=new x.default(3,E,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 d=h.prototype;return d.destroy=function(){var c=this.hls;c.off(y.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),c.off(y.Events.MEDIA_DETACHING,this.onMediaDetaching,this),c.off(y.Events.MANIFEST_LOADING,this.onManifestLoading,this),c.off(y.Events.MANIFEST_LOADED,this.onManifestLoaded,this),c.off(y.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),c.off(y.Events.FRAG_LOADING,this.onFragLoading,this),c.off(y.Events.FRAG_LOADED,this.onFragLoaded,this),c.off(y.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),c.off(y.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),c.off(y.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),c.off(y.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),c.off(y.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null},d.addCues=function(c,w,E,v,R){for(var M=!1,C=R.length;C--;){var S=R[C],_=n(S[0],S[1],w,E);if(_>=0&&(S[0]=Math.min(S[0],w),S[1]=Math.max(S[1],E),M=!0,_/(E-w)>.5))return}if(M||R.push([w,E]),this.config.renderTextTracksNatively){var A=this.captionsTracks[c];this.Cues.newCue(A,w,E,v)}else{var U=this.Cues.newCue(null,w,E,v);this.hls.trigger(y.Events.CUES_PARSED,{type:"captions",cues:U,track:c})}},d.onInitPtsFound=function(c,w){var E=this,v=w.frag,R=w.id,M=w.initPTS,C=w.timescale,S=this.unparsedVttFrags;R==="main"&&(this.initPTS[v.cc]=M,this.timescale[v.cc]=C),S.length&&(this.unparsedVttFrags=[],S.forEach(function(_){E.onFragLoaded(y.Events.FRAG_LOADED,_)}))},d.getExistingTrack=function(c){var w=this.media;if(w)for(var E=0;E<w.textTracks.length;E++){var v=w.textTracks[E];if(v[c])return v}return null},d.createCaptionsTrack=function(c){this.config.renderTextTracksNatively?this.createNativeTrack(c):this.createNonNativeTrack(c)},d.createNativeTrack=function(c){if(this.captionsTracks[c])return;var w=this.captionsProperties,E=this.captionsTracks,v=this.media,R=w[c],M=R.label,C=R.languageCode,S=this.getExistingTrack(c);if(S)E[c]=S,Object(e.clearCurrentCues)(E[c]),Object(e.sendAddTrackEvent)(E[c],v);else{var _=this.createTextTrack("captions",M,C);_&&(_[c]=!0,E[c]=_)}},d.createNonNativeTrack=function(c){if(this.nonNativeCaptionsTracks[c])return;var w=this.captionsProperties[c];if(!w)return;var E=w.label,v={_id:c,label:E,kind:"captions",default:w.media?!!w.media.default:!1,closedCaptions:w.media};this.nonNativeCaptionsTracks[c]=v,this.hls.trigger(y.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[v]})},d.createTextTrack=function(c,w,E){var v=this.media;return v?v.addTextTrack(c,w,E):void 0},d.onMediaAttaching=function(c,w){this.media=w.media,this._cleanTracks()},d.onMediaDetaching=function(){var c=this.captionsTracks;Object.keys(c).forEach(function(w){Object(e.clearCurrentCues)(c[w]),delete c[w]}),this.nonNativeCaptionsTracks={}},d.onManifestLoading=function(){this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=l(),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())},d._cleanTracks=function(){var c=this.media;if(!c)return;var w=c.textTracks;if(w)for(var E=0;E<w.length;E++)Object(e.clearCurrentCues)(w[E])},d.onSubtitleTracksUpdated=function(c,w){var E=this;this.textTracks=[];var v=w.subtitleTracks||[],R=v.some(function(_){return _.textCodec===f.IMSC1_CODEC});if(this.config.enableWebVTT||R&&this.config.enableIMSC1){var M=this.tracks&&v&&this.tracks.length===v.length;if(this.tracks=v||[],this.config.renderTextTracksNatively){var C=this.media?this.media.textTracks:[];this.tracks.forEach(function(_,A){var U;if(A<C.length){for(var L=null,N=0;N<C.length;N++)if(i(C[N],_)){L=C[N];break}L&&(U=L)}U?Object(e.clearCurrentCues)(U):(U=E.createTextTrack("subtitles",_.name,_.lang),U&&(U.mode="disabled")),U&&(U.groupId=_.groupId,E.textTracks.push(U))})}else if(!M&&this.tracks&&this.tracks.length){var S=this.tracks.map(function(_){return{label:_.name,kind:_.type.toLowerCase(),default:_.default,subtitleTrack:_}});this.hls.trigger(y.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:S})}}},d.onManifestLoaded=function(c,w){var E=this;this.config.enableCEA708Captions&&w.captions&&w.captions.forEach(function(v){var R=/(?:CC|SERVICE)([1-4])/.exec(v.instreamId);if(!R)return;var M="textTrack"+R[1],C=E.captionsProperties[M];if(!C)return;C.label=v.name,v.lang&&(C.languageCode=v.lang),C.media=v})},d.onFragLoading=function(c,w){var E=this.cea608Parser1,v=this.cea608Parser2,R=this.lastSn,M=this.lastPartIndex;if(!this.enabled||!(E&&v))return;if(w.frag.type===a.PlaylistLevelType.MAIN){var C,S,_=w.frag.sn,A=(C=w==null||((S=w.part)===null||S===void 0)?void 0:S.index)!=null?C:-1;_===R+1||_===R&&A===M+1||(E.reset(),v.reset()),this.lastSn=_,this.lastPartIndex=A}},d.onFragLoaded=function(c,w){var E=w.frag,v=w.payload,R=this.initPTS,M=this.unparsedVttFrags;if(E.type===a.PlaylistLevelType.SUBTITLE)if(v.byteLength){if(!Object(b.isFiniteNumber)(R[E.cc])){M.push(w),R.length&&this.hls.trigger(y.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:E,error:new Error("Missing initial subtitle PTS")});return}var C=E.decryptdata;if(C==null||C.key==null||C.method!=="AES-128"){var S=this.tracks[E.level],_=this.vttCCs;_[E.cc]||(_[E.cc]={start:E.start,prevCC:this.prevCC,new:!0},this.prevCC=E.cc),S&&S.textCodec===f.IMSC1_CODEC?this._parseIMSC1(E,v):this._parseVTTs(E,v,_)}}else this.hls.trigger(y.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:E,error:new Error("Empty subtitle payload")})},d._parseIMSC1=function(c,w){var E=this,v=this.hls;Object(f.parseIMSC1)(w,this.initPTS[c.cc],this.timescale[c.cc],function(R){E._appendCues(R,c.level),v.trigger(y.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:c})},function(R){u.logger.log("Failed to parse IMSC1: "+R),v.trigger(y.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:c,error:R})})},d._parseVTTs=function(c,w,E){var v=this,R=this.hls;Object(m.parseWebVTT)(w,this.initPTS[c.cc],this.timescale[c.cc],E,c.cc,c.start,function(M){v._appendCues(M,c.level),R.trigger(y.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:c})},function(M){v._fallbackToIMSC1(c,w),u.logger.log("Failed to parse VTT cue: "+M),R.trigger(y.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:c,error:M})})},d._fallbackToIMSC1=function(c,w){var E=this,v=this.tracks[c.level];v.textCodec||Object(f.parseIMSC1)(w,this.initPTS[c.cc],this.timescale[c.cc],function(){v.textCodec=f.IMSC1_CODEC,E._parseIMSC1(c,w)},function(){v.textCodec="wvtt"})},d._appendCues=function(c,w){var E=this.hls;if(this.config.renderTextTracksNatively){var v=this.textTracks[w];if(v.mode==="disabled")return;c.forEach(function(C){return Object(e.addCueToTrack)(v,C)})}else{var R=this.tracks[w],M=R.default?"default":"subtitles"+w;E.trigger(y.Events.CUES_PARSED,{type:"subtitles",cues:c,track:M})}},d.onFragDecrypted=function(c,w){var E=w.frag;if(E.type===a.PlaylistLevelType.SUBTITLE){if(!Object(b.isFiniteNumber)(this.initPTS[E.cc])){this.unparsedVttFrags.push(w);return}this.onFragLoaded(y.Events.FRAG_LOADED,w)}},d.onSubtitleTracksCleared=function(){this.tracks=[],this.captionsTracks={}},d.onFragParsingUserdata=function(c,w){var E=this.cea608Parser1,v=this.cea608Parser2;if(!this.enabled||!(E&&v))return;for(var R=0;R<w.samples.length;R++){var M=w.samples[R].bytes;if(M){var C=this.extractCea608Data(M);E.addData(w.samples[R].pts,C[0]),v.addData(w.samples[R].pts,C[1])}}},d.onBufferFlushing=function(c,w){var E=w.startOffset,v=w.endOffset,R=w.endOffsetSubtitles,M=w.type,C=this.media;if(!C||C.currentTime<v)return;if(!M||M==="video"){var S=this.captionsTracks;Object.keys(S).forEach(function(A){return Object(e.removeCuesInRange)(S[A],E,v)})}if(this.config.renderTextTracksNatively&&(E===0&&R!==void 0)){var _=this.textTracks;Object.keys(_).forEach(function(A){return Object(e.removeCuesInRange)(_[A],E,R)})}},d.extractCea608Data=function(c){for(var w=c[0]&31,E=2,v=[[],[]],R=0;R<w;R++){var M=c[E++],C=127&c[E++],S=127&c[E++],_=(4&M)!==0,A=3&M;if(C===0&&S===0)continue;_&&((A===0||A===1)&&(v[A].push(C),v[A].push(S)))}return v},h}();function i(h,d){return h&&h.label===d.name&&!(h.textTrack1||h.textTrack2)}function n(h,d,s,c){return Math.min(d,c)-Math.max(h,s)}function l(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!1}}}},"./src/crypt/aes-crypto.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"default",function(){return b});var b=function(){function y(O,m){this.subtle=void 0,this.aesIV=void 0,this.subtle=O,this.aesIV=m}var x=y.prototype;return x.decrypt=function(m,e){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},e,m)},y}()},"./src/crypt/aes-decryptor.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"removePadding",function(){return y}),T.d(g,"default",function(){return x});var b=T("./src/utils/typed-array.ts");function y(O){var m=O.byteLength,e=m&&new DataView(O.buffer).getUint8(m-1);return e?Object(b.sliceUint8)(O,0,m-e):O}var x=function(){function O(){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 m=O.prototype;return m.uint8ArrayToUint32Array_=function(f){for(var a=new DataView(f),u=new Uint32Array(4),r=0;r<4;r++)u[r]=a.getUint32(r*4);return u},m.initTable=function(){var f=this.sBox,a=this.invSBox,u=this.subMix,r=u[0],i=u[1],n=u[2],l=u[3],h=this.invSubMix,d=h[0],s=h[1],c=h[2],w=h[3],E=new Uint32Array(256),v=0,R=0,M=0;for(M=0;M<256;M++)M<128?E[M]=M<<1:E[M]=M<<1^283;for(M=0;M<256;M++){var C=R^R<<1^R<<2^R<<3^R<<4;C=C>>>8^C&255^99,f[v]=C,a[C]=v;var S=E[v],_=E[S],A=E[_],U=E[C]*257^C*16843008;r[v]=U<<24|U>>>8,i[v]=U<<16|U>>>16,n[v]=U<<8|U>>>24,l[v]=U,U=A*16843009^_*65537^S*257^v*16843008,d[C]=U<<24|U>>>8,s[C]=U<<16|U>>>16,c[C]=U<<8|U>>>24,w[C]=U,v?(v=S^E[E[E[A^S]]],R^=E[E[R]]):v=R=1}},m.expandKey=function(f){for(var a=this.uint8ArrayToUint32Array_(f),u=!0,r=0;r<a.length&&u;)u=a[r]===this.key[r],r++;if(u)return;this.key=a;var i=this.keySize=a.length;if(i!==4&&i!==6&&i!==8)throw new Error("Invalid aes key size="+i);var n=this.ksRows=(i+6+1)*4,l,h,d=this.keySchedule=new Uint32Array(n),s=this.invKeySchedule=new Uint32Array(n),c=this.sBox,w=this.rcon,E=this.invSubMix,v=E[0],R=E[1],M=E[2],C=E[3],S,_;for(l=0;l<n;l++){if(l<i){S=d[l]=a[l];continue}_=S,l%i===0?(_=_<<8|_>>>24,_=c[_>>>24]<<24|c[_>>>16&255]<<16|c[_>>>8&255]<<8|c[_&255],_^=w[l/i|0]<<24):i>6&&l%i===4&&(_=c[_>>>24]<<24|c[_>>>16&255]<<16|c[_>>>8&255]<<8|c[_&255]),d[l]=S=(d[l-i]^_)>>>0}for(h=0;h<n;h++)l=n-h,h&3?_=d[l]:_=d[l-4],h<4||l<=4?s[h]=_:s[h]=v[c[_>>>24]]^R[c[_>>>16&255]]^M[c[_>>>8&255]]^C[c[_&255]],s[h]=s[h]>>>0},m.networkToHostOrderSwap=function(f){return f<<24|(f&65280)<<8|(f&16711680)>>8|f>>>24},m.decrypt=function(f,a,u){for(var r=this.keySize+6,i=this.invKeySchedule,n=this.invSBox,l=this.invSubMix,h=l[0],d=l[1],s=l[2],c=l[3],w=this.uint8ArrayToUint32Array_(u),E=w[0],v=w[1],R=w[2],M=w[3],C=new Int32Array(f),S=new Int32Array(C.length),_,A,U,L,N,V,H,D,W,F,I,K,ee,he,de=this.networkToHostOrderSwap;a<C.length;){for(W=de(C[a]),F=de(C[a+1]),I=de(C[a+2]),K=de(C[a+3]),N=W^i[0],V=K^i[1],H=I^i[2],D=F^i[3],ee=4,he=1;he<r;he++)_=h[N>>>24]^d[V>>16&255]^s[H>>8&255]^c[D&255]^i[ee],A=h[V>>>24]^d[H>>16&255]^s[D>>8&255]^c[N&255]^i[ee+1],U=h[H>>>24]^d[D>>16&255]^s[N>>8&255]^c[V&255]^i[ee+2],L=h[D>>>24]^d[N>>16&255]^s[V>>8&255]^c[H&255]^i[ee+3],N=_,V=A,H=U,D=L,ee=ee+4;_=n[N>>>24]<<24^n[V>>16&255]<<16^n[H>>8&255]<<8^n[D&255]^i[ee],A=n[V>>>24]<<24^n[H>>16&255]<<16^n[D>>8&255]<<8^n[N&255]^i[ee+1],U=n[H>>>24]<<24^n[D>>16&255]<<16^n[N>>8&255]<<8^n[V&255]^i[ee+2],L=n[D>>>24]<<24^n[N>>16&255]<<16^n[V>>8&255]<<8^n[H&255]^i[ee+3],S[a]=de(_^E),S[a+1]=de(L^v),S[a+2]=de(U^R),S[a+3]=de(A^M),E=W,v=F,R=I,M=K,a=a+4}return S.buffer},O}()},"./src/crypt/decrypter.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"default",function(){return a});var b=T("./src/crypt/aes-crypto.ts"),y=T("./src/crypt/fast-aes-key.ts"),x=T("./src/crypt/aes-decryptor.ts"),O=T("./src/utils/logger.ts"),m=T("./src/utils/mp4-tools.ts"),e=T("./src/utils/typed-array.ts"),f=16,a=function(){function u(i,n,l){var h=l===void 0?{}:l,d=h.removePKCS7Padding,s=d===void 0?!0:d;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=i,this.config=n,this.removePKCS7Padding=s,s)try{var c=self.crypto;c&&(this.subtle=c.subtle||c.webkitSubtle)}catch(w){}this.subtle===null&&(this.config.enableSoftwareAES=!0)}var r=u.prototype;return r.destroy=function(){this.observer=null},r.isSync=function(){return this.config.enableSoftwareAES},r.flush=function(){var n=this.currentResult;if(!n){this.reset();return}var l=new Uint8Array(n);return this.reset(),this.removePKCS7Padding?Object(x.removePadding)(l):l},r.reset=function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)},r.decrypt=function(n,l,h,d){if(this.config.enableSoftwareAES){this.softwareDecrypt(new Uint8Array(n),l,h);var s=this.flush();s&&d(s.buffer)}else this.webCryptoDecrypt(new Uint8Array(n),l,h).then(d)},r.softwareDecrypt=function(n,l,h){var d=this.currentIV,s=this.currentResult,c=this.remainderData;this.logOnce("JS AES decrypt"),c&&(n=Object(m.appendUint8Array)(c,n),this.remainderData=null);var w=this.getValidChunk(n);if(!w.length)return null;d&&(h=d);var E=this.softwareDecrypter;E||(E=this.softwareDecrypter=new x.default),E.expandKey(l);var v=s;return this.currentResult=E.decrypt(w.buffer,0,h),this.currentIV=Object(e.sliceUint8)(w,-16).buffer,v||null},r.webCryptoDecrypt=function(n,l,h){var d=this,s=this.subtle;return(this.key!==l||!this.fastAesKey)&&(this.key=l,this.fastAesKey=new y.default(s,l)),this.fastAesKey.expandKey().then(function(c){if(!s)return Promise.reject(new Error("web crypto not initialized"));var w=new b.default(s,h);return w.decrypt(n.buffer,c)}).catch(function(c){return d.onWebCryptoError(c,n,l,h)})},r.onWebCryptoError=function(n,l,h,d){return O.logger.warn("[decrypter.ts]: WebCrypto Error, disable WebCrypto API:",n),this.config.enableSoftwareAES=!0,this.logEnabled=!0,this.softwareDecrypt(l,h,d)},r.getValidChunk=function(n){var l=n,h=n.length-n.length%f;return h!==n.length&&(l=Object(e.sliceUint8)(n,0,h),this.remainderData=Object(e.sliceUint8)(n,h)),l},r.logOnce=function(n){if(!this.logEnabled)return;O.logger.log("[decrypter.ts]: "+n),this.logEnabled=!1},u}()},"./src/crypt/fast-aes-key.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"default",function(){return b});var b=function(){function y(O,m){this.subtle=void 0,this.key=void 0,this.subtle=O,this.key=m}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(P,g,T){"use strict";T.r(g);var b=T("./src/demux/base-audio-demuxer.ts"),y=T("./src/demux/adts.ts"),x=T("./src/utils/logger.ts"),O=T("./src/demux/id3.ts");function m(a,u){a.prototype=Object.create(u.prototype),a.prototype.constructor=a,e(a,u)}function e(a,u){return e=Object.setPrototypeOf||function(i,n){return i.__proto__=n,i},e(a,u)}var f=function(a){m(u,a);function u(i,n){var l;return l=a.call(this)||this,l.observer=void 0,l.config=void 0,l.observer=i,l.config=n,l}var r=u.prototype;return r.resetInitSegment=function(n,l,h){a.prototype.resetInitSegment.call(this,n,l,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 l=O.getID3Data(n,0)||[],h=l.length,d=n.length;h<d;h++)if(y.probe(n,h))return x.logger.log("ADTS sync word found !"),!0;return!1},r.canParse=function(n,l){return y.canParse(n,l)},r.appendFrame=function(n,l,h){y.initTrackConfig(n,this.observer,l,h,n.manifestCodec);var d=y.appendFrame(n,l,h,this.initPTS,this.frameIndex);if(d&&d.missing===0)return d},u}(b.default);f.minProbeByteLength=9,g.default=f},"./src/demux/adts.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"getAudioConfig",function(){return O}),T.d(g,"isHeaderPattern",function(){return m}),T.d(g,"getHeaderLength",function(){return e}),T.d(g,"getFullFrameLength",function(){return f}),T.d(g,"canGetFrameLength",function(){return a}),T.d(g,"isHeader",function(){return u}),T.d(g,"canParse",function(){return r}),T.d(g,"probe",function(){return i}),T.d(g,"initTrackConfig",function(){return n}),T.d(g,"getFrameDuration",function(){return l}),T.d(g,"parseFrameHeader",function(){return h}),T.d(g,"appendFrame",function(){return d});var b=T("./src/utils/logger.ts"),y=T("./src/errors.ts"),x=T("./src/events.ts");function O(s,c,w,E){var v,R,M,C,S=navigator.userAgent.toLowerCase(),_=E,A=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];v=((c[w+2]&192)>>>6)+1;var U=(c[w+2]&60)>>>2;if(U>A.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:"+U});return}return M=(c[w+2]&1)<<2,M|=(c[w+3]&192)>>>6,b.logger.log("manifest codec:"+E+", ADTS type:"+v+", samplingIndex:"+U),/firefox/i.test(S)?U>=6?(v=5,C=new Array(4),R=U-3):(v=2,C=new Array(2),R=U):S.indexOf("android")!==-1?(v=2,C=new Array(2),R=U):(v=5,C=new Array(4),E&&(E.indexOf("mp4a.40.29")!==-1||E.indexOf("mp4a.40.5")!==-1)||!E&&U>=6?R=U-3:((E&&E.indexOf("mp4a.40.2")!==-1&&(U>=6&&M===1||/vivaldi/i.test(S))||!E&&M===1)&&(v=2,C=new Array(2)),R=U)),C[0]=v<<3,C[0]|=(U&14)>>1,C[1]|=(U&1)<<7,C[1]|=M<<3,v===5&&(C[1]|=(R&14)>>1,C[2]=(R&1)<<7,C[2]|=2<<2,C[3]=0),{config:C,samplerate:A[U],channelCount:M,codec:"mp4a.40."+v,manifestCodec:_}}function m(s,c){return s[c]===255&&(s[c+1]&246)===240}function e(s,c){return s[c+1]&1?7:9}function f(s,c){return(s[c+3]&3)<<11|s[c+4]<<3|(s[c+5]&224)>>>5}function a(s,c){return c+5<s.length}function u(s,c){return c+1<s.length&&m(s,c)}function r(s,c){return a(s,c)&&m(s,c)&&f(s,c)<=s.length-c}function i(s,c){if(u(s,c)){var w=e(s,c);if(c+w>=s.length)return!1;var E=f(s,c);if(E<=w)return!1;var v=c+E;return v===s.length||u(s,v)}return!1}function n(s,c,w,E,v){if(!s.samplerate){var R=O(c,w,E,v);if(!R)return;s.config=R.config,s.samplerate=R.samplerate,s.channelCount=R.channelCount,s.codec=R.codec,s.manifestCodec=R.manifestCodec,b.logger.log("parsed codec:"+s.codec+", rate:"+R.samplerate+", channels:"+R.channelCount)}}function l(s){return 1024*9e4/s}function h(s,c,w,E,v){var R=e(s,c),M=f(s,c);if(M-=R,M>0){var C=w+E*v;return{headerLength:R,frameLength:M,stamp:C}}}function d(s,c,w,E,v){var R=l(s.samplerate),M=h(c,w,E,v,R);if(M){var C=M.frameLength,S=M.headerLength,_=M.stamp,A=S+C,U=Math.max(0,w+A-c.length),L;U?(L=new Uint8Array(A-S),L.set(c.subarray(w+S,c.length),0)):L=c.subarray(w+S,w+A);var N={unit:L,pts:_};return U||s.samples.push(N),{sample:N,length:A,missing:U}}}},"./src/demux/base-audio-demuxer.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"initPTSFn",function(){return f});var b=T("./src/polyfills/number.ts"),y=T("./src/demux/id3.ts"),x=T("./src/demux/dummy-demuxed-track.ts"),O=T("./src/utils/mp4-tools.ts"),m=T("./src/utils/typed-array.ts"),e=function(){function a(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var u=a.prototype;return u.resetInitSegment=function(i,n,l){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},u.resetTimeStamp=function(){},u.resetContiguity=function(){},u.canParse=function(i,n){return!1},u.appendFrame=function(i,n,l){},u.demux=function(i,n){this.cachedData&&(i=Object(O.appendUint8Array)(this.cachedData,i),this.cachedData=null);var l=y.getID3Data(i,0),h=l?l.length:0,d,s,c=this._audioTrack,w=this._id3Track,E=l?y.getTimeStamp(l):void 0,v=i.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=f(E,n)),l&&l.length>0&&w.samples.push({pts:this.initPTS,dts:this.initPTS,data:l}),s=this.initPTS;h<v;){if(this.canParse(i,h)){var R=this.appendFrame(c,i,h);R?(this.frameIndex++,s=R.sample.pts,h+=R.length,d=h):h=v}else y.canParse(i,h)?(l=y.getID3Data(i,h),w.samples.push({pts:s,dts:s,data:l}),h+=l.length,d=h):h++;if(h===v&&d!==v){var M=Object(m.sliceUint8)(i,d);this.cachedData?this.cachedData=Object(O.appendUint8Array)(this.cachedData,M):this.cachedData=M}}return{audioTrack:c,avcTrack:Object(x.dummyTrack)(),id3Track:w,textTrack:Object(x.dummyTrack)()}},u.demuxSampleAes=function(i,n,l){return Promise.reject(new Error("["+this+"] This demuxer does not support Sample-AES decryption"))},u.flush=function(i){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(){},a}(),f=function(u,r){return Object(b.isFiniteNumber)(u)?u*90:r*9e4};g.default=e},"./src/demux/chunk-cache.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"default",function(){return b});var b=function(){function x(){this.chunks=[],this.dataLength=0}var O=x.prototype;return O.push=function(e){this.chunks.push(e),this.dataLength+=e.length},O.flush=function(){var e=this.chunks,f=this.dataLength,a;if(e.length)e.length===1?a=e[0]:a=y(e,f);else return new Uint8Array(0);return this.reset(),a},O.reset=function(){this.chunks.length=0,this.dataLength=0},x}();function y(x,O){for(var m=new Uint8Array(O),e=0,f=0;f<x.length;f++){var a=x[f];m.set(a,e),e+=a.length}return m}},"./src/demux/dummy-demuxed-track.ts":function(P,g,T){"use strict";T.r(g),T.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(P,g,T){"use strict";T.r(g);var b=T("./src/utils/logger.ts"),y=function(){function x(m){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=m,this.bytesAvailable=m.byteLength,this.word=0,this.bitsAvailable=0}var O=x.prototype;return O.loadWord=function(){var e=this.data,f=this.bytesAvailable,a=e.byteLength-f,u=new Uint8Array(4),r=Math.min(4,f);if(r===0)throw new Error("no bytes available");u.set(e.subarray(a,a+r)),this.word=new DataView(u.buffer).getUint32(0),this.bitsAvailable=r*8,this.bytesAvailable-=r},O.skipBits=function(e){var f;this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(e-=this.bitsAvailable,f=e>>3,e-=f>>3,this.bytesAvailable-=f,this.loadWord(),this.word<<=e,this.bitsAvailable-=e)},O.readBits=function(e){var f=Math.min(this.bitsAvailable,e),a=this.word>>>32-f;return e>32&&b.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=f,this.bitsAvailable>0?this.word<<=f:this.bytesAvailable>0&&this.loadWord(),f=e-f,f>0&&this.bitsAvailable?a<<f|this.readBits(f):a},O.skipLZ=function(){var e;for(e=0;e<this.bitsAvailable;++e)if((this.word&2147483648>>>e)!==0)return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()},O.skipUEG=function(){this.skipBits(1+this.skipLZ())},O.skipEG=function(){this.skipBits(1+this.skipLZ())},O.readUEG=function(){var e=this.skipLZ();return this.readBits(e+1)-1},O.readEG=function(){var e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)},O.readBoolean=function(){return this.readBits(1)===1},O.readUByte=function(){return this.readBits(8)},O.readUShort=function(){return this.readBits(16)},O.readUInt=function(){return this.readBits(32)},O.skipScalingList=function(e){for(var f=8,a=8,u,r=0;r<e;r++)a!==0&&(u=this.readEG(),a=(f+u+256)%256),f=a===0?f:a},O.readSPS=function(){var e=0,f=0,a=0,u=0,r,i,n,l=this.readUByte.bind(this),h=this.readBits.bind(this),d=this.readUEG.bind(this),s=this.readBoolean.bind(this),c=this.skipBits.bind(this),w=this.skipEG.bind(this),E=this.skipUEG.bind(this),v=this.skipScalingList.bind(this);l();var R=l();if(h(5),c(3),l(),E(),R===100||R===110||R===122||R===244||R===44||R===83||R===86||R===118||R===128){var M=d();if(M===3&&c(1),E(),E(),c(1),s())for(i=M!==3?8:12,n=0;n<i;n++)s()&&(n<6?v(16):v(64))}E();var C=d();if(C===0)d();else if(C===1)for(c(1),w(),w(),r=d(),n=0;n<r;n++)w();E(),c(1);var S=d(),_=d(),A=h(1);A===0&&c(1),c(1),s()&&(e=d(),f=d(),a=d(),u=d());var U=[1,1];if(s()&&s()){var L=l();switch(L){case 1:U=[1,1];break;case 2:U=[12,11];break;case 3:U=[10,11];break;case 4:U=[16,11];break;case 5:U=[40,33];break;case 6:U=[24,11];break;case 7:U=[20,11];break;case 8:U=[32,11];break;case 9:U=[80,33];break;case 10:U=[18,11];break;case 11:U=[15,11];break;case 12:U=[64,33];break;case 13:U=[160,99];break;case 14:U=[4,3];break;case 15:U=[3,2];break;case 16:U=[2,1];break;case 255:{U=[l()<<8|l(),l()<<8|l()];break}}}return{width:Math.ceil((S+1)*16-e*2-f*2),height:(2-A)*(_+1)*16-(A?2:4)*(a+u),pixelRatio:U}},O.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},x}();g.default=y},"./src/demux/id3.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"isHeader",function(){return b}),T.d(g,"isFooter",function(){return y}),T.d(g,"getID3Data",function(){return x}),T.d(g,"canParse",function(){return m}),T.d(g,"getTimeStamp",function(){return e}),T.d(g,"isTimeStampFrame",function(){return f}),T.d(g,"getID3Frames",function(){return u}),T.d(g,"decodeFrame",function(){return r}),T.d(g,"utf8ArrayToStr",function(){return d}),T.d(g,"testables",function(){return s});var b=function(v,R){return R+10<=v.length&&(v[R]===73&&v[R+1]===68&&v[R+2]===51&&(v[R+3]<255&&v[R+4]<255&&(v[R+6]<128&&v[R+7]<128&&v[R+8]<128&&v[R+9]<128)))},y=function(v,R){return R+10<=v.length&&(v[R]===51&&v[R+1]===68&&v[R+2]===73&&(v[R+3]<255&&v[R+4]<255&&(v[R+6]<128&&v[R+7]<128&&v[R+8]<128&&v[R+9]<128)))},x=function(v,R){for(var M=R,C=0;b(v,R);){C+=10;var S=O(v,R+6);C+=S,y(v,R+10)&&(C+=10),R+=C}return C>0?v.subarray(M,M+C):void 0},O=function(v,R){var M=0;return M=(v[R]&127)<<21,M|=(v[R+1]&127)<<14,M|=(v[R+2]&127)<<7,M|=v[R+3]&127,M},m=function(v,R){return b(v,R)&&O(v,R+6)+10<=v.length-R},e=function(v){for(var R=u(v),M=0;M<R.length;M++){var C=R[M];if(f(C))return h(C)}return},f=function(v){return v&&v.key==="PRIV"&&v.info==="com.apple.streaming.transportStreamTimestamp"},a=function(v){var R=String.fromCharCode(v[0],v[1],v[2],v[3]),M=O(v,4),C=10;return{type:R,size:M,data:v.subarray(C,C+M)}},u=function(v){for(var R=0,M=[];b(v,R);){var C=O(v,R+6);R+=10;for(var S=R+C;R+8<S;){var _=a(v.subarray(R)),A=r(_);A&&M.push(A),R+=_.size+10}y(v,R)&&(R+=10)}return M},r=function(v){return v.type==="PRIV"?i(v):v.type[0]==="W"?l(v):n(v)},i=function(v){if(v.size<2)return;var R=d(v.data,!0),M=new Uint8Array(v.data.subarray(R.length+1));return{key:v.type,info:R,data:M.buffer}},n=function(v){if(v.size<2)return;if(v.type==="TXXX"){var R=1,M=d(v.data.subarray(R),!0);R+=M.length+1;var C=d(v.data.subarray(R));return{key:v.type,info:M,data:C}}var S=d(v.data.subarray(1));return{key:v.type,data:S}},l=function(v){if(v.type==="WXXX"){if(v.size<2)return;var R=1,M=d(v.data.subarray(R),!0);R+=M.length+1;var C=d(v.data.subarray(R));return{key:v.type,info:M,data:C}}var S=d(v.data);return{key:v.type,data:S}},h=function(v){if(v.data.byteLength===8){var R=new Uint8Array(v.data),M=R[3]&1,C=(R[4]<<23)+(R[5]<<15)+(R[6]<<7)+R[7];return C/=45,M&&(C+=4772185884e-2),Math.round(C)}return},d=function(v,R){R===void 0&&(R=!1);var M=w();if(M){var C=M.decode(v);if(R){var S=C.indexOf("\0");return S!==-1?C.substring(0,S):C}return C.replace(/\0/g,"")}for(var _=v.length,A,U,L,N="",V=0;V<_;){if(A=v[V++],A===0&&R)return N;if(A===0||A===3)continue;switch(A>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:N+=String.fromCharCode(A);break;case 12:case 13:U=v[V++],N+=String.fromCharCode((A&31)<<6|U&63);break;case 14:U=v[V++],L=v[V++],N+=String.fromCharCode((A&15)<<12|(U&63)<<6|(L&63)<<0);break;default:}}return N},s={decodeTextFrame:n},c;function w(){return!c&&typeof self.TextDecoder!="undefined"&&(c=new self.TextDecoder("utf-8")),c}},"./src/demux/mp3demuxer.ts":function(P,g,T){"use strict";T.r(g);var b=T("./src/demux/base-audio-demuxer.ts"),y=T("./src/demux/id3.ts"),x=T("./src/utils/logger.ts"),O=T("./src/demux/mpegaudio.ts");function m(a,u){a.prototype=Object.create(u.prototype),a.prototype.constructor=a,e(a,u)}function e(a,u){return e=Object.setPrototypeOf||function(i,n){return i.__proto__=n,i},e(a,u)}var f=function(a){m(u,a);function u(){return a.apply(this,arguments)||this}var r=u.prototype;return r.resetInitSegment=function(n,l,h){a.prototype.resetInitSegment.call(this,n,l,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 l=y.getID3Data(n,0)||[],h=l.length,d=n.length;h<d;h++)if(O.probe(n,h))return x.logger.log("MPEG Audio sync word found !"),!0;return!1},r.canParse=function(n,l){return O.canParse(n,l)},r.appendFrame=function(n,l,h){return this.initPTS===null?void 0:O.appendFrame(n,l,h,this.initPTS,this.frameIndex)},u}(b.default);f.minProbeByteLength=4,g.default=f},"./src/demux/mp4demuxer.ts":function(P,g,T){"use strict";T.r(g);var b=T("./src/utils/mp4-tools.ts"),y=T("./src/demux/dummy-demuxed-track.ts"),x=function(){function O(e,f){this.remainderData=null,this.config=void 0,this.config=f}var m=O.prototype;return m.resetTimeStamp=function(){},m.resetInitSegment=function(){},m.resetContiguity=function(){},O.probe=function(f){return Object(b.findBox)({data:f,start:0,end:Math.min(f.length,16384)},["moof"]).length>0},m.demux=function(f){var a=f,u=Object(y.dummyTrack)();if(this.config.progressive){this.remainderData&&(a=Object(b.appendUint8Array)(this.remainderData,f));var r=Object(b.segmentValidRange)(a);this.remainderData=r.remainder,u.samples=r.valid||new Uint8Array}else u.samples=a;return{audioTrack:Object(y.dummyTrack)(),avcTrack:u,id3Track:Object(y.dummyTrack)(),textTrack:Object(y.dummyTrack)()}},m.flush=function(){var f=Object(y.dummyTrack)();return f.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(y.dummyTrack)(),avcTrack:f,id3Track:Object(y.dummyTrack)(),textTrack:Object(y.dummyTrack)()}},m.demuxSampleAes=function(f,a,u){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},m.destroy=function(){},O}();x.minProbeByteLength=1024,g.default=x},"./src/demux/mpegaudio.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"appendFrame",function(){return e}),T.d(g,"parseHeader",function(){return f}),T.d(g,"isHeaderPattern",function(){return a}),T.d(g,"isHeader",function(){return u}),T.d(g,"canParse",function(){return r}),T.d(g,"probe",function(){return i});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],O=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],m=[0,1,1,4];function e(n,l,h,d,s){if(h+24>l.length)return;var c=f(l,h);if(c&&h+c.frameLength<=l.length){var w=c.samplesPerFrame*9e4/c.sampleRate,E=d+s*w,v={unit:l.subarray(h,h+c.frameLength),pts:E,dts:E};return n.config=[],n.channelCount=c.channelCount,n.samplerate=c.sampleRate,n.samples.push(v),{sample:v,length:c.frameLength,missing:0}}}function f(n,l){var h=n[l+1]>>3&3,d=n[l+1]>>1&3,s=n[l+2]>>4&15,c=n[l+2]>>2&3;if(h!==1&&s!==0&&s!==15&&c!==3){var w=n[l+2]>>1&1,E=n[l+3]>>6,v=h===3?3-d:d===3?3:4,R=y[v*14+s-1]*1e3,M=h===3?0:h===2?1:2,C=x[M*3+c],S=E===3?1:2,_=O[h][d],A=m[d],U=_*8*A,L=Math.floor(_*R/C+w)*A;if(b===null){var N=navigator.userAgent||"",V=N.match(/Chrome\/(\d+)/i);b=V?parseInt(V[1]):0}var H=!!b&&b<=87;return H&&d===2&&R>=224e3&&E===0&&(n[l+3]=n[l+3]|128),{sampleRate:C,channelCount:S,frameLength:L,samplesPerFrame:U}}}function a(n,l){return n[l]===255&&(n[l+1]&224)===224&&(n[l+1]&6)!==0}function u(n,l){return l+1<n.length&&a(n,l)}function r(n,l){var h=4;return a(n,l)&&h<=n.length-l}function i(n,l){if(l+1<n.length&&a(n,l)){var h=4,d=f(n,l),s=h;d!=null&&d.frameLength&&(s=d.frameLength);var c=l+s;return c===n.length||u(n,c)}return!1}},"./src/demux/sample-aes.ts":function(P,g,T){"use strict";T.r(g);var b=T("./src/crypt/decrypter.ts"),y=T("./src/demux/tsdemuxer.ts"),x=function(){function O(e,f,a){this.keyData=void 0,this.decrypter=void 0,this.keyData=a,this.decrypter=new b.default(e,f,{removePKCS7Padding:!1})}var m=O.prototype;return m.decryptBuffer=function(f,a){this.decrypter.decrypt(f,this.keyData.key.buffer,this.keyData.iv.buffer,a)},m.decryptAacSample=function(f,a,u,r){var i=f[a].unit,n=i.subarray(16,i.length-i.length%16),l=n.buffer.slice(n.byteOffset,n.byteOffset+n.length),h=this;this.decryptBuffer(l,function(d){var s=new Uint8Array(d);i.set(s,16),r||h.decryptAacSamples(f,a+1,u)})},m.decryptAacSamples=function(f,a,u){for(;;a++){if(a>=f.length){u();return}if(f[a].unit.length<32)continue;var r=this.decrypter.isSync();if(this.decryptAacSample(f,a,u,r),!r)return}},m.getAvcEncryptedData=function(f){for(var a=Math.floor((f.length-48)/160)*16+16,u=new Int8Array(a),r=0,i=32;i<=f.length-16;i+=160,r+=16)u.set(f.subarray(i,i+16),r);return u},m.getAvcDecryptedUnit=function(f,a){for(var u=new Uint8Array(a),r=0,i=32;i<=f.length-16;i+=160,r+=16)f.set(u.subarray(r,r+16),i);return f},m.decryptAvcSample=function(f,a,u,r,i,n){var l=Object(y.discardEPB)(i.data),h=this.getAvcEncryptedData(l),d=this;this.decryptBuffer(h.buffer,function(s){i.data=d.getAvcDecryptedUnit(l,s),n||d.decryptAvcSamples(f,a,u+1,r)})},m.decryptAvcSamples=function(f,a,u,r){if(f instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;a++,u=0){if(a>=f.length){r();return}for(var i=f[a].units;!(u>=i.length);u++){var n=i[u];if(n.data.length<=48||n.type!==1&&n.type!==5)continue;var l=this.decrypter.isSync();if(this.decryptAvcSample(f,a,u,r,n,l),!l)return}}},O}();g.default=x},"./src/demux/transmuxer-interface.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"default",function(){return i});var b=T("./node_modules/webworkify-webpack/index.js"),y=T.n(b),x=T("./src/events.ts"),O=T("./src/demux/transmuxer.ts"),m=T("./src/utils/logger.ts"),e=T("./src/errors.ts"),f=T("./src/utils/mediasource-helper.ts"),a=T("./node_modules/eventemitter3/index.js"),u=T.n(a),r=Object(f.getMediaSource)()||{isTypeSupported:function(){return!1}},i=function(){function n(h,d,s,c){var w=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=d,this.onTransmuxComplete=s,this.onFlush=c;var E=h.config,v=function(_,A){A=A||{},A.frag=w.frag,A.id=w.id,h.trigger(_,A)};this.observer=new a.EventEmitter,this.observer.on(x.Events.FRAG_DECRYPTED,v),this.observer.on(x.Events.ERROR,v);var R={mp4:r.isTypeSupported("video/mp4"),mpeg:r.isTypeSupported("audio/mpeg"),mp3:r.isTypeSupported('audio/mp4; codecs="mp3"')},M=navigator.vendor;if(E.enableWorker&&typeof Worker!="undefined"){m.logger.log("demuxing in webworker");var C;try{C=this.worker=b("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),C.addEventListener("message",this.onwmsg),C.onerror=function(S){h.trigger(x.Events.ERROR,{type:e.ErrorTypes.OTHER_ERROR,details:e.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(S.message+" ("+S.filename+":"+S.lineno+")")})},C.postMessage({cmd:"init",typeSupported:R,vendor:M,id:d,config:JSON.stringify(E)})}catch(S){m.logger.warn("Error in worker:",S),m.logger.error("Error while initializing DemuxerWorker, fallback to inline"),C&&self.URL.revokeObjectURL(C.objectURL),this.transmuxer=new O.default(this.observer,R,E,M,d),this.worker=null}}else this.transmuxer=new O.default(this.observer,R,E,M,d)}var l=n.prototype;return l.destroy=function(){var d=this.worker;if(d)d.removeEventListener("message",this.onwmsg),d.terminate(),this.worker=null;else{var s=this.transmuxer;s&&(s.destroy(),this.transmuxer=null)}var c=this.observer;c&&c.removeAllListeners(),this.observer=null},l.push=function(d,s,c,w,E,v,R,M,C,S){var _=this;C.transmuxing.start=self.performance.now();var A=this.transmuxer,U=this.worker,L=v?v.start:E.start,N=E.decryptdata,V=this.frag,H=!(V&&E.cc===V.cc),D=!(V&&C.level===V.level),W=V?C.sn-V.sn:-1,F=this.part?C.part-this.part.index:1,I=!D&&(W===1||W===0&&F===1),K=self.performance.now();(D||W||E.stats.parsing.start===0)&&(E.stats.parsing.start=K),v&&(F||!I)&&(v.stats.parsing.start=K);var ee=new O.TransmuxState(H,I,M,D,L);if(!I||H){m.logger.log("[transmuxer-interface, "+E.type+"]: Starting new transmux session for sn: "+C.sn+" p: "+C.part+" level: "+C.level+" id: "+C.id+`
|
|
|
discontinuity: `+H+`
|
|
|
trackSwitch: `+D+`
|
|
|
contiguous: `+I+`
|
|
|
accurateTimeOffset: `+M+`
|
|
|
timeOffset: `+L);var he=new O.TransmuxConfig(c,w,s,R,S);this.configureTransmuxer(he)}if(this.frag=E,this.part=v,U)U.postMessage({cmd:"demux",data:d,decryptdata:N,chunkMeta:C,state:ee},d instanceof ArrayBuffer?[d]:[]);else if(A){var de=A.push(d,N,C,ee);Object(O.isPromise)(de)?de.then(function(Se){_.handleTransmuxComplete(Se)}):this.handleTransmuxComplete(de)}},l.flush=function(d){var s=this;d.transmuxing.start=self.performance.now();var c=this.transmuxer,w=this.worker;if(w)w.postMessage({cmd:"flush",chunkMeta:d});else if(c){var E=c.flush(d);Object(O.isPromise)(E)?E.then(function(v){s.handleFlushResult(v,d)}):this.handleFlushResult(E,d)}},l.handleFlushResult=function(d,s){var c=this;d.forEach(function(w){c.handleTransmuxComplete(w)}),this.onFlush(s)},l.onWorkerMessage=function(d){var s=d.data,c=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,c.trigger(s.event,s.data);break}}},l.configureTransmuxer=function(d){var s=this.worker,c=this.transmuxer;s?s.postMessage({cmd:"configure",config:d}):c&&c.configure(d)},l.handleTransmuxComplete=function(d){d.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(d)},n}()},"./src/demux/transmuxer-worker.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"default",function(){return e});var b=T("./src/demux/transmuxer.ts"),y=T("./src/events.ts"),x=T("./src/utils/logger.ts"),O=T("./node_modules/eventemitter3/index.js"),m=T.n(O);function e(i){var n=new O.EventEmitter,l=function(d,s){i.postMessage({event:d,data:s})};n.on(y.Events.FRAG_DECRYPTED,l),n.on(y.Events.ERROR,l),i.addEventListener("message",function(h){var d=h.data;switch(d.cmd){case"init":{var s=JSON.parse(d.config);i.transmuxer=new b.default(n,d.typeSupported,s,d.vendor,d.id),Object(x.enableLogs)(s.debug),l("init",null);break}case"configure":{i.transmuxer.configure(d.config);break}case"demux":{var c=i.transmuxer.push(d.data,d.decryptdata,d.chunkMeta,d.state);Object(b.isPromise)(c)?c.then(function(v){f(i,v)}):f(i,c);break}case"flush":{var w=d.chunkMeta,E=i.transmuxer.flush(w);Object(b.isPromise)(E)?E.then(function(v){u(i,v,w)}):u(i,E,w);break}default:break}})}function f(i,n){if(r(n.remuxResult))return;var l=[],h=n.remuxResult,d=h.audio,s=h.video;d&&a(l,d),s&&a(l,s),i.postMessage({event:"transmuxComplete",data:n},l)}function a(i,n){n.data1&&i.push(n.data1.buffer),n.data2&&i.push(n.data2.buffer)}function u(i,n,l){n.forEach(function(h){f(i,h)}),i.postMessage({event:"flush",data:l})}function r(i){return!i.audio&&!i.video&&!i.text&&!i.id3&&!i.initSegment}},"./src/demux/transmuxer.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"default",function(){return s}),T.d(g,"isPromise",function(){return E}),T.d(g,"TransmuxConfig",function(){return v}),T.d(g,"TransmuxState",function(){return R});var b=T("./src/events.ts"),y=T("./src/errors.ts"),x=T("./src/crypt/decrypter.ts"),O=T("./src/demux/aacdemuxer.ts"),m=T("./src/demux/mp4demuxer.ts"),e=T("./src/demux/tsdemuxer.ts"),f=T("./src/demux/mp3demuxer.ts"),a=T("./src/remux/mp4-remuxer.ts"),u=T("./src/remux/passthrough-remuxer.ts"),r=T("./src/demux/chunk-cache.ts"),i=T("./src/utils/mp4-tools.ts"),n=T("./src/utils/logger.ts"),l;try{l=self.performance.now.bind(self.performance)}catch(M){n.logger.debug("Unable to use Performance API on this environment"),l=self.Date.now}var h=[{demux:e.default,remux:a.default},{demux:m.default,remux:u.default},{demux:O.default,remux:a.default},{demux:f.default,remux:a.default}],d=1024;h.forEach(function(M){var C=M.demux;d=Math.max(d,C.minProbeByteLength)});var s=function(){function M(S,_,A,U,L){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 r.default,this.observer=S,this.typeSupported=_,this.config=A,this.vendor=U,this.id=L}var C=M.prototype;return C.configure=function(_){this.transmuxConfig=_,this.decrypter&&this.decrypter.reset()},C.push=function(_,A,U,L){var N=this,V=U.transmuxing;V.executeStart=l();var H=new Uint8Array(_),D=this.cache,W=this.config,F=this.currentTransmuxState,I=this.transmuxConfig;L&&(this.currentTransmuxState=L);var K=c(H,A);if(K&&K.method==="AES-128"){var ee=this.getDecrypter();if(W.enableSoftwareAES){var he=ee.softwareDecrypt(H,K.key.buffer,K.iv.buffer);if(!he)return V.executeEnd=l(),w(U);H=new Uint8Array(he)}else return this.decryptionPromise=ee.webCryptoDecrypt(H,K.key.buffer,K.iv.buffer).then(function(te){var Q=N.push(te,null,U);return N.decryptionPromise=null,Q}),this.decryptionPromise}var de=L||F,Se=de.contiguous,Te=de.discontinuity,ce=de.trackSwitch,be=de.accurateTimeOffset,Ee=de.timeOffset,ue=I.audioCodec,le=I.videoCodec,$=I.defaultInitPts,me=I.duration,re=I.initSegmentData;if((Te||ce)&&this.resetInitSegment(re,ue,le,me),Te&&this.resetInitialTimestamp($),Se||this.resetContiguity(),this.needsProbing(H,Te,ce)){if(D.dataLength){var ae=D.flush();H=Object(i.appendUint8Array)(ae,H)}this.configureTransmuxer(H,I)}var Oe=this.transmux(H,K,Ee,be,U),se=this.currentTransmuxState;return se.contiguous=!0,se.discontinuity=!1,se.trackSwitch=!1,V.executeEnd=l(),Oe},C.flush=function(_){var A=this,U=_.transmuxing;U.executeStart=l();var L=this.decrypter,N=this.cache,V=this.currentTransmuxState,H=this.decryptionPromise;if(H)return H.then(function(){return A.flush(_)});var D=[],W=V.timeOffset;if(L){var F=L.flush();F&&D.push(this.push(F,null,_))}var I=N.dataLength;N.reset();var K=this.demuxer,ee=this.remuxer;if(!K||!ee)return I>=d&&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"}),U.executeEnd=l(),[w(_)];var he=K.flush(W);return E(he)?he.then(function(de){return A.flushRemux(D,de,_),D}):(this.flushRemux(D,he,_),D)},C.flushRemux=function(_,A,U){var L=A.audioTrack,N=A.avcTrack,V=A.id3Track,H=A.textTrack,D=this.currentTransmuxState,W=D.accurateTimeOffset,F=D.timeOffset;n.logger.log("[transmuxer.ts]: Flushed fragment "+U.sn+(U.part>-1?" p: "+U.part:"")+" of level "+U.level);var I=this.remuxer.remux(L,N,V,H,F,W,!0,this.id);_.push({remuxResult:I,chunkMeta:U}),U.transmuxing.executeEnd=l()},C.resetInitialTimestamp=function(_){var A=this.demuxer,U=this.remuxer;if(!A||!U)return;A.resetTimeStamp(_),U.resetTimeStamp(_)},C.resetContiguity=function(){var _=this.demuxer,A=this.remuxer;if(!_||!A)return;_.resetContiguity(),A.resetNextTimestamp()},C.resetInitSegment=function(_,A,U,L){var N=this.demuxer,V=this.remuxer;if(!N||!V)return;N.resetInitSegment(A,U,L),V.resetInitSegment(_,A,U)},C.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},C.transmux=function(_,A,U,L,N){var V;return A&&A.method==="SAMPLE-AES"?V=this.transmuxSampleAes(_,A,U,L,N):V=this.transmuxUnencrypted(_,U,L,N),V},C.transmuxUnencrypted=function(_,A,U,L){var N=this.demuxer.demux(_,A,!1,!this.config.progressive),V=N.audioTrack,H=N.avcTrack,D=N.id3Track,W=N.textTrack,F=this.remuxer.remux(V,H,D,W,A,U,!1,this.id);return{remuxResult:F,chunkMeta:L}},C.transmuxSampleAes=function(_,A,U,L,N){var V=this;return this.demuxer.demuxSampleAes(_,A,U).then(function(H){var D=V.remuxer.remux(H.audioTrack,H.avcTrack,H.id3Track,H.textTrack,U,L,!1,V.id);return{remuxResult:D,chunkMeta:N}})},C.configureTransmuxer=function(_,A){for(var U=this.config,L=this.observer,N=this.typeSupported,V=this.vendor,H=A.audioCodec,D=A.defaultInitPts,W=A.duration,F=A.initSegmentData,I=A.videoCodec,K,ee=0,he=h.length;ee<he;ee++)if(h[ee].demux.probe(_)){K=h[ee];break}K||(n.logger.warn("Failed to find demuxer by probing frag, treating as mp4 passthrough"),K={demux:m.default,remux:u.default});var de=this.demuxer,Se=this.remuxer,Te=K.remux,ce=K.demux;(!Se||!(Se instanceof Te))&&(this.remuxer=new Te(L,U,N,V)),(!de||!(de instanceof ce))&&(this.demuxer=new ce(L,U,N),this.probe=ce.probe),this.resetInitSegment(F,H,I,W),this.resetInitialTimestamp(D)},C.needsProbing=function(_,A,U){return!this.demuxer||!this.remuxer||A||U},C.getDecrypter=function(){var _=this.decrypter;return _||(_=this.decrypter=new x.default(this.observer,this.config)),_},M}();function c(M,C){var S=null;return M.byteLength>0&&C!=null&&C.key!=null&&C.iv!==null&&C.method!=null&&(S=C),S}var w=function(C){return{remuxResult:{},chunkMeta:C}};function E(M){return"then"in M&&M.then instanceof Function}var v=function(C,S,_,A,U){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=C,this.videoCodec=S,this.initSegmentData=_,this.duration=A,this.defaultInitPts=U},R=function(C,S,_,A,U){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=C,this.contiguous=S,this.accurateTimeOffset=_,this.trackSwitch=A,this.timeOffset=U}},"./src/demux/tsdemuxer.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"discardEPB",function(){return w});var b=T("./src/demux/adts.ts"),y=T("./src/demux/mpegaudio.ts"),x=T("./src/demux/exp-golomb.ts"),O=T("./src/demux/id3.ts"),m=T("./src/demux/sample-aes.ts"),e=T("./src/events.ts"),f=T("./src/utils/mp4-tools.ts"),a=T("./src/utils/logger.ts"),u=T("./src/errors.ts"),r={video:1,audio:2,id3:3,text:4},i=function(){function E(R,M,C){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=R,this.config=M,this.typeSupported=C}E.probe=function(M){var C=E.syncOffset(M);return C<0?!1:(C&&a.logger.warn("MPEG2-TS detected but first sync word found @ offset "+C+", junk ahead ?"),!0)},E.syncOffset=function(M){for(var C=Math.min(1e3,M.length-3*188),S=0;S<C;){if(M[S]===71&&M[S+188]===71&&M[S+2*188]===71)return S;S++}return-1},E.createTrack=function(M,C){return{container:M==="video"||M==="audio"?"video/mp2t":void 0,type:M,id:r[M],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:M==="audio"?C:void 0}};var v=E.prototype;return v.resetInitSegment=function(M,C,S){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=E.createTrack("video",S),this._audioTrack=E.createTrack("audio",S),this._id3Track=E.createTrack("id3",S),this._txtTrack=E.createTrack("text",S),this._audioTrack.isAAC=!0,this.aacOverFlow=null,this.aacLastPTS=null,this.avcSample=null,this.audioCodec=M,this.videoCodec=C,this._duration=S},v.resetTimeStamp=function(){},v.resetContiguity=function(){var M=this._audioTrack,C=this._avcTrack,S=this._id3Track;M&&(M.pesData=null),C&&(C.pesData=null),S&&(S.pesData=null),this.aacOverFlow=null,this.aacLastPTS=null},v.demux=function(M,C,S,_){S===void 0&&(S=!1),_===void 0&&(_=!1),S||(this.sampleAes=null);var A,U=this._avcTrack,L=this._audioTrack,N=this._id3Track,V=U.pid,H=U.pesData,D=L.pid,W=N.pid,F=L.pesData,I=N.pesData,K=!1,ee=this.pmtParsed,he=this._pmtId,de=M.length;if(this.remainderData&&(M=Object(f.appendUint8Array)(this.remainderData,M),de=M.length,this.remainderData=null),de<188&&!_)return this.remainderData=M,{audioTrack:L,avcTrack:U,id3Track:N,textTrack:this._txtTrack};var Se=Math.max(0,E.syncOffset(M));de-=(de+Se)%188,de<M.byteLength&&!_&&(this.remainderData=new Uint8Array(M.buffer,de,M.buffer.byteLength-de));for(var Te=Se;Te<de;Te+=188)if(M[Te]===71){var ce=!!(M[Te+1]&64),be=((M[Te+1]&31)<<8)+M[Te+2],Ee=(M[Te+3]&48)>>4,ue=void 0;if(Ee>1){if(ue=Te+5+M[Te+4],ue===Te+188)continue}else ue=Te+4;switch(be){case V:ce&&(H&&(A=d(H))&&this.parseAVCPES(A,!1),H={data:[],size:0}),H&&(H.data.push(M.subarray(ue,Te+188)),H.size+=Te+188-ue);break;case D:ce&&(F&&(A=d(F))&&(L.isAAC?this.parseAACPES(A):this.parseMPEGPES(A)),F={data:[],size:0}),F&&(F.data.push(M.subarray(ue,Te+188)),F.size+=Te+188-ue);break;case W:ce&&(I&&(A=d(I))&&this.parseID3PES(A),I={data:[],size:0}),I&&(I.data.push(M.subarray(ue,Te+188)),I.size+=Te+188-ue);break;case 0:ce&&(ue+=M[ue]+1),he=this._pmtId=l(M,ue);break;case he:{ce&&(ue+=M[ue]+1);var le=h(M,ue,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,S);V=le.avc,V>0&&(U.pid=V),D=le.audio,D>0&&(L.pid=D,L.isAAC=le.isAAC),W=le.id3,W>0&&(N.pid=W),K&&!ee&&(a.logger.log("reparse from beginning"),K=!1,Te=Se-188),ee=this.pmtParsed=!0;break}case 17:case 8191:break;default:K=!0;break}}else this.observer.emit(e.Events.ERROR,e.Events.ERROR,{type:u.ErrorTypes.MEDIA_ERROR,details:u.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});U.pesData=H,L.pesData=F,N.pesData=I;var $={audioTrack:L,avcTrack:U,id3Track:N,textTrack:this._txtTrack};return _&&this.extractRemainingSamples($),$},v.flush=function(){var M=this.remainderData;this.remainderData=null;var C;return M?C=this.demux(M,-1,!1,!0):C={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(C),this.sampleAes?this.decrypt(C,this.sampleAes):C},v.extractRemainingSamples=function(M){var C=M.audioTrack,S=M.avcTrack,_=M.id3Track,A=S.pesData,U=C.pesData,L=_.pesData,N;A&&(N=d(A))?(this.parseAVCPES(N,!0),S.pesData=null):S.pesData=A,U&&(N=d(U))?(C.isAAC?this.parseAACPES(N):this.parseMPEGPES(N),C.pesData=null):(U!=null&&U.size&&a.logger.log("last AAC PES packet truncated,might overlap between fragments"),C.pesData=U),L&&(N=d(L))?(this.parseID3PES(N),_.pesData=null):_.pesData=L},v.demuxSampleAes=function(M,C,S){var _=this.demux(M,S,!0,!this.config.progressive),A=this.sampleAes=new m.default(this.observer,this.config,C);return this.decrypt(_,A)},v.decrypt=function(M,C){return new Promise(function(S){var _=M.audioTrack,A=M.avcTrack;_.samples&&_.isAAC?C.decryptAacSamples(_.samples,0,function(){A.samples?C.decryptAvcSamples(A.samples,0,0,function(){S(M)}):S(M)}):A.samples&&C.decryptAvcSamples(A.samples,0,0,function(){S(M)})})},v.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},v.parseAVCPES=function(M,C){var S=this,_=this._avcTrack,A=this.parseAVCNALu(M.data),U=!1,L=this.avcSample,N,V=!1;M.data=null,L&&A.length&&!_.audFound&&(s(L,_),L=this.avcSample=n(!1,M.pts,M.dts,"")),A.forEach(function(H){switch(H.type){case 1:{N=!0,L||(L=S.avcSample=n(!0,M.pts,M.dts,"")),U&&(L.debug+="NDR "),L.frame=!0;var D=H.data;if(V&&D.length>4){var W=new x.default(D).readSliceType();(W===2||W===4||W===7||W===9)&&(L.key=!0)}break}case 5:N=!0,L||(L=S.avcSample=n(!0,M.pts,M.dts,"")),U&&(L.debug+="IDR "),L.key=!0,L.frame=!0;break;case 6:{N=!0,U&&L&&(L.debug+="SEI ");var F=new x.default(w(H.data));F.readUByte();for(var I=0,K=0,ee=!1,he=0;!ee&&F.bytesAvailable>1;){I=0;do he=F.readUByte(),I+=he;while(he===255);K=0;do he=F.readUByte(),K+=he;while(he===255);if(I===4&&F.bytesAvailable!==0){ee=!0;var de=F.readUByte();if(de===181){var Se=F.readUShort();if(Se===49){var Te=F.readUInt();if(Te===1195456820){var ce=F.readUByte();if(ce===3){for(var be=F.readUByte(),Ee=F.readUByte(),ue=31&be,le=[be,Ee],$=0;$<ue;$++)le.push(F.readUByte()),le.push(F.readUByte()),le.push(F.readUByte());c(S._txtTrack.samples,{type:3,pts:M.pts,bytes:le})}}}}}else if(I===5&&F.bytesAvailable!==0){if(ee=!0,K>16){for(var me=[],re=0;re<16;re++)me.push(F.readUByte().toString(16)),(re===3||re===5||re===7||re===9)&&me.push("-");for(var ae=K-16,Oe=new Uint8Array(ae),se=0;se<ae;se++)Oe[se]=F.readUByte();c(S._txtTrack.samples,{pts:M.pts,payloadType:I,uuid:me.join(""),userData:Object(O.utf8ArrayToStr)(Oe),userDataBytes:Oe})}}else if(K<F.bytesAvailable)for(var te=0;te<K;te++)F.readUByte()}break}case 7:if(N=!0,V=!0,U&&L&&(L.debug+="SPS "),!_.sps){var Q=new x.default(H.data),J=Q.readSPS();_.width=J.width,_.height=J.height,_.pixelRatio=J.pixelRatio,_.sps=[H.data],_.duration=S._duration;for(var ve=H.data.subarray(1,4),_e="avc1.",Ae=0;Ae<3;Ae++){var Qe=ve[Ae].toString(16);Qe.length<2&&(Qe="0"+Qe),_e+=Qe}_.codec=_e}break;case 8:N=!0,U&&L&&(L.debug+="PPS "),_.pps||(_.pps=[H.data]);break;case 9:N=!1,_.audFound=!0,L&&s(L,_),L=S.avcSample=n(!1,M.pts,M.dts,U?"AUD ":"");break;case 12:N=!1;break;default:N=!1,L&&(L.debug+="unknown NAL "+H.type+" ");break}if(L&&N){var tt=L.units;tt.push(H)}}),C&&L&&(s(L,_),this.avcSample=null)},v.getLastNalUnit=function(){var M,C=this.avcSample,S;if(!C||C.units.length===0){var _=this._avcTrack.samples;C=_[_.length-1]}if((M=C)!==null&&M!==void 0&&M.units){var A=C.units;S=A[A.length-1]}return S},v.parseAVCNALu=function(M){var C=M.byteLength,S=this._avcTrack,_=S.naluState||0,A=_,U=[],L=0,N,V,H,D=-1,W=0;for(_===-1&&(D=0,W=M[0]&31,_=0,L=1);L<C;){if(N=M[L++],!_){_=N?0:1;continue}if(_===1){_=N?0:2;continue}if(!N)_=3;else if(N===1){if(D>=0){var F={data:M.subarray(D,L-_-1),type:W};U.push(F)}else{var I=this.getLastNalUnit();if(I&&(A&&L<=4-A&&(I.state&&(I.data=I.data.subarray(0,I.data.byteLength-A))),V=L-_-1,V>0)){var K=new Uint8Array(I.data.byteLength+V);K.set(I.data,0),K.set(M.subarray(0,V),I.data.byteLength),I.data=K,I.state=0}}L<C?(H=M[L]&31,D=L,W=H,_=0):_=-1}else _=0}if(D>=0&&_>=0){var ee={data:M.subarray(D,C),type:W,state:_};U.push(ee)}if(U.length===0){var he=this.getLastNalUnit();if(he){var de=new Uint8Array(he.data.byteLength+M.byteLength);de.set(he.data,0),de.set(M,he.data.byteLength),he.data=de}}return S.naluState=_,U},v.parseAACPES=function(M){var C=0,S=this._audioTrack,_=this.aacOverFlow,A=M.data;if(_){this.aacOverFlow=null;var U=_.sample.unit.byteLength,L=Math.min(_.missing,U),N=U-L;_.sample.unit.set(A.subarray(0,L),N),S.samples.push(_.sample),C=_.missing}var V,H;for(V=C,H=A.length;V<H-1&&!b.isHeader(A,V);V++);if(V!==C){var D,W;if(V<H-1?(D="AAC PES did not start with ADTS header,offset:"+V,W=!1):(D="no ADTS header found in AAC PES",W=!0),a.logger.warn("parsing error:"+D),this.observer.emit(e.Events.ERROR,e.Events.ERROR,{type:u.ErrorTypes.MEDIA_ERROR,details:u.ErrorDetails.FRAG_PARSING_ERROR,fatal:W,reason:D}),W)return}b.initTrackConfig(S,this.observer,A,V,this.audioCodec);var F;if(M.pts!==void 0)F=M.pts;else if(_){var I=b.getFrameDuration(S.samplerate);F=_.sample.pts+I}else{a.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}for(var K=0;V<H;)if(b.isHeader(A,V)){if(V+5<H){var ee=b.appendFrame(S,A,V,F,K);if(ee)if(ee.missing)this.aacOverFlow=ee;else{V+=ee.length,K++;continue}}break}else V++},v.parseMPEGPES=function(M){var C=M.data,S=C.length,_=0,A=0,U=M.pts;if(U===void 0){a.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;A<S;)if(y.isHeader(C,A)){var L=y.appendFrame(this._audioTrack,C,A,U,_);if(L)A+=L.length,_++;else break}else A++},v.parseID3PES=function(M){if(M.pts===void 0){a.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}this._id3Track.samples.push(M)},E}();i.minProbeByteLength=188;function n(E,v,R,M){return{key:E,frame:!1,pts:v,dts:R,units:[],debug:M,length:0}}function l(E,v){return(E[v+10]&31)<<8|E[v+11]}function h(E,v,R,M){var C={audio:-1,avc:-1,id3:-1,isAAC:!0},S=(E[v+1]&15)<<8|E[v+2],_=v+3+S-4,A=(E[v+10]&15)<<8|E[v+11];for(v+=12+A;v<_;){var U=(E[v+1]&31)<<8|E[v+2];switch(E[v]){case 207:if(!M){a.logger.log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:C.audio===-1&&(C.audio=U);break;case 21:C.id3===-1&&(C.id3=U);break;case 219:if(!M){a.logger.log("H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:C.avc===-1&&(C.avc=U);break;case 3:case 4:R?C.audio===-1&&(C.audio=U,C.isAAC=!1):a.logger.log("MPEG audio found, not supported in this browser");break;case 36:a.logger.warn("Unsupported HEVC stream type found");break;default:break}v+=((E[v+3]&15)<<8|E[v+4])+5}return C}function d(E){var v=0,R,M,C,S,_,A=E.data;if(!E||E.size===0)return null;for(;A[0].length<19&&A.length>1;){var U=new Uint8Array(A[0].length+A[1].length);U.set(A[0]),U.set(A[1],A[0].length),A[0]=U,A.splice(1,1)}R=A[0];var L=(R[0]<<16)+(R[1]<<8)+R[2];if(L===1){if(M=(R[4]<<8)+R[5],M&&M>E.size-6)return null;var N=R[7];N&192&&(S=(R[9]&14)*536870912+(R[10]&255)*4194304+(R[11]&254)*16384+(R[12]&255)*128+(R[13]&254)/2,N&64?(_=(R[14]&14)*536870912+(R[15]&255)*4194304+(R[16]&254)*16384+(R[17]&255)*128+(R[18]&254)/2,S-_>60*9e4&&(a.logger.warn(Math.round((S-_)/9e4)+"s delta between PTS and DTS, align them"),S=_)):_=S),C=R[8];var V=C+9;if(E.size<=V)return null;E.size-=V;for(var H=new Uint8Array(E.size),D=0,W=A.length;D<W;D++){R=A[D];var F=R.byteLength;if(V)if(V>F){V-=F;continue}else R=R.subarray(V),F-=V,V=0;H.set(R,v),v+=F}return M&&(M-=C+3),{data:H,pts:S,dts:_,len:M}}return null}function s(E,v){if(E.units.length&&E.frame){if(E.pts===void 0){var R=v.samples,M=R.length;if(M){var C=R[M-1];E.pts=C.pts,E.dts=C.dts}else{v.dropped++;return}}v.samples.push(E)}E.debug.length&&a.logger.log(E.pts+"/"+E.dts+":"+E.debug)}function c(E,v){var R=E.length;if(R>0){if(v.pts>=E[R-1].pts)E.push(v);else for(var M=R-1;M>=0;M--)if(v.pts<E[M].pts){E.splice(M,0,v);break}}else E.push(v)}function w(E){for(var v=E.byteLength,R=[],M=1;M<v-2;)E[M]===0&&E[M+1]===0&&E[M+2]===3?(R.push(M+2),M+=2):M++;if(R.length===0)return E;var C=v-R.length,S=new Uint8Array(C),_=0;for(M=0;M<C;_++,M++)_===R[0]&&(_++,R.shift()),S[M]=E[_];return S}g.default=i},"./src/errors.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"ErrorTypes",function(){return b}),T.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(P,g,T){"use strict";T.r(g),T.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(P,g,T){"use strict";T.r(g),T.d(g,"default",function(){return E});var b=T("./node_modules/url-toolkit/src/url-toolkit.js"),y=T.n(b),x=T("./src/loader/playlist-loader.ts"),O=T("./src/loader/key-loader.ts"),m=T("./src/controller/id3-track-controller.ts"),e=T("./src/controller/latency-controller.ts"),f=T("./src/controller/level-controller.ts"),a=T("./src/controller/fragment-tracker.ts"),u=T("./src/controller/stream-controller.ts"),r=T("./src/is-supported.ts"),i=T("./src/utils/logger.ts"),n=T("./src/config.ts"),l=T("./node_modules/eventemitter3/index.js"),h=T.n(l),d=T("./src/events.ts"),s=T("./src/errors.ts");function c(v,R){for(var M=0;M<R.length;M++){var C=R[M];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(v,C.key,C)}}function w(v,R,M){return R&&c(v.prototype,R),M&&c(v,M),v}var E=function(){v.isSupported=function(){return Object(r.isSupported)()};function v(M){M===void 0&&(M={}),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new l.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 C=this.config=Object(n.mergeConfig)(v.DefaultConfig,M);this.userConfig=M,Object(i.enableLogs)(C.debug),this._autoLevelCapping=-1,C.progressive&&Object(n.enableStreamingMode)(C);var S=C.abrController,_=C.bufferController,A=C.capLevelController,U=C.fpsController,L=this.abrController=new S(this),N=this.bufferController=new _(this),V=this.capLevelController=new A(this),H=new U(this),D=new x.default(this),W=new O.default(this),F=new m.default(this),I=this.levelController=new f.default(this),K=new a.FragmentTracker(this),ee=this.streamController=new u.default(this,K);V.setStreamController(ee),H.setStreamController(ee);var he=[I,ee];this.networkControllers=he;var de=[D,W,L,N,V,H,F,K];this.audioTrackController=this.createController(C.audioTrackController,null,he),this.createController(C.audioStreamController,K,he),this.subtitleTrackController=this.createController(C.subtitleTrackController,null,he),this.createController(C.subtitleStreamController,K,he),this.createController(C.timelineController,null,de),this.emeController=this.createController(C.emeController,null,de),this.cmcdController=this.createController(C.cmcdController,null,de),this.latencyController=this.createController(e.default,null,de),this.coreComponents=de}var R=v.prototype;return R.createController=function(C,S,_){if(C){var A=S?new C(this,S):new C(this);return _&&_.push(A),A}return null},R.on=function(C,S,_){_===void 0&&(_=this),this._emitter.on(C,S,_)},R.once=function(C,S,_){_===void 0&&(_=this),this._emitter.once(C,S,_)},R.removeAllListeners=function(C){this._emitter.removeAllListeners(C)},R.off=function(C,S,_,A){_===void 0&&(_=this),this._emitter.off(C,S,_,A)},R.listeners=function(C){return this._emitter.listeners(C)},R.emit=function(C,S,_){return this._emitter.emit(C,S,_)},R.trigger=function(C,S){if(this.config.debug)return this.emit(C,C,S);try{return this.emit(C,C,S)}catch(_){i.logger.error("An internal error happened while handling event "+C+'. Error message: "'+_.message+'". Here is a stacktrace:',_),this.trigger(d.Events.ERROR,{type:s.ErrorTypes.OTHER_ERROR,details:s.ErrorDetails.INTERNAL_EXCEPTION,fatal:!1,event:C,error:_})}return!1},R.listenerCount=function(C){return this._emitter.listenerCount(C)},R.destroy=function(){i.logger.log("destroy"),this.trigger(d.Events.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(function(C){return C.destroy()}),this.networkControllers.length=0,this.coreComponents.forEach(function(C){return C.destroy()}),this.coreComponents.length=0},R.attachMedia=function(C){i.logger.log("attachMedia"),this._media=C,this.trigger(d.Events.MEDIA_ATTACHING,{media:C})},R.detachMedia=function(){i.logger.log("detachMedia"),this.trigger(d.Events.MEDIA_DETACHING,void 0),this._media=null},R.loadSource=function(C){this.stopLoad();var S=this.media,_=this.url,A=this.url=b.buildAbsoluteURL(self.location.href,C,{alwaysNormalize:!0});i.logger.log("loadSource:"+A),S&&_&&_!==A&&this.bufferController.hasSourceTypes()&&(this.detachMedia(),this.attachMedia(S)),this.trigger(d.Events.MANIFEST_LOADING,{url:C})},R.startLoad=function(C){C===void 0&&(C=-1),i.logger.log("startLoad("+C+")"),this.networkControllers.forEach(function(S){S.startLoad(C)})},R.stopLoad=function(){i.logger.log("stopLoad"),this.networkControllers.forEach(function(C){C.stopLoad()})},R.swapAudioCodec=function(){i.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()},R.recoverMediaError=function(){i.logger.log("recoverMediaError");var C=this._media;this.detachMedia(),C&&this.attachMedia(C)},R.removeLevel=function(C,S){S===void 0&&(S=0),this.levelController.removeLevel(C,S)},w(v,[{key:"levels",get:function(){var C=this.levelController.levels;return C||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(C){i.logger.log("set currentLevel:"+C),this.loadLevel=C,this.abrController.clearTimer(),this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(C){i.logger.log("set nextLevel:"+C),this.levelController.manualLevel=C,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(C){i.logger.log("set loadLevel:"+C),this.levelController.manualLevel=C}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(C){this.levelController.nextLoadLevel=C}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(C){i.logger.log("set firstLevel:"+C),this.levelController.firstLevel=C}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(C){i.logger.log("set startLevel:"+C),C!==-1&&(C=Math.max(C,this.minAutoLevel)),this.levelController.startLevel=C}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(C){var S=!!C;S!==this.config.capLevelToPlayerSize&&(S?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=S)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(C){this._autoLevelCapping!==C&&(i.logger.log("set autoLevelCapping:"+C),this._autoLevelCapping=C)}},{key:"bandwidthEstimate",get:function(){var C=this.abrController.bwEstimator;return C?C.getEstimate():NaN}},{key:"autoLevelEnabled",get:function(){return this.levelController.manualLevel===-1}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var C=this.levels,S=this.config.minAutoBitrate;if(!C)return 0;for(var _=C.length,A=0;A<_;A++)if(C[A].maxBitrate>S)return A;return 0}},{key:"maxAutoLevel",get:function(){var C=this.levels,S=this.autoLevelCapping,_;return S===-1&&C&&C.length?_=C.length-1:_=S,_}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(C){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,C)}},{key:"audioTracks",get:function(){var C=this.audioTrackController;return C?C.audioTracks:[]}},{key:"audioTrack",get:function(){var C=this.audioTrackController;return C?C.audioTrack:-1},set:function(C){var S=this.audioTrackController;S&&(S.audioTrack=C)}},{key:"subtitleTracks",get:function(){var C=this.subtitleTrackController;return C?C.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var C=this.subtitleTrackController;return C?C.subtitleTrack:-1},set:function(C){var S=this.subtitleTrackController;S&&(S.subtitleTrack=C)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var C=this.subtitleTrackController;return C?C.subtitleDisplay:!1},set:function(C){var S=this.subtitleTrackController;S&&(S.subtitleDisplay=C)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(C){this.config.lowLatencyMode=C}},{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 d.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(C){v.defaultConfig=C}}]),v}();E.defaultConfig=void 0},"./src/is-supported.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"isSupported",function(){return x}),T.d(g,"changeTypeSupported",function(){return O});var b=T("./src/utils/mediasource-helper.ts");function y(){return self.SourceBuffer||self.WebKitSourceBuffer}function x(){var m=Object(b.getMediaSource)();if(!m)return!1;var e=y(),f=m&&typeof m.isTypeSupported=="function"&&m.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),a=!e||e.prototype&&typeof e.prototype.appendBuffer=="function"&&typeof e.prototype.remove=="function";return!!f&&!!a}function O(){var m,e=y();return typeof(e==null||((m=e.prototype)===null||m===void 0)?void 0:m.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"default",function(){return i}),T.d(g,"LoadError",function(){return l});var b=T("./src/polyfills/number.ts"),y=T("./src/errors.ts");function x(h,d){h.prototype=Object.create(d.prototype),h.prototype.constructor=h,a(h,d)}function O(h){var d=typeof Map=="function"?new Map:void 0;return O=function(c){if(c===null||!f(c))return c;if(typeof c!="function")throw new TypeError("Super expression must either be null or a function");if(typeof d!="undefined"){if(d.has(c))return d.get(c);d.set(c,w)}function w(){return m(c,arguments,u(this).constructor)}return w.prototype=Object.create(c.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),a(w,c)},O(h)}function m(h,d,s){return e()?m=Reflect.construct:m=function(w,E,v){var R=[null];R.push.apply(R,E);var M=Function.bind.apply(w,R),C=new M;return v&&a(C,v.prototype),C},m.apply(null,arguments)}function e(){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 f(h){return Function.toString.call(h).indexOf("[native code]")!==-1}function a(h,d){return a=Object.setPrototypeOf||function(c,w){return c.__proto__=w,c},a(h,d)}function u(h){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)},u(h)}var r=Math.pow(2,17),i=function(){function h(s){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=s}var d=h.prototype;return d.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},d.abort=function(){this.loader&&this.loader.abort()},d.load=function(c,w){var E=this,v=c.url;if(!v)return Promise.reject(new l({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:c,networkDetails:null},"Fragment does not have a "+(v?"part list":"url")));this.abort();var R=this.config,M=R.fLoader,C=R.loader;return new Promise(function(S,_){E.loader&&E.loader.destroy();var A=E.loader=c.loader=M?new M(R):new C(R),U=n(c),L={timeout:R.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:R.fragLoadingMaxRetryTimeout,highWaterMark:r};c.stats=A.stats,A.load(U,L,{onSuccess:function(V,H,D,W){E.resetLoader(c,A),S({frag:c,part:null,payload:V.data,networkDetails:W})},onError:function(V,H,D){E.resetLoader(c,A),_(new l({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:c,response:V,networkDetails:D}))},onAbort:function(V,H,D){E.resetLoader(c,A),_(new l({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:c,networkDetails:D}))},onTimeout:function(V,H,D){E.resetLoader(c,A),_(new l({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:c,networkDetails:D}))},onProgress:function(V,H,D,W){w&&w({frag:c,part:null,payload:D,networkDetails:W})}})})},d.loadPart=function(c,w,E){var v=this;this.abort();var R=this.config,M=R.fLoader,C=R.loader;return new Promise(function(S,_){v.loader&&v.loader.destroy();var A=v.loader=c.loader=M?new M(R):new C(R),U=n(c,w),L={timeout:R.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:R.fragLoadingMaxRetryTimeout,highWaterMark:r};w.stats=A.stats,A.load(U,L,{onSuccess:function(V,H,D,W){v.resetLoader(c,A),v.updateStatsFromPart(c,w);var F={frag:c,part:w,payload:V.data,networkDetails:W};E(F),S(F)},onError:function(V,H,D){v.resetLoader(c,A),_(new l({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:c,part:w,response:V,networkDetails:D}))},onAbort:function(V,H,D){c.stats.aborted=w.stats.aborted,v.resetLoader(c,A),_(new l({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:c,part:w,networkDetails:D}))},onTimeout:function(V,H,D){v.resetLoader(c,A),_(new l({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:c,part:w,networkDetails:D}))}})})},d.updateStatsFromPart=function(c,w){var E=c.stats,v=w.stats,R=v.total;if(E.loaded+=v.loaded,R){var M=Math.round(c.duration/w.duration),C=Math.min(Math.round(E.loaded/R),M),S=M-C,_=S*Math.round(E.loaded/C);E.total=E.loaded+_}else E.total=Math.max(E.loaded,E.total);var A=E.loading,U=v.loading;A.start?A.first+=U.first-U.start:(A.start=U.start,A.first=U.first),A.end=U.end},d.resetLoader=function(c,w){c.loader=null,this.loader===w&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),w.destroy()},h}();function n(h,d){d===void 0&&(d=null);var s=d||h,c={frag:h,part:d,responseType:"arraybuffer",url:s.url,headers:{},rangeStart:0,rangeEnd:0},w=s.byteRangeStartOffset,E=s.byteRangeEndOffset;return Object(b.isFiniteNumber)(w)&&Object(b.isFiniteNumber)(E)&&(c.rangeStart=w,c.rangeEnd=E),c}var l=function(h){x(d,h);function d(s){for(var c,w=arguments.length,E=new Array(w>1?w-1:0),v=1;v<w;v++)E[v-1]=arguments[v];return c=h.call.apply(h,[this].concat(E))||this,c.data=void 0,c.data=s,c}return d}(O(Error))},"./src/loader/fragment.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"ElementaryStreamTypes",function(){return i}),T.d(g,"BaseSegment",function(){return n}),T.d(g,"Fragment",function(){return l}),T.d(g,"Part",function(){return h});var b=T("./src/polyfills/number.ts"),y=T("./node_modules/url-toolkit/src/url-toolkit.js"),x=T.n(y),O=T("./src/utils/logger.ts"),m=T("./src/loader/level-key.ts"),e=T("./src/loader/load-stats.ts");function f(d,s){d.prototype=Object.create(s.prototype),d.prototype.constructor=d,a(d,s)}function a(d,s){return a=Object.setPrototypeOf||function(w,E){return w.__proto__=E,w},a(d,s)}function u(d,s){for(var c=0;c<s.length;c++){var w=s[c];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(d,w.key,w)}}function r(d,s,c){return s&&u(d.prototype,s),c&&u(d,c),d}var i;(function(d){d.AUDIO="audio",d.VIDEO="video",d.AUDIOVIDEO="audiovideo"})(i||(i={}));var n=function(){function d(c){var w;this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=(w={},w[i.AUDIO]=null,w[i.VIDEO]=null,w[i.AUDIOVIDEO]=null,w),this.baseurl=c}var s=d.prototype;return s.setByteRange=function(w,E){var v=w.split("@",2),R=[];v.length===1?R[0]=E?E.byteRangeEndOffset:0:R[0]=parseInt(v[1]),R[1]=parseInt(v[0])+R[0],this._byteRange=R},r(d,[{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(w){this._url=w}}]),d}(),l=function(d){f(s,d);function s(w,E){var v;return v=d.call(this,E)||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 e.LoadStats,v.urlId=0,v.data=void 0,v.bitrateTest=!1,v.title=null,v.initSegment=null,v.type=w,v}var c=s.prototype;return c.createInitializationVector=function(E){for(var v=new Uint8Array(16),R=12;R<16;R++)v[R]=E>>8*(15-R)&255;return v},c.setDecryptDataFromLevelKey=function(E,v){var R=E;return(E==null?void 0:E.method)==="AES-128"&&E.uri&&!E.iv&&(R=m.LevelKey.fromURI(E.uri),R.method=E.method,R.iv=this.createInitializationVector(v),R.keyFormat="identity"),R},c.setElementaryStreamInfo=function(E,v,R,M,C,S){S===void 0&&(S=!1);var _=this.elementaryStreams,A=_[E];if(!A){_[E]={startPTS:v,endPTS:R,startDTS:M,endDTS:C,partial:S};return}A.startPTS=Math.min(A.startPTS,v),A.endPTS=Math.max(A.endPTS,R),A.startDTS=Math.min(A.startDTS,M),A.endDTS=Math.max(A.endDTS,C)},c.clearElementaryStreamInfo=function(){var E=this.elementaryStreams;E[i.AUDIO]=null,E[i.VIDEO]=null,E[i.AUDIOVIDEO]=null},r(s,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var E=this.sn;typeof E!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&O.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),E=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,E)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(b.isFiniteNumber)(this.programDateTime))return null;var E=Object(b.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+E*1e3}},{key:"encrypted",get:function(){var E;return!!((E=this.decryptdata)!==null&&E!==void 0&&E.keyFormat&&this.decryptdata.uri)}}]),s}(n),h=function(d){f(s,d);function s(c,w,E,v,R){var M;M=d.call(this,E)||this,M.fragOffset=0,M.duration=0,M.gap=!1,M.independent=!1,M.relurl=void 0,M.fragment=void 0,M.index=void 0,M.stats=new e.LoadStats,M.duration=c.decimalFloatingPoint("DURATION"),M.gap=c.bool("GAP"),M.independent=c.bool("INDEPENDENT"),M.relurl=c.enumeratedString("URI"),M.fragment=w,M.index=v;var C=c.enumeratedString("BYTERANGE");return C&&M.setByteRange(C,R),R&&(M.fragOffset=R.fragOffset+R.duration),M}return r(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 w=this.elementaryStreams;return!!(w.audio||w.video||w.audiovideo)}}]),s}(n)},"./src/loader/key-loader.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"default",function(){return O});var b=T("./src/events.ts"),y=T("./src/errors.ts"),x=T("./src/utils/logger.ts"),O=function(){function m(f){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=f,this._registerListeners()}var e=m.prototype;return e._registerListeners=function(){this.hls.on(b.Events.KEY_LOADING,this.onKeyLoading,this)},e._unregisterListeners=function(){this.hls.off(b.Events.KEY_LOADING,this.onKeyLoading)},e.destroy=function(){this._unregisterListeners();for(var a in this.loaders){var u=this.loaders[a];u&&u.destroy()}this.loaders={}},e.onKeyLoading=function(a,u){var r=u.frag,i=r.type,n=this.loaders[i];if(!r.decryptdata){x.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var l=r.decryptdata.uri;if(l!==this.decrypturl||this.decryptkey===null){var h=this.hls.config;if(n&&(x.logger.warn("abort previous key loader for type:"+i),n.abort()),!l){x.logger.warn("key uri is falsy");return}var d=h.loader,s=r.loader=this.loaders[i]=new d(h);this.decrypturl=l,this.decryptkey=null;var c={url:l,frag:r,responseType:"arraybuffer"},w={timeout:h.fragLoadingTimeOut,maxRetry:0,retryDelay:h.fragLoadingRetryDelay,maxRetryDelay:h.fragLoadingMaxRetryTimeout,highWaterMark:0},E={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};s.load(c,w,E)}else this.decryptkey&&(r.decryptdata.key=this.decryptkey,this.hls.trigger(b.Events.KEY_LOADED,{frag:r}))},e.loadsuccess=function(a,u,r){var i=r.frag;if(!i.decryptdata){x.logger.error("after key load, decryptdata unset");return}this.decryptkey=i.decryptdata.key=new Uint8Array(a.data),i.loader=null,delete this.loaders[i.type],this.hls.trigger(b.Events.KEY_LOADED,{frag:i})},e.loaderror=function(a,u){var r=u.frag,i=r.loader;i&&i.abort(),delete this.loaders[r.type],this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:r,response:a})},e.loadtimeout=function(a,u){var r=u.frag,i=r.loader;i&&i.abort(),delete this.loaders[r.type],this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:r})},m}()},"./src/loader/level-details.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"LevelDetails",function(){return m});var b=T("./src/polyfills/number.ts");function y(e,f){for(var a=0;a<f.length;a++){var u=f[a];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,u.key,u)}}function x(e,f,a){return f&&y(e.prototype,f),a&&y(e,a),e}var O=10,m=function(){function e(a){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=a}var f=e.prototype;return f.reloaded=function(u){if(!u){this.advanced=!0,this.updated=!0;return}var r=this.lastPartSn-u.lastPartSn,i=this.lastPartIndex-u.lastPartIndex;this.updated=this.endSN!==u.endSN||!!i||!!r,this.advanced=this.endSN>u.endSN||r>0||r===0&&i>0,this.updated||this.advanced?this.misses=Math.floor(u.misses*.6):this.misses=u.misses+1,this.availabilityDelay=u.availabilityDelay},x(e,[{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||O}},{key:"drift",get:function(){var u=this.driftEndTime-this.driftStartTime;if(u>0){var r=this.driftEnd-this.driftStart;return r*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}}]),e}()},"./src/loader/level-key.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"LevelKey",function(){return m});var b=T("./node_modules/url-toolkit/src/url-toolkit.js"),y=T.n(b);function x(e,f){for(var a=0;a<f.length;a++){var u=f[a];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,u.key,u)}}function O(e,f,a){return f&&x(e.prototype,f),a&&x(e,a),e}var m=function(){e.fromURL=function(a,u){return new e(a,u)},e.fromURI=function(a){return new e(a)};function e(f,a){this._uri=null,this.method=null,this.keyFormat=null,this.keyFormatVersions=null,this.keyID=null,this.key=null,this.iv=null,a?this._uri=Object(b.buildAbsoluteURL)(f,a,{alwaysNormalize:!0}):this._uri=f}return O(e,[{key:"uri",get:function(){return this._uri}}]),e}()},"./src/loader/load-stats.ts":function(P,g,T){"use strict";T.r(g),T.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(P,g,T){"use strict";T.r(g),T.d(g,"default",function(){return s});var b=T("./src/polyfills/number.ts"),y=T("./node_modules/url-toolkit/src/url-toolkit.js"),x=T.n(y),O=T("./src/loader/fragment.ts"),m=T("./src/loader/level-details.ts"),e=T("./src/loader/level-key.ts"),f=T("./src/utils/attr-list.ts"),a=T("./src/utils/logger.ts"),u=T("./src/utils/codecs.ts"),r=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-SESSION-DATA:([^\r\n]*)[\r\n]+/g,i=/#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"),l=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 d(R){var M,C;return h.test((M=(C=y.parseURL(R))===null||C===void 0?void 0:C.path)!=null?M:"")}var s=function(){function R(){}return R.findGroup=function(C,S){for(var _=0;_<C.length;_++){var A=C[_];if(A.id===S)return A}},R.convertAVC1ToAVCOTI=function(C){var S=C.split(".");if(S.length>2){var _=S.shift()+".";return _+=parseInt(S.shift()).toString(16),_+=("000"+parseInt(S.shift()).toString(16)).substr(-4),_}return C},R.resolve=function(C,S){return y.buildAbsoluteURL(S,C,{alwaysNormalize:!0})},R.parseMasterPlaylist=function(C,S){var _=[],A={},U=!1;r.lastIndex=0;for(var L;(L=r.exec(C))!=null;)if(L[1]){var N=new f.AttrList(L[1]),V={attrs:N,bitrate:N.decimalInteger("AVERAGE-BANDWIDTH")||N.decimalInteger("BANDWIDTH"),name:N.NAME,url:R.resolve(L[2],S)},H=N.decimalResolution("RESOLUTION");H&&(V.width=H.width,V.height=H.height),c((N.CODECS||"").split(/[ ,]+/).filter(function(W){return W}),V),V.videoCodec&&V.videoCodec.indexOf("avc1")!==-1&&(V.videoCodec=R.convertAVC1ToAVCOTI(V.videoCodec)),_.push(V)}else if(L[3]){var D=new f.AttrList(L[3]);D["DATA-ID"]&&(U=!0,A[D["DATA-ID"]]=D)}return{levels:_,sessionData:U?A:null}},R.parseMasterPlaylistMedia=function(C,S,_,A){A===void 0&&(A=[]);var U,L=[],N=0;for(i.lastIndex=0;(U=i.exec(C))!==null;){var V=new f.AttrList(U[1]);if(V.TYPE===_){var H={attrs:V,bitrate:0,id:N++,groupId:V["GROUP-ID"],instreamId:V["INSTREAM-ID"],name:V.NAME||V.LANGUAGE||"",type:_,default:V.bool("DEFAULT"),autoselect:V.bool("AUTOSELECT"),forced:V.bool("FORCED"),lang:V.LANGUAGE,url:V.URI?R.resolve(V.URI,S):""};if(A.length){var D=R.findGroup(A,H.groupId)||A[0];w(H,D,"audioCodec"),w(H,D,"textCodec")}L.push(H)}}return L},R.parseLevelPlaylist=function(C,S,_,A,U){var L=new m.LevelDetails(S),N=L.fragments,V=null,H=0,D=0,W=0,F=0,I=null,K=new O.Fragment(A,S),ee,he,de,Se=-1,Te=!1;for(n.lastIndex=0,L.m3u8=C;(ee=n.exec(C))!==null;){Te&&(Te=!1,K=new O.Fragment(A,S),K.start=W,K.sn=H,K.cc=F,K.level=_,V&&(K.initSegment=V,K.rawProgramDateTime=V.rawProgramDateTime));var ce=ee[1];if(ce){K.duration=parseFloat(ce);var be=(" "+ee[2]).slice(1);K.title=be||null,K.tagList.push(be?["INF",ce,be]:["INF",ce])}else if(ee[3])Object(b.isFiniteNumber)(K.duration)&&(K.start=W,de&&(K.levelkey=de),K.sn=H,K.level=_,K.cc=F,K.urlId=U,N.push(K),K.relurl=(" "+ee[3]).slice(1),v(K,I),I=K,W+=K.duration,H++,D=0,Te=!0);else if(ee[4]){var Ee=(" "+ee[4]).slice(1);I?K.setByteRange(Ee,I):K.setByteRange(Ee)}else if(ee[5])K.rawProgramDateTime=(" "+ee[5]).slice(1),K.tagList.push(["PROGRAM-DATE-TIME",K.rawProgramDateTime]),Se===-1&&(Se=N.length);else{if(ee=ee[0].match(l),!ee){a.logger.warn("No matches on slow regex match for level playlist!");continue}for(he=1;he<ee.length&&!(typeof ee[he]!="undefined");he++);var ue=(" "+ee[he]).slice(1),le=(" "+ee[he+1]).slice(1),$=ee[he+2]?(" "+ee[he+2]).slice(1):"";switch(ue){case"PLAYLIST-TYPE":L.type=le.toUpperCase();break;case"MEDIA-SEQUENCE":H=L.startSN=parseInt(le);break;case"SKIP":{var me=new f.AttrList(le),re=me.decimalInteger("SKIPPED-SEGMENTS");if(Object(b.isFiniteNumber)(re)){L.skippedSegments=re;for(var ae=re;ae--;)N.unshift(null);H+=re}var Oe=me.enumeratedString("RECENTLY-REMOVED-DATERANGES");Oe&&(L.recentlyRemovedDateranges=Oe.split(" "));break}case"TARGETDURATION":L.targetduration=parseFloat(le);break;case"VERSION":L.version=parseInt(le);break;case"EXTM3U":break;case"ENDLIST":L.live=!1;break;case"#":(le||$)&&K.tagList.push($?[le,$]:[le]);break;case"DIS":F++;case"GAP":K.tagList.push([ue]);break;case"BITRATE":K.tagList.push([ue,le]);break;case"DISCONTINUITY-SEQ":F=parseInt(le);break;case"KEY":{var se,te=new f.AttrList(le),Q=te.enumeratedString("METHOD"),J=te.URI,ve=te.hexadecimalInteger("IV"),_e=te.enumeratedString("KEYFORMATVERSIONS"),Ae=te.enumeratedString("KEYID"),Qe=(se=te.enumeratedString("KEYFORMAT"))!=null?se:"identity",tt=["com.apple.streamingkeydelivery","com.microsoft.playready","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","com.widevine"];if(tt.indexOf(Qe)>-1){a.logger.warn("Keyformat "+Qe+" is not supported from the manifest");continue}else if(Qe!=="identity")continue;Q&&(de=e.LevelKey.fromURL(S,J),J&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(Q)>=0&&(de.method=Q,de.keyFormat=Qe,Ae&&(de.keyID=Ae),_e&&(de.keyFormatVersions=_e),de.iv=ve));break}case"START":{var dt=new f.AttrList(le),mt=dt.decimalFloatingPoint("TIME-OFFSET");Object(b.isFiniteNumber)(mt)&&(L.startTimeOffset=mt);break}case"MAP":{var vt=new f.AttrList(le);K.relurl=vt.URI,vt.BYTERANGE&&K.setByteRange(vt.BYTERANGE),K.level=_,K.sn="initSegment",de&&(K.levelkey=de),K.initSegment=null,V=K,Te=!0;break}case"SERVER-CONTROL":{var yt=new f.AttrList(le);L.canBlockReload=yt.bool("CAN-BLOCK-RELOAD"),L.canSkipUntil=yt.optionalFloat("CAN-SKIP-UNTIL",0),L.canSkipDateRanges=L.canSkipUntil>0&&yt.bool("CAN-SKIP-DATERANGES"),L.partHoldBack=yt.optionalFloat("PART-HOLD-BACK",0),L.holdBack=yt.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var Ye=new f.AttrList(le);L.partTarget=Ye.decimalFloatingPoint("PART-TARGET");break}case"PART":{var Ue=L.partList;Ue||(Ue=L.partList=[]);var ft=D>0?Ue[Ue.length-1]:void 0,jt=D++,bt=new O.Part(new f.AttrList(le),K,S,jt,ft);Ue.push(bt),K.duration+=bt.duration;break}case"PRELOAD-HINT":{var Pt=new f.AttrList(le);L.preloadHint=Pt;break}case"RENDITION-REPORT":{var it=new f.AttrList(le);L.renditionReports=L.renditionReports||[],L.renditionReports.push(it);break}default:a.logger.warn("line parsed but not handled: "+ee);break}}}I&&!I.relurl?(N.pop(),W-=I.duration,L.partList&&(L.fragmentHint=I)):L.partList&&(v(K,I),K.cc=F,L.fragmentHint=K);var He=N.length,Ge=N[0],Ce=N[He-1];if(W+=L.skippedSegments*L.targetduration,W>0&&He&&Ce){L.averagetargetduration=W/He;var Ie=Ce.sn;L.endSN=Ie!=="initSegment"?Ie:0,Ge&&(L.startCC=Ge.cc,Ge.initSegment||L.fragments.every(function(Fe){return Fe.relurl&&d(Fe.relurl)})&&(a.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),K=new O.Fragment(A,S),K.relurl=Ce.relurl,K.level=_,K.sn="initSegment",Ge.initSegment=K,L.needSidxRanges=!0))}else L.endSN=0,L.startCC=0;return L.fragmentHint&&(W+=L.fragmentHint.duration),L.totalduration=W,L.endCC=F,Se>0&&E(N,Se),L},R}();function c(R,M){["video","audio","text"].forEach(function(C){var S=R.filter(function(A){return Object(u.isCodecType)(A,C)});if(S.length){var _=S.filter(function(A){return A.lastIndexOf("avc1",0)===0||A.lastIndexOf("mp4a",0)===0});M[C+"Codec"]=_.length>0?_[0]:S[0],R=R.filter(function(A){return S.indexOf(A)===-1})}}),M.unknownCodecs=R}function w(R,M,C){var S=M[C];S&&(R[C]=S)}function E(R,M){for(var C=R[M],S=M;S--;){var _=R[S];if(!_)return;_.programDateTime=C.programDateTime-_.duration*1e3,C=_}}function v(R,M){R.rawProgramDateTime?R.programDateTime=Date.parse(R.rawProgramDateTime):M!=null&&M.programDateTime&&(R.programDateTime=M.endProgramDateTime),Object(b.isFiniteNumber)(R.programDateTime)||(R.programDateTime=null,R.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(P,g,T){"use strict";T.r(g);var b=T("./src/polyfills/number.ts"),y=T("./src/events.ts"),x=T("./src/errors.ts"),O=T("./src/utils/logger.ts"),m=T("./src/utils/mp4-tools.ts"),e=T("./src/loader/m3u8-parser.ts"),f=T("./src/types/loader.ts"),a=T("./src/utils/attr-list.ts");function u(n){var l=n.type;switch(l){case f.PlaylistContextType.AUDIO_TRACK:return f.PlaylistLevelType.AUDIO;case f.PlaylistContextType.SUBTITLE_TRACK:return f.PlaylistLevelType.SUBTITLE;default:return f.PlaylistLevelType.MAIN}}function r(n,l){var h=n.url;return(h===void 0||h.indexOf("data:")===0)&&(h=l.url),h}var i=function(){function n(h){this.hls=void 0,this.loaders=Object.create(null),this.hls=h,this.registerListeners()}var l=n.prototype;return l.registerListeners=function(){var d=this.hls;d.on(y.Events.MANIFEST_LOADING,this.onManifestLoading,this),d.on(y.Events.LEVEL_LOADING,this.onLevelLoading,this),d.on(y.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),d.on(y.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},l.unregisterListeners=function(){var d=this.hls;d.off(y.Events.MANIFEST_LOADING,this.onManifestLoading,this),d.off(y.Events.LEVEL_LOADING,this.onLevelLoading,this),d.off(y.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),d.off(y.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},l.createInternalLoader=function(d){var s=this.hls.config,c=s.pLoader,w=s.loader,E=c||w,v=new E(s);return d.loader=v,this.loaders[d.type]=v,v},l.getInternalLoader=function(d){return this.loaders[d.type]},l.resetInternalLoader=function(d){this.loaders[d]&&delete this.loaders[d]},l.destroyInternalLoaders=function(){for(var d in this.loaders){var s=this.loaders[d];s&&s.destroy(),this.resetInternalLoader(d)}},l.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},l.onManifestLoading=function(d,s){var c=s.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:f.PlaylistContextType.MANIFEST,url:c,deliveryDirectives:null})},l.onLevelLoading=function(d,s){var c=s.id,w=s.level,E=s.url,v=s.deliveryDirectives;this.load({id:c,groupId:null,level:w,responseType:"text",type:f.PlaylistContextType.LEVEL,url:E,deliveryDirectives:v})},l.onAudioTrackLoading=function(d,s){var c=s.id,w=s.groupId,E=s.url,v=s.deliveryDirectives;this.load({id:c,groupId:w,level:null,responseType:"text",type:f.PlaylistContextType.AUDIO_TRACK,url:E,deliveryDirectives:v})},l.onSubtitleTrackLoading=function(d,s){var c=s.id,w=s.groupId,E=s.url,v=s.deliveryDirectives;this.load({id:c,groupId:w,level:null,responseType:"text",type:f.PlaylistContextType.SUBTITLE_TRACK,url:E,deliveryDirectives:v})},l.load=function(d){var s,c=this.hls.config,w=this.getInternalLoader(d);if(w){var E=w.context;if(E&&E.url===d.url){O.logger.trace("[playlist-loader]: playlist request ongoing");return}O.logger.log("[playlist-loader]: aborting previous loader for type: "+d.type),w.abort()}var v,R,M,C;switch(d.type){case f.PlaylistContextType.MANIFEST:v=c.manifestLoadingMaxRetry,R=c.manifestLoadingTimeOut,M=c.manifestLoadingRetryDelay,C=c.manifestLoadingMaxRetryTimeout;break;case f.PlaylistContextType.LEVEL:case f.PlaylistContextType.AUDIO_TRACK:case f.PlaylistContextType.SUBTITLE_TRACK:v=0,R=c.levelLoadingTimeOut;break;default:v=c.levelLoadingMaxRetry,R=c.levelLoadingTimeOut,M=c.levelLoadingRetryDelay,C=c.levelLoadingMaxRetryTimeout;break}if(w=this.createInternalLoader(d),(s=d.deliveryDirectives)!==null&&s!==void 0&&s.part){var S;if(d.type===f.PlaylistContextType.LEVEL&&d.level!==null?S=this.hls.levels[d.level].details:d.type===f.PlaylistContextType.AUDIO_TRACK&&d.id!==null?S=this.hls.audioTracks[d.id].details:d.type===f.PlaylistContextType.SUBTITLE_TRACK&&d.id!==null&&(S=this.hls.subtitleTracks[d.id].details),S){var _=S.partTarget,A=S.targetduration;_&&A&&(R=Math.min(Math.max(_*3,A*.8)*1e3,R))}}var U={timeout:R,maxRetry:v,retryDelay:M,maxRetryDelay:C,highWaterMark:0},L={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};w.load(d,U,L)},l.loadsuccess=function(d,s,c,w){if(w===void 0&&(w=null),c.isSidxRequest){this.handleSidxRequest(d,c),this.handlePlaylistLoaded(d,s,c,w);return}this.resetInternalLoader(c.type);var E=d.data;if(E.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(d,c,"no EXTM3U delimiter",w);return}s.parsing.start=performance.now(),E.indexOf("#EXTINF:")>0||E.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(d,s,c,w):this.handleMasterPlaylist(d,s,c,w)},l.loaderror=function(d,s,c){c===void 0&&(c=null),this.handleNetworkError(s,c,!1,d)},l.loadtimeout=function(d,s,c){c===void 0&&(c=null),this.handleNetworkError(s,c,!0)},l.handleMasterPlaylist=function(d,s,c,w){var E=this.hls,v=d.data,R=r(d,c),M=e.default.parseMasterPlaylist(v,R),C=M.levels,S=M.sessionData;if(!C.length){this.handleManifestParsingError(d,c,"no level found in manifest",w);return}var _=C.map(function(H){return{id:H.attrs.AUDIO,audioCodec:H.audioCodec}}),A=C.map(function(H){return{id:H.attrs.SUBTITLES,textCodec:H.textCodec}}),U=e.default.parseMasterPlaylistMedia(v,R,"AUDIO",_),L=e.default.parseMasterPlaylistMedia(v,R,"SUBTITLES",A),N=e.default.parseMasterPlaylistMedia(v,R,"CLOSED-CAPTIONS");if(U.length){var V=U.some(function(H){return!H.url});!V&&C[0].audioCodec&&!C[0].attrs.AUDIO&&(O.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),U.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new a.AttrList({}),bitrate:0,url:""}))}E.trigger(y.Events.MANIFEST_LOADED,{levels:C,audioTracks:U,subtitles:L,captions:N,url:R,stats:s,networkDetails:w,sessionData:S})},l.handleTrackOrLevelPlaylist=function(d,s,c,w){var E=this.hls,v=c.id,R=c.level,M=c.type,C=r(d,c),S=Object(b.isFiniteNumber)(v)?v:0,_=Object(b.isFiniteNumber)(R)?R:S,A=u(c),U=e.default.parseLevelPlaylist(d.data,C,_,A,S);if(!U.fragments.length){E.trigger(y.Events.ERROR,{type:x.ErrorTypes.NETWORK_ERROR,details:x.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:C,reason:"no fragments found in level",level:typeof c.level=="number"?c.level:void 0});return}if(M===f.PlaylistContextType.MANIFEST){var L={attrs:new a.AttrList({}),bitrate:0,details:U,name:"",url:C};E.trigger(y.Events.MANIFEST_LOADED,{levels:[L],audioTracks:[],url:C,stats:s,networkDetails:w,sessionData:null})}if(s.parsing.end=performance.now(),U.needSidxRanges){var N,V=(N=U.fragments[0].initSegment)===null||N===void 0?void 0:N.url;this.load({url:V,isSidxRequest:!0,type:M,level:R,levelDetails:U,id:v,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}c.levelDetails=U,this.handlePlaylistLoaded(d,s,c,w)},l.handleSidxRequest=function(d,s){var c=Object(m.parseSegmentIndex)(new Uint8Array(d.data));if(!c)return;var w=c.references,E=s.levelDetails;w.forEach(function(v,R){var M=v.info,C=E.fragments[R];C.byteRange.length===0&&C.setByteRange(String(1+M.end-M.start)+"@"+String(M.start)),C.initSegment&&C.initSegment.setByteRange(String(c.moovEndOffset)+"@0")})},l.handleManifestParsingError=function(d,s,c,w){this.hls.trigger(y.Events.ERROR,{type:x.ErrorTypes.NETWORK_ERROR,details:x.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:s.type===f.PlaylistContextType.MANIFEST,url:d.url,reason:c,response:d,context:s,networkDetails:w})},l.handleNetworkError=function(d,s,c,w){c===void 0&&(c=!1),O.logger.warn("[playlist-loader]: A network "+(c?"timeout":"error")+" occurred while loading "+d.type+" level: "+d.level+" id: "+d.id+' group-id: "'+d.groupId+'"');var E=x.ErrorDetails.UNKNOWN,v=!1,R=this.getInternalLoader(d);switch(d.type){case f.PlaylistContextType.MANIFEST:E=c?x.ErrorDetails.MANIFEST_LOAD_TIMEOUT:x.ErrorDetails.MANIFEST_LOAD_ERROR,v=!0;break;case f.PlaylistContextType.LEVEL:E=c?x.ErrorDetails.LEVEL_LOAD_TIMEOUT:x.ErrorDetails.LEVEL_LOAD_ERROR,v=!1;break;case f.PlaylistContextType.AUDIO_TRACK:E=c?x.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:x.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,v=!1;break;case f.PlaylistContextType.SUBTITLE_TRACK:E=c?x.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:x.ErrorDetails.SUBTITLE_LOAD_ERROR,v=!1;break}R&&this.resetInternalLoader(d.type);var M={type:x.ErrorTypes.NETWORK_ERROR,details:E,fatal:v,url:d.url,loader:R,context:d,networkDetails:s};w&&(M.response=w),this.hls.trigger(y.Events.ERROR,M)},l.handlePlaylistLoaded=function(d,s,c,w){var E=c.type,v=c.level,R=c.id,M=c.groupId,C=c.loader,S=c.levelDetails,_=c.deliveryDirectives;if(!(S!=null&&S.targetduration)){this.handleManifestParsingError(d,c,"invalid target duration",w);return}if(!C)return;S.live&&(C.getCacheAge&&(S.ageHeader=C.getCacheAge()||0),(!C.getCacheAge||isNaN(S.ageHeader))&&(S.ageHeader=0));switch(E){case f.PlaylistContextType.MANIFEST:case f.PlaylistContextType.LEVEL:this.hls.trigger(y.Events.LEVEL_LOADED,{details:S,level:v||0,id:R||0,stats:s,networkDetails:w,deliveryDirectives:_});break;case f.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(y.Events.AUDIO_TRACK_LOADED,{details:S,id:R||0,groupId:M||"",stats:s,networkDetails:w,deliveryDirectives:_});break;case f.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(y.Events.SUBTITLE_TRACK_LOADED,{details:S,id:R||0,groupId:M||"",stats:s,networkDetails:w,deliveryDirectives:_});break}},n}();g.default=i},"./src/polyfills/number.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"isFiniteNumber",function(){return b}),T.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(P,g,T){"use strict";T.r(g);var b=function(){function y(){}return y.getSilentFrame=function(O,m){switch(O){case"mp4a.40.2":if(m===1)return new Uint8Array([0,200,0,128,35,128]);if(m===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(m===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(m===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(m===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(m===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(m===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(m===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(m===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(P,g,T){"use strict";T.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 m;for(m in x.types)x.types.hasOwnProperty(m)&&(x.types[m]=[m.charCodeAt(0),m.charCodeAt(1),m.charCodeAt(2),m.charCodeAt(3)]);var e=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]),f=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:e,audio:f};var a=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 r=new Uint8Array([105,115,111,109]),i=new Uint8Array([97,118,99,49]),n=new Uint8Array([0,0,0,1]);x.FTYP=x.box(x.types.ftyp,r,n,r,i),x.DINF=x.box(x.types.dinf,x.box(x.types.dref,a))},x.box=function(m){for(var e=8,f=arguments.length,a=new Array(f>1?f-1:0),u=1;u<f;u++)a[u-1]=arguments[u];for(var r=a.length,i=r;r--;)e+=a[r].byteLength;var n=new Uint8Array(e);for(n[0]=e>>24&255,n[1]=e>>16&255,n[2]=e>>8&255,n[3]=e&255,n.set(m,4),r=0,e=8;r<i;r++)n.set(a[r],e),e+=a[r].byteLength;return n},x.hdlr=function(m){return x.box(x.types.hdlr,x.HDLR_TYPES[m])},x.mdat=function(m){return x.box(x.types.mdat,m)},x.mdhd=function(m,e){e*=m;var f=Math.floor(e/(b+1)),a=Math.floor(e%(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,m>>24&255,m>>16&255,m>>8&255,m&255,f>>24,f>>16&255,f>>8&255,f&255,a>>24,a>>16&255,a>>8&255,a&255,85,196,0,0]))},x.mdia=function(m){return x.box(x.types.mdia,x.mdhd(m.timescale,m.duration),x.hdlr(m.type),x.minf(m))},x.mfhd=function(m){return x.box(x.types.mfhd,new Uint8Array([0,0,0,0,m>>24,m>>16&255,m>>8&255,m&255]))},x.minf=function(m){return m.type==="audio"?x.box(x.types.minf,x.box(x.types.smhd,x.SMHD),x.DINF,x.stbl(m)):x.box(x.types.minf,x.box(x.types.vmhd,x.VMHD),x.DINF,x.stbl(m))},x.moof=function(m,e,f){return x.box(x.types.moof,x.mfhd(m),x.traf(f,e))},x.moov=function(m){for(var e=m.length,f=[];e--;)f[e]=x.trak(m[e]);return x.box.apply(null,[x.types.moov,x.mvhd(m[0].timescale,m[0].duration)].concat(f).concat(x.mvex(m)))},x.mvex=function(m){for(var e=m.length,f=[];e--;)f[e]=x.trex(m[e]);return x.box.apply(null,[x.types.mvex].concat(f))},x.mvhd=function(m,e){e*=m;var f=Math.floor(e/(b+1)),a=Math.floor(e%(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,m>>24&255,m>>16&255,m>>8&255,m&255,f>>24,f>>16&255,f>>8&255,f&255,a>>24,a>>16&255,a>>8&255,a&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(m){var e=m.samples||[],f=new Uint8Array(4+e.length),a,u;for(a=0;a<e.length;a++)u=e[a].flags,f[a+4]=u.dependsOn<<4|u.isDependedOn<<2|u.hasRedundancy;return x.box(x.types.sdtp,f)},x.stbl=function(m){return x.box(x.types.stbl,x.stsd(m),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(m){var e=[],f=[],a,u,r;for(a=0;a<m.sps.length;a++)u=m.sps[a],r=u.byteLength,e.push(r>>>8&255),e.push(r&255),e=e.concat(Array.prototype.slice.call(u));for(a=0;a<m.pps.length;a++)u=m.pps[a],r=u.byteLength,f.push(r>>>8&255),f.push(r&255),f=f.concat(Array.prototype.slice.call(u));var i=x.box(x.types.avcC,new Uint8Array([1,e[3],e[4],e[5],252|3,224|m.sps.length].concat(e).concat([m.pps.length]).concat(f))),n=m.width,l=m.height,h=m.pixelRatio[0],d=m.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,l>>8&255,l&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]),i,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,d>>24,d>>16&255,d>>8&255,d&255])))},x.esds=function(m){var e=m.config.length;return new Uint8Array([0,0,0,0,3,23+e,0,1,0,4,15+e,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([e]).concat(m.config).concat([6,1,2]))},x.mp4a=function(m){var e=m.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,m.channelCount,0,16,0,0,0,0,e>>8&255,e&255,0,0]),x.box(x.types.esds,x.esds(m)))},x.mp3=function(m){var e=m.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,m.channelCount,0,16,0,0,0,0,e>>8&255,e&255,0,0]))},x.stsd=function(m){return m.type==="audio"?!m.isAAC&&m.codec==="mp3"?x.box(x.types.stsd,x.STSD,x.mp3(m)):x.box(x.types.stsd,x.STSD,x.mp4a(m)):x.box(x.types.stsd,x.STSD,x.avc1(m))},x.tkhd=function(m){var e=m.id,f=m.duration*m.timescale,a=m.width,u=m.height,r=Math.floor(f/(b+1)),i=Math.floor(f%(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,e>>24&255,e>>16&255,e>>8&255,e&255,0,0,0,0,r>>24,r>>16&255,r>>8&255,r&255,i>>24,i>>16&255,i>>8&255,i&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,a>>8&255,a&255,0,0,u>>8&255,u&255,0,0]))},x.traf=function(m,e){var f=x.sdtp(m),a=m.id,u=Math.floor(e/(b+1)),r=Math.floor(e%(b+1));return x.box(x.types.traf,x.box(x.types.tfhd,new Uint8Array([0,0,0,0,a>>24,a>>16&255,a>>8&255,a&255])),x.box(x.types.tfdt,new Uint8Array([1,0,0,0,u>>24,u>>16&255,u>>8&255,u&255,r>>24,r>>16&255,r>>8&255,r&255])),x.trun(m,f.length+16+20+8+16+8+8),f)},x.trak=function(m){return m.duration=m.duration||4294967295,x.box(x.types.trak,x.tkhd(m),x.mdia(m))},x.trex=function(m){var e=m.id;return x.box(x.types.trex,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,e&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},x.trun=function(m,e){var f=m.samples||[],a=f.length,u=12+16*a,r=new Uint8Array(u),i,n,l,h,d,s;for(e+=8+u,r.set([0,0,15,1,a>>>24&255,a>>>16&255,a>>>8&255,a&255,e>>>24&255,e>>>16&255,e>>>8&255,e&255],0),i=0;i<a;i++)n=f[i],l=n.duration,h=n.size,d=n.flags,s=n.cts,r.set([l>>>24&255,l>>>16&255,l>>>8&255,l&255,h>>>24&255,h>>>16&255,h>>>8&255,h&255,d.isLeading<<2|d.dependsOn,d.isDependedOn<<6|d.hasRedundancy<<4|d.paddingValue<<1|d.isNonSync,d.degradPrio&240<<8,d.degradPrio&15,s>>>24&255,s>>>16&255,s>>>8&255,s&255],12+16*i);return x.box(x.types.trun,r)},x.initSegment=function(m){x.types||x.init();var e=x.moov(m),f=new Uint8Array(x.FTYP.byteLength+e.byteLength);return f.set(x.FTYP),f.set(e,x.FTYP.byteLength),f},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(P,g,T){"use strict";T.r(g),T.d(g,"default",function(){return s}),T.d(g,"normalizePts",function(){return c});var b=T("./src/polyfills/number.ts"),y=T("./src/remux/aac-helper.ts"),x=T("./src/remux/mp4-generator.ts"),O=T("./src/events.ts"),m=T("./src/errors.ts"),e=T("./src/utils/logger.ts"),f=T("./src/types/loader.ts"),a=T("./src/utils/timescale-conversion.ts");function u(){return u=Object.assign||function(R){for(var M=1;M<arguments.length;M++){var C=arguments[M];for(var S in C)Object.prototype.hasOwnProperty.call(C,S)&&(R[S]=C[S])}return R},u.apply(this,arguments)}var r=10*1e3,i=1024,n=1152,l=null,h=null,d=!1,s=function(){function R(C,S,_,A){if(A===void 0&&(A=""),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=C,this.config=S,this.typeSupported=_,this.ISGenerated=!1,l===null){var U=navigator.userAgent||"",L=U.match(/Chrome\/(\d+)/i);l=L?parseInt(L[1]):0}if(h===null){var N=navigator.userAgent.match(/Safari\/(\d+)/i);h=N?parseInt(N[1]):0}d=!!l&&l<75||!!h&&h<600}var M=R.prototype;return M.destroy=function(){},M.resetTimeStamp=function(S){e.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=S},M.resetNextTimestamp=function(){e.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1},M.resetInitSegment=function(){e.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1},M.getVideoStartPts=function(S){var _=!1,A=S.reduce(function(U,L){var N=L.pts-U;return N<-4294967296?(_=!0,c(U,L.pts)):N>0?U:L.pts},S[0].pts);return _&&e.logger.debug("PTS rollover detected"),A},M.remux=function(S,_,A,U,L,N,V,H){var D,W,F,I,K,ee,he=L,de=L,Se=S.pid>-1,Te=_.pid>-1,ce=_.samples.length,be=S.samples.length>0,Ee=ce>1,ue=(!Se||be)&&(!Te||Ee)||this.ISGenerated||V;if(ue){this.ISGenerated||(F=this.generateIS(S,_,L));var le=this.isVideoContiguous,$=-1;if(Ee&&($=w(_.samples),!le&&this.config.forceKeyFrameOnDiscontinuity))if(ee=!0,$>0){e.logger.warn("[mp4-remuxer]: Dropped "+$+" out of "+ce+" video samples due to a missing keyframe");var me=this.getVideoStartPts(_.samples);_.samples=_.samples.slice($),_.dropped+=$,de+=(_.samples[0].pts-me)/(_.timescale||9e4)}else $===-1&&(e.logger.warn("[mp4-remuxer]: No keyframe found out of "+ce+" video samples"),ee=!1);if(this.ISGenerated){if(be&&Ee){var re=this.getVideoStartPts(_.samples),ae=c(S.samples[0].pts,re)-re,Oe=ae/_.inputTimeScale;he+=Math.max(0,Oe),de+=Math.max(0,-Oe)}if(be){if(S.samplerate||(e.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),F=this.generateIS(S,_,L)),W=this.remuxAudio(S,he,this.isAudioContiguous,N,Te||Ee||H===f.PlaylistLevelType.AUDIO?de:void 0),Ee){var se=W?W.endPTS-W.startPTS:0;_.inputTimeScale||(e.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),F=this.generateIS(S,_,L)),D=this.remuxVideo(_,de,le,se)}}else Ee&&(D=this.remuxVideo(_,de,le,0));D&&(D.firstKeyFrame=$,D.independent=$!==-1)}}return this.ISGenerated&&(A.samples.length&&(K=this.remuxID3(A,L)),U.samples.length&&(I=this.remuxText(U,L))),{audio:W,video:D,initSegment:F,independent:ee,text:I,id3:K}},M.generateIS=function(S,_,A){var U=S.samples,L=_.samples,N=this.typeSupported,V={},H=!Object(b.isFiniteNumber)(this._initPTS),D="audio/mp4",W,F,I;if(H&&(W=F=Infinity),S.config&&U.length&&(S.timescale=S.samplerate,S.isAAC||(N.mpeg?(D="audio/mpeg",S.codec=""):N.mp3&&(S.codec="mp3")),V.audio={id:"audio",container:D,codec:S.codec,initSegment:!S.isAAC&&N.mpeg?new Uint8Array(0):x.default.initSegment([S]),metadata:{channelCount:S.channelCount}},H&&(I=S.inputTimeScale,W=F=U[0].pts-Math.round(I*A))),_.sps&&_.pps&&L.length&&(_.timescale=_.inputTimeScale,V.video={id:"main",container:"video/mp4",codec:_.codec,initSegment:x.default.initSegment([_]),metadata:{width:_.width,height:_.height}},H)){I=_.inputTimeScale;var K=this.getVideoStartPts(L),ee=Math.round(I*A);F=Math.min(F,c(L[0].dts,K)-ee),W=Math.min(W,K-ee)}if(Object.keys(V).length)return this.ISGenerated=!0,H&&(this._initPTS=W,this._initDTS=F),{tracks:V,initPTS:W,timescale:I}},M.remuxVideo=function(S,_,A,U){var L=S.inputTimeScale,N=S.samples,V=[],H=N.length,D=this._initPTS,W=this.nextAvcDts,F=8,I,K,ee,he=Number.POSITIVE_INFINITY,de=Number.NEGATIVE_INFINITY,Se=0,Te=!1;if(!A||W===null){var ce=_*L,be=N[0].pts-c(N[0].dts,N[0].pts);W=ce-be}for(var Ee=0;Ee<H;Ee++){var ue=N[Ee];if(ue.pts=c(ue.pts-D,W),ue.dts=c(ue.dts-D,W),ue.dts>ue.pts){var le=9e4*.2;Se=Math.max(Math.min(Se,ue.pts-ue.dts),-1*le)}ue.dts<N[Ee>0?Ee-1:Ee].dts&&(Te=!0)}Te&&N.sort(function(Ct,Ke){var et=Ct.dts-Ke.dts,at=Ct.pts-Ke.pts;return et||at}),K=N[0].dts,ee=N[N.length-1].dts;var $=Math.round((ee-K)/(H-1));if(Se<0){if(Se<$*-2){e.logger.warn("PTS < DTS detected in video samples, offsetting DTS from PTS by "+Object(a.toMsFromMpegTsClock)(-$,!0)+" ms");for(var me=Se,re=0;re<H;re++)N[re].dts=me=Math.max(me,N[re].pts-$),N[re].pts=Math.max(me,N[re].pts)}else{e.logger.warn("PTS < DTS detected in video samples, shifting DTS by "+Object(a.toMsFromMpegTsClock)(Se,!0)+" ms to overcome this issue");for(var ae=0;ae<H;ae++)N[ae].dts=N[ae].dts+Se}K=N[0].dts}if(A){var Oe=K-W,se=Oe>$,te=Oe<-1;if(se||te){se?e.logger.warn("AVC: "+Object(a.toMsFromMpegTsClock)(Oe,!0)+" ms ("+Oe+"dts) hole between fragments detected, filling it"):e.logger.warn("AVC: "+Object(a.toMsFromMpegTsClock)(-Oe,!0)+" ms ("+Oe+"dts) overlapping between fragments detected"),K=W;var Q=N[0].pts-Oe;N[0].dts=K,N[0].pts=Q,e.logger.log("Video: First PTS/DTS adjusted: "+Object(a.toMsFromMpegTsClock)(Q,!0)+"/"+Object(a.toMsFromMpegTsClock)(K,!0)+", delta: "+Object(a.toMsFromMpegTsClock)(Oe,!0)+" ms")}}d&&(K=Math.max(0,K));for(var J=0,ve=0,_e=0;_e<H;_e++){for(var Ae=N[_e],Qe=Ae.units,tt=Qe.length,dt=0,mt=0;mt<tt;mt++)dt+=Qe[mt].data.length;ve+=dt,J+=tt,Ae.length=dt,Ae.dts=Math.max(Ae.dts,K),Ae.pts=Math.max(Ae.pts,Ae.dts,0),he=Math.min(Ae.pts,he),de=Math.max(Ae.pts,de)}ee=N[H-1].dts;var vt=ve+4*J+8,yt;try{yt=new Uint8Array(vt)}catch(Ct){this.observer.emit(O.Events.ERROR,O.Events.ERROR,{type:m.ErrorTypes.MUX_ERROR,details:m.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:vt,reason:"fail allocating video mdat "+vt});return}var Ye=new DataView(yt.buffer);Ye.setUint32(0,vt),yt.set(x.default.types.mdat,4);for(var Ue=0;Ue<H;Ue++){for(var ft=N[Ue],jt=ft.units,bt=0,Pt=0,it=jt.length;Pt<it;Pt++){var He=jt[Pt],Ge=He.data,Ce=He.data.byteLength;Ye.setUint32(F,Ce),F+=4,yt.set(Ge,F),F+=Ce,bt+=4+Ce}if(Ue<H-1)I=N[Ue+1].dts-ft.dts;else{var Ie=this.config,Fe=ft.dts-N[Ue>0?Ue-1:Ue].dts;if(Ie.stretchShortVideoTrack&&this.nextAudioPts!==null){var Be=Math.floor(Ie.maxBufferHole*L),We=(U?he+U*L:this.nextAudioPts)-ft.pts;We>Be?(I=We-Fe,I<0&&(I=Fe),e.logger.log("[mp4-remuxer]: It is approximately "+We/90+" ms to the next segment; using duration "+I/90+" ms for the last video frame.")):I=Fe}else I=Fe}var st=Math.round(ft.pts-ft.dts);V.push(new E(ft.key,I,bt,st))}if(V.length&&l&&l<70){var Dt=V[0].flags;Dt.dependsOn=2,Dt.isNonSync=0}console.assert(I!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=W=ee+I,this.isVideoContiguous=!0;var Ht=x.default.moof(S.sequenceNumber++,K,u({},S,{samples:V})),rn="video",Bt={data1:Ht,data2:yt,startPTS:he/L,endPTS:(de+I)/L,startDTS:K/L,endDTS:W/L,type:rn,hasAudio:!1,hasVideo:!0,nb:V.length,dropped:S.dropped};return S.samples=[],S.dropped=0,console.assert(yt.length,"MDAT length must not be zero"),Bt},M.remuxAudio=function(S,_,A,U,L){var N=S.inputTimeScale,V=S.samplerate?S.samplerate:N,H=N/V,D=S.isAAC?i:n,W=D*H,F=this._initPTS,I=!S.isAAC&&this.typeSupported.mpeg,K=[],ee=S.samples,he=I?0:8,de=this.nextAudioPts||-1,Se=_*N;if(this.isAudioContiguous=A=A||ee.length&&de>0&&(U&&Math.abs(Se-de)<9e3||Math.abs(c(ee[0].pts-F,Se)-de)<20*W),ee.forEach(function(Ge){Ge.pts=c(Ge.pts-F,Se)}),!A||de<0){if(ee=ee.filter(function(Ge){return Ge.pts>=0}),!ee.length)return;L===0?de=0:U?de=Math.max(0,Se):de=ee[0].pts}if(S.isAAC)for(var Te=L!==void 0,ce=this.config.maxAudioFramesDrift,be=0,Ee=de;be<ee.length;be++){var ue=ee[be],le=ue.pts,$=le-Ee,me=Math.abs(1e3*$/N);if($<=-ce*W&&Te)be===0&&(e.logger.warn("Audio frame @ "+(le/N).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*$/N)+" ms."),this.nextAudioPts=de=Ee=le);else if($>=ce*W&&me<r&&Te){var re=Math.round($/W);Ee=le-re*W,Ee<0&&(re--,Ee+=W),be===0&&(this.nextAudioPts=de=Ee),e.logger.warn("[mp4-remuxer]: Injecting "+re+" audio frame @ "+(Ee/N).toFixed(3)+"s due to "+Math.round(1e3*$/N)+" ms gap.");for(var ae=0;ae<re;ae++){var Oe=Math.max(Ee,0),se=y.default.getSilentFrame(S.manifestCodec||S.codec,S.channelCount);se||(e.logger.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),se=ue.unit.subarray()),ee.splice(be,0,{unit:se,pts:Oe}),Ee+=W,be++}}ue.pts=Ee,Ee+=W}for(var te=null,Q=null,J,ve=0,_e=ee.length;_e--;)ve+=ee[_e].unit.byteLength;for(var Ae=0,Qe=ee.length;Ae<Qe;Ae++){var tt=ee[Ae],dt=tt.unit,mt=tt.pts;if(Q!==null){var vt=K[Ae-1];vt.duration=Math.round((mt-Q)/H)}else if(A&&S.isAAC&&(mt=de),te=mt,ve>0){ve+=he;try{J=new Uint8Array(ve)}catch(Ge){this.observer.emit(O.Events.ERROR,O.Events.ERROR,{type:m.ErrorTypes.MUX_ERROR,details:m.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:ve,reason:"fail allocating audio mdat "+ve});return}if(!I){var yt=new DataView(J.buffer);yt.setUint32(0,ve),J.set(x.default.types.mdat,4)}}else return;J.set(dt,he);var Ye=dt.byteLength;he+=Ye,K.push(new E(!0,D,Ye,0)),Q=mt}var Ue=K.length;if(!Ue)return;var ft=K[K.length-1];this.nextAudioPts=de=Q+H*ft.duration;var jt=I?new Uint8Array(0):x.default.moof(S.sequenceNumber++,te/H,u({},S,{samples:K}));S.samples=[];var bt=te/N,Pt=de/N,it="audio",He={data1:jt,data2:J,startPTS:bt,endPTS:Pt,startDTS:bt,endDTS:Pt,type:it,hasAudio:!0,hasVideo:!1,nb:Ue};return this.isAudioContiguous=!0,console.assert(J.length,"MDAT length must not be zero"),He},M.remuxEmptyAudio=function(S,_,A,U){var L=S.inputTimeScale,N=S.samplerate?S.samplerate:L,V=L/N,H=this.nextAudioPts,D=(H!==null?H:U.startDTS*L)+this._initDTS,W=U.endDTS*L+this._initDTS,F=V*i,I=Math.ceil((W-D)/F),K=y.default.getSilentFrame(S.manifestCodec||S.codec,S.channelCount);if(e.logger.warn("[mp4-remuxer]: remux empty Audio"),!K){e.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var ee=[],he=0;he<I;he++){var de=D+he*F;ee.push({unit:K,pts:de,dts:de})}return S.samples=ee,this.remuxAudio(S,_,A,!1)},M.remuxID3=function(S,_){var A=S.samples.length;if(!A)return;for(var U=S.inputTimeScale,L=this._initPTS,N=this._initDTS,V=0;V<A;V++){var H=S.samples[V];H.pts=c(H.pts-L,_*U)/U,H.dts=c(H.dts-N,_*U)/U}var D=S.samples;return S.samples=[],{samples:D}},M.remuxText=function(S,_){var A=S.samples.length;if(!A)return;for(var U=S.inputTimeScale,L=this._initPTS,N=0;N<A;N++){var V=S.samples[N];V.pts=c(V.pts-L,_*U)/U}S.samples.sort(function(D,W){return D.pts-W.pts});var H=S.samples;return S.samples=[],{samples:H}},R}();function c(R,M){var C;if(M===null)return R;for(M<R?C=-8589934592:C=8589934592;Math.abs(R-M)>4294967296;)R+=C;return R}function w(R){for(var M=0;M<R.length;M++)if(R[M].key)return M;return-1}var E=function(M,C,S,_){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=C,this.size=S,this.cts=_,this.flags=new v(M)},v=function(M){this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=M?2:1,this.isNonSync=M?0:1}},"./src/remux/passthrough-remuxer.ts":function(P,g,T){"use strict";T.r(g);var b=T("./src/polyfills/number.ts"),y=T("./src/utils/mp4-tools.ts"),x=T("./src/loader/fragment.ts"),O=T("./src/utils/logger.ts"),m=function(){function a(){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=a.prototype;return u.destroy=function(){},u.resetTimeStamp=function(i){this.initPTS=i,this.lastEndDTS=null},u.resetNextTimestamp=function(){this.lastEndDTS=null},u.resetInitSegment=function(i,n,l){this.audioCodec=n,this.videoCodec=l,this.generateInitSegment(i),this.emitInitSegment=!0},u.generateInitSegment=function(i){var n=this.audioCodec,l=this.videoCodec;if(!i||!i.byteLength){this.initTracks=void 0,this.initData=void 0;return}var h=this.initData=Object(y.parseInitSegment)(i);n||(n=f(h.audio,x.ElementaryStreamTypes.AUDIO)),l||(l=f(h.video,x.ElementaryStreamTypes.VIDEO));var d={};h.audio&&h.video?d.audiovideo={container:"video/mp4",codec:n+","+l,initSegment:i,id:"main"}:h.audio?d.audio={container:"audio/mp4",codec:n,initSegment:i,id:"audio"}:h.video?d.video={container:"video/mp4",codec:l,initSegment:i,id:"main"}:O.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=d},u.remux=function(i,n,l,h,d){var s=this.initPTS,c=this.lastEndDTS,w={audio:void 0,video:void 0,text:h,id3:l,initSegment:void 0};Object(b.isFiniteNumber)(c)||(c=this.lastEndDTS=d||0);var E=n.samples;if(!E||!E.length)return w;var v={initPTS:void 0,timescale:1},R=this.initData;if((!R||!R.length)&&(this.generateInitSegment(E),R=this.initData),!R||!R.length)return O.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),w;this.emitInitSegment&&(v.tracks=this.initTracks,this.emitInitSegment=!1),Object(b.isFiniteNumber)(s)||(this.initPTS=v.initPTS=s=e(R,E,c));var M=Object(y.getDuration)(E,R),C=c,S=M+C;Object(y.offsetStartDTS)(R,E,s),M>0?this.lastEndDTS=S:(O.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var _=!!R.audio,A=!!R.video,U="";_&&(U+="audio"),A&&(U+="video");var L={data1:E,startPTS:C,startDTS:C,endPTS:S,endDTS:S,type:U,hasAudio:_,hasVideo:A,nb:1,dropped:0};return w.audio=L.type==="audio"?L:void 0,w.video=L.type!=="audio"?L:void 0,w.text=h,w.id3=l,w.initSegment=v,w},a}(),e=function(u,r,i){return Object(y.getStartDTS)(u,r)-i};function f(a,u){var r=a==null?void 0:a.codec;return r&&r.length>4?r:r==="hvc1"?"hvc1.1.c.L120.90":r==="av01"?"av01.0.04M.08":r==="avc1"||u===x.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}g.default=m},"./src/task-loop.ts":function(P,g,T){"use strict";T.r(g),T.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(m){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,m),!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(P,g,T){"use strict";T.r(g),T.d(g,"CMCDVersion",function(){return b}),T.d(g,"CMCDObjectType",function(){return y}),T.d(g,"CMCDStreamingFormat",function(){return x}),T.d(g,"CMCDStreamType",function(){return O});var b=1,y;(function(m){m.MANIFEST="m",m.AUDIO="a",m.VIDEO="v",m.MUXED="av",m.INIT="i",m.CAPTION="c",m.TIMED_TEXT="tt",m.KEY="k",m.OTHER="o"})(y||(y={}));var x;(function(m){m.DASH="d",m.HLS="h",m.SMOOTH="s",m.OTHER="o"})(x||(x={}));var O;(function(m){m.VOD="v",m.LIVE="l"})(O||(O={}))},"./src/types/level.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"HlsSkip",function(){return x}),T.d(g,"getSkipValue",function(){return O}),T.d(g,"HlsUrlParameters",function(){return m}),T.d(g,"Level",function(){return e});function b(f,a){for(var u=0;u<a.length;u++){var r=a[u];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(f,r.key,r)}}function y(f,a,u){return a&&b(f.prototype,a),u&&b(f,u),f}var x;(function(f){f.No="",f.Yes="YES",f.v2="v2"})(x||(x={}));function O(f,a){var u=f.canSkipUntil,r=f.canSkipDateRanges,i=f.endSN,n=a!==void 0?a-i:0;return u&&n<u?r?x.v2:x.Yes:x.No}var m=function(){function f(u,r,i){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=u,this.part=r,this.skip=i}var a=f.prototype;return a.addDirectives=function(r){var i=new self.URL(r);return this.msn!==void 0&&i.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&i.searchParams.set("_HLS_part",this.part.toString()),this.skip&&i.searchParams.set("_HLS_skip",this.skip),i.toString()},f}(),e=function(){function f(a){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=[a.url],this.attrs=a.attrs,this.bitrate=a.bitrate,a.details&&(this.details=a.details),this.id=a.id||0,this.name=a.name,this.width=a.width||0,this.height=a.height||0,this.audioCodec=a.audioCodec,this.videoCodec=a.videoCodec,this.unknownCodecs=a.unknownCodecs,this.codecSet=[a.videoCodec,a.audioCodec].filter(function(u){return u}).join(",").replace(/\.[^.,]+/g,"")}return y(f,[{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 r=u%this.url.length;this._urlId!==r&&(this.details=void 0,this._urlId=r)}}]),f}()},"./src/types/loader.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"PlaylistContextType",function(){return b}),T.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(P,g,T){"use strict";T.r(g),T.d(g,"ChunkMetadata",function(){return b});var b=function(O,m,e,f,a,u){f===void 0&&(f=0),a===void 0&&(a=-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=O,this.sn=m,this.id=e,this.size=f,this.part=a,this.partial=u};function y(){return{start:0,executeStart:0,executeEnd:0,end:0}}},"./src/utils/attr-list.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"AttrList",function(){return x});var b=/^(\d+)x(\d+)$/,y=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g,x=function(){function O(e){typeof e=="string"&&(e=O.parseAttrList(e));for(var f in e)e.hasOwnProperty(f)&&(this[f]=e[f])}var m=O.prototype;return m.decimalInteger=function(f){var a=parseInt(this[f],10);return a>Number.MAX_SAFE_INTEGER?Infinity:a},m.hexadecimalInteger=function(f){if(this[f]){var a=(this[f]||"0x").slice(2);a=(a.length&1?"0":"")+a;for(var u=new Uint8Array(a.length/2),r=0;r<a.length/2;r++)u[r]=parseInt(a.slice(r*2,r*2+2),16);return u}else return null},m.hexadecimalIntegerAsNumber=function(f){var a=parseInt(this[f],16);return a>Number.MAX_SAFE_INTEGER?Infinity:a},m.decimalFloatingPoint=function(f){return parseFloat(this[f])},m.optionalFloat=function(f,a){var u=this[f];return u?parseFloat(u):a},m.enumeratedString=function(f){return this[f]},m.bool=function(f){return this[f]==="YES"},m.decimalResolution=function(f){var a=b.exec(this[f]);return a===null?void 0:{width:parseInt(a[1],10),height:parseInt(a[2],10)}},O.parseAttrList=function(f){var a,u={},r='"';for(y.lastIndex=0;(a=y.exec(f))!==null;){var i=a[2];i.indexOf(r)===0&&i.lastIndexOf(r)===i.length-1&&(i=i.slice(1,-1)),u[a[1]]=i}return u},O}()},"./src/utils/binary-search.ts":function(P,g,T){"use strict";T.r(g);var b={search:function(x,O){for(var m=0,e=x.length-1,f=null,a=null;m<=e;){f=(m+e)/2|0,a=x[f];var u=O(a);if(u>0)m=f+1;else if(u<0)e=f-1;else return a}return null}};g.default=b},"./src/utils/buffer-helper.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"BufferHelper",function(){return x});var b=T("./src/utils/logger.ts"),y={length:0,start:function(){return 0},end:function(){return 0}},x=function(){function O(){}return O.isBuffered=function(e,f){try{if(e){for(var a=O.getBuffered(e),u=0;u<a.length;u++)if(f>=a.start(u)&&f<=a.end(u))return!0}}catch(r){}return!1},O.bufferInfo=function(e,f,a){try{if(e){var u=O.getBuffered(e),r=[],i;for(i=0;i<u.length;i++)r.push({start:u.start(i),end:u.end(i)});return this.bufferedInfo(r,f,a)}}catch(n){}return{len:0,start:f,end:f,nextStart:void 0}},O.bufferedInfo=function(e,f,a){f=Math.max(0,f),e.sort(function(v,R){var M=v.start-R.start;return M||R.end-v.end});var u=[];if(a)for(var r=0;r<e.length;r++){var i=u.length;if(i){var n=u[i-1].end;e[r].start-n<a?e[r].end>n&&(u[i-1].end=e[r].end):u.push(e[r])}else u.push(e[r])}else u=e;for(var l=0,h,d=f,s=f,c=0;c<u.length;c++){var w=u[c].start,E=u[c].end;if(f+a>=w&&f<E)d=w,s=E,l=s-f;else if(f+a<w){h=w;break}}return{len:l,start:d||0,end:s||0,nextStart:h}},O.getBuffered=function(e){try{return e.buffered}catch(f){return b.logger.log("failed to get media.buffered",f),y}},O}()},"./src/utils/cea-608-parser.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"Row",function(){return s}),T.d(g,"CaptionScreen",function(){return c});var b=T("./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(S){var _=S;return y.hasOwnProperty(S)&&(_=y[S]),String.fromCharCode(_)},O=15,m=100,e={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},f={17:2,18:4,21:6,22:8,23:10,19:13,20:15},a={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},r=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],i;(function(C){C[C.ERROR=0]="ERROR",C[C.TEXT=1]="TEXT",C[C.WARNING=2]="WARNING",C[C.INFO=2]="INFO",C[C.DEBUG=3]="DEBUG",C[C.DATA=3]="DATA"})(i||(i={}));var n=function(){function C(){this.time=null,this.verboseLevel=i.ERROR}var S=C.prototype;return S.log=function(A,U){this.verboseLevel>=A&&b.logger.log(this.time+" ["+A+"] "+U)},C}(),l=function(S){for(var _=[],A=0;A<S.length;A++)_.push(S[A].toString(16));return _},h=function(){function C(_,A,U,L,N){this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=_||"white",this.underline=A||!1,this.italics=U||!1,this.background=L||"black",this.flash=N||!1}var S=C.prototype;return S.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},S.setStyles=function(A){for(var U=["foreground","underline","italics","background","flash"],L=0;L<U.length;L++){var N=U[L];A.hasOwnProperty(N)&&(this[N]=A[N])}},S.isDefault=function(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash},S.equals=function(A){return this.foreground===A.foreground&&this.underline===A.underline&&this.italics===A.italics&&this.background===A.background&&this.flash===A.flash},S.copy=function(A){this.foreground=A.foreground,this.underline=A.underline,this.italics=A.italics,this.background=A.background,this.flash=A.flash},S.toString=function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash},C}(),d=function(){function C(_,A,U,L,N,V){this.uchar=void 0,this.penState=void 0,this.uchar=_||" ",this.penState=new h(A,U,L,N,V)}var S=C.prototype;return S.reset=function(){this.uchar=" ",this.penState.reset()},S.setChar=function(A,U){this.uchar=A,this.penState.copy(U)},S.setPenState=function(A){this.penState.copy(A)},S.equals=function(A){return this.uchar===A.uchar&&this.penState.equals(A.penState)},S.copy=function(A){this.uchar=A.uchar,this.penState.copy(A.penState)},S.isEmpty=function(){return this.uchar===" "&&this.penState.isDefault()},C}(),s=function(){function C(_){this.chars=void 0,this.pos=void 0,this.currPenState=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chars=[];for(var A=0;A<m;A++)this.chars.push(new d);this.logger=_,this.pos=0,this.currPenState=new h}var S=C.prototype;return S.equals=function(A){for(var U=!0,L=0;L<m;L++)if(!this.chars[L].equals(A.chars[L])){U=!1;break}return U},S.copy=function(A){for(var U=0;U<m;U++)this.chars[U].copy(A.chars[U])},S.isEmpty=function(){for(var A=!0,U=0;U<m;U++)if(!this.chars[U].isEmpty()){A=!1;break}return A},S.setCursor=function(A){this.pos!==A&&(this.pos=A),this.pos<0?(this.logger.log(i.DEBUG,"Negative cursor position "+this.pos),this.pos=0):this.pos>m&&(this.logger.log(i.DEBUG,"Too large cursor position "+this.pos),this.pos=m)},S.moveCursor=function(A){var U=this.pos+A;if(A>1)for(var L=this.pos+1;L<U+1;L++)this.chars[L].setPenState(this.currPenState);this.setCursor(U)},S.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},S.insertChar=function(A){A>=144&&this.backSpace();var U=x(A);if(this.pos>=m){this.logger.log(i.ERROR,"Cannot insert "+A.toString(16)+" ("+U+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(U,this.currPenState),this.moveCursor(1)},S.clearFromPos=function(A){var U;for(U=A;U<m;U++)this.chars[U].reset()},S.clear=function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},S.clearToEndOfRow=function(){this.clearFromPos(this.pos)},S.getTextString=function(){for(var A=[],U=!0,L=0;L<m;L++){var N=this.chars[L].uchar;N!==" "&&(U=!1),A.push(N)}return U?"":A.join("")},S.setPenStyles=function(A){this.currPenState.setStyles(A);var U=this.chars[this.pos];U.setPenState(this.currPenState)},C}(),c=function(){function C(_){this.rows=void 0,this.currRow=void 0,this.nrRollUpRows=void 0,this.lastOutputScreen=void 0,this.logger=void 0,this.rows=[];for(var A=0;A<O;A++)this.rows.push(new s(_));this.logger=_,this.currRow=O-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}var S=C.prototype;return S.reset=function(){for(var A=0;A<O;A++)this.rows[A].clear();this.currRow=O-1},S.equals=function(A){for(var U=!0,L=0;L<O;L++)if(!this.rows[L].equals(A.rows[L])){U=!1;break}return U},S.copy=function(A){for(var U=0;U<O;U++)this.rows[U].copy(A.rows[U])},S.isEmpty=function(){for(var A=!0,U=0;U<O;U++)if(!this.rows[U].isEmpty()){A=!1;break}return A},S.backSpace=function(){var A=this.rows[this.currRow];A.backSpace()},S.clearToEndOfRow=function(){var A=this.rows[this.currRow];A.clearToEndOfRow()},S.insertChar=function(A){var U=this.rows[this.currRow];U.insertChar(A)},S.setPen=function(A){var U=this.rows[this.currRow];U.setPenStyles(A)},S.moveCursor=function(A){var U=this.rows[this.currRow];U.moveCursor(A)},S.setCursor=function(A){this.logger.log(i.INFO,"setCursor: "+A);var U=this.rows[this.currRow];U.setCursor(A)},S.setPAC=function(A){this.logger.log(i.INFO,"pacData = "+JSON.stringify(A));var U=A.row-1;if(this.nrRollUpRows&&U<this.nrRollUpRows-1&&(U=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==U){for(var L=0;L<O;L++)this.rows[L].clear();var N=this.currRow+1-this.nrRollUpRows,V=this.lastOutputScreen;if(V){var H=V.rows[N].cueStartTime,D=this.logger.time;if(H&&D!==null&&H<D)for(var W=0;W<this.nrRollUpRows;W++)this.rows[U-this.nrRollUpRows+W+1].copy(V.rows[N+W])}}this.currRow=U;var F=this.rows[this.currRow];if(A.indent!==null){var I=A.indent,K=Math.max(I-1,0);F.setCursor(A.indent),A.color=F.chars[K].penState.foreground}var ee={foreground:A.color,underline:A.underline,italics:A.italics,background:"black",flash:!1};this.setPen(ee)},S.setBkgData=function(A){this.logger.log(i.INFO,"bkgData = "+JSON.stringify(A)),this.backSpace(),this.setPen(A),this.insertChar(32)},S.setRollUpRows=function(A){this.nrRollUpRows=A},S.rollUp=function(){if(this.nrRollUpRows===null){this.logger.log(i.DEBUG,"roll_up but nrRollUpRows not set yet");return}this.logger.log(i.TEXT,this.getDisplayText());var A=this.currRow+1-this.nrRollUpRows,U=this.rows.splice(A,1)[0];U.clear(),this.rows.splice(this.currRow,0,U),this.logger.log(i.INFO,"Rolling up")},S.getDisplayText=function(A){A=A||!1;for(var U=[],L="",N=-1,V=0;V<O;V++){var H=this.rows[V].getTextString();H&&(N=V+1,A?U.push("Row "+N+": '"+H+"'"):U.push(H.trim()))}return U.length>0&&(A?L="["+U.join(" | ")+"]":L=U.join(`
|
|
|
`)),L},S.getTextAndFormat=function(){return this.rows},C}(),w=function(){function C(_,A,U){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=_,this.outputFilter=A,this.mode=null,this.verbose=0,this.displayedMemory=new c(U),this.nonDisplayedMemory=new c(U),this.lastOutputScreen=new c(U),this.currRollUpRow=this.displayedMemory.rows[O-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=U}var S=C.prototype;return S.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[O-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},S.getHandler=function(){return this.outputFilter},S.setHandler=function(A){this.outputFilter=A},S.setPAC=function(A){this.writeScreen.setPAC(A)},S.setBkgData=function(A){this.writeScreen.setBkgData(A)},S.setMode=function(A){if(A===this.mode)return;this.mode=A,this.logger.log(i.INFO,"MODE="+A),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=A},S.insertChars=function(A){for(var U=0;U<A.length;U++)this.writeScreen.insertChar(A[U]);var L=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(i.INFO,L+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(i.TEXT,"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},S.ccRCL=function(){this.logger.log(i.INFO,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},S.ccBS=function(){if(this.logger.log(i.INFO,"BS - BackSpace"),this.mode==="MODE_TEXT")return;this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate()},S.ccAOF=function(){},S.ccAON=function(){},S.ccDER=function(){this.logger.log(i.INFO,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},S.ccRU=function(A){this.logger.log(i.INFO,"RU("+A+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(A)},S.ccFON=function(){this.logger.log(i.INFO,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},S.ccRDC=function(){this.logger.log(i.INFO,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},S.ccTR=function(){this.logger.log(i.INFO,"TR"),this.setMode("MODE_TEXT")},S.ccRTD=function(){this.logger.log(i.INFO,"RTD"),this.setMode("MODE_TEXT")},S.ccEDM=function(){this.logger.log(i.INFO,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},S.ccCR=function(){this.logger.log(i.INFO,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},S.ccENM=function(){this.logger.log(i.INFO,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},S.ccEOC=function(){if(this.logger.log(i.INFO,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){var A=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=A,this.writeScreen=this.nonDisplayedMemory,this.logger.log(i.TEXT,"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)},S.ccTO=function(A){this.logger.log(i.INFO,"TO("+A+") - Tab Offset"),this.writeScreen.moveCursor(A)},S.ccMIDROW=function(A){var U={flash:!1};if(U.underline=A%2===1,U.italics=A>=46,U.italics)U.foreground="white";else{var L=Math.floor(A/2)-16,N=["white","green","blue","cyan","red","yellow","magenta"];U.foreground=N[L]}this.logger.log(i.INFO,"MIDROW: "+JSON.stringify(U)),this.writeScreen.setPen(U)},S.outputDataUpdate=function(A){A===void 0&&(A=!1);var U=this.logger.time;if(U===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=U:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,U,this.lastOutputScreen),A&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:U),this.lastOutputScreen.copy(this.displayedMemory))},S.cueSplitAtTime=function(A){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,A,this.displayedMemory),this.cueStartTime=A))},C}(),E=function(){function C(_,A,U){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var L=new n;this.channels=[null,new w(_,A,L),new w(_+1,U,L)],this.cmdHistory=M(),this.logger=L}var S=C.prototype;return S.getHandler=function(A){return this.channels[A].getHandler()},S.setHandler=function(A,U){this.channels[A].setHandler(U)},S.addData=function(A,U){var L,N,V,H=!1;this.logger.time=A;for(var D=0;D<U.length;D+=2){if(N=U[D]&127,V=U[D+1]&127,N===0&&V===0)continue;if(this.logger.log(i.DATA,"["+l([U[D],U[D+1]])+"] -> ("+l([N,V])+")"),L=this.parseCmd(N,V),L||(L=this.parseMidrow(N,V)),L||(L=this.parsePAC(N,V)),L||(L=this.parseBackgroundAttributes(N,V)),!L&&(H=this.parseChars(N,V),H)){var W=this.currentChannel;if(W&&W>0){var F=this.channels[W];F.insertChars(H)}else this.logger.log(i.WARNING,"No channel found yet. TEXT-MODE?")}!L&&!H&&this.logger.log(i.WARNING,"Couldn't parse cleaned data "+l([N,V])+" orig: "+l([U[D],U[D+1]]))}},S.parseCmd=function(A,U){var L=this.cmdHistory,N=(A===20||A===28||A===21||A===29)&&U>=32&&U<=47,V=(A===23||A===31)&&U>=33&&U<=35;if(!(N||V))return!1;if(R(A,U,L))return v(null,null,L),this.logger.log(i.DEBUG,"Repeated command ("+l([A,U])+") is dropped"),!0;var H=A===20||A===21||A===23?1:2,D=this.channels[H];return A===20||A===21||A===28||A===29?U===32?D.ccRCL():U===33?D.ccBS():U===34?D.ccAOF():U===35?D.ccAON():U===36?D.ccDER():U===37?D.ccRU(2):U===38?D.ccRU(3):U===39?D.ccRU(4):U===40?D.ccFON():U===41?D.ccRDC():U===42?D.ccTR():U===43?D.ccRTD():U===44?D.ccEDM():U===45?D.ccCR():U===46?D.ccENM():U===47&&D.ccEOC():D.ccTO(U-32),v(A,U,L),this.currentChannel=H,!0},S.parseMidrow=function(A,U){var L=0;if((A===17||A===25)&&U>=32&&U<=47){if(A===17?L=1:L=2,L!==this.currentChannel)return this.logger.log(i.ERROR,"Mismatch channel in midrow parsing"),!1;var N=this.channels[L];return N?(N.ccMIDROW(U),this.logger.log(i.DEBUG,"MIDROW ("+l([A,U])+")"),!0):!1}return!1},S.parsePAC=function(A,U){var L,N=this.cmdHistory,V=(A>=17&&A<=23||A>=25&&A<=31)&&U>=64&&U<=127,H=(A===16||A===24)&&U>=64&&U<=95;if(!(V||H))return!1;if(R(A,U,N))return v(null,null,N),!0;var D=A<=23?1:2;U>=64&&U<=95?L=D===1?e[A]:a[A]:L=D===1?f[A]:u[A];var W=this.channels[D];return W?(W.setPAC(this.interpretPAC(L,U)),v(A,U,N),this.currentChannel=D,!0):!1},S.interpretPAC=function(A,U){var L,N={color:null,italics:!1,indent:null,underline:!1,row:A};return U>95?L=U-96:L=U-64,N.underline=(L&1)===1,L<=13?N.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(L/2)]:L<=15?(N.italics=!0,N.color="white"):N.indent=Math.floor((L-16)/2)*4,N},S.parseChars=function(A,U){var L,N=null,V=null;if(A>=25?(L=2,V=A-8):(L=1,V=A),V>=17&&V<=19){var H;V===17?H=U+80:V===18?H=U+112:H=U+144,this.logger.log(i.INFO,"Special char '"+x(H)+"' in channel "+L),N=[H]}else A>=32&&A<=127&&(N=U===0?[A]:[A,U]);if(N){var D=l(N);this.logger.log(i.DEBUG,"Char codes = "+D.join(",")),v(A,U,this.cmdHistory)}return N},S.parseBackgroundAttributes=function(A,U){var L=(A===16||A===24)&&U>=32&&U<=47,N=(A===23||A===31)&&U>=45&&U<=47;if(!(L||N))return!1;var V,H={};A===16||A===24?(V=Math.floor((U-32)/2),H.background=r[V],U%2===1&&(H.background=H.background+"_semi")):U===45?H.background="transparent":(H.foreground="black",U===47&&(H.underline=!0));var D=A<=23?1:2,W=this.channels[D];return W.setBkgData(H),v(A,U,this.cmdHistory),!0},S.reset=function(){for(var A=0;A<Object.keys(this.channels).length;A++){var U=this.channels[A];U&&U.reset()}this.cmdHistory=M()},S.cueSplitAtTime=function(A){for(var U=0;U<this.channels.length;U++){var L=this.channels[U];L&&L.cueSplitAtTime(A)}},C}();function v(C,S,_){_.a=C,_.b=S}function R(C,S,_){return _.a===C&&_.b===S}function M(){return{a:null,b:null}}g.default=E},"./src/utils/codecs.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"isCodecType",function(){return y}),T.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(O,m){var e=b[m];return!!e&&e[O.slice(0,4)]===!0}function x(O,m){return MediaSource.isTypeSupported((m||"video")+'/mp4;codecs="'+O+'"')}},"./src/utils/cues.ts":function(P,g,T){"use strict";T.r(g);var b=T("./src/utils/vttparser.ts"),y=T("./src/utils/webvtt-parser.ts"),x=T("./src/utils/texttrack-utils.ts"),O=/\s/,m={newCue:function(f,a,u,r){for(var i=[],n,l,h,d,s,c=self.VTTCue||self.TextTrackCue,w=0;w<r.rows.length;w++)if(n=r.rows[w],h=!0,d=0,s="",!n.isEmpty()){for(var E=0;E<n.chars.length;E++)O.test(n.chars[E].uchar)&&h?d++:(s+=n.chars[E].uchar,h=!1);n.cueStartTime=a,a===u&&(u+=1e-4),d>=16?d--:d++;var v=Object(b.fixLineBreaks)(s.trim()),R=Object(y.generateCueId)(a,u,v);(!f||!f.cues||!f.cues.getCueById(R))&&(l=new c(a,u,v),l.id=R,l.line=w+1,l.align="left",l.position=10+Math.min(80,Math.floor(d*8/32)*10),i.push(l))}return f&&i.length&&(i.sort(function(M,C){return M.line==="auto"||C.line==="auto"?0:M.line>8&&C.line>8?C.line-M.line:M.line-C.line}),i.forEach(function(M){return Object(x.addCueToTrack)(f,M)})),i}};g.default=m},"./src/utils/discontinuities.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"findFirstFragWithCC",function(){return O}),T.d(g,"shouldAlignOnDiscontinuities",function(){return m}),T.d(g,"findDiscontinuousReferenceFrag",function(){return e}),T.d(g,"adjustSlidingStart",function(){return a}),T.d(g,"alignStream",function(){return u}),T.d(g,"alignPDT",function(){return i}),T.d(g,"alignFragmentByPDTDelta",function(){return n}),T.d(g,"alignMediaPlaylistByPDT",function(){return l});var b=T("./src/polyfills/number.ts"),y=T("./src/utils/logger.ts"),x=T("./src/controller/level-helper.ts");function O(h,d){for(var s=null,c=0,w=h.length;c<w;c++){var E=h[c];if(E&&E.cc===d){s=E;break}}return s}function m(h,d,s){return!!(d.details&&(s.endCC>s.startCC||h&&h.cc<s.startCC))}function e(h,d){var s=h.fragments,c=d.fragments;if(!c.length||!s.length){y.logger.log("No fragments to align");return}var w=O(s,c[0].cc);if(!w||w&&!w.startPTS){y.logger.log("No frag in previous level to align on");return}return w}function f(h,d){if(h){var s=h.start+d;h.start=h.startPTS=s,h.endPTS=s+h.duration}}function a(h,d){for(var s=d.fragments,c=0,w=s.length;c<w;c++)f(s[c],h);d.fragmentHint&&f(d.fragmentHint,h),d.alignedSliding=!0}function u(h,d,s){if(!d)return;r(h,s,d),!s.alignedSliding&&d.details&&i(s,d.details),!s.alignedSliding&&d.details&&!s.skippedSegments&&Object(x.adjustSliding)(d.details,s)}function r(h,d,s){if(m(h,s,d)){var c=e(s.details,d);c&&Object(b.isFiniteNumber)(c.start)&&(y.logger.log("Adjusting PTS using last level due to CC increase within current level "+d.url),a(c.start,d))}}function i(h,d){if(!d.fragments.length||!h.hasProgramDateTime||!d.hasProgramDateTime)return;var s=d.fragments[0].programDateTime,c=h.fragments[0].programDateTime,w=(c-s)/1e3+d.fragments[0].start;w&&Object(b.isFiniteNumber)(w)&&(y.logger.log("Adjusting PTS using programDateTime delta "+(c-s)+"ms, sliding:"+w.toFixed(3)+" "+h.url+" "),a(w,h))}function n(h,d){var s=h.programDateTime;if(!s)return;var c=(s-d)/1e3;h.start=h.startPTS=c,h.endPTS=c+h.duration}function l(h,d){if(!d.fragments.length||!h.hasProgramDateTime||!d.hasProgramDateTime)return;var s=d.fragments[0].programDateTime,c=d.fragments[0].start,w=s-c*1e3;h.fragments.forEach(function(E){n(E,w)}),h.fragmentHint&&n(h.fragmentHint,w),h.alignedSliding=!0}},"./src/utils/ewma-bandwidth-estimator.ts":function(P,g,T){"use strict";T.r(g);var b=T("./src/utils/ewma.ts"),y=function(){function x(m,e,f){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultEstimate_=f,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new b.default(m),this.fast_=new b.default(e)}var O=x.prototype;return O.update=function(e,f){var a=this.slow_,u=this.fast_;this.slow_.halfLife!==e&&(this.slow_=new b.default(e,a.getEstimate(),a.getTotalWeight())),this.fast_.halfLife!==f&&(this.fast_=new b.default(f,u.getEstimate(),u.getTotalWeight()))},O.sample=function(e,f){e=Math.max(e,this.minDelayMs_);var a=8*f,u=e/1e3,r=a/u;this.fast_.sample(u,r),this.slow_.sample(u,r)},O.canEstimate=function(){var e=this.fast_;return e&&e.getTotalWeight()>=this.minWeight_},O.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},O.destroy=function(){},x}();g.default=y},"./src/utils/ewma.ts":function(P,g,T){"use strict";T.r(g);var b=function(){function y(O,m,e){m===void 0&&(m=0),e===void 0&&(e=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=O,this.alpha_=O?Math.exp(Math.log(.5)/O):0,this.estimate_=m,this.totalWeight_=e}var x=y.prototype;return x.sample=function(m,e){var f=Math.pow(this.alpha_,m);this.estimate_=e*(1-f)+f*this.estimate_,this.totalWeight_+=m},x.getTotalWeight=function(){return this.totalWeight_},x.getEstimate=function(){if(this.alpha_){var m=1-Math.pow(this.alpha_,this.totalWeight_);if(m)return this.estimate_/m}return this.estimate_},y}();g.default=b},"./src/utils/fetch-loader.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"fetchSupported",function(){return n});var b=T("./src/polyfills/number.ts"),y=T("./src/loader/load-stats.ts"),x=T("./src/demux/chunk-cache.ts");function O(c,w){c.prototype=Object.create(w.prototype),c.prototype.constructor=c,u(c,w)}function m(c){var w=typeof Map=="function"?new Map:void 0;return m=function(v){if(v===null||!a(v))return v;if(typeof v!="function")throw new TypeError("Super expression must either be null or a function");if(typeof w!="undefined"){if(w.has(v))return w.get(v);w.set(v,R)}function R(){return e(v,arguments,r(this).constructor)}return R.prototype=Object.create(v.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),u(R,v)},m(c)}function e(c,w,E){return f()?e=Reflect.construct:e=function(R,M,C){var S=[null];S.push.apply(S,M);var _=Function.bind.apply(R,S),A=new _;return C&&u(A,C.prototype),A},e.apply(null,arguments)}function f(){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(c){return!1}}function a(c){return Function.toString.call(c).indexOf("[native code]")!==-1}function u(c,w){return u=Object.setPrototypeOf||function(v,R){return v.__proto__=R,v},u(c,w)}function r(c){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)},r(c)}function i(){return i=Object.assign||function(c){for(var w=1;w<arguments.length;w++){var E=arguments[w];for(var v in E)Object.prototype.hasOwnProperty.call(E,v)&&(c[v]=E[v])}return c},i.apply(this,arguments)}function n(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(c){}return!1}var l=function(){function c(E){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=E.fetchSetup||d,this.controller=new self.AbortController,this.stats=new y.LoadStats}var w=c.prototype;return w.destroy=function(){this.loader=this.callbacks=null,this.abortInternal()},w.abortInternal=function(){var v=this.response;(!v||!v.ok)&&(this.stats.aborted=!0,this.controller.abort())},w.abort=function(){var v;this.abortInternal(),(v=this.callbacks)!==null&&v!==void 0&&v.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)},w.load=function(v,R,M){var C=this,S=this.stats;if(S.loading.start)throw new Error("Loader can only be used once.");S.loading.start=self.performance.now();var _=h(v,this.controller.signal),A=M.onProgress,U=v.responseType==="arraybuffer",L=U?"byteLength":"length";this.context=v,this.config=R,this.callbacks=M,this.request=this.fetchSetup(v,_),self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(function(){C.abortInternal(),M.onTimeout(S,v,C.response)},R.timeout),self.fetch(this.request).then(function(N){if(C.response=C.loader=N,!N.ok){var V=N.status,H=N.statusText;throw new s(H||"fetch, bad network response",V,N)}return S.loading.first=Math.max(self.performance.now(),S.loading.start),S.total=parseInt(N.headers.get("Content-Length")||"0"),A&&Object(b.isFiniteNumber)(R.highWaterMark)?C.loadProgressively(N,S,v,R.highWaterMark,A):U?N.arrayBuffer():N.text()}).then(function(N){var V=C.response;self.clearTimeout(C.requestTimeout),S.loading.end=Math.max(self.performance.now(),S.loading.first),S.loaded=S.total=N[L];var H={url:V.url,data:N};A&&!Object(b.isFiniteNumber)(R.highWaterMark)&&A(S,v,N,V),M.onSuccess(H,S,v,V)}).catch(function(N){if(self.clearTimeout(C.requestTimeout),S.aborted)return;var V=N.code||0;M.onError({code:V,text:N.message},v,N.details)})},w.getCacheAge=function(){var v=null;if(this.response){var R=this.response.headers.get("age");v=R?parseFloat(R):null}return v},w.loadProgressively=function(v,R,M,C,S){C===void 0&&(C=0);var _=new x.default,A=v.body.getReader(),U=function L(){return A.read().then(function(N){if(N.done)return _.dataLength&&S(R,M,_.flush(),v),Promise.resolve(new ArrayBuffer(0));var V=N.value,H=V.length;return R.loaded+=H,H<C||_.dataLength?(_.push(V),_.dataLength>=C&&S(R,M,_.flush(),v)):S(R,M,V,v),L()}).catch(function(){return Promise.reject()})};return U()},c}();function h(c,w){var E={method:"GET",mode:"cors",credentials:"same-origin",signal:w,headers:new self.Headers(i({},c.headers))};return c.rangeEnd&&E.headers.set("Range","bytes="+c.rangeStart+"-"+String(c.rangeEnd-1)),E}function d(c,w){return new self.Request(c.url,w)}var s=function(c){O(w,c);function w(E,v,R){var M;return M=c.call(this,E)||this,M.code=void 0,M.details=void 0,M.code=v,M.details=R,M}return w}(m(Error));g.default=l},"./src/utils/imsc1-ttml-parser.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"IMSC1_CODEC",function(){return a}),T.d(g,"parseIMSC1",function(){return n});var b=T("./src/utils/mp4-tools.ts"),y=T("./src/utils/vttparser.ts"),x=T("./src/utils/vttcue.ts"),O=T("./src/demux/id3.ts"),m=T("./src/utils/timescale-conversion.ts"),e=T("./src/utils/webvtt-parser.ts");function f(){return f=Object.assign||function(C){for(var S=1;S<arguments.length;S++){var _=arguments[S];for(var A in _)Object.prototype.hasOwnProperty.call(_,A)&&(C[A]=_[A])}return C},f.apply(this,arguments)}var a="stpp.ttml.im1t",u=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,r=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,i={left:"start",center:"center",right:"end",start:"start",end:"end"};function n(C,S,_,A,U){var L=Object(b.findBox)(new Uint8Array(C),["mdat"]);if(L.length===0){U(new Error("Could not parse IMSC1 mdat"));return}var N=L[0],V=Object(O.utf8ArrayToStr)(new Uint8Array(C,N.start,N.end-N.start)),H=Object(m.toTimescaleFromScale)(S,1,_);try{A(l(V,H))}catch(D){U(D)}}function l(C,S){var _=new DOMParser,A=_.parseFromString(C,"text/xml"),U=A.getElementsByTagName("tt")[0];if(!U)throw new Error("Invalid ttml");var L={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},N=Object.keys(L).reduce(function(F,I){return F[I]=U.getAttribute("ttp:"+I)||L[I],F},{}),V=U.getAttribute("xml:space")!=="preserve",H=d(h(U,"styling","style")),D=d(h(U,"layout","region")),W=h(U,"body","[begin]");return[].map.call(W,function(F){var I=s(F,V);if(!I||!F.hasAttribute("begin"))return null;var K=v(F.getAttribute("begin"),N),ee=v(F.getAttribute("dur"),N),he=v(F.getAttribute("end"),N);if(K===null)throw E(F);if(he===null){if(ee===null)throw E(F);he=K+ee}var de=new x.default(K-S,he-S,I);de.id=Object(e.generateCueId)(de.startTime,de.endTime,de.text);var Se=D[F.getAttribute("region")],Te=H[F.getAttribute("style")];de.position=10,de.size=80;var ce=c(Se,Te),be=ce.textAlign;if(be){var Ee=i[be];Ee&&(de.lineAlign=Ee),de.align=be}return f(de,ce),de}).filter(function(F){return F!==null})}function h(C,S,_){var A=C.getElementsByTagName(S)[0];return A?[].slice.call(A.querySelectorAll(_)):[]}function d(C){return C.reduce(function(S,_){var A=_.getAttribute("xml:id");return A&&(S[A]=_),S},{})}function s(C,S){return[].slice.call(C.childNodes).reduce(function(_,A,U){var L;return A.nodeName==="br"&&U?_+`
|
|
|
`:(L=A.childNodes)!==null&&L!==void 0&&L.length?s(A,S):S?_+A.textContent.trim().replace(/\s+/g," "):_+A.textContent},"")}function c(C,S){var _="http://www.w3.org/ns/ttml#styling",A=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"];return A.reduce(function(U,L){var N=w(S,_,L)||w(C,_,L);return N&&(U[L]=N),U},{})}function w(C,S,_){return C.hasAttributeNS(S,_)?C.getAttributeNS(S,_):null}function E(C){return new Error("Could not parse ttml timestamp "+C)}function v(C,S){if(!C)return null;var _=Object(y.parseTimeStamp)(C);return _===null&&(u.test(C)?_=R(C,S):r.test(C)&&(_=M(C,S))),_}function R(C,S){var _=u.exec(C),A=(_[4]|0)+(_[5]|0)/S.subFrameRate;return(_[1]|0)*3600+(_[2]|0)*60+(_[3]|0)+A/S.frameRate}function M(C,S){var _=r.exec(C),A=Number(_[1]),U=_[2];switch(U){case"h":return A*3600;case"m":return A*60;case"ms":return A*1e3;case"f":return A/S.frameRate;case"t":return A/S.tickRate}return A}},"./src/utils/logger.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"enableLogs",function(){return e}),T.d(g,"logger",function(){return f});var b=function(){},y={trace:b,debug:b,log:b,warn:b,info:b,error:b},x=y;function O(a){var u=self.console[a];return u?u.bind(self.console,"["+a+"] >"):b}function m(a){for(var u=arguments.length,r=new Array(u>1?u-1:0),i=1;i<u;i++)r[i-1]=arguments[i];r.forEach(function(n){x[n]=a[n]?a[n].bind(a):O(n)})}function e(a){if(self.console&&a===!0||typeof a=="object"){m(a,"debug","log","info","warn","error");try{x.log()}catch(u){x=y}}else x=y}var f=x},"./src/utils/mediakeys-helper.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"KeySystems",function(){return b}),T.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(P,g,T){"use strict";T.r(g),T.d(g,"getMediaSource",function(){return b});function b(){return self.MediaSource||self.WebKitMediaSource}},"./src/utils/mp4-tools.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"bin2str",function(){return m}),T.d(g,"readUint16",function(){return e}),T.d(g,"readUint32",function(){return f}),T.d(g,"writeUint32",function(){return a}),T.d(g,"findBox",function(){return u}),T.d(g,"parseSegmentIndex",function(){return r}),T.d(g,"parseInitSegment",function(){return i}),T.d(g,"getStartDTS",function(){return n}),T.d(g,"getDuration",function(){return l}),T.d(g,"computeRawDurationFromSamples",function(){return h}),T.d(g,"offsetStartDTS",function(){return d}),T.d(g,"segmentValidRange",function(){return s}),T.d(g,"appendUint8Array",function(){return c});var b=T("./src/utils/typed-array.ts"),y=T("./src/loader/fragment.ts"),x=Math.pow(2,32)-1,O=[].push;function m(w){return String.fromCharCode.apply(null,w)}function e(w,E){"data"in w&&(E+=w.start,w=w.data);var v=w[E]<<8|w[E+1];return v<0?65536+v:v}function f(w,E){"data"in w&&(E+=w.start,w=w.data);var v=w[E]<<24|w[E+1]<<16|w[E+2]<<8|w[E+3];return v<0?4294967296+v:v}function a(w,E,v){"data"in w&&(E+=w.start,w=w.data),w[E]=v>>24,w[E+1]=v>>16&255,w[E+2]=v>>8&255,w[E+3]=v&255}function u(w,E){var v=[];if(!E.length)return v;var R,M,C;"data"in w?(R=w.data,M=w.start,C=w.end):(R=w,M=0,C=R.byteLength);for(var S=M;S<C;){var _=f(R,S),A=m(R.subarray(S+4,S+8)),U=_>1?S+_:C;if(A===E[0])if(E.length===1)v.push({data:R,start:S+8,end:U});else{var L=u({data:R,start:S+8,end:U},E.slice(1));L.length&&O.apply(v,L)}S=U}return v}function r(w){var E=u(w,["moov"]),v=E[0],R=v?v.end:null,M=u(w,["sidx"]);if(!M||!M[0])return null;var C=[],S=M[0],_=S.data[0],A=_===0?8:16,U=f(S,A);A+=4;var L=0,N=0;_===0?A+=8:A+=16,A+=2;var V=S.end+N,H=e(S,A);A+=2;for(var D=0;D<H;D++){var W=A,F=f(S,W);W+=4;var I=F&2147483647,K=(F&2147483648)>>>31;if(K===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var ee=f(S,W);W+=4,C.push({referenceSize:I,subsegmentDuration:ee,info:{duration:ee/U,start:V,end:V+I-1}}),V+=I,W+=4,A=W}return{earliestPresentationTime:L,timescale:U,version:_,referencesCount:H,references:C,moovEndOffset:R}}function i(w){for(var E=[],v=u(w,["moov","trak"]),R=0;R<v.length;R++){var M=v[R],C=u(M,["tkhd"])[0];if(C){var S=C.data[C.start],_=S===0?12:20,A=f(C,_),U=u(M,["mdia","mdhd"])[0];if(U){S=U.data[U.start],_=S===0?12:20;var L=f(U,_),N=u(M,["mdia","hdlr"])[0];if(N){var V=m(N.data.subarray(N.start+8,N.start+12)),H={soun:y.ElementaryStreamTypes.AUDIO,vide:y.ElementaryStreamTypes.VIDEO}[V];if(H){var D=u(M,["mdia","minf","stbl","stsd"])[0],W=void 0;D&&(W=m(D.data.subarray(D.start+12,D.start+16))),E[A]={timescale:L,type:H},E[H]={timescale:L,id:A,codec:W}}}}}}var F=u(w,["moov","mvex","trex"]);return F.forEach(function(I){var K=f(I,4),ee=E[K];ee&&(ee.default={duration:f(I,12),flags:f(I,20)})}),E}function n(w,E){return u(E,["moof","traf"]).reduce(function(v,R){var M=u(R,["tfdt"])[0],C=M.data[M.start],S=u(R,["tfhd"]).reduce(function(_,A){var U=f(A,4),L=w[U];if(L){var N=f(M,4);C===1&&(N*=Math.pow(2,32),N+=f(M,8));var V=L.timescale||9e4,H=N/V;if(isFinite(H)&&(_===null||H<_))return H}return _},null);return S!==null&&isFinite(S)&&(v===null||S<v)?S:v},null)||0}function l(w,E){for(var v=0,R=0,M=0,C=u(w,["moof","traf"]),S=0;S<C.length;S++){var _=C[S],A=u(_,["tfhd"])[0],U=f(A,4),L=E[U];if(!L)continue;var N=L.default,V=f(A,0)|(N==null?void 0:N.flags),H=N==null?void 0:N.duration;V&8&&(V&2?H=f(A,12):H=f(A,8));for(var D=L.timescale||9e4,W=u(_,["trun"]),F=0;F<W.length;F++){if(H){var I=f(W[F],4);v=H*I}else v=h(W[F]);L.type===y.ElementaryStreamTypes.VIDEO?R+=v/D:L.type===y.ElementaryStreamTypes.AUDIO&&(M+=v/D)}}if(R===0&&M===0){var K=r(w);if(K!=null&&K.references)return K.references.reduce(function(ee,he){return ee+he.info.duration||0},0)}return R||M}function h(w){var E=f(w,0),v=8;E&1&&(v+=4),E&4&&(v+=4);for(var R=0,M=f(w,4),C=0;C<M;C++){if(E&256){var S=f(w,v);R+=S,v+=4}E&512&&(v+=4),E&1024&&(v+=4),E&2048&&(v+=4)}return R}function d(w,E,v){u(E,["moof","traf"]).forEach(function(R){u(R,["tfhd"]).forEach(function(M){var C=f(M,4),S=w[C];if(!S)return;var _=S.timescale||9e4;u(R,["tfdt"]).forEach(function(A){var U=A.data[A.start],L=f(A,4);if(U===0)a(A,4,L-v*_);else{L*=Math.pow(2,32),L+=f(A,8),L-=v*_,L=Math.max(L,0);var N=Math.floor(L/(x+1)),V=Math.floor(L%(x+1));a(A,4,N),a(A,8,V)}})})})}function s(w){var E={valid:null,remainder:null},v=u(w,["moof"]);if(v){if(v.length<2)return E.remainder=w,E}else return E;var R=v[v.length-1];return E.valid=Object(b.sliceUint8)(w,0,R.start-8),E.remainder=Object(b.sliceUint8)(w,R.start-8),E}function c(w,E){var v=new Uint8Array(w.length+E.length);return v.set(w),v.set(E,w.length),v}},"./src/utils/output-filter.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"default",function(){return b});var b=function(){function y(O,m){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=O,this.trackName=m}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(m,e,f){(this.startTime===null||this.startTime>m)&&(this.startTime=m),this.endTime=e,this.screen=f,this.timelineController.createCaptionsTrack(this.trackName)},x.reset=function(){this.cueRanges=[]},y}()},"./src/utils/texttrack-utils.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"sendAddTrackEvent",function(){return y}),T.d(g,"addCueToTrack",function(){return x}),T.d(g,"clearCurrentCues",function(){return O}),T.d(g,"removeCuesInRange",function(){return m}),T.d(g,"getCuesInRange",function(){return f});var b=T("./src/utils/logger.ts");function y(a,u){var r;try{r=new Event("addtrack")}catch(i){r=document.createEvent("Event"),r.initEvent("addtrack",!1,!1)}r.track=a,u.dispatchEvent(r)}function x(a,u){var r=a.mode;if(r==="disabled"&&(a.mode="hidden"),a.cues&&!a.cues.getCueById(u.id))try{if(a.addCue(u),!a.cues.getCueById(u.id))throw new Error("addCue is failed for: "+u)}catch(n){b.logger.debug("[texttrack-utils]: "+n);var i=new self.TextTrackCue(u.startTime,u.endTime,u.text);i.id=u.id,a.addCue(i)}r==="disabled"&&(a.mode=r)}function O(a){var u=a.mode;if(u==="disabled"&&(a.mode="hidden"),a.cues)for(var r=a.cues.length;r--;)a.removeCue(a.cues[r]);u==="disabled"&&(a.mode=u)}function m(a,u,r){var i=a.mode;if(i==="disabled"&&(a.mode="hidden"),a.cues&&a.cues.length>0)for(var n=f(a.cues,u,r),l=0;l<n.length;l++)a.removeCue(n[l]);i==="disabled"&&(a.mode=i)}function e(a,u){if(u<a[0].startTime)return 0;var r=a.length-1;if(u>a[r].endTime)return-1;for(var i=0,n=r;i<=n;){var l=Math.floor((n+i)/2);if(u<a[l].startTime)n=l-1;else if(u>a[l].startTime&&i<r)i=l+1;else return l}return a[i].startTime-u<u-a[n].startTime?i:n}function f(a,u,r){var i=[],n=e(a,u);if(n>-1)for(var l=n,h=a.length;l<h;l++){var d=a[l];if(d.startTime>=u&&d.endTime<=r)i.push(d);else if(d.startTime>r)return i}return i}},"./src/utils/time-ranges.ts":function(P,g,T){"use strict";T.r(g);var b={toString:function(x){for(var O="",m=x.length,e=0;e<m;e++)O+="["+x.start(e).toFixed(3)+","+x.end(e).toFixed(3)+"]";return O}};g.default=b},"./src/utils/timescale-conversion.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"toTimescaleFromBase",function(){return y}),T.d(g,"toTimescaleFromScale",function(){return x}),T.d(g,"toMsFromMpegTsClock",function(){return O}),T.d(g,"toMpegTsClockFromTimescale",function(){return m});var b=9e4;function y(e,f,a,u){a===void 0&&(a=1),u===void 0&&(u=!1);var r=e*f*a;return u?Math.round(r):r}function x(e,f,a,u){return a===void 0&&(a=1),u===void 0&&(u=!1),y(e,f,1/a,u)}function O(e,f){return f===void 0&&(f=!1),y(e,1e3,1/b,f)}function m(e,f){return f===void 0&&(f=1),y(e,b,1/f)}},"./src/utils/typed-array.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"sliceUint8",function(){return b});function b(y,x,O){return Uint8Array.prototype.slice?y.slice(x,O):new Uint8Array(Array.prototype.slice.call(y,x,O))}},"./src/utils/vttcue.ts":function(P,g,T){"use strict";T.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(a,u){if(typeof u!="string")return!1;if(!Array.isArray(a))return!1;var r=u.toLowerCase();return~a.indexOf(r)?r:!1}function O(a){return x(b,a)}function m(a){return x(y,a)}function e(a){for(var u=arguments.length,r=new Array(u>1?u-1:0),i=1;i<u;i++)r[i-1]=arguments[i];for(var n=1;n<arguments.length;n++){var l=arguments[n];for(var h in l)a[h]=l[h]}return a}function f(a,u,r){var i=this,n={enumerable:!0};i.hasBeenReset=!1;var l="",h=!1,d=a,s=u,c=r,w=null,E="",v=!0,R="auto",M="start",C=50,S="middle",_=50,A="middle";Object.defineProperty(i,"id",e({},n,{get:function(){return l},set:function(L){l=""+L}})),Object.defineProperty(i,"pauseOnExit",e({},n,{get:function(){return h},set:function(L){h=!!L}})),Object.defineProperty(i,"startTime",e({},n,{get:function(){return d},set:function(L){if(typeof L!="number")throw new TypeError("Start time must be set to a number.");d=L,this.hasBeenReset=!0}})),Object.defineProperty(i,"endTime",e({},n,{get:function(){return s},set:function(L){if(typeof L!="number")throw new TypeError("End time must be set to a number.");s=L,this.hasBeenReset=!0}})),Object.defineProperty(i,"text",e({},n,{get:function(){return c},set:function(L){c=""+L,this.hasBeenReset=!0}})),Object.defineProperty(i,"region",e({},n,{get:function(){return w},set:function(L){w=L,this.hasBeenReset=!0}})),Object.defineProperty(i,"vertical",e({},n,{get:function(){return E},set:function(L){var N=O(L);if(N===!1)throw new SyntaxError("An invalid or illegal string was specified.");E=N,this.hasBeenReset=!0}})),Object.defineProperty(i,"snapToLines",e({},n,{get:function(){return v},set:function(L){v=!!L,this.hasBeenReset=!0}})),Object.defineProperty(i,"line",e({},n,{get:function(){return R},set:function(L){if(typeof L!="number"&&L!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");R=L,this.hasBeenReset=!0}})),Object.defineProperty(i,"lineAlign",e({},n,{get:function(){return M},set:function(L){var N=m(L);if(!N)throw new SyntaxError("An invalid or illegal string was specified.");M=N,this.hasBeenReset=!0}})),Object.defineProperty(i,"position",e({},n,{get:function(){return C},set:function(L){if(L<0||L>100)throw new Error("Position must be between 0 and 100.");C=L,this.hasBeenReset=!0}})),Object.defineProperty(i,"positionAlign",e({},n,{get:function(){return S},set:function(L){var N=m(L);if(!N)throw new SyntaxError("An invalid or illegal string was specified.");S=N,this.hasBeenReset=!0}})),Object.defineProperty(i,"size",e({},n,{get:function(){return _},set:function(L){if(L<0||L>100)throw new Error("Size must be between 0 and 100.");_=L,this.hasBeenReset=!0}})),Object.defineProperty(i,"align",e({},n,{get:function(){return A},set:function(L){var N=m(L);if(!N)throw new SyntaxError("An invalid or illegal string was specified.");A=N,this.hasBeenReset=!0}})),i.displayState=void 0}return f.prototype.getCueAsHTML=function(){var a=self.WebVTT;return a.convertCueToDOMTree(self,this.text)},f}()},"./src/utils/vttparser.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"parseTimeStamp",function(){return x}),T.d(g,"fixLineBreaks",function(){return u}),T.d(g,"VTTParser",function(){return r});var b=T("./src/utils/vttcue.ts"),y=function(){function i(){}var n=i.prototype;return n.decode=function(h,d){if(!h)return"";if(typeof h!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(h))},i}();function x(i){function n(h,d,s,c){return(h|0)*3600+(d|0)*60+(s|0)+parseFloat(c||0)}var l=i.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return l?parseFloat(l[2])>59?n(l[2],l[3],0,l[4]):n(l[1],l[2],l[3],l[4]):null}var O=function(){function i(){this.values=Object.create(null)}var n=i.prototype;return n.set=function(h,d){!this.get(h)&&d!==""&&(this.values[h]=d)},n.get=function(h,d,s){return s?this.has(h)?this.values[h]:d[s]:this.has(h)?this.values[h]:d},n.has=function(h){return h in this.values},n.alt=function(h,d,s){for(var c=0;c<s.length;++c)if(d===s[c]){this.set(h,d);break}},n.integer=function(h,d){/^-?\d+$/.test(d)&&this.set(h,parseInt(d,10))},n.percent=function(h,d){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(d)){var s=parseFloat(d);if(s>=0&&s<=100)return this.set(h,s),!0}return!1},i}();function m(i,n,l,h){var d=h?i.split(h):[i];for(var s in d){if(typeof d[s]!="string")continue;var c=d[s].split(l);if(c.length!==2)continue;var w=c[0],E=c[1];n(w,E)}}var e=new b.default(0,0,""),f=e.align==="middle"?"middle":"center";function a(i,n,l){var h=i;function d(){var w=x(i);if(w===null)throw new Error("Malformed timestamp: "+h);return i=i.replace(/^[^\sa-zA-Z-]+/,""),w}function s(w,E){var v=new O;m(w,function(C,S){var _;switch(C){case"region":for(var A=l.length-1;A>=0;A--)if(l[A].id===S){v.set(C,l[A].region);break}break;case"vertical":v.alt(C,S,["rl","lr"]);break;case"line":_=S.split(","),v.integer(C,_[0]),v.percent(C,_[0])&&v.set("snapToLines",!1),v.alt(C,_[0],["auto"]),_.length===2&&v.alt("lineAlign",_[1],["start",f,"end"]);break;case"position":_=S.split(","),v.percent(C,_[0]),_.length===2&&v.alt("positionAlign",_[1],["start",f,"end","line-left","line-right","auto"]);break;case"size":v.percent(C,S);break;case"align":v.alt(C,S,["start",f,"end","left","right"]);break}},/:/,/\s/),E.region=v.get("region",null),E.vertical=v.get("vertical","");var R=v.get("line","auto");R==="auto"&&e.line===-1&&(R=-1),E.line=R,E.lineAlign=v.get("lineAlign","start"),E.snapToLines=v.get("snapToLines",!0),E.size=v.get("size",100),E.align=v.get("align",f);var M=v.get("position","auto");M==="auto"&&e.position===50&&(M=E.align==="start"||E.align==="left"?0:E.align==="end"||E.align==="right"?100:50),E.position=M}function c(){i=i.replace(/^\s+/,"")}if(c(),n.startTime=d(),c(),i.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+h);i=i.substr(3),c(),n.endTime=d(),c(),s(i,n)}function u(i){return i.replace(/<br(?: \/)?>/gi,`
|
|
|
`)}var r=function(){function i(){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=i.prototype;return n.parse=function(h){var d=this;h&&(d.buffer+=d.decoder.decode(h,{stream:!0}));function s(){var M=d.buffer,C=0;for(M=u(M);C<M.length&&M[C]!=="\r"&&M[C]!==`
|
|
|
`;)++C;var S=M.substr(0,C);return M[C]==="\r"&&++C,M[C]===`
|
|
|
`&&++C,d.buffer=M.substr(C),S}function c(M){m(M,function(C,S){},/:/)}try{var w="";if(d.state==="INITIAL"){if(!/\r\n|\n/.test(d.buffer))return this;w=s();var E=w.match(/^()?WEBVTT([ \t].*)?$/);if(!E||!E[0])throw new Error("Malformed WebVTT signature.");d.state="HEADER"}for(var v=!1;d.buffer;){if(!/\r\n|\n/.test(d.buffer))return this;v?v=!1:w=s();switch(d.state){case"HEADER":/:/.test(w)?c(w):w||(d.state="ID");continue;case"NOTE":w||(d.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(w)){d.state="NOTE";break}if(!w)continue;if(d.cue=new b.default(0,0,""),d.state="CUE",w.indexOf("-->")===-1){d.cue.id=w;continue}case"CUE":if(!d.cue){d.state="BADCUE";continue}try{a(w,d.cue,d.regionList)}catch(M){d.cue=null,d.state="BADCUE";continue}d.state="CUETEXT";continue;case"CUETEXT":{var R=w.indexOf("-->")!==-1;if(!w||R&&(v=!0)){d.oncue&&d.cue&&d.oncue(d.cue),d.cue=null,d.state="ID";continue}if(d.cue===null)continue;d.cue.text&&(d.cue.text+=`
|
|
|
`),d.cue.text+=w}continue;case"BADCUE":w||(d.state="ID")}}}catch(M){d.state==="CUETEXT"&&d.cue&&d.oncue&&d.oncue(d.cue),d.cue=null,d.state=d.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(d){h.onparsingerror&&h.onparsingerror(d)}return h.onflush&&h.onflush(),this},i}()},"./src/utils/webvtt-parser.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"generateCueId",function(){return r}),T.d(g,"parseWebVTT",function(){return n});var b=T("./src/polyfills/number.ts"),y=T("./src/utils/vttparser.ts"),x=T("./src/demux/id3.ts"),O=T("./src/utils/timescale-conversion.ts"),m=T("./src/remux/mp4-remuxer.ts"),e=/\r\n|\n\r|\n|\r/g,f=function(h,d,s){return s===void 0&&(s=0),h.substr(s,d.length)===d},a=function(h){var d=parseInt(h.substr(-3)),s=parseInt(h.substr(-6,2)),c=parseInt(h.substr(-9,2)),w=h.length>9?parseInt(h.substr(0,h.indexOf(":"))):0;if(!Object(b.isFiniteNumber)(d)||!Object(b.isFiniteNumber)(s)||!Object(b.isFiniteNumber)(c)||!Object(b.isFiniteNumber)(w))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+h);return d+=1e3*s,d+=60*1e3*c,d+=60*60*1e3*w,d},u=function(h){for(var d=5381,s=h.length;s;)d=d*33^h.charCodeAt(--s);return(d>>>0).toString()};function r(l,h,d){return u(l.toString())+u(h.toString())+u(d)}var i=function(h,d,s){var c=h[d],w=h[c.prevCC];if(!w||!w.new&&c.new){h.ccOffset=h.presentationOffset=c.start,c.new=!1;return}for(;(E=w)!==null&&E!==void 0&&E.new;){var E;h.ccOffset+=c.start-w.start,c.new=!1,c=w,w=h[c.prevCC]}h.presentationOffset=s};function n(l,h,d,s,c,w,E,v){var R=new y.VTTParser,M=Object(x.utf8ArrayToStr)(new Uint8Array(l)).trim().replace(e,`
|
|
|
`).split(`
|
|
|
`),C=[],S=Object(O.toMpegTsClockFromTimescale)(h,d),_="00:00.000",A=0,U=0,L,N=!0,V=!1;R.oncue=function(H){var D=s[c],W=s.ccOffset,F=(A-S)/9e4;if(D!=null&&D.new&&(U!==void 0?W=s.ccOffset=D.start:i(s,c,F)),F&&(W=F-s.presentationOffset),V){var I=H.endTime-H.startTime,K=Object(m.normalizePts)((H.startTime+W-U)*9e4,w*9e4)/9e4;H.startTime=K,H.endTime=K+I}var ee=H.text.trim();H.text=decodeURIComponent(encodeURIComponent(ee)),H.id||(H.id=r(H.startTime,H.endTime,ee)),H.endTime>0&&C.push(H)},R.onparsingerror=function(H){L=H},R.onflush=function(){if(L){v(L);return}E(C)},M.forEach(function(H){if(N)if(f(H,"X-TIMESTAMP-MAP=")){N=!1,V=!0,H.substr(16).split(",").forEach(function(D){f(D,"LOCAL:")?_=D.substr(6):f(D,"MPEGTS:")&&(A=parseInt(D.substr(7)))});try{U=a(_)/1e3}catch(D){V=!1,L=D}return}else H===""&&(N=!1);R.parse(H+`
|
|
|
`)}),R.flush()}},"./src/utils/xhr-loader.ts":function(P,g,T){"use strict";T.r(g);var b=T("./src/utils/logger.ts"),y=T("./src/loader/load-stats.ts"),x=/^age:\s*[\d.]+\s*$/m,O=function(){function m(f){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=f?f.xhrSetup:null,this.stats=new y.LoadStats,this.retryDelay=0}var e=m.prototype;return e.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},e.abortInternal=function(){var a=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),a&&(a.onreadystatechange=null,a.onprogress=null,a.readyState!==4&&(this.stats.aborted=!0,a.abort()))},e.abort=function(){var a;this.abortInternal(),(a=this.callbacks)!==null&&a!==void 0&&a.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},e.load=function(a,u,r){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=a,this.config=u,this.callbacks=r,this.retryDelay=u.retryDelay,this.loadInternal()},e.loadInternal=function(){var a=this.config,u=this.context;if(!a)return;var r=this.loader=new self.XMLHttpRequest,i=this.stats;i.loading.first=0,i.loaded=0;var n=this.xhrSetup;try{if(n)try{n(r,u.url)}catch(d){r.open("GET",u.url,!0),n(r,u.url)}r.readyState||r.open("GET",u.url,!0);var l=this.context.headers;if(l)for(var h in l)r.setRequestHeader(h,l[h])}catch(d){this.callbacks.onError({code:r.status,text:d.message},u,r);return}u.rangeEnd&&r.setRequestHeader("Range","bytes="+u.rangeStart+"-"+(u.rangeEnd-1)),r.onreadystatechange=this.readystatechange.bind(this),r.onprogress=this.loadprogress.bind(this),r.responseType=u.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),a.timeout),r.send()},e.readystatechange=function(){var a=this.context,u=this.loader,r=this.stats;if(!a||!u)return;var i=u.readyState,n=this.config;if(r.aborted)return;if(i>=2)if(self.clearTimeout(this.requestTimeout),r.loading.first===0&&(r.loading.first=Math.max(self.performance.now(),r.loading.start)),i===4){u.onreadystatechange=null,u.onprogress=null;var l=u.status;if(l>=200&&l<300){r.loading.end=Math.max(self.performance.now(),r.loading.first);var h,d;if(a.responseType==="arraybuffer"?(h=u.response,d=h.byteLength):(h=u.responseText,d=h.length),r.loaded=r.total=d,!this.callbacks)return;var s=this.callbacks.onProgress;if(s&&s(r,a,h,u),!this.callbacks)return;var c={url:u.responseURL,data:h};this.callbacks.onSuccess(c,r,a,u)}else r.retry>=n.maxRetry||l>=400&&l<499?(b.logger.error(l+" while loading "+a.url),this.callbacks.onError({code:l,text:u.statusText},a,u)):(b.logger.warn(l+" while loading "+a.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),r.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout)},e.loadtimeout=function(){b.logger.warn("timeout while loading "+this.context.url);var a=this.callbacks;a&&(this.abortInternal(),a.onTimeout(this.stats,this.context,this.loader))},e.loadprogress=function(a){var u=this.stats;u.loaded=a.loaded,a.lengthComputable&&(u.total=a.total)},e.getCacheAge=function(){var a=null;if(this.loader&&x.test(this.loader.getAllResponseHeaders())){var u=this.loader.getResponseHeader("age");a=u?parseFloat(u):null}return a},m}();g.default=O}}).default})},vHTk:function(k,z,o){k.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},vToQ:function(k,z,o){k.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(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(P){return function(){var g=P,T=g.lib,b=T.StreamCipher,y=g.algo,x=y.RC4=b.extend({_doReset:function(){for(var e=this._key,f=e.words,a=e.sigBytes,u=this._S=[],r=0;r<256;r++)u[r]=r;for(var r=0,i=0;r<256;r++){var n=r%a,l=f[n>>>2]>>>24-n%4*8&255;i=(i+u[r]+l)%256;var h=u[r];u[r]=u[i],u[i]=h}this._i=this._j=0},_doProcessBlock:function(e,f){e[f]^=O.call(this)},keySize:256/32,ivSize:0});function O(){for(var e=this._S,f=this._i,a=this._j,u=0,r=0;r<4;r++){f=(f+1)%256,a=(a+e[f])%256;var i=e[f];e[f]=e[a],e[a]=i,u|=e[(e[f]+e[a])%256]<<24-r*8}return this._i=f,this._j=a,u}g.RC4=b._createHelper(x);var m=y.RC4Drop=x.extend({cfg:x.cfg.extend({drop:192}),_doReset:function(){x._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)O.call(this)}});g.RC4Drop=b._createHelper(m)}(),P.RC4})},wCXF:function(k,z,o){"use strict";o.d(z,"a",function(){return dt});var P=o("rePB"),g=o("VTBJ"),T=o("KQm4"),b=o("U8pU"),y=o("ODXe"),x=o("q1tI"),O=o("TSYQ"),m=o.n(O),e=o("Gytx"),f=o.n(e),a=o("Kwbf"),u=o("t23M"),r=o("qx4F"),i=o("6eGT"),n=o("IBYe"),l=o("Ff2n"),h=o("c+Xe"),d=o("fyJ8"),s=o("biw7");function c(Ye,Ue,ft,jt,bt){var Pt=ft[Ye]||{},it=ft[Ue]||{},He,Ge;Pt.fixed==="left"?He=jt.left[Ye]:it.fixed==="right"&&(Ge=jt.right[Ue]);var Ce=!1,Ie=!1,Fe=!1,Be=!1,We=ft[Ue+1],st=ft[Ye-1];if(bt==="rtl"){if(He!==void 0){var Dt=st&&st.fixed==="left";Be=!Dt}else if(Ge!==void 0){var Ht=We&&We.fixed==="right";Fe=!Ht}}else if(He!==void 0){var rn=We&&We.fixed==="left";Ce=!rn}else if(Ge!==void 0){var Bt=st&&st.fixed==="right";Ie=!Bt}return{fixLeft:He,fixRight:Ge,lastFixLeft:Ce,firstFixRight:Ie,lastFixRight:Fe,firstFixLeft:Be,isSticky:jt.isSticky}}var w=o("sR1s");function E(Ye){var Ue=Ye.cells,ft=Ye.stickyOffsets,jt=Ye.flattenColumns,bt=Ye.rowComponent,Pt=Ye.cellComponent,it=Ye.onHeaderRow,He=Ye.index,Ge=x.useContext(s.a),Ce=Ge.prefixCls,Ie=Ge.direction,Fe;it&&(Fe=it(Ue.map(function(We){return We.column}),He));var Be=Object(w.a)(Ue.map(function(We){return We.column}));return x.createElement(bt,Object.assign({},Fe),Ue.map(function(We,st){var Dt=We.column,Ht=c(We.colStart,We.colEnd,jt,ft,Ie),rn;return Dt&&Dt.onHeaderCell&&(rn=We.column.onHeaderCell(Dt)),x.createElement(d.a,Object.assign({},We,{ellipsis:Dt.ellipsis,align:Dt.align,component:Pt,prefixCls:Ce,key:Be[st]},Ht,{additionalProps:rn,rowType:"header"}))}))}E.displayName="HeaderRow";var v=E;function R(Ye){var Ue=[];function ft(it,He){var Ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Ue[Ge]=Ue[Ge]||[];var Ce=He,Ie=it.filter(Boolean).map(function(Fe){var Be={key:Fe.key,className:Fe.className||"",children:Fe.title,column:Fe,colStart:Ce},We=1,st=Fe.children;return st&&st.length>0&&(We=ft(st,Ce,Ge+1).reduce(function(Dt,Ht){return Dt+Ht},0),Be.hasSubColumns=!0),"colSpan"in Fe&&(We=Fe.colSpan),"rowSpan"in Fe&&(Be.rowSpan=Fe.rowSpan),Be.colSpan=We,Be.colEnd=Be.colStart+We-1,Ue[Ge].push(Be),Ce+=We,We});return Ie}ft(Ye,0);for(var jt=Ue.length,bt=function(He){Ue[He].forEach(function(Ge){!("rowSpan"in Ge)&&!Ge.hasSubColumns&&(Ge.rowSpan=jt-He)})},Pt=0;Pt<jt;Pt+=1)bt(Pt);return Ue}function M(Ye){var Ue=Ye.stickyOffsets,ft=Ye.columns,jt=Ye.flattenColumns,bt=Ye.onHeaderRow,Pt=x.useContext(s.a),it=Pt.prefixCls,He=Pt.getComponent,Ge=x.useMemo(function(){return R(ft)},[ft]),Ce=He(["header","wrapper"],"thead"),Ie=He(["header","row"],"tr"),Fe=He(["header","cell"],"th");return x.createElement(Ce,{className:"".concat(it,"-thead")},Ge.map(function(Be,We){var st=x.createElement(v,{key:We,flattenColumns:jt,cells:Be,stickyOffsets:Ue,rowComponent:Ie,cellComponent:Fe,onHeaderRow:bt,index:We});return st}))}var C=M,S=o("hW8S");function _(Ye){for(var Ue=Ye.colWidths,ft=Ye.columns,jt=Ye.columCount,bt=[],Pt=jt||ft.length,it=!1,He=Pt-1;He>=0;He-=1){var Ge=Ue[He],Ce=ft&&ft[He],Ie=Ce&&Ce[S.a];(Ge||Ie||it)&&(bt.unshift(x.createElement("col",Object.assign({key:He,style:{width:Ge,minWidth:Ge}},Ie))),it=!0)}return x.createElement("colgroup",null,bt)}var A=_;function U(Ye,Ue){return Object(x.useMemo)(function(){for(var ft=[],jt=0;jt<Ue;jt+=1){var bt=Ye[jt];if(bt!==void 0)ft[jt]=bt;else return null}return ft},[Ye.join("_"),Ue])}var L=x.forwardRef(function(Ye,Ue){var ft=Ye.noData,jt=Ye.columns,bt=Ye.flattenColumns,Pt=Ye.colWidths,it=Ye.columCount,He=Ye.stickyOffsets,Ge=Ye.direction,Ce=Ye.fixHeader,Ie=Ye.offsetHeader,Fe=Ye.stickyClassName,Be=Ye.onScroll,We=Object(l.a)(Ye,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll"]),st=x.useContext(s.a),Dt=st.prefixCls,Ht=st.scrollbarSize,rn=st.isSticky,Bt=rn&&!Ce?0:Ht,Ct=x.useRef(null),Ke=x.useCallback(function(Ot){Object(h.b)(Ue,Ot),Object(h.b)(Ct,Ot)},[]);x.useEffect(function(){var Ot;function Mt(lt){var Ft=lt.currentTarget,Lt=lt.deltaX;Lt&&(Be({currentTarget:Ft,scrollLeft:Ft.scrollLeft+Lt}),lt.preventDefault())}return(Ot=Ct.current)===null||Ot===void 0||Ot.addEventListener("wheel",Mt),function(){var lt;(lt=Ct.current)===null||lt===void 0||lt.removeEventListener("wheel",Mt)}},[]);var et=bt[bt.length-1],at={fixed:et?et.fixed:null,onHeaderCell:function(){return{className:"".concat(Dt,"-cell-scrollbar")}}},Pe=Object(x.useMemo)(function(){return Bt?[].concat(Object(T.a)(jt),[at]):jt},[Bt,jt]),Xe=Object(x.useMemo)(function(){return Bt?[].concat(Object(T.a)(bt),[at]):bt},[Bt,bt]),ht=Object(x.useMemo)(function(){var Ot=He.right,Mt=He.left;return Object(g.a)(Object(g.a)({},He),{},{left:Ge==="rtl"?[].concat(Object(T.a)(Mt.map(function(lt){return lt+Bt})),[0]):Mt,right:Ge==="rtl"?Ot:[].concat(Object(T.a)(Ot.map(function(lt){return lt+Bt})),[0]),isSticky:rn})},[Bt,He,rn]),Et=U(Pt,it);return x.createElement("div",{style:Object(g.a)({overflow:"hidden"},rn?{top:Ie}:{}),ref:Ke,className:m()("".concat(Dt,"-header"),Object(P.a)({},Fe,!!Fe))},x.createElement("table",{style:{tableLayout:"fixed",visibility:ft||Et?null:"hidden"}},x.createElement(A,{colWidths:Et?[].concat(Object(T.a)(Et),[Bt]):[],columCount:it+1,columns:Xe}),x.createElement(C,Object.assign({},We,{stickyOffsets:ht,columns:Pe,flattenColumns:Xe}))))});L.displayName="FixedHeader";var N=L,V=x.createContext(null),H=V;function D(Ye){var Ue=Ye.prefixCls,ft=Ye.children,jt=Ye.component,bt=Ye.cellComponent,Pt=Ye.fixHeader,it=Ye.fixColumn,He=Ye.horizonScroll,Ge=Ye.className,Ce=Ye.expanded,Ie=Ye.componentWidth,Fe=Ye.colSpan,Be=x.useContext(s.a),We=Be.scrollbarSize;return x.useMemo(function(){var st=ft;return it&&(st=x.createElement("div",{style:{width:Ie-(Pt?We:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Ue,"-expanded-row-fixed")},st)),x.createElement(jt,{className:Ge,style:{display:Ce?null:"none"}},x.createElement(d.a,{component:bt,prefixCls:Ue,colSpan:Fe},st))},[ft,jt,Pt,He,Ge,Ce,Ie,Fe,We])}var W=D;function F(Ye){var Ue=Ye.className,ft=Ye.style,jt=Ye.record,bt=Ye.index,Pt=Ye.rowKey,it=Ye.getRowKey,He=Ye.rowExpandable,Ge=Ye.expandedKeys,Ce=Ye.onRow,Ie=Ye.indent,Fe=Ie===void 0?0:Ie,Be=Ye.rowComponent,We=Ye.cellComponent,st=Ye.childrenColumnName,Dt=x.useContext(s.a),Ht=Dt.prefixCls,rn=Dt.fixedInfoList,Bt=x.useContext(H),Ct=Bt.fixHeader,Ke=Bt.fixColumn,et=Bt.horizonScroll,at=Bt.componentWidth,Pe=Bt.flattenColumns,Xe=Bt.expandableType,ht=Bt.expandRowByClick,Et=Bt.onTriggerExpand,Ot=Bt.rowClassName,Mt=Bt.expandedRowClassName,lt=Bt.indentSize,Ft=Bt.expandIcon,Lt=Bt.expandedRowRender,on=Bt.expandIconColumnIndex,mn=x.useState(!1),Hn=Object(y.a)(mn,2),Xn=Hn[0],Fn=Hn[1],xn=Ge&&Ge.has(Ye.recordKey);x.useEffect(function(){xn&&Fn(!0)},[xn]);var fr=Xe==="row"&&(!He||He(jt)),Yn=Xe==="nest",ar=st&&jt&&jt[st],nr=fr||Yn,Rr;Ce&&(Rr=Ce(jt,bt));var pr=function(X){if(ht&&nr&&Et(jt,X),Rr&&Rr.onClick){for(var q,oe=arguments.length,De=new Array(oe>1?oe-1:0),fe=1;fe<oe;fe++)De[fe-1]=arguments[fe];(q=Rr).onClick.apply(q,[X].concat(De))}},sn;typeof Ot=="string"?sn=Ot:typeof Ot=="function"&&(sn=Ot(jt,bt,Fe));var qt=Object(w.a)(Pe),On=x.createElement(Be,Object.assign({},Rr,{"data-row-key":Pt,className:m()(Ue,"".concat(Ht,"-row"),"".concat(Ht,"-row-level-").concat(Fe),sn,Rr&&Rr.className),style:Object(g.a)(Object(g.a)({},ft),Rr?Rr.style:null),onClick:pr}),Pe.map(function(pe,X){var q=pe.render,oe=pe.dataIndex,De=pe.className,fe=qt[X],ot=rn[X],Qt;X===(on||0)&&Yn&&(Qt=x.createElement(x.Fragment,null,x.createElement("span",{style:{paddingLeft:"".concat(lt*Fe,"px")},className:"".concat(Ht,"-row-indent indent-level-").concat(Fe)}),Ft({prefixCls:Ht,expanded:xn,expandable:ar,record:jt,onExpand:Et})));var Mn;return pe.onCell&&(Mn=pe.onCell(jt,bt)),x.createElement(d.a,Object.assign({className:De,ellipsis:pe.ellipsis,align:pe.align,component:We,prefixCls:Ht,key:fe,record:jt,index:bt,dataIndex:oe,render:q,shouldCellUpdate:pe.shouldCellUpdate},ot,{appendNode:Qt,additionalProps:Mn}))})),Fr;if(fr&&(Xn||xn)){var Or=Lt(jt,bt,Fe+1,xn),xr=Mt&&Mt(jt,bt,Fe);Fr=x.createElement(W,{expanded:xn,className:m()("".concat(Ht,"-expanded-row"),"".concat(Ht,"-expanded-row-level-").concat(Fe+1),xr),prefixCls:Ht,fixHeader:Ct,fixColumn:Ke,horizonScroll:et,component:Be,componentWidth:at,cellComponent:We,colSpan:Pe.length},Or)}var dr;return ar&&xn&&(dr=(jt[st]||[]).map(function(pe,X){var q=it(pe,X);return x.createElement(F,Object.assign({},Ye,{key:q,rowKey:q,record:pe,recordKey:q,index:X,indent:Fe+1}))})),x.createElement(x.Fragment,null,On,Fr,dr)}F.displayName="BodyRow";var I=F,K=x.createContext(null),ee=K;function he(Ye){var Ue=Ye.columnKey,ft=Ye.onColumnResize,jt=x.useRef();return x.useEffect(function(){jt.current&&ft(Ue,jt.current.offsetWidth)},[]),x.createElement(u.a,{onResize:function(Pt){var it=Pt.offsetWidth;ft(Ue,it)}},x.createElement("td",{ref:jt,style:{padding:0,border:0,height:0}},x.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function de(Ye){var Ue=Ye.data,ft=Ye.getRowKey,jt=Ye.measureColumnWidth,bt=Ye.expandedKeys,Pt=Ye.onRow,it=Ye.rowExpandable,He=Ye.emptyNode,Ge=Ye.childrenColumnName,Ce=x.useContext(ee),Ie=Ce.onColumnResize,Fe=x.useContext(s.a),Be=Fe.prefixCls,We=Fe.getComponent,st=x.useContext(H),Dt=st.fixHeader,Ht=st.horizonScroll,rn=st.flattenColumns,Bt=st.componentWidth;return x.useMemo(function(){var Ct=We(["body","wrapper"],"tbody"),Ke=We(["body","row"],"tr"),et=We(["body","cell"],"td"),at;Ue.length?at=Ue.map(function(Xe,ht){var Et=ft(Xe,ht);return x.createElement(I,{key:Et,rowKey:Et,record:Xe,recordKey:Et,index:ht,rowComponent:Ke,cellComponent:et,expandedKeys:bt,onRow:Pt,getRowKey:ft,rowExpandable:it,childrenColumnName:Ge})}):at=x.createElement(W,{expanded:!0,className:"".concat(Be,"-placeholder"),prefixCls:Be,fixHeader:Dt,fixColumn:Ht,horizonScroll:Ht,component:Ke,componentWidth:Bt,cellComponent:et,colSpan:rn.length},He);var Pe=Object(w.a)(rn);return x.createElement(Ct,{className:"".concat(Be,"-tbody")},jt&&x.createElement("tr",{"aria-hidden":"true",className:"".concat(Be,"-measure-row"),style:{height:0}},Pe.map(function(Xe){return x.createElement(he,{key:Xe,columnKey:Xe,onColumnResize:Ie})})),at)},[Ue,Be,Pt,jt,bt,ft,We,Bt,He,rn])}var Se=x.memo(de);Se.displayName="Body";var Te=Se,ce=o("wRmb"),be=o("xEkU"),Ee=o.n(be);function ue(Ye){var Ue=Object(x.useRef)(Ye),ft=Object(x.useState)({}),jt=Object(y.a)(ft,2),bt=jt[1],Pt=Object(x.useRef)(null),it=Object(x.useRef)([]);function He(Ge){Pt.current===null&&(it.current=[],Pt.current=Ee()(function(){it.current.forEach(function(Ce){Ue.current=Ce(Ue.current)}),Pt.current=null,bt({})})),it.current.push(Ge)}return Object(x.useEffect)(function(){return function(){Ee.a.cancel(Pt.current)}},[]),[Ue.current,He]}function le(Ye){var Ue=Object(x.useRef)(Ye),ft=Object(x.useRef)(null);function jt(){window.clearTimeout(ft.current)}function bt(it){Ue.current=it,jt(),ft.current=window.setTimeout(function(){Ue.current=null,ft.current=null},100)}function Pt(){return Ue.current}return Object(x.useEffect)(function(){return jt},[]),[bt,Pt]}function $(Ye,Ue,ft){var jt=Object(x.useMemo)(function(){for(var bt=[],Pt=[],it=0,He=0,Ge=0;Ge<Ue;Ge+=1)if(ft==="rtl"){Pt[Ge]=He,He+=Ye[Ge]||0;var Ce=Ue-Ge-1;bt[Ce]=it,it+=Ye[Ce]||0}else{bt[Ge]=it,it+=Ye[Ge]||0;var Ie=Ue-Ge-1;Pt[Ie]=He,He+=Ye[Ie]||0}return{left:bt,right:Pt}},[Ye,Ue,ft]);return jt}var me=$;function re(Ye){var Ue=Ye.className,ft=Ye.children;return x.createElement("div",{className:Ue},ft)}var ae=re,Oe=o("n6Qo");function se(Ye){var Ue,ft=Ye.prefixCls,jt=Ye.record,bt=Ye.onExpand,Pt=Ye.expanded,it=Ye.expandable,He="".concat(ft,"-row-expand-icon");if(!it)return x.createElement("span",{className:m()(He,"".concat(ft,"-row-spaced"))});var Ge=function(Ie){bt(jt,Ie),Ie.stopPropagation()};return x.createElement("span",{className:m()(He,(Ue={},Object(P.a)(Ue,"".concat(ft,"-row-expanded"),Pt),Object(P.a)(Ue,"".concat(ft,"-row-collapsed"),!Pt),Ue)),onClick:Ge})}function te(Ye,Ue,ft){var jt=[];function bt(Pt){(Pt||[]).forEach(function(it,He){jt.push(Ue(it,He)),bt(it[ft])})}return bt(Ye),jt}var Q=o("zT1h"),J=o("y0+3"),ve=function(Ue,ft){var jt,bt,Pt=Ue.scrollBodyRef,it=Ue.onScroll,He=Ue.offsetScroll,Ge=x.useContext(s.a),Ce=Ge.prefixCls,Ie=((jt=Pt.current)===null||jt===void 0?void 0:jt.scrollWidth)||0,Fe=((bt=Pt.current)===null||bt===void 0?void 0:bt.clientWidth)||0,Be=Ie&&Fe*(Fe/Ie),We=x.useRef(),st=ue({scrollLeft:0,isHiddenScrollBar:!1}),Dt=Object(y.a)(st,2),Ht=Dt[0],rn=Dt[1],Bt=x.useRef({delta:0,x:0}),Ct=x.useState(!1),Ke=Object(y.a)(Ct,2),et=Ke[0],at=Ke[1],Pe=function(){at(!1)},Xe=function(lt){lt.persist(),Bt.current.delta=lt.pageX-Ht.scrollLeft,Bt.current.x=0,at(!0),lt.preventDefault()},ht=function(lt){var Ft,Lt=lt||((Ft=window)===null||Ft===void 0?void 0:Ft.event),on=Lt.buttons;if(!et||on===0){et&&at(!1);return}var mn=Bt.current.x+lt.pageX-Bt.current.x-Bt.current.delta;mn<=0&&(mn=0),mn+Be>=Fe&&(mn=Fe-Be),it({scrollLeft:mn/Fe*(Ie+2)}),Bt.current.x=lt.pageX},Et=function(){var lt=Object(J.b)(Pt.current).top,Ft=lt+Pt.current.offsetHeight,Lt=document.documentElement.scrollTop+window.innerHeight;Ft-Object(r.a)()<=Lt||lt>=Lt-He?rn(function(on){return Object(g.a)(Object(g.a)({},on),{},{isHiddenScrollBar:!0})}):rn(function(on){return Object(g.a)(Object(g.a)({},on),{},{isHiddenScrollBar:!1})})},Ot=function(lt){rn(function(Ft){return Object(g.a)(Object(g.a)({},Ft),{},{scrollLeft:lt/Ie*Fe||0})})};return x.useImperativeHandle(ft,function(){return{setScrollLeft:Ot}}),x.useEffect(function(){var Mt=Object(Q.a)(document.body,"mouseup",Pe,!1),lt=Object(Q.a)(document.body,"mousemove",ht,!1);return Et(),function(){Mt.remove(),lt.remove()}},[Be,et]),x.useEffect(function(){var Mt=Object(Q.a)(window,"scroll",Et,!1),lt=Object(Q.a)(window,"resize",Et,!1);return function(){Mt.remove(),lt.remove()}},[]),x.useEffect(function(){Ht.isHiddenScrollBar||rn(function(Mt){var lt,Ft;return Object(g.a)(Object(g.a)({},Mt),{},{scrollLeft:Pt.current.scrollLeft/((lt=Pt.current)===null||lt===void 0?void 0:lt.scrollWidth)*((Ft=Pt.current)===null||Ft===void 0?void 0:Ft.clientWidth)})})},[Ht.isHiddenScrollBar]),Ie<=Fe||!Be||Ht.isHiddenScrollBar?null:x.createElement("div",{style:{height:Object(r.a)(),width:Fe,bottom:He},className:"".concat(Ce,"-sticky-scroll")},x.createElement("div",{onMouseDown:Xe,ref:We,className:m()("".concat(Ce,"-sticky-scroll-bar"),Object(P.a)({},"".concat(Ce,"-sticky-scroll-bar-active"),et)),style:{width:"".concat(Be,"px"),transform:"translate3d(".concat(Ht.scrollLeft,"px, 0, 0)")}}))},_e=x.forwardRef(ve);function Ae(Ye,Ue){return x.useMemo(function(){var ft=!!Ye;return{isSticky:ft,stickyClassName:ft?"".concat(Ue,"-sticky-header"):"",offsetHeader:Object(b.a)(Ye)==="object"&&Ye.offsetHeader||0,offsetScroll:Object(b.a)(Ye)==="object"&&Ye.offsetScroll||0}},[Ye,Ue])}var Qe=[],tt={},dt="rc-table-internal-hook",mt=x.memo(function(Ye){var Ue=Ye.children;return Ue},function(Ye,Ue){return f()(Ye.props,Ue.props)?Ye.pingLeft!==Ue.pingLeft||Ye.pingRight!==Ue.pingRight:!1});function vt(Ye){var Ue,ft=Ye.prefixCls,jt=Ye.className,bt=Ye.rowClassName,Pt=Ye.style,it=Ye.data,He=Ye.rowKey,Ge=Ye.scroll,Ce=Ye.tableLayout,Ie=Ye.direction,Fe=Ye.title,Be=Ye.footer,We=Ye.summary,st=Ye.id,Dt=Ye.showHeader,Ht=Ye.components,rn=Ye.emptyText,Bt=Ye.onRow,Ct=Ye.onHeaderRow,Ke=Ye.internalHooks,et=Ye.transformColumns,at=Ye.internalRefs,Pe=Ye.sticky,Xe=it||Qe,ht=!!Xe.length,Et=x.useState(0),Ot=Object(y.a)(Et,2),Mt=Ot[0],lt=Ot[1];x.useEffect(function(){lt(Object(r.a)())});var Ft=x.useMemo(function(){return Object(w.c)(Ht,{})},[Ht]),Lt=x.useCallback(function(Gt,Zt){return Object(w.b)(Ft,Gt)||Zt},[Ft]),on=x.useMemo(function(){return typeof He=="function"?He:function(Gt){var Zt=Gt&&Gt[He];return Zt}},[He]),mn=Object(S.c)(Ye),Hn=mn.expandIcon,Xn=mn.expandedRowKeys,Fn=mn.defaultExpandedRowKeys,xn=mn.defaultExpandAllRows,fr=mn.expandedRowRender,Yn=mn.onExpand,ar=mn.onExpandedRowsChange,nr=mn.expandRowByClick,Rr=mn.rowExpandable,pr=mn.expandIconColumnIndex,sn=mn.expandedRowClassName,qt=mn.childrenColumnName,On=mn.indentSize,Fr=Hn||se,Or=qt||"children",xr=x.useMemo(function(){return fr?"row":Ye.expandable&&Ke===dt&&Ye.expandable.__PARENT_RENDER_ICON__||Xe.some(function(Gt){return Gt&&Object(b.a)(Gt)==="object"&&Gt[Or]})?"nest":!1},[!!fr,Xe]),dr=x.useState(function(){return Fn||(xn?te(Xe,on,Or):[])}),pe=Object(y.a)(dr,2),X=pe[0],q=pe[1],oe=x.useMemo(function(){return new Set(Xn||X||[])},[Xn,X]),De=x.useCallback(function(Gt){var Zt=on(Gt,Xe.indexOf(Gt)),Jt,zn=oe.has(Zt);zn?(oe.delete(Zt),Jt=Object(T.a)(oe)):Jt=[].concat(Object(T.a)(oe),[Zt]),q(Jt),Yn&&Yn(!zn,Gt),ar&&ar(Jt)},[on,oe,Xe,Yn,ar]),fe=x.useState(0),ot=Object(y.a)(fe,2),Qt=ot[0],Mn=ot[1],Vn=Object(ce.b)(Object(g.a)(Object(g.a)(Object(g.a)({},Ye),mn),{},{expandable:!!fr,expandedKeys:oe,getRowKey:on,onTriggerExpand:De,expandIcon:Fr,expandIconColumnIndex:pr,direction:Ie}),Ke===dt?et:null),$t=Object(y.a)(Vn,2),gn=$t[0],pn=$t[1],Ar=x.useMemo(function(){return{columns:gn,flattenColumns:pn}},[gn,pn]),ra=x.useRef(),oa=x.useRef(),ir=x.useRef(),Ra=x.useState(!1),La=Object(y.a)(Ra,2),ca=La[0],Ka=La[1],wa=x.useState(!1),Ja=Object(y.a)(wa,2),ja=Ja[0],li=Ja[1],oi=ue(new Map),fa=Object(y.a)(oi,2),ma=fa[0],la=fa[1],xe=Object(w.a)(pn),ut=xe.map(function(Gt){return ma.get(Gt)}),Rt=x.useMemo(function(){return ut},[ut.join("_")]),wt=me(Rt,pn.length,Ie),Kt=Ge&&Object(w.d)(Ge.y),Nt=Ge&&Object(w.d)(Ge.x),Xt=Nt&&pn.some(function(Gt){var Zt=Gt.fixed;return Zt}),nn=x.useRef(),yn=Ae(Pe,ft),vn=yn.isSticky,Nn=yn.offsetHeader,An=yn.offsetScroll,an=yn.stickyClassName,Pn,bn,kn;Kt&&(bn={overflowY:"scroll",maxHeight:Ge.y}),Nt&&(Pn={overflowX:"auto"},Kt||(bn={overflowY:"hidden"}),kn={width:Ge.x===!0?"auto":Ge.x,minWidth:"100%"});var Rn=x.useCallback(function(Gt,Zt){la(function(Jt){var zn=new Map(Jt);return zn.set(Gt,Zt),zn})},[]),Jn=le(null),mr=Object(y.a)(Jn,2),Br=mr[0],Sn=mr[1];function Yt(Gt,Zt){if(!Zt)return;typeof Zt=="function"?Zt(Gt):Zt.scrollLeft!==Gt&&(Zt.scrollLeft=Gt)}var dn=function(Zt){var Jt=Zt.currentTarget,zn=Zt.scrollLeft,$n=typeof zn=="number"?zn:Jt.scrollLeft,Ln=Jt||tt;if(!Sn()||Sn()===Ln){var rr;Br(Ln),Yt($n,oa.current),Yt($n,ir.current),Yt($n,(rr=nn.current)===null||rr===void 0?void 0:rr.setScrollLeft)}if(Jt){var cr=Jt.scrollWidth,sr=Jt.clientWidth;Ka($n>0),li($n<cr-sr)}},Dn=function(){ir.current&&dn({currentTarget:ir.current})},en=function(Zt){var Jt=Zt.width;Dn(),Mn(ra.current?ra.current.offsetWidth:Jt)};x.useEffect(function(){return Dn},[]),x.useEffect(function(){Nt&&Dn()},[Nt]),x.useEffect(function(){Ke===dt&&at&&(at.body.current=ir.current)});var wn=Lt(["table"],"table"),_n=x.useMemo(function(){return Ce||(Xt?Ge.x==="max-content"?"auto":"fixed":Kt||pn.some(function(Gt){var Zt=Gt.ellipsis;return Zt})?"fixed":"auto")},[Kt,Xt,pn,Ce]),In,Un={colWidths:Rt,columCount:pn.length,stickyOffsets:wt,onHeaderRow:Ct,fixHeader:Kt},or=x.useMemo(function(){return ht?null:typeof rn=="function"?rn():rn},[ht,rn]),qn=x.createElement(Te,{data:Xe,measureColumnWidth:Kt||Nt||vn,expandedKeys:oe,rowExpandable:Rr,getRowKey:on,onRow:Bt,emptyNode:or,childrenColumnName:Or}),Pr=x.createElement(A,{colWidths:pn.map(function(Gt){var Zt=Gt.width;return Zt}),columns:pn}),Lr=We&&x.createElement(Oe.b,null,We(Xe)),Qn=Lt(["body"]);if(Kt||vn){var Dr;typeof Qn=="function"?(Dr=Qn(Xe,{scrollbarSize:Mt,ref:ir,onScroll:dn}),Un.colWidths=pn.map(function(Gt,Zt){var Jt=Gt.width,zn=Zt===gn.length-1?Jt-Mt:Jt;return typeof zn=="number"&&!Number.isNaN(zn)?zn:(Object(a.a)(!1,"When use `components.body` with render props. Each column should have a fixed value."),0)})):Dr=x.createElement("div",{style:Object(g.a)(Object(g.a)({},Pn),bn),onScroll:dn,ref:ir,className:m()("".concat(ft,"-body"))},x.createElement(wn,{style:Object(g.a)(Object(g.a)({},kn),{},{tableLayout:_n})},Pr,qn,Lr),vn&&x.createElement(_e,{ref:nn,offsetScroll:An,scrollBodyRef:ir,onScroll:dn})),In=x.createElement(x.Fragment,null,Dt!==!1&&x.createElement(N,Object.assign({noData:!Xe.length},Un,Ar,{direction:Ie,offsetHeader:Nn,stickyClassName:an,ref:oa,onScroll:dn})),Dr)}else In=x.createElement("div",{style:Object(g.a)(Object(g.a)({},Pn),bn),className:m()("".concat(ft,"-content")),onScroll:dn,ref:ir},x.createElement(wn,{style:Object(g.a)(Object(g.a)({},kn),{},{tableLayout:_n})},Pr,Dt!==!1&&x.createElement(C,Object.assign({},Un,Ar)),qn,Lr));var vr=Object(S.b)(Ye),zr=x.createElement("div",Object.assign({className:m()(ft,jt,(Ue={},Object(P.a)(Ue,"".concat(ft,"-rtl"),Ie==="rtl"),Object(P.a)(Ue,"".concat(ft,"-ping-left"),ca),Object(P.a)(Ue,"".concat(ft,"-ping-right"),ja),Object(P.a)(Ue,"".concat(ft,"-layout-fixed"),Ce==="fixed"),Object(P.a)(Ue,"".concat(ft,"-fixed-header"),Kt),Object(P.a)(Ue,"".concat(ft,"-fixed-column"),Xt),Object(P.a)(Ue,"".concat(ft,"-scroll-horizontal"),Nt),Object(P.a)(Ue,"".concat(ft,"-has-fix-left"),pn[0]&&pn[0].fixed),Object(P.a)(Ue,"".concat(ft,"-has-fix-right"),pn[pn.length-1]&&pn[pn.length-1].fixed==="right"),Ue)),style:Pt,id:st,ref:ra},vr),x.createElement(mt,{pingLeft:ca,pingRight:ja,props:Object(g.a)(Object(g.a)({},Ye),{},{stickyOffsets:wt,mergedExpandedKeys:oe})},Fe&&x.createElement(ae,{className:"".concat(ft,"-title")},Fe(Xe)),x.createElement("div",{className:"".concat(ft,"-container")},In),Be&&x.createElement(ae,{className:"".concat(ft,"-footer")},Be(Xe))));Nt&&(zr=x.createElement(u.a,{onResize:en},zr));var Nr=x.useMemo(function(){return{prefixCls:ft,getComponent:Lt,scrollbarSize:Mt,direction:Ie,fixedInfoList:pn.map(function(Gt,Zt){return c(Zt,Zt,pn,wt,Ie)}),isSticky:vn}},[ft,Lt,Mt,Ie,pn,wt,Ie,vn]),$r=x.useMemo(function(){return Object(g.a)(Object(g.a)({},Ar),{},{tableLayout:_n,rowClassName:bt,expandedRowClassName:sn,componentWidth:Qt,fixHeader:Kt,fixColumn:Xt,horizonScroll:Nt,expandIcon:Fr,expandableType:xr,expandRowByClick:nr,expandedRowRender:fr,onTriggerExpand:De,expandIconColumnIndex:pr,indentSize:On})},[Ar,_n,bt,sn,Qt,Kt,Xt,Nt,Fr,xr,nr,fr,De,pr,On]),tr=x.useMemo(function(){return{onColumnResize:Rn}},[Rn]);return x.createElement(s.a.Provider,{value:Nr},x.createElement(H.Provider,{value:$r},x.createElement(ee.Provider,{value:tr},zr)))}vt.Column=n.a,vt.ColumnGroup=i.a,vt.Summary=Oe.a,vt.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var yt=z.b=vt},wRmb:function(k,z,o){"use strict";o.d(z,"a",function(){return f});var P=o("rePB"),g=o("KQm4"),T=o("VTBJ"),b=o("Ff2n"),y=o("q1tI"),x=o.n(y),O=o("Kwbf"),m=o("Zm9Q"),e=o("hW8S");function f(n){return Object(m.a)(n).filter(function(l){return y.isValidElement(l)}).map(function(l){var h=l.key,d=l.props,s=d.children,c=Object(b.a)(d,["children"]),w=Object(T.a)({key:h},c);return s&&(w.children=f(s)),w})}function a(n){return n.reduce(function(l,h){var d=h.fixed,s=d===!0?"left":d,c=h.children;return c&&c.length>0?[].concat(Object(g.a)(l),Object(g.a)(a(c).map(function(w){return Object(T.a)({fixed:s},w)}))):[].concat(Object(g.a)(l),[Object(T.a)(Object(T.a)({},h),{},{fixed:s})])},[])}function u(n){for(var l=!0,h=0;h<n.length;h+=1){var d=n[h];if(l&&d.fixed!=="left")l=!1;else if(!l&&d.fixed==="left"){Object(O.a)(!1,"Index ".concat(h-1," of `columns` missing `fixed='left'` prop."));break}}for(var s=!0,c=n.length-1;c>=0;c-=1){var w=n[c];if(s&&w.fixed!=="right")s=!1;else if(!s&&w.fixed==="right"){Object(O.a)(!1,"Index ".concat(c+1," of `columns` missing `fixed='right'` prop."));break}}}function r(n){return n.map(function(l){var h=l.fixed,d=Object(b.a)(l,["fixed"]),s=h;return h==="left"?s="right":h==="right"&&(s="left"),Object(T.a)({fixed:s},d)})}function i(n,l){var h=n.prefixCls,d=n.columns,s=n.children,c=n.expandable,w=n.expandedKeys,E=n.getRowKey,v=n.onTriggerExpand,R=n.expandIcon,M=n.rowExpandable,C=n.expandIconColumnIndex,S=n.direction,_=n.expandRowByClick,A=y.useMemo(function(){return d||f(s)},[d,s]),U=y.useMemo(function(){if(c){var V,H=C||0,D=A[H],W=(V={},Object(P.a)(V,e.a,{className:"".concat(h,"-expand-icon-col")}),Object(P.a)(V,"title",""),Object(P.a)(V,"fixed",D?D.fixed:null),Object(P.a)(V,"className","".concat(h,"-row-expand-icon-cell")),Object(P.a)(V,"render",function(K,ee,he){var de=E(ee,he),Se=w.has(de),Te=M?M(ee):!0,ce=R({prefixCls:h,expanded:Se,expandable:Te,record:ee,onExpand:v});return _?y.createElement("span",{onClick:function(Ee){return Ee.stopPropagation()}},ce):ce}),V),F=A.slice();return H>=0&&F.splice(H,0,W),F}return A},[c,A,E,w,R,S]),L=y.useMemo(function(){var V=U;return l&&(V=l(V)),V.length||(V=[{render:function(){return null}}]),V},[l,U,S]),N=y.useMemo(function(){return S==="rtl"?r(a(L)):a(L)},[L,S]);return[L,N]}z.b=i},wZgz:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(P){return function(){var g=P,T=g.lib,b=T.BlockCipher,y=g.algo,x=[],O=[],m=[],e=[],f=[],a=[],u=[],r=[],i=[],n=[];(function(){for(var d=[],s=0;s<256;s++)s<128?d[s]=s<<1:d[s]=s<<1^283;for(var c=0,w=0,s=0;s<256;s++){var E=w^w<<1^w<<2^w<<3^w<<4;E=E>>>8^E&255^99,x[c]=E,O[E]=c;var v=d[c],R=d[v],M=d[R],C=d[E]*257^E*16843008;m[c]=C<<24|C>>>8,e[c]=C<<16|C>>>16,f[c]=C<<8|C>>>24,a[c]=C;var C=M*16843009^R*65537^v*257^c*16843008;u[E]=C<<24|C>>>8,r[E]=C<<16|C>>>16,i[E]=C<<8|C>>>24,n[E]=C,c?(c=v^d[d[d[M^v]]],w^=d[d[w]]):c=w=1}})();var l=[0,1,2,4,8,16,32,64,128,27,54],h=y.AES=b.extend({_doReset:function(){var d;if(this._nRounds&&this._keyPriorReset===this._key)return;for(var s=this._keyPriorReset=this._key,c=s.words,w=s.sigBytes/4,E=this._nRounds=w+6,v=(E+1)*4,R=this._keySchedule=[],M=0;M<v;M++)M<w?R[M]=c[M]:(d=R[M-1],M%w?w>6&&M%w==4&&(d=x[d>>>24]<<24|x[d>>>16&255]<<16|x[d>>>8&255]<<8|x[d&255]):(d=d<<8|d>>>24,d=x[d>>>24]<<24|x[d>>>16&255]<<16|x[d>>>8&255]<<8|x[d&255],d^=l[M/w|0]<<24),R[M]=R[M-w]^d);for(var C=this._invKeySchedule=[],S=0;S<v;S++){var M=v-S;if(S%4)var d=R[M];else var d=R[M-4];S<4||M<=4?C[S]=d:C[S]=u[x[d>>>24]]^r[x[d>>>16&255]]^i[x[d>>>8&255]]^n[x[d&255]]}},encryptBlock:function(d,s){this._doCryptBlock(d,s,this._keySchedule,m,e,f,a,x)},decryptBlock:function(d,s){var c=d[s+1];d[s+1]=d[s+3],d[s+3]=c,this._doCryptBlock(d,s,this._invKeySchedule,u,r,i,n,O);var c=d[s+1];d[s+1]=d[s+3],d[s+3]=c},_doCryptBlock:function(d,s,c,w,E,v,R,M){for(var C=this._nRounds,S=d[s]^c[0],_=d[s+1]^c[1],A=d[s+2]^c[2],U=d[s+3]^c[3],L=4,N=1;N<C;N++){var V=w[S>>>24]^E[_>>>16&255]^v[A>>>8&255]^R[U&255]^c[L++],H=w[_>>>24]^E[A>>>16&255]^v[U>>>8&255]^R[S&255]^c[L++],D=w[A>>>24]^E[U>>>16&255]^v[S>>>8&255]^R[_&255]^c[L++],W=w[U>>>24]^E[S>>>16&255]^v[_>>>8&255]^R[A&255]^c[L++];S=V,_=H,A=D,U=W}var V=(M[S>>>24]<<24|M[_>>>16&255]<<16|M[A>>>8&255]<<8|M[U&255])^c[L++],H=(M[_>>>24]<<24|M[A>>>16&255]<<16|M[U>>>8&255]<<8|M[S&255])^c[L++],D=(M[A>>>24]<<24|M[U>>>16&255]<<16|M[S>>>8&255]<<8|M[_&255])^c[L++],W=(M[U>>>24]<<24|M[S>>>16&255]<<16|M[_>>>8&255]<<8|M[A&255])^c[L++];d[s]=V,d[s+1]=H,d[s+2]=D,d[s+3]=W},keySize:256/32});g.AES=b._createHelper(h)}(),P.AES})},wbyO:function(k,z,o){(function(P,g){k.exports=z=g(o("Ib8C"))})(this,function(P){return function(){var g=P,T=g.lib,b=T.WordArray,y=g.enc,x=y.Base64url={stringify:function(m,e=!0){var f=m.words,a=m.sigBytes,u=e?this._safe_map:this._map;m.clamp();for(var r=[],i=0;i<a;i+=3)for(var n=f[i>>>2]>>>24-i%4*8&255,l=f[i+1>>>2]>>>24-(i+1)%4*8&255,h=f[i+2>>>2]>>>24-(i+2)%4*8&255,d=n<<16|l<<8|h,s=0;s<4&&i+s*.75<a;s++)r.push(u.charAt(d>>>6*(3-s)&63));var c=u.charAt(64);if(c)for(;r.length%4;)r.push(c);return r.join("")},parse:function(m,e=!0){var f=m.length,a=e?this._safe_map:this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var r=0;r<a.length;r++)u[a.charCodeAt(r)]=r}var i=a.charAt(64);if(i){var n=m.indexOf(i);n!==-1&&(f=n)}return O(m,f,u)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function O(m,e,f){for(var a=[],u=0,r=0;r<e;r++)if(r%4){var i=f[m.charCodeAt(r-1)]<<r%4*2,n=f[m.charCodeAt(r)]>>>6-r%4*2,l=i|n;a[u>>>2]|=l<<24-u%4*8,u++}return b.create(a,u)}}(),P.enc.Base64url})},xiVL:function(k,z){k.exports="data:image/png;base64,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"},xrsn:function(k,z,o){k.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(k,z,o){"use strict";o.d(z,"a",function(){return a}),o.d(z,"b",function(){return r});var P=/margin|padding|width|height|max|min|offset/,g={left:!0,top:!0},T={cssFloat:1,styleFloat:1,float:1};function b(i){return i.nodeType===1?i.ownerDocument.defaultView.getComputedStyle(i,null):{}}function y(i,n,l){if(n=n.toLowerCase(),l==="auto"){if(n==="height")return i.offsetHeight;if(n==="width")return i.offsetWidth}return n in g||(g[n]=P.test(n)),g[n]?parseFloat(l)||0:l}function x(i,n){var l=arguments.length,h=b(i);return n=T[n]?"cssFloat"in i.style?"cssFloat":"styleFloat":n,l===1?h:y(i,n,h[n]||i.style[n])}function O(i,n,l){var h=arguments.length;if(n=T[n]?"cssFloat"in i.style?"cssFloat":"styleFloat":n,h===3)return typeof l=="number"&&P.test(n)&&(l="".concat(l,"px")),i.style[n]=l,l;for(var d in n)n.hasOwnProperty(d)&&O(i,d,n[d]);return b(i)}function m(i){return i===document.body?document.documentElement.clientWidth:i.offsetWidth}function e(i){return i===document.body?window.innerHeight||document.documentElement.clientHeight:i.offsetHeight}function f(){var i=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),n=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:i,height:n}}function a(){var i=document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight;return{width:i,height:n}}function u(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function r(i){var n=i.getBoundingClientRect(),l=document.documentElement;return{left:n.left+(window.pageXOffset||l.scrollLeft)-(l.clientLeft||document.body.clientLeft||0),top:n.top+(window.pageYOffset||l.scrollTop)-(l.clientTop||document.body.clientTop||0)}}},yDYP:function(k,z,o){k.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(k,z,o){k.exports=o.p+"static/AssistantCode3.fdd8db3c.jpeg"},ygoZ:function(k,z){k.exports="data:image/png;base64,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"},yslc:function(k,z){k.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAOHklEQVR4Xu1dCXQURRr+emZyTO6D3BCEgKCInCKeK3IoiyIqlxLyQBRBV8DNhCCrS3Z9Cq66KOoi68ECKocCcutTLhUERM1MEpBLEuQmQMKEnDNd+6onEzKTuXqmJ5l0V/EeL+mp+qu+r77UVP1V9TcHffZbIJgOlhgDMmaAA8lTwVDxJQh5UMY4GTSFM8AJ+PW6cIDsBEEfhfPB4MuUAYvQaTowOwV1NXtB0E6mWBksBTNwTeiUBENud/CmHwBEKZgTBl2GDNgKnQIsyBkCM9kEEI0M8TJICmWgqdCFkT17MngsUignDLYMGXAsdAo0XzcPILkyxMwgKZAB50InhIMhZxUIGalAXhhkmTHgXOgU6PG8UFwxbgdBf5nhZnAUxoBroVMyjryQgMraPSDoqDBuGFwZMeBe6MLi9IWuIHW7QUisjLAzKApiwDOhC25H3T3g8TUICVYQPwyqTBjwXOgUsD4nC4RfIhPsDIaCGBAndEHsujwQMkdBHDGoMmBAvNAtPvZlAMmUAX4GQSEMeCf0wrxgmCu+ASF3K4QnBrOVM+Cd0Cnoorw4mIw/guD6Vs4Ba74CGPBe6IInJicDZn4PgDYK4IpBbMUM+CZ0Qey5t4M3bwUhoa2YB4dNT1CHIzkoEkZzDYrrLtvkCeU0aBsULTw7WntRbtARoQrGbWHtBVw/Vpaggq9t1Rh9F7qwOM0ZA45fDgJp7PmJ0i4hCegU3AabjAc9qmF24r14JeXP+MZ4GEN+/69NmVvD0rGn8zThWYghF7XE7JFN+0wL0x5BQfVZLL60D1XE5JUNfxTqEZqC/C7Zgumeh96EvvqMP6ppNpvSCTM/ZxbAz222lousqGtIAnZkPIMETThmndmM1y/scGvB30KfFNcPH7YbLbRjwokVWHJ5v/CzltMgWq112z5HGXgQnDdVeFW2cSEmdFcU6nUfgpBJPrPsBwPhqmCsSM/EA9E3CtaXXPoJk09+4XIk9qfQrwuKhaFLNiLVodh7tQS3HX0HpB735Lj+WNTOu0Ojl0yViC/6u88MMqG7opDkaWCo2AJCBvnMtB8MqMFhQdoIPNPmDsH6+vIijCxegjrwDmvzl9BV4LAtYwr+FJEBEzHj1iML8EvVqYY2MKFL3/nSTV2sbTuWGw2jaReAbtI3VxqLuQkDMC91mGBsXXkhRhUvFcQeBBViNWENlcxocxdeSBqInRXHMLpkmU3lfbRtsbnjk8KzdgdetvlmKDVdBZ1COEuvJA/F7KSBwsfPnVyLdy9Suq6lOLUWafULXbGITYTHwZrzYos1yc9GdE8oPJDdHnXcHhCS7En2lsgzJ2kw8pLvA094YaG5teIoBoRnYFunqT43J6koz+E8mX6jLGz7KJ6KtxzvpwvQJ/5Y5XN9nhp4NLo7empTPcqepIlsaOcHF/fgnMnoUbmi6nNYUZbvUd7mzCT9iG5tfcHMvjDzOwFybYhsTmQe1PVGygPClOGzsl+F3P4UOl0jrGyfiWFRljXCBjptKlnqtbfGA3hNsixLfwyZsf4N3bO6zCDgCrTkP6FTpAbdQyBYA0JUgQbcUXvoiEsFaU26hHvwUvJgbK84ihHHF9sU6RvWDlszpgjPEgr/biNYI19jM3FJ0kRgY4dJoGVo+rxMj3ElnzasDai/flBkZ3xeZoDJyXpBCv6sQj9XZ4TBjbswUhWC/uEWP/qeqyWgmFylm0KTkRIUBWUKnTKj180AIfOl6KjmtiHVYnRB6gg8l3Cn0Pz/lO7CtFNfwtzoT2HtdRMwIvom6KtOo8/h+TafSYnZKnT6h2a/5rCvR+wcfUm7sciK66tgoVMG87PfBfCslJ3WHLZeTByEl1Pux8byA3iw+GObKsVsGD0U1Q2fpj8uuDOt0ySrsYmxt+Dj9DHCrxNPrMD/6n3p/sDHhO4PVhvbJKvU0O9bBxCLq6MFUhgX5LBWOlVwtqv5r5RhyEkcgE8v/4LME595LXQ6HUoPimniDWnsS6dz9uHFi4V1gtWb4wtNtL2rywtsTDCh+8Kop2UL8yJgNn4Hgl6eFpEqHz23Yez+qkNzruaUH7QdhSfjbxWmG8+eWuu10B1VTH3p2zOm4O6IDFw0XUW3Q6/jnKkCAyM64dv6ub8v+McUL8Oqcj0Tej0D/l2M2vfUbzNTUcPvBSFtfelEsWW9FfoX7bPwaMzNmHtuK2af3SKp0F9NHir46GkaXbwUn5cbhJ/bqMNwW/h1biF2CI7D22kjhHxTT67GqbpymzI/V57EadMVJvQWETqttDC3B8zm70FIpNvelDAD3YRpnGa0uVvwqFhHdDrnzoztbZNneFQ3pAfHClv0P1X9YfMZ9TOPiukhPFtYuhtmO2/JS2e+Qhlf3QSBBirBl06/KWj61ngYg+0OjHkCu/Fisctv83C4ptRtMTZ1cUuRxBn0ugdByHqJrYoyNytxAOamDGsQ+oTYvlicPlaUDVeZ6W7pSbtRlrrsVrUfj/ujujYU/eTyzxh/YrnoehsLvetvr+FQzQW3NpjQ3VIkcYb8nH8D/PMSWxVlzl7o9Oz1hLhbGmwkayIxPLobCCH4+NK+Ji6/RE2E4BKk6aOLe5t8PuvMJlw2VzXYS9VEYVPHSeipTROemQkPNacCE7qobvM6c/PO0WkzC3SZMBPbgyNeN9/7gvZCt7f0z6T7hKkNPedyz7GFTSoS4168MSQJX3V8Cu2CYwQ7b5zfgdSgKDwe21sSoYudurANI+9141lJQ3YfEO6HQLiN5ErodIe05MYXhYNVT5xYicWXf/JJ6COiumFth4m4aq7BpJOrsLJMD+sGixQjulihe9ZZ3uVS7s6olS+9LhEg+wPl1TGuhP5A1A3Y0GESKvla0ANajq6RiRnRqddnb+dpGFvyiXCbiKaWFPrB6nNYXe/lcSZnsYe6Hoq6Cd21KQrfGSWLgmA4Qu+V3uXdOCF9KWdCp/7tbzOexoCITlh2aT+y/ljhsHIxQqcGgjm1zcZUSwqdHQGQXk8Wi/qchSC85QRUgCRnQl/UdiQmx/cXFqF3HX0PuyqLJRG6vZGWEPro6B7opU2Dofo0lrs5Siv2rMuo6JvRW9sWBdVnmhxzCIQu9/9i1KB7CjyxvVkcAMgdCb3xhYi/nlqP+aXfOW2p2BE9EIQuhnaxQhdjuyXy+lfollAY2wMxAq/14oV18RSvDsPxG2YLdzgXXPge00+vc9kfTOgtIVfv6/Sf0C3b/T8H4i2jJ+P64d20RxCi0qCGN2FMyTKsu1KEx2J6CrudI4uXurwKR+lmQvdedC1R0j9CP7IgBFdL6Pd+v5YA5arO+anDMSPBEjKyzFyFGLVWuE73t7NbMO/8dtAtek8uP3QLScJH9aEq7jz6nkdlGrerJeboYvqCTV08YSs/m17HmeBJ1ubMMy6mFz5pP06ocvaZzZh3fhueib8d76Q9DI7jsPzyr5hz9mscqXV/bsTXdvsqdHo5e//1M4RmeOpHF9NmJnR3bOl100DI2+6yNffnnYPb4Jfrn0eEOgTvl+7G1FNrGppA/wDoOZcgTi08O1pTiiM1F3DWZASNk0JHeHq7nm7b09v99H4//Z+O/nQbX8OpoIZKKB/CqaFVBWFdeRHWXil0CtNTodPIBF1DE1HF16GSr0MVqQM9M5OXPAQT4/oJ4TKSi/6Bi+ZKSSllQndFJ339ixnfBOJbp3dkTBXiqNDNkt6H56PaLvxbL20q5iQNAT2xSEd3X9PQ3z/AV8ZDkgj9SvdXEKpyfHHEemHD1/bal2dCd8YoDXFRCxpTLSAj6/YMTRVu7tAYLs584xRatCoUPbSp6BqSiFi1FtHqUISpgqHmOGHUpiM4PSKg4jjQf87S9FNf4oqLC8WejujU/u5Of2lyRp1e1th85SDevLDTL3ERmdAd9ezpvDCcr9gFkJ5SjyxS2qMiLndwRlzKOjy1Ra/RxWvChdtF9pF67W3QIwR0Z7VxKjdX++0SNa2HXgAZG2O5DLai7FeUSjw18pQnqfL5/h1NW6LXLQch0h3mlgods8MYqGfAd6EbcmaC519jjDIGApkB34Sen3sfOPPm1hKgKJA7grXNvwx4L/SiWZ1gMu1jb5P2bwcx69Iw4J3QaegKk5G+uyhgI+ZKQw+zIhcGxAudEA56Hd1tscRaYIkx0AoYEC90vW4OCMlrBdhYExkDDQyIE7oQHZesDfSXcrH+ZQzYM+C50Atm3gBeiLLVrIGHWJcxBqRgwDOhH8+LQXnFPoB0lqJSZoMx0NwMuBc6yVPBULERhAxt7sax+hgDUjHgXuiG7LngMUuqCpkdxkBLMOBa6AW60TCTlS3RMFYnY0BKBpwLnUa9NZl3B/LLtqQkgtmSNwOOhX7whXjU1NKz5e4DdcubH4ZOJgw0Fbrl7c9fg5B7ZYKRwWAMOLgio89+CwTTGTeMATkxYDui63OyQPglcgLIsDAGKAPXhF6YfQvM3HeBENKZdQ1jQGoGLEIvmJ0EvnZ/c79ES2owzB5jwBkDHGhIZ/2R7QC5g9HEGJArAxzyde8D5Gm5AmS4GAO2c3TGB2OgFTLALR1KA6e5SByvUpEp7s+6tELwrMnKYcCl0DmYVOCyzOM3L2dCV44mZInUhdBrVFCPMmdt3MCmLrLsemWBcih0DlfVBMNNWVu2WdlgI7qydCE7tE2FzpVpVOqhdZkbaJSKhsSELruuVxYgG6FzOK+Bekjd+I16exaY0JWlC9mhbRA6h5PBCBpUM369w1jdTOiy63plAaoX+rEQNTewetzmEmfomdCVpQvZoeWWDi3UctrBlePXnHHpTZcdcgZIUQxErnk43vjI2ovuQP8faDGikjbF4FsAAAAASUVORK5CYII="},z4EP:function(k,z){k.exports="data:image/png;base64,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"}}]);
|