hypnagaga/docs/assets/Byline-bc75d557.js
2024-05-23 10:39:02 +00:00

5 lines
18 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{S as le,i as ne,s as ae,g as se,m as oe,t as v,h as A,j as re,y as ue,o as k,z as L,b as y,d as m,e as O,w as q,x as J,f as h,k as g,v as P,n as T,l as B,u as G,p as V,q as Z,V as fe,A as U}from"./index-85f88930.js";import{e as M}from"./each-e59479a4.js";import{B as ce}from"./Block-d1b8152c.js";import{c as de,g as _e}from"./_commonjsHelpers-de833af9.js";import{r as j}from"./journalize-07958dc6.js";var ie={exports:{}};(function(s,i){(function(l,t,e){s.exports=e(),s.exports.default=e()})("slugify",de,function(){var l=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","":"-","":"'","":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`),t=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function e(a,n){if(typeof a!="string")throw new Error("slugify: string argument expected");n=typeof n=="string"?{replacement:n}:n||{};var o=t[n.locale]||{},r=n.replacement===void 0?"-":n.replacement,u=n.trim===void 0?!0:n.trim,d=a.normalize().split("").reduce(function(E,p){var _=o[p];return _===void 0&&(_=l[p]),_===void 0&&(_=p),_===r&&(_=" "),E+_.replace(n.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return n.strict&&(d=d.replace(/[^A-Za-z0-9\s]/g,"")),u&&(d=d.trim()),d=d.replace(/\s+/g,r),n.lower&&(d=d.toLowerCase()),d}return e.extend=function(a){Object.assign(l,a)},e})})(ie);var pe=ie.exports;const me=_e(pe);const he=s=>({}),K=s=>({}),ye=s=>({}),X=s=>({});function Q(s,i,l){const t=s.slice();return t[14]=i[l],t[16]=l,t}const be=s=>({}),$=s=>({});function ge(s){let i,l;function t(n,o){return n[0].length>0?ve:we}let e=t(s),a=e(s);return{c(){i=g(`By
`),a.c(),l=P()},m(n,o){m(n,i,o),a.m(n,o),m(n,l,o)},p(n,o){e===(e=t(n))&&a?a.p(n,o):(a.d(1),a=e(n),a&&(a.c(),a.m(l.parentNode,l)))},i:T,o:T,d(n){n&&(h(i),h(l)),a.d(n)}}}function ke(s){let i;const l=s[12].byline,t=B(l,s,s[13],$);return{c(){t&&t.c()},m(e,a){t&&t.m(e,a),i=!0},p(e,a){t&&t.p&&(!i||a&8192)&&G(t,l,e,e[13],i?Z(l,e[13],a,be):V(e[13]),$)},i(e){i||(v(t,e),i=!0)},o(e){A(t,e),i=!1},d(e){t&&t.d(e)}}}function we(s){let i;return{c(){i=k("a"),i.textContent="Reuters",y(i,"href","https://www.reuters.com"),y(i,"class","no-underline whitespace-nowrap text-primary font-bold")},m(l,t){m(l,i,t)},p:T,d(l){l&&h(i)}}}function ve(s){let i,l=M(s[0]),t=[];for(let e=0;e<l.length;e+=1)t[e]=te(Q(s,l,e));return{c(){for(let e=0;e<t.length;e+=1)t[e].c();i=P()},m(e,a){for(let n=0;n<t.length;n+=1)t[n]&&t[n].m(e,a);m(e,i,a)},p(e,a){if(a&33){l=M(e[0]);let n;for(n=0;n<l.length;n+=1){const o=Q(e,l,n);t[n]?t[n].p(o,a):(t[n]=te(o),t[n].c(),t[n].m(i.parentNode,i))}for(;n<t.length;n+=1)t[n].d(1);t.length=l.length}},d(e){e&&h(i),fe(t,e)}}}function x(s){let i;return{c(){i=g(",")},m(l,t){m(l,i,t)},d(l){l&&h(i)}}}function ee(s){let i;return{c(){i=g("and ")},m(l,t){m(l,i,t)},d(l){l&&h(i)}}}function te(s){let i,l=s[14].trim()+"",t,e,a,n,o=s[0].length>1&&s[16]<s[0].length-2&&x(),r=s[0].length>1&&s[16]===s[0].length-2&&ee();return{c(){i=k("a"),t=g(l),o&&o.c(),a=L(),r&&r.c(),n=P(),y(i,"class","no-underline whitespace-nowrap text-primary font-bold"),y(i,"href",e=s[5](s[14])),y(i,"rel","author")},m(u,d){m(u,i,d),O(i,t),o&&o.m(u,d),m(u,a,d),r&&r.m(u,d),m(u,n,d)},p(u,d){d&1&&l!==(l=u[14].trim()+"")&&U(t,l),d&33&&e!==(e=u[5](u[14]))&&y(i,"href",e),u[0].length>1&&u[16]<u[0].length-2?o||(o=x(),o.c(),o.m(a.parentNode,a)):o&&(o.d(1),o=null),u[0].length>1&&u[16]===u[0].length-2?r||(r=ee(),r.c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(u){u&&(h(i),h(a),h(n)),o&&o.d(u),r&&r.d(u)}}}function Ae(s){let i,l,t,e;function a(r,u){return u&4&&(e=null),e==null&&(e=!!r[7](r[2])),e?Se:Oe}let n=a(s,-1),o=n(s);return{c(){i=k("div"),l=g(`Published
`),t=k("time"),o.c(),y(t,"datetime",s[1]),y(i,"class","whitespace-nowrap inline-block svelte-18evejq")},m(r,u){m(r,i,u),O(i,l),O(i,t),o.m(t,null)},p(r,u){n===(n=a(r,u))&&o?o.p(r,u):(o.d(1),o=n(r),o&&(o.c(),o.m(t,null))),u&2&&y(t,"datetime",r[1])},i:T,o:T,d(r){r&&h(i),o.d()}}}function Ee(s){let i,l;const t=s[12].published,e=B(t,s,s[13],X);return{c(){i=k("div"),e&&e.c(),y(i,"class","whitespace-nowrap inline-block svelte-18evejq")},m(a,n){m(a,i,n),e&&e.m(i,null),l=!0},p(a,n){e&&e.p&&(!l||n&8192)&&G(e,t,a,a[13],l?Z(t,a[13],n,ye):V(a[13]),X)},i(a){l||(v(e,a),l=!0)},o(a){A(e,a),l=!1},d(a){a&&h(i),e&&e.d(a)}}}function Oe(s){let i=j(new Date(s[1]))+"",l,t,e=s[8](s[1])+"",a;return{c(){l=g(i),t=g("  "),a=g(e)},m(n,o){m(n,l,o),m(n,t,o),m(n,a,o)},p(n,o){o&2&&i!==(i=j(new Date(n[1]))+"")&&U(l,i),o&2&&e!==(e=n[8](n[1])+"")&&U(a,e)},d(n){n&&(h(l),h(t),h(a))}}}function Se(s){let i=j(new Date(s[1]))+"",l;return{c(){l=g(i)},m(t,e){m(t,l,e)},p(t,e){e&2&&i!==(i=j(new Date(t[1]))+"")&&U(l,i)},d(t){t&&h(l)}}}function De(s){let i,l,t,e;function a(r,u){return u&6&&(e=null),e==null&&(e=!!r[9](new Date(r[1]),new Date(r[2]))),e?Ue:Te}let n=a(s,-1),o=n(s);return{c(){i=k("div"),l=g(`Last updated
`),t=k("time"),o.c(),y(t,"datetime",s[2]),y(i,"class","whitespace-nowrap inline-block svelte-18evejq")},m(r,u){m(r,i,u),O(i,l),O(i,t),o.m(t,null)},p(r,u){n===(n=a(r,u))&&o?o.p(r,u):(o.d(1),o=n(r),o&&(o.c(),o.m(t,null))),u&4&&y(t,"datetime",r[2])},i:T,o:T,d(r){r&&h(i),o.d()}}}function Ye(s){let i,l;const t=s[12].updated,e=B(t,s,s[13],K);return{c(){i=k("div"),e&&e.c(),y(i,"class","whitespace-nowrap inline-block svelte-18evejq")},m(a,n){m(a,i,n),e&&e.m(i,null),l=!0},p(a,n){e&&e.p&&(!l||n&8192)&&G(e,t,a,a[13],l?Z(t,a[13],n,he):V(a[13]),K)},i(a){l||(v(e,a),l=!0)},o(a){A(e,a),l=!1},d(a){a&&h(i),e&&e.d(a)}}}function Te(s){let i=j(new Date(s[2]))+"",l,t,e=s[8](s[2])+"",a;return{c(){l=g(i),t=g("  "),a=g(e)},m(n,o){m(n,l,o),m(n,t,o),m(n,a,o)},p(n,o){o&4&&i!==(i=j(new Date(n[2]))+"")&&U(l,i),o&4&&e!==(e=n[8](n[2])+"")&&U(a,e)},d(n){n&&(h(l),h(t),h(a))}}}function Ue(s){let i=s[8](s[2])+"",l;return{c(){l=g(i)},m(t,e){m(t,l,e)},p(t,e){e&4&&i!==(i=t[8](t[2])+"")&&U(l,i)},d(t){t&&h(l)}}}function Ce(s){let i,l,t,e,a,n,o,r,u,d,E,p,_,C;const z=[ke,ge],w=[];function f(c,b){return c[10].byline?0:1}t=f(s),e=w[t]=z[t](s);const Y=[Ee,Ae],S=[];function R(c,b){return b&2&&(o=null),c[10].published?0:(o==null&&(o=!!c[7](c[1])),o?1:-1)}~(r=R(s,-1))&&(u=S[r]=Y[r](s));const W=[Ye,De],D=[];function F(c,b){return b&6&&(E=null),c[10].updated?0:(E==null&&(E=!!(c[7](c[1])&&c[7](c[2]))),E?1:-1)}return~(p=F(s,-1))&&(_=D[p]=W[p](s)),{c(){i=k("aside"),l=k("div"),e.c(),a=L(),n=k("div"),u&&u.c(),d=L(),_&&_.c(),y(l,"class","byline body-caption fmb-1"),y(n,"class","dateline body-caption fmt-0 svelte-18evejq"),y(i,"class","article-metadata font-subhed")},m(c,b){m(c,i,b),O(i,l),w[t].m(l,null),O(i,a),O(i,n),~r&&S[r].m(n,null),O(n,d),~p&&D[p].m(n,null),C=!0},p(c,b){let N=t;t=f(c),t===N?w[t].p(c,b):(q(),A(w[N],1,1,()=>{w[N]=null}),J(),e=w[t],e?e.p(c,b):(e=w[t]=z[t](c),e.c()),v(e,1),e.m(l,null));let I=r;r=R(c,b),r===I?~r&&S[r].p(c,b):(u&&(q(),A(S[I],1,1,()=>{S[I]=null}),J()),~r?(u=S[r],u?u.p(c,b):(u=S[r]=Y[r](c),u.c()),v(u,1),u.m(n,d)):u=null);let H=p;p=F(c,b),p===H?~p&&D[p].p(c,b):(_&&(q(),A(D[H],1,1,()=>{D[H]=null}),J()),~p?(_=D[p],_?_.p(c,b):(_=D[p]=W[p](c),_.c()),v(_,1),_.m(n,null)):_=null)},i(c){C||(v(e),v(u),v(_),C=!0)},o(c){A(e),A(u),A(_),C=!1},d(c){c&&h(i),w[t].d(),~r&&S[r].d(),~p&&D[p].d()}}}function je(s){let i,l;return i=new ce({props:{id:s[3],class:"byline-container "+s[6]+" "+s[4],width:"normal",$$slots:{default:[Ce]},$$scope:{ctx:s}}}),{c(){se(i.$$.fragment)},m(t,e){oe(i,t,e),l=!0},p(t,[e]){const a={};e&8&&(a.id=t[3]),e&80&&(a.class="byline-container "+t[6]+" "+t[4]),e&9255&&(a.$$scope={dirty:e,ctx:t}),i.$set(a)},i(t){l||(v(i.$$.fragment,t),l=!0)},o(t){A(i.$$.fragment,t),l=!1},d(t){re(i,t)}}}function ze(s,i,l){let t,{$$slots:e={},$$scope:a}=i;const n=ue(e);let{authors:o=[]}=i,{publishTime:r=""}=i,{updateTime:u=""}=i,{align:d="left"}=i,{id:E=""}=i,{class:p=""}=i,{getAuthorPage:_=f=>`https://www.reuters.com/authors/${me(f.trim(),{lower:!0})}/`}=i;const C=f=>!(!f||!Date.parse(f)),z=f=>new Date(f).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",timeZoneName:"short"}),w=(f,Y)=>f.getFullYear()===Y.getFullYear()&&f.getMonth()===Y.getMonth()&&f.getDate()===Y.getDate();return s.$$set=f=>{"authors"in f&&l(0,o=f.authors),"publishTime"in f&&l(1,r=f.publishTime),"updateTime"in f&&l(2,u=f.updateTime),"align"in f&&l(11,d=f.align),"id"in f&&l(3,E=f.id),"class"in f&&l(4,p=f.class),"getAuthorPage"in f&&l(5,_=f.getAuthorPage),"$$scope"in f&&l(13,a=f.$$scope)},s.$$.update=()=>{s.$$.dirty&2048&&l(6,t=d==="left"?"text-left":"text-center")},[o,r,u,E,p,_,t,C,z,w,n,d,e,a]}class Ne extends le{constructor(i){super(),ne(this,i,ze,je,ae,{authors:0,publishTime:1,updateTime:2,align:11,id:3,class:4,getAuthorPage:5})}}Ne.__docgen={version:3,name:"Byline.svelte",data:[{keywords:[],visibility:"public",description:"Array of author names, which will be slugified to create links to Reuters author pages",name:"authors",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"array",type:"array"}},{keywords:[{name:"type",description:"{string}"}],visibility:"public",description:"Publish time as a datetime string.",name:"publishTime",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"string",type:"string"},defaultValue:""},{keywords:[{name:"type",description:"{string}"}],visibility:"public",description:"Update time as a datetime string.",name:"updateTime",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"string",type:"string"},defaultValue:""},{keywords:[{name:"type",description:"{string}"}],visibility:"public",description:"Alignment of the byline.",name:"align",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"string",type:"string"},defaultValue:"left"},{keywords:[{name:"type",description:"{string}"}],visibility:"public",description:"Add an id to to target with custom CSS.",name:"id",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"string",type:"string"},defaultValue:""},{visibility:"public",description:"Add extra classes to target with custom CSS.",keywords:[{name:"type",description:"{string}"}],name:"class",kind:"const",static:!1,readonly:!0,type:{kind:"type",text:"string",type:"string"},localName:"cls",defaultValue:""},{keywords:[{name:"param",description:"author"}],visibility:"public",description:"Custom function that returns an author page URL.",name:"getAuthorPage",kind:"let",static:!1,readonly:!1,type:{kind:"function",text:"function",type:"function",params:[{name:"author",type:{kind:"type",text:"*",type:"any"},description:null,optional:!1}]}}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[{keywords:[],visibility:"public",description:"Custom byline",name:"byline"},{keywords:[],visibility:"public",description:"Custom published dateline",name:"published"},{keywords:[],visibility:"public",description:"Custom updated dateline",name:"updated"}],refs:[]};export{Ne as B};
//# sourceMappingURL=Byline-bc75d557.js.map