rsnext/packages/next/compiled/mini-css-extract-plugin/index.js

1 line
No EOL
22 KiB
JavaScript

module.exports=(()=>{"use strict";var e={798:e=>{e.exports=JSON.parse('{"type":"object","additionalProperties":false,"properties":{"filename":{"anyOf":[{"type":"string"},{"instanceof":"Function"}]},"chunkFilename":{"anyOf":[{"type":"string"},{"instanceof":"Function"}]},"experimentalUseImportModule":{"description":"Enable the experimental importModule approach instead of using child compilers. This uses less memory and is faster.","type":"boolean"},"ignoreOrder":{"type":"boolean"},"insert":{"description":"Inserts `<link>` at the given position (https://github.com/webpack-contrib/mini-css-extract-plugin#insert).","anyOf":[{"type":"string"},{"instanceof":"Function"}]},"attributes":{"description":"Adds custom attributes to tag (https://github.com/webpack-contrib/mini-css-extract-plugin#attributes).","type":"object"},"linkType":{"anyOf":[{"enum":["text/css"]},{"type":"boolean"}]}}}')},105:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:true});t.default=t.pluginSymbol=t.pluginName=void 0;var n=i(286);var r=_interopRequireDefault(i(798));var s=i(958);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o="mini-css-extract-plugin";t.pluginName=o;const a=Symbol(o);t.pluginSymbol=a;const f=/\[chunkhash(?::(\d+))?\]/i;const d=/\[contenthash(?::(\d+))?\]/i;const l=/\[name\]/i;const c="[name].css";const u=new Set([s.MODULE_TYPE]);const h={sources:new Map,runtimeRequirements:new Set};const g=new WeakMap;const p=new WeakMap;class MiniCssExtractPlugin{static getCssModule(e){if(g.has(e)){return g.get(e)}class CssModule extends e.Module{constructor({context:e,identifier:t,identifierIndex:i,content:n,media:r,sourceMap:o,assets:a,assetsInfo:f}){super(s.MODULE_TYPE,e);this.id="";this._context=e;this._identifier=t;this._identifierIndex=i;this.content=n;this.media=r;this.sourceMap=o;this.buildInfo={assets:a,assetsInfo:f};this.buildMeta={}}size(){return this.content.length}identifier(){return`css|${this._identifier}|${this._identifierIndex}`}readableIdentifier(e){return`css ${e.shorten(this._identifier)}${this._identifierIndex?` (${this._identifierIndex})`:""}`}getSourceTypes(){return u}codeGeneration(){return h}nameForCondition(){const e=this._identifier.split("!").pop();const t=e.indexOf("?");if(t>=0){return e.substring(0,t)}return e}updateCacheModule(e){this.content=e.content;this.media=e.media;this.sourceMap=e.sourceMap}needRebuild(){return true}needBuild(e,t){t(null,false)}build(e,t,i,n,r){this.buildInfo={};this.buildMeta={};r()}updateHash(e,t){super.updateHash(e,t);e.update(this.content);e.update(this.media||"");e.update(this.sourceMap?JSON.stringify(this.sourceMap):"")}serialize(e){const{write:t}=e;t(this._context);t(this._identifier);t(this._identifierIndex);t(this.content);t(this.media);t(this.sourceMap);t(this.buildInfo);super.serialize(e)}deserialize(e){super.deserialize(e)}}g.set(e,CssModule);if(e.util&&e.util.serialization&&e.util.serialization.register){e.util.serialization.register(CssModule,"mini-css-extract-plugin/dist/CssModule",null,{serialize(e,t){e.serialize(t)},deserialize(e){const{read:t}=e;const i=t();const n=t();const r=t();const s=t();const o=t();const a=t();const{assets:f,assetsInfo:d}=t();const l=new CssModule({context:i,identifier:n,identifierIndex:r,content:s,media:o,sourceMap:a,assets:f,assetsInfo:d});l.deserialize(e);return l}})}return CssModule}static getCssDependency(e){if(p.has(e)){return p.get(e)}class CssDependency extends e.Dependency{constructor({identifier:e,content:t,media:i,sourceMap:n},r,s){super();this.identifier=e;this.identifierIndex=s;this.content=t;this.media=i;this.sourceMap=n;this.context=r;this.assets=undefined;this.assetsInfo=undefined}getResourceIdentifier(){return`css-module-${this.identifier}-${this.identifierIndex}`}getModuleEvaluationSideEffectsState(){return e.ModuleGraphConnection.TRANSITIVE_ONLY}serialize(e){const{write:t}=e;t(this.identifier);t(this.content);t(this.media);t(this.sourceMap);t(this.context);t(this.identifierIndex);t(this.assets);t(this.assetsInfo);super.serialize(e)}deserialize(e){super.deserialize(e)}}p.set(e,CssDependency);if(e.util&&e.util.serialization&&e.util.serialization.register){e.util.serialization.register(CssDependency,"mini-css-extract-plugin/dist/CssDependency",null,{serialize(e,t){e.serialize(t)},deserialize(e){const{read:t}=e;const i=new CssDependency({identifier:t(),content:t(),media:t(),sourceMap:t()},t(),t());const n=t();const r=t();i.assets=n;i.assetsInfo=r;i.deserialize(e);return i}})}return CssDependency}constructor(e={}){(0,n.validate)(r.default,e,{name:"Mini CSS Extract Plugin",baseDataPath:"options"});this._sortedModulesCache=new WeakMap;this.options=Object.assign({filename:c,ignoreOrder:false,experimentalUseImportModule:false},e);this.runtimeOptions={insert:e.insert,linkType:e.linkType===true||typeof e.linkType==="undefined"?"text/css":e.linkType,attributes:e.attributes};if(!this.options.chunkFilename){const{filename:e}=this.options;if(typeof e!=="function"){const t=e.includes("[name]");const i=e.includes("[id]");const n=e.includes("[chunkhash]");const r=e.includes("[contenthash]");if(n||r||t||i){this.options.chunkFilename=e}else{this.options.chunkFilename=e.replace(/(^|\/)([^/]*(?:\?|$))/,"$1[id].$2")}}else{this.options.chunkFilename="[id].css"}}}apply(e){const t=e.webpack?e.webpack:i(619);if(this.options.experimentalUseImportModule){if(!e.options.experiments){throw new Error("experimentalUseImportModule is only support for webpack >= 5.32.0")}if(typeof e.options.experiments.executeModule==="undefined"){e.options.experiments.executeModule=true}}if(t.util&&t.util.serialization&&t.util.serialization.registerLoader){t.util.serialization.registerLoader(/^mini-css-extract-plugin\//,()=>true)}const n=e.webpack?false:typeof e.resolvers!=="undefined";if(!n){const{splitChunks:t}=e.options.optimization;if(t){if(t.defaultSizeTypes.includes("...")){t.defaultSizeTypes.push(s.MODULE_TYPE)}}}const r=MiniCssExtractPlugin.getCssModule(t);const c=MiniCssExtractPlugin.getCssDependency(t);const u=e.webpack&&e.webpack.NormalModule?e.webpack.NormalModule:i(738);e.hooks.compilation.tap(o,e=>{const t=typeof u.getCompilationHooks!=="undefined"?u.getCompilationHooks(e).loader:e.hooks.normalModuleLoader;t.tap(o,e=>{e[a]={experimentalUseImportModule:this.options.experimentalUseImportModule}})});e.hooks.thisCompilation.tap(o,i=>{class CssModuleFactory{create({dependencies:[e]},t){t(null,new r(e))}}i.dependencyFactories.set(c,new CssModuleFactory);class CssDependencyTemplate{apply(){}}i.dependencyTemplates.set(c,new CssDependencyTemplate);if(n){i.mainTemplate.hooks.renderManifest.tap(o,(t,{chunk:n})=>{const{chunkGraph:r}=i;const a=Array.from(this.getChunkModules(n,r)).filter(e=>e.type===s.MODULE_TYPE);const f=n.filenameTemplate||this.options.filename;if(a.length>0){t.push({render:()=>this.renderContentAsset(e,i,n,a,i.runtimeTemplate.requestShortener),filenameTemplate:f,pathOptions:{chunk:n,contentHashType:s.MODULE_TYPE},identifier:`${o}.${n.id}`,hash:n.contentHash[s.MODULE_TYPE]})}});i.chunkTemplate.hooks.renderManifest.tap(o,(t,{chunk:n})=>{const{chunkGraph:r}=i;const a=Array.from(this.getChunkModules(n,r)).filter(e=>e.type===s.MODULE_TYPE);const f=n.filenameTemplate||this.options.chunkFilename;if(a.length>0){t.push({render:()=>this.renderContentAsset(e,i,n,a,i.runtimeTemplate.requestShortener),filenameTemplate:f,pathOptions:{chunk:n,contentHashType:s.MODULE_TYPE},identifier:`${o}.${n.id}`,hash:n.contentHash[s.MODULE_TYPE]})}})}else{i.hooks.renderManifest.tap(o,(n,{chunk:r})=>{const{chunkGraph:a}=i;const{HotUpdateChunk:f}=t;if(r instanceof f){return}const d=Array.from(this.getChunkModules(r,a)).filter(e=>e.type===s.MODULE_TYPE);const l=r.canBeInitial()?this.options.filename:this.options.chunkFilename;if(d.length>0){n.push({render:()=>this.renderContentAsset(e,i,r,d,i.runtimeTemplate.requestShortener),filenameTemplate:l,pathOptions:{chunk:r,contentHashType:s.MODULE_TYPE},identifier:`${o}.${r.id}`,hash:r.contentHash[s.MODULE_TYPE]})}})}if(n){i.mainTemplate.hooks.hashForChunk.tap(o,(e,t)=>{const{chunkFilename:i}=this.options;if(f.test(i)){e.update(JSON.stringify(t.getChunkMaps(true).hash))}if(d.test(i)){e.update(JSON.stringify(t.getChunkMaps(true).contentHash[s.MODULE_TYPE]||{}))}if(l.test(i)){e.update(JSON.stringify(t.getChunkMaps(true).name))}})}i.hooks.contentHash.tap(o,r=>{const{outputOptions:o,chunkGraph:a}=i;const f=n?Array.from(this.getChunkModules(r,a)).filter(e=>e.type===s.MODULE_TYPE):this.sortModules(i,r,a.getChunkModulesIterableBySourceType(r,s.MODULE_TYPE),i.runtimeTemplate.requestShortener);if(f){const{hashFunction:i,hashDigest:n,hashDigestLength:d}=o;const l=e.webpack?e.webpack.util.createHash:t.util.createHash;const c=l(i);for(const e of f){e.updateHash(c,{chunkGraph:a})}r.contentHash[s.MODULE_TYPE]=c.digest(n).substring(0,d)}});const{Template:a}=t;const{mainTemplate:u}=i;if(n){u.hooks.localVars.tap(o,(e,t)=>{const n=this.getCssChunkObject(t,i);if(Object.keys(n).length>0){return a.asString([e,"","// object to store loaded CSS chunks","var installedCssChunks = {",a.indent(t.ids.map(e=>`${JSON.stringify(e)}: 0`).join(",\n")),"};"])}return e});u.hooks.requireEnsure.tap(o,(e,t,n)=>{const r=this.getCssChunkObject(t,i);if(Object.keys(r).length>0){const i=t.getChunkMaps();const{crossOriginLoading:f}=u.outputOptions;const d=u.getAssetPath(JSON.stringify(this.options.chunkFilename),{hash:`" + ${u.renderCurrentHashCode(n)} + "`,hashWithLength:e=>`" + ${u.renderCurrentHashCode(n,e)} + "`,chunk:{id:'" + chunkId + "',hash:`" + ${JSON.stringify(i.hash)}[chunkId] + "`,hashWithLength(e){const t=Object.create(null);for(const n of Object.keys(i.hash)){if(typeof i.hash[n]==="string"){t[n]=i.hash[n].substring(0,e)}}return`" + ${JSON.stringify(t)}[chunkId] + "`},contentHash:{[s.MODULE_TYPE]:`" + ${JSON.stringify(i.contentHash[s.MODULE_TYPE])}[chunkId] + "`},contentHashWithLength:{[s.MODULE_TYPE]:e=>{const t={};const n=i.contentHash[s.MODULE_TYPE];for(const i of Object.keys(n)){if(typeof n[i]==="string"){t[i]=n[i].substring(0,e)}}return`" + ${JSON.stringify(t)}[chunkId] + "`}},name:`" + (${JSON.stringify(i.name)}[chunkId]||chunkId) + "`},contentHashType:s.MODULE_TYPE});return a.asString([e,"",`// ${o} CSS loading`,`var cssChunks = ${JSON.stringify(r)};`,"if(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);","else if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {",a.indent(["promises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {",a.indent([`var href = ${d};`,`var fullhref = ${u.requireFn}.p + href;`,'var existingLinkTags = document.getElementsByTagName("link");',"for(var i = 0; i < existingLinkTags.length; i++) {",a.indent(["var tag = existingLinkTags[i];",'var dataHref = tag.getAttribute("data-href") || tag.getAttribute("href");','if(tag.rel === "stylesheet" && (dataHref === href || dataHref === fullhref)) return resolve();']),"}",'var existingStyleTags = document.getElementsByTagName("style");',"for(var i = 0; i < existingStyleTags.length; i++) {",a.indent(["var tag = existingStyleTags[i];",'var dataHref = tag.getAttribute("data-href");',"if(dataHref === href || dataHref === fullhref) return resolve();"]),"}",'var linkTag = document.createElement("link");',this.runtimeOptions.attributes?a.asString(Object.entries(this.runtimeOptions.attributes).map(e=>{const[t,i]=e;return`linkTag.setAttribute(${JSON.stringify(t)}, ${JSON.stringify(i)});`})):"",'linkTag.rel = "stylesheet";',this.runtimeOptions.linkType?`linkTag.type = ${JSON.stringify(this.runtimeOptions.linkType)};`:"","var onLinkComplete = function (event) {",a.indent(["// avoid mem leaks.","linkTag.onerror = linkTag.onload = null;","if (event.type === 'load') {",a.indent(["resolve();"]),"} else {",a.indent(["var errorType = event && (event.type === 'load' ? 'missing' : event.type);","var realHref = event && event.target && event.target.href || fullhref;",'var err = new Error("Loading CSS chunk " + chunkId + " failed.\\n(" + realHref + ")");','err.code = "CSS_CHUNK_LOAD_FAILED";',"err.type = errorType;","err.request = realHref;","delete installedCssChunks[chunkId]","linkTag.parentNode.removeChild(linkTag)","reject(err);"]),"}"]),"};","linkTag.onerror = linkTag.onload = onLinkComplete;","linkTag.href = fullhref;",f?a.asString([`if (linkTag.href.indexOf(window.location.origin + '/') !== 0) {`,a.indent(`linkTag.crossOrigin = ${JSON.stringify(f)};`),"}"]):"",typeof this.runtimeOptions.insert!=="undefined"?typeof this.runtimeOptions.insert==="function"?`(${this.runtimeOptions.insert.toString()})(linkTag)`:a.asString([`var target = document.querySelector("${this.runtimeOptions.insert}");`,`target.parentNode.insertBefore(linkTag, target.nextSibling);`]):a.asString(["document.head.appendChild(linkTag);"])]),"}).then(function() {",a.indent(["installedCssChunks[chunkId] = 0;"]),"}));"]),"}"])}return e})}else{const{RuntimeGlobals:e,runtime:n}=t;const r=(e,t)=>{const i={};const{chunkGraph:n}=t;for(const t of e.getAllAsyncChunks()){const e=n.getOrderedChunkModulesIterable(t,s.compareModulesByIdentifier);for(const n of e){if(n.type===s.MODULE_TYPE){i[t.id]=1;break}}}return i};const{RuntimeModule:f}=t;class CssLoadingRuntimeModule extends f{constructor(e,t){super("css loading",10);this.runtimeRequirements=e;this.runtimeOptions=t}generate(){const{chunk:t,runtimeRequirements:i}=this;const{runtimeTemplate:n,outputOptions:{crossOriginLoading:s}}=this.compilation;const o=r(t,this.compilation);const f=i.has(e.ensureChunkHandlers)&&Object.keys(o).length>0;const d=i.has(e.hmrDownloadUpdateHandlers);if(!f&&!d){return null}return a.asString([`var createStylesheet = ${n.basicFunction("chunkId, fullhref, resolve, reject",['var linkTag = document.createElement("link");',this.runtimeOptions.attributes?a.asString(Object.entries(this.runtimeOptions.attributes).map(e=>{const[t,i]=e;return`linkTag.setAttribute(${JSON.stringify(t)}, ${JSON.stringify(i)});`})):"",'linkTag.rel = "stylesheet";',this.runtimeOptions.linkType?`linkTag.type = ${JSON.stringify(this.runtimeOptions.linkType)};`:"",`var onLinkComplete = ${n.basicFunction("event",["// avoid mem leaks.","linkTag.onerror = linkTag.onload = null;","if (event.type === 'load') {",a.indent(["resolve();"]),"} else {",a.indent(["var errorType = event && (event.type === 'load' ? 'missing' : event.type);","var realHref = event && event.target && event.target.href || fullhref;",'var err = new Error("Loading CSS chunk " + chunkId + " failed.\\n(" + realHref + ")");','err.code = "CSS_CHUNK_LOAD_FAILED";',"err.type = errorType;","err.request = realHref;","linkTag.parentNode.removeChild(linkTag)","reject(err);"]),"}"])}`,"linkTag.onerror = linkTag.onload = onLinkComplete;","linkTag.href = fullhref;",s?a.asString([`if (linkTag.href.indexOf(window.location.origin + '/') !== 0) {`,a.indent(`linkTag.crossOrigin = ${JSON.stringify(s)};`),"}"]):"",typeof this.runtimeOptions.insert!=="undefined"?typeof this.runtimeOptions.insert==="function"?`(${this.runtimeOptions.insert.toString()})(linkTag)`:a.asString([`var target = document.querySelector("${this.runtimeOptions.insert}");`,`target.parentNode.insertBefore(linkTag, target.nextSibling);`]):a.asString(["document.head.appendChild(linkTag);"]),"return linkTag;"])};`,`var findStylesheet = ${n.basicFunction("href, fullhref",['var existingLinkTags = document.getElementsByTagName("link");',"for(var i = 0; i < existingLinkTags.length; i++) {",a.indent(["var tag = existingLinkTags[i];",'var dataHref = tag.getAttribute("data-href") || tag.getAttribute("href");','if(tag.rel === "stylesheet" && (dataHref === href || dataHref === fullhref)) return tag;']),"}",'var existingStyleTags = document.getElementsByTagName("style");',"for(var i = 0; i < existingStyleTags.length; i++) {",a.indent(["var tag = existingStyleTags[i];",'var dataHref = tag.getAttribute("data-href");',"if(dataHref === href || dataHref === fullhref) return tag;"]),"}"])};`,`var loadStylesheet = ${n.basicFunction("chunkId",`return new Promise(${n.basicFunction("resolve, reject",[`var href = ${e.require}.miniCssF(chunkId);`,`var fullhref = ${e.publicPath} + href;`,"if(findStylesheet(href, fullhref)) return resolve();","createStylesheet(chunkId, fullhref, resolve, reject);"])});`)}`,f?a.asString(["// object to store loaded CSS chunks","var installedCssChunks = {",a.indent(t.ids.map(e=>`${JSON.stringify(e)}: 0`).join(",\n")),"};","",`${e.ensureChunkHandlers}.miniCss = ${n.basicFunction("chunkId, promises",[`var cssChunks = ${JSON.stringify(o)};`,"if(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);","else if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {",a.indent([`promises.push(installedCssChunks[chunkId] = loadStylesheet(chunkId).then(${n.basicFunction("","installedCssChunks[chunkId] = 0;")}, ${n.basicFunction("e",["delete installedCssChunks[chunkId];","throw e;"])}));`]),"}"])};`]):"// no chunk loading","",d?a.asString(["var oldTags = [];","var newTags = [];",`var applyHandler = ${n.basicFunction("options",[`return { dispose: ${n.basicFunction("",["for(var i = 0; i < oldTags.length; i++) {",a.indent(["var oldTag = oldTags[i];","if(oldTag.parentNode) oldTag.parentNode.removeChild(oldTag);"]),"}","oldTags.length = 0;"])}, apply: ${n.basicFunction("",['for(var i = 0; i < newTags.length; i++) newTags[i].rel = "stylesheet";',"newTags.length = 0;"])} };`])}`,`${e.hmrDownloadUpdateHandlers}.miniCss = ${n.basicFunction("chunkIds, removedChunks, removedModules, promises, applyHandlers, updatedModulesList",["applyHandlers.push(applyHandler);",`chunkIds.forEach(${n.basicFunction("chunkId",[`var href = ${e.require}.miniCssF(chunkId);`,`var fullhref = ${e.publicPath} + href;`,"var oldTag = findStylesheet(href, fullhref);","if(!oldTag) return;",`promises.push(new Promise(${n.basicFunction("resolve, reject",[`var tag = createStylesheet(chunkId, fullhref, ${n.basicFunction("",['tag.as = "style";','tag.rel = "preload";',"resolve();"])}, reject);`,"oldTags.push(oldTag);","newTags.push(tag);"])}));`])});`])}`]):"// no hmr"])}}const d=new WeakSet;const l=(t,r)=>{if(d.has(t)){return}d.add(t);if(typeof this.options.chunkFilename==="string"&&/\[(full)?hash(:\d+)?\]/.test(this.options.chunkFilename)){r.add(e.getFullHash)}r.add(e.publicPath);i.addRuntimeModule(t,new n.GetChunkFilenameRuntimeModule(s.MODULE_TYPE,"mini-css",`${e.require}.miniCssF`,e=>{if(!e.contentHash[s.MODULE_TYPE]){return false}return e.canBeInitial()?this.options.filename:this.options.chunkFilename},true));i.addRuntimeModule(t,new CssLoadingRuntimeModule(r,this.runtimeOptions))};i.hooks.runtimeRequirementInTree.for(e.ensureChunkHandlers).tap(o,l);i.hooks.runtimeRequirementInTree.for(e.hmrDownloadUpdateHandlers).tap(o,l)}})}getChunkModules(e,t){return typeof t!=="undefined"?t.getOrderedChunkModulesIterable(e,s.compareModulesByIdentifier):e.modulesIterable}getCssChunkObject(e,t){const i={};const{chunkGraph:n}=t;for(const t of e.getAllAsyncChunks()){for(const e of this.getChunkModules(t,n)){if(e.type===s.MODULE_TYPE){i[t.id]=1;break}}}return i}sortModules(e,t,i,n){let r=this._sortedModulesCache.get(t);if(r||!i){return r}const s=[...i];const[a]=t.groupsIterable;const f=typeof e.chunkGraph!=="undefined"?"getModulePostOrderIndex":"getModuleIndex2";if(typeof a[f]==="function"){const i=new Map(s.map(e=>[e,new Set]));const a=new Map(s.map(e=>[e,new Map]));const d=Array.from(t.groupsIterable,e=>{const t=s.map(t=>{return{module:t,index:e[f](t)}}).filter(e=>e.index!==undefined).sort((e,t)=>t.index-e.index).map(e=>e.module);for(let n=0;n<t.length;n++){const r=i.get(t[n]);const s=a.get(t[n]);for(let i=n+1;i<t.length;i++){const n=t[i];r.add(n);const o=s.get(n)||new Set;o.add(e);s.set(n,o)}}return t});r=new Set;const l=e=>!r.has(e);while(r.size<s.length){let s=false;let f;let c;for(const e of d){while(e.length>0&&r.has(e[e.length-1])){e.pop()}if(e.length!==0){const t=e[e.length-1];const n=i.get(t);const o=Array.from(n).filter(l);if(!c||c.length>o.length){f=e;c=o}if(o.length===0){r.add(e.pop());s=true;break}}}if(!s){const i=f.pop();if(!this.options.ignoreOrder){const r=a.get(i);e.warnings.push(new Error([`chunk ${t.name||t.id} [${o}]`,"Conflicting order. Following module has been added:",` * ${i.readableIdentifier(n)}`,"despite it was not able to fulfill desired ordering with these modules:",...c.map(e=>{const t=a.get(e);const s=t&&t.get(i);const o=Array.from(r.get(e),e=>e.name).join(", ");const f=s&&Array.from(s,e=>e.name).join(", ");return[` * ${e.readableIdentifier(n)}`,` - couldn't fulfill desired order of chunk group(s) ${o}`,f&&` - while fulfilling desired order of chunk group(s) ${f}`].filter(Boolean).join("\n")})].join("\n")))}r.add(i)}}}else{s.sort((e,t)=>e.index2-t.index2);r=s}this._sortedModulesCache.set(t,r);return r}renderContentAsset(e,t,n,r,s){const o=this.sortModules(t,n,r,s);const{ConcatSource:a,SourceMapSource:f,RawSource:d}=e.webpack?e.webpack.sources:i(665);const l=new a;const c=new a;for(const e of o){let t=e.content.toString();if(/^@import url/.test(t)){if(e.media){t=t.replace(/;|\s*$/,e.media)}c.add(t);c.add("\n")}else{if(e.media){l.add(`@media ${e.media} {\n`)}if(e.sourceMap){l.add(new f(t,e.readableIdentifier(s),e.sourceMap.toString()))}else{l.add(new d(t,e.readableIdentifier(s)))}l.add("\n");if(e.media){l.add("}\n")}}}return new a(c,l)}}MiniCssExtractPlugin.loader=i.ab+"loader.js";var y=MiniCssExtractPlugin;t.default=y},958:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:true});t.findModuleById=findModuleById;t.evalModuleCode=evalModuleCode;t.compareModulesByIdentifier=compareModulesByIdentifier;t.MODULE_TYPE=void 0;var n=_interopRequireDefault(i(282));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const r="css/mini-extract";t.MODULE_TYPE=r;function findModuleById(e,t){const{modules:i,chunkGraph:n}=e;for(const e of i){const i=typeof n!=="undefined"?n.getModuleId(e):e.id;if(i===t){return e}}return null}function evalModuleCode(e,t,i){const r=new n.default(i,e);r.paths=n.default._nodeModulePaths(e.context);r.filename=i;r._compile(t,i);return r.exports}function compareIds(e,t){if(typeof e!==typeof t){return typeof e<typeof t?-1:1}if(e<t){return-1}if(e>t){return 1}return 0}function compareModulesByIdentifier(e,t){return compareIds(e.identifier(),t.identifier())}},282:e=>{e.exports=require("module")},286:e=>{e.exports=require("next/dist/compiled/schema-utils3")},665:e=>{e.exports=require("next/dist/compiled/webpack-sources")},738:e=>{e.exports=require("next/dist/compiled/webpack/NormalModule")},619:e=>{e.exports=require("next/dist/compiled/webpack/webpack-lib")}};var t={};function __nccwpck_require__(i){if(t[i]){return t[i].exports}var n=t[i]={exports:{}};var r=true;try{e[i](n,n.exports,__nccwpck_require__);r=false}finally{if(r)delete t[i]}return n.exports}__nccwpck_require__.ab=__dirname+"/";return __nccwpck_require__(105)})();