mirror of
https://github.com/doocs/md.git
synced 2024-11-24 19:10:34 +08:00
258 lines
3.2 MiB
JavaScript
258 lines
3.2 MiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"00b4":function(e,t,n){"use strict";n("ac1f");var r=n("23e7"),i=n("da84"),o=n("c65b"),s=n("e330"),a=n("1626"),u=n("861d"),l=function(){var e=!1,t=/[ac]/;return t.exec=function(){return e=!0,/./.exec.apply(this,arguments)},!0===t.test("abc")&&e}(),c=i.Error,p=s(/./.test);r({target:"RegExp",proto:!0,forced:!l},{test:function(e){var t=this.exec;if(!a(t))return p(this,e);var n=o(t,this,e);if(null!==n&&!u(n))throw new c("RegExp exec method returned something other than an Object or null");return!!n}})},"00bb":function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("38ba"))})(0,(function(e){return e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function n(e,t,n,r){var i,o=this._iv;o?(i=o.slice(0),this._iv=void 0):i=this._prevBlock,r.encryptBlock(i,0);for(var s=0;s<n;s++)e[t+s]^=i[s]}return t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize;n.call(this,e,t,i,r),this._prevBlock=e.slice(t,t+i)}}),t.Decryptor=t.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize,o=e.slice(t,t+i);n.call(this,e,t,i,r),this._prevBlock=o}}),t}(),e.mode.CFB}))},"00ee":function(e,t,n){var r=n("b622"),i=r("toStringTag"),o={};o[i]="z",e.exports="[object z]"===String(o)},"01d0":function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var o=n("efb2"),s=new Map([[o.ElementType.Tag,1],[o.ElementType.Script,1],[o.ElementType.Style,1],[o.ElementType.Directive,1],[o.ElementType.Text,3],[o.ElementType.CDATA,4],[o.ElementType.Comment,8],[o.ElementType.Root,9]]),a=function(){function e(e){this.type=e,this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"nodeType",{get:function(){var e;return null!==(e=s.get(this.type))&&void 0!==e?e:1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),C(this,e)},e}();t.Node=a;var u=function(e){function t(t,n){var r=e.call(this,t)||this;return r.data=n,r}return r(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(a);t.DataNode=u;var l=function(e){function t(t){return e.call(this,o.ElementType.Text,t)||this}return r(t,e),t}(u);t.Text=l;var c=function(e){function t(t){return e.call(this,o.ElementType.Comment,t)||this}return r(t,e),t}(u);t.Comment=c;var p=function(e){function t(t,n){var r=e.call(this,o.ElementType.Directive,n)||this;return r.name=t,r}return r(t,e),t}(u);t.ProcessingInstruction=p;var f=function(e){function t(t,n){var r=e.call(this,t)||this;return r.children=n,r}return r(t,e),Object.defineProperty(t.prototype,"first
|
|||
|
/** @preserve
|
|||
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|||
|
|
|||
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|||
|
|
|||
|
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|||
|
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|||
|
|
|||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
|
*/
|
|||
|
return function(t){var n=e,r=n.lib,i=r.WordArray,o=r.Hasher,s=n.algo,a=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),p=i.create([0,1518500249,1859775393,2400959708,2840853838]),f=i.create([1352829926,1548603684,1836072691,2053994217,0]),h=s.RIPEMD160=o.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,s,h,D,w,C,x,E,_,k,T,S=this._hash.words,A=p.words,O=f.words,F=a.words,N=u.words,I=l.words,P=c.words;C=o=S[0],x=s=S[1],E=h=S[2],_=D=S[3],k=w=S[4];for(n=0;n<80;n+=1)T=o+e[t+F[n]]|0,T+=n<16?d(s,h,D)+A[0]:n<32?m(s,h,D)+A[1]:n<48?g(s,h,D)+A[2]:n<64?y(s,h,D)+A[3]:v(s,h,D)+A[4],T|=0,T=b(T,I[n]),T=T+w|0,o=w,w=D,D=b(h,10),h=s,s=T,T=C+e[t+N[n]]|0,T+=n<16?v(x,E,_)+O[0]:n<32?y(x,E,_)+O[1]:n<48?g(x,E,_)+O[2]:n<64?m(x,E,_)+O[3]:d(x,E,_)+O[4],T|=0,T=b(T,P[n]),T=T+k|0,C=k,k=_,_=b(E,10),E=x,x=T;T=S[1]+h+_|0,S[1]=S[2]+D+k|0,S[2]=S[3]+w+C|0,S[3]=S[4]+o+x|0,S[4]=S[0]+s+E|0,S[0]=T},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,s=0;s<5;s++){var a=o[s];o[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return i},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function d(e,t,n){return e^t^n}function m(e,t,n){return e&t|~e&n}function g(e,t,n){return(e|~t)^n}function y(e,t,n){return e&n|t&~n}function v(e,t,n){return e^(t|~n)}function b(e,t){return e<<t|e>>>32-t}n.RIPEMD160=o._createHelper(h),n.HmacRIPEMD160=o._createHmacHelper(h)}(Math),e.RIPEMD160}))},"10db":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"111b":function(e,t,n){(function(e){e(n("56b3"),n("7b00"))})((function(e){"use strict";var t={active:1,after:1,before:1,checked:1,default:1,disabled:1,empty:1,enabled:1,"first-child":1,"first-letter":1,"first-line":1,"first-of-type":1,focus:1,hover:1,"in-range":1,indeterminate:1,invalid:1,lang:1,"last-child":1,"last-of-type":1,link:1,not:1,"nth-child":1,"nth-last-child":1,"nth-last-of-type":1,"nth-of-type":1,"only-of-type":1,"only-child":1,optional:1,"out-of-range":1,placeholder:1,"read-only":1,"read-write":1,required:1,root:1,selection:1,target:1,valid:1,visited:1};e.registerHelper("hint","css",(function(n){var r=n.getCursor(),i=n.getTokenAt(r),o=e.innerMode(n.getMode(),i.state);if("css"==o.mode.name){if("keyword"==i.type&&0=="!important".indexOf(i.string))return{list:["!important"],from:e.Pos(r.line,i.start),to:e.Pos(r.line,i.end)};var s=i.start,a=r.ch,u=i.string.slice(0,a-s);/[^\w$_-]/.test(u)&&(u="",s=a=r.ch);var l=e.resolveMode("text/css"),c=[],p=o.state.state;return"pseudo"==p||"variable-3"==i.type?f(t):"block"==p||"maybeprop"==p?f(l.propertyKeywords):"prop"==p||"parens"==p||"at"==p||"params"==p?(f(l.valueKeywords),f(l.colorKeywords)):"media"!=p&&"media_parens"!=p||(f(l.mediaTypes),f(l.mediaFeatures)),c.length?{list:c,from:e.Pos(r.line,s),to:e.Pos(r.line,a)}:void 0}function f(e){for(var t in e)u&&0!=t.lastIndexOf(u,0)||c.push(t)}}))}))},1132:function(e,t,n){(function(t,r){e.exports=r(n("21bf")
|
|||
|
/*!
|
|||
|
* Vue.js v2.6.14
|
|||
|
* (c) 2014-2021 Evan You
|
|||
|
* Released under the MIT License.
|
|||
|
*/
|
|||
|
var n=Object.freeze({});function r(e){return void 0===e||null===e}function i(e){return void 0!==e&&null!==e}function o(e){return!0===e}function s(e){return!1===e}function a(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function u(e){return null!==e&&"object"===typeof e}var l=Object.prototype.toString;function c(e){return"[object Object]"===l.call(e)}function p(e){return"[object RegExp]"===l.call(e)}function f(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function h(e){return i(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function d(e){return null==e?"":Array.isArray(e)||c(e)&&e.toString===l?JSON.stringify(e,null,2):String(e)}function m(e){var t=parseFloat(e);return isNaN(t)?e:t}function g(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}g("slot,component",!0);var y=g("key,ref,slot,slot-scope,is");function v(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function D(e,t){return b.call(e,t)}function w(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var C=/-(\w)/g,x=w((function(e){return e.replace(C,(function(e,t){return t?t.toUpperCase():""}))})),E=w((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),_=/\B([A-Z])/g,k=w((function(e){return e.replace(_,"-$1").toLowerCase()}));function T(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function S(e,t){return e.bind(t)}var A=Function.prototype.bind?S:T;function O(e,t){t=t||0;var n=e.length-t,r=new Array(n);while(n--)r[n]=e[n+t];return r}function F(e,t){for(var n in t)e[n]=t[n];return e}function N(e){for(var t={},n=0;n<e.length;n++)e[n]&&F(t,e[n]);return t}function I(e,t,n){}var P=function(e,t,n){return!1},M=function(e){return e};function L(e,t){if(e===t)return!0;var n=u(e),r=u(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=Array.isArray(e),o=Array.isArray(t);if(i&&o)return e.length===t.length&&e.every((function(e,n){return L(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||o)return!1;var s=Object.keys(e),a=Object.keys(t);return s.length===a.length&&s.every((function(n){return L(e[n],t[n])}))}catch(l){return!1}}function j(e,t){for(var n=0;n<e.length;n++)if(L(e[n],t))return n;return-1}function B(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var R="data-server-rendered",$=["component","directive","filter"],H=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],U={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:P,isReservedAttr:P,isUnknownElement:P,getTagNamespace:I,parsePlatformTagName:M,mustUseProp:P,async:!0,_lifecycleHooks:H},q=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function z(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function V(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var W=new RegExp("[^"+q.source+".$_\\d]");function G(e){if(!W.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}var K,Y="__proto__"in{},X="undefined"!==typeof window,J="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,Q=J&&WXEnvironment.platform.toLowerCase(),Z=X&&window.navigator.userAgent.toLowerCase(),ee=Z&&/msie|trident/.test(Z),te=Z&&Z.indexOf("msie 9.0")>0,ne=Z&&Z.indexOf("edge/")>0,re=(Z&&Z.indexOf("android"),Z&&/iphone|ipad|ipod|ios/.test(Z)||"ios"===Q),ie=(Z&&/chrome\/\d+/.test(Z),Z&&/phantomjs/.test(Z),Z&&Z.match(/firefox\/(\d+)/)),oe={}.watch,se=!1;if(X)try{var ae={};Objec
|
|||
|
/*!
|
|||
|
* vuex v3.6.2
|
|||
|
* (c) 2021 Evan You
|
|||
|
* @license MIT
|
|||
|
*/
|
|||
|
function r(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:r});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[r].concat(e.init):r,n.call(this,e)}}function r(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}n.d(t,"b",(function(){return P})),n.d(t,"c",(function(){return I}));var i="undefined"!==typeof window?window:"undefined"!==typeof e?e:{},o=i.__VUE_DEVTOOLS_GLOBAL_HOOK__;function s(e){o&&(e._devtoolHook=o,o.emit("vuex:init",e),o.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){o.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){o.emit("vuex:action",e,t)}),{prepend:!0}))}function a(e,t){return e.filter(t)[0]}function u(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var n=a(t,(function(t){return t.original===e}));if(n)return n.copy;var r=Array.isArray(e)?[]:{};return t.push({original:e,copy:r}),Object.keys(e).forEach((function(n){r[n]=u(e[n],t)})),r}function l(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function c(e){return null!==e&&"object"===typeof e}function p(e){return e&&"function"===typeof e.then}function f(e,t){return function(){return e(t)}}var h=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},d={namespaced:{configurable:!0}};d.namespaced.get=function(){return!!this._rawModule.namespaced},h.prototype.addChild=function(e,t){this._children[e]=t},h.prototype.removeChild=function(e){delete this._children[e]},h.prototype.getChild=function(e){return this._children[e]},h.prototype.hasChild=function(e){return e in this._children},h.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},h.prototype.forEachChild=function(e){l(this._children,e)},h.prototype.forEachGetter=function(e){this._rawModule.getters&&l(this._rawModule.getters,e)},h.prototype.forEachAction=function(e){this._rawModule.actions&&l(this._rawModule.actions,e)},h.prototype.forEachMutation=function(e){this._rawModule.mutations&&l(this._rawModule.mutations,e)},Object.defineProperties(h.prototype,d);var m=function(e){this.register([],e,!1)};function g(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void 0;g(e.concat(r),t.getChild(r),n.modules[r])}}m.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},m.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},m.prototype.update=function(e){g([],this.root,e)},m.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=new h(t,n);if(0===e.length)this.root=i;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],i)}t.modules&&l(t.modules,(function(t,i){r.register(e.concat(i),t,n)}))},m.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.runtime&&t.removeChild(n)},m.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var y;var v=function(e){var t=this;void 0===e&&(e={}),!y&&"undefined"!==typeof window&&window.Vue&&N(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var r=e.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new m(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new y,this._makeLocalGettersCache=Object.create(null);var i=this,o=this,a=o.dispatch,u=o.commit;this.dispatch=function(e,t){return a.call(i,e,t)},this.commit=function(e,t,n){return u.call(i,e,t,n)},this.strict=r;var l=this._modules.root.state;x(this,l,[],this._modules.root),C(this,l
|
|||
|
Print (to stderr) where a cursor at the given position would move to after formatting.
|
|||
|
This option cannot be used with --range-start and --range-end.
|
|||
|
`,cliCategory:Jr},endOfLine:{since:"1.15.0",category:Zr,type:"choice",default:[{since:"1.15.0",value:"auto"},{since:"2.0.0",value:"lf"}],description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:Yr`
|
|||
|
Maintain existing
|
|||
|
(mixed values within one file are normalised by looking at what's used after the first line)
|
|||
|
`}]},filepath:{since:"1.4.0",category:ei,type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:Qr,cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{since:"1.8.0",category:ei,type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:Qr},parser:{since:"0.0.10",category:Zr,type:"choice",default:[{since:"0.0.10",value:"babylon"},{since:"1.13.0",value:void 0}],description:"Which parser to use.",exception:e=>"string"==typeof e||"function"==typeof e,choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"espree",since:"2.2.0",description:"JavaScript"},{value:"meriyah",since:"2.2.0",description:"JavaScript"},{value:"css",since:"1.7.1",description:"CSS"},{value:"less",since:"1.7.1",description:"Less"},{value:"scss",since:"1.7.1",description:"SCSS"},{value:"json",since:"1.5.0",description:"JSON"},{value:"json5",since:"1.13.0",description:"JSON5"},{value:"json-stringify",since:"1.13.0",description:"JSON.stringify"},{value:"graphql",since:"1.5.0",description:"GraphQL"},{value:"markdown",since:"1.8.0",description:"Markdown"},{value:"mdx",since:"1.15.0",description:"MDX"},{value:"vue",since:"1.10.0",description:"Vue"},{value:"yaml",since:"1.14.0",description:"YAML"},{value:"glimmer",since:"2.3.0",description:"Ember / Handlebars"},{value:"html",since:"1.15.0",description:"HTML"},{value:"angular",since:"1.15.0",description:"Angular"},{value:"lwc",since:"1.17.0",description:"Lightning Web Components"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:Zr,description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin",cliCategory:Xr},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:Zr,description:Yr`
|
|||
|
Custom directory that contains prettier plugins in node_modules subdirectory.
|
|||
|
Overrides default behavior when plugins are searched relatively to the location of Prettier.
|
|||
|
Multiple values are accepted.
|
|||
|
`,exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin-search-dir",cliCategory:Xr},printWidth:{since:"0.0.0",category:Zr,type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},rangeEnd:{since:"1.4.0",category:ei,type:"int",default:Number.POSITIVE_INFINITY,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:Yr`
|
|||
|
Format code ending at a given character offset (exclusive).
|
|||
|
The range will extend forwards to the end of the selected statement.
|
|||
|
This option cannot be used with --cursor-offset.
|
|||
|
`,cliCategory:Jr},rangeStart:{since:"1.4.0",category:ei,type:"int",default:0,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:Yr`
|
|||
|
Format code starting at a given character offset.
|
|||
|
The range will extend backwards to the start of the first line containing the selected statement.
|
|||
|
This option cannot be used with --cursor-offset.
|
|||
|
`,cliCategory:Jr},requirePragma:{since:"1.7.0",category:ei,type:"boolean",default:!1,description:Yr`
|
|||
|
Require either '@prettier' or '@format' to be present in the file's first docblock comment
|
|||
|
in order for it to be formatted.
|
|||
|
`,cliCategory:Qr},tabWidth:{type:"int",category:Zr,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:Zr,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:Zr,type:"choice",default:[{since:"2.1.0",value:"auto"}],description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}},ni=["cliName","cliCategory","cliDescription"],ri={compare:Vr,lt:Wr,gte:Gr},ii=e.version,oi={CATEGORY_CONFIG:Xr,CATEGORY_EDITOR:Jr,CATEGORY_FORMAT:"Format",CATEGORY_OTHER:Qr,CATEGORY_OUTPUT:"Output",CATEGORY_GLOBAL:Zr,CATEGORY_SPECIAL:ei,options:ti}.options;var si={getSupportInfo:function({plugins:e=[],showUnreleased:t=!1,showDeprecated:n=!1,showInternal:r=!1}={}){const i=ii.split("-",1)[0],o=e.flatMap(e=>e.languages||[]).filter(a),s=((e,t)=>Object.entries(e).map(([e,n])=>Object.assign({[t]:e},n)))(Object.assign({},...e.map(({options:e})=>e),oi),"name").filter(e=>a(e)&&u(e)).sort((e,t)=>e.name===t.name?0:e.name<t.name?-1:1).map((function(e){return r?e:Rn(e,ni)})).map(t=>{t=Object.assign({},t),Array.isArray(t.default)&&(t.default=1===t.default.length?t.default[0].value:t.default.filter(a).sort((e,t)=>ri.compare(t.since,e.since))[0].value),Array.isArray(t.choices)&&(t.choices=t.choices.filter(e=>a(e)&&u(e)),"parser"===t.name&&function(e,t,n){const r=new Set(e.choices.map(e=>e.value));for(const i of t)if(i.parsers)for(const t of i.parsers)if(!r.has(t)){r.add(t);const o=n.find(e=>e.parsers&&e.parsers[t]);let s=i.name;o&&o.name&&(s+=` (plugin: ${o.name})`),e.choices.push({value:t,description:s})}}(t,o,e));const n=Object.fromEntries(e.filter(e=>e.defaultOptions&&void 0!==e.defaultOptions[t.name]).map(e=>[e.name,e.defaultOptions[t.name]]));return Object.assign(Object.assign({},t),{},{pluginDefaults:n})});return{languages:o,options:s};function a(e){return t||!("since"in e)||e.since&&ri.gte(i,e.since)}function u(e){return n||!("deprecated"in e)||e.deprecated&&ri.lt(i,e.deprecated)}}};const{getSupportInfo:ai}=si,ui=/[^\x20-\x7F]/;function li(e){return(t,n,r)=>{const i=r&&r.backwards;if(!1===n)return!1;const{length:o}=t;let s=n;for(;s>=0&&s<o;){const n=t.charAt(s);if(e instanceof RegExp){if(!e.test(n))return s}else if(!e.includes(n))return s;i?s--:s++}return(-1===s||s===o)&&s}}const ci=li(/\s/),pi=li(" \t"),fi=li(",; \t"),hi=li(/[^\n\r]/);function di(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1))for(let n=t+2;n<e.length;++n)if("*"===e.charAt(n)&&"/"===e.charAt(n+1))return n+2;return t}function mi(e,t){return!1!==t&&("/"===e.charAt(t)&&"/"===e.charAt(t+1)?hi(e,t):t)}function gi(e,t,n){const r=n&&n.backwards;if(!1===t)return!1;const i=e.charAt(t);if(r){if("\r"===e.charAt(t-1)&&"\n"===i)return t-2;if("\n"===i||"\r"===i||"\u2028"===i||"\u2029"===i)return t-1}else{if("\r"===i&&"\n"===e.charAt(t+1))return t+2;if("\n"===i||"\r"===i||"\u2028"===i||"\u2029"===i)return t+1}return t}function yi(e,t,n={}){const r=pi(e,n.backwards?t-1:t,n);return r!==gi(e,r,n)}function vi(e,t){let n=null,r=t;for(;r!==n;)n=r,r=fi(e,r),r=di(e,r),r=pi(e,r);return r=mi(e,r),r=gi(e,r),!1!==r&&yi(e,r)}function bi(e,t){let n=null,r=t;for(;r!==n;)n=r,r=pi(e,r),r=di(e,r),r=mi(e,r),r=gi(e,r);return r}function Di(e,t,n){return bi(e,n(t))}function wi(e,t,n=0){let r=0;for(let i=n;i<e.length;++i)"\t"===e[i]?r=r+t-r%t:r++;return r}function Ci(e,t){const n=e.slice(1,-1),r={quote:'"',regex:/"/g},i={quote:"'",regex:/'/g},o="'"===t?i:r,s=o===i?r:i;let a=o.quote;return(n.includes(o.quote)||n.includes(s.quote))&&(a=(n.match(o.regex)||[]).length>(n.match(s.regex)||[]).length?s.quote:o.quote),a}function xi(e,t,n){const r='"'===t?"'":'"',i=e.replace(/\\(.)|(["'])/gs,(e,i,o)=>i===r?i:o===t?"\\"+o:o||(n&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(i)?i:"\\"+i));return t+i+t}function Ei(e,t){(e.comments||(e.comments=[])).push(t),t.printe
|
|||
|
/*! *****************************************************************************
|
|||
|
Copyright (c) Microsoft Corporation.
|
|||
|
|
|||
|
Permission to use, copy, modify, and/or distribute this software for any
|
|||
|
purpose with or without fee is hereby granted.
|
|||
|
|
|||
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|||
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|||
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|||
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|||
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|||
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|||
|
PERFORMANCE OF THIS SOFTWARE.
|
|||
|
***************************************************************************** */function Is(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ps(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function Ms(e){return this instanceof Ms?(this.v=e,this):new Ms(e)}var Ls=Object.freeze({__proto__:null,__extends:function(e,t){function n(){this.constructor=e}Fs(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},get __assign(){return Ns},__rest:function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},__decorate:function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},__param:function(e,t){return function(n,r){t(n,r,e)}},__metadata:function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__awaiter:function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},__generator:function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!((i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},__createBinding:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},__exportStar:function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])},__values:Is,__read:Ps,__spread:function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Ps(arguments[t]));return e},__spreadArrays:function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r},__await:Ms,__asyncGenerator:function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof Ms?Promise.resolve(n.value.v).then(u,l):c(o[0][2],n)}catch(e){c(o[
|
|||
|
/**
|
|||
|
* @license
|
|||
|
* Copyright Google Inc. All Rights Reserved.
|
|||
|
*
|
|||
|
* Use of this source code is governed by an MIT-style license that can be
|
|||
|
* found in the LICENSE file at https://angular.io/license
|
|||
|
*/Object.defineProperty(t,"__esModule",{value:!0}),t.$EOF=0,t.$BSPACE=8,t.$TAB=9,t.$LF=10,t.$VTAB=11,t.$FF=12,t.$CR=13,t.$SPACE=32,t.$BANG=33,t.$DQ=34,t.$HASH=35,t.$$=36,t.$PERCENT=37,t.$AMPERSAND=38,t.$SQ=39,t.$LPAREN=40,t.$RPAREN=41,t.$STAR=42,t.$PLUS=43,t.$COMMA=44,t.$MINUS=45,t.$PERIOD=46,t.$SLASH=47,t.$COLON=58,t.$SEMICOLON=59,t.$LT=60,t.$EQ=61,t.$GT=62,t.$QUESTION=63,t.$0=48,t.$7=55,t.$9=57,t.$A=65,t.$E=69,t.$F=70,t.$X=88,t.$Z=90,t.$LBRACKET=91,t.$BACKSLASH=92,t.$RBRACKET=93,t.$CARET=94,t.$_=95,t.$a=97,t.$b=98,t.$e=101,t.$f=102,t.$n=110,t.$r=114,t.$t=116,t.$u=117,t.$v=118,t.$x=120,t.$z=122,t.$LBRACE=123,t.$BAR=124,t.$RBRACE=125,t.$NBSP=160,t.$PIPE=124,t.$TILDA=126,t.$AT=64,t.$BT=96,t.isWhitespace=function(e){return e>=t.$TAB&&e<=t.$SPACE||e==t.$NBSP},t.isDigit=n,t.isAsciiLetter=function(e){return e>=t.$a&&e<=t.$z||e>=t.$A&&e<=t.$Z},t.isAsciiHexDigit=function(e){return e>=t.$a&&e<=t.$f||e>=t.$A&&e<=t.$F||n(e)},t.isNewLine=function(e){return e===t.$LF||e===t.$CR},t.isOctalDigit=function(e){return t.$0<=e&&e<=t.$7}}));
|
|||
|
/**
|
|||
|
* @license
|
|||
|
* Copyright Google Inc. All Rights Reserved.
|
|||
|
*
|
|||
|
* Use of this source code is governed by an MIT-style license that can be
|
|||
|
* found in the LICENSE file at https://angular.io/license
|
|||
|
*/class cL{constructor(e,t,n){this.filePath=e,this.name=t,this.members=n}assertNoMembers(){if(this.members.length)throw new Error(`Illegal state: symbol without members expected, but got ${JSON.stringify(this)}.`)}}var pL=cL,fL=class{constructor(){this.cache=new Map}get(e,t,n){const r=`"${e}".${t}${(n=n||[]).length?"."+n.join("."):""}`;let i=this.cache.get(r);return i||(i=new cL(e,t,n),this.cache.set(r,i)),i}},hL=Object.defineProperty({StaticSymbol:pL,StaticSymbolCache:fL},"__esModule",{value:!0});
|
|||
|
/**
|
|||
|
* @license
|
|||
|
* Copyright Google Inc. All Rights Reserved.
|
|||
|
*
|
|||
|
* Use of this source code is governed by an MIT-style license that can be
|
|||
|
* found in the LICENSE file at https://angular.io/license
|
|||
|
*/
|
|||
|
const dL=/-+([a-z0-9])/g;var mL=function(e){return e.replace(dL,(...e)=>e[1].toUpperCase())},gL=function(e,t){return vL(e,":",t)},yL=function(e,t){return vL(e,".",t)};function vL(e,t,n){const r=e.indexOf(t);return-1==r?n:[e.slice(0,r).trim(),e.slice(r+1).trim()]}function bL(e,t,n){return Array.isArray(e)?t.visitArray(e,n):function(e){return"object"==typeof e&&null!==e&&Object.getPrototypeOf(e)===NL}(e)?t.visitStringMap(e,n):null==e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e?t.visitPrimitive(e,n):t.visitOther(e,n)}var DL=bL,wL=function(e){return null!=e},CL=function(e){return void 0===e?null:e},xL=class{visitArray(e,t){return e.map(e=>bL(e,this,t))}visitStringMap(e,t){const n={};return Object.keys(e).forEach(r=>{n[r]=bL(e[r],this,t)}),n}visitPrimitive(e,t){return e}visitOther(e,t){return e}},EL={assertSync:e=>{if(LL(e))throw new Error("Illegal state: value cannot be a promise");return e},then:(e,t)=>LL(e)?e.then(t):t(e),all:e=>e.some(LL)?Promise.all(e):e},_L=function(e){throw new Error("Internal Error: "+e)},kL=function(e,t){const n=Error(e);return n[TL]=!0,t&&(n[SL]=t),n};const TL="ngSyntaxError",SL="ngParseErrors";var AL=function(e){return e[TL]},OL=function(e){return e[SL]||[]},FL=function(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")};const NL=Object.getPrototypeOf({});var IL=function(e){let t="";for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r>=55296&&r<=56319&&e.length>n+1){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(n++,r=(r-55296<<10)+t-56320+65536)}r<=127?t+=String.fromCharCode(r):r<=2047?t+=String.fromCharCode(r>>6&31|192,63&r|128):r<=65535?t+=String.fromCharCode(r>>12|224,r>>6&63|128,63&r|128):r<=2097151&&(t+=String.fromCharCode(r>>18&7|240,r>>12&63|128,r>>6&63|128,63&r|128))}return t},PL=function e(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map(e).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;if(!t.toString)return"object";const n=t.toString();if(null==n)return""+n;const r=n.indexOf("\n");return-1===r?n:n.substring(0,r)},ML=function(e){return"function"==typeof e&&e.hasOwnProperty("__forward_ref__")?e():e};function LL(e){return!!e&&"function"==typeof e.then}var jL=LL,BL=class{constructor(e){this.full=e;const t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}};const RL="undefined"!=typeof window&&window,$L="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self;var HL=void 0!==n&&n||RL||$L,UL=Object.defineProperty({dashCaseToCamelCase:mL,splitAtColon:gL,splitAtPeriod:yL,visitValue:DL,isDefined:wL,noUndefined:CL,ValueTransformer:xL,SyncAsync:EL,error:_L,syntaxError:kL,isSyntaxError:AL,getParseErrors:OL,escapeRegExp:FL,utf8Encode:IL,stringify:PL,resolveForwardRef:ML,isPromise:jL,Version:BL,global:HL},"__esModule",{value:!0}),qL=i((function(e,t){
|
|||
|
/**
|
|||
|
* @license
|
|||
|
* Copyright Google Inc. All Rights Reserved.
|
|||
|
*
|
|||
|
* Use of this source code is governed by an MIT-style license that can be
|
|||
|
* found in the LICENSE file at https://angular.io/license
|
|||
|
*/
|
|||
|
Object.defineProperty(t,"__esModule",{value:!0});const n=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function r(e){return e.replace(/\W/g,"_")}t.sanitizeIdentifier=r;let i=0;function o(e){if(!e||!e.reference)return null;const t=e.reference;if(t instanceof hL.StaticSymbol)return t.name;if(t.__anonymousType)return t.__anonymousType;let n=UL.stringify(t);return n.indexOf("(")>=0?(n="anonymous_"+i++,t.__anonymousType=n):n=r(n),n}var s;t.identifierName=o,t.identifierModuleUrl=function(e){const t=e.reference;return t instanceof hL.StaticSymbol?t.filePath:"./"+UL.stringify(t)},t.viewClassName=function(e,t){return`View_${o({reference:e})}_${t}`},t.rendererTypeName=function(e){return"RenderType_"+o({reference:e})},t.hostViewClassName=function(e){return"HostView_"+o({reference:e})},t.componentFactoryName=function(e){return o({reference:e})+"NgFactory"},function(e){e[e.Pipe=0]="Pipe",e[e.Directive=1]="Directive",e[e.NgModule=2]="NgModule",e[e.Injectable=3]="Injectable"}(s=t.CompileSummaryKind||(t.CompileSummaryKind={})),t.tokenName=function(e){return null!=e.value?r(e.value):o(e.identifier)},t.tokenReference=function(e){return null!=e.identifier?e.identifier.reference:e.value},t.CompileStylesheetMetadata=class{constructor({moduleUrl:e,styles:t,styleUrls:n}={}){this.moduleUrl=e||null,this.styles=u(t),this.styleUrls=u(n)}},t.CompileTemplateMetadata=class{constructor({encapsulation:e,template:t,templateUrl:n,htmlAst:r,styles:i,styleUrls:o,externalStylesheets:s,animations:a,ngContentSelectors:c,interpolation:p,isInline:f,preserveWhitespaces:h}){if(this.encapsulation=e,this.template=t,this.templateUrl=n,this.htmlAst=r,this.styles=u(i),this.styleUrls=u(o),this.externalStylesheets=u(s),this.animations=a?l(a):[],this.ngContentSelectors=c||[],p&&2!=p.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=p,this.isInline=f,this.preserveWhitespaces=h}toSummary(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}};class a{static create({isHost:e,type:t,isComponent:r,selector:i,exportAs:o,changeDetection:s,inputs:u,outputs:l,host:c,providers:p,viewProviders:f,queries:h,guards:d,viewQueries:m,entryComponents:g,template:y,componentViewType:v,rendererType:b,componentFactory:D}){const w={},C={},x={};null!=c&&Object.keys(c).forEach(e=>{const t=c[e],r=e.match(n);null===r?x[e]=t:null!=r[1]?C[r[1]]=t:null!=r[2]&&(w[r[2]]=t)});const E={};null!=u&&u.forEach(e=>{const t=UL.splitAtColon(e,[e,e]);E[t[0]]=t[1]});const _={};return null!=l&&l.forEach(e=>{const t=UL.splitAtColon(e,[e,e]);_[t[0]]=t[1]}),new a({isHost:e,type:t,isComponent:!!r,selector:i,exportAs:o,changeDetection:s,inputs:E,outputs:_,hostListeners:w,hostProperties:C,hostAttributes:x,providers:p,viewProviders:f,queries:h,guards:d,viewQueries:m,entryComponents:g,template:y,componentViewType:v,rendererType:b,componentFactory:D})}constructor({isHost:e,type:t,isComponent:n,selector:r,exportAs:i,changeDetection:o,inputs:s,outputs:a,hostListeners:l,hostProperties:c,hostAttributes:p,providers:f,viewProviders:h,queries:d,guards:m,viewQueries:g,entryComponents:y,template:v,componentViewType:b,rendererType:D,componentFactory:w}){this.isHost=!!e,this.type=t,this.isComponent=n,this.selector=r,this.exportAs=i,this.changeDetection=o,this.inputs=s,this.outputs=a,this.hostListeners=l,this.hostProperties=c,this.hostAttributes=p,this.providers=u(f),this.viewProviders=u(h),this.queries=u(d),this.guards=m,this.viewQueries=u(g),this.entryComponents=u(y),this.template=v,this.componentViewType=b,this.rendererType=D,this.componentFactory=w}toSummary(){return{summaryKind:s.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,guards:this.guards,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:t
|
|||
|
/**
|
|||
|
* @license
|
|||
|
* Copyright Google Inc. All Rights Reserved.
|
|||
|
*
|
|||
|
* Use of this source code is governed by an MIT-style license that can be
|
|||
|
* found in the LICENSE file at https://angular.io/license
|
|||
|
*/
|
|||
|
class n{constructor(e,t,n,r){this.file=e,this.offset=t,this.line=n,this.col=r}toString(){return null!=this.offset?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){const t=this.file.content,r=t.length;let i=this.offset,o=this.line,s=this.col;for(;i>0&&e<0;)if(i--,e++,t.charCodeAt(i)==lL.$LF){o--;const e=t.substr(0,i-1).lastIndexOf(String.fromCharCode(lL.$LF));s=e>0?i-e:i}else s--;for(;i<r&&e>0;){const n=t.charCodeAt(i);i++,e--,n==lL.$LF?(o++,s=0):s++}return new n(this.file,i,o,s)}getContext(e,t){const n=this.file.content;let r=this.offset;if(null!=r){r>n.length-1&&(r=n.length-1);let i=r,o=0,s=0;for(;o<e&&r>0&&(r--,o++,"\n"!=n[r]||++s!=t););for(o=0,s=0;o<e&&i<n.length-1&&(i++,o++,"\n"!=n[i]||++s!=t););return{before:n.substring(r,this.offset),after:n.substring(this.offset,i+1)}}return null}}t.ParseLocation=n;class r{constructor(e,t){this.content=e,this.url=t}}t.ParseSourceFile=r;class i{constructor(e,t,n=null){this.start=e,this.end=t,this.details=n}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}}var o;t.ParseSourceSpan=i,t.EMPTY_PARSE_LOCATION=new n(new r("",""),0,0,0),t.EMPTY_SOURCE_SPAN=new i(t.EMPTY_PARSE_LOCATION,t.EMPTY_PARSE_LOCATION),function(e){e[e.WARNING=0]="WARNING",e[e.ERROR=1]="ERROR"}(o=t.ParseErrorLevel||(t.ParseErrorLevel={})),t.ParseError=class{constructor(e,t,n=o.ERROR){this.span=e,this.msg=t,this.level=n}contextualMessage(){const e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${o[this.level]} ->]${e.after}")`:this.msg}toString(){const e=this.span.details?", "+this.span.details:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}},t.typeSourceSpan=function(e,t){const o=qL.identifierModuleUrl(t),s=null!=o?`in ${e} ${qL.identifierName(t)} in ${o}`:`in ${e} ${qL.identifierName(t)}`,a=new r("",s);return new i(new n(a,-1,-1,-1),new n(a,-1,-1,-1))},t.r3JitTypeSourceSpan=function(e,t,o){const s=new r("",`in ${e} ${t} in ${o}`);return new i(new n(s,-1,-1,-1),new n(s,-1,-1,-1))}}));const{ParseSourceSpan:VL}=zL,{htmlTrim:WL,getLeadingAndTrailingHtmlWhitespace:GL,hasHtmlWhitespace:KL,canHaveInterpolation:YL,getNodeCssStyleDisplay:XL,isDanglingSpaceSensitiveNode:JL,isIndentationSensitiveNode:QL,isLeadingSpaceSensitiveNode:ZL,isTrailingSpaceSensitiveNode:ej,isWhitespaceSensitiveNode:tj}=uL,nj=[function(e){e.walk(e=>{if("element"===e.type&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&"text"===e.children[0].type&&"\n"===e.children[0].value[0]){const[t,...n]=e.children;e.setChildren(1===t.value.length?n:[t.clone({value:t.value.slice(1)}),...n])}})},function(e){const t=e=>"element"===e.type&&e.prev&&"ieConditionalStartComment"===e.prev.type&&e.prev.sourceSpan.end.offset===e.startSourceSpan.start.offset&&e.firstChild&&"ieConditionalEndComment"===e.firstChild.type&&e.firstChild.sourceSpan.start.offset===e.startSourceSpan.end.offset;e.walk(e=>{if(e.children){const n=e.children.map(t);if(n.some(Boolean)){const t=[];for(let r=0;r<e.children.length;r++){const i=e.children[r];if(!n[r+1])if(n[r]){const e=i.prev,n=i.firstChild,r=new VL(e.sourceSpan.start,n.sourceSpan.end),o=new VL(r.start,i.sourceSpan.end);t.push(i.clone({condition:e.condition,sourceSpan:o,startSourceSpan:r,children:i.children.slice(1)}))}else t.push(i)}e.setChildren(t)}}})},function(e){return function(e,t,n){e.walk(e=>{if(e.children){const r=e.children.map(t);if(r.some(Boolean)){const t=[];for(let i=0;i<e.children.length;i++){const o=e.children[i];if("text"!==o.type&&!r[i]){t.push(o);continue}const s="text"===o.type?o:o.clone({type:"text",value:n(o)});if(0===t.length||"text"!==Bn(t).type){t.push(s);continue}const a=t.pop();t.push(a.clone({value:a.value+s.value,sourceSpan:new VL(a.sourceSpan.start,s.sourceSpan.end)}))}e.setChildren(t)}}})}(e,e=>"cdata"===e.type,e=>`<![CDATA[${e.value}]]>`)},function(e,t){if("html"===t.parser)return;const n=/{{(.+?)}}/s;e.walk(e=>{if(!YL(e))return;const t=[];for(const r of e.children){if("text"!==r.type){t.push(r);continue}let e=r.sourceSpan.start,i=null;const o=r.value.split(n);for(let n=0;n<o.length;n++,e=i){const r=o[n];n%2!=0?(
|
|||
|
/**
|
|||
|
* Returns an array of the selectors.
|
|||
|
*
|
|||
|
* @license Sizzle CSS Selector Engine - MIT
|
|||
|
* @param {String} selectorText from mensch
|
|||
|
* @api public
|
|||
|
*/
|
|||
|
t.extract=function(e){for(var t=0,n=[],r="",i=0,o=e.length;i<o;i++){var s=e.charAt(i);t?("]"!==s&&")"!==s||t--,r+=s):","===s?(n.push(r),r=""):("["!==s&&"("!==s||t++,(r.length||","!==s&&"\n"!==s&&" "!==s)&&(r+=s))}return r.length&&n.push(r),n},t.parseCSS=function(e){for(var t=r.parse(e,{position:!0,comments:!0}),n="undefined"!=typeof t.stylesheet&&t.stylesheet.rules?t.stylesheet.rules:[],i=[],o=0,s=n.length;o<s;o++)if("rule"==n[o].type)for(var a=n[o],u=a.selectors,l=0,c=u.length;l<c;l++)i.push([u[l],a.declarations]);return i},t.getPreservedText=function(e,t,n){for(var i=r.parse(e,{position:!0,comments:!0}),o="undefined"!=typeof i.stylesheet&&i.stylesheet.rules?i.stylesheet.rules:[],s=[],a=o.length-1;a>=0;a--)(t.fontFaces&&"font-face"===o[a].type||t.mediaQueries&&"media"===o[a].type||t.keyFrames&&"keyframes"===o[a].type||t.pseudos&&o[a].selectors&&this.matchesPseudo(o[a].selectors[0],n))&&s.unshift(r.stringify({stylesheet:{rules:[o[a]]}},{comments:!1,indentation:" "})),o[a].position.start;return 0!==s.length&&"\n"+s.join("\n")+"\n"},t.normalizeLineEndings=function(e){return e.replace(/\r\n/g,"\n").replace(/\n/g,"\r\n")},t.matchesPseudo=function(e,t){return t.find((function(t){return e.indexOf(t)>-1}))},t.compareFunc=function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(e[r]!==t[r])return e[r]>t[r]?1:-1;return e.length-t.length},t.compare=function(e,n){return 1==t.compareFunc(e,n)?e:n},t.getDefaultOptions=function(e){var t=Object.assign({extraCss:"",insertPreservedExtraCss:!0,applyStyleTags:!0,removeStyleTags:!0,preserveMediaQueries:!0,preserveFontFaces:!0,preserveKeyFrames:!0,preservePseudos:!0,applyWidthAttributes:!0,applyHeightAttributes:!0,applyAttributesTableElements:!0,url:""},e);return t.webResources=t.webResources||{},t}},"44d2":function(e,t,n){var r=n("b622"),i=n("7c73"),o=n("9bf2"),s=r("unscopables"),a=Array.prototype;void 0==a[s]&&o.f(a,s,{configurable:!0,value:i(null)}),e.exports=function(e){a[s][e]=!0}},"44de":function(e,t,n){var r=n("da84");e.exports=function(e,t){var n=r.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}},"44e7":function(e,t,n){var r=n("861d"),i=n("c6b6"),o=n("b622"),s=o("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[s])?!!t:"RegExp"==i(e))}},"466b":function(e,t,n){"use strict";var r=n("33b7"),i=n("492c"),o=i((function(e,t){return r(e,{xmlMode:t&&t.xmlMode},s,[t])})),s=function(e,t){return o.juiceDocument(e,t)};o.inlineContent=function(e,t,n){return r(e,{xmlMode:n&&n.xmlMode},o.inlineDocument,[t,n])},e.exports=o},"466d":function(e,t,n){"use strict";var r=n("c65b"),i=n("d784"),o=n("825a"),s=n("50c4"),a=n("577e"),u=n("1d80"),l=n("dc4a"),c=n("8aa5"),p=n("14c3");i("match",(function(e,t,n){return[function(t){var n=u(this),i=void 0==t?void 0:l(t,e);return i?r(i,t,n):new RegExp(t)[e](a(n))},function(e){var r=o(this),i=a(e),u=n(t,r,i);if(u.done)return u.value;if(!r.global)return p(r,i);var l=r.unicode;r.lastIndex=0;var f,h=[],d=0;while(null!==(f=p(r,i))){var m=a(f[0]);h[d]=m,""===m&&(r.lastIndex=c(i,s(r.lastIndex),l)),d++}return 0===d?null:h}]}))},"467f":function(e,t,n){"use strict";var r=n("2d83");e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},4726:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){retu
|
|||
|
/*!
|
|||
|
* repeat-string <https://github.com/jonschlinkert/repeat-string>
|
|||
|
*
|
|||
|
* Copyright (c) 2014-2015, Jon Schlinkert.
|
|||
|
* Licensed under the MIT License.
|
|||
|
*/,xn="",En=function(e,t){if("string"!=typeof e)throw new TypeError("expected a string");if(1===t)return e;if(2===t)return e+e;var n=e.length*t;if(vn!==e||void 0===vn)vn=e,xn="";else if(xn.length>=n)return xn.substr(0,n);for(;n>xn.length&&t>1;)1&t&&(xn+=e),t>>=1,e+=e;return xn=(xn+=e).substr(0,n)},_n=function(e){return String(e).replace(/\n+$/,"")},kn=function(e,t,n){for(var r,i,o,s=-1,a=t.length,u="",l="",c="",p="";++s<a;)if(r=t.charAt(s),o)if(o=!1,u+=c,l+=p,c="",p="","\n"===r)c=r,p=r;else for(u+=r,l+=r;++s<a;){if(!(r=t.charAt(s))||"\n"===r){p=r,c=r;break}u+=r,l+=r}else if(" "===r&&t.charAt(s+1)===r&&t.charAt(s+2)===r&&t.charAt(s+3)===r)c+=Tn,s+=3,o=!0;else if("\t"===r)c+=r,o=!0;else{for(i="";"\t"===r||" "===r;)i+=r,r=t.charAt(++s);if("\n"!==r)break;c+=i+r,p+=r}if(l)return!!n||e(u)({type:"code",lang:null,meta:null,value:_n(l)})},Tn=En(" ",4),Sn=function(e,t,n){var r,i,o,s,a,u,l,c,p,f,h,d,m,g=this,y=g.options.gfm,v=t.length+1,b=0,D="";if(y){for(;b<v&&((o=t.charAt(b))===Fn||o===On);)D+=o,b++;if(d=b,"~"===(o=t.charAt(b))||"`"===o){for(b++,i=o,r=1,D+=o;b<v&&(o=t.charAt(b))===i;)D+=o,r++,b++;if(!(r<3)){for(;b<v&&((o=t.charAt(b))===Fn||o===On);)D+=o,b++;for(s="",l="";b<v&&(o=t.charAt(b))!==An&&("`"!==i||o!==i);)o===Fn||o===On?l+=o:(s+=l+o,l=""),b++;if(!(o=t.charAt(b))||o===An){if(n)return!0;(m=e.now()).column+=D.length,m.offset+=D.length,D+=s,s=g.decode.raw(g.unescape(s),m),l&&(D+=l),l="",f="",h="",c="",p="";for(var w=!0;b<v;)if(o=t.charAt(b),c+=f,p+=h,f="",h="",o===An){for(w?(D+=o,w=!1):(f+=o,h+=o),l="",b++;b<v&&(o=t.charAt(b))===Fn;)l+=o,b++;if(f+=l,h+=l.slice(d),!(l.length>=4)){for(l="";b<v&&(o=t.charAt(b))===i;)l+=o,b++;if(f+=l,h+=l,!(l.length<r)){for(l="";b<v&&((o=t.charAt(b))===Fn||o===On);)f+=o,h+=o,b++;if(!o||o===An)break}}}else c+=o,h+=o,b++;for(D+=c+f,b=-1,v=s.length;++b<v;)if((o=s.charAt(b))===Fn||o===On)a||(a=s.slice(0,b));else if(a){u=s.slice(b);break}return e(D)({type:"code",lang:a||s||null,meta:u||null,value:p})}}}}},An="\n",On="\t",Fn=" ",Nn=o((function(e,t){(t=e.exports=function(e){return e.replace(/^\s*|\s*$/g,"")}).left=function(e){return e.replace(/^\s*/,"")},t.right=function(e){return e.replace(/\s*$/,"")}})),In=function(e,t,n,r){for(var i,o,s=e.length,a=-1;++a<s;)if(i=e[a],(void 0===(o=i[1]||{}).pedantic||o.pedantic===n.options.pedantic)&&(void 0===o.commonmark||o.commonmark===n.options.commonmark)&&t[i[0]].apply(n,r))return!0;return!1},Pn=function(e,t,n){for(var r,i,o,s,a,u,l,c,p,f=this,h=f.offset,d=f.blockTokenizers,m=f.interruptBlockquote,g=e.now(),y=g.line,v=t.length,b=[],D=[],w=[],C=0;C<v&&(" "===(i=t.charAt(C))||"\t"===i);)C++;if(">"===t.charAt(C)){if(n)return!0;for(C=0;C<v;){for(s=t.indexOf("\n",C),l=C,c=!1,-1===s&&(s=v);C<v&&(" "===(i=t.charAt(C))||"\t"===i);)C++;if(">"===t.charAt(C)?(C++,c=!0," "===t.charAt(C)&&C++):C=l,a=t.slice(C,s),!c&&!Nn(a)){C=l;break}if(!c&&(o=t.slice(C),In(m,d,f,[e,o,!0])))break;u=l===C?a:t.slice(l,s),w.push(C-l),b.push(u),D.push(a),C=s+1}for(C=-1,v=w.length,r=e(b.join("\n"));++C<v;)h[y]=(h[y]||0)+w[C],y++;return p=f.enterBlock(),D=f.tokenizeBlock(D.join("\n"),g),p(),r({type:"blockquote",children:D})}},Mn=function(e,t,n){for(var r,i,o,s=this.options.pedantic,a=t.length+1,u=-1,l=e.now(),c="",p="";++u<a;){if((r=t.charAt(u))!==jn&&r!==Ln){u--;break}c+=r}for(o=0;++u<=a;){if((r=t.charAt(u))!==Bn){u--;break}c+=r,o++}if(!(o>6)&&o&&(s||t.charAt(u+1)!==Bn)){for(a=t.length+1,i="";++u<a;){if((r=t.charAt(u))!==jn&&r!==Ln){u--;break}i+=r}if(s||0!==i.length||!r||"\n"===r){if(n)return!0;for(c+=i,i="",p="";++u<a&&(r=t.charAt(u))&&"\n"!==r;)if(r===jn||r===Ln||r===Bn){for(;r===jn||r===Ln;)i+=r,r=t.charAt(++u);if(s||!p||i||r!==Bn){for(;r===Bn;)i+=r,r=t.charAt(++u);for(;r===jn||r===Ln;)i+=r,r=t.charAt(++u);u--}else p+=r}else p+=i+r,i="";return l.column+=c.length,l.offset+=c.length,e(c+=p+i)({type:"heading",depth:o,children:this.tokenizeInline(p,l)})}}},Ln="\t",jn=" ",Bn="#",Rn=function(e,t,n){for(var r,i,o,s,a=-1,u=t.length+1,l="";++a<u&&("\t"===(r=t.charAt(a))||" "===r);)l+=r;if("*"===r||"-"===r||"_"===r)for(i=r,l+=r,o=1,s="";++a<u;)if((r=t.charAt(a))===i)o++,l+=s+i,s="";else{if(" "!=
|
|||
|
/*!
|
|||
|
* Determine if an object is a Buffer
|
|||
|
*
|
|||
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|||
|
* @license MIT
|
|||
|
*/,Ui=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},qi=Object.prototype.hasOwnProperty,zi=Object.prototype.toString,Vi=Object.defineProperty,Wi=Object.getOwnPropertyDescriptor,Gi=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===zi.call(e)},Ki=function(e){if(!e||"[object Object]"!==zi.call(e))return!1;var t,n=qi.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&qi.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||qi.call(e,t)},Yi=function(e,t){Vi&&"__proto__"===t.name?Vi(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Xi=function(e,t){if("__proto__"===t){if(!qi.call(e,t))return;if(Wi)return Wi(e,t).value}return e[t]},Ji=function e(){var t,n,r,i,o,s,a=arguments[0],u=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[1]||{},u=2),(null==a||"object"!=typeof a&&"function"!=typeof a)&&(a={});u<l;++u)if(null!=(t=arguments[u]))for(n in t)r=Xi(a,n),a!==(i=Xi(t,n))&&(c&&i&&(Ki(i)||(o=Gi(i)))?(o?(o=!1,s=r&&Gi(r)?r:[]):s=r&&Ki(r)?r:{},Yi(a,{name:n,newValue:e(c,s,i)})):void 0!==i&&Yi(a,{name:n,newValue:i}));return a},Qi=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype},Zi=[].slice,eo=function(e,t){var n;return function(){var t,o=Zi.call(arguments,0),s=e.length>o.length;s&&o.push(r);try{t=e.apply(null,o)}catch(e){if(s&&n)throw e;return r(e)}s||(t&&"function"==typeof t.then?t.then(i,r):t instanceof Error?r(t):i(t))};function r(){n||(n=!0,t.apply(null,arguments))}function i(e){r(null,e)}},to=ro;ro.wrap=eo;var no=[].slice;function ro(){var e=[],t={run:function(){var t=-1,n=no.call(arguments,0,-1),r=arguments[arguments.length-1];if("function"!=typeof r)throw new Error("Expected function as last argument, not "+r);function i(o){var s=e[++t],a=no.call(arguments,0),u=a.slice(1),l=n.length,c=-1;if(o)r(o);else{for(;++c<l;)null!==u[c]&&void 0!==u[c]||(u[c]=n[c]);n=u,s?eo(s,i).apply(null,n):r.apply(null,[null].concat(n))}}i.apply(null,[null].concat(n))},use:function(n){if("function"!=typeof n)throw new Error("Expected `fn` to be a function, not "+n);return e.push(n),t}};return t}var io={}.hasOwnProperty,oo=function(e){return e&&"object"==typeof e?io.call(e,"position")||io.call(e,"type")?ao(e.position):io.call(e,"start")||io.call(e,"end")?ao(e):io.call(e,"line")||io.call(e,"column")?so(e):"":""};function so(e){return e&&"object"==typeof e||(e={}),uo(e.line)+":"+uo(e.column)}function ao(e){return e&&"object"==typeof e||(e={}),so(e.start)+"-"+so(e.end)}function uo(e){return e&&"number"==typeof e?e:1}var lo=fo;function co(){}co.prototype=Error.prototype,fo.prototype=new co;var po=fo.prototype;function fo(e,t,n){var r,i,o;"string"==typeof t&&(n=t,t=null),r=function(e){var t,n=[null,null];return"string"==typeof e&&(-1===(t=e.indexOf(":"))?n[1]=e:(n[0]=e.slice(0,t),n[1]=e.slice(t+1))),n}(n),i=oo(t)||"1:1",o={start:{line:null,column:null},end:{line:null,column:null}},t&&t.position&&(t=t.position),t&&(t.start?(o=t,t=t.start):o.start=t),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=i,this.reason=e,this.line=t?t.line:null,this.column=t?t.column:null,this.location=o,this.source=r[0],this.ruleId=r[1]}function ho(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}po.file="",po.name="",po.reason="",po.message="",po.stack="",po.fatal=null,po.column=null,po.line=null;var mo=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,go=function(e){return mo.exec(e).slice(1)};function yo(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var r=n>=0?arguments[n]:"/";if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");r&&(e=r+"/"+e,t="/"===r.charAt(0))}return(t?"/":"")+(e=ho(ko(e.split("/"),(function(e){return!!e})),!t).join("/"))||"."}function vo(e)
|
|||
|
Print (to stderr) where a cursor at the given position would move to after formatting.
|
|||
|
This option cannot be used with --range-start and --range-end.
|
|||
|
`,cliCategory:_l},endOfLine:{since:"1.15.0",category:Tl,type:"choice",default:[{since:"1.15.0",value:"auto"},{since:"2.0.0",value:"lf"}],description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:xl`
|
|||
|
Maintain existing
|
|||
|
(mixed values within one file are normalised by looking at what's used after the first line)
|
|||
|
`}]},filepath:{since:"1.4.0",category:Sl,type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:kl,cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{since:"1.8.0",category:Sl,type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:kl},parser:{since:"0.0.10",category:Tl,type:"choice",default:[{since:"0.0.10",value:"babylon"},{since:"1.13.0",value:void 0}],description:"Which parser to use.",exception:e=>"string"==typeof e||"function"==typeof e,choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"espree",since:"2.2.0",description:"JavaScript"},{value:"meriyah",since:"2.2.0",description:"JavaScript"},{value:"css",since:"1.7.1",description:"CSS"},{value:"less",since:"1.7.1",description:"Less"},{value:"scss",since:"1.7.1",description:"SCSS"},{value:"json",since:"1.5.0",description:"JSON"},{value:"json5",since:"1.13.0",description:"JSON5"},{value:"json-stringify",since:"1.13.0",description:"JSON.stringify"},{value:"graphql",since:"1.5.0",description:"GraphQL"},{value:"markdown",since:"1.8.0",description:"Markdown"},{value:"mdx",since:"1.15.0",description:"MDX"},{value:"vue",since:"1.10.0",description:"Vue"},{value:"yaml",since:"1.14.0",description:"YAML"},{value:"glimmer",since:"2.3.0",description:"Ember / Handlebars"},{value:"html",since:"1.15.0",description:"HTML"},{value:"angular",since:"1.15.0",description:"Angular"},{value:"lwc",since:"1.17.0",description:"Lightning Web Components"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:Tl,description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin",cliCategory:El},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:Tl,description:xl`
|
|||
|
Custom directory that contains prettier plugins in node_modules subdirectory.
|
|||
|
Overrides default behavior when plugins are searched relatively to the location of Prettier.
|
|||
|
Multiple values are accepted.
|
|||
|
`,exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin-search-dir",cliCategory:El},printWidth:{since:"0.0.0",category:Tl,type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},rangeEnd:{since:"1.4.0",category:Sl,type:"int",default:Number.POSITIVE_INFINITY,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:xl`
|
|||
|
Format code ending at a given character offset (exclusive).
|
|||
|
The range will extend forwards to the end of the selected statement.
|
|||
|
This option cannot be used with --cursor-offset.
|
|||
|
`,cliCategory:_l},rangeStart:{since:"1.4.0",category:Sl,type:"int",default:0,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:xl`
|
|||
|
Format code starting at a given character offset.
|
|||
|
The range will extend backwards to the start of the first line containing the selected statement.
|
|||
|
This option cannot be used with --cursor-offset.
|
|||
|
`,cliCategory:_l},requirePragma:{since:"1.7.0",category:Sl,type:"boolean",default:!1,description:xl`
|
|||
|
Require either '@prettier' or '@format' to be present in the file's first docblock comment
|
|||
|
in order for it to be formatted.
|
|||
|
`,cliCategory:kl},tabWidth:{type:"int",category:Tl,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:Tl,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:Tl,type:"choice",default:[{since:"2.1.0",value:"auto"}],description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}},Ol=["cliName","cliCategory","cliDescription"],Fl={compare:bl,lt:Dl,gte:wl},Nl="2.4.1",Il={CATEGORY_CONFIG:El,CATEGORY_EDITOR:_l,CATEGORY_FORMAT:"Format",CATEGORY_OTHER:kl,CATEGORY_OUTPUT:"Output",CATEGORY_GLOBAL:Tl,CATEGORY_SPECIAL:Sl,options:Al}.options;var Pl={getSupportInfo:function({plugins:e=[],showUnreleased:t=!1,showDeprecated:n=!1,showInternal:r=!1}={}){const i=Nl.split("-",1)[0],o=e.flatMap(e=>e.languages||[]).filter(l),s=(a=Object.assign({},...e.map(({options:e})=>e),Il),u="name",Object.entries(a).map(([e,t])=>Object.assign({[u]:e},t))).filter(e=>l(e)&&c(e)).sort((e,t)=>e.name===t.name?0:e.name<t.name?-1:1).map((function(e){return r?e:Os(e,Ol)})).map(t=>{t=Object.assign({},t),Array.isArray(t.default)&&(t.default=1===t.default.length?t.default[0].value:t.default.filter(l).sort((e,t)=>Fl.compare(t.since,e.since))[0].value),Array.isArray(t.choices)&&(t.choices=t.choices.filter(e=>l(e)&&c(e)),"parser"===t.name&&function(e,t,n){const r=new Set(e.choices.map(e=>e.value));for(const i of t)if(i.parsers)for(const t of i.parsers)if(!r.has(t)){r.add(t);const o=n.find(e=>e.parsers&&e.parsers[t]);let s=i.name;o&&o.name&&(s+=` (plugin: ${o.name})`),e.choices.push({value:t,description:s})}}(t,o,e));const n=Object.fromEntries(e.filter(e=>e.defaultOptions&&void 0!==e.defaultOptions[t.name]).map(e=>[e.name,e.defaultOptions[t.name]]));return Object.assign(Object.assign({},t),{},{pluginDefaults:n})});var a,u;return{languages:o,options:s};function l(e){return t||!("since"in e)||e.since&&Fl.gte(i,e.since)}function c(e){return n||!("deprecated"in e)||e.deprecated&&Fl.lt(i,e.deprecated)}}};const{getSupportInfo:Ml}=Pl,Ll=/[^\x20-\x7F]/;function jl(e){return(t,n,r)=>{const i=r&&r.backwards;if(!1===n)return!1;const{length:o}=t;let s=n;for(;s>=0&&s<o;){const n=t.charAt(s);if(e instanceof RegExp){if(!e.test(n))return s}else if(!e.includes(n))return s;i?s--:s++}return(-1===s||s===o)&&s}}const Bl=jl(/\s/),Rl=jl(" \t"),$l=jl(",; \t"),Hl=jl(/[^\n\r]/);function Ul(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1))for(let n=t+2;n<e.length;++n)if("*"===e.charAt(n)&&"/"===e.charAt(n+1))return n+2;return t}function ql(e,t){return!1!==t&&("/"===e.charAt(t)&&"/"===e.charAt(t+1)?Hl(e,t):t)}function zl(e,t,n){const r=n&&n.backwards;if(!1===t)return!1;const i=e.charAt(t);if(r){if("\r"===e.charAt(t-1)&&"\n"===i)return t-2;if("\n"===i||"\r"===i||"\u2028"===i||"\u2029"===i)return t-1}else{if("\r"===i&&"\n"===e.charAt(t+1))return t+2;if("\n"===i||"\r"===i||"\u2028"===i||"\u2029"===i)return t+1}return t}function Vl(e,t,n={}){const r=Rl(e,n.backwards?t-1:t,n);return r!==zl(e,r,n)}function Wl(e,t){let n=null,r=t;for(;r!==n;)n=r,r=$l(e,r),r=Ul(e,r),r=Rl(e,r);return r=ql(e,r),r=zl(e,r),!1!==r&&Vl(e,r)}function Gl(e,t){let n=null,r=t;for(;r!==n;)n=r,r=Rl(e,r),r=Ul(e,r),r=ql(e,r),r=zl(e,r);return r}function Kl(e,t,n){return Gl(e,n(t))}function Yl(e,t,n=0){let r=0;for(let i=n;i<e.length;++i)"\t"===e[i]?r=r+t-r%t:r++;return r}function Xl(e,t){const n=e.slice(1,-1),r={quote:'"',regex:/"/g},i={quote:"'",regex:/'/g},o="'"===t?i:r,s=o===i?r:i;let a=o.quote;return(n.includes(o.quote)||n.includes(s.quote))&&(a=(n.match(o.regex)||[]).length>(n.match(s.regex)||[]).length?s.quote:o.quote),a}function Jl(e,t,n){const r='"'===t?"'":'"',i=e.replace(/\\(.)|(["'])/gs,(e,i,o)=>i===r?i:o===t?"\\"+o:o||(n&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(i)?i:"\\"+i));return t+i+t}function Ql(e,t){(e.comments||(e.comments=[])).push(t),t.prin
|
|||
|
/**
|
|||
|
* Checks if an event is supported in the current execution environment.
|
|||
|
*
|
|||
|
* NOTE: This will not work correctly for non-generic events such as `change`,
|
|||
|
* `reset`, `load`, `error`, and `select`.
|
|||
|
*
|
|||
|
* Borrows from Modernizr.
|
|||
|
*
|
|||
|
* @param {string} eventNameSuffix Event name, e.g. "click".
|
|||
|
* @param {?boolean} capture Check if the capture phase is supported.
|
|||
|
* @return {boolean} True if the event is supported.
|
|||
|
* @internal
|
|||
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|||
|
*/
|
|||
|
function o(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var s=document.createElement("div");s.setAttribute(n,"return;"),o="function"===typeof s[n]}return!o&&r&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=o},"7b74":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeed=void 0;var r=n("68b4"),i=n("9f20");function o(e){var t=p(d,e);return t?"feed"===t.name?s(t):a(t):null}function s(e){var t,n=e.children,r={type:"atom",items:(0,i.getElementsByTagName)("entry",n).map((function(e){var t,n=e.children,r={media:c(n)};h(r,"id","id",n),h(r,"title","title",n);var i=null===(t=p("link",n))||void 0===t?void 0:t.attribs.href;i&&(r.link=i);var o=f("summary",n)||f("content",n);o&&(r.description=o);var s=f("updated",n);return s&&(r.pubDate=new Date(s)),r}))};h(r,"id","id",n),h(r,"title","title",n);var o=null===(t=p("link",n))||void 0===t?void 0:t.attribs.href;o&&(r.link=o),h(r,"description","subtitle",n);var s=f("updated",n);return s&&(r.updated=new Date(s)),h(r,"author","email",n,!0),r}function a(e){var t,n,r=null!==(n=null===(t=p("channel",e.children))||void 0===t?void 0:t.children)&&void 0!==n?n:[],o={type:e.name.substr(0,3),id:"",items:(0,i.getElementsByTagName)("item",e.children).map((function(e){var t=e.children,n={media:c(t)};h(n,"id","guid",t),h(n,"title","title",t),h(n,"link","link",t),h(n,"description","description",t);var r=f("pubDate",t);return r&&(n.pubDate=new Date(r)),n}))};h(o,"title","title",r),h(o,"link","link",r),h(o,"description","description",r);var s=f("lastBuildDate",r);return s&&(o.updated=new Date(s)),h(o,"author","managingEditor",r,!0),o}t.getFeed=o;var u=["url","type","lang"],l=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function c(e){return(0,i.getElementsByTagName)("media:content",e).map((function(e){for(var t=e.attribs,n={medium:t.medium,isDefault:!!t.isDefault},r=0,i=u;r<i.length;r++){var o=i[r];t[o]&&(n[o]=t[o])}for(var s=0,a=l;s<a.length;s++){o=a[s];t[o]&&(n[o]=parseInt(t[o],10))}return t.expression&&(n.expression=t.expression),n}))}function p(e,t){return(0,i.getElementsByTagName)(e,t,!0,1)[0]}function f(e,t,n){return void 0===n&&(n=!1),(0,r.textContent)((0,i.getElementsByTagName)(e,t,n,1)).trim()}function h(e,t,n,r,i){void 0===i&&(i=!1);var o=f(n,r,i);o&&(e[t]=o)}function d(e){return"rss"===e||"feed"===e||"rdf:RDF"===e}},"7bbc":function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("df2f"),n("5980"))})(0,(function(e){return function(){var t=e,n=t.lib,r=n.Base,i=n.WordArray,o=t.algo,s=o.SHA1,a=o.HMAC,u=o.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:s,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){var n=this.cfg,r=a.create(n.hasher,e),o=i.create(),s=i.create([1]),u=o.words,l=s.words,c=n.keySize,p=n.iterations;while(u.length<c){var f=r.update(t).finalize(s);r.reset();for(var h=f.words,d=h.length,m=f,g=1;g<p;g++){m=r.finalize(m),r.reset();for(var y=m.words,v=0;v<d;v++)h[v]^=y[v]}o.concat(f),l[0]++}return o.sigBytes=4*c,o}});t.PBKDF2=function(e,t,n){return u.create(n).compute(e,t)}}(),e.PBKDF2}))},"7c10":function(e,t,n){"use strict";const{DOCUMENT_MODE:r}=n("5305"),i="html",o="about:legacy-compat",s="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",a=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd
|
|||
|
/*!
|
|||
|
* vue-router v3.5.3
|
|||
|
* (c) 2021 Evan You
|
|||
|
* @license MIT
|
|||
|
*/function r(e,t){for(var n in t)e[n]=t[n];return e}var i=/[!'()*]/g,o=function(e){return"%"+e.charCodeAt(0).toString(16)},s=/%2C/g,a=function(e){return encodeURIComponent(e).replace(i,o).replace(s,",")};function u(e){try{return decodeURIComponent(e)}catch(t){0}return e}function l(e,t,n){void 0===t&&(t={});var r,i=n||p;try{r=i(e||"")}catch(a){r={}}for(var o in t){var s=t[o];r[o]=Array.isArray(s)?s.map(c):c(s)}return r}var c=function(e){return null==e||"object"===typeof e?e:String(e)};function p(e){var t={};return e=e.trim().replace(/^(\?|#|&)/,""),e?(e.split("&").forEach((function(e){var n=e.replace(/\+/g," ").split("="),r=u(n.shift()),i=n.length>0?u(n.join("=")):null;void 0===t[r]?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]})),t):t}function f(e){var t=e?Object.keys(e).map((function(t){var n=e[t];if(void 0===n)return"";if(null===n)return a(t);if(Array.isArray(n)){var r=[];return n.forEach((function(e){void 0!==e&&(null===e?r.push(a(t)):r.push(a(t)+"="+a(e)))})),r.join("&")}return a(t)+"="+a(n)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?"+t:""}var h=/\/?$/;function d(e,t,n,r){var i=r&&r.options.stringifyQuery,o=t.query||{};try{o=m(o)}catch(a){}var s={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:o,params:t.params||{},fullPath:v(t,i),matched:e?y(e):[]};return n&&(s.redirectedFrom=v(n,i)),Object.freeze(s)}function m(e){if(Array.isArray(e))return e.map(m);if(e&&"object"===typeof e){var t={};for(var n in e)t[n]=m(e[n]);return t}return e}var g=d(null,{path:"/"});function y(e){var t=[];while(e)t.unshift(e),e=e.parent;return t}function v(e,t){var n=e.path,r=e.query;void 0===r&&(r={});var i=e.hash;void 0===i&&(i="");var o=t||f;return(n||"/")+o(r)+i}function b(e,t,n){return t===g?e===t:!!t&&(e.path&&t.path?e.path.replace(h,"")===t.path.replace(h,"")&&(n||e.hash===t.hash&&D(e.query,t.query)):!(!e.name||!t.name)&&(e.name===t.name&&(n||e.hash===t.hash&&D(e.query,t.query)&&D(e.params,t.params))))}function D(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var n=Object.keys(e).sort(),r=Object.keys(t).sort();return n.length===r.length&&n.every((function(n,i){var o=e[n],s=r[i];if(s!==n)return!1;var a=t[n];return null==o||null==a?o===a:"object"===typeof o&&"object"===typeof a?D(o,a):String(o)===String(a)}))}function w(e,t){return 0===e.path.replace(h,"/").indexOf(t.path.replace(h,"/"))&&(!t.hash||e.hash===t.hash)&&C(e.query,t.query)}function C(e,t){for(var n in t)if(!(n in e))return!1;return!0}function x(e){for(var t=0;t<e.matched.length;t++){var n=e.matched[t];for(var r in n.instances){var i=n.instances[r],o=n.enteredCbs[r];if(i&&o){delete n.enteredCbs[r];for(var s=0;s<o.length;s++)i._isBeingDestroyed||o[s](i)}}}}var E={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var n=t.props,i=t.children,o=t.parent,s=t.data;s.routerView=!0;var a=o.$createElement,u=n.name,l=o.$route,c=o._routerViewCache||(o._routerViewCache={}),p=0,f=!1;while(o&&o._routerRoot!==o){var h=o.$vnode?o.$vnode.data:{};h.routerView&&p++,h.keepAlive&&o._directInactive&&o._inactive&&(f=!0),o=o.$parent}if(s.routerViewDepth=p,f){var d=c[u],m=d&&d.component;return m?(d.configProps&&_(m,s,d.route,d.configProps),a(m,s,i)):a()}var g=l.matched[p],y=g&&g.components[u];if(!g||!y)return c[u]=null,a();c[u]={component:y},s.registerRouteInstance=function(e,t){var n=g.instances[u];(t&&n!==e||!t&&n===e)&&(g.instances[u]=t)},(s.hook||(s.hook={})).prepatch=function(e,t){g.instances[u]=t.componentInstance},s.hook.init=function(e){e.data.keepAlive&&e.componentInstance&&e.componentInstance!==g.instances[u]&&(g.instances[u]=e.componentInstance),x(l)};var v=g.props&&g.props[u];return v&&(r(c[u],{route:l,configProps:v}),_(y,s,l,v)),a(y,s,i)}};function _(e,t,n,i){var o=t.props=k(n,i);if(o){o=t.props=r({},o);var s=t.attrs=t.attrs||{};for(var a in o)e.props&&a in e.props||(s[a]=o[a],delete o[a])}}function k(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:0}}function T(e
|
|||
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|||
|
t.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,u=(1<<a)-1,l=u>>1,c=-7,p=n?i-1:0,f=n?-1:1,h=e[t+p];for(p+=f,o=h&(1<<-c)-1,h>>=-c,c+=a;c>0;o=256*o+e[t+p],p+=f,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=r;c>0;s=256*s+e[t+p],p+=f,c-=8);if(0===o)o=1-l;else{if(o===u)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),o-=l}return(h?-1:1)*s*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var s,a,u,l=8*o-i-1,c=(1<<l)-1,p=c>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,d=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),t+=s+p>=1?f/u:f*Math.pow(2,1-p),t*u>=2&&(s++,u/=2),s+p>=c?(a=0,s=c):s+p>=1?(a=(t*u-1)*Math.pow(2,i),s+=p):(a=t*Math.pow(2,p-1)*Math.pow(2,i),s=0));i>=8;e[n+h]=255&a,h+=d,a/=256,i-=8);for(s=s<<i|a,l+=i;l>0;e[n+h]=255&s,h+=d,s/=256,l-=8);e[n+h-d]|=128*m}},"91dd":function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,o){t=t||"&",n=n||"=";var s={};if("string"!==typeof e||0===e.length)return s;var a=/\+/g;e=e.split(t);var u=1e3;o&&"number"===typeof o.maxKeys&&(u=o.maxKeys);var l=e.length;u>0&&l>u&&(l=u);for(var c=0;c<l;++c){var p,f,h,d,m=e[c].replace(a,"%20"),g=m.indexOf(n);g>=0?(p=m.substr(0,g),f=m.substr(g+1)):(p=m,f=""),h=decodeURIComponent(p),d=decodeURIComponent(f),r(s,h)?i(s[h])?s[h].push(d):s[h]=[s[h],d]:s[h]=d}return s};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},9263:function(e,t,n){"use strict";var r=n("c65b"),i=n("e330"),o=n("577e"),s=n("ad6d"),a=n("9f7f"),u=n("5692"),l=n("7c73"),c=n("69f3").get,p=n("fce3"),f=n("107c"),h=u("native-string-replace",String.prototype.replace),d=RegExp.prototype.exec,m=d,g=i("".charAt),y=i("".indexOf),v=i("".replace),b=i("".slice),D=function(){var e=/a/,t=/b*/g;return r(d,e,"a"),r(d,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),w=a.UNSUPPORTED_Y||a.BROKEN_CARET,C=void 0!==/()??/.exec("")[1],x=D||C||w||p||f;x&&(m=function(e){var t,n,i,a,u,p,f,x=this,E=c(x),_=o(e),k=E.raw;if(k)return k.lastIndex=x.lastIndex,t=r(m,k,_),x.lastIndex=k.lastIndex,t;var T=E.groups,S=w&&x.sticky,A=r(s,x),O=x.source,F=0,N=_;if(S&&(A=v(A,"y",""),-1===y(A,"g")&&(A+="g"),N=b(_,x.lastIndex),x.lastIndex>0&&(!x.multiline||x.multiline&&"\n"!==g(_,x.lastIndex-1))&&(O="(?: "+O+")",N=" "+N,F++),n=new RegExp("^(?:"+O+")",A)),C&&(n=new RegExp("^"+O+"$(?!\\s)",A)),D&&(i=x.lastIndex),a=r(d,S?n:x,N),S?a?(a.input=b(a.input,F),a[0]=b(a[0],F),a.index=x.lastIndex,x.lastIndex+=a[0].length):x.lastIndex=0:D&&a&&(x.lastIndex=x.global?a.index+a[0].length:i),C&&a&&a.length>1&&r(h,a[0],n,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(a[u]=void 0)})),a&&T)for(a.groups=p=l(null),u=0;u<T.length;u++)f=T[u],p[f[0]]=a[f[1]];return a}),e.exports=m},"92f0":function(e,t,n){var r=n("1a14").f,i=n("9c0e"),o=n("cc15")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},"92fa":function(e,t){var n=/^(attrs|props|on|nativeOn|class|style|hook)$/;function r(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}}e.exports=function(e){return e.reduce((function(e,t){var i,o,s,a,u;for(s in t)if(i=e[s],o=t[s],i&&n.test(s))if("class"===s&&("string"===typeof i&&(u=i,e[s]=i={},i[u]=!0),"string"===typeof o&&(u=o,t[s]=o={},o[u]=!0)),"on"===s||"nativeOn"===s||"hook"===s)for(a in o)i[a]=r(i[a],o[a]);else if(Array.isArray(i))e[s]=i.concat(o);else if(Array.isArray(o))e[s]=[i].concat(o);else for(a in o)i[a]=o[a];else e[s]=t[s];return e}),{})}},9459:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializeArray=t.serialize=void 0;var r=n("4a1c"),i="input,select,textarea,keygen",o=/%20/g,s=/\r?\n/g;function a(){var e=this.serializeArray(),t=e.map((function(e){return encodeURIComponent(e.name)+"="+encodeURIComponent(e.value)}));return t.join("&").replace(o,"+")}function u(){var e=this;return this.map((function(t,n){var o=e._make(n);return r.isTag(n)&&"form"===n.name?o.find(i).toArray():o.filter(i).toArray()})).filter('[name!=""]:enable
|
|||
|
/*! *****************************************************************************
|
|||
|
Copyright (c) Microsoft Corporation.
|
|||
|
|
|||
|
Permission to use, copy, modify, and/or distribute this software for any
|
|||
|
purpose with or without fee is hereby granted.
|
|||
|
|
|||
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|||
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|||
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|||
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|||
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|||
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|||
|
PERFORMANCE OF THIS SOFTWARE.
|
|||
|
***************************************************************************** */
|
|||
|
var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function a(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function u(e,t){return function(n,r){t(n,r,e)}}function l(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{u(r.next(e))}catch(t){o(t)}}function a(e){try{u(r["throw"](e))}catch(t){o(t)}}function u(e){e.done?n(e.value):i(e.value).then(s,a)}u((r=r.apply(e,t||[])).next())}))}function p(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return u([e,t])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}var f=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function h(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||f(t,e,n)}function d(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{while((void 0===t||t-- >0)&&!(r=o.next()).done)s.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return s}function g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function y(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r}function v(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r|
|
|||
|
/*!
|
|||
|
* Bowser - a browser detector
|
|||
|
* https://github.com/ded/bowser
|
|||
|
* MIT License | (c) Dustin Diaz 2015
|
|||
|
*/
|
|||
|
!function(e,n,r){"undefined"!=typeof t&&t.exports?t.exports=r():"function"==typeof define&&define.amd?define(n,r):e[n]=r()}(this,"bowser",(function(){var e=!0;function t(t){function n(e){var n=t.match(e);return n&&n.length>1&&n[1]||""}function r(e){var n=t.match(e);return n&&n.length>1&&n[2]||""}var i,s=n(/(ipod|iphone|ipad)/i).toLowerCase(),a=/like android/i.test(t),u=!a&&/android/i.test(t),l=/nexus\s*[0-6]\s*/i.test(t),c=!l&&/nexus\s*[0-9]+/i.test(t),p=/CrOS/.test(t),f=/silk/i.test(t),h=/sailfish/i.test(t),d=/tizen/i.test(t),m=/(web|hpw)(o|0)s/i.test(t),g=/windows phone/i.test(t),y=(/SamsungBrowser/i.test(t),!g&&/windows/i.test(t)),v=!s&&!f&&/macintosh/i.test(t),b=!u&&!h&&!d&&!m&&/linux/i.test(t),D=r(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),w=n(/version\/(\d+(\.\d+)?)/i),C=/tablet/i.test(t)&&!/tablet pc/i.test(t),x=!C&&/[^-]mobi/i.test(t),E=/xbox/i.test(t);function _(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}/opera/i.test(t)?i={name:"Opera",opera:e,version:w||n(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(t)?i={name:"Opera",opera:e,version:n(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||w}:/SamsungBrowser/i.test(t)?i={name:"Samsung Internet for Android",samsungBrowser:e,version:w||n(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(t)?i={name:"NAVER Whale browser",whale:e,version:n(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(t)?i={name:"MZ Browser",mzbrowser:e,version:n(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(t)?i={name:"Opera Coast",coast:e,version:w||n(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(t)?i={name:"Focus",focus:e,version:n(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(t)?i={name:"Yandex Browser",yandexbrowser:e,version:w||n(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(t)?i={name:"UC Browser",ucbrowser:e,version:n(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(t)?i={name:"Maxthon",maxthon:e,version:n(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(t)?i={name:"Epiphany",epiphany:e,version:n(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(t)?i={name:"Puffin",puffin:e,version:n(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(t)?i={name:"Sleipnir",sleipnir:e,version:n(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(t)?i={name:"K-Meleon",kMeleon:e,version:n(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:g?(i={name:"Windows Phone",osname:"Windows Phone",windowsphone:e},D?(i.msedge=e,i.version=D):(i.msie=e,i.version=n(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(t)?i={name:"Internet Explorer",msie:e,version:n(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:p?i={name:"Chrome",osname:"Chrome OS",chromeos:e,chromeBook:e,chrome:e,version:n(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(t)?i={name:"Microsoft Edge",msedge:e,version:D}:/vivaldi/i.test(t)?i={name:"Vivaldi",vivaldi:e,version:n(/vivaldi\/(\d+(\.\d+)?)/i)||w}:h?i={name:"Sailfish",osname:"Sailfish OS",sailfish:e,version:n(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(t)?i={name:"SeaMonkey",seamonkey:e,version:n(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(t)?(i={name:"Firefox",firefox:e,version:n(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(t)&&(i.firefoxos=e,i.osname="Firefox OS")):f?i={name:"Amazon Silk",silk:e,version:n(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(t)?i={name:"PhantomJS",phantom:e,version:n(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(t)?i={name:"SlimerJS",slimer:e,version:n(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(t)||/rim\stablet/i.test(t)?i={name:"BlackBerry",osname:"BlackBerry OS",blackberry:e,version:w||n(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:m?(i={name:"WebOS",osname:"WebOS",webos:e,version:w||n(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(t)&&(i.touchpad=e)):/bada/i.test(t)?i={name:"Bada",osname:"Bada",bada:e,version:n(/dolf
|
|||
|
/*!
|
|||
|
* The buffer module from node.js, for the browser.
|
|||
|
*
|
|||
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|||
|
* @license MIT
|
|||
|
*/
|
|||
|
"use strict";var r=e("base64-js"),i=e("ieee754");n.Buffer=t,n.SlowBuffer=y,n.INSPECT_MAX_BYTES=50;var o=2147483647;function s(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(t){return!1}}function a(e){if(e>o)throw new RangeError('The value "'+e+'" is invalid for option "size"');var n=new Uint8Array(e);return n.__proto__=t.prototype,n}function t(e,t,n){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return p(e)}return u(e,t,n)}function u(e,n,r){if("string"===typeof e)return f(e,n);if(ArrayBuffer.isView(e))return h(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(X(e,ArrayBuffer)||e&&X(e.buffer,ArrayBuffer))return d(e,n,r);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return t.from(i,n,r);var o=m(e);if(o)return o;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return t.from(e[Symbol.toPrimitive]("string"),n,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function c(e,t,n){return l(e),e<=0?a(e):void 0!==t?"string"===typeof n?a(e).fill(t,n):a(e).fill(t):a(e)}function p(e){return l(e),a(e<0?0:0|g(e))}function f(e,n){if("string"===typeof n&&""!==n||(n="utf8"),!t.isEncoding(n))throw new TypeError("Unknown encoding: "+n);var r=0|v(e,n),i=a(r),o=i.write(e,n);return o!==r&&(i=i.slice(0,o)),i}function h(e){for(var t=e.length<0?0:0|g(e.length),n=a(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function d(e,n,r){if(n<0||e.byteLength<n)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<n+(r||0))throw new RangeError('"length" is outside of buffer bounds');var i;return i=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),i.__proto__=t.prototype,i}function m(e){if(t.isBuffer(e)){var n=0|g(e.length),r=a(n);return 0===r.length||e.copy(r,0,0,n),r}return void 0!==e.length?"number"!==typeof e.length||J(e.length)?a(0):h(e):"Buffer"===e.type&&Array.isArray(e.data)?h(e.data):void 0}function g(e){if(e>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function y(e){return+e!=e&&(e=0),t.alloc(+e)}function v(e,n){if(t.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||X(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===r)return 0;for(var o=!1;;)switch(n){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return K(e).length;default:if(o)return i?-1:V(e).length;n=(""+n).toLowerCase(),o=!0}}function b(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return M(this,t,n);case"utf8":case"utf-8":return O(this,t,n);case"ascii":return I(this,t,n);case"latin1":case"binary":return P(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function D(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function w(e,n,r,i,o){if(0===e.length)return-1;if("string"===typeof r?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-21
|
|||
|
/*!
|
|||
|
* copy-to - index.js
|
|||
|
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
|
|||
|
* MIT Licensed
|
|||
|
*/
|
|||
|
"use strict";var r=Array.prototype.slice;function i(e,t){if(!(this instanceof i))return new i(e,t);this.src=e,this._withAccess=t}function o(e,t){return void 0===e[t]&&void 0===e.__lookupGetter__(t)&&void 0===e.__lookupSetter__(t)}t.exports=i,i.prototype.withAccess=function(e){return this._withAccess=!1!==e,this},i.prototype.pick=function(e){return Array.isArray(e)||(e=r.call(arguments)),e.length&&(this.keys=e),this},i.prototype.to=function(e){if(e=e||{},!this.src)return e;var t=this.keys||Object.keys(this.src);if(!this._withAccess){for(var n=0;n<t.length;n++)r=t[n],void 0===e[r]&&(e[r]=this.src[r]);return e}for(n=0;n<t.length;n++){var r=t[n];if(o(e,r)){var i=this.src.__lookupGetter__(r),s=this.src.__lookupSetter__(r);i&&e.__defineGetter__(r,i),s&&e.__defineSetter__(r,s),i||s||(e[r]=this.src[r])}}return e},i.prototype.toCover=function(e){for(var t=this.keys||Object.keys(this.src),n=0;n<t.length;n++){var r=t[n];delete e[r];var i=this.src.__lookupGetter__(r),o=this.src.__lookupSetter__(r);i&&e.__defineGetter__(r,i),o&&e.__defineSetter__(r,o),i||o||(e[r]=this.src[r])}},i.prototype.override=i.prototype.toCover,i.prototype.and=function(e){var t={};return this.to(t),this.src=e,this.to(t),this.src=t,this}},{}],102:[function(e,t,n){t.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},{}],103:[function(e,t,n){var r=e("../internals/is-object");t.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},{"../internals/is-object":164}],104:[function(e,t,n){var r=e("../internals/well-known-symbol"),i=e("../internals/object-create"),o=e("../internals/object-define-property"),s=r("unscopables"),a=Array.prototype;void 0==a[s]&&o.f(a,s,{configurable:!0,value:i(null)}),t.exports=function(e){a[s][e]=!0}},{"../internals/object-create":178,"../internals/object-define-property":180,"../internals/well-known-symbol":231}],105:[function(e,t,n){"use strict";var r=e("../internals/string-multibyte").charAt;t.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},{"../internals/string-multibyte":211}],106:[function(e,t,n){t.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},{}],107:[function(e,t,n){var r=e("../internals/is-object");t.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},{"../internals/is-object":164}],108:[function(e,t,n){t.exports="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof DataView},{}],109:[function(e,t,n){"use strict";var r,i=e("../internals/array-buffer-native"),o=e("../internals/descriptors"),s=e("../internals/global"),a=e("../internals/is-object"),u=e("../internals/has"),l=e("../internals/classof"),c=e("../internals/create-non-enumerable-property"),p=e("../internals/redefine"),f=e("../internals/object-define-property").f,h=e("../internals/object-get-prototype-of"),d=e("../internals/object-set-prototype-of"),m=e("../internals/well-known-symbol"),g=e("../internals/uid"),y=s.Int8Array,v=y&&y.prototype,b=s.Uint8ClampedArray,D=b&&b.prototype,w=y&&h(y),C=v&&h(v),x=Object.prototype,E=x.isPrototypeOf,_=m("toStringTag"),k=g("TYPED_ARRAY_TAG"),T=i&&!!d&&"Opera"!==l(s.opera),S=!1,A={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},O=function(e){var t=l(e);return"DataView"===t||u(A,t)},F=function(e){return a(e)&&u(A,l(e))},N=function(e){if(F(e))return e;throw TypeError("Target is not a typed array")},I=function(e){if(d){if(E.call(w,e))return e}else for(var t in A)if(u(A,r)){var n=s[t];if(n&&(e===n||E.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},P=function(e,t,n){if(o){if(n)for(var r in A){var i=s[r];i&&u(i.prototype,e)&&delete i.prototype[e]}C[e]&&!n||p(C,e,n?t:T&&v[e]||t)}},M=function(e,t,n){var r,i;if(o){if(d){if(n)for(r in A)i=s[r],i&&u(i,e)&&delete i[e];if(w[e]&&!n)return;try{return p(w,e,n?t:T&&y[e]||t)}catch(a){}}for(r in A)i=s[r],!i||i[e]&&!n||p(i,e,t)}};for(r in A)s[r]||(T=!1);if((!T||"function"!=typeof w||w===Fu
|
|||
|
/*!
|
|||
|
* escape-html
|
|||
|
* Copyright(c) 2012-2013 TJ Holowaychuk
|
|||
|
* Copyright(c) 2015 Andreas Lubbe
|
|||
|
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
|||
|
* MIT Licensed
|
|||
|
*/
|
|||
|
"use strict";var r=/["'&<>]/;function i(e){var t,n=""+e,i=r.exec(n);if(!i)return n;var o="",s=0,a=0;for(s=i.index;s<n.length;s++){switch(n.charCodeAt(s)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}a!==s&&(o+=n.substring(a,s)),a=s+1,o+=t}return a!==s?o+n.substring(a,s):o}t.exports=i},{}],296:[function(e,t,n){var r=Object.create||E,i=Object.keys||_,o=Function.prototype.bind||k;function s(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=r(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}t.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._maxListeners=void 0;var a,u=10;try{var l={};Object.defineProperty&&Object.defineProperty(l,"x",{value:0}),a=0===l.x}catch(T){a=!1}function c(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function p(e,t,n){if(t)e.call(n);else for(var r=e.length,i=C(e,r),o=0;o<r;++o)i[o].call(n)}function f(e,t,n,r){if(t)e.call(n,r);else for(var i=e.length,o=C(e,i),s=0;s<i;++s)o[s].call(n,r)}function h(e,t,n,r,i){if(t)e.call(n,r,i);else for(var o=e.length,s=C(e,o),a=0;a<o;++a)s[a].call(n,r,i)}function d(e,t,n,r,i,o){if(t)e.call(n,r,i,o);else for(var s=e.length,a=C(e,s),u=0;u<s;++u)a[u].call(n,r,i,o)}function m(e,t,n,r){if(t)e.apply(n,r);else for(var i=e.length,o=C(e,i),s=0;s<i;++s)o[s].apply(n,r)}function g(e,t,n,i){var o,s,a;if("function"!==typeof n)throw new TypeError('"listener" argument must be a function');if(s=e._events,s?(s.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),s=e._events),a=s[t]):(s=e._events=r(null),e._eventsCount=0),a){if("function"===typeof a?a=s[t]=i?[n,a]:[a,n]:i?a.unshift(n):a.push(n),!a.warned&&(o=c(e),o&&o>0&&a.length>o)){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+' "'+String(t)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,"object"===typeof console&&console.warn&&console.warn("%s: %s",u.name,u.message)}}else a=s[t]=n,++e._eventsCount;return e}function y(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];this.listener.apply(this.target,e)}}function v(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=o.call(y,r);return i.listener=n,r.wrapFn=i,i}function b(e,t,n){var r=e._events;if(!r)return[];var i=r[t];return i?"function"===typeof i?n?[i.listener||i]:[i]:n?x(i):C(i,i.length):[]}function D(e){var t=this._events;if(t){var n=t[e];if("function"===typeof n)return 1;if(n)return n.length}return 0}function w(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}function C(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function x(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function E(e){var t=function(){};return t.prototype=e,new t}function _(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return n}function k(e){var t=this;return function(){return t.apply(e,arguments)}}a?Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(e){if("number"!==typeof e||e<0||e!==e)throw new TypeError('"defaultMaxListeners" must be a positive number');u=e}}):s.defaultMaxListeners=u,s.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return c(this)},s.prototype.emit=function(e){var t,n,r,i,o,s,a="error"===e;if(s=this._events,s)a=a&&null==s.error;else if(!a)retur
|
|||
|
/*!
|
|||
|
* humanize-ms - index.js
|
|||
|
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
|
|||
|
* MIT Licensed
|
|||
|
*/
|
|||
|
"use strict";var r=e("util"),i=e("ms");t.exports=function(e){if("number"===typeof e)return e;var t=i(e);if(void 0===t){var n=new Error(r.format("humanize-ms(%j) result undefined",e));console.warn(n.stack)}return t}},{ms:314,util:345}],299:[function(e,t,n){n.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,u=(1<<a)-1,l=u>>1,c=-7,p=n?i-1:0,f=n?-1:1,h=e[t+p];for(p+=f,o=h&(1<<-c)-1,h>>=-c,c+=a;c>0;o=256*o+e[t+p],p+=f,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=r;c>0;s=256*s+e[t+p],p+=f,c-=8);if(0===o)o=1-l;else{if(o===u)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),o-=l}return(h?-1:1)*s*Math.pow(2,o-r)},n.write=function(e,t,n,r,i,o){var s,a,u,l=8*o-i-1,c=(1<<l)-1,p=c>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,d=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),t+=s+p>=1?f/u:f*Math.pow(2,1-p),t*u>=2&&(s++,u/=2),s+p>=c?(a=0,s=c):s+p>=1?(a=(t*u-1)*Math.pow(2,i),s+=p):(a=t*Math.pow(2,p-1)*Math.pow(2,i),s=0));i>=8;e[n+h]=255&a,h+=d,a/=256,i-=8);for(s=s<<i|a,l+=i;l>0;e[n+h]=255&s,h+=d,s/=256,l-=8);e[n+h-d]|=128*m}},{}],300:[function(e,t,n){"use strict";var r,i,o,s=[e("./nextTick"),e("./queueMicrotask"),e("./mutation.js"),e("./messageChannel"),e("./stateChange"),e("./timeout")],a=-1,u=[],l=!1;function c(){r&&i&&(r=!1,i.length?u=i.concat(u):a=-1,u.length&&p())}function p(){if(!r){l=!1,r=!0;var e=u.length,t=setTimeout(c);while(e){i=u,u=[];while(i&&++a<e)i[a].run();a=-1,e=u.length}i=null,a=-1,r=!1,clearTimeout(t)}}var f=-1,h=s.length;while(++f<h)if(s[f]&&s[f].test&&s[f].test()){o=s[f].install(p);break}function d(e,t){this.fun=e,this.array=t}function m(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new d(e,t)),l||r||(l=!0,o())}d.prototype.run=function(){var e=this.fun,t=this.array;switch(t.length){case 0:return e();case 1:return e(t[0]);case 2:return e(t[0],t[1]);case 3:return e(t[0],t[1],t[2]);default:return e.apply(null,t)}},t.exports=m},{"./messageChannel":301,"./mutation.js":302,"./nextTick":79,"./queueMicrotask":303,"./stateChange":304,"./timeout":305}],301:[function(e,t,n){(function(e){"use strict";n.test=function(){return!e.setImmediate&&"undefined"!==typeof e.MessageChannel},n.install=function(t){var n=new e.MessageChannel;return n.port1.onmessage=t,function(){n.port2.postMessage(0)}}}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],302:[function(e,t,n){(function(e){"use strict";var t=e.MutationObserver||e.WebKitMutationObserver;n.test=function(){return t},n.install=function(n){var r=0,i=new t(n),o=e.document.createTextNode("");return i.observe(o,{characterData:!0}),function(){o.data=r=++r%2}}}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],303:[function(e,t,n){(function(e){"use strict";n.test=function(){return"function"===typeof e.queueMicrotask},n.install=function(t){return function(){e.queueMicrotask(t)}}}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],304:[function(e,t,n){(function(e){"use strict";n.test=function(){return"document"in e&&"onreadystatechange"in e.document.createElement("script")},n.install=function(t){return function(){var n=e.document.createElement("script");return n.onreadystatechange=function(){t(),n.onreadystatechange=null,n.parentNode.removeChild(n),n=null},e.document.documentElement.appendChild(n),t}}}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],305:[function(e,t,n){"use strict";n.test=function(){return!0},n.install=function(e){return function(){setTimeout(e,0)}}},{}],306:[function(e,t,n){"function"===typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototyp
|
|||
|
/*!
|
|||
|
* Determine if an object is a Buffer
|
|||
|
*
|
|||
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|||
|
* @license MIT
|
|||
|
*/
|
|||
|
t.exports=function(e){return null!=e&&(r(e)||i(e)||!!e._isBuffer)}},{}],308:[function(e,t,n){var r={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},{}],309:[function(require,module,exports){(function(global){(function(e,t){"object"===typeof exports&&"undefined"!==typeof module?module.exports=t(e):"function"===typeof define&&define.amd?define(t):t(e)})("undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof global?global:this,(function(global){"use strict";global=global||{};var _Base64=global.Base64,version="2.5.2",buffer;if("undefined"!==typeof module&&module.exports)try{buffer=eval("require('buffer').Buffer")}catch(err){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(e){for(var t={},n=0,r=e.length;n<r;n++)t[e.charAt(n)]=n;return t}(b64chars),fromCharCode=String.fromCharCode,cb_utob=function(e){if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?fromCharCode(192|t>>>6)+fromCharCode(128|63&t):fromCharCode(224|t>>>12&15)+fromCharCode(128|t>>>6&63)+fromCharCode(128|63&t)}t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return fromCharCode(240|t>>>18&7)+fromCharCode(128|t>>>12&63)+fromCharCode(128|t>>>6&63)+fromCharCode(128|63&t)},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(e){return e.replace(re_utob,cb_utob)},cb_encode=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0),r=[b64chars.charAt(n>>>18),b64chars.charAt(n>>>12&63),t>=2?"=":b64chars.charAt(n>>>6&63),t>=1?"=":b64chars.charAt(63&n)];return r.join("")},btoa=global.btoa?function(e){return global.btoa(e)}:function(e){return e.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=function(e){var t="[object Uint8Array]"===Object.prototype.toString.call(e);return t?e.toString("base64"):btoa(utob(String(e)))},encode=function(e,t){return t?_encode(String(e)).replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,""):_encode(e)},encodeURI=function(e){return encode(e,!0)},re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=function(e){switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=t-65536;return fromCharCode(55296+(n>>>10))+fromCharCode(56320+(1023&n));case 3:return fromCharCode((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return fromCharCode((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},btou=function(e){return e.replace(re_btou,cb_btou)},cb_decode=function(e){var t=e.length,n=t%4,r=(t>0?b64tab[e.charAt(0)]<<18:0)|(t>1?b64tab[e.charAt(1)]<<12:0)|(t>2?b64tab[e.charAt(2)]<<6:0)|(t>3?b64tab[e.charAt(3)]:0),i=[fromCharCode(r>>>16),fromCharCode(r>>>8&255),fromCharCode(255&r)];return i.length-=[0,0,2,1][n],i.join("")},_atob=global.atob?function(e){return global.atob(e)}:function(e){return e.replace(/\S{1,4}/g,cb_decode)},atob=function(e){return _atob(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(e){return(e.constructor===buffer.constructor?e:buffer.from(e,"base64")).toString()}:function(e){return(e.constructor===buffer.constructor?e:new buffer(e,"base64")).toString()}:function(e){return btou(_atob(e))},decode=function(e){return _decode(String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var e=global.Base64;return global.Base64=_Base64,e};if(global.Base64={VERSION:version,atob:atob,btoa:btoa,fromBase64:decode,toBase64:encode,utob:utob,encode:encode,encodeURI:encodeURI,btou:btou,decode:decode,noConflict:noConflict,__buffer__:buffer},"function"===typeof Object.defineProperty){var noEnum=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};global.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",noEnum((function(){return decode(this)}))),Object.defineProperty(String.prototype,"toBase64",noEnum((function
|
|||
|
/*!
|
|||
|
* merge-descriptors
|
|||
|
* Copyright(c) 2014 Jonathan Ong
|
|||
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|||
|
* MIT Licensed
|
|||
|
*/
|
|||
|
"use strict";t.exports=i;var r=Object.prototype.hasOwnProperty;function i(e,t,n){if(!e)throw new TypeError("argument dest is required");if(!t)throw new TypeError("argument src is required");return void 0===n&&(n=!0),Object.getOwnPropertyNames(t).forEach((function(i){if(n||!r.call(e,i)){var o=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,o)}})),e}},{}],311:[function(e,t,n){"use strict";function r(){this._types=Object.create(null),this._extensions=Object.create(null);for(var e=0;e<arguments.length;e++)this.define(arguments[e]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}r.prototype.define=function(e,t){for(var n in e){var r=e[n].map((function(e){return e.toLowerCase()}));n=n.toLowerCase();for(var i=0;i<r.length;i++){var o=r[i];if("*"!=o[0]){if(!t&&o in this._types)throw new Error('Attempt to change mapping for "'+o+'" extension from "'+this._types[o]+'" to "'+n+'". Pass `force=true` to allow this, otherwise remove "'+o+'" from the list of extensions for "'+n+'".');this._types[o]=n}}if(t||!this._extensions[n]){o=r[0];this._extensions[n]="*"!=o[0]?o:o.substr(1)}}},r.prototype.getType=function(e){e=String(e);var t=e.replace(/^.*[/\\]/,"").toLowerCase(),n=t.replace(/^.*\./,"").toLowerCase(),r=t.length<e.length,i=n.length<t.length-1;return(i||!r)&&this._types[n]||null},r.prototype.getExtension=function(e){return e=/^\s*([^;\s]*)/.test(e)&&RegExp.$1,e&&this._extensions[e.toLowerCase()]||null},t.exports=r},{}],312:[function(e,t,n){"use strict";var r=e("./Mime");t.exports=new r(e("./types/standard"))},{"./Mime":311,"./types/standard":313}],313:[function(e,t,n){t.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma","es"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/mrb-consu
|
|||
|
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */k=n.STATE,String.fromCodePoint||function(){var e=String.fromCharCode,t=Math.floor,n=function(){var n,r,i=16384,o=[],s=-1,a=arguments.length;if(!a)return"";var u="";while(++s<a){var l=Number(arguments[s]);if(!isFinite(l)||l<0||l>1114111||t(l)!==l)throw RangeError("Invalid code point: "+l);l<=65535?o.push(l):(l-=65536,n=55296+(l>>10),r=l%1024+56320,o.push(n,r)),(s+1===a||o.length>i)&&(u+=e.apply(null,o),o.length=0)}return u};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:n,configurable:!0,writable:!0}):String.fromCodePoint=n}()})("undefined"===typeof n?this.sax={}:n)}).call(this,e("buffer").Buffer)},{buffer:99,stream:339,string_decoder:340}],339:[function(e,t,n){t.exports=o;var r=e("events").EventEmitter,i=e("inherits");function o(){r.call(this)}i(o,r),o.Readable=e("readable-stream/readable.js"),o.Writable=e("readable-stream/writable.js"),o.Duplex=e("readable-stream/duplex.js"),o.Transform=e("readable-stream/transform.js"),o.PassThrough=e("readable-stream/passthrough.js"),o.Stream=o,o.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(n.on("end",a),n.on("close",u));var s=!1;function a(){s||(s=!0,e.end())}function u(){s||(s=!0,"function"===typeof e.destroy&&e.destroy())}function l(e){if(c(),0===r.listenerCount(this,"error"))throw e}function c(){n.removeListener("data",i),e.removeListener("drain",o),n.removeListener("end",a),n.removeListener("close",u),n.removeListener("error",l),e.removeListener("error",l),n.removeListener("end",c),n.removeListener("close",c),e.removeListener("close",c)}return n.on("error",l),e.on("error",l),n.on("end",c),n.on("close",c),e.on("close",c),e.emit("pipe",n),e}},{events:296,inherits:306,"readable-stream/duplex.js":323,"readable-stream/passthrough.js":332,"readable-stream/readable.js":333,"readable-stream/transform.js":334,"readable-stream/writable.js":335}],340:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,i=r.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){if(!e)return"utf8";var t;while(1)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function s(e){var t=o(e);if("string"!==typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}function a(e){var t;switch(this.encoding=s(e),this.encoding){case"utf16le":this.text=d,this.end=m,t=4;break;case"utf8":this.fillLast=p,t=4;break;case"base64":this.text=g,this.end=y,t=3;break;default:return this.write=v,void(this.end=b)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function u(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function l(e,t,n){var r=t.length-1;if(r<n)return 0;var i=u(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||-2===i?0:(i=u(t[r]),i>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||-2===i?0:(i=u(t[r]),i>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0))}function c(e,t,n){if(128!==(192&t[0]))return e.lastNeed=0,"<22>";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"<22>";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"<22>"}}function p(e){var t=this.lastTotal-this.lastNeed,n=c(this,e,t);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function f(e,t){var n=l(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)}function h(e){var t=e&&e.length?this.write(e):"";retu
|
|||
|
/** @preserve
|
|||
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|||
|
* derived from CryptoJS.mode.CTR
|
|||
|
* Jan Hruby jhruby.web@gmail.com
|
|||
|
*/
|
|||
|
return e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function n(e){if(255===(e>>24&255)){var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}function r(e){return 0===(e[0]=n(e[0]))&&(e[1]=n(e[1])),e}var i=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,o=this._iv,s=this._counter;o&&(s=this._counter=o.slice(0),this._iv=void 0),r(s);var a=s.slice(0);n.encryptBlock(a,0);for(var u=0;u<i;u++)e[t+u]^=a[u]}});return t.Decryptor=i,t}(),e.mode.CTRGladman}))},ab13:function(e,t,n){var r=n("b622"),i=r("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[i]=!1,"/./"[e](t)}catch(r){}}return!1}},ac1f:function(e,t,n){"use strict";var r=n("23e7"),i=n("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},ad6d:function(e,t,n){"use strict";var r=n("825a");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},adaa:function(e,t){var n=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},r=function(e,t,r,i){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"===typeof e?Object.keys(e).map((function(i){var o=encodeURIComponent(n(i))+r;return Array.isArray(e[i])?e[i].map((function(e){return o+encodeURIComponent(n(e))})).join(t):o+encodeURIComponent(n(e[i]))})).filter(Boolean).join(t):i?encodeURIComponent(n(i))+r+encodeURIComponent(n(e)):""},i=function(e,t,n){var r={};return t.getAllResponseHeaders().trim().split("\n").forEach((function(e){if(e){var t=e.indexOf(":"),n=e.substr(0,t).trim().toLowerCase(),i=e.substr(t+1).trim();r[n]=i}})),{error:e,statusCode:t.status,statusMessage:t.statusText,headers:r,body:n}},o=function(e,t){return t||"text"!==t?e.response:e.responseText},s=function(e,t){var n=(e.method||"GET").toUpperCase(),s=e.url;if(e.qs){var a=r(e.qs);a&&(s+=(-1===s.indexOf("?")?"?":"&")+a)}var u=new XMLHttpRequest;if(u.open(n,s,!0),u.responseType=e.dataType||"text",e.xhrFields)for(var l in e.xhrFields)u[l]=e.xhrFields[l];var c=e.headers;if(c)for(var p in c)c.hasOwnProperty(p)&&"content-length"!==p.toLowerCase()&&"user-agent"!==p.toLowerCase()&&"origin"!==p.toLowerCase()&&"host"!==p.toLowerCase()&&u.setRequestHeader(p,c[p]);return e.onProgress&&u.upload&&(u.upload.onprogress=e.onProgress),e.onDownloadProgress&&(u.onprogress=e.onDownloadProgress),e.timeout&&(u.timeout=e.timeout),u.ontimeout=function(e){var n=new Error("timeout");t(i(n,u))},u.onload=function(){t(i(null,u,o(u,e.dataType)))},u.onerror=function(n){var r=o(u,e.dataType);if(r)t(i(null,u,r));else{var s=u.statusText;s||0!==u.status||(s=new Error("CORS blocked or network error")),t(i(s,u,r))}},u.send(e.body||""),u};e.exports=s},addb:function(e,t,n){var r=n("f36a"),i=Math.floor,o=function(e,t){var n=e.length,u=i(n/2);return n<8?s(e,t):a(e,o(r(e,0,u),t),o(r(e,u),t),t)},s=function(e,t){var n,r,i=e.length,o=1;while(o<i){r=o,n=e[o];while(r&&t(e[r-1],n)>0)e[r]=e[--r];r!==o++&&(e[r]=n)}return e},a=function(e,t,n,r){var i=t.length,o=n.length,s=0,a=0;while(s<i||a<o)e[s+a]=s<i&&a<o?r(t[s],n[a])<=0?t[s++]:n[a++]:s<i?t[s++]:n[a++];return e};e.exports=o},ae93:function(e,t,n){"use strict";var r,i,o,s=n("d039"),a=n("1626"),u=n("7c73"),l=n("e163"),c=n("6eeb"),p=n("b622"),f=n("c430"),h=p("iterator"),d=!1;[].keys&&(o=[].keys(),"next"in o?(i=l(l(o)),i!==Object.prototype&&(r=i)):d=!0);var m=void 0==r||s((function(){var e={};return r[h].call(e)!==e}));m?r={}:f&&(r=u(r)),a(r[h])||c(r,h,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},b041:function(e,t,n){"use strict";var r=n("00ee"),i=n("f5df");e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},b0c9:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.render=t.parse=void 0;var i=n("852e");Object.defineProperty(t,"
|
|||
|
/*!
|
|||
|
* The buffer module from node.js, for the browser.
|
|||
|
*
|
|||
|
* @author Feross Aboukhadijeh <http://feross.org>
|
|||
|
* @license MIT
|
|||
|
*/
|
|||
|
var r=n("1fb5"),i=n("9152"),o=n("e3db");function s(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=l.prototype):(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!l.TYPED_ARRAY_SUPPORT&&!(this instanceof l))return new l(e,t,n);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return h(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?g(e,t,n,r):"string"===typeof t?d(e,t,n):y(e,t)}function p(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t,n,r){return p(t),t<=0?u(e,t):void 0!==n?"string"===typeof r?u(e,t).fill(n,r):u(e,t).fill(n):u(e,t)}function h(e,t){if(p(t),e=u(e,t<0?0:0|v(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t,n){if("string"===typeof n&&""!==n||(n="utf8"),!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|D(t,n);e=u(e,r);var i=e.write(t,n);return i!==r&&(e=e.slice(0,i)),e}function m(e,t){var n=t.length<0?0:0|v(t.length);e=u(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function g(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),l.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=l.prototype):e=m(e,t),e}function y(e,t){if(l.isBuffer(t)){var n=0|v(t.length);return e=u(e,n),0===e.length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||te(t.length)?u(e,0):m(e,t);if("Buffer"===t.type&&o(t.data))return m(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function v(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function b(e){return+e!=e&&(e=0),l.alloc(+e)}function D(e,t){if(l.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return X(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Z(e).length;default:if(r)return X(e).length;t=(""+t).toLowerCase(),r=!0}}function w(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return j(this,t,n);case"utf8":case"utf-8":return N(this,t,n);case"ascii":return M(this,t,n);case"latin1":case"binary":return L(this,t,n);case"base64":return F(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function C(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function x(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=l.from(t,r)),l.isBuffer(t))retu
|
|||
|
Print (to stderr) where a cursor at the given position would move to after formatting.
|
|||
|
This option cannot be used with --range-start and --range-end.
|
|||
|
`,cliCategory:o},endOfLine:{since:"1.15.0",category:a,type:"choice",default:[{since:"1.15.0",value:"auto"},{since:"2.0.0",value:"lf"}],description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:r`
|
|||
|
Maintain existing
|
|||
|
(mixed values within one file are normalised by looking at what's used after the first line)
|
|||
|
`}]},filepath:{since:"1.4.0",category:u,type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:s,cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{since:"1.8.0",category:u,type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:s},parser:{since:"0.0.10",category:a,type:"choice",default:[{since:"0.0.10",value:"babylon"},{since:"1.13.0",value:void 0}],description:"Which parser to use.",exception:e=>"string"==typeof e||"function"==typeof e,choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"espree",since:"2.2.0",description:"JavaScript"},{value:"meriyah",since:"2.2.0",description:"JavaScript"},{value:"css",since:"1.7.1",description:"CSS"},{value:"less",since:"1.7.1",description:"Less"},{value:"scss",since:"1.7.1",description:"SCSS"},{value:"json",since:"1.5.0",description:"JSON"},{value:"json5",since:"1.13.0",description:"JSON5"},{value:"json-stringify",since:"1.13.0",description:"JSON.stringify"},{value:"graphql",since:"1.5.0",description:"GraphQL"},{value:"markdown",since:"1.8.0",description:"Markdown"},{value:"mdx",since:"1.15.0",description:"MDX"},{value:"vue",since:"1.10.0",description:"Vue"},{value:"yaml",since:"1.14.0",description:"YAML"},{value:"glimmer",since:"2.3.0",description:"Ember / Handlebars"},{value:"html",since:"1.15.0",description:"HTML"},{value:"angular",since:"1.15.0",description:"Angular"},{value:"lwc",since:"1.17.0",description:"Lightning Web Components"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:a,description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin",cliCategory:i},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:a,description:r`
|
|||
|
Custom directory that contains prettier plugins in node_modules subdirectory.
|
|||
|
Overrides default behavior when plugins are searched relatively to the location of Prettier.
|
|||
|
Multiple values are accepted.
|
|||
|
`,exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin-search-dir",cliCategory:i},printWidth:{since:"0.0.0",category:a,type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},rangeEnd:{since:"1.4.0",category:u,type:"int",default:Number.POSITIVE_INFINITY,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:r`
|
|||
|
Format code ending at a given character offset (exclusive).
|
|||
|
The range will extend forwards to the end of the selected statement.
|
|||
|
This option cannot be used with --cursor-offset.
|
|||
|
`,cliCategory:o},rangeStart:{since:"1.4.0",category:u,type:"int",default:0,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:r`
|
|||
|
Format code starting at a given character offset.
|
|||
|
The range will extend backwards to the start of the first line containing the selected statement.
|
|||
|
This option cannot be used with --cursor-offset.
|
|||
|
`,cliCategory:o},requirePragma:{since:"1.7.0",category:u,type:"boolean",default:!1,description:r`
|
|||
|
Require either '@prettier' or '@format' to be present in the file's first docblock comment
|
|||
|
in order for it to be formatted.
|
|||
|
`,cliCategory:s},tabWidth:{type:"int",category:a,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:a,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:a,type:"choice",default:[{since:"2.1.0",value:"auto"}],description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};e.exports={CATEGORY_CONFIG:i,CATEGORY_EDITOR:o,CATEGORY_FORMAT:"Format",CATEGORY_OTHER:s,CATEGORY_OUTPUT:"Output",CATEGORY_GLOBAL:a,CATEGORY_SPECIAL:u,options:l}},7290:(e,t,n)=>{"use strict";const r=["cliName","cliCategory","cliDescription"];function i(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n(4304),n(4070),n(2612);const o={compare:n(2828),lt:n(3725),gte:n(9195)},s=n(9077),a=n(4147).i8,u=n(8988).options;e.exports={getSupportInfo:function({plugins:e=[],showUnreleased:t=!1,showDeprecated:n=!1,showInternal:l=!1}={}){const c=a.split("-",1)[0],p=e.flatMap(e=>e.languages||[]).filter(h),f=s(Object.assign({},...e.map(({options:e})=>e),u),"name").filter(e=>h(e)&&d(e)).sort((e,t)=>e.name===t.name?0:e.name<t.name?-1:1).map((function(e){if(l)return e;const{cliName:t,cliCategory:n,cliDescription:o}=e;return i(e,r)})).map(t=>{t=Object.assign({},t),Array.isArray(t.default)&&(t.default=1===t.default.length?t.default[0].value:t.default.filter(h).sort((e,t)=>o.compare(t.since,e.since))[0].value),Array.isArray(t.choices)&&(t.choices=t.choices.filter(e=>h(e)&&d(e)),"parser"===t.name&&function(e,t,n){const r=new Set(e.choices.map(e=>e.value));for(const i of t)if(i.parsers)for(const t of i.parsers)if(!r.has(t)){r.add(t);const o=n.find(e=>e.parsers&&e.parsers[t]);let s=i.name;o&&o.name&&(s+=` (plugin: ${o.name})`),e.choices.push({value:t,description:s})}}(t,p,e));const n=Object.fromEntries(e.filter(e=>e.defaultOptions&&void 0!==e.defaultOptions[t.name]).map(e=>[e.name,e.defaultOptions[t.name]]));return Object.assign(Object.assign({},t),{},{pluginDefaults:n})});return{languages:p,options:f};function h(e){return t||!("since"in e)||e.since&&o.gte(c,e.since)}function d(e){return n||!("deprecated"in e)||e.deprecated&&o.lt(c,e.deprecated)}}}},9077:e=>{"use strict";e.exports=(e,t)=>Object.entries(e).map(([e,n])=>Object.assign({[t]:e},n))},5115:e=>{"use strict";const t=new RegExp("^(?<startDelimiter>-{3}|\\+{3})(?<language>[^\\n]*)\\n(?:|(?<value>.*?)\\n)(?<endDelimiter>\\k<startDelimiter>|\\.{3})[^\\S\\n]*(?:\\n|$)","s");e.exports=function(e){const n=e.match(t);if(!n)return{content:e};const{startDelimiter:r,language:i,value:o="",endDelimiter:s}=n.groups;let a=i.trim()||"yaml";if("+++"===r&&(a="toml"),"yaml"!==a&&r!==s)return{content:e};const[u]=n;return{frontMatter:{type:"front-matter",lang:a,value:o,startDelimiter:r,endDelimiter:s,raw:u.replace(/\n$/,"")},content:u.replace(/[^\n]/g," ")+e.slice(u.length)}}},4652:e=>{"use strict";e.exports=e=>e[e.length-1]},6920:e=>{"use strict";e.exports=function(e,t){let n=0;for(let r=0;r<e.line-1;++r)n=t.indexOf("\n",n)+1;return n+e.column}},8472:()=>{},2868:()=>{},3248:()=>{},6083:()=>{},4940:(e,t,n)=>{"use strict";n.r(t),n.d(t,{existsSync:()=>r,readFileSync:()=>i,default:()=>o});const r=()=>!1,i=()=>"",o={existsSync:r,readFileSync:i}},4372:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={EOL:"\n",platform:()=>"browser",cpus:()=>[{model:"Prettier"}]}},3974:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var r=n(5724),i={};for(const o in r)"default"!==o&&(i[o]=()=>r[o]);n.d(t,i)},4147:e=>{"use strict";e.exports={i8:"2.4.1"}}},r={};function i(t){var n=r[t
|
|||
|
//# sourceMappingURL=chunk-vendors.37bae3e5.js.map
|