filecat 5.58.0 → 5.59.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/build/dist/{377.51daea9b9cdfa883fbf2.js → 377.3b445647c6dbdc36b5a9.js} +2 -2
  2. package/build/dist/428.f6f38ca026da9e48af67.js +1 -0
  3. package/build/dist/{441.7f6ff8f46c84a2d9527f.js → 441.34e0b8049d6dd49667ae.js} +2 -2
  4. package/build/dist/53.b668b1a3e1f54408cf0b.js +2 -0
  5. package/build/dist/542.40f04143d8ae76f04231.js +2 -0
  6. package/build/dist/{704.426d64ffa7b25f425f20.js → 704.16754ee7f765608e9307.js} +2 -2
  7. package/build/dist/84.769ebac1ac9abe565b7e.js +2 -0
  8. package/build/dist/923.1425d5f8c2fd4518c2f8.js +1 -0
  9. package/build/dist/{943.1c7d32bfdec767d28082.js → 943.4f05c1338d0e09ac841f.js} +2 -2
  10. package/build/dist/{944.b98b5da90cbe3166c44c.js → 944.762906b359f85be778a9.js} +2 -2
  11. package/build/dist/{963.dd7fd1bf320ec729efa0.js → 963.6bf330780cf162c5c818.js} +2 -2
  12. package/build/dist/index.html +1 -1
  13. package/build/dist/main.c0c22359a6164423265d.js +2 -0
  14. package/build/main.js +1 -1
  15. package/build/main.js.LICENSE.txt +7 -0
  16. package/package.json +4 -3
  17. package/build/dist/431.a8ec06731c9738a1a51d.js +0 -2
  18. package/build/dist/542.a822cef71847c206a6ee.js +0 -2
  19. package/build/dist/797.22de57a04101043d7d5f.js +0 -2
  20. package/build/dist/923.0ec3da9df695176f9725.js +0 -1
  21. package/build/dist/main.61526dd32747542d743d.js +0 -2
  22. /package/build/dist/{377.51daea9b9cdfa883fbf2.js.LICENSE.txt → 377.3b445647c6dbdc36b5a9.js.LICENSE.txt} +0 -0
  23. /package/build/dist/{431.a8ec06731c9738a1a51d.js.LICENSE.txt → 441.34e0b8049d6dd49667ae.js.LICENSE.txt} +0 -0
  24. /package/build/dist/{441.7f6ff8f46c84a2d9527f.js.LICENSE.txt → 53.b668b1a3e1f54408cf0b.js.LICENSE.txt} +0 -0
  25. /package/build/dist/{542.a822cef71847c206a6ee.js.LICENSE.txt → 542.40f04143d8ae76f04231.js.LICENSE.txt} +0 -0
  26. /package/build/dist/{704.426d64ffa7b25f425f20.js.LICENSE.txt → 704.16754ee7f765608e9307.js.LICENSE.txt} +0 -0
  27. /package/build/dist/{797.22de57a04101043d7d5f.js.LICENSE.txt → 84.769ebac1ac9abe565b7e.js.LICENSE.txt} +0 -0
  28. /package/build/dist/{943.1c7d32bfdec767d28082.js.LICENSE.txt → 943.4f05c1338d0e09ac841f.js.LICENSE.txt} +0 -0
  29. /package/build/dist/{944.b98b5da90cbe3166c44c.js.LICENSE.txt → 944.762906b359f85be778a9.js.LICENSE.txt} +0 -0
  30. /package/build/dist/{963.dd7fd1bf320ec729efa0.js.LICENSE.txt → 963.6bf330780cf162c5c818.js.LICENSE.txt} +0 -0
  31. /package/build/dist/{main.61526dd32747542d743d.js.LICENSE.txt → main.c0c22359a6164423265d.js.LICENSE.txt} +0 -0
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 53.b668b1a3e1f54408cf0b.js.LICENSE.txt */
2
+ (self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[53,627],{5219(t){!function(){var e=function(t,n){var r=this;e.count=(e.count||0)+1,this.count=e.count,this.isOpened=!1,this.input=o(t),this.input.setAttribute("autocomplete","off"),this.input.setAttribute("aria-autocomplete","list"),this.input.setAttribute("aria-expanded","false"),this.input.setAttribute("aria-controls","awesomplete_list_"+this.count),this.input.setAttribute("aria-owns","awesomplete_list_"+this.count),this.input.setAttribute("role","combobox"),this.options=n=n||{},function(t,e,n){for(var r in e){var o=e[r],i=t.input.getAttribute("data-"+r.toLowerCase());t[r]="number"==typeof o?parseInt(i):!1===o?null!==i:o instanceof Function?null:i,t[r]||0===t[r]||(t[r]=r in n?n[r]:o)}}(this,{minChars:2,maxItems:10,autoFirst:!1,data:e.DATA,filter:e.FILTER_CONTAINS,sort:!1!==n.sort&&e.SORT_BYLENGTH,container:e.CONTAINER,item:e.ITEM,replace:e.REPLACE,tabSelect:!1,listLabel:"Results List",statusNoResults:"No results found",statusXResults:"{0} results found",statusTypeXChar:"Type {0} or more characters for results"},n),this.index=-1,this.container=this.container(t),this.ul=o.create("ul",{hidden:"hidden",role:"listbox",id:"awesomplete_list_"+this.count,inside:this.container,"aria-label":this.listLabel}),this.status=o.create("span",{className:"visually-hidden",role:"status","aria-live":"assertive","aria-atomic":!0,inside:this.container,textContent:""}),this._events={input:{input:this.evaluate.bind(this),blur:this.close.bind(this,{reason:"blur"}),keydown:function(t){var e=t.keyCode;r.opened&&(13===e&&r.selected||9===e&&r.selected&&r.tabSelect?(t.preventDefault(),r.select(void 0,void 0,t)):27===e?r.close({reason:"esc"}):38!==e&&40!==e||(t.preventDefault(),r[38===e?"previous":"next"]()))}},form:{submit:this.close.bind(this,{reason:"submit"})},ul:{mousedown:function(t){t.preventDefault()},click:function(t){var e=t.target;if(e!==this){for(;e&&!/li/i.test(e.nodeName);)e=e.parentNode;e&&0===t.button&&(t.preventDefault(),r.select(e,t.target,t))}}}},o.bind(this.input,this._events.input),o.bind(this.input.form,this._events.form),o.bind(this.ul,this._events.ul),this.input.hasAttribute("list")?(this.list="#"+this.input.getAttribute("list"),this.input.removeAttribute("list")):this.list=this.input.getAttribute("data-list")||n.list||[],e.all.push(this)};function n(t){var e=Array.isArray(t)?{label:t[0],value:t[1]}:"object"==typeof t&&"label"in t&&"value"in t?t:{label:t,value:t};this.label=e.label||e.value,this.value=e.value}e.prototype={set list(t){if(Array.isArray(t))this._list=t;else if("string"==typeof t&&t.indexOf(",")>-1)this._list=t.split(/\s*,\s*/);else if((t=o(t))&&t.children){var e=[];r.apply(t.children).forEach(function(t){if(!t.disabled){var n=t.textContent.trim(),r=t.value||n,o=t.label||n;""!==r&&e.push({label:o,value:r})}}),this._list=e}document.activeElement===this.input&&this.evaluate()},get selected(){return this.index>-1},get opened(){return this.isOpened},close:function(t){this.opened&&(this.input.setAttribute("aria-expanded","false"),this.ul.setAttribute("hidden",""),this.isOpened=!1,this.index=-1,this.status.setAttribute("hidden",""),this.input.setAttribute("aria-activedescendant",""),o.fire(this.input,"awesomplete-close",t||{}))},open:function(){this.input.setAttribute("aria-expanded","true"),this.ul.removeAttribute("hidden"),this.isOpened=!0,this.status.removeAttribute("hidden"),this.autoFirst&&-1===this.index&&this.goto(0),o.fire(this.input,"awesomplete-open")},destroy:function(){if(o.unbind(this.input,this._events.input),o.unbind(this.input.form,this._events.form),!this.options.container){var t=this.container.parentNode;t.insertBefore(this.input,this.container),t.removeChild(this.container)}this.input.removeAttribute("autocomplete"),this.input.removeAttribute("aria-autocomplete"),this.input.removeAttribute("aria-expanded"),this.input.removeAttribute("aria-controls"),this.input.removeAttribute("aria-owns"),this.input.removeAttribute("role");var n=e.all.indexOf(this);-1!==n&&e.all.splice(n,1)},next:function(){var t=this.ul.children.length;this.goto(this.index<t-1?this.index+1:t?0:-1)},previous:function(){var t=this.ul.children.length,e=this.index-1;this.goto(this.selected&&-1!==e?e:t-1)},goto:function(t){var e=this.ul.children;this.selected&&e[this.index].setAttribute("aria-selected","false"),this.index=t,t>-1&&e.length>0&&(e[t].setAttribute("aria-selected","true"),this.input.setAttribute("aria-activedescendant",this.ul.id+"_item_"+this.index),this.ul.scrollTop=e[t].offsetTop-this.ul.clientHeight+e[t].clientHeight,o.fire(this.input,"awesomplete-highlight",{text:this.suggestions[this.index]}))},select:function(t,e,n){if(t?this.index=o.siblingIndex(t):t=this.ul.children[this.index],t){var r=this.suggestions[this.index];o.fire(this.input,"awesomplete-select",{text:r,origin:e||t,originalEvent:n})&&(this.replace(r),this.close({reason:"select"}),o.fire(this.input,"awesomplete-selectcomplete",{text:r,originalEvent:n}))}},evaluate:function(){var t=this,e=this.input.value;e.length>=this.minChars&&this._list&&this._list.length>0?(this.index=-1,this.ul.innerHTML="",this.suggestions=this._list.map(function(r){return new n(t.data(r,e))}).filter(function(n){return t.filter(n,e)}),!1!==this.sort&&(this.suggestions=this.suggestions.sort(this.sort)),this.suggestions=this.suggestions.slice(0,this.maxItems),this.suggestions.forEach(function(n,r){t.ul.appendChild(t.item(n,e,r))}),0===this.ul.children.length?(this.status.textContent=this.statusNoResults,this.close({reason:"nomatches"})):(this.input.setAttribute("aria-activedescendant",""),this.open(),this.status.textContent=this.statusXResults.replaceAll("{0}",this.ul.children.length))):(this.close({reason:"nomatches"}),this.minChar<=1||e.length>=this.minChars?this.status.textContent=this.statusNoResults:this.status.textContent=this.statusTypeXChar.replaceAll("{0}",this.minChars))}},e.all=[],e.FILTER_CONTAINS=function(t,e){return RegExp(o.regExpEscape(e.trim()),"i").test(t)},e.FILTER_STARTSWITH=function(t,e){return RegExp("^"+o.regExpEscape(e.trim()),"i").test(t)},e.SORT_BYLENGTH=function(t,e){return t.length!==e.length?t.length-e.length:t<e?-1:1},e.CONTAINER=function(t){return o.create("div",{className:"awesomplete",around:t})},e.ITEM=function(t,e,n){var r=""===e.trim()?t:t.replace(RegExp(o.regExpEscape(e.trim()),"gi"),"<mark>$&</mark>");return o.create("li",{innerHTML:r,role:"option","aria-selected":"false",tabindex:"-1",id:"awesomplete_list_"+this.count+"_item_"+n})},e.REPLACE=function(t){this.input.value=t.value},e.DATA=function(t){return t},Object.defineProperty(n.prototype=Object.create(String.prototype),"length",{get:function(){return this.label.length}}),n.prototype.toString=n.prototype.valueOf=function(){return""+this.label};var r=Array.prototype.slice;function o(t,e){return"string"==typeof t?(e||document).querySelector(t):t||null}function i(t,e){return r.call((e||document).querySelectorAll(t))}function a(){i("input.awesomplete").forEach(function(t){new e(t)})}o.create=function(t,e){var n=document.createElement(t);for(var r in e){var i=e[r];if("inside"===r)o(i).appendChild(n);else if("around"===r){var a=o(i);a.parentNode.insertBefore(n,a),n.appendChild(a),null!=a.getAttribute("autofocus")&&a.focus()}else r in n?n[r]=i:n.setAttribute(r,i)}return n},o.bind=function(t,e){if(t)for(var n in e){var r=e[n];n.split(/\s+/).forEach(function(e){t.addEventListener(e,r)})}},o.unbind=function(t,e){if(t)for(var n in e){var r=e[n];n.split(/\s+/).forEach(function(e){t.removeEventListener(e,r)})}},o.fire=function(t,e,n){var r=document.createEvent("HTMLEvents");for(var o in r.initEvent(e,!0,!0),n)r[o]=n[o];return t.dispatchEvent(r)},o.regExpEscape=function(t){return t.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")},o.siblingIndex=function(t){for(var e=0;t=t.previousElementSibling;e++);return e},"undefined"!=typeof self&&(self.Awesomplete=e),"undefined"!=typeof Document&&("loading"!==document.readyState?a():document.addEventListener("DOMContentLoaded",a)),e.$=o,e.$$=i,t.exports&&(t.exports=e)}()},8694(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e,n){return(e=u(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function a(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function u(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,{$K:()=>f,RB:()=>h,l5:()=>d,qB:()=>l,vo:()=>p,vr:()=>m});var l=a(function t(){c(this,t)}),s=function(t){return t[t.tcp=0]="tcp",t[t.udp=1]="udp",t}({}),f=a(function t(){c(this,t),o(this,"open",!1),o(this,"key",""),o(this,"async_ips",[])}),p=a(function t(){c(this,t),o(this,"open",!1),o(this,"key",""),o(this,"model",s.udp)}),h=function(t){return t[t.row=1]="row",t[t.json=2]="json",t[t.form=3]="form",t}({}),m=a(function t(){c(this,t)}),d=a(function t(){c(this,t)})},7481(t,e,n){"use strict";n.d(e,{S:()=>u,X:()=>a});var r=n(6540);function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function a(t){var e,n=o(r.useState([]),2),i=n[0],a=n[1];return(0,r.useEffect)(function(){t.children?a(Array.isArray(t.children)?t.children:[t.children]):a(t.rows)},[t.rows,t.children]),r.createElement("table",null,r.createElement("thead",null,r.createElement("tr",null,null===(e=t.headers)||void 0===e?void 0:e.map(function(t,e){return r.createElement("th",{key:e},t)}))),r.createElement("tbody",null,i.map(function(e,n){return r.createElement("tr",{key:n,onContextMenu:function(){t.handleContextMenu&&t.handleContextMenu(e)}},e.map(function(n,o){var i;return r.createElement("td",{style:{width:null!==(i=t.width)&&void 0!==i?i:"auto"},key:o,className:o===e.length-1?"small":""},n)}))})))}function u(t){return r.createElement("div",{style:{display:t.isFlex?"flex":"block"}},t.columns.map(function(t,e){return r.createElement("div",{key:e},t)}))}},5595(t,e,n){"use strict";n.r(e),n.d(e,{default:()=>At});var r=n(6540),o=n(5725),i=n(4284),a=n(2042),u=n(3459),c=n(447),l=n(3033),s=n(5997),f=n(7481),p=n(8694),h=n(4944),m=n(4188),d=n(2389),v=n(7952);function y(t){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(t)}function b(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function g(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=y(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==y(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function E(t){return function(t){if(Array.isArray(t))return j(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||O(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof u?r:u,l=Object.create(c.prototype);return S(l,"_invoke",function(n,r,o){var i,u,c,l=0,s=o||[],f=!1,p={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,n){return i=e,u=0,c=t,p.n=n,a}};function h(n,r){for(u=n,c=r,e=0;!f&&l&&!o&&e<s.length;e++){var o,i=s[e],h=p.p,m=i[2];n>3?(o=m===r)&&(c=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=t):i[0]<=h&&((o=n<2&&h<i[1])?(u=0,p.v=r,p.n=i[1]):h<m&&(o=n<3||i[0]>r||r>m)&&(i[4]=n,i[5]=r,p.n=m,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,s,m){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&h(s,m),u=s,c=m;(e=u<2?t:c)||!f;){i||(u?u<3?(u>1&&(p.n=-1),h(u,c)):p.n=c:p.v=c);try{if(l=2,i){if(u||(o="next"),e=i[o]){if(!(e=e.call(i,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,u<2&&(u=0)}else 1===u&&(e=i.return)&&e.call(i),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=t}else if((e=(f=p.n<0)?c:n.call(r,p))!==a)break}catch(e){i=t,u=1,c=e}finally{l=1}}return{value:e,done:f}}}(n,o,i),!0),l}var a={};function u(){}function c(){}function l(){}e=Object.getPrototypeOf;var s=[][r]?e(e([][r]())):(S(e={},r,function(){return this}),e),f=l.prototype=u.prototype=Object.create(s);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,S(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return c.prototype=l,S(f,"constructor",l),S(l,"constructor",c),c.displayName="GeneratorFunction",S(l,o,"GeneratorFunction"),S(f),S(f,o,"Generator"),S(f,r,function(){return this}),S(f,"toString",function(){return"[object Generator]"}),(w=function(){return{w:i,m:p}})()}function S(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}S=function(t,e,n,r){function i(e,n){S(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},S(t,e,n,r)}function x(t,e,n,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function A(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(t){x(i,r,o,a,u,"next",t)}function u(t){x(i,r,o,a,u,"throw",t)}a(void 0)})}}function _(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||O(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(t,e){if(t){if("string"==typeof t)return j(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(t,e):void 0}}function j(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function k(t){var e=(0,d.Bd)().t,n=_((0,r.useState)(void 0),2),y=n[0],S=n[1],x=_((0,r.useState)(!1),2),j=x[0],k=x[1],C=_((0,r.useState)(""),2),I=C[0],P=C[1],T=_((0,r.useState)([e("".concat(e("名称"))),e("".concat(e("虚拟"),"ip")),"".concat(e("物理"),"信息"),e("在线状态"),e("选择")]),2),L=T[0],F=(T[1],_((0,r.useState)([]),2)),N=F[0],U=F[1],G=_((0,r.useState)({}),2),H=G[0],M=G[1],D=_((0,r.useState)(!1),2),R=D[0],B=D[1],W=function(t){var n,o=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=O(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}(t);try{for(o.s();!(n=o.n()).done;){var i=n.value,a=i[i.length-1];i[i.length-1]=r.createElement(r.Fragment,null,r.createElement(c.fq,{ok:a}),e(a?"在线":"离线")),i[0]=r.createElement(c.xP,{context:i[0],tip_context:i[0]}),i[2]=r.createElement(c.xP,{context:i[2],tip_context:i[2]})}}catch(t){o.e(t)}finally{o.f()}};(0,r.useEffect)(function(){var t=function(){var t=A(w().m(function t(){var e;return w().w(function(t){for(;;)switch(t.n){case 0:return e=new m.hf(m.HK.vir_net_serverIno_get),h.ws.addMsg(m.HK.vir_net_serverIno_get,function(t){W(t.context),U(t.context)}),t.n=1,h.ws.send(e);case 1:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}();t();var e=function(){var t=A(w().m(function t(){var e,n;return w().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,i._U.get("vir/server/get");case 1:if((e=t.v).code===u.m.Success){t.n=2;break}return t.a(2);case 2:n=e.data,S(n.port),P(n.key),k(n.open);case 3:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}();return e(),function(){}},[]);var $=function(){var t=A(w().m(function t(){var e;return w().w(function(t){for(;;)switch(t.n){case 0:return(e=new p.$K).open=j,e.key=I,R&&(e.async_ips=Object.keys(H)),y&&(e.port=parseInt(y)),t.n=1,i._U.post("vir/server/save",e);case 1:if(t.v.code===u.m.Success){t.n=2;break}return(0,a.zN)("网络错误"),t.a(2);case 2:(0,a.LW)("保存成功"),B(!1);case 3:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),X=function(){var t=A(w().m(function t(){return w().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,i._U.post("vir/server/delete/client",{ips:Object.keys(H)});case 1:M({});case 2:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}();return r.createElement("div",null,r.createElement(v.A,null,!!Object.keys(H).length&&H[0],!!Object.keys(H).length&&r.createElement(s.rA,{icon:"delete",title:"删除",onClick:X})),r.createElement(o.fI,null,r.createElement(o.VP,null,r.createElement(c.Zp,{title:"",rightBottomCom:r.createElement(s.C3,{text:e("保存"),clickFun:$})},r.createElement(l.Sm,{placeholder:"port",value:y,handleInputChange:function(t){S(t)}}),r.createElement(l.Sm,{placeholder:"key ",value:I,handleInputChange:function(t){P(t)}}),r.createElement("form",null,e("状态"),":",r.createElement(f.S,{isFlex:!0,columns:[r.createElement(l.U6,{value:1,context:e("开启"),selected:j,onchange:function(){k(!j)}}),r.createElement(l.U6,{value:1,context:e("关闭"),selected:!j,onchange:function(){k(!j)}})]})),!!Object.keys(H).length&&r.createElement(l.GL,{context:e("同步信息给选中服务器"),selected:R,onchange:function(){B(!R)}})),r.createElement(c.Zp,{title:""},r.createElement(f.X,{headers:L,rows:N.map(function(t){return[].concat(E(t),[r.createElement(l.GL,{context:e(""),selected:H[t[1]],onchange:function(){var e=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?b(Object(n),!0).forEach(function(e){g(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},H);e[t[1]]?delete e[t[1]]:e[t[1]]=t,M(e)}})])}),width:"10rem"})))))}function C(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof u?r:u,l=Object.create(c.prototype);return I(l,"_invoke",function(n,r,o){var i,u,c,l=0,s=o||[],f=!1,p={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,n){return i=e,u=0,c=t,p.n=n,a}};function h(n,r){for(u=n,c=r,e=0;!f&&l&&!o&&e<s.length;e++){var o,i=s[e],h=p.p,m=i[2];n>3?(o=m===r)&&(c=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=t):i[0]<=h&&((o=n<2&&h<i[1])?(u=0,p.v=r,p.n=i[1]):h<m&&(o=n<3||i[0]>r||r>m)&&(i[4]=n,i[5]=r,p.n=m,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,s,m){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&h(s,m),u=s,c=m;(e=u<2?t:c)||!f;){i||(u?u<3?(u>1&&(p.n=-1),h(u,c)):p.n=c:p.v=c);try{if(l=2,i){if(u||(o="next"),e=i[o]){if(!(e=e.call(i,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,u<2&&(u=0)}else 1===u&&(e=i.return)&&e.call(i),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=t}else if((e=(f=p.n<0)?c:n.call(r,p))!==a)break}catch(e){i=t,u=1,c=e}finally{l=1}}return{value:e,done:f}}}(n,o,i),!0),l}var a={};function u(){}function c(){}function l(){}e=Object.getPrototypeOf;var s=[][r]?e(e([][r]())):(I(e={},r,function(){return this}),e),f=l.prototype=u.prototype=Object.create(s);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,I(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return c.prototype=l,I(f,"constructor",l),I(l,"constructor",c),c.displayName="GeneratorFunction",I(l,o,"GeneratorFunction"),I(f),I(f,o,"Generator"),I(f,r,function(){return this}),I(f,"toString",function(){return"[object Generator]"}),(C=function(){return{w:i,m:p}})()}function I(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}I=function(t,e,n,r){function i(e,n){I(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},I(t,e,n,r)}function P(t,e,n,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function T(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(t){P(i,r,o,a,u,"next",t)}function u(t){P(i,r,o,a,u,"throw",t)}a(void 0)})}}function L(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return F(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?F(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function N(t){var e=(0,d.Bd)().t,n=L((0,r.useState)(""),2),v=n[0],y=n[1],b=L((0,r.useState)(void 0),2),g=b[0],E=b[1],w=L((0,r.useState)(""),2),S=w[0],x=w[1],A=L((0,r.useState)(""),2),_=A[0],O=A[1],j=L((0,r.useState)(void 0),2),k=j[0],I=j[1],P=L((0,r.useState)(!1),2),F=P[0],N=P[1],U=L((0,r.useState)(""),2),G=U[0],H=U[1],M=L((0,r.useState)(!1),2),D=M[0],R=M[1];(0,r.useEffect)(function(){var t=function(){var t=T(C().m(function t(){var e,n,r,o,a;return C().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,i._U.get("vir/client/get");case 1:if((e=t.v).code===u.m.Success){t.n=2;break}return t.a(2);case 2:if(n=e.data,I(n.serverPort),x(n.serverIp),y(n.ip),E(n.mask),H(n.key),N(n.open),O(n.client_name),!n.open){t.n=4;break}return r=new m.hf(m.HK.vir_net_client_get),t.n=3,h.ws.send(r);case 3:o=t.v,a=o.context.state,R(a),h.ws.addMsg(m.HK.vir_net_client_get,function(t){R(t.context.state)});case 4:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}();t()},[]);var B=function(){var t=T(C().m(function t(){var e;return C().w(function(t){for(;;)switch(t.n){case 0:return(e=new p.vo).ip=v,e.mask=parseInt(g),e.key=G,e.serverIp=S,e.serverPort=parseInt(k),e.open=F,e.client_name=_,t.n=1,i._U.post("vir/client/save",e);case 1:if(t.v.code===u.m.Success){t.n=2;break}return(0,a.zN)("网络错误"),t.a(2);case 2:(0,a.LW)("保存成功");case 3:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}();return r.createElement("div",null,r.createElement(o.fI,null,r.createElement(o.VP,null,r.createElement(c.Zp,{title:"",rightBottomCom:r.createElement(s.C3,{text:e("保存"),clickFun:B}),titleCom:r.createElement("div",null,e("连接状态"),r.createElement(c.fq,{ok:D}))},r.createElement(l.Sm,{placeholder:"ip ",value:v,handleInputChange:function(t){y(t)}}),r.createElement(l.Sm,{placeholder:"mask",value:g,handleInputChange:function(t){E(t)}}),r.createElement(l.Sm,{placeholder:"".concat(e("服务器"),"ip"),value:S,handleInputChange:function(t){x(t)}}),r.createElement(l.Sm,{placeholder:"".concat(e("服务器"),"part"),value:k,handleInputChange:function(t){I(t)}}),r.createElement(l.Sm,{placeholder:"名称 ",value:_,handleInputChange:function(t){O(t)}}),r.createElement(l.Sm,{placeholder:"key ",value:G,handleInputChange:function(t){H(t)}}),r.createElement("form",null,e("状态"),r.createElement(f.S,{isFlex:!0,columns:[r.createElement(l.U6,{value:1,context:e("开启"),selected:F,onchange:function(){N(!F)}}),r.createElement(l.U6,{value:1,context:e("关闭"),selected:!F,onchange:function(){N(!F)}})]}))),r.createElement(c.Zp,{title:""},r.createElement("div",null,"ip: 虚拟ip, “10.0.0.0 - 10.255.255.255”和“172.16.0.0 - 172.31.255.255”和“192.168.0.0 - 192.168.255.255”这三个网段属于内网ip"),r.createElement("div",null,"mask: 一些常见的子网掩码网段/8:255.0.0.0;/16:255.255.0.0 ;/24:255.255.255.0"),r.createElement("div",null,"key:用于验证身份信息并加密的和服务器设置的一样")))))}var U=n(7444),G=n(6417),H=n(3430),M=n(8247),D=n(1499);function R(t){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},R(t)}function B(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function W(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?B(Object(n),!0).forEach(function(e){$(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function $(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=R(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=R(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==R(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function X(t){return function(t){if(Array.isArray(t))return J(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Y(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Z(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof u?r:u,l=Object.create(c.prototype);return z(l,"_invoke",function(n,r,o){var i,u,c,l=0,s=o||[],f=!1,p={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,n){return i=e,u=0,c=t,p.n=n,a}};function h(n,r){for(u=n,c=r,e=0;!f&&l&&!o&&e<s.length;e++){var o,i=s[e],h=p.p,m=i[2];n>3?(o=m===r)&&(c=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=t):i[0]<=h&&((o=n<2&&h<i[1])?(u=0,p.v=r,p.n=i[1]):h<m&&(o=n<3||i[0]>r||r>m)&&(i[4]=n,i[5]=r,p.n=m,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,s,m){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&h(s,m),u=s,c=m;(e=u<2?t:c)||!f;){i||(u?u<3?(u>1&&(p.n=-1),h(u,c)):p.n=c:p.v=c);try{if(l=2,i){if(u||(o="next"),e=i[o]){if(!(e=e.call(i,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,u<2&&(u=0)}else 1===u&&(e=i.return)&&e.call(i),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=t}else if((e=(f=p.n<0)?c:n.call(r,p))!==a)break}catch(e){i=t,u=1,c=e}finally{l=1}}return{value:e,done:f}}}(n,o,i),!0),l}var a={};function u(){}function c(){}function l(){}e=Object.getPrototypeOf;var s=[][r]?e(e([][r]())):(z(e={},r,function(){return this}),e),f=l.prototype=u.prototype=Object.create(s);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,z(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return c.prototype=l,z(f,"constructor",l),z(l,"constructor",c),c.displayName="GeneratorFunction",z(l,o,"GeneratorFunction"),z(f),z(f,o,"Generator"),z(f,r,function(){return this}),z(f,"toString",function(){return"[object Generator]"}),(Z=function(){return{w:i,m:p}})()}function z(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}z=function(t,e,n,r){function i(e,n){z(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},z(t,e,n,r)}function K(t,e,n,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function V(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(t){K(i,r,o,a,u,"next",t)}function u(t){K(i,r,o,a,u,"throw",t)}a(void 0)})}}function q(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||Y(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Y(t,e){if(t){if("string"==typeof t)return J(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?J(t,e):void 0}}function J(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Q(t){var e=(0,d.Bd)().t,n=q((0,r.useState)(""),2),h=n[0],m=n[1],v=q((0,r.useState)(""),2),y=v[0],b=v[1],g=q((0,r.useState)(""),2),E=g[0],w=g[1],S=q((0,r.useState)(!1),2),x=S[0],A=S[1],_=q((0,r.useState)(!1),2),O=_[0],j=_[1],k=q((0,r.useState)({port:0,open:!1,list:[]}),2),C=k[0],I=k[1],P=q((0,U.L4)(G.A.editorSetting),2),T=(P[0],P[1]),L=q((0,U.L4)(G.A.user_base_info),2),F=L[0],N=(L[1],[e("端口"),e("目标地址"),e("目标端口"),e("开启"),e("备注"),e("删除")]),R=q((0,r.useState)([]),2),B=R[0],$=R[1],z=[e("port"),e("ip"),e("type"),e("开启")],K=q((0,r.useState)([]),2),Y=K[0],J=K[1],Q=[e("编辑"),e("开启"),e("备注"),e("删除")],tt=function(){var t=V(Z().m(function t(){var e,n;return Z().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,i._U.post("http/proxy/get/win");case 1:(e=t.v).code===u.m.Success&&(n=e.data,m(n.ip),b(n.port),A(n.enabled),w(n.bypass),j(n.useForLocal));case 2:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),et=function(){var t=V(Z().m(function t(){var e,n,r,o,a,c;return Z().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,i._U.post("http/proxy/get/mac");case 1:if((e=t.v).code===u.m.Success){t.n=2;break}return t.a(2);case 2:for(n=[],r=[],o=0,a=e.data;o<a.length;o++)"Wi-Fi"===(c=a[o]).name?n.push(c):r.push(c);J([].concat(n,r));case 3:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),nt=function(){var t=V(Z().m(function t(){var e,n,r,o,a,c;return Z().w(function(t){for(;;)switch(t.n){case 0:return e=[i._U.post("vir/client/tcp_proxy/get"),i._U.post("http/proxy/server/get")],F.sys===H.XM.mac?n=et():F.sys===H.XM.win&&(n=tt()),n&&e.push(n),t.n=1,Promise.all(e);case 1:r=t.v,o=q(r,2),a=o[0],c=o[1],a.code===u.m.Success&&$(a.data),c.code===u.m.Success&&I(c.data);case 2:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}();(0,r.useEffect)(function(){nt()},[]);var rt=function(){var t=V(Z().m(function t(){var e;return Z().w(function(t){for(;;)switch(t.n){case 0:return(e=new p.l5).port=parseInt(y),e.enabled=x,e.useForLocal=O,e.ip=h,e.bypass=E,t.n=1,i._U.post("http/proxy/set/win",e);case 1:t.v.code===u.m.Success&&(nt(),(0,a.LW)("保存成功"));case 2:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),ot=function(){var t=V(Z().m(function t(e){var n;return Z().w(function(t){for(;;)switch(t.n){case 0:return n=Y[e],t.n=1,i._U.post("http/proxy/set/mac",[n]);case 1:t.v.code===u.m.Success&&(nt(),(0,a.LW)("保存成功"));case 2:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}(),it=function(){var t=V(Z().m(function t(){var e,n;return Z().w(function(t){for(;;)switch(t.n){case 0:for(e=[],n=0;n<B.length;n++)B[n].index=n,e.push(B[n]);return t.n=1,i._U.post("vir/client/tcp_proxy/save",e);case 1:t.v.code===u.m.Success&&((0,a.LW)("保存成功"),nt());case 2:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),at=function(){var t=V(Z().m(function t(){return Z().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,i._U.post("http/proxy/server/save",C);case 1:t.v.code===u.m.Success&&(nt(),(0,a.LW)("保存成功"));case 2:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),ut=function(){var t=V(Z().m(function t(e){var n;return Z().w(function(t){for(;;)switch(t.n){case 0:if(C.list[e].random_key){t.n=1;break}return C.list[e].random_key=(0,D.hU)(),I(W({},C)),t.n=1,at();case 1:return t.n=2,i._U.post("http/proxy/server/code/get",{key:C.list[e].random_key});case 2:n=t.v,T({model:"ace/mode/javascript",open:!0,fileName:"",can_format:!0,save:function(){var t=V(Z().m(function t(n){return Z().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,i._U.post("http/proxy/server/code/save",{context:n,key:C.list[e].random_key});case 1:0===t.v.code&&(M.xK.set_value_temp(""),T({open:!1,model:"",fileName:"",save:null}));case 2:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}()}),M.xK.set_value_temp(n.data);case 3:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}();return r.createElement("div",null,r.createElement(o.fI,null,F.sys===H.XM.win&&r.createElement(o.VP,null,r.createElement(c.Zp,{title:"Http Proxy",rightBottomCom:r.createElement(s.C3,{text:e("保存"),clickFun:rt})},r.createElement(l.Sm,{placeholder:"ip (default localhost) ",value:h,handleInputChange:function(t){m(t)}}),r.createElement(l.Sm,{placeholder:"port ",value:y,handleInputChange:function(t){b(t)}}),r.createElement(l.Sm,{placeholder:"忽略ip ",value:E,handleInputChange:function(t){w(t)}}),r.createElement("form",null,e("请勿将代理服务器用于本地(Intranet)地址"),r.createElement(f.S,{isFlex:!0,columns:[r.createElement(l.U6,{value:1,context:e("开启"),selected:O,onchange:function(){j(!O)}}),r.createElement(l.U6,{value:1,context:e("关闭"),selected:!O,onchange:function(){j(!O)}})]})),r.createElement("form",null,e("状态"),r.createElement(f.S,{isFlex:!0,columns:[r.createElement(l.U6,{value:1,context:e("开启"),selected:x,onchange:function(){A(!x)}}),r.createElement(l.U6,{value:1,context:e("关闭"),selected:!x,onchange:function(){A(!x)}})]})))),F.sys===H.XM.mac&&r.createElement(o.VP,null,Y.map(function(t,n){return r.createElement(c.uF,{key:n,self_title:r.createElement("span",{className:" div-row "},r.createElement("h2",null,t.name)," "),titleCom:r.createElement("div",null,r.createElement(s.rA,{icon:"save",title:e("保存"),onClick:function(){ot(n)}}))},r.createElement(f.X,{headers:z,rows:t.proxies.map(function(t,o){var i=[r.createElement(l.Sm,{value:t.port,handleInputChange:function(e){t.port=parseInt(e)},no_border:!0}),r.createElement(l.Sm,{value:t.ip,handleInputChange:function(e){t.ip=e},no_border:!0}),r.createElement("div",null,1===t.type?"http":"https"),r.createElement(l.l6,{value:t.enabled,onChange:function(t){!function(t,e,n){var r=X(Y);r[t].proxies[e].enabled="true"===n,J(r)}(n,o,t)},options:[{title:e("是"),value:!0},{title:e("否"),value:!1}],no_border:!0})];return i}),width:"10rem"}),"ignore ips",r.createElement(l.Sm,{value:t.bypass,handleInputChange:function(t){Y[n].bypass=t},no_border:!0}))})),r.createElement(o.VP,null,r.createElement(c.uF,{self_title:r.createElement("span",{className:" div-row "},r.createElement("h2",null,e("Tcp Proxy"))," "),titleCom:r.createElement("div",null,r.createElement(s.rA,{icon:"add",title:e("添加"),onClick:function(){$([].concat(X(B),[{note:"",open:!1,port:0,target_port:0,target_ip:""}]))}}),r.createElement(s.rA,{icon:"save",title:e("保存"),onClick:it}))},r.createElement(f.X,{headers:N,rows:B.map(function(t,n){var o=[r.createElement(l.Sm,{value:t.port,handleInputChange:function(e){t.port=parseInt(e)},no_border:!0}),r.createElement(l.Sm,{value:t.target_ip,handleInputChange:function(e){t.target_ip=e},no_border:!0}),r.createElement(l.Sm,{value:t.target_port,handleInputChange:function(e){t.target_port=parseInt(e)},no_border:!0}),r.createElement(l.l6,{value:t.open,onChange:function(t){B[n].open="true"===t,$(X(B))},options:[{title:e("是"),value:!0},{title:e("否"),value:!1}],no_border:!0}),r.createElement(l.Sm,{value:t.note,handleInputChange:function(e){t.note=e},no_border:!0}),r.createElement("div",null,r.createElement(s.rA,{icon:"delete",title:e("删除"),onClick:function(){return function(t){B.splice(t,1),$(X(B))}(n)}}))];return o}),width:"10rem"})),r.createElement(c.uF,{self_title:r.createElement("span",{className:" div-row "},r.createElement("h2",null,e("Http Proxy Server"))," "),titleCom:r.createElement("div",null,r.createElement(s.rA,{icon:"add",title:e("添加"),onClick:function(){C.list.push({note:"",open:!1}),I(W({},C))}}),r.createElement(s.rA,{icon:"save",title:e("保存"),onClick:at}))},r.createElement(f.X,{headers:Q,rows:C.list.map(function(t,n){return[r.createElement("div",null,r.createElement(s.rA,{icon:"edit",title:e("编辑"),onClick:function(){ut(n)}})),r.createElement(l.l6,{value:t.open,onChange:function(t){C.list[n].open="true"===t,I(W({},C))},options:[{title:e("是"),value:!0},{title:e("否"),value:!1}],no_border:!0}),r.createElement(l.Sm,{value:t.note,handleInputChange:function(e){t.note=e},no_border:!0}),r.createElement("div",null,r.createElement(s.rA,{icon:"delete",title:e("删除"),onClick:function(){C.list.splice(n,1),I(W({},C))}}))]}),width:"10rem"}),r.createElement("form",null,e("状态"),r.createElement(f.S,{isFlex:!0,columns:[r.createElement(l.U6,{value:1,context:e("开启"),selected:C.open,onchange:function(){I(W(W({},C),{},{open:!C.open}))}}),r.createElement(l.U6,{value:1,context:e("关闭"),selected:!C.open,onchange:function(){I(W(W({},C),{},{open:!C.open}))}})]})),"port",r.createElement(l.Sm,{value:C.port,handleInputChange:function(t){C.port=parseInt(t),I(W({},C))},no_border:!0})))))}var tt=n(2726),et=n(3413),nt=n.n(et),rt=n(4505);function ot(t){return function(t){if(Array.isArray(t))return pt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||ft(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function it(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof u?r:u,l=Object.create(c.prototype);return at(l,"_invoke",function(n,r,o){var i,u,c,l=0,s=o||[],f=!1,p={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,n){return i=e,u=0,c=t,p.n=n,a}};function h(n,r){for(u=n,c=r,e=0;!f&&l&&!o&&e<s.length;e++){var o,i=s[e],h=p.p,m=i[2];n>3?(o=m===r)&&(c=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=t):i[0]<=h&&((o=n<2&&h<i[1])?(u=0,p.v=r,p.n=i[1]):h<m&&(o=n<3||i[0]>r||r>m)&&(i[4]=n,i[5]=r,p.n=m,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,s,m){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&h(s,m),u=s,c=m;(e=u<2?t:c)||!f;){i||(u?u<3?(u>1&&(p.n=-1),h(u,c)):p.n=c:p.v=c);try{if(l=2,i){if(u||(o="next"),e=i[o]){if(!(e=e.call(i,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,u<2&&(u=0)}else 1===u&&(e=i.return)&&e.call(i),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=t}else if((e=(f=p.n<0)?c:n.call(r,p))!==a)break}catch(e){i=t,u=1,c=e}finally{l=1}}return{value:e,done:f}}}(n,o,i),!0),l}var a={};function u(){}function c(){}function l(){}e=Object.getPrototypeOf;var s=[][r]?e(e([][r]())):(at(e={},r,function(){return this}),e),f=l.prototype=u.prototype=Object.create(s);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,at(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return c.prototype=l,at(f,"constructor",l),at(l,"constructor",c),c.displayName="GeneratorFunction",at(l,o,"GeneratorFunction"),at(f),at(f,o,"Generator"),at(f,r,function(){return this}),at(f,"toString",function(){return"[object Generator]"}),(it=function(){return{w:i,m:p}})()}function at(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}at=function(t,e,n,r){function i(e,n){at(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},at(t,e,n,r)}function ut(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=ft(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function ct(t,e,n,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function lt(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(t){ct(i,r,o,a,u,"next",t)}function u(t){ct(i,r,o,a,u,"throw",t)}a(void 0)})}}function st(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||ft(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ft(t,e){if(t){if("string"==typeof t)return pt(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pt(t,e):void 0}}function pt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function ht(t){var e=(0,d.Bd)().t,n=st((0,r.useState)([]),2),p=n[0],h=n[1],m=st((0,r.useState)([]),2),y=m[0],b=m[1],g=st((0,r.useState)(""),2),E=g[0],w=g[1],S=st((0,r.useState)(""),2),x=S[0],A=S[1],_=st((0,r.useState)(!1),2),O=_[0],j=_[1],k=st((0,U.L4)(G.A.showPrompt),2),C=(k[0],k[1]),I=st((0,U.L4)(G.A.confirm),2),P=(I[0],I[1]);(0,r.useEffect)(function(){lt(it().m(function t(){var e,n,r,o,a,c,l;return it().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,i.ez.get("ips/dnspod");case 1:if((e=t.v).code===u.m.Success){t.n=2;break}return t.a(2);case 2:n=e.data,r=[],o=[],a=ut(n.ips);try{for(a.s();!(c=a.n()).done;)(l=c.value).isIPv4?r.push(l):o.push(l)}catch(t){a.e(t)}finally{a.f()}h(r),b(o),n.account&&(w(n.account.id),A(n.account.token)),j(n.isOpen);case 3:return t.a(2)}},t)}))()},[]);var T=function(){var t=lt(it().m(function t(){var e,n,r,o,a,c;return it().w(function(t){for(;;)switch(t.n){case 0:if(!O||E&&x){t.n=1;break}return new(nt())({type:"error",text:"id和token都不能为空",timeout:1e3,layout:"bottomLeft"}).show(),t.a(2);case 1:for(e=new tt.yL,n=[],r=0,o=[].concat(ot(p),ot(y));r<o.length;r++)(a=o[r]).ddnsHost&&n.push(a);return e.ips=n,e.account={id:E,token:x},e.isOpen=O,e.ddnsType=tt.E2.dnspod,t.n=2,i.ez.post("save",e);case 2:(c=t.v).code===u.m.DdnsAuthFail?new(nt())({type:"error",text:c.data,timeout:1e3,layout:"bottomLeft"}).show():new(nt())({type:"success",text:c.data,timeout:1e3,layout:"bottomLeft"}).show();case 3:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),L=function(){var t=lt(it().m(function t(e){return it().w(function(t){for(;;)switch(t.n){case 0:P({open:!0,handle:function(){var t=lt(it().m(function t(){return it().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,i.ez.post("http/del",e);case 1:0===t.v.code&&(0,a.LW)("删除成功,稍后请刷新"),P({open:!1,handle:null});case 2:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),title:"确定删除吗?"});case 1:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}();return r.createElement("div",null,r.createElement(v.A,null,r.createElement(s.rA,{icon:"add",title:e("添加http获取ip"),onClick:function(){C({show:!0,type:rt.PromptEnum.DdnsAddHttp,overlay:!0,data:{}})}})),r.createElement(o.fI,null,r.createElement(o.VP,null,r.createElement(c.Zp,{title:"ipv4"},p.length>0&&p.map(function(t,n){return r.createElement("div",{key:n},"".concat(t.ifaceOrWww,"(").concat(t.ip,")"),r.createElement(l.Sm,{right_placeholder:r.createElement("div",null,t.source_type===tt.tC.http_get&&r.createElement(s.rA,{icon:"delete",title:e("删除"),onClick:function(){L(t)}})),placeholder:"a.abc.com b.abc.com ...",value:t.ddnsHost,handleInputChange:function(e){t.ddnsHost=e}}))})),r.createElement(c.Zp,{title:"ipv6"},y.length>0&&y.map(function(t,n){return r.createElement("div",{key:n},"".concat(t.ifaceOrWww,"(").concat(t.ip,")"),r.createElement(l.Sm,{right_placeholder:r.createElement("div",null,t.source_type===tt.tC.http_get&&r.createElement(s.rA,{icon:"delete",title:e("删除"),onClick:function(){L(t)}})),placeholder:"a.abc.com b.abc.com ...",value:t.ddnsHost,handleInputChange:function(e){t.ddnsHost=e}}))}))),r.createElement(o.VP,null,r.createElement(c.Zp,{title:e("账号设置"),rightBottomCom:r.createElement(s.C3,{text:e("保存"),clickFun:T})},r.createElement(l.Sm,{placeholder:"ID",value:E,handleInputChange:function(t){w(t)}}),r.createElement(l.cA,{placeholder:"TOKEN",value:x,handleInputChange:function(t){A(t)}}),r.createElement(f.S,{isFlex:!0,columns:[r.createElement(l.U6,{value:1,context:e("开启"),selected:O,onchange:function(){j(!O)}}),r.createElement(l.U6,{value:1,context:e("关闭"),selected:!O,onchange:function(){j(!O)}})]})),r.createElement(c.Zp,{title:e("说明")},"域名如果不存在会自动创建,空子域名是@,ip6和ipv4可以互相切换。"))))}function mt(t){return function(t){if(Array.isArray(t))return St(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||wt(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dt(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof u?r:u,l=Object.create(c.prototype);return vt(l,"_invoke",function(n,r,o){var i,u,c,l=0,s=o||[],f=!1,p={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,n){return i=e,u=0,c=t,p.n=n,a}};function h(n,r){for(u=n,c=r,e=0;!f&&l&&!o&&e<s.length;e++){var o,i=s[e],h=p.p,m=i[2];n>3?(o=m===r)&&(c=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=t):i[0]<=h&&((o=n<2&&h<i[1])?(u=0,p.v=r,p.n=i[1]):h<m&&(o=n<3||i[0]>r||r>m)&&(i[4]=n,i[5]=r,p.n=m,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,s,m){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&h(s,m),u=s,c=m;(e=u<2?t:c)||!f;){i||(u?u<3?(u>1&&(p.n=-1),h(u,c)):p.n=c:p.v=c);try{if(l=2,i){if(u||(o="next"),e=i[o]){if(!(e=e.call(i,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,u<2&&(u=0)}else 1===u&&(e=i.return)&&e.call(i),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=t}else if((e=(f=p.n<0)?c:n.call(r,p))!==a)break}catch(e){i=t,u=1,c=e}finally{l=1}}return{value:e,done:f}}}(n,o,i),!0),l}var a={};function u(){}function c(){}function l(){}e=Object.getPrototypeOf;var s=[][r]?e(e([][r]())):(vt(e={},r,function(){return this}),e),f=l.prototype=u.prototype=Object.create(s);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,vt(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return c.prototype=l,vt(f,"constructor",l),vt(l,"constructor",c),c.displayName="GeneratorFunction",vt(l,o,"GeneratorFunction"),vt(f),vt(f,o,"Generator"),vt(f,r,function(){return this}),vt(f,"toString",function(){return"[object Generator]"}),(dt=function(){return{w:i,m:p}})()}function vt(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}vt=function(t,e,n,r){function i(e,n){vt(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},vt(t,e,n,r)}function yt(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=wt(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function bt(t,e,n,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function gt(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(t){bt(i,r,o,a,u,"next",t)}function u(t){bt(i,r,o,a,u,"throw",t)}a(void 0)})}}function Et(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||wt(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wt(t,e){if(t){if("string"==typeof t)return St(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?St(t,e):void 0}}function St(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function xt(t){var e=(0,d.Bd)().t,n=Et((0,r.useState)([]),2),p=n[0],h=n[1],m=Et((0,r.useState)([]),2),y=m[0],b=m[1],g=Et((0,r.useState)(""),2),E=g[0],w=g[1],S=Et((0,r.useState)(""),2),x=S[0],A=S[1],_=Et((0,r.useState)(!1),2),O=_[0],j=_[1],k=Et((0,U.L4)(G.A.showPrompt),2),C=(k[0],k[1]),I=Et((0,U.L4)(G.A.confirm),2),P=(I[0],I[1]);(0,r.useEffect)(function(){gt(dt().m(function t(){var e,n,r,o,a,c,l;return dt().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,i.ez.get("ips/tx");case 1:if((e=t.v).code===u.m.Success){t.n=2;break}return t.a(2);case 2:n=e.data,r=[],o=[],a=yt(n.ips);try{for(a.s();!(c=a.n()).done;)(l=c.value).isIPv4?r.push(l):o.push(l)}catch(t){a.e(t)}finally{a.f()}h(r),b(o),n.account&&(w(n.account.secretid),A(n.account.secretkey)),j(n.isOpen);case 3:return t.a(2)}},t)}))()},[]);var T=function(){var t=gt(dt().m(function t(){var e,n,r,o,a,c;return dt().w(function(t){for(;;)switch(t.n){case 0:if(!O||E&&x){t.n=1;break}return new(nt())({type:"error",text:"SecretId和SecretKey都不能为空",timeout:1e3,layout:"bottomLeft"}).show(),t.a(2);case 1:for(e=new tt.yL,n=[],r=0,o=[].concat(mt(p),mt(y));r<o.length;r++)(a=o[r]).ddnsHost&&n.push(a);return e.ips=n,e.account={secretid:E,secretkey:x},e.isOpen=O,e.ddnsType=tt.E2.tengxun,t.n=2,i.ez.post("save",e);case 2:(c=t.v).code===u.m.DdnsAuthFail?new(nt())({type:"error",text:c.data,timeout:1e3,layout:"bottomLeft"}).show():new(nt())({type:"success",text:c.data,timeout:1e3,layout:"bottomLeft"}).show();case 3:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),L=function(){var t=gt(dt().m(function t(e){return dt().w(function(t){for(;;)switch(t.n){case 0:P({open:!0,handle:function(){var t=gt(dt().m(function t(){return dt().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,i.ez.post("http/del",e);case 1:0===t.v.code&&(0,a.LW)("删除成功,稍后请刷新"),P({open:!1,handle:null});case 2:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),title:"确定删除吗?"});case 1:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}();return r.createElement("div",null,r.createElement(v.A,null,r.createElement(s.rA,{icon:"add",title:e("添加http获取ip"),onClick:function(){C({show:!0,type:rt.PromptEnum.DdnsAddHttp,overlay:!0,data:{}})}})),r.createElement(o.fI,null,r.createElement(o.VP,null,r.createElement(c.Zp,{title:"ipv4"},p.length>0&&p.map(function(t,n){return r.createElement("div",{key:n},"".concat(t.ifaceOrWww,"(").concat(t.ip,")"),r.createElement(l.Sm,{right_placeholder:r.createElement("div",null,t.source_type===tt.tC.http_get&&r.createElement(s.rA,{icon:"delete",title:e("删除"),onClick:function(){L(t)}})),placeholder:"a.abc.com b.abc.com ...",value:t.ddnsHost,handleInputChange:function(e){t.ddnsHost=e}}))})),r.createElement(c.Zp,{title:"ipv6"},y.length>0&&y.map(function(t,n){return r.createElement("div",{key:n},"".concat(t.ifaceOrWww,"(").concat(t.ip,")"),r.createElement(l.Sm,{right_placeholder:r.createElement("div",null,t.source_type===tt.tC.http_get&&r.createElement(s.rA,{icon:"delete",title:e("删除"),onClick:function(){L(t)}})),placeholder:"a.abc.com b.abc.com ...",value:t.ddnsHost,handleInputChange:function(e){t.ddnsHost=e}}))}))),r.createElement(o.VP,null,r.createElement(c.Zp,{title:e("账号设置"),rightBottomCom:r.createElement(s.C3,{text:e("保存"),clickFun:T})},r.createElement(l.Sm,{placeholder:"SecretId",value:E,handleInputChange:function(t){w(t)}}),r.createElement(l.cA,{placeholder:"SecretKey",value:x,handleInputChange:function(t){A(t)}}),r.createElement(f.S,{isFlex:!0,columns:[r.createElement(l.U6,{value:1,context:e("开启"),selected:O,onchange:function(){j(!O)}}),r.createElement(l.U6,{value:1,context:e("关闭"),selected:!O,onchange:function(){j(!O)}})]})),r.createElement(c.Zp,{title:e("说明")},"域名如果不存在会自动创建,空子域名是@,ip6和ipv4可以互相切换。"))))}function At(){var t=(0,d.Bd)().t,e=(0,M.MH)().check_user_auth,n=[];return e(H.oV.vir_net)&&n.push.apply(n,[{index:1,name:t("系统")+t("代理"),rto:"proxy_sys/",component:r.createElement(Q,null)},{index:2,name:"Tun proxy "+t("客户端"),rto:"client/",component:r.createElement(N,null)},{index:3,name:"Tun proxy "+t("服务端"),rto:"server/",component:r.createElement(k,null)}]),e(H.oV.ddns)&&n.push.apply(n,[{index:4,name:"ddns-dnspod(".concat(t("腾讯"),")"),rto:"dnspod/",component:r.createElement(ht,null)},{index:5,name:"ddns-".concat(t("腾讯")).concat(t("云")),rto:"tengxun/",component:r.createElement(xt,null)}]),r.createElement(o.W1,{optionList:n})}},1028(t,e,n){"use strict";n.d(e,{A:()=>u});var r=n(1601),o=n.n(r),i=n(6314),a=n.n(i)()(o());a.push([t.id,'.awesomplete [hidden] {\n display: none;\n}\n\n.awesomplete .visually-hidden {\n position: absolute;\n clip: rect(0, 0, 0, 0);\n}\n\n.awesomplete {\n display: inline-block;\n position: relative;\n}\n\n.awesomplete > input {\n display: block;\n}\n\n.awesomplete > ul {\n position: absolute;\n left: 0;\n z-index: 1;\n min-width: 100%;\n box-sizing: border-box;\n list-style: none;\n padding: 0;\n margin: 0;\n background: #fff;\n}\n\n.awesomplete > ul:empty {\n display: none;\n}\n\n.awesomplete > ul {\n\tborder-radius: .3em;\n\tmargin: .2em 0 0;\n\tbackground: hsla(0,0%,100%,.9);\n\tbackground: linear-gradient(to bottom right, white, hsla(0,0%,100%,.8));\n\tborder: 1px solid rgba(0,0,0,.3);\n\tbox-shadow: .05em .2em .6em rgba(0,0,0,.2);\n\ttext-shadow: none;\n}\n\n@supports (transform: scale(0)) {\n\t.awesomplete > ul {\n\t\ttransition: .3s cubic-bezier(.4,.2,.5,1.4);\n\t\ttransform-origin: 1.43em -.43em;\n\t}\n\t\n\t.awesomplete > ul[hidden],\n\t.awesomplete > ul:empty {\n\t\topacity: 0;\n\t\ttransform: scale(0);\n\t\tdisplay: block;\n\t\tvisibility: hidden;\n\t\ttransition-timing-function: ease;\n\t}\n}\n\n\t/* Pointer */\n\t.awesomplete > ul:before {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t\ttop: -.43em;\n\t\tleft: 1em;\n\t\twidth: 0; height: 0;\n\t\tpadding: .4em;\n\t\tbackground: white;\n\t\tborder: inherit;\n\t\tborder-right: 0;\n\t\tborder-bottom: 0;\n\t\t-webkit-transform: rotate(45deg);\n\t\ttransform: rotate(45deg);\n\t}\n\n\t.awesomplete > ul > li {\n\t\tposition: relative;\n\t\tpadding: .2em .5em;\n\t\tcursor: pointer;\n\t}\n\t\n\t.awesomplete > ul > li:hover {\n\t\tbackground: hsl(200, 40%, 80%);\n\t\tcolor: black;\n\t}\n\t\n\t.awesomplete > ul > li[aria-selected="true"] {\n\t\tbackground: hsl(205, 40%, 40%);\n\t\tcolor: white;\n\t}\n\t\n\t\t.awesomplete mark {\n\t\t\tbackground: hsl(65, 100%, 50%);\n\t\t}\n\t\t\n\t\t.awesomplete li:hover mark {\n\t\t\tbackground: hsl(68, 100%, 41%);\n\t\t}\n\t\t\n\t\t.awesomplete li[aria-selected="true"] mark {\n\t\t\tbackground: hsl(86, 100%, 21%);\n\t\t\tcolor: inherit;\n\t\t}\n',""]);const u=a},9145(t,e,n){"use strict";var r=n(5072),o=n.n(r),i=n(7825),a=n.n(i),u=n(7659),c=n.n(u),l=n(5056),s=n.n(l),f=n(540),p=n.n(f),h=n(1113),m=n.n(h),d=n(1028),v={};v.styleTagTransform=m(),v.setAttributes=s(),v.insert=c().bind(null,"head"),v.domAPI=a(),v.insertStyleElement=p();o()(d.A,v),d.A&&d.A.locals&&d.A.locals}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 542.40f04143d8ae76f04231.js.LICENSE.txt */
2
+ (self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[542,627],{5219(t){!function(){var e=function(t,n){var i=this;e.count=(e.count||0)+1,this.count=e.count,this.isOpened=!1,this.input=r(t),this.input.setAttribute("autocomplete","off"),this.input.setAttribute("aria-autocomplete","list"),this.input.setAttribute("aria-expanded","false"),this.input.setAttribute("aria-controls","awesomplete_list_"+this.count),this.input.setAttribute("aria-owns","awesomplete_list_"+this.count),this.input.setAttribute("role","combobox"),this.options=n=n||{},function(t,e,n){for(var i in e){var r=e[i],o=t.input.getAttribute("data-"+i.toLowerCase());t[i]="number"==typeof r?parseInt(o):!1===r?null!==o:r instanceof Function?null:o,t[i]||0===t[i]||(t[i]=i in n?n[i]:r)}}(this,{minChars:2,maxItems:10,autoFirst:!1,data:e.DATA,filter:e.FILTER_CONTAINS,sort:!1!==n.sort&&e.SORT_BYLENGTH,container:e.CONTAINER,item:e.ITEM,replace:e.REPLACE,tabSelect:!1,listLabel:"Results List",statusNoResults:"No results found",statusXResults:"{0} results found",statusTypeXChar:"Type {0} or more characters for results"},n),this.index=-1,this.container=this.container(t),this.ul=r.create("ul",{hidden:"hidden",role:"listbox",id:"awesomplete_list_"+this.count,inside:this.container,"aria-label":this.listLabel}),this.status=r.create("span",{className:"visually-hidden",role:"status","aria-live":"assertive","aria-atomic":!0,inside:this.container,textContent:""}),this._events={input:{input:this.evaluate.bind(this),blur:this.close.bind(this,{reason:"blur"}),keydown:function(t){var e=t.keyCode;i.opened&&(13===e&&i.selected||9===e&&i.selected&&i.tabSelect?(t.preventDefault(),i.select(void 0,void 0,t)):27===e?i.close({reason:"esc"}):38!==e&&40!==e||(t.preventDefault(),i[38===e?"previous":"next"]()))}},form:{submit:this.close.bind(this,{reason:"submit"})},ul:{mousedown:function(t){t.preventDefault()},click:function(t){var e=t.target;if(e!==this){for(;e&&!/li/i.test(e.nodeName);)e=e.parentNode;e&&0===t.button&&(t.preventDefault(),i.select(e,t.target,t))}}}},r.bind(this.input,this._events.input),r.bind(this.input.form,this._events.form),r.bind(this.ul,this._events.ul),this.input.hasAttribute("list")?(this.list="#"+this.input.getAttribute("list"),this.input.removeAttribute("list")):this.list=this.input.getAttribute("data-list")||n.list||[],e.all.push(this)};function n(t){var e=Array.isArray(t)?{label:t[0],value:t[1]}:"object"==typeof t&&"label"in t&&"value"in t?t:{label:t,value:t};this.label=e.label||e.value,this.value=e.value}e.prototype={set list(t){if(Array.isArray(t))this._list=t;else if("string"==typeof t&&t.indexOf(",")>-1)this._list=t.split(/\s*,\s*/);else if((t=r(t))&&t.children){var e=[];i.apply(t.children).forEach(function(t){if(!t.disabled){var n=t.textContent.trim(),i=t.value||n,r=t.label||n;""!==i&&e.push({label:r,value:i})}}),this._list=e}document.activeElement===this.input&&this.evaluate()},get selected(){return this.index>-1},get opened(){return this.isOpened},close:function(t){this.opened&&(this.input.setAttribute("aria-expanded","false"),this.ul.setAttribute("hidden",""),this.isOpened=!1,this.index=-1,this.status.setAttribute("hidden",""),this.input.setAttribute("aria-activedescendant",""),r.fire(this.input,"awesomplete-close",t||{}))},open:function(){this.input.setAttribute("aria-expanded","true"),this.ul.removeAttribute("hidden"),this.isOpened=!0,this.status.removeAttribute("hidden"),this.autoFirst&&-1===this.index&&this.goto(0),r.fire(this.input,"awesomplete-open")},destroy:function(){if(r.unbind(this.input,this._events.input),r.unbind(this.input.form,this._events.form),!this.options.container){var t=this.container.parentNode;t.insertBefore(this.input,this.container),t.removeChild(this.container)}this.input.removeAttribute("autocomplete"),this.input.removeAttribute("aria-autocomplete"),this.input.removeAttribute("aria-expanded"),this.input.removeAttribute("aria-controls"),this.input.removeAttribute("aria-owns"),this.input.removeAttribute("role");var n=e.all.indexOf(this);-1!==n&&e.all.splice(n,1)},next:function(){var t=this.ul.children.length;this.goto(this.index<t-1?this.index+1:t?0:-1)},previous:function(){var t=this.ul.children.length,e=this.index-1;this.goto(this.selected&&-1!==e?e:t-1)},goto:function(t){var e=this.ul.children;this.selected&&e[this.index].setAttribute("aria-selected","false"),this.index=t,t>-1&&e.length>0&&(e[t].setAttribute("aria-selected","true"),this.input.setAttribute("aria-activedescendant",this.ul.id+"_item_"+this.index),this.ul.scrollTop=e[t].offsetTop-this.ul.clientHeight+e[t].clientHeight,r.fire(this.input,"awesomplete-highlight",{text:this.suggestions[this.index]}))},select:function(t,e,n){if(t?this.index=r.siblingIndex(t):t=this.ul.children[this.index],t){var i=this.suggestions[this.index];r.fire(this.input,"awesomplete-select",{text:i,origin:e||t,originalEvent:n})&&(this.replace(i),this.close({reason:"select"}),r.fire(this.input,"awesomplete-selectcomplete",{text:i,originalEvent:n}))}},evaluate:function(){var t=this,e=this.input.value;e.length>=this.minChars&&this._list&&this._list.length>0?(this.index=-1,this.ul.innerHTML="",this.suggestions=this._list.map(function(i){return new n(t.data(i,e))}).filter(function(n){return t.filter(n,e)}),!1!==this.sort&&(this.suggestions=this.suggestions.sort(this.sort)),this.suggestions=this.suggestions.slice(0,this.maxItems),this.suggestions.forEach(function(n,i){t.ul.appendChild(t.item(n,e,i))}),0===this.ul.children.length?(this.status.textContent=this.statusNoResults,this.close({reason:"nomatches"})):(this.input.setAttribute("aria-activedescendant",""),this.open(),this.status.textContent=this.statusXResults.replaceAll("{0}",this.ul.children.length))):(this.close({reason:"nomatches"}),this.minChar<=1||e.length>=this.minChars?this.status.textContent=this.statusNoResults:this.status.textContent=this.statusTypeXChar.replaceAll("{0}",this.minChars))}},e.all=[],e.FILTER_CONTAINS=function(t,e){return RegExp(r.regExpEscape(e.trim()),"i").test(t)},e.FILTER_STARTSWITH=function(t,e){return RegExp("^"+r.regExpEscape(e.trim()),"i").test(t)},e.SORT_BYLENGTH=function(t,e){return t.length!==e.length?t.length-e.length:t<e?-1:1},e.CONTAINER=function(t){return r.create("div",{className:"awesomplete",around:t})},e.ITEM=function(t,e,n){var i=""===e.trim()?t:t.replace(RegExp(r.regExpEscape(e.trim()),"gi"),"<mark>$&</mark>");return r.create("li",{innerHTML:i,role:"option","aria-selected":"false",tabindex:"-1",id:"awesomplete_list_"+this.count+"_item_"+n})},e.REPLACE=function(t){this.input.value=t.value},e.DATA=function(t){return t},Object.defineProperty(n.prototype=Object.create(String.prototype),"length",{get:function(){return this.label.length}}),n.prototype.toString=n.prototype.valueOf=function(){return""+this.label};var i=Array.prototype.slice;function r(t,e){return"string"==typeof t?(e||document).querySelector(t):t||null}function o(t,e){return i.call((e||document).querySelectorAll(t))}function a(){o("input.awesomplete").forEach(function(t){new e(t)})}r.create=function(t,e){var n=document.createElement(t);for(var i in e){var o=e[i];if("inside"===i)r(o).appendChild(n);else if("around"===i){var a=r(o);a.parentNode.insertBefore(n,a),n.appendChild(a),null!=a.getAttribute("autofocus")&&a.focus()}else i in n?n[i]=o:n.setAttribute(i,o)}return n},r.bind=function(t,e){if(t)for(var n in e){var i=e[n];n.split(/\s+/).forEach(function(e){t.addEventListener(e,i)})}},r.unbind=function(t,e){if(t)for(var n in e){var i=e[n];n.split(/\s+/).forEach(function(e){t.removeEventListener(e,i)})}},r.fire=function(t,e,n){var i=document.createEvent("HTMLEvents");for(var r in i.initEvent(e,!0,!0),n)i[r]=n[r];return t.dispatchEvent(i)},r.regExpEscape=function(t){return t.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")},r.siblingIndex=function(t){for(var e=0;t=t.previousElementSibling;e++);return e},"undefined"!=typeof self&&(self.Awesomplete=e),"undefined"!=typeof Document&&("loading"!==document.readyState?a():document.addEventListener("DOMContentLoaded",a)),e.$=r,e.$$=o,t.exports&&(t.exports=e)}()},3033(t,e,n){"use strict";n.d(e,{$Z:()=>h,GL:()=>b,Sm:()=>d,U6:()=>v,cA:()=>f,l6:()=>m});var i=n(6540),r=n(5219),o=n.n(r);n(9145);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function l(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=a(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){u=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function h(t){var e=(0,i.useRef)(null),n=u(i.useState(""),2),r=n[0],o=n[1];return(0,i.useEffect)(function(){var n=t.value;null==n&&(n=""),e.current.value=n,o(t.value||"")},[t.value]),i.createElement("div",{id:"search",className:"",style:{maxWidth:t.max_width,display:t.not_mobile?"block":void 0}},i.createElement("div",{id:"input"},i.createElement("i",{className:"material-icons"},t.icon),i.createElement("input",{type:"text",ref:e,placeholder:r||t.placeholder,onChange:function(e){t.handleInputChange&&t.handleInputChange(e.target.value,e.target),o(e.target.value)},onKeyPress:function(e){"Enter"===e.key&&t.handleEnterPress&&t.handleEnterPress()}})))}function p(t){var e=(0,i.useRef)(null),n=u(i.useState(""),2),r=n[0],a=n[1],s=u(i.useState("input input--block awesomplete"),2),l=s[0],c=s[1];return(0,i.useEffect)(function(){a(null==t.value?"":t.value),t.focus&&e.current.focus(),t.no_border&&c("".concat(l," input--no_border awesomplete"))},[t.value]),(0,i.useEffect)(function(){if(null!=t.options&&e.current){var n,i=new(o())(e.current,{list:null!==(n=t.options)&&void 0!==n?n:[],minChars:0,autoFirst:!0});e.current.addEventListener("focus",function(){e.current.value="",e.current.dispatchEvent(new Event("input"))});var r=function(n){var i,r,o=null!==(i=n.text.label)&&void 0!==i?i:n.text.value,s=n.text.value;a(o),requestAnimationFrame(function(){e.current.value=o}),null===(r=t.handleInputChange)||void 0===r||r.call(t,s,e.current)};return e.current.addEventListener("awesomplete-selectcomplete",r),function(){var t;null===(t=e.current)||void 0===t||t.removeEventListener("awesomplete-selectcomplete",r),i.destroy()}}},[]),i.createElement(i.Fragment,null,t.placeholderOut&&i.createElement("p",null,t.placeholderOut),i.createElement("div",{style:{display:"flex",alignItems:"center",width:t.width,maxWidth:t.maxWidth}},t.left_placeholder&&i.createElement("div",{style:{flex:"0 0 auto"}},t.left_placeholder),i.createElement("input",{style:{flex:1,minWidth:0},onClick:function(t){t.stopPropagation()},disabled:!!t.disabled,className:l,type:t.type,placeholder:r||t.placeholder,onChange:function(e){t.handleInputChange&&t.handleInputChange(e.target.value,e.target),a(e.target.value)},onKeyPress:function(e){"Enter"===e.key&&t.handlerEnter&&t.handlerEnter(e.target.value)},value:r,ref:e}),t.right_placeholder&&i.createElement("div",{style:{flex:"0 0 auto"}},t.right_placeholder)))}function d(t){return p(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach(function(e){l(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},t))}function f(t){return p({placeholder:t.placeholder,type:"password",handleInputChange:t.handleInputChange,handlerEnter:t.handleEnterPress,maxWidth:t.maxWidth,width:t.width,value:t.value})}function m(t){return i.createElement("div",{style:{display:"flex"}},t.tip&&i.createElement("p",{className:"input input_left "},t.tip),i.createElement("select",{defaultValue:t.defaultValue,value:t.value,style:{width:t.width},disabled:!!t.disabled,className:"input input--block ".concat(t.no_border?"input--no_border":""),onChange:function(e){return t.onChange(e.target.value)}},t.options.map(function(t,e){return i.createElement("option",{key:e,value:t.value},t.title)})))}function v(t){var e;return i.createElement("div",{className:"input_radio_row"},i.createElement("input",{type:"radio",checked:t.selected,name:null!==(e=t.name)&&void 0!==e?e:"common_name",value:t.value,className:"input_radio",onChange:function(){t.onchange&&t.onchange(t.value)}}),t.context)}function b(t){var e,n=u((0,i.useState)(!1),2),r=n[0],o=n[1];return(0,i.useEffect)(function(){o(!!t.selected)},[t.selected]),i.createElement("div",{className:"input_radio_row"},i.createElement("input",{type:"checkbox",disabled:null!==(e=t.is_disable)&&void 0!==e&&e,checked:r,onChange:function(){t.onchange&&t.onchange()}}),t.context)}},2542(t,e,n){"use strict";n.r(e),n.d(e,{default:()=>w});var i=n(1728),r=n(6540),o=n(7444),a=n(3033),s=n(5997),l=n(7767),u=n(4284),c=n(6417),h=n(5725),p=n(2389),d=n(7523),f=n(2042),m=n(1469);function v(){var t,e,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var l=i&&i.prototype instanceof s?i:s,u=Object.create(l.prototype);return b(u,"_invoke",function(n,i,r){var o,s,l,u=0,c=r||[],h=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return o=e,s=0,l=t,p.n=n,a}};function d(n,i){for(s=n,l=i,e=0;!h&&u&&!r&&e<c.length;e++){var r,o=c[e],d=p.p,f=o[2];n>3?(r=f===i)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=t):o[0]<=d&&((r=n<2&&d<o[1])?(s=0,p.v=i,p.n=o[1]):d<f&&(r=n<3||o[0]>i||i>f)&&(o[4]=n,o[5]=i,p.n=f,s=0))}if(r||n>1)return a;throw h=!0,i}return function(r,c,f){if(u>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,f),s=c,l=f;(e=s<2?t:l)||!h;){o||(s?s<3?(s>1&&(p.n=-1),d(s,l)):p.n=l:p.v=l);try{if(u=2,o){if(s||(r="next"),e=o[r]){if(!(e=e.call(o,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,s<2&&(s=0)}else 1===s&&(e=o.return)&&e.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=t}else if((e=(h=p.n<0)?l:n.call(i,p))!==a)break}catch(e){o=t,s=1,l=e}finally{u=1}}return{value:e,done:h}}}(n,r,o),!0),u}var a={};function s(){}function l(){}function u(){}e=Object.getPrototypeOf;var c=[][i]?e(e([][i]())):(b(e={},i,function(){return this}),e),h=u.prototype=s.prototype=Object.create(c);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,u):(t.__proto__=u,b(t,r,"GeneratorFunction")),t.prototype=Object.create(h),t}return l.prototype=u,b(h,"constructor",u),b(u,"constructor",l),l.displayName="GeneratorFunction",b(u,r,"GeneratorFunction"),b(h),b(h,r,"Generator"),b(h,i,function(){return this}),b(h,"toString",function(){return"[object Generator]"}),(v=function(){return{w:o,m:p}})()}function b(t,e,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}b=function(t,e,n,i){function o(e,n){b(t,e,function(t){return this._invoke(e,n,t)})}e?r?r(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},b(t,e,n,i)}function g(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){u=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return E(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}m.m.init();const w=function(){var t,e=(0,l.Zp)(),n=y((0,r.useState)(""),2),b=n[0],E=n[1],w=y((0,r.useState)(""),2),x=w[0],A=w[1],_=(0,r.useContext)(d.F).initUserInfo,O=y((0,o.L4)(c.A.custom_fun_opt),2),C=(O[0],O[1]),S=(0,p.Bd)().t;function k(){return T.apply(this,arguments)}function T(){var t;return t=v().m(function t(){var n,i;return v().w(function(t){for(;;)switch(t.n){case 0:return n={username:b,password:x},t.n=1,u.wm.post("login",n,!1);case 1:0===(i=t.v).code?(localStorage.setItem("token",i.data),_(),C(""),e("/file")):(0,f.zN)(i.message);case 2:return t.a(2)}},t)}),T=function(){var e=this,n=arguments;return new Promise(function(i,r){var o=t.apply(e,n);function a(t){g(o,i,r,a,s,"next",t)}function s(t){g(o,i,r,a,s,"throw",t)}a(void 0)})},T.apply(this,arguments)}return(0,r.useEffect)(function(){localStorage.getItem("token")&&e("/file")},[]),r.createElement(h.Y5,null,r.createElement("h1",null,null!==(t=m.m.web_site_title)&&void 0!==t?t:"FileCat"),r.createElement("div",{className:"self_win_center_content"},r.createElement(a.Sm,{placeholder:S("账号"),handleInputChange:function(t){E(t)}}),r.createElement(a.cA,{placeholder:S("密码"),handleInputChange:function(t){A(t)},handleEnterPress:k}),r.createElement(s.$n,{text:S("登录"),clickFun:k}),i.A.has("tcp_client_num_id")&&r.createElement(s.$n,{text:S("代理退出"),clickFun:function(){i.A.delete("tcp_client_num_id"),window.location.reload()}})))}},1028(t,e,n){"use strict";n.d(e,{A:()=>s});var i=n(1601),r=n.n(i),o=n(6314),a=n.n(o)()(r());a.push([t.id,'.awesomplete [hidden] {\n display: none;\n}\n\n.awesomplete .visually-hidden {\n position: absolute;\n clip: rect(0, 0, 0, 0);\n}\n\n.awesomplete {\n display: inline-block;\n position: relative;\n}\n\n.awesomplete > input {\n display: block;\n}\n\n.awesomplete > ul {\n position: absolute;\n left: 0;\n z-index: 1;\n min-width: 100%;\n box-sizing: border-box;\n list-style: none;\n padding: 0;\n margin: 0;\n background: #fff;\n}\n\n.awesomplete > ul:empty {\n display: none;\n}\n\n.awesomplete > ul {\n\tborder-radius: .3em;\n\tmargin: .2em 0 0;\n\tbackground: hsla(0,0%,100%,.9);\n\tbackground: linear-gradient(to bottom right, white, hsla(0,0%,100%,.8));\n\tborder: 1px solid rgba(0,0,0,.3);\n\tbox-shadow: .05em .2em .6em rgba(0,0,0,.2);\n\ttext-shadow: none;\n}\n\n@supports (transform: scale(0)) {\n\t.awesomplete > ul {\n\t\ttransition: .3s cubic-bezier(.4,.2,.5,1.4);\n\t\ttransform-origin: 1.43em -.43em;\n\t}\n\t\n\t.awesomplete > ul[hidden],\n\t.awesomplete > ul:empty {\n\t\topacity: 0;\n\t\ttransform: scale(0);\n\t\tdisplay: block;\n\t\tvisibility: hidden;\n\t\ttransition-timing-function: ease;\n\t}\n}\n\n\t/* Pointer */\n\t.awesomplete > ul:before {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t\ttop: -.43em;\n\t\tleft: 1em;\n\t\twidth: 0; height: 0;\n\t\tpadding: .4em;\n\t\tbackground: white;\n\t\tborder: inherit;\n\t\tborder-right: 0;\n\t\tborder-bottom: 0;\n\t\t-webkit-transform: rotate(45deg);\n\t\ttransform: rotate(45deg);\n\t}\n\n\t.awesomplete > ul > li {\n\t\tposition: relative;\n\t\tpadding: .2em .5em;\n\t\tcursor: pointer;\n\t}\n\t\n\t.awesomplete > ul > li:hover {\n\t\tbackground: hsl(200, 40%, 80%);\n\t\tcolor: black;\n\t}\n\t\n\t.awesomplete > ul > li[aria-selected="true"] {\n\t\tbackground: hsl(205, 40%, 40%);\n\t\tcolor: white;\n\t}\n\t\n\t\t.awesomplete mark {\n\t\t\tbackground: hsl(65, 100%, 50%);\n\t\t}\n\t\t\n\t\t.awesomplete li:hover mark {\n\t\t\tbackground: hsl(68, 100%, 41%);\n\t\t}\n\t\t\n\t\t.awesomplete li[aria-selected="true"] mark {\n\t\t\tbackground: hsl(86, 100%, 21%);\n\t\t\tcolor: inherit;\n\t\t}\n',""]);const s=a},9145(t,e,n){"use strict";var i=n(5072),r=n.n(i),o=n(7825),a=n.n(o),s=n(7659),l=n.n(s),u=n(5056),c=n.n(u),h=n(540),p=n.n(h),d=n(1113),f=n.n(d),m=n(1028),v={};v.styleTagTransform=f(),v.setAttributes=c(),v.insert=l().bind(null,"head"),v.domAPI=a(),v.insertStyleElement=p();r()(m.A,v),m.A&&m.A.locals&&m.A.locals}}]);
@@ -1,2 +1,2 @@
1
- /*! For license information please see 704.426d64ffa7b25f425f20.js.LICENSE.txt */
2
- (self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[627,704],{5219(t){!function(){var e=function(t,n){var r=this;e.count=(e.count||0)+1,this.count=e.count,this.isOpened=!1,this.input=i(t),this.input.setAttribute("autocomplete","off"),this.input.setAttribute("aria-autocomplete","list"),this.input.setAttribute("aria-expanded","false"),this.input.setAttribute("aria-controls","awesomplete_list_"+this.count),this.input.setAttribute("aria-owns","awesomplete_list_"+this.count),this.input.setAttribute("role","combobox"),this.options=n=n||{},function(t,e,n){for(var r in e){var i=e[r],o=t.input.getAttribute("data-"+r.toLowerCase());t[r]="number"==typeof i?parseInt(o):!1===i?null!==o:i instanceof Function?null:o,t[r]||0===t[r]||(t[r]=r in n?n[r]:i)}}(this,{minChars:2,maxItems:10,autoFirst:!1,data:e.DATA,filter:e.FILTER_CONTAINS,sort:!1!==n.sort&&e.SORT_BYLENGTH,container:e.CONTAINER,item:e.ITEM,replace:e.REPLACE,tabSelect:!1,listLabel:"Results List",statusNoResults:"No results found",statusXResults:"{0} results found",statusTypeXChar:"Type {0} or more characters for results"},n),this.index=-1,this.container=this.container(t),this.ul=i.create("ul",{hidden:"hidden",role:"listbox",id:"awesomplete_list_"+this.count,inside:this.container,"aria-label":this.listLabel}),this.status=i.create("span",{className:"visually-hidden",role:"status","aria-live":"assertive","aria-atomic":!0,inside:this.container,textContent:""}),this._events={input:{input:this.evaluate.bind(this),blur:this.close.bind(this,{reason:"blur"}),keydown:function(t){var e=t.keyCode;r.opened&&(13===e&&r.selected||9===e&&r.selected&&r.tabSelect?(t.preventDefault(),r.select(void 0,void 0,t)):27===e?r.close({reason:"esc"}):38!==e&&40!==e||(t.preventDefault(),r[38===e?"previous":"next"]()))}},form:{submit:this.close.bind(this,{reason:"submit"})},ul:{mousedown:function(t){t.preventDefault()},click:function(t){var e=t.target;if(e!==this){for(;e&&!/li/i.test(e.nodeName);)e=e.parentNode;e&&0===t.button&&(t.preventDefault(),r.select(e,t.target,t))}}}},i.bind(this.input,this._events.input),i.bind(this.input.form,this._events.form),i.bind(this.ul,this._events.ul),this.input.hasAttribute("list")?(this.list="#"+this.input.getAttribute("list"),this.input.removeAttribute("list")):this.list=this.input.getAttribute("data-list")||n.list||[],e.all.push(this)};function n(t){var e=Array.isArray(t)?{label:t[0],value:t[1]}:"object"==typeof t&&"label"in t&&"value"in t?t:{label:t,value:t};this.label=e.label||e.value,this.value=e.value}e.prototype={set list(t){if(Array.isArray(t))this._list=t;else if("string"==typeof t&&t.indexOf(",")>-1)this._list=t.split(/\s*,\s*/);else if((t=i(t))&&t.children){var e=[];r.apply(t.children).forEach(function(t){if(!t.disabled){var n=t.textContent.trim(),r=t.value||n,i=t.label||n;""!==r&&e.push({label:i,value:r})}}),this._list=e}document.activeElement===this.input&&this.evaluate()},get selected(){return this.index>-1},get opened(){return this.isOpened},close:function(t){this.opened&&(this.input.setAttribute("aria-expanded","false"),this.ul.setAttribute("hidden",""),this.isOpened=!1,this.index=-1,this.status.setAttribute("hidden",""),this.input.setAttribute("aria-activedescendant",""),i.fire(this.input,"awesomplete-close",t||{}))},open:function(){this.input.setAttribute("aria-expanded","true"),this.ul.removeAttribute("hidden"),this.isOpened=!0,this.status.removeAttribute("hidden"),this.autoFirst&&-1===this.index&&this.goto(0),i.fire(this.input,"awesomplete-open")},destroy:function(){if(i.unbind(this.input,this._events.input),i.unbind(this.input.form,this._events.form),!this.options.container){var t=this.container.parentNode;t.insertBefore(this.input,this.container),t.removeChild(this.container)}this.input.removeAttribute("autocomplete"),this.input.removeAttribute("aria-autocomplete"),this.input.removeAttribute("aria-expanded"),this.input.removeAttribute("aria-controls"),this.input.removeAttribute("aria-owns"),this.input.removeAttribute("role");var n=e.all.indexOf(this);-1!==n&&e.all.splice(n,1)},next:function(){var t=this.ul.children.length;this.goto(this.index<t-1?this.index+1:t?0:-1)},previous:function(){var t=this.ul.children.length,e=this.index-1;this.goto(this.selected&&-1!==e?e:t-1)},goto:function(t){var e=this.ul.children;this.selected&&e[this.index].setAttribute("aria-selected","false"),this.index=t,t>-1&&e.length>0&&(e[t].setAttribute("aria-selected","true"),this.input.setAttribute("aria-activedescendant",this.ul.id+"_item_"+this.index),this.ul.scrollTop=e[t].offsetTop-this.ul.clientHeight+e[t].clientHeight,i.fire(this.input,"awesomplete-highlight",{text:this.suggestions[this.index]}))},select:function(t,e,n){if(t?this.index=i.siblingIndex(t):t=this.ul.children[this.index],t){var r=this.suggestions[this.index];i.fire(this.input,"awesomplete-select",{text:r,origin:e||t,originalEvent:n})&&(this.replace(r),this.close({reason:"select"}),i.fire(this.input,"awesomplete-selectcomplete",{text:r,originalEvent:n}))}},evaluate:function(){var t=this,e=this.input.value;e.length>=this.minChars&&this._list&&this._list.length>0?(this.index=-1,this.ul.innerHTML="",this.suggestions=this._list.map(function(r){return new n(t.data(r,e))}).filter(function(n){return t.filter(n,e)}),!1!==this.sort&&(this.suggestions=this.suggestions.sort(this.sort)),this.suggestions=this.suggestions.slice(0,this.maxItems),this.suggestions.forEach(function(n,r){t.ul.appendChild(t.item(n,e,r))}),0===this.ul.children.length?(this.status.textContent=this.statusNoResults,this.close({reason:"nomatches"})):(this.input.setAttribute("aria-activedescendant",""),this.open(),this.status.textContent=this.statusXResults.replaceAll("{0}",this.ul.children.length))):(this.close({reason:"nomatches"}),this.minChar<=1||e.length>=this.minChars?this.status.textContent=this.statusNoResults:this.status.textContent=this.statusTypeXChar.replaceAll("{0}",this.minChars))}},e.all=[],e.FILTER_CONTAINS=function(t,e){return RegExp(i.regExpEscape(e.trim()),"i").test(t)},e.FILTER_STARTSWITH=function(t,e){return RegExp("^"+i.regExpEscape(e.trim()),"i").test(t)},e.SORT_BYLENGTH=function(t,e){return t.length!==e.length?t.length-e.length:t<e?-1:1},e.CONTAINER=function(t){return i.create("div",{className:"awesomplete",around:t})},e.ITEM=function(t,e,n){var r=""===e.trim()?t:t.replace(RegExp(i.regExpEscape(e.trim()),"gi"),"<mark>$&</mark>");return i.create("li",{innerHTML:r,role:"option","aria-selected":"false",tabindex:"-1",id:"awesomplete_list_"+this.count+"_item_"+n})},e.REPLACE=function(t){this.input.value=t.value},e.DATA=function(t){return t},Object.defineProperty(n.prototype=Object.create(String.prototype),"length",{get:function(){return this.label.length}}),n.prototype.toString=n.prototype.valueOf=function(){return""+this.label};var r=Array.prototype.slice;function i(t,e){return"string"==typeof t?(e||document).querySelector(t):t||null}function o(t,e){return r.call((e||document).querySelectorAll(t))}function a(){o("input.awesomplete").forEach(function(t){new e(t)})}i.create=function(t,e){var n=document.createElement(t);for(var r in e){var o=e[r];if("inside"===r)i(o).appendChild(n);else if("around"===r){var a=i(o);a.parentNode.insertBefore(n,a),n.appendChild(a),null!=a.getAttribute("autofocus")&&a.focus()}else r in n?n[r]=o:n.setAttribute(r,o)}return n},i.bind=function(t,e){if(t)for(var n in e){var r=e[n];n.split(/\s+/).forEach(function(e){t.addEventListener(e,r)})}},i.unbind=function(t,e){if(t)for(var n in e){var r=e[n];n.split(/\s+/).forEach(function(e){t.removeEventListener(e,r)})}},i.fire=function(t,e,n){var r=document.createEvent("HTMLEvents");for(var i in r.initEvent(e,!0,!0),n)r[i]=n[i];return t.dispatchEvent(r)},i.regExpEscape=function(t){return t.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")},i.siblingIndex=function(t){for(var e=0;t=t.previousElementSibling;e++);return e},"undefined"!=typeof self&&(self.Awesomplete=e),"undefined"!=typeof Document&&("loading"!==document.readyState?a():document.addEventListener("DOMContentLoaded",a)),e.$=i,e.$$=o,t.exports&&(t.exports=e)}()},4694(t,e,n){"use strict";function r(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||o(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=o(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return l=t.done,t},e:function(t){u=!0,a=t},f:function(){try{l||null==n.return||n.return()}finally{if(u)throw a}}}}function o(t,e){if(t){if("string"==typeof t)return a(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function l(t,e){var n=u(t,e);return null===n||n===t.length-1?t[0]:t[n+1]}function u(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return null}function c(t,e){var n=u(t,e);return null===n?null:t[n]}function s(t){if(!t)return{};var e,n,r,o=i(t);try{for(o.s();!(r=o.n()).done;){var a=r.value;(void 0===e||e<a)&&(e=a),(void 0===n||n>a)&&(n=a)}}catch(t){o.e(t)}finally{o.f()}return{max:e,min:n}}function f(t,e){var n=t.indexOf(e),i=r(t);return i.splice(n,1),i}function h(){for(var t="",e=0;e<arguments.length;e++){var n=e<0||arguments.length<=e?void 0:arguments[e];0===e?("/"!==n[0]&&(n="/"+n),"/"!==n[n.length-1]&&(n+="/")):e===arguments.length-1?"/"!==n[n.list-1]&&-1===n.indexOf(".")&&(n+="/"):("/"===n[0]&&(n=n.slice(1,n.length-1)),"/"!==n[n.length-1]&&(n+="/")),t+=n}return t}function d(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];for(var r=e[0],i=1;i<e.length;i++)"/"!==e[i][e[i].length-1]?r+="/"+e[i]:r+=e[i];return r}function p(t,e){var n,r=[],o=i(e);try{for(o.s();!(n=o.n()).done;){var a=n.value;r.push(t[a])}}catch(t){o.e(t)}finally{o.f()}return r}function m(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||0===t.length)return t;for(var r=0;r<t.length;r++)for(var i=t.length-1;i>r;i--){var o=e?e(t[i]):t[i],a=e?e(t[i-1]):t[i-1],l=t[i];o<a?n&&(t[i]=t[i-1],t[i-1]=l):o>a&&(n||(t[i]=t[i-1],t[i-1]=l))}return t}function v(t,e){if(0===t.length)return null;var n,r,i=(n=0,r=t.length,n===r?-1:Math.floor(Math.random()*(r-n))+n);return e&&i===e?v(t,e):t[i]}function y(t,e){if(e)for(var n=0;n<t.length;n++)if(e(t[n]))return t.splice(n,1)[0]}n.d(e,{Bd:()=>p,HS:()=>d,I:()=>y,IO:()=>h,Lr:()=>v,P1:()=>f,a7:()=>s,di:()=>m,jH:()=>l,kW:()=>c})},447(t,e,n){"use strict";n.d(e,{WA:()=>p,ZI:()=>m,Zp:()=>f,fq:()=>y,gz:()=>v,uF:()=>h,xP:()=>d});var r=n(6540),i=n(3413),o=n.n(i),a=n(505);function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return u(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var c=function(t){return t[t.common=0]="common",t[t.full=1]="full",t}(c||{});function s(t,e){var n=e===c.common?"card-content":e===c.full?"card-content full":"";return r.createElement("div",{className:"card",style:{}},r.createElement("div",{className:"card-title"},t.self_title?t.self_title:r.createElement("h2",null,t.title),r.createElement("div",{className:"not-select-div"},t.titleCom&&t.titleCom)),r.createElement("div",{className:n},t.children),r.createElement("div",{className:"card-action card-action-bottom-right"},t.rightBottomCom))}function f(t){return s(t,c.common)}function h(t){return s(t,c.full)}function d(t){var e,n,i,l=(0,r.useRef)(null);return r.createElement("div",{className:"card-text"},r.createElement("div",{className:"card-text-context"},null!==(e=t.context)&&void 0!==e?e:t.children),r.createElement("div",{className:"card-text-tip",ref:l,onClick:function(){var e,n;(0,a.lW)(null!==(e=null!==(n=t.tip_context)&&void 0!==n?n:t.context)&&void 0!==e?e:t.children),new(o())({type:"info",text:"复制完成",timeout:1e3,layout:"bottomLeft"}).show()}},null!==(n=null!==(i=t.tip_context)&&void 0!==i?i:t.context)&&void 0!==n?n:t.children))}function p(t){var e,n;return r.createElement("div",{className:"card-text"},r.createElement("div",{className:"card-text-context"},null!==(e=t.context)&&void 0!==e?e:t.children),r.createElement("div",{className:"card-text-tip"},null!==(n=t.context)&&void 0!==n?n:t.children))}function m(t){var e,n;return r.createElement("div",{className:"card floating",onKeyPress:function(e){"Enter"===e.key&&t.confirm_enter&&t.confirm_enter()}},r.createElement("div",{className:"card-title"},r.createElement("h2",null,t.title)),r.createElement("div",{className:"card-content"},t.context&&Array.isArray(t.context)?t.context.map(function(t,e){return r.createElement(r.Fragment,{key:e},t)}):t.context),r.createElement("div",{className:"card-action"},r.createElement("button",{className:"button button--flat button--grey",onClick:t.cancel},null!==(e=t.cancel_t)&&void 0!==e?e:"cancel"),r.createElement("button",{className:"button button--flat",onClick:t.confirm},null!==(n=t.confirm_t)&&void 0!==n?n:"confirm")))}function v(t){return r.createElement("div",{className:"progress-card"},r.createElement("div",{className:"progress-per"},r.createElement("div",{style:{width:"".concat(t.progress,"%")}})))}var y=function(t){var e=l((0,r.useState)("var(--iconTertiary)"),2),n=e[0],i=e[1];(0,r.useEffect)(function(){null==t.ok?null==t.success?null!=t.running&&i("var(--icon-yellow)"):!0===t.success?i("var(--icon-green)"):!1===t.success&&i("var(--icon-red)"):i(t.ok?"var(--icon-green)":"var(--iconTertiary)")},[t]);var o={width:"10px",height:"10px",borderRadius:"50%",backgroundColor:n,display:"inline-block"};return r.createElement("div",{style:o})}},3033(t,e,n){"use strict";n.d(e,{$Z:()=>f,GL:()=>y,Sm:()=>d,U6:()=>v,cA:()=>p,l6:()=>m});var r=n(6540),i=n(5219),o=n.n(i);n(9145);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function u(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return s(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function f(t){var e=(0,r.useRef)(null),n=c(r.useState(""),2),i=n[0],o=n[1];return(0,r.useEffect)(function(){var n=t.value;null==n&&(n=""),e.current.value=n,o(t.value||"")},[t.value]),r.createElement("div",{id:"search",className:"",style:{maxWidth:t.max_width,display:t.not_mobile?"block":void 0}},r.createElement("div",{id:"input"},r.createElement("i",{className:"material-icons"},t.icon),r.createElement("input",{type:"text",ref:e,placeholder:i||t.placeholder,onChange:function(e){t.handleInputChange&&t.handleInputChange(e.target.value,e.target),o(e.target.value)},onKeyPress:function(e){"Enter"===e.key&&t.handleEnterPress&&t.handleEnterPress()}})))}function h(t){var e=(0,r.useRef)(null),n=c(r.useState(""),2),i=n[0],a=n[1],l=c(r.useState("input input--block awesomplete"),2),u=l[0],s=l[1];return(0,r.useEffect)(function(){a(null==t.value?"":t.value),t.focus&&e.current.focus(),t.no_border&&s("".concat(u," input--no_border awesomplete"))},[t.value]),(0,r.useEffect)(function(){if(null!=t.options&&e.current){var n,r=new(o())(e.current,{list:null!==(n=t.options)&&void 0!==n?n:[],minChars:0,autoFirst:!0});e.current.addEventListener("focus",function(){e.current.value="",e.current.dispatchEvent(new Event("input"))});var i=function(n){var r,i,o=null!==(r=n.text.label)&&void 0!==r?r:n.text.value,l=n.text.value;a(o),requestAnimationFrame(function(){e.current.value=o}),null===(i=t.handleInputChange)||void 0===i||i.call(t,l,e.current)};return e.current.addEventListener("awesomplete-selectcomplete",i),function(){var t;null===(t=e.current)||void 0===t||t.removeEventListener("awesomplete-selectcomplete",i),r.destroy()}}},[]),r.createElement(r.Fragment,null,t.placeholderOut&&r.createElement("p",null,t.placeholderOut),r.createElement("div",{style:{display:"flex",alignItems:"center",width:t.width,maxWidth:t.maxWidth}},t.left_placeholder&&r.createElement("div",{style:{flex:"0 0 auto"}},t.left_placeholder),r.createElement("input",{style:{flex:1,minWidth:0},onClick:function(t){t.stopPropagation()},disabled:!!t.disabled,className:u,type:t.type,placeholder:i||t.placeholder,onChange:function(e){t.handleInputChange&&t.handleInputChange(e.target.value,e.target),a(e.target.value)},onKeyPress:function(e){"Enter"===e.key&&t.handlerEnter&&t.handlerEnter(e.target.value)},value:i,ref:e}),t.right_placeholder&&r.createElement("div",{style:{flex:"0 0 auto"}},t.right_placeholder)))}function d(t){return h(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach(function(e){u(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},t))}function p(t){return h({placeholder:t.placeholder,type:"password",handleInputChange:t.handleInputChange,handlerEnter:t.handleEnterPress,maxWidth:t.maxWidth,width:t.width,value:t.value})}function m(t){return r.createElement("div",{style:{display:"flex"}},t.tip&&r.createElement("p",{className:"input input_left "},t.tip),r.createElement("select",{defaultValue:t.defaultValue,value:t.value,style:{width:t.width},disabled:!!t.disabled,className:"input input--block ".concat(t.no_border?"input--no_border":""),onChange:function(e){return t.onChange(e.target.value)}},t.options.map(function(t,e){return r.createElement("option",{key:e,value:t.value},t.title)})))}function v(t){var e;return r.createElement("div",{className:"input_radio_row"},r.createElement("input",{type:"radio",checked:t.selected,name:null!==(e=t.name)&&void 0!==e?e:"common_name",value:t.value,className:"input_radio",onChange:function(){t.onchange&&t.onchange(t.value)}}),t.context)}function y(t){var e,n=c((0,r.useState)(!1),2),i=n[0],o=n[1];return(0,r.useEffect)(function(){o(!!t.selected)},[t.selected]),r.createElement("div",{className:"input_radio_row"},r.createElement("input",{type:"checkbox",disabled:null!==(e=t.is_disable)&&void 0!==e&&e,checked:i,onChange:function(){t.onchange&&t.onchange()}}),t.context)}},7481(t,e,n){"use strict";n.d(e,{S:()=>l,X:()=>a});var r=n(6540);function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function a(t){var e,n=i(r.useState([]),2),o=n[0],a=n[1];return(0,r.useEffect)(function(){t.children?a(Array.isArray(t.children)?t.children:[t.children]):a(t.rows)},[t.rows,t.children]),r.createElement("table",null,r.createElement("thead",null,r.createElement("tr",null,null===(e=t.headers)||void 0===e?void 0:e.map(function(t,e){return r.createElement("th",{key:e},t)}))),r.createElement("tbody",null,o.map(function(e,n){return r.createElement("tr",{key:n,onContextMenu:function(){t.handleContextMenu&&t.handleContextMenu(e)}},e.map(function(n,i){var o;return r.createElement("td",{style:{width:null!==(o=t.width)&&void 0!==o?o:"auto"},key:i,className:i===e.length-1?"small":""},n)}))})))}function l(t){return r.createElement("div",{style:{display:t.isFlex?"flex":"block"}},t.columns.map(function(t,e){return r.createElement("div",{key:e},t)}))}},7209(t,e,n){"use strict";n.r(e),n.d(e,{default:()=>U});var r=n(6540),i=n(5725),o=n(3033),a=n(447),l=n(5997),u=n(4289),c=n(2389),s=n(2042),f=n(4284),h=n(3459);function d(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var u=r&&r.prototype instanceof l?r:l,c=Object.create(u.prototype);return p(c,"_invoke",function(n,r,i){var o,l,u,c=0,s=i||[],f=!1,h={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return o=e,l=0,u=t,h.n=n,a}};function d(n,r){for(l=n,u=r,e=0;!f&&c&&!i&&e<s.length;e++){var i,o=s[e],d=h.p,p=o[2];n>3?(i=p===r)&&(u=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=n<2&&d<o[1])?(l=0,h.v=r,h.n=o[1]):d<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,h.n=p,l=0))}if(i||n>1)return a;throw f=!0,r}return function(i,s,p){if(c>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,p),l=s,u=p;(e=l<2?t:u)||!f;){o||(l?l<3?(l>1&&(h.n=-1),d(l,u)):h.n=u:h.v=u);try{if(c=2,o){if(l||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,l<2&&(l=0)}else 1===l&&(e=o.return)&&e.call(o),l<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),l=1);o=t}else if((e=(f=h.n<0)?u:n.call(r,h))!==a)break}catch(e){o=t,l=1,u=e}finally{c=1}}return{value:e,done:f}}}(n,i,o),!0),c}var a={};function l(){}function u(){}function c(){}e=Object.getPrototypeOf;var s=[][r]?e(e([][r]())):(p(e={},r,function(){return this}),e),f=c.prototype=l.prototype=Object.create(s);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,p(t,i,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=c,p(f,"constructor",c),p(c,"constructor",u),u.displayName="GeneratorFunction",p(c,i,"GeneratorFunction"),p(f),p(f,i,"Generator"),p(f,r,function(){return this}),p(f,"toString",function(){return"[object Generator]"}),(d=function(){return{w:o,m:h}})()}function p(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}p=function(t,e,n,r){function o(e,n){p(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},p(t,e,n,r)}function m(t,e,n,r,i,o,a){try{var l=t[o](a),u=l.value}catch(t){return void n(t)}l.done?e(u):Promise.resolve(u).then(r,i)}function v(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return y(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function b(t){var e=(0,c.Bd)().t,n=v((0,r.useState)(e("毫秒")),2),p=n[0],y=n[1],b=v((0,r.useState)(""),2),g=b[0],E=b[1],w=v((0,r.useState)(""),2),x=w[0],A=w[1],S=v((0,r.useState)(null),2),_=S[0],O=S[1],k=v((0,r.useState)(null),2),C=k[0],j=k[1],N=v((0,r.useState)(Date.now()),2),I=N[0],T=N[1];var P=function(){var t,e=(t=d().m(function t(){var e,n;return d().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,f.Yu.get("sys_time/get");case 1:if((e=t.v).code!==h.m.Success){t.n=3;break}return t.n=2,e.data;case 2:n=t.v,O(n.timestamp),j(n.timezone),T(n.timestamp);case 3:return t.a(2)}},t)}),function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(t){m(o,r,i,a,l,"next",t)}function l(t){m(o,r,i,a,l,"throw",t)}a(void 0)})});return function(){return e.apply(this,arguments)}}();return(0,r.useEffect)(function(){P();var t=setInterval(function(){T(function(t){return t+1e3})},1e3);return function(){return clearInterval(t)}},[]),r.createElement(i.fI,null,r.createElement(i.VP,null,r.createElement(a.Zp,{title:e("时间转换器"),rightBottomCom:r.createElement(l.C3,{text:e("确定"),clickFun:function(){if(g||x){var t=0,e=""!==g&&0!==g;if(e){if(!(0,u.kf)(g))return void(0,s.zN)("must be number !");t=parseInt(g),"分秒"===p&&(t*=1e3)}var n=new Date(e?t:x),r=new Intl.DateTimeFormat("zh-CN",{year:"numeric",month:"short",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).format(n);if(A(r),!g){var i=n.getTime();E("毫秒"===p?i:i/1e3)}}else new Noty({type:"error",text:"不能都为空",timeout:1e3,layout:"bottomLeft"}).show()}})},r.createElement(o.l6,{options:[{title:e("毫秒"),value:"毫秒"},{title:e("分秒"),value:"分秒"}],onChange:function(t){y(t)}}),r.createElement(o.Sm,{placeholder:p,value:g,handleInputChange:function(t){E(t)}}),r.createElement(o.Sm,{placeholder:e("格式化时间"),value:x,handleInputChange:function(t){A(t)}}))),r.createElement(i.VP,null,null!==_&&null!==C&&r.createElement(a.Zp,{title:e("服务器时间")},r.createElement("h1",null,e("时区"),": ",C),r.createElement("h1",null,e("时间"),": ",new Date(I).toLocaleString(navigator.language,{timeZone:C})))))}var g=n(3413),E=n.n(g),w=n(7952),x=n(3029),A=n(8247),S=n(3430);function _(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var u=r&&r.prototype instanceof l?r:l,c=Object.create(u.prototype);return O(c,"_invoke",function(n,r,i){var o,l,u,c=0,s=i||[],f=!1,h={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return o=e,l=0,u=t,h.n=n,a}};function d(n,r){for(l=n,u=r,e=0;!f&&c&&!i&&e<s.length;e++){var i,o=s[e],d=h.p,p=o[2];n>3?(i=p===r)&&(u=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=n<2&&d<o[1])?(l=0,h.v=r,h.n=o[1]):d<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,h.n=p,l=0))}if(i||n>1)return a;throw f=!0,r}return function(i,s,p){if(c>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,p),l=s,u=p;(e=l<2?t:u)||!f;){o||(l?l<3?(l>1&&(h.n=-1),d(l,u)):h.n=u:h.v=u);try{if(c=2,o){if(l||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,l<2&&(l=0)}else 1===l&&(e=o.return)&&e.call(o),l<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),l=1);o=t}else if((e=(f=h.n<0)?u:n.call(r,h))!==a)break}catch(e){o=t,l=1,u=e}finally{c=1}}return{value:e,done:f}}}(n,i,o),!0),c}var a={};function l(){}function u(){}function c(){}e=Object.getPrototypeOf;var s=[][r]?e(e([][r]())):(O(e={},r,function(){return this}),e),f=c.prototype=l.prototype=Object.create(s);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,O(t,i,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=c,O(f,"constructor",c),O(c,"constructor",u),u.displayName="GeneratorFunction",O(c,i,"GeneratorFunction"),O(f),O(f,i,"Generator"),O(f,r,function(){return this}),O(f,"toString",function(){return"[object Generator]"}),(_=function(){return{w:o,m:h}})()}function O(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}O=function(t,e,n,r){function o(e,n){O(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},O(t,e,n,r)}function k(t,e,n,r,i,o,a){try{var l=t[o](a),u=l.value}catch(t){return void n(t)}l.done?e(u):Promise.resolve(u).then(r,i)}function C(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(t){k(o,r,i,a,l,"next",t)}function l(t){k(o,r,i,a,l,"throw",t)}a(void 0)})}}function j(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return N(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function I(t){var e=(0,c.Bd)().t,n=(0,A.MH)().check_user_auth,i=j((0,r.useState)(""),2),a=i[0],u=i[1],s=function(){var t=C(_().m(function t(e){var n;return _().w(function(t){for(;;)switch(t.n){case 0:if(n=e||a){t.n=1;break}return new(E())({type:"error",text:"mac地址不能为空",timeout:1e3,layout:"bottomLeft"}).show(),t.a(2);case 1:return t.n=2,f._U.post("wol/exec",{mac:n});case 2:if(t.v.code===h.m.Success){t.n=3;break}return t.a(2);case 3:new(E())({type:"success",text:"发送唤醒命令成功",timeout:1e3,layout:"bottomLeft"}).show();case 4:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}(),d=function(){var t=C(_().m(function t(){var e;return _().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,f._U.get("wol/tag");case 1:if((e=t.v).code!==h.m.Success){t.n=2;break}return t.a(2,e.data);case 2:return t.a(2,[])}},t)}));return function(){return t.apply(this,arguments)}}(),p=function(){var t=C(_().m(function t(e){return _().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,f._U.post("wol/tag/save",e);case 1:t.v.code!==h.m.Success&&new(E())({type:"error",text:"网络错误",timeout:1e3,layout:"bottomLeft"}).show();case 2:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}(),m=function(){var t=C(_().m(function t(e){return _().w(function(t){for(;;)switch(t.n){case 0:u(e.mac),s(e.mac);case 1:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}();return r.createElement("div",null,r.createElement(w.A,null,r.createElement(l.rA,{icon:"play_arrow",title:e("发送"),onClick:function(){s()}}),r.createElement(o.$Z,{placeholder:e("目标设备mac地址"),icon:"laptop_mac",value:a,handleInputChange:function(t){return u(t)}})),r.createElement(x.N,{have_auth_edit:n(S.oV.wol_proxy_tag_update),getItems:d,save:p,clickItem:m,items:[{key:"name",preName:e("名字")},{key:"mac",preName:"mac"+e("地址")},{key:"color",preName:"color"}]}))}var T,P=n(7481),L=n(7444),F=n(6417),R=n(505);function M(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var u=r&&r.prototype instanceof l?r:l,c=Object.create(u.prototype);return G(c,"_invoke",function(n,r,i){var o,l,u,c=0,s=i||[],f=!1,h={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return o=e,l=0,u=t,h.n=n,a}};function d(n,r){for(l=n,u=r,e=0;!f&&c&&!i&&e<s.length;e++){var i,o=s[e],d=h.p,p=o[2];n>3?(i=p===r)&&(u=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=n<2&&d<o[1])?(l=0,h.v=r,h.n=o[1]):d<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,h.n=p,l=0))}if(i||n>1)return a;throw f=!0,r}return function(i,s,p){if(c>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,p),l=s,u=p;(e=l<2?t:u)||!f;){o||(l?l<3?(l>1&&(h.n=-1),d(l,u)):h.n=u:h.v=u);try{if(c=2,o){if(l||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,l<2&&(l=0)}else 1===l&&(e=o.return)&&e.call(o),l<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),l=1);o=t}else if((e=(f=h.n<0)?u:n.call(r,h))!==a)break}catch(e){o=t,l=1,u=e}finally{c=1}}return{value:e,done:f}}}(n,i,o),!0),c}var a={};function l(){}function u(){}function c(){}e=Object.getPrototypeOf;var s=[][r]?e(e([][r]())):(G(e={},r,function(){return this}),e),f=c.prototype=l.prototype=Object.create(s);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,G(t,i,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=c,G(f,"constructor",c),G(c,"constructor",u),u.displayName="GeneratorFunction",G(c,i,"GeneratorFunction"),G(f),G(f,i,"Generator"),G(f,r,function(){return this}),G(f,"toString",function(){return"[object Generator]"}),(M=function(){return{w:o,m:h}})()}function G(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}G=function(t,e,n,r){function o(e,n){G(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},G(t,e,n,r)}function D(t,e,n,r,i,o,a){try{var l=t[o](a),u=l.value}catch(t){return void n(t)}l.done?e(u):Promise.resolve(u).then(r,i)}function W(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(t){D(o,r,i,a,l,"next",t)}function l(t){D(o,r,i,a,l,"throw",t)}a(void 0)})}}function $(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return B(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function H(){var t=$((0,r.useState)("rsa"),2),e=t[0],n=t[1],u=$((0,r.useState)("pem"),2),d=u[0],p=u[1],m=(0,c.Bd)(),v=m.t,y=(m.i18n,$((0,L.L4)(F.A.confirm),2)),b=(y[0],y[1]),g=$((0,r.useState)(""),2),E=g[0],x=g[1],A=$((0,r.useState)(""),2),S=A[0],_=A[1],O=function(){var t=W(M().m(function t(){var n;return M().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,f.cD.post("generate",{type:e,form:d});case 1:(n=t.v).code===h.m.Success&&(x(n.data.public_key),_(n.data.private_key),T=n.data.home_path);case 2:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),k=function(){var t=W(M().m(function t(n){var r;return M().w(function(t){for(;;)switch(t.n){case 0:if(S&&E){t.n=1;break}return(0,s.zN)("密钥不能为空"),t.a(2);case 1:r="id_"+e,"pub"===n&&(r+=".pub"),b({open:!0,title:v("将覆盖密钥文件"),sub_title:"之前的密钥将作废。 将会作为 ".concat(r,' 文件保存到系统上的"').concat(T,'"目录下,此目录会作为openssh(git)所使用的默认目录。'),handle:function(){var t=W(M().m(function t(){return M().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,f.cD.post("save_openssh",{name:r,context:"pub"===n?E:S});case 1:t.v.code===h.m.Success&&((0,s.LW)("完成"),b({open:!1,handle:null}));case 2:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}()});case 2:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}();return r.createElement(r.Fragment,null,r.createElement(i.xh,null,r.createElement(w.A,null,r.createElement(P.S,{isFlex:!0,columns:[r.createElement(o.l6,{tip:"加密算法",value:e,width:"auto",onChange:function(t){n(t)},options:[{title:v("RSA"),value:"rsa"},{title:v("DSA"),value:"dsa"},{title:v("ECDSA"),value:"ecdsa"}]}),r.createElement(o.l6,{tip:"输出格式",value:d,width:"auto",onChange:function(t){p(t)},options:[{title:v("普通PEM"),value:"pem"},{title:v("opensshPEM"),value:"openssh_pem"}]}),r.createElement(l.rA,{icon:"play_arrow",title:v("生成"),onClick:function(){O()}})]})),r.createElement(i.fI,null,r.createElement(i.VP,null,r.createElement(a.Zp,{title:"公钥",titleCom:r.createElement(l.rA,{title:"复制",icon:"copy_all",onClick:function(){E&&((0,R.lW)(E),(0,s.LW)("完成"))}}),rightBottomCom:"openssh_pem"===d&&r.createElement(l.C3,{text:v("保存到.ssh目录"),clickFun:function(){k("pub")}})},r.createElement("textarea",{className:"input--textarea input--no_border",style:{width:"100%",height:"270px"},onChange:function(t){x(t.target.value)},value:E}))),r.createElement(i.VP,null,r.createElement(a.Zp,{title:"私钥",titleCom:r.createElement(l.rA,{title:"复制",icon:"copy_all",onClick:function(){S&&((0,R.lW)(S),(0,s.LW)("成功"))}}),rightBottomCom:"openssh_pem"===d&&r.createElement(l.C3,{text:v("保存到.ssh目录"),clickFun:function(){k("pri")}})},r.createElement("textarea",{className:"input--textarea input--no_border",style:{width:"100%",height:"270px"},value:S,onChange:function(t){_(t.target.value)}}))))))}function U(t){var e=(0,c.Bd)().t,n=(0,A.MH)().check_user_auth,o=[];return o.push.apply(o,[{index:1,name:e("时间工具"),rto:"timeutil/"},{index:1,name:e("非对称密钥"),rto:"crypto/"}]),n(S.oV.wol_proxy)&&o.push({index:1,name:e("网络唤醒"),rto:"netwol/"}),r.createElement(i.W1,{optionList:o},r.createElement(b,null),r.createElement(H,null),n(S.oV.wol_proxy)&&r.createElement(I,null))}},1028(t,e,n){"use strict";n.d(e,{A:()=>l});var r=n(1601),i=n.n(r),o=n(6314),a=n.n(o)()(i());a.push([t.id,'.awesomplete [hidden] {\n display: none;\n}\n\n.awesomplete .visually-hidden {\n position: absolute;\n clip: rect(0, 0, 0, 0);\n}\n\n.awesomplete {\n display: inline-block;\n position: relative;\n}\n\n.awesomplete > input {\n display: block;\n}\n\n.awesomplete > ul {\n position: absolute;\n left: 0;\n z-index: 1;\n min-width: 100%;\n box-sizing: border-box;\n list-style: none;\n padding: 0;\n margin: 0;\n background: #fff;\n}\n\n.awesomplete > ul:empty {\n display: none;\n}\n\n.awesomplete > ul {\n\tborder-radius: .3em;\n\tmargin: .2em 0 0;\n\tbackground: hsla(0,0%,100%,.9);\n\tbackground: linear-gradient(to bottom right, white, hsla(0,0%,100%,.8));\n\tborder: 1px solid rgba(0,0,0,.3);\n\tbox-shadow: .05em .2em .6em rgba(0,0,0,.2);\n\ttext-shadow: none;\n}\n\n@supports (transform: scale(0)) {\n\t.awesomplete > ul {\n\t\ttransition: .3s cubic-bezier(.4,.2,.5,1.4);\n\t\ttransform-origin: 1.43em -.43em;\n\t}\n\t\n\t.awesomplete > ul[hidden],\n\t.awesomplete > ul:empty {\n\t\topacity: 0;\n\t\ttransform: scale(0);\n\t\tdisplay: block;\n\t\tvisibility: hidden;\n\t\ttransition-timing-function: ease;\n\t}\n}\n\n\t/* Pointer */\n\t.awesomplete > ul:before {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t\ttop: -.43em;\n\t\tleft: 1em;\n\t\twidth: 0; height: 0;\n\t\tpadding: .4em;\n\t\tbackground: white;\n\t\tborder: inherit;\n\t\tborder-right: 0;\n\t\tborder-bottom: 0;\n\t\t-webkit-transform: rotate(45deg);\n\t\ttransform: rotate(45deg);\n\t}\n\n\t.awesomplete > ul > li {\n\t\tposition: relative;\n\t\tpadding: .2em .5em;\n\t\tcursor: pointer;\n\t}\n\t\n\t.awesomplete > ul > li:hover {\n\t\tbackground: hsl(200, 40%, 80%);\n\t\tcolor: black;\n\t}\n\t\n\t.awesomplete > ul > li[aria-selected="true"] {\n\t\tbackground: hsl(205, 40%, 40%);\n\t\tcolor: white;\n\t}\n\t\n\t\t.awesomplete mark {\n\t\t\tbackground: hsl(65, 100%, 50%);\n\t\t}\n\t\t\n\t\t.awesomplete li:hover mark {\n\t\t\tbackground: hsl(68, 100%, 41%);\n\t\t}\n\t\t\n\t\t.awesomplete li[aria-selected="true"] mark {\n\t\t\tbackground: hsl(86, 100%, 21%);\n\t\t\tcolor: inherit;\n\t\t}\n',""]);const l=a},9145(t,e,n){"use strict";var r=n(5072),i=n.n(r),o=n(7825),a=n.n(o),l=n(7659),u=n.n(l),c=n(5056),s=n.n(c),f=n(540),h=n.n(f),d=n(1113),p=n.n(d),m=n(1028),v={};v.styleTagTransform=p(),v.setAttributes=s(),v.insert=u().bind(null,"head"),v.domAPI=a(),v.insertStyleElement=h();i()(m.A,v),m.A&&m.A.locals&&m.A.locals}}]);
1
+ /*! For license information please see 704.16754ee7f765608e9307.js.LICENSE.txt */
2
+ (self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[627,704],{5219(t){!function(){var e=function(t,n){var r=this;e.count=(e.count||0)+1,this.count=e.count,this.isOpened=!1,this.input=i(t),this.input.setAttribute("autocomplete","off"),this.input.setAttribute("aria-autocomplete","list"),this.input.setAttribute("aria-expanded","false"),this.input.setAttribute("aria-controls","awesomplete_list_"+this.count),this.input.setAttribute("aria-owns","awesomplete_list_"+this.count),this.input.setAttribute("role","combobox"),this.options=n=n||{},function(t,e,n){for(var r in e){var i=e[r],o=t.input.getAttribute("data-"+r.toLowerCase());t[r]="number"==typeof i?parseInt(o):!1===i?null!==o:i instanceof Function?null:o,t[r]||0===t[r]||(t[r]=r in n?n[r]:i)}}(this,{minChars:2,maxItems:10,autoFirst:!1,data:e.DATA,filter:e.FILTER_CONTAINS,sort:!1!==n.sort&&e.SORT_BYLENGTH,container:e.CONTAINER,item:e.ITEM,replace:e.REPLACE,tabSelect:!1,listLabel:"Results List",statusNoResults:"No results found",statusXResults:"{0} results found",statusTypeXChar:"Type {0} or more characters for results"},n),this.index=-1,this.container=this.container(t),this.ul=i.create("ul",{hidden:"hidden",role:"listbox",id:"awesomplete_list_"+this.count,inside:this.container,"aria-label":this.listLabel}),this.status=i.create("span",{className:"visually-hidden",role:"status","aria-live":"assertive","aria-atomic":!0,inside:this.container,textContent:""}),this._events={input:{input:this.evaluate.bind(this),blur:this.close.bind(this,{reason:"blur"}),keydown:function(t){var e=t.keyCode;r.opened&&(13===e&&r.selected||9===e&&r.selected&&r.tabSelect?(t.preventDefault(),r.select(void 0,void 0,t)):27===e?r.close({reason:"esc"}):38!==e&&40!==e||(t.preventDefault(),r[38===e?"previous":"next"]()))}},form:{submit:this.close.bind(this,{reason:"submit"})},ul:{mousedown:function(t){t.preventDefault()},click:function(t){var e=t.target;if(e!==this){for(;e&&!/li/i.test(e.nodeName);)e=e.parentNode;e&&0===t.button&&(t.preventDefault(),r.select(e,t.target,t))}}}},i.bind(this.input,this._events.input),i.bind(this.input.form,this._events.form),i.bind(this.ul,this._events.ul),this.input.hasAttribute("list")?(this.list="#"+this.input.getAttribute("list"),this.input.removeAttribute("list")):this.list=this.input.getAttribute("data-list")||n.list||[],e.all.push(this)};function n(t){var e=Array.isArray(t)?{label:t[0],value:t[1]}:"object"==typeof t&&"label"in t&&"value"in t?t:{label:t,value:t};this.label=e.label||e.value,this.value=e.value}e.prototype={set list(t){if(Array.isArray(t))this._list=t;else if("string"==typeof t&&t.indexOf(",")>-1)this._list=t.split(/\s*,\s*/);else if((t=i(t))&&t.children){var e=[];r.apply(t.children).forEach(function(t){if(!t.disabled){var n=t.textContent.trim(),r=t.value||n,i=t.label||n;""!==r&&e.push({label:i,value:r})}}),this._list=e}document.activeElement===this.input&&this.evaluate()},get selected(){return this.index>-1},get opened(){return this.isOpened},close:function(t){this.opened&&(this.input.setAttribute("aria-expanded","false"),this.ul.setAttribute("hidden",""),this.isOpened=!1,this.index=-1,this.status.setAttribute("hidden",""),this.input.setAttribute("aria-activedescendant",""),i.fire(this.input,"awesomplete-close",t||{}))},open:function(){this.input.setAttribute("aria-expanded","true"),this.ul.removeAttribute("hidden"),this.isOpened=!0,this.status.removeAttribute("hidden"),this.autoFirst&&-1===this.index&&this.goto(0),i.fire(this.input,"awesomplete-open")},destroy:function(){if(i.unbind(this.input,this._events.input),i.unbind(this.input.form,this._events.form),!this.options.container){var t=this.container.parentNode;t.insertBefore(this.input,this.container),t.removeChild(this.container)}this.input.removeAttribute("autocomplete"),this.input.removeAttribute("aria-autocomplete"),this.input.removeAttribute("aria-expanded"),this.input.removeAttribute("aria-controls"),this.input.removeAttribute("aria-owns"),this.input.removeAttribute("role");var n=e.all.indexOf(this);-1!==n&&e.all.splice(n,1)},next:function(){var t=this.ul.children.length;this.goto(this.index<t-1?this.index+1:t?0:-1)},previous:function(){var t=this.ul.children.length,e=this.index-1;this.goto(this.selected&&-1!==e?e:t-1)},goto:function(t){var e=this.ul.children;this.selected&&e[this.index].setAttribute("aria-selected","false"),this.index=t,t>-1&&e.length>0&&(e[t].setAttribute("aria-selected","true"),this.input.setAttribute("aria-activedescendant",this.ul.id+"_item_"+this.index),this.ul.scrollTop=e[t].offsetTop-this.ul.clientHeight+e[t].clientHeight,i.fire(this.input,"awesomplete-highlight",{text:this.suggestions[this.index]}))},select:function(t,e,n){if(t?this.index=i.siblingIndex(t):t=this.ul.children[this.index],t){var r=this.suggestions[this.index];i.fire(this.input,"awesomplete-select",{text:r,origin:e||t,originalEvent:n})&&(this.replace(r),this.close({reason:"select"}),i.fire(this.input,"awesomplete-selectcomplete",{text:r,originalEvent:n}))}},evaluate:function(){var t=this,e=this.input.value;e.length>=this.minChars&&this._list&&this._list.length>0?(this.index=-1,this.ul.innerHTML="",this.suggestions=this._list.map(function(r){return new n(t.data(r,e))}).filter(function(n){return t.filter(n,e)}),!1!==this.sort&&(this.suggestions=this.suggestions.sort(this.sort)),this.suggestions=this.suggestions.slice(0,this.maxItems),this.suggestions.forEach(function(n,r){t.ul.appendChild(t.item(n,e,r))}),0===this.ul.children.length?(this.status.textContent=this.statusNoResults,this.close({reason:"nomatches"})):(this.input.setAttribute("aria-activedescendant",""),this.open(),this.status.textContent=this.statusXResults.replaceAll("{0}",this.ul.children.length))):(this.close({reason:"nomatches"}),this.minChar<=1||e.length>=this.minChars?this.status.textContent=this.statusNoResults:this.status.textContent=this.statusTypeXChar.replaceAll("{0}",this.minChars))}},e.all=[],e.FILTER_CONTAINS=function(t,e){return RegExp(i.regExpEscape(e.trim()),"i").test(t)},e.FILTER_STARTSWITH=function(t,e){return RegExp("^"+i.regExpEscape(e.trim()),"i").test(t)},e.SORT_BYLENGTH=function(t,e){return t.length!==e.length?t.length-e.length:t<e?-1:1},e.CONTAINER=function(t){return i.create("div",{className:"awesomplete",around:t})},e.ITEM=function(t,e,n){var r=""===e.trim()?t:t.replace(RegExp(i.regExpEscape(e.trim()),"gi"),"<mark>$&</mark>");return i.create("li",{innerHTML:r,role:"option","aria-selected":"false",tabindex:"-1",id:"awesomplete_list_"+this.count+"_item_"+n})},e.REPLACE=function(t){this.input.value=t.value},e.DATA=function(t){return t},Object.defineProperty(n.prototype=Object.create(String.prototype),"length",{get:function(){return this.label.length}}),n.prototype.toString=n.prototype.valueOf=function(){return""+this.label};var r=Array.prototype.slice;function i(t,e){return"string"==typeof t?(e||document).querySelector(t):t||null}function o(t,e){return r.call((e||document).querySelectorAll(t))}function a(){o("input.awesomplete").forEach(function(t){new e(t)})}i.create=function(t,e){var n=document.createElement(t);for(var r in e){var o=e[r];if("inside"===r)i(o).appendChild(n);else if("around"===r){var a=i(o);a.parentNode.insertBefore(n,a),n.appendChild(a),null!=a.getAttribute("autofocus")&&a.focus()}else r in n?n[r]=o:n.setAttribute(r,o)}return n},i.bind=function(t,e){if(t)for(var n in e){var r=e[n];n.split(/\s+/).forEach(function(e){t.addEventListener(e,r)})}},i.unbind=function(t,e){if(t)for(var n in e){var r=e[n];n.split(/\s+/).forEach(function(e){t.removeEventListener(e,r)})}},i.fire=function(t,e,n){var r=document.createEvent("HTMLEvents");for(var i in r.initEvent(e,!0,!0),n)r[i]=n[i];return t.dispatchEvent(r)},i.regExpEscape=function(t){return t.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")},i.siblingIndex=function(t){for(var e=0;t=t.previousElementSibling;e++);return e},"undefined"!=typeof self&&(self.Awesomplete=e),"undefined"!=typeof Document&&("loading"!==document.readyState?a():document.addEventListener("DOMContentLoaded",a)),e.$=i,e.$$=o,t.exports&&(t.exports=e)}()},4694(t,e,n){"use strict";function r(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||o(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=o(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return l=t.done,t},e:function(t){u=!0,a=t},f:function(){try{l||null==n.return||n.return()}finally{if(u)throw a}}}}function o(t,e){if(t){if("string"==typeof t)return a(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function l(t,e){var n=u(t,e);return null===n||n===t.length-1?t[0]:t[n+1]}function u(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return null}function c(t,e){var n=u(t,e);return null===n?null:t[n]}function s(t){if(!t)return{};var e,n,r,o=i(t);try{for(o.s();!(r=o.n()).done;){var a=r.value;(void 0===e||e<a)&&(e=a),(void 0===n||n>a)&&(n=a)}}catch(t){o.e(t)}finally{o.f()}return{max:e,min:n}}function f(t,e){var n=t.indexOf(e),i=r(t);return i.splice(n,1),i}function h(){for(var t="",e=0;e<arguments.length;e++){var n=e<0||arguments.length<=e?void 0:arguments[e];0===e?("/"!==n[0]&&(n="/"+n),"/"!==n[n.length-1]&&(n+="/")):e===arguments.length-1?"/"!==n[n.list-1]&&-1===n.indexOf(".")&&(n+="/"):("/"===n[0]&&(n=n.slice(1,n.length-1)),"/"!==n[n.length-1]&&(n+="/")),t+=n}return t}function d(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];for(var r=e[0],i=1;i<e.length;i++)"/"!==e[i][e[i].length-1]?r+="/"+e[i]:r+=e[i];return r}function p(t,e){var n,r=[],o=i(e);try{for(o.s();!(n=o.n()).done;){var a=n.value;r.push(t[a])}}catch(t){o.e(t)}finally{o.f()}return r}function m(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||0===t.length)return t;for(var r=0;r<t.length;r++)for(var i=t.length-1;i>r;i--){var o=e?e(t[i]):t[i],a=e?e(t[i-1]):t[i-1],l=t[i];o<a?n&&(t[i]=t[i-1],t[i-1]=l):o>a&&(n||(t[i]=t[i-1],t[i-1]=l))}return t}function v(t,e){if(0===t.length)return null;var n,r,i=(n=0,r=t.length,n===r?-1:Math.floor(Math.random()*(r-n))+n);return e&&i===e?v(t,e):t[i]}function y(t,e){if(e)for(var n=0;n<t.length;n++)if(e(t[n]))return t.splice(n,1)[0]}n.d(e,{Bd:()=>p,HS:()=>d,I:()=>y,IO:()=>h,Lr:()=>v,P1:()=>f,a7:()=>s,di:()=>m,jH:()=>l,kW:()=>c})},447(t,e,n){"use strict";n.d(e,{WA:()=>p,ZI:()=>m,Zp:()=>f,fq:()=>y,gz:()=>v,uF:()=>h,xP:()=>d});var r=n(6540),i=n(3413),o=n.n(i),a=n(505);function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return u(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var c=function(t){return t[t.common=0]="common",t[t.full=1]="full",t}(c||{});function s(t,e){var n=e===c.common?"card-content":e===c.full?"card-content full":"";return r.createElement("div",{className:"card",style:{}},r.createElement("div",{className:"card-title"},t.self_title?t.self_title:r.createElement("h2",null,t.title),r.createElement("div",{className:"not-select-div"},t.titleCom&&t.titleCom)),r.createElement("div",{className:n},t.children),r.createElement("div",{className:"card-action card-action-bottom-right"},t.rightBottomCom))}function f(t){return s(t,c.common)}function h(t){return s(t,c.full)}function d(t){var e,n,i,l=(0,r.useRef)(null);return r.createElement("div",{className:"card-text"},r.createElement("div",{className:"card-text-context"},null!==(e=t.context)&&void 0!==e?e:t.children),r.createElement("div",{className:"card-text-tip",ref:l,onClick:function(){var e,n;(0,a.lW)(null!==(e=null!==(n=t.tip_context)&&void 0!==n?n:t.context)&&void 0!==e?e:t.children),new(o())({type:"info",text:"复制完成",timeout:1e3,layout:"bottomLeft"}).show()}},null!==(n=null!==(i=t.tip_context)&&void 0!==i?i:t.context)&&void 0!==n?n:t.children))}function p(t){var e,n;return r.createElement("div",{className:"card-text"},r.createElement("div",{className:"card-text-context"},null!==(e=t.context)&&void 0!==e?e:t.children),r.createElement("div",{className:"card-text-tip"},null!==(n=t.context)&&void 0!==n?n:t.children))}function m(t){var e,n;return r.createElement("div",{className:"card floating",onKeyPress:function(e){"Enter"===e.key&&t.confirm_enter&&t.confirm_enter()}},r.createElement("div",{className:"card-title"},r.createElement("h2",null,t.title)),r.createElement("div",{className:"card-content"},t.context&&Array.isArray(t.context)?t.context.map(function(t,e){return r.createElement(r.Fragment,{key:e},t)}):t.context),r.createElement("div",{className:"card-action"},r.createElement("button",{className:"button button--flat button--grey",onClick:t.cancel},null!==(e=t.cancel_t)&&void 0!==e?e:"cancel"),r.createElement("button",{className:"button button--flat",onClick:t.confirm},null!==(n=t.confirm_t)&&void 0!==n?n:"confirm")))}function v(t){return r.createElement("div",{className:"progress-card"},r.createElement("div",{className:"progress-per"},r.createElement("div",{style:{width:"".concat(t.progress,"%")}})))}var y=function(t){var e=l((0,r.useState)("var(--iconTertiary)"),2),n=e[0],i=e[1];(0,r.useEffect)(function(){null==t.ok?null==t.success?null!=t.running&&i("var(--icon-yellow)"):!0===t.success?i("var(--icon-green)"):!1===t.success&&i("var(--icon-red)"):i(t.ok?"var(--icon-green)":"var(--iconTertiary)")},[t]);var o={width:"10px",height:"10px",borderRadius:"50%",backgroundColor:n,display:"inline-block"};return r.createElement("div",{style:o})}},3033(t,e,n){"use strict";n.d(e,{$Z:()=>f,GL:()=>y,Sm:()=>d,U6:()=>v,cA:()=>p,l6:()=>m});var r=n(6540),i=n(5219),o=n.n(i);n(9145);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function u(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return s(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function f(t){var e=(0,r.useRef)(null),n=c(r.useState(""),2),i=n[0],o=n[1];return(0,r.useEffect)(function(){var n=t.value;null==n&&(n=""),e.current.value=n,o(t.value||"")},[t.value]),r.createElement("div",{id:"search",className:"",style:{maxWidth:t.max_width,display:t.not_mobile?"block":void 0}},r.createElement("div",{id:"input"},r.createElement("i",{className:"material-icons"},t.icon),r.createElement("input",{type:"text",ref:e,placeholder:i||t.placeholder,onChange:function(e){t.handleInputChange&&t.handleInputChange(e.target.value,e.target),o(e.target.value)},onKeyPress:function(e){"Enter"===e.key&&t.handleEnterPress&&t.handleEnterPress()}})))}function h(t){var e=(0,r.useRef)(null),n=c(r.useState(""),2),i=n[0],a=n[1],l=c(r.useState("input input--block awesomplete"),2),u=l[0],s=l[1];return(0,r.useEffect)(function(){a(null==t.value?"":t.value),t.focus&&e.current.focus(),t.no_border&&s("".concat(u," input--no_border awesomplete"))},[t.value]),(0,r.useEffect)(function(){if(null!=t.options&&e.current){var n,r=new(o())(e.current,{list:null!==(n=t.options)&&void 0!==n?n:[],minChars:0,autoFirst:!0});e.current.addEventListener("focus",function(){e.current.value="",e.current.dispatchEvent(new Event("input"))});var i=function(n){var r,i,o=null!==(r=n.text.label)&&void 0!==r?r:n.text.value,l=n.text.value;a(o),requestAnimationFrame(function(){e.current.value=o}),null===(i=t.handleInputChange)||void 0===i||i.call(t,l,e.current)};return e.current.addEventListener("awesomplete-selectcomplete",i),function(){var t;null===(t=e.current)||void 0===t||t.removeEventListener("awesomplete-selectcomplete",i),r.destroy()}}},[]),r.createElement(r.Fragment,null,t.placeholderOut&&r.createElement("p",null,t.placeholderOut),r.createElement("div",{style:{display:"flex",alignItems:"center",width:t.width,maxWidth:t.maxWidth}},t.left_placeholder&&r.createElement("div",{style:{flex:"0 0 auto"}},t.left_placeholder),r.createElement("input",{style:{flex:1,minWidth:0},onClick:function(t){t.stopPropagation()},disabled:!!t.disabled,className:u,type:t.type,placeholder:i||t.placeholder,onChange:function(e){t.handleInputChange&&t.handleInputChange(e.target.value,e.target),a(e.target.value)},onKeyPress:function(e){"Enter"===e.key&&t.handlerEnter&&t.handlerEnter(e.target.value)},value:i,ref:e}),t.right_placeholder&&r.createElement("div",{style:{flex:"0 0 auto"}},t.right_placeholder)))}function d(t){return h(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach(function(e){u(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},t))}function p(t){return h({placeholder:t.placeholder,type:"password",handleInputChange:t.handleInputChange,handlerEnter:t.handleEnterPress,maxWidth:t.maxWidth,width:t.width,value:t.value})}function m(t){return r.createElement("div",{style:{display:"flex"}},t.tip&&r.createElement("p",{className:"input input_left "},t.tip),r.createElement("select",{defaultValue:t.defaultValue,value:t.value,style:{width:t.width},disabled:!!t.disabled,className:"input input--block ".concat(t.no_border?"input--no_border":""),onChange:function(e){return t.onChange(e.target.value)}},t.options.map(function(t,e){return r.createElement("option",{key:e,value:t.value},t.title)})))}function v(t){var e;return r.createElement("div",{className:"input_radio_row"},r.createElement("input",{type:"radio",checked:t.selected,name:null!==(e=t.name)&&void 0!==e?e:"common_name",value:t.value,className:"input_radio",onChange:function(){t.onchange&&t.onchange(t.value)}}),t.context)}function y(t){var e,n=c((0,r.useState)(!1),2),i=n[0],o=n[1];return(0,r.useEffect)(function(){o(!!t.selected)},[t.selected]),r.createElement("div",{className:"input_radio_row"},r.createElement("input",{type:"checkbox",disabled:null!==(e=t.is_disable)&&void 0!==e&&e,checked:i,onChange:function(){t.onchange&&t.onchange()}}),t.context)}},7481(t,e,n){"use strict";n.d(e,{S:()=>l,X:()=>a});var r=n(6540);function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function a(t){var e,n=i(r.useState([]),2),o=n[0],a=n[1];return(0,r.useEffect)(function(){t.children?a(Array.isArray(t.children)?t.children:[t.children]):a(t.rows)},[t.rows,t.children]),r.createElement("table",null,r.createElement("thead",null,r.createElement("tr",null,null===(e=t.headers)||void 0===e?void 0:e.map(function(t,e){return r.createElement("th",{key:e},t)}))),r.createElement("tbody",null,o.map(function(e,n){return r.createElement("tr",{key:n,onContextMenu:function(){t.handleContextMenu&&t.handleContextMenu(e)}},e.map(function(n,i){var o;return r.createElement("td",{style:{width:null!==(o=t.width)&&void 0!==o?o:"auto"},key:i,className:i===e.length-1?"small":""},n)}))})))}function l(t){return r.createElement("div",{style:{display:t.isFlex?"flex":"block"}},t.columns.map(function(t,e){return r.createElement("div",{key:e},t)}))}},7209(t,e,n){"use strict";n.r(e),n.d(e,{default:()=>U});var r=n(6540),i=n(5725),o=n(3033),a=n(447),l=n(5997),u=n(4289),c=n(2389),s=n(2042),f=n(4284),h=n(3459);function d(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var u=r&&r.prototype instanceof l?r:l,c=Object.create(u.prototype);return p(c,"_invoke",function(n,r,i){var o,l,u,c=0,s=i||[],f=!1,h={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return o=e,l=0,u=t,h.n=n,a}};function d(n,r){for(l=n,u=r,e=0;!f&&c&&!i&&e<s.length;e++){var i,o=s[e],d=h.p,p=o[2];n>3?(i=p===r)&&(u=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=n<2&&d<o[1])?(l=0,h.v=r,h.n=o[1]):d<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,h.n=p,l=0))}if(i||n>1)return a;throw f=!0,r}return function(i,s,p){if(c>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,p),l=s,u=p;(e=l<2?t:u)||!f;){o||(l?l<3?(l>1&&(h.n=-1),d(l,u)):h.n=u:h.v=u);try{if(c=2,o){if(l||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,l<2&&(l=0)}else 1===l&&(e=o.return)&&e.call(o),l<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),l=1);o=t}else if((e=(f=h.n<0)?u:n.call(r,h))!==a)break}catch(e){o=t,l=1,u=e}finally{c=1}}return{value:e,done:f}}}(n,i,o),!0),c}var a={};function l(){}function u(){}function c(){}e=Object.getPrototypeOf;var s=[][r]?e(e([][r]())):(p(e={},r,function(){return this}),e),f=c.prototype=l.prototype=Object.create(s);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,p(t,i,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=c,p(f,"constructor",c),p(c,"constructor",u),u.displayName="GeneratorFunction",p(c,i,"GeneratorFunction"),p(f),p(f,i,"Generator"),p(f,r,function(){return this}),p(f,"toString",function(){return"[object Generator]"}),(d=function(){return{w:o,m:h}})()}function p(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}p=function(t,e,n,r){function o(e,n){p(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},p(t,e,n,r)}function m(t,e,n,r,i,o,a){try{var l=t[o](a),u=l.value}catch(t){return void n(t)}l.done?e(u):Promise.resolve(u).then(r,i)}function v(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return y(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function b(t){var e=(0,c.Bd)().t,n=v((0,r.useState)(e("毫秒")),2),p=n[0],y=n[1],b=v((0,r.useState)(""),2),g=b[0],E=b[1],w=v((0,r.useState)(""),2),x=w[0],A=w[1],S=v((0,r.useState)(null),2),_=S[0],O=S[1],k=v((0,r.useState)(null),2),C=k[0],j=k[1],N=v((0,r.useState)(Date.now()),2),I=N[0],T=N[1];var P=function(){var t,e=(t=d().m(function t(){var e,n;return d().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,f.Yu.get("sys_time/get");case 1:if((e=t.v).code!==h.m.Success){t.n=3;break}return t.n=2,e.data;case 2:n=t.v,O(n.timestamp),j(n.timezone),T(n.timestamp);case 3:return t.a(2)}},t)}),function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(t){m(o,r,i,a,l,"next",t)}function l(t){m(o,r,i,a,l,"throw",t)}a(void 0)})});return function(){return e.apply(this,arguments)}}();return(0,r.useEffect)(function(){P();var t=setInterval(function(){T(function(t){return t+1e3})},1e3);return function(){return clearInterval(t)}},[]),r.createElement(i.fI,null,r.createElement(i.VP,null,r.createElement(a.Zp,{title:e("时间转换器"),rightBottomCom:r.createElement(l.C3,{text:e("确定"),clickFun:function(){if(g||x){var t=0,e=""!==g&&0!==g;if(e){if(!(0,u.kf)(g))return void(0,s.zN)("must be number !");t=parseInt(g),"分秒"===p&&(t*=1e3)}var n=new Date(e?t:x),r=new Intl.DateTimeFormat("zh-CN",{year:"numeric",month:"short",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).format(n);if(A(r),!g){var i=n.getTime();E("毫秒"===p?i:i/1e3)}}else new Noty({type:"error",text:"不能都为空",timeout:1e3,layout:"bottomLeft"}).show()}})},r.createElement(o.l6,{options:[{title:e("毫秒"),value:"毫秒"},{title:e("分秒"),value:"分秒"}],onChange:function(t){y(t)}}),r.createElement(o.Sm,{placeholder:p,value:g,handleInputChange:function(t){E(t)}}),r.createElement(o.Sm,{placeholder:e("格式化时间"),value:x,handleInputChange:function(t){A(t)}}))),r.createElement(i.VP,null,null!==_&&null!==C&&r.createElement(a.Zp,{title:e("服务器时间")},r.createElement("h1",null,e("时区"),": ",C),r.createElement("h1",null,e("时间"),": ",new Date(I).toLocaleString(navigator.language,{timeZone:C})))))}var g=n(3413),E=n.n(g),w=n(7952),x=n(3029),A=n(8247),S=n(3430);function _(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var u=r&&r.prototype instanceof l?r:l,c=Object.create(u.prototype);return O(c,"_invoke",function(n,r,i){var o,l,u,c=0,s=i||[],f=!1,h={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return o=e,l=0,u=t,h.n=n,a}};function d(n,r){for(l=n,u=r,e=0;!f&&c&&!i&&e<s.length;e++){var i,o=s[e],d=h.p,p=o[2];n>3?(i=p===r)&&(u=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=n<2&&d<o[1])?(l=0,h.v=r,h.n=o[1]):d<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,h.n=p,l=0))}if(i||n>1)return a;throw f=!0,r}return function(i,s,p){if(c>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,p),l=s,u=p;(e=l<2?t:u)||!f;){o||(l?l<3?(l>1&&(h.n=-1),d(l,u)):h.n=u:h.v=u);try{if(c=2,o){if(l||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,l<2&&(l=0)}else 1===l&&(e=o.return)&&e.call(o),l<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),l=1);o=t}else if((e=(f=h.n<0)?u:n.call(r,h))!==a)break}catch(e){o=t,l=1,u=e}finally{c=1}}return{value:e,done:f}}}(n,i,o),!0),c}var a={};function l(){}function u(){}function c(){}e=Object.getPrototypeOf;var s=[][r]?e(e([][r]())):(O(e={},r,function(){return this}),e),f=c.prototype=l.prototype=Object.create(s);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,O(t,i,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=c,O(f,"constructor",c),O(c,"constructor",u),u.displayName="GeneratorFunction",O(c,i,"GeneratorFunction"),O(f),O(f,i,"Generator"),O(f,r,function(){return this}),O(f,"toString",function(){return"[object Generator]"}),(_=function(){return{w:o,m:h}})()}function O(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}O=function(t,e,n,r){function o(e,n){O(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},O(t,e,n,r)}function k(t,e,n,r,i,o,a){try{var l=t[o](a),u=l.value}catch(t){return void n(t)}l.done?e(u):Promise.resolve(u).then(r,i)}function C(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(t){k(o,r,i,a,l,"next",t)}function l(t){k(o,r,i,a,l,"throw",t)}a(void 0)})}}function j(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return N(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function I(t){var e=(0,c.Bd)().t,n=(0,A.MH)().check_user_auth,i=j((0,r.useState)(""),2),a=i[0],u=i[1],s=function(){var t=C(_().m(function t(e){var n;return _().w(function(t){for(;;)switch(t.n){case 0:if(n=e||a){t.n=1;break}return new(E())({type:"error",text:"mac地址不能为空",timeout:1e3,layout:"bottomLeft"}).show(),t.a(2);case 1:return t.n=2,f._U.post("wol/exec",{mac:n});case 2:if(t.v.code===h.m.Success){t.n=3;break}return t.a(2);case 3:new(E())({type:"success",text:"发送唤醒命令成功",timeout:1e3,layout:"bottomLeft"}).show();case 4:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}(),d=function(){var t=C(_().m(function t(){var e;return _().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,f._U.get("wol/tag");case 1:if((e=t.v).code!==h.m.Success){t.n=2;break}return t.a(2,e.data);case 2:return t.a(2,[])}},t)}));return function(){return t.apply(this,arguments)}}(),p=function(){var t=C(_().m(function t(e){return _().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,f._U.post("wol/tag/save",e);case 1:t.v.code!==h.m.Success&&new(E())({type:"error",text:"网络错误",timeout:1e3,layout:"bottomLeft"}).show();case 2:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}(),m=function(){var t=C(_().m(function t(e){return _().w(function(t){for(;;)switch(t.n){case 0:u(e.mac),s(e.mac);case 1:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}();return r.createElement("div",null,r.createElement(w.A,null,r.createElement(l.rA,{icon:"play_arrow",title:e("发送"),onClick:function(){s()}}),r.createElement(o.$Z,{placeholder:e("目标设备mac地址"),icon:"laptop_mac",value:a,handleInputChange:function(t){return u(t)}})),r.createElement(x.N,{have_auth_edit:n(S.oV.wol_proxy_tag_update),getItems:d,save:p,clickItem:m,items:[{key:"name",preName:e("名字")},{key:"mac",preName:"mac"+e("地址")},{key:"color",preName:"color"}]}))}var T,P=n(7481),L=n(7444),F=n(6417),R=n(505);function M(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var u=r&&r.prototype instanceof l?r:l,c=Object.create(u.prototype);return G(c,"_invoke",function(n,r,i){var o,l,u,c=0,s=i||[],f=!1,h={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return o=e,l=0,u=t,h.n=n,a}};function d(n,r){for(l=n,u=r,e=0;!f&&c&&!i&&e<s.length;e++){var i,o=s[e],d=h.p,p=o[2];n>3?(i=p===r)&&(u=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=n<2&&d<o[1])?(l=0,h.v=r,h.n=o[1]):d<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,h.n=p,l=0))}if(i||n>1)return a;throw f=!0,r}return function(i,s,p){if(c>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,p),l=s,u=p;(e=l<2?t:u)||!f;){o||(l?l<3?(l>1&&(h.n=-1),d(l,u)):h.n=u:h.v=u);try{if(c=2,o){if(l||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,l<2&&(l=0)}else 1===l&&(e=o.return)&&e.call(o),l<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),l=1);o=t}else if((e=(f=h.n<0)?u:n.call(r,h))!==a)break}catch(e){o=t,l=1,u=e}finally{c=1}}return{value:e,done:f}}}(n,i,o),!0),c}var a={};function l(){}function u(){}function c(){}e=Object.getPrototypeOf;var s=[][r]?e(e([][r]())):(G(e={},r,function(){return this}),e),f=c.prototype=l.prototype=Object.create(s);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,G(t,i,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=c,G(f,"constructor",c),G(c,"constructor",u),u.displayName="GeneratorFunction",G(c,i,"GeneratorFunction"),G(f),G(f,i,"Generator"),G(f,r,function(){return this}),G(f,"toString",function(){return"[object Generator]"}),(M=function(){return{w:o,m:h}})()}function G(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}G=function(t,e,n,r){function o(e,n){G(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},G(t,e,n,r)}function D(t,e,n,r,i,o,a){try{var l=t[o](a),u=l.value}catch(t){return void n(t)}l.done?e(u):Promise.resolve(u).then(r,i)}function W(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(t){D(o,r,i,a,l,"next",t)}function l(t){D(o,r,i,a,l,"throw",t)}a(void 0)})}}function $(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return B(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function H(){var t=$((0,r.useState)("rsa"),2),e=t[0],n=t[1],u=$((0,r.useState)("pem"),2),d=u[0],p=u[1],m=(0,c.Bd)(),v=m.t,y=(m.i18n,$((0,L.L4)(F.A.confirm),2)),b=(y[0],y[1]),g=$((0,r.useState)(""),2),E=g[0],x=g[1],A=$((0,r.useState)(""),2),S=A[0],_=A[1],O=function(){var t=W(M().m(function t(){var n;return M().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,f.cD.post("generate",{type:e,form:d});case 1:(n=t.v).code===h.m.Success&&(x(n.data.public_key),_(n.data.private_key),T=n.data.home_path);case 2:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),k=function(){var t=W(M().m(function t(n){var r;return M().w(function(t){for(;;)switch(t.n){case 0:if(S&&E){t.n=1;break}return(0,s.zN)("密钥不能为空"),t.a(2);case 1:r="id_"+e,"pub"===n&&(r+=".pub"),b({open:!0,title:v("将覆盖密钥文件"),sub_title:"之前的密钥将作废。 将会作为 ".concat(r,' 文件保存到系统上的"').concat(T,'"目录下,此目录会作为openssh(git)所使用的默认目录。'),handle:function(){var t=W(M().m(function t(){return M().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,f.cD.post("save_openssh",{name:r,context:"pub"===n?E:S});case 1:t.v.code===h.m.Success&&((0,s.LW)("完成"),b({open:!1,handle:null}));case 2:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}()});case 2:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}();return r.createElement(r.Fragment,null,r.createElement(i.xh,null,r.createElement(w.A,null,r.createElement(P.S,{isFlex:!0,columns:[r.createElement(o.l6,{tip:"加密算法",value:e,width:"auto",onChange:function(t){n(t)},options:[{title:v("RSA"),value:"rsa"},{title:v("DSA"),value:"dsa"},{title:v("ECDSA"),value:"ecdsa"}]}),r.createElement(o.l6,{tip:"输出格式",value:d,width:"auto",onChange:function(t){p(t)},options:[{title:v("普通PEM"),value:"pem"},{title:v("opensshPEM"),value:"openssh_pem"}]}),r.createElement(l.rA,{icon:"play_arrow",title:v("生成"),onClick:function(){O()}})]})),r.createElement(i.fI,null,r.createElement(i.VP,null,r.createElement(a.Zp,{title:"公钥",titleCom:r.createElement(l.rA,{title:"复制",icon:"copy_all",onClick:function(){E&&((0,R.lW)(E),(0,s.LW)("完成"))}}),rightBottomCom:"openssh_pem"===d&&r.createElement(l.C3,{text:v("保存到.ssh目录"),clickFun:function(){k("pub")}})},r.createElement("textarea",{className:"input--textarea input--no_border",style:{width:"100%",height:"270px"},onChange:function(t){x(t.target.value)},value:E}))),r.createElement(i.VP,null,r.createElement(a.Zp,{title:"私钥",titleCom:r.createElement(l.rA,{title:"复制",icon:"copy_all",onClick:function(){S&&((0,R.lW)(S),(0,s.LW)("成功"))}}),rightBottomCom:"openssh_pem"===d&&r.createElement(l.C3,{text:v("保存到.ssh目录"),clickFun:function(){k("pri")}})},r.createElement("textarea",{className:"input--textarea input--no_border",style:{width:"100%",height:"270px"},value:S,onChange:function(t){_(t.target.value)}}))))))}function U(t){var e=(0,c.Bd)().t,n=(0,A.MH)().check_user_auth,o=[];return o.push.apply(o,[{index:1,name:e("时间工具"),rto:"timeutil/",component:r.createElement(b,null)},{index:1,name:e("非对称密钥"),rto:"crypto/",component:r.createElement(H,null)}]),n(S.oV.wol_proxy)&&o.push({index:1,name:e("网络唤醒"),rto:"netwol/",component:r.createElement(I,null)}),r.createElement(i.W1,{optionList:o})}},1028(t,e,n){"use strict";n.d(e,{A:()=>l});var r=n(1601),i=n.n(r),o=n(6314),a=n.n(o)()(i());a.push([t.id,'.awesomplete [hidden] {\n display: none;\n}\n\n.awesomplete .visually-hidden {\n position: absolute;\n clip: rect(0, 0, 0, 0);\n}\n\n.awesomplete {\n display: inline-block;\n position: relative;\n}\n\n.awesomplete > input {\n display: block;\n}\n\n.awesomplete > ul {\n position: absolute;\n left: 0;\n z-index: 1;\n min-width: 100%;\n box-sizing: border-box;\n list-style: none;\n padding: 0;\n margin: 0;\n background: #fff;\n}\n\n.awesomplete > ul:empty {\n display: none;\n}\n\n.awesomplete > ul {\n\tborder-radius: .3em;\n\tmargin: .2em 0 0;\n\tbackground: hsla(0,0%,100%,.9);\n\tbackground: linear-gradient(to bottom right, white, hsla(0,0%,100%,.8));\n\tborder: 1px solid rgba(0,0,0,.3);\n\tbox-shadow: .05em .2em .6em rgba(0,0,0,.2);\n\ttext-shadow: none;\n}\n\n@supports (transform: scale(0)) {\n\t.awesomplete > ul {\n\t\ttransition: .3s cubic-bezier(.4,.2,.5,1.4);\n\t\ttransform-origin: 1.43em -.43em;\n\t}\n\t\n\t.awesomplete > ul[hidden],\n\t.awesomplete > ul:empty {\n\t\topacity: 0;\n\t\ttransform: scale(0);\n\t\tdisplay: block;\n\t\tvisibility: hidden;\n\t\ttransition-timing-function: ease;\n\t}\n}\n\n\t/* Pointer */\n\t.awesomplete > ul:before {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t\ttop: -.43em;\n\t\tleft: 1em;\n\t\twidth: 0; height: 0;\n\t\tpadding: .4em;\n\t\tbackground: white;\n\t\tborder: inherit;\n\t\tborder-right: 0;\n\t\tborder-bottom: 0;\n\t\t-webkit-transform: rotate(45deg);\n\t\ttransform: rotate(45deg);\n\t}\n\n\t.awesomplete > ul > li {\n\t\tposition: relative;\n\t\tpadding: .2em .5em;\n\t\tcursor: pointer;\n\t}\n\t\n\t.awesomplete > ul > li:hover {\n\t\tbackground: hsl(200, 40%, 80%);\n\t\tcolor: black;\n\t}\n\t\n\t.awesomplete > ul > li[aria-selected="true"] {\n\t\tbackground: hsl(205, 40%, 40%);\n\t\tcolor: white;\n\t}\n\t\n\t\t.awesomplete mark {\n\t\t\tbackground: hsl(65, 100%, 50%);\n\t\t}\n\t\t\n\t\t.awesomplete li:hover mark {\n\t\t\tbackground: hsl(68, 100%, 41%);\n\t\t}\n\t\t\n\t\t.awesomplete li[aria-selected="true"] mark {\n\t\t\tbackground: hsl(86, 100%, 21%);\n\t\t\tcolor: inherit;\n\t\t}\n',""]);const l=a},9145(t,e,n){"use strict";var r=n(5072),i=n.n(r),o=n(7825),a=n.n(o),l=n(7659),u=n.n(l),c=n(5056),s=n.n(c),f=n(540),h=n.n(f),d=n(1113),p=n.n(d),m=n(1028),v={};v.styleTagTransform=p(),v.setAttributes=s(),v.insert=u().bind(null,"head"),v.domAPI=a(),v.insertStyleElement=h();i()(m.A,v),m.A&&m.A.locals&&m.A.locals}}]);