Liferay.Loader.define("@data-engine-taglib$babel/runtime@7.21.0/helpers/applyDecs2301",["module","exports","require","./typeof","./checkInRHS"],(function(e,t,r){window;{var n=r("./typeof").default,a=r("./checkInRHS");function createAddInitializerMethod(e,t){return function(r){(function assertNotFinished(e,t){if(e.v)throw new Error("attempted to call "+t+" after decoration was finished")})(t,"addInitializer"),assertCallable(r,"An initializer"),e.push(r)}}function assertInstanceIfPrivate(e,t){if(!e(t))throw new TypeError("Attempted to access private element on non-instance")}function memberDec(e,t,r,n,a,i,s,o,c){var l;switch(a){case 1:l="accessor";break;case 2:l="method";break;case 3:l="getter";break;case 4:l="setter";break;default:l="field"}var u,f,d={kind:l,name:s?"#"+t:t,static:i,private:s},p={v:!1};if(0!==a&&(d.addInitializer=createAddInitializerMethod(n,p)),s||0!==a&&2!==a)if(2===a)u=function get(e){return assertInstanceIfPrivate(c,e),r.value};else{var h=0===a||1===a;(h||3===a)&&(u=s?function(e){return assertInstanceIfPrivate(c,e),r.get.call(e)}:function(e){return r.get.call(e)}),(h||4===a)&&(f=s?function(e,t){assertInstanceIfPrivate(c,e),r.set.call(e,t)}:function(e,t){r.set.call(e,t)})}else u=function get(e){return e[t]},0===a&&(f=function set(e,r){e[t]=r});var v=s?c.bind():function(e){return t in e};d.access=u&&f?{get:u,set:f,has:v}:u?{get:u,has:v}:{set:f,has:v};try{return e(o,d)}finally{p.v=!0}}function assertCallable(e,t){if("function"!=typeof e)throw new TypeError(t+" must be a function")}function assertValidReturnValue(e,t){var r=n(t);if(1===e){if("object"!==r||null===t)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");void 0!==t.get&&assertCallable(t.get,"accessor.get"),void 0!==t.set&&assertCallable(t.set,"accessor.set"),void 0!==t.init&&assertCallable(t.init,"accessor.init")}else if("function"!==r){throw new TypeError((0===e?"field":10===e?"class":"method")+" decorators must return a function or void 0")}}function curryThis2(e){return function(t){e(this,t)}}function applyMemberDec(e,t,r,n,a,i,s,o,c){var l,u,f,d,p,h,v,g=r[0];if(s?l=0===a||1===a?{get:(v=r[3],function(){return v(this)}),set:curryThis2(r[4])}:3===a?{get:r[3]}:4===a?{set:r[3]}:{value:r[3]}:0!==a&&(l=Object.getOwnPropertyDescriptor(t,n)),1===a?f={get:l.get,set:l.set}:2===a?f=l.value:3===a?f=l.get:4===a&&(f=l.set),"function"==typeof g)void 0!==(d=memberDec(g,n,l,o,a,i,s,f,c))&&(assertValidReturnValue(a,d),0===a?u=d:1===a?(u=d.init,p=d.get||f.get,h=d.set||f.set,f={get:p,set:h}):f=d);else for(var y=g.length-1;y>=0;y--){var m;void 0!==(d=memberDec(g[y],n,l,o,a,i,s,f,c))&&(assertValidReturnValue(a,d),0===a?m=d:1===a?(m=d.init,p=d.get||f.get,h=d.set||f.set,f={get:p,set:h}):f=d,void 0!==m&&(void 0===u?u=m:"function"==typeof u?u=[u,m]:u.push(m)))}if(0===a||1===a){if(void 0===u)u=function init(e,t){return t};else if("function"!=typeof u){var b=u;u=function init(e,t){for(var r=t,n=0;n<b.length;n++)r=b[n].call(e,r);return r}}else{var w=u;u=function init(e,t){return w.call(e,t)}}e.push(u)}0!==a&&(1===a?(l.get=f.get,l.set=f.set):2===a?l.value=f:3===a?l.get=f:4===a&&(l.set=f),s?1===a?(e.push((function(e,t){return f.get.call(e,t)})),e.push((function(e,t){return f.set.call(e,t)}))):2===a?e.push(f):e.push((function(e,t){return f.call(e,t)})):Object.defineProperty(t,n,l))}function applyMemberDecs(e,t,r){for(var n,i,s,o=[],c=new Map,l=new Map,u=0;u<t.length;u++){var f=t[u];if(Array.isArray(f)){var d,p,h=f[1],v=f[2],g=f.length>3,y=h>=5,m=r;if(y?(d=e,0!=(h-=5)&&(p=i=i||[]),g&&!s&&(s=function staticBrand(t){return a(t)===e}),m=s):(d=e.prototype,0!==h&&(p=n=n||[])),0!==h&&!g){var b=y?l:c,w=b.get(v)||0;if(!0===w||3===w&&4!==h||4===w&&3!==h)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+v);!w&&h>2?b.set(v,h):b.set(v,!0)}applyMemberDec(o,d,f,v,h,y,g,p,m)}}return pushInitializers(o,n),pushInitializers(o,i),o}function pushInitializers(e,t){t&&e.push((function(e){for(var r=0;r<t.length;r++)t[r].call(e);return e}))}e.exports=function applyDecs2301(e,t,r,n){return{e:applyMemberDecs(e,t,n),get c(){return function applyClassDecs(e,t){if(t.length>0){for(var r=[],n=e,a=e.name,i=t.length-1;i>=0;i--){var s={v:!1};try{var o=t[i](n,{kind:"class",name:a,addInitializer:createAddInitializerMethod(r,s)})}finally{s.v=!0}void 0!==o&&(assertValidReturnValue(10,o),n=o)}return[n,function(){for(var e=0;e<r.length;e++)r[e].call(n)}]}}(e,r)}}},e.exports.__esModule=!0,e.exports.default=e.exports}}));
//# sourceMappingURL=applyDecs2301.js.map