/*!
Copyright (c) 2026 Lenovo SSG BASD. All rights reserved.
@license Proprietary

This software is the confidential and proprietary property of Lenovo SSG BASD.
You shall not disclose such Confidential Information and shall use it only in
accordance with the terms of the license agreement.

--- Build Info ---
Version: 1.1.1
Build Time: 2026/2/26 17:21:00
Build Commit: 81e556ed827e2f043668506dae6fae8dbb9ef395
*/
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../_virtual/_rollupPluginBabelHelpers.js");function t(o,t,r){for(var n=arguments.length,e=new Array(n>3?n-3:0),a=3;a<n;a++)e[a-3]=arguments[a];var s=t.call.apply(t,[o].concat(e));r&&"function"==typeof r&&(s&&s.then?s.then(function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];r.call.apply(r,[o].concat(n))}):r.call.apply(r,[o].concat(e)))}function r(o,t){var r=this.__hooks;if(!r||!Array.isArray(r[o]))return-1;for(var n=r[o],e=0;e<n.length;e++)if(n[e]===t)return e;return-1}function n(o,t,r){for(var n=arguments.length,e=new Array(n>3?n-3:0),a=3;a<n;a++)e[a-3]=arguments[a];if(o.__hooks&&Array.isArray(o.__hooks[t])){var s=o.__hooks[t],l=-1;return function o(t,r,n){for(var e=arguments.length,a=new Array(e>3?e-3:0),c=3;c<e;c++)a[c-3]=arguments[c];if(l++,0===s.length||l===s.length)return n.call.apply(n,[t,t].concat(a));var i=s[l],p=i.call.apply(i,[t,t].concat(a));return p&&p.then?p.then(function(e){return!1===e?null:o.apply(void 0,[t,r,n].concat(a))}).catch(function(o){console.warn("[runHooks]".concat(r," reject"),o.message)}):!1!==p?o.apply(void 0,[t,r,n].concat(a)):!1!==p&&void 0}.apply(void 0,[o,t,r].concat(e))}return r.call.apply(r,[o,o].concat(e))}exports.default=function(o){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];o.__hooks={},t&&t.map(function(t){o.__hooks[t]=null}),Object.defineProperty(o,"hooks",{get:function(){return o.__hooks&&Object.keys(o.__hooks).map(function(t){if(o.__hooks[t])return t})}})},exports.delHooksDescriptor=function(o){o.__hooks=null},exports.hook=function(r,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{pre:null,next:null};return this.__hooks||(this.__hooks={}),!this.__hooks[r]&&(this.__hooks[r]=null),function(){var s=arguments,l=this;if(a.pre)try{var c;(c=a.pre).call.apply(c,[this].concat(Array.prototype.slice.call(arguments)))}catch(p){throw p.message="[pluginName: ".concat(this.pluginName,":").concat(r,":pre error] >> ").concat(p.message),p}if(this.__hooks&&this.__hooks[r])try{var i=n.apply(void 0,[this,r,e].concat(Array.prototype.slice.call(arguments)));i?i.then?i.then(function(r){!1!==r&&t.apply(void 0,[l,e,a.next].concat(o.toConsumableArray(s)))}).catch(function(o){throw o}):t.apply(void 0,[this,e,a.next].concat(Array.prototype.slice.call(arguments))):void 0===i&&t.apply(void 0,[this,e,a.next].concat(Array.prototype.slice.call(arguments)))}catch(p){throw p.message="[pluginName: ".concat(this.pluginName,":").concat(r,"] >> ").concat(p.message),p}else t.apply(void 0,[this,e,a.next].concat(Array.prototype.slice.call(arguments)))}.bind(this)},exports.removeHooks=function(o,t){var n=this.__hooks;if(n)if(Array.isArray(n[o])){var e=n[o],a=r.call(this,o,t);-1!==a&&e.splice(a,1)}else n[o]&&(n[o]=null)},exports.removePluginHooks=function(o){if(this.plugins&&this.plugins[o.toLowerCase()]){var t=this.plugins[o.toLowerCase()];if(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),e=1;e<r;e++)n[e-1]=arguments[e];return t.removeHooks&&t.removeHooks.apply(t,n)}}},exports.runHooks=n,exports.useHooks=function(o,t){var n=this.__hooks;if(n)return n.hasOwnProperty(o)?(Array.isArray(n[o])||(n[o]=[]),-1===r.call(this,o,t)&&n[o].push(t),!0):(console.warn("has no supported hook which name [".concat(o,"]")),!1)},exports.usePluginHooks=function(o){if(this.plugins&&this.plugins[o.toLowerCase()]){for(var t=this.plugins[o.toLowerCase()],r=arguments.length,n=new Array(r>1?r-1:0),e=1;e<r;e++)n[e-1]=arguments[e];return t.useHooks&&t.useHooks.apply(t,n)}};