Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
136 KiB

4 years ago
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(((t=t||self).prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.glimmer={}))}(this,(function(t){"use strict";var e=function(t,e){var r=new SyntaxError(t+" ("+e.start.line+":"+e.start.column+")");return r.loc=e,r};function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function i(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t,e){return f(t)||function(t,e){if(!(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)))return;var r=[],a=!0,n=!1,i=void 0;try{for(var o,s=t[Symbol.iterator]();!(a=(o=s.next()).done)&&(r.push(o.value),!e||r.length!==e);a=!0);}catch(t){n=!0,i=t}finally{try{a||null==s.return||s.return()}finally{if(n)throw i}}return r}(t,e)||m()}function h(t){return f(t)||d(t)||m()}function p(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||d(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function f(t){if(Array.isArray(t))return t}function d(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function m(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}var g=("undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{}).performance||{},v=(g.now||g.mozNow||g.msNow||g.oNow||g.webkitNow,Object.freeze([]),new(function(){function t(e,r){a(this,t),this._head=e,this._tail=r}return i(t,[{key:"forEachNode",value:function(t){for(var e=this._head;null!==e;)t(e),e=this.nextNode(e)}},{key:"head",value:function(){return this._head}},{key:"tail",value:function(){return this._tail}},{key:"toArray",value:function(){var t=[];return this.forEachNode((function(e){return t.push(e)})),t}},{key:"nextNode",value:function(t){return t===this._tail?null:t.next}}]),t}())(null,null),Object.keys);function b(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];if(null!==a&&"object"===r(a))for(var n=v(a),i=0;i<n.length;i++){var o=n[i];t[o]=a[o]}}return t}var y=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e};function k(t,e,r,a){return{type:"ElementModifierStatement",path:_(t),params:e||[],hash:r||N([]),loc:O(a||null)}}function S(t){return Array.isArray(t)&&2===t.length&&"loc"===t[0]}function w(t){if("string"==typeof t)return k(t);var e,a,n,i=function(t){return"string"==typeof t?_(t):_(t[1],t[2]&&t[2][1])}(t[0]),o=null,s=t.slice(1),l=s.shift();return n=l,Array.isArray(n)&&!S(n)&&(e=l,function(t){return!("object"!==r(t)||!t||Array.isArray(t))}(l=s.shift())&&(a=function(t,e){var r=[];return Object.keys(t).forEach((function(e){r.push(L(e,t[e]))})),N(r,e)}(l))),S(l)&&(o=l[1]),k(i,e,a,o)}function x(t){return P(t[0],"string"==typeof t[1]?A(t[1]):t[1],t[2]?t[2][1]:void 0)}function E(){for(var t={},e=arguments.length,r=new Array(e)