ghost 5.40.2 → 5.42.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/LICENSE +1 -1
- package/README.md +1 -1
- package/components/tryghost-adapter-cache-memory-ttl-5.42.0.tgz +0 -0
- package/components/tryghost-adapter-cache-redis-5.42.0.tgz +0 -0
- package/components/{tryghost-adapter-manager-5.40.2.tgz → tryghost-adapter-manager-5.42.0.tgz} +0 -0
- package/components/tryghost-api-framework-5.42.0.tgz +0 -0
- package/components/{tryghost-api-version-compatibility-service-5.40.2.tgz → tryghost-api-version-compatibility-service-5.42.0.tgz} +0 -0
- package/components/{tryghost-audience-feedback-5.40.2.tgz → tryghost-audience-feedback-5.42.0.tgz} +0 -0
- package/components/tryghost-bootstrap-socket-5.42.0.tgz +0 -0
- package/components/tryghost-constants-5.42.0.tgz +0 -0
- package/components/tryghost-custom-theme-settings-service-5.42.0.tgz +0 -0
- package/components/{tryghost-data-generator-5.40.2.tgz → tryghost-data-generator-5.42.0.tgz} +0 -0
- package/components/tryghost-domain-events-5.42.0.tgz +0 -0
- package/components/tryghost-dynamic-routing-events-5.42.0.tgz +0 -0
- package/components/tryghost-email-analytics-provider-mailgun-5.42.0.tgz +0 -0
- package/components/{tryghost-email-analytics-service-5.40.2.tgz → tryghost-email-analytics-service-5.42.0.tgz} +0 -0
- package/components/tryghost-email-content-generator-5.42.0.tgz +0 -0
- package/components/tryghost-email-events-5.42.0.tgz +0 -0
- package/components/tryghost-email-service-5.42.0.tgz +0 -0
- package/components/tryghost-email-suppression-list-5.42.0.tgz +0 -0
- package/components/tryghost-event-aware-cache-wrapper-5.42.0.tgz +0 -0
- package/components/{tryghost-express-dynamic-redirects-5.40.2.tgz → tryghost-express-dynamic-redirects-5.42.0.tgz} +0 -0
- package/components/tryghost-external-media-inliner-5.42.0.tgz +0 -0
- package/components/{tryghost-extract-api-key-5.40.2.tgz → tryghost-extract-api-key-5.42.0.tgz} +0 -0
- package/components/tryghost-html-to-plaintext-5.42.0.tgz +0 -0
- package/components/tryghost-i18n-5.42.0.tgz +0 -0
- package/components/tryghost-importer-handler-content-files-5.42.0.tgz +0 -0
- package/components/{tryghost-importer-revue-5.40.2.tgz → tryghost-importer-revue-5.42.0.tgz} +0 -0
- package/components/{tryghost-job-manager-5.40.2.tgz → tryghost-job-manager-5.42.0.tgz} +0 -0
- package/components/{tryghost-link-redirects-5.40.2.tgz → tryghost-link-redirects-5.42.0.tgz} +0 -0
- package/components/{tryghost-link-replacer-5.40.2.tgz → tryghost-link-replacer-5.42.0.tgz} +0 -0
- package/components/{tryghost-link-tracking-5.40.2.tgz → tryghost-link-tracking-5.42.0.tgz} +0 -0
- package/components/tryghost-magic-link-5.42.0.tgz +0 -0
- package/components/tryghost-mailgun-client-5.42.0.tgz +0 -0
- package/components/tryghost-member-attribution-5.42.0.tgz +0 -0
- package/components/{tryghost-member-events-5.40.2.tgz → tryghost-member-events-5.42.0.tgz} +0 -0
- package/components/tryghost-members-api-5.42.0.tgz +0 -0
- package/components/{tryghost-members-csv-5.40.2.tgz → tryghost-members-csv-5.42.0.tgz} +0 -0
- package/components/tryghost-members-events-service-5.42.0.tgz +0 -0
- package/components/{tryghost-members-importer-5.40.2.tgz → tryghost-members-importer-5.42.0.tgz} +0 -0
- package/components/{tryghost-members-offers-5.40.2.tgz → tryghost-members-offers-5.42.0.tgz} +0 -0
- package/components/tryghost-members-payments-5.42.0.tgz +0 -0
- package/components/tryghost-members-ssr-5.42.0.tgz +0 -0
- package/components/{tryghost-members-stripe-service-5.40.2.tgz → tryghost-members-stripe-service-5.42.0.tgz} +0 -0
- package/components/{tryghost-mentions-email-report-5.40.2.tgz → tryghost-mentions-email-report-5.42.0.tgz} +0 -0
- package/components/tryghost-milestones-5.42.0.tgz +0 -0
- package/components/tryghost-minifier-5.42.0.tgz +0 -0
- package/components/tryghost-mw-api-version-mismatch-5.42.0.tgz +0 -0
- package/components/tryghost-mw-cache-control-5.42.0.tgz +0 -0
- package/components/tryghost-mw-error-handler-5.42.0.tgz +0 -0
- package/components/tryghost-mw-session-from-token-5.42.0.tgz +0 -0
- package/components/tryghost-mw-update-user-last-seen-5.42.0.tgz +0 -0
- package/components/tryghost-mw-version-match-5.42.0.tgz +0 -0
- package/components/tryghost-mw-vhost-5.42.0.tgz +0 -0
- package/components/tryghost-oembed-service-5.42.0.tgz +0 -0
- package/components/tryghost-package-json-5.42.0.tgz +0 -0
- package/components/tryghost-posts-service-5.42.0.tgz +0 -0
- package/components/{tryghost-referrers-5.40.2.tgz → tryghost-referrers-5.42.0.tgz} +0 -0
- package/components/{tryghost-security-5.40.2.tgz → tryghost-security-5.42.0.tgz} +0 -0
- package/components/tryghost-session-service-5.42.0.tgz +0 -0
- package/components/tryghost-settings-path-manager-5.42.0.tgz +0 -0
- package/components/tryghost-slack-notifications-5.42.0.tgz +0 -0
- package/components/tryghost-staff-service-5.42.0.tgz +0 -0
- package/components/{tryghost-stats-service-5.40.2.tgz → tryghost-stats-service-5.42.0.tgz} +0 -0
- package/components/tryghost-tiers-5.42.0.tgz +0 -0
- package/components/{tryghost-update-check-service-5.40.2.tgz → tryghost-update-check-service-5.42.0.tgz} +0 -0
- package/components/tryghost-verification-trigger-5.42.0.tgz +0 -0
- package/components/tryghost-version-notifications-data-service-5.42.0.tgz +0 -0
- package/components/{tryghost-webmentions-5.40.2.tgz → tryghost-webmentions-5.42.0.tgz} +0 -0
- package/content/themes/casper/default.hbs +1 -1
- package/content/themes/casper/package.json +2 -2
- package/core/built/admin/assets/chunk.143.5883751093d1b6e535c0.js +35 -0
- package/core/built/admin/assets/{chunk.178.ca167199fe31a5836b26.js → chunk.178.bc2da086492043bfc5c8.js} +4 -4
- package/core/built/admin/assets/{chunk.462.b66cfed1f66c8d2678b2.js → chunk.580.ca53e3417715b59cfb59.js} +5958 -5228
- package/core/built/admin/assets/{chunk.462.b66cfed1f66c8d2678b2.js.LICENSE.txt → chunk.580.ca53e3417715b59cfb59.js.LICENSE.txt} +18 -0
- package/core/built/admin/assets/codemirror/{codemirror-3f3b9966a7237652dd31484694e38ad5.js → codemirror-31d641cdd0cb3388688402609608cb10.js} +1 -1
- package/core/built/admin/assets/ghost-0b2e282fd281b16ee656b554d7bc4863.css +1 -0
- package/core/built/admin/assets/{ghost-467b96c17c6bc0d06fa88e85074fbecf.js → ghost-744b6bcb745893e43bbdfaed2b931347.js} +4503 -4435
- package/core/built/admin/assets/ghost-dark-c05706ed6261cfa7944426e1ef933462.css +1 -0
- package/core/built/admin/assets/simplemde/{simplemde-9cd5549b68db674742d6ec2ecd72ac30.js → simplemde-d16ff9bcc5bf6ad4916fb0034a30adb1.js} +47 -47
- package/core/built/admin/assets/{vendor-d08b4de6f990b9cd7b5a92d61952a5bb.js → vendor-fcd4f09ebc985b1bd9ea37bdf7954c18.js} +140 -141
- package/core/built/admin/index.html +6 -6
- package/core/frontend/helpers/ghost_head.js +2 -1
- package/core/server/api/endpoints/posts.js +1 -1
- package/core/server/api/endpoints/utils/serializers/input/settings.js +2 -0
- package/core/server/data/migrations/versions/5.40/2023-03-21-19-02-add-self-serve-integration-api-key.js +1 -1
- package/core/server/data/migrations/versions/5.41/2023-03-27-15-00-add-newsletter-colors.js +22 -0
- package/core/server/data/migrations/versions/5.41/2023-03-27-17-51-fix-self-serve-integration-api-key-type.js +36 -0
- package/core/server/data/migrations/versions/5.42/2023-04-04-07-03-add-portal-terms-settings.js +16 -0
- package/core/server/data/schema/default-settings/default-settings.json +12 -0
- package/core/server/data/schema/schema.js +3 -0
- package/core/server/models/newsletter.js +3 -0
- package/core/server/services/i18n.js +31 -9
- package/core/server/services/members/api.js +10 -10
- package/core/server/services/members/middleware.js +1 -1
- package/core/server/services/members/utils.js +1 -0
- package/core/server/services/mentions-email-report/service.js +7 -2
- package/core/server/services/posts/posts-service.js +2 -1
- package/core/shared/config/defaults.json +1 -1
- package/core/shared/config/env/config.testing-browser.json +2 -1
- package/core/shared/config/env/config.testing-mysql.json +1 -1
- package/core/shared/config/env/config.testing.json +1 -1
- package/core/shared/labs.js +2 -1
- package/core/shared/settings-cache/public.js +2 -0
- package/package.json +146 -145
- package/yarn.lock +2212 -1199
- package/components/tryghost-adapter-cache-memory-ttl-5.40.2.tgz +0 -0
- package/components/tryghost-adapter-cache-redis-5.40.2.tgz +0 -0
- package/components/tryghost-api-framework-5.40.2.tgz +0 -0
- package/components/tryghost-bootstrap-socket-5.40.2.tgz +0 -0
- package/components/tryghost-constants-5.40.2.tgz +0 -0
- package/components/tryghost-custom-theme-settings-service-5.40.2.tgz +0 -0
- package/components/tryghost-domain-events-5.40.2.tgz +0 -0
- package/components/tryghost-dynamic-routing-events-5.40.2.tgz +0 -0
- package/components/tryghost-email-analytics-provider-mailgun-5.40.2.tgz +0 -0
- package/components/tryghost-email-content-generator-5.40.2.tgz +0 -0
- package/components/tryghost-email-events-5.40.2.tgz +0 -0
- package/components/tryghost-email-service-5.40.2.tgz +0 -0
- package/components/tryghost-email-suppression-list-5.40.2.tgz +0 -0
- package/components/tryghost-event-aware-cache-wrapper-5.40.2.tgz +0 -0
- package/components/tryghost-external-media-inliner-5.40.2.tgz +0 -0
- package/components/tryghost-html-to-plaintext-5.40.2.tgz +0 -0
- package/components/tryghost-i18n-5.40.2.tgz +0 -0
- package/components/tryghost-importer-handler-content-files-5.40.2.tgz +0 -0
- package/components/tryghost-magic-link-5.40.2.tgz +0 -0
- package/components/tryghost-mailgun-client-5.40.2.tgz +0 -0
- package/components/tryghost-member-attribution-5.40.2.tgz +0 -0
- package/components/tryghost-members-api-5.40.2.tgz +0 -0
- package/components/tryghost-members-events-service-5.40.2.tgz +0 -0
- package/components/tryghost-members-payments-5.40.2.tgz +0 -0
- package/components/tryghost-members-ssr-5.40.2.tgz +0 -0
- package/components/tryghost-milestones-5.40.2.tgz +0 -0
- package/components/tryghost-minifier-5.40.2.tgz +0 -0
- package/components/tryghost-mw-api-version-mismatch-5.40.2.tgz +0 -0
- package/components/tryghost-mw-cache-control-5.40.2.tgz +0 -0
- package/components/tryghost-mw-error-handler-5.40.2.tgz +0 -0
- package/components/tryghost-mw-session-from-token-5.40.2.tgz +0 -0
- package/components/tryghost-mw-update-user-last-seen-5.40.2.tgz +0 -0
- package/components/tryghost-mw-version-match-5.40.2.tgz +0 -0
- package/components/tryghost-mw-vhost-5.40.2.tgz +0 -0
- package/components/tryghost-oembed-service-5.40.2.tgz +0 -0
- package/components/tryghost-package-json-5.40.2.tgz +0 -0
- package/components/tryghost-posts-service-5.40.2.tgz +0 -0
- package/components/tryghost-session-service-5.40.2.tgz +0 -0
- package/components/tryghost-settings-path-manager-5.40.2.tgz +0 -0
- package/components/tryghost-slack-notifications-5.40.2.tgz +0 -0
- package/components/tryghost-staff-service-5.40.2.tgz +0 -0
- package/components/tryghost-tiers-5.40.2.tgz +0 -0
- package/components/tryghost-verification-trigger-5.40.2.tgz +0 -0
- package/components/tryghost-version-notifications-data-service-5.40.2.tgz +0 -0
- package/core/built/admin/assets/chunk.143.712450fcbf0ea1950e24.js +0 -49
- package/core/built/admin/assets/chunk.808.2e76eb12fa4d7be8cb23.js +0 -5
- package/core/built/admin/assets/ghost-68ea49029c6d45b4aa090f4e218917aa.css +0 -1
- package/core/built/admin/assets/ghost-dark-c9b38252afc29364507e8c92e4ba9933.css +0 -1
|
@@ -2489,47 +2489,47 @@ return null===r?t.lastChild:r.previousSibling}(this)
|
|
|
2489
2489
|
return"TITLE"===t||"SCRIPT"===t||"STYLE"===t?super.__appendText(e):""===e?this.__appendComment("% %"):(r&&3===r.nodeType&&this.__appendComment("%|%"),super.__appendText(e))}closeElement(){return i.has(this.element)&&(i.delete(this.element),super.closeElement()),super.closeElement()}openElement(e){return"tr"===e&&"TBODY"!==this.element.tagName&&"THEAD"!==this.element.tagName&&"TFOOT"!==this.element.tagName&&(this.openElement("tbody"),i.set(this.constructing,!0),this.flushElement(null)),super.openElement(e)}pushRemoteElement(e,t,r){void 0===r&&(r=null)
|
|
2490
2490
|
var{dom:n}=this,i=n.createElement("script")
|
|
2491
2491
|
return i.setAttribute("glmr",t),n.insertBefore(e,i,r),super.pushRemoteElement(e,t,r)}}})),e("@glimmer/opcode-compiler",["exports","@glimmer/vm","@glimmer/util","@glimmer/program","@glimmer/encoder"],(function(e,t,r,n,i){"use strict"
|
|
2492
|
-
function o(e){return{type:"array",value:e}}function a(e){return{type:"string-array",value:e}}function s(e){return{type:"other",value:e}}function l(e){return{type:"label",value:e}}Object.defineProperty(e,"__esModule",{value:!0}),e.WrappedBuilder=e.UNHANDLED=e.StdLib=e.PartialDefinitionImpl=e.NONE=e.MacrosImpl=e.MINIMAL_CAPABILITIES=e.EMPTY_BLOCKS=e.DEFAULT_CAPABILITIES=e.CompileTimeCompilationContextImpl=void 0,e.compilable=
|
|
2492
|
+
function o(e){return{type:"array",value:e}}function a(e){return{type:"string-array",value:e}}function s(e){return{type:"other",value:e}}function l(e){return{type:"label",value:e}}Object.defineProperty(e,"__esModule",{value:!0}),e.WrappedBuilder=e.UNHANDLED=e.StdLib=e.PartialDefinitionImpl=e.NONE=e.MacrosImpl=e.MINIMAL_CAPABILITIES=e.EMPTY_BLOCKS=e.DEFAULT_CAPABILITIES=e.CompileTimeCompilationContextImpl=void 0,e.compilable=G,e.compileStatements=Y,e.compileStd=ke,e.debugCompiler=void 0,e.invokeStaticBlock=v,e.invokeStaticBlockWithStack=b,e.meta=ue,e.resolveLayoutForTag=c,e.staticComponent=function(e,t){var[r,n,i]=t
|
|
2493
2493
|
if(null===e)return A
|
|
2494
2494
|
var{compilable:o,capabilities:a,handle:s}=e
|
|
2495
|
-
return o?[
|
|
2496
|
-
return{program:new
|
|
2495
|
+
return o?[oe(77,s),pe({capabilities:a||u,layout:o,attrs:null,params:r,hash:n,blocks:i})]:[oe(77,s),me({capabilities:a||u,attrs:null,params:r,hash:n,atNames:!0,blocks:i})]},e.syntaxCompilationContext=function(e,t,r){void 0===r&&(r=new F)
|
|
2496
|
+
return{program:new xe(e,t),macros:r}},e.templateCacheCounters=void 0,e.templateCompilationContext=H,e.templateFactory=function(e){var t,{id:r,moduleName:n,block:i}=e,o=r||"client-"+Ce++,a=null,s=new WeakMap,l=e=>{if(void 0===t&&(t=JSON.parse(i)),void 0===e)return null===a?(Se.cacheMiss++,a=new Te({id:o,block:t,moduleName:n,owner:null})):Se.cacheHit++,a
|
|
2497
2497
|
var r=s.get(e)
|
|
2498
|
-
return void 0===r?(
|
|
2498
|
+
return void 0===r?(Se.cacheMiss++,r=new Te({id:o,block:t,moduleName:n,owner:e}),s.set(e,r)):Se.cacheHit++,r}
|
|
2499
2499
|
return l.__id=o,l.__meta={moduleName:n},l}
|
|
2500
2500
|
e.DEFAULT_CAPABILITIES={dynamicLayout:!0,dynamicTag:!0,prepareArgs:!0,createArgs:!0,attributeHook:!1,elementHook:!1,dynamicScope:!0,createCaller:!1,updateHook:!0,createInstance:!0,wrapped:!1,willDestroy:!1}
|
|
2501
2501
|
var u={dynamicLayout:!1,dynamicTag:!1,prepareArgs:!1,createArgs:!1,attributeHook:!1,elementHook:!1,dynamicScope:!1,createCaller:!1,updateHook:!1,createInstance:!1,wrapped:!1,willDestroy:!1}
|
|
2502
2502
|
function c(e,t){var{resolver:r,meta:{owner:n}}=t,i=r.lookupComponent(e,n)
|
|
2503
2503
|
if(null===i)return i
|
|
2504
2504
|
var{handle:o,compilable:a,capabilities:s}=i
|
|
2505
|
-
return{handle:o,compilable:a,capabilities:s||u}}function d(e){return[h(e),
|
|
2506
|
-
return[
|
|
2505
|
+
return{handle:o,compilable:a,capabilities:s||u}}function d(e){return[h(e),oe(30)]}function h(e){return oe(29,"number"==typeof e&&(0,r.isSmallInt)(e)?{type:"immediate",value:e}:function(e){return{type:"primitive",value:e}}(e))}function p(e){var{handle:r,params:n,hash:i}=e
|
|
2506
|
+
return[oe(0),oe("SimpleArgs",{params:n,hash:i,atNames:!1}),oe(16,r),oe(1),oe(35,t.$v0)]}function f(e,t){return[oe(58),oe(57,a(e)),t(),oe(59)]}function m(e,t){return[oe("SimpleArgs",{params:t,hash:null,atNames:!0}),oe(23,e),oe(24),oe("Option",oe(60)),oe(63),oe(39),oe(1)]}function g(e){return[y(e&&e.symbolTable),oe(61),_(e)]}function v(e){return[oe(0),_(e),oe(60),oe(2),oe(1)]}function b(e,r){var{parameters:n}=e.symbolTable,i=n.length,o=Math.min(r,i)
|
|
2507
2507
|
if(0===o)return v(e)
|
|
2508
2508
|
var a=[]
|
|
2509
|
-
if(a.push(
|
|
2510
|
-
for(var s=0;s<o;s++)a.push(
|
|
2509
|
+
if(a.push(oe(0)),o){a.push(oe(38))
|
|
2510
|
+
for(var s=0;s<o;s++)a.push(oe(32,t.$fp,r-s)),a.push(oe(19,n[s]))}return a.push(_(e)),a.push(oe(60)),a.push(oe(2)),o&&a.push(oe(39)),a.push(oe(1)),a}function y(e){return e?oe(62,{type:"serializable",value:e}):h(null)}function _(e){return null===e?h(null):oe(28,s(e))}function k(e){var t=[],r=0
|
|
2511
2511
|
e((function(e,n){t.push({match:e,callback:n,label:"CLAUSE"+r++})}))
|
|
2512
|
-
var n=[
|
|
2513
|
-
for(var i of t.slice(0,-1))n.push(
|
|
2512
|
+
var n=[oe(68,1),oe(75),oe("StartLabels")]
|
|
2513
|
+
for(var i of t.slice(0,-1))n.push(oe(66,l(i.label),i.match))
|
|
2514
2514
|
for(var o=t.length-1;o>=0;o--){var a=t[o]
|
|
2515
|
-
n.push(
|
|
2516
|
-
return[
|
|
2517
|
-
return E({args:t,body:()=>{var e=[
|
|
2515
|
+
n.push(oe("Label",a.label),oe(33,1),a.callback()),0!==o&&n.push(oe(4,l("END")))}return n.push(oe("Label","END"),oe("StopLabels"),oe(69)),n}function E(e){var{args:t,body:r}=e,{count:n,actions:i}=t()
|
|
2516
|
+
return[oe("StartLabels"),oe(0),oe(6,l("ENDINITIAL")),i,oe(68,n),r(),oe("Label","FINALLY"),oe(69),oe(5),oe("Label","ENDINITIAL"),oe(1),oe("StopLabels")]}function w(e){var{args:t,ifTrue:r,ifFalse:n}=e
|
|
2517
|
+
return E({args:t,body:()=>{var e=[oe(65,l("ELSE")),r(),oe(4,l("FINALLY")),oe("Label","ELSE")]
|
|
2518
2518
|
return n&&e.push(n()),e}})}function x(e,t){var{encoder:n}=e
|
|
2519
2519
|
switch(t.op){case"Option":return I(e,function(e){var t=e.op1
|
|
2520
2520
|
return null===t?A:t}(t))
|
|
2521
2521
|
case"Label":return n.label(t.op1)
|
|
2522
2522
|
case"StartLabels":return n.startLabels()
|
|
2523
2523
|
case"StopLabels":return n.stopLabels()
|
|
2524
|
-
default:return(0,r.exhausted)(t)}}function O(e,t){L(e,function(e,t){switch(t.op){case"CompileBlock":return function(e,t){return function(e,t){var[,r,n,i,o]=e,a=
|
|
2524
|
+
default:return(0,r.exhausted)(t)}}function O(e,t){L(e,function(e,t){switch(t.op){case"CompileBlock":return function(e,t){return function(e,t){var[,r,n,i,o]=e,a=Z(o,t.meta),s=ee(r,t.meta,"Expected block head to be a string")
|
|
2525
2525
|
if("string"!=typeof s)return s
|
|
2526
2526
|
return t.syntax.macros.blocks.compile(s,n||[],i,a,t)}(t.op1,e)}(e,t)
|
|
2527
2527
|
case"CompileInline":return function(e,t){var{inline:r,ifUnhandled:n}=t.op1,i=function(e,t){return t.syntax.macros.inlines.compile(e,t)}(r,e)
|
|
2528
2528
|
return D(i)?i:n(r)}(e,t)
|
|
2529
|
-
case"DynamicComponent":return function(e,t){var{definition:r,attrs:n,params:i,args:o,blocks:a,atNames:s,curried:l}=t.op1,u=n&&n.length>0?
|
|
2530
|
-
return
|
|
2529
|
+
case"DynamicComponent":return function(e,t){var{definition:r,attrs:n,params:i,args:o,blocks:a,atNames:s,curried:l}=t.op1,u=n&&n.length>0?Q(n,e.meta):null,c=Array.isArray(a)||null===a?Z(a,e.meta):a
|
|
2530
|
+
return fe(e.meta,{definition:r,attrs:u,params:i,hash:o,atNames:s,blocks:c,curried:l})}(e,t)
|
|
2531
2531
|
case"IfResolvedComponent":return function(e,t){var{name:r,attrs:n,blocks:i,staticTemplate:o,dynamicTemplate:a,orElse:s}=t.op1,l=c(r,{resolver:e.syntax.program.resolver,meta:e.meta}),{meta:u}=e
|
|
2532
|
-
if(null!==l){var{handle:d,capabilities:h,compilable:p}=l,f=
|
|
2532
|
+
if(null!==l){var{handle:d,capabilities:h,compilable:p}=l,f=Q(n,u),m=Z(i,u)
|
|
2533
2533
|
return null!==p?o(d,h,p,{attrs:f,blocks:m}):a(d,h,{attrs:f,blocks:m})}if(s)return s()
|
|
2534
2534
|
throw new Error(`Compile Error: Cannot find component ${r}`)}(e,t)
|
|
2535
2535
|
default:return(0,r.exhausted)(t)}}(e,t))}function C(e,t,r){void 0!==r.op3?e.push(t,r.op,r.op1,r.op2,r.op3):void 0!==r.op2?e.push(t,r.op,r.op1,r.op2):void 0!==r.op1?e.push(t,r.op,r.op1):e.push(t,r.op)}e.MINIMAL_CAPABILITIES=u
|
|
@@ -2537,54 +2537,54 @@ class S{constructor(){this.names={},this.funcs=[]}add(e,t){this.names[e]=this.fu
|
|
|
2537
2537
|
return(0,this.funcs[n])(e,t)}}var T=new S
|
|
2538
2538
|
function P(e,t){if(void 0===t||0===t.length)return e
|
|
2539
2539
|
Array.isArray(e)||(e=[e])
|
|
2540
|
-
for(var r=0;r<t.length;r++)e.push(
|
|
2541
|
-
return e}function M(e,t,n,i){switch(n.op){case"SimpleArgs":N(e,t,function(e,t,n){var i=[],{count:o,actions:s}=
|
|
2540
|
+
for(var r=0;r<t.length;r++)e.push(oe(22,t[r]))
|
|
2541
|
+
return e}function M(e,t,n,i){switch(n.op){case"SimpleArgs":N(e,t,function(e,t,n){var i=[],{count:o,actions:s}=le(e)
|
|
2542
2542
|
i.push(s)
|
|
2543
2543
|
var l=o<<4
|
|
2544
2544
|
n&&(l|=8)
|
|
2545
2545
|
var u=r.EMPTY_ARRAY
|
|
2546
2546
|
if(t){u=t[0]
|
|
2547
|
-
for(var c=t[1],d=0;d<c.length;d++)i.push(
|
|
2547
|
+
for(var c=t[1],d=0;d<c.length;d++)i.push(oe("Expr",c[d]))}return i.push(oe(82,a(u),a(r.EMPTY_ARRAY),l)),i}(n.op1.params,n.op1.hash,n.op1.atNames),i)
|
|
2548
2548
|
break
|
|
2549
|
-
case"Expr":N(e,t,(f=n.op1,m=t.meta,Array.isArray(f)?T.compile(f,m):[h(f),
|
|
2549
|
+
case"Expr":N(e,t,(f=n.op1,m=t.meta,Array.isArray(f)?T.compile(f,m):[h(f),oe(30)]),i)
|
|
2550
2550
|
break
|
|
2551
2551
|
case"IfResolved":N(e,t,function(e,t){var{op1:r}=t,{kind:n,name:i,andThen:o,orElse:a,span:s}=r,l=function(e,t,r,n){switch(t){case"Modifier":return e.lookupModifier(r,n)
|
|
2552
2552
|
case"Helper":return e.lookupHelper(r,n)
|
|
2553
2553
|
case"ComponentDefinition":var i=e.lookupComponent(r,n)
|
|
2554
2554
|
return i&&i.handle}}(e.syntax.program.resolver,n,i,e.meta.owner)
|
|
2555
|
-
return null!==l?o(l):a?a():
|
|
2555
|
+
return null!==l?o(l):a?a():ie(`Unexpected ${n} ${i}`,s.start,s.end)}(t,n),i)
|
|
2556
2556
|
break
|
|
2557
2557
|
case"ResolveFree":throw new Error("Unimplemented HighLevelResolutionOpcode.ResolveFree")
|
|
2558
2558
|
case"ResolveContextualFree":var{freeVar:o,context:s}=n.op1
|
|
2559
|
-
if(t.meta.asPartial){N(e,t,[
|
|
2559
|
+
if(t.meta.asPartial){N(e,t,[oe(102,t.meta.upvars[o])],i)
|
|
2560
2560
|
break}switch(s){case 1:var l=t.meta.upvars[o]
|
|
2561
|
-
N(e,t,[
|
|
2561
|
+
N(e,t,[oe(21,0),oe(22,l)],i)
|
|
2562
2562
|
break
|
|
2563
2563
|
case 0:var u=t.syntax.program.resolver,c=t.meta.upvars[o],d=u.lookupHelper(c,t.meta.owner)
|
|
2564
|
-
N(e,t,d?p({handle:d,params:null,hash:null}):[
|
|
2564
|
+
N(e,t,d?p({handle:d,params:null,hash:null}):[oe(21,0),oe(22,c)],i)
|
|
2565
2565
|
break
|
|
2566
2566
|
default:throw new Error(`unimplemented: Can't evaluate expression in context ${s}`)}break
|
|
2567
2567
|
default:return(0,r.exhausted)(n)}var f,m}T.add(31,(e=>{var[,t]=e,r=[]
|
|
2568
|
-
for(var n of t)r.push(
|
|
2569
|
-
return r.push(
|
|
2568
|
+
for(var n of t)r.push(oe("Expr",n))
|
|
2569
|
+
return r.push(oe(27,t.length)),r})),T.add(30,((e,r)=>{var[,n,i,o]=e
|
|
2570
2570
|
if(function(e,t){if(!Array.isArray(e))return!1
|
|
2571
2571
|
if(n=e,n[0]>=34){var r=e[1]
|
|
2572
2572
|
return!(!t.upvars||"component"!==t.upvars[r])}var n
|
|
2573
|
-
return!1}(n,r)){if(!i||0===i.length)return
|
|
2573
|
+
return!1}(n,r)){if(!i||0===i.length)return oe("Error",{problem:"component helper requires at least one argument",start:0,end:0})
|
|
2574
2574
|
var[a,...l]=i
|
|
2575
2575
|
return function(e,r){var{definition:n,params:i,hash:o,atNames:a}=e
|
|
2576
|
-
return[
|
|
2577
|
-
return"string"!=typeof u?u:
|
|
2578
|
-
return P(
|
|
2579
|
-
return P(
|
|
2580
|
-
return P(
|
|
2581
|
-
return P(
|
|
2582
|
-
return P(
|
|
2583
|
-
return P(
|
|
2584
|
-
return P(
|
|
2585
|
-
return P(
|
|
2586
|
-
return[
|
|
2587
|
-
return[
|
|
2576
|
+
return[oe(0),oe("SimpleArgs",{params:i,hash:o,atNames:a}),oe(86),oe("Expr",n),oe(76,s(r)),oe(1),oe(35,t.$v0)]}({definition:a,params:l,hash:o,atNames:!1},r.owner)}var u=ee(n,r,"Expected call head to be a string")
|
|
2577
|
+
return"string"!=typeof u?u:oe("IfResolved",{kind:"Helper",name:u,andThen:e=>p({handle:e,params:i,hash:o}),span:{start:0,end:0}})})),T.add(32,(e=>{var[,t,r]=e
|
|
2578
|
+
return P(oe(21,t),r)})),T.add(33,(e=>{var[,t,r]=e
|
|
2579
|
+
return P(oe("ResolveFree",t),r)})),T.add(34,(e=>{var[,t,r]=e
|
|
2580
|
+
return P(oe("ResolveContextualFree",{freeVar:t,context:0}),r)})),T.add(35,(e=>{var[,t,r]=e
|
|
2581
|
+
return P(oe("ResolveContextualFree",{freeVar:t,context:1}),r)})),T.add(36,(e=>{var[,t,r]=e
|
|
2582
|
+
return P(oe("ResolveContextualFree",{freeVar:t,context:2}),r)})),T.add(37,(e=>{var[,t,r]=e
|
|
2583
|
+
return P(oe("ResolveContextualFree",{freeVar:t,context:3}),r)})),T.add(38,(e=>{var[,t,r]=e
|
|
2584
|
+
return P(oe("ResolveContextualFree",{freeVar:t,context:4}),r)})),T.add(39,(e=>{var[,t,r]=e
|
|
2585
|
+
return P(oe("ResolveContextualFree",{freeVar:t,context:5}),r)})),T.add(29,(()=>d(void 0))),T.add(27,(e=>{var[,t]=e
|
|
2586
|
+
return[oe("Expr",t),oe(25)]})),T.add(28,(e=>{var[,t]=e
|
|
2587
|
+
return[oe("Expr",t),oe(24),oe(60),oe(26)]}))
|
|
2588
2588
|
var A={"no-action":!0}
|
|
2589
2589
|
e.NONE=A
|
|
2590
2590
|
var R={"not-handled":!0}
|
|
@@ -2601,76 +2601,75 @@ else if("Resolution"===t.type)M(e.encoder,e,t,e.syntax.program.constants)
|
|
|
2601
2601
|
else if("Simple"===t.type)x(e,t)
|
|
2602
2602
|
else if("Error"!==t.type)throw(0,r.assertNever)(t,"unexpected action type")}e.UNHANDLED=R
|
|
2603
2603
|
class F{constructor(){var{blocks:e,inlines:r}=function(e,r){return e.add("if",((e,t,r)=>{if(!e||1!==e.length)throw new Error("SYNTAX ERROR: #if requires a single argument")
|
|
2604
|
-
return w({args:()=>({count:1,actions:[
|
|
2605
|
-
return w({args:()=>({count:1,actions:[
|
|
2606
|
-
return w({args:()=>({count:2,actions:[
|
|
2607
|
-
var{count:n,actions:i}=
|
|
2604
|
+
return w({args:()=>({count:1,actions:[oe("Expr",e[0]),oe(70)]}),ifTrue:()=>v(r.get("default")),ifFalse:()=>r.has("else")?v(r.get("else")):A})})),e.add("unless",((e,t,r)=>{if(!e||1!==e.length)throw new Error("SYNTAX ERROR: #unless requires a single argument")
|
|
2605
|
+
return w({args:()=>({count:1,actions:[oe("Expr",e[0]),oe(70)]}),ifTrue:()=>r.has("else")?v(r.get("else")):A,ifFalse:()=>v(r.get("default"))})})),e.add("with",((e,r,n)=>{if(!e||1!==e.length)throw new Error("SYNTAX ERROR: #with requires a single argument")
|
|
2606
|
+
return w({args:()=>({count:2,actions:[oe("Expr",e[0]),oe(32,t.$sp,0),oe(70)]}),ifTrue:()=>b(n.get("default"),1),ifFalse:()=>n.has("else")?v(n.get("else")):A})})),e.add("let",((e,t,r)=>{if(!e)return ie("let requires arguments",0,0)
|
|
2607
|
+
var{count:n,actions:i}=le(e)
|
|
2608
2608
|
return[i,b(r.get("default"),n)]})),e.add("each",((e,r,n)=>E({args(){var t
|
|
2609
|
-
return(t=r&&"key"===r[0][0]?[
|
|
2609
|
+
return(t=r&&"key"===r[0][0]?[oe("Expr",r[1][0])]:[d(null)]).push(oe("Expr",e[0])),{count:2,actions:t}},body(){var e=[oe(71,l("BODY"),l("ELSE")),oe(0),oe(32,t.$fp,1),oe(6,l("ITER")),oe("Label","ITER"),oe(73,l("BREAK")),oe("Label","BODY"),b(n.get("default"),2),oe(33,2),oe(4,l("FINALLY")),oe("Label","BREAK"),oe(1),oe(72),oe(4,l("FINALLY")),oe("Label","ELSE")]
|
|
2610
2610
|
return n.has("else")&&e.push(v(n.get("else"))),e}}))),e.add("in-element",((e,r,n)=>{if(!e||1!==e.length)throw new Error("SYNTAX ERROR: #in-element requires a single argument")
|
|
2611
2611
|
return w({args(){for(var[n,i]=r,o=[],a=0;a<n.length;a++){var s=n[a]
|
|
2612
2612
|
if("guid"!==s&&"insertBefore"!==s)throw new Error(`SYNTAX ERROR: #in-element does not take a \`${n[0]}\` option`)
|
|
2613
|
-
o.push(
|
|
2614
|
-
return[o,f(n,(()=>v(r.get("default"))))]}return v(r.get("default"))})),e.add("component",((e,t,r,n)=>{if("string"==typeof e[0]){var i=
|
|
2613
|
+
o.push(oe("Expr",i[a]))}return o.push(oe("Expr",e[0]),oe(32,t.$sp,0)),{count:4,actions:o}},ifTrue:()=>[oe(49),v(n.get("default")),oe(55)]})})),e.add("-with-dynamic-vars",((e,t,r)=>{if(t){var[n,i]=t,{actions:o}=le(i)
|
|
2614
|
+
return[o,f(n,(()=>v(r.get("default"))))]}return v(r.get("default"))})),e.add("component",((e,t,r,n)=>{if("string"==typeof e[0]){var i=he(n,e[0],t,r.get("default"))
|
|
2615
2615
|
if(D(i))return i}var[o,...a]=e
|
|
2616
|
-
return
|
|
2617
|
-
if("string"==typeof i){var o=
|
|
2616
|
+
return oe("DynamicComponent",{definition:o,attrs:null,params:a,args:t,atNames:!1,blocks:r,curried:!1})})),r.add("component",((e,t,r,n)=>{var i=t&&t[0]
|
|
2617
|
+
if("string"==typeof i){var o=he(n,i,r,null)
|
|
2618
2618
|
if(o!==R)return o}var[a,...s]=t
|
|
2619
|
-
return
|
|
2619
|
+
return fe(n.meta,{definition:a,attrs:null,params:s,hash:r,atNames:!1,blocks:X,curried:!1})})),{blocks:e,inlines:r}}(new z,new B)
|
|
2620
2620
|
this.blocks=e,this.inlines=r}}e.MacrosImpl=F
|
|
2621
2621
|
class z{constructor(){this.names=(0,r.dict)(),this.funcs=[]}add(e,t){this.funcs.push(t),this.names[e]=this.funcs.length-1}addMissing(e){this.missing=e}compile(e,t,r,n,i){var o=this.names[e],a={resolver:i.syntax.program.resolver,meta:i.meta}
|
|
2622
2622
|
return void 0===o?(0,this.missing)(e,t,r,n,a):(0,this.funcs[o])(t,r,n,a)}}class B{constructor(){this.names=(0,r.dict)(),this.funcs=[]}add(e,t){this.funcs.push(t),this.names[e]=this.funcs.length-1}addMissing(e){this.missing=e}compile(e,t){var r,n,i,[,o]=e
|
|
2623
2623
|
if(!Array.isArray(o))return R
|
|
2624
|
-
if(30===o[0]){var a=
|
|
2624
|
+
if(30===o[0]){var a=ee(o[1],t.meta,"Expected head of call to be a string")
|
|
2625
2625
|
if("string"!=typeof a)return a
|
|
2626
|
-
r=a,n=o[2],i=o[3]}else{if(!
|
|
2627
|
-
var s=
|
|
2626
|
+
r=a,n=o[2],i=o[3]}else{if(!re(o))return R
|
|
2627
|
+
var s=te(o,t.meta)
|
|
2628
2628
|
if(null===s)return R
|
|
2629
2629
|
r=s,n=null,i=null}var l=this.names[r],u={resolver:t.syntax.program.resolver,meta:t.meta}
|
|
2630
|
-
return void 0===l&&this.missing?(0,this.missing)(r,n,i,u):void 0!==l?(0,this.funcs[l])(r,n,i,u):R}}function H(e,t){return{syntax:e,encoder:new
|
|
2631
|
-
function $(e){return"string"==typeof e?e:q[e]}function W(e){return"string"==typeof e?e:V[e]}U.add(3,(e=>
|
|
2632
|
-
return"string"!=typeof o?o:
|
|
2633
|
-
return
|
|
2634
|
-
return
|
|
2635
|
-
return[
|
|
2636
|
-
return[
|
|
2637
|
-
return[
|
|
2638
|
-
return[
|
|
2639
|
-
return
|
|
2640
|
-
return[
|
|
2641
|
-
return"string"==typeof t?
|
|
2642
|
-
return[
|
|
2643
|
-
return[
|
|
2644
|
-
return w({args:()=>({count:2,actions:[
|
|
2630
|
+
return void 0===l&&this.missing?(0,this.missing)(r,n,i,u):void 0!==l?(0,this.funcs[l])(r,n,i,u):R}}function H(e,t){return{syntax:e,encoder:new ae,meta:t}}var U=new S,V=["class","id","value","name","type","style","href"],q=["div","span","p","a"]
|
|
2631
|
+
function $(e){return"string"==typeof e?e:q[e]}function W(e){return"string"==typeof e?e:V[e]}U.add(3,(e=>oe(41,e[1]))),U.add(13,(()=>oe(54))),U.add(12,(()=>oe(53))),U.add(4,((e,t)=>{var[,r,n,i]=e,o=ee(r,t,"Expected modifier head to be a string")
|
|
2632
|
+
return"string"!=typeof o?o:oe("IfResolved",{kind:"Modifier",name:o,andThen:e=>[oe(0),oe("SimpleArgs",{params:n,hash:i,atNames:!1}),oe(56,e),oe(1)],span:{start:0,end:0}})})),U.add(14,(e=>{var[,t,r,n]=e
|
|
2633
|
+
return oe(50,W(t),r,null!=n?n:null)})),U.add(24,(e=>{var[,t,r,n]=e
|
|
2634
|
+
return oe(105,W(t),r,null!=n?n:null)})),U.add(15,(e=>{var[,t,r,n]=e
|
|
2635
|
+
return[oe("Expr",r),oe(51,W(t),!1,null!=n?n:null)]})),U.add(22,(e=>{var[,t,r,n]=e
|
|
2636
|
+
return[oe("Expr",r),oe(51,W(t),!0,null!=n?n:null)]})),U.add(16,(e=>{var[,t,r,n]=e
|
|
2637
|
+
return[oe("Expr",r),oe(52,W(t),!1,null!=n?n:null)]})),U.add(23,(e=>{var[,t,r,n]=e
|
|
2638
|
+
return[oe("Expr",r),oe(52,W(t),!0,null!=n?n:null)]})),U.add(10,(e=>{var[,t]=e
|
|
2639
|
+
return oe(47,$(t))})),U.add(11,(e=>{var[,t]=e
|
|
2640
|
+
return[oe(89),oe(47,$(t))]})),U.add(8,(e=>{var[,t,r,n,i]=e
|
|
2641
|
+
return"string"==typeof t?oe("IfResolvedComponent",{name:t,attrs:r,blocks:i,staticTemplate:(e,t,r,i)=>{var{blocks:o,attrs:a}=i
|
|
2642
|
+
return[oe(77,e),pe({capabilities:t,layout:r,attrs:a,params:null,hash:n,blocks:o})]},dynamicTemplate:(e,t,r)=>{var{attrs:i,blocks:o}=r
|
|
2643
|
+
return[oe(77,e),me({capabilities:t,attrs:i,params:null,hash:n,atNames:!0,blocks:o})]}}):oe("DynamicComponent",{definition:t,attrs:r,params:null,args:n,blocks:i,atNames:!0,curried:!0})})),U.add(19,((e,r)=>{var[,n,i]=e
|
|
2644
|
+
return w({args:()=>({count:2,actions:[oe("Expr",n),oe(32,t.$sp,0)]}),ifTrue:()=>[oe(101,s(r.owner),a(r.evalSymbols),o(i)),oe(39),oe(1)]})})),U.add(18,(e=>{var[,t,r]=e
|
|
2645
2645
|
return m(t,r)})),U.add(17,(e=>{var[,t]=e
|
|
2646
2646
|
return m(t,r.EMPTY_ARRAY)})),U.add(26,((e,t)=>{var[,r]=e
|
|
2647
|
-
return
|
|
2648
|
-
return
|
|
2649
|
-
return"string"==typeof t?
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
e
|
|
2653
|
-
|
|
2654
|
-
return(
|
|
2655
|
-
return
|
|
2656
|
-
return
|
|
2657
|
-
return new G(n.statements,t,{parameters:n.parameters})}class X{constructor(e){this.blocks=e,this.names=e?Object.keys(e):[]}get(e){return this.blocks&&this.blocks[e]||null}has(e){var{blocks:t}=this
|
|
2647
|
+
return oe(103,a(t.evalSymbols),o(r))})),U.add(1,(e=>{var[,t]=e
|
|
2648
|
+
return oe("CompileInline",{inline:e,ifUnhandled:()=>[oe(0),oe("Expr",t),oe(3,{type:"stdlib",value:"cautious-append"}),oe(1)]})})),U.add(2,(e=>{var[,t]=e
|
|
2649
|
+
return"string"==typeof t?oe(40,t):[oe(0),oe("Expr",t),oe(3,{type:"stdlib",value:"trusting-append"}),oe(1)]})),U.add(6,(e=>oe("CompileBlock",e)))
|
|
2650
|
+
class K{constructor(e,t,r){this.statements=e,this.meta=t,this.symbolTable=r,this.compiled=null}compile(e){return function(e,t){if(null!==e.compiled)return e.compiled
|
|
2651
|
+
e.compiled=-1
|
|
2652
|
+
var{statements:r,meta:i}=e,o=Y(r,i,t)
|
|
2653
|
+
return(0,n.patchStdlibs)(t.program),e.compiled=o,o}(this,e)}}function G(e){var t=e.block
|
|
2654
|
+
return new K(t.statements,ue(e),{symbols:t.symbols,hasEval:t.hasEval})}function Y(e,t,r){for(var n=U,i=H(r,t),o=0;o<e.length;o++)L(i,n.compile(e[o],i.meta))
|
|
2655
|
+
return i.encoder.commit(r.program.heap,t.size)}function Q(e,t){var n=Array.isArray(e)?{statements:e,parameters:r.EMPTY_ARRAY}:e
|
|
2656
|
+
return new K(n.statements,t,{parameters:n.parameters})}class J{constructor(e){this.blocks=e,this.names=e?Object.keys(e):[]}get(e){return this.blocks&&this.blocks[e]||null}has(e){var{blocks:t}=this
|
|
2658
2657
|
return null!==t&&e in t}with(e,t){var{blocks:n}=this
|
|
2659
|
-
return new
|
|
2660
|
-
function
|
|
2661
|
-
for(var n=(0,r.dict)(),[i,o]=e,a=0;a<i.length;a++)n[i[a]]=
|
|
2662
|
-
return new
|
|
2658
|
+
return new J(n?(0,r.assign)({},n,{[e]:t}):{[e]:t})}get hasAny(){return null!==this.blocks}}var X=new J(null)
|
|
2659
|
+
function Z(e,t){if(null===e)return X
|
|
2660
|
+
for(var n=(0,r.dict)(),[i,o]=e,a=0;a<i.length;a++)n[i[a]]=Q(o[a],t)
|
|
2661
|
+
return new J(n)}function ee(e,t,r){if(!t.upvars)return ie(`${r}, but there were no free variables in the template`,0,0)
|
|
2663
2662
|
if(!Array.isArray(e))throw new Error(`${r}, got ${JSON.stringify(e)}`)
|
|
2664
|
-
if(
|
|
2665
|
-
if(null!==n)return n}throw new Error(`${r}, got ${JSON.stringify(e)}`)}function
|
|
2666
|
-
class
|
|
2667
|
-
e.patch(i,a)}}}function
|
|
2663
|
+
if(re(e)){var n=te(e,t)
|
|
2664
|
+
if(null!==n)return n}throw new Error(`${r}, got ${JSON.stringify(e)}`)}function te(e,t){return 3===e.length&&e[2].length>0?null:function(e){return e[0]>=33}(e)?t.upvars[e[1]]:null}function re(e){return e.length>=2&&e[0]>=32}e.EMPTY_BLOCKS=X,e.debugCompiler=undefined
|
|
2665
|
+
class ne{constructor(){this.labels=(0,r.dict)(),this.targets=[]}label(e,t){this.labels[e]=t}target(e,t){this.targets.push({at:e,target:t})}patch(e){for(var{targets:t,labels:r}=this,n=0;n<t.length;n++){var{at:i,target:o}=t[n],a=r[o]-i
|
|
2666
|
+
e.patch(i,a)}}}function ie(e,t,r){return oe("Error",{problem:e,start:t,end:r})}function oe(e,t,r,n){if("number"==typeof e)return void 0!==n?{type:"Number",op:e,op1:t,op2:r,op3:n}:void 0!==r?{type:"Number",op:e,op1:t,op2:r}:void 0!==t?{type:"Number",op:e,op1:t}:{type:"Number",op:e}
|
|
2668
2667
|
var i
|
|
2669
2668
|
if(function(e){return"CompileInline"===e||"CompileBlock"===e||"IfResolvedComponent"===e||"DynamicComponent"===e}(e))i="Compile"
|
|
2670
2669
|
else if(function(e){return"IfResolved"===e||"Expr"===e||"SimpleArgs"===e||"ResolveFree"===e||"ResolveContextualFree"===e}(e))i="Resolution"
|
|
2671
2670
|
else if(function(e){return"Label"===e||"Option"===e||"StartLabels"===e||"StopLabels"===e}(e))i="Simple"
|
|
2672
2671
|
else{if(!function(e){return"Error"===e}(e))throw new Error(`Exhausted ${e}`)
|
|
2673
|
-
i="Error"}return void 0===t?{type:i,op:e,op1:void 0}:{type:i,op:e,op1:t}}class
|
|
2672
|
+
i="Error"}return void 0===t?{type:i,op:e,op1:void 0}:{type:i,op:e,op1:t}}class ae{constructor(){this.labelsStack=new r.Stack,this.encoder=new i.InstructionEncoderImpl([]),this.errors=[]}error(e){this.encoder.encode(29,0),this.errors.push(e)}commit(e,t){this.encoder.encode(5,1024)
|
|
2674
2673
|
var r=function(e,t,r){for(var n=e.malloc(),i=0;i<r.length;i++){var o=r[i]
|
|
2675
2674
|
"function"==typeof o?e.pushPlaceholder(o):"object"==typeof o?e.pushStdlib(o):e.push(o)}return e.finishMalloc(n,t),n}(e,t,this.encoder.buffer)
|
|
2676
2675
|
return this.errors.length?{errors:this.errors,handle:r}:r}push(e,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o]
|
|
@@ -2686,60 +2685,60 @@ case"stdlib":return t
|
|
|
2686
2685
|
case"immediate":return(0,r.encodeImmediate)(t.value)
|
|
2687
2686
|
case"primitive":case"array":case"other":return(0,r.encodeHandle)(e.value(t.value))
|
|
2688
2687
|
case"lookup":throw(0,r.unreachable)("lookup not reachable")
|
|
2689
|
-
default:return(0,r.exhausted)(t)}}(e,t)}get currentLabels(){return this.labelsStack.current}label(e){this.currentLabels.label(e,this.encoder.size)}startLabels(){this.labelsStack.push(new
|
|
2690
|
-
var{count:c,actions:d}=
|
|
2688
|
+
default:return(0,r.exhausted)(t)}}(e,t)}get currentLabels(){return this.labelsStack.current}label(e){this.currentLabels.label(e,this.encoder.size)}startLabels(){this.labelsStack.push(new ne)}stopLabels(){this.labelsStack.pop().patch(this.encoder)}}function se(e){for(var{params:t,hash:n,blocks:i,atNames:o}=e,s=[],l=i.names,u=0;u<l.length;u++)s.push(g(i.get(l[u])))
|
|
2689
|
+
var{count:c,actions:d}=le(t)
|
|
2691
2690
|
s.push(d)
|
|
2692
2691
|
var h=c<<4
|
|
2693
2692
|
o&&(h|=8),i&&(h|=7)
|
|
2694
2693
|
var p=r.EMPTY_ARRAY
|
|
2695
2694
|
if(n){p=n[0]
|
|
2696
|
-
for(var f=n[1],m=0;m<f.length;m++)s.push(
|
|
2697
|
-
for(var t=[],r=0;r<e.length;r++)t.push(
|
|
2698
|
-
return{count:e.length,actions:t}}function
|
|
2699
|
-
return t.hasEval?t.symbols:null}var
|
|
2700
|
-
function
|
|
2695
|
+
for(var f=n[1],m=0;m<f.length;m++)s.push(oe("Expr",f[m]))}return s.push(oe(82,a(p),a(l),h)),s}function le(e){if(!e)return{count:0,actions:A}
|
|
2696
|
+
for(var t=[],r=0;r<e.length;r++)t.push(oe("Expr",e[r]))
|
|
2697
|
+
return{count:e.length,actions:t}}function ue(e){return{asPartial:e.asPartial||!1,evalSymbols:ce(e),upvars:e.block.upvars,moduleName:e.moduleName,owner:e.owner,size:e.block.symbols.length}}function ce(e){var{block:t}=e
|
|
2698
|
+
return t.hasEval?t.symbols:null}var de="&attrs"
|
|
2699
|
+
function he(e,t,r,n){var i=c(t,e)
|
|
2701
2700
|
if(null!==i){var{compilable:o,handle:a,capabilities:s}=i
|
|
2702
2701
|
if(o){if(r)for(var l=0;l<r[0].length;l+=1)r[0][l]=`@${r[0][l]}`
|
|
2703
|
-
var u=[
|
|
2704
|
-
return u.push(
|
|
2705
|
-
if(d.hasEval||n.prepareArgs)return
|
|
2706
|
-
var h=[
|
|
2707
|
-
if(null!==o){var y=p.indexOf(
|
|
2702
|
+
var u=[oe(77,a)]
|
|
2703
|
+
return u.push(pe({capabilities:s,layout:o,attrs:null,params:null,hash:r,blocks:new J({default:n})})),u}}return R}function pe(e){var{capabilities:n,layout:i,attrs:o,params:l,hash:u,blocks:c}=e,{symbolTable:d}=i
|
|
2704
|
+
if(d.hasEval||n.prepareArgs)return me({capabilities:n,attrs:o,params:l,hash:u,atNames:!0,blocks:c,layout:i})
|
|
2705
|
+
var h=[oe(35,t.$s0),oe(32,t.$sp,1),oe(34,t.$s0),oe(0)],{symbols:p}=d,f=[],m=[],v=[],b=c.names
|
|
2706
|
+
if(null!==o){var y=p.indexOf(de);-1!==y&&(h.push(g(o)),f.push(y))}for(var _=0;_<b.length;_++){var k=b[_],E=p.indexOf(`&${k}`);-1!==E&&(h.push(g(c.get(k))),f.push(E))}if(n.createArgs){var{count:w,actions:x}=le(l)
|
|
2708
2707
|
h.push(x)
|
|
2709
2708
|
var O=w<<4
|
|
2710
2709
|
O|=8
|
|
2711
2710
|
var C=r.EMPTY_ARRAY
|
|
2712
2711
|
if(null!==u){C=u[0]
|
|
2713
2712
|
for(var S=u[1],T=0;T<S.length;T++){var P=p.indexOf(C[T])
|
|
2714
|
-
h.push(
|
|
2715
|
-
for(var I=m.length-1;I>=0;I--){var N=m[I];-1===N?h.push(
|
|
2713
|
+
h.push(oe("Expr",S[T])),m.push(P)}}h.push(oe(82,a(C),a(r.EMPTY_ARRAY),O)),m.push(-1)}else if(null!==u)for(var M=u[0],A=u[1],R=0;R<A.length;R++){var j=M[R],D=p.indexOf(j);-1!==D&&(h.push(oe("Expr",A[R])),m.push(D),v.push(j))}h.push(oe(97,t.$s0)),n.dynamicScope&&h.push(oe(58)),n.createInstance&&h.push(oe(87,0|c.has("default"),t.$s0)),h.push(oe(88,t.$s0)),n.createArgs?h.push(oe(90,t.$s0)):h.push(oe(90,t.$s0,s(v))),h.push(oe(36,p.length+1,Object.keys(c).length>0?1:0),oe(19,0))
|
|
2714
|
+
for(var I=m.length-1;I>=0;I--){var N=m[I];-1===N?h.push(oe(33,1)):h.push(oe(19,N+1))}null!==l&&h.push(oe(33,l.length))
|
|
2716
2715
|
for(var L=f.length-1;L>=0;L--){var F=f[L]
|
|
2717
|
-
h.push(
|
|
2718
|
-
return E({args:()=>({count:2,actions:[
|
|
2719
|
-
return[
|
|
2720
|
-
return(e=l?[y(l.symbolTable),_(l),
|
|
2721
|
-
var o=[
|
|
2722
|
-
return i&&o.push(i()),o.push(
|
|
2723
|
-
return new
|
|
2724
|
-
var
|
|
2725
|
-
function
|
|
2726
|
-
I({encoder:r,meta:
|
|
2716
|
+
h.push(oe(20,F+1))}return h.push([oe(28,s(i)),oe(60),oe(2)]),h.push(oe(100,t.$s0)),h.push(oe(1),oe(39)),n.dynamicScope&&h.push(oe(59)),h.push(oe(98),oe(34,t.$s0)),h}function fe(e,r){var{definition:n,attrs:i,params:o,hash:a,atNames:u,blocks:c,curried:d}=r
|
|
2717
|
+
return E({args:()=>({count:2,actions:[oe("Expr",n),oe(32,t.$sp,0)]}),body:()=>[oe(65,l("ELSE")),d?oe(81):oe(80,s(e.owner)),oe(78),me({capabilities:!0,attrs:i,params:o,hash:a,atNames:u,blocks:c}),oe("Label","ELSE")]})}function me(e){var{capabilities:r,attrs:n,params:i,hash:o,atNames:a,blocks:s,layout:l}=e,u=!!s,c=!0===r||r.prepareArgs||!(!o||0===o[0].length),d=s.with("attrs",n)
|
|
2718
|
+
return[oe(35,t.$s0),oe(32,t.$sp,1),oe(34,t.$s0),oe(0),se({params:i,hash:o,blocks:d,atNames:a}),oe(85,t.$s0),ge(d.has("default"),u,c,(()=>{var e
|
|
2719
|
+
return(e=l?[y(l.symbolTable),_(l),oe(60)]:[oe(92,t.$s0)]).push(oe(95,t.$s0)),e})),oe(34,t.$s0)]}function ge(e,r,n,i){void 0===i&&(i=null)
|
|
2720
|
+
var o=[oe(97,t.$s0),oe(58),oe(87,0|e,t.$s0)]
|
|
2721
|
+
return i&&o.push(i()),o.push(oe(88,t.$s0),oe(90,t.$s0),oe(37,t.$s0),oe(19,0),oe(94,t.$s0),n?oe(17,t.$s0):A,r?oe(18,t.$s0):A,oe(33,1),oe(96,t.$s0),oe(100,t.$s0),oe(1),oe(39),oe(59),oe(98)),o}function ve(e){return Q(e.block.statements,ue(e))}class be{constructor(e,t,r){this.main=e,this.trustingGuardedAppend=t,this.cautiousGuardedAppend=r}get"trusting-append"(){return this.trustingGuardedAppend}get"cautious-append"(){return this.cautiousGuardedAppend}getAppend(e){return e?this.trustingGuardedAppend:this.cautiousGuardedAppend}}function ye(){return[oe(74,t.$s0),ge(!1,!1,!0)]}function _e(e){return[k((r=>{r(1,(()=>e?[oe(67),oe(42)]:oe(46))),r(0,(()=>[oe(79),oe(78),[oe(35,t.$s0),oe(32,t.$sp,1),oe(34,t.$s0),oe(0),oe(83),oe(85,t.$s0),ge(!1,!1,!0,(()=>[oe(92,t.$s0),oe(95,t.$s0)])),oe(34,t.$s0)]])),r(3,(()=>[oe(67),oe(43)])),r(4,(()=>[oe(67),oe(44)])),r(5,(()=>[oe(67),oe(45)]))}))]}function ke(e){var t=we(e,ye),r=we(e,(()=>_e(!0))),n=we(e,(()=>_e(!1)))
|
|
2722
|
+
return new be(t,r,n)}e.StdLib=be
|
|
2723
|
+
var Ee={asPartial:!1,evalSymbols:null,upvars:null,moduleName:"stdlib",owner:null,size:0}
|
|
2724
|
+
function we(e,t){var r=new ae,n=new F
|
|
2725
|
+
I({encoder:r,meta:Ee,syntax:{macros:n,program:e}},t())
|
|
2727
2726
|
var i=r.commit(e.heap,0)
|
|
2728
2727
|
if("number"!=typeof i)throw new Error("Unexpected errors compiling std")
|
|
2729
|
-
return i}class
|
|
2730
|
-
this.resolver=t,this.constants=r,this.heap=n,this.stdlib=
|
|
2728
|
+
return i}class xe{constructor(e,t){var{constants:r,heap:n}=e
|
|
2729
|
+
this.resolver=t,this.constants=r,this.heap=n,this.stdlib=ke(this)}}e.CompileTimeCompilationContextImpl=xe
|
|
2731
2730
|
e.PartialDefinitionImpl=class{constructor(e,t){this.name=e,this.template=t}getPartial(e){var t=(0,r.unwrapTemplate)(this.template).asPartial(),n=t.compile(e)
|
|
2732
2731
|
return{symbolTable:t.symbolTable,handle:n}}}
|
|
2733
|
-
class
|
|
2734
|
-
var{block:t}=e,r=t.symbols.slice(),n=r.indexOf(
|
|
2735
|
-
this.attrsBlockNumber=-1===n?r.push(
|
|
2736
|
-
var i,o,a,s,u=
|
|
2737
|
-
L(c,(i=this.layout,o=this.attrsBlockNumber,[
|
|
2732
|
+
class Oe{constructor(e){this.layout=e,this.compiled=null
|
|
2733
|
+
var{block:t}=e,r=t.symbols.slice(),n=r.indexOf(de)
|
|
2734
|
+
this.attrsBlockNumber=-1===n?r.push(de):n+1,this.symbolTable={hasEval:t.hasEval,symbols:r}}compile(e){if(null!==this.compiled)return this.compiled
|
|
2735
|
+
var i,o,a,s,u=ue(this.layout),c=H(e,u)
|
|
2736
|
+
L(c,(i=this.layout,o=this.attrsBlockNumber,[oe("StartLabels"),(a=t.$s1,s=()=>[oe(91,t.$s0),oe(30),oe(32,t.$sp,0)],[oe(35,a),s(),oe(34,a)]),oe(65,l("BODY")),oe(35,t.$s1),oe(89),oe(48),oe(99,t.$s0),m(o,r.EMPTY_ARRAY),oe(53),oe("Label","BODY"),v(ve(i)),oe(35,t.$s1),oe(65,l("END")),oe(54),oe("Label","END"),oe(34,t.$s1),oe("StopLabels")]))
|
|
2738
2737
|
var d=c.encoder.commit(c.syntax.program.heap,u.size)
|
|
2739
|
-
return"number"!=typeof d||(this.compiled=d,(0,n.patchStdlibs)(c.syntax.program)),d}}e.WrappedBuilder=
|
|
2740
|
-
var
|
|
2741
|
-
e.templateCacheCounters=
|
|
2742
|
-
class
|
|
2738
|
+
return"number"!=typeof d||(this.compiled=d,(0,n.patchStdlibs)(c.syntax.program)),d}}e.WrappedBuilder=Oe
|
|
2739
|
+
var Ce=0,Se={cacheHit:0,cacheMiss:0}
|
|
2740
|
+
e.templateCacheCounters=Se
|
|
2741
|
+
class Te{constructor(e){this.parsedLayout=e,this.result="ok",this.layout=null,this.partial=null,this.wrappedLayout=null}get moduleName(){return this.parsedLayout.moduleName}get id(){return this.parsedLayout.id}get referrer(){return{moduleName:this.parsedLayout.moduleName,owner:this.parsedLayout.owner}}asLayout(){return this.layout?this.layout:this.layout=G((0,r.assign)({},this.parsedLayout,{asPartial:!1}))}asPartial(){return this.partial?this.partial:this.layout=G((0,r.assign)({},this.parsedLayout,{asPartial:!0}))}asWrappedLayout(){return this.wrappedLayout?this.wrappedLayout:this.wrappedLayout=new Oe((0,r.assign)({},this.parsedLayout,{asPartial:!1}))}}})),e("@glimmer/program",["exports","@glimmer/util"],(function(e,t){"use strict"
|
|
2743
2742
|
Object.defineProperty(e,"__esModule",{value:!0}),e.RuntimeProgramImpl=e.RuntimeOpImpl=e.RuntimeHeapImpl=e.RuntimeConstantsImpl=e.HeapImpl=e.ConstantsImpl=e.CompileTimeConstantImpl=void 0,e.artifacts=function(){return{constants:new a,heap:new h}},e.hydrateHeap=function(e){return new d(e)},e.patchStdlibs=function(e){e.heap.patchStdlibs(e.stdlib)}
|
|
2744
2743
|
var r=Object.freeze([]),n=(0,t.constants)(r),i=n.indexOf(r)
|
|
2745
2744
|
class o{constructor(){this.values=n.slice(),this.indexMap=new Map(this.values.map(((e,t)=>[e,t])))}value(e){var t=this.indexMap,r=t.get(e)
|
|
@@ -5847,22 +5846,22 @@ i===o-1&&(c&&c.call(a,a),s&&s.resolver(a))},m(e,p,l)}})),d.each(["In","Out"],(fu
|
|
|
5847
5846
|
0!==i&&(l.begin=null),l.complete=i!==o-1?null:function(){u&&u.call(a,a),s&&s.resolver(a)},l.display===n&&(l.display="In"===t?"auto":"none"),m(this,c,l)}})),m}function k(e){var t=d.data(e,"velocity")
|
|
5848
5847
|
return null===t?n:t}function E(e,t){var r=k(e)
|
|
5849
5848
|
r&&r.delayTimer&&!r.delayPaused&&(r.delayRemaining=r.delay-t+r.delayBegin,r.delayPaused=!0,clearTimeout(r.delayTimer.setTimeout))}function w(e,t){var r=k(e)
|
|
5850
|
-
r&&r.delayTimer&&r.delayPaused&&(r.delayPaused=!1,r.delayTimer.setTimeout=setTimeout(r.delayTimer.next,r.delayRemaining))}function x(e){return function(t){return Math.round(t*e)*(1/e)}}function O(e,r,n,i){var o=4,a
|
|
5849
|
+
r&&r.delayTimer&&r.delayPaused&&(r.delayPaused=!1,r.delayTimer.setTimeout=setTimeout(r.delayTimer.next,r.delayRemaining))}function x(e){return function(t){return Math.round(t*e)*(1/e)}}function O(e,r,n,i){var o=4,a=1e-7,s=10,l=11,u=1/(l-1),c="Float32Array"in t
|
|
5851
5850
|
if(4!==arguments.length)return!1
|
|
5852
|
-
for(var
|
|
5851
|
+
for(var d=0;d<4;++d)if("number"!=typeof arguments[d]||isNaN(arguments[d])||!isFinite(arguments[d]))return!1
|
|
5853
5852
|
e=Math.min(e,1),n=Math.min(n,1),e=Math.max(e,0),n=Math.max(n,0)
|
|
5854
|
-
var
|
|
5855
|
-
function
|
|
5856
|
-
var
|
|
5857
|
-
return
|
|
5853
|
+
var h=c?new Float32Array(l):new Array(l)
|
|
5854
|
+
function p(e,t){return 1-3*t+3*e}function f(e,t){return 3*t-6*e}function m(e){return 3*e}function g(e,t,r){return((p(t,r)*e+f(t,r))*e+m(t))*e}function v(e,t,r){return 3*p(t,r)*e*e+2*f(t,r)*e+m(t)}function b(t){for(var r=0,i=1,c=l-1;i!==c&&h[i]<=t;++i)r+=u;--i
|
|
5855
|
+
var d=r+(t-h[i])/(h[i+1]-h[i])*u,p=v(d,e,n)
|
|
5856
|
+
return p>=.001?function(t,r){for(var i=0;i<o;++i){var a=v(r,e,n)
|
|
5858
5857
|
if(0===a)return r
|
|
5859
|
-
r-=(
|
|
5860
|
-
do{(o=
|
|
5861
|
-
return
|
|
5862
|
-
function
|
|
5863
|
-
|
|
5864
|
-
var
|
|
5865
|
-
return
|
|
5858
|
+
r-=(g(r,e,n)-t)/a}return r}(t,d):0===p?d:function(t,r,i){var o,l,u=0
|
|
5859
|
+
do{(o=g(l=r+(i-r)/2,e,n)-t)>0?i=l:r=l}while(Math.abs(o)>a&&++u<s)
|
|
5860
|
+
return l}(t,r,r+u)}var y=!1
|
|
5861
|
+
function _(){y=!0,e===r&&n===i||function(){for(var t=0;t<l;++t)h[t]=g(t*u,e,n)}()}var k=function(t){return y||_(),e===r&&n===i?t:0===t?0:1===t?1:g(b(t),r,i)}
|
|
5862
|
+
k.getControlPoints=function(){return[{x:e,y:r},{x:n,y:i}]}
|
|
5863
|
+
var E="generateBezier("+[e,r,n,i]+")"
|
|
5864
|
+
return k.toString=function(){return E},k}function C(e,t){var r=e
|
|
5866
5865
|
return h.isString(e)?m.Easings[e]||(r=!1):r=h.isArray(e)&&1===e.length?x.apply(null,e):h.isArray(e)&&2===e.length?g.apply(null,e.concat([t])):!(!h.isArray(e)||4!==e.length)&&O.apply(null,e),!1===r&&(r=m.Easings[m.defaults.easing]?m.defaults.easing:f),r}function S(e){if(e){var t=m.timestamp&&!0!==e?e:s.now(),r=m.State.calls.length
|
|
5867
5866
|
r>1e4&&(m.State.calls=function(e){for(var t=-1,r=e?e.length:0,n=[];++t<r;){var i=e[t]
|
|
5868
5867
|
i&&n.push(i)}return n}(m.State.calls),r=m.State.calls.length)
|
|
@@ -7192,7 +7191,7 @@ default:(0,u.default)("Cannot parse section from element",!1)}return r}}},{key:"
|
|
|
7192
7191
|
e.default=p})),define("mobiledoc-kit/parsers/text",["exports","mobiledoc-kit/utils/assert","mobiledoc-kit/models/types","mobiledoc-kit/models/markup-section"],(function(e,t,r,n){"use strict"
|
|
7193
7192
|
var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r]
|
|
7194
7193
|
n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()
|
|
7195
|
-
var o=/^\* (.*)$/,a=/^\d\.? (.*)$/,s="\n",l=new RegExp("\r","g"),u=new RegExp("\r"
|
|
7194
|
+
var o=/^\* (.*)$/,a=/^\d\.? (.*)$/,s="\n",l=new RegExp("\r","g"),u=new RegExp("\r\n","g"),c=s
|
|
7196
7195
|
e.SECTION_BREAK=c
|
|
7197
7196
|
var d=function(){function e(t,r){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.builder=t,this.options=r,this.post=this.builder.createPost(),this.prevSection=null}return i(e,[{key:"parse",value:function(e){var t=this
|
|
7198
7197
|
return(e=function(e){return e.replace(u,s).replace(l,s)}(e)).split(c).forEach((function(e){var r=t._parseSection(e)
|
|
@@ -9151,11 +9150,11 @@ const l="@sentry/ember:initial-load",u=s.getEntriesByName(t).length>0,c=s.getEnt
|
|
|
9151
9150
|
if(!u||!c)return
|
|
9152
9151
|
s.measure(l,t,i)
|
|
9153
9152
|
const d=s.getEntriesByName(l)[0],h=(d.startTime+n.browserPerformanceTimeOrigin)/1e3,p=h+d.duration/1e3,f=(0,r.getActiveTransaction)(),m=f?.startChild({op:"ui.ember.init",startTimestamp:h})
|
|
9154
|
-
m?.finish(p),s.clearMarks(t),s.clearMarks(i),s.clearMeasures(l)}async function h(e){const a=o(),h=a.sentry,p=a.browserTracingOptions||a.sentry.browserTracingOptions||{},f=await emberAutoImportDynamic("@sentry/
|
|
9155
|
-
h.integrations=[...g,new f
|
|
9153
|
+
m?.finish(p),s.clearMarks(t),s.clearMarks(i),s.clearMeasures(l)}async function h(e){const a=o(),h=a.sentry,p=a.browserTracingOptions||a.sentry.browserTracingOptions||{},{BrowserTracing:f}=await emberAutoImportDynamic("@sentry/browser"),m=a.transitionTimeout||5e3,g=h.integrations||[]
|
|
9154
|
+
h.integrations=[...g,new f({routingInstrumentation:(t,r)=>{const n=e.lookup("router:main")
|
|
9156
9155
|
let i=e.lookup("service:router")
|
|
9157
9156
|
i.externalRouter&&(i=i.externalRouter),i._hasMountedSentryPerformanceRouting||i.recognize&&(i._hasMountedSentryPerformanceRouting=!0,l(i,n,a,t,r))},idleTimeout:m,...p})]
|
|
9158
|
-
class v{constructor(){i(this,"name",v.id)}setupOnce(){}}i(v,"id",
|
|
9157
|
+
class v{constructor(){i(this,"name",v.id)}setupOnce(){}}i(v,"id","BrowserTracing"),t.init(h),function(e){const{disableRunloopPerformance:t,minimumRunloopQueueDuration:i}=e
|
|
9159
9158
|
if(t)return
|
|
9160
9159
|
let o,a
|
|
9161
9160
|
const l=["actions","routerTransitions","render","afterRender","destroy"]
|
|
@@ -14072,4 +14071,4 @@ return void 0===n&&(n=(0,t.createStorage)(null,(()=>!1)),r.set(e,n)),n}dirtyStor
|
|
|
14072
14071
|
r&&(0,t.setValue)(r,null)}constructor(e){o(this,"storages",new WeakMap),o(this,"vals",void 0),this.vals=new WeakSet(e)}has(e){return(0,t.getValue)(this.storageFor(e)),this.vals.has(e)}add(e){return this.vals.add(e),this.dirtyStorageFor(e),this}delete(e){return this.dirtyStorageFor(e),this.vals.delete(e)}get[i](){return this.vals[Symbol.toStringTag]}}e.TrackedWeakSet=s,Object.setPrototypeOf(s.prototype,WeakSet.prototype)})),define("tracked-built-ins/index",["exports","tracked-built-ins/-private/decorator","tracked-built-ins/-private/array","tracked-built-ins/-private/object","tracked-built-ins/-private/map","tracked-built-ins/-private/set"],(function(e,t,r,n,i,o){"use strict"
|
|
14073
14072
|
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"TrackedArray",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"TrackedMap",{enumerable:!0,get:function(){return i.TrackedMap}}),Object.defineProperty(e,"TrackedObject",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"TrackedSet",{enumerable:!0,get:function(){return o.TrackedSet}}),Object.defineProperty(e,"TrackedWeakMap",{enumerable:!0,get:function(){return i.TrackedWeakMap}}),Object.defineProperty(e,"TrackedWeakSet",{enumerable:!0,get:function(){return o.TrackedWeakSet}}),Object.defineProperty(e,"tracked",{enumerable:!0,get:function(){return t.default}})}))
|
|
14074
14073
|
|
|
14075
|
-
//# sourceMappingURL=vendor-
|
|
14074
|
+
//# sourceMappingURL=vendor-fcd4f09ebc985b1bd9ea37bdf7954c18.map
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<title>Ghost Admin</title>
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
<meta name="ghost-admin/config/environment" content="%7B%22modulePrefix%22%3A%22ghost-admin%22%2C%22environment%22%3A%22production%22%2C%22rootURL%22%3A%22%22%2C%22locationType%22%3A%22trailing-hash%22%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%2C%22EXTEND_PROTOTYPES%22%3A%7B%22Date%22%3Afalse%2C%22Array%22%3Atrue%2C%22String%22%3Atrue%2C%22Function%22%3Afalse%7D%2C%22_APPLICATION_TEMPLATE_WRAPPER%22%3Afalse%2C%22_JQUERY_INTEGRATION%22%3Atrue%2C%22_TEMPLATE_ONLY_GLIMMER_COMPONENTS%22%3Atrue%7D%2C%22APP%22%3A%7B%22version%22%3A%225.
|
|
11
|
+
<meta name="ghost-admin/config/environment" content="%7B%22modulePrefix%22%3A%22ghost-admin%22%2C%22environment%22%3A%22production%22%2C%22rootURL%22%3A%22%22%2C%22locationType%22%3A%22trailing-hash%22%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%2C%22EXTEND_PROTOTYPES%22%3A%7B%22Date%22%3Afalse%2C%22Array%22%3Atrue%2C%22String%22%3Atrue%2C%22Function%22%3Afalse%7D%2C%22_APPLICATION_TEMPLATE_WRAPPER%22%3Afalse%2C%22_JQUERY_INTEGRATION%22%3Atrue%2C%22_TEMPLATE_ONLY_GLIMMER_COMPONENTS%22%3Atrue%7D%2C%22APP%22%3A%7B%22version%22%3A%225.42%22%2C%22name%22%3A%22ghost-admin%22%7D%2C%22ember-simple-auth%22%3A%7B%7D%2C%22ember-websockets%22%3A%7B%22socketIO%22%3Atrue%7D%2C%22%40sentry%2Fember%22%3A%7B%22disablePerformance%22%3Atrue%2C%22sentry%22%3A%7B%7D%7D%2C%22ember-cli-mirage%22%3A%7B%22usingProxy%22%3Afalse%2C%22useDefaultPassthroughs%22%3Atrue%7D%2C%22exportApplicationGlobal%22%3Afalse%2C%22ember-load%22%3A%7B%22loadingIndicatorClass%22%3A%22ember-load-indicator%22%7D%7D" />
|
|
12
12
|
|
|
13
13
|
<meta name="HandheldFriendly" content="True" />
|
|
14
14
|
<meta name="MobileOptimized" content="320" />
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
</style>
|
|
38
38
|
|
|
39
39
|
<link integrity="" rel="stylesheet" href="assets/vendor-3e6947aa681f0fb82b193090e520dc73.css">
|
|
40
|
-
<link integrity="" rel="stylesheet" href="assets/ghost-
|
|
40
|
+
<link integrity="" rel="stylesheet" href="assets/ghost-0b2e282fd281b16ee656b554d7bc4863.css" title="light">
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
</head>
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
|
|
57
57
|
<div id="ember-basic-dropdown-wormhole"></div>
|
|
58
58
|
|
|
59
|
-
<script src="assets/vendor-
|
|
60
|
-
<script src="assets/chunk.
|
|
61
|
-
<script src="assets/chunk.143.
|
|
62
|
-
<script src="assets/ghost-
|
|
59
|
+
<script src="assets/vendor-fcd4f09ebc985b1bd9ea37bdf7954c18.js"></script>
|
|
60
|
+
<script src="assets/chunk.580.ca53e3417715b59cfb59.js"></script>
|
|
61
|
+
<script src="assets/chunk.143.5883751093d1b6e535c0.js"></script>
|
|
62
|
+
<script src="assets/ghost-744b6bcb745893e43bbdfaed2b931347.js"></script>
|
|
63
63
|
</body>
|
|
64
64
|
</html>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Usage: `{{ghost_head}}`
|
|
3
3
|
//
|
|
4
4
|
// Outputs scripts and other assets at the top of a Ghost theme
|
|
5
|
-
const {metaData, settingsCache, config, blogIcon, urlUtils, getFrontendKey} = require('../services/proxy');
|
|
5
|
+
const {labs, metaData, settingsCache, config, blogIcon, urlUtils, getFrontendKey} = require('../services/proxy');
|
|
6
6
|
const {escapeExpression, SafeString} = require('../services/handlebars');
|
|
7
7
|
|
|
8
8
|
// BAD REQUIRE
|
|
@@ -52,6 +52,7 @@ function getMembersHelper(data, frontendKey) {
|
|
|
52
52
|
|
|
53
53
|
const colorString = (_.has(data, 'site._preview') && data.site.accent_color) ? data.site.accent_color : '';
|
|
54
54
|
const attributes = {
|
|
55
|
+
i18n: labs.isSet('i18n'),
|
|
55
56
|
ghost: urlUtils.getSiteUrl(),
|
|
56
57
|
key: frontendKey,
|
|
57
58
|
api: urlUtils.urlFor('api', {type: 'content'}, true)
|