amis.define("2a26def",function(e,t){"use strict";function r(e,t,r,i){var n=e[t];n.value=r,r&&(p.includes(n.properties,i)||n.properties.push(i))}function i(e,t,i){r(e,"top",t,i),r(e,"right",t,i),r(e,"bottom",t,i),r(e,"left",t,i)}function n(e,t,n,o){"top"===t||"right"===t||"bottom"===t||"left"===t?r(e,t,n,o):i(e,n,o)}function o(e,t,r){switch(t.length){case 1:n(e,void 0,t[0],r);break;case 2:n(e,"top",t[0],r),n(e,"bottom",t[0],r),n(e,"right",t[1],r),n(e,"left",t[1],r);break;case 3:n(e,"top",t[0],r),n(e,"right",t[1],r),n(e,"left",t[1],r),n(e,"bottom",t[2],r);break;case 4:n(e,"top",t[0],r),n(e,"right",t[1],r),n(e,"bottom",t[2],r),n(e,"left",t[3],r)}}function a(e,t){return void 0===t&&(t=!0),t&&p.includes(["initial","unset"],e)?!1:0!==parseFloat(e)}function s(e,t){return void 0===t&&(t=!0),e.map(function(e){return a(e.getText(),t)})}function u(e,t){return void 0===t&&(t=!0),p.includes(["none","hidden"],e)?!1:t&&p.includes(["initial","unset"],e)?!1:!0}function c(e,t){return void 0===t&&(t=!0),e.map(function(e){return u(e.getText(),t)})}function l(e){var t=e.getChildren();if(1===t.length){var r=t[0].getText();return a(r)&&u(r)}for(var i=0,n=t;i<n.length;i++){var o=n[i],r=o.getText();if(!a(r,!1)||!u(r,!1))return!1}return!0}function f(e){for(var t={top:{value:!1,properties:[]},right:{value:!1,properties:[]},bottom:{value:!1,properties:[]},left:{value:!1,properties:[]}},r=0,i=e;r<i.length;r++){var f=i[r],p=f.node.value;if("undefined"!=typeof p)switch(f.name){case"box-sizing":return{top:{value:!1,properties:[]},right:{value:!1,properties:[]},bottom:{value:!1,properties:[]},left:{value:!1,properties:[]}};case"width":t.width=f;break;case"height":t.height=f;break;default:var d=f.name.split("-");switch(d[0]){case"border":switch(d[1]){case void 0:case"top":case"right":case"bottom":case"left":switch(d[2]){case void 0:n(t,d[1],l(p),f);break;case"width":n(t,d[1],a(p.getText(),!1),f);break;case"style":n(t,d[1],u(p.getText(),!0),f)}break;case"width":o(t,s(p.getChildren(),!1),f);break;case"style":o(t,c(p.getChildren(),!0),f)}break;case"padding":1===d.length?o(t,s(p.getChildren(),!0),f):n(t,d[1],a(p.getText(),!0),f)}}}return t}Object.defineProperty(t,"__esModule",{value:!0});var p=e("3d14ccf"),d=function(){function e(e,t){this.name=e,this.node=t}return e}();t.Element=d,t.default=f});