quadmenu/build/compiler/index.js

2 lines
143 KiB
JavaScript
Raw Normal View History

2025-01-20 11:08:41 +00:00
/*! For license information please see index.js.LICENSE.txt */
(()=>{var e={854:(e,t,n)=>{e.exports=function e(t,n,i){function r(s,a){if(!n[s]){if(!t[s]){if(o)return o(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[s]={exports:{}};t[s][0].call(l.exports,(function(e){return r(t[s][1][e]||e)}),l,l.exports,e,t,n,i)}return n[s].exports}for(var o=void 0,s=0;s<i.length;s++)r(i[s]);return r}({1:[function(e,t,n){var i=e("./utils").addDataAttr,r=e("./browser");t.exports=function(e,t){i(t,r.currentScript(e)),void 0===t.isFileProtocol&&(t.isFileProtocol=/^(file|(chrome|safari)(-extension)?|resource|qrc|app):/.test(e.location.protocol)),t.async=t.async||!1,t.fileAsync=t.fileAsync||!1,t.poll=t.poll||(t.isFileProtocol?1e3:1500),t.env=t.env||("127.0.0.1"==e.location.hostname||"0.0.0.0"==e.location.hostname||"localhost"==e.location.hostname||e.location.port&&e.location.port.length>0||t.isFileProtocol?"development":"production");var n=/!dumpLineNumbers:(comments|mediaquery|all)/.exec(e.location.hash);n&&(t.dumpLineNumbers=n[1]),void 0===t.useFileCache&&(t.useFileCache=!0),void 0===t.onReady&&(t.onReady=!0)}},{"./browser":3,"./utils":10}],2:[function(e,t,n){function i(e){e.filename&&console.warn(e),r.async||s.removeChild(a)}e("promise/polyfill.js");var r=window.less||{};e("./add-default-options")(window,r);var o,s,a,u=t.exports=e("./index")(window,r);window.less=u,r.onReady&&(/!watch/.test(window.location.hash)&&u.watch(),r.async||(o="body { display: none !important }",s=document.head||document.getElementsByTagName("head")[0],(a=document.createElement("style")).type="text/css",a.styleSheet?a.styleSheet.cssText=o:a.appendChild(document.createTextNode(o)),s.appendChild(a)),u.registerStylesheetsImmediately(),u.pageLoadFinished=u.refresh("development"===u.env).then(i,i))},{"./add-default-options":1,"./index":8,"promise/polyfill.js":97}],3:[function(e,t,n){var i=e("./utils");t.exports={createCSS:function(e,t,n){var r=n.href||"",o="less:"+(n.title||i.extractId(r)),s=e.getElementById(o),a=!1,u=e.createElement("style");u.setAttribute("type","text/css"),n.media&&u.setAttribute("media",n.media),u.id=o,u.styleSheet||(u.appendChild(e.createTextNode(t)),a=null!==s&&s.childNodes.length>0&&u.childNodes.length>0&&s.firstChild.nodeValue===u.firstChild.nodeValue);var l=e.getElementsByTagName("head")[0];if(null===s||!1===a){var c=n&&n.nextSibling||null;c?c.parentNode.insertBefore(u,c):l.appendChild(u)}if(s&&!1===a&&s.parentNode.removeChild(s),u.styleSheet)try{u.styleSheet.cssText=t}catch(e){throw new Error("Couldn't reassign styleSheet.cssText.")}},currentScript:function(e){var t=e.document;return t.currentScript||function(){var e=t.getElementsByTagName("script");return e[e.length-1]}()}}},{"./utils":10}],4:[function(e,t,n){t.exports=function(e,t,n){var i=null;if("development"!==t.env)try{i=void 0===e.localStorage?null:e.localStorage}catch(e){}return{setCSS:function(e,t,r,o){if(i){n.info("saving "+e+" to cache.");try{i.setItem(e,o),i.setItem(e+":timestamp",t),r&&i.setItem(e+":vars",JSON.stringify(r))}catch(t){n.error('failed to save "'+e+'" to local storage for caching.')}}},getCSS:function(e,t,n){var r=i&&i.getItem(e),o=i&&i.getItem(e+":timestamp"),s=i&&i.getItem(e+":vars");if(n=n||{},o&&t.lastModified&&new Date(t.lastModified).valueOf()===new Date(o).valueOf()&&(!n&&!s||JSON.stringify(n)===s))return r}}}},{}],5:[function(e,t,n){var i=e("./utils"),r=e("./browser");t.exports=function(e,t,n){function o(t,o){var s,a,u="less-error-message:"+i.extractId(o||""),l=e.document.createElement("div"),c=[],h=t.filename||o,f=h.match(/([^\/]+(\?.*)?)$/)[1];l.id=u,l.className="less-error-message",a="<h3>"+(t.type||"Syntax")+"Error: "+(t.message||"There is an error in your .less file")+'</h3><p>in <a href="'+h+'">'+f+"</a> ";var p=function(e,t,n){void 0!==e.extract[t]&&c.push('<li><label>{line}</label><pre class="{class}">{content}</pre></li>'.replace(/\{line\}/,(parseInt(e.line,10)||0)+(t-1)).replace(/\{class\}/,n).replace(/\{content\}/,e.extract[t]))};t.extract&&(p(t,0,""),p(t,1,"line"),p(t,2,""),a+="on line "+t.line+", column "+(t.column+1)+":</p><ul>"+c.join("")+"</ul>"),t.stack&&(t.