next-box 2.5.60 → 2.5.62

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.
@@ -0,0 +1 @@
1
+ export declare const confirmReloadOrNotificateError: (status: number, statusText: string, method: 'GET' | 'POST' | 'PUT' | 'DELETE') => void;
@@ -15,3 +15,4 @@ export * from './get-config-data';
15
15
  export * from './transport-props';
16
16
  export * from './browser-navigate';
17
17
  export * from './default-state';
18
+ export * from './confirm-reload';
package/index.js CHANGED
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["next-box"]=e():t["next-box"]=e()}(globalThis,(()=>(()=>{"use strict";var t={6470:t=>{function e(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function n(t,e){for(var n,r="",o=0,i=-1,a=0,s=0;s<=t.length;++s){if(s<t.length)n=t.charCodeAt(s);else{if(47===n)break;n=47}if(47===n){if(i===s-1||1===a);else if(i!==s-1&&2===a){if(r.length<2||2!==o||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var p=r.lastIndexOf("/");if(p!==r.length-1){-1===p?(r="",o=0):o=(r=r.slice(0,p)).length-1-r.lastIndexOf("/"),i=s,a=0;continue}}else if(2===r.length||1===r.length){r="",o=0,i=s,a=0;continue}e&&(r.length>0?r+="/..":r="..",o=2)}else r.length>0?r+="/"+t.slice(i+1,s):r=t.slice(i+1,s),o=s-i-1;i=s,a=0}else 46===n&&-1!==a?++a:a=-1}return r}var r={resolve:function(){for(var t,r="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var a;i>=0?a=arguments[i]:(void 0===t&&(t=process.cwd()),a=t),e(a),0!==a.length&&(r=a+"/"+r,o=47===a.charCodeAt(0))}return r=n(r,!o),o?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(t){if(e(t),0===t.length)return".";var r=47===t.charCodeAt(0),o=47===t.charCodeAt(t.length-1);return 0!==(t=n(t,!r)).length||r||(t="."),t.length>0&&o&&(t+="/"),r?"/"+t:t},isAbsolute:function(t){return e(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,n=0;n<arguments.length;++n){var o=arguments[n];e(o),o.length>0&&(void 0===t?t=o:t+="/"+o)}return void 0===t?".":r.normalize(t)},relative:function(t,n){if(e(t),e(n),t===n)return"";if((t=r.resolve(t))===(n=r.resolve(n)))return"";for(var o=1;o<t.length&&47===t.charCodeAt(o);++o);for(var i=t.length,a=i-o,s=1;s<n.length&&47===n.charCodeAt(s);++s);for(var p=n.length-s,c=a<p?a:p,u=-1,l=0;l<=c;++l){if(l===c){if(p>c){if(47===n.charCodeAt(s+l))return n.slice(s+l+1);if(0===l)return n.slice(s+l)}else a>c&&(47===t.charCodeAt(o+l)?u=l:0===l&&(u=0));break}var d=t.charCodeAt(o+l);if(d!==n.charCodeAt(s+l))break;47===d&&(u=l)}var f="";for(l=o+u+1;l<=i;++l)l!==i&&47!==t.charCodeAt(l)||(0===f.length?f+="..":f+="/..");return f.length>0?f+n.slice(s+u):(s+=u,47===n.charCodeAt(s)&&++s,n.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(e(t),0===t.length)return".";for(var n=t.charCodeAt(0),r=47===n,o=-1,i=!0,a=t.length-1;a>=1;--a)if(47===(n=t.charCodeAt(a))){if(!i){o=a;break}}else i=!1;return-1===o?r?"/":".":r&&1===o?"//":t.slice(0,o)},basename:function(t,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');e(t);var r,o=0,i=-1,a=!0;if(void 0!==n&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var s=n.length-1,p=-1;for(r=t.length-1;r>=0;--r){var c=t.charCodeAt(r);if(47===c){if(!a){o=r+1;break}}else-1===p&&(a=!1,p=r+1),s>=0&&(c===n.charCodeAt(s)?-1==--s&&(i=r):(s=-1,i=p))}return o===i?i=p:-1===i&&(i=t.length),t.slice(o,i)}for(r=t.length-1;r>=0;--r)if(47===t.charCodeAt(r)){if(!a){o=r+1;break}}else-1===i&&(a=!1,i=r+1);return-1===i?"":t.slice(o,i)},extname:function(t){e(t);for(var n=-1,r=0,o=-1,i=!0,a=0,s=t.length-1;s>=0;--s){var p=t.charCodeAt(s);if(47!==p)-1===o&&(i=!1,o=s+1),46===p?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1);else if(!i){r=s+1;break}}return-1===n||-1===o||0===a||1===a&&n===o-1&&n===r+1?"":t.slice(n,o)},format:function(t){if(null===t||"object"!=typeof t)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return function(t,e){var n=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||"");return n?n===e.root?n+r:n+"/"+r:r}(0,t)},parse:function(t){e(t);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return n;var r,o=t.charCodeAt(0),i=47===o;i?(n.root="/",r=1):r=0;for(var a=-1,s=0,p=-1,c=!0,u=t.length-1,l=0;u>=r;--u)if(47!==(o=t.charCodeAt(u)))-1===p&&(c=!1,p=u+1),46===o?-1===a?a=u:1!==l&&(l=1):-1!==a&&(l=-1);else if(!c){s=u+1;break}return-1===a||-1===p||0===l||1===l&&a===p-1&&a===s+1?-1!==p&&(n.base=n.name=0===s&&i?t.slice(1,p):t.slice(s,p)):(0===s&&i?(n.name=t.slice(1,a),n.base=t.slice(1,p)):(n.name=t.slice(s,a),n.base=t.slice(s,p)),n.ext=t.slice(a,p)),s>0?n.dir=t.slice(0,s-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,t.exports=r},4965:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionApi=void 0;var i=n(3534),a="/static/extensions",s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.list=function(){return this.rest.get(a)},e.prototype.getByUniqKey=function(t){return this.rest.get("".concat(a,"/").concat(t))},e}(i.Api);e.ExtensionApi=s},8181:function(t,e,n){var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),o(n(8513),e),o(n(5481),e),o(n(2181),e),o(n(6453),e),o(n(4965),e)},5481:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.StaticApi=void 0;var a=n(1892),s=n(6392),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.upload=function(t,e,n){void 0===n&&(n="");var r=new FormData;return r.set("file",t,e),(0,s.sendRequest)(this.makeApiPath(n),{method:"POST",body:r}).then((function(t){return t.json()}))},e.prototype.get=function(t){return(0,s.sendRequest)(this.makeApiPath(t),{method:"GET"})},e.prototype.delete=function(t){return(0,s.sendRequest)(this.makeApiPath(t),{method:"DELETE"}).catch((function(t){return t}))},e.prototype.makeApiPath=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.prototype.makeApiPath.apply(this,i(["static/files"],e,!1))},e}(a.Api);e.StaticApi=p},2181:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},i.apply(this,arguments)},a=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.StorageApi=void 0;var s=n(5307),p=n(1892),c=n(3566),u=n(6392),l=n(5299),d=n(6796),f=n(3831),h=new Map,v=function(t,e,n){return function(r){return f.Transport.send(t,{path:e,status:r.status,options:n}),r}},y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.list=function(t){return t.path&&(t.path=this.relativePath(t.path)),this.rest.get("/storage",t)},e.prototype.info=function(t){return this.rest.get("/storage/element",{path:t})},e.prototype.create=function(t,e,n,r){var o=i(i({is_work_dir:this.state.extenstion.type===d.ExtensionType.WorkDir},r),{name:t,path:this.relativePath(e),type:n,divide_id:this.state.api.query.divide_id||null});return(0,u.sendRequest)(this.makeApiPath("/element"),{method:"POST",headers:this.makeHeaders({"Content-Type":"application/json"}),body:JSON.stringify(o)}).then(this.responseJSON)},e.prototype.delete=function(t,e){return(0,u.sendRequest)(this.makeApiPath("/element")+this.makeSearchParams({path:t,hard:e}),{method:"DELETE",headers:this.makeHeaders()})},e.prototype.makeDownloadPath=function(t,e){var n=i({},e),r={path:t,with_preview:!1};return n.cache||(r.t=Date.now()),n.imagePreview&&(r.with_preview=!0),this.makeApiPath("/files")+this.makeSearchParams(r)},e.prototype.makeImagePreview=function(t,e){return this.makeDownloadPath(t,i(i({},e),{imagePreview:!0}))},e.prototype.download=function(t){return(0,u.sendRequest2)("GET",this.makeApiPath("/files")+this.makeSearchParams({path:this.relativePath(t,this.state.storage.path),t:Date.now()}),{headers:this.makeHeaders(),cache:"no-cache"})},e.prototype.replace=function(t,e,n){var r=e||this.state.storage.path;return f.Transport.send(d.TransportEvent.ExtSavedStart,{path:r,options:n}),(0,u.sendRequest2)("PUT",this.makeApiPath("/files")+this.makeSearchParams({path:this.relativePath(e,this.state.storage.path)}),{cache:"no-cache",body:t,headers:this.makeHeaders()}).then(v(d.TransportEvent.ExtSavedEnd,r,n)).catch(v(d.TransportEvent.ExtSavedError,r,n))},e.prototype.liveReplace=function(t,e,n,r){var o=this,i=[this.state.storage.root,this.state.storage.rootID,this.relativePath(e,this.state.storage.path)].join("-"),a=h.get(i);a||(a={status:d.RequestStatus.Done,requests:[]},h.set(i,a)),a.requests.push({path:e,body:t});var s=function(){if(a&&a.status!==d.RequestStatus.Wait){var t=a.requests.pop();a.requests=[],t?(a.status=d.RequestStatus.Wait,o.replace(t.body,t.path,r).then((function(t){return a.status=d.RequestStatus.Done,s(),t})).catch((function(t){return a.status=d.RequestStatus.Reject,s(),t}))):n&&n()}};s()},e.prototype.upload=function(t,e){var n=new FormData;return n.set("path",this.relativePath(t)),this.state.api.query.divide_id&&n.set("divide_id",this.state.api.query.divide_id),n.set("file",e),f.Transport.send(d.TransportEvent.ExtSavedStart,t),(0,u.sendRequest)(this.makeApiPath("/files"),{method:"POST",body:n,headers:this.makeHeaders()}).then(v(d.TransportEvent.ExtSavedEnd,t)).catch(v(d.TransportEvent.ExtSavedError,t)).then(this.responseJSON,this.responseJSON)},e.prototype.uploadNet=function(t,e,n){return void 0===n&&(n=!1),f.Transport.send(d.TransportEvent.ExtSavedStart,t),(0,u.sendRequest)(this.makeApiPath("/files/net"),{method:"POST",headers:this.makeHeaders({"Content-Type":"application/json"}),body:JSON.stringify({url:e,overwrite:n,path:this.relativePath(t)})}).then(v(d.TransportEvent.ExtSavedEnd,t)).catch(v(d.TransportEvent.ExtSavedError,t)).then(this.responseJSON)},e.prototype.createMeta=function(t,e,n){return this.create(t||this.metaName,e||"","file",n)},e.prototype.readMeta=function(t){return this.download(t||this.metaName)},e.prototype.saveMeta=function(t,e){return this.replace(t,e||this.metaName)},e.prototype.relativePath=function(t,e){return!t&&e?e||"":(0,s.pathJoin)(this.state.storage.info.dir||"",t||"")},e.prototype.makeApiPath=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r="storage";return"fca"===this.state.storage.root&&(r="disk/".concat(this.state.storage.rootID)),t.prototype.makeApiPath.apply(this,a([r],e,!1))},Object.defineProperty(e.prototype,"metaName",{get:function(){return"."+(0,l.translite)((0,c.getLang)(this.state.extenstion.name))},enumerable:!1,configurable:!0}),e}(p.Api);e.StorageApi=y},8513:(t,e)=>{var n;Object.defineProperty(e,"__esModule",{value:!0}),e.OrderDirection=void 0,(n=e.OrderDirection||(e.OrderDirection={})).DEFAULT="",n.ASC="asc",n.DESC="desc"},6453:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.UserApi=void 0;var i=n(1892),a="/users",s="/users/me",p="".concat(s,"/avatars"),c="".concat(s,"/sessions"),u="".concat(s,"/tokens"),l="".concat(a,"/change-password"),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.logout=function(){return this.rest.get("/logout")},e.prototype.get=function(t){return this.rest.get("".concat(a,"/").concat(t))},e.prototype.list=function(t){return this.rest.get(a,t)},e.prototype.restore=function(t){return this.rest.post("".concat(a,"/").concat(t,"/restore"))},e.prototype.delete=function(t,e){return this.rest.delete("".concat(a,"/").concat(t),e)},e.prototype.update=function(t){return this.rest.put(a+"/".concat(t.id),JSON.stringify(t))},e.prototype.create=function(t){return this.rest.post(a,JSON.stringify(t))},e.prototype.createToken=function(t){return this.rest.post(u,JSON.stringify(t))},e.prototype.listToken=function(t){return this.rest.get(u,t)},e.prototype.deleteToken=function(t){return this.rest.delete("".concat(u,"/").concat(t))},e.prototype.changePassword=function(t){return this.rest.post(l,JSON.stringify(t))},e.prototype.me=function(){return this.rest.get(s)},e.prototype.meUploadAvatar=function(t,e){var n=new FormData;return n.append("file",t,e),this.rest.post(p,n)},e.prototype.meDeleteAvatar=function(){return this.rest.delete(p)},e.prototype.meListSession=function(t){return this.rest.get(c,t)},e.prototype.meDeleteSession=function(t){var e=c;return t&&(e+="/".concat(t)),this.rest.delete(e)},e}(i.Api);e.UserApi=d},1892:function(t,e,n){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},o=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Api=void 0;var i=n(2462),a=n(3755),s=function(){function t(t){void 0===t&&(t=(0,a.defaultState)());var e=this;this.rest={get:function(t,n,o){return(0,i.sendRequest2)("GET",t,{prefix:e.state.api.prefix,host:e.state.api.host,headers:e.makeHeaders(o),params:r(r({},e.state.api.query),n),cache:"no-cache"}).then(e.responseJSON)},post:function(t,n,o){return(0,i.sendRequest2)("POST",t,{prefix:e.state.api.prefix,host:e.state.api.host,headers:e.makeHeaders(o),params:r({},e.state.api.query),body:n}).then(e.responseJSON)},put:function(t,n,o){return(0,i.sendRequest2)("PUT",t,{prefix:e.state.api.prefix,host:e.state.api.host,headers:e.makeHeaders(o),params:r({},e.state.api.query),cache:"no-cache",body:n}).then(e.responseJSON)},delete:function(t,n,o){return(0,i.sendRequest2)("PUT",t,{prefix:e.state.api.prefix,host:e.state.api.host,headers:e.makeHeaders(o),params:r(r({},e.state.api.query),n)}).then(e.responseJSON)}},this.changeState(t)}return t.prototype.changeState=function(t){this.state=t},t.prototype.makeSearchParams=function(t){if(!t)return"";t=r(r({},this.state.api.query),t);var e=Object.fromEntries(Object.entries(t).map((function(t){var e=t[0],n=t[1];return[e,encodeURIComponent(n)]})));return"?"+new URLSearchParams(e).toString()},t.prototype.makeHeaders=function(t){return r(r({},t),this.state.api.headers)},t.prototype.responseJSON=function(t){return(t.headers.get("content-type")||"").indexOf("/json")>=0&&t.status>=200&&t.status<400?t.json():(console.warn("Parse json error"),Promise.resolve({}))},t.prototype.makeApiPath=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new URL(decodeURI(i.pathJoin.apply(void 0,o([this.state.api.prefix],t,!1))),this.state.api.host)},t}();e.Api=s},7970:function(t,e){var n=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.EventEmitter=void 0;var r=function(){function t(){this._handlers=new Map,this._globalHandlers=new Set}return t.prototype.listen=function(t){this._globalHandlers.add(t)},t.prototype.on=function(t,e){var n;this._handlers.has(t)||this._handlers.set(t,new Set),null===(n=this._handlers.get(t))||void 0===n||n.add(e)},t.prototype.off=function(t,e){var n;null===(n=this._handlers.get(t))||void 0===n||n.delete(e)},t.prototype.emit=function(t){for(var e,r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];null===(e=this._handlers.get(t))||void 0===e||e.forEach((function(t){t&&t.apply(void 0,r)})),this._globalHandlers.forEach((function(e){e.apply(void 0,n([t],r,!1))}))},t}();e.EventEmitter=r},5892:function(t,e,n){var r,o,i,a=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.FileEngine=void 0;var s=n(8181),p=n(2462),c=n(3755),u=n(1892),l=Symbol("VERSION"),d=Symbol("CONFIG"),f=Symbol("API"),h=Symbol("UPGRADE"),v=function(t){function e(e,n,r){void 0===r&&(r=(0,c.defaultState)());var a=t.call(this,r)||this;return a[o]=0,a[i]=new Map,a[l]=e,a[d]=n,a[f]=new s.StorageApi,a[f].changeState(r),a}return a(e,t),Object.defineProperty(e.prototype,"name",{get:function(){var t;return(null===(t=this[d])||void 0===t?void 0:t.name)||""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){var t;return(null===(t=this[d])||void 0===t?void 0:t.path)||""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fullName",{get:function(){return(0,p.pathJoin)(this.path,this.name)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this[l]},enumerable:!1,configurable:!0}),e.prototype.changeState=function(e){var n;t.prototype.changeState.call(this,e),null===(n=this[f])||void 0===n||n.changeState(e)},e.prototype.migration=function(t,e){if(this[h].has(t))throw"Upgrader migration version ".concat(t," exist");this[h].set(t,e)},e.prototype.info=function(){return this[f].info(this.fullName)},e.prototype.download=function(){var t=this;return this[f].download().then((function(t){return parseInt(t.headers.get("content-length")||"")>0?t.json():""})).then((function(e){var n=null,r=-1;return(0,p.isObject)(e)&&(n=e.body||e||null,r=e.version||-1),t.runMigrate(r,n)}))},e.prototype.create=function(t,e){var n=this;return this[f].create(this.name,this.path,"file",e).then((function(){return n.replace(t)}))},e.prototype.delete=function(t){return this[f].delete(this.fullName,t)},e.prototype.replace=function(t){return this[f].replace({version:this.version,body:t})},e.prototype.liveReplace=function(t,e){return this[f].liveReplace(JSON.stringify({version:this.version,body:t}),this.path,e)},e.prototype.runMigrate=function(t,e){var n=this,r=Array.from(this[h].keys()).sort(),o=r[r.length-1]||0;return new Promise((function(i,a){var s=e;t<o&&r.forEach((function(e){if(e>t){var r=n[h].get(e);r&&(s=r(s))}})),i(s)}))},e}(u.Api);e.FileEngine=v,o=l,i=h},3534:function(t,e,n){var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),o(n(1892),e),o(n(5892),e),o(n(7970),e)},455:function(t,e,n){var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),o(n(6844),e)},6844:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},i.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.defineNbFrameComponent=void 0;var a=n(3534),s=n(2462),p=n(2554),c=n(2176),u=n(6796),l=Symbol("ROOT"),d=Symbol("FRAME"),f=Symbol("FRAME_CONFIG"),h=Symbol("TRANSPORT"),v=Symbol("EVENT_EMITTER");e.defineNbFrameComponent=function(){return customElements.define("nb-frame",y)};var y=function(t){function e(){var e=t.call(this)||this;return e.apiPrefix="/api/v1",e.origin=window.location.origin,e.version=1,e.view=u.ViewState.view,e.debug=!1,e.uuid=(0,p.uuid)(),e[n]=new a.EventEmitter,e[r]={transportParams:{version:1,uuid:e.uuid}},e}var n,r;return o(e,t),e.prototype.connectedCallback=function(){this[l]=this.attachShadow({mode:"open"})},e.prototype.disconnectedCallback=function(){var t;null===(t=this[h])||void 0===t||t.destroy()},e.prototype.send=function(t,e){var n;null===(n=this[h])||void 0===n||n.send(t,e)},e.prototype.listen=function(t){this[v].listen(t)},e.prototype.off=function(t,e){this[v].off(t,e)},e.prototype.on=function(t,e){this[v].on(t,e)},Object.defineProperty(e.prototype,"extensionModel",{set:function(t){var e=t.type,n=t.file,r=t.work_dir,o=t.app,i=t.devlocal,a=t.path,s="";e===u.ExtensionType.File&&(s=n.index),e===u.ExtensionType.WorkDir&&(s=r.index),e===u.ExtensionType.App&&(s=o.menu.index),this[f].ext=t,this[f].extSrc=i?s:"".concat(this.apiPrefix,"/extensions/static/").concat(a,"/").concat(s)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transportParams",{get:function(){return i(i({},(0,s.transportProps)()),this[f].transportParams)},set:function(t){this[f].transportParams=i(i({},this[f].transportParams),t),this.uuid=this[f].transportParams.uuid||this.uuid},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"routeData",{set:function(t){this[f].routeData=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"user",{set:function(t){this[f].user=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nvigationState",{set:function(t){this[f].navigationState=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"framePath",{get:function(){var t=new URL(this[f].extSrc||"",location.origin);return this.transportParams.host&&(t.hostname=this.transportParams.host),this.transportParams.port&&(t.port=this.transportParams.port.toString()),t.toString()},enumerable:!1,configurable:!0}),e.prototype.run=function(){var t,e,n=this,r=document.createElement("iframe");r.setAttribute("allowfullscreen",""),r.name=JSON.stringify(this.transportParams),r.src=this.framePath;var o=this.resetTransport();return o.listen((function(t,e,r){t===u.TransportEvent.ExtInit&&n.send(u.TransportEvent.AppReady,n.state)})),this[d]=r,this[l]&&(this[l].innerHTML=""),null===(t=this[l])||void 0===t||t.appendChild(this.frameStyle),null===(e=this[l])||void 0===e||e.appendChild(this[d]),o},Object.defineProperty(e.prototype,"state",{get:function(){var t=this[f],e=t.ext,n=t.routeData,r=t.user,o=t.navigationState,i=(0,s.fileInfo)((null==n?void 0:n.path)||"");(null==e?void 0:e.type)===u.ExtensionType.WorkDir&&(i.dir=(0,s.pathJoin)(i.dir,i.base),i.base="",i.name="");var a={},p={};return(null==n?void 0:n.root)===u.StorageRoot.divide&&(a.divide_id=Number(n.rootId),i.dir=(0,s.pathJoin)("/",n.path||""),n.divideDir||(i.dir="/")),(null==n?void 0:n.root)===u.StorageRoot.fca&&(a.disk_id=Number(n.rootId)),(null==n?void 0:n.root)===u.StorageRoot.share&&(a.share_token=n.share_token,p.Authorization="Sharing ".concat(n.share_token),n.share_password&&(a.share_pass=n.share_password),p.SharePass=n.share_password),{debug:!!this.debug,view:this.view,extenstion:{id:(null==e?void 0:e.id)||0,name:(null==e?void 0:e.name)||{ru:""},type:(null==e?void 0:e.type)||u.ExtensionType.File},api:{host:this.origin,prefix:this.apiPrefix,headers:p,query:a},user:r,storage:{info:i,root:(null==n?void 0:n.root)||u.StorageRoot.my,rootID:(null==n?void 0:n.rootId)||0,path:(null==n?void 0:n.path)||""},initialNavigation:o,setting:null==e?void 0:e.settings}},enumerable:!1,configurable:!0}),e.prototype.resetTransport=function(){var t;null===(t=this[h])||void 0===t||t.destroy();var e=new c.NBTransport(this.transportParams);return this[h]=e,this[h].subscribe(),this[h]},Object.defineProperty(e.prototype,"frameStyle",{get:function(){var t=document.createElement("style");return t.textContent="\n iframe {\n display: block;\n width: inherit;\n height: inherit;\n border: none;\n background: none;\n }\n ",t},enumerable:!1,configurable:!0}),n=v,r=f,e.observedAttributes=["apiPrefix","origin","version","view","debug","uuid","navigationState","user"],e}(HTMLElement)},1615:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.browserNavigate=void 0;var r=n(7424),o=n(837);e.browserNavigate=function(t){if((0,o.isBrowser)()){var e=(0,r.getGlobal)(),n=t.path,i=t.queryParams,a=new URL(n||"",window.origin),s=i||{};Object.keys(s).forEach((function(t){var e=s[t];e&&a.searchParams.append(t,e.toString())})),e.history.pushState({},"",a.toString())}}},3755:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.defaultState=void 0;var r=n(6796);e.defaultState=function(){return{extenstion:{id:0,name:{},type:r.ExtensionType.File},api:{host:window.location.origin,prefix:"/api/v1",headers:{},query:{}},debug:!0,view:r.ViewState.view,storage:{root:r.StorageRoot.my,rootID:0,path:"",info:{base:"",dir:"",ext:"",name:"",root:""}}}}},4223:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.dirname=void 0;var r=n(6470).sep,o=n(5307);e.dirname=function(t){if(0===(t=(0,o.pathJoin)(r,t)).length)return".";for(var e=t.charCodeAt(0),n=47===e,i=-1,a=!0,s=t.length-1;s>=1;--s)if(47===(e=t.charCodeAt(s))){if(!a){i=s;break}}else a=!1;return-1===i?n?r:".":n&&1===i?r+r:t.slice(0,i)}},572:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.fileInfo=void 0;var r=n(6470).sep,o=n(5307);e.fileInfo=function(t){var e={root:"",dir:"",base:"",ext:"",name:""};if(0===(t=(0,o.pathJoin)(r,t)).length)return e;var n,i=t.charCodeAt(0),a=47===i;a?(e.root=r,n=1):n=0;for(var s=-1,p=0,c=-1,u=!0,l=t.length-1,d=0;l>=n;--l)if(47!==(i=t.charCodeAt(l)))-1===c&&(u=!1,c=l+1),46===i?-1===s?s=l:1!==d&&(d=1):-1!==s&&(d=-1);else if(!u){p=l+1;break}return-1===s||-1===c||0===d||1===d&&s===c-1&&s===p+1?-1!==c&&(e.base=e.name=0===p&&a?t.slice(1,c):t.slice(p,c)):(0===p&&a?(e.name=t.slice(1,s),e.base=t.slice(1,c)):(e.name=t.slice(p,s),e.base=t.slice(p,c)),e.ext=t.slice(s,c)),p>0?e.dir=t.slice(0,p-1):a&&(e.dir=r),e}},1395:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getConfigData=void 0;var r=n(6796);e.getConfigData=function(t){var e,n,o,i,a={name:t.name,type:t.type,icon:t.icon,pictogram:"",index:""};switch(t.type){case r.ExtensionType.File:a.index=(null===(e=t.file)||void 0===e?void 0:e.index)||"";break;case r.ExtensionType.WorkDir:a.index=(null===(n=t.work_dir)||void 0===n?void 0:n.index)||"";break;case r.ExtensionType.App:a.index=(null===(o=t.app)||void 0===o?void 0:o.menu.index)||"",a.pictogram=(null===(i=t.app)||void 0===i?void 0:i.menu.icon)||""}return a}},7424:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getGlobal=void 0;var r=n(837);e.getGlobal=function(){return(0,r.isBrowser)()?window:n.g}},3566:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getLang=void 0,e.getLang=function(t,e){if(void 0===e&&(e="ru"),t[e])return t[e];var n=Object.keys(t).pop();return n&&t[n]?t[n]:""}},2462:function(t,e,n){var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),o(n(4223),e),o(n(572),e),o(n(3566),e),o(n(719),e),o(n(5307),e),o(n(6392),e),o(n(5299),e),o(n(7424),e),o(n(837),e),o(n(2008),e),o(n(4867),e),o(n(7538),e),o(n(3742),e),o(n(1395),e),o(n(9858),e),o(n(1615),e),o(n(3755),e)},837:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isBrowser=void 0,e.isBrowser=function(){return"undefined"!=typeof window}},2008:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isObject=void 0,e.isObject=function(t){return null!=t&&"Object"===t.constructor.name}},4867:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isString=void 0,e.isString=function(t){return"[object String]"===Object.prototype.toString.call(t)}},7538:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.notificateRequestError=void 0;var r=n(2176),o=n(6796);e.notificateRequestError=function(t,e){r.Transport.send(o.TransportEvent.ExtRequestError,{status:t,message:e})}},719:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parentURL=void 0,e.parentURL=function(){return new URL(window.location!=window.parent.location?document.referrer:document.location.href)}},5307:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.pathJoin=void 0;var r=n(6470).sep;e.pathJoin=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=[],o=0,i=t.length;o<i;o++)n=n.concat(t[o].split(r));var a=[];for(o=0,i=n.length;o<i;o++){var s=n[o];s&&"."!==s&&(".."===s?a.pop():a.push(s))}return""===n[0]&&a.unshift(""),a.join(r)||(a.length?r:".")}},3742:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.safeJson=void 0,e.safeJson=function(t,e){try{return JSON.parse(t)}catch(t){return e}}},6392:function(t,e,n){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.sendRequest2=e.sendRequest=void 0;var o=n(2176),i=n(6796),a=n(7538),s=n(5307),p=null,c=function(){return p||(p=o.Transport.call(i.CallNameEvent.Update).catch((function(t){throw p=null,t})).then((function(t){return p=null,t}))),p};e.sendRequest=function(t,e){return c().then((function(){return fetch(t,e)})).then((function(t){return t.status>=400&&(0,a.notificateRequestError)(t.status,""),t})).catch((function(t){throw t.status>=400&&(0,a.notificateRequestError)(t.status,t.message),t}))},e.sendRequest2=function(t,e,n){var o=r({},n.headers);n.params&&(e+="?"+u(n.params)),n.prefix&&(e=(0,s.pathJoin)(n.prefix,e));var i={method:t,cache:n.cache,headers:o,body:n.body};return c().then((function(){return fetch(new URL(decodeURI(e),n.host),i)})).then((function(t){var e=t.status;return e>=400&&403!==e&&404!==e&&(alert("Не удалось загрузить данные, перезагрузите страницу. Код: ".concat(e)),window.location.reload()),t})).catch((function(t){throw l(t.status,t.message),t}))};var u=function(t){var e=new URLSearchParams;return Object.keys(t).forEach((function(n){Array.isArray(t[n])?t[n].forEach((function(t){e.append(n,t)})):e.append(n,t[n])})),e},l=function(t,e){t>=400&&(0,a.notificateRequestError)(t,e)}},5299:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.translite=void 0;var n={а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"e",ж:"zh",з:"z",и:"i",й:"i",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"h",ц:"c",ч:"cz",ш:"sh",щ:"scz",ы:"y",ь:"",э:"e",ю:"u",я:"ja"," ":"-"};e.translite=function(t){return(t=(t=(t=(t=(t=t.toLocaleLowerCase()).trim()).replace(/ -/gi,"-")).replace(/- /gi,"-")).replace(/\s{2,}/gi," ")).split("").map((function(t){return/[a-z0-9]/i.test(t)?t:n[t]||""})).join("")}},9858:function(t,e,n){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.transportProps=void 0;var o=(0,n(7424).getGlobal)();e.transportProps=function(){return r(r({},o._nb_global_props),i())};var i=function(){try{return JSON.parse(window.name||"")}catch(t){return{}}}},2554:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.uuid=void 0,e.uuid=function(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(t){return(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)}))}},1495:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.NextBox=void 0;var i=n(7970),a=n(2462),s=n(3755),p=n(3831),c=n(512),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.init=function(t){var e=this,n=function(t){return e.state=t};if(!p.Transport.engineType){var r=(0,s.defaultState)();n(r),t&&t(r)}p.Transport.on(c.TransportEvent.AppReady,(function(e){n(e),t&&t(e)})),p.Transport.on(c.TransportEvent.AppReload,(function(){window.location.reload()})),p.Transport.on(c.TransportEvent.AppChangeState,n),p.Transport.send(c.TransportEvent.ExtInit)},e.prototype.prepareNavigate=function(){var t,e=null===(t=this.state)||void 0===t?void 0:t.initialNavigation;(null==e?void 0:e.target)&&[c.TransportNavigationTarget.Cache,c.TransportNavigationTarget.Self].includes(e.target)&&(0,a.browserNavigate)(e)},e}(i.EventEmitter);e.NextBox=u},4708:()=>{!function(){if(void 0!==window.Reflect&&void 0!==window.customElements&&!window.customElements.polyfillWrapFlushCallback){var t=HTMLElement;window.HTMLElement=function(){return Reflect.construct(t,[],this.constructor)},HTMLElement.prototype=t.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,t)}}()},6626:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),n(4708)},3185:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TransportEmpty=void 0;var n=function(){function t(){}return t.prototype.send=function(t,e){},t.prototype.subscribe=function(t){},t.prototype.destroy=function(){},t}();e.TransportEmpty=n},2176:function(t,e,n){var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),o(n(6595),e),o(n(3831),e)},6595:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},3521:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TransportPostMessage=void 0;var r=n(2462),o=function(){function t(t){var e=this;this.listenHandler=function(t){var n=t.data.event,o=t.data.uuid,i=t.data.instanceUid,a=(0,r.safeJson)(t.data.payload,t.data.payload);e.handler&&e.handler(n,a,o,i)},this._parems=t}return Object.defineProperty(t.prototype,"parent",{get:function(){var t,e;return(null===(t=this._parems)||void 0===t?void 0:t.parent)?null===(e=this._parems)||void 0===e?void 0:e.parent:parent||null},enumerable:!1,configurable:!0}),t.prototype.send=function(t,e,n,r){var o,i;null===(o=this.parent)||void 0===o||o.postMessage({event:t,uuid:n||(null===(i=this._parems)||void 0===i?void 0:i.uuid),instanceUid:r,payload:function(){try{return JSON.stringify(e)}catch(t){return e}}()},document.location.origin)},t.prototype.subscribe=function(t){var e;this.handler=t,null===(e=this.parent)||void 0===e||e.addEventListener("message",this.listenHandler)},t.prototype.destroy=function(){var t;null===(t=this.parent)||void 0===t||t.removeEventListener("message",this.listenHandler)},t}();e.TransportPostMessage=o},3831:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},i.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Transport=e.NBTransport=e.TransportParentHandlers=e.EngineType=void 0;var a,s=n(512),p=n(7970),c=n(3521),u=n(7424),l=n(8742),d=n(3185),f=n(9858),h=n(2462),v=n(2554);!function(t){t.WebSocket="websocket",t.PostMessage="postmessage",t.Empty=""}(a=e.EngineType||(e.EngineType={}));var y=(0,f.transportProps)(),g=(0,u.getGlobal)();e.TransportParentHandlers={},g._nb_handlers=e.TransportParentHandlers;var b=function(t){function n(e){var n=t.call(this)||this;return n.instanceUid=(0,v.uuid)(),n.engineType=a.Empty,n._params=i(i({},y),e),n.engineType=n._params.engine||a.Empty,n.engine=new d.TransportEmpty,n.engineType===a.PostMessage&&(n.engine=new c.TransportPostMessage(n._params)),n.engineType===a.WebSocket&&(n.engine=new l.TransportWebsocket(n._params)),n}return o(n,t),n.prototype.call=function(t){for(var e,n=this,r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];return((null===(e=this._params)||void 0===e?void 0:e.version)||0)<2?Promise.resolve([]):new Promise((function(e,o){var i=(0,v.uuid)(),a={id:i,name:t,params:r,event:s.TransportCallEvent.Call},p=function(r){r.id===i&&r.name===t&&(n.off(s.TransportEvent.CallResponse,p),r.event===s.TransportCallEvent.Reject?o(r.params):e(r.params))};n.send(s.TransportEvent.Call,a),n.on(s.TransportEvent.CallResponse,p)}))},n.prototype.send=function(t,e,n){var r;(null===(r=this._params)||void 0===r?void 0:r.debug)&&console.log("transport.send",this._params,t,e,n),this.engine.send(t,e,n,this.instanceUid)},n.prototype.subscribe=function(){var t=this;this.engine.subscribe((function(e,n,r,o){var i,a,p;!e||o===t.instanceUid||((null===(i=t._params)||void 0===i?void 0:i.version)||0)>0&&r!==(null===(a=t._params)||void 0===a?void 0:a.uuid)||((null===(p=t._params)||void 0===p?void 0:p.debug)&&console.log("transport.message",t._params,r,e,n),e===s.TransportEvent.Call&&n.name===s.CallNameEvent.ForceSave&&t.forceSaveVersion(n),t.emit(e,n,r))}))},n.prototype.destroy=function(){this.engine.destroy()},n.prototype.forceSaveVersion=function(t){var e=t.id,n=t.name;this.send(s.TransportEvent.CallResponse,{id:e,name:n,event:s.TransportCallEvent.Resolve})},n.prototype.changeContent=function(t){e.Transport.send(s.TransportEvent.ExtChangeContent,t)},n.prototype.navigate=function(t,n,r){void 0===r&&(r=s.TransportNavigationTarget.Cache);var o={path:t,queryParams:n,target:r};e.Transport.send(s.TransportEvent.ExtNavigateTo,o),r===s.TransportNavigationTarget.Self&&(0,h.browserNavigate)(o)},n.prototype.close=function(){e.Transport.send(s.TransportEvent.ExtClose)},n.prototype.rejectClose=function(){e.Transport.send(s.TransportEvent.ExtRejectClose)},n.prototype.showAccessPanel=function(){e.Transport.send(s.TransportEvent.ExtShowAccessPanel)},n.prototype.openModalFilesSelect=function(t){e.Transport.send(s.TransportEvent.ExtOpenModalFilesSelect,t)},n.prototype.openModalConfirm=function(t){e.Transport.send(s.TransportEvent.ExtShowConfirm,t)},n.prototype.toast=function(t){e.Transport.send(s.TransportEvent.ExtToast,t)},n.prototype.savedStart=function(t){e.Transport.send(s.TransportEvent.ExtSavedStart,t)},n.prototype.savedEnd=function(t){e.Transport.send(s.TransportEvent.ExtSavedEnd,t)},n.prototype.setSpinnerStatus=function(t){e.Transport.send(s.TransportEvent.ExtSpinner,t)},n.prototype.setContext=function(t){e.Transport.send(s.TransportEvent.ExtContext,t)},n.prototype.setTabs=function(t){e.Transport.send(s.TransportEvent.ExtTabs,t)},n}(p.EventEmitter);e.NBTransport=b,g._nb_transport instanceof b||(g._nb_transport=new b({}),g._nb_transport.subscribe()),e.Transport=g._nb_transport},8742:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TransportWebsocket=void 0;var n=Symbol("socket"),r=function(){function t(t){this._params=t,this[n]||this.init(t)}return t.prototype.init=function(t){var e=(null==t?void 0:t.host)||"localhost",r=(null==t?void 0:t.port)||8999,o=(null==t?void 0:t.path)||"";this[n]=new WebSocket("ws://".concat(e,":").concat(r).concat(o)),this[n].onopen=function(){},this[n].onclose=function(t){t.wasClean?console.log("Соединение закрыто"):console.log("Обрыв соединения"),console.log("Код: "+t.code+" причина: "+t.reason)},this[n].onerror=function(t){console.log("Ошибка подключения ws: "+t.message)}},t.prototype.send=function(t,e,r,o){var i,a=this;this[n]&&(this[n].readyState?this[n].send(JSON.stringify({event:t,payload:e,uuid:r||(null===(i=this._params)||void 0===i?void 0:i.uuid),instanceUid:o})):setTimeout((function(){a.send(t,e,r)}),100))},t.prototype.subscribe=function(t){this[n]&&(this[n].onmessage=function(e){try{var n=JSON.parse(e.data),r=n.event,o=n.payload,i=n.uuid,a=n.instanceUid;t(r,o,i,a)}catch(t){}})},t.prototype.destroy=function(){this[n]&&(this[n].close(),this[n]=void 0)},t}();e.TransportWebsocket=r},3085:(t,e)=>{var n,r,o,i;Object.defineProperty(e,"__esModule",{value:!0}),e.RequestStatus=e.PermissionType=e.ExtensionFileMode=e.ExtensionType=void 0,(i=e.ExtensionType||(e.ExtensionType={})).App="app",i.File="file",i.WorkDir="work_dir",(o=e.ExtensionFileMode||(e.ExtensionFileMode={})).Read="read",o.Write="write",o.ReadAndWrite="read_and_write",(r=e.PermissionType||(e.PermissionType={})).CLOSE="",r.READ="r",r.WRITE="rw",(n=e.RequestStatus||(e.RequestStatus={}))[n.Wait=0]="Wait",n[n.Done=1]="Done",n[n.Reject=2]="Reject"},6745:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},8738:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},6796:function(t,e,n){var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),o(n(3085),e),o(n(2492),e),o(n(9517),e),o(n(512),e),o(n(6745),e),o(n(1548),e),o(n(7143),e),o(n(8738),e)},7143:(t,e)=>{var n;Object.defineProperty(e,"__esModule",{value:!0}),e.SettingControlType=void 0,(n=e.SettingControlType||(e.SettingControlType={})).Text="text",n.String="string",n.Number="number",n.CheckBox="checkbox",n.Select="select",n.RadioList="radio_list",n.ConnectionChoose="connection_choose",n.MultiConnectionChoose="multi_connection_choose"},2492:(t,e)=>{var n;Object.defineProperty(e,"__esModule",{value:!0}),e.ViewState=void 0,(n=e.ViewState||(e.ViewState={})).view="view",n.edit="edit"},9517:(t,e)=>{var n,r,o;Object.defineProperty(e,"__esModule",{value:!0}),e.StorageElementContentType=e.StorageElementType=e.StorageRoot=void 0,(o=e.StorageRoot||(e.StorageRoot={})).my="my",o.fca="fca",o.divide="divide",o.share="share",o.favorite="favorite",o.trash="trash",(r=e.StorageElementType||(e.StorageElementType={})).Dir="dir",r.File="file",r.WorkDir="work_dir",(n=e.StorageElementContentType||(e.StorageElementContentType={})).Any="any",n.Dir="dir",n.Code="code",n.Image="image",n.Audio="audio",n.Video="video",n.Text="text",n.Doc="doc",n.Xls="xls",n.Ppt="ppt"},512:(t,e)=>{var n,r,o,i;Object.defineProperty(e,"__esModule",{value:!0}),e.TransportCallEvent=e.TransportNavigationTarget=e.CallNameEvent=e.TransportEvent=void 0,(i=e.TransportEvent||(e.TransportEvent={})).Call="call",i.CallResponse="call-response",i.ExtInit="ext-init",i.ExtChangeContent="ext-change-content",i.ExtOpenModalFilesSelect="ext-open-modal-files-select",i.ExtShowConfirm="ext-show-confirm",i.ExtShowAccessPanel="ext-show-access-panel",i.ExtNavigateTo="ext-navigate-to",i.ExtRequestError="ext-request-error",i.ExtToast="ext-toast",i.ExtSpinner="ext-spinner",i.ExtContext="ext-context",i.ExtTabs="ext-tabs",i.ExtSavedStart="ext-saved-start",i.ExtSavedEnd="ext-saved-end",i.ExtSavedError="ext-saved-error",i.ExtClose="ext-close",i.ExtRejectClose="ext-reject-close",i.AppReload="ext-reload",i.AppReady="app-ready",i.AppChangeState="app-change-state",i.AppSaveAndClose="app-save-and-close",i.AppFilesSelected="app-files-selected",i.AppConfirmAccept="app-confirm-accept",i.AppConfirmReject="app-confirm-reject",i.AppContextAction="app-context-action",i.AppTabAction="app-tab-action",i.AppChangeTheme="app-change-theme",(o=e.CallNameEvent||(e.CallNameEvent={})).Update="update",o.ForceSave="force-save-version",(r=e.TransportNavigationTarget||(e.TransportNavigationTarget={})).Parent="_parent",r.Self="_self",r.Cache="_cache",(n=e.TransportCallEvent||(e.TransportCallEvent={})).Call="call",n.Resolve="resolve",n.Reject="reject"},1548:(t,e)=>{var n,r,o;Object.defineProperty(e,"__esModule",{value:!0}),e.UserAuthType=e.UserType=e.UserStatus=void 0,(o=e.UserStatus||(e.UserStatus={})).Registering="registering",o.Activated="activated",o.Blocked="blocked",o.BlockedByLicense="blocked_by_license",(r=e.UserType||(e.UserType={})).User="user",r.Guest="guest",(n=e.UserAuthType||(e.UserAuthType={})).Native="native",n.Ldap="ldap"},3607:function(t,e,n){var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),n(6626),n(1576),o(n(1495),e),o(n(6796),e),o(n(2176),e),o(n(2462),e),o(n(3534),e),o(n(8181),e),o(n(455),e)},1576:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}return n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n(3607)})()));
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["next-box"]=e():t["next-box"]=e()}(globalThis,(()=>(()=>{"use strict";var t={6470:t=>{function e(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function r(t,e){for(var r,n="",o=0,i=-1,a=0,s=0;s<=t.length;++s){if(s<t.length)r=t.charCodeAt(s);else{if(47===r)break;r=47}if(47===r){if(i===s-1||1===a);else if(i!==s-1&&2===a){if(n.length<2||2!==o||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var p=n.lastIndexOf("/");if(p!==n.length-1){-1===p?(n="",o=0):o=(n=n.slice(0,p)).length-1-n.lastIndexOf("/"),i=s,a=0;continue}}else if(2===n.length||1===n.length){n="",o=0,i=s,a=0;continue}e&&(n.length>0?n+="/..":n="..",o=2)}else n.length>0?n+="/"+t.slice(i+1,s):n=t.slice(i+1,s),o=s-i-1;i=s,a=0}else 46===r&&-1!==a?++a:a=-1}return n}var n={resolve:function(){for(var t,n="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var a;i>=0?a=arguments[i]:(void 0===t&&(t=process.cwd()),a=t),e(a),0!==a.length&&(n=a+"/"+n,o=47===a.charCodeAt(0))}return n=r(n,!o),o?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(t){if(e(t),0===t.length)return".";var n=47===t.charCodeAt(0),o=47===t.charCodeAt(t.length-1);return 0!==(t=r(t,!n)).length||n||(t="."),t.length>0&&o&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return e(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,r=0;r<arguments.length;++r){var o=arguments[r];e(o),o.length>0&&(void 0===t?t=o:t+="/"+o)}return void 0===t?".":n.normalize(t)},relative:function(t,r){if(e(t),e(r),t===r)return"";if((t=n.resolve(t))===(r=n.resolve(r)))return"";for(var o=1;o<t.length&&47===t.charCodeAt(o);++o);for(var i=t.length,a=i-o,s=1;s<r.length&&47===r.charCodeAt(s);++s);for(var p=r.length-s,c=a<p?a:p,u=-1,l=0;l<=c;++l){if(l===c){if(p>c){if(47===r.charCodeAt(s+l))return r.slice(s+l+1);if(0===l)return r.slice(s+l)}else a>c&&(47===t.charCodeAt(o+l)?u=l:0===l&&(u=0));break}var d=t.charCodeAt(o+l);if(d!==r.charCodeAt(s+l))break;47===d&&(u=l)}var f="";for(l=o+u+1;l<=i;++l)l!==i&&47!==t.charCodeAt(l)||(0===f.length?f+="..":f+="/..");return f.length>0?f+r.slice(s+u):(s+=u,47===r.charCodeAt(s)&&++s,r.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(e(t),0===t.length)return".";for(var r=t.charCodeAt(0),n=47===r,o=-1,i=!0,a=t.length-1;a>=1;--a)if(47===(r=t.charCodeAt(a))){if(!i){o=a;break}}else i=!1;return-1===o?n?"/":".":n&&1===o?"//":t.slice(0,o)},basename:function(t,r){if(void 0!==r&&"string"!=typeof r)throw new TypeError('"ext" argument must be a string');e(t);var n,o=0,i=-1,a=!0;if(void 0!==r&&r.length>0&&r.length<=t.length){if(r.length===t.length&&r===t)return"";var s=r.length-1,p=-1;for(n=t.length-1;n>=0;--n){var c=t.charCodeAt(n);if(47===c){if(!a){o=n+1;break}}else-1===p&&(a=!1,p=n+1),s>=0&&(c===r.charCodeAt(s)?-1==--s&&(i=n):(s=-1,i=p))}return o===i?i=p:-1===i&&(i=t.length),t.slice(o,i)}for(n=t.length-1;n>=0;--n)if(47===t.charCodeAt(n)){if(!a){o=n+1;break}}else-1===i&&(a=!1,i=n+1);return-1===i?"":t.slice(o,i)},extname:function(t){e(t);for(var r=-1,n=0,o=-1,i=!0,a=0,s=t.length-1;s>=0;--s){var p=t.charCodeAt(s);if(47!==p)-1===o&&(i=!1,o=s+1),46===p?-1===r?r=s:1!==a&&(a=1):-1!==r&&(a=-1);else if(!i){n=s+1;break}}return-1===r||-1===o||0===a||1===a&&r===o-1&&r===n+1?"":t.slice(r,o)},format:function(t){if(null===t||"object"!=typeof t)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return function(t,e){var r=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+n:r+"/"+n:n}(0,t)},parse:function(t){e(t);var r={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return r;var n,o=t.charCodeAt(0),i=47===o;i?(r.root="/",n=1):n=0;for(var a=-1,s=0,p=-1,c=!0,u=t.length-1,l=0;u>=n;--u)if(47!==(o=t.charCodeAt(u)))-1===p&&(c=!1,p=u+1),46===o?-1===a?a=u:1!==l&&(l=1):-1!==a&&(l=-1);else if(!c){s=u+1;break}return-1===a||-1===p||0===l||1===l&&a===p-1&&a===s+1?-1!==p&&(r.base=r.name=0===s&&i?t.slice(1,p):t.slice(s,p)):(0===s&&i?(r.name=t.slice(1,a),r.base=t.slice(1,p)):(r.name=t.slice(s,a),r.base=t.slice(s,p)),r.ext=t.slice(a,p)),s>0?r.dir=t.slice(0,s-1):i&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};n.posix=n,t.exports=n},4965:function(t,e,r){var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionApi=void 0;var i=r(3534),a="/static/extensions",s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.list=function(){return this.rest.get(a)},e.prototype.getByUniqKey=function(t){return this.rest.get("".concat(a,"/").concat(t))},e}(i.Api);e.ExtensionApi=s},8181:function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),o(r(8513),e),o(r(5481),e),o(r(2181),e),o(r(6453),e),o(r(4965),e)},5481:function(t,e,r){var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.StaticApi=void 0;var a=r(1892),s=r(6392),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.upload=function(t,e,r){void 0===r&&(r="");var n=new FormData;return n.set("file",t,e),(0,s.sendRequest)(this.makeApiPath(r),{method:"POST",body:n}).then((function(t){return t.json()}))},e.prototype.get=function(t){return(0,s.sendRequest)(this.makeApiPath(t),{method:"GET"})},e.prototype.delete=function(t){return(0,s.sendRequest)(this.makeApiPath(t),{method:"DELETE"}).catch((function(t){return t}))},e.prototype.makeApiPath=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return t.prototype.makeApiPath.apply(this,i(["static/files"],e,!1))},e}(a.Api);e.StaticApi=p},2181:function(t,e,r){var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},i.apply(this,arguments)},a=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.StorageApi=void 0;var s=r(5307),p=r(1892),c=r(3566),u=r(6392),l=r(5299),d=r(6796),f=r(3831),h=new Map,v=function(t,e,r){return function(n){return f.Transport.send(t,{path:e,status:n.status,options:r}),n}},y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.list=function(t){return t.path&&(t.path=this.relativePath(t.path)),this.rest.get("/storage",t)},e.prototype.info=function(t){return this.rest.get("/storage/element",{path:t})},e.prototype.create=function(t,e,r,n){var o=i(i({is_work_dir:this.state.extenstion.type===d.ExtensionType.WorkDir},n),{name:t,path:this.relativePath(e),type:r,divide_id:this.state.api.query.divide_id||null});return(0,u.sendRequest)(this.makeApiPath("/element"),{method:"POST",headers:this.makeHeaders({"Content-Type":"application/json"}),body:JSON.stringify(o)}).then(this.responseJSON)},e.prototype.delete=function(t,e){return(0,u.sendRequest)(this.makeApiPath("/element")+this.makeSearchParams({path:t,hard:e}),{method:"DELETE",headers:this.makeHeaders()})},e.prototype.makeDownloadPath=function(t,e){var r=i({},e),n={path:t,with_preview:!1};return r.cache||(n.t=Date.now()),r.imagePreview&&(n.with_preview=!0),this.makeApiPath("/files")+this.makeSearchParams(n)},e.prototype.makeImagePreview=function(t,e){return this.makeDownloadPath(t,i(i({},e),{imagePreview:!0}))},e.prototype.download=function(t){return(0,u.sendRequest2)("GET",this.makeApiPath("/files")+this.makeSearchParams({path:this.relativePath(t,this.state.storage.path),t:Date.now()}),{headers:this.makeHeaders(),cache:"no-cache"})},e.prototype.replace=function(t,e,r){var n=e||this.state.storage.path;return f.Transport.send(d.TransportEvent.ExtSavedStart,{path:n,options:r}),(0,u.sendRequest2)("PUT",this.makeApiPath("/files")+this.makeSearchParams({path:this.relativePath(e,this.state.storage.path)}),{cache:"no-cache",body:t,headers:this.makeHeaders()}).then(v(d.TransportEvent.ExtSavedEnd,n,r)).catch(v(d.TransportEvent.ExtSavedError,n,r))},e.prototype.liveReplace=function(t,e,r,n){var o=this,i=[this.state.storage.root,this.state.storage.rootID,this.relativePath(e,this.state.storage.path)].join("-"),a=h.get(i);a||(a={status:d.RequestStatus.Done,requests:[]},h.set(i,a)),a.requests.push({path:e,body:t});var s=function(){if(a&&a.status!==d.RequestStatus.Wait){var t=a.requests.pop();a.requests=[],t?(a.status=d.RequestStatus.Wait,o.replace(t.body,t.path,n).then((function(t){return a.status=d.RequestStatus.Done,s(),t})).catch((function(t){return a.status=d.RequestStatus.Reject,s(),t}))):r&&r()}};s()},e.prototype.upload=function(t,e){var r=new FormData;return r.set("path",this.relativePath(t)),this.state.api.query.divide_id&&r.set("divide_id",this.state.api.query.divide_id),r.set("file",e),f.Transport.send(d.TransportEvent.ExtSavedStart,t),(0,u.sendRequest)(this.makeApiPath("/files"),{method:"POST",body:r,headers:this.makeHeaders()}).then(v(d.TransportEvent.ExtSavedEnd,t)).catch(v(d.TransportEvent.ExtSavedError,t)).then(this.responseJSON,this.responseJSON)},e.prototype.uploadNet=function(t,e,r){return void 0===r&&(r=!1),f.Transport.send(d.TransportEvent.ExtSavedStart,t),(0,u.sendRequest)(this.makeApiPath("/files/net"),{method:"POST",headers:this.makeHeaders({"Content-Type":"application/json"}),body:JSON.stringify({url:e,overwrite:r,path:this.relativePath(t)})}).then(v(d.TransportEvent.ExtSavedEnd,t)).catch(v(d.TransportEvent.ExtSavedError,t)).then(this.responseJSON)},e.prototype.createMeta=function(t,e,r){return this.create(t||this.metaName,e||"","file",r)},e.prototype.readMeta=function(t){return this.download(t||this.metaName)},e.prototype.saveMeta=function(t,e){return this.replace(t,e||this.metaName)},e.prototype.relativePath=function(t,e){return!t&&e?e||"":(0,s.pathJoin)(this.state.storage.info.dir||"",t||"")},e.prototype.makeApiPath=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n="storage";return"fca"===this.state.storage.root&&(n="disk/".concat(this.state.storage.rootID)),t.prototype.makeApiPath.apply(this,a([n],e,!1))},Object.defineProperty(e.prototype,"metaName",{get:function(){return"."+(0,l.translite)((0,c.getLang)(this.state.extenstion.name))},enumerable:!1,configurable:!0}),e}(p.Api);e.StorageApi=y},8513:(t,e)=>{var r;Object.defineProperty(e,"__esModule",{value:!0}),e.OrderDirection=void 0,(r=e.OrderDirection||(e.OrderDirection={})).DEFAULT="",r.ASC="asc",r.DESC="desc"},6453:function(t,e,r){var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.UserApi=void 0;var i=r(1892),a="/users",s="/users/me",p="".concat(s,"/avatars"),c="".concat(s,"/sessions"),u="".concat(s,"/tokens"),l="".concat(a,"/change-password"),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.logout=function(){return this.rest.get("/logout")},e.prototype.get=function(t){return this.rest.get("".concat(a,"/").concat(t))},e.prototype.list=function(t){return this.rest.get(a,t)},e.prototype.restore=function(t){return this.rest.post("".concat(a,"/").concat(t,"/restore"))},e.prototype.delete=function(t,e){return this.rest.delete("".concat(a,"/").concat(t),e)},e.prototype.update=function(t){return this.rest.put(a+"/".concat(t.id),JSON.stringify(t))},e.prototype.create=function(t){return this.rest.post(a,JSON.stringify(t))},e.prototype.createToken=function(t){return this.rest.post(u,JSON.stringify(t))},e.prototype.listToken=function(t){return this.rest.get(u,t)},e.prototype.deleteToken=function(t){return this.rest.delete("".concat(u,"/").concat(t))},e.prototype.changePassword=function(t){return this.rest.post(l,JSON.stringify(t))},e.prototype.me=function(){return this.rest.get(s)},e.prototype.meUploadAvatar=function(t,e){var r=new FormData;return r.append("file",t,e),this.rest.post(p,r)},e.prototype.meDeleteAvatar=function(){return this.rest.delete(p)},e.prototype.meListSession=function(t){return this.rest.get(c,t)},e.prototype.meDeleteSession=function(t){var e=c;return t&&(e+="/".concat(t)),this.rest.delete(e)},e}(i.Api);e.UserApi=d},1892:function(t,e,r){var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)},o=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Api=void 0;var i=r(2462),a=r(3755),s=function(){function t(t){void 0===t&&(t=(0,a.defaultState)());var e=this;this.rest={get:function(t,r,o){return(0,i.sendRequest2)("GET",t,{prefix:e.state.api.prefix,host:e.state.api.host,headers:e.makeHeaders(o),params:n(n({},e.state.api.query),r),cache:"no-cache"}).then(e.responseJSON)},post:function(t,r,o){return(0,i.sendRequest2)("POST",t,{prefix:e.state.api.prefix,host:e.state.api.host,headers:e.makeHeaders(o),params:n({},e.state.api.query),body:r}).then(e.responseJSON)},put:function(t,r,o){return(0,i.sendRequest2)("PUT",t,{prefix:e.state.api.prefix,host:e.state.api.host,headers:e.makeHeaders(o),params:n({},e.state.api.query),cache:"no-cache",body:r}).then(e.responseJSON)},delete:function(t,r,o){return(0,i.sendRequest2)("PUT",t,{prefix:e.state.api.prefix,host:e.state.api.host,headers:e.makeHeaders(o),params:n(n({},e.state.api.query),r)}).then(e.responseJSON)}},this.changeState(t)}return t.prototype.changeState=function(t){this.state=t},t.prototype.makeSearchParams=function(t){if(!t)return"";t=n(n({},this.state.api.query),t);var e=Object.fromEntries(Object.entries(t).map((function(t){var e=t[0],r=t[1];return[e,encodeURIComponent(r)]})));return"?"+new URLSearchParams(e).toString()},t.prototype.makeHeaders=function(t){return n(n({},t),this.state.api.headers)},t.prototype.responseJSON=function(t){return(t.headers.get("content-type")||"").indexOf("/json")>=0&&t.status>=200&&t.status<400?t.json():(console.warn("Parse json error"),Promise.resolve({}))},t.prototype.makeApiPath=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new URL(decodeURI(i.pathJoin.apply(void 0,o([this.state.api.prefix],t,!1))),this.state.api.host)},t}();e.Api=s},7970:function(t,e){var r=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.EventEmitter=void 0;var n=function(){function t(){this._handlers=new Map,this._globalHandlers=new Set}return t.prototype.listen=function(t){this._globalHandlers.add(t)},t.prototype.on=function(t,e){var r;this._handlers.has(t)||this._handlers.set(t,new Set),null===(r=this._handlers.get(t))||void 0===r||r.add(e)},t.prototype.off=function(t,e){var r;null===(r=this._handlers.get(t))||void 0===r||r.delete(e)},t.prototype.emit=function(t){for(var e,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];null===(e=this._handlers.get(t))||void 0===e||e.forEach((function(t){t&&t.apply(void 0,n)})),this._globalHandlers.forEach((function(e){e.apply(void 0,r([t],n,!1))}))},t}();e.EventEmitter=n},5892:function(t,e,r){var n,o,i,a=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.FileEngine=void 0;var s=r(8181),p=r(2462),c=r(3755),u=r(1892),l=Symbol("VERSION"),d=Symbol("CONFIG"),f=Symbol("API"),h=Symbol("UPGRADE"),v=function(t){function e(e,r,n){void 0===n&&(n=(0,c.defaultState)());var a=t.call(this,n)||this;return a[o]=0,a[i]=new Map,a[l]=e,a[d]=r,a[f]=new s.StorageApi,a[f].changeState(n),a}return a(e,t),Object.defineProperty(e.prototype,"name",{get:function(){var t;return(null===(t=this[d])||void 0===t?void 0:t.name)||""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){var t;return(null===(t=this[d])||void 0===t?void 0:t.path)||""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fullName",{get:function(){return(0,p.pathJoin)(this.path,this.name)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this[l]},enumerable:!1,configurable:!0}),e.prototype.changeState=function(e){var r;t.prototype.changeState.call(this,e),null===(r=this[f])||void 0===r||r.changeState(e)},e.prototype.migration=function(t,e){if(this[h].has(t))throw"Upgrader migration version ".concat(t," exist");this[h].set(t,e)},e.prototype.info=function(){return this[f].info(this.fullName)},e.prototype.download=function(){var t=this;return this[f].download().then((function(t){return parseInt(t.headers.get("content-length")||"")>0?t.json():""})).then((function(e){var r=null,n=-1;return(0,p.isObject)(e)&&(r=e.body||e||null,n=e.version||-1),t.runMigrate(n,r)}))},e.prototype.create=function(t,e){var r=this;return this[f].create(this.name,this.path,"file",e).then((function(){return r.replace(t)}))},e.prototype.delete=function(t){return this[f].delete(this.fullName,t)},e.prototype.replace=function(t){return this[f].replace({version:this.version,body:t})},e.prototype.liveReplace=function(t,e){return this[f].liveReplace(JSON.stringify({version:this.version,body:t}),this.path,e)},e.prototype.runMigrate=function(t,e){var r=this,n=Array.from(this[h].keys()).sort(),o=n[n.length-1]||0;return new Promise((function(i,a){var s=e;t<o&&n.forEach((function(e){if(e>t){var n=r[h].get(e);n&&(s=n(s))}})),i(s)}))},e}(u.Api);e.FileEngine=v,o=l,i=h},3534:function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),o(r(1892),e),o(r(5892),e),o(r(7970),e)},455:function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),o(r(6844),e)},6844:function(t,e,r){var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},i.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.defineNbFrameComponent=void 0;var a=r(3534),s=r(2462),p=r(2554),c=r(2176),u=r(6796),l=Symbol("ROOT"),d=Symbol("FRAME"),f=Symbol("FRAME_CONFIG"),h=Symbol("TRANSPORT"),v=Symbol("EVENT_EMITTER");e.defineNbFrameComponent=function(){return customElements.define("nb-frame",y)};var y=function(t){function e(){var e=t.call(this)||this;return e.apiPrefix="/api/v1",e.origin=window.location.origin,e.version=1,e.view=u.ViewState.view,e.debug=!1,e.uuid=(0,p.uuid)(),e[r]=new a.EventEmitter,e[n]={transportParams:{version:1,uuid:e.uuid}},e}var r,n;return o(e,t),e.prototype.connectedCallback=function(){this[l]=this.attachShadow({mode:"open"})},e.prototype.disconnectedCallback=function(){var t;null===(t=this[h])||void 0===t||t.destroy()},e.prototype.send=function(t,e){var r;null===(r=this[h])||void 0===r||r.send(t,e)},e.prototype.listen=function(t){this[v].listen(t)},e.prototype.off=function(t,e){this[v].off(t,e)},e.prototype.on=function(t,e){this[v].on(t,e)},Object.defineProperty(e.prototype,"extensionModel",{set:function(t){var e=t.type,r=t.file,n=t.work_dir,o=t.app,i=t.devlocal,a=t.path,s="";e===u.ExtensionType.File&&(s=r.index),e===u.ExtensionType.WorkDir&&(s=n.index),e===u.ExtensionType.App&&(s=o.menu.index),this[f].ext=t,this[f].extSrc=i?s:"".concat(this.apiPrefix,"/extensions/static/").concat(a,"/").concat(s)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transportParams",{get:function(){return i(i({},(0,s.transportProps)()),this[f].transportParams)},set:function(t){this[f].transportParams=i(i({},this[f].transportParams),t),this.uuid=this[f].transportParams.uuid||this.uuid},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"routeData",{set:function(t){this[f].routeData=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"user",{set:function(t){this[f].user=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nvigationState",{set:function(t){this[f].navigationState=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"framePath",{get:function(){var t=new URL(this[f].extSrc||"",location.origin);return this.transportParams.host&&(t.hostname=this.transportParams.host),this.transportParams.port&&(t.port=this.transportParams.port.toString()),t.toString()},enumerable:!1,configurable:!0}),e.prototype.run=function(){var t,e,r=this,n=document.createElement("iframe");n.setAttribute("allowfullscreen",""),n.name=JSON.stringify(this.transportParams),n.src=this.framePath;var o=this.resetTransport();return o.listen((function(t,e,n){t===u.TransportEvent.ExtInit&&r.send(u.TransportEvent.AppReady,r.state)})),this[d]=n,this[l]&&(this[l].innerHTML=""),null===(t=this[l])||void 0===t||t.appendChild(this.frameStyle),null===(e=this[l])||void 0===e||e.appendChild(this[d]),o},Object.defineProperty(e.prototype,"state",{get:function(){var t=this[f],e=t.ext,r=t.routeData,n=t.user,o=t.navigationState,i=(0,s.fileInfo)((null==r?void 0:r.path)||"");(null==e?void 0:e.type)===u.ExtensionType.WorkDir&&(i.dir=(0,s.pathJoin)(i.dir,i.base),i.base="",i.name="");var a={},p={};return(null==r?void 0:r.root)===u.StorageRoot.divide&&(a.divide_id=Number(r.rootId),i.dir=(0,s.pathJoin)("/",r.path||""),r.divideDir||(i.dir="/")),(null==r?void 0:r.root)===u.StorageRoot.fca&&(a.disk_id=Number(r.rootId)),(null==r?void 0:r.root)===u.StorageRoot.share&&(a.share_token=r.share_token,p.Authorization="Sharing ".concat(r.share_token),r.share_password&&(a.share_pass=r.share_password),p.SharePass=r.share_password),{debug:!!this.debug,view:this.view,extenstion:{id:(null==e?void 0:e.id)||0,name:(null==e?void 0:e.name)||{ru:""},type:(null==e?void 0:e.type)||u.ExtensionType.File},api:{host:this.origin,prefix:this.apiPrefix,headers:p,query:a},user:n,storage:{info:i,root:(null==r?void 0:r.root)||u.StorageRoot.my,rootID:(null==r?void 0:r.rootId)||0,path:(null==r?void 0:r.path)||""},initialNavigation:o,setting:null==e?void 0:e.settings}},enumerable:!1,configurable:!0}),e.prototype.resetTransport=function(){var t;null===(t=this[h])||void 0===t||t.destroy();var e=new c.NBTransport(this.transportParams);return this[h]=e,this[h].subscribe(),this[h]},Object.defineProperty(e.prototype,"frameStyle",{get:function(){var t=document.createElement("style");return t.textContent="\n iframe {\n display: block;\n width: inherit;\n height: inherit;\n border: none;\n background: none;\n }\n ",t},enumerable:!1,configurable:!0}),r=v,n=f,e.observedAttributes=["apiPrefix","origin","version","view","debug","uuid","navigationState","user"],e}(HTMLElement)},1615:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.browserNavigate=void 0;var n=r(7424),o=r(837);e.browserNavigate=function(t){if((0,o.isBrowser)()){var e=(0,n.getGlobal)(),r=t.path,i=t.queryParams,a=new URL(r||"",window.origin),s=i||{};Object.keys(s).forEach((function(t){var e=s[t];e&&a.searchParams.append(t,e.toString())})),e.history.pushState({},"",a.toString())}}},5762:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.confirmReloadOrNotificateError=void 0;var n=r(2176),o=r(6796);e.confirmReloadOrNotificateError=function(t,e,r){if("GET"!==r)n.Transport.send(o.TransportEvent.ExtToast,{severity:"error",title:"Ошибка",message:"".concat(t,": ").concat(e)});else{var i="Не удалось загрузить данные, перезагрузить страницу? Код: ".concat(t);confirm(i)&&window.location.reload()}}},3755:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.defaultState=void 0;var n=r(6796);e.defaultState=function(){return{extenstion:{id:0,name:{},type:n.ExtensionType.File},api:{host:window.location.origin,prefix:"/api/v1",headers:{},query:{}},debug:!0,view:n.ViewState.view,storage:{root:n.StorageRoot.my,rootID:0,path:"",info:{base:"",dir:"",ext:"",name:"",root:""}}}}},4223:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.dirname=void 0;var n=r(6470).sep,o=r(5307);e.dirname=function(t){if(0===(t=(0,o.pathJoin)(n,t)).length)return".";for(var e=t.charCodeAt(0),r=47===e,i=-1,a=!0,s=t.length-1;s>=1;--s)if(47===(e=t.charCodeAt(s))){if(!a){i=s;break}}else a=!1;return-1===i?r?n:".":r&&1===i?n+n:t.slice(0,i)}},572:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.fileInfo=void 0;var n=r(6470).sep,o=r(5307);e.fileInfo=function(t){var e={root:"",dir:"",base:"",ext:"",name:""};if(0===(t=(0,o.pathJoin)(n,t)).length)return e;var r,i=t.charCodeAt(0),a=47===i;a?(e.root=n,r=1):r=0;for(var s=-1,p=0,c=-1,u=!0,l=t.length-1,d=0;l>=r;--l)if(47!==(i=t.charCodeAt(l)))-1===c&&(u=!1,c=l+1),46===i?-1===s?s=l:1!==d&&(d=1):-1!==s&&(d=-1);else if(!u){p=l+1;break}return-1===s||-1===c||0===d||1===d&&s===c-1&&s===p+1?-1!==c&&(e.base=e.name=0===p&&a?t.slice(1,c):t.slice(p,c)):(0===p&&a?(e.name=t.slice(1,s),e.base=t.slice(1,c)):(e.name=t.slice(p,s),e.base=t.slice(p,c)),e.ext=t.slice(s,c)),p>0?e.dir=t.slice(0,p-1):a&&(e.dir=n),e}},1395:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getConfigData=void 0;var n=r(6796);e.getConfigData=function(t){var e,r,o,i,a={name:t.name,type:t.type,icon:t.icon,pictogram:"",index:""};switch(t.type){case n.ExtensionType.File:a.index=(null===(e=t.file)||void 0===e?void 0:e.index)||"";break;case n.ExtensionType.WorkDir:a.index=(null===(r=t.work_dir)||void 0===r?void 0:r.index)||"";break;case n.ExtensionType.App:a.index=(null===(o=t.app)||void 0===o?void 0:o.menu.index)||"",a.pictogram=(null===(i=t.app)||void 0===i?void 0:i.menu.icon)||""}return a}},7424:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getGlobal=void 0;var n=r(837);e.getGlobal=function(){return(0,n.isBrowser)()?window:r.g}},3566:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getLang=void 0,e.getLang=function(t,e){if(void 0===e&&(e="ru"),t[e])return t[e];var r=Object.keys(t).pop();return r&&t[r]?t[r]:""}},2462:function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),o(r(4223),e),o(r(572),e),o(r(3566),e),o(r(719),e),o(r(5307),e),o(r(6392),e),o(r(5299),e),o(r(7424),e),o(r(837),e),o(r(2008),e),o(r(4867),e),o(r(7538),e),o(r(3742),e),o(r(1395),e),o(r(9858),e),o(r(1615),e),o(r(3755),e),o(r(5762),e)},837:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isBrowser=void 0,e.isBrowser=function(){return"undefined"!=typeof window}},2008:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isObject=void 0,e.isObject=function(t){return null!=t&&"Object"===t.constructor.name}},4867:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isString=void 0,e.isString=function(t){return"[object String]"===Object.prototype.toString.call(t)}},7538:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.notificateRequestError=void 0;var n=r(2176),o=r(6796);e.notificateRequestError=function(t,e){n.Transport.send(o.TransportEvent.ExtRequestError,{status:t,message:e})}},719:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parentURL=void 0,e.parentURL=function(){return new URL(window.location!=window.parent.location?document.referrer:document.location.href)}},5307:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.pathJoin=void 0;var n=r(6470).sep;e.pathJoin=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=[],o=0,i=t.length;o<i;o++)r=r.concat(t[o].split(n));var a=[];for(o=0,i=r.length;o<i;o++){var s=r[o];s&&"."!==s&&(".."===s?a.pop():a.push(s))}return""===r[0]&&a.unshift(""),a.join(n)||(a.length?n:".")}},3742:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.safeJson=void 0,e.safeJson=function(t,e){try{return JSON.parse(t)}catch(t){return e}}},6392:function(t,e,r){var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.sendRequest2=e.sendRequest=void 0;var o=r(2176),i=r(6796),a=r(5762),s=r(7538),p=r(5307),c=null,u=function(){return c||(c=o.Transport.call(i.CallNameEvent.Update).catch((function(t){throw c=null,t})).then((function(t){return c=null,t}))),c};e.sendRequest=function(t,e){return u().then((function(){return fetch(t,e)})).then((function(t){return t.status>=400&&(0,s.notificateRequestError)(t.status,""),t})).catch((function(t){throw t.status>=400&&(0,s.notificateRequestError)(t.status,t.message),t}))},e.sendRequest2=function(t,e,r){var o=n({},r.headers);r.params&&(e+="?"+l(r.params)),r.prefix&&(e=(0,p.pathJoin)(r.prefix,e));var i={method:t,cache:r.cache,headers:o,body:r.body};return u().then((function(){return fetch(new URL(decodeURI(e),r.host),i)})).then((function(e){var r=e.status,n=e.statusText;return r>=400&&403!==r&&404!==r&&(0,a.confirmReloadOrNotificateError)(r,n,t),e})).catch((function(t){throw d(t.status,t.message),t}))};var l=function(t){var e=new URLSearchParams;return Object.keys(t).forEach((function(r){Array.isArray(t[r])?t[r].forEach((function(t){e.append(r,t)})):e.append(r,t[r])})),e},d=function(t,e){t>=400&&(0,s.notificateRequestError)(t,e)}},5299:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.translite=void 0;var r={а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"e",ж:"zh",з:"z",и:"i",й:"i",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"h",ц:"c",ч:"cz",ш:"sh",щ:"scz",ы:"y",ь:"",э:"e",ю:"u",я:"ja"," ":"-"};e.translite=function(t){return(t=(t=(t=(t=(t=t.toLocaleLowerCase()).trim()).replace(/ -/gi,"-")).replace(/- /gi,"-")).replace(/\s{2,}/gi," ")).split("").map((function(t){return/[a-z0-9]/i.test(t)?t:r[t]||""})).join("")}},9858:function(t,e,r){var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.transportProps=void 0;var o=(0,r(7424).getGlobal)();e.transportProps=function(){return n(n({},o._nb_global_props),i())};var i=function(){try{return JSON.parse(window.name||"")}catch(t){return{}}}},2554:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.uuid=void 0,e.uuid=function(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(t){return(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)}))}},1495:function(t,e,r){var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.NextBox=void 0;var i=r(7970),a=r(2462),s=r(3755),p=r(3831),c=r(512),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.init=function(t){var e=this,r=function(t){return e.state=t};if(!p.Transport.engineType){var n=(0,s.defaultState)();r(n),t&&t(n)}p.Transport.on(c.TransportEvent.AppReady,(function(e){r(e),t&&t(e)})),p.Transport.on(c.TransportEvent.AppReload,(function(){window.location.reload()})),p.Transport.on(c.TransportEvent.AppChangeState,r),p.Transport.send(c.TransportEvent.ExtInit)},e.prototype.prepareNavigate=function(){var t,e=null===(t=this.state)||void 0===t?void 0:t.initialNavigation;(null==e?void 0:e.target)&&[c.TransportNavigationTarget.Cache,c.TransportNavigationTarget.Self].includes(e.target)&&(0,a.browserNavigate)(e)},e}(i.EventEmitter);e.NextBox=u},4708:()=>{!function(){if(void 0!==window.Reflect&&void 0!==window.customElements&&!window.customElements.polyfillWrapFlushCallback){var t=HTMLElement;window.HTMLElement=function(){return Reflect.construct(t,[],this.constructor)},HTMLElement.prototype=t.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,t)}}()},6626:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),r(4708)},3185:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TransportEmpty=void 0;var r=function(){function t(){}return t.prototype.send=function(t,e){},t.prototype.subscribe=function(t){},t.prototype.destroy=function(){},t}();e.TransportEmpty=r},2176:function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),o(r(6595),e),o(r(3831),e)},6595:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},3521:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TransportPostMessage=void 0;var n=r(2462),o=function(){function t(t){var e=this;this.listenHandler=function(t){var r=t.data.event,o=t.data.uuid,i=t.data.instanceUid,a=(0,n.safeJson)(t.data.payload,t.data.payload);e.handler&&e.handler(r,a,o,i)},this._parems=t}return Object.defineProperty(t.prototype,"parent",{get:function(){var t,e;return(null===(t=this._parems)||void 0===t?void 0:t.parent)?null===(e=this._parems)||void 0===e?void 0:e.parent:parent||null},enumerable:!1,configurable:!0}),t.prototype.send=function(t,e,r,n){var o,i;null===(o=this.parent)||void 0===o||o.postMessage({event:t,uuid:r||(null===(i=this._parems)||void 0===i?void 0:i.uuid),instanceUid:n,payload:function(){try{return JSON.stringify(e)}catch(t){return e}}()},document.location.origin)},t.prototype.subscribe=function(t){var e;this.handler=t,null===(e=this.parent)||void 0===e||e.addEventListener("message",this.listenHandler)},t.prototype.destroy=function(){var t;null===(t=this.parent)||void 0===t||t.removeEventListener("message",this.listenHandler)},t}();e.TransportPostMessage=o},3831:function(t,e,r){var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},i.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Transport=e.NBTransport=e.TransportParentHandlers=e.EngineType=void 0;var a,s=r(512),p=r(7970),c=r(3521),u=r(7424),l=r(8742),d=r(3185),f=r(9858),h=r(2462),v=r(2554);!function(t){t.WebSocket="websocket",t.PostMessage="postmessage",t.Empty=""}(a=e.EngineType||(e.EngineType={}));var y=(0,f.transportProps)(),g=(0,u.getGlobal)();e.TransportParentHandlers={},g._nb_handlers=e.TransportParentHandlers;var b=function(t){function r(e){var r=t.call(this)||this;return r.instanceUid=(0,v.uuid)(),r.engineType=a.Empty,r._params=i(i({},y),e),r.engineType=r._params.engine||a.Empty,r.engine=new d.TransportEmpty,r.engineType===a.PostMessage&&(r.engine=new c.TransportPostMessage(r._params)),r.engineType===a.WebSocket&&(r.engine=new l.TransportWebsocket(r._params)),r}return o(r,t),r.prototype.call=function(t){for(var e,r=this,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return((null===(e=this._params)||void 0===e?void 0:e.version)||0)<2?Promise.resolve([]):new Promise((function(e,o){var i=(0,v.uuid)(),a={id:i,name:t,params:n,event:s.TransportCallEvent.Call},p=function(n){n.id===i&&n.name===t&&(r.off(s.TransportEvent.CallResponse,p),n.event===s.TransportCallEvent.Reject?o(n.params):e(n.params))};r.send(s.TransportEvent.Call,a),r.on(s.TransportEvent.CallResponse,p)}))},r.prototype.send=function(t,e,r){var n;(null===(n=this._params)||void 0===n?void 0:n.debug)&&console.log("transport.send",this._params,t,e,r),this.engine.send(t,e,r,this.instanceUid)},r.prototype.subscribe=function(){var t=this;this.engine.subscribe((function(e,r,n,o){var i,a,p;!e||o===t.instanceUid||((null===(i=t._params)||void 0===i?void 0:i.version)||0)>0&&n!==(null===(a=t._params)||void 0===a?void 0:a.uuid)||((null===(p=t._params)||void 0===p?void 0:p.debug)&&console.log("transport.message",t._params,n,e,r),e===s.TransportEvent.Call&&r.name===s.CallNameEvent.ForceSave&&t.forceSaveVersion(r),t.emit(e,r,n))}))},r.prototype.destroy=function(){this.engine.destroy()},r.prototype.forceSaveVersion=function(t){var e=t.id,r=t.name;this.send(s.TransportEvent.CallResponse,{id:e,name:r,event:s.TransportCallEvent.Resolve})},r.prototype.changeContent=function(t){e.Transport.send(s.TransportEvent.ExtChangeContent,t)},r.prototype.navigate=function(t,r,n){void 0===n&&(n=s.TransportNavigationTarget.Cache);var o={path:t,queryParams:r,target:n};e.Transport.send(s.TransportEvent.ExtNavigateTo,o),n===s.TransportNavigationTarget.Self&&(0,h.browserNavigate)(o)},r.prototype.close=function(){e.Transport.send(s.TransportEvent.ExtClose)},r.prototype.rejectClose=function(){e.Transport.send(s.TransportEvent.ExtRejectClose)},r.prototype.showAccessPanel=function(){e.Transport.send(s.TransportEvent.ExtShowAccessPanel)},r.prototype.openModalFilesSelect=function(t){e.Transport.send(s.TransportEvent.ExtOpenModalFilesSelect,t)},r.prototype.openModalConfirm=function(t){e.Transport.send(s.TransportEvent.ExtShowConfirm,t)},r.prototype.toast=function(t){e.Transport.send(s.TransportEvent.ExtToast,t)},r.prototype.savedStart=function(t){e.Transport.send(s.TransportEvent.ExtSavedStart,t)},r.prototype.savedEnd=function(t){e.Transport.send(s.TransportEvent.ExtSavedEnd,t)},r.prototype.setSpinnerStatus=function(t){e.Transport.send(s.TransportEvent.ExtSpinner,t)},r.prototype.setContext=function(t){e.Transport.send(s.TransportEvent.ExtContext,t)},r.prototype.setTabs=function(t){e.Transport.send(s.TransportEvent.ExtTabs,t)},r}(p.EventEmitter);e.NBTransport=b,g._nb_transport instanceof b||(g._nb_transport=new b({}),g._nb_transport.subscribe()),e.Transport=g._nb_transport},8742:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TransportWebsocket=void 0;var r=Symbol("socket"),n=function(){function t(t){this._params=t,this[r]||this.init(t)}return t.prototype.init=function(t){var e=(null==t?void 0:t.host)||"localhost",n=(null==t?void 0:t.port)||8999,o=(null==t?void 0:t.path)||"";this[r]=new WebSocket("ws://".concat(e,":").concat(n).concat(o)),this[r].onopen=function(){},this[r].onclose=function(t){t.wasClean?console.log("Соединение закрыто"):console.log("Обрыв соединения"),console.log("Код: "+t.code+" причина: "+t.reason)},this[r].onerror=function(t){console.log("Ошибка подключения ws: "+t.message)}},t.prototype.send=function(t,e,n,o){var i,a=this;this[r]&&(this[r].readyState?this[r].send(JSON.stringify({event:t,payload:e,uuid:n||(null===(i=this._params)||void 0===i?void 0:i.uuid),instanceUid:o})):setTimeout((function(){a.send(t,e,n)}),100))},t.prototype.subscribe=function(t){this[r]&&(this[r].onmessage=function(e){try{var r=JSON.parse(e.data),n=r.event,o=r.payload,i=r.uuid,a=r.instanceUid;t(n,o,i,a)}catch(t){}})},t.prototype.destroy=function(){this[r]&&(this[r].close(),this[r]=void 0)},t}();e.TransportWebsocket=n},3085:(t,e)=>{var r,n,o,i;Object.defineProperty(e,"__esModule",{value:!0}),e.RequestStatus=e.PermissionType=e.ExtensionFileMode=e.ExtensionType=void 0,(i=e.ExtensionType||(e.ExtensionType={})).App="app",i.File="file",i.WorkDir="work_dir",(o=e.ExtensionFileMode||(e.ExtensionFileMode={})).Read="read",o.Write="write",o.ReadAndWrite="read_and_write",(n=e.PermissionType||(e.PermissionType={})).CLOSE="",n.READ="r",n.WRITE="rw",(r=e.RequestStatus||(e.RequestStatus={}))[r.Wait=0]="Wait",r[r.Done=1]="Done",r[r.Reject=2]="Reject"},6745:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},8738:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},6796:function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),o(r(3085),e),o(r(2492),e),o(r(9517),e),o(r(512),e),o(r(6745),e),o(r(1548),e),o(r(7143),e),o(r(8738),e)},7143:(t,e)=>{var r;Object.defineProperty(e,"__esModule",{value:!0}),e.SettingControlType=void 0,(r=e.SettingControlType||(e.SettingControlType={})).Text="text",r.String="string",r.Number="number",r.CheckBox="checkbox",r.Select="select",r.RadioList="radio_list",r.ConnectionChoose="connection_choose",r.MultiConnectionChoose="multi_connection_choose"},2492:(t,e)=>{var r;Object.defineProperty(e,"__esModule",{value:!0}),e.ViewState=void 0,(r=e.ViewState||(e.ViewState={})).view="view",r.edit="edit"},9517:(t,e)=>{var r,n,o;Object.defineProperty(e,"__esModule",{value:!0}),e.StorageElementContentType=e.StorageElementType=e.StorageRoot=void 0,(o=e.StorageRoot||(e.StorageRoot={})).my="my",o.fca="fca",o.divide="divide",o.share="share",o.favorite="favorite",o.trash="trash",(n=e.StorageElementType||(e.StorageElementType={})).Dir="dir",n.File="file",n.WorkDir="work_dir",(r=e.StorageElementContentType||(e.StorageElementContentType={})).Any="any",r.Dir="dir",r.Code="code",r.Image="image",r.Audio="audio",r.Video="video",r.Text="text",r.Doc="doc",r.Xls="xls",r.Ppt="ppt"},512:(t,e)=>{var r,n,o,i;Object.defineProperty(e,"__esModule",{value:!0}),e.TransportCallEvent=e.TransportNavigationTarget=e.CallNameEvent=e.TransportEvent=void 0,(i=e.TransportEvent||(e.TransportEvent={})).Call="call",i.CallResponse="call-response",i.ExtInit="ext-init",i.ExtChangeContent="ext-change-content",i.ExtOpenModalFilesSelect="ext-open-modal-files-select",i.ExtShowConfirm="ext-show-confirm",i.ExtShowAccessPanel="ext-show-access-panel",i.ExtNavigateTo="ext-navigate-to",i.ExtRequestError="ext-request-error",i.ExtToast="ext-toast",i.ExtSpinner="ext-spinner",i.ExtContext="ext-context",i.ExtTabs="ext-tabs",i.ExtSavedStart="ext-saved-start",i.ExtSavedEnd="ext-saved-end",i.ExtSavedError="ext-saved-error",i.ExtClose="ext-close",i.ExtRejectClose="ext-reject-close",i.AppReload="ext-reload",i.AppReady="app-ready",i.AppChangeState="app-change-state",i.AppSaveAndClose="app-save-and-close",i.AppFilesSelected="app-files-selected",i.AppConfirmAccept="app-confirm-accept",i.AppConfirmReject="app-confirm-reject",i.AppContextAction="app-context-action",i.AppTabAction="app-tab-action",i.AppChangeTheme="app-change-theme",(o=e.CallNameEvent||(e.CallNameEvent={})).Update="update",o.ForceSave="force-save-version",(n=e.TransportNavigationTarget||(e.TransportNavigationTarget={})).Parent="_parent",n.Self="_self",n.Cache="_cache",(r=e.TransportCallEvent||(e.TransportCallEvent={})).Call="call",r.Resolve="resolve",r.Reject="reject"},1548:(t,e)=>{var r,n,o;Object.defineProperty(e,"__esModule",{value:!0}),e.UserAuthType=e.UserType=e.UserStatus=void 0,(o=e.UserStatus||(e.UserStatus={})).Registering="registering",o.Activated="activated",o.Blocked="blocked",o.BlockedByLicense="blocked_by_license",(n=e.UserType||(e.UserType={})).User="user",n.Guest="guest",(r=e.UserAuthType||(e.UserAuthType={})).Native="native",r.Ldap="ldap"},3607:function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),r(6626),r(1576),o(r(1495),e),o(r(6796),e),o(r(2176),e),o(r(2462),e),o(r(3534),e),o(r(8181),e),o(r(455),e)},1576:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,r),i.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r(3607)})()));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-box",
3
- "version": "2.5.60",
3
+ "version": "2.5.62",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",