UNPKG

@cocalc/static

Version:

CoCalc's static frontend Webpack-based build system and framework

1 lines 2.96 kB
(self.webpackChunk_cocalc_static=self.webpackChunk_cocalc_static||[]).push([[5520],{12430:(e,t,n)=>{"use strict";n.d(t,{l:()=>i,v:()=>o});var r=n(24620),a=n(56393),c=n(41780);function i(e){var t=(0,r.path_split)(e),n=(0,r.separate_file_extension)(t.tail);return{directory:t.head,base:n.name,filename:t.tail}}function o(e,t){var n=(0,r.encode_path)(t);return(0,a.join)(c.appBasePath,e,"raw",n)}},56570:(e,t,n)=>{"use strict";n.d(t,{Me:()=>b,j5:()=>m,t$:()=>p});var r=n(48853),a=n.n(r),c=n(56160),i=n(92858),o=n(41780),u=n(35586),s=n(12430),l=n(89550);function f(e,t,n,r,a,c,i){try{var o=e[c](i),u=o.value}catch(e){return void n(e)}o.done?t(u):Promise.resolve(u).then(r,a)}function p(e,t,n){var r=(0,s.v)(e,(0,l.n)(t));return"".concat(r,"?param=").concat(n)}var d,h,v=new(a())({max:1e3,length:function(e){return e.numPages}}),b=(0,c.reuseInFlight)((d=function(e){var t,n;return function(e,t){var n,r,a,c,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return c={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function o(c){return function(o){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(a=2&c[0]?r.return:c[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,c[1])).done)return a;switch(r=0,a&&(c=[2&c[0],a.value]),c[0]){case 0:case 1:a=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!((a=(a=i.trys).length>0&&a[a.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!a||c[1]>a[0]&&c[1]<a[3])){i.label=c[1];break}if(6===c[0]&&i.label<a[1]){i.label=a[1],a=c;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(c);break}a[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=a=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,o])}}}(this,(function(r){switch(r.label){case 0:return void 0!==(t=v.get(e))?[3,2]:(n="pdfjs-dist-".concat(i.dd["pdfjs-dist"]),[4,(0,u.getDocument)({url:e,cMapUrl:"".concat(o.appBasePath,"/cdn/").concat(n,"/cmaps/"),cMapPacked:!0,disableStream:!0,disableAutoFetch:!0}).promise]);case 1:t=r.sent(),v.set(e,t),r.label=2;case 2:return[2,t]}}))},h=function(){var e=this,t=arguments;return new Promise((function(n,r){var a=d.apply(e,t);function c(e){f(a,n,r,c,i,"next",e)}function i(e){f(a,n,r,c,i,"throw",e)}c(void 0)}))},function(e){return h.apply(this,arguments)}));function m(e){v.del(e)}},89550:(e,t,n)=>{"use strict";n.d(t,{n:()=>a,q:()=>c});var r=n(24620);function a(e){var t=(0,r.separate_file_extension)(e),n=t.name;return"pdf"==t.ext.toLowerCase()?e:"".concat(n,".pdf")}function c(e,t){e=e.trim();var n="'".concat(t,"'"),r=e.indexOf("'");if(-1==r){var a=e.lastIndexOf(" ");return-1==a?e:e.slice(0,a)+" "+n}return e.slice(0,r).trim()+" "+n}},84663:()=>{},70172:()=>{},2001:()=>{},33779:()=>{},66558:()=>{},82258:()=>{}}]);