@next-font/plugin-vite 1.4.1 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/build-Dtlh3qvU.mjs +16 -0
- package/dist/chunk-tuRmWmEN.mjs +1 -0
- package/dist/escodegen-BaCenGHx.mjs +18 -0
- package/dist/index.d.mts +6 -0
- package/dist/index.mjs +90 -0
- package/package.json +16 -15
- package/dist/escodegen-CC29kcgQ.js +0 -5
- package/dist/index-ChU0Qhqa.js +0 -76
- package/dist/index-DspHYwaG.js +0 -3
- package/dist/index.d.ts +0 -5
- package/dist/index.js +0 -1
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import{i as e,n as t,r as n,t as r}from"./chunk-tuRmWmEN.mjs";import{isCSSRequest as i}from"vite";import a,{fileURLToPath as o}from"node:url";import s from"node:path";import{posix as c,win32 as l}from"path";const u=`%[a-f0-9]{2}`,d=RegExp(`(`+u+`)|([^%]+?)`,`gi`),f=RegExp(`(`+u+`)+`,`gi`);function p(e,t){try{return[decodeURIComponent(e.join(``))]}catch{}if(e.length===1)return e;t||=1;let n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],p(n),p(r))}function m(e){try{return decodeURIComponent(e)}catch{let t=e.match(d)||[];for(let n=1;n<t.length;n++)e=p(t,n).join(``),t=e.match(d)||[];return e}}function h(e){let t={"%FE%FF":`��`,"%FF%FE":`��`},n=f.exec(e);for(;n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{let e=m(n[0]);e!==n[0]&&(t[n[0]]=e)}n=f.exec(e)}t[`%C2`]=`�`;let r=Object.keys(t);for(let n of r)e=e.replace(new RegExp(n,`g`),t[n]);return e}function g(e){if(typeof e!=`string`)throw TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return h(e)}}function _(e,t){let n={};if(Array.isArray(t))for(let r of t){let t=Object.getOwnPropertyDescriptor(e,r);t?.enumerable&&Object.defineProperty(n,r,t)}else for(let r of Reflect.ownKeys(e)){let i=Object.getOwnPropertyDescriptor(e,r);if(i.enumerable){let a=e[r];t(r,a,e)&&Object.defineProperty(n,r,i)}}return n}function v(e,t){if(!(typeof e==`string`&&typeof t==`string`))throw TypeError("Expected the arguments to be of type `string`");if(e===``||t===``)return[];let n=e.indexOf(t);return n===-1?[]:[e.slice(0,n),e.slice(n+t.length)]}var ee=t({exclude:()=>ce,extract:()=>D,parse:()=>O,parseUrl:()=>ae,pick:()=>se,stringify:()=>k,stringifyUrl:()=>oe});const y=e=>e==null,te=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),b=Symbol(`encodeFragmentIdentifier`);function ne(e){switch(e.arrayFormat){case`index`:return t=>(n,r)=>{let i=n.length;return r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?[...n,[C(t,e),`[`,i,`]`].join(``)]:[...n,[C(t,e),`[`,C(i,e),`]=`,C(r,e)].join(``)]};case`bracket`:return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?[...n,[C(t,e),`[]`].join(``)]:[...n,[C(t,e),`[]=`,C(r,e)].join(``)];case`colon-list-separator`:return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?[...n,[C(t,e),`:list=`].join(``)]:[...n,[C(t,e),`:list=`,C(r,e)].join(``)];case`comma`:case`separator`:case`bracket-separator`:{let t=e.arrayFormat===`bracket-separator`?`[]=`:`=`;return n=>(r,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===``?r:(i=i===null?``:i,r.length===0?[[C(n,e),t,C(i,e)].join(``)]:[[r,C(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?[...n,C(t,e)]:[...n,[C(t,e),`=`,C(r,e)].join(``)]}}function x(e){let t;switch(e.arrayFormat){case`index`:return(e,n,r)=>{if(t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,``),!t){r[e]=n;return}r[e]===void 0&&(r[e]={}),r[e][t[1]]=n};case`bracket`:return(e,n,r)=>{if(t=/(\[])$/.exec(e),e=e.replace(/\[]$/,``),!t){r[e]=n;return}if(r[e]===void 0){r[e]=[n];return}r[e]=[...r[e],n]};case`colon-list-separator`:return(e,n,r)=>{if(t=/(:list)$/.exec(e),e=e.replace(/:list$/,``),!t){r[e]=n;return}if(r[e]===void 0){r[e]=[n];return}r[e]=[...r[e],n]};case`comma`:case`separator`:return(t,n,r)=>{r[t]=typeof n==`string`&&n.includes(e.arrayFormatSeparator)?n.split(e.arrayFormatSeparator).map(t=>w(t,e)):n===null?n:w(n,e)};case`bracket-separator`:return(t,n,r)=>{let i=/(\[])$/.test(t);if(t=t.replace(/\[]$/,``),!i){r[t]=n&&w(n,e);return}let a=n===null?[]:w(n,e).split(e.arrayFormatSeparator);if(r[t]===void 0){r[t]=a;return}r[t]=[...r[t],...a]};default:return(e,t,n)=>{if(n[e]===void 0){n[e]=t;return}n[e]=[...[n[e]].flat(),t]}}}function S(e){if(typeof e!=`string`||e.length!==1)throw TypeError(`arrayFormatSeparator must be single character string`)}function C(e,t){return t.encode?t.strict?te(e):encodeURIComponent(e):e}function w(e,t){return t.decode?g(e):e}function T(e){return Array.isArray(e)?e.sort():typeof e==`object`?T(Object.keys(e)).sort((e,t)=>Number(e)-Number(t)).map(t=>e[t]):e}function re(e){let t=e.indexOf(`#`);return t!==-1&&(e=e.slice(0,t)),e}function ie(e){let t=``,n=e.indexOf(`#`);return n!==-1&&(t=e.slice(n)),t}function E(e,t,n){return n===`string`&&typeof e==`string`?e:typeof n==`function`&&typeof e==`string`?n(e):n===`boolean`&&e===null?!0:n===`boolean`&&e!==null&&(e.toLowerCase()===`true`||e.toLowerCase()===`false`)?e.toLowerCase()===`true`:n===`boolean`&&e!==null&&(e.toLowerCase()===`1`||e.toLowerCase()===`0`)?e.toLowerCase()===`1`:n===`string[]`&&t.arrayFormat!==`none`&&typeof e==`string`?[e]:n===`number[]`&&t.arrayFormat!==`none`&&!Number.isNaN(Number(e))&&typeof e==`string`&&e.trim()!==``?[Number(e)]:n===`number`&&!Number.isNaN(Number(e))&&typeof e==`string`&&e.trim()!==``?Number(e):t.parseBooleans&&e!==null&&(e.toLowerCase()===`true`||e.toLowerCase()===`false`)?e.toLowerCase()===`true`:t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e==`string`&&e.trim()!==``?Number(e):e}function D(e){e=re(e);let t=e.indexOf(`?`);return t===-1?``:e.slice(t+1)}function O(e,t){t={decode:!0,sort:!0,arrayFormat:`none`,arrayFormatSeparator:`,`,parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...t},S(t.arrayFormatSeparator);let n=x(t),r=Object.create(null);if(typeof e!=`string`||(e=e.trim().replace(/^[?#&]/,``),!e))return r;for(let i of e.split(`&`)){if(i===``)continue;let e=t.decode?i.replaceAll(`+`,` `):i,[a,o]=v(e,`=`);a===void 0&&(a=e),o=o===void 0?null:[`comma`,`separator`,`bracket-separator`].includes(t.arrayFormat)?o:w(o,t),n(w(a,t),o,r)}for(let[e,n]of Object.entries(r))if(typeof n==`object`&&n&&t.types[e]!==`string`)for(let[r,i]of Object.entries(n)){let a=t.types[e],o=typeof a==`function`?a:a?a.replace(`[]`,``):void 0;n[r]=E(i,t,o)}else typeof n==`object`&&n&&t.types[e]===`string`?r[e]=Object.values(n).join(t.arrayFormatSeparator):r[e]=E(n,t,t.types[e]);return t.sort===!1?r:(t.sort===!0?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((e,t)=>{let n=r[t];return e[t]=n&&typeof n==`object`&&!Array.isArray(n)?T(n):n,e},Object.create(null))}function k(e,t){if(!e)return``;t={encode:!0,strict:!0,arrayFormat:`none`,arrayFormatSeparator:`,`,...t},S(t.arrayFormatSeparator);let n=n=>t.skipNull&&y(e[n])||t.skipEmptyString&&e[n]===``,r=ne(t),i={};for(let[t,r]of Object.entries(e))n(t)||(i[t]=r);let a=Object.keys(i);return t.sort!==!1&&a.sort(t.sort),a.map(n=>{let i=e[n];if(t.replacer&&(i=t.replacer(n,i),i===void 0)||i===void 0)return``;if(i===null)return C(n,t);if(Array.isArray(i)){if(i.length===0&&t.arrayFormat===`bracket-separator`)return C(n,t)+`[]`;let e=i;return t.replacer&&(e=i.map((e,r)=>t.replacer(`${n}[${r}]`,e)).filter(e=>e!==void 0)),e.reduce(r(n),[]).join(`&`)}return C(n,t)+`=`+C(i,t)}).filter(e=>e.length>0).join(`&`)}function ae(e,t){t={decode:!0,...t};let[n,r]=v(e,`#`);return n===void 0&&(n=e),{url:n?.split(`?`)?.[0]??``,query:O(D(e),t),...t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:w(r,t)}:{}}}function oe(e,t){t={encode:!0,strict:!0,[b]:!0,...t};let n=re(e.url).split(`?`)[0]||``,r=k({...O(D(e.url),{sort:!1,...t}),...e.query},t);r&&=`?${r}`;let i=ie(e.url);if(typeof e.fragmentIdentifier==`string`){let r=new URL(n);r.hash=e.fragmentIdentifier,i=t[b]?r.hash:`#${e.fragmentIdentifier}`}return`${n}${r}${i}`}function se(e,t,n){n={parseFragmentIdentifier:!0,[b]:!1,...n};let{url:r,query:i,fragmentIdentifier:a}=ae(e,n);return oe({url:r,query:_(i,t),fragmentIdentifier:a},n)}function ce(e,t,n){return se(e,Array.isArray(t)?e=>!t.includes(e):(e,n)=>!t(e,n),n)}var A=ee;const j=e=>{let t=e.indexOf(`?`);return t===-1?``:e.slice(t)},M=e=>{let t=e.indexOf(`?`);return t===-1?e:e.slice(0,t)},N=e=>{let t;return()=>(t||=e().then(e=>(t=e,e)),t)},le=async e=>{try{return{data:await e,error:null}}catch(e){return{data:null,error:e}}},ue=async e=>import.meta.resolve(M(e));function de(e){if(e.startsWith(`data:`))return e;let t=pe(e),n=t===e?``:e.slice(t.length);return encodeURI(t)+n}const fe=/[?#].*$/;function pe(e){return e.replace(fe,``)}const me=e=>[``].concat([`_next`,e].filter(Boolean)).join(`/`),he=(e=`/`)=>{let t=e.endsWith(`/`)?e.slice(0,-1):e;return e=>t+me(e)},P=e=>A.stringifyUrl({url:M(e),query:ge(A.parse(j(e)),[`arguments`,`path`,`import`,`variableName`])}),ge=(e,t)=>Object.fromEntries(Object.entries(e).filter(([e])=>t.includes(e))),F=typeof process<`u`&&process.platform===`win32`,_e=/\\/g;function ve(e){return e.replace(_e,`/`)}function I(e){return s.posix.normalize(F?ve(e):e)}const L=e=>{let t=ye(e)?a.fileURLToPath(e):e;return F&&(t=t.replace(/^((\\|\/)?)[Cc]:/,``)),t},ye=e=>{try{let{protocol:t}=new URL(e);return t===`file:`}catch{return!1}},R=(e,t)=>{let n=L(e),r=L(t);return n==r||I(n)===I(r)||de(I(n))===de(I(r))},be=RegExp(`\\${l.sep}`,`g`),z=function(e){return e.replace(be,c.sep)},B=new Set(`break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl`.split(` `));B.add(``);const V=function(e){let t=e.replace(/-(\w)/g,(e,t)=>t.toUpperCase()).replace(/[^$_a-zA-Z0-9]/g,`_`);return(/\d/.test(t[0])||B.has(t))&&(t=`_${t}`),t||`_`};function H(e){return(JSON.stringify(e)||`undefined`).replace(/[\u2028\u2029]/g,e=>`\\u${`000${e.charCodeAt(0).toString(16)}`.slice(-4)}`)}function xe(e,t,n){let r=`[`,i=t?`\n${n}${t}`:``;for(let a=0;a<e.length;a++){let o=e[a];r+=`${a>0?`,`:``}${i}${U(o,t,n+t)}`}return`${r}${t?`\n${n}`:``}]`}function Se(e,t,n){let r=`{`,i=t?`\n${n}${t}`:``,a=Object.entries(e);for(let e=0;e<a.length;e++){let[o,s]=a[e],c=V(o)===o?o:H(o);r+=`${e>0?`,`:``}${i}${c}:${t?` `:``}${U(s,t,n+t)}`}return`${r}${t?`\n${n}`:``}}`}function U(e,t,n){if(typeof e==`object`&&e)return Array.isArray(e)?xe(e,t,n):e instanceof Date?`new Date(${e.getTime()})`:e instanceof RegExp?e.toString():Se(e,t,n);if(typeof e==`number`){if(e===1/0)return`Infinity`;if(e===-1/0)return`-Infinity`;if(e===0)return 1/e==1/0?`0`:`-0`;if(e!==e)return`NaN`}if(typeof e==`symbol`){let t=Symbol.keyFor(e);if(t!==void 0)return`Symbol.for(${H(t)})`}return typeof e==`bigint`?`${e}n`:H(e)}const Ce=`isWellFormed`in String.prototype;function we(e){return Ce?e.isWellFormed():!/\p{Surrogate}/u.test(e)}const W=function(e,t={}){let n=t.compact?``:`indent`in t?t.indent:` `,r=t.compact?``:` `,i=t.compact?``:`
|
|
2
|
+
`,a=t.preferConst?`const`:`var`;if(t.namedExports===!1||typeof e!=`object`||Array.isArray(e)||e instanceof Date||e instanceof RegExp||e===null){let i=U(e,t.compact?null:n,``);return`export default${r||(/^[{[\-\/]/.test(i)?``:` `)}${i};`}let o=0;for(let t of Object.keys(e)){let e=/^(_+)/.exec(t)?.[0].length??0;e>o&&(o=e)}let s=`${`_`.repeat(o+1)}arbitrary`,c=``,l=[],u=[];for(let[o,d]of Object.entries(e))if(o===V(o))t.objectShorthand?l.push(o):l.push(`${o}:${r}${o}`),c+=`export ${a} ${o}${r}=${r}${U(d,t.compact?null:n,``)};${i}`;else if(l.push(`${H(o)}:${r}${U(d,t.compact?null:n,``)}`),t.includeArbitraryNames&&we(o)){let e=`${s}${u.length}`;c+=`${a} ${e}${r}=${r}${U(d,t.compact?null:n,``)};${i}`,u.push(`${e} as ${JSON.stringify(o)}`)}let d=u.length>0?`export${r}{${i}${n}${u.join(`,${i}${n}`)}${i}};${i}`:``,f=`export default${r}{${i}${n}${l.join(`,${i}${n}`)}${i}};${i}`;return`${c}${d}${f}`};var Te=44,Ee=59,De=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,Oe=new Uint8Array(64),ke=new Uint8Array(128);for(let e=0;e<De.length;e++){let t=De.charCodeAt(e);Oe[e]=t,ke[t]=e}function G(e,t,n){let r=t-n;r=r<0?-r<<1|1:r<<1;do{let t=r&31;r>>>=5,r>0&&(t|=32),e.write(Oe[t])}while(r>0);return t}var Ae=1024*16,je=typeof TextDecoder<`u`?new TextDecoder:typeof Buffer<`u`?{decode(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}}:{decode(e){let t=``;for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}},Me=class{constructor(){this.pos=0,this.out=``,this.buffer=new Uint8Array(Ae)}write(e){let{buffer:t}=this;t[this.pos++]=e,this.pos===Ae&&(this.out+=je.decode(t),this.pos=0)}flush(){let{buffer:e,out:t,pos:n}=this;return n>0?t+je.decode(e.subarray(0,n)):t}};function Ne(e){let t=new Me,n=0,r=0,i=0,a=0;for(let o=0;o<e.length;o++){let s=e[o];if(o>0&&t.write(Ee),s.length===0)continue;let c=0;for(let e=0;e<s.length;e++){let o=s[e];e>0&&t.write(Te),c=G(t,o[0],c),o.length!==1&&(n=G(t,o[1],n),r=G(t,o[2],r),i=G(t,o[3],i),o.length!==4&&(a=G(t,o[4],a)))}}return t.flush()}var Pe=class e{constructor(t){this.bits=t instanceof e?t.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(e&31)}has(e){return!!(this.bits[e>>5]&1<<(e&31))}},Fe=class e{constructor(e,t,n){this.start=e,this.end=t,this.original=n,this.intro=``,this.outro=``,this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(e){this.outro+=e}appendRight(e){this.intro+=e}clone(){let t=new e(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t}contains(e){return this.start<e&&e<this.end}eachNext(e){let t=this;for(;t;)e(t),t=t.next}eachPrevious(e){let t=this;for(;t;)e(t),t=t.previous}edit(e,t,n){return this.content=e,n||(this.intro=``,this.outro=``),this.storeName=t,this.edited=!0,this}prependLeft(e){this.outro=e+this.outro}prependRight(e){this.intro=e+this.intro}reset(){this.intro=``,this.outro=``,this.edited&&=(this.content=this.original,this.storeName=!1,!1)}split(t){let n=t-this.start,r=this.original.slice(0,n),i=this.original.slice(n);this.original=r;let a=new e(t,this.end,i);return a.outro=this.outro,this.outro=``,this.end=t,this.edited?(a.edit(``,!1),this.content=``):this.content=r,a.next=this.next,a.next&&(a.next.previous=a),a.previous=this,this.next=a,a}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,``),this.outro.length)return!0;let t=this.content.replace(e,``);if(t.length)return t!==this.content&&(this.split(this.start+t.length).edit(``,void 0,!0),this.edited&&this.edit(t,this.storeName,!0)),!0;if(this.edit(``,void 0,!0),this.intro=this.intro.replace(e,``),this.intro.length)return!0}trimStart(e){if(this.intro=this.intro.replace(e,``),this.intro.length)return!0;let t=this.content.replace(e,``);if(t.length){if(t!==this.content){let e=this.split(this.end-t.length);this.edited&&e.edit(t,this.storeName,!0),this.edit(``,void 0,!0)}return!0}else if(this.edit(``,void 0,!0),this.outro=this.outro.replace(e,``),this.outro.length)return!0}};function Ie(){return typeof globalThis<`u`&&typeof globalThis.btoa==`function`?e=>globalThis.btoa(unescape(encodeURIComponent(e))):typeof Buffer==`function`?e=>Buffer.from(e,`utf-8`).toString(`base64`):()=>{throw Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}const Le=Ie();var Re=class{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=Ne(e.mappings),e.x_google_ignoreList!==void 0&&(this.x_google_ignoreList=e.x_google_ignoreList),e.debugId!==void 0&&(this.debugId=e.debugId)}toString(){return JSON.stringify(this)}toUrl(){return`data:application/json;charset=utf-8;base64,`+Le(this.toString())}};function ze(e){let t=e.split(`
|
|
3
|
+
`),n=t.filter(e=>/^\t+/.test(e)),r=t.filter(e=>/^ {2,}/.test(e));if(n.length===0&&r.length===0)return null;if(n.length>=r.length)return` `;let i=r.reduce((e,t)=>{let n=/^ +/.exec(t)[0].length;return Math.min(n,e)},1/0);return Array(i+1).join(` `)}function Be(e,t){let n=e.split(/[/\\]/),r=t.split(/[/\\]/);for(n.pop();n[0]===r[0];)n.shift(),r.shift();if(n.length){let e=n.length;for(;e--;)n[e]=`..`}return n.concat(r).join(`/`)}const Ve=Object.prototype.toString;function He(e){return Ve.call(e)===`[object Object]`}function Ue(e){let t=e.split(`
|
|
4
|
+
`),n=[];for(let e=0,r=0;e<t.length;e++)n.push(r),r+=t[e].length+1;return function(e){let t=0,r=n.length;for(;t<r;){let i=t+r>>1;e<n[i]?r=i:t=i+1}let i=t-1;return{line:i,column:e-n[i]}}}const We=/\w/;var Ge=class{constructor(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(e,t,n,r){if(t.length){let i=t.length-1,a=t.indexOf(`
|
|
5
|
+
`,0),o=-1;for(;a>=0&&i>a;){let i=[this.generatedCodeColumn,e,n.line,n.column];r>=0&&i.push(r),this.rawSegments.push(i),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,o=a,a=t.indexOf(`
|
|
6
|
+
`,a+1)}let s=[this.generatedCodeColumn,e,n.line,n.column];r>=0&&s.push(r),this.rawSegments.push(s),this.advance(t.slice(o+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(t));this.pending=null}addUneditedChunk(e,t,n,r,i){let a=t.start,o=!0,s=!1;for(;a<t.end;){if(n[a]===`
|
|
7
|
+
`)r.line+=1,r.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,o=!0,s=!1;else{if(this.hires||o||i.has(a)){let t=[this.generatedCodeColumn,e,r.line,r.column];this.hires===`boundary`?We.test(n[a])?s||=(this.rawSegments.push(t),!0):(this.rawSegments.push(t),s=!1):this.rawSegments.push(t)}r.column+=1,this.generatedCodeColumn+=1,o=!1}a+=1}this.pending=null}advance(e){if(!e)return;let t=e.split(`
|
|
8
|
+
`);if(t.length>1){for(let e=0;e<t.length-1;e++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=t[t.length-1].length}};const K={insertLeft:!1,insertRight:!1,storeName:!1};var Ke=class e{constructor(e,t={}){let n=new Fe(0,e.length,e);Object.defineProperties(this,{original:{writable:!0,value:e},outro:{writable:!0,value:``},intro:{writable:!0,value:``},firstChunk:{writable:!0,value:n},lastChunk:{writable:!0,value:n},lastSearchedChunk:{writable:!0,value:n},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:t.filename},indentExclusionRanges:{writable:!0,value:t.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new Pe},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:t.ignoreList},offset:{writable:!0,value:t.offset||0}}),this.byStart[0]=n,this.byEnd[e.length]=n}addSourcemapLocation(e){this.sourcemapLocations.add(e)}append(e){if(typeof e!=`string`)throw TypeError(`outro content must be a string`);return this.outro+=e,this}appendLeft(e,t){if(e+=this.offset,typeof t!=`string`)throw TypeError(`inserted content must be a string`);this._split(e);let n=this.byEnd[e];return n?n.appendLeft(t):this.intro+=t,this}appendRight(e,t){if(e+=this.offset,typeof t!=`string`)throw TypeError(`inserted content must be a string`);this._split(e);let n=this.byStart[e];return n?n.appendRight(t):this.outro+=t,this}clone(){let t=new e(this.original,{filename:this.filename,offset:this.offset}),n=this.firstChunk,r=t.firstChunk=t.lastSearchedChunk=n.clone();for(;n;){t.byStart[r.start]=r,t.byEnd[r.end]=r;let e=n.next,i=e&&e.clone();i&&(r.next=i,i.previous=r,r=i),n=e}return t.lastChunk=r,this.indentExclusionRanges&&(t.indentExclusionRanges=this.indentExclusionRanges.slice()),t.sourcemapLocations=new Pe(this.sourcemapLocations),t.intro=this.intro,t.outro=this.outro,t}generateDecodedMap(e){e||={};let t=Object.keys(this.storedNames),n=new Ge(e.hires),r=Ue(this.original);return this.intro&&n.advance(this.intro),this.firstChunk.eachNext(e=>{let i=r(e.start);e.intro.length&&n.advance(e.intro),e.edited?n.addEdit(0,e.content,i,e.storeName?t.indexOf(e.original):-1):n.addUneditedChunk(0,e,this.original,i,this.sourcemapLocations),e.outro.length&&n.advance(e.outro)}),this.outro&&n.advance(this.outro),{file:e.file?e.file.split(/[/\\]/).pop():void 0,sources:[e.source?Be(e.file||``,e.source):e.file||``],sourcesContent:e.includeContent?[this.original]:void 0,names:t,mappings:n.raw,x_google_ignoreList:this.ignoreList?[0]:void 0}}generateMap(e){return new Re(this.generateDecodedMap(e))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=ze(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?` `:this.indentStr}indent(e,t){let n=/^[^\r\n]/gm;if(He(e)&&(t=e,e=void 0),e===void 0&&(this._ensureindentStr(),e=this.indentStr||` `),e===``)return this;t||={};let r={};t.exclude&&(typeof t.exclude[0]==`number`?[t.exclude]:t.exclude).forEach(e=>{for(let t=e[0];t<e[1];t+=1)r[t]=!0});let i=t.indentStart!==!1,a=t=>i?`${e}${t}`:(i=!0,t);this.intro=this.intro.replace(n,a);let o=0,s=this.firstChunk;for(;s;){let t=s.end;if(s.edited)r[o]||(s.content=s.content.replace(n,a),s.content.length&&(i=s.content[s.content.length-1]===`
|
|
9
|
+
`));else for(o=s.start;o<t;){if(!r[o]){let t=this.original[o];t===`
|
|
10
|
+
`?i=!0:t!==`\r`&&i&&(i=!1,o===s.start?s.prependRight(e):(this._splitChunk(s,o),s=s.next,s.prependRight(e)))}o+=1}o=s.end,s=s.next}return this.outro=this.outro.replace(n,a),this}insert(){throw Error(`magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)`)}insertLeft(e,t){return K.insertLeft||=(console.warn(`magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead`),!0),this.appendLeft(e,t)}insertRight(e,t){return K.insertRight||=(console.warn(`magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead`),!0),this.prependRight(e,t)}move(e,t,n){if(e+=this.offset,t+=this.offset,n+=this.offset,n>=e&&n<=t)throw Error(`Cannot move a selection inside itself`);this._split(e),this._split(t),this._split(n);let r=this.byStart[e],i=this.byEnd[t],a=r.previous,o=i.next,s=this.byStart[n];if(!s&&i===this.lastChunk)return this;let c=s?s.previous:this.lastChunk;return a&&(a.next=o),o&&(o.previous=a),c&&(c.next=r),s&&(s.previous=i),r.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=r.previous,this.lastChunk.next=null),r.previous=c,i.next=s||null,c||(this.firstChunk=r),s||(this.lastChunk=i),this}overwrite(e,t,n,r){return r||={},this.update(e,t,n,{...r,overwrite:!r.contentOnly})}update(e,t,n,r){if(e+=this.offset,t+=this.offset,typeof n!=`string`)throw TypeError(`replacement content must be a string`);if(this.original.length!==0){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length}if(t>this.original.length)throw Error(`end is out of bounds`);if(e===t)throw Error(`Cannot overwrite a zero-length range – use appendLeft or prependRight instead`);this._split(e),this._split(t),r===!0&&(K.storeName||=(console.warn(`The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string`),!0),r={storeName:!0});let i=r===void 0?!1:r.storeName,a=r===void 0?!1:r.overwrite;if(i){let n=this.original.slice(e,t);Object.defineProperty(this.storedNames,n,{writable:!0,value:!0,enumerable:!0})}let o=this.byStart[e],s=this.byEnd[t];if(o){let e=o;for(;e!==s;){if(e.next!==this.byStart[e.end])throw Error(`Cannot overwrite across a split point`);e=e.next,e.edit(``,!1)}o.edit(n,i,!a)}else{let r=new Fe(e,t,``).edit(n,i);s.next=r,r.previous=s}return this}prepend(e){if(typeof e!=`string`)throw TypeError(`outro content must be a string`);return this.intro=e+this.intro,this}prependLeft(e,t){if(e+=this.offset,typeof t!=`string`)throw TypeError(`inserted content must be a string`);this._split(e);let n=this.byEnd[e];return n?n.prependLeft(t):this.intro=t+this.intro,this}prependRight(e,t){if(e+=this.offset,typeof t!=`string`)throw TypeError(`inserted content must be a string`);this._split(e);let n=this.byStart[e];return n?n.prependRight(t):this.outro=t+this.outro,this}remove(e,t){if(e+=this.offset,t+=this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length}if(e===t)return this;if(e<0||t>this.original.length)throw Error(`Character is out of bounds`);if(e>t)throw Error(`end must be greater than start`);this._split(e),this._split(t);let n=this.byStart[e];for(;n;)n.intro=``,n.outro=``,n.edit(``),n=t>n.end?this.byStart[n.end]:null;return this}reset(e,t){if(e+=this.offset,t+=this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length}if(e===t)return this;if(e<0||t>this.original.length)throw Error(`Character is out of bounds`);if(e>t)throw Error(`end must be greater than start`);this._split(e),this._split(t);let n=this.byStart[e];for(;n;)n.reset(),n=t>n.end?this.byStart[n.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:``}lastLine(){let e=this.outro.lastIndexOf(`
|
|
11
|
+
`);if(e!==-1)return this.outro.substr(e+1);let t=this.outro,n=this.lastChunk;do{if(n.outro.length>0){if(e=n.outro.lastIndexOf(`
|
|
12
|
+
`),e!==-1)return n.outro.substr(e+1)+t;t=n.outro+t}if(n.content.length>0){if(e=n.content.lastIndexOf(`
|
|
13
|
+
`),e!==-1)return n.content.substr(e+1)+t;t=n.content+t}if(n.intro.length>0){if(e=n.intro.lastIndexOf(`
|
|
14
|
+
`),e!==-1)return n.intro.substr(e+1)+t;t=n.intro+t}}while(n=n.previous);return e=this.intro.lastIndexOf(`
|
|
15
|
+
`),e===-1?this.intro+t:this.intro.substr(e+1)+t}slice(e=0,t=this.original.length-this.offset){if(e+=this.offset,t+=this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length}let n=``,r=this.firstChunk;for(;r&&(r.start>e||r.end<=e);){if(r.start<t&&r.end>=t)return n;r=r.next}if(r&&r.edited&&r.start!==e)throw Error(`Cannot use replaced character ${e} as slice start anchor.`);let i=r;for(;r;){r.intro&&(i!==r||r.start===e)&&(n+=r.intro);let a=r.start<t&&r.end>=t;if(a&&r.edited&&r.end!==t)throw Error(`Cannot use replaced character ${t} as slice end anchor.`);let o=i===r?e-r.start:0,s=a?r.content.length+t-r.end:r.content.length;if(n+=r.content.slice(o,s),r.outro&&(!a||r.end===t)&&(n+=r.outro),a)break;r=r.next}return n}snip(e,t){let n=this.clone();return n.remove(0,e),n.remove(t,n.original.length),n}_split(e){if(this.byStart[e]||this.byEnd[e])return;let t=this.lastSearchedChunk,n=t,r=e>t.end;for(;t;){if(t.contains(e))return this._splitChunk(t,e);if(t=r?this.byStart[t.end]:this.byEnd[t.start],t===n)return;n=t}}_splitChunk(e,t){if(e.edited&&e.content.length){let n=Ue(this.original)(t);throw Error(`Cannot split a chunk that has already been edited (${n.line}:${n.column} – "${e.original}")`)}let n=e.split(t);return this.byEnd[t]=e,this.byStart[t]=n,this.byEnd[n.end]=n,e===this.lastChunk&&(this.lastChunk=n),this.lastSearchedChunk=e,!0}toString(){let e=this.intro,t=this.firstChunk;for(;t;)e+=t.toString(),t=t.next;return e+this.outro}isEmpty(){let e=this.firstChunk;do if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1;while(e=e.next);return!0}length(){let e=this.firstChunk,t=0;do t+=e.intro.length+e.content.length+e.outro.length;while(e=e.next);return t}trimLines(){return this.trim(`[\\r\\n]`)}trim(e){return this.trimStart(e).trimEnd(e)}trimEndAborted(e){let t=RegExp((e||`\\s`)+`+$`);if(this.outro=this.outro.replace(t,``),this.outro.length)return!0;let n=this.lastChunk;do{let e=n.end,r=n.trimEnd(t);if(n.end!==e&&(this.lastChunk===n&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),r)return!0;n=n.previous}while(n);return!1}trimEnd(e){return this.trimEndAborted(e),this}trimStartAborted(e){let t=RegExp(`^`+(e||`\\s`)+`+`);if(this.intro=this.intro.replace(t,``),this.intro.length)return!0;let n=this.firstChunk;do{let e=n.end,r=n.trimStart(t);if(n.end!==e&&(n===this.lastChunk&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),r)return!0;n=n.next}while(n);return!1}trimStart(e){return this.trimStartAborted(e),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(e,t){function n(e,n){return typeof t==`string`?t.replace(/\$(\$|&|\d+)/g,(t,n)=>n===`$`?`$`:n===`&`?e[0]:+n<e.length?e[+n]:`$${n}`):t(...e,e.index,n,e.groups)}function r(e,t){let n,r=[];for(;n=e.exec(t);)r.push(n);return r}if(e.global)r(e,this.original).forEach(e=>{if(e.index!=null){let t=n(e,this.original);t!==e[0]&&this.overwrite(e.index,e.index+e[0].length,t)}});else{let t=this.original.match(e);if(t&&t.index!=null){let e=n(t,this.original);e!==t[0]&&this.overwrite(t.index,t.index+t[0].length,e)}}return this}_replaceString(e,t){let{original:n}=this,r=n.indexOf(e);return r!==-1&&(typeof t==`function`&&(t=t(e,r,n)),e!==t&&this.overwrite(r,r+e.length,t)),this}replace(e,t){return typeof e==`string`?this._replaceString(e,t):this._replaceRegexp(e,t)}_replaceAllString(e,t){let{original:n}=this,r=e.length;for(let i=n.indexOf(e);i!==-1;i=n.indexOf(e,i+r)){let e=n.slice(i,i+r),a=t;typeof t==`function`&&(a=t(e,i,n)),e!==a&&this.overwrite(i,i+r,a)}return this}replaceAll(e,t){if(typeof e==`string`)return this._replaceAllString(e,t);if(!e.global)throw TypeError(`MagicString.prototype.replaceAll called with a non-global RegExp argument`);return this._replaceRegexp(e,t)}},qe=r(((e,t)=>{let r=n(`path`);function i(e){return/^data:/i.test(e)?!0:!(/^[a-z][a-z0-9+.-]*:/i.test(e)&&!r.win32.isAbsolute(e)||/^\/\//.test(e)||/^#/.test(e))}t.exports=i})),Je=r(((e,t)=>{let n=/^[A-Z]:[/\\]|^\\\\/i;function r(e,t){if(e===``)return``;let r=/^[^?]*~/,i;if(n.test(e))i=e;else if(t!==void 0&&t!==!1&&/^\//.test(e))switch(typeof t){case`string`:i=r.test(t)?t.replace(/([^~/])$/,`$1/`)+e.slice(1):t+e;break;case`boolean`:i=e;break;default:throw Error(`Unexpected parameters to loader-utils 'urlToRequest': url = `+e+`, root = `+t+`.`)}else i=/^\.\.?\//.test(e)?e:`./`+e;return r.test(i)&&(i=i.replace(r,``)),i}t.exports=r})),q=r(((e,t)=>{let n=16368;var r=class{constructor(e,t,n,r){let i=e.exports;i.init(),this.exports=i,this.mem=Buffer.from(i.memory.buffer,0,65536),this.buffered=0,this.instancesPool=t,this.chunkSize=n,this.digestSize=r}reset(){this.buffered=0,this.exports.init()}update(e,t){if(typeof e==`string`){for(;e.length>n;)this._updateWithShortString(e.slice(0,n),t),e=e.slice(n);return this._updateWithShortString(e,t),this}return this._updateWithBuffer(e),this}_updateWithShortString(e,t){let{exports:n,buffered:r,mem:i,chunkSize:a}=this,o;if(e.length<70)if(!t||t===`utf-8`||t===`utf8`){o=r;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r<128)i[o++]=r;else if(r<2048)i[o]=r>>6|192,i[o+1]=r&63|128,o+=2;else{o+=i.write(e.slice(n),o,t);break}}}else if(t===`latin1`){o=r;for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);i[o++]=n}}else o=r+i.write(e,r,t);else o=r+i.write(e,r,t);if(o<a)this.buffered=o;else{let e=o&~(this.chunkSize-1);n.update(e);let t=o-e;this.buffered=t,t>0&&i.copyWithin(0,e,o)}}_updateWithBuffer(e){let{exports:t,buffered:n,mem:r}=this,i=e.length;if(n+i<this.chunkSize)e.copy(r,n,0,i),this.buffered+=i;else{let a=n+i&~(this.chunkSize-1);if(a>65536){let i=65536-n;e.copy(r,n,0,i),t.update(65536);let o=a-n-65536;for(;i<o;)e.copy(r,0,i,i+65536),t.update(65536),i+=65536;e.copy(r,0,i,a-n),t.update(a-n-i)}else e.copy(r,n,0,a-n),t.update(a);let o=i+n-a;this.buffered=o,o>0&&e.copy(r,0,i-o,i)}}digest(e){let{exports:t,buffered:n,mem:r,digestSize:i}=this;t.final(n),this.instancesPool.push(this);let a=r.toString(`latin1`,0,i);return e===`hex`?a:e===`binary`||!e?Buffer.from(a,`hex`):Buffer.from(a,`hex`).toString(e)}};t.exports=(e,t,n,i)=>{if(t.length>0){let e=t.pop();return e.reset(),e}else return new r(new WebAssembly.Instance(e),t,n,i)},t.exports.MAX_SHORT_STRING=n})),Ye=r(((e,t)=>{let n=q(),r=new WebAssembly.Module(Buffer.from(`AGFzbQEAAAABCAJgAX8AYAAAAwQDAQAABQMBAAEGGgV+AUIAC34BQgALfgFCAAt+AUIAC34BQgALByIEBGluaXQAAAZ1cGRhdGUAAQVmaW5hbAACBm1lbW9yeQIACrUIAzAAQtbrgu7q/Yn14AAkAELP1tO+0ser2UIkAUIAJAJC+erQ0OfJoeThACQDQgAkBAvUAQIBfwR+IABFBEAPCyMEIACtfCQEIwAhAiMBIQMjAiEEIwMhBQNAIAIgASkDAELP1tO+0ser2UJ+fEIfiUKHla+vmLbem55/fiECIAMgASkDCELP1tO+0ser2UJ+fEIfiUKHla+vmLbem55/fiEDIAQgASkDEELP1tO+0ser2UJ+fEIfiUKHla+vmLbem55/fiEEIAUgASkDGELP1tO+0ser2UJ+fEIfiUKHla+vmLbem55/fiEFIAAgAUEgaiIBSw0ACyACJAAgAyQBIAQkAiAFJAMLqwYCAX8EfiMEQgBSBH4jACICQgGJIwEiA0IHiXwjAiIEQgyJfCMDIgVCEol8IAJCz9bTvtLHq9lCfkIfiUKHla+vmLbem55/foVCh5Wvr5i23puef35CnaO16oOxjYr6AH0gA0LP1tO+0ser2UJ+Qh+JQoeVr6+Ytt6bnn9+hUKHla+vmLbem55/fkKdo7Xqg7GNivoAfSAEQs/W077Sx6vZQn5CH4lCh5Wvr5i23puef36FQoeVr6+Ytt6bnn9+Qp2jteqDsY2K+gB9IAVCz9bTvtLHq9lCfkIfiUKHla+vmLbem55/foVCh5Wvr5i23puef35CnaO16oOxjYr6AH0FQsXP2bLx5brqJwsjBCAArXx8IQIDQCABQQhqIABNBEAgAiABKQMAQs/W077Sx6vZQn5CH4lCh5Wvr5i23puef36FQhuJQoeVr6+Ytt6bnn9+Qp2jteqDsY2K+gB9IQIgAUEIaiEBDAELCyABQQRqIABNBEACfyACIAE1AgBCh5Wvr5i23puef36FQheJQs/W077Sx6vZQn5C+fPd8Zn2masWfCECIAFBBGoLIQELA0AgACABRwRAIAIgATEAAELFz9my8eW66id+hUILiUKHla+vmLbem55/fiECIAFBAWohAQwBCwtBACACIAJCIYiFQs/W077Sx6vZQn4iAiACQh2IhUL5893xmfaZqxZ+IgIgAkIgiIUiAkIgiCIDQv//A4NCIIYgA0KAgPz/D4NCEIiEIgNC/4GAgPAfg0IQhiADQoD+g4CA4D+DQgiIhCIDQo+AvIDwgcAHg0IIhiADQvCBwIeAnoD4AINCBIiEIgNChoyYsODAgYMGfEIEiEKBgoSIkKDAgAGDQid+IANCsODAgYOGjJgwhHw3AwBBCCACQv////8PgyICQv//A4NCIIYgAkKAgPz/D4NCEIiEIgJC/4GAgPAfg0IQhiACQoD+g4CA4D+DQgiIhCICQo+AvIDwgcAHg0IIhiACQvCBwIeAnoD4AINCBIiEIgJChoyYsODAgYMGfEIEiEKBgoSIkKDAgAGDQid+IAJCsODAgYOGjJgwhHw3AwAL`,`base64`));t.exports=n.bind(null,r,[],32,16)})),Xe=r(((e,t)=>{let n=q().MAX_SHORT_STRING;t.exports=class{constructor(e){this.string=void 0,this.encoding=void 0,this.hash=e}update(e,t){if(this.string!==void 0){if(typeof e==`string`&&t===this.encoding&&this.string.length+e.length<n)return this.string+=e,this;this.hash.update(this.string,this.encoding),this.string=void 0}return typeof e==`string`?e.length<n&&(!t||!t.startsWith(`ba`))?(this.string=e,this.encoding=t):this.hash.update(e,t):this.hash.update(e),this}digest(e){return this.string!==void 0&&this.hash.update(this.string,this.encoding),this.hash.digest(e)}}})),Ze=r(((e,t)=>{let n=q(),r=new WebAssembly.Module(Buffer.from(`AGFzbQEAAAABCAJgAX8AYAAAAwUEAQAAAAUDAQABBhoFfwFBAAt/AUEAC38BQQALfwFBAAt/AUEACwciBARpbml0AAAGdXBkYXRlAAIFZmluYWwAAwZtZW1vcnkCAAqFEAQmAEGBxpS6BiQBQYnXtv5+JAJB/rnrxXkkA0H2qMmBASQEQQAkAAvMCgEYfyMBIQojAiEGIwMhByMEIQgDQCAAIAVLBEAgBSgCCCINIAcgBiAFKAIEIgsgCCAHIAUoAgAiDCAKIAggBiAHIAhzcXNqakEDdyIDIAYgB3Nxc2pqQQd3IgEgAyAGc3FzampBC3chAiAFKAIUIg8gASACIAUoAhAiCSADIAEgBSgCDCIOIAYgAyACIAEgA3Nxc2pqQRN3IgQgASACc3FzampBA3ciAyACIARzcXNqakEHdyEBIAUoAiAiEiADIAEgBSgCHCIRIAQgAyAFKAIYIhAgAiAEIAEgAyAEc3FzampBC3ciAiABIANzcXNqakETdyIEIAEgAnNxc2pqQQN3IQMgBSgCLCIVIAQgAyAFKAIoIhQgAiAEIAUoAiQiEyABIAIgAyACIARzcXNqakEHdyIBIAMgBHNxc2pqQQt3IgIgASADc3FzampBE3chBCAPIBAgCSAVIBQgEyAFKAI4IhYgAiAEIAUoAjQiFyABIAIgBSgCMCIYIAMgASAEIAEgAnNxc2pqQQN3IgEgAiAEc3FzampBB3ciAiABIARzcXNqakELdyIDIAkgAiAMIAEgBSgCPCIJIAQgASADIAEgAnNxc2pqQRN3IgEgAiADcnEgAiADcXJqakGZ84nUBWpBA3ciAiABIANycSABIANxcmpqQZnzidQFakEFdyIEIAEgAnJxIAEgAnFyaiASakGZ84nUBWpBCXciAyAPIAQgCyACIBggASADIAIgBHJxIAIgBHFyampBmfOJ1AVqQQ13IgEgAyAEcnEgAyAEcXJqakGZ84nUBWpBA3ciAiABIANycSABIANxcmpqQZnzidQFakEFdyIEIAEgAnJxIAEgAnFyampBmfOJ1AVqQQl3IgMgECAEIAIgFyABIAMgAiAEcnEgAiAEcXJqakGZ84nUBWpBDXciASADIARycSADIARxcmogDWpBmfOJ1AVqQQN3IgIgASADcnEgASADcXJqakGZ84nUBWpBBXciBCABIAJycSABIAJxcmpqQZnzidQFakEJdyIDIBEgBCAOIAIgFiABIAMgAiAEcnEgAiAEcXJqakGZ84nUBWpBDXciASADIARycSADIARxcmpqQZnzidQFakEDdyICIAEgA3JxIAEgA3FyampBmfOJ1AVqQQV3IgQgASACcnEgASACcXJqakGZ84nUBWpBCXciAyAMIAIgAyAJIAEgAyACIARycSACIARxcmpqQZnzidQFakENdyIBcyAEc2pqQaHX5/YGakEDdyICIAQgASACcyADc2ogEmpBodfn9gZqQQl3IgRzIAFzampBodfn9gZqQQt3IgMgAiADIBggASADIARzIAJzampBodfn9gZqQQ93IgFzIARzaiANakGh1+f2BmpBA3ciAiAUIAQgASACcyADc2pqQaHX5/YGakEJdyIEcyABc2pqQaHX5/YGakELdyIDIAsgAiADIBYgASADIARzIAJzampBodfn9gZqQQ93IgFzIARzampBodfn9gZqQQN3IgIgEyAEIAEgAnMgA3NqakGh1+f2BmpBCXciBHMgAXNqakGh1+f2BmpBC3chAyAKIA4gAiADIBcgASADIARzIAJzampBodfn9gZqQQ93IgFzIARzampBodfn9gZqQQN3IgJqIQogBiAJIAEgESADIAIgFSAEIAEgAnMgA3NqakGh1+f2BmpBCXciBHMgAXNqakGh1+f2BmpBC3ciAyAEcyACc2pqQaHX5/YGakEPd2ohBiADIAdqIQcgBCAIaiEIIAVBQGshBQwBCwsgCiQBIAYkAiAHJAMgCCQECw0AIAAQASMAIABqJAAL/wQCA38BfiMAIABqrUIDhiEEIABByABqQUBxIgJBCGshAyAAIgFBAWohACABQYABOgAAA0AgACACSUEAIABBB3EbBEAgAEEAOgAAIABBAWohAAwBCwsDQCAAIAJJBEAgAEIANwMAIABBCGohAAwBCwsgAyAENwMAIAIQAUEAIwGtIgRC//8DgyAEQoCA/P8Pg0IQhoQiBEL/gYCA8B+DIARCgP6DgIDgP4NCCIaEIgRCj4C8gPCBwAeDQgiGIARC8IHAh4CegPgAg0IEiIQiBEKGjJiw4MCBgwZ8QgSIQoGChIiQoMCAAYNCJ34gBEKw4MCBg4aMmDCEfDcDAEEIIwKtIgRC//8DgyAEQoCA/P8Pg0IQhoQiBEL/gYCA8B+DIARCgP6DgIDgP4NCCIaEIgRCj4C8gPCBwAeDQgiGIARC8IHAh4CegPgAg0IEiIQiBEKGjJiw4MCBgwZ8QgSIQoGChIiQoMCAAYNCJ34gBEKw4MCBg4aMmDCEfDcDAEEQIwOtIgRC//8DgyAEQoCA/P8Pg0IQhoQiBEL/gYCA8B+DIARCgP6DgIDgP4NCCIaEIgRCj4C8gPCBwAeDQgiGIARC8IHAh4CegPgAg0IEiIQiBEKGjJiw4MCBgwZ8QgSIQoGChIiQoMCAAYNCJ34gBEKw4MCBg4aMmDCEfDcDAEEYIwStIgRC//8DgyAEQoCA/P8Pg0IQhoQiBEL/gYCA8B+DIARCgP6DgIDgP4NCCIaEIgRCj4C8gPCBwAeDQgiGIARC8IHAh4CegPgAg0IEiIQiBEKGjJiw4MCBgwZ8QgSIQoGChIiQoMCAAYNCJ34gBEKw4MCBg4aMmDCEfDcDAAs=`,`base64`));t.exports=n.bind(null,r,[],64,32)})),Qe=r(((e,t)=>{let n=2e3,r={};t.exports=class{constructor(e,t){this.hashKey=t,typeof e==`function`?(this.hashFactory=e,this.hash=void 0):(this.hashFactory=void 0,this.hash=e),this.buffer=``}update(e,t){return t!==void 0||typeof e!=`string`||e.length>n?(this.hash===void 0&&(this.hash=this.hashFactory()),this.buffer.length>0&&(this.hash.update(this.buffer),this.buffer=``),this.hash.update(e,t)):(this.buffer+=e,this.buffer.length>n&&(this.hash===void 0&&(this.hash=this.hashFactory()),this.hash.update(this.buffer),this.buffer=``)),this}digest(e){let t,n=this.buffer;if(this.hash===void 0){let i=`${this.hashKey}-${e}`;t=r[i],t===void 0&&(t=r[i]=new Map);let a=t.get(n);if(a!==void 0)return a;this.hash=this.hashFactory()}n.length>0&&this.hash.update(n);let i=this.hash.digest(e);return t!==void 0&&t.set(n,i),i}}})),$e=r(((e,t)=>{let r={26:`abcdefghijklmnopqrstuvwxyz`,32:`123456789abcdefghjkmnpqrstuvwxyz`,36:`0123456789abcdefghijklmnopqrstuvwxyz`,49:`abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ`,52:`abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`,58:`123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ`,62:`0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`,64:`0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_`};function i(e,t){let n=0;for(let r=e.length-1;r>=0;r--){let i=n*4294967296+e[r];n=i%t,e[r]=Math.floor(i/t)}return n}function a(e,t,n){let a=r[t];if(!a)throw Error(`Unknown encoding base`+t);let o=Math.ceil(e.length*8/Math.log2(t));n=Math.min(n,o);let s=new Uint32Array(Math.ceil(e.length/4));e.copy(Buffer.from(s.buffer));let c=``;for(let e=0;e<n;e++)c=a[i(s,t)]+c;return c}let o,s,c,l,u;function d(e,t,r,i){t||=`xxhash64`,i||=9999;let d;return t===`xxhash64`?(s===void 0&&(s=Ye(),l===void 0&&(l=Xe())),d=new l(s())):t===`md4`?(c===void 0&&(c=Ze(),l===void 0&&(l=Xe())),d=new l(c())):t===`native-md4`?(o===void 0&&(o=n(`crypto`),u===void 0&&(u=Qe())),d=new u(()=>o.createHash(`md4`),`md4`)):(o===void 0&&(o=n(`crypto`),u===void 0&&(u=Qe())),d=new u(()=>o.createHash(t),t)),d.update(e),r===`base26`||r===`base32`||r===`base36`||r===`base49`||r===`base52`||r===`base58`||r===`base62`||r===`base64safe`?a(d.digest(),r===`base64safe`?64:r.substr(4),i):d.digest(r||`hex`).substr(0,i)}t.exports=d})),et=r(((e,t)=>{let r=n(`path`),i=$e();function a(e,t,n={}){let a,o=e.resourceQuery&&e.resourceQuery.length>1;a=typeof t==`function`?t(e.resourcePath,o?e.resourceQuery:void 0):t||`[hash].[ext]`;let s=n.context,c=n.content,l=n.regExp,u=`bin`,d=`file`,f=``,p=``,m=``;if(e.resourcePath){let t=r.parse(e.resourcePath),n=e.resourcePath;t.ext&&(u=t.ext.substr(1)),t.dir&&(d=t.name,n=t.dir+r.sep),s===void 0?f=n.replace(/\\/g,`/`).replace(/\.\.(\/)?/g,`_$1`):(f=r.relative(s,n+`_`).replace(/\\/g,`/`).replace(/\.\.(\/)?/g,`_$1`),f=f.substr(0,f.length-1)),f.length<=1?f=``:p=r.basename(f)}if(e.resourceQuery&&e.resourceQuery.length>1){m=e.resourceQuery;let t=m.indexOf(`#`);t>=0&&(m=m.substr(0,t))}let h=a;if(c&&(h=h.replace(/\[(?:([^[:\]]+):)?(?:hash|contenthash)(?::([a-z]+\d*(?:safe)?))?(?::(\d+))?\]/gi,(e,t,n,r)=>i(c,t,n,parseInt(r,10)))),h=h.replace(/\[ext\]/gi,()=>u).replace(/\[name\]/gi,()=>d).replace(/\[path\]/gi,()=>f).replace(/\[folder\]/gi,()=>p).replace(/\[query\]/gi,()=>m),l&&e.resourcePath){let t=e.resourcePath.match(new RegExp(l));t&&t.forEach((e,t)=>{h=h.replace(RegExp(`\\[`+t+`\\]`,`ig`),e)})}return typeof e.options==`object`&&typeof e.options.customInterpolateName==`function`&&(h=e.options.customInterpolateName.call(e,h,t,n)),h}t.exports=a})),tt=r((e=>{qe(),Je();let t=$e(),n=et();e.getHashDigest=t,e.interpolateName=n})),nt=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),Object.defineProperty(e,`default`,{enumerable:!0,get:function(){return a}});let t=r(n(`postcss`));function r(e){return e&&e.__esModule?e:{default:e}}let i=({exports:e,fallbackFonts:n=[],adjustFontFallback:r,variable:i,weight:a,style:o})=>({postcssPlugin:`postcss-next-font`,Once(s){let c,l=e=>e.replace(/['"]/g,``),u=e=>`'${e}'`;for(let e of s.nodes)if(e.type===`atrule`&&e.name===`font-face`){let t=e.nodes.find(e=>e.prop===`font-family`);if(!t)continue;c||=l(t.value),t.value=u(c)}if(!c)throw Object.defineProperty(Error(`Font loaders must return one or more @font-face's`),`__NEXT_ERROR_CODE`,{value:`E428`,enumerable:!1,configurable:!0});let d;if(r){d=u(`${c} Fallback`);let e=t.default.atRule({name:`font-face`}),{fallbackFont:n,ascentOverride:i,descentOverride:a,lineGapOverride:o,sizeAdjust:l}=r;e.nodes=[new t.default.Declaration({prop:`font-family`,value:d}),new t.default.Declaration({prop:`src`,value:`local("${n}")`}),...i?[new t.default.Declaration({prop:`ascent-override`,value:i})]:[],...a?[new t.default.Declaration({prop:`descent-override`,value:a})]:[],...o?[new t.default.Declaration({prop:`line-gap-override`,value:o})]:[],...l?[new t.default.Declaration({prop:`size-adjust`,value:l})]:[]],s.nodes.push(e)}let f=e=>e.trim().includes(` `),p=[u(c),...d?[d]:[],...n].join(`, `),m=new t.default.Rule({selector:`.className`});if(m.nodes=[new t.default.Declaration({prop:`font-family`,value:p}),...a&&!f(a)?[new t.default.Declaration({prop:`font-weight`,value:a})]:[],...o&&!f(o)?[new t.default.Declaration({prop:`font-style`,value:o})]:[]],s.nodes.push(m),i){let e=new t.default.Rule({selector:`.variable`});e.nodes=[new t.default.Declaration({prop:i,value:p})],s.nodes.push(e)}e.push({name:`style`,value:{fontFamily:p,fontWeight:Number.isNaN(Number(a))?void 0:Number(a),fontStyle:o&&!f(o)?o:void 0}})}});i.postcss=!0;let a=i})),J=e(tt(),1),rt=e(nt(),1);const it=N(()=>import(`./build-Dtlh3qvU.mjs`).then(t=>e(t.default,1))),at=N(()=>import(`postcss`)),ot=async(e,{css:t,fallbackFonts:n,weight:r,style:i,adjustFontFallback:a,variable:o})=>{let s=J.getHashDigest(Buffer.from(t),`sha1`,`hex`,6),c,l=[];return{exports:l,...await st({postcssPlugins:[(rt.default.default||rt.default)({exports:l,fallbackFonts:n,weight:r,style:i,adjustFontFallback:a,variable:o}),(await it()).default({generateScopedName:e=>`__${e}_${s}`,getJSON(e,t,n){c=t}})],postcssOptions:{from:e},code:t}),modules:c}},st=async({postcssPlugins:e=[],postcssOptions:t={},code:n})=>{let r;try{r=await(await at()).default(e).process(n,t)}catch(e){if(typeof e==`object`&&e&&`message`in e&&`file`in e&&`line`in e&&`column`in e&&typeof e.column==`number`)throw Object.assign({},{message:`[postcss] ${e.message}`,code:n,loc:{file:e.file,line:e.line,column:e.column-1}})}return{code:r.css,map:{mappings:``}}},ct=N(()=>import(`next-font/google/loader`).then(e=>e.default)),lt=N(()=>import(`next-font/local/loader`).then(e=>e.default)),ut=({nextFontManifest:e,fontImports:t,onFinished:n})=>{let r=null,a=new Map,o={google:{css:new Map,font:new Map},local:{css:new Map,font:new Map}},c=[{id:`\0virtual:next-font/google/target.css`,loader:ct(),cache:o.google},{id:`\0virtual:next-font/local/target.css`,loader:lt(),cache:o.local}],l=new Map,u=t=>{l.delete(t);let{path:n}=A.parse(j(t)),i=s.join(r.root,n),o=a.get(i)?.[t];if(o){e[i]&&(e[i]=e[i].filter(e=>!o.includes(e)));let t=he(r?.base);for(let e of o){let n=t(e);d.set(n,Object.assign({},d.get(n),{serve:!1}))}}},d=new Map,f=null,p=!1;return[{resetCalledFinished:()=>{p=!1},removeTargetCss:u},[{name:`next-font:loader:scan`,enforce:`pre`,async configResolved(e){r=e},configureServer(e){return()=>{e.middlewares.use((e,t,n)=>{if(!e.originalUrl)return n();let r=d.get(e.originalUrl);r?.serve?t.end(r.content):n()})}}},{name:`next-font:loader`,async resolveId(e,t){if(!/\.css(?:$|\?)/.test(e))return null;let{id:n}=await this.resolve(M(e.replace(/^virtual:/,``)),t)??{id:null};return n!=null&&c.some(async e=>{let r=await this.resolve(e.id.replace(/^virtual:/,``),t);return r!=null&&n===r.id})?`\0`+e:null},load:{order:`pre`,async handler(e,i){if(!/\.css(?:$|\?)/.test(e))return null;let o=c.find(t=>t.id===M(e));if(!o)return null;let{loader:u,cache:m}=o,h=P(e),g=r?.command===`serve`;if(g&&l.has(h)&&f===this.environment.name)return l.get(h);f=this.environment.name;let{path:_,import:v,arguments:ee,variableName:y}=A.parse(j(e)),te=JSON.parse(ee),b=[],ne=he(r?.base),x=(e,t,n,r)=>{let i=J.interpolateName({},`static/media/[hash]${r?`-s`:``}${n?`.p`:``}.${t}`,{content:e});b.push(i);let a=ne(i);if(!g){let t=me(i);this.emitFile({type:`asset`,fileName:t.slice(1),source:e})}return d.set(a,{content:e,serve:g}),a},S=s.join(r.root,_),C=await(await u)({functionName:v,variableName:y,data:te,emitFontFile:x,loaderContext:this,cache:m,isDev:g,isServer:i?.ssr??!1,resolve:e=>s.join(s.dirname(S),e.startsWith(`.`)?e:`./${e}`)}),w=z(S);a.set(w,{...a.get(w),[h]:Array.from(new Set((a.get(w)?.[h]||[]).concat(b)))});let T=await ot(_,C);if(t[w]){for(let n of t[w])R(import.meta.resolve(M(n.id)),e)&&(n.css=T.code);!p&&!Object.values(t).flat().filter(e=>!e.css).length&&await n(a).finally(()=>{p=!0})}return l.set(h,T),T.code}},transform:{order:`post`,async handler(e,t,n){if(!/\.css(?:$|\?)/.test(t))return null;let i=P(t),a=l.get(i);if(!a)return null;let{modules:o,code:c,exports:u}=a,d=W(Object.assign({},o,Object.fromEntries(u.map(e=>[e.name,e.value]))),{namedExports:!0,preferConst:!0}),f=r?.css.devSourcemap?new Ke(c).generateMap({hires:!0}):void 0;return{code:r?.command===`serve`&&!n?.ssr?[`import { updateStyle as __vite__updateStyle, removeStyle as __vite__removeStyle } from ${JSON.stringify(s.posix.join(r.base,`/@vite/client`))};`,`const __vite__id = ${JSON.stringify(t)};`,`const __vite__css = ${JSON.stringify(c)};`,`__vite__updateStyle(__vite__id, __vite__css);`,d,`if (import.meta.hot) {`,[`import.meta.hot.accept();`,`import.meta.hot.prune(() => __vite__removeStyle(__vite__id));`].map(e=>`\t${e}`).join(`
|
|
16
|
+
`),`}`].join(`
|
|
17
|
+
`):d,map:f,moduleSideEffects:!1}}}},{name:`next-font:build`,apply:`build`,renderChunk:{order:`post`,async handler(e,t){let n=(await Promise.all(t.moduleIds.map(async e=>this.resolve(e).then(e=>e?.id)))).filter(Boolean);if(n.length){let e=n.map(e=>Object.assign({},l.get(P(e))??{},{id:e})).filter(e=>e!=null&&`code`in e&&typeof e.code==`string`).map(e=>e.code).join();function r(e,t){return z(s.format({...s.parse(e),base:void 0,ext:t}))}if(e){let n=r(t.name,`.css`),a=t.isEntry&&(!t.facadeModuleId||!i(t.facadeModuleId))?s.basename(n):n,o=this.emitFile({type:`asset`,name:a,source:e});t.viteMetadata.importedCss.add(this.getFileName(o))}}return null}}}]]},dt=({nextFontManifest:e})=>{let t=null;return[{name:`next-font:manifest`,configResolved(e){t=e},transform:{order:`post`,async handler(n,r){let{data:i,error:a}=await le(ue(r));if(!(a!=null||i==null)&&i===import.meta.resolve(`next-font/manifest`))return[`function encodeURIPath(file) {
|
|
18
|
+
return file
|
|
19
|
+
.split('/')
|
|
20
|
+
.map((p) => encodeURIComponent(p))
|
|
21
|
+
.join('/')
|
|
22
|
+
}`,`const injectedFontPreloadTags = new Set();`,`const __NEXT_FONT_MANIFEST__ = ${JSON.stringify(e,null,2)};`,W({manifest:void 0,getPreloadableFonts:void 0,getFontMetadata:void 0},{preferConst:!0,namedExports:!0}).replace(`export const manifest = undefined;`,`export const manifest = Object.freeze(__NEXT_FONT_MANIFEST__);`).replace(`export const getPreloadableFonts = undefined;`,`export const getPreloadableFonts = (filePath) => {
|
|
23
|
+
if (!manifest || !filePath) return null;
|
|
24
|
+
const fontFiles = new Set();
|
|
25
|
+
let foundFontUsage = false;
|
|
26
|
+
const preloadedFontFiles = manifest[filePath];
|
|
27
|
+
if (preloadedFontFiles) {
|
|
28
|
+
foundFontUsage = true;
|
|
29
|
+
for (let fontFile of preloadedFontFiles) {
|
|
30
|
+
fontFile = \`/${t.build.assetsDir}/_next/\${fontFile}\`;
|
|
31
|
+
fontFiles.add(fontFile);
|
|
32
|
+
injectedFontPreloadTags.add(fontFile);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
if (fontFiles.size) {
|
|
36
|
+
return [...fontFiles].sort();
|
|
37
|
+
} else if (foundFontUsage && injectedFontPreloadTags.size === 0) {
|
|
38
|
+
return [];
|
|
39
|
+
} else {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
}`).replace(`export const getFontMetadata = undefined;`,`export const getFontMetadata = (filePath) => {
|
|
43
|
+
const metadata = {
|
|
44
|
+
preload: [],
|
|
45
|
+
preconnect: []
|
|
46
|
+
};
|
|
47
|
+
const preloadedFontFiles = filePath
|
|
48
|
+
? getPreloadableFonts(filePath)
|
|
49
|
+
: null;
|
|
50
|
+
if (preloadedFontFiles) {
|
|
51
|
+
if (preloadedFontFiles.length) {
|
|
52
|
+
for (let i = 0; i < preloadedFontFiles.length; i++) {
|
|
53
|
+
const fontFilename = preloadedFontFiles[i];
|
|
54
|
+
const ext = /.(woff|woff2|eot|ttf|otf)$/.exec(fontFilename)[1];
|
|
55
|
+
const type = \`font/\${ext}\`;
|
|
56
|
+
const href = encodeURIPath(fontFilename);
|
|
57
|
+
|
|
58
|
+
metadata.preload.push({
|
|
59
|
+
href,
|
|
60
|
+
type,
|
|
61
|
+
crossOrigin: undefined,
|
|
62
|
+
nonce: undefined
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
} else {
|
|
66
|
+
try {
|
|
67
|
+
let url = new URL('/' + '${t.build.assetsDir}');
|
|
68
|
+
metadata.preconnect.push({
|
|
69
|
+
href: url.origin,
|
|
70
|
+
crossOrigin: undefined,
|
|
71
|
+
nonce: undefined
|
|
72
|
+
});
|
|
73
|
+
} catch (error) {
|
|
74
|
+
// assetPrefix must not be a fully qualified domain name. We assume
|
|
75
|
+
// we should preconnect to same origin instead
|
|
76
|
+
metadata.preconnect.push({
|
|
77
|
+
href: '/',
|
|
78
|
+
crossOrigin: '',
|
|
79
|
+
nonce: null
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return metadata;
|
|
86
|
+
}`),`if (import.meta.hot) import.meta.hot.accept(${JSON.stringify(r)}, () => {
|
|
87
|
+
manifest = __NEXT_FONT_MANIFEST__;
|
|
88
|
+
})`].join(`
|
|
89
|
+
`)}}}]};var ft=class{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:e=>this.replacement=e}}replace(e,t,n,r){e&&t&&(n==null?e[t]=r:e[t][n]=r)}remove(e,t,n){e&&t&&(n==null?delete e[t]:e[t].splice(n,1))}},pt=class extends ft{constructor(e,t){super(),this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:e=>this.replacement=e},this.enter=e,this.leave=t}visit(e,t,n,r){if(e){if(this.enter){let i=this.should_skip,a=this.should_remove,o=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,e,t,n,r),this.replacement&&(e=this.replacement,this.replace(t,n,r,e)),this.should_remove&&this.remove(t,n,r);let s=this.should_skip,c=this.should_remove;if(this.should_skip=i,this.should_remove=a,this.replacement=o,s)return e;if(c)return null}let i;for(i in e){let t=e[i];if(t&&typeof t==`object`)if(Array.isArray(t)){let n=t;for(let t=0;t<n.length;t+=1){let r=n[t];mt(r)&&(this.visit(r,e,i,t)||t--)}}else mt(t)&&this.visit(t,e,i,null)}if(this.leave){let i=this.replacement,a=this.should_remove;this.replacement=null,this.should_remove=!1,this.leave.call(this.context,e,t,n,r),this.replacement&&(e=this.replacement,this.replace(t,n,r,e)),this.should_remove&&this.remove(t,n,r);let o=this.should_remove;if(this.replacement=i,this.should_remove=a,o)return null}}return e}};function mt(e){return typeof e==`object`&&!!e&&`type`in e&&typeof e.type==`string`}function Y(e,{enter:t,leave:n}){return new pt(t,n).visit(e,null)}var ht=class{state;constructor({state:e}){this.state=e}visit(e){Y(e,{enter:e=>{e.type===`Identifier`&&this.visitIdent(e)}})}visitIdent(e){if(e.name in this.state.fontFunctions&&!this.state.fontFunctionsInAllowedScope.includes(e.start))throw Error(`Font loaders must be called and assigned to a const in the module scope`)}},gt=class{state;fontLoaders;remapImports;constructor({state:e,fontLoaders:t,remapImports:n}){this.state=e,this.fontLoaders=t,this.remapImports=n}visit(e){Y(e,{enter:e=>{e.type===`ImportDeclaration`&&this.visitImportDecl(e)}})}visitImportDecl(e){if(typeof e.source.value!=`string`)return;let t=null;try{t=import.meta.resolve(M(this.remapImports[e.source.value]||e.source.value))}catch{}if(t!=null&&this.fontLoaders.some(e=>R(import.meta.resolve(e),t))){this.state.removeableModuleItems.push(e.start);for(let t of e.specifiers){let{local:n,functionName:r}=(()=>{switch(t.type){case`ImportSpecifier`:{let{local:e,imported:n}=t;return{local:e,functionName:n.type===`Identifier`?n.name:e.name}}case`ImportDefaultSpecifier`:{let{local:e}=t;return{local:e}}case`ImportNamespaceSpecifier`:throw Error(`Font loaders can't have namespace imports`)}})();this.state.fontFunctionsInAllowedScope.push(n.start),this.state.fontFunctions[n.name]={functionName:r,loader:e.source.value}}}}};const X={start:0,end:0},Z=e=>{switch(e.type){case`Literal`:return e.value;case`ObjectExpression`:return _t(e);case`ArrayExpression`:return e.elements.map(e=>{if(e){if(e.type===`SpreadElement`)throw Error(`Unexpected spread`);return Z(e)}else throw Error(`Unexpected empty value in array`)});default:throw Error(`Font loader values must be explicitly written literals.`)}},_t=e=>{let t={};for(let n of e.properties){if(n.type===`SpreadElement`)throw Error(`Unexpected spread`);if(n.kind!==`init`)throw Error(`Unexpected key`);if(n.key.type!==`Identifier`)throw Error(`Unexpected object key type`);t[n.key.name]=Z(n.value)}return t},Q=new WeakMap;let vt=0;function $(e){let t=typeof e,n=e&&e.constructor,r=n===Date;if(Object(e)===e&&!r&&n!=RegExp){let t=Q.get(e);if(t)return t;t=++vt+`~`,Q.set(e,t);let r;if(n===Array){for(t=`@`,r=0;r<e.length;r++)t+=$(e[r])+`,`;Q.set(e,t)}else if(n===Object){t=`#`;let n=Object.keys(e).sort();for(;(r=n.pop())!==void 0;)e[r]!==void 0&&(t+=r+`:`+$(e[r])+`,`);Q.set(e,t)}return t}return r?e.toJSON():t===`symbol`?e.toString():t===`string`?JSON.stringify(e):``+e}var yt=class{state;id;remapImports;constructor({state:e,id:t,remapImports:n}){this.state=e,this.id=t,this.remapImports=n}visit(e){Y(e,{enter:e=>{if(e.type===`VariableDeclaration`&&this.checkVarDecl(e),e.type===`VariableDeclaration`&&this.checkVarDecl(e)!=null&&this.state.removeableModuleItems.push(e.start),e.type===`ExportNamedDeclaration`||e.type===`ExportDefaultDeclaration`){let t=e;if(t.declaration?.type===`VariableDeclaration`){let e=t.declaration,n=this.checkVarDecl(e);n&&(this.state.removeableModuleItems.push(t.start),this.state.fontExports.push({type:`ExportNamedDeclaration`,specifiers:[{type:`ExportSpecifier`,local:n,exported:{name:n.name,type:`Identifier`,...X},...X}],attributes:[],...X}))}}}})}checkVarDecl(e){let t=e.declarations[0],n=t?.id,r=t?.init;if(r?.type===`CallExpression`){let t=r,i=this.checkCallExpr(t,n);if(i){if(e.kind!==`const`)throw Error(`Font loader calls must be assigned to a const`);if(!n)throw Error(`Font loader calls must be assigned to an identifier`);return i.specifiers=[{type:`ImportDefaultSpecifier`,local:n,...X}],this.state.fontImports.map($).includes($(i))||this.state.fontImports.push(i),n}}}checkCallExpr(e,t){if(e.callee.type===`Identifier`){let n=e.callee,r=this.state.fontFunctions[n.name];if(r){this.state.fontFunctionsInAllowedScope.push(n.start);let i=e.arguments.map(e=>{if(e.type===`SpreadElement`)throw Error(`Font loaders don't accept spreads`);return Z(e)}),a=r.functionName??``,o={path:this.id,import:a,arguments:i,variableName:t?.name??``};return{type:`ImportDeclaration`,source:{type:`Literal`,value:`virtual:`+A.stringifyUrl({url:s.posix.join(this.remapImports[r.loader]||r.loader,`target.css`),query:Object.assign({},o,{arguments:JSON.stringify(o.arguments)})}),...X},specifiers:[],attributes:[],...X}}}}};const bt=({ast:e,fontLoaders:t,id:n,remapImports:r})=>{let i=new Proxy({removeableModuleItems:[],fontFunctionsInAllowedScope:[],fontFunctions:{},fontImports:[],fontExports:[]},{set(e,t,n){return e[t]=n,!0},get(e,t){return e[t]}});if(new gt({state:i,fontLoaders:t,remapImports:r}).visit(e),i.removeableModuleItems.length>0){new yt({state:i,id:n,remapImports:r}).visit(e),new ht({state:i}).visit(e);let t=e=>i.removeableModuleItems.includes(e.start),a=e.body.findIndex(t);return Y(e,{enter(n){e!=n&&t(n)&&this.remove()}}),e.body.splice(a,0,...i.fontImports),e.body.push(...i.fontExports),{changed:!0,state:i}}return{changed:!1,state:i}},xt=N(()=>import(`./escodegen-BaCenGHx.mjs`).then(t=>e(t.default,1))),St=({fontImports:e,onFontImportsChanged:t})=>{let n=null,r={"@next/font/google":`next-font/google`,"@next/font/local":`next-font/local`,"next/font/google":`next-font/google`,"next/font/local":`next-font/local`},i=[`next-font/google`,`next-font/local`];return[{name:`next-font:transform`,async configResolved(e){n=e},async transform(a,o){if(!/\.(?:j|t)sx?$|\.mjs|\.svelte$/.test(o))return null;let{data:c,error:l}=await le((async()=>this.parse(a,{jsx:!0}))());if(l&&this.error(l),!c)return;let{changed:u,state:d}=bt({ast:c,fontLoaders:i,id:s.relative(n.root,o),remapImports:r});if(!u)return;let f=d.fontImports.map(e=>e.source.value),p=e[o];p&&f.some(e=>!p.some(t=>t.id===e))&&t(o,f,p.map(e=>e.id)),e[o]=f.map(e=>({id:e}));let m=await xt(),h=new Ke(``);for(let e of c.body)h.append(m.generate(e)),h.append(`
|
|
90
|
+
`);return{code:h.toString()}}}]};function Ct(e){return e.filter(e=>/\.p\.(woff|woff2|eot|ttf|otf)$/.test(e))}function wt(e){return e.some(e=>e.includes(`-s`))}const Tt=()=>{let e=[],t=new Proxy({},{get(e,t,n){return Reflect.get(e,t,n)},set(e,t,n,r){return Reflect.set(e,t,n,r)}}),n={isUsingSizeAdjust:!1},r=()=>{for(let t of e){let e=o(import.meta.resolve(`next-font/manifest`)),n=t.moduleGraph.getModuleById(e);n&&(t.reloadModule(n),t.moduleGraph.invalidateModule(n),t.moduleGraph.onFileChange(e),t.ws.send({type:`full-reload`,path:e}))}},[{resetCalledFinished:i,removeTargetCss:a},s]=ut({nextFontManifest:n,fontImports:t,onFinished:async e=>{for(let[t,r]of e)for(let e of Object.values(r)){n.isUsingSizeAdjust||=wt(e);let r=Ct(e);e.length>0&&(n[t]||=[],n[t]=Array.from(new Set(n[t].concat(r))))}r()}});return[{name:`next-font:scan`,configureServer(t){e.push(t)}},St({fontImports:t,onFontImportsChanged:async(t,n,s)=>{i();let c=s.filter(e=>!n.includes(e));for(let t of e){for(let e of c){let n=o(import.meta.resolve(M(e)))+j(e);a(P(n));let r=t.moduleGraph.getModuleById(n);r&&(t.moduleGraph.onFileDelete(n),t.ws.send({type:`prune`,paths:[n]}),t.ws.send({type:`update`,updates:[{type:`css-update`,path:n,acceptedPath:n,timestamp:Date.now()},{type:`css-update`,path:e,acceptedPath:e,timestamp:Date.now()}]}),t.reloadModule(r),t.ws.send({type:`full-reload`,path:n}))}r()}}}),s,dt({nextFontManifest:n})]};export{Tt as default,et as t};
|
package/package.json
CHANGED
|
@@ -1,23 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-font/plugin-vite",
|
|
3
|
+
"version": "1.5.0",
|
|
3
4
|
"description": "Vite plugin for next/font (@next/font)",
|
|
4
|
-
"version": "1.4.1",
|
|
5
5
|
"license": "BSD-2-Clause",
|
|
6
|
-
"
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/kijv/next-font.git",
|
|
9
|
+
"directory": "packages/plugin-vite"
|
|
10
|
+
},
|
|
7
11
|
"files": [
|
|
8
12
|
"dist"
|
|
9
13
|
],
|
|
14
|
+
"type": "module",
|
|
10
15
|
"main": "./dist/index.js",
|
|
11
16
|
"types": "./dist/index.d.ts",
|
|
12
17
|
"exports": {
|
|
13
18
|
".": {
|
|
14
|
-
"
|
|
15
|
-
"
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"import": "./dist/index.js"
|
|
16
21
|
}
|
|
17
22
|
},
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public"
|
|
25
|
+
},
|
|
18
26
|
"scripts": {
|
|
19
|
-
"build": "
|
|
20
|
-
"dev": "
|
|
27
|
+
"build": "tsdown --minify",
|
|
28
|
+
"dev": "tsdown --watch --sourcemap"
|
|
21
29
|
},
|
|
22
30
|
"dependencies": {
|
|
23
31
|
"postcss": "^8.5.6"
|
|
@@ -32,20 +40,13 @@
|
|
|
32
40
|
"estree-walker": "^3.0.3",
|
|
33
41
|
"loader-utils": "^3.3.1",
|
|
34
42
|
"magic-string": "^0.30.17",
|
|
43
|
+
"next": "^16.1.6",
|
|
35
44
|
"postcss-modules": "^6.0.1",
|
|
36
45
|
"query-string": "^9.2.1",
|
|
37
46
|
"stable-hash": "^0.0.6",
|
|
38
47
|
"vite": "7.0.1"
|
|
39
48
|
},
|
|
40
49
|
"peerDependencies": {
|
|
41
|
-
"next-font": "
|
|
42
|
-
},
|
|
43
|
-
"publishConfig": {
|
|
44
|
-
"access": "public"
|
|
45
|
-
},
|
|
46
|
-
"repository": {
|
|
47
|
-
"type": "git",
|
|
48
|
-
"url": "git+https://github.com/kijv/next-font.git",
|
|
49
|
-
"directory": "packages/plugin-vite"
|
|
50
|
+
"next-font": "workspace:~"
|
|
50
51
|
}
|
|
51
52
|
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{c as u,g as e}from"./index-ChU0Qhqa.js";import t from"path";import n from"node:url";import r from"node:module";var i,o,s,a,D,l,A,p,c,F,C,E,h,f={},B={},m={},g={exports:{}},d={exports:{}};function y(){return a||(a=1,!function(){var u,e,t,n,r,i;function o(u){return u<=65535?String.fromCharCode(u):String.fromCharCode(Math.floor((u-65536)/1024)+55296)+String.fromCharCode((u-65536)%1024+56320)}for(e={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},u={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},t=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],i=0,n=Array(128);i<128;++i)n[i]=i>=97&&i<=122||i>=65&&i<=90||36===i||95===i;for(i=0,r=Array(128);i<128;++i)r[i]=i>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57||36===i||95===i;d.exports={isDecimalDigit:function(u){return 48<=u&&u<=57},isHexDigit:function(u){return 48<=u&&u<=57||97<=u&&u<=102||65<=u&&u<=70},isOctalDigit:function(u){return u>=48&&u<=55},isWhiteSpace:function(u){return 32===u||9===u||11===u||12===u||160===u||u>=5760&&t.indexOf(u)>=0},isLineTerminator:function(u){return 10===u||13===u||8232===u||8233===u},isIdentifierStartES5:function(u){return u<128?n[u]:e.NonAsciiIdentifierStart.test(o(u))},isIdentifierPartES5:function(u){return u<128?r[u]:e.NonAsciiIdentifierPart.test(o(u))},isIdentifierStartES6:function(e){return e<128?n[e]:u.NonAsciiIdentifierStart.test(o(e))},isIdentifierPartES6:function(e){return e<128?r[e]:u.NonAsciiIdentifierPart.test(o(e))}}}()),d.exports}var S={exports:{}},x={};function v(u){throw Error('Could not dynamically require "'+u+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var b={exports:{}};/** vim: et:ts=4:sw=4:sts=4
|
|
2
|
-
* @license amdefine 1.0.1 Copyright (c) 2011-2016, The Dojo Foundation All Rights Reserved.
|
|
3
|
-
* Available via the MIT or new BSD license.
|
|
4
|
-
* see: http://github.com/jrburke/amdefine for details
|
|
5
|
-
*/let _=n.fileURLToPath(import.meta.url);function w(){return p?A:(p=1,A=function(u,e){var n,r,i={},o={},s=!1;function a(u,e){var t;if(u&&"."===u.charAt(0)&&e){var n,r,i=t=(t=(t=e.split("/")).slice(0,t.length-1)).concat(u.split("/"));for(n=0;i[n];n+=1)if("."===(r=i[n]))i.splice(n,1),n-=1;else if(".."===r)if(1===n&&(".."===i[2]||".."===i[0]))break;else n>0&&(i.splice(n-1,2),n-=2);u=t.join("/")}return u}function D(t,r,i){var a,D,l,A;if(t)D=o[t]={},l={id:t,uri:_,exports:D},a=n(e,D,l,t);else{if(s)throw Error("amdefine with no module ID cannot be called more than once per file.");s=!0,D=u.exports,a=n(e,D,l=u,u.id)}r&&(r=r.map(function(u){return a(u)})),void 0!==(A="function"==typeof i?i.apply(l.exports,r):i)&&(l.exports=A,t&&(o[t]=l.exports))}function l(u,e,t){Array.isArray(u)?(t=e,e=u,u=void 0):"string"!=typeof u&&(t=u,u=e=void 0),e&&!Array.isArray(e)&&(t=e,e=void 0),e||(e=["require","exports","module"]),u?i[u]=[u,e,t]:D(u,e,t)}return n=function(u,e,n,i){function o(t,o){if("string"==typeof t)return r(u,e,n,t,i);t=t.map(function(t){return r(u,e,n,t,i)}),o&&process.nextTick(function(){o.apply(null,t)})}return o.toUrl=function(u){return 0===u.indexOf(".")?a(u,t.dirname(n.filename)):u},o},e=e||function(){return u.require.apply(u,arguments)},r=function(u,e,t,s,l){var A,p,c=s.indexOf("!"),F=s;if(-1===c){if("require"===(s=a(s,l)))return n(u,e,t,l);if("exports"===s)return e;if("module"===s)return t;else if(o.hasOwnProperty(s))return o[s];else if(i[s])return D.apply(null,i[s]),o[s];else if(u)return u(F);else throw Error("No module with ID: "+s)}return o[A=s.substring(0,c),s=s.substring(c+1,s.length),s=(p=r(u,e,t,A,l)).normalize?p.normalize(s,function(u){return a(u,l)}):a(s,l)]||p.load(s,n(u,e,t,l),function(u){function e(e){o[u]=e}return e.fromText=function(u,e){throw Error("amdefine does not implement load.fromText")},e}(s),{}),o[s]},l.require=function(u){return o[u]?o[u]:i[u]?(D.apply(null,i[u]),o[u]):void 0},l.amd={},l})}r.createRequire(import.meta.url),b.exports;var k={exports:{}};k.exports;var I={exports:{}};I.exports;var q=function(){return h?f:(h=1,function(){function e(u){return ul.Statement.hasOwnProperty(u.type)}i=function(){return o?B:(o=1,function u(e){var t,n,r,i,o,s,a,D,l;function A(u){var e,t,n={};for(e in u)u.hasOwnProperty(e)&&("object"==typeof(t=u[e])&&null!==t?n[e]=A(t):n[e]=t);return n}function p(u,e){this.parent=u,this.key=e}function c(u,e,t,n){this.node=u,this.path=e,this.wrap=t,this.ref=n}function F(){}function C(u){return null!=u&&"object"==typeof u&&"string"==typeof u.type}function E(u,e){return(u===t.ObjectExpression||u===t.ObjectPattern)&&"properties"===e}function h(u,e){return new F().traverse(u,e)}return(n=Array.isArray)||(n=function(u){return"[object Array]"===Object.prototype.toString.call(u)}),o=Object.create||function(){function u(){}return function(e){return u.prototype=e,new u}}(),s=Object.keys||function(u){var e,t=[];for(e in u)t.push(e);return t},t={AssignmentExpression:"AssignmentExpression",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportBatchSpecifier:"ExportBatchSpecifier",ExportDeclaration:"ExportDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},i={AssignmentExpression:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","defaults","rest","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ClassBody:["body"],ClassDeclaration:["id","body","superClass"],ClassExpression:["id","body","superClass"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportBatchSpecifier:[],ExportDeclaration:["declaration","specifiers","source"],ExportSpecifier:["id","name"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","defaults","rest","body"],FunctionExpression:["id","params","defaults","rest","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["id"],ImportNamespaceSpecifier:["id"],ImportSpecifier:["id","name"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],Program:["body"],Property:["key","value"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handlers","handler","guardedHandlers","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},r={Break:a={},Skip:D={},Remove:l={}},p.prototype.replace=function(u){this.parent[this.key]=u},p.prototype.remove=function(){return n(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},F.prototype.path=function(){var u,e,t,r,i;function o(u,e){if(n(e))for(t=0,r=e.length;t<r;++t)u.push(e[t]);else u.push(e)}if(!this.__current.path)return null;for(u=2,i=[],e=this.__leavelist.length;u<e;++u)o(i,this.__leavelist[u].path);return o(i,this.__current.path),i},F.prototype.type=function(){return this.current().type||this.__current.wrap},F.prototype.parents=function(){var u,e,t;for(u=1,t=[],e=this.__leavelist.length;u<e;++u)t.push(this.__leavelist[u].node);return t},F.prototype.current=function(){return this.__current.node},F.prototype.__execute=function(u,e){var t,n;return n=void 0,t=this.__current,this.__current=e,this.__state=null,u&&(n=u.call(this,e.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=t,n},F.prototype.notify=function(u){this.__state=u},F.prototype.skip=function(){this.notify(D)},F.prototype.break=function(){this.notify(a)},F.prototype.remove=function(){this.notify(l)},F.prototype.__initialize=function(u,e){this.visitor=e,this.root=u,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback="iteration"===e.fallback,this.__keys=i,e.keys&&(this.__keys=function(u,e){var t,n,r,i=s(e);for(n=0,r=i.length;n<r;n+=1)u[t=i[n]]=e[t];return u}(o(this.__keys),e.keys))},F.prototype.traverse=function(u,e){var t,r,i,o,l,A,p,F,h,f,B,m;for(this.__initialize(u,e),m={},t=this.__worklist,r=this.__leavelist,t.push(new c(u,null,null,null)),r.push(new c(null,null,null,null));t.length;){if((i=t.pop())===m){if(i=r.pop(),A=this.__execute(e.leave,i),this.__state===a||A===a)return;continue}if(i.node){if(A=this.__execute(e.enter,i),this.__state===a||A===a)return;if(t.push(m),r.push(i),this.__state===D||A===D)continue;if(o=i.node,l=i.wrap||o.type,!(f=this.__keys[l]))if(this.__fallback)f=s(o);else throw Error("Unknown node type "+l+".");for(F=f.length;(F-=1)>=0;)if(B=o[p=f[F]])if(n(B)){for(h=B.length;(h-=1)>=0;)if(B[h]){if(E(l,f[F]))i=new c(B[h],[p,h],"Property",null);else{if(!C(B[h]))continue;i=new c(B[h],[p,h],null,null)}t.push(i)}}else C(B)&&t.push(new c(B,p,null,null))}}},F.prototype.replace=function(u,e){var t,r,i,o,A,F,h,f,B,m,g,d,y;function S(u){var e,n,r,i;if(u.ref.remove()){for(n=u.ref.key,i=u.ref.parent,e=t.length;e--;)if((r=t[e]).ref&&r.ref.parent===i){if(r.ref.key<n)break;--r.ref.key}}}for(this.__initialize(u,e),g={},t=this.__worklist,r=this.__leavelist,d={root:u},F=new c(u,null,null,new p(d,"root")),t.push(F),r.push(F);t.length;){if((F=t.pop())===g){if(F=r.pop(),void 0!==(A=this.__execute(e.leave,F))&&A!==a&&A!==D&&A!==l&&F.ref.replace(A),(this.__state===l||A===l)&&S(F),this.__state===a||A===a)return d.root;continue}if(void 0!==(A=this.__execute(e.enter,F))&&A!==a&&A!==D&&A!==l&&(F.ref.replace(A),F.node=A),(this.__state===l||A===l)&&(S(F),F.node=null),this.__state===a||A===a)break;if(i=F.node){if(t.push(g),r.push(F),this.__state!==D&&A!==D){if(o=F.wrap||i.type,!(B=this.__keys[o]))if(this.__fallback)B=s(i);else throw Error("Unknown node type "+o+".");for(h=B.length;(h-=1)>=0;)if(m=i[y=B[h]])if(n(m)){for(f=m.length;(f-=1)>=0;)if(m[f]){if(E(o,B[h]))F=new c(m[f],[y,f],"Property",new p(m,f));else{if(!C(m[f]))continue;F=new c(m[f],[y,f],null,new p(m,f))}t.push(F)}}else C(m)&&t.push(new c(m,y,null,new p(i,y)))}}}return d.root},e.version="1.8.1-dev",e.Syntax=t,e.traverse=h,e.replace=function(u,e){return new F().replace(u,e)},e.attachComments=function(u,e,t){var n,i,o,s,a=[];if(!u.range)throw Error("attachComments needs range information");if(!t.length){if(e.length){for(o=0,i=e.length;o<i;o+=1)(n=A(e[o])).extendedRange=[0,u.range[0]],a.push(n);u.leadingComments=a}return u}for(o=0,i=e.length;o<i;o+=1)a.push(function(u,e){var t;return t=function(u,e){var t,n,r,i;for(n=u.length,r=0;n;)e(u[i=r+(t=n>>>1)])?n=t:(r=i+1,n-=t+1);return r}(e,function(e){return e.range[0]>u.range[0]}),u.extendedRange=[u.range[0],u.range[1]],t!==e.length&&(u.extendedRange[1]=e[t].range[0]),(t-=1)>=0&&(u.extendedRange[0]=e[t].range[1]),u}(A(e[o]),t));return s=0,h(u,{enter:function(u){for(var e;s<a.length&&!((e=a[s]).extendedRange[1]>u.range[0]);)e.extendedRange[1]===u.range[0]?(u.leadingComments||(u.leadingComments=[]),u.leadingComments.push(e),a.splice(s,1)):s+=1;return s===a.length?r.Break:a[s].extendedRange[0]>u.range[1]?r.Skip:void 0}}),s=0,h(u,{leave:function(u){for(var e;s<a.length&&(e=a[s],!(u.range[1]<e.extendedRange[0]));)u.range[1]===e.extendedRange[0]?(u.trailingComments||(u.trailingComments=[]),u.trailingComments.push(e),a.splice(s,1)):s+=1;return s===a.length?r.Break:a[s].extendedRange[0]>u.range[1]?r.Skip:void 0}}),u},e.VisitorKeys=i,e.VisitorOption=r,e.Controller=F,e.cloneEnvironment=function(){return u({})},e}(B),B)}(),l||(l=1,m.ast=function(){if(s)return g.exports;function u(u){if(null==u)return!1;switch(u.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function e(u){switch(u.type){case"IfStatement":if(null!=u.alternate)return u.alternate;return u.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return u.body}return null}return s=1,g.exports={isExpression:function(u){if(null==u)return!1;switch(u.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:u,isIterationStatement:function(u){if(null==u)return!1;switch(u.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(e){return u(e)||null!=e&&"FunctionDeclaration"===e.type},isProblematicIfStatement:function(u){var t;if("IfStatement"!==u.type||null==u.alternate)return!1;t=u.consequent;do{if("IfStatement"===t.type&&null==t.alternate)return!0;t=e(t)}while(t);return!1},trailingStatement:e},g.exports}(),m.code=y(),D||(D=1,function(){var u=y();function e(u,e){return(!!e||"yield"!==u)&&t(u,e)}function t(u,e){if(e&&function(u){switch(u){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(u))return!0;switch(u.length){case 2:return"if"===u||"in"===u||"do"===u;case 3:return"var"===u||"for"===u||"new"===u||"try"===u;case 4:return"this"===u||"else"===u||"case"===u||"void"===u||"with"===u||"enum"===u;case 5:return"while"===u||"break"===u||"catch"===u||"throw"===u||"const"===u||"yield"===u||"class"===u||"super"===u;case 6:return"return"===u||"typeof"===u||"delete"===u||"switch"===u||"export"===u||"import"===u;case 7:return"default"===u||"finally"===u||"extends"===u;case 8:return"function"===u||"continue"===u||"debugger"===u;case 10:return"instanceof"===u;default:return!1}}function n(u,t){return"null"===u||"true"===u||"false"===u||e(u,t)}function r(u,e){return"null"===u||"true"===u||"false"===u||t(u,e)}function i(e){var t,n,r;if(0===e.length||(r=e.charCodeAt(0),!u.isIdentifierStartES5(r)))return!1;for(t=1,n=e.length;t<n;++t)if(r=e.charCodeAt(t),!u.isIdentifierPartES5(r))return!1;return!0}function o(e){var t,n,r,i,o;if(0===e.length)return!1;for(t=0,o=u.isIdentifierStartES6,n=e.length;t<n;++t){if(55296<=(r=e.charCodeAt(t))&&r<=56319){if(++t>=n||!(56320<=(i=e.charCodeAt(t))&&i<=57343))return!1;r=(r-55296)*1024+(i-56320)+65536}if(!o(r))return!1;o=u.isIdentifierPartES6}return!0}S.exports={isKeywordES5:e,isKeywordES6:t,isReservedWordES5:n,isReservedWordES6:r,isRestrictedWord:function(u){return"eval"===u||"arguments"===u},isIdentifierNameES5:i,isIdentifierNameES6:o,isIdentifierES5:function(u,e){return i(u)&&!n(u,e)},isIdentifierES6:function(u,e){return o(u)&&!r(u,e)}}}()),m.keyword=S.exports),t=i.Syntax;var t,n,r,i,a,A,p,h,d,_,q,M,P,R,O,L,T,N,j,W,J,X,U,G,z={"??":(n={Sequence:0,Yield:1,Assignment:1,Conditional:2,ArrowFunction:2,LogicalOR:3,NullishCoalescing:3,LogicalAND:4,BitwiseOR:5,BitwiseXOR:6,BitwiseAND:7,Equality:8,Relational:9,BitwiseSHIFT:10,Additive:11,Multiplicative:12,Exponentiation:13,Await:13,Unary:14,Postfix:15,Call:16,New:17,TaggedTemplate:18,OptionalMember:19,Member:20,Primary:21}).NullishCoalescing,"||":n.LogicalOR,"&&":n.LogicalAND,"|":n.BitwiseOR,"^":n.BitwiseXOR,"&":n.BitwiseAND,"==":n.Equality,"!=":n.Equality,"===":n.Equality,"!==":n.Equality,is:n.Equality,isnt:n.Equality,"<":n.Relational,">":n.Relational,"<=":n.Relational,">=":n.Relational,in:n.Relational,instanceof:n.Relational,"<<":n.BitwiseSHIFT,">>":n.BitwiseSHIFT,">>>":n.BitwiseSHIFT,"+":n.Additive,"-":n.Additive,"*":n.Multiplicative,"%":n.Multiplicative,"/":n.Multiplicative,"**":n.Exponentiation};function V(){return{indent:null,base:null,parse:null,comment:!1,format:{indent:{style:" ",base:0,adjustMultilineComment:!1},newline:"\n",space:" ",json:!1,renumber:!1,hexadecimal:!1,quotes:"single",escapeless:!1,compact:!1,parentheses:!0,semicolons:!0,safeConcatenation:!1,preserveBlankLines:!1},moz:{comprehensionExpressionStartsWithAssignment:!1,starlessGenerator:!1},sourceMap:null,sourceMapRoot:null,sourceMapWithCode:!1,directive:!1,raw:!0,verbatim:null,sourceCode:null}}function K(u,e){var t="";for(e|=0;e>0;e>>>=1,u+=u)1&e&&(t+=u);return t}function $(u){return/[\r\n]/g.test(u)}function Y(u){var e=u.length;return e&&m.code.isLineTerminator(u.charCodeAt(e-1))}function H(u,e){var t;for(t in e)e.hasOwnProperty(t)&&(u[t]=e[t]);return u}function Q(u,e){var t,n;function r(u){return"object"==typeof u&&u instanceof Object&&!(u instanceof RegExp)}for(t in e)e.hasOwnProperty(t)&&(r(n=e[t])?r(u[t])?Q(u[t],n):u[t]=Q({},n):u[t]=n);return u}function Z(u,e){return(-2&u)==8232?(e?"u":"\\u")+(8232===u?"2028":"2029"):10===u||13===u?(e?"":"\\")+(10===u?"n":"r"):String.fromCharCode(u)}function uu(u,e){if(!e||"PrivateIdentifier"!==e.type||u instanceof r||(u="#"+u),!J)if(a(u))return function u(e){var t,n,r,i="";for(t=0,n=e.length;t<n;++t)r=e[t],i+=a(r)?u(r):r;return i}(u);else return u;if(null==e)if(u instanceof r)return u;else e={};return null==e.loc?new r(null,null,J,u,e.name||null):new r(e.loc.start.line,e.loc.start.column,!0===J?e.loc.source||null:J,u,e.name||null)}function ue(){return R||" "}function ut(u,e){var t,n,r,i;return 0===(t=uu(u).toString()).length?[e]:0===(n=uu(e).toString()).length?[u]:(r=t.charCodeAt(t.length-1),i=n.charCodeAt(0),(43===r||45===r)&&r===i||m.code.isIdentifierPartES5(r)&&m.code.isIdentifierPartES5(i)||47===r&&105===i)?[u,ue(),e]:m.code.isWhiteSpace(r)||m.code.isLineTerminator(r)||m.code.isWhiteSpace(i)||m.code.isLineTerminator(i)?[u,e]:[u,R,e]}function un(u){return[A,u]}function ur(u){var e;e=A,u(A+=p),A=e}function ui(u,e){if("Line"===u.type)if(Y(u.value))return"//"+u.value;else{var t="//"+u.value;return U||(t+="\n"),t}return j.format.indent.adjustMultilineComment&&/[\n\r]/.test(u.value)?function(u,e){var t,n,r,i,o,s,a,D;for(n=1,t=u.split(/\r\n|[\r\n]/),s=Number.MAX_VALUE,r=t.length;n<r;++n){for(i=t[n],o=0;o<i.length&&m.code.isWhiteSpace(i.charCodeAt(o));)++o;s>o&&(s=o)}for(void 0!==e?(a=A,"*"===t[1][s]&&(e+=" "),A=e):(1&s&&--s,a=A),n=1,r=t.length;n<r;++n)D=uu(un(t[n].slice(s))),t[n]=J?D.join(""):D;return A=a,t.join("\n")}("/*"+u.value+"*/",e):"/*"+u.value+"*/"}function uo(u,e){var n,r,i,o,s,a,D,l,c,F,C,E;if(u.leadingComments&&u.leadingComments.length>0){if(o=e,U){for(i=u.leadingComments[0],e=[],l=i.extendedRange,c=i.range,(E=((C=X.substring(l[0],c[0])).match(/\n/g)||[]).length)>0?(e.push(K("\n",E)),e.push(un(ui(i)))):(e.push(C),e.push(ui(i))),F=c,n=1,r=u.leadingComments.length;n<r;n++)c=(i=u.leadingComments[n]).range,E=(X.substring(F[1],c[0]).match(/\n/g)||[]).length,e.push(K("\n",E)),e.push(un(ui(i))),F=c;E=(X.substring(c[1],l[1]).match(/\n/g)||[]).length,e.push(K("\n",E))}else for(i=u.leadingComments[0],e=[],T&&u.type===t.Program&&0===u.body.length&&e.push("\n"),e.push(ui(i)),Y(uu(e).toString())||e.push("\n"),n=1,r=u.leadingComments.length;n<r;++n)Y(uu(D=[ui(i=u.leadingComments[n])]).toString())||D.push("\n"),e.push(un(D));e.push(un(o))}if(u.trailingComments)if(U)l=(i=u.trailingComments[0]).extendedRange,c=i.range,(E=((C=X.substring(l[0],c[0])).match(/\n/g)||[]).length)>0?(e.push(K("\n",E)),e.push(un(ui(i)))):(e.push(C),e.push(ui(i)));else for(n=0,s=!Y(uu(e).toString()),a=K(" ",function(u){var e;for(e=u.length-1;e>=0&&!m.code.isLineTerminator(u.charCodeAt(e));--e);return u.length-1-e}(uu([A,e,p]).toString())),r=u.trailingComments.length;n<r;++n)i=u.trailingComments[n],s?(e=0===n?[e,p]:[e,a]).push(ui(i,a)):e=[e,un(ui(i))],n===r-1||Y(uu(e).toString())||(e=[e,"\n"]);return e}function us(u,e,t){var n,r=0;for(n=u;n<e;n++)"\n"===X[n]&&r++;for(n=1;n<r;n++)t.push(P)}function ua(u,e,t){return e<t?["(",u,")"]:u}function uD(u){var e,t,n;for(e=1,t=(n=u.split(/\r\n|\n/)).length;e<t;e++)n[e]=P+A+n[e];return n}function ul(){}function uA(u){return uu(u.name,u)}function up(u,e){return u.async?"async"+(e?ue():R):""}function uc(u){return u.generator&&!j.moz.starlessGenerator?"*"+R:""}function uF(u){var e=u.value,t="";return e.async&&(t+=up(e,!u.computed)),e.generator&&(t+=uc(e)?"*":""),t}(a=Array.isArray)||(a=function(u){return"[object Array]"===Object.prototype.toString.call(u)}),ul.prototype.maybeBlock=function(u,e){var n,r,i=this;return(r=!j.comment||!u.leadingComments,u.type===t.BlockStatement&&r)?[R,this.generateStatement(u,e)]:u.type===t.EmptyStatement&&r?";":(ur(function(){n=[P,un(i.generateStatement(u,e))]}),n)},ul.prototype.maybeBlockSuffix=function(u,e){var n=Y(uu(e).toString());return u.type!==t.BlockStatement||j.comment&&u.leadingComments||n?n?[e,A]:[e,P,A]:[e,R]},ul.prototype.generatePattern=function(u,e,n){return u.type===t.Identifier?uA(u):this.generateExpression(u,e,n)},ul.prototype.generateFunctionParams=function(u){var e,r,i,o;if(o=!1,u.type!==t.ArrowFunctionExpression||u.rest||u.defaults&&0!==u.defaults.length||1!==u.params.length||u.params[0].type!==t.Identifier){for((i=u.type===t.ArrowFunctionExpression?[up(u,!1)]:[]).push("("),u.defaults&&(o=!0),e=0,r=u.params.length;e<r;++e)o&&u.defaults[e]?i.push(this.generateAssignment(u.params[e],u.defaults[e],"=",n.Assignment,7)):i.push(this.generatePattern(u.params[e],n.Assignment,7)),e+1<r&&i.push(","+R);u.rest&&(u.params.length&&i.push(","+R),i.push("..."),i.push(uA(u.rest))),i.push(")")}else i=[up(u,!0),uA(u.params[0])];return i},ul.prototype.generateFunctionBody=function(u){var e,r;return e=this.generateFunctionParams(u),u.type===t.ArrowFunctionExpression&&(e.push(R),e.push("=>")),u.expression?(e.push(R),"{"===(r=this.generateExpression(u.body,n.Assignment,7)).toString().charAt(0)&&(r=["(",r,")"]),e.push(r)):e.push(this.maybeBlock(u.body,9)),e},ul.prototype.generateIterationForStatement=function(u,e,r){var i=["for"+R+(e.await?"await"+R:"")+"("],o=this;return ur(function(){e.left.type===t.VariableDeclaration?ur(function(){i.push(e.left.kind+ue()),i.push(o.generateStatement(e.left.declarations[0],0))}):i.push(o.generateExpression(e.left,n.Call,7)),i=ut(i,u),i=[ut(i,o.generateExpression(e.right,n.Sequence+ +("of"===u),7)),")"]}),i.push(this.maybeBlock(e.body,r)),i},ul.prototype.generatePropertyKey=function(u,e){var t=[];return e&&t.push("["),t.push(this.generateExpression(u,n.Assignment,7)),e&&t.push("]"),t},ul.prototype.generateAssignment=function(u,e,t,r,i){return n.Assignment<r&&(i|=1),ua([this.generateExpression(u,n.Call,i),R+t+R,this.generateExpression(e,n.Assignment,i)],n.Assignment,r)},ul.prototype.semicolon=function(u){return!L&&32&u?"":";"},ul.Statement={BlockStatement:function(u,e){var t,n,r=["{",P],i=this;return ur(function(){var o,s,a,D;for(0===u.body.length&&U&&(t=u.range)[1]-t[0]>2&&("\n"===(n=X.substring(t[0]+1,t[1]-1))[0]&&(r=["{"]),r.push(n)),D=1,8&e&&(D|=16),o=0,s=u.body.length;o<s;++o)U&&(0===o&&(u.body[0].leadingComments&&(t=u.body[0].leadingComments[0].extendedRange,"\n"===(n=X.substring(t[0],t[1]))[0]&&(r=["{"])),u.body[0].leadingComments||us(u.range[0],u.body[0].range[0],r)),!(o>0)||u.body[o-1].trailingComments||u.body[o].leadingComments||us(u.body[o-1].range[1],u.body[o].range[0],r)),o===s-1&&(D|=32),a=u.body[o].leadingComments&&U?i.generateStatement(u.body[o],D):un(i.generateStatement(u.body[o],D)),r.push(a),!Y(uu(a).toString())&&(U&&o<s-1&&u.body[o+1].leadingComments||r.push(P)),U&&o===s-1&&!u.body[o].trailingComments&&us(u.body[o].range[1],u.range[1],r)}),r.push(un("}")),r},StaticBlock:function(u,e){var t=this.BlockStatement(u,e);return t.unshift("static "),t},BreakStatement:function(u,e){return u.label?"break "+u.label.name+this.semicolon(e):"break"+this.semicolon(e)},ContinueStatement:function(u,e){return u.label?"continue "+u.label.name+this.semicolon(e):"continue"+this.semicolon(e)},ClassBody:function(u,e){var t=["{",P],r=this;return ur(function(e){var i,o;for(i=0,o=u.body.length;i<o;++i)t.push(e),t.push(r.generateExpression(u.body[i],n.Sequence,7)),i+1<o&&t.push(P)}),Y(uu(t).toString())||t.push(P),t.push(A),t.push("}"),t},ClassDeclaration:function(u,e){var t,r;return t=["class"],u.id&&(t=ut(t,this.generateExpression(u.id,n.Sequence,7))),u.superClass&&(r=ut("extends",["(",this.generateExpression(u.superClass,n.Assignment,7),")"]),t=ut(t,r)),t.push(R),t.push(this.generateStatement(u.body,33)),t},DirectiveStatement:function(u,e){return j.raw&&u.raw?u.raw+this.semicolon(e):function(u){var e,t,n,r;for(e=0,r="double"===q?'"':"'",t=u.length;e<t;++e){if(39===(n=u.charCodeAt(e))){r='"';break}if(34===n){r="'";break}92===n&&++e}return r+u+r}(u.directive)+this.semicolon(e)},DoWhileStatement:function(u,e){var t=ut("do",this.maybeBlock(u.body,1));return ut(t=this.maybeBlockSuffix(u.body,t),["while"+R+"(",this.generateExpression(u.test,n.Sequence,7),")"+this.semicolon(e)])},CatchClause:function(u,e){var t,r=this;return ur(function(){var e;t=["catch"+(u.param?R+"(":"")],u.param&&(t=t.concat([r.generateExpression(u.param,n.Sequence,7),")"])),u.guard&&(e=r.generateExpression(u.guard,n.Sequence,7),t.splice(2,0," if ",e))}),t.push(this.maybeBlock(u.body,1)),t},DebuggerStatement:function(u,e){return"debugger"+this.semicolon(e)},EmptyStatement:function(u,e){return";"},ExportDefaultDeclaration:function(u,t){var r=["export"];return r=ut(r,"default"),r=e(u.declaration)?ut(r,this.generateStatement(u.declaration,32&t?33:1)):ut(r,this.generateExpression(u.declaration,n.Assignment,7)+this.semicolon(t))},ExportNamedDeclaration:function(u,e){var r,i=["export"],o=this;return(r=32&e?33:1,u.declaration)?ut(i,this.generateStatement(u.declaration,r)):(u.specifiers&&(0===u.specifiers.length?i=ut(i,"{"+R+"}"):u.specifiers[0].type===t.ExportBatchSpecifier?i=ut(i,this.generateExpression(u.specifiers[0],n.Sequence,7)):(i=ut(i,"{"),ur(function(e){var t,r;for(i.push(P),t=0,r=u.specifiers.length;t<r;++t)i.push(e),i.push(o.generateExpression(u.specifiers[t],n.Sequence,7)),t+1<r&&i.push(","+P)}),Y(uu(i).toString())||i.push(P),i.push(A+"}")),u.source?i=ut(i,["from"+R,this.generateExpression(u.source,n.Sequence,7),...this.ImportExportAssertions(u.assertions,n.Sequence,7),...this.ImportExportAttributes(u.attributes,n.Sequence,7),this.semicolon(e)]):i.push(this.semicolon(e))),i)},ExportAllDeclaration:function(u,e){return["export"+R,"*"+R,u.exported?"as "+u.exported.name+" ":"","from"+R,this.generateExpression(u.source,n.Sequence,7),...this.ImportExportAssertions(u.assertions),...this.ImportExportAttributes(u.attributes),this.semicolon(e)]},ExpressionStatement:function(u,e){var r,i,o,s;return 123===(i=uu(r=[this.generateExpression(u.expression,n.Sequence,263)]).toString()).charCodeAt(0)||"class"===i.slice(0,5)&&(123===(o=i.charCodeAt(5))||m.code.isWhiteSpace(o)||m.code.isLineTerminator(o))||"function"===i.slice(0,8)&&(40===(s=i.charCodeAt(8))||m.code.isWhiteSpace(s)||42===s||m.code.isLineTerminator(s))||function(u){var e,t,n;if("async"!==u.slice(0,5)||!m.code.isWhiteSpace(u.charCodeAt(5)))return!1;for(t=6,n=u.length;t<n&&m.code.isWhiteSpace(u.charCodeAt(t));++t);return t!==n&&"function"===u.slice(t,t+8)&&(40===(e=u.charCodeAt(t+8))||m.code.isWhiteSpace(e)||42===e||m.code.isLineTerminator(e))}(i)||N&&16&e&&u.expression.type===t.Literal&&"string"==typeof u.expression.value?r=["(",r,")"+this.semicolon(e)]:r.push(this.semicolon(e)),r},ImportExportAttributes:function(u){if(!u||0===u.length)return[];for(var e=[R,"with",R,"{",R],t=0;t<u.length;t++){t>0&&e.push(","+R);var r=u[t];if("ImportAttribute"!==r.type)throw Error("attribute type must be ImportAttribute");e.push(this.generateExpression(r.key,n.Sequence,7)),e.push(":"+R),e.push(this.generateExpression(r.value,n.Sequence,7))}return e.push(R),e.push("}"),e},ImportExportAssertions:function(u){if(!u||0===u.length)return[];for(var e=[R,"assert",R,"{",R],t=0;t<u.length;t++){t>0&&e.push(","+R);var r=u[t];if("ImportAttribute"!==r.type)throw Error("Assertion type must be ImportAttribute");e.push(this.generateExpression(r.key,n.Sequence,7)),e.push(":"+R),e.push(this.generateExpression(r.value,n.Sequence,7))}return e.push(R),e.push("}"),e},ImportDeclaration:function(u,e){var r,i,o=this;return 0===u.specifiers.length?["import",R,this.generateExpression(u.source,n.Sequence,7),...this.ImportExportAssertions(u.assertions),...this.ImportExportAttributes(u.attributes),this.semicolon(e)]:(r=["import"],i=0,u.specifiers[i].type===t.ImportDefaultSpecifier&&(r=ut(r,[this.generateExpression(u.specifiers[i],n.Sequence,7)]),++i),u.specifiers[i]&&(0!==i&&r.push(","),u.specifiers[i].type===t.ImportNamespaceSpecifier?r=ut(r,[R,this.generateExpression(u.specifiers[i],n.Sequence,7)]):(r.push(R+"{"),u.specifiers.length-i==1?(r.push(R),r.push(this.generateExpression(u.specifiers[i],n.Sequence,7)),r.push(R+"}"+R)):(ur(function(e){var t,s;for(r.push(P),t=i,s=u.specifiers.length;t<s;++t)r.push(e),r.push(o.generateExpression(u.specifiers[t],n.Sequence,7)),t+1<s&&r.push(","+P)}),Y(uu(r).toString())||r.push(P),r.push(A+"}"+R)))),r=ut(r,["from"+R,this.generateExpression(u.source,n.Sequence,7),...this.ImportExportAssertions(u.assertions),...this.ImportExportAttributes(u.attributes),this.semicolon(e)]))},VariableDeclarator:function(u,e){var t=1&e?7:6;return u.init?[this.generateExpression(u.id,n.Assignment,t),R,"=",R,this.generateExpression(u.init,n.Assignment,t)]:this.generatePattern(u.id,n.Assignment,t)},VariableDeclaration:function(u,e){var t,n,r,i,o,s=this;function a(){for(i=u.declarations[0],j.comment&&i.leadingComments?(t.push("\n"),t.push(un(s.generateStatement(i,o)))):(t.push(ue()),t.push(s.generateStatement(i,o))),n=1,r=u.declarations.length;n<r;++n)i=u.declarations[n],j.comment&&i.leadingComments?(t.push(","+P),t.push(un(s.generateStatement(i,o)))):(t.push(","+R),t.push(s.generateStatement(i,o)))}return t=[u.kind],o=1&e?1:0,u.declarations.length>1?ur(a):a(),t.push(this.semicolon(e)),t},ThrowStatement:function(u,e){return[ut("throw",this.generateExpression(u.argument,n.Sequence,7)),this.semicolon(e)]},TryStatement:function(u,e){var t,n,r,i;if(t=["try",this.maybeBlock(u.block,1)],t=this.maybeBlockSuffix(u.block,t),u.handlers)for(n=0,r=u.handlers.length;n<r;++n)t=ut(t,this.generateStatement(u.handlers[n],1)),(u.finalizer||n+1!==r)&&(t=this.maybeBlockSuffix(u.handlers[n].body,t));else{for(n=0,r=(i=u.guardedHandlers||[]).length;n<r;++n)t=ut(t,this.generateStatement(i[n],1)),(u.finalizer||n+1!==r)&&(t=this.maybeBlockSuffix(i[n].body,t));if(u.handler)if(a(u.handler))for(n=0,r=u.handler.length;n<r;++n)t=ut(t,this.generateStatement(u.handler[n],1)),(u.finalizer||n+1!==r)&&(t=this.maybeBlockSuffix(u.handler[n].body,t));else t=ut(t,this.generateStatement(u.handler,1)),u.finalizer&&(t=this.maybeBlockSuffix(u.handler.body,t))}return u.finalizer&&(t=ut(t,["finally",this.maybeBlock(u.finalizer,1)])),t},SwitchStatement:function(u,e){var t,r,i,o,s,a=this;if(ur(function(){t=["switch"+R+"(",a.generateExpression(u.discriminant,n.Sequence,7),")"+R+"{"+P]}),u.cases)for(i=0,s=1,o=u.cases.length;i<o;++i)i===o-1&&(s|=32),r=un(this.generateStatement(u.cases[i],s)),t.push(r),Y(uu(r).toString())||t.push(P);return t.push(un("}")),t},SwitchCase:function(u,e){var r,i,o,s,a,D=this;return ur(function(){for(r=u.test?[ut("case",D.generateExpression(u.test,n.Sequence,7)),":"]:["default:"],o=0,(s=u.consequent.length)&&u.consequent[0].type===t.BlockStatement&&(i=D.maybeBlock(u.consequent[0],1),r.push(i),o=1),o===s||Y(uu(r).toString())||r.push(P),a=1;o<s;++o)o===s-1&&32&e&&(a|=32),i=un(D.generateStatement(u.consequent[o],a)),r.push(i),o+1===s||Y(uu(i).toString())||r.push(P)}),r},IfStatement:function(u,e){var r,i,o=this;return ur(function(){r=["if"+R+"(",o.generateExpression(u.test,n.Sequence,7),")"]}),i=1,32&e&&(i|=32),u.alternate?(r.push(this.maybeBlock(u.consequent,1)),r=this.maybeBlockSuffix(u.consequent,r),r=u.alternate.type===t.IfStatement?ut(r,["else ",this.generateStatement(u.alternate,i)]):ut(r,ut("else",this.maybeBlock(u.alternate,i)))):r.push(this.maybeBlock(u.consequent,i)),r},ForStatement:function(u,e){var r,i=this;return ur(function(){r=["for"+R+"("],u.init?u.init.type===t.VariableDeclaration?r.push(i.generateStatement(u.init,0)):(r.push(i.generateExpression(u.init,n.Sequence,6)),r.push(";")):r.push(";"),u.test&&(r.push(R),r.push(i.generateExpression(u.test,n.Sequence,7))),r.push(";"),u.update&&(r.push(R),r.push(i.generateExpression(u.update,n.Sequence,7))),r.push(")")}),r.push(this.maybeBlock(u.body,32&e?33:1)),r},ForInStatement:function(u,e){return this.generateIterationForStatement("in",u,32&e?33:1)},ForOfStatement:function(u,e){return this.generateIterationForStatement("of",u,32&e?33:1)},LabeledStatement:function(u,e){return[u.label.name+":",this.maybeBlock(u.body,32&e?33:1)]},Program:function(u,e){var t,n,r,i,o;for(r=0,i=u.body.length,t=[T&&i>0?"\n":""],o=17;r<i;++r)T||r!==i-1||(o|=32),U&&(0!==r||u.body[0].leadingComments||us(u.range[0],u.body[r].range[0],t),!(r>0)||u.body[r-1].trailingComments||u.body[r].leadingComments||us(u.body[r-1].range[1],u.body[r].range[0],t)),n=un(this.generateStatement(u.body[r],o)),t.push(n),r+1<i&&!Y(uu(n).toString())&&(U&&u.body[r+1].leadingComments||t.push(P)),U&&r===i-1&&!u.body[r].trailingComments&&us(u.body[r].range[1],u.range[1],t);return t},FunctionDeclaration:function(u,e){return[up(u,!0),"function",uc(u)||ue(),u.id?uA(u.id):"",this.generateFunctionBody(u)]},ReturnStatement:function(u,e){return u.argument?[ut("return",this.generateExpression(u.argument,n.Sequence,7)),this.semicolon(e)]:["return"+this.semicolon(e)]},WhileStatement:function(u,e){var t,r=this;return ur(function(){t=["while"+R+"(",r.generateExpression(u.test,n.Sequence,7),")"]}),t.push(this.maybeBlock(u.body,32&e?33:1)),t},WithStatement:function(u,e){var t,r=this;return ur(function(){t=["with"+R+"(",r.generateExpression(u.object,n.Sequence,7),")"]}),t.push(this.maybeBlock(u.body,32&e?33:1)),t}},H(ul.prototype,ul.Statement),ul.Expression={PrivateName:function(u){return u.name},SequenceExpression:function(u,e,t){var r,i,o;for(n.Sequence<e&&(t|=1),r=[],i=0,o=u.expressions.length;i<o;++i)r.push(this.generateExpression(u.expressions[i],n.Assignment,t)),i+1<o&&r.push(","+R);return ua(r,n.Sequence,e)},AssignmentExpression:function(u,e,t){return this.generateAssignment(u.left,u.right,u.operator,e,t)},ArrowFunctionExpression:function(u,e,t){return ua(this.generateFunctionBody(u),n.ArrowFunction,e)},ConditionalExpression:function(u,e,t){return n.Conditional<e&&(t|=1),ua([this.generateExpression(u.test,n.LogicalOR,t),R+"?"+R,this.generateExpression(u.consequent,n.Assignment,t),R+":"+R,this.generateExpression(u.alternate,n.Assignment,t)],n.Conditional,e)},LogicalExpression:function(u,e,t){return this.BinaryExpression(u,e,t)},BinaryExpression:function(u,e,t){var r,i,o,s,a,D;switch(i=s=z[u.operator],o=s+1,u.operator){case"**":i=n.Postfix,o=s;break;case"??":("||"===u.left.operator||"&&"===u.left.operator)&&(i=z[u.left.operator]+1),("||"===u.right.operator||"&&"===u.right.operator)&&(o=z[u.right.operator]+1);break;case"||":"??"===u.left.operator&&(i=z[u.left.operator]+1)}return(s<e&&(t|=1),r=47===(D=(a=this.generateExpression(u.left,i,t)).toString()).charCodeAt(D.length-1)&&m.code.isIdentifierPartES5(u.operator.charCodeAt(0))?[a,ue(),u.operator]:ut(a,u.operator),a=this.generateExpression(u.right,o,t),"/"===u.operator&&"/"===a.toString().charAt(0)||"<"===u.operator.slice(-1)&&"!--"===a.toString().slice(0,3)?(r.push(ue()),r.push(a)):r=ut(r,a),"in"!==u.operator||1&t)?ua(r,s,e):["(",r,")"]},CallExpression:function(u,e,r){var i,o,s;for(i=u.callee.type===t.FunctionExpression?["(",this.generateExpression(u.callee,n.Call,3),")"]:[this.generateExpression(u.callee,n.Call,3)],u.optional&&i.push("?."),i.push("("),o=0,s=u.arguments.length;o<s;++o)i.push(this.generateExpression(u.arguments[o],n.Assignment,519)),o+1<s&&i.push(","+R);return(i.push(")"),2&r)?ua(i,n.Call,e):["(",i,")"]},ChainExpression:function(u,e,t){var n=u.expression;return this[n.type](n,e,t)},NewExpression:function(u,e,t){var r,i,o,s;if(i=u.arguments.length,s=4&t&&!O&&0===i?5:1,r=ut("new",this.generateExpression(u.callee,n.New,s)),!(4&t)||O||i>0){for(r.push("("),o=0;o<i;++o)r.push(this.generateExpression(u.arguments[o],n.Assignment,7)),o+1<i&&r.push(","+R);r.push(")")}return ua(r,n.New,e)},MemberExpression:function(u,e,r){var i,o;return(i="ChainExpression"===u.object.type&&u.object.expression.optional?[this.generateExpression(u.object,n.Member,2&r?3:1)]:[this.generateExpression(u.object,n.Call,2&r?3:1)],u.computed?(u.optional&&i.push("?."),i.push("["),i.push(this.generateExpression(u.property,n.Sequence,2&r?7:5)),i.push("]")):(u.object.type===t.Literal&&"number"==typeof u.object.value&&0>(o=uu(i).toString()).indexOf(".")&&!/[eExX]/.test(o)&&m.code.isDecimalDigit(o.charCodeAt(o.length-1))&&!(o.length>=2&&48===o.charCodeAt(0))&&i.push("."),i.push(u.optional?"?.":"."),i.push(uA(u.property))),e===n.Member)?ua(i,n.OptionalMember,e):ua(i,n.Member,e)},MetaProperty:function(u,e,r){var i;return i=u.meta&&"string"==typeof u.meta.type&&u.meta.type===t.Identifier?u.meta.name:u.meta,ua([i,".",u.property&&"string"==typeof u.property.type&&u.property.type===t.Identifier?u.property.name:u.property],n.Member,e)},UnaryExpression:function(u,e,t){var r,i,o,s,a;return i=this.generateExpression(u.argument,n.Unary,7),""===R?r=ut(u.operator,i):(r=[u.operator],u.operator.length>2?r=ut(r,i):(a=(s=uu(r).toString()).charCodeAt(s.length-1),o=i.toString().charCodeAt(0),((43===a||45===a)&&a===o||m.code.isIdentifierPartES5(a)&&m.code.isIdentifierPartES5(o))&&r.push(ue()),r.push(i))),ua(r,n.Unary,e)},YieldExpression:function(u,e,t){var r;return r=u.delegate?"yield*":"yield",u.argument&&(r=ut(r,this.generateExpression(u.argument,n.Yield,7))),ua(r,n.Yield,e)},AwaitExpression:function(u,e,t){return ua(ut(u.all?"await*":"await",this.generateExpression(u.argument,n.Await,7)),n.Await,e)},UpdateExpression:function(u,e,t){return u.prefix?ua([u.operator,this.generateExpression(u.argument,n.Unary,7)],n.Unary,e):ua([this.generateExpression(u.argument,n.Postfix,7),u.operator],n.Postfix,e)},FunctionExpression:function(u,e,t){var n=[up(u,!0),"function"];return u.id?(n.push(uc(u)||ue()),n.push(uA(u.id))):n.push(uc(u)||R),n.push(this.generateFunctionBody(u)),n},ArrayPattern:function(u,e,t){return this.ArrayExpression(u,e,t,!0)},ArrayExpression:function(u,e,t,r){var i,o,s=this;return u.elements.length?(i=["[",(o=!r&&u.elements.length>1)?P:""],ur(function(e){var t,r;for(t=0,r=u.elements.length;t<r;++t)u.elements[t]?(i.push(o?e:""),i.push(s.generateExpression(u.elements[t],n.Assignment,775))):(o&&i.push(e),t+1===r&&i.push(",")),t+1<r&&i.push(","+(o?P:R))}),o&&!Y(uu(i).toString())&&i.push(P),i.push(o?A:""),i.push("]"),i):"[]"},ClassExpression:function(u,e,t){var r,i;return r=["class"],u.id&&(r=ut(r,this.generateExpression(u.id,n.Sequence,7))),u.superClass&&(i=ut("extends",["(",this.generateExpression(u.superClass,n.Assignment,7),")"]),r=ut(r,i)),r.push(R),r.push(this.generateStatement(u.body,33)),r},MethodDefinition:function(u,e,t){var n,r;return n=u.static?["static"+R]:[],r="get"===u.kind||"set"===u.kind?[ut(u.kind,this.generatePropertyKey(u.key,u.computed)),this.generateFunctionBody(u.value)]:[uF(u),this.generatePropertyKey(u.key,u.computed),this.generateFunctionBody(u.value)],ut(n,r)},Property:function(u,e,t){return"get"===u.kind||"set"===u.kind?[u.kind,ue(),this.generatePropertyKey(u.key,u.computed),this.generateFunctionBody(u.value)]:"init"===u.kind&&!u.method&&u.shorthand?this.generatePattern(u.value,n.Assignment,7):u.shorthand?this.generatePropertyKey(u.key,u.computed):u.method?[uF(u),this.generatePropertyKey(u.key,u.computed),this.generateFunctionBody(u.value)]:[this.generatePropertyKey(u.key,u.computed),":"+R,this.generateExpression(u.value,n.Assignment,7)]},ObjectExpression:function(u,e,t){var r,i,o,s=this;return u.properties.length?(r=u.properties.length>1,ur(function(){o=s.generateExpression(u.properties[0],n.Sequence,7)}),r||$(uu(o).toString()))?(ur(function(e){var t,a;if(i=["{",P,e,o],r)for(i.push(","+P),t=1,a=u.properties.length;t<a;++t)i.push(e),i.push(s.generateExpression(u.properties[t],n.Sequence,7)),t+1<a&&i.push(","+P)}),Y(uu(i).toString())||i.push(P),i.push(A),i.push("}"),i):["{",R,o,R,"}"]:"{}"},AssignmentPattern:function(u,e,t){return this.generateAssignment(u.left,u.right,"=",e,t)},ObjectPattern:function(u,e,r){var i,o,s,a,D,l=this;if(!u.properties.length)return"{}";if(a=!1,1===u.properties.length)(D=u.properties[0]).value&&D.value.type!==t.Identifier&&(a=!0);else for(o=0,s=u.properties.length;o<s;++o)if(!(D=u.properties[o]).shorthand){a=!0;break}return i=["{",a?P:""],ur(function(e){var t,r;for(t=0,r=u.properties.length;t<r;++t)i.push(a?e:""),i.push(l.generateExpression(u.properties[t],n.Sequence,7)),t+1<r&&i.push(","+(a?P:R))}),a&&!Y(uu(i).toString())&&i.push(P),i.push(a?A:""),i.push("}"),i},ThisExpression:function(u,e,t){return"this"},Super:function(u,e,t){return"super"},Identifier:function(u,e,t){return uA(u)},Import:function(u,e,t){return"import"},ImportDefaultSpecifier:function(u,e,t){return uA(u.id||u.local)},ImportNamespaceSpecifier:function(u,e,t){var n=["*"],r=u.id||u.local;return r&&n.push(R+"as"+ue()+uA(r)),n},ImportSpecifier:function(u,e,t){var n=u.imported,r=[n.name],i=u.local;return i&&i.name!==n.name&&r.push(ue()+"as"+ue()+uA(i)),r},ExportSpecifier:function(u,e,t){var n=u.local,r=[n.name],i=u.exported;return i&&i.name!==n.name&&r.push(ue()+"as"+ue()+uA(i)),r},Literal:function(u,e,n){var r;if(u.hasOwnProperty("raw")&&W&&j.raw)try{if((r=W(u.raw).body[0].expression).type===t.Literal&&r.value===u.value)return u.raw}catch(u){}return null===u.value?"null":"string"==typeof u.value?function(u){var e,t,n,r,i,o="",s=0,a=0;for(e=0,t=u.length;e<t;++e){if(39===(n=u.charCodeAt(e)))++s;else if(34===n)++a;else if(47===n&&h)o+="\\";else if(m.code.isLineTerminator(n)||92===n){o+=function(u){if(92===u)return"\\\\";if(10===u)return"\\n";if(13===u)return"\\r";if(8232===u)return"\\u2028";if(8233===u)return"\\u2029";throw Error("Incorrectly classified character")}(n);continue}else if(!m.code.isIdentifierPartES5(n)&&(h&&n<32||!h&&!M&&(n<32||n>126))){o+=function(u,e){var t;return 8===u?"\\b":12===u?"\\f":9===u?"\\t":(t=u.toString(16).toUpperCase(),h||u>255)?"\\u"+"0000".slice(t.length)+t:0!==u||m.code.isDecimalDigit(e)?11===u?"\\x0B":"\\x"+"00".slice(t.length)+t:"\\0"}(n,u.charCodeAt(e+1));continue}o+=String.fromCharCode(n)}if(i=(r=!("double"===q||"auto"===q&&a<s))?"'":'"',!(r?s:a))return i+o+i;for(e=0,u=o,o=i,t=u.length;e<t;++e)(39===(n=u.charCodeAt(e))&&r||34===n&&!r)&&(o+="\\"),o+=String.fromCharCode(n);return o+i}(u.value):"number"==typeof u.value?function(u){var e,t,n,r,i;if(u!=u)throw Error("Numeric literal whose value is NaN");if(u<0||0===u&&1/u<0)throw Error("Numeric literal whose value is negative");if(u===1/0)return h?"null":d?"1e400":"1e+400";if(e=""+u,!d||e.length<3)return e;for(t=e.indexOf("."),h||48!==e.charCodeAt(0)||1!==t||(t=0,e=e.slice(1)),n=e,e=e.replace("e+","e"),r=0,(i=n.indexOf("e"))>0&&(r=+n.slice(i+1),n=n.slice(0,i)),t>=0&&(r-=n.length-t-1,n=+(n.slice(0,t)+n.slice(t+1))+""),i=0;48===n.charCodeAt(n.length+i-1);)--i;return 0!==i&&(r-=i,n=n.slice(0,i)),0!==r&&(n+="e"+r),(n.length<e.length||_&&u>1e12&&Math.floor(u)===u&&(n="0x"+u.toString(16)).length<e.length)&&+n===u&&(e=n),e}(u.value):"boolean"==typeof u.value?u.value?"true":"false":"bigint"==typeof u.value?u.raw:function(u){var e,t,n,r,i,o,s,a;if(t=u.toString(),u.source){if(!(e=t.match(/\/([^/]*)$/)))return t;for(r=0,n=e[1],t="",s=!1,a=!1,i=u.source.length;r<i;++r)o=u.source.charCodeAt(r),a?(t+=Z(o,a),a=!1):(s?93===o&&(s=!1):47===o?t+="\\":91===o&&(s=!0),t+=Z(o,a),a=92===o);return"/"+t+"/"+n}return t}(u.value)},GeneratorExpression:function(u,e,t){return this.ComprehensionExpression(u,e,t)},ComprehensionExpression:function(u,e,r){var i,o,s,a,D=this;return i=u.type===t.GeneratorExpression?["("]:["["],j.moz.comprehensionExpressionStartsWithAssignment&&(a=this.generateExpression(u.body,n.Assignment,7),i.push(a)),u.blocks&&ur(function(){for(o=0,s=u.blocks.length;o<s;++o)a=D.generateExpression(u.blocks[o],n.Sequence,7),o>0||j.moz.comprehensionExpressionStartsWithAssignment?i=ut(i,a):i.push(a)}),u.filter&&(i=ut(i,"if"+R),a=this.generateExpression(u.filter,n.Sequence,7),i=ut(i,["(",a,")"])),j.moz.comprehensionExpressionStartsWithAssignment||(a=this.generateExpression(u.body,n.Assignment,7),i=ut(i,a)),i.push(u.type===t.GeneratorExpression?")":"]"),i},ComprehensionBlock:function(u,e,r){var i;return i=ut(i=u.left.type===t.VariableDeclaration?[u.left.kind,ue(),this.generateStatement(u.left.declarations[0],0)]:this.generateExpression(u.left,n.Call,7),u.of?"of":"in"),i=ut(i,this.generateExpression(u.right,n.Sequence,7)),["for"+R+"(",i,")"]},SpreadElement:function(u,e,t){return["...",this.generateExpression(u.argument,n.Assignment,7)]},RestElement:function(u,e,t){return["...",this.generatePattern(u.argument,n.Assignment,7)]},SpreadProperty:function(u,e,t){return["...",this.generateExpression(u.argument,n.Assignment,7)]},RestProperty:function(u,e,t){return["...",this.generatePattern(u.argument,n.Assignment,7)]},TaggedTemplateExpression:function(u,e,t){var r=3;return 2&t||(r=1),ua([this.generateExpression(u.tag,n.Call,r),this.generateExpression(u.quasi,n.Primary,4)],n.TaggedTemplate,e)},TemplateElement:function(u,e,t){return u.value.raw},TemplateLiteral:function(u,e,t){var r,i,o;for(i=0,r=["`"],o=u.quasis.length;i<o;++i)r.push(this.generateExpression(u.quasis[i],n.Primary,7)),i+1<o&&(r.push("${"+R),r.push(this.generateExpression(u.expressions[i],n.Sequence,7)),r.push(R+"}"));return r.push("`"),r},ModuleSpecifier:function(u,e,t){return this.Literal(u,e,t)},JSXAttribute:function(u,e,r){var i,o,s=[],a=this.generateExpression(u.name,n.Sequence,{allowIn:!0,allowCall:!0});return s.push(a),u.value&&(s.push("="),s.push(a=u.value.type===t.Literal?(i=u.value.value,o=u.value.raw,i.indexOf('"')>=0||i.indexOf("'")>=0?o:"double"===q?'"'+i+'"':"'"+i+"'"):this.generateExpression(u.value,n.Sequence,{allowIn:!0,allowCall:!0}))),s},JSXClosingElement:function(u,e,t){return["</",u.name?this.generateExpression(u.name,n.Sequence,0):"",">"]},JSXFragment:function(u,e,t){return this.JSXElement(u,e,t)},JSXOpeningFragment:function(u,e,t){return this.JSXOpeningElement(u,e,t)},JSXClosingFragment:function(u,e,t){return this.JSXClosingElement(u,e,t)},JSXElement:function(u,e,r){var i,o,s=[],a=this;256&r||(A+=p);var D=this.generateExpression(u.openingElement||u.openingFragment,n.JSXElement,{allowIn:!0,allowCall:!0});s.push(D);var l=[];return ur(function(e){for(i=0,o=u.children.length;i<o;++i){if(u.children[i].type===t.Literal){(D=u.children[i].raw)&&l.push(D);continue}D=a.generateExpression(u.children[i],n.JSXElement,259),l.push(D)}for(i=0,o=l.length;i<o;++i)s.push(l[i])}),u.closingElement?(D=a.generateExpression(u.closingElement,n.JSXElement,0),s.push(D)):u.closingFragment&&(D=a.generateExpression(u.closingFragment,n.JSXElement,0),s.push(D)),!(256&r)&&(A=A.slice(0,A.length-p.length),$(uu(s).toString())&&(s=512&r?[P+A+p,s]:["("+P+A+p,s,P+A+")"])),s},JSXExpressionContainer:function(u,e,t){return["{",this.generateExpression(u.expression,n.Sequence,3),"}"]},JSXIdentifier:function(u,e,t){return u.name},JSXMemberExpression:function(u,e,t){return[this.generateExpression(u.object,n.Sequence,1),".",this.generateExpression(u.property,n.Sequence,0)]},JSXNamespacedName:function(u,e,t){return[this.generateExpression(u.namespace,n.Sequence,0),":",this.generateExpression(u.name,n.Sequence,0)]},JSXOpeningElement:function(u,e,r){var i=["<"],o=this;if(u.name){var s=this.generateExpression(u.name,n.Sequence,0);i.push(s)}for(var a=[],D=0,l=u.attributes.length;D<l;++D)s=o.generateExpression(u.attributes[D],n.Sequence,3),a.push({expr:u.attributes[D],name:u.attributes[D].name&&u.attributes[D].name.name,fragment:s,multiline:$(uu(s).toString())}),u.attributes.length>3&&u.attributes[D].value&&u.attributes[D].value.type!==t.Literal&&(a[a.length-1].multiline=!0);return ur(function(u){for(var e=0,t=a.length;e<t;++e)e>0&&e%3==0||a[e].multiline?i.push(P+u):i.push(" "),i.push(o.generateExpression(a[e].expr,n.Sequence,3))}),i.push(u.selfClosing?"/>":">"),i},JSXSpreadAttribute:function(u,e,t){return["{...",this.generateExpression(u.argument,n.Sequence,{allowIn:!0,allowCall:!0}),"}"]},JSXText:function(u,e,t){return u.raw},JSXEmptyExpression:function(u,e,t){return[]},PropertyDefinition:function(u,e,t){var r=[];return u.static&&r.push("static "),r.push(this.generatePropertyKey(u.key,u.computed)),u.value&&(r.push(" = "),r.push(this.generateExpression(u.value,n.Assignment))),r.push(";"),r},PrivateIdentifier:function(u,e,t){return uA(u)},ImportExpression:function(u,e,t){var r=["import(",this.generateExpression(u.source,n.Assignment,7)];return u.arguments&&u.arguments.length&&(r.push(", "),r.push(this.generateExpression(u.arguments[0],n.Assignment,7))),r.push(")"),ua(r,n.Call,e)},OptionalMemberExpression:function(u,e,t){return this.MemberExpression(u,e,t)},OptionalCallExpression:function(u,e,t){return this.CallExpression(u,e,t)},ParenthesizedExpression:function(u,e,t){return["(",this.generateExpression(u.expression,e,t),")"]}},H(ul.prototype,ul.Expression),ul.prototype.generateExpression=function(u,e,r){var i,o,s,a;if(o=u.type||t.Property,j.verbatim&&u.hasOwnProperty(j.verbatim))return uu(a="string"==typeof(s=u[j.verbatim])?ua(uD(s),n.Sequence,e):ua(a=uD(s.content),null!=s.precedence?s.precedence:n.Sequence,e),u);try{i=this[o](u,e,r)}catch(u){throw Error("Can not generate expression "+o+". "+u&&u.message)}return j.comment&&(i=uo(u,i)),uu(i,u)},ul.prototype.generateStatement=function(u,e){var n,r;return n=this[u.type](u,e),j.comment&&(n=uo(u,n)),r=uu(n).toString(),u.type!==t.Program||T||""!==P||"\n"!==r.charAt(r.length-1)||(n=J?uu(n).replaceRight(/\s+$/,""):r.replace(/\s+$/,"")),uu(n,u)},G=V().format,f.version="1.6.45",f.generate=function(t,i){var o,s,a=V();return(null!=i?("string"==typeof i.indent&&(a.format.indent.style=i.indent),"number"==typeof i.base&&(a.format.indent.base=i.base),p=(i=Q(a,i)).format.indent.style,A="string"==typeof i.base?i.base:K(p,i.format.indent.base)):A=K(p=(i=a).format.indent.style,i.format.indent.base),h=i.format.json,d=i.format.renumber,_=!h&&i.format.hexadecimal,q=h?"double":i.format.quotes,M=i.format.escapeless,P=i.format.newline,R=i.format.space,i.format.compact&&(P=R=p=A=""),O=i.format.parentheses,L=i.format.semicolons,T=i.format.safeConcatenation,N=i.directive,W=h?null:i.parse,J=i.sourceMap,X=i.sourceCode,U=i.format.preserveBlankLines&&null!==X,j=i,J&&(r=f.browser?u.sourceMap.SourceNode:(E||(E=1,x.SourceMapGenerator=function(){if(c)return b.exports;c=1;if("function"!=typeof u)var u=w()(b,v);return u(function(u,e,t){var n=u("./base64-vlq"),r=u("./util"),i=u("./array-set").ArraySet,o=u("./mapping-list").MappingList;function s(u){u||(u={}),this._file=r.getArg(u,"file",null),this._sourceRoot=r.getArg(u,"sourceRoot",null),this._skipValidation=r.getArg(u,"skipValidation",!1),this._sources=new i,this._names=new i,this._mappings=new o,this._sourcesContents=null}s.prototype._version=3,s.fromSourceMap=function(u){var e=u.sourceRoot,t=new s({file:u.file,sourceRoot:e});return u.eachMapping(function(u){var n={generated:{line:u.generatedLine,column:u.generatedColumn}};null!=u.source&&(n.source=u.source,null!=e&&(n.source=r.relative(e,n.source)),n.original={line:u.originalLine,column:u.originalColumn},null!=u.name&&(n.name=u.name)),t.addMapping(n)}),u.sources.forEach(function(e){var n=u.sourceContentFor(e);null!=n&&t.setSourceContent(e,n)}),t},s.prototype.addMapping=function(u){var e=r.getArg(u,"generated"),t=r.getArg(u,"original",null),n=r.getArg(u,"source",null),i=r.getArg(u,"name",null);this._skipValidation||this._validateMapping(e,t,n,i),null==n||this._sources.has(n)||this._sources.add(n),null==i||this._names.has(i)||this._names.add(i),this._mappings.add({generatedLine:e.line,generatedColumn:e.column,originalLine:null!=t&&t.line,originalColumn:null!=t&&t.column,source:n,name:i})},s.prototype.setSourceContent=function(u,e){var t=u;null!=this._sourceRoot&&(t=r.relative(this._sourceRoot,t)),null!=e?(this._sourcesContents||(this._sourcesContents={}),this._sourcesContents[r.toSetString(t)]=e):this._sourcesContents&&(delete this._sourcesContents[r.toSetString(t)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},s.prototype.applySourceMap=function(u,e,t){var n=e;if(null==e){if(null==u.file)throw Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');n=u.file}var o=this._sourceRoot;null!=o&&(n=r.relative(o,n));var s=new i,a=new i;this._mappings.unsortedForEach(function(e){if(e.source===n&&null!=e.originalLine){var i=u.originalPositionFor({line:e.originalLine,column:e.originalColumn});null!=i.source&&(e.source=i.source,null!=t&&(e.source=r.join(t,e.source)),null!=o&&(e.source=r.relative(o,e.source)),e.originalLine=i.line,e.originalColumn=i.column,null!=i.name&&(e.name=i.name))}var D=e.source;null==D||s.has(D)||s.add(D);var l=e.name;null==l||a.has(l)||a.add(l)},this),this._sources=s,this._names=a,u.sources.forEach(function(e){var n=u.sourceContentFor(e);null!=n&&(null!=t&&(e=r.join(t,e)),null!=o&&(e=r.relative(o,e)),this.setSourceContent(e,n))},this)},s.prototype._validateMapping=function(u,e,t,n){if(!u||!("line"in u)||!("column"in u)||!(u.line>0)||!(u.column>=0)||e||t||n){if(!u||!("line"in u)||!("column"in u)||!e||!("line"in e)||!("column"in e)||!(u.line>0)||!(u.column>=0)||!(e.line>0)||!(e.column>=0)||!t)throw Error("Invalid mapping: "+JSON.stringify({generated:u,source:t,original:e,name:n}))}},s.prototype._serializeMappings=function(){for(var u,e=0,t=1,i=0,o=0,s=0,a=0,D="",l=this._mappings.toArray(),A=0,p=l.length;A<p;A++){if((u=l[A]).generatedLine!==t)for(e=0;u.generatedLine!==t;)D+=";",t++;else if(A>0){if(!r.compareByGeneratedPositions(u,l[A-1]))continue;D+=","}D+=n.encode(u.generatedColumn-e),e=u.generatedColumn,null!=u.source&&(D+=n.encode(this._sources.indexOf(u.source)-a),a=this._sources.indexOf(u.source),D+=n.encode(u.originalLine-1-o),o=u.originalLine-1,D+=n.encode(u.originalColumn-i),i=u.originalColumn,null!=u.name&&(D+=n.encode(this._names.indexOf(u.name)-s),s=this._names.indexOf(u.name)))}return D},s.prototype._generateSourcesContent=function(u,e){return u.map(function(u){if(!this._sourcesContents)return null;null!=e&&(u=r.relative(e,u));var t=r.toSetString(u);return Object.prototype.hasOwnProperty.call(this._sourcesContents,t)?this._sourcesContents[t]:null},this)},s.prototype.toJSON=function(){var u={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(u.file=this._file),null!=this._sourceRoot&&(u.sourceRoot=this._sourceRoot),this._sourcesContents&&(u.sourcesContent=this._generateSourcesContent(u.sources,u.sourceRoot)),u},s.prototype.toString=function(){return JSON.stringify(this)},e.SourceMapGenerator=s}),b.exports}().SourceMapGenerator,x.SourceMapConsumer=function(){if(F)return k.exports;F=1;if("function"!=typeof u)var u=w()(k,v);return u(function(u,e,t){var n=u("./util");function r(e){var t=e;return("string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,""))),null!=t.sections)?new(u("./indexed-source-map-consumer")).IndexedSourceMapConsumer(t):new(u("./basic-source-map-consumer")).BasicSourceMapConsumer(t)}r.fromSourceMap=function(e){return u("./basic-source-map-consumer").BasicSourceMapConsumer.fromSourceMap(e)},r.prototype._version=3,r.prototype.__generatedMappings=null,Object.defineProperty(r.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||(this.__generatedMappings=[],this.__originalMappings=[],this._parseMappings(this._mappings,this.sourceRoot)),this.__generatedMappings}}),r.prototype.__originalMappings=null,Object.defineProperty(r.prototype,"_originalMappings",{get:function(){return this.__originalMappings||(this.__generatedMappings=[],this.__originalMappings=[],this._parseMappings(this._mappings,this.sourceRoot)),this.__originalMappings}}),r.prototype._nextCharIsMappingSeparator=function(u){var e=u.charAt(0);return";"===e||","===e},r.prototype._parseMappings=function(u,e){throw Error("Subclasses must implement _parseMappings")},r.GENERATED_ORDER=1,r.ORIGINAL_ORDER=2,r.prototype.eachMapping=function(u,e,t){switch(t||r.GENERATED_ORDER){case r.GENERATED_ORDER:i=this._generatedMappings;break;case r.ORIGINAL_ORDER:i=this._originalMappings;break;default:throw Error("Unknown order of iteration.")}var i,o=this.sourceRoot;i.map(function(u){var e=u.source;return null!=e&&null!=o&&(e=n.join(o,e)),{source:e,generatedLine:u.generatedLine,generatedColumn:u.generatedColumn,originalLine:u.originalLine,originalColumn:u.originalColumn,name:u.name}}).forEach(u,e||null)},r.prototype.allGeneratedPositionsFor=function(u){var e={source:n.getArg(u,"source"),originalLine:n.getArg(u,"line"),originalColumn:1/0};null!=this.sourceRoot&&(e.source=n.relative(this.sourceRoot,e.source));var t=[],r=this._findMapping(e,this._originalMappings,"originalLine","originalColumn",n.compareByOriginalPositions);if(r>=0)for(var i=this._originalMappings[r];i&&i.originalLine===e.originalLine;)t.push({line:n.getArg(i,"generatedLine",null),column:n.getArg(i,"generatedColumn",null),lastColumn:n.getArg(i,"lastGeneratedColumn",null)}),i=this._originalMappings[--r];return t.reverse()},e.SourceMapConsumer=r}),k.exports}().SourceMapConsumer,x.SourceNode=function(){if(C)return I.exports;C=1;if("function"!=typeof u)var u=w()(I,v);return u(function(u,e,t){var n=u("./source-map-generator").SourceMapGenerator,r=u("./util"),i=/(\r?\n)/,o="$$$isSourceNode$$$";function s(u,e,t,n,r){this.children=[],this.sourceContents={},this.line=null==u?null:u,this.column=null==e?null:e,this.source=null==t?null:t,this.name=null==r?null:r,this[o]=!0,null!=n&&this.add(n)}s.fromStringWithSourceMap=function(u,e,t){var n=new s,o=u.split(i),a=function(){return o.shift()+(o.shift()||"")},D=1,l=0,A=null;return e.eachMapping(function(u){if(null!==A)if(D<u.generatedLine){var e="";p(A,a()),D++,l=0}else{var t=o[0],e=t.substr(0,u.generatedColumn-l);o[0]=t.substr(u.generatedColumn-l),l=u.generatedColumn,p(A,e),A=u;return}for(;D<u.generatedLine;)n.add(a()),D++;if(l<u.generatedColumn){var t=o[0];n.add(t.substr(0,u.generatedColumn)),o[0]=t.substr(u.generatedColumn),l=u.generatedColumn}A=u},this),o.length>0&&(A&&p(A,a()),n.add(o.join(""))),e.sources.forEach(function(u){var i=e.sourceContentFor(u);null!=i&&(null!=t&&(u=r.join(t,u)),n.setSourceContent(u,i))}),n;function p(u,e){if(null===u||void 0===u.source)n.add(e);else{var i=t?r.join(t,u.source):u.source;n.add(new s(u.originalLine,u.originalColumn,i,e,u.name))}}},s.prototype.add=function(u){if(Array.isArray(u))u.forEach(function(u){this.add(u)},this);else if(u[o]||"string"==typeof u)u&&this.children.push(u);else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+u);return this},s.prototype.prepend=function(u){if(Array.isArray(u))for(var e=u.length-1;e>=0;e--)this.prepend(u[e]);else if(u[o]||"string"==typeof u)this.children.unshift(u);else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+u);return this},s.prototype.walk=function(u){for(var e,t=0,n=this.children.length;t<n;t++)(e=this.children[t])[o]?e.walk(u):""!==e&&u(e,{source:this.source,line:this.line,column:this.column,name:this.name})},s.prototype.join=function(u){var e,t,n=this.children.length;if(n>0){for(t=0,e=[];t<n-1;t++)e.push(this.children[t]),e.push(u);e.push(this.children[t]),this.children=e}return this},s.prototype.replaceRight=function(u,e){var t=this.children[this.children.length-1];return t[o]?t.replaceRight(u,e):"string"==typeof t?this.children[this.children.length-1]=t.replace(u,e):this.children.push("".replace(u,e)),this},s.prototype.setSourceContent=function(u,e){this.sourceContents[r.toSetString(u)]=e},s.prototype.walkSourceContents=function(u){for(var e=0,t=this.children.length;e<t;e++)this.children[e][o]&&this.children[e].walkSourceContents(u);for(var n=Object.keys(this.sourceContents),e=0,t=n.length;e<t;e++)u(r.fromSetString(n[e]),this.sourceContents[n[e]])},s.prototype.toString=function(){var u="";return this.walk(function(e){u+=e}),u},s.prototype.toStringWithSourceMap=function(u){var e={code:"",line:1,column:0},t=new n(u),r=!1,i=null,o=null,s=null,a=null;return this.walk(function(u,n){e.code+=u,null!==n.source&&null!==n.line&&null!==n.column?((i!==n.source||o!==n.line||s!==n.column||a!==n.name)&&t.addMapping({source:n.source,original:{line:n.line,column:n.column},generated:{line:e.line,column:e.column},name:n.name}),i=n.source,o=n.line,s=n.column,a=n.name,r=!0):r&&(t.addMapping({generated:{line:e.line,column:e.column}}),i=null,r=!1);for(var D=0,l=u.length;D<l;D++)10===u.charCodeAt(D)?(e.line++,e.column=0,D+1===l?(i=null,r=!1):r&&t.addMapping({source:n.source,original:{line:n.line,column:n.column},generated:{line:e.line,column:e.column},name:n.name})):e.column++}),this.walkSourceContents(function(u,e){t.setSourceContent(u,e)}),{code:e.code,map:t}},e.SourceNode=s}),I.exports}().SourceNode),x).SourceNode),o=function(u){var t;if(t=new ul,e(u))return t.generateStatement(u,1);if(ul.Expression.hasOwnProperty(u.type))return t.generateExpression(u,n.Sequence,7);throw Error("Unknown node type: "+u.type)}(t),J)?(s=o.toStringWithSourceMap({file:i.file,sourceRoot:i.sourceMapRoot}),i.sourceContent&&s.map.setSourceContent(i.sourceMap,i.sourceContent),i.sourceMapWithCode)?s:s.map.toString():(s={code:o.toString(),map:null},i.sourceMapWithCode?s:s.code)},f.attachComments=i.attachComments,f.Precedence=Q({},n),f.browser=!1,f.FORMAT_MINIFY={indent:{style:"",base:0},renumber:!0,hexadecimal:!0,quotes:"auto",escapeless:!0,compact:!0,parentheses:!1,semicolons:!1},f.FORMAT_DEFAULTS=G}(),f)}(),M=(i={__proto__:null,default:e(q)},[q].forEach(function(u){u&&"string"!=typeof u&&!Array.isArray(u)&&Object.keys(u).forEach(function(e){if("default"!==e&&!(e in i)){var t=Object.getOwnPropertyDescriptor(u,e);Object.defineProperty(i,e,t.get?t:{enumerable:!0,get:function(){return u[e]}})}})}),i);export{M as e};
|