PageSourceSearch

https://app.stopwriting.com/_next/static/chunks/6640.0dd77b6d4c7ca28a.js

js stopwriting.com collected 2026-10-08 16:47:36 UTC 6,538 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="229b4025-6d54-43e5-89b4-6dc369794a81",e._sentryDebugIdIdentifier="sentry-dbid-229b4025-6d54-43e5-89b4-6dc369794a81")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6640],{76640:function(e,t,n){n.d(t,{downloadDocx:function(){return d}});var r=n(17422);let o="application/vnd.openxmlformats-officedocument.wordprocessingml.document";function i(e,t){let n=e.tagName.toLowerCase(),o=function(e){var t;let n=null===(t=e.style)||void 0===t?void 0:t.fontSize;if(!n)return;let r=parseFloat(n);if(!Number.isNaN(r))return Math.round((n.endsWith("px")?.75*r:r)*2)}(e);return{...t,..."strong"===n||"b"===n?{bold:!0}:{},..."em"===n||"i"===n?{italics:!0}:{},..."u"===n?{underline:{type:r.Xqi.SINGLE}}:{},..."s"===n||"del"===n||"strike"===n?{strike:!0}:{},...o?{size:o}:{}}}function a(e,t){return e.split(/\r?\n/).map((e,n)=>new r.hal({text:e,...n?{break:1}:{},...t}))}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];for(let o of Array.from(e)){if(3===o.nodeType){n.push(...a(o.textContent||"",t));continue}if(1!==o.nodeType)continue;let e=o.tagName.toLowerCase();if(!["script","style","template","noscript"].includes(e)){if("br"===e){n.push(new r.hal({break:1,...t}));continue}if(o.hasAttribute("data-page-break")||"hr"===e){n.push(new r.slb);continue}n.push(...l(o.childNodes,i(o,t)))}}return n}function s(e){var t;switch(null===(t=e.style)||void 0===t?void 0:t.textAlign){case"center":return r.B1p.CENTER;case"right":return r.B1p.RIGHT;case"justify":return r.B1p.JUSTIFIED;default:return}}async function c(e,t,n){return r.UDs.toBlob(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Stop Writing export",n=arguments.length>2?arguments[2]:void 0,o=function(e,t){let n=new DOMParser().parseFromString("<!doctype html><html><body>".concat(e||"<p></p>","</body></html>"),"text/html");if(t){let e=new Set;n.querySelectorAll("[data-export-outline] [data-beat-scene]").forEach(r=>{let o=r.getAttribute("data-beat-scene")||"",i=Object.prototype.hasOwnProperty.call(t,o)?t[o]:"";if(!i||e.has(o))return;let a=n.createElement("h3");a.textContent=i,r.before(a),e.add(o)})}return n}(e,n),c={numbering:[],nextListId:1,sawTitle:!1},d=function e(t,n){let o=[];for(let c of Array.from(t)){if(3===c.nodeType){if(!(c.textContent||"").trim())continue;o.push(new r.nvN({children:l([c]),spacing:{after:120}}));continue}if(1!==c.nodeType)continue;let t=c.tagName.toLowerCase();if(!["script","style","template","noscript"].includes(t)){if(c.hasAttribute("data-story-beat")){let e="".concat(c.getAttribute("data-plot")||"").concat(c.getAttribute("data-number")||""),t=c.getAttribute("data-text")||"";t&&o.push(new r.nvN({children:[new r.hal({text:e,bold:!0}),new r.hal(" "),...a(t,{})],spacing:{after:120}}));continue}if(c.hasAttribute("data-page-break")||"hr"===t){o.push(new r.nvN({children:[new r.slb]}));continue}if(/^h[1-6]$/.test(t)){let e=Number(t[1]);o.push(new r.nvN({children:l(c.childNodes,i(c,{})),heading:function(e,t){if(1===e&&!t.sawTitle)return t.sawTitle=!0,r.y5t.TITLE;let n=[r.y5t.HEADING_1,r.y5t.HEADING_2,r.y5t.HEADING_3,r.y5t.HEADING_4,r.y5t.HEADING_5,r.y5t.HEADING_6];return n[Math.min(Math.max(e-2,0),n.length-1)]}(e,n),alignment:s(c),keepNext:!0}));continue}if("p"===t){o.push(new r.nvN({children:l(c.childNodes,i(c,{})),alignment:s(c),spacing:{after:120,line:276}}));continue}if("ul"===t||"ol"===t){o.push(...function e(t,n){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i="ol"===t.tagName.toLowerCase(),a=i?"stop-writing-list-".concat(n.nextListId++):"";i&&n.numbering.push({reference:a,levels:[{level:0,format:r.WaB.DECIMAL,text:"%1.",alignment:r.B1p.START,start:Number(t.getAttribute("start"))||1,style:{paragraph:{indent:{left:720*(o+1),hanging:360}}}}]});let s=[];for(let c of Array.from(t.children)){if("li"!==c.tagName.toLowerCase())continue;let t=function(e){let t=[];for(let n of Array.from(e.childNodes)){if(1===n.nodeType){let e=n.tagName.toLowerCase();if("ul"===e||"ol"===e)continue;if("p"===e){t.push(...l(n.childNodes));continue}}
1(3!==n.nodeType||(n.textContent||"").trim())&&t.push(...l([n]))}return t}(c);for(let l of(s.push(new r.nvN({children:t.length?t:[new r.hal("")],spacing:{after:80},...i?{numbering:{reference:a,level:0}}:{bullet:{level:o},indent:{left:720*(o+1),hanging:360}}})),Array.from(c.children).filter(e=>["ul","ol"].includes(e.tagName.toLowerCase()))))s.push(...e(l,n,o+1))}return s}(c,n));continue}if("blockquote"===t){o.push(new r.nvN({children:l(c.childNodes,{italics:!0}),indent:{left:720,right:720},spacing:{after:120}}));continue}o.push(...e(c.childNodes,n))}}return o}(o.body.childNodes,c);return new r.BBB({title:t,creator:"Stop Writing!",description:"Writing exported from Stop Writing!",styles:{default:{document:{run:{font:"Times New Roman",size:24,color:"000000"},paragraph:{spacing:{after:120,line:276}}},title:{run:{font:"Times New Roman",size:48,bold:!0,color:"000000"},paragraph:{spacing:{before:120,after:160},keepNext:!0}},heading1:{run:{font:"Times New Roman",size:36,bold:!0,color:"000000"},paragraph:{spacing:{before:240,after:100},keepNext:!0}},heading2:{run:{font:"Times New Roman",size:28,bold:!0,color:"000000"},paragraph:{spacing:{before:180,after:80},keepNext:!0}},heading3:{run:{font:"Times New Roman",size:24,bold:!0,color:"000000"},paragraph:{spacing:{before:140,after:60},keepNext:!0}},heading4:{run:{font:"Times New Roman",size:24,bold:!0,color:"000000"},paragraph:{spacing:{before:120,after:60},keepNext:!0}},heading5:{run:{font:"Times New Roman",size:24,bold:!0,color:"000000"},paragraph:{spacing:{before:120,after:60},keepNext:!0}},heading6:{run:{font:"Times New Roman",size:24,bold:!0,color:"000000"},paragraph:{spacing:{before:120,after:60},keepNext:!0}}}},numbering:{config:c.numbering},sections:[{properties:{page:{size:{width:12240,height:15840},margin:{top:1440,right:1440,bottom:1440,left:1440}}},children:d.length?d:[new r.nvN("")]}]})}(e,t,n))}async function d(e,t,n){let r=t.toLowerCase().endsWith(".docx")?t:"".concat(t,".docx"),i=r.replace(/\.docx$/i,""),a=await c(e,i,n),l=a.type===o?a:new Blob([a],{type:o}),s=URL.createObjectURL(l),d=document.createElement("a");d.href=s,d.download=r,document.body.appendChild(d),d.click(),document.body.removeChild(d),setTimeout(()=>URL.revokeObjectURL(s),1e3)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.