@performant-software/core-data 2.2.21-beta.19 → 2.2.21-beta.20
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/dist/index.cjs100.js +1 -1
- package/dist/index.cjs101.js +1 -1
- package/dist/index.cjs102.js +1 -1
- package/dist/index.cjs103.js +1 -1
- package/dist/index.cjs106.js +1 -1
- package/dist/index.cjs108.js +1 -1
- package/dist/index.cjs109.js +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs11.js.map +1 -1
- package/dist/index.cjs111.js +1 -1
- package/dist/index.cjs112.js +1 -1
- package/dist/index.cjs113.js +1 -1
- package/dist/index.cjs114.js +1 -1
- package/dist/index.cjs117.js +1 -1
- package/dist/index.cjs118.js +1 -1
- package/dist/index.cjs130.js +1 -1
- package/dist/index.cjs135.js +1 -1
- package/dist/index.cjs137.js +1 -1
- package/dist/index.cjs138.js +1 -1
- package/dist/index.cjs140.js +1 -1
- package/dist/index.cjs141.js +1 -1
- package/dist/index.cjs142.js +1 -1
- package/dist/index.cjs143.js +1 -1
- package/dist/index.cjs148.js +1 -1
- package/dist/index.cjs151.js +1 -1
- package/dist/index.cjs152.js +1 -1
- package/dist/index.cjs153.js +1 -1
- package/dist/index.cjs157.js +1 -1
- package/dist/index.cjs158.js +1 -1
- package/dist/index.cjs159.js +1 -1
- package/dist/index.cjs160.js +1 -1
- package/dist/index.cjs163.js +1 -1
- package/dist/index.cjs168.js +1 -1
- package/dist/index.cjs169.js +1 -1
- package/dist/index.cjs170.js +1 -1
- package/dist/index.cjs171.js +1 -1
- package/dist/index.cjs172.js +1 -1
- package/dist/index.cjs173.js +1 -1
- package/dist/index.cjs176.js +1 -1
- package/dist/index.cjs183.js +1 -1
- package/dist/index.cjs186.js +1 -1
- package/dist/index.cjs190.js +1 -1
- package/dist/index.cjs192.js +1 -1
- package/dist/index.cjs192.js.map +1 -1
- package/dist/index.cjs193.js +1 -1
- package/dist/index.cjs193.js.map +1 -1
- package/dist/index.cjs194.js +1 -1
- package/dist/index.cjs194.js.map +1 -1
- package/dist/index.cjs195.js +6 -1
- package/dist/index.cjs195.js.map +1 -1
- package/dist/index.cjs196.js +1 -1
- package/dist/index.cjs196.js.map +1 -1
- package/dist/index.cjs197.js +2 -1
- package/dist/index.cjs197.js.map +1 -1
- package/dist/index.cjs198.js +3 -1
- package/dist/index.cjs198.js.map +1 -1
- package/dist/index.cjs199.js +1 -1
- package/dist/index.cjs199.js.map +1 -1
- package/dist/index.cjs200.js +1 -1
- package/dist/index.cjs200.js.map +1 -1
- package/dist/index.cjs201.js +8 -1
- package/dist/index.cjs201.js.map +1 -1
- package/dist/index.cjs202.js +13 -1
- package/dist/index.cjs202.js.map +1 -1
- package/dist/index.cjs203.js +1 -1
- package/dist/index.cjs203.js.map +1 -1
- package/dist/index.cjs204.js +17 -1
- package/dist/index.cjs204.js.map +1 -1
- package/dist/index.cjs205.js +1 -1
- package/dist/index.cjs205.js.map +1 -1
- package/dist/index.cjs206.js +1 -1
- package/dist/index.cjs206.js.map +1 -1
- package/dist/index.cjs207.js +1 -1
- package/dist/index.cjs207.js.map +1 -1
- package/dist/index.cjs208.js +1 -1
- package/dist/index.cjs208.js.map +1 -1
- package/dist/index.cjs209.js +1 -1
- package/dist/index.cjs209.js.map +1 -1
- package/dist/index.cjs210.js +1 -1
- package/dist/index.cjs210.js.map +1 -1
- package/dist/index.cjs211.js +1 -1
- package/dist/index.cjs211.js.map +1 -1
- package/dist/index.cjs212.js +1 -1
- package/dist/index.cjs212.js.map +1 -1
- package/dist/index.cjs213.js +1 -1
- package/dist/index.cjs213.js.map +1 -1
- package/dist/index.cjs214.js +1 -1
- package/dist/index.cjs214.js.map +1 -1
- package/dist/index.cjs215.js +1 -1
- package/dist/index.cjs215.js.map +1 -1
- package/dist/index.cjs216.js +1 -1
- package/dist/index.cjs216.js.map +1 -1
- package/dist/index.cjs217.js +1 -1
- package/dist/index.cjs217.js.map +1 -1
- package/dist/index.cjs218.js +1 -1
- package/dist/index.cjs218.js.map +1 -1
- package/dist/index.cjs219.js +1 -1
- package/dist/index.cjs219.js.map +1 -1
- package/dist/index.cjs220.js +1 -1
- package/dist/index.cjs220.js.map +1 -1
- package/dist/index.cjs221.js +1 -1
- package/dist/index.cjs221.js.map +1 -1
- package/dist/index.cjs222.js +1 -1
- package/dist/index.cjs222.js.map +1 -1
- package/dist/index.cjs223.js +1 -6
- package/dist/index.cjs223.js.map +1 -1
- package/dist/index.cjs224.js +1 -1
- package/dist/index.cjs224.js.map +1 -1
- package/dist/index.cjs225.js +1 -2
- package/dist/index.cjs225.js.map +1 -1
- package/dist/index.cjs226.js +1 -3
- package/dist/index.cjs226.js.map +1 -1
- package/dist/index.cjs227.js +1 -1
- package/dist/index.cjs227.js.map +1 -1
- package/dist/index.cjs228.js +1 -1
- package/dist/index.cjs228.js.map +1 -1
- package/dist/index.cjs229.js +1 -8
- package/dist/index.cjs229.js.map +1 -1
- package/dist/index.cjs230.js +1 -13
- package/dist/index.cjs230.js.map +1 -1
- package/dist/index.cjs231.js +1 -1
- package/dist/index.cjs231.js.map +1 -1
- package/dist/index.cjs232.js +1 -17
- package/dist/index.cjs232.js.map +1 -1
- package/dist/index.cjs233.js +1 -1
- package/dist/index.cjs233.js.map +1 -1
- package/dist/index.cjs234.js +1 -1
- package/dist/index.cjs234.js.map +1 -1
- package/dist/index.cjs235.js +1 -1
- package/dist/index.cjs235.js.map +1 -1
- package/dist/index.cjs236.js +1 -1
- package/dist/index.cjs236.js.map +1 -1
- package/dist/index.cjs237.js +1 -1
- package/dist/index.cjs237.js.map +1 -1
- package/dist/index.cjs238.js +1 -1
- package/dist/index.cjs238.js.map +1 -1
- package/dist/index.cjs239.js +1 -1
- package/dist/index.cjs239.js.map +1 -1
- package/dist/index.cjs240.js +1 -1
- package/dist/index.cjs240.js.map +1 -1
- package/dist/index.cjs241.js +1 -1
- package/dist/index.cjs241.js.map +1 -1
- package/dist/index.cjs242.js +1 -1
- package/dist/index.cjs242.js.map +1 -1
- package/dist/index.cjs243.js +1 -1
- package/dist/index.cjs243.js.map +1 -1
- package/dist/index.cjs244.js +1 -1
- package/dist/index.cjs244.js.map +1 -1
- package/dist/index.cjs245.js +1 -1
- package/dist/index.cjs245.js.map +1 -1
- package/dist/index.cjs246.js +1 -1
- package/dist/index.cjs246.js.map +1 -1
- package/dist/index.cjs247.js +1 -1
- package/dist/index.cjs247.js.map +1 -1
- package/dist/index.cjs248.js +1 -1
- package/dist/index.cjs248.js.map +1 -1
- package/dist/index.cjs249.js +1 -1
- package/dist/index.cjs249.js.map +1 -1
- package/dist/index.cjs250.js +1 -1
- package/dist/index.cjs250.js.map +1 -1
- package/dist/index.cjs251.js +1 -1
- package/dist/index.cjs251.js.map +1 -1
- package/dist/index.cjs255.js +1 -1
- package/dist/index.cjs262.js +1 -1
- package/dist/index.cjs263.js +1 -1
- package/dist/index.cjs264.js +1 -1
- package/dist/index.cjs265.js +1 -1
- package/dist/index.cjs266.js +1 -1
- package/dist/index.cjs267.js +1 -1
- package/dist/index.cjs268.js +1 -1
- package/dist/index.cjs269.js +1 -1
- package/dist/index.cjs270.js +1 -1
- package/dist/index.cjs273.js +1 -1
- package/dist/index.cjs274.js +1 -1
- package/dist/index.cjs276.js +1 -1
- package/dist/index.cjs277.js +1 -1
- package/dist/index.cjs278.js +1 -1
- package/dist/index.cjs279.js +1 -1
- package/dist/index.cjs284.js +1 -1
- package/dist/index.cjs285.js +1 -1
- package/dist/index.cjs286.js +1 -1
- package/dist/index.cjs287.js +1 -1
- package/dist/index.cjs290.js +1 -1
- package/dist/index.cjs291.js +1 -1
- package/dist/index.cjs292.js +1 -1
- package/dist/index.cjs296.js +1 -1
- package/dist/index.cjs299.js +1 -1
- package/dist/index.cjs303.js +1 -1
- package/dist/index.cjs306.js +1 -1
- package/dist/index.cjs314.js +1 -1
- package/dist/index.cjs315.js +1 -1
- package/dist/index.cjs316.js +1 -1
- package/dist/index.cjs317.js +1 -1
- package/dist/index.cjs318.js +1 -1
- package/dist/index.cjs319.js +1 -1
- package/dist/index.cjs320.js +1 -1
- package/dist/index.cjs322.js +1 -1
- package/dist/index.cjs323.js +1 -1
- package/dist/index.cjs324.js +1 -1
- package/dist/index.cjs325.js +1 -1
- package/dist/index.cjs326.js +1 -1
- package/dist/index.cjs327.js +1 -1
- package/dist/index.cjs328.js +1 -1
- package/dist/index.cjs329.js +1 -1
- package/dist/index.cjs330.js +1 -1
- package/dist/index.cjs333.js +1 -1
- package/dist/index.cjs334.js +1 -1
- package/dist/index.cjs336.js +1 -1
- package/dist/index.cjs337.js +1 -1
- package/dist/index.cjs338.js +1 -1
- package/dist/index.cjs339.js +1 -1
- package/dist/index.cjs340.js +1 -1
- package/dist/index.cjs341.js +1 -1
- package/dist/index.cjs342.js +1 -1
- package/dist/index.cjs343.js +1 -1
- package/dist/index.cjs349.js +1 -1
- package/dist/index.cjs350.js +1 -1
- package/dist/index.cjs351.js +1 -1
- package/dist/index.cjs352.js +1 -1
- package/dist/index.cjs353.js +1 -1
- package/dist/index.cjs357.js +1 -1
- package/dist/index.cjs358.js +1 -1
- package/dist/index.cjs359.js +1 -1
- package/dist/index.cjs360.js +1 -1
- package/dist/index.cjs361.js +1 -1
- package/dist/index.cjs362.js +1 -1
- package/dist/index.cjs363.js +1 -1
- package/dist/index.cjs364.js +1 -1
- package/dist/index.cjs365.js +1 -1
- package/dist/index.cjs366.js +1 -1
- package/dist/index.cjs369.js +1 -1
- package/dist/index.cjs369.js.map +1 -1
- package/dist/index.cjs370.js +1 -1
- package/dist/index.cjs370.js.map +1 -1
- package/dist/index.cjs371.js +1 -1
- package/dist/index.cjs371.js.map +1 -1
- package/dist/index.cjs372.js +1 -1
- package/dist/index.cjs372.js.map +1 -1
- package/dist/index.cjs373.js +1 -1
- package/dist/index.cjs373.js.map +1 -1
- package/dist/index.cjs374.js +1 -1
- package/dist/index.cjs374.js.map +1 -1
- package/dist/index.cjs375.js +1 -1
- package/dist/index.cjs375.js.map +1 -1
- package/dist/index.cjs376.js +1 -1
- package/dist/index.cjs376.js.map +1 -1
- package/dist/index.cjs377.js +1 -1
- package/dist/index.cjs377.js.map +1 -1
- package/dist/index.cjs378.js +1 -1
- package/dist/index.cjs378.js.map +1 -1
- package/dist/index.cjs379.js +1 -1
- package/dist/index.cjs379.js.map +1 -1
- package/dist/index.cjs382.js +1 -1
- package/dist/index.cjs383.js +6 -1
- package/dist/index.cjs383.js.map +1 -1
- package/dist/index.cjs384.js +1 -1
- package/dist/index.cjs384.js.map +1 -1
- package/dist/index.cjs385.js +1 -1
- package/dist/index.cjs385.js.map +1 -1
- package/dist/index.cjs386.js +1 -6
- package/dist/index.cjs386.js.map +1 -1
- package/dist/index.cjs387.js +1 -1
- package/dist/index.cjs387.js.map +1 -1
- package/dist/index.cjs388.js +1 -1
- package/dist/index.cjs388.js.map +1 -1
- package/dist/index.cjs389.js +1 -1
- package/dist/index.cjs389.js.map +1 -1
- package/dist/index.cjs390.js +1 -1
- package/dist/index.cjs390.js.map +1 -1
- package/dist/index.cjs391.js +1 -1
- package/dist/index.cjs391.js.map +1 -1
- package/dist/index.cjs392.js +1 -1
- package/dist/index.cjs392.js.map +1 -1
- package/dist/index.cjs393.js +1 -1
- package/dist/index.cjs393.js.map +1 -1
- package/dist/index.cjs394.js +1 -1
- package/dist/index.cjs394.js.map +1 -1
- package/dist/index.cjs395.js +2 -1
- package/dist/index.cjs395.js.map +1 -1
- package/dist/index.cjs396.js +4 -1
- package/dist/index.cjs396.js.map +1 -1
- package/dist/index.cjs397.js +2 -1
- package/dist/index.cjs397.js.map +1 -1
- package/dist/index.cjs398.js +1 -2
- package/dist/index.cjs398.js.map +1 -1
- package/dist/index.cjs399.js +1 -4
- package/dist/index.cjs399.js.map +1 -1
- package/dist/index.cjs400.js +2 -2
- package/dist/index.cjs400.js.map +1 -1
- package/dist/index.cjs401.js +6 -1
- package/dist/index.cjs401.js.map +1 -1
- package/dist/index.cjs402.js +6 -1
- package/dist/index.cjs402.js.map +1 -1
- package/dist/index.cjs403.js +1 -2
- package/dist/index.cjs403.js.map +1 -1
- package/dist/index.cjs404.js +1 -6
- package/dist/index.cjs404.js.map +1 -1
- package/dist/index.cjs405.js +1 -6
- package/dist/index.cjs405.js.map +1 -1
- package/dist/index.cjs406.js +1 -1
- package/dist/index.cjs406.js.map +1 -1
- package/dist/index.cjs407.js +1 -1
- package/dist/index.cjs407.js.map +1 -1
- package/dist/index.cjs408.js +1 -1
- package/dist/index.cjs408.js.map +1 -1
- package/dist/index.cjs409.js +1 -1
- package/dist/index.cjs409.js.map +1 -1
- package/dist/index.cjs410.js +1 -1
- package/dist/index.cjs410.js.map +1 -1
- package/dist/index.cjs411.js +1 -1
- package/dist/index.cjs411.js.map +1 -1
- package/dist/index.cjs412.js +1 -1
- package/dist/index.cjs412.js.map +1 -1
- package/dist/index.cjs413.js +1 -1
- package/dist/index.cjs413.js.map +1 -1
- package/dist/index.cjs414.js +1 -1
- package/dist/index.cjs414.js.map +1 -1
- package/dist/index.cjs415.js +1 -1
- package/dist/index.cjs415.js.map +1 -1
- package/dist/index.cjs416.js +1 -1
- package/dist/index.cjs416.js.map +1 -1
- package/dist/index.cjs417.js +1 -1
- package/dist/index.cjs417.js.map +1 -1
- package/dist/index.cjs418.js +1 -4
- package/dist/index.cjs418.js.map +1 -1
- package/dist/index.cjs419.js +1 -1
- package/dist/index.cjs419.js.map +1 -1
- package/dist/index.cjs420.js +1 -1
- package/dist/index.cjs420.js.map +1 -1
- package/dist/index.cjs421.js +1 -1
- package/dist/index.cjs421.js.map +1 -1
- package/dist/index.cjs422.js +1 -1
- package/dist/index.cjs422.js.map +1 -1
- package/dist/index.cjs423.js +1 -1
- package/dist/index.cjs423.js.map +1 -1
- package/dist/index.cjs424.js +1 -1
- package/dist/index.cjs424.js.map +1 -1
- package/dist/index.cjs425.js +1 -1
- package/dist/index.cjs425.js.map +1 -1
- package/dist/index.cjs426.js +1 -1
- package/dist/index.cjs426.js.map +1 -1
- package/dist/index.cjs427.js +1 -1
- package/dist/index.cjs427.js.map +1 -1
- package/dist/index.cjs428.js +1 -1
- package/dist/index.cjs428.js.map +1 -1
- package/dist/index.cjs429.js +1 -1
- package/dist/index.cjs429.js.map +1 -1
- package/dist/index.cjs430.js +1 -1
- package/dist/index.cjs430.js.map +1 -1
- package/dist/index.cjs431.js +1 -1
- package/dist/index.cjs431.js.map +1 -1
- package/dist/index.cjs432.js +1 -1
- package/dist/index.cjs432.js.map +1 -1
- package/dist/index.cjs433.js +1 -1
- package/dist/index.cjs433.js.map +1 -1
- package/dist/index.cjs434.js +1 -1
- package/dist/index.cjs434.js.map +1 -1
- package/dist/index.cjs435.js +1 -1
- package/dist/index.cjs435.js.map +1 -1
- package/dist/index.cjs436.js +1 -1
- package/dist/index.cjs436.js.map +1 -1
- package/dist/index.cjs437.js +1 -1
- package/dist/index.cjs437.js.map +1 -1
- package/dist/index.cjs438.js +1 -1
- package/dist/index.cjs438.js.map +1 -1
- package/dist/index.cjs439.js +1 -1
- package/dist/index.cjs439.js.map +1 -1
- package/dist/index.cjs440.js +1 -1
- package/dist/index.cjs440.js.map +1 -1
- package/dist/index.cjs441.js +1 -1
- package/dist/index.cjs441.js.map +1 -1
- package/dist/index.cjs442.js +1 -1
- package/dist/index.cjs442.js.map +1 -1
- package/dist/index.cjs443.js +1 -1
- package/dist/index.cjs443.js.map +1 -1
- package/dist/index.cjs444.js +1 -1
- package/dist/index.cjs444.js.map +1 -1
- package/dist/index.cjs445.js +1 -1
- package/dist/index.cjs445.js.map +1 -1
- package/dist/index.cjs446.js +1 -1
- package/dist/index.cjs446.js.map +1 -1
- package/dist/index.cjs448.js +1 -1
- package/dist/index.cjs448.js.map +1 -1
- package/dist/index.cjs449.js +1 -1
- package/dist/index.cjs450.js +1 -1
- package/dist/index.cjs451.js +1 -1
- package/dist/index.cjs451.js.map +1 -1
- package/dist/index.cjs452.js +1 -1
- package/dist/index.cjs452.js.map +1 -1
- package/dist/index.cjs453.js +1 -1
- package/dist/index.cjs453.js.map +1 -1
- package/dist/index.cjs455.js +1 -1
- package/dist/index.cjs455.js.map +1 -1
- package/dist/index.cjs456.js +1 -1
- package/dist/index.cjs456.js.map +1 -1
- package/dist/index.cjs457.js +1 -1
- package/dist/index.cjs457.js.map +1 -1
- package/dist/index.cjs458.js +1 -1
- package/dist/index.cjs458.js.map +1 -1
- package/dist/index.cjs459.js +1 -1
- package/dist/index.cjs459.js.map +1 -1
- package/dist/index.cjs460.js +1 -1
- package/dist/index.cjs460.js.map +1 -1
- package/dist/index.cjs461.js +1 -1
- package/dist/index.cjs461.js.map +1 -1
- package/dist/index.cjs462.js +1 -1
- package/dist/index.cjs462.js.map +1 -1
- package/dist/index.cjs463.js +1 -1
- package/dist/index.cjs463.js.map +1 -1
- package/dist/index.cjs464.js +1 -1
- package/dist/index.cjs464.js.map +1 -1
- package/dist/index.cjs465.js +5 -1
- package/dist/index.cjs465.js.map +1 -1
- package/dist/index.cjs466.js +1 -1
- package/dist/index.cjs466.js.map +1 -1
- package/dist/index.cjs467.js +1 -1
- package/dist/index.cjs467.js.map +1 -1
- package/dist/index.cjs468.js +1 -1
- package/dist/index.cjs468.js.map +1 -1
- package/dist/index.cjs469.js +12 -1
- package/dist/index.cjs469.js.map +1 -1
- package/dist/index.cjs470.js +1 -1
- package/dist/index.cjs470.js.map +1 -1
- package/dist/index.cjs471.js +1 -2
- package/dist/index.cjs471.js.map +1 -1
- package/dist/index.cjs472.js +1 -1
- package/dist/index.cjs472.js.map +1 -1
- package/dist/index.cjs473.js +1 -1
- package/dist/index.cjs473.js.map +1 -1
- package/dist/index.cjs474.js +1 -1
- package/dist/index.cjs474.js.map +1 -1
- package/dist/index.cjs475.js +1 -1
- package/dist/index.cjs475.js.map +1 -1
- package/dist/index.cjs476.js +1 -1
- package/dist/index.cjs476.js.map +1 -1
- package/dist/index.cjs477.js +2 -1
- package/dist/index.cjs477.js.map +1 -1
- package/dist/index.cjs478.js +1 -1
- package/dist/index.cjs478.js.map +1 -1
- package/dist/index.cjs479.js +1 -1
- package/dist/index.cjs479.js.map +1 -1
- package/dist/index.cjs480.js +1 -1
- package/dist/index.cjs480.js.map +1 -1
- package/dist/index.cjs481.js +1 -1
- package/dist/index.cjs481.js.map +1 -1
- package/dist/index.cjs482.js +1 -1
- package/dist/index.cjs482.js.map +1 -1
- package/dist/index.cjs483.js +1 -1
- package/dist/index.cjs483.js.map +1 -1
- package/dist/index.cjs485.js +1 -1
- package/dist/index.cjs485.js.map +1 -1
- package/dist/index.cjs486.js +1 -1
- package/dist/index.cjs487.js +1 -1
- package/dist/index.cjs487.js.map +1 -1
- package/dist/index.cjs488.js +1 -5
- package/dist/index.cjs488.js.map +1 -1
- package/dist/index.cjs489.js +1 -1
- package/dist/index.cjs489.js.map +1 -1
- package/dist/index.cjs491.js +1 -1
- package/dist/index.cjs491.js.map +1 -1
- package/dist/index.cjs492.js +1 -12
- package/dist/index.cjs492.js.map +1 -1
- package/dist/index.cjs493.js +1 -1
- package/dist/index.cjs493.js.map +1 -1
- package/dist/index.cjs494.js +4 -1
- package/dist/index.cjs494.js.map +1 -1
- package/dist/index.cjs495.js +1 -1
- package/dist/index.cjs495.js.map +1 -1
- package/dist/index.cjs496.js.map +1 -1
- package/dist/index.cjs497.js +1 -1
- package/dist/index.cjs497.js.map +1 -1
- package/dist/index.cjs498.js +2 -2
- package/dist/index.cjs498.js.map +1 -1
- package/dist/index.cjs499.js.map +1 -1
- package/dist/index.cjs500.js +1 -1
- package/dist/index.cjs500.js.map +1 -1
- package/dist/index.cjs501.js +2 -2
- package/dist/index.cjs501.js.map +1 -1
- package/dist/index.cjs503.js +1 -38
- package/dist/index.cjs503.js.map +1 -1
- package/dist/index.cjs504.js +1 -1
- package/dist/index.cjs504.js.map +1 -1
- package/dist/index.cjs505.js +1 -1
- package/dist/index.cjs505.js.map +1 -1
- package/dist/index.cjs506.js +1 -1
- package/dist/index.cjs506.js.map +1 -1
- package/dist/index.cjs507.js +1 -1
- package/dist/index.cjs507.js.map +1 -1
- package/dist/index.cjs508.js +1 -1
- package/dist/index.cjs508.js.map +1 -1
- package/dist/index.cjs509.js +1 -1
- package/dist/index.cjs509.js.map +1 -1
- package/dist/index.cjs510.js +1 -1
- package/dist/index.cjs510.js.map +1 -1
- package/dist/index.cjs511.js +1 -1
- package/dist/index.cjs511.js.map +1 -1
- package/dist/index.cjs512.js +1 -1
- package/dist/index.cjs512.js.map +1 -1
- package/dist/index.cjs513.js +1 -1
- package/dist/index.cjs513.js.map +1 -1
- package/dist/index.cjs514.js +1 -1
- package/dist/index.cjs514.js.map +1 -1
- package/dist/index.cjs515.js +1 -1
- package/dist/index.cjs515.js.map +1 -1
- package/dist/index.cjs516.js +2 -1
- package/dist/index.cjs516.js.map +1 -1
- package/dist/index.cjs518.js +1 -1
- package/dist/index.cjs519.js +1 -1
- package/dist/index.cjs520.js +1 -1
- package/dist/index.cjs521.js +1 -1
- package/dist/index.cjs522.js +1 -1
- package/dist/index.cjs523.js +1 -1
- package/dist/index.cjs524.js +1 -1
- package/dist/index.cjs525.js +1 -1
- package/dist/index.cjs526.js +1 -1
- package/dist/index.cjs527.js +1 -1
- package/dist/index.cjs528.js +1 -1
- package/dist/index.cjs529.js +1 -1
- package/dist/index.cjs530.js +1 -1
- package/dist/index.cjs531.js +1 -1
- package/dist/index.cjs532.js +1 -1
- package/dist/index.cjs533.js +1 -1
- package/dist/index.cjs535.js +1 -1
- package/dist/index.cjs537.js +1 -1
- package/dist/index.cjs538.js +1 -1
- package/dist/index.cjs539.js +1 -1
- package/dist/index.cjs540.js +1 -1
- package/dist/index.cjs541.js +1 -1
- package/dist/index.cjs542.js +1 -1
- package/dist/index.cjs543.js +1 -1
- package/dist/index.cjs544.js +1 -1
- package/dist/index.cjs545.js +1 -1
- package/dist/index.cjs546.js +1 -1
- package/dist/index.cjs547.js +1 -1
- package/dist/index.cjs549.js +1 -1
- package/dist/index.cjs549.js.map +1 -1
- package/dist/index.cjs550.js +1 -1
- package/dist/index.cjs550.js.map +1 -1
- package/dist/index.cjs551.js +2 -1
- package/dist/index.cjs551.js.map +1 -1
- package/dist/index.cjs552.js +1 -1
- package/dist/index.cjs552.js.map +1 -1
- package/dist/index.cjs553.js +1 -2
- package/dist/index.cjs553.js.map +1 -1
- package/dist/index.cjs555.js +1 -1
- package/dist/index.cjs555.js.map +1 -1
- package/dist/index.cjs556.js +1 -1
- package/dist/index.cjs556.js.map +1 -1
- package/dist/index.cjs557.js +1 -2
- package/dist/index.cjs557.js.map +1 -1
- package/dist/index.cjs558.js +1 -1
- package/dist/index.cjs558.js.map +1 -1
- package/dist/index.cjs559.js +1 -1
- package/dist/index.cjs559.js.map +1 -1
- package/dist/index.cjs560.js +1 -1
- package/dist/index.cjs560.js.map +1 -1
- package/dist/index.cjs561.js +1 -1
- package/dist/index.cjs561.js.map +1 -1
- package/dist/index.cjs563.js +1 -1
- package/dist/index.cjs563.js.map +1 -1
- package/dist/index.cjs565.js +38 -1
- package/dist/index.cjs565.js.map +1 -1
- package/dist/index.cjs566.js +1 -1
- package/dist/index.cjs566.js.map +1 -1
- package/dist/index.cjs567.js +1 -1
- package/dist/index.cjs567.js.map +1 -1
- package/dist/index.cjs568.js +1 -1
- package/dist/index.cjs568.js.map +1 -1
- package/dist/index.cjs569.js +1 -1
- package/dist/index.cjs569.js.map +1 -1
- package/dist/index.cjs570.js +19 -19
- package/dist/index.cjs570.js.map +1 -1
- package/dist/index.cjs571.js.map +1 -1
- package/dist/index.cjs572.js +1 -1
- package/dist/index.cjs572.js.map +1 -1
- package/dist/index.cjs573.js +19 -19
- package/dist/index.cjs573.js.map +1 -1
- package/dist/index.cjs574.js.map +1 -1
- package/dist/index.cjs575.js +1 -1
- package/dist/index.cjs575.js.map +1 -1
- package/dist/index.cjs576.js +1 -1
- package/dist/index.cjs580.js +1 -1
- package/dist/index.cjs580.js.map +1 -1
- package/dist/index.cjs581.js +1 -1
- package/dist/index.cjs581.js.map +1 -1
- package/dist/index.cjs583.js +1 -1
- package/dist/index.cjs584.js +1 -1
- package/dist/index.cjs584.js.map +1 -1
- package/dist/index.cjs585.js +1 -1
- package/dist/index.cjs586.js +1 -1
- package/dist/index.cjs587.js +1 -1
- package/dist/index.cjs59.js +1 -1
- package/dist/index.cjs590.js +1 -1
- package/dist/index.cjs591.js +1 -1
- package/dist/index.cjs593.js +1 -1
- package/dist/index.cjs594.js +1 -1
- package/dist/index.cjs594.js.map +1 -1
- package/dist/index.cjs596.js +1 -1
- package/dist/index.cjs596.js.map +1 -1
- package/dist/index.cjs597.js +1 -1
- package/dist/index.cjs597.js.map +1 -1
- package/dist/index.cjs598.js +1 -1
- package/dist/index.cjs598.js.map +1 -1
- package/dist/index.cjs599.js +1 -1
- package/dist/index.cjs599.js.map +1 -1
- package/dist/index.cjs60.js +1 -1
- package/dist/index.cjs600.js +1 -1
- package/dist/index.cjs600.js.map +1 -1
- package/dist/index.cjs602.js +7 -1
- package/dist/index.cjs602.js.map +1 -1
- package/dist/index.cjs603.js +1 -7
- package/dist/index.cjs603.js.map +1 -1
- package/dist/index.cjs604.js +1 -1
- package/dist/index.cjs604.js.map +1 -1
- package/dist/index.cjs605.js +1 -1
- package/dist/index.cjs605.js.map +1 -1
- package/dist/index.cjs606.js +1 -1
- package/dist/index.cjs606.js.map +1 -1
- package/dist/index.cjs607.js +1 -1
- package/dist/index.cjs607.js.map +1 -1
- package/dist/index.cjs608.js +1 -1
- package/dist/index.cjs608.js.map +1 -1
- package/dist/index.cjs61.js +1 -1
- package/dist/index.cjs617.js +1 -1
- package/dist/index.cjs617.js.map +1 -1
- package/dist/index.cjs620.js +1 -1
- package/dist/index.cjs620.js.map +1 -1
- package/dist/index.cjs621.js +1 -1
- package/dist/index.cjs621.js.map +1 -1
- package/dist/index.cjs622.js +1 -1
- package/dist/index.cjs622.js.map +1 -1
- package/dist/index.cjs623.js +1 -1
- package/dist/index.cjs623.js.map +1 -1
- package/dist/index.cjs624.js +1 -1
- package/dist/index.cjs624.js.map +1 -1
- package/dist/index.cjs628.js +1 -1
- package/dist/index.cjs628.js.map +1 -1
- package/dist/index.cjs629.js +1 -1
- package/dist/index.cjs629.js.map +1 -1
- package/dist/index.cjs63.js +1 -1
- package/dist/index.cjs630.js +1 -1
- package/dist/index.cjs630.js.map +1 -1
- package/dist/index.cjs631.js +1 -1
- package/dist/index.cjs631.js.map +1 -1
- package/dist/index.cjs632.js +1 -1
- package/dist/index.cjs632.js.map +1 -1
- package/dist/index.cjs633.js +1 -1
- package/dist/index.cjs633.js.map +1 -1
- package/dist/index.cjs634.js +1 -1
- package/dist/index.cjs634.js.map +1 -1
- package/dist/index.cjs635.js +1 -1
- package/dist/index.cjs635.js.map +1 -1
- package/dist/index.cjs636.js +1 -1
- package/dist/index.cjs636.js.map +1 -1
- package/dist/index.cjs637.js +1 -1
- package/dist/index.cjs637.js.map +1 -1
- package/dist/index.cjs638.js +1 -1
- package/dist/index.cjs639.js +1 -1
- package/dist/index.cjs639.js.map +1 -1
- package/dist/index.cjs64.js +1 -1
- package/dist/index.cjs642.js +1 -1
- package/dist/index.cjs642.js.map +1 -1
- package/dist/index.cjs647.js +1 -1
- package/dist/index.cjs647.js.map +1 -1
- package/dist/index.cjs648.js +1 -1
- package/dist/index.cjs648.js.map +1 -1
- package/dist/index.cjs65.js +1 -1
- package/dist/index.cjs651.js +1 -1
- package/dist/index.cjs651.js.map +1 -1
- package/dist/index.cjs652.js +1 -1
- package/dist/index.cjs652.js.map +1 -1
- package/dist/index.cjs653.js +1 -1
- package/dist/index.cjs653.js.map +1 -1
- package/dist/index.cjs654.js +1 -1
- package/dist/index.cjs654.js.map +1 -1
- package/dist/index.cjs655.js.map +1 -1
- package/dist/index.cjs656.js.map +1 -1
- package/dist/index.cjs67.js +1 -1
- package/dist/index.cjs68.js +1 -1
- package/dist/index.cjs69.js +1 -1
- package/dist/index.cjs71.js +1 -1
- package/dist/index.cjs72.js +1 -1
- package/dist/index.cjs73.js +1 -1
- package/dist/index.cjs77.js +1 -1
- package/dist/index.cjs78.js +1 -1
- package/dist/index.cjs79.js +1 -1
- package/dist/index.cjs81.js +1 -1
- package/dist/index.cjs82.js +1 -1
- package/dist/index.cjs84.js +1 -1
- package/dist/index.cjs87.js +1 -1
- package/dist/index.cjs88.js +1 -1
- package/dist/index.cjs89.js +1 -1
- package/dist/index.cjs90.js +1 -1
- package/dist/index.cjs91.js +1 -1
- package/dist/index.cjs92.js +1 -1
- package/dist/index.cjs94.js +1 -1
- package/dist/index.cjs95.js +1 -1
- package/dist/index.cjs96.js +1 -1
- package/dist/index.cjs99.js +1 -1
- package/dist/index.es100.js +1 -1
- package/dist/index.es101.js +2 -2
- package/dist/index.es102.js +1 -1
- package/dist/index.es103.js +1 -1
- package/dist/index.es106.js +3 -3
- package/dist/index.es108.js +1 -1
- package/dist/index.es109.js +1 -1
- package/dist/index.es11.js +16 -16
- package/dist/index.es11.js.map +1 -1
- package/dist/index.es111.js +1 -1
- package/dist/index.es112.js +1 -1
- package/dist/index.es113.js +1 -1
- package/dist/index.es114.js +1 -1
- package/dist/index.es117.js +1 -1
- package/dist/index.es118.js +4 -4
- package/dist/index.es130.js +3 -3
- package/dist/index.es135.js +9 -9
- package/dist/index.es137.js +2 -2
- package/dist/index.es138.js +4 -4
- package/dist/index.es140.js +3 -3
- package/dist/index.es141.js +2 -2
- package/dist/index.es142.js +2 -2
- package/dist/index.es143.js +3 -3
- package/dist/index.es148.js +1 -1
- package/dist/index.es151.js +1 -1
- package/dist/index.es152.js +1 -1
- package/dist/index.es153.js +1 -1
- package/dist/index.es157.js +2 -2
- package/dist/index.es158.js +1 -1
- package/dist/index.es159.js +7 -7
- package/dist/index.es160.js +1 -1
- package/dist/index.es163.js +1 -1
- package/dist/index.es168.js +1 -1
- package/dist/index.es169.js +1 -1
- package/dist/index.es170.js +2 -2
- package/dist/index.es171.js +1 -1
- package/dist/index.es172.js +1 -1
- package/dist/index.es173.js +1 -1
- package/dist/index.es176.js +3 -3
- package/dist/index.es183.js +1 -1
- package/dist/index.es186.js +5 -5
- package/dist/index.es190.js +3 -3
- package/dist/index.es192.js +27 -10
- package/dist/index.es192.js.map +1 -1
- package/dist/index.es193.js +75 -6
- package/dist/index.es193.js.map +1 -1
- package/dist/index.es194.js +6 -46
- package/dist/index.es194.js.map +1 -1
- package/dist/index.es195.js +15 -9
- package/dist/index.es195.js.map +1 -1
- package/dist/index.es196.js +70 -11
- package/dist/index.es196.js.map +1 -1
- package/dist/index.es197.js +68 -4
- package/dist/index.es197.js.map +1 -1
- package/dist/index.es198.js +68 -177
- package/dist/index.es198.js.map +1 -1
- package/dist/index.es199.js +2 -22
- package/dist/index.es199.js.map +1 -1
- package/dist/index.es200.js +2 -25
- package/dist/index.es200.js.map +1 -1
- package/dist/index.es201.js +86 -377
- package/dist/index.es201.js.map +1 -1
- package/dist/index.es202.js +79 -510
- package/dist/index.es202.js.map +1 -1
- package/dist/index.es203.js +42 -4
- package/dist/index.es203.js.map +1 -1
- package/dist/index.es204.js +67 -10
- package/dist/index.es204.js.map +1 -1
- package/dist/index.es205.js +2 -12
- package/dist/index.es205.js.map +1 -1
- package/dist/index.es206.js +1632 -5
- package/dist/index.es206.js.map +1 -1
- package/dist/index.es207.js +32 -9
- package/dist/index.es207.js.map +1 -1
- package/dist/index.es208.js +260 -47
- package/dist/index.es208.js.map +1 -1
- package/dist/index.es209.js +33 -123
- package/dist/index.es209.js.map +1 -1
- package/dist/index.es210.js +10 -14
- package/dist/index.es210.js.map +1 -1
- package/dist/index.es211.js +3 -143
- package/dist/index.es211.js.map +1 -1
- package/dist/index.es212.js +21 -11
- package/dist/index.es212.js.map +1 -1
- package/dist/index.es213.js +10 -218
- package/dist/index.es213.js.map +1 -1
- package/dist/index.es214.js +4 -14
- package/dist/index.es214.js.map +1 -1
- package/dist/index.es215.js +43 -61
- package/dist/index.es215.js.map +1 -1
- package/dist/index.es216.js +10 -32
- package/dist/index.es216.js.map +1 -1
- package/dist/index.es217.js +11 -45
- package/dist/index.es217.js.map +1 -1
- package/dist/index.es218.js +4 -30
- package/dist/index.es218.js.map +1 -1
- package/dist/index.es219.js +180 -10
- package/dist/index.es219.js.map +1 -1
- package/dist/index.es220.js +22 -28
- package/dist/index.es220.js.map +1 -1
- package/dist/index.es221.js +27 -75
- package/dist/index.es221.js.map +1 -1
- package/dist/index.es222.js +381 -5
- package/dist/index.es222.js.map +1 -1
- package/dist/index.es223.js +515 -15
- package/dist/index.es223.js.map +1 -1
- package/dist/index.es224.js +3 -70
- package/dist/index.es224.js.map +1 -1
- package/dist/index.es225.js +11 -68
- package/dist/index.es225.js.map +1 -1
- package/dist/index.es226.js +11 -70
- package/dist/index.es226.js.map +1 -1
- package/dist/index.es227.js +7 -2
- package/dist/index.es227.js.map +1 -1
- package/dist/index.es228.js +12 -2
- package/dist/index.es228.js.map +1 -1
- package/dist/index.es229.js +50 -88
- package/dist/index.es229.js.map +1 -1
- package/dist/index.es230.js +120 -81
- package/dist/index.es230.js.map +1 -1
- package/dist/index.es231.js +13 -40
- package/dist/index.es231.js.map +1 -1
- package/dist/index.es232.js +135 -59
- package/dist/index.es232.js.map +1 -1
- package/dist/index.es233.js +11 -2
- package/dist/index.es233.js.map +1 -1
- package/dist/index.es234.js +209 -1624
- package/dist/index.es234.js.map +1 -1
- package/dist/index.es235.js +14 -35
- package/dist/index.es235.js.map +1 -1
- package/dist/index.es236.js +55 -257
- package/dist/index.es236.js.map +1 -1
- package/dist/index.es237.js +32 -34
- package/dist/index.es237.js.map +1 -1
- package/dist/index.es238.js +45 -10
- package/dist/index.es238.js.map +1 -1
- package/dist/index.es239.js +29 -3
- package/dist/index.es239.js.map +1 -1
- package/dist/index.es240.js +10 -21
- package/dist/index.es240.js.map +1 -1
- package/dist/index.es241.js +14 -5
- package/dist/index.es241.js.map +1 -1
- package/dist/index.es242.js +17 -5
- package/dist/index.es242.js.map +1 -1
- package/dist/index.es243.js +20 -22
- package/dist/index.es243.js.map +1 -1
- package/dist/index.es244.js +5 -14
- package/dist/index.es244.js.map +1 -1
- package/dist/index.es245.js +5 -17
- package/dist/index.es245.js.map +1 -1
- package/dist/index.es246.js +24 -10
- package/dist/index.es246.js.map +1 -1
- package/dist/index.es247.js +9 -10
- package/dist/index.es247.js.map +1 -1
- package/dist/index.es248.js +12 -4
- package/dist/index.es248.js.map +1 -1
- package/dist/index.es249.js +4 -22
- package/dist/index.es249.js.map +1 -1
- package/dist/index.es250.js +22 -25
- package/dist/index.es250.js.map +1 -1
- package/dist/index.es251.js +24 -22
- package/dist/index.es251.js.map +1 -1
- package/dist/index.es255.js +1 -1
- package/dist/index.es262.js +1 -1
- package/dist/index.es263.js +1 -1
- package/dist/index.es264.js +1 -1
- package/dist/index.es265.js +1 -1
- package/dist/index.es266.js +1 -1
- package/dist/index.es267.js +1 -1
- package/dist/index.es268.js +1 -1
- package/dist/index.es269.js +1 -1
- package/dist/index.es270.js +1 -1
- package/dist/index.es273.js +1 -1
- package/dist/index.es274.js +1 -1
- package/dist/index.es276.js +3 -3
- package/dist/index.es277.js +1 -1
- package/dist/index.es278.js +2 -2
- package/dist/index.es279.js +1 -1
- package/dist/index.es284.js +1 -1
- package/dist/index.es285.js +1 -1
- package/dist/index.es286.js +1 -1
- package/dist/index.es287.js +1 -1
- package/dist/index.es290.js +2 -2
- package/dist/index.es291.js +2 -2
- package/dist/index.es292.js +1 -1
- package/dist/index.es296.js +2 -2
- package/dist/index.es299.js +1 -1
- package/dist/index.es303.js +1 -1
- package/dist/index.es306.js +1 -1
- package/dist/index.es314.js +1 -1
- package/dist/index.es315.js +1 -1
- package/dist/index.es316.js +1 -1
- package/dist/index.es317.js +2 -2
- package/dist/index.es318.js +1 -1
- package/dist/index.es319.js +1 -1
- package/dist/index.es320.js +1 -1
- package/dist/index.es322.js +2 -2
- package/dist/index.es323.js +2 -2
- package/dist/index.es324.js +1 -1
- package/dist/index.es325.js +1 -1
- package/dist/index.es326.js +1 -1
- package/dist/index.es327.js +1 -1
- package/dist/index.es328.js +2 -2
- package/dist/index.es329.js +2 -2
- package/dist/index.es330.js +1 -1
- package/dist/index.es333.js +2 -2
- package/dist/index.es334.js +2 -2
- package/dist/index.es336.js +2 -2
- package/dist/index.es337.js +1 -1
- package/dist/index.es338.js +2 -2
- package/dist/index.es339.js +1 -1
- package/dist/index.es340.js +2 -2
- package/dist/index.es341.js +1 -1
- package/dist/index.es342.js +1 -1
- package/dist/index.es343.js +1 -1
- package/dist/index.es349.js +1 -1
- package/dist/index.es350.js +2 -2
- package/dist/index.es351.js +1 -1
- package/dist/index.es352.js +1 -1
- package/dist/index.es353.js +1 -1
- package/dist/index.es357.js +1 -1
- package/dist/index.es358.js +1 -1
- package/dist/index.es359.js +1 -1
- package/dist/index.es360.js +1 -1
- package/dist/index.es361.js +2 -2
- package/dist/index.es362.js +1 -1
- package/dist/index.es363.js +5 -5
- package/dist/index.es364.js +2 -2
- package/dist/index.es365.js +6 -6
- package/dist/index.es366.js +2 -2
- package/dist/index.es369.js +3 -27
- package/dist/index.es369.js.map +1 -1
- package/dist/index.es370.js +8 -29
- package/dist/index.es370.js.map +1 -1
- package/dist/index.es371.js +7 -5
- package/dist/index.es371.js.map +1 -1
- package/dist/index.es372.js +260 -3
- package/dist/index.es372.js.map +1 -1
- package/dist/index.es373.js +85 -10
- package/dist/index.es373.js.map +1 -1
- package/dist/index.es374.js +339 -9
- package/dist/index.es374.js.map +1 -1
- package/dist/index.es375.js +12 -263
- package/dist/index.es375.js.map +1 -1
- package/dist/index.es376.js +46 -84
- package/dist/index.es376.js.map +1 -1
- package/dist/index.es377.js +4 -339
- package/dist/index.es377.js.map +1 -1
- package/dist/index.es378.js +4 -12
- package/dist/index.es378.js.map +1 -1
- package/dist/index.es379.js +4 -47
- package/dist/index.es379.js.map +1 -1
- package/dist/index.es381.js +2 -2
- package/dist/index.es382.js +2 -2
- package/dist/index.es383.js +43 -2
- package/dist/index.es383.js.map +1 -1
- package/dist/index.es384.js +13 -2
- package/dist/index.es384.js.map +1 -1
- package/dist/index.es385.js +349 -2
- package/dist/index.es385.js.map +1 -1
- package/dist/index.es386.js +220 -39
- package/dist/index.es386.js.map +1 -1
- package/dist/index.es387.js +36 -10
- package/dist/index.es387.js.map +1 -1
- package/dist/index.es388.js +7 -348
- package/dist/index.es388.js.map +1 -1
- package/dist/index.es389.js +38 -221
- package/dist/index.es389.js.map +1 -1
- package/dist/index.es390.js +16 -36
- package/dist/index.es390.js.map +1 -1
- package/dist/index.es391.js +18 -6
- package/dist/index.es391.js.map +1 -1
- package/dist/index.es392.js +8 -39
- package/dist/index.es392.js.map +1 -1
- package/dist/index.es393.js +14 -16
- package/dist/index.es393.js.map +1 -1
- package/dist/index.es394.js +20 -16
- package/dist/index.es394.js.map +1 -1
- package/dist/index.es395.js +131 -8
- package/dist/index.es395.js.map +1 -1
- package/dist/index.es396.js +18 -15
- package/dist/index.es396.js.map +1 -1
- package/dist/index.es397.js +18 -23
- package/dist/index.es397.js.map +1 -1
- package/dist/index.es398.js +15 -129
- package/dist/index.es398.js.map +1 -1
- package/dist/index.es399.js +33 -18
- package/dist/index.es399.js.map +1 -1
- package/dist/index.es400.js +217 -18
- package/dist/index.es400.js.map +1 -1
- package/dist/index.es401.js +40 -19
- package/dist/index.es401.js.map +1 -1
- package/dist/index.es402.js +17 -34
- package/dist/index.es402.js.map +1 -1
- package/dist/index.es403.js +25 -215
- package/dist/index.es403.js.map +1 -1
- package/dist/index.es404.js +27 -38
- package/dist/index.es404.js.map +1 -1
- package/dist/index.es405.js +5 -18
- package/dist/index.es405.js.map +1 -1
- package/dist/index.es406.js +9 -9
- package/dist/index.es406.js.map +1 -1
- package/dist/index.es407.js +1 -1
- package/dist/index.es407.js.map +1 -1
- package/dist/index.es408.js +10 -29
- package/dist/index.es408.js.map +1 -1
- package/dist/index.es409.js +29 -5
- package/dist/index.es409.js.map +1 -1
- package/dist/index.es410.js +5 -11
- package/dist/index.es410.js.map +1 -1
- package/dist/index.es411.js +11 -10
- package/dist/index.es411.js.map +1 -1
- package/dist/index.es412.js +9 -4
- package/dist/index.es412.js.map +1 -1
- package/dist/index.es413.js +5 -12
- package/dist/index.es413.js.map +1 -1
- package/dist/index.es414.js +12 -10
- package/dist/index.es414.js.map +1 -1
- package/dist/index.es415.js +8 -5
- package/dist/index.es415.js.map +1 -1
- package/dist/index.es416.js +5 -3
- package/dist/index.es416.js.map +1 -1
- package/dist/index.es417.js +4 -24
- package/dist/index.es417.js.map +1 -1
- package/dist/index.es418.js +3 -110
- package/dist/index.es418.js.map +1 -1
- package/dist/index.es419.js +3 -16
- package/dist/index.es419.js.map +1 -1
- package/dist/index.es420.js +8 -7
- package/dist/index.es420.js.map +1 -1
- package/dist/index.es421.js +21 -4
- package/dist/index.es421.js.map +1 -1
- package/dist/index.es422.js +22 -4
- package/dist/index.es422.js.map +1 -1
- package/dist/index.es423.js +14 -3
- package/dist/index.es423.js.map +1 -1
- package/dist/index.es424.js +17 -3
- package/dist/index.es424.js.map +1 -1
- package/dist/index.es425.js +5 -8
- package/dist/index.es425.js.map +1 -1
- package/dist/index.es426.js +8 -21
- package/dist/index.es426.js.map +1 -1
- package/dist/index.es427.js +6 -21
- package/dist/index.es427.js.map +1 -1
- package/dist/index.es428.js +19 -11
- package/dist/index.es428.js.map +1 -1
- package/dist/index.es429.js +8 -15
- package/dist/index.es429.js.map +1 -1
- package/dist/index.es430.js +9 -6
- package/dist/index.es430.js.map +1 -1
- package/dist/index.es431.js +4 -9
- package/dist/index.es431.js.map +1 -1
- package/dist/index.es432.js +10 -6
- package/dist/index.es432.js.map +1 -1
- package/dist/index.es433.js +8 -21
- package/dist/index.es433.js.map +1 -1
- package/dist/index.es434.js +22 -9
- package/dist/index.es434.js.map +1 -1
- package/dist/index.es435.js +12 -9
- package/dist/index.es435.js.map +1 -1
- package/dist/index.es436.js +19 -4
- package/dist/index.es436.js.map +1 -1
- package/dist/index.es437.js +4 -11
- package/dist/index.es437.js.map +1 -1
- package/dist/index.es438.js +17 -8
- package/dist/index.es438.js.map +1 -1
- package/dist/index.es439.js +11 -22
- package/dist/index.es439.js.map +1 -1
- package/dist/index.es440.js +3 -11
- package/dist/index.es440.js.map +1 -1
- package/dist/index.es441.js +4 -18
- package/dist/index.es441.js.map +1 -1
- package/dist/index.es442.js +6 -4
- package/dist/index.es442.js.map +1 -1
- package/dist/index.es443.js +2 -18
- package/dist/index.es443.js.map +1 -1
- package/dist/index.es444.js +321 -11
- package/dist/index.es444.js.map +1 -1
- package/dist/index.es445.js +2 -4
- package/dist/index.es445.js.map +1 -1
- package/dist/index.es446.js +2 -5
- package/dist/index.es446.js.map +1 -1
- package/dist/index.es448.js +13 -320
- package/dist/index.es448.js.map +1 -1
- package/dist/index.es449.js +2 -2
- package/dist/index.es450.js +2 -2
- package/dist/index.es451.js +48 -2
- package/dist/index.es451.js.map +1 -1
- package/dist/index.es452.js +37 -14
- package/dist/index.es452.js.map +1 -1
- package/dist/index.es453.js +43 -2
- package/dist/index.es453.js.map +1 -1
- package/dist/index.es455.js +15 -47
- package/dist/index.es455.js.map +1 -1
- package/dist/index.es456.js +2 -38
- package/dist/index.es456.js.map +1 -1
- package/dist/index.es457.js +15 -42
- package/dist/index.es457.js.map +1 -1
- package/dist/index.es458.js +16 -2
- package/dist/index.es458.js.map +1 -1
- package/dist/index.es459.js +16 -14
- package/dist/index.es459.js.map +1 -1
- package/dist/index.es460.js +20 -2
- package/dist/index.es460.js.map +1 -1
- package/dist/index.es461.js +2 -16
- package/dist/index.es461.js.map +1 -1
- package/dist/index.es462.js +8 -16
- package/dist/index.es462.js.map +1 -1
- package/dist/index.es463.js +4 -18
- package/dist/index.es463.js.map +1 -1
- package/dist/index.es464.js +4 -20
- package/dist/index.es464.js.map +1 -1
- package/dist/index.es465.js +161 -2
- package/dist/index.es465.js.map +1 -1
- package/dist/index.es466.js +5 -6
- package/dist/index.es466.js.map +1 -1
- package/dist/index.es467.js +4 -227
- package/dist/index.es467.js.map +1 -1
- package/dist/index.es468.js +88 -2
- package/dist/index.es468.js.map +1 -1
- package/dist/index.es469.js +183 -345
- package/dist/index.es469.js.map +1 -1
- package/dist/index.es470.js +88 -2
- package/dist/index.es470.js.map +1 -1
- package/dist/index.es471.js +12 -37
- package/dist/index.es471.js.map +1 -1
- package/dist/index.es472.js +317 -49
- package/dist/index.es472.js.map +1 -1
- package/dist/index.es473.js +223 -60
- package/dist/index.es473.js.map +1 -1
- package/dist/index.es474.js +2 -61
- package/dist/index.es474.js.map +1 -1
- package/dist/index.es475.js +347 -64
- package/dist/index.es475.js.map +1 -1
- package/dist/index.es476.js +4 -52
- package/dist/index.es476.js.map +1 -1
- package/dist/index.es477.js +38 -89
- package/dist/index.es477.js.map +1 -1
- package/dist/index.es478.js +51 -2
- package/dist/index.es478.js.map +1 -1
- package/dist/index.es479.js +62 -2
- package/dist/index.es479.js.map +1 -1
- package/dist/index.es480.js +61 -2
- package/dist/index.es480.js.map +1 -1
- package/dist/index.es481.js +73 -2
- package/dist/index.es481.js.map +1 -1
- package/dist/index.es482.js +52 -4
- package/dist/index.es482.js.map +1 -1
- package/dist/index.es483.js +89 -2
- package/dist/index.es483.js.map +1 -1
- package/dist/index.es484.js +2 -2
- package/dist/index.es485.js +2 -8
- package/dist/index.es485.js.map +1 -1
- package/dist/index.es486.js +2 -4
- package/dist/index.es486.js.map +1 -1
- package/dist/index.es487.js +2 -4
- package/dist/index.es487.js.map +1 -1
- package/dist/index.es488.js +2 -161
- package/dist/index.es488.js.map +1 -1
- package/dist/index.es489.js +2 -5
- package/dist/index.es489.js.map +1 -1
- package/dist/index.es490.js +2 -2
- package/dist/index.es491.js +5 -88
- package/dist/index.es491.js.map +1 -1
- package/dist/index.es492.js +3 -194
- package/dist/index.es492.js.map +1 -1
- package/dist/index.es493.js +22 -86
- package/dist/index.es493.js.map +1 -1
- package/dist/index.es494.js +110 -13
- package/dist/index.es494.js.map +1 -1
- package/dist/index.es495.js +14 -317
- package/dist/index.es495.js.map +1 -1
- package/dist/index.es496.js.map +1 -1
- package/dist/index.es497.js +1 -1
- package/dist/index.es497.js.map +1 -1
- package/dist/index.es498.js +69 -72
- package/dist/index.es498.js.map +1 -1
- package/dist/index.es499.js.map +1 -1
- package/dist/index.es500.js +1 -1
- package/dist/index.es500.js.map +1 -1
- package/dist/index.es501.js +72 -69
- package/dist/index.es501.js.map +1 -1
- package/dist/index.es503.js +3 -69
- package/dist/index.es503.js.map +1 -1
- package/dist/index.es504.js +154 -7
- package/dist/index.es504.js.map +1 -1
- package/dist/index.es505.js +103 -13
- package/dist/index.es505.js.map +1 -1
- package/dist/index.es506.js +15 -58
- package/dist/index.es506.js.map +1 -1
- package/dist/index.es507.js +6 -63
- package/dist/index.es507.js.map +1 -1
- package/dist/index.es508.js +5 -155
- package/dist/index.es508.js.map +1 -1
- package/dist/index.es509.js +2 -104
- package/dist/index.es509.js.map +1 -1
- package/dist/index.es510.js +2 -17
- package/dist/index.es510.js.map +1 -1
- package/dist/index.es511.js +22 -3
- package/dist/index.es511.js.map +1 -1
- package/dist/index.es512.js +2 -6
- package/dist/index.es512.js.map +1 -1
- package/dist/index.es513.js +11 -7
- package/dist/index.es513.js.map +1 -1
- package/dist/index.es514.js +34 -2
- package/dist/index.es514.js.map +1 -1
- package/dist/index.es515.js +21 -2
- package/dist/index.es515.js.map +1 -1
- package/dist/index.es516.js +10 -20
- package/dist/index.es516.js.map +1 -1
- package/dist/index.es518.js +4 -4
- package/dist/index.es519.js +4 -4
- package/dist/index.es520.js +2 -2
- package/dist/index.es521.js +9 -9
- package/dist/index.es522.js +2 -2
- package/dist/index.es523.js +2 -2
- package/dist/index.es524.js +3 -3
- package/dist/index.es525.js +2 -2
- package/dist/index.es526.js +2 -2
- package/dist/index.es527.js +2 -2
- package/dist/index.es528.js +2 -2
- package/dist/index.es529.js +2 -2
- package/dist/index.es530.js +3 -3
- package/dist/index.es531.js +2 -2
- package/dist/index.es532.js +2 -2
- package/dist/index.es533.js +4 -4
- package/dist/index.es535.js +2 -2
- package/dist/index.es537.js +2 -2
- package/dist/index.es538.js +2 -2
- package/dist/index.es539.js +2 -2
- package/dist/index.es540.js +2 -2
- package/dist/index.es541.js +2 -2
- package/dist/index.es542.js +2 -2
- package/dist/index.es543.js +2 -2
- package/dist/index.es544.js +2 -2
- package/dist/index.es545.js +2 -2
- package/dist/index.es546.js +2 -2
- package/dist/index.es547.js +2 -2
- package/dist/index.es548.js +2 -2
- package/dist/index.es549.js +14 -2
- package/dist/index.es549.js.map +1 -1
- package/dist/index.es550.js +9 -9
- package/dist/index.es550.js.map +1 -1
- package/dist/index.es551.js +10 -32
- package/dist/index.es551.js.map +1 -1
- package/dist/index.es552.js +2 -21
- package/dist/index.es552.js.map +1 -1
- package/dist/index.es553.js +2 -12
- package/dist/index.es553.js.map +1 -1
- package/dist/index.es555.js +2 -14
- package/dist/index.es555.js.map +1 -1
- package/dist/index.es556.js +108 -11
- package/dist/index.es556.js.map +1 -1
- package/dist/index.es557.js +8 -14
- package/dist/index.es557.js.map +1 -1
- package/dist/index.es558.js +8 -4
- package/dist/index.es558.js.map +1 -1
- package/dist/index.es559.js +50 -8
- package/dist/index.es559.js.map +1 -1
- package/dist/index.es560.js +4 -8
- package/dist/index.es560.js.map +1 -1
- package/dist/index.es561.js +4 -50
- package/dist/index.es561.js.map +1 -1
- package/dist/index.es562.js +2 -2
- package/dist/index.es563.js +146 -3
- package/dist/index.es563.js.map +1 -1
- package/dist/index.es564.js +2 -2
- package/dist/index.es565.js +69 -145
- package/dist/index.es565.js.map +1 -1
- package/dist/index.es566.js +9 -2
- package/dist/index.es566.js.map +1 -1
- package/dist/index.es567.js +14 -2
- package/dist/index.es567.js.map +1 -1
- package/dist/index.es568.js +60 -2
- package/dist/index.es568.js.map +1 -1
- package/dist/index.es569.js +60 -104
- package/dist/index.es569.js.map +1 -1
- package/dist/index.es570.js +33 -47
- package/dist/index.es570.js.map +1 -1
- package/dist/index.es571.js.map +1 -1
- package/dist/index.es572.js +41 -41
- package/dist/index.es572.js.map +1 -1
- package/dist/index.es573.js +47 -33
- package/dist/index.es573.js.map +1 -1
- package/dist/index.es574.js.map +1 -1
- package/dist/index.es575.js +41 -41
- package/dist/index.es575.js.map +1 -1
- package/dist/index.es576.js +1 -1
- package/dist/index.es580.js +2 -4
- package/dist/index.es580.js.map +1 -1
- package/dist/index.es581.js +2 -23
- package/dist/index.es581.js.map +1 -1
- package/dist/index.es582.js +2 -2
- package/dist/index.es583.js +2 -2
- package/dist/index.es584.js +14 -2
- package/dist/index.es584.js.map +1 -1
- package/dist/index.es585.js +2 -2
- package/dist/index.es586.js +2 -2
- package/dist/index.es587.js +2 -2
- package/dist/index.es589.js +2 -2
- package/dist/index.es59.js +1 -1
- package/dist/index.es590.js +2 -2
- package/dist/index.es591.js +2 -2
- package/dist/index.es592.js +2 -2
- package/dist/index.es593.js +2 -2
- package/dist/index.es594.js +2 -151
- package/dist/index.es594.js.map +1 -1
- package/dist/index.es595.js +2 -2
- package/dist/index.es596.js +2 -6
- package/dist/index.es596.js.map +1 -1
- package/dist/index.es597.js +151 -2
- package/dist/index.es597.js.map +1 -1
- package/dist/index.es598.js +2 -148
- package/dist/index.es598.js.map +1 -1
- package/dist/index.es599.js +6 -2
- package/dist/index.es599.js.map +1 -1
- package/dist/index.es60.js +1 -1
- package/dist/index.es600.js +2 -138
- package/dist/index.es600.js.map +1 -1
- package/dist/index.es602.js +225 -2
- package/dist/index.es602.js.map +1 -1
- package/dist/index.es603.js +88 -179
- package/dist/index.es603.js.map +1 -1
- package/dist/index.es604.js +43 -48
- package/dist/index.es604.js.map +1 -1
- package/dist/index.es605.js +73 -68
- package/dist/index.es605.js.map +1 -1
- package/dist/index.es606.js +46 -51
- package/dist/index.es606.js.map +1 -1
- package/dist/index.es607.js +49 -43
- package/dist/index.es607.js.map +1 -1
- package/dist/index.es608.js +2 -135
- package/dist/index.es608.js.map +1 -1
- package/dist/index.es609.js +2 -2
- package/dist/index.es61.js +2 -2
- package/dist/index.es610.js +2 -2
- package/dist/index.es613.js +2 -2
- package/dist/index.es614.js +2 -2
- package/dist/index.es615.js +2 -2
- package/dist/index.es617.js +148 -2
- package/dist/index.es617.js.map +1 -1
- package/dist/index.es619.js +2 -2
- package/dist/index.es620.js +2 -131
- package/dist/index.es620.js.map +1 -1
- package/dist/index.es621.js +45 -42
- package/dist/index.es621.js.map +1 -1
- package/dist/index.es622.js +128 -2
- package/dist/index.es622.js.map +1 -1
- package/dist/index.es623.js +2 -14
- package/dist/index.es623.js.map +1 -1
- package/dist/index.es624.js +138 -2
- package/dist/index.es624.js.map +1 -1
- package/dist/index.es625.js +2 -2
- package/dist/index.es626.js +2 -2
- package/dist/index.es627.js +2 -2
- package/dist/index.es628.js +87 -4
- package/dist/index.es628.js.map +1 -1
- package/dist/index.es629.js +108 -2
- package/dist/index.es629.js.map +1 -1
- package/dist/index.es63.js +2 -2
- package/dist/index.es630.js +4 -87
- package/dist/index.es630.js.map +1 -1
- package/dist/index.es631.js +2 -108
- package/dist/index.es631.js.map +1 -1
- package/dist/index.es632.js +4 -2
- package/dist/index.es632.js.map +1 -1
- package/dist/index.es633.js +23 -2
- package/dist/index.es633.js.map +1 -1
- package/dist/index.es634.js +2 -23
- package/dist/index.es634.js.map +1 -1
- package/dist/index.es635.js +2 -13
- package/dist/index.es635.js.map +1 -1
- package/dist/index.es636.js +2 -28
- package/dist/index.es636.js.map +1 -1
- package/dist/index.es637.js +2 -5
- package/dist/index.es637.js.map +1 -1
- package/dist/index.es638.js +2 -2
- package/dist/index.es639.js +2 -30
- package/dist/index.es639.js.map +1 -1
- package/dist/index.es64.js +2 -2
- package/dist/index.es640.js +2 -2
- package/dist/index.es642.js +30 -2
- package/dist/index.es642.js.map +1 -1
- package/dist/index.es643.js +2 -2
- package/dist/index.es644.js +2 -2
- package/dist/index.es645.js +2 -2
- package/dist/index.es646.js +2 -2
- package/dist/index.es647.js +45 -2
- package/dist/index.es647.js.map +1 -1
- package/dist/index.es648.js +45 -4
- package/dist/index.es648.js.map +1 -1
- package/dist/index.es649.js +2 -2
- package/dist/index.es65.js +2 -2
- package/dist/index.es650.js +2 -2
- package/dist/index.es651.js +22 -44
- package/dist/index.es651.js.map +1 -1
- package/dist/index.es652.js +15 -45
- package/dist/index.es652.js.map +1 -1
- package/dist/index.es653.js +28 -2
- package/dist/index.es653.js.map +1 -1
- package/dist/index.es654.js +5 -2
- package/dist/index.es654.js.map +1 -1
- package/dist/index.es655.js.map +1 -1
- package/dist/index.es656.js.map +1 -1
- package/dist/index.es67.js +1 -1
- package/dist/index.es68.js +2 -2
- package/dist/index.es69.js +2 -2
- package/dist/index.es71.js +1 -1
- package/dist/index.es72.js +1 -1
- package/dist/index.es73.js +1 -1
- package/dist/index.es77.js +2 -2
- package/dist/index.es78.js +3 -3
- package/dist/index.es79.js +1 -1
- package/dist/index.es81.js +1 -1
- package/dist/index.es82.js +1 -1
- package/dist/index.es84.js +1 -1
- package/dist/index.es87.js +1 -1
- package/dist/index.es88.js +1 -1
- package/dist/index.es89.js +14 -14
- package/dist/index.es90.js +1 -1
- package/dist/index.es91.js +1 -1
- package/dist/index.es92.js +1 -1
- package/dist/index.es94.js +1 -1
- package/dist/index.es95.js +1 -1
- package/dist/index.es96.js +1 -1
- package/dist/index.es99.js +1 -1
- package/package.json +3 -3
- package/src/components/FacetStateContextProvider.js +34 -4
- package/types/components/FacetStateContextProvider.js.flow +34 -4
package/dist/index.cjs201.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs201.js","sources":["../../../node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs"],"sourcesContent":["import { rectToClientRect, autoPlacement as autoPlacement$1, shift as shift$1, flip as flip$1, size as size$1, hide as hide$1, arrow as arrow$1, inline as inline$1, limitShift as limitShift$1, computePosition as computePosition$1 } from '@floating-ui/core';\nexport { detectOverflow, offset } from '@floating-ui/core';\nimport { round, createCoords, max, min, floor } from '@floating-ui/utils';\nimport { getComputedStyle, isHTMLElement, isElement, getWindow, isWebKit, getContainingBlock, getDocumentElement, getNodeName, isOverflowElement, getNodeScroll, getOverflowAncestors, getParentNode, isLastTraversableNode, isContainingBlock, isTableElement } from '@floating-ui/utils/dom';\nexport { getOverflowAncestors } from '@floating-ui/utils/dom';\n\nfunction getCssDimensions(element) {\n const css = getComputedStyle(element);\n // In testing environments, the `width` and `height` properties are empty\n // strings for SVG elements, returning NaN. Fallback to `0` in this case.\n let width = parseFloat(css.width) || 0;\n let height = parseFloat(css.height) || 0;\n const hasOffset = isHTMLElement(element);\n const offsetWidth = hasOffset ? element.offsetWidth : width;\n const offsetHeight = hasOffset ? element.offsetHeight : height;\n const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;\n if (shouldFallback) {\n width = offsetWidth;\n height = offsetHeight;\n }\n return {\n width,\n height,\n $: shouldFallback\n };\n}\n\nfunction unwrapElement(element) {\n return !isElement(element) ? element.contextElement : element;\n}\n\nfunction getScale(element) {\n const domElement = unwrapElement(element);\n if (!isHTMLElement(domElement)) {\n return createCoords(1);\n }\n const rect = domElement.getBoundingClientRect();\n const {\n width,\n height,\n $\n } = getCssDimensions(domElement);\n let x = ($ ? round(rect.width) : rect.width) / width;\n let y = ($ ? round(rect.height) : rect.height) / height;\n\n // 0, NaN, or Infinity should always fallback to 1.\n\n if (!x || !Number.isFinite(x)) {\n x = 1;\n }\n if (!y || !Number.isFinite(y)) {\n y = 1;\n }\n return {\n x,\n y\n };\n}\n\nconst noOffsets = /*#__PURE__*/createCoords(0);\nfunction getVisualOffsets(element) {\n const win = getWindow(element);\n if (!isWebKit() || !win.visualViewport) {\n return noOffsets;\n }\n return {\n x: win.visualViewport.offsetLeft,\n y: win.visualViewport.offsetTop\n };\n}\nfunction shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {\n if (isFixed === void 0) {\n isFixed = false;\n }\n if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {\n return false;\n }\n return isFixed;\n}\n\nfunction getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {\n if (includeScale === void 0) {\n includeScale = false;\n }\n if (isFixedStrategy === void 0) {\n isFixedStrategy = false;\n }\n const clientRect = element.getBoundingClientRect();\n const domElement = unwrapElement(element);\n let scale = createCoords(1);\n if (includeScale) {\n if (offsetParent) {\n if (isElement(offsetParent)) {\n scale = getScale(offsetParent);\n }\n } else {\n scale = getScale(element);\n }\n }\n const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);\n let x = (clientRect.left + visualOffsets.x) / scale.x;\n let y = (clientRect.top + visualOffsets.y) / scale.y;\n let width = clientRect.width / scale.x;\n let height = clientRect.height / scale.y;\n if (domElement) {\n const win = getWindow(domElement);\n const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;\n let currentIFrame = win.frameElement;\n while (currentIFrame && offsetParent && offsetWin !== win) {\n const iframeScale = getScale(currentIFrame);\n const iframeRect = currentIFrame.getBoundingClientRect();\n const css = getComputedStyle(currentIFrame);\n const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;\n const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;\n x *= iframeScale.x;\n y *= iframeScale.y;\n width *= iframeScale.x;\n height *= iframeScale.y;\n x += left;\n y += top;\n currentIFrame = getWindow(currentIFrame).frameElement;\n }\n }\n return rectToClientRect({\n width,\n height,\n x,\n y\n });\n}\n\nconst topLayerSelectors = [':popover-open', ':modal'];\nfunction topLayer(floating) {\n let isTopLayer = false;\n let x = 0;\n let y = 0;\n function setIsTopLayer(selector) {\n try {\n isTopLayer = isTopLayer || floating.matches(selector);\n } catch (e) {}\n }\n topLayerSelectors.forEach(selector => {\n setIsTopLayer(selector);\n });\n if (isTopLayer) {\n const containingBlock = getContainingBlock(floating);\n if (containingBlock) {\n const rect = containingBlock.getBoundingClientRect();\n x = rect.x;\n y = rect.y;\n }\n }\n return [isTopLayer, x, y];\n}\n\nfunction convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {\n let {\n elements,\n rect,\n offsetParent,\n strategy\n } = _ref;\n const documentElement = getDocumentElement(offsetParent);\n const [isTopLayer] = elements ? topLayer(elements.floating) : [false];\n if (offsetParent === documentElement || isTopLayer) {\n return rect;\n }\n let scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n let scale = createCoords(1);\n const offsets = createCoords(0);\n const isOffsetParentAnElement = isHTMLElement(offsetParent);\n if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== 'fixed') {\n if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n if (isHTMLElement(offsetParent)) {\n const offsetRect = getBoundingClientRect(offsetParent);\n scale = getScale(offsetParent);\n offsets.x = offsetRect.x + offsetParent.clientLeft;\n offsets.y = offsetRect.y + offsetParent.clientTop;\n }\n }\n return {\n width: rect.width * scale.x,\n height: rect.height * scale.y,\n x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x,\n y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y\n };\n}\n\nfunction getClientRects(element) {\n return Array.from(element.getClientRects());\n}\n\nfunction getWindowScrollBarX(element) {\n // If <html> has a CSS width greater than the viewport, then this will be\n // incorrect for RTL.\n return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;\n}\n\n// Gets the entire size of the scrollable document area, even extending outside\n// of the `<html>` and `<body>` rect bounds if horizontally scrollable.\nfunction getDocumentRect(element) {\n const html = getDocumentElement(element);\n const scroll = getNodeScroll(element);\n const body = element.ownerDocument.body;\n const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);\n const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);\n let x = -scroll.scrollLeft + getWindowScrollBarX(element);\n const y = -scroll.scrollTop;\n if (getComputedStyle(body).direction === 'rtl') {\n x += max(html.clientWidth, body.clientWidth) - width;\n }\n return {\n width,\n height,\n x,\n y\n };\n}\n\nfunction getViewportRect(element, strategy) {\n const win = getWindow(element);\n const html = getDocumentElement(element);\n const visualViewport = win.visualViewport;\n let width = html.clientWidth;\n let height = html.clientHeight;\n let x = 0;\n let y = 0;\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height;\n const visualViewportBased = isWebKit();\n if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n return {\n width,\n height,\n x,\n y\n };\n}\n\n// Returns the inner client rect, subtracting scrollbars if present.\nfunction getInnerBoundingClientRect(element, strategy) {\n const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');\n const top = clientRect.top + element.clientTop;\n const left = clientRect.left + element.clientLeft;\n const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);\n const width = element.clientWidth * scale.x;\n const height = element.clientHeight * scale.y;\n const x = left * scale.x;\n const y = top * scale.y;\n return {\n width,\n height,\n x,\n y\n };\n}\nfunction getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {\n let rect;\n if (clippingAncestor === 'viewport') {\n rect = getViewportRect(element, strategy);\n } else if (clippingAncestor === 'document') {\n rect = getDocumentRect(getDocumentElement(element));\n } else if (isElement(clippingAncestor)) {\n rect = getInnerBoundingClientRect(clippingAncestor, strategy);\n } else {\n const visualOffsets = getVisualOffsets(element);\n rect = {\n ...clippingAncestor,\n x: clippingAncestor.x - visualOffsets.x,\n y: clippingAncestor.y - visualOffsets.y\n };\n }\n return rectToClientRect(rect);\n}\nfunction hasFixedPositionAncestor(element, stopNode) {\n const parentNode = getParentNode(element);\n if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {\n return false;\n }\n return getComputedStyle(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);\n}\n\n// A \"clipping ancestor\" is an `overflow` element with the characteristic of\n// clipping (or hiding) child elements. This returns all clipping ancestors\n// of the given element up the tree.\nfunction getClippingElementAncestors(element, cache) {\n const cachedResult = cache.get(element);\n if (cachedResult) {\n return cachedResult;\n }\n let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');\n let currentContainingBlockComputedStyle = null;\n const elementIsFixed = getComputedStyle(element).position === 'fixed';\n let currentNode = elementIsFixed ? getParentNode(element) : element;\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {\n const computedStyle = getComputedStyle(currentNode);\n const currentNodeIsContaining = isContainingBlock(currentNode);\n if (!currentNodeIsContaining && computedStyle.position === 'fixed') {\n currentContainingBlockComputedStyle = null;\n }\n const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);\n if (shouldDropCurrentNode) {\n // Drop non-containing blocks.\n result = result.filter(ancestor => ancestor !== currentNode);\n } else {\n // Record last containing block for next iteration.\n currentContainingBlockComputedStyle = computedStyle;\n }\n currentNode = getParentNode(currentNode);\n }\n cache.set(element, result);\n return result;\n}\n\n// Gets the maximum area that the element is visible in due to any number of\n// clipping ancestors.\nfunction getClippingRect(_ref) {\n let {\n element,\n boundary,\n rootBoundary,\n strategy\n } = _ref;\n const elementClippingAncestors = boundary === 'clippingAncestors' ? getClippingElementAncestors(element, this._c) : [].concat(boundary);\n const clippingAncestors = [...elementClippingAncestors, rootBoundary];\n const firstClippingAncestor = clippingAncestors[0];\n const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {\n const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);\n accRect.top = max(rect.top, accRect.top);\n accRect.right = min(rect.right, accRect.right);\n accRect.bottom = min(rect.bottom, accRect.bottom);\n accRect.left = max(rect.left, accRect.left);\n return accRect;\n }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));\n return {\n width: clippingRect.right - clippingRect.left,\n height: clippingRect.bottom - clippingRect.top,\n x: clippingRect.left,\n y: clippingRect.top\n };\n}\n\nfunction getDimensions(element) {\n const {\n width,\n height\n } = getCssDimensions(element);\n return {\n width,\n height\n };\n}\n\nfunction getRectRelativeToOffsetParent(element, offsetParent, strategy, floating) {\n const isOffsetParentAnElement = isHTMLElement(offsetParent);\n const documentElement = getDocumentElement(offsetParent);\n const isFixed = strategy === 'fixed';\n const rect = getBoundingClientRect(element, true, isFixed, offsetParent);\n let scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n const offsets = createCoords(0);\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n if (isOffsetParentAnElement) {\n const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);\n offsets.x = offsetRect.x + offsetParent.clientLeft;\n offsets.y = offsetRect.y + offsetParent.clientTop;\n } else if (documentElement) {\n offsets.x = getWindowScrollBarX(documentElement);\n }\n }\n let x = rect.left + scroll.scrollLeft - offsets.x;\n let y = rect.top + scroll.scrollTop - offsets.y;\n const [isTopLayer, topLayerX, topLayerY] = topLayer(floating);\n if (isTopLayer) {\n x += topLayerX;\n y += topLayerY;\n if (isOffsetParentAnElement) {\n x += offsetParent.clientLeft;\n y += offsetParent.clientTop;\n }\n }\n return {\n x,\n y,\n width: rect.width,\n height: rect.height\n };\n}\n\nfunction getTrueOffsetParent(element, polyfill) {\n if (!isHTMLElement(element) || getComputedStyle(element).position === 'fixed') {\n return null;\n }\n if (polyfill) {\n return polyfill(element);\n }\n return element.offsetParent;\n}\n\n// Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\nfunction getOffsetParent(element, polyfill) {\n const window = getWindow(element);\n if (!isHTMLElement(element)) {\n return window;\n }\n let offsetParent = getTrueOffsetParent(element, polyfill);\n while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {\n offsetParent = getTrueOffsetParent(offsetParent, polyfill);\n }\n if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static' && !isContainingBlock(offsetParent))) {\n return window;\n }\n return offsetParent || getContainingBlock(element) || window;\n}\n\nconst getElementRects = async function (data) {\n const getOffsetParentFn = this.getOffsetParent || getOffsetParent;\n const getDimensionsFn = this.getDimensions;\n return {\n reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy, data.floating),\n floating: {\n x: 0,\n y: 0,\n ...(await getDimensionsFn(data.floating))\n }\n };\n};\n\nfunction isRTL(element) {\n return getComputedStyle(element).direction === 'rtl';\n}\n\nconst platform = {\n convertOffsetParentRelativeRectToViewportRelativeRect,\n getDocumentElement,\n getClippingRect,\n getOffsetParent,\n getElementRects,\n getClientRects,\n getDimensions,\n getScale,\n isElement,\n isRTL\n};\n\n// https://samthor.au/2021/observing-dom/\nfunction observeMove(element, onMove) {\n let io = null;\n let timeoutId;\n const root = getDocumentElement(element);\n function cleanup() {\n var _io;\n clearTimeout(timeoutId);\n (_io = io) == null || _io.disconnect();\n io = null;\n }\n function refresh(skip, threshold) {\n if (skip === void 0) {\n skip = false;\n }\n if (threshold === void 0) {\n threshold = 1;\n }\n cleanup();\n const {\n left,\n top,\n width,\n height\n } = element.getBoundingClientRect();\n if (!skip) {\n onMove();\n }\n if (!width || !height) {\n return;\n }\n const insetTop = floor(top);\n const insetRight = floor(root.clientWidth - (left + width));\n const insetBottom = floor(root.clientHeight - (top + height));\n const insetLeft = floor(left);\n const rootMargin = -insetTop + \"px \" + -insetRight + \"px \" + -insetBottom + \"px \" + -insetLeft + \"px\";\n const options = {\n rootMargin,\n threshold: max(0, min(1, threshold)) || 1\n };\n let isFirstUpdate = true;\n function handleObserve(entries) {\n const ratio = entries[0].intersectionRatio;\n if (ratio !== threshold) {\n if (!isFirstUpdate) {\n return refresh();\n }\n if (!ratio) {\n timeoutId = setTimeout(() => {\n refresh(false, 1e-7);\n }, 100);\n } else {\n refresh(false, ratio);\n }\n }\n isFirstUpdate = false;\n }\n\n // Older browsers don't support a `document` as the root and will throw an\n // error.\n try {\n io = new IntersectionObserver(handleObserve, {\n ...options,\n // Handle <iframe>s\n root: root.ownerDocument\n });\n } catch (e) {\n io = new IntersectionObserver(handleObserve, options);\n }\n io.observe(element);\n }\n refresh(true);\n return cleanup;\n}\n\n/**\n * Automatically updates the position of the floating element when necessary.\n * Should only be called when the floating element is mounted on the DOM or\n * visible on the screen.\n * @returns cleanup function that should be invoked when the floating element is\n * removed from the DOM or hidden from the screen.\n * @see https://floating-ui.com/docs/autoUpdate\n */\nfunction autoUpdate(reference, floating, update, options) {\n if (options === void 0) {\n options = {};\n }\n const {\n ancestorScroll = true,\n ancestorResize = true,\n elementResize = typeof ResizeObserver === 'function',\n layoutShift = typeof IntersectionObserver === 'function',\n animationFrame = false\n } = options;\n const referenceEl = unwrapElement(reference);\n const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...getOverflowAncestors(floating)] : [];\n ancestors.forEach(ancestor => {\n ancestorScroll && ancestor.addEventListener('scroll', update, {\n passive: true\n });\n ancestorResize && ancestor.addEventListener('resize', update);\n });\n const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;\n let reobserveFrame = -1;\n let resizeObserver = null;\n if (elementResize) {\n resizeObserver = new ResizeObserver(_ref => {\n let [firstEntry] = _ref;\n if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {\n // Prevent update loops when using the `size` middleware.\n // https://github.com/floating-ui/floating-ui/issues/1740\n resizeObserver.unobserve(floating);\n cancelAnimationFrame(reobserveFrame);\n reobserveFrame = requestAnimationFrame(() => {\n var _resizeObserver;\n (_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);\n });\n }\n update();\n });\n if (referenceEl && !animationFrame) {\n resizeObserver.observe(referenceEl);\n }\n resizeObserver.observe(floating);\n }\n let frameId;\n let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;\n if (animationFrame) {\n frameLoop();\n }\n function frameLoop() {\n const nextRefRect = getBoundingClientRect(reference);\n if (prevRefRect && (nextRefRect.x !== prevRefRect.x || nextRefRect.y !== prevRefRect.y || nextRefRect.width !== prevRefRect.width || nextRefRect.height !== prevRefRect.height)) {\n update();\n }\n prevRefRect = nextRefRect;\n frameId = requestAnimationFrame(frameLoop);\n }\n update();\n return () => {\n var _resizeObserver2;\n ancestors.forEach(ancestor => {\n ancestorScroll && ancestor.removeEventListener('scroll', update);\n ancestorResize && ancestor.removeEventListener('resize', update);\n });\n cleanupIo == null || cleanupIo();\n (_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();\n resizeObserver = null;\n if (animationFrame) {\n cancelAnimationFrame(frameId);\n }\n };\n}\n\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = autoPlacement$1;\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = shift$1;\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = flip$1;\n\n/**\n * Provides data that allows you to change the size of the floating element —\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = size$1;\n\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = hide$1;\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = arrow$1;\n\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = inline$1;\n\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = limitShift$1;\n\n/**\n * Computes the `x` and `y` coordinates that will place the floating element\n * next to a given reference element.\n */\nconst computePosition = (reference, floating, options) => {\n // This caches the expensive `getClippingElementAncestors` function so that\n // multiple lifecycle resets re-use the same result. It only lives for a\n // single call. If other functions become expensive, we can add them as well.\n const cache = new Map();\n const mergedOptions = {\n platform,\n ...options\n };\n const platformWithCache = {\n ...mergedOptions.platform,\n _c: cache\n };\n return computePosition$1(reference, floating, {\n ...mergedOptions,\n platform: platformWithCache\n });\n};\n\nexport { arrow, autoPlacement, autoUpdate, computePosition, flip, hide, inline, limitShift, platform, shift, size };\n"],"names":["getCssDimensions","element","css","getComputedStyle","width","height","hasOffset","isHTMLElement","offsetWidth","offsetHeight","shouldFallback","round","unwrapElement","isElement","getScale","domElement","createCoords","rect","$","x","y","noOffsets","getVisualOffsets","win","getWindow","isWebKit","shouldAddVisualOffsets","isFixed","floatingOffsetParent","getBoundingClientRect","includeScale","isFixedStrategy","offsetParent","clientRect","scale","visualOffsets","offsetWin","currentIFrame","iframeScale","iframeRect","left","top","rectToClientRect","topLayerSelectors","topLayer","floating","isTopLayer","setIsTopLayer","selector","containingBlock","getContainingBlock","convertOffsetParentRelativeRectToViewportRelativeRect","_ref","elements","strategy","documentElement","getDocumentElement","scroll","offsets","isOffsetParentAnElement","getNodeName","isOverflowElement","getNodeScroll","offsetRect","getClientRects","getWindowScrollBarX","getDocumentRect","html","body","max","getViewportRect","visualViewport","visualViewportBased","getInnerBoundingClientRect","getClientRectFromClippingAncestor","clippingAncestor","hasFixedPositionAncestor","stopNode","parentNode","getParentNode","isLastTraversableNode","getClippingElementAncestors","cache","cachedResult","result","getOverflowAncestors","el","currentContainingBlockComputedStyle","elementIsFixed","currentNode","computedStyle","currentNodeIsContaining","isContainingBlock","ancestor","getClippingRect","boundary","rootBoundary","clippingAncestors","firstClippingAncestor","clippingRect","accRect","min","getDimensions","getRectRelativeToOffsetParent","topLayerX","topLayerY","getTrueOffsetParent","polyfill","getOffsetParent","window","isTableElement","getElementRects","data","getOffsetParentFn","getDimensionsFn","isRTL","platform","observeMove","onMove","io","timeoutId","root","cleanup","_io","refresh","skip","threshold","insetTop","floor","insetRight","insetBottom","insetLeft","options","isFirstUpdate","handleObserve","entries","ratio","autoUpdate","reference","update","ancestorScroll","ancestorResize","elementResize","layoutShift","animationFrame","referenceEl","ancestors","cleanupIo","reobserveFrame","resizeObserver","firstEntry","_resizeObserver","frameId","prevRefRect","frameLoop","nextRefRect","_resizeObserver2","shift","shift$1","flip","flip$1","size","size$1","hide","hide$1","arrow","arrow$1","limitShift","limitShift$1","computePosition","mergedOptions","platformWithCache","computePosition$1"],"mappings":"mLAMA,SAASA,EAAiBC,EAAS,CACjC,MAAMC,EAAMC,mBAAiBF,CAAO,EAGpC,IAAIG,EAAQ,WAAWF,EAAI,KAAK,GAAK,EACjCG,EAAS,WAAWH,EAAI,MAAM,GAAK,EACvC,MAAMI,EAAYC,gBAAcN,CAAO,EACjCO,EAAcF,EAAYL,EAAQ,YAAcG,EAChDK,EAAeH,EAAYL,EAAQ,aAAeI,EAClDK,EAAiBC,EAAK,MAACP,CAAK,IAAMI,GAAeG,QAAMN,CAAM,IAAMI,EACzE,OAAIC,IACFN,EAAQI,EACRH,EAASI,GAEJ,CACL,MAAAL,EACA,OAAAC,EACA,EAAGK,CACP,CACA,CAEA,SAASE,EAAcX,EAAS,CAC9B,OAAQY,EAAS,UAACZ,CAAO,EAA6BA,EAAzBA,EAAQ,cACvC,CAEA,SAASa,EAASb,EAAS,CACzB,MAAMc,EAAaH,EAAcX,CAAO,EACxC,GAAI,CAACM,EAAAA,cAAcQ,CAAU,EAC3B,OAAOC,EAAAA,aAAa,CAAC,EAEvB,MAAMC,EAAOF,EAAW,wBAClB,CACJ,MAAAX,EACA,O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EACAC,EAAcT,EAAiBnH,EAAsB6G,CAAS,EAAI,KAClEM,GACFU,IAEF,SAASA,GAAY,CACnB,MAAMC,EAAc9H,EAAsB6G,CAAS,EAC/Ce,IAAgBE,EAAY,IAAMF,EAAY,GAAKE,EAAY,IAAMF,EAAY,GAAKE,EAAY,QAAUF,EAAY,OAASE,EAAY,SAAWF,EAAY,SACtKd,IAEFc,EAAcE,EACdH,EAAU,sBAAsBE,CAAS,CAC1C,CACD,OAAAf,IACO,IAAM,CACX,IAAIiB,EACJV,EAAU,QAAQrD,GAAY,CAC5B+C,GAAkB/C,EAAS,oBAAoB,SAAU8C,CAAM,EAC/DE,GAAkBhD,EAAS,oBAAoB,SAAU8C,CAAM,CACrE,CAAK,EACDQ,GAAa,MAAQA,KACpBS,EAAmBP,IAAmB,MAAQO,EAAiB,WAAU,EAC1EP,EAAiB,KACbL,GACF,qBAAqBQ,CAAO,CAElC,CACA,CAeK,MAACK,GAAQC,EAAQ,MAQhBC,GAAOC,EAAO,KAQdC,GAAOC,EAAO,KAOdC,GAAOC,EAAO,KAOdC,GAAQC,EAAQ,MAYhBC,GAAaC,EAAa,WAM1BC,GAAkB,CAAC/B,EAAW7F,EAAUuF,IAAY,CAIxD,MAAMlD,EAAQ,IAAI,IACZwF,EAAgB,CACpB,SAAAtD,EACA,GAAGgB,CACP,EACQuC,EAAoB,CACxB,GAAGD,EAAc,SACjB,GAAIxF,CACR,EACE,OAAO0F,EAAiB,gBAAClC,EAAW7F,EAAU,CAC5C,GAAG6H,EACH,SAAUC,CACd,CAAG,CACH","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.cjs201.js","sources":["../../../node_modules/node-webvtt/lib/parser.js"],"sourcesContent":["'use strict';\n\n/**\n * See spec: https://www.w3.org/TR/webvtt1/#file-structure\n */\n\nfunction ParserError (message, error) {\n this.message = message;\n this.error = error;\n}\n\nParserError.prototype = Object.create(Error.prototype);\n\nconst TIMESTAMP_REGEXP = /([0-9]+)?:?([0-9]{2}):([0-9]{2}\\.[0-9]{2,3})/;\n\nfunction parse (input, options) {\n if (!options) {\n options = {};\n }\n\n const { meta = false, strict = true } = options;\n\n if (typeof input !== 'string') {\n throw new ParserError('Input must be a string');\n }\n\n input = input.trim();\n input = input.replace(/\\r\\n/g, '\\n');\n input = input.replace(/\\r/g, '\\n');\n\n const parts = input.split('\\n\\n');\n const header = parts.shift();\n\n if (!header.startsWith('WEBVTT')) {\n throw new ParserError('Must start with \"WEBVTT\"');\n }\n\n const headerParts = header.split('\\n');\n\n const headerComments = headerParts[0].replace('WEBVTT', '');\n\n if (headerComments.length > 0\n && (headerComments[0] !== ' ' && headerComments[0] !== '\\t')\n ) {\n throw new ParserError('Header comment must start with space or tab');\n }\n\n // nothing of interests, return early\n if (parts.length === 0 && headerParts.length === 1) {\n return { valid: true, strict, cues: [], errors: [] };\n }\n\n if (!meta && headerParts.length > 1 && headerParts[1] !== '') {\n throw new ParserError('Missing blank line after signature');\n }\n\n const { cues, errors } = parseCues(parts, strict);\n\n if (strict && errors.length > 0) {\n throw errors[0];\n }\n\n const headerMeta = meta ? parseMeta(headerParts) : null;\n\n const result = { valid: errors.length === 0, strict, cues, errors };\n\n if (meta) {\n result.meta = headerMeta;\n }\n\n return result;\n}\n\nfunction parseMeta (headerParts) {\n const meta = {};\n headerParts.slice(1).forEach(header => {\n const splitIdx = header.indexOf(':');\n const key = header.slice(0, splitIdx).trim();\n const value = header.slice(splitIdx + 1).trim();\n meta[key] = value;\n });\n return Object.keys(meta).length > 0 ? meta : null;\n}\n\nfunction parseCues (cues, strict) {\n const errors = [];\n\n const parsedCues = cues\n .map((cue, i) => {\n try {\n return parseCue(cue, i, strict);\n } catch (e) {\n errors.push(e);\n return null;\n }\n })\n .filter(Boolean);\n\n return {\n cues: parsedCues,\n errors\n };\n}\n\n/**\n * Parse a single cue block.\n *\n * @param {array} cue Array of content for the cue\n * @param {number} i Index of cue in array\n *\n * @returns {object} cue Cue object with start, end, text and styles.\n * Null if it's a note\n */\nfunction parseCue (cue, i, strict) {\n let identifier = '';\n let start = 0;\n let end = 0.01;\n let text = '';\n let styles = '';\n\n // split and remove empty lines\n const lines = cue.split('\\n').filter(Boolean);\n\n if (lines.length > 0 && lines[0].trim().startsWith('NOTE')) {\n return null;\n }\n\n if (lines.length === 1 && !lines[0].includes('-->')) {\n throw new ParserError(`Cue identifier cannot be standalone (cue #${i})`);\n }\n\n if (lines.length > 1 &&\n !(lines[0].includes('-->') || lines[1].includes('-->'))) {\n const msg = `Cue identifier needs to be followed by timestamp (cue #${i})`;\n throw new ParserError(msg);\n }\n\n if (lines.length > 1 && lines[1].includes('-->')) {\n identifier = lines.shift();\n }\n\n const times = typeof lines[0] === 'string' && lines[0].split(' --> ');\n\n if (times.length !== 2 ||\n !validTimestamp(times[0]) ||\n !validTimestamp(times[1])) {\n\n throw new ParserError(`Invalid cue timestamp (cue #${i})`);\n }\n\n start = parseTimestamp(times[0]);\n end = parseTimestamp(times[1]);\n\n if (strict) {\n if (start > end) {\n throw new ParserError(`Start timestamp greater than end (cue #${i})`);\n }\n\n if (end <= start) {\n throw new ParserError(`End must be greater than start (cue #${i})`);\n }\n }\n\n if (!strict && end < start) {\n throw new ParserError(\n `End must be greater or equal to start when not strict (cue #${i})`\n );\n }\n\n // TODO better style validation\n styles = times[1].replace(TIMESTAMP_REGEXP, '').trim();\n\n lines.shift();\n\n text = lines.join('\\n');\n\n if (!text) {\n return false;\n }\n\n return { identifier, start, end, text, styles };\n}\n\nfunction validTimestamp (timestamp) {\n return TIMESTAMP_REGEXP.test(timestamp);\n}\n\nfunction parseTimestamp (timestamp) {\n const matches = timestamp.match(TIMESTAMP_REGEXP);\n let secs = parseFloat(matches[1] || 0) * 60 * 60; // hours\n secs += parseFloat(matches[2]) * 60; // mins\n secs += parseFloat(matches[3]);\n // secs += parseFloat(matches[4]);\n return secs;\n}\n\nmodule.exports = { ParserError, parse };\n"],"names":["ParserError","message","error","TIMESTAMP_REGEXP","parse","input","options","meta","strict","parts","header","headerParts","headerComments","cues","errors","parseCues","headerMeta","parseMeta","result","splitIdx","key","value","cue","i","parseCue","e","identifier","start","end","text","styles","lines","msg","times","validTimestamp","parseTimestamp","timestamp","matches","secs","parser"],"mappings":"gFAMA,SAASA,EAAaC,EAASC,EAAO,CACpC,KAAK,QAAUD,EACf,KAAK,MAAQC,CACf,CAEAF,EAAY,UAAY,OAAO,OAAO,MAAM,SAAS,EAErD,MAAMG,EAAmB,+CAEzB,SAASC,EAAOC,EAAOC,EAAS,CACzBA,IACHA,EAAU,CAAA,GAGZ,KAAM,CAAE,KAAAC,EAAO,GAAO,OAAAC,EAAS,IAASF,EAEpC,GAAA,OAAOD,GAAU,SACb,MAAA,IAAIL,EAAY,wBAAwB,EAGhDK,EAAQA,EAAM,OACNA,EAAAA,EAAM,QAAQ,QAAS;AAAA,CAAI,EAC3BA,EAAAA,EAAM,QAAQ,MAAO;AAAA,CAAI,EAE3B,MAAAI,EAAQJ,EAAM,MAAM;AAAA;AAAA,CAAM,EAC1BK,EAASD,EAAM,QAErB,GAAI,CAACC,EAAO,WAAW,QAAQ,EACvB,MAAA,IAAIV,EAAY,0BAA0B,EAG5C,MAAAW,EAAcD,EAAO,MAAM;AAAA,CAAI,EAE/BE,EAAiBD,EAAY,CAAC,EAAE,QAAQ,SAAU,EAAE,EAEtD,GAAAC,EAAe,OAAS,GACpBA,EAAe,CAAC,IAAM,KAAOA,EAAe,CAAC,IAAM,IAEnD,MAAA,IAAIZ,EAAY,6CAA6C,EAIrE,GAAIS,EAAM,SAAW,GAAKE,EAAY,SAAW,EACxC,MAAA,CAAE,MAAO,GAAM,OAAAH,EAAQ,KAAM,GAAI,OAAQ,CAAA,GAG9C,GAAA,CAACD,GAAQI,EAAY,OAAS,GAAKA,EAAY,CAAC,IAAM,GAClD,MAAA,IAAIX,EAAY,oCAAoC,EAG5D,KAAM,CAAE,KAAAa,EAAM,OAAAC,CAAA,EAAWC,EAAUN,EAAOD,CAAM,EAE5C,GAAAA,GAA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AC9C,OAAAC,GAAQ,WAAWD,EAAQ,CAAC,CAAC,EAAI,GACzBC,GAAA,WAAWD,EAAQ,CAAC,CAAC,EAEtBC,CACT,CAEA,IAAAC,EAAiB,CAAE,YAAAvC,EAAa,MAAAI,CAAM","x_google_ignoreList":[0]}
|
package/dist/index.cjs202.js
CHANGED
|
@@ -1,2 +1,14 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function r(t,e){this.message=t,this.error=e}r.prototype=Object.create(Error.prototype);function l(t){if(!t)throw new r("Input must be non-null");if(typeof t!="object")throw new r("Input must be an object");if(Array.isArray(t))throw new r("Input cannot be array");if(!t.valid)throw new r("Input must be valid");let e=`WEBVTT
|
|
2
|
+
`;if(t.meta){if(typeof t.meta!="object"||Array.isArray(t.meta))throw new r("Metadata must be an object");Object.entries(t.meta).forEach(o=>{if(typeof o[1]!="string")throw new r(`Metadata value for "${o[0]}" must be string`);e+=`${o[0]}: ${o[1]}
|
|
3
|
+
`})}let n=null;return t.cues.forEach((o,a)=>{if(n&&n>o.start)throw new r(`Cue number ${a} is not in chronological order`);n=o.start,e+=`
|
|
4
|
+
`,e+=f(o),e+=`
|
|
5
|
+
`}),e}function f(t){if(typeof t!="object")throw new r("Cue malformed: not of type object");if(typeof t.identifier!="string"&&typeof t.identifier!="number"&&t.identifier!==null)throw new r(`Cue malformed: identifier value is not a string.
|
|
6
|
+
${JSON.stringify(t)}`);if(isNaN(t.start))throw new r(`Cue malformed: null start value.
|
|
7
|
+
${JSON.stringify(t)}`);if(isNaN(t.end))throw new r(`Cue malformed: null end value.
|
|
8
|
+
${JSON.stringify(t)}`);if(t.start>=t.end)throw new r(`Cue malformed: start timestamp greater than end
|
|
9
|
+
${JSON.stringify(t)}`);if(typeof t.text!="string")throw new r(`Cue malformed: null text value.
|
|
10
|
+
${JSON.stringify(t)}`);if(typeof t.styles!="string")throw new r(`Cue malformed: null styles value.
|
|
11
|
+
${JSON.stringify(t)}`);let e="";t.identifier.length>0&&(e+=`${t.identifier}
|
|
12
|
+
`);const n=s(t.start),o=s(t.end);return e+=`${n} --> ${o}`,e+=t.styles?` ${t.styles}`:"",e+=`
|
|
13
|
+
${t.text}`,e}function s(t){const e=i(m(t),2),n=i(u(t),2),o=i(d(t),2),a=i(w(t),3);return`${e}:${n}:${o}.${a}`}function i(t,e){let n=`${t}`;for(;n.length<e;)n=`0${n}`;return n}function m(t){return Math.floor(t/60/60)}function u(t){return Math.floor(t/60)%60}function d(t){return Math.floor(t%60)}function w(t){return Math.floor((t%1).toFixed(4)*1e3)}var h={CompilerError:r,compile:l};exports.compiler=h;
|
|
2
14
|
//# sourceMappingURL=index.cjs202.js.map
|
package/dist/index.cjs202.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs202.js","sources":["../../../node_modules/@floating-ui/core/dist/floating-ui.core.mjs"],"sourcesContent":["import { getSideAxis, getAlignmentAxis, getAxisLength, getSide, getAlignment, evaluate, getPaddingObject, rectToClientRect, min, clamp, placements, getAlignmentSides, getOppositeAlignmentPlacement, getOppositePlacement, getExpandedPlacements, getOppositeAxisPlacements, sides, max, getOppositeAxis } from '@floating-ui/utils';\nexport { rectToClientRect } from '@floating-ui/utils';\n\nfunction computeCoordsFromPlacement(_ref, placement, rtl) {\n let {\n reference,\n floating\n } = _ref;\n const sideAxis = getSideAxis(placement);\n const alignmentAxis = getAlignmentAxis(placement);\n const alignLength = getAxisLength(alignmentAxis);\n const side = getSide(placement);\n const isVertical = sideAxis === 'y';\n const commonX = reference.x + reference.width / 2 - floating.width / 2;\n const commonY = reference.y + reference.height / 2 - floating.height / 2;\n const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;\n let coords;\n switch (side) {\n case 'top':\n coords = {\n x: commonX,\n y: reference.y - floating.height\n };\n break;\n case 'bottom':\n coords = {\n x: commonX,\n y: reference.y + reference.height\n };\n break;\n case 'right':\n coords = {\n x: reference.x + reference.width,\n y: commonY\n };\n break;\n case 'left':\n coords = {\n x: reference.x - floating.width,\n y: commonY\n };\n break;\n default:\n coords = {\n x: reference.x,\n y: reference.y\n };\n }\n switch (getAlignment(placement)) {\n case 'start':\n coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);\n break;\n case 'end':\n coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);\n break;\n }\n return coords;\n}\n\n/**\n * Computes the `x` and `y` coordinates that will place the floating element\n * next to a given reference element.\n *\n * This export does not have any `platform` interface logic. You will need to\n * write one for the platform you are using Floating UI with.\n */\nconst computePosition = async (reference, floating, config) => {\n const {\n placement = 'bottom',\n strategy = 'absolute',\n middleware = [],\n platform\n } = config;\n const validMiddleware = middleware.filter(Boolean);\n const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));\n let rects = await platform.getElementRects({\n reference,\n floating,\n strategy\n });\n let {\n x,\n y\n } = computeCoordsFromPlacement(rects, placement, rtl);\n let statefulPlacement = placement;\n let middlewareData = {};\n let resetCount = 0;\n for (let i = 0; i < validMiddleware.length; i++) {\n const {\n name,\n fn\n } = validMiddleware[i];\n const {\n x: nextX,\n y: nextY,\n data,\n reset\n } = await fn({\n x,\n y,\n initialPlacement: placement,\n placement: statefulPlacement,\n strategy,\n middlewareData,\n rects,\n platform,\n elements: {\n reference,\n floating\n }\n });\n x = nextX != null ? nextX : x;\n y = nextY != null ? nextY : y;\n middlewareData = {\n ...middlewareData,\n [name]: {\n ...middlewareData[name],\n ...data\n }\n };\n if (reset && resetCount <= 50) {\n resetCount++;\n if (typeof reset === 'object') {\n if (reset.placement) {\n statefulPlacement = reset.placement;\n }\n if (reset.rects) {\n rects = reset.rects === true ? await platform.getElementRects({\n reference,\n floating,\n strategy\n }) : reset.rects;\n }\n ({\n x,\n y\n } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));\n }\n i = -1;\n }\n }\n return {\n x,\n y,\n placement: statefulPlacement,\n strategy,\n middlewareData\n };\n};\n\n/**\n * Resolves with an object of overflow side offsets that determine how much the\n * element is overflowing a given clipping boundary on each side.\n * - positive = overflowing the boundary by that number of pixels\n * - negative = how many pixels left before it will overflow\n * - 0 = lies flush with the boundary\n * @see https://floating-ui.com/docs/detectOverflow\n */\nasync function detectOverflow(state, options) {\n var _await$platform$isEle;\n if (options === void 0) {\n options = {};\n }\n const {\n x,\n y,\n platform,\n rects,\n elements,\n strategy\n } = state;\n const {\n boundary = 'clippingAncestors',\n rootBoundary = 'viewport',\n elementContext = 'floating',\n altBoundary = false,\n padding = 0\n } = evaluate(options, state);\n const paddingObject = getPaddingObject(padding);\n const altContext = elementContext === 'floating' ? 'reference' : 'floating';\n const element = elements[altBoundary ? altContext : elementContext];\n const clippingClientRect = rectToClientRect(await platform.getClippingRect({\n element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),\n boundary,\n rootBoundary,\n strategy\n }));\n const rect = elementContext === 'floating' ? {\n ...rects.floating,\n x,\n y\n } : rects.reference;\n const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));\n const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {\n x: 1,\n y: 1\n } : {\n x: 1,\n y: 1\n };\n const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({\n elements,\n rect,\n offsetParent,\n strategy\n }) : rect);\n return {\n top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,\n bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,\n left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,\n right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x\n };\n}\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = options => ({\n name: 'arrow',\n options,\n async fn(state) {\n const {\n x,\n y,\n placement,\n rects,\n platform,\n elements,\n middlewareData\n } = state;\n // Since `element` is required, we don't Partial<> the type.\n const {\n element,\n padding = 0\n } = evaluate(options, state) || {};\n if (element == null) {\n return {};\n }\n const paddingObject = getPaddingObject(padding);\n const coords = {\n x,\n y\n };\n const axis = getAlignmentAxis(placement);\n const length = getAxisLength(axis);\n const arrowDimensions = await platform.getDimensions(element);\n const isYAxis = axis === 'y';\n const minProp = isYAxis ? 'top' : 'left';\n const maxProp = isYAxis ? 'bottom' : 'right';\n const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';\n const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];\n const startDiff = coords[axis] - rects.reference[axis];\n const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));\n let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;\n\n // DOM platform can return `window` as the `offsetParent`.\n if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {\n clientSize = elements.floating[clientProp] || rects.floating[length];\n }\n const centerToReference = endDiff / 2 - startDiff / 2;\n\n // If the padding is large enough that it causes the arrow to no longer be\n // centered, modify the padding so that it is centered.\n const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;\n const minPadding = min(paddingObject[minProp], largestPossiblePadding);\n const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);\n\n // Make sure the arrow doesn't overflow the floating element if the center\n // point is outside the floating element's bounds.\n const min$1 = minPadding;\n const max = clientSize - arrowDimensions[length] - maxPadding;\n const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;\n const offset = clamp(min$1, center, max);\n\n // If the reference is small enough that the arrow's padding causes it to\n // to point to nothing for an aligned placement, adjust the offset of the\n // floating element itself. To ensure `shift()` continues to take action,\n // a single reset is performed when this is true.\n const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;\n const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;\n return {\n [axis]: coords[axis] + alignmentOffset,\n data: {\n [axis]: offset,\n centerOffset: center - offset - alignmentOffset,\n ...(shouldAddOffset && {\n alignmentOffset\n })\n },\n reset: shouldAddOffset\n };\n }\n});\n\nfunction getPlacementList(alignment, autoAlignment, allowedPlacements) {\n const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement);\n return allowedPlacementsSortedByAlignment.filter(placement => {\n if (alignment) {\n return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);\n }\n return true;\n });\n}\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'autoPlacement',\n options,\n async fn(state) {\n var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE;\n const {\n rects,\n middlewareData,\n placement,\n platform,\n elements\n } = state;\n const {\n crossAxis = false,\n alignment,\n allowedPlacements = placements,\n autoAlignment = true,\n ...detectOverflowOptions\n } = evaluate(options, state);\n const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;\n const overflow = await detectOverflow(state, detectOverflowOptions);\n const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;\n const currentPlacement = placements$1[currentIndex];\n if (currentPlacement == null) {\n return {};\n }\n const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));\n\n // Make `computeCoords` start from the right place.\n if (placement !== currentPlacement) {\n return {\n reset: {\n placement: placements$1[0]\n }\n };\n }\n const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];\n const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), {\n placement: currentPlacement,\n overflows: currentOverflows\n }];\n const nextPlacement = placements$1[currentIndex + 1];\n\n // There are more placements to check.\n if (nextPlacement) {\n return {\n data: {\n index: currentIndex + 1,\n overflows: allOverflows\n },\n reset: {\n placement: nextPlacement\n }\n };\n }\n const placementsSortedByMostSpace = allOverflows.map(d => {\n const alignment = getAlignment(d.placement);\n return [d.placement, alignment && crossAxis ?\n // Check along the mainAxis and main crossAxis side.\n d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0) :\n // Check only the mainAxis.\n d.overflows[0], d.overflows];\n }).sort((a, b) => a[1] - b[1]);\n const placementsThatFitOnEachSide = placementsSortedByMostSpace.filter(d => d[2].slice(0,\n // Aligned placements should not check their opposite crossAxis\n // side.\n getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));\n const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];\n if (resetPlacement !== placement) {\n return {\n data: {\n index: currentIndex + 1,\n overflows: allOverflows\n },\n reset: {\n placement: resetPlacement\n }\n };\n }\n return {};\n }\n };\n};\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'flip',\n options,\n async fn(state) {\n var _middlewareData$arrow, _middlewareData$flip;\n const {\n placement,\n middlewareData,\n rects,\n initialPlacement,\n platform,\n elements\n } = state;\n const {\n mainAxis: checkMainAxis = true,\n crossAxis: checkCrossAxis = true,\n fallbackPlacements: specifiedFallbackPlacements,\n fallbackStrategy = 'bestFit',\n fallbackAxisSideDirection = 'none',\n flipAlignment = true,\n ...detectOverflowOptions\n } = evaluate(options, state);\n\n // If a reset by the arrow was caused due to an alignment offset being\n // added, we should skip any logic now since `flip()` has already done its\n // work.\n // https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643\n if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {\n return {};\n }\n const side = getSide(placement);\n const isBasePlacement = getSide(initialPlacement) === initialPlacement;\n const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));\n const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));\n if (!specifiedFallbackPlacements && fallbackAxisSideDirection !== 'none') {\n fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));\n }\n const placements = [initialPlacement, ...fallbackPlacements];\n const overflow = await detectOverflow(state, detectOverflowOptions);\n const overflows = [];\n let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];\n if (checkMainAxis) {\n overflows.push(overflow[side]);\n }\n if (checkCrossAxis) {\n const sides = getAlignmentSides(placement, rects, rtl);\n overflows.push(overflow[sides[0]], overflow[sides[1]]);\n }\n overflowsData = [...overflowsData, {\n placement,\n overflows\n }];\n\n // One or more sides is overflowing.\n if (!overflows.every(side => side <= 0)) {\n var _middlewareData$flip2, _overflowsData$filter;\n const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;\n const nextPlacement = placements[nextIndex];\n if (nextPlacement) {\n // Try next placement and re-run the lifecycle.\n return {\n data: {\n index: nextIndex,\n overflows: overflowsData\n },\n reset: {\n placement: nextPlacement\n }\n };\n }\n\n // First, find the candidates that fit on the mainAxis side of overflow,\n // then find the placement that fits the best on the main crossAxis side.\n let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;\n\n // Otherwise fallback.\n if (!resetPlacement) {\n switch (fallbackStrategy) {\n case 'bestFit':\n {\n var _overflowsData$map$so;\n const placement = (_overflowsData$map$so = overflowsData.map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$map$so[0];\n if (placement) {\n resetPlacement = placement;\n }\n break;\n }\n case 'initialPlacement':\n resetPlacement = initialPlacement;\n break;\n }\n }\n if (placement !== resetPlacement) {\n return {\n reset: {\n placement: resetPlacement\n }\n };\n }\n }\n return {};\n }\n };\n};\n\nfunction getSideOffsets(overflow, rect) {\n return {\n top: overflow.top - rect.height,\n right: overflow.right - rect.width,\n bottom: overflow.bottom - rect.height,\n left: overflow.left - rect.width\n };\n}\nfunction isAnySideFullyClipped(overflow) {\n return sides.some(side => overflow[side] >= 0);\n}\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'hide',\n options,\n async fn(state) {\n const {\n rects\n } = state;\n const {\n strategy = 'referenceHidden',\n ...detectOverflowOptions\n } = evaluate(options, state);\n switch (strategy) {\n case 'referenceHidden':\n {\n const overflow = await detectOverflow(state, {\n ...detectOverflowOptions,\n elementContext: 'reference'\n });\n const offsets = getSideOffsets(overflow, rects.reference);\n return {\n data: {\n referenceHiddenOffsets: offsets,\n referenceHidden: isAnySideFullyClipped(offsets)\n }\n };\n }\n case 'escaped':\n {\n const overflow = await detectOverflow(state, {\n ...detectOverflowOptions,\n altBoundary: true\n });\n const offsets = getSideOffsets(overflow, rects.floating);\n return {\n data: {\n escapedOffsets: offsets,\n escaped: isAnySideFullyClipped(offsets)\n }\n };\n }\n default:\n {\n return {};\n }\n }\n }\n };\n};\n\nfunction getBoundingRect(rects) {\n const minX = min(...rects.map(rect => rect.left));\n const minY = min(...rects.map(rect => rect.top));\n const maxX = max(...rects.map(rect => rect.right));\n const maxY = max(...rects.map(rect => rect.bottom));\n return {\n x: minX,\n y: minY,\n width: maxX - minX,\n height: maxY - minY\n };\n}\nfunction getRectsByLine(rects) {\n const sortedRects = rects.slice().sort((a, b) => a.y - b.y);\n const groups = [];\n let prevRect = null;\n for (let i = 0; i < sortedRects.length; i++) {\n const rect = sortedRects[i];\n if (!prevRect || rect.y - prevRect.y > prevRect.height / 2) {\n groups.push([rect]);\n } else {\n groups[groups.length - 1].push(rect);\n }\n prevRect = rect;\n }\n return groups.map(rect => rectToClientRect(getBoundingRect(rect)));\n}\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'inline',\n options,\n async fn(state) {\n const {\n placement,\n elements,\n rects,\n platform,\n strategy\n } = state;\n // A MouseEvent's client{X,Y} coords can be up to 2 pixels off a\n // ClientRect's bounds, despite the event listener being triggered. A\n // padding of 2 seems to handle this issue.\n const {\n padding = 2,\n x,\n y\n } = evaluate(options, state);\n const nativeClientRects = Array.from((await (platform.getClientRects == null ? void 0 : platform.getClientRects(elements.reference))) || []);\n const clientRects = getRectsByLine(nativeClientRects);\n const fallback = rectToClientRect(getBoundingRect(nativeClientRects));\n const paddingObject = getPaddingObject(padding);\n function getBoundingClientRect() {\n // There are two rects and they are disjoined.\n if (clientRects.length === 2 && clientRects[0].left > clientRects[1].right && x != null && y != null) {\n // Find the first rect in which the point is fully inside.\n return clientRects.find(rect => x > rect.left - paddingObject.left && x < rect.right + paddingObject.right && y > rect.top - paddingObject.top && y < rect.bottom + paddingObject.bottom) || fallback;\n }\n\n // There are 2 or more connected rects.\n if (clientRects.length >= 2) {\n if (getSideAxis(placement) === 'y') {\n const firstRect = clientRects[0];\n const lastRect = clientRects[clientRects.length - 1];\n const isTop = getSide(placement) === 'top';\n const top = firstRect.top;\n const bottom = lastRect.bottom;\n const left = isTop ? firstRect.left : lastRect.left;\n const right = isTop ? firstRect.right : lastRect.right;\n const width = right - left;\n const height = bottom - top;\n return {\n top,\n bottom,\n left,\n right,\n width,\n height,\n x: left,\n y: top\n };\n }\n const isLeftSide = getSide(placement) === 'left';\n const maxRight = max(...clientRects.map(rect => rect.right));\n const minLeft = min(...clientRects.map(rect => rect.left));\n const measureRects = clientRects.filter(rect => isLeftSide ? rect.left === minLeft : rect.right === maxRight);\n const top = measureRects[0].top;\n const bottom = measureRects[measureRects.length - 1].bottom;\n const left = minLeft;\n const right = maxRight;\n const width = right - left;\n const height = bottom - top;\n return {\n top,\n bottom,\n left,\n right,\n width,\n height,\n x: left,\n y: top\n };\n }\n return fallback;\n }\n const resetRects = await platform.getElementRects({\n reference: {\n getBoundingClientRect\n },\n floating: elements.floating,\n strategy\n });\n if (rects.reference.x !== resetRects.reference.x || rects.reference.y !== resetRects.reference.y || rects.reference.width !== resetRects.reference.width || rects.reference.height !== resetRects.reference.height) {\n return {\n reset: {\n rects: resetRects\n }\n };\n }\n return {};\n }\n };\n};\n\n// For type backwards-compatibility, the `OffsetOptions` type was also\n// Derivable.\n\nasync function convertValueToCoords(state, options) {\n const {\n placement,\n platform,\n elements\n } = state;\n const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));\n const side = getSide(placement);\n const alignment = getAlignment(placement);\n const isVertical = getSideAxis(placement) === 'y';\n const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;\n const crossAxisMulti = rtl && isVertical ? -1 : 1;\n const rawValue = evaluate(options, state);\n let {\n mainAxis,\n crossAxis,\n alignmentAxis\n } = typeof rawValue === 'number' ? {\n mainAxis: rawValue,\n crossAxis: 0,\n alignmentAxis: null\n } : {\n mainAxis: 0,\n crossAxis: 0,\n alignmentAxis: null,\n ...rawValue\n };\n if (alignment && typeof alignmentAxis === 'number') {\n crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;\n }\n return isVertical ? {\n x: crossAxis * crossAxisMulti,\n y: mainAxis * mainAxisMulti\n } : {\n x: mainAxis * mainAxisMulti,\n y: crossAxis * crossAxisMulti\n };\n}\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = function (options) {\n if (options === void 0) {\n options = 0;\n }\n return {\n name: 'offset',\n options,\n async fn(state) {\n var _middlewareData$offse, _middlewareData$arrow;\n const {\n x,\n y,\n placement,\n middlewareData\n } = state;\n const diffCoords = await convertValueToCoords(state, options);\n\n // If the placement is the same and the arrow caused an alignment offset\n // then we don't need to change the positioning coordinates.\n if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {\n return {};\n }\n return {\n x: x + diffCoords.x,\n y: y + diffCoords.y,\n data: {\n ...diffCoords,\n placement\n }\n };\n }\n };\n};\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'shift',\n options,\n async fn(state) {\n const {\n x,\n y,\n placement\n } = state;\n const {\n mainAxis: checkMainAxis = true,\n crossAxis: checkCrossAxis = false,\n limiter = {\n fn: _ref => {\n let {\n x,\n y\n } = _ref;\n return {\n x,\n y\n };\n }\n },\n ...detectOverflowOptions\n } = evaluate(options, state);\n const coords = {\n x,\n y\n };\n const overflow = await detectOverflow(state, detectOverflowOptions);\n const crossAxis = getSideAxis(getSide(placement));\n const mainAxis = getOppositeAxis(crossAxis);\n let mainAxisCoord = coords[mainAxis];\n let crossAxisCoord = coords[crossAxis];\n if (checkMainAxis) {\n const minSide = mainAxis === 'y' ? 'top' : 'left';\n const maxSide = mainAxis === 'y' ? 'bottom' : 'right';\n const min = mainAxisCoord + overflow[minSide];\n const max = mainAxisCoord - overflow[maxSide];\n mainAxisCoord = clamp(min, mainAxisCoord, max);\n }\n if (checkCrossAxis) {\n const minSide = crossAxis === 'y' ? 'top' : 'left';\n const maxSide = crossAxis === 'y' ? 'bottom' : 'right';\n const min = crossAxisCoord + overflow[minSide];\n const max = crossAxisCoord - overflow[maxSide];\n crossAxisCoord = clamp(min, crossAxisCoord, max);\n }\n const limitedCoords = limiter.fn({\n ...state,\n [mainAxis]: mainAxisCoord,\n [crossAxis]: crossAxisCoord\n });\n return {\n ...limitedCoords,\n data: {\n x: limitedCoords.x - x,\n y: limitedCoords.y - y\n }\n };\n }\n };\n};\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n options,\n fn(state) {\n const {\n x,\n y,\n placement,\n rects,\n middlewareData\n } = state;\n const {\n offset = 0,\n mainAxis: checkMainAxis = true,\n crossAxis: checkCrossAxis = true\n } = evaluate(options, state);\n const coords = {\n x,\n y\n };\n const crossAxis = getSideAxis(placement);\n const mainAxis = getOppositeAxis(crossAxis);\n let mainAxisCoord = coords[mainAxis];\n let crossAxisCoord = coords[crossAxis];\n const rawOffset = evaluate(offset, state);\n const computedOffset = typeof rawOffset === 'number' ? {\n mainAxis: rawOffset,\n crossAxis: 0\n } : {\n mainAxis: 0,\n crossAxis: 0,\n ...rawOffset\n };\n if (checkMainAxis) {\n const len = mainAxis === 'y' ? 'height' : 'width';\n const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;\n const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;\n if (mainAxisCoord < limitMin) {\n mainAxisCoord = limitMin;\n } else if (mainAxisCoord > limitMax) {\n mainAxisCoord = limitMax;\n }\n }\n if (checkCrossAxis) {\n var _middlewareData$offse, _middlewareData$offse2;\n const len = mainAxis === 'y' ? 'width' : 'height';\n const isOriginSide = ['top', 'left'].includes(getSide(placement));\n const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);\n const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);\n if (crossAxisCoord < limitMin) {\n crossAxisCoord = limitMin;\n } else if (crossAxisCoord > limitMax) {\n crossAxisCoord = limitMax;\n }\n }\n return {\n [mainAxis]: mainAxisCoord,\n [crossAxis]: crossAxisCoord\n };\n }\n };\n};\n\n/**\n * Provides data that allows you to change the size of the floating element —\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'size',\n options,\n async fn(state) {\n const {\n placement,\n rects,\n platform,\n elements\n } = state;\n const {\n apply = () => {},\n ...detectOverflowOptions\n } = evaluate(options, state);\n const overflow = await detectOverflow(state, detectOverflowOptions);\n const side = getSide(placement);\n const alignment = getAlignment(placement);\n const isYAxis = getSideAxis(placement) === 'y';\n const {\n width,\n height\n } = rects.floating;\n let heightSide;\n let widthSide;\n if (side === 'top' || side === 'bottom') {\n heightSide = side;\n widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right';\n } else {\n widthSide = side;\n heightSide = alignment === 'end' ? 'top' : 'bottom';\n }\n const overflowAvailableHeight = height - overflow[heightSide];\n const overflowAvailableWidth = width - overflow[widthSide];\n const noShift = !state.middlewareData.shift;\n let availableHeight = overflowAvailableHeight;\n let availableWidth = overflowAvailableWidth;\n if (isYAxis) {\n const maximumClippingWidth = width - overflow.left - overflow.right;\n availableWidth = alignment || noShift ? min(overflowAvailableWidth, maximumClippingWidth) : maximumClippingWidth;\n } else {\n const maximumClippingHeight = height - overflow.top - overflow.bottom;\n availableHeight = alignment || noShift ? min(overflowAvailableHeight, maximumClippingHeight) : maximumClippingHeight;\n }\n if (noShift && !alignment) {\n const xMin = max(overflow.left, 0);\n const xMax = max(overflow.right, 0);\n const yMin = max(overflow.top, 0);\n const yMax = max(overflow.bottom, 0);\n if (isYAxis) {\n availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));\n } else {\n availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));\n }\n }\n await apply({\n ...state,\n availableWidth,\n availableHeight\n });\n const nextDimensions = await platform.getDimensions(elements.floating);\n if (width !== nextDimensions.width || height !== nextDimensions.height) {\n return {\n reset: {\n rects: true\n }\n };\n }\n return {};\n }\n };\n};\n\nexport { arrow, autoPlacement, computePosition, detectOverflow, flip, hide, inline, limitShift, offset, shift, size };\n"],"names":["computeCoordsFromPlacement","_ref","placement","rtl","reference","floating","sideAxis","getSideAxis","alignmentAxis","getAlignmentAxis","alignLength","getAxisLength","side","getSide","isVertical","commonX","commonY","commonAlign","coords","getAlignment","computePosition","config","strategy","middleware","platform","validMiddleware","rects","x","y","statefulPlacement","middlewareData","resetCount","i","name","fn","nextX","nextY","data","reset","detectOverflow","state","options","_await$platform$isEle","elements","boundary","rootBoundary","elementContext","altBoundary","padding","evaluate","paddingObject","getPaddingObject","element","clippingClientRect","rectToClientRect","rect","offsetParent","offsetScale","elementClientRect","arrow","axis","length","arrowDimensions","isYAxis","minProp","maxProp","clientProp","endDiff","startDiff","arrowOffsetParent","clientSize","centerToReference","largestPossiblePadding","minPadding","min","maxPadding","min$1","max","center","offset","clamp","shouldAddOffset","alignmentOffset","flip","_middlewareData$arrow","_middlewareData$flip","initialPlacement","checkMainAxis","checkCrossAxis","specifiedFallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment","detectOverflowOptions","isBasePlacement","fallbackPlacements","getOppositePlacement","getExpandedPlacements","getOppositeAxisPlacements","placements","overflow","overflows","overflowsData","sides","getAlignmentSides","_middlewareData$flip2","_overflowsData$filter","nextIndex","nextPlacement","resetPlacement","d","a","b","_overflowsData$map$so","acc","getSideOffsets","isAnySideFullyClipped","hide","offsets","convertValueToCoords","alignment","mainAxisMulti","crossAxisMulti","rawValue","mainAxis","crossAxis","_middlewareData$offse","diffCoords","shift","limiter","getOppositeAxis","mainAxisCoord","crossAxisCoord","minSide","maxSide","limitedCoords","limitShift","rawOffset","computedOffset","len","limitMin","limitMax","_middlewareData$offse2","isOriginSide","size","apply","width","height","heightSide","widthSide","overflowAvailableHeight","overflowAvailableWidth","noShift","availableHeight","availableWidth","maximumClippingWidth","maximumClippingHeight","xMin","xMax","yMin","yMax","nextDimensions"],"mappings":"qHAGA,SAASA,EAA2BC,EAAMC,EAAWC,EAAK,CACxD,GAAI,CACF,UAAAC,EACA,SAAAC,CACD,EAAGJ,EACJ,MAAMK,EAAWC,cAAYL,CAAS,EAChCM,EAAgBC,mBAAiBP,CAAS,EAC1CQ,EAAcC,gBAAcH,CAAa,EACzCI,EAAOC,UAAQX,CAAS,EACxBY,EAAaR,IAAa,IAC1BS,EAAUX,EAAU,EAAIA,EAAU,MAAQ,EAAIC,EAAS,MAAQ,EAC/DW,EAAUZ,EAAU,EAAIA,EAAU,OAAS,EAAIC,EAAS,OAAS,EACjEY,EAAcb,EAAUM,CAAW,EAAI,EAAIL,EAASK,CAAW,EA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,CACL,CACA","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.cjs202.js","sources":["../../../node_modules/node-webvtt/lib/compiler.js"],"sourcesContent":["'use strict';\n\n/**\n * See spec: https://www.w3.org/TR/webvtt1/#file-structure\n */\n\nfunction CompilerError (message, error) {\n this.message = message;\n this.error = error;\n}\n\nCompilerError.prototype = Object.create(Error.prototype);\n\nfunction compile (input) {\n\n if (!input) {\n throw new CompilerError('Input must be non-null');\n }\n\n if (typeof input !== 'object') {\n throw new CompilerError('Input must be an object');\n }\n\n if (Array.isArray(input)) {\n throw new CompilerError('Input cannot be array');\n }\n\n if (!input.valid) {\n throw new CompilerError('Input must be valid');\n }\n\n let output = 'WEBVTT\\n';\n\n if (input.meta) {\n if (typeof input.meta !== 'object' || Array.isArray(input.meta)) {\n throw new CompilerError('Metadata must be an object');\n }\n\n Object.entries(input.meta).forEach((i) => {\n if (typeof i[1] !== 'string') {\n throw new CompilerError(`Metadata value for \"${i[0]}\" must be string`);\n }\n\n output += `${i[0]}: ${i[1]}\\n`;\n });\n }\n\n let lastTime = null;\n\n input.cues.forEach((cue, index) => {\n if (lastTime && lastTime > cue.start) {\n throw new CompilerError(`Cue number ${index} is not in chronological`\n + ' order');\n }\n\n lastTime = cue.start;\n\n output += '\\n';\n output += compileCue(cue);\n output += '\\n';\n });\n\n return output;\n}\n\n/**\n * Compile a single cue block.\n *\n * @param {array} cue Array of content for the cue\n *\n * @returns {object} cue Cue object with start, end, text and styles.\n * Null if it's a note\n */\nfunction compileCue (cue) {\n // TODO: check for malformed JSON\n if (typeof cue !== 'object') {\n throw new CompilerError('Cue malformed: not of type object');\n }\n\n if (typeof cue.identifier !== 'string' &&\n typeof cue.identifier !== 'number' &&\n cue.identifier !== null) {\n throw new CompilerError(`Cue malformed: identifier value is not a string.\n ${JSON.stringify(cue)}`);\n }\n\n if (isNaN(cue.start)) {\n throw new CompilerError(`Cue malformed: null start value.\n ${JSON.stringify(cue)}`);\n }\n\n if (isNaN(cue.end)) {\n throw new CompilerError(`Cue malformed: null end value.\n ${JSON.stringify(cue)}`);\n }\n\n if (cue.start >= cue.end) {\n throw new CompilerError(`Cue malformed: start timestamp greater than end\n ${JSON.stringify(cue)}`);\n }\n\n if (typeof cue.text !== 'string') {\n throw new CompilerError(`Cue malformed: null text value.\n ${JSON.stringify(cue)}`);\n }\n\n if (typeof cue.styles !== 'string') {\n throw new CompilerError(`Cue malformed: null styles value.\n ${JSON.stringify(cue)}`);\n }\n\n let output = '';\n\n if (cue.identifier.length > 0) {\n output += `${cue.identifier}\\n`;\n }\n\n const startTimestamp = convertTimestamp(cue.start);\n const endTimestamp = convertTimestamp(cue.end);\n\n output += `${startTimestamp} --> ${endTimestamp}`;\n output += cue.styles ? ` ${cue.styles}` : '';\n output += `\\n${cue.text}`;\n\n return output;\n}\n\nfunction convertTimestamp (time) {\n const hours = pad(calculateHours(time), 2);\n const minutes = pad(calculateMinutes(time), 2);\n const seconds = pad(calculateSeconds(time), 2);\n const milliseconds = pad(calculateMs(time), 3);\n return `${hours}:${minutes}:${seconds}.${milliseconds}`;\n}\n\nfunction pad (num, zeroes) {\n let output = `${num}`;\n\n while (output.length < zeroes) {\n output = `0${ output }`;\n }\n\n return output;\n}\n\nfunction calculateHours (time) {\n return Math.floor(time / 60 / 60);\n}\n\nfunction calculateMinutes (time) {\n return (Math.floor(time / 60) % 60);\n}\n\nfunction calculateSeconds (time) {\n return Math.floor((time) % 60);\n}\n\nfunction calculateMs (time) {\n return Math.floor((time % 1).toFixed(4) * 1000);\n}\n\nmodule.exports = { CompilerError, compile };\n"],"names":["CompilerError","message","error","compile","input","output","i","lastTime","cue","index","compileCue","startTimestamp","convertTimestamp","endTimestamp","time","hours","pad","calculateHours","minutes","calculateMinutes","seconds","calculateSeconds","milliseconds","calculateMs","num","zeroes","compiler"],"mappings":"gFAMA,SAASA,EAAeC,EAASC,EAAO,CACtC,KAAK,QAAUD,EACf,KAAK,MAAQC,CACf,CAEAF,EAAc,UAAY,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AC7B,OAAO,KAAK,MAAMA,EAAO,GAAK,EAAE,CAClC,CAEA,SAASK,EAAkBL,EAAM,CAC/B,OAAQ,KAAK,MAAMA,EAAO,EAAE,EAAI,EAClC,CAEA,SAASO,EAAkBP,EAAM,CACxB,OAAA,KAAK,MAAOA,EAAQ,EAAE,CAC/B,CAEA,SAASS,EAAaT,EAAM,CAC1B,OAAO,KAAK,OAAOA,EAAO,GAAG,QAAQ,CAAC,EAAI,GAAI,CAChD,CAEA,IAAAY,EAAiB,CAAE,cAAA1B,EAAe,QAAAG,CAAQ","x_google_ignoreList":[0]}
|
package/dist/index.cjs203.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./index.cjs201.js"),D=y.parser.parse;function q(s,e){e=e||10;const t=D(s),u=[];let r=[],n=null,o=0,a=0;return t.cues.forEach((i,c)=>{const f=c===0,p=c===t.cues.length-1,S=i.start,l=i.end,m=p?1/0:t.cues[c+1].start,b=f?l:l-S,d=f?0:S-t.cues[c-1].end;o=o+b+d,`${c}`,u.length+1,n&&(r.push(n),o+=n.end-a,n=null),r.push(i);let x=m-l<e&&d<e&&o>e;if(v(a,e,m,d)){const C=F(p,l,e,o,a);u.push({duration:C,cues:r}),a+=C,o=0,r=[]}else x=!1;x&&(n=i)}),u}function v(s,e,t,u){const r=I(u,e);return(u<=e||r+s<t)&&t-s>=e}function F(s,e,t,u,r){let n=t;return u>t&&(n=I(u-t,t)),s?n=parseFloat((e-r).toFixed(2)):n=Math.round(n),n}function I(s,e){return s+=e-s%e,s}var M={segment:q};exports.segmenter=M;
|
|
2
2
|
//# sourceMappingURL=index.cjs203.js.map
|
package/dist/index.cjs203.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs203.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index.cjs203.js","sources":["../../../node_modules/node-webvtt/lib/segmenter.js"],"sourcesContent":["'use strict';\n\nconst parse = require('./parser').parse;\n\nfunction segment (input, segmentLength) {\n segmentLength = segmentLength || 10;\n\n const parsed = parse(input);\n const segments = [];\n\n let cues = [];\n let queuedCue = null;\n let currentSegmentDuration = 0;\n let totalSegmentsDuration = 0;\n\n /**\n * One pass segmenting of cues\n */\n parsed.cues.forEach((cue, i) => {\n const firstCue = i === 0;\n const lastCue = i === parsed.cues.length - 1;\n const start = cue.start;\n const end = cue.end;\n const nextStart = lastCue ? Infinity : parsed.cues[i + 1].start;\n const cueLength = firstCue ? end : end - start;\n const silence = firstCue ? 0 : (start - parsed.cues[i - 1].end);\n\n currentSegmentDuration = currentSegmentDuration + cueLength + silence;\n\n debug('------------');\n debug(`Cue #${i}, segment #${segments.length + 1}`);\n debug(`Start ${start}`);\n debug(`End ${end}`);\n debug(`Length ${cueLength}`);\n debug(`Total segment duration = ${totalSegmentsDuration}`);\n debug(`Current segment duration = ${currentSegmentDuration}`);\n debug(`Start of next = ${nextStart}`);\n\n // if there's a boundary cue queued, push and clear queue\n if (queuedCue) {\n cues.push(queuedCue);\n currentSegmentDuration += queuedCue.end - totalSegmentsDuration;\n queuedCue = null;\n }\n\n cues.push(cue);\n\n // if a cue passes a segment boundary, it appears in both\n let shouldQueue = nextStart - end < segmentLength &&\n silence < segmentLength &&\n currentSegmentDuration > segmentLength;\n\n if (shouldSegment(totalSegmentsDuration, segmentLength, nextStart,\n silence)) {\n\n const duration = segmentDuration(lastCue, end, segmentLength,\n currentSegmentDuration,\n totalSegmentsDuration);\n\n segments.push({ duration, cues });\n\n totalSegmentsDuration += duration;\n currentSegmentDuration = 0;\n cues = [];\n } else {\n shouldQueue = false;\n }\n\n if (shouldQueue) {\n queuedCue = cue;\n }\n });\n\n return segments;\n}\n\nfunction shouldSegment (total, length, nextStart, silence) {\n\n // this is stupid, but gets one case fixed...\n const x = alignToSegmentLength(silence, length);\n const nextCueIsInNextSegment = silence <= length ||\n x + total < nextStart;\n\n return nextCueIsInNextSegment && nextStart - total >= length;\n}\n\nfunction segmentDuration (lastCue, end, length, currentSegment, totalSegments) {\n let duration = length;\n\n if (currentSegment > length) {\n duration = alignToSegmentLength(currentSegment - length, length);\n }\n\n // make sure the last cue covers the whole time of the cues\n if (lastCue) {\n duration = parseFloat((end - totalSegments).toFixed(2));\n } else {\n duration = Math.round(duration);\n }\n\n return duration;\n}\n\nfunction alignToSegmentLength (n, segmentLength) {\n n += segmentLength - n % segmentLength;\n return n;\n}\n\nconst debugging = false;\n\n/* istanbul ignore next */\nfunction debug (m) {\n if (debugging) {\n console.log(m);\n }\n}\n\nmodule.exports = { segment };\n"],"names":["parse","require$$0","segment","input","segmentLength","parsed","segments","cues","queuedCue","currentSegmentDuration","totalSegmentsDuration","cue","i","firstCue","lastCue","start","end","nextStart","cueLength","silence","shouldQueue","shouldSegment","duration","segmentDuration","total","length","x","alignToSegmentLength","currentSegment","totalSegments","n","segmenter"],"mappings":"qHAEMA,EAAQC,EAAoB,OAAA,MAElC,SAASC,EAASC,EAAOC,EAAe,CACtCA,EAAgBA,GAAiB,GAE3B,MAAAC,EAASL,EAAMG,CAAK,EACpBG,EAAW,CAAA,EAEjB,IAAIC,EAAO,CAAA,EACPC,EAAY,KACZC,EAAyB,EACzBC,EAAwB,EAK5B,OAAAL,EAAO,KAAK,QAAQ,CAACM,EAAKC,IAAM,CAC9B,MAAMC,EAAWD,IAAM,EACjBE,EAAUF,IAAMP,EAAO,KAAK,OAAS,EACrCU,EAAQJ,EAAI,MACZK,EAAML,EAAI,IACVM,EAAYH,EAAU,IAAWT,EAAO,KAAKO,EAAI,CAAC,EAAE,MACpDM,EAAYL,EAAWG,EAAMA,EAAMD,EACnCI,EAAUN,EAAW,EAAKE,EAAQV,EAAO,KAAKO,EAAI,CAAC,EAAE,IAE3DH,EAAyBA,EAAyBS,EAAYC,EAGhD,GAAAP,IAAeN,EAAS,OAAS,EAS3CE,IACFD,EAAK,KAAKC,CAAS,EACnBC,GAA0BD,EAAU,IAAME,EAC9BF,EAAA,MAGdD,EAAK,KAAKI,CAAG,EAGb,IAAIS,EAAcH,EAAYD,EAAMZ,GAChBe,EAAUf,GACVK,EAAyBL,EAEzC,GAAAiB,EAAcX,EAAuBN,EAAea,EACtDE,CAAA,EAAU,CAEV,MAAMG,EAAWC,EAAgBT,EAASE,EAAKZ,EAC7CK,EACAC,CAAA,EAEFJ,EAAS,KAAK,CAAE,SAAAgB,EAAU,KAAAf,CAAM,CAAA,EAEPG,GAAAY,EACAb,EAAA,EACzBF,EAAO,CAAA,CAAC,MAEMa,EAAA,GAGZA,IACUZ,EAAAG,EACd,CACD,EAEML,CACT,CAEA,SAASe,EAAeG,EAAOC,EAAQR,EAAWE,EAAS,CAGnD,MAAAO,EAAIC,EAAqBR,EAASM,CAAM,EAIvC,OAHwBN,GAAWM,GACXC,EAAIF,EAAQP,IAEVA,EAAYO,GAASC,CACxD,CAEA,SAASF,EAAiBT,EAASE,EAAKS,EAAQG,EAAgBC,EAAe,CAC7E,IAAIP,EAAWG,EAEf,OAAIG,EAAiBH,IACRH,EAAAK,EAAqBC,EAAiBH,EAAQA,CAAM,GAI7DX,EACFQ,EAAW,YAAYN,EAAMa,GAAe,QAAQ,CAAC,CAAC,EAE3CP,EAAA,KAAK,MAAMA,CAAQ,EAGzBA,CACT,CAEA,SAASK,EAAsBG,EAAG1B,EAAe,CAC/C,OAAA0B,GAAK1B,EAAgB0B,EAAI1B,EAClB0B,CACT,KAWAC,EAAiB,CAAE,QAAA7B,CAAQ","x_google_ignoreList":[0]}
|
package/dist/index.cjs204.js
CHANGED
|
@@ -1,2 +1,18 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index.cjs203.js"),c=d.segmenter.segment;function E(n,t,e){typeof e>"u"&&(e="900000");const o=c(n,t),r=[];return o.forEach((i,a)=>{const g=`WEBVTT
|
|
2
|
+
X-TIMESTAMP-MAP=MPEGTS:${e},LOCAL:00:00:00.000
|
|
3
|
+
|
|
4
|
+
${$(i.cues)}
|
|
5
|
+
`,h=l(a);r.push({filename:h,content:g})}),r}function f(n,t){const e=c(n,t),o=T(e);return`#EXTM3U
|
|
6
|
+
#EXT-X-TARGETDURATION:${Math.round(S(e))}
|
|
7
|
+
#EXT-X-VERSION:3
|
|
8
|
+
#EXT-X-MEDIA-SEQUENCE:0
|
|
9
|
+
#EXT-X-PLAYLIST-TYPE:VOD
|
|
10
|
+
${o}
|
|
11
|
+
#EXT-X-ENDLIST
|
|
12
|
+
`}function s(n,t){return`${"0".repeat(Math.max(0,t-n.toString().length))}${n}`}function l(n){return`${n}.vtt`}function T(n){const t=[];return n.forEach((e,o)=>{t.push(`#EXTINF:${e.duration.toFixed(5)},
|
|
13
|
+
${l(o)}`)}),t.join(`
|
|
14
|
+
`)}function S(n){let t=0;return n.forEach(e=>{e.duration>t&&(t=e.duration)}),t}function $(n){const t=[];return n.forEach(e=>{t.push(p(e))}),t.join(`
|
|
15
|
+
|
|
16
|
+
`)}function p(n){const t=[];n.identifier&&t.push(n.identifier);const e=u(n.start),o=u(n.end),r=n.styles?`${n.styles}`:"";return t.push(`${e} --> ${o} ${r}`),t.push(n.text),t.join(`
|
|
17
|
+
`)}function u(n){const t=(n%1).toFixed(3);n=Math.round(n-t);const e=Math.floor(n/3600),o=Math.floor((n-e*3600)/60),r=n-e*3600-o*60;return`${`${s(e,2)}:`}${s(o,2)}:${s(r,2)}.${s(t*1e3,3)}`}var m={hlsSegment:E,hlsSegmentPlaylist:f};exports.hls=m;
|
|
2
18
|
//# sourceMappingURL=index.cjs204.js.map
|
package/dist/index.cjs204.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs204.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index.cjs204.js","sources":["../../../node_modules/node-webvtt/lib/hls.js"],"sourcesContent":["'use strict';\n\nconst segment = require('./segmenter').segment;\n\nfunction hlsSegment (input, segmentLength, startOffset) {\n\n if (typeof startOffset === 'undefined') {\n startOffset = '900000';\n }\n\n const segments = segment(input, segmentLength);\n\n const result = [];\n segments.forEach((seg, i) => {\n\n const content = `WEBVTT\nX-TIMESTAMP-MAP=MPEGTS:${startOffset},LOCAL:00:00:00.000\n\n${printableCues(seg.cues)}\n`;\n const filename = generateSegmentFilename(i);\n result.push({ filename, content });\n });\n return result;\n}\n\nfunction hlsSegmentPlaylist (input, segmentLength) {\n\n const segmented = segment(input, segmentLength);\n\n const printable = printableSegments(segmented);\n const longestSegment = Math.round(findLongestSegment(segmented));\n\n const template = `#EXTM3U\n#EXT-X-TARGETDURATION:${longestSegment}\n#EXT-X-VERSION:3\n#EXT-X-MEDIA-SEQUENCE:0\n#EXT-X-PLAYLIST-TYPE:VOD\n${printable}\n#EXT-X-ENDLIST\n`;\n return template;\n}\n\nfunction pad (num, n) {\n const padding = '0'.repeat(Math.max(0, n - num.toString().length));\n\n return `${padding}${num}`;\n}\n\nfunction generateSegmentFilename (index) {\n return `${index}.vtt`;\n}\n\nfunction printableSegments (segments) {\n const result = [];\n segments.forEach((seg, i) => {\n result.push(`#EXTINF:${seg.duration.toFixed(5)},\n${generateSegmentFilename(i)}`);\n });\n\n return result.join('\\n');\n}\n\nfunction findLongestSegment (segments) {\n let max = 0;\n segments.forEach((seg) => {\n if (seg.duration > max) {\n max = seg.duration;\n }\n });\n\n return max;\n}\n\nfunction printableCues (cues) {\n const result = [];\n cues.forEach((cue) => {\n result.push(printableCue(cue));\n });\n\n return result.join('\\n\\n');\n}\n\nfunction printableCue (cue) {\n const printable = [];\n\n if (cue.identifier) {\n printable.push(cue.identifier);\n }\n\n const start = printableTimestamp(cue.start);\n const end = printableTimestamp(cue.end);\n\n const styles = cue.styles ? `${cue.styles}` : '';\n\n // always add a space after end timestamp, otherwise JWPlayer will not\n // handle cues correctly\n printable.push(`${start} --> ${end} ${styles}`);\n\n printable.push(cue.text);\n\n return printable.join('\\n');\n}\n\nfunction printableTimestamp (timestamp) {\n const ms = (timestamp % 1).toFixed(3);\n timestamp = Math.round(timestamp - ms);\n const hours = Math.floor(timestamp / 3600);\n const mins = Math.floor((timestamp - (hours * 3600)) / 60);\n const secs = timestamp - (hours * 3600) - (mins * 60);\n\n // TODO hours aren't required by spec, but we include them, should be config\n const hourString = `${pad(hours, 2)}:`;\n return `${hourString}${pad(mins, 2)}:${pad(secs, 2)}.${pad(ms * 1000, 3)}`;\n}\n\nmodule.exports = { hlsSegment, hlsSegmentPlaylist };\n"],"names":["segment","require$$0","hlsSegment","input","segmentLength","startOffset","segments","result","seg","i","content","printableCues","filename","generateSegmentFilename","hlsSegmentPlaylist","segmented","printable","printableSegments","findLongestSegment","pad","num","n","index","max","cues","cue","printableCue","start","printableTimestamp","end","styles","timestamp","ms","hours","mins","secs","hls"],"mappings":"qHAEMA,EAAUC,EAAuB,UAAA,QAEvC,SAASC,EAAYC,EAAOC,EAAeC,EAAa,CAElD,OAAOA,EAAgB,MACXA,EAAA,UAGV,MAAAC,EAAWN,EAAQG,EAAOC,CAAa,EAEvCG,EAAS,CAAA,EACN,OAAAD,EAAA,QAAQ,CAACE,EAAKC,IAAM,CAE3B,MAAMC,EAAU;AAAA,yBACKL,CAAW;AAAA;AAAA,EAElCM,EAAcH,EAAI,IAAI,CAAC;AAAA,EAEfI,EAAWC,EAAwBJ,CAAC,EAC1CF,EAAO,KAAK,CAAE,SAAAK,EAAU,QAAAF,CAAS,CAAA,CAAA,CAClC,EACMH,CACT,CAEA,SAASO,EAAoBX,EAAOC,EAAe,CAE3C,MAAAW,EAAYf,EAAQG,EAAOC,CAAa,EAExCY,EAAYC,EAAkBF,CAAS,EAWtC,MARU;AAAA,wBAFM,KAAK,MAAMG,EAAmBH,CAAS,CAAC,CAG3B;AAAA;AAAA;AAAA;AAAA,EAIpCC,CAAS;AAAA;AAAA,CA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KAAK,MAAMA,EAAYC,CAAE,EACrC,MAAMC,EAAQ,KAAK,MAAMF,EAAY,IAAI,EACnCG,EAAO,KAAK,OAAOH,EAAaE,EAAQ,MAAS,EAAE,EACnDE,EAAOJ,EAAaE,EAAQ,KAASC,EAAO,GAIlD,MAAO,GADY,GAAGf,EAAIc,EAAO,CAAC,CAAC,GACf,GAAGd,EAAIe,EAAM,CAAC,CAAC,IAAIf,EAAIgB,EAAM,CAAC,CAAC,IAAIhB,EAAIa,EAAK,IAAM,CAAC,CAAC,EAC1E,CAEA,IAAAI,EAAiB,CAAE,WAAAlC,EAAY,mBAAAY,CAAmB","x_google_ignoreList":[0]}
|
package/dist/index.cjs205.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|
|
2
2
|
//# sourceMappingURL=index.cjs205.js.map
|
package/dist/index.cjs205.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs205.js","sources":[
|
|
1
|
+
{"version":3,"file":"index.cjs205.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.cjs206.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function u(s,c,{checkForDefaultPrevented:t=!0}={}){return function(f){if(s==null||s(f),t===!1||!f.defaultPrevented)return c==null?void 0:c(f)}}exports.composeEventHandlers=u;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Te=Object.defineProperty,Se=(e,t,i)=>t in e?Te(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,T=(e,t,i)=>(Se(e,typeof t!="symbol"?t+"":t,i),i);const s=[];Object.freeze(s);const B={id:"https://iiif-parser/annotation-page",type:"AnnotationPage",behavior:s,motivation:null,label:null,thumbnail:s,summary:null,requiredStatement:null,metadata:s,rights:null,provider:s,items:s,seeAlso:s,homepage:s,logo:s,rendering:s,service:s},H={id:"https://iiif-parser/empty-canvas",type:"Canvas",label:null,behavior:s,motivation:null,thumbnail:s,posterCanvas:null,accompanyingCanvas:null,placeholderCanvas:null,summary:null,requiredStatement:null,metadata:s,rights:null,navDate:null,provider:s,items:s,annotations:s,seeAlso:s,homepage:s,logo:s,partOf:s,rendering:s,service:s,duration:0,height:0,width:0},Y={id:"https://iiif-parser/empty-collection",type:"Collection",label:null,viewingDirection:"left-to-right",behavior:s,motivation:null,thumbnail:s,posterCanvas:null,accompanyingCanvas:null,placeholderCanvas:null,summary:null,requiredStatement:null,metadata:s,rights:null,navDate:null,provider:s,items:s,annotations:s,seeAlso:s,homepage:s,logo:s,partOf:s,rendering:s,service:s,services:s},K={id:"https://iiif-parser/empty-manifest",type:"Manifest",annotations:s,behavior:s,homepage:s,items:s,label:null,logo:s,metadata:s,motivation:null,navDate:null,provider:s,partOf:s,posterCanvas:null,accompanyingCanvas:null,placeholderCanvas:null,rendering:s,requiredStatement:null,rights:null,seeAlso:s,service:s,services:s,start:null,structures:s,summary:null,thumbnail:s,viewingDirection:"left-to-right"},Q={id:"https://iiif-parser/empty-canvas",type:"Range",label:null,behavior:s,motivation:null,thumbnail:s,posterCanvas:null,accompanyingCanvas:null,placeholderCanvas:null,summary:null,requiredStatement:null,metadata:s,rights:null,navDate:null,provider:s,items:s,annotations:s,seeAlso:s,homepage:s,logo:s,partOf:s,rendering:s,service:s,start:null,supplementary:null,viewingDirection:"left-to-right"},X={id:"https://iiif-parser/empty-agent",type:"Agent",label:{},logo:s,seeAlso:s,homepage:s};function x(e){return Array.isArray(e)?e:[e]}const O=["Collection","Manifest","Canvas","AnnotationPage","AnnotationCollection","Annotation","ContentResource","Range","Service","Selector","Agent"];function Z(e){if(typeof e>"u"||e===null)throw new Error("Null or undefined is not a valid entity.");if(Array.isArray(e))throw new Error("Array is not a valid entity");if(typeof e!="object")throw new Error(`${typeof e} is not a valid entity`);if(typeof e.type=="string"){const t=O.indexOf(e.type);if(t!==-1)return O[t]}if(e.profile)return"Service";throw new Error("Resource type is not known")}class S{constructor(t,i={}){T(this,"traversals"),T(this,"options"),this.traversals={collection:[],manifest:[],canvas:[],annotationCollection:[],annotationPage:[],annotation:[],contentResource:[],choice:[],range:[],service:[],agent:[],...t},this.options={allowUndefinedReturn:!1,...i}}static all(t){return new S({collection:[t],manifest:[t],canvas:[t],annotationCollection:[t],annotationPage:[t],annotation:[t],contentResource:[t],choice:[t],range:[t],service:[t]})}traverseDescriptive(t){return t.thumbnail&&(t.thumbnail=t.thumbnail.map(i=>this.traverseType(i,this.traversals.contentResource))),t.provider&&(t.provider=t.provider.map(i=>this.traverseAgent(i))),t}traverseLinking(t){return t.seeAlso&&(t.seeAlso=t.seeAlso.map(i=>this.traverseType(i,this.traversals.contentResource))),t.service&&(t.service=x(t.service).map(i=>this.traverseType(i,this.traversals.service))),t.services&&(t.services=t.services.map(i=>this.traverseType(i,this.traversals.service))),t.logo&&(t.logo=t.logo.map(i=>this.traverseType(i,this.traversals.contentResource))),t.homepage&&(t.homepage=t.homepage.map(i=>this.traverseType(i,this.traversals.contentResource))),t.partOf&&(t.partOf=t.partOf.map(i=>typeof i=="string"||!i.type?this.traverseType(i,this.traversals.contentResource):i.type==="Canvas"?this.traverseType(i,this.traversals.canvas):i.type==="AnnotationCollection"?this.traverseType(i,this.traversals.annotationCollection):i.type==="Collection"?this.traverseType(i,this.traversals.collection):this.traverseType(i,this.traversals.contentResource))),t.start&&(t.start=t.start?this.traverseType(t.start,this.traversals.canvas):null),t.rendering&&(t.rendering=t.rendering.map(i=>this.traverseType(i,this.traversals.contentResource))),t.supplementary&&(t.supplementary=t.supplementary.map(i=>this.traverseType(i,this.traversals.contentResource))),t}traverseCollectionItems(t){return t.items&&t.items.map(i=>i.type==="Collection"?this.traverseCollection(i):this.traverseManifest(i)),t}traverseCollection(t){return this.traverseType(this.traverseDescriptive(this.traverseInlineAnnotationPages(this.traverseLinking(this.traversePosterCanvas(this.traverseCollectionItems(t))))),this.traversals.collection)}traverseManifestItems(t){return t.items&&(t.items=t.items.map(i=>this.traverseCanvas(i))),t}traverseManifestStructures(t){return t.structures&&(t.structures=t.structures.map(i=>this.traverseRange(i))),t}traverseManifest(t){return this.traverseType(this.traverseInlineAnnotationPages(this.traverseManifestStructures(this.traversePosterCanvas(this.traverseDescriptive(this.traverseLinking(this.traverseManifestItems(t)))))),this.traversals.manifest)}traverseCanvasItems(t){return t.items=(t.items||[]).map(i=>this.traverseAnnotationPage(i)),t}traverseInlineAnnotationPages(t){return typeof t=="string"||!t||t.annotations&&(t.annotations=t.annotations.map(i=>this.traverseAnnotationPage(i))),t}traverseCanvas(t){return this.traverseType(this.traverseInlineAnnotationPages(this.traversePosterCanvas(this.traverseDescriptive(this.traverseLinking(this.traverseCanvasItems(t))))),this.traversals.canvas)}traverseAnnotationPageItems(t){return t.items&&(t.items=t.items.map(i=>this.traverseAnnotation(i))),t}traverseAnnotationPage(t){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseAnnotationPageItems(t))),this.traversals.annotationPage)}traverseAnnotationBody(t){return Array.isArray(t.body)?t.body=t.body.map(i=>this.traverseContentResource(i)):t.body&&(t.body=this.traverseContentResource(t.body)),t}traversePosterCanvas(t){return t.posterCanvas&&(t.posterCanvas=this.traverseCanvas(t.posterCanvas)),t.placeholderCanvas&&(t.placeholderCanvas=this.traverseCanvas(t.placeholderCanvas)),t.accompanyingCanvas&&(t.accompanyingCanvas=this.traverseCanvas(t.accompanyingCanvas)),t}traverseAnnotation(t){return this.traverseType(this.traverseLinking(this.traverseAnnotationBody(t)),this.traversals.annotation)}traverseContentResourceLinking(t){return typeof t=="string"||!t||t&&t.service&&(t.service=x(t.service||[]).map(i=>this.traverseType(i,this.traversals.service))),t}traverseContentResource(t){return t.type==="Choice"&&(t.items=t.items.map(i=>this.traverseContentResource(i))),this.traverseType(this.traverseInlineAnnotationPages(this.traverseContentResourceLinking(t)),this.traversals.contentResource)}traverseRangeRanges(t){return t.items&&(t.items=t.items.map(i=>typeof i=="string"?this.traverseCanvas({id:i,type:"Canvas"}):i.type==="Manifest"?this.traverseManifest(i):this.traverseRange(i))),t}traverseRange(t){return this.traverseType(this.traversePosterCanvas(this.traverseDescriptive(this.traverseLinking(this.traverseRangeRanges(t)))),this.traversals.range)}traverseAgent(t){return this.traverseType(this.traverseDescriptive(this.traverseLinking(t)),this.traversals.agent)}traverseType(t,i){return i.reduce((n,r)=>{const a=r(n);return typeof a>"u"&&!this.options.allowUndefinedReturn?n:a},t)}traverseService(t){return this.traverseType(t,this.traversals.service)}traverseUnknown(t){const i=Z(t);switch(i){case"Collection":return this.traverseCollection(t);case"Manifest":return this.traverseManifest(t);case"Canvas":return this.traverseCanvas(t);case"AnnotationPage":return this.traverseAnnotationPage(t);case"Annotation":return this.traverseAnnotation(t);case"ContentResource":return this.traverseContentResource(t);case"Range":return this.traverseRange(t);case"Service":return this.traverseService(t);case"Agent":return this.traverseAgent(t);default:throw new Error(`Unknown or unsupported resource type of ${i}`)}}}const q=["sc:Collection","sc:Manifest","sc:Canvas","sc:AnnotationList","oa:Annotation","sc:Range","sc:Layer","sc:Sequence","oa:Choice","Service","ContentResource"];function Me(e){if(typeof e>"u"||e===null)throw new Error("Null or undefined is not a valid entity.");if(Array.isArray(e))throw new Error("Array is not a valid entity");if(typeof e!="object")throw new Error(`${typeof e} is not a valid entity`);if(typeof e["@type"]=="string"){const t=q.indexOf(e["@type"]);if(t!==-1)return q[t]}if(e.profile)return"Service";if(e.format||e["@type"])return"ContentResource";throw new Error("Resource type is not known")}class j{constructor(t,i={}){T(this,"traversals"),T(this,"options"),this.traversals={collection:[],manifest:[],canvas:[],annotationList:[],sequence:[],annotation:[],contentResource:[],choice:[],range:[],service:[],layer:[],...t},this.options={convertPropsToArray:!0,mergeMemberProperties:!0,allowUndefinedReturn:!1,...i}}static all(t){return new j({collection:[t],manifest:[t],canvas:[t],annotationList:[t],sequence:[t],annotation:[t],contentResource:[t],choice:[t],range:[t],service:[t],layer:[t]})}traverseCollection(t){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseCollectionItems(t))),this.traversals.collection)}traverseCollectionItems(t){if(this.options.mergeMemberProperties){const i=[...(t.manifests||[]).map(n=>typeof n=="string"?{"@id":n,"@type":"sc:Manifest"}:n),...(t.collections||[]).map(n=>typeof n=="string"?{"@id":n,"@type":"sc:Collection"}:n),...t.members||[]];delete t.collections,delete t.manifests,t.members=i}return t.manifests&&(t.manifests=t.manifests.map(i=>this.traverseManifest(typeof i=="string"?{"@id":i,"@type":"sc:Manifest"}:i))),t.collections&&(t.collections=t.collections.map(i=>this.traverseCollection(typeof i=="string"?{"@id":i,"@type":"sc:Collection"}:i))),t.members&&(t.members=t.members.map(i=>typeof i=="string"?i:this.traverseUnknown(i))),t}traverseManifest(t){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseManifestItems(t))),this.traversals.manifest)}traverseManifestItems(t){return t.sequences&&(t.sequences=t.sequences.map(i=>this.traverseSequence(i))),t.structures&&(t.structures=t.structures.map(i=>this.traverseRange(i))),t}traverseSequence(t){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseSequenceItems(t))),this.traversals.sequence)}traverseSequenceItems(t){return t.canvases&&(t.canvases=t.canvases.map(i=>this.traverseCanvas(i))),t}traverseCanvas(t){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseCanvasItems(t))),this.traversals.canvas)}traverseCanvasItems(t){return t.images&&(t.images=t.images.map(i=>this.traverseAnnotation(i))),t.otherContent&&(t.otherContent=t.otherContent.map(i=>this.traverseAnnotationList(i))),t}traverseRange(t){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseRangeItems(t))),this.traversals.range)}traverseRangeItems(t){if(this.options.mergeMemberProperties){const i=[...(t.ranges||[]).map(n=>typeof n=="string"?{"@id":n,"@type":"sc:Range"}:n),...(t.canvases||[]).map(n=>typeof n=="string"?{"@id":n,"@type":"sc:Canvas"}:n),...t.members||[]];delete t.ranges,delete t.canvases,t.members=i.length?i.map(n=>this.traverseUnknown(n)):void 0}return t}traverseAnnotationList(t){const i=typeof t=="string"?{"@id":t,"@type":"sc:AnnotationList"}:t;return this.traverseType(this.traverseDescriptive(this.traverseAnnotationListItems(i)),this.traversals.annotationList)}traverseAnnotationListItems(t){return t.resources&&(t.resources=t.resources.map(i=>this.traverseAnnotation(i))),t}traverseAnnotation(t){return this.traverseType(this.traverseDescriptive(this.traverseLinking(this.traverseAnnotationItems(t))),this.traversals.annotation)}traverseAnnotationItems(t){return t.resource&&(Array.isArray(t.resource)?t.resource=t.resource.map(i=>this.traverseContentResource(i)):t.resource=this.traverseContentResource(t.resource)),t.on,t}traverseLayer(t){return this.traverseType(this.traverseLinking(this.traverseLayerItems(t)),this.traversals.layer)}traverseLayerItems(t){return t.otherContent&&(t.otherContent=t.otherContent.map(i=>this.traverseAnnotationList(i))),t}traverseChoice(t){return this.traverseType(this.traverseChoiceItems(t),this.traversals.choice)}traverseChoiceItems(t){return t.default&&t.default!=="rdf:nil"&&(t.default=this.traverseContentResource(t.default)),t.item&&t.item!=="rdf:nil"&&(t.item=t.item.map(i=>this.traverseContentResource(i))),t}traverseService(t){return this.traverseType(this.traverseLinking(t),this.traversals.service)}traverseContentResource(t){return t["@type"]==="oa:Choice"?this.traverseChoice(t):this.traverseType(this.traverseDescriptive(this.traverseLinking(t)),this.traversals.contentResource)}traverseUnknown(t){if(!t["@type"]||typeof t=="string")return t;switch(Me(t)){case"sc:Collection":return this.traverseCollection(t);case"sc:Manifest":return this.traverseManifest(t);case"sc:Canvas":return this.traverseCanvas(t);case"sc:Sequence":return this.traverseSequence(t);case"sc:Range":return this.traverseRange(t);case"oa:Annotation":return this.traverseAnnotation(t);case"sc:AnnotationList":return this.traverseAnnotationList(t);case"sc:Layer":return this.traverseLayer(t);case"Service":return this.traverseService(t);case"oa:Choice":return this.traverseChoice(t);case"ContentResource":return this.traverseContentResource(t)}return t.profile?this.traverseService(t):t}traverseImageResource(t){const i=Array.isArray(t),n=Array.isArray(t)?t:[t],r=[];for(const a of n)typeof a=="string"?r.push(this.traverseContentResource({"@id":a,"@type":"dctypes:Image"})):r.push(this.traverseContentResource(a));return!i&&!this.options.convertPropsToArray?r[0]:r}traverseDescriptive(t){return t.thumbnail&&(t.thumbnail=this.traverseImageResource(t.thumbnail)),t.logo&&(t.logo=this.traverseImageResource(t.logo)),t}traverseOneOrMoreServices(t){const i=Array.isArray(t),n=Array.isArray(t)?t:[t],r=[];for(const a of n)r.push(this.traverseService(a));return!i&&!this.options.convertPropsToArray?r[0]:r}traverseLinking(t){return t.related&&(t.related=this.traverseOneOrManyType(t.related,this.traversals.contentResource)),t.rendering&&(t.rendering=this.traverseOneOrManyType(t.rendering,this.traversals.contentResource)),t.service&&(t.service=this.traverseOneOrMoreServices(t.service)),t.seeAlso&&(t.seeAlso=this.traverseOneOrManyType(t.seeAlso,this.traversals.contentResource)),t.within&&(typeof t.within=="string"||(t.within=this.traverseOneOrManyType(t.within,this.traversals.contentResource))),t.startCanvas&&(typeof t.startCanvas=="string"?t.startCanvas=this.traverseType({"@id":t.startCanvas,"@type":"sc:Canvas"},this.traversals.canvas):t.startCanvas&&this.traverseType(t.startCanvas,this.traversals.canvas)),t.contentLayer&&(typeof t.contentLayer=="string"?t.contentLayer=this.traverseLayer({"@id":t.contentLayer,"@type":"sc:Layer"}):t.contentLayer=this.traverseLayer(t.contentLayer)),t}traverseOneOrManyType(t,i){if(!Array.isArray(t))if(this.options.convertPropsToArray)t=[t];else return this.traverseType(t,i);return t.map(n=>this.traverseType(n,i))}traverseType(t,i){return i.reduce((n,r)=>{const a=r(n);return typeof a>"u"&&!this.options.allowUndefinedReturn?n:a},t)}}const Pe="http://library.stanford.edu/iiif/image-api/compliance.html#level0",J="http://library.stanford.edu/iiif/image-api/compliance.html#level1",ee="http://library.stanford.edu/iiif/image-api/compliance.html#level2",xe="http://library.stanford.edu/iiif/image-api/conformance.html#level0",te="http://library.stanford.edu/iiif/image-api/conformance.html#level1",ie="http://library.stanford.edu/iiif/image-api/conformance.html#level2",Oe="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level0",ne="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level1",re="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level2",Fe="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level0",ae="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level1",se="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level2",De="http://iiif.io/api/image/1/level0.json",Ne="http://iiif.io/api/image/1/profiles/level0.json",oe="http://iiif.io/api/image/1/level1.json",le="http://iiif.io/api/image/1/profiles/level1.json",ve="http://iiif.io/api/image/1/level2.json",pe="http://iiif.io/api/image/1/profiles/level2.json",ke="http://iiif.io/api/image/2/level0.json",je="http://iiif.io/api/image/2/profiles/level0.json",fe="http://iiif.io/api/image/2/level1.json",ue="http://iiif.io/api/image/2/profiles/level1.json",he="http://iiif.io/api/image/2/level2.json",ce="http://iiif.io/api/image/2/profiles/level2.json",$e="level0",de="level1",me="level2",Ge="http://iiif.io/api/image/2/level0",ge="http://iiif.io/api/image/2/level1",ye="http://iiif.io/api/image/2/level2",Ue=[ge,ye,J,ee,te,ie,ne,re,ae,se,oe,le,ve,pe,fe,ue,he,ce,de,me],qe=[Ge,ge,ye,Pe,J,ee,xe,te,ie,Oe,ne,re,Fe,ae,se,De,Ne,oe,le,ve,pe,ke,je,fe,ue,he,ce,$e,de,me],F={attributionLabel:"Attribution",lang:"none",providerId:"http://example.org/provider",providerName:"Unknown"};function _(e,t="none"){if(!e)return{};const i=Array.isArray(e)?e:[e],n={};for(const r of i){if(typeof r=="string"){n[t]=n[t]?n[t]:[],n[t].push(r||"");continue}if(!r["@language"]){n[t]=n[t]?n[t]:[],n[t].push(r["@value"]||"");continue}const a=r["@language"];n[a]=n[a]?n[a]:[],n[a].push(r["@value"]||"")}return n}function Ae(e){if(Array.isArray(e))return Ae(e.find(t=>typeof t=="string"));if(qe.indexOf(e)!==-1)return"level2";if(Ue.indexOf(e)!==-1)return"level1";if(typeof e=="string")return e}function Ve(e){const t=Array.isArray(e)?e:[e];for(const i of t)switch(i){case"http://iiif.io/api/image/2/context.json":case"http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level2":return"ImageService2";case"http://iiif.io/api/image/1/context.json":case"http://library.stanford.edu/iiif/image-api/1.1/context.json":return"ImageService1";case"http://iiif.io/api/annex/openannotation/context.json":return"ImageApiSelector"}}function We(e){switch(e){case"http://iiif.io/api/image/2/level0.json":case"http://iiif.io/api/image/2/level1.json":case"http://iiif.io/api/image/2/level2.json":return"ImageService2";case"http://iiif.io/api/auth/1/kiosk":case"http://iiif.io/api/auth/1/login":case"http://iiif.io/api/auth/1/clickthrough":case"http://iiif.io/api/auth/1/external":case"http://iiif.io/api/auth/0/kiosk":case"http://iiif.io/api/auth/0/login":case"http://iiif.io/api/auth/0/clickthrough":case"http://iiif.io/api/auth/0/external":return"AuthCookieService1";case"http://iiif.io/api/auth/1/token":case"http://iiif.io/api/auth/0/token":return"AuthTokenService1";case"http://iiif.io/api/auth/1/logout":case"http://iiif.io/api/auth/0/logout":return"AuthLogoutService1";case"http://iiif.io/api/search/1/search":case"http://iiif.io/api/search/0/search":return"SearchService1";case"http://iiif.io/api/search/1/autocomplete":case"http://iiif.io/api/search/0/autocomplete":return"AutoCompleteService1"}}function V(e){for(const t of["sc","oa","dcterms","dctypes","iiif"])if(e.startsWith(`${t}:`))return e.slice(t.length+1);return e}const ze=["Collection","Manifest","Annotation","AnnotationPage","Range","Service"];function $(e){const t=e["@id"]||e.id;let i=e["@type"]||e.type;const n=e.profile||void 0,r=e["@context"]||void 0;if(n){const a=We(n);if(a)return a}if(r){const a=Ve(r);if(a)return a}if(i){if(Array.isArray(i)){if(i.indexOf("oa:CssStylesheet")!==-1)return"CssStylesheet";if(i.indexOf("cnt:ContentAsText")!==-1)return"TextualBody";i=i[0]}for(const a of["sc","oa","dcterms","dctypes","iiif"])if(i.startsWith(`${a}:`)){i=i.slice(a.length+1);break}switch(i){case"Layer":return"AnnotationCollection";case"AnnotationList":return"AnnotationPage";case"cnt:ContentAsText":return"TextualBody"}}if(i&&ze.indexOf(i)!==-1)return i;if(e.format){if(e.format.startsWith("image/"))return"Image";if(e.format.startsWith("text/")||e.format==="application/pdf")return"Text";if(e.format.startsWith("application/"))return"Dataset"}return t&&(t.endsWith(".jpg")||t.endsWith(".png")||t.endsWith(".jpeg"))?"Image":i||"unknown"}const Be=/http(s)?:\/\/(creativecommons.org|rightsstatements.org)[^"'\\<\n]+/gm;function He(e){const t=e.match(Be);return t?t[0]:e}function Ye(e,t="Rights/License",i="none"){let n=null;const r=[],a=Array.isArray(e)?e:[e];for(const l of a){const v=l?He(l):void 0;if(v&&(v.indexOf("creativecommons.org")!==-1||v.indexOf("rightsstatements.org")!==-1)){v.startsWith("https://")?n=`http://${v.slice(8)}`:n=v;continue}v&&r.push({label:{[i]:[t]},value:{[i]:[v]}})}return[n,r]}const Ke=["http://iiif.io/api/presentation/2/context.json","http://iiif.io/api/image/2/context.json","http://iiif.io/api/image/1/context.json","http://library.stanford.edu/iiif/image-api/1.1/context.json","http://iiif.io/api/search/1/context.json","http://iiif.io/api/search/0/context.json","http://iiif.io/api/auth/1/context.json","http://iiif.io/api/auth/0/context.json","http://iiif.io/api/annex/openannotation/context.json"];function Qe(e){if(e){const t=Array.isArray(e)?e:[e],i=[];for(const n of t)n==="http://iiif.io/api/presentation/2/context.json"&&i.push("http://iiif.io/api/presentation/3/context.json"),Ke.indexOf(n)===-1&&i.push(n);if(t.length)return i.length===1?i[0]:i}}function Xe(e){return e?e.map(t=>({label:_(t.label),value:_(t.value)})):[]}function p(e){for(const t in e)(typeof e[t]>"u"||e[t]===null)&&delete e[t];return e}let W=0;function Ce(e,t){const i=encodeURI(e.id||e["@id"]||"").trim();return i&&t?`${i}/${t}`:i||(W++,`http://example.org/${e["@type"]}${t?`/${t}`:""}/${W}`)}function f(e){const t=[...e.behavior||[]];e.viewingHint&&t.push(e.viewingHint);let i;return Array.isArray(e.motivation)?i=e.motivation.map(V):e.motivation&&(i=V(e.motivation)),{"@context":e["@context"]?Qe(e["@context"]):void 0,id:(e["@id"]||Ce(e)).trim(),type:$(e),behavior:t.length?t:void 0,height:e.height?e.height:void 0,width:e.width?e.width:void 0,motivation:i,viewingDirection:e.viewingDirection,profile:e.profile,format:e.format?e.format:void 0,duration:void 0,timeMode:void 0}}function u(e){const[t,i]=Ye(e.license),n=[...e.metadata?Xe(e.metadata):[],...i];return{rights:t,metadata:n.length?n:void 0,label:e.label?_(e.label):void 0,requiredStatement:e.attribution?{label:_(F.attributionLabel),value:_(e.attribution)}:void 0,navDate:e.navDate,summary:e.description?_(e.description):void 0,thumbnail:e.thumbnail}}function Ze(e){if(!e.within)return;const t=Array.isArray(e.within)?e.within:[e.within],i=[];for(const n of t)if(typeof n=="string"){if(n)switch(e["@type"]){case"sc:Manifest":i.push({id:n,type:"Collection"});break}}else n["@id"]&&i.push({id:n["@id"],type:$(n)});return i.length?i:void 0}function d(e){const t=e.related?Array.isArray(e.related)?e.related:[e.related]:[],i=e.contentLayer;return{provider:e.logo||t.length?[{id:F.providerId,type:"Agent",homepage:t.length?[t[0]]:void 0,logo:e.logo?Array.isArray(e.logo)?e.logo:[e.logo]:void 0,label:_(F.providerName)}]:void 0,partOf:Ze(e),rendering:e.rendering,seeAlso:e.seeAlso,start:e.startCanvas,service:e.service?x(e.service):void 0,supplementary:i?[i]:void 0}}function Je(e){return{chars:e.chars,format:e.format?e.format:void 0,language:e.language}}function et(e){return p({...f(e),...u(e),...d(e),items:e.members})}function tt(e){const t=[],i=[];for(const r of e.sequences||[])r.canvases.length&&t.push(...r.canvases),r.behavior&&i.push(...r.behavior);const n=f(e);return i.length&&(n.behavior?n.behavior.push(...i):n.behavior=i),p({...n,...u(e),...d(e),items:t,structures:e.structures})}function it(e){return p({...f(e),...u(e),...d(e),annotations:e.otherContent&&e.otherContent.length?e.otherContent:void 0,items:e.images&&e.images.length?[{id:Ce(e,"annotation-page"),type:"AnnotationPage",items:e.images}]:void 0})}function nt(e){return p({...f(e),...u(e),...d(e),items:e.resources&&e.resources.length?e.resources:void 0})}function rt(e){return!e.canvases||e.canvases.length===0?{canvases:[],behavior:[]}:{canvases:e.canvases,behavior:e.viewingHint?[e.viewingHint]:[]}}function at(e){function t(i){if(Array.isArray(i)){if(i.length>1)return{type:"List",items:i.map(t)};i=i[0]}if(typeof i=="string")return encodeURI(i).trim();if("@type"in i){let n;if(typeof i.full=="string")n=i.full;else if(i.full["@type"]==="dctypes:Image")n={id:i.full["@id"],type:"Image"};else if(i.full["@type"]==="sc:Canvas")n={id:i.full["@id"],type:"Canvas"};else throw new Error(`Unsupported source type on annotation: ${i.full["@type"]}`);return{type:"SpecificResource",source:n,selector:N(i.selector)}}else return encodeURI(i["@id"]).trim()}return p({...f(e),...u(e),...d(e),target:t(e.on),body:Array.isArray(e.resource)?e.resource.map(D):D(e.resource)})}function D(e){const t=e;return p({...f(t),...u(t),...d(t),...Je(t)})}function st(e){const t=[];return e.default&&e.default!=="rdf:nil"&&t.push(e.default),e.item&&e.item!=="rdf:nil"&&t.push(...e.item),{...f(e),...u(e),items:t}}function ot(e){return p({...f(e),...u(e),...d(e),items:e.members})}function lt(e){const{"@id":t,"@type":i,"@context":n,profile:r,...a}=e,l={};return t&&(l["@id"]=t),l["@type"]=$(e),l["@type"]==="unknown"&&(n&&n.length&&(l["@context"]=n),l["@type"]="Service"),r&&(l.profile=Ae(r)),p({...l,...a})}function vt(e){return p({...f(e),...u(e),...d(e)})}const pt=new j({collection:[et],manifest:[tt],canvas:[it],annotationList:[nt],sequence:[rt],annotation:[at],contentResource:[D],choice:[st],range:[ot],service:[lt],layer:[vt]});function ft(e){return e&&e["@context"]&&(e["@context"]==="http://iiif.io/api/presentation/2/context.json"||e["@context"].indexOf("http://iiif.io/api/presentation/2/context.json")!==-1||e["@context"]==="http://www.shared-canvas.org/ns/context.json")||e["@context"]==="http://iiif.io/api/image/2/context.json"?pt.traverseUnknown(e):e}function N(e){if((Array.isArray(e["@type"])&&e["@type"].includes("oa:SvgSelector")||e["@type"]=="oa:SvgSelector")&&("chars"in e||"value"in e))return{type:"SvgSelector",value:"chars"in e?e.chars:e.value};if(e["@type"]==="oa:FragmentSelector")return{type:"FragmentSelector",value:e.value};if(e["@type"]==="oa:Choice")return[N(e.default),...(Array.isArray(e.item)?e.item:[e.item]).map(N)];if(e["@type"]=="iiif:ImageApiSelector")return{type:"ImageApiSelector",region:"region"in e?e.region:void 0,rotation:"rotation"in e?e.rotation:void 0};throw new Error(`Unsupported selector type: ${e["@type"]}`)}function Ie(){return{Collection:{},Manifest:{},Canvas:{},AnnotationPage:{},AnnotationCollection:{},Annotation:{},ContentResource:{},Range:{},Service:{},Selector:{},Agent:{}}}function _e(e,t){if(typeof e=="string")return{id:e,type:t};if(!e.id)throw new Error(`Invalid resource does not have an ID (${t})`);return e}function ut(e){return(t,i)=>{const n=e[t]?e[t]:{};return r=>{const a=_e(r,i||t);return a&&a.id&&t?(n[a.id]=n[a.id]?be(n[a.id],a):Object.assign({},a),{id:a.id,type:t==="ContentResource"?t:a.type}):a}}}function k(e,t){if(!t)return e;if(Array.isArray(e)){if(!Array.isArray(t))throw new Error("Cannot merge array with non-array");const i=[...e];for(const n of t)if(n!=null)if(Array.isArray(n))i.push(n);else if(typeof n=="object"&&n.id&&n.type){const r=i.findIndex(a=>a.id===n.id&&a.type===n.type);r>=0&&(i[r]=k(i[r],n))}else e.indexOf(n)===-1&&i.push(n);return i}else if(typeof e=="object"){if(Array.isArray(t)||typeof t!="object")throw new Error("Cannot merge object with non-object");const i={...e};for(const[n,r]of Object.entries(t)){const a=i[n];a===s||!a?i[n]=r:i[n]=k(a,r)}return i}else if(e)return e;return t}function be(e,t){if(typeof e=="string")return e;if(t.id!==e.id||t.type!==e.type)throw new Error("Can only merge entities with identical identifiers and type!");return k({...e},t)}function ht(e){return(t,i)=>n=>{const{id:r,type:a}=_e(n,i||t);if(typeof r>"u")throw new Error("Found invalid entity without an ID.");return t==="ContentResource"?e[r]=t:e[r]=a,n}}function ct(e){const t=JSON.stringify(e);let i=5381,n=t.length;for(;n;)i=i*33^t.charCodeAt(--n);const a=(i>>>0).toString(16);return a.length%2?"0"+a:a}function P(e){return t=>typeof t=="string"?{id:t,type:e}:t.id?t.type?t:{type:e,...t}:{id:`vault://${ct(t)}`,type:e,...t}}function b(e){return t=>({...e,...t})}function w(e){return Array.isArray(e)?e:[e]}function dt(e){return e.body&&(e.body=w(e.body)),e.seeAlso&&(e.seeAlso=w(e.seeAlso)),e.body&&(e.body=w(e.body)),e.audience&&(e.audience=w(e.audience)),e.accessibility&&(e.accessibility=w(e.accessibility)),e.motivation&&(e.motivation=w(e.motivation)),e}function mt(e){const t=ft(e),i=Ie(),n={},r=ut(i),a=ht(n),v=new S({collection:[b(Y),a("Collection"),r("Collection")],manifest:[b(K),a("Manifest"),r("Manifest")],canvas:[b(H),a("Canvas"),r("Canvas")],annotationPage:[P("AnnotationPage"),b(B),a("AnnotationPage"),r("AnnotationPage")],annotation:[P("Annotation"),dt,a("Annotation"),r("Annotation")],contentResource:[P("ContentResource"),a("ContentResource"),r("ContentResource")],range:[b(Q),a("Range","Canvas"),r("Range","Canvas")],agent:[b(X),a("Agent"),r("Agent")]}).traverseUnknown(t);return{entities:i,resource:v,mapping:n}}const h="__$UNSET$__",G="__$UNWRAP$__";function gt(e,t){const i=e.requests[t],n=e.mapping[t];if(!(!n||i&&i.resourceUri&&!e.entities[n][i.resourceUri]))return e.entities[n][i?i.resourceUri:t]}function we(e){const t={};for(const[i,n]of e){if(i===G&&n!==h)return n;n!==h&&typeof n<"u"&&n!==null&&(t[i]=n)}return t}function yt(e,t,i){if(!t.type||!t.id)throw new Error("Unknown entity");if(!i[t.type])throw new Error(`Serializer not found for ${t.type}`);function n(r){const a=i[r.type];if(!a)return h;const l=gt(e,r.id)||(r.id&&r.type?r:null);if(!l)return h;const v=a(l,e,{isTopLevel:t.id===r.id});let E=v.next();for(;!E.done;){const L=E.value;let M=h;if(L)if(Array.isArray(L)){const U=[];for(const Le of L)U.push(n(Le));M=U}else M=n(L);E=v.next(M)}return E.value===h?h:we(E.value)}return n(t)}function I(e){if(!e)return;const t=Object.keys(e);if(t.length!==0){if(t.length===1){const i=t[0];if(!i)return"";const n=(e[i]||[]).join("");return i==="@none"||i==="none"||i==="en"?n:{"@language":i,"@value":n}}return t.map(i=>({"@language":i,"@value":(e[i]||[]).join("")}))}}function Ee(e){return Array.isArray(e)?e.map(t=>Ee(t)):typeof e=="string"?e:e.type&&e.type==="Canvas"?e.id:e}function c(e,t=!1){if(e)return e.length>1&&!t?e:e[0]||void 0}function At(e){if(e){if(typeof e=="string")return{"@id":e};if("@id"in e){const t={...e};return delete t["@type"],t}return{"@context":"http://iiif.io/api/image/2/context.json","@id":e.id,profile:`http://iiif.io/api/image/2/profiles/${e.profile}.json`}}}function m(e,t){return[["@id",e.id],["@type",t],["format",e.format],["height",e.height],["width",e.width],["viewingDirection",e.viewingDirection!=="left-to-right"?e.viewingDirection:void 0]]}function*g(e){const t=e.provider?yield e.provider[0]:void 0;return[["label",I(e.label)],["metadata",e.metadata&&e.metadata.length?e.metadata.map(i=>({label:I(i.label)||"",value:I(i.value)||""})):void 0],["description",I(e.summary)],["thumbnail",c(yield e.thumbnail)],["navDate",e.navDate],["logo",t?c(t.logo):void 0],["homepage",t?t.homepage:void 0],["attribution",e.requiredStatement?I(e.requiredStatement.value):void 0]]}function*R(e){return[["seeAlso",c(yield e.seeAlso)],["service",c((e.service||[]).map(At))],["rendering",c(yield e.rendering)],["startCanvas",e.start?e.start.id:void 0]]}const Ct={Manifest:function*(e){return[...m(e,"sc:Manifest"),...yield*g(e),...yield*R(e),["sequences",[{"@id":`${e.id}/sequence0`,"@type":"sc:Sequence",canvases:yield e.items}]],["structures",yield e.structures]]},Canvas:function*(e){const i=(yield e.items)[0];return[...m(e,"sc:Canvas"),...yield*g(e),...yield*R(e),["images",i?[i.resources]:void 0],["annotations",e.annotations&&e.annotations.length?c(yield e.annotations):void 0]]},AnnotationPage:function*(e){return[...m(e,"sc:AnnotationList"),...yield*g(e),["resources",e.items&&e.items.length?c(yield e.items):void 0]]},Annotation:function*(e){return[["@id",e.id],["@type","oa:Annotation"],["motivation","sc:painting"],["on",Ee(e.target)],["resource",c(yield e.body,!0)]]},ContentResource:function*(e){switch(e.type){case"Image":return[...m(e,"dctypes:Image"),...yield*g(e),...yield*R(e)];case"Text":case"Dataset":default:return[...m(e,void 0),...yield*g(e)]}},AnnotationCollection:function*(e){return[["@id",e.id],["@type","sc:Layer"],["label",I(e.label)]]},Collection:function*(e){return[...m(e,"sc:Collection"),...yield*g(e),...yield*R(e),["members",yield*e.items]]},Range:function*(e){const t=[],i=[];if(e.items)for(const n of e.items){const r=yield n;t.push({"@id":n.id,"@type":n.type,label:r?r.label:void 0,within:e.id}),n.type==="Canvas"&&i.push(n.id)}return[...m(e,"sc:Range"),...yield*g(e),...yield*R(e),["canvases",i.length===t.length?i:void 0],["members",i.length!==t.length?t:void 0]]}};function y(e){var t;return[["id",(t=e.id)!=null&&t.startsWith("vault://")?void 0:e.id],["type",e.type],["format",e.format],["profile",e.profile],["height",e.height],["width",e.width],["duration",e.duration||void 0],["viewingDirection",e.viewingDirection!=="left-to-right"?e.viewingDirection:void 0],["behavior",e.behavior&&e.behavior.length?e.behavior:void 0],["timeMode",e.timeMode],["motivation",Array.isArray(e.motivation)?e.motivation[0]:e.motivation]]}function o(e){if(!(!e||e.length===0))return e}function Re(e){if(e&&e.type&&e.type==="ImageService2"){const{id:t,type:i,profile:n,...r}=e,a=typeof n=="string"?n:Array.isArray(n)?n.find(l=>typeof l=="string"):"";return{"@id":t,"@type":i,profile:a?a.startsWith("http")?a:`http://iiif.io/api/image/2/${a}.json`:"http://iiif.io/api/image/2/level0.json",...r}}return e}function z(e){if(!(!e||e.length===0))return e.map(Re)}function*A(e){return[["label",e.label],["metadata",o(e.metadata)],["summary",e.summary],["requiredStatement",e.requiredStatement],["rights",e.rights],["navDate",e.navDate],["language",e.language],["thumbnail",o(yield e.thumbnail)],["placeholderCanvas",yield e.placeholderCanvas],["accompanyingCanvas",yield e.accompanyingCanvas],["provider",o(yield e.provider)]]}function*C(e){return[["seeAlso",o(yield e.seeAlso)],["service",z(e.service)],["services",z(e.services)],["rendering",o(yield e.rendering)],["supplementary",o(yield e.supplementary)],["homepage",o(yield e.homepage)],["logo",o(yield e.logo)],["partOf",o(yield e.partOf)],["start",e.start]]}const It={Manifest:function*(e,t,{isTopLevel:i}){return i?[["@context","http://iiif.io/api/presentation/3/context.json"],...y(e),...yield*A(e),...yield*C(e),["items",yield e.items],["structures",o(yield e.structures)],["annotations",o(yield e.annotations)]]:[...y(e),...yield*A(e)]},Canvas:function*(e){return[...y(e),...yield*A(e),...yield*C(e),["items",yield e.items],["annotations",o(yield e.annotations)]]},Agent:function*(e){return[["id",e.id],["type","Agent"],["label",e.label],...yield*C(e)]},AnnotationPage:function*(e){return[...Object.entries(e).map(([i,n])=>[i,Array.isArray(n)?o(n):n]).filter(([i,n])=>i!=="items"),...yield*C(e),["items",yield e.items]]},Service:function*(e){return[[G,Re(e)]]},Annotation:function*(e){const t=Object.entries(e).map(([n,r])=>n==="motivation"?[n,Array.isArray(r)?r[0]:r]:[n,Array.isArray(r)?o(r):r]).filter(([n])=>n!=="body"),i=yield e.body;return[...t,["body",i.length===1?i[0]:i]]},ContentResource:function*(e){return[...y(e),...yield*A(e),...yield*C(e),["annotations",o(yield e.annotations)],["items",o(yield e.items)]]},AnnotationCollection:function*(e){return[["id",e.id],["type","AnnotationCollection"],["label",e.label]]},Collection:function*(e,t,{isTopLevel:i}){return i?[["@context","http://iiif.io/api/presentation/3/context.json"],...y(e),...yield*A(e),...yield*C(e),["items",o(yield e.items)]]:[...y(e),...yield*A(e)]},Range:function*(e){const t=[];for(const i of e.items)i.type==="Range"?t.push(yield i):t.push(i);return[...y(e),...yield*A(e),...yield*C(e),["items",t],["annotations",o(yield e.annotations)]]}};exports.EMPTY=s;exports.Traverse=S;exports.UNSET=h;exports.UNWRAP=G;exports.emptyAgent=X;exports.emptyAnnotationPage=B;exports.emptyCanvas=H;exports.emptyCollection=Y;exports.emptyManifest=K;exports.emptyRange=Q;exports.getDefaultEntities=Ie;exports.identifyResource=Z;exports.languageString2to3=I;exports.mergeEntities=be;exports.normalize=mt;exports.serialize=yt;exports.serializeConfigPresentation2=Ct;exports.serializeConfigPresentation3=It;exports.serializedFieldsToObject=we;exports.types=O;
|
|
2
2
|
//# sourceMappingURL=index.cjs206.js.map
|